From fff24a7c3064d4f508f64c01b3aeeb279cd4d676 Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain <sebastien.jourdain@kitware.com> Date: Wed, 2 Mar 2016 09:06:35 -0700 Subject: [PATCH] fix(kw-web-suite): Replace long tools dependency list by kw-web-suite which also updated some --- dist/ParaViewWeb.js | 110 ++++++++++++++++++++++---------------------- package.json | 54 +--------------------- 2 files changed, 56 insertions(+), 108 deletions(-) diff --git a/dist/ParaViewWeb.js b/dist/ParaViewWeb.js index 381e25430c..5c484d66bb 100644 --- a/dist/ParaViewWeb.js +++ b/dist/ParaViewWeb.js @@ -1,11 +1,11 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){(function(t){e.exports=t.ParaViewWeb=n(315)}).call(t,function(){return this}())},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,"/*!\n * Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url("+n(741)+");src:url("+n(740)+"?#iefix&v=4.5.0) format('embedded-opentype'),url("+n(744)+") format('woff2'),url("+n(745)+") format('woff'),url("+n(743)+") format('truetype'),url("+n(742)+'#fontawesomeregular) format(\'svg\');font-weight:400;font-style:normal}.font-awesome_fa_2otTb{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-awesome_fa-lg_2-2uP{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.font-awesome_fa-2x_2Mgjx{font-size:2em}.font-awesome_fa-3x_1gdsS{font-size:3em}.font-awesome_fa-4x_2VkGW{font-size:4em}.font-awesome_fa-5x_QKikc{font-size:5em}.font-awesome_fa-fw_1FdA5{width:1.28571429em;text-align:center}.font-awesome_fa-ul_2XTDQ{padding-left:0;margin-left:2.14285714em;list-style-type:none}.font-awesome_fa-ul_2XTDQ>li{position:relative}.font-awesome_fa-li_1vepp{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.font-awesome_fa-li_1vepp.font-awesome_fa-lg_2-2uP{left:-1.85714286em}.font-awesome_fa-border_6EUMg{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.font-awesome_fa-pull-left_3jHfw{float:left}.font-awesome_fa-pull-right_20ZAt{float:right}.font-awesome_fa_2otTb.font-awesome_fa-pull-left_3jHfw{margin-right:.3em}.font-awesome_fa_2otTb.font-awesome_fa-pull-right_20ZAt{margin-left:.3em}.font-awesome_pull-right_1Mb60{float:right}.font-awesome_pull-left_30vXl{float:left}.font-awesome_fa_2otTb.font-awesome_pull-left_30vXl{margin-right:.3em}.font-awesome_fa_2otTb.font-awesome_pull-right_1Mb60{margin-left:.3em}.font-awesome_fa-spin_NsqCr{-webkit-animation:font-awesome_fa-spin_NsqCr 2s infinite linear;animation:font-awesome_fa-spin_NsqCr 2s infinite linear}.font-awesome_fa-pulse_1Vv2f{-webkit-animation:font-awesome_fa-spin_NsqCr 1s infinite steps(8);animation:font-awesome_fa-spin_NsqCr 1s infinite steps(8)}@-webkit-keyframes font-awesome_fa-spin_NsqCr{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes font-awesome_fa-spin_NsqCr{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.font-awesome_fa-rotate-90_1snKw{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);transform:rotate(90deg)}.font-awesome_fa-rotate-180_2hMM8{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.font-awesome_fa-rotate-270_3eBDG{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);transform:rotate(270deg)}.font-awesome_fa-flip-horizontal_33SUC{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0,mirror=1);-webkit-transform:scaleX(-1);transform:scaleX(-1)}.font-awesome_fa-flip-vertical_klOOu{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2,mirror=1);-webkit-transform:scaleY(-1);transform:scaleY(-1)}:root .font-awesome_fa-flip-horizontal_33SUC,:root .font-awesome_fa-flip-vertical_klOOu,:root .font-awesome_fa-rotate-90_1snKw,:root .font-awesome_fa-rotate-180_2hMM8,:root .font-awesome_fa-rotate-270_3eBDG{-webkit-filter:none;filter:none}.font-awesome_fa-stack_3fqsM{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.font-awesome_fa-stack-1x_14Vb0,.font-awesome_fa-stack-2x_It5yP{position:absolute;left:0;width:100%;text-align:center}.font-awesome_fa-stack-1x_14Vb0{line-height:inherit}.font-awesome_fa-stack-2x_It5yP{font-size:2em}.font-awesome_fa-inverse_1e1EX{color:#fff}.font-awesome_fa-glass_34uit:before{content:"\\F000"}.font-awesome_fa-music_3f2s5:before{content:"\\F001"}.font-awesome_fa-search_1C7GK:before{content:"\\F002"}.font-awesome_fa-envelope-o_3EWEI:before{content:"\\F003"}.font-awesome_fa-heart_3DHYT:before{content:"\\F004"}.font-awesome_fa-star_2g4Ye:before{content:"\\F005"}.font-awesome_fa-star-o_3ty_o:before{content:"\\F006"}.font-awesome_fa-user_N3puO:before{content:"\\F007"}.font-awesome_fa-film_2qmKe:before{content:"\\F008"}.font-awesome_fa-th-large_2N4P8:before{content:"\\F009"}.font-awesome_fa-th_3f0mR:before{content:"\\F00A"}.font-awesome_fa-th-list_3qelJ:before{content:"\\F00B"}.font-awesome_fa-check_3DXVm:before{content:"\\F00C"}.font-awesome_fa-close_1zysR:before,.font-awesome_fa-remove_1MIYz:before,.font-awesome_fa-times_1Y-Cs:before{content:"\\F00D"}.font-awesome_fa-search-plus_9OGuc:before{content:"\\F00E"}.font-awesome_fa-search-minus_1j_Aj:before{content:"\\F010"}.font-awesome_fa-power-off_vPefe:before{content:"\\F011"}.font-awesome_fa-signal_1VxWh:before{content:"\\F012"}.font-awesome_fa-cog_30mdw:before,.font-awesome_fa-gear_yfzjv:before{content:"\\F013"}.font-awesome_fa-trash-o_2uFKh:before{content:"\\F014"}.font-awesome_fa-home_3Fr6e:before{content:"\\F015"}.font-awesome_fa-file-o_208AJ:before{content:"\\F016"}.font-awesome_fa-clock-o_3vfig:before{content:"\\F017"}.font-awesome_fa-road_2017v:before{content:"\\F018"}.font-awesome_fa-download_1TDS9:before{content:"\\F019"}.font-awesome_fa-arrow-circle-o-down_2M97h:before{content:"\\F01A"}.font-awesome_fa-arrow-circle-o-up_2aqY-:before{content:"\\F01B"}.font-awesome_fa-inbox_3bWnM:before{content:"\\F01C"}.font-awesome_fa-play-circle-o_3vU6r:before{content:"\\F01D"}.font-awesome_fa-repeat_27E0b:before,.font-awesome_fa-rotate-right_1E_3J:before{content:"\\F01E"}.font-awesome_fa-refresh_2AOlD:before{content:"\\F021"}.font-awesome_fa-list-alt_3nS4v:before{content:"\\F022"}.font-awesome_fa-lock_inyGT:before{content:"\\F023"}.font-awesome_fa-flag_1qWlx:before{content:"\\F024"}.font-awesome_fa-headphones_13olw:before{content:"\\F025"}.font-awesome_fa-volume-off_1llC2:before{content:"\\F026"}.font-awesome_fa-volume-down_1jTgZ:before{content:"\\F027"}.font-awesome_fa-volume-up_2XIXx:before{content:"\\F028"}.font-awesome_fa-qrcode_17ZaI:before{content:"\\F029"}.font-awesome_fa-barcode_1al4-:before{content:"\\F02A"}.font-awesome_fa-tag_2CMhy:before{content:"\\F02B"}.font-awesome_fa-tags_3kYb4:before{content:"\\F02C"}.font-awesome_fa-book_32JVT:before{content:"\\F02D"}.font-awesome_fa-bookmark_1s2Fl:before{content:"\\F02E"}.font-awesome_fa-print_y2Ezw:before{content:"\\F02F"}.font-awesome_fa-camera_Ls8dv:before{content:"\\F030"}.font-awesome_fa-font_1VH0X:before{content:"\\F031"}.font-awesome_fa-bold_11qyx:before{content:"\\F032"}.font-awesome_fa-italic_1Gtc3:before{content:"\\F033"}.font-awesome_fa-text-height_3db67:before{content:"\\F034"}.font-awesome_fa-text-width_2yBeb:before{content:"\\F035"}.font-awesome_fa-align-left_3DuVK:before{content:"\\F036"}.font-awesome_fa-align-center_M9xyY:before{content:"\\F037"}.font-awesome_fa-align-right_3Icru:before{content:"\\F038"}.font-awesome_fa-align-justify_maoNA:before{content:"\\F039"}.font-awesome_fa-list_3CT1m:before{content:"\\F03A"}.font-awesome_fa-dedent_3p5N-:before,.font-awesome_fa-outdent_34S6p:before{content:"\\F03B"}.font-awesome_fa-indent_2Y6xl:before{content:"\\F03C"}.font-awesome_fa-video-camera_2Tfna:before{content:"\\F03D"}.font-awesome_fa-image_l6mTT:before,.font-awesome_fa-photo_2f_lI:before,.font-awesome_fa-picture-o_3srts:before{content:"\\F03E"}.font-awesome_fa-pencil_3o0Fh:before{content:"\\F040"}.font-awesome_fa-map-marker_1Lc7q:before{content:"\\F041"}.font-awesome_fa-adjust_1uk96:before{content:"\\F042"}.font-awesome_fa-tint_23wIx:before{content:"\\F043"}.font-awesome_fa-edit_2ITK3:before,.font-awesome_fa-pencil-square-o_1jFx_:before{content:"\\F044"}.font-awesome_fa-share-square-o_1bC_y:before{content:"\\F045"}.font-awesome_fa-check-square-o_2eIdJ:before{content:"\\F046"}.font-awesome_fa-arrows_2tovc:before{content:"\\F047"}.font-awesome_fa-step-backward_1aJ3J:before{content:"\\F048"}.font-awesome_fa-fast-backward_rW1JQ:before{content:"\\F049"}.font-awesome_fa-backward_WWKjR:before{content:"\\F04A"}.font-awesome_fa-play_1vQTN:before{content:"\\F04B"}.font-awesome_fa-pause_33hRm:before{content:"\\F04C"}.font-awesome_fa-stop_1l1v_:before{content:"\\F04D"}.font-awesome_fa-forward_3jJNW:before{content:"\\F04E"}.font-awesome_fa-fast-forward_2JwE2:before{content:"\\F050"}.font-awesome_fa-step-forward_3NyZe:before{content:"\\F051"}.font-awesome_fa-eject_GA_Jm:before{content:"\\F052"}.font-awesome_fa-chevron-left_1EwAm:before{content:"\\F053"}.font-awesome_fa-chevron-right_3RxN_:before{content:"\\F054"}.font-awesome_fa-plus-circle_1SAMg:before{content:"\\F055"}.font-awesome_fa-minus-circle_Th8wG:before{content:"\\F056"}.font-awesome_fa-times-circle_JfW7D:before{content:"\\F057"}.font-awesome_fa-check-circle_PBRDH:before{content:"\\F058"}.font-awesome_fa-question-circle_33ykP:before{content:"\\F059"}.font-awesome_fa-info-circle_2ZdWr:before{content:"\\F05A"}.font-awesome_fa-crosshairs_18oYo:before{content:"\\F05B"}.font-awesome_fa-times-circle-o_3LLKK:before{content:"\\F05C"}.font-awesome_fa-check-circle-o_1CW2E:before{content:"\\F05D"}.font-awesome_fa-ban_1LOdy:before{content:"\\F05E"}.font-awesome_fa-arrow-left_2G_P0:before{content:"\\F060"}.font-awesome_fa-arrow-right_15DTA:before{content:"\\F061"}.font-awesome_fa-arrow-up_12gpU:before{content:"\\F062"}.font-awesome_fa-arrow-down_2zqoH:before{content:"\\F063"}.font-awesome_fa-mail-forward_2tQrw:before,.font-awesome_fa-share_3O8Dc:before{content:"\\F064"}.font-awesome_fa-expand_34Ihf:before{content:"\\F065"}.font-awesome_fa-compress_1JDdS:before{content:"\\F066"}.font-awesome_fa-plus_WEb-k:before{content:"\\F067"}.font-awesome_fa-minus_1WAd4:before{content:"\\F068"}.font-awesome_fa-asterisk_w7w6r:before{content:"\\F069"}.font-awesome_fa-exclamation-circle_2bbrU:before{content:"\\F06A"}.font-awesome_fa-gift_3bKvI:before{content:"\\F06B"}.font-awesome_fa-leaf_2B5Uf:before{content:"\\F06C"}.font-awesome_fa-fire_1qsDr:before{content:"\\F06D"}.font-awesome_fa-eye_3XRn0:before{content:"\\F06E"}.font-awesome_fa-eye-slash_18NEx:before{content:"\\F070"}.font-awesome_fa-exclamation-triangle_ttuT-:before,.font-awesome_fa-warning_32nGg:before{content:"\\F071"}.font-awesome_fa-plane_3L5mD:before{content:"\\F072"}.font-awesome_fa-calendar_1niuw:before{content:"\\F073"}.font-awesome_fa-random_2RH42:before{content:"\\F074"}.font-awesome_fa-comment_2koYW:before{content:"\\F075"}.font-awesome_fa-magnet_33k7m:before{content:"\\F076"}.font-awesome_fa-chevron-up_2R5R_:before{content:"\\F077"}.font-awesome_fa-chevron-down_746nC:before{content:"\\F078"}.font-awesome_fa-retweet_2ma5b:before{content:"\\F079"}.font-awesome_fa-shopping-cart_276KU:before{content:"\\F07A"}.font-awesome_fa-folder_2MMW6:before{content:"\\F07B"}.font-awesome_fa-folder-open_1a3bX:before{content:"\\F07C"}.font-awesome_fa-arrows-v_27J04:before{content:"\\F07D"}.font-awesome_fa-arrows-h_3EAQ6:before{content:"\\F07E"}.font-awesome_fa-bar-chart-o_BMSPQ:before,.font-awesome_fa-bar-chart_3LGib:before{content:"\\F080"}.font-awesome_fa-twitter-square_146CY:before{content:"\\F081"}.font-awesome_fa-facebook-square_3IbRT:before{content:"\\F082"}.font-awesome_fa-camera-retro_oM_mn:before{content:"\\F083"}.font-awesome_fa-key_3bV7M:before{content:"\\F084"}.font-awesome_fa-cogs_CqXH5:before,.font-awesome_fa-gears_3cjY1:before{content:"\\F085"}.font-awesome_fa-comments_2lUtO:before{content:"\\F086"}.font-awesome_fa-thumbs-o-up_3cD9j:before{content:"\\F087"}.font-awesome_fa-thumbs-o-down_3AeCO:before{content:"\\F088"}.font-awesome_fa-star-half_2zxdp:before{content:"\\F089"}.font-awesome_fa-heart-o_QI-Zl:before{content:"\\F08A"}.font-awesome_fa-sign-out_2IOU5:before{content:"\\F08B"}.font-awesome_fa-linkedin-square_3HkV4:before{content:"\\F08C"}.font-awesome_fa-thumb-tack_2gcw0:before{content:"\\F08D"}.font-awesome_fa-external-link_1ku_O:before{content:"\\F08E"}.font-awesome_fa-sign-in_1MYT-:before{content:"\\F090"}.font-awesome_fa-trophy_3CyBM:before{content:"\\F091"}.font-awesome_fa-github-square_1xm6W:before{content:"\\F092"}.font-awesome_fa-upload_wVRel:before{content:"\\F093"}.font-awesome_fa-lemon-o_2v3hR:before{content:"\\F094"}.font-awesome_fa-phone_1EiFR:before{content:"\\F095"}.font-awesome_fa-square-o_WbQ8x:before{content:"\\F096"}.font-awesome_fa-bookmark-o_1R5xe:before{content:"\\F097"}.font-awesome_fa-phone-square_3GkD1:before{content:"\\F098"}.font-awesome_fa-twitter_cyUBg:before{content:"\\F099"}.font-awesome_fa-facebook-f_3r4VF:before,.font-awesome_fa-facebook_f3EUw:before{content:"\\F09A"}.font-awesome_fa-github_MdgBC:before{content:"\\F09B"}.font-awesome_fa-unlock_XTSXp:before{content:"\\F09C"}.font-awesome_fa-credit-card_28S4q:before{content:"\\F09D"}.font-awesome_fa-feed_3tLbf:before,.font-awesome_fa-rss_3_EzS:before{content:"\\F09E"}.font-awesome_fa-hdd-o_3ZoO6:before{content:"\\F0A0"}.font-awesome_fa-bullhorn_3o7hz:before{content:"\\F0A1"}.font-awesome_fa-bell_26AZW:before{content:"\\F0F3"}.font-awesome_fa-certificate_11sLt:before{content:"\\F0A3"}.font-awesome_fa-hand-o-right_2G1w_:before{content:"\\F0A4"}.font-awesome_fa-hand-o-left_2KTOL:before{content:"\\F0A5"}.font-awesome_fa-hand-o-up_3xrkS:before{content:"\\F0A6"}.font-awesome_fa-hand-o-down_3cWAN:before{content:"\\F0A7"}.font-awesome_fa-arrow-circle-left_2CgFw:before{content:"\\F0A8"}.font-awesome_fa-arrow-circle-right_35XcE:before{content:"\\F0A9"}.font-awesome_fa-arrow-circle-up_FHcwE:before{content:"\\F0AA"}.font-awesome_fa-arrow-circle-down_1NJKi:before{content:"\\F0AB"}.font-awesome_fa-globe_2fYFX:before{content:"\\F0AC"}.font-awesome_fa-wrench_3snDo:before{content:"\\F0AD"}.font-awesome_fa-tasks_2_oS8:before{content:"\\F0AE"}.font-awesome_fa-filter_1q5k8:before{content:"\\F0B0"}.font-awesome_fa-briefcase_aikwY:before{content:"\\F0B1"}.font-awesome_fa-arrows-alt_1vqY9:before{content:"\\F0B2"}.font-awesome_fa-group_XbMo9:before,.font-awesome_fa-users_1PfY8:before{content:"\\F0C0"}.font-awesome_fa-chain_2QCgS:before,.font-awesome_fa-link_3kFkN:before{content:"\\F0C1"}.font-awesome_fa-cloud_2l8rd:before{content:"\\F0C2"}.font-awesome_fa-flask_3iTak:before{content:"\\F0C3"}.font-awesome_fa-cut_17wpt:before,.font-awesome_fa-scissors_1xAHX:before{content:"\\F0C4"}.font-awesome_fa-copy_a2GP3:before,.font-awesome_fa-files-o_2pUmI:before{content:"\\F0C5"}.font-awesome_fa-paperclip_d4foW:before{content:"\\F0C6"}.font-awesome_fa-floppy-o_1MBo6:before,.font-awesome_fa-save_10fTV:before{content:"\\F0C7"}.font-awesome_fa-square_N1IJZ:before{content:"\\F0C8"}.font-awesome_fa-bars_3WARK:before,.font-awesome_fa-navicon_3anpJ:before,.font-awesome_fa-reorder_2ukY7:before{content:"\\F0C9"}.font-awesome_fa-list-ul_3s6_2:before{content:"\\F0CA"}.font-awesome_fa-list-ol_AP-DO:before{content:"\\F0CB"}.font-awesome_fa-strikethrough_h0-a_:before{content:"\\F0CC"}.font-awesome_fa-underline_2PIFp:before{content:"\\F0CD"}.font-awesome_fa-table_2mEeT:before{content:"\\F0CE"}.font-awesome_fa-magic_qWQg_:before{content:"\\F0D0"}.font-awesome_fa-truck_1AsFs:before{content:"\\F0D1"}.font-awesome_fa-pinterest_1xKnl:before{content:"\\F0D2"}.font-awesome_fa-pinterest-square_3Yhwf:before{content:"\\F0D3"}.font-awesome_fa-google-plus-square_90VGD:before{content:"\\F0D4"}.font-awesome_fa-google-plus_1Tp-z:before{content:"\\F0D5"}.font-awesome_fa-money_32Lir:before{content:"\\F0D6"}.font-awesome_fa-caret-down_1crEO:before{content:"\\F0D7"}.font-awesome_fa-caret-up_2TwZv:before{content:"\\F0D8"}.font-awesome_fa-caret-left_39lOf:before{content:"\\F0D9"}.font-awesome_fa-caret-right_3p0nW:before{content:"\\F0DA"}.font-awesome_fa-columns_nToc3:before{content:"\\F0DB"}.font-awesome_fa-sort_F3dcY:before,.font-awesome_fa-unsorted_2nhbR:before{content:"\\F0DC"}.font-awesome_fa-sort-desc_3CQ5e:before,.font-awesome_fa-sort-down_3wTbK:before{content:"\\F0DD"}.font-awesome_fa-sort-asc_3MlT5:before,.font-awesome_fa-sort-up_Ad_bv:before{content:"\\F0DE"}.font-awesome_fa-envelope_3xnLD:before{content:"\\F0E0"}.font-awesome_fa-linkedin_25eMJ:before{content:"\\F0E1"}.font-awesome_fa-rotate-left_3mzU5:before,.font-awesome_fa-undo_hNldt:before{content:"\\F0E2"}.font-awesome_fa-gavel_2ttLP:before,.font-awesome_fa-legal_1C_3g:before{content:"\\F0E3"}.font-awesome_fa-dashboard_3bEM7:before,.font-awesome_fa-tachometer_3R5zx:before{content:"\\F0E4"}.font-awesome_fa-comment-o_2pEPg:before{content:"\\F0E5"}.font-awesome_fa-comments-o_hQJKS:before{content:"\\F0E6"}.font-awesome_fa-bolt_3iT3l:before,.font-awesome_fa-flash_1DU_v:before{content:"\\F0E7"}.font-awesome_fa-sitemap_QKmtm:before{content:"\\F0E8"}.font-awesome_fa-umbrella_3fE2k:before{content:"\\F0E9"}.font-awesome_fa-clipboard_1Wx9E:before,.font-awesome_fa-paste_3RUtK:before{content:"\\F0EA"}.font-awesome_fa-lightbulb-o_3MZxy:before{content:"\\F0EB"}.font-awesome_fa-exchange_1cgNj:before{content:"\\F0EC"}.font-awesome_fa-cloud-download_2fd-7:before{content:"\\F0ED"}.font-awesome_fa-cloud-upload_BCKnV:before{content:"\\F0EE"}.font-awesome_fa-user-md_3Unw6:before{content:"\\F0F0"}.font-awesome_fa-stethoscope_3TPjy:before{content:"\\F0F1"}.font-awesome_fa-suitcase_2ZK-F:before{content:"\\F0F2"}.font-awesome_fa-bell-o_3iuFm:before{content:"\\F0A2"}.font-awesome_fa-coffee_2tZxb:before{content:"\\F0F4"}.font-awesome_fa-cutlery_2dZZ2:before{content:"\\F0F5"}.font-awesome_fa-file-text-o_3vkBr:before{content:"\\F0F6"}.font-awesome_fa-building-o_1ML8l:before{content:"\\F0F7"}.font-awesome_fa-hospital-o_2dZPM:before{content:"\\F0F8"}.font-awesome_fa-ambulance_3oMTO:before{content:"\\F0F9"}.font-awesome_fa-medkit_3TuAD:before{content:"\\F0FA"}.font-awesome_fa-fighter-jet_2EPG4:before{content:"\\F0FB"}.font-awesome_fa-beer_25HMG:before{content:"\\F0FC"}.font-awesome_fa-h-square_iRMP3:before{content:"\\F0FD"}.font-awesome_fa-plus-square_28zW8:before{content:"\\F0FE"}.font-awesome_fa-angle-double-left_3Q7bL:before{content:"\\F100"}.font-awesome_fa-angle-double-right_2R24L:before{content:"\\F101"}.font-awesome_fa-angle-double-up_2GMJK:before{content:"\\F102"}.font-awesome_fa-angle-double-down_IlK-a:before{content:"\\F103"}.font-awesome_fa-angle-left_7b-ty:before{content:"\\F104"}.font-awesome_fa-angle-right_RfvDx:before{content:"\\F105"}.font-awesome_fa-angle-up_2xGkU:before{content:"\\F106"}.font-awesome_fa-angle-down_3nIhI:before{content:"\\F107"}.font-awesome_fa-desktop_7pHFF:before{content:"\\F108"}.font-awesome_fa-laptop_2QHxL:before{content:"\\F109"}.font-awesome_fa-tablet_eRAwh:before{content:"\\F10A"}.font-awesome_fa-mobile-phone_3tGZx:before,.font-awesome_fa-mobile_ry_56:before{content:"\\F10B"}.font-awesome_fa-circle-o_We1QB:before{content:"\\F10C"}.font-awesome_fa-quote-left_tgvF3:before{content:"\\F10D"}.font-awesome_fa-quote-right_2LbYu:before{content:"\\F10E"}.font-awesome_fa-spinner_1FgdF:before{content:"\\F110"}.font-awesome_fa-circle_RFG4V:before{content:"\\F111"}.font-awesome_fa-mail-reply_1ovuj:before,.font-awesome_fa-reply_1p4xy:before{content:"\\F112"}.font-awesome_fa-github-alt_PGZGn:before{content:"\\F113"}.font-awesome_fa-folder-o_28LsO:before{content:"\\F114"}.font-awesome_fa-folder-open-o_3Hbbz:before{content:"\\F115"}.font-awesome_fa-smile-o_3R1KH:before{content:"\\F118"}.font-awesome_fa-frown-o_1PJe6:before{content:"\\F119"}.font-awesome_fa-meh-o_1Yal3:before{content:"\\F11A"}.font-awesome_fa-gamepad_DQkX5:before{content:"\\F11B"}.font-awesome_fa-keyboard-o_1Zegg:before{content:"\\F11C"}.font-awesome_fa-flag-o_2paT4:before{content:"\\F11D"}.font-awesome_fa-flag-checkered_3Q50W:before{content:"\\F11E"}.font-awesome_fa-terminal_1y_ce:before{content:"\\F120"}.font-awesome_fa-code_373HL:before{content:"\\F121"}.font-awesome_fa-mail-reply-all_1el1h:before,.font-awesome_fa-reply-all_1XbQQ:before{content:"\\F122"}.font-awesome_fa-star-half-empty_NeM4g:before,.font-awesome_fa-star-half-full_3_GnR:before,.font-awesome_fa-star-half-o_1gMSG:before{content:"\\F123"}.font-awesome_fa-location-arrow_gFy0a:before{content:"\\F124"}.font-awesome_fa-crop_DFePA:before{content:"\\F125"}.font-awesome_fa-code-fork_rNRd0:before{content:"\\F126"}.font-awesome_fa-chain-broken_3nVk7:before,.font-awesome_fa-unlink_1hw62:before{content:"\\F127"}.font-awesome_fa-question_EAoIA:before{content:"\\F128"}.font-awesome_fa-info_2cQvQ:before{content:"\\F129"}.font-awesome_fa-exclamation_297uN:before{content:"\\F12A"}.font-awesome_fa-superscript_N7aMl:before{content:"\\F12B"}.font-awesome_fa-subscript_ZG4gQ:before{content:"\\F12C"}.font-awesome_fa-eraser_3NIuU:before{content:"\\F12D"}.font-awesome_fa-puzzle-piece_3lKWq:before{content:"\\F12E"}.font-awesome_fa-microphone_3_81_:before{content:"\\F130"}.font-awesome_fa-microphone-slash_1DyxC:before{content:"\\F131"}.font-awesome_fa-shield_1qKif:before{content:"\\F132"}.font-awesome_fa-calendar-o_1BLCm:before{content:"\\F133"}.font-awesome_fa-fire-extinguisher_3gz5K:before{content:"\\F134"}.font-awesome_fa-rocket_lfSov:before{content:"\\F135"}.font-awesome_fa-maxcdn_cD6Fn:before{content:"\\F136"}.font-awesome_fa-chevron-circle-left_1aac7:before{content:"\\F137"}.font-awesome_fa-chevron-circle-right_Evj_u:before{content:"\\F138"}.font-awesome_fa-chevron-circle-up_tTcaI:before{content:"\\F139"}.font-awesome_fa-chevron-circle-down_1oKtm:before{content:"\\F13A"}.font-awesome_fa-html5_3LZaq:before{content:"\\F13B"}.font-awesome_fa-css3_3hg4c:before{content:"\\F13C"}.font-awesome_fa-anchor_2-wZ3:before{content:"\\F13D"}.font-awesome_fa-unlock-alt_CLyLU:before{content:"\\F13E"}.font-awesome_fa-bullseye_6Sp1E:before{content:"\\F140"}.font-awesome_fa-ellipsis-h_4VBiE:before{content:"\\F141"}.font-awesome_fa-ellipsis-v_Ktjfe:before{content:"\\F142"}.font-awesome_fa-rss-square_4Vj2y:before{content:"\\F143"}.font-awesome_fa-play-circle_ECzau:before{content:"\\F144"}.font-awesome_fa-ticket_284VQ:before{content:"\\F145"}.font-awesome_fa-minus-square_3w_Do:before{content:"\\F146"}.font-awesome_fa-minus-square-o_qe1Jq:before{content:"\\F147"}.font-awesome_fa-level-up_7RnC1:before{content:"\\F148"}.font-awesome_fa-level-down_1rR4Q:before{content:"\\F149"}.font-awesome_fa-check-square_3Qxfb:before{content:"\\F14A"}.font-awesome_fa-pencil-square_3f_4W:before{content:"\\F14B"}.font-awesome_fa-external-link-square_3TfmM:before{content:"\\F14C"}.font-awesome_fa-share-square_4XEPu:before{content:"\\F14D"}.font-awesome_fa-compass_3kP2n:before{content:"\\F14E"}.font-awesome_fa-caret-square-o-down_1Ao-B:before,.font-awesome_fa-toggle-down_vVDIQ:before{content:"\\F150"}.font-awesome_fa-caret-square-o-up_1Lr5P:before,.font-awesome_fa-toggle-up_1j96l:before{content:"\\F151"}.font-awesome_fa-caret-square-o-right_Jc6ln:before,.font-awesome_fa-toggle-right_391jj:before{content:"\\F152"}.font-awesome_fa-eur_2JOH3:before,.font-awesome_fa-euro_1H752:before{content:"\\F153"}.font-awesome_fa-gbp_sXuSA:before{content:"\\F154"}.font-awesome_fa-dollar_1Qw2b:before,.font-awesome_fa-usd_1Cyf0:before{content:"\\F155"}.font-awesome_fa-inr_2v4ZE:before,.font-awesome_fa-rupee_3EdPr:before{content:"\\F156"}.font-awesome_fa-cny_3RNlL:before,.font-awesome_fa-jpy_CXaPK:before,.font-awesome_fa-rmb_vAGyw:before,.font-awesome_fa-yen_UH2C8:before{content:"\\F157"}.font-awesome_fa-rouble_fwC1R:before,.font-awesome_fa-rub_1c94U:before,.font-awesome_fa-ruble_1ms6_:before{content:"\\F158"}.font-awesome_fa-krw_xc7hv:before,.font-awesome_fa-won_1oqxL:before{content:"\\F159"}.font-awesome_fa-bitcoin_3h17C:before,.font-awesome_fa-btc_2EpsK:before{content:"\\F15A"}.font-awesome_fa-file_2_TBG:before{content:"\\F15B"}.font-awesome_fa-file-text_3uzzE:before{content:"\\F15C"}.font-awesome_fa-sort-alpha-asc_l6x9i:before{content:"\\F15D"}.font-awesome_fa-sort-alpha-desc_Au5Op:before{content:"\\F15E"}.font-awesome_fa-sort-amount-asc_a4pl1:before{content:"\\F160"}.font-awesome_fa-sort-amount-desc_sHYze:before{content:"\\F161"}.font-awesome_fa-sort-numeric-asc_2fl5U:before{content:"\\F162"}.font-awesome_fa-sort-numeric-desc_rZcNd:before{content:"\\F163"}.font-awesome_fa-thumbs-up_32LEl:before{content:"\\F164"}.font-awesome_fa-thumbs-down_115k7:before{content:"\\F165"}.font-awesome_fa-youtube-square_1HADK:before{content:"\\F166"}.font-awesome_fa-youtube_3PHGN:before{content:"\\F167"}.font-awesome_fa-xing_2fXmL:before{content:"\\F168"}.font-awesome_fa-xing-square_3AeWb:before{content:"\\F169"}.font-awesome_fa-youtube-play__uWZW:before{content:"\\F16A"}.font-awesome_fa-dropbox_1i2Rn:before{content:"\\F16B"}.font-awesome_fa-stack-overflow_2tkuN:before{content:"\\F16C"}.font-awesome_fa-instagram_1lV5f:before{content:"\\F16D"}.font-awesome_fa-flickr_3JrtG:before{content:"\\F16E"}.font-awesome_fa-adn_3a2Jf:before{content:"\\F170"}.font-awesome_fa-bitbucket_12Rp4:before{content:"\\F171"}.font-awesome_fa-bitbucket-square_Y0lMx:before{content:"\\F172"}.font-awesome_fa-tumblr_18aB6:before{content:"\\F173"}.font-awesome_fa-tumblr-square_3m4ld:before{content:"\\F174"}.font-awesome_fa-long-arrow-down_2His0:before{content:"\\F175"}.font-awesome_fa-long-arrow-up_vP_4l:before{content:"\\F176"}.font-awesome_fa-long-arrow-left_1Uldc:before{content:"\\F177"}.font-awesome_fa-long-arrow-right_1_jZV:before{content:"\\F178"}.font-awesome_fa-apple_3f0-D:before{content:"\\F179"}.font-awesome_fa-windows_2wDfa:before{content:"\\F17A"}.font-awesome_fa-android_1Wzt9:before{content:"\\F17B"}.font-awesome_fa-linux_3TBYa:before{content:"\\F17C"}.font-awesome_fa-dribbble_IliEV:before{content:"\\F17D"}.font-awesome_fa-skype_7ne23:before{content:"\\F17E"}.font-awesome_fa-foursquare_52T_Z:before{content:"\\F180"}.font-awesome_fa-trello_2ChtW:before{content:"\\F181"}.font-awesome_fa-female_q-oMT:before{content:"\\F182"}.font-awesome_fa-male_2PAqV:before{content:"\\F183"}.font-awesome_fa-gittip_2fxKq:before,.font-awesome_fa-gratipay_xLz4x:before{content:"\\F184"}.font-awesome_fa-sun-o_3QZ1O:before{content:"\\F185"}.font-awesome_fa-moon-o_ZwK6C:before{content:"\\F186"}.font-awesome_fa-archive_3FY1-:before{content:"\\F187"}.font-awesome_fa-bug_20yJn:before{content:"\\F188"}.font-awesome_fa-vk_1SLN3:before{content:"\\F189"}.font-awesome_fa-weibo_3q9BS:before{content:"\\F18A"}.font-awesome_fa-renren_27Rtg:before{content:"\\F18B"}.font-awesome_fa-pagelines_3FZd_:before{content:"\\F18C"}.font-awesome_fa-stack-exchange_1BbmA:before{content:"\\F18D"}.font-awesome_fa-arrow-circle-o-right_1lS0I:before{content:"\\F18E"}.font-awesome_fa-arrow-circle-o-left_270k0:before{content:"\\F190"}.font-awesome_fa-caret-square-o-left_3leFq:before,.font-awesome_fa-toggle-left_q8rS1:before{content:"\\F191"}.font-awesome_fa-dot-circle-o_fRUKP:before{content:"\\F192"}.font-awesome_fa-wheelchair_2sPWn:before{content:"\\F193"}.font-awesome_fa-vimeo-square_1nIhm:before{content:"\\F194"}.font-awesome_fa-try_1Olkg:before,.font-awesome_fa-turkish-lira_1bCbG:before{content:"\\F195"}.font-awesome_fa-plus-square-o_M6pBY:before{content:"\\F196"}.font-awesome_fa-space-shuttle_9kmJU:before{content:"\\F197"}.font-awesome_fa-slack_1EvN7:before{content:"\\F198"}.font-awesome_fa-envelope-square_3aqlc:before{content:"\\F199"}.font-awesome_fa-wordpress_2u9e0:before{content:"\\F19A"}.font-awesome_fa-openid_2QLde:before{content:"\\F19B"}.font-awesome_fa-bank_D8hxY:before,.font-awesome_fa-institution_2uHKo:before,.font-awesome_fa-university_3ECjv:before{content:"\\F19C"}.font-awesome_fa-graduation-cap_Y0mMc:before,.font-awesome_fa-mortar-board_1em7v:before{content:"\\F19D"}.font-awesome_fa-yahoo_33B-N:before{content:"\\F19E"}.font-awesome_fa-google_1QYVJ:before{content:"\\F1A0"}.font-awesome_fa-reddit_bwA4E:before{content:"\\F1A1"}.font-awesome_fa-reddit-square_3rRiq:before{content:"\\F1A2"}.font-awesome_fa-stumbleupon-circle_1TPid:before{content:"\\F1A3"}.font-awesome_fa-stumbleupon_14d1U:before{content:"\\F1A4"}.font-awesome_fa-delicious_3rkRQ:before{content:"\\F1A5"}.font-awesome_fa-digg_3bIOw:before{content:"\\F1A6"}.font-awesome_fa-pied-piper_1iXBb:before{content:"\\F1A7"}.font-awesome_fa-pied-piper-alt_3UjUa:before{content:"\\F1A8"}.font-awesome_fa-drupal_WQObj:before{content:"\\F1A9"}.font-awesome_fa-joomla_2UQVh:before{content:"\\F1AA"}.font-awesome_fa-language_DOnO2:before{content:"\\F1AB"}.font-awesome_fa-fax_1SV_d:before{content:"\\F1AC"}.font-awesome_fa-building_1FVgz:before{content:"\\F1AD"}.font-awesome_fa-child_2gTU4:before{content:"\\F1AE"}.font-awesome_fa-paw_NcsFR:before{content:"\\F1B0"}.font-awesome_fa-spoon_IxNyL:before{content:"\\F1B1"}.font-awesome_fa-cube_1Mq1-:before{content:"\\F1B2"}.font-awesome_fa-cubes_1tGnD:before{content:"\\F1B3"}.font-awesome_fa-behance_3mdMe:before{content:"\\F1B4"}.font-awesome_fa-behance-square_5ghK4:before{content:"\\F1B5"}.font-awesome_fa-steam_RIwxM:before{content:"\\F1B6"}.font-awesome_fa-steam-square_2QEJn:before{content:"\\F1B7"}.font-awesome_fa-recycle_-U8tZ:before{content:"\\F1B8"}.font-awesome_fa-automobile_3z3Dw:before,.font-awesome_fa-car_30pca:before{content:"\\F1B9"}.font-awesome_fa-cab_DDNE1:before,.font-awesome_fa-taxi_22WsM:before{content:"\\F1BA"}.font-awesome_fa-tree_3RDTB:before{content:"\\F1BB"}.font-awesome_fa-spotify_3UDVW:before{content:"\\F1BC"}.font-awesome_fa-deviantart_2ZxWy:before{content:"\\F1BD"}.font-awesome_fa-soundcloud_2ALXb:before{content:"\\F1BE"}.font-awesome_fa-database_1lI0N:before{content:"\\F1C0"}.font-awesome_fa-file-pdf-o_3kglo:before{content:"\\F1C1"}.font-awesome_fa-file-word-o_1UetZ:before{content:"\\F1C2"}.font-awesome_fa-file-excel-o_A4QBn:before{content:"\\F1C3"}.font-awesome_fa-file-powerpoint-o_rrLjs:before{content:"\\F1C4"}.font-awesome_fa-file-image-o_2lPT_:before,.font-awesome_fa-file-photo-o_2UoDO:before,.font-awesome_fa-file-picture-o_3Xjli:before{content:"\\F1C5"}.font-awesome_fa-file-archive-o_2Mk5P:before,.font-awesome_fa-file-zip-o_2FWRa:before{content:"\\F1C6"}.font-awesome_fa-file-audio-o_2PC2o:before,.font-awesome_fa-file-sound-o_1AcTq:before{content:"\\F1C7"}.font-awesome_fa-file-movie-o_VAP4m:before,.font-awesome_fa-file-video-o_34mPw:before{content:"\\F1C8"}.font-awesome_fa-file-code-o_1tJvu:before{content:"\\F1C9"}.font-awesome_fa-vine_26AR6:before{content:"\\F1CA"}.font-awesome_fa-codepen_2F2Jy:before{content:"\\F1CB"}.font-awesome_fa-jsfiddle_pH8-y:before{content:"\\F1CC"}.font-awesome_fa-life-bouy_3M9kq:before,.font-awesome_fa-life-buoy_-dMf6:before,.font-awesome_fa-life-ring_1x6lZ:before,.font-awesome_fa-life-saver_1NRqc:before,.font-awesome_fa-support_6Q01X:before{content:"\\F1CD"}.font-awesome_fa-circle-o-notch_cWGUO:before{content:"\\F1CE"}.font-awesome_fa-ra_2liTj:before,.font-awesome_fa-rebel_2UIOr:before{content:"\\F1D0"}.font-awesome_fa-empire_3Sw8V:before,.font-awesome_fa-ge_1f9_K:before{content:"\\F1D1"}.font-awesome_fa-git-square_DgHwD:before{content:"\\F1D2"}.font-awesome_fa-git_1dhi0:before{content:"\\F1D3"}.font-awesome_fa-hacker-news_CxkYC:before,.font-awesome_fa-y-combinator-square_lfSlT:before,.font-awesome_fa-yc-square_1Qf2g:before{content:"\\F1D4"}.font-awesome_fa-tencent-weibo_2-fdG:before{content:"\\F1D5"}.font-awesome_fa-qq_1OIck:before{content:"\\F1D6"}.font-awesome_fa-wechat_7Wqz8:before,.font-awesome_fa-weixin_2rvXg:before{content:"\\F1D7"}.font-awesome_fa-paper-plane_1JBzT:before,.font-awesome_fa-send_1PHOy:before{content:"\\F1D8"}.font-awesome_fa-paper-plane-o_Am7EP:before,.font-awesome_fa-send-o_1K3Am:before{content:"\\F1D9"}.font-awesome_fa-history_xEiAH:before{content:"\\F1DA"}.font-awesome_fa-circle-thin_OCNZt:before{content:"\\F1DB"}.font-awesome_fa-header_hMELn:before{content:"\\F1DC"}.font-awesome_fa-paragraph_2r_mD:before{content:"\\F1DD"}.font-awesome_fa-sliders_3eRoo:before{content:"\\F1DE"}.font-awesome_fa-share-alt_3jAY7:before{content:"\\F1E0"}.font-awesome_fa-share-alt-square_46dVM:before{content:"\\F1E1"}.font-awesome_fa-bomb_1WRhh:before{content:"\\F1E2"}.font-awesome_fa-futbol-o_Nqzpi:before,.font-awesome_fa-soccer-ball-o_3rmya:before{content:"\\F1E3"}.font-awesome_fa-tty_3BPj2:before{content:"\\F1E4"}.font-awesome_fa-binoculars_1vG29:before{content:"\\F1E5"}.font-awesome_fa-plug_1Lbxt:before{content:"\\F1E6"}.font-awesome_fa-slideshare_15ZAf:before{content:"\\F1E7"}.font-awesome_fa-twitch_MNLu3:before{content:"\\F1E8"}.font-awesome_fa-yelp_1c1W7:before{content:"\\F1E9"}.font-awesome_fa-newspaper-o_1ecUe:before{content:"\\F1EA"}.font-awesome_fa-wifi_dQ61U:before{content:"\\F1EB"}.font-awesome_fa-calculator_2q6GV:before{content:"\\F1EC"}.font-awesome_fa-paypal_3lmxL:before{content:"\\F1ED"}.font-awesome_fa-google-wallet_2K_aw:before{content:"\\F1EE"}.font-awesome_fa-cc-visa_2F8r8:before{content:"\\F1F0"}.font-awesome_fa-cc-mastercard_T8WQ_:before{content:"\\F1F1"}.font-awesome_fa-cc-discover_2QXm7:before{content:"\\F1F2"}.font-awesome_fa-cc-amex_2w-j8:before{content:"\\F1F3"}.font-awesome_fa-cc-paypal_gr0Zj:before{content:"\\F1F4"}.font-awesome_fa-cc-stripe_5ubxJ:before{content:"\\F1F5"}.font-awesome_fa-bell-slash_PIYu4:before{content:"\\F1F6"}.font-awesome_fa-bell-slash-o_PTM9c:before{content:"\\F1F7"}.font-awesome_fa-trash_-YVpH:before{content:"\\F1F8"}.font-awesome_fa-copyright_3Cj5D:before{content:"\\F1F9"}.font-awesome_fa-at_b7Ql8:before{content:"\\F1FA"}.font-awesome_fa-eyedropper_1rpAm:before{content:"\\F1FB"}.font-awesome_fa-paint-brush_3SJFh:before{content:"\\F1FC"}.font-awesome_fa-birthday-cake_-17FP:before{content:"\\F1FD"}.font-awesome_fa-area-chart_1fTy1:before{content:"\\F1FE"}.font-awesome_fa-pie-chart_2TXFj:before{content:"\\F200"}.font-awesome_fa-line-chart_20bFd:before{content:"\\F201"}.font-awesome_fa-lastfm_3sP7Z:before{content:"\\F202"}.font-awesome_fa-lastfm-square_3OBza:before{content:"\\F203"}.font-awesome_fa-toggle-off_2TP0s:before{content:"\\F204"}.font-awesome_fa-toggle-on_1ud4K:before{content:"\\F205"}.font-awesome_fa-bicycle_r_nn3:before{content:"\\F206"}.font-awesome_fa-bus_bm6kq:before{content:"\\F207"}.font-awesome_fa-ioxhost_yWiPs:before{content:"\\F208"}.font-awesome_fa-angellist_14KNT:before{content:"\\F209"}.font-awesome_fa-cc_VsUyp:before{content:"\\F20A"}.font-awesome_fa-ils_CYDSg:before,.font-awesome_fa-shekel_3RcTu:before,.font-awesome_fa-sheqel_2_Sde:before{content:"\\F20B"}.font-awesome_fa-meanpath_8Utkv:before{content:"\\F20C"}.font-awesome_fa-buysellads_3DmVj:before{content:"\\F20D"}.font-awesome_fa-connectdevelop_24BDl:before{content:"\\F20E"}.font-awesome_fa-dashcube_3gytt:before{content:"\\F210"}.font-awesome_fa-forumbee_1Xmr9:before{content:"\\F211"}.font-awesome_fa-leanpub_1qDwq:before{content:"\\F212"}.font-awesome_fa-sellsy_w39BK:before{content:"\\F213"}.font-awesome_fa-shirtsinbulk_3ht1E:before{content:"\\F214"}.font-awesome_fa-simplybuilt_1V2xv:before{content:"\\F215"}.font-awesome_fa-skyatlas_1HFEf:before{content:"\\F216"}.font-awesome_fa-cart-plus_zqpg9:before{content:"\\F217"}.font-awesome_fa-cart-arrow-down_vmvAL:before{content:"\\F218"}.font-awesome_fa-diamond_2YKSj:before{content:"\\F219"}.font-awesome_fa-ship_2d0Uf:before{content:"\\F21A"}.font-awesome_fa-user-secret_1JgJF:before{content:"\\F21B"}.font-awesome_fa-motorcycle_hAqgH:before{content:"\\F21C"}.font-awesome_fa-street-view_3xS1E:before{content:"\\F21D"}.font-awesome_fa-heartbeat_3SRsO:before{content:"\\F21E"}.font-awesome_fa-venus_3jRFX:before{content:"\\F221"}.font-awesome_fa-mars_2Le0W:before{content:"\\F222"}.font-awesome_fa-mercury_3-x4u:before{content:"\\F223"}.font-awesome_fa-intersex_26r-R:before,.font-awesome_fa-transgender_1hS0T:before{content:"\\F224"}.font-awesome_fa-transgender-alt_3_fBb:before{content:"\\F225"}.font-awesome_fa-venus-double_30rPd:before{content:"\\F226"}.font-awesome_fa-mars-double_3Xnoh:before{content:"\\F227"}.font-awesome_fa-venus-mars_2Ptfg:before{content:"\\F228"}.font-awesome_fa-mars-stroke_f9_Cu:before{content:"\\F229"}.font-awesome_fa-mars-stroke-v_1K5K9:before{content:"\\F22A"}.font-awesome_fa-mars-stroke-h_3azEl:before{content:"\\F22B"}.font-awesome_fa-neuter_1wUaY:before{content:"\\F22C"}.font-awesome_fa-genderless_3mEtZ:before{content:"\\F22D"}.font-awesome_fa-facebook-official_2NNdf:before{content:"\\F230"}.font-awesome_fa-pinterest-p_1Xpu_:before{content:"\\F231"}.font-awesome_fa-whatsapp_3G2qZ:before{content:"\\F232"}.font-awesome_fa-server_NVGtN:before{content:"\\F233"}.font-awesome_fa-user-plus_1UACc:before{content:"\\F234"}.font-awesome_fa-user-times_24FFx:before{content:"\\F235"}.font-awesome_fa-bed_1XbLs:before,.font-awesome_fa-hotel_3W6s_:before{content:"\\F236"}.font-awesome_fa-viacoin_3b4Ln:before{content:"\\F237"}.font-awesome_fa-train_2mIFj:before{content:"\\F238"}.font-awesome_fa-subway_mahNW:before{content:"\\F239"}.font-awesome_fa-medium_2UIgR:before{content:"\\F23A"}.font-awesome_fa-y-combinator_l4_A9:before,.font-awesome_fa-yc_2pwL9:before{content:"\\F23B"}.font-awesome_fa-optin-monster_2Vo1M:before{content:"\\F23C"}.font-awesome_fa-opencart_2P3qK:before{content:"\\F23D"}.font-awesome_fa-expeditedssl_1ay3x:before{content:"\\F23E"}.font-awesome_fa-battery-4_1qRp1:before,.font-awesome_fa-battery-full_2fsqT:before{content:"\\F240"}.font-awesome_fa-battery-3_3WHzS:before,.font-awesome_fa-battery-three-quarters_dBjV8:before{content:"\\F241"}.font-awesome_fa-battery-2_2Pgt2:before,.font-awesome_fa-battery-half_2taE9:before{content:"\\F242"}.font-awesome_fa-battery-1_1R1Ww:before,.font-awesome_fa-battery-quarter_1sRcE:before{content:"\\F243"}.font-awesome_fa-battery-0_1zrhu:before,.font-awesome_fa-battery-empty_2Mn-c:before{content:"\\F244"}.font-awesome_fa-mouse-pointer_DbB5u:before{content:"\\F245"}.font-awesome_fa-i-cursor_xvyzh:before{content:"\\F246"}.font-awesome_fa-object-group_3K3tV:before{content:"\\F247"}.font-awesome_fa-object-ungroup_1ylE-:before{content:"\\F248"}.font-awesome_fa-sticky-note_1dK3l:before{content:"\\F249"}.font-awesome_fa-sticky-note-o_2zvyB:before{content:"\\F24A"}.font-awesome_fa-cc-jcb_Q7v9N:before{content:"\\F24B"}.font-awesome_fa-cc-diners-club_338EC:before{content:"\\F24C"}.font-awesome_fa-clone_2LPS7:before{content:"\\F24D"}.font-awesome_fa-balance-scale_3o2it:before{content:"\\F24E"}.font-awesome_fa-hourglass-o_15XJL:before{content:"\\F250"}.font-awesome_fa-hourglass-1_2iRUs:before,.font-awesome_fa-hourglass-start_qhpOV:before{content:"\\F251"}.font-awesome_fa-hourglass-2_2V0b5:before,.font-awesome_fa-hourglass-half_cF0Po:before{content:"\\F252"}.font-awesome_fa-hourglass-3_2-ugV:before,.font-awesome_fa-hourglass-end_3l-g6:before{content:"\\F253"}.font-awesome_fa-hourglass_1Ar7q:before{content:"\\F254"}.font-awesome_fa-hand-grab-o_3I7_Y:before,.font-awesome_fa-hand-rock-o_1Tb8S:before{content:"\\F255"}.font-awesome_fa-hand-paper-o_2dp3p:before,.font-awesome_fa-hand-stop-o_37eq3:before{content:"\\F256"}.font-awesome_fa-hand-scissors-o_tLXdy:before{content:"\\F257"}.font-awesome_fa-hand-lizard-o_2afn0:before{content:"\\F258"}.font-awesome_fa-hand-spock-o_22lUn:before{content:"\\F259"}.font-awesome_fa-hand-pointer-o_3EDBr:before{content:"\\F25A"}.font-awesome_fa-hand-peace-o_3KVDU:before{content:"\\F25B"}.font-awesome_fa-trademark_1pZSQ:before{content:"\\F25C"}.font-awesome_fa-registered_2bkiQ:before{content:"\\F25D"}.font-awesome_fa-creative-commons_19SOu:before{content:"\\F25E"}.font-awesome_fa-gg_8EwZk:before{content:"\\F260"}.font-awesome_fa-gg-circle_ixSHX:before{content:"\\F261"}.font-awesome_fa-tripadvisor_3SR4I:before{content:"\\F262"}.font-awesome_fa-odnoklassniki_18Bc_:before{content:"\\F263"}.font-awesome_fa-odnoklassniki-square_2tvme:before{content:"\\F264"}.font-awesome_fa-get-pocket_1kDeB:before{content:"\\F265"}.font-awesome_fa-wikipedia-w_2bnVT:before{content:"\\F266"}.font-awesome_fa-safari_1d_gp:before{content:"\\F267"}.font-awesome_fa-chrome_2lYJX:before{content:"\\F268"}.font-awesome_fa-firefox_3G1uV:before{content:"\\F269"}.font-awesome_fa-opera_2EABz:before{content:"\\F26A"}.font-awesome_fa-internet-explorer_2e6T2:before{content:"\\F26B"}.font-awesome_fa-television_1MplB:before,.font-awesome_fa-tv_pyAzy:before{content:"\\F26C"}.font-awesome_fa-contao_1BTJ5:before{content:"\\F26D"}.font-awesome_fa-500px_2dpFP:before{content:"\\F26E"}.font-awesome_fa-amazon_1J6OF:before{content:"\\F270"}.font-awesome_fa-calendar-plus-o_up6cZ:before{content:"\\F271"}.font-awesome_fa-calendar-minus-o_2wY7J:before{content:"\\F272"}.font-awesome_fa-calendar-times-o_1jaLQ:before{content:"\\F273"}.font-awesome_fa-calendar-check-o_3xoZC:before{content:"\\F274"}.font-awesome_fa-industry_3LSV8:before{content:"\\F275"}.font-awesome_fa-map-pin_1mpnW:before{content:"\\F276"}.font-awesome_fa-map-signs_21LXb:before{content:"\\F277"}.font-awesome_fa-map-o_1CDpd:before{content:"\\F278"}.font-awesome_fa-map_18QCe:before{content:"\\F279"}.font-awesome_fa-commenting_2oYYM:before{content:"\\F27A"}.font-awesome_fa-commenting-o_2BRal:before{content:"\\F27B"}.font-awesome_fa-houzz_13-hb:before{content:"\\F27C"}.font-awesome_fa-vimeo_3vcPv:before{content:"\\F27D"}.font-awesome_fa-black-tie_34h9B:before{content:"\\F27E"}.font-awesome_fa-fonticons_aNgtF:before{content:"\\F280"}.font-awesome_fa-reddit-alien_3f_aH:before{content:"\\F281"}.font-awesome_fa-edge_3UUWF:before{content:"\\F282"}.font-awesome_fa-credit-card-alt_oOWN1:before{content:"\\F283"}.font-awesome_fa-codiepie_2amwQ:before{content:"\\F284"}.font-awesome_fa-modx__HnMH:before{content:"\\F285"}.font-awesome_fa-fort-awesome_1Pxvs:before{content:"\\F286"}.font-awesome_fa-usb_2-FsD:before{content:"\\F287"}.font-awesome_fa-product-hunt_3WqRr:before{content:"\\F288"}.font-awesome_fa-mixcloud_2e01G:before{content:"\\F289"}.font-awesome_fa-scribd_1bAIo:before{content:"\\F28A"}.font-awesome_fa-pause-circle_3wI6c:before{content:"\\F28B"}.font-awesome_fa-pause-circle-o_2MdRS:before{content:"\\F28C"}.font-awesome_fa-stop-circle_3aZ6V:before{content:"\\F28D"}.font-awesome_fa-stop-circle-o_2oIr6:before{content:"\\F28E"}.font-awesome_fa-shopping-bag_2mD0w:before{content:"\\F290"}.font-awesome_fa-shopping-basket_2ZYTJ:before{content:"\\F291"}.font-awesome_fa-hashtag_1sHh4:before{content:"\\F292"}.font-awesome_fa-bluetooth_1tJ1-:before{content:"\\F293"}.font-awesome_fa-bluetooth-b_LmWTh:before{content:"\\F294"}.font-awesome_fa-percent_3jbSX:before{content:"\\F295"}',""]), +!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){(function(t){e.exports=t.ParaViewWeb=n(351)}).call(t,function(){return this}())},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,"/*!\n * Font Awesome 4.5.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url("+n(836)+");src:url("+n(835)+"?#iefix&v=4.5.0) format('embedded-opentype'),url("+n(839)+") format('woff2'),url("+n(840)+") format('woff'),url("+n(838)+") format('truetype'),url("+n(837)+'#fontawesomeregular) format(\'svg\');font-weight:400;font-style:normal}.font-awesome_fa_2otTb{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-awesome_fa-lg_2-2uP{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.font-awesome_fa-2x_2Mgjx{font-size:2em}.font-awesome_fa-3x_1gdsS{font-size:3em}.font-awesome_fa-4x_2VkGW{font-size:4em}.font-awesome_fa-5x_QKikc{font-size:5em}.font-awesome_fa-fw_1FdA5{width:1.28571429em;text-align:center}.font-awesome_fa-ul_2XTDQ{padding-left:0;margin-left:2.14285714em;list-style-type:none}.font-awesome_fa-ul_2XTDQ>li{position:relative}.font-awesome_fa-li_1vepp{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.font-awesome_fa-li_1vepp.font-awesome_fa-lg_2-2uP{left:-1.85714286em}.font-awesome_fa-border_6EUMg{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.font-awesome_fa-pull-left_3jHfw{float:left}.font-awesome_fa-pull-right_20ZAt{float:right}.font-awesome_fa_2otTb.font-awesome_fa-pull-left_3jHfw{margin-right:.3em}.font-awesome_fa_2otTb.font-awesome_fa-pull-right_20ZAt{margin-left:.3em}.font-awesome_pull-right_1Mb60{float:right}.font-awesome_pull-left_30vXl{float:left}.font-awesome_fa_2otTb.font-awesome_pull-left_30vXl{margin-right:.3em}.font-awesome_fa_2otTb.font-awesome_pull-right_1Mb60{margin-left:.3em}.font-awesome_fa-spin_NsqCr{-webkit-animation:font-awesome_fa-spin_NsqCr 2s infinite linear;animation:font-awesome_fa-spin_NsqCr 2s infinite linear}.font-awesome_fa-pulse_1Vv2f{-webkit-animation:font-awesome_fa-spin_NsqCr 1s infinite steps(8);animation:font-awesome_fa-spin_NsqCr 1s infinite steps(8)}@-webkit-keyframes font-awesome_fa-spin_NsqCr{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes font-awesome_fa-spin_NsqCr{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.font-awesome_fa-rotate-90_1snKw{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);transform:rotate(90deg)}.font-awesome_fa-rotate-180_2hMM8{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.font-awesome_fa-rotate-270_3eBDG{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);transform:rotate(270deg)}.font-awesome_fa-flip-horizontal_33SUC{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0,mirror=1);-webkit-transform:scaleX(-1);transform:scaleX(-1)}.font-awesome_fa-flip-vertical_klOOu{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2,mirror=1);-webkit-transform:scaleY(-1);transform:scaleY(-1)}:root .font-awesome_fa-flip-horizontal_33SUC,:root .font-awesome_fa-flip-vertical_klOOu,:root .font-awesome_fa-rotate-90_1snKw,:root .font-awesome_fa-rotate-180_2hMM8,:root .font-awesome_fa-rotate-270_3eBDG{-webkit-filter:none;filter:none}.font-awesome_fa-stack_3fqsM{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.font-awesome_fa-stack-1x_14Vb0,.font-awesome_fa-stack-2x_It5yP{position:absolute;left:0;width:100%;text-align:center}.font-awesome_fa-stack-1x_14Vb0{line-height:inherit}.font-awesome_fa-stack-2x_It5yP{font-size:2em}.font-awesome_fa-inverse_1e1EX{color:#fff}.font-awesome_fa-glass_34uit:before{content:"\\F000"}.font-awesome_fa-music_3f2s5:before{content:"\\F001"}.font-awesome_fa-search_1C7GK:before{content:"\\F002"}.font-awesome_fa-envelope-o_3EWEI:before{content:"\\F003"}.font-awesome_fa-heart_3DHYT:before{content:"\\F004"}.font-awesome_fa-star_2g4Ye:before{content:"\\F005"}.font-awesome_fa-star-o_3ty_o:before{content:"\\F006"}.font-awesome_fa-user_N3puO:before{content:"\\F007"}.font-awesome_fa-film_2qmKe:before{content:"\\F008"}.font-awesome_fa-th-large_2N4P8:before{content:"\\F009"}.font-awesome_fa-th_3f0mR:before{content:"\\F00A"}.font-awesome_fa-th-list_3qelJ:before{content:"\\F00B"}.font-awesome_fa-check_3DXVm:before{content:"\\F00C"}.font-awesome_fa-close_1zysR:before,.font-awesome_fa-remove_1MIYz:before,.font-awesome_fa-times_1Y-Cs:before{content:"\\F00D"}.font-awesome_fa-search-plus_9OGuc:before{content:"\\F00E"}.font-awesome_fa-search-minus_1j_Aj:before{content:"\\F010"}.font-awesome_fa-power-off_vPefe:before{content:"\\F011"}.font-awesome_fa-signal_1VxWh:before{content:"\\F012"}.font-awesome_fa-cog_30mdw:before,.font-awesome_fa-gear_yfzjv:before{content:"\\F013"}.font-awesome_fa-trash-o_2uFKh:before{content:"\\F014"}.font-awesome_fa-home_3Fr6e:before{content:"\\F015"}.font-awesome_fa-file-o_208AJ:before{content:"\\F016"}.font-awesome_fa-clock-o_3vfig:before{content:"\\F017"}.font-awesome_fa-road_2017v:before{content:"\\F018"}.font-awesome_fa-download_1TDS9:before{content:"\\F019"}.font-awesome_fa-arrow-circle-o-down_2M97h:before{content:"\\F01A"}.font-awesome_fa-arrow-circle-o-up_2aqY-:before{content:"\\F01B"}.font-awesome_fa-inbox_3bWnM:before{content:"\\F01C"}.font-awesome_fa-play-circle-o_3vU6r:before{content:"\\F01D"}.font-awesome_fa-repeat_27E0b:before,.font-awesome_fa-rotate-right_1E_3J:before{content:"\\F01E"}.font-awesome_fa-refresh_2AOlD:before{content:"\\F021"}.font-awesome_fa-list-alt_3nS4v:before{content:"\\F022"}.font-awesome_fa-lock_inyGT:before{content:"\\F023"}.font-awesome_fa-flag_1qWlx:before{content:"\\F024"}.font-awesome_fa-headphones_13olw:before{content:"\\F025"}.font-awesome_fa-volume-off_1llC2:before{content:"\\F026"}.font-awesome_fa-volume-down_1jTgZ:before{content:"\\F027"}.font-awesome_fa-volume-up_2XIXx:before{content:"\\F028"}.font-awesome_fa-qrcode_17ZaI:before{content:"\\F029"}.font-awesome_fa-barcode_1al4-:before{content:"\\F02A"}.font-awesome_fa-tag_2CMhy:before{content:"\\F02B"}.font-awesome_fa-tags_3kYb4:before{content:"\\F02C"}.font-awesome_fa-book_32JVT:before{content:"\\F02D"}.font-awesome_fa-bookmark_1s2Fl:before{content:"\\F02E"}.font-awesome_fa-print_y2Ezw:before{content:"\\F02F"}.font-awesome_fa-camera_Ls8dv:before{content:"\\F030"}.font-awesome_fa-font_1VH0X:before{content:"\\F031"}.font-awesome_fa-bold_11qyx:before{content:"\\F032"}.font-awesome_fa-italic_1Gtc3:before{content:"\\F033"}.font-awesome_fa-text-height_3db67:before{content:"\\F034"}.font-awesome_fa-text-width_2yBeb:before{content:"\\F035"}.font-awesome_fa-align-left_3DuVK:before{content:"\\F036"}.font-awesome_fa-align-center_M9xyY:before{content:"\\F037"}.font-awesome_fa-align-right_3Icru:before{content:"\\F038"}.font-awesome_fa-align-justify_maoNA:before{content:"\\F039"}.font-awesome_fa-list_3CT1m:before{content:"\\F03A"}.font-awesome_fa-dedent_3p5N-:before,.font-awesome_fa-outdent_34S6p:before{content:"\\F03B"}.font-awesome_fa-indent_2Y6xl:before{content:"\\F03C"}.font-awesome_fa-video-camera_2Tfna:before{content:"\\F03D"}.font-awesome_fa-image_l6mTT:before,.font-awesome_fa-photo_2f_lI:before,.font-awesome_fa-picture-o_3srts:before{content:"\\F03E"}.font-awesome_fa-pencil_3o0Fh:before{content:"\\F040"}.font-awesome_fa-map-marker_1Lc7q:before{content:"\\F041"}.font-awesome_fa-adjust_1uk96:before{content:"\\F042"}.font-awesome_fa-tint_23wIx:before{content:"\\F043"}.font-awesome_fa-edit_2ITK3:before,.font-awesome_fa-pencil-square-o_1jFx_:before{content:"\\F044"}.font-awesome_fa-share-square-o_1bC_y:before{content:"\\F045"}.font-awesome_fa-check-square-o_2eIdJ:before{content:"\\F046"}.font-awesome_fa-arrows_2tovc:before{content:"\\F047"}.font-awesome_fa-step-backward_1aJ3J:before{content:"\\F048"}.font-awesome_fa-fast-backward_rW1JQ:before{content:"\\F049"}.font-awesome_fa-backward_WWKjR:before{content:"\\F04A"}.font-awesome_fa-play_1vQTN:before{content:"\\F04B"}.font-awesome_fa-pause_33hRm:before{content:"\\F04C"}.font-awesome_fa-stop_1l1v_:before{content:"\\F04D"}.font-awesome_fa-forward_3jJNW:before{content:"\\F04E"}.font-awesome_fa-fast-forward_2JwE2:before{content:"\\F050"}.font-awesome_fa-step-forward_3NyZe:before{content:"\\F051"}.font-awesome_fa-eject_GA_Jm:before{content:"\\F052"}.font-awesome_fa-chevron-left_1EwAm:before{content:"\\F053"}.font-awesome_fa-chevron-right_3RxN_:before{content:"\\F054"}.font-awesome_fa-plus-circle_1SAMg:before{content:"\\F055"}.font-awesome_fa-minus-circle_Th8wG:before{content:"\\F056"}.font-awesome_fa-times-circle_JfW7D:before{content:"\\F057"}.font-awesome_fa-check-circle_PBRDH:before{content:"\\F058"}.font-awesome_fa-question-circle_33ykP:before{content:"\\F059"}.font-awesome_fa-info-circle_2ZdWr:before{content:"\\F05A"}.font-awesome_fa-crosshairs_18oYo:before{content:"\\F05B"}.font-awesome_fa-times-circle-o_3LLKK:before{content:"\\F05C"}.font-awesome_fa-check-circle-o_1CW2E:before{content:"\\F05D"}.font-awesome_fa-ban_1LOdy:before{content:"\\F05E"}.font-awesome_fa-arrow-left_2G_P0:before{content:"\\F060"}.font-awesome_fa-arrow-right_15DTA:before{content:"\\F061"}.font-awesome_fa-arrow-up_12gpU:before{content:"\\F062"}.font-awesome_fa-arrow-down_2zqoH:before{content:"\\F063"}.font-awesome_fa-mail-forward_2tQrw:before,.font-awesome_fa-share_3O8Dc:before{content:"\\F064"}.font-awesome_fa-expand_34Ihf:before{content:"\\F065"}.font-awesome_fa-compress_1JDdS:before{content:"\\F066"}.font-awesome_fa-plus_WEb-k:before{content:"\\F067"}.font-awesome_fa-minus_1WAd4:before{content:"\\F068"}.font-awesome_fa-asterisk_w7w6r:before{content:"\\F069"}.font-awesome_fa-exclamation-circle_2bbrU:before{content:"\\F06A"}.font-awesome_fa-gift_3bKvI:before{content:"\\F06B"}.font-awesome_fa-leaf_2B5Uf:before{content:"\\F06C"}.font-awesome_fa-fire_1qsDr:before{content:"\\F06D"}.font-awesome_fa-eye_3XRn0:before{content:"\\F06E"}.font-awesome_fa-eye-slash_18NEx:before{content:"\\F070"}.font-awesome_fa-exclamation-triangle_ttuT-:before,.font-awesome_fa-warning_32nGg:before{content:"\\F071"}.font-awesome_fa-plane_3L5mD:before{content:"\\F072"}.font-awesome_fa-calendar_1niuw:before{content:"\\F073"}.font-awesome_fa-random_2RH42:before{content:"\\F074"}.font-awesome_fa-comment_2koYW:before{content:"\\F075"}.font-awesome_fa-magnet_33k7m:before{content:"\\F076"}.font-awesome_fa-chevron-up_2R5R_:before{content:"\\F077"}.font-awesome_fa-chevron-down_746nC:before{content:"\\F078"}.font-awesome_fa-retweet_2ma5b:before{content:"\\F079"}.font-awesome_fa-shopping-cart_276KU:before{content:"\\F07A"}.font-awesome_fa-folder_2MMW6:before{content:"\\F07B"}.font-awesome_fa-folder-open_1a3bX:before{content:"\\F07C"}.font-awesome_fa-arrows-v_27J04:before{content:"\\F07D"}.font-awesome_fa-arrows-h_3EAQ6:before{content:"\\F07E"}.font-awesome_fa-bar-chart-o_BMSPQ:before,.font-awesome_fa-bar-chart_3LGib:before{content:"\\F080"}.font-awesome_fa-twitter-square_146CY:before{content:"\\F081"}.font-awesome_fa-facebook-square_3IbRT:before{content:"\\F082"}.font-awesome_fa-camera-retro_oM_mn:before{content:"\\F083"}.font-awesome_fa-key_3bV7M:before{content:"\\F084"}.font-awesome_fa-cogs_CqXH5:before,.font-awesome_fa-gears_3cjY1:before{content:"\\F085"}.font-awesome_fa-comments_2lUtO:before{content:"\\F086"}.font-awesome_fa-thumbs-o-up_3cD9j:before{content:"\\F087"}.font-awesome_fa-thumbs-o-down_3AeCO:before{content:"\\F088"}.font-awesome_fa-star-half_2zxdp:before{content:"\\F089"}.font-awesome_fa-heart-o_QI-Zl:before{content:"\\F08A"}.font-awesome_fa-sign-out_2IOU5:before{content:"\\F08B"}.font-awesome_fa-linkedin-square_3HkV4:before{content:"\\F08C"}.font-awesome_fa-thumb-tack_2gcw0:before{content:"\\F08D"}.font-awesome_fa-external-link_1ku_O:before{content:"\\F08E"}.font-awesome_fa-sign-in_1MYT-:before{content:"\\F090"}.font-awesome_fa-trophy_3CyBM:before{content:"\\F091"}.font-awesome_fa-github-square_1xm6W:before{content:"\\F092"}.font-awesome_fa-upload_wVRel:before{content:"\\F093"}.font-awesome_fa-lemon-o_2v3hR:before{content:"\\F094"}.font-awesome_fa-phone_1EiFR:before{content:"\\F095"}.font-awesome_fa-square-o_WbQ8x:before{content:"\\F096"}.font-awesome_fa-bookmark-o_1R5xe:before{content:"\\F097"}.font-awesome_fa-phone-square_3GkD1:before{content:"\\F098"}.font-awesome_fa-twitter_cyUBg:before{content:"\\F099"}.font-awesome_fa-facebook-f_3r4VF:before,.font-awesome_fa-facebook_f3EUw:before{content:"\\F09A"}.font-awesome_fa-github_MdgBC:before{content:"\\F09B"}.font-awesome_fa-unlock_XTSXp:before{content:"\\F09C"}.font-awesome_fa-credit-card_28S4q:before{content:"\\F09D"}.font-awesome_fa-feed_3tLbf:before,.font-awesome_fa-rss_3_EzS:before{content:"\\F09E"}.font-awesome_fa-hdd-o_3ZoO6:before{content:"\\F0A0"}.font-awesome_fa-bullhorn_3o7hz:before{content:"\\F0A1"}.font-awesome_fa-bell_26AZW:before{content:"\\F0F3"}.font-awesome_fa-certificate_11sLt:before{content:"\\F0A3"}.font-awesome_fa-hand-o-right_2G1w_:before{content:"\\F0A4"}.font-awesome_fa-hand-o-left_2KTOL:before{content:"\\F0A5"}.font-awesome_fa-hand-o-up_3xrkS:before{content:"\\F0A6"}.font-awesome_fa-hand-o-down_3cWAN:before{content:"\\F0A7"}.font-awesome_fa-arrow-circle-left_2CgFw:before{content:"\\F0A8"}.font-awesome_fa-arrow-circle-right_35XcE:before{content:"\\F0A9"}.font-awesome_fa-arrow-circle-up_FHcwE:before{content:"\\F0AA"}.font-awesome_fa-arrow-circle-down_1NJKi:before{content:"\\F0AB"}.font-awesome_fa-globe_2fYFX:before{content:"\\F0AC"}.font-awesome_fa-wrench_3snDo:before{content:"\\F0AD"}.font-awesome_fa-tasks_2_oS8:before{content:"\\F0AE"}.font-awesome_fa-filter_1q5k8:before{content:"\\F0B0"}.font-awesome_fa-briefcase_aikwY:before{content:"\\F0B1"}.font-awesome_fa-arrows-alt_1vqY9:before{content:"\\F0B2"}.font-awesome_fa-group_XbMo9:before,.font-awesome_fa-users_1PfY8:before{content:"\\F0C0"}.font-awesome_fa-chain_2QCgS:before,.font-awesome_fa-link_3kFkN:before{content:"\\F0C1"}.font-awesome_fa-cloud_2l8rd:before{content:"\\F0C2"}.font-awesome_fa-flask_3iTak:before{content:"\\F0C3"}.font-awesome_fa-cut_17wpt:before,.font-awesome_fa-scissors_1xAHX:before{content:"\\F0C4"}.font-awesome_fa-copy_a2GP3:before,.font-awesome_fa-files-o_2pUmI:before{content:"\\F0C5"}.font-awesome_fa-paperclip_d4foW:before{content:"\\F0C6"}.font-awesome_fa-floppy-o_1MBo6:before,.font-awesome_fa-save_10fTV:before{content:"\\F0C7"}.font-awesome_fa-square_N1IJZ:before{content:"\\F0C8"}.font-awesome_fa-bars_3WARK:before,.font-awesome_fa-navicon_3anpJ:before,.font-awesome_fa-reorder_2ukY7:before{content:"\\F0C9"}.font-awesome_fa-list-ul_3s6_2:before{content:"\\F0CA"}.font-awesome_fa-list-ol_AP-DO:before{content:"\\F0CB"}.font-awesome_fa-strikethrough_h0-a_:before{content:"\\F0CC"}.font-awesome_fa-underline_2PIFp:before{content:"\\F0CD"}.font-awesome_fa-table_2mEeT:before{content:"\\F0CE"}.font-awesome_fa-magic_qWQg_:before{content:"\\F0D0"}.font-awesome_fa-truck_1AsFs:before{content:"\\F0D1"}.font-awesome_fa-pinterest_1xKnl:before{content:"\\F0D2"}.font-awesome_fa-pinterest-square_3Yhwf:before{content:"\\F0D3"}.font-awesome_fa-google-plus-square_90VGD:before{content:"\\F0D4"}.font-awesome_fa-google-plus_1Tp-z:before{content:"\\F0D5"}.font-awesome_fa-money_32Lir:before{content:"\\F0D6"}.font-awesome_fa-caret-down_1crEO:before{content:"\\F0D7"}.font-awesome_fa-caret-up_2TwZv:before{content:"\\F0D8"}.font-awesome_fa-caret-left_39lOf:before{content:"\\F0D9"}.font-awesome_fa-caret-right_3p0nW:before{content:"\\F0DA"}.font-awesome_fa-columns_nToc3:before{content:"\\F0DB"}.font-awesome_fa-sort_F3dcY:before,.font-awesome_fa-unsorted_2nhbR:before{content:"\\F0DC"}.font-awesome_fa-sort-desc_3CQ5e:before,.font-awesome_fa-sort-down_3wTbK:before{content:"\\F0DD"}.font-awesome_fa-sort-asc_3MlT5:before,.font-awesome_fa-sort-up_Ad_bv:before{content:"\\F0DE"}.font-awesome_fa-envelope_3xnLD:before{content:"\\F0E0"}.font-awesome_fa-linkedin_25eMJ:before{content:"\\F0E1"}.font-awesome_fa-rotate-left_3mzU5:before,.font-awesome_fa-undo_hNldt:before{content:"\\F0E2"}.font-awesome_fa-gavel_2ttLP:before,.font-awesome_fa-legal_1C_3g:before{content:"\\F0E3"}.font-awesome_fa-dashboard_3bEM7:before,.font-awesome_fa-tachometer_3R5zx:before{content:"\\F0E4"}.font-awesome_fa-comment-o_2pEPg:before{content:"\\F0E5"}.font-awesome_fa-comments-o_hQJKS:before{content:"\\F0E6"}.font-awesome_fa-bolt_3iT3l:before,.font-awesome_fa-flash_1DU_v:before{content:"\\F0E7"}.font-awesome_fa-sitemap_QKmtm:before{content:"\\F0E8"}.font-awesome_fa-umbrella_3fE2k:before{content:"\\F0E9"}.font-awesome_fa-clipboard_1Wx9E:before,.font-awesome_fa-paste_3RUtK:before{content:"\\F0EA"}.font-awesome_fa-lightbulb-o_3MZxy:before{content:"\\F0EB"}.font-awesome_fa-exchange_1cgNj:before{content:"\\F0EC"}.font-awesome_fa-cloud-download_2fd-7:before{content:"\\F0ED"}.font-awesome_fa-cloud-upload_BCKnV:before{content:"\\F0EE"}.font-awesome_fa-user-md_3Unw6:before{content:"\\F0F0"}.font-awesome_fa-stethoscope_3TPjy:before{content:"\\F0F1"}.font-awesome_fa-suitcase_2ZK-F:before{content:"\\F0F2"}.font-awesome_fa-bell-o_3iuFm:before{content:"\\F0A2"}.font-awesome_fa-coffee_2tZxb:before{content:"\\F0F4"}.font-awesome_fa-cutlery_2dZZ2:before{content:"\\F0F5"}.font-awesome_fa-file-text-o_3vkBr:before{content:"\\F0F6"}.font-awesome_fa-building-o_1ML8l:before{content:"\\F0F7"}.font-awesome_fa-hospital-o_2dZPM:before{content:"\\F0F8"}.font-awesome_fa-ambulance_3oMTO:before{content:"\\F0F9"}.font-awesome_fa-medkit_3TuAD:before{content:"\\F0FA"}.font-awesome_fa-fighter-jet_2EPG4:before{content:"\\F0FB"}.font-awesome_fa-beer_25HMG:before{content:"\\F0FC"}.font-awesome_fa-h-square_iRMP3:before{content:"\\F0FD"}.font-awesome_fa-plus-square_28zW8:before{content:"\\F0FE"}.font-awesome_fa-angle-double-left_3Q7bL:before{content:"\\F100"}.font-awesome_fa-angle-double-right_2R24L:before{content:"\\F101"}.font-awesome_fa-angle-double-up_2GMJK:before{content:"\\F102"}.font-awesome_fa-angle-double-down_IlK-a:before{content:"\\F103"}.font-awesome_fa-angle-left_7b-ty:before{content:"\\F104"}.font-awesome_fa-angle-right_RfvDx:before{content:"\\F105"}.font-awesome_fa-angle-up_2xGkU:before{content:"\\F106"}.font-awesome_fa-angle-down_3nIhI:before{content:"\\F107"}.font-awesome_fa-desktop_7pHFF:before{content:"\\F108"}.font-awesome_fa-laptop_2QHxL:before{content:"\\F109"}.font-awesome_fa-tablet_eRAwh:before{content:"\\F10A"}.font-awesome_fa-mobile-phone_3tGZx:before,.font-awesome_fa-mobile_ry_56:before{content:"\\F10B"}.font-awesome_fa-circle-o_We1QB:before{content:"\\F10C"}.font-awesome_fa-quote-left_tgvF3:before{content:"\\F10D"}.font-awesome_fa-quote-right_2LbYu:before{content:"\\F10E"}.font-awesome_fa-spinner_1FgdF:before{content:"\\F110"}.font-awesome_fa-circle_RFG4V:before{content:"\\F111"}.font-awesome_fa-mail-reply_1ovuj:before,.font-awesome_fa-reply_1p4xy:before{content:"\\F112"}.font-awesome_fa-github-alt_PGZGn:before{content:"\\F113"}.font-awesome_fa-folder-o_28LsO:before{content:"\\F114"}.font-awesome_fa-folder-open-o_3Hbbz:before{content:"\\F115"}.font-awesome_fa-smile-o_3R1KH:before{content:"\\F118"}.font-awesome_fa-frown-o_1PJe6:before{content:"\\F119"}.font-awesome_fa-meh-o_1Yal3:before{content:"\\F11A"}.font-awesome_fa-gamepad_DQkX5:before{content:"\\F11B"}.font-awesome_fa-keyboard-o_1Zegg:before{content:"\\F11C"}.font-awesome_fa-flag-o_2paT4:before{content:"\\F11D"}.font-awesome_fa-flag-checkered_3Q50W:before{content:"\\F11E"}.font-awesome_fa-terminal_1y_ce:before{content:"\\F120"}.font-awesome_fa-code_373HL:before{content:"\\F121"}.font-awesome_fa-mail-reply-all_1el1h:before,.font-awesome_fa-reply-all_1XbQQ:before{content:"\\F122"}.font-awesome_fa-star-half-empty_NeM4g:before,.font-awesome_fa-star-half-full_3_GnR:before,.font-awesome_fa-star-half-o_1gMSG:before{content:"\\F123"}.font-awesome_fa-location-arrow_gFy0a:before{content:"\\F124"}.font-awesome_fa-crop_DFePA:before{content:"\\F125"}.font-awesome_fa-code-fork_rNRd0:before{content:"\\F126"}.font-awesome_fa-chain-broken_3nVk7:before,.font-awesome_fa-unlink_1hw62:before{content:"\\F127"}.font-awesome_fa-question_EAoIA:before{content:"\\F128"}.font-awesome_fa-info_2cQvQ:before{content:"\\F129"}.font-awesome_fa-exclamation_297uN:before{content:"\\F12A"}.font-awesome_fa-superscript_N7aMl:before{content:"\\F12B"}.font-awesome_fa-subscript_ZG4gQ:before{content:"\\F12C"}.font-awesome_fa-eraser_3NIuU:before{content:"\\F12D"}.font-awesome_fa-puzzle-piece_3lKWq:before{content:"\\F12E"}.font-awesome_fa-microphone_3_81_:before{content:"\\F130"}.font-awesome_fa-microphone-slash_1DyxC:before{content:"\\F131"}.font-awesome_fa-shield_1qKif:before{content:"\\F132"}.font-awesome_fa-calendar-o_1BLCm:before{content:"\\F133"}.font-awesome_fa-fire-extinguisher_3gz5K:before{content:"\\F134"}.font-awesome_fa-rocket_lfSov:before{content:"\\F135"}.font-awesome_fa-maxcdn_cD6Fn:before{content:"\\F136"}.font-awesome_fa-chevron-circle-left_1aac7:before{content:"\\F137"}.font-awesome_fa-chevron-circle-right_Evj_u:before{content:"\\F138"}.font-awesome_fa-chevron-circle-up_tTcaI:before{content:"\\F139"}.font-awesome_fa-chevron-circle-down_1oKtm:before{content:"\\F13A"}.font-awesome_fa-html5_3LZaq:before{content:"\\F13B"}.font-awesome_fa-css3_3hg4c:before{content:"\\F13C"}.font-awesome_fa-anchor_2-wZ3:before{content:"\\F13D"}.font-awesome_fa-unlock-alt_CLyLU:before{content:"\\F13E"}.font-awesome_fa-bullseye_6Sp1E:before{content:"\\F140"}.font-awesome_fa-ellipsis-h_4VBiE:before{content:"\\F141"}.font-awesome_fa-ellipsis-v_Ktjfe:before{content:"\\F142"}.font-awesome_fa-rss-square_4Vj2y:before{content:"\\F143"}.font-awesome_fa-play-circle_ECzau:before{content:"\\F144"}.font-awesome_fa-ticket_284VQ:before{content:"\\F145"}.font-awesome_fa-minus-square_3w_Do:before{content:"\\F146"}.font-awesome_fa-minus-square-o_qe1Jq:before{content:"\\F147"}.font-awesome_fa-level-up_7RnC1:before{content:"\\F148"}.font-awesome_fa-level-down_1rR4Q:before{content:"\\F149"}.font-awesome_fa-check-square_3Qxfb:before{content:"\\F14A"}.font-awesome_fa-pencil-square_3f_4W:before{content:"\\F14B"}.font-awesome_fa-external-link-square_3TfmM:before{content:"\\F14C"}.font-awesome_fa-share-square_4XEPu:before{content:"\\F14D"}.font-awesome_fa-compass_3kP2n:before{content:"\\F14E"}.font-awesome_fa-caret-square-o-down_1Ao-B:before,.font-awesome_fa-toggle-down_vVDIQ:before{content:"\\F150"}.font-awesome_fa-caret-square-o-up_1Lr5P:before,.font-awesome_fa-toggle-up_1j96l:before{content:"\\F151"}.font-awesome_fa-caret-square-o-right_Jc6ln:before,.font-awesome_fa-toggle-right_391jj:before{content:"\\F152"}.font-awesome_fa-eur_2JOH3:before,.font-awesome_fa-euro_1H752:before{content:"\\F153"}.font-awesome_fa-gbp_sXuSA:before{content:"\\F154"}.font-awesome_fa-dollar_1Qw2b:before,.font-awesome_fa-usd_1Cyf0:before{content:"\\F155"}.font-awesome_fa-inr_2v4ZE:before,.font-awesome_fa-rupee_3EdPr:before{content:"\\F156"}.font-awesome_fa-cny_3RNlL:before,.font-awesome_fa-jpy_CXaPK:before,.font-awesome_fa-rmb_vAGyw:before,.font-awesome_fa-yen_UH2C8:before{content:"\\F157"}.font-awesome_fa-rouble_fwC1R:before,.font-awesome_fa-rub_1c94U:before,.font-awesome_fa-ruble_1ms6_:before{content:"\\F158"}.font-awesome_fa-krw_xc7hv:before,.font-awesome_fa-won_1oqxL:before{content:"\\F159"}.font-awesome_fa-bitcoin_3h17C:before,.font-awesome_fa-btc_2EpsK:before{content:"\\F15A"}.font-awesome_fa-file_2_TBG:before{content:"\\F15B"}.font-awesome_fa-file-text_3uzzE:before{content:"\\F15C"}.font-awesome_fa-sort-alpha-asc_l6x9i:before{content:"\\F15D"}.font-awesome_fa-sort-alpha-desc_Au5Op:before{content:"\\F15E"}.font-awesome_fa-sort-amount-asc_a4pl1:before{content:"\\F160"}.font-awesome_fa-sort-amount-desc_sHYze:before{content:"\\F161"}.font-awesome_fa-sort-numeric-asc_2fl5U:before{content:"\\F162"}.font-awesome_fa-sort-numeric-desc_rZcNd:before{content:"\\F163"}.font-awesome_fa-thumbs-up_32LEl:before{content:"\\F164"}.font-awesome_fa-thumbs-down_115k7:before{content:"\\F165"}.font-awesome_fa-youtube-square_1HADK:before{content:"\\F166"}.font-awesome_fa-youtube_3PHGN:before{content:"\\F167"}.font-awesome_fa-xing_2fXmL:before{content:"\\F168"}.font-awesome_fa-xing-square_3AeWb:before{content:"\\F169"}.font-awesome_fa-youtube-play__uWZW:before{content:"\\F16A"}.font-awesome_fa-dropbox_1i2Rn:before{content:"\\F16B"}.font-awesome_fa-stack-overflow_2tkuN:before{content:"\\F16C"}.font-awesome_fa-instagram_1lV5f:before{content:"\\F16D"}.font-awesome_fa-flickr_3JrtG:before{content:"\\F16E"}.font-awesome_fa-adn_3a2Jf:before{content:"\\F170"}.font-awesome_fa-bitbucket_12Rp4:before{content:"\\F171"}.font-awesome_fa-bitbucket-square_Y0lMx:before{content:"\\F172"}.font-awesome_fa-tumblr_18aB6:before{content:"\\F173"}.font-awesome_fa-tumblr-square_3m4ld:before{content:"\\F174"}.font-awesome_fa-long-arrow-down_2His0:before{content:"\\F175"}.font-awesome_fa-long-arrow-up_vP_4l:before{content:"\\F176"}.font-awesome_fa-long-arrow-left_1Uldc:before{content:"\\F177"}.font-awesome_fa-long-arrow-right_1_jZV:before{content:"\\F178"}.font-awesome_fa-apple_3f0-D:before{content:"\\F179"}.font-awesome_fa-windows_2wDfa:before{content:"\\F17A"}.font-awesome_fa-android_1Wzt9:before{content:"\\F17B"}.font-awesome_fa-linux_3TBYa:before{content:"\\F17C"}.font-awesome_fa-dribbble_IliEV:before{content:"\\F17D"}.font-awesome_fa-skype_7ne23:before{content:"\\F17E"}.font-awesome_fa-foursquare_52T_Z:before{content:"\\F180"}.font-awesome_fa-trello_2ChtW:before{content:"\\F181"}.font-awesome_fa-female_q-oMT:before{content:"\\F182"}.font-awesome_fa-male_2PAqV:before{content:"\\F183"}.font-awesome_fa-gittip_2fxKq:before,.font-awesome_fa-gratipay_xLz4x:before{content:"\\F184"}.font-awesome_fa-sun-o_3QZ1O:before{content:"\\F185"}.font-awesome_fa-moon-o_ZwK6C:before{content:"\\F186"}.font-awesome_fa-archive_3FY1-:before{content:"\\F187"}.font-awesome_fa-bug_20yJn:before{content:"\\F188"}.font-awesome_fa-vk_1SLN3:before{content:"\\F189"}.font-awesome_fa-weibo_3q9BS:before{content:"\\F18A"}.font-awesome_fa-renren_27Rtg:before{content:"\\F18B"}.font-awesome_fa-pagelines_3FZd_:before{content:"\\F18C"}.font-awesome_fa-stack-exchange_1BbmA:before{content:"\\F18D"}.font-awesome_fa-arrow-circle-o-right_1lS0I:before{content:"\\F18E"}.font-awesome_fa-arrow-circle-o-left_270k0:before{content:"\\F190"}.font-awesome_fa-caret-square-o-left_3leFq:before,.font-awesome_fa-toggle-left_q8rS1:before{content:"\\F191"}.font-awesome_fa-dot-circle-o_fRUKP:before{content:"\\F192"}.font-awesome_fa-wheelchair_2sPWn:before{content:"\\F193"}.font-awesome_fa-vimeo-square_1nIhm:before{content:"\\F194"}.font-awesome_fa-try_1Olkg:before,.font-awesome_fa-turkish-lira_1bCbG:before{content:"\\F195"}.font-awesome_fa-plus-square-o_M6pBY:before{content:"\\F196"}.font-awesome_fa-space-shuttle_9kmJU:before{content:"\\F197"}.font-awesome_fa-slack_1EvN7:before{content:"\\F198"}.font-awesome_fa-envelope-square_3aqlc:before{content:"\\F199"}.font-awesome_fa-wordpress_2u9e0:before{content:"\\F19A"}.font-awesome_fa-openid_2QLde:before{content:"\\F19B"}.font-awesome_fa-bank_D8hxY:before,.font-awesome_fa-institution_2uHKo:before,.font-awesome_fa-university_3ECjv:before{content:"\\F19C"}.font-awesome_fa-graduation-cap_Y0mMc:before,.font-awesome_fa-mortar-board_1em7v:before{content:"\\F19D"}.font-awesome_fa-yahoo_33B-N:before{content:"\\F19E"}.font-awesome_fa-google_1QYVJ:before{content:"\\F1A0"}.font-awesome_fa-reddit_bwA4E:before{content:"\\F1A1"}.font-awesome_fa-reddit-square_3rRiq:before{content:"\\F1A2"}.font-awesome_fa-stumbleupon-circle_1TPid:before{content:"\\F1A3"}.font-awesome_fa-stumbleupon_14d1U:before{content:"\\F1A4"}.font-awesome_fa-delicious_3rkRQ:before{content:"\\F1A5"}.font-awesome_fa-digg_3bIOw:before{content:"\\F1A6"}.font-awesome_fa-pied-piper_1iXBb:before{content:"\\F1A7"}.font-awesome_fa-pied-piper-alt_3UjUa:before{content:"\\F1A8"}.font-awesome_fa-drupal_WQObj:before{content:"\\F1A9"}.font-awesome_fa-joomla_2UQVh:before{content:"\\F1AA"}.font-awesome_fa-language_DOnO2:before{content:"\\F1AB"}.font-awesome_fa-fax_1SV_d:before{content:"\\F1AC"}.font-awesome_fa-building_1FVgz:before{content:"\\F1AD"}.font-awesome_fa-child_2gTU4:before{content:"\\F1AE"}.font-awesome_fa-paw_NcsFR:before{content:"\\F1B0"}.font-awesome_fa-spoon_IxNyL:before{content:"\\F1B1"}.font-awesome_fa-cube_1Mq1-:before{content:"\\F1B2"}.font-awesome_fa-cubes_1tGnD:before{content:"\\F1B3"}.font-awesome_fa-behance_3mdMe:before{content:"\\F1B4"}.font-awesome_fa-behance-square_5ghK4:before{content:"\\F1B5"}.font-awesome_fa-steam_RIwxM:before{content:"\\F1B6"}.font-awesome_fa-steam-square_2QEJn:before{content:"\\F1B7"}.font-awesome_fa-recycle_-U8tZ:before{content:"\\F1B8"}.font-awesome_fa-automobile_3z3Dw:before,.font-awesome_fa-car_30pca:before{content:"\\F1B9"}.font-awesome_fa-cab_DDNE1:before,.font-awesome_fa-taxi_22WsM:before{content:"\\F1BA"}.font-awesome_fa-tree_3RDTB:before{content:"\\F1BB"}.font-awesome_fa-spotify_3UDVW:before{content:"\\F1BC"}.font-awesome_fa-deviantart_2ZxWy:before{content:"\\F1BD"}.font-awesome_fa-soundcloud_2ALXb:before{content:"\\F1BE"}.font-awesome_fa-database_1lI0N:before{content:"\\F1C0"}.font-awesome_fa-file-pdf-o_3kglo:before{content:"\\F1C1"}.font-awesome_fa-file-word-o_1UetZ:before{content:"\\F1C2"}.font-awesome_fa-file-excel-o_A4QBn:before{content:"\\F1C3"}.font-awesome_fa-file-powerpoint-o_rrLjs:before{content:"\\F1C4"}.font-awesome_fa-file-image-o_2lPT_:before,.font-awesome_fa-file-photo-o_2UoDO:before,.font-awesome_fa-file-picture-o_3Xjli:before{content:"\\F1C5"}.font-awesome_fa-file-archive-o_2Mk5P:before,.font-awesome_fa-file-zip-o_2FWRa:before{content:"\\F1C6"}.font-awesome_fa-file-audio-o_2PC2o:before,.font-awesome_fa-file-sound-o_1AcTq:before{content:"\\F1C7"}.font-awesome_fa-file-movie-o_VAP4m:before,.font-awesome_fa-file-video-o_34mPw:before{content:"\\F1C8"}.font-awesome_fa-file-code-o_1tJvu:before{content:"\\F1C9"}.font-awesome_fa-vine_26AR6:before{content:"\\F1CA"}.font-awesome_fa-codepen_2F2Jy:before{content:"\\F1CB"}.font-awesome_fa-jsfiddle_pH8-y:before{content:"\\F1CC"}.font-awesome_fa-life-bouy_3M9kq:before,.font-awesome_fa-life-buoy_-dMf6:before,.font-awesome_fa-life-ring_1x6lZ:before,.font-awesome_fa-life-saver_1NRqc:before,.font-awesome_fa-support_6Q01X:before{content:"\\F1CD"}.font-awesome_fa-circle-o-notch_cWGUO:before{content:"\\F1CE"}.font-awesome_fa-ra_2liTj:before,.font-awesome_fa-rebel_2UIOr:before{content:"\\F1D0"}.font-awesome_fa-empire_3Sw8V:before,.font-awesome_fa-ge_1f9_K:before{content:"\\F1D1"}.font-awesome_fa-git-square_DgHwD:before{content:"\\F1D2"}.font-awesome_fa-git_1dhi0:before{content:"\\F1D3"}.font-awesome_fa-hacker-news_CxkYC:before,.font-awesome_fa-y-combinator-square_lfSlT:before,.font-awesome_fa-yc-square_1Qf2g:before{content:"\\F1D4"}.font-awesome_fa-tencent-weibo_2-fdG:before{content:"\\F1D5"}.font-awesome_fa-qq_1OIck:before{content:"\\F1D6"}.font-awesome_fa-wechat_7Wqz8:before,.font-awesome_fa-weixin_2rvXg:before{content:"\\F1D7"}.font-awesome_fa-paper-plane_1JBzT:before,.font-awesome_fa-send_1PHOy:before{content:"\\F1D8"}.font-awesome_fa-paper-plane-o_Am7EP:before,.font-awesome_fa-send-o_1K3Am:before{content:"\\F1D9"}.font-awesome_fa-history_xEiAH:before{content:"\\F1DA"}.font-awesome_fa-circle-thin_OCNZt:before{content:"\\F1DB"}.font-awesome_fa-header_hMELn:before{content:"\\F1DC"}.font-awesome_fa-paragraph_2r_mD:before{content:"\\F1DD"}.font-awesome_fa-sliders_3eRoo:before{content:"\\F1DE"}.font-awesome_fa-share-alt_3jAY7:before{content:"\\F1E0"}.font-awesome_fa-share-alt-square_46dVM:before{content:"\\F1E1"}.font-awesome_fa-bomb_1WRhh:before{content:"\\F1E2"}.font-awesome_fa-futbol-o_Nqzpi:before,.font-awesome_fa-soccer-ball-o_3rmya:before{content:"\\F1E3"}.font-awesome_fa-tty_3BPj2:before{content:"\\F1E4"}.font-awesome_fa-binoculars_1vG29:before{content:"\\F1E5"}.font-awesome_fa-plug_1Lbxt:before{content:"\\F1E6"}.font-awesome_fa-slideshare_15ZAf:before{content:"\\F1E7"}.font-awesome_fa-twitch_MNLu3:before{content:"\\F1E8"}.font-awesome_fa-yelp_1c1W7:before{content:"\\F1E9"}.font-awesome_fa-newspaper-o_1ecUe:before{content:"\\F1EA"}.font-awesome_fa-wifi_dQ61U:before{content:"\\F1EB"}.font-awesome_fa-calculator_2q6GV:before{content:"\\F1EC"}.font-awesome_fa-paypal_3lmxL:before{content:"\\F1ED"}.font-awesome_fa-google-wallet_2K_aw:before{content:"\\F1EE"}.font-awesome_fa-cc-visa_2F8r8:before{content:"\\F1F0"}.font-awesome_fa-cc-mastercard_T8WQ_:before{content:"\\F1F1"}.font-awesome_fa-cc-discover_2QXm7:before{content:"\\F1F2"}.font-awesome_fa-cc-amex_2w-j8:before{content:"\\F1F3"}.font-awesome_fa-cc-paypal_gr0Zj:before{content:"\\F1F4"}.font-awesome_fa-cc-stripe_5ubxJ:before{content:"\\F1F5"}.font-awesome_fa-bell-slash_PIYu4:before{content:"\\F1F6"}.font-awesome_fa-bell-slash-o_PTM9c:before{content:"\\F1F7"}.font-awesome_fa-trash_-YVpH:before{content:"\\F1F8"}.font-awesome_fa-copyright_3Cj5D:before{content:"\\F1F9"}.font-awesome_fa-at_b7Ql8:before{content:"\\F1FA"}.font-awesome_fa-eyedropper_1rpAm:before{content:"\\F1FB"}.font-awesome_fa-paint-brush_3SJFh:before{content:"\\F1FC"}.font-awesome_fa-birthday-cake_-17FP:before{content:"\\F1FD"}.font-awesome_fa-area-chart_1fTy1:before{content:"\\F1FE"}.font-awesome_fa-pie-chart_2TXFj:before{content:"\\F200"}.font-awesome_fa-line-chart_20bFd:before{content:"\\F201"}.font-awesome_fa-lastfm_3sP7Z:before{content:"\\F202"}.font-awesome_fa-lastfm-square_3OBza:before{content:"\\F203"}.font-awesome_fa-toggle-off_2TP0s:before{content:"\\F204"}.font-awesome_fa-toggle-on_1ud4K:before{content:"\\F205"}.font-awesome_fa-bicycle_r_nn3:before{content:"\\F206"}.font-awesome_fa-bus_bm6kq:before{content:"\\F207"}.font-awesome_fa-ioxhost_yWiPs:before{content:"\\F208"}.font-awesome_fa-angellist_14KNT:before{content:"\\F209"}.font-awesome_fa-cc_VsUyp:before{content:"\\F20A"}.font-awesome_fa-ils_CYDSg:before,.font-awesome_fa-shekel_3RcTu:before,.font-awesome_fa-sheqel_2_Sde:before{content:"\\F20B"}.font-awesome_fa-meanpath_8Utkv:before{content:"\\F20C"}.font-awesome_fa-buysellads_3DmVj:before{content:"\\F20D"}.font-awesome_fa-connectdevelop_24BDl:before{content:"\\F20E"}.font-awesome_fa-dashcube_3gytt:before{content:"\\F210"}.font-awesome_fa-forumbee_1Xmr9:before{content:"\\F211"}.font-awesome_fa-leanpub_1qDwq:before{content:"\\F212"}.font-awesome_fa-sellsy_w39BK:before{content:"\\F213"}.font-awesome_fa-shirtsinbulk_3ht1E:before{content:"\\F214"}.font-awesome_fa-simplybuilt_1V2xv:before{content:"\\F215"}.font-awesome_fa-skyatlas_1HFEf:before{content:"\\F216"}.font-awesome_fa-cart-plus_zqpg9:before{content:"\\F217"}.font-awesome_fa-cart-arrow-down_vmvAL:before{content:"\\F218"}.font-awesome_fa-diamond_2YKSj:before{content:"\\F219"}.font-awesome_fa-ship_2d0Uf:before{content:"\\F21A"}.font-awesome_fa-user-secret_1JgJF:before{content:"\\F21B"}.font-awesome_fa-motorcycle_hAqgH:before{content:"\\F21C"}.font-awesome_fa-street-view_3xS1E:before{content:"\\F21D"}.font-awesome_fa-heartbeat_3SRsO:before{content:"\\F21E"}.font-awesome_fa-venus_3jRFX:before{content:"\\F221"}.font-awesome_fa-mars_2Le0W:before{content:"\\F222"}.font-awesome_fa-mercury_3-x4u:before{content:"\\F223"}.font-awesome_fa-intersex_26r-R:before,.font-awesome_fa-transgender_1hS0T:before{content:"\\F224"}.font-awesome_fa-transgender-alt_3_fBb:before{content:"\\F225"}.font-awesome_fa-venus-double_30rPd:before{content:"\\F226"}.font-awesome_fa-mars-double_3Xnoh:before{content:"\\F227"}.font-awesome_fa-venus-mars_2Ptfg:before{content:"\\F228"}.font-awesome_fa-mars-stroke_f9_Cu:before{content:"\\F229"}.font-awesome_fa-mars-stroke-v_1K5K9:before{content:"\\F22A"}.font-awesome_fa-mars-stroke-h_3azEl:before{content:"\\F22B"}.font-awesome_fa-neuter_1wUaY:before{content:"\\F22C"}.font-awesome_fa-genderless_3mEtZ:before{content:"\\F22D"}.font-awesome_fa-facebook-official_2NNdf:before{content:"\\F230"}.font-awesome_fa-pinterest-p_1Xpu_:before{content:"\\F231"}.font-awesome_fa-whatsapp_3G2qZ:before{content:"\\F232"}.font-awesome_fa-server_NVGtN:before{content:"\\F233"}.font-awesome_fa-user-plus_1UACc:before{content:"\\F234"}.font-awesome_fa-user-times_24FFx:before{content:"\\F235"}.font-awesome_fa-bed_1XbLs:before,.font-awesome_fa-hotel_3W6s_:before{content:"\\F236"}.font-awesome_fa-viacoin_3b4Ln:before{content:"\\F237"}.font-awesome_fa-train_2mIFj:before{content:"\\F238"}.font-awesome_fa-subway_mahNW:before{content:"\\F239"}.font-awesome_fa-medium_2UIgR:before{content:"\\F23A"}.font-awesome_fa-y-combinator_l4_A9:before,.font-awesome_fa-yc_2pwL9:before{content:"\\F23B"}.font-awesome_fa-optin-monster_2Vo1M:before{content:"\\F23C"}.font-awesome_fa-opencart_2P3qK:before{content:"\\F23D"}.font-awesome_fa-expeditedssl_1ay3x:before{content:"\\F23E"}.font-awesome_fa-battery-4_1qRp1:before,.font-awesome_fa-battery-full_2fsqT:before{content:"\\F240"}.font-awesome_fa-battery-3_3WHzS:before,.font-awesome_fa-battery-three-quarters_dBjV8:before{content:"\\F241"}.font-awesome_fa-battery-2_2Pgt2:before,.font-awesome_fa-battery-half_2taE9:before{content:"\\F242"}.font-awesome_fa-battery-1_1R1Ww:before,.font-awesome_fa-battery-quarter_1sRcE:before{content:"\\F243"}.font-awesome_fa-battery-0_1zrhu:before,.font-awesome_fa-battery-empty_2Mn-c:before{content:"\\F244"}.font-awesome_fa-mouse-pointer_DbB5u:before{content:"\\F245"}.font-awesome_fa-i-cursor_xvyzh:before{content:"\\F246"}.font-awesome_fa-object-group_3K3tV:before{content:"\\F247"}.font-awesome_fa-object-ungroup_1ylE-:before{content:"\\F248"}.font-awesome_fa-sticky-note_1dK3l:before{content:"\\F249"}.font-awesome_fa-sticky-note-o_2zvyB:before{content:"\\F24A"}.font-awesome_fa-cc-jcb_Q7v9N:before{content:"\\F24B"}.font-awesome_fa-cc-diners-club_338EC:before{content:"\\F24C"}.font-awesome_fa-clone_2LPS7:before{content:"\\F24D"}.font-awesome_fa-balance-scale_3o2it:before{content:"\\F24E"}.font-awesome_fa-hourglass-o_15XJL:before{content:"\\F250"}.font-awesome_fa-hourglass-1_2iRUs:before,.font-awesome_fa-hourglass-start_qhpOV:before{content:"\\F251"}.font-awesome_fa-hourglass-2_2V0b5:before,.font-awesome_fa-hourglass-half_cF0Po:before{content:"\\F252"}.font-awesome_fa-hourglass-3_2-ugV:before,.font-awesome_fa-hourglass-end_3l-g6:before{content:"\\F253"}.font-awesome_fa-hourglass_1Ar7q:before{content:"\\F254"}.font-awesome_fa-hand-grab-o_3I7_Y:before,.font-awesome_fa-hand-rock-o_1Tb8S:before{content:"\\F255"}.font-awesome_fa-hand-paper-o_2dp3p:before,.font-awesome_fa-hand-stop-o_37eq3:before{content:"\\F256"}.font-awesome_fa-hand-scissors-o_tLXdy:before{content:"\\F257"}.font-awesome_fa-hand-lizard-o_2afn0:before{content:"\\F258"}.font-awesome_fa-hand-spock-o_22lUn:before{content:"\\F259"}.font-awesome_fa-hand-pointer-o_3EDBr:before{content:"\\F25A"}.font-awesome_fa-hand-peace-o_3KVDU:before{content:"\\F25B"}.font-awesome_fa-trademark_1pZSQ:before{content:"\\F25C"}.font-awesome_fa-registered_2bkiQ:before{content:"\\F25D"}.font-awesome_fa-creative-commons_19SOu:before{content:"\\F25E"}.font-awesome_fa-gg_8EwZk:before{content:"\\F260"}.font-awesome_fa-gg-circle_ixSHX:before{content:"\\F261"}.font-awesome_fa-tripadvisor_3SR4I:before{content:"\\F262"}.font-awesome_fa-odnoklassniki_18Bc_:before{content:"\\F263"}.font-awesome_fa-odnoklassniki-square_2tvme:before{content:"\\F264"}.font-awesome_fa-get-pocket_1kDeB:before{content:"\\F265"}.font-awesome_fa-wikipedia-w_2bnVT:before{content:"\\F266"}.font-awesome_fa-safari_1d_gp:before{content:"\\F267"}.font-awesome_fa-chrome_2lYJX:before{content:"\\F268"}.font-awesome_fa-firefox_3G1uV:before{content:"\\F269"}.font-awesome_fa-opera_2EABz:before{content:"\\F26A"}.font-awesome_fa-internet-explorer_2e6T2:before{content:"\\F26B"}.font-awesome_fa-television_1MplB:before,.font-awesome_fa-tv_pyAzy:before{content:"\\F26C"}.font-awesome_fa-contao_1BTJ5:before{content:"\\F26D"}.font-awesome_fa-500px_2dpFP:before{content:"\\F26E"}.font-awesome_fa-amazon_1J6OF:before{content:"\\F270"}.font-awesome_fa-calendar-plus-o_up6cZ:before{content:"\\F271"}.font-awesome_fa-calendar-minus-o_2wY7J:before{content:"\\F272"}.font-awesome_fa-calendar-times-o_1jaLQ:before{content:"\\F273"}.font-awesome_fa-calendar-check-o_3xoZC:before{content:"\\F274"}.font-awesome_fa-industry_3LSV8:before{content:"\\F275"}.font-awesome_fa-map-pin_1mpnW:before{content:"\\F276"}.font-awesome_fa-map-signs_21LXb:before{content:"\\F277"}.font-awesome_fa-map-o_1CDpd:before{content:"\\F278"}.font-awesome_fa-map_18QCe:before{content:"\\F279"}.font-awesome_fa-commenting_2oYYM:before{content:"\\F27A"}.font-awesome_fa-commenting-o_2BRal:before{content:"\\F27B"}.font-awesome_fa-houzz_13-hb:before{content:"\\F27C"}.font-awesome_fa-vimeo_3vcPv:before{content:"\\F27D"}.font-awesome_fa-black-tie_34h9B:before{content:"\\F27E"}.font-awesome_fa-fonticons_aNgtF:before{content:"\\F280"}.font-awesome_fa-reddit-alien_3f_aH:before{content:"\\F281"}.font-awesome_fa-edge_3UUWF:before{content:"\\F282"}.font-awesome_fa-credit-card-alt_oOWN1:before{content:"\\F283"}.font-awesome_fa-codiepie_2amwQ:before{content:"\\F284"}.font-awesome_fa-modx__HnMH:before{content:"\\F285"}.font-awesome_fa-fort-awesome_1Pxvs:before{content:"\\F286"}.font-awesome_fa-usb_2-FsD:before{content:"\\F287"}.font-awesome_fa-product-hunt_3WqRr:before{content:"\\F288"}.font-awesome_fa-mixcloud_2e01G:before{content:"\\F289"}.font-awesome_fa-scribd_1bAIo:before{content:"\\F28A"}.font-awesome_fa-pause-circle_3wI6c:before{content:"\\F28B"}.font-awesome_fa-pause-circle-o_2MdRS:before{content:"\\F28C"}.font-awesome_fa-stop-circle_3aZ6V:before{content:"\\F28D"}.font-awesome_fa-stop-circle-o_2oIr6:before{content:"\\F28E"}.font-awesome_fa-shopping-bag_2mD0w:before{content:"\\F290"}.font-awesome_fa-shopping-basket_2ZYTJ:before{content:"\\F291"}.font-awesome_fa-hashtag_1sHh4:before{content:"\\F292"}.font-awesome_fa-bluetooth_1tJ1-:before{content:"\\F293"}.font-awesome_fa-bluetooth-b_LmWTh:before{content:"\\F294"}.font-awesome_fa-percent_3jbSX:before{content:"\\F295"}',""]), t.locals={fa:"font-awesome_fa_2otTb","fa-lg":"font-awesome_fa-lg_2-2uP","fa-2x":"font-awesome_fa-2x_2Mgjx","fa-3x":"font-awesome_fa-3x_1gdsS","fa-4x":"font-awesome_fa-4x_2VkGW","fa-5x":"font-awesome_fa-5x_QKikc","fa-fw":"font-awesome_fa-fw_1FdA5","fa-ul":"font-awesome_fa-ul_2XTDQ","fa-li":"font-awesome_fa-li_1vepp","fa-border":"font-awesome_fa-border_6EUMg","fa-pull-left":"font-awesome_fa-pull-left_3jHfw","fa-pull-right":"font-awesome_fa-pull-right_20ZAt","pull-right":"font-awesome_pull-right_1Mb60","pull-left":"font-awesome_pull-left_30vXl","fa-spin":"font-awesome_fa-spin_NsqCr","fa-pulse":"font-awesome_fa-pulse_1Vv2f","fa-rotate-90":"font-awesome_fa-rotate-90_1snKw","fa-rotate-180":"font-awesome_fa-rotate-180_2hMM8","fa-rotate-270":"font-awesome_fa-rotate-270_3eBDG","fa-flip-horizontal":"font-awesome_fa-flip-horizontal_33SUC","fa-flip-vertical":"font-awesome_fa-flip-vertical_klOOu","fa-stack":"font-awesome_fa-stack_3fqsM","fa-stack-1x":"font-awesome_fa-stack-1x_14Vb0","fa-stack-2x":"font-awesome_fa-stack-2x_It5yP","fa-inverse":"font-awesome_fa-inverse_1e1EX","fa-glass":"font-awesome_fa-glass_34uit","fa-music":"font-awesome_fa-music_3f2s5","fa-search":"font-awesome_fa-search_1C7GK","fa-envelope-o":"font-awesome_fa-envelope-o_3EWEI","fa-heart":"font-awesome_fa-heart_3DHYT","fa-star":"font-awesome_fa-star_2g4Ye","fa-star-o":"font-awesome_fa-star-o_3ty_o","fa-user":"font-awesome_fa-user_N3puO","fa-film":"font-awesome_fa-film_2qmKe","fa-th-large":"font-awesome_fa-th-large_2N4P8","fa-th":"font-awesome_fa-th_3f0mR","fa-th-list":"font-awesome_fa-th-list_3qelJ","fa-check":"font-awesome_fa-check_3DXVm","fa-remove":"font-awesome_fa-remove_1MIYz","fa-close":"font-awesome_fa-close_1zysR","fa-times":"font-awesome_fa-times_1Y-Cs","fa-search-plus":"font-awesome_fa-search-plus_9OGuc","fa-search-minus":"font-awesome_fa-search-minus_1j_Aj","fa-power-off":"font-awesome_fa-power-off_vPefe","fa-signal":"font-awesome_fa-signal_1VxWh","fa-gear":"font-awesome_fa-gear_yfzjv","fa-cog":"font-awesome_fa-cog_30mdw","fa-trash-o":"font-awesome_fa-trash-o_2uFKh","fa-home":"font-awesome_fa-home_3Fr6e","fa-file-o":"font-awesome_fa-file-o_208AJ","fa-clock-o":"font-awesome_fa-clock-o_3vfig","fa-road":"font-awesome_fa-road_2017v","fa-download":"font-awesome_fa-download_1TDS9","fa-arrow-circle-o-down":"font-awesome_fa-arrow-circle-o-down_2M97h","fa-arrow-circle-o-up":"font-awesome_fa-arrow-circle-o-up_2aqY-","fa-inbox":"font-awesome_fa-inbox_3bWnM","fa-play-circle-o":"font-awesome_fa-play-circle-o_3vU6r","fa-rotate-right":"font-awesome_fa-rotate-right_1E_3J","fa-repeat":"font-awesome_fa-repeat_27E0b","fa-refresh":"font-awesome_fa-refresh_2AOlD","fa-list-alt":"font-awesome_fa-list-alt_3nS4v","fa-lock":"font-awesome_fa-lock_inyGT","fa-flag":"font-awesome_fa-flag_1qWlx","fa-headphones":"font-awesome_fa-headphones_13olw","fa-volume-off":"font-awesome_fa-volume-off_1llC2","fa-volume-down":"font-awesome_fa-volume-down_1jTgZ","fa-volume-up":"font-awesome_fa-volume-up_2XIXx","fa-qrcode":"font-awesome_fa-qrcode_17ZaI","fa-barcode":"font-awesome_fa-barcode_1al4-","fa-tag":"font-awesome_fa-tag_2CMhy","fa-tags":"font-awesome_fa-tags_3kYb4","fa-book":"font-awesome_fa-book_32JVT","fa-bookmark":"font-awesome_fa-bookmark_1s2Fl","fa-print":"font-awesome_fa-print_y2Ezw","fa-camera":"font-awesome_fa-camera_Ls8dv","fa-font":"font-awesome_fa-font_1VH0X","fa-bold":"font-awesome_fa-bold_11qyx","fa-italic":"font-awesome_fa-italic_1Gtc3","fa-text-height":"font-awesome_fa-text-height_3db67","fa-text-width":"font-awesome_fa-text-width_2yBeb","fa-align-left":"font-awesome_fa-align-left_3DuVK","fa-align-center":"font-awesome_fa-align-center_M9xyY","fa-align-right":"font-awesome_fa-align-right_3Icru","fa-align-justify":"font-awesome_fa-align-justify_maoNA","fa-list":"font-awesome_fa-list_3CT1m","fa-dedent":"font-awesome_fa-dedent_3p5N-","fa-outdent":"font-awesome_fa-outdent_34S6p","fa-indent":"font-awesome_fa-indent_2Y6xl","fa-video-camera":"font-awesome_fa-video-camera_2Tfna","fa-photo":"font-awesome_fa-photo_2f_lI","fa-image":"font-awesome_fa-image_l6mTT","fa-picture-o":"font-awesome_fa-picture-o_3srts","fa-pencil":"font-awesome_fa-pencil_3o0Fh","fa-map-marker":"font-awesome_fa-map-marker_1Lc7q","fa-adjust":"font-awesome_fa-adjust_1uk96","fa-tint":"font-awesome_fa-tint_23wIx","fa-edit":"font-awesome_fa-edit_2ITK3","fa-pencil-square-o":"font-awesome_fa-pencil-square-o_1jFx_","fa-share-square-o":"font-awesome_fa-share-square-o_1bC_y","fa-check-square-o":"font-awesome_fa-check-square-o_2eIdJ","fa-arrows":"font-awesome_fa-arrows_2tovc","fa-step-backward":"font-awesome_fa-step-backward_1aJ3J","fa-fast-backward":"font-awesome_fa-fast-backward_rW1JQ","fa-backward":"font-awesome_fa-backward_WWKjR","fa-play":"font-awesome_fa-play_1vQTN","fa-pause":"font-awesome_fa-pause_33hRm","fa-stop":"font-awesome_fa-stop_1l1v_","fa-forward":"font-awesome_fa-forward_3jJNW","fa-fast-forward":"font-awesome_fa-fast-forward_2JwE2","fa-step-forward":"font-awesome_fa-step-forward_3NyZe","fa-eject":"font-awesome_fa-eject_GA_Jm","fa-chevron-left":"font-awesome_fa-chevron-left_1EwAm","fa-chevron-right":"font-awesome_fa-chevron-right_3RxN_","fa-plus-circle":"font-awesome_fa-plus-circle_1SAMg","fa-minus-circle":"font-awesome_fa-minus-circle_Th8wG","fa-times-circle":"font-awesome_fa-times-circle_JfW7D","fa-check-circle":"font-awesome_fa-check-circle_PBRDH","fa-question-circle":"font-awesome_fa-question-circle_33ykP","fa-info-circle":"font-awesome_fa-info-circle_2ZdWr","fa-crosshairs":"font-awesome_fa-crosshairs_18oYo","fa-times-circle-o":"font-awesome_fa-times-circle-o_3LLKK","fa-check-circle-o":"font-awesome_fa-check-circle-o_1CW2E","fa-ban":"font-awesome_fa-ban_1LOdy","fa-arrow-left":"font-awesome_fa-arrow-left_2G_P0","fa-arrow-right":"font-awesome_fa-arrow-right_15DTA","fa-arrow-up":"font-awesome_fa-arrow-up_12gpU","fa-arrow-down":"font-awesome_fa-arrow-down_2zqoH","fa-mail-forward":"font-awesome_fa-mail-forward_2tQrw","fa-share":"font-awesome_fa-share_3O8Dc","fa-expand":"font-awesome_fa-expand_34Ihf","fa-compress":"font-awesome_fa-compress_1JDdS","fa-plus":"font-awesome_fa-plus_WEb-k","fa-minus":"font-awesome_fa-minus_1WAd4","fa-asterisk":"font-awesome_fa-asterisk_w7w6r","fa-exclamation-circle":"font-awesome_fa-exclamation-circle_2bbrU","fa-gift":"font-awesome_fa-gift_3bKvI","fa-leaf":"font-awesome_fa-leaf_2B5Uf","fa-fire":"font-awesome_fa-fire_1qsDr","fa-eye":"font-awesome_fa-eye_3XRn0","fa-eye-slash":"font-awesome_fa-eye-slash_18NEx","fa-warning":"font-awesome_fa-warning_32nGg","fa-exclamation-triangle":"font-awesome_fa-exclamation-triangle_ttuT-","fa-plane":"font-awesome_fa-plane_3L5mD","fa-calendar":"font-awesome_fa-calendar_1niuw","fa-random":"font-awesome_fa-random_2RH42","fa-comment":"font-awesome_fa-comment_2koYW","fa-magnet":"font-awesome_fa-magnet_33k7m","fa-chevron-up":"font-awesome_fa-chevron-up_2R5R_","fa-chevron-down":"font-awesome_fa-chevron-down_746nC","fa-retweet":"font-awesome_fa-retweet_2ma5b","fa-shopping-cart":"font-awesome_fa-shopping-cart_276KU","fa-folder":"font-awesome_fa-folder_2MMW6","fa-folder-open":"font-awesome_fa-folder-open_1a3bX","fa-arrows-v":"font-awesome_fa-arrows-v_27J04","fa-arrows-h":"font-awesome_fa-arrows-h_3EAQ6","fa-bar-chart-o":"font-awesome_fa-bar-chart-o_BMSPQ","fa-bar-chart":"font-awesome_fa-bar-chart_3LGib","fa-twitter-square":"font-awesome_fa-twitter-square_146CY","fa-facebook-square":"font-awesome_fa-facebook-square_3IbRT","fa-camera-retro":"font-awesome_fa-camera-retro_oM_mn","fa-key":"font-awesome_fa-key_3bV7M","fa-gears":"font-awesome_fa-gears_3cjY1","fa-cogs":"font-awesome_fa-cogs_CqXH5","fa-comments":"font-awesome_fa-comments_2lUtO","fa-thumbs-o-up":"font-awesome_fa-thumbs-o-up_3cD9j","fa-thumbs-o-down":"font-awesome_fa-thumbs-o-down_3AeCO","fa-star-half":"font-awesome_fa-star-half_2zxdp","fa-heart-o":"font-awesome_fa-heart-o_QI-Zl","fa-sign-out":"font-awesome_fa-sign-out_2IOU5","fa-linkedin-square":"font-awesome_fa-linkedin-square_3HkV4","fa-thumb-tack":"font-awesome_fa-thumb-tack_2gcw0","fa-external-link":"font-awesome_fa-external-link_1ku_O","fa-sign-in":"font-awesome_fa-sign-in_1MYT-","fa-trophy":"font-awesome_fa-trophy_3CyBM","fa-github-square":"font-awesome_fa-github-square_1xm6W","fa-upload":"font-awesome_fa-upload_wVRel","fa-lemon-o":"font-awesome_fa-lemon-o_2v3hR","fa-phone":"font-awesome_fa-phone_1EiFR","fa-square-o":"font-awesome_fa-square-o_WbQ8x","fa-bookmark-o":"font-awesome_fa-bookmark-o_1R5xe","fa-phone-square":"font-awesome_fa-phone-square_3GkD1","fa-twitter":"font-awesome_fa-twitter_cyUBg","fa-facebook-f":"font-awesome_fa-facebook-f_3r4VF","fa-facebook":"font-awesome_fa-facebook_f3EUw","fa-github":"font-awesome_fa-github_MdgBC","fa-unlock":"font-awesome_fa-unlock_XTSXp","fa-credit-card":"font-awesome_fa-credit-card_28S4q","fa-feed":"font-awesome_fa-feed_3tLbf","fa-rss":"font-awesome_fa-rss_3_EzS","fa-hdd-o":"font-awesome_fa-hdd-o_3ZoO6","fa-bullhorn":"font-awesome_fa-bullhorn_3o7hz","fa-bell":"font-awesome_fa-bell_26AZW","fa-certificate":"font-awesome_fa-certificate_11sLt","fa-hand-o-right":"font-awesome_fa-hand-o-right_2G1w_","fa-hand-o-left":"font-awesome_fa-hand-o-left_2KTOL","fa-hand-o-up":"font-awesome_fa-hand-o-up_3xrkS","fa-hand-o-down":"font-awesome_fa-hand-o-down_3cWAN","fa-arrow-circle-left":"font-awesome_fa-arrow-circle-left_2CgFw","fa-arrow-circle-right":"font-awesome_fa-arrow-circle-right_35XcE","fa-arrow-circle-up":"font-awesome_fa-arrow-circle-up_FHcwE","fa-arrow-circle-down":"font-awesome_fa-arrow-circle-down_1NJKi","fa-globe":"font-awesome_fa-globe_2fYFX","fa-wrench":"font-awesome_fa-wrench_3snDo","fa-tasks":"font-awesome_fa-tasks_2_oS8","fa-filter":"font-awesome_fa-filter_1q5k8","fa-briefcase":"font-awesome_fa-briefcase_aikwY","fa-arrows-alt":"font-awesome_fa-arrows-alt_1vqY9","fa-group":"font-awesome_fa-group_XbMo9","fa-users":"font-awesome_fa-users_1PfY8","fa-chain":"font-awesome_fa-chain_2QCgS","fa-link":"font-awesome_fa-link_3kFkN","fa-cloud":"font-awesome_fa-cloud_2l8rd","fa-flask":"font-awesome_fa-flask_3iTak","fa-cut":"font-awesome_fa-cut_17wpt","fa-scissors":"font-awesome_fa-scissors_1xAHX","fa-copy":"font-awesome_fa-copy_a2GP3","fa-files-o":"font-awesome_fa-files-o_2pUmI","fa-paperclip":"font-awesome_fa-paperclip_d4foW","fa-save":"font-awesome_fa-save_10fTV","fa-floppy-o":"font-awesome_fa-floppy-o_1MBo6","fa-square":"font-awesome_fa-square_N1IJZ","fa-navicon":"font-awesome_fa-navicon_3anpJ","fa-reorder":"font-awesome_fa-reorder_2ukY7","fa-bars":"font-awesome_fa-bars_3WARK","fa-list-ul":"font-awesome_fa-list-ul_3s6_2","fa-list-ol":"font-awesome_fa-list-ol_AP-DO","fa-strikethrough":"font-awesome_fa-strikethrough_h0-a_","fa-underline":"font-awesome_fa-underline_2PIFp","fa-table":"font-awesome_fa-table_2mEeT","fa-magic":"font-awesome_fa-magic_qWQg_","fa-truck":"font-awesome_fa-truck_1AsFs","fa-pinterest":"font-awesome_fa-pinterest_1xKnl","fa-pinterest-square":"font-awesome_fa-pinterest-square_3Yhwf","fa-google-plus-square":"font-awesome_fa-google-plus-square_90VGD","fa-google-plus":"font-awesome_fa-google-plus_1Tp-z","fa-money":"font-awesome_fa-money_32Lir","fa-caret-down":"font-awesome_fa-caret-down_1crEO","fa-caret-up":"font-awesome_fa-caret-up_2TwZv","fa-caret-left":"font-awesome_fa-caret-left_39lOf","fa-caret-right":"font-awesome_fa-caret-right_3p0nW","fa-columns":"font-awesome_fa-columns_nToc3","fa-unsorted":"font-awesome_fa-unsorted_2nhbR","fa-sort":"font-awesome_fa-sort_F3dcY","fa-sort-down":"font-awesome_fa-sort-down_3wTbK","fa-sort-desc":"font-awesome_fa-sort-desc_3CQ5e","fa-sort-up":"font-awesome_fa-sort-up_Ad_bv","fa-sort-asc":"font-awesome_fa-sort-asc_3MlT5","fa-envelope":"font-awesome_fa-envelope_3xnLD","fa-linkedin":"font-awesome_fa-linkedin_25eMJ","fa-rotate-left":"font-awesome_fa-rotate-left_3mzU5","fa-undo":"font-awesome_fa-undo_hNldt","fa-legal":"font-awesome_fa-legal_1C_3g","fa-gavel":"font-awesome_fa-gavel_2ttLP","fa-dashboard":"font-awesome_fa-dashboard_3bEM7","fa-tachometer":"font-awesome_fa-tachometer_3R5zx","fa-comment-o":"font-awesome_fa-comment-o_2pEPg","fa-comments-o":"font-awesome_fa-comments-o_hQJKS","fa-flash":"font-awesome_fa-flash_1DU_v","fa-bolt":"font-awesome_fa-bolt_3iT3l","fa-sitemap":"font-awesome_fa-sitemap_QKmtm","fa-umbrella":"font-awesome_fa-umbrella_3fE2k","fa-paste":"font-awesome_fa-paste_3RUtK","fa-clipboard":"font-awesome_fa-clipboard_1Wx9E","fa-lightbulb-o":"font-awesome_fa-lightbulb-o_3MZxy","fa-exchange":"font-awesome_fa-exchange_1cgNj","fa-cloud-download":"font-awesome_fa-cloud-download_2fd-7","fa-cloud-upload":"font-awesome_fa-cloud-upload_BCKnV","fa-user-md":"font-awesome_fa-user-md_3Unw6","fa-stethoscope":"font-awesome_fa-stethoscope_3TPjy","fa-suitcase":"font-awesome_fa-suitcase_2ZK-F","fa-bell-o":"font-awesome_fa-bell-o_3iuFm","fa-coffee":"font-awesome_fa-coffee_2tZxb","fa-cutlery":"font-awesome_fa-cutlery_2dZZ2","fa-file-text-o":"font-awesome_fa-file-text-o_3vkBr","fa-building-o":"font-awesome_fa-building-o_1ML8l","fa-hospital-o":"font-awesome_fa-hospital-o_2dZPM","fa-ambulance":"font-awesome_fa-ambulance_3oMTO","fa-medkit":"font-awesome_fa-medkit_3TuAD","fa-fighter-jet":"font-awesome_fa-fighter-jet_2EPG4","fa-beer":"font-awesome_fa-beer_25HMG","fa-h-square":"font-awesome_fa-h-square_iRMP3","fa-plus-square":"font-awesome_fa-plus-square_28zW8","fa-angle-double-left":"font-awesome_fa-angle-double-left_3Q7bL","fa-angle-double-right":"font-awesome_fa-angle-double-right_2R24L","fa-angle-double-up":"font-awesome_fa-angle-double-up_2GMJK","fa-angle-double-down":"font-awesome_fa-angle-double-down_IlK-a","fa-angle-left":"font-awesome_fa-angle-left_7b-ty","fa-angle-right":"font-awesome_fa-angle-right_RfvDx","fa-angle-up":"font-awesome_fa-angle-up_2xGkU","fa-angle-down":"font-awesome_fa-angle-down_3nIhI","fa-desktop":"font-awesome_fa-desktop_7pHFF","fa-laptop":"font-awesome_fa-laptop_2QHxL","fa-tablet":"font-awesome_fa-tablet_eRAwh","fa-mobile-phone":"font-awesome_fa-mobile-phone_3tGZx","fa-mobile":"font-awesome_fa-mobile_ry_56","fa-circle-o":"font-awesome_fa-circle-o_We1QB","fa-quote-left":"font-awesome_fa-quote-left_tgvF3","fa-quote-right":"font-awesome_fa-quote-right_2LbYu","fa-spinner":"font-awesome_fa-spinner_1FgdF","fa-circle":"font-awesome_fa-circle_RFG4V","fa-mail-reply":"font-awesome_fa-mail-reply_1ovuj","fa-reply":"font-awesome_fa-reply_1p4xy","fa-github-alt":"font-awesome_fa-github-alt_PGZGn","fa-folder-o":"font-awesome_fa-folder-o_28LsO","fa-folder-open-o":"font-awesome_fa-folder-open-o_3Hbbz","fa-smile-o":"font-awesome_fa-smile-o_3R1KH","fa-frown-o":"font-awesome_fa-frown-o_1PJe6","fa-meh-o":"font-awesome_fa-meh-o_1Yal3","fa-gamepad":"font-awesome_fa-gamepad_DQkX5","fa-keyboard-o":"font-awesome_fa-keyboard-o_1Zegg","fa-flag-o":"font-awesome_fa-flag-o_2paT4","fa-flag-checkered":"font-awesome_fa-flag-checkered_3Q50W","fa-terminal":"font-awesome_fa-terminal_1y_ce","fa-code":"font-awesome_fa-code_373HL","fa-mail-reply-all":"font-awesome_fa-mail-reply-all_1el1h","fa-reply-all":"font-awesome_fa-reply-all_1XbQQ","fa-star-half-empty":"font-awesome_fa-star-half-empty_NeM4g","fa-star-half-full":"font-awesome_fa-star-half-full_3_GnR","fa-star-half-o":"font-awesome_fa-star-half-o_1gMSG","fa-location-arrow":"font-awesome_fa-location-arrow_gFy0a","fa-crop":"font-awesome_fa-crop_DFePA","fa-code-fork":"font-awesome_fa-code-fork_rNRd0","fa-unlink":"font-awesome_fa-unlink_1hw62","fa-chain-broken":"font-awesome_fa-chain-broken_3nVk7","fa-question":"font-awesome_fa-question_EAoIA","fa-info":"font-awesome_fa-info_2cQvQ","fa-exclamation":"font-awesome_fa-exclamation_297uN","fa-superscript":"font-awesome_fa-superscript_N7aMl","fa-subscript":"font-awesome_fa-subscript_ZG4gQ","fa-eraser":"font-awesome_fa-eraser_3NIuU","fa-puzzle-piece":"font-awesome_fa-puzzle-piece_3lKWq","fa-microphone":"font-awesome_fa-microphone_3_81_","fa-microphone-slash":"font-awesome_fa-microphone-slash_1DyxC","fa-shield":"font-awesome_fa-shield_1qKif","fa-calendar-o":"font-awesome_fa-calendar-o_1BLCm","fa-fire-extinguisher":"font-awesome_fa-fire-extinguisher_3gz5K","fa-rocket":"font-awesome_fa-rocket_lfSov","fa-maxcdn":"font-awesome_fa-maxcdn_cD6Fn","fa-chevron-circle-left":"font-awesome_fa-chevron-circle-left_1aac7","fa-chevron-circle-right":"font-awesome_fa-chevron-circle-right_Evj_u","fa-chevron-circle-up":"font-awesome_fa-chevron-circle-up_tTcaI","fa-chevron-circle-down":"font-awesome_fa-chevron-circle-down_1oKtm","fa-html5":"font-awesome_fa-html5_3LZaq","fa-css3":"font-awesome_fa-css3_3hg4c","fa-anchor":"font-awesome_fa-anchor_2-wZ3","fa-unlock-alt":"font-awesome_fa-unlock-alt_CLyLU","fa-bullseye":"font-awesome_fa-bullseye_6Sp1E","fa-ellipsis-h":"font-awesome_fa-ellipsis-h_4VBiE","fa-ellipsis-v":"font-awesome_fa-ellipsis-v_Ktjfe","fa-rss-square":"font-awesome_fa-rss-square_4Vj2y","fa-play-circle":"font-awesome_fa-play-circle_ECzau","fa-ticket":"font-awesome_fa-ticket_284VQ","fa-minus-square":"font-awesome_fa-minus-square_3w_Do","fa-minus-square-o":"font-awesome_fa-minus-square-o_qe1Jq","fa-level-up":"font-awesome_fa-level-up_7RnC1","fa-level-down":"font-awesome_fa-level-down_1rR4Q","fa-check-square":"font-awesome_fa-check-square_3Qxfb","fa-pencil-square":"font-awesome_fa-pencil-square_3f_4W","fa-external-link-square":"font-awesome_fa-external-link-square_3TfmM","fa-share-square":"font-awesome_fa-share-square_4XEPu","fa-compass":"font-awesome_fa-compass_3kP2n","fa-toggle-down":"font-awesome_fa-toggle-down_vVDIQ","fa-caret-square-o-down":"font-awesome_fa-caret-square-o-down_1Ao-B","fa-toggle-up":"font-awesome_fa-toggle-up_1j96l","fa-caret-square-o-up":"font-awesome_fa-caret-square-o-up_1Lr5P","fa-toggle-right":"font-awesome_fa-toggle-right_391jj","fa-caret-square-o-right":"font-awesome_fa-caret-square-o-right_Jc6ln","fa-euro":"font-awesome_fa-euro_1H752","fa-eur":"font-awesome_fa-eur_2JOH3","fa-gbp":"font-awesome_fa-gbp_sXuSA","fa-dollar":"font-awesome_fa-dollar_1Qw2b","fa-usd":"font-awesome_fa-usd_1Cyf0","fa-rupee":"font-awesome_fa-rupee_3EdPr","fa-inr":"font-awesome_fa-inr_2v4ZE","fa-cny":"font-awesome_fa-cny_3RNlL","fa-rmb":"font-awesome_fa-rmb_vAGyw","fa-yen":"font-awesome_fa-yen_UH2C8","fa-jpy":"font-awesome_fa-jpy_CXaPK","fa-ruble":"font-awesome_fa-ruble_1ms6_","fa-rouble":"font-awesome_fa-rouble_fwC1R","fa-rub":"font-awesome_fa-rub_1c94U","fa-won":"font-awesome_fa-won_1oqxL","fa-krw":"font-awesome_fa-krw_xc7hv","fa-bitcoin":"font-awesome_fa-bitcoin_3h17C","fa-btc":"font-awesome_fa-btc_2EpsK","fa-file":"font-awesome_fa-file_2_TBG","fa-file-text":"font-awesome_fa-file-text_3uzzE","fa-sort-alpha-asc":"font-awesome_fa-sort-alpha-asc_l6x9i","fa-sort-alpha-desc":"font-awesome_fa-sort-alpha-desc_Au5Op","fa-sort-amount-asc":"font-awesome_fa-sort-amount-asc_a4pl1","fa-sort-amount-desc":"font-awesome_fa-sort-amount-desc_sHYze","fa-sort-numeric-asc":"font-awesome_fa-sort-numeric-asc_2fl5U","fa-sort-numeric-desc":"font-awesome_fa-sort-numeric-desc_rZcNd","fa-thumbs-up":"font-awesome_fa-thumbs-up_32LEl","fa-thumbs-down":"font-awesome_fa-thumbs-down_115k7","fa-youtube-square":"font-awesome_fa-youtube-square_1HADK","fa-youtube":"font-awesome_fa-youtube_3PHGN","fa-xing":"font-awesome_fa-xing_2fXmL","fa-xing-square":"font-awesome_fa-xing-square_3AeWb","fa-youtube-play":"font-awesome_fa-youtube-play__uWZW","fa-dropbox":"font-awesome_fa-dropbox_1i2Rn","fa-stack-overflow":"font-awesome_fa-stack-overflow_2tkuN","fa-instagram":"font-awesome_fa-instagram_1lV5f","fa-flickr":"font-awesome_fa-flickr_3JrtG","fa-adn":"font-awesome_fa-adn_3a2Jf","fa-bitbucket":"font-awesome_fa-bitbucket_12Rp4","fa-bitbucket-square":"font-awesome_fa-bitbucket-square_Y0lMx","fa-tumblr":"font-awesome_fa-tumblr_18aB6","fa-tumblr-square":"font-awesome_fa-tumblr-square_3m4ld","fa-long-arrow-down":"font-awesome_fa-long-arrow-down_2His0","fa-long-arrow-up":"font-awesome_fa-long-arrow-up_vP_4l","fa-long-arrow-left":"font-awesome_fa-long-arrow-left_1Uldc","fa-long-arrow-right":"font-awesome_fa-long-arrow-right_1_jZV","fa-apple":"font-awesome_fa-apple_3f0-D","fa-windows":"font-awesome_fa-windows_2wDfa","fa-android":"font-awesome_fa-android_1Wzt9","fa-linux":"font-awesome_fa-linux_3TBYa","fa-dribbble":"font-awesome_fa-dribbble_IliEV","fa-skype":"font-awesome_fa-skype_7ne23","fa-foursquare":"font-awesome_fa-foursquare_52T_Z","fa-trello":"font-awesome_fa-trello_2ChtW","fa-female":"font-awesome_fa-female_q-oMT","fa-male":"font-awesome_fa-male_2PAqV","fa-gittip":"font-awesome_fa-gittip_2fxKq","fa-gratipay":"font-awesome_fa-gratipay_xLz4x","fa-sun-o":"font-awesome_fa-sun-o_3QZ1O","fa-moon-o":"font-awesome_fa-moon-o_ZwK6C","fa-archive":"font-awesome_fa-archive_3FY1-","fa-bug":"font-awesome_fa-bug_20yJn","fa-vk":"font-awesome_fa-vk_1SLN3","fa-weibo":"font-awesome_fa-weibo_3q9BS","fa-renren":"font-awesome_fa-renren_27Rtg","fa-pagelines":"font-awesome_fa-pagelines_3FZd_","fa-stack-exchange":"font-awesome_fa-stack-exchange_1BbmA","fa-arrow-circle-o-right":"font-awesome_fa-arrow-circle-o-right_1lS0I","fa-arrow-circle-o-left":"font-awesome_fa-arrow-circle-o-left_270k0","fa-toggle-left":"font-awesome_fa-toggle-left_q8rS1","fa-caret-square-o-left":"font-awesome_fa-caret-square-o-left_3leFq","fa-dot-circle-o":"font-awesome_fa-dot-circle-o_fRUKP","fa-wheelchair":"font-awesome_fa-wheelchair_2sPWn","fa-vimeo-square":"font-awesome_fa-vimeo-square_1nIhm","fa-turkish-lira":"font-awesome_fa-turkish-lira_1bCbG","fa-try":"font-awesome_fa-try_1Olkg","fa-plus-square-o":"font-awesome_fa-plus-square-o_M6pBY","fa-space-shuttle":"font-awesome_fa-space-shuttle_9kmJU","fa-slack":"font-awesome_fa-slack_1EvN7","fa-envelope-square":"font-awesome_fa-envelope-square_3aqlc","fa-wordpress":"font-awesome_fa-wordpress_2u9e0","fa-openid":"font-awesome_fa-openid_2QLde","fa-institution":"font-awesome_fa-institution_2uHKo","fa-bank":"font-awesome_fa-bank_D8hxY","fa-university":"font-awesome_fa-university_3ECjv","fa-mortar-board":"font-awesome_fa-mortar-board_1em7v","fa-graduation-cap":"font-awesome_fa-graduation-cap_Y0mMc","fa-yahoo":"font-awesome_fa-yahoo_33B-N","fa-google":"font-awesome_fa-google_1QYVJ","fa-reddit":"font-awesome_fa-reddit_bwA4E","fa-reddit-square":"font-awesome_fa-reddit-square_3rRiq","fa-stumbleupon-circle":"font-awesome_fa-stumbleupon-circle_1TPid","fa-stumbleupon":"font-awesome_fa-stumbleupon_14d1U","fa-delicious":"font-awesome_fa-delicious_3rkRQ","fa-digg":"font-awesome_fa-digg_3bIOw","fa-pied-piper":"font-awesome_fa-pied-piper_1iXBb","fa-pied-piper-alt":"font-awesome_fa-pied-piper-alt_3UjUa","fa-drupal":"font-awesome_fa-drupal_WQObj","fa-joomla":"font-awesome_fa-joomla_2UQVh","fa-language":"font-awesome_fa-language_DOnO2","fa-fax":"font-awesome_fa-fax_1SV_d","fa-building":"font-awesome_fa-building_1FVgz","fa-child":"font-awesome_fa-child_2gTU4","fa-paw":"font-awesome_fa-paw_NcsFR","fa-spoon":"font-awesome_fa-spoon_IxNyL","fa-cube":"font-awesome_fa-cube_1Mq1-","fa-cubes":"font-awesome_fa-cubes_1tGnD","fa-behance":"font-awesome_fa-behance_3mdMe","fa-behance-square":"font-awesome_fa-behance-square_5ghK4","fa-steam":"font-awesome_fa-steam_RIwxM","fa-steam-square":"font-awesome_fa-steam-square_2QEJn","fa-recycle":"font-awesome_fa-recycle_-U8tZ","fa-automobile":"font-awesome_fa-automobile_3z3Dw","fa-car":"font-awesome_fa-car_30pca","fa-cab":"font-awesome_fa-cab_DDNE1","fa-taxi":"font-awesome_fa-taxi_22WsM","fa-tree":"font-awesome_fa-tree_3RDTB","fa-spotify":"font-awesome_fa-spotify_3UDVW","fa-deviantart":"font-awesome_fa-deviantart_2ZxWy","fa-soundcloud":"font-awesome_fa-soundcloud_2ALXb","fa-database":"font-awesome_fa-database_1lI0N","fa-file-pdf-o":"font-awesome_fa-file-pdf-o_3kglo","fa-file-word-o":"font-awesome_fa-file-word-o_1UetZ","fa-file-excel-o":"font-awesome_fa-file-excel-o_A4QBn","fa-file-powerpoint-o":"font-awesome_fa-file-powerpoint-o_rrLjs","fa-file-photo-o":"font-awesome_fa-file-photo-o_2UoDO","fa-file-picture-o":"font-awesome_fa-file-picture-o_3Xjli","fa-file-image-o":"font-awesome_fa-file-image-o_2lPT_","fa-file-zip-o":"font-awesome_fa-file-zip-o_2FWRa","fa-file-archive-o":"font-awesome_fa-file-archive-o_2Mk5P","fa-file-sound-o":"font-awesome_fa-file-sound-o_1AcTq","fa-file-audio-o":"font-awesome_fa-file-audio-o_2PC2o","fa-file-movie-o":"font-awesome_fa-file-movie-o_VAP4m","fa-file-video-o":"font-awesome_fa-file-video-o_34mPw","fa-file-code-o":"font-awesome_fa-file-code-o_1tJvu","fa-vine":"font-awesome_fa-vine_26AR6","fa-codepen":"font-awesome_fa-codepen_2F2Jy","fa-jsfiddle":"font-awesome_fa-jsfiddle_pH8-y","fa-life-bouy":"font-awesome_fa-life-bouy_3M9kq","fa-life-buoy":"font-awesome_fa-life-buoy_-dMf6","fa-life-saver":"font-awesome_fa-life-saver_1NRqc","fa-support":"font-awesome_fa-support_6Q01X","fa-life-ring":"font-awesome_fa-life-ring_1x6lZ","fa-circle-o-notch":"font-awesome_fa-circle-o-notch_cWGUO","fa-ra":"font-awesome_fa-ra_2liTj","fa-rebel":"font-awesome_fa-rebel_2UIOr","fa-ge":"font-awesome_fa-ge_1f9_K","fa-empire":"font-awesome_fa-empire_3Sw8V","fa-git-square":"font-awesome_fa-git-square_DgHwD","fa-git":"font-awesome_fa-git_1dhi0","fa-y-combinator-square":"font-awesome_fa-y-combinator-square_lfSlT","fa-yc-square":"font-awesome_fa-yc-square_1Qf2g","fa-hacker-news":"font-awesome_fa-hacker-news_CxkYC","fa-tencent-weibo":"font-awesome_fa-tencent-weibo_2-fdG","fa-qq":"font-awesome_fa-qq_1OIck","fa-wechat":"font-awesome_fa-wechat_7Wqz8","fa-weixin":"font-awesome_fa-weixin_2rvXg","fa-send":"font-awesome_fa-send_1PHOy","fa-paper-plane":"font-awesome_fa-paper-plane_1JBzT","fa-send-o":"font-awesome_fa-send-o_1K3Am","fa-paper-plane-o":"font-awesome_fa-paper-plane-o_Am7EP","fa-history":"font-awesome_fa-history_xEiAH","fa-circle-thin":"font-awesome_fa-circle-thin_OCNZt","fa-header":"font-awesome_fa-header_hMELn","fa-paragraph":"font-awesome_fa-paragraph_2r_mD","fa-sliders":"font-awesome_fa-sliders_3eRoo","fa-share-alt":"font-awesome_fa-share-alt_3jAY7","fa-share-alt-square":"font-awesome_fa-share-alt-square_46dVM","fa-bomb":"font-awesome_fa-bomb_1WRhh","fa-soccer-ball-o":"font-awesome_fa-soccer-ball-o_3rmya","fa-futbol-o":"font-awesome_fa-futbol-o_Nqzpi","fa-tty":"font-awesome_fa-tty_3BPj2","fa-binoculars":"font-awesome_fa-binoculars_1vG29","fa-plug":"font-awesome_fa-plug_1Lbxt","fa-slideshare":"font-awesome_fa-slideshare_15ZAf","fa-twitch":"font-awesome_fa-twitch_MNLu3","fa-yelp":"font-awesome_fa-yelp_1c1W7","fa-newspaper-o":"font-awesome_fa-newspaper-o_1ecUe","fa-wifi":"font-awesome_fa-wifi_dQ61U","fa-calculator":"font-awesome_fa-calculator_2q6GV","fa-paypal":"font-awesome_fa-paypal_3lmxL","fa-google-wallet":"font-awesome_fa-google-wallet_2K_aw","fa-cc-visa":"font-awesome_fa-cc-visa_2F8r8","fa-cc-mastercard":"font-awesome_fa-cc-mastercard_T8WQ_","fa-cc-discover":"font-awesome_fa-cc-discover_2QXm7","fa-cc-amex":"font-awesome_fa-cc-amex_2w-j8","fa-cc-paypal":"font-awesome_fa-cc-paypal_gr0Zj","fa-cc-stripe":"font-awesome_fa-cc-stripe_5ubxJ","fa-bell-slash":"font-awesome_fa-bell-slash_PIYu4","fa-bell-slash-o":"font-awesome_fa-bell-slash-o_PTM9c","fa-trash":"font-awesome_fa-trash_-YVpH","fa-copyright":"font-awesome_fa-copyright_3Cj5D","fa-at":"font-awesome_fa-at_b7Ql8","fa-eyedropper":"font-awesome_fa-eyedropper_1rpAm","fa-paint-brush":"font-awesome_fa-paint-brush_3SJFh","fa-birthday-cake":"font-awesome_fa-birthday-cake_-17FP","fa-area-chart":"font-awesome_fa-area-chart_1fTy1","fa-pie-chart":"font-awesome_fa-pie-chart_2TXFj","fa-line-chart":"font-awesome_fa-line-chart_20bFd","fa-lastfm":"font-awesome_fa-lastfm_3sP7Z","fa-lastfm-square":"font-awesome_fa-lastfm-square_3OBza","fa-toggle-off":"font-awesome_fa-toggle-off_2TP0s","fa-toggle-on":"font-awesome_fa-toggle-on_1ud4K","fa-bicycle":"font-awesome_fa-bicycle_r_nn3","fa-bus":"font-awesome_fa-bus_bm6kq","fa-ioxhost":"font-awesome_fa-ioxhost_yWiPs","fa-angellist":"font-awesome_fa-angellist_14KNT","fa-cc":"font-awesome_fa-cc_VsUyp","fa-shekel":"font-awesome_fa-shekel_3RcTu","fa-sheqel":"font-awesome_fa-sheqel_2_Sde","fa-ils":"font-awesome_fa-ils_CYDSg","fa-meanpath":"font-awesome_fa-meanpath_8Utkv","fa-buysellads":"font-awesome_fa-buysellads_3DmVj","fa-connectdevelop":"font-awesome_fa-connectdevelop_24BDl","fa-dashcube":"font-awesome_fa-dashcube_3gytt","fa-forumbee":"font-awesome_fa-forumbee_1Xmr9","fa-leanpub":"font-awesome_fa-leanpub_1qDwq","fa-sellsy":"font-awesome_fa-sellsy_w39BK","fa-shirtsinbulk":"font-awesome_fa-shirtsinbulk_3ht1E","fa-simplybuilt":"font-awesome_fa-simplybuilt_1V2xv","fa-skyatlas":"font-awesome_fa-skyatlas_1HFEf","fa-cart-plus":"font-awesome_fa-cart-plus_zqpg9","fa-cart-arrow-down":"font-awesome_fa-cart-arrow-down_vmvAL","fa-diamond":"font-awesome_fa-diamond_2YKSj","fa-ship":"font-awesome_fa-ship_2d0Uf","fa-user-secret":"font-awesome_fa-user-secret_1JgJF","fa-motorcycle":"font-awesome_fa-motorcycle_hAqgH","fa-street-view":"font-awesome_fa-street-view_3xS1E","fa-heartbeat":"font-awesome_fa-heartbeat_3SRsO","fa-venus":"font-awesome_fa-venus_3jRFX","fa-mars":"font-awesome_fa-mars_2Le0W","fa-mercury":"font-awesome_fa-mercury_3-x4u","fa-intersex":"font-awesome_fa-intersex_26r-R","fa-transgender":"font-awesome_fa-transgender_1hS0T","fa-transgender-alt":"font-awesome_fa-transgender-alt_3_fBb","fa-venus-double":"font-awesome_fa-venus-double_30rPd","fa-mars-double":"font-awesome_fa-mars-double_3Xnoh","fa-venus-mars":"font-awesome_fa-venus-mars_2Ptfg","fa-mars-stroke":"font-awesome_fa-mars-stroke_f9_Cu","fa-mars-stroke-v":"font-awesome_fa-mars-stroke-v_1K5K9","fa-mars-stroke-h":"font-awesome_fa-mars-stroke-h_3azEl","fa-neuter":"font-awesome_fa-neuter_1wUaY","fa-genderless":"font-awesome_fa-genderless_3mEtZ","fa-facebook-official":"font-awesome_fa-facebook-official_2NNdf","fa-pinterest-p":"font-awesome_fa-pinterest-p_1Xpu_","fa-whatsapp":"font-awesome_fa-whatsapp_3G2qZ","fa-server":"font-awesome_fa-server_NVGtN","fa-user-plus":"font-awesome_fa-user-plus_1UACc","fa-user-times":"font-awesome_fa-user-times_24FFx","fa-hotel":"font-awesome_fa-hotel_3W6s_","fa-bed":"font-awesome_fa-bed_1XbLs","fa-viacoin":"font-awesome_fa-viacoin_3b4Ln","fa-train":"font-awesome_fa-train_2mIFj","fa-subway":"font-awesome_fa-subway_mahNW","fa-medium":"font-awesome_fa-medium_2UIgR","fa-yc":"font-awesome_fa-yc_2pwL9","fa-y-combinator":"font-awesome_fa-y-combinator_l4_A9","fa-optin-monster":"font-awesome_fa-optin-monster_2Vo1M","fa-opencart":"font-awesome_fa-opencart_2P3qK","fa-expeditedssl":"font-awesome_fa-expeditedssl_1ay3x","fa-battery-4":"font-awesome_fa-battery-4_1qRp1","fa-battery-full":"font-awesome_fa-battery-full_2fsqT","fa-battery-3":"font-awesome_fa-battery-3_3WHzS","fa-battery-three-quarters":"font-awesome_fa-battery-three-quarters_dBjV8","fa-battery-2":"font-awesome_fa-battery-2_2Pgt2","fa-battery-half":"font-awesome_fa-battery-half_2taE9","fa-battery-1":"font-awesome_fa-battery-1_1R1Ww","fa-battery-quarter":"font-awesome_fa-battery-quarter_1sRcE","fa-battery-0":"font-awesome_fa-battery-0_1zrhu","fa-battery-empty":"font-awesome_fa-battery-empty_2Mn-c","fa-mouse-pointer":"font-awesome_fa-mouse-pointer_DbB5u","fa-i-cursor":"font-awesome_fa-i-cursor_xvyzh","fa-object-group":"font-awesome_fa-object-group_3K3tV","fa-object-ungroup":"font-awesome_fa-object-ungroup_1ylE-","fa-sticky-note":"font-awesome_fa-sticky-note_1dK3l","fa-sticky-note-o":"font-awesome_fa-sticky-note-o_2zvyB","fa-cc-jcb":"font-awesome_fa-cc-jcb_Q7v9N","fa-cc-diners-club":"font-awesome_fa-cc-diners-club_338EC","fa-clone":"font-awesome_fa-clone_2LPS7","fa-balance-scale":"font-awesome_fa-balance-scale_3o2it","fa-hourglass-o":"font-awesome_fa-hourglass-o_15XJL","fa-hourglass-1":"font-awesome_fa-hourglass-1_2iRUs","fa-hourglass-start":"font-awesome_fa-hourglass-start_qhpOV","fa-hourglass-2":"font-awesome_fa-hourglass-2_2V0b5","fa-hourglass-half":"font-awesome_fa-hourglass-half_cF0Po","fa-hourglass-3":"font-awesome_fa-hourglass-3_2-ugV","fa-hourglass-end":"font-awesome_fa-hourglass-end_3l-g6","fa-hourglass":"font-awesome_fa-hourglass_1Ar7q","fa-hand-grab-o":"font-awesome_fa-hand-grab-o_3I7_Y","fa-hand-rock-o":"font-awesome_fa-hand-rock-o_1Tb8S","fa-hand-stop-o":"font-awesome_fa-hand-stop-o_37eq3","fa-hand-paper-o":"font-awesome_fa-hand-paper-o_2dp3p","fa-hand-scissors-o":"font-awesome_fa-hand-scissors-o_tLXdy","fa-hand-lizard-o":"font-awesome_fa-hand-lizard-o_2afn0", -"fa-hand-spock-o":"font-awesome_fa-hand-spock-o_22lUn","fa-hand-pointer-o":"font-awesome_fa-hand-pointer-o_3EDBr","fa-hand-peace-o":"font-awesome_fa-hand-peace-o_3KVDU","fa-trademark":"font-awesome_fa-trademark_1pZSQ","fa-registered":"font-awesome_fa-registered_2bkiQ","fa-creative-commons":"font-awesome_fa-creative-commons_19SOu","fa-gg":"font-awesome_fa-gg_8EwZk","fa-gg-circle":"font-awesome_fa-gg-circle_ixSHX","fa-tripadvisor":"font-awesome_fa-tripadvisor_3SR4I","fa-odnoklassniki":"font-awesome_fa-odnoklassniki_18Bc_","fa-odnoklassniki-square":"font-awesome_fa-odnoklassniki-square_2tvme","fa-get-pocket":"font-awesome_fa-get-pocket_1kDeB","fa-wikipedia-w":"font-awesome_fa-wikipedia-w_2bnVT","fa-safari":"font-awesome_fa-safari_1d_gp","fa-chrome":"font-awesome_fa-chrome_2lYJX","fa-firefox":"font-awesome_fa-firefox_3G1uV","fa-opera":"font-awesome_fa-opera_2EABz","fa-internet-explorer":"font-awesome_fa-internet-explorer_2e6T2","fa-tv":"font-awesome_fa-tv_pyAzy","fa-television":"font-awesome_fa-television_1MplB","fa-contao":"font-awesome_fa-contao_1BTJ5","fa-500px":"font-awesome_fa-500px_2dpFP","fa-amazon":"font-awesome_fa-amazon_1J6OF","fa-calendar-plus-o":"font-awesome_fa-calendar-plus-o_up6cZ","fa-calendar-minus-o":"font-awesome_fa-calendar-minus-o_2wY7J","fa-calendar-times-o":"font-awesome_fa-calendar-times-o_1jaLQ","fa-calendar-check-o":"font-awesome_fa-calendar-check-o_3xoZC","fa-industry":"font-awesome_fa-industry_3LSV8","fa-map-pin":"font-awesome_fa-map-pin_1mpnW","fa-map-signs":"font-awesome_fa-map-signs_21LXb","fa-map-o":"font-awesome_fa-map-o_1CDpd","fa-map":"font-awesome_fa-map_18QCe","fa-commenting":"font-awesome_fa-commenting_2oYYM","fa-commenting-o":"font-awesome_fa-commenting-o_2BRal","fa-houzz":"font-awesome_fa-houzz_13-hb","fa-vimeo":"font-awesome_fa-vimeo_3vcPv","fa-black-tie":"font-awesome_fa-black-tie_34h9B","fa-fonticons":"font-awesome_fa-fonticons_aNgtF","fa-reddit-alien":"font-awesome_fa-reddit-alien_3f_aH","fa-edge":"font-awesome_fa-edge_3UUWF","fa-credit-card-alt":"font-awesome_fa-credit-card-alt_oOWN1","fa-codiepie":"font-awesome_fa-codiepie_2amwQ","fa-modx":"font-awesome_fa-modx__HnMH","fa-fort-awesome":"font-awesome_fa-fort-awesome_1Pxvs","fa-usb":"font-awesome_fa-usb_2-FsD","fa-product-hunt":"font-awesome_fa-product-hunt_3WqRr","fa-mixcloud":"font-awesome_fa-mixcloud_2e01G","fa-scribd":"font-awesome_fa-scribd_1bAIo","fa-pause-circle":"font-awesome_fa-pause-circle_3wI6c","fa-pause-circle-o":"font-awesome_fa-pause-circle-o_2MdRS","fa-stop-circle":"font-awesome_fa-stop-circle_3aZ6V","fa-stop-circle-o":"font-awesome_fa-stop-circle-o_2oIr6","fa-shopping-bag":"font-awesome_fa-shopping-bag_2mD0w","fa-shopping-basket":"font-awesome_fa-shopping-basket_2ZYTJ","fa-hashtag":"font-awesome_fa-hashtag_1sHh4","fa-bluetooth":"font-awesome_fa-bluetooth_1tJ1-","fa-bluetooth-b":"font-awesome_fa-bluetooth-b_LmWTh","fa-percent":"font-awesome_fa-percent_3jbSX"}},function(e,t,n){var r=n(16),o=n(45),a=n(40),i=n(33),s=n(38),l="prototype",u=function(e,t,n){var c,f,p,d,h=e&u.F,g=e&u.G,m=e&u.S,v=e&u.P,_=e&u.B,y=g?r:m?r[t]||(r[t]={}):(r[t]||{})[l],b=g?o:o[t]||(o[t]={}),w=b[l]||(b[l]={});g&&(n=t);for(c in n)f=!h&&y&&c in y,p=(f?y:n)[c],d=_&&f?s(p,r):v&&"function"==typeof p?s(Function.call,p):p,y&&!f&&i(y,c,p),b[c]!=p&&a(b,c,d),v&&w[c]!=p&&(w[c]=p)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,e.exports=u},function(e,t,n){"use strict";e.exports=n(654)},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}e.exports=r},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(u(r.parts[a],t))}else{for(var i=[],a=0;a<r.parts.length;a++)i.push(u(r.parts[a],t));d[r.id]={id:r.id,refs:1,parts:i}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],a=o[0],i=o[1],s=o[2],l=o[3],u={css:i,media:s,sourceMap:l};n[a]?n[a].parts.push(u):t.push(n[a]={id:a,parts:[u]})}return t}function a(e,t){var n=m(),r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var a=_++;n=v||(v=s(t)),r=c.bind(null,n,a,!1),o=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=p.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function f(e,t){var n=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},g=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,_=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=g()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var a=[],i=0;i<n.length;i++){var s=n[i],l=d[s.id];l.refs--,a.push(l)}if(e){var u=o(e);r(u,t)}for(var i=0;i<a.length;i++){var l=a[i];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete d[l.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){!function(n,r){e.exports=t=r()}(this,function(){var e=e||function(e,t){var n={},r=n.lib={},o=r.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],n!=t?this.sigBytes=n:this.sigBytes=4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;o>a;a++){var i=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(var a=0;o>a;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){var t=t,n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,t=18e3*(65535&t)+(t>>16)&r;var o=(n<<16)+t&r;return o/=4294967296,o+=.5,o*(e.random()>.5?1:-1)}},i=0;t>i;i+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),i=n.enc={},s=i.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;n>o;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=i.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;n>o;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},u=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},c=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=4*i,l=o/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var u=l*i,c=e.min(4*u,o);if(u){for(var f=0;u>f;f+=i)this._doProcessBlock(r,f);var p=r.splice(0,u);n.sigBytes-=c}return new a.init(p,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(r.Hasher=c.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),n.algo={});return n}(Math);return e})},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t,n){"use strict";var r=n(35),o=r;e.exports=o},function(e,t){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var a=arguments[o];if(null!=a){var i=Object(a);for(var s in i)r.call(i,s)&&(n[s]=i[s])}}return n}e.exports=n},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(221)("wks"),o=n(59),a=n(16).Symbol;e.exports=function(e){return r[e]||(r[e]=a&&a[e]||(a||o)("Symbol."+e))}},function(e,t,n){var r,o;!function(a,i){r=[n(618),n(698)],o=function(e,t){return i(e,t,a)}.apply(t,r),!(void 0!==o&&(e.exports=o))}(this,function(e,t,n,r){function o(e,t){return function(){if(console.warn||console.log){var n="Warning, the "+e+" method has been deprecated. Please use "+t+" instead.";console.warn?console.warn(n):console.log(n)}return c.prototype[t].apply(this,arguments)}}function a(e,t,n){return function(r){_.resolver.compare(r.topic,e)&&(t.push(r),r.cacheKeys.push(e),n&&n(r))}}function i(e,t,n){return function(r,o,a){r===e&&a.splice(o,1),0===a.length&&delete n[t]}}function s(t,n,r,o){if(t.inactive=!0,o.splice(r,1),t.cacheKeys&&t.cacheKeys.length)for(var a;a=t.cacheKeys.pop();)e.each(n._cache[a],i(t,a,n._cache))}var l="|",u={cache:{},regex:{},compare:function(t,n){var r,o,a,i=this.cache[n+l+t];return i===!0?i:-1===t.indexOf("#")&&-1===t.indexOf("*")?i=this.cache[n+l+t]=n===t:((o=this.regex[t])||(r="^"+e.map(t.split("."),function(e){var t="";return a&&(t="#"!==a?"\\.\\b":"\\b"),t+="#"===e?"[\\s\\S]*":"*"===e?"[^.]+":e,a=e,t}).join("")+"$",o=this.regex[t]=new RegExp(r)),i=this.cache[n+l+t]=o.test(n))},reset:function(){this.cache={},this.regex={}},purge:function(t){var n=this,r=function(e,r){var o=r.split(l),a=o[0],i=o[1];"undefined"!=typeof t.topic&&t.topic!==a||"undefined"!=typeof t.binding&&t.binding!==i||delete n.cache[r]};"undefined"==typeof t?this.reset():e.each(this.cache,r)}},c=function(e,t,n){this.topic=e,this.callback=t,this.pipeline=[],this.cacheKeys=[],this._context=r,this.emitter=n},f=function(){var t;return function(n){var r=!1;return e.isString(n)?(r=n===t,t=n):(r=e.isEqual(n,t),t=e.clone(n)),!r}},p=function(){var t=[];return function(n){var r=!e.any(t,function(t){return e.isObject(n)||e.isArray(n)?e.isEqual(n,t):n===t});return r&&t.push(n),r}};c.prototype={"catch":function(e){var t=this.callback,n=function(){try{t.apply(this,arguments)}catch(n){e(n,arguments[0])}};return this.callback=n,this},defer:function(){return this.delay(0)},disposeAfter:function(t){if(!e.isNumber(t)||0>=t)throw new Error("The value provided to disposeAfter (maxCalls) must be a number greater than zero.");var n=this,r=e.after(t,e.bind(function(){n.unsubscribe()}));return n.pipeline.push(function(e,t,n){n(e,t),r()}),n},distinct:function(){return this.constraint(new p)},distinctUntilChanged:function(){return this.constraint(new f)},invokeSubscriber:function(e,t){if(!this.inactive){var n=this,r=n.pipeline,o=r.length,a=n._context,i=-1;if(o){r=r.concat([n.callback]);var s=function l(e,t){i+=1,o>i?r[i].call(a,e,t,l):n.callback.call(a,e,t)};s(e,t,0)}else n.callback.call(a,e,t)}},logError:function(){if(console){var e;e=console.warn?console.warn:console.log,this["catch"](e)}return this},once:function(){return this.disposeAfter(1)},unsubscribe:function(){this.inactive||this.emitter.off(this)},constraint:function(t){if(!e.isFunction(t))throw new Error("Predicate constraint must be a function");return this.pipeline.push(function(e,n,r){t.call(this,e,n)&&r(e,n)}),this},constraints:function(t){var n=this;return e.isArray(t)&&e.each(t,function(e){n.constraint(e)}),n},context:function(e){return this._context=e,this},debounce:function(t,n){if(!e.isNumber(t))throw new Error("Milliseconds must be a number");return this.pipeline.push(e.debounce(function(e,t,n){n(e,t)},t,!!n)),this},delay:function(t){if(!e.isNumber(t))throw new Error("Milliseconds must be a number");var n=this;return n.pipeline.push(function(e,n,r){setTimeout(function(){r(e,n)},t)}),this},throttle:function(t){if(!e.isNumber(t))throw new Error("Milliseconds must be a number");var n=function(e,t,n){n(e,t)};return this.pipeline.push(e.throttle(n,t)),this}},c.prototype.off=c.prototype.unsubscribe;for(var d=["withConstraint","withConstraints","withContext","withDebounce","withDelay","withThrottle"],h=["constraint","constraints","context","debounce","delay","throttle"],g=0;6>g;g++){var m=d[g];c.prototype[m]=o(m,h[g])}var v=Array.prototype.slice,_=function(){};return _.prototype={on:function(t,n){var r=this;r._subscriptions=r._subscriptions||{},r._subscriptions[t]=r._subscriptions[t]||[];var o=new c(t,n,r);return r._subscriptions[t].push(o),e.each(r._cache,function(e,t){a(t,e)(o)}),r._subscriptions[t][r._subscriptions[t].length-1]},once:function(e,t){return this.on(e,t).once()},off:function(t,n){var r=this;switch(r._subscriptions=r._subscriptions||{},r._cache=r._cache||{},arguments.length){case 0:e.each(r._subscriptions,function(t){e.each(t,function(e,n){s(e,r,n,t)})}),r._subscriptions={};break;case 1:var o="[object String]"===Object.prototype.toString.call(t)?"topic":t instanceof c?"def":"context";switch(o){case"topic":r._subscriptions[t]&&e.each(r._subscriptions[t],function(e,n){s(e,r,n,r._subscriptions[t])});break;case"context":e.each(r._subscriptions,function(n){e.each(e.clone(n),function(e,o){e._context===t&&s(e,r,o,n)})});break;default:e.each(r._subscriptions[t.topic],function(e,n){e===t&&s(e,r,n,r._subscriptions[t.topic])})}break;default:e.each(e.clone(r._subscriptions[t]),function(e,o){e._context===n&&s(e,r,o,r._subscriptions[t])})}},emit:function(t,n){var r=this.getEnvelope(t,n);this._cache=this._cache||{};var o=this._cache[t],i=function(e){e.invokeSubscriber(r.data,r)};if(o)e.each(v.call(o,0),i);else{o=this._cache[t]=[];var s=a(t,o,i);e.each(this._subscriptions,function(t){e.each(v.call(t,0),s)})}},getEnvelope:function(e,t){return{topic:e,timeStamp:new Date,data:t}}},_.resolver=u,_.debug=!1,_.SubscriptionDefinition=c,t(_),_.mixInto=function(e){t.punch(e,_.prototype)},_})},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,a=r.WordArray,i=r.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),u=n.algo,c=u.EvpKDF,f=r.Cipher=i.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?C:b}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),p=(r.StreamCipher=f.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),d=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=p.CBC=function(){function e(e,n,r){var o=this._iv;if(o){var a=o;this._iv=t}else var a=this._prevBlock;for(var i=0;r>i;i++)e[n+i]^=a[i]}var n=d.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize;e.call(this,t,n,o),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize,a=t.slice(n,n+o);r.decryptBlock(t,n),e.call(this,t,n,o),this._prevBlock=a}}),n}(),g=n.pad={},m=g.Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,i=[],s=0;r>s;s+=4)i.push(o);var l=a.create(i,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:h,padding:m}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode=r.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),_=n.format={},y=_.OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=a.create([1398893684,1701076831]).concat(n).concat(t);else var r=t;return r.toString(l)},parse:function(e){var t=l.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=a.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:r})}},b=r.SerializableCipher=o.extend({cfg:o.extend({format:y}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),a=o.finalize(t),i=o.cfg;return v.create({ciphertext:a,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=e.createDecryptor(n,r).finalize(t.ciphertext);return o},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=n.kdf={},x=w.OpenSSL={execute:function(e,t,n,r){r||(r=a.random(8));var o=c.create({keySize:t+n}).compute(e,r),i=a.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:i,salt:r})}},C=r.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:x}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var a=b.encrypt.call(this,e,t,o.key,r);return a.mixIn(o),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);r.iv=o.iv;var a=b.decrypt.call(this,e,t,o.key,r);return a}})}()})},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=0,a=function(){function e(t,r){n(this,e),this.id="CanvasOffscreenBuffer_"+ ++o,this.el=document.createElement("canvas"),this.width=t,this.height=r,this.el.style.display="none",this.el.setAttribute("width",this.width),this.el.setAttribute("height",this.height),document.body.appendChild(this.el)}return r(e,[{key:"size",value:function(e,t){return e&&this.el.setAttribute("width",this.width=e),t&&this.el.setAttribute("height",this.height=t),[Number(this.width),Number(this.height)]}},{key:"get2DContext",value:function(){return this.el.getContext("2d")}},{key:"get3DContext",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{preserveDrawingBuffer:!0,premultipliedAlpha:!1}:arguments[0];return this.el.getContext("webgl",e)||this.el.getContext("experimental-webgl",e)}},{key:"destroy",value:function(){this.el.parentNode.removeChild(this.el),this.el=null,this.width=null,this.height=null}},{key:"toDataURL",value:function(e,t){return this.el.toDataURL(e,t)}}]),e}();t["default"]=a},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t){e.exports="\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nvarying vec2 v_texCoord;\n\nvoid main() {\n gl_Position = vec4(a_position.xy, 0.0, 1.0);\n v_texCoord = a_texCoord;\n}\n"},function(e,t,n){"use strict";e.exports=n(254)},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===V?e.documentElement:e.firstChild:null}function a(e){var t=o(e);return t&&K.getID(t)}function i(e){var t=s(e);if(t)if(W.hasOwnProperty(t)){var n=W[t];n!==e&&(f(n,t)?F(!1):void 0,W[t]=e)}else W[t]=e;return t}function s(e){return e&&e.getAttribute&&e.getAttribute(j)||""}function l(e,t){var n=s(e);n!==t&&delete W[n],e.setAttribute(j,t),W[t]=e}function u(e){return W.hasOwnProperty(e)&&f(W[e],e)||(W[e]=K.findReactNodeByID(e)),W[e]}function c(e){var t=P.get(e)._rootNodeID;return E.isNullComponentID(t)?null:(W.hasOwnProperty(t)&&f(W[t],t)||(W[t]=K.findReactNodeByID(t)),W[t])}function f(e,t){if(e){s(e)!==t?F(!1):void 0;var n=K.findReactContainerForID(t);if(n&&O(n,e))return!0}return!1}function p(e){delete W[e]}function d(e){var t=W[e];return t&&f(t,e)?void(Y=t):!1}function h(e){Y=null,T.traverseAncestors(e,d);var t=Y;return Y=null,t}function g(e,t,n,r,o,a){x.useCreateElement&&(a=A({},a),n.nodeType===V?a[q]=n:a[q]=n.ownerDocument);var i=S.mountComponent(e,t,r,a);e._renderedComponent._topLevelWrapper=e,K._mountImageIntoNode(i,n,o,r)}function m(e,t,n,r,o){var a=R.ReactReconcileTransaction.getPooled(r);a.perform(g,null,e,t,n,a,r,o),R.ReactReconcileTransaction.release(a)}function v(e,t){for(S.unmountComponent(e),t.nodeType===V&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function _(e){var t=a(e);return t?t!==T.getReactRootIDFromNodeID(t):!1}function y(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=s(e);if(t){var n,r=T.getReactRootIDFromNodeID(t),o=e;do if(n=s(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===X[r])return e}}return null}var b=n(63),w=n(103),x=(n(42),n(255)),C=n(24),E=n(262),T=n(64),P=n(80),k=n(265),M=n(29),S=n(52),D=n(145),R=n(30),A=n(10),I=n(75),O=n(230),N=n(152),F=n(5),L=n(110),B=n(155),j=(n(157),n(9),b.ID_ATTRIBUTE_NAME),W={},U=1,V=9,z=11,q="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),H={},X={},G=[],Y=null,Q=function(){};Q.prototype.isReactComponent={},Q.prototype.render=function(){return this.props};var K={TopLevelWrapper:Q,_instancesByReactRootID:H,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return K.scrollMonitor(n,function(){D.enqueueElementInternal(e,t),r&&D.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){!t||t.nodeType!==U&&t.nodeType!==V&&t.nodeType!==z?F(!1):void 0,w.ensureScrollValueMonitoring();var n=K.registerContainer(t);return H[n]=e,n},_renderNewRootComponent:function(e,t,n,r){var o=N(e,null),a=K._registerComponent(o,t);return R.batchedUpdates(m,o,a,t,n,r),o},renderSubtreeIntoContainer:function(e,t,n,r){return null==e||null==e._reactInternalInstance?F(!1):void 0,K._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){C.isValidElement(t)?void 0:F(!1);var i=new C(Q,null,null,null,null,null,t),l=H[a(n)];if(l){var u=l._currentElement,c=u.props;if(B(c,t)){var f=l._renderedComponent.getPublicInstance(),p=r&&function(){r.call(f)};return K._updateRootComponent(l,i,n,p),f}K.unmountComponentAtNode(n)}var d=o(n),h=d&&!!s(d),g=_(n),m=h&&!l&&!g,v=K._renderNewRootComponent(i,n,m,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):I)._renderedComponent.getPublicInstance();return r&&r.call(v),v},render:function(e,t,n){return K._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=a(e);return t&&(t=T.getReactRootIDFromNodeID(t)),t||(t=T.createReactRootID()),X[t]=e,t},unmountComponentAtNode:function(e){!e||e.nodeType!==U&&e.nodeType!==V&&e.nodeType!==z?F(!1):void 0;var t=a(e),n=H[t];if(!n){var r=(_(e),s(e));r&&r===T.getReactRootIDFromNodeID(r);return!1}return R.batchedUpdates(v,n,e),delete H[t],delete X[t],!0},findReactContainerForID:function(e){var t=T.getReactRootIDFromNodeID(e),n=X[t];return n},findReactNodeByID:function(e){var t=K.findReactContainerForID(e);return K.findComponentRoot(t,e)},getFirstReactDOM:function(e){return y(e)},findComponentRoot:function(e,t){var n=G,r=0,o=h(t)||e;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var a,i=n[r++];i;){var s=K.getID(i);s?t===s?a=i:T.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(i.firstChild)):n.push(i.firstChild),i=i.nextSibling}if(a)return n.length=0,a}n.length=0,F(!1)},_mountImageIntoNode:function(e,t,n,a){if(!t||t.nodeType!==U&&t.nodeType!==V&&t.nodeType!==z?F(!1):void 0,n){var i=o(t);if(k.canReuseMarkup(e,i))return;var s=i.getAttribute(k.CHECKSUM_ATTR_NAME);i.removeAttribute(k.CHECKSUM_ATTR_NAME);var l=i.outerHTML;i.setAttribute(k.CHECKSUM_ATTR_NAME,s);var u=e,c=r(u,l);" (client) "+u.substring(c-20,c+20)+"\n (server) "+l.substring(c-20,c+20);t.nodeType===V?F(!1):void 0}if(t.nodeType===V?F(!1):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);t.appendChild(e)}else L(t,e)},ownerDocumentContextKey:q,getReactRootID:a,getID:i,setID:l,getNode:u,getNodeFromInstance:c,isValid:f,purgeID:p};M.measureMethods(K,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=K},function(e,t,n){"use strict";var r=n(42),o=n(10),a=(n(108),"function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103),i={key:!0,ref:!0,__self:!0,__source:!0},s=function(e,t,n,r,o,i,s){var l={$$typeof:a,type:e,key:t,ref:n,props:s,_owner:i};return l};s.createElement=function(e,t,n){var o,a={},l=null,u=null,c=null,f=null;if(null!=t){u=void 0===t.ref?null:t.ref,l=void 0===t.key?null:""+t.key,c=void 0===t.__self?null:t.__self,f=void 0===t.__source?null:t.__source;for(o in t)t.hasOwnProperty(o)&&!i.hasOwnProperty(o)&&(a[o]=t[o])}var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),h=0;p>h;h++)d[h]=arguments[h+2];a.children=d}if(e&&e.defaultProps){var g=e.defaultProps;for(o in g)"undefined"==typeof a[o]&&(a[o]=g[o])}return s(e,l,u,c,f,r.current,a)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceKey=function(e,t){var n=s(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},s.cloneAndReplaceProps=function(e,t){var n=s(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return n},s.cloneElement=function(e,t,n){var a,l=o({},e.props),u=e.key,c=e.ref,f=e._self,p=e._source,d=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,d=r.current),void 0!==t.key&&(u=""+t.key);for(a in t)t.hasOwnProperty(a)&&!i.hasOwnProperty(a)&&(l[a]=t[a])}var h=arguments.length-2;if(1===h)l.children=n;else if(h>1){for(var g=Array(h),m=0;h>m;m++)g[m]=arguments[m+2];l.children=g}return s(e.type,u,c,f,p,d,l)},s.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},e.exports=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(718),s=r(i);t["default"]=a["default"].createClass({displayName:"CollapsibleWidget",propTypes:{children:a["default"].PropTypes.oneOfType([a["default"].PropTypes.object,a["default"].PropTypes.array]),onChange:a["default"].PropTypes.func,open:a["default"].PropTypes.bool,subtitle:a["default"].PropTypes.oneOfType([a["default"].PropTypes.object,a["default"].PropTypes.string,a["default"].PropTypes.array]),title:a["default"].PropTypes.string,visible:a["default"].PropTypes.bool},getDefaultProps:function(){return{title:"",subtitle:"",open:!0,visible:!0}},getInitialState:function(){return{open:this.props.open}},toggleOpen:function(){var e=!this.state.open;this.setState({open:e}),this.props.onChange&&this.props.onChange(e)},isCollapsed:function(){return this.state.open===!1},isExpanded:function(){return this.state.open===!0},render:function(){var e={};return this.props.visible||(e.display="none"),a["default"].createElement("section",{className:s["default"].container,style:e},a["default"].createElement("div",{className:s["default"].header},a["default"].createElement("div",{onClick:this.toggleOpen},a["default"].createElement("i",{className:s["default"][this.state.open?"caret":"caretClosed"]}),a["default"].createElement("strong",{className:s["default"].title},this.props.title)),a["default"].createElement("span",{className:s["default"].subtitle -},this.props.subtitle)),a["default"].createElement("div",{className:s["default"][this.state.open?"visibleContent":"hiddenContent"]},this.props.children))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(15),s=r(i),l="image-ready",u=function(){function e(t){var n=t.queryDataModel,r=t.pipelineModel,a=t.lookupTableManager,i=t.handleRecord,s=void 0===i?!1:i,l=t.dimensions,u=void 0===l?[500,500]:l;o(this,e),this.queryDataModel=n,this.pipelineModel=r,this.lookupTableManager=a,this.handleRecord=s,this.subscriptions=[],this.objectsToFree=[],this.dimensions=u,this.controlWidgets=[],this.lookupTableManager&&this.controlWidgets.push({name:"LookupTableManagerWidget",lookupTableManager:a}),this.pipelineModel&&this.controlWidgets.push({name:"CompositeControl",pipelineModel:r}),this.queryDataModel&&this.controlWidgets.push({name:"QueryDataModelWidget",queryDataModel:n})}return a(e,[{key:"update",value:function(){this.queryDataModel&&this.queryDataModel.fetchData()}},{key:"onImageReady",value:function(e){return this.on(l,e)}},{key:"imageReady",value:function(e){this.emit(l,e)}},{key:"registerSubscription",value:function(e){this.subscriptions.push(e)}},{key:"registerObjectToFree",value:function(e){this.objectsToFree.push(e)}},{key:"getListeners",value:function(){return this.queryDataModel?this.queryDataModel.getMouseListener():{}}},{key:"getControlWidgets",value:function(){return this.controlWidgets}},{key:"getControlModels",value:function(){return{pipelineModel:this.pipelineModel,queryDataModel:this.queryDataModel,lookupTableManager:this.lookupTableManager,dimensions:this.dimensions}}},{key:"destroy",value:function(){for(this.off();this.subscriptions.length;)this.subscriptions.pop().unsubscribe();for(;this.objectsToFree.length;)this.objectsToFree.pop().destroy();this.queryDataModel=null,this.pipelineModel=null,this.lookupTableManager=null,this.dimensions=null,this.controlWidgets=null}}]),e}();t["default"]=u,s["default"].mixInto(u)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(74),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";function r(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};e.exports=o},function(e,t,n){"use strict";function r(){P.ReactReconcileTransaction&&b?void 0:m(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=P.ReactReconcileTransaction.getPooled(!1)}function a(e,t,n,o,a,i){r(),b.batchedUpdates(e,t,n,o,a,i)}function i(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==v.length?m(!1):void 0,v.sort(i);for(var n=0;t>n;n++){var r=v[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,d.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var a=0;a<o.length;a++)e.callbackQueue.enqueue(o[a],r.getPublicInstance())}}function l(e){return r(),b.isBatchingUpdates?void v.push(e):void b.batchedUpdates(l,e)}function u(e,t){b.isBatchingUpdates?void 0:m(!1),_.enqueue(e,t),y=!0}var c=n(139),f=n(48),p=n(29),d=n(52),h=n(107),g=n(10),m=n(5),v=[],_=c.getPooled(),y=!1,b=null,w={initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),E()):v.length=0}},x={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[w,x];g(o.prototype,h.Mixin,{getTransactionWrappers:function(){return C},destructor:function(){this.dirtyComponentsLength=null,c.release(this.callbackQueue),this.callbackQueue=null,P.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return h.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),f.addPoolingTo(o);var E=function(){for(;v.length||y;){if(v.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(y){y=!1;var t=_;_=c.getPooled(),t.notifyAll(),c.release(t)}}};E=p.measure("ReactUpdates","flushBatchedUpdates",E);var T={injectReconcileTransaction:function(e){e?void 0:m(!1),P.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:m(!1),"function"!=typeof e.batchedUpdates?m(!1):void 0,"boolean"!=typeof e.isBatchingUpdates?m(!1):void 0,b=e}},P={ReactReconcileTransaction:null,batchedUpdates:a,enqueueUpdate:l,flushBatchedUpdates:E,injection:T,asap:u};e.exports=P},function(e,t,n){e.exports=!n(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2),o=n(45),a=n(19);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],i={};i[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",i)}},function(e,t,n){var r=n(16),o=n(40),a=n(59)("src"),i="toString",s=Function[i],l=(""+s).split(i);n(45).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,i){"function"==typeof n&&(n.hasOwnProperty(a)||o(n,a,e[t]?""+e[t]:l.join(String(t))),n.hasOwnProperty("name")||o(n,"name",t)),e===r?e[t]=n:(i||delete e[t],o(e,t,n))})(Function.prototype,i,function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(92),o=n(39);e.exports=function(e){return r(o(e))}},function(e,t){"use strict";function n(e){return function(){return e}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t){"use strict";function n(e){return"[object Array]"===v.call(e)}function r(e){return"[object ArrayBuffer]"===v.call(e)}function o(e){return"[object FormData]"===v.call(e)}function a(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function i(e){return"string"==typeof e}function s(e){return"number"==typeof e}function l(e){return"undefined"==typeof e}function u(e){return null!==e&&"object"==typeof e}function c(e){return"[object Date]"===v.call(e)}function f(e){return"[object File]"===v.call(e)}function p(e){return"[object Blob]"===v.call(e)}function d(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function h(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(e,t){if(null!==e&&"undefined"!=typeof e)if("object"==typeof e||n(e)||(e=[e]),n(e))for(var r=0,o=e.length;o>r;r++)t.call(null,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(null,e[a],a,e)}function m(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=m(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;r>n;n++)g(arguments[n],e);return t}var v=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:r,isFormData:o,isArrayBufferView:a,isString:i,isNumber:s,isObject:u,isUndefined:l,isDate:c,isFile:f,isBlob:p,isStandardBrowserEnv:h,forEach:g,merge:m,trim:d}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){t.timestamp<b&&(_.forEach(function(n){t[n]=e[n]}),t.clientRect=e.getClientRects()[0])}function a(e){var t=v.get(e);return t||(t={timestamp:-1},v.set(e,t)),o(e,t),t}function i(e){return g.on(m,e)}function s(){g.emit(m)}function l(){return w}function u(){w||(window.addEventListener("resize",y),w=!0)}function c(){w&&(window.removeEventListener("resize",y),w=!1)}function f(){b++,s()}Object.defineProperty(t,"__esModule",{value:!0}),t.getSize=a,t.onSizeChange=i,t.triggerChange=s,t.isListening=l,t.startListening=u,t.stopListening=c;var p=n(170),d=r(p),h=n(168),g=new d["default"],m="window.size.change",v=new WeakMap,_=["scrollWidth","scrollHeight","clientWidth","clientHeight"],y=(0,h.debounce)(f,250),b=0,w=!1;t["default"]={getSize:a,isListening:l,onSizeChange:i,startListening:u,stopListening:c,triggerChange:s}},function(e,t,n){var r=n(57);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(8),o=n(51);e.exports=n(31)?function(e,t,n){return r.setDesc(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r=n(98),o=r({bubbled:null,captured:null}),a=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),i={topLevelTypes:a,PropagationPhases:o};e.exports=i},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(735),s=r(i);t["default"]=a["default"].createClass({displayName:"ToggleIconButtonWidget",propTypes:{alwaysOn:a["default"].PropTypes.bool,className:a["default"].PropTypes.string,icon:a["default"].PropTypes.string,name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,toggle:a["default"].PropTypes.bool,value:a["default"].PropTypes.bool},getDefaultProps:function(){return{className:"",value:!0,icon:"fa-sun-o",toggle:!0,name:"toggle-button"}},getInitialState:function(){return{enabled:this.props.value}},componentWillReceiveProps:function(e){e.value!==this.state.enabled&&this.setState({enabled:e.value})},buttonClicked:function(){var e=this.props.toggle?!this.state.enabled:this.state.enabled;this.props.onChange&&this.props.onChange(e,this.props.name),this.props.toggle&&this.setState({enabled:e})},render:function(){var e=[this.props.icon,this.props.className];return e.push(this.state.enabled||this.props.alwaysOn?s["default"].enabledButton:s["default"].disabledButton),a["default"].createElement("i",{className:e.join(" "),onClick:this.buttonClicked})}})},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(39);e.exports=function(e){return Object(r(e))}},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){"use strict";var r=n(5),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},a=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},i=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,r),a}return new o(e,t,n,r)},l=function(e,t,n,r,o){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r,o),i}return new a(e,t,n,r,o)},u=function(e){var t=this;e instanceof t?void 0:r(!1),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,f=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||f,n.poolSize||(n.poolSize=c),n.release=u,n},d={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:a,threeArgumentPooler:i,fourArgumentPooler:s,fiveArgumentPooler:l};e.exports=d},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){function t(e,t,n,r){var o=E.resolve(e);return arguments.length<2?o:o.then(t,n,r)}function r(e){return new E(e)}function o(e){return function(){for(var t=0,n=arguments.length,r=new Array(n);n>t;++t)r[t]=arguments[t];return T(e,this,r)}}function a(e){for(var t=0,n=arguments.length-1,r=new Array(n);n>t;++t)r[t]=arguments[t+1];return T(e,this,r)}function i(){return new s}function s(){function e(e){r._handler.resolve(e)}function t(e){r._handler.reject(e)}function n(e){r._handler.notify(e)}var r=E._defer();this.promise=r,this.resolve=e,this.reject=t,this.notify=n,this.resolver={resolve:e,reject:t,notify:n}}function l(e){return e&&"function"==typeof e.then}function u(){return E.all(arguments)}function c(e){return t(e,E.all)}function f(e){return t(e,E.settle)}function p(e,n){return t(e,function(e){return E.map(e,n)})}function d(e,n){return t(e,function(e){return E.filter(e,n)})}var h=n(756),g=n(750),m=n(751),v=n(752),_=n(753),y=n(754),b=n(755),w=n(758),x=n(757),C=n(283),E=[g,m,v,y,b,_,w,h,x].reduce(function(e,t){return t(e)},n(748)),T=n(161)(E);return t.promise=r,t.resolve=E.resolve,t.reject=E.reject,t.lift=o,t["try"]=a,t.attempt=a,t.iterate=E.iterate,t.unfold=E.unfold,t.join=u,t.all=c,t.settle=f,t.any=o(E.any),t.some=o(E.some),t.race=o(E.race),t.map=p,t.filter=d,t.reduce=o(E.reduce),t.reduceRight=o(E.reduceRight),t.isPromiseLike=l,t.Promise=E,t.defer=i,t.TimeoutError=C,t}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t){"use strict";function n(e){var t=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),n=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),r=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);console.log("vertex texture image units: "+t),console.log("fragment texture image units: "+n),console.log("combined texture image units: "+r)}function r(e,t,n){var r=e.createShader(n);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var o=e.getShaderInfoLog(r);return console.error("Error compiling shader '"+r+"':"+o),e.deleteShader(r),null}return r}function o(e,t){for(var n=e.createProgram(),r=0;r<t.length;r+=1)e.attachShader(n,t[r]);e.linkProgram(n);var o=e.getProgramParameter(n,e.LINK_STATUS);if(!o){var a=e.getProgramInfoLog(n);return console.error("Error in program linking:"+a),e.deleteProgram(n),null}return n.shaders=t,e.useProgram(n),n}function a(e,t,n,r,o){var a=o.programs[t],i=r.mappings[n];i.forEach(function(t){var n=o.buffers[t.id];e.bindBuffer(e.ARRAY_BUFFER,n),a[t.name]=e.getAttribLocation(a,t.attribute),e.enableVertexAttribArray(a[t.name]),e.vertexAttribPointer.apply(e,[a[t.name]].concat(t.format)),e.bindBuffer(e.ARRAY_BUFFER,null)})}function i(e,t,n,i){var s=n.programs[t],l=r(e,s.vertexShader,e.VERTEX_SHADER),u=r(e,s.fragmentShader,e.FRAGMENT_SHADER),c=o(e,[l,u]);return i.programs[t]=c,s.mapping&&a(e,t,s.mapping,n,i),c}function s(e,t,n){e.bindFramebuffer(e.FRAMEBUFFER,t),e.bindTexture(e.TEXTURE_2D,n),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t.width,t.height,0,e.RGBA,e.UNSIGNED_BYTE,null),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0);var r=e.checkFramebufferStatus(e.FRAMEBUFFER);r!==e.FRAMEBUFFER_COMPLETE&&console.log("ERROR: There is a problem with the framebuffer: "+r),e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null)}function l(e){var t=e.gl;for(var n in e.programs){for(var r=e.programs[n],o=r.shaders,a=o.length;a--;)t.deleteShader(o[a]);t.deleteProgram(r)}for(var i in e.framebuffers)t.deleteFramebuffer(e.framebuffers[i]);for(var s in e.textures)t.deleteTexture(e.textures[s]);for(var l in e.buffers)t.deleteBuffer(e.buffers[l])}function u(e,t){var n={gl:e,buffers:{},textures:{},framebuffers:{},programs:{}},r=t.resources.buffers||[],o=t.resources.textures||[],a=t.resources.framebuffers||[];r.forEach(function(t){var r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r),e.bufferData(e.ARRAY_BUFFER,t.data,e.STATIC_DRAW),n.buffers[t.id]=r}),o.forEach(function(t){var r=e.createTexture(),o=t.pixelStore||[],a=t.texParameter||[];e.bindTexture(e.TEXTURE_2D,r),o.forEach(function(t){e.pixelStorei(e[t[0]],t[1])}),a.forEach(function(t){e.texParameteri(e.TEXTURE_2D,e[t[0]],e[t[1]])}),n.textures[t.id]=r}),a.forEach(function(t){var r=e.createFramebuffer();r.width=t.width,r.height=t.height,n.framebuffers[t.id]=r});for(var s in t.programs)i(e,s,t,n);return n.destroy=function(){l(n)},n}function c(e,t,n){var r=null,o=null;for(var a in t){var i=t[a],s=new RegExp("\\$\\{"+a+"\\}","g");e=e.replace(s,i)}if(n.inlineLoops){var l=/\/\/@INLINE_LOOP([\s\S]+?)(?=\/\/@INLINE_LOOP)\/\/@INLINE_LOOP/;for(r=e.match(l);r;){var u=r[1],c=/^\s*\(([^\),]+)\s*,\s*([^\),]+)\s*,\s*([^\)]+)\)/,f=u.match(c),p=f[1],d=f[2],h=f[3],g=u.replace(c,""),m=/^\s*[^\{]+\{([\s\S]+?)\s*\}\s*$/,v=g.match(m),_=v[1],y=new RegExp(p,"g");o="";for(var b=d;h>b;++b)o+=_.replace(y,b),o+="\n";e=e.replace(l,o),r=e.match(l)}}return n.debug&&(console.log("Transformed shader string:"),console.log(e)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.showGlInfo=n,t.applyProgramDataMapping=a,t.bindTextureToFramebuffer=s,t.createGLResources=u,t.transformShader=c,t["default"]={applyProgramDataMapping:a,bindTextureToFramebuffer:s,createGLResources:u,showGlInfo:n,transformShader:c}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(673),a={mountComponent:function(e,t,n,o){var a=e.mountComponent(t,n,o);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),a},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,a){var i=e._currentElement;if(t!==i||a!==e._context){var s=o.shouldUpdateRefs(i,t);s&&o.detachRefs(e,i),e.receiveComponent(t,n,a),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];s?this[a]=s(n):"target"===a?this.target=r:this[a]=n[a]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;l?this.isDefaultPrevented=i.thatReturnsTrue:this.isDefaultPrevented=i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse}var o=n(48),a=n(10),i=n(35),s=(n(9),{type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);a(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),e.exports=r},function(e,t){(function(e){var n=function(){};"AUTOBAHN_DEBUG"in e&&AUTOBAHN_DEBUG&&"console"in e&&(n=function(){console.log.apply(console,arguments)}),t.debug=n}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.PingPong=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(50);t.PingPong=function(){function e(t,n,o){r(this,e),this.gl=t,this.idx=0,this.fbos=n,this.textures=o,(0,a.bindTextureToFramebuffer)(this.gl,this.fbos[0],this.textures[1]),(0,a.bindTextureToFramebuffer)(this.gl,this.fbos[1],this.textures[0])}return o(e,[{key:"swap",value:function(){this.idx++,this.idx%=2}},{key:"clearFbo",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.fbos[0]),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.fbos[1]),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.idx=0}},{key:"getFramebuffer",value:function(){return this.fbos[this.idx]}},{key:"getRenderingTexture",value:function(){return this.textures[this.idx]}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){var t=0;return e.srcEvent&&(t+=e.srcEvent.altKey?g.ALT:0,t+=e.srcEvent.ctrlKey?g.CTRL:0,t+=e.srcEvent.metaKey?g.META:0,t+=e.srcEvent.shiftKey?g.SHIFT:0),t}function i(e,t){return{x:t.center.x-(e.getClientRects()[0].x||e.getClientRects()[0].left),y:t.center.y-(e.getClientRects()[0].y||e.getClientRects()[0].top)}}function s(e,t,n){n.preventDefault(),n.button=0,n.topic=t,n.modifier=e.modifier?e.modifier:a(n),n.relative=i(e.el,n),e.emit(t,n)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(616),c=r(u),f=n(102),p=r(f),d=n(15),h=r(d),g={NONE:0,ALT:1,META:2,SHIFT:4,CTRL:8},m={contextmenu:"contextmenu",mousewheel:"zoom",DOMMouseScroll:"zoom"},v=300,_=0,y=function(){function e(t,n){var r=this;o(this,e);var l={pan:{threshold:0},pinch:{threshold:0}};n=(0,p["default"])(l,n),this.Modifier=g,_++,this.id="mouse_handler_"+_,this.el=t,this.modifier=0,this.toggleModifiers=[0],this.toggleModifierIdx=0,this.toggleModifierEnable=!1,this.hammer=new c["default"](t),this.scrollInternal={ts:+new Date,deltaX:0,deltaY:0},this.finalZoomEvent=null,this.finalZoomTimerId=0,this.triggerFinalZoomEvent=function(){r.finalZoomEvent&&(r.finalZoomEvent.isFirst=!1,r.finalZoomEvent.isFinal=!0),r.emit(r.finalZoomEvent.topic,r.finalZoomEvent)},this.domEventHandler=function(e){e.preventDefault();var t={srcEvent:e,button:"contextmenu"===e.type?2:0,topic:m[e.type],center:{x:e.clientX,y:e.clientY},relative:{x:e.clientX-(r.el.getClientRects()[0].x||r.el.getClientRects()[0].left),y:e.clientY-(r.el.getClientRects()[0].y||r.el.getClientRects()[0].top)},scale:1,deltaX:0,deltaY:0,delta:0,deltaTime:0,velocityX:0,velocityY:0,velocity:0,isFirst:!1,isFinal:!1};if(t.modifier=r.modifier?r.modifier:a(t),"zoom"===t.topic){clearTimeout(r.finalZoomTimerId),r.finalZoomTimerId=setTimeout(r.triggerFinalZoomEvent,v);var n=+new Date;n-r.scrollInternal.ts>v?(r.scrollInternal.deltaX=0,r.scrollInternal.deltaY=0,t.isFirst=!0,t.isFinal=!1):t.isFinal=!1,void 0===e.wheelDeltaX?(t.zoom=r.lastScrollZoomFactor,r.scrollInternal.deltaY-=2*e.detail):(t.zoom=r.lastScrollZoomFactor,r.scrollInternal.deltaX+=e.wheelDeltaX,r.scrollInternal.deltaY+=e.wheelDeltaY),t.deltaX=r.scrollInternal.deltaX,t.deltaY=r.scrollInternal.deltaY,t.scale=1+t.deltaY/r.el.getClientRects()[0].height,t.scale=t.scale<.1?.1:t.scale,r.scrollInternal.ts=n,r.finalZoomEvent=t}return r.emit(t.topic,t),!1},this.hammer.get("pan").set(n.pan),this.hammer.get("pinch").set(n.pinch),this.hammer.on("tap",function(e){s(r,"click",e)}),this.hammer.on("doubletap",function(e){s(r,"dblclick",e)}),this.hammer.on("pan",function(e){s(r,"drag",e)}),this.hammer.on("panstart",function(e){e.isFirst=!0,s(r,"drag",e)}),this.hammer.on("panend",function(e){e.isFinal=!0,s(r,"drag",e)}),this.hammer.on("pinch",function(e){s(r,"zoom",e)}),this.hammer.on("pinchstart",function(e){console.log("zoom start"),e.isFirst=!0,s(r,"zoom",e)}),this.hammer.on("pinchend",function(e){e.isFinal=!0,console.log("zoom end"),s(r,"zoom",e)}),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("press",function(e){r.toggleModifierEnable&&(r.toggleModifierIdx=(r.toggleModifierIdx+1)%r.toggleModifiers.length,r.modifier=r.toggleModifiers[r.toggleModifierIdx],e.relative=i(r.el,e),r.emit("modifier.change",{value:r.modifier,list:g,event:e}))}),this.el.addEventListener("contextmenu",this.domEventHandler),this.el.addEventListener("mousewheel",this.domEventHandler),this.el.addEventListener("DOMMouseScroll",this.domEventHandler)}return l(e,[{key:"enablePinch",value:function(e){this.hammer.get("pinch").set({enable:e})}},{key:"setModifier",value:function(e){this.modifier=e}},{key:"toggleModifierOnPress",value:function(e,t){this.toggleModifiers=t,this.toggleModifierEnable=e}},{key:"attach",value:function(e){var t={};for(var n in e)t[n]=this.on(n,e[n]);return t}},{key:"destroy",value:function(){this.off(),this.hammer.destroy(),this.el.removeEventListener("contextmenu",this.domEventHandler),this.el.removeEventListener("mousewheel",this.domEventHandler),this.el.removeEventListener("DOMMouseScroll",this.domEventHandler)}}]),e}();t["default"]=y,h["default"].mixInto(y)},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(14)("unscopables"),o=Array.prototype;void 0==o[r]&&n(40)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=t.enc;o.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],a=0;n>a;a+=3)for(var i=t[a>>>2]>>>24-a%4*8&255,s=t[a+1>>>2]>>>24-(a+1)%4*8&255,l=t[a+2>>>2]>>>24-(a+2)%4*8&255,u=i<<16|s<<8|l,c=0;4>c&&n>a+.75*c;c++)o.push(r.charAt(u>>>6*(3-c)&63));var f=r.charAt(64);if(f)for(;o.length%4;)o.push(f);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=n.charAt(64);if(o){var a=e.indexOf(o);-1!=a&&(t=a)}for(var i=[],s=0,l=0;t>l;l++)if(l%4){var u=n.indexOf(e.charAt(l-1))<<l%4*2,c=n.indexOf(e.charAt(l))>>>6-l%4*2,f=u|c;i[s>>>2]|=f<<24-s%4*8,s++}return r.create(i,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(133),n(132))}(this,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,a=t.algo,i=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),a=o.create(),i=a.words,s=n.keySize,l=n.iterations;i.length<s;){u&&r.update(u);var u=r.update(e).finalize(t);r.reset();for(var c=1;l>c;c++)u=r.finalize(u),r.reset();a.concat(u)}return a.sigBytes=4*s,a}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF})},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){return function(t){function n(e,t,n,r,o,a,i){var s=e+(t&n|~t&r)+o+i;return(s<<a|s>>>32-a)+t}function r(e,t,n,r,o,a,i){var s=e+(t&r|n&~r)+o+i;return(s<<a|s>>>32-a)+t}function o(e,t,n,r,o,a,i){var s=e+(t^n^r)+o+i;return(s<<a|s>>>32-a)+t}function a(e,t,n,r,o,a,i){var s=e+(n^(t|~r))+o+i;return(s<<a|s>>>32-a)+t}var i=e,s=i.lib,l=s.WordArray,u=s.Hasher,c=i.algo,f=[];!function(){for(var e=0;64>e;e++)f[e]=4294967296*t.abs(t.sin(e+1))|0}();var p=c.MD5=u.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var i=0;16>i;i++){var s=t+i,l=e[s];e[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}var u=this._hash.words,c=e[t+0],p=e[t+1],d=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],_=e[t+7],y=e[t+8],b=e[t+9],w=e[t+10],x=e[t+11],C=e[t+12],E=e[t+13],T=e[t+14],P=e[t+15],k=u[0],M=u[1],S=u[2],D=u[3];k=n(k,M,S,D,c,7,f[0]),D=n(D,k,M,S,p,12,f[1]),S=n(S,D,k,M,d,17,f[2]),M=n(M,S,D,k,h,22,f[3]),k=n(k,M,S,D,g,7,f[4]),D=n(D,k,M,S,m,12,f[5]),S=n(S,D,k,M,v,17,f[6]),M=n(M,S,D,k,_,22,f[7]),k=n(k,M,S,D,y,7,f[8]),D=n(D,k,M,S,b,12,f[9]),S=n(S,D,k,M,w,17,f[10]),M=n(M,S,D,k,x,22,f[11]),k=n(k,M,S,D,C,7,f[12]),D=n(D,k,M,S,E,12,f[13]),S=n(S,D,k,M,T,17,f[14]),M=n(M,S,D,k,P,22,f[15]),k=r(k,M,S,D,p,5,f[16]),D=r(D,k,M,S,v,9,f[17]),S=r(S,D,k,M,x,14,f[18]),M=r(M,S,D,k,c,20,f[19]),k=r(k,M,S,D,m,5,f[20]),D=r(D,k,M,S,w,9,f[21]),S=r(S,D,k,M,P,14,f[22]),M=r(M,S,D,k,g,20,f[23]),k=r(k,M,S,D,b,5,f[24]),D=r(D,k,M,S,T,9,f[25]),S=r(S,D,k,M,h,14,f[26]),M=r(M,S,D,k,y,20,f[27]),k=r(k,M,S,D,E,5,f[28]),D=r(D,k,M,S,d,9,f[29]),S=r(S,D,k,M,_,14,f[30]),M=r(M,S,D,k,C,20,f[31]),k=o(k,M,S,D,m,4,f[32]),D=o(D,k,M,S,y,11,f[33]),S=o(S,D,k,M,x,16,f[34]),M=o(M,S,D,k,T,23,f[35]),k=o(k,M,S,D,p,4,f[36]),D=o(D,k,M,S,g,11,f[37]),S=o(S,D,k,M,_,16,f[38]),M=o(M,S,D,k,w,23,f[39]),k=o(k,M,S,D,E,4,f[40]),D=o(D,k,M,S,c,11,f[41]),S=o(S,D,k,M,h,16,f[42]),M=o(M,S,D,k,v,23,f[43]),k=o(k,M,S,D,b,4,f[44]),D=o(D,k,M,S,C,11,f[45]),S=o(S,D,k,M,P,16,f[46]),M=o(M,S,D,k,d,23,f[47]),k=a(k,M,S,D,c,6,f[48]),D=a(D,k,M,S,_,10,f[49]),S=a(S,D,k,M,T,15,f[50]),M=a(M,S,D,k,m,21,f[51]),k=a(k,M,S,D,C,6,f[52]),D=a(D,k,M,S,h,10,f[53]),S=a(S,D,k,M,w,15,f[54]),M=a(M,S,D,k,p,21,f[55]),k=a(k,M,S,D,y,6,f[56]),D=a(D,k,M,S,P,10,f[57]),S=a(S,D,k,M,v,15,f[58]),M=a(M,S,D,k,E,21,f[59]),k=a(k,M,S,D,g,6,f[60]),D=a(D,k,M,S,x,10,f[61]),S=a(S,D,k,M,d,15,f[62]),M=a(M,S,D,k,b,21,f[63]),u[0]=u[0]+k|0,u[1]=u[1]+M|0,u[2]=u[2]+S|0,u[3]=u[3]+D|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var a=t.floor(r/4294967296),i=r;n[(o+64>>>9<<4)+15]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[(o+64>>>9<<4)+14]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;4>u;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=u.clone.call(this);return e._hash=this._hash.clone(),e}});i.MD5=u._createHelper(p),i.HmacMD5=u._createHmacHelper(p)}(Math),e.MD5})},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=n(5),a={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=a,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},l=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in n){s.properties.hasOwnProperty(f)?o(!1):void 0;var p=f.toLowerCase(),d=n[f],h={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(d,t.MUST_USE_ATTRIBUTE),mustUseProperty:r(d,t.MUST_USE_PROPERTY),hasSideEffects:r(d,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(d,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(d,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(d,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(d,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.mustUseAttribute&&h.mustUseProperty?o(!1):void 0,!h.mustUseProperty&&h.hasSideEffects?o(!1):void 0,h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:o(!1),l.hasOwnProperty(f)){var g=l[f];h.attributeName=g}i.hasOwnProperty(f)&&(h.attributeNamespace=i[f]),u.hasOwnProperty(f)&&(h.propertyName=u[f]),c.hasOwnProperty(f)&&(h.mutationMethod=c[f]),s.properties[f]=h}}},i={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=i[e];return r||(i[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:a};e.exports=s},function(e,t,n){"use strict";function r(e){return d+e.toString(36)}function o(e,t){return e.charAt(t)===d||t===e.length}function a(e){return""===e||e.charAt(0)===d&&e.charAt(e.length-1)!==d}function i(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(d)):""}function l(e,t){if(a(e)&&a(t)?void 0:p(!1),i(e,t)?void 0:p(!1),e===t)return e;var n,r=e.length+h;for(n=r;n<t.length&&!o(t,n);n++);return t.substr(0,n)}function u(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var r=0,i=0;n>=i;i++)if(o(e,i)&&o(t,i))r=i;else if(e.charAt(i)!==t.charAt(i))break;var s=e.substr(0,r);return a(s)?void 0:p(!1),s}function c(e,t,n,r,o,a){e=e||"",t=t||"",e===t?p(!1):void 0;var u=i(t,e);u||i(e,t)?void 0:p(!1);for(var c=0,f=u?s:l,d=e;;d=f(d,t)){var h;if(o&&d===e||a&&d===t||(h=n(d,u,r)),h===!1||d===t)break;c++<g?void 0:p(!1)}}var f=n(270),p=n(5),d=".",h=d.length,g=1e4,m={createReactRootID:function(){return r(f.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===d&&e.length>1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var a=u(e,t);a!==e&&c(e,a,n,r,!1,!0),a!==t&&c(a,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(c("",e,t,n,!0,!0),c(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},getFirstCommonAncestorID:u,_getNextDescendantID:l,isAncestorIDOf:i,SEPARATOR:d};e.exports=m},function(e,t,n){var r=n(572);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){(function(e,r){function o(e,t){this._id=e,this._clearFn=t}var a=n(77).nextTick,i=Function.prototype.apply,s=Array.prototype.slice,l={},u=0;t.setTimeout=function(){return new o(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.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))},t.setImmediate="function"==typeof e?e:function(e){var n=u++,r=arguments.length<2?!1:s.call(arguments,1);return l[n]=!0,a(function(){l[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete l[e]}}).call(t,n(66).setImmediate,n(66).clearImmediate)},function(e,t,n){(function(e){var r=n(54),o=n(49),a=function(e,t){var n,r,o;do n=2*Math.random()-1,r=2*Math.random()-1,o=n*n+r*r;while(o>=1||0==o);var a=Math.sqrt(-2*Math.log(o)/o);return(e||0)+n*a*(t||1)},i=function(t,n){if(!t)throw i.useDebugger||"AUTOBAHN_DEBUG"in e&&AUTOBAHN_DEBUG,new Error(n||"Assertion failed!")},s=function(e,t,n){r.debug("new http_post request",e,t,n);var a=o.defer(),i=new XMLHttpRequest;return i.onreadystatechange=function(){if(4===i.readyState){var e=1223===i.status?204:i.status;if(200===e&&a.resolve(i.responseText),204===e)a.resolve();else{var t=null;try{t=i.statusText}catch(n){}a.reject({code:e,text:t})}}},i.open("POST",e,!0),i.setRequestHeader("Content-type","application/json; charset=utf-8"),n>0&&(i.timeout=n,i.ontimeout=function(){a.reject({code:501,text:"request timeout"})}),t?i.send(t):i.send(),a.promise.then?a.promise:a};t.rand_normal=a,t.assert=i,t.http_post=s}).call(t,function(){return this}())},function(e,t){"use strict";function n(e,t,n){if(e)for(;t--;)n(t);else for(var r=0;t>r;r++)n(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.loop=n,t["default"]={loop:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(188),s=r(i),l=n(189),u=r(l),c=n(190),f=r(c),p=n(713),d=r(p);t["default"]=a["default"].createClass({displayName:"AbstractViewerMenu",propTypes:{children:a["default"].PropTypes.array,config:a["default"].PropTypes.object,geometryBuilder:a["default"].PropTypes.object,imageBuilder:a["default"].PropTypes.object,layout:a["default"].PropTypes.string,magicLensController:a["default"].PropTypes.object,mouseListener:a["default"].PropTypes.object,queryDataModel:a["default"].PropTypes.object,renderer:a["default"].PropTypes.string,renderers:a["default"].PropTypes.object},getDefaultProps:function(){return{config:{},renderer:"ImageRenderer"}},getInitialState:function(){return{collapsed:!0,speedIdx:0,speeds:[20,50,100,200,500],record:!1}},componentWillMount:function(){this.attachListener(this.props.queryDataModel)},componentWillReceiveProps:function(e){var t=this.props.queryDataModel,n=e.queryDataModel;t!==n&&(this.detachListener(),this.attachListener(n))},componentWillUnmount:function(){this.detachListener()},attachListener:function(e){var t=this;this.detachListener(),this.queryDataModelChangeSubscription=e.onStateChange(function(e,n){t.forceUpdate()})},detachListener:function(){this.queryDataModelChangeSubscription&&(this.queryDataModelChangeSubscription.unsubscribe(),this.queryDataModelChangeSubscription=null)},toggleRecord:function(){var e=!this.state.record;this.setState({record:e}),this.getRenderer().recordImages(e)},togglePanel:function(){this.setState({collapsed:!this.state.collapsed}),this.props.queryDataModel.fetchData()},toggleLens:function(){var e=this.props.magicLensController;e&&(e.toggleLens(),this.forceUpdate())},resetCamera:function(){!this.isMounted()||"ImageRenderer"!==this.props.renderer&&"GeometryRenderer"!==this.props.renderer||this.refs.imageRenderer.resetCamera()},play:function(){this.props.queryDataModel.animate(!0,this.state.speeds[this.state.speedIdx])},stop:function(){this.props.queryDataModel.animate(!1)},updateSpeed:function(){var e=(this.state.speedIdx+1)%this.state.speeds.length,t=this.props.queryDataModel;this.setState({speedIdx:e}),t.isAnimating()&&t.animate(!0,this.state.speeds[e])},getRenderer:function(){return this.refs.imageRenderer},render:function(){var e=this.props.queryDataModel,t=this.props.magicLensController,n=t||this.props.imageBuilder,r=null,o=!!this.props.config.Recording,i="ImageRenderer"===this.props.renderer,l="MultiViewRenderer"===this.props.renderer,c="GeometryRenderer"===this.props.renderer;return i&&(r=a["default"].createElement(u["default"],{ref:"imageRenderer",className:d["default"].renderer,imageBuilder:n,listener:this.props.mouseListener||n.getListeners()})),l&&(r=a["default"].createElement(f["default"],{ref:"imageRenderer",className:d["default"].renderer,renderers:this.props.renderers,layout:this.props.layout})),c&&(r=a["default"].createElement(s["default"],{ref:"imageRenderer",className:d["default"].renderer,geometryBuilder:this.props.geometryBuilder})),a["default"].createElement("div",{className:d["default"].container},a["default"].createElement("div",{className:this.state.collapsed?d["default"].collapsedControl:d["default"].control},a["default"].createElement("div",{className:d["default"].controlBar},a["default"].createElement("i",{className:t?t.isFront()?d["default"].magicLensButtonIn:d["default"].magicLensButtonOut:d["default"].hidden,onClick:this.toggleLens}),a["default"].createElement("i",{className:o&&i&&this.props.imageBuilder.handleRecord?this.state.record?d["default"].recordButtonOn:d["default"].recordButtonOff:d["default"].hidden,onClick:this.toggleRecord}),a["default"].createElement("i",{className:i||c?d["default"].resetCameraButton:d["default"].hidden,onClick:this.resetCamera}),a["default"].createElement("i",{className:e.hasAnimationFlag()&&!e.isAnimating()?d["default"].playButton:d["default"].hidden,onClick:this.play}),a["default"].createElement("i",{className:e.isAnimating()?d["default"].stopButton:d["default"].hidden,onClick:this.stop}),a["default"].createElement("i",{className:e.hasAnimationFlag()?d["default"].speedButton:d["default"].hidden,onClick:this.updateSpeed}),a["default"].createElement("i",{className:e.hasAnimationFlag()?d["default"].animationSpeed:d["default"].hidden,onClick:this.updateSpeed},this.state.speeds[this.state.speedIdx]+"ms"),a["default"].createElement("i",{className:this.state.collapsed?d["default"].collapsedMenuButton:d["default"].menuButton,onClick:this.togglePanel})),a["default"].createElement("div",{className:d["default"].controlContent},this.props.children)),r)}})},function(e,t,n){var r=n(38),o=n(214),a=n(211),i=n(13),s=n(28),l=n(225);e.exports=function(e,t,n,u){var c,f,p,d=l(e),h=r(n,u,t?2:1),g=0;if("function"!=typeof d)throw TypeError(e+" is not iterable!");if(a(d))for(c=s(e.length);c>g;g++)t?h(i(f=e[g])[0],f[1]):h(e[g]);else for(p=d.call(e);!(f=p.next()).done;)o(p,h,f.value,t)}},function(e,t){e.exports={}},function(e,t,n){var r=n(8).setDesc,o=n(27),a=n(14)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(74),o=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),0>e?o(e+t,0):a(e,t)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){function r(e,t){return o(a(e),t)}var o=n(621),a=n(238);e.exports=r},function(e,t){function n(){u=!1,i.length?l=i.concat(l):c=-1,l.length&&r()}function r(){if(!u){var e=setTimeout(n);u=!0;for(var t=l.length;t;){for(i=l,l=[];++c<t;)i&&i[c].run();c=-1,t=l.length}i=null,u=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function a(){}var i,s=e.exports={},l=[],u=!1,c=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new o(e,t)),1!==l.length||u||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=a,s.addListener=a,s.once=a,s.off=a,s.removeListener=a,s.removeAllListeners=a,s.emit=a,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(250),o=n(651),a=n(263),i=n(272),s=n(273),l=n(5),u=(n(9),{}),c=null,f=function(e,t){e&&(o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},p=function(e){return f(e,!0)},d=function(e){return f(e,!1)},h=null,g={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(e){h=e},getInstanceHandle:function(){return h},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){"function"!=typeof n?l(!1):void 0;var o=u[t]||(u[t]={});o[e]=n;var a=r.registrationNameModules[t];a&&a.didPutListener&&a.didPutListener(e,t,n)},getListener:function(e,t){var n=u[t];return n&&n[e]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=u[t];o&&delete o[e]},deleteAllListeners:function(e){for(var t in u)if(u[t][e]){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete u[t][e]}},extractEvents:function(e,t,n,o,a){for(var s,l=r.plugins,u=0;u<l.length;u++){var c=l[u];if(c){var f=c.extractEvents(e,t,n,o,a);f&&(s=i(s,f))}}return s},enqueueEvents:function(e){e&&(c=i(c,e))},processEventQueue:function(e){var t=c;c=null,e?s(t,p):s(t,d),c?l(!1):void 0,a.rethrowCaughtError()},__purge:function(){u={}},__getListenerBank:function(){return u}};e.exports=g; -},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return _(e,r)}function o(e,t,n){var o=t?v.bubbled:v.captured,a=r(e,n,o);a&&(n._dispatchListeners=g(n._dispatchListeners,a),n._dispatchIDs=g(n._dispatchIDs,e))}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(e.dispatchMarker,o,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=_(e,r);o&&(n._dispatchListeners=g(n._dispatchListeners,o),n._dispatchIDs=g(n._dispatchIDs,e))}}function l(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function u(e){m(e,a)}function c(e){m(e,i)}function f(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function p(e){m(e,l)}var d=n(41),h=n(78),g=(n(9),n(272)),m=n(273),v=d.PropagationPhases,_=h.getListener,y={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};e.exports=y},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(53),a=n(150),i={view:function(e){if(e.view)return e.view;var t=a(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,i),e.exports=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={getDefaultProps:function(){return{name:"",help:""}},getInitialState:function(){return{data:this.props.data,helpOpen:!1,ui:this.props.ui}},componentWillMount:function(){var e={};this.props.ui["default"]&&!this.props.data.value&&(e.data=this.state.data,e.data.value=this.props.ui["default"]),Object.keys(e).length>0&&this.setState(e)},componentWillReceiveProps:function(e){var t=e.data;this.state.data!==t&&this.setState({data:t})},helpToggled:function(e){this.setState({helpOpen:e})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(193),a=r(o),i=n(120),s=r(i),l=n(3),u=r(l),c=n(22),f=r(c),p=n(728),d=r(p),h={range:{none:{display:"flex"},edit:{display:"flex"},preset:{display:"none"}},editContent:{none:{display:"none"},edit:{display:"flex"},preset:{display:"none"}},presets:{none:{display:"none"},edit:{display:"none"},preset:{display:"flex"}}};t["default"]=u["default"].createClass({displayName:"LookupTableWidget",propTypes:{inverse:u["default"].PropTypes.bool,lookupTable:u["default"].PropTypes.object.isRequired,lookupTableManager:u["default"].PropTypes.object,originalRange:u["default"].PropTypes.array},getInitialState:function(){return{mode:"none",activePreset:this.props.lookupTable.getPresets()[0],currentControlPointIndex:0,internal_lut:!1}},componentDidMount:function(){var e=f["default"].findDOMNode(this.refs.canvas);this.props.lookupTable.drawToCanvas(e)},componentDidUpdate:function(e,t){if(!this.state.internal_lut){var n=f["default"].findDOMNode(this.refs.canvas);if(this.props.lookupTable.drawToCanvas(n),"edit"===this.state.mode){var r=n.getContext("2d"),o=Math.floor(this.props.lookupTable.getControlPoint(this.state.currentControlPointIndex).x*this.props.lookupTable.colorTableSize),a=r.getImageData(0,0,this.props.lookupTable.colorTableSize,1),i=a.data[4*o]+a.data[4*o+1]+a.data[4*o+2]>382.5?0:255;a.data[4*o+0]=this.props.inverse?(a.data[4*o+0]+128)%256:i,a.data[4*o+1]=this.props.inverse?(a.data[4*o+1]+128)%256:i,a.data[4*o+2]=this.props.inverse?(a.data[4*o+2]+128)%256:i,r.putImageData(a,0,0)}}},toggleEditMode:function(){"none"===this.state.mode||"edit"!==this.state.mode?this.setState({mode:"edit",internal_lut:!1}):this.setState({mode:"none",internal_lut:!1})},togglePresetMode:function(){"none"===this.state.mode||"preset"!==this.state.mode?(this.deltaPreset(0),this.setState({mode:"preset",internal_lut:!0})):this.setState({mode:"none",internal_lut:!1})},updateScalarRange:function(){var e=f["default"].findDOMNode(this.refs.min).value,t=f["default"].findDOMNode(this.refs.max).value;this.props.lookupTable.setScalarRange(e,e===t?t+1:t),this.forceUpdate()},addControlPoint:function(){var e=this.props.lookupTable.addControlPoint({x:.5,r:0,g:0,b:0});this.setState({currentControlPointIndex:e})},deleteControlPoint:function(){this.props.lookupTable.removeControlPoint(this.state.currentControlPointIndex)&&this.forceUpdate()},nextControlPoint:function(){var e=this.state.currentControlPointIndex+1;e<this.props.lookupTable.getNumberOfControlPoints()&&this.setState({currentControlPointIndex:e})},previousControlPoint:function(){var e=this.state.currentControlPointIndex-1;e>-1&&this.setState({currentControlPointIndex:e})},updateScalar:function(e){var t=this.props.lookupTable.getScalarRange(),n=(e-t[0])/(t[1]-t[0]),r=this.props.lookupTable.getControlPoint(this.state.currentControlPointIndex),o=this.props.lookupTable.updateControlPoint(this.state.currentControlPointIndex,{x:n,r:r.r,g:r.g,b:r.b});this.setState({currentControlPointIndex:o}),this.forceUpdate()},updateRGB:function(e){var t=this.props.lookupTable.getControlPoint(this.state.currentControlPointIndex),n=this.props.lookupTable.updateControlPoint(this.state.currentControlPointIndex,{x:t.x,r:e[0]/255,g:e[1]/255,b:e[2]/255});this.setState({currentControlPointIndex:n})},setPreset:function(e){this.props.lookupTable.setPreset(e.target.dataset.name),this.togglePresetMode()},resetRange:function(){var e=this.props.originalRange;this.props.lookupTable.setScalarRange(e[0],e[1])},changePreset:function(e){var t=e.detail||e.deltaY||e.deltaX;e.preventDefault(),this.deltaPreset(t)},nextPreset:function(){this.deltaPreset(1)},previousPreset:function(){this.deltaPreset(-1)},deltaPreset:function(e){var t=this.props.lookupTable.getPresets(),n=t.indexOf(this.state.activePreset),r=null;if(n+=0===e?0:0>e?-1:1,!(0>n||n===t.length)){if(r=t[n],this.props.lookupTableManager){var o=this.props.lookupTableManager.getLookupTable("__internal");o?o.setPreset(r):o=this.props.lookupTableManager.addLookupTable("__internal",[0,1],r),o.drawToCanvas(f["default"].findDOMNode(this.refs.canvas))}this.setState({activePreset:r})}},render:function(){var e=this,t=this.props.lookupTable.getScalarRange(),n=this.props.lookupTable.getControlPoint(this.state.currentControlPointIndex),r=n.x*(t[1]-t[0])+t[0],o=[Math.floor(255*n.r),Math.floor(255*n.g),Math.floor(255*n.b)];return u["default"].createElement("div",{className:d["default"].container},u["default"].createElement("div",{className:d["default"].line},u["default"].createElement("i",{className:d["default"].editButton,onClick:this.toggleEditMode}),u["default"].createElement("canvas",{ref:"canvas",className:d["default"].canvas,width:this.props.lookupTable.colorTableSize*this.props.lookupTable.scale,height:"1"}),u["default"].createElement("i",{className:d["default"].presetButton,onClick:this.togglePresetMode})),u["default"].createElement("div",{className:d["default"].range,style:h.range[this.state.mode]},u["default"].createElement(s["default"],{ref:"min",className:d["default"].input,value:this.props.lookupTable.getScalarRange()[0],onChange:this.updateScalarRange}),u["default"].createElement("i",{onClick:this.resetRange,className:d["default"].resetRangeButton}),u["default"].createElement(s["default"],{ref:"max",className:d["default"].inputRight,value:this.props.lookupTable.getScalarRange()[1],onChange:this.updateScalarRange})),u["default"].createElement("div",{className:d["default"].editContent,style:h.editContent[this.state.mode]},u["default"].createElement("div",{className:d["default"].line},u["default"].createElement("i",{onClick:this.previousControlPoint,className:d["default"].previousButton}),u["default"].createElement("div",{className:d["default"].label},this.state.currentControlPointIndex+1," / ",this.props.lookupTable.getNumberOfControlPoints()),u["default"].createElement("i",{onClick:this.nextControlPoint,className:d["default"].nextButton}),u["default"].createElement("i",{onClick:this.addControlPoint,className:d["default"].addButton}),u["default"].createElement(s["default"],{ref:"x",className:d["default"].inputRight,value:r,onChange:this.updateScalar}),u["default"].createElement("i",{onClick:this.deleteControlPoint,className:d["default"].deleteButton})),u["default"].createElement(a["default"],{color:o,onChange:this.updateRGB})),u["default"].createElement("div",{className:d["default"].presets,style:h.presets[this.state.mode]},u["default"].createElement("i",{onClick:this.previousPreset,className:this.state.activePreset===this.props.lookupTable.getPresets()[0]?d["default"].disablePreviousButton:d["default"].previousButton}),this.props.lookupTable.getPresets().map(function(t){return u["default"].createElement("div",{onClick:e.setPreset,onScroll:e.changePreset,onWheel:e.changePreset,className:e.state.activePreset===t?d["default"].preset:d["default"].hiddenPreset,"data-name":t,key:t},t)}),u["default"].createElement("i",{onClick:this.nextPreset,className:this.state.activePreset===this.props.lookupTable.getPresets()[this.props.lookupTable.getPresets().length-1]?d["default"].disableNextButton:d["default"].nextButton})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(729),s=r(i);t["default"]=a["default"].createClass({displayName:"NumberSliderWidget",propTypes:{max:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),min:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,step:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),value:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string])},getDefaultProps:function(){return{max:100,min:0,step:1,value:50}},getInitialState:function(){return{max:this.props.max,min:this.props.min,step:this.props.step,value:this.props.value}},valInput:function(e){this.setState({value:e.target.value}),this.props.onChange&&(this.props.name&&(e.target.name=this.props.name),this.props.onChange(e))},value:function(e){return 0===arguments.length?this.state.value:(e=Math.max(this.state.min,Math.min(e,this.state.max)),void this.setState({value:e}))},render:function(){var e=this.props.min,t=this.props.max;return a["default"].createElement("div",{className:s["default"].container},a["default"].createElement("input",{type:"range",className:s["default"].range,value:this.props.value,onChange:this.valInput,max:t,min:e}),a["default"].createElement("input",{type:"number",className:s["default"].text,value:this.props.value,onChange:this.valInput,max:t,min:e}))}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={getDefaultProps:function(){return{listener:!0}},attachListener:function(e){this.dataSubscription=e.onStateChange(this.dataListenerCallback)},detachListener:function(){this.dataSubscription&&(this.dataSubscription.unsubscribe(),this.dataSubscription=null)},componentWillMount:function(){this.detachListener(),this.props.listener&&this.attachListener(this.props.model)},componentWillUnmount:function(){this.detachListener()},componentWillReceiveProps:function(e){var t=this.props.model,n=e.model;t!==n&&(this.detachListener(),this.attachListener(n))}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={dataListenerCallback:function(e,t){this.forceUpdate()}}},function(e,t,n){var r=n(38),o=n(92),a=n(46),i=n(28),s=n(431);e.exports=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,c=6==e,f=5==e||c;return function(p,d,h){for(var g,m,v=a(p),_=o(v),y=r(d,h,3),b=i(_.length),w=0,x=t?s(p,b):n?s(p,0):void 0;b>w;w++)if((f||w in _)&&(g=_[w],m=y(g,w,v),e))if(t)x[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:x.push(g)}else if(u)return!1;return c?-1:l||u?u:x}}},function(e,t,n){var r=n(44),o=n(14)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=(t=Object(e))[o])?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){"use strict";var r=n(16),o=n(2),a=n(33),i=n(93),s=n(70),l=n(95),u=n(12),c=n(19),f=n(125),p=n(72);e.exports=function(e,t,n,d,h,g){var m=r[e],v=m,_=h?"set":"add",y=v&&v.prototype,b={},w=function(e){var t=y[e];a(y,e,"delete"==e?function(e){return g&&!u(e)?!1:t.call(this,0===e?0:e)}:"has"==e?function(e){return g&&!u(e)?!1:t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof v&&(g||y.forEach&&!c(function(){(new v).entries().next()}))){var x,C=new v,E=C[_](g?{}:-0,1)!=C,T=c(function(){C.has(1)}),P=f(function(e){new v(e)});P||(v=t(function(t,n){l(t,v,e);var r=new m;return void 0!=n&&s(n,h,r[_],r),r}),v.prototype=y,y.constructor=v),g||C.forEach(function(e,t){x=1/t===-(1/0)}),(T||x)&&(w("delete"),w("has"),h&&w("get")),(x||E)&&w(_),g&&y.clear&&delete y.clear}else v=d.getConstructor(t,e,h,_),i(v.prototype,n);return p(v,e),b[e]=v,o(o.G+o.W+o.F*(v!=m),b),g||d.setStrong(v,e,h),v}},function(e,t,n){"use strict";var r=n(40),o=n(33),a=n(19),i=n(39),s=n(14);e.exports=function(e,t,n){var l=s(e),u=""[e];a(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,n(i,l,u)),r(RegExp.prototype,l,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(44);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(33);e.exports=function(e,t){for(var n in t)r(e,n,t[n]);return e}},function(e,t,n){"use strict";var r=n(16),o=n(8),a=n(31),i=n(14)("species");e.exports=function(e){var t=r[e];a&&t&&!t[i]&&o.setDesc(t,i,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError(n+": use the 'new' operator!");return e}},function(e,t,n){var r=n(2),o=n(39),a=n(19),i=" \n\x0B\f\r \u2028\u2029\ufeff",s="["+i+"]",l=" ",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t){var n={};n[e]=t(p),r(r.P+r.F*a(function(){return!!i[e]()||l[e]()!=l}),"String",n)},p=f.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.Base,a=r.WordArray,i=n.x64={};i.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=o.extend({init:function(e,n){e=this.words=e||[],n!=t?this.sigBytes=n:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;t>r;r++){var o=e[r];n.push(o.high),n.push(o.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;n>r;r++)t[r]=t[r].clone();return e}})}(),e})},function(e,t,n){"use strict";var r=n(5),o=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=o},function(e,t,n){var r,o;r=[n(101),n(640),n(245),n(242)],o=function(e,t,n,r){function o(t){return function(n,r){return e(this,r)&&t(n,this[r])}}function a(t,n){return e(this,n)}function i(e,i,s){return s=s||r,n(e)&&n(i)?t(e,o(s),i)&&t(i,a,e):s(e,i)}return i}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(101),n(641)],o=function(e,t){function n(n,r,o){t(n,function(t,a){return e(n,a)?r.call(o,n[a],a,n):void 0})}return n}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r,o;r=[n(101),n(241),n(245)],o=function(e,t,n){function r(){var o,a,i,s,l=1;for(s=t(arguments[0]);i=arguments[l++];)for(o in i)e(i,o)&&(a=i[o],n(a)&&n(s[o])?s[o]=r(s[o],a):s[o]=t(a));return s}return r}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=h++,p[e[m]]={}),p[e[m]]}var o=n(41),a=n(78),i=n(250),s=n(666),l=n(29),u=n(271),c=n(10),f=n(153),p={},d=!1,h=0,g={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=c({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),s=i.registrationNameDependencies[e],l=o.topLevelTypes,u=0;u<s.length;u++){var c=s[u];a.hasOwnProperty(c)&&a[c]||(c===l.topWheel?f("wheel")?v.ReactEventListener.trapBubbledEvent(l.topWheel,"wheel",n):f("mousewheel")?v.ReactEventListener.trapBubbledEvent(l.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(l.topWheel,"DOMMouseScroll",n):c===l.topScroll?f("scroll",!0)?v.ReactEventListener.trapCapturedEvent(l.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(l.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):c===l.topFocus||c===l.topBlur?(f("focus",!0)?(v.ReactEventListener.trapCapturedEvent(l.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(l.topBlur,"blur",n)):f("focusin")&&(v.ReactEventListener.trapBubbledEvent(l.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(l.topBlur,"focusout",n)),a[l.topBlur]=!0,a[l.topFocus]=!0):g.hasOwnProperty(c)&&v.ReactEventListener.trapBubbledEvent(c,g[c],n),a[c]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!d){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),d=!0}},eventNameDispatchConfigs:a.eventNameDispatchConfigs,registrationNameModules:a.registrationNameModules,putListener:a.putListener,getListener:a.getListener,deleteListener:a.deleteListener,deleteAllListeners:a.deleteAllListeners});l.measureMethods(v,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),e.exports=v},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(98),o=r({prop:null,context:null,childContext:null});e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(81),a=n(271),i=n(149),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:i,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+a.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+a.currentScrollTop}};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";var r=n(5),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,a,i,s,l){this.isInTransaction()?r(!1):void 0;var u,c;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),c=e.call(t,n,o,a,i,s,l),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(f){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=a.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===a.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(o){}}}},closeAll:function(e){this.isInTransaction()?void 0:r(!1);for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o,i=t[n],s=this.wrapperInitData[n];try{o=!0,s!==a.OBSERVED_ERROR&&i.close&&i.close.call(this,s),o=!1}finally{if(o)try{this.closeAll(n+1)}catch(l){}}}this.wrapperInitData.length=0}},a={Mixin:o,OBSERVED_ERROR:{}};e.exports=a},function(e,t,n){"use strict";var r=!1;e.exports=r},function(e,t){"use strict";function n(e){return o[e]}function r(e){return(""+e).replace(a,n)}var o={"&":"&",">":">","<":"<",'"':""","'":"'"},a=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";var r=n(20),o=/^[ \r\n\t\f]/,a=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,i=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(i=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(i=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&a.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=i},function(e,t,n){var r;(function(o){/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(a){"use strict";r=function(e){function t(){return"undefined"!=typeof o&&"[object process]"===Object.prototype.toString.call(o)}function r(){return"function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver}function a(e){function t(){var e=n;n=void 0,e()}var n,r=document.createTextNode(""),o=new e(t);o.observe(r,{characterData:!0});var a=0;return function(e){n=e,r.data=a^=1}}var i,s="undefined"!=typeof setTimeout&&setTimeout,l=function(e,t){return setTimeout(e,t)},u=function(e){return clearTimeout(e)},c=function(e){return s(e,0)};if(t())c=function(e){return o.nextTick(e)};else if(i=r())c=a(i);else if(!s){var f=n(767);l=function(e,t){return f.setTimer(t,e)},u=f.cancelTimer,c=f.runOnLoop||f.runOnContext}return{setTimer:l,clearTimer:u,asap:c}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))}).call(t,n(77))},function(e,t){"use strict";function n(e){return parseInt(e,10)}function r(e){return parseFloat(e)}function o(e){return String(e)}function a(e){return Boolean(e)}function i(e){return console.log("Try to convert to proxy",e),e}Object.defineProperty(t,"__esModule",{value:!0}),t.integer=n,t["double"]=r,t.string=o,t["boolean"]=a,t.proxy=i,t["default"]={integer:n,"int":n,"double":r,dbl:r,"float":r,string:o,str:o,"boolean":a,bool:a,proxy:i}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(15),s=r(i),l="toggle.change",u=function(){function e(){var t=this,n=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];o(this,e),this.state=n,this.toggleState=function(){t.state=!t.state,t.emit(l,t.state)}}return a(e,[{key:"setState",value:function(e){!!e!==this.state&&(this.state=!!e,this.emit(l,this.state))}},{key:"getState",value:function(){return this.state}},{key:"onChange",value:function(e){return this.on(l,e)}},{key:"destroy",value:function(){this.off()}}]),e}();t["default"]=u,s["default"].mixInto(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){return(new Date).getTime()}function i(e){return"json"===e.type?e.size=JSON.stringify(e.data).length:"blob"===e.type?e.size=e.data.size:e.size=e.data.length,e.size}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(324),u=r(l),c=n(323),f=r(c),p=n(15),d=r(p),h={json:u["default"].fetchJSON,text:u["default"].fetchTxt,blob:u["default"].fetchBlob,arraybuffer:u["default"].fetchArray,array:u["default"].fetchArray},g=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?1e9:arguments[0];o(this,e),this.pattern=new f["default"],this.keyToTypeMap={},this.cacheSize=t,this.cacheData={cache:{},modified:0,ts:0,size:0}}return s(e,[{key:"destroy",value:function(){this.off(),this.clear()}},{key:"fetch",value:function(e,t){var n=this,r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=t?this.pattern.getValue(e,t):e,s=this.cacheData.cache[o];return s?s.pending?(s.keysToNotify.push(e),r&&s.keysToNotify.push(r)):(this.cacheData.ts=s.ts=a(),setTimeout(function(){var t=s.keysToNotify||[e],o=t.length;for(delete s.keysToNotify;o--;)n.emit(t[o],s);r&&n.emit(r,s)},0)):!function(){n.gc(),n.cacheData.cache[o]={pending:!0,keysToNotify:[e]},r&&n.cacheData.cache[o].keysToNotify.push(r);var l=n,u=n.keyToTypeMap[e],c=u[0],f=u[1],p=u[2],d=function(n,r){if(n)return delete l.cacheData.cache[o],l.emit(e,{error:n,data:{key:e,options:t,url:o,typeFnMime:u}}),null;s={data:r,type:c,requestedURL:o,pending:!1},p&&-1!==p.indexOf("image")&&(s.url=window.URL.createObjectURL(r)),l.cacheData.size+=i(s),l.cacheData.modified=l.cacheData.ts=s.ts=a();var f=l.cacheData.cache[o].keysToNotify,d=f.length;for(l.cacheData.cache[o]=s;d--;)l.emit(f[d],s)};f(o,p?p:d,d)}(),o}},{key:"fetchURL",value:function(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];return this.keyToTypeMap[e]=[t,h[t],n],this.fetch(e,null,r)}},{key:"get",value:function(e,t){var n=this.cacheData.cache[e];return t&&this.free(e),n}},{key:"free",value:function(e){var t=this.cacheData.cache[e];t&&t.url&&(window.URL.revokeObjectURL(t.url),delete t.url),delete this.cacheData.cache[e],this.off(e)}},{key:"registerURL",value:function(e,t,n,r){this.pattern.registerPattern(e,t),this.keyToTypeMap[e]=[n,h[n],r]}},{key:"unregisterURL",value:function(e){this.pattern.unregisterPattern(e),delete this.keyToTypeMap[e],this.off(e)}},{key:"clear",value:function(){var e=[];for(var t in this.cacheData.cache)e.push(t);for(var n=e.length;n--;)this.free(e[n]);this.cacheData.size=0}},{key:"gc",value:function(){this.cacheData.size>this.cacheSize&&(console.log("Free cache memory",this.cacheData.size),this.clear())}},{key:"setCacheSize",value:function(e){this.cacheSize=e}},{key:"getCacheSize",value:function(){return this.cacheSize}},{key:"getMemoryUsage",value:function(){return this.cacheData.size}}]),e}();t["default"]=g,d["default"].mixInto(g)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=D[e];return n?n(t):null}function a(e){if(!e)return[];var t=e.getControlWidgets(),n=[];return t.forEach(function(e){var t=o(e.name,e);t?n.push(t):console.error("Unable to create widget for name: "+name)}),n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i),l=n(25),u=r(l),c=n(178),f=r(c),p=n(179),d=r(p),h=n(116),g=r(h),m=n(181),v=r(m),_=n(117),y=r(_),b=n(182),w=r(b),x=n(183),C=r(x),E=n(194),T=r(E),P=n(119),k=r(P),M=n(83),S=r(M),D={QueryDataModelWidget:function(e){var t=e.queryDataModel,n=e.handleExploration;return s["default"].createElement(w["default"],{key:"QueryDataModel",handleExploration:!!n,model:t})},EqualizerWidget:function(e){var t=e.levels,n=e.colors,r=void 0===n?["#cccccc"]:n,o=e.callback;return s["default"].createElement(k["default"],{key:"Equalizer",width:300,height:120,layers:t,onChange:o,colors:r})},LookupTableWidget:function(e){var t=e.originalRange,n=void 0===t?[0,1]:t,r=e.lookupTable,o=e.lookupTableManager;return s["default"].createElement(u["default"],{title:"LookupTable",key:"LookupTableWidget_parent"},s["default"].createElement(S["default"],{key:"LookupTableWidget",ref:"LookupTableWidget",originalRange:n,lookupTable:r,lookupTableManager:o}))},LookupTableManagerWidget:function(e){var t=e.lookupTableManager,n=e.field;return n||(n=t.getActiveField()),s["default"].createElement(g["default"],{key:"LookupTableManagerWidget",ref:"LookupTableManagerWidget",field:n,lookupTableManager:t})},CompositeControl:function(e){var t=e.pipelineModel;return s["default"].createElement(u["default"],{title:"Pipeline",key:"CompositeControl_parent"},s["default"].createElement(T["default"],{key:"CompositeControl",ref:"CompositeControl",model:t}))},ProbeControl:function(e){var t=e.model;return s["default"].createElement(y["default"],{key:"ProbeControl",ref:"ProbeControl",imageBuilder:t})},LightPropertiesWidget:function(e){var t=e.light;return s["default"].createElement(d["default"],{key:"LightPropertiesWidget",ref:"LightPropertiesWidget",light:t})},VolumeControlWidget:function(e){var t=e.lookupTable,n=e.equalizer,r=e.intensity,o=e.computation;return s["default"].createElement(C["default"],{key:"VolumeControlWidget",ref:"VolumeControlWidget",intensity:r,computation:o,equalizer:n,lookupTable:t})},PixelOperatorControl:function(e){var t=e.model;return s["default"].createElement(v["default"],{key:"PixelOperatorControl",ref:"PixelOperatorControl",operator:t})},FloatImageControl:function(e){var t=e.model;return s["default"].createElement(f["default"],{key:"FloatImageControl",ref:"FloatImageControl",model:t})}};t["default"]={createWidget:o,getWidgets:a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=r(o),i=n(83),s=r(i),l=n(197),u=r(l),c=n(3),f=r(c);t["default"]=f["default"].createClass({displayName:"lookupTableManagerControl",propTypes:{field:f["default"].PropTypes.string,lookupTableManager:f["default"].PropTypes.object.isRequired},getInitialState:function(){var e=this.props.lookupTableManager.luts,t=Object.keys(e),n=this.props.field||t[0];return{field:n,fields:t}},componentWillMount:function(){var e=this;this.changeSubscription=this.props.lookupTableManager.onFieldsChange(function(t,n){var r=Object.keys(e.props.lookupTableManager.luts);e.setState({fields:r})})},componentWillUnmount:function(){this.changeSubscription&&(this.changeSubscription.unsubscribe(),this.changeSubscription=null)},onFieldsChange:function(e){this.props.lookupTableManager.updateActiveLookupTable(e),this.setState({field:e})},render:function(){var e=this.props.lookupTableManager,t=e.getLookupTable(this.state.field),n=t.getScalarRange();return f["default"].createElement(a["default"],{title:"Lookup Table",subtitle:f["default"].createElement(u["default"],{field:this.state.field,fields:this.state.fields,onChange:this.onFieldsChange})},f["default"].createElement(s["default"],{lookupTableManager:e,lookupTable:t,originalRange:n}))}})},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(84),s=r(i),l=n(25),u=r(l);t["default"]=a["default"].createClass({displayName:"ProbeControl",propTypes:{imageBuilder:a["default"].PropTypes.object.isRequired,imageBuilders:a["default"].PropTypes.object},getDefaultProps:function(){return{imageBuilders:{}}},getInitialState:function(){var e=this.getImageBuilder(this.props);return{probe:[e.getProbe()[0],e.getProbe()[1],e.getProbe()[2]],showFieldValue:!0}},componentWillMount:function(){this.attachImageBuilderListeners(this.getImageBuilder(this.props))},componentDidMount:function(){this.setState({showFieldValue:this.refs.ProbeInput.isExpanded()})},componentWillReceiveProps:function(e){var t=this.getImageBuilder(this.props),n=this.getImageBuilder(e);t!==n&&this.attachImageBuilderListeners(n)},componentWillUnmount:function(){this.detachImageBuilderListeners()},getImageBuilder:function(e){var t=e.imageBuilder;if(!t){var n=Object.keys(e.imageBuilders)[0];t=e.imageBuilders[n].builder}return t},attachImageBuilderListeners:function(e){var t=this;this.detachImageBuilderListeners(),this.probeListenerSubscription=e.onProbeChange(function(n,r){var o=e.getFieldValueAtProbeLocation();t.isMounted()&&t.setState({probe:n,field:o})}),this.probeDataListenerSubscription=e.onProbeLineReady(function(n,r){var o=e.getFieldValueAtProbeLocation();t.isMounted()&&o!==t.state.field&&t.setState({field:o})})},detachImageBuilderListeners:function(){this.probeListenerSubscription&&(this.probeListenerSubscription.unsubscribe(),this.probeListenerSubscription=null),this.probeDataListenerSubscription&&(this.probeDataListenerSubscription.unsubscribe(),this.probeDataListenerSubscription=null)},updateRenderMethod:function(e){this.props.imageBuilder&&(this.props.imageBuilder.setRenderMethod(e.target.value),this.props.imageBuilder.render(),this.forceUpdate())},probeChange:function(e){var t=Number(e.target.value),n=this.state.probe,r=Number(e.target.name);n[r]=t,this.getImageBuilder(this.props).setProbe(n[0],n[1],n[2])},onProbeVisibilityChange:function(t){var n=this;this.setState({showFieldValue:t}),e(function(){if(n.props.imageBuilders)for(var e in n.props.imageBuilders){var r=n.props.imageBuilders[e].builder;r.setCrossHairEnable(t),r.render()}n.props.imageBuilder&&(n.props.imageBuilder.setCrossHairEnable(t),n.props.imageBuilder.render())})},render:function(){var e=this.getImageBuilder(this.props),t=this.state.field||e.getFieldValueAtProbeLocation(),n=""+t;return void 0===t?n="":(n&&n.length>6&&(n=t.toFixed(5)),Math.abs(t)<1e-5&&(n="0")),a["default"].createElement("div",null,a["default"].createElement(u["default"],{title:"Render method",visible:e.isRenderMethodMutable()},a["default"].createElement("select",{style:{width:"100%"},value:e.getRenderMethod(),onChange:this.updateRenderMethod},e.getRenderMethods().map(function(e){return a["default"].createElement("option",{key:e,value:e},e)}))),a["default"].createElement(u["default"],{title:"Probe",subtitle:this.state.showFieldValue?n:"",ref:"ProbeInput",onChange:this.onProbeVisibilityChange,open:e.isCrossHairEnabled()},a["default"].createElement(s["default"],{name:"0",min:"0",max:e.metadata.dimensions[0]-1,key:"slider-x",value:this.state.probe[0],onChange:this.probeChange}),a["default"].createElement(s["default"],{name:"1",min:"0",max:e.metadata.dimensions[1]-1,key:"slider-Y",value:this.state.probe[1],onChange:this.probeChange}),a["default"].createElement(s["default"],{name:"2",min:"0",max:e.metadata.dimensions[2]-1,key:"slider-Z",value:this.state.probe[2],onChange:this.probeChange})))}})}).call(t,n(66).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t,n){var r=g[o(e.ui.propType)];return r?r(e,t,n):null};var a=n(184),i=r(a),s=n(185),l=r(s),u=n(186),c=r(u),f=n(3),p=r(f),d=n(187),h=r(d),g={Cell:function(e,t,n){return p["default"].createElement(i["default"],{key:e.data.id,data:e.data,ui:e.ui,viewData:t,show:e.show,onChange:n})},Slider:function(e,t,n){return p["default"].createElement(h["default"],{key:e.data.id,data:e.data,ui:e.ui,viewData:t,show:e.show,onChange:n})},Enum:function(e,t,n){return p["default"].createElement(c["default"],{key:e.data.id,data:e.data,ui:e.ui,viewData:t,show:e.show,onChange:n})},Checkbox:function(e,t,n){return p["default"].createElement(l["default"],{key:e.data.id,data:e.data,ui:e.ui,viewData:t,show:e.show,onChange:n})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(137),a=r(o),i=n(56),s=r(i),l=n(3),u=r(l),c=n(22),f=r(c),p=n(37),d=n(723),h=r(d);t["default"]=u["default"].createClass({displayName:"EqualizerWidget",propTypes:{colors:u["default"].PropTypes.array,height:u["default"].PropTypes.number,layers:u["default"].PropTypes.array,onChange:u["default"].PropTypes.func,spacing:u["default"].PropTypes.number,stroke:u["default"].PropTypes.string,width:u["default"].PropTypes.number},getDefaultProps:function(){return{layers:[1,1,1,1,1,1,1],colors:["#0000ff","#ffffff","#ff0000"],stroke:"#000000",height:120,width:300,spacing:2}},getInitialState:function(){return{layers:this.props.layers,width:this.props.width,height:this.props.height}},componentWillMount:function(){this.sizeSubscription=(0,p.onSizeChange)(this.updateDimensions),(0,p.startListening)()},componentDidMount:function(){this.updateDimensions(),this.draw(),this.mouseHandler=new s["default"](f["default"].findDOMNode(this.refs.canvas)),this.mouseHandler.attach({click:this.clicked,drag:this.clicked})},componentWillReceiveProps:function(e){var t=e.layers;(0,a["default"])(this.state.layers,t)||this.setState({layers:t})},componentDidUpdate:function(e,t){this.draw()},componentWillUnmount:function(){this.mouseHandler.destroy(),this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},updateDimensions:function(){var e=f["default"].findDOMNode(this).parentNode,t=(0,p.getSize)(e).clientWidth;return e&&t&&this.state.width!==t?(this.setState({width:t}),!0):!1},draw:function(){var e=f["default"].findDOMNode(this.refs.canvas).getContext("2d");e.strokeStyle=this.props.stroke,e.lineWidth="1";var t=this.state.layers,n=this.state.width,r=this.state.height,o=t.length,a=this.props.spacing,i=Math.floor((n-5*a)/o-a),s=r-4*a,l=i+(n-i*t.length-2*a)/(t.length+1);e.clearRect(0,0,this.state.width,this.state.height),e.beginPath(),e.rect(a,a,n-2*a,r-2*a),e.stroke();for(var u=0;o>u;u++){var c=t[u]*s;e.fillStyle=this.props.colors[u%this.props.colors.length],e.fillRect(l*u+2*a,r-c-2*a,i,c),e.beginPath(),e.rect(l*u+2*a,r-c-2*a,i,c),e.stroke()}},clicked:function(e){var t=f["default"].findDOMNode(this.refs.canvas).getClientRects()[0],n=e.pointers[0].clientX-t.left-2*this.props.spacing,r=e.pointers[0].clientY-t.top-2*this.props.spacing,o=t.height-4*this.props.spacing,a=Math.min(this.state.layers.length-1,Math.floor(n/(t.width-4*this.props.spacing)*this.state.layers.length)),i=1-r/o,s=[].concat(this.state.layers);i=i>1?1:i,i=0>i?0:i,s[a]=i,this.setState({layers:s}),this.props.onChange&&this.props.onChange(s),this.draw()},render:function(){return u["default"].createElement("div",{className:h["default"].container},u["default"].createElement("canvas",{className:h["default"].canvas,ref:"canvas",width:this.state.width,height:this.state.height}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o);t["default"]=a["default"].createClass({displayName:"NumberInputWidget",propTypes:{className:a["default"].PropTypes.string,max:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),min:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,step:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),value:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string])},getDefaultProps:function(){return{className:"",step:1,value:0,classes:[]}},getInitialState:function(){return{editing:!1,valueRep:this.props.value}},valueChange:function(e){var t=e.target.value;this.setState({editing:!0,valueRep:t});var n=parseFloat(t);!isNaN(n)&&this.props.onChange&&(this.props.name?this.props.onChange(n,this.props.name):this.props.onChange(n))},endEditing:function(){this.setState({editing:!1})},render:function(){return a["default"].createElement("input",{className:this.props.className,type:"number",min:this.props.min,max:this.props.max,step:this.props.step,value:this.state.editing?this.state.valueRep:this.props.value,onChange:this.valueChange,onBlur:this.endEditing})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(397),a=r(o),i=n(396),s=r(i),l=n(85),u=r(l),c=n(86),f=r(c),p=n(3),d=r(p),h=n(160),g=r(h);t["default"]=d["default"].createClass({displayName:"QueryDataModelWidget",propTypes:{model:d["default"].PropTypes.object},mixins:[u["default"],f["default"]],render:function(){var e=this.props.model,t=e.originalData.arguments_order;return d["default"].createElement("div",{className:g["default"].container},t.map(function(t){return"list"===e.getUiType(t)?d["default"].createElement(a["default"],{key:t,model:e,arg:t,listener:!1}):"slider"===e.getUiType(t)?d["default"].createElement(s["default"],{key:t,model:e,arg:t,listener:!1}):void 0}))}})},function(e,t,n){var r=n(14)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(o){}}return!0}},function(e,t,n){var r=n(44);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(126),o=n(2),a=n(33),i=n(40),s=n(27),l=n(71),u=n(215),c=n(72),f=n(8).getProto,p=n(14)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",g="keys",m="values",v=function(){return this};e.exports=function(e,t,n,_,y,b,w){u(n,t,_);var x,C,E=function(e){if(!d&&e in M)return M[e];switch(e){case g:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",P=y==m,k=!1,M=e.prototype,S=M[p]||M[h]||y&&M[y],D=S||E(y);if(S){var R=f(D.call(new e));c(R,T,!0),!r&&s(M,h)&&i(R,p,v),P&&S.name!==m&&(k=!0,D=function(){return S.call(this)})}if(r&&!w||!d&&!k&&M[p]||i(M,p,D),l[t]=D,l[T]=v,y)if(x={values:P?D:E(m),keys:b?D:E(g),entries:P?E("entries"):D},w)for(C in x)C in M||a(M,C,x[C]);else o(o.P+o.F*(d||k),t,x);return x}},function(e,t,n){var r=n(14)("iterator"),o=!1;try{var a=[7][r]();a["return"]=function(){o=!0},Array.from(a,function(){throw 2})}catch(i){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){n=!0},a[r]=function(){return i},e(a)}catch(s){}return n}},function(e,t){e.exports=!1},function(e,t){e.exports=Math.expm1||function(e){return 0==(e=+e)?e:e>-1e-6&&1e-6>e?e+e*e/2:Math.exp(e)-1}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:0>e?-1:1}},function(e,t,n){var r=n(8).getDesc,o=n(12),a=n(13),i=function(e,t){if(a(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(38)(Function.call,r(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(a){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(74),o=n(39);e.exports=function(e){return function(t,n){var a,i,s=String(o(t)),l=r(n),u=s.length;return 0>l||l>=u?e?"":void 0:(a=s.charCodeAt(l),55296>a||a>56319||l+1===u||(i=s.charCodeAt(l+1))<56320||i>57343?e?s.charAt(l):a:e?s.slice(l,l+2):(a-55296<<10)+(i-56320)+65536)}}},function(e,t,n){var r=n(213),o=n(39);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){!function(){var t=e,n=t.lib,r=n.Base,o=t.enc,a=o.Utf8,i=t.algo;i.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),s=o.words,l=i.words,u=0;n>u;u++)s[u]^=1549556828,l[u]^=909522486;o.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})}()})},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,i=[],s=a.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=0;80>u;u++){if(16>u)i[u]=0|e[t+u];else{var c=i[u-3]^i[u-8]^i[u-14]^i[u-16];i[u]=c<<1|c>>>31}var f=(r<<5|r>>>27)+l+i[u];f+=20>u?(o&a|~o&s)+1518500249:40>u?(o^a^s)+1859775393:60>u?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,l=s,s=a,a=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".AbstractViewerMenu_container_UqWNj{overflow:hidden;width:100vw;height:100vh}.AbstractViewerMenu_hidden_tW5_E{display:none}.AbstractViewerMenu_button_2irlM{width:1.52em;height:1.25em;padding-top:.25em;text-align:center;margin-left:.5em;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.AbstractViewerMenu_leftButton_2MeNR{float:left}.AbstractViewerMenu_collapsedControl_20cvd .AbstractViewerMenu_leftButton_2MeNR{display:none}.AbstractViewerMenu_magicLensButtonIn_iixWh{border-radius:5px}.AbstractViewerMenu_magicLensButtonOut_1erzW{background:#000}.AbstractViewerMenu_recordButtonOff_2ai1M{color:#000}.AbstractViewerMenu_recordButtonOn_VYrxJ{color:red}.AbstractViewerMenu_animationSpeed_1W9cF{float:left}.AbstractViewerMenu_collapsedControl_20cvd .AbstractViewerMenu_animationSpeed_1W9cF{display:none}.AbstractViewerMenu_menuButton_1d4M0{float:right}.AbstractViewerMenu_collapsedMenuButton_2brM7{border:1px solid;border-radius:50%;border-color:#ccc;background-color:#eee}.AbstractViewerMenu_control_2Mn-b{position:absolute;top:10px;right:10px;width:20%;max-width:400px;min-width:300px;z-index:1;border-radius:5px;background-color:hsla(0,0%,100%,.3);color:rgba(0,0,0,.3)}.AbstractViewerMenu_control_2Mn-b:hover{background-color:#fff;color:#000}.AbstractViewerMenu_collapsedControl_20cvd{min-width:1.5em;width:1.5em;border-radius:50%}.AbstractViewerMenu_collapsedControl_20cvd:hover{background:none}.AbstractViewerMenu_control_2Mn-b input[type=number].AbstractViewerMenu_LookupTableWidget__input_rh3Xg{color:#000}.AbstractViewerMenu_control_2Mn-b input[type=number],.AbstractViewerMenu_control_2Mn-b input[type=text],.AbstractViewerMenu_control_2Mn-b select{background-color:transparent}.AbstractViewerMenu_control_2Mn-b select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1px 5px;background-image:url("+n(747)+");background-repeat:no-repeat;background-position:99%;background-size:13px 13px;border:1px solid #d3d3d3;border-radius:3px}.AbstractViewerMenu_controlContent_2eESa{border:1px solid;border-radius:0 0 5px 5px;border-color:#ccc;padding-left:5px;padding-bottom:.5em;max-height:calc(100vh - 55px);overflow-y:scroll}.AbstractViewerMenu_collapsedControl_20cvd>.AbstractViewerMenu_controlContent_2eESa{display:none}.AbstractViewerMenu_controlBar_2JSl5{height:25px;line-height:25px;border:1px solid;border-radius:5px 5px 0 0;border-color:#ccc}.AbstractViewerMenu_control_2Mn-b:hover .AbstractViewerMenu_controlBar_2JSl5{background-color:#eee}.AbstractViewerMenu_collapsedControl_20cvd>.AbstractViewerMenu_controlBar_2JSl5{background:none;border:none;display:inline}.AbstractViewerMenu_renderer_2FUfo{position:absolute;top:0;bottom:0;left:0;right:0}.AbstractViewerMenu_item_fNsoc{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;margin-left:3px;padding-left:10px;padding-right:10px}.AbstractViewerMenu_item_fNsoc,.AbstractViewerMenu_row_1qFcK{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1}.AbstractViewerMenu_row_1qFcK{position:relative;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.AbstractViewerMenu_label_13aO1{-webkit-flex:1;-ms-flex:1;flex:1;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.AbstractViewerMenu_label_13aO1:first-letter{text-transform:uppercase}.AbstractViewerMenu_row_1qFcK>select{width:100%;background-color:rbga(0,0,0,0)}@media screen and (max-width:400px),screen and (orientation:landscape) and (max-device-width:400px){.AbstractViewerMenu_controlBar_2JSl5{height:40px}.AbstractViewerMenu_controlBar_2JSl5>.AbstractViewerMenu_button_2irlM{font-size:1.45em}.AbstractViewerMenu_controlContent_2eESa{max-height:calc(100vh - 70px)}}.is-ios-device .AbstractViewerMenu_controlBar_2JSl5{height:40px}.is-ios-device .AbstractViewerMenu_controlBar_2JSl5 .AbstractViewerMenu_button_2irlM{font-size:1.45em}.is-ios-device .AbstractViewerMenu_controlContent_2eESa{max-height:calc(100vh - 70px)}",""]),t.locals={container:"AbstractViewerMenu_container_UqWNj",hidden:"AbstractViewerMenu_hidden_tW5_E",button:"AbstractViewerMenu_button_2irlM",leftButton:"AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",collapsedControl:"AbstractViewerMenu_collapsedControl_20cvd AbstractViewerMenu_control_2Mn-b",magicLensButtonIn:"AbstractViewerMenu_magicLensButtonIn_iixWh "+n(1).locals.fa+" "+n(1).locals["fa-search"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",magicLensButtonOut:"AbstractViewerMenu_magicLensButtonOut_1erzW AbstractViewerMenu_magicLensButtonIn_iixWh "+n(1).locals.fa+" "+n(1).locals["fa-search"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM "+n(1).locals["fa-inverse"],recordButtonOff:"AbstractViewerMenu_recordButtonOff_2ai1M "+n(1).locals.fa+" "+n(1).locals["fa-circle-thin"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",recordButtonOn:"AbstractViewerMenu_recordButtonOn_VYrxJ AbstractViewerMenu_recordButtonOff_2ai1M "+n(1).locals.fa+" "+n(1).locals["fa-circle-thin"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM "+n(1).locals["fa-circle"],resetCameraButton:"AbstractViewerMenu_resetCameraButton_2bsjg "+n(1).locals.fa+" "+n(1).locals["fa-arrows-alt"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",playButton:"AbstractViewerMenu_playButton_3QF6p "+n(1).locals.fa+" "+n(1).locals["fa-play"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",stopButton:"AbstractViewerMenu_stopButton_2Sl-k "+n(1).locals.fa+" "+n(1).locals["fa-stop"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",speedButton:"AbstractViewerMenu_speedButton_1beKS "+n(1).locals.fa+" "+n(1).locals["fa-clock-o"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",animationSpeed:"AbstractViewerMenu_animationSpeed_1W9cF",menuButton:"AbstractViewerMenu_menuButton_1d4M0 "+n(1).locals.fa+" "+n(1).locals["fa-bars"]+" AbstractViewerMenu_button_2irlM",collapsedMenuButton:"AbstractViewerMenu_collapsedMenuButton_2brM7 AbstractViewerMenu_menuButton_1d4M0 "+n(1).locals.fa+" "+n(1).locals["fa-bars"]+" AbstractViewerMenu_button_2irlM",control:"AbstractViewerMenu_control_2Mn-b",LookupTableWidget__input:"AbstractViewerMenu_LookupTableWidget__input_rh3Xg",controlContent:"AbstractViewerMenu_controlContent_2eESa",controlBar:"AbstractViewerMenu_controlBar_2JSl5",renderer:"AbstractViewerMenu_renderer_2FUfo",item:"AbstractViewerMenu_item_fNsoc",row:"AbstractViewerMenu_row_1qFcK",label:"AbstractViewerMenu_label_13aO1"}},function(e,t,n){function r(e,t,n){a(e,function(r,a){return o(e,a)?t.call(n,e[a],a,e):void 0})}var o=n(136),a=n(630);e.exports=r},function(e,t){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=n},function(e,t,n){var r,o;r=[n(242),n(243),n(634)],o=function(e,t,n){function r(r,a,i){return i=i||e,t(r)&&t(a)?r.length!==a.length?!1:n(r,o(i),a):i(r,a)}function o(e){return function(t,n){return n in this&&e(t,this[n])}}return r}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e){return null===e?"Null":e===t?"Undefined":n.exec(r.call(e))[1]}var t,n=/^\[object (.*)\]$/,r=Object.prototype.toString;return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=n(48),a=n(10),i=n(5);a(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?i(!1):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n<e.length;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e){return c.hasOwnProperty(e)?!0:u.hasOwnProperty(e)?!1:l.test(e)?(c[e]=!0,!0):(u[e]=!0,!1)}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&1>t||e.hasOverloadedBooleanValue&&t===!1}var a=n(63),i=n(29),s=n(696),l=(n(9),/^[a-zA-Z_][\w\.\-]*$/),u={},c={},f={ -createMarkupForID:function(e){return a.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(a.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=a.properties.hasOwnProperty(e)?a.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+s(t)}return a.isCustomAttribute(e)?null==t?"":e+"="+s(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,n){var r=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(r){var i=r.mutationMethod;if(i)i(e,n);else if(o(r,n))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute){var s=r.attributeName,l=r.attributeNamespace;l?e.setAttributeNS(l,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var u=r.propertyName;r.hasSideEffects&&""+e[u]==""+n||(e[u]=n)}}else a.isCustomAttribute(t)&&f.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var o=n.propertyName,i=a.getDefaultValueForProperty(e.nodeName,o);n.hasSideEffects&&""+e[o]===i||(e[o]=i)}}else a.isCustomAttribute(t)&&e.removeAttribute(t)}};i.measureMethods(f,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),e.exports=f},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?u(!1):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?u(!1):void 0}function a(e){r(e),null!=e.checked||null!=e.onChange?u(!1):void 0}function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(269),l=n(105),u=n(5),c=(n(9),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),f={value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},p={},d={checkPropTypes:function(e,t,n){for(var r in f){if(f.hasOwnProperty(r))var o=f[r](t,r,e,l.prop);if(o instanceof Error&&!(o.message in p)){p[o.message]=!0;i(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(a(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(a(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=d},function(e,t,n){"use strict";var r=n(144),o=n(23),a={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=a},function(e,t,n){"use strict";var r=n(5),o=!1,a={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r(!1):void 0,a.unmountIDFromEnvironment=e.unmountIDFromEnvironment,a.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,a.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=a},function(e,t,n){"use strict";var r=n(249),o=n(140),a=n(23),i=n(29),s=n(5),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},u={updatePropertyByID:function(e,t,n){var r=a.getNode(e);l.hasOwnProperty(t)?s(!1):void 0,null!=n?o.setValueForProperty(r,t,n):o.deleteValueForProperty(r,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=a.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=a.getNode(e[n].parentID);r.processUpdates(e,t)}};i.measureMethods(u,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=u},function(e,t,n){"use strict";function r(e){s.enqueueUpdate(e)}function o(e,t){var n=i.get(e);return n?n:null}var a=(n(42),n(24)),i=n(80),s=n(30),l=n(10),u=n(5),c=(n(9),{isMounted:function(e){var t=i.get(e);return t?!!t._renderedComponent:!1},enqueueCallback:function(e,t){"function"!=typeof t?u(!1):void 0;var n=o(e);return n?(n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],void r(n)):null},enqueueCallbackInternal:function(e,t){"function"!=typeof t?u(!1):void 0,e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var a=n._pendingStateQueue||(n._pendingStateQueue=[]);a.push(t),r(n)}},enqueueSetProps:function(e,t){var n=o(e,"setProps");n&&c.enqueueSetPropsInternal(n,t)},enqueueSetPropsInternal:function(e,t){var n=e._topLevelWrapper;n?void 0:u(!1);var o=n._pendingElement||n._currentElement,i=o.props,s=l({},i.props,t);n._pendingElement=a.cloneAndReplaceProps(o,a.cloneAndReplaceProps(i,s)),r(n)},enqueueReplaceProps:function(e,t){var n=o(e,"replaceProps");n&&c.enqueueReplacePropsInternal(n,t)},enqueueReplacePropsInternal:function(e,t){var n=e._topLevelWrapper;n?void 0:u(!1);var o=n._pendingElement||n._currentElement,i=o.props;n._pendingElement=a.cloneAndReplaceProps(o,a.cloneAndReplaceProps(i,t)),r(n)},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}});e.exports=c},function(e,t){"use strict";e.exports="0.14.7"},function(e,t,n){"use strict";function r(e){return null==e?null:1===e.nodeType?e:o.has(e)?a.getNodeFromInstance(e):(null!=e.render&&"function"==typeof e.render?i(!1):void 0,void i(!1))}var o=(n(42),n(80)),a=n(23),i=n(5);n(9);e.exports=r},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e){var t;if(null===e||e===!1)t=new i(o);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?u(!1):void 0,t="string"==typeof n.type?s.createInternalComponent(n):r(n.type)?new n.type(n):new c}else"string"==typeof e||"number"==typeof e?t=s.createInstanceForText(e):u(!1);return t.construct(e),t._mountIndex=0,t._mountImage=null,t}var a=n(657),i=n(261),s=n(267),l=n(10),u=n(5),c=(n(9),function(){});l(c.prototype,a.Mixin,{_instantiateReactComponent:o}),e.exports=o},function(e,t,n){"use strict";/** +"fa-hand-spock-o":"font-awesome_fa-hand-spock-o_22lUn","fa-hand-pointer-o":"font-awesome_fa-hand-pointer-o_3EDBr","fa-hand-peace-o":"font-awesome_fa-hand-peace-o_3KVDU","fa-trademark":"font-awesome_fa-trademark_1pZSQ","fa-registered":"font-awesome_fa-registered_2bkiQ","fa-creative-commons":"font-awesome_fa-creative-commons_19SOu","fa-gg":"font-awesome_fa-gg_8EwZk","fa-gg-circle":"font-awesome_fa-gg-circle_ixSHX","fa-tripadvisor":"font-awesome_fa-tripadvisor_3SR4I","fa-odnoklassniki":"font-awesome_fa-odnoklassniki_18Bc_","fa-odnoklassniki-square":"font-awesome_fa-odnoklassniki-square_2tvme","fa-get-pocket":"font-awesome_fa-get-pocket_1kDeB","fa-wikipedia-w":"font-awesome_fa-wikipedia-w_2bnVT","fa-safari":"font-awesome_fa-safari_1d_gp","fa-chrome":"font-awesome_fa-chrome_2lYJX","fa-firefox":"font-awesome_fa-firefox_3G1uV","fa-opera":"font-awesome_fa-opera_2EABz","fa-internet-explorer":"font-awesome_fa-internet-explorer_2e6T2","fa-tv":"font-awesome_fa-tv_pyAzy","fa-television":"font-awesome_fa-television_1MplB","fa-contao":"font-awesome_fa-contao_1BTJ5","fa-500px":"font-awesome_fa-500px_2dpFP","fa-amazon":"font-awesome_fa-amazon_1J6OF","fa-calendar-plus-o":"font-awesome_fa-calendar-plus-o_up6cZ","fa-calendar-minus-o":"font-awesome_fa-calendar-minus-o_2wY7J","fa-calendar-times-o":"font-awesome_fa-calendar-times-o_1jaLQ","fa-calendar-check-o":"font-awesome_fa-calendar-check-o_3xoZC","fa-industry":"font-awesome_fa-industry_3LSV8","fa-map-pin":"font-awesome_fa-map-pin_1mpnW","fa-map-signs":"font-awesome_fa-map-signs_21LXb","fa-map-o":"font-awesome_fa-map-o_1CDpd","fa-map":"font-awesome_fa-map_18QCe","fa-commenting":"font-awesome_fa-commenting_2oYYM","fa-commenting-o":"font-awesome_fa-commenting-o_2BRal","fa-houzz":"font-awesome_fa-houzz_13-hb","fa-vimeo":"font-awesome_fa-vimeo_3vcPv","fa-black-tie":"font-awesome_fa-black-tie_34h9B","fa-fonticons":"font-awesome_fa-fonticons_aNgtF","fa-reddit-alien":"font-awesome_fa-reddit-alien_3f_aH","fa-edge":"font-awesome_fa-edge_3UUWF","fa-credit-card-alt":"font-awesome_fa-credit-card-alt_oOWN1","fa-codiepie":"font-awesome_fa-codiepie_2amwQ","fa-modx":"font-awesome_fa-modx__HnMH","fa-fort-awesome":"font-awesome_fa-fort-awesome_1Pxvs","fa-usb":"font-awesome_fa-usb_2-FsD","fa-product-hunt":"font-awesome_fa-product-hunt_3WqRr","fa-mixcloud":"font-awesome_fa-mixcloud_2e01G","fa-scribd":"font-awesome_fa-scribd_1bAIo","fa-pause-circle":"font-awesome_fa-pause-circle_3wI6c","fa-pause-circle-o":"font-awesome_fa-pause-circle-o_2MdRS","fa-stop-circle":"font-awesome_fa-stop-circle_3aZ6V","fa-stop-circle-o":"font-awesome_fa-stop-circle-o_2oIr6","fa-shopping-bag":"font-awesome_fa-shopping-bag_2mD0w","fa-shopping-basket":"font-awesome_fa-shopping-basket_2ZYTJ","fa-hashtag":"font-awesome_fa-hashtag_1sHh4","fa-bluetooth":"font-awesome_fa-bluetooth_1tJ1-","fa-bluetooth-b":"font-awesome_fa-bluetooth-b_LmWTh","fa-percent":"font-awesome_fa-percent_3jbSX"}},function(e,t,n){var r=n(12),o=n(48),a=n(34),i=n(27),s=n(49),l="prototype",u=function(e,t,n){var c,f,p,d,h=e&u.F,g=e&u.G,m=e&u.S,v=e&u.P,_=e&u.B,y=g?r:m?r[t]||(r[t]={}):(r[t]||{})[l],b=g?o:o[t]||(o[t]={}),w=b[l]||(b[l]={});g&&(n=t);for(c in n)f=!h&&y&&void 0!==y[c],p=(f?y:n)[c],d=_&&f?s(p,r):v&&"function"==typeof p?s(Function.call,p):p,y&&i(y,c,p,e&u.U),b[c]!=p&&a(b,c,d),v&&w[c]!=p&&(w[c]=p)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";e.exports=n(749)},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}e.exports=r},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=d[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(u(r.parts[a],t))}else{for(var i=[],a=0;a<r.parts.length;a++)i.push(u(r.parts[a],t));d[r.id]={id:r.id,refs:1,parts:i}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],a=o[0],i=o[1],s=o[2],l=o[3],u={css:i,media:s,sourceMap:l};n[a]?n[a].parts.push(u):t.push(n[a]={id:a,parts:[u]})}return t}function a(e,t){var n=m(),r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",a(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",a(e,t),t}function u(e,t){var n,r,o;if(t.singleton){var a=_++;n=v||(v=s(t)),r=c.bind(null,n,a,!1),o=c.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=p.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),o=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function c(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function f(e,t){var n=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var d={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},g=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=h(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,_=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=g()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var a=[],i=0;i<n.length;i++){var s=n[i],l=d[s.id];l.refs--,a.push(l)}if(e){var u=o(e);r(u,t)}for(var i=0;i<a.length;i++){var l=a[i];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete d[l.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){!function(n,r){e.exports=t=r()}(this,function(){var e=e||function(e,t){var n={},r=n.lib={},o=r.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],n!=t?this.sigBytes=n:this.sigBytes=4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var a=0;o>a;a++){var i=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(var a=0;o>a;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){var t=t,n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,t=18e3*(65535&t)+(t>>16)&r;var o=(n<<16)+t&r;return o/=4294967296,o+=.5,o*(e.random()>.5?1:-1)}},i=0;t>i;i+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),i=n.enc={},s=i.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;n>o;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=i.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;n>o;o++){var a=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},u=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},c=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=4*i,l=o/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var u=l*i,c=e.min(4*u,o);if(u){for(var f=0;u>f;f+=i)this._doProcessBlock(r,f);var p=r.splice(0,u);n.sigBytes-=c}return new a.init(p,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(r.Hasher=c.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),n.algo={});return n}(Math);return e})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";var r=n(44),o=r;e.exports=o},function(e,t){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var a=arguments[o];if(null!=a){var i=Object(a);for(var s in i)r.call(i,s)&&(n[s]=i[s])}}return n}e.exports=n},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){var r=n(114)("wks"),o=n(68),a=n(12).Symbol,i="function"==typeof a;e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}},function(e,t,n){var r,o;!function(a,i){r=[n(713),n(793)],o=function(e,t){return i(e,t,a)}.apply(t,r),!(void 0!==o&&(e.exports=o))}(this,function(e,t,n,r){function o(e,t){return function(){if(console.warn||console.log){var n="Warning, the "+e+" method has been deprecated. Please use "+t+" instead.";console.warn?console.warn(n):console.log(n)}return c.prototype[t].apply(this,arguments)}}function a(e,t,n){return function(r){_.resolver.compare(r.topic,e)&&(t.push(r),r.cacheKeys.push(e),n&&n(r))}}function i(e,t,n){return function(r,o,a){r===e&&a.splice(o,1),0===a.length&&delete n[t]}}function s(t,n,r,o){if(t.inactive=!0,o.splice(r,1),t.cacheKeys&&t.cacheKeys.length)for(var a;a=t.cacheKeys.pop();)e.each(n._cache[a],i(t,a,n._cache))}var l="|",u={cache:{},regex:{},compare:function(t,n){var r,o,a,i=this.cache[n+l+t];return i===!0?i:-1===t.indexOf("#")&&-1===t.indexOf("*")?i=this.cache[n+l+t]=n===t:((o=this.regex[t])||(r="^"+e.map(t.split("."),function(e){var t="";return a&&(t="#"!==a?"\\.\\b":"\\b"),t+="#"===e?"[\\s\\S]*":"*"===e?"[^.]+":e,a=e,t}).join("")+"$",o=this.regex[t]=new RegExp(r)),i=this.cache[n+l+t]=o.test(n))},reset:function(){this.cache={},this.regex={}},purge:function(t){var n=this,r=function(e,r){var o=r.split(l),a=o[0],i=o[1];"undefined"!=typeof t.topic&&t.topic!==a||"undefined"!=typeof t.binding&&t.binding!==i||delete n.cache[r]};"undefined"==typeof t?this.reset():e.each(this.cache,r)}},c=function(e,t,n){this.topic=e,this.callback=t,this.pipeline=[],this.cacheKeys=[],this._context=r,this.emitter=n},f=function(){var t;return function(n){var r=!1;return e.isString(n)?(r=n===t,t=n):(r=e.isEqual(n,t),t=e.clone(n)),!r}},p=function(){var t=[];return function(n){var r=!e.any(t,function(t){return e.isObject(n)||e.isArray(n)?e.isEqual(n,t):n===t});return r&&t.push(n),r}};c.prototype={"catch":function(e){var t=this.callback,n=function(){try{t.apply(this,arguments)}catch(n){e(n,arguments[0])}};return this.callback=n,this},defer:function(){return this.delay(0)},disposeAfter:function(t){if(!e.isNumber(t)||0>=t)throw new Error("The value provided to disposeAfter (maxCalls) must be a number greater than zero.");var n=this,r=e.after(t,e.bind(function(){n.unsubscribe()}));return n.pipeline.push(function(e,t,n){n(e,t),r()}),n},distinct:function(){return this.constraint(new p)},distinctUntilChanged:function(){return this.constraint(new f)},invokeSubscriber:function(e,t){if(!this.inactive){var n=this,r=n.pipeline,o=r.length,a=n._context,i=-1;if(o){r=r.concat([n.callback]);var s=function l(e,t){i+=1,o>i?r[i].call(a,e,t,l):n.callback.call(a,e,t)};s(e,t,0)}else n.callback.call(a,e,t)}},logError:function(){if(console){var e;e=console.warn?console.warn:console.log,this["catch"](e)}return this},once:function(){return this.disposeAfter(1)},unsubscribe:function(){this.inactive||this.emitter.off(this)},constraint:function(t){if(!e.isFunction(t))throw new Error("Predicate constraint must be a function");return this.pipeline.push(function(e,n,r){t.call(this,e,n)&&r(e,n)}),this},constraints:function(t){var n=this;return e.isArray(t)&&e.each(t,function(e){n.constraint(e)}),n},context:function(e){return this._context=e,this},debounce:function(t,n){if(!e.isNumber(t))throw new Error("Milliseconds must be a number");return this.pipeline.push(e.debounce(function(e,t,n){n(e,t)},t,!!n)),this},delay:function(t){if(!e.isNumber(t))throw new Error("Milliseconds must be a number");var n=this;return n.pipeline.push(function(e,n,r){setTimeout(function(){r(e,n)},t)}),this},throttle:function(t){if(!e.isNumber(t))throw new Error("Milliseconds must be a number");var n=function(e,t,n){n(e,t)};return this.pipeline.push(e.throttle(n,t)),this}},c.prototype.off=c.prototype.unsubscribe;for(var d=["withConstraint","withConstraints","withContext","withDebounce","withDelay","withThrottle"],h=["constraint","constraints","context","debounce","delay","throttle"],g=0;6>g;g++){var m=d[g];c.prototype[m]=o(m,h[g])}var v=Array.prototype.slice,_=function(){};return _.prototype={on:function(t,n){var r=this;r._subscriptions=r._subscriptions||{},r._subscriptions[t]=r._subscriptions[t]||[];var o=new c(t,n,r);return r._subscriptions[t].push(o),e.each(r._cache,function(e,t){a(t,e)(o)}),r._subscriptions[t][r._subscriptions[t].length-1]},once:function(e,t){return this.on(e,t).once()},off:function(t,n){var r=this;switch(r._subscriptions=r._subscriptions||{},r._cache=r._cache||{},arguments.length){case 0:e.each(r._subscriptions,function(t){e.each(t,function(e,n){s(e,r,n,t)})}),r._subscriptions={};break;case 1:var o="[object String]"===Object.prototype.toString.call(t)?"topic":t instanceof c?"def":"context";switch(o){case"topic":r._subscriptions[t]&&e.each(r._subscriptions[t],function(e,n){s(e,r,n,r._subscriptions[t])});break;case"context":e.each(r._subscriptions,function(n){e.each(e.clone(n),function(e,o){e._context===t&&s(e,r,o,n)})});break;default:e.each(r._subscriptions[t.topic],function(e,n){e===t&&s(e,r,n,r._subscriptions[t.topic])})}break;default:e.each(e.clone(r._subscriptions[t]),function(e,o){e._context===n&&s(e,r,o,r._subscriptions[t])})}},emit:function(t,n){var r=this.getEnvelope(t,n);this._cache=this._cache||{};var o=this._cache[t],i=function(e){e.invokeSubscriber(r.data,r)};if(o)e.each(v.call(o,0),i);else{o=this._cache[t]=[];var s=a(t,o,i);e.each(this._subscriptions,function(t){e.each(v.call(t,0),s)})}},getEnvelope:function(e,t){return{topic:e,timeStamp:new Date,data:t}}},_.resolver=u,_.debug=!1,_.SubscriptionDefinition=c,t(_),_.mixInto=function(e){t.punch(e,_.prototype)},_})},function(e,t,n){var r=n(7),o=n(244),a=n(67),i=Object.defineProperty;t.f=n(18)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,a=r.WordArray,i=r.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),u=n.algo,c=u.EvpKDF,f=r.Cipher=i.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?C:b}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),p=(r.StreamCipher=f.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),d=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=p.CBC=function(){function e(e,n,r){var o=this._iv;if(o){var a=o;this._iv=t}else var a=this._prevBlock;for(var i=0;r>i;i++)e[n+i]^=a[i]}var n=d.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize;e.call(this,t,n,o),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize,a=t.slice(n,n+o);r.decryptBlock(t,n),e.call(this,t,n,o),this._prevBlock=a}}),n}(),g=n.pad={},m=g.Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,i=[],s=0;r>s;s+=4)i.push(o);var l=a.create(i,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:h,padding:m}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode=r.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),_=n.format={},y=_.OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=a.create([1398893684,1701076831]).concat(n).concat(t);else var r=t;return r.toString(l)},parse:function(e){var t=l.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=a.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:r})}},b=r.SerializableCipher=o.extend({cfg:o.extend({format:y}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),a=o.finalize(t),i=o.cfg;return v.create({ciphertext:a,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=e.createDecryptor(n,r).finalize(t.ciphertext);return o},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=n.kdf={},x=w.OpenSSL={execute:function(e,t,n,r){r||(r=a.random(8));var o=c.create({keySize:t+n}).compute(e,r),i=a.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:i,salt:r})}},C=r.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:x}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var a=b.encrypt.call(this,e,t,o.key,r);return a.mixIn(o),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);r.iv=o.iv;var a=b.decrypt.call(this,e,t,o.key,r);return a}})}()})},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=0,a=function(){function e(t,r){n(this,e),this.id="CanvasOffscreenBuffer_"+ ++o,this.el=document.createElement("canvas"),this.width=t,this.height=r,this.el.style.display="none",this.el.setAttribute("width",this.width),this.el.setAttribute("height",this.height),document.body.appendChild(this.el)}return r(e,[{key:"size",value:function(e,t){return e&&this.el.setAttribute("width",this.width=e),t&&this.el.setAttribute("height",this.height=t),[Number(this.width),Number(this.height)]}},{key:"get2DContext",value:function(){return this.el.getContext("2d")}},{key:"get3DContext",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{preserveDrawingBuffer:!0,premultipliedAlpha:!1}:arguments[0];return this.el.getContext("webgl",e)||this.el.getContext("experimental-webgl",e)}},{key:"destroy",value:function(){this.el.parentNode.removeChild(this.el),this.el=null,this.width=null,this.height=null}},{key:"toDataURL",value:function(e,t){return this.el.toDataURL(e,t)}}]),e}();t["default"]=a},function(e,t,n){var r=n(57),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t){e.exports="\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nvarying vec2 v_texCoord;\n\nvoid main() {\n gl_Position = vec4(a_position.xy, 0.0, 1.0);\n v_texCoord = a_texCoord;\n}\n"},function(e,t,n){"use strict";e.exports=n(290)},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===V?e.documentElement:e.firstChild:null}function a(e){var t=o(e);return t&&K.getID(t)}function i(e){var t=s(e);if(t)if(W.hasOwnProperty(t)){var n=W[t];n!==e&&(f(n,t)?N(!1):void 0,W[t]=e)}else W[t]=e;return t}function s(e){return e&&e.getAttribute&&e.getAttribute(j)||""}function l(e,t){var n=s(e);n!==t&&delete W[n],e.setAttribute(j,t),W[t]=e}function u(e){return W.hasOwnProperty(e)&&f(W[e],e)||(W[e]=K.findReactNodeByID(e)),W[e]}function c(e){var t=P.get(e)._rootNodeID;return E.isNullComponentID(t)?null:(W.hasOwnProperty(t)&&f(W[t],t)||(W[t]=K.findReactNodeByID(t)),W[t])}function f(e,t){if(e){s(e)!==t?N(!1):void 0;var n=K.findReactContainerForID(t);if(n&&O(n,e))return!0}return!1}function p(e){delete W[e]}function d(e){var t=W[e];return t&&f(t,e)?void(Y=t):!1}function h(e){Y=null,T.traverseAncestors(e,d);var t=Y;return Y=null,t}function g(e,t,n,r,o,a){x.useCreateElement&&(a=A({},a),n.nodeType===V?a[q]=n:a[q]=n.ownerDocument);var i=S.mountComponent(e,t,r,a);e._renderedComponent._topLevelWrapper=e,K._mountImageIntoNode(i,n,o,r)}function m(e,t,n,r,o){var a=D.ReactReconcileTransaction.getPooled(r);a.perform(g,null,e,t,n,a,r,o),D.ReactReconcileTransaction.release(a)}function v(e,t){for(S.unmountComponent(e),t.nodeType===V&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function _(e){var t=a(e);return t?t!==T.getReactRootIDFromNodeID(t):!1}function y(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=s(e);if(t){var n,r=T.getReactRootIDFromNodeID(t),o=e;do if(n=s(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===X[r])return e}}return null}var b=n(84),w=n(122),x=(n(53),n(291)),C=n(30),E=n(298),T=n(85),P=n(100),k=n(301),M=n(36),S=n(69),R=n(178),D=n(37),A=n(11),I=n(95),O=n(266),F=n(185),N=n(5),L=n(129),B=n(188),j=(n(190),n(10),b.ID_ATTRIBUTE_NAME),W={},U=1,V=9,z=11,q="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),H={},X={},G=[],Y=null,Q=function(){};Q.prototype.isReactComponent={},Q.prototype.render=function(){return this.props};var K={TopLevelWrapper:Q,_instancesByReactRootID:H,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return K.scrollMonitor(n,function(){R.enqueueElementInternal(e,t),r&&R.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){!t||t.nodeType!==U&&t.nodeType!==V&&t.nodeType!==z?N(!1):void 0,w.ensureScrollValueMonitoring();var n=K.registerContainer(t);return H[n]=e,n},_renderNewRootComponent:function(e,t,n,r){var o=F(e,null),a=K._registerComponent(o,t);return D.batchedUpdates(m,o,a,t,n,r),o},renderSubtreeIntoContainer:function(e,t,n,r){return null==e||null==e._reactInternalInstance?N(!1):void 0,K._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){C.isValidElement(t)?void 0:N(!1);var i=new C(Q,null,null,null,null,null,t),l=H[a(n)];if(l){var u=l._currentElement,c=u.props;if(B(c,t)){var f=l._renderedComponent.getPublicInstance(),p=r&&function(){r.call(f)};return K._updateRootComponent(l,i,n,p),f}K.unmountComponentAtNode(n)}var d=o(n),h=d&&!!s(d),g=_(n),m=h&&!l&&!g,v=K._renderNewRootComponent(i,n,m,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):I)._renderedComponent.getPublicInstance();return r&&r.call(v),v},render:function(e,t,n){return K._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=a(e);return t&&(t=T.getReactRootIDFromNodeID(t)),t||(t=T.createReactRootID()),X[t]=e,t},unmountComponentAtNode:function(e){!e||e.nodeType!==U&&e.nodeType!==V&&e.nodeType!==z?N(!1):void 0;var t=a(e),n=H[t];if(!n){var r=(_(e),s(e));r&&r===T.getReactRootIDFromNodeID(r);return!1}return D.batchedUpdates(v,n,e),delete H[t],delete X[t],!0},findReactContainerForID:function(e){var t=T.getReactRootIDFromNodeID(e),n=X[t];return n},findReactNodeByID:function(e){var t=K.findReactContainerForID(e);return K.findComponentRoot(t,e)},getFirstReactDOM:function(e){return y(e)},findComponentRoot:function(e,t){var n=G,r=0,o=h(t)||e;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var a,i=n[r++];i;){var s=K.getID(i);s?t===s?a=i:T.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(i.firstChild)):n.push(i.firstChild),i=i.nextSibling}if(a)return n.length=0,a}n.length=0,N(!1)},_mountImageIntoNode:function(e,t,n,a){if(!t||t.nodeType!==U&&t.nodeType!==V&&t.nodeType!==z?N(!1):void 0,n){var i=o(t);if(k.canReuseMarkup(e,i))return;var s=i.getAttribute(k.CHECKSUM_ATTR_NAME);i.removeAttribute(k.CHECKSUM_ATTR_NAME);var l=i.outerHTML;i.setAttribute(k.CHECKSUM_ATTR_NAME,s);var u=e,c=r(u,l);" (client) "+u.substring(c-20,c+20)+"\n (server) "+l.substring(c-20,c+20);t.nodeType===V?N(!1):void 0}if(t.nodeType===V?N(!1):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);t.appendChild(e)}else L(t,e)},ownerDocumentContextKey:q,getReactRootID:a,getID:i,setID:l,getNode:u,getNodeFromInstance:c,isValid:f,purgeID:p};M.measureMethods(K,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=K},function(e,t,n){var r=n(12),o=n(34),a=n(22),i=n(68)("src"),s="toString",l=Function[s],u=(""+l).split(s);n(48).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(a(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(a(n,i)||o(n,i,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[i]||l.call(this)})},function(e,t,n){var r=n(2),o=n(9),a=n(40),i=/"/g,s=function(e,t,n,r){var o=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,""")+'"'),s+">"+o+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){var r=n(92),o=n(40);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(53),o=n(11),a=(n(127),"function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103),i={key:!0,ref:!0,__self:!0,__source:!0},s=function(e,t,n,r,o,i,s){var l={$$typeof:a,type:e,key:t,ref:n,props:s,_owner:i};return l};s.createElement=function(e,t,n){var o,a={},l=null,u=null,c=null,f=null;if(null!=t){u=void 0===t.ref?null:t.ref,l=void 0===t.key?null:""+t.key,c=void 0===t.__self?null:t.__self,f=void 0===t.__source?null:t.__source;for(o in t)t.hasOwnProperty(o)&&!i.hasOwnProperty(o)&&(a[o]=t[o])}var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),h=0;p>h;h++)d[h]=arguments[h+2];a.children=d}if(e&&e.defaultProps){var g=e.defaultProps;for(o in g)"undefined"==typeof a[o]&&(a[o]=g[o])}return s(e,l,u,c,f,r.current,a)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceKey=function(e,t){var n=s(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},s.cloneAndReplaceProps=function(e,t){var n=s(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return n},s.cloneElement=function(e,t,n){var a,l=o({},e.props),u=e.key,c=e.ref,f=e._self,p=e._source,d=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,d=r.current),void 0!==t.key&&(u=""+t.key);for(a in t)t.hasOwnProperty(a)&&!i.hasOwnProperty(a)&&(l[a]=t[a])}var h=arguments.length-2;if(1===h)l.children=n;else if(h>1){for(var g=Array(h),m=0;h>m;m++)g[m]=arguments[m+2];l.children=g}return s(e.type,u,c,f,p,d,l)},s.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},e.exports=s},function(e,t,n){var r=n(40);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(813),s=r(i);t["default"]=a["default"].createClass({displayName:"CollapsibleWidget",propTypes:{ +children:a["default"].PropTypes.oneOfType([a["default"].PropTypes.object,a["default"].PropTypes.array]),onChange:a["default"].PropTypes.func,open:a["default"].PropTypes.bool,subtitle:a["default"].PropTypes.oneOfType([a["default"].PropTypes.object,a["default"].PropTypes.string,a["default"].PropTypes.array]),title:a["default"].PropTypes.string,visible:a["default"].PropTypes.bool},getDefaultProps:function(){return{title:"",subtitle:"",open:!0,visible:!0}},getInitialState:function(){return{open:this.props.open}},toggleOpen:function(){var e=!this.state.open;this.setState({open:e}),this.props.onChange&&this.props.onChange(e)},isCollapsed:function(){return this.state.open===!1},isExpanded:function(){return this.state.open===!0},render:function(){var e={};return this.props.visible||(e.display="none"),a["default"].createElement("section",{className:s["default"].container,style:e},a["default"].createElement("div",{className:s["default"].header},a["default"].createElement("div",{onClick:this.toggleOpen},a["default"].createElement("i",{className:s["default"][this.state.open?"caret":"caretClosed"]}),a["default"].createElement("strong",{className:s["default"].title},this.props.title)),a["default"].createElement("span",{className:s["default"].subtitle},this.props.subtitle)),a["default"].createElement("div",{className:s["default"][this.state.open?"visibleContent":"hiddenContent"]},this.props.children))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(16),s=r(i),l="image-ready",u=function(){function e(t){var n=t.queryDataModel,r=t.pipelineModel,a=t.lookupTableManager,i=t.handleRecord,s=void 0===i?!1:i,l=t.dimensions,u=void 0===l?[500,500]:l;o(this,e),this.queryDataModel=n,this.pipelineModel=r,this.lookupTableManager=a,this.handleRecord=s,this.subscriptions=[],this.objectsToFree=[],this.dimensions=u,this.controlWidgets=[],this.lookupTableManager&&this.controlWidgets.push({name:"LookupTableManagerWidget",lookupTableManager:a}),this.pipelineModel&&this.controlWidgets.push({name:"CompositeControl",pipelineModel:r}),this.queryDataModel&&this.controlWidgets.push({name:"QueryDataModelWidget",queryDataModel:n})}return a(e,[{key:"update",value:function(){this.queryDataModel&&this.queryDataModel.fetchData()}},{key:"onImageReady",value:function(e){return this.on(l,e)}},{key:"imageReady",value:function(e){this.emit(l,e)}},{key:"registerSubscription",value:function(e){this.subscriptions.push(e)}},{key:"registerObjectToFree",value:function(e){this.objectsToFree.push(e)}},{key:"getListeners",value:function(){return this.queryDataModel?this.queryDataModel.getMouseListener():{}}},{key:"getControlWidgets",value:function(){return this.controlWidgets}},{key:"getControlModels",value:function(){return{pipelineModel:this.pipelineModel,queryDataModel:this.queryDataModel,lookupTableManager:this.lookupTableManager,dimensions:this.dimensions}}},{key:"destroy",value:function(){for(this.off();this.subscriptions.length;)this.subscriptions.pop().unsubscribe();for(;this.objectsToFree.length;)this.objectsToFree.pop().destroy();this.queryDataModel=null,this.pipelineModel=null,this.lookupTableManager=null,this.dimensions=null,this.controlWidgets=null}}]),e}();t["default"]=u,s["default"].mixInto(u)},function(e,t,n){var r=n(17),o=n(56);e.exports=n(18)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(9);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";function r(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};e.exports=o},function(e,t,n){"use strict";function r(){P.ReactReconcileTransaction&&b?void 0:m(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=P.ReactReconcileTransaction.getPooled(!1)}function a(e,t,n,o,a,i){r(),b.batchedUpdates(e,t,n,o,a,i)}function i(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==v.length?m(!1):void 0,v.sort(i);for(var n=0;t>n;n++){var r=v[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,d.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var a=0;a<o.length;a++)e.callbackQueue.enqueue(o[a],r.getPublicInstance())}}function l(e){return r(),b.isBatchingUpdates?void v.push(e):void b.batchedUpdates(l,e)}function u(e,t){b.isBatchingUpdates?void 0:m(!1),_.enqueue(e,t),y=!0}var c=n(172),f=n(59),p=n(36),d=n(69),h=n(126),g=n(11),m=n(5),v=[],_=c.getPooled(),y=!1,b=null,w={initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),E()):v.length=0}},x={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[w,x];g(o.prototype,h.Mixin,{getTransactionWrappers:function(){return C},destructor:function(){this.dirtyComponentsLength=null,c.release(this.callbackQueue),this.callbackQueue=null,P.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return h.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),f.addPoolingTo(o);var E=function(){for(;v.length||y;){if(v.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(y){y=!1;var t=_;_=c.getPooled(),t.notifyAll(),c.release(t)}}};E=p.measure("ReactUpdates","flushBatchedUpdates",E);var T={injectReconcileTransaction:function(e){e?void 0:m(!1),P.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:m(!1),"function"!=typeof e.batchedUpdates?m(!1):void 0,"boolean"!=typeof e.isBatchingUpdates?m(!1):void 0,b=e}},P={ReactReconcileTransaction:null,batchedUpdates:a,enqueueUpdate:l,flushBatchedUpdates:E,injection:T,asap:u};e.exports=P},function(e,t,n){var r=n(49),o=n(92),a=n(31),i=n(21),s=n(465);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,h){for(var g,m,v=a(t),_=o(v),y=r(s,h,3),b=i(_.length),w=0,x=n?d(t,b):l?d(t,0):void 0;b>w;w++)if((p||w in _)&&(g=_[w],m=y(g,w,v),e))if(n)x[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:x.push(g)}else if(c)return!1;return f?-1:u||c?c:x}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(94),o=n(56),a=n(29),i=n(67),s=n(22),l=n(244),u=Object.getOwnPropertyDescriptor;t.f=n(18)?u:function(e,t){if(e=a(e),t=i(t,!0),l)try{return u(e,t)}catch(n){}return s(e,t)?o(!r.f.call(e,t),e[t]):void 0}},function(e,t,n){var r=n(22),o=n(31),a=n(155)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){var r=n(2),o=n(48),a=n(9);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],i={};i[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",i)}},function(e,t){"use strict";function n(e){return function(){return e}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t){"use strict";function n(e){return"[object Array]"===v.call(e)}function r(e){return"[object ArrayBuffer]"===v.call(e)}function o(e){return"[object FormData]"===v.call(e)}function a(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function i(e){return"string"==typeof e}function s(e){return"number"==typeof e}function l(e){return"undefined"==typeof e}function u(e){return null!==e&&"object"==typeof e}function c(e){return"[object Date]"===v.call(e)}function f(e){return"[object File]"===v.call(e)}function p(e){return"[object Blob]"===v.call(e)}function d(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function h(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(e,t){if(null!==e&&"undefined"!=typeof e)if("object"==typeof e||n(e)||(e=[e]),n(e))for(var r=0,o=e.length;o>r;r++)t.call(null,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(null,e[a],a,e)}function m(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=m(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;r>n;n++)g(arguments[n],e);return t}var v=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:r,isFormData:o,isArrayBufferView:a,isString:i,isNumber:s,isObject:u,isUndefined:l,isDate:c,isFile:f,isBlob:p,isStandardBrowserEnv:h,forEach:g,merge:m,trim:d}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){t.timestamp<b&&(_.forEach(function(n){t[n]=e[n]}),t.clientRect=e.getClientRects()[0])}function a(e){var t=v.get(e);return t||(t={timestamp:-1},v.set(e,t)),o(e,t),t}function i(e){return g.on(m,e)}function s(){g.emit(m)}function l(){return w}function u(){w||(window.addEventListener("resize",y),w=!0)}function c(){w&&(window.removeEventListener("resize",y),w=!1)}function f(){b++,s()}Object.defineProperty(t,"__esModule",{value:!0}),t.getSize=a,t.onSizeChange=i,t.triggerChange=s,t.isListening=l,t.startListening=u,t.stopListening=c;var p=n(203),d=r(p),h=n(201),g=new d["default"],m="window.size.change",v=new WeakMap,_=["scrollWidth","scrollHeight","clientWidth","clientHeight"],y=(0,h.debounce)(f,250),b=0,w=!1;t["default"]={getSize:a,isListening:l,onSizeChange:i,startListening:u,stopListening:c,triggerChange:s}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n=e.exports={version:"2.1.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(47);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(259),o=n(2),a=n(114)("metadata"),i=a.store||(a.store=new(n(262))),s=function(e,t,n){var o=i.get(e);if(!o){if(!n)return;i.set(e,o=new r)}var a=o.get(t);if(!a){if(!n)return;o.set(t,a=new r)}return a},l=function(e,t,n){var r=s(t,n,!1);return void 0===r?!1:r.has(e)},u=function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},c=function(e,t,n,r){s(n,r,!0).set(e,t)},f=function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},p=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},d=function(e){o(o.S,"Reflect",e)};e.exports={store:i,map:s,has:l,get:u,set:c,keys:f,key:p,exp:d}},function(e,t,n){"use strict";if(n(18)){var r=n(93),o=n(12),a=n(9),i=n(2),s=n(115),l=n(162),u=n(49),c=n(62),f=n(56),p=n(34),d=n(77),h=(n(150),n(57)),g=n(21),m=n(66),v=n(67),_=n(22),y=n(257),b=n(75),w=n(13),x=n(31),C=n(148),E=n(64),T=n(42),P=n(65).f,k=(n(472),n(163)),M=n(68),S=n(15),R=n(38),D=n(107),A=n(156),I=n(164),O=n(63),F=n(111),N=n(78),L=n(141),B=n(237),j=n(17),W=n(41),U=j.f,V=W.f,z=o.RangeError,q=o.TypeError,H=o.Uint8Array,X="ArrayBuffer",G="Shared"+X,Y="BYTES_PER_ELEMENT",Q="prototype",K=Array[Q],Z=l.ArrayBuffer,J=l.DataView,$=R(0),ee=R(2),te=R(3),ne=R(4),re=R(5),oe=R(6),ae=D(!0),ie=D(!1),se=I.values,le=I.keys,ue=I.entries,ce=K.lastIndexOf,fe=K.reduce,pe=K.reduceRight,de=K.join,he=K.sort,ge=K.slice,me=K.toString,ve=K.toLocaleString,_e=S("iterator"),ye=S("toStringTag"),be=M("typed_constructor"),we=M("def_constructor"),xe=s.CONSTR,Ce=s.TYPED,Ee=s.VIEW,Te="Wrong length!",Pe=R(1,function(e,t){return Ae(A(e,e[we]),t)}),ke=a(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),Me=!!H&&!!H[Q].set&&a(function(){new H(1).set({})}),Se=function(e,t){if(void 0===e)throw q(Te);var n=+e,r=g(e);if(t&&!y(n,r))throw z(Te);return r},Re=function(e,t){var n=h(e);if(0>n||n%t)throw z("Wrong offset!");return n},De=function(e){if(w(e)&&Ce in e)return e;throw q(e+" is not a typed array!")},Ae=function(e,t){if(!(w(e)&&be in e))throw q("It is not a typed array constructor!");return new e(t)},Ie=function(e,t){return Oe(A(e,e[we]),t)},Oe=function(e,t){for(var n=0,r=t.length,o=Ae(e,r);r>n;)o[n]=t[n++];return o},Fe=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Ne=function(e){var t,n,r,o,a,i,s=x(e),l=arguments.length,c=l>1?arguments[1]:void 0,f=void 0!==c,p=k(s);if(void 0!=p&&!C(p)){for(i=p.call(s),r=[],t=0;!(a=i.next()).done;t++)r.push(a.value);s=r}for(f&&l>2&&(c=u(c,arguments[2],2)),t=0,n=g(s.length),o=Ae(this,n);n>t;t++)o[t]=f?c(s[t],t):s[t];return o},Le=function(){for(var e=0,t=arguments.length,n=Ae(this,t);t>e;)n[e]=arguments[e++];return n},Be=!!H&&a(function(){ve.call(new H(1))}),je=function(){return ve.apply(Be?ge.call(De(this)):De(this),arguments)},We={copyWithin:function(e,t){return B.call(De(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(De(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return L.apply(De(this),arguments)},filter:function(e){return Ie(this,ee(De(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(De(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return oe(De(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){$(De(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ie(De(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ae(De(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(De(this),arguments)},lastIndexOf:function(e){return ce.apply(De(this),arguments)},map:function(e){return Pe(De(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return fe.apply(De(this),arguments)},reduceRight:function(e){return pe.apply(De(this),arguments)},reverse:function(){for(var e,t=this,n=De(t).length,r=Math.floor(n/2),o=0;r>o;)e=t[o],t[o++]=t[--n],t[n]=e;return t},slice:function(e,t){return Ie(this,ge.call(De(this),e,t))},some:function(e){return te(De(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return he.call(De(this),e)},subarray:function(e,t){var n=De(this),r=n.length,o=m(e,r);return new(A(n,n[we]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,g((void 0===t?r:m(t,r))-o))}},Ue=function(e){De(this);var t=Re(arguments[1],1),n=this.length,r=x(e),o=g(r.length),a=0;if(o+t>n)throw z(Te);for(;o>a;)this[t+a]=r[a++]},Ve={entries:function(){return ue.call(De(this))},keys:function(){return le.call(De(this))},values:function(){return se.call(De(this))}},ze=function(e,t){return w(e)&&e[Ce]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},qe=function(e,t){return ze(e,t=v(t,!0))?f(2,e[t]):V(e,t)},He=function(e,t,n){return!(ze(e,t=v(t,!0))&&w(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};xe||(W.f=qe,j.f=He),i(i.S+i.F*!xe,"Object",{getOwnPropertyDescriptor:qe,defineProperty:He}),a(function(){me.call({})})&&(me=ve=function(){return de.call(this)});var Xe=d({},We);d(Xe,Ve),p(Xe,_e,Ve.values),d(Xe,{set:Ue,constructor:function(){},toString:me,toLocaleString:je}),Fe(Xe,"buffer","b"),Fe(Xe,"byteOffset","o"),Fe(Xe,"byteLength","l"),Fe(Xe,"length","e"),U(Xe,ye,{get:function(){return this[Ce]}}),e.exports=function(e,t,n,l){l=!!l;var u=e+(l?"Clamped":"")+"Array",f="Uint8Array"!=u,d="get"+e,h="set"+e,m=o[u],v=m||{},_=m&&T(m),y=!m||!s.ABV,x={},C=m&&m[Q],k=function(e,n){var r=e._d;return r.v[d](n*t+r.o,ke)},M=function(e,n,r){var o=e._d;l&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[h](n*t+o.o,r,ke)},S=function(e,t){U(e,t,{get:function(){return k(this,t)},set:function(e){return M(this,t,e)},enumerable:!0})};y?(m=n(function(e,n,r,o){c(e,m,u,"_d");var a,i,s,l,f=0,d=0;if(w(n)){if(!(n instanceof Z||(l=b(n))==X||l==G))return Ce in n?Oe(m,n):Ne.call(m,n);a=n,d=Re(r,t);var h=n.byteLength;if(void 0===o){if(h%t)throw z(Te);if(i=h-d,0>i)throw z(Te)}else if(i=g(o)*t,i+d>h)throw z(Te);s=i/t}else s=Se(n,!0),i=s*t,a=new Z(i);for(p(e,"_d",{b:a,o:d,l:i,e:s,v:new J(a)});s>f;)S(e,f++)}),C=m[Q]=E(Xe),p(C,"constructor",m)):F(function(e){new m(null),new m(e)},!0)||(m=n(function(e,n,r,o){c(e,m,u);var a;return w(n)?n instanceof Z||(a=b(n))==X||a==G?void 0!==o?new v(n,Re(r,t),o):void 0!==r?new v(n,Re(r,t)):new v(n):Ce in n?Oe(m,n):Ne.call(m,n):new v(Se(n,f))}),$(_!==Function.prototype?P(v).concat(P(_)):P(v),function(e){e in m||p(m,e,v[e])}),m[Q]=C,r||(C.constructor=m));var R=C[_e],D=!!R&&("values"==R.name||void 0==R.name),A=Ve.values;p(m,be,!0),p(C,Ce,u),p(C,Ee,!0),p(C,we,m),(l?new m(1)[ye]==u:ye in C)||U(C,ye,{get:function(){return u}}),x[u]=m,i(i.G+i.W+i.F*(m!=v),x),i(i.S,u,{BYTES_PER_ELEMENT:t,from:Ne,of:Le}),Y in C||p(C,Y,t),i(i.P,u,We),i(i.P+i.F*Me,u,{set:Ue}),i(i.P+i.F*!D,u,Ve),i(i.P+i.F*(C.toString!=me),u,{toString:me}),i(i.P+i.F*(a(function(){return[1,2].toLocaleString()!=new m([1,2]).toLocaleString()})||!a(function(){C.toLocaleString.call([1,2])})),u,{toLocaleString:je}),O[u]=D?R:A,r||D||p(C,_e,A),N(u)}}else e.exports=function(){}},function(e,t,n){"use strict";var r=n(117),o=r({bubbled:null,captured:null}),a=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),i={topLevelTypes:a,PropagationPhases:o};e.exports=i},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(830),s=r(i);t["default"]=a["default"].createClass({displayName:"ToggleIconButtonWidget",propTypes:{alwaysOn:a["default"].PropTypes.bool,className:a["default"].PropTypes.string,icon:a["default"].PropTypes.string,name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,toggle:a["default"].PropTypes.bool,value:a["default"].PropTypes.bool},getDefaultProps:function(){return{className:"",value:!0,icon:"fa-sun-o",toggle:!0,name:"toggle-button"}},getInitialState:function(){return{enabled:this.props.value}},componentWillReceiveProps:function(e){e.value!==this.state.enabled&&this.setState({enabled:e.value})},buttonClicked:function(){var e=this.props.toggle?!this.state.enabled:this.state.enabled;this.props.onChange&&this.props.onChange(e,this.props.name),this.props.toggle&&this.setState({enabled:e})},render:function(){var e=[this.props.icon,this.props.className];return e.push(this.state.enabled||this.props.alwaysOn?s["default"].enabledButton:s["default"].disabledButton),a["default"].createElement("i",{className:e.join(" "),onClick:this.buttonClicked})}})},function(e,t,n){var r=n(68)("meta"),o=n(13),a=n(22),i=n(17).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(9)(function(){return l(Object.preventExtensions({}))}),c=function(e){i(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},p=function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return u&&h.NEED&&l(e)&&!a(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){"use strict";var r=n(5),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},a=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},i=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,r),a}return new o(e,t,n,r)},l=function(e,t,n,r,o){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r,o),i}return new a(e,t,n,r,o)},u=function(e){var t=this;e instanceof t?void 0:r(!1),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,f=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||f,n.poolSize||(n.poolSize=c),n.release=u,n},d={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:a,threeArgumentPooler:i,fourArgumentPooler:s,fiveArgumentPooler:l};e.exports=d},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){function t(e,t,n,r){var o=E.resolve(e);return arguments.length<2?o:o.then(t,n,r)}function r(e){return new E(e)}function o(e){return function(){for(var t=0,n=arguments.length,r=new Array(n);n>t;++t)r[t]=arguments[t];return T(e,this,r)}}function a(e){for(var t=0,n=arguments.length-1,r=new Array(n);n>t;++t)r[t]=arguments[t+1];return T(e,this,r)}function i(){return new s}function s(){function e(e){r._handler.resolve(e)}function t(e){r._handler.reject(e)}function n(e){r._handler.notify(e)}var r=E._defer();this.promise=r,this.resolve=e,this.reject=t,this.notify=n,this.resolver={resolve:e,reject:t,notify:n}}function l(e){return e&&"function"==typeof e.then}function u(){return E.all(arguments)}function c(e){return t(e,E.all)}function f(e){return t(e,E.settle)}function p(e,n){return t(e,function(e){return E.map(e,n)})}function d(e,n){return t(e,function(e){return E.filter(e,n)})}var h=n(851),g=n(845),m=n(846),v=n(847),_=n(848),y=n(849),b=n(850),w=n(853),x=n(852),C=n(319),E=[g,m,v,y,b,_,w,h,x].reduce(function(e,t){return t(e)},n(843)),T=n(194)(E);return t.promise=r,t.resolve=E.resolve,t.reject=E.reject,t.lift=o,t["try"]=a,t.attempt=a,t.iterate=E.iterate,t.unfold=E.unfold,t.join=u,t.all=c,t.settle=f,t.any=o(E.any),t.some=o(E.some),t.race=o(E.race),t.map=p,t.filter=d,t.reduce=o(E.reduce),t.reduceRight=o(E.reduceRight),t.isPromiseLike=l,t.Promise=E,t.defer=i,t.TimeoutError=C,t}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t){"use strict";function n(e){var t=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),n=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),r=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);console.log("vertex texture image units: "+t),console.log("fragment texture image units: "+n),console.log("combined texture image units: "+r)}function r(e,t,n){var r=e.createShader(n);if(e.shaderSource(r,t),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var o=e.getShaderInfoLog(r);return console.error("Error compiling shader '"+r+"':"+o),e.deleteShader(r),null}return r}function o(e,t){for(var n=e.createProgram(),r=0;r<t.length;r+=1)e.attachShader(n,t[r]);e.linkProgram(n);var o=e.getProgramParameter(n,e.LINK_STATUS);if(!o){var a=e.getProgramInfoLog(n);return console.error("Error in program linking:"+a),e.deleteProgram(n),null}return n.shaders=t,e.useProgram(n),n}function a(e,t,n,r,o){var a=o.programs[t],i=r.mappings[n];i.forEach(function(t){var n=o.buffers[t.id];e.bindBuffer(e.ARRAY_BUFFER,n),a[t.name]=e.getAttribLocation(a,t.attribute),e.enableVertexAttribArray(a[t.name]),e.vertexAttribPointer.apply(e,[a[t.name]].concat(t.format)),e.bindBuffer(e.ARRAY_BUFFER,null)})}function i(e,t,n,i){var s=n.programs[t],l=r(e,s.vertexShader,e.VERTEX_SHADER),u=r(e,s.fragmentShader,e.FRAGMENT_SHADER),c=o(e,[l,u]);return i.programs[t]=c,s.mapping&&a(e,t,s.mapping,n,i),c}function s(e,t,n){e.bindFramebuffer(e.FRAMEBUFFER,t),e.bindTexture(e.TEXTURE_2D,n),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t.width,t.height,0,e.RGBA,e.UNSIGNED_BYTE,null),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0);var r=e.checkFramebufferStatus(e.FRAMEBUFFER);r!==e.FRAMEBUFFER_COMPLETE&&console.log("ERROR: There is a problem with the framebuffer: "+r),e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null)}function l(e){var t=e.gl;for(var n in e.programs){for(var r=e.programs[n],o=r.shaders,a=o.length;a--;)t.deleteShader(o[a]);t.deleteProgram(r)}for(var i in e.framebuffers)t.deleteFramebuffer(e.framebuffers[i]);for(var s in e.textures)t.deleteTexture(e.textures[s]);for(var l in e.buffers)t.deleteBuffer(e.buffers[l])}function u(e,t){var n={gl:e,buffers:{},textures:{},framebuffers:{},programs:{}},r=t.resources.buffers||[],o=t.resources.textures||[],a=t.resources.framebuffers||[];r.forEach(function(t){var r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r),e.bufferData(e.ARRAY_BUFFER,t.data,e.STATIC_DRAW),n.buffers[t.id]=r}),o.forEach(function(t){var r=e.createTexture(),o=t.pixelStore||[],a=t.texParameter||[];e.bindTexture(e.TEXTURE_2D,r),o.forEach(function(t){e.pixelStorei(e[t[0]],t[1])}),a.forEach(function(t){e.texParameteri(e.TEXTURE_2D,e[t[0]],e[t[1]])}),n.textures[t.id]=r}),a.forEach(function(t){var r=e.createFramebuffer();r.width=t.width,r.height=t.height,n.framebuffers[t.id]=r});for(var s in t.programs)i(e,s,t,n);return n.destroy=function(){l(n)},n}function c(e,t,n){var r=null,o=null;for(var a in t){var i=t[a],s=new RegExp("\\$\\{"+a+"\\}","g");e=e.replace(s,i)}if(n.inlineLoops){var l=/\/\/@INLINE_LOOP([\s\S]+?)(?=\/\/@INLINE_LOOP)\/\/@INLINE_LOOP/;for(r=e.match(l);r;){var u=r[1],c=/^\s*\(([^\),]+)\s*,\s*([^\),]+)\s*,\s*([^\)]+)\)/,f=u.match(c),p=f[1],d=f[2],h=f[3],g=u.replace(c,""),m=/^\s*[^\{]+\{([\s\S]+?)\s*\}\s*$/,v=g.match(m),_=v[1],y=new RegExp(p,"g");o="";for(var b=d;h>b;++b)o+=_.replace(y,b),o+="\n";e=e.replace(l,o),r=e.match(l)}}return n.debug&&(console.log("Transformed shader string:"),console.log(e)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.showGlInfo=n,t.applyProgramDataMapping=a,t.bindTextureToFramebuffer=s,t.createGLResources=u,t.transformShader=c,t["default"]={applyProgramDataMapping:a,bindTextureToFramebuffer:s,createGLResources:u,showGlInfo:n,transformShader:c}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t){e.exports={}},function(e,t,n){var r=n(7),o=n(250),a=n(143),i=n(155)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(142)("iframe"),r=a.length,o=">";for(t.style.display="none",n(146).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object</script"+o),e.close(),u=e.F;r--;)delete u[l][a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[i]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(252),o=n(143).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(57),o=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),0>e?o(e+t,0):a(e,t)}},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(768),a={mountComponent:function(e,t,n,o){var a=e.mountComponent(t,n,o);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),a},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,a){var i=e._currentElement;if(t!==i||a!==e._context){var s=o.shouldUpdateRefs(i,t);s&&o.detachRefs(e,i),e.receiveComponent(t,n,a),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];s?this[a]=s(n):"target"===a?this.target=r:this[a]=n[a]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;l?this.isDefaultPrevented=i.thatReturnsTrue:this.isDefaultPrevented=i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse}var o=n(59),a=n(11),i=n(44),s=(n(10),{type:null,target:null,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue)},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);a(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),e.exports=r},function(e,t){(function(e){var n=function(){};"AUTOBAHN_DEBUG"in e&&AUTOBAHN_DEBUG&&"console"in e&&(n=function(){console.log.apply(console,arguments)}),t.debug=n}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.PingPong=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(61);t.PingPong=function(){function e(t,n,o){r(this,e),this.gl=t,this.idx=0,this.fbos=n,this.textures=o,(0,a.bindTextureToFramebuffer)(this.gl,this.fbos[0],this.textures[1]),(0,a.bindTextureToFramebuffer)(this.gl,this.fbos[1],this.textures[0])}return o(e,[{key:"swap",value:function(){this.idx++,this.idx%=2}},{key:"clearFbo",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.fbos[0]),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.fbos[1]),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.idx=0}},{key:"getFramebuffer",value:function(){return this.fbos[this.idx]}},{key:"getRenderingTexture",value:function(){return this.textures[this.idx]}}]),e}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){var t=0;return e.srcEvent&&(t+=e.srcEvent.altKey?g.ALT:0,t+=e.srcEvent.ctrlKey?g.CTRL:0,t+=e.srcEvent.metaKey?g.META:0,t+=e.srcEvent.shiftKey?g.SHIFT:0),t}function i(e,t){return{x:t.center.x-(e.getClientRects()[0].x||e.getClientRects()[0].left),y:t.center.y-(e.getClientRects()[0].y||e.getClientRects()[0].top)}}function s(e,t,n){n.preventDefault(),n.button=0,n.topic=t,n.modifier=e.modifier?e.modifier:a(n),n.relative=i(e.el,n),e.emit(t,n)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(711),c=r(u),f=n(121),p=r(f),d=n(16),h=r(d),g={NONE:0,ALT:1,META:2,SHIFT:4,CTRL:8},m={contextmenu:"contextmenu",mousewheel:"zoom",DOMMouseScroll:"zoom"},v=300,_=0,y=function(){function e(t,n){var r=this;o(this,e);var l={pan:{threshold:0},pinch:{threshold:0}};n=(0,p["default"])(l,n),this.Modifier=g,_++,this.id="mouse_handler_"+_,this.el=t,this.modifier=0,this.toggleModifiers=[0],this.toggleModifierIdx=0,this.toggleModifierEnable=!1,this.hammer=new c["default"](t),this.scrollInternal={ts:+new Date,deltaX:0,deltaY:0},this.finalZoomEvent=null,this.finalZoomTimerId=0,this.triggerFinalZoomEvent=function(){r.finalZoomEvent&&(r.finalZoomEvent.isFirst=!1,r.finalZoomEvent.isFinal=!0),r.emit(r.finalZoomEvent.topic,r.finalZoomEvent)},this.domEventHandler=function(e){e.preventDefault();var t={srcEvent:e,button:"contextmenu"===e.type?2:0,topic:m[e.type],center:{x:e.clientX,y:e.clientY},relative:{x:e.clientX-(r.el.getClientRects()[0].x||r.el.getClientRects()[0].left),y:e.clientY-(r.el.getClientRects()[0].y||r.el.getClientRects()[0].top)},scale:1,deltaX:0,deltaY:0,delta:0,deltaTime:0,velocityX:0,velocityY:0,velocity:0,isFirst:!1,isFinal:!1};if(t.modifier=r.modifier?r.modifier:a(t),"zoom"===t.topic){clearTimeout(r.finalZoomTimerId),r.finalZoomTimerId=setTimeout(r.triggerFinalZoomEvent,v);var n=+new Date;n-r.scrollInternal.ts>v?(r.scrollInternal.deltaX=0,r.scrollInternal.deltaY=0,t.isFirst=!0,t.isFinal=!1):t.isFinal=!1,void 0===e.wheelDeltaX?(t.zoom=r.lastScrollZoomFactor,r.scrollInternal.deltaY-=2*e.detail):(t.zoom=r.lastScrollZoomFactor,r.scrollInternal.deltaX+=e.wheelDeltaX,r.scrollInternal.deltaY+=e.wheelDeltaY),t.deltaX=r.scrollInternal.deltaX,t.deltaY=r.scrollInternal.deltaY,t.scale=1+t.deltaY/r.el.getClientRects()[0].height,t.scale=t.scale<.1?.1:t.scale,r.scrollInternal.ts=n,r.finalZoomEvent=t}return r.emit(t.topic,t),!1},this.hammer.get("pan").set(n.pan),this.hammer.get("pinch").set(n.pinch),this.hammer.on("tap",function(e){s(r,"click",e)}),this.hammer.on("doubletap",function(e){s(r,"dblclick",e)}),this.hammer.on("pan",function(e){s(r,"drag",e)}),this.hammer.on("panstart",function(e){e.isFirst=!0,s(r,"drag",e)}),this.hammer.on("panend",function(e){e.isFinal=!0,s(r,"drag",e)}),this.hammer.on("pinch",function(e){s(r,"zoom",e)}),this.hammer.on("pinchstart",function(e){console.log("zoom start"),e.isFirst=!0,s(r,"zoom",e)}),this.hammer.on("pinchend",function(e){e.isFinal=!0,console.log("zoom end"),s(r,"zoom",e)}),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("press",function(e){r.toggleModifierEnable&&(r.toggleModifierIdx=(r.toggleModifierIdx+1)%r.toggleModifiers.length,r.modifier=r.toggleModifiers[r.toggleModifierIdx],e.relative=i(r.el,e),r.emit("modifier.change",{value:r.modifier,list:g,event:e}))}),this.el.addEventListener("contextmenu",this.domEventHandler),this.el.addEventListener("mousewheel",this.domEventHandler),this.el.addEventListener("DOMMouseScroll",this.domEventHandler)}return l(e,[{key:"enablePinch",value:function(e){this.hammer.get("pinch").set({enable:e})}},{key:"setModifier",value:function(e){this.modifier=e}},{key:"toggleModifierOnPress",value:function(e,t){this.toggleModifiers=t,this.toggleModifierEnable=e}},{key:"attach",value:function(e){var t={};for(var n in e)t[n]=this.on(n,e[n]);return t}},{key:"destroy",value:function(){this.off(),this.hammer.destroy(),this.el.removeEventListener("contextmenu",this.domEventHandler),this.el.removeEventListener("mousewheel",this.domEventHandler),this.el.removeEventListener("DOMMouseScroll",this.domEventHandler)}}]),e}();t["default"]=y,h["default"].mixInto(y)},function(e,t,n){var r=n(15)("unscopables"),o=Array.prototype;void 0==o[r]&&n(34)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){var r=n(39),o=n(15)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=(t=Object(e))[o])?n:a?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,n){var r=n(252),o=n(143);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(27);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";var r=n(12),o=n(17),a=n(18),i=n(15)("species");e.exports=function(e){var t=r[e];a&&t&&!t[i]&&o.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(17).f,o=n(22),a=n(15)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(2),o=n(40),a=n(9),i=n(160),s="["+i+"]",l=" ",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var o={},s=a(function(){return!!i[e]()||l[e]()!=l}),u=o[e]=s?t(p):i[e];n&&(o[n]=u),r(r.P+r.F*s,"String",o)},p=f.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=t.enc;o.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],a=0;n>a;a+=3)for(var i=t[a>>>2]>>>24-a%4*8&255,s=t[a+1>>>2]>>>24-(a+1)%4*8&255,l=t[a+2>>>2]>>>24-(a+2)%4*8&255,u=i<<16|s<<8|l,c=0;4>c&&n>a+.75*c;c++)o.push(r.charAt(u>>>6*(3-c)&63));var f=r.charAt(64);if(f)for(;o.length%4;)o.push(f);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=n.charAt(64);if(o){var a=e.indexOf(o);-1!=a&&(t=a)}for(var i=[],s=0,l=0;t>l;l++)if(l%4){var u=n.indexOf(e.charAt(l-1))<<l%4*2,c=n.indexOf(e.charAt(l))>>>6-l%4*2,f=u|c;i[s>>>2]|=f<<24-s%4*8,s++}return r.create(i,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(166),n(165))}(this,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,a=t.algo,i=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),a=o.create(),i=a.words,s=n.keySize,l=n.iterations;i.length<s;){u&&r.update(u);var u=r.update(e).finalize(t);r.reset();for(var c=1;l>c;c++)u=r.finalize(u),r.reset();a.concat(u)}return a.sigBytes=4*s,a}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF})},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){return function(t){function n(e,t,n,r,o,a,i){var s=e+(t&n|~t&r)+o+i;return(s<<a|s>>>32-a)+t}function r(e,t,n,r,o,a,i){var s=e+(t&r|n&~r)+o+i;return(s<<a|s>>>32-a)+t}function o(e,t,n,r,o,a,i){var s=e+(t^n^r)+o+i;return(s<<a|s>>>32-a)+t}function a(e,t,n,r,o,a,i){var s=e+(n^(t|~r))+o+i;return(s<<a|s>>>32-a)+t}var i=e,s=i.lib,l=s.WordArray,u=s.Hasher,c=i.algo,f=[];!function(){for(var e=0;64>e;e++)f[e]=4294967296*t.abs(t.sin(e+1))|0}();var p=c.MD5=u.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var i=0;16>i;i++){var s=t+i,l=e[s];e[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}var u=this._hash.words,c=e[t+0],p=e[t+1],d=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],_=e[t+7],y=e[t+8],b=e[t+9],w=e[t+10],x=e[t+11],C=e[t+12],E=e[t+13],T=e[t+14],P=e[t+15],k=u[0],M=u[1],S=u[2],R=u[3];k=n(k,M,S,R,c,7,f[0]),R=n(R,k,M,S,p,12,f[1]),S=n(S,R,k,M,d,17,f[2]),M=n(M,S,R,k,h,22,f[3]),k=n(k,M,S,R,g,7,f[4]),R=n(R,k,M,S,m,12,f[5]),S=n(S,R,k,M,v,17,f[6]),M=n(M,S,R,k,_,22,f[7]),k=n(k,M,S,R,y,7,f[8]),R=n(R,k,M,S,b,12,f[9]),S=n(S,R,k,M,w,17,f[10]),M=n(M,S,R,k,x,22,f[11]),k=n(k,M,S,R,C,7,f[12]),R=n(R,k,M,S,E,12,f[13]),S=n(S,R,k,M,T,17,f[14]),M=n(M,S,R,k,P,22,f[15]),k=r(k,M,S,R,p,5,f[16]),R=r(R,k,M,S,v,9,f[17]),S=r(S,R,k,M,x,14,f[18]),M=r(M,S,R,k,c,20,f[19]),k=r(k,M,S,R,m,5,f[20]),R=r(R,k,M,S,w,9,f[21]),S=r(S,R,k,M,P,14,f[22]),M=r(M,S,R,k,g,20,f[23]),k=r(k,M,S,R,b,5,f[24]),R=r(R,k,M,S,T,9,f[25]),S=r(S,R,k,M,h,14,f[26]),M=r(M,S,R,k,y,20,f[27]),k=r(k,M,S,R,E,5,f[28]),R=r(R,k,M,S,d,9,f[29]),S=r(S,R,k,M,_,14,f[30]),M=r(M,S,R,k,C,20,f[31]),k=o(k,M,S,R,m,4,f[32]),R=o(R,k,M,S,y,11,f[33]),S=o(S,R,k,M,x,16,f[34]),M=o(M,S,R,k,T,23,f[35]),k=o(k,M,S,R,p,4,f[36]),R=o(R,k,M,S,g,11,f[37]),S=o(S,R,k,M,_,16,f[38]),M=o(M,S,R,k,w,23,f[39]),k=o(k,M,S,R,E,4,f[40]),R=o(R,k,M,S,c,11,f[41]),S=o(S,R,k,M,h,16,f[42]),M=o(M,S,R,k,v,23,f[43]),k=o(k,M,S,R,b,4,f[44]),R=o(R,k,M,S,C,11,f[45]),S=o(S,R,k,M,P,16,f[46]),M=o(M,S,R,k,d,23,f[47]),k=a(k,M,S,R,c,6,f[48]),R=a(R,k,M,S,_,10,f[49]),S=a(S,R,k,M,T,15,f[50]),M=a(M,S,R,k,m,21,f[51]),k=a(k,M,S,R,C,6,f[52]),R=a(R,k,M,S,h,10,f[53]),S=a(S,R,k,M,w,15,f[54]),M=a(M,S,R,k,p,21,f[55]),k=a(k,M,S,R,y,6,f[56]),R=a(R,k,M,S,P,10,f[57]),S=a(S,R,k,M,v,15,f[58]),M=a(M,S,R,k,E,21,f[59]),k=a(k,M,S,R,g,6,f[60]),R=a(R,k,M,S,x,10,f[61]),S=a(S,R,k,M,d,15,f[62]),M=a(M,S,R,k,b,21,f[63]),u[0]=u[0]+k|0,u[1]=u[1]+M|0,u[2]=u[2]+S|0,u[3]=u[3]+R|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var a=t.floor(r/4294967296),i=r;n[(o+64>>>9<<4)+15]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[(o+64>>>9<<4)+14]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;4>u;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=u.clone.call(this);return e._hash=this._hash.clone(),e}});i.MD5=u._createHelper(p),i.HmacMD5=u._createHmacHelper(p)}(Math),e.MD5})},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=n(5),a={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=a,n=e.Properties||{},i=e.DOMAttributeNamespaces||{},l=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in n){s.properties.hasOwnProperty(f)?o(!1):void 0;var p=f.toLowerCase(),d=n[f],h={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(d,t.MUST_USE_ATTRIBUTE),mustUseProperty:r(d,t.MUST_USE_PROPERTY),hasSideEffects:r(d,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(d,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(d,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(d,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(d,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.mustUseAttribute&&h.mustUseProperty?o(!1):void 0,!h.mustUseProperty&&h.hasSideEffects?o(!1):void 0,h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:o(!1),l.hasOwnProperty(f)){var g=l[f];h.attributeName=g}i.hasOwnProperty(f)&&(h.attributeNamespace=i[f]),u.hasOwnProperty(f)&&(h.propertyName=u[f]),c.hasOwnProperty(f)&&(h.mutationMethod=c[f]),s.properties[f]=h}}},i={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=i[e];return r||(i[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:a};e.exports=s},function(e,t,n){"use strict";function r(e){return d+e.toString(36)}function o(e,t){return e.charAt(t)===d||t===e.length}function a(e){return""===e||e.charAt(0)===d&&e.charAt(e.length-1)!==d}function i(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(d)):""}function l(e,t){if(a(e)&&a(t)?void 0:p(!1),i(e,t)?void 0:p(!1),e===t)return e;var n,r=e.length+h;for(n=r;n<t.length&&!o(t,n);n++);return t.substr(0,n)}function u(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var r=0,i=0;n>=i;i++)if(o(e,i)&&o(t,i))r=i;else if(e.charAt(i)!==t.charAt(i))break;var s=e.substr(0,r);return a(s)?void 0:p(!1),s}function c(e,t,n,r,o,a){e=e||"",t=t||"",e===t?p(!1):void 0;var u=i(t,e);u||i(e,t)?void 0:p(!1);for(var c=0,f=u?s:l,d=e;;d=f(d,t)){var h;if(o&&d===e||a&&d===t||(h=n(d,u,r)),h===!1||d===t)break;c++<g?void 0:p(!1)}}var f=n(306),p=n(5),d=".",h=d.length,g=1e4,m={createReactRootID:function(){return r(f.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===d&&e.length>1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var a=u(e,t);a!==e&&c(e,a,n,r,!1,!0),a!==t&&c(a,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(c("",e,t,n,!0,!0),c(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},getFirstCommonAncestorID:u,_getNextDescendantID:l,isAncestorIDOf:i,SEPARATOR:d};e.exports=m},function(e,t,n){var r=n(667);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){(function(e,r){function o(e,t){this._id=e,this._clearFn=t}var a=n(97).nextTick,i=Function.prototype.apply,s=Array.prototype.slice,l={},u=0;t.setTimeout=function(){return new o(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},o.prototype.unref=o.prototype.ref=function(){},o.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))},t.setImmediate="function"==typeof e?e:function(e){var n=u++,r=arguments.length<2?!1:s.call(arguments,1);return l[n]=!0,a(function(){l[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof r?r:function(e){delete l[e]}}).call(t,n(87).setImmediate,n(87).clearImmediate)},function(e,t,n){(function(e){var r=n(71),o=n(60),a=function(e,t){var n,r,o;do n=2*Math.random()-1,r=2*Math.random()-1,o=n*n+r*r;while(o>=1||0==o);var a=Math.sqrt(-2*Math.log(o)/o);return(e||0)+n*a*(t||1)},i=function(t,n){if(!t)throw i.useDebugger||"AUTOBAHN_DEBUG"in e&&AUTOBAHN_DEBUG,new Error(n||"Assertion failed!")},s=function(e,t,n){r.debug("new http_post request",e,t,n);var a=o.defer(),i=new XMLHttpRequest;return i.onreadystatechange=function(){if(4===i.readyState){var e=1223===i.status?204:i.status;if(200===e&&a.resolve(i.responseText),204===e)a.resolve();else{var t=null;try{t=i.statusText}catch(n){}a.reject({code:e,text:t})}}},i.open("POST",e,!0),i.setRequestHeader("Content-type","application/json; charset=utf-8"),n>0&&(i.timeout=n,i.ontimeout=function(){a.reject({code:501,text:"request timeout"})}),t?i.send(t):i.send(),a.promise.then?a.promise:a};t.rand_normal=a,t.assert=i,t.http_post=s}).call(t,function(){return this}())},function(e,t){"use strict";function n(e,t,n){if(e)for(;t--;)n(t);else for(var r=0;t>r;r++)n(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.loop=n,t["default"]={loop:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(221),s=r(i),l=n(222),u=r(l),c=n(223),f=r(c),p=n(808),d=r(p);t["default"]=a["default"].createClass({displayName:"AbstractViewerMenu",propTypes:{children:a["default"].PropTypes.array,config:a["default"].PropTypes.object,geometryBuilder:a["default"].PropTypes.object,imageBuilder:a["default"].PropTypes.object,layout:a["default"].PropTypes.string,magicLensController:a["default"].PropTypes.object,mouseListener:a["default"].PropTypes.object,queryDataModel:a["default"].PropTypes.object,renderer:a["default"].PropTypes.string,renderers:a["default"].PropTypes.object},getDefaultProps:function(){return{config:{},renderer:"ImageRenderer"}},getInitialState:function(){return{collapsed:!0,speedIdx:0,speeds:[20,50,100,200,500],record:!1}},componentWillMount:function(){this.attachListener(this.props.queryDataModel)},componentWillReceiveProps:function(e){var t=this.props.queryDataModel,n=e.queryDataModel;t!==n&&(this.detachListener(),this.attachListener(n))},componentWillUnmount:function(){this.detachListener()},attachListener:function(e){var t=this;this.detachListener(),this.queryDataModelChangeSubscription=e.onStateChange(function(e,n){t.forceUpdate()})},detachListener:function(){this.queryDataModelChangeSubscription&&(this.queryDataModelChangeSubscription.unsubscribe(),this.queryDataModelChangeSubscription=null)},toggleRecord:function(){var e=!this.state.record;this.setState({record:e}),this.getRenderer().recordImages(e)},togglePanel:function(){this.setState({collapsed:!this.state.collapsed}),this.props.queryDataModel.fetchData()},toggleLens:function(){var e=this.props.magicLensController;e&&(e.toggleLens(),this.forceUpdate())},resetCamera:function(){!this.isMounted()||"ImageRenderer"!==this.props.renderer&&"GeometryRenderer"!==this.props.renderer||this.refs.imageRenderer.resetCamera()},play:function(){this.props.queryDataModel.animate(!0,this.state.speeds[this.state.speedIdx])},stop:function(){this.props.queryDataModel.animate(!1)},updateSpeed:function(){var e=(this.state.speedIdx+1)%this.state.speeds.length,t=this.props.queryDataModel;this.setState({speedIdx:e}),t.isAnimating()&&t.animate(!0,this.state.speeds[e])},getRenderer:function(){return this.refs.imageRenderer},render:function(){var e=this.props.queryDataModel,t=this.props.magicLensController,n=t||this.props.imageBuilder,r=null,o=!!this.props.config.Recording,i="ImageRenderer"===this.props.renderer,l="MultiViewRenderer"===this.props.renderer,c="GeometryRenderer"===this.props.renderer;return i&&(r=a["default"].createElement(u["default"],{ref:"imageRenderer",className:d["default"].renderer,imageBuilder:n,listener:this.props.mouseListener||n.getListeners()})),l&&(r=a["default"].createElement(f["default"],{ref:"imageRenderer",className:d["default"].renderer,renderers:this.props.renderers,layout:this.props.layout})),c&&(r=a["default"].createElement(s["default"],{ref:"imageRenderer",className:d["default"].renderer,geometryBuilder:this.props.geometryBuilder})),a["default"].createElement("div",{className:d["default"].container},a["default"].createElement("div",{className:this.state.collapsed?d["default"].collapsedControl:d["default"].control},a["default"].createElement("div",{className:d["default"].controlBar},a["default"].createElement("i",{className:t?t.isFront()?d["default"].magicLensButtonIn:d["default"].magicLensButtonOut:d["default"].hidden,onClick:this.toggleLens}),a["default"].createElement("i",{className:o&&i&&this.props.imageBuilder.handleRecord?this.state.record?d["default"].recordButtonOn:d["default"].recordButtonOff:d["default"].hidden,onClick:this.toggleRecord}),a["default"].createElement("i",{className:i||c?d["default"].resetCameraButton:d["default"].hidden,onClick:this.resetCamera}),a["default"].createElement("i",{className:e.hasAnimationFlag()&&!e.isAnimating()?d["default"].playButton:d["default"].hidden,onClick:this.play}),a["default"].createElement("i",{className:e.isAnimating()?d["default"].stopButton:d["default"].hidden,onClick:this.stop}),a["default"].createElement("i",{className:e.hasAnimationFlag()?d["default"].speedButton:d["default"].hidden,onClick:this.updateSpeed}),a["default"].createElement("i",{className:e.hasAnimationFlag()?d["default"].animationSpeed:d["default"].hidden,onClick:this.updateSpeed},this.state.speeds[this.state.speedIdx]+"ms"),a["default"].createElement("i",{className:this.state.collapsed?d["default"].collapsedMenuButton:d["default"].menuButton,onClick:this.togglePanel})),a["default"].createElement("div",{className:d["default"].controlContent},this.props.children)),r)}})},function(e,t,n){var r=n(49),o=n(245),a=n(148),i=n(7),s=n(21),l=n(163);e.exports=function(e,t,n,u,c){var f,p,d,h=c?function(){return e}:l(e),g=r(n,u,t?2:1),m=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(a(h))for(f=s(e.length);f>m;m++)t?g(i(p=e[m])[0],p[1]):g(e[m]);else for(d=h.call(e);!(p=d.next()).done;)o(d,g,p.value,t)}},function(e,t,n){var r=n(39);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=!1},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){function r(e,t){return o(a(e),t)}var o=n(716),a=n(274);e.exports=r},function(e,t){function n(){u=!1,i.length?l=i.concat(l):c=-1,l.length&&r()}function r(){if(!u){var e=setTimeout(n);u=!0;for(var t=l.length;t;){for(i=l,l=[];++c<t;)i&&i[c].run();c=-1,t=l.length}i=null,u=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function a(){}var i,s=e.exports={},l=[],u=!1,c=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n]; +l.push(new o(e,t)),1!==l.length||u||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=a,s.addListener=a,s.once=a,s.off=a,s.removeListener=a,s.removeAllListeners=a,s.emit=a,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(286),o=n(746),a=n(299),i=n(308),s=n(309),l=n(5),u=(n(10),{}),c=null,f=function(e,t){e&&(o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},p=function(e){return f(e,!0)},d=function(e){return f(e,!1)},h=null,g={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(e){h=e},getInstanceHandle:function(){return h},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){"function"!=typeof n?l(!1):void 0;var o=u[t]||(u[t]={});o[e]=n;var a=r.registrationNameModules[t];a&&a.didPutListener&&a.didPutListener(e,t,n)},getListener:function(e,t){var n=u[t];return n&&n[e]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=u[t];o&&delete o[e]},deleteAllListeners:function(e){for(var t in u)if(u[t][e]){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete u[t][e]}},extractEvents:function(e,t,n,o,a){for(var s,l=r.plugins,u=0;u<l.length;u++){var c=l[u];if(c){var f=c.extractEvents(e,t,n,o,a);f&&(s=i(s,f))}}return s},enqueueEvents:function(e){e&&(c=i(c,e))},processEventQueue:function(e){var t=c;c=null,e?s(t,p):s(t,d),c?l(!1):void 0,a.rethrowCaughtError()},__purge:function(){u={}},__getListenerBank:function(){return u}};e.exports=g},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return _(e,r)}function o(e,t,n){var o=t?v.bubbled:v.captured,a=r(e,n,o);a&&(n._dispatchListeners=g(n._dispatchListeners,a),n._dispatchIDs=g(n._dispatchIDs,e))}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(e.dispatchMarker,o,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=_(e,r);o&&(n._dispatchListeners=g(n._dispatchListeners,o),n._dispatchIDs=g(n._dispatchIDs,e))}}function l(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function u(e){m(e,a)}function c(e){m(e,i)}function f(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function p(e){m(e,l)}var d=n(52),h=n(98),g=(n(10),n(308)),m=n(309),v=d.PropagationPhases,_=h.getListener,y={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};e.exports=y},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(70),a=n(183),i={view:function(e){if(e.view)return e.view;var t=a(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,i),e.exports=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={getDefaultProps:function(){return{name:"",help:""}},getInitialState:function(){return{data:this.props.data,helpOpen:!1,ui:this.props.ui}},componentWillMount:function(){var e={};this.props.ui["default"]&&!this.props.data.value&&(e.data=this.state.data,e.data.value=this.props.ui["default"]),Object.keys(e).length>0&&this.setState(e)},componentWillReceiveProps:function(e){var t=e.data;this.state.data!==t&&this.setState({data:t})},helpToggled:function(e){this.setState({helpOpen:e})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(226),a=r(o),i=n(139),s=r(i),l=n(3),u=r(l),c=n(25),f=r(c),p=n(823),d=r(p),h={range:{none:{display:"flex"},edit:{display:"flex"},preset:{display:"none"}},editContent:{none:{display:"none"},edit:{display:"flex"},preset:{display:"none"}},presets:{none:{display:"none"},edit:{display:"none"},preset:{display:"flex"}}};t["default"]=u["default"].createClass({displayName:"LookupTableWidget",propTypes:{inverse:u["default"].PropTypes.bool,lookupTable:u["default"].PropTypes.object.isRequired,lookupTableManager:u["default"].PropTypes.object,originalRange:u["default"].PropTypes.array},getInitialState:function(){return{mode:"none",activePreset:this.props.lookupTable.getPresets()[0],currentControlPointIndex:0,internal_lut:!1}},componentDidMount:function(){var e=f["default"].findDOMNode(this.refs.canvas);this.props.lookupTable.drawToCanvas(e)},componentDidUpdate:function(e,t){if(!this.state.internal_lut){var n=f["default"].findDOMNode(this.refs.canvas);if(this.props.lookupTable.drawToCanvas(n),"edit"===this.state.mode){var r=n.getContext("2d"),o=Math.floor(this.props.lookupTable.getControlPoint(this.state.currentControlPointIndex).x*this.props.lookupTable.colorTableSize),a=r.getImageData(0,0,this.props.lookupTable.colorTableSize,1),i=a.data[4*o]+a.data[4*o+1]+a.data[4*o+2]>382.5?0:255;a.data[4*o+0]=this.props.inverse?(a.data[4*o+0]+128)%256:i,a.data[4*o+1]=this.props.inverse?(a.data[4*o+1]+128)%256:i,a.data[4*o+2]=this.props.inverse?(a.data[4*o+2]+128)%256:i,r.putImageData(a,0,0)}}},toggleEditMode:function(){"none"===this.state.mode||"edit"!==this.state.mode?this.setState({mode:"edit",internal_lut:!1}):this.setState({mode:"none",internal_lut:!1})},togglePresetMode:function(){"none"===this.state.mode||"preset"!==this.state.mode?(this.deltaPreset(0),this.setState({mode:"preset",internal_lut:!0})):this.setState({mode:"none",internal_lut:!1})},updateScalarRange:function(){var e=f["default"].findDOMNode(this.refs.min).value,t=f["default"].findDOMNode(this.refs.max).value;this.props.lookupTable.setScalarRange(e,e===t?t+1:t),this.forceUpdate()},addControlPoint:function(){var e=this.props.lookupTable.addControlPoint({x:.5,r:0,g:0,b:0});this.setState({currentControlPointIndex:e})},deleteControlPoint:function(){this.props.lookupTable.removeControlPoint(this.state.currentControlPointIndex)&&this.forceUpdate()},nextControlPoint:function(){var e=this.state.currentControlPointIndex+1;e<this.props.lookupTable.getNumberOfControlPoints()&&this.setState({currentControlPointIndex:e})},previousControlPoint:function(){var e=this.state.currentControlPointIndex-1;e>-1&&this.setState({currentControlPointIndex:e})},updateScalar:function(e){var t=this.props.lookupTable.getScalarRange(),n=(e-t[0])/(t[1]-t[0]),r=this.props.lookupTable.getControlPoint(this.state.currentControlPointIndex),o=this.props.lookupTable.updateControlPoint(this.state.currentControlPointIndex,{x:n,r:r.r,g:r.g,b:r.b});this.setState({currentControlPointIndex:o}),this.forceUpdate()},updateRGB:function(e){var t=this.props.lookupTable.getControlPoint(this.state.currentControlPointIndex),n=this.props.lookupTable.updateControlPoint(this.state.currentControlPointIndex,{x:t.x,r:e[0]/255,g:e[1]/255,b:e[2]/255});this.setState({currentControlPointIndex:n})},setPreset:function(e){this.props.lookupTable.setPreset(e.target.dataset.name),this.togglePresetMode()},resetRange:function(){var e=this.props.originalRange;this.props.lookupTable.setScalarRange(e[0],e[1])},changePreset:function(e){var t=e.detail||e.deltaY||e.deltaX;e.preventDefault(),this.deltaPreset(t)},nextPreset:function(){this.deltaPreset(1)},previousPreset:function(){this.deltaPreset(-1)},deltaPreset:function(e){var t=this.props.lookupTable.getPresets(),n=t.indexOf(this.state.activePreset),r=null;if(n+=0===e?0:0>e?-1:1,!(0>n||n===t.length)){if(r=t[n],this.props.lookupTableManager){var o=this.props.lookupTableManager.getLookupTable("__internal");o?o.setPreset(r):o=this.props.lookupTableManager.addLookupTable("__internal",[0,1],r),o.drawToCanvas(f["default"].findDOMNode(this.refs.canvas))}this.setState({activePreset:r})}},render:function(){var e=this,t=this.props.lookupTable.getScalarRange(),n=this.props.lookupTable.getControlPoint(this.state.currentControlPointIndex),r=n.x*(t[1]-t[0])+t[0],o=[Math.floor(255*n.r),Math.floor(255*n.g),Math.floor(255*n.b)];return u["default"].createElement("div",{className:d["default"].container},u["default"].createElement("div",{className:d["default"].line},u["default"].createElement("i",{className:d["default"].editButton,onClick:this.toggleEditMode}),u["default"].createElement("canvas",{ref:"canvas",className:d["default"].canvas,width:this.props.lookupTable.colorTableSize*this.props.lookupTable.scale,height:"1"}),u["default"].createElement("i",{className:d["default"].presetButton,onClick:this.togglePresetMode})),u["default"].createElement("div",{className:d["default"].range,style:h.range[this.state.mode]},u["default"].createElement(s["default"],{ref:"min",className:d["default"].input,value:this.props.lookupTable.getScalarRange()[0],onChange:this.updateScalarRange}),u["default"].createElement("i",{onClick:this.resetRange,className:d["default"].resetRangeButton}),u["default"].createElement(s["default"],{ref:"max",className:d["default"].inputRight,value:this.props.lookupTable.getScalarRange()[1],onChange:this.updateScalarRange})),u["default"].createElement("div",{className:d["default"].editContent,style:h.editContent[this.state.mode]},u["default"].createElement("div",{className:d["default"].line},u["default"].createElement("i",{onClick:this.previousControlPoint,className:d["default"].previousButton}),u["default"].createElement("div",{className:d["default"].label},this.state.currentControlPointIndex+1," / ",this.props.lookupTable.getNumberOfControlPoints()),u["default"].createElement("i",{onClick:this.nextControlPoint,className:d["default"].nextButton}),u["default"].createElement("i",{onClick:this.addControlPoint,className:d["default"].addButton}),u["default"].createElement(s["default"],{ref:"x",className:d["default"].inputRight,value:r,onChange:this.updateScalar}),u["default"].createElement("i",{onClick:this.deleteControlPoint,className:d["default"].deleteButton})),u["default"].createElement(a["default"],{color:o,onChange:this.updateRGB})),u["default"].createElement("div",{className:d["default"].presets,style:h.presets[this.state.mode]},u["default"].createElement("i",{onClick:this.previousPreset,className:this.state.activePreset===this.props.lookupTable.getPresets()[0]?d["default"].disablePreviousButton:d["default"].previousButton}),this.props.lookupTable.getPresets().map(function(t){return u["default"].createElement("div",{onClick:e.setPreset,onScroll:e.changePreset,onWheel:e.changePreset,className:e.state.activePreset===t?d["default"].preset:d["default"].hiddenPreset,"data-name":t,key:t},t)}),u["default"].createElement("i",{onClick:this.nextPreset,className:this.state.activePreset===this.props.lookupTable.getPresets()[this.props.lookupTable.getPresets().length-1]?d["default"].disableNextButton:d["default"].nextButton})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(824),s=r(i);t["default"]=a["default"].createClass({displayName:"NumberSliderWidget",propTypes:{max:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),min:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,step:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),value:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string])},getDefaultProps:function(){return{max:100,min:0,step:1,value:50}},getInitialState:function(){return{max:this.props.max,min:this.props.min,step:this.props.step,value:this.props.value}},valInput:function(e){this.setState({value:e.target.value}),this.props.onChange&&(this.props.name&&(e.target.name=this.props.name),this.props.onChange(e))},value:function(e){return 0===arguments.length?this.state.value:(e=Math.max(this.state.min,Math.min(e,this.state.max)),void this.setState({value:e}))},render:function(){var e=this.props.min,t=this.props.max;return a["default"].createElement("div",{className:s["default"].container},a["default"].createElement("input",{type:"range",className:s["default"].range,value:this.props.value,onChange:this.valInput,max:t,min:e}),a["default"].createElement("input",{type:"number",className:s["default"].text,value:this.props.value,onChange:this.valInput,max:t,min:e}))}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={getDefaultProps:function(){return{listener:!0}},attachListener:function(e){this.dataSubscription=e.onStateChange(this.dataListenerCallback)},detachListener:function(){this.dataSubscription&&(this.dataSubscription.unsubscribe(),this.dataSubscription=null)},componentWillMount:function(){this.detachListener(),this.props.listener&&this.attachListener(this.props.model)},componentWillUnmount:function(){this.detachListener()},componentWillReceiveProps:function(e){var t=this.props.model,n=e.model;t!==n&&(this.detachListener(),this.attachListener(n))}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={dataListenerCallback:function(e,t){this.forceUpdate()}}},function(e,t,n){var r=n(29),o=n(21),a=n(66);e.exports=function(e){return function(t,n,i){var s,l=r(t),u=o(l.length),c=a(i,u);if(e&&n!=n){for(;u>c;)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c;return!e&&-1}}},function(e,t,n){"use strict";var r=n(12),o=n(2),a=n(27),i=n(77),s=n(55),l=n(91),u=n(62),c=n(13),f=n(9),p=n(111),d=n(79),h=n(147);e.exports=function(e,t,n,g,m,v){var _=r[e],y=_,b=m?"set":"add",w=y&&y.prototype,x={},C=function(e){var t=w[e];a(w,e,"delete"==e?function(e){return v&&!c(e)?!1:t.call(this,0===e?0:e)}:"has"==e?function(e){return v&&!c(e)?!1:t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(v||w.forEach&&!f(function(){(new y).entries().next()}))){var E=new y,T=E[b](v?{}:-0,1)!=E,P=f(function(){E.has(1)}),k=p(function(e){new y(e)}),M=!v&&f(function(){for(var e=new y,t=5;t--;)e[b](t,t);return!e.has(-0)});k||(y=t(function(t,n){u(t,y,e);var r=h(new _,t,y);return void 0!=n&&l(n,m,r[b],r),r}),y.prototype=w,w.constructor=y),(P||M)&&(C("delete"),C("has"),m&&C("get")),(M||T)&&C(b),v&&w.clear&&delete w.clear}else y=g.getConstructor(t,e,m,b),i(y.prototype,n),s.NEED=!0;return d(y,e),x[e]=y,o(o.G+o.W+o.F*(y!=_),x),v||g.setStrong(y,e,m),y}},function(e,t,n){"use strict";var r=n(34),o=n(27),a=n(9),i=n(40),s=n(15);e.exports=function(e,t,n){var l=s(e),u=n(i,l,""[e]),c=u[0],f=u[1];a(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,c),r(RegExp.prototype,l,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(15)("iterator"),o=!1;try{var a=[7][r]();a["return"]=function(){o=!0},Array.from(a,function(){throw 2})}catch(i){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a=[7],i=a[r]();i.next=function(){n=!0},a[r]=function(){return i},e(a)}catch(s){}return n}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(13),o=n(7),a=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(49)(Function.call,n(41).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t,n){var r=n(12),o="__core-js_shared__",a=r[o]||(r[o]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t,n){for(var r,o=n(12),a=n(34),i=n(68),s=i("typed_array"),l=i("view"),u=!(!o.ArrayBuffer||!o.DataView),c=u,f=0,p=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");p>f;)(r=o[d[f++]])?(a(r.prototype,s,!0),a(r.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.Base,a=r.WordArray,i=n.x64={};i.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),i.WordArray=o.extend({init:function(e,n){e=this.words=e||[],n!=t?this.sigBytes=n:this.sigBytes=8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;t>r;r++){var o=e[r];n.push(o.high),n.push(o.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;n>r;r++)t[r]=t[r].clone();return e}})}(),e})},function(e,t,n){"use strict";var r=n(5),o=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=o},function(e,t,n){var r,o;r=[n(120),n(735),n(281),n(278)],o=function(e,t,n,r){function o(t){return function(n,r){return e(this,r)&&t(n,this[r])}}function a(t,n){return e(this,n)}function i(e,i,s){return s=s||r,n(e)&&n(i)?t(e,o(s),i)&&t(i,a,e):s(e,i)}return i}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(120),n(736)],o=function(e,t){function n(n,r,o){t(n,function(t,a){return e(n,a)?r.call(o,n[a],a,n):void 0})}return n}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r,o;r=[n(120),n(277),n(281)],o=function(e,t,n){function r(){var o,a,i,s,l=1;for(s=t(arguments[0]);i=arguments[l++];)for(o in i)e(i,o)&&(a=i[o],n(a)&&n(s[o])?s[o]=r(s[o],a):s[o]=t(a));return s}return r}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=h++,p[e[m]]={}),p[e[m]]}var o=n(52),a=n(98),i=n(286),s=n(761),l=n(36),u=n(307),c=n(11),f=n(186),p={},d=!1,h=0,g={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=c({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),s=i.registrationNameDependencies[e],l=o.topLevelTypes,u=0;u<s.length;u++){var c=s[u];a.hasOwnProperty(c)&&a[c]||(c===l.topWheel?f("wheel")?v.ReactEventListener.trapBubbledEvent(l.topWheel,"wheel",n):f("mousewheel")?v.ReactEventListener.trapBubbledEvent(l.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(l.topWheel,"DOMMouseScroll",n):c===l.topScroll?f("scroll",!0)?v.ReactEventListener.trapCapturedEvent(l.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(l.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):c===l.topFocus||c===l.topBlur?(f("focus",!0)?(v.ReactEventListener.trapCapturedEvent(l.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(l.topBlur,"blur",n)):f("focusin")&&(v.ReactEventListener.trapBubbledEvent(l.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(l.topBlur,"focusout",n)),a[l.topBlur]=!0,a[l.topFocus]=!0):g.hasOwnProperty(c)&&v.ReactEventListener.trapBubbledEvent(c,g[c],n),a[c]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!d){var e=u.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),d=!0}},eventNameDispatchConfigs:a.eventNameDispatchConfigs,registrationNameModules:a.registrationNameModules,putListener:a.putListener,getListener:a.getListener,deleteListener:a.deleteListener,deleteAllListeners:a.deleteAllListeners});l.measureMethods(v,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),e.exports=v},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(117),o=r({prop:null,context:null,childContext:null});e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(101),a=n(307),i=n(182),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:i,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+a.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+a.currentScrollTop}};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";var r=n(5),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,a,i,s,l){this.isInTransaction()?r(!1):void 0;var u,c;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),c=e.call(t,n,o,a,i,s,l),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(f){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=a.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===a.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(o){}}}},closeAll:function(e){this.isInTransaction()?void 0:r(!1);for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o,i=t[n],s=this.wrapperInitData[n];try{o=!0,s!==a.OBSERVED_ERROR&&i.close&&i.close.call(this,s),o=!1}finally{if(o)try{this.closeAll(n+1)}catch(l){}}}this.wrapperInitData.length=0}},a={Mixin:o,OBSERVED_ERROR:{}};e.exports=a},function(e,t,n){"use strict";var r=!1;e.exports=r},function(e,t){"use strict";function n(e){return o[e]}function r(e){return(""+e).replace(a,n)}var o={"&":"&",">":">","<":"<",'"':""","'":"'"},a=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";var r=n(23),o=/^[ \r\n\t\f]/,a=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,i=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(i=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(i=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&a.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=i},function(e,t,n){var r;(function(o){/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(a){"use strict";r=function(e){function t(){return"undefined"!=typeof o&&"[object process]"===Object.prototype.toString.call(o)}function r(){return"function"==typeof MutationObserver&&MutationObserver||"function"==typeof WebKitMutationObserver&&WebKitMutationObserver}function a(e){function t(){var e=n;n=void 0,e()}var n,r=document.createTextNode(""),o=new e(t);o.observe(r,{characterData:!0});var a=0;return function(e){n=e,r.data=a^=1}}var i,s="undefined"!=typeof setTimeout&&setTimeout,l=function(e,t){return setTimeout(e,t)},u=function(e){return clearTimeout(e)},c=function(e){return s(e,0)};if(t())c=function(e){return o.nextTick(e)};else if(i=r())c=a(i);else if(!s){var f=n(862);l=function(e,t){return f.setTimer(t,e)},u=f.cancelTimer,c=f.runOnLoop||f.runOnContext}return{setTimer:l,clearTimer:u,asap:c}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))}).call(t,n(97))},function(e,t){"use strict";function n(e){return parseInt(e,10)}function r(e){return parseFloat(e)}function o(e){return String(e)}function a(e){return Boolean(e)}function i(e){return console.log("Try to convert to proxy",e),e}Object.defineProperty(t,"__esModule",{value:!0}),t.integer=n,t["double"]=r,t.string=o,t["boolean"]=a,t.proxy=i,t["default"]={integer:n,"int":n,"double":r,dbl:r,"float":r,string:o,str:o,"boolean":a,bool:a,proxy:i}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(16),s=r(i),l="toggle.change",u=function(){function e(){var t=this,n=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];o(this,e),this.state=n,this.toggleState=function(){t.state=!t.state,t.emit(l,t.state)}}return a(e,[{key:"setState",value:function(e){!!e!==this.state&&(this.state=!!e,this.emit(l,this.state))}},{key:"getState",value:function(){return this.state}},{key:"onChange",value:function(e){return this.on(l,e)}},{key:"destroy",value:function(){this.off()}}]),e}();t["default"]=u,s["default"].mixInto(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){return(new Date).getTime()}function i(e){return"json"===e.type?e.size=JSON.stringify(e.data).length:"blob"===e.type?e.size=e.data.size:e.size=e.data.length,e.size}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(360),u=r(l),c=n(359),f=r(c),p=n(16),d=r(p),h={json:u["default"].fetchJSON,text:u["default"].fetchTxt,blob:u["default"].fetchBlob,arraybuffer:u["default"].fetchArray,array:u["default"].fetchArray},g=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?1e9:arguments[0];o(this,e),this.pattern=new f["default"],this.keyToTypeMap={},this.cacheSize=t,this.cacheData={cache:{},modified:0,ts:0,size:0}}return s(e,[{key:"destroy",value:function(){this.off(),this.clear()}},{key:"fetch",value:function(e,t){var n=this,r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=t?this.pattern.getValue(e,t):e,s=this.cacheData.cache[o];return s?s.pending?(s.keysToNotify.push(e),r&&s.keysToNotify.push(r)):(this.cacheData.ts=s.ts=a(),setTimeout(function(){var t=s.keysToNotify||[e],o=t.length;for(delete s.keysToNotify;o--;)n.emit(t[o],s);r&&n.emit(r,s)},0)):!function(){n.gc(),n.cacheData.cache[o]={pending:!0,keysToNotify:[e]},r&&n.cacheData.cache[o].keysToNotify.push(r);var l=n,u=n.keyToTypeMap[e],c=u[0],f=u[1],p=u[2],d=function(n,r){if(n)return delete l.cacheData.cache[o],l.emit(e,{error:n,data:{key:e,options:t,url:o,typeFnMime:u}}),null;s={data:r,type:c,requestedURL:o,pending:!1},p&&-1!==p.indexOf("image")&&(s.url=window.URL.createObjectURL(r)),l.cacheData.size+=i(s),l.cacheData.modified=l.cacheData.ts=s.ts=a();var f=l.cacheData.cache[o].keysToNotify,d=f.length;for(l.cacheData.cache[o]=s;d--;)l.emit(f[d],s)};f(o,p?p:d,d)}(),o}},{key:"fetchURL",value:function(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];return this.keyToTypeMap[e]=[t,h[t],n],this.fetch(e,null,r)}},{key:"get",value:function(e,t){var n=this.cacheData.cache[e];return t&&this.free(e),n}},{key:"free",value:function(e){var t=this.cacheData.cache[e];t&&t.url&&(window.URL.revokeObjectURL(t.url),delete t.url),delete this.cacheData.cache[e],this.off(e)}},{key:"registerURL",value:function(e,t,n,r){this.pattern.registerPattern(e,t),this.keyToTypeMap[e]=[n,h[n],r]}},{key:"unregisterURL",value:function(e){this.pattern.unregisterPattern(e),delete this.keyToTypeMap[e],this.off(e)}},{key:"clear",value:function(){var e=[];for(var t in this.cacheData.cache)e.push(t);for(var n=e.length;n--;)this.free(e[n]);this.cacheData.size=0}},{key:"gc",value:function(){this.cacheData.size>this.cacheSize&&(console.log("Free cache memory",this.cacheData.size),this.clear())}},{key:"setCacheSize",value:function(e){this.cacheSize=e}},{key:"getCacheSize",value:function(){return this.cacheSize}},{key:"getMemoryUsage",value:function(){return this.cacheData.size}}]),e}();t["default"]=g,d["default"].mixInto(g)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=R[e];return n?n(t):null}function a(e){if(!e)return[];var t=e.getControlWidgets(),n=[];return t.forEach(function(e){var t=o(e.name,e);t?n.push(t):console.error("Unable to create widget for name: "+name)}),n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),s=r(i),l=n(32),u=r(l),c=n(211),f=r(c),p=n(212),d=r(p),h=n(135),g=r(h),m=n(214),v=r(m),_=n(136),y=r(_),b=n(215),w=r(b),x=n(216),C=r(x),E=n(227),T=r(E),P=n(138),k=r(P),M=n(103),S=r(M),R={QueryDataModelWidget:function(e){var t=e.queryDataModel,n=e.handleExploration;return s["default"].createElement(w["default"],{key:"QueryDataModel",handleExploration:!!n,model:t})},EqualizerWidget:function(e){var t=e.levels,n=e.colors,r=void 0===n?["#cccccc"]:n,o=e.callback;return s["default"].createElement(k["default"],{key:"Equalizer",width:300,height:120,layers:t,onChange:o,colors:r})},LookupTableWidget:function(e){var t=e.originalRange,n=void 0===t?[0,1]:t,r=e.lookupTable,o=e.lookupTableManager;return s["default"].createElement(u["default"],{title:"LookupTable",key:"LookupTableWidget_parent"},s["default"].createElement(S["default"],{key:"LookupTableWidget",ref:"LookupTableWidget",originalRange:n,lookupTable:r,lookupTableManager:o}))},LookupTableManagerWidget:function(e){var t=e.lookupTableManager,n=e.field;return n||(n=t.getActiveField()),s["default"].createElement(g["default"],{key:"LookupTableManagerWidget",ref:"LookupTableManagerWidget",field:n,lookupTableManager:t})},CompositeControl:function(e){var t=e.pipelineModel;return s["default"].createElement(u["default"],{title:"Pipeline",key:"CompositeControl_parent"},s["default"].createElement(T["default"],{key:"CompositeControl",ref:"CompositeControl",model:t}))},ProbeControl:function(e){var t=e.model;return s["default"].createElement(y["default"],{key:"ProbeControl",ref:"ProbeControl",imageBuilder:t})},LightPropertiesWidget:function(e){var t=e.light;return s["default"].createElement(d["default"],{key:"LightPropertiesWidget",ref:"LightPropertiesWidget",light:t})},VolumeControlWidget:function(e){var t=e.lookupTable,n=e.equalizer,r=e.intensity,o=e.computation;return s["default"].createElement(C["default"],{key:"VolumeControlWidget",ref:"VolumeControlWidget",intensity:r,computation:o,equalizer:n,lookupTable:t})},PixelOperatorControl:function(e){var t=e.model;return s["default"].createElement(v["default"],{key:"PixelOperatorControl",ref:"PixelOperatorControl",operator:t})},FloatImageControl:function(e){var t=e.model;return s["default"].createElement(f["default"],{key:"FloatImageControl",ref:"FloatImageControl",model:t})}};t["default"]={createWidget:o,getWidgets:a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),a=r(o),i=n(103),s=r(i),l=n(230),u=r(l),c=n(3),f=r(c);t["default"]=f["default"].createClass({displayName:"lookupTableManagerControl",propTypes:{field:f["default"].PropTypes.string,lookupTableManager:f["default"].PropTypes.object.isRequired},getInitialState:function(){var e=this.props.lookupTableManager.luts,t=Object.keys(e),n=this.props.field||t[0];return{field:n,fields:t}},componentWillMount:function(){var e=this;this.changeSubscription=this.props.lookupTableManager.onFieldsChange(function(t,n){var r=Object.keys(e.props.lookupTableManager.luts);e.setState({fields:r})})},componentWillUnmount:function(){this.changeSubscription&&(this.changeSubscription.unsubscribe(),this.changeSubscription=null)},onFieldsChange:function(e){this.props.lookupTableManager.updateActiveLookupTable(e),this.setState({field:e})},render:function(){var e=this.props.lookupTableManager,t=e.getLookupTable(this.state.field),n=t.getScalarRange();return f["default"].createElement(a["default"],{title:"Lookup Table",subtitle:f["default"].createElement(u["default"],{field:this.state.field,fields:this.state.fields,onChange:this.onFieldsChange})},f["default"].createElement(s["default"],{lookupTableManager:e,lookupTable:t,originalRange:n}))}})},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(104),s=r(i),l=n(32),u=r(l);t["default"]=a["default"].createClass({displayName:"ProbeControl",propTypes:{imageBuilder:a["default"].PropTypes.object.isRequired,imageBuilders:a["default"].PropTypes.object},getDefaultProps:function(){return{imageBuilders:{}}},getInitialState:function(){var e=this.getImageBuilder(this.props);return{probe:[e.getProbe()[0],e.getProbe()[1],e.getProbe()[2]],showFieldValue:!0}},componentWillMount:function(){this.attachImageBuilderListeners(this.getImageBuilder(this.props))},componentDidMount:function(){this.setState({showFieldValue:this.refs.ProbeInput.isExpanded()})},componentWillReceiveProps:function(e){var t=this.getImageBuilder(this.props),n=this.getImageBuilder(e);t!==n&&this.attachImageBuilderListeners(n)},componentWillUnmount:function(){this.detachImageBuilderListeners()},getImageBuilder:function(e){var t=e.imageBuilder;if(!t){var n=Object.keys(e.imageBuilders)[0];t=e.imageBuilders[n].builder}return t},attachImageBuilderListeners:function(e){var t=this;this.detachImageBuilderListeners(),this.probeListenerSubscription=e.onProbeChange(function(n,r){var o=e.getFieldValueAtProbeLocation();t.isMounted()&&t.setState({probe:n,field:o})}),this.probeDataListenerSubscription=e.onProbeLineReady(function(n,r){var o=e.getFieldValueAtProbeLocation();t.isMounted()&&o!==t.state.field&&t.setState({field:o})})},detachImageBuilderListeners:function(){this.probeListenerSubscription&&(this.probeListenerSubscription.unsubscribe(),this.probeListenerSubscription=null),this.probeDataListenerSubscription&&(this.probeDataListenerSubscription.unsubscribe(),this.probeDataListenerSubscription=null)},updateRenderMethod:function(e){this.props.imageBuilder&&(this.props.imageBuilder.setRenderMethod(e.target.value),this.props.imageBuilder.render(),this.forceUpdate())},probeChange:function(e){var t=Number(e.target.value),n=this.state.probe,r=Number(e.target.name);n[r]=t,this.getImageBuilder(this.props).setProbe(n[0],n[1],n[2])},onProbeVisibilityChange:function(t){var n=this;this.setState({showFieldValue:t}),e(function(){if(n.props.imageBuilders)for(var e in n.props.imageBuilders){var r=n.props.imageBuilders[e].builder;r.setCrossHairEnable(t),r.render()}n.props.imageBuilder&&(n.props.imageBuilder.setCrossHairEnable(t),n.props.imageBuilder.render())})},render:function(){var e=this.getImageBuilder(this.props),t=this.state.field||e.getFieldValueAtProbeLocation(),n=""+t;return void 0===t?n="":(n&&n.length>6&&(n=t.toFixed(5)),Math.abs(t)<1e-5&&(n="0")),a["default"].createElement("div",null,a["default"].createElement(u["default"],{title:"Render method",visible:e.isRenderMethodMutable()},a["default"].createElement("select",{style:{width:"100%"},value:e.getRenderMethod(),onChange:this.updateRenderMethod},e.getRenderMethods().map(function(e){return a["default"].createElement("option",{key:e,value:e},e)}))),a["default"].createElement(u["default"],{title:"Probe",subtitle:this.state.showFieldValue?n:"",ref:"ProbeInput",onChange:this.onProbeVisibilityChange,open:e.isCrossHairEnabled()},a["default"].createElement(s["default"],{name:"0",min:"0",max:e.metadata.dimensions[0]-1,key:"slider-x",value:this.state.probe[0],onChange:this.probeChange}),a["default"].createElement(s["default"],{name:"1",min:"0",max:e.metadata.dimensions[1]-1,key:"slider-Y",value:this.state.probe[1],onChange:this.probeChange}),a["default"].createElement(s["default"],{name:"2",min:"0",max:e.metadata.dimensions[2]-1,key:"slider-Z",value:this.state.probe[2],onChange:this.probeChange})))}})}).call(t,n(87).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t,n){var r=g[o(e.ui.propType)];return r?r(e,t,n):null};var a=n(217),i=r(a),s=n(218),l=r(s),u=n(219),c=r(u),f=n(3),p=r(f),d=n(220),h=r(d),g={Cell:function(e,t,n){return p["default"].createElement(i["default"],{key:e.data.id,data:e.data,ui:e.ui,viewData:t,show:e.show,onChange:n})},Slider:function(e,t,n){return p["default"].createElement(h["default"],{key:e.data.id,data:e.data,ui:e.ui,viewData:t,show:e.show,onChange:n})},Enum:function(e,t,n){return p["default"].createElement(c["default"],{key:e.data.id,data:e.data,ui:e.ui,viewData:t,show:e.show,onChange:n})},Checkbox:function(e,t,n){return p["default"].createElement(l["default"],{key:e.data.id,data:e.data,ui:e.ui,viewData:t,show:e.show,onChange:n})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(170),a=r(o),i=n(73),s=r(i),l=n(3),u=r(l),c=n(25),f=r(c),p=n(46),d=n(818),h=r(d);t["default"]=u["default"].createClass({displayName:"EqualizerWidget",propTypes:{colors:u["default"].PropTypes.array,height:u["default"].PropTypes.number,layers:u["default"].PropTypes.array,onChange:u["default"].PropTypes.func,spacing:u["default"].PropTypes.number,stroke:u["default"].PropTypes.string,width:u["default"].PropTypes.number},getDefaultProps:function(){return{layers:[1,1,1,1,1,1,1],colors:["#0000ff","#ffffff","#ff0000"],stroke:"#000000",height:120,width:300,spacing:2}},getInitialState:function(){return{layers:this.props.layers,width:this.props.width,height:this.props.height}},componentWillMount:function(){this.sizeSubscription=(0,p.onSizeChange)(this.updateDimensions),(0,p.startListening)()},componentDidMount:function(){this.updateDimensions(),this.draw(),this.mouseHandler=new s["default"](f["default"].findDOMNode(this.refs.canvas)),this.mouseHandler.attach({click:this.clicked,drag:this.clicked})},componentWillReceiveProps:function(e){var t=e.layers;(0,a["default"])(this.state.layers,t)||this.setState({layers:t})},componentDidUpdate:function(e,t){this.draw()},componentWillUnmount:function(){this.mouseHandler.destroy(),this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},updateDimensions:function(){var e=f["default"].findDOMNode(this).parentNode,t=(0,p.getSize)(e).clientWidth;return e&&t&&this.state.width!==t?(this.setState({width:t}),!0):!1},draw:function(){var e=f["default"].findDOMNode(this.refs.canvas).getContext("2d");e.strokeStyle=this.props.stroke,e.lineWidth="1";var t=this.state.layers,n=this.state.width,r=this.state.height,o=t.length,a=this.props.spacing,i=Math.floor((n-5*a)/o-a),s=r-4*a,l=i+(n-i*t.length-2*a)/(t.length+1);e.clearRect(0,0,this.state.width,this.state.height),e.beginPath(),e.rect(a,a,n-2*a,r-2*a),e.stroke();for(var u=0;o>u;u++){var c=t[u]*s;e.fillStyle=this.props.colors[u%this.props.colors.length],e.fillRect(l*u+2*a,r-c-2*a,i,c),e.beginPath(),e.rect(l*u+2*a,r-c-2*a,i,c),e.stroke()}},clicked:function(e){var t=f["default"].findDOMNode(this.refs.canvas).getClientRects()[0],n=e.pointers[0].clientX-t.left-2*this.props.spacing,r=e.pointers[0].clientY-t.top-2*this.props.spacing,o=t.height-4*this.props.spacing,a=Math.min(this.state.layers.length-1,Math.floor(n/(t.width-4*this.props.spacing)*this.state.layers.length)),i=1-r/o,s=[].concat(this.state.layers);i=i>1?1:i,i=0>i?0:i,s[a]=i,this.setState({layers:s}),this.props.onChange&&this.props.onChange(s),this.draw()},render:function(){return u["default"].createElement("div",{className:h["default"].container},u["default"].createElement("canvas",{className:h["default"].canvas,ref:"canvas",width:this.state.width,height:this.state.height}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o);t["default"]=a["default"].createClass({displayName:"NumberInputWidget",propTypes:{className:a["default"].PropTypes.string,max:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),min:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,step:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string]),value:a["default"].PropTypes.oneOfType([a["default"].PropTypes.number,a["default"].PropTypes.string])},getDefaultProps:function(){return{className:"",step:1,value:0,classes:[]}},getInitialState:function(){return{editing:!1,valueRep:this.props.value}},valueChange:function(e){var t=e.target.value;this.setState({editing:!0,valueRep:t});var n=parseFloat(t);!isNaN(n)&&this.props.onChange&&(this.props.name?this.props.onChange(n,this.props.name):this.props.onChange(n))},endEditing:function(){this.setState({editing:!1})},render:function(){return a["default"].createElement("input",{className:this.props.className,type:"number",min:this.props.min,max:this.props.max,step:this.props.step,value:this.state.editing?this.state.valueRep:this.props.value,onChange:this.valueChange,onBlur:this.endEditing})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(433),a=r(o),i=n(432),s=r(i),l=n(105),u=r(l),c=n(106),f=r(c),p=n(3),d=r(p),h=n(193),g=r(h);t["default"]=d["default"].createClass({displayName:"QueryDataModelWidget",propTypes:{model:d["default"].PropTypes.object},mixins:[u["default"],f["default"]],render:function(){var e=this.props.model,t=e.originalData.arguments_order;return d["default"].createElement("div",{className:g["default"].container},t.map(function(t){return"list"===e.getUiType(t)?d["default"].createElement(a["default"],{key:t,model:e,arg:t,listener:!1}):"slider"===e.getUiType(t)?d["default"].createElement(s["default"],{key:t,model:e,arg:t,listener:!1}):void 0}))}})},function(e,t,n){"use strict";var r=n(31),o=n(66),a=n(21);e.exports=function(e){for(var t=r(this),n=a(t.length),i=arguments.length,s=o(i>1?arguments[1]:void 0,n),l=i>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(13),o=n(12).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(15)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(o){}}return!0}},function(e,t,n){"use strict";var r=n(7);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){e.exports=n(12).document&&document.documentElement},function(e,t,n){var r=n(13),o=n(113).set;e.exports=function(e,t,n){var a,i=t.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&r(a)&&o&&o(e,a),e}},function(e,t,n){var r=n(63),o=n(15)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},function(e,t,n){var r=n(39);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(13),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(13),o=n(39),a=n(15)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(93),o=n(2),a=n(27),i=n(34),s=n(22),l=n(63),u=n(246),c=n(79),f=n(42),p=n(15)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",g="keys",m="values",v=function(){return this};e.exports=function(e,t,n,_,y,b,w){u(n,t,_);var x,C,E,T=function(e){if(!d&&e in S)return S[e];switch(e){case g:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},P=t+" Iterator",k=y==m,M=!1,S=e.prototype,R=S[p]||S[h]||y&&S[y],D=R||T(y),A=y?k?T("entries"):D:void 0,I="Array"==t?S.entries||R:R;if(I&&(E=f(I.call(new e)),E!==Object.prototype&&(c(E,P,!0),r||s(E,p)||i(E,p,v))),k&&R&&R.name!==m&&(M=!0,D=function(){return R.call(this)}),r&&!w||!d&&!M&&S[p]||i(S,p,D),l[t]=D,l[P]=v,y)if(x={values:k?D:T(m),keys:b?D:T(g),entries:A},w)for(C in x)C in S||a(S,C,x[C]);else o(o.P+o.F*(d||M),t,x);return x}},function(e,t){e.exports=Math.expm1||function(e){return 0==(e=+e)?e:e>-1e-6&&1e-6>e?e+e*e/2:Math.exp(e)-1}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:0>e?-1:1}},function(e,t,n){var r=n(114)("keys"),o=n(68);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(7),o=n(47),a=n(15)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||void 0==(n=r(i)[a])?t:o(n)}},function(e,t,n){var r=n(57),o=n(40);e.exports=function(e){return function(t,n){var a,i,s=String(o(t)),l=r(n),u=s.length;return 0>l||l>=u?e?"":void 0:(a=s.charCodeAt(l),55296>a||a>56319||l+1===u||(i=s.charCodeAt(l+1))<56320||i>57343?e?s.charAt(l):a:e?s.slice(l,l+2):(a-55296<<10)+(i-56320)+65536)}}},function(e,t,n){var r=n(151),o=n(40);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){"use strict";var r=n(57),o=n(40);e.exports=function(e){var t=String(o(this)),n="",a=r(e);if(0>a||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t){e.exports=" \n\x0B\f\r \u2028\u2029\ufeff"},function(e,t,n){var r,o,a,i=n(49),s=n(110),l=n(146),u=n(142),c=n(12),f=c.process,p=c.setImmediate,d=c.clearImmediate,h=c.MessageChannel,g=0,m={},v="onreadystatechange",_=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},y=function(e){_.call(e.data)};p&&d||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},d=function(e){delete m[e]},"process"==n(39)(f)?r=function(e){f.nextTick(i(_,e,1))}:h?(o=new h,a=o.port2,o.port1.onmessage=y,r=i(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):r=v in u("script")?function(e){l.appendChild(u("script"))[v]=function(){l.removeChild(this),_.call(e)}}:function(e){setTimeout(i(_,e,1),0)}),e.exports={set:p,clear:d}},function(e,t,n){"use strict";var r=n(12),o=n(18),a=n(93),i=n(115),s=n(34),l=n(77),u=n(9),c=n(62),f=n(57),p=n(21),d=n(65).f,h=n(17).f,g=n(141),m=n(79),v="ArrayBuffer",_="DataView",y="prototype",b="Wrong length!",w="Wrong index!",x=r[v],C=r[_],E=r.Math,T=(r.parseInt,r.RangeError),P=r.Infinity,k=x,M=E.abs,S=E.pow,R=(E.min,E.floor),D=E.log,A=E.LN2,I="buffer",O="byteLength",F="byteOffset",N=o?"_b":I,L=o?"_l":O,B=o?"_o":F,j=function(e,t,n){var r,o,a,i=Array(n),s=8*n-t-1,l=(1<<s)-1,u=l>>1,c=23===t?S(2,-24)-S(2,-77):0,f=0,p=0>e||0===e&&0>1/e?1:0;for(e=M(e),e!=e||e===P?(o=e!=e?1:0,r=l):(r=R(D(e)/A),e*(a=S(2,-r))<1&&(r--,a*=2),e+=r+u>=1?c/a:c*S(2,1-u),e*a>=2&&(r++,a/=2),r+u>=l?(o=0,r=l):r+u>=1?(o=(e*a-1)*S(2,t),r+=u):(o=e*S(2,u-1)*S(2,t),r=0));t>=8;i[f++]=255&o,o/=256,t-=8);for(r=r<<t|o,s+=t;s>0;i[f++]=255&r,r/=256,s-=8);return i[--f]|=128*p,i},W=function(e,t,n){var r,o=8*n-t-1,a=(1<<o)-1,i=a>>1,s=o-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;s>0;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===c)c=1-i;else{if(c===a)return r?NaN:u?-P:P;r+=S(2,t),c-=i}return(u?-1:1)*r*S(2,c-t)},U=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},V=function(e){return[255&e]},z=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},H=function(e){return j(e,52,8)},X=function(e){return j(e,23,4)},G=function(e,t,n){h(e[y],t,{get:function(){return this[n]}})},Y=function(e,t,n,r){var o=+n,a=f(o);if(o!=a||0>a||a+t>e[L])throw T(w);var i=e[N]._b,s=a+e[B],l=i.slice(s,s+t);return r?l:l.reverse()},Q=function(e,t,n,r,o,a){var i=+n,s=f(i);if(i!=s||0>s||s+t>e[L])throw T(w);for(var l=e[N]._b,u=s+e[B],c=r(+o),p=0;t>p;p++)l[u+p]=c[a?p:t-p-1]},K=function(e,t){c(e,x,v);var n=+t,r=p(n);if(n!=r)throw T(b);return r};if(i.ABV){if(!u(function(){new x})||!u(function(){new x(.5)})){x=function(e){return new k(K(this,e))};for(var Z,J=x[y]=k[y],$=d(k),ee=0;$.length>ee;)(Z=$[ee++])in x||s(x,Z,k[Z]);a||(J.constructor=x)}var te=new C(new x(2)),ne=C[y].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(C[y],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else x=function(e){var t=K(this,e);this._b=g.call(Array(t),0),this[L]=t},C=function(e,t,n){c(this,C,_),c(e,x,_);var r=e[L],o=f(t);if(0>o||o>r)throw T("Wrong offset!");if(n=void 0===n?r-o:p(n),o+n>r)throw T(b);this[N]=e,this[B]=o,this[L]=n},o&&(G(x,O,"_l"),G(C,I,"_b"),G(C,O,"_l"),G(C,F,"_o")),l(C[y],{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return U(Y(this,4,e,arguments[1]))},getUint32:function(e){return U(Y(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return W(Y(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return W(Y(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){Q(this,1,e,V,t)},setUint8:function(e,t){Q(this,1,e,V,t)},setInt16:function(e,t){Q(this,2,e,z,t,arguments[2])},setUint16:function(e,t){Q(this,2,e,z,t,arguments[2])},setInt32:function(e,t){Q(this,4,e,q,t,arguments[2])},setUint32:function(e,t){Q(this,4,e,q,t,arguments[2])},setFloat32:function(e,t){Q(this,4,e,X,t,arguments[2])},setFloat64:function(e,t){Q(this,8,e,H,t,arguments[2])}});m(x,v),m(C,_),s(C[y],i.VIEW,!0),t[v]=x,t[_]=C},function(e,t,n){var r=n(75),o=n(15)("iterator"),a=n(63);e.exports=n(48).getIteratorMethod=function(e){return void 0!=e?e[o]||e["@@iterator"]||a[r(e)]:void 0}},function(e,t,n){"use strict";var r=n(74),o=n(247),a=n(63),i=n(29);e.exports=n(152)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){!function(){var t=e,n=t.lib,r=n.Base,o=t.enc,a=o.Utf8,i=t.algo;i.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),s=o.words,l=i.words,u=0;n>u;u++)s[u]^=1549556828,l[u]^=909522486;o.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})}()})},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,i=[],s=a.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=0;80>u;u++){if(16>u)i[u]=0|e[t+u];else{var c=i[u-3]^i[u-8]^i[u-14]^i[u-16];i[u]=c<<1|c>>>31}var f=(r<<5|r>>>27)+l+i[u];f+=20>u?(o&a|~o&s)+1518500249:40>u?(o^a^s)+1859775393:60>u?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,l=s,s=a,a=o<<30|o>>>2,o=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".AbstractViewerMenu_container_UqWNj{overflow:hidden;width:100vw;height:100vh}.AbstractViewerMenu_hidden_tW5_E{display:none}.AbstractViewerMenu_button_2irlM{width:1.52em;height:1.25em;padding-top:.25em;text-align:center;margin-left:.5em;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.AbstractViewerMenu_leftButton_2MeNR{float:left}.AbstractViewerMenu_collapsedControl_20cvd .AbstractViewerMenu_leftButton_2MeNR{display:none}.AbstractViewerMenu_magicLensButtonIn_iixWh{border-radius:5px}.AbstractViewerMenu_magicLensButtonOut_1erzW{background:#000}.AbstractViewerMenu_recordButtonOff_2ai1M{color:#000}.AbstractViewerMenu_recordButtonOn_VYrxJ{color:red}.AbstractViewerMenu_animationSpeed_1W9cF{float:left}.AbstractViewerMenu_collapsedControl_20cvd .AbstractViewerMenu_animationSpeed_1W9cF{display:none}.AbstractViewerMenu_menuButton_1d4M0{float:right}.AbstractViewerMenu_collapsedMenuButton_2brM7{border:1px solid;border-radius:50%;border-color:#ccc;background-color:#eee}.AbstractViewerMenu_control_2Mn-b{position:absolute;top:10px;right:10px;width:20%;max-width:400px;min-width:300px;z-index:1;border-radius:5px;background-color:hsla(0,0%,100%,.3);color:rgba(0,0,0,.3)}.AbstractViewerMenu_control_2Mn-b:hover{background-color:#fff;color:#000}.AbstractViewerMenu_collapsedControl_20cvd{min-width:1.5em;width:1.5em;border-radius:50%}.AbstractViewerMenu_collapsedControl_20cvd:hover{background:none}.AbstractViewerMenu_control_2Mn-b input[type=number].AbstractViewerMenu_LookupTableWidget__input_rh3Xg{color:#000}.AbstractViewerMenu_control_2Mn-b input[type=number],.AbstractViewerMenu_control_2Mn-b input[type=text],.AbstractViewerMenu_control_2Mn-b select{background-color:transparent}.AbstractViewerMenu_control_2Mn-b select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1px 5px;background-image:url("+n(842)+");background-repeat:no-repeat;background-position:99%;background-size:13px 13px;border:1px solid #d3d3d3;border-radius:3px}.AbstractViewerMenu_controlContent_2eESa{border:1px solid;border-radius:0 0 5px 5px;border-color:#ccc;padding-left:5px;padding-bottom:.5em;max-height:calc(100vh - 55px);overflow-y:scroll}.AbstractViewerMenu_collapsedControl_20cvd>.AbstractViewerMenu_controlContent_2eESa{display:none}.AbstractViewerMenu_controlBar_2JSl5{height:25px;line-height:25px;border:1px solid;border-radius:5px 5px 0 0;border-color:#ccc}.AbstractViewerMenu_control_2Mn-b:hover .AbstractViewerMenu_controlBar_2JSl5{background-color:#eee}.AbstractViewerMenu_collapsedControl_20cvd>.AbstractViewerMenu_controlBar_2JSl5{background:none;border:none;display:inline}.AbstractViewerMenu_renderer_2FUfo{position:absolute;top:0;bottom:0;left:0;right:0}.AbstractViewerMenu_item_fNsoc{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;margin-left:3px;padding-left:10px;padding-right:10px}.AbstractViewerMenu_item_fNsoc,.AbstractViewerMenu_row_1qFcK{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1}.AbstractViewerMenu_row_1qFcK{position:relative;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.AbstractViewerMenu_label_13aO1{-webkit-flex:1;-ms-flex:1;flex:1;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.AbstractViewerMenu_label_13aO1:first-letter{text-transform:uppercase}.AbstractViewerMenu_row_1qFcK>select{width:100%;background-color:rbga(0,0,0,0)}@media screen and (max-width:400px),screen and (orientation:landscape) and (max-device-width:400px){.AbstractViewerMenu_controlBar_2JSl5{height:40px}.AbstractViewerMenu_controlBar_2JSl5>.AbstractViewerMenu_button_2irlM{font-size:1.45em}.AbstractViewerMenu_controlContent_2eESa{max-height:calc(100vh - 70px)}}.is-ios-device .AbstractViewerMenu_controlBar_2JSl5{height:40px}.is-ios-device .AbstractViewerMenu_controlBar_2JSl5 .AbstractViewerMenu_button_2irlM{font-size:1.45em}.is-ios-device .AbstractViewerMenu_controlContent_2eESa{max-height:calc(100vh - 70px)}",""]), +t.locals={container:"AbstractViewerMenu_container_UqWNj",hidden:"AbstractViewerMenu_hidden_tW5_E",button:"AbstractViewerMenu_button_2irlM",leftButton:"AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",collapsedControl:"AbstractViewerMenu_collapsedControl_20cvd AbstractViewerMenu_control_2Mn-b",magicLensButtonIn:"AbstractViewerMenu_magicLensButtonIn_iixWh "+n(1).locals.fa+" "+n(1).locals["fa-search"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",magicLensButtonOut:"AbstractViewerMenu_magicLensButtonOut_1erzW AbstractViewerMenu_magicLensButtonIn_iixWh "+n(1).locals.fa+" "+n(1).locals["fa-search"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM "+n(1).locals["fa-inverse"],recordButtonOff:"AbstractViewerMenu_recordButtonOff_2ai1M "+n(1).locals.fa+" "+n(1).locals["fa-circle-thin"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",recordButtonOn:"AbstractViewerMenu_recordButtonOn_VYrxJ AbstractViewerMenu_recordButtonOff_2ai1M "+n(1).locals.fa+" "+n(1).locals["fa-circle-thin"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM "+n(1).locals["fa-circle"],resetCameraButton:"AbstractViewerMenu_resetCameraButton_2bsjg "+n(1).locals.fa+" "+n(1).locals["fa-arrows-alt"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",playButton:"AbstractViewerMenu_playButton_3QF6p "+n(1).locals.fa+" "+n(1).locals["fa-play"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",stopButton:"AbstractViewerMenu_stopButton_2Sl-k "+n(1).locals.fa+" "+n(1).locals["fa-stop"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",speedButton:"AbstractViewerMenu_speedButton_1beKS "+n(1).locals.fa+" "+n(1).locals["fa-clock-o"]+" AbstractViewerMenu_leftButton_2MeNR AbstractViewerMenu_button_2irlM",animationSpeed:"AbstractViewerMenu_animationSpeed_1W9cF",menuButton:"AbstractViewerMenu_menuButton_1d4M0 "+n(1).locals.fa+" "+n(1).locals["fa-bars"]+" AbstractViewerMenu_button_2irlM",collapsedMenuButton:"AbstractViewerMenu_collapsedMenuButton_2brM7 AbstractViewerMenu_menuButton_1d4M0 "+n(1).locals.fa+" "+n(1).locals["fa-bars"]+" AbstractViewerMenu_button_2irlM",control:"AbstractViewerMenu_control_2Mn-b",LookupTableWidget__input:"AbstractViewerMenu_LookupTableWidget__input_rh3Xg",controlContent:"AbstractViewerMenu_controlContent_2eESa",controlBar:"AbstractViewerMenu_controlBar_2JSl5",renderer:"AbstractViewerMenu_renderer_2FUfo",item:"AbstractViewerMenu_item_fNsoc",row:"AbstractViewerMenu_row_1qFcK",label:"AbstractViewerMenu_label_13aO1"}},function(e,t,n){function r(e,t,n){a(e,function(r,a){return o(e,a)?t.call(n,e[a],a,e):void 0})}var o=n(169),a=n(725);e.exports=r},function(e,t){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=n},function(e,t,n){var r,o;r=[n(278),n(279),n(729)],o=function(e,t,n){function r(r,a,i){return i=i||e,t(r)&&t(a)?r.length!==a.length?!1:n(r,o(i),a):i(r,a)}function o(e){return function(t,n){return n in this&&e(t,this[n])}}return r}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e){return null===e?"Null":e===t?"Undefined":n.exec(r.call(e))[1]}var t,n=/^\[object (.*)\]$/,r=Object.prototype.toString;return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=n(59),a=n(11),i=n(5);a(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?i(!1):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n<e.length;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e){return c.hasOwnProperty(e)?!0:u.hasOwnProperty(e)?!1:l.test(e)?(c[e]=!0,!0):(u[e]=!0,!1)}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&1>t||e.hasOverloadedBooleanValue&&t===!1}var a=n(84),i=n(36),s=n(791),l=(n(10),/^[a-zA-Z_][\w\.\-]*$/),u={},c={},f={createMarkupForID:function(e){return a.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(a.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=a.properties.hasOwnProperty(e)?a.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+s(t)}return a.isCustomAttribute(e)?null==t?"":e+"="+s(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,n){var r=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(r){var i=r.mutationMethod;if(i)i(e,n);else if(o(r,n))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute){var s=r.attributeName,l=r.attributeNamespace;l?e.setAttributeNS(l,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var u=r.propertyName;r.hasSideEffects&&""+e[u]==""+n||(e[u]=n)}}else a.isCustomAttribute(t)&&f.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=a.properties.hasOwnProperty(t)?a.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var o=n.propertyName,i=a.getDefaultValueForProperty(e.nodeName,o);n.hasSideEffects&&""+e[o]===i||(e[o]=i)}}else a.isCustomAttribute(t)&&e.removeAttribute(t)}};i.measureMethods(f,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),e.exports=f},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?u(!1):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?u(!1):void 0}function a(e){r(e),null!=e.checked||null!=e.onChange?u(!1):void 0}function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(305),l=n(124),u=n(5),c=(n(10),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),f={value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},p={},d={checkPropTypes:function(e,t,n){for(var r in f){if(f.hasOwnProperty(r))var o=f[r](t,r,e,l.prop);if(o instanceof Error&&!(o.message in p)){p[o.message]=!0;i(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(a(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(a(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=d},function(e,t,n){"use strict";var r=n(177),o=n(26),a={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=a},function(e,t,n){"use strict";var r=n(5),o=!1,a={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r(!1):void 0,a.unmountIDFromEnvironment=e.unmountIDFromEnvironment,a.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,a.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=a},function(e,t,n){"use strict";var r=n(285),o=n(173),a=n(26),i=n(36),s=n(5),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},u={updatePropertyByID:function(e,t,n){var r=a.getNode(e);l.hasOwnProperty(t)?s(!1):void 0,null!=n?o.setValueForProperty(r,t,n):o.deleteValueForProperty(r,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=a.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=a.getNode(e[n].parentID);r.processUpdates(e,t)}};i.measureMethods(u,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=u},function(e,t,n){"use strict";function r(e){s.enqueueUpdate(e)}function o(e,t){var n=i.get(e);return n?n:null}var a=(n(53),n(30)),i=n(100),s=n(37),l=n(11),u=n(5),c=(n(10),{isMounted:function(e){var t=i.get(e);return t?!!t._renderedComponent:!1},enqueueCallback:function(e,t){"function"!=typeof t?u(!1):void 0;var n=o(e);return n?(n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],void r(n)):null},enqueueCallbackInternal:function(e,t){"function"!=typeof t?u(!1):void 0,e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var a=n._pendingStateQueue||(n._pendingStateQueue=[]);a.push(t),r(n)}},enqueueSetProps:function(e,t){var n=o(e,"setProps");n&&c.enqueueSetPropsInternal(n,t)},enqueueSetPropsInternal:function(e,t){var n=e._topLevelWrapper;n?void 0:u(!1);var o=n._pendingElement||n._currentElement,i=o.props,s=l({},i.props,t);n._pendingElement=a.cloneAndReplaceProps(o,a.cloneAndReplaceProps(i,s)),r(n)},enqueueReplaceProps:function(e,t){var n=o(e,"replaceProps");n&&c.enqueueReplacePropsInternal(n,t)},enqueueReplacePropsInternal:function(e,t){var n=e._topLevelWrapper;n?void 0:u(!1);var o=n._pendingElement||n._currentElement,i=o.props;n._pendingElement=a.cloneAndReplaceProps(o,a.cloneAndReplaceProps(i,t)),r(n)},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}});e.exports=c},function(e,t){"use strict";e.exports="0.14.7"},function(e,t,n){"use strict";function r(e){return null==e?null:1===e.nodeType?e:o.has(e)?a.getNodeFromInstance(e):(null!=e.render&&"function"==typeof e.render?i(!1):void 0,void i(!1))}var o=(n(53),n(100)),a=n(26),i=n(5);n(10);e.exports=r},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e){var t;if(null===e||e===!1)t=new i(o);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?u(!1):void 0,t="string"==typeof n.type?s.createInternalComponent(n):r(n.type)?new n.type(n):new c}else"string"==typeof e||"number"==typeof e?t=s.createInstanceForText(e):u(!1);return t.construct(e),t._mountIndex=0,t._mountImage=null,t}var a=n(752),i=n(297),s=n(303),l=n(11),u=n(5),c=(n(10),function(){});l(c.prototype,a.Mixin,{_instantiateReactComponent:o}),e.exports=o},function(e,t,n){"use strict";/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, @@ -19,31 +19,31 @@ createMarkupForID:function(e){return a.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeF * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */ -function r(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,a=n(20);a.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(20),o=n(109),a=n(110),i=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){a(e,o(t))})),e.exports=i},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,a=typeof t;return"string"===o||"number"===o?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";function r(e){return g[e]}function o(e,t){return e&&null!=e.key?i(e.key):t.toString(36)}function a(e){return(""+e).replace(m,r)}function i(e){return"$"+a(e)}function s(e,t,n,r){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||u.isValidElement(e))return n(r,e,""===t?d+o(e,0):t),1;var l,c,g=0,m=""===t?d:t+h;if(Array.isArray(e))for(var v=0;v<e.length;v++)l=e[v],c=m+o(l,v),g+=s(l,c,n,r);else{var _=f(e);if(_){var y,b=_.call(e);if(_!==e.entries)for(var w=0;!(y=b.next()).done;)l=y.value,c=m+o(l,w++),g+=s(l,c,n,r);else for(;!(y=b.next()).done;){var x=y.value;x&&(l=x[1],c=m+i(x[0])+h+o(l,0),g+=s(l,c,n,r))}}else if("object"===a){String(e);p(!1)}}return g}function l(e,t,n){return null==e?0:s(e,"",t,n)}var u=(n(42),n(24)),c=n(64),f=n(151),p=n(5),d=(n(9),c.SEPARATOR),h=":",g={"=":"=0",".":"=1",":":"=2"},m=/[=.:]/g;e.exports=l},function(e,t,n){"use strict";var r=(n(10),n(35)),o=(n(9),r);e.exports=o},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D u_image;\nvarying vec2 v_texCoord;\n\nvoid main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor = vec4(color.rgb, 1.0);\n}\n"},function(e,t,n){var r=n(584);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(598);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){function e(e,n){function r(t,r,a){var i=e._defer(),s=a.length,l=new Array(s);return o({f:t,thisArg:r,args:a,params:l,i:s-1,call:n},i._handler),i}function o(t,r){if(t.i<0)return n(t.f,t.thisArg,t.params,r);var o=e._handler(t.args[t.i]);o.fold(a,t,void 0,r)}function a(e,t,n){e.params[e.i]=t,e.i-=1,o(e,n)}return arguments.length<2&&(n=t),r}function t(e,t,n,r){try{r.resolve(e.apply(t,n))}catch(o){r.reject(o)}}return e.tryCatchResolve=t,e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){(function(e){n(291);var r=n(617),o=n(49);"AUTOBAHN_DEBUG"in e&&AUTOBAHN_DEBUG&&(n(765),"console"in e&&console.log("AutobahnJS debug enabled"));var a=n(67),i=n(54),s=n(163),l=n(290),u=n(289),c=n(288),f=n(287);t.version=r.version,t.transports=u.transports,t.Connection=l.Connection,t.Session=s.Session,t.Invocation=s.Invocation,t.Event=s.Event,t.Result=s.Result,t.Error=s.Error,t.Subscription=s.Subscription,t.Registration=s.Registration,t.Publication=s.Publication,t.auth_persona=c.auth,t.auth_cra=f,t.when=o,t.util=a,t.log=i}).call(t,function(){return this}())},function(e,t,n){(function(e){function r(){return Math.floor(9007199254740992*Math.random())}var o=(n(49),n(282)),a=n(54),i=n(67);Date.now=Date.now||function(){return+new Date};var s={caller:{features:{caller_identification:!0,progressive_call_results:!0}},callee:{features:{progressive_call_results:!0}},publisher:{features:{subscriber_blackwhite_listing:!0,publisher_exclusion:!0,publisher_identification:!0}},subscriber:{features:{publisher_identification:!0}}},l=function(e,t,n){var r=this;r.caller=e,r.progress=t,r.procedure=n},u=function(e,t,n){var r=this;r.publication=e,r.publisher=t,r.topic=n},c=function(e,t){var n=this;n.args=e||[],n.kwargs=t||{}},f=function(e,t,n){var r=this;r.error=e,r.args=t||[],r.kwargs=n||{}},p=function(e,t,n,r,o){var a=this;a.topic=e,a.handler=t,a.options=n||{},a.session=r,a.id=o,a.active=!0};p.prototype.unsubscribe=function(){var e=this;return e.session.unsubscribe(e)};var d=function(e,t,n,r,o){var a=this;a.procedure=e,a.endpoint=t,a.options=n||{},a.session=r,a.id=o,a.active=!0};d.prototype.unregister=function(){var e=this;return e.session.unregister(e)};var h=function(e){var t=this;t.id=e},g={HELLO:1,WELCOME:2,ABORT:3,CHALLENGE:4,AUTHENTICATE:5,GOODBYE:6,HEARTBEAT:7,ERROR:8,PUBLISH:16,PUBLISHED:17,SUBSCRIBE:32,SUBSCRIBED:33,UNSUBSCRIBE:34,UNSUBSCRIBED:35,EVENT:36,CALL:48,CANCEL:49,RESULT:50,REGISTER:64,REGISTERED:65,UNREGISTER:66,UNREGISTERED:67,INVOCATION:68,INTERRUPT:69,YIELD:70},m=function(t,n,r){var i=this;i._socket=t,i._defer=n,i._onchallenge=r,i._id=null,i._realm=null,i._features=null,i._goodbye_sent=!1,i._transport_is_closing=!1,i._publish_reqs={},i._subscribe_reqs={},i._unsubscribe_reqs={},i._call_reqs={},i._register_reqs={},i._unregister_reqs={},i._subscriptions={},i._registrations={},i._invocations={},i._prefixes={},i._send_wamp=function(e){i._socket.send(e)},i._protocol_violation=function(e){a.debug("failing transport due to protocol violation: "+e),i._socket.close(1002,"protocol violation: "+e)},i._MESSAGE_MAP={},i._MESSAGE_MAP[g.ERROR]={},i._process_SUBSCRIBED=function(e){var t=e[1],n=e[2];if(t in i._subscribe_reqs){var r=i._subscribe_reqs[t],o=r[0],a=r[1],s=r[2],l=r[3];n in i._subscriptions||(i._subscriptions[n]=[]);var u=new p(a,s,l,i,n);i._subscriptions[n].push(u),o.resolve(u),delete i._subscribe_reqs[t]}else i._protocol_violation("SUBSCRIBED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.SUBSCRIBED]=i._process_SUBSCRIBED,i._process_SUBSCRIBE_ERROR=function(e){var t=e[2];if(t in i._subscribe_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._subscribe_reqs[t],o=r[0];o.reject(n),delete i._subscribe_reqs[t]}else i._protocol_violation("SUBSCRIBE-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.SUBSCRIBE]=i._process_SUBSCRIBE_ERROR,i._process_UNSUBSCRIBED=function(e){var t=e[1];if(t in i._unsubscribe_reqs){var n=i._unsubscribe_reqs[t],r=n[0],o=n[1];if(o in i._subscriptions){for(var a=i._subscriptions[o],s=0;s<a.length;++s)a[s].active=!1;delete i._subscriptions[o]}r.resolve(!0),delete i._unsubscribe_reqs[t]}else i._protocol_violation("UNSUBSCRIBED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.UNSUBSCRIBED]=i._process_UNSUBSCRIBED,i._process_UNSUBSCRIBE_ERROR=function(e){var t=e[2];if(t in i._unsubscribe_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._unsubscribe_reqs[t],o=r[0];r[1];o.reject(n),delete i._unsubscribe_reqs[t]}else i._protocol_violation("UNSUBSCRIBE-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.UNSUBSCRIBE]=i._process_UNSUBSCRIBE_ERROR,i._process_PUBLISHED=function(e){var t=e[1],n=e[2];if(t in i._publish_reqs){var r=i._publish_reqs[t],o=r[0],a=(r[1],new h(n));o.resolve(a),delete i._publish_reqs[t]}else i._protocol_violation("PUBLISHED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.PUBLISHED]=i._process_PUBLISHED,i._process_PUBLISH_ERROR=function(e){var t=e[2];if(t in i._publish_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._publish_reqs[t],o=r[0];r[1];o.reject(n),delete i._publish_reqs[t]}else i._protocol_violation("PUBLISH-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.PUBLISH]=i._process_PUBLISH_ERROR,i._process_EVENT=function(e){var t=e[1];if(t in i._subscriptions)for(var n=e[2],r=e[3],o=e[4]||[],s=e[5]||{},l=new u(n,r.publisher,r.topic),c=i._subscriptions[t],f=0;f<c.length;++f)try{c[f].handler(o,s,l)}catch(p){a.debug("Exception raised in event handler",p)}else i._protocol_violation("EVENT received for non-subscribed subscription ID "+t)},i._MESSAGE_MAP[g.EVENT]=i._process_EVENT,i._process_REGISTERED=function(e){var t=e[1],n=e[2];if(t in i._register_reqs){var r=i._register_reqs[t],o=r[0],a=r[1],s=r[2],l=r[3],u=new d(a,s,l,i,n);i._registrations[n]=u,o.resolve(u),delete i._register_reqs[t]}else i._protocol_violation("REGISTERED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.REGISTERED]=i._process_REGISTERED,i._process_REGISTER_ERROR=function(e){var t=e[2];if(t in i._register_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._register_reqs[t],o=r[0];o.reject(n),delete i._register_reqs[t]}else i._protocol_violation("REGISTER-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.REGISTER]=i._process_REGISTER_ERROR,i._process_UNREGISTERED=function(e){var t=e[1];if(t in i._unregister_reqs){var n=i._unregister_reqs[t],r=n[0],o=n[1];o.id in i._registrations&&delete i._registrations[o.id],o.active=!1,r.resolve(),delete i._unregister_reqs[t]}else i._protocol_violation("UNREGISTERED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.UNREGISTERED]=i._process_UNREGISTERED,i._process_UNREGISTER_ERROR=function(e){var t=e[2];if(t in i._unregister_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._unregister_reqs[t],o=r[0];r[1];o.reject(n),delete i._unregister_reqs[t]}else i._protocol_violation("UNREGISTER-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.UNREGISTER]=i._process_UNREGISTER_ERROR,i._process_RESULT=function(e){var t=e[1];if(t in i._call_reqs){var n=e[2],r=e[3]||[],o=e[4]||{},a=null;r.length>1||Object.keys(o).length>0?a=new c(r,o):r.length>0&&(a=r[0]);var s=i._call_reqs[t],l=s[0],u=s[1];n.progress?u&&u.receive_progress&&l.notify(a):(l.resolve(a),delete i._call_reqs[t])}else i._protocol_violation("CALL-RESULT received for non-pending request ID "+t)},i._MESSAGE_MAP[g.RESULT]=i._process_RESULT,i._process_CALL_ERROR=function(e){var t=e[2];if(t in i._call_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._call_reqs[t],o=r[0];r[1];o.reject(n),delete i._call_reqs[t]}else i._protocol_violation("CALL-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.CALL]=i._process_CALL_ERROR,i._process_INVOCATION=function(e){var t=e[1],n=e[2],r=e[3];if(n in i._registrations){var a=i._registrations[n].endpoint,s=e[4]||[],u=e[5]||{},p=null;r.receive_progress&&(p=function(e,n){var r=[g.YIELD,t,{progress:!0}];e=e||[],n=n||{};var o=Object.keys(n).length;(e.length||o)&&(r.push(e),o&&r.push(n)),i._send_wamp(r)});var d=new l(r.caller,p,r.procedure);o.call(a,s,u,d).then(function(e){var n=[g.YIELD,t,{}];if(e instanceof c){var r=Object.keys(e.kwargs).length;(e.args.length||r)&&(n.push(e.args),r&&n.push(e.kwargs))}else n.push([e]);i._send_wamp(n)},function(e){var n=[g.ERROR,g.INVOCATION,t,{}];if(e instanceof f){n.push(e.error);var r=Object.keys(e.kwargs).length;(e.args.length||r)&&(n.push(e.args),r&&n.push(e.kwargs))}else n.push("wamp.error.runtime_error"),n.push([e]);i._send_wamp(n)})}else i._protocol_violation("INVOCATION received for non-registered registration ID "+t)},i._MESSAGE_MAP[g.INVOCATION]=i._process_INVOCATION,i._socket.onmessage=function(e){var t=e[0];if(i._id)if(t===g.GOODBYE){if(!i._goodbye_sent){var n=[g.GOODBYE,{},"wamp.error.goodbye_and_out"];i._send_wamp(n)}i._id=null,i._realm=null,i._features=null;var r=e[1],l=e[2];i.onleave&&i.onleave(l,r)}else if(t===g.ERROR){var u=e[1];u in i._MESSAGE_MAP[g.ERROR]?i._MESSAGE_MAP[t][u](e):i._protocol_violation("unexpected ERROR message with request_type "+u)}else t in i._MESSAGE_MAP?i._MESSAGE_MAP[t](e):i._protocol_violation("unexpected message type "+t);else if(t===g.WELCOME){i._id=e[1];var c=e[2];if(i._features={},c.roles.broker&&(i._features.subscriber={},i._features.publisher={},c.roles.broker.features)){for(var f in s.publisher.features)i._features.publisher[f]=s.publisher.features[f]&&c.roles.broker.features[f];for(var f in s.subscriber.features)i._features.subscriber[f]=s.subscriber.features[f]&&c.roles.broker.features[f]}if(c.roles.dealer&&(i._features.caller={},i._features.callee={},c.roles.dealer.features)){for(var f in s.caller.features)i._features.caller[f]=s.caller.features[f]&&c.roles.dealer.features[f];for(var f in s.callee.features)i._features.callee[f]=s.callee.features[f]&&c.roles.dealer.features[f]}i.onjoin&&i.onjoin(e[2])}else if(t===g.ABORT){var r=e[1],l=e[2];i.onleave&&i.onleave(l,r)}else if(t===g.CHALLENGE)if(i._onchallenge){var p=e[1],d=e[2];o.call(i._onchallenge,i,p,d).then(function(e){var t=[g.AUTHENTICATE,e,{}];i._send_wamp(t)},function(e){a.debug("onchallenge() raised:",e);var t=[g.ABORT,{message:"sorry, I cannot authenticate (onchallenge handler raised an exception)"},"wamp.error.cannot_authenticate"];i._send_wamp(t),i._socket.close(1e3)})}else{a.debug("received WAMP challenge, but no onchallenge() handler set");var e=[g.ABORT,{message:"sorry, I cannot authenticate (no onchallenge handler set)"},"wamp.error.cannot_authenticate"];i._send_wamp(e),i._socket.close(1e3)}else i._protocol_violation("unexpected message type "+t)},"performance"in e&&"now"in performance?i._created=performance.now():i._created=Date.now()};Object.defineProperty(m.prototype,"defer",{get:function(){return this._defer}}),Object.defineProperty(m.prototype,"id",{get:function(){return this._id}}),Object.defineProperty(m.prototype,"realm",{get:function(){return this._realm}}),Object.defineProperty(m.prototype,"isOpen",{get:function(){return null!==this.id}}),Object.defineProperty(m.prototype,"features",{get:function(){return this._features}}),Object.defineProperty(m.prototype,"subscriptions",{get:function(){for(var e=Object.keys(this._subscriptions),t=[],n=0;n<e.length;++n)t.push(this._subscriptions[e[n]]);return t}}),Object.defineProperty(m.prototype,"registrations",{get:function(){for(var e=Object.keys(this._registrations),t=[],n=0;n<e.length;++n)t.push(this._registrations[e[n]]);return t}}),m.prototype.log=function(){var t=this;if("console"in e){var n=null;if(t._id&&t._created){var r=null;r="performance"in e&&"now"in performance?performance.now()-t._created:Date.now()-t._created,n="WAMP session "+t._id+" on '"+t._realm+"' at "+Math.round(1e3*r)/1e3+" ms"}else n="WAMP session";if("group"in console){console.group(n);for(var o=0;o<arguments.length;o+=1)console.log(arguments[o]);console.groupEnd()}else{for(var a=[n+": "],o=0;o<arguments.length;o+=1)a.push(arguments[o]);console.log.apply(console,a)}}},m.prototype.join=function(e,t,n){i.assert("string"==typeof e,"Session.join: <realm> must be a string"),i.assert(!t||Array.isArray(t),"Session.join: <authmethods> must be an array []"),i.assert(!n||"string"==typeof n,"Session.join: <authid> must be a string");var r=this;if(r.isOpen)throw"session already open";r._goodbye_sent=!1,r._realm=e;var o={};o.roles=s,t&&(o.authmethods=t),n&&(o.authid=n);var a=[g.HELLO,e,o];r._send_wamp(a)},m.prototype.leave=function(e,t){i.assert(!e||"string"==typeof e,"Session.leave: <reason> must be a string"),i.assert(!t||"string"==typeof t,"Session.leave: <message> must be a string");var n=this;if(!n.isOpen)throw"session not open";e||(e="wamp.close.normal");var r={};t&&(r.message=t);var o=[g.GOODBYE,r,e];n._send_wamp(o),n._goodbye_sent=!0},m.prototype.call=function(e,t,n,o){i.assert("string"==typeof e,"Session.call: <procedure> must be a string"),i.assert(!t||Array.isArray(t),"Session.call: <args> must be an array []"),i.assert(!n||n instanceof Object,"Session.call: <kwargs> must be an object {}"),i.assert(!o||o instanceof Object,"Session.call: <options> must be an object {}");var a=this;if(!a.isOpen)throw"session not open";var s=r(),l=a._defer();a._call_reqs[s]=[l,o];var u=[g.CALL,s,o||{},a.resolve(e)];return t&&(u.push(t),n&&u.push(n)),a._send_wamp(u),l.promise.then?l.promise:l},m.prototype.publish=function(e,t,n,o){i.assert("string"==typeof e,"Session.publish: <topic> must be a string"),i.assert(!t||Array.isArray(t),"Session.publish: <args> must be an array []"),i.assert(!n||n instanceof Object,"Session.publish: <kwargs> must be an object {}"),i.assert(!o||o instanceof Object,"Session.publish: <options> must be an object {}");var a=this;if(!a.isOpen)throw"session not open";var s=o&&o.acknowledge,l=null,u=r();s&&(l=a._defer(),a._publish_reqs[u]=[l,o]);var c=[g.PUBLISH,u,o||{},a.resolve(e)];return t&&(c.push(t),n&&c.push(n)),a._send_wamp(c),l?l.promise.then?l.promise:l:void 0},m.prototype.subscribe=function(e,t,n){i.assert("string"==typeof e,"Session.subscribe: <topic> must be a string"),i.assert("function"==typeof t,"Session.subscribe: <handler> must be a function"),i.assert(!n||n instanceof Object,"Session.subscribe: <options> must be an object {}");var o=this;if(!o.isOpen)throw"session not open";var a=r(),s=o._defer();o._subscribe_reqs[a]=[s,e,t,n];var l=[g.SUBSCRIBE,a];return n?l.push(n):l.push({}),l.push(o.resolve(e)),o._send_wamp(l),s.promise.then?s.promise:s},m.prototype.register=function(e,t,n){i.assert("string"==typeof e,"Session.register: <procedure> must be a string"),i.assert("function"==typeof t,"Session.register: <endpoint> must be a function"),i.assert(!n||n instanceof Object,"Session.register: <options> must be an object {}");var o=this;if(!o.isOpen)throw"session not open";var a=r(),s=o._defer();o._register_reqs[a]=[s,e,t,n];var l=[g.REGISTER,a];return n?l.push(n):l.push({}),l.push(o.resolve(e)),o._send_wamp(l),s.promise.then?s.promise:s},m.prototype.unsubscribe=function(e){i.assert(e instanceof p,"Session.unsubscribe: <subscription> must be an instance of class autobahn.Subscription");var t=this;if(!t.isOpen)throw"session not open";if(!(e.active&&e.id in t._subscriptions))throw"subscription not active";var n=t._subscriptions[e.id],o=n.indexOf(e);if(-1===o)throw"subscription not active";n.splice(o,1),e.active=!1;var a=t._defer();if(n.length)a.resolve(!1);else{var s=r();t._unsubscribe_reqs[s]=[a,e.id];var l=[g.UNSUBSCRIBE,s,e.id];t._send_wamp(l)}return a.promise.then?a.promise:a},m.prototype.unregister=function(e){i.assert(e instanceof d,"Session.unregister: <registration> must be an instance of class autobahn.Registration");var t=this;if(!t.isOpen)throw"session not open";if(!(e.active&&e.id in t._registrations))throw"registration not active";var n=r(),o=t._defer();t._unregister_reqs[n]=[o,e];var a=[g.UNREGISTER,n,e.id];return t._send_wamp(a),o.promise.then?o.promise:o},m.prototype.prefix=function(e,t){i.assert("string"==typeof e,"Session.prefix: <prefix> must be a string"),i.assert(!t||"string"==typeof t,"Session.prefix: <uri> must be a string or falsy");var n=this;t?n._prefixes[e]=t:e in n._prefixes&&delete n._prefixes[e]},m.prototype.resolve=function(e){i.assert("string"==typeof e,"Session.resolve: <curie> must be a string");var t=this,n=e.indexOf(":");if(n>=0){var r=e.substring(0,n);if(r in t._prefixes)return t._prefixes[r]+"."+e.substring(n+1);throw"cannot resolve CURIE prefix '"+r+"'"}return e},t.Session=m,t.Invocation=l,t.Event=u,t.Result=c,t.Error=f,t.Subscription=p,t.Registration=d,t.Publication=h}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(36),o=n(308),a=n(313),i=n(165),s=n(312),l=window.btoa||n(307);e.exports=function(e,t,u){var c=u.data,f=u.headers;r.isFormData(c)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(!window.XDomainRequest||"withCredentials"in p||s(u.url)||(p=new window.XDomainRequest),u.auth){var d=u.auth.username||"",h=u.auth.password||"";f.Authorization="Basic "+l(d+":"+h)}if(p.open(u.method.toUpperCase(),o(u.url,u.params,u.paramsSerializer),!0),p.timeout=u.timeout,p.onload=function(){if(p){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r=-1!==["text",""].indexOf(u.responseType||"")?p.responseText:p.response,o={data:i(r,n,u.transformResponse),status:p.status,statusText:p.statusText,headers:n,config:u};(p.status>=200&&p.status<300||!("status"in p)&&p.responseText?e:t)(o),p=null}},r.isStandardBrowserEnv()){var g=n(310),m=u.withCredentials||s(u.url)?g.read(u.xsrfCookieName):void 0;m&&(f[u.xsrfHeaderName]=m)}if("setRequestHeader"in p&&r.forEach(f,function(e,t){"undefined"==typeof c&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)}),u.withCredentials&&(p.withCredentials=!0),u.responseType)try{p.responseType=u.responseType}catch(v){if("json"!==p.responseType)throw v}r.isArrayBuffer(c)&&(c=new DataView(c)),p.send(c)}},function(e,t,n){"use strict";var r=n(36);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){return(t-e)*n+e}function i(e,t,n){var r=(n-e[0])/(t[0]-e[0]);return[a(e[1],t[1],r),a(e[2],t[2],r),a(e[3],t[3],r),255]}function s(e,t){return[e[t].x,e[t].r,e[t].g,e[t].b]}function l(e,t){return e.x-t.x}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(316),f=r(c),p=n(15),d=r(p),h="LookupTable.change",g=[];for(var m in f["default"].lookuptables)g.push(m);var v=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];o(this,e),this.name=t,this.scalarRange=[0,1],this.delta=1,this.controlPoints=null,this.colorTableSize=256,this.colorTable=null,this.colorNaN=[0,0,0,0],this.setPreset("spectralflip"),this.discrete=n,this.scale=1,this.build()}return u(e,[{key:"getName",value:function(){return this.name}},{key:"getPresets",value:function(){return g}},{key:"setPreset",value:function(e){this.colorTable=null,this.controlPoints=[];for(var t=f["default"].lookuptables[e].controlpoints,n=t.length,r=0;n>r;r++)this.controlPoints.push({x:t[r].x,r:t[r].r,g:t[r].g,b:t[r].b});this.build(),this.emit(h,{change:"preset",lut:this})}},{key:"updateControlPoints",value:function(e){this.colorTable=null,this.controlPoints=[];for(var t=e.length,n=0;t>n;n++)this.controlPoints.push({x:e[n].x,r:e[n].r,g:e[n].g,b:e[n].b});this.build(),this.emit(h,{change:"controlPoints",lut:this})}},{key:"setColorForNaN",value:function(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0],t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],r=arguments.length<=3||void 0===arguments[3]?0:arguments[3];this.colorNaN=[e,t,n,r]}},{key:"getColorForNaN",value:function(){return this.colorNaN}},{key:"getScalarRange",value:function(){return[Number(this.scalarRange[0]),Number(this.scalarRange[1])]}},{key:"setScalarRange",value:function(e,t){this.scalarRange=[e,t],this.delta=t-e,this.emit(h,{change:"scalarRange",lut:this})}},{key:"build",value:function(e){var t=0;if(!this.colorTable){if(this.colorTable=[],this.discrete){this.colorTableSize=this.controlPoints.length,this.scale=50;for(var n=0;n<this.colorTableSize;n++){var r=this.controlPoints[n];this.colorTable.push([r.r,r.g,r.b,255])}}else{this.scale=1;for(var n=0;n<this.colorTableSize;n++){var o=n/(this.colorTableSize-1),a=s(this.controlPoints,t),l=s(this.controlPoints,t+1);o>l[0]&&(t+=1,a=s(this.controlPoints,t),l=s(this.controlPoints,t+1)),this.colorTable.push(i(a,l,o))}}e&&this.emit(h,{change:"controlPoints",lut:this})}}},{key:"setNumberOfColors",value:function(e){this.colorTableSize=e,this.colorTable=null,this.build(),this.emit(h,{change:"numberOfColors",lut:this})}},{key:"getNumberOfControlPoints",value:function(){return this.controlPoints?this.controlPoints.length:0}},{key:"removeControlPoint",value:function(e){return e>0&&e<this.controlPoints.length-1?(this.controlPoints.splice(e,1),this.colorTable=null,this.build(!0),!0):!1}},{key:"getControlPoint",value:function(e){return this.controlPoints[e]}},{key:"updateControlPoint",value:function(e,t){this.controlPoints[e]=t;var n=t.x;this.controlPoints.sort(l),this.colorTable=null,this.build(!0);for(var r=0;r<this.controlPoints.length;r++)if(this.controlPoints[r].x===n)return r;return 0}},{key:"addControlPoint",value:function(e){this.controlPoints.push(e);var t=e.x;this.controlPoints.sort(l),this.colorTable=null,this.build(!0);for(var n=0;n<this.controlPoints.length;n++)if(this.controlPoints[n].x===t)return n;return-1}},{key:"drawToCanvas",value:function(e){for(var t=this.colorTable,n=this.scale*t.length,r=e.getContext("2d"),o=r.getImageData(0,0,n,1),a=0;n>a;a++){var i=Math.floor(a/this.scale);o.data[4*a+0]=Math.floor(255*t[i][0]),o.data[4*a+1]=Math.floor(255*t[i][1]),o.data[4*a+2]=Math.floor(255*t[i][2]),o.data[4*a+3]=255}r.putImageData(o,0,0)}},{key:"getColor",value:function(e){if(isNaN(e))return this.colorNaN;var t=Math.floor(this.colorTableSize*(e-this.scalarRange[0])/this.delta);return 0>t?this.colorTable[0]:t>=this.colorTableSize?this.colorTable[this.colorTable.length-1]:this.colorTable[t]}},{key:"destroy",value:function(){this.off()}},{key:"onChange",value:function(e){return this.on(h,e)}}]),e}();t["default"]=v,d["default"].mixInto(v)},function(e,t){"use strict";function n(e){return 0===e.size?"-1":e.size<4?e.size.toString():"list-1"===e.widget?"1":6===e.size?e.name.toLowerCase().indexOf("bound")?"3x2":e.name.toLowerCase().indexOf("range")?"3x2":(console.log("What is the layout for",e),"2x3"):(console.log("Could not find layout for",e),"NO_LAYOUT")}function r(e){return"proxy"===e.type?"string":e.type}function o(e){if(e.values){if(Array.isArray(e.values)){var t=function(){var t={};return e.values.forEach(function(e){t[e]=e}),{v:t}}();if("object"===("undefined"==typeof t?"undefined":s(t)))return t.v}if("proxy"===e.type){var n={};for(var r in e.values)n[r]=r;return n}return e.values}return e.range?{range:e.range}:{}}function a(e,t){l[t.widget]||console.log("No propType for",t);var a=t.depends?t.depends.split(":"):null,i=a?Boolean(Number(a.pop())):!0,u=a?a.pop():null,c=a?a.join(":"):null,f=[t.name,t.doc].concat(e.value).join(" ").toLowerCase();return{show:function(e){if(c&&void 0!==e.properties[c])return e.properties[c][0]===u?i:!i;if(e.filter&&e.filter.length){var n=function(){var t=e.filter.toLowerCase().split(" "),n=!0;return t.forEach(function(e){n=n&&-1!==f.indexOf(e)}),{v:n}}();if("object"===("undefined"==typeof n?"undefined":s(n)))return n.v}return!!e.advanced||!t.advanced},ui:{propType:l[t.widget]||t.widget,label:t.name,help:t.doc,noEmpty:!0,layout:n(t),type:r(t),domain:o(t),componentLabels:[],size:t.size},data:{id:[e.id,e.name].join(":"),value:[].concat(e.value),size:t.size}}}function i(e){return e.properties.map(function(t,n){return a(t,e.ui[n])})}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.proxyPropToProp=a,t.proxyToProps=i;var l={textfield:"Cell",slider:"Slider","list-n":"Enum","list-1":"Enum",checkbox:"Checkbox",textarea:"Cell"};t["default"]={proxyToProps:i,proxyPropToProp:a}},function(e,t){"use strict";function n(e,t,n){var r;return function(){var o=this,a=arguments,i=function(){r=null,n||e.apply(o,a)},s=n&&!r;clearTimeout(r),r=setTimeout(i,t),s&&e.apply(o,a)}}Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=n,t["default"]={debounce:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(18),s=r(i),l=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?"image/jpeg":arguments[0],n=arguments.length<=1||void 0===arguments[1]?3:arguments[1];o(this,e),this.format=t,this.padding=n,this.counter=0,this.bgCanvas=null,this.imageToDecode=null}return a(e,[{key:"exportImage",value:function(e){var t=new XMLHttpRequest,n={},r=Number(this.counter++).toString();if(e.canvas&&e.arguments){for(;r.length<this.padding;)r="0"+r;n.arguments=e.arguments,n.image=e.canvas.toDataURL(this.format),n.arguments.__=r,t.open("POST","/export",!0),t.responseType="text",t.setRequestHeader("Content-Type","application/json"),t.onload=function(e){200===t.status},t.onerror=function(t){console.log("error export",e.arguments)},t.send(JSON.stringify(n))}}},{key:"updateMetadata",value:function(e){-1!==e.image.indexOf("blob:")&&(this.bgCanvas||(this.bgCanvas=new s["default"](100,100)),this.imageToDecode||(this.imageToDecode=new Image),this.imageToDecode.src=e.image,this.bgCanvas.size(this.imageToDecode.width,this.imageToDecode.height),this.bgCanvas.get2DContext().drawImage(this.imageToDecode,0,0),e.image=this.bgCanvas.toDataURL("image/png"));var t=new XMLHttpRequest;t.open("POST","/update",!0),t.responseType="text",t.setRequestHeader("Content-Type","application/json"),t.onload=function(e){200===t.status},t.onerror=function(e){console.log("error export",e)},t.send(JSON.stringify(e))}},{key:"extractCanvasRegion",value:function(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?"image/png":arguments[3];return this.bgCanvas||(this.bgCanvas=new s["default"](100,100)),this.bgCanvas.size(n[0],n[1]),this.bgCanvas.get2DContext().drawImage(e,t[0],t[1],t[2],t[3],0,0,n[0],n[1]),this.bgCanvas.toDataURL(r)}}]),e}();t["default"]=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(15),s=r(i),l=function(){function e(){o(this,e)}return a(e,[{key:"destroy",value:function(){this.off()}}]),e}();t["default"]=l,s["default"].mixInto(l)},function(e,t){"use strict";function n(e){return Number.isInteger(parseInt(e,10))}function r(e){return!isNaN(parseFloat(e))}function o(e){return"string"==typeof e||e instanceof String}function a(e){return"boolean"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.integer=n,t["double"]=r,t.string=o,t["boolean"]=a,t["default"]={integer:n,"int":n,"double":r,dbl:r,"float":r,string:o,str:o,"boolean":a,bool:a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(15),s=r(i),l="model.change",u=function(){function e(t){var n=this,r=t.size,a=void 0===r?1:r,i=t.colors,s=void 0===i?["#cccccc"]:i,u=t.lookupTable,c=void 0===u?null:u,f=t.scalars,p=void 0===f?[]:f;for(o(this,e),this.size=a,this.scalars=p,this.lookupTable=c,this.colors=s,c&&!function(){var e=function(e){var t=Math.floor(255*e[0]),n=Math.floor(255*e[1]),r=Math.floor(255*e[2]);return"rgb("+t+","+n+","+r+")"},t=function(t,r){for(var o=0;o<n.size;o++){var a=n.lookupTable.getColor(n.scalars[o]);n.colors[o]=e(a)}r&&n.emit(l,n)};n.lutChangeSubscription=n.lookupTable.onChange(t),t()}(),this.opacities=[];this.opacities.length<this.size;)this.opacities.push(-1);this.updateOpacities=function(e){for(var t=!1,r=0;r<n.size;r++)t=t||n.opacities[r]!==e[r],n.opacities[r]=e[r];t&&n.emit(l,n)},this.resetOpacities=function(){for(var e=1/n.size,t=0,r=!1,o=0;o<n.size;o++)t+=e,r=r||n.opacities[o]!==t,n.opacities[o]=t;r&&n.emit(l,n)},this.resetOpacities()}return a(e,[{key:"getOpacities",value:function(){return this.opacities}},{key:"getColors",value:function(){return this.colors}},{key:"onChange",value:function(e){return this.on(l,e)}},{key:"destroy",value:function(){this.off(),this.lutChangeSubscription.unsubscribe(),this.lutChangeSubscription=null}}]),e}();t["default"]=u,s["default"].mixInto(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(15),s=r(i),l="launcher.process.ready",u="launcher.process.stopped",c="launcher.info.connection",f="launcher.error",p=[],d=function(){function e(t){o(this,e),this.endPoint=t}return a(e,[{key:"start",value:function(e){var t=this,n=new XMLHttpRequest,r=this.endPoint;n.open("POST",r,!0),n.responseType="json",n.onload=function(e){var r=n.response;return 200!==n.status||r.error?void t.emit(f,r):(p.push(r),void t.emit(l,r))},n.onerror=function(e){t.emit(f,n.response)},n.send(JSON.stringify(e))}},{key:"fetchConnection",value:function(e){var t=this,n=new XMLHttpRequest,r=[this.endPoint,e].join("/");n.open("GET",r,!0),n.responseType="json",n.onload=function(e){return 200===t.status?void t.emit(c,n.response):void t.emit(f,n.response)},n.onerror=function(e){t.emit(f,n.response)},n.send()}},{key:"stop",value:function(e){var t=this,n=new XMLHttpRequest,r=[this.endPoint,e.id].join("/");n.open("DELETE",r,!0),n.responseType="json",n.onload=function(e){if(200===t.status){var r=n.response;return void t.emit(u,r)}t.emit(f,n.response)},n.onerror=function(e){t.emit(f,n.response)},n.send()}},{key:"listConnections",value:function(){return p}},{key:"onProcessReady",value:function(e){return this.on(l,e)}},{key:"onProcessStopped",value:function(e){return this.on(u,e)}},{key:"onFetch",value:function(e){return this.on(c,e)}},{key:"onError",value:function(e){return this.on(f,e)}},{key:"destroy",value:function(){this.off(),this.endPoint=null}}]),e}();t["default"]=d,s["default"].mixInto(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){var t=e.indexOf(":"),n=e.substring(0,t); -if("ws"===n||"wss"===n)return{type:"websocket",url:e};if("http"===n||"https"===n)return{type:"longpoll",url:e,request_timeout:3e5};throw"Unknown protocol ("+n+") for url ("+e+"). Unable to create transport object."}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(286),l=r(s),u=n(15),c=r(u),f="connection.ready",p="connection.close",d=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?"vtkweb-secret":arguments[1];o(this,e),this.urls=t,this.secret=n,this.connection=null}return i(e,[{key:"connect",value:function(){for(var e=this,t=[].concat(this.urls),n=[],r=0;r<t.length;r+=1){var o=t[r];try{var i=a(o);n.push(i)}catch(s){console.error(s)}}this.connection=new l["default"].Connection({max_retries:0,transports:n,realm:"vtkweb",authmethods:["wampcra"],authid:"vtkweb",onchallenge:function(t,n,r){if("wampcra"===n){var o=l["default"].auth_cra.derive_key(e.secret,"salt123");return l["default"].auth_cra.sign(o,r.challenge)}throw"don't know how to authenticate using '"+n+"'"}}),this.connection.onopen=function(t,n){e.session=t,e.details=n,e.emit(f,e)},this.connection.onclose=function(){return e.emit(p,e),e.connection=null,!0},this.connection.open()}},{key:"onConnectionReady",value:function(e){return this.on(f,e)}},{key:"onConnectionClose",value:function(e){return this.on(p,e)}},{key:"getSession",value:function(){return this.session}},{key:"destroy",value:function(){var e=arguments.length<=0||void 0===arguments[0]?10:arguments[0];this.off(),this.session&&this.session.call("application.exit.later",[e]),this.connection&&this.connection.close(),this.connection=null}}]),e}();t["default"]=d,c["default"].mixInto(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(15),s=r(i),l="image.ready",u=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?100:arguments[1],r=arguments.length<=2||void 0===arguments[2]?50:arguments[2],a=arguments.length<=3||void 0===arguments[3]?"image/jpeg":arguments[3];o(this,e),this.endpoint=t,this.ws=null,this.textMode=!0,this.metadata=null,this.activeURL=null,this.fps=0,this.mimeType=a,this.lastTime=+new Date,this.view_id=-1,this.stillQuality=n,this.interactiveQuality=r,this.lastImageReadyEvent=null}return a(e,[{key:"enableView",value:function(e){this.ws.send(JSON.stringify({view_id:this.view_id,enabled:e}))}},{key:"startInteractiveQuality",value:function(){this.ws.send(JSON.stringify({view_id:this.view_id,quality:this.interactiveQuality}))}},{key:"stopInteractiveQuality",value:function(){this.ws.send(JSON.stringify({view_id:this.view_id,quality:this.stillQuality}))}},{key:"updateQuality",value:function(){var e=arguments.length<=0||void 0===arguments[0]?100:arguments[0],t=arguments.length<=1||void 0===arguments[1]?50:arguments[1];this.stillQuality=e,this.interactiveQuality=t}},{key:"connect",value:function(e){var t=this,n=e.view_id,r=void 0===n?-1:n,o=e.size,a=void 0===o?[500,500]:o;this.ws||(this.ws=new WebSocket(this.endpoint),this.textMode=!0,this.view_id=r,this.width=a[0],this.height=a[1],this.ws.onopen=function(){t.ws.send(JSON.stringify({view_id:r}))},this.ws.onmessage=function(e){if(t.textMode)t.metadata=JSON.parse(e.data);else{var n=new Blob([e.data],{type:t.mimeType});t.activeURL&&(window.URL.revokeObjectURL(t.activeURL),t.activeURL=null),t.activeURL=URL.createObjectURL(n);var r=+new Date;t.fps=Math.floor(1e4/(r-t.lastTime))/10,t.lastTime=r,t.lastImageReadyEvent={url:t.activeURL,fps:t.fps,metadata:t.metadata},t.emit(l,t.lastImageReadyEvent)}t.textMode=!t.textMode})}},{key:"destroy",value:function(){this.off(),this.ws&&(this.ws.close(),this.ws=null)}},{key:"onImageReady",value:function(e){return this.on(l,e)}},{key:"getLastImageReadyEvent",value:function(){return this.lastImageReadyEvent}}]),e}();t["default"]=u,s["default"].mixInto(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(15),s=r(i),l={NONE:0,ALT:1,META:2,SHIFT:4,CTRL:8},u="vtk.web.interaction",c=function(){function e(t){var n=this,r=arguments.length<=1||void 0===arguments[1]?100:arguments[1],a=arguments.length<=2||void 0===arguments[2]?100:arguments[2];o(this,e),this.client=t,this.width=r,this.height=a,this.listeners={drag:function(e){var t={view:-1,buttonLeft:!e.isFinal,buttonMiddle:!1,buttonRight:!1,shiftKey:e.modifier&l.SHIFT,ctrlKey:e.modifier&l.CTRL,altKey:e.modifier&l.ALT,metaKey:e.modifier&l.META,x:e.relative.x/n.width,y:1-e.relative.y/n.height};e.isFirst?t.action="down":e.isFinal?t.action="up":t.action="move",n.emit(u,"up"!==t.action),n.client&&n.client.MouseHandler.interaction(t)},zoom:function(e){var t={view:-1,buttonLeft:!1,buttonMiddle:!1,buttonRight:!e.isFinal,shiftKey:!1,ctrlKey:!1,altKey:!1,metaKey:!1,x:e.relative.x/n.width,y:1-(e.relative.y+e.deltaY)/n.height};e.isFirst?t.action="down":e.isFinal?t.action="up":t.action="move",n.emit(u,"up"!==t.action),n.client&&n.client.MouseHandler.interaction(t)}}}return a(e,[{key:"getListeners",value:function(){return this.listeners}},{key:"updateSize",value:function(e,t){this.width=e,this.height=t}},{key:"onInteraction",value:function(e){return this.on(u,e)}},{key:"destroy",value:function(){this.client=null,this.listeners=null}}]),e}();t["default"]=c,s["default"].mixInto(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(56),s=r(i),l=n(37),u=function(){function e(t,n){var r=this,a=arguments.length<=2||void 0===arguments[2]?null:arguments[2],i=arguments.length<=3||void 0===arguments[3]?!0:arguments[3];o(this,e),this.size=(0,l.getSize)(t),this.container=t,this.canvas=document.createElement("canvas"),this.image=new Image,this.fps="",this.drawFPS=i,this.subscriptions=[],this.imageProvider=n,this.image.onload=function(){r.ctx.drawImage(r.image,0,0),r.drawFPS&&(r.ctx.textBaseline="top",r.ctx.textAlign="left",r.ctx.fillText(r.fps,5,5))},this.container.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.ctx.font="30px Arial",a&&(this.mouseHandler=new s["default"](this.canvas),this.mouseHandler.attach(a)),this.subscriptions.push(n.onImageReady(function(e,t){r.image.src=e.url,r.fps=e.fps+" fps"})),this.subscriptions.push((0,l.onSizeChange)(function(){r.size=(0,l.getSize)(t),r.canvas.setAttribute("width",r.size.clientWidth),r.canvas.setAttribute("height",r.size.clientHeight)})),(0,l.startListening)()}return a(e,[{key:"destroy",value:function(){for(;this.subscriptions.length;)this.subscriptions.pop().unsubscribe();this.mouseHandler&&(this.mouseHandler.destroy(),this.mouseHandler=null),this.container=null,this.imageProvider=null}}]),e}();t["default"]=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=r(o),i=n(370),s=r(i),l=n(84),u=r(l),c=n(3),f=r(c),p=n(279),d=r(p);t["default"]=f["default"].createClass({displayName:"FloatImageControl",propTypes:{model:f["default"].PropTypes.object.isRequired},getInitialState:function(){return this.attachListener(this.props.model),{change:!1,x:this.props.model.dimensions[0]/2,y:this.props.model.dimensions[1]/2}},componentWillReceiveProps:function(e){var t=this.props.model,n=e.model;t!==n&&(this.detachListener(),this.attachListener(n),this.setState({change:!this.state.change}))},attachListener:function(e){var t=this;this.changeSubscription=e.onProbeChange(function(e,n){t.forceUpdate()})},detachListener:function(){this.changeSubscription&&(this.changeSubscription.unsubscribe(),this.changeSubscription=null)},updateLight:function(e){this.props.model.setLight(255-e.target.value),this.setState({change:!this.state.change})},onProbeChange:function(e){var t=e.target.name,n=Number(e.target.value),r={x:this.state.x,y:this.state.y};r[t]=n,this.setState(r),this.props.model.getTimeChart(r.x,r.y)},toggleProbe:function(e){this.props.model.getTimeProbe().enabled=!!e,this.props.model.getTimeProbe().enabled&&this.props.model.getTimeChart(),this.setState({change:!this.state.change}),this.props.model.getTimeProbe().triggerChange(),this.props.model.render()},render:function(){var e=this.props.model,t=e.getTimeProbe(),n=e.dimensions[0],r=e.dimensions[1];return f["default"].createElement("div",{className:d["default"].container},f["default"].createElement(a["default"],{title:"Scene"},e.getLayers().map(function(t,n){return f["default"].createElement(s["default"],{key:n,item:t,model:e})}),f["default"].createElement("div",{className:d["default"].item},f["default"].createElement("div",{className:d["default"].label},"Light"),f["default"].createElement("div",{className:d["default"].actions},f["default"].createElement("input",{className:d["default"].lightSlider,type:"range",min:"0",max:"128",value:255-e.getLight(),onChange:this.updateLight})))),f["default"].createElement(a["default"],{title:"Time probe",open:t.enabled,subtitle:t.enabled?t.value:"",visible:e.isMultiView(),onChange:this.toggleProbe},f["default"].createElement("div",{className:d["default"].item},f["default"].createElement("div",{className:d["default"].label},"X"),f["default"].createElement("div",{className:d["default"].actions},f["default"].createElement(u["default"],{step:1,min:0,max:n,key:"x",value:this.state.x,name:"x",onChange:this.onProbeChange}))),f["default"].createElement("div",{className:d["default"].item},f["default"].createElement("div",{className:d["default"].label},"Y"),f["default"].createElement("div",{className:d["default"].actions},f["default"].createElement(u["default"],{step:1,min:0,max:r,key:"y",value:this.state.y,name:"y",onChange:this.onProbeChange})))))}})},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=r(o),i=n(196),s=r(i),l=n(43),u=r(l),c=n(120),f=r(c),p=n(3),d=r(p),h=n(706),g=r(h);t["default"]=d["default"].createClass({displayName:"LightControl",propTypes:{light:d["default"].PropTypes.object.isRequired},getInitialState:function(){return this.props.light.getLightProperties().lightTerms},onLightTermsChange:function(t,n){var r=this,o={};o[n]=t,this.setState(o),e(function(){r.props.light.setLightProperties({lightTerms:o})})},onLightPositionChange:function(e){this.props.light.setLightProperties({lightPosition:e})},toggleLight:function(e){this.props.light.setLightingEnabled(e)},render:function(){var e=d["default"].createElement(u["default"],{key:"enable-light-button",onChange:this.toggleLight,value:this.props.light.getLightingEnabled()});return d["default"].createElement(a["default"],{title:"Light Properties",subtitle:e},d["default"].createElement("section",{className:g["default"].container},d["default"].createElement(s["default"],{onChange:this.onLightPositionChange,width:114,height:114,hideXY:!0}),d["default"].createElement("section",{className:g["default"].controls},d["default"].createElement("div",{className:g["default"].inputRow},d["default"].createElement("label",null,"Ambient"),d["default"].createElement(f["default"],{className:g["default"].property,step:.05,min:0,max:1,key:"ka",value:this.state.ka,name:"ka",onChange:this.onLightTermsChange})),d["default"].createElement("div",{className:g["default"].inputRow},d["default"].createElement("label",null,"Diffuse"),d["default"].createElement(f["default"],{className:g["default"].property,step:.05,min:0,max:1,key:"kd",value:this.state.kd,name:"kd",onChange:this.onLightTermsChange})),d["default"].createElement("div",{className:g["default"].inputRow},d["default"].createElement("label",null,"Specular"),d["default"].createElement(f["default"],{className:g["default"].property,step:.05,min:0,max:1,key:"ks",value:this.state.ks,name:"ks",onChange:this.onLightTermsChange})),d["default"].createElement("div",{className:g["default"].inputRow},d["default"].createElement("label",null,"Alpha"),d["default"].createElement(f["default"],{className:g["default"].property,step:1,min:0,max:100,key:"alpha",value:this.state.alpha,name:"alpha",onChange:this.onLightTermsChange})))))}})}).call(t,n(66).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=r(o),i=n(198),s=r(i),l=n(3),u=r(l);t["default"]=u["default"].createClass({displayName:"MultiViewControl",propTypes:{renderer:u["default"].PropTypes.object},getInitialState:function(){return{renderMethod:"",layout:""}},componentWillReceiveProps:function(e){if(!this.props.renderer&&e.renderer){var t=e.renderer;this.layoutSubscription=t.onLayoutChange(this.onLayoutChangeCallback),this.renderMethodSubscription=t.onActiveViewportChange(this.onActiveViewportCallback),this.setState({renderMethod:t.getActiveRenderMethod(),layout:t.getActiveLayout()})}},componentWillUnmount:function(){this.layoutSubscription&&(this.layoutSubscription.unsubscribe(),this.layoutSubscription=null),this.renderMethodSubscription&&(this.renderMethodSubscription.unsubscribe(),this.renderMethodSubscription=null)},onLayoutChange:function(e){this.props.renderer.setLayout(e)},onRenderMethodChange:function(e){var t=e.target.value;this.props.renderer.setRenderMethod(t)},onLayoutChangeCallback:function(e,t){this.setState({layout:e})},onActiveViewportCallback:function(e,t){this.setState({renderMethod:e.name})},render:function(){var e=this.props.renderer,t=[];return e&&e.getRenderMethods().map(function(e){t.push(u["default"].createElement("option",{key:e,value:e},e))}),u["default"].createElement("div",null,u["default"].createElement(a["default"],{title:"Layout"},u["default"].createElement(s["default"],{onChange:this.onLayoutChange})),u["default"].createElement(a["default"],{title:"Viewport"},u["default"].createElement("select",{style:{width:"100%"},ref:"select",value:this.state.renderMethod,onChange:this.onRenderMethodChange},t)))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=r(o),i=n(3),s=r(i),l=n(202),u=r(l);t["default"]=s["default"].createClass({displayName:"PixelOperatorControl",propTypes:{operator:s["default"].PropTypes.object.isRequired},getInitialState:function(){return{operation:this.props.operator.getOperation()}},componentWillReceiveProps:function(e){this.state.operation!==e.operator.getOperation()&&this.setState({operation:e.operator.getOperation()})},updateOperation:function(e){this.setState({operation:e}),this.props.operator.setOperation(e)},render:function(){return s["default"].createElement(a["default"],{title:"Pixel Operation"},s["default"].createElement(u["default"],{value:this.state.operation,onChange:this.updateOperation}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=r(o),i=n(85),s=r(i),l=n(86),u=r(l),c=n(43),f=r(c),p=n(121),d=r(p),h=n(3),g=r(h),m=n(707),v=r(m);t["default"]=g["default"].createClass({displayName:"QueryDataModelControl",propTypes:{handleExploration:g["default"].PropTypes.bool,model:g["default"].PropTypes.object},mixins:[s["default"],u["default"]],getDefaultProps:function(){return{handleExploration:!1}},toggleExploration:function(e){this.props.model.exploreQuery(e,!0,!this.props.handleExploration)},render:function(){var e=g["default"].createElement(f["default"],{key:"explore-button",icon:v["default"].exploreIcon,onChange:this.toggleExploration,value:this.props.model.exploreState.animate});return g["default"].createElement(a["default"],{title:"Parameters",key:"QueryDataModelWidget_parent",visible:this.props.model.originalData.arguments_order.length>0,subtitle:e},g["default"].createElement(d["default"],{key:"QueryDataModelWidget",ref:"QueryDataModelWidget",model:this.props.model}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=r(o),i=n(119),s=r(i),l=n(43),u=r(l),c=n(83),f=r(c),p=n(3),d=r(p),h=n(708),g=r(h);t["default"]=d["default"].createClass({displayName:"VolumeControl",propTypes:{computation:d["default"].PropTypes.object.isRequired,equalizer:d["default"].PropTypes.object.isRequired,intensity:d["default"].PropTypes.object,lookupTable:d["default"].PropTypes.object.isRequired},componentWillMount:function(){var e=this;this.equalizerSubscription=this.props.equalizer.onChange(function(){e.forceUpdate()}),this.intensitySubscription=this.props.intensity.onChange(function(){e.forceUpdate()}),this.computationSubscription=this.props.intensity.onChange(function(){e.forceUpdate()})},componentWillUnmount:function(){this.equalizerSubscription&&(this.equalizerSubscription.unsubscribe(),this.equalizerSubscription=null),this.intensitySubscription&&(this.intensitySubscription.unsubscribe(),this.intensitySubscription=null),this.computationSubscription&&(this.computationSubscription.unsubscribe(),this.computationSubscription=null)},render:function(){var e=this.props.equalizer,t=this.props.lookupTable,n=d["default"].createElement(u["default"],{key:"toggle-intensity",onChange:this.props.intensity.toggleState,value:this.props.intensity.getState()}),r=d["default"].createElement(u["default"],{key:"reset",icon:g["default"].undoIcon,toggle:!1,onChange:this.props.equalizer.resetOpacities,value:!0}),o=d["default"].createElement(u["default"],{key:"toggle-gpu",icon:g["default"].mobileIcon,onChange:this.props.computation.toggleState,value:!this.props.computation.getState()});return d["default"].createElement("div",null,d["default"].createElement(a["default"],{title:"LookupTable",key:"LookupTableWidget_parent",subtitle:n},d["default"].createElement(f["default"],{key:"LookupTableWidget",ref:"LookupTableWidget",originalRange:t.originalRange,lookupTable:t.lookupTable,lookupTableManager:t.lookupTableManager})),d["default"].createElement(a["default"],{title:"Opacity Control",subtitle:[o,r]},d["default"].createElement(s["default"],{ref:"EqualizerWidget",key:"Equalizer",layers:e.getOpacities(),onChange:e.updateOpacities,colors:e.getColors(),spacing:5})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(82),a=r(o),i=n(373),s=r(i),l=n(3),u=r(l),c=n(43),f=r(c),p=n(65),d=r(p);t["default"]=u["default"].createClass({displayName:"CellProperty",propTypes:{data:u["default"].PropTypes.object.isRequired,help:u["default"].PropTypes.string,onChange:u["default"].PropTypes.func,show:u["default"].PropTypes.func,ui:u["default"].PropTypes.object.isRequired,viewData:u["default"].PropTypes.object},mixins:[a["default"]],valueChange:function(e,t){var n=this.state.data;null===t?n.value.splice(e,1):n.value[e]=t,this.setState({data:n}),this.props.onChange&&this.props.onChange(n)},addValue:function(){var e=this.state.data,t=e.value;switch(t.length){case 0:t.push(0);break;case 1:t.push(t[0]);break;default:var n=Number(t[t.length-1]),r=Number(t[t.length-2]),o=n+(n-r);!Number.isNaN(o)&&Number.isFinite(o)?t.push(o):t.push(t[t.length-1])}this.setState({data:e}),this.props.onChange&&this.props.onChange(e)},render:function(){return u["default"].createElement("div",{className:this.props.show(this.props.viewData)?d["default"].container:d["default"].hidden},u["default"].createElement("div",{className:d["default"].header},u["default"].createElement("strong",null,this.props.ui.label),u["default"].createElement("span",null,u["default"].createElement("i",{className:"-1"===this.props.ui.layout?d["default"].plusIcon:d["default"].hidden,onClick:this.addValue}),u["default"].createElement(f["default"],{icon:d["default"].helpIcon,value:this.state.helpOpen,toggle:!!this.props.ui.help,onChange:this.helpToggled}))),u["default"].createElement("div",{className:d["default"].inputBlock},u["default"].createElement("table",{className:d["default"].inputTable},(0,s["default"])(this.props.data,this.props.ui,this.valueChange))),u["default"].createElement("div",{className:this.state.helpOpen?d["default"].helpBox:d["default"].hidden,dangerouslySetInnerHTML:{__html:this.props.ui.help}}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(82),a=r(o),i=n(374),s=r(i),l=n(3),u=r(l),c=n(43),f=r(c),p=n(65),d=r(p);t["default"]=u["default"].createClass({displayName:"CheckboxProperty",propTypes:{data:u["default"].PropTypes.object.isRequired,help:u["default"].PropTypes.string,name:u["default"].PropTypes.string,onChange:u["default"].PropTypes.func,show:u["default"].PropTypes.func,ui:u["default"].PropTypes.object.isRequired,viewData:u["default"].PropTypes.object},mixins:[a["default"]],valueChange:function(e,t){var n=this.state.data;null===e?n.value=t:n.value[e]=t,this.setState({data:n}),this.props.onChange&&this.props.onChange(n)},render:function(){var e=this,t=function(){if(Array.isArray(e.props.data.value)){for(var t=[],n=0;n<e.props.data.value.length;n++)t.push(u["default"].createElement(s["default"],{value:!!e.props.data.value[n],label:e.props.ui.componentLabels[n],key:e.props.data.id+"_"+n,onChange:e.valueChange}));return t}return u["default"].createElement(s["default"],{value:!!e.props.data.value,label:e.props.ui.componentLabels[0],onChange:e.valueChange})};return u["default"].createElement("div",{className:this.props.show(this.props.viewData)?d["default"].container:d["default"].hidden},u["default"].createElement("div",{className:d["default"].header},u["default"].createElement("strong",null,this.props.ui.label),u["default"].createElement("span",null,u["default"].createElement(f["default"],{icon:d["default"].helpIcon,value:this.state.helpOpen,toggle:!!this.props.ui.help,onChange:this.helpToggled}))),u["default"].createElement("div",{className:d["default"].inputBlock},t()),u["default"].createElement("div",{className:this.state.helpOpen?d["default"].helpBox:d["default"].hidden,dangerouslySetInnerHTML:{__html:this.props.ui.help}}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(112),s=r(i),l=n(82),u=r(l),c=n(43),f=r(c),p=n(65),d=r(p),h=n(710),g=r(h);t["default"]=a["default"].createClass({displayName:"EnumProperty",propTypes:{data:a["default"].PropTypes.object.isRequired,help:a["default"].PropTypes.string,name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,show:a["default"].PropTypes.func,ui:a["default"].PropTypes.object.isRequired,viewData:a["default"].PropTypes.object},mixins:[u["default"]],valueChange:function(e){var t=this.state.data;if(Array.isArray(this.state.data.value)){for(var n=[],r=0;r<e.target.options.length;r++){var o=e.target.options.item(r);o.selected&&n.push(o.value)}t.value=n.map(s["default"][this.props.ui.type])}else null===e.target.value?t.value=null:t.value=[s["default"][this.props.ui.type](e.target.value)];this.setState({data:t}),this.props.onChange&&this.props.onChange(t)},render:function(){var e=this,t=-1===this.props.ui.size,n=function(){var n=[];t||e.props.ui.noEmpty||n.push(a["default"].createElement("option",{key:"empty-value",value:null}));for(var r in e.props.ui.domain)n.push(a["default"].createElement("option",{value:e.props.ui.domain[r],key:e.props.data.id+"_"+r},r));return n};return a["default"].createElement("div",{className:this.props.show(this.props.viewData)?d["default"].container:d["default"].hidden},a["default"].createElement("div",{className:d["default"].header},a["default"].createElement("strong",null,this.props.ui.label),a["default"].createElement("span",null,a["default"].createElement(f["default"],{icon:d["default"].helpIcon,value:this.state.helpOpen,toggle:!!this.props.ui.help,onChange:this.helpToggled}))),a["default"].createElement("div",{className:d["default"].inputBlock},a["default"].createElement("select",{className:t?g["default"].inputMultiSelect:g["default"].input,value:t?this.props.data.value:this.props.data.value[0],defaultValue:null,onChange:this.valueChange,multiple:t},n())),a["default"].createElement("div",{className:this.state.helpOpen?d["default"].helpBox:d["default"].hidden,dangerouslySetInnerHTML:{__html:this.props.ui.help}}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(82),a=r(o),i=n(3),s=r(i),l=n(376),u=r(l),c=n(43),f=r(c),p=n(65),d=r(p);t["default"]=s["default"].createClass({displayName:"SliderProperty",propTypes:{data:s["default"].PropTypes.object.isRequired,help:s["default"].PropTypes.string,name:s["default"].PropTypes.string,onChange:s["default"].PropTypes.func,show:s["default"].PropTypes.func,ui:s["default"].PropTypes.object.isRequired,viewData:s["default"].PropTypes.object},mixins:[a["default"]],valueChange:function(e,t){var n=this.state.data;null===e?n.value=t:n.value[e]=t,this.setState({data:n}),this.props.onChange&&this.props.onChange(n)},render:function(){var e=this,t=function(){if(Array.isArray(e.props.data.value)){for(var t=[],n=0;n<e.props.data.value.length;n++){var r=e.props.ui.type&&"double"===e.props.ui.type.toLowerCase()?.1:1;t.push(s["default"].createElement(u["default"],{value:e.props.data.value[n],min:e.props.ui.domain.min,max:e.props.ui.domain.max,step:r,idx:n,onChange:e.valueChange,key:e.props.data.id+"_"+n}))}return t}var o=e.props.ui.type&&"double"===e.props.ui.type.toLowerCase()?.1:1;return s["default"].createElement(u["default"],{value:e.props.data.value,min:e.props.ui.domain.min,max:e.props.ui.domain.max,step:o,onChange:e.valueChange})};return s["default"].createElement("div",{className:this.props.show(this.props.viewData)?d["default"].container:d["default"].hidden},s["default"].createElement("div",{className:d["default"].header},s["default"].createElement("strong",null,this.props.ui.label),s["default"].createElement("span",null,s["default"].createElement(f["default"],{icon:d["default"].helpIcon,value:this.state.helpOpen,toggle:!!this.props.ui.help,onChange:this.helpToggled}))),s["default"].createElement("div",{className:d["default"].inputBlock},t()),s["default"].createElement("div",{className:this.state.helpOpen?d["default"].helpBox:d["default"].hidden,dangerouslySetInnerHTML:{__html:this.props.ui.help}}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(22),s=r(i),l=n(37),u=r(l);t["default"]=a["default"].createClass({displayName:"GeometryRenderer",propTypes:{geometryBuilder:a["default"].PropTypes.object},getDefaultProps:function(){return{}},getInitialState:function(){return{width:200,height:200}},componentWillMount:function(){this.sizeSubscription=u["default"].onSizeChange(this.updateDimensions),u["default"].startListening()},componentDidMount:function(){this.props.geometryBuilder&&(this.props.geometryBuilder.configureRenderer(s["default"].findDOMNode(this.refs.canvasRenderer)),this.props.geometryBuilder.render()),this.updateDimensions()},componentDidUpdate:function(e,t){this.updateDimensions()},componentWillUnmount:function(){this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},updateDimensions:function(){var e=s["default"].findDOMNode(this).parentNode,t=u["default"].getSize(e);return!e||this.state.width===t.clientWidth&&this.state.height===t.clientHeight?!1:(this.setState({width:t.clientWidth,height:t.clientHeight}),this.props.geometryBuilder&&this.props.geometryBuilder.updateSize(innerWidth,innerHeight),!0)},resetCamera:function(){this.props.geometryBuilder&&this.props.geometryBuilder.resetCamera()},render:function(){return a["default"].createElement("canvas",{className:"CanvasImageRenderer",ref:"canvasRenderer",width:this.state.width,height:this.state.height})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=this;e.drawToCanvas&&(e.firstRender?(e.firstRender=!1,e.component.resetCamera()):e.drawToCanvas())}function a(){var e=this,t=this.component,n=c["default"].findDOMNode(t.refs.canvasRenderer),r=n.getContext("2d"),o=t.state.width,a=t.state.height,i=e?e.width:500,s=e?e.height:500,l=t.zoom,u=t.center;r.clearRect(0,0,o,a);var f=Math.floor(i*l),p=Math.floor(s*l),d=o*u[0]-f/2,h=a*u[1]-p/2;e.activeArea=[d,h,f,p];try{r.drawImage(e,0,0,i,s,d,h,f,p)}catch(g){console.log("Error in ImageRenderer::drawToCanvasAsImage",g)}}function i(){var e=this,t=this.data,n=this.component,r=c["default"].findDOMNode(n.refs.canvasRenderer),o=r.getContext("2d"),a=n.state.width,i=n.state.height,s=t.outputSize[0],l=t.outputSize[1],u=n.zoom,f=n.center;o.clearRect(0,0,a,i);var p=Math.floor(s*u),d=Math.floor(l*u),h=a*f[0]-p/2,g=i*f[1]-d/2;try{o.drawImage(t.canvas,t.area[0],t.area[1],t.area[2],t.area[3],h,g,p,d),e.activeArea=[h,g,p,d];var m=[p/t.area[2],d/t.area[3]],v=[h,g];t.crosshair&&(o.beginPath(),o.moveTo(v[0]+m[0]*t.crosshair[0],0),o.lineTo(v[0]+m[0]*t.crosshair[0],i),o.moveTo(0,v[1]+m[1]*t.crosshair[1]),o.lineTo(a,v[1]+m[1]*t.crosshair[1]),o.strokeStyle=n.props.crosshairColor,o.lineWidth=1,o.stroke())}catch(_){console.log("Error in ImageRenderer::drawToCanvasAsBuffer",_)}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),l=r(s),u=n(22),c=r(u),f=n(195),p=r(f),d=n(169),h=r(d),g=n(37),m=r(g),v=n(56),_=r(v),y=n(712),b=r(y);t["default"]=l["default"].createClass({displayName:"ImageRenderer",propTypes:{crosshairColor:l["default"].PropTypes.string,imageBuilder:l["default"].PropTypes.object,listener:l["default"].PropTypes.object,maxZoom:l["default"].PropTypes.number,minZoom:l["default"].PropTypes.number,modifiers:l["default"].PropTypes.array,pressRadius:l["default"].PropTypes.number},getDefaultProps:function(){return{minZoom:.1,maxZoom:10,crosshairColor:"#000",modifiers:[0,2],pressRadius:50}},getInitialState:function(){var e=this.props.imageBuilder?this.props.imageBuilder.queryDataModel.originalData.metadata||{}:{},t=e.title||"No title",n=e.description||"No description";return{width:200,height:200,dialog:!1,title:t,description:n}},componentWillMount:function(){var e=this;this.imageToDraw=new Image,this.props.imageBuilder&&(this.imageBuilderSubscription=this.props.imageBuilder.onImageReady(function(t,n){t.url?e.renderImage(t):e.renderCanvas(t)})),this.zoom=1,this.baseZoom=1,this.center=[.5,.5],this.baseCenter=[.5,.5],this.imageToDraw.component=this,this.imageToDraw.onload=o,this.imageToDraw.firstRender=!0,this.sizeSubscription=m["default"].onSizeChange(this.updateDimensions),m["default"].startListening(),document.addEventListener("keydown",this.handleKeyDown),this.sendToServer=!1,this.imageExporter=new h["default"]},componentDidMount:function(){var e=this;this.updateDimensions(),this.imageToDraw.drawToCanvas&&this.imageToDraw.drawToCanvas(),this.mouseHandler=new _["default"](c["default"].findDOMNode(this.refs.canvasRenderer)), -this.props.modifiers&&this.mouseHandler.toggleModifierOnPress(!0,this.props.modifiers),this.mouseHandler.attach({drag:this.dragCallback,zoom:this.zoomCallback,click:this.clickCallback}),this.mouseHandler.on("modifier.change",function(t,n){var r=e.imageToDraw,o=c["default"].findDOMNode(e.refs.canvasRenderer).getContext("2d");o.beginPath(),o.fillStyle="#ffffff",o.lineWidth=5,o.strokeStyle="#000000",o.arc(t.event.relative.x,t.event.relative.y,e.props.pressRadius,0,2*Math.PI,!1),o.fill(),o.stroke(),setTimeout(function(){r.drawToCanvas()},300)})},componentDidUpdate:function(e,t){this.updateDimensions(),this.imageToDraw.drawToCanvas&&this.imageToDraw.drawToCanvas()},componentWillUnmount:function(){document.removeEventListener("keydown",this.handleKeyDown),this.imageBuilderSubscription&&(this.imageBuilderSubscription.unsubscribe(),this.imageBuilderSubscription=null),this.imageToDraw.onload=null,this.imageToDraw.drawToCanvas=null,this.imageToDraw.component=null,this.imageToDraw.data=null,this.imageToDraw=null,this.mouseHandler.destroy(),this.mouseHandler=null,this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},updateDimensions:function(){var e=c["default"].findDOMNode(this).parentNode,t=m["default"].getSize(e);return!e||this.state.width===t.clientWidth&&this.state.height===t.clientHeight?!1:(this.setState({width:t.clientWidth,height:t.clientHeight}),!0)},zoomCallback:function(e,t){var n=!1;if(e.activeArea=this.imageToDraw.activeArea,this.props.listener&&this.props.listener.zoom&&(n=this.props.listener.zoom(e,t)),!n){e.isFirst&&(this.baseZoom=this.zoom);var r=this.baseZoom*e.scale;if(r<this.props.minZoom&&(r=this.props.minZoom),r>this.props.maxZoom&&(r=this.props.maxZoom),this.zoom!==r){var o=this.center[0],a=this.center[1],i=r/this.zoom,s=e.relative.x/this.state.width,l=e.relative.y/this.state.height;this.zoom=r,this.center[0]=s+i*(o-s),this.center[1]=l+i*(a-l),this.imageToDraw.drawToCanvas&&this.imageToDraw.drawToCanvas()}e.isFinal&&(this.baseZoom=this.zoom)}this.baseCenter=[this.center[0],this.center[1]]},dragCallback:function(e,t){var n=!1;if(e.activeArea=this.imageToDraw.activeArea,this.baseZoom=this.zoom,this.props.listener&&this.props.listener.drag&&(n=this.props.listener.drag(e,t)),!n){e.isFirst&&(this.baseCenter=[this.center[0],this.center[1]]);var r=e.deltaX/this.state.width,o=e.deltaY/this.state.height;this.center[0]=this.baseCenter[0]+r,this.center[1]=this.baseCenter[1]+o,e.isFinal&&(this.baseCenter=[this.center[0],this.center[1]]),this.imageToDraw.drawToCanvas&&this.imageToDraw.drawToCanvas()}},clickCallback:function(e,t){e.activeArea=this.imageToDraw.activeArea,this.props.listener&&this.props.listener.click&&this.props.listener.click(e,t)},renderImage:function(e){this.imageToDraw.drawToCanvas=a,this.imageToDraw.src=e.url},renderCanvas:function(e){this.imageToDraw.drawToCanvas=i,this.imageToDraw.data=e,this.imageToDraw.width=e.outputSize[0],this.imageToDraw.height=e.outputSize[1],this.sendToServer&&this.imageExporter.exportImage(e),this.imageToDraw.firstRender?(this.imageToDraw.firstRender=!1,this.resetCamera()):this.imageToDraw.drawToCanvas()},resetCamera:function(){var e=this.state.width,t=this.state.height,n=this.imageToDraw,r=n?n.width:500,o=n?n.height:500;this.zoom=Math.min(e/r,t/o),this.baseZoom=Math.min(e/r,t/o),this.baseCenter=[.5,.5],this.center=[.5,.5],n.drawToCanvas()},recordImages:function(e){this.sendToServer=e},handleKeyDown:function(e){if(82===e.keyCode)this.resetCamera();else if(85===e.keyCode&&!this.state.dialog){var t=c["default"].findDOMNode(this.refs.thumbnail);"CANVAS"===this.imageToDraw.data.canvas.nodeName?this.imageToDraw.data.canvas.width===this.imageToDraw.data.area[2]&&this.imageToDraw.data.canvas.height===this.imageToDraw.data.area[3]?t.src=this.imageToDraw.data.canvas.toDataURL("image/png"):t.src=this.imageExporter.extractCanvasRegion(this.imageToDraw.data.canvas,this.imageToDraw.data.area,this.imageToDraw.data.outputSize):t.src=this.imageToDraw.data.canvas.src,this.setState({dialog:!this.state.dialog})}},updateTitle:function(e){var t=e.target.value;this.setState({title:t})},updateDescription:function(e){var t=e.target.value;this.setState({description:t})},toggleDialog:function(){this.setState({dialog:!this.state.dialog})},updateMetadata:function(){this.setState({dialog:!this.state.dialog}),this.imageExporter.updateMetadata({title:this.state.title,description:this.state.description,image:c["default"].findDOMNode(this.refs.thumbnail).src,path:this.props.imageBuilder.queryDataModel.basepath})},render:function(){return l["default"].createElement("div",{className:b["default"].container},l["default"].createElement("canvas",{className:b["default"].renderer,ref:"canvasRenderer",width:this.state.width,height:this.state.height}),l["default"].createElement("div",{className:this.state.dialog?b["default"].dialog:b["default"].hidden},l["default"].createElement("div",{className:b["default"].inside},l["default"].createElement("img",{ref:"thumbnail",className:b["default"].thumbnail,height:Math.floor(this.state.height/2)}),l["default"].createElement("div",{className:b["default"].metadata,style:{height:Math.floor(this.state.height/2)+"px"}},l["default"].createElement("strong",{className:b["default"].title},l["default"].createElement(p["default"],{html:this.state.title,onChange:this.updateTitle})),l["default"].createElement("div",{className:b["default"].description},l["default"].createElement(p["default"],{html:this.state.description,onChange:this.updateDescription}))),l["default"].createElement("div",{className:b["default"].buttons},l["default"].createElement("button",{className:b["default"].button,onClick:this.toggleDialog},"Cancel"),l["default"].createElement("button",{className:b["default"].button,onClick:this.updateMetadata},"Save")))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(22),s=r(i),l=n(15),u=r(l),c=n(378),f=r(c),p=n(37),d=r(p),h=n(56),g=r(h),m=Object.keys(f["default"]),v="multiview-viewport-active-change",_="multiview-layout-change",y=a["default"].createClass({displayName:"MultiViewRenderer",propTypes:{activeColor:a["default"].PropTypes.string,borderColor:a["default"].PropTypes.string,crosshairColor:a["default"].PropTypes.string,layout:a["default"].PropTypes.string,renderers:a["default"].PropTypes.object,spacing:a["default"].PropTypes.number},getDefaultProps:function(){return{spacing:10,borderColor:"#000000",activeColor:"#0000FF",crosshairColor:"#000000",renderers:{}}},getInitialState:function(){return{width:200,height:200}},componentWillMount:function(){function e(e,n){this.dataToDraw=e,t(this.name)}var t=this.drawViewportByName;this.dragCenter=!1,this.dragInViewport=null,this.center=[.5,.5],this.layout=this.props.layout||"3xT",this.viewports=[];for(var n in this.props.renderers){var r=this.props.renderers[n],o=r.builder,a=r.painter;o&&o.onImageReady(e).context(r),a&&a.onPainterReady(e).context(r),this.viewports.push({name:n,active:!1})}this.sizeSubscription=d["default"].onSizeChange(this.updateDimensions),d["default"].startListening()},componentDidMount:function(){this.updateDimensions(),this.mouseHandler=new g["default"](s["default"].findDOMNode(this.refs.canvasRenderer)),this.mouseHandler.attach({drag:this.dragCallback,click:this.clickCallback,zoom:this.zoomCallback})},componentDidUpdate:function(e,t){this.drawLayout()},componentWillUnmount:function(){this.off(),this.mouseHandler&&(this.mouseHandler.destroy(),this.mouseHandler=null),this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},setLayout:function(e){this.layout=e,this.drawLayout(),this.emit(_,e)},getLayouts:function(){return m},getActiveLayout:function(){return this.layout},setRenderMethod:function(e){var t=this;this.viewports.forEach(function(n){n.active&&(n.name=e,t.emit(v,n))}),this.drawViewportByName(null)},getRenderMethods:function(){return Object.keys(this.props.renderers)},getActiveRenderMethod:function(){return this.viewports.forEach(function(e){return e.active?e.name:void 0}),"No render method"},updateDimensions:function(){var e=s["default"].findDOMNode(this).parentNode,t=d["default"].getSize(e);return!e||this.state.width===t.clientWidth&&this.state.height===t.clientHeight?!1:(this.setState({width:t.clientWidth,height:t.clientHeight}),!0)},dragCallback:function(e,t){var n=this.getViewPort(e);if(!n&&!this.dragInViewport||this.dragCenter)this.dragCenter=!0,this.center[0]=e.relative.x/this.state.width,this.center[1]=e.relative.y/this.state.height,this.drawLayout();else{this.dragInViewport=this.dragInViewport||n;var r=this.props.renderers[this.dragInViewport.name],o=r.builder,a=o?o.getListeners():null;a&&a.drag&&(e.activeArea=this.dragInViewport.activeArea,a.drag(e,t))}e.isFinal&&(this.dragCenter=!1,this.dragInViewport=null)},clickCallback:function(e,t){this.dragCenter=!1,this.dragInViewport=null;var n=this.getViewPort(e);if(n){this.viewports.forEach(function(e){e.active=!1}),n.active=!0;var r=this.props.renderers[n.name],o=r.builder,a=o?o.getListeners():null;a&&a.click&&(e.activeArea=n.activeArea,a.click(e,t)),this.emit(v,n)}this.drawLayout()},zoomCallback:function(e,t){var n=this.getViewPort(e);if(n){var r=this.props.renderers[n.name],o=r.builder,a=o?o.getListeners():null;a&&a.zoom&&(e.activeArea=n.activeArea,a.zoom(e,t))}},getViewPort:function(e){for(var t=this.viewports.length,n=e.relative.x,r=e.relative.y;t--;){var o=this.viewports[t].activeArea||this.viewports[t].region;if(n>=o[0]&&r>=o[1]&&n<=o[0]+o[2]&&r<=o[1]+o[3])return this.viewports[t]}return null},drawViewport:function(e){var t=this.props.renderers[e.name],n=e.region,r=s["default"].findDOMNode(this.refs.canvasRenderer).getContext("2d");if(!(!t||t.builder&&!t.dataToDraw||t.painter&&!t.painter.isReady()))if(t.painter){var o={x:n[0]+2,y:n[1]+2,width:n[2]-4,height:n[3]-4};e.activeArea=[].concat(e.region),t.painter.paint(r,o)}else{var a=this.props.renderers[e.name].dataToDraw,i=n[2]-2,l=n[3]-2,u=a.outputSize[0],c=a.outputSize[1],f=Math.min(i/u,l/c);r.clearRect(n[0]+1,n[1]+1,n[2]-2,n[3]-2);var p=Math.floor(u*f)-2,d=Math.floor(c*f)-2,h=1+n[0]+.5*i-p/2,g=1+n[1]+.5*l-d/2;try{if(r.drawImage(a.canvas,a.area[0],a.area[1],a.area[2],a.area[3],h,g,p,d),a.crosshair){var m=[p/a.area[2],d/a.area[3]],v=[h,g];r.beginPath(),r.moveTo(v[0]+m[0]*a.crosshair[0],g),r.lineTo(v[0]+m[0]*a.crosshair[0],g+d),r.moveTo(h,v[1]+m[1]*a.crosshair[1]),r.lineTo(h+p,v[1]+m[1]*a.crosshair[1]),r.strokeStyle=this.props.crosshairColor,r.lineWidth=1,r.stroke()}e.activeArea=[h,g,p,d]}catch(_){console.log("Error in MultiLayoutRenderer::drawViewport",_)}}},drawViewportByName:function(e){var t=this,n=e?this.props.renderers[e]:null;return n&&n.builder&&!n.dataToDraw?void n.builder.update():void this.viewports.forEach(function(n){n.name!==e&&null!==e||t.drawViewport(n)})},drawLayout:function(){var e=s["default"].findDOMNode(this.refs.canvasRenderer).getContext("2d"),t=e.canvas.width=this.state.width,n=e.canvas.height=this.state.height,r=[this.center[0]*t,this.center[1]*n],o=this.props.spacing,a=f["default"][this.layout](r,o,t,n),i=this.viewports,l=a.length;e.clearRect(0,0,t,n);for(var u=0;l>u;++u){var c=a.shift();u<i.length?i[u].region=c:i.push({name:this.getRenderMethods()[0],region:c,active:!1}),e.beginPath(),e.strokeStyle=i[u].active?this.props.activeColor:this.props.borderColor,e.rect.apply(e,c),e.stroke()}for(;i.length>l;)i.pop();this.drawViewportByName(null)},onActiveViewportChange:function(e){return this.on(v,e)},onLayoutChange:function(e){return this.on(_,e)},render:function(){return a["default"].createElement("canvas",{className:"CanvasMultiImageRenderer",ref:"canvasRenderer",width:this.state.width,height:this.state.height})}});u["default"].mixInto(y),t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.length,r=n*t,o=e[Math.floor(r)],a=e[Math.ceil(r)],i=r-Math.floor(r);return((a-o)*i+o).toFixed(5)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(99),i=r(a),s=n(3),l=r(s),u=n(22),c=r(u),f=n(37),p=r(f),d=n(714),h=r(d);t["default"]=l["default"].createClass({displayName:"LineChartViewer",propTypes:{colors:l["default"].PropTypes.array,cursor:l["default"].PropTypes.number,data:l["default"].PropTypes.any.isRequired,height:l["default"].PropTypes.number,legend:l["default"].PropTypes.bool,width:l["default"].PropTypes.number},getDefaultProps:function(){return{colors:["#e1002a","#417dc0","#1d9a57","#e9bc2f","#9b3880"],height:200,legend:!1,width:200}},getInitialState:function(){return{fieldsColors:{},height:this.props.height/2,legend:this.props.legend,width:this.props.width/2}},componentWillMount:function(){this.xPosition=0,this.sizeSubscription=p["default"].onSizeChange(this.updateDimensions),p["default"].startListening()},componentDidMount:function(){this.updateDimensions()},componentDidUpdate:function(e,t){this.drawChart()},componentWillUnmount:function(){this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},toggleLegend:function(){this.setState({legend:!this.state.legend})},updateDimensions:function(){this.xPosition=0;var e=c["default"].findDOMNode(this).parentNode,t=p["default"].getSize(e);return!e||this.state.width===t.clientWidth&&this.state.height===t.clientHeight?!1:(this.setState({width:t.clientWidth,height:t.clientHeight}),!0)},onMove:function(e){this.xPosition=e.clientX-(e.target.getClientRects()[0].x||e.target.getClientRects()[0].left),this.isMounted()&&this.state.legend&&this.drawChart()},drawChart:function(){if(this.props.data){var e=c["default"].findDOMNode(this.refs.canvas).getContext("2d"),t=this.props.data.fields,n=t.length,r={},a=this.xPosition/e.canvas.width;e.canvas.width=this.state.width,e.canvas.height=this.state.height,e.clearRect(0,0,e.canvas.width,e.canvas.height);for(var s=0;n>s;++s)this.drawField(e,s,t[s].data,t[s].range),r[t[s].name]=this.props.colors[s],this.refs.hasOwnProperty(t[s].name)&&(c["default"].findDOMNode(this.refs[t[s].name]).innerHTML=o(t[s].data,a));(0,i["default"])(this.state.fieldsColors,r)||this.setState({fieldsColors:r}),this.state.legend&&(c["default"].findDOMNode(this.refs.xValueLabel).innerHTML=((this.props.data.xRange[1]-this.props.data.xRange[0])*a+this.props.data.xRange[0]).toFixed(5),e.beginPath(),e.lineWidth=1,e.strokeStyle="#000000",e.moveTo(this.xPosition,0),e.lineTo(this.xPosition,e.canvas.height),e.stroke()),void 0!==this.props.cursor&&(e.beginPath(),e.lineWidth=1,e.strokeStyle="#0000FF",e.moveTo(this.props.cursor*e.canvas.width,0),e.lineTo(this.props.cursor*e.canvas.width,e.canvas.height),e.stroke())}},drawField:function(e,t,n,r){function o(e){var t=n[e];return t=t>a?i>t?t:i:a,l-Math.floor((t-a)*d)}for(var a=Number.MAX_VALUE,i=Number.MIN_VALUE,s=e.canvas.width,l=e.canvas.height,u=n.length,c=n.length,f=new Uint16Array(c);c--;){var p=n[c];a=Math.min(a,p),i=Math.max(i,p),f[c]=Math.floor(s*(c/u))}r&&(a=r[0],i=r[1]);var d=l/(i-a);e.beginPath(),e.lineWidth=1,e.strokeStyle=this.props.colors[t],e.moveTo(f[0],o(0));for(var h=1;u>h;h++)isNaN(n[h])?u>h+1&&!isNaN(n[h+1])&&e.moveTo(f[h+1],o(h+1)):e.lineTo(f[h],o(h));return e.stroke(),[a,i]},render:function(){var e=[];for(var t in this.state.fieldsColors){var n=this.state.fieldsColors[t];e.push(l["default"].createElement("li",{className:h["default"].legendItem,key:t},l["default"].createElement("i",{className:h["default"].legendItemColor,style:{color:n}}),l["default"].createElement("b",null,t),l["default"].createElement("span",{className:h["default"].legendItemValue,ref:t})))}return l["default"].createElement("div",{className:h["default"].container},l["default"].createElement("canvas",{className:h["default"].canvas,ref:"canvas",onMouseMove:this.onMove,width:this.state.width,height:this.state.height}),l["default"].createElement("div",{className:this.state.legend?h["default"].legend:h["default"].hidden},l["default"].createElement("div",{className:h["default"].legendBar},l["default"].createElement("span",{className:h["default"].legendText,ref:"xValueLabel"}),l["default"].createElement("i",{className:h["default"].toggleLegendButton,onClick:this.toggleLegend})),l["default"].createElement("ul",{className:h["default"].legendContent},e)),l["default"].createElement("div",{className:this.state.legend?h["default"].hidden:h["default"].legend,onClick:this.toggleLegend},l["default"].createElement("div",{className:h["default"].legendButtons},l["default"].createElement("i",{className:h["default"].toggleLegendButton}))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(716),s=r(i);t["default"]=a["default"].createClass({displayName:"ActionListWidget",propTypes:{list:a["default"].PropTypes.array.isRequired,onClick:a["default"].PropTypes.func},processClick:function(e){for(var t=e.target;!t.dataset.name;)t=t.parentNode;this.props.onClick&&this.props.onClick(t.dataset.name,t.dataset.action,t.dataset.user)},render:function(){var e=this,t=[];return this.props.list.forEach(function(n){t.push(a["default"].createElement("li",{className:s["default"].item,key:n.name,title:n.name,"data-name":n.name,"data-action":n.action||"default","data-user":n.data||"",onClick:e.processClick},a["default"].createElement("i",{className:n.icon}),n.name))}),a["default"].createElement("ul",{className:s["default"].list},t)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(22),s=r(i),l=n(746),u=r(l),c=n(719),f=r(c);t["default"]=a["default"].createClass({displayName:"ColorPickerWidget",propTypes:{color:a["default"].PropTypes.array,onChange:a["default"].PropTypes.func,swatch:a["default"].PropTypes.string},getDefaultProps:function(){return{color:[0,0,0],swatch:u["default"]}},getInitialState:function(){return this.image=new Image,this.image.src=this.props.swatch,{swatch:this.props.swatch,color:this.props.color,preview:!1,originalColor:[this.props.color[0],this.props.color[1],this.props.color[2]]}},componentDidMount:function(){var e=s["default"].findDOMNode(this.refs.canvas).getContext("2d");e.fillStyle="rgb("+this.state.originalColor.join(",")+")",e.fillRect(0,0,1,1)},componentDidUpdate:function(e,t){if(e.color[0]===this.props.color[0]&&e.color[1]===this.props.color[1]&&e.color[2]===this.props.color[2]||this.setState({originalColor:this.props.color}),!this.state.preview){var n=s["default"].findDOMNode(this.refs.canvas).getContext("2d");n.fillStyle="rgb("+this.state.originalColor.join(",")+")",n.fillRect(0,0,1,1)}},showColor:function(e){var t=this.state.originalColor,n=s["default"].findDOMNode(this.refs.canvas).getContext("2d");if(e.preventDefault(),"mouseleave"===e.type)return n.fillStyle="rgb("+t.join(",")+")",n.fillRect(0,0,1,1),void this.setState({color:[t[0],t[1],t[2]],preview:!1});var r=s["default"].findDOMNode(this.refs.swatch),o=r.getBoundingClientRect(),a=this.image.width/o.width,i=a*(e.pageX-o.left),l=a*(e.pageY-o.top);n.drawImage(r,i,l,1,1,0,0,1,1),t=n.getImageData(0,0,1,1).data,"click"===e.type?(this.setState({color:[t[0],t[1],t[2]],preview:!1}),this.props.onChange&&this.props.onChange(t)):this.setState({color:[t[0],t[1],t[2]],preview:!0})},rgbColorChange:function(e){var t=this.state.color,n=e.target.value,r=Number(e.target.dataset.colorIdx);t[r]=n;var o=s["default"].findDOMNode(this.refs.canvas).getContext("2d");o.fillStyle="rgb("+t.join(",")+")",o.fillRect(0,0,1,1),this.setState({color:[t[0],t[1],t[2]],preview:!1}),this.props.onChange&&this.props.onChange(t)},updateColor:function(e){this.setState({originalColor:e})},updateSwatch:function(e){this.image.src=e,this.setState({swatch:e})},render:function(){return a["default"].createElement("div",{className:f["default"].container},a["default"].createElement("div",{className:f["default"].activeColor},a["default"].createElement("canvas",{className:f["default"].colorCanvas,ref:"canvas",width:"1",height:"1"}),a["default"].createElement("input",{className:f["default"].colorRGB,type:"number",min:"0",max:"255",value:this.state.color[0],"data-color-idx":"0",onChange:this.rgbColorChange}),a["default"].createElement("input",{className:f["default"].colorRGB,type:"number",min:"0",max:"255",value:this.state.color[1],"data-color-idx":"1",onChange:this.rgbColorChange}),a["default"].createElement("input",{className:f["default"].colorRGB,type:"number",min:"0",max:"255",value:this.state.color[2],"data-color-idx":"2",onChange:this.rgbColorChange})),a["default"].createElement("div",{className:f["default"].swatch},a["default"].createElement("img",{ref:"swatch",className:f["default"].swatchImage,width:"100%",src:this.state.swatch,onClick:this.showColor,onMouseMove:this.showColor,onMouseLeave:this.showColor})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(390),s=r(i),l=n(159),u=r(l);t["default"]=a["default"].createClass({displayName:"CompositePipelineWidget",propTypes:{model:a["default"].PropTypes.object.isRequired},componentDidMount:function(){this.attachListener(this.props.model)},componentWillReceiveProps:function(e){var t=this.props.model,n=e.model;t!==n&&(this.detachListener(),this.attachListener(n))},componentWillUnmount:function(){this.detachListener()},attachListener:function(e){var t=this;this.pipelineSubscription=e.onChange(function(e,n){t.forceUpdate()})},detachListener:function(){this.pipelineSubscription&&(this.pipelineSubscription.unsubscribe(),this.pipelineSubscription=null)},render:function(){var e=this.props.model,t=e.getPipelineDescription();return a["default"].createElement("div",{className:u["default"].container},t.map(function(t,n){return a["default"].createElement(s["default"],{key:n,item:t,layer:t.ids.join(""),model:e})}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(22),s=r(i);t["default"]=a["default"].createClass({displayName:"ContentEditableWidget",propTypes:{blurOnEnter:a["default"].PropTypes.bool,className:a["default"].PropTypes.string,html:a["default"].PropTypes.string,onBlur:a["default"].PropTypes.func,onChange:a["default"].PropTypes.func},getDefaultProps:function(){return{blurOnEnter:!1,className:""}},shouldComponentUpdate:function(e){return e.html!==s["default"].findDOMNode(this).innerHTML},componentDidUpdate:function(){this.props.html!==s["default"].findDOMNode(this).innerHTML&&(s["default"].findDOMNode(this).innerHTML=this.props.html)},setFocus:function(){var e=document.createRange();e.selectNodeContents(s["default"].findDOMNode(this));var t=window.getSelection();t.removeAllRanges(),t.addRange(e)},blurEditable:function(e){13===e.charCode&&(s["default"].findDOMNode(this).blur(),window.getSelection().removeAllRanges(),this.props.onBlur&&this.props.onBlur())},emitChange:function(e){var t=s["default"].findDOMNode(this).innerHTML;this.props.onChange&&t!==this.lastHtml&&(e.target={value:t},this.props.onChange(e)),this.lastHtml=t,"blur"===e.type&&this.props.onBlur&&this.props.onBlur()},render:function(){return a["default"].createElement("div",{className:this.props.className,onInput:this.emitChange,onBlur:this.emitChange,onKeyPress:this.props.blurOnEnter?this.blurEditable:function(){},contentEditable:!0,dangerouslySetInnerHTML:{__html:this.props.html}})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(99),a=r(o),i=n(56),s=r(i),l=n(3),u=r(l),c=n(22),f=r(c),p=n(720),d=r(p);t["default"]=u["default"].createClass({displayName:"Coordinate2DWidget",propTypes:{height:u["default"].PropTypes.number,hideXY:u["default"].PropTypes.bool,onChange:u["default"].PropTypes.func,width:u["default"].PropTypes.number,x:u["default"].PropTypes.number,y:u["default"].PropTypes.number},getDefaultProps:function(){return{width:50,height:50,x:0,y:0}},getInitialState:function(){return{x:this.props.x,y:this.props.y}},componentDidMount:function(){this.drawControl(),this.mouseHandler=new s["default"](f["default"].findDOMNode(this.refs.canvas)),this.mouseHandler.attach({click:this.pointerAction,mousedown:this.pointerAction,mouseup:this.pointerAction,drag:this.pointerAction})},componentDidUpdate:function(e,t){this.drawControl()},componentWillUnmount:function(){this.mouseHandler.destroy()},coordinates:function(){return{x:this.state.x,y:this.state.y}},updateCoordinates:function(e){var t=this,n={},r=!1;["x","y"].forEach(function(o){e.hasOwnProperty(o)&&(n[o]=t.limitValue(parseFloat(e[o])),r=!0)}),r&&this.setState(n)},limitValue:function(e){return Math.max(-1,Math.min(e,1))},updateX:function(e){var t=parseFloat(e.target.value);this.setState({x:t})},updateY:function(e){var t=parseFloat(e.target.value);this.setState({y:t})},pointerAction:function(e){var t=f["default"].findDOMNode(this.refs.canvas).getBoundingClientRect(),n=e.pointers[0].clientX-t.left-this.props.width/2,r=-(e.pointers[0].clientY-t.top-this.props.height/2);this.setState({x:this.limitValue(n/(this.props.width/2)),y:this.limitValue(r/(this.props.height/2))})},drawControl:function(){var e=f["default"].findDOMNode(this.refs.canvas).getContext("2d"),t=e.canvas.height,n=e.canvas.width;if(e.clearRect(0,0,n,t),this.drawPlus("lightgrey"),this.drawPlus("black",{x:this.state.x*(this.props.width/2),y:-this.state.y*(this.props.height/2)}),this.props.onChange){var r={x:this.state.x,y:this.state.y};(0,a["default"])(r,this.lastSharedState)||(this.lastSharedState=r,this.props.onChange(this.lastSharedState))}},drawPlus:function(e,t){var n=f["default"].findDOMNode(this.refs.canvas).getContext("2d"),r=n.canvas.height,o=n.canvas.width,a=5;void 0===t?t={x:o/2,y:r/2}:(t.x+=this.props.width/2,t.y+=this.props.height/2),n.beginPath(),n.lineWidth=2,n.strokeStyle=e,n.moveTo(t.x,t.y-a),n.lineTo(t.x,t.y+a),n.stroke(),n.moveTo(t.x-a,t.y),n.lineTo(t.x+a,t.y),n.stroke()},render:function(){return u["default"].createElement("section",{className:d["default"].container},u["default"].createElement("canvas",{ref:"canvas",className:d["default"].canvas,width:this.props.width,height:this.props.height}),u["default"].createElement("section",{className:this.props.hideXY?d["default"].hidden:d["default"].inputContainer},u["default"].createElement("label",{className:d["default"].inputLabel}," x: "),u["default"].createElement("input",{className:d["default"].input,type:"number",onChange:this.updateX,min:"-1.0",max:"1.0",step:"0.01",value:this.state.x}),u["default"].createElement("br",null),u["default"].createElement("label",{className:d["default"].inputLabel}," y: "),u["default"].createElement("input",{className:d["default"].input,type:"number",onChange:this.updateY,min:"-1.0",max:"1.0",step:"0.01",value:this.state.y})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(722),s=r(i);t["default"]=a["default"].createClass({displayName:"DropDownWidget",propTypes:{field:a["default"].PropTypes.string,fields:a["default"].PropTypes.array,onChange:a["default"].PropTypes.func},getInitialState:function(){return{open:!1,field:this.props.field||this.props.fields[0]}},toggleDropdown:function(){this.setState({open:!this.state.open})},setField:function(e){this.setState({field:e.target.innerHTML}),this.props.onChange(e.target.innerHTML)},getField:function(e){return this.state.field},render:function(){var e=this;return a["default"].createElement("div",{className:s["default"].container,onClick:this.toggleDropdown},this.state.field,a["default"].createElement("ul",{className:this.state.open?s["default"].list:s["default"].hidden},this.props.fields.map(function(t){return"__internal"===t?null:t===e.state.field?a["default"].createElement("li",{className:s["default"].selectedItem,key:t,onClick:e.setField},t):a["default"].createElement("li",{className:s["default"].item,key:t,onClick:e.setField},t)})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(727),s=r(i);t["default"]=a["default"].createClass({displayName:"LayoutsWidget",propTypes:{onChange:a["default"].PropTypes.func},onLayoutChange:function(e){var t=e.currentTarget.getAttribute("name");this.props.onChange&&this.props.onChange(t)},render:function(){return a["default"].createElement("section",null,a["default"].createElement("table",{className:s["default"].table,name:"2x2",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"1x2",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"2x1",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"1x1",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"3xL",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{rowSpan:"2",className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"3xT",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{colSpan:"2",className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"3xR",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{rowSpan:"2",className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"3xB",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{colSpan:"2",className:s["default"].td})))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(730),s=r(i);t["default"]=a["default"].createClass({displayName:"PresetListWidget",propTypes:{activeName:a["default"].PropTypes.string,height:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,presets:a["default"].PropTypes.object,visible:a["default"].PropTypes.bool},getDefaultProps:function(){return{activeName:"", -height:"1em",presets:{},visible:!0}},getInitialState:function(){return{activeName:this.props.activeName}},updateActive:function(e){var t=e.target.dataset.name;this.setState({activeName:t}),this.props.onChange&&this.props.onChange(t)},render:function(){var e=this;if(!this.props.presets||!this.props.visible)return null;var t=this.state.activeName,n=this.props.height,r=this.props.presets,o=Object.keys(r);return a["default"].createElement("div",{className:s["default"].container},a["default"].createElement("div",{className:s["default"].bottomPadding}),o.map(function(o){return a["default"].createElement("img",{src:"data:image/png;base64,"+r[o],key:o,style:{height:n},"data-name":o,onClick:e.updateActive,className:o===t?s["default"].activeLine:s["default"].line})}),a["default"].createElement("div",{className:s["default"].bottomPadding}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(137),s=r(i),l=n(118),u=r(l),c=n(167),f=n(732),p=r(f);t["default"]=a["default"].createClass({displayName:"ProxyPropertyGroup",propTypes:{advanced:a["default"].PropTypes.bool,collapsed:a["default"].PropTypes.bool,filter:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,proxy:a["default"].PropTypes.object},getDefaultProps:function(){return{advanced:!1,collapsed:!1}},getInitialState:function(){return{collapsed:this.props.collapsed,changeSet:{},properties:(0,c.proxyToProps)(this.props.proxy)}},componentWillReceiveProps:function(e){var t=this.props.proxy,n=e.proxy;(0,s["default"])(t,n)||this.setState({properties:(0,c.proxyToProps)(n),changeSet:{}})},toggleCollapsedMode:function(){var e=!this.state.collapsed;this.setState({collapsed:e})},valueChange:function(e){var t=this.state.changeSet;t[e.id]=1===e.size&&Array.isArray(e.value)?e.value[0]:e.value,this.setState({changeSet:t}),this.props.onChange&&this.props.onChange(t)},render:function(){var e=this,t={},n={advanced:this.props.advanced,filter:this.props.filter,properties:t},r=Object.keys(this.state.changeSet).length;return this.state.properties.forEach(function(e){t[e.data.id]=e.data.value}),a["default"].createElement("div",{className:p["default"].container},a["default"].createElement("div",{className:p["default"].toolbar,onClick:this.toggleCollapsedMode},a["default"].createElement("i",{className:this.state.collapsed?p["default"].collapedIcon:p["default"].expandedIcon}),a["default"].createElement("span",{className:p["default"].title},this.props.proxy.name),a["default"].createElement("span",{className:r?p["default"].tag:p["default"].emptyTag},a["default"].createElement("i",{className:p["default"].tagBackground}),a["default"].createElement("strong",{className:p["default"].tagCount},r))),a["default"].createElement("div",{className:this.state.collapsed?p["default"].hidden:p["default"].content},this.state.properties.map(function(t){return(0,u["default"])(t,n,e.valueChange)})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),i=r(a),s=n(733),l=r(s);t["default"]=i["default"].createClass({displayName:"ScalarRangeWidget",propTypes:{max:i["default"].PropTypes.number,min:i["default"].PropTypes.number,onApply:i["default"].PropTypes.func,visible:i["default"].PropTypes.bool},getInitialState:function(){return{max:this.props.max||1,min:this.props.min||0}},componentWillReceiveProps:function(e){var t=e.min,n=e.max;this.state.min===t&&this.state.max===n||this.setState({min:t,max:n})},updateRange:function(e){var t=e.target.name,n=e.target.value;!isNaN(parseFloat(n))&&isFinite(n)&&this.setState(o({},t,n))},apply:function(e){var t=this.state,n=t.min,r=t.max,o=e.target.dataset.type;n=Number(n),r=Number(r),this.props.onApply&&this.props.onApply({type:o,min:n,max:r})},render:function(){return this.props.visible?i["default"].createElement("div",{className:l["default"].container},i["default"].createElement("input",{className:l["default"].rangeInput,type:"text",pattern:"-*[0-9]*.*[0-9]*",name:"min",value:this.state.min,onChange:this.updateRange}),i["default"].createElement("input",{className:l["default"].rangeInput,type:"text",pattern:"-*[0-9]*.*[0-9]*",name:"max",value:this.state.max,onChange:this.updateRange}),i["default"].createElement("div",{className:l["default"].actionLine},i["default"].createElement("i",{onClick:this.apply,"data-type":"data",className:l["default"].dataRangeIcon}),i["default"].createElement("i",{onClick:this.apply,"data-type":"time",className:l["default"].timeRangeIcon}),i["default"].createElement("i",{onClick:this.apply,"data-type":"custom",className:l["default"].customRangeIcon}))):null}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(734),s=r(i);t["default"]=a["default"].createClass({displayName:"TextInputWidget",propTypes:{className:a["default"].PropTypes.string,name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,value:a["default"].PropTypes.string},getDefaultProps:function(){return{value:"",className:""}},getInitialState:function(){return{editing:!1,valueRep:this.props.value}},valueChange:function(e){var t=e.target.value;this.setState({editing:!0,valueRep:t})},endEditing:function(){this.setState({editing:!1}),this.props.name?this.props.onChange(this.state.valueRep,this.props.name):this.props.onChange(this.state.valueRep)},render:function(){return a["default"].createElement("div",{className:[s["default"].container,this.props.className].join(" ")},a["default"].createElement("input",{className:s["default"].entry,type:"text",value:this.state.editing?this.state.valueRep:this.props.value,onChange:this.valueChange,onBlur:this.endEditing}),a["default"].createElement("i",{className:this.state.editing?s["default"].editingButton:s["default"].button}))}})},function(e,t,n){var r=n(34),o=n(28),a=n(73);e.exports=function(e){return function(t,n,i){var s,l=r(t),u=o(l.length),c=a(i,u);if(e&&n!=n){for(;u>c;)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c;return!e&&-1}}},function(e,t,n){"use strict";var r=n(8),o=n(40),a=n(93),i=n(38),s=n(95),l=n(39),u=n(70),c=n(124),f=n(216),p=n(59)("id"),d=n(27),h=n(12),g=n(94),m=n(31),v=Object.isExtensible||h,_=m?"_s":"size",y=0,b=function(e,t){if(!h(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!d(e,p)){if(!v(e))return"F";if(!t)return"E";o(e,p,++y)}return"O"+e[p]},w=function(e,t){var n,r=b(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,o){var c=e(function(e,a){s(e,c,t),e._i=r.create(null),e._f=void 0,e._l=void 0,e[_]=0,void 0!=a&&u(a,n,e[o],e)});return a(c.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[_]=0},"delete":function(e){var t=this,n=w(t,e);if(n){var r=n.n,o=n.p;delete t._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),t._f==n&&(t._f=r),t._l==n&&(t._l=o),t[_]--}return!!n},forEach:function(e){for(var t,n=i(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!w(this,e)}}),m&&r.setDesc(c.prototype,"size",{get:function(){return l(this[_])}}),c},def:function(e,t,n){var r,o,a=w(e,t);return a?a.v=n:(e._l=a={i:o=b(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=a),r&&(r.n=a),e[_]++,"F"!==o&&(e._i[o]=a)),e},getEntry:w,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),g(t)}}},function(e,t,n){var r=n(70),o=n(88);e.exports=function(e){return function(){if(o(this)!=e)throw TypeError(e+"#toJSON isn't generic");var t=[];return r(this,!1,t.push,t),t}}},function(e,t,n){"use strict";var r=n(40),o=n(93),a=n(13),i=n(12),s=n(95),l=n(70),u=n(87),c=n(27),f=n(59)("weak"),p=Object.isExtensible||i,d=u(5),h=u(6),g=0,m=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},_=function(e,t){return d(e.a,function(e){return e[0]===t})};v.prototype={get:function(e){var t=_(this,e);return t?t[1]:void 0},has:function(e){return!!_(this,e)},set:function(e,t){var n=_(this,e);n?n[1]=t:this.a.push([e,t])},"delete":function(e){var t=h(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var a=e(function(e,o){s(e,a,t),e._i=g++,e._l=void 0,void 0!=o&&l(o,n,e[r],e)});return o(a.prototype,{"delete":function(e){return i(e)?p(e)?c(e,f)&&c(e[f],this._i)&&delete e[f][this._i]:m(this)["delete"](e):!1},has:function(e){return i(e)?p(e)?c(e,f)&&c(e[f],this._i):m(this).has(e):!1}}),a},def:function(e,t,n){return p(a(t))?(c(t,f)||r(t,f,{}),t[f][e._i]=n):m(e).set(t,n),e},frozenStore:m,WEAK:f}},function(e,t,n){var r=n(12),o=n(16).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){"use strict";var r=n(13);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(34),o=n(8).getNames,a={}.toString,i="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(t){return i.slice()}};e.exports.get=function(e){return i&&"[object Window]"==a.call(e)?s(e):o(r(e))}},function(e,t,n){e.exports=n(16).document&&document.documentElement},function(e,t,n){var r=n(71),o=n(14)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},function(e,t,n){var r=n(12),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(12),o=n(44),a=n(14)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(13);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw void 0!==i&&r(i.call(e)),a}}},function(e,t,n){"use strict";var r=n(8),o=n(51),a=n(72),i={};n(40)(i,n(14)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r.create(i,{next:o(1,n)}),a(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&1e-8>e?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(8),o=n(34),a=r.isEnum;e.exports=function(e){return function(t){for(var n,i=o(t),s=r.getKeys(i),l=s.length,u=0,c=[];l>u;)a.call(i,n=s[u++])&&c.push(e?[n,i[n]]:i[n]);return c}}},function(e,t,n){var r=n(8),o=n(13),a=n(16).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.getNames(o(e)),n=r.getSymbols;return n?t.concat(n(e)):t}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},function(e,t,n){var r=n(16),o="__core-js_shared__",a=r[o]||(r[o]={});e.exports=function(e){return a[e]||(a[e]={})}},function(e,t,n){var r=n(28),o=n(223),a=n(39);e.exports=function(e,t,n,i){var s=String(a(e)),l=s.length,u=void 0===n?" ":String(n),c=r(t);if(l>=c)return s;""==u&&(u=" ");var f=c-l,p=o.call(u,Math.ceil(f/u.length));return p.length>f&&(p=p.slice(0,f)),i?p+s:s+p}},function(e,t,n){"use strict";var r=n(74),o=n(39);e.exports=function(e){var t=String(o(this)),n="",a=r(e);if(0>a||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t,n){var r,o,a,i=n(38),s=n(91),l=n(210),u=n(207),c=n(16),f=c.process,p=c.setImmediate,d=c.clearImmediate,h=c.MessageChannel,g=0,m={},v="onreadystatechange",_=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},y=function(e){_.call(e.data)};p&&d||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},d=function(e){delete m[e]},"process"==n(44)(f)?r=function(e){f.nextTick(i(_,e,1))}:h?(o=new h,a=o.port2,o.port1.onmessage=y,r=i(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):r=v in u("script")?function(e){l.appendChild(u("script"))[v]=function(){l.removeChild(this),_.call(e)}}:function(e){setTimeout(i(_,e,1),0)}),e.exports={set:p,clear:d}},function(e,t,n){var r=n(88),o=n(14)("iterator"),a=n(71);e.exports=n(45).getIteratorMethod=function(e){return void 0!=e?e[o]||e["@@iterator"]||a[r(e)]:void 0}},function(e,t,n){"use strict";var r=n(58),o=n(216),a=n(71),i=n(34);e.exports=n(124)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,a=r.Hasher,i=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;n>=r;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;64>o;)e(r)&&(8>o&&(s[o]=n(t.pow(r,.5))),l[o]=n(t.pow(r,1/3)),o++),r++}();var u=[],c=i.SHA256=a.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],f=n[6],p=n[7],d=0;64>d;d++){if(16>d)u[d]=0|e[t+d];else{var h=u[d-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=u[d-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[d]=g+u[d-7]+v+u[d-16]}var _=s&c^~s&f,y=r&o^r&a^o&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=p+w+_+l[d]+u[d],C=b+y;p=f,f=c,c=s,s=i+x|0,i=a,a=o,o=r,r=x+C|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+i|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[(o+64>>>9<<4)+14]=t.floor(r/4294967296),n[(o+64>>>9<<4)+15]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(c),n.HmacSHA256=a._createHmacHelper(c)}(Math),e.SHA256})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(97))}(this,function(e){return function(){function t(){return i.create.apply(i,arguments)}var n=e,r=n.lib,o=r.Hasher,a=n.x64,i=a.Word,s=a.WordArray,l=n.algo,u=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],c=[];!function(){for(var e=0;80>e;e++)c[e]=t()}();var f=l.SHA512=o.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],l=n[5],f=n[6],p=n[7],d=r.high,h=r.low,g=o.high,m=o.low,v=a.high,_=a.low,y=i.high,b=i.low,w=s.high,x=s.low,C=l.high,E=l.low,T=f.high,P=f.low,k=p.high,M=p.low,S=d,D=h,R=g,A=m,I=v,O=_,N=y,F=b,L=w,B=x,j=C,W=E,U=T,V=P,z=k,q=M,H=0;80>H;H++){var X=c[H];if(16>H)var G=X.high=0|e[t+2*H],Y=X.low=0|e[t+2*H+1];else{var Q=c[H-15],K=Q.high,Z=Q.low,J=(K>>>1|Z<<31)^(K>>>8|Z<<24)^K>>>7,$=(Z>>>1|K<<31)^(Z>>>8|K<<24)^(Z>>>7|K<<25),ee=c[H-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ae=c[H-7],ie=ae.high,se=ae.low,le=c[H-16],ue=le.high,ce=le.low,Y=$+se,G=J+ie+($>>>0>Y>>>0?1:0),Y=Y+oe,G=G+re+(oe>>>0>Y>>>0?1:0),Y=Y+ce,G=G+ue+(ce>>>0>Y>>>0?1:0);X.high=G,X.low=Y}var fe=L&j^~L&U,pe=B&W^~B&V,de=S&R^S&I^R&I,he=D&A^D&O^A&O,ge=(S>>>28|D<<4)^(S<<30|D>>>2)^(S<<25|D>>>7),me=(D>>>28|S<<4)^(D<<30|S>>>2)^(D<<25|S>>>7),ve=(L>>>14|B<<18)^(L>>>18|B<<14)^(L<<23|B>>>9),_e=(B>>>14|L<<18)^(B>>>18|L<<14)^(B<<23|L>>>9),ye=u[H],be=ye.high,we=ye.low,xe=q+_e,Ce=z+ve+(q>>>0>xe>>>0?1:0),xe=xe+pe,Ce=Ce+fe+(pe>>>0>xe>>>0?1:0),xe=xe+we,Ce=Ce+be+(we>>>0>xe>>>0?1:0),xe=xe+Y,Ce=Ce+G+(Y>>>0>xe>>>0?1:0),Ee=me+he,Te=ge+de+(me>>>0>Ee>>>0?1:0);z=U,q=V,U=j,V=W,j=L,W=B,B=F+xe|0,L=N+Ce+(F>>>0>B>>>0?1:0)|0,N=I,F=O,I=R,O=A,R=S,A=D,D=xe+Ee|0,S=Ce+Te+(xe>>>0>D>>>0?1:0)|0}h=r.low=h+D,r.high=d+S+(D>>>0>h>>>0?1:0),m=o.low=m+A,o.high=g+R+(A>>>0>m>>>0?1:0),_=a.low=_+O,a.high=v+I+(O>>>0>_>>>0?1:0),b=i.low=b+F,i.high=y+N+(F>>>0>b>>>0?1:0),x=s.low=x+B,s.high=w+L+(B>>>0>x>>>0?1:0),E=l.low=E+W,l.high=C+j+(W>>>0>E>>>0?1:0),P=f.low=P+V,f.high=T+U+(V>>>0>P>>>0?1:0),M=p.low=M+q,p.high=k+z+(q>>>0>M>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[(r+128>>>10<<5)+30]=Math.floor(n/4294967296),t[(r+128>>>10<<5)+31]=n,e.sigBytes=4*t.length,this._process();var o=this._hash.toX32();return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});n.SHA512=o._createHelper(f),n.HmacSHA512=o._createHmacHelper(f)}(),e.SHA512})},function(e,t,n){"use strict";var r=n(35),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(e,t){var n=!0;e:for(;n;){var r=e,a=t;if(n=!1,r&&a){if(r===a)return!0;if(o(r))return!1;if(o(a)){e=r,t=a.parentNode,n=!0;continue e}return r.contains?r.contains(a):r.compareDocumentPosition?!!(16&r.compareDocumentPosition(a)):!1}return!1}}var o=n(611);e.exports=r},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t,n){"use strict";function r(e){return i?void 0:a(!1),p.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?i.innerHTML="<link />":i.innerHTML="<"+e+"></"+e+">",s[e]=!i.firstChild),s[e]?p[e]:null}var o=n(20),a=n(5),i=o.canUseDOM?document.createElement("div"):null,s={},l=[1,'<select multiple="true">',"</select>"],u=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],f=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],p={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:l,option:l,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c},d=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];d.forEach(function(e){p[e]=f,s[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=r.bind(t),i=0;i<n.length;i++)if(!a(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){var n={};n.EPSILON=1e-6,n.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,n.RANDOM=Math.random,n.setMatrixArrayType=function(e){GLMAT_ARRAY_TYPE=e};var r=Math.PI/180;n.toRadian=function(e){return e*r},e.exports=n},function(e,t,n){var r=n(235),o={};o.create=function(){var e=new r.ARRAY_TYPE(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e},o.clone=function(e){var t=new r.ARRAY_TYPE(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},o.fromValues=function(e,t,n,o){var a=new r.ARRAY_TYPE(4);return a[0]=e,a[1]=t,a[2]=n,a[3]=o,a},o.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},o.set=function(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e},o.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e},o.subtract=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e},o.sub=o.subtract,o.multiply=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e},o.mul=o.multiply,o.divide=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e},o.div=o.divide,o.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e},o.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e},o.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},o.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},o.distance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],a=t[3]-e[3];return Math.sqrt(n*n+r*r+o*o+a*a)},o.dist=o.distance,o.squaredDistance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],a=t[3]-e[3];return n*n+r*r+o*o+a*a},o.sqrDist=o.squaredDistance,o.length=function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return Math.sqrt(t*t+n*n+r*r+o*o)},o.len=o.length,o.squaredLength=function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return t*t+n*n+r*r+o*o},o.sqrLen=o.squaredLength,o.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},o.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},o.normalize=function(e,t){var n=t[0],r=t[1],o=t[2],a=t[3],i=n*n+r*r+o*o+a*a;return i>0&&(i=1/Math.sqrt(i),e[0]=n*i,e[1]=r*i,e[2]=o*i,e[3]=a*i),e},o.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},o.lerp=function(e,t,n,r){var o=t[0],a=t[1],i=t[2],s=t[3];return e[0]=o+r*(n[0]-o),e[1]=a+r*(n[1]-a),e[2]=i+r*(n[2]-i),e[3]=s+r*(n[3]-s),e},o.random=function(e,t){return t=t||1,e[0]=r.RANDOM(),e[1]=r.RANDOM(),e[2]=r.RANDOM(),e[3]=r.RANDOM(),o.normalize(e,e),o.scale(e,e,t),e},o.transformMat4=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=t[3];return e[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*i,e[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*i,e[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*i,e[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*i,e},o.transformQuat=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*o,f=u*o+l*r-i*a,p=u*a+i*o-s*r,d=-i*r-s*o-l*a;return e[0]=c*u+d*-i+f*-l-p*-s,e[1]=f*u+d*-s+p*-i-c*-l,e[2]=p*u+d*-l+c*-s-f*-i,e[3]=t[3],e},o.forEach=function(){var e=o.create();return function(t,n,r,o,a,i){var s,l;for(n||(n=4),r||(r=0),l=o?Math.min(o*n+r,t.length):t.length,s=r;l>s;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],e[3]=t[s+3],a(e,e,i),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2],t[s+3]=e[3];return t}}(),o.str=function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},e.exports=o},function(e,t,n){function r(e,t){if(null==e)return o;switch(typeof e){case"function":return"undefined"!=typeof t?function(n,r,o){return e.call(t,n,r,o)}:e;case"object":return function(t){return i(t,e)};case"string":case"number":return a(e)}}var o=n(624),a=n(625),i=n(629);e.exports=r},function(e,t,n){function r(e){var t=[];return o(e,function(e,n){t.push(e)}),t}var o=n(135);e.exports=r},function(e,t,n){var r,o;r=[n(635)],o=function(e){function t(t,n){return-1!==e(t,n)}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(636),n(637),n(639)],o=function(e,t,n){function r(r,o){if(null==r)return e;switch(typeof r){case"function":return"undefined"!=typeof o?function(e,t,n){return r.call(o,e,t,n)}:r;case"object":return function(e){return n(e,r)};case"string":case"number":return t(r)}}return r}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(638),n(100),n(138),n(246)],o=function(e,t,n,r){function o(t,r){switch(n(t)){case"Object":return a(t,r);case"Array":return i(t,r);default:return e(t)}}function a(e,n){if(r(e)){var a={};return t(e,function(e,t){this[t]=o(e,n)},a),a}return n?n(e):e}function i(e,t){for(var n=[],r=-1,a=e.length;++r<a;)n[r]=o(e[r],t);return n}return o}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r,o;r=[n(244)],o=function(e){var t=Array.isArray||function(t){return e(t,"Array")};return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(138)],o=function(e){function t(t,n){return e(t)===n}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(244)],o=function(e){function t(t){return e(t,"Object")}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e){return!!e&&"object"==typeof e&&e.constructor===Object}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(){function e(){return e.get()}return e.get="function"==typeof Date.now?Date.now:function(){return+new Date},e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[n(t,e)]=r[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},i={isUnitlessNumber:r,shorthandPropertyExpansions:a};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){var r=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var o=n(648),a=n(266),i=n(29),s=n(110),l=n(154),u=n(5),c={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:l,processUpdates:function(e,t){for(var n,i=null,c=null,f=0;f<e.length;f++)if(n=e[f],n.type===a.MOVE_EXISTING||n.type===a.REMOVE_NODE){var p=n.fromIndex,d=n.parentNode.childNodes[p],h=n.parentID;d?void 0:u(!1),i=i||{},i[h]=i[h]||[],i[h][p]=d,c=c||[],c.push(d)}var g;if(g=t.length&&"string"==typeof t[0]?o.dangerouslyRenderMarkup(t):t,c)for(var m=0;m<c.length;m++)c[m].parentNode.removeChild(c[m]);for(var v=0;v<e.length;v++)switch(n=e[v],n.type){case a.INSERT_MARKUP:r(n.parentNode,g[n.markupIndex],n.toIndex);break;case a.MOVE_EXISTING:r(n.parentNode,i[n.parentID][n.fromIndex],n.toIndex);break;case a.SET_MARKUP:s(n.parentNode,n.content);break;case a.TEXT_CONTENT:l(n.parentNode,n.content);break;case a.REMOVE_NODE:}}};i.measureMethods(c,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),e.exports=c},function(e,t,n){"use strict";function r(){if(s)for(var e in l){var t=l[e],n=s.indexOf(e);if(n>-1?void 0:i(!1),!u.plugins[n]){t.extractEvents?void 0:i(!1),u.plugins[n]=t;var r=t.eventTypes;for(var a in r)o(r[a],t,a)?void 0:i(!1)}}}function o(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)?i(!1):void 0,u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a(s,t,n)}return!0}return e.registrationName?(a(e.registrationName,t,n),!0):!1}function a(e,t,n){u.registrationNameModules[e]?i(!1):void 0,u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var i=n(5),s=null,l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){s?i(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];l.hasOwnProperty(n)&&l[n]===o||(l[n]?i(!1):void 0,l[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=u},function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"//")}function o(e,t){this.func=e,this.context=t,this.count=0}function a(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function i(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);v(e,a,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function l(e,t,n){var o=e.result,a=e.keyPrefix,i=e.func,s=e.context,l=i.call(s,t,e.count++);Array.isArray(l)?u(l,o,n,m.thatReturnsArgument):null!=l&&(g.isValidElement(l)&&(l=g.cloneAndReplaceKey(l,a+(l!==t?r(l.key||"")+"/":"")+n)),o.push(l))}function u(e,t,n,o,a){var i="";null!=n&&(i=r(n)+"/");var u=s.getPooled(t,i,o,a);v(e,l,u),s.release(u)}function c(e,t,n){if(null==e)return e; -var r=[];return u(e,r,null,t,n),r}function f(e,t,n){return null}function p(e,t){return v(e,f,null)}function d(e){var t=[];return u(e,t,null,m.thatReturnsArgument),t}var h=n(48),g=n(24),m=n(35),v=n(156),_=h.twoArgumentPooler,y=h.fourArgumentPooler,b=/\/(?!\/)/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,_),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,y);var w={forEach:i,map:c,mapIntoWithKeyPrefixInternal:u,count:p,toArray:d};e.exports=w},function(e,t,n){"use strict";function r(e,t){var n=x.hasOwnProperty(t)?x[t]:null;E.hasOwnProperty(t)&&(n!==b.OVERRIDE_BASE?m(!1):void 0),e.hasOwnProperty(t)&&(n!==b.DEFINE_MANY&&n!==b.DEFINE_MANY_MERGED?m(!1):void 0)}function o(e,t){if(t){"function"==typeof t?m(!1):void 0,p.isValidElement(t)?m(!1):void 0;var n=e.prototype;t.hasOwnProperty(y)&&C.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==y){var a=t[o];if(r(n,o),C.hasOwnProperty(o))C[o](e,a);else{var i=x.hasOwnProperty(o),u=n.hasOwnProperty(o),c="function"==typeof a,f=c&&!i&&!u&&t.autobind!==!1;if(f)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=a,n[o]=a;else if(u){var d=x[o];!i||d!==b.DEFINE_MANY_MERGED&&d!==b.DEFINE_MANY?m(!1):void 0,d===b.DEFINE_MANY_MERGED?n[o]=s(n[o],a):d===b.DEFINE_MANY&&(n[o]=l(n[o],a))}else n[o]=a}}}}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in C;o?m(!1):void 0;var a=n in e;a?m(!1):void 0,e[n]=r}}}function i(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:m(!1);for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?m(!1):void 0,e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return i(o,n),i(o,r),o}}function l(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function u(e,t){var n=t.bind(e);return n}function c(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=u(e,n)}}var f=n(253),p=n(24),d=(n(105),n(104),n(268)),h=n(10),g=n(75),m=n(5),v=n(98),_=n(47),y=(n(9),_({mixins:null})),b=v({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),w=[],x={mixins:b.DEFINE_MANY,statics:b.DEFINE_MANY,propTypes:b.DEFINE_MANY,contextTypes:b.DEFINE_MANY,childContextTypes:b.DEFINE_MANY,getDefaultProps:b.DEFINE_MANY_MERGED,getInitialState:b.DEFINE_MANY_MERGED,getChildContext:b.DEFINE_MANY_MERGED,render:b.DEFINE_ONCE,componentWillMount:b.DEFINE_MANY,componentDidMount:b.DEFINE_MANY,componentWillReceiveProps:b.DEFINE_MANY,shouldComponentUpdate:b.DEFINE_ONCE,componentWillUpdate:b.DEFINE_MANY,componentDidUpdate:b.DEFINE_MANY,componentWillUnmount:b.DEFINE_MANY,updateComponent:b.OVERRIDE_BASE},C={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)o(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=h({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=h({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=s(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=h({},e.propTypes,t)},statics:function(e,t){a(e,t)},autobind:function(){}},E={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(e,t){this.updater.enqueueSetProps(this,e),t&&this.updater.enqueueCallback(this,t)},replaceProps:function(e,t){this.updater.enqueueReplaceProps(this,e),t&&this.updater.enqueueCallback(this,t)}},T=function(){};h(T.prototype,f.prototype,E);var P={createClass:function(e){var t=function(e,t,n){this.__reactAutoBindMap&&c(this),this.props=e,this.context=t,this.refs=g,this.updater=n||d,this.state=null;var r=this.getInitialState?this.getInitialState():null;"object"!=typeof r||Array.isArray(r)?m(!1):void 0,this.state=r};t.prototype=new T,t.prototype.constructor=t,w.forEach(o.bind(null,t)),o(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:m(!1);for(var n in x)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){w.push(e)}}};e.exports=P},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||o}var o=n(268),a=(n(108),n(75)),i=n(5);n(9);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?i(!1):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t)},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e)};e.exports=r},function(e,t,n){"use strict";var r=n(42),o=n(257),a=n(259),i=n(64),s=n(23),l=n(29),u=n(52),c=n(30),f=n(146),p=n(147),d=n(697);n(9);a.inject();var h=l.measure("React","render",s.render),g={findDOMNode:p,render:h,unmountComponentAtNode:s.unmountComponentAtNode,version:f,unstable_batchedUpdates:c.batchedUpdates,unstable_renderSubtreeIntoContainer:d};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:i,Mount:s,Reconciler:u,TextComponent:o});e.exports=g},function(e,t){"use strict";var n={useCreateElement:!1};e.exports=n},function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=i.getValue(e);null!=t&&o(this,Boolean(e.multiple),t)}}function o(e,t,n){var r,o,a=s.getNode(e._rootNodeID).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<a.length;o++){var i=r.hasOwnProperty(a[o].value);a[o].selected!==i&&(a[o].selected=i)}}else{for(r=""+n,o=0;o<a.length;o++)if(a[o].value===r)return void(a[o].selected=!0);a.length&&(a[0].selected=!0)}}function a(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);return this._wrapperState.pendingUpdate=!0,l.asap(r,this),n}var i=n(141),s=n(23),l=n(30),u=n(10),c=(n(9),"__ReactDOMSelect_value$"+Math.random().toString(36).slice(2)),f={valueContextKey:c,getNativeProps:function(e,t,n){return u({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=i.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,onChange:a.bind(e),wasMultiple:Boolean(t.multiple)}},processChildContext:function(e,t,n){var r=u({},n);return r[c]=e._wrapperState.initialValue,r},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=i.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,o(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?o(e,Boolean(t.multiple),t.defaultValue):o(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=f},function(e,t,n){"use strict";var r=n(249),o=n(140),a=n(142),i=n(23),s=n(10),l=n(109),u=n(154),c=(n(157),function(e){});s(c.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){if(this._rootNodeID=e,t.useCreateElement){var r=n[i.ownerDocumentContextKey],a=r.createElement("span");return o.setAttributeForID(a,e),i.getID(a),u(a,this._stringText),a}var s=l(this._stringText);return t.renderToStaticMarkup?s:"<span "+o.createMarkupForID(e)+">"+s+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=i.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){a.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=c},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(30),a=n(107),i=n(10),s=n(35),l={initialize:s,close:function(){p.isBatchingUpdates=!1}},u={initialize:s,close:o.flushBatchedUpdates.bind(o)},c=[u,l];i(r.prototype,a.Mixin,{getTransactionWrappers:function(){return c}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,a){var i=p.isBatchingUpdates;p.isBatchingUpdates=!0,i?e(t,n,r,o,a):f.perform(e,null,t,n,r,o,a)}};e.exports=p},function(e,t,n){"use strict";function r(){if(!T){T=!0,v.EventEmitter.injectReactEventListener(m),v.EventPluginHub.injectEventPluginOrder(s),v.EventPluginHub.injectInstanceHandle(_),v.EventPluginHub.injectMount(y),v.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:C,EnterLeaveEventPlugin:l,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:o}),v.NativeComponent.injectGenericComponentClass(h),v.NativeComponent.injectTextComponentClass(g),v.Class.injectMixin(f),v.DOMProperty.injectDOMPropertyConfig(c),v.DOMProperty.injectDOMPropertyConfig(E),v.EmptyComponent.injectEmptyComponent("noscript"),v.Updates.injectReconcileTransaction(b),v.Updates.injectBatchingStrategy(d),v.RootIndex.injectCreateReactRootIndex(u.canUseDOM?i.createReactRootIndex:x.createReactRootIndex),v.Component.injectEnvironment(p)}}var o=n(644),a=n(646),i=n(647),s=n(649),l=n(650),u=n(20),c=n(653),f=n(655),p=n(142),d=n(258),h=n(659),g=n(257),m=n(667),v=n(668),_=n(64),y=n(23),b=n(672),w=n(678),x=n(679),C=n(680),E=n(677),T=!1;e.exports={inject:r}},function(e,t,n){"use strict";function r(){if(f.current){var e=f.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;a("uniqueKey",e,t)}}function a(e,t,n){var o=r();if(!o){var a="string"==typeof n?n:n.displayName||n.name;a&&(o=" Check the top-level render call using <"+a+">.")}var i=h[e]||(h[e]={});if(i[o])return null;i[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==f.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function i(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];u.isValidElement(r)&&o(r,t)}else if(u.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var a=p(e);if(a&&a!==e.entries)for(var i,s=a.call(e);!(i=s.next()).done;)u.isValidElement(i.value)&&o(i.value,t)}}function s(e,t,n,o){for(var a in t)if(t.hasOwnProperty(a)){var i;try{"function"!=typeof t[a]?d(!1):void 0,i=t[a](n,a,e,o)}catch(s){i=s}if(i instanceof Error&&!(i.message in g)){g[i.message]=!0;r()}}}function l(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name;t.propTypes&&s(n,t.propTypes,e.props,c.prop),"function"==typeof t.getDefaultProps}}var u=n(24),c=n(105),f=(n(104),n(42)),p=(n(108),n(151)),d=n(5),h=(n(9),{}),g={},m={createElement:function(e,t,n){var r="string"==typeof e||"function"==typeof e,o=u.createElement.apply(this,arguments);if(null==o)return o;if(r)for(var a=2;a<arguments.length;a++)i(arguments[a],e);return l(o),o},createFactory:function(e){var t=m.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=u.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)i(arguments[o],r.type);return l(r),r}};e.exports=m},function(e,t,n){"use strict";var r,o=n(24),a=n(262),i=n(52),s=n(10),l={injectEmptyComponent:function(e){r=o.createElement(e)}},u=function(e){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=e(r)};s(u.prototype,{construct:function(e){},mountComponent:function(e,t,n){return a.registerNullComponentID(e),this._rootNodeID=e,i.mountComponent(this._renderedComponent,e,t,n)},receiveComponent:function(){},unmountComponent:function(e,t,n){i.unmountComponent(this._renderedComponent),a.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),u.injection=l,e.exports=u},function(e,t){"use strict";function n(e){return!!a[e]}function r(e){a[e]=!0}function o(e){delete a[e]}var a={},i={isNullComponentID:n,registerNullComponentID:r,deregisterNullComponentID:o};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){try{return t(n,r)}catch(a){return void(null===o&&(o=a))}}var o=null,a={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};e.exports=a},function(e,t,n){"use strict";function r(e){return a(document.documentElement,e)}var o=n(663),a=n(230),i=n(231),s=n(232),l={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:l.hasSelectionCapabilities(e)?l.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(l.hasSelectionCapabilities(n)&&l.setSelection(n,o),i(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var a=e.createTextRange();a.collapse(!0),a.moveStart("character",n),a.moveEnd("character",r-n),a.select()}else o.setOffsets(e,t)}};e.exports=l},function(e,t,n){"use strict";var r=n(689),o=/\/?>/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=a},function(e,t,n){"use strict";var r=n(98),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=f[t];return null==n&&(f[t]=n=u(t)),n}function o(e){return c?void 0:l(!1),new c(e.type,e.props)}function a(e){return new p(e)}function i(e){return e instanceof p}var s=n(10),l=n(5),u=null,c=null,f={},p=null,d={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){p=e},injectComponentClasses:function(e){s(f,e)}},h={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:a,isTextComponent:i,injection:d};e.exports=h},function(e,t,n){"use strict";function r(e,t){}var o=(n(9),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")},enqueueSetProps:function(e,t){r(e,"setProps")},enqueueReplaceProps:function(e,t){r(e,"replaceProps")}});e.exports=o},function(e,t,n){"use strict";function r(e){function t(t,n,r,o,a,i){if(o=o||x,i=i||r,null==n[r]){var s=y[a];return t?new Error("Required "+s+" `"+i+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,a,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,a){var i=t[n],s=g(i);if(s!==e){var l=y[o],u=m(i);return new Error("Invalid "+l+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function a(){return r(b.thatReturns(null))}function i(e){function t(t,n,r,o,a){var i=t[n];if(!Array.isArray(i)){var s=y[o],l=g(i);return new Error("Invalid "+s+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<i.length;u++){var c=e(i,u,r,o,a+"["+u+"]");if(c instanceof Error)return c}return null}return r(t)}function s(){function e(e,t,n,r,o){if(!_.isValidElement(e[t])){var a=y[r];return new Error("Invalid "+a+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(e)}function l(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=y[o],s=e.name||x,l=v(t[n]);return new Error("Invalid "+i+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return r(t)}function u(e){function t(t,n,r,o,a){for(var i=t[n],s=0;s<e.length;s++)if(i===e[s])return null;var l=y[o],u=JSON.stringify(e);return new Error("Invalid "+l+" `"+a+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function c(e){function t(t,n,r,o,a){var i=t[n],s=g(i);if("object"!==s){var l=y[o];return new Error("Invalid "+l+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var u in i)if(i.hasOwnProperty(u)){var c=e(i,u,r,o,a+"."+u);if(c instanceof Error)return c}return null}return r(t)}function f(e){function t(t,n,r,o,a){for(var i=0;i<e.length;i++){var s=e[i];if(null==s(t,n,r,o,a))return null}var l=y[o];return new Error("Invalid "+l+" `"+a+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function p(){function e(e,t,n,r,o){if(!h(e[t])){var a=y[r];return new Error("Invalid "+a+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function d(e){function t(t,n,r,o,a){var i=t[n],s=g(i);if("object"!==s){var l=y[o];return new Error("Invalid "+l+" `"+a+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var f=c(i,u,r,o,a+"."+u);if(f)return f}}return null}return r(t)}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||_.isValidElement(e))return!0;var t=w(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!h(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!h(o[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function m(e){var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){return e.constructor&&e.constructor.name?e.constructor.name:"<<anonymous>>"}var _=n(24),y=n(104),b=n(35),w=n(151),x="<<anonymous>>",C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:a(),arrayOf:i,element:s(),instanceOf:l,node:p(),objectOf:c,oneOf:u,oneOfType:f,shape:d};e.exports=C},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==t?o(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=n(5);e.exports=r},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t,n){"use strict";function r(){return!a&&o.canUseDOM&&(a="textContent"in document.documentElement?"textContent":"innerText"),a}var o=n(20),a=null;e.exports=r},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D compositeSampler;\nuniform sampler2D layerSampler;\nvarying vec2 v_texCoord;\n\nvoid main() {\n // Sample the texture containing what we have composited so far\n vec4 color = texture2D(compositeSampler, v_texCoord);\n\n // Sample the new layer to be composited in\n vec4 compColor = texture2D(layerSampler, v_texCoord);\n\n/*\n // Choose the fragment with the greater depth value\n if (color.a > compColor.a) {\n gl_FragColor = color;\n } else {\n gl_FragColor = compColor;\n }\n*/\n\n // Another way to choose the fragment with the greater depth value\n float stepVal = step((compColor.a - color.a), 0.0);\n gl_FragColor = (stepVal * color) + ((1.0 - stepVal) * compColor);\n\n}\n"},function(e,t){e.exports='\nprecision mediump float;\n\nuniform sampler2D underLayerSampler;\nuniform sampler2D overLayerSampler;\nvarying vec2 v_texCoord;\n\nvoid main() {\n vec4 overColor = texture2D(overLayerSampler, v_texCoord);\n vec3 colA = overColor.rgb;\n float alphA = overColor.a;\n\n vec4 underColor = texture2D(underLayerSampler, v_texCoord);\n vec3 colB = underColor.rgb;\n float alphB = underColor.a;\n\n // Well-known "over" operator (A over B, both partially transparent)\n float alphOut = alphA + (alphB * (1.0 - alphA));\n vec3 colOut = ((colA * alphA) + (colB * alphB * (1.0 - alphA))) / alphOut;\n\n gl_FragColor = vec4(colOut.rgb, alphOut);\n}'},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D u_image;\nvarying vec2 v_texCoord;\n\nvoid main() {\n gl_FragColor = texture2D(u_image, vec2(v_texCoord.x, 1.0 - v_texCoord.y));\n}"},function(e,t,n){var r=n(568);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(582);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){var r;/** @license MIT License (c) copyright 2013-2014 original author or authors */ -!function(o){r=function(e){function t(e,t){return u(e,this,null==t?[]:c.call(t))}function r(e){var t=arguments.length>1?c.call(arguments,1):[];return function(){return u(e,this,t.concat(c.call(arguments)))}}function o(e,t,n){return l(r,t,n,e)}function a(e){var t=c.call(arguments,1);return function(){var n=this,r=c.call(arguments),o=s.apply(n,[e].concat(r));return i.reduce(t,function(e,t){return t.call(n,e)},o)}}var i=n(49),s=i["try"],l=n(760),u=n(161)(i.Promise),c=Array.prototype.slice;return{lift:r,liftAll:o,call:s,apply:t,compose:a}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){function e(t){Error.call(this),this.message=t,this.name=e.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){function e(){return{state:"pending"}}function t(e){return{state:"rejected",reason:e}}function n(e){return{state:"fulfilled",value:e}}function r(r){var o=r.state();return 0===o?e():o>0?n(r.value):t(r.value)}return{pending:e,fulfilled:n,rejected:t,inspect:r}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){function e(e){try{throw new Error}catch(t){e.stack=t.stack}}function t(e){e.stack=(new Error).stack}function n(e){return o(e)}function r(e){var t=new Error;return t.stack=n(e),t}function o(e){for(var t=!1,n="",r=0;r<e.length;++r)t?n+="\n"+e[r]:(n+=e[r],t=!0);return n}var a,i,s;return Error.captureStackTrace?(a=function(e){return e&&e.stack&&e.stack.split("\n")},s=n,i=Error.captureStackTrace):(a=function(e){var t=e&&e.stack&&e.stack.split("\n");return t&&e.message&&t.unshift(e.message),t},function(){var o=new Error;"string"!=typeof o.stack?(s=n,i=e):(s=r,i=t)}()),{parse:a,format:s,captureStack:i}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){e.exports=n(162)},function(e,t,n){function r(e,t,n,r){var n=n||1e3,r=r||32,o={keySize:r/4,iterations:n,hasher:a.algo.SHA256},i=a.PBKDF2(e,t,o);return i.toString(a.enc.Base64)}function o(e,t){return a.HmacSHA256(t,e).toString(a.enc.Base64)}var a=n(547);t.sign=o,t.derive_key=r},function(e,t,n){function r(e,t,n){var r=e.defer();return navigator.id.watch({loggedInUser:t,onlogin:function(e){r.resolve(e)},onlogout:function(){e.leave("wamp.close.logout")}}),r.promise.then?r.promise:r}n(49),n(282);t.auth=r},function(e,t,n){function r(){this._repository={}}r.prototype.register=function(e,t){this._repository[e]=t},r.prototype.isRegistered=function(e){return!!this._repository[e]},r.prototype.get=function(e){if(void 0!==this._repository[e])return this._repository[e];throw"no such transport: "+e},r.prototype.list=function(){var e=[];for(var t in this._repository)e.push(t);return e};var o=new r,a=n(300);o.register("websocket",a.Factory);var i=n(299);o.register("longpoll",i.Factory),t.transports=o},function(e,t,n){(function(e){var r=n(49),o=n(163),a=n(67),i=n(54),s=n(162),l=function(t){var n=this;n._options=t,t&&t.use_es6_promises?"Promise"in e?n._defer=function(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}:(i.debug("Warning: ES6 promises requested, but not found! Falling back to whenjs."),n._defer=r.defer):t&&t.use_deferred?n._defer=t.use_deferred:n._defer=r.defer,n._options.transports||(n._options.transports=[{type:"websocket",url:n._options.url}]),n._transport_factories=[],n._init_transport_factories(),n._session=null,n._session_close_reason=null,n._session_close_message=null,void 0!==n._options.retry_if_unreachable?n._retry_if_unreachable=n._options.retry_if_unreachable:n._retry_if_unreachable=!0,n._max_retries=n._options.max_retries||15,n._initial_retry_delay=n._options.initial_retry_delay||1.5,n._max_retry_delay=n._options.max_retry_delay||300,n._retry_delay_growth=n._options.retry_delay_growth||1.5,n._retry_delay_jitter=n._options.retry_delay_jitter||.1,n._connect_successes=0,n._retry=!1,n._retry_count=0,n._retry_delay=n._initial_retry_delay,n._is_retrying=!1,n._retry_timer=null};l.prototype._create_transport=function(){for(var e=0;e<this._transport_factories.length;++e){var t=this._transport_factories[e];i.debug("trying to create WAMP transport of type: "+t.type);try{var n=t.create();if(n)return i.debug("using WAMP transport type: "+t.type),n}catch(r){i.debug("could not create WAMP transport '"+t.type+"': "+r)}}return null},l.prototype._init_transport_factories=function(){var e,t,n,r;a.assert(this._options.transports,"No transport.factory specified"),e=this._options.transports;for(var o=0;o<this._options.transports.length;++o){t=this._options.transports[o],t.url||(t.url=this._options.url),t.protocols||(t.protocols=this._options.protocols),a.assert(t.type,"No transport.type specified"),a.assert("string"==typeof t.type,"transport.type must be a string");try{r=s.transports.get(t.type),r&&(n=new r(t),this._transport_factories.push(n))}catch(i){console.error(i)}}},l.prototype._autoreconnect_reset_timer=function(){var e=this;e._retry_timer&&clearTimeout(e._retry_timer),e._retry_timer=null},l.prototype._autoreconnect_reset=function(){var e=this;e._autoreconnect_reset_timer(),e._retry_count=0,e._retry_delay=e._initial_retry_delay,e._is_retrying=!1},l.prototype._autoreconnect_advance=function(){var e=this;e._retry_delay_jitter&&(e._retry_delay=a.rand_normal(e._retry_delay,e._retry_delay*e._retry_delay_jitter)),e._retry_delay>e._max_retry_delay&&(e._retry_delay=e._max_retry_delay),e._retry_count+=1;var t;return t=e._retry&&e._retry_count<=e._max_retries?{count:e._retry_count,delay:e._retry_delay,will_retry:!0}:{count:null,delay:null,will_retry:!1},e._retry_delay_growth&&(e._retry_delay=e._retry_delay*e._retry_delay_growth),t},l.prototype.open=function(){function e(){if(t._transport=t._create_transport(),t._transport)t._session=new o.Session(t._transport,t._defer,t._options.onchallenge),t._session_close_reason=null,t._session_close_message=null,t._transport.onopen=function(){t._autoreconnect_reset(),t._connect_successes+=1,t._session.join(t._options.realm,t._options.authmethods,t._options.authid)},t._session.onjoin=function(e){if(t.onopen)try{t.onopen(t._session,e)}catch(n){i.debug("Exception raised from app code while firing Connection.onopen()",n)}},t._session.onleave=function(e,n){t._session_close_reason=e,t._session_close_message=n.message||"",t._retry=!1,t._transport.close(1e3)},t._transport.onclose=function(n){t._autoreconnect_reset_timer(),t._transport=null;var r=null;0===t._connect_successes?(r="unreachable",t._retry_if_unreachable||(t._retry=!1)):r=n.wasClean?"closed":"lost";var o=t._autoreconnect_advance();if(t.onclose){var a={reason:t._session_close_reason,message:t._session_close_message,retry_delay:o.delay,retry_count:o.count,will_retry:o.will_retry};try{var s=t.onclose(r,a)}catch(l){i.debug("Exception raised from app code while firing Connection.onclose()",l)}}t._session&&(t._session._id=null,t._session=null,t._session_close_reason=null,t._session_close_message=null),t._retry&&!s&&(o.will_retry?(t._is_retrying=!0,i.debug("retrying in "+o.delay+" s"),t._retry_timer=setTimeout(e,1e3*o.delay)):i.debug("giving up trying to reconnect"))};else if(t._retry=!1,t.onclose){var n={reason:null,message:null,retry_delay:null,retry_count:null,will_retry:!1};t.onclose("unsupported",n)}}var t=this;if(t._transport)throw"connection already open (or opening)";t._autoreconnect_reset(),t._retry=!0,e()},l.prototype.close=function(e,t){var n=this;if(!n._transport&&!n._is_retrying)throw"connection already closed";n._retry=!1,n._session&&n._session.isOpen?n._session.leave(e,t):n._transport&&n._transport.close(1e3)},Object.defineProperty(l.prototype,"defer",{get:function(){return this._defer}}),Object.defineProperty(l.prototype,"session",{get:function(){return this._session}}),Object.defineProperty(l.prototype,"isOpen",{get:function(){return!(!this._session||!this._session.isOpen)}}),Object.defineProperty(l.prototype,"isConnected",{get:function(){return!!this._transport}}),Object.defineProperty(l.prototype,"transport",{get:function(){return this._transport?this._transport:{info:{type:"none",url:null,protocol:null}}}}),Object.defineProperty(l.prototype,"isRetrying",{get:function(){return this._is_retrying}}),t.Connection=l}).call(t,function(){return this}())},function(e,t,n){n(296),n(292),n(297),n(294),n(293),n(298),n(295)},function(e,t){"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e){"use strict";var t,n,r,o;if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");if(n=Object(this),t=n.length>>>0,o=0,arguments.length>=2)r=arguments[1];else{for(;t>o&&!o in n;)o++;if(o>=t)throw new TypeError("Reduce of empty array with no initial value");r=n[o++]}for(;t>o;o++)o in n&&(r=e(r,n[o],o,n));return r}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(e,t){void 0===t&&(t=0),0>t&&(t+=this.length),0>t&&(t=0);for(var n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1}),"lastIndexOf"in Array.prototype||(Array.prototype.lastIndexOf=function(e,t){for(void 0===t&&(t=this.length-1),0>t&&(t+=this.length),t>this.length-1&&(t=this.length-1),t++;t-- >0;)if(t in this&&this[t]===e)return t;return-1}),"forEach"in Array.prototype||(Array.prototype.forEach=function(e,t){for(var n=0,r=this.length;r>n;n++)n in this&&e.call(t,this[n],n,this)}),"map"in Array.prototype||(Array.prototype.map=function(e,t){for(var n=new Array(this.length),r=0,o=this.length;o>r;r++)r in this&&(n[r]=e.call(t,this[r],r,this));return n}),"filter"in Array.prototype||(Array.prototype.filter=function(e,t){for(var n,r=[],o=0,a=this.length;a>o;o++)o in this&&e.call(t,n=this[o],o,this)&&r.push(n);return r}),"every"in Array.prototype||(Array.prototype.every=function(e,t){for(var n=0,r=this.length;r>n;n++)if(n in this&&!e.call(t,this[n],n,this))return!1;return!0}),"some"in Array.prototype||(Array.prototype.some=function(e,t){for(var n=0,r=this.length;r>n;n++)if(n in this&&e.call(t,this[n],n,this))return!0;return!1}),"function"!=typeof Array.prototype.reduceRight&&(Array.prototype.reduceRight=function(e){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var t,n=Object(this),r=n.length>>>0,o=r-1;if(arguments.length>=2)t=arguments[1];else{for(;o>=0&&!o in n;)o--;if(0>o)throw new TypeError("Reduce of empty array with no initial value");t=n[o--]}for(;o>=0;o--)o in n&&(t=e(t,n[o],o,n));return t})},function(e,t){(function(e){!function(e){e||(e=window.console={log:function(e,t,n,r,o){},info:function(e,t,n,r,o){},warn:function(e,t,n,r,o){},error:function(e,t,n,r,o){},assert:function(e,t){}}),"object"==typeof e.log&&(e.log=Function.prototype.call.bind(e.log,e),e.info=Function.prototype.call.bind(e.info,e),e.warn=Function.prototype.call.bind(e.warn,e),e.error=Function.prototype.call.bind(e.error,e),e.debug=Function.prototype.call.bind(e.info,e)),"group"in e||(e.group=function(t){e.info("\n--- "+t+" ---\n")}),"groupEnd"in e||(e.groupEnd=function(){e.log("\n")}),"assert"in e||(e.assert=function(e,t){if(!e)try{throw new Error("assertion failed: "+t)}catch(n){setTimeout(function(){throw n},0)}}),"time"in e||function(){var t={};e.time=function(e){t[e]=(new Date).getTime()},e.timeEnd=function(n){var r=(new Date).getTime(),o=n in t?r-t[n]:0;e.info(n+": "+o+"ms")}}()}(e.console)}).call(t,function(){return this}())},function(e,t){Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,Array.prototype.concat.apply(n,arguments))}})},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return 10>e?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,o,a,i,s=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,i=[],"[object Array]"===Object.prototype.toString.apply(l)){for(a=l.length,n=0;a>n;n+=1)i[n]=str(n,l)||"null";return o=0===i.length?"[]":gap?"[\n"+gap+i.join(",\n"+gap)+"\n"+s+"]":"["+i.join(",")+"]",gap=s,o}if(rep&&"object"==typeof rep)for(a=rep.length,n=0;a>n;n+=1)"string"==typeof rep[n]&&(r=rep[n],o=str(r,l),o&&i.push(quote(r)+(gap?": ":":")+o));else for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(o=str(r,l),o&&i.push(quote(r)+(gap?": ":":")+o));return o=0===i.length?"{}":gap?"{\n"+gap+i.join(",\n"+gap)+"\n"+s+"}":"{"+i.join(",")+"}",gap=s,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx,escapable,gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;n>r;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,JSON.parse=function(text,reviver){function walk(e,t){var n,r,o=e[t];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r=walk(o,n),void 0!==r?o[n]=r:delete o[n]);return reviver.call(e,t,o)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),exports.JSON=JSON},function(e,t){Object.create||(Object.create=function(){function e(){}return function(t){if(1!=arguments.length)throw new Error("Object.create implementation only accepts one parameter.");return e.prototype=t,new e}}()),Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(o){if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError("Object.keys called on non-object");var a,i,s=[];for(a in o)e.call(o,a)&&s.push(a);if(t)for(i=0;r>i;i++)e.call(o,n[i])&&s.push(n[i]);return s}}())},function(e,t){"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")})},function(e,t){(function(e){"undefined"==typeof e.Uint8Array&&!function(e,t){"use strict";function n(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return null===e?"null":"object"}}function r(e){return Object.prototype.toString.call(e).replace(/^\[object *|\]$/g,"")}function o(e){return"function"==typeof e}function a(e){if(null===e||e===D)throw TypeError();return Object(e)}function i(e){return e>>0}function s(e){return e>>>0}function l(e){function t(t){Object.defineProperty(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}if(e.length>R)throw RangeError("Array too large for polyfill");var n;for(n=0;n<e.length;n+=1)t(n)}function u(e,t){var n=32-t;return e<<n>>n}function c(e,t){var n=32-t;return e<<n>>>n}function f(e){return[255&e]}function p(e){return u(e[0],8)}function d(e){return[255&e]}function h(e){return c(e[0],8)}function g(e){return e=j(Number(e)),[0>e?0:e>255?255:255&e]}function m(e){return[e>>8&255,255&e]}function v(e){return u(e[0]<<8|e[1],16)}function _(e){return[e>>8&255,255&e]}function y(e){return c(e[0]<<8|e[1],16)}function b(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function w(e){return u(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function x(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function C(e){return c(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function E(e,t,n){function r(e){var t=O(e),n=e-t;return.5>n?t:n>.5?t+1:t%2?t+1:t}var o,a,i,s,l,u,c,f=(1<<t-1)-1;for(e!==e?(a=(1<<t)-1,i=B(2,n-1),o=0):e===1/0||e===-(1/0)?(a=(1<<t)-1,i=0,o=0>e?1:0):0===e?(a=0,i=0,o=1/e===-(1/0)?1:0):(o=0>e,e=I(e),e>=B(2,1-f)?(a=L(O(N(e)/A),1023),i=r(e/B(2,a)*B(2,n)),i/B(2,n)>=2&&(a+=1,i=1),a>f?(a=(1<<t)-1,i=0):(a+=f,i-=B(2,n))):(a=0,i=r(e/B(2,1-f-n)))),l=[],s=n;s;s-=1)l.push(i%2?1:0),i=O(i/2);for(s=t;s;s-=1)l.push(a%2?1:0),a=O(a/2);for(l.push(o?1:0),l.reverse(),u=l.join(""),c=[];u.length;)c.push(parseInt(u.substring(0,8),2)),u=u.substring(8);return c}function T(e,t,n){var r,o,a,i,s,l,u,c,f=[];for(r=e.length;r;r-=1)for(a=e[r-1],o=8;o;o-=1)f.push(a%2?1:0),a>>=1;return f.reverse(),i=f.join(""),s=(1<<t-1)-1,l=parseInt(i.substring(0,1),2)?-1:1,u=parseInt(i.substring(1,1+t),2),c=parseInt(i.substring(1+t),2),u===(1<<t)-1?0!==c?NaN:l*(1/0):u>0?l*B(2,u-s)*(1+c/B(2,n)):0!==c?l*B(2,-(s-1))*(c/B(2,n)):0>l?-0:0}function P(e){return T(e,11,52)}function k(e){return E(e,11,52)}function M(e){return T(e,8,23)}function S(e){return E(e,8,23)}var D=void 0,R=1e5,A=Math.LN2,I=Math.abs,O=Math.floor,N=Math.log,F=Math.max,L=Math.min,B=Math.pow,j=Math.round;!function(){var e=Object.defineProperty,t=!function(){try{return Object.defineProperty({},"x",{})}catch(e){return!1}}();e&&!t||(Object.defineProperty=function(t,n,r){if(e)try{return e(t,n,r)}catch(o){}if(t!==Object(t))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in r&&Object.prototype.__defineGetter__.call(t,n,r.get),Object.prototype.__defineSetter__&&"set"in r&&Object.prototype.__defineSetter__.call(t,n,r.set),"value"in r&&(t[n]=r.value),t})}(),function(){function u(e){if(e=i(e),0>e)throw RangeError("ArrayBuffer size is not a small enough positive integer.");Object.defineProperty(this,"byteLength",{value:e}),Object.defineProperty(this,"_bytes",{value:Array(e)});for(var t=0;e>t;t+=1)this._bytes[t]=0}function c(){if(!arguments.length||"object"!=typeof arguments[0])return function(e){if(e=i(e),0>e)throw RangeError("length is not a small enough positive integer.");Object.defineProperty(this,"length",{value:e}),Object.defineProperty(this,"byteLength",{value:e*this.BYTES_PER_ELEMENT}),Object.defineProperty(this,"buffer",{value:new u(this.byteLength)}),Object.defineProperty(this,"byteOffset",{value:0})}.apply(this,arguments);if(arguments.length>=1&&"object"===n(arguments[0])&&arguments[0]instanceof c)return function(e){if(this.constructor!==e.constructor)throw TypeError();var t=e.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new u(t)}),Object.defineProperty(this,"byteLength",{value:t}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:e.length});for(var n=0;n<this.length;n+=1)this._setter(n,e._getter(n))}.apply(this,arguments);if(arguments.length>=1&&"object"===n(arguments[0])&&!(arguments[0]instanceof c)&&!(arguments[0]instanceof u||"ArrayBuffer"===r(arguments[0])))return function(e){var t=e.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new u(t)}),Object.defineProperty(this,"byteLength",{value:t}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:e.length});for(var n=0;n<this.length;n+=1){var r=e[n];this._setter(n,Number(r))}}.apply(this,arguments);if(arguments.length>=1&&"object"===n(arguments[0])&&(arguments[0]instanceof u||"ArrayBuffer"===r(arguments[0])))return function(e,t,n){if(t=s(t),t>e.byteLength)throw RangeError("byteOffset out of range");if(t%this.BYTES_PER_ELEMENT)throw RangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(n===D){var r=e.byteLength-t;if(r%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");n=r/this.BYTES_PER_ELEMENT}else n=s(n),r=n*this.BYTES_PER_ELEMENT;if(t+r>e.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:e}),Object.defineProperty(this,"byteLength",{value:r}),Object.defineProperty(this,"byteOffset",{value:t}),Object.defineProperty(this,"length",{value:n})}.apply(this,arguments);throw TypeError()}function E(e,t,n){var r=function(){Object.defineProperty(this,"constructor",{value:r}),c.apply(this,arguments),l(this)};"__proto__"in r?r.__proto__=c:(r.from=c.from,r.of=c.of),r.BYTES_PER_ELEMENT=e;var o=function(){};return o.prototype=T,r.prototype=new o,Object.defineProperty(r.prototype,"BYTES_PER_ELEMENT",{value:e}),Object.defineProperty(r.prototype,"_pack",{value:t}),Object.defineProperty(r.prototype,"_unpack",{value:n}),r}e.ArrayBuffer=e.ArrayBuffer||u,Object.defineProperty(c,"from",{value:function(e){return new this(e)}}),Object.defineProperty(c,"of",{value:function(){return new this(arguments)}});var T={};c.prototype=T,Object.defineProperty(c.prototype,"_getter",{value:function(e){if(arguments.length<1)throw SyntaxError("Not enough arguments");if(e=s(e),e>=this.length)return D;var t,n,r=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,n+=1)r.push(this.buffer._bytes[n]);return this._unpack(r)}}),Object.defineProperty(c.prototype,"get",{value:c.prototype._getter}),Object.defineProperty(c.prototype,"_setter",{value:function(e,t){if(arguments.length<2)throw SyntaxError("Not enough arguments");if(e=s(e),!(e>=this.length)){var n,r,o=this._pack(t);for(n=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;n<this.BYTES_PER_ELEMENT;n+=1,r+=1)this.buffer._bytes[r]=o[n]}}}),Object.defineProperty(c.prototype,"constructor",{value:c}),Object.defineProperty(c.prototype,"copyWithin",{value:function(e,t){var n=arguments[2],r=a(this),o=r.length,l=s(o);l=F(l,0);var u,c=i(e);u=0>c?F(l+c,0):L(c,l);var f,p=i(t);f=0>p?F(l+p,0):L(p,l);var d;d=n===D?l:i(n);var h;h=0>d?F(l+d,0):L(d,l);var g,m=L(h-f,l-u);for(from<u&&f+m>u?(g=-1,f=f+m-1,u=u+m-1):g=1;count>0;)r._setter(u,r._getter(f)),f+=g,u+=g,m-=1;return r}}),Object.defineProperty(c.prototype,"every",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();for(var r=arguments[1],a=0;n>a;a++)if(!e.call(r,t._getter(a),a,t))return!1;return!0}}),Object.defineProperty(c.prototype,"fill",{value:function(e){var t=arguments[1],n=arguments[2],r=a(this),o=r.length,l=s(o);l=F(l,0);var u,c=i(t);u=0>c?F(l+c,0):L(c,l);var f;f=n===D?l:i(n);var p;for(p=0>f?F(l+f,0):L(f,l);p>u;)r._setter(u,e),u+=1;return r}}),Object.defineProperty(c.prototype,"filter",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();for(var r=[],a=arguments[1],i=0;n>i;i++){var l=t._getter(i);e.call(a,l,i,t)&&r.push(l)}return new this.constructor(r)}}),Object.defineProperty(c.prototype,"find",{value:function(e){var t=a(this),n=t.length,r=s(n);if(!o(e))throw TypeError();for(var i=arguments.length>1?arguments[1]:D,l=0;r>l;){var u=t._getter(l),c=e.call(i,u,l,t);if(Boolean(c))return u;++l}return D}}),Object.defineProperty(c.prototype,"findIndex",{value:function(e){var t=a(this),n=t.length,r=s(n);if(!o(e))throw TypeError();for(var i=arguments.length>1?arguments[1]:D,l=0;r>l;){var u=t._getter(l),c=e.call(i,u,l,t);if(Boolean(c))return l;++l}return-1}}),Object.defineProperty(c.prototype,"forEach",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();for(var r=arguments[1],a=0;n>a;a++)e.call(r,t._getter(a),a,t)}}),Object.defineProperty(c.prototype,"indexOf",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(0===n)return-1;var r,o=0;if(arguments.length>0&&(r=Number(arguments[1]),r!==o?o=0:0!==r&&r!==1/0&&r!==-(1/0)&&(o=(r>0||-1)*O(I(r)))),o>=n)return-1;for(var a=o>=0?o:F(n-I(o),0);n>a;a++)if(t._getter(a)===e)return a;return-1}}),Object.defineProperty(c.prototype,"join",{value:function(e){if(this===D||null===this)throw TypeError();for(var t=Object(this),n=s(t.length),r=Array(n),o=0;n>o;++o)r[o]=t._getter(o);return r.join(e===D?",":e)}}),Object.defineProperty(c.prototype,"lastIndexOf",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(0===n)return-1;var r=n;arguments.length>1&&(r=Number(arguments[1]),r!==r?r=0:0!==r&&r!==1/0&&r!==-(1/0)&&(r=(r>0||-1)*O(I(r))));for(var o=r>=0?L(r,n-1):n-I(r);o>=0;o--)if(t._getter(o)===e)return o;return-1}}),Object.defineProperty(c.prototype,"map",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();var r=[];r.length=n;for(var a=arguments[1],i=0;n>i;i++)r[i]=e.call(a,t._getter(i),i,t);return new this.constructor(r)}}),Object.defineProperty(c.prototype,"reduce",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();if(0===n&&1===arguments.length)throw TypeError();var r,a=0;for(r=arguments.length>=2?arguments[1]:t._getter(a++);n>a;)r=e.call(D,r,t._getter(a),a,t),a++;return r}}),Object.defineProperty(c.prototype,"reduceRight",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();if(0===n&&1===arguments.length)throw TypeError();var r,a=n-1;for(r=arguments.length>=2?arguments[1]:t._getter(a--);a>=0;)r=e.call(D,r,t._getter(a),a,t),a--;return r}}),Object.defineProperty(c.prototype,"reverse",{value:function(){if(this===D||null===this)throw TypeError();for(var e=Object(this),t=s(e.length),n=O(t/2),r=0,o=t-1;n>r;++r,--o){var a=e._getter(r);e._setter(r,e._getter(o)),e._setter(o,a)}return e}}),Object.defineProperty(c.prototype,"set",{value:function(e,t){if(arguments.length<1)throw SyntaxError("Not enough arguments");var n,r,o,a,i,l,u,c,f,p;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(n=arguments[0],o=s(arguments[1]),o+n.length>this.length)throw RangeError("Offset plus length of array is out of range");if(c=this.byteOffset+o*this.BYTES_PER_ELEMENT,f=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(p=[],i=0,l=n.byteOffset;f>i;i+=1,l+=1)p[i]=n.buffer._bytes[l];for(i=0,u=c;f>i;i+=1,u+=1)this.buffer._bytes[u]=p[i]}else for(i=0,l=n.byteOffset,u=c;f>i;i+=1,l+=1,u+=1)this.buffer._bytes[u]=n.buffer._bytes[l]}else{if("object"!=typeof arguments[0]||"undefined"==typeof arguments[0].length)throw TypeError("Unexpected argument type(s)");if(r=arguments[0],a=s(r.length),o=s(arguments[1]),o+a>this.length)throw RangeError("Offset plus length of array is out of range");for(i=0;a>i;i+=1)l=r[i],this._setter(o+i,Number(l))}}}),Object.defineProperty(c.prototype,"slice",{value:function(e,t){for(var n=a(this),r=n.length,o=s(r),l=i(e),u=0>l?F(o+l,0):L(l,o),c=t===D?o:i(t),f=0>c?F(o+c,0):L(c,o),p=f-u,d=n.constructor,h=new d(p),g=0;f>u;){var m=n._getter(u);h._setter(g,m),++u,++g}return h}}),Object.defineProperty(c.prototype,"some",{value:function(e){if(this===D||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();for(var r=arguments[1],a=0;n>a;a++)if(e.call(r,t._getter(a),a,t))return!0;return!1}}),Object.defineProperty(c.prototype,"sort",{value:function(e){if(this===D||null===this)throw TypeError();for(var t=Object(this),n=s(t.length),r=Array(n),o=0;n>o;++o)r[o]=t._getter(o);for(e?r.sort(e):r.sort(),o=0;n>o;++o)t._setter(o,r[o]);return t}}),Object.defineProperty(c.prototype,"subarray",{value:function(e,t){function n(e,t,n){return t>e?t:e>n?n:e}e=i(e),t=i(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),0>e&&(e=this.length+e),0>t&&(t=this.length+t),e=n(e,0,this.length),t=n(t,0,this.length);var r=t-e;return 0>r&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)}});var R=E(1,f,p),A=E(1,d,h),N=E(1,g,h),B=E(2,m,v),j=E(2,_,y),W=E(4,b,w),U=E(4,x,C),V=E(4,S,M),z=E(8,k,P);e.Int8Array=t.Int8Array=e.Int8Array||R,e.Uint8Array=t.Uint8Array=e.Uint8Array||A,e.Uint8ClampedArray=t.Uint8ClampedArray=e.Uint8ClampedArray||N,e.Int16Array=t.Int16Array=e.Int16Array||B,e.Uint16Array=t.Uint16Array=e.Uint16Array||j,e.Int32Array=t.Int32Array=e.Int32Array||W,e.Uint32Array=t.Uint32Array=e.Uint32Array||U,e.Float32Array=t.Float32Array=e.Float32Array||V,e.Float64Array=t.Float64Array=e.Float64Array||z}(),function(){function t(e,t){return o(e.get)?e.get(t):e[t]}function n(e,t,n){if(!(e instanceof ArrayBuffer||"ArrayBuffer"===r(e)))throw TypeError();if(t=s(t),t>e.byteLength)throw RangeError("byteOffset out of range");if(n=n===D?e.byteLength-t:s(n),t+n>e.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:e}),Object.defineProperty(this,"byteLength",{value:n}),Object.defineProperty(this,"byteOffset",{value:t})}function a(n){return function(r,o){if(r=s(r),r+n.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");r+=this.byteOffset;for(var a=new e.Uint8Array(this.buffer,r,n.BYTES_PER_ELEMENT),i=[],u=0;u<n.BYTES_PER_ELEMENT;u+=1)i.push(t(a,u));return Boolean(o)===Boolean(l)&&i.reverse(),t(new n(new e.Uint8Array(i).buffer),0)}}function i(n){return function(r,o,a){if(r=s(r),r+n.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");var i,u,c=new n([o]),f=new e.Uint8Array(c.buffer),p=[];for(i=0;i<n.BYTES_PER_ELEMENT;i+=1)p.push(t(f,i));Boolean(a)===Boolean(l)&&p.reverse(),u=new Uint8Array(this.buffer,r,n.BYTES_PER_ELEMENT),u.set(p)}}var l=function(){var n=new e.Uint16Array([4660]),r=new e.Uint8Array(n.buffer);return 18===t(r,0)}();Object.defineProperty(n.prototype,"getUint8",{value:a(e.Uint8Array)}),Object.defineProperty(n.prototype,"getInt8",{value:a(e.Int8Array)}),Object.defineProperty(n.prototype,"getUint16",{value:a(e.Uint16Array)}),Object.defineProperty(n.prototype,"getInt16",{value:a(e.Int16Array)}),Object.defineProperty(n.prototype,"getUint32",{value:a(e.Uint32Array)}),Object.defineProperty(n.prototype,"getInt32",{value:a(e.Int32Array)}),Object.defineProperty(n.prototype,"getFloat32",{value:a(e.Float32Array)}),Object.defineProperty(n.prototype,"getFloat64",{value:a(e.Float64Array)}),Object.defineProperty(n.prototype,"setUint8",{value:i(e.Uint8Array)}),Object.defineProperty(n.prototype,"setInt8",{value:i(e.Int8Array)}),Object.defineProperty(n.prototype,"setUint16",{value:i(e.Uint16Array)}),Object.defineProperty(n.prototype,"setInt16",{value:i(e.Int16Array)}),Object.defineProperty(n.prototype,"setUint32",{value:i(e.Uint32Array)}),Object.defineProperty(n.prototype,"setInt32",{value:i(e.Int32Array)}),Object.defineProperty(n.prototype,"setFloat32",{value:i(e.Float32Array)}),Object.defineProperty(n.prototype,"setFloat64",{value:i(e.Float64Array)}),e.DataView=e.DataView||n}()}(t,window),"window"in e&&("Uint8ClampedArray"in window||(window.Uint8ClampedArray=e.Uint8Array))}).call(t,function(){return this}())},function(e,t,n){function r(e){var t=this;o.assert(void 0!==e.url,"options.url missing"),o.assert("string"==typeof e.url,"options.url must be a string"),t._options=e}var o=n(67),a=n(54);n(49);r.prototype.type="longpoll",r.prototype.create=function(){var e=this;a.debug("longpoll.Factory.create");var t={};return t.protocol=void 0,t.send=void 0,t.close=void 0,t.onmessage=function(){},t.onopen=function(){},t.onclose=function(){},t.info={type:"longpoll",url:null,protocol:"wamp.2.json"},t._run=function(){var n=null,r=!1,i=0,s=0,l={protocols:["wamp.2.json"]},u=e._options.request_timeout||2e3;o.http_post(e._options.url+"/open",JSON.stringify(l),u).then(function(l){function c(){s+=1,a.debug("longpoll.Transport: polling for message ..."),o.http_post(f+"/receive",null,u).then(function(e){if(e){var n=JSON.parse(e);a.debug("longpoll.Transport: message received",n),t.onmessage(n)}r||c()},function(e){a.debug("longpoll.Transport: could not receive message",e.code,e.text),r=!0;var n={code:1001,reason:"transport receive failure (HTTP/POST status "+e.code+" - '"+e.text+"')",wasClean:!1};t.onclose(n)})}n=JSON.parse(l);var f=e._options.url+"/"+n.transport;t.info.url=f,a.debug("longpoll.Transport: open",n),t.close=function(e,n){if(r)throw"transport is already closing"; -r=!0,o.http_post(f+"/close",null,u).then(function(){a.debug("longpoll.Transport: transport closed");var e={code:1e3,reason:"transport closed",wasClean:!0};t.onclose(e)},function(e){a.debug("longpoll.Transport: could not close transport",e.code,e.text)})},t.send=function(e){if(r)throw"transport is closing or closed already";i+=1,a.debug("longpoll.Transport: sending message ...",e);var n=JSON.stringify(e);o.http_post(f+"/send",n,u).then(function(){a.debug("longpoll.Transport: message sent")},function(e){a.debug("longpoll.Transport: could not send message",e.code,e.text),r=!0;var n={code:1001,reason:"transport send failure (HTTP/POST status "+e.code+" - '"+e.text+"')",wasClean:!1};t.onclose(n)})},c(),t.onopen()},function(e){a.debug("longpoll.Transport: could not open transport",e.code,e.text),r=!0;var n={code:1001,reason:"transport open failure (HTTP/POST status "+e.code+" - '"+e.text+"')",wasClean:!1};t.onclose(n)})},t._run(),t},t.Factory=r},function(e,t,n){(function(e){function r(e){var t=this;o.assert(void 0!==e.url,"options.url missing"),o.assert("string"==typeof e.url,"options.url must be a string"),e.protocols?o.assert(Array.isArray(e.protocols),"options.protocols must be an array"):e.protocols=["wamp.2.json"],t._options=e}var o=n(67),a=n(54);r.prototype.type="websocket",r.prototype.create=function(){var t=this,r={};return r.protocol=void 0,r.send=void 0,r.close=void 0,r.onmessage=function(){},r.onopen=function(){},r.onclose=function(){},r.info={type:"websocket",url:null,protocol:"wamp.2.json"},"window"in e?!function(){var e;if("WebSocket"in window)e=t._options.protocols?new window.WebSocket(t._options.url,t._options.protocols):new window.WebSocket(t._options.url);else{if(!("MozWebSocket"in window))throw"browser does not support WebSocket";e=t._options.protocols?new window.MozWebSocket(t._options.url,t._options.protocols):new window.MozWebSocket(t._options.url)}e.onmessage=function(e){a.debug("WebSocket transport receive",e.data);var t=JSON.parse(e.data);r.onmessage(t)},e.onopen=function(){r.info.url=t._options.url,r.onopen()},e.onclose=function(e){var t={code:e.code,reason:e.message,wasClean:e.wasClean};r.onclose(t)},r.send=function(t){var n=JSON.stringify(t);a.debug("WebSocket transport send",n),e.send(n)},r.close=function(t,n){e.close(t,n)}}():!function(){var e,o,a=n(766);t._options.protocols?(o=t._options.protocols,Array.isArray(o)&&(o=o.join(",")),e=new a(t._options.url,{protocol:o})):e=new a(t._options.url),r.send=function(t){var n=JSON.stringify(t);e.send(n,{binary:!1})},r.close=function(t,n){e.close()},e.on("open",function(){r.onopen()}),e.on("message",function(e,t){if(t.binary);else{var n=JSON.parse(e);r.onmessage(n)}}),e.on("close",function(e,t){var n={code:e,reason:t,wasClean:1e3===e};r.onclose(n)}),e.on("error",function(e){var t={code:1006,reason:"",wasClean:!1};r.onclose(t)})}(),r},t.Factory=r}).call(t,function(){return this}())},function(e,t,n){e.exports=n(302)},function(e,t,n){"use strict";function r(e){this.defaults=a.merge({},e),this.interceptors={request:new s,response:new s}}var o=n(305),a=n(36),i=n(304),s=n(303),l=n(311),u=n(309),c=n(306),f=n(165);r.prototype.request=function(e){"string"==typeof e&&(e=a.merge({url:arguments[0]},arguments[1])),e=a.merge(o,this.defaults,{method:"get"},e),e.baseURL&&!l(e.url)&&(e.url=u(e.baseURL,e.url)),e.withCredentials=e.withCredentials||this.defaults.withCredentials,e.data=f(e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),a.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n};var p=new r(o),d=e.exports=c(r.prototype.request,p);d.create=function(e){return new r(e)},d.defaults=p.defaults,d.all=function(e){return Promise.all(e)},d.spread=n(314),d.interceptors=p.interceptors,a.forEach(["delete","get","head"],function(e){r.prototype[e]=function(t,n){return this.request(a.merge(n||{},{method:e,url:t}))},d[e]=c(r.prototype[e],p)}),a.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(a.merge(r||{},{method:e,url:t,data:n}))},d[e]=c(r.prototype[e],p)})},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(36);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){(function(t){"use strict";e.exports=function(e){return new Promise(function(r,o){try{var a;"function"==typeof e.adapter?a=e.adapter:"undefined"!=typeof XMLHttpRequest?a=n(164):"undefined"!=typeof t&&(a=n(164)),"function"==typeof a&&a(r,o,e)}catch(i){o(i)}})}}).call(t,n(77))},function(e,t,n){"use strict";var r=n(36),o=/^\)\]\}',?\n/,a={"Content-Type":"application/x-www-form-urlencoded"};e.exports={transformRequest:[function(e,t){return r.isFormData(e)?e:r.isArrayBuffer(e)?e:r.isArrayBufferView(e)?e.buffer:!r.isObject(e)||r.isFile(e)||r.isBlob(e)?e:(r.isUndefined(t)||(r.forEach(t,function(e,n){"content-type"===n.toLowerCase()&&(t["Content-Type"]=e)}),r.isUndefined(t["Content-Type"])&&(t["Content-Type"]="application/json;charset=utf-8")),JSON.stringify(e))}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(o,"");try{e=JSON.parse(e)}catch(t){}}return e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(a),post:r.merge(a),put:r.merge(a)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){"use strict";function n(e){this.message=e}function r(e){for(var t,r,a=String(e),i="",s=0,l=o;a.charAt(0|s)||(l="=",s%1);i+=l.charAt(63&t>>8-s%1*8)){if(r=a.charCodeAt(s+=.75),r>255)throw new n("INVALID_CHARACTER_ERR: DOM Exception 5");t=t<<8|r}return i}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(36);e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else{var i=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),a=i.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t){"use strict";e.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},function(e,t,n){"use strict";var r=n(36);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";var r=n(36);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(36);e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(a[t]=a[t]?a[t]+", "+n:n)}),a):a}},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Rendering=t.React=t.NativeUI=t.IO=t.Interaction=t.InfoViz=t.Common=void 0,n(427);var o=n(322),a=r(o),i=n(365),s=r(i),l=n(367),u=r(l),c=n(360),f=r(c),p=n(369),d=r(p),h=n(402),g=r(h),m=n(426),v=r(m);t.Common=a["default"],t.InfoViz=s["default"],t.Interaction=u["default"],t.IO=f["default"],t.NativeUI=d["default"],t.React=g["default"],t.Rendering=v["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={lookuptables:{spectralflip:{controlpoints:[{x:0,r:.3686274509803922,g:.3098039215686275,b:.6352941176470588},{x:.1,r:.196078431372549,g:.5333333333333333,b:.7411764705882353},{x:.2,r:.4,g:.7607843137254902,b:.6470588235294118},{x:.3,r:.6705882352941176,g:.8666666666666667,b:.6431372549019608},{x:.4,r:.9019607843137255,g:.9607843137254902,b:.596078431372549},{x:.5,r:1,g:1,b:.7490196078431373},{x:.6,r:.996078431372549,g:.8784313725490196,b:.5450980392156862},{x:.7,r:.9921568627450981,g:.6823529411764706,b:.3803921568627451},{x:.8,r:.9568627450980393,g:.4274509803921568,b:.2627450980392157},{x:.9,r:.8352941176470589,g:.2431372549019608,b:.3098039215686275},{x:1,r:.6196078431372549,g:.00392156862745098,b:.2588235294117647}],range:[0,1]},cold2warm:{controlpoints:[{x:0,r:.23137254902,g:.298039215686,b:.752941176471},{x:.5,r:.865,g:.865,b:.865},{x:1,r:.705882352941,g:.0156862745098,b:.149019607843}],range:[0,1]},rainbow:{controlpoints:[{x:0,r:0,g:0,b:1},{x:.25,r:0,g:1,b:1},{x:.5,r:0,g:1,b:0},{x:.75,r:1,g:1,b:0},{x:1,r:1,g:0,b:0}],range:[0,1]},"gray scale":{controlpoints:[{x:0,r:0,g:0,b:0},{x:1,r:1,g:1,b:1}],range:[0,1]},"gray scale flip":{controlpoints:[{x:0,r:1,g:1,b:1},{x:1,r:0,g:0,b:0}],range:[0,1]},spectral:{controlpoints:[{x:0,r:.6196078431372549,g:.00392156862745098,b:.2588235294117647},{x:.1,r:.8352941176470589,g:.2431372549019608,b:.3098039215686275},{x:.2,r:.9568627450980393,g:.4274509803921568,b:.2627450980392157},{x:.3,r:.9921568627450981,g:.6823529411764706,b:.3803921568627451},{x:.4,r:.996078431372549,g:.8784313725490196,b:.5450980392156862},{x:.5,r:1,g:1,b:.7490196078431373},{x:.6,r:.9019607843137255,g:.9607843137254902,b:.596078431372549},{x:.7,r:.6705882352941176,g:.8666666666666667,b:.6431372549019608},{x:.8,r:.4,g:.7607843137254902,b:.6470588235294118},{x:.9,r:.196078431372549,g:.5333333333333333,b:.7411764705882353},{x:1,r:.3686274509803922,g:.3098039215686275,b:.6352941176470588}],range:[0,1]},warm:{controlpoints:[{x:0,r:.4745098039215686,g:.09019607843137255,b:.09019607843137255},{x:.2,r:.7098039215686275,g:.00392156862745098,b:.00392156862745098},{x:.4,r:.9372549019607843,g:.2784313725490196,b:.09803921568627451},{x:.6,r:.9764705882352941,g:.5137254901960784,b:.1411764705882353},{x:.8,r:1,g:.7058823529411765,b:0},{x:1,r:1,g:.8980392156862745,b:.02352941176470588}],range:[0,1]},cool:{controlpoints:[{x:0,r:.4588235294117647,g:.6941176470588235,b:.00392156862745098},{x:.1666666666666667,r:.3450980392156863,g:.5019607843137255,b:.1607843137254902},{x:.3333333333333333,r:.3137254901960784,g:.8431372549019608,b:.7490196078431373},{x:.5,r:.1098039215686274,g:.5843137254901961,b:.803921568627451},{x:.6666666666666666,r:.2313725490196079,g:.407843137254902,b:.6705882352941176},{x:.8333333333333334,r:.6039215686274509,g:.407843137254902,b:1},{x:1,r:.3725490196078431,g:.2,b:.5019607843137255}],range:[0,1]},blues:{controlpoints:[{x:0,r:.2313725490196079,g:.407843137254902,b:.6705882352941176},{x:.1666666666666667,r:.1098039215686274,g:.5843137254901961,b:.803921568627451},{x:.3333333333333333,r:.3058823529411765,g:.8509803921568627,b:.9176470588235294},{x:.5,r:.4509803921568628,g:.6039215686274509,b:.8352941176470589},{x:.6666666666666666,r:.2588235294117647,g:.2392156862745098,b:.6627450980392157},{x:.8333333333333334,r:.3137254901960784,g:.3294117647058823,b:.5294117647058824},{x:1,r:.06274509803921569,g:.1647058823529412,b:.3215686274509804}],range:[0,1]},wildflower:{controlpoints:[{x:0,r:.1098039215686274,g:.5843137254901961,b:.803921568627451},{x:.1666666666666667,r:.2313725490196079,g:.407843137254902,b:.6705882352941176},{x:.3333333333333333,r:.4,g:.2431372549019608,b:.7176470588235294},{x:.5,r:.6352941176470588,g:.3294117647058823,b:.8117647058823529},{x:.6666666666666666,r:.8705882352941177,g:.3803921568627451,b:.807843137254902},{x:.8333333333333334,r:.8627450980392157,g:.3803921568627451,b:.5843137254901961},{x:1,r:.2392156862745098,g:.06274509803921569,b:.3215686274509804}],range:[0,1]},citrus:{controlpoints:[{x:0,r:.396078431372549,g:.4862745098039216,b:.2156862745098039},{x:.2,r:.4588235294117647,g:.6941176470588235,b:.00392156862745098},{x:.4,r:.6980392156862745,g:.7294117647058823,b:.1882352941176471},{x:.6,r:1,g:.8980392156862745,b:.02352941176470588},{x:.8,r:1,g:.7058823529411765,b:0},{x:1,r:.9764705882352941,g:.5137254901960784,b:.1411764705882353}],range:[0,1]},organge2purple:{controlpoints:[{x:0,r:.4980392156862745,g:.2313725490196079,b:.03137254901960784},{x:.1,r:.7019607843137254,g:.3450980392156863,b:.02352941176470588},{x:.2,r:.8784313725490196,g:.5098039215686274,b:.0784313725490196},{x:.3,r:.9921568627450981,g:.7215686274509804,b:.3882352941176471},{x:.4,r:.996078431372549,g:.8784313725490196,b:.7137254901960784},{x:.5,r:.9686274509803922,g:.9686274509803922,b:.9686274509803922},{x:.6,r:.8470588235294118,g:.8549019607843137,b:.9215686274509803},{x:.7,r:.6980392156862745,g:.6705882352941176,b:.8235294117647058},{x:.8,r:.5019607843137255,g:.4509803921568628,b:.6745098039215687},{x:.9,r:.3294117647058823,g:.1529411764705882,b:.5333333333333333},{x:1,r:.1764705882352941,g:0,b:.2941176470588235}],range:[0,1]},brown2green:{controlpoints:[{x:0,r:.3294117647058823,g:.1882352941176471,b:.0196078431372549},{x:.1,r:.5490196078431373,g:.3176470588235294,b:.0392156862745098},{x:.2,r:.7490196078431373,g:.5058823529411764,b:.1764705882352941},{x:.3,r:.8745098039215686,g:.7607843137254902,b:.4901960784313725},{x:.4,r:.9647058823529412,g:.9098039215686274,b:.7647058823529411},{x:.5,r:.9607843137254902,g:.9607843137254902,b:.9607843137254902},{x:.6,r:.7803921568627451,g:.9176470588235294,b:.8980392156862745},{x:.7,r:.5019607843137255,g:.803921568627451,b:.7568627450980392},{x:.8,r:.207843137254902,g:.592156862745098,b:.5607843137254902},{x:.9,r:.00392156862745098,g:.4,b:.3686274509803922},{x:1,r:0,g:.2352941176470588,b:.1882352941176471}],range:[0,1]},blue2green:{controlpoints:[{x:0,r:.9686274509803922,g:.9882352941176471,b:.9921568627450981},{x:.125,r:.8980392156862745,g:.9607843137254902,b:.9764705882352941},{x:.25,r:.8,g:.9254901960784314,b:.9019607843137255},{x:.375,r:.6,g:.8470588235294118,b:.788235294117647},{x:.5,r:.4,g:.7607843137254902,b:.6431372549019608},{x:.625,r:.2549019607843137,g:.6823529411764706,b:.4627450980392157},{x:.75,r:.1372549019607843,g:.5450980392156862,b:.2705882352941176},{x:.875,r:0,g:.4274509803921568,b:.1725490196078431},{x:1,r:0,g:.2666666666666667,b:.1058823529411765}],range:[0,1]},yellow2brown:{controlpoints:[{x:0,r:1,g:1,b:.8980392156862745},{x:.125,r:1,g:.9686274509803922,b:.7372549019607844},{x:.25,r:.996078431372549,g:.8901960784313725,b:.5686274509803921},{x:.375,r:.996078431372549,g:.7686274509803922,b:.3098039215686275},{x:.5,r:.996078431372549,g:.6,b:.1607843137254902},{x:.625,r:.9254901960784314,g:.4392156862745098,b:.0784313725490196},{x:.75,r:.8,g:.2980392156862745,b:.00784313725490196},{x:.875,r:.6,g:.203921568627451,b:.01568627450980392},{x:1,r:.4,g:.1450980392156863,b:.02352941176470588}],range:[0,1]},blue2purple:{controlpoints:[{x:0,r:.9686274509803922,g:.9882352941176471,b:.9921568627450981},{x:.125,r:.8784313725490196,g:.9254901960784314,b:.9568627450980393},{x:.25,r:.7490196078431373,g:.8274509803921568,b:.9019607843137255},{x:.375,r:.6196078431372549,g:.7372549019607844,b:.8549019607843137},{x:.5,r:.5490196078431373,g:.5882352941176471,b:.7764705882352941},{x:.625,r:.5490196078431373,g:.4196078431372549,b:.6941176470588235},{x:.75,r:.5333333333333333,g:.2549019607843137,b:.615686274509804},{x:.875,r:.5058823529411764,g:.05882352941176471,b:.4862745098039216},{x:1,r:.3019607843137255,g:0,b:.2941176470588235}],range:[0,1]},ocean:{controlpoints:[{x:0,r:.039215,g:.090195,b:.25098},{x:.125,r:.133333,g:.364706,b:.521569},{x:.25,r:.321569,g:.760784,b:.8},{x:.375,r:.690196,g:.960784,b:.894118},{x:.5,r:.552941,g:.921569,b:.552941},{x:.625,r:.329412,g:.6,b:.239216},{x:.75,r:.211765,g:.34902,b:.078435},{x:.875,r:.011765,g:.207843,b:.023525},{x:1,r:.286275,g:.294118,b:.301961}],range:[0,1]},earth:{controlpoints:[{x:0,r:.392157,g:.392157,b:.392157},{x:.586175,r:.392157,g:.392157,b:.392157},{x:.589041,r:.141176,g:.345098,b:.478431},{x:.589042,r:.501961,g:.694118,b:.172549},{x:.617699,r:.74902,g:.560784,b:.188235},{x:.789648,r:.752941,g:.741176,b:.729412},{x:.993079,r:.796078,g:.780392,b:.772549},{x:1,r:.796078,g:.780392,b:.772549}],range:[0,1]}},swatches:{colors:[{r:255,g:255,b:255},{r:204,g:255,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:255,g:204,b:255},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:204,b:204},{r:153,g:255,b:255},{r:153,g:204,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:204,g:153,b:255},{r:255,g:153,b:255},{r:255,g:153,b:204},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:204,b:153},{r:255,g:255,b:153},{r:204,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:204},{r:204,g:204,b:204},{r:102,g:255,b:255},{r:102,g:204,b:255},{r:102,g:153,b:255},{r:102,g:102,b:255},{r:102,g:102,b:255},{r:102,g:102,b:255},{r:102,g:102,b:255},{r:102,g:102,b:255},{r:153,g:102,b:255},{r:204,g:102,b:255},{r:255,g:102,b:255},{r:255,g:102,b:204},{r:255,g:102,b:153},{r:255,g:102,b:102},{r:255,g:102,b:102},{r:255,g:102,b:102},{r:255,g:102,b:102},{r:255,g:102,b:102},{r:255,g:153,b:102},{r:255,g:204,b:102},{r:255,g:255,b:102},{r:204,g:255,b:102},{r:153,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:153},{r:102,g:255,b:204},{r:153,g:153,b:153},{r:51,g:255,b:255},{r:51,g:204,b:255},{r:51,g:153,b:255},{r:51,g:102,b:255},{r:51,g:51,b:255},{r:51,g:51,b:255},{r:51,g:51,b:255},{r:102,g:51,b:255},{r:153,g:51,b:255},{r:204,g:51,b:255},{r:255,g:51,b:255},{r:255,g:51,b:204},{r:255,g:51,b:153},{r:255,g:51,b:102},{r:255,g:51,b:51},{r:255,g:51,b:51},{r:255,g:51,b:51},{r:255,g:102,b:51},{r:255,g:153,b:51},{r:255,g:204,b:51},{r:255,g:255,b:51},{r:204,g:255,b:51},{r:153,g:255,b:51},{r:102,g:255,b:51},{r:51,g:255,b:51},{r:51,g:255,b:51},{r:51,g:255,b:51},{r:51,g:255,b:102},{r:51,g:255,b:153},{r:51,g:255,b:204},{r:153,g:153,b:153},{r:0,g:255,b:255},{r:0,g:204,b:255},{r:0,g:153,b:255},{r:0,g:102,b:255},{r:0,g:51,b:255},{r:0,g:0,b:255},{r:51,g:0,b:255},{r:102,g:0,b:255},{r:153,g:0,b:255},{r:204,g:0,b:255},{r:255,g:0,b:255},{r:255,g:0,b:204},{r:255,g:0,b:153},{r:255,g:0,b:102},{r:255,g:0,b:51},{r:255,g:0,b:0},{r:255,g:51,b:0},{r:255,g:102,b:0},{r:255,g:153,b:0},{r:255,g:204,b:0},{r:255,g:255,b:0},{r:204,g:255,b:0},{r:153,g:255,b:0},{r:102,g:255,b:0},{r:51,g:255,b:0},{r:0,g:255,b:0},{r:0,g:255,b:51},{r:0,g:255,b:102},{r:0,g:255,b:153},{r:0,g:255,b:204},{r:102,g:102,b:102},{r:0,g:204,b:204},{r:0,g:204,b:204},{r:0,g:153,b:204},{r:0,g:102,b:204},{r:0,g:51,b:204},{r:0,g:0,b:204},{r:51,g:0,b:204},{r:102,g:0,b:204},{r:153,g:0,b:204},{r:204,g:0,b:204},{r:204,g:0,b:204},{r:204,g:0,b:204},{r:204,g:0,b:153},{r:204,g:0,b:102},{r:204,g:0,b:51},{r:204,g:0,b:0},{r:204,g:51,b:0},{r:204,g:102,b:0},{r:204,g:153,b:0},{r:204,g:204,b:0},{r:204,g:204,b:0},{r:204,g:204,b:0},{r:153,g:204,b:0},{r:102,g:204,b:0},{r:51,g:204,b:0},{r:0,g:204,b:0},{r:0,g:204,b:51},{r:0,g:204,b:102},{r:0,g:204,b:153},{r:0,g:204,b:204},{r:102,g:102,b:102},{r:0,g:153,b:153},{r:0,g:153,b:153},{r:0,g:153,b:153},{r:0,g:102,b:153},{r:0,g:51,b:153},{r:0,g:0,b:153},{r:51,g:0,b:153},{r:102,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:102},{r:153,g:0,b:51},{r:153,g:0,b:0},{r:153,g:51,b:0},{r:153,g:102,b:0},{r:153,g:153,b:0},{r:153,g:153,b:0},{r:153,g:153,b:0},{r:153,g:153,b:0},{r:153,g:153,b:0},{r:102,g:153,b:0},{r:51,g:153,b:0},{r:0,g:153,b:0},{r:0,g:153,b:51},{r:0,g:153,b:102},{r:0,g:153,b:153},{r:0,g:153,b:153},{r:51,g:51,b:51},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:51,b:102},{r:0,g:0,b:102},{r:51,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:51},{r:102,g:0,b:0},{r:102,g:51,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:51,g:102,b:0},{r:0,g:102,b:0},{r:0,g:102,b:51},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:0,b:0},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:0,g:51,b:0},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:51,g:51,b:51}],columns:31,rows:9}}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(166),s=r(i),l=n(15),u=r(l),c={CHANGE:"LookupTable.change",ACTIVE_CHANGE:"LookupTable.active.change",LIST_CHANGE:"LookupTable.list.change"},f=function(){function t(){var e=this;o(this,t),this.luts={},this.lutSubscriptions={},this.onChangeCallback=function(t,n){e.emit(c.CHANGE,t)}}return a(t,[{key:"addLookupTable",value:function(e,t,n){this.activeField||(this.activeField=e);var r=this.luts[e];return void 0===r&&(r=new s["default"](e),this.luts[e]=r,this.lutSubscriptions[e]=r.onChange(this.onChangeCallback)),r.setPreset(n||"spectralflip"),r.setScalarRange(t[0],t[1]),this.emit(c.LIST_CHANGE,this),r}},{key:"removeLookupTable",value:function(e){this.luts.hasOwn(e)&&(this.lutSubscriptions[e].unsubscribe(),this.luts[e].destroy(),delete this.luts[e],delete this.lutSubscriptions[e],this.emit(c.LIST_CHANGE,this))}},{key:"updateActiveLookupTable",value:function(t){var n=this;e(function(){n.emit(c.ACTIVE_CHANGE,t)}),this.activeField=t}},{key:"getLookupTable",value:function(e){return this.luts[e]}},{key:"addFields",value:function(e,t){for(var n in e){var r=this.addLookupTable(n,e[n]);t&&t[n]&&(void 0!==t[n].discrete&&(r.discrete=t[n].discrete),t[n].preset?r.setPreset(t[n].preset):t[n].controlpoints&&r.updateControlPoints(t[n].controlpoints),t[n].range&&r.setScalarRange(t[n].range[0],t[n].range[1]))}}},{key:"getActiveField",value:function(){return this.activeField}},{key:"onChange",value:function(e){return this.on(c.CHANGE,e)}},{key:"onFieldsChange",value:function(e){return this.on(c.LIST_CHANGE,e)}},{key:"onActiveLookupTableChange",value:function(e){return this.on(c.ACTIVE_CHANGE,e)}}]),t}();t["default"]=f,u["default"].mixInto(f)}).call(t,n(66).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(166),a=r(o),i=n(317),s=r(i);t["default"]={LookupTable:a["default"],LookupTableManager:s["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=r(o),i=n(112),s=r(i),l=n(167),u=r(l),c=n(168),f=r(c),p=n(169),d=r(p),h=n(68),g=r(h),m=n(170),v=r(m),_=n(55),y=r(_),b=n(37),w=r(b),x=n(171),C=r(x),E=n(50),T=r(E);t["default"]={CanvasOffscreenBuffer:a["default"],Convert:s["default"],ConvertProxyProperty:u["default"],Debounce:f["default"],ImageExporter:d["default"],Loop:g["default"],Observable:v["default"],PingPong:y["default"],SizeHelper:w["default"],Validate:C["default"],WebGl:T["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(15),s=r(i),l="pipeline.change",u="opacity.change",c="ABCDEFGHIJKLMNOPQRSTUVWXYZ",f=function(){function e(t){function n(e){if(!s||e.length>1)return!0;var t=c.indexOf(e[0]);return"_"!==s[2*t+1]}function r(e){if(!s||e.length>1)return l[e][0];var t=c.indexOf(e[0]),n=s[2*t+1];return"_"===n?l[e][0]:n}var a=this,i=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];o(this,e),this.originalData=t,this.visibilityState={},this.activeState={},this.editMode={},this.activeColors={},this.noTrigger=!0,this.handleOpacity=i,this.opacityMap={},this.nbLayers=0;var s=t.CompositePipeline.default_pipeline,l=t.CompositePipeline.layer_fields,u={};t.CompositePipeline.pipeline.forEach(function(e){u[e.ids.join("")]=!0,a.setLayerVisible(e.ids.join(""),n(e.ids.join("")))}),t.CompositePipeline.layers.forEach(function(e){a.activeState[e]=u[e]?!0:n(e),a.activeColors[e]=r(e),a.opacityMap[e]=100,a.nbLayers++}),this.noTrigger=!1,this.triggerChange()}return a(e,[{key:"onChange",value:function(e){return this.on(l,e)}},{key:"onOpacityChange",value:function(e){return this.on(u,e)}},{key:"TopicChange",value:function(){return l}},{key:"triggerChange",value:function(){if(!this.noTrigger){var e=this.getPipelineQuery();this.emit(l,e)}}},{key:"isLayerActive",value:function(e){return this.activeState[e]}},{key:"setLayerActive",value:function(e,t){this.activeState[e]!==t&&(this.activeState[e]=t,this.triggerChange())}},{key:"toggleLayerActive",value:function(e){this.activeState[e]=!this.activeState[e],this.triggerChange()}},{key:"isLayerVisible",value:function(e){return this.visibilityState[e]}},{key:"setLayerVisible",value:function(e,t){if(this.visibilityState[e]!==t){this.visibilityState[e]=t;for(var n=e.length;n--;)this.visibilityState[e[n]]=t;this.triggerChange()}}},{key:"toggleLayerVisible",value:function(e){this.setLayerVisible(e,!this.visibilityState[e])}},{key:"toggleEditMode",value:function(e){this.editMode[e]=!this.editMode[e],this.triggerChange()}},{key:"isLayerInEditMode",value:function(e){for(var t in this.editMode)if(this.editMode[t]&&-1!==t.indexOf(e))return!0;return!1}},{key:"getColor",value:function(e){return this.originalData.CompositePipeline.layer_fields[e[0]]}},{key:"getColorToLabel",value:function(e){return this.originalData.CompositePipeline.fields[e]}},{key:"isActiveColor",value:function(e,t){return this.activeColors[e[0]]===t}},{key:"setActiveColor",value:function(e,t){for(var n=e.length;n--;)this.activeColors[e[n]]=t;this.triggerChange()}},{key:"getPipelineQuery",value:function(){var e=this,t="";return this.originalData.CompositePipeline.layers.forEach(function(n){var r=e.isLayerActive(n)&&e.isLayerVisible(n)?e.activeColors[n]:"_";t+=n,t+=r}),t}},{key:"getPipelineDescription",value:function(){return this.originalData.CompositePipeline.pipeline}},{key:"getOpacity",value:function(e){return this.opacityMap[e]}},{key:"hasOpacity",value:function(){return this.handleOpacity}},{key:"setOpacity",value:function(e,t){if(this.opacityMap[e]!==t){this.opacityMap[e]=t;for(var n=[],r=0;r<this.nbLayers;++r)n.push(this.opacityMap[c[r]]/100);this.emit(u,n)}}},{key:"resetOpacity",value:function(e){for(var t in this.opacityMap)this.opacityMap[t]=e;for(var n=[],r=0;r<this.nbLayers;++r)n.push(this.opacityMap[c[r]]/100);this.emit(u,n)}}]),e}();t["default"]=f,s["default"].mixInto(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(172),a=r(o),i=n(320),s=r(i),l=n(113),u=r(l);t["default"]={EqualizerState:a["default"],PipelineState:s["default"],ToggleState:u["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(318),a=r(o),i=n(319),s=r(i),l=n(321),u=r(l);t["default"]={Core:a["default"],Misc:s["default"],State:u["default"]}},function(e,t){"use strict";function n(){this.keyPatternMap={}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,n.prototype.registerPattern=function(e,t){this.keyPatternMap[e]=t},n.prototype.unregisterPattern=function(e){delete this.keyPatternMap[e]},n.prototype.getValue=function(e,t){var n=this.keyPatternMap[e],r=["{","}"];for(var o in t)n=n.replace(r.join(o),t[o]);return n}},function(e,t){"use strict";function n(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType=t.type,n.onload=function(e){return 200===this.status?t.fn(null,n):void t.fn(e,n)},n.onerror=function(e){t.fn(e,n)},n.send()}function r(e){return{type:"arraybuffer",fn:function(t,n){return t?e(t):void e(null,n.response)}}}function o(e){return{type:"text",fn:function(t,n){return t?e(t):void e(null,n.response)}}}function a(e){return{type:"text",fn:function(t,n){return t?e(t):void e(null,JSON.parse(n.response))}}}function i(e,t){return{type:"blob",fn:function(n,r){if(n)return t(n);var o=new Blob([r.response],{type:e});t(null,o)}}}function s(e,t){n(e,a(t))}function l(e,t){n(e,o(t))}function u(e,t,r){n(e,i(t,r))}function c(e,t){n(e,r(t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={fetchJSON:s,fetchTxt:l,fetchBlob:u,fetchArray:c}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(114),s=r(i),l=n(15),u=r(l),c=new s["default"],f="object-ready",p=0,d=function(){ -function e(t){var n=this;o(this,e),p++,this.basepath=t,this.id=["GeometryDataModel",p].join("_"),this.coloByMapping={},this.currentScene=null,this.sceneData={},this.dataMapping={},c.on(this.id,function(e,t){var r=e.requestedURL,o=n.dataMapping[r];if(o){var a=n.sceneData[o.name],i=!0;n.sceneData[o.name][o.field]=new window[o.type](e.data);for(var s in a)null===a[s]&&(i=!1);i&&n.geometryReady(a)}})}return a(e,[{key:"onGeometryReady",value:function(e){return this.on(f,e)}},{key:"geometryReady",value:function(e){this.emit(f,e)}},{key:"colorGeometryBy",value:function(e,t){var n=!1;t?(n=this.coloByMapping[e]!==t,this.coloByMapping[e]=t):delete this.coloByMapping[e],n&&this.loadScene(this.currentScene)}},{key:"loadScene",value:function(e){var t=this;this.currentScene=e,e&&!function(){t.dataMapping={},t.sceneData={};var n=t.sceneData;e.forEach(function(e){var r=e.name,o=[],a=null;n[r]={name:r,points:null,index:null},a=t.basepath+e.points,t.dataMapping[a]={name:r,field:"points",type:e.points.split(".").slice(-1)[0]},o.push(a),a=t.basepath+e.index,t.dataMapping[a]={name:r,field:"index",type:e.index.split(".").slice(-1)[0]},o.push(a),t.coloByMapping[r]&&(n[r].field=null,n[r].fieldName=t.coloByMapping[r],a=t.basepath+e.fields[t.coloByMapping[r]],t.dataMapping[a]={name:r,field:"field",type:e.fields[t.coloByMapping[r]].split(".").slice(-1)[0]},o.push(a)),o.forEach(function(e){c.fetchURL(e,"array",null,t.id)})})}()}}]),e}();t["default"]=d,u["default"].mixInto(d)},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){var n=e.idx+e.direction*t;return n>=e.values.length&&(e.direction*=-1,n=e.values.length-2),0>n&&(e.direction*=-1,n=1),n>=0&&n<e.values.length&&(e.idx=n),!0}function i(e,t){return e.idx=(e.values.length+e.idx+t)%e.values.length,!0}function s(e,t){var n=e.idx+t;return n>=e.values.length&&(n=e.values.length-1),0>n&&(n=0),e.idx!==n?(e.idx=n,!0):!1}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(114),c=r(u),f=n(136),p=r(f),d=n(76),h=r(d),g=n(631),m=r(g),v=n(15),_=r(v),y=n(247),b=r(y),w=n(632),x=r(w),C=n(633),E=r(C),T=new c["default"],P="_",k=0,M=function(){function t(n,r){var l=this;o(this,t),this.originalData=n,this.basepath=r,this.id="QueryDataModel_"+ ++k+":",this.args={},this.externalArgs={},this.dataCount={},this.categories={},this.requests=[],this.keepAnimating=!1,this.animationTimerId=0,this.mouseListener=null,this.dataMetadata={},this.lazyFetchRequest=null,this.playNext=function(){if(l.keepAnimating){var e=!1;l.lastPlay=+new Date;for(var t in l.args)l.args[t].anime&&(e=l.next(t)||e);e?l.lazyFetchData():(l.keepAnimating=!1,l.emit("state.change.play",{instance:l}))}else l.emit("state.change.play",{instance:l})};var u=function(t){var n={},r=t.urls.length,o=!1,a=!1;for(0!==l.animationTimerId&&(clearTimeout(l.animationTimerId),l.animationTimerId=0);r--;){var i=t.urls[r];n[i.key]=T.get(i.url),n[i.key]?o=o||n[i.key].pending:a=!0}if(o?e(function(){l.requests.push(t)}):a||(l.emit(t.category,n),0===l.requests.length&&l.lazyFetchRequest&&(l.fetchData(l.lazyFetchRequest),l.lazyFetchRequest=null)),l.keepAnimating){var s=+new Date;l.animationTimerId=setTimeout(l.playNext,s-l.lastPlay>l.deltaT?0:l.deltaT)}},c=function(t,n){if(l.dataCount[n.topic]++,t.url&&"blob"===t.type&&-1!==t.data.type.indexOf("image")&&void 0===t.image&&(t.image=new Image,t.image.src=t.url),t.error)return l.emit("error",n);var r=(0,m["default"])(l.dataCount),o=(0,h["default"])(l.dataCount),a=(0,E["default"])(l.dataCount);r!==o||(1===a?0!==r:0)||e(function(){for(;l.requests.length;)u(l.requests.pop())})};for(var f in n.arguments){var d=n.arguments[f];this.args[f]={label:d.label?d.label:f,idx:d["default"]?d["default"]:0,direction:1,anime:!1,values:d.values,ui:d.ui?d.ui:"list",delta:d.loop?"reverse"===d.loop?a:"modulo"===d.loop?i:s:s}}n.data.forEach(function(e){var t=l.id+e.name;l.dataMetadata[e.name]=e.metadata||{},(e.categories||[P]).forEach(function(e){(0,p["default"])(l.categories,e)?l.categories[e].push(t):l.categories[e]=[t]}),T.registerURL(t,(e.absolute?"":r)+e.pattern,e.type,e.mimeType),T.on(t,c),l.dataCount[t]=0}),this.exploreState={order:n.arguments_order.map(function(e){return e}).reverse(),idxs:n.arguments_order.map(function(e){return 0}),sizes:n.arguments_order.map(function(e){return l.getSize(e)}).reverse(),onDataReady:!0,animate:!1},this.explorationSubscription=this.onDataChange(function(){l.exploreState.animate&&l.exploreState.onDataReady&&e(function(e){return l.nextExploration()})})}return l(t,[{key:"getDataMetaData",value:function(e){return this.dataMetadata[e]}},{key:"getQuery",value:function(){var e={};for(var t in this.args){var n=this.args[t];e[t]=n.values[n.idx]}for(var r in this.externalArgs)e[r]=this.externalArgs[r];return e}},{key:"fetchData",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?P:arguments[0],n=[],r=this.getQuery(),o={urls:[]};t.name?(o.category=t.name,t.categories.forEach(function(t){e.categories[t]&&(n=n.concat(e.categories[t]))})):this.categories[t]&&(o.category=t,n=n.concat(this.categories[t])),n.length&&this.requests.push(o),n.forEach(function(t){e.dataCount[t]--,o.urls.push({key:t.slice(e.id.length),url:T.fetch(t,r)})})}},{key:"lazyFetchData",value:function(){var e=arguments.length<=0||void 0===arguments[0]?P:arguments[0];this.lazyFetchRequest||this.requests.length>0?this.lazyFetchRequest=e:this.fetchData(e)}},{key:"first",value:function(e){var t=this.args[e];return t&&0!==t.idx?(t.idx=0,this.emit("state.change.first",{value:t.values[t.idx],idx:t.idx,name:e,instance:this}),!0):!1}},{key:"last",value:function n(e){var t=this.args[e],n=t.values.length-1;return t&&t.idx!==n?(t.idx=n,this.emit("state.change.last",{value:t.values[t.idx],idx:t.idx,name:e,instance:this}),!0):!1}},{key:"next",value:function(e){var t=this.args[e];return t&&t.delta(t,1)?(this.emit("state.change.next",{delta:1,value:t.values[t.idx],idx:t.idx,name:e,instance:this}),!0):!1}},{key:"previous",value:function(e){var t=this.args[e];return t&&t.delta(t,-1)?(this.emit("state.change.previous",{delta:-1,value:t.values[t.idx],idx:t.idx,name:e,instance:this}),!0):!1}},{key:"setValue",value:function(e,t){var n=this.args[e],r=n?n.values.indexOf(t):0;return n&&-1!==r&&r!==n.idx?(n.idx=r,this.emit("state.change.value",{value:n.values[n.idx],idx:n.idx,name:e,instance:this}),!0):void 0===n&&this.externalArgs[e]!==t?(this.externalArgs[e]=t,this.emit("state.change.value",{value:t,name:e,external:!0,instance:this}),!0):!1}},{key:"setIndex",value:function(e,t){var n=this.args[e];return n&&t>-1&&t<n.values.length&&n.idx!==t?(n.idx=t,this.emit("state.change.idx",{value:n.values[n.idx],idx:n.idx,name:e,instance:this}),!0):!1}},{key:"getValue",value:function(e){var t=this.args[e];return t?t.values[t.idx]:this.externalArgs[e]}},{key:"getValues",value:function(e){var t=this.args[e];return t?t.values:null}},{key:"getIndex",value:function(e){var t=this.args[e];return t?t.idx:null}},{key:"getUiType",value:function(e){var t=this.args[e];return t?t.ui:null}},{key:"getSize",value:function(e){var t=this.args[e];return t?t.values.length:null}},{key:"label",value:function(e){var t=this.args[e];return t?t.label:null}},{key:"getAnimationFlag",value:function(e){var t=this.args[e];return t?t.anime:!1}},{key:"setAnimationFlag",value:function(e,t){var n=this.args[e];return n&&n.anime!==t?(n.anime=t,this.emit("state.change.animation",{animation:n.anim,name:n.name,instance:this}),!0):!1}},{key:"toggleAnimationFlag",value:function(e){var t=this.args[e];return t?(t.anime=!t.anime,this.emit("state.change.animation",{animation:t.anim,name:t.name,instance:this}),t.anime):null}},{key:"hasAnimationFlag",value:function(){for(var e in this.args)if(this.args[e].anime)return!0;return!1}},{key:"isAnimating",value:function(){return this.keepAnimating}},{key:"animate",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?500:arguments[1];this.deltaT=t,e!==this.keepAnimating&&(this.keepAnimating=e,this.playNext())}},{key:"getMouseListener",value:function(){function e(e,r){for(var o=n[e.topic],a=(0,b["default"])(),i=t.lastTime[e.topic]+t.newMouseTimeout<a,s=o.length,l=!1,u=!1;s--;){var c=o[s],f=0===c.coordinate?"deltaX":"deltaY";if(i&&(c.lastCoord=0),c.modifier&e.modifier||c.modifier===e.modifier){u=!0;var p=e[f]-c.lastCoord;t.lastTime[e.topic]=a,Math.abs(p)>c.step&&(c.lastCoord=Number(e[f]),l=c.orientation*p>0?t.next(c.name)||l:t.previous(c.name)||l)}}return l&&t.lazyFetchData(),u}if(this.mouseListener)return this.mouseListener;this.lastTime={},this.newMouseTimeout=250;var t=this,n={};for(var r in this.originalData.arguments){var o=this.originalData.arguments[r];if(o.bind&&o.bind.mouse)for(var a in o.bind.mouse){var i=(0,x["default"])(o.bind.mouse[a]);i.name=r,i.lastCoord=0,void 0===i.orientation&&(i.orientation=1),n[a]?n[a].push(i):n[a]=[i]}}this.mouseListener={};for(var s in n)this.mouseListener[s]=e,this.lastTime[s]=(0,b["default"])();return this.mouseListener}},{key:"onStateChange",value:function(e){return this.on("state.change.*",e)}},{key:"onDataChange",value:function(e){return this.on(P,e)}},{key:"clone",value:function(){return new t(this.originalData,this.basepath)}},{key:"destroy",value:function(){this.off(),this.explorationSubscription.unsubscribe(),this.explorationSubscription=null}},{key:"exploreQuery",value:function(){var e=arguments.length<=0||void 0===arguments[0]?!0:arguments[0],t=this,n=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?!0:arguments[2];n?this.exploreState.idxs=this.exploreState.order.map(function(e){return 0}):this.exploreState.idxs=this.exploreState.order.map(function(e){return t.getIndex(e)}),this.exploreState.onDataReady=r,this.exploreState.animate=e,this.exploreState.animate&&this.nextExploration(),this.emit("state.change.exploration",{exploration:this.exploreState,instance:this})}},{key:"nextExploration",value:function(){var e=this;if(this.exploreState.animate){this.exploreState.order.forEach(function(t,n){e.setIndex(t,e.exploreState.idxs[n])});var t=this.exploreState.idxs,n=this.exploreState.sizes,r=t.length;for(t[r-1]++;r--;)if(!(t[r]<n[r])){if(!(r>0))return this.exploreState.animate=!1,this.emit("state.change.exploration",{exploration:this.exploreState,instance:this}),this.exploreState.animate;t[r]=0,t[r-1]++}this.lazyFetchData()}return this.exploreState.animate}},{key:"setCacheSize",value:function(e){T.cacheSize=e}},{key:"getCacheSize",value:function(){return T.cacheSize}},{key:"getMemoryUsage",value:function(){return T.cacheData.size}},{key:"link",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]?null:arguments[1],r=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return e.onStateChange(function(e,o){void 0!==e.name&&void 0!==e.value&&(null!==n&&-1===n.indexOf(e.name)||t.setValue(e.name,e.value)&&r&&t.lazyFetchData())})}}]),t}();t["default"]=M,_["default"].mixInto(M)}).call(t,n(66).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(114),a=r(o),i=n(325),s=r(i),l=n(173),u=r(l),c=n(326),f=r(c);t["default"]={DataManager:a["default"],GeometryDataModel:s["default"],ProcessLauncher:u["default"],QueryDataModel:f["default"]}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=e.mustContain,o=e.busy,a=e.encodeQueryAsString;return{listAssetStores:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=["limit","offset","sort","sortdir"],o=n(e,r);return t._.get("/assetstore",{params:o})},createAssetStore:function(e){var i=["name","type"],s=["root","db","bucket","prefix","accessKeyId","secretKey","service"],l=n(e,[].concat(i,s)),u=r.apply(void 0,[e].concat(i)),c=u.missingKeys,f=u.promise;return c?f:o(t._.post("/assetstore"+a(l)))},updateAssetStore:function(e){var r=["name","root","db","current","_id"],o=n(e,r.slice(0,r.length-1));return t._.put("/assetstore/"+e._id,{params:o})},deleteAssetStore:function(e){return t._["delete"]("/assetstore/"+e)}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=e.mustContain,o=e.busy,a=e.encodeQueryAsString;return{listCollections:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=["text","limit","offset","sort","sortdir"],o=n.apply(void 0,[e].concat(r));return t._.get("/collection",{params:o})},createCollection:function(e){var i=["name","description","public"],s=n.apply(void 0,[e].concat(i)),l=r.apply(void 0,[s].concat(i)),u=l.missingKeys,c=l.promise;return u?o(t._.post("/collection"+a(s))):c},deleteCollection:function(e){return o(t._["delete"]("/collection/"+e))},getCollection:function(e){return o(t._.get("/collection/"+e))},editCollection:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=["name","description"],s=n.apply(void 0,[e].concat(i)),l=r(e,"_id"),u=l.missingKeys,c=l.promise;return u?o(t._.put("/collection/"+e._id+a(s))):c},getCollectionAccess:function(e){return o(t._.get("/collection/"+e+"/access"))},editCollectionAccess:function(e){var i=["access","public"],s=n.apply(void 0,[e].concat(i)),l=r(e,"_id"),u=l.missingKeys,c=l.promise;return u?o(t._.put("/collection/"+e._id+"/access"+a(s))):c}}}},function(e,t){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){function t(e,t,r){var a=n,i=new FormData;return i.append("uploadId",e),i.append("offset",t),i.append("chunk",r),s(o._.post("/file/chunk",i,{transformRequest:a}))}function r(e,n){return new Promise(function(r,a){s(o._.post("/file"+l(e))).then(function(e){var o,i=10485760,s=0,l=Math.floor(n.size/i);(o=function(c){var f;u(c,n.size),c+i>=n.size?(f=n.slice(c),t(e.data._id,c,f).then(function(e){u(n.size,n.size),r(e)})["catch"](function(e){console.warn("could not upload final chunk"),console.warn(e),a(e)})):(f=n.slice(c,c+i),t(e.data._id,c,f).then(function(e){var t="";s+=1,t+="chunk "+s+" of "+l+" uploaded",o(c+i)})["catch"](function(e){console.warn("could not upload chunk"),console.warn(e),a(e)}))})(0)})["catch"](function(e){console.warn("Could not upload file"),console.warn(e),a(e)})})}var o=e.client,a=e.filterQuery,i=e.mustContain,s=e.busy,l=e.encodeQueryAsString,u=e.progress;return{uploadFileToItem:r,getUploadOffset:function(e){return s(o._.get("/file/offset",{params:{uploadId:e}}))},downloadFile:function(e){return s(o._.get("/file/"+e+"/download"))},updateFileContent:function(e,t){return s(o._.put("/file/"+e+"/contents?size="+t))},deleteFile:function(e){return s(o._["delete"]("/file/"+e))},editFile:function(e){var t=["name","mimeType"],n=a.apply(void 0,[e].concat(t)),r=i(e,"_id"),u=r.missingKeys,c=r.promise;return u?s(o._.put("/file/"+e._id+l(n))):c},newFile:function(e){var t=["parentType","parentId","name","size","mimeType","linkUrl"],n=a.apply(void 0,[e].concat(t)),r=i(e,"parentType","parentId","name"),u=r.missingKeys,c=r.promise;return u?s(o._.post("/file"+l(n))):c}}}},function(e,t){"use strict";function n(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,r=e.filterQuery,o=e.mustContain,a=e.busy,i=e.encodeQueryAsString;return{listFolders:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=["parentType","parentId","text","limit","offset","sort","sortdir"],o=r.apply(void 0,[e].concat(n));return a(t._.get("/folder",{params:o}))},createFolder:function(e){var n=["parentType","parentId","name","description","public"],s=r.apply(void 0,[e].concat(n)),l=o(e,"parentType","parentId","name"),u=l.missingKeys,c=l.promise;return u?a(t._.post("/folder"+i(s))):c},editFolderMetaData:function(e,r){return a(t._.put("/folder/"+e,r,{transformRequest:n}))},deleteFolder:function(e){return a(t._["delete"]("/folder/"+e))},getFolder:function(e){return a(t._.get("/folder/"+e))},editFolder:function(e){var n=["parentType","parentId","name","description"],s=r.apply(void 0,[e].concat(n)),l=o(e,"_id"),u=l.missingKeys,c=l.promise;return u?a(t._.put("/folder/"+e._id+i(s))):c},downloadFolder:function(e){return a(t._.get("/folder/"+e+"/download"))},getFolderAccess:function(e){return a(t._.get("/folder/"+e+"/access"))},editFolderAccess:function(e){var n=["access","public"],s=r.apply(void 0,[e].concat(n)),l=o(e,"_id"),u=l.missingKeys,c=l.promise;return u?a(t._.put("/folder/"+e._id+"/access"+i(s))):c}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=e.mustContain,o=e.busy,a=e.encodeQueryAsString;return{updateGroupModerator:function(e,n,r){var o="/group/"+e+"/moderator?userId="+n;return r?t._.post(o):t._["delete"](o)},updateGroupAdmin:function(e,n,r){var o="/group/"+e+"/admin?userId="+n;return r?t._.post(o):t._["delete"](o)},createGroup:function(e){var i=["name","description","public"],s=n.apply(void 0,[e].concat(i)),l=r(s,"name"),u=l.missingKeys,c=l.promise;return u?o(t._.post("/group"+a(s))):c},deleteGroup:function(e){return o(t._["delete"]("/group/"+e))},getGroup:function(e){return o(t._.get("/group/"+e))},editGroup:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=["name","description","public"],s=n.apply(void 0,[e].concat(i)),l=r(e,"_id"),u=l.missingKeys,c=l.promise;return u?o(t._.put("/group/"+e._id+a(s))):c},listGroupInvitations:function(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=["limit","offset","sort","sortdir"],i=n.apply(void 0,[r].concat(a));return o(t._.get("/group/"+e+"/invitation",{params:i}))},addGroupInvitation:function(e){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=["userId","level","quiet"],l=n.apply(void 0,[i].concat(s)),u=r(l,"userId"),c=u.missingKeys,f=u.promise;return c?o(t._.post("/group/"+e+"/invitation"+a(l))):f},listGroupMembers:function(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=["limit","offset","sort","sortdir"],i=n.apply(void 0,[r].concat(a));return o(t._.get("/group/"+e+"/member",{params:i}))},removeUserFromGroup:function(e,n){var r={userId:n};return o(t._["delete"]("/group/"+e+"/member",{params:r}))},joinGroup:function(e){return o(t._.post("/group/"+e+"/member"))},getGroupAccess:function(e){return o(t._.get("/group/"+e+"/access"))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(328),a=r(o),i=n(329),s=r(i),l=n(330),u=r(l),c=n(331),f=r(c),p=n(332),d=r(p),h=n(334),g=r(h),m=n(335),v=r(m),_=n(336),y=r(_),b=n(337),w=r(b);t["default"]=[a["default"],s["default"],u["default"],f["default"],d["default"],g["default"],v["default"],y["default"],w["default"]]},function(e,t){"use strict";function n(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,r=e.filterQuery,o=e.mustContain,a=e.busy,i=e.encodeQueryAsString;return{downloadItem:function(e){return a(t._.get("/item/"+e+"/download"))},updateItemMetadata:function(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a(t._.put("/item/"+e+"/metadata",r,{transformRequest:n}))},listItems:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=["folderId","text","limit","offset","sort","sortdir"],o=r(e,n);return a(t._.get("/item",{params:o}))},createItem:function(e,n){var r=arguments.length<=2||void 0===arguments[2]?"":arguments[2],o={folderId:e,name:n,description:r};return a(t._.post("/item"+i(o)))},listFiles:function(e,n){var o=["limit","offset","sort"],i=r(n,o);return e?a(t._.get("/item/"+e+"/files",{params:i})):new Promise(function(e,t){return t("No argument id provided")})},getItemRootPath:function(e){return a(t._.get("/item/"+e+"/rootpath"))},getItem:function(e){return a(t._.get("/item/"+e))},deleteItem:function(e){return a(t._["delete"]("/item/"+e))},editItem:function(e){var n=["folderId","name","description"],s=r.apply(void 0,[e].concat(n)),l=o(s,"_id"),u=l.missingKeys,c=l.promise;return u?a(t._.put("/item/"+e._id+i(s))):c},copyItem:function(e,n){var s=["folderId","name","description"],l=r.apply(void 0,[n].concat(s)),u=o(l,"folderId"),c=u.missingKeys,f=u.promise;return c?a(t._.post("/item/"+e+"/copy"+i(l))):f}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=(e.filterQuery,e.mustContain,e.busy);e.encodeQueryAsString;return{downloadResources:function(e){var r=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],o={resourceList:JSON.toString(e),withMetadata:r};return n(t._.get("/resource/download",{params:o}))},searchResources:function(e,r){var o={q:JSON.toString(e),types:JSON.toString(r)};return n(t._.get("/resource/search",{params:o}))},deleteResources:function(e){var r={resources:JSON.toString(e)};return n(t._["delete"]("/resource",{params:r}))}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=(e.mustContain,e.busy),o=e.encodeQueryAsString;return{deleteSetting:function(e){return r(t._["delete"]("/system/setting"+o({key:e})))},getSettings:function(e){var o=["key","list","default"],a=n.apply(void 0,[e].concat(o));return r(t._.get("/system/setting",{params:a}))},setSettings:function(e){var n=Object.keys(e).map(function(t){var n=e[t];return{key:t,value:n}});return r(t._.put("/system/setting"+o({list:n})))},getServerVersion:function(){return r(t._.get("/system/version"))},listUnfinishedUpload:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=["uploadId","userId","parentId","assetstoreId","minimumAge","includeUntracked","limit","offset","sort","sortdir"],a=n.apply(void 0,[e].concat(o));return r(t._.get("/system/uploads",{params:a}))},removeUnfinishedUpload:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],a=["uploadId","userId","parentId","assetstoreId","minimumAge","includeUntracked"],i=n.apply(void 0,[e].concat(a));return r(t._["delete"]("/system/uploads"+o(i)))},listPlugins:function(){return r(t._.get("/system/plugins"))},setActivePlugins:function(e){return r(t._.put("/system/plugins"+o({plugins:e})))}}}},function(e,t){"use strict";function n(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)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,r=e.filterQuery,o=e.mustContain,a=e.busy,i=e.encodeQueryAsString;return{listUsers:function(e){var n=r(e,"text","limit","offset","sort","sortdir");return a(t._.get("/user",{params:n}))},createUser:function(e){var n=["login","email","firstName","lastName","password","admin"],s=r.apply(void 0,[e].concat(n)),l=o.apply(void 0,[e].concat(n)),u=l.missingKeys,c=l.promise;return u?c:a(t._.post("/user"+i(s)))},changePassword:function(e,n){var r={old:e,"new":n};return a(t._.put("/user/password"+i(r)))},resetPassword:function(e){var n={email:e};return a(t._["delete"]("/user/password",{params:n}))},deleteUser:function(e){return a(t._["delete"]("/user/"+e))},getUser:function(e){return a(t._.get("/user/"+e))},updateUser:function(e){var s=["email","firstName","lastName","_id"],l=r.apply(void 0,[e].concat(n(s.slice(0,3)))),u=o.apply(void 0,[e].concat(s)),c=u.missingKeys,f=u.promise;return c?f:a(t._.put("/user/"+e._id+i(l)))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=Object.keys(e).map(function(t){return[encodeURIComponent(t),encodeURIComponent(e[t])].join("=")});return t.length?"?"+t.join("&"):""}function i(){for(var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t={},n=arguments.length,r=Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];return r.forEach(function(n){t[n]=e[n]}),t}function s(){for(var e,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=[],r=arguments.length,o=Array(r>1?r-1:0),a=1;r>a;a++)o[a-1]=arguments[a];return o.forEach(function(e){void 0===t[e]&&n.push(e)}),0===n.length?(n=void 0,e=new Promise(function(e,t){return e()})):e=new Promise(function(e,t){return t("Missing keys "+n.join(", "))}),{missingKeys:n,promise:e}}function l(){function e(t){Array.isArray(t)?t.forEach(e):!function(){var e=t(F);Object.keys(e).forEach(function(t){N[t]=e[t]})}()}var t,n,r,o=arguments.length<=0||void 0===arguments[0]?location:arguments[0],l=!1,u=null,f=0,p={},b=new v,w=function(){b.emit(h,--f)},x=function(e){return b.emit(h,++f),e.then(w,w),e},C=o.protocol,E=o.hostname,T=o.port,P=o.basepath,k=void 0===P?"/api/v1":P,M=C+"//"+E+":"+T+k,S=function W(){EventSource&&(u=new EventSource(M+"/notification/stream"),u.onmessage=function(e){var t=JSON.parse(e.data);b.emit(m,t)},u.onerror=function(e){setTimeout(function(){u&&2===u.readyState?W():u=null},1e4)})},D={extractLocalToken:function(){try{return document.cookie.split("girderToken=")[1].split(";")[0].trim()}catch(e){return}},updateGirderInstance:function(){var e=1e3,t={};n&&(t["Girder-Token"]=n),p._=c["default"].create({baseURL:M,timeout:e,headers:t})},updateAuthenticationState:function(e){l!==!!e&&(e||(t=void 0,n=void 0,p.user=t),l=!!e,A(),r=e?_():y(),b.emit(d,l),l&&null===u&&S())}},R=D.extractLocalToken,A=D.updateGirderInstance,I=D.updateAuthenticationState,O=function(e){var t=arguments.length<=1||void 0===arguments[1]?1:arguments[1];b.emit(g,{current:e,total:t})},N={login:function(e,r){var o={username:e,password:r};return x(p._.get("/user/authentication",{auth:o}).then(function(e){n=e.data.authToken.token,t=e.data.user,p.user=t,I(!0)}))},logout:function(){return x(p._["delete"]("/user/authentication").then(function(e){I(!1),document&&document.cookie&&(document.cookie="Girder-Token=;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},function(e){console.log("loggout error",e)}))},me:function(){return x(p._.get("/user/me"))},isLoggedIn:function(){return r},getLoggedInUser:function(){return t},onAuthChange:function(e){return b.on(d,e)},onBusy:function(e){return b.on(h,e)},onProgress:function(e){return b.on(g,e)},onEvent:function(e){return b.on(m,e)},destroy:function(){b.off()}};r=new Promise(function(e,r){n=o.token||R(),A(),n?N.me().then(function(n){t=n.data,p.user=t,I(!0),e()},function(e){I(!1),r()}):r()});for(var F={client:p,filterQuery:i,mustContain:s,notification:b,busy:x,encodeQueryAsString:a,progress:O},L=arguments.length,B=Array(L>1?L-1:0),j=1;L>j;j++)B[j-1]=arguments[j];return e(B),Object.freeze(N)}Object.defineProperty(t,"__esModule",{value:!0}),t.build=l;var u=n(301),c=r(u),f=n(15),p=r(f),d="girder.auth.change",h="girder.busy",g="girder.progress",m="girder.notification",v=function b(){o(this,b)};p["default"].mixInto(v);var _=function(){return new Promise(function(e,t){e()})},y=function(){return new Promise(function(e,t){t()})};t["default"]={build:l}},function(e,t){"use strict";function n(e){return JSON.stringify(e)}function r(e){return e.user?null:new Promise(function(e,t){return t({data:{message:"Must be logged in."}})})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,a=(e.filterQuery,e.mustContain,e.busy);return{listAWSProfiles:function(){return r(t)||a(t._.get("/user/"+t.user._id+"/aws/profiles"))},createAWSProfile:function(e){return r(t)||a(t._.post("/user/"+t.user._id+"/aws/profiles",e,{headers:o,transformRequest:n}))},updateAWSProfile:function(e){return r(t)||a(t._.patch("/user/"+t.user._id+"/aws/profiles/"+e._id,e,{headers:o,transformRequest:n}))},listAWSRunningInstances:function(e){return r(t)||a(t._.get("/user/"+t.user._id+"/aws/profiles/"+e+"/runninginstances"))},getAWSMaxInstances:function(e){return r(t)||a(t._.get("/user/"+t.user._id+"/aws/profiles/"+e+"/maxinstances"))},deleteAWSProfile:function(e){return r(t)||a(t._["delete"]("/user/"+t.user._id+"/aws/profiles/"+e))}}};var o={"Content-Type":"application/json"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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)}function a(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=e.mustContain,i=e.busy;return{listClusters:function(e){return i(t._.get("/clusters",{params:e}))},createCluster:function(e){return i(t._.post("/clusters",e,{transformRequest:a,headers:l}))},getCluster:function(e){return i(t._.get("/clusters/"+e))},updateCluster:function(e){var u=(0,s["default"])(e),c=["name","type","config","_id"],f=n.apply(void 0,[u].concat(o(c.slice(0,3)))),p=r.apply(void 0,[e].concat(c)),d=p.missingKeys,h=p.promise;return u.config.ssh&&u.config.ssh.user&&delete u.config.ssh.user,u.config.host&&delete u.config.host,d?h:i(t._.patch("/clusters/"+e._id,f,{transformRequest:a,headers:l}))},deleteCluster:function(e){return i(t._["delete"]("/clusters/"+e))},submitJob:function(e,t){console.log("Not implemented yet")},getClusterLogs:function(e){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1];return i(t._.get("/clusters/"+e+"/log",{param:{offset:n}}))},startCluster:function(e){return i(t._.put("/clusters/"+e+"/start"))},getClusterStatus:function(e){return i(t._.get("/clusters/"+e+"/status"))},terminateCluster:function(e){console.log("Not implemented yet")}}};var i=n(241),s=r(i),l={"Content-Type":"application/json"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(339),a=r(o),i=n(340),s=r(i),l=n(342),u=r(l),c=n(343),f=r(c),p=n(344),d=r(p),h=n(345),g=r(h);t["default"]=[a["default"],s["default"],u["default"],f["default"],d["default"],g["default"]]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=(e.filterQuery,e.mustContain,e.busy);return{getJobs:function(e,r){return n(e&&r?t._.get("/jobs?offset="+e+"&limit="+r):e?t._.get("/jobs?offset="+e):r?t._.get("/jobs?limit="+r):t._.get("/jobs"))},createJob:function(e){return n(t._.post("/jobs",e))},getJob:function(e){return n(t._.post("/jobs/"+e))},updateJob:function(e,r){return n(t._.patch("/jobs/"+e,r))},deleteJob:function(e){return n(t._["delete"]("/jobs/"+e))},getJobLog:function(e,r){return n(r?t._.get("/jobs/"+e+"/log?offset="+r):t._.get("/jobs/"+e+"/log"))},getJobOutput:function(e,r,o){return n(o?t._.get("/jobs/"+e+"/output?path="+r+"&offset="+o):t._.get("/jobs/"+e+"/output?path="+r))},getJobStatus:function(e){return n(t._.get("/jobs/"+e+"/status"))},terminateJob:function(e){return n(t._.put("/jobs/"+e+"/terminate"))}}}},function(e,t){"use strict";function n(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)}function r(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,a=e.filterQuery,i=e.mustContain,s=e.busy;return{listProjects:function(){return s(t._.get("/projects"))},createProject:function(e){var n=["name","type","steps","metadata"],r=i.apply(void 0,[e].concat(n)),o=r.missingKeys,a=r.promise;return o?a:s(t._.post("/projects",e))},getProject:function(e){return s(t._.get("/projects/"+e))},updateProject:function(e){var l=["name","description","metadata","_id"],u=a.apply(void 0,[e].concat(n(l.slice(0,3)))),c=i.apply(void 0,[e].concat(l)),f=c.missingKeys,p=c.promise;return f?p:s(t._.patch("/projects/"+e._id,u,{headers:o,transformRequest:r}))},deleteProject:function(e){ -return s(t._["delete"]("/projects/"+e))},shareProject:function(e){return s(t._.put("/projects/"+e+"/share"))},listSimulations:function(e){return s(t._.get("/projects/"+e+"/simulations"))},createSimulation:function(e,n){var i=["name","description","steps","active","disabled"],l=a.apply(void 0,[n].concat(i));return s(t._.post("/projects/"+e+"/simulations",l,{headers:o,transformRequest:r}))}}};var o={"Content-Type":"application/json"}},function(e,t){"use strict";function n(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)}function r(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,a=e.filterQuery,i=(e.mustContain,e.busy);return{getSimulation:function(e){return i(t._.get("/simulations/"+e))},editSimulation:function(e){var s=["name","description","active","disabled","_id"],l=a.apply(void 0,[e].concat(n(s.slice(0,4))));return i(t._.patch("/simulations/"+e._id,l,{headers:o,transformRequest:r}))},deleteSimulation:function(e){return i(t._["delete"]("/simulations/"+e))},cloneSimulation:function(e,n){var a=n.name,s=void 0===a?"Cloned simulation":a;return i(t._.post("/simulations/"+e+"/clone"),{name:s},{headers:o,transformRequest:r})},downloadSimulation:function(e){return i(t._.get("/simulations/"+e+"/download"))},getSimulationStep:function(e,n){return i(t._.get("/simulations/"+e+"/steps/"+n))},updateSimulationStep:function(e,n,a){return i(t._.patch("/simulations/"+e+"/steps/"+n,a,{headers:o,transformRequest:r}))}}};var o={"Content-Type":"application/json"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=(e.filterQuery,e.mustContain,e.busy);return{createTaskflow:function(e){return n(t._.post("/taskflows",{taskFlowClass:e}))},getTaskflow:function(e,r){return n(r?t._.get("/taskflows/"+e+"?path="+r):t._.get("/taskflows/"+e))},updateTaskflow:function(e,r){return n(t._.patch("/taskflows/"+e,r))},deleteTaskflow:function(e){return n(t._["delete"]("/taskflows/"+e))},startTaskflow:function(e,r){return n(t._.put("/taskflows/"+e+"/start",r))},getTaskflowStatus:function(e){return n(t._.get("/taskflows/"+e+"/status"))},getTaskflowTaskStatuses:function(e){return n(t._.get("/taskflows/"+e+"/tasks"))},createNewTaskForTaskflow:function(e,r){return n(t._.post("/taskflows/"+e+"/tasks",r))},endTaskflow:function(e){return n(t._.put("/taskflows/"+e+"/terminate"))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(333),a=r(o),i=n(338),s=r(i),l=n(341),u=r(l);t["default"]={CoreEndpoints:a["default"],GirderClientBuilder:s["default"],HpcCloudEndpoints:u["default"]}},function(e,t){"use strict";function n(e){return{getScalarBarVisibilities:function(t){return e.call("pv.color.manager.scalarbar.visibility.get",[t])},setScalarBarVisibilities:function(t){return e.call("pv.color.manager.scalarbar.visibility.set",[t])},rescaleTransferFunction:function(t){return e.call("pv.color.manager.rescale.transfer.function",[t])},getCurrentScalarRange:function(t){return e.call("pv.color.manager.scalar.range.get",[t])},colorBy:function(t,n){var r=arguments.length<=2||void 0===arguments[2]?"POINTS":arguments[2],o=arguments.length<=3||void 0===arguments[3]?"":arguments[3],a=arguments.length<=4||void 0===arguments[4]?"Magnitude":arguments[4],i=arguments.length<=5||void 0===arguments[5]?0:arguments[5],s=arguments.length<=6||void 0===arguments[6]?!1:arguments[6];return e.call("pv.color.manager.color.by",[t,n,r,o,a,i,s])},setOpacityFunctionPoints:function(t,n){return e.call("pv.color.manager.opacity.points.set",[t,n])},getRgbPoints:function(t){return e.call("pv.color.manager.rgb.points.get",[t])},setRgbPoints:function(t,n){return e.call("pv.color.manager.rgb.points.set",[t,n])},getLutImage:function(t,n){var r=arguments.length<=2||void 0===arguments[2]?null:arguments[2];return e.call("pv.color.manager.lut.image.get",[t,n,r])},setSurfaceOpacity:function(t,n){return e.call("pv.color.manager.surface.opacity.set",[t,n])},getSurfaceOpacity:function(t){return e.call("pv.color.manager.surface.opacity.get",[t])},selectColorMap:function(t,n){return e.call("pv.color.manager.select.preset",[t,n])},listColorMapNames:function(){return e.call("pv.color.manager.list.preset",[])},listColorMapImages:function(){var t=arguments.length<=0||void 0===arguments[0]?256:arguments[0];return e.call("pv.color.manager.lut.image.all",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{listServerDirectory:function(){var t=arguments.length<=0||void 0===arguments[0]?".":arguments[0];return e.call("file.server.directory.list",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{storeKeyPair:function(t,n){return e.call("pv.keyvaluepair.store",[t,n])},retrieveKeyPair:function(t){return e.call("pv.keyvaluepair.retrieve",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{interaction:function(t){return e.call("viewport.mouse.interaction",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{create:function(t){var n=arguments.length<=1||void 0===arguments[1]?"0":arguments[1];return e.call("pv.proxy.manager.create",[t,n])},open:function(t){return e.call("pv.proxy.manager.create.reader",[t])},get:function(t){var n=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.call("pv.proxy.manager.get",[t,n])},findProxyId:function(t,n){return e.call("pv.proxy.manager.find.id",[t,n])},update:function(t){return e.call("pv.proxy.manager.update",[t])},"delete":function(t){return e.call("pv.proxy.manager.delete",[t])},list:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("pv.proxy.manager.list",[t])},available:function(){var t=arguments.length<=0||void 0===arguments[0]?"sources":arguments[0];return e.call("pv.proxy.manager.available",[t])},availableSources:function(){return e.call("pv.proxy.manager.available",["sources"])},availableFilters:function(){return e.call("pv.proxy.manager.available",["filters"])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{saveData:function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return e.call("pv.data.save",[t,n])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{updateTime:function(t){return e.call("pv.vcr.action",[t])},next:function(){return e.call("pv.vcr.action",["next"])},previous:function(){return e.call("pv.vcr.action",["prev"])},first:function(){return e.call("pv.vcr.action",["first"])},last:function(){return e.call("pv.vcr.action",["last"])},setTimeStep:function(t){return e.call("pv.time.index.set",[t])},getTimeStep:function(){return e.call("pv.time.index.get",[])},setTimeValue:function(t){return e.call("pv.time.value.set",[t])},getTimeValue:function(){return e.call("pv.time.value.get",[])},getTimeValues:function(){return e.call("pv.time.values",[])},play:function(){var t=arguments.length<=0||void 0===arguments[0]?.1:arguments[0];return e.call("pv.time.play",[t])},stop:function(){return e.call("pv.time.stop",[])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{resetCamera:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("viewport.camera.reset",[t])},updateOrientationAxesVisibility:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.call("viewport.axes.orientation.visibility.update",[t,n])},updateCenterAxesVisibility:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.call("viewport.axes.center.visibility.update",[t,n])},updateCamera:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments.length<=1||void 0===arguments[1]?[0,0,0]:arguments[1],r=arguments.length<=2||void 0===arguments[2]?[0,1,0]:arguments[2],o=arguments.length<=3||void 0===arguments[3]?[0,0,1]:arguments[3];return e.call("viewport.camera.update",[t,n,r,o])},getCamera:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("viewport.camera.get",[t])},updateSize:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments.length<=1||void 0===arguments[1]?500:arguments[1],r=arguments.length<=2||void 0===arguments[2]?500:arguments[2];return e.call("viewport.size.update",[t,n,r])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{getSceneMetaData:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("viewport.webgl.metadata",[t])},getWebGLData:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return e.call("viewport.webgl.data",[t,n,r])},getCachedWebGLData:function(t){return e.call("viewport.webgl.cached.data",[t])},getSceneMetaDataAllTimesteps:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("viewport.webgl.metadata.alltimesteps",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{stillRender:function(){var t=arguments.length<=0||void 0===arguments[0]?{size:[400,400],view:-1}:arguments[0];return e.call("viewport.image.render",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=e.getSession(),o={connection:e,session:r},a=t.length;a--;){var i=t[a];o[i]=T[i](r)}for(var s in n)o[s]=n[s](r);return o}Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=o;var a=n(347),i=r(a),s=n(348),l=r(s),u=n(349),c=r(u),f=n(350),p=r(f),d=n(351),h=r(d),g=n(352),m=r(g),v=n(353),_=r(v),y=n(354),b=r(y),w=n(355),x=r(w),C=n(356),E=r(C),T={ColorManager:i["default"],FileListing:l["default"],KeyValuePairStore:c["default"],MouseHandler:p["default"],ProxyManager:h["default"],SaveData:m["default"],TimeHandler:_["default"],ViewPort:b["default"],ViewPortGeometryDelivery:x["default"],ViewPortImageDelivery:E["default"]};t["default"]={createClient:o}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){var t=new h["default"](e.config.sessionURL,e.config.secret);e.subscriptions.push(t.onConnectionReady(e.readyForwarder)),e.subscriptions.push(t.onConnectionClose(e.closeForwarder)),t.connect(),e.gc.push(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(15),l=r(s),u=n(102),c=r(u),f=n(173),p=r(f),d=n(174),h=r(d),g="connection.ready",m="connection.close",v="connection.error",_=[location.protocol,"//",location.hostname,":",location.port,"/paraview/"].join(""),y=["https"===location.protocol?"wss":"ws","://",location.hostname,":",location.port,"/ws"].join(""),b=function(){function e(t){var n=this;o(this,e),this.config=t,this.gc=[],this.subscriptions=[],this.session=null,this.readyForwarder=function(e,t){n.session=e.getSession(),n.emit(g,e)},this.errorForwarder=function(e,t){n.emit(v,e)},this.closeForwarder=function(e,t){n.emit(m,e)}}return i(e,[{key:"connect",value:function(){var e=this;if(this.config.sessionURL)a(this);else{var t=new p["default"](this.config.sessionManagerURL||_);this.subscriptions.push(t.onProcessReady(function(t,n){e.config=(0,c["default"])(e.config,t),a(e)})),this.subscriptions.push(t.onError(function(t,n){e.config.sessionURL=y,a(e)})),t.start(this.config),this.gc.push(t)}}},{key:"onConnectionReady",value:function(e){return this.on(g,e)}},{key:"onConnectionClose",value:function(e){return this.on(m,e)}},{key:"onConnectionError",value:function(e){return this.on(v,e)}},{key:"getSession",value:function(){return this.session}},{key:"destroy",value:function(){for(this.off();this.subscriptions.length;)this.subscriptions.pop().unsubscribe();for(this.session&&this.session.close(),this.session=null,this.readyForwarder=null,this.errorForwarder=null,this.closeForwarder=null;this.gc.length;)this.gc.pop().destroy()}}]),e}();t["default"]=b,l["default"].mixInto(b)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(174),a=r(o),i=n(175),s=r(i),l=n(357),u=r(l),c=n(358),f=r(c);t["default"]={AutobahnConnection:a["default"],BinaryImageStream:s["default"],ParaViewWebClient:u["default"],SmartConnect:f["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(327),a=r(o),i=n(346),s=r(i),l=n(359),u=r(l);t["default"]={Core:a["default"],Girder:s["default"],WebSocket:u["default"]}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.data=t}return r(e,[{key:"getParameterList",value:function(){return Object.getOwnPropertyNames(this.data)}},{key:"fetchHistogram",value:function(e,t,n){var r=this.data[e][t];n(r)}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(361),a=r(o);t["default"]={StaticDataProvider:a["default"]}},function(e,t){"use strict";function n(e,t,n,r,o){return(t-e)/(n-e)*(o-r)+r}function r(e,t,r,o){function a(e){var t;for(W=e.slice(),U=[],z=[],q=[],X=[],G=0,Y=null,t=0;t<W.length;++t)U.push(!0),z.push([])}function i(e,t){var n,r,o,a={},i={},s=null;for(n=0;n<e.bins.length;++n)s=e.bins[n],a.hasOwnProperty(s.x)||(a[s.x]=0),a[s.x]+=s.count;for(n=0;n<t.bins.length;++n)s=t.bins[n],i.hasOwnProperty(s.y)||(i[s.y]=0),i[s.y]+=s.count;for(r in a)a[r]!==i[r]&&console.error("Sanity check failed for bin: "+r);for(o in i)i[o]!==a[o]&&console.error("Sanity check failed for bin: "+o)}function s(e){var t,n,r,o=0;for(t=0;t<e.length;++t)n=e[t],r={max:0},n.bins.map(function(e,t,n){e.count>this.max&&(this.max=e.count)},r),r.max>o&&(o=r.max);if(me)for(t=0;t<e.length-1;++t)i(e[t],e[t+1]);return o}function l(e){return.5+e|0}function u(e,t,r){var o=n(Z.height-Q.bottom,e,Q.top,t[0],t[1]);return r===!1&&(o=n(Q.top,e,Z.height-Q.bottom,t[0],t[1])),o}function c(e,t,r){var o=n(t[0],e,t[1],Z.height-Q.bottom,Q.top);return r===!1&&(o=n(t[0],e,t[1],Q.top,Z.height-Q.bottom)),l(o)}function f(e){return z[e].length>0&&z[e][0].hasOwnProperty("dataRange")}function p(e,t,n){var r,o=z[e],a=q[e],i=u(t,a,U[e]),s=u(n,a,U[e]),l=i,c=s;l>c&&(r=l,l=c,c=r),o[o.length-1]={dataRange:[l,c]}}function d(e,t,n,r,o,a){var i=1,s=e+(n-e)/2,l=r+(t-r)/2,u=t-r,c=n-e,f=(u-4*i)/3,p=c-2*i;A.fillStyle=re,a>=0&&(A.beginPath(),A.moveTo(r+i,s),A.lineTo(r+i+f,e+i),A.lineTo(r+i+f,e+i+p),A.closePath(),A.fill()),A.beginPath(),A.moveTo(r+f+2*i,s),o?A.lineTo(l,e+i):A.lineTo(l,n-i),A.lineTo(r+2*f+2*i,s),A.closePath(),A.fill(),0>=a&&(A.beginPath(),A.moveTo(t-i,s),A.lineTo(t-i-f,e+i+p),A.lineTo(t-i-f,e+i),A.closePath(),A.fill())}function h(){var e;for(e=0;e<V.length;++e)A.beginPath(),f(e)?(A.arc(V[e],10,8,0,2*Math.PI),A.fillStyle=te,A.fill()):(A.arc(V[e],10,6,0,2*Math.PI),A.strokeStyle=re,A.stroke())}function g(){var e,t=0;for(e=0;e<V.length;++e)t=0,0===e?t=-1:e===V.length-1&&(t=1),d(25,V[e]+$.width/2,25+$.height,V[e]-$.width/2,U[e],t)}function m(e,t,n){A.font="9px sans-serif",n?(A.fillText(t[0],e,Q.top+J.height+13),A.fillText(t[1],e,Q.top-5)):(A.fillText(t[1],e,Q.top+J.height+13),A.fillText(t[0],e,Q.top-5))}function v(){var e,t=51,n=V.length-1;for(A.font="12px sans-serif",A.fillStyle=ne,A.textAlign="start",A.fillText(W[0],V[0],t),m(V[0],q[0],U[0]),e=1;e<W.length-1;++e)A.font="12px sans-serif",A.fillStyle=ne,A.textAlign="center",A.fillText(W[e],V[e],t),m(V[e],q[e],U[e]);A.font="12px sans-serif",A.fillStyle=ne,A.textAlign="end",A.fillText(W[n],V[n],t),m(V[n],q[n],U[n])}function _(){var e,t,n,r,o,a;for(t=0;t<V.length;++t)for(A.strokeStyle=ee,A.lineWidth=3,A.beginPath(),A.moveTo(V[t],Q.top),A.lineTo(V[t],Z.height-Q.bottom),A.stroke(),n=z[t],r=q[t],o=U[t],A.strokeStyle=te,A.lineWidth=5,e=0;e<n.length;++e)a=n[e],a.dataRange&&(A.beginPath(),A.moveTo(V[t],c(a.dataRange[0],r,o)),A.lineTo(V[t],c(a.dataRange[1],r,o)),A.stroke())}function y(e,t,r,o,a){var i,s=o.y.extent,l=o.x.extent,u=o.y.delta,f=o.x.delta,p=V[t],d=V[r],h=null,g=0,m=0,v=0,_=0,y=0,b=0,w=0,x=0,C=0;for(i=0;i<o.bins.length;++i)h=o.bins[i],g=n(0,h.count,le,0,1),m=c(h.y,s,U[t]),v=c(h.y+u,s,U[t]),_=c(h.x,l,U[r]),y=c(h.x+f,l,U[r]),b=0,w=0,x=0,C=0,v>=m?(b=m,w=v):(b=v,w=m),y>=_?(x=_,C=y):(x=y,C=_),e.beginPath(),e.moveTo(p,b),e.lineTo(p,w),e.lineTo(d,C),e.lineTo(d,x),e.closePath(),e.fillStyle="rgba("+a[0]+","+a[1]+","+a[2]+","+g+")",e.fill()}function b(){var e,t,n,r;if(null===W||W.length<=1)return void console.error("Parallel coordinates cannot be rendered without at least two parameters selected.");if(!X||X.length!==W.length-1)return void E();for(A.globalAlpha=1,Z.width=R.width,Z.height=R.height,I.width=R.width,I.height=R.height,N.width=R.width,N.height=R.height,J.width=Z.width-(Q.left+Q.right),J.height=Z.height-(Q.top+Q.bottom),H=(J.width-K)/(W.length-1),V=[],V.push(Q.left+K/2),e=1;e<W.length;++e)V.push(l(V[e-1]+H));for(A.clearRect(0,0,Z.width,Z.height),O.clearRect(0,0,Z.width,Z.height),F.clearRect(0,0,Z.width,Z.height),le=ie,t=0;t<X.length;++t)y(F,t,t+1,X[t],oe);if(A.globalAlpha=ce,A.drawImage(N,0,0,Z.width,Z.height,0,0,Z.width,Z.height),Y){for(r=Y.counts[0],le=se,n=0;n<r.length;++n)y(O,n,n+1,r[n],ae);A.globalAlpha=ue,A.drawImage(I,0,0,Z.width,Z.height,0,0,Z.width,Z.height)}A.globalAlpha=1,_(),v(),g(),h()}function w(){A.clearRect(0,0,Z.width,Z.height),A.globalAlpha=ce,A.drawImage(N,0,0,Z.width,Z.height,0,0,Z.width,Z.height),A.globalAlpha=ue,A.drawImage(I,0,0,Z.width,Z.height,0,0,Z.width,Z.height),A.globalAlpha=1,_(),v(),g(),h()}function x(e,t){G+=1,X[e]=t,0===t.y.delta&&(t.y.delta=1,t.y.extent[1]=t.y.extent[0]+1),0===t.x.delta&&(t.x.delta=1,t.x.extent[1]=t.x.extent[0]+1),q[e]=t.y.extent.slice(),e===W.length-2&&(q[e+1]=t.x.extent.slice()),G===W.length-1&&(ie=s(X),b())}function C(e,t){L(W[t],W[e],function(t){x(e,t)})}function E(){var e;for(X=[],q=[],G=0,ie=0,e=0;e<W.length-1;++e)C(e,e+1)}function T(){var e,t,n,r,o,a,i=!1,l={},u={},c=[];if(B){for(Y=null,se=0,e=0;e<z.length;++e){for(r=z[e],n=W[e],a=[],t=0;t<r.length;++t)o=r[t],o.dataRange&&a.push(o.dataRange);a.length>0&&(u[n]=a,i=!0)}if(i===!0){for(t=0;t<W.length-1;++t)c.push([W[t+1],W[t]]);l={ranges:u,histograms:c},B(l,function(e){se=s(e.counts[0]),Y=e,b()})}else se=0,Y=null,j(),b()}}function P(){E(),T()}function k(){var e;for(Y=null,se=0,e=0;e<z.length;++e)z[e]=[];b()}function M(e){e.hasOwnProperty("background")&&(ce=e.background),e.hasOwnProperty("selection")&&(ue=e.selection),w()}function S(e,t){var n=W[t],r=U[t],o=z[t],a=q[t];W[t]=W[e],U[t]=U[e],z[t]=z[e],q[t]=q[e],W[e]=n,U[e]=r,z[e]=o,q[e]=a}function D(e){var t,n,r,o,a,i=e.x,s=e.y,l=e.action;if("mouseup"===l){if(t=Math.abs(i-pe.x),n=Math.abs(s-pe.y),s<=$.height+25&&de>=t&&de>=n)for(r=0;r<V.length;++r)o=i-V[r],a=Math.abs(o),a<=$.width/2&&(25>=s?f(r)&&(z[r]=[],T()):a<$.width/3/2?(U[r]=!U[r],b()):o>0?r<V.length-1&&(S(r,r+1),P()):r>0&&(S(r-1,r),P()));else fe&&T();fe=!1,pe.x=-1,pe.y=-1}else if("mousedown"===l){if(pe.x=i,pe.y=s,B&&s>Q.top&&s<Z.height-Q.bottom)for(ge=-1,r=0;r<V.length;++r)if(a=Math.abs(i-V[r]),he>=a){fe=!0,ge=r,z[r].push({dataRange:[0,0]});break}}else fe&&(p(ge,pe.y,s),_())}var R=e,A=e.getContext("2d"),I=document.createElement("canvas"),O=I.getContext("2d"),N=document.createElement("canvas"),F=N.getContext("2d"),L=t,B=r,j=o,W=[],U=[],V=[],z=[],q=[],H=0,X=[],G=0,Y=null,Q={top:72,right:10,bottom:20,left:10},K=3,Z={width:R.width,height:R.height},J={width:Z.width-(Q.left+Q.right),height:Z.height-(Q.top+Q.bottom)},$={width:66,height:13},ee="rgba(128,128,128,1)",te="rgba(105, 195, 255, 1)",ne="rgba(0,0,0,1)",re="rgba(128,128,128,1)",oe=[0,0,0],ae=[70,130,180],ie=0,se=0,le=0,ue=1,ce=1,fe=!1,pe={x:-1,y:-1},de=1,he=10,ge=-1,me=!1,ve={mouseHandler:D,render:b,updateAxisList:a,clearSelection:k,updateOpacityAdjustments:M};return Object.freeze(ve)}Object.defineProperty(t,"__esModule",{value:!0}),t.createParallelCoordinates=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(362),a=r(o),i=n(363),s=r(i);t["default"]={ParallelCoordinateProvider:a["default"],ParallelCoordinates:s["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(364),a=r(o);t["default"]={Native:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(56),a=r(o),i=n(176),s=r(i);t["default"]={MouseHandler:a["default"],VtkWebMouseListener:s["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(366),a=r(o);t["default"]={Core:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(177),a=r(o);t["default"]={NativeImageRenderer:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(368),a=r(o);t["default"]={Renderers:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(279),s=r(i);t["default"]=a["default"].createClass({displayName:"FloatImageControl.LayerItem",propTypes:{item:a["default"].PropTypes.object.isRequired,model:a["default"].PropTypes.object.isRequired},getInitialState:function(){return{change:!1,dropDown:!1}},toggleMesh:function(){this.props.item.hasMesh&&(this.props.model.updateMaskLayerVisibility(this.props.item.name,!this.props.item.meshActive),this.setState({change:!this.state.change}))},toggleVisibility:function(){this.props.model.updateLayerVisibility(this.props.item.name,!this.props.item.active),this.setState({change:!this.state.change})},toggleDropDown:function(){this.props.item.arrays.length>1&&this.setState({dropDown:!this.state.dropDown})},updateColorBy:function(e){this.props.model.updateLayerColorBy(this.props.item.name,e.target.dataset.color),this.toggleDropDown()},render:function(){var e=this.props.item,t=e.active,n=e.meshActive,r=e.hasMesh,o=e.arrays.length>1;return a["default"].createElement("div",{className:s["default"].item},a["default"].createElement("div",{className:s["default"].label},e.name),a["default"].createElement("div",{className:s["default"].actions},a["default"].createElement("i",{className:r?n?s["default"].meshButtonOn:s["default"].meshButtonOff:s["default"].hidden,onClick:this.toggleMesh}),a["default"].createElement("i",{className:t?s["default"].visibleButtonOn:s["default"].visibleButtonOff,onClick:this.toggleVisibility}),a["default"].createElement("i",{className:o?s["default"].dropDownButtonOn:s["default"].dropDownButtonOff,onClick:this.toggleDropDown}),a["default"].createElement("div",{onClick:this.updateColorBy,className:this.state.dropDown?s["default"].menu:s["default"].hidden},e.arrays.map(function(t){return a["default"].createElement("div",{key:t,"data-color":t,className:t===e.array?s["default"].selectedMenuItem:s["default"].menuItem},t)}))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(115),a=r(o),i=n(178),s=r(i),l=n(179),u=r(l),c=n(116),f=r(c),p=n(180),d=r(p),h=n(181),g=r(h),m=n(117),v=r(m),_=n(182),y=r(_),b=n(183),w=r(b);t["default"]={CollapsibleControlFactory:a["default"],FloatImageControl:s["default"],LightControl:u["default"],LookupTableManagerControl:f["default"],MultiViewControl:d["default"],PixelOperatorControl:g["default"],ProbeControl:v["default"],QueryDataModelControl:y["default"],VolumeControl:w["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(112),s=r(i),l=n(171),u=r(l),c=n(65),f=r(c);t["default"]=a["default"].createClass({displayName:"InputCell",propTypes:{domain:a["default"].PropTypes.object,idx:a["default"].PropTypes.number.isRequired,label:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,type:a["default"].PropTypes.string,value:a["default"].PropTypes.any},getDefaultProps:function(){return{label:"",idx:0,value:"",type:"string"}},getInitialState:function(){return{editing:!1,valueRep:this.props.value}},valueChange:function(e){var t=e.target.value;if(this.setState({editing:!0,valueRep:t}),u["default"][this.props.type](t)){var n=s["default"][this.props.type](t);n=this.applyDomains(this.props.idx,n),this.props.onChange(this.props.idx,n)}},applyDomains:function(e,t){if(!this.props.domain)return t;if(this.props.domain.hasOwnProperty("range")&&this.props.domain.range.length){var n=this.props.domain.range.length,r=this.props.domain.range[e%n],o=r.min,a=r.max,i=r.force;i&&(t=void 0!==o?Math.max(o,t):t,t=void 0!==a?Math.min(a,t):t)}return t},getTooltip:function(){var e="",t=this.props.idx;if(!this.props.domain)return e;if(this.props.domain.hasOwnProperty("range")&&this.props.domain.range.length){var n=this.props.domain.range.length,r=this.props.domain.range[t%n]||{},o=r.min,a=r.max;e+=void 0!==o?"min("+o+") ":"",e+=void 0!==a?"max("+a+") ":""}return e},endEditing:function(){this.setState({editing:!1})},render:function(){return a["default"].createElement("td",{className:f["default"].inputCell},a["default"].createElement("label",{className:f["default"].inputCellLabel},this.props.label),a["default"].createElement("input",{className:f["default"].inputCellInput,value:this.state.editing?this.state.valueRep:this.props.value,onChange:this.valueChange,title:this.getTooltip(),onBlur:this.endEditing}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=arguments.length<=2||void 0===arguments[2]?"":arguments[2];if(!e)return Array(t).fill(n);for(;e.length<t;)e.push(n);return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t,n){t.hasOwnProperty("layout")||(t.layout="NO_LAYOUT"),t.hasOwnProperty("size")||(t.size=1),t.hasOwnProperty("type")||(t.type="string"),t.hasOwnProperty("domain")||(t.domain={});var r=f[t.layout];return r?r(e,t,n):null};var a=n(3),i=r(a),s=n(372),l=r(s),u=n(65),c=r(u),f={1:function(e,t,n){return t.componentLabels=o(t.componentLabels,1),e.value=o(e.value,1,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n})))},2:function(e,t,n){return t.componentLabels=o(t.componentLabels,2),e.value=o(e.value,2,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1],type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n})))},3:function(e,t,n){return t.componentLabels=o(t.componentLabels,3),e.value=o(e.value,3,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1],type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:2,label:t.componentLabels[2],type:t.type,value:e.value[2],name:e.name,domain:t.domain,onChange:n})))},"2x3":function(e,t,n){return t.componentLabels=o(t.componentLabels,6),e.value=o(e.value,6,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_0"},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1],type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:2,label:t.componentLabels[2],type:t.type,value:e.value[2],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_1"},i["default"].createElement(l["default"],{idx:3,label:t.componentLabels[3],type:t.type,value:e.value[3],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:4,label:t.componentLabels[4],type:t.type,value:e.value[4],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:5,label:t.componentLabels[5],type:t.type,value:e.value[5],name:e.name,domain:t.domain,onChange:n})))},"3x2":function(e,t,n){return t.componentLabels=o(t.componentLabels,6),e.value=o(e.value,6,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_0"},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1],type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_1"},i["default"].createElement(l["default"],{idx:2,label:t.componentLabels[2],type:t.type,value:e.value[2],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:3,label:t.componentLabels[3],type:t.type,value:e.value[3],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_2"},i["default"].createElement(l["default"],{idx:4,label:t.componentLabels[4],type:t.type,value:e.value[4],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:5,label:t.componentLabels[5],type:t.type,value:e.value[5],name:e.name,domain:t.domain,onChange:n})))},m6:function(e,t,n){return t.componentLabels=o(t.componentLabels,6),e.value=o(e.value,6,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_0"},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1], -type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:2,label:t.componentLabels[2],type:t.type,value:e.value[2],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_1"},i["default"].createElement("td",null),i["default"].createElement(l["default"],{idx:3,label:t.componentLabels[3],type:t.type,value:e.value[3],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:4,label:t.componentLabels[4],type:t.type,value:e.value[4],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_2"},i["default"].createElement("td",null),i["default"].createElement("td",null),i["default"].createElement(l["default"],{idx:5,label:t.componentLabels[5],type:t.type,value:e.value[5],name:e.name,domain:t.domain,onChange:n})))},"-1":function(e,t,n){return i["default"].createElement("tbody",null,e.value.map(function(r,o){return i["default"].createElement("tr",{key:[e.id,o].join("_"),className:c["default"].inputRow},i["default"].createElement("td",null,i["default"].createElement("i",{className:o?c["default"].deleteIcon:c["default"].hidden,onClick:function(){n(o,null)}})),i["default"].createElement(l["default"],{idx:o,label:"",type:t.type,value:r,name:e.name,domain:t.domain,onChange:n}))}))},NO_LAYOUT:function(e,t,n){return i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n})))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(709),s=r(i);t["default"]=a["default"].createClass({displayName:"Checkbox",propTypes:{idx:a["default"].PropTypes.number,label:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,value:a["default"].PropTypes.bool},getDefaultProps:function(){return{value:!1,label:""}},valueChange:function(e){this.props.onChange&&(this.props.idx>=0?this.props.onChange(this.props.idx,e.target.checked):this.props.onChange(null,e.target.checked))},render:function(){return a["default"].createElement("div",null,a["default"].createElement("label",{className:s["default"].label},this.props.label),a["default"].createElement("input",{className:s["default"].input,type:"checkbox",checked:this.props.value,onChange:this.valueChange}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(118),s=r(i),l=n(711),u=r(l);t["default"]=a["default"].createClass({displayName:"PropertyPanel",propTypes:{className:a["default"].PropTypes.string,input:a["default"].PropTypes.array,labels:a["default"].PropTypes.object,onChange:a["default"].PropTypes.func,viewData:a["default"].PropTypes.object},getDefaultProps:function(){return{className:"",input:[]}},valueChange:function(e){this.props.onChange&&this.props.onChange(e)},render:function(){var e=this,t=this.props.viewData,n=function(n){return(0,s["default"])(n,t,e.valueChange)},r=function(e){return a["default"].createElement("div",{key:e.title},a["default"].createElement("div",{className:u["default"].propertyHeader},a["default"].createElement("strong",null,e.title)),e.contents.map(n))};return a["default"].createElement("section",{className:[this.props.className,u["default"].propertyPanel].join(" ")},this.props.input.map(r))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(3),i=r(a),s=n(84),l=r(s);t["default"]=i["default"].createClass({displayName:"Slider",propTypes:{idx:i["default"].PropTypes.number,onChange:i["default"].PropTypes.func},valueChange:function(e){this.props.onChange&&(this.props.idx>=0?this.props.onChange(this.props.idx,e.target.value):this.props.onChange(null,e.target.value))},render:function(){var e=Object.assign({},this.props);return delete e.onChange,delete e.idx,i["default"].createElement(l["default"],o({},e,{onChange:this.valueChange}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(184),a=r(o),i=n(185),s=r(i),l=n(186),u=r(l),c=n(118),f=r(c),p=n(375),d=r(p),h=n(187),g=r(h);t["default"]={CellProperty:a["default"],CheckboxProperty:s["default"],EnumProperty:u["default"],PropertyFactory:f["default"],PropertyPanel:d["default"],SliderProperty:g["default"]}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={"2x2":function(e,t,n,r){return[[t,t,e[0]-1.5*t,e[1]-1.5*t],[e[0]+.5*t,t,n-e[0]-1.5*t,e[1]-1.5*t],[t,e[1]+.5*t,e[0]-1.5*t,r-e[1]-1.5*t],[e[0]+.5*t,e[1]+.5*t,n-e[0]-1.5*t,r-e[1]-1.5*t]]},"1x1":function(e,t,n,r){return[[t,t,n-2*t,r-2*t]]},"1x2":function(e,t,n,r){return[[t,t,n-2*t,e[1]-1.5*t],[t,e[1]+.5*t,n-2*t,r-e[1]-1.5*t]]},"2x1":function(e,t,n,r){return[[t,t,e[0]-1.5*t,r-2*t],[e[0]+.5*t,t,n-e[0]-1.5*t,r-2*t]]},"3xT":function(e,t,n,r){return[[t,t,n-2*t,e[1]-1.5*t],[t,e[1]+.5*t,e[0]-1.5*t,r-e[1]-1.5*t],[e[0]+.5*t,e[1]+.5*t,n-e[0]-1.5*t,r-e[1]-1.5*t]]},"3xL":function(e,t,n,r){return[[t,t,e[0]-1.5*t,r-2*t],[e[0]+.5*t,t,n-e[0]-1.5*t,e[1]-1.5*t],[e[0]+.5*t,e[1]+.5*t,n-e[0]-1.5*t,r-e[1]-1.5*t]]},"3xR":function(e,t,n,r){return[[t,t,e[0]-1.5*t,e[1]-1.5*t],[e[0]+.5*t,t,n-e[0]-1.5*t,r-2*t],[t,e[1]+.5*t,e[0]-1.5*t,r-e[1]-1.5*t]]},"3xB":function(e,t,n,r){return[[t,t,e[0]-1.5*t,e[1]-1.5*t],[e[0]+.5*t,t,n-e[0]-1.5*t,e[1]-1.5*t],[t,e[1]+.5*t,n-2*t,r-e[1]-1.5*t]]}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(22),s=r(i),l=n(175),u=r(l),c=n(177),f=r(c),p=n(37),d=r(p),h=n(176),g=r(h);t["default"]=a["default"].createClass({displayName:"VtkRenderer",propTypes:{className:a["default"].PropTypes.string,client:a["default"].PropTypes.object,connection:a["default"].PropTypes.object,showFPS:a["default"].PropTypes.bool,style:a["default"].PropTypes.object},getDefaultProps:function(){return{className:"",showFPS:!1,style:{}}},componentWillMount:function(){d["default"].startListening()},componentDidMount:function(){var e=this,t=s["default"].findDOMNode(this),n=d["default"].getSize(t),r=n.clientWidth,o=n.clientHeight;this.binaryImageStream=new u["default"](this.props.connection.urls+"b",r,o),this.mouseListener=new g["default"](this.props.client),this.mouseListener.onInteraction(function(t){t?e.binaryImageStream.startInteractiveQuality():e.binaryImageStream.stopInteractiveQuality()}),this.subscription=d["default"].onSizeChange(function(){var n=d["default"].getSize(t),r=n.clientWidth,o=n.clientHeight;e.mouseListener.updateSize(r,o),e.props.client.session.call("viewport.size.update",[-1,r,o])}),this.imageRenderer=new f["default"](t,this.binaryImageStream,this.mouseListener.getListeners(),this.props.showFPS),this.binaryImageStream.connect({view_id:-1}),d["default"].triggerChange()},componentWillUnmount:function(){this.binaryImageStream&&(this.binaryImageStream.destroy(),this.binaryImageStream=null),this.mouseListener&&(this.mouseListener.destroy(),this.mouseListener=null),this.imageRenderer&&(this.imageRenderer.destroy(),this.imageRenderer=null),this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},render:function(){return a["default"].createElement("div",{className:this.props.className,style:this.props.style})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(188),a=r(o),i=n(189),s=r(i),l=n(190),u=r(l),c=n(379),f=r(c);t["default"]={GeometryRenderer:a["default"],ImageRenderer:s["default"],MultiLayoutRenderer:u["default"],VtkRenderer:f["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(69),a=r(o),i=n(3),s=r(i);t["default"]=s["default"].createClass({displayName:"GeometryViewer",propTypes:{config:s["default"].PropTypes.object,geometryBuilder:s["default"].PropTypes.object.isRequired,menuAddOn:s["default"].PropTypes.array,queryDataModel:s["default"].PropTypes.object.isRequired},getDefaultProps:function(){return{config:{}}},render:function(){var e=this.props.queryDataModel,t=this.props.geometryBuilder,n=[];return this.props.menuAddOn&&(n=this.props.menuAddOn.concat(n)),s["default"].createElement(a["default"],{queryDataModel:e,geometryBuilder:t,renderer:"GeometryRenderer",config:this.props.config||{}},n)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(69),a=r(o),i=n(3),s=r(i),l=n(115),u=r(l);t["default"]=s["default"].createClass({displayName:"ImageBuilderViewer",propTypes:{config:s["default"].PropTypes.object,imageBuilder:s["default"].PropTypes.object.isRequired,menuAddOn:s["default"].PropTypes.array,queryDataModel:s["default"].PropTypes.object.isRequired},getDefaultProps:function(){return{config:{}}},componentWillMount:function(){this.attachListener(this.props.imageBuilder)},componentWillReceiveProps:function(e){var t=this.props.imageBuilder,n=e.imageBuilder;t!==n&&(this.detachListener(),this.props.config.MagicLens&&this.attachListener(n))},componentWillUnmount:function(){this.detachListener()},attachListener:function(e){var t=this;this.detachListener(),e&&e.onModelChange&&(this.changeSubscription=e.onModelChange(function(e,n){t.forceUpdate()}))},detachListener:function(){this.changeSubscription&&(this.changeSubscription.unsubscribe(),this.changeSubscription=null)},render:function(){var e=this.props.queryDataModel,t=this.props.config.MagicLens?this.props.imageBuilder:null,n=this.props.config.MagicLens?this.props.imageBuilder.getActiveImageBuilder():this.props.imageBuilder,r=u["default"].getWidgets(n);return this.props.menuAddOn&&(r=this.props.menuAddOn.concat(r)),s["default"].createElement(a["default"],{queryDataModel:e,magicLensController:t,imageBuilder:n,config:this.props.config||{}},r)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(69),a=r(o),i=n(180),s=r(i),l=n(3),u=r(l),c=n(115),f=r(c);t["default"]=u["default"].createClass({displayName:"MultiLayoutViewer",propTypes:{layout:u["default"].PropTypes.string,menuAddOn:u["default"].PropTypes.array,queryDataModel:u["default"].PropTypes.object.isRequired,renderers:u["default"].PropTypes.object.isRequired},getInitialState:function(){return{activeRenderer:null,renderer:null}},componentDidMount:function(){var e=this,t=this.refs.catalystWidget.getRenderer();this.setState({renderer:t}),this.activeViewportSubscription=t.onActiveViewportChange(function(t,n){e.setState({activeRenderer:e.props.renderers[t.name]})})},componentWillUpdate:function(e,t){var n=this.state.activeRenderer&&this.state.activeRenderer.builder&&this.state.activeRenderer.builder.queryDataModel?this.state.activeRenderer.builder.queryDataModel:this.props.queryDataModel,r=t.activeRenderer&&t.activeRenderer.builder&&t.activeRenderer.builder.queryDataModel?t.activeRenderer.builder.queryDataModel:e.queryDataModel;n!==r&&(this.detachListener(),this.attachListener(r))},componentWillUnmount:function(){this.detachListener(),this.activeViewportSubscription&&(this.activeViewportSubscription.unsubscribe(),this.activeViewportSubscription=null)},attachListener:function(e){var t=this;this.detachListener(),e&&(this.queryDataModelChangeSubscription=e.onStateChange(function(e,n){t.forceUpdate()}))},detachListener:function(){this.queryDataModelChangeSubscription&&(this.queryDataModelChangeSubscription.unsubscribe(),this.queryDataModelChangeSubscription=null)},render:function(){var e=this.state.activeRenderer&&this.state.activeRenderer.builder&&this.state.activeRenderer.builder.queryDataModel?this.state.activeRenderer.builder.queryDataModel:this.props.queryDataModel,t=[];return this.state.activeRenderer&&(t=f["default"].getWidgets(this.state.activeRenderer.builder||this.state.activeRenderer.painter)),this.props.menuAddOn&&(t=this.props.menuAddOn.concat(t)),u["default"].createElement(a["default"],{ref:"catalystWidget",queryDataModel:e,renderers:this.props.renderers,renderer:"MultiViewRenderer",layout:this.props.layout},u["default"].createElement(s["default"],{renderer:this.state.renderer}),t)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(22),s=r(i),l=n(69),u=r(l),c=n(191),f=r(c),p=n(116),d=r(p),h=n(117),g=r(h),m=n(25),v=r(m),_=n(121),y=r(_),b=n(715),w=r(b),x={XY:[0,1,2],ZY:[2,1,0],XZ:[0,2,1]},C=["x","y","z"];t["default"]=a["default"].createClass({displayName:"Probe3DViewer",propTypes:{imageBuilder:a["default"].PropTypes.object.isRequired,probe:a["default"].PropTypes.bool,queryDataModel:a["default"].PropTypes.object.isRequired},getDefaultProps:function(){return{probe:!0}},getInitialState:function(){return{probe:[this.props.imageBuilder.getProbe()[0],this.props.imageBuilder.getProbe()[1],this.props.imageBuilder.getProbe()[2]],chartVisible:!1,chartSize:{width:300,height:300},chartData:{xRange:[0,1],fields:[]},chartAxis:0}},componentWillMount:function(){var e=this,t=this.props.queryDataModel,n=this.props.imageBuilder;this.dragChartFlag=!1,this.queryDataModelDataSubscription=t.onDataChange(function(t,r){e.setState({chartData:n.getProbeLine(e.liveChartAxis)})}),n.setRenderMethodMutable(),this.renderMethodChangeSubscription=n.onRenderMethodChange(function(t,n){e.state.chartVisible&&e.validateChartAxis()}),n.setProbeLineNotification(!0),this.chartListenerSubscription=n.onProbeLineReady(function(t,n){var r=t[C[e.liveChartAxis]];e.setState({chartData:r})}),this.probeListenerSubscription=n.onProbeChange(function(t,n){e.setState({probe:t})})},componentDidUpdate:function(){this.state.chartVisible&&this.refs.chartViewer.updateDimensions()},componentWillUnmount:function(){this.queryDataModelDataSubscription&&(this.queryDataModelDataSubscription.unsubscribe(),this.queryDataModelDataSubscription=null),this.renderMethodChangeSubscription&&(this.renderMethodChangeSubscription.unsubscribe(),this.renderMethodChangeSubscription=null),this.chartListenerSubscription&&(this.chartListenerSubscription.unsubscribe(),this.chartListenerSubscription=null),this.probeListenerSubscription&&(this.probeListenerSubscription.unsubscribe(),this.probeListenerSubscription=null)},validateChartAxis:function(){var e=this.props.imageBuilder.getRenderMethod(),t="XYZ"[this.liveChartAxis];if(-1===e.indexOf(t)){var n=this.props.imageBuilder.getProbeLine(t);t="XYZ".indexOf(e[0]),this.liveChartAxis=t,this.setState({chartAxis:t,chartData:n})}},onChartVisibilityChange:function(e){e&&this.validateChartAxis(),this.setState({chartVisible:e})},updateChart:function(e){var t=Number(e.target.getAttribute("data-index")),n=this.props.imageBuilder,r=n.getProbeLine(t);this.liveChartAxis=t,this.setState({chartData:r,chartAxis:t})},dragOn:function(e){var t=s["default"].findDOMNode(this.refs.chartContainer),n=Number(t.style.top.replace("px","")),r=Number(t.style.left.replace("px",""));this.dragChartFlag=!0,this.dragPosition=[e.clientX-r,e.clientY-n]},dragOff:function(){this.dragChartFlag=!1},dragChart:function(e){if(this.dragChartFlag){var t=s["default"].findDOMNode(this.refs.chartContainer);t.style.left=e.clientX-this.dragPosition[0]+"px",t.style.top=e.clientY-this.dragPosition[1]+"px"}},render:function(){var e=this,t=this.props.queryDataModel,n=this.props.imageBuilder,r=n.metadata.dimensions,o=x[this.props.imageBuilder.getRenderMethod()],i=[];return[0,1,2].forEach(function(t){var n=[];o[2]===t?n.push(w["default"].hidden):e.state.chartAxis===t?n.push(w["default"].selectedButton):n.push(w["default"].button),i.push(n.join(" "))}),a["default"].createElement("div",{className:w["default"].container},a["default"].createElement(u["default"],{queryDataModel:t,imageBuilder:n,mouseListener:n.getListeners()},a["default"].createElement(d["default"],{key:"LookupTableManagerWidget",ref:"LookupTableManagerWidget",lookupTableManager:n.lookupTableManager,field:n.getField()}),a["default"].createElement(g["default"],{ref:"ProbeControl",imageBuilder:n}),a["default"].createElement(v["default"],{ref:"chartCollapsable",title:"Chart",visible:this.props.probe&&n.isCrossHairEnabled(),onChange:this.onChartVisibilityChange,open:this.state.chartVisible},a["default"].createElement("div",{ref:"chartButtons",className:w["default"].row},a["default"].createElement("button",{className:i[0],type:"button","data-index":"0",onClick:this.updateChart},"X"),a["default"].createElement("button",{className:i[1],type:"button","data-index":"1",onClick:this.updateChart},"Y"),a["default"].createElement("button",{className:i[2],type:"button","data-index":"2",onClick:this.updateChart},"Z"))),a["default"].createElement(v["default"],{ref:"queryDataModelParameters",title:"Parameters",visible:t.originalData.arguments_order.length>0},a["default"].createElement(y["default"],{model:t}))),a["default"].createElement("div",{ref:"chartContainer",className:this.state.chartVisible&&n.isCrossHairEnabled()?w["default"].chartContainer:w["default"].hidden,onMouseMove:this.dragChart,onMouseUp:this.dragOff,onMouseDown:this.dragOn},a["default"].createElement(f["default"],{ref:"chartViewer",cursor:this.state.probe[this.state.chartAxis]/r[this.state.chartAxis],data:this.state.chartData,width:this.state.chartSize.width,height:this.state.chartSize.height})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(69),a=r(o),i=n(381),s=r(i),l=n(382),u=r(l),c=n(191),f=r(c),p=n(383),d=r(p),h=n(384),g=r(h);t["default"]={AbstractViewerMenu:a["default"],GeometryViewer:s["default"],ImageBuilderViewer:u["default"],LineChartViewer:f["default"],MultiLayoutViewer:d["default"],Probe3DViewer:g["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(717),s=r(i);t["default"]=a["default"].createClass({displayName:"ButtonSelectorWidget",propTypes:{list:a["default"].PropTypes.array.isRequired,onChange:a["default"].PropTypes.func},processItem:function(e){var t=e.target.name,n=this.props.list,r=n.length;if(this.props.onChange)for(;r--;)n[r].name===t&&this.props.onChange(r,n)},render:function(){var e=this,t=[];return this.props.list.forEach(function(n){t.push(a["default"].createElement("button",{className:s["default"].button,key:n.name,name:n.name,onClick:e.processItem},n.name))}),a["default"].createElement("section",{className:s["default"].container},t)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(199),s=r(i),l=n(201),u=r(l),c=n(280),f=r(c);t["default"]=a["default"].createClass({displayName:"ColorByWidget",propTypes:{className:a["default"].PropTypes.string,max:a["default"].PropTypes.number,min:a["default"].PropTypes.number,onChange:a["default"].PropTypes.func,presets:a["default"].PropTypes.object,representation:a["default"].PropTypes.object,scalarBar:a["default"].PropTypes.string,source:a["default"].PropTypes.object,visible:a["default"].PropTypes.bool},getInitialState:function(){return{activeAdvanceView:"0"}},updatePreset:function(e){this.props.onChange&&this.props.onChange({type:"updatePreset",representation:this.props.representation.id,preset:e})},updateRange:function(e){e.proxyId=this.props.source.id,this.props.onChange&&this.props.onChange({type:"updateScalarRange",options:e})},updateActiveView:function(e){var t=e.target.dataset.idx;this.setState({activeAdvanceView:t})},render:function(){return a["default"].createElement("div",{className:this.props.visible?f["default"].advancedView:f["default"].hidden},a["default"].createElement("div",{className:f["default"].advancedViewControl},a["default"].createElement("i",{"data-idx":"0",onClick:this.updateActiveView,className:"0"===this.state.activeAdvanceView?f["default"].activePresetIcon:f["default"].presetIcon}),a["default"].createElement("i",{"data-idx":"1",onClick:this.updateActiveView,className:"1"===this.state.activeAdvanceView?f["default"].activeRangeIcon:f["default"].rangeIcon}),a["default"].createElement("i",{"data-idx":"2",onClick:this.updateActiveView,className:"2"===this.state.activeAdvanceView?f["default"].activeOpacityIcon:f["default"].opacityIcon}),a["default"].createElement("i",{"data-idx":"3",onClick:this.updateActiveView,className:"3"===this.state.activeAdvanceView?f["default"].activeColorEditIcon:f["default"].colorEditIcon})),a["default"].createElement("div",{className:f["default"].advancedViewContent},a["default"].createElement(s["default"],{visible:"0"===this.state.activeAdvanceView,onChange:this.updatePreset,presets:this.props.presets}),a["default"].createElement(u["default"],{visible:"1"===this.state.activeAdvanceView,min:this.props.min,max:this.props.max,onApply:this.updateRange})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t=Math.floor(255*e).toString(16);t.length<2;)t="0"+t;return t}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){o=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=n(3),l=r(s),u=n(387),c=r(u),f=n(280),p=r(f),d=":|:";t["default"]=l["default"].createClass({displayName:"ColorByWidget",propTypes:{className:l["default"].PropTypes.string,max:l["default"].PropTypes.number,min:l["default"].PropTypes.number,onChange:l["default"].PropTypes.func,presets:l["default"].PropTypes.object,representation:l["default"].PropTypes.object,scalarBar:l["default"].PropTypes.string,source:l["default"].PropTypes.object},getDefaultProps:function(){return{min:0,max:1}},getInitialState:function(){return{advancedView:!1,colorValue:d,colorValues:[],representationValue:"",representationValues:[],scalarBarVisible:!1,solidColor:"#fff"}},componentWillMount:function(){this.updateState(this.props)},componentWillReceiveProps:function(e){this.updateState(e)},updateState:function(e){if(e.source&&e.representation){var t=function(e){return"Representation"===e.name},n=function(e){return"FIELDS"!==e.location},r=e.representation.ui.filter(t)[0].values,a=e.representation.properties.filter(t)[0].value,i=[{name:"Solid color"}].concat(e.source.data.arrays.filter(n)),s=e.representation.colorBy.array.filter(function(e,t){return 2>t}).join(d),l=!!e.representation.colorBy.scalarBar,u="#"+e.representation.colorBy.color.map(o).join(""),c=s.split(d)[1]?"array":"SOLID";this.setState({representationValues:r,representationValue:a,colorValues:i,colorValue:s,scalarBarVisible:l,solidColor:u,colorMode:c})}},toggleScalarBar:function(){var e=!this.state.scalarBarVisible;"SOLID"===this.state.colorMode&&(e=!1),this.setState({scalarBarVisible:e}),this.props.onChange&&this.props.onChange({type:"scalarBar",source:this.props.source.id,representation:this.props.representation.id,visible:e})},toggleAdvancedView:function(){var e=!this.state.advancedView;this.setState({advancedView:e})},onRepresentationChange:function(e){var t=e.target.value;this.setState({representationValue:t}),this.props.onChange&&this.props.onChange({type:"propertyChange",changeSet:[{id:this.props.representation.id,name:"Representation",value:t}]})},onColorChange:function(e){var t=this.state.scalarBarVisible,n=e.target.value,r=n.split(d),o=i(r,2),a=o[0],s=o[1],l=s?"array":"SOLID",u="Magnitude",c=0,f=!1;"SOLID"===l&&(t=!1),this.setState({colorValue:n,scalarBarVisible:t,colorMode:l}),this.props.onChange&&this.props.onChange({type:"colorBy",representation:this.props.representation.id,arrayLocation:a,arrayName:s,colorMode:l,vectorMode:u,vectorComponent:c,rescale:f})},render:function(){return this.props.source&&this.props.representation?l["default"].createElement("div",{className:[p["default"].container,this.props.className].join(" ")},l["default"].createElement("div",{className:p["default"].line},l["default"].createElement("i",{className:p["default"].representationIcon}),l["default"].createElement("select",{className:p["default"].input,value:this.state.representationValue,onChange:this.onRepresentationChange},this.state.representationValues.map(function(e,t){return l["default"].createElement("option",{key:t,value:e},e)}))),l["default"].createElement("div",{className:p["default"].line},l["default"].createElement("i",{className:p["default"].colorIcon}),l["default"].createElement("select",{className:p["default"].input,value:this.state.colorValue,onChange:this.onColorChange},this.state.colorValues.map(function(e,t){return l["default"].createElement("option",{key:t,value:e.location?[e.location,e.name].join(d):""},e.location?"("+("POINTS"===e.location?"p":"c")+e.size+") "+e.name:e.name)}))),l["default"].createElement("div",{className:p["default"].line},l["default"].createElement("i",{onClick:this.toggleAdvancedView,className:this.state.advancedView?p["default"].advanceIconOn:p["default"].advanceIconOff}),this.props.scalarBar&&this.state.colorValue&&this.state.colorValue.split(d)[1].length?l["default"].createElement("img",{onClick:this.toggleScalarBar,className:p["default"].scalarBar,src:"data:image/png;base64,"+this.props.scalarBar}):l["default"].createElement("div",{className:p["default"].scalarBar,style:{backgroundColor:this.state.solidColor}}),l["default"].createElement("i",{onClick:this.toggleScalarBar,className:this.state.scalarBarVisible?p["default"].scalarBarIconOn:p["default"].scalarBarIconOff})),l["default"].createElement(c["default"],a({visible:this.state.advancedView},this.props))):null}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(159),s=r(i);t["default"]=a["default"].createClass({displayName:"CompositePipelineWidget.ChildItem",propTypes:{item:a["default"].PropTypes.object,layer:a["default"].PropTypes.string,model:a["default"].PropTypes.object},toggleActiveLayer:function(e){this.props.model.toggleLayerActive(this.props.layer)},updateOpacity:function(e){this.props.model.setOpacity(this.props.layer,e.target.value),this.forceUpdate()},render:function(){var e=this.props.model.isLayerInEditMode(this.props.layer),t=this.props.model.isLayerActive(this.props.layer),n=!t&&!e,r=this.props.model.hasOpacity();return a["default"].createElement("div",{className:n?s["default"].hidden:s["default"].childItem},a["default"].createElement("i",{className:e?t?s["default"].activeButton:s["default"].deleteButtonOn:s["default"].deleteButtonOff,onClick:this.toggleActiveLayer}),a["default"].createElement("div",{className:s["default"].label},this.props.item.name),a["default"].createElement("input",{className:r?s["default"].opacity:s["default"].hidden,type:"range",min:"0",max:"100",value:this.props.model.getOpacity(this.props.layer),onChange:this.updateOpacity}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(389),a=r(o),i=n(3),s=r(i),l=n(159),u=r(l);t["default"]=s["default"].createClass({displayName:"CompositePipelineWidget.RootItem",propTypes:{item:s["default"].PropTypes.object,layer:s["default"].PropTypes.string,model:s["default"].PropTypes.object},getInitialState:function(){return{dropDown:!1}},toggleVisibility:function(){this.props.model.toggleLayerVisible(this.props.layer)},toggleDropDown:function(){this.props.model.getColor(this.props.layer).length>1&&this.setState({dropDown:!this.state.dropDown})},updateColorBy:function(e){this.props.model.setActiveColor(this.props.layer,e.target.dataset.color),this.toggleDropDown()},toggleEditMode:function(){this.props.model.toggleEditMode(this.props.layer)},updateOpacity:function(e){this.props.model.setOpacity(this.props.layer,e.target.value),this.forceUpdate()},render:function(){var e=this.props.model,t=this.props.layer,n=e.isLayerVisible(this.props.layer),r=this.props.item.children||[],o=this.props.model.isLayerInEditMode(this.props.layer),i=r.length>0,l=e.hasOpacity(),c=this.props.model.getColor(this.props.layer).length>1,f=i?s["default"].createElement("i",{className:o?u["default"].editButtonOn:u["default"].editButtonOff,onClick:this.toggleEditMode}):"";return s["default"].createElement("div",{className:u["default"].section},s["default"].createElement("div",{className:u["default"].item},s["default"].createElement("div",{className:u["default"].label},this.props.item.name),s["default"].createElement("div",{className:u["default"].actions},f,s["default"].createElement("i",{className:n?u["default"].visibleButtonOn:u["default"].visibleButtonOff,onClick:this.toggleVisibility}),s["default"].createElement("i",{className:c?u["default"].dropDownButtonOn:u["default"].dropDownButtonOff,onClick:this.toggleDropDown}),s["default"].createElement("div",{onClick:this.updateColorBy,className:this.state.dropDown?u["default"].menu:u["default"].hidden},e.getColor(t).map(function(n){return s["default"].createElement("div",{key:n,"data-color":n,className:e.isActiveColor(t,n)?u["default"].selectedMenuItem:u["default"].menuItem},e.getColorToLabel(n))})))),s["default"].createElement("div",{className:l&&!i?u["default"].item:u["default"].hidden},s["default"].createElement("input",{className:u["default"].opacity,type:"range",min:"0",max:"100",value:e.getOpacity(t),onChange:this.updateOpacity})),s["default"].createElement("div",{className:u["default"].children},r.map(function(t,n){return s["default"].createElement(a["default"],{key:n,item:t,layer:t.ids.join(""),model:e})})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(137),a=r(o),i=n(3),s=r(i),l=n(721),u=r(l);t["default"]=s["default"].createClass({displayName:"DoubleSliderWidget",propTypes:{max:s["default"].PropTypes.oneOfType([s["default"].PropTypes.number,s["default"].PropTypes.string]),min:s["default"].PropTypes.oneOfType([s["default"].PropTypes.number,s["default"].PropTypes.string]),name:s["default"].PropTypes.string,onChange:s["default"].PropTypes.func,size:s["default"].PropTypes.oneOfType([s["default"].PropTypes.number,s["default"].PropTypes.string]),value:s["default"].PropTypes.oneOfType([s["default"].PropTypes.number,s["default"].PropTypes.string])},getDefaultProps:function(){return{max:1,min:0,size:100,name:"DoubleValue"}},getInitialState:function(){return{txtValue:null,value:this.props.value?this.props.value:.5*(this.props.max+this.props.min),max:this.props.max,min:this.props.min}},componentWillReceiveProps:function(e){var t=this.props,n=e;(0,a["default"])(t,n)||this.setState({value:n.value?n.value:.5*(n.max+n.min)})},textInput:function(e){var t=Number(e.target.value);!Number.isNaN(t)&&e.target.value.length>0?(this.setState({value:t,txtValue:e.target.value}),this.props.onChange&&this.props.onChange(this.props.name,t)):this.setState({txtValue:e.target.value})},sliderInput:function(e){var t=Number(this.props.min),n=Number(this.props.max),r=n-t,o=r*(Number(e.target.value)/Number(this.props.size))+t;this.setState({value:o,txtValue:null}), -this.props.onChange&&this.props.onChange(this.props.name,o)},render:function(){var e=this.props.min,t=this.props.max,n=this.props.size,r=this.state.value;return s["default"].createElement("div",{className:u["default"].container},s["default"].createElement("input",{type:"range",className:u["default"].rangeInput,value:Math.floor((r-e)/(t-e)*n),onChange:this.sliderInput,min:"0",max:n}),s["default"].createElement("input",{type:"text",className:u["default"].textInput,pattern:"-*[0-9]*.*[0-9]*",value:null!==this.state.txtValue?this.state.txtValue:this.state.value,onChange:this.textInput}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(192),s=r(i),l=n(724),u=r(l);t["default"]=a["default"].createClass({displayName:"FileBrowserWidget",propTypes:{directories:a["default"].PropTypes.array.isRequired,files:a["default"].PropTypes.array.isRequired,groups:a["default"].PropTypes.array.isRequired,onAction:a["default"].PropTypes.func,path:a["default"].PropTypes.array.isRequired},getInitialState:function(){return{list:[]}},componentDidMount:function(){this.processProps(this.props)},componentWillReceiveProps:function(e){this.processProps(e)},processProps:function(e){var t=[];e.directories.forEach(function(e){t.push({name:e,icon:u["default"].folderIcon,action:"directory"})}),e.groups.forEach(function(e){t.push({name:e.label,icon:u["default"].groupIcon,action:"group",data:btoa(JSON.stringify(e.files))})}),e.files.forEach(function(e){t.push({name:e,icon:u["default"].fileIcon,action:"file"})}),this.setState({list:t})},onAction:function(e,t,n){this.props.onAction&&this.props.onAction(t,e,n.length?JSON.parse(atob(n)):null)},onPathChange:function(e){for(var t=e.target;"li"!==t.localName;)t=t.parentNode;if(this.props.onAction){for(var n=[],r=Number(t.dataset.idx);n.length<=r;)n.push(this.props.path[n.length]);this.props.onAction("path",n.join("/"),n)}},render:function(){var e=this;return a["default"].createElement("div",{className:u["default"].container},a["default"].createElement("ul",{className:u["default"].breadcrumb},this.props.path.map(function(t,n){return a["default"].createElement("li",{className:u["default"].breadcrumbItem,key:t,"data-idx":n,title:t,onClick:e.onPathChange},a["default"].createElement("i",{className:u["default"].breadcrumbFolderIcon}),a["default"].createElement("span",{className:u["default"].breadcrumbLabel},t))})),a["default"].createElement(s["default"],{list:this.state.list,onClick:this.onAction}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return Number(e.id)<Number(t.id)}function i(e,t){var n={tree:o({},t,[]),map:{},leaves:[],rootId:t,y:0,nodes:[],forks:[],branches:[],actives:[]};return e.forEach(function(e){var t=Object.assign({},e);n.tree.hasOwnProperty(t.parent)?n.tree[t.parent].push(t):n.tree[t.parent]=[t],n.map[t.id]=t}),n.tree[t].sort(a),n}function s(e,t,n){var r=e.tree[t.id];t.x=n,t.y=e.y++,e.nodes.push(t),r&&0!==r.length?(r.sort(a),r.forEach(function(t,o){s(e,t,n+r.length-o-1)})):e.leaves.push(t)}function l(e,t){for(var n=t.x,r=t.y,o=e.rootId,a=e.map,i=e.branches,s=e.forks,l={x:n,y:r},u=t;u.parent!==o&&a[u.parent].x===l.x;)u=a[u.parent],l.to=u.y;l.to!==l.y&&i.push(l),u.parent!==o&&s.push({x:a[u.parent].x,y:a[u.parent].y,toX:u.x,toY:u.y})}function u(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=e.nodes,r=e.actives;n.forEach(function(e){-1!==t.indexOf(e.id)&&r.push(e.y)})}Object.defineProperty(t,"__esModule",{value:!0});var c=n(3),f=r(c),p=n(22),d=r(p),h=n(37),g=r(h),m=n(725),v=r(m);t["default"]=f["default"].createClass({displayName:"GitTreeWidget",propTypes:{activeCircleStrokeColor:f["default"].PropTypes.string,actives:f["default"].PropTypes.array,deltaX:f["default"].PropTypes.number,deltaY:f["default"].PropTypes.number,enableDelete:f["default"].PropTypes.bool,fontSize:f["default"].PropTypes.number,margin:f["default"].PropTypes.number,multiselect:f["default"].PropTypes.bool,nodes:f["default"].PropTypes.array,notVisibleCircleFillColor:f["default"].PropTypes.string,offset:f["default"].PropTypes.number,onChange:f["default"].PropTypes.func,palette:f["default"].PropTypes.array,radius:f["default"].PropTypes.number,rootId:f["default"].PropTypes.oneOfType([f["default"].PropTypes.string,f["default"].PropTypes.number,f["default"].PropTypes.instanceOf(null)]),stroke:f["default"].PropTypes.number,style:f["default"].PropTypes.object,textColor:f["default"].PropTypes.array,textWeight:f["default"].PropTypes.array,width:f["default"].PropTypes.oneOfType([f["default"].PropTypes.string,f["default"].PropTypes.number])},getDefaultProps:function(){return{nodes:[],actives:[],style:{},enableDelete:!1,deltaX:20,deltaY:30,fontSize:16,margin:3,multiselect:!1,offset:15,palette:["#e1002a","#417dc0","#1d9a57","#e9bc2f","#9b3880"],radius:6,rootId:"0",stroke:3,width:500,activeCircleStrokeColor:"black",notVisibleCircleFillColor:"white",textColor:["black","white"],textWeight:["normal","bold"]}},getInitialState:function(){return{actives:[],nodes:[],branches:[],forks:[]}},componentWillMount:function(){this.processData(this.props.nodes,this.props.actives)},componentWillReceiveProps:function(e){this.processData(e.nodes,e.actives)},processData:function(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=i(e,this.props.rootId),r=n.tree,o=n.leaves,a=n.rootId,c=n.nodes,f=n.branches,p=n.forks,d=n.actives;r[a].forEach(function(e){return s(n,e,0)}),u(n,t),o.forEach(function(e){return l(n,e)}),p.sort(function(e,t){return e.toX>t.toX}),this.setState({nodes:c,branches:f,forks:p,actives:d,leaves:o})},renderNodes:function(){var e=this;return this.state.nodes.map(function(t,n){var r=e.props,o=r.activeCircleStrokeColor,a=r.deltaX,i=r.deltaY,s=r.fontSize,l=r.notVisibleCircleFillColor,u=r.offset,c=r.palette,p=r.radius,d=r.stroke,h=r.textColor,g=r.textWeight,m=e.state.actives.includes(n),_=!!t.visible,y=c[t.x%c.length],b=h[m?1:0],w=g[m?1:0],x=m?o:y||y,C=_?y:l||y,E=a*t.x+u,T=i*t.y+i/2,P=E+2*p,k=T+p-1;return f["default"].createElement("g",{key:"node-"+n,className:v["default"].cursor},f["default"].createElement("circle",{"data-id":t.y,cx:E,cy:T,r:p,stroke:x,strokeWidth:d,fill:C,onClick:e.toggleVisibility}),f["default"].createElement("text",{className:v["default"].regularText,"data-id":t.y,x:P,y:k,fill:b,fontWeight:w,fontSize:s},t.name))})},renderBranches:function(){var e=this.props,t=e.deltaX,n=e.deltaY,r=e.offset,o=e.palette,a=e.stroke;return this.state.branches.map(function(e,i){var s=t*e.x+r,l=n*e.y+n/2,u=n*e.to+n/2,c=o[e.x%o.length];return f["default"].createElement("path",{key:"branch-"+i,d:"M"+s+","+l+" L"+s+","+u,stroke:c,strokeWidth:a})})},renderForks:function(){var e=this.props,t=e.deltaX,n=e.deltaY,r=e.offset,o=e.palette,a=e.radius,i=e.stroke;return this.state.forks.map(function(e,s){var l=t*e.x+r,u=n*e.y+n/2+a,c=t*e.toX+r,p=n*e.toY+n/2+a,d=o[e.toX%o.length],h="M"+l+","+u+" "+("Q"+l+","+(u+n/3)+","+(l+c)/2+","+(u+n/3)+" ")+("T"+c+","+(u+n)+" L"+c+","+p);return f["default"].createElement("path",{key:"fork-"+s,d:h,stroke:d,strokeWidth:i,fill:"transparent"})})},renderActives:function(){var e=this,t=this.props,n=t.margin,r=t.deltaY;return this.state.actives.map(function(t,o){return f["default"].createElement("rect",{key:"active-"+o,"data-id":e.state.nodes[t].y,x:"-50",width:"1000",fill:"#999",y:t*r+n/2,height:r-n})})},renderDeleteActions:function(){var e=this;if(!this.props.enableDelete)return null;var t=this.props,n=t.deltaY,r=t.width,o=t.offset,a=t.textColor,i=t.radius;return this.state.leaves.map(function(t,s){var l=e.state.actives.includes(t.y),u=a[l?1:0];return f["default"].createElement("text",{key:"delete-"+s,className:v["default"].iconText,onClick:e.deleteNode,"data-id":t.y,x:Number(r)-o-10,y:n*t.y+n/2+i-1,fill:u},"")})},toggleActive:function(e){var t=this,n=this.state,r=n.actives,o=n.nodes;if("circle"!==e.target.nodeName&&!e.target.classList.contains(v["default"].iconText)){var a=g["default"].getSize(d["default"].findDOMNode(this)),i=this.props.deltaY,s=a.clientRect.y||a.clientRect.top,l=Math.floor((e.clientY-s)/i),u=r.indexOf(l);this.props.multiselect&&(e.metaKey||e.ctrlKey)?-1===u?r.push(l):r.splice(u,1):r=[l],this.setState({actives:r}),this.props.onChange&&!function(){var e=[],n=!0;r.forEach(function(t){var r=o[t],a=r.id,i=r.parent,s=r.name,l=r.visible;e.push({id:a,parent:i,name:s,visible:l,active:n})}),t.props.onChange({type:"active",changeSet:e})}()}},toggleVisibility:function(e){var t=parseInt(e.currentTarget.attributes["data-id"].value,10),n=this.state,r=n.actives,o=n.nodes,a=o[t];if(a.visible=!a.visible,this.setState({nodes:o}),this.props.onChange){var i=a.id,s=a.parent,l=a.name,u=a.visible,c=-1!==r.indexOf(t),f=[{id:i,parent:s,name:l,visible:u,active:c}];this.props.onChange({type:"visibility",changeSet:f})}},deleteNode:function(e){if(this.props.onChange){var t=parseInt(e.currentTarget.attributes["data-id"].value,10),n=this.state.nodes[t],r=n.id,o=n.parent,a=n.name,i=n.visible,s=[{id:r,parent:o,name:a,visible:i}];this.props.onChange({type:"delete",changeSet:s})}},render:function(){return f["default"].createElement("svg",{style:this.props.style,width:this.props.width,height:this.props.deltaY*this.state.nodes.length+"px",onClick:this.toggleActive},this.renderActives(),this.renderBranches(),this.renderForks(),this.renderNodes(),this.renderDeleteActions())}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(99),s=r(i),l=n(726),u=r(l);t["default"]=a["default"].createClass({displayName:"InlineToggleButtonWidget",propTypes:{active:a["default"].PropTypes.number,activeColor:a["default"].PropTypes.string,defaultColor:a["default"].PropTypes.string,height:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,options:a["default"].PropTypes.array.isRequired},getDefaultProps:function(){return{activeColor:"#fff",defaultColor:"#ccc",height:"1em"}},getInitialState:function(){return{activeIdx:this.props.active||0}},componentWillReceiveProps:function(e){var t=this.props,n=e;(0,s["default"])(t,n)||this.setState({activeIdx:n.active||0})},activateButton:function(e){var t=Number(e.target.dataset.idx);this.setState({activeIdx:t}),this.props.onChange&&this.props.onChange(this.props.options[t],t)},render:function(){var e=this,t=this.state.activeIdx,n=this.props.height,r=this.props.height,o=this.props.height;return a["default"].createElement("div",{className:u["default"].container},this.props.options.map(function(i,s){var l=t===s,c=l?e.props.activeColor:e.props.defaultColor,f=0===s?l?"activeFirst":"first":s===e.props.options.length-1?l?"activeLast":"last":l?"activeMiddle":"middle";return i.label?a["default"].createElement("button",{style:{lineHeight:r,fontSize:n,background:c},key:s,onClick:e.activateButton,"data-idx":s,className:u["default"][f]},i.label):i.img?a["default"].createElement("div",{style:{lineHeight:r,height:o,fontSize:n,background:c},key:s,onClick:e.activateButton,"data-idx":s,className:u["default"][f]},a["default"].createElement("img",{"data-idx":s,onClick:e.activateButton,height:"100%",src:i.img})):i.icon?a["default"].createElement("i",{key:s,style:{lineHeight:r,fontSize:n,background:c},onClick:e.activateButton,"data-idx":s,className:[u["default"][f],i.icon].join(" ")}):null}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(200),s=r(i),l=n(731),u=r(l);t["default"]=a["default"].createClass({displayName:"ProxyEditorWidget",propTypes:{advanced:a["default"].PropTypes.bool,children:a["default"].PropTypes.oneOfType([a["default"].PropTypes.object,a["default"].PropTypes.array]),onApply:a["default"].PropTypes.func,sections:a["default"].PropTypes.array.isRequired},getDefaultProps:function(){return{advanced:!1}},getInitialState:function(){return{advanced:this.props.advanced,changeSet:{},filter:null}},toggleAdvanced:function(){var e=!this.state.advanced;this.setState({advanced:e})},updateFilter:function(e){var t=e.target.value;this.setState({filter:t})},updateChangeSet:function(e){var t=Object.assign({},this.state.changeSet,e);this.setState({changeSet:t})},applyChanges:function(){this.props.onApply&&this.props.onApply(this.state.changeSet),this.setState({changeSet:{}})},render:function(){var e=this,t=Object.keys(this.state.changeSet).length;return a["default"].createElement("div",{className:u["default"].container},a["default"].createElement("div",{className:u["default"].toolbar},a["default"].createElement("i",{className:this.state.advanced?u["default"].activeAdvancedButton:u["default"].advancedButton,onClick:this.toggleAdvanced}),a["default"].createElement("input",{type:"text",placeholder:"filter properties...",onChange:this.updateFilter,className:u["default"].filter}),a["default"].createElement("i",{className:t?u["default"].validateButtonOn:u["default"].validateButton,onClick:this.applyChanges})),a["default"].createElement("div",{className:u["default"].contentContainer},this.props.children,this.props.sections.map(function(t){return a["default"].createElement(s["default"],{key:t.name,proxy:t,filter:e.state.filter,collapsed:t.collapsed,advanced:e.state.advanced,onChange:e.updateChangeSet})})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(85),a=r(o),i=n(86),s=r(i),l=n(3),u=r(l),c=n(22),f=r(c),p=n(160),d=r(p);t["default"]=u["default"].createClass({displayName:"Number",propTypes:{arg:u["default"].PropTypes.string,model:u["default"].PropTypes.object.isRequired},mixins:[a["default"],s["default"]],getInitialState:function(){return{advanced:!1,button:!1,slider:!1}},previous:function(){this.props.model.previous(this.props.arg)&&(this.props.model.lazyFetchData(),f["default"].findDOMNode(this.refs.slider).focus())},next:function(){this.props.model.next(this.props.arg)&&(this.props.model.lazyFetchData(),f["default"].findDOMNode(this.refs.slider).focus())},first:function(){this.props.model.first(this.props.arg)&&(this.props.model.lazyFetchData(),f["default"].findDOMNode(this.refs.slider).focus())},last:function(){this.props.model.last(this.props.arg)&&(this.props.model.lazyFetchData(),f["default"].findDOMNode(this.refs.slider).focus())},onIndexChange:function(e){this.props.model.setIndex(this.props.arg,Number(e.target.value))&&this.props.model.lazyFetchData()},updateMode:function(e){this.state.advanced!==e.altKey&&this.setState({advanced:e.altKey})},resetState:function(e){this.setState({advanced:!1})},enableButtons:function(e){this.setState({button:!0}),f["default"].findDOMNode(this.refs.slider).focus()},disableButtons:function(){this.setState({button:!1,advanced:!1})},grabFocus:function(){f["default"].findDOMNode(this.refs.slider).focus()},toggleAnimation:function(){this.props.model.toggleAnimationFlag(this.props.arg),this.setState({})},render:function(){return u["default"].createElement("div",{className:this.props.model.getAnimationFlag(this.props.arg)?d["default"].itemActive:d["default"].item,onKeyDown:this.updateMode,onKeyUp:this.resetState,onMouseLeave:this.disableButtons},u["default"].createElement("div",{className:d["default"].row},u["default"].createElement("div",{className:d["default"].label,onClick:this.toggleAnimation},this.props.model.label(this.props.arg)),u["default"].createElement("div",{className:d["default"].mobileOnly},this.props.model.getValue(this.props.arg)),u["default"].createElement("div",{className:[d["default"].itemControl,d["default"].noMobile].join(" "),onMouseEnter:this.enableButtons,onMouseLeave:this.disableButtons},u["default"].createElement("div",{className:this.state.button?d["default"].hidden:d["default"].itemControlValue},this.props.model.getValue(this.props.arg)),u["default"].createElement("i",{className:this.state.button?this.state.advanced?d["default"].firstButton:d["default"].previousButton:d["default"].hidden,onClick:this.state.advanced?this.first:this.previous}),u["default"].createElement("i",{className:this.state.button?this.state.advanced?d["default"].lastButton:d["default"].nextButton:d["default"].hidden,onClick:this.state.advanced?this.last:this.next}))),u["default"].createElement("div",{className:[d["default"].row,d["default"].mobileOnly].join(" ")},u["default"].createElement("div",{className:d["default"].itemControl},u["default"].createElement("br",null),u["default"].createElement("i",{className:d["default"].firstButton,onClick:this.first}),u["default"].createElement("i",{className:d["default"].lastButton,onClick:this.last}),u["default"].createElement("i",{className:d["default"].previousButton,onClick:this.previous}),u["default"].createElement("i",{className:d["default"].nextButton,onClick:this.next}))),u["default"].createElement("div",{className:d["default"].row},u["default"].createElement("div",{className:d["default"].slider,onMouseEnter:this.grabFocus},u["default"].createElement("input",{className:d["default"].input,ref:"slider",type:"range",min:"0",max:this.props.model.getSize(this.props.arg)-1,value:this.props.model.getIndex(this.props.arg),onChange:this.onIndexChange}))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(85),a=r(o),i=n(86),s=r(i),l=n(3),u=r(l),c=n(22),f=r(c),p=n(160),d=r(p);t["default"]=u["default"].createClass({displayName:"ParameterSet.String",propTypes:{arg:u["default"].PropTypes.string,model:u["default"].PropTypes.object.isRequired},mixins:[a["default"],s["default"]],handleChange:function(e){this.props.model.setValue(this.props.arg,e.target.value)&&this.props.model.lazyFetchData()},grabFocus:function(){f["default"].findDOMNode(this.refs.select).focus()},toggleAnimation:function(){this.props.model.toggleAnimationFlag(this.props.arg),this.setState({})},render:function(){return u["default"].createElement("div",{className:this.props.model.getAnimationFlag(this.props.arg)?d["default"].itemActive:d["default"].item},u["default"].createElement("div",{className:[d["default"].row,d["default"].label].join(" "),onClick:this.toggleAnimation},this.props.model.label(this.props.arg)),u["default"].createElement("div",{className:d["default"].row,onMouseEnter:this.grabFocus},u["default"].createElement("select",{className:d["default"].input,ref:"select",value:this.props.model.getValue(this.props.arg),onChange:this.handleChange},this.props.model.getValues(this.props.arg).map(function(e){return u["default"].createElement("option",{key:e,value:e},e)}))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),i=r(a);t["default"]=i["default"].createClass({displayName:"ResplendentWidget",propTypes:{args:i["default"].PropTypes.array,component:i["default"].PropTypes.func.isRequired},getDefaultProps:function(){return{args:[]}},componentDidMount:function(){var e=this.props.component;e&&(this.resp=new(Function.prototype.bind.apply(e,[null].concat([this._elt],o(this.props.args)))),this.resp.render())},componentWillUnmount:function(){this.resp&&this.resp.destroy&&this.resp.destroy(),this.resp=null},render:function(){var e=this;return i["default"].createElement("div",{ref:function(t){return e._elt=t}})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(737),s=r(i);t["default"]=a["default"].createClass({displayName:"SvgIconWidget",propTypes:{className:a["default"].PropTypes.string,height:a["default"].PropTypes.string,icon:a["default"].PropTypes.string,width:a["default"].PropTypes.string},getDefaultProps:function(){return{className:"",icon:s["default"]}},render:function(){var e={width:this.props.width,height:this.props.height};return a["default"].createElement("svg",{style:e,className:this.props.className,dangerouslySetInnerHTML:{__html:'<use xlink:href="'+this.props.icon+'"></use>'}})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(736),s=r(i);t["default"]=a["default"].createClass({displayName:"TogglePanelWidget",propTypes:{anchor:a["default"].PropTypes.array,children:a["default"].PropTypes.oneOfType([a["default"].PropTypes.object,a["default"].PropTypes.array]),panelVisible:a["default"].PropTypes.bool,position:a["default"].PropTypes.array,size:a["default"].PropTypes.object},getDefaultProps:function(){return{anchor:["top","right"],children:[],panelVisible:!1,position:["top","left"],size:{button:["2em","2em"],panel:["400px"]}}},getInitialState:function(){return{panelVisible:this.props.panelVisible}},componentWillReceiveProps:function(e){e.value!==this.state.enabled&&this.setState({enabled:e.value}),e.panelVisible!==this.state.panelVisible&&this.setState({panelVisible:e.panelVisible})},togglePanel:function(){var e=!this.state.panelVisible;this.setState({panelVisible:e})},render:function(){var e=this.props.anchor.join(" "),t=this.props.position.join(" ");return a["default"].createElement("div",{className:s["default"].container,style:{width:this.props.size.button[0],height:this.props.size.button[1],lineHeight:this.props.size.button[1]}},a["default"].createElement("span",{className:this.state.panelVisible?s["default"].panelVisible:s["default"].panelHidden,style:{width:this.props.size.button[0],height:this.props.size.button[1],lineHeight:this.props.size.button[1]},onClick:this.togglePanel}),a["default"].createElement("div",{className:[s["default"].button,e].join(" ")},a["default"].createElement("div",{className:[s["default"].content,t].join(" "),style:{display:this.state.panelVisible?"block":"none",width:this.props.size.panel[0]}},this.props.children)))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(192),a=r(o),i=n(386),s=r(i),l=n(25),u=r(l),c=n(388),f=r(c),p=n(193),d=r(p),h=n(194),g=r(h),m=n(195),v=r(m),_=n(196),y=r(_),b=n(391),w=r(b),x=n(197),C=r(x),E=n(119),T=r(E),P=n(392),k=r(P),M=n(393),S=r(M),D=n(394),R=r(D),A=n(198),I=r(A),O=n(83),N=r(O),F=n(120),L=r(F),B=n(84),j=r(B),W=n(199),U=r(W),V=n(395),z=r(V),q=n(200),H=r(q),X=n(121),G=r(X),Y=n(398),Q=r(Y),K=n(201),Z=r(K),J=n(399),$=r(J),ee=n(202),te=r(ee),ne=n(43),re=r(ne),oe=n(400),ae=r(oe);t["default"]={ActionListWidget:a["default"],ButtonSelectorWidget:s["default"],CollapsibleWidget:u["default"],ColorByWidget:f["default"],ColorPickerWidget:d["default"],CompositePipelineWidget:g["default"],ContentEditableWidget:v["default"],Coordinate2DWidget:y["default"],DoubleSliderWidget:w["default"],DropDownWidget:C["default"],EqualizerWidget:T["default"],FileBrowserWidget:k["default"],GitTreeWidget:S["default"],InlineToggleButtonWidget:R["default"],LayoutsWidget:I["default"],LookupTableWidget:N["default"],NumberInputWidget:L["default"],NumberSliderWidget:j["default"],PresetListWidget:U["default"],ProxyEditorWidget:z["default"],ProxyPropertyGroupWidget:H["default"],QueryDataModelWidget:G["default"],ResplendentWidget:Q["default"],ScalarRangeWidget:Z["default"],SvgIconWidget:$["default"],TextInputWidget:te["default"],ToggleIconButtonWidget:re["default"],TogglePanelWidget:ae["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(377),a=r(o),i=n(371),s=r(i),l=n(380),u=r(l),c=n(385),f=r(c),p=n(401),d=r(p);t["default"]={Properties:a["default"],CollapsibleControls:s["default"],Renderers:u["default"],Viewers:f["default"],Widgets:d["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function y(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:y(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(18),p=r(f),d="ProbeImageBuilder.chart.data.ready",h="ProbeImageBuilder.probe.location.change",g="ProbeImageBuilder.crosshair.visibility.change",m="ProbeImageBuilder.render.change",v={XY:{idx:[0,1,2],hasChange:function(e,t,n,r){return e[2]!==r}},XZ:{idx:[0,2,1],hasChange:function(e,t,n,r){return e[1]!==n}},ZY:{idx:[2,1,0],hasChange:function(e,t,n,r){return e[0]!==t}}},_=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n}));r.metadata=e.originalData.DataProber,r.renderMethodMutable=!0,r.renderMethod="XY",r.triggerProbeLines=!1,r.broadcastCrossHair=!0,r.probeValue=0,r.probeXYZ=[Math.floor(r.metadata.dimensions[0]/2),Math.floor(r.metadata.dimensions[1]/2),Math.floor(r.metadata.dimensions[2]/2)],r.fields=Object.keys(r.metadata.types),r.field=r.fields[0],r.dataFields=null,r.pushMethod="pushToFrontAsBuffer",r.lookupTableManager.updateActiveLookupTable(r.field),r.lookupTableManager.addFields(r.metadata.ranges,r.queryDataModel.originalData.LookupTables);for(var i=0,s=0;3>s;++s){var l=r.metadata.dimensions[s];i=l>i?l:i}r.bgCanvas=new p["default"](i,i),r.registerObjectToFree(r.bgCanvas),r.fgCanvas=null,r.registerSubscription(e.onDataChange(function(e,t){r.dataFields={};for(var n in e)r.dataFields[n]=new window[r.metadata.types[n]](e[n].data);r.render()})),r.registerSubscription(r.lookupTableManager.onActiveLookupTableChange(function(e,t){r.field!==e&&(r.field=e,r.render())})),r.registerSubscription(r.lookupTableManager.onChange(function(e,t){r.update()}));var u=r;return r.mouseListener={click:function(e,t){if(!e.activeArea)return!1;var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=u.metadata.dimensions,a=e.activeArea,i=(e.relative.x-a[0])/a[2],s=(e.relative.y-a[1])/a[3];if(e.modifier)return!1;i=0>i?0:i>1?1:i,s=0>s?0:s>1?1:s,"XZ"===u.renderMethod&&(s=1-s);var l=Math.floor(i*o[r[0]]),c=Math.floor(s*o[r[1]]);return n[r[0]]=l,n[r[1]]=c,u.setProbe(n[0],n[1],n[2]),!0},drag:function(e,t){if(!e.activeArea)return!1;var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=u.metadata.dimensions,a=e.activeArea,i=(e.relative.x-a[0])/a[2],s=(e.relative.y-a[1])/a[3];if(e.modifier)return!1;i=0>i?0:i>1?1:i,s=0>s?0:s>1?1:s,"XZ"===u.renderMethod&&(s=1-s);var l=Math.floor(i*o[r[0]]),c=Math.floor(s*o[r[1]]);return n[r[0]]=l,n[r[1]]=c,u.setProbe(n[0],n[1],n[2]),!0},zoom:function(e,t){var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=r[2];return e.modifier?!1:(n[o]+=e.deltaY<0?-1:1,n[o]<0?(n[o]=0,!0):n[o]>=u.metadata.dimensions[o]?(n[o]=u.metadata.dimensions[o]-1,!0):(u.setProbe(n[0],n[1],n[2]),!0))}},r}return i(t,e),s(t,[{key:"setPushMethodAsBuffer",value:function(){this.pushMethod="pushToFrontAsBuffer"}},{key:"setPushMethodAsImage",value:function(){this.pushMethod="pushToFrontAsImage"}},{key:"setProbeLineNotification",value:function(e){this.triggerProbeLines=e}},{key:"updateProbeValue",value:function(){var e=this.probeXYZ[0],t=this.probeXYZ[1],n=this.probeXYZ[2],r=this.metadata.dimensions[0],o=this.metadata.dimensions[1],a=this.dataFields[this.field];a&&(this.probeValue=a[e+(o-t-1)*r+n*r*o])}},{key:"setProbe",value:function(e,t,n){var r=v[this.renderMethod].hasChange,o=v[this.renderMethod].idx,a=[].concat(this.probeXYZ);if(Array.isArray(e)&&(n=e[2],t=e[1],e=e[0]),r(this.probeXYZ,e,t,n))this.probeXYZ=[e,t,n],this.render();else{this.probeXYZ=[e,t,n];var i=this.metadata.dimensions,s=this.metadata.spacing;this.updateProbeValue(),"XZ"===this.renderMethod?this.pushToFront(i[o[0]],i[o[1]],s[o[0]],s[o[1]],this.probeXYZ[o[0]],i[o[1]]-this.probeXYZ[o[1]]-1):this.pushToFront(i[o[0]],i[o[1]],s[o[0]],s[o[1]],this.probeXYZ[o[0]],this.probeXYZ[o[1]])}a[0]===e&&a[1]===t&&a[2]===n||this.emit(h,[e,t,n])}},{key:"getProbe",value:function(){return this.probeXYZ}},{key:"getFieldValueAtProbeLocation",value:function(){return this.probeValue}},{key:"getProbeLine",value:function(e){var t=this,n={xRange:[0,100],fields:[]},r=this.fields,o=this.probeXYZ[0],a=this.probeXYZ[1],i=this.probeXYZ[2],s=this.metadata.dimensions[0],l=this.metadata.dimensions[1],u=this.metadata.dimensions[2],c=[];if(0===e)for(var f=(l-a-1)*s+i*s*l,p=0;s>p;p++)c.push(f+p);if(1===e){for(var f=o+i*s*l,d=0;l>d;d++)c.push(f+(l-d-1)*s);c.reverse()}if(2===e)for(var f=o+(l-a-1)*s,h=s*l,g=0;u>g;g++)c.push(f+g*h);var m=c.length;return r.forEach(function(e){for(var r=t.dataFields[e],o=[],a=t.lookupTableManager.getLookupTable(e).getScalarRange(),i=0;m>i;i++)o.push(r[c[i]]);n.fields.push({name:e,data:o,range:a})}),n}},{key:"render",value:function(){this.dataFields&&(this.updateProbeValue(),this["render"+this.renderMethod]())}},{key:"pushToFront",value:function(e,t,n,r,o,a){this[this.pushMethod](e,t,n,r,o,a),this.triggerProbeLines&&this.emit(d,{x:this.getProbeLine(0),y:this.getProbeLine(1),z:this.getProbeLine(2)})}},{key:"pushToFrontAsImage",value:function(e,t,n,r,o,a){var i=Math.floor(e*n),s=Math.floor(t*r),l=null;this.fgCanvas?this.fgCanvas.size(i,s):(this.fgCanvas=new p["default"](i,s),this.registerObjectToFree(this.fgCanvas)),l=this.fgCanvas.get2DContext(),l.drawImage(this.bgCanvas.el,0,0,e,t,0,0,i,s),l.beginPath(),l.moveTo(o*n,0),l.lineTo(o*n,s),l.moveTo(0,a*r),l.lineTo(i,a*r),l.strokeStyle="#ffffff",l.lineWidth=1,l.stroke();var u={url:this.fgCanvas.toDataURL(),type:this.renderMethod,builder:this};this.imageReady(u)}},{key:"pushToFrontAsBuffer",value:function(e,t,n,r,o,a){var i=Math.floor(e*n),s=Math.floor(t*r),l={canvas:this.bgCanvas.el,imageData:this.bgCanvas.el.getContext("2d").getImageData(0,0,e,t),area:[0,0,e,t],outputSize:[i,s],type:this.renderMethod,builder:this};this.broadcastCrossHair&&(l.crosshair=[o,a]),this.imageReady(l)}},{key:"renderXY",value:function(){for(var e=this.bgCanvas.get2DContext(),t=this.probeXYZ,n=this.metadata.dimensions,r=n[0],o=n[1],a=this.metadata.spacing,i=e.createImageData(n[0],n[1]),s=i.data,l=n[0]*n[1],u=l*t[2],c=this.lookupTableManager.getLookupTable(this.field),f=this.dataFields[this.field],p=0,d=0;o>d;d++)for(var h=0;r>h;h++){var g=c.getColor(f[u+h+r*(o-d-1)]);s[4*p]=255*g[0],s[4*p+1]=255*g[1],s[4*p+2]=255*g[2],s[4*p+3]=255,p++}e.putImageData(i,0,0),this.pushToFront(n[0],n[1],a[0],a[1],t[0],t[1])}},{key:"renderZY",value:function(){for(var e=this.bgCanvas.get2DContext(),t=this.probeXYZ,n=this.metadata.dimensions,r=t[0],o=n[0],a=n[0]*n[1],i=n[1],s=n[2],l=this.metadata.spacing,u=e.createImageData(n[2],n[1]),c=u.data,f=this.lookupTableManager.getLookupTable(this.field),p=this.dataFields[this.field],d=0,h=0;i>h;h++)for(var g=0;s>g;g++){var m=f.getColor(p[r+o*(i-h-1)+a*g]);c[4*d]=255*m[0],c[4*d+1]=255*m[1],c[4*d+2]=255*m[2],c[4*d+3]=255,d++}e.putImageData(u,0,0),this.pushToFront(n[2],n[1],l[2],l[1],t[2],t[1])}},{key:"renderXZ",value:function(){for(var e=this.bgCanvas.get2DContext(),t=this.probeXYZ,n=this.metadata.dimensions,r=n[0],o=n[2],a=r*n[1],i=r*(n[1]-t[1]-1),s=this.metadata.spacing,l=e.createImageData(r,o),u=l.data,c=this.lookupTableManager.getLookupTable(this.field),f=this.dataFields[this.field],p=0,d=0;o>d;d++)for(var h=0;r>h;h++){ -var g=c.getColor(f[i+h+(o-d-1)*a]);u[4*p]=255*g[0],u[4*p+1]=255*g[1],u[4*p+2]=255*g[2],u[4*p+3]=255,p++}e.putImageData(l,0,0),this.pushToFront(n[0],n[2],s[0],s[2],t[0],o-t[2]-1)}},{key:"isCrossHairEnabled",value:function(){return this.broadcastCrossHair}},{key:"setCrossHairEnable",value:function(e){this.broadcastCrossHair!==e&&(this.broadcastCrossHair=e,this.emit(g,e),this.setProbe(this.probeXYZ[0],this.probeXYZ[1],this.probeXYZ[2]))}},{key:"setField",value:function(e){this.field=e}},{key:"getField",value:function(){return this.field}},{key:"getFields",value:function(){return this.fields}},{key:"setRenderMethod",value:function(e){this.renderMethodMutable&&this.renderMethod!==e&&(this.renderMethod=e,this.render(),this.emit(m,e))}},{key:"getRenderMethod",value:function(){return this.renderMethod}},{key:"getRenderMethods",value:function(){return["XY","ZY","XZ"]}},{key:"isRenderMethodMutable",value:function(){return this.renderMethodMutable}},{key:"setRenderMethodImutable",value:function(){this.renderMethodMutable=!1}},{key:"setRenderMethodMutable",value:function(){this.renderMethodMutable=!0}},{key:"getListeners",value:function(){return this.mouseListener}},{key:"onProbeLineReady",value:function(e){return this.on(d,e)}},{key:"onProbeChange",value:function(e){return this.on(h,e)}},{key:"onRenderMethodChange",value:function(e){return this.on(m,e)}},{key:"onCrosshairVisibilityChange",value:function(e){return this.on(g,e)}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.off(),this.bgCanvas=null,this.fgCanvas=null}},{key:"getControlWidgets",value:function(){var e=this,t=this.getControlModels(),n=t.lookupTableManager,r=t.queryDataModel;return[{name:"LookupTableManagerWidget",lookupTableManager:n},{name:"ProbeControl",model:e},{name:"QueryDataModelWidget",queryDataModel:r}]}}]),t}(c["default"]);t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function m(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:m(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(18),p=r(f),d=n(76),h=r(d),g=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,pipelineModel:n,handleRecord:!0,dimensions:e.originalData.CompositePipeline.dimensions}));return r.metadata=e.originalData.CompositePipeline,r.compositeMap={},r.offsetMap={},r.spriteSize=(0,h["default"])(r.metadata.offset),r.query=null,r.composite=null,r.bgCanvas=new p["default"](r.metadata.dimensions[0],r.metadata.dimensions[1]),r.registerObjectToFree(r.bgCanvas),r.fgCanvas=null,r.registerSubscription(e.onDataChange(function(e,t){r.sprite=e.sprite,r.composite=e.composite.data["pixel-order"].split("+"),r._updateCompositeMap(r.query,r.composite),r.render()})),r.registerSubscription(r.pipelineModel.onChange(function(e,t){r.setPipelineQuery(e)})),r.setPipelineQuery(r.pipelineModel.getPipelineQuery()),r}return i(t,e),s(t,[{key:"_updateOffsetMap",value:function(e){var t=this.metadata.layers,n=t.length,r=this.metadata.offset;this.offsetMap={},this.compositeMap={};for(var o=0;n>o;o++){var a=e[2*o+1];"_"===a?this.offsetMap[t[o]]=-1:this.offsetMap[t[o]]=this.spriteSize-r[t[o]+a]}}},{key:"_updateCompositeMap",value:function(e,t){if(null!==e&&null!==t)for(var n=t,r=this.compositeMap,o=n.length;o--;){var a=n[o];if("@"===a[0]);else if(r.hasOwnProperty(a));else{for(var i=-1,s=0,l=a.length;l>s;s++)i=this.offsetMap[a[s]],-1!==i&&(s=l);r[a]=i}}}},{key:"_pushToFrontAsImage",value:function(e,t){var n=null;this.fgCanvas?this.fgCanvas.size(e,t):(this.fgCanvas=new p["default"](e,t),this.registerObjectToFree(this.fgCanvas)),n=this.fgCanvas.get2DContext(),n.drawImage(this.bgCanvas.el,0,0,e,t,0,0,e,t);var r={url:this.fgCanvas.toDataURL(),builder:this};this.imageReady(r)}},{key:"_pushToFrontAsBuffer",value:function(e,t){var n={canvas:this.bgCanvas.el,imageData:this.bgCanvas.el.getContext("2d").getImageData(0,0,e,t),area:[0,0,e,t],outputSize:[e,t],builder:this,arguments:this.queryDataModel.getQuery()};n.arguments.pipeline=this.query,this.imageReady(n),this.queryDataModel.nextExploration()}},{key:"setPipelineQuery",value:function(e){this.query!==e&&(this.query=e,this._updateOffsetMap(e),this._updateCompositeMap(e,this.composite),this.render())}},{key:"render",value:function(){function e(e){l+=e,u+=Math.floor(l/i),l%=i}var t=this;if(!this.sprite)return void this.queryDataModel.fetchData();if(null!==this.query){var n=this.bgCanvas.get2DContext(),r=this.metadata.dimensions,o=this.composite,a=o.length,i=r[0],s=1,l=0,u=0;if(this.sprite.image.complete){this.sprite.image.onload&&(this.sprite.image.onload=null),n.clearRect(0,0,r[0],r[1]);for(var c=0;a>c;c++){var f=o[c];"@"===f[0]?e(Number(f.replace(/@/,"+"))):(s=this.compositeMap[f],-1!==s&&n.drawImage(this.sprite.image,l,u+r[1]*s,1,1,l,u,1,1),e(1))}this._pushToFrontAsBuffer(r[0],r[1])}else this.sprite.image.onload=function(){t.render()}}}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.bgCanvas=null,this.fgCanvas=null,this.compositeMap=null,this.offsetMap=null}}]),t}(c["default"]);t["default"]=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function y(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:y(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(18),p=r(f),d="ProbeImageBuilder.chart.data.ready",h="ProbeImageBuilder.probe.location.change",g="ProbeImageBuilder.crosshair.visibility.change",m="ProbeImageBuilder.render.change",v={XY:{idx:[0,1,2],hasChange:function(e,t,n,r){return e[2]!==r},updateProbeValue:function(e,t,n,r){var o=e.metadata.dimensions[0],a=t+n*o,i=e.scalars[e.getField()];i&&(e.probeValue=i[a])}},XZ:{idx:[0,2,1],hasChange:function(e,t,n,r){return e[1]!==n},updateProbeValue:function(e,t,n,r){var o=e.metadata.dimensions[0],a=t+r*o,i=e.scalars[e.getField()];i&&(e.probeValue=i[a])}},ZY:{idx:[2,1,0],hasChange:function(e,t,n,r){return e[0]!==t},updateProbeValue:function(e,t,n,r){var o=e.metadata.dimensions[2],a=r+n*o,i=e.scalars[e.getField()];i&&(e.probeValue=i[a])}}},_=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n}));r.metadata=e.originalData.InSituDataProber||e.originalData.DataProber,r.fieldIndex=0,r.renderMethodMutable=!0,r.renderMethod="XY",r.lastImageStack=null,r.workImage=new Image,r.triggerProbeLines=!1,r.broadcastCrossHair=!0,r.scalars={},r.probeValue=0,r.probeXYZ=[Math.floor(r.metadata.dimensions[0]/2),Math.floor(r.metadata.dimensions[1]/2),Math.floor(r.metadata.dimensions[2]/2)],r.setField(r.metadata.fields[r.fieldIndex]),r.pushMethod="pushToFrontAsBuffer",r.lookupTableManager.addFields(r.metadata.ranges,r.queryDataModel.originalData.LookupTables),r.registerSubscription(r.lookupTableManager.onActiveLookupTableChange(function(e,t){r.getField()!==e&&(r.setField(e),r.update())}));for(var i=0,s=0;3>s;++s){var l=r.metadata.dimensions[s];i=l>i?l:i}r.bgCanvas=new p["default"](i,i),r.registerObjectToFree(r.bgCanvas),r.fgCanvas=null,r.registerSubscription(e.onDataChange(function(e,t){r.lastImageStack=e;var n=function(){r.render()},o=!0;for(var a in e){var i=e[a].image;i.addEventListener("load",n),o=o&&i.complete}o&&r.render()})),r.registerSubscription(r.lookupTableManager.onChange(function(e,t){r.update()}));var u=r;return r.mouseListener={click:function(e,t){if(!e.activeArea)return!1;var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=u.metadata.dimensions,a=e.activeArea,i=(e.relative.x-a[0])/a[2],s=(e.relative.y-a[1])/a[3];if(e.modifier)return!1;i=0>i?0:i>1?1:i,s=0>s?0:s>1?1:s;var l=Math.floor(i*o[r[0]]),c=Math.floor(s*o[r[1]]);return n[r[0]]=l,n[r[1]]=c,u.setProbe(n[0],n[1],n[2]),!0},drag:function(e,t){if(!e.activeArea)return!1;var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=u.metadata.dimensions,a=e.activeArea,i=(e.relative.x-a[0])/a[2],s=(e.relative.y-a[1])/a[3];if(e.modifier)return!1;i=0>i?0:i>1?1:i,s=0>s?0:s>1?1:s;var l=Math.floor(i*o[r[0]]),c=Math.floor(s*o[r[1]]);return n[r[0]]=l,n[r[1]]=c,u.setProbe(n[0],n[1],n[2]),!0},zoom:function(e,t){var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=r[2];return e.modifier?!1:(n[o]+=e.deltaY<0?-1:1,n[o]<0?(n[o]=0,!0):n[o]>=u.metadata.dimensions[o]?(n[o]=u.metadata.dimensions[o]-1,!0):(u.setProbe(n[0],n[1],n[2]),!0))}},r}return i(t,e),s(t,[{key:"setProbeLineNotification",value:function(e){this.triggerProbeLines=e}},{key:"getYOffset",value:function(e){return void 0===e&&(e=this.probeXYZ[2]),this.metadata.sprite_size-e%this.metadata.sprite_size-1}},{key:"getImage",value:function(e,t){void 0===e&&(e=this.probeXYZ[2]);var n=this.metadata.slices.length-1,r=Math.floor(e/this.metadata.sprite_size);r=0>r?0:r>n?n:r;var o=this.lastImageStack[this.metadata.slices[r]],a=o.image;a?a.complete?t.call(a):a.addEventListener("load",t):(this.workImage.addEventListener("load",t),this.workImage.src=o.url)}},{key:"setProbe",value:function(e,t,n){var r=v[this.renderMethod].hasChange,o=v[this.renderMethod].idx,a=[].concat(this.probeXYZ);if(Array.isArray(e)&&(n=e[2],t=e[1],e=e[0]),r(this.probeXYZ,e,t,n))this.probeXYZ=[e,t,n],this.render();else{this.probeXYZ=[e,t,n];var i=this.metadata.dimensions,s=this.metadata.spacing;v[this.renderMethod].updateProbeValue(this,e,t,n),this.pushToFront(i[o[0]],i[o[1]],s[o[0]],s[o[1]],this.probeXYZ[o[0]],this.probeXYZ[o[1]])}a[0]===e&&a[1]===t&&a[2]===n||this.emit(h,[e,t,n])}},{key:"getProbe",value:function(){return this.probeXYZ}},{key:"getFieldValueAtProbeLocation",value:function(){return this.probeValue}},{key:"getProbeLine",value:function(e){for(var t={name:this.getField(),data:[]},n={xRange:[0,100],fields:[t]},r=-1,o=v[this.renderMethod].idx,a=0;2>a;a++)e===o[a]&&(r=a);if(-1!==r){var i=this.scalars[t.name],s=this.metadata.dimensions,l=s[o[0]],u=s[o[1]],c=0===r?1:l,f=0===r?this.probeXYZ[o[1]]*l:this.probeXYZ[o[0]],p=0===r?l:u;if(this.metadata.origin&&this.metadata.spacing&&(n.xRange[0]=this.metadata.origin[e],n.xRange[1]=this.metadata.origin[e]+this.metadata.spacing[e]*s[e]),i)for(var d=0;p>d;d++)t.data.push(i[f+d*c])}return n}},{key:"render",value:function(){this.lastImageStack&&(this["render"+this.renderMethod](),v[this.renderMethod].updateProbeValue(this,this.probeXYZ[0],this.probeXYZ[1],this.probeXYZ[2]))}},{key:"pushToFront",value:function(e,t,n,r,o,a){this[this.pushMethod](e,t,n,r,o,a),this.triggerProbeLines&&this.emit(d,{x:this.getProbeLine(0),y:this.getProbeLine(1),z:this.getProbeLine(2)})}},{key:"pushToFrontAsImage",value:function(e,t,n,r,o,a){var i=Math.floor(e*n),s=Math.floor(t*r),l=null;this.fgCanvas?this.fgCanvas.size(i,s):this.fgCanvas=new p["default"](i,s),l=this.fgCanvas.get2DContext(),l.drawImage(this.bgCanvas.el,0,0,e,t,0,0,i,s),l.beginPath(),l.moveTo(o*n,0),l.lineTo(o*n,s),l.moveTo(0,a*r),l.lineTo(i,a*r),l.strokeStyle="#ffffff",l.lineWidth=1,l.stroke();var u={url:this.fgCanvas.toDataURL(),type:this.renderMethod,builder:this};this.imageReady(u)}},{key:"pushToFrontAsBuffer",value:function(e,t,n,r,o,a){var i=Math.floor(e*n),s=Math.floor(t*r),l={canvas:this.bgCanvas.el,imageData:this.bgCanvas.el.getContext("2d").getImageData(0,0,e,t),area:[0,0,e,t],outputSize:[i,s],type:this.renderMethod,builder:this};this.broadcastCrossHair&&(l.crosshair=[o,a]),this.imageReady(l)}},{key:"renderXY",value:function(){var e=this,t=this.bgCanvas.get2DContext(),n=this.getYOffset(),r=this.probeXYZ,o=this.metadata.dimensions,a=this.metadata.spacing;this.getImage(this.probeXYZ[2],function(){var i=this;t.drawImage(i,0,o[1]*n,o[0],o[1],0,0,o[0],o[1]),e.extractNumericalValues(o[0],o[1]),e.applyLookupTable(o[0],o[1]),e.pushToFront(o[0],o[1],a[0],a[1],r[0],r[1])})}},{key:"renderZY",value:function(){function e(){var s=t.getYOffset(a),l=this;n.drawImage(l,r[0],o[1]*s,1,o[1],a,0,1,o[1]),a--?t.getImage(a,e):(t.extractNumericalValues(o[2],o[1]),t.applyLookupTable(o[2],o[1]),t.pushToFront(o[2],o[1],i[2],i[1],r[2],r[1]))}var t=this,n=this.bgCanvas.get2DContext(),r=this.probeXYZ,o=this.metadata.dimensions,a=o[2],i=this.metadata.spacing;a--&&t.getImage(a,e)}},{key:"renderXZ",value:function(){function e(){var s=t.getYOffset(i),l=this;n.drawImage(l,0,o[1]*s+r[1],o[0],1,0,i,o[0],1),i--?t.getImage(i,e):(t.extractNumericalValues(o[0],o[2]),t.applyLookupTable(o[0],o[2]),t.pushToFront(o[0],o[2],a[0],a[2],r[0],r[2]))}var t=this,n=this.bgCanvas.get2DContext(),r=this.probeXYZ,o=this.metadata.dimensions,a=this.metadata.spacing,i=o[2];i--&&t.getImage(i,e)}},{key:"isCrossHairEnabled",value:function(){return this.broadcastCrossHair}},{key:"setCrossHairEnable",value:function(e){this.broadcastCrossHair!==e&&(this.broadcastCrossHair=e,this.emit(g,e),this.setProbe(this.probeXYZ[0],this.probeXYZ[1],this.probeXYZ[2]))}},{key:"extractNumericalValues",value:function(e,t){for(var n=this.bgCanvas.get2DContext(),r=this.getField(),o=n.getImageData(0,0,e,t),a=o.data,i=a.length,s=0,l=this.metadata.ranges[r],u=l[1]-l[0],c=0,f=new Float32Array(e*t);i>s;){var p=(a[s]+256*a[s+1]+65536*a[s+2])/16777216*u+l[0];f[c++]=p,s+=4}this.scalars[r]=f}},{key:"applyLookupTable",value:function(e,t){var n=this.bgCanvas.get2DContext(),r=this.getField(),o=this.lookupTableManager.getLookupTable(r),a=n.getImageData(0,0,e,t),i=a.data,s=i.length,l=0,u=0,c=this.scalars[r];if(o){for(;s>l;){var f=o.getColor(c[u++]);i[l]=Math.floor(255*f[0]),i[l+1]=Math.floor(255*f[1]),i[l+2]=Math.floor(255*f[2]),l+=4}n.putImageData(a,0,0)}}},{key:"setField",value:function(e){this.queryDataModel.setValue("field",e)}},{key:"getField",value:function(){return this.queryDataModel.getValue("field")}},{key:"getFields",value:function(){return this.metadata.fields}},{key:"setRenderMethod",value:function(e){this.renderMethodMutable&&this.renderMethod!==e&&(this.renderMethod=e,this.render(),this.emit(m,e))}},{key:"getRenderMethod",value:function(){return this.renderMethod}},{key:"getRenderMethods",value:function(){return["XY","ZY","XZ"]}},{key:"isRenderMethodMutable",value:function(){return this.renderMethodMutable}},{key:"setRenderMethodImutable",value:function(){this.renderMethodMutable=!1}},{key:"setRenderMethodMutable",value:function(){this.renderMethodMutable=!0}},{key:"getListeners",value:function(){return this.mouseListener}},{key:"onProbeLineReady",value:function(e){return this.on(d,e)}},{key:"onProbeChange",value:function(e){return this.on(h,e)}},{key:"onRenderMethodChange",value:function(e){return this.on(m,e)}},{key:"onCrosshairVisibilityChange",value:function(e){return this.on(g,e)}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.off(),this.bgCanvas=null,this.workImage=null}},{key:"getControlWidgets",value:function(){var e=this.getControlModels(),t=e.lookupTable,n=e.originalRange,r=e.lookupTableManager,o=e.queryDataModel,a=this;return[{name:"LookupTableManagerWidget",lookupTable:t,originalRange:n,lookupTableManager:r},{name:"ProbeControl",model:a},{name:"QueryDataModelWidget",queryDataModel:o}]}},{key:"getControlModels",value:function(){return{queryDataModel:this.queryDataModel,lookupTable:this.lookupTableManager.getLookupTable(this.getField()),originalRange:this.metadata.ranges[this.getField()],lookupTableManager:this.lookupTableManager}}}]),t}(c["default"]);t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n in d)if((0,i["default"])(e,n))return new d[n](t);return console.error("No compositor found for type",e),null}Object.defineProperty(t,"__esModule",{value:!0});var a=n(239),i=r(a),s=n(409),l=r(s),u=n(410),c=r(u),f=n(408),p=r(f),d={rgbd:l["default"],"sxyz-light":c["default"],"raw-rgbd":p["default"]};t["default"]={createCompositor:o}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(406),p=r(f),d=function(e){function t(e,n,r){o(this,t);var i=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,pipelineModel:n,dimensions:e.originalData.CompositePipeline.dimensions}));return i.compositor=p["default"].createCompositor(e.originalData.type,{queryDataModel:e,lookupTableManager:r,imageBuilder:i}),i.registerObjectToFree(i.compositor),i.query=null,i.setPipelineQuery(i.pipelineModel.getPipelineQuery()),i.registerSubscription(i.pipelineModel.onChange(function(e,t){i.setPipelineQuery(e)})),i}return i(t,e),s(t,[{key:"setPipelineQuery",value:function(e){this.query!==e&&(this.query=e,this.compositor.updateQuery(e),this.render())}},{key:"render",value:function(){this.query&&this.compositor.render()}},{key:"getControlWidgets",value:function(){return this.compositor.getControlWidgets?this.compositor.getControlWidgets():l(Object.getPrototypeOf(t.prototype),"getControlWidgets",this).call(this)}},{key:"getControlModels",value:function(){return this.compositor.getControlModels?this.compositor.getControlModels():l(Object.getPrototypeOf(t.prototype),"getControlModels",this).call(this)}}]),t}(c["default"]);t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(18),s=r(i),l=n(50),u=r(l),c=n(55),f=r(c),p=n(76),d=r(p),h=function(){function e(t){var r=this,a=t.queryDataModel,i=t.imageBuilder;return o(this,e),this.queryDataModel=a,this.imageBuilder=i,this.rgbdData=null,this.offsetList=[],this.spriteSize=(0,d["default"])(this.queryDataModel.originalData.CompositePipeline.offset),this.dataSubscription=a.onDataChange(function(e,t){r.rgbdData=e.rgbdSprite.data,r.render()}),this.width=this.queryDataModel.originalData.CompositePipeline.dimensions[0],this.height=this.queryDataModel.originalData.CompositePipeline.dimensions[1],this.glCanvas=new s["default"](this.width,this.height),this.gl=this.glCanvas.get3DContext(),this.gl?(this.gl.clearColor(1,1,1,0),this.glConfig={programs:{displayProgram:{vertexShader:n(21),fragmentShader:n(158),mapping:"default"},compositeProgram:{vertexShader:n(21),fragmentShader:n(276),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"texture2D",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]},{id:"ping",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]},{id:"pong",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}},this.glResources=u["default"].createGLResources(this.gl,this.glConfig),void(this.pingPong=new f["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong]))):(console.error("Unable to get WebGl context"),null)}return a(e,[{key:"extractLayerData",value:function(e,t){var n=0,r=t,o=4*(r*this.width+n),a=this.width*this.height*4;return new Uint8Array(e,o,a)}},{key:"updateQuery",value:function(e){var t=this.queryDataModel.originalData.CompositePipeline.layers,n=t.length,r=this.queryDataModel.originalData.CompositePipeline.offset;this.offsetList=[];for(var o=0;n>o;o++){var a=e[2*o+1];"_"!==a&&this.offsetList.push(this.spriteSize-r[t[o]+a])}}},{key:"render",value:function(){var e=this;if(!this.rgbdData)return null;this.pingPong.clearFbo(),this.offsetList.forEach(function(t){e.drawCompositePass(e.extractLayerData(e.rgbdData,t*e.height))}),this.drawDisplayPass();var t={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(t)}},{key:"destroy",value:function(){this.glCanvas.destroy(),this.glCanvas=null,this.dataSubscription.unsubscribe(),this.dataSubscription=null,this.glResources.destroy(),this.glResources=null,this.pingPong=null}},{key:"drawDisplayPass",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish()}},{key:"drawCompositePass",value:function(e){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.compositeProgram),this.gl.viewport(0,0,this.width,this.height);var t=this.gl.getUniformLocation(this.glResources.programs.compositeProgram,"layerSampler");this.gl.uniform1i(t,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.texture2D),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.width,this.height,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,e);var n=this.gl.getUniformLocation(this.glResources.programs.compositeProgram,"compositeSampler");this.gl.uniform1i(n,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap()}}]),e}();t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(18),s=r(i),l=n(76),u=r(l),c=n(50),f=r(c),p=n(55),d=r(p),h=function(){function e(t){var r=this,a=t.queryDataModel,i=t.imageBuilder;return o(this,e),this.queryDataModel=a,this.imageBuilder=i,this.rgbdSprite=null,this.offsetList=[],this.spriteSize=(0,u["default"])(this.queryDataModel.originalData.CompositePipeline.offset),this.removeLoadCallback=!1,this.closureRenderMethod=function(){r.render()},this.dataSubscription=a.onDataChange(function(e,t){r.rgbdSprite=e.rgbdSprite.image,r.rgbdSprite.complete?r.render():(r.removeLoadCallback=!0,r.rgbdSprite.addEventListener("load",r.closureRenderMethod))}),this.width=this.queryDataModel.originalData.CompositePipeline.dimensions[0],this.height=this.queryDataModel.originalData.CompositePipeline.dimensions[1],this.glCanvas=new s["default"](this.width,this.height),this.compositeCanvas=new s["default"](this.width,this.height),this.compositeCtx=this.compositeCanvas.get2DContext(),this.gl=this.glCanvas.get3DContext(),this.gl?(this.gl.clearColor(1,1,1,0),this.glConfig={programs:{displayProgram:{vertexShader:n(21),fragmentShader:n(158),mapping:"default"},compositeProgram:{vertexShader:n(21),fragmentShader:n(276),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"texture2D",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]},{id:"ping",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]},{id:"pong",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}},this.glResources=f["default"].createGLResources(this.gl,this.glConfig),void(this.pingPong=new d["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong]))):(console.error("Unable to get WebGl context"),null)}return a(e,[{key:"updateQuery",value:function(e){var t=this.queryDataModel.originalData.CompositePipeline.layers,n=t.length,r=this.queryDataModel.originalData.CompositePipeline.offset;this.offsetList=[];for(var o=0;n>o;o++){var a=e[2*o+1];"_"!==a&&this.offsetList.push(this.spriteSize-r[t[o]+a])}}},{key:"render",value:function(){var e=this;if(!this.rgbdSprite||!this.rgbdSprite.complete)return null;this.removeLoadCallback&&(this.rgbdSprite.removeEventListener("load",this.closureRenderMethod),this.removeLoadCallback=!1),this.pingPong.clearFbo(),this.offsetList.forEach(function(t){var n=t*e.height;e.compositeCtx.clearRect(0,0,e.width,e.height),e.compositeCtx.drawImage(e.rgbdSprite,0,n,e.width,e.height,0,0,e.width,e.height),e.drawCompositePass()}),this.drawDisplayPass();var t={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(t)}},{key:"destroy",value:function(){this.glCanvas.destroy(),this.glCanvas=null,this.dataSubscription.unsubscribe(),this.dataSubscription=null,this.glResources.destroy(),this.glResources=null,this.pingPong=null}},{key:"drawDisplayPass",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish()}},{key:"drawCompositePass",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.compositeProgram),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.compositeProgram,"layerSampler");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.texture2D),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.compositeCanvas.el);var t=this.gl.getUniformLocation(this.glResources.programs.compositeProgram,"compositeSampler");this.gl.uniform1i(t,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap()}}]),e}();t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){var n=parseFloat(e),r=parseFloat(t),o=(180-n)*Math.PI/180,a=(180-r)*Math.PI/180;return[Math.sin(a)*Math.cos(o),Math.sin(a)*Math.sin(o),Math.cos(a)]}function i(e,t){var n=a(e.getValue("phi"),e.getValue("theta")),r=g["default"].fromValues(n[0],n[1],n[2]),o=g["default"].fromValues(0,0,0),i=g["default"].fromValues(0,0,1),s=g["default"].create();g["default"].add(s,i,r),g["default"].normalize(s,s);var l=g["default"].create();g["default"].subtract(l,o,r);var u=g["default"].create();g["default"].subtract(u,s,r);var c=g["default"].create();g["default"].cross(c,l,u),g["default"].normalize(c,c),g["default"].subtract(l,c,r),g["default"].subtract(u,o,r);var f=g["default"].create();g["default"].cross(f,l,u),g["default"].normalize(f,f);var p=g["default"].create();g["default"].scale(p,c,t.x);var d=g["default"].create();g["default"].scale(d,f,t.y);var h=g["default"].create(); -g["default"].scale(h,r,.3);var m=g["default"].create();return g["default"].add(m,h,p),g["default"].add(m,m,d),g["default"].normalize(m,m),{lightDir:m,viewDir:r}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(18),u=r(l),c=n(76),f=r(c),p=n(102),d=r(p),h=n(615),g=r(h),m=n(236),v=r(m),_=n(50),y=r(_),b=n(55),w=r(b),x=[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]],C=[["UNPACK_FLIP_Y_WEBGL",!0]],E=function(){function e(t){var r=this,a=t.queryDataModel,i=t.imageBuilder,s=t.lookupTableManager;o(this,e),this.queryDataModel=a,this.imageBuilder=i,this.lookupTableManager=s,this.compositePipeline=this.queryDataModel.originalData.CompositePipeline,this.width=this.compositePipeline.dimensions[0],this.height=this.compositePipeline.dimensions[1],this.spriteSize=(0,f["default"])(this.compositePipeline.offset),this.offsetList=[],this.sxyzSprite=null,this.removeLoadCallback=!1,this.closureRenderMethod=function(){r.render()},this.doLighting=!0,this.dataSubscription=a.onDataChange(function(e,t){r.sxyzSprite=e.sxyzSprite.image,r.sxyzSprite.complete?r.render():(r.removeLoadCallback=!0,r.sxyzSprite.addEventListener("load",r.closureRenderMethod))}),this.lookupTableManager.addFields(this.compositePipeline.ranges,this.queryDataModel.originalData.LookupTables),this.numLutSamples=1024,this.lutMap={};for(var l in this.compositePipeline.ranges)this.lutMap[l]=new Uint8Array(4*this.numLutSamples),this.resampleLookupTable(l);return this.lookupTableManager.onChange(function(e,t){"__internal"!==e.lut.name&&r.resampleLookupTable(e.lut.name)}),this.bgColor=[1,1,1],this.lightingTextureNames=["nx","ny","nz","scalars"],this.lightingTextures={},this.lightProperties={lightTerms:{ka:.1,kd:.6,ks:.3,alpha:20},lightPosition:{x:-1,y:1},lightColor:[.8,.8,.8]},this.glCanvas=new u["default"](this.width,this.height),this.compositeCanvas=new u["default"](this.width,this.height),this.compositeCtx=this.compositeCanvas.get2DContext(),this.scalarCanvas=new u["default"](this.width,this.height),this.scalarCtx=this.scalarCanvas.get2DContext(),this.nxCanvas=new u["default"](this.width,this.height),this.nxCtx=this.nxCanvas.get2DContext(),this.nyCanvas=new u["default"](this.width,this.height),this.nyCtx=this.nyCanvas.get2DContext(),this.nzCanvas=new u["default"](this.width,this.height),this.nzCtx=this.nzCanvas.get2DContext(),this.gl=this.glCanvas.get3DContext(),this.gl?(this.gl.clearColor(1,1,1,0),this.glConfig={programs:{displayProgram:{vertexShader:n(21),fragmentShader:n(158),mapping:"default"},compositeLightProgram:{vertexShader:n(21),fragmentShader:n(701),mapping:"default"},compositeLutProgram:{vertexShader:n(21),fragmentShader:n(702),mapping:"default"},backgroundProgram:{vertexShader:n(21),fragmentShader:n(700),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"scalars",pixelStore:C,texParameter:x},{id:"nx",pixelStore:C,texParameter:x},{id:"ny",pixelStore:C,texParameter:x},{id:"nz",pixelStore:C,texParameter:x},{id:"lutTexture",pixelStore:C,texParameter:x},{id:"ping",pixelStore:C,texParameter:x},{id:"pong",pixelStore:C,texParameter:x}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}},this.glResources=y["default"].createGLResources(this.gl,this.glConfig),void(this.pingPong=new w["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong]))):(console.error("Unable to get WebGl context"),null)}return s(e,[{key:"resampleLookupTable",value:function(e){for(var t=this.lookupTableManager.getLookupTable(e),n=this.compositePipeline.ranges[e],r=(n[1]-n[0])/this.numLutSamples,o=this.lutMap[e],a=0;a<this.numLutSamples;++a){var i=n[0]+a*r,s=4*a,l=t.getColor(i);o[s]=Math.round(255*l[0]),o[s+1]=Math.round(255*l[1]),o[s+2]=Math.round(255*l[2]),o[s+3]=1}this.render()}},{key:"updateQuery",value:function(e){var t=this.compositePipeline.layers,n=t.length,r=this.compositePipeline.offset,o=this.compositePipeline.color_by_dependencies;this.offsetList=[];for(var a=0;n>a;a++){var i=e[2*a+1];if("_"!==i&&o[i]){var s=o[i];if(s.normal){var l=s.normal[0],u=s.normal[1],c=s.normal[2];this.offsetList.push({fieldName:this.compositePipeline.fields[i],scalar:this.spriteSize-r[t[a]+i],nx:this.spriteSize-r[t[a]+l],ny:this.spriteSize-r[t[a]+u],nz:this.spriteSize-r[t[a]+c]})}}}}},{key:"render",value:function(){if(!this.sxyzSprite||!this.sxyzSprite.complete)return void console.log("Not enough data to render");this.removeLoadCallback&&(this.sxyzSprite.removeEventListener("load",this.closureRenderMethod),this.removeLoadCallback=!1),this.pingPong.clearFbo();var e=i(this.queryDataModel,this.lightProperties.lightPosition),t=e.lightDir,n=e.viewDir,r=this.width,o=this.height,a=0,s=0;this.compositeCtx.clearRect(0,0,r,o),this.compositeCtx.drawImage(this.sxyzSprite,0,this.spriteSize*o,r,o,0,0,r,o),this.drawBackgroundPass(this.bgColor);for(var l=0,u=this.offsetList.length;u>l;l+=1){var c=this.offsetList[l],f=c.fieldName;s=0,this.doLighting?(s=c.nx*o,this.nxCtx.clearRect(0,0,r,o),this.nxCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),s=c.ny*o,this.nyCtx.clearRect(0,0,r,o),this.nyCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),s=c.nz*o,this.nzCtx.clearRect(0,0,r,o),this.nzCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),s=c.scalar*o,this.scalarCtx.clearRect(0,0,r,o),this.scalarCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),this.drawLitCompositePass(n,t,this.lightProperties,this.lutMap[f])):(s=c.scalar*o,this.scalarCtx.clearRect(0,0,r,o),this.scalarCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),this.drawLutCompositePass(this.lutMap[f]))}this.drawDisplayPass();var p={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(p)}},{key:"drawDisplayPass",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},{key:"drawBackgroundPass",value:function(e){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.backgroundProgram),this.gl.viewport(0,0,this.width,this.height);var t=v["default"].fromValues(e[0],e[1],e[2],1),n=this.gl.getUniformLocation(this.glResources.programs.backgroundProgram,"backgroundColor");this.gl.uniform4fv(n,t);var r=this.gl.getUniformLocation(this.glResources.programs.backgroundProgram,"backgroundSampler");this.gl.uniform1i(r,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.compositeCanvas.el),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap(),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},{key:"drawLitCompositePass",value:function(e,t,n,r){var o=n.lightTerms,a=n.lightColor;this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.compositeLightProgram),this.gl.viewport(0,0,this.width,this.height);var i=v["default"].fromValues(e[0],e[1],e[2],0),s=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"viewDir");this.gl.uniform4fv(s,i);var l=v["default"].fromValues(t[0],t[1],t[2],0),u=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"lightDir");this.gl.uniform4fv(u,l);var c=v["default"].fromValues(o.ka,o.kd,o.ks,o.alpha),f=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"lightTerms");this.gl.uniform4fv(f,c);var p=v["default"].fromValues(a[0],a[1],a[2],1),d=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"lightColor");this.gl.uniform4fv(d,p);var h=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"scalarSampler");this.gl.uniform1i(h,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.scalars),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.scalarCanvas.el);var g=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"nxSampler");this.gl.uniform1i(g,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.nx),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.nxCanvas.el);var m=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"nySampler");this.gl.uniform1i(m,2),this.gl.activeTexture(this.gl.TEXTURE0+2),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.ny),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.nyCanvas.el);var _=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"nzSampler");this.gl.uniform1i(_,3),this.gl.activeTexture(this.gl.TEXTURE0+3),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.nz),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.nzCanvas.el);var y=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"compositeSampler");this.gl.uniform1i(y,4),this.gl.activeTexture(this.gl.TEXTURE0+4),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture());var b=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"lutSampler");this.gl.uniform1i(b,5),this.gl.activeTexture(this.gl.TEXTURE0+5),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.lutTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.numLutSamples,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,r),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap();for(var w=0;6>w;w+=1)this.gl.activeTexture(this.gl.TEXTURE0+w),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},{key:"drawLutCompositePass",value:function(e){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.compositeLutProgram),this.gl.viewport(0,0,this.width,this.height);var t=this.gl.getUniformLocation(this.glResources.programs.compositeLutProgram,"scalarSampler");this.gl.uniform1i(t,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.scalars),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.scalarCanvas.el);var n=this.gl.getUniformLocation(this.glResources.programs.compositeLutProgram,"compositeSampler");this.gl.uniform1i(n,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture());var r=this.gl.getUniformLocation(this.glResources.programs.compositeLutProgram,"lutSampler");this.gl.uniform1i(r,2),this.gl.activeTexture(this.gl.TEXTURE0+2),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.lutTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.numLutSamples,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,e),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap();for(var o=0;3>o;o+=1)this.gl.activeTexture(this.gl.TEXTURE0+o),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},{key:"getControlWidgets",value:function(){return[{name:"LookupTableManagerWidget",lookupTableManager:this.lookupTableManager},{name:"LightPropertiesWidget",light:this},{name:"CompositeControl",pipelineModel:this.imageBuilder.pipelineModel},{name:"QueryDataModelWidget",queryDataModel:this.queryDataModel}]}},{key:"getLightingEnabled",value:function(){return this.doLighting}},{key:"setLightingEnabled",value:function(e){this.doLighting=e,this.render()}},{key:"getLightProperties",value:function(){return this.lightProperties}},{key:"setLightProperties",value:function(e){this.lightProperties=(0,d["default"])(this.lightProperties,e),this.render()}},{key:"getControlModels",value:function(){return{lookupTableManager:this.lookupTableManager,light:this,pipelineModel:this.imageBuilder.pipelineModel,queryDataModel:this.queryDataModel,dimensions:[this.width,this.height]}}},{key:"destroy",value:function(){this.dataSubscription.unsubscribe(),this.dataSubscription=null,this.glResources.destroy(),this.glResources=null,this.pingPong=null}}]),e}();t["default"]=E},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(18),p=r(f),d=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,dimensions:e.getDataMetaData(n).dimensions}));return r.dataName=n,r.depthArray=null,r.dimensions=e.getDataMetaData(n).dimensions,r.bgCanvas=new p["default"](r.dimensions[0],r.dimensions[1]),r.registerObjectToFree(r.bgCanvas),r.registerSubscription(e.onDataChange(function(e,t){r.depthArray=new Uint8Array(e[r.dataName].data),r.render()})),r}return i(t,e),s(t,[{key:"render",value:function(){if(!this.depthArray)return void this.update();for(var e=this.bgCanvas.get2DContext(),t=this.dimensions[0],n=this.dimensions[1],r=this.bgCanvas.el.getContext("2d").getImageData(0,0,t,n),o=r.data,a=t*n,i=0;a>i;i++){var s=this.depthArray[i];o[4*i+0]=s,o[4*i+1]=s,o[4*i+2]=s,o[4*i+3]=255}e.putImageData(r,0,0);var l={canvas:this.bgCanvas.el,area:[0,0,t,n],outputSize:[t,n],builder:this};this.imageReady(l)}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.bgCanvas=null,this.dataName=null,this.depthArray=null,this.dimensions=null}}]),t}(c["default"]);t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function b(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:b(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(18),p=r(f),d=n(239),h=r(d),g=n(99),m=r(g),v="probe-change",_="time-data-ready",y=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n,handleRecord:!0,dimensions:e.originalData.FloatImage.dimensions}));return r.timeDataQueryDataModel=e.clone(),r.registerObjectToFree(r.timeDataQueryDataModel),r.light=200,r.meshColor=[50,50,50],r.timeData={data:[],pending:!1},r.metadata=e.originalData.FloatImage,r.layers=r.metadata.layers,r.dimensions=r.metadata.dimensions,r.timeProbe={x:r.dimensions[0]/2,y:r.dimensions[1]/2,query:r.timeDataQueryDataModel.getQuery(),enabled:!1,draw:!0,pending:!1,forceUpdate:!1,tIdx:r.queryDataModel.getIndex("time")||0,updateValue:function(){r.timeProbe.value=r.timeProbe.dataValues?r.timeProbe.dataValues[r.timeProbe.tIdx]:r.timeProbe.pending?"Fetching...":""},triggerChange:function(){r.timeProbe.forceUpdate=!1,r.timeProbe.updateValue(),r.emit(v,r.timeProbe)}},r.bgCanvas=new p["default"](r.dimensions[0],r.dimensions[1]),r.registerObjectToFree(r.bgCanvas),r.lookupTableManager.addFields(r.metadata.ranges,r.queryDataModel.originalData.LookupTables),r.registerSubscription(e.onStateChange(function(){r.timeProbe.tIdx!==r.queryDataModel.getIndex("time")?(r.timeProbe.tIdx=r.queryDataModel.getIndex("time"),r.timeProbe.triggerChange()):r.render(),r.update()})),r.registerSubscription(e.on("pipeline_data",function(e,t){r.layers.forEach(function(t){var n=t.name+"_"+t.array,r=t.name+"__light",o=t.name+"__mesh";t.active&&e[n]&&(t.data=new window[t.type](e[n].data),t.light=new Uint8Array(e[r].data),e[o]&&(t.mesh=new Uint8Array(e[o].data)))}),r.render()})),r.registerSubscription(r.lookupTableManager.onChange(function(e,t){r.render()})),r.registerSubscription(r.timeDataQueryDataModel.on("pipeline_data",function(e,t){if(r.timeData.data.push(e),r.timeData.data.length<r.timeDataQueryDataModel.getSize("time")){r.timeDataQueryDataModel.next("time"),r.timeData.pending=!0,r.timeProbe.pending=!0;var n=r.getCategories();r.timeDataQueryDataModel.fetchData({name:"pipeline_data",categories:n})}else r.timeData.pending=!1,r.timeProbe.pending=!1,r.timeProbe.enabled&&r.getTimeChart(),r.timeProbe.triggerChange()})),r}return i(t,e),s(t,[{key:"getCategories",value:function(){var e=[];return this.layers.forEach(function(t){t.active&&(e.push([t.name,t.array].join("_")),e.push(t.name+"__light"),t.hasMesh&&t.meshActive&&e.push(t.name+"__mesh"))}),e}},{key:"update",value:function(){var e=this.getCategories();this.queryDataModel.fetchData({name:"pipeline_data",categories:e})}},{key:"fetchTimeData",value:function(){var e=this.getCategories(),t=this.queryDataModel.getQuery();if(!this.timeData.pending&&this.timeDataQueryDataModel.getValues("time")){this.timeData.pending=!0,this.timeProbe.pending=!0,this.timeProbe.triggerChange(),this.timeData.data=[],this.timeProbe.query=t;for(var n in t)this.timeDataQueryDataModel.setValue(n,t[n]);this.timeDataQueryDataModel.first("time"),this.timeDataQueryDataModel.fetchData({name:"pipeline_data",categories:e})}}},{key:"getTimeChart",value:function(e,t){var n=!this.timeProbe.enabled||this.timeProbe.forceUpdate;this.timeProbe.enabled=!0,void 0===e&&void 0===t?(e=this.timeProbe.x,t=this.timeProbe.y):(n=n||this.timeProbe.x!==e||this.timeProbe.y!==t,this.timeProbe.x=e,this.timeProbe.y=t);var r=this.queryDataModel.getQuery(),o=this.timeProbe.query;if(o.time=r.time,0===this.timeData.data.length||!(0,m["default"])(r,o))return void this.fetchTimeData();var a=this.dimensions[0],i=this.dimensions[1],s=(i-t-1)*a+e,l="",u=null,c=null;if(this.layers.forEach(function(e){e.active&&!isNaN(e.data[s])&&(l=e.type,u=e.array,c=e.name)}),c&&this.timeProbe.layer!==c&&u&&this.timeProbe.field!==u)return this.timeProbe.layer=c,this.timeProbe.field=u,void(this.timeProbe.layer&&this.timeProbe.field&&this.fetchTimeData());var f=this.timeDataQueryDataModel.getValues("time"),p=[],d={xRange:[Number(f[0]),Number(f[f.length-1])],fields:[{name:u,data:p}]},h=this.timeData.data.length;if(u&&this.lookupTableManager.getLookupTable(u)&&(d.fields[0].range=this.lookupTableManager.getLookupTable(u).getScalarRange()),this.timeProbe.dataValues=p,this.timeProbe.tIdx=this.queryDataModel.getIndex("time"),c&&u&&this.timeData.data[0][c+"_"+u])for(var g=0;h>g;g++){var v=new window[l](this.timeData.data[g][c+"_"+u].data);p.push(v[s])}else c&&u&&!this.timeData.data[0][c+"_"+u]&&this.fetchTimeData();this.emit(_,d),n&&this.timeProbe.triggerChange(),this.render()}},{key:"render",value:function(){function e(e){var t=e%r,n=Math.floor(e/r);return(o-n-1)*r+t}var t=this,n=this.bgCanvas.get2DContext(),r=this.dimensions[0],o=this.dimensions[1],a=r*o,i=n.createImageData(r,o),s=i.data;n.clearRect(0,0,r,o),this.layers.forEach(function(n){if(n.active)for(var r=t.lookupTableManager.getLookupTable(n.array),o=0;a>o;o++){var i=e(o),l=r.getColor(n.data[i]),u=n.light&&n.light[i]?n.light[i]-t.light:0;l[3]&&(s[4*o]=255*l[0]+u,s[4*o+1]=255*l[1]+u,s[4*o+2]=255*l[2]+u,s[4*o+3]=255*l[3],n.hasMesh&&n.meshActive&&n.mesh&&n.mesh[i]&&(s[4*o]=t.meshColor[0],s[4*o+1]=t.meshColor[1],s[4*o+2]=t.meshColor[2]))}}),n.putImageData(i,0,0);var l=this.queryDataModel.getQuery();if(this.timeProbe.query.time=l.time,this.timeProbe.draw=(0,m["default"])(this.timeProbe.query,l),this.timeProbe.enabled&&this.timeProbe.draw){var u=this.timeProbe.x,c=this.timeProbe.y,f=10;n.beginPath(),n.moveTo(u-f,c),n.lineTo(u+f,c),n.moveTo(u,c-f),n.lineTo(u,c+f),n.lineWidth=4,n.strokeStyle="#ffffff",n.stroke(),n.lineWidth=2,n.strokeStyle="#000000",n.stroke()}var p={canvas:this.bgCanvas.el,area:[0,0,r,o],outputSize:[r,o],builder:this,arguments:this.queryDataModel.getQuery()};this.imageReady(p)}},{key:"onTimeDataReady",value:function(e){return this.on(_,e)}},{key:"onProbeChange",value:function(e){return this.on(v,e)}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.off(),this.bgCanvas=null,this.dimensions=null,this.layers=null,this.light=null,this.meshColor=null,this.metadata=null,this.timeData=null,this.timeDataQueryDataModel=null,this.timeProbe=null}},{key:"getControlWidgets",value:function(){var e=this,t=this.getControlModels(),n=t.lookupTableManager,r=t.queryDataModel;return[{name:"LookupTableManagerWidget",lookupTableManager:n},{name:"FloatImageControl",model:e},{name:"QueryDataModelWidget",queryDataModel:r}]}},{key:"getControlModels",value:function(){return{lookupTableManager:this.lookupTableManager,queryDataModel:this.queryDataModel}}},{key:"isMultiView",value:function(){return!(0,h["default"])(this.queryDataModel.originalData.type,"single-view")}},{key:"getLayers",value:function(){return this.layers}},{key:"setLight",value:function(e){this.light!==e&&(this.light=e,this.render())}},{key:"getLight",value:function(){return this.light}},{key:"getTimeProbe",value:function(){return this.timeProbe}},{key:"setMeshColor",value:function(e,t,n){this.meshColor[0]!==e&&this.meshColor[1]!==t&&this.meshColor[2]!==n&&(this.meshColor=[e,t,n],this.update())}},{key:"getMeshColor",value:function(){return this.meshColor}},{key:"updateLayerVisibility",value:function(e,t){for(var n=this.layers,r=n.length;r--;)if(n[r].name===e)return n[r].active=t,this.update(),void(this.timeProbe.enabled&&(this.timeProbe.forceUpdate=!0,this.getTimeChart()))}},{key:"updateMaskLayerVisibility",value:function(e,t){for(var n=this.layers,r=n.length;r--;)if(n[r].name===e)return n[r].meshActive=t,this.update()}},{key:"updateLayerColorBy",value:function(e,t){for(var n=this.layers,r=n.length;r--;)if(n[r].name===e)return n[r].array=t,this.update(),void(this.timeProbe.enabled&&this.getTimeChart())}}]),t}(c["default"]);t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(18),s=r(i),l=n(15),u=r(l),c=n(247),f=r(c),p="image-ready",d="model-change",h=function(){function e(t,n){var r=arguments.length<=2||void 0===arguments[2]?"#ff0000":arguments[2],a=arguments.length<=3||void 0===arguments[3]?20:arguments[3],i=this,l=arguments.length<=4||void 0===arguments[4]?.5:arguments[4],u=arguments.length<=5||void 0===arguments[5]?2:arguments[5];o(this,e),this.frontImageBuilder=t,this.backImageBuilder=n,this.frontEvent=null,this.backEvent=null,this.queryDataModel=this.frontImageBuilder.queryDataModel,this.frontSubscription=this.frontImageBuilder.onImageReady(function(e,t){i.frontEvent=e,i.draw()}),this.backSubscription=this.backImageBuilder.onImageReady(function(e,t){i.backEvent=e,i.draw()});var c=t.getControlModels(),p=c.dimensions;this.width=p[0],this.height=p[1],this.frontActive=!0,this.minZoom=a,this.maxZoom=Math.min(this.width,this.height)*l,this.lineWidth=u,this.lensColor=r,this.lensCenterX=this.width/2,this.lensCenterY=this.height/2,this.lensOriginalCenterX=this.lensCenterX,this.lensOriginalCenterY=this.lensCenterY,this.lensDragDX=0,this.lensDragDY=0,this.lensRadius=Math.floor(Math.min(this.width,this.height)/5),this.lensOriginalRadius=this.lensRadius,this.lastDragTime=(0,f["default"])(),this.lastZoomTime=(0,f["default"])(),this.newMouseTimeout=250,this.lensDrag=!1,this.listenerDrag=!1,this.lensZoom=!1,this.listenerZoom=!1,this.bgCanvas=new s["default"](this.width,this.height),this.listener={drag:function(e,t){var n=(0,f["default"])(),r=i.lastDragTime+i.newMouseTimeout<n,o=!1,a=e.activeArea,s=(e.relative.x-a[0])/a[2],l=(e.relative.y-a[1])/a[3];s=0>s?0:s>1?1:s,l=0>l?0:l>1?1:l;var u=Math.floor(s*i.width),c=Math.floor(l*i.height),p=Math.pow(u-i.lensCenterX,2)+Math.pow(c-i.lensCenterY,2);r&&(i.lensZoom=!1,i.listenerZoom=!1,i.lensDrag=!1,i.listenerDrag=!1,i.lensOriginalCenterX=i.lensCenterX,i.lensOriginalCenterY=i.lensCenterY,i.lensDragDX=u-i.lensCenterX,i.lensDragDY=c-i.lensCenterY),(i.lensDrag||p<Math.pow(i.lensRadius,2))&&0===e.modifier&&!i.listenerDrag&&(o=!0,i.lensDrag=!0,i.lensCenterX=u-i.lensDragDX,i.lensCenterY=c-i.lensDragDY,i.lensCenterX=Math.max(i.lensCenterX,i.lensRadius),i.lensCenterY=Math.max(i.lensCenterY,i.lensRadius),i.lensCenterX=Math.min(i.lensCenterX,i.width-i.lensRadius),i.lensCenterY=Math.min(i.lensCenterY,i.height-i.lensRadius),i.draw());var d=i.frontImageBuilder.getListeners();return!o&&d&&d.drag&&(i.listenerDrag=!0,o=d.drag(e,t)),i.lastDragTime=n,o},zoom:function d(e,t){var n=(0,f["default"])(),r=i.lastZoomTime+i.newMouseTimeout<n,o=!1,a=e.activeArea,s=(e.relative.x-a[0])/a[2],l=(e.relative.y-a[1])/a[3];r&&(i.lensZoom=!1,i.listenerZoom=!1,i.lensDrag=!1,i.listenerDrag=!1),s=0>s?0:s>1?1:s,l=0>l?0:l>1?1:l;var u=Math.floor(s*i.width),c=Math.floor(l*i.height),p=Math.pow(u-i.lensCenterX,2)+Math.pow(c-i.lensCenterY,2);if((i.lensZoom||p<Math.pow(i.lensRadius,2))&&0===e.modifier&&!i.listenerZoom){o=!0,i.lensZoom=!0,e.isFirst&&(i.lensOriginalRadius=i.lensRadius);var d=i.lensOriginalRadius*e.scale;d<i.minZoom&&(d=i.minZoom),d>i.maxZoom&&(d=i.maxZoom),i.lensRadius!==d&&(i.lensRadius=d,i.draw()),e.isFinal&&(i.lensOriginalRadius=i.lensRadius)}var h=i.frontImageBuilder.getListeners();return!o&&h&&h.zoom&&(i.listenerZoom=!0,o=h.zoom(e,t)),i.lastZoomTime=n,o},click:function(e,t){return i.lensDrag=!1,i.listenerDrag=!1,i.lensZoom=!1,i.listenerZoom=!1,!1}}}return a(e,[{key:"draw",value:function(){if(this.frontEvent&&this.backEvent){var e=this.bgCanvas.get2DContext();e.clearRect(0,0,this.width,this.height),e.drawImage(this.backEvent.canvas,this.backEvent.area[0],this.backEvent.area[1],this.backEvent.area[2],this.backEvent.area[3],0,0,this.width,this.height),e.save(),e.beginPath(),e.arc(this.lensCenterX,this.lensCenterY,this.lensRadius,0,2*Math.PI),e.clip(),e.clearRect(0,0,this.width,this.height),e.drawImage(this.frontEvent.canvas,this.frontEvent.area[0],this.frontEvent.area[1],this.frontEvent.area[2],this.frontEvent.area[3],0,0,this.width,this.height),e.restore(),e.beginPath(),e.lineWidth=this.lineWidth,e.strokeStyle=this.lensColor,e.arc(this.lensCenterX,this.lensCenterY,this.lensRadius,0,2*Math.PI),e.closePath(),e.stroke();var t={canvas:this.bgCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this,arguments:this.frontEvent.arguments};this.emit(p,t)}}},{key:"update",value:function(){this.frontImageBuilder.update(),this.backImageBuilder.update()}},{key:"render",value:function(){this.frontImageBuilder.render(),this.backImageBuilder.render()}},{key:"onImageReady",value:function(e){return this.on(p,e)}},{key:"onModelChange",value:function(e){return this.on(d,e)}},{key:"getListeners",value:function(){return this.listener}},{key:"destroy",value:function(){this.off(),this.listener=null,this.frontSubscription.unsubscribe(),this.frontSubscription=null,this.backSubscription.unsubscribe(),this.backSubscription=null,this.frontImageBuilder.destroy(),this.backImageBuilder.destroy()}},{key:"getActiveImageBuilder",value:function(){return this.frontActive?this.frontImageBuilder:this.backImageBuilder}},{key:"isFront",value:function(){return this.frontActive}},{key:"toggleLens",value:function(){this.frontActive=!this.frontActive,this.emit(d)}}]),e}();t["default"]=h,u["default"].mixInto(h)},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){return function(n){return e.getColor(t)}}function o(e,t,n,r){return function(o){var a=t[n][r][o];return e.getColor(a)}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s=function(){function e(t,a,s){n(this,e),this.nbLayers=t.length,this.fieldCodes=a,this.lookupTableManager=s,this.layerFloatData={},this.layerVisible={},this.layerAlpha={},this.layerColorBy={},this.layerGetColor={},this.categories=[];for(var l=0;l<this.nbLayers;l++){this.layerFloatData[i[l]]={},this.layerVisible[i[l]]=1,this.layerAlpha[i[l]]=1,this.layerGetColor[i[l]]={};for(var u=t[l].colorBy,c=u.length;c--;){var f=u[c],p=i[l],d=f.name,h=this.lookupTableManager.getLookupTable(f.name);"const"===f.type?this.layerGetColor[p][d]=r(h,f.value):"field"===f.type&&(this.layerGetColor[p][d]=o(h,this.layerFloatData,p,d))}}}return a(e,[{key:"updateData",value:function(e){for(var t in e)if(-1!==t.indexOf("_")){var n=t.split("_"),r=i[Number(n.shift())],o=n.join("_");this.layerFloatData[r][o]=new Float32Array(e[t].data)}}},{key:"updatePipeline",value:function(e){this.categories=[];for(var t=0;t<this.nbLayers;t++){var n=i[t],r=e[2*t+1];"_"===r?this.layerVisible[n]=0:(this.layerVisible[n]=1,this.layerColorBy[n]=this.fieldCodes[r],this.categories.push([t,this.fieldCodes[r]].join("_"))); -}}},{key:"updateAlphas",value:function(e){for(var t=0;t<this.nbLayers;t++)this.layerAlpha[i[t]]=e[t]}},{key:"hasNoContent",value:function(e){var t=i[e],n=this.layerAlpha[t]*this.layerVisible[t];return 0===n}},{key:"getColor",value:function(e,t){var n=i[e],r=this.layerGetColor[n][this.layerColorBy[n]](t),o=this.layerAlpha[n]*this.layerVisible[n];return[255*r[0],255*r[1],255*r[2],r[3]*o]}},{key:"getCategories",value:function(){return this.categories}},{key:"getLayerColorByName",value:function(e){return this.layerColorBy[i[e]]}},{key:"getLayerVisible",value:function(e){return this.layerVisible[i[e]]}},{key:"getLayerLut",value:function(e){return this.lookupTableManager.getLookupTable(this.layerColorBy[i[e]])}},{key:"getLayerFloatData",value:function(e){var t=i[e];return this.layerFloatData[t][this.layerColorBy[t]]}},{key:"getLayerAlpha",value:function(e){return this.layerAlpha[i[e]]}}]),e}();t["default"]=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r){this.queryDataModel=e,this.imageBuilder=t,this.metadata=this.queryDataModel.originalData.SortedComposite,this.orderData=null,this.intensityData=null,this.colorHelper=n,this.numLayers=this.metadata.layers,this.reverseCompositePass=r,this.width=this.metadata.dimensions[0],this.height=this.metadata.dimensions[1],this.bgCanvas=new i["default"](this.width,this.height),this.imageBuffer=this.bgCanvas.get2DContext().createImageData(this.width,this.height)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(18),i=r(a),s=n(68);o.prototype.updateData=function(e){this.orderData=new Uint8Array(e.order.data),e.intensity?this.intensityData=new Uint8Array(e.intensity.data):this.intensityData=null},o.prototype.render=function(){var e=this;if(!this.orderData)return null;var t=this.width*this.height,n=this.imageBuffer.data,r=this.height,o=this.width,a=this.bgCanvas.get2DContext();if(n.fill)n.fill(0);else for(var i=o*r*4;i--;)n[i]=0;(0,s.loop)(!!this.reverseCompositePass,this.numLayers,function(a){for(var i=0;i<e.height;i++)for(var s=0;s<e.width;s++){var l=e.width*i+s,u=(r-i-1)*o+s,c=e.orderData[a*t+l],f=1;if(255!==c&&!e.colorHelper.hasNoContent(c)){e.intensityData&&(f=e.intensityData[a*t+l]/255);var p=n[4*u+3]/255,d=1-p,h=[n[4*u],n[4*u+1],n[4*u+2]],g=e.colorHelper.getColor(c,l),m=g[3]/255,v=[g[0]*f*m*d,g[1]*f*m*d,g[2]*f*m*d],_=p+m*(1-p);m>0?(n[4*u]=(h[0]*p+v[0])/_,n[4*u+1]=(h[1]*p+v[1])/_,n[4*u+2]=(h[2]*p+v[2])/_,n[4*u+3]=255*_):console.log("no alpha while skip should have worked",g[3])}}}),a.putImageData(this.imageBuffer,0,0);var l={canvas:this.bgCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder,arguments:this.queryDataModel.getQuery()};this.imageBuilder.imageReady(l)},o.prototype.destroy=function(){this.bgCanvas.destroy(),this.bgCanvas=null,this.queryDataModel=null,this.imageBuilder=null},o.prototype.getLightProperties=function(){return{}},o.prototype.setLightProperties=function(e){}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r,o){if(this.queryDataModel=e,this.imageBuilder=t,this.metadata=this.queryDataModel.originalData.SortedComposite,this.colorHelper=r,this.orderData=null,this.intensityData=null,this.numLayers=this.metadata.layers,this.reverseCompositePass=o,this.defaultIntensityData=new Uint8Array([255]),this.intensitySize=[1,1],this.hasIntensity=!1,this.hasNormal=!1,this.defaultLayerBufferView=new Float32Array([0]),this.layerBufferViewSize=[1,1],this.width=this.metadata.dimensions[0],this.height=this.metadata.dimensions[1],this.lightProperties={lightTerms:{ka:.1,kd:.6,ks:.3,alpha:20},lightPosition:{x:-1,y:1},lightColor:[.8,.8,.8]},this.glCanvas=new i["default"](this.width,this.height),this.gl=this.glCanvas.get3DContext(),!this.gl)return console.error("Unable to get WebGl context"),null;this.gl.clearColor(1,1,1,0);var a=this.gl.getParameter(this.gl.MAX_TEXTURE_IMAGE_UNITS),s=(a-2)/2;this.shaderLayers=s<this.numLayers?s:this.numLayers,this.lutData=[];for(var l=0;l<this.shaderLayers;++l)this.lutData.push(new Uint8Array(1024));this.glConfig={programs:{displayProgram:{vertexShader:n(21),fragmentShader:n(278),mapping:"default"},colorProgram:{vertexShader:n(21),fragmentShader:d["default"].transformShader(n(703),{SIMULTANEOUS_LAYERS:this.shaderLayers},{inlineLoops:!0}),mapping:"default"},lightColorProgram:{vertexShader:n(21),fragmentShader:d["default"].transformShader(n(704),{SIMULTANEOUS_LAYERS:this.shaderLayers},{inlineLoops:!0}),mapping:"default"},blendProgram:{vertexShader:n(21),fragmentShader:n(277),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"orderTexture",pixelStore:_,texParameter:m},{id:"intensityTexture",pixelStore:_,texParameter:m},{id:"ping",pixelStore:v,texParameter:m},{id:"pong",pixelStore:v,texParameter:m},{id:"colorRenderTexture",pixelStore:v,texParameter:m}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height},{id:"colorFbo",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}};for(var l=0;l<this.shaderLayers;++l)this.glConfig.resources.textures.push({id:"layerColorSampler_"+l,pixelStore:_,texParameter:m}),this.glConfig.resources.textures.push({id:"lutSampler_"+l,pixelStore:[["UNPACK_ALIGNMENT",1]],texParameter:m});this.glResources=d["default"].createGLResources(this.gl,this.glConfig),this.gl.disable(this.gl.DEPTH_TEST),this.gl.disable(this.gl.BLEND);var u=this.gl.getExtension("OES_texture_float");null===u&&console.err("Your browser does not support the WebGL Extension 'OES_texture_float', this compositor will not work!"),d["default"].bindTextureToFramebuffer(this.gl,this.glResources.framebuffers.colorFbo,this.glResources.textures.colorRenderTexture),this.pingPong=new g["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong])}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(18),i=r(a),s=n(68),l=n(102),u=r(l),c=n(236),f=r(c),p=n(50),d=r(p),h=n(55),g=r(h),m=[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]],v=[["UNPACK_FLIP_Y_WEBGL",!0]],_=[["UNPACK_FLIP_Y_WEBGL",!0],["UNPACK_ALIGNMENT",1]],y=new Float32Array([0]);o.prototype.updateData=function(e){this.orderData=e.order.data,e.intensity?(this.intensitySize=[this.width,this.height],this.intensityData=e.intensity.data,this.hasIntensity=!0):(this.intensitySize=[1,1],this.intensityData=this.defaultIntensityData,this.hasIntensity=!1),e.normal?(this.normalData=e.normal.data,this.hasNormal=!0):(this.normalData=null,this.hasNormal=!1)},o.prototype.extractLayerData=function(e,t,n){var r=t*this.width*this.height*n,o=this.width*this.height*n;return new Uint8Array(e,r,o)},o.prototype.getAndUseCurrentColorProgram=function(){var e=this.glResources.programs.colorProgram;return this.hasNormal&&(e=this.glResources.programs.lightColorProgram),this.gl.useProgram(e),e},o.prototype.uploadLayerTextures=function(e,t){for(var n=[],r=[],o=2,a=[],i=[],s=[],l=[],u=0,c=e;t>=c;++c){var f=this.colorHelper.getLayerLut(c),p=this.colorHelper.getLayerColorByName(c),d=this.metadata.ranges[p];if(this.colorHelper.getLayerVisible(c)){var h=this.colorHelper.getLayerFloatData(c);h?(i.push(h),a.push([this.width,this.height])):(i.push(new Float32Array([this.findLayerConstantValue(c)])),a.push([1,1])),s.push(d[0]),s.push(d[1])}else i.push(y),a.push([1,1]),s.push(-1),s.push(-1);l.push(this.colorHelper.getLayerAlpha(c)),this.sampleLookupTable(f,p,d,u++),n.push(o),r.push(o+this.shaderLayers),o+=1}var g=this.getAndUseCurrentColorProgram(),m=this.gl.getUniformLocation(g,"layerColorSampler");this.gl.uniform1iv(m,n);for(var v=0;v<n.length;++v){this.gl.activeTexture(this.gl.TEXTURE0+n[v]),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures["layerColorSampler_"+v]);var _=a[v][0],b=a[v][1];this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,_,b,0,this.gl.LUMINANCE,this.gl.FLOAT,i[v])}var w=this.gl.getUniformLocation(g,"lutSampler");this.gl.uniform1iv(w,r);for(var v=0;v<r.length;++v)this.gl.activeTexture(this.gl.TEXTURE0+r[v]),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures["lutSampler_"+v]),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,256,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.lutData[v]);var x=this.gl.getUniformLocation(g,"layerRange");this.gl.uniform2fv(x,s);var C=this.gl.getUniformLocation(g,"layerAlpha");this.gl.uniform1fv(C,l)},o.prototype.render=function(){var e=this;if(!this.orderData)return null;if(this.shaderLayers>=this.numLayers){this.uploadLayerTextures(0,this.numLayers-1);var t=this.getAndUseCurrentColorProgram(),n=this.gl.getUniformLocation(t,"orderOffset");this.gl.uniform1i(n,0)}this.pingPong.clearFbo(),(0,s.loop)(!this.reverseCompositePass,this.numLayers,function(t){var n=e.extractLayerData(e.orderData,t,1),r=e.extractLayerData(e.intensityData,t,1);if(e.hasNormal&&(r=e.extractLayerData(e.normalData,t,3)),e.gl.bindFramebuffer(e.gl.FRAMEBUFFER,e.glResources.framebuffers.colorFbo),e.gl.clear(e.gl.COLOR_BUFFER_BIT),e.shaderLayers>=e.numLayers)e.drawColorPass(n,r);else for(var o=0;o<e.numLayers;o+=e.shaderLayers){var a=o+(e.shaderLayers-1);a>=e.numLayers&&(a=e.numLayers-1),e.uploadLayerTextures(o,a);var i=e.getAndUseCurrentColorProgram(),s=e.gl.getUniformLocation(i,"orderOffset");e.gl.uniform1i(s,o),e.drawColorPass(n,r)}e.drawBlendPass()}),this.drawDisplayPass();var r={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder,arguments:this.queryDataModel.getQuery()};this.imageBuilder.imageReady(r)},o.prototype.findLayerConstantValue=function(e){for(var t=this.colorHelper.getLayerColorByName(e),n=this.metadata.pipeline[e].colorBy,r=0;r<n.length;++r)if(n[r].name===t)return n[r].value},o.prototype.sampleLookupTable=function(e,t,n,r){function o(e,t,n,r,o){return(e-t)/(n-t)*(o-r)+r}for(var a=0;256>a;++a){var i=o(a,0,255,n[0],n[1]),s=e.getColor(i);this.lutData[r][4*a]=255*s[0],this.lutData[r][4*a+1]=255*s[1],this.lutData[r][4*a+2]=255*s[2],this.lutData[r][4*a+3]=255*s[3]}},o.prototype.drawBlendPass=function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.blendProgram),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.blendProgram,"underLayerSampler");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture());var t=this.gl.getUniformLocation(this.glResources.programs.blendProgram,"overLayerSampler");this.gl.uniform1i(t,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.colorRenderTexture),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap();for(var n=0;2>n;n+=1)this.gl.activeTexture(this.gl.TEXTURE0+n),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.drawDisplayPass=function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.drawColorPass=function(e,t){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.glResources.framebuffers.colorFbo);var n=this.glResources.programs.colorProgram;this.hasNormal&&(n=this.glResources.programs.lightColorProgram),this.gl.useProgram(n),this.gl.viewport(0,0,this.width,this.height);var r=0,o=this.gl.getUniformLocation(n,"orderSampler");if(this.gl.uniform1i(o,r),this.gl.activeTexture(this.gl.TEXTURE0+r),r+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.orderTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.width,this.height,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,e),this.hasNormal){var a=this.gl.getUniformLocation(n,"normalSampler");this.gl.uniform1i(a,r),this.gl.activeTexture(this.gl.TEXTURE0+r),r+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.intensityTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGB,this.width,this.height,0,this.gl.RGB,this.gl.UNSIGNED_BYTE,t);var i=this.lightProperties,s=i.lightTerms,l=i.lightPosition,u=i.lightColor,c=f["default"].fromValues(l.x,l.y,1,0),p=this.gl.getUniformLocation(n,"lightDir");this.gl.uniform4fv(p,c);var d=f["default"].fromValues(s.ka,s.kd,s.ks,s.alpha),h=this.gl.getUniformLocation(n,"lightTerms");this.gl.uniform4fv(h,d);var g=f["default"].fromValues(u[0],u[1],u[2],1),m=this.gl.getUniformLocation(n,"lightColor");this.gl.uniform4fv(m,g)}else{var a=this.gl.getUniformLocation(n,"intensitySampler");this.gl.uniform1i(a,r),this.gl.activeTexture(this.gl.TEXTURE0+r),r+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.intensityTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.intensitySize[0],this.intensitySize[1],0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,t)}this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish();for(var v=0;r>v;v+=1)this.gl.activeTexture(this.gl.TEXTURE0+v),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.destroy=function(){this.queryDataModel=null,this.imageBuilder=null,this.glResources.destroy(),this.glResources=null,this.pingPong=null,this.glCanvas.destroy(),this.glCanvas=null},o.prototype.getLightProperties=function(){return this.lightProperties},o.prototype.setLightProperties=function(e){this.lightProperties=(0,u["default"])(this.lightProperties,e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function w(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:w(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(414),p=r(f),d=n(415),h=r(d),g=n(416),m=r(g),v=n(113),_=r(v),y="data_to_fetch",b=function(e){function t(e,n,r){o(this,t);var i=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n,pipelineModel:r,handleRecord:!0,dimensions:e.originalData.SortedComposite.dimensions}));return i.metadata=e.originalData.SortedComposite,i.intensityModel=new _["default"](!0),i.normalsModel=new _["default"](!1),i.computationModel=new _["default"](!0),i.intensityModel.onChange(function(e,t){i.update()}),i.normalsModel.onChange(function(e,t){i.update()}),i.computationModel.onChange(function(e,t){i.compositor=i.compositors[e?1:0],i.update()}),i.lookupTableManager.addFields(i.metadata.ranges,i.queryDataModel.originalData.LookupTables),i.colorHelper=new p["default"](i.metadata.pipeline,e.originalData.CompositePipeline.fields,n),i.lookupTableManager.updateActiveLookupTable(i.metadata.activeLookupTable||i.metadata.pipeline[0].colorBy[0].name),i.dataQuery={name:y,categories:[]},i.compositors=[new h["default"](e,i,i.colorHelper,i.metadata.reverseCompositePass),new m["default"](e,i,i.colorHelper,i.metadata.reverseCompositePass)],i.compositor=i.compositors[1],i.controlWidgets=[{name:"LookupTableManagerWidget",lookupTableManager:i.lookupTableManager},{name:"LightPropertiesWidget",light:i},{name:"CompositeControl",pipelineModel:i.pipelineModel},{name:"QueryDataModelWidget",queryDataModel:i.queryDataModel}],i.metadata.light&&i.metadata.light.indexOf("normal")>=0?i.metadata.light.indexOf("intensity")<0&&i.normalsModel.setState(!0):i.controlWidgets.splice(1,1),i.registerSubscription(i.queryDataModel.onDataChange(function(){i.update()})),i.registerSubscription(e.on(y,function(e,t){i.colorHelper.updateData(e),i.compositor.updateData(e),i.render()})),i.registerSubscription(i.pipelineModel.onChange(function(e,t){i.colorHelper.updatePipeline(e),i.update()})),i.colorHelper.updatePipeline(i.pipelineModel.getPipelineQuery()),i.registerSubscription(i.lookupTableManager.onChange(function(e,t){i.render()})),i.registerSubscription(i.pipelineModel.onOpacityChange(function(e,t){i.colorHelper.updateAlphas(e),i.render()})),i.pipelineModel.resetOpacity(100),i.registerObjectToFree(i.compositors[0]),i.registerObjectToFree(i.compositors[1]),i}return i(t,e),s(t,[{key:"update",value:function(){this.normalsModel.getState()?this.dataQuery.categories=["_","normal"].concat(this.colorHelper.getCategories()):this.intensityModel.getState()?this.dataQuery.categories=["_","intensity"].concat(this.colorHelper.getCategories()):this.dataQuery.categories=["_"].concat(this.colorHelper.getCategories()),this.queryDataModel.fetchData(this.dataQuery)}},{key:"render",value:function(){this.compositor.render()}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.compositors=null,this.compositor=null}},{key:"getLightingEnabled",value:function(){return this.normalsModel.getState()}},{key:"setLightingEnabled",value:function(e){this.normalsModel.setState(e)}},{key:"getLightProperties",value:function(){return this.compositor.getLightProperties()}},{key:"setLightProperties",value:function(e){this.compositor.setLightProperties(e),this.render()}},{key:"getControlModels",value:function(){return{lookupTableManager:this.lookupTableManager,intensity:this.intensityModel,computation:this.computationModel,normal:this.normalsModel,queryDataModel:this.queryDataModel,light:this,dimensions:this.metadata.dimensions}}}]),t}(c["default"]);t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(18),p=r(f),d=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?"a-b":arguments[0],n=arguments.length<=1||void 0===arguments[1]?["a","b"]:arguments[1];o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{}));return r.data={},r.listeners={},r.dataSize=[200,200],r.operation=e,r.dependency=n,r.bgCanvas=new p["default"](r.dataSize[0],r.dataSize[1]),r.registerObjectToFree(r.bgCanvas),r}return i(t,e),s(t,[{key:"setOperation",value:function(e){this.operation=e,this.processData()}},{key:"setDependencies",value:function(e){this.dependency=e}},{key:"getOperation",value:function(){return this.operation}},{key:"updateOperationFunction",value:function(){var e=this,t=[],n=!0;for(var r in this.data)t.push("var X = data.X[i];".replace(/X/g,r));return this.dependency.forEach(function(t){n=e.data[t]&&n}),t.push("return X;".replace(/X/g,this.operation)),this.fnOperation=new Function("data","i",t.join("")),n}},{key:"updateData",value:function(e,t){var n=this,r=t.area,o=t.canvas,a=r[0],i=r[1],s=r[2],l=r[3],u=this.bgCanvas.get2DContext(),c=new Uint8ClampedArray(s*l*4),f=null;this.bgCanvas.size(s,l),u.drawImage(o,a,i,s,l,0,0,s,l),f=u.getImageData(0,0,s,l),c.set(f.data),this.data[e]=c,this.dataSize=[s,l];var p=!0;this.dependency.forEach(function(e){n.data[e]||(p=!1)}),p&&this.processData()}},{key:"updateDataFromImage",value:function(e,t){var n=this,r=function o(){t.removeEventListener("load",o);var r=t.width,a=t.height,i=n.bgCanvas.get2DContext(),s=new Uint8ClampedArray(r*a*4);n.bgCanvas.size(r,a),i.drawImage(t,0,0);var l=i.getImageData(0,0,r,a);s.set(l.data),n.data[e]=s,n.dataSize=[r,a];var u=!0;n.dependency.forEach(function(e){n.data[e]||(u=!1)}),u&&n.processData()};t.complete?r():t.addEventListener("load",r)}},{key:"updateDataFromClampedArray",value:function(e,t,n){var r=this;this.data[e]=t,this.dataSize=n||this.dataSize;var o=!0;this.dependency.forEach(function(e){r.data[e]||(o=!1)}),o&&this.processData()}},{key:"processData",value:function(){if(this.updateOperationFunction()){var e=-1,t=!0;for(var n in this.data){var r=this.data[n];-1===e?e=r.length:t=t&&e===r.length}if(!t||-1===e)return void console.log("The array size are invalid!!!",e);if(this.dataSize[0]*this.dataSize[1]*4!==e)return void console.log("The array size are invalid!!!",e,this.dataSize);for(var o=new Uint8ClampedArray(e),a=0;e>a;)o[a]=this.fnOperation(this.data,a),o[a+1]=this.fnOperation(this.data,a+1),o[a+2]=this.fnOperation(this.data,a+2),o[a+3]=255,a+=4;this.bgCanvas.size(this.dataSize[0],this.dataSize[1]);var i=this.bgCanvas.get2DContext(),s=i.getImageData(0,0,this.dataSize[0],this.dataSize[1]);s.data.set(o),i.putImageData(s,0,0);var l={canvas:this.bgCanvas.el,area:[0,0].concat(this.dataSize),outputSize:this.dataSize,builder:this};this.imageReady(l)}}},{key:"getListeners",value:function(){return this.listeners}},{key:"setListeners",value:function(e){this.listeners=e}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.bgCanvas=null,this.data=null,this.dataSize=null,this.dependency=null,this.listeners=null,this.operation=null}},{key:"getControlWidgets",value:function(){return[{name:"PixelOperatorControl",model:this}]}},{key:"getControlModels",value:function(){return{dimensions:this.dataSize}}}]),t}(c["default"]);t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(26),u=r(l),c=function(e){function t(e){o(this,t);var n=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,dimensions:e.originalData.data[0].dimensions||[500,500]}));return n.lastQueryImage=null,n.onLoadCallback=function(){n.lastQueryImage.removeEventListener("load",n.onLoadCallback),n.render()},n.registerSubscription(e.onDataChange(function(e,t){n.lastQueryImage&&n.lastQueryImage.removeEventListener("load",n.onLoadCallback),e.image&&(n.lastQueryImage=e.image.image,n.render())})),n}return i(t,e),s(t,[{key:"render",value:function(){if(!this.lastQueryImage)return void this.queryDataModel.fetchData();if(this.lastQueryImage.complete){var e=this.lastQueryImage.width,t=this.lastQueryImage.height;this.imageReady({canvas:this.lastQueryImage,area:[0,0,e,t],outputSize:[e,t],builder:this,arguments:this.queryDataModel.getQuery()})}else this.lastQueryImage.addEventListener("load",this.onLoadCallback)}}]),t}(u["default"]);t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function w(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:w(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(26),c=r(u),f=n(421),p=r(f),d=n(172),h=r(d),g=n(422),m=r(g),v=n(113),_=r(v),y="VolumeScalar",b=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n,dimensions:e.originalData.SortedComposite.dimensions}));return r.dataQuery={name:"data_fetch",categories:[]},r.metadata=e.originalData.SortedComposite,r.originalRange=[r.metadata.scalars[0],r.metadata.scalars[r.metadata.scalars.length-1]],r.lutTextureData=new Uint8Array(4*r.metadata.layers),n.addFields({VolumeScalar:[0,1]},r.queryDataModel.originalData.LookupTables),r.lookupTable=n.getLookupTable(y),r.registerSubscription(r.lookupTable.onChange(function(e,t){for(var n=0;n<r.metadata.layers;n++){var o=r.lookupTable.getColor(r.metadata.scalars[n]);r.lutTextureData[4*n]=255*o[0],r.lutTextureData[4*n+1]=255*o[1],r.lutTextureData[4*n+2]=255*o[2]}r.render()})),r.compositors=[new p["default"](e,r,r.lutTextureData,r.metadata.reverseCompositePass),new m["default"](e,r,r.lutTextureData,r.metadata.reverseCompositePass)],r.compositor=r.compositors[1],r.intensityModel=new _["default"](!0),r.computationModel=new _["default"](!0),r.equalizerModel=new h["default"]({size:r.metadata.layers,scalars:r.metadata.scalars,lookupTable:r.lookupTable}),r.intensityModel.onChange(function(e,t){r.update()}),r.computationModel.onChange(function(e,t){r.compositor=r.compositors[e?1:0],r.update()}),r.equalizerModel.onChange(function(e,t){for(var n=e.getOpacities(),o=0;o<r.metadata.layers;o++)r.lutTextureData[4*o+3]=255*n[o];r.render()}),r.lookupTable.setScalarRange(r.originalRange[0],r.originalRange[1]),r.registerSubscription(r.queryDataModel.onDataChange(function(){r.update()})),r.registerSubscription(e.on("data_fetch",function(e,t){r.compositor.updateData(e),r.render()})),r.registerObjectToFree(r.compositors[0]),r.registerObjectToFree(r.compositors[1]),r.registerObjectToFree(r.intensityModel),r.registerObjectToFree(r.computationModel),r.registerObjectToFree(r.equalizerModel),r}return i(t,e),s(t,[{key:"update",value:function(){this.intensityModel.getState()?this.dataQuery.categories=["_","intensity"]:this.dataQuery.categories=["_"],this.queryDataModel.fetchData(this.dataQuery)}},{key:"render",value:function(){this.compositor.render()}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.compositor=null,this.compositors=null,this.computationModel=null,this.dataQuery=null,this.equalizerModel=null,this.intensityModel=null,this.lookupTable=null,this.lutTextureData=null,this.metadata=null,this.originalRange=null}},{key:"getControlWidgets",value:function(){var e=this.getControlModels(),t=e.lookupTable,n=e.equalizer,r=e.intensity,o=e.computation,a=e.queryDataModel;return[{name:"VolumeControlWidget",lookupTable:t,equalizer:n,intensity:r,computation:o},{name:"QueryDataModelWidget",queryDataModel:a}]}},{key:"getControlModels",value:function(){return{lookupTable:{lookupTable:this.lookupTable,lookupTableManager:this.lookupTableManager,originalRange:this.originalRange},equalizer:this.equalizerModel,intensity:this.intensityModel,computation:this.computationModel,queryDataModel:this.queryDataModel,dimensions:this.metadata.dimensions}}}]),t}(c["default"]);t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r){this.queryDataModel=e,this.imageBuilder=t,this.metadata=this.queryDataModel.originalData.SortedComposite,this.orderData=null,this.alphaData=null,this.intensityData=null,this.numLayers=this.metadata.layers,this.colorTable=n,this.reverseCompositePass=r,this.width=this.metadata.dimensions[0],this.height=this.metadata.dimensions[1],this.bgCanvas=new i["default"](this.width,this.height),this.imageBuffer=this.bgCanvas.get2DContext().createImageData(this.width,this.height)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(18),i=r(a),s=n(68);o.prototype.updateData=function(e){this.orderData=new Uint8Array(e.order.data),this.alphaData=new Uint8Array(e.alpha.data),e.intensity?this.intensityData=new Uint8Array(e.intensity.data):this.intensityData=null},o.prototype.setLayerColors=function(e){this.colorTable=e},o.prototype.render=function(){var e=this;if(!this.alphaData||!this.orderData||!this.colorTable)return null;var t=this.width*this.height,n=this.imageBuffer.data,r=this.height,o=this.width,a=this.bgCanvas.get2DContext();if(n.fill)n.fill(0);else for(var i=o*r*4;i--;)n[i]=0;(0,s.loop)(!!this.reverseCompositePass,this.numLayers,function(a){for(var i=0;i<e.height;i++)for(var s=0;s<e.width;s++){var l=e.width*i+s,u=(r-i-1)*o+s,c=e.orderData[a*t+l],f=e.colorTable[4*c+3]/255,p=e.alphaData[a*t+l]/255,d=1;e.intensityData&&(d=e.intensityData[a*t+l]/255);var h=n[4*u+3]/255,g=1-h,m=[n[4*u],n[4*u+1],n[4*u+2]],v=[e.colorTable[4*c]*d*p*f*g,e.colorTable[4*c+1]*d*p*f*g,e.colorTable[4*c+2]*d*p*f*g],_=h+p*f*(1-h);n[4*u]=(m[0]*h+v[0])/_,n[4*u+1]=(m[1]*h+v[1])/_,n[4*u+2]=(m[2]*h+v[2])/_,n[4*u+3]=255*_}}),a.putImageData(this.imageBuffer,0,0);var l={canvas:this.bgCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(l)},o.prototype.destroy=function(){this.bgCanvas.destroy(),this.bgCanvas=null,this.queryDataModel=null,this.imageBuilder=null}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e -}}function o(e,t,r,o){return this.queryDataModel=e,this.imageBuilder=t,this.infoJson=this.queryDataModel.originalData,this.orderData=null,this.alphaData=null,this.intensityData=null,this.intensitySize=1,this.defaultIntensityData=new Uint8Array([255]),this.numLayers=this.infoJson.SortedComposite.layers,this.reverseCompositePass=o,this.lutView=r,this.width=this.infoJson.SortedComposite.dimensions[0],this.height=this.infoJson.SortedComposite.dimensions[1],this.glCanvas=new i["default"](this.width,this.height),this.gl=this.glCanvas.get3DContext(),this.gl?(this.gl.clearColor(1,1,1,0),this.glConfig={programs:{displayProgram:{vertexShader:n(21),fragmentShader:n(278),mapping:"default"},colorProgram:{vertexShader:n(21),fragmentShader:n(705),mapping:"default"},blendProgram:{vertexShader:n(21),fragmentShader:n(277),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"orderTexture",pixelStore:h,texParameter:p},{id:"alphaTexture",pixelStore:h,texParameter:p},{id:"intensityTexture",pixelStore:h,texParameter:p},{id:"lutTexture",pixelStore:d,texParameter:p},{id:"ping",pixelStore:d,texParameter:p},{id:"pong",pixelStore:d,texParameter:p},{id:"colorRenderTexture",pixelStore:d,texParameter:p}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height},{id:"colorFbo",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}},this.glResources=l["default"].createGLResources(this.gl,this.glConfig),l["default"].bindTextureToFramebuffer(this.gl,this.glResources.framebuffers.colorFbo,this.glResources.textures.colorRenderTexture),void(this.pingPong=new f["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong]))):(console.error("Unable to get WebGl context"),null)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(18),i=r(a),s=n(50),l=r(s),u=n(68),c=n(55),f=r(c),p=[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]],d=[["UNPACK_FLIP_Y_WEBGL",!0]],h=[["UNPACK_FLIP_Y_WEBGL",!0],["UNPACK_ALIGNMENT",1]];o.prototype.updateData=function(e){this.orderData=e.order.data,this.alphaData=e.alpha.data,e.intensity?(this.intensityData=e.intensity.data,this.intensitySize=[this.width,this.height]):(this.intensityData=this.defaultIntensityData,this.intensitySize=[1,1])},o.prototype.extractLayerData=function(e,t){var n=t*this.width*this.height,r=this.width*this.height;return new Uint8Array(e,n,r)},o.prototype.render=function(){var e=this;if(!this.alphaData||!this.orderData||!this.lutView)return null;this.pingPong.clearFbo(),(0,u.loop)(!this.reverseCompositePass,this.numLayers,function(t){e.drawColorPass(e.extractLayerData(e.orderData,t),e.extractLayerData(e.alphaData,t),e.extractLayerData(e.intensityData,t)),e.drawBlendPass()}),this.drawDisplayPass();var t={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(t)},o.prototype.destroy=function(){this.glResources.destroy(),this.glResources=null,this.pingPong=null},o.prototype.drawDisplayPass=function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.drawBlendPass=function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.blendProgram),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.blendProgram,"underLayerSampler");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture());var t=this.gl.getUniformLocation(this.glResources.programs.blendProgram,"overLayerSampler");this.gl.uniform1i(t,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.colorRenderTexture),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap();for(var n=0;2>n;n+=1)this.gl.activeTexture(this.gl.TEXTURE0+n),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.drawColorPass=function(e,t,n){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.glResources.framebuffers.colorFbo),this.gl.useProgram(this.glResources.programs.colorProgram),this.gl.viewport(0,0,this.width,this.height);var r=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"numberOfLayers");this.gl.uniform1f(r,this.numLayers);var o=0,a=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"orderSampler");this.gl.uniform1i(a,o),this.gl.activeTexture(this.gl.TEXTURE0+o),o+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.orderTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.width,this.height,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,e);var i=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"alphaSampler");this.gl.uniform1i(i,o),this.gl.activeTexture(this.gl.TEXTURE0+o),o+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.alphaTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.width,this.height,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,t);var s=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"intensitySampler");this.gl.uniform1i(s,o),this.gl.activeTexture(this.gl.TEXTURE0+o),o+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.intensityTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.intensitySize[0],this.intensitySize[1],0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,n);var l=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"lutSampler");this.gl.uniform1i(l,o),this.gl.activeTexture(this.gl.TEXTURE0+o),o+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.lutTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.numLayers,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.lutView),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish();for(var u=0;o>u;u+=1)this.gl.activeTexture(this.gl.TEXTURE0+u),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),a=r(o),i=n(403),s=r(i),l=n(404),u=r(l),c=n(405),f=r(c),p=n(407),d=r(p),h=n(411),g=r(h),m=n(412),v=r(m),_=n(413),y=r(_),b=n(417),w=r(b),x=n(418),C=r(x),E=n(419),T=r(E),P=n(420),k=r(P);t["default"]={AbstractImageBuilder:a["default"],BinaryDataProberImageBuilder:s["default"],CompositeImageBuilder:u["default"],DataProberImageBuilder:f["default"],DepthCompositeImageBuilder:d["default"],DepthImageBuilder:g["default"],FloatDataImageBuilder:v["default"],MagicLensImageBuilder:y["default"],MultiColorBySortedCompositeImageBuilder:w["default"],PixelOperatorImageBuilder:C["default"],QueryDataModelImageBuilder:T["default"],SortedCompositeImageBuilder:k["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r){function o(e){var t=p[e];return t=t>i?s>t?t:s:i,u+f-Math.floor((t-i)*m)}var a,i=Number.MAX_VALUE,s=Number.MIN_VALUE,l=t.x,u=t.y,c=t.width,f=t.height,p=n.data,d=p.length,h=new Uint16Array(d);for(a=d;a--;){var g=p[a];i=Math.min(i,g),s=Math.max(s,g),h[a]=l+Math.floor(c*(a/(d-1)))}r&&(i=r[0],s=r[1]);var m=f/(s-i);e.beginPath(),e.lineWidth=1,e.strokeStyle=n.color,e.moveTo(h[0],o(0));for(var v=1;d>v;v++)isNaN(p[v])?d>v+1&&!isNaN(p[v+1])&&e.moveTo(h[v+1],o(v+1)):e.lineTo(h[v],o(v));e.stroke()}function i(e,t,n,r){if(!(0>n||n>1)){var o=t.y,a=o+t.height,i=t.x+Math.floor(n*t.width);e.beginPath(),e.lineWidth=1,e.strokeStyle=r,e.moveTo(i,o),e.lineTo(i,a),e.stroke()}}function s(e,t,n,r,o){var a=arguments.length<=5||void 0===arguments[5]?"#000000":arguments[5];e.fillStyle=a,e.font="20px serif",e.textBaseline="top",e.fillText(o,t.x+n,t.y+r)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(15),c=r(u),f="painter-ready",p=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?"#0000FF":arguments[1],r=arguments.length<=2||void 0===arguments[2]?["#e1002a","#417dc0","#1d9a57","#e9bc2f","#9b3880"]:arguments[2];o(this,e),this.data=null,this.colors=r,this.markerColor=n,this.markerLocation=-1,this.showMarker=!0,this.title=t}return l(e,[{key:"updateData",value:function(e){var t=this,n=0;this.data=e,e.fields.forEach(function(e){e.color||(e.color=t.colors[n++%t.colors.length])}),this.emit(f,this)}},{key:"setTitle",value:function(e){this.title=e,this.emit(f,this)}},{key:"setMarkerLocation",value:function(e){this.markerLocation=e,this.emit(f,this)}},{key:"enableMarker",value:function(e){this.showMarker!==e&&(this.showMarker=e,this.emit(f,this))}},{key:"isReady",value:function(){return null!==this.data}},{key:"paint",value:function(e,t){var n="?";this.data&&(e.clearRect(t.x-1,t.y-1,t.width+2,t.height+2),this.data.fields.forEach(function(n){a(e,t,n,n.range)}),this.showMarker&&i(e,t,this.markerLocation,this.markerColor),this.title&&(this.data.xRange&&2===this.data.xRange.length&&!isNaN(this.markerLocation)&&(n=(this.data.xRange[1]-this.data.xRange[0])*this.markerLocation+this.data.xRange[0],n.toFixed&&(n=n.toFixed(5))),s(e,t,10,10,this.title.replace(/{x}/g,""+n))))}},{key:"onPainterReady",value:function(e){return this.on(f,e)}},{key:"getControlWidgets",value:function(){return[]}}]),e}();t["default"]=p,c["default"].mixInto(p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(424),a=r(o);t["default"]={LineChartPainter:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(423),a=r(o),i=n(425),s=r(i);t["default"]={Image:a["default"],Painter:s["default"]}},function(e,t,n){(function(e){"use strict";if(n(543),n(428),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0}).call(t,function(){return this}())},function(e,t,n){(function(t,n){!function(t){"use strict";function r(e,t,n,r){var o=Object.create((t||a).prototype),i=new h(r||[]);return o._invoke=f(e,n,i),o}function o(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function a(){}function i(){}function s(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){this.arg=e}function c(e){function t(t,n){var r=e[t](n),o=r.value;return o instanceof u?Promise.resolve(o.arg).then(a,i):Promise.resolve(o).then(function(e){return r.value=e,r})}function r(e,n){function r(){return t(e,n)}return o=o?o.then(r,r):new Promise(function(e){e(r())})}"object"==typeof n&&n.domain&&(t=n.domain.bind(t));var o,a=t.bind(e,"next"),i=t.bind(e,"throw");t.bind(e,"return");this._invoke=r}function f(e,t,n){var r=x;return function(a,i){if(r===E)throw new Error("Generator is already running");if(r===T){if("throw"===a)throw i;return m()}for(;;){var s=n.delegate;if(s){if("return"===a||"throw"===a&&s.iterator[a]===v){n.delegate=null;var l=s.iterator["return"];if(l){var u=o(l,s.iterator,i);if("throw"===u.type){a="throw",i=u.arg;continue}}if("return"===a)continue}var u=o(s.iterator[a],s.iterator,i);if("throw"===u.type){n.delegate=null,a="throw",i=u.arg;continue}a="next",i=v;var c=u.arg;if(!c.done)return r=C,c;n[s.resultName]=c.value,n.next=s.nextLoc,n.delegate=null}if("next"===a)n._sent=i,r===C?n.sent=i:n.sent=v;else if("throw"===a){if(r===x)throw r=T,i;n.dispatchException(i)&&(a="next",i=v)}else"return"===a&&n.abrupt("return",i);r=E;var u=o(e,t,n);if("normal"===u.type){r=n.done?T:C;var c={value:u.arg,done:n.done};if(u.arg!==P)return c;n.delegate&&"next"===a&&(i=v)}else"throw"===u.type&&(r=T,a="throw",i=u.arg)}}}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function g(e){if(e){var t=e[y];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function o(){for(;++n<e.length;)if(_.call(e,n))return o.value=e[n],o.done=!1,o;return o.value=v,o.done=!0,o};return r.next=r}}return{next:m}}function m(){return{value:v,done:!0}}var v,_=Object.prototype.hasOwnProperty,y="function"==typeof Symbol&&Symbol.iterator||"@@iterator",b="object"==typeof e,w=t.regeneratorRuntime;if(w)return void(b&&(e.exports=w));w=t.regeneratorRuntime=b?e.exports:{},w.wrap=r;var x="suspendedStart",C="suspendedYield",E="executing",T="completed",P={},k=s.prototype=a.prototype;i.prototype=k.constructor=s,s.constructor=i,i.displayName="GeneratorFunction",w.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return t?t===i||"GeneratorFunction"===(t.displayName||t.name):!1},w.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):e.__proto__=s,e.prototype=Object.create(k),e},w.awrap=function(e){return new u(e)},l(c.prototype),w.async=function(e,t,n,o){var a=new c(r(e,t,n,o));return w.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},l(k),k[y]=function(){return this},k.toString=function(){return"[object Generator]"},w.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},w.values=g,h.prototype={constructor:h,reset:function(e){if(this.prev=0,this.next=0,this.sent=v,this.done=!1,this.delegate=null,this.tryEntries.forEach(d),!e)for(var t in this)"t"===t.charAt(0)&&_.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=_.call(o,"catchLoc"),s=_.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?this.next=o.finallyLoc:this.complete(a),P},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),P}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:g(e),resultName:t,nextLoc:n},P}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,function(){return this}(),n(77))},function(e,t,n){"use strict";var r=n(46),o=n(73),a=n(28);e.exports=[].copyWithin||function(e,t){var n=r(this),i=a(n.length),s=o(e,i),l=o(t,i),u=arguments,c=u.length>2?u[2]:void 0,f=Math.min((void 0===c?i:o(c,i))-l,i-s),p=1;for(s>l&&l+f>s&&(p=-1,l+=f-1,s+=f-1);f-- >0;)l in n?n[s]=n[l]:delete n[s],s+=p,l+=p;return n}},function(e,t,n){"use strict";var r=n(46),o=n(73),a=n(28);e.exports=[].fill||function(e){for(var t=r(this),n=a(t.length),i=arguments,s=i.length,l=o(s>1?i[1]:void 0,n),u=s>2?i[2]:void 0,c=void 0===u?n:o(u,n);c>l;)t[l++]=e;return t}},function(e,t,n){var r=n(12),o=n(123),a=n(14)("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&(n=n[a],null===n&&(n=void 0))),new(void 0===n?Array:n)(t)}},function(e,t,n){var r=n(8);e.exports=function(e){var t=r.getKeys(e),n=r.getSymbols;if(n)for(var o,a=n(e),i=r.isEnum,s=0;a.length>s;)i.call(e,o=a[s++])&&t.push(o);return t}},function(e,t,n){var r=n(8),o=n(34);e.exports=function(e,t){for(var n,a=o(e),i=r.getKeys(a),s=i.length,l=0;s>l;)if(a[n=i[l++]]===t)return n}},function(e,t,n){var r,o,a,i=n(16),s=n(224).set,l=i.MutationObserver||i.WebKitMutationObserver,u=i.process,c=i.Promise,f="process"==n(44)(u),p=function(){var e,t,n;for(f&&(e=u.domain)&&(u.domain=null,e.exit());r;)t=r.domain,n=r.fn,t&&t.enter(),n(),t&&t.exit(),r=r.next;o=void 0,e&&e.enter()};if(f)a=function(){u.nextTick(p)};else if(l){var d=1,h=document.createTextNode("");new l(p).observe(h,{characterData:!0}),a=function(){h.data=d=-d}}else a=c&&c.resolve?function(){c.resolve().then(p)}:function(){s.call(i,p)};e.exports=function(e){var t={fn:e,next:void 0,domain:f&&u.domain};o&&(o.next=t),r||(r=t,a()),o=t}},function(e,t,n){var r=n(8),o=n(46),a=n(92);e.exports=n(19)(function(){var e=Object.assign,t={},n={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(e){n[e]=e}),7!=e({},t)[r]||Object.keys(e({},n)).join("")!=o})?function(e,t){for(var n=o(e),i=arguments,s=i.length,l=1,u=r.getKeys,c=r.getSymbols,f=r.isEnum;s>l;)for(var p,d=a(i[l++]),h=c?u(d).concat(c(d)):u(d),g=h.length,m=0;g>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:Object.assign},function(e,t,n){"use strict";var r=n(437),o=n(91),a=n(57);e.exports=function(){for(var e=a(this),t=arguments.length,n=Array(t),i=0,s=r._,l=!1;t>i;)(n[i]=arguments[i++])===s&&(l=!0);return function(){var r,a=this,i=arguments,u=i.length,c=0,f=0;if(!l&&!u)return o(e,n,a);if(r=n.slice(),l)for(;t>c;c++)r[c]===s&&(r[c]=i[f++]);for(;u>f;)r.push(i[f++]);return o(e,r,a)}}},function(e,t,n){e.exports=n(16)},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){var r=n(13),o=n(57),a=n(14)("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||void 0==(n=r(i)[a])?t:o(n)}},function(e,t,n){var r=n(12);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r,o=n(8),a=n(2),i=n(31),s=n(51),l=n(210),u=n(207),c=n(27),f=n(44),p=n(91),d=n(19),h=n(13),g=n(57),m=n(12),v=n(46),_=n(34),y=n(74),b=n(73),w=n(28),x=n(92),C=n(59)("__proto__"),E=n(87),T=n(203)(!1),P=Object.prototype,k=Array.prototype,M=k.slice,S=k.join,D=o.setDesc,R=o.getDesc,A=o.setDescs,I={};i||(r=!d(function(){return 7!=D(u("div"),"a",{get:function(){return 7}}).a}),o.setDesc=function(e,t,n){if(r)try{return D(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(h(e)[t]=n.value),e},o.getDesc=function(e,t){if(r)try{return R(e,t)}catch(n){}return c(e,t)?s(!P.propertyIsEnumerable.call(e,t),e[t]):void 0},o.setDescs=A=function(e,t){h(e);for(var n,r=o.getKeys(t),a=r.length,i=0;a>i;)o.setDesc(e,n=r[i++],t[n]);return e}),a(a.S+a.F*!i,"Object",{getOwnPropertyDescriptor:o.getDesc,defineProperty:o.setDesc,defineProperties:A});var O="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),N=O.concat("length","prototype"),F=O.length,L=function(){var e,t=u("iframe"),n=F,r=">";for(t.style.display="none",l.appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object</script"+r),e.close(),L=e.F;n--;)delete L.prototype[O[n]];return L()},B=function(e,t){return function(n){var r,o=_(n),a=0,i=[];for(r in o)r!=C&&c(o,r)&&i.push(r);for(;t>a;)c(o,r=e[a++])&&(~T(i,r)||i.push(r));return i}},j=function(){};a(a.S,"Object",{getPrototypeOf:o.getProto=o.getProto||function(e){return e=v(e),c(e,C)?e[C]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?P:null},getOwnPropertyNames:o.getNames=o.getNames||B(N,N.length,!0),create:o.create=o.create||function(e,t){var n;return null!==e?(j.prototype=h(e),n=new j,j.prototype=null,n[C]=e):n=L(),void 0===t?n:A(n,t)},keys:o.getKeys=o.getKeys||B(O,F,!1)});var W=function(e,t,n){if(!(t in I)){for(var r=[],o=0;t>o;o++)r[o]="a["+o+"]";I[t]=Function("F,a","return new F("+r.join(",")+")")}return I[t](e,n)};a(a.P,"Function",{bind:function(e){var t=g(this),n=M.call(arguments,1),r=function(){var o=n.concat(M.call(arguments));return this instanceof r?W(t,o.length,o):p(t,o,e)};return m(t.prototype)&&(r.prototype=t.prototype),r}}),a(a.P+a.F*d(function(){l&&M.call(l)}),"Array",{slice:function(e,t){var n=w(this.length),r=f(this);if(t=void 0===t?n:t,"Array"==r)return M.call(this,e,t);for(var o=b(e,n),a=b(t,n),i=w(a-o),s=Array(i),l=0;i>l;l++)s[l]="String"==r?this.charAt(o+l):this[o+l];return s}}),a(a.P+a.F*(x!=Object),"Array",{join:function(e){return S.call(x(this),void 0===e?",":e)}}),a(a.S,"Array",{isArray:n(123)});var U=function(e){return function(t,n){g(t);var r=x(this),o=w(r.length),a=e?o-1:0,i=e?-1:1;if(arguments.length<2)for(;;){if(a in r){n=r[a],a+=i;break}if(a+=i,e?0>a:a>=o)throw TypeError("Reduce of empty array with no initial value")}for(;e?a>=0:o>a;a+=i)a in r&&(n=t(n,r[a],a,this));return n}},V=function(e){return function(t){return e(this,t,arguments[1])}};a(a.P,"Array",{forEach:o.each=o.each||V(E(0)),map:V(E(1)),filter:V(E(2)),some:V(E(3)),every:V(E(4)),reduce:U(!1),reduceRight:U(!0),indexOf:V(T),lastIndexOf:function(e,t){var n=_(this),r=w(n.length),o=r-1;for(arguments.length>1&&(o=Math.min(o,y(t))),0>o&&(o=w(r+o));o>=0;o--)if(o in n&&n[o]===e)return o;return-1}}),a(a.S,"Date",{now:function(){return+new Date}});var z=function(e){return e>9?e:"0"+e};a(a.P+a.F*(d(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!d(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=0>t?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+z(e.getUTCMonth()+1)+"-"+z(e.getUTCDate())+"T"+z(e.getUTCHours())+":"+z(e.getUTCMinutes())+":"+z(e.getUTCSeconds())+"."+(n>99?n:"0"+z(n))+"Z"}})},function(e,t,n){var r=n(2);r(r.P,"Array",{copyWithin:n(429)}),n(58)("copyWithin")},function(e,t,n){var r=n(2);r(r.P,"Array",{fill:n(430)}),n(58)("fill")},function(e,t,n){"use strict";var r=n(2),o=n(87)(6),a="findIndex",i=!0;a in[]&&Array(1)[a](function(){i=!1}),r(r.P+r.F*i,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(58)(a)},function(e,t,n){"use strict";var r=n(2),o=n(87)(5),a="find",i=!0;a in[]&&Array(1)[a](function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(58)(a)},function(e,t,n){"use strict";var r=n(38),o=n(2),a=n(46),i=n(214),s=n(211),l=n(28),u=n(225);o(o.S+o.F*!n(125)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,c,f=a(e),p="function"==typeof this?this:Array,d=arguments,h=d.length,g=h>1?d[1]:void 0,m=void 0!==g,v=0,_=u(f);if(m&&(g=r(g,h>2?d[2]:void 0,2)),void 0==_||p==Array&&s(_))for(t=l(f.length),n=new p(t);t>v;v++)n[v]=m?g(f[v],v):f[v];else for(c=_.call(f),n=new p;!(o=c.next()).done;v++)n[v]=m?i(c,g,[o.value,v],!0):o.value;return n.length=v,n}})},function(e,t,n){"use strict";var r=n(2);r(r.S+r.F*n(19)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments,n=t.length,r=new("function"==typeof this?this:Array)(n);n>e;)r[e]=t[e++];return r.length=n,r}})},function(e,t,n){n(94)("Array")},function(e,t,n){"use strict";var r=n(8),o=n(12),a=n(14)("hasInstance"),i=Function.prototype;a in i||r.setDesc(i,a,{value:function(e){if("function"!=typeof this||!o(e))return!1;if(!o(this.prototype))return e instanceof this;for(;e=r.getProto(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(8).setDesc,o=n(51),a=n(27),i=Function.prototype,s=/^\s*function ([^ (]*)/,l="name";l in i||n(31)&&r(i,l,{configurable:!0,get:function(){var e=(""+this).match(s),t=e?e[1]:"";return a(this,l)||r(this,l,o(5,t)),t}})},function(e,t,n){"use strict";var r=n(204);n(89)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){var r=n(2),o=n(217),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+a(e-1)*a(e+1))}})},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?0>e?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var o=n(2);o(o.S,"Math",{asinh:r})},function(e,t,n){var r=n(2);r(r.S,"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(2),o=n(128);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(2);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(2),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(2);r(r.S,"Math",{expm1:n(127)})},function(e,t,n){var r=n(2),o=n(128),a=Math.pow,i=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126),c=function(e){return e+1/i-1/i};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),a=o(e);return u>r?a*c(r/u/s)*u*s:(t=(1+s/i)*r,n=t-(t-r),n>l||n!=n?a*(1/0):a*n)}})},function(e,t,n){var r=n(2),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,a=0,i=0,s=arguments,l=s.length,u=0;l>i;)n=o(s[i++]),n>u?(r=u/n,a=a*r*r+1,u=n):n>0?(r=n/u,a+=r*r):a+=n;return u===1/0?1/0:u*Math.sqrt(a)}})},function(e,t,n){var r=n(2),o=Math.imul;r(r.S+r.F*n(19)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,a=n&r,i=n&o;return 0|a*i+((n&r>>>16)*i+a*(n&o>>>16)<<16>>>0)}})},function(e,t,n){var r=n(2);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(2);r(r.S,"Math",{log1p:n(217)})},function(e,t,n){var r=n(2);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(2);r(r.S,"Math",{sign:n(128)})},function(e,t,n){var r=n(2),o=n(127),a=Math.exp;r(r.S+r.F*n(19)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(a(e-1)-a(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(2),o=n(127),a=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},function(e,t,n){var r=n(2);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){"use strict";var r=n(8),o=n(16),a=n(27),i=n(44),s=n(440),l=n(19),u=n(96).trim,c="Number",f=o[c],p=f,d=f.prototype,h=i(r.create(d))==c,g="trim"in String.prototype,m=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=g?t.trim():u(t,3);var n,r,o,a=t.charCodeAt(0);if(43===a||45===a){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var i,l=t.slice(2),c=0,f=l.length;f>c;c++)if(i=l.charCodeAt(c),48>i||i>o)return NaN;return parseInt(l,r)}}return+t};f(" 0o1")&&f("0b1")&&!f("+0x1")||(f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(h?l(function(){d.valueOf.call(n)}):i(n)!=c)?new p(m(t)):m(t)},r.each.call(n(31)?r.getNames(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(e){a(p,e)&&!a(f,e)&&r.setDesc(f,e,r.getDesc(p,e))}),f.prototype=d,d.constructor=f,n(33)(o,c,f))},function(e,t,n){var r=n(2);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(2),o=n(16).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(2);r(r.S,"Number",{isInteger:n(212)})},function(e,t,n){var r=n(2);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(2),o=n(212),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&a(e)<=9007199254740991}})},function(e,t,n){var r=n(2);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(2);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(2);r(r.S,"Number",{parseFloat:parseFloat})},function(e,t,n){var r=n(2);r(r.S,"Number",{parseInt:parseInt})},function(e,t,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(435)})},function(e,t,n){var r=n(12);n(32)("freeze",function(e){return function(t){return e&&r(t)?e(t):t}})},function(e,t,n){var r=n(34);n(32)("getOwnPropertyDescriptor",function(e){return function(t,n){return e(r(t),n)}})},function(e,t,n){n(32)("getOwnPropertyNames",function(){return n(209).get})},function(e,t,n){var r=n(46);n(32)("getPrototypeOf",function(e){return function(t){return e(r(t))}})},function(e,t,n){var r=n(12);n(32)("isExtensible",function(e){return function(t){return r(t)?e?e(t):!0:!1}})},function(e,t,n){var r=n(12);n(32)("isFrozen",function(e){return function(t){return r(t)?e?e(t):!1:!0}})},function(e,t,n){var r=n(12);n(32)("isSealed",function(e){return function(t){return r(t)?e?e(t):!1:!0}})},function(e,t,n){var r=n(2);r(r.S,"Object",{is:n(220)})},function(e,t,n){var r=n(46);n(32)("keys",function(e){return function(t){return e(r(t))}})},function(e,t,n){var r=n(12);n(32)("preventExtensions",function(e){return function(t){return e&&r(t)?e(t):t}})},function(e,t,n){var r=n(12);n(32)("seal",function(e){return function(t){return e&&r(t)?e(t):t}})},function(e,t,n){var r=n(2);r(r.S,"Object",{setPrototypeOf:n(129).set})},function(e,t,n){"use strict";var r=n(88),o={};o[n(14)("toStringTag")]="z",o+""!="[object z]"&&n(33)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){"use strict";var r,o=n(8),a=n(126),i=n(16),s=n(38),l=n(88),u=n(2),c=n(12),f=n(13),p=n(57),d=n(95),h=n(70),g=n(129).set,m=n(220),v=n(14)("species"),_=n(439),y=n(434),b="Promise",w=i.process,x="process"==l(w),C=i[b],E=function(e){var t=new C(function(){});return e&&(t.constructor=Object),C.resolve(t)===t},T=function(){function e(t){ -var n=new C(t);return g(n,e.prototype),n}var t=!1;try{if(t=C&&C.resolve&&E(),g(e,C),e.prototype=o.create(C.prototype,{constructor:{value:e}}),e.resolve(5).then(function(){})instanceof e||(t=!1),t&&n(31)){var r=!1;C.resolve(o.setDesc({},"then",{get:function(){r=!0}})),t=r}}catch(a){t=!1}return t}(),P=function(e,t){return a&&e===C&&t===r?!0:m(e,t)},k=function(e){var t=f(e)[v];return void 0!=t?t:e},M=function(e){var t;return c(e)&&"function"==typeof(t=e.then)?t:!1},S=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=p(t),this.reject=p(n)},D=function(e){try{e()}catch(t){return{error:t}}},R=function(e,t){if(!e.n){e.n=!0;var n=e.c;y(function(){for(var r=e.v,o=1==e.s,a=0,s=function(t){var n,a,i=o?t.ok:t.fail,s=t.resolve,l=t.reject;try{i?(o||(e.h=!0),n=i===!0?r:i(r),n===t.promise?l(TypeError("Promise-chain cycle")):(a=M(n))?a.call(n,s,l):s(n)):l(r)}catch(u){l(u)}};n.length>a;)s(n[a++]);n.length=0,e.n=!1,t&&setTimeout(function(){var t,n,o=e.p;A(o)&&(x?w.emit("unhandledRejection",r,o):(t=i.onunhandledrejection)?t({promise:o,reason:r}):(n=i.console)&&n.error&&n.error("Unhandled promise rejection",r)),e.a=void 0},1)})}},A=function(e){var t,n=e._d,r=n.a||n.c,o=0;if(n.h)return!1;for(;r.length>o;)if(t=r[o++],t.fail||!A(t.promise))return!1;return!0},I=function(e){var t=this;t.d||(t.d=!0,t=t.r||t,t.v=e,t.s=2,t.a=t.c.slice(),R(t,!0))},O=function(e){var t,n=this;if(!n.d){n.d=!0,n=n.r||n;try{if(n.p===e)throw TypeError("Promise can't be resolved itself");(t=M(e))?y(function(){var r={r:n,d:!1};try{t.call(e,s(O,r,1),s(I,r,1))}catch(o){I.call(r,o)}}):(n.v=e,n.s=1,R(n,!1))}catch(r){I.call({r:n,d:!1},r)}}};T||(C=function(e){p(e);var t=this._d={p:d(this,C,b),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};try{e(s(O,t,1),s(I,t,1))}catch(n){I.call(t,n)}},n(93)(C.prototype,{then:function(e,t){var n=new S(_(this,C)),r=n.promise,o=this._d;return n.ok="function"==typeof e?e:!0,n.fail="function"==typeof t&&t,o.c.push(n),o.a&&o.a.push(n),o.s&&R(o,!1),r},"catch":function(e){return this.then(void 0,e)}})),u(u.G+u.W+u.F*!T,{Promise:C}),n(72)(C,b),n(94)(b),r=n(45)[b],u(u.S+u.F*!T,b,{reject:function(e){var t=new S(this),n=t.reject;return n(e),t.promise}}),u(u.S+u.F*(!T||E(!0)),b,{resolve:function(e){if(e instanceof C&&P(e.constructor,this))return e;var t=new S(this),n=t.resolve;return n(e),t.promise}}),u(u.S+u.F*!(T&&n(125)(function(e){C.all(e)["catch"](function(){})})),b,{all:function(e){var t=k(this),n=new S(t),r=n.resolve,a=n.reject,i=[],s=D(function(){h(e,!1,i.push,i);var n=i.length,s=Array(n);n?o.each.call(i,function(e,o){var i=!1;t.resolve(e).then(function(e){i||(i=!0,s[o]=e,--n||r(s))},a)}):r(s)});return s&&a(s.error),n.promise},race:function(e){var t=k(this),n=new S(t),r=n.reject,o=D(function(){h(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(e,t,n){var r=n(2),o=Function.apply;r(r.S,"Reflect",{apply:function(e,t,n){return o.call(e,t,n)}})},function(e,t,n){var r=n(8),o=n(2),a=n(57),i=n(13),s=n(12),l=Function.bind||n(45).Function.prototype.bind;o(o.S+o.F*n(19)(function(){function e(){}return!(Reflect.construct(function(){},[],e)instanceof e)}),"Reflect",{construct:function(e,t){a(e);var n=arguments.length<3?e:a(arguments[2]);if(e==n){if(void 0!=t)switch(i(t).length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(l.apply(e,o))}var u=n.prototype,c=r.create(s(u)?u:Object.prototype),f=Function.apply.call(e,c,t);return s(f)?f:c}})},function(e,t,n){var r=n(8),o=n(2),a=n(13);o(o.S+o.F*n(19)(function(){Reflect.defineProperty(r.setDesc({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){a(e);try{return r.setDesc(e,t,n),!0}catch(o){return!1}}})},function(e,t,n){var r=n(2),o=n(8).getDesc,a=n(13);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=o(a(e),t);return n&&!n.configurable?!1:delete e[t]}})},function(e,t,n){"use strict";var r=n(2),o=n(13),a=function(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(215)(a,"Object",function(){var e,t=this,n=t._k;do if(t._i>=n.length)return{value:void 0,done:!0};while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new a(e)}})},function(e,t,n){var r=n(8),o=n(2),a=n(13);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.getDesc(a(e),t)}})},function(e,t,n){var r=n(2),o=n(8).getProto,a=n(13);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,n){function r(e,t){var n,i,u=arguments.length<3?e:arguments[2];return l(e)===u?e[t]:(n=o.getDesc(e,t))?a(n,"value")?n.value:void 0!==n.get?n.get.call(u):void 0:s(i=o.getProto(e))?r(i,t,u):void 0}var o=n(8),a=n(27),i=n(2),s=n(12),l=n(13);i(i.S,"Reflect",{get:r})},function(e,t,n){var r=n(2);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(2),o=n(13),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),a?a(e):!0}})},function(e,t,n){var r=n(2);r(r.S,"Reflect",{ownKeys:n(219)})},function(e,t,n){var r=n(2),o=n(13),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return a&&a(e),!0}catch(t){return!1}}})},function(e,t,n){var r=n(2),o=n(129);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(n){return!1}}})},function(e,t,n){function r(e,t,n){var i,c,f=arguments.length<4?e:arguments[3],p=o.getDesc(l(e),t);if(!p){if(u(c=o.getProto(e)))return r(c,t,n,f);p=s(0)}return a(p,"value")?p.writable!==!1&&u(f)?(i=o.getDesc(f,t)||s(0),i.value=n,o.setDesc(f,t,i),!0):!1:void 0===p.set?!1:(p.set.call(f,n),!0)}var o=n(8),a=n(27),i=n(2),s=n(51),l=n(13),u=n(12);i(i.S,"Reflect",{set:r})},function(e,t,n){var r=n(8),o=n(16),a=n(213),i=n(208),s=o.RegExp,l=s,u=s.prototype,c=/a/g,f=/a/g,p=new s(c)!==c;!n(31)||p&&!n(19)(function(){return f[n(14)("match")]=!1,s(c)!=c||s(f)==f||"/a/i"!=s(c,"i")})||(s=function(e,t){var n=a(e),r=void 0===t;return this instanceof s||!n||e.constructor!==s||!r?p?new l(n&&!r?e.source:e,t):l((n=e instanceof s)?e.source:e,n&&r?i.call(e):t):e},r.each.call(r.getNames(l),function(e){e in s||r.setDesc(s,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})}),u.constructor=s,s.prototype=u,n(33)(o,"RegExp",s)),n(94)("RegExp")},function(e,t,n){var r=n(8);n(31)&&"g"!=/./g.flags&&r.setDesc(RegExp.prototype,"flags",{configurable:!0,get:n(208)})},function(e,t,n){n(90)("match",1,function(e,t){return function(n){"use strict";var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))}})},function(e,t,n){n(90)("replace",2,function(e,t,n){return function(r,o){"use strict";var a=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)}})},function(e,t,n){n(90)("search",1,function(e,t){return function(n){"use strict";var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))}})},function(e,t,n){n(90)("split",2,function(e,t,n){return function(r,o){"use strict";var a=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)}})},function(e,t,n){"use strict";var r=n(204);n(89)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r=n(2),o=n(130)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(2),o=n(28),a=n(131),i="endsWith",s=""[i];r(r.P+r.F*n(122)(i),"String",{endsWith:function(e){var t=a(this,e,i),n=arguments,r=n.length>1?n[1]:void 0,l=o(t.length),u=void 0===r?l:Math.min(o(r),l),c=String(e);return s?s.call(t,c,u):t.slice(u-c.length,u)===c}})},function(e,t,n){var r=n(2),o=n(73),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments,i=r.length,s=0;i>s;){if(t=+r[s++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(65536>t?a(t):a(((t-=65536)>>10)+55296,t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(2),o=n(131),a="includes";r(r.P+r.F*n(122)(a),"String",{includes:function(e){return!!~o(this,e,a).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(130)(!0);n(124)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(2),o=n(34),a=n(28);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=a(t.length),r=arguments,i=r.length,s=[],l=0;n>l;)s.push(String(t[l++])),i>l&&s.push(String(r[l]));return s.join("")}})},function(e,t,n){var r=n(2);r(r.P,"String",{repeat:n(223)})},function(e,t,n){"use strict";var r=n(2),o=n(28),a=n(131),i="startsWith",s=""[i];r(r.P+r.F*n(122)(i),"String",{startsWith:function(e){var t=a(this,e,i),n=arguments,r=o(Math.min(n.length>1?n[1]:void 0,t.length)),l=String(e);return s?s.call(t,l,r):t.slice(r,r+l.length)===l}})},function(e,t,n){"use strict";n(96)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r=n(8),o=n(16),a=n(27),i=n(31),s=n(2),l=n(33),u=n(19),c=n(221),f=n(72),p=n(59),d=n(14),h=n(433),g=n(209),m=n(432),v=n(123),_=n(13),y=n(34),b=n(51),w=r.getDesc,x=r.setDesc,C=r.create,E=g.get,T=o.Symbol,P=o.JSON,k=P&&P.stringify,M=!1,S=d("_hidden"),D=r.isEnum,R=c("symbol-registry"),A=c("symbols"),I="function"==typeof T,O=Object.prototype,N=i&&u(function(){return 7!=C(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=w(O,t);r&&delete O[t],x(e,t,n),r&&e!==O&&x(O,t,r)}:x,F=function(e){var t=A[e]=C(T.prototype);return t._k=e,i&&M&&N(O,e,{configurable:!0,set:function(t){a(this,S)&&a(this[S],e)&&(this[S][e]=!1),N(this,e,b(1,t))}}),t},L=function(e){return"symbol"==typeof e},B=function(e,t,n){return n&&a(A,t)?(n.enumerable?(a(e,S)&&e[S][t]&&(e[S][t]=!1),n=C(n,{enumerable:b(0,!1)})):(a(e,S)||x(e,S,b(1,{})),e[S][t]=!0),N(e,t,n)):x(e,t,n)},j=function(e,t){_(e);for(var n,r=m(t=y(t)),o=0,a=r.length;a>o;)B(e,n=r[o++],t[n]);return e},W=function(e,t){return void 0===t?C(e):j(C(e),t)},U=function(e){var t=D.call(this,e);return t||!a(this,e)||!a(A,e)||a(this,S)&&this[S][e]?t:!0},V=function(e,t){var n=w(e=y(e),t);return!n||!a(A,t)||a(e,S)&&e[S][t]||(n.enumerable=!0),n},z=function(e){for(var t,n=E(y(e)),r=[],o=0;n.length>o;)a(A,t=n[o++])||t==S||r.push(t);return r},q=function(e){for(var t,n=E(y(e)),r=[],o=0;n.length>o;)a(A,t=n[o++])&&r.push(A[t]);return r},H=function(e){if(void 0!==e&&!L(e)){for(var t,n,r=[e],o=1,a=arguments;a.length>o;)r.push(a[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&v(t)||(t=function(e,t){return n&&(t=n.call(this,e,t)),L(t)?void 0:t}),r[1]=t,k.apply(P,r)}},X=u(function(){var e=T();return"[null]"!=k([e])||"{}"!=k({a:e})||"{}"!=k(Object(e))});I||(T=function(){if(L(this))throw TypeError("Symbol is not a constructor");return F(p(arguments.length>0?arguments[0]:void 0))},l(T.prototype,"toString",function(){return this._k}),L=function(e){return e instanceof T},r.create=W,r.isEnum=U,r.getDesc=V,r.setDesc=B,r.setDescs=j,r.getNames=g.get=z,r.getSymbols=q,i&&!n(126)&&l(O,"propertyIsEnumerable",U,!0));var G={"for":function(e){return a(R,e+="")?R[e]:R[e]=T(e)},keyFor:function(e){return h(R,e)},useSetter:function(){M=!0},useSimple:function(){M=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(e){var t=d(e);G[e]=I?t:F(t)}),M=!0,s(s.G+s.W,{Symbol:T}),s(s.S,"Symbol",G),s(s.S+s.F*!I,"Object",{create:W,defineProperty:B,defineProperties:j,getOwnPropertyDescriptor:V,getOwnPropertyNames:z,getOwnPropertySymbols:q}),P&&s(s.S+s.F*(!I||X),"JSON",{stringify:H}),f(T,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(8),o=n(33),a=n(206),i=n(12),s=n(27),l=a.frozenStore,u=a.WEAK,c=Object.isExtensible||i,f={},p=n(89)("WeakMap",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){if(i(e)){if(!c(e))return l(this).get(e);if(s(e,u))return e[u][this._i]}},set:function(e,t){return a.def(this,e,t)}},a,!0,!0);7!=(new p).set((Object.freeze||Object)(f),7).get(f)&&r.each.call(["delete","has","get","set"],function(e){var t=p.prototype,n=t[e];o(t,e,function(t,r){if(i(t)&&!c(t)){var o=l(this)[e](t,r);return"set"==e?this:o}return n.call(this,t,r)})})},function(e,t,n){"use strict";var r=n(206);n(89)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(2),o=n(203)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(58)("includes")},function(e,t,n){var r=n(2);r(r.P,"Map",{toJSON:n(205)("Map")})},function(e,t,n){var r=n(2),o=n(218)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(8),o=n(2),a=n(219),i=n(34),s=n(51);o(o.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,o=i(e),l=r.setDesc,u=r.getDesc,c=a(o),f={},p=0;c.length>p;)n=u(o,t=c[p++]),t in f?l(f,t,s(0,n)):f[t]=n;return f}})},function(e,t,n){var r=n(2),o=n(218)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var r=n(2),o=n(438)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return o(e)}})},function(e,t,n){var r=n(2);r(r.P,"Set",{toJSON:n(205)("Set")})},function(e,t,n){"use strict";var r=n(2),o=n(130)(!0);r(r.P,"String",{at:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(2),o=n(222);r(r.P,"String",{padLeft:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";var r=n(2),o=n(222);r(r.P,"String",{padRight:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(96)("trimLeft",function(e){return function(){return e(this,1)}})},function(e,t,n){"use strict";n(96)("trimRight",function(e){return function(){return e(this,2)}})},function(e,t,n){var r=n(8),o=n(2),a=n(38),i=n(45).Array||Array,s={},l=function(e,t){r.each.call(e.split(","),function(e){void 0==t&&e in i?s[e]=i[e]:e in[]&&(s[e]=a(Function.call,[][e],t))})};l("pop,reverse,shift,keys,values,entries",1),l("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3),l("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),o(o.S,"Array",s)},function(e,t,n){n(226);var r=n(16),o=n(40),a=n(71),i=n(14)("iterator"),s=r.NodeList,l=r.HTMLCollection,u=s&&s.prototype,c=l&&l.prototype,f=a.NodeList=a.HTMLCollection=a.Array;u&&!u[i]&&o(u,i,f),c&&!c[i]&&o(c,i,f)},function(e,t,n){var r=n(2),o=n(224);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){var r=n(16),o=n(2),a=n(91),i=n(436),s=r.navigator,l=!!s&&/MSIE .\./.test(s.userAgent),u=function(e){return l?function(t,n){return e(a(i,[].slice.call(arguments,2),"function"==typeof t?t:Function(t)),n)}:e};o(o.G+o.B+o.F*l,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){n(441),n(524),n(479),n(487),n(491),n(492),n(480),n(490),n(489),n(485),n(486),n(484),n(481),n(483),n(488),n(482),n(450),n(449),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(517),n(520),n(523),n(519),n(515),n(516),n(518),n(521),n(522),n(446),n(447),n(226),n(448),n(442),n(443),n(445),n(444),n(508),n(509),n(510),n(511),n(512),n(513),n(493),n(451),n(514),n(525),n(526),n(494),n(495),n(496),n(497),n(498),n(501),n(499),n(500),n(502),n(503),n(504),n(505),n(507),n(506),n(527),n(534),n(535),n(536),n(537),n(538),n(532),n(530),n(531),n(529),n(528),n(533),n(539),n(542),n(541),n(540),e.exports=n(45)},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(60),n(62),n(61),n(17))}(this,function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,o=t.algo,a=[],i=[],s=[],l=[],u=[],c=[],f=[],p=[],d=[],h=[];!function(){for(var e=[],t=0;256>t;t++)128>t?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;256>t;t++){var o=r^r<<1^r<<2^r<<3^r<<4;o=o>>>8^255&o^99,a[n]=o,i[o]=n;var g=e[n],m=e[g],v=e[m],_=257*e[o]^16843008*o;s[n]=_<<24|_>>>8,l[n]=_<<16|_>>>16,u[n]=_<<8|_>>>24,c[n]=_;var _=16843009*v^65537*m^257*g^16843008*n;f[o]=_<<24|_>>>8,p[o]=_<<16|_>>>16,d[o]=_<<8|_>>>24,h[o]=_,n?(n=g^e[e[e[v^g]]],r^=e[e[r]]):n=r=1}}();var g=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=r.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),i=this._keySchedule=[],s=0;o>s;s++)if(n>s)i[s]=t[s];else{var l=i[s-1];s%n?n>6&&s%n==4&&(l=a[l>>>24]<<24|a[l>>>16&255]<<16|a[l>>>8&255]<<8|a[255&l]):(l=l<<8|l>>>24,l=a[l>>>24]<<24|a[l>>>16&255]<<16|a[l>>>8&255]<<8|a[255&l],l^=g[s/n|0]<<24),i[s]=i[s-n]^l}for(var u=this._invKeySchedule=[],c=0;o>c;c++){var s=o-c;if(c%4)var l=i[s];else var l=i[s-4];4>c||4>=s?u[c]=l:u[c]=f[a[l>>>24]]^p[a[l>>>16&255]]^d[a[l>>>8&255]]^h[a[255&l]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,l,u,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,f,p,d,h,i);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,a,i,s){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],f=e[t+2]^n[2],p=e[t+3]^n[3],d=4,h=1;l>h;h++){var g=r[u>>>24]^o[c>>>16&255]^a[f>>>8&255]^i[255&p]^n[d++],m=r[c>>>24]^o[f>>>16&255]^a[p>>>8&255]^i[255&u]^n[d++],v=r[f>>>24]^o[p>>>16&255]^a[u>>>8&255]^i[255&c]^n[d++],_=r[p>>>24]^o[u>>>16&255]^a[c>>>8&255]^i[255&f]^n[d++];u=g,c=m,f=v,p=_}var g=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[255&p])^n[d++],m=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^n[d++],v=(s[f>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[d++],_=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&f])^n[d++];e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=_},keySize:8});t.AES=r._createHelper(m)}(),e.AES})},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){return function(){function t(e){return e<<8&4278255360|e>>>8&16711935}var n=e,r=n.lib,o=r.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;n>o;o+=2){var a=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return o.create(n,2*t)}};a.Utf16LE={stringify:function(e){for(var n=e.words,r=e.sigBytes,o=[],a=0;r>a;a+=2){var i=t(n[a>>>2]>>>16-a%4*8&65535);o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,r=[],a=0;n>a;a++)r[a>>>1]|=t(e.charCodeAt(a)<<16-a%2*16);return o.create(r,2*n)}}}(),e.enc.Utf16})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.CipherParams,a=n.enc,i=a.Hex,s=n.format;s.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return o.create({ciphertext:t})}}}(),e.format.Hex})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(97),n(548),n(545),n(60),n(62),n(133),n(227),n(564),n(228),n(566),n(565),n(563),n(132),n(559),n(61),n(17),n(549),n(551),n(550),n(553),n(552),n(554),n(555),n(556),n(558),n(557),n(546),n(544),n(567),n(562),n(561),n(560))}(this,function(e){return e})},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,o=r.init,a=r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;t>r;r++)n[r>>>2]|=e[r]<<24-r%4*8;o.call(this,n,t)}else o.apply(this,arguments)};a.prototype=r}}(),e.lib.WordArray})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.mode.CFB=function(){function t(e,t,n,r){var o=this._iv;if(o){var a=o.slice(0);this._iv=void 0}else var a=this._prevBlock;r.encryptBlock(a,0);for(var i=0;n>i;i++)e[t+i]^=a[i]}var n=e.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o,r),this._prevBlock=e.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=e.slice(n,n+o);t.call(this,e,n,o,r),this._prevBlock=a}}),n}(),e.mode.CFB})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){/** @preserve +function r(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,a=n(23);a.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(23),o=n(128),a=n(129),i=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(i=function(e,t){a(e,o(t))})),e.exports=i},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,a=typeof t;return"string"===o||"number"===o?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";function r(e){return g[e]}function o(e,t){return e&&null!=e.key?i(e.key):t.toString(36)}function a(e){return(""+e).replace(m,r)}function i(e){return"$"+a(e)}function s(e,t,n,r){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||u.isValidElement(e))return n(r,e,""===t?d+o(e,0):t),1;var l,c,g=0,m=""===t?d:t+h;if(Array.isArray(e))for(var v=0;v<e.length;v++)l=e[v],c=m+o(l,v),g+=s(l,c,n,r);else{var _=f(e);if(_){var y,b=_.call(e);if(_!==e.entries)for(var w=0;!(y=b.next()).done;)l=y.value,c=m+o(l,w++),g+=s(l,c,n,r);else for(;!(y=b.next()).done;){var x=y.value;x&&(l=x[1],c=m+i(x[0])+h+o(l,0),g+=s(l,c,n,r))}}else if("object"===a){String(e);p(!1)}}return g}function l(e,t,n){return null==e?0:s(e,"",t,n)}var u=(n(53),n(30)),c=n(85),f=n(184),p=n(5),d=(n(10),c.SEPARATOR),h=":",g={"=":"=0",".":"=1",":":"=2"},m=/[=.:]/g;e.exports=l},function(e,t,n){"use strict";var r=(n(11),n(44)),o=(n(10),r);e.exports=o},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D u_image;\nvarying vec2 v_texCoord;\n\nvoid main() {\n vec4 color = texture2D(u_image, v_texCoord);\n gl_FragColor = vec4(color.rgb, 1.0);\n}\n"},function(e,t,n){var r=n(679);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(693);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){function e(e,n){function r(t,r,a){var i=e._defer(),s=a.length,l=new Array(s);return o({f:t,thisArg:r,args:a,params:l,i:s-1,call:n},i._handler),i}function o(t,r){if(t.i<0)return n(t.f,t.thisArg,t.params,r);var o=e._handler(t.args[t.i]);o.fold(a,t,void 0,r)}function a(e,t,n){e.params[e.i]=t,e.i-=1,o(e,n)}return arguments.length<2&&(n=t),r}function t(e,t,n,r){try{r.resolve(e.apply(t,n))}catch(o){r.reject(o)}}return e.tryCatchResolve=t,e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){(function(e){n(327);var r=n(712),o=n(60);"AUTOBAHN_DEBUG"in e&&AUTOBAHN_DEBUG&&(n(860),"console"in e&&console.log("AutobahnJS debug enabled"));var a=n(88),i=n(71),s=n(196),l=n(326),u=n(325),c=n(324),f=n(323);t.version=r.version,t.transports=u.transports,t.Connection=l.Connection,t.Session=s.Session,t.Invocation=s.Invocation,t.Event=s.Event,t.Result=s.Result,t.Error=s.Error,t.Subscription=s.Subscription,t.Registration=s.Registration,t.Publication=s.Publication,t.auth_persona=c.auth,t.auth_cra=f,t.when=o,t.util=a,t.log=i}).call(t,function(){return this}())},function(e,t,n){(function(e){function r(){return Math.floor(9007199254740992*Math.random())}var o=(n(60),n(318)),a=n(71),i=n(88);Date.now=Date.now||function(){return+new Date};var s={caller:{features:{caller_identification:!0,progressive_call_results:!0}},callee:{features:{progressive_call_results:!0}},publisher:{features:{subscriber_blackwhite_listing:!0,publisher_exclusion:!0,publisher_identification:!0}},subscriber:{features:{publisher_identification:!0}}},l=function(e,t,n){var r=this;r.caller=e,r.progress=t,r.procedure=n},u=function(e,t,n){var r=this;r.publication=e,r.publisher=t,r.topic=n},c=function(e,t){var n=this;n.args=e||[],n.kwargs=t||{}},f=function(e,t,n){var r=this;r.error=e,r.args=t||[],r.kwargs=n||{}},p=function(e,t,n,r,o){var a=this;a.topic=e,a.handler=t,a.options=n||{},a.session=r,a.id=o,a.active=!0};p.prototype.unsubscribe=function(){var e=this;return e.session.unsubscribe(e)};var d=function(e,t,n,r,o){var a=this;a.procedure=e,a.endpoint=t,a.options=n||{},a.session=r,a.id=o,a.active=!0};d.prototype.unregister=function(){var e=this;return e.session.unregister(e)};var h=function(e){var t=this;t.id=e},g={HELLO:1,WELCOME:2,ABORT:3,CHALLENGE:4,AUTHENTICATE:5,GOODBYE:6,HEARTBEAT:7,ERROR:8,PUBLISH:16,PUBLISHED:17,SUBSCRIBE:32,SUBSCRIBED:33,UNSUBSCRIBE:34,UNSUBSCRIBED:35,EVENT:36,CALL:48,CANCEL:49,RESULT:50,REGISTER:64,REGISTERED:65,UNREGISTER:66,UNREGISTERED:67,INVOCATION:68,INTERRUPT:69,YIELD:70},m=function(t,n,r){var i=this;i._socket=t,i._defer=n,i._onchallenge=r,i._id=null,i._realm=null,i._features=null,i._goodbye_sent=!1,i._transport_is_closing=!1,i._publish_reqs={},i._subscribe_reqs={},i._unsubscribe_reqs={},i._call_reqs={},i._register_reqs={},i._unregister_reqs={},i._subscriptions={},i._registrations={},i._invocations={},i._prefixes={},i._send_wamp=function(e){i._socket.send(e)},i._protocol_violation=function(e){a.debug("failing transport due to protocol violation: "+e),i._socket.close(1002,"protocol violation: "+e)},i._MESSAGE_MAP={},i._MESSAGE_MAP[g.ERROR]={},i._process_SUBSCRIBED=function(e){var t=e[1],n=e[2];if(t in i._subscribe_reqs){var r=i._subscribe_reqs[t],o=r[0],a=r[1],s=r[2],l=r[3];n in i._subscriptions||(i._subscriptions[n]=[]);var u=new p(a,s,l,i,n);i._subscriptions[n].push(u),o.resolve(u),delete i._subscribe_reqs[t]}else i._protocol_violation("SUBSCRIBED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.SUBSCRIBED]=i._process_SUBSCRIBED,i._process_SUBSCRIBE_ERROR=function(e){var t=e[2];if(t in i._subscribe_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._subscribe_reqs[t],o=r[0];o.reject(n),delete i._subscribe_reqs[t]}else i._protocol_violation("SUBSCRIBE-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.SUBSCRIBE]=i._process_SUBSCRIBE_ERROR,i._process_UNSUBSCRIBED=function(e){var t=e[1];if(t in i._unsubscribe_reqs){var n=i._unsubscribe_reqs[t],r=n[0],o=n[1];if(o in i._subscriptions){for(var a=i._subscriptions[o],s=0;s<a.length;++s)a[s].active=!1;delete i._subscriptions[o]}r.resolve(!0),delete i._unsubscribe_reqs[t]}else i._protocol_violation("UNSUBSCRIBED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.UNSUBSCRIBED]=i._process_UNSUBSCRIBED,i._process_UNSUBSCRIBE_ERROR=function(e){var t=e[2];if(t in i._unsubscribe_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._unsubscribe_reqs[t],o=r[0];r[1];o.reject(n),delete i._unsubscribe_reqs[t]}else i._protocol_violation("UNSUBSCRIBE-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.UNSUBSCRIBE]=i._process_UNSUBSCRIBE_ERROR,i._process_PUBLISHED=function(e){var t=e[1],n=e[2];if(t in i._publish_reqs){var r=i._publish_reqs[t],o=r[0],a=(r[1],new h(n));o.resolve(a),delete i._publish_reqs[t]}else i._protocol_violation("PUBLISHED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.PUBLISHED]=i._process_PUBLISHED,i._process_PUBLISH_ERROR=function(e){var t=e[2];if(t in i._publish_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._publish_reqs[t],o=r[0];r[1];o.reject(n),delete i._publish_reqs[t]}else i._protocol_violation("PUBLISH-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.PUBLISH]=i._process_PUBLISH_ERROR,i._process_EVENT=function(e){var t=e[1];if(t in i._subscriptions)for(var n=e[2],r=e[3],o=e[4]||[],s=e[5]||{},l=new u(n,r.publisher,r.topic),c=i._subscriptions[t],f=0;f<c.length;++f)try{c[f].handler(o,s,l)}catch(p){a.debug("Exception raised in event handler",p)}else i._protocol_violation("EVENT received for non-subscribed subscription ID "+t)},i._MESSAGE_MAP[g.EVENT]=i._process_EVENT,i._process_REGISTERED=function(e){var t=e[1],n=e[2];if(t in i._register_reqs){var r=i._register_reqs[t],o=r[0],a=r[1],s=r[2],l=r[3],u=new d(a,s,l,i,n);i._registrations[n]=u,o.resolve(u),delete i._register_reqs[t]}else i._protocol_violation("REGISTERED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.REGISTERED]=i._process_REGISTERED,i._process_REGISTER_ERROR=function(e){var t=e[2];if(t in i._register_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._register_reqs[t],o=r[0];o.reject(n),delete i._register_reqs[t]}else i._protocol_violation("REGISTER-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.REGISTER]=i._process_REGISTER_ERROR,i._process_UNREGISTERED=function(e){var t=e[1];if(t in i._unregister_reqs){var n=i._unregister_reqs[t],r=n[0],o=n[1];o.id in i._registrations&&delete i._registrations[o.id],o.active=!1,r.resolve(),delete i._unregister_reqs[t]}else i._protocol_violation("UNREGISTERED received for non-pending request ID "+t)},i._MESSAGE_MAP[g.UNREGISTERED]=i._process_UNREGISTERED,i._process_UNREGISTER_ERROR=function(e){var t=e[2];if(t in i._unregister_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._unregister_reqs[t],o=r[0];r[1];o.reject(n),delete i._unregister_reqs[t]}else i._protocol_violation("UNREGISTER-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.UNREGISTER]=i._process_UNREGISTER_ERROR,i._process_RESULT=function(e){var t=e[1];if(t in i._call_reqs){var n=e[2],r=e[3]||[],o=e[4]||{},a=null;r.length>1||Object.keys(o).length>0?a=new c(r,o):r.length>0&&(a=r[0]);var s=i._call_reqs[t],l=s[0],u=s[1];n.progress?u&&u.receive_progress&&l.notify(a):(l.resolve(a),delete i._call_reqs[t])}else i._protocol_violation("CALL-RESULT received for non-pending request ID "+t)},i._MESSAGE_MAP[g.RESULT]=i._process_RESULT,i._process_CALL_ERROR=function(e){var t=e[2];if(t in i._call_reqs){var n=(e[3],new f(e[4],e[5],e[6])),r=i._call_reqs[t],o=r[0];r[1];o.reject(n),delete i._call_reqs[t]}else i._protocol_violation("CALL-ERROR received for non-pending request ID "+t)},i._MESSAGE_MAP[g.ERROR][g.CALL]=i._process_CALL_ERROR,i._process_INVOCATION=function(e){var t=e[1],n=e[2],r=e[3];if(n in i._registrations){var a=i._registrations[n].endpoint,s=e[4]||[],u=e[5]||{},p=null;r.receive_progress&&(p=function(e,n){var r=[g.YIELD,t,{progress:!0}];e=e||[],n=n||{};var o=Object.keys(n).length;(e.length||o)&&(r.push(e),o&&r.push(n)),i._send_wamp(r)});var d=new l(r.caller,p,r.procedure);o.call(a,s,u,d).then(function(e){var n=[g.YIELD,t,{}];if(e instanceof c){var r=Object.keys(e.kwargs).length;(e.args.length||r)&&(n.push(e.args),r&&n.push(e.kwargs))}else n.push([e]);i._send_wamp(n)},function(e){var n=[g.ERROR,g.INVOCATION,t,{}];if(e instanceof f){n.push(e.error);var r=Object.keys(e.kwargs).length;(e.args.length||r)&&(n.push(e.args),r&&n.push(e.kwargs))}else n.push("wamp.error.runtime_error"),n.push([e]);i._send_wamp(n)})}else i._protocol_violation("INVOCATION received for non-registered registration ID "+t)},i._MESSAGE_MAP[g.INVOCATION]=i._process_INVOCATION,i._socket.onmessage=function(e){var t=e[0];if(i._id)if(t===g.GOODBYE){if(!i._goodbye_sent){var n=[g.GOODBYE,{},"wamp.error.goodbye_and_out"];i._send_wamp(n)}i._id=null,i._realm=null,i._features=null;var r=e[1],l=e[2];i.onleave&&i.onleave(l,r)}else if(t===g.ERROR){var u=e[1];u in i._MESSAGE_MAP[g.ERROR]?i._MESSAGE_MAP[t][u](e):i._protocol_violation("unexpected ERROR message with request_type "+u)}else t in i._MESSAGE_MAP?i._MESSAGE_MAP[t](e):i._protocol_violation("unexpected message type "+t);else if(t===g.WELCOME){i._id=e[1];var c=e[2];if(i._features={},c.roles.broker&&(i._features.subscriber={},i._features.publisher={},c.roles.broker.features)){for(var f in s.publisher.features)i._features.publisher[f]=s.publisher.features[f]&&c.roles.broker.features[f];for(var f in s.subscriber.features)i._features.subscriber[f]=s.subscriber.features[f]&&c.roles.broker.features[f]}if(c.roles.dealer&&(i._features.caller={},i._features.callee={},c.roles.dealer.features)){for(var f in s.caller.features)i._features.caller[f]=s.caller.features[f]&&c.roles.dealer.features[f];for(var f in s.callee.features)i._features.callee[f]=s.callee.features[f]&&c.roles.dealer.features[f]}i.onjoin&&i.onjoin(e[2])}else if(t===g.ABORT){var r=e[1],l=e[2];i.onleave&&i.onleave(l,r)}else if(t===g.CHALLENGE)if(i._onchallenge){var p=e[1],d=e[2];o.call(i._onchallenge,i,p,d).then(function(e){var t=[g.AUTHENTICATE,e,{}];i._send_wamp(t)},function(e){a.debug("onchallenge() raised:",e);var t=[g.ABORT,{message:"sorry, I cannot authenticate (onchallenge handler raised an exception)"},"wamp.error.cannot_authenticate"];i._send_wamp(t),i._socket.close(1e3)})}else{a.debug("received WAMP challenge, but no onchallenge() handler set");var e=[g.ABORT,{message:"sorry, I cannot authenticate (no onchallenge handler set)"},"wamp.error.cannot_authenticate"];i._send_wamp(e),i._socket.close(1e3)}else i._protocol_violation("unexpected message type "+t)},"performance"in e&&"now"in performance?i._created=performance.now():i._created=Date.now()};Object.defineProperty(m.prototype,"defer",{get:function(){return this._defer}}),Object.defineProperty(m.prototype,"id",{get:function(){return this._id}}),Object.defineProperty(m.prototype,"realm",{get:function(){return this._realm}}),Object.defineProperty(m.prototype,"isOpen",{get:function(){return null!==this.id}}),Object.defineProperty(m.prototype,"features",{get:function(){return this._features}}),Object.defineProperty(m.prototype,"subscriptions",{get:function(){for(var e=Object.keys(this._subscriptions),t=[],n=0;n<e.length;++n)t.push(this._subscriptions[e[n]]);return t}}),Object.defineProperty(m.prototype,"registrations",{get:function(){for(var e=Object.keys(this._registrations),t=[],n=0;n<e.length;++n)t.push(this._registrations[e[n]]);return t}}),m.prototype.log=function(){var t=this;if("console"in e){var n=null;if(t._id&&t._created){var r=null;r="performance"in e&&"now"in performance?performance.now()-t._created:Date.now()-t._created,n="WAMP session "+t._id+" on '"+t._realm+"' at "+Math.round(1e3*r)/1e3+" ms"}else n="WAMP session";if("group"in console){console.group(n);for(var o=0;o<arguments.length;o+=1)console.log(arguments[o]);console.groupEnd()}else{for(var a=[n+": "],o=0;o<arguments.length;o+=1)a.push(arguments[o]);console.log.apply(console,a)}}},m.prototype.join=function(e,t,n){i.assert("string"==typeof e,"Session.join: <realm> must be a string"),i.assert(!t||Array.isArray(t),"Session.join: <authmethods> must be an array []"),i.assert(!n||"string"==typeof n,"Session.join: <authid> must be a string");var r=this;if(r.isOpen)throw"session already open";r._goodbye_sent=!1,r._realm=e;var o={};o.roles=s,t&&(o.authmethods=t),n&&(o.authid=n);var a=[g.HELLO,e,o];r._send_wamp(a)},m.prototype.leave=function(e,t){i.assert(!e||"string"==typeof e,"Session.leave: <reason> must be a string"),i.assert(!t||"string"==typeof t,"Session.leave: <message> must be a string");var n=this;if(!n.isOpen)throw"session not open";e||(e="wamp.close.normal");var r={};t&&(r.message=t);var o=[g.GOODBYE,r,e];n._send_wamp(o),n._goodbye_sent=!0},m.prototype.call=function(e,t,n,o){i.assert("string"==typeof e,"Session.call: <procedure> must be a string"),i.assert(!t||Array.isArray(t),"Session.call: <args> must be an array []"),i.assert(!n||n instanceof Object,"Session.call: <kwargs> must be an object {}"),i.assert(!o||o instanceof Object,"Session.call: <options> must be an object {}");var a=this;if(!a.isOpen)throw"session not open";var s=r(),l=a._defer();a._call_reqs[s]=[l,o];var u=[g.CALL,s,o||{},a.resolve(e)];return t&&(u.push(t),n&&u.push(n)),a._send_wamp(u),l.promise.then?l.promise:l},m.prototype.publish=function(e,t,n,o){i.assert("string"==typeof e,"Session.publish: <topic> must be a string"),i.assert(!t||Array.isArray(t),"Session.publish: <args> must be an array []"),i.assert(!n||n instanceof Object,"Session.publish: <kwargs> must be an object {}"),i.assert(!o||o instanceof Object,"Session.publish: <options> must be an object {}");var a=this;if(!a.isOpen)throw"session not open";var s=o&&o.acknowledge,l=null,u=r();s&&(l=a._defer(),a._publish_reqs[u]=[l,o]);var c=[g.PUBLISH,u,o||{},a.resolve(e)];return t&&(c.push(t),n&&c.push(n)),a._send_wamp(c),l?l.promise.then?l.promise:l:void 0},m.prototype.subscribe=function(e,t,n){i.assert("string"==typeof e,"Session.subscribe: <topic> must be a string"),i.assert("function"==typeof t,"Session.subscribe: <handler> must be a function"),i.assert(!n||n instanceof Object,"Session.subscribe: <options> must be an object {}");var o=this;if(!o.isOpen)throw"session not open";var a=r(),s=o._defer();o._subscribe_reqs[a]=[s,e,t,n];var l=[g.SUBSCRIBE,a];return n?l.push(n):l.push({}),l.push(o.resolve(e)),o._send_wamp(l),s.promise.then?s.promise:s},m.prototype.register=function(e,t,n){i.assert("string"==typeof e,"Session.register: <procedure> must be a string"),i.assert("function"==typeof t,"Session.register: <endpoint> must be a function"),i.assert(!n||n instanceof Object,"Session.register: <options> must be an object {}");var o=this;if(!o.isOpen)throw"session not open";var a=r(),s=o._defer();o._register_reqs[a]=[s,e,t,n];var l=[g.REGISTER,a];return n?l.push(n):l.push({}),l.push(o.resolve(e)),o._send_wamp(l),s.promise.then?s.promise:s},m.prototype.unsubscribe=function(e){i.assert(e instanceof p,"Session.unsubscribe: <subscription> must be an instance of class autobahn.Subscription");var t=this;if(!t.isOpen)throw"session not open";if(!(e.active&&e.id in t._subscriptions))throw"subscription not active";var n=t._subscriptions[e.id],o=n.indexOf(e);if(-1===o)throw"subscription not active";n.splice(o,1),e.active=!1;var a=t._defer();if(n.length)a.resolve(!1);else{var s=r();t._unsubscribe_reqs[s]=[a,e.id];var l=[g.UNSUBSCRIBE,s,e.id];t._send_wamp(l)}return a.promise.then?a.promise:a},m.prototype.unregister=function(e){i.assert(e instanceof d,"Session.unregister: <registration> must be an instance of class autobahn.Registration");var t=this;if(!t.isOpen)throw"session not open";if(!(e.active&&e.id in t._registrations))throw"registration not active";var n=r(),o=t._defer();t._unregister_reqs[n]=[o,e];var a=[g.UNREGISTER,n,e.id];return t._send_wamp(a),o.promise.then?o.promise:o},m.prototype.prefix=function(e,t){i.assert("string"==typeof e,"Session.prefix: <prefix> must be a string"),i.assert(!t||"string"==typeof t,"Session.prefix: <uri> must be a string or falsy");var n=this;t?n._prefixes[e]=t:e in n._prefixes&&delete n._prefixes[e]},m.prototype.resolve=function(e){i.assert("string"==typeof e,"Session.resolve: <curie> must be a string");var t=this,n=e.indexOf(":");if(n>=0){var r=e.substring(0,n);if(r in t._prefixes)return t._prefixes[r]+"."+e.substring(n+1);throw"cannot resolve CURIE prefix '"+r+"'"}return e},t.Session=m,t.Invocation=l,t.Event=u,t.Result=c,t.Error=f,t.Subscription=p,t.Registration=d,t.Publication=h}).call(t,function(){return this}())},function(e,t,n){"use strict";var r=n(45),o=n(344),a=n(349),i=n(198),s=n(348),l=window.btoa||n(343);e.exports=function(e,t,u){var c=u.data,f=u.headers;r.isFormData(c)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(!window.XDomainRequest||"withCredentials"in p||s(u.url)||(p=new window.XDomainRequest),u.auth){var d=u.auth.username||"",h=u.auth.password||"";f.Authorization="Basic "+l(d+":"+h)}if(p.open(u.method.toUpperCase(),o(u.url,u.params,u.paramsSerializer),!0),p.timeout=u.timeout,p.onload=function(){if(p){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r=-1!==["text",""].indexOf(u.responseType||"")?p.responseText:p.response,o={data:i(r,n,u.transformResponse),status:p.status,statusText:p.statusText,headers:n,config:u};(p.status>=200&&p.status<300||!("status"in p)&&p.responseText?e:t)(o),p=null}},r.isStandardBrowserEnv()){var g=n(346),m=u.withCredentials||s(u.url)?g.read(u.xsrfCookieName):void 0;m&&(f[u.xsrfHeaderName]=m)}if("setRequestHeader"in p&&r.forEach(f,function(e,t){"undefined"==typeof c&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)}),u.withCredentials&&(p.withCredentials=!0),u.responseType)try{p.responseType=u.responseType}catch(v){if("json"!==p.responseType)throw v}r.isArrayBuffer(c)&&(c=new DataView(c)),p.send(c)}},function(e,t,n){"use strict";var r=n(45);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n){return(t-e)*n+e}function i(e,t,n){var r=(n-e[0])/(t[0]-e[0]);return[a(e[1],t[1],r),a(e[2],t[2],r),a(e[3],t[3],r),255]}function s(e,t){return[e[t].x,e[t].r,e[t].g,e[t].b]}function l(e,t){return e.x-t.x}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(352),f=r(c),p=n(16),d=r(p),h="LookupTable.change",g=[];for(var m in f["default"].lookuptables)g.push(m);var v=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];o(this,e),this.name=t,this.scalarRange=[0,1],this.delta=1,this.controlPoints=null,this.colorTableSize=256,this.colorTable=null,this.colorNaN=[0,0,0,0],this.setPreset("spectralflip"),this.discrete=n,this.scale=1,this.build()}return u(e,[{key:"getName",value:function(){return this.name}},{key:"getPresets",value:function(){return g}},{key:"setPreset",value:function(e){this.colorTable=null,this.controlPoints=[];for(var t=f["default"].lookuptables[e].controlpoints,n=t.length,r=0;n>r;r++)this.controlPoints.push({x:t[r].x,r:t[r].r,g:t[r].g,b:t[r].b});this.build(),this.emit(h,{change:"preset",lut:this})}},{key:"updateControlPoints",value:function(e){this.colorTable=null,this.controlPoints=[];for(var t=e.length,n=0;t>n;n++)this.controlPoints.push({x:e[n].x,r:e[n].r,g:e[n].g,b:e[n].b});this.build(),this.emit(h,{change:"controlPoints",lut:this})}},{key:"setColorForNaN",value:function(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0],t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],r=arguments.length<=3||void 0===arguments[3]?0:arguments[3];this.colorNaN=[e,t,n,r]}},{key:"getColorForNaN",value:function(){return this.colorNaN}},{key:"getScalarRange",value:function(){return[Number(this.scalarRange[0]),Number(this.scalarRange[1])]}},{key:"setScalarRange",value:function(e,t){this.scalarRange=[e,t],this.delta=t-e,this.emit(h,{change:"scalarRange",lut:this})}},{key:"build",value:function(e){var t=0;if(!this.colorTable){if(this.colorTable=[],this.discrete){this.colorTableSize=this.controlPoints.length,this.scale=50;for(var n=0;n<this.colorTableSize;n++){var r=this.controlPoints[n];this.colorTable.push([r.r,r.g,r.b,255])}}else{this.scale=1;for(var n=0;n<this.colorTableSize;n++){var o=n/(this.colorTableSize-1),a=s(this.controlPoints,t),l=s(this.controlPoints,t+1);o>l[0]&&(t+=1,a=s(this.controlPoints,t),l=s(this.controlPoints,t+1)),this.colorTable.push(i(a,l,o))}}e&&this.emit(h,{change:"controlPoints",lut:this})}}},{key:"setNumberOfColors",value:function(e){this.colorTableSize=e,this.colorTable=null,this.build(),this.emit(h,{change:"numberOfColors",lut:this})}},{key:"getNumberOfControlPoints",value:function(){return this.controlPoints?this.controlPoints.length:0}},{key:"removeControlPoint",value:function(e){return e>0&&e<this.controlPoints.length-1?(this.controlPoints.splice(e,1),this.colorTable=null,this.build(!0),!0):!1}},{key:"getControlPoint",value:function(e){return this.controlPoints[e]}},{key:"updateControlPoint",value:function(e,t){this.controlPoints[e]=t;var n=t.x;this.controlPoints.sort(l),this.colorTable=null,this.build(!0);for(var r=0;r<this.controlPoints.length;r++)if(this.controlPoints[r].x===n)return r;return 0}},{key:"addControlPoint",value:function(e){this.controlPoints.push(e);var t=e.x;this.controlPoints.sort(l),this.colorTable=null,this.build(!0);for(var n=0;n<this.controlPoints.length;n++)if(this.controlPoints[n].x===t)return n;return-1}},{key:"drawToCanvas",value:function(e){for(var t=this.colorTable,n=this.scale*t.length,r=e.getContext("2d"),o=r.getImageData(0,0,n,1),a=0;n>a;a++){var i=Math.floor(a/this.scale);o.data[4*a+0]=Math.floor(255*t[i][0]),o.data[4*a+1]=Math.floor(255*t[i][1]),o.data[4*a+2]=Math.floor(255*t[i][2]),o.data[4*a+3]=255}r.putImageData(o,0,0)}},{key:"getColor",value:function(e){if(isNaN(e))return this.colorNaN;var t=Math.floor(this.colorTableSize*(e-this.scalarRange[0])/this.delta);return 0>t?this.colorTable[0]:t>=this.colorTableSize?this.colorTable[this.colorTable.length-1]:this.colorTable[t]}},{key:"destroy",value:function(){this.off()}},{key:"onChange",value:function(e){return this.on(h,e)}}]),e}();t["default"]=v,d["default"].mixInto(v)},function(e,t){"use strict";function n(e){return 0===e.size?"-1":e.size<4?e.size.toString():"list-1"===e.widget?"1":6===e.size?e.name.toLowerCase().indexOf("bound")?"3x2":e.name.toLowerCase().indexOf("range")?"3x2":(console.log("What is the layout for",e),"2x3"):(console.log("Could not find layout for",e),"NO_LAYOUT")}function r(e){return"proxy"===e.type?"string":e.type}function o(e){if(e.values){if(Array.isArray(e.values)){var t=function(){var t={};return e.values.forEach(function(e){t[e]=e}),{v:t}}();if("object"===("undefined"==typeof t?"undefined":s(t)))return t.v}if("proxy"===e.type){var n={};for(var r in e.values)n[r]=r;return n}return e.values}return e.range?{range:e.range}:{}}function a(e,t){l[t.widget]||console.log("No propType for",t);var a=t.depends?t.depends.split(":"):null,i=a?Boolean(Number(a.pop())):!0,u=a?a.pop():null,c=a?a.join(":"):null,f=[t.name,t.doc].concat(e.value).join(" ").toLowerCase();return{show:function(e){if(c&&void 0!==e.properties[c])return e.properties[c][0]===u?i:!i;if(e.filter&&e.filter.length){var n=function(){var t=e.filter.toLowerCase().split(" "),n=!0;return t.forEach(function(e){n=n&&-1!==f.indexOf(e)}),{v:n}}();if("object"===("undefined"==typeof n?"undefined":s(n)))return n.v}return!!e.advanced||!t.advanced},ui:{propType:l[t.widget]||t.widget,label:t.name,help:t.doc,noEmpty:!0,layout:n(t),type:r(t),domain:o(t),componentLabels:[],size:t.size},data:{id:[e.id,e.name].join(":"),value:[].concat(e.value),size:t.size}}}function i(e){return e.properties.map(function(t,n){return a(t,e.ui[n])})}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.proxyPropToProp=a,t.proxyToProps=i;var l={textfield:"Cell",slider:"Slider","list-n":"Enum","list-1":"Enum",checkbox:"Checkbox",textarea:"Cell"};t["default"]={proxyToProps:i,proxyPropToProp:a}},function(e,t){"use strict";function n(e,t,n){var r;return function(){var o=this,a=arguments,i=function(){r=null,n||e.apply(o,a)},s=n&&!r;clearTimeout(r),r=setTimeout(i,t),s&&e.apply(o,a)}}Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=n,t["default"]={debounce:n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(20),s=r(i),l=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?"image/jpeg":arguments[0],n=arguments.length<=1||void 0===arguments[1]?3:arguments[1];o(this,e),this.format=t,this.padding=n,this.counter=0,this.bgCanvas=null,this.imageToDecode=null}return a(e,[{key:"exportImage",value:function(e){var t=new XMLHttpRequest,n={},r=Number(this.counter++).toString();if(e.canvas&&e.arguments){for(;r.length<this.padding;)r="0"+r;n.arguments=e.arguments,n.image=e.canvas.toDataURL(this.format),n.arguments.__=r,t.open("POST","/export",!0),t.responseType="text",t.setRequestHeader("Content-Type","application/json"),t.onload=function(e){200===t.status},t.onerror=function(t){console.log("error export",e.arguments)},t.send(JSON.stringify(n))}}},{key:"updateMetadata",value:function(e){-1!==e.image.indexOf("blob:")&&(this.bgCanvas||(this.bgCanvas=new s["default"](100,100)),this.imageToDecode||(this.imageToDecode=new Image),this.imageToDecode.src=e.image,this.bgCanvas.size(this.imageToDecode.width,this.imageToDecode.height),this.bgCanvas.get2DContext().drawImage(this.imageToDecode,0,0),e.image=this.bgCanvas.toDataURL("image/png"));var t=new XMLHttpRequest;t.open("POST","/update",!0),t.responseType="text",t.setRequestHeader("Content-Type","application/json"),t.onload=function(e){200===t.status},t.onerror=function(e){console.log("error export",e)},t.send(JSON.stringify(e))}},{key:"extractCanvasRegion",value:function(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?"image/png":arguments[3];return this.bgCanvas||(this.bgCanvas=new s["default"](100,100)),this.bgCanvas.size(n[0],n[1]),this.bgCanvas.get2DContext().drawImage(e,t[0],t[1],t[2],t[3],0,0,n[0],n[1]),this.bgCanvas.toDataURL(r)}}]),e}();t["default"]=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(16),s=r(i),l=function(){function e(){o(this,e)}return a(e,[{key:"destroy",value:function(){this.off()}}]),e}();t["default"]=l,s["default"].mixInto(l)},function(e,t){"use strict";function n(e){return Number.isInteger(parseInt(e,10))}function r(e){return!isNaN(parseFloat(e))}function o(e){return"string"==typeof e||e instanceof String}function a(e){return"boolean"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.integer=n,t["double"]=r,t.string=o,t["boolean"]=a,t["default"]={integer:n,"int":n,"double":r,dbl:r,"float":r,string:o,str:o,"boolean":a,bool:a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(16),s=r(i),l="model.change",u=function(){function e(t){var n=this,r=t.size,a=void 0===r?1:r,i=t.colors,s=void 0===i?["#cccccc"]:i,u=t.lookupTable,c=void 0===u?null:u,f=t.scalars,p=void 0===f?[]:f;for(o(this,e),this.size=a,this.scalars=p,this.lookupTable=c,this.colors=s,c&&!function(){var e=function(e){var t=Math.floor(255*e[0]),n=Math.floor(255*e[1]),r=Math.floor(255*e[2]);return"rgb("+t+","+n+","+r+")"},t=function(t,r){for(var o=0;o<n.size;o++){var a=n.lookupTable.getColor(n.scalars[o]);n.colors[o]=e(a)}r&&n.emit(l,n)};n.lutChangeSubscription=n.lookupTable.onChange(t),t()}(),this.opacities=[];this.opacities.length<this.size;)this.opacities.push(-1);this.updateOpacities=function(e){for(var t=!1,r=0;r<n.size;r++)t=t||n.opacities[r]!==e[r],n.opacities[r]=e[r];t&&n.emit(l,n)},this.resetOpacities=function(){for(var e=1/n.size,t=0,r=!1,o=0;o<n.size;o++)t+=e,r=r||n.opacities[o]!==t,n.opacities[o]=t;r&&n.emit(l,n)},this.resetOpacities()}return a(e,[{key:"getOpacities",value:function(){return this.opacities}},{key:"getColors",value:function(){return this.colors}},{key:"onChange",value:function(e){return this.on(l,e)}},{key:"destroy",value:function(){this.off(),this.lutChangeSubscription.unsubscribe(),this.lutChangeSubscription=null}}]),e}();t["default"]=u,s["default"].mixInto(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(16),s=r(i),l="launcher.process.ready",u="launcher.process.stopped",c="launcher.info.connection",f="launcher.error",p=[],d=function(){function e(t){o(this,e),this.endPoint=t}return a(e,[{key:"start",value:function(e){var t=this,n=new XMLHttpRequest,r=this.endPoint;n.open("POST",r,!0),n.responseType="json",n.onload=function(e){var r=n.response;return 200!==n.status||r.error?void t.emit(f,r):(p.push(r),void t.emit(l,r))},n.onerror=function(e){t.emit(f,n.response)},n.send(JSON.stringify(e))}},{key:"fetchConnection",value:function(e){var t=this,n=new XMLHttpRequest,r=[this.endPoint,e].join("/");n.open("GET",r,!0),n.responseType="json",n.onload=function(e){return 200===t.status?void t.emit(c,n.response):void t.emit(f,n.response)},n.onerror=function(e){t.emit(f,n.response)},n.send()}},{key:"stop",value:function(e){var t=this,n=new XMLHttpRequest,r=[this.endPoint,e.id].join("/");n.open("DELETE",r,!0),n.responseType="json",n.onload=function(e){if(200===t.status){var r=n.response;return void t.emit(u,r)}t.emit(f,n.response)},n.onerror=function(e){t.emit(f,n.response)},n.send()}},{key:"listConnections",value:function(){return p}},{key:"onProcessReady",value:function(e){return this.on(l,e)}},{key:"onProcessStopped",value:function(e){return this.on(u,e)}},{key:"onFetch",value:function(e){return this.on(c,e)}},{key:"onError",value:function(e){return this.on(f,e)}},{key:"destroy",value:function(){this.off(),this.endPoint=null}}]),e}();t["default"]=d,s["default"].mixInto(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){var t=e.indexOf(":"),n=e.substring(0,t); +if("ws"===n||"wss"===n)return{type:"websocket",url:e};if("http"===n||"https"===n)return{type:"longpoll",url:e,request_timeout:3e5};throw"Unknown protocol ("+n+") for url ("+e+"). Unable to create transport object."}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(322),l=r(s),u=n(16),c=r(u),f="connection.ready",p="connection.close",d=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?"vtkweb-secret":arguments[1];o(this,e),this.urls=t,this.secret=n,this.connection=null}return i(e,[{key:"connect",value:function(){for(var e=this,t=[].concat(this.urls),n=[],r=0;r<t.length;r+=1){var o=t[r];try{var i=a(o);n.push(i)}catch(s){console.error(s)}}this.connection=new l["default"].Connection({max_retries:0,transports:n,realm:"vtkweb",authmethods:["wampcra"],authid:"vtkweb",onchallenge:function(t,n,r){if("wampcra"===n){var o=l["default"].auth_cra.derive_key(e.secret,"salt123");return l["default"].auth_cra.sign(o,r.challenge)}throw"don't know how to authenticate using '"+n+"'"}}),this.connection.onopen=function(t,n){e.session=t,e.details=n,e.emit(f,e)},this.connection.onclose=function(){return e.emit(p,e),e.connection=null,!0},this.connection.open()}},{key:"onConnectionReady",value:function(e){return this.on(f,e)}},{key:"onConnectionClose",value:function(e){return this.on(p,e)}},{key:"getSession",value:function(){return this.session}},{key:"destroy",value:function(){var e=arguments.length<=0||void 0===arguments[0]?10:arguments[0];this.off(),this.session&&this.session.call("application.exit.later",[e]),this.connection&&this.connection.close(),this.connection=null}}]),e}();t["default"]=d,c["default"].mixInto(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(16),s=r(i),l="image.ready",u=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?100:arguments[1],r=arguments.length<=2||void 0===arguments[2]?50:arguments[2],a=arguments.length<=3||void 0===arguments[3]?"image/jpeg":arguments[3];o(this,e),this.endpoint=t,this.ws=null,this.textMode=!0,this.metadata=null,this.activeURL=null,this.fps=0,this.mimeType=a,this.lastTime=+new Date,this.view_id=-1,this.stillQuality=n,this.interactiveQuality=r,this.lastImageReadyEvent=null}return a(e,[{key:"enableView",value:function(e){this.ws.send(JSON.stringify({view_id:this.view_id,enabled:e}))}},{key:"startInteractiveQuality",value:function(){this.ws.send(JSON.stringify({view_id:this.view_id,quality:this.interactiveQuality}))}},{key:"stopInteractiveQuality",value:function(){this.ws.send(JSON.stringify({view_id:this.view_id,quality:this.stillQuality}))}},{key:"updateQuality",value:function(){var e=arguments.length<=0||void 0===arguments[0]?100:arguments[0],t=arguments.length<=1||void 0===arguments[1]?50:arguments[1];this.stillQuality=e,this.interactiveQuality=t}},{key:"connect",value:function(e){var t=this,n=e.view_id,r=void 0===n?-1:n,o=e.size,a=void 0===o?[500,500]:o;this.ws||(this.ws=new WebSocket(this.endpoint),this.textMode=!0,this.view_id=r,this.width=a[0],this.height=a[1],this.ws.onopen=function(){t.ws.send(JSON.stringify({view_id:r}))},this.ws.onmessage=function(e){if(t.textMode)t.metadata=JSON.parse(e.data);else{var n=new Blob([e.data],{type:t.mimeType});t.activeURL&&(window.URL.revokeObjectURL(t.activeURL),t.activeURL=null),t.activeURL=URL.createObjectURL(n);var r=+new Date;t.fps=Math.floor(1e4/(r-t.lastTime))/10,t.lastTime=r,t.lastImageReadyEvent={url:t.activeURL,fps:t.fps,metadata:t.metadata},t.emit(l,t.lastImageReadyEvent)}t.textMode=!t.textMode})}},{key:"destroy",value:function(){this.off(),this.ws&&(this.ws.close(),this.ws=null)}},{key:"onImageReady",value:function(e){return this.on(l,e)}},{key:"getLastImageReadyEvent",value:function(){return this.lastImageReadyEvent}}]),e}();t["default"]=u,s["default"].mixInto(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(16),s=r(i),l={NONE:0,ALT:1,META:2,SHIFT:4,CTRL:8},u="vtk.web.interaction",c=function(){function e(t){var n=this,r=arguments.length<=1||void 0===arguments[1]?100:arguments[1],a=arguments.length<=2||void 0===arguments[2]?100:arguments[2];o(this,e),this.client=t,this.width=r,this.height=a,this.listeners={drag:function(e){var t={view:-1,buttonLeft:!e.isFinal,buttonMiddle:!1,buttonRight:!1,shiftKey:e.modifier&l.SHIFT,ctrlKey:e.modifier&l.CTRL,altKey:e.modifier&l.ALT,metaKey:e.modifier&l.META,x:e.relative.x/n.width,y:1-e.relative.y/n.height};e.isFirst?t.action="down":e.isFinal?t.action="up":t.action="move",n.emit(u,"up"!==t.action),n.client&&n.client.MouseHandler.interaction(t)},zoom:function(e){var t={view:-1,buttonLeft:!1,buttonMiddle:!1,buttonRight:!e.isFinal,shiftKey:!1,ctrlKey:!1,altKey:!1,metaKey:!1,x:e.relative.x/n.width,y:1-(e.relative.y+e.deltaY)/n.height};e.isFirst?t.action="down":e.isFinal?t.action="up":t.action="move",n.emit(u,"up"!==t.action),n.client&&n.client.MouseHandler.interaction(t)}}}return a(e,[{key:"getListeners",value:function(){return this.listeners}},{key:"updateSize",value:function(e,t){this.width=e,this.height=t}},{key:"onInteraction",value:function(e){return this.on(u,e)}},{key:"destroy",value:function(){this.client=null,this.listeners=null}}]),e}();t["default"]=c,s["default"].mixInto(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(73),s=r(i),l=n(46),u=function(){function e(t,n){var r=this,a=arguments.length<=2||void 0===arguments[2]?null:arguments[2],i=arguments.length<=3||void 0===arguments[3]?!0:arguments[3];o(this,e),this.size=(0,l.getSize)(t),this.container=t,this.canvas=document.createElement("canvas"),this.image=new Image,this.fps="",this.drawFPS=i,this.subscriptions=[],this.imageProvider=n,this.image.onload=function(){r.ctx.drawImage(r.image,0,0),r.drawFPS&&(r.ctx.textBaseline="top",r.ctx.textAlign="left",r.ctx.fillText(r.fps,5,5))},this.container.appendChild(this.canvas),this.ctx=this.canvas.getContext("2d"),this.ctx.font="30px Arial",a&&(this.mouseHandler=new s["default"](this.canvas),this.mouseHandler.attach(a)),this.subscriptions.push(n.onImageReady(function(e,t){r.image.src=e.url,r.fps=e.fps+" fps"})),this.subscriptions.push((0,l.onSizeChange)(function(){r.size=(0,l.getSize)(t),r.canvas.setAttribute("width",r.size.clientWidth),r.canvas.setAttribute("height",r.size.clientHeight)})),(0,l.startListening)()}return a(e,[{key:"destroy",value:function(){for(;this.subscriptions.length;)this.subscriptions.pop().unsubscribe();this.mouseHandler&&(this.mouseHandler.destroy(),this.mouseHandler=null),this.container=null,this.imageProvider=null}}]),e}();t["default"]=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),a=r(o),i=n(406),s=r(i),l=n(104),u=r(l),c=n(3),f=r(c),p=n(315),d=r(p);t["default"]=f["default"].createClass({displayName:"FloatImageControl",propTypes:{model:f["default"].PropTypes.object.isRequired},getInitialState:function(){return this.attachListener(this.props.model),{change:!1,x:this.props.model.dimensions[0]/2,y:this.props.model.dimensions[1]/2}},componentWillReceiveProps:function(e){var t=this.props.model,n=e.model;t!==n&&(this.detachListener(),this.attachListener(n),this.setState({change:!this.state.change}))},attachListener:function(e){var t=this;this.changeSubscription=e.onProbeChange(function(e,n){t.forceUpdate()})},detachListener:function(){this.changeSubscription&&(this.changeSubscription.unsubscribe(),this.changeSubscription=null)},updateLight:function(e){this.props.model.setLight(255-e.target.value),this.setState({change:!this.state.change})},onProbeChange:function(e){var t=e.target.name,n=Number(e.target.value),r={x:this.state.x,y:this.state.y};r[t]=n,this.setState(r),this.props.model.getTimeChart(r.x,r.y)},toggleProbe:function(e){this.props.model.getTimeProbe().enabled=!!e,this.props.model.getTimeProbe().enabled&&this.props.model.getTimeChart(),this.setState({change:!this.state.change}),this.props.model.getTimeProbe().triggerChange(),this.props.model.render()},render:function(){var e=this.props.model,t=e.getTimeProbe(),n=e.dimensions[0],r=e.dimensions[1];return f["default"].createElement("div",{className:d["default"].container},f["default"].createElement(a["default"],{title:"Scene"},e.getLayers().map(function(t,n){return f["default"].createElement(s["default"],{key:n,item:t,model:e})}),f["default"].createElement("div",{className:d["default"].item},f["default"].createElement("div",{className:d["default"].label},"Light"),f["default"].createElement("div",{className:d["default"].actions},f["default"].createElement("input",{className:d["default"].lightSlider,type:"range",min:"0",max:"128",value:255-e.getLight(),onChange:this.updateLight})))),f["default"].createElement(a["default"],{title:"Time probe",open:t.enabled,subtitle:t.enabled?t.value:"",visible:e.isMultiView(),onChange:this.toggleProbe},f["default"].createElement("div",{className:d["default"].item},f["default"].createElement("div",{className:d["default"].label},"X"),f["default"].createElement("div",{className:d["default"].actions},f["default"].createElement(u["default"],{step:1,min:0,max:n,key:"x",value:this.state.x,name:"x",onChange:this.onProbeChange}))),f["default"].createElement("div",{className:d["default"].item},f["default"].createElement("div",{className:d["default"].label},"Y"),f["default"].createElement("div",{className:d["default"].actions},f["default"].createElement(u["default"],{step:1,min:0,max:r,key:"y",value:this.state.y,name:"y",onChange:this.onProbeChange})))))}})},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),a=r(o),i=n(229),s=r(i),l=n(54),u=r(l),c=n(139),f=r(c),p=n(3),d=r(p),h=n(801),g=r(h);t["default"]=d["default"].createClass({displayName:"LightControl",propTypes:{light:d["default"].PropTypes.object.isRequired},getInitialState:function(){return this.props.light.getLightProperties().lightTerms},onLightTermsChange:function(t,n){var r=this,o={};o[n]=t,this.setState(o),e(function(){r.props.light.setLightProperties({lightTerms:o})})},onLightPositionChange:function(e){this.props.light.setLightProperties({lightPosition:e})},toggleLight:function(e){this.props.light.setLightingEnabled(e)},render:function(){var e=d["default"].createElement(u["default"],{key:"enable-light-button",onChange:this.toggleLight,value:this.props.light.getLightingEnabled()});return d["default"].createElement(a["default"],{title:"Light Properties",subtitle:e},d["default"].createElement("section",{className:g["default"].container},d["default"].createElement(s["default"],{onChange:this.onLightPositionChange,width:114,height:114,hideXY:!0}),d["default"].createElement("section",{className:g["default"].controls},d["default"].createElement("div",{className:g["default"].inputRow},d["default"].createElement("label",null,"Ambient"),d["default"].createElement(f["default"],{className:g["default"].property,step:.05,min:0,max:1,key:"ka",value:this.state.ka,name:"ka",onChange:this.onLightTermsChange})),d["default"].createElement("div",{className:g["default"].inputRow},d["default"].createElement("label",null,"Diffuse"),d["default"].createElement(f["default"],{className:g["default"].property,step:.05,min:0,max:1,key:"kd",value:this.state.kd,name:"kd",onChange:this.onLightTermsChange})),d["default"].createElement("div",{className:g["default"].inputRow},d["default"].createElement("label",null,"Specular"),d["default"].createElement(f["default"],{className:g["default"].property,step:.05,min:0,max:1,key:"ks",value:this.state.ks,name:"ks",onChange:this.onLightTermsChange})),d["default"].createElement("div",{className:g["default"].inputRow},d["default"].createElement("label",null,"Alpha"),d["default"].createElement(f["default"],{className:g["default"].property,step:1,min:0,max:100,key:"alpha",value:this.state.alpha,name:"alpha",onChange:this.onLightTermsChange})))))}})}).call(t,n(87).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),a=r(o),i=n(231),s=r(i),l=n(3),u=r(l);t["default"]=u["default"].createClass({displayName:"MultiViewControl",propTypes:{renderer:u["default"].PropTypes.object},getInitialState:function(){return{renderMethod:"",layout:""}},componentWillReceiveProps:function(e){if(!this.props.renderer&&e.renderer){var t=e.renderer;this.layoutSubscription=t.onLayoutChange(this.onLayoutChangeCallback),this.renderMethodSubscription=t.onActiveViewportChange(this.onActiveViewportCallback),this.setState({renderMethod:t.getActiveRenderMethod(),layout:t.getActiveLayout()})}},componentWillUnmount:function(){this.layoutSubscription&&(this.layoutSubscription.unsubscribe(),this.layoutSubscription=null),this.renderMethodSubscription&&(this.renderMethodSubscription.unsubscribe(),this.renderMethodSubscription=null)},onLayoutChange:function(e){this.props.renderer.setLayout(e)},onRenderMethodChange:function(e){var t=e.target.value;this.props.renderer.setRenderMethod(t)},onLayoutChangeCallback:function(e,t){this.setState({layout:e})},onActiveViewportCallback:function(e,t){this.setState({renderMethod:e.name})},render:function(){var e=this.props.renderer,t=[];return e&&e.getRenderMethods().map(function(e){t.push(u["default"].createElement("option",{key:e,value:e},e))}),u["default"].createElement("div",null,u["default"].createElement(a["default"],{title:"Layout"},u["default"].createElement(s["default"],{onChange:this.onLayoutChange})),u["default"].createElement(a["default"],{title:"Viewport"},u["default"].createElement("select",{style:{width:"100%"},ref:"select",value:this.state.renderMethod,onChange:this.onRenderMethodChange},t)))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),a=r(o),i=n(3),s=r(i),l=n(235),u=r(l);t["default"]=s["default"].createClass({displayName:"PixelOperatorControl",propTypes:{operator:s["default"].PropTypes.object.isRequired},getInitialState:function(){return{operation:this.props.operator.getOperation()}},componentWillReceiveProps:function(e){this.state.operation!==e.operator.getOperation()&&this.setState({operation:e.operator.getOperation()})},updateOperation:function(e){this.setState({operation:e}),this.props.operator.setOperation(e)},render:function(){return s["default"].createElement(a["default"],{title:"Pixel Operation"},s["default"].createElement(u["default"],{value:this.state.operation,onChange:this.updateOperation}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),a=r(o),i=n(105),s=r(i),l=n(106),u=r(l),c=n(54),f=r(c),p=n(140),d=r(p),h=n(3),g=r(h),m=n(802),v=r(m);t["default"]=g["default"].createClass({displayName:"QueryDataModelControl",propTypes:{handleExploration:g["default"].PropTypes.bool,model:g["default"].PropTypes.object},mixins:[s["default"],u["default"]],getDefaultProps:function(){return{handleExploration:!1}},toggleExploration:function(e){this.props.model.exploreQuery(e,!0,!this.props.handleExploration)},render:function(){var e=g["default"].createElement(f["default"],{key:"explore-button",icon:v["default"].exploreIcon,onChange:this.toggleExploration,value:this.props.model.exploreState.animate});return g["default"].createElement(a["default"],{title:"Parameters",key:"QueryDataModelWidget_parent",visible:this.props.model.originalData.arguments_order.length>0,subtitle:e},g["default"].createElement(d["default"],{key:"QueryDataModelWidget",ref:"QueryDataModelWidget",model:this.props.model}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),a=r(o),i=n(138),s=r(i),l=n(54),u=r(l),c=n(103),f=r(c),p=n(3),d=r(p),h=n(803),g=r(h);t["default"]=d["default"].createClass({displayName:"VolumeControl",propTypes:{computation:d["default"].PropTypes.object.isRequired,equalizer:d["default"].PropTypes.object.isRequired,intensity:d["default"].PropTypes.object,lookupTable:d["default"].PropTypes.object.isRequired},componentWillMount:function(){var e=this;this.equalizerSubscription=this.props.equalizer.onChange(function(){e.forceUpdate()}),this.intensitySubscription=this.props.intensity.onChange(function(){e.forceUpdate()}),this.computationSubscription=this.props.intensity.onChange(function(){e.forceUpdate()})},componentWillUnmount:function(){this.equalizerSubscription&&(this.equalizerSubscription.unsubscribe(),this.equalizerSubscription=null),this.intensitySubscription&&(this.intensitySubscription.unsubscribe(),this.intensitySubscription=null),this.computationSubscription&&(this.computationSubscription.unsubscribe(),this.computationSubscription=null)},render:function(){var e=this.props.equalizer,t=this.props.lookupTable,n=d["default"].createElement(u["default"],{key:"toggle-intensity",onChange:this.props.intensity.toggleState,value:this.props.intensity.getState()}),r=d["default"].createElement(u["default"],{key:"reset",icon:g["default"].undoIcon,toggle:!1,onChange:this.props.equalizer.resetOpacities,value:!0}),o=d["default"].createElement(u["default"],{key:"toggle-gpu",icon:g["default"].mobileIcon,onChange:this.props.computation.toggleState,value:!this.props.computation.getState()});return d["default"].createElement("div",null,d["default"].createElement(a["default"],{title:"LookupTable",key:"LookupTableWidget_parent",subtitle:n},d["default"].createElement(f["default"],{key:"LookupTableWidget",ref:"LookupTableWidget",originalRange:t.originalRange,lookupTable:t.lookupTable,lookupTableManager:t.lookupTableManager})),d["default"].createElement(a["default"],{title:"Opacity Control",subtitle:[o,r]},d["default"].createElement(s["default"],{ref:"EqualizerWidget",key:"Equalizer",layers:e.getOpacities(),onChange:e.updateOpacities,colors:e.getColors(),spacing:5})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(102),a=r(o),i=n(409),s=r(i),l=n(3),u=r(l),c=n(54),f=r(c),p=n(86),d=r(p);t["default"]=u["default"].createClass({displayName:"CellProperty",propTypes:{data:u["default"].PropTypes.object.isRequired,help:u["default"].PropTypes.string,onChange:u["default"].PropTypes.func,show:u["default"].PropTypes.func,ui:u["default"].PropTypes.object.isRequired,viewData:u["default"].PropTypes.object},mixins:[a["default"]],valueChange:function(e,t){var n=this.state.data;null===t?n.value.splice(e,1):n.value[e]=t,this.setState({data:n}),this.props.onChange&&this.props.onChange(n)},addValue:function(){var e=this.state.data,t=e.value;switch(t.length){case 0:t.push(0);break;case 1:t.push(t[0]);break;default:var n=Number(t[t.length-1]),r=Number(t[t.length-2]),o=n+(n-r);!Number.isNaN(o)&&Number.isFinite(o)?t.push(o):t.push(t[t.length-1])}this.setState({data:e}),this.props.onChange&&this.props.onChange(e)},render:function(){return u["default"].createElement("div",{className:this.props.show(this.props.viewData)?d["default"].container:d["default"].hidden},u["default"].createElement("div",{className:d["default"].header},u["default"].createElement("strong",null,this.props.ui.label),u["default"].createElement("span",null,u["default"].createElement("i",{className:"-1"===this.props.ui.layout?d["default"].plusIcon:d["default"].hidden,onClick:this.addValue}),u["default"].createElement(f["default"],{icon:d["default"].helpIcon,value:this.state.helpOpen,toggle:!!this.props.ui.help,onChange:this.helpToggled}))),u["default"].createElement("div",{className:d["default"].inputBlock},u["default"].createElement("table",{className:d["default"].inputTable},(0,s["default"])(this.props.data,this.props.ui,this.valueChange))),u["default"].createElement("div",{className:this.state.helpOpen?d["default"].helpBox:d["default"].hidden,dangerouslySetInnerHTML:{__html:this.props.ui.help}}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(102),a=r(o),i=n(410),s=r(i),l=n(3),u=r(l),c=n(54),f=r(c),p=n(86),d=r(p);t["default"]=u["default"].createClass({displayName:"CheckboxProperty",propTypes:{data:u["default"].PropTypes.object.isRequired,help:u["default"].PropTypes.string,name:u["default"].PropTypes.string,onChange:u["default"].PropTypes.func,show:u["default"].PropTypes.func,ui:u["default"].PropTypes.object.isRequired,viewData:u["default"].PropTypes.object},mixins:[a["default"]],valueChange:function(e,t){var n=this.state.data;null===e?n.value=t:n.value[e]=t,this.setState({data:n}),this.props.onChange&&this.props.onChange(n)},render:function(){var e=this,t=function(){if(Array.isArray(e.props.data.value)){for(var t=[],n=0;n<e.props.data.value.length;n++)t.push(u["default"].createElement(s["default"],{value:!!e.props.data.value[n],label:e.props.ui.componentLabels[n],key:e.props.data.id+"_"+n,onChange:e.valueChange}));return t}return u["default"].createElement(s["default"],{value:!!e.props.data.value,label:e.props.ui.componentLabels[0],onChange:e.valueChange})};return u["default"].createElement("div",{className:this.props.show(this.props.viewData)?d["default"].container:d["default"].hidden},u["default"].createElement("div",{className:d["default"].header},u["default"].createElement("strong",null,this.props.ui.label),u["default"].createElement("span",null,u["default"].createElement(f["default"],{icon:d["default"].helpIcon,value:this.state.helpOpen,toggle:!!this.props.ui.help,onChange:this.helpToggled}))),u["default"].createElement("div",{className:d["default"].inputBlock},t()),u["default"].createElement("div",{className:this.state.helpOpen?d["default"].helpBox:d["default"].hidden,dangerouslySetInnerHTML:{__html:this.props.ui.help}}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(131),s=r(i),l=n(102),u=r(l),c=n(54),f=r(c),p=n(86),d=r(p),h=n(805),g=r(h);t["default"]=a["default"].createClass({displayName:"EnumProperty",propTypes:{data:a["default"].PropTypes.object.isRequired,help:a["default"].PropTypes.string,name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,show:a["default"].PropTypes.func,ui:a["default"].PropTypes.object.isRequired,viewData:a["default"].PropTypes.object},mixins:[u["default"]],valueChange:function(e){var t=this.state.data;if(Array.isArray(this.state.data.value)){for(var n=[],r=0;r<e.target.options.length;r++){var o=e.target.options.item(r);o.selected&&n.push(o.value)}t.value=n.map(s["default"][this.props.ui.type])}else null===e.target.value?t.value=null:t.value=[s["default"][this.props.ui.type](e.target.value)];this.setState({data:t}),this.props.onChange&&this.props.onChange(t)},render:function(){var e=this,t=-1===this.props.ui.size,n=function(){var n=[];t||e.props.ui.noEmpty||n.push(a["default"].createElement("option",{key:"empty-value",value:null}));for(var r in e.props.ui.domain)n.push(a["default"].createElement("option",{value:e.props.ui.domain[r],key:e.props.data.id+"_"+r},r));return n};return a["default"].createElement("div",{className:this.props.show(this.props.viewData)?d["default"].container:d["default"].hidden},a["default"].createElement("div",{className:d["default"].header},a["default"].createElement("strong",null,this.props.ui.label),a["default"].createElement("span",null,a["default"].createElement(f["default"],{icon:d["default"].helpIcon,value:this.state.helpOpen,toggle:!!this.props.ui.help,onChange:this.helpToggled}))),a["default"].createElement("div",{className:d["default"].inputBlock},a["default"].createElement("select",{className:t?g["default"].inputMultiSelect:g["default"].input,value:t?this.props.data.value:this.props.data.value[0],defaultValue:null,onChange:this.valueChange,multiple:t},n())),a["default"].createElement("div",{className:this.state.helpOpen?d["default"].helpBox:d["default"].hidden,dangerouslySetInnerHTML:{__html:this.props.ui.help}}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(102),a=r(o),i=n(3),s=r(i),l=n(412),u=r(l),c=n(54),f=r(c),p=n(86),d=r(p);t["default"]=s["default"].createClass({displayName:"SliderProperty",propTypes:{data:s["default"].PropTypes.object.isRequired,help:s["default"].PropTypes.string,name:s["default"].PropTypes.string,onChange:s["default"].PropTypes.func,show:s["default"].PropTypes.func,ui:s["default"].PropTypes.object.isRequired,viewData:s["default"].PropTypes.object},mixins:[a["default"]],valueChange:function(e,t){var n=this.state.data;null===e?n.value=t:n.value[e]=t,this.setState({data:n}),this.props.onChange&&this.props.onChange(n)},render:function(){var e=this,t=function(){if(Array.isArray(e.props.data.value)){for(var t=[],n=0;n<e.props.data.value.length;n++){var r=e.props.ui.type&&"double"===e.props.ui.type.toLowerCase()?.1:1;t.push(s["default"].createElement(u["default"],{value:e.props.data.value[n],min:e.props.ui.domain.min,max:e.props.ui.domain.max,step:r,idx:n,onChange:e.valueChange,key:e.props.data.id+"_"+n}))}return t}var o=e.props.ui.type&&"double"===e.props.ui.type.toLowerCase()?.1:1;return s["default"].createElement(u["default"],{value:e.props.data.value,min:e.props.ui.domain.min,max:e.props.ui.domain.max,step:o,onChange:e.valueChange})};return s["default"].createElement("div",{className:this.props.show(this.props.viewData)?d["default"].container:d["default"].hidden},s["default"].createElement("div",{className:d["default"].header},s["default"].createElement("strong",null,this.props.ui.label),s["default"].createElement("span",null,s["default"].createElement(f["default"],{icon:d["default"].helpIcon,value:this.state.helpOpen,toggle:!!this.props.ui.help,onChange:this.helpToggled}))),s["default"].createElement("div",{className:d["default"].inputBlock},t()),s["default"].createElement("div",{className:this.state.helpOpen?d["default"].helpBox:d["default"].hidden,dangerouslySetInnerHTML:{__html:this.props.ui.help}}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(25),s=r(i),l=n(46),u=r(l);t["default"]=a["default"].createClass({displayName:"GeometryRenderer",propTypes:{geometryBuilder:a["default"].PropTypes.object},getDefaultProps:function(){return{}},getInitialState:function(){return{width:200,height:200}},componentWillMount:function(){this.sizeSubscription=u["default"].onSizeChange(this.updateDimensions),u["default"].startListening()},componentDidMount:function(){this.props.geometryBuilder&&(this.props.geometryBuilder.configureRenderer(s["default"].findDOMNode(this.refs.canvasRenderer)),this.props.geometryBuilder.render()),this.updateDimensions()},componentDidUpdate:function(e,t){this.updateDimensions()},componentWillUnmount:function(){this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},updateDimensions:function(){var e=s["default"].findDOMNode(this).parentNode,t=u["default"].getSize(e);return!e||this.state.width===t.clientWidth&&this.state.height===t.clientHeight?!1:(this.setState({width:t.clientWidth,height:t.clientHeight}),this.props.geometryBuilder&&this.props.geometryBuilder.updateSize(innerWidth,innerHeight),!0)},resetCamera:function(){this.props.geometryBuilder&&this.props.geometryBuilder.resetCamera()},render:function(){return a["default"].createElement("canvas",{className:"CanvasImageRenderer",ref:"canvasRenderer",width:this.state.width,height:this.state.height})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=this;e.drawToCanvas&&(e.firstRender?(e.firstRender=!1,e.component.resetCamera()):e.drawToCanvas())}function a(){var e=this,t=this.component,n=c["default"].findDOMNode(t.refs.canvasRenderer),r=n.getContext("2d"),o=t.state.width,a=t.state.height,i=e?e.width:500,s=e?e.height:500,l=t.zoom,u=t.center;r.clearRect(0,0,o,a);var f=Math.floor(i*l),p=Math.floor(s*l),d=o*u[0]-f/2,h=a*u[1]-p/2;e.activeArea=[d,h,f,p];try{r.drawImage(e,0,0,i,s,d,h,f,p)}catch(g){console.log("Error in ImageRenderer::drawToCanvasAsImage",g)}}function i(){var e=this,t=this.data,n=this.component,r=c["default"].findDOMNode(n.refs.canvasRenderer),o=r.getContext("2d"),a=n.state.width,i=n.state.height,s=t.outputSize[0],l=t.outputSize[1],u=n.zoom,f=n.center;o.clearRect(0,0,a,i);var p=Math.floor(s*u),d=Math.floor(l*u),h=a*f[0]-p/2,g=i*f[1]-d/2;try{o.drawImage(t.canvas,t.area[0],t.area[1],t.area[2],t.area[3],h,g,p,d),e.activeArea=[h,g,p,d];var m=[p/t.area[2],d/t.area[3]],v=[h,g];t.crosshair&&(o.beginPath(),o.moveTo(v[0]+m[0]*t.crosshair[0],0),o.lineTo(v[0]+m[0]*t.crosshair[0],i),o.moveTo(0,v[1]+m[1]*t.crosshair[1]),o.lineTo(a,v[1]+m[1]*t.crosshair[1]),o.strokeStyle=n.props.crosshairColor,o.lineWidth=1,o.stroke())}catch(_){console.log("Error in ImageRenderer::drawToCanvasAsBuffer",_)}}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),l=r(s),u=n(25),c=r(u),f=n(228),p=r(f),d=n(202),h=r(d),g=n(46),m=r(g),v=n(73),_=r(v),y=n(807),b=r(y);t["default"]=l["default"].createClass({displayName:"ImageRenderer",propTypes:{crosshairColor:l["default"].PropTypes.string,imageBuilder:l["default"].PropTypes.object,listener:l["default"].PropTypes.object,maxZoom:l["default"].PropTypes.number,minZoom:l["default"].PropTypes.number,modifiers:l["default"].PropTypes.array,pressRadius:l["default"].PropTypes.number},getDefaultProps:function(){return{minZoom:.1,maxZoom:10,crosshairColor:"#000",modifiers:[0,2],pressRadius:50}},getInitialState:function(){var e=this.props.imageBuilder?this.props.imageBuilder.queryDataModel.originalData.metadata||{}:{},t=e.title||"No title",n=e.description||"No description";return{width:200,height:200,dialog:!1,title:t,description:n}},componentWillMount:function(){var e=this;this.imageToDraw=new Image,this.props.imageBuilder&&(this.imageBuilderSubscription=this.props.imageBuilder.onImageReady(function(t,n){t.url?e.renderImage(t):e.renderCanvas(t)})),this.zoom=1,this.baseZoom=1,this.center=[.5,.5],this.baseCenter=[.5,.5],this.imageToDraw.component=this,this.imageToDraw.onload=o,this.imageToDraw.firstRender=!0,this.sizeSubscription=m["default"].onSizeChange(this.updateDimensions),m["default"].startListening(),document.addEventListener("keydown",this.handleKeyDown),this.sendToServer=!1,this.imageExporter=new h["default"]},componentDidMount:function(){var e=this;this.updateDimensions(),this.imageToDraw.drawToCanvas&&this.imageToDraw.drawToCanvas(),this.mouseHandler=new _["default"](c["default"].findDOMNode(this.refs.canvasRenderer)), +this.props.modifiers&&this.mouseHandler.toggleModifierOnPress(!0,this.props.modifiers),this.mouseHandler.attach({drag:this.dragCallback,zoom:this.zoomCallback,click:this.clickCallback}),this.mouseHandler.on("modifier.change",function(t,n){var r=e.imageToDraw,o=c["default"].findDOMNode(e.refs.canvasRenderer).getContext("2d");o.beginPath(),o.fillStyle="#ffffff",o.lineWidth=5,o.strokeStyle="#000000",o.arc(t.event.relative.x,t.event.relative.y,e.props.pressRadius,0,2*Math.PI,!1),o.fill(),o.stroke(),setTimeout(function(){r.drawToCanvas()},300)})},componentDidUpdate:function(e,t){this.updateDimensions(),this.imageToDraw.drawToCanvas&&this.imageToDraw.drawToCanvas()},componentWillUnmount:function(){document.removeEventListener("keydown",this.handleKeyDown),this.imageBuilderSubscription&&(this.imageBuilderSubscription.unsubscribe(),this.imageBuilderSubscription=null),this.imageToDraw.onload=null,this.imageToDraw.drawToCanvas=null,this.imageToDraw.component=null,this.imageToDraw.data=null,this.imageToDraw=null,this.mouseHandler.destroy(),this.mouseHandler=null,this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},updateDimensions:function(){var e=c["default"].findDOMNode(this).parentNode,t=m["default"].getSize(e);return!e||this.state.width===t.clientWidth&&this.state.height===t.clientHeight?!1:(this.setState({width:t.clientWidth,height:t.clientHeight}),!0)},zoomCallback:function(e,t){var n=!1;if(e.activeArea=this.imageToDraw.activeArea,this.props.listener&&this.props.listener.zoom&&(n=this.props.listener.zoom(e,t)),!n){e.isFirst&&(this.baseZoom=this.zoom);var r=this.baseZoom*e.scale;if(r<this.props.minZoom&&(r=this.props.minZoom),r>this.props.maxZoom&&(r=this.props.maxZoom),this.zoom!==r){var o=this.center[0],a=this.center[1],i=r/this.zoom,s=e.relative.x/this.state.width,l=e.relative.y/this.state.height;this.zoom=r,this.center[0]=s+i*(o-s),this.center[1]=l+i*(a-l),this.imageToDraw.drawToCanvas&&this.imageToDraw.drawToCanvas()}e.isFinal&&(this.baseZoom=this.zoom)}this.baseCenter=[this.center[0],this.center[1]]},dragCallback:function(e,t){var n=!1;if(e.activeArea=this.imageToDraw.activeArea,this.baseZoom=this.zoom,this.props.listener&&this.props.listener.drag&&(n=this.props.listener.drag(e,t)),!n){e.isFirst&&(this.baseCenter=[this.center[0],this.center[1]]);var r=e.deltaX/this.state.width,o=e.deltaY/this.state.height;this.center[0]=this.baseCenter[0]+r,this.center[1]=this.baseCenter[1]+o,e.isFinal&&(this.baseCenter=[this.center[0],this.center[1]]),this.imageToDraw.drawToCanvas&&this.imageToDraw.drawToCanvas()}},clickCallback:function(e,t){e.activeArea=this.imageToDraw.activeArea,this.props.listener&&this.props.listener.click&&this.props.listener.click(e,t)},renderImage:function(e){this.imageToDraw.drawToCanvas=a,this.imageToDraw.src=e.url},renderCanvas:function(e){this.imageToDraw.drawToCanvas=i,this.imageToDraw.data=e,this.imageToDraw.width=e.outputSize[0],this.imageToDraw.height=e.outputSize[1],this.sendToServer&&this.imageExporter.exportImage(e),this.imageToDraw.firstRender?(this.imageToDraw.firstRender=!1,this.resetCamera()):this.imageToDraw.drawToCanvas()},resetCamera:function(){var e=this.state.width,t=this.state.height,n=this.imageToDraw,r=n?n.width:500,o=n?n.height:500;this.zoom=Math.min(e/r,t/o),this.baseZoom=Math.min(e/r,t/o),this.baseCenter=[.5,.5],this.center=[.5,.5],n.drawToCanvas()},recordImages:function(e){this.sendToServer=e},handleKeyDown:function(e){if(82===e.keyCode)this.resetCamera();else if(85===e.keyCode&&!this.state.dialog){var t=c["default"].findDOMNode(this.refs.thumbnail);"CANVAS"===this.imageToDraw.data.canvas.nodeName?this.imageToDraw.data.canvas.width===this.imageToDraw.data.area[2]&&this.imageToDraw.data.canvas.height===this.imageToDraw.data.area[3]?t.src=this.imageToDraw.data.canvas.toDataURL("image/png"):t.src=this.imageExporter.extractCanvasRegion(this.imageToDraw.data.canvas,this.imageToDraw.data.area,this.imageToDraw.data.outputSize):t.src=this.imageToDraw.data.canvas.src,this.setState({dialog:!this.state.dialog})}},updateTitle:function(e){var t=e.target.value;this.setState({title:t})},updateDescription:function(e){var t=e.target.value;this.setState({description:t})},toggleDialog:function(){this.setState({dialog:!this.state.dialog})},updateMetadata:function(){this.setState({dialog:!this.state.dialog}),this.imageExporter.updateMetadata({title:this.state.title,description:this.state.description,image:c["default"].findDOMNode(this.refs.thumbnail).src,path:this.props.imageBuilder.queryDataModel.basepath})},render:function(){return l["default"].createElement("div",{className:b["default"].container},l["default"].createElement("canvas",{className:b["default"].renderer,ref:"canvasRenderer",width:this.state.width,height:this.state.height}),l["default"].createElement("div",{className:this.state.dialog?b["default"].dialog:b["default"].hidden},l["default"].createElement("div",{className:b["default"].inside},l["default"].createElement("img",{ref:"thumbnail",className:b["default"].thumbnail,height:Math.floor(this.state.height/2)}),l["default"].createElement("div",{className:b["default"].metadata,style:{height:Math.floor(this.state.height/2)+"px"}},l["default"].createElement("strong",{className:b["default"].title},l["default"].createElement(p["default"],{html:this.state.title,onChange:this.updateTitle})),l["default"].createElement("div",{className:b["default"].description},l["default"].createElement(p["default"],{html:this.state.description,onChange:this.updateDescription}))),l["default"].createElement("div",{className:b["default"].buttons},l["default"].createElement("button",{className:b["default"].button,onClick:this.toggleDialog},"Cancel"),l["default"].createElement("button",{className:b["default"].button,onClick:this.updateMetadata},"Save")))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(25),s=r(i),l=n(16),u=r(l),c=n(414),f=r(c),p=n(46),d=r(p),h=n(73),g=r(h),m=Object.keys(f["default"]),v="multiview-viewport-active-change",_="multiview-layout-change",y=a["default"].createClass({displayName:"MultiViewRenderer",propTypes:{activeColor:a["default"].PropTypes.string,borderColor:a["default"].PropTypes.string,crosshairColor:a["default"].PropTypes.string,layout:a["default"].PropTypes.string,renderers:a["default"].PropTypes.object,spacing:a["default"].PropTypes.number},getDefaultProps:function(){return{spacing:10,borderColor:"#000000",activeColor:"#0000FF",crosshairColor:"#000000",renderers:{}}},getInitialState:function(){return{width:200,height:200}},componentWillMount:function(){function e(e,n){this.dataToDraw=e,t(this.name)}var t=this.drawViewportByName;this.dragCenter=!1,this.dragInViewport=null,this.center=[.5,.5],this.layout=this.props.layout||"3xT",this.viewports=[];for(var n in this.props.renderers){var r=this.props.renderers[n],o=r.builder,a=r.painter;o&&o.onImageReady(e).context(r),a&&a.onPainterReady(e).context(r),this.viewports.push({name:n,active:!1})}this.sizeSubscription=d["default"].onSizeChange(this.updateDimensions),d["default"].startListening()},componentDidMount:function(){this.updateDimensions(),this.mouseHandler=new g["default"](s["default"].findDOMNode(this.refs.canvasRenderer)),this.mouseHandler.attach({drag:this.dragCallback,click:this.clickCallback,zoom:this.zoomCallback})},componentDidUpdate:function(e,t){this.drawLayout()},componentWillUnmount:function(){this.off(),this.mouseHandler&&(this.mouseHandler.destroy(),this.mouseHandler=null),this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},setLayout:function(e){this.layout=e,this.drawLayout(),this.emit(_,e)},getLayouts:function(){return m},getActiveLayout:function(){return this.layout},setRenderMethod:function(e){var t=this;this.viewports.forEach(function(n){n.active&&(n.name=e,t.emit(v,n))}),this.drawViewportByName(null)},getRenderMethods:function(){return Object.keys(this.props.renderers)},getActiveRenderMethod:function(){return this.viewports.forEach(function(e){return e.active?e.name:void 0}),"No render method"},updateDimensions:function(){var e=s["default"].findDOMNode(this).parentNode,t=d["default"].getSize(e);return!e||this.state.width===t.clientWidth&&this.state.height===t.clientHeight?!1:(this.setState({width:t.clientWidth,height:t.clientHeight}),!0)},dragCallback:function(e,t){var n=this.getViewPort(e);if(!n&&!this.dragInViewport||this.dragCenter)this.dragCenter=!0,this.center[0]=e.relative.x/this.state.width,this.center[1]=e.relative.y/this.state.height,this.drawLayout();else{this.dragInViewport=this.dragInViewport||n;var r=this.props.renderers[this.dragInViewport.name],o=r.builder,a=o?o.getListeners():null;a&&a.drag&&(e.activeArea=this.dragInViewport.activeArea,a.drag(e,t))}e.isFinal&&(this.dragCenter=!1,this.dragInViewport=null)},clickCallback:function(e,t){this.dragCenter=!1,this.dragInViewport=null;var n=this.getViewPort(e);if(n){this.viewports.forEach(function(e){e.active=!1}),n.active=!0;var r=this.props.renderers[n.name],o=r.builder,a=o?o.getListeners():null;a&&a.click&&(e.activeArea=n.activeArea,a.click(e,t)),this.emit(v,n)}this.drawLayout()},zoomCallback:function(e,t){var n=this.getViewPort(e);if(n){var r=this.props.renderers[n.name],o=r.builder,a=o?o.getListeners():null;a&&a.zoom&&(e.activeArea=n.activeArea,a.zoom(e,t))}},getViewPort:function(e){for(var t=this.viewports.length,n=e.relative.x,r=e.relative.y;t--;){var o=this.viewports[t].activeArea||this.viewports[t].region;if(n>=o[0]&&r>=o[1]&&n<=o[0]+o[2]&&r<=o[1]+o[3])return this.viewports[t]}return null},drawViewport:function(e){var t=this.props.renderers[e.name],n=e.region,r=s["default"].findDOMNode(this.refs.canvasRenderer).getContext("2d");if(!(!t||t.builder&&!t.dataToDraw||t.painter&&!t.painter.isReady()))if(t.painter){var o={x:n[0]+2,y:n[1]+2,width:n[2]-4,height:n[3]-4};e.activeArea=[].concat(e.region),t.painter.paint(r,o)}else{var a=this.props.renderers[e.name].dataToDraw,i=n[2]-2,l=n[3]-2,u=a.outputSize[0],c=a.outputSize[1],f=Math.min(i/u,l/c);r.clearRect(n[0]+1,n[1]+1,n[2]-2,n[3]-2);var p=Math.floor(u*f)-2,d=Math.floor(c*f)-2,h=1+n[0]+.5*i-p/2,g=1+n[1]+.5*l-d/2;try{if(r.drawImage(a.canvas,a.area[0],a.area[1],a.area[2],a.area[3],h,g,p,d),a.crosshair){var m=[p/a.area[2],d/a.area[3]],v=[h,g];r.beginPath(),r.moveTo(v[0]+m[0]*a.crosshair[0],g),r.lineTo(v[0]+m[0]*a.crosshair[0],g+d),r.moveTo(h,v[1]+m[1]*a.crosshair[1]),r.lineTo(h+p,v[1]+m[1]*a.crosshair[1]),r.strokeStyle=this.props.crosshairColor,r.lineWidth=1,r.stroke()}e.activeArea=[h,g,p,d]}catch(_){console.log("Error in MultiLayoutRenderer::drawViewport",_)}}},drawViewportByName:function(e){var t=this,n=e?this.props.renderers[e]:null;return n&&n.builder&&!n.dataToDraw?void n.builder.update():void this.viewports.forEach(function(n){n.name!==e&&null!==e||t.drawViewport(n)})},drawLayout:function(){var e=s["default"].findDOMNode(this.refs.canvasRenderer).getContext("2d"),t=e.canvas.width=this.state.width,n=e.canvas.height=this.state.height,r=[this.center[0]*t,this.center[1]*n],o=this.props.spacing,a=f["default"][this.layout](r,o,t,n),i=this.viewports,l=a.length;e.clearRect(0,0,t,n);for(var u=0;l>u;++u){var c=a.shift();u<i.length?i[u].region=c:i.push({name:this.getRenderMethods()[0],region:c,active:!1}),e.beginPath(),e.strokeStyle=i[u].active?this.props.activeColor:this.props.borderColor,e.rect.apply(e,c),e.stroke()}for(;i.length>l;)i.pop();this.drawViewportByName(null)},onActiveViewportChange:function(e){return this.on(v,e)},onLayoutChange:function(e){return this.on(_,e)},render:function(){return a["default"].createElement("canvas",{className:"CanvasMultiImageRenderer",ref:"canvasRenderer",width:this.state.width,height:this.state.height})}});u["default"].mixInto(y),t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.length,r=n*t,o=e[Math.floor(r)],a=e[Math.ceil(r)],i=r-Math.floor(r);return((a-o)*i+o).toFixed(5)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(118),i=r(a),s=n(3),l=r(s),u=n(25),c=r(u),f=n(46),p=r(f),d=n(809),h=r(d);t["default"]=l["default"].createClass({displayName:"LineChartViewer",propTypes:{colors:l["default"].PropTypes.array,cursor:l["default"].PropTypes.number,data:l["default"].PropTypes.any.isRequired,height:l["default"].PropTypes.number,legend:l["default"].PropTypes.bool,width:l["default"].PropTypes.number},getDefaultProps:function(){return{colors:["#e1002a","#417dc0","#1d9a57","#e9bc2f","#9b3880"],height:200,legend:!1,width:200}},getInitialState:function(){return{fieldsColors:{},height:this.props.height/2,legend:this.props.legend,width:this.props.width/2}},componentWillMount:function(){this.xPosition=0,this.sizeSubscription=p["default"].onSizeChange(this.updateDimensions),p["default"].startListening()},componentDidMount:function(){this.updateDimensions()},componentDidUpdate:function(e,t){this.drawChart()},componentWillUnmount:function(){this.sizeSubscription&&(this.sizeSubscription.unsubscribe(),this.sizeSubscription=null)},toggleLegend:function(){this.setState({legend:!this.state.legend})},updateDimensions:function(){this.xPosition=0;var e=c["default"].findDOMNode(this).parentNode,t=p["default"].getSize(e);return!e||this.state.width===t.clientWidth&&this.state.height===t.clientHeight?!1:(this.setState({width:t.clientWidth,height:t.clientHeight}),!0)},onMove:function(e){this.xPosition=e.clientX-(e.target.getClientRects()[0].x||e.target.getClientRects()[0].left),this.isMounted()&&this.state.legend&&this.drawChart()},drawChart:function(){if(this.props.data){var e=c["default"].findDOMNode(this.refs.canvas).getContext("2d"),t=this.props.data.fields,n=t.length,r={},a=this.xPosition/e.canvas.width;e.canvas.width=this.state.width,e.canvas.height=this.state.height,e.clearRect(0,0,e.canvas.width,e.canvas.height);for(var s=0;n>s;++s)this.drawField(e,s,t[s].data,t[s].range),r[t[s].name]=this.props.colors[s],this.refs.hasOwnProperty(t[s].name)&&(c["default"].findDOMNode(this.refs[t[s].name]).innerHTML=o(t[s].data,a));(0,i["default"])(this.state.fieldsColors,r)||this.setState({fieldsColors:r}),this.state.legend&&(c["default"].findDOMNode(this.refs.xValueLabel).innerHTML=((this.props.data.xRange[1]-this.props.data.xRange[0])*a+this.props.data.xRange[0]).toFixed(5),e.beginPath(),e.lineWidth=1,e.strokeStyle="#000000",e.moveTo(this.xPosition,0),e.lineTo(this.xPosition,e.canvas.height),e.stroke()),void 0!==this.props.cursor&&(e.beginPath(),e.lineWidth=1,e.strokeStyle="#0000FF",e.moveTo(this.props.cursor*e.canvas.width,0),e.lineTo(this.props.cursor*e.canvas.width,e.canvas.height),e.stroke())}},drawField:function(e,t,n,r){function o(e){var t=n[e];return t=t>a?i>t?t:i:a,l-Math.floor((t-a)*d)}for(var a=Number.MAX_VALUE,i=Number.MIN_VALUE,s=e.canvas.width,l=e.canvas.height,u=n.length,c=n.length,f=new Uint16Array(c);c--;){var p=n[c];a=Math.min(a,p),i=Math.max(i,p),f[c]=Math.floor(s*(c/u))}r&&(a=r[0],i=r[1]);var d=l/(i-a);e.beginPath(),e.lineWidth=1,e.strokeStyle=this.props.colors[t],e.moveTo(f[0],o(0));for(var h=1;u>h;h++)isNaN(n[h])?u>h+1&&!isNaN(n[h+1])&&e.moveTo(f[h+1],o(h+1)):e.lineTo(f[h],o(h));return e.stroke(),[a,i]},render:function(){var e=[];for(var t in this.state.fieldsColors){var n=this.state.fieldsColors[t];e.push(l["default"].createElement("li",{className:h["default"].legendItem,key:t},l["default"].createElement("i",{className:h["default"].legendItemColor,style:{color:n}}),l["default"].createElement("b",null,t),l["default"].createElement("span",{className:h["default"].legendItemValue,ref:t})))}return l["default"].createElement("div",{className:h["default"].container},l["default"].createElement("canvas",{className:h["default"].canvas,ref:"canvas",onMouseMove:this.onMove,width:this.state.width,height:this.state.height}),l["default"].createElement("div",{className:this.state.legend?h["default"].legend:h["default"].hidden},l["default"].createElement("div",{className:h["default"].legendBar},l["default"].createElement("span",{className:h["default"].legendText,ref:"xValueLabel"}),l["default"].createElement("i",{className:h["default"].toggleLegendButton,onClick:this.toggleLegend})),l["default"].createElement("ul",{className:h["default"].legendContent},e)),l["default"].createElement("div",{className:this.state.legend?h["default"].hidden:h["default"].legend,onClick:this.toggleLegend},l["default"].createElement("div",{className:h["default"].legendButtons},l["default"].createElement("i",{className:h["default"].toggleLegendButton}))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(811),s=r(i);t["default"]=a["default"].createClass({displayName:"ActionListWidget",propTypes:{list:a["default"].PropTypes.array.isRequired,onClick:a["default"].PropTypes.func},processClick:function(e){for(var t=e.target;!t.dataset.name;)t=t.parentNode;this.props.onClick&&this.props.onClick(t.dataset.name,t.dataset.action,t.dataset.user)},render:function(){var e=this,t=[];return this.props.list.forEach(function(n){t.push(a["default"].createElement("li",{className:s["default"].item,key:n.name,title:n.name,"data-name":n.name,"data-action":n.action||"default","data-user":n.data||"",onClick:e.processClick},a["default"].createElement("i",{className:n.icon}),n.name))}),a["default"].createElement("ul",{className:s["default"].list},t)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(25),s=r(i),l=n(841),u=r(l),c=n(814),f=r(c);t["default"]=a["default"].createClass({displayName:"ColorPickerWidget",propTypes:{color:a["default"].PropTypes.array,onChange:a["default"].PropTypes.func,swatch:a["default"].PropTypes.string},getDefaultProps:function(){return{color:[0,0,0],swatch:u["default"]}},getInitialState:function(){return this.image=new Image,this.image.src=this.props.swatch,{swatch:this.props.swatch,color:this.props.color,preview:!1,originalColor:[this.props.color[0],this.props.color[1],this.props.color[2]]}},componentDidMount:function(){var e=s["default"].findDOMNode(this.refs.canvas).getContext("2d");e.fillStyle="rgb("+this.state.originalColor.join(",")+")",e.fillRect(0,0,1,1)},componentDidUpdate:function(e,t){if(e.color[0]===this.props.color[0]&&e.color[1]===this.props.color[1]&&e.color[2]===this.props.color[2]||this.setState({originalColor:this.props.color}),!this.state.preview){var n=s["default"].findDOMNode(this.refs.canvas).getContext("2d");n.fillStyle="rgb("+this.state.originalColor.join(",")+")",n.fillRect(0,0,1,1)}},showColor:function(e){var t=this.state.originalColor,n=s["default"].findDOMNode(this.refs.canvas).getContext("2d");if(e.preventDefault(),"mouseleave"===e.type)return n.fillStyle="rgb("+t.join(",")+")",n.fillRect(0,0,1,1),void this.setState({color:[t[0],t[1],t[2]],preview:!1});var r=s["default"].findDOMNode(this.refs.swatch),o=r.getBoundingClientRect(),a=this.image.width/o.width,i=a*(e.pageX-o.left),l=a*(e.pageY-o.top);n.drawImage(r,i,l,1,1,0,0,1,1),t=n.getImageData(0,0,1,1).data,"click"===e.type?(this.setState({color:[t[0],t[1],t[2]],preview:!1}),this.props.onChange&&this.props.onChange(t)):this.setState({color:[t[0],t[1],t[2]],preview:!0})},rgbColorChange:function(e){var t=this.state.color,n=e.target.value,r=Number(e.target.dataset.colorIdx);t[r]=n;var o=s["default"].findDOMNode(this.refs.canvas).getContext("2d");o.fillStyle="rgb("+t.join(",")+")",o.fillRect(0,0,1,1),this.setState({color:[t[0],t[1],t[2]],preview:!1}),this.props.onChange&&this.props.onChange(t)},updateColor:function(e){this.setState({originalColor:e})},updateSwatch:function(e){this.image.src=e,this.setState({swatch:e})},render:function(){return a["default"].createElement("div",{className:f["default"].container},a["default"].createElement("div",{className:f["default"].activeColor},a["default"].createElement("canvas",{className:f["default"].colorCanvas,ref:"canvas",width:"1",height:"1"}),a["default"].createElement("input",{className:f["default"].colorRGB,type:"number",min:"0",max:"255",value:this.state.color[0],"data-color-idx":"0",onChange:this.rgbColorChange}),a["default"].createElement("input",{className:f["default"].colorRGB,type:"number",min:"0",max:"255",value:this.state.color[1],"data-color-idx":"1",onChange:this.rgbColorChange}),a["default"].createElement("input",{className:f["default"].colorRGB,type:"number",min:"0",max:"255",value:this.state.color[2],"data-color-idx":"2",onChange:this.rgbColorChange})),a["default"].createElement("div",{className:f["default"].swatch},a["default"].createElement("img",{ref:"swatch",className:f["default"].swatchImage,width:"100%",src:this.state.swatch,onClick:this.showColor,onMouseMove:this.showColor,onMouseLeave:this.showColor})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(426),s=r(i),l=n(192),u=r(l);t["default"]=a["default"].createClass({displayName:"CompositePipelineWidget",propTypes:{model:a["default"].PropTypes.object.isRequired},componentDidMount:function(){this.attachListener(this.props.model)},componentWillReceiveProps:function(e){var t=this.props.model,n=e.model;t!==n&&(this.detachListener(),this.attachListener(n))},componentWillUnmount:function(){this.detachListener()},attachListener:function(e){var t=this;this.pipelineSubscription=e.onChange(function(e,n){t.forceUpdate()})},detachListener:function(){this.pipelineSubscription&&(this.pipelineSubscription.unsubscribe(),this.pipelineSubscription=null)},render:function(){var e=this.props.model,t=e.getPipelineDescription();return a["default"].createElement("div",{className:u["default"].container},t.map(function(t,n){return a["default"].createElement(s["default"],{key:n,item:t,layer:t.ids.join(""),model:e})}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(25),s=r(i);t["default"]=a["default"].createClass({displayName:"ContentEditableWidget",propTypes:{blurOnEnter:a["default"].PropTypes.bool,className:a["default"].PropTypes.string,html:a["default"].PropTypes.string,onBlur:a["default"].PropTypes.func,onChange:a["default"].PropTypes.func},getDefaultProps:function(){return{blurOnEnter:!1,className:""}},shouldComponentUpdate:function(e){return e.html!==s["default"].findDOMNode(this).innerHTML},componentDidUpdate:function(){this.props.html!==s["default"].findDOMNode(this).innerHTML&&(s["default"].findDOMNode(this).innerHTML=this.props.html)},setFocus:function(){var e=document.createRange();e.selectNodeContents(s["default"].findDOMNode(this));var t=window.getSelection();t.removeAllRanges(),t.addRange(e)},blurEditable:function(e){13===e.charCode&&(s["default"].findDOMNode(this).blur(),window.getSelection().removeAllRanges(),this.props.onBlur&&this.props.onBlur())},emitChange:function(e){var t=s["default"].findDOMNode(this).innerHTML;this.props.onChange&&t!==this.lastHtml&&(e.target={value:t},this.props.onChange(e)),this.lastHtml=t,"blur"===e.type&&this.props.onBlur&&this.props.onBlur()},render:function(){return a["default"].createElement("div",{className:this.props.className,onInput:this.emitChange,onBlur:this.emitChange,onKeyPress:this.props.blurOnEnter?this.blurEditable:function(){},contentEditable:!0,dangerouslySetInnerHTML:{__html:this.props.html}})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(118),a=r(o),i=n(73),s=r(i),l=n(3),u=r(l),c=n(25),f=r(c),p=n(815),d=r(p);t["default"]=u["default"].createClass({displayName:"Coordinate2DWidget",propTypes:{height:u["default"].PropTypes.number,hideXY:u["default"].PropTypes.bool,onChange:u["default"].PropTypes.func,width:u["default"].PropTypes.number,x:u["default"].PropTypes.number,y:u["default"].PropTypes.number},getDefaultProps:function(){return{width:50,height:50,x:0,y:0}},getInitialState:function(){return{x:this.props.x,y:this.props.y}},componentDidMount:function(){this.drawControl(),this.mouseHandler=new s["default"](f["default"].findDOMNode(this.refs.canvas)),this.mouseHandler.attach({click:this.pointerAction,mousedown:this.pointerAction,mouseup:this.pointerAction,drag:this.pointerAction})},componentDidUpdate:function(e,t){this.drawControl()},componentWillUnmount:function(){this.mouseHandler.destroy()},coordinates:function(){return{x:this.state.x,y:this.state.y}},updateCoordinates:function(e){var t=this,n={},r=!1;["x","y"].forEach(function(o){e.hasOwnProperty(o)&&(n[o]=t.limitValue(parseFloat(e[o])),r=!0)}),r&&this.setState(n)},limitValue:function(e){return Math.max(-1,Math.min(e,1))},updateX:function(e){var t=parseFloat(e.target.value);this.setState({x:t})},updateY:function(e){var t=parseFloat(e.target.value);this.setState({y:t})},pointerAction:function(e){var t=f["default"].findDOMNode(this.refs.canvas).getBoundingClientRect(),n=e.pointers[0].clientX-t.left-this.props.width/2,r=-(e.pointers[0].clientY-t.top-this.props.height/2);this.setState({x:this.limitValue(n/(this.props.width/2)),y:this.limitValue(r/(this.props.height/2))})},drawControl:function(){var e=f["default"].findDOMNode(this.refs.canvas).getContext("2d"),t=e.canvas.height,n=e.canvas.width;if(e.clearRect(0,0,n,t),this.drawPlus("lightgrey"),this.drawPlus("black",{x:this.state.x*(this.props.width/2),y:-this.state.y*(this.props.height/2)}),this.props.onChange){var r={x:this.state.x,y:this.state.y};(0,a["default"])(r,this.lastSharedState)||(this.lastSharedState=r,this.props.onChange(this.lastSharedState))}},drawPlus:function(e,t){var n=f["default"].findDOMNode(this.refs.canvas).getContext("2d"),r=n.canvas.height,o=n.canvas.width,a=5;void 0===t?t={x:o/2,y:r/2}:(t.x+=this.props.width/2,t.y+=this.props.height/2),n.beginPath(),n.lineWidth=2,n.strokeStyle=e,n.moveTo(t.x,t.y-a),n.lineTo(t.x,t.y+a),n.stroke(),n.moveTo(t.x-a,t.y),n.lineTo(t.x+a,t.y),n.stroke()},render:function(){return u["default"].createElement("section",{className:d["default"].container},u["default"].createElement("canvas",{ref:"canvas",className:d["default"].canvas,width:this.props.width,height:this.props.height}),u["default"].createElement("section",{className:this.props.hideXY?d["default"].hidden:d["default"].inputContainer},u["default"].createElement("label",{className:d["default"].inputLabel}," x: "),u["default"].createElement("input",{className:d["default"].input,type:"number",onChange:this.updateX,min:"-1.0",max:"1.0",step:"0.01",value:this.state.x}),u["default"].createElement("br",null),u["default"].createElement("label",{className:d["default"].inputLabel}," y: "),u["default"].createElement("input",{className:d["default"].input,type:"number",onChange:this.updateY,min:"-1.0",max:"1.0",step:"0.01",value:this.state.y})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(817),s=r(i);t["default"]=a["default"].createClass({displayName:"DropDownWidget",propTypes:{field:a["default"].PropTypes.string,fields:a["default"].PropTypes.array,onChange:a["default"].PropTypes.func},getInitialState:function(){return{open:!1,field:this.props.field||this.props.fields[0]}},toggleDropdown:function(){this.setState({open:!this.state.open})},setField:function(e){this.setState({field:e.target.innerHTML}),this.props.onChange(e.target.innerHTML)},getField:function(e){return this.state.field},render:function(){var e=this;return a["default"].createElement("div",{className:s["default"].container,onClick:this.toggleDropdown},this.state.field,a["default"].createElement("ul",{className:this.state.open?s["default"].list:s["default"].hidden},this.props.fields.map(function(t){return"__internal"===t?null:t===e.state.field?a["default"].createElement("li",{className:s["default"].selectedItem,key:t,onClick:e.setField},t):a["default"].createElement("li",{className:s["default"].item,key:t,onClick:e.setField},t)})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(822),s=r(i);t["default"]=a["default"].createClass({displayName:"LayoutsWidget",propTypes:{onChange:a["default"].PropTypes.func},onLayoutChange:function(e){var t=e.currentTarget.getAttribute("name");this.props.onChange&&this.props.onChange(t)},render:function(){return a["default"].createElement("section",null,a["default"].createElement("table",{className:s["default"].table,name:"2x2",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"1x2",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"2x1",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"1x1",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"3xL",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{rowSpan:"2",className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"3xT",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{colSpan:"2",className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"3xR",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{rowSpan:"2",className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td})))),a["default"].createElement("table",{className:s["default"].table,name:"3xB",onClick:this.onLayoutChange},a["default"].createElement("tbody",null,a["default"].createElement("tr",null,a["default"].createElement("td",{className:s["default"].td}),a["default"].createElement("td",{className:s["default"].td})),a["default"].createElement("tr",null,a["default"].createElement("td",{colSpan:"2",className:s["default"].td})))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(825),s=r(i);t["default"]=a["default"].createClass({displayName:"PresetListWidget",propTypes:{activeName:a["default"].PropTypes.string,height:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,presets:a["default"].PropTypes.object,visible:a["default"].PropTypes.bool},getDefaultProps:function(){return{activeName:"", +height:"1em",presets:{},visible:!0}},getInitialState:function(){return{activeName:this.props.activeName}},updateActive:function(e){var t=e.target.dataset.name;this.setState({activeName:t}),this.props.onChange&&this.props.onChange(t)},render:function(){var e=this;if(!this.props.presets||!this.props.visible)return null;var t=this.state.activeName,n=this.props.height,r=this.props.presets,o=Object.keys(r);return a["default"].createElement("div",{className:s["default"].container},a["default"].createElement("div",{className:s["default"].bottomPadding}),o.map(function(o){return a["default"].createElement("img",{src:"data:image/png;base64,"+r[o],key:o,style:{height:n},"data-name":o,onClick:e.updateActive,className:o===t?s["default"].activeLine:s["default"].line})}),a["default"].createElement("div",{className:s["default"].bottomPadding}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(170),s=r(i),l=n(137),u=r(l),c=n(200),f=n(827),p=r(f);t["default"]=a["default"].createClass({displayName:"ProxyPropertyGroup",propTypes:{advanced:a["default"].PropTypes.bool,collapsed:a["default"].PropTypes.bool,filter:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,proxy:a["default"].PropTypes.object},getDefaultProps:function(){return{advanced:!1,collapsed:!1}},getInitialState:function(){return{collapsed:this.props.collapsed,changeSet:{},properties:(0,c.proxyToProps)(this.props.proxy)}},componentWillReceiveProps:function(e){var t=this.props.proxy,n=e.proxy;(0,s["default"])(t,n)||this.setState({properties:(0,c.proxyToProps)(n),changeSet:{}})},toggleCollapsedMode:function(){var e=!this.state.collapsed;this.setState({collapsed:e})},valueChange:function(e){var t=this.state.changeSet;t[e.id]=1===e.size&&Array.isArray(e.value)?e.value[0]:e.value,this.setState({changeSet:t}),this.props.onChange&&this.props.onChange(t)},render:function(){var e=this,t={},n={advanced:this.props.advanced,filter:this.props.filter,properties:t},r=Object.keys(this.state.changeSet).length;return this.state.properties.forEach(function(e){t[e.data.id]=e.data.value}),a["default"].createElement("div",{className:p["default"].container},a["default"].createElement("div",{className:p["default"].toolbar,onClick:this.toggleCollapsedMode},a["default"].createElement("i",{className:this.state.collapsed?p["default"].collapedIcon:p["default"].expandedIcon}),a["default"].createElement("span",{className:p["default"].title},this.props.proxy.name),a["default"].createElement("span",{className:r?p["default"].tag:p["default"].emptyTag},a["default"].createElement("i",{className:p["default"].tagBackground}),a["default"].createElement("strong",{className:p["default"].tagCount},r))),a["default"].createElement("div",{className:this.state.collapsed?p["default"].hidden:p["default"].content},this.state.properties.map(function(t){return(0,u["default"])(t,n,e.valueChange)})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),i=r(a),s=n(828),l=r(s);t["default"]=i["default"].createClass({displayName:"ScalarRangeWidget",propTypes:{max:i["default"].PropTypes.number,min:i["default"].PropTypes.number,onApply:i["default"].PropTypes.func,visible:i["default"].PropTypes.bool},getInitialState:function(){return{max:this.props.max||1,min:this.props.min||0}},componentWillReceiveProps:function(e){var t=e.min,n=e.max;this.state.min===t&&this.state.max===n||this.setState({min:t,max:n})},updateRange:function(e){var t=e.target.name,n=e.target.value;!isNaN(parseFloat(n))&&isFinite(n)&&this.setState(o({},t,n))},apply:function(e){var t=this.state,n=t.min,r=t.max,o=e.target.dataset.type;n=Number(n),r=Number(r),this.props.onApply&&this.props.onApply({type:o,min:n,max:r})},render:function(){return this.props.visible?i["default"].createElement("div",{className:l["default"].container},i["default"].createElement("input",{className:l["default"].rangeInput,type:"text",pattern:"-*[0-9]*.*[0-9]*",name:"min",value:this.state.min,onChange:this.updateRange}),i["default"].createElement("input",{className:l["default"].rangeInput,type:"text",pattern:"-*[0-9]*.*[0-9]*",name:"max",value:this.state.max,onChange:this.updateRange}),i["default"].createElement("div",{className:l["default"].actionLine},i["default"].createElement("i",{onClick:this.apply,"data-type":"data",className:l["default"].dataRangeIcon}),i["default"].createElement("i",{onClick:this.apply,"data-type":"time",className:l["default"].timeRangeIcon}),i["default"].createElement("i",{onClick:this.apply,"data-type":"custom",className:l["default"].customRangeIcon}))):null}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(829),s=r(i);t["default"]=a["default"].createClass({displayName:"TextInputWidget",propTypes:{className:a["default"].PropTypes.string,name:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,value:a["default"].PropTypes.string},getDefaultProps:function(){return{value:"",className:""}},getInitialState:function(){return{editing:!1,valueRep:this.props.value}},valueChange:function(e){var t=e.target.value;this.setState({editing:!0,valueRep:t})},endEditing:function(){this.setState({editing:!1}),this.props.name?this.props.onChange(this.state.valueRep,this.props.name):this.props.onChange(this.state.valueRep)},render:function(){return a["default"].createElement("div",{className:[s["default"].container,this.props.className].join(" ")},a["default"].createElement("input",{className:s["default"].entry,type:"text",value:this.state.editing?this.state.valueRep:this.props.value,onChange:this.valueChange,onBlur:this.endEditing}),a["default"].createElement("i",{className:this.state.editing?s["default"].editingButton:s["default"].button}))}})},function(e,t,n){var r=n(39);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){"use strict";var r=n(31),o=n(66),a=n(21);e.exports=[].copyWithin||function(e,t){var n=r(this),i=a(n.length),s=o(e,i),l=o(t,i),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?i:o(u,i))-l,i-s),f=1;for(s>l&&l+c>s&&(f=-1,l+=c-1,s+=c-1);c-- >0;)l in n?n[s]=n[l]:delete n[s],s+=f,l+=f;return n}},function(e,t,n){var r=n(91);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){var r=n(47),o=n(31),a=n(92),i=n(21);e.exports=function(e,t,n,s,l){r(t);var u=o(e),c=a(u),f=i(u.length),p=l?f-1:0,d=l?-1:1;if(2>n)for(;;){if(p in c){s=c[p],p+=d;break}if(p+=d,l?0>p:p>=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?p>=0:f>p;p+=d)p in c&&(s=t(s,c[p],p,u));return s}},function(e,t,n){"use strict";var r=n(47),o=n(13),a=n(110),i=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var r=[],o=0;t>o;o++)r[o]="a["+o+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?l(t,r.length,r):a(t,r,e)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){"use strict";var r=n(17).f,o=n(64),a=(n(34),n(77)),i=n(49),s=n(62),l=n(40),u=n(91),c=n(152),f=n(247),p=n(78),d=n(18),h=n(55).fastKey,g=d?"_s":"size",m=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var f=e(function(e,r){s(e,f,t,"_i"),e._i=o(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=r&&u(r,n,e[c],e)});return a(f.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[g]=0},"delete":function(e){var t=this,n=m(t,e);if(n){var r=n.n,o=n.p;delete t._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),t._f==n&&(t._f=r),t._l==n&&(t._l=o),t[g]--}return!!n},forEach:function(e){s(this,f,"forEach");for(var t,n=i(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!m(this,e)}}),d&&r(f.prototype,"size",{get:function(){return l(this[g])}}),f},def:function(e,t,n){var r,o,a=m(e,t);return a?a.v=n:(e._l=a={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=a),r&&(r.n=a),e[g]++,"F"!==o&&(e._i[o]=a)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){var r=n(75),o=n(238);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},function(e,t,n){"use strict";var r=n(77),o=n(55).getWeak,a=n(7),i=n(13),s=n(62),l=n(91),u=n(38),c=n(22),f=u(5),p=u(6),d=0,h=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return f(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=m(this,e);return t?t[1]:void 0},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},"delete":function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var u=e(function(e,r){s(e,u,t,"_i"),e._i=d++,e._l=void 0,void 0!=r&&l(r,n,e[a],e)});return r(u.prototype,{"delete":function(e){if(!i(e))return!1;var t=o(e);return t===!0?h(this)["delete"](e):t&&c(t,this._i)&&delete t[this._i]},has:function(e){if(!i(e))return!1;var t=o(e);return t===!0?h(this).has(e):t&&c(t,this._i)}}),u},def:function(e,t,n){var r=o(a(t),!0);return r===!0?h(e).set(t,n):r[e._i]=n,e},ufstore:h}},function(e,t,n){e.exports=!n(18)&&!n(9)(function(){return 7!=Object.defineProperty(n(142)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(7);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e["return"];throw void 0!==i&&r(i.call(e)),a}}},function(e,t,n){"use strict";var r=n(64),o=n(56),a=n(79),i={};n(34)(i,n(15)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(i,{next:o(1,n)}),a(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&1e-8>e?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(76),o=n(112),a=n(94),i=n(31),s=n(92);e.exports=n(9)(function(){var e=Object.assign,t={},n={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(e){n[e]=e}),7!=e({},t)[r]||Object.keys(e({},n)).join("")!=o})?function(e,t){for(var n=i(e),l=arguments.length,u=1,c=o.f,f=a.f;l>u;)for(var p,d=s(arguments[u++]),h=c?r(d).concat(c(d)):r(d),g=h.length,m=0;g>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:Object.assign},function(e,t,n){var r=n(17),o=n(7),a=n(76);e.exports=n(18)?Object.defineProperties:function(e,t){o(e);for(var n,i=a(t),s=i.length,l=0;s>l;)r.f(e,n=i[l++],t[n]);return e}},function(e,t,n){var r=n(29),o=n(65).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o.f(e)}catch(t){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?s(e):o(r(e))}},function(e,t,n){var r=n(22),o=n(29),a=n(107)(!1),i=n(155)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,u=[];for(n in s)n!=i&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~a(u,n)||u.push(n));return u}},function(e,t,n){var r=n(76),o=n(29),a=n(94).f;e.exports=function(e){return function(t){for(var n,i=o(t),s=r(i),l=s.length,u=0,c=[];l>u;)a.call(i,n=s[u++])&&c.push(e?[n,i[n]]:i[n]);return c}}},function(e,t,n){var r=n(65),o=n(112),a=n(7),i=n(12).Reflect;e.exports=i&&i.ownKeys||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(12).parseFloat,o=n(80).trim;e.exports=1/r(n(160)+"-0")!==-(1/0)?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(12).parseInt,o=n(80).trim,a=n(160),i=/^[\-+]?0[xX]/;e.exports=8!==r(a+"08")||22!==r(a+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(i.test(n)?16:10))}:r},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},function(e,t,n){var r=n(21),o=n(159),a=n(40);e.exports=function(e,t,n,i){var s=String(a(e)),l=s.length,u=void 0===n?" ":String(n),c=r(t);if(l>=c)return s;""==u&&(u=" ");var f=c-l,p=o.call(u,Math.ceil(f/u.length));return p.length>f&&(p=p.slice(0,f)),i?p+s:s+p}},function(e,t,n){"use strict";var r=n(241);e.exports=n(108)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){n(18)&&"g"!=/./g.flags&&n(17).f(RegExp.prototype,"flags",{configurable:!0,get:n(145)})},function(e,t,n){"use strict";var r=n(241);e.exports=n(108)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,o=n(38)(0),a=n(27),i=n(55),s=n(249),l=n(243),u=n(13),c=(n(22),i.getWeak),f=Object.isExtensible,p=l.ufstore,d={},h=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(e){if(u(e)){var t=c(e);return t===!0?p(this).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(this,e,t)}},m=e.exports=n(108)("WeakMap",h,g,l,!0,!0);7!=(new m).set((Object.freeze||Object)(d),7).get(d)&&(r=l.getConstructor(h),s(r.prototype,g),i.NEED=!0,o(["delete","has","get","set"],function(e){var t=m.prototype,n=t[e];a(t,e,function(t,o){if(u(t)&&!f(t)){this._f||(this._f=new r);var a=this._f[e](t,o);return"set"==e?this:a}return n.call(this,t,o)})}))},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,a=r.Hasher,i=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;n>=r;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;64>o;)e(r)&&(8>o&&(s[o]=n(t.pow(r,.5))),l[o]=n(t.pow(r,1/3)),o++),r++}();var u=[],c=i.SHA256=a.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],f=n[6],p=n[7],d=0;64>d;d++){if(16>d)u[d]=0|e[t+d];else{var h=u[d-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=u[d-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[d]=g+u[d-7]+v+u[d-16]}var _=s&c^~s&f,y=r&o^r&a^o&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=p+w+_+l[d]+u[d],C=b+y;p=f,f=c,c=s,s=i+x|0,i=a,a=o,o=r,r=x+C|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+i|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[(o+64>>>9<<4)+14]=t.floor(r/4294967296),n[(o+64>>>9<<4)+15]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(c),n.HmacSHA256=a._createHmacHelper(c)}(Math),e.SHA256})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(116))}(this,function(e){return function(){function t(){return i.create.apply(i,arguments)}var n=e,r=n.lib,o=r.Hasher,a=n.x64,i=a.Word,s=a.WordArray,l=n.algo,u=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],c=[];!function(){for(var e=0;80>e;e++)c[e]=t()}();var f=l.SHA512=o.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],l=n[5],f=n[6],p=n[7],d=r.high,h=r.low,g=o.high,m=o.low,v=a.high,_=a.low,y=i.high,b=i.low,w=s.high,x=s.low,C=l.high,E=l.low,T=f.high,P=f.low,k=p.high,M=p.low,S=d,R=h,D=g,A=m,I=v,O=_,F=y,N=b,L=w,B=x,j=C,W=E,U=T,V=P,z=k,q=M,H=0;80>H;H++){var X=c[H];if(16>H)var G=X.high=0|e[t+2*H],Y=X.low=0|e[t+2*H+1];else{var Q=c[H-15],K=Q.high,Z=Q.low,J=(K>>>1|Z<<31)^(K>>>8|Z<<24)^K>>>7,$=(Z>>>1|K<<31)^(Z>>>8|K<<24)^(Z>>>7|K<<25),ee=c[H-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ae=c[H-7],ie=ae.high,se=ae.low,le=c[H-16],ue=le.high,ce=le.low,Y=$+se,G=J+ie+($>>>0>Y>>>0?1:0),Y=Y+oe,G=G+re+(oe>>>0>Y>>>0?1:0),Y=Y+ce,G=G+ue+(ce>>>0>Y>>>0?1:0);X.high=G,X.low=Y}var fe=L&j^~L&U,pe=B&W^~B&V,de=S&D^S&I^D&I,he=R&A^R&O^A&O,ge=(S>>>28|R<<4)^(S<<30|R>>>2)^(S<<25|R>>>7),me=(R>>>28|S<<4)^(R<<30|S>>>2)^(R<<25|S>>>7),ve=(L>>>14|B<<18)^(L>>>18|B<<14)^(L<<23|B>>>9),_e=(B>>>14|L<<18)^(B>>>18|L<<14)^(B<<23|L>>>9),ye=u[H],be=ye.high,we=ye.low,xe=q+_e,Ce=z+ve+(q>>>0>xe>>>0?1:0),xe=xe+pe,Ce=Ce+fe+(pe>>>0>xe>>>0?1:0),xe=xe+we,Ce=Ce+be+(we>>>0>xe>>>0?1:0),xe=xe+Y,Ce=Ce+G+(Y>>>0>xe>>>0?1:0),Ee=me+he,Te=ge+de+(me>>>0>Ee>>>0?1:0);z=U,q=V,U=j,V=W,j=L,W=B,B=N+xe|0,L=F+Ce+(N>>>0>B>>>0?1:0)|0,F=I,N=O,I=D,O=A,D=S,A=R,R=xe+Ee|0,S=Ce+Te+(xe>>>0>R>>>0?1:0)|0}h=r.low=h+R,r.high=d+S+(R>>>0>h>>>0?1:0),m=o.low=m+A,o.high=g+D+(A>>>0>m>>>0?1:0),_=a.low=_+O,a.high=v+I+(O>>>0>_>>>0?1:0),b=i.low=b+N,i.high=y+F+(N>>>0>b>>>0?1:0),x=s.low=x+B,s.high=w+L+(B>>>0>x>>>0?1:0),E=l.low=E+W,l.high=C+j+(W>>>0>E>>>0?1:0),P=f.low=P+V,f.high=T+U+(V>>>0>P>>>0?1:0),M=p.low=M+q,p.high=k+z+(q>>>0>M>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[(r+128>>>10<<5)+30]=Math.floor(n/4294967296),t[(r+128>>>10<<5)+31]=n,e.sigBytes=4*t.length,this._process();var o=this._hash.toX32();return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});n.SHA512=o._createHelper(f),n.HmacSHA512=o._createHmacHelper(f)}(),e.SHA512})},function(e,t,n){"use strict";var r=n(44),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(e,t){var n=!0;e:for(;n;){var r=e,a=t;if(n=!1,r&&a){if(r===a)return!0;if(o(r))return!1;if(o(a)){e=r,t=a.parentNode,n=!0;continue e}return r.contains?r.contains(a):r.compareDocumentPosition?!!(16&r.compareDocumentPosition(a)):!1}return!1}}var o=n(706);e.exports=r},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t,n){"use strict";function r(e){return i?void 0:a(!1),p.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?i.innerHTML="<link />":i.innerHTML="<"+e+"></"+e+">",s[e]=!i.firstChild),s[e]?p[e]:null}var o=n(23),a=n(5),i=o.canUseDOM?document.createElement("div"):null,s={},l=[1,'<select multiple="true">',"</select>"],u=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],f=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],p={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:l,option:l,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:c,th:c},d=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];d.forEach(function(e){p[e]=f,s[e]=!0}),e.exports=r},function(e,t){"use strict";function n(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=r.bind(t),i=0;i<n.length;i++)if(!a(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){var n={};n.EPSILON=1e-6,n.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,n.RANDOM=Math.random,n.setMatrixArrayType=function(e){GLMAT_ARRAY_TYPE=e};var r=Math.PI/180;n.toRadian=function(e){return e*r},e.exports=n},function(e,t,n){var r=n(271),o={};o.create=function(){var e=new r.ARRAY_TYPE(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e},o.clone=function(e){var t=new r.ARRAY_TYPE(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},o.fromValues=function(e,t,n,o){var a=new r.ARRAY_TYPE(4);return a[0]=e,a[1]=t,a[2]=n,a[3]=o,a},o.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},o.set=function(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e},o.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e},o.subtract=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e},o.sub=o.subtract,o.multiply=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e},o.mul=o.multiply,o.divide=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e},o.div=o.divide,o.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e},o.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e},o.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},o.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},o.distance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],a=t[3]-e[3];return Math.sqrt(n*n+r*r+o*o+a*a)},o.dist=o.distance,o.squaredDistance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2],a=t[3]-e[3];return n*n+r*r+o*o+a*a},o.sqrDist=o.squaredDistance,o.length=function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return Math.sqrt(t*t+n*n+r*r+o*o)},o.len=o.length,o.squaredLength=function(e){var t=e[0],n=e[1],r=e[2],o=e[3];return t*t+n*n+r*r+o*o},o.sqrLen=o.squaredLength,o.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},o.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},o.normalize=function(e,t){var n=t[0],r=t[1],o=t[2],a=t[3],i=n*n+r*r+o*o+a*a;return i>0&&(i=1/Math.sqrt(i),e[0]=n*i,e[1]=r*i,e[2]=o*i,e[3]=a*i),e},o.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},o.lerp=function(e,t,n,r){var o=t[0],a=t[1],i=t[2],s=t[3];return e[0]=o+r*(n[0]-o),e[1]=a+r*(n[1]-a),e[2]=i+r*(n[2]-i),e[3]=s+r*(n[3]-s),e},o.random=function(e,t){return t=t||1,e[0]=r.RANDOM(),e[1]=r.RANDOM(),e[2]=r.RANDOM(),e[3]=r.RANDOM(),o.normalize(e,e),o.scale(e,e,t),e},o.transformMat4=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=t[3];return e[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*i,e[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*i,e[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*i,e[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*i,e},o.transformQuat=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*o,f=u*o+l*r-i*a,p=u*a+i*o-s*r,d=-i*r-s*o-l*a;return e[0]=c*u+d*-i+f*-l-p*-s,e[1]=f*u+d*-s+p*-i-c*-l,e[2]=p*u+d*-l+c*-s-f*-i,e[3]=t[3],e},o.forEach=function(){var e=o.create();return function(t,n,r,o,a,i){var s,l;for(n||(n=4),r||(r=0),l=o?Math.min(o*n+r,t.length):t.length,s=r;l>s;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],e[3]=t[s+3],a(e,e,i),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2],t[s+3]=e[3];return t}}(),o.str=function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},e.exports=o},function(e,t,n){function r(e,t){if(null==e)return o;switch(typeof e){case"function":return"undefined"!=typeof t?function(n,r,o){return e.call(t,n,r,o)}:e;case"object":return function(t){return i(t,e)};case"string":case"number":return a(e)}}var o=n(719),a=n(720),i=n(724);e.exports=r},function(e,t,n){function r(e){var t=[];return o(e,function(e,n){t.push(e)}),t}var o=n(168);e.exports=r},function(e,t,n){var r,o;r=[n(730)],o=function(e){function t(t,n){return-1!==e(t,n)}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(731),n(732),n(734)],o=function(e,t,n){function r(r,o){if(null==r)return e;switch(typeof r){case"function":return"undefined"!=typeof o?function(e,t,n){return r.call(o,e,t,n)}:r;case"object":return function(e){return n(e,r)};case"string":case"number":return t(r)}}return r}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(733),n(119),n(171),n(282)],o=function(e,t,n,r){function o(t,r){switch(n(t)){case"Object":return a(t,r);case"Array":return i(t,r);default:return e(t)}}function a(e,n){if(r(e)){var a={};return t(e,function(e,t){this[t]=o(e,n)},a),a}return n?n(e):e}function i(e,t){for(var n=[],r=-1,a=e.length;++r<a;)n[r]=o(e[r],t);return n}return o}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r,o;r=[n(280)],o=function(e){var t=Array.isArray||function(t){return e(t,"Array")};return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(171)],o=function(e){function t(t,n){return e(t)===n}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(280)],o=function(e){function t(t){return e(t,"Object")}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e){return!!e&&"object"==typeof e&&e.constructor===Object}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(){function e(){return e.get()}return e.get="function"==typeof Date.now?Date.now:function(){return+new Date},e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[n(t,e)]=r[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},i={isUnitlessNumber:r,shorthandPropertyExpansions:a};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){var r=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var o=n(743),a=n(302),i=n(36),s=n(129),l=n(187),u=n(5),c={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:l,processUpdates:function(e,t){for(var n,i=null,c=null,f=0;f<e.length;f++)if(n=e[f],n.type===a.MOVE_EXISTING||n.type===a.REMOVE_NODE){var p=n.fromIndex,d=n.parentNode.childNodes[p],h=n.parentID;d?void 0:u(!1),i=i||{},i[h]=i[h]||[],i[h][p]=d,c=c||[],c.push(d)}var g;if(g=t.length&&"string"==typeof t[0]?o.dangerouslyRenderMarkup(t):t,c)for(var m=0;m<c.length;m++)c[m].parentNode.removeChild(c[m]);for(var v=0;v<e.length;v++)switch(n=e[v],n.type){case a.INSERT_MARKUP:r(n.parentNode,g[n.markupIndex],n.toIndex);break;case a.MOVE_EXISTING:r(n.parentNode,i[n.parentID][n.fromIndex],n.toIndex);break;case a.SET_MARKUP:s(n.parentNode,n.content);break;case a.TEXT_CONTENT:l(n.parentNode,n.content);break;case a.REMOVE_NODE:}}};i.measureMethods(c,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),e.exports=c},function(e,t,n){"use strict";function r(){if(s)for(var e in l){var t=l[e],n=s.indexOf(e);if(n>-1?void 0:i(!1),!u.plugins[n]){t.extractEvents?void 0:i(!1),u.plugins[n]=t;var r=t.eventTypes;for(var a in r)o(r[a],t,a)?void 0:i(!1)}}}function o(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)?i(!1):void 0,u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a(s,t,n)}return!0}return e.registrationName?(a(e.registrationName,t,n),!0):!1}function a(e,t,n){u.registrationNameModules[e]?i(!1):void 0,u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var i=n(5),s=null,l={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){s?i(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];l.hasOwnProperty(n)&&l[n]===o||(l[n]?i(!1):void 0,l[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=u.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in l)l.hasOwnProperty(e)&&delete l[e]; +u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=u},function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"//")}function o(e,t){this.func=e,this.context=t,this.count=0}function a(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function i(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);v(e,a,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function l(e,t,n){var o=e.result,a=e.keyPrefix,i=e.func,s=e.context,l=i.call(s,t,e.count++);Array.isArray(l)?u(l,o,n,m.thatReturnsArgument):null!=l&&(g.isValidElement(l)&&(l=g.cloneAndReplaceKey(l,a+(l!==t?r(l.key||"")+"/":"")+n)),o.push(l))}function u(e,t,n,o,a){var i="";null!=n&&(i=r(n)+"/");var u=s.getPooled(t,i,o,a);v(e,l,u),s.release(u)}function c(e,t,n){if(null==e)return e;var r=[];return u(e,r,null,t,n),r}function f(e,t,n){return null}function p(e,t){return v(e,f,null)}function d(e){var t=[];return u(e,t,null,m.thatReturnsArgument),t}var h=n(59),g=n(30),m=n(44),v=n(189),_=h.twoArgumentPooler,y=h.fourArgumentPooler,b=/\/(?!\/)/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,_),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,y);var w={forEach:i,map:c,mapIntoWithKeyPrefixInternal:u,count:p,toArray:d};e.exports=w},function(e,t,n){"use strict";function r(e,t){var n=x.hasOwnProperty(t)?x[t]:null;E.hasOwnProperty(t)&&(n!==b.OVERRIDE_BASE?m(!1):void 0),e.hasOwnProperty(t)&&(n!==b.DEFINE_MANY&&n!==b.DEFINE_MANY_MERGED?m(!1):void 0)}function o(e,t){if(t){"function"==typeof t?m(!1):void 0,p.isValidElement(t)?m(!1):void 0;var n=e.prototype;t.hasOwnProperty(y)&&C.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==y){var a=t[o];if(r(n,o),C.hasOwnProperty(o))C[o](e,a);else{var i=x.hasOwnProperty(o),u=n.hasOwnProperty(o),c="function"==typeof a,f=c&&!i&&!u&&t.autobind!==!1;if(f)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=a,n[o]=a;else if(u){var d=x[o];!i||d!==b.DEFINE_MANY_MERGED&&d!==b.DEFINE_MANY?m(!1):void 0,d===b.DEFINE_MANY_MERGED?n[o]=s(n[o],a):d===b.DEFINE_MANY&&(n[o]=l(n[o],a))}else n[o]=a}}}}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in C;o?m(!1):void 0;var a=n in e;a?m(!1):void 0,e[n]=r}}}function i(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:m(!1);for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?m(!1):void 0,e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return i(o,n),i(o,r),o}}function l(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function u(e,t){var n=t.bind(e);return n}function c(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=u(e,n)}}var f=n(289),p=n(30),d=(n(124),n(123),n(304)),h=n(11),g=n(95),m=n(5),v=n(117),_=n(58),y=(n(10),_({mixins:null})),b=v({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),w=[],x={mixins:b.DEFINE_MANY,statics:b.DEFINE_MANY,propTypes:b.DEFINE_MANY,contextTypes:b.DEFINE_MANY,childContextTypes:b.DEFINE_MANY,getDefaultProps:b.DEFINE_MANY_MERGED,getInitialState:b.DEFINE_MANY_MERGED,getChildContext:b.DEFINE_MANY_MERGED,render:b.DEFINE_ONCE,componentWillMount:b.DEFINE_MANY,componentDidMount:b.DEFINE_MANY,componentWillReceiveProps:b.DEFINE_MANY,shouldComponentUpdate:b.DEFINE_ONCE,componentWillUpdate:b.DEFINE_MANY,componentDidUpdate:b.DEFINE_MANY,componentWillUnmount:b.DEFINE_MANY,updateComponent:b.OVERRIDE_BASE},C={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)o(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=h({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=h({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=s(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=h({},e.propTypes,t)},statics:function(e,t){a(e,t)},autobind:function(){}},E={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(e,t){this.updater.enqueueSetProps(this,e),t&&this.updater.enqueueCallback(this,t)},replaceProps:function(e,t){this.updater.enqueueReplaceProps(this,e),t&&this.updater.enqueueCallback(this,t)}},T=function(){};h(T.prototype,f.prototype,E);var P={createClass:function(e){var t=function(e,t,n){this.__reactAutoBindMap&&c(this),this.props=e,this.context=t,this.refs=g,this.updater=n||d,this.state=null;var r=this.getInitialState?this.getInitialState():null;"object"!=typeof r||Array.isArray(r)?m(!1):void 0,this.state=r};t.prototype=new T,t.prototype.constructor=t,w.forEach(o.bind(null,t)),o(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:m(!1);for(var n in x)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){w.push(e)}}};e.exports=P},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||o}var o=n(304),a=(n(127),n(95)),i=n(5);n(10);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?i(!1):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t)},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e)};e.exports=r},function(e,t,n){"use strict";var r=n(53),o=n(293),a=n(295),i=n(85),s=n(26),l=n(36),u=n(69),c=n(37),f=n(179),p=n(180),d=n(792);n(10);a.inject();var h=l.measure("React","render",s.render),g={findDOMNode:p,render:h,unmountComponentAtNode:s.unmountComponentAtNode,version:f,unstable_batchedUpdates:c.batchedUpdates,unstable_renderSubtreeIntoContainer:d};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:i,Mount:s,Reconciler:u,TextComponent:o});e.exports=g},function(e,t){"use strict";var n={useCreateElement:!1};e.exports=n},function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=i.getValue(e);null!=t&&o(this,Boolean(e.multiple),t)}}function o(e,t,n){var r,o,a=s.getNode(e._rootNodeID).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<a.length;o++){var i=r.hasOwnProperty(a[o].value);a[o].selected!==i&&(a[o].selected=i)}}else{for(r=""+n,o=0;o<a.length;o++)if(a[o].value===r)return void(a[o].selected=!0);a.length&&(a[0].selected=!0)}}function a(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);return this._wrapperState.pendingUpdate=!0,l.asap(r,this),n}var i=n(174),s=n(26),l=n(37),u=n(11),c=(n(10),"__ReactDOMSelect_value$"+Math.random().toString(36).slice(2)),f={valueContextKey:c,getNativeProps:function(e,t,n){return u({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=i.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,onChange:a.bind(e),wasMultiple:Boolean(t.multiple)}},processChildContext:function(e,t,n){var r=u({},n);return r[c]=e._wrapperState.initialValue,r},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=i.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,o(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?o(e,Boolean(t.multiple),t.defaultValue):o(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=f},function(e,t,n){"use strict";var r=n(285),o=n(173),a=n(175),i=n(26),s=n(11),l=n(128),u=n(187),c=(n(190),function(e){});s(c.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){if(this._rootNodeID=e,t.useCreateElement){var r=n[i.ownerDocumentContextKey],a=r.createElement("span");return o.setAttributeForID(a,e),i.getID(a),u(a,this._stringText),a}var s=l(this._stringText);return t.renderToStaticMarkup?s:"<span "+o.createMarkupForID(e)+">"+s+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=i.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){a.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=c},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(37),a=n(126),i=n(11),s=n(44),l={initialize:s,close:function(){p.isBatchingUpdates=!1}},u={initialize:s,close:o.flushBatchedUpdates.bind(o)},c=[u,l];i(r.prototype,a.Mixin,{getTransactionWrappers:function(){return c}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,a){var i=p.isBatchingUpdates;p.isBatchingUpdates=!0,i?e(t,n,r,o,a):f.perform(e,null,t,n,r,o,a)}};e.exports=p},function(e,t,n){"use strict";function r(){if(!T){T=!0,v.EventEmitter.injectReactEventListener(m),v.EventPluginHub.injectEventPluginOrder(s),v.EventPluginHub.injectInstanceHandle(_),v.EventPluginHub.injectMount(y),v.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:C,EnterLeaveEventPlugin:l,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:o}),v.NativeComponent.injectGenericComponentClass(h),v.NativeComponent.injectTextComponentClass(g),v.Class.injectMixin(f),v.DOMProperty.injectDOMPropertyConfig(c),v.DOMProperty.injectDOMPropertyConfig(E),v.EmptyComponent.injectEmptyComponent("noscript"),v.Updates.injectReconcileTransaction(b),v.Updates.injectBatchingStrategy(d),v.RootIndex.injectCreateReactRootIndex(u.canUseDOM?i.createReactRootIndex:x.createReactRootIndex),v.Component.injectEnvironment(p)}}var o=n(739),a=n(741),i=n(742),s=n(744),l=n(745),u=n(23),c=n(748),f=n(750),p=n(175),d=n(294),h=n(754),g=n(293),m=n(762),v=n(763),_=n(85),y=n(26),b=n(767),w=n(773),x=n(774),C=n(775),E=n(772),T=!1;e.exports={inject:r}},function(e,t,n){"use strict";function r(){if(f.current){var e=f.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;a("uniqueKey",e,t)}}function a(e,t,n){var o=r();if(!o){var a="string"==typeof n?n:n.displayName||n.name;a&&(o=" Check the top-level render call using <"+a+">.")}var i=h[e]||(h[e]={});if(i[o])return null;i[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==f.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function i(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];u.isValidElement(r)&&o(r,t)}else if(u.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var a=p(e);if(a&&a!==e.entries)for(var i,s=a.call(e);!(i=s.next()).done;)u.isValidElement(i.value)&&o(i.value,t)}}function s(e,t,n,o){for(var a in t)if(t.hasOwnProperty(a)){var i;try{"function"!=typeof t[a]?d(!1):void 0,i=t[a](n,a,e,o)}catch(s){i=s}if(i instanceof Error&&!(i.message in g)){g[i.message]=!0;r()}}}function l(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name;t.propTypes&&s(n,t.propTypes,e.props,c.prop),"function"==typeof t.getDefaultProps}}var u=n(30),c=n(124),f=(n(123),n(53)),p=(n(127),n(184)),d=n(5),h=(n(10),{}),g={},m={createElement:function(e,t,n){var r="string"==typeof e||"function"==typeof e,o=u.createElement.apply(this,arguments);if(null==o)return o;if(r)for(var a=2;a<arguments.length;a++)i(arguments[a],e);return l(o),o},createFactory:function(e){var t=m.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=u.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)i(arguments[o],r.type);return l(r),r}};e.exports=m},function(e,t,n){"use strict";var r,o=n(30),a=n(298),i=n(69),s=n(11),l={injectEmptyComponent:function(e){r=o.createElement(e)}},u=function(e){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=e(r)};s(u.prototype,{construct:function(e){},mountComponent:function(e,t,n){return a.registerNullComponentID(e),this._rootNodeID=e,i.mountComponent(this._renderedComponent,e,t,n)},receiveComponent:function(){},unmountComponent:function(e,t,n){i.unmountComponent(this._renderedComponent),a.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),u.injection=l,e.exports=u},function(e,t){"use strict";function n(e){return!!a[e]}function r(e){a[e]=!0}function o(e){delete a[e]}var a={},i={isNullComponentID:n,registerNullComponentID:r,deregisterNullComponentID:o};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){try{return t(n,r)}catch(a){return void(null===o&&(o=a))}}var o=null,a={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};e.exports=a},function(e,t,n){"use strict";function r(e){return a(document.documentElement,e)}var o=n(758),a=n(266),i=n(267),s=n(268),l={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:l.hasSelectionCapabilities(e)?l.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(l.hasSelectionCapabilities(n)&&l.setSelection(n,o),i(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var a=e.createTextRange();a.collapse(!0),a.moveStart("character",n),a.moveEnd("character",r-n),a.select()}else o.setOffsets(e,t)}};e.exports=l},function(e,t,n){"use strict";var r=n(784),o=/\/?>/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=a},function(e,t,n){"use strict";var r=n(117),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=f[t];return null==n&&(f[t]=n=u(t)),n}function o(e){return c?void 0:l(!1),new c(e.type,e.props)}function a(e){return new p(e)}function i(e){return e instanceof p}var s=n(11),l=n(5),u=null,c=null,f={},p=null,d={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){p=e},injectComponentClasses:function(e){s(f,e)}},h={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:a,isTextComponent:i,injection:d};e.exports=h},function(e,t,n){"use strict";function r(e,t){}var o=(n(10),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")},enqueueSetProps:function(e,t){r(e,"setProps")},enqueueReplaceProps:function(e,t){r(e,"replaceProps")}});e.exports=o},function(e,t,n){"use strict";function r(e){function t(t,n,r,o,a,i){if(o=o||x,i=i||r,null==n[r]){var s=y[a];return t?new Error("Required "+s+" `"+i+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,a,i)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,a){var i=t[n],s=g(i);if(s!==e){var l=y[o],u=m(i);return new Error("Invalid "+l+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function a(){return r(b.thatReturns(null))}function i(e){function t(t,n,r,o,a){var i=t[n];if(!Array.isArray(i)){var s=y[o],l=g(i);return new Error("Invalid "+s+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<i.length;u++){var c=e(i,u,r,o,a+"["+u+"]");if(c instanceof Error)return c}return null}return r(t)}function s(){function e(e,t,n,r,o){if(!_.isValidElement(e[t])){var a=y[r];return new Error("Invalid "+a+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(e)}function l(e){function t(t,n,r,o,a){if(!(t[n]instanceof e)){var i=y[o],s=e.name||x,l=v(t[n]);return new Error("Invalid "+i+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return r(t)}function u(e){function t(t,n,r,o,a){for(var i=t[n],s=0;s<e.length;s++)if(i===e[s])return null;var l=y[o],u=JSON.stringify(e);return new Error("Invalid "+l+" `"+a+"` of value `"+i+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function c(e){function t(t,n,r,o,a){var i=t[n],s=g(i);if("object"!==s){var l=y[o];return new Error("Invalid "+l+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var u in i)if(i.hasOwnProperty(u)){var c=e(i,u,r,o,a+"."+u);if(c instanceof Error)return c}return null}return r(t)}function f(e){function t(t,n,r,o,a){for(var i=0;i<e.length;i++){var s=e[i];if(null==s(t,n,r,o,a))return null}var l=y[o];return new Error("Invalid "+l+" `"+a+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function p(){function e(e,t,n,r,o){if(!h(e[t])){var a=y[r];return new Error("Invalid "+a+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function d(e){function t(t,n,r,o,a){var i=t[n],s=g(i);if("object"!==s){var l=y[o];return new Error("Invalid "+l+" `"+a+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var c=e[u];if(c){var f=c(i,u,r,o,a+"."+u);if(f)return f}}return null}return r(t)}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||_.isValidElement(e))return!0;var t=w(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!h(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!h(o[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function m(e){var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){return e.constructor&&e.constructor.name?e.constructor.name:"<<anonymous>>"}var _=n(30),y=n(123),b=n(44),w=n(184),x="<<anonymous>>",C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:a(),arrayOf:i,element:s(),instanceOf:l,node:p(),objectOf:c,oneOf:u,oneOfType:f,shape:d};e.exports=C},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==t?o(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=n(5);e.exports=r},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t,n){"use strict";function r(){return!a&&o.canUseDOM&&(a="textContent"in document.documentElement?"textContent":"innerText"),a}var o=n(23),a=null;e.exports=r},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D compositeSampler;\nuniform sampler2D layerSampler;\nvarying vec2 v_texCoord;\n\nvoid main() {\n // Sample the texture containing what we have composited so far\n vec4 color = texture2D(compositeSampler, v_texCoord);\n\n // Sample the new layer to be composited in\n vec4 compColor = texture2D(layerSampler, v_texCoord);\n\n/*\n // Choose the fragment with the greater depth value\n if (color.a > compColor.a) {\n gl_FragColor = color;\n } else {\n gl_FragColor = compColor;\n }\n*/\n\n // Another way to choose the fragment with the greater depth value\n float stepVal = step((compColor.a - color.a), 0.0);\n gl_FragColor = (stepVal * color) + ((1.0 - stepVal) * compColor);\n\n}\n"},function(e,t){e.exports='\nprecision mediump float;\n\nuniform sampler2D underLayerSampler;\nuniform sampler2D overLayerSampler;\nvarying vec2 v_texCoord;\n\nvoid main() {\n vec4 overColor = texture2D(overLayerSampler, v_texCoord);\n vec3 colA = overColor.rgb;\n float alphA = overColor.a;\n\n vec4 underColor = texture2D(underLayerSampler, v_texCoord);\n vec3 colB = underColor.rgb;\n float alphB = underColor.a;\n\n // Well-known "over" operator (A over B, both partially transparent)\n float alphOut = alphA + (alphB * (1.0 - alphA));\n vec3 colOut = ((colA * alphA) + (colB * alphB * (1.0 - alphA))) / alphOut;\n\n gl_FragColor = vec4(colOut.rgb, alphOut);\n}'},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D u_image;\nvarying vec2 v_texCoord;\n\nvoid main() {\n gl_FragColor = texture2D(u_image, vec2(v_texCoord.x, 1.0 - v_texCoord.y));\n}"},function(e,t,n){var r=n(663);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(677);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){var r;/** @license MIT License (c) copyright 2013-2014 original author or authors */ +!function(o){r=function(e){function t(e,t){return u(e,this,null==t?[]:c.call(t))}function r(e){var t=arguments.length>1?c.call(arguments,1):[];return function(){return u(e,this,t.concat(c.call(arguments)))}}function o(e,t,n){return l(r,t,n,e)}function a(e){var t=c.call(arguments,1);return function(){var n=this,r=c.call(arguments),o=s.apply(n,[e].concat(r));return i.reduce(t,function(e,t){return t.call(n,e)},o)}}var i=n(60),s=i["try"],l=n(855),u=n(194)(i.Promise),c=Array.prototype.slice;return{lift:r,liftAll:o,call:s,apply:t,compose:a}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){function e(t){Error.call(this),this.message=t,this.name=e.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){function e(){return{state:"pending"}}function t(e){return{state:"rejected",reason:e}}function n(e){return{state:"fulfilled",value:e}}function r(r){var o=r.state();return 0===o?e():o>0?n(r.value):t(r.value)}return{pending:e,fulfilled:n,rejected:t,inspect:r}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){function e(e){try{throw new Error}catch(t){e.stack=t.stack}}function t(e){e.stack=(new Error).stack}function n(e){return o(e)}function r(e){var t=new Error;return t.stack=n(e),t}function o(e){for(var t=!1,n="",r=0;r<e.length;++r)t?n+="\n"+e[r]:(n+=e[r],t=!0);return n}var a,i,s;return Error.captureStackTrace?(a=function(e){return e&&e.stack&&e.stack.split("\n")},s=n,i=Error.captureStackTrace):(a=function(e){var t=e&&e.stack&&e.stack.split("\n");return t&&e.message&&t.unshift(e.message),t},function(){var o=new Error;"string"!=typeof o.stack?(s=n,i=e):(s=r,i=t)}()),{parse:a,format:s,captureStack:i}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){e.exports=n(195)},function(e,t,n){function r(e,t,n,r){var n=n||1e3,r=r||32,o={keySize:r/4,iterations:n,hasher:a.algo.SHA256},i=a.PBKDF2(e,t,o);return i.toString(a.enc.Base64)}function o(e,t){return a.HmacSHA256(t,e).toString(a.enc.Base64)}var a=n(642);t.sign=o,t.derive_key=r},function(e,t,n){function r(e,t,n){var r=e.defer();return navigator.id.watch({loggedInUser:t,onlogin:function(e){r.resolve(e)},onlogout:function(){e.leave("wamp.close.logout")}}),r.promise.then?r.promise:r}n(60),n(318);t.auth=r},function(e,t,n){function r(){this._repository={}}r.prototype.register=function(e,t){this._repository[e]=t},r.prototype.isRegistered=function(e){return!!this._repository[e]},r.prototype.get=function(e){if(void 0!==this._repository[e])return this._repository[e];throw"no such transport: "+e},r.prototype.list=function(){var e=[];for(var t in this._repository)e.push(t);return e};var o=new r,a=n(336);o.register("websocket",a.Factory);var i=n(335);o.register("longpoll",i.Factory),t.transports=o},function(e,t,n){(function(e){var r=n(60),o=n(196),a=n(88),i=n(71),s=n(195),l=function(t){var n=this;n._options=t,t&&t.use_es6_promises?"Promise"in e?n._defer=function(){var e={};return e.promise=new Promise(function(t,n){e.resolve=t,e.reject=n}),e}:(i.debug("Warning: ES6 promises requested, but not found! Falling back to whenjs."),n._defer=r.defer):t&&t.use_deferred?n._defer=t.use_deferred:n._defer=r.defer,n._options.transports||(n._options.transports=[{type:"websocket",url:n._options.url}]),n._transport_factories=[],n._init_transport_factories(),n._session=null,n._session_close_reason=null,n._session_close_message=null,void 0!==n._options.retry_if_unreachable?n._retry_if_unreachable=n._options.retry_if_unreachable:n._retry_if_unreachable=!0,n._max_retries=n._options.max_retries||15,n._initial_retry_delay=n._options.initial_retry_delay||1.5,n._max_retry_delay=n._options.max_retry_delay||300,n._retry_delay_growth=n._options.retry_delay_growth||1.5,n._retry_delay_jitter=n._options.retry_delay_jitter||.1,n._connect_successes=0,n._retry=!1,n._retry_count=0,n._retry_delay=n._initial_retry_delay,n._is_retrying=!1,n._retry_timer=null};l.prototype._create_transport=function(){for(var e=0;e<this._transport_factories.length;++e){var t=this._transport_factories[e];i.debug("trying to create WAMP transport of type: "+t.type);try{var n=t.create();if(n)return i.debug("using WAMP transport type: "+t.type),n}catch(r){i.debug("could not create WAMP transport '"+t.type+"': "+r)}}return null},l.prototype._init_transport_factories=function(){var e,t,n,r;a.assert(this._options.transports,"No transport.factory specified"),e=this._options.transports;for(var o=0;o<this._options.transports.length;++o){t=this._options.transports[o],t.url||(t.url=this._options.url),t.protocols||(t.protocols=this._options.protocols),a.assert(t.type,"No transport.type specified"),a.assert("string"==typeof t.type,"transport.type must be a string");try{r=s.transports.get(t.type),r&&(n=new r(t),this._transport_factories.push(n))}catch(i){console.error(i)}}},l.prototype._autoreconnect_reset_timer=function(){var e=this;e._retry_timer&&clearTimeout(e._retry_timer),e._retry_timer=null},l.prototype._autoreconnect_reset=function(){var e=this;e._autoreconnect_reset_timer(),e._retry_count=0,e._retry_delay=e._initial_retry_delay,e._is_retrying=!1},l.prototype._autoreconnect_advance=function(){var e=this;e._retry_delay_jitter&&(e._retry_delay=a.rand_normal(e._retry_delay,e._retry_delay*e._retry_delay_jitter)),e._retry_delay>e._max_retry_delay&&(e._retry_delay=e._max_retry_delay),e._retry_count+=1;var t;return t=e._retry&&e._retry_count<=e._max_retries?{count:e._retry_count,delay:e._retry_delay,will_retry:!0}:{count:null,delay:null,will_retry:!1},e._retry_delay_growth&&(e._retry_delay=e._retry_delay*e._retry_delay_growth),t},l.prototype.open=function(){function e(){if(t._transport=t._create_transport(),t._transport)t._session=new o.Session(t._transport,t._defer,t._options.onchallenge),t._session_close_reason=null,t._session_close_message=null,t._transport.onopen=function(){t._autoreconnect_reset(),t._connect_successes+=1,t._session.join(t._options.realm,t._options.authmethods,t._options.authid)},t._session.onjoin=function(e){if(t.onopen)try{t.onopen(t._session,e)}catch(n){i.debug("Exception raised from app code while firing Connection.onopen()",n)}},t._session.onleave=function(e,n){t._session_close_reason=e,t._session_close_message=n.message||"",t._retry=!1,t._transport.close(1e3)},t._transport.onclose=function(n){t._autoreconnect_reset_timer(),t._transport=null;var r=null;0===t._connect_successes?(r="unreachable",t._retry_if_unreachable||(t._retry=!1)):r=n.wasClean?"closed":"lost";var o=t._autoreconnect_advance();if(t.onclose){var a={reason:t._session_close_reason,message:t._session_close_message,retry_delay:o.delay,retry_count:o.count,will_retry:o.will_retry};try{var s=t.onclose(r,a)}catch(l){i.debug("Exception raised from app code while firing Connection.onclose()",l)}}t._session&&(t._session._id=null,t._session=null,t._session_close_reason=null,t._session_close_message=null),t._retry&&!s&&(o.will_retry?(t._is_retrying=!0,i.debug("retrying in "+o.delay+" s"),t._retry_timer=setTimeout(e,1e3*o.delay)):i.debug("giving up trying to reconnect"))};else if(t._retry=!1,t.onclose){var n={reason:null,message:null,retry_delay:null,retry_count:null,will_retry:!1};t.onclose("unsupported",n)}}var t=this;if(t._transport)throw"connection already open (or opening)";t._autoreconnect_reset(),t._retry=!0,e()},l.prototype.close=function(e,t){var n=this;if(!n._transport&&!n._is_retrying)throw"connection already closed";n._retry=!1,n._session&&n._session.isOpen?n._session.leave(e,t):n._transport&&n._transport.close(1e3)},Object.defineProperty(l.prototype,"defer",{get:function(){return this._defer}}),Object.defineProperty(l.prototype,"session",{get:function(){return this._session}}),Object.defineProperty(l.prototype,"isOpen",{get:function(){return!(!this._session||!this._session.isOpen)}}),Object.defineProperty(l.prototype,"isConnected",{get:function(){return!!this._transport}}),Object.defineProperty(l.prototype,"transport",{get:function(){return this._transport?this._transport:{info:{type:"none",url:null,protocol:null}}}}),Object.defineProperty(l.prototype,"isRetrying",{get:function(){return this._is_retrying}}),t.Connection=l}).call(t,function(){return this}())},function(e,t,n){n(332),n(328),n(333),n(330),n(329),n(334),n(331)},function(e,t){"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e){"use strict";var t,n,r,o;if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");if(n=Object(this),t=n.length>>>0,o=0,arguments.length>=2)r=arguments[1];else{for(;t>o&&!o in n;)o++;if(o>=t)throw new TypeError("Reduce of empty array with no initial value");r=n[o++]}for(;t>o;o++)o in n&&(r=e(r,n[o],o,n));return r}),"indexOf"in Array.prototype||(Array.prototype.indexOf=function(e,t){void 0===t&&(t=0),0>t&&(t+=this.length),0>t&&(t=0);for(var n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1}),"lastIndexOf"in Array.prototype||(Array.prototype.lastIndexOf=function(e,t){for(void 0===t&&(t=this.length-1),0>t&&(t+=this.length),t>this.length-1&&(t=this.length-1),t++;t-- >0;)if(t in this&&this[t]===e)return t;return-1}),"forEach"in Array.prototype||(Array.prototype.forEach=function(e,t){for(var n=0,r=this.length;r>n;n++)n in this&&e.call(t,this[n],n,this)}),"map"in Array.prototype||(Array.prototype.map=function(e,t){for(var n=new Array(this.length),r=0,o=this.length;o>r;r++)r in this&&(n[r]=e.call(t,this[r],r,this));return n}),"filter"in Array.prototype||(Array.prototype.filter=function(e,t){for(var n,r=[],o=0,a=this.length;a>o;o++)o in this&&e.call(t,n=this[o],o,this)&&r.push(n);return r}),"every"in Array.prototype||(Array.prototype.every=function(e,t){for(var n=0,r=this.length;r>n;n++)if(n in this&&!e.call(t,this[n],n,this))return!1;return!0}),"some"in Array.prototype||(Array.prototype.some=function(e,t){for(var n=0,r=this.length;r>n;n++)if(n in this&&e.call(t,this[n],n,this))return!0;return!1}),"function"!=typeof Array.prototype.reduceRight&&(Array.prototype.reduceRight=function(e){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var t,n=Object(this),r=n.length>>>0,o=r-1;if(arguments.length>=2)t=arguments[1];else{for(;o>=0&&!o in n;)o--;if(0>o)throw new TypeError("Reduce of empty array with no initial value");t=n[o--]}for(;o>=0;o--)o in n&&(t=e(t,n[o],o,n));return t})},function(e,t){(function(e){!function(e){e||(e=window.console={log:function(e,t,n,r,o){},info:function(e,t,n,r,o){},warn:function(e,t,n,r,o){},error:function(e,t,n,r,o){},assert:function(e,t){}}),"object"==typeof e.log&&(e.log=Function.prototype.call.bind(e.log,e),e.info=Function.prototype.call.bind(e.info,e),e.warn=Function.prototype.call.bind(e.warn,e),e.error=Function.prototype.call.bind(e.error,e),e.debug=Function.prototype.call.bind(e.info,e)),"group"in e||(e.group=function(t){e.info("\n--- "+t+" ---\n")}),"groupEnd"in e||(e.groupEnd=function(){e.log("\n")}),"assert"in e||(e.assert=function(e,t){if(!e)try{throw new Error("assertion failed: "+t)}catch(n){setTimeout(function(){throw n},0)}}),"time"in e||function(){var t={};e.time=function(e){t[e]=(new Date).getTime()},e.timeEnd=function(n){var r=(new Date).getTime(),o=n in t?r-t[n]:0;e.info(n+": "+o+"ms")}}()}(e.console)}).call(t,function(){return this}())},function(e,t){Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,Array.prototype.concat.apply(n,arguments))}})},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return 10>e?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,o,a,i,s=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,i=[],"[object Array]"===Object.prototype.toString.apply(l)){for(a=l.length,n=0;a>n;n+=1)i[n]=str(n,l)||"null";return o=0===i.length?"[]":gap?"[\n"+gap+i.join(",\n"+gap)+"\n"+s+"]":"["+i.join(",")+"]",gap=s,o}if(rep&&"object"==typeof rep)for(a=rep.length,n=0;a>n;n+=1)"string"==typeof rep[n]&&(r=rep[n],o=str(r,l),o&&i.push(quote(r)+(gap?": ":":")+o));else for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(o=str(r,l),o&&i.push(quote(r)+(gap?": ":":")+o));return o=0===i.length?"{}":gap?"{\n"+gap+i.join(",\n"+gap)+"\n"+s+"}":"{"+i.join(",")+"}",gap=s,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx,escapable,gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;n>r;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,JSON.parse=function(text,reviver){function walk(e,t){var n,r,o=e[t];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r=walk(o,n),void 0!==r?o[n]=r:delete o[n]);return reviver.call(e,t,o)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),exports.JSON=JSON},function(e,t){Object.create||(Object.create=function(){function e(){}return function(t){if(1!=arguments.length)throw new Error("Object.create implementation only accepts one parameter.");return e.prototype=t,new e}}()),Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(o){if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError("Object.keys called on non-object");var a,i,s=[];for(a in o)e.call(o,a)&&s.push(a);if(t)for(i=0;r>i;i++)e.call(o,n[i])&&s.push(n[i]);return s}}())},function(e,t){"trim"in String.prototype||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")})},function(e,t){(function(e){"undefined"==typeof e.Uint8Array&&!function(e,t){"use strict";function n(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return null===e?"null":"object"}}function r(e){return Object.prototype.toString.call(e).replace(/^\[object *|\]$/g,"")}function o(e){return"function"==typeof e}function a(e){if(null===e||e===R)throw TypeError();return Object(e)}function i(e){return e>>0}function s(e){return e>>>0}function l(e){function t(t){Object.defineProperty(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}if(e.length>D)throw RangeError("Array too large for polyfill");var n;for(n=0;n<e.length;n+=1)t(n)}function u(e,t){var n=32-t;return e<<n>>n}function c(e,t){var n=32-t;return e<<n>>>n}function f(e){return[255&e]}function p(e){return u(e[0],8)}function d(e){return[255&e]}function h(e){return c(e[0],8)}function g(e){return e=j(Number(e)),[0>e?0:e>255?255:255&e]}function m(e){return[e>>8&255,255&e]}function v(e){return u(e[0]<<8|e[1],16)}function _(e){return[e>>8&255,255&e]}function y(e){return c(e[0]<<8|e[1],16)}function b(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function w(e){return u(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function x(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function C(e){return c(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function E(e,t,n){function r(e){var t=O(e),n=e-t;return.5>n?t:n>.5?t+1:t%2?t+1:t}var o,a,i,s,l,u,c,f=(1<<t-1)-1;for(e!==e?(a=(1<<t)-1,i=B(2,n-1),o=0):e===1/0||e===-(1/0)?(a=(1<<t)-1,i=0,o=0>e?1:0):0===e?(a=0,i=0,o=1/e===-(1/0)?1:0):(o=0>e,e=I(e),e>=B(2,1-f)?(a=L(O(F(e)/A),1023),i=r(e/B(2,a)*B(2,n)),i/B(2,n)>=2&&(a+=1,i=1),a>f?(a=(1<<t)-1,i=0):(a+=f,i-=B(2,n))):(a=0,i=r(e/B(2,1-f-n)))),l=[],s=n;s;s-=1)l.push(i%2?1:0),i=O(i/2);for(s=t;s;s-=1)l.push(a%2?1:0),a=O(a/2);for(l.push(o?1:0),l.reverse(),u=l.join(""),c=[];u.length;)c.push(parseInt(u.substring(0,8),2)),u=u.substring(8);return c}function T(e,t,n){var r,o,a,i,s,l,u,c,f=[];for(r=e.length;r;r-=1)for(a=e[r-1],o=8;o;o-=1)f.push(a%2?1:0),a>>=1;return f.reverse(),i=f.join(""),s=(1<<t-1)-1,l=parseInt(i.substring(0,1),2)?-1:1,u=parseInt(i.substring(1,1+t),2),c=parseInt(i.substring(1+t),2),u===(1<<t)-1?0!==c?NaN:l*(1/0):u>0?l*B(2,u-s)*(1+c/B(2,n)):0!==c?l*B(2,-(s-1))*(c/B(2,n)):0>l?-0:0}function P(e){return T(e,11,52)}function k(e){return E(e,11,52)}function M(e){return T(e,8,23)}function S(e){return E(e,8,23)}var R=void 0,D=1e5,A=Math.LN2,I=Math.abs,O=Math.floor,F=Math.log,N=Math.max,L=Math.min,B=Math.pow,j=Math.round;!function(){var e=Object.defineProperty,t=!function(){try{return Object.defineProperty({},"x",{})}catch(e){return!1}}();e&&!t||(Object.defineProperty=function(t,n,r){if(e)try{return e(t,n,r)}catch(o){}if(t!==Object(t))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in r&&Object.prototype.__defineGetter__.call(t,n,r.get),Object.prototype.__defineSetter__&&"set"in r&&Object.prototype.__defineSetter__.call(t,n,r.set),"value"in r&&(t[n]=r.value),t})}(),function(){function u(e){if(e=i(e),0>e)throw RangeError("ArrayBuffer size is not a small enough positive integer.");Object.defineProperty(this,"byteLength",{value:e}),Object.defineProperty(this,"_bytes",{value:Array(e)});for(var t=0;e>t;t+=1)this._bytes[t]=0}function c(){if(!arguments.length||"object"!=typeof arguments[0])return function(e){if(e=i(e),0>e)throw RangeError("length is not a small enough positive integer.");Object.defineProperty(this,"length",{value:e}),Object.defineProperty(this,"byteLength",{value:e*this.BYTES_PER_ELEMENT}),Object.defineProperty(this,"buffer",{value:new u(this.byteLength)}),Object.defineProperty(this,"byteOffset",{value:0})}.apply(this,arguments);if(arguments.length>=1&&"object"===n(arguments[0])&&arguments[0]instanceof c)return function(e){if(this.constructor!==e.constructor)throw TypeError();var t=e.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new u(t)}),Object.defineProperty(this,"byteLength",{value:t}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:e.length});for(var n=0;n<this.length;n+=1)this._setter(n,e._getter(n))}.apply(this,arguments);if(arguments.length>=1&&"object"===n(arguments[0])&&!(arguments[0]instanceof c)&&!(arguments[0]instanceof u||"ArrayBuffer"===r(arguments[0])))return function(e){var t=e.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new u(t)}),Object.defineProperty(this,"byteLength",{value:t}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:e.length});for(var n=0;n<this.length;n+=1){var r=e[n];this._setter(n,Number(r))}}.apply(this,arguments);if(arguments.length>=1&&"object"===n(arguments[0])&&(arguments[0]instanceof u||"ArrayBuffer"===r(arguments[0])))return function(e,t,n){if(t=s(t),t>e.byteLength)throw RangeError("byteOffset out of range");if(t%this.BYTES_PER_ELEMENT)throw RangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(n===R){var r=e.byteLength-t;if(r%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");n=r/this.BYTES_PER_ELEMENT}else n=s(n),r=n*this.BYTES_PER_ELEMENT;if(t+r>e.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:e}),Object.defineProperty(this,"byteLength",{value:r}),Object.defineProperty(this,"byteOffset",{value:t}),Object.defineProperty(this,"length",{value:n})}.apply(this,arguments);throw TypeError()}function E(e,t,n){var r=function(){Object.defineProperty(this,"constructor",{value:r}),c.apply(this,arguments),l(this)};"__proto__"in r?r.__proto__=c:(r.from=c.from,r.of=c.of),r.BYTES_PER_ELEMENT=e;var o=function(){};return o.prototype=T,r.prototype=new o,Object.defineProperty(r.prototype,"BYTES_PER_ELEMENT",{value:e}),Object.defineProperty(r.prototype,"_pack",{value:t}),Object.defineProperty(r.prototype,"_unpack",{value:n}),r}e.ArrayBuffer=e.ArrayBuffer||u,Object.defineProperty(c,"from",{value:function(e){return new this(e)}}),Object.defineProperty(c,"of",{value:function(){return new this(arguments)}});var T={};c.prototype=T,Object.defineProperty(c.prototype,"_getter",{value:function(e){if(arguments.length<1)throw SyntaxError("Not enough arguments");if(e=s(e),e>=this.length)return R;var t,n,r=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,n+=1)r.push(this.buffer._bytes[n]);return this._unpack(r)}}),Object.defineProperty(c.prototype,"get",{value:c.prototype._getter}),Object.defineProperty(c.prototype,"_setter",{value:function(e,t){if(arguments.length<2)throw SyntaxError("Not enough arguments");if(e=s(e),!(e>=this.length)){var n,r,o=this._pack(t);for(n=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;n<this.BYTES_PER_ELEMENT;n+=1,r+=1)this.buffer._bytes[r]=o[n]}}}),Object.defineProperty(c.prototype,"constructor",{value:c}),Object.defineProperty(c.prototype,"copyWithin",{value:function(e,t){var n=arguments[2],r=a(this),o=r.length,l=s(o);l=N(l,0);var u,c=i(e);u=0>c?N(l+c,0):L(c,l);var f,p=i(t);f=0>p?N(l+p,0):L(p,l);var d;d=n===R?l:i(n);var h;h=0>d?N(l+d,0):L(d,l);var g,m=L(h-f,l-u);for(from<u&&f+m>u?(g=-1,f=f+m-1,u=u+m-1):g=1;count>0;)r._setter(u,r._getter(f)),f+=g,u+=g,m-=1;return r}}),Object.defineProperty(c.prototype,"every",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();for(var r=arguments[1],a=0;n>a;a++)if(!e.call(r,t._getter(a),a,t))return!1;return!0}}),Object.defineProperty(c.prototype,"fill",{value:function(e){var t=arguments[1],n=arguments[2],r=a(this),o=r.length,l=s(o);l=N(l,0);var u,c=i(t);u=0>c?N(l+c,0):L(c,l);var f;f=n===R?l:i(n);var p;for(p=0>f?N(l+f,0):L(f,l);p>u;)r._setter(u,e),u+=1;return r}}),Object.defineProperty(c.prototype,"filter",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();for(var r=[],a=arguments[1],i=0;n>i;i++){var l=t._getter(i);e.call(a,l,i,t)&&r.push(l)}return new this.constructor(r)}}),Object.defineProperty(c.prototype,"find",{value:function(e){var t=a(this),n=t.length,r=s(n);if(!o(e))throw TypeError();for(var i=arguments.length>1?arguments[1]:R,l=0;r>l;){var u=t._getter(l),c=e.call(i,u,l,t);if(Boolean(c))return u;++l}return R}}),Object.defineProperty(c.prototype,"findIndex",{value:function(e){var t=a(this),n=t.length,r=s(n);if(!o(e))throw TypeError();for(var i=arguments.length>1?arguments[1]:R,l=0;r>l;){var u=t._getter(l),c=e.call(i,u,l,t);if(Boolean(c))return l;++l}return-1}}),Object.defineProperty(c.prototype,"forEach",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();for(var r=arguments[1],a=0;n>a;a++)e.call(r,t._getter(a),a,t)}}),Object.defineProperty(c.prototype,"indexOf",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(0===n)return-1;var r,o=0;if(arguments.length>0&&(r=Number(arguments[1]),r!==o?o=0:0!==r&&r!==1/0&&r!==-(1/0)&&(o=(r>0||-1)*O(I(r)))),o>=n)return-1;for(var a=o>=0?o:N(n-I(o),0);n>a;a++)if(t._getter(a)===e)return a;return-1}}),Object.defineProperty(c.prototype,"join",{value:function(e){if(this===R||null===this)throw TypeError();for(var t=Object(this),n=s(t.length),r=Array(n),o=0;n>o;++o)r[o]=t._getter(o);return r.join(e===R?",":e)}}),Object.defineProperty(c.prototype,"lastIndexOf",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(0===n)return-1;var r=n;arguments.length>1&&(r=Number(arguments[1]),r!==r?r=0:0!==r&&r!==1/0&&r!==-(1/0)&&(r=(r>0||-1)*O(I(r))));for(var o=r>=0?L(r,n-1):n-I(r);o>=0;o--)if(t._getter(o)===e)return o;return-1}}),Object.defineProperty(c.prototype,"map",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();var r=[];r.length=n;for(var a=arguments[1],i=0;n>i;i++)r[i]=e.call(a,t._getter(i),i,t);return new this.constructor(r)}}),Object.defineProperty(c.prototype,"reduce",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();if(0===n&&1===arguments.length)throw TypeError();var r,a=0;for(r=arguments.length>=2?arguments[1]:t._getter(a++);n>a;)r=e.call(R,r,t._getter(a),a,t),a++;return r}}),Object.defineProperty(c.prototype,"reduceRight",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();if(0===n&&1===arguments.length)throw TypeError();var r,a=n-1;for(r=arguments.length>=2?arguments[1]:t._getter(a--);a>=0;)r=e.call(R,r,t._getter(a),a,t),a--;return r}}),Object.defineProperty(c.prototype,"reverse",{value:function(){if(this===R||null===this)throw TypeError();for(var e=Object(this),t=s(e.length),n=O(t/2),r=0,o=t-1;n>r;++r,--o){var a=e._getter(r);e._setter(r,e._getter(o)),e._setter(o,a)}return e}}),Object.defineProperty(c.prototype,"set",{value:function(e,t){if(arguments.length<1)throw SyntaxError("Not enough arguments");var n,r,o,a,i,l,u,c,f,p;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(n=arguments[0],o=s(arguments[1]),o+n.length>this.length)throw RangeError("Offset plus length of array is out of range");if(c=this.byteOffset+o*this.BYTES_PER_ELEMENT,f=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(p=[],i=0,l=n.byteOffset;f>i;i+=1,l+=1)p[i]=n.buffer._bytes[l];for(i=0,u=c;f>i;i+=1,u+=1)this.buffer._bytes[u]=p[i]}else for(i=0,l=n.byteOffset,u=c;f>i;i+=1,l+=1,u+=1)this.buffer._bytes[u]=n.buffer._bytes[l]}else{if("object"!=typeof arguments[0]||"undefined"==typeof arguments[0].length)throw TypeError("Unexpected argument type(s)");if(r=arguments[0],a=s(r.length),o=s(arguments[1]),o+a>this.length)throw RangeError("Offset plus length of array is out of range");for(i=0;a>i;i+=1)l=r[i],this._setter(o+i,Number(l))}}}),Object.defineProperty(c.prototype,"slice",{value:function(e,t){for(var n=a(this),r=n.length,o=s(r),l=i(e),u=0>l?N(o+l,0):L(l,o),c=t===R?o:i(t),f=0>c?N(o+c,0):L(c,o),p=f-u,d=n.constructor,h=new d(p),g=0;f>u;){var m=n._getter(u);h._setter(g,m),++u,++g}return h}}),Object.defineProperty(c.prototype,"some",{value:function(e){if(this===R||null===this)throw TypeError();var t=Object(this),n=s(t.length);if(!o(e))throw TypeError();for(var r=arguments[1],a=0;n>a;a++)if(e.call(r,t._getter(a),a,t))return!0;return!1}}),Object.defineProperty(c.prototype,"sort",{value:function(e){if(this===R||null===this)throw TypeError();for(var t=Object(this),n=s(t.length),r=Array(n),o=0;n>o;++o)r[o]=t._getter(o);for(e?r.sort(e):r.sort(),o=0;n>o;++o)t._setter(o,r[o]);return t}}),Object.defineProperty(c.prototype,"subarray",{value:function(e,t){function n(e,t,n){return t>e?t:e>n?n:e}e=i(e),t=i(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),0>e&&(e=this.length+e),0>t&&(t=this.length+t),e=n(e,0,this.length),t=n(t,0,this.length);var r=t-e;return 0>r&&(r=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,r)}});var D=E(1,f,p),A=E(1,d,h),F=E(1,g,h),B=E(2,m,v),j=E(2,_,y),W=E(4,b,w),U=E(4,x,C),V=E(4,S,M),z=E(8,k,P);e.Int8Array=t.Int8Array=e.Int8Array||D,e.Uint8Array=t.Uint8Array=e.Uint8Array||A,e.Uint8ClampedArray=t.Uint8ClampedArray=e.Uint8ClampedArray||F,e.Int16Array=t.Int16Array=e.Int16Array||B,e.Uint16Array=t.Uint16Array=e.Uint16Array||j,e.Int32Array=t.Int32Array=e.Int32Array||W,e.Uint32Array=t.Uint32Array=e.Uint32Array||U,e.Float32Array=t.Float32Array=e.Float32Array||V,e.Float64Array=t.Float64Array=e.Float64Array||z}(),function(){function t(e,t){return o(e.get)?e.get(t):e[t]}function n(e,t,n){if(!(e instanceof ArrayBuffer||"ArrayBuffer"===r(e)))throw TypeError();if(t=s(t),t>e.byteLength)throw RangeError("byteOffset out of range");if(n=n===R?e.byteLength-t:s(n),t+n>e.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:e}),Object.defineProperty(this,"byteLength",{value:n}),Object.defineProperty(this,"byteOffset",{value:t})}function a(n){return function(r,o){if(r=s(r),r+n.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");r+=this.byteOffset;for(var a=new e.Uint8Array(this.buffer,r,n.BYTES_PER_ELEMENT),i=[],u=0;u<n.BYTES_PER_ELEMENT;u+=1)i.push(t(a,u));return Boolean(o)===Boolean(l)&&i.reverse(),t(new n(new e.Uint8Array(i).buffer),0)}}function i(n){return function(r,o,a){if(r=s(r),r+n.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");var i,u,c=new n([o]),f=new e.Uint8Array(c.buffer),p=[];for(i=0;i<n.BYTES_PER_ELEMENT;i+=1)p.push(t(f,i));Boolean(a)===Boolean(l)&&p.reverse(),u=new Uint8Array(this.buffer,r,n.BYTES_PER_ELEMENT),u.set(p)}}var l=function(){var n=new e.Uint16Array([4660]),r=new e.Uint8Array(n.buffer);return 18===t(r,0)}();Object.defineProperty(n.prototype,"getUint8",{value:a(e.Uint8Array)}),Object.defineProperty(n.prototype,"getInt8",{value:a(e.Int8Array)}),Object.defineProperty(n.prototype,"getUint16",{value:a(e.Uint16Array)}),Object.defineProperty(n.prototype,"getInt16",{value:a(e.Int16Array)}),Object.defineProperty(n.prototype,"getUint32",{value:a(e.Uint32Array)}),Object.defineProperty(n.prototype,"getInt32",{value:a(e.Int32Array)}),Object.defineProperty(n.prototype,"getFloat32",{value:a(e.Float32Array)}),Object.defineProperty(n.prototype,"getFloat64",{value:a(e.Float64Array)}),Object.defineProperty(n.prototype,"setUint8",{value:i(e.Uint8Array)}),Object.defineProperty(n.prototype,"setInt8",{value:i(e.Int8Array)}),Object.defineProperty(n.prototype,"setUint16",{value:i(e.Uint16Array)}),Object.defineProperty(n.prototype,"setInt16",{value:i(e.Int16Array)}),Object.defineProperty(n.prototype,"setUint32",{value:i(e.Uint32Array)}),Object.defineProperty(n.prototype,"setInt32",{value:i(e.Int32Array)}),Object.defineProperty(n.prototype,"setFloat32",{value:i(e.Float32Array)}),Object.defineProperty(n.prototype,"setFloat64",{value:i(e.Float64Array)}),e.DataView=e.DataView||n}()}(t,window),"window"in e&&("Uint8ClampedArray"in window||(window.Uint8ClampedArray=e.Uint8Array))}).call(t,function(){return this}())},function(e,t,n){function r(e){var t=this;o.assert(void 0!==e.url,"options.url missing"),o.assert("string"==typeof e.url,"options.url must be a string"),t._options=e}var o=n(88),a=n(71);n(60);r.prototype.type="longpoll",r.prototype.create=function(){var e=this;a.debug("longpoll.Factory.create");var t={};return t.protocol=void 0,t.send=void 0,t.close=void 0,t.onmessage=function(){},t.onopen=function(){},t.onclose=function(){},t.info={type:"longpoll",url:null,protocol:"wamp.2.json"},t._run=function(){var n=null,r=!1,i=0,s=0,l={protocols:["wamp.2.json"]},u=e._options.request_timeout||2e3;o.http_post(e._options.url+"/open",JSON.stringify(l),u).then(function(l){function c(){s+=1,a.debug("longpoll.Transport: polling for message ..."),o.http_post(f+"/receive",null,u).then(function(e){if(e){var n=JSON.parse(e);a.debug("longpoll.Transport: message received",n),t.onmessage(n)}r||c()},function(e){a.debug("longpoll.Transport: could not receive message",e.code,e.text),r=!0;var n={code:1001,reason:"transport receive failure (HTTP/POST status "+e.code+" - '"+e.text+"')",wasClean:!1};t.onclose(n)})}n=JSON.parse(l);var f=e._options.url+"/"+n.transport;t.info.url=f,a.debug("longpoll.Transport: open",n),t.close=function(e,n){if(r)throw"transport is already closing"; +r=!0,o.http_post(f+"/close",null,u).then(function(){a.debug("longpoll.Transport: transport closed");var e={code:1e3,reason:"transport closed",wasClean:!0};t.onclose(e)},function(e){a.debug("longpoll.Transport: could not close transport",e.code,e.text)})},t.send=function(e){if(r)throw"transport is closing or closed already";i+=1,a.debug("longpoll.Transport: sending message ...",e);var n=JSON.stringify(e);o.http_post(f+"/send",n,u).then(function(){a.debug("longpoll.Transport: message sent")},function(e){a.debug("longpoll.Transport: could not send message",e.code,e.text),r=!0;var n={code:1001,reason:"transport send failure (HTTP/POST status "+e.code+" - '"+e.text+"')",wasClean:!1};t.onclose(n)})},c(),t.onopen()},function(e){a.debug("longpoll.Transport: could not open transport",e.code,e.text),r=!0;var n={code:1001,reason:"transport open failure (HTTP/POST status "+e.code+" - '"+e.text+"')",wasClean:!1};t.onclose(n)})},t._run(),t},t.Factory=r},function(e,t,n){(function(e){function r(e){var t=this;o.assert(void 0!==e.url,"options.url missing"),o.assert("string"==typeof e.url,"options.url must be a string"),e.protocols?o.assert(Array.isArray(e.protocols),"options.protocols must be an array"):e.protocols=["wamp.2.json"],t._options=e}var o=n(88),a=n(71);r.prototype.type="websocket",r.prototype.create=function(){var t=this,r={};return r.protocol=void 0,r.send=void 0,r.close=void 0,r.onmessage=function(){},r.onopen=function(){},r.onclose=function(){},r.info={type:"websocket",url:null,protocol:"wamp.2.json"},"window"in e?!function(){var e;if("WebSocket"in window)e=t._options.protocols?new window.WebSocket(t._options.url,t._options.protocols):new window.WebSocket(t._options.url);else{if(!("MozWebSocket"in window))throw"browser does not support WebSocket";e=t._options.protocols?new window.MozWebSocket(t._options.url,t._options.protocols):new window.MozWebSocket(t._options.url)}e.onmessage=function(e){a.debug("WebSocket transport receive",e.data);var t=JSON.parse(e.data);r.onmessage(t)},e.onopen=function(){r.info.url=t._options.url,r.onopen()},e.onclose=function(e){var t={code:e.code,reason:e.message,wasClean:e.wasClean};r.onclose(t)},r.send=function(t){var n=JSON.stringify(t);a.debug("WebSocket transport send",n),e.send(n)},r.close=function(t,n){e.close(t,n)}}():!function(){var e,o,a=n(861);t._options.protocols?(o=t._options.protocols,Array.isArray(o)&&(o=o.join(",")),e=new a(t._options.url,{protocol:o})):e=new a(t._options.url),r.send=function(t){var n=JSON.stringify(t);e.send(n,{binary:!1})},r.close=function(t,n){e.close()},e.on("open",function(){r.onopen()}),e.on("message",function(e,t){if(t.binary);else{var n=JSON.parse(e);r.onmessage(n)}}),e.on("close",function(e,t){var n={code:e,reason:t,wasClean:1e3===e};r.onclose(n)}),e.on("error",function(e){var t={code:1006,reason:"",wasClean:!1};r.onclose(t)})}(),r},t.Factory=r}).call(t,function(){return this}())},function(e,t,n){e.exports=n(338)},function(e,t,n){"use strict";function r(e){this.defaults=a.merge({},e),this.interceptors={request:new s,response:new s}}var o=n(341),a=n(45),i=n(340),s=n(339),l=n(347),u=n(345),c=n(342),f=n(198);r.prototype.request=function(e){"string"==typeof e&&(e=a.merge({url:arguments[0]},arguments[1])),e=a.merge(o,this.defaults,{method:"get"},e),e.baseURL&&!l(e.url)&&(e.url=u(e.baseURL,e.url)),e.withCredentials=e.withCredentials||this.defaults.withCredentials,e.data=f(e.data,e.headers,e.transformRequest),e.headers=a.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),a.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n};var p=new r(o),d=e.exports=c(r.prototype.request,p);d.create=function(e){return new r(e)},d.defaults=p.defaults,d.all=function(e){return Promise.all(e)},d.spread=n(350),d.interceptors=p.interceptors,a.forEach(["delete","get","head"],function(e){r.prototype[e]=function(t,n){return this.request(a.merge(n||{},{method:e,url:t}))},d[e]=c(r.prototype[e],p)}),a.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(a.merge(r||{},{method:e,url:t,data:n}))},d[e]=c(r.prototype[e],p)})},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(45);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){(function(t){"use strict";e.exports=function(e){return new Promise(function(r,o){try{var a;"function"==typeof e.adapter?a=e.adapter:"undefined"!=typeof XMLHttpRequest?a=n(197):"undefined"!=typeof t&&(a=n(197)),"function"==typeof a&&a(r,o,e)}catch(i){o(i)}})}}).call(t,n(97))},function(e,t,n){"use strict";var r=n(45),o=/^\)\]\}',?\n/,a={"Content-Type":"application/x-www-form-urlencoded"};e.exports={transformRequest:[function(e,t){return r.isFormData(e)?e:r.isArrayBuffer(e)?e:r.isArrayBufferView(e)?e.buffer:!r.isObject(e)||r.isFile(e)||r.isBlob(e)?e:(r.isUndefined(t)||(r.forEach(t,function(e,n){"content-type"===n.toLowerCase()&&(t["Content-Type"]=e)}),r.isUndefined(t["Content-Type"])&&(t["Content-Type"]="application/json;charset=utf-8")),JSON.stringify(e))}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(o,"");try{e=JSON.parse(e)}catch(t){}}return e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(a),post:r.merge(a),put:r.merge(a)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){"use strict";function n(e){this.message=e}function r(e){for(var t,r,a=String(e),i="",s=0,l=o;a.charAt(0|s)||(l="=",s%1);i+=l.charAt(63&t>>8-s%1*8)){if(r=a.charCodeAt(s+=.75),r>255)throw new n("INVALID_CHARACTER_ERR: DOM Exception 5");t=t<<8|r}return i}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(45);e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else{var i=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),a=i.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t){"use strict";e.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},function(e,t,n){"use strict";var r=n(45);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";var r=n(45);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(45);e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(a[t]=a[t]?a[t]+", "+n:n)}),a):a}},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Rendering=t.React=t.NativeUI=t.IO=t.Interaction=t.InfoViz=t.Common=void 0,n(463);var o=n(358),a=r(o),i=n(401),s=r(i),l=n(403),u=r(l),c=n(396),f=r(c),p=n(405),d=r(p),h=n(438),g=r(h),m=n(462),v=r(m);t.Common=a["default"],t.InfoViz=s["default"],t.Interaction=u["default"],t.IO=f["default"],t.NativeUI=d["default"],t.React=g["default"],t.Rendering=v["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={lookuptables:{spectralflip:{controlpoints:[{x:0,r:.3686274509803922,g:.3098039215686275,b:.6352941176470588},{x:.1,r:.196078431372549,g:.5333333333333333,b:.7411764705882353},{x:.2,r:.4,g:.7607843137254902,b:.6470588235294118},{x:.3,r:.6705882352941176,g:.8666666666666667,b:.6431372549019608},{x:.4,r:.9019607843137255,g:.9607843137254902,b:.596078431372549},{x:.5,r:1,g:1,b:.7490196078431373},{x:.6,r:.996078431372549,g:.8784313725490196,b:.5450980392156862},{x:.7,r:.9921568627450981,g:.6823529411764706,b:.3803921568627451},{x:.8,r:.9568627450980393,g:.4274509803921568,b:.2627450980392157},{x:.9,r:.8352941176470589,g:.2431372549019608,b:.3098039215686275},{x:1,r:.6196078431372549,g:.00392156862745098,b:.2588235294117647}],range:[0,1]},cold2warm:{controlpoints:[{x:0,r:.23137254902,g:.298039215686,b:.752941176471},{x:.5,r:.865,g:.865,b:.865},{x:1,r:.705882352941,g:.0156862745098,b:.149019607843}],range:[0,1]},rainbow:{controlpoints:[{x:0,r:0,g:0,b:1},{x:.25,r:0,g:1,b:1},{x:.5,r:0,g:1,b:0},{x:.75,r:1,g:1,b:0},{x:1,r:1,g:0,b:0}],range:[0,1]},"gray scale":{controlpoints:[{x:0,r:0,g:0,b:0},{x:1,r:1,g:1,b:1}],range:[0,1]},"gray scale flip":{controlpoints:[{x:0,r:1,g:1,b:1},{x:1,r:0,g:0,b:0}],range:[0,1]},spectral:{controlpoints:[{x:0,r:.6196078431372549,g:.00392156862745098,b:.2588235294117647},{x:.1,r:.8352941176470589,g:.2431372549019608,b:.3098039215686275},{x:.2,r:.9568627450980393,g:.4274509803921568,b:.2627450980392157},{x:.3,r:.9921568627450981,g:.6823529411764706,b:.3803921568627451},{x:.4,r:.996078431372549,g:.8784313725490196,b:.5450980392156862},{x:.5,r:1,g:1,b:.7490196078431373},{x:.6,r:.9019607843137255,g:.9607843137254902,b:.596078431372549},{x:.7,r:.6705882352941176,g:.8666666666666667,b:.6431372549019608},{x:.8,r:.4,g:.7607843137254902,b:.6470588235294118},{x:.9,r:.196078431372549,g:.5333333333333333,b:.7411764705882353},{x:1,r:.3686274509803922,g:.3098039215686275,b:.6352941176470588}],range:[0,1]},warm:{controlpoints:[{x:0,r:.4745098039215686,g:.09019607843137255,b:.09019607843137255},{x:.2,r:.7098039215686275,g:.00392156862745098,b:.00392156862745098},{x:.4,r:.9372549019607843,g:.2784313725490196,b:.09803921568627451},{x:.6,r:.9764705882352941,g:.5137254901960784,b:.1411764705882353},{x:.8,r:1,g:.7058823529411765,b:0},{x:1,r:1,g:.8980392156862745,b:.02352941176470588}],range:[0,1]},cool:{controlpoints:[{x:0,r:.4588235294117647,g:.6941176470588235,b:.00392156862745098},{x:.1666666666666667,r:.3450980392156863,g:.5019607843137255,b:.1607843137254902},{x:.3333333333333333,r:.3137254901960784,g:.8431372549019608,b:.7490196078431373},{x:.5,r:.1098039215686274,g:.5843137254901961,b:.803921568627451},{x:.6666666666666666,r:.2313725490196079,g:.407843137254902,b:.6705882352941176},{x:.8333333333333334,r:.6039215686274509,g:.407843137254902,b:1},{x:1,r:.3725490196078431,g:.2,b:.5019607843137255}],range:[0,1]},blues:{controlpoints:[{x:0,r:.2313725490196079,g:.407843137254902,b:.6705882352941176},{x:.1666666666666667,r:.1098039215686274,g:.5843137254901961,b:.803921568627451},{x:.3333333333333333,r:.3058823529411765,g:.8509803921568627,b:.9176470588235294},{x:.5,r:.4509803921568628,g:.6039215686274509,b:.8352941176470589},{x:.6666666666666666,r:.2588235294117647,g:.2392156862745098,b:.6627450980392157},{x:.8333333333333334,r:.3137254901960784,g:.3294117647058823,b:.5294117647058824},{x:1,r:.06274509803921569,g:.1647058823529412,b:.3215686274509804}],range:[0,1]},wildflower:{controlpoints:[{x:0,r:.1098039215686274,g:.5843137254901961,b:.803921568627451},{x:.1666666666666667,r:.2313725490196079,g:.407843137254902,b:.6705882352941176},{x:.3333333333333333,r:.4,g:.2431372549019608,b:.7176470588235294},{x:.5,r:.6352941176470588,g:.3294117647058823,b:.8117647058823529},{x:.6666666666666666,r:.8705882352941177,g:.3803921568627451,b:.807843137254902},{x:.8333333333333334,r:.8627450980392157,g:.3803921568627451,b:.5843137254901961},{x:1,r:.2392156862745098,g:.06274509803921569,b:.3215686274509804}],range:[0,1]},citrus:{controlpoints:[{x:0,r:.396078431372549,g:.4862745098039216,b:.2156862745098039},{x:.2,r:.4588235294117647,g:.6941176470588235,b:.00392156862745098},{x:.4,r:.6980392156862745,g:.7294117647058823,b:.1882352941176471},{x:.6,r:1,g:.8980392156862745,b:.02352941176470588},{x:.8,r:1,g:.7058823529411765,b:0},{x:1,r:.9764705882352941,g:.5137254901960784,b:.1411764705882353}],range:[0,1]},organge2purple:{controlpoints:[{x:0,r:.4980392156862745,g:.2313725490196079,b:.03137254901960784},{x:.1,r:.7019607843137254,g:.3450980392156863,b:.02352941176470588},{x:.2,r:.8784313725490196,g:.5098039215686274,b:.0784313725490196},{x:.3,r:.9921568627450981,g:.7215686274509804,b:.3882352941176471},{x:.4,r:.996078431372549,g:.8784313725490196,b:.7137254901960784},{x:.5,r:.9686274509803922,g:.9686274509803922,b:.9686274509803922},{x:.6,r:.8470588235294118,g:.8549019607843137,b:.9215686274509803},{x:.7,r:.6980392156862745,g:.6705882352941176,b:.8235294117647058},{x:.8,r:.5019607843137255,g:.4509803921568628,b:.6745098039215687},{x:.9,r:.3294117647058823,g:.1529411764705882,b:.5333333333333333},{x:1,r:.1764705882352941,g:0,b:.2941176470588235}],range:[0,1]},brown2green:{controlpoints:[{x:0,r:.3294117647058823,g:.1882352941176471,b:.0196078431372549},{x:.1,r:.5490196078431373,g:.3176470588235294,b:.0392156862745098},{x:.2,r:.7490196078431373,g:.5058823529411764,b:.1764705882352941},{x:.3,r:.8745098039215686,g:.7607843137254902,b:.4901960784313725},{x:.4,r:.9647058823529412,g:.9098039215686274,b:.7647058823529411},{x:.5,r:.9607843137254902,g:.9607843137254902,b:.9607843137254902},{x:.6,r:.7803921568627451,g:.9176470588235294,b:.8980392156862745},{x:.7,r:.5019607843137255,g:.803921568627451,b:.7568627450980392},{x:.8,r:.207843137254902,g:.592156862745098,b:.5607843137254902},{x:.9,r:.00392156862745098,g:.4,b:.3686274509803922},{x:1,r:0,g:.2352941176470588,b:.1882352941176471}],range:[0,1]},blue2green:{controlpoints:[{x:0,r:.9686274509803922,g:.9882352941176471,b:.9921568627450981},{x:.125,r:.8980392156862745,g:.9607843137254902,b:.9764705882352941},{x:.25,r:.8,g:.9254901960784314,b:.9019607843137255},{x:.375,r:.6,g:.8470588235294118,b:.788235294117647},{x:.5,r:.4,g:.7607843137254902,b:.6431372549019608},{x:.625,r:.2549019607843137,g:.6823529411764706,b:.4627450980392157},{x:.75,r:.1372549019607843,g:.5450980392156862,b:.2705882352941176},{x:.875,r:0,g:.4274509803921568,b:.1725490196078431},{x:1,r:0,g:.2666666666666667,b:.1058823529411765}],range:[0,1]},yellow2brown:{controlpoints:[{x:0,r:1,g:1,b:.8980392156862745},{x:.125,r:1,g:.9686274509803922,b:.7372549019607844},{x:.25,r:.996078431372549,g:.8901960784313725,b:.5686274509803921},{x:.375,r:.996078431372549,g:.7686274509803922,b:.3098039215686275},{x:.5,r:.996078431372549,g:.6,b:.1607843137254902},{x:.625,r:.9254901960784314,g:.4392156862745098,b:.0784313725490196},{x:.75,r:.8,g:.2980392156862745,b:.00784313725490196},{x:.875,r:.6,g:.203921568627451,b:.01568627450980392},{x:1,r:.4,g:.1450980392156863,b:.02352941176470588}],range:[0,1]},blue2purple:{controlpoints:[{x:0,r:.9686274509803922,g:.9882352941176471,b:.9921568627450981},{x:.125,r:.8784313725490196,g:.9254901960784314,b:.9568627450980393},{x:.25,r:.7490196078431373,g:.8274509803921568,b:.9019607843137255},{x:.375,r:.6196078431372549,g:.7372549019607844,b:.8549019607843137},{x:.5,r:.5490196078431373,g:.5882352941176471,b:.7764705882352941},{x:.625,r:.5490196078431373,g:.4196078431372549,b:.6941176470588235},{x:.75,r:.5333333333333333,g:.2549019607843137,b:.615686274509804},{x:.875,r:.5058823529411764,g:.05882352941176471,b:.4862745098039216},{x:1,r:.3019607843137255,g:0,b:.2941176470588235}],range:[0,1]},ocean:{controlpoints:[{x:0,r:.039215,g:.090195,b:.25098},{x:.125,r:.133333,g:.364706,b:.521569},{x:.25,r:.321569,g:.760784,b:.8},{x:.375,r:.690196,g:.960784,b:.894118},{x:.5,r:.552941,g:.921569,b:.552941},{x:.625,r:.329412,g:.6,b:.239216},{x:.75,r:.211765,g:.34902,b:.078435},{x:.875,r:.011765,g:.207843,b:.023525},{x:1,r:.286275,g:.294118,b:.301961}],range:[0,1]},earth:{controlpoints:[{x:0,r:.392157,g:.392157,b:.392157},{x:.586175,r:.392157,g:.392157,b:.392157},{x:.589041,r:.141176,g:.345098,b:.478431},{x:.589042,r:.501961,g:.694118,b:.172549},{x:.617699,r:.74902,g:.560784,b:.188235},{x:.789648,r:.752941,g:.741176,b:.729412},{x:.993079,r:.796078,g:.780392,b:.772549},{x:1,r:.796078,g:.780392,b:.772549}],range:[0,1]}},swatches:{colors:[{r:255,g:255,b:255},{r:204,g:255,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:204,g:204,b:255},{r:255,g:204,b:255},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:204,b:204},{r:255,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:255,b:204},{r:204,g:204,b:204},{r:153,g:255,b:255},{r:153,g:204,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:153,g:153,b:255},{r:204,g:153,b:255},{r:255,g:153,b:255},{r:255,g:153,b:204},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:153,b:153},{r:255,g:204,b:153},{r:255,g:255,b:153},{r:204,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:153},{r:153,g:255,b:204},{r:204,g:204,b:204},{r:102,g:255,b:255},{r:102,g:204,b:255},{r:102,g:153,b:255},{r:102,g:102,b:255},{r:102,g:102,b:255},{r:102,g:102,b:255},{r:102,g:102,b:255},{r:102,g:102,b:255},{r:153,g:102,b:255},{r:204,g:102,b:255},{r:255,g:102,b:255},{r:255,g:102,b:204},{r:255,g:102,b:153},{r:255,g:102,b:102},{r:255,g:102,b:102},{r:255,g:102,b:102},{r:255,g:102,b:102},{r:255,g:102,b:102},{r:255,g:153,b:102},{r:255,g:204,b:102},{r:255,g:255,b:102},{r:204,g:255,b:102},{r:153,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:102},{r:102,g:255,b:153},{r:102,g:255,b:204},{r:153,g:153,b:153},{r:51,g:255,b:255},{r:51,g:204,b:255},{r:51,g:153,b:255},{r:51,g:102,b:255},{r:51,g:51,b:255},{r:51,g:51,b:255},{r:51,g:51,b:255},{r:102,g:51,b:255},{r:153,g:51,b:255},{r:204,g:51,b:255},{r:255,g:51,b:255},{r:255,g:51,b:204},{r:255,g:51,b:153},{r:255,g:51,b:102},{r:255,g:51,b:51},{r:255,g:51,b:51},{r:255,g:51,b:51},{r:255,g:102,b:51},{r:255,g:153,b:51},{r:255,g:204,b:51},{r:255,g:255,b:51},{r:204,g:255,b:51},{r:153,g:255,b:51},{r:102,g:255,b:51},{r:51,g:255,b:51},{r:51,g:255,b:51},{r:51,g:255,b:51},{r:51,g:255,b:102},{r:51,g:255,b:153},{r:51,g:255,b:204},{r:153,g:153,b:153},{r:0,g:255,b:255},{r:0,g:204,b:255},{r:0,g:153,b:255},{r:0,g:102,b:255},{r:0,g:51,b:255},{r:0,g:0,b:255},{r:51,g:0,b:255},{r:102,g:0,b:255},{r:153,g:0,b:255},{r:204,g:0,b:255},{r:255,g:0,b:255},{r:255,g:0,b:204},{r:255,g:0,b:153},{r:255,g:0,b:102},{r:255,g:0,b:51},{r:255,g:0,b:0},{r:255,g:51,b:0},{r:255,g:102,b:0},{r:255,g:153,b:0},{r:255,g:204,b:0},{r:255,g:255,b:0},{r:204,g:255,b:0},{r:153,g:255,b:0},{r:102,g:255,b:0},{r:51,g:255,b:0},{r:0,g:255,b:0},{r:0,g:255,b:51},{r:0,g:255,b:102},{r:0,g:255,b:153},{r:0,g:255,b:204},{r:102,g:102,b:102},{r:0,g:204,b:204},{r:0,g:204,b:204},{r:0,g:153,b:204},{r:0,g:102,b:204},{r:0,g:51,b:204},{r:0,g:0,b:204},{r:51,g:0,b:204},{r:102,g:0,b:204},{r:153,g:0,b:204},{r:204,g:0,b:204},{r:204,g:0,b:204},{r:204,g:0,b:204},{r:204,g:0,b:153},{r:204,g:0,b:102},{r:204,g:0,b:51},{r:204,g:0,b:0},{r:204,g:51,b:0},{r:204,g:102,b:0},{r:204,g:153,b:0},{r:204,g:204,b:0},{r:204,g:204,b:0},{r:204,g:204,b:0},{r:153,g:204,b:0},{r:102,g:204,b:0},{r:51,g:204,b:0},{r:0,g:204,b:0},{r:0,g:204,b:51},{r:0,g:204,b:102},{r:0,g:204,b:153},{r:0,g:204,b:204},{r:102,g:102,b:102},{r:0,g:153,b:153},{r:0,g:153,b:153},{r:0,g:153,b:153},{r:0,g:102,b:153},{r:0,g:51,b:153},{r:0,g:0,b:153},{r:51,g:0,b:153},{r:102,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:153},{r:153,g:0,b:102},{r:153,g:0,b:51},{r:153,g:0,b:0},{r:153,g:51,b:0},{r:153,g:102,b:0},{r:153,g:153,b:0},{r:153,g:153,b:0},{r:153,g:153,b:0},{r:153,g:153,b:0},{r:153,g:153,b:0},{r:102,g:153,b:0},{r:51,g:153,b:0},{r:0,g:153,b:0},{r:0,g:153,b:51},{r:0,g:153,b:102},{r:0,g:153,b:153},{r:0,g:153,b:153},{r:51,g:51,b:51},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:51,b:102},{r:0,g:0,b:102},{r:51,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:102},{r:102,g:0,b:51},{r:102,g:0,b:0},{r:102,g:51,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:102,g:102,b:0},{r:51,g:102,b:0},{r:0,g:102,b:0},{r:0,g:102,b:51},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:102,b:102},{r:0,g:0,b:0},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:51},{r:51,g:0,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:51,g:51,b:0},{r:0,g:51,b:0},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:0,g:51,b:51},{r:51,g:51,b:51}],columns:31,rows:9}}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(199),s=r(i),l=n(16),u=r(l),c={CHANGE:"LookupTable.change",ACTIVE_CHANGE:"LookupTable.active.change",LIST_CHANGE:"LookupTable.list.change"},f=function(){function t(){var e=this;o(this,t),this.luts={},this.lutSubscriptions={},this.onChangeCallback=function(t,n){e.emit(c.CHANGE,t)}}return a(t,[{key:"addLookupTable",value:function(e,t,n){this.activeField||(this.activeField=e);var r=this.luts[e];return void 0===r&&(r=new s["default"](e),this.luts[e]=r,this.lutSubscriptions[e]=r.onChange(this.onChangeCallback)),r.setPreset(n||"spectralflip"),r.setScalarRange(t[0],t[1]),this.emit(c.LIST_CHANGE,this),r}},{key:"removeLookupTable",value:function(e){this.luts.hasOwn(e)&&(this.lutSubscriptions[e].unsubscribe(),this.luts[e].destroy(),delete this.luts[e],delete this.lutSubscriptions[e],this.emit(c.LIST_CHANGE,this))}},{key:"updateActiveLookupTable",value:function(t){var n=this;e(function(){n.emit(c.ACTIVE_CHANGE,t)}),this.activeField=t}},{key:"getLookupTable",value:function(e){return this.luts[e]}},{key:"addFields",value:function(e,t){for(var n in e){var r=this.addLookupTable(n,e[n]);t&&t[n]&&(void 0!==t[n].discrete&&(r.discrete=t[n].discrete),t[n].preset?r.setPreset(t[n].preset):t[n].controlpoints&&r.updateControlPoints(t[n].controlpoints),t[n].range&&r.setScalarRange(t[n].range[0],t[n].range[1]))}}},{key:"getActiveField",value:function(){return this.activeField}},{key:"onChange",value:function(e){return this.on(c.CHANGE,e)}},{key:"onFieldsChange",value:function(e){return this.on(c.LIST_CHANGE,e)}},{key:"onActiveLookupTableChange",value:function(e){return this.on(c.ACTIVE_CHANGE,e)}}]),t}();t["default"]=f,u["default"].mixInto(f)}).call(t,n(87).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(199),a=r(o),i=n(353),s=r(i);t["default"]={LookupTable:a["default"],LookupTableManager:s["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(20),a=r(o),i=n(131),s=r(i),l=n(200),u=r(l),c=n(201),f=r(c),p=n(202),d=r(p),h=n(89),g=r(h),m=n(203),v=r(m),_=n(72),y=r(_),b=n(46),w=r(b),x=n(204),C=r(x),E=n(61),T=r(E);t["default"]={CanvasOffscreenBuffer:a["default"],Convert:s["default"],ConvertProxyProperty:u["default"],Debounce:f["default"],ImageExporter:d["default"],Loop:g["default"],Observable:v["default"],PingPong:y["default"],SizeHelper:w["default"],Validate:C["default"],WebGl:T["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(16),s=r(i),l="pipeline.change",u="opacity.change",c="ABCDEFGHIJKLMNOPQRSTUVWXYZ",f=function(){function e(t){function n(e){if(!s||e.length>1)return!0;var t=c.indexOf(e[0]);return"_"!==s[2*t+1]}function r(e){if(!s||e.length>1)return l[e][0];var t=c.indexOf(e[0]),n=s[2*t+1];return"_"===n?l[e][0]:n}var a=this,i=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];o(this,e),this.originalData=t,this.visibilityState={},this.activeState={},this.editMode={},this.activeColors={},this.noTrigger=!0,this.handleOpacity=i,this.opacityMap={},this.nbLayers=0;var s=t.CompositePipeline.default_pipeline,l=t.CompositePipeline.layer_fields,u={};t.CompositePipeline.pipeline.forEach(function(e){u[e.ids.join("")]=!0,a.setLayerVisible(e.ids.join(""),n(e.ids.join("")))}),t.CompositePipeline.layers.forEach(function(e){a.activeState[e]=u[e]?!0:n(e),a.activeColors[e]=r(e),a.opacityMap[e]=100,a.nbLayers++}),this.noTrigger=!1,this.triggerChange()}return a(e,[{key:"onChange",value:function(e){return this.on(l,e)}},{key:"onOpacityChange",value:function(e){return this.on(u,e)}},{key:"TopicChange",value:function(){return l}},{key:"triggerChange",value:function(){if(!this.noTrigger){var e=this.getPipelineQuery();this.emit(l,e)}}},{key:"isLayerActive",value:function(e){return this.activeState[e]}},{key:"setLayerActive",value:function(e,t){this.activeState[e]!==t&&(this.activeState[e]=t,this.triggerChange())}},{key:"toggleLayerActive",value:function(e){this.activeState[e]=!this.activeState[e],this.triggerChange()}},{key:"isLayerVisible",value:function(e){return this.visibilityState[e]}},{key:"setLayerVisible",value:function(e,t){if(this.visibilityState[e]!==t){this.visibilityState[e]=t;for(var n=e.length;n--;)this.visibilityState[e[n]]=t;this.triggerChange()}}},{key:"toggleLayerVisible",value:function(e){this.setLayerVisible(e,!this.visibilityState[e])}},{key:"toggleEditMode",value:function(e){this.editMode[e]=!this.editMode[e],this.triggerChange()}},{key:"isLayerInEditMode",value:function(e){for(var t in this.editMode)if(this.editMode[t]&&-1!==t.indexOf(e))return!0;return!1}},{key:"getColor",value:function(e){return this.originalData.CompositePipeline.layer_fields[e[0]]}},{key:"getColorToLabel",value:function(e){return this.originalData.CompositePipeline.fields[e]}},{key:"isActiveColor",value:function(e,t){return this.activeColors[e[0]]===t}},{key:"setActiveColor",value:function(e,t){for(var n=e.length;n--;)this.activeColors[e[n]]=t;this.triggerChange()}},{key:"getPipelineQuery",value:function(){var e=this,t="";return this.originalData.CompositePipeline.layers.forEach(function(n){var r=e.isLayerActive(n)&&e.isLayerVisible(n)?e.activeColors[n]:"_";t+=n,t+=r}),t}},{key:"getPipelineDescription",value:function(){return this.originalData.CompositePipeline.pipeline}},{key:"getOpacity",value:function(e){return this.opacityMap[e]}},{key:"hasOpacity",value:function(){return this.handleOpacity}},{key:"setOpacity",value:function(e,t){if(this.opacityMap[e]!==t){this.opacityMap[e]=t;for(var n=[],r=0;r<this.nbLayers;++r)n.push(this.opacityMap[c[r]]/100);this.emit(u,n)}}},{key:"resetOpacity",value:function(e){for(var t in this.opacityMap)this.opacityMap[t]=e;for(var n=[],r=0;r<this.nbLayers;++r)n.push(this.opacityMap[c[r]]/100);this.emit(u,n)}}]),e}();t["default"]=f,s["default"].mixInto(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(205),a=r(o),i=n(356),s=r(i),l=n(132),u=r(l);t["default"]={EqualizerState:a["default"],PipelineState:s["default"],ToggleState:u["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(354),a=r(o),i=n(355),s=r(i),l=n(357),u=r(l);t["default"]={Core:a["default"],Misc:s["default"],State:u["default"]}},function(e,t){"use strict";function n(){this.keyPatternMap={}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,n.prototype.registerPattern=function(e,t){this.keyPatternMap[e]=t},n.prototype.unregisterPattern=function(e){delete this.keyPatternMap[e]},n.prototype.getValue=function(e,t){var n=this.keyPatternMap[e],r=["{","}"];for(var o in t)n=n.replace(r.join(o),t[o]);return n}},function(e,t){"use strict";function n(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType=t.type,n.onload=function(e){return 200===this.status?t.fn(null,n):void t.fn(e,n)},n.onerror=function(e){t.fn(e,n)},n.send()}function r(e){return{type:"arraybuffer",fn:function(t,n){return t?e(t):void e(null,n.response)}}}function o(e){return{type:"text",fn:function(t,n){return t?e(t):void e(null,n.response)}}}function a(e){return{type:"text",fn:function(t,n){return t?e(t):void e(null,JSON.parse(n.response))}}}function i(e,t){return{type:"blob",fn:function(n,r){if(n)return t(n);var o=new Blob([r.response],{type:e});t(null,o)}}}function s(e,t){n(e,a(t))}function l(e,t){n(e,o(t))}function u(e,t,r){n(e,i(t,r))}function c(e,t){n(e,r(t))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={fetchJSON:s,fetchTxt:l,fetchBlob:u,fetchArray:c}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(133),s=r(i),l=n(16),u=r(l),c=new s["default"],f="object-ready",p=0,d=function(){ +function e(t){var n=this;o(this,e),p++,this.basepath=t,this.id=["GeometryDataModel",p].join("_"),this.coloByMapping={},this.currentScene=null,this.sceneData={},this.dataMapping={},c.on(this.id,function(e,t){var r=e.requestedURL,o=n.dataMapping[r];if(o){var a=n.sceneData[o.name],i=!0;n.sceneData[o.name][o.field]=new window[o.type](e.data);for(var s in a)null===a[s]&&(i=!1);i&&n.geometryReady(a)}})}return a(e,[{key:"onGeometryReady",value:function(e){return this.on(f,e)}},{key:"geometryReady",value:function(e){this.emit(f,e)}},{key:"colorGeometryBy",value:function(e,t){var n=!1;t?(n=this.coloByMapping[e]!==t,this.coloByMapping[e]=t):delete this.coloByMapping[e],n&&this.loadScene(this.currentScene)}},{key:"loadScene",value:function(e){var t=this;this.currentScene=e,e&&!function(){t.dataMapping={},t.sceneData={};var n=t.sceneData;e.forEach(function(e){var r=e.name,o=[],a=null;n[r]={name:r,points:null,index:null},a=t.basepath+e.points,t.dataMapping[a]={name:r,field:"points",type:e.points.split(".").slice(-1)[0]},o.push(a),a=t.basepath+e.index,t.dataMapping[a]={name:r,field:"index",type:e.index.split(".").slice(-1)[0]},o.push(a),t.coloByMapping[r]&&(n[r].field=null,n[r].fieldName=t.coloByMapping[r],a=t.basepath+e.fields[t.coloByMapping[r]],t.dataMapping[a]={name:r,field:"field",type:e.fields[t.coloByMapping[r]].split(".").slice(-1)[0]},o.push(a)),o.forEach(function(e){c.fetchURL(e,"array",null,t.id)})})}()}}]),e}();t["default"]=d,u["default"].mixInto(d)},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){var n=e.idx+e.direction*t;return n>=e.values.length&&(e.direction*=-1,n=e.values.length-2),0>n&&(e.direction*=-1,n=1),n>=0&&n<e.values.length&&(e.idx=n),!0}function i(e,t){return e.idx=(e.values.length+e.idx+t)%e.values.length,!0}function s(e,t){var n=e.idx+t;return n>=e.values.length&&(n=e.values.length-1),0>n&&(n=0),e.idx!==n?(e.idx=n,!0):!1}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(133),c=r(u),f=n(169),p=r(f),d=n(96),h=r(d),g=n(726),m=r(g),v=n(16),_=r(v),y=n(283),b=r(y),w=n(727),x=r(w),C=n(728),E=r(C),T=new c["default"],P="_",k=0,M=function(){function t(n,r){var l=this;o(this,t),this.originalData=n,this.basepath=r,this.id="QueryDataModel_"+ ++k+":",this.args={},this.externalArgs={},this.dataCount={},this.categories={},this.requests=[],this.keepAnimating=!1,this.animationTimerId=0,this.mouseListener=null,this.dataMetadata={},this.lazyFetchRequest=null,this.playNext=function(){if(l.keepAnimating){var e=!1;l.lastPlay=+new Date;for(var t in l.args)l.args[t].anime&&(e=l.next(t)||e);e?l.lazyFetchData():(l.keepAnimating=!1,l.emit("state.change.play",{instance:l}))}else l.emit("state.change.play",{instance:l})};var u=function(t){var n={},r=t.urls.length,o=!1,a=!1;for(0!==l.animationTimerId&&(clearTimeout(l.animationTimerId),l.animationTimerId=0);r--;){var i=t.urls[r];n[i.key]=T.get(i.url),n[i.key]?o=o||n[i.key].pending:a=!0}if(o?e(function(){l.requests.push(t)}):a||(l.emit(t.category,n),0===l.requests.length&&l.lazyFetchRequest&&(l.fetchData(l.lazyFetchRequest),l.lazyFetchRequest=null)),l.keepAnimating){var s=+new Date;l.animationTimerId=setTimeout(l.playNext,s-l.lastPlay>l.deltaT?0:l.deltaT)}},c=function(t,n){if(l.dataCount[n.topic]++,t.url&&"blob"===t.type&&-1!==t.data.type.indexOf("image")&&void 0===t.image&&(t.image=new Image,t.image.src=t.url),t.error)return l.emit("error",n);var r=(0,m["default"])(l.dataCount),o=(0,h["default"])(l.dataCount),a=(0,E["default"])(l.dataCount);r!==o||(1===a?0!==r:0)||e(function(){for(;l.requests.length;)u(l.requests.pop())})};for(var f in n.arguments){var d=n.arguments[f];this.args[f]={label:d.label?d.label:f,idx:d["default"]?d["default"]:0,direction:1,anime:!1,values:d.values,ui:d.ui?d.ui:"list",delta:d.loop?"reverse"===d.loop?a:"modulo"===d.loop?i:s:s}}n.data.forEach(function(e){var t=l.id+e.name;l.dataMetadata[e.name]=e.metadata||{},(e.categories||[P]).forEach(function(e){(0,p["default"])(l.categories,e)?l.categories[e].push(t):l.categories[e]=[t]}),T.registerURL(t,(e.absolute?"":r)+e.pattern,e.type,e.mimeType),T.on(t,c),l.dataCount[t]=0}),this.exploreState={order:n.arguments_order.map(function(e){return e}).reverse(),idxs:n.arguments_order.map(function(e){return 0}),sizes:n.arguments_order.map(function(e){return l.getSize(e)}).reverse(),onDataReady:!0,animate:!1},this.explorationSubscription=this.onDataChange(function(){l.exploreState.animate&&l.exploreState.onDataReady&&e(function(e){return l.nextExploration()})})}return l(t,[{key:"getDataMetaData",value:function(e){return this.dataMetadata[e]}},{key:"getQuery",value:function(){var e={};for(var t in this.args){var n=this.args[t];e[t]=n.values[n.idx]}for(var r in this.externalArgs)e[r]=this.externalArgs[r];return e}},{key:"fetchData",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?P:arguments[0],n=[],r=this.getQuery(),o={urls:[]};t.name?(o.category=t.name,t.categories.forEach(function(t){e.categories[t]&&(n=n.concat(e.categories[t]))})):this.categories[t]&&(o.category=t,n=n.concat(this.categories[t])),n.length&&this.requests.push(o),n.forEach(function(t){e.dataCount[t]--,o.urls.push({key:t.slice(e.id.length),url:T.fetch(t,r)})})}},{key:"lazyFetchData",value:function(){var e=arguments.length<=0||void 0===arguments[0]?P:arguments[0];this.lazyFetchRequest||this.requests.length>0?this.lazyFetchRequest=e:this.fetchData(e)}},{key:"first",value:function(e){var t=this.args[e];return t&&0!==t.idx?(t.idx=0,this.emit("state.change.first",{value:t.values[t.idx],idx:t.idx,name:e,instance:this}),!0):!1}},{key:"last",value:function n(e){var t=this.args[e],n=t.values.length-1;return t&&t.idx!==n?(t.idx=n,this.emit("state.change.last",{value:t.values[t.idx],idx:t.idx,name:e,instance:this}),!0):!1}},{key:"next",value:function(e){var t=this.args[e];return t&&t.delta(t,1)?(this.emit("state.change.next",{delta:1,value:t.values[t.idx],idx:t.idx,name:e,instance:this}),!0):!1}},{key:"previous",value:function(e){var t=this.args[e];return t&&t.delta(t,-1)?(this.emit("state.change.previous",{delta:-1,value:t.values[t.idx],idx:t.idx,name:e,instance:this}),!0):!1}},{key:"setValue",value:function(e,t){var n=this.args[e],r=n?n.values.indexOf(t):0;return n&&-1!==r&&r!==n.idx?(n.idx=r,this.emit("state.change.value",{value:n.values[n.idx],idx:n.idx,name:e,instance:this}),!0):void 0===n&&this.externalArgs[e]!==t?(this.externalArgs[e]=t,this.emit("state.change.value",{value:t,name:e,external:!0,instance:this}),!0):!1}},{key:"setIndex",value:function(e,t){var n=this.args[e];return n&&t>-1&&t<n.values.length&&n.idx!==t?(n.idx=t,this.emit("state.change.idx",{value:n.values[n.idx],idx:n.idx,name:e,instance:this}),!0):!1}},{key:"getValue",value:function(e){var t=this.args[e];return t?t.values[t.idx]:this.externalArgs[e]}},{key:"getValues",value:function(e){var t=this.args[e];return t?t.values:null}},{key:"getIndex",value:function(e){var t=this.args[e];return t?t.idx:null}},{key:"getUiType",value:function(e){var t=this.args[e];return t?t.ui:null}},{key:"getSize",value:function(e){var t=this.args[e];return t?t.values.length:null}},{key:"label",value:function(e){var t=this.args[e];return t?t.label:null}},{key:"getAnimationFlag",value:function(e){var t=this.args[e];return t?t.anime:!1}},{key:"setAnimationFlag",value:function(e,t){var n=this.args[e];return n&&n.anime!==t?(n.anime=t,this.emit("state.change.animation",{animation:n.anim,name:n.name,instance:this}),!0):!1}},{key:"toggleAnimationFlag",value:function(e){var t=this.args[e];return t?(t.anime=!t.anime,this.emit("state.change.animation",{animation:t.anim,name:t.name,instance:this}),t.anime):null}},{key:"hasAnimationFlag",value:function(){for(var e in this.args)if(this.args[e].anime)return!0;return!1}},{key:"isAnimating",value:function(){return this.keepAnimating}},{key:"animate",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?500:arguments[1];this.deltaT=t,e!==this.keepAnimating&&(this.keepAnimating=e,this.playNext())}},{key:"getMouseListener",value:function(){function e(e,r){for(var o=n[e.topic],a=(0,b["default"])(),i=t.lastTime[e.topic]+t.newMouseTimeout<a,s=o.length,l=!1,u=!1;s--;){var c=o[s],f=0===c.coordinate?"deltaX":"deltaY";if(i&&(c.lastCoord=0),c.modifier&e.modifier||c.modifier===e.modifier){u=!0;var p=e[f]-c.lastCoord;t.lastTime[e.topic]=a,Math.abs(p)>c.step&&(c.lastCoord=Number(e[f]),l=c.orientation*p>0?t.next(c.name)||l:t.previous(c.name)||l)}}return l&&t.lazyFetchData(),u}if(this.mouseListener)return this.mouseListener;this.lastTime={},this.newMouseTimeout=250;var t=this,n={};for(var r in this.originalData.arguments){var o=this.originalData.arguments[r];if(o.bind&&o.bind.mouse)for(var a in o.bind.mouse){var i=(0,x["default"])(o.bind.mouse[a]);i.name=r,i.lastCoord=0,void 0===i.orientation&&(i.orientation=1),n[a]?n[a].push(i):n[a]=[i]}}this.mouseListener={};for(var s in n)this.mouseListener[s]=e,this.lastTime[s]=(0,b["default"])();return this.mouseListener}},{key:"onStateChange",value:function(e){return this.on("state.change.*",e)}},{key:"onDataChange",value:function(e){return this.on(P,e)}},{key:"clone",value:function(){return new t(this.originalData,this.basepath)}},{key:"destroy",value:function(){this.off(),this.explorationSubscription.unsubscribe(),this.explorationSubscription=null}},{key:"exploreQuery",value:function(){var e=arguments.length<=0||void 0===arguments[0]?!0:arguments[0],t=this,n=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?!0:arguments[2];n?this.exploreState.idxs=this.exploreState.order.map(function(e){return 0}):this.exploreState.idxs=this.exploreState.order.map(function(e){return t.getIndex(e)}),this.exploreState.onDataReady=r,this.exploreState.animate=e,this.exploreState.animate&&this.nextExploration(),this.emit("state.change.exploration",{exploration:this.exploreState,instance:this})}},{key:"nextExploration",value:function(){var e=this;if(this.exploreState.animate){this.exploreState.order.forEach(function(t,n){e.setIndex(t,e.exploreState.idxs[n])});var t=this.exploreState.idxs,n=this.exploreState.sizes,r=t.length;for(t[r-1]++;r--;)if(!(t[r]<n[r])){if(!(r>0))return this.exploreState.animate=!1,this.emit("state.change.exploration",{exploration:this.exploreState,instance:this}),this.exploreState.animate;t[r]=0,t[r-1]++}this.lazyFetchData()}return this.exploreState.animate}},{key:"setCacheSize",value:function(e){T.cacheSize=e}},{key:"getCacheSize",value:function(){return T.cacheSize}},{key:"getMemoryUsage",value:function(){return T.cacheData.size}},{key:"link",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]?null:arguments[1],r=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return e.onStateChange(function(e,o){void 0!==e.name&&void 0!==e.value&&(null!==n&&-1===n.indexOf(e.name)||t.setValue(e.name,e.value)&&r&&t.lazyFetchData())})}}]),t}();t["default"]=M,_["default"].mixInto(M)}).call(t,n(87).setImmediate)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(133),a=r(o),i=n(361),s=r(i),l=n(206),u=r(l),c=n(362),f=r(c);t["default"]={DataManager:a["default"],GeometryDataModel:s["default"],ProcessLauncher:u["default"],QueryDataModel:f["default"]}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=e.mustContain,o=e.busy,a=e.encodeQueryAsString;return{listAssetStores:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=["limit","offset","sort","sortdir"],o=n(e,r);return t._.get("/assetstore",{params:o})},createAssetStore:function(e){var i=["name","type"],s=["root","db","bucket","prefix","accessKeyId","secretKey","service"],l=n(e,[].concat(i,s)),u=r.apply(void 0,[e].concat(i)),c=u.missingKeys,f=u.promise;return c?f:o(t._.post("/assetstore"+a(l)))},updateAssetStore:function(e){var r=["name","root","db","current","_id"],o=n(e,r.slice(0,r.length-1));return t._.put("/assetstore/"+e._id,{params:o})},deleteAssetStore:function(e){return t._["delete"]("/assetstore/"+e)}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=e.mustContain,o=e.busy,a=e.encodeQueryAsString;return{listCollections:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=["text","limit","offset","sort","sortdir"],o=n.apply(void 0,[e].concat(r));return t._.get("/collection",{params:o})},createCollection:function(e){var i=["name","description","public"],s=n.apply(void 0,[e].concat(i)),l=r.apply(void 0,[s].concat(i)),u=l.missingKeys,c=l.promise;return u?o(t._.post("/collection"+a(s))):c},deleteCollection:function(e){return o(t._["delete"]("/collection/"+e))},getCollection:function(e){return o(t._.get("/collection/"+e))},editCollection:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=["name","description"],s=n.apply(void 0,[e].concat(i)),l=r(e,"_id"),u=l.missingKeys,c=l.promise;return u?o(t._.put("/collection/"+e._id+a(s))):c},getCollectionAccess:function(e){return o(t._.get("/collection/"+e+"/access"))},editCollectionAccess:function(e){var i=["access","public"],s=n.apply(void 0,[e].concat(i)),l=r(e,"_id"),u=l.missingKeys,c=l.promise;return u?o(t._.put("/collection/"+e._id+"/access"+a(s))):c}}}},function(e,t){"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){function t(e,t,r){var a=n,i=new FormData;return i.append("uploadId",e),i.append("offset",t),i.append("chunk",r),s(o._.post("/file/chunk",i,{transformRequest:a}))}function r(e,n){return new Promise(function(r,a){s(o._.post("/file"+l(e))).then(function(e){var o,i=10485760,s=0,l=Math.floor(n.size/i);(o=function(c){var f;u(c,n.size),c+i>=n.size?(f=n.slice(c),t(e.data._id,c,f).then(function(e){u(n.size,n.size),r(e)})["catch"](function(e){console.warn("could not upload final chunk"),console.warn(e),a(e)})):(f=n.slice(c,c+i),t(e.data._id,c,f).then(function(e){var t="";s+=1,t+="chunk "+s+" of "+l+" uploaded",o(c+i)})["catch"](function(e){console.warn("could not upload chunk"),console.warn(e),a(e)}))})(0)})["catch"](function(e){console.warn("Could not upload file"),console.warn(e),a(e)})})}var o=e.client,a=e.filterQuery,i=e.mustContain,s=e.busy,l=e.encodeQueryAsString,u=e.progress;return{uploadFileToItem:r,getUploadOffset:function(e){return s(o._.get("/file/offset",{params:{uploadId:e}}))},downloadFile:function(e){return s(o._.get("/file/"+e+"/download"))},updateFileContent:function(e,t){return s(o._.put("/file/"+e+"/contents?size="+t))},deleteFile:function(e){return s(o._["delete"]("/file/"+e))},editFile:function(e){var t=["name","mimeType"],n=a.apply(void 0,[e].concat(t)),r=i(e,"_id"),u=r.missingKeys,c=r.promise;return u?s(o._.put("/file/"+e._id+l(n))):c},newFile:function(e){var t=["parentType","parentId","name","size","mimeType","linkUrl"],n=a.apply(void 0,[e].concat(t)),r=i(e,"parentType","parentId","name"),u=r.missingKeys,c=r.promise;return u?s(o._.post("/file"+l(n))):c}}}},function(e,t){"use strict";function n(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,r=e.filterQuery,o=e.mustContain,a=e.busy,i=e.encodeQueryAsString;return{listFolders:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=["parentType","parentId","text","limit","offset","sort","sortdir"],o=r.apply(void 0,[e].concat(n));return a(t._.get("/folder",{params:o}))},createFolder:function(e){var n=["parentType","parentId","name","description","public"],s=r.apply(void 0,[e].concat(n)),l=o(e,"parentType","parentId","name"),u=l.missingKeys,c=l.promise;return u?a(t._.post("/folder"+i(s))):c},editFolderMetaData:function(e,r){return a(t._.put("/folder/"+e,r,{transformRequest:n}))},deleteFolder:function(e){return a(t._["delete"]("/folder/"+e))},getFolder:function(e){return a(t._.get("/folder/"+e))},editFolder:function(e){var n=["parentType","parentId","name","description"],s=r.apply(void 0,[e].concat(n)),l=o(e,"_id"),u=l.missingKeys,c=l.promise;return u?a(t._.put("/folder/"+e._id+i(s))):c},downloadFolder:function(e){return a(t._.get("/folder/"+e+"/download"))},getFolderAccess:function(e){return a(t._.get("/folder/"+e+"/access"))},editFolderAccess:function(e){var n=["access","public"],s=r.apply(void 0,[e].concat(n)),l=o(e,"_id"),u=l.missingKeys,c=l.promise;return u?a(t._.put("/folder/"+e._id+"/access"+i(s))):c}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=e.mustContain,o=e.busy,a=e.encodeQueryAsString;return{updateGroupModerator:function(e,n,r){var o="/group/"+e+"/moderator?userId="+n;return r?t._.post(o):t._["delete"](o)},updateGroupAdmin:function(e,n,r){var o="/group/"+e+"/admin?userId="+n;return r?t._.post(o):t._["delete"](o)},createGroup:function(e){var i=["name","description","public"],s=n.apply(void 0,[e].concat(i)),l=r(s,"name"),u=l.missingKeys,c=l.promise;return u?o(t._.post("/group"+a(s))):c},deleteGroup:function(e){return o(t._["delete"]("/group/"+e))},getGroup:function(e){return o(t._.get("/group/"+e))},editGroup:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=["name","description","public"],s=n.apply(void 0,[e].concat(i)),l=r(e,"_id"),u=l.missingKeys,c=l.promise;return u?o(t._.put("/group/"+e._id+a(s))):c},listGroupInvitations:function(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=["limit","offset","sort","sortdir"],i=n.apply(void 0,[r].concat(a));return o(t._.get("/group/"+e+"/invitation",{params:i}))},addGroupInvitation:function(e){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=["userId","level","quiet"],l=n.apply(void 0,[i].concat(s)),u=r(l,"userId"),c=u.missingKeys,f=u.promise;return c?o(t._.post("/group/"+e+"/invitation"+a(l))):f},listGroupMembers:function(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=["limit","offset","sort","sortdir"],i=n.apply(void 0,[r].concat(a));return o(t._.get("/group/"+e+"/member",{params:i}))},removeUserFromGroup:function(e,n){var r={userId:n};return o(t._["delete"]("/group/"+e+"/member",{params:r}))},joinGroup:function(e){return o(t._.post("/group/"+e+"/member"))},getGroupAccess:function(e){return o(t._.get("/group/"+e+"/access"))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(364),a=r(o),i=n(365),s=r(i),l=n(366),u=r(l),c=n(367),f=r(c),p=n(368),d=r(p),h=n(370),g=r(h),m=n(371),v=r(m),_=n(372),y=r(_),b=n(373),w=r(b);t["default"]=[a["default"],s["default"],u["default"],f["default"],d["default"],g["default"],v["default"],y["default"],w["default"]]},function(e,t){"use strict";function n(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,r=e.filterQuery,o=e.mustContain,a=e.busy,i=e.encodeQueryAsString;return{downloadItem:function(e){return a(t._.get("/item/"+e+"/download"))},updateItemMetadata:function(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return a(t._.put("/item/"+e+"/metadata",r,{transformRequest:n}))},listItems:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=["folderId","text","limit","offset","sort","sortdir"],o=r(e,n);return a(t._.get("/item",{params:o}))},createItem:function(e,n){var r=arguments.length<=2||void 0===arguments[2]?"":arguments[2],o={folderId:e,name:n,description:r};return a(t._.post("/item"+i(o)))},listFiles:function(e,n){var o=["limit","offset","sort"],i=r(n,o);return e?a(t._.get("/item/"+e+"/files",{params:i})):new Promise(function(e,t){return t("No argument id provided")})},getItemRootPath:function(e){return a(t._.get("/item/"+e+"/rootpath"))},getItem:function(e){return a(t._.get("/item/"+e))},deleteItem:function(e){return a(t._["delete"]("/item/"+e))},editItem:function(e){var n=["folderId","name","description"],s=r.apply(void 0,[e].concat(n)),l=o(s,"_id"),u=l.missingKeys,c=l.promise;return u?a(t._.put("/item/"+e._id+i(s))):c},copyItem:function(e,n){var s=["folderId","name","description"],l=r.apply(void 0,[n].concat(s)),u=o(l,"folderId"),c=u.missingKeys,f=u.promise;return c?a(t._.post("/item/"+e+"/copy"+i(l))):f}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=(e.filterQuery,e.mustContain,e.busy);e.encodeQueryAsString;return{downloadResources:function(e){var r=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],o={resourceList:JSON.toString(e),withMetadata:r};return n(t._.get("/resource/download",{params:o}))},searchResources:function(e,r){var o={q:JSON.toString(e),types:JSON.toString(r)};return n(t._.get("/resource/search",{params:o}))},deleteResources:function(e){var r={resources:JSON.toString(e)};return n(t._["delete"]("/resource",{params:r}))}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=(e.mustContain,e.busy),o=e.encodeQueryAsString;return{deleteSetting:function(e){return r(t._["delete"]("/system/setting"+o({key:e})))},getSettings:function(e){var o=["key","list","default"],a=n.apply(void 0,[e].concat(o));return r(t._.get("/system/setting",{params:a}))},setSettings:function(e){var n=Object.keys(e).map(function(t){var n=e[t];return{key:t,value:n}});return r(t._.put("/system/setting"+o({list:n})))},getServerVersion:function(){return r(t._.get("/system/version"))},listUnfinishedUpload:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=["uploadId","userId","parentId","assetstoreId","minimumAge","includeUntracked","limit","offset","sort","sortdir"],a=n.apply(void 0,[e].concat(o));return r(t._.get("/system/uploads",{params:a}))},removeUnfinishedUpload:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],a=["uploadId","userId","parentId","assetstoreId","minimumAge","includeUntracked"],i=n.apply(void 0,[e].concat(a));return r(t._["delete"]("/system/uploads"+o(i)))},listPlugins:function(){return r(t._.get("/system/plugins"))},setActivePlugins:function(e){return r(t._.put("/system/plugins"+o({plugins:e})))}}}},function(e,t){"use strict";function n(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)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,r=e.filterQuery,o=e.mustContain,a=e.busy,i=e.encodeQueryAsString;return{listUsers:function(e){var n=r(e,"text","limit","offset","sort","sortdir");return a(t._.get("/user",{params:n}))},createUser:function(e){var n=["login","email","firstName","lastName","password","admin"],s=r.apply(void 0,[e].concat(n)),l=o.apply(void 0,[e].concat(n)),u=l.missingKeys,c=l.promise;return u?c:a(t._.post("/user"+i(s)))},changePassword:function(e,n){var r={old:e,"new":n};return a(t._.put("/user/password"+i(r)))},resetPassword:function(e){var n={email:e};return a(t._["delete"]("/user/password",{params:n}))},deleteUser:function(e){return a(t._["delete"]("/user/"+e))},getUser:function(e){return a(t._.get("/user/"+e))},updateUser:function(e){var s=["email","firstName","lastName","_id"],l=r.apply(void 0,[e].concat(n(s.slice(0,3)))),u=o.apply(void 0,[e].concat(s)),c=u.missingKeys,f=u.promise;return c?f:a(t._.put("/user/"+e._id+i(l)))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=Object.keys(e).map(function(t){return[encodeURIComponent(t),encodeURIComponent(e[t])].join("=")});return t.length?"?"+t.join("&"):""}function i(){for(var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t={},n=arguments.length,r=Array(n>1?n-1:0),o=1;n>o;o++)r[o-1]=arguments[o];return r.forEach(function(n){t[n]=e[n]}),t}function s(){for(var e,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=[],r=arguments.length,o=Array(r>1?r-1:0),a=1;r>a;a++)o[a-1]=arguments[a];return o.forEach(function(e){void 0===t[e]&&n.push(e)}),0===n.length?(n=void 0,e=new Promise(function(e,t){return e()})):e=new Promise(function(e,t){return t("Missing keys "+n.join(", "))}),{missingKeys:n,promise:e}}function l(){function e(t){Array.isArray(t)?t.forEach(e):!function(){var e=t(N);Object.keys(e).forEach(function(t){F[t]=e[t]})}()}var t,n,r,o=arguments.length<=0||void 0===arguments[0]?location:arguments[0],l=!1,u=null,f=0,p={},b=new v,w=function(){b.emit(h,--f)},x=function(e){return b.emit(h,++f),e.then(w,w),e},C=o.protocol,E=o.hostname,T=o.port,P=o.basepath,k=void 0===P?"/api/v1":P,M=C+"//"+E+":"+T+k,S=function W(){EventSource&&(u=new EventSource(M+"/notification/stream"),u.onmessage=function(e){var t=JSON.parse(e.data);b.emit(m,t)},u.onerror=function(e){setTimeout(function(){u&&2===u.readyState?W():u=null},1e4)})},R={extractLocalToken:function(){try{return document.cookie.split("girderToken=")[1].split(";")[0].trim()}catch(e){return}},updateGirderInstance:function(){var e=1e3,t={};n&&(t["Girder-Token"]=n),p._=c["default"].create({baseURL:M,timeout:e,headers:t})},updateAuthenticationState:function(e){l!==!!e&&(e||(t=void 0,n=void 0,p.user=t),l=!!e,A(),r=e?_():y(),b.emit(d,l),l&&null===u&&S())}},D=R.extractLocalToken,A=R.updateGirderInstance,I=R.updateAuthenticationState,O=function(e){var t=arguments.length<=1||void 0===arguments[1]?1:arguments[1];b.emit(g,{current:e,total:t})},F={login:function(e,r){var o={username:e,password:r};return x(p._.get("/user/authentication",{auth:o}).then(function(e){n=e.data.authToken.token,t=e.data.user,p.user=t,I(!0)}))},logout:function(){return x(p._["delete"]("/user/authentication").then(function(e){I(!1),document&&document.cookie&&(document.cookie="Girder-Token=;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},function(e){console.log("loggout error",e)}))},me:function(){return x(p._.get("/user/me"))},isLoggedIn:function(){return r},getLoggedInUser:function(){return t},onAuthChange:function(e){return b.on(d,e)},onBusy:function(e){return b.on(h,e)},onProgress:function(e){return b.on(g,e)},onEvent:function(e){return b.on(m,e)},destroy:function(){b.off()}};r=new Promise(function(e,r){n=o.token||D(),A(),n?F.me().then(function(n){t=n.data,p.user=t,I(!0),e()},function(e){I(!1),r()}):r()});for(var N={client:p,filterQuery:i,mustContain:s,notification:b,busy:x,encodeQueryAsString:a,progress:O},L=arguments.length,B=Array(L>1?L-1:0),j=1;L>j;j++)B[j-1]=arguments[j];return e(B),Object.freeze(F)}Object.defineProperty(t,"__esModule",{value:!0}),t.build=l;var u=n(337),c=r(u),f=n(16),p=r(f),d="girder.auth.change",h="girder.busy",g="girder.progress",m="girder.notification",v=function b(){o(this,b)};p["default"].mixInto(v);var _=function(){return new Promise(function(e,t){e()})},y=function(){return new Promise(function(e,t){t()})};t["default"]={build:l}},function(e,t){"use strict";function n(e){return JSON.stringify(e)}function r(e){return e.user?null:new Promise(function(e,t){return t({data:{message:"Must be logged in."}})})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,a=(e.filterQuery,e.mustContain,e.busy);return{listAWSProfiles:function(){return r(t)||a(t._.get("/user/"+t.user._id+"/aws/profiles"))},createAWSProfile:function(e){return r(t)||a(t._.post("/user/"+t.user._id+"/aws/profiles",e,{headers:o,transformRequest:n}))},updateAWSProfile:function(e){return r(t)||a(t._.patch("/user/"+t.user._id+"/aws/profiles/"+e._id,e,{headers:o,transformRequest:n}))},listAWSRunningInstances:function(e){return r(t)||a(t._.get("/user/"+t.user._id+"/aws/profiles/"+e+"/runninginstances"))},getAWSMaxInstances:function(e){return r(t)||a(t._.get("/user/"+t.user._id+"/aws/profiles/"+e+"/maxinstances"))},deleteAWSProfile:function(e){return r(t)||a(t._["delete"]("/user/"+t.user._id+"/aws/profiles/"+e))}}};var o={"Content-Type":"application/json"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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)}function a(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=e.filterQuery,r=e.mustContain,i=e.busy;return{listClusters:function(e){return i(t._.get("/clusters",{params:e}))},createCluster:function(e){return i(t._.post("/clusters",e,{transformRequest:a,headers:l}))},getCluster:function(e){return i(t._.get("/clusters/"+e))},updateCluster:function(e){var u=(0,s["default"])(e),c=["name","type","config","_id"],f=n.apply(void 0,[u].concat(o(c.slice(0,3)))),p=r.apply(void 0,[e].concat(c)),d=p.missingKeys,h=p.promise;return u.config.ssh&&u.config.ssh.user&&delete u.config.ssh.user,u.config.host&&delete u.config.host,d?h:i(t._.patch("/clusters/"+e._id,f,{transformRequest:a,headers:l}))},deleteCluster:function(e){return i(t._["delete"]("/clusters/"+e))},submitJob:function(e,t){console.log("Not implemented yet")},getClusterLogs:function(e){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1];return i(t._.get("/clusters/"+e+"/log",{param:{offset:n}}))},startCluster:function(e){return i(t._.put("/clusters/"+e+"/start"))},getClusterStatus:function(e){return i(t._.get("/clusters/"+e+"/status"))},terminateCluster:function(e){console.log("Not implemented yet")}}};var i=n(277),s=r(i),l={"Content-Type":"application/json"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(375),a=r(o),i=n(376),s=r(i),l=n(378),u=r(l),c=n(379),f=r(c),p=n(380),d=r(p),h=n(381),g=r(h);t["default"]=[a["default"],s["default"],u["default"],f["default"],d["default"],g["default"]]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=(e.filterQuery,e.mustContain,e.busy);return{getJobs:function(e,r){return n(e&&r?t._.get("/jobs?offset="+e+"&limit="+r):e?t._.get("/jobs?offset="+e):r?t._.get("/jobs?limit="+r):t._.get("/jobs"))},createJob:function(e){return n(t._.post("/jobs",e))},getJob:function(e){return n(t._.post("/jobs/"+e))},updateJob:function(e,r){return n(t._.patch("/jobs/"+e,r))},deleteJob:function(e){return n(t._["delete"]("/jobs/"+e))},getJobLog:function(e,r){return n(r?t._.get("/jobs/"+e+"/log?offset="+r):t._.get("/jobs/"+e+"/log"))},getJobOutput:function(e,r,o){return n(o?t._.get("/jobs/"+e+"/output?path="+r+"&offset="+o):t._.get("/jobs/"+e+"/output?path="+r))},getJobStatus:function(e){return n(t._.get("/jobs/"+e+"/status"))},terminateJob:function(e){return n(t._.put("/jobs/"+e+"/terminate"))}}}},function(e,t){"use strict";function n(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)}function r(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,a=e.filterQuery,i=e.mustContain,s=e.busy;return{listProjects:function(){return s(t._.get("/projects"))},createProject:function(e){var n=["name","type","steps","metadata"],r=i.apply(void 0,[e].concat(n)),o=r.missingKeys,a=r.promise;return o?a:s(t._.post("/projects",e))},getProject:function(e){return s(t._.get("/projects/"+e))},updateProject:function(e){var l=["name","description","metadata","_id"],u=a.apply(void 0,[e].concat(n(l.slice(0,3)))),c=i.apply(void 0,[e].concat(l)),f=c.missingKeys,p=c.promise;return f?p:s(t._.patch("/projects/"+e._id,u,{headers:o,transformRequest:r}))},deleteProject:function(e){ +return s(t._["delete"]("/projects/"+e))},shareProject:function(e){return s(t._.put("/projects/"+e+"/share"))},listSimulations:function(e){return s(t._.get("/projects/"+e+"/simulations"))},createSimulation:function(e,n){var i=["name","description","steps","active","disabled"],l=a.apply(void 0,[n].concat(i));return s(t._.post("/projects/"+e+"/simulations",l,{headers:o,transformRequest:r}))}}};var o={"Content-Type":"application/json"}},function(e,t){"use strict";function n(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)}function r(e){return JSON.stringify(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,a=e.filterQuery,i=(e.mustContain,e.busy);return{getSimulation:function(e){return i(t._.get("/simulations/"+e))},editSimulation:function(e){var s=["name","description","active","disabled","_id"],l=a.apply(void 0,[e].concat(n(s.slice(0,4))));return i(t._.patch("/simulations/"+e._id,l,{headers:o,transformRequest:r}))},deleteSimulation:function(e){return i(t._["delete"]("/simulations/"+e))},cloneSimulation:function(e,n){var a=n.name,s=void 0===a?"Cloned simulation":a;return i(t._.post("/simulations/"+e+"/clone"),{name:s},{headers:o,transformRequest:r})},downloadSimulation:function(e){return i(t._.get("/simulations/"+e+"/download"))},getSimulationStep:function(e,n){return i(t._.get("/simulations/"+e+"/steps/"+n))},updateSimulationStep:function(e,n,a){return i(t._.patch("/simulations/"+e+"/steps/"+n,a,{headers:o,transformRequest:r}))}}};var o={"Content-Type":"application/json"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=e.client,n=(e.filterQuery,e.mustContain,e.busy);return{createTaskflow:function(e){return n(t._.post("/taskflows",{taskFlowClass:e}))},getTaskflow:function(e,r){return n(r?t._.get("/taskflows/"+e+"?path="+r):t._.get("/taskflows/"+e))},updateTaskflow:function(e,r){return n(t._.patch("/taskflows/"+e,r))},deleteTaskflow:function(e){return n(t._["delete"]("/taskflows/"+e))},startTaskflow:function(e,r){return n(t._.put("/taskflows/"+e+"/start",r))},getTaskflowStatus:function(e){return n(t._.get("/taskflows/"+e+"/status"))},getTaskflowTaskStatuses:function(e){return n(t._.get("/taskflows/"+e+"/tasks"))},createNewTaskForTaskflow:function(e,r){return n(t._.post("/taskflows/"+e+"/tasks",r))},endTaskflow:function(e){return n(t._.put("/taskflows/"+e+"/terminate"))}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(369),a=r(o),i=n(374),s=r(i),l=n(377),u=r(l);t["default"]={CoreEndpoints:a["default"],GirderClientBuilder:s["default"],HpcCloudEndpoints:u["default"]}},function(e,t){"use strict";function n(e){return{getScalarBarVisibilities:function(t){return e.call("pv.color.manager.scalarbar.visibility.get",[t])},setScalarBarVisibilities:function(t){return e.call("pv.color.manager.scalarbar.visibility.set",[t])},rescaleTransferFunction:function(t){return e.call("pv.color.manager.rescale.transfer.function",[t])},getCurrentScalarRange:function(t){return e.call("pv.color.manager.scalar.range.get",[t])},colorBy:function(t,n){var r=arguments.length<=2||void 0===arguments[2]?"POINTS":arguments[2],o=arguments.length<=3||void 0===arguments[3]?"":arguments[3],a=arguments.length<=4||void 0===arguments[4]?"Magnitude":arguments[4],i=arguments.length<=5||void 0===arguments[5]?0:arguments[5],s=arguments.length<=6||void 0===arguments[6]?!1:arguments[6];return e.call("pv.color.manager.color.by",[t,n,r,o,a,i,s])},setOpacityFunctionPoints:function(t,n){return e.call("pv.color.manager.opacity.points.set",[t,n])},getRgbPoints:function(t){return e.call("pv.color.manager.rgb.points.get",[t])},setRgbPoints:function(t,n){return e.call("pv.color.manager.rgb.points.set",[t,n])},getLutImage:function(t,n){var r=arguments.length<=2||void 0===arguments[2]?null:arguments[2];return e.call("pv.color.manager.lut.image.get",[t,n,r])},setSurfaceOpacity:function(t,n){return e.call("pv.color.manager.surface.opacity.set",[t,n])},getSurfaceOpacity:function(t){return e.call("pv.color.manager.surface.opacity.get",[t])},selectColorMap:function(t,n){return e.call("pv.color.manager.select.preset",[t,n])},listColorMapNames:function(){return e.call("pv.color.manager.list.preset",[])},listColorMapImages:function(){var t=arguments.length<=0||void 0===arguments[0]?256:arguments[0];return e.call("pv.color.manager.lut.image.all",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{listServerDirectory:function(){var t=arguments.length<=0||void 0===arguments[0]?".":arguments[0];return e.call("file.server.directory.list",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{storeKeyPair:function(t,n){return e.call("pv.keyvaluepair.store",[t,n])},retrieveKeyPair:function(t){return e.call("pv.keyvaluepair.retrieve",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{interaction:function(t){return e.call("viewport.mouse.interaction",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{create:function(t){var n=arguments.length<=1||void 0===arguments[1]?"0":arguments[1];return e.call("pv.proxy.manager.create",[t,n])},open:function(t){return e.call("pv.proxy.manager.create.reader",[t])},get:function(t){var n=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.call("pv.proxy.manager.get",[t,n])},findProxyId:function(t,n){return e.call("pv.proxy.manager.find.id",[t,n])},update:function(t){return e.call("pv.proxy.manager.update",[t])},"delete":function(t){return e.call("pv.proxy.manager.delete",[t])},list:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("pv.proxy.manager.list",[t])},available:function(){var t=arguments.length<=0||void 0===arguments[0]?"sources":arguments[0];return e.call("pv.proxy.manager.available",[t])},availableSources:function(){return e.call("pv.proxy.manager.available",["sources"])},availableFilters:function(){return e.call("pv.proxy.manager.available",["filters"])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{saveData:function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return e.call("pv.data.save",[t,n])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{updateTime:function(t){return e.call("pv.vcr.action",[t])},next:function(){return e.call("pv.vcr.action",["next"])},previous:function(){return e.call("pv.vcr.action",["prev"])},first:function(){return e.call("pv.vcr.action",["first"])},last:function(){return e.call("pv.vcr.action",["last"])},setTimeStep:function(t){return e.call("pv.time.index.set",[t])},getTimeStep:function(){return e.call("pv.time.index.get",[])},setTimeValue:function(t){return e.call("pv.time.value.set",[t])},getTimeValue:function(){return e.call("pv.time.value.get",[])},getTimeValues:function(){return e.call("pv.time.values",[])},play:function(){var t=arguments.length<=0||void 0===arguments[0]?.1:arguments[0];return e.call("pv.time.play",[t])},stop:function(){return e.call("pv.time.stop",[])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{resetCamera:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("viewport.camera.reset",[t])},updateOrientationAxesVisibility:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.call("viewport.axes.orientation.visibility.update",[t,n])},updateCenterAxesVisibility:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.call("viewport.axes.center.visibility.update",[t,n])},updateCamera:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments.length<=1||void 0===arguments[1]?[0,0,0]:arguments[1],r=arguments.length<=2||void 0===arguments[2]?[0,1,0]:arguments[2],o=arguments.length<=3||void 0===arguments[3]?[0,0,1]:arguments[3];return e.call("viewport.camera.update",[t,n,r,o])},getCamera:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("viewport.camera.get",[t])},updateSize:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments.length<=1||void 0===arguments[1]?500:arguments[1],r=arguments.length<=2||void 0===arguments[2]?500:arguments[2];return e.call("viewport.size.update",[t,n,r])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{getSceneMetaData:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("viewport.webgl.metadata",[t])},getWebGLData:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0],n=arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return e.call("viewport.webgl.data",[t,n,r])},getCachedWebGLData:function(t){return e.call("viewport.webgl.cached.data",[t])},getSceneMetaDataAllTimesteps:function(){var t=arguments.length<=0||void 0===arguments[0]?-1:arguments[0];return e.call("viewport.webgl.metadata.alltimesteps",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";function n(e){return{stillRender:function(){var t=arguments.length<=0||void 0===arguments[0]?{size:[400,400],view:-1}:arguments[0];return e.call("viewport.image.render",[t])}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],r=e.getSession(),o={connection:e,session:r},a=t.length;a--;){var i=t[a];o[i]=T[i](r)}for(var s in n)o[s]=n[s](r);return o}Object.defineProperty(t,"__esModule",{value:!0}),t.createClient=o;var a=n(383),i=r(a),s=n(384),l=r(s),u=n(385),c=r(u),f=n(386),p=r(f),d=n(387),h=r(d),g=n(388),m=r(g),v=n(389),_=r(v),y=n(390),b=r(y),w=n(391),x=r(w),C=n(392),E=r(C),T={ColorManager:i["default"],FileListing:l["default"],KeyValuePairStore:c["default"],MouseHandler:p["default"],ProxyManager:h["default"],SaveData:m["default"],TimeHandler:_["default"],ViewPort:b["default"],ViewPortGeometryDelivery:x["default"],ViewPortImageDelivery:E["default"]};t["default"]={createClient:o}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){var t=new h["default"](e.config.sessionURL,e.config.secret);e.subscriptions.push(t.onConnectionReady(e.readyForwarder)),e.subscriptions.push(t.onConnectionClose(e.closeForwarder)),t.connect(),e.gc.push(t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(16),l=r(s),u=n(121),c=r(u),f=n(206),p=r(f),d=n(207),h=r(d),g="connection.ready",m="connection.close",v="connection.error",_=[location.protocol,"//",location.hostname,":",location.port,"/paraview/"].join(""),y=["https"===location.protocol?"wss":"ws","://",location.hostname,":",location.port,"/ws"].join(""),b=function(){function e(t){var n=this;o(this,e),this.config=t,this.gc=[],this.subscriptions=[],this.session=null,this.readyForwarder=function(e,t){n.session=e.getSession(),n.emit(g,e)},this.errorForwarder=function(e,t){n.emit(v,e)},this.closeForwarder=function(e,t){n.emit(m,e)}}return i(e,[{key:"connect",value:function(){var e=this;if(this.config.sessionURL)a(this);else{var t=new p["default"](this.config.sessionManagerURL||_);this.subscriptions.push(t.onProcessReady(function(t,n){e.config=(0,c["default"])(e.config,t),a(e)})),this.subscriptions.push(t.onError(function(t,n){e.config.sessionURL=y,a(e)})),t.start(this.config),this.gc.push(t)}}},{key:"onConnectionReady",value:function(e){return this.on(g,e)}},{key:"onConnectionClose",value:function(e){return this.on(m,e)}},{key:"onConnectionError",value:function(e){return this.on(v,e)}},{key:"getSession",value:function(){return this.session}},{key:"destroy",value:function(){for(this.off();this.subscriptions.length;)this.subscriptions.pop().unsubscribe();for(this.session&&this.session.close(),this.session=null,this.readyForwarder=null,this.errorForwarder=null,this.closeForwarder=null;this.gc.length;)this.gc.pop().destroy()}}]),e}();t["default"]=b,l["default"].mixInto(b)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(207),a=r(o),i=n(208),s=r(i),l=n(393),u=r(l),c=n(394),f=r(c);t["default"]={AutobahnConnection:a["default"],BinaryImageStream:s["default"],ParaViewWebClient:u["default"],SmartConnect:f["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(363),a=r(o),i=n(382),s=r(i),l=n(395),u=r(l);t["default"]={Core:a["default"],Girder:s["default"],WebSocket:u["default"]}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t){n(this,e),this.data=t}return r(e,[{key:"getParameterList",value:function(){return Object.getOwnPropertyNames(this.data)}},{key:"fetchHistogram",value:function(e,t,n){var r=this.data[e][t];n(r)}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(397),a=r(o);t["default"]={StaticDataProvider:a["default"]}},function(e,t){"use strict";function n(e,t,n,r,o){return(t-e)/(n-e)*(o-r)+r}function r(e,t,r,o){function a(e){var t;for(W=e.slice(),U=[],z=[],q=[],X=[],G=0,Y=null,t=0;t<W.length;++t)U.push(!0),z.push([])}function i(e,t){var n,r,o,a={},i={},s=null;for(n=0;n<e.bins.length;++n)s=e.bins[n],a.hasOwnProperty(s.x)||(a[s.x]=0),a[s.x]+=s.count;for(n=0;n<t.bins.length;++n)s=t.bins[n],i.hasOwnProperty(s.y)||(i[s.y]=0),i[s.y]+=s.count;for(r in a)a[r]!==i[r]&&console.error("Sanity check failed for bin: "+r);for(o in i)i[o]!==a[o]&&console.error("Sanity check failed for bin: "+o)}function s(e){var t,n,r,o=0;for(t=0;t<e.length;++t)n=e[t],r={max:0},n.bins.map(function(e,t,n){e.count>this.max&&(this.max=e.count)},r),r.max>o&&(o=r.max);if(me)for(t=0;t<e.length-1;++t)i(e[t],e[t+1]);return o}function l(e){return.5+e|0}function u(e,t,r){var o=n(Z.height-Q.bottom,e,Q.top,t[0],t[1]);return r===!1&&(o=n(Q.top,e,Z.height-Q.bottom,t[0],t[1])),o}function c(e,t,r){var o=n(t[0],e,t[1],Z.height-Q.bottom,Q.top);return r===!1&&(o=n(t[0],e,t[1],Q.top,Z.height-Q.bottom)),l(o)}function f(e){return z[e].length>0&&z[e][0].hasOwnProperty("dataRange")}function p(e,t,n){var r,o=z[e],a=q[e],i=u(t,a,U[e]),s=u(n,a,U[e]),l=i,c=s;l>c&&(r=l,l=c,c=r),o[o.length-1]={dataRange:[l,c]}}function d(e,t,n,r,o,a){var i=1,s=e+(n-e)/2,l=r+(t-r)/2,u=t-r,c=n-e,f=(u-4*i)/3,p=c-2*i;A.fillStyle=re,a>=0&&(A.beginPath(),A.moveTo(r+i,s),A.lineTo(r+i+f,e+i),A.lineTo(r+i+f,e+i+p),A.closePath(),A.fill()),A.beginPath(),A.moveTo(r+f+2*i,s),o?A.lineTo(l,e+i):A.lineTo(l,n-i),A.lineTo(r+2*f+2*i,s),A.closePath(),A.fill(),0>=a&&(A.beginPath(),A.moveTo(t-i,s),A.lineTo(t-i-f,e+i+p),A.lineTo(t-i-f,e+i),A.closePath(),A.fill())}function h(){var e;for(e=0;e<V.length;++e)A.beginPath(),f(e)?(A.arc(V[e],10,8,0,2*Math.PI),A.fillStyle=te,A.fill()):(A.arc(V[e],10,6,0,2*Math.PI),A.strokeStyle=re,A.stroke())}function g(){var e,t=0;for(e=0;e<V.length;++e)t=0,0===e?t=-1:e===V.length-1&&(t=1),d(25,V[e]+$.width/2,25+$.height,V[e]-$.width/2,U[e],t)}function m(e,t,n){A.font="9px sans-serif",n?(A.fillText(t[0],e,Q.top+J.height+13),A.fillText(t[1],e,Q.top-5)):(A.fillText(t[1],e,Q.top+J.height+13),A.fillText(t[0],e,Q.top-5))}function v(){var e,t=51,n=V.length-1;for(A.font="12px sans-serif",A.fillStyle=ne,A.textAlign="start",A.fillText(W[0],V[0],t),m(V[0],q[0],U[0]),e=1;e<W.length-1;++e)A.font="12px sans-serif",A.fillStyle=ne,A.textAlign="center",A.fillText(W[e],V[e],t),m(V[e],q[e],U[e]);A.font="12px sans-serif",A.fillStyle=ne,A.textAlign="end",A.fillText(W[n],V[n],t),m(V[n],q[n],U[n])}function _(){var e,t,n,r,o,a;for(t=0;t<V.length;++t)for(A.strokeStyle=ee,A.lineWidth=3,A.beginPath(),A.moveTo(V[t],Q.top),A.lineTo(V[t],Z.height-Q.bottom),A.stroke(),n=z[t],r=q[t],o=U[t],A.strokeStyle=te,A.lineWidth=5,e=0;e<n.length;++e)a=n[e],a.dataRange&&(A.beginPath(),A.moveTo(V[t],c(a.dataRange[0],r,o)),A.lineTo(V[t],c(a.dataRange[1],r,o)),A.stroke())}function y(e,t,r,o,a){var i,s=o.y.extent,l=o.x.extent,u=o.y.delta,f=o.x.delta,p=V[t],d=V[r],h=null,g=0,m=0,v=0,_=0,y=0,b=0,w=0,x=0,C=0;for(i=0;i<o.bins.length;++i)h=o.bins[i],g=n(0,h.count,le,0,1),m=c(h.y,s,U[t]),v=c(h.y+u,s,U[t]),_=c(h.x,l,U[r]),y=c(h.x+f,l,U[r]),b=0,w=0,x=0,C=0,v>=m?(b=m,w=v):(b=v,w=m),y>=_?(x=_,C=y):(x=y,C=_),e.beginPath(),e.moveTo(p,b),e.lineTo(p,w),e.lineTo(d,C),e.lineTo(d,x),e.closePath(),e.fillStyle="rgba("+a[0]+","+a[1]+","+a[2]+","+g+")",e.fill()}function b(){var e,t,n,r;if(null===W||W.length<=1)return void console.error("Parallel coordinates cannot be rendered without at least two parameters selected.");if(!X||X.length!==W.length-1)return void E();for(A.globalAlpha=1,Z.width=D.width,Z.height=D.height,I.width=D.width,I.height=D.height,F.width=D.width,F.height=D.height,J.width=Z.width-(Q.left+Q.right),J.height=Z.height-(Q.top+Q.bottom),H=(J.width-K)/(W.length-1),V=[],V.push(Q.left+K/2),e=1;e<W.length;++e)V.push(l(V[e-1]+H));for(A.clearRect(0,0,Z.width,Z.height),O.clearRect(0,0,Z.width,Z.height),N.clearRect(0,0,Z.width,Z.height),le=ie,t=0;t<X.length;++t)y(N,t,t+1,X[t],oe);if(A.globalAlpha=ce,A.drawImage(F,0,0,Z.width,Z.height,0,0,Z.width,Z.height),Y){for(r=Y.counts[0],le=se,n=0;n<r.length;++n)y(O,n,n+1,r[n],ae);A.globalAlpha=ue,A.drawImage(I,0,0,Z.width,Z.height,0,0,Z.width,Z.height)}A.globalAlpha=1,_(),v(),g(),h()}function w(){A.clearRect(0,0,Z.width,Z.height),A.globalAlpha=ce,A.drawImage(F,0,0,Z.width,Z.height,0,0,Z.width,Z.height),A.globalAlpha=ue,A.drawImage(I,0,0,Z.width,Z.height,0,0,Z.width,Z.height),A.globalAlpha=1,_(),v(),g(),h()}function x(e,t){G+=1,X[e]=t,0===t.y.delta&&(t.y.delta=1,t.y.extent[1]=t.y.extent[0]+1),0===t.x.delta&&(t.x.delta=1,t.x.extent[1]=t.x.extent[0]+1),q[e]=t.y.extent.slice(),e===W.length-2&&(q[e+1]=t.x.extent.slice()),G===W.length-1&&(ie=s(X),b())}function C(e,t){L(W[t],W[e],function(t){x(e,t)})}function E(){var e;for(X=[],q=[],G=0,ie=0,e=0;e<W.length-1;++e)C(e,e+1)}function T(){var e,t,n,r,o,a,i=!1,l={},u={},c=[];if(B){for(Y=null,se=0,e=0;e<z.length;++e){for(r=z[e],n=W[e],a=[],t=0;t<r.length;++t)o=r[t],o.dataRange&&a.push(o.dataRange);a.length>0&&(u[n]=a,i=!0)}if(i===!0){for(t=0;t<W.length-1;++t)c.push([W[t+1],W[t]]);l={ranges:u,histograms:c},B(l,function(e){se=s(e.counts[0]),Y=e,b()})}else se=0,Y=null,j(),b()}}function P(){E(),T()}function k(){var e;for(Y=null,se=0,e=0;e<z.length;++e)z[e]=[];b()}function M(e){e.hasOwnProperty("background")&&(ce=e.background),e.hasOwnProperty("selection")&&(ue=e.selection),w()}function S(e,t){var n=W[t],r=U[t],o=z[t],a=q[t];W[t]=W[e],U[t]=U[e],z[t]=z[e],q[t]=q[e],W[e]=n,U[e]=r,z[e]=o,q[e]=a}function R(e){var t,n,r,o,a,i=e.x,s=e.y,l=e.action;if("mouseup"===l){if(t=Math.abs(i-pe.x),n=Math.abs(s-pe.y),s<=$.height+25&&de>=t&&de>=n)for(r=0;r<V.length;++r)o=i-V[r],a=Math.abs(o),a<=$.width/2&&(25>=s?f(r)&&(z[r]=[],T()):a<$.width/3/2?(U[r]=!U[r],b()):o>0?r<V.length-1&&(S(r,r+1),P()):r>0&&(S(r-1,r),P()));else fe&&T();fe=!1,pe.x=-1,pe.y=-1}else if("mousedown"===l){if(pe.x=i,pe.y=s,B&&s>Q.top&&s<Z.height-Q.bottom)for(ge=-1,r=0;r<V.length;++r)if(a=Math.abs(i-V[r]),he>=a){fe=!0,ge=r,z[r].push({dataRange:[0,0]});break}}else fe&&(p(ge,pe.y,s),_())}var D=e,A=e.getContext("2d"),I=document.createElement("canvas"),O=I.getContext("2d"),F=document.createElement("canvas"),N=F.getContext("2d"),L=t,B=r,j=o,W=[],U=[],V=[],z=[],q=[],H=0,X=[],G=0,Y=null,Q={top:72,right:10,bottom:20,left:10},K=3,Z={width:D.width,height:D.height},J={width:Z.width-(Q.left+Q.right),height:Z.height-(Q.top+Q.bottom)},$={width:66,height:13},ee="rgba(128,128,128,1)",te="rgba(105, 195, 255, 1)",ne="rgba(0,0,0,1)",re="rgba(128,128,128,1)",oe=[0,0,0],ae=[70,130,180],ie=0,se=0,le=0,ue=1,ce=1,fe=!1,pe={x:-1,y:-1},de=1,he=10,ge=-1,me=!1,ve={mouseHandler:R,render:b,updateAxisList:a,clearSelection:k,updateOpacityAdjustments:M};return Object.freeze(ve)}Object.defineProperty(t,"__esModule",{value:!0}),t.createParallelCoordinates=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(398),a=r(o),i=n(399),s=r(i);t["default"]={ParallelCoordinateProvider:a["default"],ParallelCoordinates:s["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(400),a=r(o);t["default"]={Native:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(73),a=r(o),i=n(209),s=r(i);t["default"]={MouseHandler:a["default"],VtkWebMouseListener:s["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(402),a=r(o);t["default"]={Core:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(210),a=r(o);t["default"]={NativeImageRenderer:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(404),a=r(o);t["default"]={Renderers:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(315),s=r(i);t["default"]=a["default"].createClass({displayName:"FloatImageControl.LayerItem",propTypes:{item:a["default"].PropTypes.object.isRequired,model:a["default"].PropTypes.object.isRequired},getInitialState:function(){return{change:!1,dropDown:!1}},toggleMesh:function(){this.props.item.hasMesh&&(this.props.model.updateMaskLayerVisibility(this.props.item.name,!this.props.item.meshActive),this.setState({change:!this.state.change}))},toggleVisibility:function(){this.props.model.updateLayerVisibility(this.props.item.name,!this.props.item.active),this.setState({change:!this.state.change})},toggleDropDown:function(){this.props.item.arrays.length>1&&this.setState({dropDown:!this.state.dropDown})},updateColorBy:function(e){this.props.model.updateLayerColorBy(this.props.item.name,e.target.dataset.color),this.toggleDropDown()},render:function(){var e=this.props.item,t=e.active,n=e.meshActive,r=e.hasMesh,o=e.arrays.length>1;return a["default"].createElement("div",{className:s["default"].item},a["default"].createElement("div",{className:s["default"].label},e.name),a["default"].createElement("div",{className:s["default"].actions},a["default"].createElement("i",{className:r?n?s["default"].meshButtonOn:s["default"].meshButtonOff:s["default"].hidden,onClick:this.toggleMesh}),a["default"].createElement("i",{className:t?s["default"].visibleButtonOn:s["default"].visibleButtonOff,onClick:this.toggleVisibility}),a["default"].createElement("i",{className:o?s["default"].dropDownButtonOn:s["default"].dropDownButtonOff,onClick:this.toggleDropDown}),a["default"].createElement("div",{onClick:this.updateColorBy,className:this.state.dropDown?s["default"].menu:s["default"].hidden},e.arrays.map(function(t){return a["default"].createElement("div",{key:t,"data-color":t,className:t===e.array?s["default"].selectedMenuItem:s["default"].menuItem},t)}))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(134),a=r(o),i=n(211),s=r(i),l=n(212),u=r(l),c=n(135),f=r(c),p=n(213),d=r(p),h=n(214),g=r(h),m=n(136),v=r(m),_=n(215),y=r(_),b=n(216),w=r(b);t["default"]={CollapsibleControlFactory:a["default"],FloatImageControl:s["default"],LightControl:u["default"],LookupTableManagerControl:f["default"],MultiViewControl:d["default"],PixelOperatorControl:g["default"],ProbeControl:v["default"],QueryDataModelControl:y["default"],VolumeControl:w["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(131),s=r(i),l=n(204),u=r(l),c=n(86),f=r(c);t["default"]=a["default"].createClass({displayName:"InputCell",propTypes:{domain:a["default"].PropTypes.object,idx:a["default"].PropTypes.number.isRequired,label:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,type:a["default"].PropTypes.string,value:a["default"].PropTypes.any},getDefaultProps:function(){return{label:"",idx:0,value:"",type:"string"}},getInitialState:function(){return{editing:!1,valueRep:this.props.value}},valueChange:function(e){var t=e.target.value;if(this.setState({editing:!0,valueRep:t}),u["default"][this.props.type](t)){var n=s["default"][this.props.type](t);n=this.applyDomains(this.props.idx,n),this.props.onChange(this.props.idx,n)}},applyDomains:function(e,t){if(!this.props.domain)return t;if(this.props.domain.hasOwnProperty("range")&&this.props.domain.range.length){var n=this.props.domain.range.length,r=this.props.domain.range[e%n],o=r.min,a=r.max,i=r.force;i&&(t=void 0!==o?Math.max(o,t):t,t=void 0!==a?Math.min(a,t):t)}return t},getTooltip:function(){var e="",t=this.props.idx;if(!this.props.domain)return e;if(this.props.domain.hasOwnProperty("range")&&this.props.domain.range.length){var n=this.props.domain.range.length,r=this.props.domain.range[t%n]||{},o=r.min,a=r.max;e+=void 0!==o?"min("+o+") ":"",e+=void 0!==a?"max("+a+") ":""}return e},endEditing:function(){this.setState({editing:!1})},render:function(){return a["default"].createElement("td",{className:f["default"].inputCell},a["default"].createElement("label",{className:f["default"].inputCellLabel},this.props.label),a["default"].createElement("input",{className:f["default"].inputCellInput,value:this.state.editing?this.state.valueRep:this.props.value,onChange:this.valueChange,title:this.getTooltip(),onBlur:this.endEditing}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=arguments.length<=2||void 0===arguments[2]?"":arguments[2];if(!e)return Array(t).fill(n);for(;e.length<t;)e.push(n);return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e,t,n){t.hasOwnProperty("layout")||(t.layout="NO_LAYOUT"),t.hasOwnProperty("size")||(t.size=1),t.hasOwnProperty("type")||(t.type="string"),t.hasOwnProperty("domain")||(t.domain={});var r=f[t.layout];return r?r(e,t,n):null};var a=n(3),i=r(a),s=n(408),l=r(s),u=n(86),c=r(u),f={1:function(e,t,n){return t.componentLabels=o(t.componentLabels,1),e.value=o(e.value,1,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n})))},2:function(e,t,n){return t.componentLabels=o(t.componentLabels,2),e.value=o(e.value,2,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1],type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n})))},3:function(e,t,n){return t.componentLabels=o(t.componentLabels,3),e.value=o(e.value,3,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1],type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:2,label:t.componentLabels[2],type:t.type,value:e.value[2],name:e.name,domain:t.domain,onChange:n})))},"2x3":function(e,t,n){return t.componentLabels=o(t.componentLabels,6),e.value=o(e.value,6,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_0"},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1],type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:2,label:t.componentLabels[2],type:t.type,value:e.value[2],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_1"},i["default"].createElement(l["default"],{idx:3,label:t.componentLabels[3],type:t.type,value:e.value[3],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:4,label:t.componentLabels[4],type:t.type,value:e.value[4],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:5,label:t.componentLabels[5],type:t.type,value:e.value[5],name:e.name,domain:t.domain,onChange:n})))},"3x2":function(e,t,n){return t.componentLabels=o(t.componentLabels,6),e.value=o(e.value,6,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_0"},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1],type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_1"},i["default"].createElement(l["default"],{idx:2,label:t.componentLabels[2],type:t.type,value:e.value[2],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:3,label:t.componentLabels[3],type:t.type,value:e.value[3],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_2"},i["default"].createElement(l["default"],{idx:4,label:t.componentLabels[4],type:t.type,value:e.value[4],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:5,label:t.componentLabels[5],type:t.type,value:e.value[5],name:e.name,domain:t.domain,onChange:n})))},m6:function(e,t,n){return t.componentLabels=o(t.componentLabels,6),e.value=o(e.value,6,null),i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_0"},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:1,label:t.componentLabels[1], +type:t.type,value:e.value[1],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:2,label:t.componentLabels[2],type:t.type,value:e.value[2],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_1"},i["default"].createElement("td",null),i["default"].createElement(l["default"],{idx:3,label:t.componentLabels[3],type:t.type,value:e.value[3],name:e.name,domain:t.domain,onChange:n}),i["default"].createElement(l["default"],{idx:4,label:t.componentLabels[4],type:t.type,value:e.value[4],name:e.name,domain:t.domain,onChange:n})),i["default"].createElement("tr",{className:c["default"].inputRow,key:e.id+"_2"},i["default"].createElement("td",null),i["default"].createElement("td",null),i["default"].createElement(l["default"],{idx:5,label:t.componentLabels[5],type:t.type,value:e.value[5],name:e.name,domain:t.domain,onChange:n})))},"-1":function(e,t,n){return i["default"].createElement("tbody",null,e.value.map(function(r,o){return i["default"].createElement("tr",{key:[e.id,o].join("_"),className:c["default"].inputRow},i["default"].createElement("td",null,i["default"].createElement("i",{className:o?c["default"].deleteIcon:c["default"].hidden,onClick:function(){n(o,null)}})),i["default"].createElement(l["default"],{idx:o,label:"",type:t.type,value:r,name:e.name,domain:t.domain,onChange:n}))}))},NO_LAYOUT:function(e,t,n){return i["default"].createElement("tbody",null,i["default"].createElement("tr",{className:c["default"].inputRow},i["default"].createElement(l["default"],{idx:0,label:t.componentLabels[0],type:t.type,value:e.value[0],name:e.name,domain:t.domain,onChange:n})))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(804),s=r(i);t["default"]=a["default"].createClass({displayName:"Checkbox",propTypes:{idx:a["default"].PropTypes.number,label:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,value:a["default"].PropTypes.bool},getDefaultProps:function(){return{value:!1,label:""}},valueChange:function(e){this.props.onChange&&(this.props.idx>=0?this.props.onChange(this.props.idx,e.target.checked):this.props.onChange(null,e.target.checked))},render:function(){return a["default"].createElement("div",null,a["default"].createElement("label",{className:s["default"].label},this.props.label),a["default"].createElement("input",{className:s["default"].input,type:"checkbox",checked:this.props.value,onChange:this.valueChange}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(137),s=r(i),l=n(806),u=r(l);t["default"]=a["default"].createClass({displayName:"PropertyPanel",propTypes:{className:a["default"].PropTypes.string,input:a["default"].PropTypes.array,labels:a["default"].PropTypes.object,onChange:a["default"].PropTypes.func,viewData:a["default"].PropTypes.object},getDefaultProps:function(){return{className:"",input:[]}},valueChange:function(e){this.props.onChange&&this.props.onChange(e)},render:function(){var e=this,t=this.props.viewData,n=function(n){return(0,s["default"])(n,t,e.valueChange)},r=function(e){return a["default"].createElement("div",{key:e.title},a["default"].createElement("div",{className:u["default"].propertyHeader},a["default"].createElement("strong",null,e.title)),e.contents.map(n))};return a["default"].createElement("section",{className:[this.props.className,u["default"].propertyPanel].join(" ")},this.props.input.map(r))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(3),i=r(a),s=n(104),l=r(s);t["default"]=i["default"].createClass({displayName:"Slider",propTypes:{idx:i["default"].PropTypes.number,onChange:i["default"].PropTypes.func},valueChange:function(e){this.props.onChange&&(this.props.idx>=0?this.props.onChange(this.props.idx,e.target.value):this.props.onChange(null,e.target.value))},render:function(){var e=Object.assign({},this.props);return delete e.onChange,delete e.idx,i["default"].createElement(l["default"],o({},e,{onChange:this.valueChange}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(217),a=r(o),i=n(218),s=r(i),l=n(219),u=r(l),c=n(137),f=r(c),p=n(411),d=r(p),h=n(220),g=r(h);t["default"]={CellProperty:a["default"],CheckboxProperty:s["default"],EnumProperty:u["default"],PropertyFactory:f["default"],PropertyPanel:d["default"],SliderProperty:g["default"]}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]={"2x2":function(e,t,n,r){return[[t,t,e[0]-1.5*t,e[1]-1.5*t],[e[0]+.5*t,t,n-e[0]-1.5*t,e[1]-1.5*t],[t,e[1]+.5*t,e[0]-1.5*t,r-e[1]-1.5*t],[e[0]+.5*t,e[1]+.5*t,n-e[0]-1.5*t,r-e[1]-1.5*t]]},"1x1":function(e,t,n,r){return[[t,t,n-2*t,r-2*t]]},"1x2":function(e,t,n,r){return[[t,t,n-2*t,e[1]-1.5*t],[t,e[1]+.5*t,n-2*t,r-e[1]-1.5*t]]},"2x1":function(e,t,n,r){return[[t,t,e[0]-1.5*t,r-2*t],[e[0]+.5*t,t,n-e[0]-1.5*t,r-2*t]]},"3xT":function(e,t,n,r){return[[t,t,n-2*t,e[1]-1.5*t],[t,e[1]+.5*t,e[0]-1.5*t,r-e[1]-1.5*t],[e[0]+.5*t,e[1]+.5*t,n-e[0]-1.5*t,r-e[1]-1.5*t]]},"3xL":function(e,t,n,r){return[[t,t,e[0]-1.5*t,r-2*t],[e[0]+.5*t,t,n-e[0]-1.5*t,e[1]-1.5*t],[e[0]+.5*t,e[1]+.5*t,n-e[0]-1.5*t,r-e[1]-1.5*t]]},"3xR":function(e,t,n,r){return[[t,t,e[0]-1.5*t,e[1]-1.5*t],[e[0]+.5*t,t,n-e[0]-1.5*t,r-2*t],[t,e[1]+.5*t,e[0]-1.5*t,r-e[1]-1.5*t]]},"3xB":function(e,t,n,r){return[[t,t,e[0]-1.5*t,e[1]-1.5*t],[e[0]+.5*t,t,n-e[0]-1.5*t,e[1]-1.5*t],[t,e[1]+.5*t,n-2*t,r-e[1]-1.5*t]]}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(25),s=r(i),l=n(208),u=r(l),c=n(210),f=r(c),p=n(46),d=r(p),h=n(209),g=r(h);t["default"]=a["default"].createClass({displayName:"VtkRenderer",propTypes:{className:a["default"].PropTypes.string,client:a["default"].PropTypes.object,connection:a["default"].PropTypes.object,showFPS:a["default"].PropTypes.bool,style:a["default"].PropTypes.object},getDefaultProps:function(){return{className:"",showFPS:!1,style:{}}},componentWillMount:function(){d["default"].startListening()},componentDidMount:function(){var e=this,t=s["default"].findDOMNode(this),n=d["default"].getSize(t),r=n.clientWidth,o=n.clientHeight;this.binaryImageStream=new u["default"](this.props.connection.urls+"b",r,o),this.mouseListener=new g["default"](this.props.client),this.mouseListener.onInteraction(function(t){t?e.binaryImageStream.startInteractiveQuality():e.binaryImageStream.stopInteractiveQuality()}),this.subscription=d["default"].onSizeChange(function(){var n=d["default"].getSize(t),r=n.clientWidth,o=n.clientHeight;e.mouseListener.updateSize(r,o),e.props.client.session.call("viewport.size.update",[-1,r,o])}),this.imageRenderer=new f["default"](t,this.binaryImageStream,this.mouseListener.getListeners(),this.props.showFPS),this.binaryImageStream.connect({view_id:-1}),d["default"].triggerChange()},componentWillUnmount:function(){this.binaryImageStream&&(this.binaryImageStream.destroy(),this.binaryImageStream=null),this.mouseListener&&(this.mouseListener.destroy(),this.mouseListener=null),this.imageRenderer&&(this.imageRenderer.destroy(),this.imageRenderer=null),this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},render:function(){return a["default"].createElement("div",{className:this.props.className,style:this.props.style})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(221),a=r(o),i=n(222),s=r(i),l=n(223),u=r(l),c=n(415),f=r(c);t["default"]={GeometryRenderer:a["default"],ImageRenderer:s["default"],MultiLayoutRenderer:u["default"],VtkRenderer:f["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(90),a=r(o),i=n(3),s=r(i);t["default"]=s["default"].createClass({displayName:"GeometryViewer",propTypes:{config:s["default"].PropTypes.object,geometryBuilder:s["default"].PropTypes.object.isRequired,menuAddOn:s["default"].PropTypes.array,queryDataModel:s["default"].PropTypes.object.isRequired},getDefaultProps:function(){return{config:{}}},render:function(){var e=this.props.queryDataModel,t=this.props.geometryBuilder,n=[];return this.props.menuAddOn&&(n=this.props.menuAddOn.concat(n)),s["default"].createElement(a["default"],{queryDataModel:e,geometryBuilder:t,renderer:"GeometryRenderer",config:this.props.config||{}},n)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(90),a=r(o),i=n(3),s=r(i),l=n(134),u=r(l);t["default"]=s["default"].createClass({displayName:"ImageBuilderViewer",propTypes:{config:s["default"].PropTypes.object,imageBuilder:s["default"].PropTypes.object.isRequired,menuAddOn:s["default"].PropTypes.array,queryDataModel:s["default"].PropTypes.object.isRequired},getDefaultProps:function(){return{config:{}}},componentWillMount:function(){this.attachListener(this.props.imageBuilder)},componentWillReceiveProps:function(e){var t=this.props.imageBuilder,n=e.imageBuilder;t!==n&&(this.detachListener(),this.props.config.MagicLens&&this.attachListener(n))},componentWillUnmount:function(){this.detachListener()},attachListener:function(e){var t=this;this.detachListener(),e&&e.onModelChange&&(this.changeSubscription=e.onModelChange(function(e,n){t.forceUpdate()}))},detachListener:function(){this.changeSubscription&&(this.changeSubscription.unsubscribe(),this.changeSubscription=null)},render:function(){var e=this.props.queryDataModel,t=this.props.config.MagicLens?this.props.imageBuilder:null,n=this.props.config.MagicLens?this.props.imageBuilder.getActiveImageBuilder():this.props.imageBuilder,r=u["default"].getWidgets(n);return this.props.menuAddOn&&(r=this.props.menuAddOn.concat(r)),s["default"].createElement(a["default"],{queryDataModel:e,magicLensController:t,imageBuilder:n,config:this.props.config||{}},r)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(90),a=r(o),i=n(213),s=r(i),l=n(3),u=r(l),c=n(134),f=r(c);t["default"]=u["default"].createClass({displayName:"MultiLayoutViewer",propTypes:{layout:u["default"].PropTypes.string,menuAddOn:u["default"].PropTypes.array,queryDataModel:u["default"].PropTypes.object.isRequired,renderers:u["default"].PropTypes.object.isRequired},getInitialState:function(){return{activeRenderer:null,renderer:null}},componentDidMount:function(){var e=this,t=this.refs.catalystWidget.getRenderer();this.setState({renderer:t}),this.activeViewportSubscription=t.onActiveViewportChange(function(t,n){e.setState({activeRenderer:e.props.renderers[t.name]})})},componentWillUpdate:function(e,t){var n=this.state.activeRenderer&&this.state.activeRenderer.builder&&this.state.activeRenderer.builder.queryDataModel?this.state.activeRenderer.builder.queryDataModel:this.props.queryDataModel,r=t.activeRenderer&&t.activeRenderer.builder&&t.activeRenderer.builder.queryDataModel?t.activeRenderer.builder.queryDataModel:e.queryDataModel;n!==r&&(this.detachListener(),this.attachListener(r))},componentWillUnmount:function(){this.detachListener(),this.activeViewportSubscription&&(this.activeViewportSubscription.unsubscribe(),this.activeViewportSubscription=null)},attachListener:function(e){var t=this;this.detachListener(),e&&(this.queryDataModelChangeSubscription=e.onStateChange(function(e,n){t.forceUpdate()}))},detachListener:function(){this.queryDataModelChangeSubscription&&(this.queryDataModelChangeSubscription.unsubscribe(),this.queryDataModelChangeSubscription=null)},render:function(){var e=this.state.activeRenderer&&this.state.activeRenderer.builder&&this.state.activeRenderer.builder.queryDataModel?this.state.activeRenderer.builder.queryDataModel:this.props.queryDataModel,t=[];return this.state.activeRenderer&&(t=f["default"].getWidgets(this.state.activeRenderer.builder||this.state.activeRenderer.painter)),this.props.menuAddOn&&(t=this.props.menuAddOn.concat(t)),u["default"].createElement(a["default"],{ref:"catalystWidget",queryDataModel:e,renderers:this.props.renderers,renderer:"MultiViewRenderer",layout:this.props.layout},u["default"].createElement(s["default"],{renderer:this.state.renderer}),t)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(25),s=r(i),l=n(90),u=r(l),c=n(224),f=r(c),p=n(135),d=r(p),h=n(136),g=r(h),m=n(32),v=r(m),_=n(140),y=r(_),b=n(810),w=r(b),x={XY:[0,1,2],ZY:[2,1,0],XZ:[0,2,1]},C=["x","y","z"];t["default"]=a["default"].createClass({displayName:"Probe3DViewer",propTypes:{imageBuilder:a["default"].PropTypes.object.isRequired,probe:a["default"].PropTypes.bool,queryDataModel:a["default"].PropTypes.object.isRequired},getDefaultProps:function(){return{probe:!0}},getInitialState:function(){return{probe:[this.props.imageBuilder.getProbe()[0],this.props.imageBuilder.getProbe()[1],this.props.imageBuilder.getProbe()[2]],chartVisible:!1,chartSize:{width:300,height:300},chartData:{xRange:[0,1],fields:[]},chartAxis:0}},componentWillMount:function(){var e=this,t=this.props.queryDataModel,n=this.props.imageBuilder;this.dragChartFlag=!1,this.queryDataModelDataSubscription=t.onDataChange(function(t,r){e.setState({chartData:n.getProbeLine(e.liveChartAxis)})}),n.setRenderMethodMutable(),this.renderMethodChangeSubscription=n.onRenderMethodChange(function(t,n){e.state.chartVisible&&e.validateChartAxis()}),n.setProbeLineNotification(!0),this.chartListenerSubscription=n.onProbeLineReady(function(t,n){var r=t[C[e.liveChartAxis]];e.setState({chartData:r})}),this.probeListenerSubscription=n.onProbeChange(function(t,n){e.setState({probe:t})})},componentDidUpdate:function(){this.state.chartVisible&&this.refs.chartViewer.updateDimensions()},componentWillUnmount:function(){this.queryDataModelDataSubscription&&(this.queryDataModelDataSubscription.unsubscribe(),this.queryDataModelDataSubscription=null),this.renderMethodChangeSubscription&&(this.renderMethodChangeSubscription.unsubscribe(),this.renderMethodChangeSubscription=null),this.chartListenerSubscription&&(this.chartListenerSubscription.unsubscribe(),this.chartListenerSubscription=null),this.probeListenerSubscription&&(this.probeListenerSubscription.unsubscribe(),this.probeListenerSubscription=null)},validateChartAxis:function(){var e=this.props.imageBuilder.getRenderMethod(),t="XYZ"[this.liveChartAxis];if(-1===e.indexOf(t)){var n=this.props.imageBuilder.getProbeLine(t);t="XYZ".indexOf(e[0]),this.liveChartAxis=t,this.setState({chartAxis:t,chartData:n})}},onChartVisibilityChange:function(e){e&&this.validateChartAxis(),this.setState({chartVisible:e})},updateChart:function(e){var t=Number(e.target.getAttribute("data-index")),n=this.props.imageBuilder,r=n.getProbeLine(t);this.liveChartAxis=t,this.setState({chartData:r,chartAxis:t})},dragOn:function(e){var t=s["default"].findDOMNode(this.refs.chartContainer),n=Number(t.style.top.replace("px","")),r=Number(t.style.left.replace("px",""));this.dragChartFlag=!0,this.dragPosition=[e.clientX-r,e.clientY-n]},dragOff:function(){this.dragChartFlag=!1},dragChart:function(e){if(this.dragChartFlag){var t=s["default"].findDOMNode(this.refs.chartContainer);t.style.left=e.clientX-this.dragPosition[0]+"px",t.style.top=e.clientY-this.dragPosition[1]+"px"}},render:function(){var e=this,t=this.props.queryDataModel,n=this.props.imageBuilder,r=n.metadata.dimensions,o=x[this.props.imageBuilder.getRenderMethod()],i=[];return[0,1,2].forEach(function(t){var n=[];o[2]===t?n.push(w["default"].hidden):e.state.chartAxis===t?n.push(w["default"].selectedButton):n.push(w["default"].button),i.push(n.join(" "))}),a["default"].createElement("div",{className:w["default"].container},a["default"].createElement(u["default"],{queryDataModel:t,imageBuilder:n,mouseListener:n.getListeners()},a["default"].createElement(d["default"],{key:"LookupTableManagerWidget",ref:"LookupTableManagerWidget",lookupTableManager:n.lookupTableManager,field:n.getField()}),a["default"].createElement(g["default"],{ref:"ProbeControl",imageBuilder:n}),a["default"].createElement(v["default"],{ref:"chartCollapsable",title:"Chart",visible:this.props.probe&&n.isCrossHairEnabled(),onChange:this.onChartVisibilityChange,open:this.state.chartVisible},a["default"].createElement("div",{ref:"chartButtons",className:w["default"].row},a["default"].createElement("button",{className:i[0],type:"button","data-index":"0",onClick:this.updateChart},"X"),a["default"].createElement("button",{className:i[1],type:"button","data-index":"1",onClick:this.updateChart},"Y"),a["default"].createElement("button",{className:i[2],type:"button","data-index":"2",onClick:this.updateChart},"Z"))),a["default"].createElement(v["default"],{ref:"queryDataModelParameters",title:"Parameters",visible:t.originalData.arguments_order.length>0},a["default"].createElement(y["default"],{model:t}))),a["default"].createElement("div",{ref:"chartContainer",className:this.state.chartVisible&&n.isCrossHairEnabled()?w["default"].chartContainer:w["default"].hidden,onMouseMove:this.dragChart,onMouseUp:this.dragOff,onMouseDown:this.dragOn},a["default"].createElement(f["default"],{ref:"chartViewer",cursor:this.state.probe[this.state.chartAxis]/r[this.state.chartAxis],data:this.state.chartData,width:this.state.chartSize.width,height:this.state.chartSize.height})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(90),a=r(o),i=n(417),s=r(i),l=n(418),u=r(l),c=n(224),f=r(c),p=n(419),d=r(p),h=n(420),g=r(h);t["default"]={AbstractViewerMenu:a["default"],GeometryViewer:s["default"],ImageBuilderViewer:u["default"],LineChartViewer:f["default"],MultiLayoutViewer:d["default"],Probe3DViewer:g["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(812),s=r(i);t["default"]=a["default"].createClass({displayName:"ButtonSelectorWidget",propTypes:{list:a["default"].PropTypes.array.isRequired,onChange:a["default"].PropTypes.func},processItem:function(e){var t=e.target.name,n=this.props.list,r=n.length;if(this.props.onChange)for(;r--;)n[r].name===t&&this.props.onChange(r,n)},render:function(){var e=this,t=[];return this.props.list.forEach(function(n){t.push(a["default"].createElement("button",{className:s["default"].button,key:n.name,name:n.name,onClick:e.processItem},n.name))}),a["default"].createElement("section",{className:s["default"].container},t)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(232),s=r(i),l=n(234),u=r(l),c=n(316),f=r(c);t["default"]=a["default"].createClass({displayName:"ColorByWidget",propTypes:{className:a["default"].PropTypes.string,max:a["default"].PropTypes.number,min:a["default"].PropTypes.number,onChange:a["default"].PropTypes.func,presets:a["default"].PropTypes.object,representation:a["default"].PropTypes.object,scalarBar:a["default"].PropTypes.string,source:a["default"].PropTypes.object,visible:a["default"].PropTypes.bool},getInitialState:function(){return{activeAdvanceView:"0"}},updatePreset:function(e){this.props.onChange&&this.props.onChange({type:"updatePreset",representation:this.props.representation.id,preset:e})},updateRange:function(e){e.proxyId=this.props.source.id,this.props.onChange&&this.props.onChange({type:"updateScalarRange",options:e})},updateActiveView:function(e){var t=e.target.dataset.idx;this.setState({activeAdvanceView:t})},render:function(){return a["default"].createElement("div",{className:this.props.visible?f["default"].advancedView:f["default"].hidden},a["default"].createElement("div",{className:f["default"].advancedViewControl},a["default"].createElement("i",{"data-idx":"0",onClick:this.updateActiveView,className:"0"===this.state.activeAdvanceView?f["default"].activePresetIcon:f["default"].presetIcon}),a["default"].createElement("i",{"data-idx":"1",onClick:this.updateActiveView,className:"1"===this.state.activeAdvanceView?f["default"].activeRangeIcon:f["default"].rangeIcon}),a["default"].createElement("i",{"data-idx":"2",onClick:this.updateActiveView,className:"2"===this.state.activeAdvanceView?f["default"].activeOpacityIcon:f["default"].opacityIcon}),a["default"].createElement("i",{"data-idx":"3",onClick:this.updateActiveView,className:"3"===this.state.activeAdvanceView?f["default"].activeColorEditIcon:f["default"].colorEditIcon})),a["default"].createElement("div",{className:f["default"].advancedViewContent},a["default"].createElement(s["default"],{visible:"0"===this.state.activeAdvanceView,onChange:this.updatePreset,presets:this.props.presets}),a["default"].createElement(u["default"],{visible:"1"===this.state.activeAdvanceView,min:this.props.min,max:this.props.max,onApply:this.updateRange})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t=Math.floor(255*e).toString(16);t.length<2;)t="0"+t;return t}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(l){o=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=n(3),l=r(s),u=n(423),c=r(u),f=n(316),p=r(f),d=":|:";t["default"]=l["default"].createClass({displayName:"ColorByWidget",propTypes:{className:l["default"].PropTypes.string,max:l["default"].PropTypes.number,min:l["default"].PropTypes.number,onChange:l["default"].PropTypes.func,presets:l["default"].PropTypes.object,representation:l["default"].PropTypes.object,scalarBar:l["default"].PropTypes.string,source:l["default"].PropTypes.object},getDefaultProps:function(){return{min:0,max:1}},getInitialState:function(){return{advancedView:!1,colorValue:d,colorValues:[],representationValue:"",representationValues:[],scalarBarVisible:!1,solidColor:"#fff"}},componentWillMount:function(){this.updateState(this.props)},componentWillReceiveProps:function(e){this.updateState(e)},updateState:function(e){if(e.source&&e.representation){var t=function(e){return"Representation"===e.name},n=function(e){return"FIELDS"!==e.location},r=e.representation.ui.filter(t)[0].values,a=e.representation.properties.filter(t)[0].value,i=[{name:"Solid color"}].concat(e.source.data.arrays.filter(n)),s=e.representation.colorBy.array.filter(function(e,t){return 2>t}).join(d),l=!!e.representation.colorBy.scalarBar,u="#"+e.representation.colorBy.color.map(o).join(""),c=s.split(d)[1]?"array":"SOLID";this.setState({representationValues:r,representationValue:a,colorValues:i,colorValue:s,scalarBarVisible:l,solidColor:u,colorMode:c})}},toggleScalarBar:function(){var e=!this.state.scalarBarVisible;"SOLID"===this.state.colorMode&&(e=!1),this.setState({scalarBarVisible:e}),this.props.onChange&&this.props.onChange({type:"scalarBar",source:this.props.source.id,representation:this.props.representation.id,visible:e})},toggleAdvancedView:function(){var e=!this.state.advancedView;this.setState({advancedView:e})},onRepresentationChange:function(e){var t=e.target.value;this.setState({representationValue:t}),this.props.onChange&&this.props.onChange({type:"propertyChange",changeSet:[{id:this.props.representation.id,name:"Representation",value:t}]})},onColorChange:function(e){var t=this.state.scalarBarVisible,n=e.target.value,r=n.split(d),o=i(r,2),a=o[0],s=o[1],l=s?"array":"SOLID",u="Magnitude",c=0,f=!1;"SOLID"===l&&(t=!1),this.setState({colorValue:n,scalarBarVisible:t,colorMode:l}),this.props.onChange&&this.props.onChange({type:"colorBy",representation:this.props.representation.id,arrayLocation:a,arrayName:s,colorMode:l,vectorMode:u,vectorComponent:c,rescale:f})},render:function(){return this.props.source&&this.props.representation?l["default"].createElement("div",{className:[p["default"].container,this.props.className].join(" ")},l["default"].createElement("div",{className:p["default"].line},l["default"].createElement("i",{className:p["default"].representationIcon}),l["default"].createElement("select",{className:p["default"].input,value:this.state.representationValue,onChange:this.onRepresentationChange},this.state.representationValues.map(function(e,t){return l["default"].createElement("option",{key:t,value:e},e)}))),l["default"].createElement("div",{className:p["default"].line},l["default"].createElement("i",{className:p["default"].colorIcon}),l["default"].createElement("select",{className:p["default"].input,value:this.state.colorValue,onChange:this.onColorChange},this.state.colorValues.map(function(e,t){return l["default"].createElement("option",{key:t,value:e.location?[e.location,e.name].join(d):""},e.location?"("+("POINTS"===e.location?"p":"c")+e.size+") "+e.name:e.name)}))),l["default"].createElement("div",{className:p["default"].line},l["default"].createElement("i",{onClick:this.toggleAdvancedView,className:this.state.advancedView?p["default"].advanceIconOn:p["default"].advanceIconOff}),this.props.scalarBar&&this.state.colorValue&&this.state.colorValue.split(d)[1].length?l["default"].createElement("img",{onClick:this.toggleScalarBar,className:p["default"].scalarBar,src:"data:image/png;base64,"+this.props.scalarBar}):l["default"].createElement("div",{className:p["default"].scalarBar,style:{backgroundColor:this.state.solidColor}}),l["default"].createElement("i",{onClick:this.toggleScalarBar,className:this.state.scalarBarVisible?p["default"].scalarBarIconOn:p["default"].scalarBarIconOff})),l["default"].createElement(c["default"],a({visible:this.state.advancedView},this.props))):null}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(192),s=r(i);t["default"]=a["default"].createClass({displayName:"CompositePipelineWidget.ChildItem",propTypes:{item:a["default"].PropTypes.object,layer:a["default"].PropTypes.string,model:a["default"].PropTypes.object},toggleActiveLayer:function(e){this.props.model.toggleLayerActive(this.props.layer)},updateOpacity:function(e){this.props.model.setOpacity(this.props.layer,e.target.value),this.forceUpdate()},render:function(){var e=this.props.model.isLayerInEditMode(this.props.layer),t=this.props.model.isLayerActive(this.props.layer),n=!t&&!e,r=this.props.model.hasOpacity();return a["default"].createElement("div",{className:n?s["default"].hidden:s["default"].childItem},a["default"].createElement("i",{className:e?t?s["default"].activeButton:s["default"].deleteButtonOn:s["default"].deleteButtonOff,onClick:this.toggleActiveLayer}),a["default"].createElement("div",{className:s["default"].label},this.props.item.name),a["default"].createElement("input",{className:r?s["default"].opacity:s["default"].hidden,type:"range",min:"0",max:"100",value:this.props.model.getOpacity(this.props.layer),onChange:this.updateOpacity}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(425),a=r(o),i=n(3),s=r(i),l=n(192),u=r(l);t["default"]=s["default"].createClass({displayName:"CompositePipelineWidget.RootItem",propTypes:{item:s["default"].PropTypes.object,layer:s["default"].PropTypes.string,model:s["default"].PropTypes.object},getInitialState:function(){return{dropDown:!1}},toggleVisibility:function(){this.props.model.toggleLayerVisible(this.props.layer)},toggleDropDown:function(){this.props.model.getColor(this.props.layer).length>1&&this.setState({dropDown:!this.state.dropDown})},updateColorBy:function(e){this.props.model.setActiveColor(this.props.layer,e.target.dataset.color),this.toggleDropDown()},toggleEditMode:function(){this.props.model.toggleEditMode(this.props.layer)},updateOpacity:function(e){this.props.model.setOpacity(this.props.layer,e.target.value),this.forceUpdate()},render:function(){var e=this.props.model,t=this.props.layer,n=e.isLayerVisible(this.props.layer),r=this.props.item.children||[],o=this.props.model.isLayerInEditMode(this.props.layer),i=r.length>0,l=e.hasOpacity(),c=this.props.model.getColor(this.props.layer).length>1,f=i?s["default"].createElement("i",{className:o?u["default"].editButtonOn:u["default"].editButtonOff,onClick:this.toggleEditMode}):"";return s["default"].createElement("div",{className:u["default"].section},s["default"].createElement("div",{className:u["default"].item},s["default"].createElement("div",{className:u["default"].label},this.props.item.name),s["default"].createElement("div",{className:u["default"].actions},f,s["default"].createElement("i",{className:n?u["default"].visibleButtonOn:u["default"].visibleButtonOff,onClick:this.toggleVisibility}),s["default"].createElement("i",{className:c?u["default"].dropDownButtonOn:u["default"].dropDownButtonOff,onClick:this.toggleDropDown}),s["default"].createElement("div",{onClick:this.updateColorBy,className:this.state.dropDown?u["default"].menu:u["default"].hidden},e.getColor(t).map(function(n){return s["default"].createElement("div",{key:n,"data-color":n,className:e.isActiveColor(t,n)?u["default"].selectedMenuItem:u["default"].menuItem},e.getColorToLabel(n))})))),s["default"].createElement("div",{className:l&&!i?u["default"].item:u["default"].hidden},s["default"].createElement("input",{className:u["default"].opacity,type:"range",min:"0",max:"100",value:e.getOpacity(t),onChange:this.updateOpacity})),s["default"].createElement("div",{className:u["default"].children},r.map(function(t,n){return s["default"].createElement(a["default"],{key:n,item:t,layer:t.ids.join(""),model:e})})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(170),a=r(o),i=n(3),s=r(i),l=n(816),u=r(l);t["default"]=s["default"].createClass({displayName:"DoubleSliderWidget",propTypes:{max:s["default"].PropTypes.oneOfType([s["default"].PropTypes.number,s["default"].PropTypes.string]),min:s["default"].PropTypes.oneOfType([s["default"].PropTypes.number,s["default"].PropTypes.string]),name:s["default"].PropTypes.string,onChange:s["default"].PropTypes.func,size:s["default"].PropTypes.oneOfType([s["default"].PropTypes.number,s["default"].PropTypes.string]),value:s["default"].PropTypes.oneOfType([s["default"].PropTypes.number,s["default"].PropTypes.string])},getDefaultProps:function(){return{max:1,min:0,size:100,name:"DoubleValue"}},getInitialState:function(){return{txtValue:null,value:this.props.value?this.props.value:.5*(this.props.max+this.props.min),max:this.props.max,min:this.props.min}},componentWillReceiveProps:function(e){var t=this.props,n=e;(0,a["default"])(t,n)||this.setState({value:n.value?n.value:.5*(n.max+n.min)})},textInput:function(e){var t=Number(e.target.value);!Number.isNaN(t)&&e.target.value.length>0?(this.setState({value:t,txtValue:e.target.value}),this.props.onChange&&this.props.onChange(this.props.name,t)):this.setState({txtValue:e.target.value})},sliderInput:function(e){var t=Number(this.props.min),n=Number(this.props.max),r=n-t,o=r*(Number(e.target.value)/Number(this.props.size))+t;this.setState({value:o,txtValue:null}), +this.props.onChange&&this.props.onChange(this.props.name,o)},render:function(){var e=this.props.min,t=this.props.max,n=this.props.size,r=this.state.value;return s["default"].createElement("div",{className:u["default"].container},s["default"].createElement("input",{type:"range",className:u["default"].rangeInput,value:Math.floor((r-e)/(t-e)*n),onChange:this.sliderInput,min:"0",max:n}),s["default"].createElement("input",{type:"text",className:u["default"].textInput,pattern:"-*[0-9]*.*[0-9]*",value:null!==this.state.txtValue?this.state.txtValue:this.state.value,onChange:this.textInput}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(225),s=r(i),l=n(819),u=r(l);t["default"]=a["default"].createClass({displayName:"FileBrowserWidget",propTypes:{directories:a["default"].PropTypes.array.isRequired,files:a["default"].PropTypes.array.isRequired,groups:a["default"].PropTypes.array.isRequired,onAction:a["default"].PropTypes.func,path:a["default"].PropTypes.array.isRequired},getInitialState:function(){return{list:[]}},componentDidMount:function(){this.processProps(this.props)},componentWillReceiveProps:function(e){this.processProps(e)},processProps:function(e){var t=[];e.directories.forEach(function(e){t.push({name:e,icon:u["default"].folderIcon,action:"directory"})}),e.groups.forEach(function(e){t.push({name:e.label,icon:u["default"].groupIcon,action:"group",data:btoa(JSON.stringify(e.files))})}),e.files.forEach(function(e){t.push({name:e,icon:u["default"].fileIcon,action:"file"})}),this.setState({list:t})},onAction:function(e,t,n){this.props.onAction&&this.props.onAction(t,e,n.length?JSON.parse(atob(n)):null)},onPathChange:function(e){for(var t=e.target;"li"!==t.localName;)t=t.parentNode;if(this.props.onAction){for(var n=[],r=Number(t.dataset.idx);n.length<=r;)n.push(this.props.path[n.length]);this.props.onAction("path",n.join("/"),n)}},render:function(){var e=this;return a["default"].createElement("div",{className:u["default"].container},a["default"].createElement("ul",{className:u["default"].breadcrumb},this.props.path.map(function(t,n){return a["default"].createElement("li",{className:u["default"].breadcrumbItem,key:t,"data-idx":n,title:t,onClick:e.onPathChange},a["default"].createElement("i",{className:u["default"].breadcrumbFolderIcon}),a["default"].createElement("span",{className:u["default"].breadcrumbLabel},t))})),a["default"].createElement(s["default"],{list:this.state.list,onClick:this.onAction}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return Number(e.id)<Number(t.id)}function i(e,t){var n={tree:o({},t,[]),map:{},leaves:[],rootId:t,y:0,nodes:[],forks:[],branches:[],actives:[]};return e.forEach(function(e){var t=Object.assign({},e);n.tree.hasOwnProperty(t.parent)?n.tree[t.parent].push(t):n.tree[t.parent]=[t],n.map[t.id]=t}),n.tree[t].sort(a),n}function s(e,t,n){var r=e.tree[t.id];t.x=n,t.y=e.y++,e.nodes.push(t),r&&0!==r.length?(r.sort(a),r.forEach(function(t,o){s(e,t,n+r.length-o-1)})):e.leaves.push(t)}function l(e,t){for(var n=t.x,r=t.y,o=e.rootId,a=e.map,i=e.branches,s=e.forks,l={x:n,y:r},u=t;u.parent!==o&&a[u.parent].x===l.x;)u=a[u.parent],l.to=u.y;l.to!==l.y&&i.push(l),u.parent!==o&&s.push({x:a[u.parent].x,y:a[u.parent].y,toX:u.x,toY:u.y})}function u(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=e.nodes,r=e.actives;n.forEach(function(e){-1!==t.indexOf(e.id)&&r.push(e.y)})}Object.defineProperty(t,"__esModule",{value:!0});var c=n(3),f=r(c),p=n(25),d=r(p),h=n(46),g=r(h),m=n(820),v=r(m);t["default"]=f["default"].createClass({displayName:"GitTreeWidget",propTypes:{activeCircleStrokeColor:f["default"].PropTypes.string,actives:f["default"].PropTypes.array,deltaX:f["default"].PropTypes.number,deltaY:f["default"].PropTypes.number,enableDelete:f["default"].PropTypes.bool,fontSize:f["default"].PropTypes.number,margin:f["default"].PropTypes.number,multiselect:f["default"].PropTypes.bool,nodes:f["default"].PropTypes.array,notVisibleCircleFillColor:f["default"].PropTypes.string,offset:f["default"].PropTypes.number,onChange:f["default"].PropTypes.func,palette:f["default"].PropTypes.array,radius:f["default"].PropTypes.number,rootId:f["default"].PropTypes.oneOfType([f["default"].PropTypes.string,f["default"].PropTypes.number,f["default"].PropTypes.instanceOf(null)]),stroke:f["default"].PropTypes.number,style:f["default"].PropTypes.object,textColor:f["default"].PropTypes.array,textWeight:f["default"].PropTypes.array,width:f["default"].PropTypes.oneOfType([f["default"].PropTypes.string,f["default"].PropTypes.number])},getDefaultProps:function(){return{nodes:[],actives:[],style:{},enableDelete:!1,deltaX:20,deltaY:30,fontSize:16,margin:3,multiselect:!1,offset:15,palette:["#e1002a","#417dc0","#1d9a57","#e9bc2f","#9b3880"],radius:6,rootId:"0",stroke:3,width:500,activeCircleStrokeColor:"black",notVisibleCircleFillColor:"white",textColor:["black","white"],textWeight:["normal","bold"]}},getInitialState:function(){return{actives:[],nodes:[],branches:[],forks:[]}},componentWillMount:function(){this.processData(this.props.nodes,this.props.actives)},componentWillReceiveProps:function(e){this.processData(e.nodes,e.actives)},processData:function(e){var t=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],n=i(e,this.props.rootId),r=n.tree,o=n.leaves,a=n.rootId,c=n.nodes,f=n.branches,p=n.forks,d=n.actives;r[a].forEach(function(e){return s(n,e,0)}),u(n,t),o.forEach(function(e){return l(n,e)}),p.sort(function(e,t){return e.toX>t.toX}),this.setState({nodes:c,branches:f,forks:p,actives:d,leaves:o})},renderNodes:function(){var e=this;return this.state.nodes.map(function(t,n){var r=e.props,o=r.activeCircleStrokeColor,a=r.deltaX,i=r.deltaY,s=r.fontSize,l=r.notVisibleCircleFillColor,u=r.offset,c=r.palette,p=r.radius,d=r.stroke,h=r.textColor,g=r.textWeight,m=e.state.actives.includes(n),_=!!t.visible,y=c[t.x%c.length],b=h[m?1:0],w=g[m?1:0],x=m?o:y||y,C=_?y:l||y,E=a*t.x+u,T=i*t.y+i/2,P=E+2*p,k=T+p-1;return f["default"].createElement("g",{key:"node-"+n,className:v["default"].cursor},f["default"].createElement("circle",{"data-id":t.y,cx:E,cy:T,r:p,stroke:x,strokeWidth:d,fill:C,onClick:e.toggleVisibility}),f["default"].createElement("text",{className:v["default"].regularText,"data-id":t.y,x:P,y:k,fill:b,fontWeight:w,fontSize:s},t.name))})},renderBranches:function(){var e=this.props,t=e.deltaX,n=e.deltaY,r=e.offset,o=e.palette,a=e.stroke;return this.state.branches.map(function(e,i){var s=t*e.x+r,l=n*e.y+n/2,u=n*e.to+n/2,c=o[e.x%o.length];return f["default"].createElement("path",{key:"branch-"+i,d:"M"+s+","+l+" L"+s+","+u,stroke:c,strokeWidth:a})})},renderForks:function(){var e=this.props,t=e.deltaX,n=e.deltaY,r=e.offset,o=e.palette,a=e.radius,i=e.stroke;return this.state.forks.map(function(e,s){var l=t*e.x+r,u=n*e.y+n/2+a,c=t*e.toX+r,p=n*e.toY+n/2+a,d=o[e.toX%o.length],h="M"+l+","+u+" "+("Q"+l+","+(u+n/3)+","+(l+c)/2+","+(u+n/3)+" ")+("T"+c+","+(u+n)+" L"+c+","+p);return f["default"].createElement("path",{key:"fork-"+s,d:h,stroke:d,strokeWidth:i,fill:"transparent"})})},renderActives:function(){var e=this,t=this.props,n=t.margin,r=t.deltaY;return this.state.actives.map(function(t,o){return f["default"].createElement("rect",{key:"active-"+o,"data-id":e.state.nodes[t].y,x:"-50",width:"1000",fill:"#999",y:t*r+n/2,height:r-n})})},renderDeleteActions:function(){var e=this;if(!this.props.enableDelete)return null;var t=this.props,n=t.deltaY,r=t.width,o=t.offset,a=t.textColor,i=t.radius;return this.state.leaves.map(function(t,s){var l=e.state.actives.includes(t.y),u=a[l?1:0];return f["default"].createElement("text",{key:"delete-"+s,className:v["default"].iconText,onClick:e.deleteNode,"data-id":t.y,x:Number(r)-o-10,y:n*t.y+n/2+i-1,fill:u},"")})},toggleActive:function(e){var t=this,n=this.state,r=n.actives,o=n.nodes;if("circle"!==e.target.nodeName&&!e.target.classList.contains(v["default"].iconText)){var a=g["default"].getSize(d["default"].findDOMNode(this)),i=this.props.deltaY,s=a.clientRect.y||a.clientRect.top,l=Math.floor((e.clientY-s)/i),u=r.indexOf(l);this.props.multiselect&&(e.metaKey||e.ctrlKey)?-1===u?r.push(l):r.splice(u,1):r=[l],this.setState({actives:r}),this.props.onChange&&!function(){var e=[],n=!0;r.forEach(function(t){var r=o[t],a=r.id,i=r.parent,s=r.name,l=r.visible;e.push({id:a,parent:i,name:s,visible:l,active:n})}),t.props.onChange({type:"active",changeSet:e})}()}},toggleVisibility:function(e){var t=parseInt(e.currentTarget.attributes["data-id"].value,10),n=this.state,r=n.actives,o=n.nodes,a=o[t];if(a.visible=!a.visible,this.setState({nodes:o}),this.props.onChange){var i=a.id,s=a.parent,l=a.name,u=a.visible,c=-1!==r.indexOf(t),f=[{id:i,parent:s,name:l,visible:u,active:c}];this.props.onChange({type:"visibility",changeSet:f})}},deleteNode:function(e){if(this.props.onChange){var t=parseInt(e.currentTarget.attributes["data-id"].value,10),n=this.state.nodes[t],r=n.id,o=n.parent,a=n.name,i=n.visible,s=[{id:r,parent:o,name:a,visible:i}];this.props.onChange({type:"delete",changeSet:s})}},render:function(){return f["default"].createElement("svg",{style:this.props.style,width:this.props.width,height:this.props.deltaY*this.state.nodes.length+"px",onClick:this.toggleActive},this.renderActives(),this.renderBranches(),this.renderForks(),this.renderNodes(),this.renderDeleteActions())}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(118),s=r(i),l=n(821),u=r(l);t["default"]=a["default"].createClass({displayName:"InlineToggleButtonWidget",propTypes:{active:a["default"].PropTypes.number,activeColor:a["default"].PropTypes.string,defaultColor:a["default"].PropTypes.string,height:a["default"].PropTypes.string,onChange:a["default"].PropTypes.func,options:a["default"].PropTypes.array.isRequired},getDefaultProps:function(){return{activeColor:"#fff",defaultColor:"#ccc",height:"1em"}},getInitialState:function(){return{activeIdx:this.props.active||0}},componentWillReceiveProps:function(e){var t=this.props,n=e;(0,s["default"])(t,n)||this.setState({activeIdx:n.active||0})},activateButton:function(e){var t=Number(e.target.dataset.idx);this.setState({activeIdx:t}),this.props.onChange&&this.props.onChange(this.props.options[t],t)},render:function(){var e=this,t=this.state.activeIdx,n=this.props.height,r=this.props.height,o=this.props.height;return a["default"].createElement("div",{className:u["default"].container},this.props.options.map(function(i,s){var l=t===s,c=l?e.props.activeColor:e.props.defaultColor,f=0===s?l?"activeFirst":"first":s===e.props.options.length-1?l?"activeLast":"last":l?"activeMiddle":"middle";return i.label?a["default"].createElement("button",{style:{lineHeight:r,fontSize:n,background:c},key:s,onClick:e.activateButton,"data-idx":s,className:u["default"][f]},i.label):i.img?a["default"].createElement("div",{style:{lineHeight:r,height:o,fontSize:n,background:c},key:s,onClick:e.activateButton,"data-idx":s,className:u["default"][f]},a["default"].createElement("img",{"data-idx":s,onClick:e.activateButton,height:"100%",src:i.img})):i.icon?a["default"].createElement("i",{key:s,style:{lineHeight:r,fontSize:n,background:c},onClick:e.activateButton,"data-idx":s,className:[u["default"][f],i.icon].join(" ")}):null}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(233),s=r(i),l=n(826),u=r(l);t["default"]=a["default"].createClass({displayName:"ProxyEditorWidget",propTypes:{advanced:a["default"].PropTypes.bool,children:a["default"].PropTypes.oneOfType([a["default"].PropTypes.object,a["default"].PropTypes.array]),onApply:a["default"].PropTypes.func,sections:a["default"].PropTypes.array.isRequired},getDefaultProps:function(){return{advanced:!1}},getInitialState:function(){return{advanced:this.props.advanced,changeSet:{},filter:null}},toggleAdvanced:function(){var e=!this.state.advanced;this.setState({advanced:e})},updateFilter:function(e){var t=e.target.value;this.setState({filter:t})},updateChangeSet:function(e){var t=Object.assign({},this.state.changeSet,e);this.setState({changeSet:t})},applyChanges:function(){this.props.onApply&&this.props.onApply(this.state.changeSet),this.setState({changeSet:{}})},render:function(){var e=this,t=Object.keys(this.state.changeSet).length;return a["default"].createElement("div",{className:u["default"].container},a["default"].createElement("div",{className:u["default"].toolbar},a["default"].createElement("i",{className:this.state.advanced?u["default"].activeAdvancedButton:u["default"].advancedButton,onClick:this.toggleAdvanced}),a["default"].createElement("input",{type:"text",placeholder:"filter properties...",onChange:this.updateFilter,className:u["default"].filter}),a["default"].createElement("i",{className:t?u["default"].validateButtonOn:u["default"].validateButton,onClick:this.applyChanges})),a["default"].createElement("div",{className:u["default"].contentContainer},this.props.children,this.props.sections.map(function(t){return a["default"].createElement(s["default"],{key:t.name,proxy:t,filter:e.state.filter,collapsed:t.collapsed,advanced:e.state.advanced,onChange:e.updateChangeSet})})))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(105),a=r(o),i=n(106),s=r(i),l=n(3),u=r(l),c=n(25),f=r(c),p=n(193),d=r(p);t["default"]=u["default"].createClass({displayName:"Number",propTypes:{arg:u["default"].PropTypes.string,model:u["default"].PropTypes.object.isRequired},mixins:[a["default"],s["default"]],getInitialState:function(){return{advanced:!1,button:!1,slider:!1}},previous:function(){this.props.model.previous(this.props.arg)&&(this.props.model.lazyFetchData(),f["default"].findDOMNode(this.refs.slider).focus())},next:function(){this.props.model.next(this.props.arg)&&(this.props.model.lazyFetchData(),f["default"].findDOMNode(this.refs.slider).focus())},first:function(){this.props.model.first(this.props.arg)&&(this.props.model.lazyFetchData(),f["default"].findDOMNode(this.refs.slider).focus())},last:function(){this.props.model.last(this.props.arg)&&(this.props.model.lazyFetchData(),f["default"].findDOMNode(this.refs.slider).focus())},onIndexChange:function(e){this.props.model.setIndex(this.props.arg,Number(e.target.value))&&this.props.model.lazyFetchData()},updateMode:function(e){this.state.advanced!==e.altKey&&this.setState({advanced:e.altKey})},resetState:function(e){this.setState({advanced:!1})},enableButtons:function(e){this.setState({button:!0}),f["default"].findDOMNode(this.refs.slider).focus()},disableButtons:function(){this.setState({button:!1,advanced:!1})},grabFocus:function(){f["default"].findDOMNode(this.refs.slider).focus()},toggleAnimation:function(){this.props.model.toggleAnimationFlag(this.props.arg),this.setState({})},render:function(){return u["default"].createElement("div",{className:this.props.model.getAnimationFlag(this.props.arg)?d["default"].itemActive:d["default"].item,onKeyDown:this.updateMode,onKeyUp:this.resetState,onMouseLeave:this.disableButtons},u["default"].createElement("div",{className:d["default"].row},u["default"].createElement("div",{className:d["default"].label,onClick:this.toggleAnimation},this.props.model.label(this.props.arg)),u["default"].createElement("div",{className:d["default"].mobileOnly},this.props.model.getValue(this.props.arg)),u["default"].createElement("div",{className:[d["default"].itemControl,d["default"].noMobile].join(" "),onMouseEnter:this.enableButtons,onMouseLeave:this.disableButtons},u["default"].createElement("div",{className:this.state.button?d["default"].hidden:d["default"].itemControlValue},this.props.model.getValue(this.props.arg)),u["default"].createElement("i",{className:this.state.button?this.state.advanced?d["default"].firstButton:d["default"].previousButton:d["default"].hidden,onClick:this.state.advanced?this.first:this.previous}),u["default"].createElement("i",{className:this.state.button?this.state.advanced?d["default"].lastButton:d["default"].nextButton:d["default"].hidden,onClick:this.state.advanced?this.last:this.next}))),u["default"].createElement("div",{className:[d["default"].row,d["default"].mobileOnly].join(" ")},u["default"].createElement("div",{className:d["default"].itemControl},u["default"].createElement("br",null),u["default"].createElement("i",{className:d["default"].firstButton,onClick:this.first}),u["default"].createElement("i",{className:d["default"].lastButton,onClick:this.last}),u["default"].createElement("i",{className:d["default"].previousButton,onClick:this.previous}),u["default"].createElement("i",{className:d["default"].nextButton,onClick:this.next}))),u["default"].createElement("div",{className:d["default"].row},u["default"].createElement("div",{className:d["default"].slider,onMouseEnter:this.grabFocus},u["default"].createElement("input",{className:d["default"].input,ref:"slider",type:"range",min:"0",max:this.props.model.getSize(this.props.arg)-1,value:this.props.model.getIndex(this.props.arg),onChange:this.onIndexChange}))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(105),a=r(o),i=n(106),s=r(i),l=n(3),u=r(l),c=n(25),f=r(c),p=n(193),d=r(p);t["default"]=u["default"].createClass({displayName:"ParameterSet.String",propTypes:{arg:u["default"].PropTypes.string,model:u["default"].PropTypes.object.isRequired},mixins:[a["default"],s["default"]],handleChange:function(e){this.props.model.setValue(this.props.arg,e.target.value)&&this.props.model.lazyFetchData()},grabFocus:function(){f["default"].findDOMNode(this.refs.select).focus()},toggleAnimation:function(){this.props.model.toggleAnimationFlag(this.props.arg),this.setState({})},render:function(){return u["default"].createElement("div",{className:this.props.model.getAnimationFlag(this.props.arg)?d["default"].itemActive:d["default"].item},u["default"].createElement("div",{className:[d["default"].row,d["default"].label].join(" "),onClick:this.toggleAnimation},this.props.model.label(this.props.arg)),u["default"].createElement("div",{className:d["default"].row,onMouseEnter:this.grabFocus},u["default"].createElement("select",{className:d["default"].input,ref:"select",value:this.props.model.getValue(this.props.arg),onChange:this.handleChange},this.props.model.getValues(this.props.arg).map(function(e){return u["default"].createElement("option",{key:e,value:e},e)}))))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),i=r(a);t["default"]=i["default"].createClass({displayName:"ResplendentWidget",propTypes:{args:i["default"].PropTypes.array,component:i["default"].PropTypes.func.isRequired},getDefaultProps:function(){return{args:[]}},componentDidMount:function(){var e=this.props.component;e&&(this.resp=new(Function.prototype.bind.apply(e,[null].concat([this._elt],o(this.props.args)))),this.resp.render())},componentWillUnmount:function(){this.resp&&this.resp.destroy&&this.resp.destroy(),this.resp=null},render:function(){var e=this;return i["default"].createElement("div",{ref:function(t){return e._elt=t}})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(832),s=r(i);t["default"]=a["default"].createClass({displayName:"SvgIconWidget",propTypes:{className:a["default"].PropTypes.string,height:a["default"].PropTypes.string,icon:a["default"].PropTypes.string,width:a["default"].PropTypes.string},getDefaultProps:function(){return{className:"",icon:s["default"]}},render:function(){var e={width:this.props.width,height:this.props.height};return a["default"].createElement("svg",{style:e,className:this.props.className,dangerouslySetInnerHTML:{__html:'<use xlink:href="'+this.props.icon+'"></use>'}})}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o),i=n(831),s=r(i);t["default"]=a["default"].createClass({displayName:"TogglePanelWidget",propTypes:{anchor:a["default"].PropTypes.array,children:a["default"].PropTypes.oneOfType([a["default"].PropTypes.object,a["default"].PropTypes.array]),panelVisible:a["default"].PropTypes.bool,position:a["default"].PropTypes.array,size:a["default"].PropTypes.object},getDefaultProps:function(){return{anchor:["top","right"],children:[],panelVisible:!1,position:["top","left"],size:{button:["2em","2em"],panel:["400px"]}}},getInitialState:function(){return{panelVisible:this.props.panelVisible}},componentWillReceiveProps:function(e){e.value!==this.state.enabled&&this.setState({enabled:e.value}),e.panelVisible!==this.state.panelVisible&&this.setState({panelVisible:e.panelVisible})},togglePanel:function(){var e=!this.state.panelVisible;this.setState({panelVisible:e})},render:function(){var e=this.props.anchor.join(" "),t=this.props.position.join(" ");return a["default"].createElement("div",{className:s["default"].container,style:{width:this.props.size.button[0],height:this.props.size.button[1],lineHeight:this.props.size.button[1]}},a["default"].createElement("span",{className:this.state.panelVisible?s["default"].panelVisible:s["default"].panelHidden,style:{width:this.props.size.button[0],height:this.props.size.button[1],lineHeight:this.props.size.button[1]},onClick:this.togglePanel}),a["default"].createElement("div",{className:[s["default"].button,e].join(" ")},a["default"].createElement("div",{className:[s["default"].content,t].join(" "),style:{display:this.state.panelVisible?"block":"none",width:this.props.size.panel[0]}},this.props.children)))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(225),a=r(o),i=n(422),s=r(i),l=n(32),u=r(l),c=n(424),f=r(c),p=n(226),d=r(p),h=n(227),g=r(h),m=n(228),v=r(m),_=n(229),y=r(_),b=n(427),w=r(b),x=n(230),C=r(x),E=n(138),T=r(E),P=n(428),k=r(P),M=n(429),S=r(M),R=n(430),D=r(R),A=n(231),I=r(A),O=n(103),F=r(O),N=n(139),L=r(N),B=n(104),j=r(B),W=n(232),U=r(W),V=n(431),z=r(V),q=n(233),H=r(q),X=n(140),G=r(X),Y=n(434),Q=r(Y),K=n(234),Z=r(K),J=n(435),$=r(J),ee=n(235),te=r(ee),ne=n(54),re=r(ne),oe=n(436),ae=r(oe);t["default"]={ActionListWidget:a["default"],ButtonSelectorWidget:s["default"],CollapsibleWidget:u["default"],ColorByWidget:f["default"],ColorPickerWidget:d["default"],CompositePipelineWidget:g["default"],ContentEditableWidget:v["default"],Coordinate2DWidget:y["default"],DoubleSliderWidget:w["default"],DropDownWidget:C["default"],EqualizerWidget:T["default"],FileBrowserWidget:k["default"],GitTreeWidget:S["default"],InlineToggleButtonWidget:D["default"],LayoutsWidget:I["default"],LookupTableWidget:F["default"],NumberInputWidget:L["default"],NumberSliderWidget:j["default"],PresetListWidget:U["default"],ProxyEditorWidget:z["default"],ProxyPropertyGroupWidget:H["default"],QueryDataModelWidget:G["default"],ResplendentWidget:Q["default"],ScalarRangeWidget:Z["default"],SvgIconWidget:$["default"],TextInputWidget:te["default"],ToggleIconButtonWidget:re["default"],TogglePanelWidget:ae["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(413),a=r(o),i=n(407),s=r(i),l=n(416),u=r(l),c=n(421),f=r(c),p=n(437),d=r(p);t["default"]={Properties:a["default"],CollapsibleControls:s["default"],Renderers:u["default"],Viewers:f["default"],Widgets:d["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function y(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:y(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(20),p=r(f),d="ProbeImageBuilder.chart.data.ready",h="ProbeImageBuilder.probe.location.change",g="ProbeImageBuilder.crosshair.visibility.change",m="ProbeImageBuilder.render.change",v={XY:{idx:[0,1,2],hasChange:function(e,t,n,r){return e[2]!==r}},XZ:{idx:[0,2,1],hasChange:function(e,t,n,r){return e[1]!==n}},ZY:{idx:[2,1,0],hasChange:function(e,t,n,r){return e[0]!==t}}},_=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n}));r.metadata=e.originalData.DataProber,r.renderMethodMutable=!0,r.renderMethod="XY",r.triggerProbeLines=!1,r.broadcastCrossHair=!0,r.probeValue=0,r.probeXYZ=[Math.floor(r.metadata.dimensions[0]/2),Math.floor(r.metadata.dimensions[1]/2),Math.floor(r.metadata.dimensions[2]/2)],r.fields=Object.keys(r.metadata.types),r.field=r.fields[0],r.dataFields=null,r.pushMethod="pushToFrontAsBuffer",r.lookupTableManager.updateActiveLookupTable(r.field),r.lookupTableManager.addFields(r.metadata.ranges,r.queryDataModel.originalData.LookupTables);for(var i=0,s=0;3>s;++s){var l=r.metadata.dimensions[s];i=l>i?l:i}r.bgCanvas=new p["default"](i,i),r.registerObjectToFree(r.bgCanvas),r.fgCanvas=null,r.registerSubscription(e.onDataChange(function(e,t){r.dataFields={};for(var n in e)r.dataFields[n]=new window[r.metadata.types[n]](e[n].data);r.render()})),r.registerSubscription(r.lookupTableManager.onActiveLookupTableChange(function(e,t){r.field!==e&&(r.field=e,r.render())})),r.registerSubscription(r.lookupTableManager.onChange(function(e,t){r.update()}));var u=r;return r.mouseListener={click:function(e,t){if(!e.activeArea)return!1;var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=u.metadata.dimensions,a=e.activeArea,i=(e.relative.x-a[0])/a[2],s=(e.relative.y-a[1])/a[3];if(e.modifier)return!1;i=0>i?0:i>1?1:i,s=0>s?0:s>1?1:s,"XZ"===u.renderMethod&&(s=1-s);var l=Math.floor(i*o[r[0]]),c=Math.floor(s*o[r[1]]);return n[r[0]]=l,n[r[1]]=c,u.setProbe(n[0],n[1],n[2]),!0},drag:function(e,t){if(!e.activeArea)return!1;var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=u.metadata.dimensions,a=e.activeArea,i=(e.relative.x-a[0])/a[2],s=(e.relative.y-a[1])/a[3];if(e.modifier)return!1;i=0>i?0:i>1?1:i,s=0>s?0:s>1?1:s,"XZ"===u.renderMethod&&(s=1-s);var l=Math.floor(i*o[r[0]]),c=Math.floor(s*o[r[1]]);return n[r[0]]=l,n[r[1]]=c,u.setProbe(n[0],n[1],n[2]),!0},zoom:function(e,t){var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=r[2];return e.modifier?!1:(n[o]+=e.deltaY<0?-1:1,n[o]<0?(n[o]=0,!0):n[o]>=u.metadata.dimensions[o]?(n[o]=u.metadata.dimensions[o]-1,!0):(u.setProbe(n[0],n[1],n[2]),!0))}},r}return i(t,e),s(t,[{key:"setPushMethodAsBuffer",value:function(){this.pushMethod="pushToFrontAsBuffer"}},{key:"setPushMethodAsImage",value:function(){this.pushMethod="pushToFrontAsImage"}},{key:"setProbeLineNotification",value:function(e){this.triggerProbeLines=e}},{key:"updateProbeValue",value:function(){var e=this.probeXYZ[0],t=this.probeXYZ[1],n=this.probeXYZ[2],r=this.metadata.dimensions[0],o=this.metadata.dimensions[1],a=this.dataFields[this.field];a&&(this.probeValue=a[e+(o-t-1)*r+n*r*o])}},{key:"setProbe",value:function(e,t,n){var r=v[this.renderMethod].hasChange,o=v[this.renderMethod].idx,a=[].concat(this.probeXYZ);if(Array.isArray(e)&&(n=e[2],t=e[1],e=e[0]),r(this.probeXYZ,e,t,n))this.probeXYZ=[e,t,n],this.render();else{this.probeXYZ=[e,t,n];var i=this.metadata.dimensions,s=this.metadata.spacing;this.updateProbeValue(),"XZ"===this.renderMethod?this.pushToFront(i[o[0]],i[o[1]],s[o[0]],s[o[1]],this.probeXYZ[o[0]],i[o[1]]-this.probeXYZ[o[1]]-1):this.pushToFront(i[o[0]],i[o[1]],s[o[0]],s[o[1]],this.probeXYZ[o[0]],this.probeXYZ[o[1]])}a[0]===e&&a[1]===t&&a[2]===n||this.emit(h,[e,t,n])}},{key:"getProbe",value:function(){return this.probeXYZ}},{key:"getFieldValueAtProbeLocation",value:function(){return this.probeValue}},{key:"getProbeLine",value:function(e){var t=this,n={xRange:[0,100],fields:[]},r=this.fields,o=this.probeXYZ[0],a=this.probeXYZ[1],i=this.probeXYZ[2],s=this.metadata.dimensions[0],l=this.metadata.dimensions[1],u=this.metadata.dimensions[2],c=[];if(0===e)for(var f=(l-a-1)*s+i*s*l,p=0;s>p;p++)c.push(f+p);if(1===e){for(var f=o+i*s*l,d=0;l>d;d++)c.push(f+(l-d-1)*s);c.reverse()}if(2===e)for(var f=o+(l-a-1)*s,h=s*l,g=0;u>g;g++)c.push(f+g*h);var m=c.length;return r.forEach(function(e){for(var r=t.dataFields[e],o=[],a=t.lookupTableManager.getLookupTable(e).getScalarRange(),i=0;m>i;i++)o.push(r[c[i]]);n.fields.push({name:e,data:o,range:a})}),n}},{key:"render",value:function(){this.dataFields&&(this.updateProbeValue(),this["render"+this.renderMethod]())}},{key:"pushToFront",value:function(e,t,n,r,o,a){this[this.pushMethod](e,t,n,r,o,a),this.triggerProbeLines&&this.emit(d,{x:this.getProbeLine(0),y:this.getProbeLine(1),z:this.getProbeLine(2)})}},{key:"pushToFrontAsImage",value:function(e,t,n,r,o,a){var i=Math.floor(e*n),s=Math.floor(t*r),l=null;this.fgCanvas?this.fgCanvas.size(i,s):(this.fgCanvas=new p["default"](i,s),this.registerObjectToFree(this.fgCanvas)),l=this.fgCanvas.get2DContext(),l.drawImage(this.bgCanvas.el,0,0,e,t,0,0,i,s),l.beginPath(),l.moveTo(o*n,0),l.lineTo(o*n,s),l.moveTo(0,a*r),l.lineTo(i,a*r),l.strokeStyle="#ffffff",l.lineWidth=1,l.stroke();var u={url:this.fgCanvas.toDataURL(),type:this.renderMethod,builder:this};this.imageReady(u)}},{key:"pushToFrontAsBuffer",value:function(e,t,n,r,o,a){var i=Math.floor(e*n),s=Math.floor(t*r),l={canvas:this.bgCanvas.el,imageData:this.bgCanvas.el.getContext("2d").getImageData(0,0,e,t),area:[0,0,e,t],outputSize:[i,s],type:this.renderMethod,builder:this};this.broadcastCrossHair&&(l.crosshair=[o,a]),this.imageReady(l)}},{key:"renderXY",value:function(){for(var e=this.bgCanvas.get2DContext(),t=this.probeXYZ,n=this.metadata.dimensions,r=n[0],o=n[1],a=this.metadata.spacing,i=e.createImageData(n[0],n[1]),s=i.data,l=n[0]*n[1],u=l*t[2],c=this.lookupTableManager.getLookupTable(this.field),f=this.dataFields[this.field],p=0,d=0;o>d;d++)for(var h=0;r>h;h++){var g=c.getColor(f[u+h+r*(o-d-1)]);s[4*p]=255*g[0],s[4*p+1]=255*g[1],s[4*p+2]=255*g[2],s[4*p+3]=255,p++}e.putImageData(i,0,0),this.pushToFront(n[0],n[1],a[0],a[1],t[0],t[1])}},{key:"renderZY",value:function(){for(var e=this.bgCanvas.get2DContext(),t=this.probeXYZ,n=this.metadata.dimensions,r=t[0],o=n[0],a=n[0]*n[1],i=n[1],s=n[2],l=this.metadata.spacing,u=e.createImageData(n[2],n[1]),c=u.data,f=this.lookupTableManager.getLookupTable(this.field),p=this.dataFields[this.field],d=0,h=0;i>h;h++)for(var g=0;s>g;g++){var m=f.getColor(p[r+o*(i-h-1)+a*g]);c[4*d]=255*m[0],c[4*d+1]=255*m[1],c[4*d+2]=255*m[2],c[4*d+3]=255,d++}e.putImageData(u,0,0),this.pushToFront(n[2],n[1],l[2],l[1],t[2],t[1])}},{key:"renderXZ",value:function(){for(var e=this.bgCanvas.get2DContext(),t=this.probeXYZ,n=this.metadata.dimensions,r=n[0],o=n[2],a=r*n[1],i=r*(n[1]-t[1]-1),s=this.metadata.spacing,l=e.createImageData(r,o),u=l.data,c=this.lookupTableManager.getLookupTable(this.field),f=this.dataFields[this.field],p=0,d=0;o>d;d++)for(var h=0;r>h;h++){ +var g=c.getColor(f[i+h+(o-d-1)*a]);u[4*p]=255*g[0],u[4*p+1]=255*g[1],u[4*p+2]=255*g[2],u[4*p+3]=255,p++}e.putImageData(l,0,0),this.pushToFront(n[0],n[2],s[0],s[2],t[0],o-t[2]-1)}},{key:"isCrossHairEnabled",value:function(){return this.broadcastCrossHair}},{key:"setCrossHairEnable",value:function(e){this.broadcastCrossHair!==e&&(this.broadcastCrossHair=e,this.emit(g,e),this.setProbe(this.probeXYZ[0],this.probeXYZ[1],this.probeXYZ[2]))}},{key:"setField",value:function(e){this.field=e}},{key:"getField",value:function(){return this.field}},{key:"getFields",value:function(){return this.fields}},{key:"setRenderMethod",value:function(e){this.renderMethodMutable&&this.renderMethod!==e&&(this.renderMethod=e,this.render(),this.emit(m,e))}},{key:"getRenderMethod",value:function(){return this.renderMethod}},{key:"getRenderMethods",value:function(){return["XY","ZY","XZ"]}},{key:"isRenderMethodMutable",value:function(){return this.renderMethodMutable}},{key:"setRenderMethodImutable",value:function(){this.renderMethodMutable=!1}},{key:"setRenderMethodMutable",value:function(){this.renderMethodMutable=!0}},{key:"getListeners",value:function(){return this.mouseListener}},{key:"onProbeLineReady",value:function(e){return this.on(d,e)}},{key:"onProbeChange",value:function(e){return this.on(h,e)}},{key:"onRenderMethodChange",value:function(e){return this.on(m,e)}},{key:"onCrosshairVisibilityChange",value:function(e){return this.on(g,e)}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.off(),this.bgCanvas=null,this.fgCanvas=null}},{key:"getControlWidgets",value:function(){var e=this,t=this.getControlModels(),n=t.lookupTableManager,r=t.queryDataModel;return[{name:"LookupTableManagerWidget",lookupTableManager:n},{name:"ProbeControl",model:e},{name:"QueryDataModelWidget",queryDataModel:r}]}}]),t}(c["default"]);t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function m(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:m(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(20),p=r(f),d=n(96),h=r(d),g=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,pipelineModel:n,handleRecord:!0,dimensions:e.originalData.CompositePipeline.dimensions}));return r.metadata=e.originalData.CompositePipeline,r.compositeMap={},r.offsetMap={},r.spriteSize=(0,h["default"])(r.metadata.offset),r.query=null,r.composite=null,r.bgCanvas=new p["default"](r.metadata.dimensions[0],r.metadata.dimensions[1]),r.registerObjectToFree(r.bgCanvas),r.fgCanvas=null,r.registerSubscription(e.onDataChange(function(e,t){r.sprite=e.sprite,r.composite=e.composite.data["pixel-order"].split("+"),r._updateCompositeMap(r.query,r.composite),r.render()})),r.registerSubscription(r.pipelineModel.onChange(function(e,t){r.setPipelineQuery(e)})),r.setPipelineQuery(r.pipelineModel.getPipelineQuery()),r}return i(t,e),s(t,[{key:"_updateOffsetMap",value:function(e){var t=this.metadata.layers,n=t.length,r=this.metadata.offset;this.offsetMap={},this.compositeMap={};for(var o=0;n>o;o++){var a=e[2*o+1];"_"===a?this.offsetMap[t[o]]=-1:this.offsetMap[t[o]]=this.spriteSize-r[t[o]+a]}}},{key:"_updateCompositeMap",value:function(e,t){if(null!==e&&null!==t)for(var n=t,r=this.compositeMap,o=n.length;o--;){var a=n[o];if("@"===a[0]);else if(r.hasOwnProperty(a));else{for(var i=-1,s=0,l=a.length;l>s;s++)i=this.offsetMap[a[s]],-1!==i&&(s=l);r[a]=i}}}},{key:"_pushToFrontAsImage",value:function(e,t){var n=null;this.fgCanvas?this.fgCanvas.size(e,t):(this.fgCanvas=new p["default"](e,t),this.registerObjectToFree(this.fgCanvas)),n=this.fgCanvas.get2DContext(),n.drawImage(this.bgCanvas.el,0,0,e,t,0,0,e,t);var r={url:this.fgCanvas.toDataURL(),builder:this};this.imageReady(r)}},{key:"_pushToFrontAsBuffer",value:function(e,t){var n={canvas:this.bgCanvas.el,imageData:this.bgCanvas.el.getContext("2d").getImageData(0,0,e,t),area:[0,0,e,t],outputSize:[e,t],builder:this,arguments:this.queryDataModel.getQuery()};n.arguments.pipeline=this.query,this.imageReady(n),this.queryDataModel.nextExploration()}},{key:"setPipelineQuery",value:function(e){this.query!==e&&(this.query=e,this._updateOffsetMap(e),this._updateCompositeMap(e,this.composite),this.render())}},{key:"render",value:function(){function e(e){l+=e,u+=Math.floor(l/i),l%=i}var t=this;if(!this.sprite)return void this.queryDataModel.fetchData();if(null!==this.query){var n=this.bgCanvas.get2DContext(),r=this.metadata.dimensions,o=this.composite,a=o.length,i=r[0],s=1,l=0,u=0;if(this.sprite.image.complete){this.sprite.image.onload&&(this.sprite.image.onload=null),n.clearRect(0,0,r[0],r[1]);for(var c=0;a>c;c++){var f=o[c];"@"===f[0]?e(Number(f.replace(/@/,"+"))):(s=this.compositeMap[f],-1!==s&&n.drawImage(this.sprite.image,l,u+r[1]*s,1,1,l,u,1,1),e(1))}this._pushToFrontAsBuffer(r[0],r[1])}else this.sprite.image.onload=function(){t.render()}}}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.bgCanvas=null,this.fgCanvas=null,this.compositeMap=null,this.offsetMap=null}}]),t}(c["default"]);t["default"]=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function y(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:y(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(20),p=r(f),d="ProbeImageBuilder.chart.data.ready",h="ProbeImageBuilder.probe.location.change",g="ProbeImageBuilder.crosshair.visibility.change",m="ProbeImageBuilder.render.change",v={XY:{idx:[0,1,2],hasChange:function(e,t,n,r){return e[2]!==r},updateProbeValue:function(e,t,n,r){var o=e.metadata.dimensions[0],a=t+n*o,i=e.scalars[e.getField()];i&&(e.probeValue=i[a])}},XZ:{idx:[0,2,1],hasChange:function(e,t,n,r){return e[1]!==n},updateProbeValue:function(e,t,n,r){var o=e.metadata.dimensions[0],a=t+r*o,i=e.scalars[e.getField()];i&&(e.probeValue=i[a])}},ZY:{idx:[2,1,0],hasChange:function(e,t,n,r){return e[0]!==t},updateProbeValue:function(e,t,n,r){var o=e.metadata.dimensions[2],a=r+n*o,i=e.scalars[e.getField()];i&&(e.probeValue=i[a])}}},_=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n}));r.metadata=e.originalData.InSituDataProber||e.originalData.DataProber,r.fieldIndex=0,r.renderMethodMutable=!0,r.renderMethod="XY",r.lastImageStack=null,r.workImage=new Image,r.triggerProbeLines=!1,r.broadcastCrossHair=!0,r.scalars={},r.probeValue=0,r.probeXYZ=[Math.floor(r.metadata.dimensions[0]/2),Math.floor(r.metadata.dimensions[1]/2),Math.floor(r.metadata.dimensions[2]/2)],r.setField(r.metadata.fields[r.fieldIndex]),r.pushMethod="pushToFrontAsBuffer",r.lookupTableManager.addFields(r.metadata.ranges,r.queryDataModel.originalData.LookupTables),r.registerSubscription(r.lookupTableManager.onActiveLookupTableChange(function(e,t){r.getField()!==e&&(r.setField(e),r.update())}));for(var i=0,s=0;3>s;++s){var l=r.metadata.dimensions[s];i=l>i?l:i}r.bgCanvas=new p["default"](i,i),r.registerObjectToFree(r.bgCanvas),r.fgCanvas=null,r.registerSubscription(e.onDataChange(function(e,t){r.lastImageStack=e;var n=function(){r.render()},o=!0;for(var a in e){var i=e[a].image;i.addEventListener("load",n),o=o&&i.complete}o&&r.render()})),r.registerSubscription(r.lookupTableManager.onChange(function(e,t){r.update()}));var u=r;return r.mouseListener={click:function(e,t){if(!e.activeArea)return!1;var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=u.metadata.dimensions,a=e.activeArea,i=(e.relative.x-a[0])/a[2],s=(e.relative.y-a[1])/a[3];if(e.modifier)return!1;i=0>i?0:i>1?1:i,s=0>s?0:s>1?1:s;var l=Math.floor(i*o[r[0]]),c=Math.floor(s*o[r[1]]);return n[r[0]]=l,n[r[1]]=c,u.setProbe(n[0],n[1],n[2]),!0},drag:function(e,t){if(!e.activeArea)return!1;var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=u.metadata.dimensions,a=e.activeArea,i=(e.relative.x-a[0])/a[2],s=(e.relative.y-a[1])/a[3];if(e.modifier)return!1;i=0>i?0:i>1?1:i,s=0>s?0:s>1?1:s;var l=Math.floor(i*o[r[0]]),c=Math.floor(s*o[r[1]]);return n[r[0]]=l,n[r[1]]=c,u.setProbe(n[0],n[1],n[2]),!0},zoom:function(e,t){var n=[u.probeXYZ[0],u.probeXYZ[1],u.probeXYZ[2]],r=v[u.renderMethod].idx,o=r[2];return e.modifier?!1:(n[o]+=e.deltaY<0?-1:1,n[o]<0?(n[o]=0,!0):n[o]>=u.metadata.dimensions[o]?(n[o]=u.metadata.dimensions[o]-1,!0):(u.setProbe(n[0],n[1],n[2]),!0))}},r}return i(t,e),s(t,[{key:"setProbeLineNotification",value:function(e){this.triggerProbeLines=e}},{key:"getYOffset",value:function(e){return void 0===e&&(e=this.probeXYZ[2]),this.metadata.sprite_size-e%this.metadata.sprite_size-1}},{key:"getImage",value:function(e,t){void 0===e&&(e=this.probeXYZ[2]);var n=this.metadata.slices.length-1,r=Math.floor(e/this.metadata.sprite_size);r=0>r?0:r>n?n:r;var o=this.lastImageStack[this.metadata.slices[r]],a=o.image;a?a.complete?t.call(a):a.addEventListener("load",t):(this.workImage.addEventListener("load",t),this.workImage.src=o.url)}},{key:"setProbe",value:function(e,t,n){var r=v[this.renderMethod].hasChange,o=v[this.renderMethod].idx,a=[].concat(this.probeXYZ);if(Array.isArray(e)&&(n=e[2],t=e[1],e=e[0]),r(this.probeXYZ,e,t,n))this.probeXYZ=[e,t,n],this.render();else{this.probeXYZ=[e,t,n];var i=this.metadata.dimensions,s=this.metadata.spacing;v[this.renderMethod].updateProbeValue(this,e,t,n),this.pushToFront(i[o[0]],i[o[1]],s[o[0]],s[o[1]],this.probeXYZ[o[0]],this.probeXYZ[o[1]])}a[0]===e&&a[1]===t&&a[2]===n||this.emit(h,[e,t,n])}},{key:"getProbe",value:function(){return this.probeXYZ}},{key:"getFieldValueAtProbeLocation",value:function(){return this.probeValue}},{key:"getProbeLine",value:function(e){for(var t={name:this.getField(),data:[]},n={xRange:[0,100],fields:[t]},r=-1,o=v[this.renderMethod].idx,a=0;2>a;a++)e===o[a]&&(r=a);if(-1!==r){var i=this.scalars[t.name],s=this.metadata.dimensions,l=s[o[0]],u=s[o[1]],c=0===r?1:l,f=0===r?this.probeXYZ[o[1]]*l:this.probeXYZ[o[0]],p=0===r?l:u;if(this.metadata.origin&&this.metadata.spacing&&(n.xRange[0]=this.metadata.origin[e],n.xRange[1]=this.metadata.origin[e]+this.metadata.spacing[e]*s[e]),i)for(var d=0;p>d;d++)t.data.push(i[f+d*c])}return n}},{key:"render",value:function(){this.lastImageStack&&(this["render"+this.renderMethod](),v[this.renderMethod].updateProbeValue(this,this.probeXYZ[0],this.probeXYZ[1],this.probeXYZ[2]))}},{key:"pushToFront",value:function(e,t,n,r,o,a){this[this.pushMethod](e,t,n,r,o,a),this.triggerProbeLines&&this.emit(d,{x:this.getProbeLine(0),y:this.getProbeLine(1),z:this.getProbeLine(2)})}},{key:"pushToFrontAsImage",value:function(e,t,n,r,o,a){var i=Math.floor(e*n),s=Math.floor(t*r),l=null;this.fgCanvas?this.fgCanvas.size(i,s):this.fgCanvas=new p["default"](i,s),l=this.fgCanvas.get2DContext(),l.drawImage(this.bgCanvas.el,0,0,e,t,0,0,i,s),l.beginPath(),l.moveTo(o*n,0),l.lineTo(o*n,s),l.moveTo(0,a*r),l.lineTo(i,a*r),l.strokeStyle="#ffffff",l.lineWidth=1,l.stroke();var u={url:this.fgCanvas.toDataURL(),type:this.renderMethod,builder:this};this.imageReady(u)}},{key:"pushToFrontAsBuffer",value:function(e,t,n,r,o,a){var i=Math.floor(e*n),s=Math.floor(t*r),l={canvas:this.bgCanvas.el,imageData:this.bgCanvas.el.getContext("2d").getImageData(0,0,e,t),area:[0,0,e,t],outputSize:[i,s],type:this.renderMethod,builder:this};this.broadcastCrossHair&&(l.crosshair=[o,a]),this.imageReady(l)}},{key:"renderXY",value:function(){var e=this,t=this.bgCanvas.get2DContext(),n=this.getYOffset(),r=this.probeXYZ,o=this.metadata.dimensions,a=this.metadata.spacing;this.getImage(this.probeXYZ[2],function(){var i=this;t.drawImage(i,0,o[1]*n,o[0],o[1],0,0,o[0],o[1]),e.extractNumericalValues(o[0],o[1]),e.applyLookupTable(o[0],o[1]),e.pushToFront(o[0],o[1],a[0],a[1],r[0],r[1])})}},{key:"renderZY",value:function(){function e(){var s=t.getYOffset(a),l=this;n.drawImage(l,r[0],o[1]*s,1,o[1],a,0,1,o[1]),a--?t.getImage(a,e):(t.extractNumericalValues(o[2],o[1]),t.applyLookupTable(o[2],o[1]),t.pushToFront(o[2],o[1],i[2],i[1],r[2],r[1]))}var t=this,n=this.bgCanvas.get2DContext(),r=this.probeXYZ,o=this.metadata.dimensions,a=o[2],i=this.metadata.spacing;a--&&t.getImage(a,e)}},{key:"renderXZ",value:function(){function e(){var s=t.getYOffset(i),l=this;n.drawImage(l,0,o[1]*s+r[1],o[0],1,0,i,o[0],1),i--?t.getImage(i,e):(t.extractNumericalValues(o[0],o[2]),t.applyLookupTable(o[0],o[2]),t.pushToFront(o[0],o[2],a[0],a[2],r[0],r[2]))}var t=this,n=this.bgCanvas.get2DContext(),r=this.probeXYZ,o=this.metadata.dimensions,a=this.metadata.spacing,i=o[2];i--&&t.getImage(i,e)}},{key:"isCrossHairEnabled",value:function(){return this.broadcastCrossHair}},{key:"setCrossHairEnable",value:function(e){this.broadcastCrossHair!==e&&(this.broadcastCrossHair=e,this.emit(g,e),this.setProbe(this.probeXYZ[0],this.probeXYZ[1],this.probeXYZ[2]))}},{key:"extractNumericalValues",value:function(e,t){for(var n=this.bgCanvas.get2DContext(),r=this.getField(),o=n.getImageData(0,0,e,t),a=o.data,i=a.length,s=0,l=this.metadata.ranges[r],u=l[1]-l[0],c=0,f=new Float32Array(e*t);i>s;){var p=(a[s]+256*a[s+1]+65536*a[s+2])/16777216*u+l[0];f[c++]=p,s+=4}this.scalars[r]=f}},{key:"applyLookupTable",value:function(e,t){var n=this.bgCanvas.get2DContext(),r=this.getField(),o=this.lookupTableManager.getLookupTable(r),a=n.getImageData(0,0,e,t),i=a.data,s=i.length,l=0,u=0,c=this.scalars[r];if(o){for(;s>l;){var f=o.getColor(c[u++]);i[l]=Math.floor(255*f[0]),i[l+1]=Math.floor(255*f[1]),i[l+2]=Math.floor(255*f[2]),l+=4}n.putImageData(a,0,0)}}},{key:"setField",value:function(e){this.queryDataModel.setValue("field",e)}},{key:"getField",value:function(){return this.queryDataModel.getValue("field")}},{key:"getFields",value:function(){return this.metadata.fields}},{key:"setRenderMethod",value:function(e){this.renderMethodMutable&&this.renderMethod!==e&&(this.renderMethod=e,this.render(),this.emit(m,e))}},{key:"getRenderMethod",value:function(){return this.renderMethod}},{key:"getRenderMethods",value:function(){return["XY","ZY","XZ"]}},{key:"isRenderMethodMutable",value:function(){return this.renderMethodMutable}},{key:"setRenderMethodImutable",value:function(){this.renderMethodMutable=!1}},{key:"setRenderMethodMutable",value:function(){this.renderMethodMutable=!0}},{key:"getListeners",value:function(){return this.mouseListener}},{key:"onProbeLineReady",value:function(e){return this.on(d,e)}},{key:"onProbeChange",value:function(e){return this.on(h,e)}},{key:"onRenderMethodChange",value:function(e){return this.on(m,e)}},{key:"onCrosshairVisibilityChange",value:function(e){return this.on(g,e)}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.off(),this.bgCanvas=null,this.workImage=null}},{key:"getControlWidgets",value:function(){var e=this.getControlModels(),t=e.lookupTable,n=e.originalRange,r=e.lookupTableManager,o=e.queryDataModel,a=this;return[{name:"LookupTableManagerWidget",lookupTable:t,originalRange:n,lookupTableManager:r},{name:"ProbeControl",model:a},{name:"QueryDataModelWidget",queryDataModel:o}]}},{key:"getControlModels",value:function(){return{queryDataModel:this.queryDataModel,lookupTable:this.lookupTableManager.getLookupTable(this.getField()),originalRange:this.metadata.ranges[this.getField()],lookupTableManager:this.lookupTableManager}}}]),t}(c["default"]);t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){for(var n in d)if((0,i["default"])(e,n))return new d[n](t);return console.error("No compositor found for type",e),null}Object.defineProperty(t,"__esModule",{value:!0});var a=n(275),i=r(a),s=n(445),l=r(s),u=n(446),c=r(u),f=n(444),p=r(f),d={rgbd:l["default"],"sxyz-light":c["default"],"raw-rgbd":p["default"]};t["default"]={createCompositor:o}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(442),p=r(f),d=function(e){function t(e,n,r){o(this,t);var i=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,pipelineModel:n,dimensions:e.originalData.CompositePipeline.dimensions}));return i.compositor=p["default"].createCompositor(e.originalData.type,{queryDataModel:e,lookupTableManager:r,imageBuilder:i}),i.registerObjectToFree(i.compositor),i.query=null,i.setPipelineQuery(i.pipelineModel.getPipelineQuery()),i.registerSubscription(i.pipelineModel.onChange(function(e,t){i.setPipelineQuery(e)})),i}return i(t,e),s(t,[{key:"setPipelineQuery",value:function(e){this.query!==e&&(this.query=e,this.compositor.updateQuery(e),this.render())}},{key:"render",value:function(){this.query&&this.compositor.render()}},{key:"getControlWidgets",value:function(){return this.compositor.getControlWidgets?this.compositor.getControlWidgets():l(Object.getPrototypeOf(t.prototype),"getControlWidgets",this).call(this)}},{key:"getControlModels",value:function(){return this.compositor.getControlModels?this.compositor.getControlModels():l(Object.getPrototypeOf(t.prototype),"getControlModels",this).call(this)}}]),t}(c["default"]);t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(20),s=r(i),l=n(61),u=r(l),c=n(72),f=r(c),p=n(96),d=r(p),h=function(){function e(t){var r=this,a=t.queryDataModel,i=t.imageBuilder;return o(this,e),this.queryDataModel=a,this.imageBuilder=i,this.rgbdData=null,this.offsetList=[],this.spriteSize=(0,d["default"])(this.queryDataModel.originalData.CompositePipeline.offset),this.dataSubscription=a.onDataChange(function(e,t){r.rgbdData=e.rgbdSprite.data,r.render()}),this.width=this.queryDataModel.originalData.CompositePipeline.dimensions[0],this.height=this.queryDataModel.originalData.CompositePipeline.dimensions[1],this.glCanvas=new s["default"](this.width,this.height),this.gl=this.glCanvas.get3DContext(),this.gl?(this.gl.clearColor(1,1,1,0),this.glConfig={programs:{displayProgram:{vertexShader:n(24),fragmentShader:n(191),mapping:"default"},compositeProgram:{vertexShader:n(24),fragmentShader:n(312),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"texture2D",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]},{id:"ping",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]},{id:"pong",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}},this.glResources=u["default"].createGLResources(this.gl,this.glConfig),void(this.pingPong=new f["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong]))):(console.error("Unable to get WebGl context"),null)}return a(e,[{key:"extractLayerData",value:function(e,t){var n=0,r=t,o=4*(r*this.width+n),a=this.width*this.height*4;return new Uint8Array(e,o,a)}},{key:"updateQuery",value:function(e){var t=this.queryDataModel.originalData.CompositePipeline.layers,n=t.length,r=this.queryDataModel.originalData.CompositePipeline.offset;this.offsetList=[];for(var o=0;n>o;o++){var a=e[2*o+1];"_"!==a&&this.offsetList.push(this.spriteSize-r[t[o]+a])}}},{key:"render",value:function(){var e=this;if(!this.rgbdData)return null;this.pingPong.clearFbo(),this.offsetList.forEach(function(t){e.drawCompositePass(e.extractLayerData(e.rgbdData,t*e.height))}),this.drawDisplayPass();var t={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(t)}},{key:"destroy",value:function(){this.glCanvas.destroy(),this.glCanvas=null,this.dataSubscription.unsubscribe(),this.dataSubscription=null,this.glResources.destroy(),this.glResources=null,this.pingPong=null}},{key:"drawDisplayPass",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish()}},{key:"drawCompositePass",value:function(e){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.compositeProgram),this.gl.viewport(0,0,this.width,this.height);var t=this.gl.getUniformLocation(this.glResources.programs.compositeProgram,"layerSampler");this.gl.uniform1i(t,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.texture2D),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.width,this.height,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,e);var n=this.gl.getUniformLocation(this.glResources.programs.compositeProgram,"compositeSampler");this.gl.uniform1i(n,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap()}}]),e}();t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(20),s=r(i),l=n(96),u=r(l),c=n(61),f=r(c),p=n(72),d=r(p),h=function(){function e(t){var r=this,a=t.queryDataModel,i=t.imageBuilder;return o(this,e),this.queryDataModel=a,this.imageBuilder=i,this.rgbdSprite=null,this.offsetList=[],this.spriteSize=(0,u["default"])(this.queryDataModel.originalData.CompositePipeline.offset),this.removeLoadCallback=!1,this.closureRenderMethod=function(){r.render()},this.dataSubscription=a.onDataChange(function(e,t){r.rgbdSprite=e.rgbdSprite.image,r.rgbdSprite.complete?r.render():(r.removeLoadCallback=!0,r.rgbdSprite.addEventListener("load",r.closureRenderMethod))}),this.width=this.queryDataModel.originalData.CompositePipeline.dimensions[0],this.height=this.queryDataModel.originalData.CompositePipeline.dimensions[1],this.glCanvas=new s["default"](this.width,this.height),this.compositeCanvas=new s["default"](this.width,this.height),this.compositeCtx=this.compositeCanvas.get2DContext(),this.gl=this.glCanvas.get3DContext(),this.gl?(this.gl.clearColor(1,1,1,0),this.glConfig={programs:{displayProgram:{vertexShader:n(24),fragmentShader:n(191),mapping:"default"},compositeProgram:{vertexShader:n(24),fragmentShader:n(312),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"texture2D",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]},{id:"ping",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]},{id:"pong",pixelStore:[["UNPACK_FLIP_Y_WEBGL",!0]],texParameter:[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]]}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}},this.glResources=f["default"].createGLResources(this.gl,this.glConfig),void(this.pingPong=new d["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong]))):(console.error("Unable to get WebGl context"),null)}return a(e,[{key:"updateQuery",value:function(e){var t=this.queryDataModel.originalData.CompositePipeline.layers,n=t.length,r=this.queryDataModel.originalData.CompositePipeline.offset;this.offsetList=[];for(var o=0;n>o;o++){var a=e[2*o+1];"_"!==a&&this.offsetList.push(this.spriteSize-r[t[o]+a])}}},{key:"render",value:function(){var e=this;if(!this.rgbdSprite||!this.rgbdSprite.complete)return null;this.removeLoadCallback&&(this.rgbdSprite.removeEventListener("load",this.closureRenderMethod),this.removeLoadCallback=!1),this.pingPong.clearFbo(),this.offsetList.forEach(function(t){var n=t*e.height;e.compositeCtx.clearRect(0,0,e.width,e.height),e.compositeCtx.drawImage(e.rgbdSprite,0,n,e.width,e.height,0,0,e.width,e.height),e.drawCompositePass()}),this.drawDisplayPass();var t={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(t)}},{key:"destroy",value:function(){this.glCanvas.destroy(),this.glCanvas=null,this.dataSubscription.unsubscribe(),this.dataSubscription=null,this.glResources.destroy(),this.glResources=null,this.pingPong=null}},{key:"drawDisplayPass",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish()}},{key:"drawCompositePass",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.compositeProgram),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.compositeProgram,"layerSampler");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.texture2D),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.compositeCanvas.el);var t=this.gl.getUniformLocation(this.glResources.programs.compositeProgram,"compositeSampler");this.gl.uniform1i(t,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap()}}]),e}();t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){var n=parseFloat(e),r=parseFloat(t),o=(180-n)*Math.PI/180,a=(180-r)*Math.PI/180;return[Math.sin(a)*Math.cos(o),Math.sin(a)*Math.sin(o),Math.cos(a)]}function i(e,t){var n=a(e.getValue("phi"),e.getValue("theta")),r=g["default"].fromValues(n[0],n[1],n[2]),o=g["default"].fromValues(0,0,0),i=g["default"].fromValues(0,0,1),s=g["default"].create();g["default"].add(s,i,r),g["default"].normalize(s,s);var l=g["default"].create();g["default"].subtract(l,o,r);var u=g["default"].create();g["default"].subtract(u,s,r);var c=g["default"].create();g["default"].cross(c,l,u),g["default"].normalize(c,c),g["default"].subtract(l,c,r),g["default"].subtract(u,o,r);var f=g["default"].create();g["default"].cross(f,l,u),g["default"].normalize(f,f);var p=g["default"].create();g["default"].scale(p,c,t.x);var d=g["default"].create();g["default"].scale(d,f,t.y);var h=g["default"].create(); +g["default"].scale(h,r,.3);var m=g["default"].create();return g["default"].add(m,h,p),g["default"].add(m,m,d),g["default"].normalize(m,m),{lightDir:m,viewDir:r}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(20),u=r(l),c=n(96),f=r(c),p=n(121),d=r(p),h=n(710),g=r(h),m=n(272),v=r(m),_=n(61),y=r(_),b=n(72),w=r(b),x=[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]],C=[["UNPACK_FLIP_Y_WEBGL",!0]],E=function(){function e(t){var r=this,a=t.queryDataModel,i=t.imageBuilder,s=t.lookupTableManager;o(this,e),this.queryDataModel=a,this.imageBuilder=i,this.lookupTableManager=s,this.compositePipeline=this.queryDataModel.originalData.CompositePipeline,this.width=this.compositePipeline.dimensions[0],this.height=this.compositePipeline.dimensions[1],this.spriteSize=(0,f["default"])(this.compositePipeline.offset),this.offsetList=[],this.sxyzSprite=null,this.removeLoadCallback=!1,this.closureRenderMethod=function(){r.render()},this.doLighting=!0,this.dataSubscription=a.onDataChange(function(e,t){r.sxyzSprite=e.sxyzSprite.image,r.sxyzSprite.complete?r.render():(r.removeLoadCallback=!0,r.sxyzSprite.addEventListener("load",r.closureRenderMethod))}),this.lookupTableManager.addFields(this.compositePipeline.ranges,this.queryDataModel.originalData.LookupTables),this.numLutSamples=1024,this.lutMap={};for(var l in this.compositePipeline.ranges)this.lutMap[l]=new Uint8Array(4*this.numLutSamples),this.resampleLookupTable(l);return this.lookupTableManager.onChange(function(e,t){"__internal"!==e.lut.name&&r.resampleLookupTable(e.lut.name)}),this.bgColor=[1,1,1],this.lightingTextureNames=["nx","ny","nz","scalars"],this.lightingTextures={},this.lightProperties={lightTerms:{ka:.1,kd:.6,ks:.3,alpha:20},lightPosition:{x:-1,y:1},lightColor:[.8,.8,.8]},this.glCanvas=new u["default"](this.width,this.height),this.compositeCanvas=new u["default"](this.width,this.height),this.compositeCtx=this.compositeCanvas.get2DContext(),this.scalarCanvas=new u["default"](this.width,this.height),this.scalarCtx=this.scalarCanvas.get2DContext(),this.nxCanvas=new u["default"](this.width,this.height),this.nxCtx=this.nxCanvas.get2DContext(),this.nyCanvas=new u["default"](this.width,this.height),this.nyCtx=this.nyCanvas.get2DContext(),this.nzCanvas=new u["default"](this.width,this.height),this.nzCtx=this.nzCanvas.get2DContext(),this.gl=this.glCanvas.get3DContext(),this.gl?(this.gl.clearColor(1,1,1,0),this.glConfig={programs:{displayProgram:{vertexShader:n(24),fragmentShader:n(191),mapping:"default"},compositeLightProgram:{vertexShader:n(24),fragmentShader:n(796),mapping:"default"},compositeLutProgram:{vertexShader:n(24),fragmentShader:n(797),mapping:"default"},backgroundProgram:{vertexShader:n(24),fragmentShader:n(795),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"scalars",pixelStore:C,texParameter:x},{id:"nx",pixelStore:C,texParameter:x},{id:"ny",pixelStore:C,texParameter:x},{id:"nz",pixelStore:C,texParameter:x},{id:"lutTexture",pixelStore:C,texParameter:x},{id:"ping",pixelStore:C,texParameter:x},{id:"pong",pixelStore:C,texParameter:x}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}},this.glResources=y["default"].createGLResources(this.gl,this.glConfig),void(this.pingPong=new w["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong]))):(console.error("Unable to get WebGl context"),null)}return s(e,[{key:"resampleLookupTable",value:function(e){for(var t=this.lookupTableManager.getLookupTable(e),n=this.compositePipeline.ranges[e],r=(n[1]-n[0])/this.numLutSamples,o=this.lutMap[e],a=0;a<this.numLutSamples;++a){var i=n[0]+a*r,s=4*a,l=t.getColor(i);o[s]=Math.round(255*l[0]),o[s+1]=Math.round(255*l[1]),o[s+2]=Math.round(255*l[2]),o[s+3]=1}this.render()}},{key:"updateQuery",value:function(e){var t=this.compositePipeline.layers,n=t.length,r=this.compositePipeline.offset,o=this.compositePipeline.color_by_dependencies;this.offsetList=[];for(var a=0;n>a;a++){var i=e[2*a+1];if("_"!==i&&o[i]){var s=o[i];if(s.normal){var l=s.normal[0],u=s.normal[1],c=s.normal[2];this.offsetList.push({fieldName:this.compositePipeline.fields[i],scalar:this.spriteSize-r[t[a]+i],nx:this.spriteSize-r[t[a]+l],ny:this.spriteSize-r[t[a]+u],nz:this.spriteSize-r[t[a]+c]})}}}}},{key:"render",value:function(){if(!this.sxyzSprite||!this.sxyzSprite.complete)return void console.log("Not enough data to render");this.removeLoadCallback&&(this.sxyzSprite.removeEventListener("load",this.closureRenderMethod),this.removeLoadCallback=!1),this.pingPong.clearFbo();var e=i(this.queryDataModel,this.lightProperties.lightPosition),t=e.lightDir,n=e.viewDir,r=this.width,o=this.height,a=0,s=0;this.compositeCtx.clearRect(0,0,r,o),this.compositeCtx.drawImage(this.sxyzSprite,0,this.spriteSize*o,r,o,0,0,r,o),this.drawBackgroundPass(this.bgColor);for(var l=0,u=this.offsetList.length;u>l;l+=1){var c=this.offsetList[l],f=c.fieldName;s=0,this.doLighting?(s=c.nx*o,this.nxCtx.clearRect(0,0,r,o),this.nxCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),s=c.ny*o,this.nyCtx.clearRect(0,0,r,o),this.nyCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),s=c.nz*o,this.nzCtx.clearRect(0,0,r,o),this.nzCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),s=c.scalar*o,this.scalarCtx.clearRect(0,0,r,o),this.scalarCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),this.drawLitCompositePass(n,t,this.lightProperties,this.lutMap[f])):(s=c.scalar*o,this.scalarCtx.clearRect(0,0,r,o),this.scalarCtx.drawImage(this.sxyzSprite,a,s,r,o,0,0,r,o),this.drawLutCompositePass(this.lutMap[f]))}this.drawDisplayPass();var p={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(p)}},{key:"drawDisplayPass",value:function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},{key:"drawBackgroundPass",value:function(e){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.backgroundProgram),this.gl.viewport(0,0,this.width,this.height);var t=v["default"].fromValues(e[0],e[1],e[2],1),n=this.gl.getUniformLocation(this.glResources.programs.backgroundProgram,"backgroundColor");this.gl.uniform4fv(n,t);var r=this.gl.getUniformLocation(this.glResources.programs.backgroundProgram,"backgroundSampler");this.gl.uniform1i(r,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.compositeCanvas.el),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap(),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},{key:"drawLitCompositePass",value:function(e,t,n,r){var o=n.lightTerms,a=n.lightColor;this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.compositeLightProgram),this.gl.viewport(0,0,this.width,this.height);var i=v["default"].fromValues(e[0],e[1],e[2],0),s=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"viewDir");this.gl.uniform4fv(s,i);var l=v["default"].fromValues(t[0],t[1],t[2],0),u=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"lightDir");this.gl.uniform4fv(u,l);var c=v["default"].fromValues(o.ka,o.kd,o.ks,o.alpha),f=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"lightTerms");this.gl.uniform4fv(f,c);var p=v["default"].fromValues(a[0],a[1],a[2],1),d=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"lightColor");this.gl.uniform4fv(d,p);var h=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"scalarSampler");this.gl.uniform1i(h,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.scalars),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.scalarCanvas.el);var g=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"nxSampler");this.gl.uniform1i(g,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.nx),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.nxCanvas.el);var m=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"nySampler");this.gl.uniform1i(m,2),this.gl.activeTexture(this.gl.TEXTURE0+2),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.ny),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.nyCanvas.el);var _=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"nzSampler");this.gl.uniform1i(_,3),this.gl.activeTexture(this.gl.TEXTURE0+3),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.nz),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.nzCanvas.el);var y=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"compositeSampler");this.gl.uniform1i(y,4),this.gl.activeTexture(this.gl.TEXTURE0+4),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture());var b=this.gl.getUniformLocation(this.glResources.programs.compositeLightProgram,"lutSampler");this.gl.uniform1i(b,5),this.gl.activeTexture(this.gl.TEXTURE0+5),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.lutTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.numLutSamples,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,r),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap();for(var w=0;6>w;w+=1)this.gl.activeTexture(this.gl.TEXTURE0+w),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},{key:"drawLutCompositePass",value:function(e){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.compositeLutProgram),this.gl.viewport(0,0,this.width,this.height);var t=this.gl.getUniformLocation(this.glResources.programs.compositeLutProgram,"scalarSampler");this.gl.uniform1i(t,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.scalars),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.scalarCanvas.el);var n=this.gl.getUniformLocation(this.glResources.programs.compositeLutProgram,"compositeSampler");this.gl.uniform1i(n,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture());var r=this.gl.getUniformLocation(this.glResources.programs.compositeLutProgram,"lutSampler");this.gl.uniform1i(r,2),this.gl.activeTexture(this.gl.TEXTURE0+2),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.lutTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.numLutSamples,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,e),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap();for(var o=0;3>o;o+=1)this.gl.activeTexture(this.gl.TEXTURE0+o),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},{key:"getControlWidgets",value:function(){return[{name:"LookupTableManagerWidget",lookupTableManager:this.lookupTableManager},{name:"LightPropertiesWidget",light:this},{name:"CompositeControl",pipelineModel:this.imageBuilder.pipelineModel},{name:"QueryDataModelWidget",queryDataModel:this.queryDataModel}]}},{key:"getLightingEnabled",value:function(){return this.doLighting}},{key:"setLightingEnabled",value:function(e){this.doLighting=e,this.render()}},{key:"getLightProperties",value:function(){return this.lightProperties}},{key:"setLightProperties",value:function(e){this.lightProperties=(0,d["default"])(this.lightProperties,e),this.render()}},{key:"getControlModels",value:function(){return{lookupTableManager:this.lookupTableManager,light:this,pipelineModel:this.imageBuilder.pipelineModel,queryDataModel:this.queryDataModel,dimensions:[this.width,this.height]}}},{key:"destroy",value:function(){this.dataSubscription.unsubscribe(),this.dataSubscription=null,this.glResources.destroy(),this.glResources=null,this.pingPong=null}}]),e}();t["default"]=E},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(20),p=r(f),d=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,dimensions:e.getDataMetaData(n).dimensions}));return r.dataName=n,r.depthArray=null,r.dimensions=e.getDataMetaData(n).dimensions,r.bgCanvas=new p["default"](r.dimensions[0],r.dimensions[1]),r.registerObjectToFree(r.bgCanvas),r.registerSubscription(e.onDataChange(function(e,t){r.depthArray=new Uint8Array(e[r.dataName].data),r.render()})),r}return i(t,e),s(t,[{key:"render",value:function(){if(!this.depthArray)return void this.update();for(var e=this.bgCanvas.get2DContext(),t=this.dimensions[0],n=this.dimensions[1],r=this.bgCanvas.el.getContext("2d").getImageData(0,0,t,n),o=r.data,a=t*n,i=0;a>i;i++){var s=this.depthArray[i];o[4*i+0]=s,o[4*i+1]=s,o[4*i+2]=s,o[4*i+3]=255}e.putImageData(r,0,0);var l={canvas:this.bgCanvas.el,area:[0,0,t,n],outputSize:[t,n],builder:this};this.imageReady(l)}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.bgCanvas=null,this.dataName=null,this.depthArray=null,this.dimensions=null}}]),t}(c["default"]);t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function b(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:b(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(20),p=r(f),d=n(275),h=r(d),g=n(118),m=r(g),v="probe-change",_="time-data-ready",y=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n,handleRecord:!0,dimensions:e.originalData.FloatImage.dimensions}));return r.timeDataQueryDataModel=e.clone(),r.registerObjectToFree(r.timeDataQueryDataModel),r.light=200,r.meshColor=[50,50,50],r.timeData={data:[],pending:!1},r.metadata=e.originalData.FloatImage,r.layers=r.metadata.layers,r.dimensions=r.metadata.dimensions,r.timeProbe={x:r.dimensions[0]/2,y:r.dimensions[1]/2,query:r.timeDataQueryDataModel.getQuery(),enabled:!1,draw:!0,pending:!1,forceUpdate:!1,tIdx:r.queryDataModel.getIndex("time")||0,updateValue:function(){r.timeProbe.value=r.timeProbe.dataValues?r.timeProbe.dataValues[r.timeProbe.tIdx]:r.timeProbe.pending?"Fetching...":""},triggerChange:function(){r.timeProbe.forceUpdate=!1,r.timeProbe.updateValue(),r.emit(v,r.timeProbe)}},r.bgCanvas=new p["default"](r.dimensions[0],r.dimensions[1]),r.registerObjectToFree(r.bgCanvas),r.lookupTableManager.addFields(r.metadata.ranges,r.queryDataModel.originalData.LookupTables),r.registerSubscription(e.onStateChange(function(){r.timeProbe.tIdx!==r.queryDataModel.getIndex("time")?(r.timeProbe.tIdx=r.queryDataModel.getIndex("time"),r.timeProbe.triggerChange()):r.render(),r.update()})),r.registerSubscription(e.on("pipeline_data",function(e,t){r.layers.forEach(function(t){var n=t.name+"_"+t.array,r=t.name+"__light",o=t.name+"__mesh";t.active&&e[n]&&(t.data=new window[t.type](e[n].data),t.light=new Uint8Array(e[r].data),e[o]&&(t.mesh=new Uint8Array(e[o].data)))}),r.render()})),r.registerSubscription(r.lookupTableManager.onChange(function(e,t){r.render()})),r.registerSubscription(r.timeDataQueryDataModel.on("pipeline_data",function(e,t){if(r.timeData.data.push(e),r.timeData.data.length<r.timeDataQueryDataModel.getSize("time")){r.timeDataQueryDataModel.next("time"),r.timeData.pending=!0,r.timeProbe.pending=!0;var n=r.getCategories();r.timeDataQueryDataModel.fetchData({name:"pipeline_data",categories:n})}else r.timeData.pending=!1,r.timeProbe.pending=!1,r.timeProbe.enabled&&r.getTimeChart(),r.timeProbe.triggerChange()})),r}return i(t,e),s(t,[{key:"getCategories",value:function(){var e=[];return this.layers.forEach(function(t){t.active&&(e.push([t.name,t.array].join("_")),e.push(t.name+"__light"),t.hasMesh&&t.meshActive&&e.push(t.name+"__mesh"))}),e}},{key:"update",value:function(){var e=this.getCategories();this.queryDataModel.fetchData({name:"pipeline_data",categories:e})}},{key:"fetchTimeData",value:function(){var e=this.getCategories(),t=this.queryDataModel.getQuery();if(!this.timeData.pending&&this.timeDataQueryDataModel.getValues("time")){this.timeData.pending=!0,this.timeProbe.pending=!0,this.timeProbe.triggerChange(),this.timeData.data=[],this.timeProbe.query=t;for(var n in t)this.timeDataQueryDataModel.setValue(n,t[n]);this.timeDataQueryDataModel.first("time"),this.timeDataQueryDataModel.fetchData({name:"pipeline_data",categories:e})}}},{key:"getTimeChart",value:function(e,t){var n=!this.timeProbe.enabled||this.timeProbe.forceUpdate;this.timeProbe.enabled=!0,void 0===e&&void 0===t?(e=this.timeProbe.x,t=this.timeProbe.y):(n=n||this.timeProbe.x!==e||this.timeProbe.y!==t,this.timeProbe.x=e,this.timeProbe.y=t);var r=this.queryDataModel.getQuery(),o=this.timeProbe.query;if(o.time=r.time,0===this.timeData.data.length||!(0,m["default"])(r,o))return void this.fetchTimeData();var a=this.dimensions[0],i=this.dimensions[1],s=(i-t-1)*a+e,l="",u=null,c=null;if(this.layers.forEach(function(e){e.active&&!isNaN(e.data[s])&&(l=e.type,u=e.array,c=e.name)}),c&&this.timeProbe.layer!==c&&u&&this.timeProbe.field!==u)return this.timeProbe.layer=c,this.timeProbe.field=u,void(this.timeProbe.layer&&this.timeProbe.field&&this.fetchTimeData());var f=this.timeDataQueryDataModel.getValues("time"),p=[],d={xRange:[Number(f[0]),Number(f[f.length-1])],fields:[{name:u,data:p}]},h=this.timeData.data.length;if(u&&this.lookupTableManager.getLookupTable(u)&&(d.fields[0].range=this.lookupTableManager.getLookupTable(u).getScalarRange()),this.timeProbe.dataValues=p,this.timeProbe.tIdx=this.queryDataModel.getIndex("time"),c&&u&&this.timeData.data[0][c+"_"+u])for(var g=0;h>g;g++){var v=new window[l](this.timeData.data[g][c+"_"+u].data);p.push(v[s])}else c&&u&&!this.timeData.data[0][c+"_"+u]&&this.fetchTimeData();this.emit(_,d),n&&this.timeProbe.triggerChange(),this.render()}},{key:"render",value:function(){function e(e){var t=e%r,n=Math.floor(e/r);return(o-n-1)*r+t}var t=this,n=this.bgCanvas.get2DContext(),r=this.dimensions[0],o=this.dimensions[1],a=r*o,i=n.createImageData(r,o),s=i.data;n.clearRect(0,0,r,o),this.layers.forEach(function(n){if(n.active)for(var r=t.lookupTableManager.getLookupTable(n.array),o=0;a>o;o++){var i=e(o),l=r.getColor(n.data[i]),u=n.light&&n.light[i]?n.light[i]-t.light:0;l[3]&&(s[4*o]=255*l[0]+u,s[4*o+1]=255*l[1]+u,s[4*o+2]=255*l[2]+u,s[4*o+3]=255*l[3],n.hasMesh&&n.meshActive&&n.mesh&&n.mesh[i]&&(s[4*o]=t.meshColor[0],s[4*o+1]=t.meshColor[1],s[4*o+2]=t.meshColor[2]))}}),n.putImageData(i,0,0);var l=this.queryDataModel.getQuery();if(this.timeProbe.query.time=l.time,this.timeProbe.draw=(0,m["default"])(this.timeProbe.query,l),this.timeProbe.enabled&&this.timeProbe.draw){var u=this.timeProbe.x,c=this.timeProbe.y,f=10;n.beginPath(),n.moveTo(u-f,c),n.lineTo(u+f,c),n.moveTo(u,c-f),n.lineTo(u,c+f),n.lineWidth=4,n.strokeStyle="#ffffff",n.stroke(),n.lineWidth=2,n.strokeStyle="#000000",n.stroke()}var p={canvas:this.bgCanvas.el,area:[0,0,r,o],outputSize:[r,o],builder:this,arguments:this.queryDataModel.getQuery()};this.imageReady(p)}},{key:"onTimeDataReady",value:function(e){return this.on(_,e)}},{key:"onProbeChange",value:function(e){return this.on(v,e)}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.off(),this.bgCanvas=null,this.dimensions=null,this.layers=null,this.light=null,this.meshColor=null,this.metadata=null,this.timeData=null,this.timeDataQueryDataModel=null,this.timeProbe=null}},{key:"getControlWidgets",value:function(){var e=this,t=this.getControlModels(),n=t.lookupTableManager,r=t.queryDataModel;return[{name:"LookupTableManagerWidget",lookupTableManager:n},{name:"FloatImageControl",model:e},{name:"QueryDataModelWidget",queryDataModel:r}]}},{key:"getControlModels",value:function(){return{lookupTableManager:this.lookupTableManager,queryDataModel:this.queryDataModel}}},{key:"isMultiView",value:function(){return!(0,h["default"])(this.queryDataModel.originalData.type,"single-view")}},{key:"getLayers",value:function(){return this.layers}},{key:"setLight",value:function(e){this.light!==e&&(this.light=e,this.render())}},{key:"getLight",value:function(){return this.light}},{key:"getTimeProbe",value:function(){return this.timeProbe}},{key:"setMeshColor",value:function(e,t,n){this.meshColor[0]!==e&&this.meshColor[1]!==t&&this.meshColor[2]!==n&&(this.meshColor=[e,t,n],this.update())}},{key:"getMeshColor",value:function(){return this.meshColor}},{key:"updateLayerVisibility",value:function(e,t){for(var n=this.layers,r=n.length;r--;)if(n[r].name===e)return n[r].active=t,this.update(),void(this.timeProbe.enabled&&(this.timeProbe.forceUpdate=!0,this.getTimeChart()))}},{key:"updateMaskLayerVisibility",value:function(e,t){for(var n=this.layers,r=n.length;r--;)if(n[r].name===e)return n[r].meshActive=t,this.update()}},{key:"updateLayerColorBy",value:function(e,t){for(var n=this.layers,r=n.length;r--;)if(n[r].name===e)return n[r].array=t,this.update(),void(this.timeProbe.enabled&&this.getTimeChart())}}]),t}(c["default"]);t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(20),s=r(i),l=n(16),u=r(l),c=n(283),f=r(c),p="image-ready",d="model-change",h=function(){function e(t,n){var r=arguments.length<=2||void 0===arguments[2]?"#ff0000":arguments[2],a=arguments.length<=3||void 0===arguments[3]?20:arguments[3],i=this,l=arguments.length<=4||void 0===arguments[4]?.5:arguments[4],u=arguments.length<=5||void 0===arguments[5]?2:arguments[5];o(this,e),this.frontImageBuilder=t,this.backImageBuilder=n,this.frontEvent=null,this.backEvent=null,this.queryDataModel=this.frontImageBuilder.queryDataModel,this.frontSubscription=this.frontImageBuilder.onImageReady(function(e,t){i.frontEvent=e,i.draw()}),this.backSubscription=this.backImageBuilder.onImageReady(function(e,t){i.backEvent=e,i.draw()});var c=t.getControlModels(),p=c.dimensions;this.width=p[0],this.height=p[1],this.frontActive=!0,this.minZoom=a,this.maxZoom=Math.min(this.width,this.height)*l,this.lineWidth=u,this.lensColor=r,this.lensCenterX=this.width/2,this.lensCenterY=this.height/2,this.lensOriginalCenterX=this.lensCenterX,this.lensOriginalCenterY=this.lensCenterY,this.lensDragDX=0,this.lensDragDY=0,this.lensRadius=Math.floor(Math.min(this.width,this.height)/5),this.lensOriginalRadius=this.lensRadius,this.lastDragTime=(0,f["default"])(),this.lastZoomTime=(0,f["default"])(),this.newMouseTimeout=250,this.lensDrag=!1,this.listenerDrag=!1,this.lensZoom=!1,this.listenerZoom=!1,this.bgCanvas=new s["default"](this.width,this.height),this.listener={drag:function(e,t){var n=(0,f["default"])(),r=i.lastDragTime+i.newMouseTimeout<n,o=!1,a=e.activeArea,s=(e.relative.x-a[0])/a[2],l=(e.relative.y-a[1])/a[3];s=0>s?0:s>1?1:s,l=0>l?0:l>1?1:l;var u=Math.floor(s*i.width),c=Math.floor(l*i.height),p=Math.pow(u-i.lensCenterX,2)+Math.pow(c-i.lensCenterY,2);r&&(i.lensZoom=!1,i.listenerZoom=!1,i.lensDrag=!1,i.listenerDrag=!1,i.lensOriginalCenterX=i.lensCenterX,i.lensOriginalCenterY=i.lensCenterY,i.lensDragDX=u-i.lensCenterX,i.lensDragDY=c-i.lensCenterY),(i.lensDrag||p<Math.pow(i.lensRadius,2))&&0===e.modifier&&!i.listenerDrag&&(o=!0,i.lensDrag=!0,i.lensCenterX=u-i.lensDragDX,i.lensCenterY=c-i.lensDragDY,i.lensCenterX=Math.max(i.lensCenterX,i.lensRadius),i.lensCenterY=Math.max(i.lensCenterY,i.lensRadius),i.lensCenterX=Math.min(i.lensCenterX,i.width-i.lensRadius),i.lensCenterY=Math.min(i.lensCenterY,i.height-i.lensRadius),i.draw());var d=i.frontImageBuilder.getListeners();return!o&&d&&d.drag&&(i.listenerDrag=!0,o=d.drag(e,t)),i.lastDragTime=n,o},zoom:function d(e,t){var n=(0,f["default"])(),r=i.lastZoomTime+i.newMouseTimeout<n,o=!1,a=e.activeArea,s=(e.relative.x-a[0])/a[2],l=(e.relative.y-a[1])/a[3];r&&(i.lensZoom=!1,i.listenerZoom=!1,i.lensDrag=!1,i.listenerDrag=!1),s=0>s?0:s>1?1:s,l=0>l?0:l>1?1:l;var u=Math.floor(s*i.width),c=Math.floor(l*i.height),p=Math.pow(u-i.lensCenterX,2)+Math.pow(c-i.lensCenterY,2);if((i.lensZoom||p<Math.pow(i.lensRadius,2))&&0===e.modifier&&!i.listenerZoom){o=!0,i.lensZoom=!0,e.isFirst&&(i.lensOriginalRadius=i.lensRadius);var d=i.lensOriginalRadius*e.scale;d<i.minZoom&&(d=i.minZoom),d>i.maxZoom&&(d=i.maxZoom),i.lensRadius!==d&&(i.lensRadius=d,i.draw()),e.isFinal&&(i.lensOriginalRadius=i.lensRadius)}var h=i.frontImageBuilder.getListeners();return!o&&h&&h.zoom&&(i.listenerZoom=!0,o=h.zoom(e,t)),i.lastZoomTime=n,o},click:function(e,t){return i.lensDrag=!1,i.listenerDrag=!1,i.lensZoom=!1,i.listenerZoom=!1,!1}}}return a(e,[{key:"draw",value:function(){if(this.frontEvent&&this.backEvent){var e=this.bgCanvas.get2DContext();e.clearRect(0,0,this.width,this.height),e.drawImage(this.backEvent.canvas,this.backEvent.area[0],this.backEvent.area[1],this.backEvent.area[2],this.backEvent.area[3],0,0,this.width,this.height),e.save(),e.beginPath(),e.arc(this.lensCenterX,this.lensCenterY,this.lensRadius,0,2*Math.PI),e.clip(),e.clearRect(0,0,this.width,this.height),e.drawImage(this.frontEvent.canvas,this.frontEvent.area[0],this.frontEvent.area[1],this.frontEvent.area[2],this.frontEvent.area[3],0,0,this.width,this.height),e.restore(),e.beginPath(),e.lineWidth=this.lineWidth,e.strokeStyle=this.lensColor,e.arc(this.lensCenterX,this.lensCenterY,this.lensRadius,0,2*Math.PI),e.closePath(),e.stroke();var t={canvas:this.bgCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this,arguments:this.frontEvent.arguments};this.emit(p,t)}}},{key:"update",value:function(){this.frontImageBuilder.update(),this.backImageBuilder.update()}},{key:"render",value:function(){this.frontImageBuilder.render(),this.backImageBuilder.render()}},{key:"onImageReady",value:function(e){return this.on(p,e)}},{key:"onModelChange",value:function(e){return this.on(d,e)}},{key:"getListeners",value:function(){return this.listener}},{key:"destroy",value:function(){this.off(),this.listener=null,this.frontSubscription.unsubscribe(),this.frontSubscription=null,this.backSubscription.unsubscribe(),this.backSubscription=null,this.frontImageBuilder.destroy(),this.backImageBuilder.destroy()}},{key:"getActiveImageBuilder",value:function(){return this.frontActive?this.frontImageBuilder:this.backImageBuilder}},{key:"isFront",value:function(){return this.frontActive}},{key:"toggleLens",value:function(){this.frontActive=!this.frontActive,this.emit(d)}}]),e}();t["default"]=h,u["default"].mixInto(h)},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){return function(n){return e.getColor(t)}}function o(e,t,n,r){return function(o){var a=t[n][r][o];return e.getColor(a)}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s=function(){function e(t,a,s){n(this,e),this.nbLayers=t.length,this.fieldCodes=a,this.lookupTableManager=s,this.layerFloatData={},this.layerVisible={},this.layerAlpha={},this.layerColorBy={},this.layerGetColor={},this.categories=[];for(var l=0;l<this.nbLayers;l++){this.layerFloatData[i[l]]={},this.layerVisible[i[l]]=1,this.layerAlpha[i[l]]=1,this.layerGetColor[i[l]]={};for(var u=t[l].colorBy,c=u.length;c--;){var f=u[c],p=i[l],d=f.name,h=this.lookupTableManager.getLookupTable(f.name);"const"===f.type?this.layerGetColor[p][d]=r(h,f.value):"field"===f.type&&(this.layerGetColor[p][d]=o(h,this.layerFloatData,p,d))}}}return a(e,[{key:"updateData",value:function(e){for(var t in e)if(-1!==t.indexOf("_")){var n=t.split("_"),r=i[Number(n.shift())],o=n.join("_");this.layerFloatData[r][o]=new Float32Array(e[t].data)}}},{key:"updatePipeline",value:function(e){this.categories=[];for(var t=0;t<this.nbLayers;t++){var n=i[t],r=e[2*t+1];"_"===r?this.layerVisible[n]=0:(this.layerVisible[n]=1,this.layerColorBy[n]=this.fieldCodes[r],this.categories.push([t,this.fieldCodes[r]].join("_"))); +}}},{key:"updateAlphas",value:function(e){for(var t=0;t<this.nbLayers;t++)this.layerAlpha[i[t]]=e[t]}},{key:"hasNoContent",value:function(e){var t=i[e],n=this.layerAlpha[t]*this.layerVisible[t];return 0===n}},{key:"getColor",value:function(e,t){var n=i[e],r=this.layerGetColor[n][this.layerColorBy[n]](t),o=this.layerAlpha[n]*this.layerVisible[n];return[255*r[0],255*r[1],255*r[2],r[3]*o]}},{key:"getCategories",value:function(){return this.categories}},{key:"getLayerColorByName",value:function(e){return this.layerColorBy[i[e]]}},{key:"getLayerVisible",value:function(e){return this.layerVisible[i[e]]}},{key:"getLayerLut",value:function(e){return this.lookupTableManager.getLookupTable(this.layerColorBy[i[e]])}},{key:"getLayerFloatData",value:function(e){var t=i[e];return this.layerFloatData[t][this.layerColorBy[t]]}},{key:"getLayerAlpha",value:function(e){return this.layerAlpha[i[e]]}}]),e}();t["default"]=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r){this.queryDataModel=e,this.imageBuilder=t,this.metadata=this.queryDataModel.originalData.SortedComposite,this.orderData=null,this.intensityData=null,this.colorHelper=n,this.numLayers=this.metadata.layers,this.reverseCompositePass=r,this.width=this.metadata.dimensions[0],this.height=this.metadata.dimensions[1],this.bgCanvas=new i["default"](this.width,this.height),this.imageBuffer=this.bgCanvas.get2DContext().createImageData(this.width,this.height)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(20),i=r(a),s=n(89);o.prototype.updateData=function(e){this.orderData=new Uint8Array(e.order.data),e.intensity?this.intensityData=new Uint8Array(e.intensity.data):this.intensityData=null},o.prototype.render=function(){var e=this;if(!this.orderData)return null;var t=this.width*this.height,n=this.imageBuffer.data,r=this.height,o=this.width,a=this.bgCanvas.get2DContext();if(n.fill)n.fill(0);else for(var i=o*r*4;i--;)n[i]=0;(0,s.loop)(!!this.reverseCompositePass,this.numLayers,function(a){for(var i=0;i<e.height;i++)for(var s=0;s<e.width;s++){var l=e.width*i+s,u=(r-i-1)*o+s,c=e.orderData[a*t+l],f=1;if(255!==c&&!e.colorHelper.hasNoContent(c)){e.intensityData&&(f=e.intensityData[a*t+l]/255);var p=n[4*u+3]/255,d=1-p,h=[n[4*u],n[4*u+1],n[4*u+2]],g=e.colorHelper.getColor(c,l),m=g[3]/255,v=[g[0]*f*m*d,g[1]*f*m*d,g[2]*f*m*d],_=p+m*(1-p);m>0?(n[4*u]=(h[0]*p+v[0])/_,n[4*u+1]=(h[1]*p+v[1])/_,n[4*u+2]=(h[2]*p+v[2])/_,n[4*u+3]=255*_):console.log("no alpha while skip should have worked",g[3])}}}),a.putImageData(this.imageBuffer,0,0);var l={canvas:this.bgCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder,arguments:this.queryDataModel.getQuery()};this.imageBuilder.imageReady(l)},o.prototype.destroy=function(){this.bgCanvas.destroy(),this.bgCanvas=null,this.queryDataModel=null,this.imageBuilder=null},o.prototype.getLightProperties=function(){return{}},o.prototype.setLightProperties=function(e){}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r,o){if(this.queryDataModel=e,this.imageBuilder=t,this.metadata=this.queryDataModel.originalData.SortedComposite,this.colorHelper=r,this.orderData=null,this.intensityData=null,this.numLayers=this.metadata.layers,this.reverseCompositePass=o,this.defaultIntensityData=new Uint8Array([255]),this.intensitySize=[1,1],this.hasIntensity=!1,this.hasNormal=!1,this.defaultLayerBufferView=new Float32Array([0]),this.layerBufferViewSize=[1,1],this.width=this.metadata.dimensions[0],this.height=this.metadata.dimensions[1],this.lightProperties={lightTerms:{ka:.1,kd:.6,ks:.3,alpha:20},lightPosition:{x:-1,y:1},lightColor:[.8,.8,.8]},this.glCanvas=new i["default"](this.width,this.height),this.gl=this.glCanvas.get3DContext(),!this.gl)return console.error("Unable to get WebGl context"),null;this.gl.clearColor(1,1,1,0);var a=this.gl.getParameter(this.gl.MAX_TEXTURE_IMAGE_UNITS),s=(a-2)/2;this.shaderLayers=s<this.numLayers?s:this.numLayers,this.lutData=[];for(var l=0;l<this.shaderLayers;++l)this.lutData.push(new Uint8Array(1024));this.glConfig={programs:{displayProgram:{vertexShader:n(24),fragmentShader:n(314),mapping:"default"},colorProgram:{vertexShader:n(24),fragmentShader:d["default"].transformShader(n(798),{SIMULTANEOUS_LAYERS:this.shaderLayers},{inlineLoops:!0}),mapping:"default"},lightColorProgram:{vertexShader:n(24),fragmentShader:d["default"].transformShader(n(799),{SIMULTANEOUS_LAYERS:this.shaderLayers},{inlineLoops:!0}),mapping:"default"},blendProgram:{vertexShader:n(24),fragmentShader:n(313),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"orderTexture",pixelStore:_,texParameter:m},{id:"intensityTexture",pixelStore:_,texParameter:m},{id:"ping",pixelStore:v,texParameter:m},{id:"pong",pixelStore:v,texParameter:m},{id:"colorRenderTexture",pixelStore:v,texParameter:m}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height},{id:"colorFbo",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}};for(var l=0;l<this.shaderLayers;++l)this.glConfig.resources.textures.push({id:"layerColorSampler_"+l,pixelStore:_,texParameter:m}),this.glConfig.resources.textures.push({id:"lutSampler_"+l,pixelStore:[["UNPACK_ALIGNMENT",1]],texParameter:m});this.glResources=d["default"].createGLResources(this.gl,this.glConfig),this.gl.disable(this.gl.DEPTH_TEST),this.gl.disable(this.gl.BLEND);var u=this.gl.getExtension("OES_texture_float");null===u&&console.err("Your browser does not support the WebGL Extension 'OES_texture_float', this compositor will not work!"),d["default"].bindTextureToFramebuffer(this.gl,this.glResources.framebuffers.colorFbo,this.glResources.textures.colorRenderTexture),this.pingPong=new g["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong])}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(20),i=r(a),s=n(89),l=n(121),u=r(l),c=n(272),f=r(c),p=n(61),d=r(p),h=n(72),g=r(h),m=[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]],v=[["UNPACK_FLIP_Y_WEBGL",!0]],_=[["UNPACK_FLIP_Y_WEBGL",!0],["UNPACK_ALIGNMENT",1]],y=new Float32Array([0]);o.prototype.updateData=function(e){this.orderData=e.order.data,e.intensity?(this.intensitySize=[this.width,this.height],this.intensityData=e.intensity.data,this.hasIntensity=!0):(this.intensitySize=[1,1],this.intensityData=this.defaultIntensityData,this.hasIntensity=!1),e.normal?(this.normalData=e.normal.data,this.hasNormal=!0):(this.normalData=null,this.hasNormal=!1)},o.prototype.extractLayerData=function(e,t,n){var r=t*this.width*this.height*n,o=this.width*this.height*n;return new Uint8Array(e,r,o)},o.prototype.getAndUseCurrentColorProgram=function(){var e=this.glResources.programs.colorProgram;return this.hasNormal&&(e=this.glResources.programs.lightColorProgram),this.gl.useProgram(e),e},o.prototype.uploadLayerTextures=function(e,t){for(var n=[],r=[],o=2,a=[],i=[],s=[],l=[],u=0,c=e;t>=c;++c){var f=this.colorHelper.getLayerLut(c),p=this.colorHelper.getLayerColorByName(c),d=this.metadata.ranges[p];if(this.colorHelper.getLayerVisible(c)){var h=this.colorHelper.getLayerFloatData(c);h?(i.push(h),a.push([this.width,this.height])):(i.push(new Float32Array([this.findLayerConstantValue(c)])),a.push([1,1])),s.push(d[0]),s.push(d[1])}else i.push(y),a.push([1,1]),s.push(-1),s.push(-1);l.push(this.colorHelper.getLayerAlpha(c)),this.sampleLookupTable(f,p,d,u++),n.push(o),r.push(o+this.shaderLayers),o+=1}var g=this.getAndUseCurrentColorProgram(),m=this.gl.getUniformLocation(g,"layerColorSampler");this.gl.uniform1iv(m,n);for(var v=0;v<n.length;++v){this.gl.activeTexture(this.gl.TEXTURE0+n[v]),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures["layerColorSampler_"+v]);var _=a[v][0],b=a[v][1];this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,_,b,0,this.gl.LUMINANCE,this.gl.FLOAT,i[v])}var w=this.gl.getUniformLocation(g,"lutSampler");this.gl.uniform1iv(w,r);for(var v=0;v<r.length;++v)this.gl.activeTexture(this.gl.TEXTURE0+r[v]),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures["lutSampler_"+v]),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,256,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.lutData[v]);var x=this.gl.getUniformLocation(g,"layerRange");this.gl.uniform2fv(x,s);var C=this.gl.getUniformLocation(g,"layerAlpha");this.gl.uniform1fv(C,l)},o.prototype.render=function(){var e=this;if(!this.orderData)return null;if(this.shaderLayers>=this.numLayers){this.uploadLayerTextures(0,this.numLayers-1);var t=this.getAndUseCurrentColorProgram(),n=this.gl.getUniformLocation(t,"orderOffset");this.gl.uniform1i(n,0)}this.pingPong.clearFbo(),(0,s.loop)(!this.reverseCompositePass,this.numLayers,function(t){var n=e.extractLayerData(e.orderData,t,1),r=e.extractLayerData(e.intensityData,t,1);if(e.hasNormal&&(r=e.extractLayerData(e.normalData,t,3)),e.gl.bindFramebuffer(e.gl.FRAMEBUFFER,e.glResources.framebuffers.colorFbo),e.gl.clear(e.gl.COLOR_BUFFER_BIT),e.shaderLayers>=e.numLayers)e.drawColorPass(n,r);else for(var o=0;o<e.numLayers;o+=e.shaderLayers){var a=o+(e.shaderLayers-1);a>=e.numLayers&&(a=e.numLayers-1),e.uploadLayerTextures(o,a);var i=e.getAndUseCurrentColorProgram(),s=e.gl.getUniformLocation(i,"orderOffset");e.gl.uniform1i(s,o),e.drawColorPass(n,r)}e.drawBlendPass()}),this.drawDisplayPass();var r={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder,arguments:this.queryDataModel.getQuery()};this.imageBuilder.imageReady(r)},o.prototype.findLayerConstantValue=function(e){for(var t=this.colorHelper.getLayerColorByName(e),n=this.metadata.pipeline[e].colorBy,r=0;r<n.length;++r)if(n[r].name===t)return n[r].value},o.prototype.sampleLookupTable=function(e,t,n,r){function o(e,t,n,r,o){return(e-t)/(n-t)*(o-r)+r}for(var a=0;256>a;++a){var i=o(a,0,255,n[0],n[1]),s=e.getColor(i);this.lutData[r][4*a]=255*s[0],this.lutData[r][4*a+1]=255*s[1],this.lutData[r][4*a+2]=255*s[2],this.lutData[r][4*a+3]=255*s[3]}},o.prototype.drawBlendPass=function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.blendProgram),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.blendProgram,"underLayerSampler");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture());var t=this.gl.getUniformLocation(this.glResources.programs.blendProgram,"overLayerSampler");this.gl.uniform1i(t,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.colorRenderTexture),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap();for(var n=0;2>n;n+=1)this.gl.activeTexture(this.gl.TEXTURE0+n),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.drawDisplayPass=function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.drawColorPass=function(e,t){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.glResources.framebuffers.colorFbo);var n=this.glResources.programs.colorProgram;this.hasNormal&&(n=this.glResources.programs.lightColorProgram),this.gl.useProgram(n),this.gl.viewport(0,0,this.width,this.height);var r=0,o=this.gl.getUniformLocation(n,"orderSampler");if(this.gl.uniform1i(o,r),this.gl.activeTexture(this.gl.TEXTURE0+r),r+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.orderTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.width,this.height,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,e),this.hasNormal){var a=this.gl.getUniformLocation(n,"normalSampler");this.gl.uniform1i(a,r),this.gl.activeTexture(this.gl.TEXTURE0+r),r+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.intensityTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGB,this.width,this.height,0,this.gl.RGB,this.gl.UNSIGNED_BYTE,t);var i=this.lightProperties,s=i.lightTerms,l=i.lightPosition,u=i.lightColor,c=f["default"].fromValues(l.x,l.y,1,0),p=this.gl.getUniformLocation(n,"lightDir");this.gl.uniform4fv(p,c);var d=f["default"].fromValues(s.ka,s.kd,s.ks,s.alpha),h=this.gl.getUniformLocation(n,"lightTerms");this.gl.uniform4fv(h,d);var g=f["default"].fromValues(u[0],u[1],u[2],1),m=this.gl.getUniformLocation(n,"lightColor");this.gl.uniform4fv(m,g)}else{var a=this.gl.getUniformLocation(n,"intensitySampler");this.gl.uniform1i(a,r),this.gl.activeTexture(this.gl.TEXTURE0+r),r+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.intensityTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.intensitySize[0],this.intensitySize[1],0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,t)}this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish();for(var v=0;r>v;v+=1)this.gl.activeTexture(this.gl.TEXTURE0+v),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.destroy=function(){this.queryDataModel=null,this.imageBuilder=null,this.glResources.destroy(),this.glResources=null,this.pingPong=null,this.glCanvas.destroy(),this.glCanvas=null},o.prototype.getLightProperties=function(){return this.lightProperties},o.prototype.setLightProperties=function(e){this.lightProperties=(0,u["default"])(this.lightProperties,e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function w(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:w(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(450),p=r(f),d=n(451),h=r(d),g=n(452),m=r(g),v=n(132),_=r(v),y="data_to_fetch",b=function(e){function t(e,n,r){o(this,t);var i=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n,pipelineModel:r,handleRecord:!0,dimensions:e.originalData.SortedComposite.dimensions}));return i.metadata=e.originalData.SortedComposite,i.intensityModel=new _["default"](!0),i.normalsModel=new _["default"](!1),i.computationModel=new _["default"](!0),i.intensityModel.onChange(function(e,t){i.update()}),i.normalsModel.onChange(function(e,t){i.update()}),i.computationModel.onChange(function(e,t){i.compositor=i.compositors[e?1:0],i.update()}),i.lookupTableManager.addFields(i.metadata.ranges,i.queryDataModel.originalData.LookupTables),i.colorHelper=new p["default"](i.metadata.pipeline,e.originalData.CompositePipeline.fields,n),i.lookupTableManager.updateActiveLookupTable(i.metadata.activeLookupTable||i.metadata.pipeline[0].colorBy[0].name),i.dataQuery={name:y,categories:[]},i.compositors=[new h["default"](e,i,i.colorHelper,i.metadata.reverseCompositePass),new m["default"](e,i,i.colorHelper,i.metadata.reverseCompositePass)],i.compositor=i.compositors[1],i.controlWidgets=[{name:"LookupTableManagerWidget",lookupTableManager:i.lookupTableManager},{name:"LightPropertiesWidget",light:i},{name:"CompositeControl",pipelineModel:i.pipelineModel},{name:"QueryDataModelWidget",queryDataModel:i.queryDataModel}],i.metadata.light&&i.metadata.light.indexOf("normal")>=0?i.metadata.light.indexOf("intensity")<0&&i.normalsModel.setState(!0):i.controlWidgets.splice(1,1),i.registerSubscription(i.queryDataModel.onDataChange(function(){i.update()})),i.registerSubscription(e.on(y,function(e,t){i.colorHelper.updateData(e),i.compositor.updateData(e),i.render()})),i.registerSubscription(i.pipelineModel.onChange(function(e,t){i.colorHelper.updatePipeline(e),i.update()})),i.colorHelper.updatePipeline(i.pipelineModel.getPipelineQuery()),i.registerSubscription(i.lookupTableManager.onChange(function(e,t){i.render()})),i.registerSubscription(i.pipelineModel.onOpacityChange(function(e,t){i.colorHelper.updateAlphas(e),i.render()})),i.pipelineModel.resetOpacity(100),i.registerObjectToFree(i.compositors[0]),i.registerObjectToFree(i.compositors[1]),i}return i(t,e),s(t,[{key:"update",value:function(){this.normalsModel.getState()?this.dataQuery.categories=["_","normal"].concat(this.colorHelper.getCategories()):this.intensityModel.getState()?this.dataQuery.categories=["_","intensity"].concat(this.colorHelper.getCategories()):this.dataQuery.categories=["_"].concat(this.colorHelper.getCategories()),this.queryDataModel.fetchData(this.dataQuery)}},{key:"render",value:function(){this.compositor.render()}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.compositors=null,this.compositor=null}},{key:"getLightingEnabled",value:function(){return this.normalsModel.getState()}},{key:"setLightingEnabled",value:function(e){this.normalsModel.setState(e)}},{key:"getLightProperties",value:function(){return this.compositor.getLightProperties()}},{key:"setLightProperties",value:function(e){this.compositor.setLightProperties(e),this.render()}},{key:"getControlModels",value:function(){return{lookupTableManager:this.lookupTableManager,intensity:this.intensityModel,computation:this.computationModel,normal:this.normalsModel,queryDataModel:this.queryDataModel,light:this,dimensions:this.metadata.dimensions}}}]),t}(c["default"]);t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(20),p=r(f),d=function(e){function t(){var e=arguments.length<=0||void 0===arguments[0]?"a-b":arguments[0],n=arguments.length<=1||void 0===arguments[1]?["a","b"]:arguments[1];o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{}));return r.data={},r.listeners={},r.dataSize=[200,200],r.operation=e,r.dependency=n,r.bgCanvas=new p["default"](r.dataSize[0],r.dataSize[1]),r.registerObjectToFree(r.bgCanvas),r}return i(t,e),s(t,[{key:"setOperation",value:function(e){this.operation=e,this.processData()}},{key:"setDependencies",value:function(e){this.dependency=e}},{key:"getOperation",value:function(){return this.operation}},{key:"updateOperationFunction",value:function(){var e=this,t=[],n=!0;for(var r in this.data)t.push("var X = data.X[i];".replace(/X/g,r));return this.dependency.forEach(function(t){n=e.data[t]&&n}),t.push("return X;".replace(/X/g,this.operation)),this.fnOperation=new Function("data","i",t.join("")),n}},{key:"updateData",value:function(e,t){var n=this,r=t.area,o=t.canvas,a=r[0],i=r[1],s=r[2],l=r[3],u=this.bgCanvas.get2DContext(),c=new Uint8ClampedArray(s*l*4),f=null;this.bgCanvas.size(s,l),u.drawImage(o,a,i,s,l,0,0,s,l),f=u.getImageData(0,0,s,l),c.set(f.data),this.data[e]=c,this.dataSize=[s,l];var p=!0;this.dependency.forEach(function(e){n.data[e]||(p=!1)}),p&&this.processData()}},{key:"updateDataFromImage",value:function(e,t){var n=this,r=function o(){t.removeEventListener("load",o);var r=t.width,a=t.height,i=n.bgCanvas.get2DContext(),s=new Uint8ClampedArray(r*a*4);n.bgCanvas.size(r,a),i.drawImage(t,0,0);var l=i.getImageData(0,0,r,a);s.set(l.data),n.data[e]=s,n.dataSize=[r,a];var u=!0;n.dependency.forEach(function(e){n.data[e]||(u=!1)}),u&&n.processData()};t.complete?r():t.addEventListener("load",r)}},{key:"updateDataFromClampedArray",value:function(e,t,n){var r=this;this.data[e]=t,this.dataSize=n||this.dataSize;var o=!0;this.dependency.forEach(function(e){r.data[e]||(o=!1)}),o&&this.processData()}},{key:"processData",value:function(){if(this.updateOperationFunction()){var e=-1,t=!0;for(var n in this.data){var r=this.data[n];-1===e?e=r.length:t=t&&e===r.length}if(!t||-1===e)return void console.log("The array size are invalid!!!",e);if(this.dataSize[0]*this.dataSize[1]*4!==e)return void console.log("The array size are invalid!!!",e,this.dataSize);for(var o=new Uint8ClampedArray(e),a=0;e>a;)o[a]=this.fnOperation(this.data,a),o[a+1]=this.fnOperation(this.data,a+1),o[a+2]=this.fnOperation(this.data,a+2),o[a+3]=255,a+=4;this.bgCanvas.size(this.dataSize[0],this.dataSize[1]);var i=this.bgCanvas.get2DContext(),s=i.getImageData(0,0,this.dataSize[0],this.dataSize[1]);s.data.set(o),i.putImageData(s,0,0);var l={canvas:this.bgCanvas.el,area:[0,0].concat(this.dataSize),outputSize:this.dataSize,builder:this};this.imageReady(l)}}},{key:"getListeners",value:function(){return this.listeners}},{key:"setListeners",value:function(e){this.listeners=e}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.bgCanvas=null,this.data=null,this.dataSize=null,this.dependency=null,this.listeners=null,this.operation=null}},{key:"getControlWidgets",value:function(){return[{name:"PixelOperatorControl",model:this}]}},{key:"getControlModels",value:function(){return{dimensions:this.dataSize}}}]),t}(c["default"]);t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(33),u=r(l),c=function(e){function t(e){o(this,t);var n=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,dimensions:e.originalData.data[0].dimensions||[500,500]}));return n.lastQueryImage=null,n.onLoadCallback=function(){n.lastQueryImage.removeEventListener("load",n.onLoadCallback),n.render()},n.registerSubscription(e.onDataChange(function(e,t){n.lastQueryImage&&n.lastQueryImage.removeEventListener("load",n.onLoadCallback),e.image&&(n.lastQueryImage=e.image.image,n.render())})),n}return i(t,e),s(t,[{key:"render",value:function(){if(!this.lastQueryImage)return void this.queryDataModel.fetchData();if(this.lastQueryImage.complete){var e=this.lastQueryImage.width,t=this.lastQueryImage.height;this.imageReady({canvas:this.lastQueryImage,area:[0,0,e,t],outputSize:[e,t],builder:this,arguments:this.queryDataModel.getQuery()})}else this.lastQueryImage.addEventListener("load",this.onLoadCallback)}}]),t}(u["default"]);t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function w(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:w(o,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},u=n(33),c=r(u),f=n(457),p=r(f),d=n(205),h=r(d),g=n(458),m=r(g),v=n(132),_=r(v),y="VolumeScalar",b=function(e){function t(e,n){o(this,t);var r=a(this,Object.getPrototypeOf(t).call(this,{queryDataModel:e,lookupTableManager:n,dimensions:e.originalData.SortedComposite.dimensions}));return r.dataQuery={name:"data_fetch",categories:[]},r.metadata=e.originalData.SortedComposite,r.originalRange=[r.metadata.scalars[0],r.metadata.scalars[r.metadata.scalars.length-1]],r.lutTextureData=new Uint8Array(4*r.metadata.layers),n.addFields({VolumeScalar:[0,1]},r.queryDataModel.originalData.LookupTables),r.lookupTable=n.getLookupTable(y),r.registerSubscription(r.lookupTable.onChange(function(e,t){for(var n=0;n<r.metadata.layers;n++){var o=r.lookupTable.getColor(r.metadata.scalars[n]);r.lutTextureData[4*n]=255*o[0],r.lutTextureData[4*n+1]=255*o[1],r.lutTextureData[4*n+2]=255*o[2]}r.render()})),r.compositors=[new p["default"](e,r,r.lutTextureData,r.metadata.reverseCompositePass),new m["default"](e,r,r.lutTextureData,r.metadata.reverseCompositePass)],r.compositor=r.compositors[1],r.intensityModel=new _["default"](!0),r.computationModel=new _["default"](!0),r.equalizerModel=new h["default"]({size:r.metadata.layers,scalars:r.metadata.scalars,lookupTable:r.lookupTable}),r.intensityModel.onChange(function(e,t){r.update()}),r.computationModel.onChange(function(e,t){r.compositor=r.compositors[e?1:0],r.update()}),r.equalizerModel.onChange(function(e,t){for(var n=e.getOpacities(),o=0;o<r.metadata.layers;o++)r.lutTextureData[4*o+3]=255*n[o];r.render()}),r.lookupTable.setScalarRange(r.originalRange[0],r.originalRange[1]),r.registerSubscription(r.queryDataModel.onDataChange(function(){r.update()})),r.registerSubscription(e.on("data_fetch",function(e,t){r.compositor.updateData(e),r.render()})),r.registerObjectToFree(r.compositors[0]),r.registerObjectToFree(r.compositors[1]),r.registerObjectToFree(r.intensityModel),r.registerObjectToFree(r.computationModel),r.registerObjectToFree(r.equalizerModel),r}return i(t,e),s(t,[{key:"update",value:function(){this.intensityModel.getState()?this.dataQuery.categories=["_","intensity"]:this.dataQuery.categories=["_"],this.queryDataModel.fetchData(this.dataQuery)}},{key:"render",value:function(){this.compositor.render()}},{key:"destroy",value:function(){l(Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.compositor=null,this.compositors=null,this.computationModel=null,this.dataQuery=null,this.equalizerModel=null,this.intensityModel=null,this.lookupTable=null,this.lutTextureData=null,this.metadata=null,this.originalRange=null}},{key:"getControlWidgets",value:function(){var e=this.getControlModels(),t=e.lookupTable,n=e.equalizer,r=e.intensity,o=e.computation,a=e.queryDataModel;return[{name:"VolumeControlWidget",lookupTable:t,equalizer:n,intensity:r,computation:o},{name:"QueryDataModelWidget",queryDataModel:a}]}},{key:"getControlModels",value:function(){return{lookupTable:{lookupTable:this.lookupTable,lookupTableManager:this.lookupTableManager,originalRange:this.originalRange},equalizer:this.equalizerModel,intensity:this.intensityModel,computation:this.computationModel,queryDataModel:this.queryDataModel,dimensions:this.metadata.dimensions}}}]),t}(c["default"]);t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n,r){this.queryDataModel=e,this.imageBuilder=t,this.metadata=this.queryDataModel.originalData.SortedComposite,this.orderData=null,this.alphaData=null,this.intensityData=null,this.numLayers=this.metadata.layers,this.colorTable=n,this.reverseCompositePass=r,this.width=this.metadata.dimensions[0],this.height=this.metadata.dimensions[1],this.bgCanvas=new i["default"](this.width,this.height),this.imageBuffer=this.bgCanvas.get2DContext().createImageData(this.width,this.height)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(20),i=r(a),s=n(89);o.prototype.updateData=function(e){this.orderData=new Uint8Array(e.order.data),this.alphaData=new Uint8Array(e.alpha.data),e.intensity?this.intensityData=new Uint8Array(e.intensity.data):this.intensityData=null},o.prototype.setLayerColors=function(e){this.colorTable=e},o.prototype.render=function(){var e=this;if(!this.alphaData||!this.orderData||!this.colorTable)return null;var t=this.width*this.height,n=this.imageBuffer.data,r=this.height,o=this.width,a=this.bgCanvas.get2DContext();if(n.fill)n.fill(0);else for(var i=o*r*4;i--;)n[i]=0;(0,s.loop)(!!this.reverseCompositePass,this.numLayers,function(a){for(var i=0;i<e.height;i++)for(var s=0;s<e.width;s++){var l=e.width*i+s,u=(r-i-1)*o+s,c=e.orderData[a*t+l],f=e.colorTable[4*c+3]/255,p=e.alphaData[a*t+l]/255,d=1;e.intensityData&&(d=e.intensityData[a*t+l]/255);var h=n[4*u+3]/255,g=1-h,m=[n[4*u],n[4*u+1],n[4*u+2]],v=[e.colorTable[4*c]*d*p*f*g,e.colorTable[4*c+1]*d*p*f*g,e.colorTable[4*c+2]*d*p*f*g],_=h+p*f*(1-h);n[4*u]=(m[0]*h+v[0])/_,n[4*u+1]=(m[1]*h+v[1])/_,n[4*u+2]=(m[2]*h+v[2])/_,n[4*u+3]=255*_}}),a.putImageData(this.imageBuffer,0,0);var l={canvas:this.bgCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(l)},o.prototype.destroy=function(){this.bgCanvas.destroy(),this.bgCanvas=null,this.queryDataModel=null,this.imageBuilder=null}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e +}}function o(e,t,r,o){return this.queryDataModel=e,this.imageBuilder=t,this.infoJson=this.queryDataModel.originalData,this.orderData=null,this.alphaData=null,this.intensityData=null,this.intensitySize=1,this.defaultIntensityData=new Uint8Array([255]),this.numLayers=this.infoJson.SortedComposite.layers,this.reverseCompositePass=o,this.lutView=r,this.width=this.infoJson.SortedComposite.dimensions[0],this.height=this.infoJson.SortedComposite.dimensions[1],this.glCanvas=new i["default"](this.width,this.height),this.gl=this.glCanvas.get3DContext(),this.gl?(this.gl.clearColor(1,1,1,0),this.glConfig={programs:{displayProgram:{vertexShader:n(24),fragmentShader:n(314),mapping:"default"},colorProgram:{vertexShader:n(24),fragmentShader:n(800),mapping:"default"},blendProgram:{vertexShader:n(24),fragmentShader:n(313),mapping:"default"}},resources:{buffers:[{id:"texCoord",data:new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])},{id:"posCoord",data:new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1])}],textures:[{id:"orderTexture",pixelStore:h,texParameter:p},{id:"alphaTexture",pixelStore:h,texParameter:p},{id:"intensityTexture",pixelStore:h,texParameter:p},{id:"lutTexture",pixelStore:d,texParameter:p},{id:"ping",pixelStore:d,texParameter:p},{id:"pong",pixelStore:d,texParameter:p},{id:"colorRenderTexture",pixelStore:d,texParameter:p}],framebuffers:[{id:"ping",width:this.width,height:this.height},{id:"pong",width:this.width,height:this.height},{id:"colorFbo",width:this.width,height:this.height}]},mappings:{"default":[{id:"posCoord",name:"positionLocation",attribute:"a_position",format:[2,this.gl.FLOAT,!1,0,0]},{id:"texCoord",name:"texCoordLocation",attribute:"a_texCoord",format:[2,this.gl.FLOAT,!1,0,0]}]}},this.glResources=l["default"].createGLResources(this.gl,this.glConfig),l["default"].bindTextureToFramebuffer(this.gl,this.glResources.framebuffers.colorFbo,this.glResources.textures.colorRenderTexture),void(this.pingPong=new f["default"](this.gl,[this.glResources.framebuffers.ping,this.glResources.framebuffers.pong],[this.glResources.textures.ping,this.glResources.textures.pong]))):(console.error("Unable to get WebGl context"),null)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(20),i=r(a),s=n(61),l=r(s),u=n(89),c=n(72),f=r(c),p=[["TEXTURE_MAG_FILTER","NEAREST"],["TEXTURE_MIN_FILTER","NEAREST"],["TEXTURE_WRAP_S","CLAMP_TO_EDGE"],["TEXTURE_WRAP_T","CLAMP_TO_EDGE"]],d=[["UNPACK_FLIP_Y_WEBGL",!0]],h=[["UNPACK_FLIP_Y_WEBGL",!0],["UNPACK_ALIGNMENT",1]];o.prototype.updateData=function(e){this.orderData=e.order.data,this.alphaData=e.alpha.data,e.intensity?(this.intensityData=e.intensity.data,this.intensitySize=[this.width,this.height]):(this.intensityData=this.defaultIntensityData,this.intensitySize=[1,1])},o.prototype.extractLayerData=function(e,t){var n=t*this.width*this.height,r=this.width*this.height;return new Uint8Array(e,n,r)},o.prototype.render=function(){var e=this;if(!this.alphaData||!this.orderData||!this.lutView)return null;this.pingPong.clearFbo(),(0,u.loop)(!this.reverseCompositePass,this.numLayers,function(t){e.drawColorPass(e.extractLayerData(e.orderData,t),e.extractLayerData(e.alphaData,t),e.extractLayerData(e.intensityData,t)),e.drawBlendPass()}),this.drawDisplayPass();var t={canvas:this.glCanvas.el,area:[0,0,this.width,this.height],outputSize:[this.width,this.height],builder:this.imageBuilder};this.imageBuilder.imageReady(t)},o.prototype.destroy=function(){this.glResources.destroy(),this.glResources=null,this.pingPong=null},o.prototype.drawDisplayPass=function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this.gl.useProgram(this.glResources.programs.displayProgram),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.displayProgram,"u_image");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture()),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.drawBlendPass=function(){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.pingPong.getFramebuffer()),this.gl.useProgram(this.glResources.programs.blendProgram),this.gl.viewport(0,0,this.width,this.height);var e=this.gl.getUniformLocation(this.glResources.programs.blendProgram,"underLayerSampler");this.gl.uniform1i(e,0),this.gl.activeTexture(this.gl.TEXTURE0+0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.pingPong.getRenderingTexture());var t=this.gl.getUniformLocation(this.glResources.programs.blendProgram,"overLayerSampler");this.gl.uniform1i(t,1),this.gl.activeTexture(this.gl.TEXTURE0+1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.colorRenderTexture),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish(),this.pingPong.swap();for(var n=0;2>n;n+=1)this.gl.activeTexture(this.gl.TEXTURE0+n),this.gl.bindTexture(this.gl.TEXTURE_2D,null)},o.prototype.drawColorPass=function(e,t,n){this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.glResources.framebuffers.colorFbo),this.gl.useProgram(this.glResources.programs.colorProgram),this.gl.viewport(0,0,this.width,this.height);var r=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"numberOfLayers");this.gl.uniform1f(r,this.numLayers);var o=0,a=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"orderSampler");this.gl.uniform1i(a,o),this.gl.activeTexture(this.gl.TEXTURE0+o),o+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.orderTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.width,this.height,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,e);var i=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"alphaSampler");this.gl.uniform1i(i,o),this.gl.activeTexture(this.gl.TEXTURE0+o),o+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.alphaTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.width,this.height,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,t);var s=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"intensitySampler");this.gl.uniform1i(s,o),this.gl.activeTexture(this.gl.TEXTURE0+o),o+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.intensityTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,this.intensitySize[0],this.intensitySize[1],0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,n);var l=this.gl.getUniformLocation(this.glResources.programs.colorProgram,"lutSampler");this.gl.uniform1i(l,o),this.gl.activeTexture(this.gl.TEXTURE0+o),o+=1,this.gl.bindTexture(this.gl.TEXTURE_2D,this.glResources.textures.lutTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.numLayers,1,0,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.lutView),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.gl.finish();for(var u=0;o>u;u+=1)this.gl.activeTexture(this.gl.TEXTURE0+u),this.gl.bindTexture(this.gl.TEXTURE_2D,null)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(33),a=r(o),i=n(439),s=r(i),l=n(440),u=r(l),c=n(441),f=r(c),p=n(443),d=r(p),h=n(447),g=r(h),m=n(448),v=r(m),_=n(449),y=r(_),b=n(453),w=r(b),x=n(454),C=r(x),E=n(455),T=r(E),P=n(456),k=r(P);t["default"]={AbstractImageBuilder:a["default"],BinaryDataProberImageBuilder:s["default"],CompositeImageBuilder:u["default"],DataProberImageBuilder:f["default"],DepthCompositeImageBuilder:d["default"],DepthImageBuilder:g["default"],FloatDataImageBuilder:v["default"],MagicLensImageBuilder:y["default"],MultiColorBySortedCompositeImageBuilder:w["default"],PixelOperatorImageBuilder:C["default"],QueryDataModelImageBuilder:T["default"],SortedCompositeImageBuilder:k["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r){function o(e){var t=p[e];return t=t>i?s>t?t:s:i,u+f-Math.floor((t-i)*m)}var a,i=Number.MAX_VALUE,s=Number.MIN_VALUE,l=t.x,u=t.y,c=t.width,f=t.height,p=n.data,d=p.length,h=new Uint16Array(d);for(a=d;a--;){var g=p[a];i=Math.min(i,g),s=Math.max(s,g),h[a]=l+Math.floor(c*(a/(d-1)))}r&&(i=r[0],s=r[1]);var m=f/(s-i);e.beginPath(),e.lineWidth=1,e.strokeStyle=n.color,e.moveTo(h[0],o(0));for(var v=1;d>v;v++)isNaN(p[v])?d>v+1&&!isNaN(p[v+1])&&e.moveTo(h[v+1],o(v+1)):e.lineTo(h[v],o(v));e.stroke()}function i(e,t,n,r){if(!(0>n||n>1)){var o=t.y,a=o+t.height,i=t.x+Math.floor(n*t.width);e.beginPath(),e.lineWidth=1,e.strokeStyle=r,e.moveTo(i,o),e.lineTo(i,a),e.stroke()}}function s(e,t,n,r,o){var a=arguments.length<=5||void 0===arguments[5]?"#000000":arguments[5];e.fillStyle=a,e.font="20px serif",e.textBaseline="top",e.fillText(o,t.x+n,t.y+r)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(16),c=r(u),f="painter-ready",p=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?"#0000FF":arguments[1],r=arguments.length<=2||void 0===arguments[2]?["#e1002a","#417dc0","#1d9a57","#e9bc2f","#9b3880"]:arguments[2];o(this,e),this.data=null,this.colors=r,this.markerColor=n,this.markerLocation=-1,this.showMarker=!0,this.title=t}return l(e,[{key:"updateData",value:function(e){var t=this,n=0;this.data=e,e.fields.forEach(function(e){e.color||(e.color=t.colors[n++%t.colors.length])}),this.emit(f,this)}},{key:"setTitle",value:function(e){this.title=e,this.emit(f,this)}},{key:"setMarkerLocation",value:function(e){this.markerLocation=e,this.emit(f,this)}},{key:"enableMarker",value:function(e){this.showMarker!==e&&(this.showMarker=e,this.emit(f,this))}},{key:"isReady",value:function(){return null!==this.data}},{key:"paint",value:function(e,t){var n="?";this.data&&(e.clearRect(t.x-1,t.y-1,t.width+2,t.height+2),this.data.fields.forEach(function(n){a(e,t,n,n.range)}),this.showMarker&&i(e,t,this.markerLocation,this.markerColor),this.title&&(this.data.xRange&&2===this.data.xRange.length&&!isNaN(this.markerLocation)&&(n=(this.data.xRange[1]-this.data.xRange[0])*this.markerLocation+this.data.xRange[0],n.toFixed&&(n=n.toFixed(5))),s(e,t,10,10,this.title.replace(/{x}/g,""+n))))}},{key:"onPainterReady",value:function(e){return this.on(f,e)}},{key:"getControlWidgets",value:function(){return[]}}]),e}();t["default"]=p,c["default"].mixInto(p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(460),a=r(o);t["default"]={LineChartPainter:a["default"]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(459),a=r(o),i=n(461),s=r(i);t["default"]={Image:a["default"],Painter:s["default"]}},function(e,t,n){(function(e){"use strict";function t(e,t,n){e[t]||r(e,t,{writable:!0,configurable:!0,value:n})}var r=n(636)["default"];if(n(634),n(635),n(464),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0,t(String.prototype,"padLeft","".padStart),t(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&t(Array,e,Function.call.bind([][e]))})}).call(t,function(){return this}())},function(e,t,n){n(473),e.exports=n(48).RegExp.escape},function(e,t,n){var r=n(13),o=n(149),a=n(15)("species");e.exports=function(e,t){var n;return o(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&(n=n[a],null===n&&(n=void 0))),new(void 0===n?Array:n)(t)}},function(e,t,n){var r=n(76),o=n(112),a=n(94);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,s=n(e),l=a.f,u=0;s.length>u;)l.call(e,i=s[u++])&&t.push(i);return t}},function(e,t,n){var r=n(76),o=n(29);e.exports=function(e,t){for(var n,a=o(e),i=r(a),s=i.length,l=0;s>l;)if(a[n=i[l++]]===t)return n}},function(e,t,n){var r,o,a,i=n(12),s=n(161).set,l=i.MutationObserver||i.WebKitMutationObserver,u=i.process,c=i.Promise,f="process"==n(39)(u),p=function(){var e,t,n;for(f&&(e=u.domain)&&(u.domain=null,e.exit());r;)t=r.domain,n=r.fn,t&&t.enter(),n(),t&&t.exit(),r=r.next;o=void 0,e&&e.enter()};if(f)a=function(){u.nextTick(p)};else if(l){var d=1,h=document.createTextNode("");new l(p).observe(h,{characterData:!0}),a=function(){h.data=d=-d}}else a=c&&c.resolve?function(){c.resolve().then(p)}:function(){s.call(i,p)};e.exports=function(e){var t={fn:e,next:void 0,domain:f&&u.domain};o&&(o.next=t),r||(r=t,a()),o=t}},function(e,t,n){"use strict";var r=n(470),o=n(110),a=n(47);e.exports=function(){for(var e=a(this),t=arguments.length,n=Array(t),i=0,s=r._,l=!1;t>i;)(n[i]=arguments[i++])===s&&(l=!0);return function(){var r,a=this,i=arguments.length,u=0,c=0;if(!l&&!i)return o(e,n,a);if(r=n.slice(),l)for(;t>u;u++)r[u]===s&&(r[u]=arguments[c++]);for(;i>c;)r.push(arguments[c++]);return o(e,r,a)}}},function(e,t,n){e.exports=n(12)},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){var r=n(75),o=n(15)("iterator"),a=n(63);e.exports=n(48).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||a.hasOwnProperty(r(t))}},function(e,t,n){var r=n(2),o=n(471)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return o(e)}})},function(e,t,n){var r=n(2);r(r.P,"Array",{copyWithin:n(237)}),n(74)("copyWithin")},function(e,t,n){"use strict";var r=n(2),o=n(38)(4);r(r.P+r.F*!n(35)([].every,!0),"Array",{every:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(2);r(r.P,"Array",{fill:n(141)}),n(74)("fill")},function(e,t,n){"use strict";var r=n(2),o=n(38)(2);r(r.P+r.F*!n(35)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(2),o=n(38)(6),a="findIndex",i=!0;a in[]&&Array(1)[a](function(){i=!1}),r(r.P+r.F*i,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(74)(a)},function(e,t,n){"use strict";var r=n(2),o=n(38)(5),a="find",i=!0;a in[]&&Array(1)[a](function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(74)(a)},function(e,t,n){"use strict";var r=n(2),o=n(38)(0),a=n(35)([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(49),o=n(2),a=n(31),i=n(245),s=n(148),l=n(21),u=n(163);o(o.S+o.F*!n(111)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,c,f=a(e),p="function"==typeof this?this:Array,d=arguments.length,h=d>1?arguments[1]:void 0,g=void 0!==h,m=0,v=u(f);if(g&&(h=r(h,d>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(t=l(f.length),n=new p(t);t>m;m++)n[m]=g?h(f[m],m):f[m];else for(c=v.call(f),n=new p;!(o=c.next()).done;m++)n[m]=g?i(c,h,[o.value,m],!0):o.value;return n.length=m,n}})},function(e,t,n){"use strict";var r=n(2),o=n(107)(!1);r(r.P+r.F*!n(35)([].indexOf),"Array",{indexOf:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(2);r(r.S,"Array",{isArray:n(149)})},function(e,t,n){"use strict";var r=n(2),o=n(29),a=[].join;r(r.P+r.F*(n(92)!=Object||!n(35)(a)),"Array",{join:function(e){return a.call(o(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(2),o=n(29),a=n(57),i=n(21);r(r.P+r.F*!n(35)([].lastIndexOf),"Array",{lastIndexOf:function(e){var t=o(this),n=i(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,a(arguments[1]))),0>r&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r;return-1}})},function(e,t,n){"use strict";var r=n(2),o=n(38)(1);r(r.P+r.F*!n(35)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(2);r(r.S+r.F*n(9)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)n[e]=arguments[e++];return n.length=t,n}})},function(e,t,n){"use strict";var r=n(2),o=n(239);r(r.P+r.F*!n(35)([].reduceRight,!0),"Array",{reduceRight:function(e){return o(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(2),o=n(239);r(r.P+r.F*!n(35)([].reduce,!0),"Array",{reduce:function(e){return o(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(2),o=n(146),a=n(39),i=n(66),s=n(21),l=[].slice;r(r.P+r.F*n(9)(function(){o&&l.call(o)}),"Array",{slice:function(e,t){var n=s(this.length),r=a(this);if(t=void 0===t?n:t,"Array"==r)return l.call(this,e,t);for(var o=i(e,n),u=i(t,n),c=s(u-o),f=Array(c),p=0;c>p;p++)f[p]="String"==r?this.charAt(o+p):this[o+p];return f}})},function(e,t,n){"use strict";var r=n(2),o=n(38)(3);r(r.P+r.F*!n(35)([].some,!0),"Array",{some:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(2),o=n(47),a=n(31),i=n(9),s=[].sort,l=[1,2,3];r(r.P+r.F*(i(function(){l.sort(void 0)})||!i(function(){l.sort(null)})||!n(35)(s)),"Array",{sort:function(e){return void 0===e?s.call(a(this)):s.call(a(this),o(e))}})},function(e,t,n){n(78)("Array")},function(e,t,n){var r=n(2);r(r.S,"Date",{now:function(){return+new Date}})},function(e,t,n){"use strict";var r=n(2),o=n(9),a=function(e){return e>9?e:"0"+e};r(r.P+r.F*(o(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!o(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=0>t?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}})},function(e,t,n){"use strict";var r=n(2),o=n(31),a=n(67);r(r.P+r.F*n(9)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=o(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=Date.prototype,o="Invalid Date",a="toString",i=r[a];new Date(NaN)+""!=o&&n(27)(r,a,function(){var e=+this;return e===e?i.call(this):o})},function(e,t,n){var r=n(2);r(r.P,"Function",{bind:n(240)})},function(e,t,n){"use strict";var r=n(13),o=n(42),a=n(15)("hasInstance"),i=Function.prototype;a in i||n(17).f(i,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(17).f,o=n(56),a=n(22),i=Function.prototype,s=/^\s*function ([^ (]*)/,l="name";l in i||n(18)&&r(i,l,{configurable:!0,get:function(){var e=(""+this).match(s),t=e?e[1]:"";return a(this,l)||r(this,l,o(5,t)),t}})},function(e,t,n){var r=n(2),o=n(248),a=Math.sqrt,i=Math.acosh;r(r.S+r.F*!(i&&710==Math.floor(i(Number.MAX_VALUE))),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+a(e-1)*a(e+1))}})},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?0>e?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var o=n(2);o(o.S,"Math",{asinh:r})},function(e,t,n){var r=n(2);r(r.S,"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(2),o=n(154);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(2);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(2),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(2);r(r.S,"Math",{expm1:n(153)})},function(e,t,n){var r=n(2),o=n(154),a=Math.pow,i=a(2,-52),s=a(2,-23),l=a(2,127)*(2-s),u=a(2,-126),c=function(e){return e+1/i-1/i};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),a=o(e);return u>r?a*c(r/u/s)*u*s:(t=(1+s/i)*r,n=t-(t-r),n>l||n!=n?a*(1/0):a*n)}})},function(e,t,n){var r=n(2),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,a=0,i=0,s=arguments.length,l=0;s>i;)n=o(arguments[i++]),n>l?(r=l/n,a=a*r*r+1,l=n):n>0?(r=n/l,a+=r*r):a+=n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(e,t,n){var r=n(2),o=Math.imul;r(r.S+r.F*n(9)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,a=n&r,i=n&o;return 0|a*i+((n&r>>>16)*i+a*(n&o>>>16)<<16>>>0)}})},function(e,t,n){var r=n(2);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(2);r(r.S,"Math",{log1p:n(248)})},function(e,t,n){var r=n(2);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(2);r(r.S,"Math",{sign:n(154)})},function(e,t,n){var r=n(2),o=n(153),a=Math.exp;r(r.S+r.F*n(9)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(a(e-1)-a(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(2),o=n(153),a=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},function(e,t,n){var r=n(2);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){"use strict";var r=n(12),o=n(22),a=n(39),i=n(147),s=n(67),l=n(9),u=n(65).f,c=n(41).f,f=n(17).f,p=n(80).trim,d="Number",h=r[d],g=h,m=h.prototype,v=a(n(64)(m))==d,_="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=_?t.trim():p(t,3);var n,r,o,a=t.charCodeAt(0);if(43===a||45===a){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var i,l=t.slice(2),u=0,c=l.length;c>u;u++)if(i=l.charCodeAt(u),48>i||i>o)return NaN;return parseInt(l,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(v?l(function(){m.valueOf.call(n)}):a(n)!=d)?i(new g(y(t)),n,h):y(t)};for(var b,w=n(18)?u(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)o(g,b=w[x])&&!o(h,b)&&f(h,b,c(g,b));h.prototype=m,m.constructor=h,n(27)(r,d,h)}},function(e,t,n){var r=n(2);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(2),o=n(12).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(2);r(r.S,"Number",{isInteger:n(150)})},function(e,t,n){var r=n(2);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(2),o=n(150),a=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&a(e)<=9007199254740991}})},function(e,t,n){var r=n(2);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(2);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(2),o=n(255);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(2),o=n(256);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){"use strict";var r=n(2),o=(n(62),n(57)),a=n(236),i=n(159),s=1..toFixed,l=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",f="0",p=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*u[n],u[n]=r%1e7,r=l(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=u[t],u[t]=l(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==u[e]){var n=String(u[e]);t=""===t?n:t+i.call(f,7-n.length)+n}return t},g=function(e,t,n){return 0===t?n:t%2===1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!n(9)(function(){s.call({})})),"Number",{toFixed:function(e){var t,n,r,s,l=a(this,c),u=o(e),v="",_=f;if(0>u||u>20)throw RangeError(c);if(l!=l)return"NaN";if(-1e21>=l||l>=1e21)return String(l);if(0>l&&(v="-",l=-l),l>1e-21)if(t=m(l*g(2,69,1))-69,n=0>t?l*g(2,-t,1):l/g(2,t,1),n*=4503599627370496,t=52-t,t>0){for(p(0,n),r=u;r>=7;)p(1e7,0),r-=7;for(p(g(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),p(1,1),d(2),_=h()}else p(0,n),p(1<<-t,0),_=h()+i.call(f,u);return u>0?(s=_.length,_=v+(u>=s?"0."+i.call(f,u-s)+_:_.slice(0,s-u)+"."+_.slice(s-u))):_=v+_,_}})},function(e,t,n){"use strict";var r=n(2),o=n(9),a=n(236),i=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==i.call(1,void 0)})||!o(function(){i.call({})})),"Number",{toPrecision:function(e){var t=a(this,"Number#toPrecision: incorrect invocation!");return void 0===e?i.call(t):i.call(t,e)}})},function(e,t,n){var r=n(2);r(r.S+r.F,"Object",{assign:n(249)})},function(e,t,n){var r=n(2);r(r.S,"Object",{create:n(64)})},function(e,t,n){var r=n(2);r(r.S+r.F*!n(18),"Object",{defineProperties:n(250)})},function(e,t,n){var r=n(2);r(r.S+r.F*!n(18),"Object",{defineProperty:n(17).f})},function(e,t,n){var r=n(13),o=n(55).onFreeze;n(43)("freeze",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(29),o=n(41).f;n(43)("getOwnPropertyDescriptor",function(){return function(e,t){return o(r(e),t)}})},function(e,t,n){n(43)("getOwnPropertyNames",function(){return n(251).f})},function(e,t,n){var r=n(31),o=n(42);n(43)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(13);n(43)("isExtensible",function(e){return function(t){return r(t)?e?e(t):!0:!1}})},function(e,t,n){var r=n(13);n(43)("isFrozen",function(e){return function(t){return r(t)?e?e(t):!1:!0}})},function(e,t,n){var r=n(13);n(43)("isSealed",function(e){return function(t){return r(t)?e?e(t):!1:!0}})},function(e,t,n){var r=n(2);r(r.S,"Object",{is:n(257)})},function(e,t,n){var r=n(31),o=n(76);n(43)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(13),o=n(55).onFreeze;n(43)("preventExtensions",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(13),o=n(55).onFreeze;n(43)("seal",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(2);r(r.S,"Object",{setPrototypeOf:n(113).set})},function(e,t,n){"use strict";var r=n(75),o={};o[n(15)("toStringTag")]="z",o+""!="[object z]"&&n(27)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(2),o=n(255);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){var r=n(2),o=n(256);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(e,t,n){"use strict";var r,o,a,i=n(93),s=n(12),l=n(49),u=n(75),c=n(2),f=n(13),p=(n(7),n(47)),d=n(62),h=n(91),g=(n(113).set,n(156)),m=n(161).set,v=n(468),_="Promise",y=s.TypeError,b=s.process,w=s[_],x="process"==u(b),C=function(){},E=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n(15)("species")]=function(e){e(C,C)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t}catch(r){}}(),T=function(e,t){return e===t||e===w&&t===a},P=function(e){var t;return f(e)&&"function"==typeof(t=e.then)?t:!1},k=function(e){return T(w,e)?new M(e):new o(e)},M=o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw y("Bad Promise constructor");t=e,n=r}),this.resolve=p(t),this.reject=p(n)},S=function(e){try{e()}catch(t){return{error:t}}},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;v(function(){for(var r=e._v,o=1==e._s,a=0,i=function(t){var n,a,i=o?t.ok:t.fail,s=t.resolve,l=t.reject;try{i?(o||(2==e._h&&I(e),e._h=1),n=i===!0?r:i(r),n===t.promise?l(y("Promise-chain cycle")):(a=P(n))?a.call(n,s,l):s(n)):l(r)}catch(u){l(u)}};n.length>a;)i(n[a++]);e._c=[],e._n=!1,t&&!e._h&&D(e)})}},D=function(e){m.call(s,function(){var t,n,r,o=e._v;if(A(e)&&(t=S(function(){x?b.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=x||A(e)?2:1),e._a=void 0,t)throw t.error})},A=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if(t=n[r++],t.fail||!A(t.promise))return!1;return!0},I=function(e){m.call(s,function(){var t;x?b.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},O=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw y("Promise can't be resolved itself");(t=P(e))?v(function(){var r={_w:n,_d:!1};try{t.call(e,l(F,r,1),l(O,r,1))}catch(o){O.call(r,o)}}):(n._v=e,n._s=1,R(n,!1))}catch(r){O.call({_w:n,_d:!1},r)}}};E||(w=function(e){d(this,w,_,"_h"),p(e),r.call(this);try{e(l(F,this,1),l(O,this,1))}catch(t){O.call(this,t)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(77)(w.prototype,{then:function(e,t){var n=k(g(this,w));return n.ok="function"==typeof e?e:!0,n.fail="function"==typeof t&&t,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},"catch":function(e){return this.then(void 0,e)}}),M=function(){var e=new r;this.promise=e,this.resolve=l(F,e,1),this.reject=l(O,e,1)}),c(c.G+c.W+c.F*!E,{Promise:w}),n(79)(w,_),n(78)(_),a=n(48)[_],c(c.S+c.F*!E,_,{reject:function(e){var t=k(this),n=t.reject;return n(e),t.promise}}),c(c.S+c.F*(i||!E),_,{resolve:function(e){if(e instanceof w&&T(e.constructor,this))return e;var t=k(this),n=t.resolve;return n(e),t.promise}}),c(c.S+c.F*!(E&&n(111)(function(e){w.all(e)["catch"](C)})),_,{all:function(e){var t=this,n=k(t),r=n.resolve,o=n.reject,a=S(function(){var n=[],a=0,i=1;h(e,!1,function(e){var s=a++,l=!1;n.push(void 0),i++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--i||r(n))},o)}),--i||r(n)});return a&&o(a.error),n.promise},race:function(e){var t=this,n=k(t),r=n.reject,o=S(function(){h(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(e,t,n){var r=n(2),o=Function.apply;r(r.S,"Reflect",{apply:function(e,t,n){return o.call(e,t,n)}})},function(e,t,n){var r=n(2),o=n(64),a=n(47),i=n(7),s=n(13),l=n(240);r(r.S+r.F*n(9)(function(){function e(){}return!(Reflect.construct(function(){},[],e)instanceof e)}),"Reflect",{construct:function(e,t){a(e);var n=arguments.length<3?e:a(arguments[2]);if(e==n){if(void 0!=t)switch(i(t).length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}var u=n.prototype,c=o(s(u)?u:Object.prototype),f=Function.apply.call(e,c,t);return s(f)?f:c}})},function(e,t,n){var r=n(17),o=n(2),a=n(7),i=n(67);o(o.S+o.F*n(9)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){a(e),t=i(t,!0),a(n);try{return r.f(e,t,n),!0}catch(o){return!1}}})},function(e,t,n){var r=n(2),o=n(41).f,a=n(7);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=o(a(e),t);return n&&!n.configurable?!1:delete e[t]}})},function(e,t,n){"use strict";var r=n(2),o=n(7),a=function(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(246)(a,"Object",function(){var e,t=this,n=t._k;do if(t._i>=n.length)return{value:void 0,done:!0};while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new a(e)}})},function(e,t,n){var r=n(41),o=n(2),a=n(7);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(a(e),t)}})},function(e,t,n){var r=n(2),o=n(42),a=n(7);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,n){function r(e,t){var n,s,c=arguments.length<3?e:arguments[2];return u(e)===c?e[t]:(n=o.f(e,t))?i(n,"value")?n.value:void 0!==n.get?n.get.call(c):void 0:l(s=a(e))?r(s,t,c):void 0}var o=n(41),a=n(42),i=n(22),s=n(2),l=n(13),u=n(7); +s(s.S,"Reflect",{get:r})},function(e,t,n){var r=n(2);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(2),o=n(7),a=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),a?a(e):!0}})},function(e,t,n){var r=n(2);r(r.S,"Reflect",{ownKeys:n(254)})},function(e,t,n){var r=n(2),o=n(7),a=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return a&&a(e),!0}catch(t){return!1}}})},function(e,t,n){var r=n(2),o=n(113);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(n){return!1}}})},function(e,t,n){function r(e,t,n){var l,p,d=arguments.length<4?e:arguments[3],h=a.f(c(e),t);if(!h){if(f(p=i(e)))return r(p,t,n,d);h=u(0)}return s(h,"value")?h.writable!==!1&&f(d)?(l=a.f(d,t)||u(0),l.value=n,o.f(d,t,l),!0):!1:void 0===h.set?!1:(h.set.call(d,n),!0)}var o=n(17),a=n(41),i=n(42),s=n(22),l=n(2),u=n(56),c=n(7),f=n(13);l(l.S,"Reflect",{set:r})},function(e,t,n){var r=n(12),o=n(147),a=n(17).f,i=n(65).f,s=n(151),l=n(145),u=r.RegExp,c=u,f=u.prototype,p=/a/g,d=/a/g,h=new u(p)!==p;if(n(18)&&(!h||n(9)(function(){return d[n(15)("match")]=!1,u(p)!=p||u(d)==d||"/a/i"!=u(p,"i")}))){u=function(e,t){var n=this instanceof u,r=s(e),a=void 0===t;return!n&&r&&e.constructor===u&&a?e:o(h?new c(r&&!a?e.source:e,t):c((r=e instanceof u)?e.source:e,r&&a?l.call(e):t),n?this:f,u)};for(var g=(function(e){e in u||a(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}),m=i(c),v=0;m.length>v;)g(m[v++]);f.constructor=u,u.prototype=f,n(27)(r,"RegExp",u)}n(78)("RegExp")},function(e,t,n){n(109)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(109)("replace",2,function(e,t,n){return[function(r,o){"use strict";var a=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},n]})},function(e,t,n){n(109)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(109)("split",2,function(e,t,r){"use strict";var o=n(151),a=r,i=[].push,s="split",l="length",u="lastIndex";if("c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[l]||2!="ab"[s](/(?:ab)*/)[l]||4!="."[s](/(.?)(.?)/)[l]||"."[s](/()()/)[l]>1||""[s](/.?/)[l]){var c=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!o(e))return a.call(n,e,t);var r,s,f,p,d,h=[],g=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,v=void 0===t?4294967295:t>>>0,_=new RegExp(e.source,g+"g");for(c||(r=new RegExp("^"+_.source+"$(?!\\s)",g));(s=_.exec(n))&&(f=s.index+s[0][l],!(f>m&&(h.push(n.slice(m,s.index)),!c&&s[l]>1&&s[0].replace(r,function(){for(d=1;d<arguments[l]-2;d++)void 0===arguments[d]&&(s[d]=void 0)}),s[l]>1&&s.index<n[l]&&i.apply(h,s.slice(1)),p=s[0][l],m=f,h[l]>=v)));)_[u]===s.index&&_[u]++;return m===n[l]?!p&&_.test("")||h.push(""):h.push(n.slice(m)),h[l]>v?h.slice(0,v):h}}else"0"[s](void 0,0)[l]&&(r=function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)});return[function(n,o){var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,o):r.call(String(a),n,o)},r]})},function(e,t,n){"use strict";n(260);var r=n(7),o=n(145),a=n(18),i="toString",s=/./[i],l=function(e){n(27)(RegExp.prototype,i,e,!0)};n(9)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?l(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?o.call(e):void 0)}):s.name!=i&&l(function(){return s.call(this)})},function(e,t,n){"use strict";n(28)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){"use strict";n(28)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(28)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(28)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(157)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(2),o=n(21),a=n(158),i="endsWith",s=""[i];r(r.P+r.F*n(144)(i),"String",{endsWith:function(e){var t=a(this,e,i),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),l=void 0===n?r:Math.min(o(n),r),u=String(e);return s?s.call(t,u,l):t.slice(l-u.length,l)===u}})},function(e,t,n){"use strict";n(28)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(28)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(28)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){var r=n(2),o=n(66),a=String.fromCharCode,i=String.fromCodePoint;r(r.S+r.F*(!!i&&1!=i.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(65536>t?a(t):a(((t-=65536)>>10)+55296,t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(2),o=n(158),a="includes";r(r.P+r.F*n(144)(a),"String",{includes:function(e){return!!~o(this,e,a).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n(28)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";var r=n(157)(!0);n(152)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";n(28)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){var r=n(2),o=n(29),a=n(21);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=a(t.length),r=arguments.length,i=[],s=0;n>s;)i.push(String(t[s++])),r>s&&i.push(String(arguments[s]));return i.join("")}})},function(e,t,n){var r=n(2);r(r.P,"String",{repeat:n(159)})},function(e,t,n){"use strict";n(28)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";var r=n(2),o=n(21),a=n(158),i="startsWith",s=""[i];r(r.P+r.F*n(144)(i),"String",{startsWith:function(e){var t=a(this,e,i),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(28)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(28)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(28)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){"use strict";n(80)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r=n(12),o=n(48),a=n(22),i=n(18),s=n(2),l=n(27),u=n(55).KEY,c=n(9),f=n(114),p=n(79),d=n(68),h=n(15),g=n(467),m=n(466),v=n(149),_=n(7),y=n(29),b=n(67),w=n(56),x=n(64),C=n(251),E=n(41),T=n(17),P=E.f,k=T.f,M=C.f,S=r.Symbol,R=r.JSON,D=R&&R.stringify,A=!1,I=h("_hidden"),O={}.propertyIsEnumerable,F=f("symbol-registry"),N=f("symbols"),L=Object.prototype,B="function"==typeof S,j=i&&c(function(){return 7!=x(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(L,t);r&&delete L[t],k(e,t,n),r&&e!==L&&k(L,t,r)}:k,W=function(e){var t=N[e]=x(S.prototype);return t._k=e,i&&A&&j(L,e,{configurable:!0,set:function(t){a(this,I)&&a(this[I],e)&&(this[I][e]=!1),j(this,e,w(1,t))}}),t},U=function(e){return"symbol"==typeof e},V=function(e,t,n){return _(e),t=b(t,!0),_(n),a(N,t)?(n.enumerable?(a(e,I)&&e[I][t]&&(e[I][t]=!1),n=x(n,{enumerable:w(0,!1)})):(a(e,I)||k(e,I,w(1,{})),e[I][t]=!0),j(e,t,n)):k(e,t,n)},z=function(e,t){_(e);for(var n,r=m(t=y(t)),o=0,a=r.length;a>o;)V(e,n=r[o++],t[n]);return e},q=function(e,t){return void 0===t?x(e):z(x(e),t)},H=function(e){var t=O.call(this,e=b(e,!0));return t||!a(this,e)||!a(N,e)||a(this,I)&&this[I][e]?t:!0},X=function(e,t){var n=P(e=y(e),t=b(t,!0));return!n||!a(N,t)||a(e,I)&&e[I][t]||(n.enumerable=!0),n},G=function(e){for(var t,n=M(y(e)),r=[],o=0;n.length>o;)a(N,t=n[o++])||t==I||t==u||r.push(t);return r},Y=function(e){for(var t,n=M(y(e)),r=[],o=0;n.length>o;)a(N,t=n[o++])&&r.push(N[t]);return r},Q=function(e){if(void 0!==e&&!U(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&v(t)||(t=function(e,t){return n&&(t=n.call(this,e,t)),U(t)?void 0:t}),r[1]=t,D.apply(R,r)}},K=c(function(){var e=S();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))});B||(S=function(){if(U(this))throw TypeError("Symbol is not a constructor");return W(d(arguments.length>0?arguments[0]:void 0))},l(S.prototype,"toString",function(){return this._k}),U=function(e){return e instanceof S},E.f=X,T.f=V,n(65).f=C.f=G,n(94).f=H,n(112).f=Y,i&&!n(93)&&l(L,"propertyIsEnumerable",H,!0)),s(s.G+s.W+s.F*!B,{Symbol:S});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),J=0;Z.length>J;){var $=Z[J++],ee=o.Symbol,te=h($);$ in ee||k(ee,$,{value:B?te:W(te)})}A=!0,s(s.S+s.F*!B,"Symbol",{"for":function(e){return a(F,e+="")?F[e]:F[e]=S(e)},keyFor:function(e){return g(F,e)},useSetter:function(){A=!0},useSimple:function(){A=!1}}),s(s.S+s.F*!B,"Object",{create:q,defineProperty:V,defineProperties:z,getOwnPropertyDescriptor:X,getOwnPropertyNames:G,getOwnPropertySymbols:Y}),R&&s(s.S+s.F*(!B||K),"JSON",{stringify:Q}),p(S,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){"use strict";var r=n(2),o=n(115),a=n(162),i=n(7),s=n(66),l=n(21),u=n(13),c=(n(15)("typed_array"),n(12).ArrayBuffer),f=n(156),p=a.ArrayBuffer,d=a.DataView,h=o.ABV&&c.isView,g=p.prototype.slice,m=o.VIEW,v="ArrayBuffer";r(r.G+r.W+r.F*(c!==p),{ArrayBuffer:p}),r(r.S+r.F*!o.CONSTR,v,{isView:function(e){return h&&h(e)||u(e)&&m in e}}),r(r.P+r.U+r.F*n(9)(function(){return!new p(2).slice(1,void 0).byteLength}),v,{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(i(this),e);for(var n=i(this).byteLength,r=s(e,n),o=s(void 0===t?n:t,n),a=new(f(this,p))(l(o-r)),u=new d(this),c=new d(a),h=0;o>r;)c.setUint8(h++,u.getUint8(r++));return a}}),n(78)(v)},function(e,t,n){var r=n(2);r(r.G+r.W+r.F*!n(115).ABV,{DataView:n(162).DataView})},function(e,t,n){n(51)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(51)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(51)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(51)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(51)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(51)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(51)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(51)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(51)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){"use strict";var r=n(243);n(108)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(2),o=n(107)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(74)("includes")},function(e,t,n){var r=n(2),o=n(39);r(r.S,"Error",{isError:function(e){return"Error"===o(e)}})},function(e,t,n){var r=n(2);r(r.P+r.R,"Map",{toJSON:n(242)("Map")})},function(e,t,n){var r=n(2);r(r.S,"Math",{iaddh:function(e,t,n,r){var o=e>>>0,a=t>>>0,i=n>>>0;return a+(r>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},function(e,t,n){var r=n(2);r(r.S,"Math",{imulh:function(e,t){var n=65535,r=+e,o=+t,a=r&n,i=o&n,s=r>>16,l=o>>16,u=(s*i>>>0)+(a*i>>>16);return s*l+(u>>16)+((a*l>>>0)+(u&n)>>16)}})},function(e,t,n){var r=n(2);r(r.S,"Math",{isubh:function(e,t,n,r){var o=e>>>0,a=t>>>0,i=n>>>0;return a-(r>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},function(e,t,n){var r=n(2);r(r.S,"Math",{umulh:function(e,t){var n=65535,r=+e,o=+t,a=r&n,i=o&n,s=r>>>16,l=o>>>16,u=(s*i>>>0)+(a*i>>>16);return s*l+(u>>>16)+((a*l>>>0)+(u&n)>>>16)}})},function(e,t,n){var r=n(2),o=n(253)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(2),o=n(254),a=n(29),i=n(56),s=n(41),l=n(17);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),u=s.f,c=o(r),f={},p=0;c.length>p;)n=u(r,t=c[p++]),t in f?l.f(f,t,i(0,n)):f[t]=n;return f}})},function(e,t,n){var r=n(2),o=n(253)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var r=n(50),o=n(7),a=r.key,i=r.set;r.exp({defineMetadata:function(e,t,n,r){i(e,t,o(n),a(r))}})},function(e,t,n){var r=n(50),o=n(7),a=r.key,i=r.map,s=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),r=i(o(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var l=s.get(t);return l["delete"](n),!!l.size||s["delete"](t)}})},function(e,t,n){var r=n(261),o=n(238),a=n(50),i=n(7),s=n(42),l=a.keys,u=a.key,c=function(e,t){var n=l(e,t),a=s(e);if(null===a)return n;var i=c(a,t);return i.length?n.length?o(new r(n.concat(i))):i:n};a.exp({getMetadataKeys:function(e){return c(i(e),arguments.length<2?void 0:u(arguments[1]))}})},function(e,t,n){var r=n(50),o=n(7),a=n(42),i=r.has,s=r.get,l=r.key,u=function(e,t,n){var r=i(e,t,n);if(r)return s(e,t,n);var o=a(t);return null!==o?u(e,o,n):void 0};r.exp({getMetadata:function(e,t){return u(e,o(t),arguments.length<3?void 0:l(arguments[2]))}})},function(e,t,n){var r=n(50),o=n(7),a=r.keys,i=r.key;r.exp({getOwnMetadataKeys:function(e){return a(o(e),arguments.length<2?void 0:i(arguments[1]))}})},function(e,t,n){var r=n(50),o=n(7),a=r.get,i=r.key;r.exp({getOwnMetadata:function(e,t){return a(e,o(t),arguments.length<3?void 0:i(arguments[2]))}})},function(e,t,n){var r=n(50),o=n(7),a=n(42),i=r.has,s=r.key,l=function(e,t,n){var r=i(e,t,n);if(r)return!0;var o=a(t);return null!==o?l(e,o,n):!1};r.exp({hasMetadata:function(e,t){return l(e,o(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(50),o=n(7),a=r.has,i=r.key;r.exp({hasOwnMetadata:function(e,t){return a(e,o(t),arguments.length<3?void 0:i(arguments[2]))}})},function(e,t,n){var r=n(50),o=n(7),a=n(47),i=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?o:a)(n),i(r))}}})},function(e,t,n){var r=n(2);r(r.P+r.R,"Set",{toJSON:n(242)("Set")})},function(e,t,n){"use strict";var r=n(2),o=n(157)(!0);r(r.P,"String",{at:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(2),o=n(258);r(r.P,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(2),o=n(258);r(r.P,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";n(80)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){"use strict";n(80)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){var r=n(2);r(r.S,"System",{global:n(12)})},function(e,t,n){for(var r=n(164),o=n(27),a=n(12),i=n(34),s=n(63),l=n(15),u=l("iterator"),c=l("toStringTag"),f=s.Array,p=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],d=0;5>d;d++){var h,g=p[d],m=a[g],v=m&&m.prototype;if(v){v[u]||i(v,u,f),v[c]||i(v,c,g),s[g]=f;for(h in r)v[h]||o(v,h,r[h],!0)}}},function(e,t,n){var r=n(2),o=n(161);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){var r=n(12),o=n(2),a=n(110),i=n(469),s=r.navigator,l=!!s&&/MSIE .\./.test(s.userAgent),u=function(e){return l?function(t,n){return e(a(i,[].slice.call(arguments,2),"function"==typeof t?t:Function(t)),n)}:e};o(o.G+o.B+o.F*l,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){n(592),n(531),n(533),n(532),n(535),n(537),n(542),n(536),n(534),n(544),n(543),n(539),n(540),n(538),n(530),n(541),n(545),n(546),n(498),n(500),n(499),n(548),n(547),n(518),n(528),n(529),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(579),n(584),n(591),n(582),n(574),n(575),n(580),n(585),n(587),n(570),n(571),n(572),n(573),n(576),n(577),n(578),n(581),n(583),n(586),n(588),n(589),n(590),n(494),n(497),n(495),n(496),n(483),n(481),n(487),n(484),n(490),n(492),n(480),n(486),n(477),n(491),n(475),n(489),n(488),n(482),n(485),n(474),n(476),n(479),n(478),n(493),n(164),n(564),n(569),n(260),n(565),n(566),n(567),n(568),n(549),n(259),n(261),n(262),n(604),n(593),n(594),n(599),n(602),n(603),n(597),n(600),n(598),n(601),n(595),n(596),n(550),n(551),n(552),n(553),n(554),n(557),n(555),n(556),n(558),n(559),n(560),n(561),n(563),n(562),n(605),n(625),n(627),n(626),n(628),n(629),n(613),n(614),n(612),n(607),n(624),n(630),n(606),n(608),n(610),n(609),n(611),n(615),n(616),n(618),n(617),n(620),n(619),n(621),n(622),n(623),n(633),n(632),n(631),e.exports=n(48)},function(e,t,n){(function(t,n){!function(t){"use strict";function r(e,t,n,r){var o=Object.create((t||a).prototype),i=new h(r||[]);return o._invoke=f(e,n,i),o}function o(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function a(){}function i(){}function s(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){this.arg=e}function c(e){function t(t,n){var r=e[t](n),o=r.value;return o instanceof u?Promise.resolve(o.arg).then(a,i):Promise.resolve(o).then(function(e){return r.value=e,r})}function r(e,n){function r(){return t(e,n)}return o=o?o.then(r,r):new Promise(function(e){e(r())})}"object"==typeof n&&n.domain&&(t=n.domain.bind(t));var o,a=t.bind(e,"next"),i=t.bind(e,"throw");t.bind(e,"return");this._invoke=r}function f(e,t,n){var r=x;return function(a,i){if(r===E)throw new Error("Generator is already running");if(r===T){if("throw"===a)throw i;return m()}for(;;){var s=n.delegate;if(s){if("return"===a||"throw"===a&&s.iterator[a]===v){n.delegate=null;var l=s.iterator["return"];if(l){var u=o(l,s.iterator,i);if("throw"===u.type){a="throw",i=u.arg;continue}}if("return"===a)continue}var u=o(s.iterator[a],s.iterator,i);if("throw"===u.type){n.delegate=null,a="throw",i=u.arg;continue}a="next",i=v;var c=u.arg;if(!c.done)return r=C,c;n[s.resultName]=c.value,n.next=s.nextLoc,n.delegate=null}if("next"===a)n._sent=i,r===C?n.sent=i:n.sent=v;else if("throw"===a){if(r===x)throw r=T,i;n.dispatchException(i)&&(a="next",i=v)}else"return"===a&&n.abrupt("return",i);r=E;var u=o(e,t,n);if("normal"===u.type){r=n.done?T:C;var c={value:u.arg,done:n.done};if(u.arg!==P)return c;n.delegate&&"next"===a&&(i=v)}else"throw"===u.type&&(r=T,a="throw",i=u.arg)}}}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function d(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function g(e){if(e){var t=e[y];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function o(){for(;++n<e.length;)if(_.call(e,n))return o.value=e[n],o.done=!1,o;return o.value=v,o.done=!0,o};return r.next=r}}return{next:m}}function m(){return{value:v,done:!0}}var v,_=Object.prototype.hasOwnProperty,y="function"==typeof Symbol&&Symbol.iterator||"@@iterator",b="object"==typeof e,w=t.regeneratorRuntime;if(w)return void(b&&(e.exports=w));w=t.regeneratorRuntime=b?e.exports:{},w.wrap=r;var x="suspendedStart",C="suspendedYield",E="executing",T="completed",P={},k=s.prototype=a.prototype;i.prototype=k.constructor=s,s.constructor=i,i.displayName="GeneratorFunction",w.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return t?t===i||"GeneratorFunction"===(t.displayName||t.name):!1},w.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):e.__proto__=s,e.prototype=Object.create(k),e},w.awrap=function(e){return new u(e)},l(c.prototype),w.async=function(e,t,n,o){var a=new c(r(e,t,n,o));return w.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},l(k),k[y]=function(){return this},k.toString=function(){return"[object Generator]"},w.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},w.values=g,h.prototype={constructor:h,reset:function(e){if(this.prev=0,this.next=0,this.sent=v,this.done=!1,this.delegate=null,this.tryEntries.forEach(d),!e)for(var t in this)"t"===t.charAt(0)&&_.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=v)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return a.type="throw",a.arg=e,n.next=t,!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=_.call(o,"catchLoc"),s=_.call(o,"finallyLoc");if(i&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?this.next=o.finallyLoc:this.complete(a),P},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),d(n),P}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:g(e),resultName:t,nextLoc:n},P}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(t,function(){return this}(),n(97))},function(e,t,n){e.exports={"default":n(637),__esModule:!0}},function(e,t,n){var r=n(638);e.exports=function(e,t,n){return r.setDesc(e,t,n)}},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(81),n(83),n(82),n(19))}(this,function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,o=t.algo,a=[],i=[],s=[],l=[],u=[],c=[],f=[],p=[],d=[],h=[];!function(){for(var e=[],t=0;256>t;t++)128>t?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;256>t;t++){var o=r^r<<1^r<<2^r<<3^r<<4;o=o>>>8^255&o^99,a[n]=o,i[o]=n;var g=e[n],m=e[g],v=e[m],_=257*e[o]^16843008*o;s[n]=_<<24|_>>>8,l[n]=_<<16|_>>>16,u[n]=_<<8|_>>>24,c[n]=_;var _=16843009*v^65537*m^257*g^16843008*n;f[o]=_<<24|_>>>8,p[o]=_<<16|_>>>16,d[o]=_<<8|_>>>24,h[o]=_,n?(n=g^e[e[e[v^g]]],r^=e[e[r]]):n=r=1}}();var g=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=r.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),i=this._keySchedule=[],s=0;o>s;s++)if(n>s)i[s]=t[s];else{var l=i[s-1];s%n?n>6&&s%n==4&&(l=a[l>>>24]<<24|a[l>>>16&255]<<16|a[l>>>8&255]<<8|a[255&l]):(l=l<<8|l>>>24,l=a[l>>>24]<<24|a[l>>>16&255]<<16|a[l>>>8&255]<<8|a[255&l],l^=g[s/n|0]<<24),i[s]=i[s-n]^l}for(var u=this._invKeySchedule=[],c=0;o>c;c++){var s=o-c;if(c%4)var l=i[s];else var l=i[s-4];4>c||4>=s?u[c]=l:u[c]=f[a[l>>>24]]^p[a[l>>>16&255]]^d[a[l>>>8&255]]^h[a[255&l]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,l,u,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,f,p,d,h,i);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,a,i,s){for(var l=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],f=e[t+2]^n[2],p=e[t+3]^n[3],d=4,h=1;l>h;h++){var g=r[u>>>24]^o[c>>>16&255]^a[f>>>8&255]^i[255&p]^n[d++],m=r[c>>>24]^o[f>>>16&255]^a[p>>>8&255]^i[255&u]^n[d++],v=r[f>>>24]^o[p>>>16&255]^a[u>>>8&255]^i[255&c]^n[d++],_=r[p>>>24]^o[u>>>16&255]^a[c>>>8&255]^i[255&f]^n[d++];u=g,c=m,f=v,p=_}var g=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[255&p])^n[d++],m=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^n[d++],v=(s[f>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[d++],_=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&f])^n[d++];e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=_},keySize:8});t.AES=r._createHelper(m)}(),e.AES})},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){return function(){function t(e){return e<<8&4278255360|e>>>8&16711935}var n=e,r=n.lib,o=r.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;n>o;o+=2){var a=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return o.create(n,2*t)}};a.Utf16LE={stringify:function(e){for(var n=e.words,r=e.sigBytes,o=[],a=0;r>a;a+=2){var i=t(n[a>>>2]>>>16-a%4*8&65535);o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var n=e.length,r=[],a=0;n>a;a++)r[a>>>1]|=t(e.charCodeAt(a)<<16-a%2*16);return o.create(r,2*n)}}}(),e.enc.Utf16})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.CipherParams,a=n.enc,i=a.Hex,s=n.format;s.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return o.create({ciphertext:t})}}}(),e.format.Hex})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(116),n(643),n(640),n(81),n(83),n(166),n(263),n(659),n(264),n(661),n(660),n(658),n(165),n(654),n(82),n(19),n(644),n(646),n(645),n(648),n(647),n(649),n(650),n(651),n(653),n(652),n(641),n(639),n(662),n(657),n(656),n(655))}(this,function(e){return e})},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,o=r.init,a=r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;t>r;r++)n[r>>>2]|=e[r]<<24-r%4*8;o.call(this,n,t)}else o.apply(this,arguments)};a.prototype=r}}(),e.lib.WordArray})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.mode.CFB=function(){function t(e,t,n,r){var o=this._iv;if(o){var a=o.slice(0);this._iv=void 0}else var a=this._prevBlock;r.encryptBlock(a,0);for(var i=0;n>i;i++)e[t+i]^=a[i]}var n=e.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o,r),this._prevBlock=e.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,a=e.slice(n,n+o);t.call(this,e,n,o,r),this._prevBlock=a}}),n}(),e.mode.CFB})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){/** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com */ -return e.mode.CTRGladman=function(){function t(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0),n(i);var s=i.slice(0);r.encryptBlock(s,0);for(var l=0;o>l;l++)e[t+l]^=s[l]}});return r.Decryptor=o,r}(),e.mode.CTRGladman})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var i=a.slice(0);n.encryptBlock(i,0),a[r-1]=a[r-1]+1|0;for(var s=0;r>s;s++)e[t+s]^=i[s]}});return t.Decryptor=n,t}(),e.mode.CTR})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var i=0;r>i;i++)e[t+i]^=a[i]}});return t.Decryptor=n,t}(),e.mode.OFB})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,a=n+o-1;e.clamp(),e.words[a>>>2]|=o<<24-a%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(17))}(this,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(133),n(132))}(this,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,a=t.algo,i=a.SHA1,s=a.HMAC,l=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=o.create(),i=o.create([1]),l=a.words,u=i.words,c=n.keySize,f=n.iterations;l.length<c;){var p=r.update(t).finalize(i);r.reset();for(var d=p.words,h=d.length,g=p,m=1;f>m;m++){g=r.finalize(g),r.reset();for(var v=g.words,_=0;h>_;_++)d[_]^=v[_]}a.concat(p),u[0]++}return a.sigBytes=4*c,a}});t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),e.PBKDF2})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(60),n(62),n(61),n(17))}(this,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;8>n;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(var n=0;8>n;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,i=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);l[n]=i^u}e[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,e[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,e[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,e[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,e[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,e[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,e[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,e[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}var n=e,r=n.lib,o=r.StreamCipher,a=n.algo,i=[],s=[],l=[],u=a.RabbitLegacy=o.extend({_doReset:function(){var e=this._key.words,n=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;4>a;a++)t.call(this);for(var a=0;8>a;a++)o[a]^=r[a+4&7];if(n){var i=n.words,s=i[0],l=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f=u>>>16|4294901760&c,p=c<<16|65535&u;o[0]^=u,o[1]^=f,o[2]^=c,o[3]^=p,o[4]^=u,o[5]^=f,o[6]^=c,o[7]^=p;for(var a=0;4>a;a++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;4>o;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8),e[n+o]^=i[o]},blockSize:4,ivSize:2});n.RabbitLegacy=o._createHelper(u)}(),e.RabbitLegacy})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(60),n(62),n(61),n(17))}(this,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;8>n;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(var n=0;8>n;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,i=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);l[n]=i^u}e[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,e[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,e[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,e[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,e[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,e[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,e[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,e[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}var n=e,r=n.lib,o=r.StreamCipher,a=n.algo,i=[],s=[],l=[],u=a.Rabbit=o.extend({_doReset:function(){for(var e=this._key.words,n=this.cfg.iv,r=0;4>r;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;4>r;r++)t.call(this);for(var r=0;8>r;r++)a[r]^=o[r+4&7];if(n){var i=n.words,s=i[0],l=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f=u>>>16|4294901760&c,p=c<<16|65535&u;a[0]^=u,a[1]^=f,a[2]^=c,a[3]^=p,a[4]^=u,a[5]^=f,a[6]^=c,a[7]^=p;for(var r=0;4>r;r++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;4>o;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8),e[n+o]^=i[o]},blockSize:4,ivSize:2});n.Rabbit=o._createHelper(u)}(),e.Rabbit})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(60),n(62),n(61),n(17))}(this,function(e){return function(){function t(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;4>o;o++){t=(t+1)%256,n=(n+e[t])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}var n=e,r=n.lib,o=r.StreamCipher,a=n.algo,i=a.RC4=o.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;256>o;o++)r[o]=o;for(var o=0,a=0;256>o;o++){var i=o%n,s=t[i>>>2]>>>24-i%4*8&255;a=(a+r[o]+s)%256;var l=r[o];r[o]=r[a],r[a]=l}this._i=this._j=0},_doProcessBlock:function(e,n){e[n]^=t.call(this)},keySize:8,ivSize:0});n.RC4=o._createHelper(i);var s=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});n.RC4Drop=o._createHelper(s)}(),e.RC4})},function(e,t,n){!function(r,o){e.exports=t=o(n(7))}(this,function(e){/** @preserve +return e.mode.CTRGladman=function(){function t(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,a=this._iv,i=this._counter;a&&(i=this._counter=a.slice(0),this._iv=void 0),n(i);var s=i.slice(0);r.encryptBlock(s,0);for(var l=0;o>l;l++)e[t+l]^=s[l]}});return r.Decryptor=o,r}(),e.mode.CTRGladman})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var i=a.slice(0);n.encryptBlock(i,0),a[r-1]=a[r-1]+1|0;for(var s=0;r>s;s++)e[t+s]^=i[s]}});return t.Decryptor=n,t}(),e.mode.CTR})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var i=0;r>i;i++)e[t+i]^=a[i]}});return t.Decryptor=n,t}(),e.mode.OFB})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,a=n+o-1;e.clamp(),e.words[a>>>2]|=o<<24-a%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(19))}(this,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(166),n(165))}(this,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,a=t.algo,i=a.SHA1,s=a.HMAC,l=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=o.create(),i=o.create([1]),l=a.words,u=i.words,c=n.keySize,f=n.iterations;l.length<c;){var p=r.update(t).finalize(i);r.reset();for(var d=p.words,h=d.length,g=p,m=1;f>m;m++){g=r.finalize(g),r.reset();for(var v=g.words,_=0;h>_;_++)d[_]^=v[_]}a.concat(p),u[0]++}return a.sigBytes=4*c,a}});t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),e.PBKDF2})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(81),n(83),n(82),n(19))}(this,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;8>n;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(var n=0;8>n;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,i=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);l[n]=i^u}e[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,e[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,e[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,e[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,e[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,e[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,e[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,e[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}var n=e,r=n.lib,o=r.StreamCipher,a=n.algo,i=[],s=[],l=[],u=a.RabbitLegacy=o.extend({_doReset:function(){var e=this._key.words,n=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;4>a;a++)t.call(this);for(var a=0;8>a;a++)o[a]^=r[a+4&7];if(n){var i=n.words,s=i[0],l=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f=u>>>16|4294901760&c,p=c<<16|65535&u;o[0]^=u,o[1]^=f,o[2]^=c,o[3]^=p,o[4]^=u,o[5]^=f,o[6]^=c,o[7]^=p;for(var a=0;4>a;a++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;4>o;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8),e[n+o]^=i[o]},blockSize:4,ivSize:2});n.RabbitLegacy=o._createHelper(u)}(),e.RabbitLegacy})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(81),n(83),n(82),n(19))}(this,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;8>n;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(var n=0;8>n;n++){var r=e[n]+t[n],o=65535&r,a=r>>>16,i=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);l[n]=i^u}e[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,e[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,e[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,e[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,e[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,e[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,e[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,e[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}var n=e,r=n.lib,o=r.StreamCipher,a=n.algo,i=[],s=[],l=[],u=a.Rabbit=o.extend({_doReset:function(){for(var e=this._key.words,n=this.cfg.iv,r=0;4>r;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;4>r;r++)t.call(this);for(var r=0;8>r;r++)a[r]^=o[r+4&7];if(n){var i=n.words,s=i[0],l=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),f=u>>>16|4294901760&c,p=c<<16|65535&u;a[0]^=u,a[1]^=f,a[2]^=c,a[3]^=p,a[4]^=u,a[5]^=f,a[6]^=c,a[7]^=p;for(var r=0;4>r;r++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;4>o;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8),e[n+o]^=i[o]},blockSize:4,ivSize:2});n.Rabbit=o._createHelper(u)}(),e.Rabbit})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(81),n(83),n(82),n(19))}(this,function(e){return function(){function t(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;4>o;o++){t=(t+1)%256,n=(n+e[t])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}var n=e,r=n.lib,o=r.StreamCipher,a=n.algo,i=a.RC4=o.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;256>o;o++)r[o]=o;for(var o=0,a=0;256>o;o++){var i=o%n,s=t[i>>>2]>>>24-i%4*8&255;a=(a+r[o]+s)%256;var l=r[o];r[o]=r[a],r[a]=l}this._i=this._j=0},_doProcessBlock:function(e,n){e[n]^=t.call(this)},keySize:8,ivSize:0});n.RC4=o._createHelper(i);var s=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});n.RC4Drop=o._createHelper(s)}(),e.RC4})},function(e,t,n){!function(r,o){e.exports=t=o(n(8))}(this,function(e){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -53,35 +53,35 @@ return e.mode.CTRGladman=function(){function t(e){if(255===(e>>24&255)){var t=e> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 OR CONTRIBUTORS 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. */ -return function(t){function n(e,t,n){return e^t^n}function r(e,t,n){return e&t|~e&n}function o(e,t,n){return(e|~t)^n}function a(e,t,n){return e&n|t&~n}function i(e,t,n){return e^(t|~n)}function s(e,t){return e<<t|e>>>32-t}var l=e,u=l.lib,c=u.WordArray,f=u.Hasher,p=l.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),g=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),m=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),v=c.create([0,1518500249,1859775393,2400959708,2840853838]),_=c.create([1352829926,1548603684,1836072691,2053994217,0]),y=p.RIPEMD160=f.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var l=0;16>l;l++){var u=t+l,c=e[u];e[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var f,p,y,b,w,x,C,E,T,P,k=this._hash.words,M=v.words,S=_.words,D=d.words,R=h.words,A=g.words,I=m.words;x=f=k[0],C=p=k[1],E=y=k[2],T=b=k[3],P=w=k[4];for(var O,l=0;80>l;l+=1)O=f+e[t+D[l]]|0,O+=16>l?n(p,y,b)+M[0]:32>l?r(p,y,b)+M[1]:48>l?o(p,y,b)+M[2]:64>l?a(p,y,b)+M[3]:i(p,y,b)+M[4],O=0|O,O=s(O,A[l]),O=O+w|0,f=w,w=b,b=s(y,10),y=p,p=O,O=x+e[t+R[l]]|0,O+=16>l?i(C,E,T)+S[0]:32>l?a(C,E,T)+S[1]:48>l?o(C,E,T)+S[2]:64>l?r(C,E,T)+S[3]:n(C,E,T)+S[4],O=0|O,O=s(O,I[l]),O=O+P|0,x=P,P=T,T=s(E,10),E=C,C=O;O=k[1]+y+T|0,k[1]=k[2]+b+P|0,k[2]=k[3]+w+x|0,k[3]=k[4]+f+C|0,k[4]=k[0]+p+E|0,k[0]=O},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,a=o.words,i=0;5>i;i++){var s=a[i];a[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});l.RIPEMD160=f._createHelper(y),l.HmacRIPEMD160=f._createHmacHelper(y)}(Math),e.RIPEMD160})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(227))}(this,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=t.algo,a=o.SHA256,i=o.SHA224=a.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=a._createHelper(i),t.HmacSHA224=a._createHmacHelper(i)}(),e.SHA224})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(97))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,a=r.Hasher,i=n.x64,s=i.Word,l=n.algo,u=[],c=[],f=[];!function(){for(var e=1,t=0,n=0;24>n;n++){u[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,o=(2*e+3*t)%5;e=r,t=o}for(var e=0;5>e;e++)for(var t=0;5>t;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,i=0;24>i;i++){for(var l=0,p=0,d=0;7>d;d++){if(1&a){var h=(1<<d)-1;32>h?p^=1<<h:l^=1<<h-32}128&a?a=a<<1^113:a<<=1}f[i]=s.create(l,p)}}();var p=[];!function(){for(var e=0;25>e;e++)p[e]=s.create()}();var d=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;25>t;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;r>o;o++){var a=e[t+2*o],i=e[t+2*o+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);var s=n[o];s.high^=i,s.low^=a}for(var l=0;24>l;l++){for(var d=0;5>d;d++){for(var h=0,g=0,m=0;5>m;m++){var s=n[d+5*m];h^=s.high,g^=s.low}var v=p[d];v.high=h,v.low=g}for(var d=0;5>d;d++)for(var _=p[(d+4)%5],y=p[(d+1)%5],b=y.high,w=y.low,h=_.high^(b<<1|w>>>31),g=_.low^(w<<1|b>>>31),m=0;5>m;m++){var s=n[d+5*m];s.high^=h,s.low^=g}for(var x=1;25>x;x++){var s=n[x],C=s.high,E=s.low,T=u[x];if(32>T)var h=C<<T|E>>>32-T,g=E<<T|C>>>32-T;else var h=E<<T-32|C>>>64-T,g=C<<T-32|E>>>64-T;var P=p[c[x]];P.high=h,P.low=g}var k=p[0],M=n[0];k.high=M.high,k.low=M.low;for(var d=0;5>d;d++)for(var m=0;5>m;m++){var x=d+5*m,s=n[x],S=p[x],D=p[(d+1)%5+5*m],R=p[(d+2)%5+5*m];s.high=S.high^~D.high&R.high,s.low=S.low^~D.low&R.low}var s=n[0],A=f[l];s.high^=A.high,s.low^=A.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(8*this._nDataBytes,8*e.sigBytes),a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var i=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;l>c;c++){var f=i[c],p=f.high,d=f.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),u.push(d),u.push(p)}return new o.init(u,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;25>n;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(d),n.HmacSHA3=a._createHmacHelper(d)}(Math),e.SHA3})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(97),n(228))}(this,function(e){return function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,a=t.algo,i=a.SHA512,s=a.SHA384=i.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=i._createHelper(s),t.HmacSHA384=i._createHmacHelper(s)}(),e.SHA384})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(7),n(60),n(62),n(61),n(17))}(this,function(e){return function(){function t(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function n(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var r=e,o=r.lib,a=o.WordArray,i=o.BlockCipher,s=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=s.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],r=0;56>r;r++){var o=l[r]-1;n[r]=t[o>>>5]>>>31-o%32&1}for(var a=this._subKeys=[],i=0;16>i;i++){for(var s=a[i]=[],f=c[i],r=0;24>r;r++)s[r/6|0]|=n[(u[r]-1+f)%28]<<31-r%6,s[4+(r/6|0)]|=n[28+(u[r+24]-1+f)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(var r=1;7>r;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var p=this._invSubKeys=[],r=0;16>r;r++)p[r]=a[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,r,o){this._lBlock=e[r],this._rBlock=e[r+1],t.call(this,4,252645135),t.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),t.call(this,1,1431655765);for(var a=0;16>a;a++){for(var i=o[a],s=this._lBlock,l=this._rBlock,u=0,c=0;8>c;c++)u|=f[c][((l^i[c])&p[c])>>>0];this._lBlock=l,this._rBlock=s^u}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,t.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),e[r]=this._lBlock,e[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=i._createHelper(d);var h=s.TripleDES=i.extend({_doReset:function(){var e=this._key,t=e.words;this._des1=d.createEncryptor(a.create(t.slice(0,2))),this._des2=d.createEncryptor(a.create(t.slice(2,4))),this._des3=d.createEncryptor(a.create(t.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=i._createHelper(h)}(),e.TripleDES})},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".FloatImageControl_item_lrU2p{width:100%;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;line-height:2em}.FloatImageControl_label_3oxqD{font-weight:700;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-left:5px;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.FloatImageControl_actions_gLy_R{position:relative;right:0}.FloatImageControl_hidden_17hKC{display:none}.FloatImageControl_iconButton_1lGhI{-webkit-flex:none;-ms-flex:none;flex:none;margin-right:5px;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;cursor:pointer;font-style:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.FloatImageControl_fadeButton_2fHzc{color:#aaa}.FloatImageControl_menu_12j6V{position:absolute;top:2em;right:5px;border:1px solid #000;padding:5px 10px;background:#fff;border-radius:5px;z-index:2}.FloatImageControl_menuItem_nFGUq{cursor:pointer}.FloatImageControl_selectedMenuItem_CT8Yb{font-weight:700}@media screen and (max-device-width:400px){.FloatImageControl_iconButton_1lGhI{font-size:1.45em}}.is-ios-device.FloatImageControl_iconButton_1lGhI{font-size:1.45em}",""]),t.locals={container:"FloatImageControl_container_9_WoO",item:"FloatImageControl_item_lrU2p",label:"FloatImageControl_label_3oxqD",actions:"FloatImageControl_actions_gLy_R",lightSlider:"FloatImageControl_lightSlider_1UYp8",hidden:"FloatImageControl_hidden_17hKC",iconButton:"FloatImageControl_iconButton_1lGhI",fadeButton:"FloatImageControl_fadeButton_2fHzc",meshButtonOn:"FloatImageControl_meshButtonOn_t0HCh FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-hashtag"],meshButtonOff:"FloatImageControl_meshButtonOff_3VL_d FloatImageControl_meshButtonOn_t0HCh FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-hashtag"]+" FloatImageControl_fadeButton_2fHzc",visibleButtonOn:"FloatImageControl_visibleButtonOn_3E3WL FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye"],visibleButtonOff:"FloatImageControl_visibleButtonOff_1qvFp FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye-slash"],dropDownButtonOn:"FloatImageControl_dropDownButtonOn_mMh8M FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-tint"],dropDownButtonOff:"FloatImageControl_dropDownButtonOff_1sPIe FloatImageControl_dropDownButtonOn_mMh8M FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-tint"]+" FloatImageControl_fadeButton_2fHzc",menu:"FloatImageControl_menu_12j6V",menuItem:"FloatImageControl_menuItem_nFGUq",selectedMenuItem:"FloatImageControl_selectedMenuItem_CT8Yb FloatImageControl_menuItem_nFGUq"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".LightControl_container_AKEyU{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.LightControl_controls_2ynLY{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.LightControl_inputRow_1mnb9{display:block;text-align:right}.LightControl_inputRow_1mnb9:first-child>.LightControl_property_1nDXk{margin-top:0}.LightControl_property_1nDXk{width:50px;margin-left:8px;margin-top:5px}",""]),t.locals={container:"LightControl_container_AKEyU",controls:"LightControl_controls_2ynLY",inputRow:"LightControl_inputRow_1mnb9",property:"LightControl_property_1nDXk"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,"",""]),t.locals={exploreIcon:"QueryDataModelControl_exploreIcon_3Hw5o "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-compass"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,"",""]),t.locals={undoIcon:"VolumeControl_undoIcon_1dqb5 "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-undo"],mobileIcon:"VolumeControl_mobileIcon_1BMna "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-mobile"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".CellProperty_container_1HMbR{width:calc(100% - 20px);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:8px 10px}.CellProperty_hidden_nEytP{display:none}@media(screen) and (max-width:400px){.CellProperty_container_1HMbR{max-width:400px}}.CellProperty_header_1gpb3{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%}.CellProperty_plusIcon_-xYFl{cursor:pointer}.CellProperty_deleteIcon_aRrhs{position:relative;top:10px;cursor:pointer}.CellProperty_helpBox_P6fhW{padding:18px;border:1px solid #ddd;background-color:#efefef;margin-top:10px;width:100%;box-sizing:border-box}.CellProperty_inputBlock_4ZaJo{width:100%;border-collapse:separate;border-spacing:5px 0}.CellProperty_inputRow_Qy_Kd{margin:0;padding:0}.CellProperty_inputCell_1Vcnf{border-bottom:1px solid gray;min-height:40px;margin:4px 5px;padding:0}.CellProperty_inputCellLabel_3ml68{display:block;min-height:16px;padding:2px 6px 0;font-size:.75em;color:#aaa}.CellProperty_inputCellInput_2U4fW{margin:0;padding:3px 6px;width:100%;box-sizing:border-box}",""]),t.locals={container:"CellProperty_container_1HMbR",hidden:"CellProperty_hidden_nEytP",header:"CellProperty_header_1gpb3",helpIcon:"CellProperty_helpIcon_3dfzg "+n(1).locals.fa+" "+n(1).locals["fa-question-circle"],plusIcon:"CellProperty_plusIcon_-xYFl "+n(1).locals.fa+" "+n(1).locals["fa-plus"],deleteIcon:"CellProperty_deleteIcon_aRrhs "+n(1).locals.fa+" "+n(1).locals["fa-trash-o"],helpBox:"CellProperty_helpBox_P6fhW",inputBlock:"CellProperty_inputBlock_4ZaJo",inputTable:"CellProperty_inputTable_JjCuc CellProperty_inputBlock_4ZaJo",inputRow:"CellProperty_inputRow_Qy_Kd",inputCell:"CellProperty_inputCell_1Vcnf",inputCellLabel:"CellProperty_inputCellLabel_3ml68",inputCellInput:"CellProperty_inputCellInput_2U4fW"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".CheckboxProperty_label_3CXVg{min-height:16px;padding:2px 6px 0;font-size:.75em;color:#aaa}",""]),t.locals={label:"CheckboxProperty_label_3CXVg",input:"CheckboxProperty_input_SRIq1"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".EnumProperty_input_3-Um3{margin-top:6px;width:100%;height:28px;border-radius:5px;background-color:#fff;border-width:1px;border-color:#d3d3d3 #d3d3d3 gray;border-style:solid}.EnumProperty_inputMultiSelect_dE4AM{height:5.5em}",""]),t.locals={input:"EnumProperty_input_3-Um3",inputMultiSelect:"EnumProperty_inputMultiSelect_dE4AM EnumProperty_input_3-Um3"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".PropertyPanel_propertyHeader_31ygq{border-bottom:1px solid #d3d3d3;width:100%;padding:10px 8px 3px;font-size:1.1em}",""]),t.locals={propertyHeader:"PropertyPanel_propertyHeader_31ygq",propertyPanel:"PropertyPanel_propertyPanel_3AW7l"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".ImageRenderer_hidden_2gzlk{display:none}.ImageRenderer_dialog_wJ7nP{display:block;top:0;left:0;right:0;bottom:0;position:absolute;z-index:1;background-color:rgba(0,0,0,.5)}.ImageRenderer_inside_30SXU{border-radius:10px;top:10%;left:calc(10% - 25px);position:absolute;width:80%;z-index:2;padding:25px;padding-bottom:50px;background-color:hsla(0,0%,100%,.5)}.ImageRenderer_thumbnail_x4WFY{float:left;border:1px solid #000;border-radius:5px;box-shadow:5px 5px 5px #888;margin-right:25px}.ImageRenderer_title_2Ebgh>*{font-size:30px;outline:none;margin-bottom:15px}.ImageRenderer_description_2vMWM{max-height:calc(100% - 60px);overflow:auto}.ImageRenderer_description_2vMWM>*{outline:none}.ImageRenderer_buttons_2SVBJ{position:absolute;bottom:10px;right:10px}.ImageRenderer_button_11woW{padding:5px 10px;margin-left:20px;background-color:#fff;border:1px solid grey;border-radius:3px}",""]),t.locals={container:"ImageRenderer_container_1zxTX",renderer:"ImageRenderer_renderer_16Y9q",hidden:"ImageRenderer_hidden_2gzlk",dialog:"ImageRenderer_dialog_wJ7nP",inside:"ImageRenderer_inside_30SXU",thumbnail:"ImageRenderer_thumbnail_x4WFY",title:"ImageRenderer_title_2Ebgh",description:"ImageRenderer_description_2vMWM",buttons:"ImageRenderer_buttons_2SVBJ",button:"ImageRenderer_button_11woW"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".LineChartViewer_container_2GxCx{min-width:5em;width:100%;height:100%;box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:-webkit-flex;display:-ms-flexbox;display:flex}.LineChartViewer_hidden_24ZOV{display:none}.LineChartViewer_canvas_1aAaD{margin:0;width:100%;height:100%}.LineChartViewer_legend_UOU8u{position:absolute;top:10px;left:10px;z-index:2}.LineChartViewer_legendBar_3R0o-{background:#ccc;border-radius:5px 5px 0 0;border:1px solid #000;border-bottom:none;padding:2px 0 2px 5px}.LineChartViewer_toggleLegendButton_3kZQM{float:right;cursor:pointer}.LineChartViewer_legendText_2oReH{font-size:75%}.LineChartViewer_legendContent_1aAvd{border-radius:0 0 5px 5px;border:1px solid #000;background:#fff;display:table;padding:5px;margin:0}.LineChartViewer_legendItem_1GyRd{list-style:none;display:table-row}.LineChartViewer_legendItem_1GyRd>*{display:table-cell}.LineChartViewer_legendItemValue_12-lc{min-width:100px;text-align:right}.LineChartViewer_legendButtons_2vXQ5{border-radius:10px;width:20px;height:20px;background:#ccc;border:1px solid #000}.LineChartViewer_toggleLegendButton_3kZQM{cursor:pointer;top:2px;position:relative}",""]),t.locals={container:"LineChartViewer_container_2GxCx",hidden:"LineChartViewer_hidden_24ZOV",canvas:"LineChartViewer_canvas_1aAaD",legend:"LineChartViewer_legend_UOU8u",legendBar:"LineChartViewer_legendBar_3R0o-",toggleLegendButton:"LineChartViewer_toggleLegendButton_3kZQM "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-times"]+" "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-info"],legendText:"LineChartViewer_legendText_2oReH",legendContent:"LineChartViewer_legendContent_1aAvd",legendItem:"LineChartViewer_legendItem_1GyRd",legendItemColor:"LineChartViewer_legendItemColor_3kVEN "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-square"],legendItemValue:"LineChartViewer_legendItemValue_12-lc",legendButtons:"LineChartViewer_legendButtons_2vXQ5"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(134),void 0),t.push([e.id,".Probe3DViewer_hidden_knTKO{display:none}.Probe3DViewer_button_2diGQ{-webkit-flex:1;-ms-flex:1;flex:1;border:1px solid grey;border-radius:3px;margin:0 2px;padding:5px 0;background-color:#fff;transition:all .12s ease}.Probe3DViewer_button_2diGQ:focus{box-shadow:0 0 1px 1px grey}.Probe3DViewer_selectedButton_1Cj6H{border:none;background-color:#1e96e1!important;color:#fff;background:#ccc}.Probe3DViewer_chartContainer_3WGEo{position:absolute;top:2px;left:2px;z-index:4;width:40%;height:40%;background:#fff;border:1px solid #000;padding:5px;border-radius:5px}.Probe3DViewer_row_3DIm5{margin-top:10px}",""]),t.locals={container:"Probe3DViewer_container_2IkNY",hidden:"Probe3DViewer_hidden_knTKO",button:"Probe3DViewer_button_2diGQ",selectedButton:"Probe3DViewer_selectedButton_1Cj6H Probe3DViewer_button_2diGQ",chartContainer:"Probe3DViewer_chartContainer_3WGEo",row:"Probe3DViewer_row_3DIm5 "+n(134).locals.row}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".ActionListWidget_list_1lWZZ{list-style:none;margin:0;padding:0;width:100%}.ActionListWidget_item_2fjiD{color:#333;padding:5px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ActionListWidget_item_2fjiD:hover{background:#333;color:#eee}",""]),t.locals={list:"ActionListWidget_list_1lWZZ",item:"ActionListWidget_item_2fjiD"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".ButtonSelectorWidget_container_72jDF{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:100vh}.ButtonSelectorWidget_button_1Sh3B{margin:5px;padding:5px;width:80%;font-size:200%;border:1px solid grey;border-radius:5px;background-color:#d3d3d3;transition:all .12s ease;box-sizing:border-box}.ButtonSelectorWidget_button_1Sh3B:active,.ButtonSelectorWidget_button_1Sh3B:focus{box-shadow:0 0 1px 1px grey;outline:none}.ButtonSelectorWidget_button_1Sh3B:active{background-color:#a8a8a8}",""]),t.locals={container:"ButtonSelectorWidget_container_72jDF",button:"ButtonSelectorWidget_button_1Sh3B"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".CollapsibleWidget_container_3hgpH{width:100%;padding:0;font-family:sans-serif;padding-top:5px;padding-bottom:5px;clear:both}.CollapsibleWidget_header_DhS09{position:relative;left:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;padding:0;border:none;background-color:transparent;width:100%}.CollapsibleWidget_caret_2aLSB{transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.CollapsibleWidget_caretClosed_dwcrg{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.CollapsibleWidget_subtitle_3BMoP{position:absolute;right:15px;top:0}.CollapsibleWidget_visibleContent_1CAFm{padding:5px 15px 0}.CollapsibleWidget_hiddenContent_aakZA{display:none}@media screen and (max-device-width:400px){.CollapsibleWidget_caret_2aLSB{font-size:1.45em}}.is-ios-device .CollapsibleWidget_caret_2aLSB{font-size:1.45em}",""]),t.locals={container:"CollapsibleWidget_container_3hgpH",header:"CollapsibleWidget_header_DhS09",caret:"CollapsibleWidget_caret_2aLSB "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-caret-down"],caretClosed:"CollapsibleWidget_caretClosed_dwcrg CollapsibleWidget_caret_2aLSB "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-caret-down"],title:"CollapsibleWidget_title_Uz5VE",subtitle:"CollapsibleWidget_subtitle_3BMoP",visibleContent:"CollapsibleWidget_visibleContent_1CAFm",hiddenContent:"CollapsibleWidget_hiddenContent_aakZA"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".ColorByWidget_container_1GRTD{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.ColorByWidget_line_1DrVl{-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:2.5em;height:2.5em}.ColorByWidget_advancedView_1SkNI,.ColorByWidget_line_1DrVl{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.ColorByWidget_advancedView_1SkNI{margin-top:3px;position:relative;width:100%;height:6em;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.ColorByWidget_advancedViewControl_OJtfe{-webkit-flex:none;-ms-flex:none;flex:none;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ColorByWidget_advancedViewContent_2OBhU{-webkit-flex:1;-ms-flex:1;flex:1;max-width:calc(100% - 1.28571em - 4px);height:6em}.ColorByWidget_hidden_18Fi8{display:none}.ColorByWidget_input_1jW6z{-webkit-flex:1;-ms-flex:1;flex:1;height:28px;border-radius:5px;background-color:#fff;border-width:1px;border-color:#d3d3d3 #d3d3d3 gray;border-style:solid}.ColorByWidget_scalarBar_l9YRv{width:calc(100% - 2.5em);height:1em;cursor:pointer;border:1px solid #000}.ColorByWidget_colorIcon_h2il5,.ColorByWidget_representationIcon_2O9rT{-webkit-flex:none;-ms-flex:none;flex:none}.ColorByWidget_advanceIconOn_5P90f,.ColorByWidget_scalarBarIconOff_1xZTj,.ColorByWidget_scalarBarIconOn_P7eZ2{-webkit-flex:none;-ms-flex:none;flex:none;cursor:pointer}.ColorByWidget_advanceIconOn_5P90f{color:#000}.ColorByWidget_advanceIconOff_3H9W2{color:#aaa}.ColorByWidget_icon_hTOma{width:1.28571em;height:1.28571em;line-height:1.28571em;cursor:pointer;text-align:center;vertical-align:middle}.ColorByWidget_activeIcon_XBa5F{background:#555;border-radius:5px}",""]), +return function(t){function n(e,t,n){return e^t^n}function r(e,t,n){return e&t|~e&n}function o(e,t,n){return(e|~t)^n}function a(e,t,n){return e&n|t&~n}function i(e,t,n){return e^(t|~n)}function s(e,t){return e<<t|e>>>32-t}var l=e,u=l.lib,c=u.WordArray,f=u.Hasher,p=l.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),g=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),m=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),v=c.create([0,1518500249,1859775393,2400959708,2840853838]),_=c.create([1352829926,1548603684,1836072691,2053994217,0]),y=p.RIPEMD160=f.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var l=0;16>l;l++){var u=t+l,c=e[u];e[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var f,p,y,b,w,x,C,E,T,P,k=this._hash.words,M=v.words,S=_.words,R=d.words,D=h.words,A=g.words,I=m.words;x=f=k[0],C=p=k[1],E=y=k[2],T=b=k[3],P=w=k[4];for(var O,l=0;80>l;l+=1)O=f+e[t+R[l]]|0,O+=16>l?n(p,y,b)+M[0]:32>l?r(p,y,b)+M[1]:48>l?o(p,y,b)+M[2]:64>l?a(p,y,b)+M[3]:i(p,y,b)+M[4],O=0|O,O=s(O,A[l]),O=O+w|0,f=w,w=b,b=s(y,10),y=p,p=O,O=x+e[t+D[l]]|0,O+=16>l?i(C,E,T)+S[0]:32>l?a(C,E,T)+S[1]:48>l?o(C,E,T)+S[2]:64>l?r(C,E,T)+S[3]:n(C,E,T)+S[4],O=0|O,O=s(O,I[l]),O=O+P|0,x=P,P=T,T=s(E,10),E=C,C=O;O=k[1]+y+T|0,k[1]=k[2]+b+P|0,k[2]=k[3]+w+x|0,k[3]=k[4]+f+C|0,k[4]=k[0]+p+E|0,k[0]=O},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,a=o.words,i=0;5>i;i++){var s=a[i];a[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=f.clone.call(this);return e._hash=this._hash.clone(),e}});l.RIPEMD160=f._createHelper(y),l.HmacRIPEMD160=f._createHmacHelper(y)}(Math),e.RIPEMD160})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(263))}(this,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=t.algo,a=o.SHA256,i=o.SHA224=a.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=a._createHelper(i),t.HmacSHA224=a._createHmacHelper(i)}(),e.SHA224})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(116))}(this,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,a=r.Hasher,i=n.x64,s=i.Word,l=n.algo,u=[],c=[],f=[];!function(){for(var e=1,t=0,n=0;24>n;n++){u[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,o=(2*e+3*t)%5;e=r,t=o}for(var e=0;5>e;e++)for(var t=0;5>t;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,i=0;24>i;i++){for(var l=0,p=0,d=0;7>d;d++){if(1&a){var h=(1<<d)-1;32>h?p^=1<<h:l^=1<<h-32}128&a?a=a<<1^113:a<<=1}f[i]=s.create(l,p)}}();var p=[];!function(){for(var e=0;25>e;e++)p[e]=s.create()}();var d=l.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;25>t;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;r>o;o++){var a=e[t+2*o],i=e[t+2*o+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);var s=n[o];s.high^=i,s.low^=a}for(var l=0;24>l;l++){for(var d=0;5>d;d++){for(var h=0,g=0,m=0;5>m;m++){var s=n[d+5*m];h^=s.high,g^=s.low}var v=p[d];v.high=h,v.low=g}for(var d=0;5>d;d++)for(var _=p[(d+4)%5],y=p[(d+1)%5],b=y.high,w=y.low,h=_.high^(b<<1|w>>>31),g=_.low^(w<<1|b>>>31),m=0;5>m;m++){var s=n[d+5*m];s.high^=h,s.low^=g}for(var x=1;25>x;x++){var s=n[x],C=s.high,E=s.low,T=u[x];if(32>T)var h=C<<T|E>>>32-T,g=E<<T|C>>>32-T;else var h=E<<T-32|C>>>64-T,g=C<<T-32|E>>>64-T;var P=p[c[x]];P.high=h,P.low=g}var k=p[0],M=n[0];k.high=M.high,k.low=M.low;for(var d=0;5>d;d++)for(var m=0;5>m;m++){var x=d+5*m,s=n[x],S=p[x],R=p[(d+1)%5+5*m],D=p[(d+2)%5+5*m];s.high=S.high^~R.high&D.high,s.low=S.low^~R.low&D.low}var s=n[0],A=f[l];s.high^=A.high,s.low^=A.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(8*this._nDataBytes,8*e.sigBytes),a=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var i=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;l>c;c++){var f=i[c],p=f.high,d=f.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),u.push(d),u.push(p)}return new o.init(u,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;25>n;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(d),n.HmacSHA3=a._createHmacHelper(d)}(Math),e.SHA3})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(116),n(264))}(this,function(e){return function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,a=t.algo,i=a.SHA512,s=a.SHA384=i.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=i._createHelper(s),t.HmacSHA384=i._createHmacHelper(s)}(),e.SHA384})},function(e,t,n){!function(r,o,a){e.exports=t=o(n(8),n(81),n(83),n(82),n(19))}(this,function(e){return function(){function t(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function n(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var r=e,o=r.lib,a=o.WordArray,i=o.BlockCipher,s=r.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=s.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],r=0;56>r;r++){var o=l[r]-1;n[r]=t[o>>>5]>>>31-o%32&1}for(var a=this._subKeys=[],i=0;16>i;i++){for(var s=a[i]=[],f=c[i],r=0;24>r;r++)s[r/6|0]|=n[(u[r]-1+f)%28]<<31-r%6,s[4+(r/6|0)]|=n[28+(u[r+24]-1+f)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(var r=1;7>r;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var p=this._invSubKeys=[],r=0;16>r;r++)p[r]=a[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,r,o){this._lBlock=e[r],this._rBlock=e[r+1],t.call(this,4,252645135),t.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),t.call(this,1,1431655765);for(var a=0;16>a;a++){for(var i=o[a],s=this._lBlock,l=this._rBlock,u=0,c=0;8>c;c++)u|=f[c][((l^i[c])&p[c])>>>0];this._lBlock=l,this._rBlock=s^u}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,t.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),e[r]=this._lBlock,e[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=i._createHelper(d);var h=s.TripleDES=i.extend({_doReset:function(){var e=this._key,t=e.words;this._des1=d.createEncryptor(a.create(t.slice(0,2))),this._des2=d.createEncryptor(a.create(t.slice(2,4))),this._des3=d.createEncryptor(a.create(t.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=i._createHelper(h)}(),e.TripleDES})},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".FloatImageControl_item_lrU2p{width:100%;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;line-height:2em}.FloatImageControl_label_3oxqD{font-weight:700;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-left:5px;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.FloatImageControl_actions_gLy_R{position:relative;right:0}.FloatImageControl_hidden_17hKC{display:none}.FloatImageControl_iconButton_1lGhI{-webkit-flex:none;-ms-flex:none;flex:none;margin-right:5px;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;cursor:pointer;font-style:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.FloatImageControl_fadeButton_2fHzc{color:#aaa}.FloatImageControl_menu_12j6V{position:absolute;top:2em;right:5px;border:1px solid #000;padding:5px 10px;background:#fff;border-radius:5px;z-index:2}.FloatImageControl_menuItem_nFGUq{cursor:pointer}.FloatImageControl_selectedMenuItem_CT8Yb{font-weight:700}@media screen and (max-device-width:400px){.FloatImageControl_iconButton_1lGhI{font-size:1.45em}}.is-ios-device.FloatImageControl_iconButton_1lGhI{font-size:1.45em}",""]),t.locals={container:"FloatImageControl_container_9_WoO",item:"FloatImageControl_item_lrU2p",label:"FloatImageControl_label_3oxqD",actions:"FloatImageControl_actions_gLy_R",lightSlider:"FloatImageControl_lightSlider_1UYp8",hidden:"FloatImageControl_hidden_17hKC",iconButton:"FloatImageControl_iconButton_1lGhI",fadeButton:"FloatImageControl_fadeButton_2fHzc",meshButtonOn:"FloatImageControl_meshButtonOn_t0HCh FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-hashtag"],meshButtonOff:"FloatImageControl_meshButtonOff_3VL_d FloatImageControl_meshButtonOn_t0HCh FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-hashtag"]+" FloatImageControl_fadeButton_2fHzc",visibleButtonOn:"FloatImageControl_visibleButtonOn_3E3WL FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye"],visibleButtonOff:"FloatImageControl_visibleButtonOff_1qvFp FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye-slash"],dropDownButtonOn:"FloatImageControl_dropDownButtonOn_mMh8M FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-tint"],dropDownButtonOff:"FloatImageControl_dropDownButtonOff_1sPIe FloatImageControl_dropDownButtonOn_mMh8M FloatImageControl_iconButton_1lGhI "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-tint"]+" FloatImageControl_fadeButton_2fHzc",menu:"FloatImageControl_menu_12j6V",menuItem:"FloatImageControl_menuItem_nFGUq",selectedMenuItem:"FloatImageControl_selectedMenuItem_CT8Yb FloatImageControl_menuItem_nFGUq"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".LightControl_container_AKEyU{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.LightControl_controls_2ynLY{-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.LightControl_inputRow_1mnb9{display:block;text-align:right}.LightControl_inputRow_1mnb9:first-child>.LightControl_property_1nDXk{margin-top:0}.LightControl_property_1nDXk{width:50px;margin-left:8px;margin-top:5px}",""]),t.locals={container:"LightControl_container_AKEyU",controls:"LightControl_controls_2ynLY",inputRow:"LightControl_inputRow_1mnb9",property:"LightControl_property_1nDXk"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,"",""]),t.locals={exploreIcon:"QueryDataModelControl_exploreIcon_3Hw5o "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-compass"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,"",""]),t.locals={undoIcon:"VolumeControl_undoIcon_1dqb5 "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-undo"],mobileIcon:"VolumeControl_mobileIcon_1BMna "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-mobile"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".CellProperty_container_1HMbR{width:calc(100% - 20px);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:8px 10px}.CellProperty_hidden_nEytP{display:none}@media(screen) and (max-width:400px){.CellProperty_container_1HMbR{max-width:400px}}.CellProperty_header_1gpb3{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-ms-flex-align:center;align-items:center;width:100%}.CellProperty_plusIcon_-xYFl{cursor:pointer}.CellProperty_deleteIcon_aRrhs{position:relative;top:10px;cursor:pointer}.CellProperty_helpBox_P6fhW{padding:18px;border:1px solid #ddd;background-color:#efefef;margin-top:10px;width:100%;box-sizing:border-box}.CellProperty_inputBlock_4ZaJo{width:100%;border-collapse:separate;border-spacing:5px 0}.CellProperty_inputRow_Qy_Kd{margin:0;padding:0}.CellProperty_inputCell_1Vcnf{border-bottom:1px solid gray;min-height:40px;margin:4px 5px;padding:0}.CellProperty_inputCellLabel_3ml68{display:block;min-height:16px;padding:2px 6px 0;font-size:.75em;color:#aaa}.CellProperty_inputCellInput_2U4fW{margin:0;padding:3px 6px;width:100%;box-sizing:border-box}",""]),t.locals={container:"CellProperty_container_1HMbR",hidden:"CellProperty_hidden_nEytP",header:"CellProperty_header_1gpb3",helpIcon:"CellProperty_helpIcon_3dfzg "+n(1).locals.fa+" "+n(1).locals["fa-question-circle"],plusIcon:"CellProperty_plusIcon_-xYFl "+n(1).locals.fa+" "+n(1).locals["fa-plus"],deleteIcon:"CellProperty_deleteIcon_aRrhs "+n(1).locals.fa+" "+n(1).locals["fa-trash-o"],helpBox:"CellProperty_helpBox_P6fhW",inputBlock:"CellProperty_inputBlock_4ZaJo",inputTable:"CellProperty_inputTable_JjCuc CellProperty_inputBlock_4ZaJo",inputRow:"CellProperty_inputRow_Qy_Kd",inputCell:"CellProperty_inputCell_1Vcnf",inputCellLabel:"CellProperty_inputCellLabel_3ml68",inputCellInput:"CellProperty_inputCellInput_2U4fW"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".CheckboxProperty_label_3CXVg{min-height:16px;padding:2px 6px 0;font-size:.75em;color:#aaa}",""]),t.locals={label:"CheckboxProperty_label_3CXVg",input:"CheckboxProperty_input_SRIq1"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".EnumProperty_input_3-Um3{margin-top:6px;width:100%;height:28px;border-radius:5px;background-color:#fff;border-width:1px;border-color:#d3d3d3 #d3d3d3 gray;border-style:solid}.EnumProperty_inputMultiSelect_dE4AM{height:5.5em}",""]),t.locals={input:"EnumProperty_input_3-Um3",inputMultiSelect:"EnumProperty_inputMultiSelect_dE4AM EnumProperty_input_3-Um3"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".PropertyPanel_propertyHeader_31ygq{border-bottom:1px solid #d3d3d3;width:100%;padding:10px 8px 3px;font-size:1.1em}",""]),t.locals={propertyHeader:"PropertyPanel_propertyHeader_31ygq",propertyPanel:"PropertyPanel_propertyPanel_3AW7l"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".ImageRenderer_hidden_2gzlk{display:none}.ImageRenderer_dialog_wJ7nP{display:block;top:0;left:0;right:0;bottom:0;position:absolute;z-index:1;background-color:rgba(0,0,0,.5)}.ImageRenderer_inside_30SXU{border-radius:10px;top:10%;left:calc(10% - 25px);position:absolute;width:80%;z-index:2;padding:25px;padding-bottom:50px;background-color:hsla(0,0%,100%,.5)}.ImageRenderer_thumbnail_x4WFY{float:left;border:1px solid #000;border-radius:5px;box-shadow:5px 5px 5px #888;margin-right:25px}.ImageRenderer_title_2Ebgh>*{font-size:30px;outline:none;margin-bottom:15px}.ImageRenderer_description_2vMWM{max-height:calc(100% - 60px);overflow:auto}.ImageRenderer_description_2vMWM>*{outline:none}.ImageRenderer_buttons_2SVBJ{position:absolute;bottom:10px;right:10px}.ImageRenderer_button_11woW{padding:5px 10px;margin-left:20px;background-color:#fff;border:1px solid grey;border-radius:3px}",""]),t.locals={container:"ImageRenderer_container_1zxTX",renderer:"ImageRenderer_renderer_16Y9q",hidden:"ImageRenderer_hidden_2gzlk",dialog:"ImageRenderer_dialog_wJ7nP",inside:"ImageRenderer_inside_30SXU",thumbnail:"ImageRenderer_thumbnail_x4WFY",title:"ImageRenderer_title_2Ebgh",description:"ImageRenderer_description_2vMWM",buttons:"ImageRenderer_buttons_2SVBJ",button:"ImageRenderer_button_11woW"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".LineChartViewer_container_2GxCx{min-width:5em;width:100%;height:100%;box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:-webkit-flex;display:-ms-flexbox;display:flex}.LineChartViewer_hidden_24ZOV{display:none}.LineChartViewer_canvas_1aAaD{margin:0;width:100%;height:100%}.LineChartViewer_legend_UOU8u{position:absolute;top:10px;left:10px;z-index:2}.LineChartViewer_legendBar_3R0o-{background:#ccc;border-radius:5px 5px 0 0;border:1px solid #000;border-bottom:none;padding:2px 0 2px 5px}.LineChartViewer_toggleLegendButton_3kZQM{float:right;cursor:pointer}.LineChartViewer_legendText_2oReH{font-size:75%}.LineChartViewer_legendContent_1aAvd{border-radius:0 0 5px 5px;border:1px solid #000;background:#fff;display:table;padding:5px;margin:0}.LineChartViewer_legendItem_1GyRd{list-style:none;display:table-row}.LineChartViewer_legendItem_1GyRd>*{display:table-cell}.LineChartViewer_legendItemValue_12-lc{min-width:100px;text-align:right}.LineChartViewer_legendButtons_2vXQ5{border-radius:10px;width:20px;height:20px;background:#ccc;border:1px solid #000}.LineChartViewer_toggleLegendButton_3kZQM{cursor:pointer;top:2px;position:relative}",""]),t.locals={container:"LineChartViewer_container_2GxCx",hidden:"LineChartViewer_hidden_24ZOV",canvas:"LineChartViewer_canvas_1aAaD",legend:"LineChartViewer_legend_UOU8u",legendBar:"LineChartViewer_legendBar_3R0o-",toggleLegendButton:"LineChartViewer_toggleLegendButton_3kZQM "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-times"]+" "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-info"],legendText:"LineChartViewer_legendText_2oReH",legendContent:"LineChartViewer_legendContent_1aAvd",legendItem:"LineChartViewer_legendItem_1GyRd",legendItemColor:"LineChartViewer_legendItemColor_3kVEN "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-square"],legendItemValue:"LineChartViewer_legendItemValue_12-lc",legendButtons:"LineChartViewer_legendButtons_2vXQ5"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(167),void 0),t.push([e.id,".Probe3DViewer_hidden_knTKO{display:none}.Probe3DViewer_button_2diGQ{-webkit-flex:1;-ms-flex:1;flex:1;border:1px solid grey;border-radius:3px;margin:0 2px;padding:5px 0;background-color:#fff;transition:all .12s ease}.Probe3DViewer_button_2diGQ:focus{box-shadow:0 0 1px 1px grey}.Probe3DViewer_selectedButton_1Cj6H{border:none;background-color:#1e96e1!important;color:#fff;background:#ccc}.Probe3DViewer_chartContainer_3WGEo{position:absolute;top:2px;left:2px;z-index:4;width:40%;height:40%;background:#fff;border:1px solid #000;padding:5px;border-radius:5px}.Probe3DViewer_row_3DIm5{margin-top:10px}",""]),t.locals={container:"Probe3DViewer_container_2IkNY",hidden:"Probe3DViewer_hidden_knTKO",button:"Probe3DViewer_button_2diGQ",selectedButton:"Probe3DViewer_selectedButton_1Cj6H Probe3DViewer_button_2diGQ",chartContainer:"Probe3DViewer_chartContainer_3WGEo",row:"Probe3DViewer_row_3DIm5 "+n(167).locals.row}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".ActionListWidget_list_1lWZZ{list-style:none;margin:0;padding:0;width:100%}.ActionListWidget_item_2fjiD{color:#333;padding:5px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ActionListWidget_item_2fjiD:hover{background:#333;color:#eee}",""]),t.locals={list:"ActionListWidget_list_1lWZZ",item:"ActionListWidget_item_2fjiD"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".ButtonSelectorWidget_container_72jDF{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:100vh}.ButtonSelectorWidget_button_1Sh3B{margin:5px;padding:5px;width:80%;font-size:200%;border:1px solid grey;border-radius:5px;background-color:#d3d3d3;transition:all .12s ease;box-sizing:border-box}.ButtonSelectorWidget_button_1Sh3B:active,.ButtonSelectorWidget_button_1Sh3B:focus{box-shadow:0 0 1px 1px grey;outline:none}.ButtonSelectorWidget_button_1Sh3B:active{background-color:#a8a8a8}",""]),t.locals={container:"ButtonSelectorWidget_container_72jDF",button:"ButtonSelectorWidget_button_1Sh3B"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".CollapsibleWidget_container_3hgpH{width:100%;padding:0;font-family:sans-serif;padding-top:5px;padding-bottom:5px;clear:both}.CollapsibleWidget_header_DhS09{position:relative;left:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;padding:0;border:none;background-color:transparent;width:100%}.CollapsibleWidget_caret_2aLSB{transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.CollapsibleWidget_caretClosed_dwcrg{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.CollapsibleWidget_subtitle_3BMoP{position:absolute;right:15px;top:0}.CollapsibleWidget_visibleContent_1CAFm{padding:5px 15px 0}.CollapsibleWidget_hiddenContent_aakZA{display:none}@media screen and (max-device-width:400px){.CollapsibleWidget_caret_2aLSB{font-size:1.45em}}.is-ios-device .CollapsibleWidget_caret_2aLSB{font-size:1.45em}",""]),t.locals={container:"CollapsibleWidget_container_3hgpH",header:"CollapsibleWidget_header_DhS09",caret:"CollapsibleWidget_caret_2aLSB "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-caret-down"],caretClosed:"CollapsibleWidget_caretClosed_dwcrg CollapsibleWidget_caret_2aLSB "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-caret-down"],title:"CollapsibleWidget_title_Uz5VE",subtitle:"CollapsibleWidget_subtitle_3BMoP",visibleContent:"CollapsibleWidget_visibleContent_1CAFm",hiddenContent:"CollapsibleWidget_hiddenContent_aakZA"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".ColorByWidget_container_1GRTD{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.ColorByWidget_line_1DrVl{-webkit-align-items:center;-ms-flex-align:center;align-items:center;line-height:2.5em;height:2.5em}.ColorByWidget_advancedView_1SkNI,.ColorByWidget_line_1DrVl{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.ColorByWidget_advancedView_1SkNI{margin-top:3px;position:relative;width:100%;height:6em;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.ColorByWidget_advancedViewControl_OJtfe{-webkit-flex:none;-ms-flex:none;flex:none;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ColorByWidget_advancedViewContent_2OBhU{-webkit-flex:1;-ms-flex:1;flex:1;max-width:calc(100% - 1.28571em - 4px);height:6em}.ColorByWidget_hidden_18Fi8{display:none}.ColorByWidget_input_1jW6z{-webkit-flex:1;-ms-flex:1;flex:1;height:28px;border-radius:5px;background-color:#fff;border-width:1px;border-color:#d3d3d3 #d3d3d3 gray;border-style:solid}.ColorByWidget_scalarBar_l9YRv{width:calc(100% - 2.5em);height:1em;cursor:pointer;border:1px solid #000}.ColorByWidget_colorIcon_h2il5,.ColorByWidget_representationIcon_2O9rT{-webkit-flex:none;-ms-flex:none;flex:none}.ColorByWidget_advanceIconOn_5P90f,.ColorByWidget_scalarBarIconOff_1xZTj,.ColorByWidget_scalarBarIconOn_P7eZ2{-webkit-flex:none;-ms-flex:none;flex:none;cursor:pointer}.ColorByWidget_advanceIconOn_5P90f{color:#000}.ColorByWidget_advanceIconOff_3H9W2{color:#aaa}.ColorByWidget_icon_hTOma{width:1.28571em;height:1.28571em;line-height:1.28571em;cursor:pointer;text-align:center;vertical-align:middle}.ColorByWidget_activeIcon_XBa5F{background:#555;border-radius:5px}",""]), t.locals={container:"ColorByWidget_container_1GRTD",line:"ColorByWidget_line_1DrVl",advancedView:"ColorByWidget_advancedView_1SkNI",advancedViewControl:"ColorByWidget_advancedViewControl_OJtfe",advancedViewContent:"ColorByWidget_advancedViewContent_2OBhU",hidden:"ColorByWidget_hidden_18Fi8",input:"ColorByWidget_input_1jW6z",scalarBar:"ColorByWidget_scalarBar_l9YRv",representationIcon:"ColorByWidget_representationIcon_2O9rT "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye"],colorIcon:"ColorByWidget_colorIcon_h2il5 "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-tint"],scalarBarIconOn:"ColorByWidget_scalarBarIconOn_P7eZ2 "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-bookmark"],scalarBarIconOff:"ColorByWidget_scalarBarIconOff_1xZTj "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-bookmark-o"],advanceIconOn:"ColorByWidget_advanceIconOn_5P90f "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-cog"],advanceIconOff:"ColorByWidget_advanceIconOff_3H9W2 ColorByWidget_advanceIconOn_5P90f "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-cog"],icon:"ColorByWidget_icon_hTOma "+n(1).locals.fa,activeIcon:"ColorByWidget_activeIcon_XBa5F "+n(1).locals["fa-inverse"],presetIcon:"ColorByWidget_presetIcon_2s6CD ColorByWidget_icon_hTOma "+n(1).locals.fa+" "+n(1).locals["fa-heart"],activePresetIcon:"ColorByWidget_activePresetIcon_Xvzmw ColorByWidget_presetIcon_2s6CD ColorByWidget_icon_hTOma "+n(1).locals.fa+" "+n(1).locals["fa-heart"]+" ColorByWidget_activeIcon_XBa5F "+n(1).locals["fa-inverse"],rangeIcon:"ColorByWidget_rangeIcon_2jjKy ColorByWidget_icon_hTOma "+n(1).locals.fa+" "+n(1).locals["fa-arrows-h"],activeRangeIcon:"ColorByWidget_activeRangeIcon_2izep ColorByWidget_rangeIcon_2jjKy ColorByWidget_icon_hTOma "+n(1).locals.fa+" "+n(1).locals["fa-arrows-h"]+" ColorByWidget_activeIcon_XBa5F "+n(1).locals["fa-inverse"],opacityIcon:"ColorByWidget_opacityIcon_5zodx ColorByWidget_icon_hTOma "+n(1).locals.fa+" "+n(1).locals["fa-adjust"],activeOpacityIcon:"ColorByWidget_activeOpacityIcon_2s3sV ColorByWidget_opacityIcon_5zodx ColorByWidget_icon_hTOma "+n(1).locals.fa+" "+n(1).locals["fa-adjust"]+" ColorByWidget_activeIcon_XBa5F "+n(1).locals["fa-inverse"],colorEditIcon:"ColorByWidget_colorEditIcon_l4tmj ColorByWidget_icon_hTOma "+n(1).locals.fa+" "+n(1).locals["fa-tint"],activeColorEditIcon:"ColorByWidget_activeColorEditIcon_3aghX ColorByWidget_colorEditIcon_l4tmj ColorByWidget_icon_hTOma "+n(1).locals.fa+" "+n(1).locals["fa-tint"]+" ColorByWidget_activeIcon_XBa5F "+n(1).locals["fa-inverse"]}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".ColorPickerWidget_container_35Ipj{min-width:5em;width:100%;box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:-webkit-flex;display:-ms-flexbox;display:flex}.ColorPickerWidget_activeColor_3fIeN{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-bottom:10px}.ColorPickerWidget_colorCanvas_bBpW1{-webkit-flex:none;-ms-flex:none;flex:none;width:1.5em;height:1.5em;border:1px solid #000;margin-right:5px}.ColorPickerWidget_colorRGB_1jqQB{-webkit-flex:1;-ms-flex:1;flex:1;min-width:1em;margin-left:5px;margin-right:5px;border:none;text-align:right;padding-right:10px}.ColorPickerWidget_swatch_3a2Kl{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-left:2px;margin-right:2px}.ColorPickerWidget_swatchImage_3Ol0z{width:100%}",""]),t.locals={container:"ColorPickerWidget_container_35Ipj",activeColor:"ColorPickerWidget_activeColor_3fIeN",colorCanvas:"ColorPickerWidget_colorCanvas_bBpW1",colorRGB:"ColorPickerWidget_colorRGB_1jqQB",swatch:"ColorPickerWidget_swatch_3a2Kl",swatchImage:"ColorPickerWidget_swatchImage_3Ol0z"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".CompositePipelineWidget_container_3Qz3D,.CompositePipelineWidget_section_1FFII{min-width:5em;width:100%;box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:-webkit-flex;display:-ms-flexbox;display:flex}.CompositePipelineWidget_item_20t67{width:100%;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;line-height:2em}.CompositePipelineWidget_label_1jwlg{font-weight:700;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-left:5px;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.CompositePipelineWidget_actions_1y3pI{position:relative;right:0}.CompositePipelineWidget_menu_3zs8K{position:absolute;top:2em;right:5px;border:1px solid #000;padding:5px 10px;background:#fff;border-radius:5px;z-index:2}.CompositePipelineWidget_menuItem_25NIV{cursor:pointer}.CompositePipelineWidget_selectedMenuItem_1l02W{font-weight:700}.CompositePipelineWidget_hidden_S-SSN{display:none}.CompositePipelineWidget_iconButton_3WXWW{-webkit-flex:none;-ms-flex:none;flex:none;margin-right:5px;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;cursor:pointer}.CompositePipelineWidget_fadeButton_2Vwir{color:#aaa}.CompositePipelineWidget_opacity_EBPwR{-webkit-flex:1;-ms-flex:1;flex:1}.CompositePipelineWidget_childItem_QHIps{padding-left:20px}@media screen and (max-device-width:400px){.CompositePipelineWidget_iconButton_3WXWW{font-size:1.45em}.CompositePipelineWidget_opacity_EBPwR{height:35px}.CompositePipelineWidget_childItem_QHIps,.CompositePipelineWidget_item_20t67{line-height:3em}.CompositePipelineWidget_opacity_EBPwR input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}.CompositePipelineWidget_opacity_EBPwR input[type=range]::-moz-range-thumb{-moz-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}}.is-ios-device .CompositePipelineWidget_iconButton_3WXWW{font-size:1.45em}.is-ios-device .CompositePipelineWidget_opacity_EBPwR{height:35px}.is-ios-device .CompositePipelineWidget_childItem_QHIps,.is-ios-device .CompositePipelineWidget_item_20t67{line-height:3em}.is-ios-device .CompositePipelineWidget_opacity_EBPwR input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}.is-ios-device .CompositePipelineWidget_opacity_EBPwR input[type=range]::-moz-range-thumb{-moz-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}",""]),t.locals={container:"CompositePipelineWidget_container_3Qz3D",section:"CompositePipelineWidget_section_1FFII",item:"CompositePipelineWidget_item_20t67",label:"CompositePipelineWidget_label_1jwlg",actions:"CompositePipelineWidget_actions_1y3pI",menu:"CompositePipelineWidget_menu_3zs8K",menuItem:"CompositePipelineWidget_menuItem_25NIV",selectedMenuItem:"CompositePipelineWidget_selectedMenuItem_1l02W CompositePipelineWidget_menuItem_25NIV",hidden:"CompositePipelineWidget_hidden_S-SSN",iconButton:"CompositePipelineWidget_iconButton_3WXWW",fadeButton:"CompositePipelineWidget_fadeButton_2Vwir",editButtonOn:"CompositePipelineWidget_editButtonOn_38yUV CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-pencil"],editButtonOff:"CompositePipelineWidget_editButtonOff_3hWeO CompositePipelineWidget_editButtonOn_38yUV CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-pencil"]+" CompositePipelineWidget_fadeButton_2Vwir",visibleButtonOn:"CompositePipelineWidget_visibleButtonOn_1CiVt CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye"],visibleButtonOff:"CompositePipelineWidget_visibleButtonOff_2cInr CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye-slash"],dropDownButtonOn:"CompositePipelineWidget_dropDownButtonOn_2prdn CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-tint"],dropDownButtonOff:"CompositePipelineWidget_dropDownButtonOff_8yLPD CompositePipelineWidget_dropDownButtonOn_2prdn CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-tint"]+" CompositePipelineWidget_fadeButton_2Vwir",deleteButtonOn:"CompositePipelineWidget_deleteButtonOn_1BUk0 CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-times"],deleteButtonOff:"CompositePipelineWidget_deleteButtonOff_2BBHE CompositePipelineWidget_deleteButtonOn_1BUk0 CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-times"]+" CompositePipelineWidget_fadeButton_2Vwir",activeButton:"CompositePipelineWidget_activeButton_2nWeR CompositePipelineWidget_iconButton_3WXWW "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-check"],opacity:"CompositePipelineWidget_opacity_EBPwR",children:"CompositePipelineWidget_children_2Zgpg",childItem:"CompositePipelineWidget_childItem_QHIps CompositePipelineWidget_item_20t67"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".Coordinate2DWidget_canvas_1rapy{border:1px solid #d3d3d3;float:left;margin-right:3px;font-family:sans-serif}.Coordinate2DWidget_canvas_1rapy:active,.Coordinate2DWidget_CoordinateControl_TOn0Q>.Coordinate2DWidget_canvas_1rapy:hover{cursor:crosshair}.Coordinate2DWidget_input_1zU_J{margin:3px 0 0;padding:2px 0 2px 3px;width:40px}.Coordinate2DWidget_input_1zU_J:first-child{display:block}.Coordinate2DWidget_hidden_1L3wW{display:none}",""]),t.locals={container:"Coordinate2DWidget_container_2Wp89",canvas:"Coordinate2DWidget_canvas_1rapy",CoordinateControl:"Coordinate2DWidget_CoordinateControl_TOn0Q",inputContainer:"Coordinate2DWidget_inputContainer_1atWF",inputLabel:"Coordinate2DWidget_inputLabel_3gGRn",input:"Coordinate2DWidget_input_1zU_J",hidden:"Coordinate2DWidget_hidden_1L3wW"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".DoubleSliderWidget_container_nU2Nh{display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:100%;padding:1px}.DoubleSliderWidget_rangeInput_1qVE0{vertical-align:middle;width:100%}.DoubleSliderWidget_textInput_1U4E0{width:60px;margin-left:10px;box-sizing:border-box}@media screen and (max-width:400px),screen and (orientation:landscape) and (max-device-width:400px){.DoubleSliderWidget_rangeInput_1qVE0::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}.DoubleSliderWidget_rangeInput_1qVE0::-moz-range-thumb{-moz-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}}.is-ios-device .DoubleSliderWidget_rangeInput_1qVE0::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}.is-ios-device .DoubleSliderWidget_rangeInput_1qVE0::-moz-range-thumb{-moz-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}",""]),t.locals={container:"DoubleSliderWidget_container_nU2Nh",rangeInput:"DoubleSliderWidget_rangeInput_1qVE0",textInput:"DoubleSliderWidget_textInput_1U4E0"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".DropDownWidget_container_LtC3l{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.DropDownWidget_list_3WGJr{list-style-type:none;background-color:#fff;border:1px solid #000;border-radius:4px;position:absolute;z-index:10;padding:10px 14px;top:6px;right:-11px;opacity:1}.DropDownWidget_hidden_208dw{display:none}.DropDownWidget_item_3xzl2{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;text-align:left;padding:5px 0}.DropDownWidget_selectedItem_2eOkU{font-weight:700}",""]),t.locals={container:"DropDownWidget_container_LtC3l",list:"DropDownWidget_list_3WGJr",hidden:"DropDownWidget_hidden_208dw",item:"DropDownWidget_item_3xzl2",selectedItem:"DropDownWidget_selectedItem_2eOkU DropDownWidget_item_3xzl2"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".EqualizerWidget_container_26spl{position:relative;width:100%;height:100%}.EqualizerWidget_canvas_2Umay{cursor:pointer}",""]),t.locals={container:"EqualizerWidget_container_26spl",canvas:"EqualizerWidget_canvas_2Umay EqualizerWidget_container_26spl"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".FileBrowserWidget_breadcrumb_2Fndv{width:100%;position:relative;list-style:none;padding:0;margin:0;border-bottom:1px solid #d0d0d0;line-height:30px;vertical-align:middle}.FileBrowserWidget_breadcrumbItem_2GBu0{display:inline;padding-left:10px;color:#555;cursor:pointer}.FileBrowserWidget_breadcrumbItem_2GBu0:before{content:'\\\\';position:relative;left:-5px}.FileBrowserWidget_breadcrumbLabel_1MB8U{position:absolute;right:10px;display:none;width:50%;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FileBrowserWidget_breadcrumbItem_2GBu0:hover{color:#000}.FileBrowserWidget_breadcrumbItem_2GBu0:hover~.FileBrowserWidget_breadcrumbItem_2GBu0{color:#555}.FileBrowserWidget_breadcrumbItem_2GBu0:hover .FileBrowserWidget_breadcrumbLabel_1MB8U{display:inline-block}.FileBrowserWidget_breadcrumbItem_2GBu0:last-child{color:#000}.FileBrowserWidget_breadcrumbItem_2GBu0:last-child .FileBrowserWidget_breadcrumbLabel_1MB8U{display:inline-block}li:hover~li:last-child .FileBrowserWidget_breadcrumbLabel_1MB8U{display:none}",""]),t.locals={container:"FileBrowserWidget_container_tcpXF",breadcrumb:"FileBrowserWidget_breadcrumb_2Fndv",breadcrumbItem:"FileBrowserWidget_breadcrumbItem_2GBu0",breadcrumbLabel:"FileBrowserWidget_breadcrumbLabel_1MB8U",breadcrumbFolderIcon:"FileBrowserWidget_breadcrumbFolderIcon_14TaR "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-folder-open"],folderIcon:"FileBrowserWidget_folderIcon_3R4mB "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-folder-o"],groupIcon:"FileBrowserWidget_groupIcon_2g-yn "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-files-o"],fileIcon:"FileBrowserWidget_fileIcon_kbYLO "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-file-text-o"]}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".GitTreeWidget_cursor_1kjpS{cursor:pointer}.GitTreeWidget_regularText_1pqFZ{font-family:sans-serif}.GitTreeWidget_regularText_1pqFZ::-moz-selection{background-color:transparent}.GitTreeWidget_regularText_1pqFZ::selection{background-color:transparent}.GitTreeWidget_iconText_2M3wP{font-family:FontAwesome;cursor:pointer}",""]),t.locals={cursor:"GitTreeWidget_cursor_1kjpS",regularText:"GitTreeWidget_regularText_1pqFZ",iconText:"GitTreeWidget_iconText_2M3wP"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".InlineToggleButtonWidget_container_1MUMl{display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch}.InlineToggleButtonWidget_button_2Nqv7{border:1px solid #000;display:inline-block;margin:0;padding:5px 10px}.InlineToggleButtonWidget_first_1ztOF{border-radius:5px 0 0 5px}.InlineToggleButtonWidget_last_3ZYpG{border-radius:0 5px 5px 0;border-left:0}.InlineToggleButtonWidget_middle_XP3LQ{border-radius:0;border-left:0}",""]),t.locals={container:"InlineToggleButtonWidget_container_1MUMl",button:"InlineToggleButtonWidget_button_2Nqv7",active:"InlineToggleButtonWidget_active_2JFqR",first:"InlineToggleButtonWidget_first_1ztOF InlineToggleButtonWidget_button_2Nqv7",last:"InlineToggleButtonWidget_last_3ZYpG InlineToggleButtonWidget_button_2Nqv7",middle:"InlineToggleButtonWidget_middle_XP3LQ InlineToggleButtonWidget_button_2Nqv7",activeFirst:"InlineToggleButtonWidget_activeFirst_2HBmT InlineToggleButtonWidget_active_2JFqR InlineToggleButtonWidget_first_1ztOF InlineToggleButtonWidget_button_2Nqv7",activeLast:"InlineToggleButtonWidget_activeLast_2nxRe InlineToggleButtonWidget_active_2JFqR InlineToggleButtonWidget_last_3ZYpG InlineToggleButtonWidget_button_2Nqv7",activeMiddle:"InlineToggleButtonWidget_activeMiddle_Ghpas InlineToggleButtonWidget_active_2JFqR InlineToggleButtonWidget_middle_XP3LQ InlineToggleButtonWidget_button_2Nqv7"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".LayoutsWidget_table_jgae0{cursor:pointer;margin:5px;border:1px solid #333;border-spacing:2px;border-collapse:separate;line-height:5px;border-radius:2px;width:22px;height:22px;float:left}.LayoutsWidget_td_1KV6T{background-color:#333}@media screen and (max-width:400px),screen and (orientation:landscape) and (max-device-width:400px){.LayoutsWidget_table_jgae0{width:55px;height:55px;border-spacing:4px;border:2px solid #333}}.is-ios-device .LayoutsWidget_table_jgae0{width:55px;height:55px;border-spacing:4px;border:2px solid #333}",""]),t.locals={table:"LayoutsWidget_table_jgae0",td:"LayoutsWidget_td_1KV6T"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".LookupTableWidget_container_mfYUl{min-width:5em;width:100%;box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:-webkit-flex;display:-ms-flexbox;display:flex}.LookupTableWidget_line_3PaC1{position:relative;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-top:5px;margin-bottom:5px;height:1.5em}.LookupTableWidget_label_1B2wx,.LookupTableWidget_line_3PaC1>.LookupTableWidget_button_28y6a{padding-top:.25em;padding-bottom:.25em;text-align:center}.LookupTableWidget_label_1B2wx{-webkit-flex:1;-ms-flex:1;flex:1;white-space:nowrap;font-weight:700}.LookupTableWidget_button_28y6a{cursor:pointer;-webkit-flex:none;-ms-flex:none;flex:none;width:1.5em}.LookupTableWidget_disablePreviousButton_3on2D{color:#ccc}.LookupTableWidget_nextButton_3_Sud{text-align:right}.LookupTableWidget_disableNextButton_H-tMa{color:#ccc}.LookupTableWidget_addButton_1P9G2{text-align:right}.LookupTableWidget_canvas_3NI-j{width:calc(100% - 3em);height:1.5em}.LookupTableWidget_range_3BwSv{display:none;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-align-items:stretch;-ms-flex-align:stretch;-ms-grid-row-align:stretch;align-items:stretch}.LookupTableWidget_range_3BwSv>.LookupTableWidget_button_28y6a{-webkit-flex:none;-ms-flex:none;flex:none}.LookupTableWidget_editContent_smoCS{width:100%;box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;display:none}.LookupTableWidget_presets_2VBb3{display:none}.LookupTableWidget_preset_3lpxx{-webkit-flex:1;-ms-flex:1;flex:1;margin-top:5px;margin-bottom:5px;padding:5px 10px;border:1px solid #ccc;text-align:center;cursor:pointer;border-radius:5px}.LookupTableWidget_hiddenPreset_2OdC5{display:none}.LookupTableWidget_presets_2VBb3>i{padding-top:.3em;font-size:150%}.LookupTableWidget_input_2FlgJ{-webkit-flex:1;-ms-flex:1;flex:1;border:none;box-shadow:none;text-align:left;min-width:2em}.LookupTableWidget_inputRight_3h_pT{text-align:right}",""]),t.locals={container:"LookupTableWidget_container_mfYUl",line:"LookupTableWidget_line_3PaC1",button:"LookupTableWidget_button_28y6a",label:"LookupTableWidget_label_1B2wx",editButton:"LookupTableWidget_editButton_c6mFN LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-pencil"],presetButton:"LookupTableWidget_presetButton_3P8hf LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-tint"],resetRangeButton:"LookupTableWidget_resetRangeButton_11zXR LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-arrows-h"],previousButton:"LookupTableWidget_previousButton_3ll79 LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-chevron-left"],disablePreviousButton:"LookupTableWidget_disablePreviousButton_3on2D LookupTableWidget_previousButton_3ll79 LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-chevron-left"],nextButton:"LookupTableWidget_nextButton_3_Sud LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-chevron-right"],disableNextButton:"LookupTableWidget_disableNextButton_H-tMa LookupTableWidget_nextButton_3_Sud LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-chevron-right"],addButton:"LookupTableWidget_addButton_1P9G2 LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-plus"],deleteButton:"LookupTableWidget_deleteButton_2WmTt LookupTableWidget_button_28y6a "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-trash-o"],canvas:"LookupTableWidget_canvas_3NI-j",range:"LookupTableWidget_range_3BwSv",editContent:"LookupTableWidget_editContent_smoCS",presets:"LookupTableWidget_presets_2VBb3",preset:"LookupTableWidget_preset_3lpxx",hiddenPreset:"LookupTableWidget_hiddenPreset_2OdC5",input:"LookupTableWidget_input_2FlgJ",inputRight:"LookupTableWidget_inputRight_3h_pT LookupTableWidget_input_2FlgJ"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".NumberSliderWidget_container_2pgcX{width:100%;padding:1px}.NumberSliderWidget_range_nDtH1{width:calc(100% - 75px);vertical-align:middle}.NumberSliderWidget_text_29NiW{width:60px;margin-left:10px;box-sizing:border-box}@media screen and (max-width:400px),screen and (orientation:landscape) and (max-device-width:400px){.NumberSliderWidget_range_nDtH1::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}.NumberSliderWidget_range_nDtH1::-moz-range-thumb{-moz-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}}.is-ios-device .NumberSliderWidget_range_nDtH1::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}.is-ios-device .NumberSliderWidget_range_nDtH1::-moz-range-thumb{-moz-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}",""]),t.locals={container:"NumberSliderWidget_container_2pgcX",range:"NumberSliderWidget_range_nDtH1",text:"NumberSliderWidget_text_29NiW"}},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,".PresetListWidget_container_2HB9X{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;height:100%;overflow-y:scroll;border:1px solid #000;box-sizing:border-box}.PresetListWidget_line_2bNKS{border:2px solid transparent;border-color:none;min-height:1em;margin-left:3px;margin-right:3px}.PresetListWidget_activeLine_PA6zG{border-color:#000}.PresetListWidget_bottomPadding_1hwad{position:relative;min-height:3px}",""]),t.locals={container:"PresetListWidget_container_2HB9X",line:"PresetListWidget_line_2bNKS",activeLine:"PresetListWidget_activeLine_PA6zG PresetListWidget_line_2bNKS",bottomPadding:"PresetListWidget_bottomPadding_1hwad"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".ProxyEditorWidget_container_xlu8j{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;box-sizing:border-box;max-height:100%}.ProxyEditorWidget_contentContainer_Dnq2A{padding-top:5px;padding-bottom:5px;overflow-y:scroll;max-height:calc(100% - 30px);background:linear-gradient(#eee 10px,hsla(0,0%,100%,0)) 0 0/100% 40px,radial-gradient(at top,rgba(0,0,0,.3),transparent 70%) 0 0/100% 10px,linear-gradient(0deg,#eee 10px,hsla(0,0%,100%,0)) bottom/100% 40px,radial-gradient(at bottom,rgba(0,0,0,.3),transparent 70%) bottom/100% 10px;background-repeat:no-repeat;background-attachment:local,scroll,local,scroll}.ProxyEditorWidget_toolbar_1RvFD{background-color:#ddd;border:1px solid #aaa;line-height:30px;height:30px;min-height:30px;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.ProxyEditorWidget_advancedButton_3Iw3I{padding:5px 10px;cursor:pointer;color:#aaa;-webkit-flex:none;-ms-flex:none;flex:none}.ProxyEditorWidget_activeAdvancedButton_2Ue9r{color:#111;font-weight:200}.ProxyEditorWidget_filter_1wl_g{border-radius:15px;padding:2px 15px;-webkit-flex:1;-ms-flex:1;flex:1;border:1px solid #ddd;line-height:normal}.ProxyEditorWidget_filter_1wl_g:active,.ProxyEditorWidget_filter_1wl_g:focus{border:1px solid #aaa}.ProxyEditorWidget_validateButton_26qVn{padding:5px 10px;cursor:pointer;color:#aaa;-webkit-flex:none;-ms-flex:none;flex:none}.ProxyEditorWidget_validateButtonOn_2svhe{color:#111;font-weight:200}",""]),t.locals={container:"ProxyEditorWidget_container_xlu8j",contentContainer:"ProxyEditorWidget_contentContainer_Dnq2A",toolbar:"ProxyEditorWidget_toolbar_1RvFD",advancedButton:"ProxyEditorWidget_advancedButton_3Iw3I "+n(1).locals.fa+" "+n(1).locals["fa-wrench"],activeAdvancedButton:"ProxyEditorWidget_activeAdvancedButton_2Ue9r ProxyEditorWidget_advancedButton_3Iw3I "+n(1).locals.fa+" "+n(1).locals["fa-wrench"],filter:"ProxyEditorWidget_filter_1wl_g",validateButton:"ProxyEditorWidget_validateButton_26qVn "+n(1).locals.fa+" "+n(1).locals["fa-paper-plane"],validateButtonOn:"ProxyEditorWidget_validateButtonOn_2svhe ProxyEditorWidget_validateButton_26qVn "+n(1).locals.fa+" "+n(1).locals["fa-paper-plane"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".ProxyPropertyGroup_container_2TXcL{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;box-sizing:border-box}.ProxyPropertyGroup_toolbar_3Q8ud{background-color:#ddd;border:1px solid #aaa;line-height:30px;height:30px;min-height:30px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-bottom:5px;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-align-items:center;-ms-flex-align:center;align-items:center;cursor:pointer;font-weight:500}.ProxyPropertyGroup_collapedIcon_23gzO,.ProxyPropertyGroup_expandedIcon_3-HQB{margin-left:10px}.ProxyPropertyGroup_title_i3pQw{text-transform:capitalize}.ProxyPropertyGroup_tag_37Zvo{color:#aaa;font-size:75%;margin-right:10px}.ProxyPropertyGroup_emptyTag_2GfbM{visibility:hidden}.ProxyPropertyGroup_hidden_2k68L{display:none}.ProxyPropertyGroup_content_3PeQR{margin-bottom:5px}",""]),t.locals={container:"ProxyPropertyGroup_container_2TXcL",toolbar:"ProxyPropertyGroup_toolbar_3Q8ud",expandedIcon:"ProxyPropertyGroup_expandedIcon_3-HQB "+n(1).locals.fa+" "+n(1).locals["fa-minus"],collapedIcon:"ProxyPropertyGroup_collapedIcon_23gzO "+n(1).locals.fa+" "+n(1).locals["fa-plus"],title:"ProxyPropertyGroup_title_i3pQw",tag:"ProxyPropertyGroup_tag_37Zvo "+n(1).locals["fa-stack"],emptyTag:"ProxyPropertyGroup_emptyTag_2GfbM ProxyPropertyGroup_tag_37Zvo "+n(1).locals["fa-stack"],tagBackground:"ProxyPropertyGroup_tagBackground_2_ZQi "+n(1).locals["fa-stack-2x"]+" "+n(1).locals["fa-circle"]+" "+n(1).locals.fa,tagCount:"ProxyPropertyGroup_tagCount_2hKSa "+n(1).locals["fa-stack-1x"]+" "+n(1).locals["fa-stack-text"]+" "+n(1).locals["fa-inverse"],hidden:"ProxyPropertyGroup_hidden_2k68L",content:"ProxyPropertyGroup_content_3PeQR"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".QueryDataModelWidget_container_3RiI2{min-width:5em;width:100%;flex-direction:column}.QueryDataModelWidget_container_3RiI2,.QueryDataModelWidget_item_2Lg9R{box-sizing:border-box;-webkit-flex-direction:column;-ms-flex-direction:column;display:-webkit-flex;display:-ms-flexbox;display:flex}.QueryDataModelWidget_item_2Lg9R{-webkit-flex:1;-ms-flex:1;flex:1;flex-direction:column;margin-top:10px;border-left:1px solid #aaa;margin-left:2px;padding-left:10px;padding-right:10px}.QueryDataModelWidget_itemActive_22p9f{border-left:3px solid #000;margin-left:0}.QueryDataModelWidget_row_2pk7N{position:relative;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;margin-top:5px}.QueryDataModelWidget_label_1cxKX{-webkit-flex:1;-ms-flex:1;flex:1;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.QueryDataModelWidget_label_1cxKX:first-letter{text-transform:uppercase}.QueryDataModelWidget_hidden_3d7T7,.QueryDataModelWidget_mobileOnly_2R9HT{display:none}.QueryDataModelWidget_itemControl_2nCKS{display:-webkit-flex;display:-ms-flexbox;display:flex;width:4em;-webkit-flex:none;-ms-flex:none;flex:none;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.QueryDataModelWidget_itemControlValue_pUcp8{position:absolute;top:0;right:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.QueryDataModelWidget_controlButton_3mJby{cursor:pointer;padding-left:5px;padding-right:5px}.QueryDataModelWidget_slider_hVkqm{-webkit-flex:1;-ms-flex:1;flex:1}.QueryDataModelWidget_input_11Zsh{width:100%}@media screen and (max-width:400px),screen and (orientation:landscape) and (max-device-width:400px){.QueryDataModelWidget_mobileOnly_2R9HT{display:-webkit-flex;display:-ms-flexbox;display:flex}.QueryDataModelWidget_itemControl_2nCKS{-webkit-flex:1;-ms-flex:1;flex:1;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.QueryDataModelWidget_controlButton_3mJby{font-size:1.4em;padding:0;text-align:center;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;height:1.5em}.QueryDataModelWidget_noMobile_1ZTqM{display:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}input[type=range]::-moz-range-thumb{-moz-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}}.is-ios-device .QueryDataModelWidget_mobileOnly_2R9HT{display:-webkit-flex;display:-ms-flexbox;display:flex}.is-ios-device .QueryDataModelWidget_itemControl_2nCKS{-webkit-flex:1;-ms-flex:1;flex:1;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.is-ios-device .QueryDataModelWidget_controlButton_3mJby{font-size:1.4em;padding:0;text-align:center;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;height:1.5em}.is-ios-device .QueryDataModelWidget_noMobile_1ZTqM{display:none}.is-ios-device input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}.is-ios-device input[type=range]::-moz-range-thumb{-moz-appearance:none;appearance:none;width:25px;height:25px;border:1px solid gray;background-color:#fff;border-radius:50%}",""]), -t.locals={container:"QueryDataModelWidget_container_3RiI2",item:"QueryDataModelWidget_item_2Lg9R",itemActive:"QueryDataModelWidget_itemActive_22p9f QueryDataModelWidget_item_2Lg9R",row:"QueryDataModelWidget_row_2pk7N",label:"QueryDataModelWidget_label_1cxKX",mobileOnly:"QueryDataModelWidget_mobileOnly_2R9HT",hidden:"QueryDataModelWidget_hidden_3d7T7",itemControl:"QueryDataModelWidget_itemControl_2nCKS",itemControlValue:"QueryDataModelWidget_itemControlValue_pUcp8",controlButton:"QueryDataModelWidget_controlButton_3mJby",nextButton:"QueryDataModelWidget_nextButton_2fV4i "+n(1).locals.fa+" "+n(1).locals["fa-plus"]+" QueryDataModelWidget_controlButton_3mJby",previousButton:"QueryDataModelWidget_previousButton_nMeXB "+n(1).locals.fa+" "+n(1).locals["fa-minus"]+" QueryDataModelWidget_controlButton_3mJby",firstButton:"QueryDataModelWidget_firstButton_1KPIZ "+n(1).locals.fa+" "+n(1).locals["fa-step-backward"]+" QueryDataModelWidget_controlButton_3mJby",lastButton:"QueryDataModelWidget_lastButton_1YZUM "+n(1).locals.fa+" "+n(1).locals["fa-step-forward"]+" QueryDataModelWidget_controlButton_3mJby",slider:"QueryDataModelWidget_slider_hVkqm",input:"QueryDataModelWidget_input_11Zsh",noMobile:"QueryDataModelWidget_noMobile_1ZTqM"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".ScalarRangeWidget_container_l7SVA{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;box-sizing:border-box}.ScalarRangeWidget_rangeInput__qz8c{-webkit-flex:1;-ms-flex:1;flex:1;box-sizing:border-box;width:100%;margin-bottom:5px}.ScalarRangeWidget_actionLine_2dbws{-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.ScalarRangeWidget_iconButton_3QJxC{-webkit-flex:none;-ms-flex:none;flex:none;cursor:pointer;text-align:center;min-width:1.5em;min-height:1.5em;line-height:1.5em;border-radius:5px;background:#ccc;border:1px solid #aaa}",""]),t.locals={container:"ScalarRangeWidget_container_l7SVA",rangeInput:"ScalarRangeWidget_rangeInput__qz8c",actionLine:"ScalarRangeWidget_actionLine_2dbws",iconButton:"ScalarRangeWidget_iconButton_3QJxC "+n(1).locals.fa,dataRangeIcon:"ScalarRangeWidget_dataRangeIcon_1DHDc ScalarRangeWidget_iconButton_3QJxC "+n(1).locals.fa+" "+n(1).locals["fa-database"],timeRangeIcon:"ScalarRangeWidget_timeRangeIcon_38qMZ ScalarRangeWidget_iconButton_3QJxC "+n(1).locals.fa+" "+n(1).locals["fa-clock-o"],customRangeIcon:"ScalarRangeWidget_customRangeIcon_1awzU ScalarRangeWidget_iconButton_3QJxC "+n(1).locals.fa+" "+n(1).locals["fa-user"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".TextInputWidget_container_3uHj-{width:100%;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.TextInputWidget_entry_3M5VH{-webkit-flex:1;-ms-flex:1;flex:1}.TextInputWidget_button_eUaI6{margin-left:10px;-webkit-flex:none;-ms-flex:none;flex:none;cursor:pointer;color:#ccc}.TextInputWidget_editingButton_3ZJPC{color:#000}",""]),t.locals={container:"TextInputWidget_container_3uHj-",entry:"TextInputWidget_entry_3M5VH",button:"TextInputWidget_button_eUaI6 "+n(1).locals.fa+" "+n(1).locals["fa-check"],editingButton:"TextInputWidget_editingButton_3ZJPC TextInputWidget_button_eUaI6 "+n(1).locals.fa+" "+n(1).locals["fa-check"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".ToggleIconButtonWidget_button_ddSk3{cursor:pointer}.ToggleIconButtonWidget_enabledButton_1BFJh{color:#000}.ToggleIconButtonWidget_disabledButton_K7nsj{color:grey}@media screen and (max-width:400px),screen and (orientation:landscape) and (max-device-width:400px){.ToggleIconButtonWidget_button_ddSk3{font-size:1.4em;height:1.5em}}.is-ios-device .ToggleIconButtonWidget_button_ddSk3{font-size:1.4em;height:1.5em}",""]),t.locals={button:"ToggleIconButtonWidget_button_ddSk3 "+n(1).locals.fa+" "+n(1).locals["fa-fw"],enabledButton:"ToggleIconButtonWidget_enabledButton_1BFJh ToggleIconButtonWidget_button_ddSk3 "+n(1).locals.fa+" "+n(1).locals["fa-fw"],disabledButton:"ToggleIconButtonWidget_disabledButton_K7nsj ToggleIconButtonWidget_button_ddSk3 "+n(1).locals.fa+" "+n(1).locals["fa-fw"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".TogglePanelWidget_container_3oz4y{position:relative;display:inline-block;cursor:pointer}.TogglePanelWidget_content_3WN26{position:absolute;z-index:2}.TogglePanelWidget_button_1jpW3{position:absolute}.TogglePanelWidget_button_1jpW3.top,.TogglePanelWidget_content_3WN26.top{top:0}.TogglePanelWidget_button_1jpW3.left,.TogglePanelWidget_content_3WN26.left{left:0}.TogglePanelWidget_button_1jpW3.right,.TogglePanelWidget_content_3WN26.right{right:0}.TogglePanelWidget_button_1jpW3.bottom,.TogglePanelWidget_content_3WN26.bottom{bottom:0}",""]),t.locals={container:"TogglePanelWidget_container_3oz4y",content:"TogglePanelWidget_content_3WN26",panelVisible:"TogglePanelWidget_panelVisible_3crmv "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye"],panelHidden:"TogglePanelWidget_panelHidden_1piRz "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye-slash"],button:"TogglePanelWidget_button_1jpW3"}},function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(a,"ms-"))}var o=n(603),a=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():a(e):[e]}var a=n(614);e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,t){var n=u;u?void 0:l(!1);var o=r(e),a=o&&s(o);if(a){n.innerHTML=a[1]+e+a[2];for(var c=a[0];c--;)n=n.lastChild}else n.innerHTML=e;var f=n.getElementsByTagName("script");f.length&&(t?void 0:l(!1),i(f).forEach(t));for(var p=i(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var a=n(20),i=n(605),s=n(233),l=n(5),u=a.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=o},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(a,"-ms-")}var o=n(608),a=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(610);e.exports=r},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var a in e)r.call(e,a)&&(o[a]=t.call(n,e[a],a,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?o(!1):void 0,"number"!=typeof t?o(!1):void 0,0===t||t-1 in e?void 0:o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),a=0;t>a;a++)r[a]=e[a];return r}var o=n(5);e.exports=r},function(e,t,n){var r=n(235),o={};o.create=function(){var e=new r.ARRAY_TYPE(3);return e[0]=0,e[1]=0,e[2]=0,e},o.clone=function(e){var t=new r.ARRAY_TYPE(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},o.fromValues=function(e,t,n){var o=new r.ARRAY_TYPE(3);return o[0]=e,o[1]=t,o[2]=n,o},o.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},o.set=function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e},o.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e},o.subtract=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e},o.sub=o.subtract,o.multiply=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e},o.mul=o.multiply,o.divide=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e},o.div=o.divide,o.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e},o.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e},o.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e},o.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e},o.distance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return Math.sqrt(n*n+r*r+o*o)},o.dist=o.distance,o.squaredDistance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o},o.sqrDist=o.squaredDistance,o.length=function(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)},o.len=o.length,o.squaredLength=function(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r},o.sqrLen=o.squaredLength,o.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},o.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},o.normalize=function(e,t){var n=t[0],r=t[1],o=t[2],a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e},o.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},o.cross=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=n[0],s=n[1],l=n[2];return e[0]=o*l-a*s,e[1]=a*i-r*l,e[2]=r*s-o*i,e},o.lerp=function(e,t,n,r){var o=t[0],a=t[1],i=t[2];return e[0]=o+r*(n[0]-o),e[1]=a+r*(n[1]-a),e[2]=i+r*(n[2]-i),e},o.hermite=function(e,t,n,r,o,a){var i=a*a,s=i*(2*a-3)+1,l=i*(a-2)+a,u=i*(a-1),c=i*(3-2*a);return e[0]=t[0]*s+n[0]*l+r[0]*u+o[0]*c,e[1]=t[1]*s+n[1]*l+r[1]*u+o[1]*c,e[2]=t[2]*s+n[2]*l+r[2]*u+o[2]*c,e},o.bezier=function(e,t,n,r,o,a){var i=1-a,s=i*i,l=a*a,u=s*i,c=3*a*s,f=3*l*i,p=l*a;return e[0]=t[0]*u+n[0]*c+r[0]*f+o[0]*p,e[1]=t[1]*u+n[1]*c+r[1]*f+o[1]*p,e[2]=t[2]*u+n[2]*c+r[2]*f+o[2]*p,e},o.random=function(e,t){t=t||1;var n=2*r.RANDOM()*Math.PI,o=2*r.RANDOM()-1,a=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=o*t,e},o.transformMat4=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=n[3]*r+n[7]*o+n[11]*a+n[15];return i=i||1,e[0]=(n[0]*r+n[4]*o+n[8]*a+n[12])/i,e[1]=(n[1]*r+n[5]*o+n[9]*a+n[13])/i,e[2]=(n[2]*r+n[6]*o+n[10]*a+n[14])/i,e},o.transformMat3=function(e,t,n){var r=t[0],o=t[1],a=t[2];return e[0]=r*n[0]+o*n[3]+a*n[6],e[1]=r*n[1]+o*n[4]+a*n[7],e[2]=r*n[2]+o*n[5]+a*n[8],e},o.transformQuat=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*o,f=u*o+l*r-i*a,p=u*a+i*o-s*r,d=-i*r-s*o-l*a;return e[0]=c*u+d*-i+f*-l-p*-s,e[1]=f*u+d*-s+p*-i-c*-l,e[2]=p*u+d*-l+c*-s-f*-i,e},o.rotateX=function(e,t,n,r){var o=[],a=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},o.rotateY=function(e,t,n,r){var o=[],a=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},o.rotateZ=function(e,t,n,r){var o=[],a=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},o.forEach=function(){var e=o.create();return function(t,n,r,o,a,i){var s,l;for(n||(n=3),r||(r=0),l=o?Math.min(o*n+r,t.length):t.length,s=r;l>s;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],a(e,e,i),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}}(),o.angle=function(e,t){var n=o.fromValues(e[0],e[1],e[2]),r=o.fromValues(t[0],t[1],t[2]);o.normalize(n,n),o.normalize(r,r);var a=o.dot(n,r);return a>1?0:Math.acos(a)},o.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},e.exports=o},function(e,t,n){var r;/*! Hammer.JS - v2.0.6 - 2015-12-23 +t.locals={container:"QueryDataModelWidget_container_3RiI2",item:"QueryDataModelWidget_item_2Lg9R",itemActive:"QueryDataModelWidget_itemActive_22p9f QueryDataModelWidget_item_2Lg9R",row:"QueryDataModelWidget_row_2pk7N",label:"QueryDataModelWidget_label_1cxKX",mobileOnly:"QueryDataModelWidget_mobileOnly_2R9HT",hidden:"QueryDataModelWidget_hidden_3d7T7",itemControl:"QueryDataModelWidget_itemControl_2nCKS",itemControlValue:"QueryDataModelWidget_itemControlValue_pUcp8",controlButton:"QueryDataModelWidget_controlButton_3mJby",nextButton:"QueryDataModelWidget_nextButton_2fV4i "+n(1).locals.fa+" "+n(1).locals["fa-plus"]+" QueryDataModelWidget_controlButton_3mJby",previousButton:"QueryDataModelWidget_previousButton_nMeXB "+n(1).locals.fa+" "+n(1).locals["fa-minus"]+" QueryDataModelWidget_controlButton_3mJby",firstButton:"QueryDataModelWidget_firstButton_1KPIZ "+n(1).locals.fa+" "+n(1).locals["fa-step-backward"]+" QueryDataModelWidget_controlButton_3mJby",lastButton:"QueryDataModelWidget_lastButton_1YZUM "+n(1).locals.fa+" "+n(1).locals["fa-step-forward"]+" QueryDataModelWidget_controlButton_3mJby",slider:"QueryDataModelWidget_slider_hVkqm",input:"QueryDataModelWidget_input_11Zsh",noMobile:"QueryDataModelWidget_noMobile_1ZTqM"}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".ScalarRangeWidget_container_l7SVA{display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;box-sizing:border-box}.ScalarRangeWidget_rangeInput__qz8c{-webkit-flex:1;-ms-flex:1;flex:1;box-sizing:border-box;width:100%;margin-bottom:5px}.ScalarRangeWidget_actionLine_2dbws{-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}.ScalarRangeWidget_iconButton_3QJxC{-webkit-flex:none;-ms-flex:none;flex:none;cursor:pointer;text-align:center;min-width:1.5em;min-height:1.5em;line-height:1.5em;border-radius:5px;background:#ccc;border:1px solid #aaa}",""]),t.locals={container:"ScalarRangeWidget_container_l7SVA",rangeInput:"ScalarRangeWidget_rangeInput__qz8c",actionLine:"ScalarRangeWidget_actionLine_2dbws",iconButton:"ScalarRangeWidget_iconButton_3QJxC "+n(1).locals.fa,dataRangeIcon:"ScalarRangeWidget_dataRangeIcon_1DHDc ScalarRangeWidget_iconButton_3QJxC "+n(1).locals.fa+" "+n(1).locals["fa-database"],timeRangeIcon:"ScalarRangeWidget_timeRangeIcon_38qMZ ScalarRangeWidget_iconButton_3QJxC "+n(1).locals.fa+" "+n(1).locals["fa-clock-o"],customRangeIcon:"ScalarRangeWidget_customRangeIcon_1awzU ScalarRangeWidget_iconButton_3QJxC "+n(1).locals.fa+" "+n(1).locals["fa-user"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".TextInputWidget_container_3uHj-{width:100%;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.TextInputWidget_entry_3M5VH{-webkit-flex:1;-ms-flex:1;flex:1}.TextInputWidget_button_eUaI6{margin-left:10px;-webkit-flex:none;-ms-flex:none;flex:none;cursor:pointer;color:#ccc}.TextInputWidget_editingButton_3ZJPC{color:#000}",""]),t.locals={container:"TextInputWidget_container_3uHj-",entry:"TextInputWidget_entry_3M5VH",button:"TextInputWidget_button_eUaI6 "+n(1).locals.fa+" "+n(1).locals["fa-check"],editingButton:"TextInputWidget_editingButton_3ZJPC TextInputWidget_button_eUaI6 "+n(1).locals.fa+" "+n(1).locals["fa-check"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".ToggleIconButtonWidget_button_ddSk3{cursor:pointer}.ToggleIconButtonWidget_enabledButton_1BFJh{color:#000}.ToggleIconButtonWidget_disabledButton_K7nsj{color:grey}@media screen and (max-width:400px),screen and (orientation:landscape) and (max-device-width:400px){.ToggleIconButtonWidget_button_ddSk3{font-size:1.4em;height:1.5em}}.is-ios-device .ToggleIconButtonWidget_button_ddSk3{font-size:1.4em;height:1.5em}",""]),t.locals={button:"ToggleIconButtonWidget_button_ddSk3 "+n(1).locals.fa+" "+n(1).locals["fa-fw"],enabledButton:"ToggleIconButtonWidget_enabledButton_1BFJh ToggleIconButtonWidget_button_ddSk3 "+n(1).locals.fa+" "+n(1).locals["fa-fw"],disabledButton:"ToggleIconButtonWidget_disabledButton_K7nsj ToggleIconButtonWidget_button_ddSk3 "+n(1).locals.fa+" "+n(1).locals["fa-fw"]}},function(e,t,n){t=e.exports=n(4)(),t.i(n(1),void 0),t.push([e.id,".TogglePanelWidget_container_3oz4y{position:relative;display:inline-block;cursor:pointer}.TogglePanelWidget_content_3WN26{position:absolute;z-index:2}.TogglePanelWidget_button_1jpW3{position:absolute}.TogglePanelWidget_button_1jpW3.top,.TogglePanelWidget_content_3WN26.top{top:0}.TogglePanelWidget_button_1jpW3.left,.TogglePanelWidget_content_3WN26.left{left:0}.TogglePanelWidget_button_1jpW3.right,.TogglePanelWidget_content_3WN26.right{right:0}.TogglePanelWidget_button_1jpW3.bottom,.TogglePanelWidget_content_3WN26.bottom{bottom:0}",""]),t.locals={container:"TogglePanelWidget_container_3oz4y",content:"TogglePanelWidget_content_3WN26",panelVisible:"TogglePanelWidget_panelVisible_3crmv "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye"],panelHidden:"TogglePanelWidget_panelHidden_1piRz "+n(1).locals.fa+" "+n(1).locals["fa-fw"]+" "+n(1).locals["fa-eye-slash"],button:"TogglePanelWidget_button_1jpW3"}},function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(a,"ms-"))}var o=n(698),a=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():a(e):[e]}var a=n(709);e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,t){var n=u;u?void 0:l(!1);var o=r(e),a=o&&s(o);if(a){n.innerHTML=a[1]+e+a[2];for(var c=a[0];c--;)n=n.lastChild}else n.innerHTML=e;var f=n.getElementsByTagName("script");f.length&&(t?void 0:l(!1),i(f).forEach(t));for(var p=i(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var a=n(23),i=n(700),s=n(269),l=n(5),u=a.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=o},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(a,"-ms-")}var o=n(703),a=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(705);e.exports=r},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var a in e)r.call(e,a)&&(o[a]=t.call(n,e[a],a,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?o(!1):void 0,"number"!=typeof t?o(!1):void 0,0===t||t-1 in e?void 0:o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),a=0;t>a;a++)r[a]=e[a];return r}var o=n(5);e.exports=r},function(e,t,n){var r=n(271),o={};o.create=function(){var e=new r.ARRAY_TYPE(3);return e[0]=0,e[1]=0,e[2]=0,e},o.clone=function(e){var t=new r.ARRAY_TYPE(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},o.fromValues=function(e,t,n){var o=new r.ARRAY_TYPE(3);return o[0]=e,o[1]=t,o[2]=n,o},o.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},o.set=function(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e},o.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e},o.subtract=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e},o.sub=o.subtract,o.multiply=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e},o.mul=o.multiply,o.divide=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e},o.div=o.divide,o.min=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e},o.max=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e},o.scale=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e},o.scaleAndAdd=function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e},o.distance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return Math.sqrt(n*n+r*r+o*o)},o.dist=o.distance,o.squaredDistance=function(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=t[2]-e[2];return n*n+r*r+o*o},o.sqrDist=o.squaredDistance,o.length=function(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)},o.len=o.length,o.squaredLength=function(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r},o.sqrLen=o.squaredLength,o.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},o.inverse=function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},o.normalize=function(e,t){var n=t[0],r=t[1],o=t[2],a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a),e},o.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},o.cross=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=n[0],s=n[1],l=n[2];return e[0]=o*l-a*s,e[1]=a*i-r*l,e[2]=r*s-o*i,e},o.lerp=function(e,t,n,r){var o=t[0],a=t[1],i=t[2];return e[0]=o+r*(n[0]-o),e[1]=a+r*(n[1]-a),e[2]=i+r*(n[2]-i),e},o.hermite=function(e,t,n,r,o,a){var i=a*a,s=i*(2*a-3)+1,l=i*(a-2)+a,u=i*(a-1),c=i*(3-2*a);return e[0]=t[0]*s+n[0]*l+r[0]*u+o[0]*c,e[1]=t[1]*s+n[1]*l+r[1]*u+o[1]*c,e[2]=t[2]*s+n[2]*l+r[2]*u+o[2]*c,e},o.bezier=function(e,t,n,r,o,a){var i=1-a,s=i*i,l=a*a,u=s*i,c=3*a*s,f=3*l*i,p=l*a;return e[0]=t[0]*u+n[0]*c+r[0]*f+o[0]*p,e[1]=t[1]*u+n[1]*c+r[1]*f+o[1]*p,e[2]=t[2]*u+n[2]*c+r[2]*f+o[2]*p,e},o.random=function(e,t){t=t||1;var n=2*r.RANDOM()*Math.PI,o=2*r.RANDOM()-1,a=Math.sqrt(1-o*o)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=o*t,e},o.transformMat4=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=n[3]*r+n[7]*o+n[11]*a+n[15];return i=i||1,e[0]=(n[0]*r+n[4]*o+n[8]*a+n[12])/i,e[1]=(n[1]*r+n[5]*o+n[9]*a+n[13])/i,e[2]=(n[2]*r+n[6]*o+n[10]*a+n[14])/i,e},o.transformMat3=function(e,t,n){var r=t[0],o=t[1],a=t[2];return e[0]=r*n[0]+o*n[3]+a*n[6],e[1]=r*n[1]+o*n[4]+a*n[7],e[2]=r*n[2]+o*n[5]+a*n[8],e},o.transformQuat=function(e,t,n){var r=t[0],o=t[1],a=t[2],i=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*o,f=u*o+l*r-i*a,p=u*a+i*o-s*r,d=-i*r-s*o-l*a;return e[0]=c*u+d*-i+f*-l-p*-s,e[1]=f*u+d*-s+p*-i-c*-l,e[2]=p*u+d*-l+c*-s-f*-i,e},o.rotateX=function(e,t,n,r){var o=[],a=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},o.rotateY=function(e,t,n,r){var o=[],a=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},o.rotateZ=function(e,t,n,r){var o=[],a=[];return o[0]=t[0]-n[0],o[1]=t[1]-n[1],o[2]=t[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],e[0]=a[0]+n[0],e[1]=a[1]+n[1],e[2]=a[2]+n[2],e},o.forEach=function(){var e=o.create();return function(t,n,r,o,a,i){var s,l;for(n||(n=3),r||(r=0),l=o?Math.min(o*n+r,t.length):t.length,s=r;l>s;s+=n)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],a(e,e,i),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}}(),o.angle=function(e,t){var n=o.fromValues(e[0],e[1],e[2]),r=o.fromValues(t[0],t[1],t[2]);o.normalize(n,n),o.normalize(r,r);var a=o.dot(n,r);return a>1?0:Math.acos(a)},o.str=function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},e.exports=o},function(e,t,n){var r;/*! Hammer.JS - v2.0.6 - 2015-12-23 * http://hammerjs.github.io/ * * Copyright (c) 2015 Jorik Tangelder; * Licensed under the license */ -!function(o,a,i,s){"use strict";function l(e,t,n){return setTimeout(d(e,n),t)}function u(e,t,n){return Array.isArray(e)?(c(e,n[t],n),!0):!1}function c(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function f(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=o.console&&(o.console.warn||o.console.log);return a&&a.call(o.console,r,n),e.apply(this,arguments)}}function p(e,t,n){var r,o=t.prototype;r=e.prototype=Object.create(o),r.constructor=e,r._super=o,n&&fe(r,n)}function d(e,t){return function(){return e.apply(t,arguments)}}function h(e,t){return typeof e==he?e.apply(t?t[0]||s:s,t):e}function g(e,t){return e===s?t:e}function m(e,t,n){c(b(t),function(t){e.addEventListener(t,n,!1)})}function v(e,t,n){c(b(t),function(t){e.removeEventListener(t,n,!1)})}function _(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function y(e,t){return e.indexOf(t)>-1}function b(e){return e.trim().split(/\s+/g)}function w(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function x(e){return Array.prototype.slice.call(e,0)}function C(e,t,n){for(var r=[],o=[],a=0;a<e.length;){var i=t?e[a][t]:e[a];w(o,i)<0&&r.push(e[a]),o[a]=i,a++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}function E(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),a=0;a<pe.length;){if(n=pe[a],r=n?n+o:t,r in e)return r;a++}return s}function T(){return be++}function P(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}function k(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){h(e.options.enable,[e])&&n.handler(t)},this.init()}function M(e){var t,n=e.options.inputClass;return new(t=n?n:Ce?V:Ee?H:xe?G:U)(e,S)}function S(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,a=t&De&&r-o===0,i=t&(Ae|Ie)&&r-o===0;n.isFirst=!!a,n.isFinal=!!i,a&&(e.session={}),n.eventType=t,D(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function D(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=I(t)),o>1&&!n.firstMultiple?n.firstMultiple=I(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,i=n.firstMultiple,s=i?i.center:a.center,l=t.center=O(r);t.timeStamp=ve(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=B(s,l),t.distance=L(s,l),R(n,t),t.offsetDirection=F(t.deltaX,t.deltaY);var u=N(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=me(u.x)>me(u.y)?u.x:u.y,t.scale=i?W(i.pointers,r):1,t.rotation=i?j(i.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,A(n,t);var c=e.element;_(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function R(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},a=e.prevInput||{};t.eventType!==De&&a.eventType!==Ae||(o=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}function A(e,t){var n,r,o,a,i=e.lastInterval||t,l=t.timeStamp-i.timeStamp;if(t.eventType!=Ie&&(l>Se||i.velocity===s)){var u=t.deltaX-i.deltaX,c=t.deltaY-i.deltaY,f=N(l,u,c);r=f.x,o=f.y,n=me(f.x)>me(f.y)?f.x:f.y,a=F(u,c),e.lastInterval=t}else n=i.velocity,r=i.velocityX,o=i.velocityY,a=i.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=a}function I(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:ge(e.pointers[n].clientX),clientY:ge(e.pointers[n].clientY)},n++;return{timeStamp:ve(),pointers:t,center:O(t),deltaX:e.deltaX,deltaY:e.deltaY}}function O(e){var t=e.length;if(1===t)return{x:ge(e[0].clientX),y:ge(e[0].clientY)};for(var n=0,r=0,o=0;t>o;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:ge(n/t),y:ge(r/t)}}function N(e,t,n){return{x:t/e||0,y:n/e||0}}function F(e,t){return e===t?Oe:me(e)>=me(t)?0>e?Ne:Fe:0>t?Le:Be}function L(e,t,n){n||(n=Ve);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function B(e,t,n){n||(n=Ve);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}function j(e,t){return B(t[1],t[0],ze)+B(e[1],e[0],ze)}function W(e,t){return L(t[0],t[1],ze)/L(e[0],e[1],ze)}function U(){this.evEl=He,this.evWin=Xe,this.allow=!0,this.pressed=!1,k.apply(this,arguments)}function V(){this.evEl=Qe,this.evWin=Ke,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function z(){this.evTarget=Je,this.evWin=$e,this.started=!1,k.apply(this,arguments)}function q(e,t){var n=x(e.touches),r=x(e.changedTouches);return t&(Ae|Ie)&&(n=C(n.concat(r),"identifier",!0)),[n,r]}function H(){this.evTarget=tt,this.targetIds={},k.apply(this,arguments)}function X(e,t){var n=x(e.touches),r=this.targetIds;if(t&(De|Re)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,a,i=x(e.changedTouches),s=[],l=this.target;if(a=n.filter(function(e){return _(e.target,l)}),t===De)for(o=0;o<a.length;)r[a[o].identifier]=!0,o++;for(o=0;o<i.length;)r[i[o].identifier]&&s.push(i[o]),t&(Ae|Ie)&&delete r[i[o].identifier],o++;return s.length?[C(a.concat(s),"identifier",!0),s]:void 0}function G(){k.apply(this,arguments);var e=d(this.handler,this);this.touch=new H(this.manager,e),this.mouse=new U(this.manager,e)}function Y(e,t){this.manager=e,this.set(t)}function Q(e){if(y(e,st))return st;var t=y(e,lt),n=y(e,ut);return t&&n?st:t||n?t?lt:ut:y(e,it)?it:at}function K(e){this.options=fe({},this.defaults,e||{}),this.id=T(),this.manager=null,this.options.enable=g(this.options.enable,!0),this.state=ct,this.simultaneous={},this.requireFail=[]}function Z(e){return e>?"cancel":e&dt?"end":e&pt?"move":e&ft?"start":""}function J(e){return e==Be?"down":e==Le?"up":e==Ne?"left":e==Fe?"right":""}function $(e,t){var n=t.manager;return n?n.get(e):e}function ee(){K.apply(this,arguments)}function te(){ee.apply(this,arguments),this.pX=null,this.pY=null}function ne(){ee.apply(this,arguments)}function re(){K.apply(this,arguments),this._timer=null,this._input=null}function oe(){ee.apply(this,arguments)}function ae(){ee.apply(this,arguments)}function ie(){K.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function se(e,t){return t=t||{},t.recognizers=g(t.recognizers,se.defaults.preset),new le(e,t)}function le(e,t){this.options=fe({},se.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.element=e,this.input=M(this),this.touchAction=new Y(this,this.options.touchAction),ue(this,!0),c(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function ue(e,t){var n=e.element;n.style&&c(e.options.cssProps,function(e,r){n.style[E(n.style,r)]=t?e:""})}function ce(e,t){var n=a.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var fe,pe=["","webkit","Moz","MS","ms","o"],de=a.createElement("div"),he="function",ge=Math.round,me=Math.abs,ve=Date.now;fe="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var _e=f(function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===s)&&(e[r[o]]=t[r[o]]),o++;return e},"extend","Use `assign`."),ye=f(function(e,t){return _e(e,t,!0)},"merge","Use `assign`."),be=1,we=/mobile|tablet|ip(ad|hone|od)|android/i,xe="ontouchstart"in o,Ce=E(o,"PointerEvent")!==s,Ee=xe&&we.test(navigator.userAgent),Te="touch",Pe="pen",ke="mouse",Me="kinect",Se=25,De=1,Re=2,Ae=4,Ie=8,Oe=1,Ne=2,Fe=4,Le=8,Be=16,je=Ne|Fe,We=Le|Be,Ue=je|We,Ve=["x","y"],ze=["clientX","clientY"];k.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(P(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(P(this.element),this.evWin,this.domHandler)}};var qe={mousedown:De,mousemove:Re,mouseup:Ae},He="mousedown",Xe="mousemove mouseup";p(U,k,{handler:function(e){var t=qe[e.type];t&De&&0===e.button&&(this.pressed=!0),t&Re&&1!==e.which&&(t=Ae),this.pressed&&this.allow&&(t&Ae&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:ke,srcEvent:e}))}});var Ge={pointerdown:De,pointermove:Re,pointerup:Ae,pointercancel:Ie,pointerout:Ie},Ye={2:Te,3:Pe,4:ke,5:Me},Qe="pointerdown",Ke="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(Qe="MSPointerDown",Ke="MSPointerMove MSPointerUp MSPointerCancel"),p(V,k,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=Ge[r],a=Ye[e.pointerType]||e.pointerType,i=a==Te,s=w(t,e.pointerId,"pointerId");o&De&&(0===e.button||i)?0>s&&(t.push(e),s=t.length-1):o&(Ae|Ie)&&(n=!0),0>s||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:a,srcEvent:e}),n&&t.splice(s,1))}});var Ze={touchstart:De,touchmove:Re,touchend:Ae,touchcancel:Ie},Je="touchstart",$e="touchstart touchmove touchend touchcancel";p(z,k,{handler:function(e){var t=Ze[e.type];if(t===De&&(this.started=!0),this.started){var n=q.call(this,e,t);t&(Ae|Ie)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Te,srcEvent:e})}}});var et={touchstart:De,touchmove:Re,touchend:Ae,touchcancel:Ie},tt="touchstart touchmove touchend touchcancel";p(H,k,{handler:function(e){var t=et[e.type],n=X.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Te,srcEvent:e})}}),p(G,k,{handler:function(e,t,n){var r=n.pointerType==Te,o=n.pointerType==ke;if(r)this.mouse.allow=!1;else if(o&&!this.mouse.allow)return;t&(Ae|Ie)&&(this.mouse.allow=!0),this.callback(e,t,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var nt=E(de.style,"touchAction"),rt=nt!==s,ot="compute",at="auto",it="manipulation",st="none",lt="pan-x",ut="pan-y";Y.prototype={set:function(e){e==ot&&(e=this.compute()),rt&&this.manager.element.style&&(this.manager.element.style[nt]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return c(this.manager.recognizers,function(t){h(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),Q(e.join(" "))},preventDefaults:function(e){if(!rt){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var r=this.actions,o=y(r,st),a=y(r,ut),i=y(r,lt);if(o){var s=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(s&&l&&u)return}if(!i||!a)return o||a&&n&je||i&&n&We?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ct=1,ft=2,pt=4,dt=8,ht=dt,gt=16,mt=32;K.prototype={defaults:{},set:function(e){return fe(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(u(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=$(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return u(e,"dropRecognizeWith",this)?this:(e=$(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(u(e,"requireFailure",this))return this;var t=this.requireFail;return e=$(e,this),-1===w(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(u(e,"dropRequireFailure",this))return this;e=$(e,this);var t=w(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,r=this.state;dt>r&&t(n.options.event+Z(r)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),r>=dt&&t(n.options.event+Z(r))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=mt)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(mt|ct)))return!1;e++}return!0},recognize:function(e){var t=fe({},e);return h(this.options.enable,[this,t])?(this.state&(ht|gt|mt)&&(this.state=ct),this.state=this.process(t),void(this.state&(ft|pt|dt|gt)&&this.tryEmit(t))):(this.reset(),void(this.state=mt))},process:function(e){},getTouchAction:function(){},reset:function(){}},p(ee,K,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=t&(ft|pt),o=this.attrTest(e);return r&&(n&Ie||!o)?t|gt:r||o?n&Ae?t|dt:t&ft?t|pt:ft:mt}}),p(te,ee,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ue},getTouchAction:function(){var e=this.options.direction,t=[];return e&je&&t.push(ut),e&We&&t.push(lt),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,a=e.deltaX,i=e.deltaY;return o&t.direction||(t.direction&je?(o=0===a?Oe:0>a?Ne:Fe,n=a!=this.pX,r=Math.abs(e.deltaX)):(o=0===i?Oe:0>i?Le:Be,n=i!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return ee.prototype.attrTest.call(this,e)&&(this.state&ft||!(this.state&ft)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=J(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),p(ne,ee,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[st]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&ft)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),p(re,K,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[at]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(Ae|Ie)&&!o)this.reset();else if(e.eventType&De)this.reset(),this._timer=l(function(){this.state=ht,this.tryEmit()},t.time,this);else if(e.eventType&Ae)return ht;return mt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===ht&&(e&&e.eventType&Ae?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=ve(),this.manager.emit(this.options.event,this._input)))}}),p(oe,ee,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[st]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&ft)}}),p(ae,ee,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:je|We,pointers:1},getTouchAction:function(){return te.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(je|We)?t=e.overallVelocity:n&je?t=e.overallVelocityX:n&We&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&me(t)>this.options.velocity&&e.eventType&Ae},emit:function(e){var t=J(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),p(ie,K,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[it]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),e.eventType&De&&0===this.count)return this.failTimeout();if(r&&o&&n){if(e.eventType!=Ae)return this.failTimeout();var a=this.pTime?e.timeStamp-this.pTime<t.interval:!0,i=!this.pCenter||L(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,i&&a?this.count+=1:this.count=1,this._input=e;var s=this.count%t.taps;if(0===s)return this.hasRequireFailures()?(this._timer=l(function(){this.state=ht,this.tryEmit()},t.interval,this),ft):ht}return mt},failTimeout:function(){return this._timer=l(function(){this.state=mt},this.options.interval,this),mt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ht&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),se.VERSION="2.0.6",se.defaults={domEvents:!1,touchAction:ot,enable:!0,inputTarget:null,inputClass:null,preset:[[oe,{enable:!1}],[ne,{enable:!1},["rotate"]],[ae,{direction:je}],[te,{direction:je},["swipe"]],[ie],[ie,{event:"doubletap",taps:2},["tap"]],[re]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var vt=1,_t=2;le.prototype={set:function(e){return fe(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?_t:vt},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,r=this.recognizers,o=t.curRecognizer;(!o||o&&o.state&ht)&&(o=t.curRecognizer=null);for(var a=0;a<r.length;)n=r[a],t.stopped===_t||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&n.state&(ft|pt|dt)&&(o=t.curRecognizer=n),a++}},get:function(e){if(e instanceof K)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(u(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(u(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=w(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){var n=this.handlers;return c(b(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this},off:function(e,t){var n=this.handlers;return c(b(e),function(e){t?n[e]&&n[e].splice(w(n[e],t),1):delete n[e]}),this},emit:function(e,t){this.options.domEvents&&ce(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&ue(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},fe(se,{INPUT_START:De,INPUT_MOVE:Re,INPUT_END:Ae,INPUT_CANCEL:Ie,STATE_POSSIBLE:ct,STATE_BEGAN:ft,STATE_CHANGED:pt,STATE_ENDED:dt,STATE_RECOGNIZED:ht,STATE_CANCELLED:gt,STATE_FAILED:mt,DIRECTION_NONE:Oe,DIRECTION_LEFT:Ne,DIRECTION_RIGHT:Fe,DIRECTION_UP:Le,DIRECTION_DOWN:Be,DIRECTION_HORIZONTAL:je,DIRECTION_VERTICAL:We,DIRECTION_ALL:Ue,Manager:le,Input:k,TouchAction:Y,TouchInput:H,MouseInput:U,PointerEventInput:V,TouchMouseInput:G,SingleTouchInput:z,Recognizer:K,AttrRecognizer:ee,Tap:ie,Pan:te,Swipe:ae,Pinch:ne,Rotate:oe,Press:re,on:m,off:v,each:c,merge:ye,extend:_e,assign:fe,inherit:p,bindFn:d,prefixed:E});var yt="undefined"!=typeof o?o:"undefined"!=typeof self?self:{};yt.Hammer=se,r=function(){return se}.call(t,n,t,e),!(r!==s&&(e.exports=r))}(window,document,"Hammer")},function(e,t){e.exports={_args:[["autobahn@0.9.6","/Users/seb/Documents/code/paraviewweb"]],_from:"autobahn@0.9.6",_id:"autobahn@0.9.6",_inCache:!0,_installable:!0,_location:"/autobahn",_npmUser:{email:"tobias.oberstein@tavendo.de",name:"oberstet"},_npmVersion:"1.3.21",_phantomChildren:{},_requested:{name:"autobahn",raw:"autobahn@0.9.6",rawSpec:"0.9.6",scope:null,spec:"0.9.6",type:"version"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/autobahn/-/autobahn-0.9.6.tgz",_shasum:"51efec0cdb056872a1c698275260f67d7a3d32e3",_shrinkwrap:null,_spec:"autobahn@0.9.6",_where:"/Users/seb/Documents/code/paraviewweb",author:{name:"Tavendo GmbH"},bugs:{url:"https://github.com/tavendo/AutobahnJS/issues"},dependencies:{"crypto-js":">= 3.1.2-2",when:">= 2.8.0",ws:">= 0.4.31"},description:"An implementation of The Web Application Messaging Protocol (WAMP).",devDependencies:{browserify:">= 3.28.1",nodeunit:">= 0.8.6"},directories:{},dist:{shasum:"51efec0cdb056872a1c698275260f67d7a3d32e3",tarball:"http://registry.npmjs.org/autobahn/-/autobahn-0.9.6.tgz"},homepage:"https://github.com/tavendo/AutobahnJS",keywords:["PubSub","RPC","WAMP","WebSocket"],license:"MIT",main:"index.js",maintainers:[{name:"oberstet",email:"tobias.oberstein@tavendo.de"}],name:"autobahn",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"git://github.com/tavendo/AutobahnJS.git"},scripts:{test:"nodeunit test/test.js"},version:"0.9.6"}},function(e,t,n){var r;(function(e,o){(function(){function a(e,t){if(e!==t){var n=null===e,r=e===k,o=e===e,a=null===t,i=t===k,s=t===t;if(e>t&&!a||!o||n&&!i&&s||r&&s)return 1;if(t>e&&!n||!s||a&&!r&&o||i&&o)return-1}return 0}function i(e,t,n){for(var r=e.length,o=n?r:-1;n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function s(e,t,n){if(t!==t)return _(e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function l(e){return"function"==typeof e||!1}function u(e){return null==e?"":e+""}function c(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}function f(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function p(e,t){return a(e.criteria,t.criteria)||e.index-t.index}function d(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,l=n.length;++r<s;){var u=a(o[r],i[r]);if(u){if(r>=l)return u;var c=n[r];return u*("asc"===c||c===!0?1:-1)}}return e.index-t.index}function h(e){return Xe[e]}function g(e){return Ge[e]}function m(e,t,n){return t?e=Ke[e]:n&&(e=Ze[e]),"\\"+e}function v(e){return"\\"+Ze[e]}function _(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var a=e[o];if(a!==a)return o}return-1}function y(e){return!!e&&"object"==typeof e}function b(e){return 160>=e&&e>=9&&13>=e||32==e||160==e||5760==e||6158==e||e>=8192&&(8202>=e||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function w(e,t){for(var n=-1,r=e.length,o=-1,a=[];++n<r;)e[n]===t&&(e[n]=X,a[++o]=n);return a}function x(e,t){for(var n,r=-1,o=e.length,a=-1,i=[];++r<o;){var s=e[r],l=t?t(s,r,e):s;r&&n===l||(n=l,i[++a]=s)}return i}function C(e){for(var t=-1,n=e.length;++t<n&&b(e.charCodeAt(t)););return t}function E(e){for(var t=e.length;t--&&b(e.charCodeAt(t)););return t}function T(e){return Ye[e]}function P(e){function t(e){if(y(e)&&!Ss(e)&&!(e instanceof o)){if(e instanceof r)return e;if(ti.call(e,"__chain__")&&ti.call(e,"__wrapped__"))return dr(e)}return new r(e)}function n(){}function r(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mi,this.__views__=[]}function b(){var e=new o(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function $(){if(this.__filtered__){var e=new o(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function re(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ss(e),r=0>t,o=n?e.length:0,a=Xn(0,o,this.__views__),i=a.start,s=a.end,l=s-i,u=r?s:i-1,c=this.__iteratees__,f=c.length,p=0,d=Ci(l,this.__takeCount__);if(!n||V>o||o==l&&d==l)return nn(r&&n?e.reverse():e,this.__actions__);var h=[];e:for(;l--&&d>p;){u+=t;for(var g=-1,m=e[u];++g<f;){var v=c[g],_=v.iteratee,y=v.type,b=_(m);if(y==q)m=b;else if(!b){if(y==z)continue e;break e}}h[p++]=m}return h}function ae(){this.__data__={}}function Xe(e){return this.has(e)&&delete this.__data__[e]}function Ge(e){return"__proto__"==e?k:this.__data__[e]}function Ye(e){return"__proto__"!=e&&ti.call(this.__data__,e)}function Qe(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function Ke(e){var t=e?e.length:0;for(this.data={hash:vi(null),set:new fi};t--;)this.push(e[t])}function Ze(e,t){var n=e.data,r="string"==typeof t||No(t)?n.set.has(t):n.hash[t];return r?0:-1}function Je(e){var t=this.data;"string"==typeof e||No(e)?t.set.add(e):t.hash[e]=!0}function $e(e,t){for(var n=-1,r=e.length,o=-1,a=t.length,i=Ua(r+a);++n<r;)i[n]=e[n];for(;++o<a;)i[n++]=t[o];return i}function et(e,t){var n=-1,r=e.length;for(t||(t=Ua(r));++n<r;)t[n]=e[n];return t}function tt(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nt(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function at(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function it(e,t,n,r){for(var o=-1,a=e.length,i=r,s=i;++o<a;){var l=e[o],u=+t(l);n(u,i)&&(i=u,s=l)}return s}function st(e,t){for(var n=-1,r=e.length,o=-1,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[++o]=i)}return a}function lt(e,t){for(var n=-1,r=e.length,o=Ua(r);++n<r;)o[n]=t(e[n],n,e);return o}function ut(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function ct(e,t,n,r){var o=-1,a=e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function ft(e,t,n,r){var o=e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function pt(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function dt(e,t){for(var n=e.length,r=0;n--;)r+=+t(e[n])||0;return r}function ht(e,t){return e===k?t:e}function gt(e,t,n,r){return e!==k&&ti.call(r,n)?e:t}function mt(e,t,n){for(var r=-1,o=Ws(t),a=o.length;++r<a;){var i=o[r],s=e[i],l=n(s,t[i],i,e,t);(l===l?l===s:s!==s)&&(s!==k||i in e)||(e[i]=l)}return e}function vt(e,t){return null==t?e:yt(t,Ws(t),e)}function _t(e,t){for(var n=-1,r=null==e,o=!r&&Zn(e),a=o?e.length:0,i=t.length,s=Ua(i);++n<i;){var l=t[n];o?s[n]=Jn(l,a)?e[l]:k:s[n]=r?k:e[l]}return s}function yt(e,t,n){n||(n={});for(var r=-1,o=t.length;++r<o;){var a=t[r];n[a]=e[a]}return n}function bt(e,t,n){var r=typeof e;return"function"==r?t===k?e:an(e,t,n):null==e?Ma:"object"==r?jt(e):t===k?Oa(e):Wt(e,t)}function wt(e,t,n,r,o,a,i){var s;if(n&&(s=o?n(e,r,o):n(e)),s!==k)return s;if(!No(e))return e;var l=Ss(e);if(l){if(s=Gn(e),!t)return et(e,s)}else{var u=ri.call(e),c=u==J;if(u!=te&&u!=G&&(!c||o))return He[u]?Qn(e,u,t):o?e:{};if(s=Yn(c?{}:e),!t)return vt(s,e)}a||(a=[]),i||(i=[]);for(var f=a.length;f--;)if(a[f]==e)return i[f];return a.push(e),i.push(s),(l?tt:Rt)(e,function(r,o){s[o]=wt(r,t,n,o,e,a,i)}),s}function xt(e,t,n){if("function"!=typeof e)throw new Ka(H);return pi(function(){e.apply(k,n)},t)}function Ct(e,t){var n=e?e.length:0,r=[];if(!n)return r;var o=-1,a=zn(),i=a==s,l=i&&t.length>=V?gn(t):null,u=t.length;l&&(a=Ze,i=!1,t=l);e:for(;++o<n;){var c=e[o];if(i&&c===c){for(var f=u;f--;)if(t[f]===c)continue e;r.push(c)}else a(t,c,0)<0&&r.push(c)}return r}function Et(e,t){var n=!0;return Fi(e,function(e,r,o){return n=!!t(e,r,o)}),n}function Tt(e,t,n,r){var o=r,a=o;return Fi(e,function(e,i,s){var l=+t(e,i,s);(n(l,o)||l===r&&l===a)&&(o=l,a=e)}),a}function Pt(e,t,n,r){var o=e.length;for(n=null==n?0:+n||0,0>n&&(n=-n>o?0:o+n),r=r===k||r>o?o:+r||0,0>r&&(r+=o),o=n>r?0:r>>>0,n>>>=0;o>n;)e[n++]=t;return e}function kt(e,t){var n=[];return Fi(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Mt(e,t,n,r){var o;return n(e,function(e,n,a){return t(e,n,a)?(o=r?n:e,!1):void 0}),o}function St(e,t,n,r){r||(r=[]);for(var o=-1,a=e.length;++o<a;){var i=e[o];y(i)&&Zn(i)&&(n||Ss(i)||Po(i))?t?St(i,t,n,r):ut(r,i):n||(r[r.length]=i)}return r}function Dt(e,t){return Bi(e,t,ta)}function Rt(e,t){return Bi(e,t,Ws)}function At(e,t){return ji(e,t,Ws)}function It(e,t){for(var n=-1,r=t.length,o=-1,a=[];++n<r;){var i=t[n];Oo(e[i])&&(a[++o]=i)}return a}function Ot(e,t,n){if(null!=e){n!==k&&n in fr(e)&&(t=[n]);for(var r=0,o=t.length;null!=e&&o>r;)e=e[t[r++]];return r&&r==o?e:k}}function Nt(e,t,n,r,o,a){return e===t?!0:null==e||null==t||!No(e)&&!y(t)?e!==e&&t!==t:Ft(e,t,Nt,n,r,o,a)}function Ft(e,t,n,r,o,a,i){var s=Ss(e),l=Ss(t),u=Y,c=Y;s||(u=ri.call(e),u==G?u=te:u!=te&&(s=qo(e))),l||(c=ri.call(t),c==G?c=te:c!=te&&(l=qo(t)));var f=u==te,p=c==te,d=u==c;if(d&&!s&&!f)return jn(e,t,u);if(!o){var h=f&&ti.call(e,"__wrapped__"),g=p&&ti.call(t,"__wrapped__");if(h||g)return n(h?e.value():e,g?t.value():t,r,o,a,i)}if(!d)return!1;a||(a=[]),i||(i=[]);for(var m=a.length;m--;)if(a[m]==e)return i[m]==t;a.push(e),i.push(t);var v=(s?Bn:Wn)(e,t,n,r,o,a,i);return a.pop(),i.pop(),v}function Lt(e,t,n){var r=t.length,o=r,a=!n;if(null==e)return!o;for(e=fr(e);r--;){var i=t[r];if(a&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++r<o;){i=t[r];var s=i[0],l=e[s],u=i[1];if(a&&i[2]){if(l===k&&!(s in e))return!1}else{var c=n?n(l,u,s):k;if(!(c===k?Nt(u,l,n,!0):c))return!1}}return!0}function Bt(e,t){var n=-1,r=Zn(e)?Ua(e.length):[];return Fi(e,function(e,o,a){r[++n]=t(e,o,a)}),r}function jt(e){var t=qn(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:e[n]===r&&(r!==k||n in fr(e))}}return function(e){return Lt(e,t)}}function Wt(e,t){var n=Ss(e),r=er(e)&&rr(t),o=e+"";return e=pr(e),function(a){if(null==a)return!1;var i=o;if(a=fr(a),(n||!r)&&!(i in a)){if(a=1==e.length?a:Ot(a,Yt(e,0,-1)),null==a)return!1;i=Pr(e),a=fr(a)}return a[i]===t?t!==k||i in a:Nt(t,a[i],k,!0)}}function Ut(e,t,n,r,o){if(!No(e))return e;var a=Zn(t)&&(Ss(t)||qo(t)),i=a?k:Ws(t);return tt(i||t,function(s,l){if(i&&(l=s,s=t[l]),y(s))r||(r=[]),o||(o=[]),Vt(e,t,l,Ut,n,r,o);else{var u=e[l],c=n?n(u,s,l,e,t):k,f=c===k;f&&(c=s),c===k&&(!a||l in e)||!f&&(c===c?c===u:u!==u)||(e[l]=c)}}),e}function Vt(e,t,n,r,o,a,i){for(var s=a.length,l=t[n];s--;)if(a[s]==l)return void(e[n]=i[s]);var u=e[n],c=o?o(u,l,n,e,t):k,f=c===k;f&&(c=l,Zn(l)&&(Ss(l)||qo(l))?c=Ss(u)?u:Zn(u)?et(u):[]:Uo(l)||Po(l)?c=Po(u)?Qo(u):Uo(u)?u:{}:f=!1),a.push(l),i.push(c),f?e[n]=r(c,l,o,a,i):(c===c?c!==u:u===u)&&(e[n]=c)}function zt(e){return function(t){return null==t?k:t[e]}}function qt(e){var t=e+"";return e=pr(e),function(n){return Ot(n,e,t)}}function Ht(e,t){for(var n=e?t.length:0;n--;){var r=t[n];if(r!=o&&Jn(r)){var o=r;di.call(e,r,1)}}return e}function Xt(e,t){return e+_i(Pi()*(t-e+1))}function Gt(e,t,n,r,o){return o(e,function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)}),n}function Yt(e,t,n){var r=-1,o=e.length;t=null==t?0:+t||0,0>t&&(t=-t>o?0:o+t),n=n===k||n>o?o:+n||0,0>n&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Ua(o);++r<o;)a[r]=e[r+t];return a}function Qt(e,t){var n;return Fi(e,function(e,r,o){return n=t(e,r,o),!n}),!!n}function Kt(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Zt(e,t,n){var r=Un(),o=-1;t=lt(t,function(e){return r(e)});var a=Bt(e,function(e){var n=lt(t,function(t){return t(e)});return{criteria:n,index:++o,value:e}});return Kt(a,function(e,t){return d(e,t,n)})}function Jt(e,t){var n=0;return Fi(e,function(e,r,o){n+=+t(e,r,o)||0}),n}function $t(e,t){var n=-1,r=zn(),o=e.length,a=r==s,i=a&&o>=V,l=i?gn():null,u=[];l?(r=Ze,a=!1):(i=!1,l=t?[]:u);e:for(;++n<o;){var c=e[n],f=t?t(c,n,e):c;if(a&&c===c){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),u.push(c)}else r(l,f,0)<0&&((t||i)&&l.push(f),u.push(c))}return u}function en(e,t){for(var n=-1,r=t.length,o=Ua(r);++n<r;)o[n]=e[t[n]];return o}function tn(e,t,n,r){for(var o=e.length,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?Yt(e,r?0:a,r?a+1:o):Yt(e,r?a+1:0,r?o:a)}function nn(e,t){var n=e;n instanceof o&&(n=n.value());for(var r=-1,a=t.length;++r<a;){var i=t[r];n=i.func.apply(i.thisArg,ut([n],i.args))}return n}function rn(e,t,n){var r=0,o=e?e.length:r;if("number"==typeof t&&t===t&&Ri>=o){for(;o>r;){var a=r+o>>>1,i=e[a];(n?t>=i:t>i)&&null!==i?r=a+1:o=a}return o}return on(e,t,Ma,n)}function on(e,t,n,r){t=n(t);for(var o=0,a=e?e.length:0,i=t!==t,s=null===t,l=t===k;a>o;){var u=_i((o+a)/2),c=n(e[u]),f=c!==k,p=c===c;if(i)var d=p||r;else d=s?p&&f&&(r||null!=c):l?p&&(r||f):null==c?!1:r?t>=c:t>c; -d?o=u+1:a=u}return Ci(a,Di)}function an(e,t,n){if("function"!=typeof e)return Ma;if(t===k)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,a){return e.call(t,n,r,o,a)};case 5:return function(n,r,o,a,i){return e.call(t,n,r,o,a,i)}}return function(){return e.apply(t,arguments)}}function sn(e){var t=new ii(e.byteLength),n=new hi(t);return n.set(new hi(e)),t}function ln(e,t,n){for(var r=n.length,o=-1,a=xi(e.length-r,0),i=-1,s=t.length,l=Ua(s+a);++i<s;)l[i]=t[i];for(;++o<r;)l[n[o]]=e[o];for(;a--;)l[i++]=e[o++];return l}function un(e,t,n){for(var r=-1,o=n.length,a=-1,i=xi(e.length-o,0),s=-1,l=t.length,u=Ua(i+l);++a<i;)u[a]=e[a];for(var c=a;++s<l;)u[c+s]=t[s];for(;++r<o;)u[c+n[r]]=e[a++];return u}function cn(e,t){return function(n,r,o){var a=t?t():{};if(r=Un(r,o,3),Ss(n))for(var i=-1,s=n.length;++i<s;){var l=n[i];e(a,l,r(l,i,n),n)}else Fi(n,function(t,n,o){e(a,t,r(t,n,o),o)});return a}}function fn(e){return _o(function(t,n){var r=-1,o=null==t?0:n.length,a=o>2?n[o-2]:k,i=o>2?n[2]:k,s=o>1?n[o-1]:k;for("function"==typeof a?(a=an(a,s,5),o-=2):(a="function"==typeof s?s:k,o-=a?1:0),i&&$n(n[0],n[1],i)&&(a=3>o?k:a,o=1);++r<o;){var l=n[r];l&&e(t,l,a)}return t})}function pn(e,t){return function(n,r){var o=n?Vi(n):0;if(!nr(o))return e(n,r);for(var a=t?o:-1,i=fr(n);(t?a--:++a<o)&&r(i[a],a,i)!==!1;);return n}}function dn(e){return function(t,n,r){for(var o=fr(t),a=r(t),i=a.length,s=e?i:-1;e?s--:++s<i;){var l=a[s];if(n(o[l],l,o)===!1)break}return t}}function hn(e,t){function n(){var o=this&&this!==rt&&this instanceof n?r:e;return o.apply(t,arguments)}var r=vn(e);return n}function gn(e){return vi&&fi?new Ke(e):null}function mn(e){return function(t){for(var n=-1,r=Ta(fa(t)),o=r.length,a="";++n<o;)a=e(a,r[n],n);return a}}function vn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Ni(e.prototype),r=e.apply(n,t);return No(r)?r:n}}function _n(e){function t(n,r,o){o&&$n(n,r,o)&&(r=k);var a=Ln(n,e,k,k,k,k,k,r);return a.placeholder=t.placeholder,a}return t}function yn(e,t){return _o(function(n){var r=n[0];return null==r?r:(n.push(t),e.apply(k,n))})}function bn(e,t){return function(n,r,o){if(o&&$n(n,r,o)&&(r=k),r=Un(r,o,3),1==r.length){n=Ss(n)?n:cr(n);var a=it(n,r,e,t);if(!n.length||a!==t)return a}return Tt(n,r,e,t)}}function wn(e,t){return function(n,r,o){if(r=Un(r,o,3),Ss(n)){var a=i(n,r,t);return a>-1?n[a]:k}return Mt(n,r,e)}}function xn(e){return function(t,n,r){return t&&t.length?(n=Un(n,r,3),i(t,n,e)):-1}}function Cn(e){return function(t,n,r){return n=Un(n,r,3),Mt(t,n,e,!0)}}function En(e){return function(){for(var t,n=arguments.length,o=e?n:-1,a=0,i=Ua(n);e?o--:++o<n;){var s=i[a++]=arguments[o];if("function"!=typeof s)throw new Ka(H);!t&&r.prototype.thru&&"wrapper"==Vn(s)&&(t=new r([],!0))}for(o=t?-1:n;++o<n;){s=i[o];var l=Vn(s),u="wrapper"==l?Ui(s):k;t=u&&tr(u[0])&&u[1]==(F|A|O|L)&&!u[4].length&&1==u[9]?t[Vn(u[0])].apply(t,u[3]):1==s.length&&tr(s)?t[l]():t.thru(s)}return function(){var e=arguments,r=e[0];if(t&&1==e.length&&Ss(r)&&r.length>=V)return t.plant(r).value();for(var o=0,a=n?i[o].apply(this,e):r;++o<n;)a=i[o].call(this,a);return a}}}function Tn(e,t){return function(n,r,o){return"function"==typeof r&&o===k&&Ss(n)?e(n,r):t(n,an(r,o,3))}}function Pn(e){return function(t,n,r){return"function"==typeof n&&r===k||(n=an(n,r,3)),e(t,n,ta)}}function kn(e){return function(t,n,r){return"function"==typeof n&&r===k||(n=an(n,r,3)),e(t,n)}}function Mn(e){return function(t,n,r){var o={};return n=Un(n,r,3),Rt(t,function(t,r,a){var i=n(t,r,a);r=e?i:r,t=e?t:i,o[r]=t}),o}}function Sn(e){return function(t,n,r){return t=u(t),(e?t:"")+In(t,n,r)+(e?"":t)}}function Dn(e){var t=_o(function(n,r){var o=w(r,t.placeholder);return Ln(n,e,k,r,o)});return t}function Rn(e,t){return function(n,r,o,a){var i=arguments.length<3;return"function"==typeof r&&a===k&&Ss(n)?e(n,r,o,i):Gt(n,Un(r,a,4),o,i,t)}}function An(e,t,n,r,o,a,i,s,l,u){function c(){for(var _=arguments.length,y=_,b=Ua(_);y--;)b[y]=arguments[y];if(r&&(b=ln(b,r,o)),a&&(b=un(b,a,i)),h||m){var x=c.placeholder,C=w(b,x);if(_-=C.length,u>_){var E=s?et(s):k,T=xi(u-_,0),P=h?C:k,M=h?k:C,R=h?b:k,A=h?k:b;t|=h?O:N,t&=~(h?N:O),g||(t&=~(S|D));var I=[e,t,n,R,P,A,M,E,l,T],F=An.apply(k,I);return tr(e)&&zi(F,I),F.placeholder=x,F}}var L=p?n:this,B=d?L[e]:e;return s&&(b=lr(b,s)),f&&l<b.length&&(b.length=l),this&&this!==rt&&this instanceof c&&(B=v||vn(e)),B.apply(L,b)}var f=t&F,p=t&S,d=t&D,h=t&A,g=t&R,m=t&I,v=d?k:vn(e);return c}function In(e,t,n){var r=e.length;if(t=+t,r>=t||!bi(t))return"";var o=t-r;return n=null==n?" ":n+"",va(n,mi(o/n.length)).slice(0,o)}function On(e,t,n,r){function o(){for(var t=-1,s=arguments.length,l=-1,u=r.length,c=Ua(u+s);++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++t];var f=this&&this!==rt&&this instanceof o?i:e;return f.apply(a?n:this,c)}var a=t&S,i=vn(e);return o}function Nn(e){var t=Ha[e];return function(e,n){return n=n===k?0:+n||0,n?(n=ui(10,n),t(e*n)/n):t(e)}}function Fn(e){return function(t,n,r,o){var a=Un(r);return null==r&&a===bt?rn(t,n,e):on(t,n,a(r,o,1),e)}}function Ln(e,t,n,r,o,a,i,s){var l=t&D;if(!l&&"function"!=typeof e)throw new Ka(H);var u=r?r.length:0;if(u||(t&=~(O|N),r=o=k),u-=o?o.length:0,t&N){var c=r,f=o;r=o=k}var p=l?k:Ui(e),d=[e,t,n,r,o,c,f,a,i,s];if(p&&(or(d,p),t=d[1],s=d[9]),d[9]=null==s?l?0:e.length:xi(s-u,0)||0,t==S)var h=hn(d[0],d[2]);else h=t!=O&&t!=(S|O)||d[4].length?An.apply(k,d):On.apply(k,d);var g=p?Wi:zi;return g(h,d)}function Bn(e,t,n,r,o,a,i){var s=-1,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;for(;++s<l;){var c=e[s],f=t[s],p=r?r(o?f:c,o?c:f,s):k;if(p!==k){if(p)continue;return!1}if(o){if(!pt(t,function(e){return c===e||n(c,e,r,o,a,i)}))return!1}else if(c!==f&&!n(c,f,r,o,a,i))return!1}return!0}function jn(e,t,n){switch(n){case Q:case K:return+e==+t;case Z:return e.name==t.name&&e.message==t.message;case ee:return e!=+e?t!=+t:e==+t;case ne:case oe:return e==t+""}return!1}function Wn(e,t,n,r,o,a,i){var s=Ws(e),l=s.length,u=Ws(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var p=s[f];if(!(o?p in t:ti.call(t,p)))return!1}for(var d=o;++f<l;){p=s[f];var h=e[p],g=t[p],m=r?r(o?g:h,o?h:g,p):k;if(!(m===k?n(h,g,r,o,a,i):m))return!1;d||(d="constructor"==p)}if(!d){var v=e.constructor,_=t.constructor;if(v!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof _&&_ instanceof _))return!1}return!0}function Un(e,n,r){var o=t.callback||Pa;return o=o===Pa?bt:o,r?o(e,n,r):o}function Vn(e){for(var t=e.name,n=Oi[t],r=n?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function zn(e,n,r){var o=t.indexOf||Er;return o=o===Er?s:o,e?o(e,n,r):o}function qn(e){for(var t=na(e),n=t.length;n--;)t[n][2]=rr(t[n][1]);return t}function Hn(e,t){var n=null==e?k:e[t];return Bo(n)?n:k}function Xn(e,t,n){for(var r=-1,o=n.length;++r<o;){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=Ci(t,e+i);break;case"takeRight":e=xi(e,t-i)}}return{start:e,end:t}}function Gn(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ti.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Yn(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Ga),new t}function Qn(e,t,n){var r=e.constructor;switch(t){case ie:return sn(e);case Q:case K:return new r(+e);case se:case le:case ue:case ce:case fe:case pe:case de:case he:case ge:var o=e.buffer;return new r(n?sn(o):o,e.byteOffset,e.length);case ee:case oe:return new r(e);case ne:var a=new r(e.source,Oe.exec(e));a.lastIndex=e.lastIndex}return a}function Kn(e,t,n){null==e||er(t,e)||(t=pr(t),e=1==t.length?e:Ot(e,Yt(t,0,-1)),t=Pr(t));var r=null==e?e:e[t];return null==r?k:r.apply(e,n)}function Zn(e){return null!=e&&nr(Vi(e))}function Jn(e,t){return e="number"==typeof e||Le.test(e)?+e:-1,t=null==t?Ai:t,e>-1&&e%1==0&&t>e}function $n(e,t,n){if(!No(n))return!1;var r=typeof t;if("number"==r?Zn(n)&&Jn(t,n.length):"string"==r&&t in n){var o=n[t];return e===e?e===o:o!==o}return!1}function er(e,t){var n=typeof e;if("string"==n&&ke.test(e)||"number"==n)return!0;if(Ss(e))return!1;var r=!Pe.test(e);return r||null!=t&&e in fr(t)}function tr(e){var n=Vn(e);if(!(n in o.prototype))return!1;var r=t[n];if(e===r)return!0;var a=Ui(r);return!!a&&e===a[0]}function nr(e){return"number"==typeof e&&e>-1&&e%1==0&&Ai>=e}function rr(e){return e===e&&!No(e)}function or(e,t){var n=e[1],r=t[1],o=n|r,a=F>o,i=r==F&&n==A||r==F&&n==L&&e[7].length<=t[8]||r==(F|L)&&n==A;if(!a&&!i)return e;r&S&&(e[2]=t[2],o|=n&S?0:R);var s=t[3];if(s){var l=e[3];e[3]=l?ln(l,s,t[4]):et(s),e[4]=l?w(e[3],X):et(t[4])}return s=t[5],s&&(l=e[5],e[5]=l?un(l,s,t[6]):et(s),e[6]=l?w(e[5],X):et(t[6])),s=t[7],s&&(e[7]=et(s)),r&F&&(e[8]=null==e[8]?t[8]:Ci(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function ar(e,t){return e===k?t:Ds(e,t,ar)}function ir(e,t){e=fr(e);for(var n=-1,r=t.length,o={};++n<r;){var a=t[n];a in e&&(o[a]=e[a])}return o}function sr(e,t){var n={};return Dt(e,function(e,r,o){t(e,r,o)&&(n[r]=e)}),n}function lr(e,t){for(var n=e.length,r=Ci(t.length,n),o=et(e);r--;){var a=t[r];e[r]=Jn(a,n)?o[a]:k}return e}function ur(e){for(var t=ta(e),n=t.length,r=n&&e.length,o=!!r&&nr(r)&&(Ss(e)||Po(e)),a=-1,i=[];++a<n;){var s=t[a];(o&&Jn(s,r)||ti.call(e,s))&&i.push(s)}return i}function cr(e){return null==e?[]:Zn(e)?No(e)?e:Ga(e):ia(e)}function fr(e){return No(e)?e:Ga(e)}function pr(e){if(Ss(e))return e;var t=[];return u(e).replace(Me,function(e,n,r,o){t.push(r?o.replace(Ae,"$1"):n||e)}),t}function dr(e){return e instanceof o?e.clone():new r(e.__wrapped__,e.__chain__,et(e.__actions__))}function hr(e,t,n){t=(n?$n(e,t,n):null==t)?1:xi(_i(t)||1,1);for(var r=0,o=e?e.length:0,a=-1,i=Ua(mi(o/t));o>r;)i[++a]=Yt(e,r,r+=t);return i}function gr(e){for(var t=-1,n=e?e.length:0,r=-1,o=[];++t<n;){var a=e[t];a&&(o[++r]=a)}return o}function mr(e,t,n){var r=e?e.length:0;return r?((n?$n(e,t,n):null==t)&&(t=1),Yt(e,0>t?0:t)):[]}function vr(e,t,n){var r=e?e.length:0;return r?((n?$n(e,t,n):null==t)&&(t=1),t=r-(+t||0),Yt(e,0,0>t?0:t)):[]}function _r(e,t,n){return e&&e.length?tn(e,Un(t,n,3),!0,!0):[]}function yr(e,t,n){return e&&e.length?tn(e,Un(t,n,3),!0):[]}function br(e,t,n,r){var o=e?e.length:0;return o?(n&&"number"!=typeof n&&$n(e,t,n)&&(n=0,r=o),Pt(e,t,n,r)):[]}function wr(e){return e?e[0]:k}function xr(e,t,n){var r=e?e.length:0;return n&&$n(e,t,n)&&(t=!1),r?St(e,t):[]}function Cr(e){var t=e?e.length:0;return t?St(e,!0):[]}function Er(e,t,n){var r=e?e.length:0;if(!r)return-1;if("number"==typeof n)n=0>n?xi(r+n,0):n;else if(n){var o=rn(e,t);return r>o&&(t===t?t===e[o]:e[o]!==e[o])?o:-1}return s(e,t,n||0)}function Tr(e){return vr(e,1)}function Pr(e){var t=e?e.length:0;return t?e[t-1]:k}function kr(e,t,n){var r=e?e.length:0;if(!r)return-1;var o=r;if("number"==typeof n)o=(0>n?xi(r+n,0):Ci(n||0,r-1))+1;else if(n){o=rn(e,t,!0)-1;var a=e[o];return(t===t?t===a:a!==a)?o:-1}if(t!==t)return _(e,o,!0);for(;o--;)if(e[o]===t)return o;return-1}function Mr(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var n=0,r=zn(),o=e.length;++n<o;)for(var a=0,i=e[n];(a=r(t,i,a))>-1;)di.call(t,a,1);return t}function Sr(e,t,n){var r=[];if(!e||!e.length)return r;var o=-1,a=[],i=e.length;for(t=Un(t,n,3);++o<i;){var s=e[o];t(s,o,e)&&(r.push(s),a.push(o))}return Ht(e,a),r}function Dr(e){return mr(e,1)}function Rr(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&$n(e,t,n)&&(t=0,n=r),Yt(e,t,n)):[]}function Ar(e,t,n){var r=e?e.length:0;return r?((n?$n(e,t,n):null==t)&&(t=1),Yt(e,0,0>t?0:t)):[]}function Ir(e,t,n){var r=e?e.length:0;return r?((n?$n(e,t,n):null==t)&&(t=1),t=r-(+t||0),Yt(e,0>t?0:t)):[]}function Or(e,t,n){return e&&e.length?tn(e,Un(t,n,3),!1,!0):[]}function Nr(e,t,n){return e&&e.length?tn(e,Un(t,n,3)):[]}function Fr(e,t,n,r){var o=e?e.length:0;if(!o)return[];null!=t&&"boolean"!=typeof t&&(r=n,n=$n(e,t,r)?k:t,t=!1);var a=Un();return null==n&&a===bt||(n=a(n,r,3)),t&&zn()==s?x(e,n):$t(e,n)}function Lr(e){if(!e||!e.length)return[];var t=-1,n=0;e=st(e,function(e){return Zn(e)?(n=xi(e.length,n),!0):void 0});for(var r=Ua(n);++t<n;)r[t]=lt(e,zt(t));return r}function Br(e,t,n){var r=e?e.length:0;if(!r)return[];var o=Lr(e);return null==t?o:(t=an(t,n,4),lt(o,function(e){return ct(e,t,k,!0)}))}function jr(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Zn(n))var r=r?ut(Ct(r,n),Ct(n,r)):n}return r?$t(r):[]}function Wr(e,t){var n=-1,r=e?e.length:0,o={};for(!r||t||Ss(e[0])||(t=[]);++n<r;){var a=e[n];t?o[a]=t[n]:a&&(o[a[0]]=a[1])}return o}function Ur(e){var n=t(e);return n.__chain__=!0,n}function Vr(e,t,n){return t.call(n,e),e}function zr(e,t,n){return t.call(n,e)}function qr(){return Ur(this)}function Hr(){return new r(this.value(),this.__chain__)}function Xr(e){for(var t,r=this;r instanceof n;){var o=dr(r);t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t}function Gr(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof o){var n=e;return this.__actions__.length&&(n=new o(this)),n=n.reverse(),n.__actions__.push({func:zr,args:[t],thisArg:k}),new r(n,this.__chain__)}return this.thru(t)}function Yr(){return this.value()+""}function Qr(){return nn(this.__wrapped__,this.__actions__)}function Kr(e,t,n){var r=Ss(e)?at:Et;return n&&$n(e,t,n)&&(t=k),"function"==typeof t&&n===k||(t=Un(t,n,3)),r(e,t)}function Zr(e,t,n){var r=Ss(e)?st:kt;return t=Un(t,n,3),r(e,t)}function Jr(e,t){return os(e,jt(t))}function $r(e,t,n,r){var o=e?Vi(e):0;return nr(o)||(e=ia(e),o=e.length),n="number"!=typeof n||r&&$n(t,n,r)?0:0>n?xi(o+n,0):n||0,"string"==typeof e||!Ss(e)&&zo(e)?o>=n&&e.indexOf(t,n)>-1:!!o&&zn(e,t,n)>-1}function eo(e,t,n){var r=Ss(e)?lt:Bt;return t=Un(t,n,3),r(e,t)}function to(e,t){return eo(e,Oa(t))}function no(e,t,n){var r=Ss(e)?st:kt;return t=Un(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ro(e,t,n){if(n?$n(e,t,n):null==t){e=cr(e);var r=e.length;return r>0?e[Xt(0,r-1)]:k}var o=-1,a=Yo(e),r=a.length,i=r-1;for(t=Ci(0>t?0:+t||0,r);++o<t;){var s=Xt(o,i),l=a[s];a[s]=a[o],a[o]=l}return a.length=t,a}function oo(e){return ro(e,Mi)}function ao(e){var t=e?Vi(e):0;return nr(t)?t:Ws(e).length}function io(e,t,n){var r=Ss(e)?pt:Qt;return n&&$n(e,t,n)&&(t=k),"function"==typeof t&&n===k||(t=Un(t,n,3)),r(e,t)}function so(e,t,n){if(null==e)return[];n&&$n(e,t,n)&&(t=k);var r=-1;t=Un(t,n,3);var o=Bt(e,function(e,n,o){return{criteria:t(e,n,o),index:++r,value:e}});return Kt(o,p)}function lo(e,t,n,r){return null==e?[]:(r&&$n(t,n,r)&&(n=k),Ss(t)||(t=null==t?[]:[t]),Ss(n)||(n=null==n?[]:[n]),Zt(e,t,n))}function uo(e,t){return Zr(e,jt(t))}function co(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new Ka(H);var n=e;e=t,t=n}return e=bi(e=+e)?e:0,function(){return--e<1?t.apply(this,arguments):void 0}}function fo(e,t,n){return n&&$n(e,t,n)&&(t=k),t=e&&null==t?e.length:xi(+t||0,0),Ln(e,F,k,k,k,k,t)}function po(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new Ka(H);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=k),n}}function ho(e,t,n){function r(){d&&si(d),u&&si(u),g=0,u=d=h=k}function o(t,n){n&&si(n),u=d=h=k,t&&(g=gs(),c=e.apply(p,l),d||u||(l=p=k))}function a(){var e=t-(gs()-f);0>=e||e>t?o(h,u):d=pi(a,e)}function i(){o(v,d)}function s(){if(l=arguments,f=gs(),p=this,h=v&&(d||!_),m===!1)var n=_&&!d;else{u||_||(g=f);var r=m-(f-g),o=0>=r||r>m;o?(u&&(u=si(u)),g=f,c=e.apply(p,l)):u||(u=pi(i,r))}return o&&d?d=si(d):d||t===m||(d=pi(a,t)),n&&(o=!0,c=e.apply(p,l)),!o||d||u||(l=p=k),c}var l,u,c,f,p,d,h,g=0,m=!1,v=!0;if("function"!=typeof e)throw new Ka(H);if(t=0>t?0:+t||0,n===!0){var _=!0;v=!1}else No(n)&&(_=!!n.leading,m="maxWait"in n&&xi(+n.maxWait||0,t),v="trailing"in n?!!n.trailing:v);return s.cancel=r,s}function go(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Ka(H);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new go.Cache,n}function mo(e){if("function"!=typeof e)throw new Ka(H);return function(){return!e.apply(this,arguments)}}function vo(e){return po(2,e)}function _o(e,t){if("function"!=typeof e)throw new Ka(H);return t=xi(t===k?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=xi(n.length-t,0),a=Ua(o);++r<o;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var i=Ua(t+1);for(r=-1;++r<t;)i[r]=n[r];return i[t]=a,e.apply(this,i)}}function yo(e){if("function"!=typeof e)throw new Ka(H);return function(t){return e.apply(this,t)}}function bo(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ka(H);return n===!1?r=!1:No(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ho(e,t,{leading:r,maxWait:+t,trailing:o})}function wo(e,t){return t=null==t?Ma:t,Ln(t,O,k,[e],[])}function xo(e,t,n,r){return t&&"boolean"!=typeof t&&$n(e,t,n)?t=!1:"function"==typeof t&&(r=n,n=t,t=!1),"function"==typeof n?wt(e,t,an(n,r,1)):wt(e,t)}function Co(e,t,n){return"function"==typeof t?wt(e,!0,an(t,n,1)):wt(e,!0)}function Eo(e,t){return e>t}function To(e,t){return e>=t}function Po(e){return y(e)&&Zn(e)&&ti.call(e,"callee")&&!ci.call(e,"callee")}function ko(e){return e===!0||e===!1||y(e)&&ri.call(e)==Q}function Mo(e){return y(e)&&ri.call(e)==K}function So(e){return!!e&&1===e.nodeType&&y(e)&&!Uo(e)}function Do(e){return null==e?!0:Zn(e)&&(Ss(e)||zo(e)||Po(e)||y(e)&&Oo(e.splice))?!e.length:!Ws(e).length}function Ro(e,t,n,r){n="function"==typeof n?an(n,r,3):k;var o=n?n(e,t):k;return o===k?Nt(e,t,n):!!o}function Ao(e){return y(e)&&"string"==typeof e.message&&ri.call(e)==Z}function Io(e){return"number"==typeof e&&bi(e)}function Oo(e){return No(e)&&ri.call(e)==J}function No(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Fo(e,t,n,r){return n="function"==typeof n?an(n,r,3):k,Lt(e,qn(t),n)}function Lo(e){return Wo(e)&&e!=+e}function Bo(e){return null==e?!1:Oo(e)?ai.test(ei.call(e)):y(e)&&Fe.test(e)}function jo(e){return null===e}function Wo(e){return"number"==typeof e||y(e)&&ri.call(e)==ee}function Uo(e){var t;if(!y(e)||ri.call(e)!=te||Po(e)||!ti.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return Dt(e,function(e,t){n=t}),n===k||ti.call(e,n)}function Vo(e){return No(e)&&ri.call(e)==ne}function zo(e){return"string"==typeof e||y(e)&&ri.call(e)==oe}function qo(e){return y(e)&&nr(e.length)&&!!qe[ri.call(e)]}function Ho(e){return e===k}function Xo(e,t){return t>e}function Go(e,t){return t>=e}function Yo(e){var t=e?Vi(e):0;return nr(t)?t?et(e):[]:ia(e)}function Qo(e){return yt(e,ta(e))}function Ko(e,t,n){var r=Ni(e);return n&&$n(e,t,n)&&(t=k),t?vt(r,t):r}function Zo(e){return It(e,ta(e))}function Jo(e,t,n){var r=null==e?k:Ot(e,pr(t),t+"");return r===k?n:r}function $o(e,t){if(null==e)return!1;var n=ti.call(e,t);if(!n&&!er(t)){if(t=pr(t),e=1==t.length?e:Ot(e,Yt(t,0,-1)),null==e)return!1;t=Pr(t),n=ti.call(e,t)}return n||nr(e.length)&&Jn(t,e.length)&&(Ss(e)||Po(e))}function ea(e,t,n){n&&$n(e,t,n)&&(t=k);for(var r=-1,o=Ws(e),a=o.length,i={};++r<a;){var s=o[r],l=e[s];t?ti.call(i,l)?i[l].push(s):i[l]=[s]:i[l]=s}return i}function ta(e){if(null==e)return[];No(e)||(e=Ga(e));var t=e.length;t=t&&nr(t)&&(Ss(e)||Po(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,a=Ua(t),i=t>0;++r<t;)a[r]=r+"";for(var s in e)i&&Jn(s,t)||"constructor"==s&&(o||!ti.call(e,s))||a.push(s);return a}function na(e){e=fr(e);for(var t=-1,n=Ws(e),r=n.length,o=Ua(r);++t<r;){var a=n[t];o[t]=[a,e[a]]}return o}function ra(e,t,n){var r=null==e?k:e[t];return r===k&&(null==e||er(t,e)||(t=pr(t),e=1==t.length?e:Ot(e,Yt(t,0,-1)),r=null==e?k:e[Pr(t)]),r=r===k?n:r),Oo(r)?r.call(e):r}function oa(e,t,n){if(null==e)return e;var r=t+"";t=null!=e[r]||er(t,e)?[r]:pr(t);for(var o=-1,a=t.length,i=a-1,s=e;null!=s&&++o<a;){var l=t[o];No(s)&&(o==i?s[l]=n:null==s[l]&&(s[l]=Jn(t[o+1])?[]:{})),s=s[l]}return e}function aa(e,t,n,r){var o=Ss(e)||qo(e);if(t=Un(t,r,4),null==n)if(o||No(e)){var a=e.constructor;n=o?Ss(e)?new a:[]:Ni(Oo(a)?a.prototype:k)}else n={};return(o?tt:Rt)(e,function(e,r,o){return t(n,e,r,o)}),n}function ia(e){return en(e,Ws(e))}function sa(e){return en(e,ta(e))}function la(e,t,n){return t=+t||0,n===k?(n=t,t=0):n=+n||0,e>=Ci(t,n)&&e<xi(t,n)}function ua(e,t,n){n&&$n(e,t,n)&&(t=n=k);var r=null==e,o=null==t;if(null==n&&(o&&"boolean"==typeof e?(n=e,e=1):"boolean"==typeof t&&(n=t,o=!0)),r&&o&&(t=1,o=!1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var a=Pi();return Ci(e+a*(t-e+li("1e-"+((a+"").length-1))),t)}return Xt(e,t)}function ca(e){return e=u(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function fa(e){return e=u(e),e&&e.replace(Be,h).replace(Re,"")}function pa(e,t,n){e=u(e),t+="";var r=e.length;return n=n===k?r:Ci(0>n?0:+n||0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function da(e){return e=u(e),e&&xe.test(e)?e.replace(be,g):e}function ha(e){return e=u(e),e&&De.test(e)?e.replace(Se,m):e||"(?:)"}function ga(e,t,n){e=u(e),t=+t;var r=e.length;if(r>=t||!bi(t))return e;var o=(t-r)/2,a=_i(o),i=mi(o);return n=In("",i,n),n.slice(0,a)+e+n}function ma(e,t,n){return(n?$n(e,t,n):null==t)?t=0:t&&(t=+t),e=ba(e),Ti(e,t||(Ne.test(e)?16:10))}function va(e,t){var n="";if(e=u(e),t=+t,1>t||!e||!bi(t))return n;do t%2&&(n+=e),t=_i(t/2),e+=e;while(t);return n}function _a(e,t,n){return e=u(e),n=null==n?0:Ci(0>n?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function ya(e,n,r){var o=t.templateSettings;r&&$n(e,n,r)&&(n=r=k),e=u(e),n=mt(vt({},r||n),o,gt);var a,i,s=mt(vt({},n.imports),o.imports,gt),l=Ws(s),c=en(s,l),f=0,p=n.interpolate||je,d="__p += '",h=Ya((n.escape||je).source+"|"+p.source+"|"+(p===Te?Ie:je).source+"|"+(n.evaluate||je).source+"|$","g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++ze+"]")+"\n";e.replace(h,function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(f,l).replace(We,v),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=l+t.length,t}),d+="';\n";var m=n.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(i?d.replace(me,""):d).replace(ve,"$1").replace(_e,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var _=Zs(function(){return qa(l,g+"return "+d).apply(k,c)});if(_.source=d,Ao(_))throw _;return _}function ba(e,t,n){var r=e;return(e=u(e))?(n?$n(r,t,n):null==t)?e.slice(C(e),E(e)+1):(t+="",e.slice(c(e,t),f(e,t)+1)):e}function wa(e,t,n){var r=e;return e=u(e),e?(n?$n(r,t,n):null==t)?e.slice(C(e)):e.slice(c(e,t+"")):e}function xa(e,t,n){var r=e;return e=u(e),e?(n?$n(r,t,n):null==t)?e.slice(0,E(e)+1):e.slice(0,f(e,t+"")+1):e}function Ca(e,t,n){n&&$n(e,t,n)&&(t=k);var r=B,o=j;if(null!=t)if(No(t)){var a="separator"in t?t.separator:a;r="length"in t?+t.length||0:r,o="omission"in t?u(t.omission):o}else r=+t||0;if(e=u(e),r>=e.length)return e;var i=r-o.length;if(1>i)return o;var s=e.slice(0,i);if(null==a)return s+o;if(Vo(a)){if(e.slice(i).search(a)){var l,c,f=e.slice(0,i);for(a.global||(a=Ya(a.source,(Oe.exec(a)||"")+"g")),a.lastIndex=0;l=a.exec(f);)c=l.index;s=s.slice(0,null==c?i:c)}}else if(e.indexOf(a,i)!=i){var p=s.lastIndexOf(a);p>-1&&(s=s.slice(0,p))}return s+o}function Ea(e){return e=u(e),e&&we.test(e)?e.replace(ye,T):e}function Ta(e,t,n){return n&&$n(e,t,n)&&(t=k),e=u(e),e.match(t||Ue)||[]}function Pa(e,t,n){return n&&$n(e,t,n)&&(t=k),y(e)?Sa(e):bt(e,t)}function ka(e){return function(){return e}}function Ma(e){return e}function Sa(e){return jt(wt(e,!0))}function Da(e,t){return Wt(e,wt(t,!0))}function Ra(e,t,n){if(null==n){var r=No(t),o=r?Ws(t):k,a=o&&o.length?It(t,o):k;(a?a.length:r)||(a=!1,n=t,t=e,e=this)}a||(a=It(t,Ws(t)));var i=!0,s=-1,l=Oo(e),u=a.length;n===!1?i=!1:No(n)&&"chain"in n&&(i=n.chain);for(;++s<u;){var c=a[s],f=t[c];e[c]=f,l&&(e.prototype[c]=function(t){return function(){var n=this.__chain__;if(i||n){var r=e(this.__wrapped__),o=r.__actions__=et(this.__actions__);return o.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,ut([this.value()],arguments))}}(f))}return e}function Aa(){return rt._=oi,this}function Ia(){}function Oa(e){return er(e)?zt(e):qt(e)}function Na(e){return function(t){return Ot(e,pr(t),t+"")}}function Fa(e,t,n){n&&$n(e,t,n)&&(t=n=k),e=+e||0,n=null==n?1:+n||0,null==t?(t=e,e=0):t=+t||0;for(var r=-1,o=xi(mi((t-e)/(n||1)),0),a=Ua(o);++r<o;)a[r]=e,e+=n;return a}function La(e,t,n){if(e=_i(e),1>e||!bi(e))return[];var r=-1,o=Ua(Ci(e,Si));for(t=an(t,n,1);++r<e;)Si>r?o[r]=t(r):t(r);return o}function Ba(e){var t=++ni;return u(e)+t}function ja(e,t){return(+e||0)+(+t||0)}function Wa(e,t,n){return n&&$n(e,t,n)&&(t=k),t=Un(t,n,3),1==t.length?dt(Ss(e)?e:cr(e),t):Jt(e,t)}e=e?ot.defaults(rt.Object(),e,ot.pick(rt,Ve)):rt;var Ua=e.Array,Va=e.Date,za=e.Error,qa=e.Function,Ha=e.Math,Xa=e.Number,Ga=e.Object,Ya=e.RegExp,Qa=e.String,Ka=e.TypeError,Za=Ua.prototype,Ja=Ga.prototype,$a=Qa.prototype,ei=qa.prototype.toString,ti=Ja.hasOwnProperty,ni=0,ri=Ja.toString,oi=rt._,ai=Ya("^"+ei.call(ti).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ii=e.ArrayBuffer,si=e.clearTimeout,li=e.parseFloat,ui=Ha.pow,ci=Ja.propertyIsEnumerable,fi=Hn(e,"Set"),pi=e.setTimeout,di=Za.splice,hi=e.Uint8Array,gi=Hn(e,"WeakMap"),mi=Ha.ceil,vi=Hn(Ga,"create"),_i=Ha.floor,yi=Hn(Ua,"isArray"),bi=e.isFinite,wi=Hn(Ga,"keys"),xi=Ha.max,Ci=Ha.min,Ei=Hn(Va,"now"),Ti=e.parseInt,Pi=Ha.random,ki=Xa.NEGATIVE_INFINITY,Mi=Xa.POSITIVE_INFINITY,Si=4294967295,Di=Si-1,Ri=Si>>>1,Ai=9007199254740991,Ii=gi&&new gi,Oi={};t.support={};t.templateSettings={escape:Ce,evaluate:Ee,interpolate:Te,variable:"",imports:{_:t}};var Ni=function(){function e(){}return function(t){if(No(t)){e.prototype=t;var n=new e;e.prototype=k}return n||{}}}(),Fi=pn(Rt),Li=pn(At,!0),Bi=dn(),ji=dn(!0),Wi=Ii?function(e,t){return Ii.set(e,t),e}:Ma,Ui=Ii?function(e){return Ii.get(e)}:Ia,Vi=zt("length"),zi=function(){var e=0,t=0;return function(n,r){var o=gs(),a=U-(o-t);if(t=o,a>0){if(++e>=W)return n}else e=0;return Wi(n,r)}}(),qi=_o(function(e,t){return y(e)&&Zn(e)?Ct(e,St(t,!1,!0)):[]}),Hi=xn(),Xi=xn(!0),Gi=_o(function(e){for(var t=e.length,n=t,r=Ua(f),o=zn(),a=o==s,i=[];n--;){var l=e[n]=Zn(l=e[n])?l:[];r[n]=a&&l.length>=120?gn(n&&l):null}var u=e[0],c=-1,f=u?u.length:0,p=r[0];e:for(;++c<f;)if(l=u[c],(p?Ze(p,l):o(i,l,0))<0){for(var n=t;--n;){var d=r[n];if((d?Ze(d,l):o(e[n],l,0))<0)continue e}p&&p.push(l),i.push(l)}return i}),Yi=_o(function(e,t){t=St(t);var n=_t(e,t);return Ht(e,t.sort(a)),n}),Qi=Fn(),Ki=Fn(!0),Zi=_o(function(e){return $t(St(e,!1,!0))}),Ji=_o(function(e,t){return Zn(e)?Ct(e,t):[]}),$i=_o(Lr),es=_o(function(e){var t=e.length,n=t>2?e[t-2]:k,r=t>1?e[t-1]:k;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):k,r=k),e.length=t,Br(e,n,r)}),ts=_o(function(e){return e=St(e),this.thru(function(t){return $e(Ss(t)?t:[fr(t)],e)})}),ns=_o(function(e,t){return _t(e,St(t))}),rs=cn(function(e,t,n){ti.call(e,n)?++e[n]:e[n]=1}),os=wn(Fi),as=wn(Li,!0),is=Tn(tt,Fi),ss=Tn(nt,Li),ls=cn(function(e,t,n){ti.call(e,n)?e[n].push(t):e[n]=[t]}),us=cn(function(e,t,n){e[n]=t}),cs=_o(function(e,t,n){var r=-1,o="function"==typeof t,a=er(t),i=Zn(e)?Ua(e.length):[];return Fi(e,function(e){var s=o?t:a&&null!=e?e[t]:k;i[++r]=s?s.apply(e,n):Kn(e,t,n)}),i}),fs=cn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ps=Rn(ct,Fi),ds=Rn(ft,Li),hs=_o(function(e,t){if(null==e)return[];var n=t[2];return n&&$n(t[0],t[1],n)&&(t.length=1),Zt(e,St(t),[])}),gs=Ei||function(){return(new Va).getTime()},ms=_o(function(e,t,n){var r=S;if(n.length){var o=w(n,ms.placeholder);r|=O}return Ln(e,r,t,n,o)}),vs=_o(function(e,t){t=t.length?St(t):Zo(e);for(var n=-1,r=t.length;++n<r;){var o=t[n];e[o]=Ln(e[o],S,e)}return e}),_s=_o(function(e,t,n){var r=S|D;if(n.length){var o=w(n,_s.placeholder);r|=O}return Ln(t,r,e,n,o)}),ys=_n(A),bs=_n(I),ws=_o(function(e,t){return xt(e,1,t)}),xs=_o(function(e,t,n){return xt(e,t,n)}),Cs=En(),Es=En(!0),Ts=_o(function(e,t){if(t=St(t),"function"!=typeof e||!at(t,l))throw new Ka(H);var n=t.length;return _o(function(r){for(var o=Ci(r.length,n);o--;)r[o]=t[o](r[o]);return e.apply(this,r)})}),Ps=Dn(O),ks=Dn(N),Ms=_o(function(e,t){return Ln(e,L,k,k,k,St(t))}),Ss=yi||function(e){return y(e)&&nr(e.length)&&ri.call(e)==Y},Ds=fn(Ut),Rs=fn(function(e,t,n){return n?mt(e,t,n):vt(e,t)}),As=yn(Rs,ht),Is=yn(Ds,ar),Os=Cn(Rt),Ns=Cn(At),Fs=Pn(Bi),Ls=Pn(ji),Bs=kn(Rt),js=kn(At),Ws=wi?function(e){var t=null==e?k:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&Zn(e)?ur(e):No(e)?wi(e):[]}:ur,Us=Mn(!0),Vs=Mn(),zs=_o(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=lt(St(t),Qa);return ir(e,Ct(ta(e),t))}var n=an(t[0],t[1],3);return sr(e,function(e,t,r){return!n(e,t,r)})}),qs=_o(function(e,t){return null==e?{}:"function"==typeof t[0]?sr(e,an(t[0],t[1],3)):ir(e,St(t))}),Hs=mn(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),Xs=mn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Gs=Sn(),Ys=Sn(!0),Qs=mn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ks=mn(function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Zs=_o(function(e,t){try{return e.apply(k,t)}catch(n){return Ao(n)?n:new za(n)}}),Js=_o(function(e,t){return function(n){return Kn(n,e,t)}}),$s=_o(function(e,t){return function(n){return Kn(e,n,t)}}),el=Nn("ceil"),tl=Nn("floor"),nl=bn(Eo,ki),rl=bn(Xo,Mi),ol=Nn("round");return t.prototype=n.prototype,r.prototype=Ni(n.prototype),r.prototype.constructor=r,o.prototype=Ni(n.prototype),o.prototype.constructor=o,ae.prototype["delete"]=Xe,ae.prototype.get=Ge,ae.prototype.has=Ye,ae.prototype.set=Qe,Ke.prototype.push=Je,go.Cache=ae,t.after=co,t.ary=fo,t.assign=Rs,t.at=ns,t.before=po,t.bind=ms,t.bindAll=vs,t.bindKey=_s,t.callback=Pa,t.chain=Ur,t.chunk=hr,t.compact=gr,t.constant=ka,t.countBy=rs,t.create=Ko,t.curry=ys,t.curryRight=bs,t.debounce=ho,t.defaults=As,t.defaultsDeep=Is,t.defer=ws,t.delay=xs,t.difference=qi,t.drop=mr,t.dropRight=vr,t.dropRightWhile=_r,t.dropWhile=yr,t.fill=br,t.filter=Zr,t.flatten=xr,t.flattenDeep=Cr,t.flow=Cs,t.flowRight=Es,t.forEach=is,t.forEachRight=ss,t.forIn=Fs,t.forInRight=Ls,t.forOwn=Bs,t.forOwnRight=js,t.functions=Zo,t.groupBy=ls,t.indexBy=us,t.initial=Tr,t.intersection=Gi,t.invert=ea,t.invoke=cs,t.keys=Ws,t.keysIn=ta,t.map=eo,t.mapKeys=Us,t.mapValues=Vs,t.matches=Sa,t.matchesProperty=Da,t.memoize=go,t.merge=Ds,t.method=Js,t.methodOf=$s,t.mixin=Ra,t.modArgs=Ts,t.negate=mo,t.omit=zs,t.once=vo,t.pairs=na,t.partial=Ps,t.partialRight=ks,t.partition=fs,t.pick=qs,t.pluck=to,t.property=Oa,t.propertyOf=Na,t.pull=Mr,t.pullAt=Yi,t.range=Fa,t.rearg=Ms,t.reject=no,t.remove=Sr,t.rest=Dr,t.restParam=_o,t.set=oa,t.shuffle=oo,t.slice=Rr,t.sortBy=so,t.sortByAll=hs,t.sortByOrder=lo,t.spread=yo,t.take=Ar,t.takeRight=Ir,t.takeRightWhile=Or,t.takeWhile=Nr,t.tap=Vr,t.throttle=bo,t.thru=zr,t.times=La,t.toArray=Yo,t.toPlainObject=Qo,t.transform=aa,t.union=Zi,t.uniq=Fr,t.unzip=Lr,t.unzipWith=Br,t.values=ia,t.valuesIn=sa,t.where=uo,t.without=Ji,t.wrap=wo,t.xor=jr,t.zip=$i,t.zipObject=Wr,t.zipWith=es,t.backflow=Es,t.collect=eo,t.compose=Es,t.each=is,t.eachRight=ss,t.extend=Rs,t.iteratee=Pa,t.methods=Zo,t.object=Wr,t.select=Zr,t.tail=Dr,t.unique=Fr,Ra(t,t),t.add=ja,t.attempt=Zs,t.camelCase=Hs,t.capitalize=ca,t.ceil=el,t.clone=xo,t.cloneDeep=Co,t.deburr=fa,t.endsWith=pa,t.escape=da,t.escapeRegExp=ha,t.every=Kr,t.find=os,t.findIndex=Hi,t.findKey=Os,t.findLast=as,t.findLastIndex=Xi,t.findLastKey=Ns,t.findWhere=Jr,t.first=wr,t.floor=tl,t.get=Jo,t.gt=Eo,t.gte=To, -t.has=$o,t.identity=Ma,t.includes=$r,t.indexOf=Er,t.inRange=la,t.isArguments=Po,t.isArray=Ss,t.isBoolean=ko,t.isDate=Mo,t.isElement=So,t.isEmpty=Do,t.isEqual=Ro,t.isError=Ao,t.isFinite=Io,t.isFunction=Oo,t.isMatch=Fo,t.isNaN=Lo,t.isNative=Bo,t.isNull=jo,t.isNumber=Wo,t.isObject=No,t.isPlainObject=Uo,t.isRegExp=Vo,t.isString=zo,t.isTypedArray=qo,t.isUndefined=Ho,t.kebabCase=Xs,t.last=Pr,t.lastIndexOf=kr,t.lt=Xo,t.lte=Go,t.max=nl,t.min=rl,t.noConflict=Aa,t.noop=Ia,t.now=gs,t.pad=ga,t.padLeft=Gs,t.padRight=Ys,t.parseInt=ma,t.random=ua,t.reduce=ps,t.reduceRight=ds,t.repeat=va,t.result=ra,t.round=ol,t.runInContext=P,t.size=ao,t.snakeCase=Qs,t.some=io,t.sortedIndex=Qi,t.sortedLastIndex=Ki,t.startCase=Ks,t.startsWith=_a,t.sum=Wa,t.template=ya,t.trim=ba,t.trimLeft=wa,t.trimRight=xa,t.trunc=Ca,t.unescape=Ea,t.uniqueId=Ba,t.words=Ta,t.all=Kr,t.any=io,t.contains=$r,t.eq=Ro,t.detect=os,t.foldl=ps,t.foldr=ds,t.head=wr,t.include=$r,t.inject=ps,Ra(t,function(){var e={};return Rt(t,function(n,r){t.prototype[r]||(e[r]=n)}),e}(),!1),t.sample=ro,t.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return ro(t,e)}):ro(this.value())},t.VERSION=M,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),tt(["drop","take"],function(e,t){o.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new o(this);n=null==n?1:xi(_i(n)||0,0);var a=this.clone();return r?a.__takeCount__=Ci(a.__takeCount__,n):a.__views__.push({size:n,type:e+(a.__dir__<0?"Right":"")}),a},o.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n!=q;o.prototype[e]=function(e,t){var o=this.clone();return o.__iteratees__.push({iteratee:Un(e,t,1),type:n}),o.__filtered__=o.__filtered__||r,o}}),tt(["first","last"],function(e,t){var n="take"+(t?"Right":"");o.prototype[e]=function(){return this[n](1).value()[0]}}),tt(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");o.prototype[e]=function(){return this.__filtered__?new o(this):this[n](1)}}),tt(["pluck","where"],function(e,t){var n=t?"filter":"map",r=t?jt:Oa;o.prototype[e]=function(e){return this[n](r(e))}}),o.prototype.compact=function(){return this.filter(Ma)},o.prototype.reject=function(e,t){return e=Un(e,t,1),this.filter(function(t){return!e(t)})},o.prototype.slice=function(e,t){e=null==e?0:+e||0;var n=this;return n.__filtered__&&(e>0||0>t)?new o(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==k&&(t=+t||0,n=0>t?n.dropRight(-t):n.take(t-e)),n)},o.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},o.prototype.toArray=function(){return this.take(Mi)},Rt(o.prototype,function(e,n){var a=/^(?:filter|map|reject)|While$/.test(n),i=/^(?:first|last)$/.test(n),s=t[i?"take"+("last"==n?"Right":""):n];s&&(t.prototype[n]=function(){var t=i?[1]:arguments,n=this.__chain__,l=this.__wrapped__,u=!!this.__actions__.length,c=l instanceof o,f=t[0],p=c||Ss(l);p&&a&&"function"==typeof f&&1!=f.length&&(c=p=!1);var d=function(e){return i&&n?s(e,1)[0]:s.apply(k,ut([e],t))},h={func:zr,args:[d],thisArg:k},g=c&&!u;if(i&&!n)return g?(l=l.clone(),l.__actions__.push(h),e.call(l)):s.call(k,this.value())[0];if(!i&&p){l=g?l:new o(this);var m=e.apply(l,t);return m.__actions__.push(h),new r(m,n)}return this.thru(d)})}),tt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var n=(/^(?:replace|split)$/.test(e)?$a:Za)[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:join|pop|replace|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;return o&&!this.__chain__?n.apply(this.value(),e):this[r](function(t){return n.apply(t,e)})}}),Rt(o.prototype,function(e,n){var r=t[n];if(r){var o=r.name,a=Oi[o]||(Oi[o]=[]);a.push({name:n,func:r})}}),Oi[An(k,D).name]=[{name:"wrapper",func:k}],o.prototype.clone=b,o.prototype.reverse=$,o.prototype.value=re,t.prototype.chain=qr,t.prototype.commit=Hr,t.prototype.concat=ts,t.prototype.plant=Xr,t.prototype.reverse=Gr,t.prototype.toString=Yr,t.prototype.run=t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=Qr,t.prototype.collect=t.prototype.map,t.prototype.head=t.prototype.first,t.prototype.select=t.prototype.filter,t.prototype.tail=t.prototype.rest,t}var k,M="3.10.1",S=1,D=2,R=4,A=8,I=16,O=32,N=64,F=128,L=256,B=30,j="...",W=150,U=16,V=200,z=1,q=2,H="Expected a function",X="__lodash_placeholder__",G="[object Arguments]",Y="[object Array]",Q="[object Boolean]",K="[object Date]",Z="[object Error]",J="[object Function]",$="[object Map]",ee="[object Number]",te="[object Object]",ne="[object RegExp]",re="[object Set]",oe="[object String]",ae="[object WeakMap]",ie="[object ArrayBuffer]",se="[object Float32Array]",le="[object Float64Array]",ue="[object Int8Array]",ce="[object Int16Array]",fe="[object Int32Array]",pe="[object Uint8Array]",de="[object Uint8ClampedArray]",he="[object Uint16Array]",ge="[object Uint32Array]",me=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ye=/&(?:amp|lt|gt|quot|#39|#96);/g,be=/[&<>"'`]/g,we=RegExp(ye.source),xe=RegExp(be.source),Ce=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,ke=/^\w*$/,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Se=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,De=RegExp(Se.source),Re=/[\u0300-\u036f\ufe20-\ufe23]/g,Ae=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Oe=/\w*$/,Ne=/^0[xX]/,Fe=/^\[object .+?Constructor\]$/,Le=/^\d+$/,Be=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,je=/($^)/,We=/['\n\r\u2028\u2029\\]/g,Ue=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),Ve=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],ze=-1,qe={};qe[se]=qe[le]=qe[ue]=qe[ce]=qe[fe]=qe[pe]=qe[de]=qe[he]=qe[ge]=!0,qe[G]=qe[Y]=qe[ie]=qe[Q]=qe[K]=qe[Z]=qe[J]=qe[$]=qe[ee]=qe[te]=qe[ne]=qe[re]=qe[oe]=qe[ae]=!1;var He={};He[G]=He[Y]=He[ie]=He[Q]=He[K]=He[se]=He[le]=He[ue]=He[ce]=He[fe]=He[ee]=He[te]=He[ne]=He[oe]=He[pe]=He[de]=He[he]=He[ge]=!0,He[Z]=He[J]=He[$]=He[re]=He[ae]=!1;var Xe={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Ge={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ye={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Qe={"function":!0,object:!0},Ke={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Je=Qe[typeof t]&&t&&!t.nodeType&&t,$e=Qe[typeof e]&&e&&!e.nodeType&&e,et=Je&&$e&&"object"==typeof o&&o&&o.Object&&o,tt=Qe[typeof self]&&self&&self.Object&&self,nt=Qe[typeof window]&&window&&window.Object&&window,rt=($e&&$e.exports===Je&&Je,et||nt!==(this&&this.window)&&nt||tt||this),ot=P();rt._=ot,r=function(){return ot}.call(t,n,t,e),!(r!==k&&(e.exports=r))}).call(this)}).call(t,n(281)(e),function(){return this}())},function(e,t,n){function r(e,t){return-1!==o(e,t)}var o=n(620);e.exports=r},function(e,t){function n(e,t,n){if(n=n||0,null==e)return-1;for(var r=e.length,o=0>n?r+n:n;r>o;){if(e[o]===t)return o;o++}return-1}e.exports=n},function(e,t,n){function r(e,t,n){if(null!=e&&e.length){if(e.length&&!t)return Math.max.apply(Math,e);t=o(t,n);for(var r,a,i,s=-(1/0),l=-1,u=e.length;++l<u;)a=e[l],i=t(a,l,e),i>s&&(s=i,r=a);return r}return 1/0}var o=n(237);e.exports=r},function(e,t,n){function r(e,t,n){if(null!=e&&e.length){if(e.length&&!t)return Math.min.apply(Math,e);t=o(t,n);for(var r,a,i,s=1/0,l=-1,u=e.length;++l<u;)a=e[l],i=t(a,l,e),s>i&&(s=i,r=a);return r}return-(1/0)}var o=n(237);e.exports=r},function(e,t){function n(e,t,n){var r=e.length;t=null==t?0:0>t?Math.max(r+t,0):Math.min(t,r),n=null==n?r:0>n?Math.max(r+n,0):Math.min(n,r);for(var o=[];n>t;)o.push(e[t++]);return o}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e){return function(t){return t[e]}}e.exports=n},function(e,t,n){var r=n(627),o=Array.isArray||function(e){return r(e,"Array")};e.exports=o},function(e,t,n){function r(e,t){return o(e)===t}var o=n(628);e.exports=r},function(e,t){function n(e){return null===e?"Null":e===r?"Undefined":o.exec(a.call(e))[1]}var r,o=/^\[object (.*)\]$/,a=Object.prototype.toString;e.exports=n},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r;)if(i(e[n],t))return!0;return!1}function o(e,t){for(var n=-1,o=t.length;++n<o;)if(!r(e,t[n]))return!1;return!0}function a(e,t){var n=!0;return s(t,function(t,r){return i(e[r],t)?void 0:n=!1}),n}function i(e,t){return e&&"object"==typeof e?l(e)&&l(t)?o(e,t):a(e,t):e===t}var s=n(135),l=n(626);e.exports=i},function(e,t,n){function r(){s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=!0;for(var e in{toString:null})i=!1}function o(e,t,n){var o,u=0;null==i&&r();for(o in e)if(a(t,e,o,n)===!1)break;if(i)for(var c=e.constructor,f=!!c&&e===c.prototype;(o=s[u++])&&("constructor"===o&&(f||!l(e,o))||e[o]===Object.prototype[o]||a(t,e,o,n)!==!1););}function a(e,t,n,r){return e.call(r,t[n],n,t)}var i,s,l=n(136);e.exports=o},function(e,t,n){function r(e,t){return o(a(e),t)}var o=n(622),a=n(238);e.exports=r},function(e,t,n){function r(e,t){var n="string"!=typeof arguments[1]?arguments[1]:o(arguments,1),r={};for(var i in e)e.hasOwnProperty(i)&&!a(n,i)&&(r[i]=e[i]);return r}var o=n(623),a=n(619);e.exports=r},function(e,t,n){function r(e){var t=0;return o(e,function(){t++}),t}var o=n(135);e.exports=r},function(e,t,n){var r,o;r=[n(240)],o=function(e){function t(t,n,r){n=e(n,r);var o=!0;if(null==t)return o;for(var a=-1,i=t.length;++a<i;)if(!n(t[a],a,t)){o=!1;break}return o}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e,t,n){if(n=n||0,null==e)return-1;for(var r=e.length,o=0>n?r+n:n;r>o;){if(e[o]===t)return o;o++}return-1}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(){function e(e){return e}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(){function e(e){return function(t){return t[e]}}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r,o;r=[n(138),n(246),n(642)],o=function(e,t,n){function r(t){switch(e(t)){case"Object":return o(t);case"Array":return s(t);case"RegExp":return a(t);case"Date":return i(t);default:return t}}function o(e){return t(e)?n({},e):e}function a(e){var t="";return t+=e.multiline?"m":"",t+=e.global?"g":"",t+=e.ignoreCase?"i":"",new RegExp(e.source,t)}function i(e){return new Date(+e)}function s(e){return e.slice()}return r}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(100),n(243)],o=function(e,t){function n(e,t){for(var n=-1,r=e.length;++n<r;)if(a(e[n],t))return!0;return!1}function r(e,t){for(var r=-1,o=t.length;++r<o;)if(!n(e,t[r]))return!1;return!0}function o(t,n){var r=!0;return e(n,function(e,n){return a(t[n],e)?void 0:r=!1}),r}function a(e,n){return e&&"object"==typeof e?t(e)&&t(n)?r(e,n):o(e,n):e===n}return a}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(100),n(240)],o=function(e,t){function n(n,r,o){r=t(r,o);var a=!0;return e(n,function(e,t){return r(e,t,n)?void 0:(a=!1,!1)}),a}return n}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(101)],o=function(e){function t(){a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=!0;for(var e in{toString:null})o=!1}function n(n,i,s){var l,u=0;null==o&&t();for(l in n)if(r(i,n,l,s)===!1)break;if(o)for(var c=n.constructor,f=!!c&&n===c.prototype;(l=a[u++])&&("constructor"===l&&(f||!e(n,l))||n[l]===Object.prototype[l]||r(i,n,l,s)!==!1););}function r(e,t,n,r){return e.call(r,t[n],n,t)}var o,a;return n}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(100)],o=function(e){function t(t,r){for(var o,a=0,i=arguments.length;++a<i;)o=arguments[a],null!=o&&e(o,n,t);return t}function n(e,t){this[t]=e}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){"use strict";var r=n(23),o=n(147),a=n(231),i={componentDidMount:function(){this.props.autoFocus&&a(o(this))}},s={Mixin:i,focusDOMComponent:function(){a(r.getNode(this._rootNodeID))}};e.exports=s},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case M.topCompositionStart:return S.compositionStart;case M.topCompositionEnd:return S.compositionEnd;case M.topCompositionUpdate:return S.compositionUpdate}}function i(e,t){return e===M.topKeyDown&&t.keyCode===w}function s(e,t){switch(e){case M.topKeyUp:return-1!==b.indexOf(t.keyCode);case M.topKeyDown:return t.keyCode!==w;case M.topKeyPress:case M.topMouseDown:case M.topBlur:return!0;default:return!1}}function l(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,r,o){var u,c;if(x?u=a(e):R?s(e,r)&&(u=S.compositionEnd):i(e,r)&&(u=S.compositionStart),!u)return null;T&&(R||u!==S.compositionStart?u===S.compositionEnd&&R&&(c=R.getData()):R=m.getPooled(t));var f=v.getPooled(u,n,r,o);if(c)f.data=c;else{var p=l(r);null!==p&&(f.data=p)}return h.accumulateTwoPhaseDispatches(f),f}function c(e,t){switch(e){case M.topCompositionEnd:return l(t);case M.topKeyPress:var n=t.which;return n!==P?null:(D=!0,k);case M.topTextInput:var r=t.data;return r===k&&D?null:r;default:return null}}function f(e,t){if(R){if(e===M.topCompositionEnd||s(e,t)){var n=R.getData();return m.release(R),R=null,n}return null}switch(e){case M.topPaste:return null;case M.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case M.topCompositionEnd:return T?null:t.data;default:return null}}function p(e,t,n,r,o){var a;if(a=E?c(e,r):f(e,r),!a)return null;var i=_.getPooled(S.beforeInput,n,r,o);return i.data=a,h.accumulateTwoPhaseDispatches(i),i}var d=n(41),h=n(79),g=n(20),m=n(652),v=n(682),_=n(685),y=n(47),b=[9,13,27,32],w=229,x=g.canUseDOM&&"CompositionEvent"in window,C=null;g.canUseDOM&&"documentMode"in document&&(C=document.documentMode);var E=g.canUseDOM&&"TextEvent"in window&&!C&&!r(),T=g.canUseDOM&&(!x||C&&C>8&&11>=C),P=32,k=String.fromCharCode(P),M=d.topLevelTypes,S={beforeInput:{phasedRegistrationNames:{bubbled:y({onBeforeInput:null}),captured:y({onBeforeInputCapture:null})},dependencies:[M.topCompositionEnd,M.topKeyPress,M.topTextInput,M.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:y({onCompositionEnd:null}),captured:y({onCompositionEndCapture:null})},dependencies:[M.topBlur,M.topCompositionEnd,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:y({onCompositionStart:null}),captured:y({onCompositionStartCapture:null})},dependencies:[M.topBlur,M.topCompositionStart,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:y({onCompositionUpdate:null}),captured:y({onCompositionUpdateCapture:null})},dependencies:[M.topBlur,M.topCompositionUpdate,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]}},D=!1,R=null,A={eventTypes:S,extractEvents:function(e,t,n,r,o){return[u(e,t,n,r,o),p(e,t,n,r,o)]}};e.exports=A},function(e,t,n){"use strict";var r=n(248),o=n(20),a=n(29),i=(n(604),n(690)),s=n(609),l=n(613),u=(n(9),l(function(e){return s(e)})),c=!1,f="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(d){c=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}var h={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=u(n)+":",t+=i(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=i(o,t[o]);if("float"===o&&(o=f),a)n[o]=a;else{var s=c&&r.shorthandPropertyExpansions[o];if(s)for(var l in s)n[l]="";else n[o]=""}}}};a.measureMethods(h,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),e.exports=h},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=C.getPooled(S.change,R,e,E(e));b.accumulateTwoPhaseDispatches(t),x.batchedUpdates(a,t)}function a(e){y.enqueueEvents(e),y.processEventQueue(!1)}function i(e,t){D=e,R=t,D.attachEvent("onchange",o)}function s(){D&&(D.detachEvent("onchange",o),D=null,R=null)}function l(e,t,n){return e===M.topChange?n:void 0}function u(e,t,n){e===M.topFocus?(s(),i(t,n)):e===M.topBlur&&s()}function c(e,t){D=e,R=t,A=e.value,I=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(D,"value",F),D.attachEvent("onpropertychange",p)}function f(){D&&(delete D.value,D.detachEvent("onpropertychange",p),D=null,R=null,A=null,I=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==A&&(A=t,o(e))}}function d(e,t,n){return e===M.topInput?n:void 0}function h(e,t,n){e===M.topFocus?(f(),c(t,n)):e===M.topBlur&&f()}function g(e,t,n){return e!==M.topSelectionChange&&e!==M.topKeyUp&&e!==M.topKeyDown||!D||D.value===A?void 0:(A=D.value,R)}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function v(e,t,n){return e===M.topClick?n:void 0}var _=n(41),y=n(78),b=n(79),w=n(20),x=n(30),C=n(53),E=n(150),T=n(153),P=n(275),k=n(47),M=_.topLevelTypes,S={change:{phasedRegistrationNames:{bubbled:k({onChange:null}),captured:k({onChangeCapture:null})},dependencies:[M.topBlur,M.topChange,M.topClick,M.topFocus,M.topInput,M.topKeyDown,M.topKeyUp,M.topSelectionChange]}},D=null,R=null,A=null,I=null,O=!1;w.canUseDOM&&(O=T("change")&&(!("documentMode"in document)||document.documentMode>8));var N=!1;w.canUseDOM&&(N=T("input")&&(!("documentMode"in document)||document.documentMode>9));var F={get:function(){return I.get.call(this)},set:function(e){A=""+e,I.set.call(this,e)}},L={eventTypes:S,extractEvents:function(e,t,n,o,a){var i,s;if(r(t)?O?i=l:s=u:P(t)?N?i=d:(i=g,s=h):m(t)&&(i=v),i){var c=i(e,t,n);if(c){var f=C.getPooled(S.change,c,o,a);return f.type="change",b.accumulateTwoPhaseDispatches(f),f}}s&&s(e,t,n)}};e.exports=L},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(20),a=n(606),i=n(35),s=n(233),l=n(5),u=/^(<[^ \/>]+)/,c="data-danger-index",f={dangerouslyRenderMarkup:function(e){o.canUseDOM?void 0:l(!1);for(var t,n={},f=0;f<e.length;f++)e[f]?void 0:l(!1),t=r(e[f]),t=s(t)?t:"*",n[t]=n[t]||[],n[t][f]=e[f];var p=[],d=0;for(t in n)if(n.hasOwnProperty(t)){var h,g=n[t];for(h in g)if(g.hasOwnProperty(h)){var m=g[h];g[h]=m.replace(u,"$1 "+c+'="'+h+'" ')}for(var v=a(g.join(""),i),_=0;_<v.length;++_){var y=v[_];y.hasAttribute&&y.hasAttribute(c)&&(h=+y.getAttribute(c),y.removeAttribute(c),p.hasOwnProperty(h)?l(!1):void 0,p[h]=y,d+=1)}}return d!==p.length?l(!1):void 0,p.length!==e.length?l(!1):void 0,p},dangerouslyReplaceNodeWithMarkup:function(e,t){o.canUseDOM?void 0:l(!1),t?void 0:l(!1),"html"===e.tagName.toLowerCase()?l(!1):void 0;var n;n="string"==typeof t?a(t,i)[0]:t,e.parentNode.replaceChild(n,e)}};e.exports=f},function(e,t,n){"use strict";var r=n(47),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];e.exports=o},function(e,t,n){"use strict";var r=n(41),o=n(79),a=n(106),i=n(23),s=n(47),l=r.topLevelTypes,u=i.getFirstReactDOM,c={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[l.topMouseOut,l.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[l.topMouseOut,l.topMouseOver]}},f=[null,null],p={eventTypes:c,extractEvents:function(e,t,n,r,s){if(e===l.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==l.topMouseOut&&e!==l.topMouseOver)return null;var p;if(t.window===t)p=t;else{var d=t.ownerDocument;p=d?d.defaultView||d.parentWindow:window}var h,g,m="",v="";if(e===l.topMouseOut?(h=t,m=n,g=u(r.relatedTarget||r.toElement),g?v=i.getID(g):g=p,g=g||p):(h=p,g=t,v=n),h===g)return null;var _=a.getPooled(c.mouseLeave,m,r,s);_.type="mouseleave",_.target=h,_.relatedTarget=g;var y=a.getPooled(c.mouseEnter,v,r,s);return y.type="mouseenter",y.target=g,y.relatedTarget=h,o.accumulateEnterLeaveDispatches(_,y,m,v),f[0]=_,f[1]=y,f}};e.exports=p},function(e,t,n){"use strict";function r(e){return e===m.topMouseUp||e===m.topTouchEnd||e===m.topTouchCancel}function o(e){return e===m.topMouseMove||e===m.topTouchMove}function a(e){return e===m.topMouseDown||e===m.topTouchStart}function i(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=g.Mount.getNode(r),t?d.invokeGuardedCallbackWithCatch(o,n,e,r):d.invokeGuardedCallback(o,n,e,r),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)i(e,t,n[o],r[o]);else n&&i(e,t,n,r);e._dispatchListeners=null,e._dispatchIDs=null}function l(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function u(e){var t=l(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function c(e){var t=e._dispatchListeners,n=e._dispatchIDs;Array.isArray(t)?h(!1):void 0;var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function f(e){return!!e._dispatchListeners}var p=n(41),d=n(263),h=n(5),g=(n(9),{Mount:null,injectMount:function(e){g.Mount=e}}),m=p.topLevelTypes,v={isEndish:r,isMoveish:o,isStartish:a,executeDirectDispatch:c,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:u,hasDispatches:f,getNode:function(e){return g.Mount.getNode(e)},getID:function(e){return g.Mount.getID(e)},injection:g};e.exports=v},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(48),a=n(10),i=n(274);a(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),a=o.length;for(e=0;r>e&&n[e]===o[e];e++);var i=r-e;for(t=1;i>=t&&n[r-t]===o[a-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,o=n(63),a=n(20),i=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,l=o.injection.HAS_BOOLEAN_VALUE,u=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,f=o.injection.HAS_POSITIVE_NUMERIC_VALUE,p=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(a.canUseDOM){var d=document.implementation;r=d&&d.hasFeature&&d.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|l,allowTransparency:i,alt:null,async:l,autoComplete:null,autoPlay:l,capture:i|l,cellPadding:null,cellSpacing:null,charSet:i,challenge:i,checked:s|l,classID:i,className:r?i:s,cols:i|f,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:s|l,coords:null,crossOrigin:null,data:null,dateTime:i,"default":l,defer:l,dir:null,disabled:i|l,download:p,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:l,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|l,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:i,integrity:null,is:i,keyParams:i,keyType:i,kind:null,label:null,lang:null,list:i,loop:s|l,low:null,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,minLength:i,multiple:s|l,muted:s|l,name:null,nonce:i,noValidate:l,open:l,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|l,rel:null,required:l,reversed:l,role:i,rows:i|f,rowSpan:null,sandbox:null,scope:null,scoped:l,scrolling:null,seamless:i|l,selected:s|l,shape:null,size:i|f,sizes:i,span:f,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:i,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|u,width:i,wmode:i,wrap:null,about:i,datatype:i,inlist:i,prefix:i,property:i,resource:i,"typeof":i,vocab:i,autoCapitalize:i,autoCorrect:i,autoSave:null,color:null,itemProp:i,itemScope:i|l,itemType:i,itemID:i,itemRef:i,results:null,security:i,unselectable:i},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=h},function(e,t,n){"use strict";var r=n(254),o=n(664),a=n(669),i=n(10),s=n(691),l={};i(l,a),i(l,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),l.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,l.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,e.exports=l},function(e,t,n){"use strict";var r=(n(80),n(147)),o=(n(9),"_getDOMNodeDidWarn"),a={getDOMNode:function(){return this.constructor[o]=!0,r(this)}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){var r=void 0===e[n];null!=t&&r&&(e[n]=a(t,null))}var o=n(52),a=n(152),i=n(155),s=n(156),l=(n(9),{instantiateChildren:function(e,t,n){if(null==e)return null;var o={};return s(e,r,o),o},updateChildren:function(e,t,n,r){if(!t&&!e)return null;var s;for(s in t)if(t.hasOwnProperty(s)){var l=e&&e[s],u=l&&l._currentElement,c=t[s];if(null!=l&&i(u,c))o.receiveComponent(l,c,n,r),t[s]=l;else{l&&o.unmountComponent(l,s);var f=a(c,null);t[s]=f}}for(s in e)!e.hasOwnProperty(s)||t&&t.hasOwnProperty(s)||o.unmountComponent(e[s]);return t},unmountChildren:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];o.unmountComponent(n)}}});e.exports=l},function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(e){}var a=n(143),i=n(42),s=n(24),l=n(80),u=n(29),c=n(105),f=(n(104),n(52)),p=n(145),d=n(10),h=n(75),g=n(5),m=n(155);n(9);o.prototype.render=function(){var e=l.get(this)._currentElement.type;return e(this.props,this.context,this.updater)};var v=1,_={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=v++,this._rootNodeID=e;var r,a,i=this._processProps(this._currentElement.props),u=this._processContext(n),c=this._currentElement.type,d="prototype"in c;d&&(r=new c(i,u,p)),d&&null!==r&&r!==!1&&!s.isValidElement(r)||(a=r,r=new o(c)),r.props=i,r.context=u,r.refs=h,r.updater=p,this._instance=r,l.set(r,this);var m=r.state;void 0===m&&(r.state=m=null),"object"!=typeof m||Array.isArray(m)?g(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===a&&(a=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(a);var _=f.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return r.componentDidMount&&t.getReactMountReady().enqueue(r.componentDidMount,r),_},unmountComponent:function(){var e=this._instance;e.componentWillUnmount&&e.componentWillUnmount(),f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,l.remove(e)},_maskContext:function(e){var t=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return h;t={};for(var o in r)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof t.childContextTypes?g(!1):void 0;for(var o in r)o in t.childContextTypes?void 0:g(!1);return d({},e,r)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var i;try{"function"!=typeof e[a]?g(!1):void 0,i=e[a](t,a,o,n)}catch(s){i=s}if(i instanceof Error){r(this);n===c.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,r,o){var a,i=this._instance,s=this._context===o?i.context:this._processContext(o);t===n?a=n.props:(a=this._processProps(n.props),i.componentWillReceiveProps&&i.componentWillReceiveProps(a,s));var l=this._processPendingState(a,s),u=this._pendingForceUpdate||!i.shouldComponentUpdate||i.shouldComponentUpdate(a,l,s);u?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,a,l,s,e,o)):(this._currentElement=n,this._context=o,i.props=a,i.state=l,i.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var a=d({},o?r[0]:n.state),i=o?1:0;i<r.length;i++){var s=r[i];d(a,"function"==typeof s?s.call(n,a,e,t):s)}return a},_performComponentUpdate:function(e,t,n,r,o,a){var i,s,l,u=this._instance,c=Boolean(u.componentDidUpdate);c&&(i=u.props,s=u.state,l=u.context),u.componentWillUpdate&&u.componentWillUpdate(t,n,r),this._currentElement=e,this._context=a,u.props=t,u.state=n,u.context=r,this._updateRenderedComponent(o,a),c&&o.getReactMountReady().enqueue(u.componentDidUpdate.bind(u,i,s,l),u); -},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(m(r,o))f.receiveComponent(n,o,e,this._processChildContext(t));else{var a=this._rootNodeID,i=n._rootNodeID;f.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o);var s=f.mountComponent(this._renderedComponent,a,e,this._processChildContext(t));this._replaceNodeWithMarkupByID(i,s)}},_replaceNodeWithMarkupByID:function(e,t){a.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(){var e;i.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{i.current=null}return null===e||e===!1||s.isValidElement(e)?void 0:g(!1),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?g(!1):void 0;var r=t.getPublicInstance(),o=n.refs===h?n.refs={}:n.refs;o[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return e instanceof o?null:e},_instantiateReactComponent:null};u.measureMethods(_,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var y={Mixin:_};e.exports=y},function(e,t){"use strict";var n={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getNativeProps:function(e,t,r){if(!t.disabled)return t;var o={};for(var a in t)t.hasOwnProperty(a)&&!n[a]&&(o[a]=t[a]);return o}};e.exports=r},function(e,t,n){"use strict";function r(){return this}function o(){var e=this._reactInternalComponent;return!!e}function a(){}function i(e,t){var n=this._reactInternalComponent;n&&(A.enqueueSetPropsInternal(n,e),t&&A.enqueueCallbackInternal(n,t))}function s(e,t){var n=this._reactInternalComponent;n&&(A.enqueueReplacePropsInternal(n,e),t&&A.enqueueCallbackInternal(n,t))}function l(e,t){t&&(null!=t.dangerouslySetInnerHTML&&(null!=t.children?F(!1):void 0,"object"==typeof t.dangerouslySetInnerHTML&&X in t.dangerouslySetInnerHTML?void 0:F(!1)),null!=t.style&&"object"!=typeof t.style?F(!1):void 0)}function u(e,t,n,r){var o=S.findReactContainerForID(e);if(o){var a=o.nodeType===G?o.ownerDocument:o;U(t,a)}r.getReactMountReady().enqueue(c,{id:e,registrationName:t,listener:n})}function c(){var e=this;x.putListener(e.id,e.registrationName,e.listener)}function f(){var e=this;e._rootNodeID?void 0:F(!1);var t=S.getNode(e._rootNodeID);switch(t?void 0:F(!1),e._tag){case"iframe":e._wrapperState.listeners=[x.trapBubbledEvent(w.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in Y)Y.hasOwnProperty(n)&&e._wrapperState.listeners.push(x.trapBubbledEvent(w.topLevelTypes[n],Y[n],t));break;case"img":e._wrapperState.listeners=[x.trapBubbledEvent(w.topLevelTypes.topError,"error",t),x.trapBubbledEvent(w.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[x.trapBubbledEvent(w.topLevelTypes.topReset,"reset",t),x.trapBubbledEvent(w.topLevelTypes.topSubmit,"submit",t)]}}function p(){T.mountReadyWrapper(this)}function d(){k.postUpdateWrapper(this)}function h(e){$.call(J,e)||(Z.test(e)?void 0:F(!1),J[e]=!0)}function g(e,t){return e.indexOf("-")>=0||null!=t.is}function m(e){h(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var v=n(643),_=n(645),y=n(63),b=n(140),w=n(41),x=n(103),C=n(142),E=n(658),T=n(661),P=n(662),k=n(256),M=n(665),S=n(23),D=n(670),R=n(29),A=n(145),I=n(10),O=n(108),N=n(109),F=n(5),L=(n(153),n(47)),B=n(110),j=n(154),W=(n(234),n(157),n(9),x.deleteListener),U=x.listenTo,V=x.registrationNameModules,z={string:!0,number:!0},q=L({children:null}),H=L({style:null}),X=L({__html:null}),G=1,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Z=(I({menuitem:!0},Q),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),J={},$={}.hasOwnProperty;m.displayName="ReactDOMComponent",m.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(f,this);break;case"button":r=E.getNativeProps(this,r,n);break;case"input":T.mountWrapper(this,r,n),r=T.getNativeProps(this,r,n);break;case"option":P.mountWrapper(this,r,n),r=P.getNativeProps(this,r,n);break;case"select":k.mountWrapper(this,r,n),r=k.getNativeProps(this,r,n),n=k.processChildContext(this,r,n);break;case"textarea":M.mountWrapper(this,r,n),r=M.getNativeProps(this,r,n)}l(this,r);var o;if(t.useCreateElement){var a=n[S.ownerDocumentContextKey],i=a.createElement(this._currentElement.type);b.setAttributeForID(i,this._rootNodeID),S.getID(i),this._updateDOMProperties({},r,t,i),this._createInitialChildren(t,r,n,i),o=i}else{var s=this._createOpenTagMarkupAndPutListeners(t,r),u=this._createContentMarkup(t,r,n);o=!u&&Q[this._tag]?s+"/>":s+">"+u+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":r.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(V.hasOwnProperty(r))o&&u(this._rootNodeID,r,o,e);else{r===H&&(o&&(o=this._previousStyleCopy=I({},t.style)),o=_.createMarkupForStyles(o));var a=null;null!=this._tag&&g(this._tag,t)?r!==q&&(a=b.createMarkupForCustomAttribute(r,o)):a=b.createMarkupForProperty(r,o),a&&(n+=" "+a)}}if(e.renderToStaticMarkup)return n;var i=b.createMarkupForID(this._rootNodeID);return n+" "+i},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var a=z[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)r=N(a);else if(null!=i){var s=this.mountChildren(i,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&B(r,o.__html);else{var a=z[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)j(r,a);else if(null!=i)for(var s=this.mountChildren(i,e,n),l=0;l<s.length;l++)r.appendChild(s[l])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var o=t.props,a=this._currentElement.props;switch(this._tag){case"button":o=E.getNativeProps(this,o),a=E.getNativeProps(this,a);break;case"input":T.updateWrapper(this),o=T.getNativeProps(this,o),a=T.getNativeProps(this,a);break;case"option":o=P.getNativeProps(this,o),a=P.getNativeProps(this,a);break;case"select":o=k.getNativeProps(this,o),a=k.getNativeProps(this,a);break;case"textarea":M.updateWrapper(this),o=M.getNativeProps(this,o),a=M.getNativeProps(this,a)}l(this,a),this._updateDOMProperties(o,a,e,null),this._updateDOMChildren(o,a,e,r),!O&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=a),"select"===this._tag&&e.getReactMountReady().enqueue(d,this)},_updateDOMProperties:function(e,t,n,r){var o,a,i;for(o in e)if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o))if(o===H){var s=this._previousStyleCopy;for(a in s)s.hasOwnProperty(a)&&(i=i||{},i[a]="");this._previousStyleCopy=null}else V.hasOwnProperty(o)?e[o]&&W(this._rootNodeID,o):(y.properties[o]||y.isCustomAttribute(o))&&(r||(r=S.getNode(this._rootNodeID)),b.deleteValueForProperty(r,o));for(o in t){var l=t[o],c=o===H?this._previousStyleCopy:e[o];if(t.hasOwnProperty(o)&&l!==c)if(o===H)if(l?l=this._previousStyleCopy=I({},l):this._previousStyleCopy=null,c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(i=i||{},i[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(i=i||{},i[a]=l[a])}else i=l;else V.hasOwnProperty(o)?l?u(this._rootNodeID,o,l,n):c&&W(this._rootNodeID,o):g(this._tag,t)?(r||(r=S.getNode(this._rootNodeID)),o===q&&(l=null),b.setValueForAttribute(r,o,l)):(y.properties[o]||y.isCustomAttribute(o))&&(r||(r=S.getNode(this._rootNodeID)),null!=l?b.setValueForProperty(r,o,l):b.deleteValueForProperty(r,o))}i&&(r||(r=S.getNode(this._rootNodeID)),_.setValueForStyles(r,i))},_updateDOMChildren:function(e,t,n,r){var o=z[typeof e.children]?e.children:null,a=z[typeof t.children]?t.children:null,i=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,l=null!=o?null:e.children,u=null!=a?null:t.children,c=null!=o||null!=i,f=null!=a||null!=s;null!=l&&null==u?this.updateChildren(null,n,r):c&&!f&&this.updateTextContent(""),null!=a?o!==a&&this.updateTextContent(""+a):null!=s?i!==s&&this.updateMarkup(""+s):null!=u&&this.updateChildren(u,n,r)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var e=this._wrapperState.listeners;if(e)for(var t=0;t<e.length;t++)e[t].remove();break;case"input":T.unmountWrapper(this);break;case"html":case"head":case"body":F(!1)}if(this.unmountChildren(),x.deleteAllListeners(this._rootNodeID),C.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){var n=this._nodeWithLegacyProperties;n._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var e=S.getNode(this._rootNodeID);e._reactInternalComponent=this,e.getDOMNode=r,e.isMounted=o,e.setState=a,e.replaceState=a,e.forceUpdate=a,e.setProps=i,e.replaceProps=s,e.props=this._currentElement.props,this._nodeWithLegacyProperties=e}return this._nodeWithLegacyProperties}},R.measureMethods(m,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),I(m.prototype,m.Mixin,D.Mixin),e.exports=m},function(e,t,n){"use strict";function r(e){return o.createFactory(e)}var o=n(24),a=(n(260),n(612)),i=a({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);l.asap(r,this);var o=t.name;if("radio"===t.type&&null!=o){for(var a=s.getNode(this._rootNodeID),u=a;u.parentNode;)u=u.parentNode;for(var p=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;d<p.length;d++){var h=p[d];if(h!==a&&h.form===a.form){var g=s.getID(h);g?void 0:c(!1);var m=f[g];m?void 0:c(!1),l.asap(r,m)}}}return n}var a=n(144),i=n(141),s=n(23),l=n(30),u=n(10),c=n(5),f={},p={getNativeProps:function(e,t,n){var r=i.getValue(t),o=i.getChecked(t),a=u({},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:e._wrapperState.initialValue,checked:null!=o?o:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return a},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:t.defaultChecked||!1,initialValue:null!=n?n:null,onChange:o.bind(e)}},mountReadyWrapper:function(e){f[e._rootNodeID]=e},unmountWrapper:function(e){delete f[e._rootNodeID]},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&a.updatePropertyByID(e._rootNodeID,"checked",n||!1);var r=i.getValue(t);null!=r&&a.updatePropertyByID(e._rootNodeID,"value",""+r)}};e.exports=p},function(e,t,n){"use strict";var r=n(251),o=n(256),a=n(10),i=(n(9),o.valueContextKey),s={mountWrapper:function(e,t,n){var r=n[i],o=null;if(null!=r)if(o=!1,Array.isArray(r)){for(var a=0;a<r.length;a++)if(""+r[a]==""+t.value){o=!0;break}}else o=""+r==""+t.value;e._wrapperState={selected:o}},getNativeProps:function(e,t,n){var o=a({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(o.selected=e._wrapperState.selected);var i="";return r.forEach(t.children,function(e){null!=e&&("string"!=typeof e&&"number"!=typeof e||(i+=e))}),i&&(o.children=i),o}};e.exports=s},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var a=o.text.length,i=a+r;return{start:a,end:i}}function a(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,a=t.focusNode,i=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(l){return null}var u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:s.toString().length,f=s.cloneRange();f.selectNodeContents(e),f.setEnd(s.startContainer,s.startOffset);var p=r(f.startContainer,f.startOffset,f.endContainer,f.endOffset),d=p?0:f.toString().length,h=d+c,g=document.createRange();g.setStart(n,o),g.setEnd(a,i);var m=g.collapsed;return{start:m?h:d,end:m?d:h}}function i(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),a="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>a){var i=a;a=o,o=i}var s=u(e,o),l=u(e,a);if(s&&l){var f=document.createRange();f.setStart(s.node,s.offset),n.removeAllRanges(),o>a?(n.addRange(f),n.extend(l.node,l.offset)):(f.setEnd(l.node,l.offset),n.addRange(f))}}}var l=n(20),u=n(694),c=n(274),f=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:a,setOffsets:f?i:s};e.exports=p},function(e,t,n){"use strict";var r=n(259),o=n(675),a=n(146);r.inject();var i={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:a};e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return s.asap(r,this),n}var a=n(141),i=n(144),s=n(30),l=n(10),u=n(5),c=(n(9),{getNativeProps:function(e,t,n){null!=t.dangerouslySetInnerHTML?u(!1):void 0;var r=l({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return r},mountWrapper:function(e,t){var n=t.defaultValue,r=t.children;null!=r&&(null!=n?u(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:u(!1),r=r[0]),n=""+r),null==n&&(n="");var i=a.getValue(t);e._wrapperState={initialValue:""+(null!=i?i:n),onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=a.getValue(t);null!=n&&i.updatePropertyByID(e._rootNodeID,"value",""+n)}});e.exports=c},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(78),a={handleTopLevel:function(e,t,n,a,i){var s=o.extractEvents(e,t,n,a,i);r(s)}};e.exports=a},function(e,t,n){"use strict";function r(e){var t=p.getID(e),n=f.getReactRootIDFromNodeID(t),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function a(e){i(e)}function i(e){for(var t=p.getFirstReactDOM(g(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0;o<e.ancestors.length;o++){t=e.ancestors[o];var a=p.getID(t)||"";v._handleTopLevel(e.topLevelType,t,a,e.nativeEvent,g(e.nativeEvent))}}function s(e){var t=m(window);e(t)}var l=n(229),u=n(20),c=n(48),f=n(64),p=n(23),d=n(30),h=n(10),g=n(150),m=n(607);h(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?l.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?l.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=s.bind(null,e);l.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(a,n)}finally{o.release(n)}}}};e.exports=v},function(e,t,n){"use strict";var r=n(63),o=n(78),a=n(143),i=n(252),s=n(261),l=n(103),u=n(267),c=n(29),f=n(270),p=n(30),d={Component:a.injection,Class:i.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventEmitter:l.injection,NativeComponent:u.injection,Perf:c.injection,RootIndex:f.injection,Updates:p.injection};e.exports=d},function(e,t,n){"use strict";var r=n(251),o=n(253),a=n(252),i=n(660),s=n(24),l=(n(260),n(269)),u=n(146),c=n(10),f=n(695),p=s.createElement,d=s.createFactory,h=s.cloneElement,g={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:o,createElement:p,cloneElement:h,isValidElement:s.isValidElement,PropTypes:l,createClass:a.createClass,createFactory:d,createMixin:function(e){return e},DOM:i,version:u,__spread:c};e.exports=g},function(e,t,n){"use strict";function r(e,t,n){m.push({parentID:e,parentNode:null,type:f.INSERT_MARKUP,markupIndex:v.push(t)-1,content:null,fromIndex:null,toIndex:n})}function o(e,t,n){m.push({parentID:e,parentNode:null,type:f.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:t,toIndex:n})}function a(e,t){m.push({parentID:e,parentNode:null,type:f.REMOVE_NODE,markupIndex:null,content:null,fromIndex:t,toIndex:null})}function i(e,t){m.push({parentID:e,parentNode:null,type:f.SET_MARKUP,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function s(e,t){m.push({parentID:e,parentNode:null,type:f.TEXT_CONTENT,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function l(){m.length&&(c.processChildrenUpdates(m,v),u())}function u(){m.length=0,v.length=0}var c=n(143),f=n(266),p=(n(42),n(52)),d=n(656),h=n(692),g=0,m=[],v=[],_={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return d.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r){var o;return o=h(t),d.updateChildren(e,o,n,r)},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],a=0;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i],l=this._rootNodeID+i,u=p.mountComponent(s,l,t,n);s._mountIndex=a++,o.push(u)}return o},updateTextContent:function(e){g++;var t=!0;try{var n=this._renderedChildren;d.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChild(n[r]);this.setTextContent(e),t=!1}finally{g--,g||(t?u():l())}},updateMarkup:function(e){g++;var t=!0;try{var n=this._renderedChildren;d.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setMarkup(e),t=!1}finally{g--,g||(t?u():l())}},updateChildren:function(e,t,n){g++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{g--,g||(r?u():l())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=this._reconcilerUpdateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var a,i=0,s=0;for(a in o)if(o.hasOwnProperty(a)){var l=r&&r[a],u=o[a];l===u?(this.moveChild(l,s,i),i=Math.max(l._mountIndex,i),l._mountIndex=s):(l&&(i=Math.max(l._mountIndex,i),this._unmountChild(l)),this._mountChildByNameAtIndex(u,a,s,t,n)),s++}for(a in r)!r.hasOwnProperty(a)||o&&o.hasOwnProperty(a)||this._unmountChild(r[a])}},unmountChildren:function(){var e=this._renderedChildren;d.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){a(this._rootNodeID,e._mountIndex)},setTextContent:function(e){s(this._rootNodeID,e)},setMarkup:function(e){i(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var a=this._rootNodeID+t,i=p.mountComponent(e,a,r,o);e._mountIndex=n,this.createChild(e,i)},_unmountChild:function(e){this.removeChild(e),e._mountIndex=null}}};e.exports=_},function(e,t,n){"use strict";var r=n(5),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){o.isValidOwner(n)?void 0:r(!1),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){o.isValidOwner(n)?void 0:r(!1),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};e.exports=o},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=!e&&s.useCreateElement}var o=n(139),a=n(48),i=n(103),s=n(255),l=n(264),u=n(107),c=n(10),f={initialize:l.getSelectionInformation,close:l.restoreSelection},p={initialize:function(){var e=i.isEnabled();return i.setEnabled(!1),e},close:function(e){i.setEnabled(e)}},d={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[f,p,d],g={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};c(r.prototype,u.Mixin,g),a.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):a.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):a.removeComponentAsRefFrom(t,e,n)}var a=n(671),i={};i.attachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&r(n,e,t._owner)}},i.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,r=null===t||t===!1;return n||r||t._owner!==e._owner||t.ref!==e.ref},i.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&o(n,e,t._owner)}},e.exports=i},function(e,t){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(e){}};e.exports=n},function(e,t,n){"use strict";function r(e){i.isValidElement(e)?void 0:h(!1);var t;try{f.injection.injectBatchingStrategy(u);var n=s.createReactRootID();return t=c.getPooled(!1),t.perform(function(){var r=d(e,null),o=r.mountComponent(n,t,p);return l.addChecksumToMarkup(o)},null)}finally{c.release(t),f.injection.injectBatchingStrategy(a)}}function o(e){i.isValidElement(e)?void 0:h(!1);var t;try{f.injection.injectBatchingStrategy(u);var n=s.createReactRootID();return t=c.getPooled(!0),t.perform(function(){var r=d(e,null);return r.mountComponent(n,t,p)},null)}finally{c.release(t),f.injection.injectBatchingStrategy(a)}}var a=n(258),i=n(24),s=n(64),l=n(265),u=n(674),c=n(676),f=n(30),p=n(75),d=n(152),h=n(5);e.exports={renderToString:r,renderToStaticMarkup:o}},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=a.getPooled(null),this.useCreateElement=!1}var o=n(48),a=n(139),i=n(107),s=n(10),l=n(35),u={initialize:function(){this.reactMountReady.reset()},close:l},c=[u],f={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null}};s(r.prototype,i.Mixin,f),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(63),o=r.injection.MUST_USE_ATTRIBUTE,a={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},i={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:o,xmlLang:o,xmlSpace:o,y1:o,y2:o,y:o},DOMAttributeNamespaces:{xlinkActuate:a.xlink,xlinkArcrole:a.xlink,xlinkHref:a.xlink,xlinkRole:a.xlink,xlinkShow:a.xlink,xlinkTitle:a.xlink,xlinkType:a.xlink,xmlBase:a.xml,xmlLang:a.xml,xmlSpace:a.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};e.exports=i},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&l.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(b||null==v||v!==c())return null;var n=r(v);if(!y||!d(y,n)){y=n;var o=u.getPooled(m.select,_,e,t);return o.type="select",o.target=v,i.accumulateTwoPhaseDispatches(o),o}return null}var a=n(41),i=n(79),s=n(20),l=n(264),u=n(53),c=n(232),f=n(275),p=n(47),d=n(234),h=a.topLevelTypes,g=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,m={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},v=null,_=null,y=null,b=!1,w=!1,x=p({onSelect:null}),C={eventTypes:m,extractEvents:function(e,t,n,r,a){if(!w)return null;switch(e){case h.topFocus:(f(t)||"true"===t.contentEditable)&&(v=t,_=n,y=null);break;case h.topBlur:v=null,_=null,y=null;break;case h.topMouseDown:b=!0;break;case h.topContextMenu:case h.topMouseUp:return b=!1,o(r,a);case h.topSelectionChange:if(g)break;case h.topKeyDown:case h.topKeyUp:return o(r,a)}return null},didPutListener:function(e,t,n){t===x&&(w=!0)}};e.exports=C},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){"use strict";var r=n(41),o=n(229),a=n(79),i=n(23),s=n(681),l=n(53),u=n(684),c=n(686),f=n(106),p=n(683),d=n(687),h=n(81),g=n(688),m=n(35),v=n(148),_=n(5),y=n(47),b=r.topLevelTypes,w={abort:{phasedRegistrationNames:{bubbled:y({onAbort:!0}),captured:y({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:y({onBlur:!0}),captured:y({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:y({onCanPlay:!0}),captured:y({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:y({onCanPlayThrough:!0}),captured:y({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:y({onClick:!0}),captured:y({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:y({onContextMenu:!0}),captured:y({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:y({onCopy:!0}),captured:y({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:y({onCut:!0}),captured:y({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:y({onDoubleClick:!0}),captured:y({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:y({onDrag:!0}),captured:y({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:y({onDragEnd:!0}),captured:y({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:y({onDragEnter:!0}),captured:y({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:y({onDragExit:!0}),captured:y({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:y({onDragLeave:!0}),captured:y({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:y({onDragOver:!0}),captured:y({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:y({onDragStart:!0}),captured:y({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:y({onDrop:!0}),captured:y({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:y({onDurationChange:!0}),captured:y({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:y({onEmptied:!0}),captured:y({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:y({onEncrypted:!0}),captured:y({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:y({onEnded:!0}),captured:y({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:y({onError:!0}),captured:y({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:y({onFocus:!0}),captured:y({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:y({onInput:!0}),captured:y({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:y({onKeyDown:!0}),captured:y({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:y({onKeyPress:!0}),captured:y({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{ -bubbled:y({onKeyUp:!0}),captured:y({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:y({onLoad:!0}),captured:y({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:y({onLoadedData:!0}),captured:y({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:y({onLoadedMetadata:!0}),captured:y({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:y({onLoadStart:!0}),captured:y({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:y({onMouseDown:!0}),captured:y({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:y({onMouseMove:!0}),captured:y({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:y({onMouseOut:!0}),captured:y({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:y({onMouseOver:!0}),captured:y({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:y({onMouseUp:!0}),captured:y({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:y({onPaste:!0}),captured:y({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:y({onPause:!0}),captured:y({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:y({onPlay:!0}),captured:y({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:y({onPlaying:!0}),captured:y({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:y({onProgress:!0}),captured:y({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:y({onRateChange:!0}),captured:y({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:y({onReset:!0}),captured:y({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:y({onScroll:!0}),captured:y({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:y({onSeeked:!0}),captured:y({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:y({onSeeking:!0}),captured:y({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:y({onStalled:!0}),captured:y({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:y({onSubmit:!0}),captured:y({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:y({onSuspend:!0}),captured:y({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:y({onTimeUpdate:!0}),captured:y({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:y({onTouchCancel:!0}),captured:y({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:y({onTouchEnd:!0}),captured:y({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:y({onTouchMove:!0}),captured:y({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:y({onTouchStart:!0}),captured:y({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:y({onVolumeChange:!0}),captured:y({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:y({onWaiting:!0}),captured:y({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:y({onWheel:!0}),captured:y({onWheelCapture:!0})}}},x={topAbort:w.abort,topBlur:w.blur,topCanPlay:w.canPlay,topCanPlayThrough:w.canPlayThrough,topClick:w.click,topContextMenu:w.contextMenu,topCopy:w.copy,topCut:w.cut,topDoubleClick:w.doubleClick,topDrag:w.drag,topDragEnd:w.dragEnd,topDragEnter:w.dragEnter,topDragExit:w.dragExit,topDragLeave:w.dragLeave,topDragOver:w.dragOver,topDragStart:w.dragStart,topDrop:w.drop,topDurationChange:w.durationChange,topEmptied:w.emptied,topEncrypted:w.encrypted,topEnded:w.ended,topError:w.error,topFocus:w.focus,topInput:w.input,topKeyDown:w.keyDown,topKeyPress:w.keyPress,topKeyUp:w.keyUp,topLoad:w.load,topLoadedData:w.loadedData,topLoadedMetadata:w.loadedMetadata,topLoadStart:w.loadStart,topMouseDown:w.mouseDown,topMouseMove:w.mouseMove,topMouseOut:w.mouseOut,topMouseOver:w.mouseOver,topMouseUp:w.mouseUp,topPaste:w.paste,topPause:w.pause,topPlay:w.play,topPlaying:w.playing,topProgress:w.progress,topRateChange:w.rateChange,topReset:w.reset,topScroll:w.scroll,topSeeked:w.seeked,topSeeking:w.seeking,topStalled:w.stalled,topSubmit:w.submit,topSuspend:w.suspend,topTimeUpdate:w.timeUpdate,topTouchCancel:w.touchCancel,topTouchEnd:w.touchEnd,topTouchMove:w.touchMove,topTouchStart:w.touchStart,topVolumeChange:w.volumeChange,topWaiting:w.waiting,topWheel:w.wheel};for(var C in x)x[C].dependencies=[C];var E=y({onClick:null}),T={},P={eventTypes:w,extractEvents:function(e,t,n,r,o){var i=x[e];if(!i)return null;var m;switch(e){case b.topAbort:case b.topCanPlay:case b.topCanPlayThrough:case b.topDurationChange:case b.topEmptied:case b.topEncrypted:case b.topEnded:case b.topError:case b.topInput:case b.topLoad:case b.topLoadedData:case b.topLoadedMetadata:case b.topLoadStart:case b.topPause:case b.topPlay:case b.topPlaying:case b.topProgress:case b.topRateChange:case b.topReset:case b.topSeeked:case b.topSeeking:case b.topStalled:case b.topSubmit:case b.topSuspend:case b.topTimeUpdate:case b.topVolumeChange:case b.topWaiting:m=l;break;case b.topKeyPress:if(0===v(r))return null;case b.topKeyDown:case b.topKeyUp:m=c;break;case b.topBlur:case b.topFocus:m=u;break;case b.topClick:if(2===r.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:m=f;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:m=p;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:m=d;break;case b.topScroll:m=h;break;case b.topWheel:m=g;break;case b.topCopy:case b.topCut:case b.topPaste:m=s}m?void 0:_(!1);var y=m.getPooled(i,n,r,o);return a.accumulateTwoPhaseDispatches(y),y},didPutListener:function(e,t,n){if(t===E){var r=i.getNode(e);T[e]||(T[e]=o.listen(r,"click",m))}},willDeleteListener:function(e,t){t===E&&(T[e].remove(),delete T[e])}};e.exports=P},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(53),a={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(53),a={data:null};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(106),a={dataTransfer:null};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(81),a={relatedTarget:null};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(53),a={data:null};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(81),a=n(148),i=n(693),s=n(149),l={key:i,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?a(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?a(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,l),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(81),a=n(149),i={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:a};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(106),a={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,a),e.exports=r},function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0,a=e.length,i=-4&a;i>o;){for(;o<Math.min(o+4096,i);o+=4)n+=(t+=e.charCodeAt(o))+(t+=e.charCodeAt(o+1))+(t+=e.charCodeAt(o+2))+(t+=e.charCodeAt(o+3));t%=r,n%=r}for(;a>o;o++)n+=t+=e.charCodeAt(o);return t%=r,n%=r,t|n<<16}var r=65521;e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||a.hasOwnProperty(e)&&a[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=n(248),a=o.isUnitlessNumber;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,o){return o}n(10),n(9);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e,o=void 0===r[n];o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return a(e,r,t),t}var a=n(156);n(9);e.exports=o},function(e,t,n){"use strict";function r(e){if(e.key){var t=a[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?i[e.keyCode]||"Unidentified":""}var o=n(148),a={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),a=0,i=0;o;){if(3===o.nodeType){if(i=a+o.textContent.length,t>=a&&i>=t)return{node:o,offset:t-a};a=i}o=n(r(o))}}e.exports=o},function(e,t,n){"use strict";function r(e){return o.isValidElement(e)?void 0:a(!1),e}var o=n(24),a=n(5);e.exports=r},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(109);e.exports=r},function(e,t,n){"use strict";var r=n(23);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){var r,o;!function(a,i){r=[n(699)],o=function(e){return i(e,a)}.apply(t,r),!(void 0!==o&&(e.exports=o))}(this,function(e,t,n){function r(t){return e.isArray(t)?"array":e.isDate(t)?"date":e.isRegExp(t)?"regex":typeof t}function o(e){var t=r(e);return l[t]?t:"*"}function a(t){return e.each(i.call(arguments,1),function(n){e.each(n,function(e,n){l[o(e)](t,n,e)})}),t}var i=Array.prototype.slice,s=function(){for(var e=i.call(arguments,0);e.length;)s.rivet(e.shift())},l={"*":function(e,t,n){e[t]=n},object:function(e,t,n){e[t]=a(e[t]||{},n)},array:function(t,n,r){t[n]=[],e.each(r,function(e,r){l[o(e)](t[n],r,e)},this)}};return s.rivet=function(e){e.hasOwnProperty("extend")||(e.extend=function(t,n,r){return s.extend(e,t,n,r)}),e.hasOwnProperty("compose")||(e.compose=function(){return s.compose.apply(this,[e].concat(i.call(arguments,0)))}),e.hasOwnProperty("inherits")||(e.inherits=function(t,n,r){return s.inherits(e,t,n,r)}),e.hasOwnProperty("mixin")||(e.mixin=function(){return s.mixin.apply(this,[e].concat(i.call(arguments,0)))}),e.hasOwnProperty("punch")||(e.punch=function(){return s.punch.apply(this,[e].concat(i.call(arguments,0)))})},s.inherits=function(t,n,r,o){o=o||{};var i,l=function(){},u=function(){n.apply(this,arguments)};return"object"==typeof t?(t.hasOwnProperty("constructor")&&(u=t.constructor),i=t):(u=t,i=t.prototype),s.rivet(u),o.deep?a(u,n,r):e.defaults(u,n,r),l.prototype=n.prototype,u.prototype=new l,o.deep?a(u.prototype,i,{constructor:u}):e.extend(u.prototype,i,{constructor:u}),u.__super=n,u.__super__=n.prototype,u},s.extend=function(e,t,n,r){return s.inherits(t,e,n,r)},s.compose=function(){var t=i.call(arguments,0),n=t.shift();s.rivet(n);var r=e.reduce(t,function(e,t){return t.hasOwnProperty("_preInit")&&e.preInit.push(t._preInit),t.hasOwnProperty("_postInit")&&e.postInit.push(t._postInit),t=t.mixin||t,e.items.push(t),e},{items:[],preInit:[],postInit:[]}),o=n.extend({constructor:function(){var t=i.call(arguments,0);e.each(r.preInit,function(e){e.apply(this,t)},this),n.prototype.constructor.apply(this,t),e.each(r.postInit,function(e){e.apply(this,t)},this)}});return s.rivet(o),e.defaults(o.prototype,e.extend.apply(null,[{}].concat(r.items))),o},s.mixin=function(){var t=i.call(arguments,0),n=t.shift();return s.rivet(n),e.defaults(n.prototype,e.extend.apply(null,[{}].concat(t))),n},s.punch=function(){var t=i.call(arguments,0),n=t.shift();return s.rivet(n),e.extend(n.prototype,e.extend.apply(null,[{}].concat(t))),n},s})},function(e,t,n){var r;(function(e,o){(function(){function a(e,t,n){for(var r=(n||0)-1,o=e?e.length:0;++r<o;)if(e[r]===t)return r;return-1}function i(e,t){var n=typeof t;if(e=e.cache,"boolean"==n||null==t)return e[t]?0:-1;"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:E+t;return e=(e=e[n])&&e[r],"object"==n?e&&a(e,t)>-1?0:-1:e?0:-1}function s(e){var t=this.cache,n=typeof e;if("boolean"==n||null==e)t[e]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?e:E+e,o=t[n]||(t[n]={});"object"==n?(o[r]||(o[r]=[])).push(e):o[r]=!0}}function l(e){return e.charCodeAt(0)}function u(e,t){for(var n=e.criteria,r=t.criteria,o=-1,a=n.length;++o<a;){var i=n[o],s=r[o];if(i!==s){if(i>s||"undefined"==typeof i)return 1;if(s>i||"undefined"==typeof s)return-1}}return e.index-t.index}function c(e){var t=-1,n=e.length,r=e[0],o=e[n/2|0],a=e[n-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&a&&"object"==typeof a)return!1;var i=d();i["false"]=i["null"]=i["true"]=i.undefined=!1;var l=d();for(l.array=e,l.cache=i,l.push=s;++t<n;)l.push(e[t]);return l}function f(e){return"\\"+oe[e]}function p(){return b.pop()||[]}function d(){return w.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function h(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}function g(e){e.length=0,b.length<P&&b.push(e)}function m(e){var t=e.cache;t&&m(t),e.array=e.cache=e.criteria=e.object=e.number=e.string=e.value=null,w.length<P&&w.push(e)}function v(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var r=-1,o=n-t||0,a=Array(0>o?0:o);++r<o;)a[r]=e[t+r];return a}function _(e){function t(e){return e&&"object"==typeof e&&!fr(e)&&qn.call(e,"__wrapped__")?e:new n(e)}function n(e,t){this.__chain__=!!t,this.__wrapped__=e}function r(e){function t(){if(r){var e=v(r);Hn.apply(e,arguments)}if(this instanceof t){var a=s(n.prototype),i=n.apply(a,e||arguments);return Le(i)?i:a}return n.apply(o,e||arguments)}var n=e[0],r=e[2],o=e[4];return cr(t,e),t}function o(e,t,n,r,a){if(n){var i=n(e);if("undefined"!=typeof i)return i}var s=Le(e);if(!s)return e;var l=Ln.call(e);if(!$[l]||!lr.nodeClass&&h(e))return e;var u=ir[l];switch(l){case H:case X:return new u(+e);case Q:case J:return new u(e);case Z:return i=u(e.source,I.exec(e)),i.lastIndex=e.lastIndex,i}var c=fr(e);if(t){var f=!r;r||(r=p()),a||(a=p());for(var d=r.length;d--;)if(r[d]==e)return a[d];i=c?u(e.length):{}}else i=c?v(e):xr({},e);return c&&(qn.call(e,"index")&&(i.index=e.index),qn.call(e,"input")&&(i.input=e.input)),t?(r.push(e),a.push(i),(c?wr:Tr)(e,function(e,s){i[s]=o(e,t,n,r,a)}),f&&(g(r),g(a)),i):i}function s(e,t){return Le(e)?Zn(e):{}}function b(e,t,n){if("function"!=typeof e)return on;if("undefined"==typeof t||!("prototype"in e))return e;var r=e.__bindData__;if("undefined"==typeof r&&(lr.funcNames&&(r=!e.name),r=r||!lr.funcDecomp,!r)){var o=Vn.call(e);lr.funcNames||(r=!O.test(o)),r||(r=B.test(o),cr(e,r))}if(r===!1||r!==!0&&1&r[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,a){return e.call(t,n,r,o,a)}}return Ut(e,t)}function w(e){function t(){var e=u?i:this;if(o){var h=v(o);Hn.apply(h,arguments)}if((a||f)&&(h||(h=v(arguments)),a&&Hn.apply(h,a),f&&h.length<l))return r|=16,w([n,p?r:-4&r,h,null,i,l]);if(h||(h=arguments),c&&(n=e[d]),this instanceof t){e=s(n.prototype);var g=n.apply(e,h);return Le(g)?g:e}return n.apply(e,h)}var n=e[0],r=e[1],o=e[2],a=e[3],i=e[4],l=e[5],u=1&r,c=2&r,f=4&r,p=8&r,d=n;return cr(t,e),t}function P(e,t){var n=-1,r=ge(),o=e?e.length:0,s=o>=T&&r===a,l=[];if(s){var u=c(t);u?(r=i,t=u):s=!1}for(;++n<o;){var f=e[n];r(t,f)<0&&l.push(f)}return s&&m(t),l}function oe(e,t,n,r){for(var o=(r||0)-1,a=e?e.length:0,i=[];++o<a;){var s=e[o];if(s&&"object"==typeof s&&"number"==typeof s.length&&(fr(s)||ye(s))){t||(s=oe(s,t,n));var l=-1,u=s.length,c=i.length;for(i.length+=u;++l<u;)i[c++]=s[l]}else n||i.push(s)}return i}function ie(e,t,n,r,o,a){if(n){var i=n(e,t);if("undefined"!=typeof i)return!!i}if(e===t)return 0!==e||1/e==1/t;var s=typeof e,l=typeof t;if(!(e!==e||e&&re[s]||t&&re[l]))return!1;if(null==e||null==t)return e===t;var u=Ln.call(e),c=Ln.call(t);if(u==z&&(u=K),c==z&&(c=K),u!=c)return!1;switch(u){case H:case X:return+e==+t;case Q:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case Z:case J:return e==Dn(t)}var f=u==q;if(!f){var d=qn.call(e,"__wrapped__"),m=qn.call(t,"__wrapped__");if(d||m)return ie(d?e.__wrapped__:e,m?t.__wrapped__:t,n,r,o,a);if(u!=K||!lr.nodeClass&&(h(e)||h(t)))return!1;var v=!lr.argsObject&&ye(e)?Mn:e.constructor,_=!lr.argsObject&&ye(t)?Mn:t.constructor;if(v!=_&&!(Fe(v)&&v instanceof v&&Fe(_)&&_ instanceof _)&&"constructor"in e&&"constructor"in t)return!1}var y=!o;o||(o=p()),a||(a=p());for(var b=o.length;b--;)if(o[b]==e)return a[b]==t;var w=0;if(i=!0,o.push(e),a.push(t),f){if(b=e.length,w=t.length,i=w==b,i||r)for(;w--;){var x=b,C=t[w];if(r)for(;x--&&!(i=ie(e[x],C,n,r,o,a)););else if(!(i=ie(e[w],C,n,r,o,a)))break}}else Er(t,function(t,s,l){return qn.call(l,s)?(w++,i=qn.call(e,s)&&ie(e[s],t,n,r,o,a)):void 0}),i&&!r&&Er(e,function(e,t,n){return qn.call(n,t)?i=--w>-1:void 0});return o.pop(),a.pop(),y&&(g(o),g(a)),i}function se(e,t,n,r,o){(fr(t)?rt:Tr)(t,function(t,a){var i,s,l=t,u=e[a];if(t&&((s=fr(t))||Pr(t))){for(var c=r.length;c--;)if(i=r[c]==t){u=o[c];break}if(!i){var f;n&&(l=n(u,t),(f="undefined"!=typeof l)&&(u=l)),f||(u=s?fr(u)?u:[]:Pr(u)?u:{}),r.push(t),o.push(u),f||se(u,t,n,r,o)}}else n&&(l=n(u,t),"undefined"==typeof l&&(l=t)),"undefined"!=typeof l&&(u=l);e[a]=u})}function le(e,t){return e+Un(ar()*(t-e+1))}function ce(e,t,n){var r=-1,o=ge(),s=e?e.length:0,l=[],u=!t&&s>=T&&o===a,f=n||u?p():l;if(u){var d=c(f);o=i,f=d}for(;++r<s;){var h=e[r],v=n?n(h,r,e):h;(t?!r||f[f.length-1]!==v:o(f,v)<0)&&((n||u)&&f.push(v),l.push(h))}return u?(g(f.array),m(f)):n&&g(f),l}function fe(e){return function(n,r,o){var a={};if(r=t.createCallback(r,o,3),fr(n))for(var i=-1,s=n.length;++i<s;){var l=n[i];e(a,l,r(l,i,n),n)}else wr(n,function(t,n,o){e(a,t,r(t,n,o),o)});return a}}function pe(e,t,n,o,a,i){var s=1&t,l=2&t,u=4&t,c=16&t,f=32&t;if(!l&&!Fe(e))throw new Rn;c&&!n.length&&(t&=-17,c=n=!1),f&&!o.length&&(t&=-33,f=o=!1);var p=e&&e.__bindData__;if(p&&p!==!0)return p=v(p),p[2]&&(p[2]=v(p[2])),p[3]&&(p[3]=v(p[3])),!s||1&p[1]||(p[4]=a),!s&&1&p[1]&&(t|=8),!u||4&p[1]||(p[5]=i),c&&Hn.apply(p[2]||(p[2]=[]),n),f&&Qn.apply(p[3]||(p[3]=[]),o),p[1]|=t,pe.apply(null,p);var d=1==t||17===t?r:w;return d([e,t,n,o,a,i])}function de(){ne.shadowedProps=U,ne.array=ne.bottom=ne.loop=ne.top="",ne.init="iterable",ne.useHas=!0;for(var e,t=0;e=arguments[t];t++)for(var n in e)ne[n]=e[n];var r=ne.args;ne.firstArg=/^[^,]+/.exec(r)[0];var o=Tn("baseCreateCallback, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, isArray, isString, keys, objectProto, objectTypes, nonEnumProps, stringClass, stringProto, toString","return function("+r+") {\n"+ur(ne)+"\n}");return o(b,G,In,qn,C,ye,fr,Ve,ne.keys,On,re,sr,J,Nn,Ln)}function he(e){return vr[e]}function ge(){var e=(e=t.indexOf)===Et?a:e;return e}function me(e){return"function"==typeof e&&Bn.test(e)}function ve(e){var t,n;return!e||Ln.call(e)!=K||(t=e.constructor,Fe(t)&&!(t instanceof t))||!lr.argsClass&&ye(e)||!lr.nodeClass&&h(e)?!1:lr.ownLast?(Er(e,function(e,t,r){return n=qn.call(r,t),!1}),n!==!1):(Er(e,function(e,t){n=t}),"undefined"==typeof n||qn.call(e,n))}function _e(e){return _r[e]}function ye(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Ln.call(e)==z||!1}function be(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n=t,t=!1),o(e,t,"function"==typeof n&&b(n,r,1))}function we(e,t,n){return o(e,!0,"function"==typeof t&&b(t,n,1))}function xe(e,t){var n=s(e);return t?xr(n,t):n}function Ce(e,n,r){var o;return n=t.createCallback(n,r,3),Tr(e,function(e,t,r){return n(e,t,r)?(o=t,!1):void 0}),o}function Ee(e,n,r){var o;return n=t.createCallback(n,r,3),Pe(e,function(e,t,r){return n(e,t,r)?(o=t,!1):void 0}),o}function Te(e,t,n){var r=[];Er(e,function(e,t){r.push(t,e)});var o=r.length;for(t=b(t,n,3);o--&&t(r[o--],r[o],e)!==!1;);return e}function Pe(e,t,n){var r=dr(e),o=r.length;for(t=b(t,n,3);o--;){var a=r[o];if(t(e[a],a,e)===!1)break}return e}function ke(e){var t=[];return Er(e,function(e,n){Fe(e)&&t.push(n)}),t.sort()}function Me(e,t){return e?qn.call(e,t):!1}function Se(e){for(var t=-1,n=dr(e),r=n.length,o={};++t<r;){var a=n[t];o[e[a]]=a}return o}function De(e){return e===!0||e===!1||e&&"object"==typeof e&&Ln.call(e)==H||!1}function Re(e){return e&&"object"==typeof e&&Ln.call(e)==X||!1}function Ae(e){return e&&1===e.nodeType||!1}function Ie(e){var t=!0;if(!e)return t;var n=Ln.call(e),r=e.length;return n==q||n==J||(lr.argsClass?n==z:ye(e))||n==K&&"number"==typeof r&&Fe(e.splice)?!r:(Tr(e,function(){return t=!1}),t)}function Oe(e,t,n,r){return ie(e,t,"function"==typeof n&&b(n,r,2))}function Ne(e){return $n(e)&&!er(parseFloat(e))}function Fe(e){return"function"==typeof e}function Le(e){return!(!e||!re[typeof e])}function Be(e){return We(e)&&e!=+e}function je(e){return null===e}function We(e){return"number"==typeof e||e&&"object"==typeof e&&Ln.call(e)==Q||!1}function Ue(e){return e&&re[typeof e]&&Ln.call(e)==Z||!1}function Ve(e){return"string"==typeof e||e&&"object"==typeof e&&Ln.call(e)==J||!1}function ze(e){return"undefined"==typeof e}function qe(e,n,r){var o={};return n=t.createCallback(n,r,3),Tr(e,function(e,t,r){o[t]=n(e,t,r)}),o}function He(e){var t=arguments,n=2;if(!Le(e))return e;if("number"!=typeof t[2]&&(n=t.length),n>3&&"function"==typeof t[n-2])var r=b(t[--n-1],t[n--],2);else n>2&&"function"==typeof t[n-1]&&(r=t[--n]);for(var o=v(arguments,1,n),a=-1,i=p(),s=p();++a<n;)se(e,o[a],r,i,s);return g(i),g(s),e}function Xe(e,n,r){var o={};if("function"!=typeof n){var a=[];Er(e,function(e,t){a.push(t)}),a=P(a,oe(arguments,!0,!1,1));for(var i=-1,s=a.length;++i<s;){var l=a[i];o[l]=e[l]}}else n=t.createCallback(n,r,3),Er(e,function(e,t,r){n(e,t,r)||(o[t]=e)});return o}function Ge(e){for(var t=-1,n=dr(e),r=n.length,o=wn(r);++t<r;){var a=n[t];o[t]=[a,e[a]]}return o}function Ye(e,n,r){var o={};if("function"!=typeof n)for(var a=-1,i=oe(arguments,!0,!1,1),s=Le(e)?i.length:0;++a<s;){var l=i[a];l in e&&(o[l]=e[l])}else n=t.createCallback(n,r,3),Er(e,function(e,t,r){n(e,t,r)&&(o[t]=e)});return o}function Qe(e,n,r,o){var a=fr(e);if(null==r)if(a)r=[];else{var i=e&&e.constructor,l=i&&i.prototype;r=s(l)}return n&&(n=t.createCallback(n,o,4),(a?wr:Tr)(e,function(e,t,o){return n(r,e,t,o)})),r}function Ke(e){for(var t=-1,n=dr(e),r=n.length,o=wn(r);++t<r;)o[t]=e[n[t]];return o}function Ze(e){var t=arguments,n=-1,r=oe(t,!0,!1,1),o=t[2]&&t[2][t[1]]===e?1:r.length,a=wn(o);for(lr.unindexedChars&&Ve(e)&&(e=e.split(""));++n<o;)a[n]=e[r[n]];return a}function Je(e,t,n){var r=-1,o=ge(),a=e?e.length:0,i=!1;return n=(0>n?nr(0,a+n):n)||0,fr(e)?i=o(e,t,n)>-1:"number"==typeof a?i=(Ve(e)?e.indexOf(t,n):o(e,t,n))>-1:wr(e,function(e){return++r>=n?!(i=e===t):void 0}),i}function $e(e,n,r){var o=!0;if(n=t.createCallback(n,r,3),fr(e))for(var a=-1,i=e.length;++a<i&&(o=!!n(e[a],a,e)););else wr(e,function(e,t,r){return o=!!n(e,t,r)});return o}function et(e,n,r){var o=[];if(n=t.createCallback(n,r,3),fr(e))for(var a=-1,i=e.length;++a<i;){var s=e[a];n(s,a,e)&&o.push(s)}else wr(e,function(e,t,r){n(e,t,r)&&o.push(e)});return o}function tt(e,n,r){if(n=t.createCallback(n,r,3),!fr(e)){var o;return wr(e,function(e,t,r){return n(e,t,r)?(o=e,!1):void 0}),o}for(var a=-1,i=e.length;++a<i;){var s=e[a];if(n(s,a,e))return s}}function nt(e,n,r){var o;return n=t.createCallback(n,r,3),ot(e,function(e,t,r){return n(e,t,r)?(o=e,!1):void 0}),o}function rt(e,t,n){if(t&&"undefined"==typeof n&&fr(e))for(var r=-1,o=e.length;++r<o&&t(e[r],r,e)!==!1;);else wr(e,t,n);return e}function ot(e,t,n){var r=e,o=e?e.length:0;if(t=t&&"undefined"==typeof n?t:b(t,n,3),fr(e))for(;o--&&t(e[o],o,e)!==!1;);else{if("number"!=typeof o){var a=dr(e);o=a.length}else lr.unindexedChars&&Ve(e)&&(r=e.split(""));wr(e,function(e,n,i){return n=a?a[--o]:--o,t(r[n],n,i)})}return e}function at(e,t){var n=v(arguments,2),r=-1,o="function"==typeof t,a=e?e.length:0,i=wn("number"==typeof a?a:0);return rt(e,function(e){i[++r]=(o?t:e[t]).apply(e,n)}),i}function it(e,n,r){var o=-1,a=e?e.length:0,i=wn("number"==typeof a?a:0);if(n=t.createCallback(n,r,3),fr(e))for(;++o<a;)i[o]=n(e[o],o,e);else wr(e,function(e,t,r){i[++o]=n(e,t,r)});return i}function st(e,n,r){var o=-(1/0),a=o;if("function"!=typeof n&&r&&r[n]===e&&(n=null),null==n&&fr(e))for(var i=-1,s=e.length;++i<s;){var u=e[i];u>a&&(a=u)}else n=null==n&&Ve(e)?l:t.createCallback(n,r,3),wr(e,function(e,t,r){var i=n(e,t,r);i>o&&(o=i,a=e)});return a}function lt(e,n,r){var o=1/0,a=o;if("function"!=typeof n&&r&&r[n]===e&&(n=null),null==n&&fr(e))for(var i=-1,s=e.length;++i<s;){var u=e[i];a>u&&(a=u)}else n=null==n&&Ve(e)?l:t.createCallback(n,r,3),wr(e,function(e,t,r){var i=n(e,t,r);o>i&&(o=i,a=e)});return a}function ut(e,n,r,o){var a=arguments.length<3;if(n=t.createCallback(n,o,4),fr(e)){var i=-1,s=e.length;for(a&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e)}else wr(e,function(e,t,o){r=a?(a=!1,e):n(r,e,t,o)});return r}function ct(e,n,r,o){var a=arguments.length<3;return n=t.createCallback(n,o,4),ot(e,function(e,t,o){r=a?(a=!1,e):n(r,e,t,o)}),r}function ft(e,n,r){return n=t.createCallback(n,r,3),et(e,function(e,t,r){return!n(e,t,r)})}function pt(e,t,n){if(e&&"number"!=typeof e.length?e=Ke(e):lr.unindexedChars&&Ve(e)&&(e=e.split("")),null==t||n)return e?e[le(0,e.length-1)]:y;var r=dt(e);return r.length=rr(nr(0,t),r.length),r}function dt(e){var t=-1,n=e?e.length:0,r=wn("number"==typeof n?n:0);return rt(e,function(e){var n=le(0,++t);r[t]=r[n],r[n]=e}),r}function ht(e){var t=e?e.length:0;return"number"==typeof t?t:dr(e).length}function gt(e,n,r){var o;if(n=t.createCallback(n,r,3),fr(e))for(var a=-1,i=e.length;++a<i&&!(o=n(e[a],a,e)););else wr(e,function(e,t,r){return!(o=n(e,t,r))});return!!o}function mt(e,n,r){var o=-1,a=fr(n),i=e?e.length:0,s=wn("number"==typeof i?i:0);for(a||(n=t.createCallback(n,r,3)),rt(e,function(e,t,r){var i=s[++o]=d();a?i.criteria=it(n,function(t){return e[t]}):(i.criteria=p())[0]=n(e,t,r),i.index=o,i.value=e}),i=s.length,s.sort(u);i--;){var l=s[i];s[i]=l.value,a||g(l.criteria),m(l)}return s}function vt(e){return e&&"number"==typeof e.length?lr.unindexedChars&&Ve(e)?e.split(""):v(e):Ke(e)}function _t(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var o=e[t];o&&r.push(o)}return r}function yt(e){return P(e,oe(arguments,!0,!0,1))}function bt(e,n,r){var o=-1,a=e?e.length:0;for(n=t.createCallback(n,r,3);++o<a;)if(n(e[o],o,e))return o;return-1}function wt(e,n,r){var o=e?e.length:0;for(n=t.createCallback(n,r,3);o--;)if(n(e[o],o,e))return o;return-1}function xt(e,n,r){var o=0,a=e?e.length:0;if("number"!=typeof n&&null!=n){var i=-1;for(n=t.createCallback(n,r,3);++i<a&&n(e[i],i,e);)o++}else if(o=n,null==o||r)return e?e[0]:y;return v(e,0,rr(nr(0,o),a))}function Ct(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n="function"!=typeof t&&r&&r[t]===e?null:t,t=!1),null!=n&&(e=it(e,n,r)),oe(e,t)}function Et(e,t,n){if("number"==typeof n){var r=e?e.length:0;n=0>n?nr(0,r+n):n||0}else if(n){var o=It(e,t);return e[o]===t?o:-1}return a(e,t,n)}function Tt(e,n,r){var o=0,a=e?e.length:0;if("number"!=typeof n&&null!=n){var i=a;for(n=t.createCallback(n,r,3);i--&&n(e[i],i,e);)o++}else o=null==n||r?1:n||o;return v(e,0,rr(nr(0,a-o),a))}function Pt(){for(var e=[],t=-1,n=arguments.length,r=p(),o=ge(),s=o===a,l=p();++t<n;){var u=arguments[t];(fr(u)||ye(u))&&(e.push(u),r.push(s&&u.length>=T&&c(t?e[t]:l)))}var f=e[0],d=-1,h=f?f.length:0,v=[];e:for(;++d<h;){var _=r[0];if(u=f[d],(_?i(_,u):o(l,u))<0){for(t=n,(_||l).push(u);--t;)if(_=r[t],(_?i(_,u):o(e[t],u))<0)continue e;v.push(u)}}for(;n--;)_=r[n],_&&m(_);return g(r),g(l),v}function kt(e,n,r){var o=0,a=e?e.length:0;if("number"!=typeof n&&null!=n){var i=a;for(n=t.createCallback(n,r,3);i--&&n(e[i],i,e);)o++}else if(o=n,null==o||r)return e?e[a-1]:y;return v(e,nr(0,a-o))}function Mt(e,t,n){var r=e?e.length:0;for("number"==typeof n&&(r=(0>n?nr(0,r+n):rr(n,r-1))+1);r--;)if(e[r]===t)return r;return-1}function St(e){for(var t=arguments,n=0,r=t.length,o=e?e.length:0;++n<r;)for(var a=-1,i=t[n];++a<o;)e[a]===i&&(Yn.call(e,a--,1),o--);return e}function Dt(e,t,n){e=+e||0,n="number"==typeof n?n:+n||1,null==t&&(t=e,e=0);for(var r=-1,o=nr(0,jn((t-e)/(n||1))),a=wn(o);++r<o;)a[r]=e,e+=n;return a}function Rt(e,n,r){var o=-1,a=e?e.length:0,i=[];for(n=t.createCallback(n,r,3);++o<a;){var s=e[o];n(s,o,e)&&(i.push(s),Yn.call(e,o--,1),a--)}return i}function At(e,n,r){if("number"!=typeof n&&null!=n){var o=0,a=-1,i=e?e.length:0;for(n=t.createCallback(n,r,3);++a<i&&n(e[a],a,e);)o++}else o=null==n||r?1:nr(0,n);return v(e,o)}function It(e,n,r,o){var a=0,i=e?e.length:a;for(r=r?t.createCallback(r,o,1):on,n=r(n);i>a;){var s=a+i>>>1;r(e[s])<n?a=s+1:i=s}return a}function Ot(){return ce(oe(arguments,!0,!0))}function Nt(e,n,r,o){return"boolean"!=typeof n&&null!=n&&(o=r,r="function"!=typeof n&&o&&o[n]===e?null:n,n=!1),null!=r&&(r=t.createCallback(r,o,3)),ce(e,n,r)}function Ft(e){return P(e,v(arguments,1))}function Lt(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(fr(n)||ye(n))var r=r?ce(P(r,n).concat(P(n,r))):n}return r||[]}function Bt(){for(var e=arguments.length>1?arguments:arguments[0],t=-1,n=e?st(Dr(e,"length")):0,r=wn(0>n?0:n);++t<n;)r[t]=Dr(e,t);return r}function jt(e,t){var n=-1,r=e?e.length:0,o={};for(t||!r||fr(e[0])||(t=[]);++n<r;){var a=e[n];t?o[a]=t[n]:a&&(o[a[0]]=a[1])}return o}function Wt(e,t){if(!Fe(t))throw new Rn;return function(){return--e<1?t.apply(this,arguments):void 0}}function Ut(e,t){return arguments.length>2?pe(e,17,v(arguments,2),null,t):pe(e,1,null,null,t)}function Vt(e){for(var t=arguments.length>1?oe(arguments,!0,!1,1):ke(e),n=-1,r=t.length;++n<r;){var o=t[n];e[o]=pe(e[o],1,null,null,e)}return e}function zt(e,t){return arguments.length>2?pe(t,19,v(arguments,2),null,e):pe(t,3,null,null,e)}function qt(){for(var e=arguments,t=e.length;t--;)if(!Fe(e[t]))throw new Rn;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}}function Ht(e,t){return t="number"==typeof t?t:+t||e.length,pe(e,4,null,null,null,t)}function Xt(e,t,n){var r,o,a,i,s,l,u,c=0,f=!1,p=!0;if(!Fe(e))throw new Rn;if(t=nr(0,t)||0,n===!0){var d=!0;p=!1}else Le(n)&&(d=n.leading,f="maxWait"in n&&(nr(t,n.maxWait)||0),p="trailing"in n?n.trailing:p);var h=function(){var n=t-(Ar()-i);if(0>=n){o&&Wn(o);var f=u;o=l=u=y,f&&(c=Ar(),a=e.apply(s,r),l||o||(r=s=null))}else l=Gn(h,n)},g=function(){l&&Wn(l),o=l=u=y,(p||f!==t)&&(c=Ar(),a=e.apply(s,r),l||o||(r=s=null))};return function(){if(r=arguments,i=Ar(),s=this,u=p&&(l||!d),f===!1)var n=d&&!l;else{o||d||(c=i);var m=f-(i-c),v=0>=m;v?(o&&(o=Wn(o)),c=i,a=e.apply(s,r)):o||(o=Gn(g,m))}return v&&l?l=Wn(l):l||t===f||(l=Gn(h,t)),n&&(v=!0,a=e.apply(s,r)),!v||l||o||(r=s=null),a}}function Gt(e){if(!Fe(e))throw new Rn;var t=v(arguments,1);return Gn(function(){e.apply(y,t)},1)}function Yt(e,t){if(!Fe(e))throw new Rn;var n=v(arguments,2);return Gn(function(){e.apply(y,n)},t)}function Qt(e,t){if(!Fe(e))throw new Rn;var n=function(){var r=n.cache,o=t?t.apply(this,arguments):E+arguments[0];return qn.call(r,o)?r[o]:r[o]=e.apply(this,arguments)};return n.cache={},n}function Kt(e){var t,n;if(!Fe(e))throw new Rn;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}}function Zt(e){return pe(e,16,v(arguments,1)); -}function Jt(e){return pe(e,32,null,v(arguments,1))}function $t(e,t,n){var r=!0,o=!0;if(!Fe(e))throw new Rn;return n===!1?r=!1:Le(n)&&(r="leading"in n?n.leading:r,o="trailing"in n?n.trailing:o),ee.leading=r,ee.maxWait=t,ee.trailing=o,Xt(e,t,ee)}function en(e,t){return pe(t,16,[e])}function tn(e){return function(){return e}}function nn(e,t,n){var r=typeof e;if(null==e||"function"==r)return b(e,t,n);if("object"!=r)return un(e);var o=dr(e),a=o[0],i=e[a];return 1!=o.length||i!==i||Le(i)?function(t){for(var n=o.length,r=!1;n--&&(r=ie(t[o[n]],e[o[n]],null,!0)););return r}:function(e){var t=e[a];return i===t&&(0!==i||1/i==1/t)}}function rn(e){return null==e?"":Dn(e).replace(br,he)}function on(e){return e}function an(e,r,o){var a=!0,i=r&&ke(r);r&&(o||i.length)||(null==o&&(o=r),s=n,r=e,e=t,i=ke(r)),o===!1?a=!1:Le(o)&&"chain"in o&&(a=o.chain);var s=e,l=Fe(s);rt(i,function(t){var n=e[t]=r[t];l&&(s.prototype[t]=function(){var t=this.__chain__,r=this.__wrapped__,o=[r];Hn.apply(o,arguments);var i=n.apply(e,o);if(a||t){if(r===i&&Le(i))return this;i=new s(i),i.__chain__=t}return i})})}function sn(){return e._=Fn,this}function ln(){}function un(e){return function(t){return t[e]}}function cn(e,t,n){var r=null==e,o=null==t;if(null==n&&("boolean"==typeof e&&o?(n=e,e=1):o||"boolean"!=typeof t||(n=t,o=!0)),r&&o&&(t=1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var a=ar();return rr(e+a*(t-e+parseFloat("1e-"+((a+"").length-1))),t)}return le(e,t)}function fn(e,t){if(e){var n=e[t];return Fe(n)?e[t]():n}}function pn(e,n,r){var o=t.templateSettings;e=Dn(e||""),r=Cr({},r,o);var a,i=Cr({},r.imports,o.imports),s=dr(i),l=Ke(i),u=0,c=r.interpolate||L,p="__p += '",d=Sn((r.escape||L).source+"|"+c.source+"|"+(c===N?A:L).source+"|"+(r.evaluate||L).source+"|$","g");e.replace(d,function(t,n,r,o,i,s){return r||(r=o),p+=e.slice(u,s).replace(j,f),n&&(p+="' +\n__e("+n+") +\n'"),i&&(a=!0,p+="';\n"+i+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t}),p+="';\n";var h=r.variable,g=h;g||(h="obj",p="with ("+h+") {\n"+p+"\n}\n"),p=(a?p.replace(S,""):p).replace(D,"$1").replace(R,"$1;"),p="function("+h+") {\n"+(g?"":h+" || ("+h+" = {});\n")+"var __t, __p = '', __e = _.escape"+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+V++ +"]")+"\n*/";try{var v=Tn(s,"return "+p+m).apply(y,l)}catch(_){throw _.source=p,_}return n?v(n):(v.source=p,v)}function dn(e,t,n){e=(e=+e)>-1?e:0;var r=-1,o=wn(e);for(t=b(t,n,1);++r<e;)o[r]=t(r);return o}function hn(e){return null==e?"":Dn(e).replace(yr,_e)}function gn(e){var t=++x;return Dn(null==e?"":e)+t}function mn(e){return e=new n(e),e.__chain__=!0,e}function vn(e,t){return t(e),e}function _n(){return this.__chain__=!0,this}function yn(){return Dn(this.__wrapped__)}function bn(){return this.__wrapped__}e=e?ue.defaults(ae.Object(),e,ue.pick(ae,W)):ae;var wn=e.Array,xn=e.Boolean,Cn=e.Date,En=e.Error,Tn=e.Function,Pn=e.Math,kn=e.Number,Mn=e.Object,Sn=e.RegExp,Dn=e.String,Rn=e.TypeError,An=[],In=En.prototype,On=Mn.prototype,Nn=Dn.prototype,Fn=e._,Ln=On.toString,Bn=Sn("^"+Dn(Ln).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),jn=Pn.ceil,Wn=e.clearTimeout,Un=Pn.floor,Vn=Tn.prototype.toString,zn=me(zn=Mn.getPrototypeOf)&&zn,qn=On.hasOwnProperty,Hn=An.push,Xn=On.propertyIsEnumerable,Gn=e.setTimeout,Yn=An.splice,Qn=An.unshift,Kn=function(){try{var e={},t=me(t=Mn.defineProperty)&&t,n=t(e,e,e)&&t}catch(r){}return n}(),Zn=me(Zn=Mn.create)&&Zn,Jn=me(Jn=wn.isArray)&&Jn,$n=e.isFinite,er=e.isNaN,tr=me(tr=Mn.keys)&&tr,nr=Pn.max,rr=Pn.min,or=e.parseInt,ar=Pn.random,ir={};ir[q]=wn,ir[H]=xn,ir[X]=Cn,ir[Y]=Tn,ir[K]=Mn,ir[Q]=kn,ir[Z]=Sn,ir[J]=Dn;var sr={};sr[q]=sr[X]=sr[Q]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},sr[H]=sr[J]={constructor:!0,toString:!0,valueOf:!0},sr[G]=sr[Y]=sr[Z]={constructor:!0,toString:!0},sr[K]={constructor:!0},function(){for(var e=U.length;e--;){var t=U[e];for(var n in sr)qn.call(sr,n)&&!qn.call(sr[n],t)&&(sr[n][t]=!1)}}(),n.prototype=t.prototype;var lr=t.support={};!function(){var t=function(){this.x=1},n={0:1,length:1},r=[];t.prototype={valueOf:1,y:1};for(var o in new t)r.push(o);for(o in arguments);lr.argsClass=Ln.call(arguments)==z,lr.argsObject=arguments.constructor==Mn&&!(arguments instanceof wn),lr.enumErrorProps=Xn.call(In,"message")||Xn.call(In,"name"),lr.enumPrototypes=Xn.call(t,"prototype"),lr.funcDecomp=!me(e.WinRTError)&&B.test(_),lr.funcNames="string"==typeof Tn.name,lr.nonEnumArgs=0!=o,lr.nonEnumShadows=!/valueOf/.test(r),lr.ownLast="x"!=r[0],lr.spliceObjects=(An.splice.call(n,0,1),!n[0]),lr.unindexedChars="x"[0]+Mn("x")[0]!="xx";try{lr.nodeClass=!(Ln.call(document)==K&&!({toString:0}+""))}catch(a){lr.nodeClass=!0}}(1),t.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:N,variable:"",imports:{_:t}};var ur=function(e){var t="var index, iterable = "+e.firstArg+", result = "+e.init+";\nif (!iterable) return result;\n"+e.top+";";e.array?(t+="\nvar length = iterable.length; index = -1;\nif ("+e.array+") { ",lr.unindexedChars&&(t+="\n if (isString(iterable)) {\n iterable = iterable.split('')\n } "),t+="\n while (++index < length) {\n "+e.loop+";\n }\n}\nelse { "):lr.nonEnumArgs&&(t+="\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += '';\n "+e.loop+";\n }\n } else { "),lr.enumPrototypes&&(t+="\n var skipProto = typeof iterable == 'function';\n "),lr.enumErrorProps&&(t+="\n var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n ");var n=[];if(lr.enumPrototypes&&n.push('!(skipProto && index == "prototype")'),lr.enumErrorProps&&n.push('!(skipErrorProps && (index == "message" || index == "name"))'),e.useHas&&e.keys)t+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n",n.length&&(t+=" if ("+n.join(" && ")+") {\n "),t+=e.loop+"; ",n.length&&(t+="\n }"),t+="\n } ";else if(t+="\n for (index in iterable) {\n",e.useHas&&n.push("hasOwnProperty.call(iterable, index)"),n.length&&(t+=" if ("+n.join(" && ")+") {\n "),t+=e.loop+"; ",n.length&&(t+="\n }"),t+="\n } ",lr.nonEnumShadows){for(t+="\n\n if (iterable !== objectProto) {\n var ctor = iterable.constructor,\n isProto = iterable === (ctor && ctor.prototype),\n className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n nonEnum = nonEnumProps[className];\n ",k=0;k<7;k++)t+="\n index = '"+e.shadowedProps[k]+"';\n if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))",e.useHas||(t+=" || (!nonEnum[index] && iterable[index] !== objectProto[index])"),t+=") {\n "+e.loop+";\n } ";t+="\n } "}return(e.array||lr.nonEnumArgs)&&(t+="\n}"),t+=e.bottom+";\nreturn result"};Zn||(s=function(){function t(){}return function(n){if(Le(n)){t.prototype=n;var r=new t;t.prototype=null}return r||e.Object()}}());var cr=Kn?function(e,t){te.value=t,Kn(e,"__bindData__",te),te.value=null}:ln;lr.argsClass||(ye=function(e){return e&&"object"==typeof e&&"number"==typeof e.length&&qn.call(e,"callee")&&!Xn.call(e,"callee")||!1});var fr=Jn||function(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Ln.call(e)==q||!1},pr=de({args:"object",init:"[]",top:"if (!(objectTypes[typeof object])) return result",loop:"result.push(index)"}),dr=tr?function(e){return Le(e)?lr.enumPrototypes&&"function"==typeof e||lr.nonEnumArgs&&e.length&&ye(e)?pr(e):tr(e):[]}:pr,hr={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",array:"typeof length == 'number'",keys:dr,loop:"if (callback(iterable[index], index, collection) === false) return result"},gr={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",keys:dr,loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},mr={top:"if (!objectTypes[typeof iterable]) return result;\n"+hr.top,array:!1},vr={"&":"&","<":"<",">":">",'"':""","'":"'"},_r=Se(vr),yr=Sn("("+dr(_r).join("|")+")","g"),br=Sn("["+dr(vr).join("")+"]","g"),wr=de(hr),xr=de(gr,{top:gr.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"}),Cr=de(gr),Er=de(hr,mr,{useHas:!1}),Tr=de(hr,mr);Fe(/x/)&&(Fe=function(e){return"function"==typeof e&&Ln.call(e)==Y});var Pr=zn?function(e){if(!e||Ln.call(e)!=K||!lr.argsClass&&ye(e))return!1;var t=e.valueOf,n=me(t)&&(n=zn(t))&&zn(n);return n?e==n||zn(e)==n:ve(e)}:ve,kr=fe(function(e,t,n){qn.call(e,n)?e[n]++:e[n]=1}),Mr=fe(function(e,t,n){(qn.call(e,n)?e[n]:e[n]=[]).push(t)}),Sr=fe(function(e,t,n){e[n]=t}),Dr=it,Rr=et,Ar=me(Ar=Cn.now)&&Ar||function(){return(new Cn).getTime()},Ir=8==or(M+"08")?or:function(e,t){return or(Ve(e)?e.replace(F,""):e,t||0)};return t.after=Wt,t.assign=xr,t.at=Ze,t.bind=Ut,t.bindAll=Vt,t.bindKey=zt,t.chain=mn,t.compact=_t,t.compose=qt,t.constant=tn,t.countBy=kr,t.create=xe,t.createCallback=nn,t.curry=Ht,t.debounce=Xt,t.defaults=Cr,t.defer=Gt,t.delay=Yt,t.difference=yt,t.filter=et,t.flatten=Ct,t.forEach=rt,t.forEachRight=ot,t.forIn=Er,t.forInRight=Te,t.forOwn=Tr,t.forOwnRight=Pe,t.functions=ke,t.groupBy=Mr,t.indexBy=Sr,t.initial=Tt,t.intersection=Pt,t.invert=Se,t.invoke=at,t.keys=dr,t.map=it,t.mapValues=qe,t.max=st,t.memoize=Qt,t.merge=He,t.min=lt,t.omit=Xe,t.once=Kt,t.pairs=Ge,t.partial=Zt,t.partialRight=Jt,t.pick=Ye,t.pluck=Dr,t.property=un,t.pull=St,t.range=Dt,t.reject=ft,t.remove=Rt,t.rest=At,t.shuffle=dt,t.sortBy=mt,t.tap=vn,t.throttle=$t,t.times=dn,t.toArray=vt,t.transform=Qe,t.union=Ot,t.uniq=Nt,t.values=Ke,t.where=Rr,t.without=Ft,t.wrap=en,t.xor=Lt,t.zip=Bt,t.zipObject=jt,t.collect=it,t.drop=At,t.each=rt,t.eachRight=ot,t.extend=xr,t.methods=ke,t.object=jt,t.select=et,t.tail=At,t.unique=Nt,t.unzip=Bt,an(t),t.clone=be,t.cloneDeep=we,t.contains=Je,t.escape=rn,t.every=$e,t.find=tt,t.findIndex=bt,t.findKey=Ce,t.findLast=nt,t.findLastIndex=wt,t.findLastKey=Ee,t.has=Me,t.identity=on,t.indexOf=Et,t.isArguments=ye,t.isArray=fr,t.isBoolean=De,t.isDate=Re,t.isElement=Ae,t.isEmpty=Ie,t.isEqual=Oe,t.isFinite=Ne,t.isFunction=Fe,t.isNaN=Be,t.isNull=je,t.isNumber=We,t.isObject=Le,t.isPlainObject=Pr,t.isRegExp=Ue,t.isString=Ve,t.isUndefined=ze,t.lastIndexOf=Mt,t.mixin=an,t.noConflict=sn,t.noop=ln,t.now=Ar,t.parseInt=Ir,t.random=cn,t.reduce=ut,t.reduceRight=ct,t.result=fn,t.runInContext=_,t.size=ht,t.some=gt,t.sortedIndex=It,t.template=pn,t.unescape=hn,t.uniqueId=gn,t.all=$e,t.any=gt,t.detect=tt,t.findWhere=tt,t.foldl=ut,t.foldr=ct,t.include=Je,t.inject=ut,an(function(){var e={};return Tr(t,function(n,r){t.prototype[r]||(e[r]=n)}),e}(),!1),t.first=xt,t.last=kt,t.sample=pt,t.take=xt,t.head=xt,Tr(t,function(e,r){var o="sample"!==r;t.prototype[r]||(t.prototype[r]=function(t,r){var a=this.__chain__,i=e(this.__wrapped__,t,r);return a||null!=t&&(!r||o&&"function"==typeof t)?new n(i,a):i})}),t.VERSION="2.4.2",t.prototype.chain=_n,t.prototype.toString=yn,t.prototype.value=bn,t.prototype.valueOf=bn,wr(["join","pop","shift"],function(e){var r=An[e];t.prototype[e]=function(){var e=this.__chain__,t=r.apply(this.__wrapped__,arguments);return e?new n(t,e):t}}),wr(["push","reverse","sort","unshift"],function(e){var n=An[e];t.prototype[e]=function(){return n.apply(this.__wrapped__,arguments),this}}),wr(["concat","slice","splice"],function(e){var r=An[e];t.prototype[e]=function(){return new n(r.apply(this.__wrapped__,arguments),this.__chain__)}}),lr.spliceObjects||wr(["pop","shift","splice"],function(e){var r=An[e],o="splice"==e;t.prototype[e]=function(){var e=this.__chain__,t=this.__wrapped__,a=r.apply(t,arguments);return 0===t.length&&delete t[0],e||o?new n(a,e):a}}),t}var y,b=[],w=[],x=0,C={},E=+new Date+"",T=75,P=40,M=" \x0B\f \ufeff\n\r\u2028\u2029 ",S=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,R=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,I=/\w*$/,O=/^\s*function[ \n\r\t]+\w/,N=/<%=([\s\S]+?)%>/g,F=RegExp("^["+M+"]*0+(?=.$)"),L=/($^)/,B=/\bthis\b/,j=/['\n\r\t\u2028\u2029\\]/g,W=["Array","Boolean","Date","Error","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],U=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],V=0,z="[object Arguments]",q="[object Array]",H="[object Boolean]",X="[object Date]",G="[object Error]",Y="[object Function]",Q="[object Number]",K="[object Object]",Z="[object RegExp]",J="[object String]",$={};$[Y]=!1,$[z]=$[q]=$[H]=$[X]=$[Q]=$[K]=$[Z]=$[J]=!0;var ee={leading:!1,maxWait:0,trailing:!1},te={configurable:!1,enumerable:!1,value:null,writable:!1},ne={args:"",array:null,bottom:"",firstArg:"",init:"",keys:null,loop:"",shadowedProps:null,support:null,top:"",useHas:!1},re={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},oe={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},ae=re[typeof window]&&window||this,ie=re[typeof t]&&t&&!t.nodeType&&t,se=re[typeof e]&&e&&!e.nodeType&&e,le=(se&&se.exports===ie&&ie,re[typeof o]&&o);!le||le.global!==le&&le.window!==le||(ae=le);var ue=_();ae._=ue,r=function(){return ue}.call(t,n,t,e),!(r!==y&&(e.exports=r))}).call(this)}).call(t,n(281)(e),function(){return this}())},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D backgroundSampler;\n\nuniform vec4 backgroundColor;\n\nvarying vec2 v_texCoord;\n\nvoid main() {\n vec4 color = texture2D(backgroundSampler, v_texCoord);\n gl_FragColor = vec4(backgroundColor.rgb, color.a);\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D compositeSampler;\nuniform sampler2D nxSampler;\nuniform sampler2D nySampler;\nuniform sampler2D nzSampler;\nuniform sampler2D scalarSampler;\nuniform sampler2D lutSampler;\n\nuniform vec4 viewDir;\nuniform vec4 lightDir;\nuniform vec4 lightColor;\nuniform vec4 lightTerms;\n\nvarying vec2 v_texCoord;\n\n\nfloat convert(vec4 c) {\n float r = c.r * 255.0;\n float g = c.g * 255.0;\n float b = c.b * 255.0;\n\n float value = (r * 65536.0) + (g * 256.0) + b;\n return ((value / 16777216.0) * 2.0) - 1.0;\n}\n\n\nvec4 scalarLookup(vec4 c) {\n float r = c.r * 255.0;\n float g = c.g * 255.0;\n float b = c.b * 255.0;\n\n float value = (r * 65536.0) + (g * 256.0) + b;\n value = value / 16777216.0;\n\n return texture2D(lutSampler, vec2(value, 0.5));\n}\n\n\nvoid main() {\n // Sample the texture containing what we have composited so far\n vec4 color = texture2D(compositeSampler, v_texCoord);\n\n // Sample the new layer to be composited in\n vec4 scalarColor = texture2D(scalarSampler, v_texCoord);\n\n // Choose the fragment with the greater depth value\n if (color.a > scalarColor.a) {\n gl_FragColor = color;\n } else {\n\n vec4 nx = texture2D(nxSampler, v_texCoord);\n vec4 ny = texture2D(nySampler, v_texCoord);\n vec4 nz = texture2D(nzSampler, v_texCoord);\n vec4 normal = normalize(vec4(convert(nx), convert(ny), convert(nz), 0.0));\n\n vec4 lutColor = scalarLookup(scalarColor);\n\n float ka = lightTerms[0];\n float kd = lightTerms[1];\n float ks = lightTerms[2];\n float alpha = lightTerms[3];\n\n vec4 vDir = normalize(viewDir);\n vec4 lDir = normalize(lightDir);\n\n // Calculate ambient term\n vec4 ambientColor = lutColor * ka;\n\n // This will be used in both diffuse and specular terms\n float lDotN = dot(lDir, normal);\n\n // Adding this check allows us to light whichever side is facing the light\n if (lDotN < 0.0) {\n normal = -1.0 * normal;\n lDotN = dot(lDir, normal);\n }\n\n // Calculate diffuse term\n vec4 diffuseColor = kd * lutColor * lDotN;\n\n // Calculate specular term\n vec4 R = (normal * 2.0 * lDotN) - lDir;\n float specularTerm = ks * pow(dot(R, vDir), alpha);\n vec4 specularColor = lightColor * specularTerm; // * step(-lDotN, 0.0);\n\n // Clamp them individually and sum them up\n vec3 fColor = clamp(ambientColor.rgb, 0.0, 1.0) + clamp(diffuseColor.rgb, 0.0, 1.0) + clamp(specularColor.rgb, 0.0, 1.0);\n gl_FragColor = vec4(fColor.rgb, scalarColor.a);\n\n // Various debugging outputs\n\n // gl_FragColor = vec4(ambientColor.rgb, scalarColor.a);\n // gl_FragColor = vec4(diffuseColor.rgb, scalarColor.a);\n // gl_FragColor = vec4(specularColor.rgb, scalarColor.a);\n // gl_FragColor = vec4(lutColor.rgb, scalarColor.a);\n // gl_FragColor = vec4(((normal.rgb + 1.0) / 2.0), scalarColor.a);\n }\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D compositeSampler;\nuniform sampler2D scalarSampler;\nuniform sampler2D lutSampler;\n\nvarying vec2 v_texCoord;\n\n\nfloat convert(vec4 c) {\n float r = c.r * 255.0;\n float g = c.g * 255.0;\n float b = c.b * 255.0;\n\n float value = (r * 65536.0) + (g * 256.0) + b;\n return ((value / 16777216.0) * 2.0) - 1.0;\n}\n\n\nvec4 scalarLookup(vec4 c) {\n float r = c.r * 255.0;\n float g = c.g * 255.0;\n float b = c.b * 255.0;\n\n float value = (r * 65536.0) + (g * 256.0) + b;\n value = value / 16777216.0;\n\n return texture2D(lutSampler, vec2(value, 0.5));\n}\n\n\nvoid main() {\n // Sample the texture containing what we have composited so far\n vec4 color = texture2D(compositeSampler, v_texCoord);\n\n // Sample the new layer to be composited in\n vec4 scalarColor = texture2D(scalarSampler, v_texCoord);\n\n // Choose the fragment with the greater depth value\n if (color.a > scalarColor.a) {\n gl_FragColor = color;\n } else {\n vec4 lutColor = scalarLookup(scalarColor);\n gl_FragColor = vec4(lutColor.rgb, scalarColor.a);\n }\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D orderSampler;\nuniform sampler2D intensitySampler;\nuniform sampler2D layerColorSampler[${SIMULTANEOUS_LAYERS}];\nuniform sampler2D lutSampler[${SIMULTANEOUS_LAYERS}];\n\nuniform float layerAlpha[${SIMULTANEOUS_LAYERS}];\nuniform vec2 layerRange[${SIMULTANEOUS_LAYERS}];\n\nuniform int orderOffset;\n\nvarying vec2 v_texCoord;\n\nfloat affine(float inMin, float val, float inMax, float outMin, float outMax) {\n return (((val - inMin) / (inMax - inMin)) * (outMax - outMin)) + outMin;\n}\n\n//\n// Main shader execution function\n//\nvoid main() {\n // Look up the layer number to which this pixel corresponds\n float orderSample = texture2D(orderSampler, v_texCoord).r;\n int order = int(orderSample * 255.0) - orderOffset;\n\n float intensity = texture2D(intensitySampler, v_texCoord).r;\n bool foundOne = false;\n\n //@INLINE_LOOP (loopIdx, 0, ${SIMULTANEOUS_LAYERS})\n for (int loopIdx = 0; loopIdx < ${SIMULTANEOUS_LAYERS}; ++loopIdx) {\n if (loopIdx == order) {\n float f = texture2D(layerColorSampler[loopIdx], v_texCoord).r;\n if (f >= layerRange[loopIdx][0] && f <= layerRange[loopIdx][1]) {\n vec2 lutTCoord = vec2(affine(layerRange[loopIdx][0], f, layerRange[loopIdx][1], 0.0, 1.0), 0.5);\n vec4 color = texture2D(lutSampler[loopIdx], lutTCoord);\n gl_FragColor = vec4(color.xyz * intensity, layerAlpha[loopIdx]);\n foundOne = true;\n }\n }\n }\n //@INLINE_LOOP\n\n if (foundOne == false) {\n discard;\n }\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D orderSampler;\nuniform sampler2D normalSampler;\nuniform sampler2D layerColorSampler[${SIMULTANEOUS_LAYERS}];\nuniform sampler2D lutSampler[${SIMULTANEOUS_LAYERS}];\n\nuniform float layerAlpha[${SIMULTANEOUS_LAYERS}];\nuniform vec2 layerRange[${SIMULTANEOUS_LAYERS}];\n\nuniform int orderOffset;\n\nuniform vec4 lightDir;\nuniform vec4 lightColor;\nuniform vec4 lightTerms;\n\nvarying vec2 v_texCoord;\n\nfloat affine(float inMin, float val, float inMax, float outMin, float outMax) {\n return (((val - inMin) / (inMax - inMin)) * (outMax - outMin)) + outMin;\n}\n\nvec4 unpackNormal(vec4 packedNormal) {\n vec4 normal = vec4((packedNormal.xy * 2.0) - 1.0, packedNormal.z, 0.0);\n return normalize(normal);\n}\n\n//\n// Main shader execution function\n//\nvoid main() {\n // Look up the layer number to which this pixel corresponds\n float orderSample = texture2D(orderSampler, v_texCoord).r;\n int order = int(orderSample * 255.0) - orderOffset;\n\n bool foundOne = false;\n\n //@INLINE_LOOP (loopIdx, 0, ${SIMULTANEOUS_LAYERS})\n for (int loopIdx = 0; loopIdx < ${SIMULTANEOUS_LAYERS}; ++loopIdx) {\n if (loopIdx == order) {\n float f = texture2D(layerColorSampler[loopIdx], v_texCoord).r;\n if (f >= layerRange[loopIdx][0] && f <= layerRange[loopIdx][1]) {\n // If the scalar value is in range (not NaN) we first do the scalar lookup\n vec2 lutTCoord = vec2(affine(layerRange[loopIdx][0], f, layerRange[loopIdx][1], 0.0, 1.0), 0.5);\n vec4 lutColor = texture2D(lutSampler[loopIdx], lutTCoord);\n\n // ----------- begin lighting bits ------------\n\n vec4 packedNormal = texture2D(normalSampler, v_texCoord);\n vec4 normal = unpackNormal(packedNormal);\n\n float ka = lightTerms[0];\n float kd = lightTerms[1];\n float ks = lightTerms[2];\n float alpha = lightTerms[3];\n\n vec4 vDir = vec4(0.0, 0.0, 1.0, 0.0);\n vec4 lDir = normalize(lightDir);\n\n // Calculate ambient term\n vec4 ambientColor = lutColor * ka;\n\n // This will be used in both diffuse and specular terms\n float lDotN = dot(lDir, normal);\n\n // Calculate diffuse term\n vec4 diffuseColor = kd * lutColor * lDotN;\n\n // Calculate specular term\n vec4 R = (normal * 2.0 * lDotN) - lDir;\n float specularTerm = ks * pow(dot(R, vDir), alpha);\n vec4 specularColor = lightColor * specularTerm; // * step(-lDotN, 0.0);\n\n // Clamp them individually and sum them up\n vec3 fColor = clamp(ambientColor.rgb, 0.0, 1.0) + clamp(diffuseColor.rgb, 0.0, 1.0) + clamp(specularColor.rgb, 0.0, 1.0);\n\n // ----------- end lighting bits ------------\n\n foundOne = true;\n gl_FragColor = vec4(fColor.rgb, layerAlpha[loopIdx]);\n }\n }\n }\n //@INLINE_LOOP\n\n if (foundOne == false) {\n discard;\n }\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D alphaSampler;\nuniform sampler2D intensitySampler;\nuniform sampler2D orderSampler;\nuniform sampler2D lutSampler;\n\nuniform float numberOfLayers;\n\nvarying vec2 v_texCoord;\n\n\n//\n// Main shader execution function\n//\nvoid main() {\n // Look up the layer number to which this pixel corresponds\n float order = texture2D(orderSampler, v_texCoord).r;\n float alpha = texture2D(alphaSampler, v_texCoord).r;\n float intensity = texture2D(intensitySampler, v_texCoord).r;\n\n float layerCoord = (order * 255.0) / (numberOfLayers - 1.0);\n vec4 lutColor = texture2D(lutSampler, vec2(layerCoord, 0.5));\n\n gl_FragColor = vec4(lutColor.rgb * intensity, alpha * lutColor.a);\n}\n"},function(e,t,n){var r=n(569);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(570);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(571);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(573);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(574);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(575);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(576);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(134);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(577);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(578);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(579);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(580);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(581);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(583);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(585);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(586);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(587);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(588);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(589);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(590);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(591);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(592);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(593);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(594);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(595);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(596);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(597);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(599);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(600);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(601);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(602);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(738),o='<symbol viewBox="0 0 256 256" id="kitware" xmlns:xlink="http://www.w3.org/1999/xlink"> <style type="text/css"> .st0{display:none;} .st1{display:inline;} .st2{display:inline;fill:#FFFFFF;} </style> <g id="kitware_paraview" class="st0"> <g class="st1"> <g> <polygon points="65.4,211.3 14.6,211.3 56.4,53.4 107.2,53.4 "/> </g> <g> <polygon points="132.7,211.3 81.9,211.3 123.6,53.4 174.4,53.4 "/> </g> <g> <polygon points="199.9,211.3 149.1,211.3 190.9,53.4 241.6,53.4 "/> </g> </g> </g> <g id="kitware_paraviewweb" class="st0"> <g class="st1"> <polygon points="60.2,211.3 35.7,211.3 49,40 106.1,40 "/> </g> <g class="st1"> <polygon points="159.9,211.3 135.4,211.3 181.4,40 238.5,40 "/> </g> <g class="st1"> <polygon points="118.8,88.6 69.5,211.3 126.6,211.3 140.9,88.6 "/> </g> </g> <g id="kitware_kitware"> <g> <g> <path d="M216.9,77c-6.2,0-12.3,0-18.5,0c-66.9,18.7-76.9,102.5-30,142.9c-54.2-36.8-44.4-130,29.5-149.8c-6.2,0-12.3,0-18.5,0\r\n c-66.9,18.7-76.9,102.5-30,142.9c-54.2-36.8-44.4-130,29.5-149.8c-6.2,0-12.3,0-18.5,0c-21,5.9-36.3,18.2-46.1,33.5\r\n c-0.7-28.8-5.2-58.2-13.9-87.7c-5.2,5-10.4,9.9-15.6,14.9c25.8,73.8,21.6,151.9-10.2,217.1c1.4,1.4,2.8,2.7,4.3,4.1\r\n c12.7-22.5,22-47.1,28-73c8.8,23.8,28.3,44.2,58.5,52.3c0.3,0,0.6,0,1,0c5.5,2.8,11.4,5.2,17.9,6.9c0.3,0,0.6,0,1,0\r\n c5.5,2.8,11.4,5.2,17.9,6.9c2.8,0,5.7,0,8.5,0C131.6,215.7,133.3,99.4,216.9,77z"/> </g> <g> <path d="M57.1,50.6c-5.2,5-10.4,9.9-15.5,14.9c28,43.5,37,102.5,21.4,164c1.4,1.4,2.8,2.7,4.3,4.1\r\n C88.5,170.7,84.3,104.9,57.1,50.6z"/> </g> <g> <path d="M78.8,29.8c-5.2,5-10.4,9.9-15.5,14.9c26.9,58.6,29.3,127.2,5.6,190.6c1.4,1.4,2.8,2.7,4.3,4.1\r\n C102.6,174.6,105,99.2,78.8,29.8z"/> </g> </g> </g> <g id="kitware_cluster" class="st0"> <path class="st1" d="M233.1,88.5c1.9,0,3.3-1.5,3.3-3.3V31.3c0-1.8-1.5-3.3-3.3-3.3h-53.8c-1.9,0-3.3,1.5-3.3,3.3v20.6h-16V31.3\r\n c0-1.8-1.5-3.3-3.3-3.3h-53.8c-1.9,0-3.3,1.5-3.3,3.3v20.6h-16V31.3c0-1.8-1.5-3.3-3.3-3.3H26.3c-1.9,0-3.3,1.5-3.3,3.3v53.8\r\n c0,1.8,1.5,3.3,3.3,3.3h20.3v13.6H26.3c-1.9,0-3.3,1.5-3.3,3.3v53.8c0,1.8,1.5,3.3,3.3,3.3h20.3v13.7H26.3c-1.9,0-3.3,1.5-3.3,3.3\r\n v53.8c0,1.9,1.5,3.3,3.3,3.3h53.8c1.9,0,3.3-1.5,3.3-3.3V214h16v19.5c0,1.9,1.5,3.3,3.3,3.3h53.8c1.9,0,3.3-1.5,3.3-3.3V214h16\r\n v19.5c0,1.9,1.5,3.3,3.3,3.3h53.8c1.9,0,3.3-1.5,3.3-3.3v-53.8c0-1.9-1.5-3.3-3.3-3.3h-18.9v-13.6h18.9c1.9,0,3.3-1.5,3.3-3.3\r\n v-53.8c0-1.8-1.5-3.3-3.3-3.3h-18.9V88.5H233.1z M182.6,34.6h47.1v47.1h-47.1V34.6z M106.1,34.6h47.2v47.1h-47.2V34.6z M29.6,34.6\r\n h47.2v47.1H29.6V34.6z M60,88.5h20.1c1.9,0,3.3-1.5,3.3-3.3V65.3h16v19.8c0,1.8,1.5,3.3,3.3,3.3h20.9v13.7h-20.9\r\n c-1.9,0-3.3,1.5-3.3,3.3V125h-16v-19.5c0-1.8-1.5-3.3-3.3-3.3H60V88.5z M106.1,156v-47.2h47.2V156H106.1z M29.6,108.8h47.2V156\r\n H29.6V108.8z M76.7,230.1H29.6V183h47.2V230.1z M83.4,200.5v-20.9c0-1.9-1.5-3.3-3.3-3.3H60v-13.7h20.1c1.9,0,3.3-1.5,3.3-3.3\r\n v-20.9h16v20.9c0,1.8,1.5,3.3,3.3,3.3h20.9v13.6h-20.9c-1.9,0-3.3,1.5-3.3,3.3v20.9H83.4z M153.3,230.1h-47.2V183h47.2V230.1z\r\n M229.8,230.1h-47.1V183h47.1V230.1z M200.8,176.3h-21.5c-1.9,0-3.3,1.5-3.3,3.3v20.9h-16v-20.9c0-1.9-1.5-3.3-3.3-3.3h-19.5v-13.6\r\n h19.5c1.9,0,3.3-1.5,3.3-3.3v-20.9h16v20.9c0,1.8,1.5,3.3,3.3,3.3h21.5V176.3z M229.8,156h-47.1v-47.2h47.1V156z M200.8,102.1\r\n h-21.5c-1.9,0-3.3,1.5-3.3,3.3V125h-16v-19.5c0-1.8-1.5-3.3-3.3-3.3h-19.5V88.5h19.5c1.9,0,3.3-1.5,3.3-3.3V65.3h16v19.8\r\n c0,1.8,1.5,3.3,3.3,3.3h21.5V102.1z"/> </g> <g id="kitware_axis-orientation" class="st0"> <path class="st1" d="M232.9,239.4l-11.2-23.6c-0.5-1-1.4-1.7-2.6-1.9c-1.1-0.1-2.2,0.3-3,1.1l-2.6,2.9c0,0-80.6-70.1-81.1-70.7V139\r\n h0V42.5h3.9c1.1,0,2.2-0.6,2.8-1.5c0.6-1,0.7-2.2,0.2-3.2l-10.8-23.9c-0.5-1.2-1.7-2-3.1-2c-1.2,0-2.5,0.8-3.1,2l-10.5,23.9\r\n c-0.5,1-0.4,2.2,0.3,3.2c0.6,0.9,1.7,1.5,2.8,1.5h3.9V139v8.3c0,0.2-81.1,70.7-81.1,70.7l-2.6-2.9c-0.7-0.9-1.9-1.2-3-1.1\r\n c-1.1,0.2-2.1,0.9-2.6,1.9l-11.2,23.6c-0.6,1.2-0.4,2.6,0.5,3.6c0.6,0.7,1.6,1.2,2.5,1.2c0.3,0,0.7,0,1-0.1l25.1-7.6\r\n c1.1-0.3,1.9-1.2,2.2-2.3c0.3-1.1,0.1-2.3-0.7-3.1l-2.6-2.9l79-68.8l79,68.8l-2.6,2.9c-0.7,0.9-1,2-0.7,3.1c0.3,1.1,1.2,2,2.2,2.3\r\n l25.1,7.6c0.3,0.1,0.6,0.1,1,0.1c1,0,1.9-0.4,2.5-1.2C233.3,242,233.5,240.6,232.9,239.4z"/> </g> <g id="kitware_axis-center" class="st0"> <path class="st1" d="M226.9,119h-86.1L206,64.4c1.4-1.2,1.6-3.3,0.4-4.7c-1.2-1.4-3.3-1.6-4.7-0.4l-67.2,56.2V26.3\r\n c0-3.7-3-6.7-6.7-6.7c-3.7,0-6.7,3-6.7,6.7V119H28.5c-3.7,0-6.7,3-6.7,6.7c0,3.7,3,6.7,6.7,6.7h85.8l-64.7,54.1\r\n c-1.4,1.2-1.6,3.3-0.4,4.7c0.7,0.8,1.6,1.2,2.6,1.2c0.8,0,1.5-0.3,2.1-0.8l67.2-56.2v89.2c0,3.7,3,6.7,6.7,6.7c3.7,0,6.7-3,6.7-6.7\r\n v-92.2h92.4c3.7,0,6.7-3,6.7-6.7C233.6,122,230.6,119,226.9,119z"/> </g> <g id="kitware_function_x5F_gaussian" class="st0"> <rect x="118.9" y="131.9" transform="matrix(0.7071 0.7071 -0.7071 0.7071 137.8138 -49.4411)" class="st2" width="19.4" height="19.4"/> <path class="st1" d="M128.6,158.7c-0.9,0-1.7-0.4-2.4-1L112.5,144c-1.3-1.3-1.3-3.4,0-4.7l13.8-13.8c0.6-0.6,1.5-1,2.4-1l0,0\r\n c0.9,0,1.7,0.4,2.4,1l13.8,13.8c1.3,1.3,1.3,3.4,0,4.7L131,157.8C130.3,158.4,129.5,158.7,128.6,158.7z M119.6,141.6l9,9l9-9l-9-9\r\n L119.6,141.6z"/> <path class="st1" d="M246.5,208.6c-20.9-1-35.7-6.1-46.4-14.1c0.1-1.5,0.1-3.1-0.1-4.7c-0.8-5.3-3.7-10-8-13.2\r\n c-2.8-2.1-6.1-3.2-9.5-3.6c-8.2-16.2-11.7-36.9-15.4-59.7c-3.5-21.5-9.7-36.5-18.3-44.8c0-0.8,0-1.7-0.1-2.5\r\n c-1.7-11-12.1-18.6-23.1-16.9c-9.8,1.5-16.8,9.9-17.1,19.4c-8.6,8.3-14.8,23.3-18.3,44.8c-3.7,22.8-7.2,43.4-15.4,59.6\r\n c-0.2,0-0.4,0-0.7,0c-10.5,1.6-17.7,11.1-16.9,21.5c-10.8,8-25.5,13.1-46.5,14.1c-3.7,0.2-6.5,3.3-6.4,7c0.2,3.6,3.1,6.4,6.7,6.4\r\n c0.1,0,0.2,0,0.3,0c22.7-1.1,39.2-6.5,51.6-14.9c3.7,3.7,8.8,6.1,14.3,6.1c1,0,2.1-0.1,3.1-0.2c11-1.7,18.6-12.1,16.9-23.1\r\n c-0.8-5.3-3.7-10-8-13.2c-0.3-0.2-0.6-0.3-0.9-0.5c8.1-17.7,11.6-38.9,15.1-60.6c2.8-17.1,6.9-26.9,10.6-32.6c3.7,4,9,6.4,14.6,6.4\r\n c1,0,2.1-0.1,3.1-0.2c4.6-0.7,8.6-3,11.5-6.2c3.7,5.7,7.8,15.5,10.6,32.6c3.5,21.7,7.1,42.9,15.1,60.6c-6.4,4.2-10.2,11.9-8.9,20\r\n c0.8,5.3,3.7,10,8,13.2c3.5,2.6,7.6,3.9,11.9,3.9c1,0,2.1-0.1,3.1-0.2c4.4-0.7,8.3-2.8,11.2-5.8c12.3,8.3,28.9,13.7,51.6,14.9\r\n c0.1,0,0.2,0,0.3,0c3.5,0,6.5-2.8,6.7-6.4C253,212,250.2,208.8,246.5,208.6z M90.6,190.9c1.1,7.4-3.9,14.3-11.3,15.4\r\n c-7.4,1.1-14.3-3.9-15.4-11.3c-1.1-7.4,3.9-14.3,11.3-15.4c0.7-0.1,1.4-0.2,2.1-0.2c2.8,0,5.6,0.9,7.9,2.6\r\n C88.1,184.2,90,187.4,90.6,190.9z M130.7,82.5c-7.3,1.1-14.3-3.9-15.4-11.3c-1.1-7.4,3.9-14.3,11.3-15.4c0.7-0.1,1.4-0.2,2.1-0.2\r\n c6.6,0,12.3,4.8,13.4,11.4C143.1,74.4,138,81.4,130.7,82.5z M182,206.4c-7.4,1.1-14.3-3.9-15.4-11.3c-1.1-7.4,3.9-14.3,11.3-15.4\r\n c0.7-0.1,1.4-0.2,2.1-0.2c2.8,0,5.6,0.9,7.9,2.6c2.9,2.1,4.8,5.3,5.4,8.8C194.5,198.3,189.4,205.2,182,206.4z"/> </g> <g id="kitware_parallel-coordinates" class="st0"> <path class="st1" d="M227.1,30.3c-3.7,0-6.7,3-6.7,6.7v46.1L134.5,51V37c0-3.7-3-6.7-6.7-6.7s-6.7,3-6.7,6.7v11.1L39,68.5V37\r\n c0-3.7-3-6.7-6.7-6.7c-3.7,0-6.7,3-6.7,6.7v191.2c0,3.7,3,6.7,6.7,6.7c3.7,0,6.7-3,6.7-6.7v-33l82,15.4v17.7c0,3.7,3,6.7,6.7,6.7\r\n s6.7-3,6.7-6.7V208l42.4-34.4l43.5,35.3v19.2c0,3.7,3,6.7,6.7,6.7c3.7,0,6.7-3,6.7-6.7V37C233.8,33.3,230.8,30.3,227.1,30.3z\r\n M220.4,90.3v39.5l-43.5,35.3l-42.4-34.4V58.1L220.4,90.3z M121.1,55v73.6l-82,20.5V75.4L121.1,55z M39,188.3V156l82-20.5v68.2\r\n L39,188.3z M134.5,199.4v-60.1l37.1,30.1L134.5,199.4z M182.2,169.4l38.2-31v62L182.2,169.4z"/> </g> <g id="kitware_function-linear" class="st0"> <path class="st1" d="M249.8,45.9C249.8,45.9,249.8,45.9,249.8,45.9c-1.7-11-12-18.6-23.1-16.9c-5.3,0.8-10,3.7-13.2,8.1\r\n c-1.2,1.7-2.1,3.5-2.7,5.5h-22.9c-3.1-9.1-12.3-15-22.2-13.5c-5.3,0.8-10,3.7-13.2,8.1c-3.2,4.4-4.5,9.7-3.7,15\r\n c0.8,5,3.3,9.3,7.2,12.4l-63.8,129c-1.9-0.3-3.9-0.4-6-0.1c-7.6,1.2-13.5,6.5-15.9,13.3H45c-3.1-9-12.3-14.8-22.2-13.3\r\n c-5.3,0.8-10,3.7-13.2,8.1c-3.2,4.4-4.5,9.7-3.7,15c0.8,5.3,3.7,10,8,13.2c3.5,2.6,7.6,3.9,11.9,3.9c1,0,2.1-0.1,3.2-0.2\r\n c7.6-1.2,13.4-6.5,15.9-13.2h25.3c2.8,8,10.5,13.5,19,13.5c1,0,2.1-0.1,3.1-0.2c5.3-0.8,10-3.7,13.2-8.1c3.2-4.4,4.5-9.7,3.7-15\r\n c-0.6-4.2-2.5-7.8-5.2-10.7l64.5-130.5c0,0,0.1,0,0.1,0c1,0,2.1-0.1,3.2-0.2c7.5-1.2,13.3-6.4,15.8-13h23.2c1.4,3.7,3.8,7,7.1,9.4\r\n c3.5,2.6,7.6,3.9,11.9,3.9c1,0,2.1-0.1,3.2-0.2C244,67.3,251.6,57,249.8,45.9z M28,226.9c-3.6,0.5-7.2-0.3-10.1-2.4\r\n s-4.8-5.3-5.4-8.9c-0.6-3.6,0.3-7.2,2.4-10.1c2.1-2.9,5.3-4.8,8.9-5.4c0.7-0.1,1.4-0.2,2.1-0.2c6.6,0,12.3,4.8,13.4,11.5\r\n C40.5,218.9,35.4,225.8,28,226.9z M100.2,221.6c-2.1,2.9-5.3,4.8-8.9,5.4C84,228.1,77,223,75.9,215.6c-1.1-7.4,3.9-14.3,11.3-15.5\r\n c0.7-0.1,1.4-0.2,2.1-0.2c6.6,0,12.3,4.8,13.4,11.5c0,0,0,0,0,0C103.2,215.1,102.3,218.6,100.2,221.6z M170.8,62.4\r\n c-3.6,0.5-7.2-0.3-10.1-2.4c-2.9-2.1-4.8-5.3-5.4-8.9c-0.6-3.6,0.3-7.2,2.4-10.1s5.3-4.8,8.9-5.4c0.7-0.1,1.4-0.2,2.1-0.2\r\n c6.6,0,12.3,4.8,13.4,11.5C183.3,54.4,178.2,61.3,170.8,62.4z M231.9,62.4c-3.6,0.5-7.2-0.3-10.1-2.4c-2.9-2.1-4.8-5.3-5.4-8.9\r\n c-0.6-3.6,0.3-7.2,2.4-10.1s5.3-4.8,8.9-5.4c0.7-0.1,1.4-0.2,2.1-0.2c6.6,0,12.3,4.8,13.4,11.5C244.4,54.3,239.3,61.3,231.9,62.4z"/> </g> <g id="kitware_bounding-box" class="st0"> <path class="st1" d="M236.6,161.9c0-0.3,0.2-0.5,0.2-0.8V36.8c0-0.3-0.1-0.6-0.2-1c-0.1-0.5-0.1-0.9-0.3-1.4\r\n c-0.2-0.5-0.5-0.8-0.7-1.3c-0.2-0.3-0.3-0.6-0.5-0.8c-0.1-0.1-0.1-0.1-0.2-0.1c-0.3-0.4-0.8-0.6-1.2-0.9c-0.3-0.2-0.6-0.5-0.9-0.6\r\n c-0.4-0.2-0.7-0.2-1.1-0.3c-0.5-0.1-0.9-0.3-1.4-0.3c-0.1,0-0.1,0-0.2,0h-121c-0.3,0-0.5,0.1-0.7,0.1c-0.4,0-0.9,0.1-1.3,0.3\r\n c-0.5,0.1-0.9,0.3-1.3,0.6c-0.2,0.1-0.4,0.2-0.7,0.3L26.5,88.4c-0.1,0.1-0.2,0.3-0.3,0.4c-0.4,0.3-0.7,0.6-0.9,1\r\n c-0.3,0.3-0.5,0.6-0.7,1c-0.2,0.4-0.3,0.8-0.4,1.2c-0.1,0.4-0.2,0.9-0.3,1.3c0,0.2-0.1,0.3-0.1,0.5v134.4c0,3.7,3,6.7,6.7,6.7\r\n h134.4c0.9,0,1.8-0.2,2.6-0.5c0.8-0.3,1.6-0.9,2.2-1.5c0,0,0,0,0,0l65.2-67.1c0,0,0,0,0,0l0.1-0.1c0.2-0.2,0.2-0.4,0.4-0.6\r\n c0.4-0.5,0.8-1,1-1.6C236.5,163,236.6,162.5,236.6,161.9z M171.5,164.4h46l-46,47.3V164.4z M37.1,218.1V100.6h68.6v57.1v1.8\r\n L37.1,218.1z M162.3,87.1h-49.8V43.5h99.8L162.3,87.1z M105.7,47.5v39.6H51.1L105.7,47.5z M112.4,157.7v-57.1h45.6v57.1H112.4z\r\n M171.5,96.9l51.9-45.3v106.1h-51.9V96.9z M43.4,221.5l66.9-57.1h2.1h45.6v57.1H43.4z"/> </g> <g id="kitware_ruler" class="st0"> <g class="st1"> <path d="M171,246.5H88.6c-3.7,0-6.7-3-6.7-6.7V13.6c0-3.7,3-6.7,6.7-6.7H171c3.7,0,6.7,3,6.7,6.7v226.1\r\n C177.7,243.4,174.7,246.5,171,246.5z M95.3,233h68.9V20.3H95.3V233z"/> </g> <g class="st1"> <rect x="98.6" y="35.4" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="60.7" width="38.5" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="86" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="111.2" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="136.5" width="38.5" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="161.8" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="187" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="212.3" width="38.5" height="6.7"/> </g> </g> </symbol>'; -e.exports=r.add(o,"kitware")},function(e,t,n){var r=n(739),o=new r;document.body?o.elem=o.render(document.body):document.addEventListener("DOMContentLoaded",function(){o.elem=o.render(document.body)},!1),e.exports=o},function(e,t){function n(e){return Array.prototype.slice.call(e,0)}function r(e){return e.replace(/\(|\)/g,"\\$&")}function o(e,t,o){var a=e.querySelectorAll(s);a&&n(a).forEach(function(e){e.attributes&&n(e.attributes).forEach(function(n){if(-1!==i.indexOf(n.localName)){var a=l.exec(e.getAttribute(n.localName));if(a&&0===a[1].indexOf(t)){var s=r(o+a[1].split(t)[1]);e.setAttribute(n.localName,"url("+s+")")}}})})}function a(){var e=document.getElementsByTagName("base")[0],t=window.location.href.split("#")[0],r=e&&e.href;this.urlPrefix=r&&r!==t?t+c:c,this.content=[],this.isFirefox=/firefox\//i.test(navigator.userAgent),this.isIE=/(trident|edge)\//i.test(navigator.userAgent),!this.isIE&&r&&window.addEventListener("spriteLoaderLocationUpdated",function(e){var t=this.urlPrefix,r=e.detail.newUrl.split(c)[0]+c;if(o(this.svg,t,r),this.urlPrefix=r,this.isFirefox){var a=n(document.querySelectorAll("use[*|href]"));a.forEach(function(e){var n=e.getAttribute(f);n&&0===n.indexOf(t)&&e.setAttributeNS(p,f,r+n.split(c)[1])})}}.bind(this))}var i=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke"],s="["+i.join("],[")+"]",l=/^url\((.*)\)$/,u=function(e){for(var t=e.querySelector("defs"),n=e.querySelectorAll("symbol linearGradient, symbol radialGradient, symbol pattern"),r=0,o=n.length;o>r;r++)t.appendChild(n[r])},c="#",f="xlink:href",p="http://www.w3.org/1999/xlink",d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="'+p+'"',h="</svg>",g="{content}";a.styles=["position:absolute","width:0","height:0","visibility:hidden"],a.spriteTemplate=d+' style="'+a.styles.join(";")+'"><defs>'+g+"</defs>"+h,a.symbolTemplate=d+">"+g+h,a.prototype.content=null,a.prototype.add=function(e,t){return this.svg&&this.appendSymbol(e),this.content.push(e),c+t},a.prototype.wrapSVG=function(e,t){var n=t.replace(g,e),r=(new DOMParser).parseFromString(n,"image/svg+xml").documentElement;return!this.isIE&&this.urlPrefix&&o(r,c,this.urlPrefix),r},a.prototype.appendSymbol=function(e){var t=this.wrapSVG(e,a.symbolTemplate).childNodes[0];this.svg.querySelector("defs").appendChild(t),this.isFirefox&&u(this.svg)},a.prototype.toString=function(){var e=document.createElement("div");return e.appendChild(this.render()),e.innerHTML},a.prototype.render=function(e,t){e=e||null,t="boolean"==typeof t?t:!0;var n=this.wrapSVG(this.content.join(""),a.spriteTemplate);return this.isFirefox&&u(n),e&&(t&&e.childNodes[0]?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)),this.svg=n,n},e.exports=a},function(e,t,n){e.exports=n.p+"32400f4e08932a94d8bfd2422702c446.eot"},function(e,t,n){e.exports=n.p+"32400f4e08932a94d8bfd2422702c446.eot"},function(e,t,n){e.exports=n.p+"f775f9cca88e21d45bebe185b27c0e5b.svg"},function(e,t,n){e.exports=n.p+"a3de2170e4e9df77161ea5d3f31b2668.ttf"},function(e,t,n){e.exports=n.p+"db812d8a70a4e88e888744c1c9a27e89.woff2"},function(e,t,n){e.exports=n.p+"a35720c2fed2c7f043bc7e4ffb45e073.woff"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXQAAABsCAYAAAB6kUkRAAAAAXNSR0IArs4c6QAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAABWdJREFUeAHt3EFq40AQBdCZQQcK5P5HEPhGM2ZAO6dCFS26ynnZGNLdcvl9+6OVfv99/v1K/J2Jvf+3pg9k38D+lQKf6YsJOE2280AyYOnuDCv/3n/yR5wgQIAAgY4CCr1jKmYiQIBAQUChF9AcIUCAQEcBhd4xFTMRIECgIKDQC2iOECBAoKOAQu+YipkIECBQEFDoBTRHCBAg0FFAoXdMxUwECBAoCCj0ApojBAgQ6Cig0DumYiYCBAgUBBR6Ac0RAgQIdBQ4zjP3tIbzM/kwiOynzo2TvfqP239zWgVPARfQvj7SLGDpfh1VbSUXsDv0mrJTBAgQaCeg0NtFYiACBAjUBBR6zc0pAgQItBNQ6O0iMRABAgRqAgq95uYUAQIE2gko9HaRGIgAAQI1AYVec3OKAAEC7QQUertIDESAAIGagEKvuTlFgACBdgIKvV0kBiJAgEBNQKHX3JwiQIBAO4EjO1G7ZzW0Gygrmtufe7JD7to9dwu4Zy5rpvph6T7R7v0Fu0Nf8710FQIECGwXUOjbIzAAAQIE1ggo9DWOrkKAAIHtAgp9ewQGIECAwBoBhb7G0VUIECCwXUChb4/AAAQIEFgjoNDXOLoKAQIEtgso9O0RGIAAAQJrBBT6GkdXIUCAwHYBhb49AgMQIEBgjYBCX+PoKgQIENgucJxn7mkK5+e9zyK4XST3cW8fZ7jm7T75NxBw3mzOiWbpPuF6/YLdoc/5LpuUAAECoYBCD3ksEiBAYI6AQp+TlUkJECAQCij0kMciAQIE5ggo9DlZmZQAAQKhgEIPeSwSIEBgjoBCn5OVSQkQIBAKKPSQxyIBAgTmCCj0OVmZlAABAqGAQg95LBIgQGCOgEKfk5VJCRAgEAoc4eqLxceL/731v5If+OOtMd7xwwn4HVO9PlMy3eex2b9gd+hX8l4JECAwXEChDw/Q+AQIELgEFPol4ZUAAQLDBRT68ACNT4AAgUtAoV8SXgkQIDBcQKEPD9D4BAgQuAQU+iXhlQABAsMFFPrwAI1PgACBS0ChXxJeCRAgMFxAoQ8P0PgECBC4BBT6JeGVAAECwwWO8zxzHyG7P3d1uzcLJL8Nm6f19mkBAafJJh1whz4pLbMSIEAgEFDoAY4lAgQITBJQ6JPSMisBAgQCAYUe4FgiQIDAJAGFPiktsxIgQCAQUOgBjiUCBAhMElDok9IyKwECBAIBhR7gWCJAgMAkAYU+KS2zEiBAIBBQ6AGOJQIECEwSUOiT0jIrAQIEAoEjWHu95Fkur12a/tejO5oGs2osAa+SbHqdXMDu0JvGaCwCBAhkBRR6Vsx+AgQINBVQ6E2DMRYBAgSyAgo9K2Y/AQIEmgoo9KbBGIsAAQJZAYWeFbOfAAECTQUUetNgjEWAAIGsgELPitlPgACBpgIKvWkwxiJAgEBWQKFnxewnQIBAUwGF3jQYYxEgQCArcJyezZI127o/92SHraN684qAgCtqg87cG7A79EFfBaMSIEAgElDokY41AgQIDBJQ6IPCMioBAgQiAYUe6VgjQIDAIAGFPigsoxIgQCASUOiRjjUCBAgMElDog8IyKgECBCIBhR7pWCNAgMAgAYU+KCyjEiBAIBJQ6JGONQIECAwSUOiDwjIqAQIEIoHj8XhE69ZuFrj3yQ43D+/y3wsI+HujxI58W30krl7Zem/A2endoVcydIYAAQINBRR6w1CMRIAAgYqAQq+oOUOAAIGGAgq9YShGIkCAQEVAoVfUnCFAgEBDAYXeMBQjESBAoCKg0CtqzhAgQKChgEJvGIqRCBAgUBFQ6BU1ZwgQINBQQKE3DMVIBAgQqAgo9IqaMwQIEGgo8A9bODHAkaf7RwAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAD6AAAA+gBtXtSawAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIUSURBVEiJ7ZfPaxNBFMe/bzSbRDZaghdngqyI4MHelGIPSvEg/h2l9SwFEYoXEVEKFfRUsP+HULxo61n0oIjoIskMITnIxl/JknkeGqGKmd0Z9SK+4+z3fT8zb2dm3wKBkSTJTJIkM6H5+0MTR6PROgAGsBiSTyFJSqkLzLwFgJj5kjHm4V8HN5vNg7Va7QWAo5OhThRFp9I0/eDjI3zB9Xp9bQ8UANRwOLzt6+O1YqXUAjM/+kUeA7iotd7642Ap5QEAzwEcnyJJ8zyf7fV6H8v4+ZT6jgMKAEmlUrlV1qzUiqWU8wCeoHiilpkXjDGPfxs8KfEzACfKTBLAu/F4PNvtdj+5RIWlZuabHlAAOCaEuFEkcq641WrNWWt3AOzzAAOABXBea709TeC8Mpl5nog2PaHf4wyAqeD/8e+Hc1crpa4AOBno/arT6dyd9tC5q4noqbV2DWHH6ZxL4DTMsqwTx/EhIjrrCV7XWjuPYeHNVa1WVwG89IC+FkJcLxIVgtM0/UpEi9gtX1FYZl5qt9tfioSl3t1gMGg3Go3DAOYKpPeNMRtlPH2+x9cAvHE8T/M8Xy1rVhqstf4shFjCbpvzczCA5bLdB+B5TLIsS+M4PkJEp3+gMm8YY+75eHl3mdbaFSJ6u2fofZ7nV319vMGTzmIZk5Iz8+V+vz/w9QkOKeWmlPJBaH7wv1MURSuhuQDwDY+Crx8jQ1SvAAAAAElFTkSuQmCC"},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){var t=n(761),r=n(749),o=n(111).asap;return t({scheduler:new r(o)})}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){function e(e){this._async=e,this._running=!1,this._queue=this,this._queueLen=0,this._afterQueue={},this._afterQueueLen=0;var t=this;this.drain=function(){t._drain()}}return e.prototype.enqueue=function(e){this._queue[this._queueLen++]=e,this.run()},e.prototype.afterQueue=function(e){this._afterQueue[this._afterQueueLen++]=e,this.run()},e.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},e.prototype._drain=function(){for(var e=0;e<this._queueLen;++e)this._queue[e].run(),this._queue[e]=void 0;for(this._queueLen=0,this._running=!1,e=0;e<this._afterQueueLen;++e)this._afterQueue[e].run(),this._afterQueue[e]=void 0;this._afterQueueLen=0},e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){var t=n(284),r=n(161);return function(e){function n(t){function n(e){c=null,this.resolve(e)}function r(e){this.resolved||(c.push(e),0===--u&&this.reject(c))}for(var o,a,i=e._defer(),s=i._handler,l=t.length>>>0,u=l,c=[],f=0;l>f;++f)if(a=t[f],void 0!==a||f in t){if(o=e._handler(a),o.state()>0){s.become(o),e._visitRemaining(t,f,o);break}o.visit(s,n,r)}else--u;return 0===u&&s.reject(new RangeError("any(): array must not be empty")),i}function o(t,n){function r(e){this.resolved||(c.push(e),0===--d&&(f=null,this.resolve(c)))}function o(e){this.resolved||(f.push(e),0===--a&&(c=null,this.reject(f)))}var a,i,s,l=e._defer(),u=l._handler,c=[],f=[],p=t.length>>>0,d=0;for(s=0;p>s;++s)i=t[s],(void 0!==i||s in t)&&++d;for(n=Math.max(n,0),a=d-n+1,d=Math.min(n,d),n>d?u.reject(new RangeError("some(): array must contain at least "+n+" item(s), but had "+d)):0===d&&u.resolve(c),s=0;p>s;++s)i=t[s],(void 0!==i||s in t)&&e._handler(i).visit(u,r,o,u.notify);return l}function a(t,n){return e._traverse(n,t)}function i(t,n){var r=_.call(t);return e._traverse(n,r).then(function(e){return s(r,e)})}function s(t,n){for(var r=n.length,o=new Array(r),a=0,i=0;r>a;++a)n[a]&&(o[i++]=e._handler(t[a]).value);return o.length=i,o}function l(e){return g(e.map(u))}function u(n){var r=e._handler(n);return 0===r.state()?h(n).then(t.fulfilled,t.rejected):(r._unreport(),t.inspect(r))}function c(e,t){return arguments.length>2?m.call(e,p(t),arguments[2]):m.call(e,p(t))}function f(e,t){return arguments.length>2?v.call(e,p(t),arguments[2]):v.call(e,p(t))}function p(e){return function(t,n,r){return d(e,void 0,[t,n,r])}}var d=r(e),h=e.resolve,g=e.all,m=Array.prototype.reduce,v=Array.prototype.reduceRight,_=Array.prototype.slice;return e.any=n,e.some=o,e.settle=l,e.map=a,e.filter=i,e.reduce=c,e.reduceRight=f,e.prototype.spread=function(e){return this.then(g).then(function(t){return e.apply(this,t)})},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){function e(){throw new TypeError("catch predicate must be a function")}function t(e,t){return n(t)?e instanceof t:t(e)}function n(e){return e===Error||null!=e&&e.prototype instanceof Error}function r(e){return("object"==typeof e||"function"==typeof e)&&null!==e}function o(e){return e}return function(n){function a(e,n){return function(r){return t(r,n)?e.call(this,r):u(r)}}function i(e,t,n,o){var a=e.call(t);return r(a)?s(a,n,o):n(o)}function s(e,t,n){return l(e).then(function(){return t(n)})}var l=n.resolve,u=n.reject,c=n.prototype["catch"];return n.prototype.done=function(e,t){this._handler.visit(this._handler.receiver,e,t)},n.prototype["catch"]=n.prototype.otherwise=function(t){return arguments.length<2?c.call(this,t):"function"!=typeof t?this.ensure(e):c.call(this,a(arguments[1],t))},n.prototype["finally"]=n.prototype.ensure=function(e){return"function"!=typeof e?this:this.then(function(t){return i(e,this,o,t)},function(t){return i(e,this,u,t)})},n.prototype["else"]=n.prototype.orElse=function(e){return this.then(void 0,function(){return e})},n.prototype["yield"]=function(e){return this.then(function(){return e})},n.prototype.tap=function(e){return this.then(e)["yield"](this)},n}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){return function(e){return e.prototype.fold=function(t,n){var r=this._beget();return this._handler.fold(function(n,r,o){e._handler(n).fold(function(e,n,r){r.resolve(t.call(this,n,e))},r,this,o)},n,r._handler.receiver,r._handler),r},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){var t=n(284).inspect;return function(e){return e.prototype.inspect=function(){return t(e._handler(this))},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){return function(e){function t(e,t,r,o){return n(function(t){return[t,e(t)]},t,r,o)}function n(e,t,o,a){function i(a,i){return r(o(a)).then(function(){return n(e,t,o,i)})}return r(a).then(function(n){return r(t(n)).then(function(t){return t?n:r(e(n)).spread(i)})})}var r=e.resolve;return e.iterate=t,e.unfold=n,e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){return function(e){return e.prototype.progress=function(e){return this.then(void 0,void 0,e)},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){function t(e,t,n,o){return r.setTimer(function(){e(n,o,t)},t)}var r=n(111),o=n(283);return function(e){function n(e,n,r){t(a,e,n,r)}function a(e,t){t.resolve(e)}function i(e,t,n){var r="undefined"==typeof e?new o("timed out after "+n+"ms"):e;t.reject(r)}return e.prototype.delay=function(e){var t=this._beget();return this._handler.fold(n,e,void 0,t._handler),t},e.prototype.timeout=function(e,n){var o=this._beget(),a=o._handler,s=t(i,e,n,o._handler);return this._handler.visit(a,function(e){r.clearTimer(s),this.resolve(e)},function(e){r.clearTimer(s),this.reject(e)},a.notify),o},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){function t(e){throw e}function r(){}var o=n(111).setTimer,a=n(759);return function(e){function n(e){e.handled||(d.push(e),c("Potentially unhandled rejection ["+e.id+"] "+a.formatError(e.value)))}function i(e){var t=d.indexOf(e);t>=0&&(d.splice(t,1),f("Handled previous rejection ["+e.id+"] "+a.formatObject(e.value)))}function s(e,t){p.push(e,t),null===h&&(h=o(l,0))}function l(){for(h=null;p.length>0;)p.shift()(p.shift())}var u,c=r,f=r;"undefined"!=typeof console&&(u=console,c="undefined"!=typeof u.error?function(e){u.error(e)}:function(e){u.log(e)},f="undefined"!=typeof u.info?function(e){u.info(e)}:function(e){u.log(e)}),e.onPotentiallyUnhandledRejection=function(e){s(n,e)},e.onPotentiallyUnhandledRejectionHandled=function(e){s(i,e)},e.onFatalRejection=function(e){s(t,e.value)};var p=[],d=[],h=null;return e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){return function(e){return e.prototype["with"]=e.prototype.withThis=function(e){var t=this._beget(),n=t._handler;return n.receiver=e,this._handler.chain(n,e),t},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){function e(e){var n="object"==typeof e&&null!==e&&(e.stack||e.message)?e.stack||e.message:t(e);return e instanceof Error?n:n+" (WARNING: non-Error used)"}function t(e){var t=String(e);return"[object Object]"===t&&"undefined"!=typeof JSON&&(t=n(e,t)),t}function n(e,t){try{return JSON.stringify(e)}catch(n){return t}}return{formatError:e,formatObject:t,tryStringify:n}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(){function e(e,t,n){return e[n]=t,e}function t(e){return"function"==typeof e?e.bind():Object.create(e)}return function(n,r,o,a){return"undefined"==typeof r&&(r=e),Object.keys(a).reduce(function(e,t){var o=a[t];return"function"==typeof o?r(e,n(o),t):e},"undefined"==typeof o?t(a):o)}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;(function(o){/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(a){"use strict";r=function(){return function(e){function t(e,t){this._handler=e===b?t:n(e)}function n(e){function t(e){o.resolve(e)}function n(e){o.reject(e)}function r(e){o.notify(e)}var o=new x;try{e(t,n,r)}catch(a){n(a)}return o}function r(e){return N(e)?e:new t(b,new C(v(e)))}function a(e){return new t(b,new C(new P(e)))}function i(){return ee}function s(){return new t(b,new x)}function l(e,t){var n=new x(e.receiver,e.join().context);return new t(b,n)}function u(e){return f(H,null,e)}function c(e,t){return f(W,e,t)}function f(e,n,r){function o(t,o,i){i.resolved||p(r,a,t,e(n,o,t),i)}function a(e,t,n){c[e]=t,0===--u&&n.become(new T(c))}for(var i,s="function"==typeof n?o:a,l=new x,u=r.length>>>0,c=new Array(u),f=0;f<r.length&&!l.resolved;++f)i=r[f],void 0!==i||f in r?p(r,s,f,i,l):--u;return 0===u&&l.become(new T(c)),new t(b,l)}function p(e,t,n,r,o){if(F(r)){var a=_(r),i=a.state();0===i?a.fold(t,n,void 0,o):i>0?t(n,a.value,o):(o.become(a),d(e,n+1,a))}else t(n,r,o)}function d(e,t,n){for(var r=t;r<e.length;++r)h(v(e[r]),n)}function h(e,t){if(e!==t){var n=e.state();0===n?e.visit(e,void 0,e._unreport):0>n&&e._unreport()}}function g(e){return"object"!=typeof e||null===e?a(new TypeError("non-iterable passed to race()")):0===e.length?i():1===e.length?r(e[0]):m(e)}function m(e){var n,r,o,a=new x;for(n=0;n<e.length;++n)if(r=e[n],void 0!==r||n in e){if(o=v(r),0!==o.state()){a.become(o),d(e,n+1,o);break}o.visit(a,a.resolve,a.reject)}return new t(b,a)}function v(e){return N(e)?e._handler.join():F(e)?y(e):new T(e)}function _(e){return N(e)?e._handler.join():y(e)}function y(e){try{var t=e.then;return"function"==typeof t?new E(t,e):new T(e)}catch(n){return new P(n)}}function b(){}function w(){}function x(e,n){t.createContext(this,n),this.consumers=void 0,this.receiver=e,this.handler=void 0,this.resolved=!1}function C(e){this.handler=e}function E(e,t){x.call(this),Y.enqueue(new A(e,t,this))}function T(e){t.createContext(this),this.value=e}function P(e){t.createContext(this),this.id=++J,this.value=e,this.handled=!1,this.reported=!1,this._report()}function k(e,t){this.rejection=e,this.context=t}function M(e){this.rejection=e}function S(){return new P(new TypeError("Promise cycle"))}function D(e,t){this.continuation=e,this.handler=t}function R(e,t){this.handler=t,this.value=e}function A(e,t,n){this._then=e,this.thenable=t,this.resolver=n}function I(e,t,n,r,o){try{e.call(t,n,r,o)}catch(a){r(a)}}function O(e,t,n,r){this.f=e,this.z=t,this.c=n,this.to=r,this.resolver=Z,this.receiver=this}function N(e){return e instanceof t}function F(e){return("object"==typeof e||"function"==typeof e)&&null!==e}function L(e,n,r,o){return"function"!=typeof e?o.become(n):(t.enterContext(n),U(e,n.value,r,o),void t.exitContext())}function B(e,n,r,o,a){return"function"!=typeof e?a.become(r):(t.enterContext(r),V(e,n,r.value,o,a),void t.exitContext())}function j(e,n,r,o,a){return"function"!=typeof e?a.notify(n):(t.enterContext(r),z(e,n,o,a),void t.exitContext())}function W(e,t,n){try{return e(t,n)}catch(r){return a(r)}}function U(e,t,n,r){try{r.become(v(e.call(n,t)))}catch(o){r.become(new P(o))}}function V(e,t,n,r,o){try{e.call(r,t,n,o)}catch(a){o.become(new P(a))}}function z(e,t,n,r){try{r.notify(e.call(n,t))}catch(o){r.notify(o)}}function q(e,t){t.prototype=K(e.prototype),t.prototype.constructor=t}function H(e,t){return t}function X(){}function G(){return"undefined"!=typeof o&&null!==o&&"function"==typeof o.emit?function(e,t){return"unhandledRejection"===e?o.emit(e,t.value,t):o.emit(e,t)}:"undefined"!=typeof self&&"function"==typeof CustomEvent?function(e,t,n){var r=!1;try{var o=new n("unhandledRejection");r=o instanceof n}catch(a){}return r?function(e,r){var o=new n(e,{detail:{reason:r.value,key:r},bubbles:!1,cancelable:!0});return!t.dispatchEvent(o)}:e}(X,self,CustomEvent):X}var Y=e.scheduler,Q=G(),K=Object.create||function(e){function t(){}return t.prototype=e,new t};t.resolve=r,t.reject=a,t.never=i,t._defer=s,t._handler=v,t.prototype.then=function(e,t,n){var r=this._handler,o=r.join().state();if("function"!=typeof e&&o>0||"function"!=typeof t&&0>o)return new this.constructor(b,r);var a=this._beget(),i=a._handler;return r.chain(i,r.receiver,e,t,n),a},t.prototype["catch"]=function(e){return this.then(void 0,e)},t.prototype._beget=function(){return l(this._handler,this.constructor)},t.all=u,t.race=g,t._traverse=c,t._visitRemaining=d,b.prototype.when=b.prototype.become=b.prototype.notify=b.prototype.fail=b.prototype._unreport=b.prototype._report=X,b.prototype._state=0,b.prototype.state=function(){return this._state},b.prototype.join=function(){for(var e=this;void 0!==e.handler;)e=e.handler;return e},b.prototype.chain=function(e,t,n,r,o){this.when({resolver:e,receiver:t,fulfilled:n,rejected:r,progress:o})},b.prototype.visit=function(e,t,n,r){this.chain(Z,e,t,n,r)},b.prototype.fold=function(e,t,n,r){this.when(new O(e,t,n,r))},q(b,w),w.prototype.become=function(e){e.fail()};var Z=new w;q(b,x),x.prototype._state=0,x.prototype.resolve=function(e){this.become(v(e))},x.prototype.reject=function(e){this.resolved||this.become(new P(e))},x.prototype.join=function(){if(!this.resolved)return this;for(var e=this;void 0!==e.handler;)if(e=e.handler,e===this)return this.handler=S();return e},x.prototype.run=function(){var e=this.consumers,t=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var n=0;n<e.length;++n)t.when(e[n])},x.prototype.become=function(e){this.resolved||(this.resolved=!0,this.handler=e,void 0!==this.consumers&&Y.enqueue(this),void 0!==this.context&&e._report(this.context))},x.prototype.when=function(e){this.resolved?Y.enqueue(new D(e,this.handler)):void 0===this.consumers?this.consumers=[e]:this.consumers.push(e)},x.prototype.notify=function(e){this.resolved||Y.enqueue(new R(e,this))},x.prototype.fail=function(e){var t="undefined"==typeof e?this.context:e;this.resolved&&this.handler.join().fail(t)},x.prototype._report=function(e){this.resolved&&this.handler.join()._report(e)},x.prototype._unreport=function(){this.resolved&&this.handler.join()._unreport()},q(b,C),C.prototype.when=function(e){Y.enqueue(new D(e,this))},C.prototype._report=function(e){this.join()._report(e)},C.prototype._unreport=function(){this.join()._unreport()},q(x,E),q(b,T),T.prototype._state=1,T.prototype.fold=function(e,t,n,r){B(e,t,this,n,r)},T.prototype.when=function(e){L(e.fulfilled,this,e.receiver,e.resolver)};var J=0;q(b,P),P.prototype._state=-1,P.prototype.fold=function(e,t,n,r){r.become(this)},P.prototype.when=function(e){"function"==typeof e.rejected&&this._unreport(),L(e.rejected,this,e.receiver,e.resolver)},P.prototype._report=function(e){Y.afterQueue(new k(this,e))},P.prototype._unreport=function(){this.handled||(this.handled=!0,Y.afterQueue(new M(this)))},P.prototype.fail=function(e){this.reported=!0,Q("unhandledRejection",this),t.onFatalRejection(this,void 0===e?this.context:e)},k.prototype.run=function(){this.rejection.handled||this.rejection.reported||(this.rejection.reported=!0,Q("unhandledRejection",this.rejection)||t.onPotentiallyUnhandledRejection(this.rejection,this.context))},M.prototype.run=function(){this.rejection.reported&&(Q("rejectionHandled",this.rejection)||t.onPotentiallyUnhandledRejectionHandled(this.rejection))},t.createContext=t.enterContext=t.exitContext=t.onPotentiallyUnhandledRejection=t.onPotentiallyUnhandledRejectionHandled=t.onFatalRejection=X;var $=new b,ee=new t(b,$);return D.prototype.run=function(){this.handler.join().when(this.continuation)},R.prototype.run=function(){var e=this.handler.consumers;if(void 0!==e)for(var t,n=0;n<e.length;++n)t=e[n],j(t.progress,this.value,this.handler,t.receiver,t.resolver)},A.prototype.run=function(){function e(e){r.resolve(e)}function t(e){r.reject(e)}function n(e){r.notify(e)}var r=this.resolver;I(this._then,this.thenable,e,t,n)},O.prototype.fulfilled=function(e){this.f.call(this.c,this.z,e,this.to)},O.prototype.rejected=function(e){this.to.reject(e)},O.prototype.progress=function(e){this.to.notify(e)},t}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))}).call(t,n(77))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){var t=n(764),r=n(763),o=new t(new r);return function(e){return o.monitor(e)}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){function t(){this._previouslyReported=!1}function r(){var e,t,n,r;if("undefined"==typeof console)e=t=o;else{var a=console;"function"==typeof a.error&&"function"==typeof a.dir?(t=function(e){a.error(e)},e=function(e){a.log(e)},"function"==typeof a.groupCollapsed&&(n=function(e){a.groupCollapsed(e)},r=function(){a.groupEnd()})):e=t="undefined"!=typeof a.log&&"undefined"!=typeof JSON?function(e){if("string"!=typeof e)try{e=JSON.stringify(e)}catch(t){}a.log(e)}:o}return{msg:e,warn:t,groupStart:n||t,groupEnd:r||o}}function o(){}var a=n(285),i="[promises] Unhandled rejections: ",s="[promises] All previously unhandled rejections have now been handled";return t.prototype=r(),t.prototype.log=function(e){if(0===e.length)return void(this._previouslyReported&&(this._previouslyReported=!1,this.msg(s)));this._previouslyReported=!0,this.groupStart(i+e.length);try{this._log(e)}finally{this.groupEnd()}},t.prototype._log=function(e){for(var t=0;t<e.length;++t)this.warn(a.format(e[t]))},t}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){function t(e){this.logDelay=0,this.stackFilter=s,this.stackJumpSeparator=i,this.filterDuplicateFrames=!0,this._reporter=e,"function"==typeof e.configurePromiseMonitor&&e.configurePromiseMonitor(this),this._traces=[],this._traceTask=0;var t=this;this._doLogTraces=function(){t._logTraces()}}function r(e,t,n){t.length>1&&(t[0]=n,e.push.apply(e,t))}function o(e,t){return t.filter(function(t){return!e.test(t)})}function a(e){return!e.handler.handled}var i="from execution context:",s=/[\s\(\/\\](node|module|timers)\.js:|when([\/\\]{1,2}(lib|monitor|es6-shim)[\/\\]{1,2}|\.js)|(new\sPromise)\b|(\b(PromiseMonitor|ConsoleReporter|Scheduler|RunHandlerTask|ProgressTask|Promise|.*Handler)\.[\w_]\w\w+\b)|\b(tryCatch\w+|getHandler\w*)\b/i,l=n(111).setTimer,u=n(285),c=[];return t.prototype.monitor=function(e){var t=this;return e.createContext=function(e,n){e.context=t.createContext(e,n)},e.enterContext=function(e){c.push(e.context)},e.exitContext=function(){c.pop()},e.onPotentiallyUnhandledRejection=function(e,n){return t.addTrace(e,n)},e.onPotentiallyUnhandledRejectionHandled=function(e){return t.removeTrace(e)},e.onFatalRejection=function(e,n){return t.fatal(e,n)},this},t.prototype.createContext=function(e,t){var n={parent:t||c[c.length-1],stack:void 0};return u.captureStack(n,e.constructor),n},t.prototype.addTrace=function(e,t){var n,r;for(r=this._traces.length-1;r>=0&&(n=this._traces[r],n.handler!==e);--r);r>=0?n.extraContext=t:this._traces.push({handler:e,extraContext:t}),this.logTraces()},t.prototype.removeTrace=function(){this.logTraces()},t.prototype.fatal=function(e,t){var n=new Error;n.stack=this._createLongTrace(e.value,e.context,t).join("\n"),l(function(){throw n},0)},t.prototype.logTraces=function(){this._traceTask||(this._traceTask=l(this._doLogTraces,this.logDelay))},t.prototype._logTraces=function(){this._traceTask=void 0,this._traces=this._traces.filter(a),this._reporter.log(this.formatTraces(this._traces))},t.prototype.formatTraces=function(e){return e.map(function(e){return this._createLongTrace(e.handler.value,e.handler.context,e.extraContext)},this)},t.prototype._createLongTrace=function(e,t,n){var r=u.parse(e)||[String(e)+" (WARNING: non-Error used)"];return r=o(this.stackFilter,r,0),this._appendContext(r,t),this._appendContext(r,n),this.filterDuplicateFrames?this._removeDuplicates(r):r},t.prototype._removeDuplicates=function(e){var t={},n=this.stackJumpSeparator,r=0;return e.reduceRight(function(e,o,a){return 0===a?e.unshift(o):o===n?r>0&&(e.unshift(o),r=0):t[o]||(t[o]=!0,e.unshift(o),++r),e},[])},t.prototype._appendContext=function(e,t){e.push.apply(e,this._createTrace(t))},t.prototype._createTrace=function(e){for(var t,n=[];e;)t=u.parse(e),t&&(t=o(this.stackFilter,t),r(n,t,this.stackJumpSeparator)),e=e.parent;return n},t}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ -!function(o){"use strict";r=function(e){var t=n(762),r=n(49).Promise;return t(r)}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(11))},function(e,t){function n(e,t,n){var r;return r=t?new o(e,t):new o(e)}var r=function(){return this}(),o=r.WebSocket||r.MozWebSocket;e.exports=o?n:null,o&&(n.prototype=o.prototype)},function(e,t){}]); \ No newline at end of file +!function(o,a,i,s){"use strict";function l(e,t,n){return setTimeout(d(e,n),t)}function u(e,t,n){return Array.isArray(e)?(c(e,n[t],n),!0):!1}function c(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function f(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=o.console&&(o.console.warn||o.console.log);return a&&a.call(o.console,r,n),e.apply(this,arguments)}}function p(e,t,n){var r,o=t.prototype;r=e.prototype=Object.create(o),r.constructor=e,r._super=o,n&&fe(r,n)}function d(e,t){return function(){return e.apply(t,arguments)}}function h(e,t){return typeof e==he?e.apply(t?t[0]||s:s,t):e}function g(e,t){return e===s?t:e}function m(e,t,n){c(b(t),function(t){e.addEventListener(t,n,!1)})}function v(e,t,n){c(b(t),function(t){e.removeEventListener(t,n,!1)})}function _(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function y(e,t){return e.indexOf(t)>-1}function b(e){return e.trim().split(/\s+/g)}function w(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function x(e){return Array.prototype.slice.call(e,0)}function C(e,t,n){for(var r=[],o=[],a=0;a<e.length;){var i=t?e[a][t]:e[a];w(o,i)<0&&r.push(e[a]),o[a]=i,a++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}function E(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),a=0;a<pe.length;){if(n=pe[a],r=n?n+o:t,r in e)return r;a++}return s}function T(){return be++}function P(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}function k(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){h(e.options.enable,[e])&&n.handler(t)},this.init()}function M(e){var t,n=e.options.inputClass;return new(t=n?n:Ce?V:Ee?H:xe?G:U)(e,S)}function S(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,a=t&Re&&r-o===0,i=t&(Ae|Ie)&&r-o===0;n.isFirst=!!a,n.isFinal=!!i,a&&(e.session={}),n.eventType=t,R(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function R(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=I(t)),o>1&&!n.firstMultiple?n.firstMultiple=I(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,i=n.firstMultiple,s=i?i.center:a.center,l=t.center=O(r);t.timeStamp=ve(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=B(s,l),t.distance=L(s,l),D(n,t),t.offsetDirection=N(t.deltaX,t.deltaY);var u=F(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=me(u.x)>me(u.y)?u.x:u.y,t.scale=i?W(i.pointers,r):1,t.rotation=i?j(i.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,A(n,t);var c=e.element;_(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function D(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},a=e.prevInput||{};t.eventType!==Re&&a.eventType!==Ae||(o=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}function A(e,t){var n,r,o,a,i=e.lastInterval||t,l=t.timeStamp-i.timeStamp;if(t.eventType!=Ie&&(l>Se||i.velocity===s)){var u=t.deltaX-i.deltaX,c=t.deltaY-i.deltaY,f=F(l,u,c);r=f.x,o=f.y,n=me(f.x)>me(f.y)?f.x:f.y,a=N(u,c),e.lastInterval=t}else n=i.velocity,r=i.velocityX,o=i.velocityY,a=i.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=a}function I(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:ge(e.pointers[n].clientX),clientY:ge(e.pointers[n].clientY)},n++;return{timeStamp:ve(),pointers:t,center:O(t),deltaX:e.deltaX,deltaY:e.deltaY}}function O(e){var t=e.length;if(1===t)return{x:ge(e[0].clientX),y:ge(e[0].clientY)};for(var n=0,r=0,o=0;t>o;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:ge(n/t),y:ge(r/t)}}function F(e,t,n){return{x:t/e||0,y:n/e||0}}function N(e,t){return e===t?Oe:me(e)>=me(t)?0>e?Fe:Ne:0>t?Le:Be}function L(e,t,n){n||(n=Ve);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function B(e,t,n){n||(n=Ve);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}function j(e,t){return B(t[1],t[0],ze)+B(e[1],e[0],ze)}function W(e,t){return L(t[0],t[1],ze)/L(e[0],e[1],ze)}function U(){this.evEl=He,this.evWin=Xe,this.allow=!0,this.pressed=!1,k.apply(this,arguments)}function V(){this.evEl=Qe,this.evWin=Ke,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function z(){this.evTarget=Je,this.evWin=$e,this.started=!1,k.apply(this,arguments)}function q(e,t){var n=x(e.touches),r=x(e.changedTouches);return t&(Ae|Ie)&&(n=C(n.concat(r),"identifier",!0)),[n,r]}function H(){this.evTarget=tt,this.targetIds={},k.apply(this,arguments)}function X(e,t){var n=x(e.touches),r=this.targetIds;if(t&(Re|De)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,a,i=x(e.changedTouches),s=[],l=this.target;if(a=n.filter(function(e){return _(e.target,l)}),t===Re)for(o=0;o<a.length;)r[a[o].identifier]=!0,o++;for(o=0;o<i.length;)r[i[o].identifier]&&s.push(i[o]),t&(Ae|Ie)&&delete r[i[o].identifier],o++;return s.length?[C(a.concat(s),"identifier",!0),s]:void 0}function G(){k.apply(this,arguments);var e=d(this.handler,this);this.touch=new H(this.manager,e),this.mouse=new U(this.manager,e)}function Y(e,t){this.manager=e,this.set(t)}function Q(e){if(y(e,st))return st;var t=y(e,lt),n=y(e,ut);return t&&n?st:t||n?t?lt:ut:y(e,it)?it:at}function K(e){this.options=fe({},this.defaults,e||{}),this.id=T(),this.manager=null,this.options.enable=g(this.options.enable,!0),this.state=ct,this.simultaneous={},this.requireFail=[]}function Z(e){return e>?"cancel":e&dt?"end":e&pt?"move":e&ft?"start":""}function J(e){return e==Be?"down":e==Le?"up":e==Fe?"left":e==Ne?"right":""}function $(e,t){var n=t.manager;return n?n.get(e):e}function ee(){K.apply(this,arguments)}function te(){ee.apply(this,arguments),this.pX=null,this.pY=null}function ne(){ee.apply(this,arguments)}function re(){K.apply(this,arguments),this._timer=null,this._input=null}function oe(){ee.apply(this,arguments)}function ae(){ee.apply(this,arguments)}function ie(){K.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function se(e,t){return t=t||{},t.recognizers=g(t.recognizers,se.defaults.preset),new le(e,t)}function le(e,t){this.options=fe({},se.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.element=e,this.input=M(this),this.touchAction=new Y(this,this.options.touchAction),ue(this,!0),c(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function ue(e,t){var n=e.element;n.style&&c(e.options.cssProps,function(e,r){n.style[E(n.style,r)]=t?e:""})}function ce(e,t){var n=a.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var fe,pe=["","webkit","Moz","MS","ms","o"],de=a.createElement("div"),he="function",ge=Math.round,me=Math.abs,ve=Date.now;fe="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var _e=f(function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===s)&&(e[r[o]]=t[r[o]]),o++;return e},"extend","Use `assign`."),ye=f(function(e,t){return _e(e,t,!0)},"merge","Use `assign`."),be=1,we=/mobile|tablet|ip(ad|hone|od)|android/i,xe="ontouchstart"in o,Ce=E(o,"PointerEvent")!==s,Ee=xe&&we.test(navigator.userAgent),Te="touch",Pe="pen",ke="mouse",Me="kinect",Se=25,Re=1,De=2,Ae=4,Ie=8,Oe=1,Fe=2,Ne=4,Le=8,Be=16,je=Fe|Ne,We=Le|Be,Ue=je|We,Ve=["x","y"],ze=["clientX","clientY"];k.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(P(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(P(this.element),this.evWin,this.domHandler)}};var qe={mousedown:Re,mousemove:De,mouseup:Ae},He="mousedown",Xe="mousemove mouseup";p(U,k,{handler:function(e){var t=qe[e.type];t&Re&&0===e.button&&(this.pressed=!0),t&De&&1!==e.which&&(t=Ae),this.pressed&&this.allow&&(t&Ae&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:ke,srcEvent:e}))}});var Ge={pointerdown:Re,pointermove:De,pointerup:Ae,pointercancel:Ie,pointerout:Ie},Ye={2:Te,3:Pe,4:ke,5:Me},Qe="pointerdown",Ke="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(Qe="MSPointerDown",Ke="MSPointerMove MSPointerUp MSPointerCancel"),p(V,k,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=Ge[r],a=Ye[e.pointerType]||e.pointerType,i=a==Te,s=w(t,e.pointerId,"pointerId");o&Re&&(0===e.button||i)?0>s&&(t.push(e),s=t.length-1):o&(Ae|Ie)&&(n=!0),0>s||(t[s]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:a,srcEvent:e}),n&&t.splice(s,1))}});var Ze={touchstart:Re,touchmove:De,touchend:Ae,touchcancel:Ie},Je="touchstart",$e="touchstart touchmove touchend touchcancel";p(z,k,{handler:function(e){var t=Ze[e.type];if(t===Re&&(this.started=!0),this.started){var n=q.call(this,e,t);t&(Ae|Ie)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Te,srcEvent:e})}}});var et={touchstart:Re,touchmove:De,touchend:Ae,touchcancel:Ie},tt="touchstart touchmove touchend touchcancel";p(H,k,{handler:function(e){var t=et[e.type],n=X.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:Te,srcEvent:e})}}),p(G,k,{handler:function(e,t,n){var r=n.pointerType==Te,o=n.pointerType==ke;if(r)this.mouse.allow=!1;else if(o&&!this.mouse.allow)return;t&(Ae|Ie)&&(this.mouse.allow=!0),this.callback(e,t,n)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var nt=E(de.style,"touchAction"),rt=nt!==s,ot="compute",at="auto",it="manipulation",st="none",lt="pan-x",ut="pan-y";Y.prototype={set:function(e){e==ot&&(e=this.compute()),rt&&this.manager.element.style&&(this.manager.element.style[nt]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return c(this.manager.recognizers,function(t){h(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),Q(e.join(" "))},preventDefaults:function(e){if(!rt){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var r=this.actions,o=y(r,st),a=y(r,ut),i=y(r,lt);if(o){var s=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(s&&l&&u)return}if(!i||!a)return o||a&&n&je||i&&n&We?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var ct=1,ft=2,pt=4,dt=8,ht=dt,gt=16,mt=32;K.prototype={defaults:{},set:function(e){return fe(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(u(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=$(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return u(e,"dropRecognizeWith",this)?this:(e=$(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(u(e,"requireFailure",this))return this;var t=this.requireFail;return e=$(e,this),-1===w(t,e)&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(u(e,"dropRequireFailure",this))return this;e=$(e,this);var t=w(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,r=this.state;dt>r&&t(n.options.event+Z(r)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),r>=dt&&t(n.options.event+Z(r))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=mt)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(mt|ct)))return!1;e++}return!0},recognize:function(e){var t=fe({},e);return h(this.options.enable,[this,t])?(this.state&(ht|gt|mt)&&(this.state=ct),this.state=this.process(t),void(this.state&(ft|pt|dt|gt)&&this.tryEmit(t))):(this.reset(),void(this.state=mt))},process:function(e){},getTouchAction:function(){},reset:function(){}},p(ee,K,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=t&(ft|pt),o=this.attrTest(e);return r&&(n&Ie||!o)?t|gt:r||o?n&Ae?t|dt:t&ft?t|pt:ft:mt}}),p(te,ee,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ue},getTouchAction:function(){var e=this.options.direction,t=[];return e&je&&t.push(ut),e&We&&t.push(lt),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,a=e.deltaX,i=e.deltaY;return o&t.direction||(t.direction&je?(o=0===a?Oe:0>a?Fe:Ne,n=a!=this.pX,r=Math.abs(e.deltaX)):(o=0===i?Oe:0>i?Le:Be,n=i!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return ee.prototype.attrTest.call(this,e)&&(this.state&ft||!(this.state&ft)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=J(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),p(ne,ee,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[st]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&ft)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),p(re,K,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[at]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(Ae|Ie)&&!o)this.reset();else if(e.eventType&Re)this.reset(),this._timer=l(function(){this.state=ht,this.tryEmit()},t.time,this);else if(e.eventType&Ae)return ht;return mt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===ht&&(e&&e.eventType&Ae?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=ve(),this.manager.emit(this.options.event,this._input)))}}),p(oe,ee,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[st]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&ft)}}),p(ae,ee,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:je|We,pointers:1},getTouchAction:function(){return te.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(je|We)?t=e.overallVelocity:n&je?t=e.overallVelocityX:n&We&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&me(t)>this.options.velocity&&e.eventType&Ae},emit:function(e){var t=J(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),p(ie,K,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[it]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),e.eventType&Re&&0===this.count)return this.failTimeout();if(r&&o&&n){if(e.eventType!=Ae)return this.failTimeout();var a=this.pTime?e.timeStamp-this.pTime<t.interval:!0,i=!this.pCenter||L(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,i&&a?this.count+=1:this.count=1,this._input=e;var s=this.count%t.taps;if(0===s)return this.hasRequireFailures()?(this._timer=l(function(){this.state=ht,this.tryEmit()},t.interval,this),ft):ht}return mt},failTimeout:function(){return this._timer=l(function(){this.state=mt},this.options.interval,this),mt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ht&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),se.VERSION="2.0.6",se.defaults={domEvents:!1,touchAction:ot,enable:!0,inputTarget:null,inputClass:null,preset:[[oe,{enable:!1}],[ne,{enable:!1},["rotate"]],[ae,{direction:je}],[te,{direction:je},["swipe"]],[ie],[ie,{event:"doubletap",taps:2},["tap"]],[re]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var vt=1,_t=2;le.prototype={set:function(e){return fe(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?_t:vt},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,r=this.recognizers,o=t.curRecognizer;(!o||o&&o.state&ht)&&(o=t.curRecognizer=null);for(var a=0;a<r.length;)n=r[a],t.stopped===_t||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&n.state&(ft|pt|dt)&&(o=t.curRecognizer=n),a++}},get:function(e){if(e instanceof K)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(u(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(u(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=w(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){var n=this.handlers;return c(b(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this},off:function(e,t){var n=this.handlers;return c(b(e),function(e){t?n[e]&&n[e].splice(w(n[e],t),1):delete n[e]}),this},emit:function(e,t){this.options.domEvents&&ce(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&ue(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},fe(se,{INPUT_START:Re,INPUT_MOVE:De,INPUT_END:Ae,INPUT_CANCEL:Ie,STATE_POSSIBLE:ct,STATE_BEGAN:ft,STATE_CHANGED:pt,STATE_ENDED:dt,STATE_RECOGNIZED:ht,STATE_CANCELLED:gt,STATE_FAILED:mt,DIRECTION_NONE:Oe,DIRECTION_LEFT:Fe,DIRECTION_RIGHT:Ne,DIRECTION_UP:Le,DIRECTION_DOWN:Be,DIRECTION_HORIZONTAL:je,DIRECTION_VERTICAL:We,DIRECTION_ALL:Ue,Manager:le,Input:k,TouchAction:Y,TouchInput:H,MouseInput:U,PointerEventInput:V,TouchMouseInput:G,SingleTouchInput:z,Recognizer:K,AttrRecognizer:ee,Tap:ie,Pan:te,Swipe:ae,Pinch:ne,Rotate:oe,Press:re,on:m,off:v,each:c,merge:ye,extend:_e,assign:fe,inherit:p,bindFn:d,prefixed:E});var yt="undefined"!=typeof o?o:"undefined"!=typeof self?self:{};yt.Hammer=se,r=function(){return se}.call(t,n,t,e),!(r!==s&&(e.exports=r))}(window,document,"Hammer")},function(e,t){e.exports={_args:[["autobahn@0.9.6","/Users/seb/Documents/code/paraviewweb"]],_from:"autobahn@0.9.6",_id:"autobahn@0.9.6",_inCache:!0,_installable:!0,_location:"/autobahn",_npmUser:{email:"tobias.oberstein@tavendo.de",name:"oberstet"},_npmVersion:"1.3.21",_phantomChildren:{},_requested:{name:"autobahn",raw:"autobahn@0.9.6",rawSpec:"0.9.6",scope:null,spec:"0.9.6",type:"version"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/autobahn/-/autobahn-0.9.6.tgz",_shasum:"51efec0cdb056872a1c698275260f67d7a3d32e3",_shrinkwrap:null,_spec:"autobahn@0.9.6",_where:"/Users/seb/Documents/code/paraviewweb",author:{name:"Tavendo GmbH"},bugs:{url:"https://github.com/tavendo/AutobahnJS/issues"},dependencies:{"crypto-js":">= 3.1.2-2",when:">= 2.8.0",ws:">= 0.4.31"},description:"An implementation of The Web Application Messaging Protocol (WAMP).",devDependencies:{browserify:">= 3.28.1",nodeunit:">= 0.8.6"},directories:{},dist:{shasum:"51efec0cdb056872a1c698275260f67d7a3d32e3",tarball:"http://registry.npmjs.org/autobahn/-/autobahn-0.9.6.tgz"},homepage:"https://github.com/tavendo/AutobahnJS",keywords:["PubSub","RPC","WAMP","WebSocket"],license:"MIT",main:"index.js",maintainers:[{name:"oberstet",email:"tobias.oberstein@tavendo.de"}],name:"autobahn",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"git://github.com/tavendo/AutobahnJS.git"},scripts:{test:"nodeunit test/test.js"},version:"0.9.6"}},function(e,t,n){var r;(function(e,o){(function(){function a(e,t){if(e!==t){var n=null===e,r=e===k,o=e===e,a=null===t,i=t===k,s=t===t;if(e>t&&!a||!o||n&&!i&&s||r&&s)return 1;if(t>e&&!n||!s||a&&!r&&o||i&&o)return-1}return 0}function i(e,t,n){for(var r=e.length,o=n?r:-1;n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function s(e,t,n){if(t!==t)return _(e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function l(e){return"function"==typeof e||!1}function u(e){return null==e?"":e+""}function c(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}function f(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function p(e,t){return a(e.criteria,t.criteria)||e.index-t.index}function d(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,l=n.length;++r<s;){var u=a(o[r],i[r]);if(u){if(r>=l)return u;var c=n[r];return u*("asc"===c||c===!0?1:-1)}}return e.index-t.index}function h(e){return Xe[e]}function g(e){return Ge[e]}function m(e,t,n){return t?e=Ke[e]:n&&(e=Ze[e]),"\\"+e}function v(e){return"\\"+Ze[e]}function _(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var a=e[o];if(a!==a)return o}return-1}function y(e){return!!e&&"object"==typeof e}function b(e){return 160>=e&&e>=9&&13>=e||32==e||160==e||5760==e||6158==e||e>=8192&&(8202>=e||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function w(e,t){for(var n=-1,r=e.length,o=-1,a=[];++n<r;)e[n]===t&&(e[n]=X,a[++o]=n);return a}function x(e,t){for(var n,r=-1,o=e.length,a=-1,i=[];++r<o;){var s=e[r],l=t?t(s,r,e):s;r&&n===l||(n=l,i[++a]=s)}return i}function C(e){for(var t=-1,n=e.length;++t<n&&b(e.charCodeAt(t)););return t}function E(e){for(var t=e.length;t--&&b(e.charCodeAt(t)););return t}function T(e){return Ye[e]}function P(e){function t(e){if(y(e)&&!Ss(e)&&!(e instanceof o)){if(e instanceof r)return e;if(ti.call(e,"__chain__")&&ti.call(e,"__wrapped__"))return dr(e)}return new r(e)}function n(){}function r(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function o(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mi,this.__views__=[]}function b(){var e=new o(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function $(){if(this.__filtered__){var e=new o(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function re(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ss(e),r=0>t,o=n?e.length:0,a=Xn(0,o,this.__views__),i=a.start,s=a.end,l=s-i,u=r?s:i-1,c=this.__iteratees__,f=c.length,p=0,d=Ci(l,this.__takeCount__);if(!n||V>o||o==l&&d==l)return nn(r&&n?e.reverse():e,this.__actions__);var h=[];e:for(;l--&&d>p;){u+=t;for(var g=-1,m=e[u];++g<f;){var v=c[g],_=v.iteratee,y=v.type,b=_(m);if(y==q)m=b;else if(!b){if(y==z)continue e;break e}}h[p++]=m}return h}function ae(){this.__data__={}}function Xe(e){return this.has(e)&&delete this.__data__[e]}function Ge(e){return"__proto__"==e?k:this.__data__[e]}function Ye(e){return"__proto__"!=e&&ti.call(this.__data__,e)}function Qe(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function Ke(e){var t=e?e.length:0;for(this.data={hash:vi(null),set:new fi};t--;)this.push(e[t])}function Ze(e,t){var n=e.data,r="string"==typeof t||Fo(t)?n.set.has(t):n.hash[t];return r?0:-1}function Je(e){var t=this.data;"string"==typeof e||Fo(e)?t.set.add(e):t.hash[e]=!0}function $e(e,t){for(var n=-1,r=e.length,o=-1,a=t.length,i=Ua(r+a);++n<r;)i[n]=e[n];for(;++o<a;)i[n++]=t[o];return i}function et(e,t){var n=-1,r=e.length;for(t||(t=Ua(r));++n<r;)t[n]=e[n];return t}function tt(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nt(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function at(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function it(e,t,n,r){for(var o=-1,a=e.length,i=r,s=i;++o<a;){var l=e[o],u=+t(l);n(u,i)&&(i=u,s=l)}return s}function st(e,t){for(var n=-1,r=e.length,o=-1,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[++o]=i)}return a}function lt(e,t){for(var n=-1,r=e.length,o=Ua(r);++n<r;)o[n]=t(e[n],n,e);return o}function ut(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function ct(e,t,n,r){var o=-1,a=e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function ft(e,t,n,r){var o=e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function pt(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function dt(e,t){for(var n=e.length,r=0;n--;)r+=+t(e[n])||0;return r}function ht(e,t){return e===k?t:e}function gt(e,t,n,r){return e!==k&&ti.call(r,n)?e:t}function mt(e,t,n){for(var r=-1,o=Ws(t),a=o.length;++r<a;){var i=o[r],s=e[i],l=n(s,t[i],i,e,t);(l===l?l===s:s!==s)&&(s!==k||i in e)||(e[i]=l)}return e}function vt(e,t){return null==t?e:yt(t,Ws(t),e)}function _t(e,t){for(var n=-1,r=null==e,o=!r&&Zn(e),a=o?e.length:0,i=t.length,s=Ua(i);++n<i;){var l=t[n];o?s[n]=Jn(l,a)?e[l]:k:s[n]=r?k:e[l]}return s}function yt(e,t,n){n||(n={});for(var r=-1,o=t.length;++r<o;){var a=t[r];n[a]=e[a]}return n}function bt(e,t,n){var r=typeof e;return"function"==r?t===k?e:an(e,t,n):null==e?Ma:"object"==r?jt(e):t===k?Oa(e):Wt(e,t)}function wt(e,t,n,r,o,a,i){var s;if(n&&(s=o?n(e,r,o):n(e)),s!==k)return s;if(!Fo(e))return e;var l=Ss(e);if(l){if(s=Gn(e),!t)return et(e,s)}else{var u=ri.call(e),c=u==J;if(u!=te&&u!=G&&(!c||o))return He[u]?Qn(e,u,t):o?e:{};if(s=Yn(c?{}:e),!t)return vt(s,e)}a||(a=[]),i||(i=[]);for(var f=a.length;f--;)if(a[f]==e)return i[f];return a.push(e),i.push(s),(l?tt:Dt)(e,function(r,o){s[o]=wt(r,t,n,o,e,a,i)}),s}function xt(e,t,n){if("function"!=typeof e)throw new Ka(H);return pi(function(){e.apply(k,n)},t)}function Ct(e,t){var n=e?e.length:0,r=[];if(!n)return r;var o=-1,a=zn(),i=a==s,l=i&&t.length>=V?gn(t):null,u=t.length;l&&(a=Ze,i=!1,t=l);e:for(;++o<n;){var c=e[o];if(i&&c===c){for(var f=u;f--;)if(t[f]===c)continue e;r.push(c)}else a(t,c,0)<0&&r.push(c)}return r}function Et(e,t){var n=!0;return Ni(e,function(e,r,o){return n=!!t(e,r,o)}),n}function Tt(e,t,n,r){var o=r,a=o;return Ni(e,function(e,i,s){var l=+t(e,i,s);(n(l,o)||l===r&&l===a)&&(o=l,a=e)}),a}function Pt(e,t,n,r){var o=e.length;for(n=null==n?0:+n||0,0>n&&(n=-n>o?0:o+n),r=r===k||r>o?o:+r||0,0>r&&(r+=o),o=n>r?0:r>>>0,n>>>=0;o>n;)e[n++]=t;return e}function kt(e,t){var n=[];return Ni(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Mt(e,t,n,r){var o;return n(e,function(e,n,a){return t(e,n,a)?(o=r?n:e,!1):void 0}),o}function St(e,t,n,r){r||(r=[]);for(var o=-1,a=e.length;++o<a;){var i=e[o];y(i)&&Zn(i)&&(n||Ss(i)||Po(i))?t?St(i,t,n,r):ut(r,i):n||(r[r.length]=i)}return r}function Rt(e,t){return Bi(e,t,ta)}function Dt(e,t){return Bi(e,t,Ws)}function At(e,t){return ji(e,t,Ws)}function It(e,t){for(var n=-1,r=t.length,o=-1,a=[];++n<r;){var i=t[n];Oo(e[i])&&(a[++o]=i)}return a}function Ot(e,t,n){if(null!=e){n!==k&&n in fr(e)&&(t=[n]);for(var r=0,o=t.length;null!=e&&o>r;)e=e[t[r++]];return r&&r==o?e:k}}function Ft(e,t,n,r,o,a){return e===t?!0:null==e||null==t||!Fo(e)&&!y(t)?e!==e&&t!==t:Nt(e,t,Ft,n,r,o,a)}function Nt(e,t,n,r,o,a,i){var s=Ss(e),l=Ss(t),u=Y,c=Y;s||(u=ri.call(e),u==G?u=te:u!=te&&(s=qo(e))),l||(c=ri.call(t),c==G?c=te:c!=te&&(l=qo(t)));var f=u==te,p=c==te,d=u==c;if(d&&!s&&!f)return jn(e,t,u);if(!o){var h=f&&ti.call(e,"__wrapped__"),g=p&&ti.call(t,"__wrapped__");if(h||g)return n(h?e.value():e,g?t.value():t,r,o,a,i)}if(!d)return!1;a||(a=[]),i||(i=[]);for(var m=a.length;m--;)if(a[m]==e)return i[m]==t;a.push(e),i.push(t);var v=(s?Bn:Wn)(e,t,n,r,o,a,i);return a.pop(),i.pop(),v}function Lt(e,t,n){var r=t.length,o=r,a=!n;if(null==e)return!o;for(e=fr(e);r--;){var i=t[r];if(a&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++r<o;){i=t[r];var s=i[0],l=e[s],u=i[1];if(a&&i[2]){if(l===k&&!(s in e))return!1}else{var c=n?n(l,u,s):k;if(!(c===k?Ft(u,l,n,!0):c))return!1}}return!0}function Bt(e,t){var n=-1,r=Zn(e)?Ua(e.length):[];return Ni(e,function(e,o,a){r[++n]=t(e,o,a)}),r}function jt(e){var t=qn(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:e[n]===r&&(r!==k||n in fr(e))}}return function(e){return Lt(e,t)}}function Wt(e,t){var n=Ss(e),r=er(e)&&rr(t),o=e+"";return e=pr(e),function(a){if(null==a)return!1;var i=o;if(a=fr(a),(n||!r)&&!(i in a)){if(a=1==e.length?a:Ot(a,Yt(e,0,-1)),null==a)return!1;i=Pr(e),a=fr(a)}return a[i]===t?t!==k||i in a:Ft(t,a[i],k,!0)}}function Ut(e,t,n,r,o){if(!Fo(e))return e;var a=Zn(t)&&(Ss(t)||qo(t)),i=a?k:Ws(t);return tt(i||t,function(s,l){if(i&&(l=s,s=t[l]),y(s))r||(r=[]),o||(o=[]),Vt(e,t,l,Ut,n,r,o);else{var u=e[l],c=n?n(u,s,l,e,t):k,f=c===k;f&&(c=s),c===k&&(!a||l in e)||!f&&(c===c?c===u:u!==u)||(e[l]=c)}}),e}function Vt(e,t,n,r,o,a,i){for(var s=a.length,l=t[n];s--;)if(a[s]==l)return void(e[n]=i[s]);var u=e[n],c=o?o(u,l,n,e,t):k,f=c===k;f&&(c=l,Zn(l)&&(Ss(l)||qo(l))?c=Ss(u)?u:Zn(u)?et(u):[]:Uo(l)||Po(l)?c=Po(u)?Qo(u):Uo(u)?u:{}:f=!1),a.push(l),i.push(c),f?e[n]=r(c,l,o,a,i):(c===c?c!==u:u===u)&&(e[n]=c)}function zt(e){return function(t){return null==t?k:t[e]}}function qt(e){var t=e+"";return e=pr(e),function(n){return Ot(n,e,t)}}function Ht(e,t){for(var n=e?t.length:0;n--;){var r=t[n];if(r!=o&&Jn(r)){var o=r;di.call(e,r,1)}}return e}function Xt(e,t){return e+_i(Pi()*(t-e+1))}function Gt(e,t,n,r,o){return o(e,function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)}),n}function Yt(e,t,n){var r=-1,o=e.length;t=null==t?0:+t||0,0>t&&(t=-t>o?0:o+t),n=n===k||n>o?o:+n||0,0>n&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Ua(o);++r<o;)a[r]=e[r+t];return a}function Qt(e,t){var n;return Ni(e,function(e,r,o){return n=t(e,r,o),!n}),!!n}function Kt(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Zt(e,t,n){var r=Un(),o=-1;t=lt(t,function(e){return r(e)});var a=Bt(e,function(e){var n=lt(t,function(t){return t(e)});return{criteria:n,index:++o,value:e}});return Kt(a,function(e,t){return d(e,t,n)})}function Jt(e,t){var n=0;return Ni(e,function(e,r,o){n+=+t(e,r,o)||0}),n}function $t(e,t){var n=-1,r=zn(),o=e.length,a=r==s,i=a&&o>=V,l=i?gn():null,u=[];l?(r=Ze,a=!1):(i=!1,l=t?[]:u);e:for(;++n<o;){var c=e[n],f=t?t(c,n,e):c;if(a&&c===c){for(var p=l.length;p--;)if(l[p]===f)continue e;t&&l.push(f),u.push(c)}else r(l,f,0)<0&&((t||i)&&l.push(f),u.push(c))}return u}function en(e,t){for(var n=-1,r=t.length,o=Ua(r);++n<r;)o[n]=e[t[n]];return o}function tn(e,t,n,r){for(var o=e.length,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?Yt(e,r?0:a,r?a+1:o):Yt(e,r?a+1:0,r?o:a)}function nn(e,t){var n=e;n instanceof o&&(n=n.value());for(var r=-1,a=t.length;++r<a;){var i=t[r];n=i.func.apply(i.thisArg,ut([n],i.args))}return n}function rn(e,t,n){var r=0,o=e?e.length:r;if("number"==typeof t&&t===t&&Di>=o){for(;o>r;){var a=r+o>>>1,i=e[a];(n?t>=i:t>i)&&null!==i?r=a+1:o=a}return o}return on(e,t,Ma,n)}function on(e,t,n,r){t=n(t);for(var o=0,a=e?e.length:0,i=t!==t,s=null===t,l=t===k;a>o;){var u=_i((o+a)/2),c=n(e[u]),f=c!==k,p=c===c;if(i)var d=p||r;else d=s?p&&f&&(r||null!=c):l?p&&(r||f):null==c?!1:r?t>=c:t>c; +d?o=u+1:a=u}return Ci(a,Ri)}function an(e,t,n){if("function"!=typeof e)return Ma;if(t===k)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,a){return e.call(t,n,r,o,a)};case 5:return function(n,r,o,a,i){return e.call(t,n,r,o,a,i)}}return function(){return e.apply(t,arguments)}}function sn(e){var t=new ii(e.byteLength),n=new hi(t);return n.set(new hi(e)),t}function ln(e,t,n){for(var r=n.length,o=-1,a=xi(e.length-r,0),i=-1,s=t.length,l=Ua(s+a);++i<s;)l[i]=t[i];for(;++o<r;)l[n[o]]=e[o];for(;a--;)l[i++]=e[o++];return l}function un(e,t,n){for(var r=-1,o=n.length,a=-1,i=xi(e.length-o,0),s=-1,l=t.length,u=Ua(i+l);++a<i;)u[a]=e[a];for(var c=a;++s<l;)u[c+s]=t[s];for(;++r<o;)u[c+n[r]]=e[a++];return u}function cn(e,t){return function(n,r,o){var a=t?t():{};if(r=Un(r,o,3),Ss(n))for(var i=-1,s=n.length;++i<s;){var l=n[i];e(a,l,r(l,i,n),n)}else Ni(n,function(t,n,o){e(a,t,r(t,n,o),o)});return a}}function fn(e){return _o(function(t,n){var r=-1,o=null==t?0:n.length,a=o>2?n[o-2]:k,i=o>2?n[2]:k,s=o>1?n[o-1]:k;for("function"==typeof a?(a=an(a,s,5),o-=2):(a="function"==typeof s?s:k,o-=a?1:0),i&&$n(n[0],n[1],i)&&(a=3>o?k:a,o=1);++r<o;){var l=n[r];l&&e(t,l,a)}return t})}function pn(e,t){return function(n,r){var o=n?Vi(n):0;if(!nr(o))return e(n,r);for(var a=t?o:-1,i=fr(n);(t?a--:++a<o)&&r(i[a],a,i)!==!1;);return n}}function dn(e){return function(t,n,r){for(var o=fr(t),a=r(t),i=a.length,s=e?i:-1;e?s--:++s<i;){var l=a[s];if(n(o[l],l,o)===!1)break}return t}}function hn(e,t){function n(){var o=this&&this!==rt&&this instanceof n?r:e;return o.apply(t,arguments)}var r=vn(e);return n}function gn(e){return vi&&fi?new Ke(e):null}function mn(e){return function(t){for(var n=-1,r=Ta(fa(t)),o=r.length,a="";++n<o;)a=e(a,r[n],n);return a}}function vn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fi(e.prototype),r=e.apply(n,t);return Fo(r)?r:n}}function _n(e){function t(n,r,o){o&&$n(n,r,o)&&(r=k);var a=Ln(n,e,k,k,k,k,k,r);return a.placeholder=t.placeholder,a}return t}function yn(e,t){return _o(function(n){var r=n[0];return null==r?r:(n.push(t),e.apply(k,n))})}function bn(e,t){return function(n,r,o){if(o&&$n(n,r,o)&&(r=k),r=Un(r,o,3),1==r.length){n=Ss(n)?n:cr(n);var a=it(n,r,e,t);if(!n.length||a!==t)return a}return Tt(n,r,e,t)}}function wn(e,t){return function(n,r,o){if(r=Un(r,o,3),Ss(n)){var a=i(n,r,t);return a>-1?n[a]:k}return Mt(n,r,e)}}function xn(e){return function(t,n,r){return t&&t.length?(n=Un(n,r,3),i(t,n,e)):-1}}function Cn(e){return function(t,n,r){return n=Un(n,r,3),Mt(t,n,e,!0)}}function En(e){return function(){for(var t,n=arguments.length,o=e?n:-1,a=0,i=Ua(n);e?o--:++o<n;){var s=i[a++]=arguments[o];if("function"!=typeof s)throw new Ka(H);!t&&r.prototype.thru&&"wrapper"==Vn(s)&&(t=new r([],!0))}for(o=t?-1:n;++o<n;){s=i[o];var l=Vn(s),u="wrapper"==l?Ui(s):k;t=u&&tr(u[0])&&u[1]==(N|A|O|L)&&!u[4].length&&1==u[9]?t[Vn(u[0])].apply(t,u[3]):1==s.length&&tr(s)?t[l]():t.thru(s)}return function(){var e=arguments,r=e[0];if(t&&1==e.length&&Ss(r)&&r.length>=V)return t.plant(r).value();for(var o=0,a=n?i[o].apply(this,e):r;++o<n;)a=i[o].call(this,a);return a}}}function Tn(e,t){return function(n,r,o){return"function"==typeof r&&o===k&&Ss(n)?e(n,r):t(n,an(r,o,3))}}function Pn(e){return function(t,n,r){return"function"==typeof n&&r===k||(n=an(n,r,3)),e(t,n,ta)}}function kn(e){return function(t,n,r){return"function"==typeof n&&r===k||(n=an(n,r,3)),e(t,n)}}function Mn(e){return function(t,n,r){var o={};return n=Un(n,r,3),Dt(t,function(t,r,a){var i=n(t,r,a);r=e?i:r,t=e?t:i,o[r]=t}),o}}function Sn(e){return function(t,n,r){return t=u(t),(e?t:"")+In(t,n,r)+(e?"":t)}}function Rn(e){var t=_o(function(n,r){var o=w(r,t.placeholder);return Ln(n,e,k,r,o)});return t}function Dn(e,t){return function(n,r,o,a){var i=arguments.length<3;return"function"==typeof r&&a===k&&Ss(n)?e(n,r,o,i):Gt(n,Un(r,a,4),o,i,t)}}function An(e,t,n,r,o,a,i,s,l,u){function c(){for(var _=arguments.length,y=_,b=Ua(_);y--;)b[y]=arguments[y];if(r&&(b=ln(b,r,o)),a&&(b=un(b,a,i)),h||m){var x=c.placeholder,C=w(b,x);if(_-=C.length,u>_){var E=s?et(s):k,T=xi(u-_,0),P=h?C:k,M=h?k:C,D=h?b:k,A=h?k:b;t|=h?O:F,t&=~(h?F:O),g||(t&=~(S|R));var I=[e,t,n,D,P,A,M,E,l,T],N=An.apply(k,I);return tr(e)&&zi(N,I),N.placeholder=x,N}}var L=p?n:this,B=d?L[e]:e;return s&&(b=lr(b,s)),f&&l<b.length&&(b.length=l),this&&this!==rt&&this instanceof c&&(B=v||vn(e)),B.apply(L,b)}var f=t&N,p=t&S,d=t&R,h=t&A,g=t&D,m=t&I,v=d?k:vn(e);return c}function In(e,t,n){var r=e.length;if(t=+t,r>=t||!bi(t))return"";var o=t-r;return n=null==n?" ":n+"",va(n,mi(o/n.length)).slice(0,o)}function On(e,t,n,r){function o(){for(var t=-1,s=arguments.length,l=-1,u=r.length,c=Ua(u+s);++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++t];var f=this&&this!==rt&&this instanceof o?i:e;return f.apply(a?n:this,c)}var a=t&S,i=vn(e);return o}function Fn(e){var t=Ha[e];return function(e,n){return n=n===k?0:+n||0,n?(n=ui(10,n),t(e*n)/n):t(e)}}function Nn(e){return function(t,n,r,o){var a=Un(r);return null==r&&a===bt?rn(t,n,e):on(t,n,a(r,o,1),e)}}function Ln(e,t,n,r,o,a,i,s){var l=t&R;if(!l&&"function"!=typeof e)throw new Ka(H);var u=r?r.length:0;if(u||(t&=~(O|F),r=o=k),u-=o?o.length:0,t&F){var c=r,f=o;r=o=k}var p=l?k:Ui(e),d=[e,t,n,r,o,c,f,a,i,s];if(p&&(or(d,p),t=d[1],s=d[9]),d[9]=null==s?l?0:e.length:xi(s-u,0)||0,t==S)var h=hn(d[0],d[2]);else h=t!=O&&t!=(S|O)||d[4].length?An.apply(k,d):On.apply(k,d);var g=p?Wi:zi;return g(h,d)}function Bn(e,t,n,r,o,a,i){var s=-1,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;for(;++s<l;){var c=e[s],f=t[s],p=r?r(o?f:c,o?c:f,s):k;if(p!==k){if(p)continue;return!1}if(o){if(!pt(t,function(e){return c===e||n(c,e,r,o,a,i)}))return!1}else if(c!==f&&!n(c,f,r,o,a,i))return!1}return!0}function jn(e,t,n){switch(n){case Q:case K:return+e==+t;case Z:return e.name==t.name&&e.message==t.message;case ee:return e!=+e?t!=+t:e==+t;case ne:case oe:return e==t+""}return!1}function Wn(e,t,n,r,o,a,i){var s=Ws(e),l=s.length,u=Ws(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var p=s[f];if(!(o?p in t:ti.call(t,p)))return!1}for(var d=o;++f<l;){p=s[f];var h=e[p],g=t[p],m=r?r(o?g:h,o?h:g,p):k;if(!(m===k?n(h,g,r,o,a,i):m))return!1;d||(d="constructor"==p)}if(!d){var v=e.constructor,_=t.constructor;if(v!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof _&&_ instanceof _))return!1}return!0}function Un(e,n,r){var o=t.callback||Pa;return o=o===Pa?bt:o,r?o(e,n,r):o}function Vn(e){for(var t=e.name,n=Oi[t],r=n?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function zn(e,n,r){var o=t.indexOf||Er;return o=o===Er?s:o,e?o(e,n,r):o}function qn(e){for(var t=na(e),n=t.length;n--;)t[n][2]=rr(t[n][1]);return t}function Hn(e,t){var n=null==e?k:e[t];return Bo(n)?n:k}function Xn(e,t,n){for(var r=-1,o=n.length;++r<o;){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=Ci(t,e+i);break;case"takeRight":e=xi(e,t-i)}}return{start:e,end:t}}function Gn(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ti.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Yn(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Ga),new t}function Qn(e,t,n){var r=e.constructor;switch(t){case ie:return sn(e);case Q:case K:return new r(+e);case se:case le:case ue:case ce:case fe:case pe:case de:case he:case ge:var o=e.buffer;return new r(n?sn(o):o,e.byteOffset,e.length);case ee:case oe:return new r(e);case ne:var a=new r(e.source,Oe.exec(e));a.lastIndex=e.lastIndex}return a}function Kn(e,t,n){null==e||er(t,e)||(t=pr(t),e=1==t.length?e:Ot(e,Yt(t,0,-1)),t=Pr(t));var r=null==e?e:e[t];return null==r?k:r.apply(e,n)}function Zn(e){return null!=e&&nr(Vi(e))}function Jn(e,t){return e="number"==typeof e||Le.test(e)?+e:-1,t=null==t?Ai:t,e>-1&&e%1==0&&t>e}function $n(e,t,n){if(!Fo(n))return!1;var r=typeof t;if("number"==r?Zn(n)&&Jn(t,n.length):"string"==r&&t in n){var o=n[t];return e===e?e===o:o!==o}return!1}function er(e,t){var n=typeof e;if("string"==n&&ke.test(e)||"number"==n)return!0;if(Ss(e))return!1;var r=!Pe.test(e);return r||null!=t&&e in fr(t)}function tr(e){var n=Vn(e);if(!(n in o.prototype))return!1;var r=t[n];if(e===r)return!0;var a=Ui(r);return!!a&&e===a[0]}function nr(e){return"number"==typeof e&&e>-1&&e%1==0&&Ai>=e}function rr(e){return e===e&&!Fo(e)}function or(e,t){var n=e[1],r=t[1],o=n|r,a=N>o,i=r==N&&n==A||r==N&&n==L&&e[7].length<=t[8]||r==(N|L)&&n==A;if(!a&&!i)return e;r&S&&(e[2]=t[2],o|=n&S?0:D);var s=t[3];if(s){var l=e[3];e[3]=l?ln(l,s,t[4]):et(s),e[4]=l?w(e[3],X):et(t[4])}return s=t[5],s&&(l=e[5],e[5]=l?un(l,s,t[6]):et(s),e[6]=l?w(e[5],X):et(t[6])),s=t[7],s&&(e[7]=et(s)),r&N&&(e[8]=null==e[8]?t[8]:Ci(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function ar(e,t){return e===k?t:Rs(e,t,ar)}function ir(e,t){e=fr(e);for(var n=-1,r=t.length,o={};++n<r;){var a=t[n];a in e&&(o[a]=e[a])}return o}function sr(e,t){var n={};return Rt(e,function(e,r,o){t(e,r,o)&&(n[r]=e)}),n}function lr(e,t){for(var n=e.length,r=Ci(t.length,n),o=et(e);r--;){var a=t[r];e[r]=Jn(a,n)?o[a]:k}return e}function ur(e){for(var t=ta(e),n=t.length,r=n&&e.length,o=!!r&&nr(r)&&(Ss(e)||Po(e)),a=-1,i=[];++a<n;){var s=t[a];(o&&Jn(s,r)||ti.call(e,s))&&i.push(s)}return i}function cr(e){return null==e?[]:Zn(e)?Fo(e)?e:Ga(e):ia(e)}function fr(e){return Fo(e)?e:Ga(e)}function pr(e){if(Ss(e))return e;var t=[];return u(e).replace(Me,function(e,n,r,o){t.push(r?o.replace(Ae,"$1"):n||e)}),t}function dr(e){return e instanceof o?e.clone():new r(e.__wrapped__,e.__chain__,et(e.__actions__))}function hr(e,t,n){t=(n?$n(e,t,n):null==t)?1:xi(_i(t)||1,1);for(var r=0,o=e?e.length:0,a=-1,i=Ua(mi(o/t));o>r;)i[++a]=Yt(e,r,r+=t);return i}function gr(e){for(var t=-1,n=e?e.length:0,r=-1,o=[];++t<n;){var a=e[t];a&&(o[++r]=a)}return o}function mr(e,t,n){var r=e?e.length:0;return r?((n?$n(e,t,n):null==t)&&(t=1),Yt(e,0>t?0:t)):[]}function vr(e,t,n){var r=e?e.length:0;return r?((n?$n(e,t,n):null==t)&&(t=1),t=r-(+t||0),Yt(e,0,0>t?0:t)):[]}function _r(e,t,n){return e&&e.length?tn(e,Un(t,n,3),!0,!0):[]}function yr(e,t,n){return e&&e.length?tn(e,Un(t,n,3),!0):[]}function br(e,t,n,r){var o=e?e.length:0;return o?(n&&"number"!=typeof n&&$n(e,t,n)&&(n=0,r=o),Pt(e,t,n,r)):[]}function wr(e){return e?e[0]:k}function xr(e,t,n){var r=e?e.length:0;return n&&$n(e,t,n)&&(t=!1),r?St(e,t):[]}function Cr(e){var t=e?e.length:0;return t?St(e,!0):[]}function Er(e,t,n){var r=e?e.length:0;if(!r)return-1;if("number"==typeof n)n=0>n?xi(r+n,0):n;else if(n){var o=rn(e,t);return r>o&&(t===t?t===e[o]:e[o]!==e[o])?o:-1}return s(e,t,n||0)}function Tr(e){return vr(e,1)}function Pr(e){var t=e?e.length:0;return t?e[t-1]:k}function kr(e,t,n){var r=e?e.length:0;if(!r)return-1;var o=r;if("number"==typeof n)o=(0>n?xi(r+n,0):Ci(n||0,r-1))+1;else if(n){o=rn(e,t,!0)-1;var a=e[o];return(t===t?t===a:a!==a)?o:-1}if(t!==t)return _(e,o,!0);for(;o--;)if(e[o]===t)return o;return-1}function Mr(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var n=0,r=zn(),o=e.length;++n<o;)for(var a=0,i=e[n];(a=r(t,i,a))>-1;)di.call(t,a,1);return t}function Sr(e,t,n){var r=[];if(!e||!e.length)return r;var o=-1,a=[],i=e.length;for(t=Un(t,n,3);++o<i;){var s=e[o];t(s,o,e)&&(r.push(s),a.push(o))}return Ht(e,a),r}function Rr(e){return mr(e,1)}function Dr(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&$n(e,t,n)&&(t=0,n=r),Yt(e,t,n)):[]}function Ar(e,t,n){var r=e?e.length:0;return r?((n?$n(e,t,n):null==t)&&(t=1),Yt(e,0,0>t?0:t)):[]}function Ir(e,t,n){var r=e?e.length:0;return r?((n?$n(e,t,n):null==t)&&(t=1),t=r-(+t||0),Yt(e,0>t?0:t)):[]}function Or(e,t,n){return e&&e.length?tn(e,Un(t,n,3),!1,!0):[]}function Fr(e,t,n){return e&&e.length?tn(e,Un(t,n,3)):[]}function Nr(e,t,n,r){var o=e?e.length:0;if(!o)return[];null!=t&&"boolean"!=typeof t&&(r=n,n=$n(e,t,r)?k:t,t=!1);var a=Un();return null==n&&a===bt||(n=a(n,r,3)),t&&zn()==s?x(e,n):$t(e,n)}function Lr(e){if(!e||!e.length)return[];var t=-1,n=0;e=st(e,function(e){return Zn(e)?(n=xi(e.length,n),!0):void 0});for(var r=Ua(n);++t<n;)r[t]=lt(e,zt(t));return r}function Br(e,t,n){var r=e?e.length:0;if(!r)return[];var o=Lr(e);return null==t?o:(t=an(t,n,4),lt(o,function(e){return ct(e,t,k,!0)}))}function jr(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Zn(n))var r=r?ut(Ct(r,n),Ct(n,r)):n}return r?$t(r):[]}function Wr(e,t){var n=-1,r=e?e.length:0,o={};for(!r||t||Ss(e[0])||(t=[]);++n<r;){var a=e[n];t?o[a]=t[n]:a&&(o[a[0]]=a[1])}return o}function Ur(e){var n=t(e);return n.__chain__=!0,n}function Vr(e,t,n){return t.call(n,e),e}function zr(e,t,n){return t.call(n,e)}function qr(){return Ur(this)}function Hr(){return new r(this.value(),this.__chain__)}function Xr(e){for(var t,r=this;r instanceof n;){var o=dr(r);t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t}function Gr(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof o){var n=e;return this.__actions__.length&&(n=new o(this)),n=n.reverse(),n.__actions__.push({func:zr,args:[t],thisArg:k}),new r(n,this.__chain__)}return this.thru(t)}function Yr(){return this.value()+""}function Qr(){return nn(this.__wrapped__,this.__actions__)}function Kr(e,t,n){var r=Ss(e)?at:Et;return n&&$n(e,t,n)&&(t=k),"function"==typeof t&&n===k||(t=Un(t,n,3)),r(e,t)}function Zr(e,t,n){var r=Ss(e)?st:kt;return t=Un(t,n,3),r(e,t)}function Jr(e,t){return os(e,jt(t))}function $r(e,t,n,r){var o=e?Vi(e):0;return nr(o)||(e=ia(e),o=e.length),n="number"!=typeof n||r&&$n(t,n,r)?0:0>n?xi(o+n,0):n||0,"string"==typeof e||!Ss(e)&&zo(e)?o>=n&&e.indexOf(t,n)>-1:!!o&&zn(e,t,n)>-1}function eo(e,t,n){var r=Ss(e)?lt:Bt;return t=Un(t,n,3),r(e,t)}function to(e,t){return eo(e,Oa(t))}function no(e,t,n){var r=Ss(e)?st:kt;return t=Un(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ro(e,t,n){if(n?$n(e,t,n):null==t){e=cr(e);var r=e.length;return r>0?e[Xt(0,r-1)]:k}var o=-1,a=Yo(e),r=a.length,i=r-1;for(t=Ci(0>t?0:+t||0,r);++o<t;){var s=Xt(o,i),l=a[s];a[s]=a[o],a[o]=l}return a.length=t,a}function oo(e){return ro(e,Mi)}function ao(e){var t=e?Vi(e):0;return nr(t)?t:Ws(e).length}function io(e,t,n){var r=Ss(e)?pt:Qt;return n&&$n(e,t,n)&&(t=k),"function"==typeof t&&n===k||(t=Un(t,n,3)),r(e,t)}function so(e,t,n){if(null==e)return[];n&&$n(e,t,n)&&(t=k);var r=-1;t=Un(t,n,3);var o=Bt(e,function(e,n,o){return{criteria:t(e,n,o),index:++r,value:e}});return Kt(o,p)}function lo(e,t,n,r){return null==e?[]:(r&&$n(t,n,r)&&(n=k),Ss(t)||(t=null==t?[]:[t]),Ss(n)||(n=null==n?[]:[n]),Zt(e,t,n))}function uo(e,t){return Zr(e,jt(t))}function co(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new Ka(H);var n=e;e=t,t=n}return e=bi(e=+e)?e:0,function(){return--e<1?t.apply(this,arguments):void 0}}function fo(e,t,n){return n&&$n(e,t,n)&&(t=k),t=e&&null==t?e.length:xi(+t||0,0),Ln(e,N,k,k,k,k,t)}function po(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new Ka(H);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=k),n}}function ho(e,t,n){function r(){d&&si(d),u&&si(u),g=0,u=d=h=k}function o(t,n){n&&si(n),u=d=h=k,t&&(g=gs(),c=e.apply(p,l),d||u||(l=p=k))}function a(){var e=t-(gs()-f);0>=e||e>t?o(h,u):d=pi(a,e)}function i(){o(v,d)}function s(){if(l=arguments,f=gs(),p=this,h=v&&(d||!_),m===!1)var n=_&&!d;else{u||_||(g=f);var r=m-(f-g),o=0>=r||r>m;o?(u&&(u=si(u)),g=f,c=e.apply(p,l)):u||(u=pi(i,r))}return o&&d?d=si(d):d||t===m||(d=pi(a,t)),n&&(o=!0,c=e.apply(p,l)),!o||d||u||(l=p=k),c}var l,u,c,f,p,d,h,g=0,m=!1,v=!0;if("function"!=typeof e)throw new Ka(H);if(t=0>t?0:+t||0,n===!0){var _=!0;v=!1}else Fo(n)&&(_=!!n.leading,m="maxWait"in n&&xi(+n.maxWait||0,t),v="trailing"in n?!!n.trailing:v);return s.cancel=r,s}function go(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Ka(H);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new go.Cache,n}function mo(e){if("function"!=typeof e)throw new Ka(H);return function(){return!e.apply(this,arguments)}}function vo(e){return po(2,e)}function _o(e,t){if("function"!=typeof e)throw new Ka(H);return t=xi(t===k?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=xi(n.length-t,0),a=Ua(o);++r<o;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var i=Ua(t+1);for(r=-1;++r<t;)i[r]=n[r];return i[t]=a,e.apply(this,i)}}function yo(e){if("function"!=typeof e)throw new Ka(H);return function(t){return e.apply(this,t)}}function bo(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ka(H);return n===!1?r=!1:Fo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ho(e,t,{leading:r,maxWait:+t,trailing:o})}function wo(e,t){return t=null==t?Ma:t,Ln(t,O,k,[e],[])}function xo(e,t,n,r){return t&&"boolean"!=typeof t&&$n(e,t,n)?t=!1:"function"==typeof t&&(r=n,n=t,t=!1),"function"==typeof n?wt(e,t,an(n,r,1)):wt(e,t)}function Co(e,t,n){return"function"==typeof t?wt(e,!0,an(t,n,1)):wt(e,!0)}function Eo(e,t){return e>t}function To(e,t){return e>=t}function Po(e){return y(e)&&Zn(e)&&ti.call(e,"callee")&&!ci.call(e,"callee")}function ko(e){return e===!0||e===!1||y(e)&&ri.call(e)==Q}function Mo(e){return y(e)&&ri.call(e)==K}function So(e){return!!e&&1===e.nodeType&&y(e)&&!Uo(e)}function Ro(e){return null==e?!0:Zn(e)&&(Ss(e)||zo(e)||Po(e)||y(e)&&Oo(e.splice))?!e.length:!Ws(e).length}function Do(e,t,n,r){n="function"==typeof n?an(n,r,3):k;var o=n?n(e,t):k;return o===k?Ft(e,t,n):!!o}function Ao(e){return y(e)&&"string"==typeof e.message&&ri.call(e)==Z}function Io(e){return"number"==typeof e&&bi(e)}function Oo(e){return Fo(e)&&ri.call(e)==J}function Fo(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function No(e,t,n,r){return n="function"==typeof n?an(n,r,3):k,Lt(e,qn(t),n)}function Lo(e){return Wo(e)&&e!=+e}function Bo(e){return null==e?!1:Oo(e)?ai.test(ei.call(e)):y(e)&&Ne.test(e)}function jo(e){return null===e}function Wo(e){return"number"==typeof e||y(e)&&ri.call(e)==ee}function Uo(e){var t;if(!y(e)||ri.call(e)!=te||Po(e)||!ti.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return Rt(e,function(e,t){n=t}),n===k||ti.call(e,n)}function Vo(e){return Fo(e)&&ri.call(e)==ne}function zo(e){return"string"==typeof e||y(e)&&ri.call(e)==oe}function qo(e){return y(e)&&nr(e.length)&&!!qe[ri.call(e)]}function Ho(e){return e===k}function Xo(e,t){return t>e}function Go(e,t){return t>=e}function Yo(e){var t=e?Vi(e):0;return nr(t)?t?et(e):[]:ia(e)}function Qo(e){return yt(e,ta(e))}function Ko(e,t,n){var r=Fi(e);return n&&$n(e,t,n)&&(t=k),t?vt(r,t):r}function Zo(e){return It(e,ta(e))}function Jo(e,t,n){var r=null==e?k:Ot(e,pr(t),t+"");return r===k?n:r}function $o(e,t){if(null==e)return!1;var n=ti.call(e,t);if(!n&&!er(t)){if(t=pr(t),e=1==t.length?e:Ot(e,Yt(t,0,-1)),null==e)return!1;t=Pr(t),n=ti.call(e,t)}return n||nr(e.length)&&Jn(t,e.length)&&(Ss(e)||Po(e))}function ea(e,t,n){n&&$n(e,t,n)&&(t=k);for(var r=-1,o=Ws(e),a=o.length,i={};++r<a;){var s=o[r],l=e[s];t?ti.call(i,l)?i[l].push(s):i[l]=[s]:i[l]=s}return i}function ta(e){if(null==e)return[];Fo(e)||(e=Ga(e));var t=e.length;t=t&&nr(t)&&(Ss(e)||Po(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,a=Ua(t),i=t>0;++r<t;)a[r]=r+"";for(var s in e)i&&Jn(s,t)||"constructor"==s&&(o||!ti.call(e,s))||a.push(s);return a}function na(e){e=fr(e);for(var t=-1,n=Ws(e),r=n.length,o=Ua(r);++t<r;){var a=n[t];o[t]=[a,e[a]]}return o}function ra(e,t,n){var r=null==e?k:e[t];return r===k&&(null==e||er(t,e)||(t=pr(t),e=1==t.length?e:Ot(e,Yt(t,0,-1)),r=null==e?k:e[Pr(t)]),r=r===k?n:r),Oo(r)?r.call(e):r}function oa(e,t,n){if(null==e)return e;var r=t+"";t=null!=e[r]||er(t,e)?[r]:pr(t);for(var o=-1,a=t.length,i=a-1,s=e;null!=s&&++o<a;){var l=t[o];Fo(s)&&(o==i?s[l]=n:null==s[l]&&(s[l]=Jn(t[o+1])?[]:{})),s=s[l]}return e}function aa(e,t,n,r){var o=Ss(e)||qo(e);if(t=Un(t,r,4),null==n)if(o||Fo(e)){var a=e.constructor;n=o?Ss(e)?new a:[]:Fi(Oo(a)?a.prototype:k)}else n={};return(o?tt:Dt)(e,function(e,r,o){return t(n,e,r,o)}),n}function ia(e){return en(e,Ws(e))}function sa(e){return en(e,ta(e))}function la(e,t,n){return t=+t||0,n===k?(n=t,t=0):n=+n||0,e>=Ci(t,n)&&e<xi(t,n)}function ua(e,t,n){n&&$n(e,t,n)&&(t=n=k);var r=null==e,o=null==t;if(null==n&&(o&&"boolean"==typeof e?(n=e,e=1):"boolean"==typeof t&&(n=t,o=!0)),r&&o&&(t=1,o=!1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var a=Pi();return Ci(e+a*(t-e+li("1e-"+((a+"").length-1))),t)}return Xt(e,t)}function ca(e){return e=u(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function fa(e){return e=u(e),e&&e.replace(Be,h).replace(De,"")}function pa(e,t,n){e=u(e),t+="";var r=e.length;return n=n===k?r:Ci(0>n?0:+n||0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function da(e){return e=u(e),e&&xe.test(e)?e.replace(be,g):e}function ha(e){return e=u(e),e&&Re.test(e)?e.replace(Se,m):e||"(?:)"}function ga(e,t,n){e=u(e),t=+t;var r=e.length;if(r>=t||!bi(t))return e;var o=(t-r)/2,a=_i(o),i=mi(o);return n=In("",i,n),n.slice(0,a)+e+n}function ma(e,t,n){return(n?$n(e,t,n):null==t)?t=0:t&&(t=+t),e=ba(e),Ti(e,t||(Fe.test(e)?16:10))}function va(e,t){var n="";if(e=u(e),t=+t,1>t||!e||!bi(t))return n;do t%2&&(n+=e),t=_i(t/2),e+=e;while(t);return n}function _a(e,t,n){return e=u(e),n=null==n?0:Ci(0>n?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function ya(e,n,r){var o=t.templateSettings;r&&$n(e,n,r)&&(n=r=k),e=u(e),n=mt(vt({},r||n),o,gt);var a,i,s=mt(vt({},n.imports),o.imports,gt),l=Ws(s),c=en(s,l),f=0,p=n.interpolate||je,d="__p += '",h=Ya((n.escape||je).source+"|"+p.source+"|"+(p===Te?Ie:je).source+"|"+(n.evaluate||je).source+"|$","g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++ze+"]")+"\n";e.replace(h,function(t,n,r,o,s,l){return r||(r=o),d+=e.slice(f,l).replace(We,v),n&&(a=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=l+t.length,t}),d+="';\n";var m=n.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(i?d.replace(me,""):d).replace(ve,"$1").replace(_e,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var _=Zs(function(){return qa(l,g+"return "+d).apply(k,c)});if(_.source=d,Ao(_))throw _;return _}function ba(e,t,n){var r=e;return(e=u(e))?(n?$n(r,t,n):null==t)?e.slice(C(e),E(e)+1):(t+="",e.slice(c(e,t),f(e,t)+1)):e}function wa(e,t,n){var r=e;return e=u(e),e?(n?$n(r,t,n):null==t)?e.slice(C(e)):e.slice(c(e,t+"")):e}function xa(e,t,n){var r=e;return e=u(e),e?(n?$n(r,t,n):null==t)?e.slice(0,E(e)+1):e.slice(0,f(e,t+"")+1):e}function Ca(e,t,n){n&&$n(e,t,n)&&(t=k);var r=B,o=j;if(null!=t)if(Fo(t)){var a="separator"in t?t.separator:a;r="length"in t?+t.length||0:r,o="omission"in t?u(t.omission):o}else r=+t||0;if(e=u(e),r>=e.length)return e;var i=r-o.length;if(1>i)return o;var s=e.slice(0,i);if(null==a)return s+o;if(Vo(a)){if(e.slice(i).search(a)){var l,c,f=e.slice(0,i);for(a.global||(a=Ya(a.source,(Oe.exec(a)||"")+"g")),a.lastIndex=0;l=a.exec(f);)c=l.index;s=s.slice(0,null==c?i:c)}}else if(e.indexOf(a,i)!=i){var p=s.lastIndexOf(a);p>-1&&(s=s.slice(0,p))}return s+o}function Ea(e){return e=u(e),e&&we.test(e)?e.replace(ye,T):e}function Ta(e,t,n){return n&&$n(e,t,n)&&(t=k),e=u(e),e.match(t||Ue)||[]}function Pa(e,t,n){return n&&$n(e,t,n)&&(t=k),y(e)?Sa(e):bt(e,t)}function ka(e){return function(){return e}}function Ma(e){return e}function Sa(e){return jt(wt(e,!0))}function Ra(e,t){return Wt(e,wt(t,!0))}function Da(e,t,n){if(null==n){var r=Fo(t),o=r?Ws(t):k,a=o&&o.length?It(t,o):k;(a?a.length:r)||(a=!1,n=t,t=e,e=this)}a||(a=It(t,Ws(t)));var i=!0,s=-1,l=Oo(e),u=a.length;n===!1?i=!1:Fo(n)&&"chain"in n&&(i=n.chain);for(;++s<u;){var c=a[s],f=t[c];e[c]=f,l&&(e.prototype[c]=function(t){return function(){var n=this.__chain__;if(i||n){var r=e(this.__wrapped__),o=r.__actions__=et(this.__actions__);return o.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,ut([this.value()],arguments))}}(f))}return e}function Aa(){return rt._=oi,this}function Ia(){}function Oa(e){return er(e)?zt(e):qt(e)}function Fa(e){return function(t){return Ot(e,pr(t),t+"")}}function Na(e,t,n){n&&$n(e,t,n)&&(t=n=k),e=+e||0,n=null==n?1:+n||0,null==t?(t=e,e=0):t=+t||0;for(var r=-1,o=xi(mi((t-e)/(n||1)),0),a=Ua(o);++r<o;)a[r]=e,e+=n;return a}function La(e,t,n){if(e=_i(e),1>e||!bi(e))return[];var r=-1,o=Ua(Ci(e,Si));for(t=an(t,n,1);++r<e;)Si>r?o[r]=t(r):t(r);return o}function Ba(e){var t=++ni;return u(e)+t}function ja(e,t){return(+e||0)+(+t||0)}function Wa(e,t,n){return n&&$n(e,t,n)&&(t=k),t=Un(t,n,3),1==t.length?dt(Ss(e)?e:cr(e),t):Jt(e,t)}e=e?ot.defaults(rt.Object(),e,ot.pick(rt,Ve)):rt;var Ua=e.Array,Va=e.Date,za=e.Error,qa=e.Function,Ha=e.Math,Xa=e.Number,Ga=e.Object,Ya=e.RegExp,Qa=e.String,Ka=e.TypeError,Za=Ua.prototype,Ja=Ga.prototype,$a=Qa.prototype,ei=qa.prototype.toString,ti=Ja.hasOwnProperty,ni=0,ri=Ja.toString,oi=rt._,ai=Ya("^"+ei.call(ti).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ii=e.ArrayBuffer,si=e.clearTimeout,li=e.parseFloat,ui=Ha.pow,ci=Ja.propertyIsEnumerable,fi=Hn(e,"Set"),pi=e.setTimeout,di=Za.splice,hi=e.Uint8Array,gi=Hn(e,"WeakMap"),mi=Ha.ceil,vi=Hn(Ga,"create"),_i=Ha.floor,yi=Hn(Ua,"isArray"),bi=e.isFinite,wi=Hn(Ga,"keys"),xi=Ha.max,Ci=Ha.min,Ei=Hn(Va,"now"),Ti=e.parseInt,Pi=Ha.random,ki=Xa.NEGATIVE_INFINITY,Mi=Xa.POSITIVE_INFINITY,Si=4294967295,Ri=Si-1,Di=Si>>>1,Ai=9007199254740991,Ii=gi&&new gi,Oi={};t.support={};t.templateSettings={escape:Ce,evaluate:Ee,interpolate:Te,variable:"",imports:{_:t}};var Fi=function(){function e(){}return function(t){if(Fo(t)){e.prototype=t;var n=new e;e.prototype=k}return n||{}}}(),Ni=pn(Dt),Li=pn(At,!0),Bi=dn(),ji=dn(!0),Wi=Ii?function(e,t){return Ii.set(e,t),e}:Ma,Ui=Ii?function(e){return Ii.get(e)}:Ia,Vi=zt("length"),zi=function(){var e=0,t=0;return function(n,r){var o=gs(),a=U-(o-t);if(t=o,a>0){if(++e>=W)return n}else e=0;return Wi(n,r)}}(),qi=_o(function(e,t){return y(e)&&Zn(e)?Ct(e,St(t,!1,!0)):[]}),Hi=xn(),Xi=xn(!0),Gi=_o(function(e){for(var t=e.length,n=t,r=Ua(f),o=zn(),a=o==s,i=[];n--;){var l=e[n]=Zn(l=e[n])?l:[];r[n]=a&&l.length>=120?gn(n&&l):null}var u=e[0],c=-1,f=u?u.length:0,p=r[0];e:for(;++c<f;)if(l=u[c],(p?Ze(p,l):o(i,l,0))<0){for(var n=t;--n;){var d=r[n];if((d?Ze(d,l):o(e[n],l,0))<0)continue e}p&&p.push(l),i.push(l)}return i}),Yi=_o(function(e,t){t=St(t);var n=_t(e,t);return Ht(e,t.sort(a)),n}),Qi=Nn(),Ki=Nn(!0),Zi=_o(function(e){return $t(St(e,!1,!0))}),Ji=_o(function(e,t){return Zn(e)?Ct(e,t):[]}),$i=_o(Lr),es=_o(function(e){var t=e.length,n=t>2?e[t-2]:k,r=t>1?e[t-1]:k;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):k,r=k),e.length=t,Br(e,n,r)}),ts=_o(function(e){return e=St(e),this.thru(function(t){return $e(Ss(t)?t:[fr(t)],e)})}),ns=_o(function(e,t){return _t(e,St(t))}),rs=cn(function(e,t,n){ti.call(e,n)?++e[n]:e[n]=1}),os=wn(Ni),as=wn(Li,!0),is=Tn(tt,Ni),ss=Tn(nt,Li),ls=cn(function(e,t,n){ti.call(e,n)?e[n].push(t):e[n]=[t]}),us=cn(function(e,t,n){e[n]=t}),cs=_o(function(e,t,n){var r=-1,o="function"==typeof t,a=er(t),i=Zn(e)?Ua(e.length):[];return Ni(e,function(e){var s=o?t:a&&null!=e?e[t]:k;i[++r]=s?s.apply(e,n):Kn(e,t,n)}),i}),fs=cn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ps=Dn(ct,Ni),ds=Dn(ft,Li),hs=_o(function(e,t){if(null==e)return[];var n=t[2];return n&&$n(t[0],t[1],n)&&(t.length=1),Zt(e,St(t),[])}),gs=Ei||function(){return(new Va).getTime()},ms=_o(function(e,t,n){var r=S;if(n.length){var o=w(n,ms.placeholder);r|=O}return Ln(e,r,t,n,o)}),vs=_o(function(e,t){t=t.length?St(t):Zo(e);for(var n=-1,r=t.length;++n<r;){var o=t[n];e[o]=Ln(e[o],S,e)}return e}),_s=_o(function(e,t,n){var r=S|R;if(n.length){var o=w(n,_s.placeholder);r|=O}return Ln(t,r,e,n,o)}),ys=_n(A),bs=_n(I),ws=_o(function(e,t){return xt(e,1,t)}),xs=_o(function(e,t,n){return xt(e,t,n)}),Cs=En(),Es=En(!0),Ts=_o(function(e,t){if(t=St(t),"function"!=typeof e||!at(t,l))throw new Ka(H);var n=t.length;return _o(function(r){for(var o=Ci(r.length,n);o--;)r[o]=t[o](r[o]);return e.apply(this,r)})}),Ps=Rn(O),ks=Rn(F),Ms=_o(function(e,t){return Ln(e,L,k,k,k,St(t))}),Ss=yi||function(e){return y(e)&&nr(e.length)&&ri.call(e)==Y},Rs=fn(Ut),Ds=fn(function(e,t,n){return n?mt(e,t,n):vt(e,t)}),As=yn(Ds,ht),Is=yn(Rs,ar),Os=Cn(Dt),Fs=Cn(At),Ns=Pn(Bi),Ls=Pn(ji),Bs=kn(Dt),js=kn(At),Ws=wi?function(e){var t=null==e?k:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&Zn(e)?ur(e):Fo(e)?wi(e):[]}:ur,Us=Mn(!0),Vs=Mn(),zs=_o(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=lt(St(t),Qa);return ir(e,Ct(ta(e),t))}var n=an(t[0],t[1],3);return sr(e,function(e,t,r){return!n(e,t,r)})}),qs=_o(function(e,t){return null==e?{}:"function"==typeof t[0]?sr(e,an(t[0],t[1],3)):ir(e,St(t))}),Hs=mn(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),Xs=mn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Gs=Sn(),Ys=Sn(!0),Qs=mn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ks=mn(function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Zs=_o(function(e,t){try{return e.apply(k,t)}catch(n){return Ao(n)?n:new za(n)}}),Js=_o(function(e,t){return function(n){return Kn(n,e,t)}}),$s=_o(function(e,t){return function(n){return Kn(e,n,t)}}),el=Fn("ceil"),tl=Fn("floor"),nl=bn(Eo,ki),rl=bn(Xo,Mi),ol=Fn("round");return t.prototype=n.prototype,r.prototype=Fi(n.prototype),r.prototype.constructor=r,o.prototype=Fi(n.prototype),o.prototype.constructor=o,ae.prototype["delete"]=Xe,ae.prototype.get=Ge,ae.prototype.has=Ye,ae.prototype.set=Qe,Ke.prototype.push=Je,go.Cache=ae,t.after=co,t.ary=fo,t.assign=Ds,t.at=ns,t.before=po,t.bind=ms,t.bindAll=vs,t.bindKey=_s,t.callback=Pa,t.chain=Ur,t.chunk=hr,t.compact=gr,t.constant=ka,t.countBy=rs,t.create=Ko,t.curry=ys,t.curryRight=bs,t.debounce=ho,t.defaults=As,t.defaultsDeep=Is,t.defer=ws,t.delay=xs,t.difference=qi,t.drop=mr,t.dropRight=vr,t.dropRightWhile=_r,t.dropWhile=yr,t.fill=br,t.filter=Zr,t.flatten=xr,t.flattenDeep=Cr,t.flow=Cs,t.flowRight=Es,t.forEach=is,t.forEachRight=ss,t.forIn=Ns,t.forInRight=Ls,t.forOwn=Bs,t.forOwnRight=js,t.functions=Zo,t.groupBy=ls,t.indexBy=us,t.initial=Tr,t.intersection=Gi,t.invert=ea,t.invoke=cs,t.keys=Ws,t.keysIn=ta,t.map=eo,t.mapKeys=Us,t.mapValues=Vs,t.matches=Sa,t.matchesProperty=Ra,t.memoize=go,t.merge=Rs,t.method=Js,t.methodOf=$s,t.mixin=Da,t.modArgs=Ts,t.negate=mo,t.omit=zs,t.once=vo,t.pairs=na,t.partial=Ps,t.partialRight=ks,t.partition=fs,t.pick=qs,t.pluck=to,t.property=Oa,t.propertyOf=Fa,t.pull=Mr,t.pullAt=Yi,t.range=Na,t.rearg=Ms,t.reject=no,t.remove=Sr,t.rest=Rr,t.restParam=_o,t.set=oa,t.shuffle=oo,t.slice=Dr,t.sortBy=so,t.sortByAll=hs,t.sortByOrder=lo,t.spread=yo,t.take=Ar,t.takeRight=Ir,t.takeRightWhile=Or,t.takeWhile=Fr,t.tap=Vr,t.throttle=bo,t.thru=zr,t.times=La,t.toArray=Yo,t.toPlainObject=Qo,t.transform=aa,t.union=Zi,t.uniq=Nr,t.unzip=Lr,t.unzipWith=Br,t.values=ia,t.valuesIn=sa,t.where=uo,t.without=Ji,t.wrap=wo,t.xor=jr,t.zip=$i,t.zipObject=Wr,t.zipWith=es,t.backflow=Es,t.collect=eo,t.compose=Es,t.each=is,t.eachRight=ss,t.extend=Ds,t.iteratee=Pa,t.methods=Zo,t.object=Wr,t.select=Zr,t.tail=Rr,t.unique=Nr,Da(t,t),t.add=ja,t.attempt=Zs,t.camelCase=Hs,t.capitalize=ca,t.ceil=el,t.clone=xo,t.cloneDeep=Co,t.deburr=fa,t.endsWith=pa,t.escape=da,t.escapeRegExp=ha,t.every=Kr,t.find=os,t.findIndex=Hi,t.findKey=Os,t.findLast=as,t.findLastIndex=Xi,t.findLastKey=Fs,t.findWhere=Jr,t.first=wr,t.floor=tl,t.get=Jo,t.gt=Eo,t.gte=To, +t.has=$o,t.identity=Ma,t.includes=$r,t.indexOf=Er,t.inRange=la,t.isArguments=Po,t.isArray=Ss,t.isBoolean=ko,t.isDate=Mo,t.isElement=So,t.isEmpty=Ro,t.isEqual=Do,t.isError=Ao,t.isFinite=Io,t.isFunction=Oo,t.isMatch=No,t.isNaN=Lo,t.isNative=Bo,t.isNull=jo,t.isNumber=Wo,t.isObject=Fo,t.isPlainObject=Uo,t.isRegExp=Vo,t.isString=zo,t.isTypedArray=qo,t.isUndefined=Ho,t.kebabCase=Xs,t.last=Pr,t.lastIndexOf=kr,t.lt=Xo,t.lte=Go,t.max=nl,t.min=rl,t.noConflict=Aa,t.noop=Ia,t.now=gs,t.pad=ga,t.padLeft=Gs,t.padRight=Ys,t.parseInt=ma,t.random=ua,t.reduce=ps,t.reduceRight=ds,t.repeat=va,t.result=ra,t.round=ol,t.runInContext=P,t.size=ao,t.snakeCase=Qs,t.some=io,t.sortedIndex=Qi,t.sortedLastIndex=Ki,t.startCase=Ks,t.startsWith=_a,t.sum=Wa,t.template=ya,t.trim=ba,t.trimLeft=wa,t.trimRight=xa,t.trunc=Ca,t.unescape=Ea,t.uniqueId=Ba,t.words=Ta,t.all=Kr,t.any=io,t.contains=$r,t.eq=Do,t.detect=os,t.foldl=ps,t.foldr=ds,t.head=wr,t.include=$r,t.inject=ps,Da(t,function(){var e={};return Dt(t,function(n,r){t.prototype[r]||(e[r]=n)}),e}(),!1),t.sample=ro,t.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return ro(t,e)}):ro(this.value())},t.VERSION=M,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),tt(["drop","take"],function(e,t){o.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new o(this);n=null==n?1:xi(_i(n)||0,0);var a=this.clone();return r?a.__takeCount__=Ci(a.__takeCount__,n):a.__views__.push({size:n,type:e+(a.__dir__<0?"Right":"")}),a},o.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n!=q;o.prototype[e]=function(e,t){var o=this.clone();return o.__iteratees__.push({iteratee:Un(e,t,1),type:n}),o.__filtered__=o.__filtered__||r,o}}),tt(["first","last"],function(e,t){var n="take"+(t?"Right":"");o.prototype[e]=function(){return this[n](1).value()[0]}}),tt(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");o.prototype[e]=function(){return this.__filtered__?new o(this):this[n](1)}}),tt(["pluck","where"],function(e,t){var n=t?"filter":"map",r=t?jt:Oa;o.prototype[e]=function(e){return this[n](r(e))}}),o.prototype.compact=function(){return this.filter(Ma)},o.prototype.reject=function(e,t){return e=Un(e,t,1),this.filter(function(t){return!e(t)})},o.prototype.slice=function(e,t){e=null==e?0:+e||0;var n=this;return n.__filtered__&&(e>0||0>t)?new o(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==k&&(t=+t||0,n=0>t?n.dropRight(-t):n.take(t-e)),n)},o.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},o.prototype.toArray=function(){return this.take(Mi)},Dt(o.prototype,function(e,n){var a=/^(?:filter|map|reject)|While$/.test(n),i=/^(?:first|last)$/.test(n),s=t[i?"take"+("last"==n?"Right":""):n];s&&(t.prototype[n]=function(){var t=i?[1]:arguments,n=this.__chain__,l=this.__wrapped__,u=!!this.__actions__.length,c=l instanceof o,f=t[0],p=c||Ss(l);p&&a&&"function"==typeof f&&1!=f.length&&(c=p=!1);var d=function(e){return i&&n?s(e,1)[0]:s.apply(k,ut([e],t))},h={func:zr,args:[d],thisArg:k},g=c&&!u;if(i&&!n)return g?(l=l.clone(),l.__actions__.push(h),e.call(l)):s.call(k,this.value())[0];if(!i&&p){l=g?l:new o(this);var m=e.apply(l,t);return m.__actions__.push(h),new r(m,n)}return this.thru(d)})}),tt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var n=(/^(?:replace|split)$/.test(e)?$a:Za)[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:join|pop|replace|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;return o&&!this.__chain__?n.apply(this.value(),e):this[r](function(t){return n.apply(t,e)})}}),Dt(o.prototype,function(e,n){var r=t[n];if(r){var o=r.name,a=Oi[o]||(Oi[o]=[]);a.push({name:n,func:r})}}),Oi[An(k,R).name]=[{name:"wrapper",func:k}],o.prototype.clone=b,o.prototype.reverse=$,o.prototype.value=re,t.prototype.chain=qr,t.prototype.commit=Hr,t.prototype.concat=ts,t.prototype.plant=Xr,t.prototype.reverse=Gr,t.prototype.toString=Yr,t.prototype.run=t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=Qr,t.prototype.collect=t.prototype.map,t.prototype.head=t.prototype.first,t.prototype.select=t.prototype.filter,t.prototype.tail=t.prototype.rest,t}var k,M="3.10.1",S=1,R=2,D=4,A=8,I=16,O=32,F=64,N=128,L=256,B=30,j="...",W=150,U=16,V=200,z=1,q=2,H="Expected a function",X="__lodash_placeholder__",G="[object Arguments]",Y="[object Array]",Q="[object Boolean]",K="[object Date]",Z="[object Error]",J="[object Function]",$="[object Map]",ee="[object Number]",te="[object Object]",ne="[object RegExp]",re="[object Set]",oe="[object String]",ae="[object WeakMap]",ie="[object ArrayBuffer]",se="[object Float32Array]",le="[object Float64Array]",ue="[object Int8Array]",ce="[object Int16Array]",fe="[object Int32Array]",pe="[object Uint8Array]",de="[object Uint8ClampedArray]",he="[object Uint16Array]",ge="[object Uint32Array]",me=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ye=/&(?:amp|lt|gt|quot|#39|#96);/g,be=/[&<>"'`]/g,we=RegExp(ye.source),xe=RegExp(be.source),Ce=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,ke=/^\w*$/,Me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Se=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Re=RegExp(Se.source),De=/[\u0300-\u036f\ufe20-\ufe23]/g,Ae=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Oe=/\w*$/,Fe=/^0[xX]/,Ne=/^\[object .+?Constructor\]$/,Le=/^\d+$/,Be=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,je=/($^)/,We=/['\n\r\u2028\u2029\\]/g,Ue=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),Ve=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],ze=-1,qe={};qe[se]=qe[le]=qe[ue]=qe[ce]=qe[fe]=qe[pe]=qe[de]=qe[he]=qe[ge]=!0,qe[G]=qe[Y]=qe[ie]=qe[Q]=qe[K]=qe[Z]=qe[J]=qe[$]=qe[ee]=qe[te]=qe[ne]=qe[re]=qe[oe]=qe[ae]=!1;var He={};He[G]=He[Y]=He[ie]=He[Q]=He[K]=He[se]=He[le]=He[ue]=He[ce]=He[fe]=He[ee]=He[te]=He[ne]=He[oe]=He[pe]=He[de]=He[he]=He[ge]=!0,He[Z]=He[J]=He[$]=He[re]=He[ae]=!1;var Xe={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Ge={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ye={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Qe={"function":!0,object:!0},Ke={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Ze={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Je=Qe[typeof t]&&t&&!t.nodeType&&t,$e=Qe[typeof e]&&e&&!e.nodeType&&e,et=Je&&$e&&"object"==typeof o&&o&&o.Object&&o,tt=Qe[typeof self]&&self&&self.Object&&self,nt=Qe[typeof window]&&window&&window.Object&&window,rt=($e&&$e.exports===Je&&Je,et||nt!==(this&&this.window)&&nt||tt||this),ot=P();rt._=ot,r=function(){return ot}.call(t,n,t,e),!(r!==k&&(e.exports=r))}).call(this)}).call(t,n(317)(e),function(){return this}())},function(e,t,n){function r(e,t){return-1!==o(e,t)}var o=n(715);e.exports=r},function(e,t){function n(e,t,n){if(n=n||0,null==e)return-1;for(var r=e.length,o=0>n?r+n:n;r>o;){if(e[o]===t)return o;o++}return-1}e.exports=n},function(e,t,n){function r(e,t,n){if(null!=e&&e.length){if(e.length&&!t)return Math.max.apply(Math,e);t=o(t,n);for(var r,a,i,s=-(1/0),l=-1,u=e.length;++l<u;)a=e[l],i=t(a,l,e),i>s&&(s=i,r=a);return r}return 1/0}var o=n(273);e.exports=r},function(e,t,n){function r(e,t,n){if(null!=e&&e.length){if(e.length&&!t)return Math.min.apply(Math,e);t=o(t,n);for(var r,a,i,s=1/0,l=-1,u=e.length;++l<u;)a=e[l],i=t(a,l,e),s>i&&(s=i,r=a);return r}return-(1/0)}var o=n(273);e.exports=r},function(e,t){function n(e,t,n){var r=e.length;t=null==t?0:0>t?Math.max(r+t,0):Math.min(t,r),n=null==n?r:0>n?Math.max(r+n,0):Math.min(n,r);for(var o=[];n>t;)o.push(e[t++]);return o}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t){function n(e){return function(t){return t[e]}}e.exports=n},function(e,t,n){var r=n(722),o=Array.isArray||function(e){return r(e,"Array")};e.exports=o},function(e,t,n){function r(e,t){return o(e)===t}var o=n(723);e.exports=r},function(e,t){function n(e){return null===e?"Null":e===r?"Undefined":o.exec(a.call(e))[1]}var r,o=/^\[object (.*)\]$/,a=Object.prototype.toString;e.exports=n},function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r;)if(i(e[n],t))return!0;return!1}function o(e,t){for(var n=-1,o=t.length;++n<o;)if(!r(e,t[n]))return!1;return!0}function a(e,t){var n=!0;return s(t,function(t,r){return i(e[r],t)?void 0:n=!1}),n}function i(e,t){return e&&"object"==typeof e?l(e)&&l(t)?o(e,t):a(e,t):e===t}var s=n(168),l=n(721);e.exports=i},function(e,t,n){function r(){s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=!0;for(var e in{toString:null})i=!1}function o(e,t,n){var o,u=0;null==i&&r();for(o in e)if(a(t,e,o,n)===!1)break;if(i)for(var c=e.constructor,f=!!c&&e===c.prototype;(o=s[u++])&&("constructor"===o&&(f||!l(e,o))||e[o]===Object.prototype[o]||a(t,e,o,n)!==!1););}function a(e,t,n,r){return e.call(r,t[n],n,t)}var i,s,l=n(169);e.exports=o},function(e,t,n){function r(e,t){return o(a(e),t)}var o=n(717),a=n(274);e.exports=r},function(e,t,n){function r(e,t){var n="string"!=typeof arguments[1]?arguments[1]:o(arguments,1),r={};for(var i in e)e.hasOwnProperty(i)&&!a(n,i)&&(r[i]=e[i]);return r}var o=n(718),a=n(714);e.exports=r},function(e,t,n){function r(e){var t=0;return o(e,function(){t++}),t}var o=n(168);e.exports=r},function(e,t,n){var r,o;r=[n(276)],o=function(e){function t(t,n,r){n=e(n,r);var o=!0;if(null==t)return o;for(var a=-1,i=t.length;++a<i;)if(!n(t[a],a,t)){o=!1;break}return o}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r;r=function(){function e(e,t,n){if(n=n||0,null==e)return-1;for(var r=e.length,o=0>n?r+n:n;r>o;){if(e[o]===t)return o;o++}return-1}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(){function e(e){return e}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r;r=function(){function e(e){return function(t){return t[e]}}return e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))},function(e,t,n){var r,o;r=[n(171),n(282),n(737)],o=function(e,t,n){function r(t){switch(e(t)){case"Object":return o(t);case"Array":return s(t);case"RegExp":return a(t);case"Date":return i(t);default:return t}}function o(e){return t(e)?n({},e):e}function a(e){var t="";return t+=e.multiline?"m":"",t+=e.global?"g":"",t+=e.ignoreCase?"i":"",new RegExp(e.source,t)}function i(e){return new Date(+e)}function s(e){return e.slice()}return r}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(119),n(279)],o=function(e,t){function n(e,t){for(var n=-1,r=e.length;++n<r;)if(a(e[n],t))return!0;return!1}function r(e,t){for(var r=-1,o=t.length;++r<o;)if(!n(e,t[r]))return!1;return!0}function o(t,n){var r=!0;return e(n,function(e,n){return a(t[n],e)?void 0:r=!1}),r}function a(e,n){return e&&"object"==typeof e?t(e)&&t(n)?r(e,n):o(e,n):e===n}return a}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(119),n(276)],o=function(e,t){function n(n,r,o){r=t(r,o);var a=!0;return e(n,function(e,t){return r(e,t,n)?void 0:(a=!1,!1)}),a}return n}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(120)],o=function(e){function t(){a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=!0;for(var e in{toString:null})o=!1}function n(n,i,s){var l,u=0;null==o&&t();for(l in n)if(r(i,n,l,s)===!1)break;if(o)for(var c=n.constructor,f=!!c&&n===c.prototype;(l=a[u++])&&("constructor"===l&&(f||!e(n,l))||n[l]===Object.prototype[l]||r(i,n,l,s)!==!1););}function r(e,t,n,r){return e.call(r,t[n],n,t)}var o,a;return n}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){var r,o;r=[n(119)],o=function(e){function t(t,r){for(var o,a=0,i=arguments.length;++a<i;)o=arguments[a],null!=o&&e(o,n,t);return t}function n(e,t){this[t]=e}return t}.apply(t,r),!(void 0!==o&&(e.exports=o))},function(e,t,n){"use strict";var r=n(26),o=n(180),a=n(267),i={componentDidMount:function(){this.props.autoFocus&&a(o(this))}},s={Mixin:i,focusDOMComponent:function(){a(r.getNode(this._rootNodeID))}};e.exports=s},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function a(e){switch(e){case M.topCompositionStart:return S.compositionStart;case M.topCompositionEnd:return S.compositionEnd;case M.topCompositionUpdate:return S.compositionUpdate}}function i(e,t){return e===M.topKeyDown&&t.keyCode===w}function s(e,t){switch(e){case M.topKeyUp:return-1!==b.indexOf(t.keyCode);case M.topKeyDown:return t.keyCode!==w;case M.topKeyPress:case M.topMouseDown:case M.topBlur:return!0;default:return!1}}function l(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function u(e,t,n,r,o){var u,c;if(x?u=a(e):D?s(e,r)&&(u=S.compositionEnd):i(e,r)&&(u=S.compositionStart),!u)return null;T&&(D||u!==S.compositionStart?u===S.compositionEnd&&D&&(c=D.getData()):D=m.getPooled(t));var f=v.getPooled(u,n,r,o);if(c)f.data=c;else{var p=l(r);null!==p&&(f.data=p)}return h.accumulateTwoPhaseDispatches(f),f}function c(e,t){switch(e){case M.topCompositionEnd:return l(t);case M.topKeyPress:var n=t.which;return n!==P?null:(R=!0,k);case M.topTextInput:var r=t.data;return r===k&&R?null:r;default:return null}}function f(e,t){if(D){if(e===M.topCompositionEnd||s(e,t)){var n=D.getData();return m.release(D),D=null,n}return null}switch(e){case M.topPaste:return null;case M.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case M.topCompositionEnd:return T?null:t.data;default:return null}}function p(e,t,n,r,o){var a;if(a=E?c(e,r):f(e,r),!a)return null;var i=_.getPooled(S.beforeInput,n,r,o);return i.data=a,h.accumulateTwoPhaseDispatches(i),i}var d=n(52),h=n(99),g=n(23),m=n(747),v=n(777),_=n(780),y=n(58),b=[9,13,27,32],w=229,x=g.canUseDOM&&"CompositionEvent"in window,C=null;g.canUseDOM&&"documentMode"in document&&(C=document.documentMode);var E=g.canUseDOM&&"TextEvent"in window&&!C&&!r(),T=g.canUseDOM&&(!x||C&&C>8&&11>=C),P=32,k=String.fromCharCode(P),M=d.topLevelTypes,S={beforeInput:{phasedRegistrationNames:{bubbled:y({onBeforeInput:null}),captured:y({onBeforeInputCapture:null})},dependencies:[M.topCompositionEnd,M.topKeyPress,M.topTextInput,M.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:y({onCompositionEnd:null}),captured:y({onCompositionEndCapture:null})},dependencies:[M.topBlur,M.topCompositionEnd,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:y({onCompositionStart:null}),captured:y({onCompositionStartCapture:null})},dependencies:[M.topBlur,M.topCompositionStart,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:y({onCompositionUpdate:null}),captured:y({onCompositionUpdateCapture:null})},dependencies:[M.topBlur,M.topCompositionUpdate,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]}},R=!1,D=null,A={eventTypes:S,extractEvents:function(e,t,n,r,o){return[u(e,t,n,r,o),p(e,t,n,r,o)]}};e.exports=A},function(e,t,n){"use strict";var r=n(284),o=n(23),a=n(36),i=(n(699),n(785)),s=n(704),l=n(708),u=(n(10),l(function(e){return s(e)})),c=!1,f="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(d){c=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}var h={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=u(n)+":",t+=i(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=i(o,t[o]);if("float"===o&&(o=f),a)n[o]=a;else{var s=c&&r.shorthandPropertyExpansions[o];if(s)for(var l in s)n[l]="";else n[o]=""}}}};a.measureMethods(h,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),e.exports=h},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=C.getPooled(S.change,D,e,E(e));b.accumulateTwoPhaseDispatches(t),x.batchedUpdates(a,t)}function a(e){y.enqueueEvents(e),y.processEventQueue(!1)}function i(e,t){R=e,D=t,R.attachEvent("onchange",o)}function s(){R&&(R.detachEvent("onchange",o),R=null,D=null)}function l(e,t,n){return e===M.topChange?n:void 0}function u(e,t,n){e===M.topFocus?(s(),i(t,n)):e===M.topBlur&&s()}function c(e,t){R=e,D=t,A=e.value,I=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(R,"value",N),R.attachEvent("onpropertychange",p)}function f(){R&&(delete R.value,R.detachEvent("onpropertychange",p),R=null,D=null,A=null,I=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==A&&(A=t,o(e))}}function d(e,t,n){return e===M.topInput?n:void 0}function h(e,t,n){e===M.topFocus?(f(),c(t,n)):e===M.topBlur&&f()}function g(e,t,n){return e!==M.topSelectionChange&&e!==M.topKeyUp&&e!==M.topKeyDown||!R||R.value===A?void 0:(A=R.value,D)}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function v(e,t,n){return e===M.topClick?n:void 0}var _=n(52),y=n(98),b=n(99),w=n(23),x=n(37),C=n(70),E=n(183),T=n(186),P=n(311),k=n(58),M=_.topLevelTypes,S={change:{phasedRegistrationNames:{bubbled:k({onChange:null}),captured:k({onChangeCapture:null})},dependencies:[M.topBlur,M.topChange,M.topClick,M.topFocus,M.topInput,M.topKeyDown,M.topKeyUp,M.topSelectionChange]}},R=null,D=null,A=null,I=null,O=!1;w.canUseDOM&&(O=T("change")&&(!("documentMode"in document)||document.documentMode>8));var F=!1;w.canUseDOM&&(F=T("input")&&(!("documentMode"in document)||document.documentMode>9));var N={get:function(){return I.get.call(this)},set:function(e){A=""+e,I.set.call(this,e)}},L={eventTypes:S,extractEvents:function(e,t,n,o,a){var i,s;if(r(t)?O?i=l:s=u:P(t)?F?i=d:(i=g,s=h):m(t)&&(i=v),i){var c=i(e,t,n);if(c){var f=C.getPooled(S.change,c,o,a);return f.type="change",b.accumulateTwoPhaseDispatches(f),f}}s&&s(e,t,n)}};e.exports=L},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(23),a=n(701),i=n(44),s=n(269),l=n(5),u=/^(<[^ \/>]+)/,c="data-danger-index",f={dangerouslyRenderMarkup:function(e){o.canUseDOM?void 0:l(!1);for(var t,n={},f=0;f<e.length;f++)e[f]?void 0:l(!1),t=r(e[f]),t=s(t)?t:"*",n[t]=n[t]||[],n[t][f]=e[f];var p=[],d=0;for(t in n)if(n.hasOwnProperty(t)){var h,g=n[t];for(h in g)if(g.hasOwnProperty(h)){var m=g[h];g[h]=m.replace(u,"$1 "+c+'="'+h+'" ')}for(var v=a(g.join(""),i),_=0;_<v.length;++_){var y=v[_];y.hasAttribute&&y.hasAttribute(c)&&(h=+y.getAttribute(c),y.removeAttribute(c),p.hasOwnProperty(h)?l(!1):void 0,p[h]=y,d+=1)}}return d!==p.length?l(!1):void 0,p.length!==e.length?l(!1):void 0,p},dangerouslyReplaceNodeWithMarkup:function(e,t){o.canUseDOM?void 0:l(!1),t?void 0:l(!1),"html"===e.tagName.toLowerCase()?l(!1):void 0;var n;n="string"==typeof t?a(t,i)[0]:t,e.parentNode.replaceChild(n,e)}};e.exports=f},function(e,t,n){"use strict";var r=n(58),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];e.exports=o},function(e,t,n){"use strict";var r=n(52),o=n(99),a=n(125),i=n(26),s=n(58),l=r.topLevelTypes,u=i.getFirstReactDOM,c={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[l.topMouseOut,l.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[l.topMouseOut,l.topMouseOver]}},f=[null,null],p={eventTypes:c,extractEvents:function(e,t,n,r,s){if(e===l.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==l.topMouseOut&&e!==l.topMouseOver)return null;var p;if(t.window===t)p=t;else{var d=t.ownerDocument;p=d?d.defaultView||d.parentWindow:window}var h,g,m="",v="";if(e===l.topMouseOut?(h=t,m=n,g=u(r.relatedTarget||r.toElement),g?v=i.getID(g):g=p,g=g||p):(h=p,g=t,v=n),h===g)return null;var _=a.getPooled(c.mouseLeave,m,r,s);_.type="mouseleave",_.target=h,_.relatedTarget=g;var y=a.getPooled(c.mouseEnter,v,r,s);return y.type="mouseenter",y.target=g,y.relatedTarget=h,o.accumulateEnterLeaveDispatches(_,y,m,v),f[0]=_,f[1]=y,f}};e.exports=p},function(e,t,n){"use strict";function r(e){return e===m.topMouseUp||e===m.topTouchEnd||e===m.topTouchCancel}function o(e){return e===m.topMouseMove||e===m.topTouchMove}function a(e){return e===m.topMouseDown||e===m.topTouchStart}function i(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=g.Mount.getNode(r),t?d.invokeGuardedCallbackWithCatch(o,n,e,r):d.invokeGuardedCallback(o,n,e,r),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)i(e,t,n[o],r[o]);else n&&i(e,t,n,r);e._dispatchListeners=null,e._dispatchIDs=null}function l(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function u(e){var t=l(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function c(e){var t=e._dispatchListeners,n=e._dispatchIDs;Array.isArray(t)?h(!1):void 0;var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function f(e){return!!e._dispatchListeners}var p=n(52),d=n(299),h=n(5),g=(n(10),{Mount:null,injectMount:function(e){g.Mount=e}}),m=p.topLevelTypes,v={isEndish:r,isMoveish:o,isStartish:a,executeDirectDispatch:c,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:u,hasDispatches:f,getNode:function(e){return g.Mount.getNode(e)},getID:function(e){return g.Mount.getID(e)},injection:g};e.exports=v},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(59),a=n(11),i=n(310);a(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[i()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),a=o.length;for(e=0;r>e&&n[e]===o[e];e++);var i=r-e;for(t=1;i>=t&&n[r-t]===o[a-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,o=n(84),a=n(23),i=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,l=o.injection.HAS_BOOLEAN_VALUE,u=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,f=o.injection.HAS_POSITIVE_NUMERIC_VALUE,p=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(a.canUseDOM){var d=document.implementation;r=d&&d.hasFeature&&d.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:i|l,allowTransparency:i,alt:null,async:l,autoComplete:null,autoPlay:l,capture:i|l,cellPadding:null,cellSpacing:null,charSet:i,challenge:i,checked:s|l,classID:i,className:r?i:s,cols:i|f,colSpan:null,content:null,contentEditable:null,contextMenu:i,controls:s|l,coords:null,crossOrigin:null,data:null,dateTime:i,"default":l,defer:l,dir:null,disabled:i|l,download:p,draggable:null,encType:null,form:i,formAction:i,formEncType:i,formMethod:i,formNoValidate:l,formTarget:i,frameBorder:i,headers:null,height:i,hidden:i|l,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:i,integrity:null,is:i,keyParams:i,keyType:i,kind:null,label:null,lang:null,list:i,loop:s|l,low:null,manifest:i,marginHeight:null,marginWidth:null,max:null,maxLength:i,media:i,mediaGroup:null,method:null,min:null,minLength:i,multiple:s|l,muted:s|l,name:null,nonce:i,noValidate:l,open:l,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|l,rel:null,required:l,reversed:l,role:i,rows:i|f,rowSpan:null,sandbox:null,scope:null,scoped:l,scrolling:null,seamless:i|l,selected:s|l,shape:null,size:i|f,sizes:i,span:f,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:i,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|u,width:i,wmode:i,wrap:null,about:i,datatype:i,inlist:i,prefix:i,property:i,resource:i,"typeof":i,vocab:i,autoCapitalize:i,autoCorrect:i,autoSave:null,color:null,itemProp:i,itemScope:i|l,itemType:i,itemID:i,itemRef:i,results:null,security:i,unselectable:i},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=h},function(e,t,n){"use strict";var r=n(290),o=n(759),a=n(764),i=n(11),s=n(786),l={};i(l,a),i(l,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),l.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,l.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,e.exports=l},function(e,t,n){"use strict";var r=(n(100),n(180)),o=(n(10),"_getDOMNodeDidWarn"),a={getDOMNode:function(){return this.constructor[o]=!0,r(this)}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){var r=void 0===e[n];null!=t&&r&&(e[n]=a(t,null))}var o=n(69),a=n(185),i=n(188),s=n(189),l=(n(10),{instantiateChildren:function(e,t,n){if(null==e)return null;var o={};return s(e,r,o),o},updateChildren:function(e,t,n,r){if(!t&&!e)return null;var s;for(s in t)if(t.hasOwnProperty(s)){var l=e&&e[s],u=l&&l._currentElement,c=t[s];if(null!=l&&i(u,c))o.receiveComponent(l,c,n,r),t[s]=l;else{l&&o.unmountComponent(l,s);var f=a(c,null);t[s]=f}}for(s in e)!e.hasOwnProperty(s)||t&&t.hasOwnProperty(s)||o.unmountComponent(e[s]);return t},unmountChildren:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];o.unmountComponent(n)}}});e.exports=l},function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(e){}var a=n(176),i=n(53),s=n(30),l=n(100),u=n(36),c=n(124),f=(n(123),n(69)),p=n(178),d=n(11),h=n(95),g=n(5),m=n(188);n(10);o.prototype.render=function(){var e=l.get(this)._currentElement.type;return e(this.props,this.context,this.updater)};var v=1,_={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=v++,this._rootNodeID=e;var r,a,i=this._processProps(this._currentElement.props),u=this._processContext(n),c=this._currentElement.type,d="prototype"in c;d&&(r=new c(i,u,p)),d&&null!==r&&r!==!1&&!s.isValidElement(r)||(a=r,r=new o(c)),r.props=i,r.context=u,r.refs=h,r.updater=p,this._instance=r,l.set(r,this);var m=r.state;void 0===m&&(r.state=m=null),"object"!=typeof m||Array.isArray(m)?g(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===a&&(a=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(a);var _=f.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return r.componentDidMount&&t.getReactMountReady().enqueue(r.componentDidMount,r),_},unmountComponent:function(){var e=this._instance;e.componentWillUnmount&&e.componentWillUnmount(),f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,l.remove(e)},_maskContext:function(e){var t=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return h;t={};for(var o in r)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof t.childContextTypes?g(!1):void 0;for(var o in r)o in t.childContextTypes?void 0:g(!1);return d({},e,r)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var i;try{"function"!=typeof e[a]?g(!1):void 0,i=e[a](t,a,o,n)}catch(s){i=s}if(i instanceof Error){r(this);n===c.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,r,o){var a,i=this._instance,s=this._context===o?i.context:this._processContext(o);t===n?a=n.props:(a=this._processProps(n.props),i.componentWillReceiveProps&&i.componentWillReceiveProps(a,s));var l=this._processPendingState(a,s),u=this._pendingForceUpdate||!i.shouldComponentUpdate||i.shouldComponentUpdate(a,l,s);u?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,a,l,s,e,o)):(this._currentElement=n,this._context=o,i.props=a,i.state=l,i.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var a=d({},o?r[0]:n.state),i=o?1:0;i<r.length;i++){var s=r[i];d(a,"function"==typeof s?s.call(n,a,e,t):s)}return a},_performComponentUpdate:function(e,t,n,r,o,a){var i,s,l,u=this._instance,c=Boolean(u.componentDidUpdate);c&&(i=u.props,s=u.state,l=u.context),u.componentWillUpdate&&u.componentWillUpdate(t,n,r),this._currentElement=e,this._context=a,u.props=t,u.state=n,u.context=r,this._updateRenderedComponent(o,a),c&&o.getReactMountReady().enqueue(u.componentDidUpdate.bind(u,i,s,l),u); +},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(m(r,o))f.receiveComponent(n,o,e,this._processChildContext(t));else{var a=this._rootNodeID,i=n._rootNodeID;f.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o);var s=f.mountComponent(this._renderedComponent,a,e,this._processChildContext(t));this._replaceNodeWithMarkupByID(i,s)}},_replaceNodeWithMarkupByID:function(e,t){a.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(){var e;i.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{i.current=null}return null===e||e===!1||s.isValidElement(e)?void 0:g(!1),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?g(!1):void 0;var r=t.getPublicInstance(),o=n.refs===h?n.refs={}:n.refs;o[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return e instanceof o?null:e},_instantiateReactComponent:null};u.measureMethods(_,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var y={Mixin:_};e.exports=y},function(e,t){"use strict";var n={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getNativeProps:function(e,t,r){if(!t.disabled)return t;var o={};for(var a in t)t.hasOwnProperty(a)&&!n[a]&&(o[a]=t[a]);return o}};e.exports=r},function(e,t,n){"use strict";function r(){return this}function o(){var e=this._reactInternalComponent;return!!e}function a(){}function i(e,t){var n=this._reactInternalComponent;n&&(A.enqueueSetPropsInternal(n,e),t&&A.enqueueCallbackInternal(n,t))}function s(e,t){var n=this._reactInternalComponent;n&&(A.enqueueReplacePropsInternal(n,e),t&&A.enqueueCallbackInternal(n,t))}function l(e,t){t&&(null!=t.dangerouslySetInnerHTML&&(null!=t.children?N(!1):void 0,"object"==typeof t.dangerouslySetInnerHTML&&X in t.dangerouslySetInnerHTML?void 0:N(!1)),null!=t.style&&"object"!=typeof t.style?N(!1):void 0)}function u(e,t,n,r){var o=S.findReactContainerForID(e);if(o){var a=o.nodeType===G?o.ownerDocument:o;U(t,a)}r.getReactMountReady().enqueue(c,{id:e,registrationName:t,listener:n})}function c(){var e=this;x.putListener(e.id,e.registrationName,e.listener)}function f(){var e=this;e._rootNodeID?void 0:N(!1);var t=S.getNode(e._rootNodeID);switch(t?void 0:N(!1),e._tag){case"iframe":e._wrapperState.listeners=[x.trapBubbledEvent(w.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in Y)Y.hasOwnProperty(n)&&e._wrapperState.listeners.push(x.trapBubbledEvent(w.topLevelTypes[n],Y[n],t));break;case"img":e._wrapperState.listeners=[x.trapBubbledEvent(w.topLevelTypes.topError,"error",t),x.trapBubbledEvent(w.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[x.trapBubbledEvent(w.topLevelTypes.topReset,"reset",t),x.trapBubbledEvent(w.topLevelTypes.topSubmit,"submit",t)]}}function p(){T.mountReadyWrapper(this)}function d(){k.postUpdateWrapper(this)}function h(e){$.call(J,e)||(Z.test(e)?void 0:N(!1),J[e]=!0)}function g(e,t){return e.indexOf("-")>=0||null!=t.is}function m(e){h(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var v=n(738),_=n(740),y=n(84),b=n(173),w=n(52),x=n(122),C=n(175),E=n(753),T=n(756),P=n(757),k=n(292),M=n(760),S=n(26),R=n(765),D=n(36),A=n(178),I=n(11),O=n(127),F=n(128),N=n(5),L=(n(186),n(58)),B=n(129),j=n(187),W=(n(270),n(190),n(10),x.deleteListener),U=x.listenTo,V=x.registrationNameModules,z={string:!0,number:!0},q=L({children:null}),H=L({style:null}),X=L({__html:null}),G=1,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Z=(I({menuitem:!0},Q),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),J={},$={}.hasOwnProperty;m.displayName="ReactDOMComponent",m.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(f,this);break;case"button":r=E.getNativeProps(this,r,n);break;case"input":T.mountWrapper(this,r,n),r=T.getNativeProps(this,r,n);break;case"option":P.mountWrapper(this,r,n),r=P.getNativeProps(this,r,n);break;case"select":k.mountWrapper(this,r,n),r=k.getNativeProps(this,r,n),n=k.processChildContext(this,r,n);break;case"textarea":M.mountWrapper(this,r,n),r=M.getNativeProps(this,r,n)}l(this,r);var o;if(t.useCreateElement){var a=n[S.ownerDocumentContextKey],i=a.createElement(this._currentElement.type);b.setAttributeForID(i,this._rootNodeID),S.getID(i),this._updateDOMProperties({},r,t,i),this._createInitialChildren(t,r,n,i),o=i}else{var s=this._createOpenTagMarkupAndPutListeners(t,r),u=this._createContentMarkup(t,r,n);o=!u&&Q[this._tag]?s+"/>":s+">"+u+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":r.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(V.hasOwnProperty(r))o&&u(this._rootNodeID,r,o,e);else{r===H&&(o&&(o=this._previousStyleCopy=I({},t.style)),o=_.createMarkupForStyles(o));var a=null;null!=this._tag&&g(this._tag,t)?r!==q&&(a=b.createMarkupForCustomAttribute(r,o)):a=b.createMarkupForProperty(r,o),a&&(n+=" "+a)}}if(e.renderToStaticMarkup)return n;var i=b.createMarkupForID(this._rootNodeID);return n+" "+i},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var a=z[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)r=F(a);else if(null!=i){var s=this.mountChildren(i,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&B(r,o.__html);else{var a=z[typeof t.children]?t.children:null,i=null!=a?null:t.children;if(null!=a)j(r,a);else if(null!=i)for(var s=this.mountChildren(i,e,n),l=0;l<s.length;l++)r.appendChild(s[l])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var o=t.props,a=this._currentElement.props;switch(this._tag){case"button":o=E.getNativeProps(this,o),a=E.getNativeProps(this,a);break;case"input":T.updateWrapper(this),o=T.getNativeProps(this,o),a=T.getNativeProps(this,a);break;case"option":o=P.getNativeProps(this,o),a=P.getNativeProps(this,a);break;case"select":o=k.getNativeProps(this,o),a=k.getNativeProps(this,a);break;case"textarea":M.updateWrapper(this),o=M.getNativeProps(this,o),a=M.getNativeProps(this,a)}l(this,a),this._updateDOMProperties(o,a,e,null),this._updateDOMChildren(o,a,e,r),!O&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=a),"select"===this._tag&&e.getReactMountReady().enqueue(d,this)},_updateDOMProperties:function(e,t,n,r){var o,a,i;for(o in e)if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o))if(o===H){var s=this._previousStyleCopy;for(a in s)s.hasOwnProperty(a)&&(i=i||{},i[a]="");this._previousStyleCopy=null}else V.hasOwnProperty(o)?e[o]&&W(this._rootNodeID,o):(y.properties[o]||y.isCustomAttribute(o))&&(r||(r=S.getNode(this._rootNodeID)),b.deleteValueForProperty(r,o));for(o in t){var l=t[o],c=o===H?this._previousStyleCopy:e[o];if(t.hasOwnProperty(o)&&l!==c)if(o===H)if(l?l=this._previousStyleCopy=I({},l):this._previousStyleCopy=null,c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(i=i||{},i[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(i=i||{},i[a]=l[a])}else i=l;else V.hasOwnProperty(o)?l?u(this._rootNodeID,o,l,n):c&&W(this._rootNodeID,o):g(this._tag,t)?(r||(r=S.getNode(this._rootNodeID)),o===q&&(l=null),b.setValueForAttribute(r,o,l)):(y.properties[o]||y.isCustomAttribute(o))&&(r||(r=S.getNode(this._rootNodeID)),null!=l?b.setValueForProperty(r,o,l):b.deleteValueForProperty(r,o))}i&&(r||(r=S.getNode(this._rootNodeID)),_.setValueForStyles(r,i))},_updateDOMChildren:function(e,t,n,r){var o=z[typeof e.children]?e.children:null,a=z[typeof t.children]?t.children:null,i=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,l=null!=o?null:e.children,u=null!=a?null:t.children,c=null!=o||null!=i,f=null!=a||null!=s;null!=l&&null==u?this.updateChildren(null,n,r):c&&!f&&this.updateTextContent(""),null!=a?o!==a&&this.updateTextContent(""+a):null!=s?i!==s&&this.updateMarkup(""+s):null!=u&&this.updateChildren(u,n,r)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var e=this._wrapperState.listeners;if(e)for(var t=0;t<e.length;t++)e[t].remove();break;case"input":T.unmountWrapper(this);break;case"html":case"head":case"body":N(!1)}if(this.unmountChildren(),x.deleteAllListeners(this._rootNodeID),C.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){var n=this._nodeWithLegacyProperties;n._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var e=S.getNode(this._rootNodeID);e._reactInternalComponent=this,e.getDOMNode=r,e.isMounted=o,e.setState=a,e.replaceState=a,e.forceUpdate=a,e.setProps=i,e.replaceProps=s,e.props=this._currentElement.props,this._nodeWithLegacyProperties=e}return this._nodeWithLegacyProperties}},D.measureMethods(m,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),I(m.prototype,m.Mixin,R.Mixin),e.exports=m},function(e,t,n){"use strict";function r(e){return o.createFactory(e)}var o=n(30),a=(n(296),n(707)),i=a({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);l.asap(r,this);var o=t.name;if("radio"===t.type&&null!=o){for(var a=s.getNode(this._rootNodeID),u=a;u.parentNode;)u=u.parentNode;for(var p=u.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;d<p.length;d++){var h=p[d];if(h!==a&&h.form===a.form){var g=s.getID(h);g?void 0:c(!1);var m=f[g];m?void 0:c(!1),l.asap(r,m)}}}return n}var a=n(177),i=n(174),s=n(26),l=n(37),u=n(11),c=n(5),f={},p={getNativeProps:function(e,t,n){var r=i.getValue(t),o=i.getChecked(t),a=u({},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:e._wrapperState.initialValue,checked:null!=o?o:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return a},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:t.defaultChecked||!1,initialValue:null!=n?n:null,onChange:o.bind(e)}},mountReadyWrapper:function(e){f[e._rootNodeID]=e},unmountWrapper:function(e){delete f[e._rootNodeID]},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&a.updatePropertyByID(e._rootNodeID,"checked",n||!1);var r=i.getValue(t);null!=r&&a.updatePropertyByID(e._rootNodeID,"value",""+r)}};e.exports=p},function(e,t,n){"use strict";var r=n(287),o=n(292),a=n(11),i=(n(10),o.valueContextKey),s={mountWrapper:function(e,t,n){var r=n[i],o=null;if(null!=r)if(o=!1,Array.isArray(r)){for(var a=0;a<r.length;a++)if(""+r[a]==""+t.value){o=!0;break}}else o=""+r==""+t.value;e._wrapperState={selected:o}},getNativeProps:function(e,t,n){var o=a({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(o.selected=e._wrapperState.selected);var i="";return r.forEach(t.children,function(e){null!=e&&("string"!=typeof e&&"number"!=typeof e||(i+=e))}),i&&(o.children=i),o}};e.exports=s},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var a=o.text.length,i=a+r;return{start:a,end:i}}function a(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,a=t.focusNode,i=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(l){return null}var u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:s.toString().length,f=s.cloneRange();f.selectNodeContents(e),f.setEnd(s.startContainer,s.startOffset);var p=r(f.startContainer,f.startOffset,f.endContainer,f.endOffset),d=p?0:f.toString().length,h=d+c,g=document.createRange();g.setStart(n,o),g.setEnd(a,i);var m=g.collapsed;return{start:m?h:d,end:m?d:h}}function i(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),a="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>a){var i=a;a=o,o=i}var s=u(e,o),l=u(e,a);if(s&&l){var f=document.createRange();f.setStart(s.node,s.offset),n.removeAllRanges(),o>a?(n.addRange(f),n.extend(l.node,l.offset)):(f.setEnd(l.node,l.offset),n.addRange(f))}}}var l=n(23),u=n(789),c=n(310),f=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:a,setOffsets:f?i:s};e.exports=p},function(e,t,n){"use strict";var r=n(295),o=n(770),a=n(179);r.inject();var i={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:a};e.exports=i},function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return s.asap(r,this),n}var a=n(174),i=n(177),s=n(37),l=n(11),u=n(5),c=(n(10),{getNativeProps:function(e,t,n){null!=t.dangerouslySetInnerHTML?u(!1):void 0;var r=l({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return r},mountWrapper:function(e,t){var n=t.defaultValue,r=t.children;null!=r&&(null!=n?u(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:u(!1),r=r[0]),n=""+r),null==n&&(n="");var i=a.getValue(t);e._wrapperState={initialValue:""+(null!=i?i:n),onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=a.getValue(t);null!=n&&i.updatePropertyByID(e._rootNodeID,"value",""+n)}});e.exports=c},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(98),a={handleTopLevel:function(e,t,n,a,i){var s=o.extractEvents(e,t,n,a,i);r(s)}};e.exports=a},function(e,t,n){"use strict";function r(e){var t=p.getID(e),n=f.getReactRootIDFromNodeID(t),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function a(e){i(e)}function i(e){for(var t=p.getFirstReactDOM(g(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0;o<e.ancestors.length;o++){t=e.ancestors[o];var a=p.getID(t)||"";v._handleTopLevel(e.topLevelType,t,a,e.nativeEvent,g(e.nativeEvent))}}function s(e){var t=m(window);e(t)}var l=n(265),u=n(23),c=n(59),f=n(85),p=n(26),d=n(37),h=n(11),g=n(183),m=n(702);h(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?l.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?l.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=s.bind(null,e);l.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(a,n)}finally{o.release(n)}}}};e.exports=v},function(e,t,n){"use strict";var r=n(84),o=n(98),a=n(176),i=n(288),s=n(297),l=n(122),u=n(303),c=n(36),f=n(306),p=n(37),d={Component:a.injection,Class:i.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventEmitter:l.injection,NativeComponent:u.injection,Perf:c.injection,RootIndex:f.injection,Updates:p.injection};e.exports=d},function(e,t,n){"use strict";var r=n(287),o=n(289),a=n(288),i=n(755),s=n(30),l=(n(296),n(305)),u=n(179),c=n(11),f=n(790),p=s.createElement,d=s.createFactory,h=s.cloneElement,g={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:o,createElement:p,cloneElement:h,isValidElement:s.isValidElement,PropTypes:l,createClass:a.createClass,createFactory:d,createMixin:function(e){return e},DOM:i,version:u,__spread:c};e.exports=g},function(e,t,n){"use strict";function r(e,t,n){m.push({parentID:e,parentNode:null,type:f.INSERT_MARKUP,markupIndex:v.push(t)-1,content:null,fromIndex:null,toIndex:n})}function o(e,t,n){m.push({parentID:e,parentNode:null,type:f.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:t,toIndex:n})}function a(e,t){m.push({parentID:e,parentNode:null,type:f.REMOVE_NODE,markupIndex:null,content:null,fromIndex:t,toIndex:null})}function i(e,t){m.push({parentID:e,parentNode:null,type:f.SET_MARKUP,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function s(e,t){m.push({parentID:e,parentNode:null,type:f.TEXT_CONTENT,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function l(){m.length&&(c.processChildrenUpdates(m,v),u())}function u(){m.length=0,v.length=0}var c=n(176),f=n(302),p=(n(53),n(69)),d=n(751),h=n(787),g=0,m=[],v=[],_={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return d.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r){var o;return o=h(t),d.updateChildren(e,o,n,r)},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],a=0;for(var i in r)if(r.hasOwnProperty(i)){var s=r[i],l=this._rootNodeID+i,u=p.mountComponent(s,l,t,n);s._mountIndex=a++,o.push(u)}return o},updateTextContent:function(e){g++;var t=!0;try{var n=this._renderedChildren;d.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChild(n[r]);this.setTextContent(e),t=!1}finally{g--,g||(t?u():l())}},updateMarkup:function(e){g++;var t=!0;try{var n=this._renderedChildren;d.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setMarkup(e),t=!1}finally{g--,g||(t?u():l())}},updateChildren:function(e,t,n){g++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{g--,g||(r?u():l())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=this._reconcilerUpdateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var a,i=0,s=0;for(a in o)if(o.hasOwnProperty(a)){var l=r&&r[a],u=o[a];l===u?(this.moveChild(l,s,i),i=Math.max(l._mountIndex,i),l._mountIndex=s):(l&&(i=Math.max(l._mountIndex,i),this._unmountChild(l)),this._mountChildByNameAtIndex(u,a,s,t,n)),s++}for(a in r)!r.hasOwnProperty(a)||o&&o.hasOwnProperty(a)||this._unmountChild(r[a])}},unmountChildren:function(){var e=this._renderedChildren;d.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){a(this._rootNodeID,e._mountIndex)},setTextContent:function(e){s(this._rootNodeID,e)},setMarkup:function(e){i(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var a=this._rootNodeID+t,i=p.mountComponent(e,a,r,o);e._mountIndex=n,this.createChild(e,i)},_unmountChild:function(e){this.removeChild(e),e._mountIndex=null}}};e.exports=_},function(e,t,n){"use strict";var r=n(5),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){o.isValidOwner(n)?void 0:r(!1),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){o.isValidOwner(n)?void 0:r(!1),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};e.exports=o},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=!e&&s.useCreateElement}var o=n(172),a=n(59),i=n(122),s=n(291),l=n(300),u=n(126),c=n(11),f={initialize:l.getSelectionInformation,close:l.restoreSelection},p={initialize:function(){var e=i.isEnabled();return i.setEnabled(!1),e},close:function(e){i.setEnabled(e)}},d={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[f,p,d],g={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};c(r.prototype,u.Mixin,g),a.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):a.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):a.removeComponentAsRefFrom(t,e,n)}var a=n(766),i={};i.attachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&r(n,e,t._owner)}},i.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,r=null===t||t===!1;return n||r||t._owner!==e._owner||t.ref!==e.ref},i.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&o(n,e,t._owner)}},e.exports=i},function(e,t){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(e){}};e.exports=n},function(e,t,n){"use strict";function r(e){i.isValidElement(e)?void 0:h(!1);var t;try{f.injection.injectBatchingStrategy(u);var n=s.createReactRootID();return t=c.getPooled(!1),t.perform(function(){var r=d(e,null),o=r.mountComponent(n,t,p);return l.addChecksumToMarkup(o)},null)}finally{c.release(t),f.injection.injectBatchingStrategy(a)}}function o(e){i.isValidElement(e)?void 0:h(!1);var t;try{f.injection.injectBatchingStrategy(u);var n=s.createReactRootID();return t=c.getPooled(!0),t.perform(function(){var r=d(e,null);return r.mountComponent(n,t,p)},null)}finally{c.release(t),f.injection.injectBatchingStrategy(a)}}var a=n(294),i=n(30),s=n(85),l=n(301),u=n(769),c=n(771),f=n(37),p=n(95),d=n(185),h=n(5);e.exports={renderToString:r,renderToStaticMarkup:o}},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=a.getPooled(null),this.useCreateElement=!1}var o=n(59),a=n(172),i=n(126),s=n(11),l=n(44),u={initialize:function(){this.reactMountReady.reset()},close:l},c=[u],f={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null}};s(r.prototype,i.Mixin,f),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(84),o=r.injection.MUST_USE_ATTRIBUTE,a={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},i={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:o,xmlLang:o,xmlSpace:o,y1:o,y2:o,y:o},DOMAttributeNamespaces:{xlinkActuate:a.xlink,xlinkArcrole:a.xlink,xlinkHref:a.xlink,xlinkRole:a.xlink,xlinkShow:a.xlink,xlinkTitle:a.xlink,xlinkType:a.xlink,xmlBase:a.xml,xmlLang:a.xml,xmlSpace:a.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};e.exports=i},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&l.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(b||null==v||v!==c())return null;var n=r(v);if(!y||!d(y,n)){y=n;var o=u.getPooled(m.select,_,e,t);return o.type="select",o.target=v,i.accumulateTwoPhaseDispatches(o),o}return null}var a=n(52),i=n(99),s=n(23),l=n(300),u=n(70),c=n(268),f=n(311),p=n(58),d=n(270),h=a.topLevelTypes,g=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,m={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},v=null,_=null,y=null,b=!1,w=!1,x=p({onSelect:null}),C={eventTypes:m,extractEvents:function(e,t,n,r,a){if(!w)return null;switch(e){case h.topFocus:(f(t)||"true"===t.contentEditable)&&(v=t,_=n,y=null);break;case h.topBlur:v=null,_=null,y=null;break;case h.topMouseDown:b=!0;break;case h.topContextMenu:case h.topMouseUp:return b=!1,o(r,a);case h.topSelectionChange:if(g)break;case h.topKeyDown:case h.topKeyUp:return o(r,a)}return null},didPutListener:function(e,t,n){t===x&&(w=!0)}};e.exports=C},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){"use strict";var r=n(52),o=n(265),a=n(99),i=n(26),s=n(776),l=n(70),u=n(779),c=n(781),f=n(125),p=n(778),d=n(782),h=n(101),g=n(783),m=n(44),v=n(181),_=n(5),y=n(58),b=r.topLevelTypes,w={abort:{phasedRegistrationNames:{bubbled:y({onAbort:!0}),captured:y({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:y({onBlur:!0}),captured:y({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:y({onCanPlay:!0}),captured:y({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:y({onCanPlayThrough:!0}),captured:y({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:y({onClick:!0}),captured:y({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:y({onContextMenu:!0}),captured:y({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:y({onCopy:!0}),captured:y({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:y({onCut:!0}),captured:y({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:y({onDoubleClick:!0}),captured:y({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:y({onDrag:!0}),captured:y({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:y({onDragEnd:!0}),captured:y({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:y({onDragEnter:!0}),captured:y({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:y({onDragExit:!0}),captured:y({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:y({onDragLeave:!0}),captured:y({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:y({onDragOver:!0}),captured:y({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:y({onDragStart:!0}),captured:y({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:y({onDrop:!0}),captured:y({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:y({onDurationChange:!0}),captured:y({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:y({onEmptied:!0}),captured:y({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:y({onEncrypted:!0}),captured:y({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:y({onEnded:!0}),captured:y({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:y({onError:!0}),captured:y({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:y({onFocus:!0}),captured:y({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:y({onInput:!0}),captured:y({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:y({onKeyDown:!0}),captured:y({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:y({onKeyPress:!0}),captured:y({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{ +bubbled:y({onKeyUp:!0}),captured:y({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:y({onLoad:!0}),captured:y({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:y({onLoadedData:!0}),captured:y({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:y({onLoadedMetadata:!0}),captured:y({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:y({onLoadStart:!0}),captured:y({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:y({onMouseDown:!0}),captured:y({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:y({onMouseMove:!0}),captured:y({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:y({onMouseOut:!0}),captured:y({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:y({onMouseOver:!0}),captured:y({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:y({onMouseUp:!0}),captured:y({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:y({onPaste:!0}),captured:y({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:y({onPause:!0}),captured:y({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:y({onPlay:!0}),captured:y({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:y({onPlaying:!0}),captured:y({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:y({onProgress:!0}),captured:y({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:y({onRateChange:!0}),captured:y({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:y({onReset:!0}),captured:y({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:y({onScroll:!0}),captured:y({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:y({onSeeked:!0}),captured:y({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:y({onSeeking:!0}),captured:y({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:y({onStalled:!0}),captured:y({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:y({onSubmit:!0}),captured:y({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:y({onSuspend:!0}),captured:y({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:y({onTimeUpdate:!0}),captured:y({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:y({onTouchCancel:!0}),captured:y({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:y({onTouchEnd:!0}),captured:y({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:y({onTouchMove:!0}),captured:y({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:y({onTouchStart:!0}),captured:y({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:y({onVolumeChange:!0}),captured:y({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:y({onWaiting:!0}),captured:y({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:y({onWheel:!0}),captured:y({onWheelCapture:!0})}}},x={topAbort:w.abort,topBlur:w.blur,topCanPlay:w.canPlay,topCanPlayThrough:w.canPlayThrough,topClick:w.click,topContextMenu:w.contextMenu,topCopy:w.copy,topCut:w.cut,topDoubleClick:w.doubleClick,topDrag:w.drag,topDragEnd:w.dragEnd,topDragEnter:w.dragEnter,topDragExit:w.dragExit,topDragLeave:w.dragLeave,topDragOver:w.dragOver,topDragStart:w.dragStart,topDrop:w.drop,topDurationChange:w.durationChange,topEmptied:w.emptied,topEncrypted:w.encrypted,topEnded:w.ended,topError:w.error,topFocus:w.focus,topInput:w.input,topKeyDown:w.keyDown,topKeyPress:w.keyPress,topKeyUp:w.keyUp,topLoad:w.load,topLoadedData:w.loadedData,topLoadedMetadata:w.loadedMetadata,topLoadStart:w.loadStart,topMouseDown:w.mouseDown,topMouseMove:w.mouseMove,topMouseOut:w.mouseOut,topMouseOver:w.mouseOver,topMouseUp:w.mouseUp,topPaste:w.paste,topPause:w.pause,topPlay:w.play,topPlaying:w.playing,topProgress:w.progress,topRateChange:w.rateChange,topReset:w.reset,topScroll:w.scroll,topSeeked:w.seeked,topSeeking:w.seeking,topStalled:w.stalled,topSubmit:w.submit,topSuspend:w.suspend,topTimeUpdate:w.timeUpdate,topTouchCancel:w.touchCancel,topTouchEnd:w.touchEnd,topTouchMove:w.touchMove,topTouchStart:w.touchStart,topVolumeChange:w.volumeChange,topWaiting:w.waiting,topWheel:w.wheel};for(var C in x)x[C].dependencies=[C];var E=y({onClick:null}),T={},P={eventTypes:w,extractEvents:function(e,t,n,r,o){var i=x[e];if(!i)return null;var m;switch(e){case b.topAbort:case b.topCanPlay:case b.topCanPlayThrough:case b.topDurationChange:case b.topEmptied:case b.topEncrypted:case b.topEnded:case b.topError:case b.topInput:case b.topLoad:case b.topLoadedData:case b.topLoadedMetadata:case b.topLoadStart:case b.topPause:case b.topPlay:case b.topPlaying:case b.topProgress:case b.topRateChange:case b.topReset:case b.topSeeked:case b.topSeeking:case b.topStalled:case b.topSubmit:case b.topSuspend:case b.topTimeUpdate:case b.topVolumeChange:case b.topWaiting:m=l;break;case b.topKeyPress:if(0===v(r))return null;case b.topKeyDown:case b.topKeyUp:m=c;break;case b.topBlur:case b.topFocus:m=u;break;case b.topClick:if(2===r.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:m=f;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:m=p;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:m=d;break;case b.topScroll:m=h;break;case b.topWheel:m=g;break;case b.topCopy:case b.topCut:case b.topPaste:m=s}m?void 0:_(!1);var y=m.getPooled(i,n,r,o);return a.accumulateTwoPhaseDispatches(y),y},didPutListener:function(e,t,n){if(t===E){var r=i.getNode(e);T[e]||(T[e]=o.listen(r,"click",m))}},willDeleteListener:function(e,t){t===E&&(T[e].remove(),delete T[e])}};e.exports=P},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(70),a={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(70),a={data:null};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(125),a={dataTransfer:null};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(101),a={relatedTarget:null};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(70),a={data:null};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(101),a=n(181),i=n(788),s=n(182),l={key:i,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?a(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?a(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,l),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(101),a=n(182),i={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:a};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(125),a={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,a),e.exports=r},function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0,a=e.length,i=-4&a;i>o;){for(;o<Math.min(o+4096,i);o+=4)n+=(t+=e.charCodeAt(o))+(t+=e.charCodeAt(o+1))+(t+=e.charCodeAt(o+2))+(t+=e.charCodeAt(o+3));t%=r,n%=r}for(;a>o;o++)n+=t+=e.charCodeAt(o);return t%=r,n%=r,t|n<<16}var r=65521;e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||a.hasOwnProperty(e)&&a[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=n(284),a=o.isUnitlessNumber;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,o){return o}n(11),n(10);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e,o=void 0===r[n];o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return a(e,r,t),t}var a=n(189);n(10);e.exports=o},function(e,t,n){"use strict";function r(e){if(e.key){var t=a[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?i[e.keyCode]||"Unidentified":""}var o=n(181),a={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),a=0,i=0;o;){if(3===o.nodeType){if(i=a+o.textContent.length,t>=a&&i>=t)return{node:o,offset:t-a};a=i}o=n(r(o))}}e.exports=o},function(e,t,n){"use strict";function r(e){return o.isValidElement(e)?void 0:a(!1),e}var o=n(30),a=n(5);e.exports=r},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(128);e.exports=r},function(e,t,n){"use strict";var r=n(26);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){var r,o;!function(a,i){r=[n(794)],o=function(e){return i(e,a)}.apply(t,r),!(void 0!==o&&(e.exports=o))}(this,function(e,t,n){function r(t){return e.isArray(t)?"array":e.isDate(t)?"date":e.isRegExp(t)?"regex":typeof t}function o(e){var t=r(e);return l[t]?t:"*"}function a(t){return e.each(i.call(arguments,1),function(n){e.each(n,function(e,n){l[o(e)](t,n,e)})}),t}var i=Array.prototype.slice,s=function(){for(var e=i.call(arguments,0);e.length;)s.rivet(e.shift())},l={"*":function(e,t,n){e[t]=n},object:function(e,t,n){e[t]=a(e[t]||{},n)},array:function(t,n,r){t[n]=[],e.each(r,function(e,r){l[o(e)](t[n],r,e)},this)}};return s.rivet=function(e){e.hasOwnProperty("extend")||(e.extend=function(t,n,r){return s.extend(e,t,n,r)}),e.hasOwnProperty("compose")||(e.compose=function(){return s.compose.apply(this,[e].concat(i.call(arguments,0)))}),e.hasOwnProperty("inherits")||(e.inherits=function(t,n,r){return s.inherits(e,t,n,r)}),e.hasOwnProperty("mixin")||(e.mixin=function(){return s.mixin.apply(this,[e].concat(i.call(arguments,0)))}),e.hasOwnProperty("punch")||(e.punch=function(){return s.punch.apply(this,[e].concat(i.call(arguments,0)))})},s.inherits=function(t,n,r,o){o=o||{};var i,l=function(){},u=function(){n.apply(this,arguments)};return"object"==typeof t?(t.hasOwnProperty("constructor")&&(u=t.constructor),i=t):(u=t,i=t.prototype),s.rivet(u),o.deep?a(u,n,r):e.defaults(u,n,r),l.prototype=n.prototype,u.prototype=new l,o.deep?a(u.prototype,i,{constructor:u}):e.extend(u.prototype,i,{constructor:u}),u.__super=n,u.__super__=n.prototype,u},s.extend=function(e,t,n,r){return s.inherits(t,e,n,r)},s.compose=function(){var t=i.call(arguments,0),n=t.shift();s.rivet(n);var r=e.reduce(t,function(e,t){return t.hasOwnProperty("_preInit")&&e.preInit.push(t._preInit),t.hasOwnProperty("_postInit")&&e.postInit.push(t._postInit),t=t.mixin||t,e.items.push(t),e},{items:[],preInit:[],postInit:[]}),o=n.extend({constructor:function(){var t=i.call(arguments,0);e.each(r.preInit,function(e){e.apply(this,t)},this),n.prototype.constructor.apply(this,t),e.each(r.postInit,function(e){e.apply(this,t)},this)}});return s.rivet(o),e.defaults(o.prototype,e.extend.apply(null,[{}].concat(r.items))),o},s.mixin=function(){var t=i.call(arguments,0),n=t.shift();return s.rivet(n),e.defaults(n.prototype,e.extend.apply(null,[{}].concat(t))),n},s.punch=function(){var t=i.call(arguments,0),n=t.shift();return s.rivet(n),e.extend(n.prototype,e.extend.apply(null,[{}].concat(t))),n},s})},function(e,t,n){var r;(function(e,o){(function(){function a(e,t,n){for(var r=(n||0)-1,o=e?e.length:0;++r<o;)if(e[r]===t)return r;return-1}function i(e,t){var n=typeof t;if(e=e.cache,"boolean"==n||null==t)return e[t]?0:-1;"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:E+t;return e=(e=e[n])&&e[r],"object"==n?e&&a(e,t)>-1?0:-1:e?0:-1}function s(e){var t=this.cache,n=typeof e;if("boolean"==n||null==e)t[e]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?e:E+e,o=t[n]||(t[n]={});"object"==n?(o[r]||(o[r]=[])).push(e):o[r]=!0}}function l(e){return e.charCodeAt(0)}function u(e,t){for(var n=e.criteria,r=t.criteria,o=-1,a=n.length;++o<a;){var i=n[o],s=r[o];if(i!==s){if(i>s||"undefined"==typeof i)return 1;if(s>i||"undefined"==typeof s)return-1}}return e.index-t.index}function c(e){var t=-1,n=e.length,r=e[0],o=e[n/2|0],a=e[n-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&a&&"object"==typeof a)return!1;var i=d();i["false"]=i["null"]=i["true"]=i.undefined=!1;var l=d();for(l.array=e,l.cache=i,l.push=s;++t<n;)l.push(e[t]);return l}function f(e){return"\\"+oe[e]}function p(){return b.pop()||[]}function d(){return w.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function h(e){return"function"!=typeof e.toString&&"string"==typeof(e+"")}function g(e){e.length=0,b.length<P&&b.push(e)}function m(e){var t=e.cache;t&&m(t),e.array=e.cache=e.criteria=e.object=e.number=e.string=e.value=null,w.length<P&&w.push(e)}function v(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var r=-1,o=n-t||0,a=Array(0>o?0:o);++r<o;)a[r]=e[t+r];return a}function _(e){function t(e){return e&&"object"==typeof e&&!fr(e)&&qn.call(e,"__wrapped__")?e:new n(e)}function n(e,t){this.__chain__=!!t,this.__wrapped__=e}function r(e){function t(){if(r){var e=v(r);Hn.apply(e,arguments)}if(this instanceof t){var a=s(n.prototype),i=n.apply(a,e||arguments);return Le(i)?i:a}return n.apply(o,e||arguments)}var n=e[0],r=e[2],o=e[4];return cr(t,e),t}function o(e,t,n,r,a){if(n){var i=n(e);if("undefined"!=typeof i)return i}var s=Le(e);if(!s)return e;var l=Ln.call(e);if(!$[l]||!lr.nodeClass&&h(e))return e;var u=ir[l];switch(l){case H:case X:return new u(+e);case Q:case J:return new u(e);case Z:return i=u(e.source,I.exec(e)),i.lastIndex=e.lastIndex,i}var c=fr(e);if(t){var f=!r;r||(r=p()),a||(a=p());for(var d=r.length;d--;)if(r[d]==e)return a[d];i=c?u(e.length):{}}else i=c?v(e):xr({},e);return c&&(qn.call(e,"index")&&(i.index=e.index),qn.call(e,"input")&&(i.input=e.input)),t?(r.push(e),a.push(i),(c?wr:Tr)(e,function(e,s){i[s]=o(e,t,n,r,a)}),f&&(g(r),g(a)),i):i}function s(e,t){return Le(e)?Zn(e):{}}function b(e,t,n){if("function"!=typeof e)return on;if("undefined"==typeof t||!("prototype"in e))return e;var r=e.__bindData__;if("undefined"==typeof r&&(lr.funcNames&&(r=!e.name),r=r||!lr.funcDecomp,!r)){var o=Vn.call(e);lr.funcNames||(r=!O.test(o)),r||(r=B.test(o),cr(e,r))}if(r===!1||r!==!0&&1&r[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,a){return e.call(t,n,r,o,a)}}return Ut(e,t)}function w(e){function t(){var e=u?i:this;if(o){var h=v(o);Hn.apply(h,arguments)}if((a||f)&&(h||(h=v(arguments)),a&&Hn.apply(h,a),f&&h.length<l))return r|=16,w([n,p?r:-4&r,h,null,i,l]);if(h||(h=arguments),c&&(n=e[d]),this instanceof t){e=s(n.prototype);var g=n.apply(e,h);return Le(g)?g:e}return n.apply(e,h)}var n=e[0],r=e[1],o=e[2],a=e[3],i=e[4],l=e[5],u=1&r,c=2&r,f=4&r,p=8&r,d=n;return cr(t,e),t}function P(e,t){var n=-1,r=ge(),o=e?e.length:0,s=o>=T&&r===a,l=[];if(s){var u=c(t);u?(r=i,t=u):s=!1}for(;++n<o;){var f=e[n];r(t,f)<0&&l.push(f)}return s&&m(t),l}function oe(e,t,n,r){for(var o=(r||0)-1,a=e?e.length:0,i=[];++o<a;){var s=e[o];if(s&&"object"==typeof s&&"number"==typeof s.length&&(fr(s)||ye(s))){t||(s=oe(s,t,n));var l=-1,u=s.length,c=i.length;for(i.length+=u;++l<u;)i[c++]=s[l]}else n||i.push(s)}return i}function ie(e,t,n,r,o,a){if(n){var i=n(e,t);if("undefined"!=typeof i)return!!i}if(e===t)return 0!==e||1/e==1/t;var s=typeof e,l=typeof t;if(!(e!==e||e&&re[s]||t&&re[l]))return!1;if(null==e||null==t)return e===t;var u=Ln.call(e),c=Ln.call(t);if(u==z&&(u=K),c==z&&(c=K),u!=c)return!1;switch(u){case H:case X:return+e==+t;case Q:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case Z:case J:return e==Rn(t)}var f=u==q;if(!f){var d=qn.call(e,"__wrapped__"),m=qn.call(t,"__wrapped__");if(d||m)return ie(d?e.__wrapped__:e,m?t.__wrapped__:t,n,r,o,a);if(u!=K||!lr.nodeClass&&(h(e)||h(t)))return!1;var v=!lr.argsObject&&ye(e)?Mn:e.constructor,_=!lr.argsObject&&ye(t)?Mn:t.constructor;if(v!=_&&!(Ne(v)&&v instanceof v&&Ne(_)&&_ instanceof _)&&"constructor"in e&&"constructor"in t)return!1}var y=!o;o||(o=p()),a||(a=p());for(var b=o.length;b--;)if(o[b]==e)return a[b]==t;var w=0;if(i=!0,o.push(e),a.push(t),f){if(b=e.length,w=t.length,i=w==b,i||r)for(;w--;){var x=b,C=t[w];if(r)for(;x--&&!(i=ie(e[x],C,n,r,o,a)););else if(!(i=ie(e[w],C,n,r,o,a)))break}}else Er(t,function(t,s,l){return qn.call(l,s)?(w++,i=qn.call(e,s)&&ie(e[s],t,n,r,o,a)):void 0}),i&&!r&&Er(e,function(e,t,n){return qn.call(n,t)?i=--w>-1:void 0});return o.pop(),a.pop(),y&&(g(o),g(a)),i}function se(e,t,n,r,o){(fr(t)?rt:Tr)(t,function(t,a){var i,s,l=t,u=e[a];if(t&&((s=fr(t))||Pr(t))){for(var c=r.length;c--;)if(i=r[c]==t){u=o[c];break}if(!i){var f;n&&(l=n(u,t),(f="undefined"!=typeof l)&&(u=l)),f||(u=s?fr(u)?u:[]:Pr(u)?u:{}),r.push(t),o.push(u),f||se(u,t,n,r,o)}}else n&&(l=n(u,t),"undefined"==typeof l&&(l=t)),"undefined"!=typeof l&&(u=l);e[a]=u})}function le(e,t){return e+Un(ar()*(t-e+1))}function ce(e,t,n){var r=-1,o=ge(),s=e?e.length:0,l=[],u=!t&&s>=T&&o===a,f=n||u?p():l;if(u){var d=c(f);o=i,f=d}for(;++r<s;){var h=e[r],v=n?n(h,r,e):h;(t?!r||f[f.length-1]!==v:o(f,v)<0)&&((n||u)&&f.push(v),l.push(h))}return u?(g(f.array),m(f)):n&&g(f),l}function fe(e){return function(n,r,o){var a={};if(r=t.createCallback(r,o,3),fr(n))for(var i=-1,s=n.length;++i<s;){var l=n[i];e(a,l,r(l,i,n),n)}else wr(n,function(t,n,o){e(a,t,r(t,n,o),o)});return a}}function pe(e,t,n,o,a,i){var s=1&t,l=2&t,u=4&t,c=16&t,f=32&t;if(!l&&!Ne(e))throw new Dn;c&&!n.length&&(t&=-17,c=n=!1),f&&!o.length&&(t&=-33,f=o=!1);var p=e&&e.__bindData__;if(p&&p!==!0)return p=v(p),p[2]&&(p[2]=v(p[2])),p[3]&&(p[3]=v(p[3])),!s||1&p[1]||(p[4]=a),!s&&1&p[1]&&(t|=8),!u||4&p[1]||(p[5]=i),c&&Hn.apply(p[2]||(p[2]=[]),n),f&&Qn.apply(p[3]||(p[3]=[]),o),p[1]|=t,pe.apply(null,p);var d=1==t||17===t?r:w;return d([e,t,n,o,a,i])}function de(){ne.shadowedProps=U,ne.array=ne.bottom=ne.loop=ne.top="",ne.init="iterable",ne.useHas=!0;for(var e,t=0;e=arguments[t];t++)for(var n in e)ne[n]=e[n];var r=ne.args;ne.firstArg=/^[^,]+/.exec(r)[0];var o=Tn("baseCreateCallback, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, isArray, isString, keys, objectProto, objectTypes, nonEnumProps, stringClass, stringProto, toString","return function("+r+") {\n"+ur(ne)+"\n}");return o(b,G,In,qn,C,ye,fr,Ve,ne.keys,On,re,sr,J,Fn,Ln)}function he(e){return vr[e]}function ge(){var e=(e=t.indexOf)===Et?a:e;return e}function me(e){return"function"==typeof e&&Bn.test(e)}function ve(e){var t,n;return!e||Ln.call(e)!=K||(t=e.constructor,Ne(t)&&!(t instanceof t))||!lr.argsClass&&ye(e)||!lr.nodeClass&&h(e)?!1:lr.ownLast?(Er(e,function(e,t,r){return n=qn.call(r,t),!1}),n!==!1):(Er(e,function(e,t){n=t}),"undefined"==typeof n||qn.call(e,n))}function _e(e){return _r[e]}function ye(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Ln.call(e)==z||!1}function be(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n=t,t=!1),o(e,t,"function"==typeof n&&b(n,r,1))}function we(e,t,n){return o(e,!0,"function"==typeof t&&b(t,n,1))}function xe(e,t){var n=s(e);return t?xr(n,t):n}function Ce(e,n,r){var o;return n=t.createCallback(n,r,3),Tr(e,function(e,t,r){return n(e,t,r)?(o=t,!1):void 0}),o}function Ee(e,n,r){var o;return n=t.createCallback(n,r,3),Pe(e,function(e,t,r){return n(e,t,r)?(o=t,!1):void 0}),o}function Te(e,t,n){var r=[];Er(e,function(e,t){r.push(t,e)});var o=r.length;for(t=b(t,n,3);o--&&t(r[o--],r[o],e)!==!1;);return e}function Pe(e,t,n){var r=dr(e),o=r.length;for(t=b(t,n,3);o--;){var a=r[o];if(t(e[a],a,e)===!1)break}return e}function ke(e){var t=[];return Er(e,function(e,n){Ne(e)&&t.push(n)}),t.sort()}function Me(e,t){return e?qn.call(e,t):!1}function Se(e){for(var t=-1,n=dr(e),r=n.length,o={};++t<r;){var a=n[t];o[e[a]]=a}return o}function Re(e){return e===!0||e===!1||e&&"object"==typeof e&&Ln.call(e)==H||!1}function De(e){return e&&"object"==typeof e&&Ln.call(e)==X||!1}function Ae(e){return e&&1===e.nodeType||!1}function Ie(e){var t=!0;if(!e)return t;var n=Ln.call(e),r=e.length;return n==q||n==J||(lr.argsClass?n==z:ye(e))||n==K&&"number"==typeof r&&Ne(e.splice)?!r:(Tr(e,function(){return t=!1}),t)}function Oe(e,t,n,r){return ie(e,t,"function"==typeof n&&b(n,r,2))}function Fe(e){return $n(e)&&!er(parseFloat(e))}function Ne(e){return"function"==typeof e}function Le(e){return!(!e||!re[typeof e])}function Be(e){return We(e)&&e!=+e}function je(e){return null===e}function We(e){return"number"==typeof e||e&&"object"==typeof e&&Ln.call(e)==Q||!1}function Ue(e){return e&&re[typeof e]&&Ln.call(e)==Z||!1}function Ve(e){return"string"==typeof e||e&&"object"==typeof e&&Ln.call(e)==J||!1}function ze(e){return"undefined"==typeof e}function qe(e,n,r){var o={};return n=t.createCallback(n,r,3),Tr(e,function(e,t,r){o[t]=n(e,t,r)}),o}function He(e){var t=arguments,n=2;if(!Le(e))return e;if("number"!=typeof t[2]&&(n=t.length),n>3&&"function"==typeof t[n-2])var r=b(t[--n-1],t[n--],2);else n>2&&"function"==typeof t[n-1]&&(r=t[--n]);for(var o=v(arguments,1,n),a=-1,i=p(),s=p();++a<n;)se(e,o[a],r,i,s);return g(i),g(s),e}function Xe(e,n,r){var o={};if("function"!=typeof n){var a=[];Er(e,function(e,t){a.push(t)}),a=P(a,oe(arguments,!0,!1,1));for(var i=-1,s=a.length;++i<s;){var l=a[i];o[l]=e[l]}}else n=t.createCallback(n,r,3),Er(e,function(e,t,r){n(e,t,r)||(o[t]=e)});return o}function Ge(e){for(var t=-1,n=dr(e),r=n.length,o=wn(r);++t<r;){var a=n[t];o[t]=[a,e[a]]}return o}function Ye(e,n,r){var o={};if("function"!=typeof n)for(var a=-1,i=oe(arguments,!0,!1,1),s=Le(e)?i.length:0;++a<s;){var l=i[a];l in e&&(o[l]=e[l])}else n=t.createCallback(n,r,3),Er(e,function(e,t,r){n(e,t,r)&&(o[t]=e)});return o}function Qe(e,n,r,o){var a=fr(e);if(null==r)if(a)r=[];else{var i=e&&e.constructor,l=i&&i.prototype;r=s(l)}return n&&(n=t.createCallback(n,o,4),(a?wr:Tr)(e,function(e,t,o){return n(r,e,t,o)})),r}function Ke(e){for(var t=-1,n=dr(e),r=n.length,o=wn(r);++t<r;)o[t]=e[n[t]];return o}function Ze(e){var t=arguments,n=-1,r=oe(t,!0,!1,1),o=t[2]&&t[2][t[1]]===e?1:r.length,a=wn(o);for(lr.unindexedChars&&Ve(e)&&(e=e.split(""));++n<o;)a[n]=e[r[n]];return a}function Je(e,t,n){var r=-1,o=ge(),a=e?e.length:0,i=!1;return n=(0>n?nr(0,a+n):n)||0,fr(e)?i=o(e,t,n)>-1:"number"==typeof a?i=(Ve(e)?e.indexOf(t,n):o(e,t,n))>-1:wr(e,function(e){return++r>=n?!(i=e===t):void 0}),i}function $e(e,n,r){var o=!0;if(n=t.createCallback(n,r,3),fr(e))for(var a=-1,i=e.length;++a<i&&(o=!!n(e[a],a,e)););else wr(e,function(e,t,r){return o=!!n(e,t,r)});return o}function et(e,n,r){var o=[];if(n=t.createCallback(n,r,3),fr(e))for(var a=-1,i=e.length;++a<i;){var s=e[a];n(s,a,e)&&o.push(s)}else wr(e,function(e,t,r){n(e,t,r)&&o.push(e)});return o}function tt(e,n,r){if(n=t.createCallback(n,r,3),!fr(e)){var o;return wr(e,function(e,t,r){return n(e,t,r)?(o=e,!1):void 0}),o}for(var a=-1,i=e.length;++a<i;){var s=e[a];if(n(s,a,e))return s}}function nt(e,n,r){var o;return n=t.createCallback(n,r,3),ot(e,function(e,t,r){return n(e,t,r)?(o=e,!1):void 0}),o}function rt(e,t,n){if(t&&"undefined"==typeof n&&fr(e))for(var r=-1,o=e.length;++r<o&&t(e[r],r,e)!==!1;);else wr(e,t,n);return e}function ot(e,t,n){var r=e,o=e?e.length:0;if(t=t&&"undefined"==typeof n?t:b(t,n,3),fr(e))for(;o--&&t(e[o],o,e)!==!1;);else{if("number"!=typeof o){var a=dr(e);o=a.length}else lr.unindexedChars&&Ve(e)&&(r=e.split(""));wr(e,function(e,n,i){return n=a?a[--o]:--o,t(r[n],n,i)})}return e}function at(e,t){var n=v(arguments,2),r=-1,o="function"==typeof t,a=e?e.length:0,i=wn("number"==typeof a?a:0);return rt(e,function(e){i[++r]=(o?t:e[t]).apply(e,n)}),i}function it(e,n,r){var o=-1,a=e?e.length:0,i=wn("number"==typeof a?a:0);if(n=t.createCallback(n,r,3),fr(e))for(;++o<a;)i[o]=n(e[o],o,e);else wr(e,function(e,t,r){i[++o]=n(e,t,r)});return i}function st(e,n,r){var o=-(1/0),a=o;if("function"!=typeof n&&r&&r[n]===e&&(n=null),null==n&&fr(e))for(var i=-1,s=e.length;++i<s;){var u=e[i];u>a&&(a=u)}else n=null==n&&Ve(e)?l:t.createCallback(n,r,3),wr(e,function(e,t,r){var i=n(e,t,r);i>o&&(o=i,a=e)});return a}function lt(e,n,r){var o=1/0,a=o;if("function"!=typeof n&&r&&r[n]===e&&(n=null),null==n&&fr(e))for(var i=-1,s=e.length;++i<s;){var u=e[i];a>u&&(a=u)}else n=null==n&&Ve(e)?l:t.createCallback(n,r,3),wr(e,function(e,t,r){var i=n(e,t,r);o>i&&(o=i,a=e)});return a}function ut(e,n,r,o){var a=arguments.length<3;if(n=t.createCallback(n,o,4),fr(e)){var i=-1,s=e.length;for(a&&(r=e[++i]);++i<s;)r=n(r,e[i],i,e)}else wr(e,function(e,t,o){r=a?(a=!1,e):n(r,e,t,o)});return r}function ct(e,n,r,o){var a=arguments.length<3;return n=t.createCallback(n,o,4),ot(e,function(e,t,o){r=a?(a=!1,e):n(r,e,t,o)}),r}function ft(e,n,r){return n=t.createCallback(n,r,3),et(e,function(e,t,r){return!n(e,t,r)})}function pt(e,t,n){if(e&&"number"!=typeof e.length?e=Ke(e):lr.unindexedChars&&Ve(e)&&(e=e.split("")),null==t||n)return e?e[le(0,e.length-1)]:y;var r=dt(e);return r.length=rr(nr(0,t),r.length),r}function dt(e){var t=-1,n=e?e.length:0,r=wn("number"==typeof n?n:0);return rt(e,function(e){var n=le(0,++t);r[t]=r[n],r[n]=e}),r}function ht(e){var t=e?e.length:0;return"number"==typeof t?t:dr(e).length}function gt(e,n,r){var o;if(n=t.createCallback(n,r,3),fr(e))for(var a=-1,i=e.length;++a<i&&!(o=n(e[a],a,e)););else wr(e,function(e,t,r){return!(o=n(e,t,r))});return!!o}function mt(e,n,r){var o=-1,a=fr(n),i=e?e.length:0,s=wn("number"==typeof i?i:0);for(a||(n=t.createCallback(n,r,3)),rt(e,function(e,t,r){var i=s[++o]=d();a?i.criteria=it(n,function(t){return e[t]}):(i.criteria=p())[0]=n(e,t,r),i.index=o,i.value=e}),i=s.length,s.sort(u);i--;){var l=s[i];s[i]=l.value,a||g(l.criteria),m(l)}return s}function vt(e){return e&&"number"==typeof e.length?lr.unindexedChars&&Ve(e)?e.split(""):v(e):Ke(e)}function _t(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var o=e[t];o&&r.push(o)}return r}function yt(e){return P(e,oe(arguments,!0,!0,1))}function bt(e,n,r){var o=-1,a=e?e.length:0;for(n=t.createCallback(n,r,3);++o<a;)if(n(e[o],o,e))return o;return-1}function wt(e,n,r){var o=e?e.length:0;for(n=t.createCallback(n,r,3);o--;)if(n(e[o],o,e))return o;return-1}function xt(e,n,r){var o=0,a=e?e.length:0;if("number"!=typeof n&&null!=n){var i=-1;for(n=t.createCallback(n,r,3);++i<a&&n(e[i],i,e);)o++}else if(o=n,null==o||r)return e?e[0]:y;return v(e,0,rr(nr(0,o),a))}function Ct(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n="function"!=typeof t&&r&&r[t]===e?null:t,t=!1),null!=n&&(e=it(e,n,r)),oe(e,t)}function Et(e,t,n){if("number"==typeof n){var r=e?e.length:0;n=0>n?nr(0,r+n):n||0}else if(n){var o=It(e,t);return e[o]===t?o:-1}return a(e,t,n)}function Tt(e,n,r){var o=0,a=e?e.length:0;if("number"!=typeof n&&null!=n){var i=a;for(n=t.createCallback(n,r,3);i--&&n(e[i],i,e);)o++}else o=null==n||r?1:n||o;return v(e,0,rr(nr(0,a-o),a))}function Pt(){for(var e=[],t=-1,n=arguments.length,r=p(),o=ge(),s=o===a,l=p();++t<n;){var u=arguments[t];(fr(u)||ye(u))&&(e.push(u),r.push(s&&u.length>=T&&c(t?e[t]:l)))}var f=e[0],d=-1,h=f?f.length:0,v=[];e:for(;++d<h;){var _=r[0];if(u=f[d],(_?i(_,u):o(l,u))<0){for(t=n,(_||l).push(u);--t;)if(_=r[t],(_?i(_,u):o(e[t],u))<0)continue e;v.push(u)}}for(;n--;)_=r[n],_&&m(_);return g(r),g(l),v}function kt(e,n,r){var o=0,a=e?e.length:0;if("number"!=typeof n&&null!=n){var i=a;for(n=t.createCallback(n,r,3);i--&&n(e[i],i,e);)o++}else if(o=n,null==o||r)return e?e[a-1]:y;return v(e,nr(0,a-o))}function Mt(e,t,n){var r=e?e.length:0;for("number"==typeof n&&(r=(0>n?nr(0,r+n):rr(n,r-1))+1);r--;)if(e[r]===t)return r;return-1}function St(e){for(var t=arguments,n=0,r=t.length,o=e?e.length:0;++n<r;)for(var a=-1,i=t[n];++a<o;)e[a]===i&&(Yn.call(e,a--,1),o--);return e}function Rt(e,t,n){e=+e||0,n="number"==typeof n?n:+n||1,null==t&&(t=e,e=0);for(var r=-1,o=nr(0,jn((t-e)/(n||1))),a=wn(o);++r<o;)a[r]=e,e+=n;return a}function Dt(e,n,r){var o=-1,a=e?e.length:0,i=[];for(n=t.createCallback(n,r,3);++o<a;){var s=e[o];n(s,o,e)&&(i.push(s),Yn.call(e,o--,1),a--)}return i}function At(e,n,r){if("number"!=typeof n&&null!=n){var o=0,a=-1,i=e?e.length:0;for(n=t.createCallback(n,r,3);++a<i&&n(e[a],a,e);)o++}else o=null==n||r?1:nr(0,n);return v(e,o)}function It(e,n,r,o){var a=0,i=e?e.length:a;for(r=r?t.createCallback(r,o,1):on,n=r(n);i>a;){var s=a+i>>>1;r(e[s])<n?a=s+1:i=s}return a}function Ot(){return ce(oe(arguments,!0,!0))}function Ft(e,n,r,o){return"boolean"!=typeof n&&null!=n&&(o=r,r="function"!=typeof n&&o&&o[n]===e?null:n,n=!1),null!=r&&(r=t.createCallback(r,o,3)),ce(e,n,r)}function Nt(e){return P(e,v(arguments,1))}function Lt(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(fr(n)||ye(n))var r=r?ce(P(r,n).concat(P(n,r))):n}return r||[]}function Bt(){for(var e=arguments.length>1?arguments:arguments[0],t=-1,n=e?st(Rr(e,"length")):0,r=wn(0>n?0:n);++t<n;)r[t]=Rr(e,t);return r}function jt(e,t){var n=-1,r=e?e.length:0,o={};for(t||!r||fr(e[0])||(t=[]);++n<r;){var a=e[n];t?o[a]=t[n]:a&&(o[a[0]]=a[1])}return o}function Wt(e,t){if(!Ne(t))throw new Dn;return function(){return--e<1?t.apply(this,arguments):void 0}}function Ut(e,t){return arguments.length>2?pe(e,17,v(arguments,2),null,t):pe(e,1,null,null,t)}function Vt(e){for(var t=arguments.length>1?oe(arguments,!0,!1,1):ke(e),n=-1,r=t.length;++n<r;){var o=t[n];e[o]=pe(e[o],1,null,null,e)}return e}function zt(e,t){return arguments.length>2?pe(t,19,v(arguments,2),null,e):pe(t,3,null,null,e)}function qt(){for(var e=arguments,t=e.length;t--;)if(!Ne(e[t]))throw new Dn;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}}function Ht(e,t){return t="number"==typeof t?t:+t||e.length,pe(e,4,null,null,null,t)}function Xt(e,t,n){var r,o,a,i,s,l,u,c=0,f=!1,p=!0;if(!Ne(e))throw new Dn;if(t=nr(0,t)||0,n===!0){var d=!0;p=!1}else Le(n)&&(d=n.leading,f="maxWait"in n&&(nr(t,n.maxWait)||0),p="trailing"in n?n.trailing:p);var h=function(){var n=t-(Ar()-i);if(0>=n){o&&Wn(o);var f=u;o=l=u=y,f&&(c=Ar(),a=e.apply(s,r),l||o||(r=s=null))}else l=Gn(h,n)},g=function(){l&&Wn(l),o=l=u=y,(p||f!==t)&&(c=Ar(),a=e.apply(s,r),l||o||(r=s=null))};return function(){if(r=arguments,i=Ar(),s=this,u=p&&(l||!d),f===!1)var n=d&&!l;else{o||d||(c=i);var m=f-(i-c),v=0>=m;v?(o&&(o=Wn(o)),c=i,a=e.apply(s,r)):o||(o=Gn(g,m))}return v&&l?l=Wn(l):l||t===f||(l=Gn(h,t)),n&&(v=!0,a=e.apply(s,r)),!v||l||o||(r=s=null),a}}function Gt(e){if(!Ne(e))throw new Dn;var t=v(arguments,1);return Gn(function(){e.apply(y,t)},1)}function Yt(e,t){if(!Ne(e))throw new Dn;var n=v(arguments,2);return Gn(function(){e.apply(y,n)},t)}function Qt(e,t){if(!Ne(e))throw new Dn;var n=function(){var r=n.cache,o=t?t.apply(this,arguments):E+arguments[0];return qn.call(r,o)?r[o]:r[o]=e.apply(this,arguments)};return n.cache={},n}function Kt(e){var t,n;if(!Ne(e))throw new Dn;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}}function Zt(e){ +return pe(e,16,v(arguments,1))}function Jt(e){return pe(e,32,null,v(arguments,1))}function $t(e,t,n){var r=!0,o=!0;if(!Ne(e))throw new Dn;return n===!1?r=!1:Le(n)&&(r="leading"in n?n.leading:r,o="trailing"in n?n.trailing:o),ee.leading=r,ee.maxWait=t,ee.trailing=o,Xt(e,t,ee)}function en(e,t){return pe(t,16,[e])}function tn(e){return function(){return e}}function nn(e,t,n){var r=typeof e;if(null==e||"function"==r)return b(e,t,n);if("object"!=r)return un(e);var o=dr(e),a=o[0],i=e[a];return 1!=o.length||i!==i||Le(i)?function(t){for(var n=o.length,r=!1;n--&&(r=ie(t[o[n]],e[o[n]],null,!0)););return r}:function(e){var t=e[a];return i===t&&(0!==i||1/i==1/t)}}function rn(e){return null==e?"":Rn(e).replace(br,he)}function on(e){return e}function an(e,r,o){var a=!0,i=r&&ke(r);r&&(o||i.length)||(null==o&&(o=r),s=n,r=e,e=t,i=ke(r)),o===!1?a=!1:Le(o)&&"chain"in o&&(a=o.chain);var s=e,l=Ne(s);rt(i,function(t){var n=e[t]=r[t];l&&(s.prototype[t]=function(){var t=this.__chain__,r=this.__wrapped__,o=[r];Hn.apply(o,arguments);var i=n.apply(e,o);if(a||t){if(r===i&&Le(i))return this;i=new s(i),i.__chain__=t}return i})})}function sn(){return e._=Nn,this}function ln(){}function un(e){return function(t){return t[e]}}function cn(e,t,n){var r=null==e,o=null==t;if(null==n&&("boolean"==typeof e&&o?(n=e,e=1):o||"boolean"!=typeof t||(n=t,o=!0)),r&&o&&(t=1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var a=ar();return rr(e+a*(t-e+parseFloat("1e-"+((a+"").length-1))),t)}return le(e,t)}function fn(e,t){if(e){var n=e[t];return Ne(n)?e[t]():n}}function pn(e,n,r){var o=t.templateSettings;e=Rn(e||""),r=Cr({},r,o);var a,i=Cr({},r.imports,o.imports),s=dr(i),l=Ke(i),u=0,c=r.interpolate||L,p="__p += '",d=Sn((r.escape||L).source+"|"+c.source+"|"+(c===F?A:L).source+"|"+(r.evaluate||L).source+"|$","g");e.replace(d,function(t,n,r,o,i,s){return r||(r=o),p+=e.slice(u,s).replace(j,f),n&&(p+="' +\n__e("+n+") +\n'"),i&&(a=!0,p+="';\n"+i+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=s+t.length,t}),p+="';\n";var h=r.variable,g=h;g||(h="obj",p="with ("+h+") {\n"+p+"\n}\n"),p=(a?p.replace(S,""):p).replace(R,"$1").replace(D,"$1;"),p="function("+h+") {\n"+(g?"":h+" || ("+h+" = {});\n")+"var __t, __p = '', __e = _.escape"+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var m="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+V++ +"]")+"\n*/";try{var v=Tn(s,"return "+p+m).apply(y,l)}catch(_){throw _.source=p,_}return n?v(n):(v.source=p,v)}function dn(e,t,n){e=(e=+e)>-1?e:0;var r=-1,o=wn(e);for(t=b(t,n,1);++r<e;)o[r]=t(r);return o}function hn(e){return null==e?"":Rn(e).replace(yr,_e)}function gn(e){var t=++x;return Rn(null==e?"":e)+t}function mn(e){return e=new n(e),e.__chain__=!0,e}function vn(e,t){return t(e),e}function _n(){return this.__chain__=!0,this}function yn(){return Rn(this.__wrapped__)}function bn(){return this.__wrapped__}e=e?ue.defaults(ae.Object(),e,ue.pick(ae,W)):ae;var wn=e.Array,xn=e.Boolean,Cn=e.Date,En=e.Error,Tn=e.Function,Pn=e.Math,kn=e.Number,Mn=e.Object,Sn=e.RegExp,Rn=e.String,Dn=e.TypeError,An=[],In=En.prototype,On=Mn.prototype,Fn=Rn.prototype,Nn=e._,Ln=On.toString,Bn=Sn("^"+Rn(Ln).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),jn=Pn.ceil,Wn=e.clearTimeout,Un=Pn.floor,Vn=Tn.prototype.toString,zn=me(zn=Mn.getPrototypeOf)&&zn,qn=On.hasOwnProperty,Hn=An.push,Xn=On.propertyIsEnumerable,Gn=e.setTimeout,Yn=An.splice,Qn=An.unshift,Kn=function(){try{var e={},t=me(t=Mn.defineProperty)&&t,n=t(e,e,e)&&t}catch(r){}return n}(),Zn=me(Zn=Mn.create)&&Zn,Jn=me(Jn=wn.isArray)&&Jn,$n=e.isFinite,er=e.isNaN,tr=me(tr=Mn.keys)&&tr,nr=Pn.max,rr=Pn.min,or=e.parseInt,ar=Pn.random,ir={};ir[q]=wn,ir[H]=xn,ir[X]=Cn,ir[Y]=Tn,ir[K]=Mn,ir[Q]=kn,ir[Z]=Sn,ir[J]=Rn;var sr={};sr[q]=sr[X]=sr[Q]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},sr[H]=sr[J]={constructor:!0,toString:!0,valueOf:!0},sr[G]=sr[Y]=sr[Z]={constructor:!0,toString:!0},sr[K]={constructor:!0},function(){for(var e=U.length;e--;){var t=U[e];for(var n in sr)qn.call(sr,n)&&!qn.call(sr[n],t)&&(sr[n][t]=!1)}}(),n.prototype=t.prototype;var lr=t.support={};!function(){var t=function(){this.x=1},n={0:1,length:1},r=[];t.prototype={valueOf:1,y:1};for(var o in new t)r.push(o);for(o in arguments);lr.argsClass=Ln.call(arguments)==z,lr.argsObject=arguments.constructor==Mn&&!(arguments instanceof wn),lr.enumErrorProps=Xn.call(In,"message")||Xn.call(In,"name"),lr.enumPrototypes=Xn.call(t,"prototype"),lr.funcDecomp=!me(e.WinRTError)&&B.test(_),lr.funcNames="string"==typeof Tn.name,lr.nonEnumArgs=0!=o,lr.nonEnumShadows=!/valueOf/.test(r),lr.ownLast="x"!=r[0],lr.spliceObjects=(An.splice.call(n,0,1),!n[0]),lr.unindexedChars="x"[0]+Mn("x")[0]!="xx";try{lr.nodeClass=!(Ln.call(document)==K&&!({toString:0}+""))}catch(a){lr.nodeClass=!0}}(1),t.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:F,variable:"",imports:{_:t}};var ur=function(e){var t="var index, iterable = "+e.firstArg+", result = "+e.init+";\nif (!iterable) return result;\n"+e.top+";";e.array?(t+="\nvar length = iterable.length; index = -1;\nif ("+e.array+") { ",lr.unindexedChars&&(t+="\n if (isString(iterable)) {\n iterable = iterable.split('')\n } "),t+="\n while (++index < length) {\n "+e.loop+";\n }\n}\nelse { "):lr.nonEnumArgs&&(t+="\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += '';\n "+e.loop+";\n }\n } else { "),lr.enumPrototypes&&(t+="\n var skipProto = typeof iterable == 'function';\n "),lr.enumErrorProps&&(t+="\n var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n ");var n=[];if(lr.enumPrototypes&&n.push('!(skipProto && index == "prototype")'),lr.enumErrorProps&&n.push('!(skipErrorProps && (index == "message" || index == "name"))'),e.useHas&&e.keys)t+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n",n.length&&(t+=" if ("+n.join(" && ")+") {\n "),t+=e.loop+"; ",n.length&&(t+="\n }"),t+="\n } ";else if(t+="\n for (index in iterable) {\n",e.useHas&&n.push("hasOwnProperty.call(iterable, index)"),n.length&&(t+=" if ("+n.join(" && ")+") {\n "),t+=e.loop+"; ",n.length&&(t+="\n }"),t+="\n } ",lr.nonEnumShadows){for(t+="\n\n if (iterable !== objectProto) {\n var ctor = iterable.constructor,\n isProto = iterable === (ctor && ctor.prototype),\n className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n nonEnum = nonEnumProps[className];\n ",k=0;k<7;k++)t+="\n index = '"+e.shadowedProps[k]+"';\n if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))",e.useHas||(t+=" || (!nonEnum[index] && iterable[index] !== objectProto[index])"),t+=") {\n "+e.loop+";\n } ";t+="\n } "}return(e.array||lr.nonEnumArgs)&&(t+="\n}"),t+=e.bottom+";\nreturn result"};Zn||(s=function(){function t(){}return function(n){if(Le(n)){t.prototype=n;var r=new t;t.prototype=null}return r||e.Object()}}());var cr=Kn?function(e,t){te.value=t,Kn(e,"__bindData__",te),te.value=null}:ln;lr.argsClass||(ye=function(e){return e&&"object"==typeof e&&"number"==typeof e.length&&qn.call(e,"callee")&&!Xn.call(e,"callee")||!1});var fr=Jn||function(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Ln.call(e)==q||!1},pr=de({args:"object",init:"[]",top:"if (!(objectTypes[typeof object])) return result",loop:"result.push(index)"}),dr=tr?function(e){return Le(e)?lr.enumPrototypes&&"function"==typeof e||lr.nonEnumArgs&&e.length&&ye(e)?pr(e):tr(e):[]}:pr,hr={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",array:"typeof length == 'number'",keys:dr,loop:"if (callback(iterable[index], index, collection) === false) return result"},gr={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",keys:dr,loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},mr={top:"if (!objectTypes[typeof iterable]) return result;\n"+hr.top,array:!1},vr={"&":"&","<":"<",">":">",'"':""","'":"'"},_r=Se(vr),yr=Sn("("+dr(_r).join("|")+")","g"),br=Sn("["+dr(vr).join("")+"]","g"),wr=de(hr),xr=de(gr,{top:gr.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"}),Cr=de(gr),Er=de(hr,mr,{useHas:!1}),Tr=de(hr,mr);Ne(/x/)&&(Ne=function(e){return"function"==typeof e&&Ln.call(e)==Y});var Pr=zn?function(e){if(!e||Ln.call(e)!=K||!lr.argsClass&&ye(e))return!1;var t=e.valueOf,n=me(t)&&(n=zn(t))&&zn(n);return n?e==n||zn(e)==n:ve(e)}:ve,kr=fe(function(e,t,n){qn.call(e,n)?e[n]++:e[n]=1}),Mr=fe(function(e,t,n){(qn.call(e,n)?e[n]:e[n]=[]).push(t)}),Sr=fe(function(e,t,n){e[n]=t}),Rr=it,Dr=et,Ar=me(Ar=Cn.now)&&Ar||function(){return(new Cn).getTime()},Ir=8==or(M+"08")?or:function(e,t){return or(Ve(e)?e.replace(N,""):e,t||0)};return t.after=Wt,t.assign=xr,t.at=Ze,t.bind=Ut,t.bindAll=Vt,t.bindKey=zt,t.chain=mn,t.compact=_t,t.compose=qt,t.constant=tn,t.countBy=kr,t.create=xe,t.createCallback=nn,t.curry=Ht,t.debounce=Xt,t.defaults=Cr,t.defer=Gt,t.delay=Yt,t.difference=yt,t.filter=et,t.flatten=Ct,t.forEach=rt,t.forEachRight=ot,t.forIn=Er,t.forInRight=Te,t.forOwn=Tr,t.forOwnRight=Pe,t.functions=ke,t.groupBy=Mr,t.indexBy=Sr,t.initial=Tt,t.intersection=Pt,t.invert=Se,t.invoke=at,t.keys=dr,t.map=it,t.mapValues=qe,t.max=st,t.memoize=Qt,t.merge=He,t.min=lt,t.omit=Xe,t.once=Kt,t.pairs=Ge,t.partial=Zt,t.partialRight=Jt,t.pick=Ye,t.pluck=Rr,t.property=un,t.pull=St,t.range=Rt,t.reject=ft,t.remove=Dt,t.rest=At,t.shuffle=dt,t.sortBy=mt,t.tap=vn,t.throttle=$t,t.times=dn,t.toArray=vt,t.transform=Qe,t.union=Ot,t.uniq=Ft,t.values=Ke,t.where=Dr,t.without=Nt,t.wrap=en,t.xor=Lt,t.zip=Bt,t.zipObject=jt,t.collect=it,t.drop=At,t.each=rt,t.eachRight=ot,t.extend=xr,t.methods=ke,t.object=jt,t.select=et,t.tail=At,t.unique=Ft,t.unzip=Bt,an(t),t.clone=be,t.cloneDeep=we,t.contains=Je,t.escape=rn,t.every=$e,t.find=tt,t.findIndex=bt,t.findKey=Ce,t.findLast=nt,t.findLastIndex=wt,t.findLastKey=Ee,t.has=Me,t.identity=on,t.indexOf=Et,t.isArguments=ye,t.isArray=fr,t.isBoolean=Re,t.isDate=De,t.isElement=Ae,t.isEmpty=Ie,t.isEqual=Oe,t.isFinite=Fe,t.isFunction=Ne,t.isNaN=Be,t.isNull=je,t.isNumber=We,t.isObject=Le,t.isPlainObject=Pr,t.isRegExp=Ue,t.isString=Ve,t.isUndefined=ze,t.lastIndexOf=Mt,t.mixin=an,t.noConflict=sn,t.noop=ln,t.now=Ar,t.parseInt=Ir,t.random=cn,t.reduce=ut,t.reduceRight=ct,t.result=fn,t.runInContext=_,t.size=ht,t.some=gt,t.sortedIndex=It,t.template=pn,t.unescape=hn,t.uniqueId=gn,t.all=$e,t.any=gt,t.detect=tt,t.findWhere=tt,t.foldl=ut,t.foldr=ct,t.include=Je,t.inject=ut,an(function(){var e={};return Tr(t,function(n,r){t.prototype[r]||(e[r]=n)}),e}(),!1),t.first=xt,t.last=kt,t.sample=pt,t.take=xt,t.head=xt,Tr(t,function(e,r){var o="sample"!==r;t.prototype[r]||(t.prototype[r]=function(t,r){var a=this.__chain__,i=e(this.__wrapped__,t,r);return a||null!=t&&(!r||o&&"function"==typeof t)?new n(i,a):i})}),t.VERSION="2.4.2",t.prototype.chain=_n,t.prototype.toString=yn,t.prototype.value=bn,t.prototype.valueOf=bn,wr(["join","pop","shift"],function(e){var r=An[e];t.prototype[e]=function(){var e=this.__chain__,t=r.apply(this.__wrapped__,arguments);return e?new n(t,e):t}}),wr(["push","reverse","sort","unshift"],function(e){var n=An[e];t.prototype[e]=function(){return n.apply(this.__wrapped__,arguments),this}}),wr(["concat","slice","splice"],function(e){var r=An[e];t.prototype[e]=function(){return new n(r.apply(this.__wrapped__,arguments),this.__chain__)}}),lr.spliceObjects||wr(["pop","shift","splice"],function(e){var r=An[e],o="splice"==e;t.prototype[e]=function(){var e=this.__chain__,t=this.__wrapped__,a=r.apply(t,arguments);return 0===t.length&&delete t[0],e||o?new n(a,e):a}}),t}var y,b=[],w=[],x=0,C={},E=+new Date+"",T=75,P=40,M=" \x0B\f \ufeff\n\r\u2028\u2029 ",S=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,I=/\w*$/,O=/^\s*function[ \n\r\t]+\w/,F=/<%=([\s\S]+?)%>/g,N=RegExp("^["+M+"]*0+(?=.$)"),L=/($^)/,B=/\bthis\b/,j=/['\n\r\t\u2028\u2029\\]/g,W=["Array","Boolean","Date","Error","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],U=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],V=0,z="[object Arguments]",q="[object Array]",H="[object Boolean]",X="[object Date]",G="[object Error]",Y="[object Function]",Q="[object Number]",K="[object Object]",Z="[object RegExp]",J="[object String]",$={};$[Y]=!1,$[z]=$[q]=$[H]=$[X]=$[Q]=$[K]=$[Z]=$[J]=!0;var ee={leading:!1,maxWait:0,trailing:!1},te={configurable:!1,enumerable:!1,value:null,writable:!1},ne={args:"",array:null,bottom:"",firstArg:"",init:"",keys:null,loop:"",shadowedProps:null,support:null,top:"",useHas:!1},re={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},oe={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},ae=re[typeof window]&&window||this,ie=re[typeof t]&&t&&!t.nodeType&&t,se=re[typeof e]&&e&&!e.nodeType&&e,le=(se&&se.exports===ie&&ie,re[typeof o]&&o);!le||le.global!==le&&le.window!==le||(ae=le);var ue=_();ae._=ue,r=function(){return ue}.call(t,n,t,e),!(r!==y&&(e.exports=r))}).call(this)}).call(t,n(317)(e),function(){return this}())},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D backgroundSampler;\n\nuniform vec4 backgroundColor;\n\nvarying vec2 v_texCoord;\n\nvoid main() {\n vec4 color = texture2D(backgroundSampler, v_texCoord);\n gl_FragColor = vec4(backgroundColor.rgb, color.a);\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D compositeSampler;\nuniform sampler2D nxSampler;\nuniform sampler2D nySampler;\nuniform sampler2D nzSampler;\nuniform sampler2D scalarSampler;\nuniform sampler2D lutSampler;\n\nuniform vec4 viewDir;\nuniform vec4 lightDir;\nuniform vec4 lightColor;\nuniform vec4 lightTerms;\n\nvarying vec2 v_texCoord;\n\n\nfloat convert(vec4 c) {\n float r = c.r * 255.0;\n float g = c.g * 255.0;\n float b = c.b * 255.0;\n\n float value = (r * 65536.0) + (g * 256.0) + b;\n return ((value / 16777216.0) * 2.0) - 1.0;\n}\n\n\nvec4 scalarLookup(vec4 c) {\n float r = c.r * 255.0;\n float g = c.g * 255.0;\n float b = c.b * 255.0;\n\n float value = (r * 65536.0) + (g * 256.0) + b;\n value = value / 16777216.0;\n\n return texture2D(lutSampler, vec2(value, 0.5));\n}\n\n\nvoid main() {\n // Sample the texture containing what we have composited so far\n vec4 color = texture2D(compositeSampler, v_texCoord);\n\n // Sample the new layer to be composited in\n vec4 scalarColor = texture2D(scalarSampler, v_texCoord);\n\n // Choose the fragment with the greater depth value\n if (color.a > scalarColor.a) {\n gl_FragColor = color;\n } else {\n\n vec4 nx = texture2D(nxSampler, v_texCoord);\n vec4 ny = texture2D(nySampler, v_texCoord);\n vec4 nz = texture2D(nzSampler, v_texCoord);\n vec4 normal = normalize(vec4(convert(nx), convert(ny), convert(nz), 0.0));\n\n vec4 lutColor = scalarLookup(scalarColor);\n\n float ka = lightTerms[0];\n float kd = lightTerms[1];\n float ks = lightTerms[2];\n float alpha = lightTerms[3];\n\n vec4 vDir = normalize(viewDir);\n vec4 lDir = normalize(lightDir);\n\n // Calculate ambient term\n vec4 ambientColor = lutColor * ka;\n\n // This will be used in both diffuse and specular terms\n float lDotN = dot(lDir, normal);\n\n // Adding this check allows us to light whichever side is facing the light\n if (lDotN < 0.0) {\n normal = -1.0 * normal;\n lDotN = dot(lDir, normal);\n }\n\n // Calculate diffuse term\n vec4 diffuseColor = kd * lutColor * lDotN;\n\n // Calculate specular term\n vec4 R = (normal * 2.0 * lDotN) - lDir;\n float specularTerm = ks * pow(dot(R, vDir), alpha);\n vec4 specularColor = lightColor * specularTerm; // * step(-lDotN, 0.0);\n\n // Clamp them individually and sum them up\n vec3 fColor = clamp(ambientColor.rgb, 0.0, 1.0) + clamp(diffuseColor.rgb, 0.0, 1.0) + clamp(specularColor.rgb, 0.0, 1.0);\n gl_FragColor = vec4(fColor.rgb, scalarColor.a);\n\n // Various debugging outputs\n\n // gl_FragColor = vec4(ambientColor.rgb, scalarColor.a);\n // gl_FragColor = vec4(diffuseColor.rgb, scalarColor.a);\n // gl_FragColor = vec4(specularColor.rgb, scalarColor.a);\n // gl_FragColor = vec4(lutColor.rgb, scalarColor.a);\n // gl_FragColor = vec4(((normal.rgb + 1.0) / 2.0), scalarColor.a);\n }\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D compositeSampler;\nuniform sampler2D scalarSampler;\nuniform sampler2D lutSampler;\n\nvarying vec2 v_texCoord;\n\n\nfloat convert(vec4 c) {\n float r = c.r * 255.0;\n float g = c.g * 255.0;\n float b = c.b * 255.0;\n\n float value = (r * 65536.0) + (g * 256.0) + b;\n return ((value / 16777216.0) * 2.0) - 1.0;\n}\n\n\nvec4 scalarLookup(vec4 c) {\n float r = c.r * 255.0;\n float g = c.g * 255.0;\n float b = c.b * 255.0;\n\n float value = (r * 65536.0) + (g * 256.0) + b;\n value = value / 16777216.0;\n\n return texture2D(lutSampler, vec2(value, 0.5));\n}\n\n\nvoid main() {\n // Sample the texture containing what we have composited so far\n vec4 color = texture2D(compositeSampler, v_texCoord);\n\n // Sample the new layer to be composited in\n vec4 scalarColor = texture2D(scalarSampler, v_texCoord);\n\n // Choose the fragment with the greater depth value\n if (color.a > scalarColor.a) {\n gl_FragColor = color;\n } else {\n vec4 lutColor = scalarLookup(scalarColor);\n gl_FragColor = vec4(lutColor.rgb, scalarColor.a);\n }\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D orderSampler;\nuniform sampler2D intensitySampler;\nuniform sampler2D layerColorSampler[${SIMULTANEOUS_LAYERS}];\nuniform sampler2D lutSampler[${SIMULTANEOUS_LAYERS}];\n\nuniform float layerAlpha[${SIMULTANEOUS_LAYERS}];\nuniform vec2 layerRange[${SIMULTANEOUS_LAYERS}];\n\nuniform int orderOffset;\n\nvarying vec2 v_texCoord;\n\nfloat affine(float inMin, float val, float inMax, float outMin, float outMax) {\n return (((val - inMin) / (inMax - inMin)) * (outMax - outMin)) + outMin;\n}\n\n//\n// Main shader execution function\n//\nvoid main() {\n // Look up the layer number to which this pixel corresponds\n float orderSample = texture2D(orderSampler, v_texCoord).r;\n int order = int(orderSample * 255.0) - orderOffset;\n\n float intensity = texture2D(intensitySampler, v_texCoord).r;\n bool foundOne = false;\n\n //@INLINE_LOOP (loopIdx, 0, ${SIMULTANEOUS_LAYERS})\n for (int loopIdx = 0; loopIdx < ${SIMULTANEOUS_LAYERS}; ++loopIdx) {\n if (loopIdx == order) {\n float f = texture2D(layerColorSampler[loopIdx], v_texCoord).r;\n if (f >= layerRange[loopIdx][0] && f <= layerRange[loopIdx][1]) {\n vec2 lutTCoord = vec2(affine(layerRange[loopIdx][0], f, layerRange[loopIdx][1], 0.0, 1.0), 0.5);\n vec4 color = texture2D(lutSampler[loopIdx], lutTCoord);\n gl_FragColor = vec4(color.xyz * intensity, layerAlpha[loopIdx]);\n foundOne = true;\n }\n }\n }\n //@INLINE_LOOP\n\n if (foundOne == false) {\n discard;\n }\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D orderSampler;\nuniform sampler2D normalSampler;\nuniform sampler2D layerColorSampler[${SIMULTANEOUS_LAYERS}];\nuniform sampler2D lutSampler[${SIMULTANEOUS_LAYERS}];\n\nuniform float layerAlpha[${SIMULTANEOUS_LAYERS}];\nuniform vec2 layerRange[${SIMULTANEOUS_LAYERS}];\n\nuniform int orderOffset;\n\nuniform vec4 lightDir;\nuniform vec4 lightColor;\nuniform vec4 lightTerms;\n\nvarying vec2 v_texCoord;\n\nfloat affine(float inMin, float val, float inMax, float outMin, float outMax) {\n return (((val - inMin) / (inMax - inMin)) * (outMax - outMin)) + outMin;\n}\n\nvec4 unpackNormal(vec4 packedNormal) {\n vec4 normal = vec4((packedNormal.xy * 2.0) - 1.0, packedNormal.z, 0.0);\n return normalize(normal);\n}\n\n//\n// Main shader execution function\n//\nvoid main() {\n // Look up the layer number to which this pixel corresponds\n float orderSample = texture2D(orderSampler, v_texCoord).r;\n int order = int(orderSample * 255.0) - orderOffset;\n\n bool foundOne = false;\n\n //@INLINE_LOOP (loopIdx, 0, ${SIMULTANEOUS_LAYERS})\n for (int loopIdx = 0; loopIdx < ${SIMULTANEOUS_LAYERS}; ++loopIdx) {\n if (loopIdx == order) {\n float f = texture2D(layerColorSampler[loopIdx], v_texCoord).r;\n if (f >= layerRange[loopIdx][0] && f <= layerRange[loopIdx][1]) {\n // If the scalar value is in range (not NaN) we first do the scalar lookup\n vec2 lutTCoord = vec2(affine(layerRange[loopIdx][0], f, layerRange[loopIdx][1], 0.0, 1.0), 0.5);\n vec4 lutColor = texture2D(lutSampler[loopIdx], lutTCoord);\n\n // ----------- begin lighting bits ------------\n\n vec4 packedNormal = texture2D(normalSampler, v_texCoord);\n vec4 normal = unpackNormal(packedNormal);\n\n float ka = lightTerms[0];\n float kd = lightTerms[1];\n float ks = lightTerms[2];\n float alpha = lightTerms[3];\n\n vec4 vDir = vec4(0.0, 0.0, 1.0, 0.0);\n vec4 lDir = normalize(lightDir);\n\n // Calculate ambient term\n vec4 ambientColor = lutColor * ka;\n\n // This will be used in both diffuse and specular terms\n float lDotN = dot(lDir, normal);\n\n // Calculate diffuse term\n vec4 diffuseColor = kd * lutColor * lDotN;\n\n // Calculate specular term\n vec4 R = (normal * 2.0 * lDotN) - lDir;\n float specularTerm = ks * pow(dot(R, vDir), alpha);\n vec4 specularColor = lightColor * specularTerm; // * step(-lDotN, 0.0);\n\n // Clamp them individually and sum them up\n vec3 fColor = clamp(ambientColor.rgb, 0.0, 1.0) + clamp(diffuseColor.rgb, 0.0, 1.0) + clamp(specularColor.rgb, 0.0, 1.0);\n\n // ----------- end lighting bits ------------\n\n foundOne = true;\n gl_FragColor = vec4(fColor.rgb, layerAlpha[loopIdx]);\n }\n }\n }\n //@INLINE_LOOP\n\n if (foundOne == false) {\n discard;\n }\n}\n"},function(e,t){e.exports="\nprecision mediump float;\n\nuniform sampler2D alphaSampler;\nuniform sampler2D intensitySampler;\nuniform sampler2D orderSampler;\nuniform sampler2D lutSampler;\n\nuniform float numberOfLayers;\n\nvarying vec2 v_texCoord;\n\n\n//\n// Main shader execution function\n//\nvoid main() {\n // Look up the layer number to which this pixel corresponds\n float order = texture2D(orderSampler, v_texCoord).r;\n float alpha = texture2D(alphaSampler, v_texCoord).r;\n float intensity = texture2D(intensitySampler, v_texCoord).r;\n\n float layerCoord = (order * 255.0) / (numberOfLayers - 1.0);\n vec4 lutColor = texture2D(lutSampler, vec2(layerCoord, 0.5));\n\n gl_FragColor = vec4(lutColor.rgb * intensity, alpha * lutColor.a);\n}\n"},function(e,t,n){var r=n(664);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(665);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(666);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(668);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(669);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(670);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(671);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(167);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(672);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(673);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(674);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(675);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(676);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(678);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(680);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(681);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(682);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(683);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(684);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(685);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(686);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(687);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(688);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(689);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(690);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(691);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(692);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(694);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(695);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(696);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(697);"string"==typeof r&&(r=[[e.id,r,""]]);n(6)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(833),o='<symbol viewBox="0 0 256 256" id="kitware" xmlns:xlink="http://www.w3.org/1999/xlink"> <style type="text/css"> .st0{display:none;} .st1{display:inline;} .st2{display:inline;fill:#FFFFFF;} </style> <g id="kitware_paraview" class="st0"> <g class="st1"> <g> <polygon points="65.4,211.3 14.6,211.3 56.4,53.4 107.2,53.4 "/> </g> <g> <polygon points="132.7,211.3 81.9,211.3 123.6,53.4 174.4,53.4 "/> </g> <g> <polygon points="199.9,211.3 149.1,211.3 190.9,53.4 241.6,53.4 "/> </g> </g> </g> <g id="kitware_paraviewweb" class="st0"> <g class="st1"> <polygon points="60.2,211.3 35.7,211.3 49,40 106.1,40 "/> </g> <g class="st1"> <polygon points="159.9,211.3 135.4,211.3 181.4,40 238.5,40 "/> </g> <g class="st1"> <polygon points="118.8,88.6 69.5,211.3 126.6,211.3 140.9,88.6 "/> </g> </g> <g id="kitware_kitware"> <g> <g> <path d="M216.9,77c-6.2,0-12.3,0-18.5,0c-66.9,18.7-76.9,102.5-30,142.9c-54.2-36.8-44.4-130,29.5-149.8c-6.2,0-12.3,0-18.5,0\r\n c-66.9,18.7-76.9,102.5-30,142.9c-54.2-36.8-44.4-130,29.5-149.8c-6.2,0-12.3,0-18.5,0c-21,5.9-36.3,18.2-46.1,33.5\r\n c-0.7-28.8-5.2-58.2-13.9-87.7c-5.2,5-10.4,9.9-15.6,14.9c25.8,73.8,21.6,151.9-10.2,217.1c1.4,1.4,2.8,2.7,4.3,4.1\r\n c12.7-22.5,22-47.1,28-73c8.8,23.8,28.3,44.2,58.5,52.3c0.3,0,0.6,0,1,0c5.5,2.8,11.4,5.2,17.9,6.9c0.3,0,0.6,0,1,0\r\n c5.5,2.8,11.4,5.2,17.9,6.9c2.8,0,5.7,0,8.5,0C131.6,215.7,133.3,99.4,216.9,77z"/> </g> <g> <path d="M57.1,50.6c-5.2,5-10.4,9.9-15.5,14.9c28,43.5,37,102.5,21.4,164c1.4,1.4,2.8,2.7,4.3,4.1\r\n C88.5,170.7,84.3,104.9,57.1,50.6z"/> </g> <g> <path d="M78.8,29.8c-5.2,5-10.4,9.9-15.5,14.9c26.9,58.6,29.3,127.2,5.6,190.6c1.4,1.4,2.8,2.7,4.3,4.1\r\n C102.6,174.6,105,99.2,78.8,29.8z"/> </g> </g> </g> <g id="kitware_cluster" class="st0"> <path class="st1" d="M233.1,88.5c1.9,0,3.3-1.5,3.3-3.3V31.3c0-1.8-1.5-3.3-3.3-3.3h-53.8c-1.9,0-3.3,1.5-3.3,3.3v20.6h-16V31.3\r\n c0-1.8-1.5-3.3-3.3-3.3h-53.8c-1.9,0-3.3,1.5-3.3,3.3v20.6h-16V31.3c0-1.8-1.5-3.3-3.3-3.3H26.3c-1.9,0-3.3,1.5-3.3,3.3v53.8\r\n c0,1.8,1.5,3.3,3.3,3.3h20.3v13.6H26.3c-1.9,0-3.3,1.5-3.3,3.3v53.8c0,1.8,1.5,3.3,3.3,3.3h20.3v13.7H26.3c-1.9,0-3.3,1.5-3.3,3.3\r\n v53.8c0,1.9,1.5,3.3,3.3,3.3h53.8c1.9,0,3.3-1.5,3.3-3.3V214h16v19.5c0,1.9,1.5,3.3,3.3,3.3h53.8c1.9,0,3.3-1.5,3.3-3.3V214h16\r\n v19.5c0,1.9,1.5,3.3,3.3,3.3h53.8c1.9,0,3.3-1.5,3.3-3.3v-53.8c0-1.9-1.5-3.3-3.3-3.3h-18.9v-13.6h18.9c1.9,0,3.3-1.5,3.3-3.3\r\n v-53.8c0-1.8-1.5-3.3-3.3-3.3h-18.9V88.5H233.1z M182.6,34.6h47.1v47.1h-47.1V34.6z M106.1,34.6h47.2v47.1h-47.2V34.6z M29.6,34.6\r\n h47.2v47.1H29.6V34.6z M60,88.5h20.1c1.9,0,3.3-1.5,3.3-3.3V65.3h16v19.8c0,1.8,1.5,3.3,3.3,3.3h20.9v13.7h-20.9\r\n c-1.9,0-3.3,1.5-3.3,3.3V125h-16v-19.5c0-1.8-1.5-3.3-3.3-3.3H60V88.5z M106.1,156v-47.2h47.2V156H106.1z M29.6,108.8h47.2V156\r\n H29.6V108.8z M76.7,230.1H29.6V183h47.2V230.1z M83.4,200.5v-20.9c0-1.9-1.5-3.3-3.3-3.3H60v-13.7h20.1c1.9,0,3.3-1.5,3.3-3.3\r\n v-20.9h16v20.9c0,1.8,1.5,3.3,3.3,3.3h20.9v13.6h-20.9c-1.9,0-3.3,1.5-3.3,3.3v20.9H83.4z M153.3,230.1h-47.2V183h47.2V230.1z\r\n M229.8,230.1h-47.1V183h47.1V230.1z M200.8,176.3h-21.5c-1.9,0-3.3,1.5-3.3,3.3v20.9h-16v-20.9c0-1.9-1.5-3.3-3.3-3.3h-19.5v-13.6\r\n h19.5c1.9,0,3.3-1.5,3.3-3.3v-20.9h16v20.9c0,1.8,1.5,3.3,3.3,3.3h21.5V176.3z M229.8,156h-47.1v-47.2h47.1V156z M200.8,102.1\r\n h-21.5c-1.9,0-3.3,1.5-3.3,3.3V125h-16v-19.5c0-1.8-1.5-3.3-3.3-3.3h-19.5V88.5h19.5c1.9,0,3.3-1.5,3.3-3.3V65.3h16v19.8\r\n c0,1.8,1.5,3.3,3.3,3.3h21.5V102.1z"/> </g> <g id="kitware_axis-orientation" class="st0"> <path class="st1" d="M232.9,239.4l-11.2-23.6c-0.5-1-1.4-1.7-2.6-1.9c-1.1-0.1-2.2,0.3-3,1.1l-2.6,2.9c0,0-80.6-70.1-81.1-70.7V139\r\n h0V42.5h3.9c1.1,0,2.2-0.6,2.8-1.5c0.6-1,0.7-2.2,0.2-3.2l-10.8-23.9c-0.5-1.2-1.7-2-3.1-2c-1.2,0-2.5,0.8-3.1,2l-10.5,23.9\r\n c-0.5,1-0.4,2.2,0.3,3.2c0.6,0.9,1.7,1.5,2.8,1.5h3.9V139v8.3c0,0.2-81.1,70.7-81.1,70.7l-2.6-2.9c-0.7-0.9-1.9-1.2-3-1.1\r\n c-1.1,0.2-2.1,0.9-2.6,1.9l-11.2,23.6c-0.6,1.2-0.4,2.6,0.5,3.6c0.6,0.7,1.6,1.2,2.5,1.2c0.3,0,0.7,0,1-0.1l25.1-7.6\r\n c1.1-0.3,1.9-1.2,2.2-2.3c0.3-1.1,0.1-2.3-0.7-3.1l-2.6-2.9l79-68.8l79,68.8l-2.6,2.9c-0.7,0.9-1,2-0.7,3.1c0.3,1.1,1.2,2,2.2,2.3\r\n l25.1,7.6c0.3,0.1,0.6,0.1,1,0.1c1,0,1.9-0.4,2.5-1.2C233.3,242,233.5,240.6,232.9,239.4z"/> </g> <g id="kitware_axis-center" class="st0"> <path class="st1" d="M226.9,119h-86.1L206,64.4c1.4-1.2,1.6-3.3,0.4-4.7c-1.2-1.4-3.3-1.6-4.7-0.4l-67.2,56.2V26.3\r\n c0-3.7-3-6.7-6.7-6.7c-3.7,0-6.7,3-6.7,6.7V119H28.5c-3.7,0-6.7,3-6.7,6.7c0,3.7,3,6.7,6.7,6.7h85.8l-64.7,54.1\r\n c-1.4,1.2-1.6,3.3-0.4,4.7c0.7,0.8,1.6,1.2,2.6,1.2c0.8,0,1.5-0.3,2.1-0.8l67.2-56.2v89.2c0,3.7,3,6.7,6.7,6.7c3.7,0,6.7-3,6.7-6.7\r\n v-92.2h92.4c3.7,0,6.7-3,6.7-6.7C233.6,122,230.6,119,226.9,119z"/> </g> <g id="kitware_function_x5F_gaussian" class="st0"> <rect x="118.9" y="131.9" transform="matrix(0.7071 0.7071 -0.7071 0.7071 137.8138 -49.4411)" class="st2" width="19.4" height="19.4"/> <path class="st1" d="M128.6,158.7c-0.9,0-1.7-0.4-2.4-1L112.5,144c-1.3-1.3-1.3-3.4,0-4.7l13.8-13.8c0.6-0.6,1.5-1,2.4-1l0,0\r\n c0.9,0,1.7,0.4,2.4,1l13.8,13.8c1.3,1.3,1.3,3.4,0,4.7L131,157.8C130.3,158.4,129.5,158.7,128.6,158.7z M119.6,141.6l9,9l9-9l-9-9\r\n L119.6,141.6z"/> <path class="st1" d="M246.5,208.6c-20.9-1-35.7-6.1-46.4-14.1c0.1-1.5,0.1-3.1-0.1-4.7c-0.8-5.3-3.7-10-8-13.2\r\n c-2.8-2.1-6.1-3.2-9.5-3.6c-8.2-16.2-11.7-36.9-15.4-59.7c-3.5-21.5-9.7-36.5-18.3-44.8c0-0.8,0-1.7-0.1-2.5\r\n c-1.7-11-12.1-18.6-23.1-16.9c-9.8,1.5-16.8,9.9-17.1,19.4c-8.6,8.3-14.8,23.3-18.3,44.8c-3.7,22.8-7.2,43.4-15.4,59.6\r\n c-0.2,0-0.4,0-0.7,0c-10.5,1.6-17.7,11.1-16.9,21.5c-10.8,8-25.5,13.1-46.5,14.1c-3.7,0.2-6.5,3.3-6.4,7c0.2,3.6,3.1,6.4,6.7,6.4\r\n c0.1,0,0.2,0,0.3,0c22.7-1.1,39.2-6.5,51.6-14.9c3.7,3.7,8.8,6.1,14.3,6.1c1,0,2.1-0.1,3.1-0.2c11-1.7,18.6-12.1,16.9-23.1\r\n c-0.8-5.3-3.7-10-8-13.2c-0.3-0.2-0.6-0.3-0.9-0.5c8.1-17.7,11.6-38.9,15.1-60.6c2.8-17.1,6.9-26.9,10.6-32.6c3.7,4,9,6.4,14.6,6.4\r\n c1,0,2.1-0.1,3.1-0.2c4.6-0.7,8.6-3,11.5-6.2c3.7,5.7,7.8,15.5,10.6,32.6c3.5,21.7,7.1,42.9,15.1,60.6c-6.4,4.2-10.2,11.9-8.9,20\r\n c0.8,5.3,3.7,10,8,13.2c3.5,2.6,7.6,3.9,11.9,3.9c1,0,2.1-0.1,3.1-0.2c4.4-0.7,8.3-2.8,11.2-5.8c12.3,8.3,28.9,13.7,51.6,14.9\r\n c0.1,0,0.2,0,0.3,0c3.5,0,6.5-2.8,6.7-6.4C253,212,250.2,208.8,246.5,208.6z M90.6,190.9c1.1,7.4-3.9,14.3-11.3,15.4\r\n c-7.4,1.1-14.3-3.9-15.4-11.3c-1.1-7.4,3.9-14.3,11.3-15.4c0.7-0.1,1.4-0.2,2.1-0.2c2.8,0,5.6,0.9,7.9,2.6\r\n C88.1,184.2,90,187.4,90.6,190.9z M130.7,82.5c-7.3,1.1-14.3-3.9-15.4-11.3c-1.1-7.4,3.9-14.3,11.3-15.4c0.7-0.1,1.4-0.2,2.1-0.2\r\n c6.6,0,12.3,4.8,13.4,11.4C143.1,74.4,138,81.4,130.7,82.5z M182,206.4c-7.4,1.1-14.3-3.9-15.4-11.3c-1.1-7.4,3.9-14.3,11.3-15.4\r\n c0.7-0.1,1.4-0.2,2.1-0.2c2.8,0,5.6,0.9,7.9,2.6c2.9,2.1,4.8,5.3,5.4,8.8C194.5,198.3,189.4,205.2,182,206.4z"/> </g> <g id="kitware_parallel-coordinates" class="st0"> <path class="st1" d="M227.1,30.3c-3.7,0-6.7,3-6.7,6.7v46.1L134.5,51V37c0-3.7-3-6.7-6.7-6.7s-6.7,3-6.7,6.7v11.1L39,68.5V37\r\n c0-3.7-3-6.7-6.7-6.7c-3.7,0-6.7,3-6.7,6.7v191.2c0,3.7,3,6.7,6.7,6.7c3.7,0,6.7-3,6.7-6.7v-33l82,15.4v17.7c0,3.7,3,6.7,6.7,6.7\r\n s6.7-3,6.7-6.7V208l42.4-34.4l43.5,35.3v19.2c0,3.7,3,6.7,6.7,6.7c3.7,0,6.7-3,6.7-6.7V37C233.8,33.3,230.8,30.3,227.1,30.3z\r\n M220.4,90.3v39.5l-43.5,35.3l-42.4-34.4V58.1L220.4,90.3z M121.1,55v73.6l-82,20.5V75.4L121.1,55z M39,188.3V156l82-20.5v68.2\r\n L39,188.3z M134.5,199.4v-60.1l37.1,30.1L134.5,199.4z M182.2,169.4l38.2-31v62L182.2,169.4z"/> </g> <g id="kitware_function-linear" class="st0"> <path class="st1" d="M249.8,45.9C249.8,45.9,249.8,45.9,249.8,45.9c-1.7-11-12-18.6-23.1-16.9c-5.3,0.8-10,3.7-13.2,8.1\r\n c-1.2,1.7-2.1,3.5-2.7,5.5h-22.9c-3.1-9.1-12.3-15-22.2-13.5c-5.3,0.8-10,3.7-13.2,8.1c-3.2,4.4-4.5,9.7-3.7,15\r\n c0.8,5,3.3,9.3,7.2,12.4l-63.8,129c-1.9-0.3-3.9-0.4-6-0.1c-7.6,1.2-13.5,6.5-15.9,13.3H45c-3.1-9-12.3-14.8-22.2-13.3\r\n c-5.3,0.8-10,3.7-13.2,8.1c-3.2,4.4-4.5,9.7-3.7,15c0.8,5.3,3.7,10,8,13.2c3.5,2.6,7.6,3.9,11.9,3.9c1,0,2.1-0.1,3.2-0.2\r\n c7.6-1.2,13.4-6.5,15.9-13.2h25.3c2.8,8,10.5,13.5,19,13.5c1,0,2.1-0.1,3.1-0.2c5.3-0.8,10-3.7,13.2-8.1c3.2-4.4,4.5-9.7,3.7-15\r\n c-0.6-4.2-2.5-7.8-5.2-10.7l64.5-130.5c0,0,0.1,0,0.1,0c1,0,2.1-0.1,3.2-0.2c7.5-1.2,13.3-6.4,15.8-13h23.2c1.4,3.7,3.8,7,7.1,9.4\r\n c3.5,2.6,7.6,3.9,11.9,3.9c1,0,2.1-0.1,3.2-0.2C244,67.3,251.6,57,249.8,45.9z M28,226.9c-3.6,0.5-7.2-0.3-10.1-2.4\r\n s-4.8-5.3-5.4-8.9c-0.6-3.6,0.3-7.2,2.4-10.1c2.1-2.9,5.3-4.8,8.9-5.4c0.7-0.1,1.4-0.2,2.1-0.2c6.6,0,12.3,4.8,13.4,11.5\r\n C40.5,218.9,35.4,225.8,28,226.9z M100.2,221.6c-2.1,2.9-5.3,4.8-8.9,5.4C84,228.1,77,223,75.9,215.6c-1.1-7.4,3.9-14.3,11.3-15.5\r\n c0.7-0.1,1.4-0.2,2.1-0.2c6.6,0,12.3,4.8,13.4,11.5c0,0,0,0,0,0C103.2,215.1,102.3,218.6,100.2,221.6z M170.8,62.4\r\n c-3.6,0.5-7.2-0.3-10.1-2.4c-2.9-2.1-4.8-5.3-5.4-8.9c-0.6-3.6,0.3-7.2,2.4-10.1s5.3-4.8,8.9-5.4c0.7-0.1,1.4-0.2,2.1-0.2\r\n c6.6,0,12.3,4.8,13.4,11.5C183.3,54.4,178.2,61.3,170.8,62.4z M231.9,62.4c-3.6,0.5-7.2-0.3-10.1-2.4c-2.9-2.1-4.8-5.3-5.4-8.9\r\n c-0.6-3.6,0.3-7.2,2.4-10.1s5.3-4.8,8.9-5.4c0.7-0.1,1.4-0.2,2.1-0.2c6.6,0,12.3,4.8,13.4,11.5C244.4,54.3,239.3,61.3,231.9,62.4z"/> </g> <g id="kitware_bounding-box" class="st0"> <path class="st1" d="M236.6,161.9c0-0.3,0.2-0.5,0.2-0.8V36.8c0-0.3-0.1-0.6-0.2-1c-0.1-0.5-0.1-0.9-0.3-1.4\r\n c-0.2-0.5-0.5-0.8-0.7-1.3c-0.2-0.3-0.3-0.6-0.5-0.8c-0.1-0.1-0.1-0.1-0.2-0.1c-0.3-0.4-0.8-0.6-1.2-0.9c-0.3-0.2-0.6-0.5-0.9-0.6\r\n c-0.4-0.2-0.7-0.2-1.1-0.3c-0.5-0.1-0.9-0.3-1.4-0.3c-0.1,0-0.1,0-0.2,0h-121c-0.3,0-0.5,0.1-0.7,0.1c-0.4,0-0.9,0.1-1.3,0.3\r\n c-0.5,0.1-0.9,0.3-1.3,0.6c-0.2,0.1-0.4,0.2-0.7,0.3L26.5,88.4c-0.1,0.1-0.2,0.3-0.3,0.4c-0.4,0.3-0.7,0.6-0.9,1\r\n c-0.3,0.3-0.5,0.6-0.7,1c-0.2,0.4-0.3,0.8-0.4,1.2c-0.1,0.4-0.2,0.9-0.3,1.3c0,0.2-0.1,0.3-0.1,0.5v134.4c0,3.7,3,6.7,6.7,6.7\r\n h134.4c0.9,0,1.8-0.2,2.6-0.5c0.8-0.3,1.6-0.9,2.2-1.5c0,0,0,0,0,0l65.2-67.1c0,0,0,0,0,0l0.1-0.1c0.2-0.2,0.2-0.4,0.4-0.6\r\n c0.4-0.5,0.8-1,1-1.6C236.5,163,236.6,162.5,236.6,161.9z M171.5,164.4h46l-46,47.3V164.4z M37.1,218.1V100.6h68.6v57.1v1.8\r\n L37.1,218.1z M162.3,87.1h-49.8V43.5h99.8L162.3,87.1z M105.7,47.5v39.6H51.1L105.7,47.5z M112.4,157.7v-57.1h45.6v57.1H112.4z\r\n M171.5,96.9l51.9-45.3v106.1h-51.9V96.9z M43.4,221.5l66.9-57.1h2.1h45.6v57.1H43.4z"/> </g> <g id="kitware_ruler" class="st0"> <g class="st1"> <path d="M171,246.5H88.6c-3.7,0-6.7-3-6.7-6.7V13.6c0-3.7,3-6.7,6.7-6.7H171c3.7,0,6.7,3,6.7,6.7v226.1\r\n C177.7,243.4,174.7,246.5,171,246.5z M95.3,233h68.9V20.3H95.3V233z"/> </g> <g class="st1"> <rect x="98.6" y="35.4" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="60.7" width="38.5" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="86" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="111.2" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="136.5" width="38.5" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="161.8" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="187" width="24.3" height="6.7"/> </g> <g class="st1"> <rect x="98.6" y="212.3" width="38.5" height="6.7"/> </g> </g> </symbol>'; +e.exports=r.add(o,"kitware")},function(e,t,n){var r=n(834),o=new r;document.body?o.elem=o.render(document.body):document.addEventListener("DOMContentLoaded",function(){o.elem=o.render(document.body)},!1),e.exports=o},function(e,t){function n(e){return Array.prototype.slice.call(e,0)}function r(e){return e.replace(/\(|\)/g,"\\$&")}function o(e,t,o){var a=e.querySelectorAll(s);a&&n(a).forEach(function(e){e.attributes&&n(e.attributes).forEach(function(n){if(-1!==i.indexOf(n.localName)){var a=l.exec(e.getAttribute(n.localName));if(a&&0===a[1].indexOf(t)){var s=r(o+a[1].split(t)[1]);e.setAttribute(n.localName,"url("+s+")")}}})})}function a(){var e=document.getElementsByTagName("base")[0],t=window.location.href.split("#")[0],r=e&&e.href;this.urlPrefix=r&&r!==t?t+c:c,this.content=[],this.isFirefox=/firefox\//i.test(navigator.userAgent),this.isIE=/(trident|edge)\//i.test(navigator.userAgent),!this.isIE&&r&&window.addEventListener("spriteLoaderLocationUpdated",function(e){var t=this.urlPrefix,r=e.detail.newUrl.split(c)[0]+c;if(o(this.svg,t,r),this.urlPrefix=r,this.isFirefox){var a=n(document.querySelectorAll("use[*|href]"));a.forEach(function(e){var n=e.getAttribute(f);n&&0===n.indexOf(t)&&e.setAttributeNS(p,f,r+n.split(c)[1])})}}.bind(this))}var i=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke"],s="["+i.join("],[")+"]",l=/^url\((.*)\)$/,u=function(e){for(var t=e.querySelector("defs"),n=e.querySelectorAll("symbol linearGradient, symbol radialGradient, symbol pattern"),r=0,o=n.length;o>r;r++)t.appendChild(n[r])},c="#",f="xlink:href",p="http://www.w3.org/1999/xlink",d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="'+p+'"',h="</svg>",g="{content}";a.styles=["position:absolute","width:0","height:0","visibility:hidden"],a.spriteTemplate=d+' style="'+a.styles.join(";")+'"><defs>'+g+"</defs>"+h,a.symbolTemplate=d+">"+g+h,a.prototype.content=null,a.prototype.add=function(e,t){return this.svg&&this.appendSymbol(e),this.content.push(e),c+t},a.prototype.wrapSVG=function(e,t){var n=t.replace(g,e),r=(new DOMParser).parseFromString(n,"image/svg+xml").documentElement;return!this.isIE&&this.urlPrefix&&o(r,c,this.urlPrefix),r},a.prototype.appendSymbol=function(e){var t=this.wrapSVG(e,a.symbolTemplate).childNodes[0];this.svg.querySelector("defs").appendChild(t),this.isFirefox&&u(this.svg)},a.prototype.toString=function(){var e=document.createElement("div");return e.appendChild(this.render()),e.innerHTML},a.prototype.render=function(e,t){e=e||null,t="boolean"==typeof t?t:!0;var n=this.wrapSVG(this.content.join(""),a.spriteTemplate);return this.isFirefox&&u(n),e&&(t&&e.childNodes[0]?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)),this.svg=n,n},e.exports=a},function(e,t,n){e.exports=n.p+"32400f4e08932a94d8bfd2422702c446.eot"},function(e,t,n){e.exports=n.p+"32400f4e08932a94d8bfd2422702c446.eot"},function(e,t,n){e.exports=n.p+"f775f9cca88e21d45bebe185b27c0e5b.svg"},function(e,t,n){e.exports=n.p+"a3de2170e4e9df77161ea5d3f31b2668.ttf"},function(e,t,n){e.exports=n.p+"db812d8a70a4e88e888744c1c9a27e89.woff2"},function(e,t,n){e.exports=n.p+"a35720c2fed2c7f043bc7e4ffb45e073.woff"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXQAAABsCAYAAAB6kUkRAAAAAXNSR0IArs4c6QAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAABWdJREFUeAHt3EFq40AQBdCZQQcK5P5HEPhGM2ZAO6dCFS26ynnZGNLdcvl9+6OVfv99/v1K/J2Jvf+3pg9k38D+lQKf6YsJOE2280AyYOnuDCv/3n/yR5wgQIAAgY4CCr1jKmYiQIBAQUChF9AcIUCAQEcBhd4xFTMRIECgIKDQC2iOECBAoKOAQu+YipkIECBQEFDoBTRHCBAg0FFAoXdMxUwECBAoCCj0ApojBAgQ6Cig0DumYiYCBAgUBBR6Ac0RAgQIdBQ4zjP3tIbzM/kwiOynzo2TvfqP239zWgVPARfQvj7SLGDpfh1VbSUXsDv0mrJTBAgQaCeg0NtFYiACBAjUBBR6zc0pAgQItBNQ6O0iMRABAgRqAgq95uYUAQIE2gko9HaRGIgAAQI1AYVec3OKAAEC7QQUertIDESAAIGagEKvuTlFgACBdgIKvV0kBiJAgEBNQKHX3JwiQIBAO4EjO1G7ZzW0Gygrmtufe7JD7to9dwu4Zy5rpvph6T7R7v0Fu0Nf8710FQIECGwXUOjbIzAAAQIE1ggo9DWOrkKAAIHtAgp9ewQGIECAwBoBhb7G0VUIECCwXUChb4/AAAQIEFgjoNDXOLoKAQIEtgso9O0RGIAAAQJrBBT6GkdXIUCAwHYBhb49AgMQIEBgjYBCX+PoKgQIENgucJxn7mkK5+e9zyK4XST3cW8fZ7jm7T75NxBw3mzOiWbpPuF6/YLdoc/5LpuUAAECoYBCD3ksEiBAYI6AQp+TlUkJECAQCij0kMciAQIE5ggo9DlZmZQAAQKhgEIPeSwSIEBgjoBCn5OVSQkQIBAKKPSQxyIBAgTmCCj0OVmZlAABAqGAQg95LBIgQGCOgEKfk5VJCRAgEAoc4eqLxceL/731v5If+OOtMd7xwwn4HVO9PlMy3eex2b9gd+hX8l4JECAwXEChDw/Q+AQIELgEFPol4ZUAAQLDBRT68ACNT4AAgUtAoV8SXgkQIDBcQKEPD9D4BAgQuAQU+iXhlQABAsMFFPrwAI1PgACBS0ChXxJeCRAgMFxAoQ8P0PgECBC4BBT6JeGVAAECwwWO8zxzHyG7P3d1uzcLJL8Nm6f19mkBAafJJh1whz4pLbMSIEAgEFDoAY4lAgQITBJQ6JPSMisBAgQCAYUe4FgiQIDAJAGFPiktsxIgQCAQUOgBjiUCBAhMElDok9IyKwECBAIBhR7gWCJAgMAkAYU+KS2zEiBAIBBQ6AGOJQIECEwSUOiT0jIrAQIEAoEjWHu95Fkur12a/tejO5oGs2osAa+SbHqdXMDu0JvGaCwCBAhkBRR6Vsx+AgQINBVQ6E2DMRYBAgSyAgo9K2Y/AQIEmgoo9KbBGIsAAQJZAYWeFbOfAAECTQUUetNgjEWAAIGsgELPitlPgACBpgIKvWkwxiJAgEBWQKFnxewnQIBAUwGF3jQYYxEgQCArcJyezZI127o/92SHraN684qAgCtqg87cG7A79EFfBaMSIEAgElDokY41AgQIDBJQ6IPCMioBAgQiAYUe6VgjQIDAIAGFPigsoxIgQCASUOiRjjUCBAgMElDog8IyKgECBCIBhR7pWCNAgMAgAYU+KCyjEiBAIBJQ6JGONQIECAwSUOiDwjIqAQIEIoHj8XhE69ZuFrj3yQ43D+/y3wsI+HujxI58W30krl7Zem/A2endoVcydIYAAQINBRR6w1CMRIAAgYqAQq+oOUOAAIGGAgq9YShGIkCAQEVAoVfUnCFAgEBDAYXeMBQjESBAoCKg0CtqzhAgQKChgEJvGIqRCBAgUBFQ6BU1ZwgQINBQQKE3DMVIBAgQqAgo9IqaMwQIEGgo8A9bODHAkaf7RwAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAD6AAAA+gBtXtSawAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIUSURBVEiJ7ZfPaxNBFMe/bzSbRDZaghdngqyI4MHelGIPSvEg/h2l9SwFEYoXEVEKFfRUsP+HULxo61n0oIjoIskMITnIxl/JknkeGqGKmd0Z9SK+4+z3fT8zb2dm3wKBkSTJTJIkM6H5+0MTR6PROgAGsBiSTyFJSqkLzLwFgJj5kjHm4V8HN5vNg7Va7QWAo5OhThRFp9I0/eDjI3zB9Xp9bQ8UANRwOLzt6+O1YqXUAjM/+kUeA7iotd7642Ap5QEAzwEcnyJJ8zyf7fV6H8v4+ZT6jgMKAEmlUrlV1qzUiqWU8wCeoHiilpkXjDGPfxs8KfEzACfKTBLAu/F4PNvtdj+5RIWlZuabHlAAOCaEuFEkcq641WrNWWt3AOzzAAOABXBea709TeC8Mpl5nog2PaHf4wyAqeD/8e+Hc1crpa4AOBno/arT6dyd9tC5q4noqbV2DWHH6ZxL4DTMsqwTx/EhIjrrCV7XWjuPYeHNVa1WVwG89IC+FkJcLxIVgtM0/UpEi9gtX1FYZl5qt9tfioSl3t1gMGg3Go3DAOYKpPeNMRtlPH2+x9cAvHE8T/M8Xy1rVhqstf4shFjCbpvzczCA5bLdB+B5TLIsS+M4PkJEp3+gMm8YY+75eHl3mdbaFSJ6u2fofZ7nV319vMGTzmIZk5Iz8+V+vz/w9QkOKeWmlPJBaH7wv1MURSuhuQDwDY+Crx8jQ1SvAAAAAElFTkSuQmCC"},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){var t=n(856),r=n(844),o=n(130).asap;return t({scheduler:new r(o)})}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){function e(e){this._async=e,this._running=!1,this._queue=this,this._queueLen=0,this._afterQueue={},this._afterQueueLen=0;var t=this;this.drain=function(){t._drain()}}return e.prototype.enqueue=function(e){this._queue[this._queueLen++]=e,this.run()},e.prototype.afterQueue=function(e){this._afterQueue[this._afterQueueLen++]=e,this.run()},e.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},e.prototype._drain=function(){for(var e=0;e<this._queueLen;++e)this._queue[e].run(),this._queue[e]=void 0;for(this._queueLen=0,this._running=!1,e=0;e<this._afterQueueLen;++e)this._afterQueue[e].run(),this._afterQueue[e]=void 0;this._afterQueueLen=0},e}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){var t=n(320),r=n(194);return function(e){function n(t){function n(e){c=null,this.resolve(e)}function r(e){this.resolved||(c.push(e),0===--u&&this.reject(c))}for(var o,a,i=e._defer(),s=i._handler,l=t.length>>>0,u=l,c=[],f=0;l>f;++f)if(a=t[f],void 0!==a||f in t){if(o=e._handler(a),o.state()>0){s.become(o),e._visitRemaining(t,f,o);break}o.visit(s,n,r)}else--u;return 0===u&&s.reject(new RangeError("any(): array must not be empty")),i}function o(t,n){function r(e){this.resolved||(c.push(e),0===--d&&(f=null,this.resolve(c)))}function o(e){this.resolved||(f.push(e),0===--a&&(c=null,this.reject(f)))}var a,i,s,l=e._defer(),u=l._handler,c=[],f=[],p=t.length>>>0,d=0;for(s=0;p>s;++s)i=t[s],(void 0!==i||s in t)&&++d;for(n=Math.max(n,0),a=d-n+1,d=Math.min(n,d),n>d?u.reject(new RangeError("some(): array must contain at least "+n+" item(s), but had "+d)):0===d&&u.resolve(c),s=0;p>s;++s)i=t[s],(void 0!==i||s in t)&&e._handler(i).visit(u,r,o,u.notify);return l}function a(t,n){return e._traverse(n,t)}function i(t,n){var r=_.call(t);return e._traverse(n,r).then(function(e){return s(r,e)})}function s(t,n){for(var r=n.length,o=new Array(r),a=0,i=0;r>a;++a)n[a]&&(o[i++]=e._handler(t[a]).value);return o.length=i,o}function l(e){return g(e.map(u))}function u(n){var r=e._handler(n);return 0===r.state()?h(n).then(t.fulfilled,t.rejected):(r._unreport(),t.inspect(r))}function c(e,t){return arguments.length>2?m.call(e,p(t),arguments[2]):m.call(e,p(t))}function f(e,t){return arguments.length>2?v.call(e,p(t),arguments[2]):v.call(e,p(t))}function p(e){return function(t,n,r){return d(e,void 0,[t,n,r])}}var d=r(e),h=e.resolve,g=e.all,m=Array.prototype.reduce,v=Array.prototype.reduceRight,_=Array.prototype.slice;return e.any=n,e.some=o,e.settle=l,e.map=a,e.filter=i,e.reduce=c,e.reduceRight=f,e.prototype.spread=function(e){return this.then(g).then(function(t){return e.apply(this,t)})},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){function e(){throw new TypeError("catch predicate must be a function")}function t(e,t){return n(t)?e instanceof t:t(e)}function n(e){return e===Error||null!=e&&e.prototype instanceof Error}function r(e){return("object"==typeof e||"function"==typeof e)&&null!==e}function o(e){return e}return function(n){function a(e,n){return function(r){return t(r,n)?e.call(this,r):u(r)}}function i(e,t,n,o){var a=e.call(t);return r(a)?s(a,n,o):n(o)}function s(e,t,n){return l(e).then(function(){return t(n)})}var l=n.resolve,u=n.reject,c=n.prototype["catch"];return n.prototype.done=function(e,t){this._handler.visit(this._handler.receiver,e,t)},n.prototype["catch"]=n.prototype.otherwise=function(t){return arguments.length<2?c.call(this,t):"function"!=typeof t?this.ensure(e):c.call(this,a(arguments[1],t))},n.prototype["finally"]=n.prototype.ensure=function(e){return"function"!=typeof e?this:this.then(function(t){return i(e,this,o,t)},function(t){return i(e,this,u,t)})},n.prototype["else"]=n.prototype.orElse=function(e){return this.then(void 0,function(){return e})},n.prototype["yield"]=function(e){return this.then(function(){return e})},n.prototype.tap=function(e){return this.then(e)["yield"](this)},n}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){return function(e){return e.prototype.fold=function(t,n){var r=this._beget();return this._handler.fold(function(n,r,o){e._handler(n).fold(function(e,n,r){r.resolve(t.call(this,n,e))},r,this,o)},n,r._handler.receiver,r._handler),r},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){var t=n(320).inspect;return function(e){return e.prototype.inspect=function(){return t(e._handler(this))},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){return function(e){function t(e,t,r,o){return n(function(t){return[t,e(t)]},t,r,o)}function n(e,t,o,a){function i(a,i){return r(o(a)).then(function(){return n(e,t,o,i)})}return r(a).then(function(n){return r(t(n)).then(function(t){return t?n:r(e(n)).spread(i)})})}var r=e.resolve;return e.iterate=t,e.unfold=n,e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){return function(e){return e.prototype.progress=function(e){return this.then(void 0,void 0,e)},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){function t(e,t,n,o){return r.setTimer(function(){e(n,o,t)},t)}var r=n(130),o=n(319);return function(e){function n(e,n,r){t(a,e,n,r)}function a(e,t){t.resolve(e)}function i(e,t,n){var r="undefined"==typeof e?new o("timed out after "+n+"ms"):e;t.reject(r)}return e.prototype.delay=function(e){var t=this._beget();return this._handler.fold(n,e,void 0,t._handler),t},e.prototype.timeout=function(e,n){var o=this._beget(),a=o._handler,s=t(i,e,n,o._handler);return this._handler.visit(a,function(e){r.clearTimer(s),this.resolve(e)},function(e){r.clearTimer(s),this.reject(e)},a.notify),o},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){function t(e){throw e}function r(){}var o=n(130).setTimer,a=n(854);return function(e){function n(e){e.handled||(d.push(e),c("Potentially unhandled rejection ["+e.id+"] "+a.formatError(e.value)))}function i(e){var t=d.indexOf(e);t>=0&&(d.splice(t,1),f("Handled previous rejection ["+e.id+"] "+a.formatObject(e.value)))}function s(e,t){p.push(e,t),null===h&&(h=o(l,0))}function l(){for(h=null;p.length>0;)p.shift()(p.shift())}var u,c=r,f=r;"undefined"!=typeof console&&(u=console,c="undefined"!=typeof u.error?function(e){u.error(e)}:function(e){u.log(e)},f="undefined"!=typeof u.info?function(e){u.info(e)}:function(e){u.log(e)}),e.onPotentiallyUnhandledRejection=function(e){s(n,e)},e.onPotentiallyUnhandledRejectionHandled=function(e){s(i,e)},e.onFatalRejection=function(e){s(t,e.value)};var p=[],d=[],h=null;return e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){return function(e){return e.prototype["with"]=e.prototype.withThis=function(e){var t=this._beget(),n=t._handler;return n.receiver=e,this._handler.chain(n,e),t},e}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){function e(e){var n="object"==typeof e&&null!==e&&(e.stack||e.message)?e.stack||e.message:t(e);return e instanceof Error?n:n+" (WARNING: non-Error used)"}function t(e){var t=String(e);return"[object Object]"===t&&"undefined"!=typeof JSON&&(t=n(e,t)),t}function n(e,t){try{return JSON.stringify(e)}catch(n){return t}}return{formatError:e,formatObject:t,tryStringify:n}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(){function e(e,t,n){return e[n]=t,e}function t(e){return"function"==typeof e?e.bind():Object.create(e)}return function(n,r,o,a){return"undefined"==typeof r&&(r=e),Object.keys(a).reduce(function(e,t){var o=a[t];return"function"==typeof o?r(e,n(o),t):e},"undefined"==typeof o?t(a):o)}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;(function(o){/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(a){"use strict";r=function(){return function(e){function t(e,t){this._handler=e===b?t:n(e)}function n(e){function t(e){o.resolve(e)}function n(e){o.reject(e)}function r(e){o.notify(e)}var o=new x;try{e(t,n,r)}catch(a){n(a)}return o}function r(e){return F(e)?e:new t(b,new C(v(e)))}function a(e){return new t(b,new C(new P(e)))}function i(){return ee}function s(){return new t(b,new x)}function l(e,t){var n=new x(e.receiver,e.join().context);return new t(b,n)}function u(e){return f(H,null,e)}function c(e,t){return f(W,e,t)}function f(e,n,r){function o(t,o,i){i.resolved||p(r,a,t,e(n,o,t),i)}function a(e,t,n){c[e]=t,0===--u&&n.become(new T(c))}for(var i,s="function"==typeof n?o:a,l=new x,u=r.length>>>0,c=new Array(u),f=0;f<r.length&&!l.resolved;++f)i=r[f],void 0!==i||f in r?p(r,s,f,i,l):--u;return 0===u&&l.become(new T(c)),new t(b,l)}function p(e,t,n,r,o){if(N(r)){var a=_(r),i=a.state();0===i?a.fold(t,n,void 0,o):i>0?t(n,a.value,o):(o.become(a),d(e,n+1,a))}else t(n,r,o)}function d(e,t,n){for(var r=t;r<e.length;++r)h(v(e[r]),n)}function h(e,t){if(e!==t){var n=e.state();0===n?e.visit(e,void 0,e._unreport):0>n&&e._unreport()}}function g(e){return"object"!=typeof e||null===e?a(new TypeError("non-iterable passed to race()")):0===e.length?i():1===e.length?r(e[0]):m(e)}function m(e){var n,r,o,a=new x;for(n=0;n<e.length;++n)if(r=e[n],void 0!==r||n in e){if(o=v(r),0!==o.state()){a.become(o),d(e,n+1,o);break}o.visit(a,a.resolve,a.reject)}return new t(b,a)}function v(e){return F(e)?e._handler.join():N(e)?y(e):new T(e)}function _(e){return F(e)?e._handler.join():y(e)}function y(e){try{var t=e.then;return"function"==typeof t?new E(t,e):new T(e)}catch(n){return new P(n)}}function b(){}function w(){}function x(e,n){t.createContext(this,n),this.consumers=void 0,this.receiver=e,this.handler=void 0,this.resolved=!1}function C(e){this.handler=e}function E(e,t){x.call(this),Y.enqueue(new A(e,t,this))}function T(e){t.createContext(this),this.value=e}function P(e){t.createContext(this),this.id=++J,this.value=e,this.handled=!1,this.reported=!1,this._report()}function k(e,t){this.rejection=e,this.context=t}function M(e){this.rejection=e}function S(){return new P(new TypeError("Promise cycle"))}function R(e,t){this.continuation=e,this.handler=t}function D(e,t){this.handler=t,this.value=e}function A(e,t,n){this._then=e,this.thenable=t,this.resolver=n}function I(e,t,n,r,o){try{e.call(t,n,r,o)}catch(a){r(a)}}function O(e,t,n,r){this.f=e,this.z=t,this.c=n,this.to=r,this.resolver=Z,this.receiver=this}function F(e){return e instanceof t}function N(e){return("object"==typeof e||"function"==typeof e)&&null!==e}function L(e,n,r,o){return"function"!=typeof e?o.become(n):(t.enterContext(n),U(e,n.value,r,o),void t.exitContext())}function B(e,n,r,o,a){return"function"!=typeof e?a.become(r):(t.enterContext(r),V(e,n,r.value,o,a),void t.exitContext())}function j(e,n,r,o,a){return"function"!=typeof e?a.notify(n):(t.enterContext(r),z(e,n,o,a),void t.exitContext())}function W(e,t,n){try{return e(t,n)}catch(r){return a(r)}}function U(e,t,n,r){try{r.become(v(e.call(n,t)))}catch(o){r.become(new P(o))}}function V(e,t,n,r,o){try{e.call(r,t,n,o)}catch(a){o.become(new P(a))}}function z(e,t,n,r){try{r.notify(e.call(n,t))}catch(o){r.notify(o)}}function q(e,t){t.prototype=K(e.prototype),t.prototype.constructor=t}function H(e,t){return t}function X(){}function G(){return"undefined"!=typeof o&&null!==o&&"function"==typeof o.emit?function(e,t){return"unhandledRejection"===e?o.emit(e,t.value,t):o.emit(e,t)}:"undefined"!=typeof self&&"function"==typeof CustomEvent?function(e,t,n){var r=!1;try{var o=new n("unhandledRejection");r=o instanceof n}catch(a){}return r?function(e,r){var o=new n(e,{detail:{reason:r.value,key:r},bubbles:!1,cancelable:!0});return!t.dispatchEvent(o)}:e}(X,self,CustomEvent):X}var Y=e.scheduler,Q=G(),K=Object.create||function(e){function t(){}return t.prototype=e,new t};t.resolve=r,t.reject=a,t.never=i,t._defer=s,t._handler=v,t.prototype.then=function(e,t,n){var r=this._handler,o=r.join().state();if("function"!=typeof e&&o>0||"function"!=typeof t&&0>o)return new this.constructor(b,r);var a=this._beget(),i=a._handler;return r.chain(i,r.receiver,e,t,n),a},t.prototype["catch"]=function(e){return this.then(void 0,e)},t.prototype._beget=function(){return l(this._handler,this.constructor)},t.all=u,t.race=g,t._traverse=c,t._visitRemaining=d,b.prototype.when=b.prototype.become=b.prototype.notify=b.prototype.fail=b.prototype._unreport=b.prototype._report=X,b.prototype._state=0,b.prototype.state=function(){return this._state},b.prototype.join=function(){for(var e=this;void 0!==e.handler;)e=e.handler;return e},b.prototype.chain=function(e,t,n,r,o){this.when({resolver:e,receiver:t,fulfilled:n,rejected:r,progress:o})},b.prototype.visit=function(e,t,n,r){this.chain(Z,e,t,n,r)},b.prototype.fold=function(e,t,n,r){this.when(new O(e,t,n,r))},q(b,w),w.prototype.become=function(e){e.fail()};var Z=new w;q(b,x),x.prototype._state=0,x.prototype.resolve=function(e){this.become(v(e))},x.prototype.reject=function(e){this.resolved||this.become(new P(e))},x.prototype.join=function(){if(!this.resolved)return this;for(var e=this;void 0!==e.handler;)if(e=e.handler,e===this)return this.handler=S();return e},x.prototype.run=function(){var e=this.consumers,t=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var n=0;n<e.length;++n)t.when(e[n])},x.prototype.become=function(e){this.resolved||(this.resolved=!0,this.handler=e,void 0!==this.consumers&&Y.enqueue(this),void 0!==this.context&&e._report(this.context))},x.prototype.when=function(e){this.resolved?Y.enqueue(new R(e,this.handler)):void 0===this.consumers?this.consumers=[e]:this.consumers.push(e)},x.prototype.notify=function(e){this.resolved||Y.enqueue(new D(e,this))},x.prototype.fail=function(e){var t="undefined"==typeof e?this.context:e;this.resolved&&this.handler.join().fail(t)},x.prototype._report=function(e){this.resolved&&this.handler.join()._report(e)},x.prototype._unreport=function(){this.resolved&&this.handler.join()._unreport()},q(b,C),C.prototype.when=function(e){Y.enqueue(new R(e,this))},C.prototype._report=function(e){this.join()._report(e)},C.prototype._unreport=function(){this.join()._unreport()},q(x,E),q(b,T),T.prototype._state=1,T.prototype.fold=function(e,t,n,r){B(e,t,this,n,r)},T.prototype.when=function(e){L(e.fulfilled,this,e.receiver,e.resolver)};var J=0;q(b,P),P.prototype._state=-1,P.prototype.fold=function(e,t,n,r){r.become(this)},P.prototype.when=function(e){"function"==typeof e.rejected&&this._unreport(),L(e.rejected,this,e.receiver,e.resolver)},P.prototype._report=function(e){Y.afterQueue(new k(this,e))},P.prototype._unreport=function(){this.handled||(this.handled=!0,Y.afterQueue(new M(this)))},P.prototype.fail=function(e){this.reported=!0,Q("unhandledRejection",this),t.onFatalRejection(this,void 0===e?this.context:e)},k.prototype.run=function(){this.rejection.handled||this.rejection.reported||(this.rejection.reported=!0,Q("unhandledRejection",this.rejection)||t.onPotentiallyUnhandledRejection(this.rejection,this.context))},M.prototype.run=function(){this.rejection.reported&&(Q("rejectionHandled",this.rejection)||t.onPotentiallyUnhandledRejectionHandled(this.rejection))},t.createContext=t.enterContext=t.exitContext=t.onPotentiallyUnhandledRejection=t.onPotentiallyUnhandledRejectionHandled=t.onFatalRejection=X;var $=new b,ee=new t(b,$);return R.prototype.run=function(){this.handler.join().when(this.continuation)},D.prototype.run=function(){var e=this.handler.consumers;if(void 0!==e)for(var t,n=0;n<e.length;++n)t=e[n],j(t.progress,this.value,this.handler,t.receiver,t.resolver)},A.prototype.run=function(){function e(e){r.resolve(e)}function t(e){r.reject(e)}function n(e){r.notify(e)}var r=this.resolver;I(this._then,this.thenable,e,t,n)},O.prototype.fulfilled=function(e){this.f.call(this.c,this.z,e,this.to)},O.prototype.rejected=function(e){this.to.reject(e)},O.prototype.progress=function(e){this.to.notify(e)},t}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))}).call(t,n(97))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){var t=n(859),r=n(858),o=new t(new r);return function(e){return o.monitor(e)}}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){function t(){this._previouslyReported=!1}function r(){var e,t,n,r;if("undefined"==typeof console)e=t=o;else{var a=console;"function"==typeof a.error&&"function"==typeof a.dir?(t=function(e){a.error(e)},e=function(e){a.log(e)},"function"==typeof a.groupCollapsed&&(n=function(e){a.groupCollapsed(e)},r=function(){a.groupEnd()})):e=t="undefined"!=typeof a.log&&"undefined"!=typeof JSON?function(e){if("string"!=typeof e)try{e=JSON.stringify(e)}catch(t){}a.log(e)}:o}return{msg:e,warn:t,groupStart:n||t,groupEnd:r||o}}function o(){}var a=n(321),i="[promises] Unhandled rejections: ",s="[promises] All previously unhandled rejections have now been handled";return t.prototype=r(),t.prototype.log=function(e){if(0===e.length)return void(this._previouslyReported&&(this._previouslyReported=!1,this.msg(s)));this._previouslyReported=!0,this.groupStart(i+e.length);try{this._log(e)}finally{this.groupEnd()}},t.prototype._log=function(e){for(var t=0;t<e.length;++t)this.warn(a.format(e[t]))},t}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){function t(e){this.logDelay=0,this.stackFilter=s,this.stackJumpSeparator=i,this.filterDuplicateFrames=!0,this._reporter=e,"function"==typeof e.configurePromiseMonitor&&e.configurePromiseMonitor(this),this._traces=[],this._traceTask=0;var t=this;this._doLogTraces=function(){t._logTraces()}}function r(e,t,n){t.length>1&&(t[0]=n,e.push.apply(e,t))}function o(e,t){return t.filter(function(t){return!e.test(t)})}function a(e){return!e.handler.handled}var i="from execution context:",s=/[\s\(\/\\](node|module|timers)\.js:|when([\/\\]{1,2}(lib|monitor|es6-shim)[\/\\]{1,2}|\.js)|(new\sPromise)\b|(\b(PromiseMonitor|ConsoleReporter|Scheduler|RunHandlerTask|ProgressTask|Promise|.*Handler)\.[\w_]\w\w+\b)|\b(tryCatch\w+|getHandler\w*)\b/i,l=n(130).setTimer,u=n(321),c=[];return t.prototype.monitor=function(e){var t=this;return e.createContext=function(e,n){e.context=t.createContext(e,n)},e.enterContext=function(e){c.push(e.context)},e.exitContext=function(){c.pop()},e.onPotentiallyUnhandledRejection=function(e,n){return t.addTrace(e,n)},e.onPotentiallyUnhandledRejectionHandled=function(e){return t.removeTrace(e)},e.onFatalRejection=function(e,n){return t.fatal(e,n)},this},t.prototype.createContext=function(e,t){var n={parent:t||c[c.length-1],stack:void 0};return u.captureStack(n,e.constructor),n},t.prototype.addTrace=function(e,t){var n,r;for(r=this._traces.length-1;r>=0&&(n=this._traces[r],n.handler!==e);--r);r>=0?n.extraContext=t:this._traces.push({handler:e,extraContext:t}),this.logTraces()},t.prototype.removeTrace=function(){this.logTraces()},t.prototype.fatal=function(e,t){var n=new Error;n.stack=this._createLongTrace(e.value,e.context,t).join("\n"),l(function(){throw n},0)},t.prototype.logTraces=function(){this._traceTask||(this._traceTask=l(this._doLogTraces,this.logDelay))},t.prototype._logTraces=function(){this._traceTask=void 0,this._traces=this._traces.filter(a),this._reporter.log(this.formatTraces(this._traces))},t.prototype.formatTraces=function(e){return e.map(function(e){return this._createLongTrace(e.handler.value,e.handler.context,e.extraContext)},this)},t.prototype._createLongTrace=function(e,t,n){var r=u.parse(e)||[String(e)+" (WARNING: non-Error used)"];return r=o(this.stackFilter,r,0),this._appendContext(r,t),this._appendContext(r,n),this.filterDuplicateFrames?this._removeDuplicates(r):r},t.prototype._removeDuplicates=function(e){var t={},n=this.stackJumpSeparator,r=0;return e.reduceRight(function(e,o,a){return 0===a?e.unshift(o):o===n?r>0&&(e.unshift(o),r=0):t[o]||(t[o]=!0,e.unshift(o),++r),e},[])},t.prototype._appendContext=function(e,t){e.push.apply(e,this._createTrace(t))},t.prototype._createTrace=function(e){for(var t,n=[];e;)t=u.parse(e),t&&(t=o(this.stackFilter,t),r(n,t,this.stackJumpSeparator)),e=e.parent;return n},t}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t,n){var r;/** @license MIT License (c) copyright 2010-2014 original author or authors */ +!function(o){"use strict";r=function(e){var t=n(857),r=n(60).Promise;return t(r)}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(n(14))},function(e,t){function n(e,t,n){var r;return r=t?new o(e,t):new o(e)}var r=function(){return this}(),o=r.WebSocket||r.MozWebSocket;e.exports=o?n:null,o&&(n.prototype=o.prototype)},function(e,t){}]); \ No newline at end of file diff --git a/package.json b/package.json index 0ea69d39a3..cd05f4829a 100644 --- a/package.json +++ b/package.json @@ -38,59 +38,7 @@ "tonic-arctic-sample-data": "http://www.kitware.com/in-situ-data/npm/tonic-arctic-sample-data-1.2.2.tgz", - "node-libs-browser": "1.0.0", - - "babel-core": "6.5.0", - "babel-polyfill": "6.5.0", - "babel-preset-es2015": "6.5.0", - "babel-preset-react": "6.5.0", - "babel-eslint": "5.0.0", - "babel-loader": "6.2.3", - - "eslint": "1.10.3", - "eslint-loader": "1.2.1", - "eslint-plugin-babel": "3.0.0", - "eslint-plugin-react": "3.16.1", - - "autoprefixer": "6.3.1", - "css-loader": "0.23.1", - "expose-loader": "0.7.1", - "file-loader": "0.8.5", - "html-loader": "0.4.0", - "json-loader": "0.5.4", - "postcss-loader": "0.8.0", - "shader-loader": "1.1.4", - "style-loader": "0.13.0", - "svg-sprite-loader": "0.0.16", - "url-loader": "0.5.7", - - "html-webpack-plugin": "2.7.2", - - "webpack": "1.12.12", - "webpack-dev-server": "1.14.1", - - "istanbul":"0.4.2", - "istanbul-instrumenter-loader": "0.1.3", - - "expect":"1.13.4", - "jasmine-core": "2.4.1", - "jest-cli": "0.8.2", - "phantomjs": "1.9.19", - - "karma": "0.13.19", - "karma-chrome-launcher": "0.2.2", - "karma-cli": "0.1.2", - "karma-coverage" : "0.5.3", - "karma-firefox-launcher": "0.1.7", - "karma-jasmine": "0.3.6", - "karma-phantomjs-launcher": "0.2.3", - "karma-safari-launcher": "0.1.1", - "karma-sourcemap-loader": "0.3.7", - "karma-webpack": "1.7.0", - - "commitizen": "2.5.0", - "cz-conventional-changelog": "1.1.5", - "semantic-release": "4.3.5" + "kw-web-suite": "1.0.2" }, "config": { "commitizen": {