All Downloads are FREE. Search and download functionalities are using the official Maven repository.

urule-asserts.js.decisionTableEditor.bundle.js Maven / Gradle / Ivy

!function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return t[o].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n(1),n(315),n(317),n(319),n(10),n(321),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369);var i=n(370),r=o(i),a=n(14),s=o(a),l=n(41),A=o(l);$(document).ready(function(){A.default.render(s.default.createElement(r.default,null),document.getElementById("dialogContainer")),new URule.DecisionTable("container")})},function(t,e,n){var o=n(2);"string"==typeof o&&(o=[[t.id,o,""]]);n(9)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,'/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}\n/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:Glyphicons Halflings;src:url('+n(4)+");src:url("+n(4)+"?#iefix) format('embedded-opentype'),url("+n(5)+") format('woff2'),url("+n(6)+") format('woff'),url("+n(7)+") format('truetype'),url("+n(8)+'#glyphicons_halflingsregular) format(\'svg\')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:Glyphicons Halflings;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"*"}.glyphicon-plus:before{content:"+"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\\20AC"}.glyphicon-minus:before{content:"\\2212"}.glyphicon-cloud:before{content:"\\2601"}.glyphicon-envelope:before{content:"\\2709"}.glyphicon-pencil:before{content:"\\270F"}.glyphicon-glass:before{content:"\\E001"}.glyphicon-music:before{content:"\\E002"}.glyphicon-search:before{content:"\\E003"}.glyphicon-heart:before{content:"\\E005"}.glyphicon-star:before{content:"\\E006"}.glyphicon-star-empty:before{content:"\\E007"}.glyphicon-user:before{content:"\\E008"}.glyphicon-film:before{content:"\\E009"}.glyphicon-th-large:before{content:"\\E010"}.glyphicon-th:before{content:"\\E011"}.glyphicon-th-list:before{content:"\\E012"}.glyphicon-ok:before{content:"\\E013"}.glyphicon-remove:before{content:"\\E014"}.glyphicon-zoom-in:before{content:"\\E015"}.glyphicon-zoom-out:before{content:"\\E016"}.glyphicon-off:before{content:"\\E017"}.glyphicon-signal:before{content:"\\E018"}.glyphicon-cog:before{content:"\\E019"}.glyphicon-trash:before{content:"\\E020"}.glyphicon-home:before{content:"\\E021"}.glyphicon-file:before{content:"\\E022"}.glyphicon-time:before{content:"\\E023"}.glyphicon-road:before{content:"\\E024"}.glyphicon-download-alt:before{content:"\\E025"}.glyphicon-download:before{content:"\\E026"}.glyphicon-upload:before{content:"\\E027"}.glyphicon-inbox:before{content:"\\E028"}.glyphicon-play-circle:before{content:"\\E029"}.glyphicon-repeat:before{content:"\\E030"}.glyphicon-refresh:before{content:"\\E031"}.glyphicon-list-alt:before{content:"\\E032"}.glyphicon-lock:before{content:"\\E033"}.glyphicon-flag:before{content:"\\E034"}.glyphicon-headphones:before{content:"\\E035"}.glyphicon-volume-off:before{content:"\\E036"}.glyphicon-volume-down:before{content:"\\E037"}.glyphicon-volume-up:before{content:"\\E038"}.glyphicon-qrcode:before{content:"\\E039"}.glyphicon-barcode:before{content:"\\E040"}.glyphicon-tag:before{content:"\\E041"}.glyphicon-tags:before{content:"\\E042"}.glyphicon-book:before{content:"\\E043"}.glyphicon-bookmark:before{content:"\\E044"}.glyphicon-print:before{content:"\\E045"}.glyphicon-camera:before{content:"\\E046"}.glyphicon-font:before{content:"\\E047"}.glyphicon-bold:before{content:"\\E048"}.glyphicon-italic:before{content:"\\E049"}.glyphicon-text-height:before{content:"\\E050"}.glyphicon-text-width:before{content:"\\E051"}.glyphicon-align-left:before{content:"\\E052"}.glyphicon-align-center:before{content:"\\E053"}.glyphicon-align-right:before{content:"\\E054"}.glyphicon-align-justify:before{content:"\\E055"}.glyphicon-list:before{content:"\\E056"}.glyphicon-indent-left:before{content:"\\E057"}.glyphicon-indent-right:before{content:"\\E058"}.glyphicon-facetime-video:before{content:"\\E059"}.glyphicon-picture:before{content:"\\E060"}.glyphicon-map-marker:before{content:"\\E062"}.glyphicon-adjust:before{content:"\\E063"}.glyphicon-tint:before{content:"\\E064"}.glyphicon-edit:before{content:"\\E065"}.glyphicon-share:before{content:"\\E066"}.glyphicon-check:before{content:"\\E067"}.glyphicon-move:before{content:"\\E068"}.glyphicon-step-backward:before{content:"\\E069"}.glyphicon-fast-backward:before{content:"\\E070"}.glyphicon-backward:before{content:"\\E071"}.glyphicon-play:before{content:"\\E072"}.glyphicon-pause:before{content:"\\E073"}.glyphicon-stop:before{content:"\\E074"}.glyphicon-forward:before{content:"\\E075"}.glyphicon-fast-forward:before{content:"\\E076"}.glyphicon-step-forward:before{content:"\\E077"}.glyphicon-eject:before{content:"\\E078"}.glyphicon-chevron-left:before{content:"\\E079"}.glyphicon-chevron-right:before{content:"\\E080"}.glyphicon-plus-sign:before{content:"\\E081"}.glyphicon-minus-sign:before{content:"\\E082"}.glyphicon-remove-sign:before{content:"\\E083"}.glyphicon-ok-sign:before{content:"\\E084"}.glyphicon-question-sign:before{content:"\\E085"}.glyphicon-info-sign:before{content:"\\E086"}.glyphicon-screenshot:before{content:"\\E087"}.glyphicon-remove-circle:before{content:"\\E088"}.glyphicon-ok-circle:before{content:"\\E089"}.glyphicon-ban-circle:before{content:"\\E090"}.glyphicon-arrow-left:before{content:"\\E091"}.glyphicon-arrow-right:before{content:"\\E092"}.glyphicon-arrow-up:before{content:"\\E093"}.glyphicon-arrow-down:before{content:"\\E094"}.glyphicon-share-alt:before{content:"\\E095"}.glyphicon-resize-full:before{content:"\\E096"}.glyphicon-resize-small:before{content:"\\E097"}.glyphicon-exclamation-sign:before{content:"\\E101"}.glyphicon-gift:before{content:"\\E102"}.glyphicon-leaf:before{content:"\\E103"}.glyphicon-fire:before{content:"\\E104"}.glyphicon-eye-open:before{content:"\\E105"}.glyphicon-eye-close:before{content:"\\E106"}.glyphicon-warning-sign:before{content:"\\E107"}.glyphicon-plane:before{content:"\\E108"}.glyphicon-calendar:before{content:"\\E109"}.glyphicon-random:before{content:"\\E110"}.glyphicon-comment:before{content:"\\E111"}.glyphicon-magnet:before{content:"\\E112"}.glyphicon-chevron-up:before{content:"\\E113"}.glyphicon-chevron-down:before{content:"\\E114"}.glyphicon-retweet:before{content:"\\E115"}.glyphicon-shopping-cart:before{content:"\\E116"}.glyphicon-folder-close:before{content:"\\E117"}.glyphicon-folder-open:before{content:"\\E118"}.glyphicon-resize-vertical:before{content:"\\E119"}.glyphicon-resize-horizontal:before{content:"\\E120"}.glyphicon-hdd:before{content:"\\E121"}.glyphicon-bullhorn:before{content:"\\E122"}.glyphicon-bell:before{content:"\\E123"}.glyphicon-certificate:before{content:"\\E124"}.glyphicon-thumbs-up:before{content:"\\E125"}.glyphicon-thumbs-down:before{content:"\\E126"}.glyphicon-hand-right:before{content:"\\E127"}.glyphicon-hand-left:before{content:"\\E128"}.glyphicon-hand-up:before{content:"\\E129"}.glyphicon-hand-down:before{content:"\\E130"}.glyphicon-circle-arrow-right:before{content:"\\E131"}.glyphicon-circle-arrow-left:before{content:"\\E132"}.glyphicon-circle-arrow-up:before{content:"\\E133"}.glyphicon-circle-arrow-down:before{content:"\\E134"}.glyphicon-globe:before{content:"\\E135"}.glyphicon-wrench:before{content:"\\E136"}.glyphicon-tasks:before{content:"\\E137"}.glyphicon-filter:before{content:"\\E138"}.glyphicon-briefcase:before{content:"\\E139"}.glyphicon-fullscreen:before{content:"\\E140"}.glyphicon-dashboard:before{content:"\\E141"}.glyphicon-paperclip:before{content:"\\E142"}.glyphicon-heart-empty:before{content:"\\E143"}.glyphicon-link:before{content:"\\E144"}.glyphicon-phone:before{content:"\\E145"}.glyphicon-pushpin:before{content:"\\E146"}.glyphicon-usd:before{content:"\\E148"}.glyphicon-gbp:before{content:"\\E149"}.glyphicon-sort:before{content:"\\E150"}.glyphicon-sort-by-alphabet:before{content:"\\E151"}.glyphicon-sort-by-alphabet-alt:before{content:"\\E152"}.glyphicon-sort-by-order:before{content:"\\E153"}.glyphicon-sort-by-order-alt:before{content:"\\E154"}.glyphicon-sort-by-attributes:before{content:"\\E155"}.glyphicon-sort-by-attributes-alt:before{content:"\\E156"}.glyphicon-unchecked:before{content:"\\E157"}.glyphicon-expand:before{content:"\\E158"}.glyphicon-collapse-down:before{content:"\\E159"}.glyphicon-collapse-up:before{content:"\\E160"}.glyphicon-log-in:before{content:"\\E161"}.glyphicon-flash:before{content:"\\E162"}.glyphicon-log-out:before{content:"\\E163"}.glyphicon-new-window:before{content:"\\E164"}.glyphicon-record:before{content:"\\E165"}.glyphicon-save:before{content:"\\E166"}.glyphicon-open:before{content:"\\E167"}.glyphicon-saved:before{content:"\\E168"}.glyphicon-import:before{content:"\\E169"}.glyphicon-export:before{content:"\\E170"}.glyphicon-send:before{content:"\\E171"}.glyphicon-floppy-disk:before{content:"\\E172"}.glyphicon-floppy-saved:before{content:"\\E173"}.glyphicon-floppy-remove:before{content:"\\E174"}.glyphicon-floppy-save:before{content:"\\E175"}.glyphicon-floppy-open:before{content:"\\E176"}.glyphicon-credit-card:before{content:"\\E177"}.glyphicon-transfer:before{content:"\\E178"}.glyphicon-cutlery:before{content:"\\E179"}.glyphicon-header:before{content:"\\E180"}.glyphicon-compressed:before{content:"\\E181"}.glyphicon-earphone:before{content:"\\E182"}.glyphicon-phone-alt:before{content:"\\E183"}.glyphicon-tower:before{content:"\\E184"}.glyphicon-stats:before{content:"\\E185"}.glyphicon-sd-video:before{content:"\\E186"}.glyphicon-hd-video:before{content:"\\E187"}.glyphicon-subtitles:before{content:"\\E188"}.glyphicon-sound-stereo:before{content:"\\E189"}.glyphicon-sound-dolby:before{content:"\\E190"}.glyphicon-sound-5-1:before{content:"\\E191"}.glyphicon-sound-6-1:before{content:"\\E192"}.glyphicon-sound-7-1:before{content:"\\E193"}.glyphicon-copyright-mark:before{content:"\\E194"}.glyphicon-registration-mark:before{content:"\\E195"}.glyphicon-cloud-download:before{content:"\\E197"}.glyphicon-cloud-upload:before{content:"\\E198"}.glyphicon-tree-conifer:before{content:"\\E199"}.glyphicon-tree-deciduous:before{content:"\\E200"}.glyphicon-cd:before{content:"\\E201"}.glyphicon-save-file:before{content:"\\E202"}.glyphicon-open-file:before{content:"\\E203"}.glyphicon-level-up:before{content:"\\E204"}.glyphicon-copy:before{content:"\\E205"}.glyphicon-paste:before{content:"\\E206"}.glyphicon-alert:before{content:"\\E209"}.glyphicon-equalizer:before{content:"\\E210"}.glyphicon-king:before{content:"\\E211"}.glyphicon-queen:before{content:"\\E212"}.glyphicon-pawn:before{content:"\\E213"}.glyphicon-bishop:before{content:"\\E214"}.glyphicon-knight:before{content:"\\E215"}.glyphicon-baby-formula:before{content:"\\E216"}.glyphicon-tent:before{content:"\\26FA"}.glyphicon-blackboard:before{content:"\\E218"}.glyphicon-bed:before{content:"\\E219"}.glyphicon-apple:before{content:"\\F8FF"}.glyphicon-erase:before{content:"\\E221"}.glyphicon-hourglass:before{content:"\\231B"}.glyphicon-lamp:before{content:"\\E223"}.glyphicon-duplicate:before{content:"\\E224"}.glyphicon-piggy-bank:before{content:"\\E225"}.glyphicon-scissors:before{content:"\\E226"}.glyphicon-bitcoin:before,.glyphicon-btc:before,.glyphicon-xbt:before{content:"\\E227"}.glyphicon-jpy:before,.glyphicon-yen:before{content:"\\A5"}.glyphicon-rub:before,.glyphicon-ruble:before{content:"\\20BD"}.glyphicon-scale:before{content:"\\E230"}.glyphicon-ice-lolly:before{content:"\\E231"}.glyphicon-ice-lolly-tasted:before{content:"\\E232"}.glyphicon-education:before{content:"\\E233"}.glyphicon-option-horizontal:before{content:"\\E234"}.glyphicon-option-vertical:before{content:"\\E235"}.glyphicon-menu-hamburger:before{content:"\\E236"}.glyphicon-modal-window:before{content:"\\E237"}.glyphicon-oil:before{content:"\\E238"}.glyphicon-grain:before{content:"\\E239"}.glyphicon-sunglasses:before{content:"\\E240"}.glyphicon-text-size:before{content:"\\E241"}.glyphicon-text-color:before{content:"\\E242"}.glyphicon-text-background:before{content:"\\E243"}.glyphicon-object-align-top:before{content:"\\E244"}.glyphicon-object-align-bottom:before{content:"\\E245"}.glyphicon-object-align-horizontal:before{content:"\\E246"}.glyphicon-object-align-left:before{content:"\\E247"}.glyphicon-object-align-vertical:before{content:"\\E248"}.glyphicon-object-align-right:before{content:"\\E249"}.glyphicon-triangle-right:before{content:"\\E250"}.glyphicon-triangle-left:before{content:"\\E251"}.glyphicon-triangle-bottom:before{content:"\\E252"}.glyphicon-triangle-top:before{content:"\\E253"}.glyphicon-console:before{content:"\\E254"}.glyphicon-superscript:before{content:"\\E255"}.glyphicon-subscript:before{content:"\\E256"}.glyphicon-menu-left:before{content:"\\E257"}.glyphicon-menu-right:before{content:"\\E258"}.glyphicon-menu-down:before{content:"\\E259"}.glyphicon-menu-up:before{content:"\\E260"}*,:after,:before{box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail>img,.thumbnail a>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline{margin-left:-5px}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:\'\\2014   \\A0\'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:\'\'}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:\'\\A0   \\2014\'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace}code{color:#c7254e;background-color:#f9f2f4;border-radius:4px}code,kbd{padding:2px 4px;font-size:90%}kbd{color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777}caption,th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;margin:0}fieldset,legend{padding:0;border:0}legend{display:block;width:100%;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{padding-top:7px}.form-control,output{display:block;font-size:14px;line-height:1.42857143;color:#555}.form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox-inline input[type=checkbox],.checkbox input[type=checkbox],.radio-inline input[type=radio],.radio input[type=radio]{position:absolute;margin-top:4px\\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .checkbox label,fieldset[disabled] .radio-inline,fieldset[disabled] .radio label,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success.checkbox-inline label,.has-success.checkbox label,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.radio-inline label,.has-success.radio label{color:#3c763d}.has-success .form-control{border-color:#3c763d;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning.checkbox-inline label,.has-warning.checkbox label,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.radio-inline label,.has-warning.radio label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error.checkbox-inline label,.has-error.checkbox label,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.radio-inline label,.has-error.radio label{color:#a94442}.has-error .form-control{border-color:#a94442;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary.active,.btn-primary:active,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success.active,.btn-success:active,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info.active,.btn-info:active,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger.active,.btn-danger:active,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio],[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group .form-control:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group .form-control:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{font-size:0;white-space:nowrap}.input-group-btn,.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li,.nav>li>a{position:relative;display:block}.nav>li>a{padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container-fluid .navbar-brand,.navbar>.container .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin:8px -15px;border-top:1px solid transparent;border-bottom:1px solid transparent;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.1),0 1px 0 hsla(0,0%,100%,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\\A0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;background-color:#eee}.jumbotron,.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container-fluid .jumbotron,.container .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container-fluid .jumbotron,.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle,.panel-title{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.list-group+.panel-footer,.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table-responsive>.table caption,.panel>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:transparent;border:0}.modal,.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translateY(-25%);transform:translateY(-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0);transform:translate(0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px}.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{left:5px}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel,.carousel-inner{position:relative}.carousel-inner{width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:left .6s ease-in-out;transition:left .6s ease-in-out}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media (-webkit-transform-3d),all and (transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translateZ(0);transform:translateZ(0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:transparent;filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,.0001));background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(90deg,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#80000000\',endColorstr=\'#00000000\',GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001),rgba(0,0,0,.5));background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(90deg,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#00000000\',endColorstr=\'#80000000\',GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:\'\\2039\'}.carousel-control .icon-next:before{content:\'\\203A\'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\\9;background-color:transparent;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}',""]);
},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&T.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",r(t,e),e}function l(t){var e=document.createElement("link");return e.rel="stylesheet",r(t,e),e}function A(t,e){var n,o,i;if(e.singleton){var r=w++;n=M||(M=s(e)),o=c.bind(null,n,r,!1),i=c.bind(null,n,r,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(e),o=d.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),o=u.bind(null,n),i=function(){a(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}function c(t,e,n,o){var i=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=C(e,i);else{var r=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function u(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e){var n=e.css,o=e.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([n],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(i),r&&URL.revokeObjectURL(r)}var g={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},p=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),f=h(function(){return document.head||document.getElementsByTagName("head")[0]}),M=null,w=0,T=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=p()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return o(n,e),function(t){for(var r=[],a=0;a1){for(var f=Array(p),M=0;M1){for(var T=Array(w),C=0;C>"),D={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:l,element:A(),instanceOf:c,node:h(),objectOf:d,oneOf:u,oneOfType:g,shape:p};i.prototype=Error.prototype,t.exports=D},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e){"use strict";t.exports="15.4.1"},function(t,e,n){"use strict";function o(t){return r.isValidElement(t)?void 0:i("143"),t}var i=n(19),r=n(21);n(20);t.exports=o},function(t,e,n){"use strict";t.exports=n(42)},function(t,e,n){"use strict";var o=n(43),i=n(48),r=n(174),a=n(71),s=n(68),l=n(179),A=n(180),c=n(181),u=n(182);n(56);i.inject();var d={findDOMNode:A,render:r.render,unmountComponentAtNode:r.unmountComponentAtNode,version:l,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:u};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:o.getClosestInstanceFromNode,getNodeFromInstance:function(t){return t._renderedComponent&&(t=c(t)),t?o.getNodeFromInstance(t):null}},Mount:r,Reconciler:a});t.exports=d},function(t,e,n){"use strict";function o(t){for(var e;e=t._renderedComponent;)t=e;return t}function i(t,e){var n=o(t);n._hostNode=e,e[p]=n}function r(t){var e=t._hostNode;e&&(delete e[p],t._hostNode=null)}function a(t,e){if(!(t._flags&h.hasCachedChildNodes)){var n=t._renderedChildren,r=e.firstChild;t:for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],l=o(s)._domID;if(0!==l){for(;null!==r;r=r.nextSibling)if(1===r.nodeType&&r.getAttribute(g)===String(l)||8===r.nodeType&&r.nodeValue===" react-text: "+l+" "||8===r.nodeType&&r.nodeValue===" react-empty: "+l+" "){i(s,r);continue t}c("32",l)}}t._flags|=h.hasCachedChildNodes}}function s(t){if(t[p])return t[p];for(var e=[];!t[p];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var n,o;t&&(o=t[p]);t=e.pop())n=o,e.length&&a(o,t);return n}function l(t){var e=s(t);return null!=e&&e._hostNode===t?e:null}function A(t){if(void 0===t._hostNode?c("33"):void 0,t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent?void 0:c("34"),t=t._hostParent;for(;e.length;t=e.pop())a(t,t._hostNode);return t._hostNode}var c=n(44),u=n(45),d=n(47),g=(n(46),u.ID_ATTRIBUTE_NAME),h=d,p="__reactInternalInstance$"+Math.random().toString(36).slice(2),f={getClosestInstanceFromNode:s,getInstanceFromNode:l,getNodeFromInstance:A,precacheChildNodes:a,precacheNode:i,uncacheNode:r};t.exports=f},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,o=0;o8&&I<=11),N=32,m=String.fromCharCode(N),b={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},D=!1,x=null,v={eventTypes:b,extractEvents:function(t,e,n,o){return[A(t,e,n,o),d(t,e,n,o)]}};t.exports=v},function(t,e,n){"use strict";function o(t,e,n){var o=e.dispatchConfig.phasedRegistrationNames[n];return M(t,o)}function i(t,e,n){var i=o(t,n,e);i&&(n._dispatchListeners=p(n._dispatchListeners,i),n._dispatchInstances=p(n._dispatchInstances,t))}function r(t){t&&t.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(t._targetInst,i,t)}function a(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst,n=e?h.getParentInstance(e):null;h.traverseTwoPhase(n,i,t)}}function s(t,e,n){if(n&&n.dispatchConfig.registrationName){var o=n.dispatchConfig.registrationName,i=M(t,o);i&&(n._dispatchListeners=p(n._dispatchListeners,i),n._dispatchInstances=p(n._dispatchInstances,t))}}function l(t){t&&t.dispatchConfig.registrationName&&s(t._targetInst,null,t)}function A(t){f(t,r)}function c(t){f(t,a)}function u(t,e,n,o){h.traverseEnterLeave(n,o,s,t,e)}function d(t){f(t,l)}var g=n(52),h=n(54),p=n(58),f=n(59),M=(n(56),g.getListener),w={accumulateTwoPhaseDispatches:A,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:u};t.exports=w},function(t,e,n){"use strict";function o(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}function i(t,e,n){switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!o(e));default:return!1}}var r=n(44),a=n(53),s=n(54),l=n(55),A=n(58),c=n(59),u=(n(46),{}),d=null,g=function(t,e){t&&(s.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},h=function(t){return g(t,!0)},p=function(t){return g(t,!1)},f=function(t){return"."+t._rootNodeID},M={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(t,e,n){"function"!=typeof n?r("94",e,typeof n):void 0;var o=f(t),i=u[e]||(u[e]={});i[o]=n;var s=a.registrationNameModules[e];s&&s.didPutListener&&s.didPutListener(t,e,n)},getListener:function(t,e){var n=u[e];if(i(e,t._currentElement.type,t._currentElement.props))return null;var o=f(t);return n&&n[o]},deleteListener:function(t,e){var n=a.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var o=u[e];if(o){var i=f(t);delete o[i]}},deleteAllListeners:function(t){var e=f(t);for(var n in u)if(u.hasOwnProperty(n)&&u[n][e]){var o=a.registrationNameModules[n];o&&o.willDeleteListener&&o.willDeleteListener(t,n),delete u[n][e]}},extractEvents:function(t,e,n,o){for(var i,r=a.plugins,s=0;s-1?void 0:a("96",t),!A.plugins[n]){e.extractEvents?void 0:a("97",t),A.plugins[n]=e;var o=e.eventTypes;for(var r in o)i(o[r],e,r)?void 0:a("98",r,t)}}}function i(t,e,n){A.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,A.eventNameDispatchConfigs[n]=t;var o=t.phasedRegistrationNames;if(o){for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];r(s,e,n)}return!0}return!!t.registrationName&&(r(t.registrationName,e,n),!0)}function r(t,e,n){A.registrationNameModules[t]?a("100",t):void 0,A.registrationNameModules[t]=e,A.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(44),s=(n(46),null),l={},A={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){s?a("101"):void 0,s=Array.prototype.slice.call(t),o()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];l.hasOwnProperty(n)&&l[n]===i||(l[n]?a("102",n):void 0,l[n]=i,e=!0)}e&&o()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return A.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var i=A.registrationNameModules[n[o]];if(i)return i}}return null},_resetEventPlugins:function(){s=null;for(var t in l)l.hasOwnProperty(t)&&delete l[t];A.plugins.length=0;var e=A.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var o=A.registrationNameModules;for(var i in o)o.hasOwnProperty(i)&&delete o[i]}};t.exports=A},function(t,e,n){"use strict";function o(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function i(t){return"topMouseMove"===t||"topTouchMove"===t}function r(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,o){var i=t.type||"unknown-event";t.currentTarget=M.getNodeFromInstance(o),e?p.invokeGuardedCallbackWithCatch(i,n,t):p.invokeGuardedCallback(i,n,t),t.currentTarget=null}function s(t,e){var n=t._dispatchListeners,o=t._dispatchInstances;if(Array.isArray(n))for(var i=0;i1?1-e:void 0;return this._fallbackText=i.slice(t,s),this._fallbackText}}),r.addPoolingTo(o),t.exports=o},function(t,e,n){"use strict";var o=n(44),i=(n(46),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),r=function(t,e){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,t,e),o}return new n(t,e)},a=function(t,e,n){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n),i}return new o(t,e,n)},s=function(t,e,n,o){var i=this;if(i.instancePool.length){var r=i.instancePool.pop();return i.call(r,t,e,n,o),r}return new i(t,e,n,o)},l=function(t,e,n,o,i){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,t,e,n,o,i),a}return new r(t,e,n,o,i)},A=function(t){var e=this;t instanceof e?void 0:o("25"),t.destructor(),e.instancePool.length8));var Q=!1;C.canUseDOM&&(Q=m("input")&&(!document.documentMode||document.documentMode>11));var j={get:function(){return L.get.call(this)},set:function(t){B=""+t,L.set.call(this,t)}},U={eventTypes:D,extractEvents:function(t,e,n,i){var r,a,s=e?I.getNodeFromInstance(e):window;if(o(s)?S?r=l:a=A:b(s)?Q?r=g:(r=p,a=h):f(s)&&(r=M),r){var c=r(t,e);if(c){var u=E.getPooled(D.change,c,n,i);return u.type="change",T.accumulateTwoPhaseDispatches(u),u}}a&&a(t,s,e)}};t.exports=U},function(t,e,n){"use strict";function o(){D.ReactReconcileTransaction&&I?void 0:c("123")}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=D.ReactReconcileTransaction.getPooled(!0)}function r(t,e,n,i,r,a){return o(),I.batchedUpdates(t,e,n,i,r,a)}function a(t,e){return t._mountOrder-e._mountOrder}function s(t){var e=t.dirtyComponentsLength;e!==M.length?c("124",e,M.length):void 0,M.sort(a),w++;for(var n=0;n]/,l=n(91),A=l(function(t,e){if(t.namespaceURI!==r.svg||"innerHTML"in t)t.innerHTML=e;else{o=o||document.createElement("div"),o.innerHTML=""+e+"";for(var n=o.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(i.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(A=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&s.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),c=null}t.exports=A},function(t,e){"use strict";var n=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,o,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,o,i)})}:t};t.exports=n},function(t,e,n){"use strict";var o=n(60),i=n(93),r=n(90),a=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};o.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){return 3===t.nodeType?void(t.nodeValue=e):void r(t,i(e))})),t.exports=a},function(t,e){"use strict";function n(t){var e=""+t,n=i.exec(e);if(!n)return e;var o,r="",a=0,s=0;for(a=n.index;a]/;t.exports=o},function(t,e,n){"use strict";var o=n(44),i=n(88),r=n(60),a=n(95),s=n(57),l=(n(46),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(r.canUseDOM?void 0:o("56"),e?void 0:o("57"),"HTML"===t.nodeName?o("58"):void 0,"string"==typeof e){var n=a(e,s)[0];t.parentNode.replaceChild(n,t)}else i.replaceChildWithTree(t,e)}});t.exports=l},function(t,e,n){"use strict";function o(t){var e=t.match(c);return e&&e[1].toLowerCase()}function i(t,e){var n=A;A?void 0:l(!1);var i=o(t),r=i&&s(i);if(r){n.innerHTML=r[1]+t+r[2];for(var c=r[0];c--;)n=n.lastChild}else n.innerHTML=t;var u=n.getElementsByTagName("script");u.length&&(e?void 0:l(!1),a(u).forEach(e));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var r=n(60),a=n(96),s=n(97),l=n(46),A=r.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=i},function(t,e,n){"use strict";function o(t){var e=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?a(!1):void 0,"number"!=typeof e?a(!1):void 0,0===e||e-1 in t?void 0:a(!1),"function"==typeof t.callee?a(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),o=0;o":a.innerHTML="<"+t+">",s[t]=!a.firstChild),s[t]?d[t]:null}var i=n(60),r=n(46),a=i.canUseDOM?document.createElement("div"):null,s={},l=[1,'"],A=[1,"","
"],c=[3,"","
"],u=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:l,option:l,caption:A,colgroup:A,tbody:A,tfoot:A,thead:A,td:c,th:c},g=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];g.forEach(function(t){d[t]=u,s[t]=!0}),t.exports=o},function(t,e,n){"use strict";var o=n(87),i=n(43),r={dangerouslyProcessChildrenUpdates:function(t,e){var n=i.getNodeFromInstance(t);o.processUpdates(n,e)}};t.exports=r},function(t,e,n){"use strict";function o(t){if(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function i(t,e){e&&(J[t._tag]&&(null!=e.children||null!=e.dangerouslySetInnerHTML?p("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""):void 0),null!=e.dangerouslySetInnerHTML&&(null!=e.children?p("60"):void 0,"object"==typeof e.dangerouslySetInnerHTML&&H in e.dangerouslySetInnerHTML?void 0:p("61")),null!=e.style&&"object"!=typeof e.style?p("62",o(t)):void 0)}function r(t,e,n,o){if(!(o instanceof Q)){var i=t._hostContainerInfo,r=i._node&&i._node.nodeType===P,s=r?i._node:i._ownerDocument;z(e,s),o.getReactMountReady().enqueue(a,{inst:t,registrationName:e,listener:n})}}function a(){var t=this;E.putListener(t.inst,t.registrationName,t.listener)}function s(){var t=this;x.postMountWrapper(t)}function l(){var t=this;L.postMountWrapper(t)}function A(){var t=this;v.postMountWrapper(t)}function c(){var t=this;t._rootNodeID?void 0:p("63");var e=R(t);switch(e?void 0:p("64"),t._tag){case"iframe":case"object":t._wrapperState.listeners=[m.trapBubbledEvent("topLoad","load",e)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var n in G)G.hasOwnProperty(n)&&t._wrapperState.listeners.push(m.trapBubbledEvent(n,G[n],e));break;case"source":t._wrapperState.listeners=[m.trapBubbledEvent("topError","error",e)];break;case"img":t._wrapperState.listeners=[m.trapBubbledEvent("topError","error",e),m.trapBubbledEvent("topLoad","load",e)];break;case"form":t._wrapperState.listeners=[m.trapBubbledEvent("topReset","reset",e),m.trapBubbledEvent("topSubmit","submit",e)];break;case"input":case"select":case"textarea":t._wrapperState.listeners=[m.trapBubbledEvent("topInvalid","invalid",e)]}}function u(){B.postUpdateWrapper(this)}function d(t){_.call(K,t)||(Z.test(t)?void 0:p("65",t),K[t]=!0)}function g(t,e){return t.indexOf("-")>=0||null!=e.is}function h(t){var e=t.type;d(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null, this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var p=n(44),f=n(16),M=n(100),w=n(102),T=n(88),C=n(89),I=n(45),y=n(110),E=n(52),N=n(53),m=n(112),b=n(47),D=n(43),x=n(115),v=n(118),B=n(119),L=n(120),S=(n(74),n(121)),Q=n(141),j=(n(57),n(93)),U=(n(46),n(77),n(130),n(144),n(56),b),k=E.deleteListener,R=D.getNodeFromInstance,z=m.listenTo,Y=N.registrationNameModules,O={string:!0,number:!0},F="style",H="__html",V={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},P=11,G={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"},X={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},W={listing:!0,pre:!0,textarea:!0},J=f({menuitem:!0},X),Z=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,K={},_={}.hasOwnProperty,q=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(t,e,n,o){this._rootNodeID=q++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var r=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(c,this);break;case"input":x.mountWrapper(this,r,e),r=x.getHostProps(this,r),t.getReactMountReady().enqueue(c,this);break;case"option":v.mountWrapper(this,r,e),r=v.getHostProps(this,r);break;case"select":B.mountWrapper(this,r,e),r=B.getHostProps(this,r),t.getReactMountReady().enqueue(c,this);break;case"textarea":L.mountWrapper(this,r,e),r=L.getHostProps(this,r),t.getReactMountReady().enqueue(c,this)}i(this,r);var a,u;null!=e?(a=e._namespaceURI,u=e._tag):n._tag&&(a=n._namespaceURI,u=n._tag),(null==a||a===C.svg&&"foreignobject"===u)&&(a=C.html),a===C.html&&("svg"===this._tag?a=C.svg:"math"===this._tag&&(a=C.mathml)),this._namespaceURI=a;var d;if(t.useCreateElement){var g,h=n._ownerDocument;if(a===C.html)if("script"===this._tag){var p=h.createElement("div"),f=this._currentElement.type;p.innerHTML="<"+f+">",g=p.removeChild(p.firstChild)}else g=r.is?h.createElement(this._currentElement.type,r.is):h.createElement(this._currentElement.type);else g=h.createElementNS(a,this._currentElement.type);D.precacheNode(this,g),this._flags|=U.hasCachedChildNodes,this._hostParent||y.setAttributeForRoot(g),this._updateDOMProperties(null,r,t);var w=T(g);this._createInitialChildren(t,r,o,w),d=w}else{var I=this._createOpenTagMarkupAndPutListeners(t,r),E=this._createContentMarkup(t,r,o);d=!E&&X[this._tag]?I+"/>":I+">"+E+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(s,this),r.autoFocus&&t.getReactMountReady().enqueue(M.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(l,this),r.autoFocus&&t.getReactMountReady().enqueue(M.focusDOMComponent,this);break;case"select":r.autoFocus&&t.getReactMountReady().enqueue(M.focusDOMComponent,this);break;case"button":r.autoFocus&&t.getReactMountReady().enqueue(M.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(A,this)}return d},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];if(null!=i)if(Y.hasOwnProperty(o))i&&r(this,o,i,t);else{o===F&&(i&&(i=this._previousStyleCopy=f({},e.style)),i=w.createMarkupForStyles(i,this));var a=null;null!=this._tag&&g(this._tag,e)?V.hasOwnProperty(o)||(a=y.createMarkupForCustomAttribute(o,i)):a=y.createMarkupForProperty(o,i),a&&(n+=" "+a)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+y.createMarkupForRoot()),n+=" "+y.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var o="",i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(o=i.__html);else{var r=O[typeof e.children]?e.children:null,a=null!=r?null:e.children;if(null!=r)o=j(r);else if(null!=a){var s=this.mountChildren(a,t,n);o=s.join("")}}return W[this._tag]&&"\n"===o.charAt(0)?"\n"+o:o},_createInitialChildren:function(t,e,n,o){var i=e.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&T.queueHTML(o,i.__html);else{var r=O[typeof e.children]?e.children:null,a=null!=r?null:e.children;if(null!=r)T.queueText(o,r);else if(null!=a)for(var s=this.mountChildren(a,t,n),l=0;l1)for(var n=1;n0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function r(t,e){var n=s.get(t);if(!n){return null}return n}var a=n(44),s=(n(22),n(123)),l=(n(74),n(68)),A=(n(46),n(56),{isMounted:function(t){var e=s.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){A.validateCallback(e,n);var i=r(t);return i?(i._pendingCallbacks?i._pendingCallbacks.push(e):i._pendingCallbacks=[e],void o(i)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],o(t)},enqueueForceUpdate:function(t){var e=r(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,o(e))},enqueueReplaceState:function(t,e){var n=r(t,"replaceState");n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(t,e){var n=r(t,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(e),o(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,o(t)},validateCallback:function(t,e){t&&"function"!=typeof t?a("122",e,i(t)):void 0}});t.exports=A},function(t,e,n){"use strict";var o=(n(16),n(57)),i=(n(56),o);t.exports=i},function(t,e,n){"use strict";var o=n(16),i=n(88),r=n(43),a=function(t){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};o(a.prototype,{mountComponent:function(t,e,n,o){var a=n._idCounter++;this._domID=a,this._hostParent=e,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(t.useCreateElement){var l=n._ownerDocument,A=l.createComment(s);return r.precacheNode(this,A),i(A)}return t.renderToStaticMarkup?"":""},receiveComponent:function(){},getHostNode:function(){return r.getNodeFromInstance(this)},unmountComponent:function(){r.uncacheNode(this)}}),t.exports=a},function(t,e,n){"use strict";function o(t,e){"_hostNode"in t?void 0:l("33"),"_hostNode"in e?void 0:l("33");for(var n=0,o=t;o;o=o._hostParent)n++;for(var i=0,r=e;r;r=r._hostParent)i++;for(;n-i>0;)t=t._hostParent,n--;for(;i-n>0;)e=e._hostParent,i--;for(var a=n;a--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function i(t,e){"_hostNode"in t?void 0:l("35"),"_hostNode"in e?void 0:l("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function r(t){return"_hostNode"in t?void 0:l("36"),t._hostParent}function a(t,e,n){for(var o=[];t;)o.push(t),t=t._hostParent;var i;for(i=o.length;i-- >0;)e(o[i],"captured",n);for(i=0;i0;)n(l[A],"captured",r)}var l=n(44);n(46);t.exports={isAncestor:i,getLowestCommonAncestor:o,getParentInstance:r,traverseTwoPhase:a,traverseEnterLeave:s}},function(t,e,n){"use strict";var o=n(44),i=n(16),r=n(87),a=n(88),s=n(43),l=n(93),A=(n(46),n(144),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});i(A.prototype,{mountComponent:function(t,e,n,o){var i=n._idCounter++,r=" react-text: "+i+" ",A=" /react-text ";if(this._domID=i,this._hostParent=e,t.useCreateElement){var c=n._ownerDocument,u=c.createComment(r),d=c.createComment(A),g=a(c.createDocumentFragment());return a.queueChild(g,a(u)),this._stringText&&a.queueChild(g,a(c.createTextNode(this._stringText))),a.queueChild(g,a(d)),s.precacheNode(this,u),this._closingComment=d,g}var h=l(this._stringText);return t.renderToStaticMarkup?h:""+h+""},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();r.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=s.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n?o("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=A},function(t,e,n){"use strict";function o(){this.reinitializeTransaction()}var i=n(16),r=n(68),a=n(75),s=n(57),l={initialize:s,close:function(){d.isBatchingUpdates=!1}},A={initialize:s,close:r.flushBatchedUpdates.bind(r)},c=[A,l];i(o.prototype,a,{getTransactionWrappers:function(){return c}});var u=new o,d={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,o,i,r){var a=d.isBatchingUpdates;return d.isBatchingUpdates=!0,a?t(e,n,o,i,r):u.perform(t,null,e,n,o,i,r)}};t.exports=d},function(t,e,n){"use strict";function o(t){for(;t._hostParent;)t=t._hostParent;var e=u.getNodeFromInstance(t),n=e.parentNode;return u.getClosestInstanceFromNode(n)}function i(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function r(t){var e=g(t.nativeEvent),n=u.getClosestInstanceFromNode(e),i=n;do t.ancestors.push(i),i=i&&o(i);while(i);for(var r=0;re.end?(n=e.end,o=e.start):(n=e.start,o=e.end),i.moveToElementText(t),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",o-n),i.select()}function s(t,e){if(window.getSelection){var n=window.getSelection(),o=t[c()].length,i=Math.min(e.start,o),r=void 0===e.end?i:Math.min(e.end,o);if(!n.extend&&i>r){var a=r;r=i,i=a}var s=A(t,i),l=A(t,r);if(s&&l){var u=document.createRange();u.setStart(s.node,s.offset),n.removeAllRanges(),i>r?(n.addRange(u),n.extend(l.node,l.offset)):(u.setEnd(l.node,l.offset),n.addRange(u))}}}var l=n(60),A=n(156),c=n(63),u=l.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:u?i:r,setOffsets:u?a:s};t.exports=d},function(t,e){"use strict";function n(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function o(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function i(t,e){for(var i=n(t),r=0,a=0;i;){if(3===i.nodeType){if(a=r+i.textContent.length,r<=e&&a>=e)return{node:i,offset:e-r};r=a}i=n(o(i))}}t.exports=i},function(t,e,n){"use strict";function o(t,e){return!(!t||!e)&&(t===e||!i(t)&&(i(e)?o(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var i=n(158);t.exports=o},function(t,e,n){"use strict";function o(t){return i(t)&&3==t.nodeType}var i=n(159);t.exports=o},function(t,e){"use strict";function n(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(t){return document.body}}t.exports=n},function(t,e){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position", underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},i={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(t){i.Properties[t]=0,o[t]&&(i.DOMAttributeNames[t]=o[t])}),t.exports=i},function(t,e,n){"use strict";function o(t){if("selectionStart"in t&&l.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function i(t,e){if(w||null==p||p!==c())return null;var n=o(p);if(!M||!d(M,n)){M=n;var i=A.getPooled(h.select,f,t,e);return i.type="select",i.target=p,r.accumulateTwoPhaseDispatches(i),i}return null}var r=n(51),a=n(60),s=n(43),l=n(154),A=n(65),c=n(160),u=n(78),d=n(130),g=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},p=null,f=null,M=null,w=!1,T=!1,C={eventTypes:h,extractEvents:function(t,e,n,o){if(!T)return null;var r=e?s.getNodeFromInstance(e):window;switch(t){case"topFocus":(u(r)||"true"===r.contentEditable)&&(p=r,f=e,M=null);break;case"topBlur":p=null,f=null,M=null;break;case"topMouseDown":w=!0;break;case"topContextMenu":case"topMouseUp":return w=!1,i(n,o);case"topSelectionChange":if(g)break;case"topKeyDown":case"topKeyUp":return i(n,o)}return null},didPutListener:function(t,e,n){"onSelect"===e&&(T=!0)}};t.exports=C},function(t,e,n){"use strict";function o(t){return"."+t._rootNodeID}function i(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}var r=n(44),a=n(150),s=n(51),l=n(43),A=n(164),c=n(165),u=n(65),d=n(166),g=n(167),h=n(81),p=n(170),f=n(171),M=n(172),w=n(82),T=n(173),C=n(57),I=n(168),y=(n(46),{}),E={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),n="on"+e,o="top"+e,i={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[o]};y[t]=i,E[o]=i});var N={},m={eventTypes:y,extractEvents:function(t,e,n,o){var i=E[t];if(!i)return null;var a;switch(t){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":a=u;break;case"topKeyPress":if(0===I(n))return null;case"topKeyDown":case"topKeyUp":a=g;break;case"topBlur":case"topFocus":a=d;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":a=h;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":a=p;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":a=f;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":a=A;break;case"topTransitionEnd":a=M;break;case"topScroll":a=w;break;case"topWheel":a=T;break;case"topCopy":case"topCut":case"topPaste":a=c}a?void 0:r("86",t);var l=a.getPooled(i,e,n,o);return s.accumulateTwoPhaseDispatches(l),l},didPutListener:function(t,e,n){if("onClick"===e&&!i(t._tag)){var r=o(t),s=l.getNodeFromInstance(t);N[r]||(N[r]=a.listen(s,"click",C))}},willDeleteListener:function(t,e){if("onClick"===e&&!i(t._tag)){var n=o(t);N[n].remove(),delete N[n]}}};t.exports=m},function(t,e,n){"use strict";function o(t,e,n,o){return i.call(this,t,e,n,o)}var i=n(65),r={animationName:null,elapsedTime:null,pseudoElement:null};i.augmentClass(o,r),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return i.call(this,t,e,n,o)}var i=n(65),r={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};i.augmentClass(o,r),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return i.call(this,t,e,n,o)}var i=n(82),r={relatedTarget:null};i.augmentClass(o,r),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return i.call(this,t,e,n,o)}var i=n(82),r=n(168),a=n(169),s=n(84),l={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(t){return"keypress"===t.type?r(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?r(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};i.augmentClass(o,l),t.exports=o},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e,n){"use strict";function o(t){if(t.key){var e=r[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=i(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var i=n(168),r={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={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"};t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return i.call(this,t,e,n,o)}var i=n(81),r={dataTransfer:null};i.augmentClass(o,r),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return i.call(this,t,e,n,o)}var i=n(82),r=n(84),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:r};i.augmentClass(o,a),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return i.call(this,t,e,n,o)}var i=n(65),r={propertyName:null,elapsedTime:null,pseudoElement:null};i.augmentClass(o,r),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return i.call(this,t,e,n,o)}var i=n(81),r={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};i.augmentClass(o,r),t.exports=o},function(t,e,n){"use strict";function o(t,e){for(var n=Math.min(t.length,e.length),o=0;o.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=f.createElement(z,{child:e});if(t){var l=y.get(t);a=l._processChildContext(l._context)}else a=D;var c=d(n);if(c){var u=c._currentElement,h=u.props.child;if(B(h,e)){var p=c._renderedComponent.getPublicInstance(),M=o&&function(){o.call(p)};return Y._updateRootComponent(c,s,a,n,M),p}Y.unmountComponentAtNode(n)}var w=i(n),T=w&&!!r(w),C=A(n),I=T&&!c&&!C,E=Y._renderNewRootComponent(s,n,I,a)._renderedComponent.getPublicInstance();return o&&o.call(E),E},render:function(t,e,n){return Y._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){c(t)?void 0:g("40");var e=d(t);if(!e){A(t),1===t.nodeType&&t.hasAttribute(S);return!1}return delete k[e._instance.rootID],b.batchedUpdates(l,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,r,a){if(c(e)?void 0:g("41"),r){var s=i(e);if(E.canReuseMarkup(t,s))return void w.precacheNode(n,s);var l=s.getAttribute(E.CHECKSUM_ATTR_NAME);s.removeAttribute(E.CHECKSUM_ATTR_NAME);var A=s.outerHTML;s.setAttribute(E.CHECKSUM_ATTR_NAME,l);var u=t,d=o(u,A),p=" (client) "+u.substring(d-20,d+20)+"\n (server) "+A.substring(d-20,d+20);e.nodeType===j?g("42",p):void 0}if(e.nodeType===j?g("43"):void 0,a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);h.insertTreeBefore(e,t,null)}else v(e,t),w.precacheNode(n,e.firstChild)}};t.exports=Y},function(t,e,n){"use strict";function o(t,e){var n={_topLevelWrapper:t,_idCounter:1,_ownerDocument:e?e.nodeType===i?e:e.ownerDocument:null,_node:e,_tag:e?e.nodeName.toLowerCase():null,_namespaceURI:e?e.namespaceURI:null};return n}var i=(n(144),9);t.exports=o},function(t,e){"use strict";var n={useCreateElement:!0,useFiber:!1};t.exports=n},function(t,e,n){"use strict";var o=n(178),i=/\/?>/,r=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=o(t);return r.test(t)?t:t.replace(i," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var i=o(t);return i===n}};t.exports=a},function(t,e){"use strict";function n(t){for(var e=1,n=0,i=0,r=t.length,a=r&-4;i服务端错误:"+t.responseText+""):bootbox.alert("服务端出错")}})}function r(t,e){if("number"==typeof t&&(t=new Date(t)),"string"==typeof t)return t;var n={"M+":t.getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));for(var o in n)new RegExp("("+o+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[o]:("00"+n[o]).substr((""+n[o]).length)));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.nextIFrameId=n,e.getParameter=o,e.ajaxSave=i,e.formatDate=r,window.iframe_id_=1},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(){var t="_ui_"+c++;return t}function r(t,e){var n=window._server+"/frame/loadFileVersions";$.ajax({url:n,data:{file:t},type:"POST",success:function(t){s(t),e(t)},error:function(){alert("加载文件["+t+"]的版本信息失败.")}})}function a(t,e){var n=window._server+"/common/loadResourceTreeData";$.ajax({url:n,data:t,type:"POST",success:function(t){s(t),e(t)},error:function(){alert("加载资源失败.")}})}function s(t){switch(t.type){case"root":t._icon=A.default.frameStyle.getRootIcon(),t._style=A.default.frameStyle.getRootIconStyle();break;case"folder":t._icon=A.default.frameStyle.getFolderIcon(),t._style=A.default.frameStyle.getFolderIconStyle();break;case"rule":t._icon=A.default.frameStyle.getRuleIcon(),t._style=A.default.frameStyle.getRuleIconStyle(),t.editorPath="/ruleeditor";break;case"project":t._icon=A.default.frameStyle.getProjectIcon(),t._style=A.default.frameStyle.getProjectIconStyle();break;case"resource":t._icon=A.default.frameStyle.getResourceIcon(),t._style=A.default.frameStyle.getResourceIconStyle();break;case"resourcePackage":t._icon=A.default.frameStyle.getResourcePackageIcon(),t._style=A.default.frameStyle.getResourcePackageIconStyle(),t.editorPath="/packageeditor";break;case"lib":t._icon=A.default.frameStyle.getLibIcon(),t._style=A.default.frameStyle.getLibIconStyle();break;case"action":t._icon=A.default.frameStyle.getActionIcon(),t._style=A.default.frameStyle.getActionIconStyle(),t.editorPath="/actioneditor";break;case"parameter":t._icon=A.default.frameStyle.getParameterIcon(),t._style=A.default.frameStyle.getParameterIconStyle(),t.editorPath="/parametereditor";break;case"constant":t._icon=A.default.frameStyle.getConstantIcon(),t._style=A.default.frameStyle.getConstantIconStyle(),t.editorPath="/constanteditor";break;case"variable":t._icon=A.default.frameStyle.getVariableIcon(),t._style=A.default.frameStyle.getVariableIconStyle(),t.editorPath="/variableeditor";break;case"ruleLib":t._icon=A.default.frameStyle.getRuleLibIcon(),t._style=A.default.frameStyle.getRuleLibIconStyle();break;case"decisionTableLib":t._icon=A.default.frameStyle.getDecisionTableLibIcon(),t._style=A.default.frameStyle.getDecisionTableLibIconStyle();break;case"decisionTreeLib":t._icon=A.default.frameStyle.getDecisionTreeLibIcon(),t._style=A.default.frameStyle.getDecisionTreeLibIconStyle();break;case"flowLib":t._icon=A.default.frameStyle.getFlowLibIcon(),t._style=A.default.frameStyle.getFlowLibIconStyle();break;case"ul":t._icon=A.default.frameStyle.getUlIcon(),t._style=A.default.frameStyle.getUlIconStyle(),t.editorPath="/uleditor";break;case"decisionTable":t._icon=A.default.frameStyle.getDecisionTableIcon(),t._style=A.default.frameStyle.getDecisionTableIconStyle(),t.editorPath="/decisiontableeditor";break;case"scriptDecisionTable":t._icon=A.default.frameStyle.getScriptDecisionTableIcon(),t._style=A.default.frameStyle.getScriptDecisionTableIconStyle(),t.editorPath="/scriptdecisiontableeditor";break;case"decisionTree":t._icon=A.default.frameStyle.getDecisionTreeIcon(),t._style=A.default.frameStyle.getDecisionTreeIconStyle(),t.editorPath="/decisiontreeditor";break;case"flow":t._icon=A.default.frameStyle.getFlowIcon(),t._style=A.default.frameStyle.getFlowIconStyle(),t.editorPath="/floweditor";break;case"scorecard":t._icon=A.default.frameStyle.getScorecardIcon(),t._style=A.default.frameStyle.getScorecardIconStyle(),t.editorPath="/scorecardeditor"}var e=t.children;e&&e.forEach(function(t,e){s(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueID=i,e.loadFileVersions=r,e.loadResourceTreeData=a;var l=n(228),A=o(l),c=1},function(t,e){"use strict";function n(t,e){return window._frameStyles?window._frameStyles[t]:e}Object.defineProperty(e,"__esModule",{value:!0});var o={};o.frameStyle={getRootIcon:function(){return n("rootIcon","rf rf-root")},getRootIconStyle:function(){return n("rootIconStyle",{color:"rgb(102, 102, 102)"})},getProjectIcon:function(){return n("projectIcon","rf rf-project")},getProjectIconStyle:function(){return n("projectIconStyle",{color:"rgb(188, 15, 105)"})},getResourceIcon:function(){return n("resourceIcon","rf rf-library")},getResourceIconStyle:function(){return n("resourceIconStyle",{color:"rgb(88, 45, 170)"})},getResourcePackageIcon:function(){return n("resourcePackageIcon","rf rf-package")},getResourcePackageIconStyle:function(){return n("resourcePackageIconStyle",{color:"rgb(180, 133, 19)"})},getLibIcon:function(){return n("libIcon","rf rf-database")},getLibIconStyle:function(){return n("libIconStyle",{color:"rgb(24, 121, 27)"})},getActionIcon:function(){return n("actionIcon","rf rf-action")},getActionIconStyle:function(){return n("actionIconStyle",{color:"rgb(24, 121, 27)"})},getVariableIcon:function(){return n("variableIcon","rf rf-variable")},getVariableIconStyle:function(){return n("variableIconStyle",{color:"rgb(24, 121, 27)"})},getConstantIcon:function(){return n("constantIcon","rf rf-constant")},getConstantIconStyle:function(){return n("constantIconStyle",{color:"rgb(24, 121, 27)"})},getParameterIcon:function(){return n("parameterIcon","rf rf-parameter")},getParameterIconStyle:function(){return n("parameterIconStyle",{color:"rgb(24, 121, 27)"})},getRuleIcon:function(){return n("ruleIcon","rf rf-rule")},getRuleIconStyle:function(){return n("ruleIconStyle",{color:"rgb(31, 90, 163)"})},getUlIcon:function(){return n("ulIcon","rf rf-script")},getUlIconStyle:function(){return n("ulIconStyle",{color:"rgb(31, 90, 163)"})},getRuleLibIcon:function(){return n("ruleLibIcon","rf rf-rule")},getRuleLibIconStyle:function(){return n("ruleLibIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTableIcon:function(){return n("decisionTableIcon","rf rf-table")},getDecisionTableIconStyle:function(){return n("decisionTableIconStyle",{color:"rgb(31, 90, 163)"})},getScriptDecisionTableIcon:function(){return n("scriptDecisionTableIcon","rf rf-scripttable")},getScriptDecisionTableIconStyle:function(){return n("scriptDecisionTableIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTableLibIcon:function(){return n("decisionTableLibIcon","rf rf-table")},getDecisionTableLibIconStyle:function(){return n("decisionTableLibIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTreeIcon:function(){return n("decisionTreeIcon","rf rf-tree")},getDecisionTreeIconStyle:function(){return n("decisionTreeIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTreeLibIcon:function(){return n("decisionTreeLibIcon","rf rf-tree")},getDecisionTreeLibIconStyle:function(){return n("decisionTreeLibIconStyle",{color:"rgb(31, 90, 163)"})},getScorecardIcon:function(){return n("scorecardIcon","rf rf-scorecard")},getScorecardIconStyle:function(){return n("scorecardIconStyle",{color:"rgb(31, 90, 163)"})},getScorecardLibIcon:function(){return n("scorecardLibIcon","rf rf-scorecard")},getScorecardLibIconStyle:function(){return n("scorecardLibIconStyle",{color:"rgb(31, 90, 163)"})},getFlowIcon:function(){return n("flowIcon","rf rf-flow")},getFlowIconStyle:function(){return n("flowIconStyle",{color:"rgb(31, 90, 163)"})},getFlowLibIcon:function(){return n("flowLibIcon","rf rf-flow")},getFlowLibIconStyle:function(){return n("flowLibIconStyle",{color:"rgb(31, 90, 163)"})},getFolderIcon:function(){return n("flowIcon","rf rf-folder")},getFolderIconStyle:function(){return n("flowIconStyle",{color:"rgb(224, 126, 1)"})}},e.default=o},,,,,,function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n-1&&(c=!0),!1}}),c?A.show():A.hide()}}}}},{key:"render",value:function(){var t=this,e=this.props,n=e.headers,o=e.operationConfig,i=e.dispatch,r=e.selectFirst,a=(e.uniqueKey,this.props.rows||[]),s=[],l=[];n.forEach(function(e,n){e.editable?s.push(A.default.createElement("td",{key:(0,f.uniqueID)(),style:{width:e.width}},A.default.createElement("label",null,e.label),A.default.createElement(p.default,{onchange:t.props.onchange,onblur:function(e){t.setState({display:"none"}),t.props.onblur(e)},header:e,display:t.state.display}))):s.push(A.default.createElement("td",{key:(0,f.uniqueID)(),style:{width:e.width}},A.default.createElement("label",null,e.label)))}),o&&s.push(A.default.createElement("td",{key:(0,f.uniqueID)(),style:{width:o.width}},A.default.createElement("label",null,"操作列")));var c=A.default.createElement("tr",{key:"filterrow",style:{background:"#eee"}},n.map(function(e,n){return e.filterable?A.default.createElement("td",{key:(0,f.uniqueID)()},A.default.createElement("input",{type:"text",onKeyPress:t.onFilter.bind(t,n),name:e.id,className:"form-control",style:{height:"26px"},placeholder:"请输入过滤条件,回车查询..."})):A.default.createElement("td",{key:(0,f.uniqueID)()}," ")}),o?A.default.createElement("td",null):null);l.push(c),a.forEach(function(e,a){e.id||(e.id=(0,f.uniqueID)());var s=e.id;0===a&&r?l.push(A.default.createElement(g.default,{key:s,select:!0,ready:t.props.ready,headers:n,dispatch:i,rowClick:t.props.rowClick,operations:o?o.operations:null,rowData:e,rowIndex:a})):l.push(A.default.createElement(g.default,{key:s,ready:t.props.ready,headers:n,dispatch:i,rowClick:t.props.rowClick,operations:o?o.operations:null,rowData:e,rowIndex:a}))});var u={margin:0,width:this.props.width?this.props.width:"100%"};return A.default.createElement("table",{className:"table table-bordered",style:u},A.default.createElement("thead",null,A.default.createElement("tr",{className:"well"},s)),A.default.createElement("tbody",null,l))}}]),e}(l.Component);M.propTypes={headers:A.default.PropTypes.array.isRequired,operationConfig:l.PropTypes.object},e.default=M},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n');break;case"date":this.cellEditor=$('');break;case"boolean":this.cellEditor=$('');break;case"list":this.cellEditor=$(''),this.cellEditor.dblclick(function(){var o=e[t];o&&""!==o||(o="{}");var i=JSON.parse(o)||{},r=i.rows||[],a=i.type,s=function(o){var i={type:a,rows:o},r=JSON.stringify(i);e[t]=r;var s=n.find("div");s.html(r)};if(a){var l=null,A=!0,c=!1,u=void 0;try{for(var d,g=simulatorCategoryData[Symbol.iterator]();!(A=(d=g.next()).done);A=!0){var h=d.value;if(a===h.clazz){l=h;break}}}catch(t){c=!0,u=t}finally{try{!A&&g.return&&g.return()}finally{if(c)throw u}}var f=l.variables||[];p.eventEmitter.emit(p.SHOW_CHILD_LIST_DIALOG,{variables:f,rows:r,callback:s})}else!function(){var t=window.simulatorCategoryData||[],e=$(''),n=!0,o=!1,i=void 0;try{for(var l,A=t[Symbol.iterator]();!(n=(l=A.next()).done);n=!0){var c=l.value;e.append('")}}catch(t){o=!0,i=t}finally{try{!n&&A.return&&A.return()}finally{if(o)throw i}}e.append(''),M.MsgBox.dialog("选择子对象类型",e,function(){if(a=e.val(),!a||""===a)return void M.MsgBox.alert("请先选择子对象类型!");var n=null,o=!0,i=!1,l=void 0; try{for(var A,c=t[Symbol.iterator]();!(o=(A=c.next()).done);o=!0){var u=A.value;if(a===u.clazz){n=u;break}}}catch(t){i=!0,l=t}finally{try{!o&&c.return&&c.return()}finally{if(i)throw l}}var d=n.variables||[];p.eventEmitter.emit(p.SHOW_CHILD_LIST_DIALOG,{variables:d,rows:r,callback:s})})}()});break;default:this.cellEditor=$('')}n.append(this.cellEditor),this.cellEditor.blur(function(){e[t]=$(this).val();var o=n.find("div");o.html(e[t]),o.show(),$(this).hide()})}this.cellEditor.val(e[t]),this.cellEditor.show(),this.cellEditor.focus()}},{key:"render",value:function(){var t=this,e=this.props,n=e.rowData,o=e.header,i=o.dateFormat,r=n[o.name];if(i){var a=new Date(r);r=(0,f.formatDate)(a,i)}r&&"object"===("undefined"==typeof r?"undefined":l(r))&&(r=JSON.stringify(r));var s={marginTop:"5px",minHeight:"26px",wordBreak:"break-all"};return u.default.createElement("td",{style:{padding:"1px 5px"}},u.default.createElement("div",{style:s,onClick:function(e){if(o.editable){var i=e.target;$(i).css({display:"none"}),n._editorType?t._showEditor(o.name):p.eventEmitter.emit(p.SHOW_CELL_EDITOR,{targetDiv:i,rowData:n,colId:o.id})}}},r))}}]),e}(c.Component);e.default=w},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.HIDE_CHILD_LIST_DIALOG=e.SHOW_CHILD_LIST_DIALOG=e.HIDE_CELL_EDITOR=e.SHOW_CELL_EDITOR=void 0;var i=n(240),r=o(i);e.SHOW_CELL_EDITOR="show_cell_editor",e.HIDE_CELL_EDITOR="hide_cell_editor",e.SHOW_CHILD_LIST_DIALOG="show_child_list_dialog",e.HIDE_CHILD_LIST_DIALOG="hide_child_list_dialog",e.eventEmitter=new r.default.EventEmitter},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(t){return"function"==typeof t}function i(t){return"number"==typeof t}function r(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,i,s,l,A;if(this._events||(this._events={}),"error"===t&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(n=this._events[t],a(n))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(r(n))for(s=Array.prototype.slice.call(arguments,1),A=n.slice(),i=A.length,l=0;l0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!o(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,s;if(!o(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,n===e||o(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(r(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],o(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?o(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(o(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){var o=n(242).default,i=n(243).default,r=n(251),a=n(252).default,s=n(302);t.exports={Tool:o,Node:i,MsgBox:r,Event:s,FlowDesigner:a}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n"}}},{key:"getConnectionPropertiesProducer",value:function(){return function(){return"
"}}},{key:"_newNodeInstance",value:function(t,e,n){var o=this.newNode();return o?(o._tool=this,o._initConfigs(this.getConfigs()),n||(n=this._buildNodeName()),o._createFigure(this.context,{x:t,y:e},n),o):null}},{key:"_buildNodeName",value:function(){var t=this.getType()+this.count++,e=!1,n=!0,o=!1,i=void 0;try{for(var r,a=this.context.allFigures[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var s=r.value;if(s instanceof Node&&s.name===t){e=!0;break}}}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return e?this._buildNodeName():t}}]),t}();e.default=i},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);el-c&&sl-c&&s>A-c?this.attr("cursor","se-resize"):aA-c?this.attr("cursor","sw-resize"):this.attr("cursor","move")}}},o=function(n){if(!this.dragging){var o=t.currentTool;if(o){if(o instanceof g.default||o instanceof u.default||(t.currentTool=t.selectTool,o=t.currentTool,t.flowDesigner.nodeToolbar.children("label").removeClass("active")),o instanceof u.default)if(0===t.selectionFigures.length)t.selectFigure(e);else{var i=!1,r=!0,a=!1,s=void 0;try{for(var l,c=t.selectionFigures[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var d=l.value;if(d===e){i=!0;break}}}catch(t){a=!0,s=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw s}}i||(t.resetSelection(),t.selectFigure(e))}if(o instanceof g.default){var h=n.offsetX,f=n.offsetY,M=t.currentConnection;if(M){if(0===e.in)return void p.alert("当前节点不允许有进入的连线.");if(e.in!==-1&&e.toConnections.length>=e.in)return void p.alert("当前节点进入的连线最多只能有"+e.in+"条.");M.endX=h,M.endY=f,M.from!==e?!function(){M.endPath(e),t.currentConnection=null;var n=M.from.uuid,o=e.uuid,i=M.uuid;t.addRedoUndo({redo:function(){var e=t.getNodeByUUID(n),r=t.getNodeByUUID(o);M=new A.default(e,{endX:e.rect.attr("x"),endY:e.rect.attr("y")}),M.uuid=i,M.endPath(r)},undo:function(){e.context.removeFigureByUUID(i)}})}():p.alert("连线的起始节点不能为同一节点.")}else{if(0===e.out)return void p.alert("当前节点不允许有出去的连线.");if(e.out!==-1&&e.fromConnections.length>=e.out)return void p.alert("当前节点出去的连线最多只能有"+e.out+"条.");M=new A.default(e,{endX:h,endY:f}),t.currentConnection=M}}}}};this.rect.mouseover(n),this.rect.mousedown(o),this.icon.mouseover(n),this.icon.mousedown(o);var i=function(){var n=e.rect,o=t.currentTool;if(o&&o instanceof u.default){var i=!1,r=t.selectionFigures,a=!0,s=!1,l=void 0;try{for(var c,d=r[Symbol.iterator]();!(a=(c=d.next()).done);a=!0){var g=c.value;if(g===e){i=!0;break}}}catch(t){s=!0,l=t}finally{try{!a&&d.return&&d.return()}finally{if(s)throw l}}if(!i)return void t.resetSelection();r.forEach(function(t,e){t instanceof A.default||t._recordRectPosition()}),n.ow=n.attr("width"),n.oh=n.attr("height"),n.dragging=!0}},r=function(n,o){var i=t.currentTool;if(i&&i instanceof u.default){e.context.snapto&&(n-=n%10,o-=o%10);var r=t.selectionFigures,a=e.rect,s=(e.icon,a.ox+n),l=a.oy+o;if(!(s<1||l<1)){e.context.resizePaper(s+150,l+150);var c=void 0,d=void 0;switch(this.attr("cursor")){case"nw-resize":c=a.ow-n,d=a.oh-o,c>20&&d>20&&a.attr({x:s,y:l,width:c,height:d});break;case"ne-resize":c=a.ow+n,d=a.oh-o,c>20&&d>20&&a.attr({y:l,width:c,height:d});break;case"se-resize":c=a.ow+n,d=a.oh+o,c>20&&d>20&&a.attr({width:c,height:d});break;case"sw-resize":c=a.ow-n,d=a.oh+o,c>20&&d>20&&a.attr({x:s,width:c,height:d});break;default:r.forEach(function(t,e){t instanceof A.default||t._moveRect(n,o)})}r.forEach(function(t,e){t instanceof A.default||(t._moveAndResizeTextAndIcon(),t._resetConnections())})}}},a=function(){e.rect.dragging=!1;var n=[],o=new Map,i=new Map,r=e.rect.ow,a=e.rect.oh,s=e.rect.attr("width"),l=e.rect.attr("height"),c=e.uuid,u=!0,d=!1,g=void 0;try{for(var h,p=t.selectionFigures[Symbol.iterator]();!(u=(h=p.next()).done);u=!0){var f=h.value;if(!(f instanceof A.default)){n.push(f.uuid);var M=f.rect.ox,w=f.rect.oy;M=M?M:0,w=w?w:0;var T=f.rect.attr("x"),C=f.rect.attr("y");o.set(f.uuid,{x:T,y:C}),i.set(f.uuid,{x:M,y:w})}}}catch(t){d=!0,g=t}finally{try{!u&&p.return&&p.return()}finally{if(d)throw g}}e.context.addRedoUndo({redo:function(){var e=!0,i=!1,r=void 0;try{for(var a,A=n[Symbol.iterator]();!(e=(a=A.next()).done);e=!0){var u=a.value,d=t.getNodeByUUID(u),g=o.get(u);d.rect.attr({x:g.x,y:g.y}),u===c&&d.rect.attr({width:s,height:l})}}catch(t){i=!0,r=t}finally{try{!e&&A.return&&A.return()}finally{if(i)throw r}}var h=!0,p=!1,f=void 0;try{for(var M,w=n[Symbol.iterator]();!(h=(M=w.next()).done);h=!0){var T=M.value,C=t.getNodeByUUID(T);C._moveAndResizeTextAndIcon(),C._resetConnections()}}catch(t){p=!0,f=t}finally{try{!h&&w.return&&w.return()}finally{if(p)throw f}}},undo:function(){var e=!0,o=!1,s=void 0;try{for(var l,A=n[Symbol.iterator]();!(e=(l=A.next()).done);e=!0){var u=l.value,d=t.getNodeByUUID(u),g=i.get(u);d.rect.attr({x:g.x,y:g.y}),u===c&&d.rect.attr({width:r,height:a})}}catch(t){o=!0,s=t}finally{try{!e&&A.return&&A.return()}finally{if(o)throw s}}var h=!0,p=!1,f=void 0;try{for(var M,w=n[Symbol.iterator]();!(h=(M=w.next()).done);h=!0){var T=M.value,C=t.getNodeByUUID(T);C._moveAndResizeTextAndIcon(),C._resetConnections()}}catch(t){p=!0,f=t}finally{try{!h&&w.return&&w.return()}finally{if(p)throw f}}}})};this.rect.drag(r,i,a),this.icon.drag(r,i,a)}},{key:"remove",value:function(){var t=this,e=[].concat(r(this.toConnections)),n=[].concat(r(this.fromConnections));e.forEach(function(e,n){t.context.removeFigureByUUID(e.uuid)}),n.forEach(function(e,n){t.context.removeFigureByUUID(e.uuid)}),this.text.remove(),this.icon.remove(),this.rect.remove()}},{key:"_recordRectPosition",value:function(){this.rect.ox=this.rect.attr("x"),this.rect.oy=this.rect.attr("y")}},{key:"_moveRect",value:function(t,e){var n=void 0,o=void 0;this.rect.ox&&0!==this.rect.ox?(n=this.rect.ox+t,o=this.rect.oy+e):(n=this.rect.attr("x")+t,o=this.rect.attr("x")+e),this.rect.attr({x:n,y:o})}},{key:"_moveAndResizeTextAndIcon",value:function(){var t=this.rect.attr("width"),e=this.rect.attr("height");this.text.attr({x:this.rect.attr("x")+t/2,y:this.rect.attr("y")+e-16}),this.icon.attr({x:this.rect.attr("x"),y:this.rect.attr("y"),width:t,height:e-30})}},{key:"_resetConnections",value:function(){var t=[].concat(r(this.fromConnections),r(this.toConnections));t.forEach(function(t,e){t.updatePath()})}},{key:"getPathInfo",value:function(t){var e=this.rect.attr("x"),n=this.rect.attr("y"),o=this.rect.attr("width"),i=this.rect.attr("height");return t&&(e-=5,n-=5,o+=10,i+=10),"M "+e+" "+n+" L "+(e+o)+" "+n+" L "+(e+o)+" "+(n+i)+" L "+e+" "+(n+i)+" L "+e+" "+n}}]),t}();e.default=f},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n0){({x:t[1][1],y:t[1][2]});return{x:u[0].x,y:u[0].y}}return null}},{key:"_buildToFigureIntersetion",value:function(t,e){if(e){var n=this.to.rect,o=n.attr("x"),i=n.attr("y"),r=n.attr("width"),a=n.attr("height");o+=r/2,i+=a/2-10;var s=t.x,A=t.y;t=[],t.push(["M",s,A]),t.push(["L",o,i])}var c=this.to.getPathInfo(!0),u=l.default.pathIntersection(c,t);if(u.length>0){({x:t[0][1],y:t[0][2]});return{x:u[0].x,y:u[0].y}}return null}},{key:"_buildCurveLinePathInfo",value:function(){var t=this.from.rect,e=t.attr("x"),n=t.attr("y"),o=t.attr("width"),i=t.attr("height");e+=o/2,n+=i/2-10;var r=this.endX,a=this.endY,s=0,A=0,c=null;if(this.to){var u=this.to.rect;r=u.attr("x"),a=u.attr("y"),s=u.attr("width"),A=u.attr("height"),r+=s/2,a+=A/2-10}var d=this.from.getPathInfo(!0),g=Math.abs(e+o/2-(r-s/2)),h=Math.abs(n+i/2-(a-A/2)),p="M"+e+" "+n;if(g>=h){var f=p+" L"+r+" "+n,M=l.default.pathIntersection(d,f);if(M.length>0&&(e=M[0].x,n=M[0].y,p="M"+M[0].x+" "+M[0].y),this.to){var w="M"+e+" "+a+" L"+r+" "+a,T=this.to.getPathInfo(!0);M=l.default.pathIntersection(T,w),M.length>0&&(r=M[0].x,a=M[0].y,e0&&(e=E[0].x,n=E[0].y,p="M"+E[0].x+" "+E[0].y),this.to){var N="M"+r+" "+n+" L"+r+" "+a,m=this.to.getPathInfo(!0);E=l.default.pathIntersection(m,N),E.length>0&&(r=E[0].x,a=E[0].y,n=1e3&&delete s[l.shift()],l.push(a),s[a]=t[x](e,r),n?n(s[a]):s[a])}return i}function r(){return this.hex}function a(t,e){for(var n=[],o=0,i=t.length;i-2*!e>o;o+=2){var r=[{x:+t[o-2],y:+t[o-1]},{x:+t[o],y:+t[o+1]},{x:+t[o+2],y:+t[o+3]},{x:+t[o+4],y:+t[o+5]}];e?o?i-4==o?r[3]={x:+t[0],y:+t[1]}:i-2==o&&(r[2]={x:+t[0],y:+t[1]},r[3]={x:+t[2],y:+t[3]}):r[0]={x:+t[i-2],y:+t[i-1]}:i-4==o?r[3]=r[2]:o||(r[0]={x:+t[o],y:+t[o+1]}),n.push(["C",(-r[0].x+6*r[1].x+r[2].x)/6,(-r[0].y+6*r[1].y+r[2].y)/6,(r[1].x+6*r[2].x-r[3].x)/6,(r[1].y+6*r[2].y-r[3].y)/6,r[2].x,r[2].y])}return n}function s(t,e,n,o,i){var r=-3*e+9*n-9*o+3*i,a=t*r+6*e-12*n+6*o;return t*a-3*e+3*n}function l(t,e,n,o,i,r,a,l,A){null==A&&(A=1),A=A>1?1:A<0?0:A;for(var c=A/2,u=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],g=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;ph;)d/=2,g+=(cY(i,a)||Y(e,o)Y(r,s))){var l=(t*o-e*n)*(i-a)-(t-n)*(i*s-r*a),A=(t*o-e*n)*(r-s)-(e-o)*(i*s-r*a),c=(t-n)*(r-s)-(e-o)*(i-a);if(c){var u=l/c,d=A/c,g=+u.toFixed(2),h=+d.toFixed(2);if(!(g<+O(t,n).toFixed(2)||g>+Y(t,n).toFixed(2)||g<+O(i,a).toFixed(2)||g>+Y(i,a).toFixed(2)||h<+O(e,o).toFixed(2)||h>+Y(e,o).toFixed(2)||h<+O(r,s).toFixed(2)||h>+Y(r,s).toFixed(2)))return{x:u,y:d}}}}function u(t,n,o){var i=e.bezierBBox(t),r=e.bezierBBox(n);if(!e.isBBoxIntersect(i,r))return o?0:[];for(var a=l.apply(0,t),s=l.apply(0,n),A=Y(~~(a/5),1),u=Y(~~(s/5),1),d=[],g=[],h={},p=o?0:[],f=0;f=0&&b<=1.001&&D>=0&&D<=1.001&&(o?p++:p.push({x:m.x,y:m.y,t1:O(b,1),t2:O(D,1)}))}}return p}function d(t,n,o){t=e._path2curve(t),n=e._path2curve(n);for(var i,r,a,s,l,A,c,d,g,h,p=o?0:[],f=0,M=t.length;fo)return o;for(;nr?n=i:o=i,i=(o-n)/2+n}return i}var A=3*e,c=3*(o-e)-A,u=1-A-c,d=3*n,g=3*(i-n)-d,h=1-d-g;return s(t,1/(200*r))}function f(t,e){var n=[],o={};if(this.ms=e,this.times=1,t){for(var i in t)t[N](i)&&(o[q(i)]=t[i],n.push(q(i)));n.sort(ct)}this.anim=o,this.top=n[n.length-1],this.percents=n}function M(n,o,i,r,a,s){i=q(i);var l,A,c,u,d,h,f=n.ms,M={},w={},T={};if(r)for(y=0,E=re.length;yr*n.top){i=n.percents[y],d=n.percents[y-1]||0,f=f/n.top*(i-d),u=n.percents[y+1],l=n.anim[i];break}r&&o.attr(n.anim[n.percents[y]])}if(l){if(A)A.initstatus=r,A.start=new Date-A.ms*r;else{for(var m in l)if(l[N](m)&&(nt[N](m)||o.paper.customAttributes[N](m)))switch(M[m]=o.attr(m),null==M[m]&&(M[m]=et[m]),w[m]=l[m],nt[m]){case P:T[m]=(w[m]-M[m])/f;break;case"colour":M[m]=e.getRGB(M[m]);var b=e.getRGB(w[m]);T[m]={r:(b.r-M[m].r)/f,g:(b.g-M[m].g)/f,b:(b.b-M[m].b)/f};break;case"path":var D=jt(M[m],w[m]),x=D[1];for(M[m]=D[0],T[m]=[],y=0,E=M[m].length;y',ft=Mt.firstChild,ft.style.behavior="url(#default#VML)",!ft||"object"!=typeof ft.adj)return e.type=L;Mt=null}e.svg=!(e.vml="VML"==e.type),e._Paper=D,e.fn=C=D.prototype=e.prototype,e._id=0,e.is=function(t,e){return e=R.call(e),"finite"==e?!Z[N](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||W.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,n,o,i,r,a){if(null==r){var s=t-o,l=n-i;return s||l?(180+180*z.atan2(-l,-s)/V+360)%360:0}return e.angle(t,n,r,a)-e.angle(o,i,r,a)},e.rad=function(t){return t%360*V/180},e.deg=function(t){return Math.round(180*t/V%360*1e3)/1e3},e.snapTo=function(t,n,o){if(o=e.is(o,"finite")?o:10,e.is(t,X)){for(var i=t.length;i--;)if(F(t[i]-n)<=o)return t[i]}else{t=+t;var r=n%t;if(rt-o)return n-r+t}return n};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*z.random()|0,n="x"==t?e:3&e|8;return n.toString(16)});e.setWindow=function(n){t("raphael.setWindow",e,m.win,n),m.win=n,m.doc=m.win.document,e._engine.initWin&&e._engine.initWin(m.win)};var wt=function(t){if(e.vml){var n,o=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write(""),r.close(),n=r.body}catch(t){n=createPopup().document.body}var a=n.createTextRange();wt=i(function(t){try{n.style.color=Q(t).replace(o,L);var e=a.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(t){return"none"}})}else{var s=m.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",m.doc.body.appendChild(s),wt=i(function(t){return s.style.color=t,m.doc.defaultView.getComputedStyle(s,L).getPropertyValue("color")})}return wt(t)},Tt=function(){return"hsb("+[this.h,this.s,this.b]+")"},Ct=function(){return"hsl("+[this.h,this.s,this.l]+")"},It=function(){return this.hex},yt=function(t,n,o){if(null==n&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(o=t.b,n=t.g,t=t.r),null==n&&e.is(t,G)){var i=e.getRGB(t);t=i.r,n=i.g,o=i.b}return(t>1||n>1||o>1)&&(t/=255,n/=255,o/=255),[t,n,o]},Et=function(t,n,o,i){t*=255,n*=255,o*=255;var r={r:t,g:n,b:o,hex:e.rgb(t,n,o),toString:It};return e.is(i,"finite")&&(r.opacity=i),r};e.color=function(t){var n;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=It,t},e.hsb2rgb=function(t,e,n,o){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,o=t.o,t=t.h),t*=360;var i,r,a,s,l;return t=t%360/60,l=n*e,s=l*(1-F(t%2-1)),i=r=a=n-l,t=~~t,i+=[l,s,0,0,s,l][t],r+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],Et(i,r,a,o)},e.hsl2rgb=function(t,e,n,o){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t*=360;var i,r,a,s,l;return t=t%360/60,l=2*e*(n<.5?n:1-n),s=l*(1-F(t%2-1)),i=r=a=n-l/2,t=~~t,i+=[l,s,0,0,s,l][t],r+=[s,l,l,s,0,0][t],a+=[0,0,s,l,l,s][t],Et(i,r,a,o)},e.rgb2hsb=function(t,e,n){n=yt(t,e,n),t=n[0],e=n[1],n=n[2];var o,i,r,a;return r=Y(t,e,n),a=r-O(t,e,n),o=0==a?null:r==t?(e-n)/a:r==e?(n-t)/a+2:(t-e)/a+4,o=(o+360)%6*60/360,i=0==a?0:a/r,{h:o,s:i,b:r,toString:Tt}},e.rgb2hsl=function(t,e,n){n=yt(t,e,n),t=n[0],e=n[1],n=n[2];var o,i,r,a,s,l;return a=Y(t,e,n),s=O(t,e,n),l=a-s,o=0==l?null:a==t?(e-n)/l:a==e?(n-t)/l+2:(t-e)/l+4,o=(o+360)%6*60/360,r=(a+s)/2,i=0==l?0:r<.5?l/(2*r):l/(2-2*r),{h:o,s:i,l:r,toString:Ct}},e._path2string=function(){return this.join(",").replace(rt,"$1")};e._preload=function(t,e){var n=m.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,m.doc.body.removeChild(this)},n.onerror=function(){m.doc.body.removeChild(this)},m.doc.body.appendChild(n),n.src=t};e.getRGB=i(function(t){if(!t||(t=Q(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:r};!(it[N](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=wt(t));var n,o,i,a,s,l,A=t.match(J);return A?(A[2]&&(i=$(A[2].substring(5),16),o=$(A[2].substring(3,5),16),n=$(A[2].substring(1,3),16)),A[3]&&(i=$((s=A[3].charAt(3))+s,16),o=$((s=A[3].charAt(2))+s,16),n=$((s=A[3].charAt(1))+s,16)),A[4]&&(l=A[4][j](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),"rgba"==A[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),A[5]?(l=A[5][j](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(n/=360),"hsba"==A[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),e.hsb2rgb(n,o,i,a)):A[6]?(l=A[6][j](ot),n=q(l[0]),"%"==l[0].slice(-1)&&(n*=2.55),o=q(l[1]),"%"==l[1].slice(-1)&&(o*=2.55),i=q(l[2]),"%"==l[2].slice(-1)&&(i*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(n/=360),"hsla"==A[1].toLowerCase().slice(0,4)&&(a=q(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),e.hsl2rgb(n,o,i,a)):(A={r:n,g:o,b:i,toString:r},A.hex="#"+(16777216|i|o<<8|n<<16).toString(16).slice(1),e.is(a,"finite")&&(A.opacity=a),A)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:r}},e),e.hsb=i(function(t,n,o){return e.hsb2rgb(t,n,o).hex}),e.hsl=i(function(t,n,o){return e.hsl2rgb(t,n,o).hex}),e.rgb=i(function(t,e,n){function o(t){return t+.5|0}return"#"+(16777216|o(n)|o(e)<<8|o(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},n=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),n.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var n=Nt(t);if(n.arr)return bt(n.arr);var o={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[];return e.is(t,X)&&e.is(t[0],X)&&(i=bt(t)),i.length||Q(t).replace(at,function(t,e,n){var r=[],a=e.toLowerCase();if(n.replace(lt,function(t,e){e&&r.push(+e)}),"m"==a&&r.length>2&&(i.push([e][v](r.splice(0,2))),a="l",e="m"==e?"l":"L"),"r"==a)i.push([e][v](r));else for(;r.length>=o[a]&&(i.push([e][v](r.splice(0,o[a]))),o[a]););}),i.toString=e._path2string,n.arr=bt(i),i},e.parseTransformString=i(function(t){if(!t)return null;var n=[];return e.is(t,X)&&e.is(t[0],X)&&(n=bt(t)),n.length||Q(t).replace(st,function(t,e,o){var i=[];R.call(e);o.replace(lt,function(t,e){e&&i.push(+e)}),n.push([e][v](i))}),n.toString=e._path2string,n});var Nt=function(t){var e=Nt.ps=Nt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[N](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};e.findDotsAtSegment=function(t,e,n,o,i,r,a,s,l){var A=1-l,c=H(A,3),u=H(A,2),d=l*l,g=d*l,h=c*t+3*u*l*n+3*A*l*l*i+g*a,p=c*e+3*u*l*o+3*A*l*l*r+g*s,f=t+2*l*(n-t)+d*(i-2*n+t),M=e+2*l*(o-e)+d*(r-2*o+e),w=n+2*l*(i-n)+d*(a-2*i+n),T=o+2*l*(r-o)+d*(s-2*r+o),C=A*t+l*n,I=A*e+l*o,y=A*i+l*a,E=A*r+l*s,N=90-180*z.atan2(f-w,M-T)/V;return(f>w||M=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},e.isBBoxIntersect=function(t,n){var o=e.isPointInsideBBox;return o(n,t.x,t.y)||o(n,t.x2,t.y)||o(n,t.x,t.y2)||o(n,t.x2,t.y2)||o(t,n.x,n.y)||o(t,n.x2,n.y)||o(t,n.x,n.y2)||o(t,n.x2,n.y2)||(t.xn.x||n.xt.x)&&(t.yn.y||n.yt.y)},e.pathIntersection=function(t,e){return d(t,e)},e.pathIntersectionNumber=function(t,e){return d(t,e,1)},e.isPointInsidePath=function(t,n,o){var i=e.pathBBox(t);return e.isPointInsideBBox(i,n,o)&&d(t,[["M",n,o],["H",i.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var mt=e.pathBBox=function(t){var e=Nt(t);if(e.bbox)return n(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=jt(t);for(var o,i=0,r=0,a=[],s=[],l=0,A=t.length;l1&&(w=z.sqrt(w),n*=w,o*=w);var T=n*n,C=o*o,I=(a==s?-1:1)*z.sqrt(F((T*C-T*M*M-C*f*f)/(T*M*M+C*f*f))),y=I*n*M/o+(t+l)/2,E=I*-o*f/n+(e+A)/2,N=z.asin(((e-E)/o).toFixed(9)),m=z.asin(((A-E)/o).toFixed(9));N=tm&&(N-=2*V),!s&&m>N&&(m-=2*V)}var b=m-N;if(F(b)>d){var D=m,x=l,B=A;m=N+d*(s&&m>N?1:-1),l=y+n*z.cos(m),A=E+o*z.sin(m),h=Lt(l,A,n,o,r,0,s,x,B,[m,D,y,E])}b=m-N;var L=z.cos(N),S=z.sin(N),Q=z.cos(m),U=z.sin(m),k=z.tan(b/4),R=4/3*n*k,Y=4/3*o*k,O=[t,e],H=[t+R*S,e-Y*L],P=[l+R*U,A-Y*Q],G=[l,A];if(H[0]=2*O[0]-H[0],H[1]=2*O[1]-H[1],c)return[H,P,G][v](h);h=[H,P,G][v](h).join()[j](",");for(var X=[],W=0,J=h.length;W"1e12"&&(d=.5),F(g)>"1e12"&&(g=.5),d>0&&d<1&&(l=St(t,e,n,o,i,r,a,s,d),p.push(l.x),h.push(l.y)),g>0&&g<1&&(l=St(t,e,n,o,i,r,a,s,g),p.push(l.x),h.push(l.y)),A=r-2*o+e-(s-2*r+o),c=2*(o-e)-2*(r-o),u=e-o,d=(-c+z.sqrt(c*c-4*A*u))/2/A,g=(-c-z.sqrt(c*c-4*A*u))/2/A,F(d)>"1e12"&&(d=.5),F(g)>"1e12"&&(g=.5),d>0&&d<1&&(l=St(t,e,n,o,i,r,a,s,d),p.push(l.x),h.push(l.y)),g>0&&g<1&&(l=St(t,e,n,o,i,r,a,s,g),p.push(l.x),h.push(l.y)),{min:{x:O[x](0,p),y:O[x](0,h)},max:{x:Y[x](0,p),y:Y[x](0,h)}}}),jt=e._path2curve=i(function(t,e){var n=!e&&Nt(t);if(!e&&n.curve)return bt(n.curve);for(var o=xt(t),i=e&&xt(e),r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(t,e,n){var o,i,r={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in r)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][v](Lt[x](0,[e.x,e.y][v](t.slice(1))));break;case"S":"C"==n||"S"==n?(o=2*e.x-e.bx,i=2*e.y-e.by):(o=e.x,i=e.y),t=["C",o,i][v](t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][v](Bt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][v](Bt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][v](vt(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][v](vt(e.x,e.y,t[1],e.y));break;case"V":t=["C"][v](vt(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][v](vt(e.x,e.y,e.X,e.Y))}return t}),l=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)c[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"][v](n.splice(0,6)));t.splice(e,1),p=Y(o.length,i&&i.length||0)}},A=function(t,e,n,r,a){t&&e&&"M"==t[a][0]&&"M"!=e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2],p=Y(o.length,i&&i.length||0))},c=[],u=[],d="",g="",h=0,p=Y(o.length,i&&i.length||0);hi){if(n&&!d.start){if(c=$t(a,s,l[1],l[2],l[3],l[4],l[5],l[6],i-g),u+=["C"+c.start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],r)return u;d.start=u,u=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,l[5],l[6]].join(),g+=A,a=+l[5],s=+l[6];continue}if(!t&&!n)return c=$t(a,s,l[1],l[2],l[3],l[4],l[5],l[6],i-g),{x:c.x,y:c.y,alpha:c.alpha}}g+=A,a=+l[5],s=+l[6]}u+=l.shift()+l}return d.end=u,c=t?g:n?d:e.findDotsAtSegment(a,s,l[0],l[1],l[2],l[3],l[4],l[5],1),c.alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},ee=te(1),ne=te(),oe=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ne,e.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return oe(t,e).end;var o=oe(t,n,1);return e?oe(o,e).end:o},Zt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},Zt.getPointAtLength=function(t){var e=this.getPath();if(e)return ne(e,t)},Zt.getPath=function(){var t,n=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(t=n(this)),t},Zt.getSubpath=function(t,n){var o=this.getPath();if(o)return e.getSubpath(o,t,n)};var ie=e.easing_formulas={linear:function(t){return t},"<":function(t){return H(t,1.7)},">":function(t){return H(t,.48)},"<>":function(t){var e=.48-t/1.04,n=z.sqrt(.1734+e*e),o=n-e,i=H(F(o),1/3)*(o<0?-1:1),r=-n-e,a=H(F(r),1/3)*(r<0?-1:1),s=i+a+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:H(2,-10*t)*z.sin((t-.075)*(2*V)/.3)+1},bounce:function(t){var e,n=7.5625,o=2.75;return t<1/o?e=n*t*t:t<2/o?(t-=1.5/o,e=n*t*t+.75):t<2.5/o?(t-=2.25/o,e=n*t*t+.9375):(t-=2.625/o,e=n*t*t+.984375),e}};ie.easeIn=ie["ease-in"]=ie["<"],ie.easeOut=ie["ease-out"]=ie[">"],ie.easeInOut=ie["ease-in-out"]=ie["<>"],ie["back-in"]=ie.backIn,ie["back-out"]=ie.backOut;var re=[],ae=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var n=+new Date,o=0;o1&&!i.next){for(a in d)d[N](a)&&(p[a]=i.totalOrigin[a]);i.el.attr(p),M(i.anim,i.el,i.anim.percents[0],null,i.totalOrigin,i.repeat-1)}i.next&&!i.stop&&M(i.anim,i.el,i.next,null,i.totalOrigin,i.repeat)}}}re.length&&ae(se)},le=function(t){return t>255?255:t<0?0:t};Zt.animateWith=function(t,n,o,i,r,a){var s=this;if(s.removed)return a&&a.call(s),s;var l=o instanceof f?o:e.animation(o,i,r,a);M(l,s,l.percents[0],null,s.attr());for(var A=0,c=re.length;Al&&(l=c)}l+="%",!t[l].callback&&(t[l].callback=i)}return new f(t,n)},Zt.animate=function(t,n,o,i){var r=this;if(r.removed)return i&&i.call(r),r;var a=t instanceof f?t:e.animation(t,n,o,i);return M(a,r,a.percents[0],null,r.attr()),r},Zt.setTime=function(t,e){return t&&null!=e&&this.status(t,O(e,t.ms)/t.ms),this},Zt.status=function(t,e){var n,o,i=[],r=0;if(null!=e)return M(t,this,-1,O(e,1)),this;for(n=re.length;r1)for(var o=0,i=n.length;o.5)-1;l(d-.5,2)+l(g-.5,2)>.25&&(g=r.sqrt(.25-l(d-.5,2))*i+.5)&&.5!=g&&(g=g.toFixed(5)-1e-5*i)}return u}),i=i.split(/\s*\-\s*/),"linear"==A){var C=i.shift();if(C=-o(C),isNaN(C))return null;var I=[0,0,r.cos(t.rad(C)),r.sin(t.rad(C))],y=1/(a(s(I[2]),s(I[3]))||1);I[2]*=y,I[3]*=y,I[2]<0&&(I[0]=-I[2],I[2]=0),I[3]<0&&(I[1]=-I[3],I[3]=0)}var E=t._parseDots(i);if(!E)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(p.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){w=f(A+"Gradient",{id:c}),e.gradient=w,f(w,"radial"==A?{fx:d,fy:g}:{x1:I[0],y1:I[1],x2:I[2],y2:I[3],gradientTransform:e.matrix.invert()}),p.defs.appendChild(w);for(var N=0,m=E.length;N1?Q.opacity/100:Q.opacity});case"stroke":Q=t.getRGB(p),l.setAttribute(h,Q.hex),"stroke"==h&&Q[e]("opacity")&&f(l,{"stroke-opacity":Q.opacity>1?Q.opacity/100:Q.opacity}),"stroke"==h&&o._.arrows&&("startString"in o._.arrows&&I(o,o._.arrows.startString),"endString"in o._.arrows&&I(o,o._.arrows.endString,1));break;case"gradient":("circle"==o.type||"ellipse"==o.type||"r"!=n(p).charAt())&&M(o,p);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&f(l,{"stroke-opacity":p>1?p/100:p});case"fill-opacity":if(c.gradient){j=t._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,u)),j&&(U=j.getElementsByTagName("stop"),f(U[U.length-1],{"stop-opacity":p}));break}default:"font-size"==h&&(p=i(p,10)+"px");var k=h.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});l.style[k]=p,o._.dirty=1,l.setAttribute(h,p)}}b(o,r),l.style.visibility=d},m=1.2,b=function(o,r){if("text"==o.type&&(r[e]("text")||r[e]("font")||r[e]("font-size")||r[e]("x")||r[e]("y"))){var a=o.attrs,s=o.node,l=s.firstChild?i(t._g.doc.defaultView.getComputedStyle(s.firstChild,u).getPropertyValue("font-size"),10):10;if(r[e]("text")){for(a.text=r.text;s.firstChild;)s.removeChild(s.firstChild);for(var A,c=n(r.text).split("\n"),d=[],g=0,h=c.length;g"));var Z=X.getBoundingClientRect();w.W=d.w=(Z.right-Z.left)/W,w.H=d.h=(Z.bottom-Z.top)/W,w.X=d.x,w.Y=d.y+w.H/2,("x"in l||"y"in l)&&(w.path.v=t.format("m{0},{1}l{2},{1}",r(d.x*C),r(d.y*C),r(d.x*C)+1));for(var K=["x","y","text","font","font-family","font-weight","font-style","font-size"],_=0,q=K.length;_.25&&(n=i.sqrt(.25-s(e-.5,2))*(2*(n>.5)-1)+.5),A=e+g+n),h}),r=r.split(/\s*\-\s*/),"linear"==l){var c=r.shift();if(c=-o(c),isNaN(c))return null}var u=t._parseDots(r);if(!u)return null;if(e=e.shape||e.node,u.length){e.removeChild(a),a.on=!0,a.method="none",a.color=u[0].color,a.color2=u[u.length-1].color;for(var d=[],p=0,f=u.length;p')}}catch(t){L=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),n=e.container,o=e.height,i=e.width,r=e.x,a=e.y;if(!n)throw new Error("VML container not found.");var s=new t._Paper,l=s.canvas=t._g.doc.createElement("div"),A=l.style;return r=r||0,a=a||0,i=i||512,o=o||342,s.width=i,s.height=o,i==+i&&(i+="px"),o==+o&&(o+="px"),s.coordsize=1e3*C+g+1e3*C,s.coordorigin="0 0",s.span=t._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),A.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",i,o),1==n?(t._g.doc.body.appendChild(l),A.left=r+"px",A.top=a+"px",A.position="absolute"):n.firstChild?n.insertBefore(l,n.firstChild):n.appendChild(l),s.renderfix=function(){},s},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=h,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var S=t.st;for(var Q in B)B[e](Q)&&!S[e](Q)&&(S[Q]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t].apply(n,e)})}}(Q))}}.apply(e,o),!(void 0!==i&&(t.exports=i))}])})},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n1&&(i=(t+1)/2),o.splice(i,1),2===o.length)o=e.connection._buildStraightLinePathInfo();else{var r=o[1],a=e.connection._buildFromFigureIntersetion({x:r[1],y:r[2]},!0),s=o[0];s[1]=a.x,s[2]=a.y;var l=o[o.length-2],A=e.connection._buildToFigureIntersetion({x:l[1],y:l[2]},!0),c=o[o.length-1];c[1]=A.x,c[2]=A.y}e.path.attr("path",o),e.remove()});var d=function(o,i){e.context.snapto&&(o-=o%10,i-=i%10);var s=this.ox+o,l=this.oy+i;if(!(s<1||l<1)){e.context.resizePaper(s+15,l+15),this.attr("x",s),this.attr("y",l),a=Math.round(t/2);var A=e.path.attr("path"),c=A.length,u=void 0,d=void 0,g=void 0,h=2*(n.length-1)-1;if(0===t||1===t){if(g=A[1],u=e.connection._buildFromFigureIntersetion({x:g[1],y:g[2]},!0),d=n[0],2===n.length){var p=e.connection._buildToFigureIntersetion({x:s,y:l},!0);if(p){var f=n[n.length-1];f[1]=p.x,f[2]=p.y}}}else h!==t&&h!==t+1&&h!==t+2||(g=A[c-2],u=e.connection._buildToFigureIntersetion({x:s,y:l},!0),d=n[n.length-1]);u&&(d[1]=u.x,d[2]=u.y);var M=[];n.forEach(function(t,e){r?e===a?M.push(["L",s,l]):M.push(t):(M.push(t),e===a&&M.push(["L",s,l]))}),e.path.attr("path",M),e.connection._buildText()}},g=function(){this.ox=this.attr("x"),this.oy=this.attr("y"),e.controller.removeOthers(e),this.oldConnectionPathInfo=e.connection.buildPathInfo()},h=function(){var t=e.connection.buildPathInfo(),n=this.oldConnectionPathInfo,o=e.connection.uuid;e.context.addRedoUndo({redo:function(){var n=e.context.getNodeByUUID(o);n.pathInfo=t,n.updatePath(),n._buildText()},undo:function(){var t=e.context.getNodeByUUID(o);t.pathInfo=n,t.updatePath(),t._buildText()}})};this.rect.drag(d,g,h)}},{key:"remove",value:function(){this.rect.remove()}}]),t}();e.default=i},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n'}}]),e}(A.default);e.default=c},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n'}}]),e}(A.default);e.default=c},function(t,e){"use strict";function n(t){var e=a("消息提示",t);e.modal("show")}function o(t,e){var n=a("确认提示",t,[{name:"确认",click:function(){e.call(this)}}]);n.modal("show")}function i(t,e,n){var o=a(t,e,[{name:"确认",click:function(){n.call(this)}}]);o.modal("show")}function r(t,e,n,o,i){var r=a(t,e,n,i);if(r.modal("show"),o){var s=!0,l=!1,A=void 0;try{for(var c,u=o[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var d=c.value;r.on(d.name,d.callback)}}catch(t){l=!0,A=t}finally{try{!s&&u.return&&u.return()}finally{if(l)throw A}}}}function a(t,e,n,o){var i=this,r="modal-dialog"+(o?" modal-lg":""),a=$(''),l=$('
');a.append(l);var A=$(''),n.append(this.toolbar),this.toolbarInfo=$(''),this.toolbar.append(this.toolbarInfo),this.nodeToolbar=$('
'),n.append(this.nodeToolbar),this.canvasContainer=$('
'),this.canvasContainer.css("height",$(window).height()-100),n.append(this.canvasContainer),this.context=new c.default(this.canvasContainer),this.canvas=new l.default(this.context),this.context.flowDesigner=this;var o="_prop_container",i=$('
');this.canvasContainer.append(i);var a=$('');i.append(a),a.mousedown(function(t){t.preventDefault()}),this.propContainer=$('
');var s=$('
');s.append('
属性值修改后,请回车以确认
'),s.append(this.propContainer),i.append(s),i.draggable();var A=$("#__prop_panel_tool__");A.click(function(){s.toggle();var t=s.css("display");t&&"none"!==t?(A.removeClass("glyphicon-circle-arrow-left"),A.addClass("glyphicon-circle-arrow-down")):(A.removeClass("glyphicon-circle-arrow-down"),A.addClass("glyphicon-circle-arrow-left"))}),this._bindSnapToEvent(),this._bindShortcutKey()}return a(t,[{key:"setInfo",value:function(t){this.toolbarInfo.html(t)}},{key:"addNode",value:function(t){if(!t.type)return void w.alert("添加节点没有type属性,无法添加.");if(!t.x||!t.y||!t.name)return void w.alert("添加节点需要有x、y及name属性,否则无法添加");if(!this.context.toolsMap.has(t.type))return void w.alert("添加的节点类型"+t.type+"不存在.");var e=this.context.toolsMap.get(t.type),n=t.x,o=t.y,i=t.width,r=t.height,a=t.name;n=parseInt(n),o=parseInt(o),i=parseInt(i),r=parseInt(r);var s=n+i+10,l=o+r+10;this.context.resizePaper(s+50,l+50);var A=e._newNodeInstance(n,o,a);A.initFromJson(t)}},{key:"_bindShortcutKey",value:function(){var t=this,e=!1;$(document).keydown(function(n){17===n.which&&(e=!0),e&&(90===n.which?t.context.undoManager.undo():89===n.which&&t.context.undoManager.redo())}).keyup(function(t){17===t.which&&(e=!1)})}},{key:"_bindSnapToEvent",value:function(){var t=this;d.eventEmitter.on(d.SNAPTO_SELECTED,function(){t.canvasContainer.hasClass("snaptogrid")?(t.canvasContainer.removeClass("snaptogrid"),t.canvasContainer.addClass("nosnaptogrid"),t.context.snapto=!1):(t.canvasContainer.removeClass("nosnaptogrid"),t.canvasContainer.addClass("snaptogrid"),t.context.snapto=!0)})}},{key:"buildDesigner",value:function(){this._buildTools(),this._bindSelectionEvent()}},{key:"getPropertiesProducer",value:function(){return function(){return"
"}}},{key:"_buildTools",value:function(){var t=this,e=this.context,n=this,o=!0,i=!1,r=void 0;try{for(var a,s=function(){var e=a.value,n=$('");n.click(function(){e.click.call(this)}),t.toolbar.append(n)},l=this.buttons[Symbol.iterator]();!(o=(a=l.next()).done);o=!0)s()}catch(t){i=!0,r=t}finally{try{!o&&l.return&&l.return()}finally{if(i)throw r}}var A=$('');this.toolbar.append(A),A.click(function(t){e.cancelConnection(),e.currentTool=e.selectTool,n.nodeToolbar.children("label").removeClass("active")});var c=$('');this.toolbar.append(c),c.click(function(t){e.cancelConnection(),e.currentTool=e.connectionTool,n.nodeToolbar.children("label").removeClass("active")});var u=$('');this.toolbar.append(u),u.click(function(t){e.cancelConnection(),e.undoManager.undo(),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var g=$('');this.toolbar.append(g),g.click(function(t){e.cancelConnection(),e.undoManager.redo(),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var h=$('');this.toolbar.append(h),h.click(function(t){e.cancelConnection(),d.eventEmitter.emit(d.SNAPTO_SELECTED),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var p=$('');this.toolbar.append(p),p.click(function(t){e.cancelConnection(),d.eventEmitter.emit(d.REMOVE_CLICKED),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var f=$('');this.toolbar.append(f),f.click(function(t){e.cancelConnection(),d.eventEmitter.emit(d.ALIGN_CENTER),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var M=$('');this.toolbar.append(M),M.click(function(t){e.cancelConnection(),d.eventEmitter.emit(d.ALIGN_MIDDLE),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var w=$('');this.toolbar.append(w),w.click(function(t){e.cancelConnection(),d.eventEmitter.emit(d.UNIFY_SIZE),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool}),this._buildNodeTools()}},{key:"_buildNodeTools",value:function(){var t=this,e=!0,n=!1,o=void 0;try{for(var i,r=function(){var e=i.value,n=$('\n \n ");t.nodeToolbar.append(n),n.click(function(){d.eventEmitter.emit(d.TRIGGER_TOOL,e.getType())})},a=this.context.toolsMap.values()[Symbol.iterator]();!(e=(i=a.next()).done);e=!0)r()}catch(t){n=!0,o=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw o}}}},{key:"_bindSelectionEvent",value:function(){var t=this,e=this;d.eventEmitter.on(d.OBJECT_SELECTED,function(n){if(t.propContainer.empty(),n instanceof h.default){var o=n.name||n.text.attr("text"),i=$('
'),r=$('');i.append(r),t.propContainer.append(i),r.change(function(t){var o=$(this).val(),i=n.name,r=n.uuid,a=!1,s=!0,l=!1,A=void 0;try{for(var c,u=e.context.allFigures[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var d=c.value;if(d instanceof h.default&&d!==n&&d.name===o){a=!0;break}}}catch(t){l=!0,A=t}finally{try{!s&&u.return&&u.return()}finally{if(l)throw A}}return a?void w.alert("节点名已存在!"):(n.name=o,n.text.attr("text",$(this).val()),void e.context.addRedoUndo({redo:function(){var t=e.context.getNodeByUUID(r);t.name=o,t.text.attr("text",o)},undo:function(){var t=e.context.getNodeByUUID(r);t.name=i,t.text.attr("text",i)}}))}),t.propContainer.append(n._tool.getPropertiesProducer().call(n))}else if(n instanceof f.default){var a=$('
'),s=$('');a.append(s),t.propContainer.append(a),s.change(function(t){var o=$(this).val(),i=n.name,r=n.uuid,a=n.from.fromConnections,s=!1,l=!0,A=!1,c=void 0;try{for(var u,d=a[Symbol.iterator]();!(l=(u=d.next()).done);l=!0){var g=u.value;if(g!==n&&g.name===o){s=!0;break}}}catch(t){A=!0,c=t}finally{try{!l&&d.return&&d.return()}finally{if(A)throw c}}return s?void w.alert("连线名已存在"):(n.name=o,n._buildText(),void e.context.addRedoUndo({redo:function(){var t=e.context.getNodeByUUID(r);t.name=o,t._buildText()},undo:function(){var t=e.context.getNodeByUUID(r);t.name=i,t._buildText()}}))});var l=$('
'),A=$('');l.append(A),A.val(n.type),A.change(function(t){var o=$(this).val(),i=n.uuid,r=n.type;n.type=o,n.updatePath(),e.context.resetSelection(),e.context.addRedoUndo({redo:function(){var t=e.context.getNodeByUUID(i);t.type=o,t.updatePath()},undo:function(){var t=e.context.getNodeByUUID(i);t.type=r,t.updatePath()}})}),t.propContainer.append(l),t.propContainer.append(n.from._tool.getConnectionPropertiesProducer().call(n))}}),d.eventEmitter.on(d.CANVAS_SELECTED,function(){t.propContainer.empty(),t.propContainer.append(t.getPropertiesProducer().call(t))}),d.eventEmitter.emit(d.CANVAS_SELECTED)}},{key:"addButton",value:function(t){return t.icon&&t.tip&&t.click?(this.buttons.push(t),!0):(w.alert("添加到设计器工具栏的按钮对象必须要有icon、tip及click三个属性."),!1)}},{key:"addTool",value:function(t){return t.context=this.context,this.context.registerTool(t),this}},{key:"toJSON",value:function(){return this.elementsToJSON()}},{key:"validate",value:function(){var t=[],e=!0,n=!1,o=void 0;try{for(var i,r=this.context.allFigures[Symbol.iterator]();!(e=(i=r.next()).done);e=!0){var a=i.value;if(a instanceof h.default){var s=a.validate();s&&t.push(s)}}}catch(t){n=!0,o=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw o}}if(t.length>0){var l="";return t.forEach(function(t,e){l+=e+1+"."+t+"
"}),l='错误:
'+l+"
",w.alert(l),!1}return!0}},{key:"elementsToJSON",value:function(){var t=[];return this.context.allFigures.forEach(function(e,n){e instanceof h.default&&t.push(e.toJSON())}),t}}]),t}();e.default=T},function(t,e,n){var o=n(254);"string"==typeof o&&(o=[[t.id,o,""]]);n(9)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,"@font-face{font-family:fd;src:url("+n(255)+");src:url("+n(255)+") format('embedded-opentype'),url("+n(256)+") format('woff'),url("+n(257)+") format('truetype'),url("+n(258)+') format(\'svg\')}.fd{font-family:fd!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}.fd-delete:before{content:"\\E605"}.fd-undo:before{content:"\\E609"}.fd-snapto:before{content:"\\E603"}.fd-redo:before{content:"\\E60A"}.fd-select:before{content:"\\E601"}.fd-align-center:before{content:"\\E607"}.fd-align-middle:before{content:"\\E608"}.fd-line:before{content:"\\E602"}.fd-samesize:before{content:"\\E606"}',""])},function(t,e){t.exports="data:application/vnd.ms-fontobject;base64,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"},function(t,e){t.exports="data:application/font-woff;base64,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"},function(t,e){t.exports="data:application/x-font-ttf;base64,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AiVGUlggPFkjIC5GsAIlRlBYIDxZLrEkARQrLbA3LLAuKyMgLkawAiVGUlggPFkusSQBFCstsDgssC8riiAgPLAEI0KKOCMgLkawAiVGUlggPFkusSQBFCuwBEMusCQrLbA5LLAAFrAEJbAEJiAuRyNHI2GwBkUrIyA8IC4jOLEkARQrLbA6LLEJBCVCsAAWsAQlsAQlIC5HI0cjYSCwBCNCsAZFKyCwYFBYILBAUVizAiADIBuzAiYDGllCQiMgR7AEQ7CAYmAgsAArIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbCAYmGwAiVGYTgjIDwjOBshICBGI0ewACsjYTghWbEkARQrLbA7LLAuKy6xJAEUKy2wPCywLyshIyAgPLAEI0IjOLEkARQrsARDLrAkKy2wPSywABUgR7AAI0KyAAEBFRQTLrAqKi2wPiywABUgR7AAI0KyAAEBFRQTLrAqKi2wPyyxAAEUE7ArKi2wQCywLSotsEEssAAWRSMgLiBGiiNhOLEkARQrLbBCLLAJI0KwQSstsEMssgAAOistsEQssgABOistsEUssgEAOistsEYssgEBOistsEcssgAAOystsEgssgABOystsEkssgEAOystsEossgEBOystsEsssgAANystsEwssgABNystsE0ssgEANystsE4ssgEBNystsE8ssgAAOSstsFAssgABOSstsFEssgEAOSstsFIssgEBOSstsFMssgAAPCstsFQssgABPCstsFUssgEAPCstsFYssgEBPCstsFcssgAAOCstsFgssgABOCstsFkssgEAOCstsFossgEBOCstsFsssDArLrEkARQrLbBcLLAwK7A0Ky2wXSywMCuwNSstsF4ssAAWsDArsDYrLbBfLLAxKy6xJAEUKy2wYCywMSuwNCstsGEssDErsDUrLbBiLLAxK7A2Ky2wYyywMisusSQBFCstsGQssDIrsDQrLbBlLLAyK7A1Ky2wZiywMiuwNistsGcssDMrLrEkARQrLbBoLLAzK7A0Ky2waSywMyuwNSstsGossDMrsDYrLbBrLCuwCGWwAyRQeLABFTAtAABLuADIUlixAQGOWbkIAAgAYyCwASNEILADI3CwDkUgIEu4AA5RS7AGU1pYsDQbsChZYGYgilVYsAIlYbABRWMjYrACI0SzCgkFBCuzCgsFBCuzDg8FBCtZsgQoCUVSRLMKDQYEK7EGAUSxJAGIUViwQIhYsQYDRLEmAYhRWLgEAIhYsQYBRFlZWVm4Af+FsASNsQUARAAAAA=="; },function(t,e){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIiA+DQo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8bWV0YWRhdGE+DQpDcmVhdGVkIGJ5IEZvbnRGb3JnZSAyMDEyMDczMSBhdCBUdWUgSnVsIDEyIDE5OjEwOjU3IDIwMTYNCiBCeSBhZG1pbg0KPC9tZXRhZGF0YT4NCjxkZWZzPg0KPGZvbnQgaWQ9ImZkIiBob3Jpei1hZHYteD0iMTAyNCIgPg0KICA8Zm9udC1mYWNlIA0KICAgIGZvbnQtZmFtaWx5PSJmZCINCiAgICBmb250LXdlaWdodD0iNTAwIg0KICAgIGZvbnQtc3RyZXRjaD0ibm9ybWFsIg0KICAgIHVuaXRzLXBlci1lbT0iMTAyNCINCiAgICBwYW5vc2UtMT0iMiAwIDYgMyAwIDAgMCAwIDAgMCINCiAgICBhc2NlbnQ9Ijg5NiINCiAgICBkZXNjZW50PSItMTI4Ig0KICAgIHgtaGVpZ2h0PSI3OTIiDQogICAgYmJveD0iMCAtMTYxIDEwMjQgODk2Ig0KICAgIHVuZGVybGluZS10aGlja25lc3M9IjUwIg0KICAgIHVuZGVybGluZS1wb3NpdGlvbj0iLTEwMCINCiAgICB1bmljb2RlLXJhbmdlPSJVKzAwNzgtRTYwQSINCiAgLz4NCjxtaXNzaW5nLWdseXBoIGhvcml6LWFkdi14PSIzNzQiIA0KZD0iTTM0IDB2NjgyaDI3MnYtNjgyaC0yNzJ6TTY4IDM0aDIwNHY2MTRoLTIwNHYtNjE0eiIgLz4NCiAgICA8Z2x5cGggZ2x5cGgtbmFtZT0iLm5vdGRlZiIgaG9yaXotYWR2LXg9IjM3NCIgDQpkPSJNMzQgMHY2ODJoMjcydi02ODJoLTI3MnpNNjggMzRoMjA0djYxNGgtMjA0di02MTR6IiAvPg0KICAgIDxnbHlwaCBnbHlwaC1uYW1lPSIubnVsbCIgaG9yaXotYWR2LXg9IjAiIA0KIC8+DQogICAgPGdseXBoIGdseXBoLW5hbWU9Im5vbm1hcmtpbmdyZXR1cm4iIGhvcml6LWFkdi14PSIzNDEiIA0KIC8+DQogICAgPGdseXBoIGdseXBoLW5hbWU9IngiIHVuaWNvZGU9IngiIGhvcml6LWFkdi14PSIxMDAxIiANCmQ9Ik0yODEgNTQzcS0yNyAtMSAtNTMgLTFoLTgzcS0xOCAwIC0zNi41IC02dC0zMi41IC0xOC41dC0yMyAtMzJ0LTkgLTQ1LjV2LTc2aDkxMnY0MXEwIDE2IC0wLjUgMzB0LTAuNSAxOHEwIDEzIC01IDI5dC0xNyAyOS41dC0zMS41IDIyLjV0LTQ5LjUgOWgtMTMzdi05N2gtNDM4djk3ek05NTUgMzEwdi01MnEwIC0yMyAwLjUgLTUydDAuNSAtNTh0LTEwLjUgLTQ3LjV0LTI2IC0zMHQtMzMgLTE2dC0zMS41IC00LjVxLTE0IC0xIC0yOS41IC0wLjUNCnQtMjkuNSAwLjVoLTMybC00NSAxMjhoLTQzOWwtNDQgLTEyOGgtMjloLTM0cS0yMCAwIC00NSAxcS0yNSAwIC00MSA5LjV0LTI1LjUgMjN0LTEzLjUgMjkuNXQtNCAzMHYxNjdoOTExek0xNjMgMjQ3cS0xMiAwIC0yMSAtOC41dC05IC0yMS41dDkgLTIxLjV0MjEgLTguNXExMyAwIDIyIDguNXQ5IDIxLjV0LTkgMjEuNXQtMjIgOC41ek0zMTYgMTIzcS04IC0yNiAtMTQgLTQ4cS01IC0xOSAtMTAuNSAtMzd0LTcuNSAtMjV0LTMgLTE1dDEgLTE0LjUNCnQ5LjUgLTEwLjV0MjEuNSAtNGgzN2g2N2g4MWg4MGg2NGgzNnEyMyAwIDM0IDEydDIgMzhxLTUgMTMgLTkuNSAzMC41dC05LjUgMzQuNXEtNSAxOSAtMTEgMzloLTM2OHpNMzM2IDQ5OHYyMjhxMCAxMSAyLjUgMjN0MTAgMjEuNXQyMC41IDE1LjV0MzQgNmgxODhxMzEgMCA1MS41IC0xNC41dDIwLjUgLTUyLjV2LTIyN2gtMzI3eiIgLz4NCiAgICA8Z2x5cGggZ2x5cGgtbmFtZT0idW5pRTYwMSIgdW5pY29kZT0iJiN4ZTYwMTsiIA0KZD0iTTgzMCAzMDBxMTggLTE3IDggLTM5cS0xMCAtMjMgLTM0IC0yM2gtMjE4bDExNSAtMjcycTYgLTE0IDAgLTI4dC0yMCAtMjBsLTEwMSAtNDNxLTE0IC02IC0yOCAwdC0yMCAxOWwtMTA5IDI1OWwtMTc4IC0xNzlxLTExIC0xMSAtMjYgLTExcS03IDAgLTE0IDNxLTIyIDEwIC0yMiAzNHY4NTlxMCAyNCAyMiAzNHE3IDMgMTQgM3ExNiAwIDI2IC0xMXoiIC8+DQogICAgPGdseXBoIGdseXBoLW5hbWU9InVuaUU2MDIiIHVuaWNvZGU9IiYjeGU2MDI7IiANCmQ9Ik05NTcgNzI0bC02NSA2NXEtMjggMjYgLTY2IDI2dC02NiAtMjZsLTY1IC02NXEtMjQgLTI0IC0yNi41IC01OHQxNi41IC02MWwtNDM1IC00MzRxLTE4IDEzIC0zOSAxNnQtNDIgLTR0LTM3IC0yMmwtNjUgLTY1cS0yNiAtMjggLTI2IC02NnQyNiAtNjZsNjUgLTY1cTE4IC0xNyA0MS41IC0yMy41dDQ3IDB0NDEuNSAyMy41bDY1IDY1cTIzIDI0IDI2IDU3LjV0LTE1IDYwLjVsNDM2IDQzNnExNCAtOSAyOS41IC0xM3QzMSAtMi41dDMwLjUgOA0KdDI3IDE4LjVsNjUgNjVxMjYgMjcgMjYgNjV0LTI2IDY1ek0xOTggLTY0bC05NCA5NGw5NCA5NGw5NCAtOTR6TTgyNiA1NjRsLTk0IDk0bDk0IDkzbDk0IC05M3oiIC8+DQogICAgPGdseXBoIGdseXBoLW5hbWU9InVuaUU2MDMiIHVuaWNvZGU9IiYjeGU2MDM7IiANCmQ9Ik01MTIgODMycS0xNzQgLTEgLTI3OSAtMTA5dC0xMDUgLTI5MXEwIC03NyA1LjUgLTEyOS41dDIzLjUgLTEyNS41cTkgLTM3IDIwLjUgLTc0dDIxIC02My41dDE4IC00N3QxMy41IC0zMS41bDUgLTExbDEgLTJxNyAtMTIgMjAgLTEycTQgMCA4IDFsMyAybDEwMSA0MWw0IDJxMTEgNiAxMSAxOXEtMSA1IC0yIDhoLTFxLTU3IDEzMiAtNzQgMjAzcS0xNiA2NyAtMjEuNSAxMDguNXQtNS41IDEwNi41cTAgMTA1IDY4IDE3NXQxNjUgNzANCnQxNjUgLTcwdDY4IC0xNzVxMCAtNjQgLTUuNSAtMTA2dC0yMS41IC0xMDlxLTE4IC03NCAtNzQgLTIwM2gtMXEtMSAtMyAtMiAtOHEwIC0xMyAxMSAtMTlsNCAtMmwxMDAgLTQxbDQgLTJxMyAtMSA4IC0xcTEzIDAgMTkgMTJsMiAycTQ2IDk2IDc4IDIyN3ExOCA3MyAyMy41IDEyNS41dDUuNSAxMjkuNXEwIDE4MyAtMTA1IDI5MXQtMjc5IDEwOXpNMzQ2IDh2LTJoMWwtODYgLTM1cS00NCA5NiAtNzEgMjA5bDg1IDI0cTE4IC03OCA3MSAtMTk2eg0KTTc2MyAtMjlsLTg2IDM1cTEgMSAxIDJxNTIgMTE3IDcxIDE5Nmw4NSAtMjRxLTI3IC0xMTMgLTcxIC0yMDl6IiAvPg0KICAgIDxnbHlwaCBnbHlwaC1uYW1lPSJ1bmlFNjA1IiB1bmljb2RlPSImI3hlNjA1OyIgDQpkPSJNNjgyIDY0MXYxMjhoLTFoLTM0MHYtMTI4aC0yMTN2LTQyaDg1di03MjZoNTk4djcyNmg4NXY0MmgtMjE0ek0zODMgNzI3aDI1NnYtODZoLTI1NnY4NnpNNzY4IC04NGgtNTEydjY4M2g1MTJ2LTY4M3pNNDkxIDUzNWg0MnYtNTU1aC00MnY1NTV6TTYxOSA1MzVoNDJ2LTU1NWgtNDJ2NTU1ek0zNjMgNTM1aDQydi01NTVoLTQydjU1NXoiIC8+DQogICAgPGdseXBoIGdseXBoLW5hbWU9InVuaUU2MDYiIHVuaWNvZGU9IiYjeGU2MDY7IiANCmQ9Ik03NDUgNTc3bDE0OCAtMXExMCAwIDE3LjUgLTZ0OC41IC0xN3YtMTZxMCAtMTAgLTcgLTE2LjV0LTE2IC03LjVsLTIyNSAxdjBoLTEycS05IDAgLTE2IDZxLTYgNiAtNSAxN2wxIDExaC0xdjFsMSAyMjVxMCAxMCA2LjUgMTUuNXQxNi41IDUuNWgxNnExMCAwIDE2LjUgLTd0Ni41IC0xNmwtMSAtMTUybDI2MCAyNThxOSA5IDIyIDl0MjIgLTkuNXQ5IC0yMnQtOSAtMjIuNXpNNjQxIDI1NHE5IDggMTYgOGgxNHYwaDIyNXE5IC0xIDE2IC03LjUNCnQ3IC0xNi41di0xNnEtMSAtMTEgLTguNSAtMTd0LTE3LjUgLTZsLTE0OCAtMWwyNTkgLTI1N3E5IC05IDkgLTIydC05IC0yMi41dC0yMiAtOS41dC0yMiA5bC0yNjEgMjU4bDEgLTE1MXEwIC0xMCAtNi41IC0xN3QtMTYuNSAtN2gtMTdxLTEwIDAgLTE2LjUgNS41dC02LjUgMTUuNWwtMSAyMjZoMWwtMSAxMnEwIDEwIDUgMTZ6TTM4NiAyMjZ2LTIyNnEtMSAtMTAgLTcuNSAtMTUuNXQtMTYuNSAtNS41aC0xNnEtOSAwIC0xNiA3dC02IDE3bDEgMTUyDQpsLTI2MSAtMjU5cS05IC05IC0yMiAtOXQtMjIgOS41dC05IDIyLjV0OSAyMmwyNTkgMjU3bC0xNDggMXEtOSAwIC0xNi41IDZ0LTkuNSAxN3YxNnEwIDEwIDcgMTYuNXQxNyA3LjVsMjI0IC0xaDFoMTFxMTAgMCAxNiAtNnQ2IC0xNmwtMiAtMTNoMXpNMzgxIDUyMHEtNiAtNiAtMTYgLTZoLTExaC0xbC0yMjQgLTFxLTEwIDEgLTE3IDcuNXQtNyAxNi41djE2cTIgMTEgOS41IDE3dDE2LjUgNmwxNDggMWwtMjU5IDI1NnEtOSAxMCAtOSAyMi41DQp0OSAyMnQyMiA5LjV0MjIgLTlsMjYxIC0yNThsLTEgMTUycS0xIDkgNiAxNnQxNiA3aDE2cTEwIDAgMTYuNSAtNS41dDcuNSAtMTUuNXYtMjI1di0xaC0xbDIgLTExcTAgLTExIC02IC0xN3oiIC8+DQogICAgPGdseXBoIGdseXBoLW5hbWU9InVuaUU2MDciIHVuaWNvZGU9IiYjeGU2MDc7IiANCmQ9Ik0yMTkgMjM4aDUxMnYtMTQ3aC01MTJ2MTQ3ek0yOTMgNjc3aDM2NXYtMTQ3aC0zNjV2MTQ3ek00MzkgNDU3di0xNDZoLTI5M3YtMjkzaDI5M3YtMTQ2aDczdjE0NmgyOTN2MjkzaC0yOTN2MTQ2aDIxOXYyOTNoLTIxOXYxNDZoLTczdi0xNDZoLTIyMHYtMjkzaDIyMHoiIC8+DQogICAgPGdseXBoIGdseXBoLW5hbWU9InVuaUU2MDgiIHVuaWNvZGU9IiYjeGU2MDg7IiANCmQ9Ik02NTggMTY1djUxMmgxNDd2LTUxMmgtMTQ3ek0yMTkgMjM4djM2NWgxNDd2LTM2NWgtMTQ3ek00MzkgMzg0aDE0NnYtMjkzaDI5M3YyOTNoMTQ2djczaC0xNDZ2MjkzaC0yOTN2LTI5M2gtMTQ2djIyMGgtMjkzdi0yMjBoLTE0NnYtNzNoMTQ2di0yMTloMjkzdjIxOXoiIC8+DQogICAgPGdseXBoIGdseXBoLW5hbWU9InVuaUU2MDkiIHVuaWNvZGU9IiYjeGU2MDk7IiBob3Jpei1hZHYteD0iMTAyNSIgDQpkPSJNODk3IDU4MnEtNjIgNjIgLTE0MS41IDk1dC0xNjYuNSAzM3QtMTY2LjUgLTMzdC0xNDEuNSAtOTV0LTk0LjUgLTE0MXQtMzIuNSAtMTY3di02NmwtMTEwIDExMHEtOCA4IC0xOC41IDh0LTE4IC03LjV0LTcuNSAtMTguNXQ4IC0xOGwxNTMgLTE1NHE4IC03IDE4LjUgLTd0MTcuNSA3bDE1NCAxNTRxNyA3IDcgMTh0LTcuNSAxOC41dC0xOCA3LjV0LTE3LjUgLThsLTExMCAtMTEwdjY2cTAgMTA1IDUxLjUgMTkzLjV0MTQwIDEzOS41DQp0MTkyLjUgNTF0MTkyLjUgLTUxdDE0MCAtMTM5LjV0NTEuNSAtMTkzdC01MS41IC0xOTN0LTE0MCAtMTQwdC0xOTIuNSAtNTEuNXEtMTEgMCAtMTguNSAtNy41dC03LjUgLTE4dDcuNSAtMTh0MTguNSAtNy41cTg3IDAgMTY2LjUgMzN0MTQxIDk0LjV0OTQuNSAxNDF0MzMgMTY3dC0zMyAxNjYuNXQtOTQgMTQxeiIgLz4NCiAgICA8Z2x5cGggZ2x5cGgtbmFtZT0idW5pRTYwQSIgdW5pY29kZT0iJiN4ZTYwYTsiIGhvcml6LWFkdi14PSIxMDI1IiANCmQ9Ik0xMjggNTgycTYxIDYyIDE0MC41IDk1dDE2Ni41IDMzdDE2Ni41IC0zM3QxNDEuNSAtOTV0OTUgLTE0MXQzMyAtMTY3di02NmwxMDkgMTEwcTggOCAxOC41IDh0MTggLTcuNXQ3LjUgLTE4LjV0LTcgLTE4bC0xNTQgLTE1NHEtNyAtNyAtMTggLTd0LTE4IDdsLTE1NCAxNTRxLTcgNyAtNyAxOHQ3LjUgMTguNXQxOCA3LjV0MTcuNSAtOGwxMTAgLTExMHY2NnEwIDEwNSAtNTEuNSAxOTMuNXQtMTQwIDEzOS41dC0xOTIuNSA1MXQtMTkyLjUgLTUxDQp0LTE0MCAtMTM5LjV0LTUxLjUgLTE5M3Q1MS41IC0xOTN0MTQwIC0xNDB0MTkyLjUgLTUxLjVxMTEgMCAxOC41IC03LjV0Ny41IC0xOHQtNy41IC0xOHQtMTguNSAtNy41cS04NyAwIC0xNjYuNSAzM3QtMTQxIDk0LjV0LTk0LjUgMTQxdC0zMyAxNjd0MzMgMTY2LjV0OTQgMTQxaDF6IiAvPg0KICA8L2ZvbnQ+DQo8L2RlZnM+PC9zdmc+DQo="},function(t,e,n){var o=n(260);"string"==typeof o&&(o=[[t.id,o,""]]);n(9)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".fd-toolbar{border:1px solid #ddd;width:100%;background:#fff}.fd-node-toolbar{border-left:1px solid #ddd;border-right:1px solid #ddd;width:100%;background:#fff}.fd-canvas-container{border:1px solid #eee;background-color:#fff}.fd-property-panel{width:400px;border:1px solid #999;border-radius:5px;top:36px;left:600px;position:absolute;background:#fff;box-shadow:5px 5px 5px #888}.snaptogrid{background-image:url("+n(261)+")}.nosnaptogrid{background-image:none}",""])},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAHUlEQVQYV2NkYGAwBuKzQIwXMBJSAJMfVUidcAQAnUQBC6jEGBUAAAAASUVORK5CYII="},function(t,e,n){n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274)},function(t,e){+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,o=this;t(this).one("bsTransitionEnd",function(){n=!0});var i=function(){n||t(o).trigger(t.support.transition.end)};return setTimeout(i,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.alert");i||n.data("bs.alert",i=new o(this)),"string"==typeof e&&i[e].call(n)})}var n='[data-dismiss="alert"]',o=function(e){t(e).on("click",n,this.close)};o.VERSION="3.3.7",o.TRANSITION_DURATION=150,o.prototype.close=function(e){function n(){a.detach().trigger("closed.bs.alert").remove()}var i=t(this),r=i.attr("data-target");r||(r=i.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var a=t("#"===r?[]:r);e&&e.preventDefault(),a.length||(a=i.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(o.TRANSITION_DURATION):n())};var i=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",n,o.prototype.close)}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),i=o.data("bs.button"),r="object"==typeof e&&e;i||o.data("bs.button",i=new n(this,r)),"toggle"==e?i.toggle():e&&i.setState(e)})}var n=function(e,o){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,o),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",o=this.$element,i=o.is("input")?"val":"html",r=o.data();e+="Text",null==r.resetText&&o.data("resetText",o[i]()),setTimeout(t.proxy(function(){o[i](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,o.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,o.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var o=t(n.target).closest(".btn");e.call(o,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),o.is("input,button")?o.trigger("focus"):o.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),i=o.data("bs.carousel"),r=t.extend({},n.DEFAULTS,o.data(),"object"==typeof e&&e),a="string"==typeof e?e:r.slide;i||o.data("bs.carousel",i=new n(this,r)),"number"==typeof e?i.to(e):a?i[a]():r.interval&&i.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e),o="prev"==t&&0===n||"next"==t&&n==this.$items.length-1;if(o&&!this.options.wrap)return e;var i="prev"==t?-1:1,r=(n+i)%this.$items.length;return this.$items.eq(r)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,o){var i=this.$element.find(".item.active"),r=o||this.getItemForDirection(e,i),a=this.interval,s="next"==e?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var A=r[0],c=t.Event("slide.bs.carousel",{relatedTarget:A,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(r)]);u&&u.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:A,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(r.addClass(e),r[0].offsetWidth,i.addClass(s),r.addClass(s),i.one("bsTransitionEnd",function(){r.removeClass([e,s].join(" ")).addClass("active"),i.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(i.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this};var i=function(n){var o,i=t(this),r=t(i.attr("data-target")||(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var a=t.extend({},r.data(),i.data()),s=i.attr("data-slide-to");s&&(a.interval=!1),e.call(r,a),s&&r.data("bs.carousel").to(s),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery)},function(t,e){+function(t){"use strict";function e(e){var n,o=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(o)}function n(e){return this.each(function(){var n=t(this),i=n.data("bs.collapse"),r=t.extend({},o.DEFAULTS,n.data(),"object"==typeof e&&e);!i&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),i||n.data("bs.collapse",i=new o(this,r)),"string"==typeof e&&i[e]()})}var o=function(e,n){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};o.VERSION="3.3.7",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(e=i.data("bs.collapse"),e&&e.transitioning))){var r=t.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),e||i.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[a](this.$element[0][l])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(i,this)).emulateTransitionEnd(o.TRANSITION_DURATION):i.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,o){var i=t(o);this.addAriaAndCollapsedClass(e(i),i)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var i=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=o,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o){var i=t(this);i.attr("data-target")||o.preventDefault();var r=e(i),a=r.data("bs.collapse"),s=a?"toggle":i.data();n.call(r,s)})}(jQuery)},function(t,e){+function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var o=n&&t(n);return o&&o.length?o:e.parent()}function n(n){n&&3===n.which||(t(i).remove(),t(r).each(function(){var o=t(this),i=e(o),r={relatedTarget:this};i.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(i[0],n.target)||(i.trigger(n=t.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(o.attr("aria-expanded","false"),i.removeClass("open").trigger(t.Event("hidden.bs.dropdown",r)))))}))}function o(e){return this.each(function(){var n=t(this),o=n.data("bs.dropdown");o||n.data("bs.dropdown",o=new a(this)),"string"==typeof e&&o[e].call(n)})}var i=".dropdown-backdrop",r='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(o){var i=t(this);if(!i.is(".disabled, :disabled")){var r=e(i),a=r.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var s={relatedTarget:this};if(r.trigger(o=t.Event("show.bs.dropdown",s)),o.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var o=t(this);if(n.preventDefault(),n.stopPropagation(),!o.is(".disabled, :disabled")){var i=e(o),a=i.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&i.find(r).trigger("focus"),o.trigger("click");var s=" li:not(.disabled):visible a",l=i.find(".dropdown-menu"+s);if(l.length){var A=l.index(n.target);38==n.which&&A>0&&A--,40==n.which&&Adocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,o){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),r=i.length;r--;){var a=i[r];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,o){n[t]!=o&&(e[t]=o)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var o=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!o)return;var i=this,r=this.tip(),a=this.getUID(this.type);this.setContent(),r.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&r.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,A=l.test(s);A&&(s=s.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this), this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=r[0].offsetWidth,d=r[0].offsetHeight;if(A){var g=s,h=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+d>h.bottom?"top":"top"==s&&c.top-dh.width?"left":"left"==s&&c.left-ua.top+a.height&&(i.top=a.top+a.height-l)}else{var A=e.left-r,c=e.left+r+n;Aa.right&&(i.left=a.left+a.width-c)}return i},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var o=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=o,this}}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),i=o.data("bs.popover"),r="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||o.data("bs.popover",i=new n(this,r)),"string"==typeof e&&i[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery)},function(t,e){+function(t){"use strict";function e(n,o){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var o=t(this),i=o.data("bs.scrollspy"),r="object"==typeof n&&n;i||o.data("bs.scrollspy",i=new e(this,r)),"string"==typeof n&&i[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),i=e.data("target")||e.attr("href"),r=/^#./.test(i)&&t(i);return r&&r.length&&r.is(":visible")&&[[r[n]().top+o,i]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),o=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,r=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=o)return a!=(t=r[r.length-1])&&this.activate(t);if(a&&e=i[t]&&(void 0===i[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var a=o.find("> .active"),s=i&&t.support.transition&&(a.length&&a.hasClass("fade")||!!o.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),a.removeClass("in")};var o=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=o,this};var i=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),i=o.data("bs.affix"),r="object"==typeof e&&e;i||o.data("bs.affix",i=new n(this,r)),"string"==typeof e&&i[e]()})}var n=function(e,o){this.options=t.extend({},n.DEFAULTS,o),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,o){var i=this.$target.scrollTop(),r=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return i=t-o&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),o=this.options.offset,i=o.top,r=o.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof o&&(r=i=o),"function"==typeof i&&(i=o.top(this.$element)),"function"==typeof r&&(r=o.bottom(this.$element));var s=this.getState(a,e,i,r);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),A=t.Event(l+".bs.affix");if(this.$element.trigger(A),A.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-e-r})}};var o=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=o,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),o=n.data();o.offset=o.offset||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),e.call(n,o)})})}(jQuery)},function(t,e){"use strict";!function(t){t.fn.draggable=function(e){var n=t.extend({handle:0,exclude:0},e);return this.each(function(){var e,o,i=t(this),r=n.handle?t(n.handle,i):i;r.on({mousedown:function(r){var a=r.target,s="",l=!1;if(a&&(s=a.className,s&&(s=s.trim(),s.indexOf("cm-")>-1?l=!0:s.indexOf("CodeMirror-")>-1&&(l=!0))),(!s||"form-control"!==s&&"presentation"!==s&&!l)&&!(s.indexOf("ureport")>-1||s.indexOf("ds_name")>-1||s.indexOf("dataset_name")>-1||"A"===a.tagName||"INPUT"===a.tagName||a&&"presentation"===t(a).attr("role")||n.exclude&&~t.inArray(r.target,t(n.exclude,i)))){var A=i.offset();e=r.pageX-A.left,o=r.pageY-A.top,t(document).on("mousemove.drag",function(t){i.offset({top:t.pageY-o,left:t.pageX-e})})}},mouseup:function(e){t(document).off("mousemove.drag")}})})}}(jQuery)},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n0&&a.push(u)}else{var f=u.rect,M=f.getBBox();(M.x>=n.x&&M.x<=n.x2||M.x2>=n.x&&M.x2<=n.x2)&&(M.y>=n.y&&M.y<=n.y2||M.y2>=n.y&&M.y2<=n.y2)&&l.push(u)}}l.length>0?l.forEach(function(t,e){i.addSelection(t)}):a.forEach(function(t,e){i.addSelection(t)}),i.endSelect()}}var o=null,i=this.context,r=i.paper;r.set();this.canvas=r.rect(0,0,r.width,r.height).attr({fill:"#FFF",opacity:0}),this.canvas.toBack(),this.canvas.drag(e,t,n),this.canvas.click(function(t){var e=i.currentTool;if(!(!e||e instanceof u.default||e instanceof A.default)){var n=t.offsetX,o=t.offsetY,r=e._newNodeInstance(n,o);r&&!function(){var t=r.uuid,a=r.name,s=r.toJSON();i.addRedoUndo({redo:function(){r=e._newNodeInstance(n,o,a),r.initFromJson(s)},undo:function(){i.removeFigureByUUID(t)}})}()}}),this.canvas.mousemove(function(t){if(i.currentTool&&i.currentTool instanceof u.default){var e=i.currentConnection;if(e){var n=t.offsetX,o=t.offsetY;e.endX=n,e.endY=o,e.updatePath()}}})}}]),t}();e.default=h},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);en&&this.container.width(t+10),e>o&&this.container.height(e+10)}},{key:"addRedoUndo",value:function(t){this.undoManager.add(t)}},{key:"addSelection",value:function(t){this.selectionFigures.push(t),t instanceof T.default?this.selectionPaths.push(t.path):this.selectionRects.push(t.rect)}},{key:"endSelect",value:function(){this.selectionRects.attr("stroke","#FF9800"),this.selectionPaths.attr({stroke:"#999","stroke-dasharray":"20"});var t=null;this.selectionFigures.forEach(function(e,n){t||(t=e),e instanceof T.default&&e.select()}),t&&I.eventEmitter.emit(I.OBJECT_SELECTED,t)}},{key:"resetSelection",value:function(){this.selectionRects.attr("stroke","#fff"),this.selectionPaths.attr({stroke:"#999","stroke-dasharray":"none"}),this.selectionRects=this.paper.set(),this.selectionPaths=this.paper.set(),this.selectionFigures.forEach(function(t,e){t instanceof T.default&&t.unSelect()}),this.selectionFigures.splice(0,this.selectionFigures.length),I.eventEmitter.emit(I.CANVAS_SELECTED)}},{key:"registerTool",value:function(t){var e=t.getType();if(this.toolsMap.has(e))throw"Figure ["+e+"] already exist.";this.toolsMap.set(e,t)}},{key:"nextUUID",value:function(){return g.default.v1()}},{key:"getFigureById",value:function(t){var e=void 0,n=!0,o=!1,i=void 0;try{for(var r,a=this.allFigures[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var s=r.value;if(s instanceof E.default&&(s.rect.id===t||s.icon.id===t||s.text.id===t)){e=s;break}}}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return e}},{key:"getNodeByUUID",value:function(t){var e=void 0,n=!0,o=!1,i=void 0;try{for(var r,a=this.allFigures[Symbol.iterator]();!(n=(r=a.next()).done);n=!0){var s=r.value;if(s.uuid===t){e=s;break}}}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return e}},{key:"removeFigureByUUID",value:function(t){var e=this.getNodeByUUID(t),n=this.allFigures.indexOf(e);this.allFigures.splice(n,1),e.remove()}},{key:"cancelConnection",value:function(){if(this.currentConnection){var t=this.currentConnection.from.fromConnections,e=t.indexOf(this.currentConnection);t.splice(e,1),this.currentConnection.path.remove(),this.currentConnection.text&&this.currentConnection.text.remove()}this.currentConnection=null}},{key:"_initEvent",value:function(){var t=this;I.eventEmitter.on(I.TRIGGER_TOOL,function(e){if(!t.toolsMap.has(e))throw"Node "+e+" not exist.";t.currentTool=t.toolsMap.get(e),t.cancelConnection()}),I.eventEmitter.on(I.REMOVE_CLICKED,function(){var e=[].concat(r(t.selectionFigures));0!==e&&(t.resetSelection(),e.forEach(function(e,n){var o=e.toJSON(),i=e.uuid,r=t;e instanceof T.default?t.addRedoUndo({redo:function(){var t=r.getNodeByUUID(i),e=t.from.uuid,n=t.to.uuid,a=r.context.getNodeByUUID(e),s=r.context.getNodeByUUID(n),l=new T.default(a,{x:a.rect.attr("x"),y:a.rect.attr("y")});a.fromConnections.push(l),s.toConnections.push(l),l.to=s,l.fromJSON(o)},undo:function(){r.removeFigureByUUID(i)}}):!function(){var n=e._tool;t.addRedoUndo({redo:function(){r.removeFigureByUUID(i)},undo:function(){var t=n._newNodeInstance(10,10,"");t&&(t.initFromJson(o),t._buildConnections())}})}(),t.removeFigureByUUID(i)}))}),I.eventEmitter.on(I.ALIGN_CENTER,function(){var e=-1,n=-1,o=void 0,i=new Map,r=0,a=!0,s=!1,l=void 0;try{for(var A,c=t.selectionFigures[Symbol.iterator]();!(a=(A=c.next()).done);a=!0){var u=A.value;if(u instanceof T.default)break;var d={oldXY:{x:u.rect.attr("x"),y:u.rect.attr("y")}};0===r?(e=u.rect.attr("x"),o=u.rect.attr("width"),e+=o/2):u.moveTo(e,n),d.newXY={x:u.rect.attr("x"),y:u.rect.attr("y")},i.set(u.uuid,d),r++}}catch(t){s=!0,l=t}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}var g=t;t.addRedoUndo({redo:function(){var t=!0,e=!1,n=void 0;try{for(var o,r=i.keys()[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value,s=g.getNodeByUUID(a),l=i.get(a),A=l.newXY;s.move(A.x,A.y,s.rect.attr("width"),s.rect.attr("height"))}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}},undo:function(){var t=!0,e=!1,n=void 0;try{for(var o,r=i.keys()[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value,s=g.getNodeByUUID(a),l=i.get(a),A=l.oldXY;s.move(A.x,A.y,s.rect.attr("width"),s.rect.attr("height"))}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}}})}),I.eventEmitter.on(I.ALIGN_MIDDLE,function(){var e=-1,n=-1,o=void 0,i=new Map,r=0,a=!0,s=!1,l=void 0;try{for(var A,c=t.selectionFigures[Symbol.iterator]();!(a=(A=c.next()).done);a=!0){var u=A.value;if(u instanceof T.default)break;var d={oldXY:{x:u.rect.attr("x"),y:u.rect.attr("y")}};0===r?(n=u.rect.attr("y"),o=u.rect.attr("height"),n+=o/2):u.moveTo(e,n),d.newXY={x:u.rect.attr("x"),y:u.rect.attr("y")},i.set(u.uuid,d),r++}}catch(t){s=!0,l=t}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}var g=t;t.addRedoUndo({redo:function(){var t=!0,e=!1,n=void 0;try{for(var o,r=i.keys()[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value,s=g.getNodeByUUID(a),l=i.get(a),A=l.newXY;s.move(A.x,A.y,s.rect.attr("width"),s.rect.attr("height"))}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}},undo:function(){var t=!0,e=!1,n=void 0;try{for(var o,r=i.keys()[Symbol.iterator]();!(t=(o=r.next()).done);t=!0){var a=o.value,s=g.getNodeByUUID(a),l=i.get(a),A=l.oldXY;s.move(A.x,A.y,s.rect.attr("width"),s.rect.attr("height"))}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}}})}),I.eventEmitter.on(I.UNIFY_SIZE,function(){var e=void 0,n=void 0,o=new Map,i=0,r=!0,a=!1,s=void 0;try{for(var l,A=t.selectionFigures[Symbol.iterator]();!(r=(l=A.next()).done);r=!0){var c=l.value;if(c instanceof T.default)break;var u={oldWH:{w:c.rect.attr("width"),h:c.rect.attr("height")}};0===i?(e=c.rect.attr("width"),n=c.rect.attr("height")):c.changeSize(e,n),u.newWH={w:c.rect.attr("width"),h:c.rect.attr("height")},o.set(c.uuid,u),i++}}catch(t){a=!0,s=t}finally{try{!r&&A.return&&A.return()}finally{if(a)throw s}}var d=t;t.addRedoUndo({redo:function(){var t=!0,e=!1,n=void 0;try{for(var i,r=o.keys()[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){var a=i.value,s=d.getNodeByUUID(a),l=o.get(a),A=l.newWH;s.changeSize(A.w,A.h)}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}},undo:function(){var t=!0,e=!1,n=void 0;try{for(var i,r=o.keys()[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){var a=i.value,s=d.getNodeByUUID(a),l=o.get(a),A=l.oldWH;s.changeSize(A.w,A.h)}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}}})})}},{key:"_initBuiltinTools",value:function(){this.selectTool=new p.default,this.connectionTool=new M.default,this.selectTool.context=this,this.connectionTool.context=this,this.currentTool=this.selectTool}}]),t}();e.default=N},function(t,e,n){var o;!function(){"use strict";function i(t,e,n){return t.splice(e,!n||1+n-e+(!(n<0^e>=0)&&(n<0||-1)*t.length)),t.length}var r=function(){var t,e,n=[],o=-1,r=0,a=!1;return e=function(t,e){return t&&"function"==typeof t[e]?(a=!0,t[e](),a=!1,this):this},{add:function(e){return a?this:(n.splice(o+1,n.length-o),n.push(e),r&&n.length>r&&i(n,0,-(r+1)),o=n.length-1,t&&t(),this)},setCallback:function(e){t=e},undo:function(){var i=n[o];return i?(e(i,"undo"),o-=1,t&&t(),this):this},redo:function(){var i=n[o+1];return i?(e(i,"redo"),o+=1,t&&t(),this):this},clear:function(){var e=n.length;n=[],o=-1,t&&e>0&&t()},hasUndo:function(){return o!==-1},hasRedo:function(){return o>>((3&e)<<3)&255;return n},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}function s(){try{var t=n(284).randomBytes;h=d=t&&function(){return t(16)},d()}catch(t){}}function l(t,e,n){var o=e&&n||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){i<16&&(e[o+i++]=w[t])});i<16;)e[o+i++]=0;return e}function A(t,e){var n=e||0,o=M;return o[t[n++]]+o[t[n++]]+o[t[n++]]+o[t[n++]]+"-"+o[t[n++]]+o[t[n++]]+"-"+o[t[n++]]+o[t[n++]]+"-"+o[t[n++]]+o[t[n++]]+"-"+o[t[n++]]+o[t[n++]]+o[t[n++]]+o[t[n++]]+o[t[n++]]+o[t[n++]]}function c(t,e,n){var o=e&&n||0,i=e||[];t=t||{};var r=null!=t.clockseq?t.clockseq:y,a=null!=t.msecs?t.msecs:(new Date).getTime(),s=null!=t.nsecs?t.nsecs:N+1,l=a-E+(s-N)/1e4;if(l<0&&null==t.clockseq&&(r=r+1&16383),(l<0||a>E)&&null==t.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");E=a,N=s,y=r,a+=122192928e5;var c=(1e4*(268435455&a)+s)%4294967296;i[o++]=c>>>24&255,i[o++]=c>>>16&255,i[o++]=c>>>8&255,i[o++]=255&c;var u=a/4294967296*1e4&268435455;i[o++]=u>>>8&255,i[o++]=255&u,i[o++]=u>>>24&15|16,i[o++]=u>>>16&255,i[o++]=r>>>8|128,i[o++]=255&r;for(var d=t.node||I,g=0;g<6;g++)i[o+g]=d[g];return e?e:A(i)}function u(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new f(16):null,t=null),t=t||{};var i=t.random||(t.rng||d)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var r=0;r<16;r++)e[o+r]=i[r];return e||A(i)}var d,g,h,p;r?a():s();for(var f="function"==typeof i?i:Array,M=[],w={},T=0;T<256;T++)M[T]=(T+256).toString(16).substr(1),w[M[T]]=T;var C=d(),I=[1|C[0],C[1],C[2],C[3],C[4],C[5]],y=16383&(C[6]<<8|C[7]),E=0,N=0,m=u;m.v1=c,m.v4=u,m.parse=l,m.unparse=A,m.BufferClass=f,m._rng=d,m._mathRNG=g,m._nodeRNG=h,m._whatwgRNG=p,"undefined"!=typeof t&&t.exports?t.exports=m:(o=function(){return m}.call(e,n,e,t),!(void 0!==o&&(t.exports=o)))}("undefined"!=typeof window?window:null)}).call(e,n(280).Buffer)},function(t,e,n){(function(t,o){"use strict";function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function r(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,n){if(r()=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function f(e){return+e!=e&&(e=0),t.alloc(+e)}function M(e,n){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var o=e.length;if(0===o)return 0;for(var i=!1;;)switch(n){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return J(e).length;default:if(i)return G(e).length;n=(""+n).toLowerCase(),i=!0}}function w(t,e,n){var o=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return Q(this,e,n);case"utf8":case"utf-8":return v(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return S(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function T(t,e,n){var o=t[e];t[e]=t[n],t[n]=o}function C(e,n,o,i,r){if(0===e.length)return-1;if("string"==typeof o?(i=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=r?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(r)return-1;o=e.length-1}else if(o<0){if(!r)return-1;o=0}if("string"==typeof n&&(n=t.from(n,i)),t.isBuffer(n))return 0===n.length?-1:I(e,n,o,i,r);if("number"==typeof n)return n&=255,t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,n,o):Uint8Array.prototype.lastIndexOf.call(e,n,o):I(e,[n],o,i,r); throw new TypeError("val must be string, number or Buffer")}function I(t,e,n,o,i){function r(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,l=e.length;if(void 0!==o&&(o=String(o).toLowerCase(),"ucs2"===o||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}var A;if(i){var c=-1;for(A=n;As&&(n=s-l),A=n;A>=0;A--){for(var u=!0,d=0;di&&(o=i)):o=i;var r=e.length;if(r%2!==0)throw new TypeError("Invalid hex string");o>r/2&&(o=r/2);for(var a=0;a239?4:r>223?3:r>191?2:1;if(i+s<=n){var l,A,c,u;switch(s){case 1:r<128&&(a=r);break;case 2:l=t[i+1],128===(192&l)&&(u=(31&r)<<6|63&l,u>127&&(a=u));break;case 3:l=t[i+1],A=t[i+2],128===(192&l)&&128===(192&A)&&(u=(15&r)<<12|(63&l)<<6|63&A,u>2047&&(u<55296||u>57343)&&(a=u));break;case 4:l=t[i+1],A=t[i+2],c=t[i+3],128===(192&l)&&128===(192&A)&&128===(192&c)&&(u=(15&r)<<18|(63&l)<<12|(63&A)<<6|63&c,u>65535&&u<1114112&&(a=u))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,o.push(a>>>10&1023|55296),a=56320|1023&a),o.push(a),i+=s}return B(o)}function B(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",o=0;oo)&&(n=o);for(var i="",r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function k(e,n,o,i,r,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>r||ne.length)throw new RangeError("Index out of range")}function R(t,e,n,o){e<0&&(e=65535+e+1);for(var i=0,r=Math.min(t.length-n,2);i>>8*(o?i:1-i)}function z(t,e,n,o){e<0&&(e=4294967295+e+1);for(var i=0,r=Math.min(t.length-n,4);i>>8*(o?i:3-i)&255}function Y(t,e,n,o,i,r){if(n+o>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(t,e,n,o,i){return i||Y(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),q.write(t,e,n,o,23,4),n+4}function F(t,e,n,o,i){return i||Y(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),q.write(t,e,n,o,52,8),n+8}function H(t){if(t=V(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function V(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function P(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){e=e||1/0;for(var n,o=t.length,i=null,r=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(a+1===o){(e-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function X(t){for(var e=[],n=0;n>8,i=n%256,r.push(i),r.push(o);return r}function J(t){return _.toByteArray(H(t))}function Z(t,e,n,o){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function K(t){return t!==t}var _=n(281),q=n(282),$=n(283);e.Buffer=t,e.SlowBuffer=f,e.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=void 0!==o.TYPED_ARRAY_SUPPORT?o.TYPED_ARRAY_SUPPORT:i(),e.kMaxLength=r(),t.poolSize=8192,t._augment=function(e){return e.__proto__=t.prototype,e},t.from=function(t,e,n){return s(null,t,e,n)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})),t.alloc=function(t,e,n){return A(null,t,e,n)},t.allocUnsafe=function(t){return c(null,t)},t.allocUnsafeSlow=function(t){return c(null,t)},t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var o=e.length,i=n.length,r=0,a=Math.min(o,i);r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e,n,o,i,r){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===o&&(o=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),n<0||o>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&n>=o)return 0;if(i>=r)return-1;if(n>=o)return 1;if(n>>>=0,o>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var a=r-i,s=o-n,l=Math.min(a,s),A=this.slice(i,r),c=e.slice(n,o),u=0;ui)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var r=!1;;)switch(o){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":return N(this,t,e,n);case"latin1":case"binary":return m(this,t,e,n);case"base64":return b(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;t.prototype.slice=function(e,n){var o=this.length;e=~~e,n=void 0===n?o:~~n,e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),n<0?(n+=o,n<0&&(n=0)):n>o&&(n=o),n0&&(i*=256);)o+=this[t+--e]*i;return o},t.prototype.readUInt8=function(t,e){return e||U(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||U(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||U(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var o=this[t],i=1,r=0;++r=i&&(o-=Math.pow(2,8*e)),o},t.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var o=e,i=1,r=this[t+--o];o>0&&(i*=256);)r+=this[t+--o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},t.prototype.readInt8=function(t,e){return e||U(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},t.prototype.readInt16LE=function(t,e){e||U(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||U(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||U(t,4,this.length),q.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||U(t,4,this.length),q.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||U(t,8,this.length),q.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||U(t,8,this.length),q.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,o){if(t=+t,e|=0,n|=0,!o){var i=Math.pow(2,8*n)-1;k(this,t,e,n,i,0)}var r=1,a=0;for(this[e]=255&t;++a=0&&(a*=256);)this[e+r]=t/a&255;return e+n},t.prototype.writeUInt8=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):R(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):R(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):z(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):z(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e|=0,!o){var i=Math.pow(2,8*n-1);k(this,t,e,n,i-1,-i)}var r=0,a=1,s=0;for(this[e]=255&t;++r>0)-s&255;return e+n},t.prototype.writeIntBE=function(t,e,n,o){if(t=+t,e|=0,!o){var i=Math.pow(2,8*n-1);k(this,t,e,n,i-1,-i)}var r=n-1,a=1,s=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+n},t.prototype.writeInt8=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):R(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):R(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):z(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,o){return e=+e,n|=0,o||k(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):z(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return O(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return O(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},t.prototype.copy=function(e,n,o,i){if(o||(o=0),i||0===i||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n=0;--r)e[r+n]=this[r+o];else if(a<1e3||!t.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,o=void 0===o?this.length:o>>>0,e||(e=0);var a;if("number"==typeof e)for(a=n;a0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var e,o,i,r,a,s,l=t.length;a=n(t),s=new c(3*l/4-a),i=a>0?l-4:l;var u=0;for(e=0,o=0;e>16&255,s[u++]=r>>8&255,s[u++]=255&r;return 2===a?(r=A[t.charCodeAt(e)]<<2|A[t.charCodeAt(e+1)]>>4,s[u++]=255&r):1===a&&(r=A[t.charCodeAt(e)]<<10|A[t.charCodeAt(e+1)]<<4|A[t.charCodeAt(e+2)]>>2,s[u++]=r>>8&255,s[u++]=255&r),s}function r(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function a(t,e,n){for(var o,i=[],a=e;ac?c:A+s));return 1===o?(e=t[n-1],i+=l[e>>2],i+=l[e<<4&63],i+="=="):2===o&&(e=(t[n-2]<<8)+t[n-1],i+=l[e>>10],i+=l[e>>4&63],i+=l[e<<2&63],i+="="),r.push(i),r.join("")}e.byteLength=o,e.toByteArray=i,e.fromByteArray=s;for(var l=[],A=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,g=u.length;d>1,c=-7,u=n?i-1:0,d=n?-1:1,g=t[e+u];for(u+=d,r=g&(1<<-c)-1,g>>=-c,c+=s;c>0;r=256*r+t[e+u],u+=d,c-=8);for(a=r&(1<<-c)-1,r>>=-c,c+=o;c>0;a=256*a+t[e+u],u+=d,c-=8);if(0===r)r=1-A;else{if(r===l)return a?NaN:(g?-1:1)*(1/0);a+=Math.pow(2,o),r-=A}return(g?-1:1)*a*Math.pow(2,r-o)},e.write=function(t,e,n,o,i,r){var a,s,l,A=8*r-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:r-1,h=o?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+u>=1?d/l:d*Math.pow(2,1-u),e*l>=2&&(a++,l/=2),a+u>=c?(s=0,a=c):a+u>=1?(s=(e*l-1)*Math.pow(2,i),a+=u):(s=e*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;t[n+g]=255&s,g+=h,s/=256,i-=8);for(a=a<0;t[n+g]=255&a,g+=h,a/=256,A-=8);t[n+g-h]|=128*p}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){function o(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function i(t,e){for(var n in t)e(t[n],n)}var r=n(285);e.createHash=n(287),e.createHmac=n(299),e.randomBytes=function(e,n){if(!n||!n.call)return new t(r(e));try{n.call(this,void 0,new t(r(e)))}catch(t){n(t)}},e.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var a=n(300)(e);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync,i(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(t){e[t]=function(){o("sorry,",t,"is not implemented yet")}})}).call(e,n(280).Buffer)},function(t,e,n){(function(e,o){!function(){var i=("undefined"==typeof window?e:window)||{};_crypto=i.crypto||i.msCrypto||n(286),t.exports=function(t){if(_crypto.getRandomValues){var e=new o(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(e,function(){return this}(),n(280).Buffer)},function(t,e){},function(t,e,n){(function(e){function o(t){return function(){var n=[],o={update:function(t,o){return e.isBuffer(t)||(t=new e(t,o)),n.push(t),this},digest:function(o){var i=e.concat(n),r=t(i);return n=null,o?r.toString(o):r}};return o}}var i=n(288),r=o(n(296)),a=o(n(298));t.exports=function(t){return"md5"===t?new r:"rmd160"===t?new a:i(t)}}).call(e,n(280).Buffer)},function(t,e,n){var e=t.exports=function(t){var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n},o=n(280).Buffer,i=n(289)(o);e.sha1=n(290)(o,i),e.sha256=n(294)(o,i),e.sha512=n(295)(o,i)},function(t,e){t.exports=function(t){function e(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}return e.prototype.init=function(){this._s=0,this._len=0},e.prototype.update=function(e,n){"string"==typeof e&&(n=n||"utf8",e=new t(e,n));for(var o=this._len+=e.length,i=this._s=this._s||0,r=0,a=this._block;i=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e}},function(t,e,n){var o=n(291).inherits;t.exports=function(t,e){function n(){return h.length?h.pop().init():this instanceof n?(this._w=g,e.call(this,64,56),this._h=null,void this.init()):new n}function i(t,e,n,o){return t<20?e&n|~e&o:t<40?e^n^o:t<60?e&n|e&o|n&o:e^n^o}function r(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function a(t,e){return t+e|0}function s(t,e){return t<>>32-e}var l=0,A=4,c=8,u=12,d=16,g=new("undefined"==typeof Int32Array?Array:Int32Array)(80),h=[];return o(n,e),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,e.prototype.init.call(this),this},n.prototype._POOL=h,n.prototype._update=function(t){var e,n,o,l,A,c,u,d,g,h;e=c=this._a,n=u=this._b,o=d=this._c,l=g=this._d,A=h=this._e;for(var p=this._w,f=0;f<80;f++){var M=p[f]=f<16?t.readInt32BE(4*f):s(p[f-3]^p[f-8]^p[f-14]^p[f-16],1),w=a(a(s(e,5),i(f,n,o,l)),a(a(A,M),r(f)));A=l,l=o,o=s(n,30),n=e,e=w}this._a=a(e,c),this._b=a(n,u),this._c=a(o,d),this._d=a(l,g),this._e=a(A,h)},n.prototype._hash=function(){h.length<100&&h.push(this);var e=new t(20);return e.writeInt32BE(0|this._a,l),e.writeInt32BE(0|this._b,A),e.writeInt32BE(0|this._c,c),e.writeInt32BE(0|this._d,u),e.writeInt32BE(0|this._e,d),e},n}},function(t,e,n){(function(t,o){function i(t,n){var o={seen:[],stylize:a};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),p(n)?o.showHidden=n:n&&e._extend(o,n),I(o.showHidden)&&(o.showHidden=!1),I(o.depth)&&(o.depth=2),I(o.colors)&&(o.colors=!1),I(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=r),l(o,t,o.depth)}function r(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function a(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function l(t,n,o){if(t.customInspect&&n&&b(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(o,t);return T(i)||(i=l(t,i,o)),i}var r=A(t,n);if(r)return r;var a=Object.keys(n),p=s(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),m(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(n);if(0===a.length){if(b(n)){var f=n.name?": "+n.name:"";return t.stylize("[Function"+f+"]","special")}if(y(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(N(n))return t.stylize(Date.prototype.toString.call(n),"date");if(m(n))return c(n)}var M="",w=!1,C=["{","}"];if(h(n)&&(w=!0,C=["[","]"]),b(n)){var I=n.name?": "+n.name:"";M=" [Function"+I+"]"}if(y(n)&&(M=" "+RegExp.prototype.toString.call(n)),N(n)&&(M=" "+Date.prototype.toUTCString.call(n)),m(n)&&(M=" "+c(n)),0===a.length&&(!w||0==n.length))return C[0]+M+C[1];if(o<0)return y(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var E;return E=w?u(t,n,o,p,a):a.map(function(e){return d(t,n,o,p,e,w)}),t.seen.pop(),g(E,M,C)}function A(t,e){if(I(e))return t.stylize("undefined","undefined");if(T(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return w(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):f(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function u(t,e,n,o,i){for(var r=[],a=0,s=e.length;a-1&&(s=r?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),I(a)){if(r&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function g(t,e,n){var o=0,i=t.reduce(function(t,e){return o++,e.indexOf("\n")>=0&&o++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function h(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function f(t){return null===t}function M(t){return null==t}function w(t){return"number"==typeof t}function T(t){return"string"==typeof t}function C(t){return"symbol"==typeof t}function I(t){return void 0===t}function y(t){return E(t)&&"[object RegExp]"===x(t)}function E(t){return"object"==typeof t&&null!==t}function N(t){return E(t)&&"[object Date]"===x(t)}function m(t){return E(t)&&("[object Error]"===x(t)||t instanceof Error)}function b(t){return"function"==typeof t}function D(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function x(t){return Object.prototype.toString.call(t)}function v(t){return t<10?"0"+t.toString(10):t.toString(10)}function B(){var t=new Date,e=[v(t.getHours()),v(t.getMinutes()),v(t.getSeconds())].join(":");return[t.getDate(),U[t.getMonth()],e].join(" ")}function L(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var S=/%[sdj%]/g;e.format=function(t){if(!T(t)){for(var e=[],n=0;n=r)return t;switch(t){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(t){return"[Circular]"}default:return t}}),s=o[n];n>>e|t<<32-e}function r(t,e){return t>>>e}function a(t,e,n){return t&e^~t&n}function s(t,e,n){return t&e^t&n^e&n}function l(t){return i(t,2)^i(t,13)^i(t,22)}function A(t){return i(t,6)^i(t,11)^i(t,25)}function c(t){return i(t,7)^i(t,18)^r(t,3)}function u(t){return i(t,17)^i(t,19)^r(t,10)}var d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],g=new Array(64);return o(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,o,i,r,g,h,p,f,M,w=this._w;e=0|this._a,n=0|this._b,o=0|this._c,i=0|this._d,r=0|this._e,g=0|this._f,h=0|this._g,p=0|this._h;for(var T=0;T<64;T++){var C=w[T]=T<16?t.readInt32BE(4*T):u(w[T-2])+w[T-7]+c(w[T-15])+w[T-16];f=p+A(r)+a(r,g,h)+d[T]+C,M=l(e)+s(e,n,o),p=h,h=g,g=r,r=i+f,i=o,o=n,n=e,e=f+M}this._a=e+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=i+this._d|0,this._e=r+this._e|0,this._f=g+this._f|0,this._g=h+this._g|0,this._h=p+this._h|0},n.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},n}},function(t,e,n){var o=n(291).inherits;t.exports=function(t,e){function n(){this.init(),this._w=l,e.call(this,128,112)}function i(t,e,n){return t>>>n|e<<32-n}function r(t,e,n){return t&e^~t&n}function a(t,e,n){return t&e^t&n^e&n}var s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160); return o(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,o,l,A,c,u,d,g,h,p,f,M,w,T,C,I=this._w;e=0|this._a,n=0|this._b,o=0|this._c,l=0|this._d,A=0|this._e,c=0|this._f,u=0|this._g,d=0|this._h,g=0|this._al,h=0|this._bl,p=0|this._cl,f=0|this._dl,M=0|this._el,w=0|this._fl,T=0|this._gl,C=0|this._hl;for(var y=0;y<80;y++){var E,N,m=2*y;if(y<16)E=I[m]=t.readInt32BE(4*m),N=I[m+1]=t.readInt32BE(4*m+4);else{var b=I[m-30],D=I[m-30+1],x=i(b,D,1)^i(b,D,8)^b>>>7,v=i(D,b,1)^i(D,b,8)^i(D,b,7);b=I[m-4],D=I[m-4+1];var B=i(b,D,19)^i(D,b,29)^b>>>6,L=i(D,b,19)^i(b,D,29)^i(D,b,6),S=I[m-14],Q=I[m-14+1],j=I[m-32],U=I[m-32+1];N=v+Q,E=x+S+(N>>>0>>0?1:0),N+=L,E=E+B+(N>>>0>>0?1:0),N+=U,E=E+j+(N>>>0>>0?1:0),I[m]=E,I[m+1]=N}var k=a(e,n,o),R=a(g,h,p),z=i(e,g,28)^i(g,e,2)^i(g,e,7),Y=i(g,e,28)^i(e,g,2)^i(e,g,7),O=i(A,M,14)^i(A,M,18)^i(M,A,9),F=i(M,A,14)^i(M,A,18)^i(A,M,9),H=s[m],V=s[m+1],P=r(A,c,u),G=r(M,w,T),X=C+F,W=d+O+(X>>>0>>0?1:0);X+=G,W=W+P+(X>>>0>>0?1:0),X+=V,W=W+H+(X>>>0>>0?1:0),X+=N,W=W+E+(X>>>0>>0?1:0);var J=Y+R,Z=z+k+(J>>>0>>0?1:0);d=u,C=T,u=c,T=w,c=A,w=M,M=f+X|0,A=l+W+(M>>>0>>0?1:0)|0,l=o,f=p,o=n,p=h,n=e,h=g,g=X+J|0,e=W+Z+(g>>>0>>0?1:0)|0}this._al=this._al+g|0,this._bl=this._bl+h|0,this._cl=this._cl+p|0,this._dl=this._dl+f|0,this._el=this._el+M|0,this._fl=this._fl+w|0,this._gl=this._gl+T|0,this._hl=this._hl+C|0,this._a=this._a+e+(this._al>>>0>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0>>0?1:0)|0,this._c=this._c+o+(this._cl>>>0

>>0?1:0)|0,this._d=this._d+l+(this._dl>>>0>>0?1:0)|0,this._e=this._e+A+(this._el>>>0>>0?1:0)|0,this._f=this._f+c+(this._fl>>>0>>0?1:0)|0,this._g=this._g+u+(this._gl>>>0>>0?1:0)|0,this._h=this._h+d+(this._hl>>>0>>0?1:0)|0},n.prototype._hash=function(){function e(t,e,o){n.writeInt32BE(t,o),n.writeInt32BE(e,o+4)}var n=new t(64);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),e(this._g,this._gl,48),e(this._h,this._hl,56),n},n}},function(t,e,n){function o(t,e){t[e>>5]|=128<>>9<<4)+14]=e;for(var n=1732584193,o=-271733879,i=-1732584194,c=271733878,u=0;u>16)+(e>>16)+(n>>16);return o<<16|65535&n}function c(t,e){return t<>>32-e}var u=n(297);t.exports=function(t){return u.hash(t,o,16)}},function(t,e,n){(function(e){function n(t,n){if(t.length%r!==0){var o=t.length+(r-t.length%r);t=e.concat([t,a],o)}for(var i=[],s=n?t.readInt32BE:t.readInt32LE,l=0;l>>32-e}function l(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var o=p(t),i=8*t.length,r=8*t.length;o[i>>>5]|=128<<24-i%32,o[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);for(var a=0;a>>24)|4278255360&(s<<24|s>>>8)}var l=f(n);return new e(l)}t.exports=l;var A=[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],c=[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],u=[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],d=[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],g=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0],p=function(t){for(var e=[],n=0,o=0;n>>5]|=t[n]<<24-o%32;return e},f=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},M=function(t,e,l){for(var p=0;p<16;p++){var f=l+p,M=e[f];e[f]=16711935&(M<<8|M>>>24)|4278255360&(M<<24|M>>>8)}var w,T,C,I,y,E,N,m,b,D;E=w=t[0],N=T=t[1],m=C=t[2],b=I=t[3],D=y=t[4];for(var x,p=0;p<80;p+=1)x=w+e[l+A[p]]|0,x+=p<16?n(T,C,I)+g[0]:p<32?o(T,C,I)+g[1]:p<48?i(T,C,I)+g[2]:p<64?r(T,C,I)+g[3]:a(T,C,I)+g[4],x|=0,x=s(x,u[p]),x=x+y|0,w=y,y=I,I=s(C,10),C=T,T=x,x=E+e[l+c[p]]|0,x+=p<16?a(N,m,b)+h[0]:p<32?r(N,m,b)+h[1]:p<48?i(N,m,b)+h[2]:p<64?o(N,m,b)+h[3]:n(N,m,b)+h[4],x|=0,x=s(x,d[p]),x=x+D|0,E=D,D=b,b=s(m,10),m=N,N=x;x=t[1]+C+b|0,t[1]=t[2]+I+D|0,t[2]=t[3]+y+E|0,t[3]=t[4]+w+N|0,t[4]=t[0]+T+m|0,t[0]=x}}).call(e,n(280).Buffer)},function(t,e,n){(function(e){function o(t,n){if(!(this instanceof o))return new o(t,n);this._opad=l,this._alg=t;var a="sha512"===t?128:64;n=this._key=e.isBuffer(n)?n:new e(n),n.length>a?n=i(t).update(n).digest():n.length(Math.pow(2,32)-1)*s))throw new TypeError("keylen exceeds maximum length");h.copy(A,0,0,s);for(var p=1;pe&&(e=i)}}),t.css("z-index",e+1)})}},{key:"render",value:function(){var t=this,e=[];this.props.buttons.forEach(function(n,o){e.push(A.default.createElement("button",{type:"button",key:o,className:n.className,onClick:function(e){n.click(t.props.dispatch)}},A.default.createElement("i",{className:n.icon})," ",n.name))});var n=this.props.large,o="modal-dialog"+(n?" modal-lg":"");return A.default.createElement("div",{className:"modal fade",tabIndex:"-1",role:"dialog","aria-hidden":"true",style:{overflow:"auto"}},A.default.createElement("div",{className:o},A.default.createElement("div",{className:"modal-content"},A.default.createElement("div",{className:"modal-header"},A.default.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-hidden":"true"},"×"),A.default.createElement("h3",{className:"modal-title",id:"myModalLabel",style:{wordWrap:"break-word"}},this.props.title,A.default.createElement("div",{className:"text-danger",style:{fontSize:"12pt"}},this.props.info?this.props.info:null))),A.default.createElement("div",{className:"modal-body",style:{padding:"10px"}},this.props.body),A.default.createElement("div",{className:"modal-footer"},e))))}}]),e}(l.Component);e.default=d},,,,,,,,,function(t,e,n){var o=n(316);"string"==typeof o&&(o=[[t.id,o,""]]);n(9)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,"/*!\r\n * Handsontable 0.11.2\r\n * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs\r\n *\r\n * Copyright 2012-2014 Marcin Warpechowski\r\n * Licensed under the MIT license.\r\n * http://handsontable.com/\r\n *\r\n * Date: Thu Sep 11 2014 23:41:54 GMT+0200 (CEST)\r\n */.handsontable,.handsontable .relative{position:relative}.handsontable.htAutoColumnSize{visibility:hidden;left:0;position:absolute;top:0}.handsontable div,.handsontable table,.handsontable tbody,.handsontable td,.handsontable th,.handsontable thead{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable table.htCore{border-collapse:separate;position:relative;border-spacing:0;margin:0;border-width:0;table-layout:fixed;width:0;outline-width:0;max-width:none;max-height:none}.handsontable col,.handsontable col.rowHeader{width:50px}.handsontable td,.handsontable th{border-right:1px solid #ccc;border-bottom:1px solid #ccc;height:22px;empty-cells:show;line-height:21px;padding:0 4px;background-color:#fff;vertical-align:top;overflow:hidden;outline-width:0;white-space:pre-line}.handsontable td.htInvalid{background-color:#ff4c42!important}.handsontable td.htNoWrap{white-space:nowrap}.handsontable th:last-child{border-right:1px solid #ccc;border-bottom:1px solid #ccc}.handsontable th.htNoFrame,.handsontable th:first-child.htNoFrame,.handsontable tr:first-child th.htNoFrame{border-left-width:0;background-color:#fff;border-color:#fff}.handsontable .htNoFrame+td,.handsontable .htNoFrame+th,.handsontable td:first-child,.handsontable th:first-child{border-left:1px solid #ccc}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top:1px solid #ccc}.handsontable thead tr.lastChild th,.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable th{background-color:#eee;color:#222;text-align:center;font-weight:400;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#ccc}.handsontable thead th .relative{padding:2px 4px}.handsontable .manualColumnMover{left:0;width:5px;height:25px}.handsontable .manualColumnMover,.handsontable .manualRowMover{position:fixed;top:0;background-color:transparent;z-index:999;cursor:move}.handsontable .manualRowMover{left:-4px;height:5px;width:50px}.handsontable .manualColumnMoverGuide,.handsontable .manualRowMoverGuide{position:fixed;left:0;top:0;background-color:#ccc;width:25px;height:25px;opacity:.7;display:none}.handsontable .manualColumnMoverGuide.active,.handsontable .manualRowMoverGuide.active{display:block}.handsontable .manualColumnMover.active,.handsontable .manualColumnMover:hover,.handsontable .manualRowMover.active,.handsontable .manualRowMover:hover{background-color:#88f}.handsontable .manualColumnResizer{position:fixed;top:0;cursor:col-resize;z-index:110;width:5px;height:25px}.handsontable .manualRowResizer{position:fixed;left:0;cursor:row-resize;z-index:110;height:5px;width:50px}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover,.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{background-color:#aab}.handsontable .manualColumnResizerGuide{position:fixed;right:0;top:0;background-color:#aab;display:none;width:0;border-right:1px dashed #777;margin-left:5px}.handsontable .manualRowResizerGuide{position:fixed;left:0;bottom:0;background-color:#aab;display:none;height:0;border-bottom:1px dashed #777;margin-top:5px}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block}.handsontable .columnSorting:hover{text-decoration:underline;cursor:pointer}.handsontable .wtBorder{position:absolute;font-size:0}.handsontable .wtBorder.hidden{display:none!important}.handsontable td.area{background-color:#eef4ff}.handsontable .wtBorder.corner{font-size:0;cursor:crosshair}.handsontable .htBorder.htFillBorder{background:red;width:1px;height:1px}.handsontableInput{border:2px solid #5292f7;outline-width:0;margin:0;padding:1px 4px 0 2px;font-family:inherit;line-height:inherit;font-size:inherit;box-shadow:1px 2px 5px rgba(0,0,0,.4);resize:none;display:inline-block;color:#000;border-radius:0;background-color:#fff}.handsontableInputHolder{position:absolute;top:0;left:0;z-index:100}.htSelectEditor{-webkit-appearance:menulist-button!important;position:absolute}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu :after{content:'\\25B6';color:#777;position:absolute;right:5px}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable .htAutocompleteArrow{float:right;font-size:10px;color:#eee;cursor:default;width:16px;text-align:center}.handsontable td .htAutocompleteArrow:hover{color:#777}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htNumeric{text-align:right}.htCommentCell{position:relative}.htCommentCell:after{content:'';position:absolute;top:0;right:0;border-left:6px solid transparent;border-top:6px solid red}.handsontable .handsontable .wtHider{padding:0 0 5px}.handsontable .handsontable table{box-shadow:1px 2px 5px rgba(0,0,0,.4)}.handsontable .autocompleteEditor.handsontable{padding-right:17px}.handsontable .autocompleteEditor.handsontable.htMacScroll{padding-right:15px}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{border:1px solid #ccc;border-collapse:separate;background:#fff}.handsontable.listbox td,.handsontable.listbox th,.handsontable.listbox tr:first-child td,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th{border-width:0}.handsontable.listbox td,.handsontable.listbox th{white-space:nowrap;text-overflow:ellipsis}.handsontable.listbox td.htDimmed{cursor:default;color:inherit;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr:hover td,.handsontable.listbox tr td.current{background:#eee}.htContextMenu{display:none;position:absolute;z-index:1060}.htContextMenu .ht_clone_corner,.htContextMenu .ht_clone_left,.htContextMenu .ht_clone_top{display:none}.ht_clone_top{z-index:101}.ht_clone_left{z-index:102}.ht_clone_corner{z-index:103}.htContextMenu table.htCore{outline:1px solid #bbb}.htContextMenu .wtBorder{visibility:hidden}.htContextMenu table tbody tr td{background:#fff;border-width:0;padding:4px 6px 0;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.htContextMenu table tbody tr td:first-child{border:0}.htContextMenu table tbody tr td.htDimmed{font-style:normal;color:#323232}.htContextMenu table tbody tr td.current{background:#e9e9e9}.htContextMenu table tbody tr td.htSeparator{border-top:1px solid #bbb;height:0;padding:0}.htContextMenu table tbody tr td.htDisabled{color:#999}.htContextMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htContextMenu table tbody tr td div{padding-left:10px}.htContextMenu table tbody tr td div span.selected{margin-top:-2px;position:absolute;left:4px}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.htBordered{border-width:1px}.htBordered.htTopBorderSolid{border-top-style:solid;border-top-color:#000}.htBordered.htRightBorderSolid{border-right-style:solid;border-right-color:#000}.htBordered.htBottomBorderSolid{border-bottom-style:solid;border-bottom-color:#000}.htBordered.htLeftBorderSolid{border-left-style:solid;border-left-color:#000}.htCommentTextArea{background-color:#fffacd;box-shadow:1px 1px 2px #bbb;font-family:Arial;-webkit-box-shadow:1px 1px 2px #bbb;-moz-box-shadow:1px 1px 2px #bbb}.wtDebugHidden{display:none}.wtDebugVisible{display:block;-webkit-animation-duration:.5s;-webkit-animation-name:wtFadeInFromNone;animation-duration:.5s;animation-name:wtFadeInFromNone}@keyframes wtFadeInFromNone{0%{display:none;opacity:0}1%{display:block;opacity:0}to{display:block;opacity:1}}@-webkit-keyframes wtFadeInFromNone{0%{display:none;opacity:0}1%{display:block;opacity:0}to{display:block;opacity:1}}",""])},function(t,e,n){var o=n(318);"string"==typeof o&&(o=[[t.id,o,""]]);n(9)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".bootstrap-table .table{margin-bottom:0!important;border-bottom:1px solid #ddd;border-collapse:collapse!important;border-radius:1px}.bootstrap-table .table,.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td{padding:8px!important}.fixed-table-container{position:relative;clear:both;border:1px solid #ddd;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px}.fixed-table-footer,.fixed-table-header{height:37px;overflow:hidden;border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0}.fixed-table-header{border-bottom:1px solid #ddd}.fixed-table-footer{border-top:1px solid #ddd}.fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.fixed-table-container table{width:100%}.fixed-table-container thead th{height:0;padding:0;margin:0;border-left:1px solid #ddd}.fixed-table-container thead th:first-child{border-left:none;border-top-left-radius:4px;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px}.fixed-table-container thead th .th-inner{padding:8px;line-height:24px;vertical-align:top;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fixed-table-container thead th .sortable{cursor:pointer}.fixed-table-container tbody td{border-left:1px solid #ddd}.fixed-table-container tbody tr:first-child td{border-top:none}.fixed-table-container tbody td:first-child{border-left:none}.fixed-table-container tbody .selected td{background-color:#f5f5f5}.fixed-table-container .bs-checkbox{text-align:center}.fixed-table-container .bs-checkbox .th-inner{padding:8px 0}.fixed-table-container input[type=checkbox],.fixed-table-container input[type=radio]{margin:0 auto!important}.fixed-table-container .no-records-found{text-align:center}.fixed-table-pagination .pagination,.fixed-table-pagination .pagination-detail{margin-top:10px;margin-bottom:10px}.fixed-table-pagination .pagination a{padding:6px 12px;line-height:1.428571429}.fixed-table-pagination .pagination-info{line-height:34px;margin-right:5px}.fixed-table-pagination .btn-group{position:relative;display:inline-block;vertical-align:middle}.fixed-table-pagination .dropup .dropdown-menu{margin-bottom:0}.fixed-table-pagination .page-list{display:inline-block}.fixed-table-toolbar .columns-left{margin-right:5px}.fixed-table-toolbar .columns-right{margin-left:5px}.fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.428571429}.fixed-table-toolbar .bars,.fixed-table-toolbar .columns,.fixed-table-toolbar .search{position:relative;margin-top:10px;margin-bottom:10px;line-height:34px}.fixed-table-pagination li.disabled a{pointer-events:none;cursor:default}.fixed-table-loading{display:none;position:absolute;top:42px;right:0;bottom:0;left:0;z-index:99;background-color:#fff;text-align:center}.fixed-table-body .card-view .title{font-weight:700;display:inline-block;min-width:30%;text-align:left!important}.fixed-table-body thead th .th-inner,.table td,.table th{box-sizing:border-box}.table td,.table th{vertical-align:middle}.fixed-table-toolbar .dropdown-menu{text-align:left;max-height:300px;overflow:auto}.fixed-table-toolbar .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.fixed-table-toolbar .btn-group>.btn-group>.btn{border-radius:0}.fixed-table-toolbar .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.fixed-table-toolbar .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.bootstrap-table .table thead>tr>th{padding:0;margin:0}.pull-right .dropdown-menu{right:0;left:auto}p.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden}",""])},function(t,e,n){var o=n(320);"string"==typeof o&&(o=[[t.id,o,""]]);n(9)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".nav-header{display:block;padding:3px 15px;font-size:11px;font-weight:700;line-height:20px;color:#999;text-shadow:0 1px 0 hsla(0,0%,100%,.5);text-transform:uppercase}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;*border-right-width:2px;*border-bottom-width:2px;border-radius:6px;box-shadow:0 5px 10px rgba(0,0,0,.2);background-clip:padding-box;text-align:left}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;*border-bottom:1px solid #fff}.dropdown-menu a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:20px;color:#333;white-space:nowrap;text-decoration:none}.dropdown-menu li>a:focus,.dropdown-menu li>a:hover,.dropdown-submenu:hover>a{filter:progid: dximagetransform.microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0077b3',GradientType=0)}.dropdown-menu .active>a,.dropdown-menu .active>a:hover,.dropdown-menu li>a:focus,.dropdown-menu li>a:hover,.dropdown-submenu:hover>a{color:#fff;text-decoration:none;background-color:#08c;background-color:#0081c2;background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:linear-gradient(180deg,#08c,#0077b3);background-repeat:repeat-x}.dropdown-menu .active>a,.dropdown-menu .active>a:hover{background-image:-o-linear-gradient(top,#08c,#0077b3);outline:0}.dropdown-menu .disabled>a,.dropdown-menu .disabled>a:hover{color:#999}.dropdown-menu .disabled>a:hover{text-decoration:none;cursor:default;background-color:transparent}.open{*z-index:1000}.open>.dropdown-menu{display:block}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:\"\\2191\"}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;border-radius:0 6px 6px 6px}.dropdown-submenu>.dropdown-menu.drop-left{left:-80%}.dropdown-submenu:hover .dropdown-menu{display:block}.dropdown-submenu>a:after{display:block;float:right;width:0;height:0;margin-top:5px;margin-right:-10px;border-color:transparent;border-left-color:#ccc;border-style:solid;border-width:5px 0 5px 5px;content:\" \"}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown .dropdown-menu .nav-header{padding-right:20px;padding-left:20px}.dropdown-context .nav-header{cursor:default}.dropdown-context-up:before,.dropdown-context:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,.2);content:''}.dropdown-context-up:after,.dropdown-context:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:''}.dropdown-context-up:after,.dropdown-context-up:before{top:auto;bottom:-7px;z-index:9999}.dropdown-context-up:before{border-right:7px solid transparent;border-top:7px solid #ccc;border-bottom:none;border-left:7px solid transparent}.dropdown-context-up:after{border-right:6px solid transparent;border-top:6px solid #fff;border-left:6px solid transparent;border-bottom:none}.dropdown-context-sub:after,.dropdown-context-sub:before,.dropdown-context .dropdown-submenu:hover .dropdown-menu,.dropdown-context .dropdown-submenu:hover>.dropdown-menu{display:none}.compressed-context a{padding-left:14px;padding-top:0;padding-bottom:0;font-size:13px}.compressed-context .divider{margin:5px 1px}.compressed-context .nav-header{padding:1px 13px}",""]); },function(t,e,n){var o=n(322);"string"==typeof o&&(o=[[t.id,o,""]]);n(9)(o,{});o.locals&&(t.exports=o.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".rule-delete{color:#f44336;vertical-align:text-top;cursor:pointer}.rule-text-editor{width:260px;display:inline-block;height:26px;padding:3px}.rule-property{padding-right:10px;padding-left:10px;line-height:28px;display:inline-block;border:1px solid gray;margin-left:5px}.rule-add-property{cursor:pointer;padding-left:10px;line-height:30px;color:blue}.rule-property-del{padding:5px;cursor:pointer;color:#ff0600}.rule-add-action{color:blue;cursor:pointer;padding-left:5px;padding-bottom:5px}.rule-action{padding:1px;line-height:27px}.rule-delete-action{font-size:10pt;cursor:pointer;color:#ff9800}.rule-join-node{color:#795548;font-size:10pt;vertical-align:text-top;margin-left:2px}.rule-join-container{border:1px solid #999;padding:1px;background:#fff}",""])},function(t,e){"use strict";!function(t){window.URule||(window.URule={}),URule.setDomContent=function(t,e){navigator.userAgent.indexOf("Firefox")>0?t.prop("textContent",e):t.prop("innerText",e)},URule.getDomContent=function(t){return navigator.userAgent.indexOf("Firefox")>0?t.prop("textContent"):t.prop("innerText")}}($)},function(t,e,n){var o,i,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};window.Handsontable={plugins:{},helper:{}},function(t,n,o){"use strict";function i(){this.refCounter=0,this.init()}function a(){function t(){var t=this;t._registerTimeout(setTimeout(function(){t.updateSettings({observeChanges:!0})},0))}function e(t){return function(e,n){return e[1]===n[1]?0:null===e[1]?1:null===n[1]?-1:e[1]n[1]?t?1:-1:0}}function n(t){return function(e,n){if(e[1]===n[1])return 0;if(null===e[1])return 1;if(null===n[1])return-1;var o=new Date(e[1]),i=new Date(n[1]);return oi?t?1:-1:0}}function i(t){return"undefined"!=typeof t.sortColumn}var r=this;this.init=function(e){var n,o,i=this,a=i.getSettings().columnSorting;if(i.sortingEnabled=!!a,i.sortingEnabled){i.sortIndex=[];var A=s.call(i);"undefined"!=typeof A?(n=A.sortColumn,o=A.sortOrder):(n=a.column,o=a.sortOrder),r.sortByColumn.call(i,n,o),i.sort=function(){var t=Array.prototype.slice.call(arguments);return r.sortByColumn.apply(i,t)},"undefined"==typeof i.getSettings().observeChanges&&t.call(i),"afterInit"==e&&(l.call(i),i.addHook("afterCreateRow",r.afterCreateRow),i.addHook("afterRemoveRow",r.afterRemoveRow),i.addHook("afterLoadData",r.init))}else delete i.sort,i.removeHook("afterCreateRow",r.afterCreateRow),i.removeHook("afterRemoveRow",r.afterRemoveRow),i.removeHook("afterLoadData",r.init)},this.setSortingColumn=function(t,e){var n=this;return"undefined"==typeof t?(delete n.sortColumn,void delete n.sortOrder):(n.sortColumn===t&&"undefined"==typeof e?n.sortOrder=!n.sortOrder:n.sortOrder="undefined"==typeof e||e,void(n.sortColumn=t))},this.sortByColumn=function(t,e){var n=this;r.setSortingColumn.call(n,t,e),"undefined"!=typeof n.sortColumn&&(o.hooks.run(n,"beforeColumnSort",n.sortColumn,n.sortOrder),r.sort.call(n),n.render(),a.call(n),o.hooks.run(n,"afterColumnSort",n.sortColumn,n.sortOrder))};var a=function(){var t=this,e={};"undefined"!=typeof t.sortColumn&&(e.sortColumn=t.sortColumn),"undefined"!=typeof t.sortOrder&&(e.sortOrder=t.sortOrder),(e.hasOwnProperty("sortColumn")||e.hasOwnProperty("sortOrder"))&&o.hooks.run(t,"persistentStateSave","columnSorting",e)},s=function(){var t=this,e={};return o.hooks.run(t,"persistentStateLoad","columnSorting",e),e.value},l=function(){function t(){var t=n.view.TBODY.querySelector("tr").querySelectorAll("th");return t.length}function e(e){var n=o.Dom.closest(e,"TH");return o.Dom.index(n)-t()}var n=this;n.rootElement.on("click.handsontable",".columnSorting",function(t){if(o.Dom.hasClass(t.target,"columnSorting")){var i=e(t.target);r.sortByColumn.call(n,i)}})};this.sort=function(){var t=this;if("undefined"!=typeof t.sortOrder){t.sortingEnabled=!1,t.sortIndex.length=0;for(var o=this.colOffset(),i=0,r=this.countRows()-t.getSettings().minSpareRows;i=t&&(n.sortIndex[o][0]+=e);for(var o=0;oo&&(n.sortIndex[s][0]-=e);a.call(n)}},this.afterChangeSort=function(t){var e=this,n=!1,o={};if(t){for(var i=0;i1&&i(n,a,e),s(),r()}}t(document).on("mousedown.htCommment",o.helper.proxy(a))},s=function(){t(document).off("mousedown.htCommment"),t(document).on("mouseover.htCommment",o.helper.proxy(c))},l=function(t,n){var i=e.view.wt.wtTable.getCell(t.from),r=o.Dom.offset(i),s=e.getColWidth(t.from.col);n.style.position="absolute",n.style.left=r.left+s+"px",n.style.top=r.top+"px",n.style.zIndex=2,a(t,n)},A=function(t){var e=document.getElementsByClassName("htComments")[0];if(!e){e=document.createElement("DIV");var n=document.createElement("TEXTAREA");o.Dom.addClass(n,"htCommentTextArea"),e.appendChild(n),o.Dom.addClass(e,"htComments"),document.getElementsByTagName("body")[0].appendChild(e)}return t=t||"",document.getElementsByClassName("htCommentTextArea")[0].value=t,e},c=function(t){if(t.target.className.indexOf("htCommentCell")!=-1){s();var n=e.view.wt.wtTable.getCoords(t.target),i={from:new p(n.row,n.col)};o.Comments.showComment(i)}else"htCommentTextArea"!=t.target.className&&r()};return{init:function(){t(document).on("mouseover.htCommment",o.helper.proxy(c))},showComment:function(t){var n=e.getCellMeta(t.from.row,t.from.col),o="";n.comment&&(o=n.comment);var i=A(o);i.style.display="block",l(t,i)},removeComment:function(t,n){e.removeCellMeta(t,n,"comment"),e.render()},checkSelectionCommentsConsistency:function(){var t=!1,n=e.getSelectedRange().from;return e.getCellMeta(n.row,n.col).comment&&(t=!0),t}}}function l(t){var e,o=function(){n.localStorage[t+"__persistentStateKeys"]=JSON.stringify(e)},i=function(){var o=n.localStorage[t+"__persistentStateKeys"],i="string"==typeof o?JSON.parse(o):void 0;e=i?i:[]},r=function(){e=[],o()};i(),this.saveValue=function(i,r){n.localStorage[t+"_"+i]=JSON.stringify(r),e.indexOf(i)==-1&&(e.push(i),o())},this.loadValue=function(e,o){e="undefined"!=typeof e?e:o;var i=n.localStorage[t+"_"+e];return"undefined"==typeof i?void 0:JSON.parse(i)},this.reset=function(e){n.localStorage.removeItem(t+"_"+e)},this.resetAll=function(){for(var o=0;o=t&&this[n].col<=e&&this[n].col+this[n].colspan-1>=e)return this[n]},t.setInfo=function(t){for(var e=0,n=this.length;eMath.ceil(o.top+o.height)||(t.clientXMath.ceil(o.left+o.width)||void 0)))};A.on("mousemove.border."+e.guid,function(t){r(t)&&(A.off("mousemove.border."+e.guid),i.show())})}})}}function p(t,e){"undefined"!=typeof t&&"undefined"!=typeof e?(this.row=t,this.col=e):(this.row=null,this.col=null)}function f(t,e,n){this.highlight=t,this.from=e,this.to=n}function M(){this.cache=[]}function w(t,e){this.total=t,this.countTH=e}function T(t,e,n,o){var i,r=0;for(g.apply(this,arguments),this.containerSizeFn=e,this.cellSizesSum=0,this.cellSizes=[],this.cellStretch=[],this.cellCount=0,this.visibleCellCount=0,this.remainingSize=0,this.strategy=o;;){if(i=n(r),void 0===i)break;this.cellSizesSum-5&&t.clientX-i<5&&t.clientY-r>-5&&t.clientY-r<5||(i=t.clientX,r=t.clientY,o.Dom.addClass(a,"wtDebugHidden"),o.Dom.removeClass(a,"wtDebugVisible"),clearTimeout(this.lastTimeout),this.lastTimeout=setTimeout(function(){o.Dom.removeClass(a,"wtDebugHidden"),o.Dom.addClass(a,"wtDebugVisible")},1e3)))})}function y(e){var i=this;this.instance=e;var r=[null,null];this.dblClickTimeout=[null,null];var a,s=function(t){var e=i.parentCell(t.target);o.Dom.hasClass(t.target,"corner")?i.instance.getSetting("onCellCornerMouseDown",t,t.target):e.TD&&i.instance.hasSetting("onCellMouseDown")&&i.instance.getSetting("onCellMouseDown",t,e.coords,e.TD,i.instance),2!==t.button&&e.TD&&(r[0]=e.TD,clearTimeout(i.dblClickTimeout[0]),i.dblClickTimeout[0]=setTimeout(function(){r[0]=null},1e3))},l=function(t){if(i.instance.hasSetting("onCellMouseOver")){var e=i.instance.wtTable.TABLE,n=o.Dom.closest(t.target,["TD","TH"],e);n&&n!==a&&o.Dom.isChildOf(n,e)&&(a=n,i.instance.getSetting("onCellMouseOver",t,i.instance.wtTable.getCoords(n),n,i.instance))}},A=function(t){if(2!==t.button){var e=i.parentCell(t.target);e.TD===r[0]&&e.TD===r[1]?(o.Dom.hasClass(t.target,"corner")?i.instance.getSetting("onCellCornerDblClick",t,e.coords,e.TD,i.instance):i.instance.getSetting("onCellDblClick",t,e.coords,e.TD,i.instance),r[0]=null,r[1]=null):e.TD===r[0]&&(r[1]=e.TD,clearTimeout(i.dblClickTimeout[1]),i.dblClickTimeout[1]=setTimeout(function(){r[1]=null},500))}};t(this.instance.wtTable.holder).on("mousedown",s),t(this.instance.wtTable.TABLE).on("mouseover",l),t(this.instance.wtTable.holder).on("mouseup",A),t(n).on("resize."+this.instance.guid,function(){i.instance.draw()})}function E(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+t()+t()}function N(t,e,n){this.offset=t,this.total=e,this.countTH=n}function m(t,e,n){g.apply(this,arguments),this.containerSizeFn=e,this.sizeAtIndex=n,this.cellSizesSum=0,this.cellSizes=[],this.cellCount=0,this.visiblCellCount=0,this.remainingSize=-(1/0),this.maxOuts=10,this.curOuts=this.maxOuts}function b(t){this.instance=t}function D(t){this.instance=t,this.type="corner",this.init(),this.clone=this.makeClone("corner")}function x(t){this.instance=t,this.type="horizontal",this.cellSize=50,this.offset=0,this.init(),this.clone=this.makeClone("left")}function v(t){this.instance=t,this.type="vertical",this.cellSize=this.instance.wtSettings.settings.defaultRowHeight,this.offset,this.total,this.init(),this.clone=this.makeClone("top")}function B(t){this.instance=t,t.update("scrollbarWidth",o.Dom.getScrollbarWidth()),t.update("scrollbarHeight",o.Dom.getScrollbarWidth()),this.vertical=new v(t),this.horizontal=new x(t),this.corner=new D(t),t.getSetting("debug")&&(this.debug=new I(t)),this.registerListeners()}function L(t,e){this.settings=t,this.cellRange=e||null,this.instanceBorders={}}function S(t,e){var n=this;this.instance=t,this.defaults={table:void 0,debug:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,data:void 0,offsetRow:0,fixedColumnsLeft:0,fixedRowsTop:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,width:null,height:null,cellRenderer:function(t,e,i){var r=n.getSetting("data",t,e);o.Dom.fastInnerText(i,void 0===r||null===r?"":r)},columnWidth:50,rowHeight:function(t){return 23},defaultRowHeight:23,selections:null,hideBorderOnMouseDownOver:!1,onCellMouseDown:null,onCellMouseOver:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1},this.settings={};for(var i in this.defaults)if(this.defaults.hasOwnProperty(i))if(void 0!==e[i])this.settings[i]=e[i];else{if(void 0===this.defaults[i])throw new Error('A required setting "'+i+'" was not provided');this.settings[i]=this.defaults[i]}}function Q(t,e){this.instance=t,this.TABLE=e,o.Dom.removeTextNodes(this.TABLE);var n=this.TABLE.parentNode;if(!n||1!==n.nodeType||!o.Dom.hasClass(n,"wtHolder")){var i=document.createElement("DIV");i.className="wtSpreader",n&&n.insertBefore(i,this.TABLE),i.appendChild(this.TABLE)}if(this.spreader=this.TABLE.parentNode,n=this.spreader.parentNode,!n||1!==n.nodeType||!o.Dom.hasClass(n,"wtHolder")){var r=document.createElement("DIV");r.className="wtHider",n&&n.insertBefore(r,this.spreader),r.appendChild(this.spreader)}if(this.hider=this.spreader.parentNode,this.hiderStyle=this.hider.style,this.hiderStyle.position="relative",n=this.hider.parentNode,!n||1!==n.nodeType||!o.Dom.hasClass(n,"wtHolder")){var a=document.createElement("DIV");a.style.position="relative",a.className="wtHolder",t.cloneSource||(a.className+=" ht_master"),n&&n.insertBefore(a,this.hider),a.appendChild(this.hider)}if(this.holder=this.hider.parentNode,this.TBODY=this.TABLE.getElementsByTagName("TBODY")[0],this.TBODY||(this.TBODY=document.createElement("TBODY"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.getElementsByTagName("THEAD")[0],this.THEAD||(this.THEAD=document.createElement("THEAD"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.getElementsByTagName("COLGROUP")[0],this.COLGROUP||(this.COLGROUP=document.createElement("COLGROUP"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.instance.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length){var s=document.createElement("TR");this.THEAD.appendChild(s)}this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.oldCellCache=new M,this.currentCellCache=new M,this.rowFilter=null,this.columnFilter=null,this.columnWidthCache=[]}function j(t){this.wtTable=t,this.instance=t.instance,this.rowFilter=t.rowFilter,this.columnFilter=t.columnFilter,this.TABLE=t.TABLE,this.THEAD=t.THEAD,this.TBODY=t.TBODY,this.COLGROUP=t.COLGROUP,this.utils=j.utils}function U(e){this.instance=e,this.resetSettings();var o=this;t(n).on("resize.walkontable."+this.instance.guid,function(){o.clientHeight=o.getWorkspaceHeight()})}Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e=this.length>>>0,n=Number(arguments[1])||0;for(n=n<0?Math.ceil(n):Math.floor(n),n<0&&(n+=e);n>>0)+(o++ +"__"),e||(this._wmCache=[])};e?i.prototype={set:function(e,n){var o=e[this.name];o&&o[0]===e?o[1]=n:t(e,this.name,{value:[e,n],writable:!0})},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){this.set(t,void 0)}}:i.prototype={set:function(t,e){if("undefined"!=typeof t&&"undefined"!=typeof e){for(var n=0,o=this._wmCache.length;n=0;l--)if(null===e[l])e.splice(l,1);else{var A=e[l][0],c=M.propToCol(e[l][1]),u=I.runHooksAndReturn("modifyCol",c),d=I.getCellMeta(A,u);if("numeric"===d.type&&"string"==typeof e[l][3]&&e[l][3].length>0&&/^-?[\d\s]*(\.|\,)?\d*$/.test(e[l][3])){var g=e[l][3].length;"undefined"==typeof d.language?numeral.language("en"):e[l][3].indexOf(".")===g-3&&e[l][3].indexOf(",")===-1?numeral.language("en"):numeral.language(d.language),e[l][3]=numeral().unformat(e[l][3]||"0")}I.getCellValidator(d)&&(s.addValidatorToQueue(),I.validateCell(e[l][3],d,function(t,n){return function(o){if("boolean"!=typeof o)throw new Error("Validation error: result is not boolean");o===!1&&n.allowInvalid===!1&&(e.splice(t,1),n.valid=!0,--t),s.removeValidatorFormQueue()}}(l,d),n))}s.checkIfQueueIsEmpty()}function l(t,e){var n=t.length-1;if(!(n<0)){for(;0<=n;n--)if(null!==t[n]){if(null!=t[n][2]||null!=t[n][3]){if(h.settings.minSpareRows)for(;t[n][0]>I.countRows()-1;)M.createRow();if("array"===I.dataType&&h.settings.minSpareCols)for(;M.propToCol(t[n][1])>I.countCols()-1;)M.createCol();M.set(t[n][0],t[n][1],t[n][3])}}else t.splice(n,1);I.forceFullRender=!0,w.adjustRowsAndCols(),o.hooks.run(I,"beforeChangeRender",t,e),T.refreshBorders(null,!0),o.hooks.run(I,"afterChange",t,e||"edit")}}function A(e,n,o){return"object"===("undefined"==typeof e?"undefined":r(e))?e:t.isPlainObject(o)?o:[[e,n,o]]}function c(t){if(t.hasOwnProperty("type")){var e,n={};if("object"===r(t.type))e=t.type;else if("string"==typeof t.type&&(e=o.cellTypes[t.type],void 0===e))throw new Error('You declared cell type "'+t.type+'" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');for(var i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(n[i]=e[i]);return n}}function u(t){return o.hooks.execute(I,"modifyRow",t)}function d(t){return o.hooks.execute(I,"modifyCol",t)}function g(){throw new Error("This method cannot be called because this Handsontable instance has been destroyed")}var h,M,w,T,C,I=this,y=function(){},E=t(document.documentElement),N=t(document.body);o.helper.extend(y.prototype,k.prototype),o.helper.extend(y.prototype,i),o.helper.extend(y.prototype,c(i)),this.rootElement=e,this.container=document.createElement("DIV"),this.container.className="htContainer",e.prepend(this.container),this.container=t(this.container),this.guid="ht_"+o.helper.randomString(),this.rootElement[0].id||(this.rootElement[0].id=this.guid),h={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new y,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},w={alter:function(t,e,n,i,r){var a;switch(n=n||1,t){case"insert_row":a=M.createRow(e,n),a&&(T.isSelected()&&h.selRange.from.row>=e?(h.selRange.from.row=h.selRange.from.row+a,T.transformEnd(a,0)):T.refreshBorders());break;case"insert_col":if(a=M.createCol(e,n)){if(o.helper.isArray(I.getSettings().colHeaders)){var s=[e,0];s.length+=a,Array.prototype.splice.apply(I.getSettings().colHeaders,s)}T.isSelected()&&h.selRange.from.col>=e?(h.selRange.from.col=h.selRange.from.col+a,T.transformEnd(0,a)):T.refreshBorders()}break;case"remove_row":M.removeRow(e,n),h.cellSettings.splice(e,n),w.adjustRowsAndCols(),T.refreshBorders();break;case"remove_col":M.removeCol(e,n);for(var l=0,A=M.getAll().length;li-1?(s=i-1,a=!0,A>s&&(A=s)):A>i-1&&(A=i-1,a=!0,s>A&&(s=A)),l>r-1?(l=r-1,a=!0,c>l&&(c=l)):c>r-1&&(c=r-1,a=!0,l>c&&(l=c)),a&&I.selectCell(s,l,A,c)}},populateFromArray:function(t,e,n,i,r){var a,s,l,A,c=[],u={};if(s=e.length,0===s)return!1;var d,g,p,f;switch(r){case"shift_down":for(d=n?n.col-t.col+1:0,g=n?n.row-t.row+1:0,e=o.helper.translateRowsToColumns(e),l=0,A=e.length,p=Math.max(A,d);ln.row||!h.settings.minSpareRows&&u.row>I.countRows()-1||u.row>=h.settings.maxRows);a++){for(u.col=t.col,A=e[a]?e[a].length:0,l=0;ln.col||!h.settings.minSpareCols&&u.col>I.countCols()-1||u.col>=h.settings.maxCols);l++)I.getCellMeta(u.row,u.col).readOnly||c.push([u.row,u.col,e[a][l]]),u.col++,n&&l===A-1&&(l=-1);u.row++,n&&a===s-1&&(a=-1)}I.setDataAtCell(c,null,null,i||"populateFromArray")}}},this.selection=T={inProgress:!1,begin:function(){I.selection.inProgress=!0},finish:function(){var t=I.getSelected();o.hooks.run(I,"afterSelectionEnd",t[0],t[1],t[2],t[3]),o.hooks.run(I,"afterSelectionEndByProp",t[0],I.colToProp(t[1]),t[2],I.colToProp(t[3])),I.selection.inProgress=!1},isInProgress:function(){return I.selection.inProgress},setRangeStart:function(t){o.hooks.run(I,"beforeSetRangeStart",t),h.selRange=new f(t,t,t),T.setRangeEnd(t)},setRangeEnd:function(t,e){o.hooks.run(I,"beforeSetRangeEnd",t),I.selection.begin(),h.selRange.to=t,h.settings.multiSelect||(h.selRange.from=t),I.view.wt.selections.current.clear(),I.view.wt.selections.current.add(h.selRange.highlight),I.view.wt.selections.area.clear(),T.isMultiple()&&(I.view.wt.selections.area.add(h.selRange.from),I.view.wt.selections.area.add(h.selRange.to)),(h.settings.currentRowClassName||h.settings.currentColClassName)&&(I.view.wt.selections.highlight.clear(),I.view.wt.selections.highlight.add(h.selRange.from),I.view.wt.selections.highlight.add(h.selRange.to)),o.hooks.run(I,"afterSelection",h.selRange.from.row,h.selRange.from.col,h.selRange.to.row,h.selRange.to.col),o.hooks.run(I,"afterSelectionByProp",h.selRange.from.row,M.colToProp(h.selRange.from.col),h.selRange.to.row,M.colToProp(h.selRange.to.col)),e!==!1&&I.view.mainViewIsActive()&&I.view.scrollViewport(t),T.refreshBorders()},refreshBorders:function(t,e){e||C.destroyEditor(t),I.view.render(),T.isSelected()&&!e&&C.prepareEditor()},isMultiple:function t(){var t=!(h.selRange.to.col===h.selRange.from.col&&h.selRange.to.row===h.selRange.from.row),e=o.hooks.execute(I,"afterIsMultipleSelection",t);if(t)return e},transformStart:function(t,e,n){var o=new p(t,e);I.runHooks("modifyTransformStart",o),h.selRange.highlight.row+t>I.countRows()-1?n&&h.settings.minSpareRows>0?I.alter("insert_row",I.countRows()):h.settings.autoWrapCol&&(o.row=1-I.countRows(),o.col=h.selRange.highlight.col+o.col==I.countCols()-1?1-I.countCols():1):h.settings.autoWrapCol&&h.selRange.highlight.row+o.row<0&&h.selRange.highlight.col+o.col>=0&&(o.row=I.countRows()-1,o.col=h.selRange.highlight.col+o.col==0?I.countCols()-1:-1),h.selRange.highlight.col+o.col>I.countCols()-1?n&&h.settings.minSpareCols>0?I.alter("insert_col",I.countCols()):h.settings.autoWrapRow&&(o.row=h.selRange.highlight.row+o.row==I.countRows()-1?1-I.countRows():1,o.col=1-I.countCols()):h.settings.autoWrapRow&&h.selRange.highlight.col+o.col<0&&h.selRange.highlight.row+o.row>=0&&(o.row=h.selRange.highlight.row+o.row==0?I.countRows()-1:-1,o.col=I.countCols()-1);var i=I.countRows(),r=I.countCols(),a=new p(h.selRange.highlight.row+o.row,h.selRange.highlight.col+o.col);a.row<0?a.row=0:a.row>0&&a.row>=i&&(a.row=i-1),a.col<0?a.col=0:a.col>0&&a.col>=r&&(a.col=r-1),T.setRangeStart(a)},transformEnd:function(t,e){var n=new p(t,e);I.runHooks("modifyTransformEnd",n);var o=I.countRows(),i=I.countCols(),r=new p(h.selRange.to.row+n.row,h.selRange.to.col+n.col);r.row<0?r.row=0:r.row>0&&r.row>=o&&(r.row=o-1),r.col<0?r.col=0:r.col>0&&r.col>=i&&(r.col=i-1),T.setRangeEnd(r)},isSelected:function(){return null!==h.selRange},inInSelection:function(t){return!!T.isSelected()&&h.selRange.includes(t)},deselect:function(){T.isSelected()&&(I.selection.inProgress=!1,h.selRange=null,I.view.wt.selections.current.clear(),I.view.wt.selections.area.clear(),(h.settings.currentRowClassName||h.settings.currentColClassName)&&I.view.wt.selections.highlight.clear(),C.destroyEditor(),T.refreshBorders(),o.hooks.run(I,"afterDeselect"))},selectAll:function(){h.settings.multiSelect&&(T.setRangeStart(new p(0,0)),T.setRangeEnd(new p(I.countRows()-1,I.countCols()-1),!1))},empty:function(){if(T.isSelected()){var t,e,n=h.selRange.getTopLeftCorner(),o=h.selRange.getBottomRightCorner(),i=[];for(t=n.row;t<=o.row;t++)for(e=n.col;e<=o.col;e++)I.getCellMeta(t,e).readOnly||i.push([t,e,""]);I.setDataAtCell(i)}}},this.init=function(){o.hooks.run(I,"beforeInit"),this.updateSettings(h.settings,!0),this.view=new o.TableView(this),C=new o.EditorManager(I,h,T,M),this.forceFullRender=!0,this.view.render(),"object"===r(h.firstRun)&&(o.hooks.run(I,"afterChange",h.firstRun[0],h.firstRun[1]),h.firstRun=!1),o.hooks.run(I,"afterInit")},this.validateCell=function(t,e,n,i){var r=I.getCellValidator(e);"[object RegExp]"===Object.prototype.toString.call(r)&&(r=function(t){return function(e,n){n(t.test(e))}}(r)),"function"==typeof r?(t=o.hooks.execute(I,"beforeValidate",t,e.row,e.prop,i),I._registerTimeout(setTimeout(function(){return r.call(e,t,function(r){e.valid=r,r=o.hooks.execute(I,"afterValidate",r,t,e.row,e.prop,i),n(r)}),t},0))):(e.valid=!0,n(!0))},this.setDataAtCell=function(t,e,n,o){var i,a,c,u=A(t,e,n),d=[];for(i=0,a=u.length;i0){var r,a;for(n=0;n=0;){for(var o=I.countCols()-1;o>=0;)e.addValidatorToQueue(),I.validateCell(I.getDataAtCell(n,o),I.getCellMeta(n,o),function(){e.removeValidatorFormQueue()},"validateCells"),o--;n--}e.checkIfQueueIsEmpty()},this.getRowHeader=function(t){if(void 0===t){for(var e=[],n=0,o=I.countRows();n=0;){if(e=o.hooks.execute(this,"modifyRow",n),I.isEmptyRow(e))i++;else if(t)break;n--}return i},this.countEmptyCols=function(t){if(I.countRows()<1)return 0;for(var e=I.countCols()-1,n=0;e>=0;){if(I.isEmptyCol(e))n++;else if(t)break;e--}return n},this.isEmptyRow=function(t){return h.settings.isEmptyRow.call(I,t)},this.isEmptyCol=function(t){return h.settings.isEmptyCol.call(I,t)},this.selectCell=function(t,e,n,o,i){if("number"!=typeof t||t<0||t>=I.countRows())return!1;if("number"!=typeof e||e<0||e>=I.countCols())return!1;if("undefined"!=typeof n){if("number"!=typeof n||n<0||n>=I.countRows())return!1;if("number"!=typeof o||o<0||o>=I.countCols())return!1}var r=new p(t,e);return h.selRange=new f(r,r,r),document.activeElement&&document.activeElement!==document.documentElement&&document.activeElement!==document.body&&document.activeElement.blur(),I.listen(),"undefined"==typeof n?T.setRangeEnd(h.selRange.from,i):T.setRangeEnd(new p(n,o),i),I.selection.finish(),!0},this.selectCellByProp=function(t,e,n,o,i){return arguments[1]=M.propToCol(arguments[1]),"undefined"!=typeof arguments[3]&&(arguments[3]=M.propToCol(arguments[3])),I.selectCell.apply(I,arguments)},this.deselectCell=function(){T.deselect()},this.destroy=function(){I._clearTimeouts(),I.view&&I.view.wt.destroy(),I.rootElement.empty(),I.rootElement.removeData("handsontable"),I.rootElement.off(".handsontable"),t(n).off("."+I.guid),E.off("."+I.guid),N.off("."+I.guid),o.hooks.run(I,"afterDestroy"),o.hooks.destroy(I);for(var e in I)I.hasOwnProperty(e)&&("function"==typeof I[e]?"runHooks"!==e&&"runHooksAndReturn"!==e&&(I[e]=g):"guid"!==e&&(I[e]=null));h=null,M=null,w=null,T=null,C=null,I=null,y=null,E=null,N=null},this.getActiveEditor=function(){return C.getActiveEditor()},this.getInstance=function(){return I},this.addHook=function(t,e){o.hooks.add(t,e,I)},this.addHookOnce=function(t,e){o.hooks.once(t,e,I)},this.removeHook=function(t,e){o.hooks.remove(t,e,I)},this.runHooks=function(t,e,n,i,r,a,s){o.hooks.run(I,t,e,n,i,r,a,s)},this.runHooksAndReturn=function(t,e,n,i,r,a,s){return o.hooks.execute(I,t,e,n,i,r,a,s)},this.timeouts=[],this._registerTimeout=function(t){this.timeouts.push(t)},this._clearTimeouts=function(){for(var t=0,e=this.timeouts.length;t1)for(e=1,n=arguments.length;e-1)return t;t=t.parentNode}return null},o.Dom.isChildOf=function(t,e){for(var n=t.parentNode;null!=n;){if(n==e)return!0;n=n.parentNode}return!1},o.Dom.index=function(t){for(var e=0;t=t.previousSibling;)++e;return e},document.documentElement.classList?(o.Dom.hasClass=function(t,e){return t.classList.contains(e)},o.Dom.addClass=function(t,e){t.classList.add(e)},o.Dom.removeClass=function(t,e){t.classList.remove(e)}):(o.Dom.hasClass=function(t,e){return t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},o.Dom.addClass=function(t,e){""==t.className?t.className=e:this.hasClass(t,e)||(t.className+=" "+e)},o.Dom.removeClass=function(t,e){if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ").trim()}}),o.Dom.removeTextNodes=function(t,e){if(3===t.nodeType)e.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,o=n.length-1;o>=0;o--)this.removeTextNodes(n[o],t)},o.Dom.empty=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},o.Dom.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,o.Dom.fastInnerHTML=function(t,e){this.HTML_CHARACTERS.test(e)?t.innerHTML=e:this.fastInnerText(t,e)},document.createTextNode("test").textContent?o.Dom.fastInnerText=function(t,e){var n=t.firstChild;n&&3===n.nodeType&&null===n.nextSibling?n.textContent=e:(this.empty(t),t.appendChild(document.createTextNode(e)))}:o.Dom.fastInnerText=function(t,e){var n=t.firstChild;n&&3===n.nodeType&&null===n.nextSibling?n.data=e:(this.empty(t),t.appendChild(document.createTextNode(e)))},o.Dom.isVisible=function(t){for(var e=t;e!==document.documentElement;){if(null===e)return!1;if(11===e.nodeType){if(e.host){if(e.host.impl)return o.Dom.isVisible(e.host.impl);if(e.host)return o.Dom.isVisible(e.host);throw new Error("Lost in Web Components world")}return!1}if("none"===e.style.display)return!1;e=e.parentNode}return!0},o.Dom.offset=function(t){if(this.hasCaptionProblem()&&t.firstChild&&"CAPTION"===t.firstChild.nodeName){var e=t.getBoundingClientRect();return{top:e.top+(n.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0),left:e.left+(n.pageXOffset||document.documentElement.scrollLeft)-(document.documentElement.clientLeft||0)}}for(var o=t.offsetLeft,i=t.offsetTop,r=t;(t=t.offsetParent)&&t!==document.body;)o+=t.offsetLeft,i+=t.offsetTop,r=t;return r&&"fixed"===r.style.position&&(o+=n.pageXOffset||document.documentElement.scrollLeft,i+=n.pageYOffset||document.documentElement.scrollTop),{left:o,top:i}},o.Dom.getWindowScrollTop=function(){var t=n.scrollY;return void 0==t&&(t=document.documentElement.scrollTop),t},o.Dom.getWindowScrollLeft=function(){var t=n.scrollX;return void 0==t&&(t=document.documentElement.scrollLeft),t},o.Dom.getScrollTop=function(t){return t===n?o.Dom.getWindowScrollTop(t):t.scrollTop},o.Dom.getScrollLeft=function(t){return t===n?o.Dom.getWindowScrollLeft(t):t.scrollLeft},o.Dom.getComputedStyle=function(t){return t.currentStyle||document.defaultView.getComputedStyle(t)},o.Dom.outerWidth=function(t){return t.offsetWidth},o.Dom.outerHeight=function(t){return this.hasCaptionProblem()&&t.firstChild&&"CAPTION"===t.firstChild.nodeName?t.offsetHeight+t.firstChild.offsetHeight:t.offsetHeight},o.Dom.innerHeight=function(t){return t.clientHeight},o.Dom.innerWidth=function(t){return t.innerWidth},function(){function t(){var t=document.createElement("TABLE");t.style.borderSpacing=0,t.style.borderWidth=0,t.style.padding=0;var e=document.createElement("TBODY");t.appendChild(e),e.appendChild(document.createElement("TR")),e.firstChild.appendChild(document.createElement("TD")),e.firstChild.firstChild.innerHTML="t
t";var o=document.createElement("CAPTION");o.innerHTML="c
c
c
c",o.style.padding=0,o.style.margin=0,t.insertBefore(o,e),document.body.appendChild(t),n=t.offsetHeight<2*t.lastChild.offsetHeight,document.body.removeChild(t)}function e(){var t=document.createElement("p");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),(document.body||document.documentElement).appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var o=t.offsetWidth;return n==o&&(o=e.clientWidth),(document.body||document.documentElement).removeChild(e),n-o}var n;o.Dom.hasCaptionProblem=function(){return void 0===n&&t(),n},o.Dom.getCaretPosition=function(t){if(t.selectionStart)return t.selectionStart;if(document.selection){t.focus();var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange(),o=n.duplicate();return n.moveToBookmark(e.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0},o.Dom.getSelectionEndPosition=function(t){if(t.selectionEnd)return t.selectionEnd;if(document.selection){var e=document.selection.createRange();if(null==e)return 0;var n=t.createTextRange();return n.text.indexOf(e.text)+e.text.length}},o.Dom.setCaretPosition=function(t,e,n){if(void 0===n&&(n=e),t.setSelectionRange)t.focus(),t.setSelectionRange(e,n);else if(t.createTextRange){var o=t.createTextRange();o.collapse(!0),o.moveEnd("character",n),o.moveStart("character",e),o.select()}};var i;o.Dom.getScrollbarWidth=function(){return void 0===i&&(i=e()),i}}(),o.TableView=function(e){var i=this,r=t(document.documentElement);this.instance=e,this.settings=e.getSettings(),e.rootElement.data("originalStyle",e.rootElement[0].getAttribute("style")),e.rootElement.addClass("handsontable");var a=document.createElement("TABLE");a.className="htCore",this.THEAD=document.createElement("THEAD"),a.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),a.appendChild(this.TBODY),e.$table=t(a),e.container.prepend(e.$table),e.rootElement.on("mousedown.handsontable",function(t){i.isTextSelectionAllowed(t.target)||(l(),t.preventDefault(),n.focus())}),r.on("keyup."+e.guid,function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()});var s;this.isMouseDown=function(){return s},r.on("mouseup."+e.guid,function(t){e.selection.isInProgress()&&1===t.which&&e.selection.finish(),s=!1,o.helper.isOutsideInput(document.activeElement)&&e.unlisten()}),r.on("mousedown."+e.guid,function(t){var n=t.target;if(!n.shadowRoot){if(n!==i.wt.wtTable.spreader)for(;n!==document.documentElement;){if(null===n)return;if(n===e.rootElement[0])return;n=n.parentNode}i.settings.outsideClickDeselects?e.deselectCell():e.destroyEditor()}}),e.$table.on("selectstart",function(t){i.settings.fragmentSelection||t.preventDefault()});var l=function(){n.getSelection?n.getSelection().empty?n.getSelection().empty():n.getSelection().removeAllRanges&&n.getSelection().removeAllRanges():document.selection&&document.selection.empty()},A=[new L({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return i.settings.fillHandle&&!i.isCellEdited()&&!e.selection.isMultiple()}}}),new L({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return i.settings.fillHandle&&!i.isCellEdited()&&e.selection.isMultiple()}}}),new L({className:"highlight",highlightRowClassName:i.settings.currentRowClassName,highlightColumnClassName:i.settings.currentColClassName}),new L({className:"fill",border:{width:1,color:"red"}})];A.current=A[0],A.area=A[1],A.highlight=A[2],A.fill=A[3];var c={debug:function(){return i.settings.debug},table:a,stretchH:this.settings.stretchH,data:e.getDataAtCell,totalRows:e.countRows,totalColumns:e.countCols,offsetRow:0,fixedColumnsLeft:function(){return i.settings.fixedColumnsLeft},fixedRowsTop:function(){return i.settings.fixedRowsTop},renderAllRows:i.settings.renderAllRows,rowHeaders:function(){return e.hasRowHeaders()?[function(t,e){i.appendRowHeader(t,e)}]:[]},columnHeaders:function(){return e.hasColHeaders()?[function(t,e){i.appendColHeader(t,e)}]:[]},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(t,e,n){var r=i.instance.colToProp(e),a=i.instance.getCellMeta(t,e),s=i.instance.getCellRenderer(a),l=i.instance.getDataAtRowProp(t,r);s(i.instance,n,t,e,r,l,a),o.hooks.run(i.instance,"afterRenderer",n,t,e,r,l,a)},selections:A,hideBorderOnMouseDownOver:function(){return i.settings.fragmentSelection},onCellMouseDown:function(t,n,r,a){e.listen(),i.activeWt=a,s=!0,2===t.button&&e.selection.inInSelection(n)||(t.shiftKey?n.row>=0&&n.col>=0&&e.selection.setRangeEnd(n):n.row<0||n.col<0?(n.row<0&&e.selectCell(0,n.col,e.countRows()-1,n.col),n.col<0&&e.selectCell(n.row,0,n.row,e.countCols()-1)):e.selection.setRangeStart(n)),o.hooks.run(e,"afterOnCellMouseDown",t,n,r),i.activeWt=i.wt},onCellMouseOver:function(t,n,r,a){i.activeWt=a,n.row>=0&&n.col>=0&&s&&e.selection.setRangeEnd(n),o.hooks.run(e,"afterOnCellMouseOver",t,n,r),i.activeWt=i.wt},onCellCornerMouseDown:function(t){t.preventDefault(),o.hooks.run(e,"afterOnCellCornerMouseDown",t)},beforeDraw:function(t){i.beforeRender(t)},onDraw:function(t){i.onDraw(t)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeDrawBorders:function(t,n){e.runHooks("beforeDrawBorders",t,n)}};o.hooks.run(e,"beforeInitWalkontable",c),this.wt=new C(c),this.activeWt=this.wt,t(i.wt.wtTable.spreader).on("mousedown.handsontable, contextmenu.handsontable",function(t){t.target===i.wt.wtTable.spreader&&3===t.which&&t.stopPropagation()}),r.on("click."+e.guid,function(){i.settings.observeDOMVisibility&&i.wt.drawInterrupted&&(i.instance.forceFullRender=!0,i.render())})},o.TableView.prototype.isTextSelectionAllowed=function(t){return!!o.helper.isInput(t)||!(!this.settings.fragmentSelection||!o.Dom.isChildOf(t,this.TBODY))},o.TableView.prototype.isCellEdited=function(){var t=this.instance.getActiveEditor();return t&&t.isOpened()},o.TableView.prototype.beforeRender=function(t){t&&o.hooks.run(this.instance,"beforeRender",this.instance.forceFullRender)},o.TableView.prototype.onDraw=function(t){t&&o.hooks.run(this.instance,"afterRender",this.instance.forceFullRender)},o.TableView.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.rootElement.triggerHandler("render.handsontable")},o.TableView.prototype.getCellAtCoords=function(t){var e=this.wt.wtTable.getCell(t);return e<0?null:e},o.TableView.prototype.scrollViewport=function(t){this.wt.scrollViewport(t)},o.TableView.prototype.appendRowHeader=function(t,e){var n=document.createElement("DIV"),i=document.createElement("SPAN");n.className="relative",i.className="rowHeader",t>-1?o.Dom.fastInnerHTML(i,this.instance.getRowHeader(t)):o.Dom.fastInnerText(i," "),n.appendChild(i),o.Dom.empty(e),e.appendChild(n),o.hooks.run(this.instance,"afterGetRowHeader",t,e)},o.TableView.prototype.appendColHeader=function(t,e){var n=document.createElement("DIV"),i=document.createElement("SPAN");n.className="relative",i.className="colHeader",o.Dom.fastInnerHTML(i,this.instance.getColHeader(t)),n.appendChild(i),o.Dom.empty(e),e.appendChild(n),o.hooks.run(this.instance,"afterGetColHeader",t,e)},o.TableView.prototype.maximumVisibleElementWidth=function(t){this.wt.wtScrollbars.horizontal.readWindowSize();var e=this.wt.wtViewport.getWorkspaceWidth(),n=e-t;return n>0?n:0},o.TableView.prototype.maximumVisibleElementHeight=function(t){this.wt.wtScrollbars.vertical.readWindowSize();var e=this.wt.wtViewport.getWorkspaceHeight(),n=e-t;return n>0?n:0},o.TableView.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},function(t){function e(t){var e,n;n={},e=t,this.getInstance=function(t){return t.guid in n||(n[t.guid]=new e(t)),n[t.guid]}}var n={},o=new WeakMap;t.editors={registerEditor:function(t,i){var r=new e(i);"string"==typeof t&&(n[t]=r),o.set(i,r)},getEditor:function(t,e){var i;if("function"==typeof t)o.get(t)||this.registerEditor(null,t),i=o.get(t);else{if("string"!=typeof t)throw Error('Only strings and functions can be passed as "editor" parameter ');i=n[t]}if(!i)throw Error('No editor registered under name "'+t+'"');return i.getInstance(e)}}}(o),function(e){e.EditorManager=function(n,o,i){var r,a=this,s=t(document),l=e.helper.keyCode,A=!1,c=function(){function t(t){if(n.isListening()&&(o.settings.beforeOnKeyDown&&o.settings.beforeOnKeyDown.call(n,t),e.hooks.run(n,"beforeKeyDown",t),!A&&!t.isImmediatePropagationStopped()&&(o.lastKeyCode=t.keyCode,i.isSelected()))){var s=(t.ctrlKey||t.metaKey)&&!t.altKey;if(!(r.isWaiting()||e.helper.isMetaKey(t.keyCode)||s||a.isEditorOpened()))return void a.openEditor("");var c=t.shiftKey?i.setRangeEnd:i.setRangeStart;switch(t.keyCode){case l.A:if(s){i.selectAll(),t.preventDefault(),t.stopPropagation();break}case l.ARROW_UP:a.isEditorOpened()&&!r.isWaiting()&&a.closeEditorAndSaveChanges(s),d(t.shiftKey),t.preventDefault(),t.stopPropagation();break;case l.ARROW_DOWN:a.isEditorOpened()&&!r.isWaiting()&&a.closeEditorAndSaveChanges(s),g(t.shiftKey),t.preventDefault(),t.stopPropagation();break;case l.ARROW_RIGHT:a.isEditorOpened()&&!r.isWaiting()&&a.closeEditorAndSaveChanges(s),h(t.shiftKey),t.preventDefault(),t.stopPropagation();break;case l.ARROW_LEFT:a.isEditorOpened()&&!r.isWaiting()&&a.closeEditorAndSaveChanges(s),f(t.shiftKey),t.preventDefault(),t.stopPropagation();break;case l.TAB:var M="function"==typeof o.settings.tabMoves?o.settings.tabMoves(t):o.settings.tabMoves;t.shiftKey?i.transformStart(-M.row,-M.col):i.transformStart(M.row,M.col,!0),t.preventDefault(),t.stopPropagation();break;case l.BACKSPACE:case l.DELETE:i.empty(t),a.prepareEditor(),t.preventDefault();break;case l.F2:a.openEditor(),t.preventDefault();break;case l.ENTER:a.isEditorOpened()?(r.state!==e.EditorState.WAITING&&a.closeEditorAndSaveChanges(s),u(t.shiftKey)):n.getSettings().enterBeginsEditing?a.openEditor():u(t.shiftKey),t.preventDefault(),t.stopImmediatePropagation();break;case l.ESCAPE:a.isEditorOpened()&&a.closeEditorAndRestoreOriginalValue(s),t.preventDefault();break;case l.HOME:c(t.ctrlKey||t.metaKey?new p(0,o.selRange.from.col):new p(o.selRange.from.row,0)),t.preventDefault(),t.stopPropagation();break;case l.END:c(t.ctrlKey||t.metaKey?new p(n.countRows()-1,o.selRange.from.col):new p(o.selRange.from.row,n.countCols()-1)),t.preventDefault(),t.stopPropagation();break;case l.PAGE_UP:i.transformStart(-n.countVisibleRows(),0),n.view.wt.scrollVertical(-n.countVisibleRows()),n.view.render(),t.preventDefault(),t.stopPropagation();break;case l.PAGE_DOWN:i.transformStart(n.countVisibleRows(),0),n.view.wt.scrollVertical(n.countVisibleRows()),n.view.render(),t.preventDefault(),t.stopPropagation()}}}function c(t,e,n){"TD"==n.nodeName&&a.openEditor()}function u(t){var e="function"==typeof o.settings.enterMoves?o.settings.enterMoves(event):o.settings.enterMoves;t?i.transformStart(-e.row,-e.col):i.transformStart(e.row,e.col,!0)}function d(t){t?i.transformEnd(-1,0):i.transformStart(-1,0)}function g(t){t?i.transformEnd(1,0):i.transformStart(1,0)}function h(t){t?i.transformEnd(0,1):i.transformStart(0,1)}function f(t){t?i.transformEnd(0,-1):i.transformStart(0,-1)}n.addHook("afterDocumentKeyDown",function(e){t(e)}),s.on("keydown."+n.guid,function(t){n.runHooks("afterDocumentKeyDown",t)}),n.view.wt.update("onCellDblClick",c),n.addHook("afterDestroy",function(){A=!0})};this.destroyEditor=function(t){this.closeEditor(t)},this.getActiveEditor=function(){return r},this.prepareEditor=function(){if(r&&r.isWaiting())return void this.closeEditor(!1,!1,function(t){t&&a.prepareEditor()});var t=o.selRange.highlight.row,i=o.selRange.highlight.col,s=n.colToProp(i),l=n.getCell(t,i),A=n.getDataAtCell(t,i),c=n.getCellMeta(t,i),u=n.getCellEditor(c);r=e.editors.getEditor(u,n),r.prepare(t,i,s,l,A,c)},this.isEditorOpened=function(){return r.isOpened()},this.openEditor=function(t){r.cellProperties.readOnly||r.beginEditing(t)},this.closeEditor=function(t,e,n){r?r.finishEditing(t,e,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(t){return this.closeEditor(!1,t)},this.closeEditorAndRestoreOriginalValue=function(t){return this.closeEditor(!0,t)},c()}}(o),function(t){var e={};t.renderers={registerRenderer:function(t,n){e[t]=n},getRenderer:function(t){if("function"==typeof t)return t;if("string"!=typeof t)throw Error('Only strings and functions can be passed as "renderer" parameter ');if(!(t in e))throw Error('No editor registered under name "'+t+'"');return e[t]}}}(o),o.helper.isPrintableChar=function(t){return 32==t||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90},o.helper.isMetaKey=function(t){var e=o.helper.keyCode,n=[e.ARROW_DOWN,e.ARROW_UP,e.ARROW_LEFT,e.ARROW_RIGHT,e.HOME,e.END,e.DELETE,e.BACKSPACE,e.F1,e.F2,e.F3,e.F4,e.F5,e.F6,e.F7,e.F8,e.F9,e.F10,e.F11,e.F12,e.TAB,e.PAGE_DOWN,e.PAGE_UP,e.ENTER,e.ESCAPE,e.SHIFT,e.CAPS_LOCK,e.ALT];return n.indexOf(t)!=-1},o.helper.isCtrlKey=function(t){var e=o.helper.keyCode;return[e.CONTROL_LEFT,224,e.COMMAND_LEFT,e.COMMAND_RIGHT].indexOf(t)!=-1},o.helper.stringify=function(t){switch("undefined"==typeof t?"undefined":r(t)){ case"string":case"number":return t+"";case"object":return null===t?"":t.toString();case"undefined":return"";default:return t.toString()}},o.helper.spreadsheetColumnLabel=function(t){for(var e,n=t+1,o="";n>0;)e=(n-1)%26,o=String.fromCharCode(65+e)+o,n=parseInt((n-e)/26,10);return o},o.helper.isNumeric=function(t){var e="undefined"==typeof t?"undefined":r(t);return"number"==e?!isNaN(t)&&isFinite(t):"string"==e?!!t.length&&(1==t.length?/\d/.test(t):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(t)):"object"==e&&!(!t||"number"!=typeof t.valueOf()||t instanceof Date)},o.helper.isDescendant=function(t,e){for(var n=e.parentNode;null!=n;){if(n==t)return!0;n=n.parentNode}return!1},o.helper.randomString=function(){return E()},o.helper.inherit=function(t,e){return e.prototype.constructor=e,t.prototype=new e,t.prototype.constructor=t,t},o.helper.extend=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o.helper.getPrototypeOf=function(t){var e;if("object"==r(t.__proto__))e=t.__proto__;else{var n,o=t.constructor;"function"==typeof t.constructor&&(n=o,delete t.constructor&&(o=t.constructor,t.constructor=n)),e=o?o.prototype:null}return e},o.helper.columnFactory=function(t,e){function n(){}o.helper.inherit(n,t);for(var i=0,r=e.length;i-1},o.helper.isOutsideInput=function(t){return o.helper.isInput(t)&&t.className.indexOf("handsontableInput")==-1},o.helper.keyCode={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86},o.helper.isObject=function(t){return"[object Object]"==Object.prototype.toString.call(t)},o.helper.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"==Object.prototype.toString.call(t)},o.helper.pivot=function(t){var e=[];if(!t||0==t.length||!t[0]||0==t[0].length)return e;for(var n=t.length,o=t[0].length,i=0;i=this.instance.countRows())&&(n=this.instance.countRows()),a=n;for(var A=this.instance.getSettings().maxRows;l=this.instance.countCols()){for(var c=0;c-1){var o=n.split("."),i=this.dataSource[t];if(!i)return null;for(var r=0,a=o.length;r-1){for(var r=n.split("."),a=this.dataSource[t],s=0,l=r.length-1;s0&&!a.readOnly){n.isImmediatePropagationStopped()||(n.stopImmediatePropagation(),n.preventDefault());for(var d=0,g=r.length;d0&&parseInt(n.css("border-top-width"),10)>0&&(r+=1),A>0&&parseInt(n.css("border-left-width"),10)>0&&(a+=1),this.textareaParentStyle.top=r+"px",this.textareaParentStyle.left=a+"px";var c=this.TD.offsetTop,u=this.TD.offsetLeft-this.instance.view.wt.wtScrollbars.horizontal.getScrollPosition(),d=n.width(),g=this.instance.view.maximumVisibleElementWidth(u)-10,h=n.outerHeight()-4,p=this.instance.view.maximumVisibleElementHeight(c)-2;parseInt(n.css("border-top-width"),10)>0&&(h-=1),parseInt(n.css("border-left-width"),10)>0&&l>0&&(d-=1),this.TEXTAREA.style.fontSize=e.Dom.getComputedStyle(this.TD).fontSize,this.TEXTAREA.style.fontFamily=e.Dom.getComputedStyle(this.TD).fontFamily,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(h,p),maxHeight:p,minWidth:Math.min(d,g),maxWidth:g}),this.textareaParentStyle.display="block"}},n.prototype.bindEvents=function(){var t=this;this.$textarea.on("cut.editor",function(t){t.stopPropagation()}),this.$textarea.on("paste.editor",function(t){t.stopPropagation()}),this.instance.addHook("afterScrollVertically",function(){t.refreshDimensions()})},e.editors.TextEditor=n,e.editors.registerEditor("text",e.editors.TextEditor)}(o),function(e){var n=e.editors.BaseEditor.prototype.extend();n.prototype.beginEditing=function(){var e=this.TD.querySelector('input[type="checkbox"]');e&&t(e).trigger("click")},n.prototype.finishEditing=function(){},n.prototype.init=function(){},n.prototype.open=function(){},n.prototype.close=function(){},n.prototype.getValue=function(){},n.prototype.setValue=function(){},n.prototype.focus=function(){},e.editors.CheckboxEditor=n,e.editors.registerEditor("checkbox",n)}(o),function(e){var n=e.editors.TextEditor.prototype.extend();n.prototype.init=function(){if(!t.datepicker)throw new Error("jQuery UI Datepicker dependency not found. Did you forget to include jquery-ui.custom.js or its substitute?");e.editors.TextEditor.prototype.init.apply(this,arguments),this.isCellEdited=!1;var n=this;this.instance.addHook("afterDestroy",function(){n.destroyElements()})},n.prototype.createElements=function(){e.editors.TextEditor.prototype.createElements.apply(this,arguments),this.datePicker=document.createElement("DIV"),e.Dom.addClass(this.datePicker,"htDatepickerHolder"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=99,document.body.appendChild(this.datePicker),this.$datePicker=t(this.datePicker);var n=this,o={dateFormat:"yy-mm-dd",showButtonPanel:!0,changeMonth:!0,changeYear:!0,onSelect:function(t){n.setValue(t),n.finishEditing(!1)}};this.$datePicker.datepicker(o),this.$datePicker.on("mousedown",function(t){t.stopPropagation()}),this.hideDatepicker()},n.prototype.destroyElements=function(){this.$datePicker.datepicker("destroy"),this.$datePicker.remove()},n.prototype.open=function(){e.editors.TextEditor.prototype.open.call(this),this.showDatepicker()},n.prototype.finishEditing=function(t,n){this.hideDatepicker(),e.editors.TextEditor.prototype.finishEditing.apply(this,arguments)},n.prototype.showDatepicker=function(){var e=t(this.TD),n=e.offset();this.datePickerStyle.top=n.top+e.height()+"px",this.datePickerStyle.left=n.left+"px";var o={defaultDate:this.originalValue||void 0};t.extend(o,this.cellProperties),this.$datePicker.datepicker("option",o),this.originalValue&&this.$datePicker.datepicker("setDate",this.originalValue),this.datePickerStyle.display="block"},n.prototype.hideDatepicker=function(){this.datePickerStyle.display="none"},e.editors.DateEditor=n,e.editors.registerEditor("date",n)}(o),function(e){var n=e.editors.TextEditor.prototype.extend();n.prototype.createElements=function(){e.editors.TextEditor.prototype.createElements.apply(this,arguments);var n=document.createElement("DIV");n.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(n),this.$htContainer=t(n),this.$htContainer.handsontable()},n.prototype.prepare=function(n,o,i,r,a,s){e.editors.TextEditor.prototype.prepare.apply(this,arguments);var l=this,A={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,cells:function(){return{readOnly:!0}},fillHandle:!1,afterOnCellMouseDown:function(){var t=this.getValue();void 0!==t&&l.setValue(t),l.instance.destroyEditor()}};this.cellProperties.handsontable&&(A=t.extend(A,s.handsontable)),this.$htContainer.handsontable("destroy"),this.$htContainer.handsontable(A)};var o=function(t){if(!t.isImmediatePropagationStopped()){var n,o=this.getActiveEditor(),i=o.$htContainer.handsontable("getInstance");if(t.keyCode==e.helper.keyCode.ARROW_DOWN)if(i.getSelected()){var r=i.getSelected()[0],a=i.countRows()-1;n=Math.min(a,r+1)}else n=0;else if(t.keyCode==e.helper.keyCode.ARROW_UP&&i.getSelected()){var r=i.getSelected()[0];n=r-1}void 0!==n&&(n<0?i.deselectCell():i.selectCell(n,0),t.preventDefault(),t.stopImmediatePropagation(),o.instance.listen(),o.TEXTAREA.focus())}};n.prototype.open=function(){this.instance.addHook("beforeKeyDown",o),e.editors.TextEditor.prototype.open.apply(this,arguments),this.$htContainer.handsontable("render"),this.cellProperties.strict?(this.$htContainer.handsontable("selectCell",0,0),this.TEXTAREA.style.visibility="hidden"):(this.$htContainer.handsontable("deselectCell"),this.TEXTAREA.style.visibility="visible"),e.Dom.setCaretPosition(this.TEXTAREA,0,this.TEXTAREA.value.length)},n.prototype.close=function(){this.instance.removeHook("beforeKeyDown",o),this.instance.listen(),e.editors.TextEditor.prototype.close.apply(this,arguments)},n.prototype.focus=function(){this.instance.listen(),e.editors.TextEditor.prototype.focus.apply(this,arguments)},n.prototype.beginEditing=function(t){var n=this.instance.getSettings().onBeginEditing;n&&n()===!1||e.editors.TextEditor.prototype.beginEditing.apply(this,arguments)},n.prototype.finishEditing=function(t,n){if(this.$htContainer.handsontable("isListening")&&this.instance.listen(),this.$htContainer.handsontable("getSelected")){var o=this.$htContainer.handsontable("getInstance").getValue();void 0!==o&&this.setValue(o)}return e.editors.TextEditor.prototype.finishEditing.apply(this,arguments)},e.editors.HandsontableEditor=n,e.editors.registerEditor("handsontable",n)}(o),function(t){var e=t.editors.HandsontableEditor.prototype.extend();e.prototype.init=function(){t.editors.HandsontableEditor.prototype.init.apply(this,arguments),this.query=null,this.choices=[]},e.prototype.createElements=function(){t.editors.HandsontableEditor.prototype.createElements.apply(this,arguments);var e=function(){return n.navigator.platform.indexOf("Mac")!=-1?"htMacScroll":""};this.$htContainer.addClass("autocompleteEditor"),this.$htContainer.addClass(e())};var o=!1,i=function(e){o=!1;var n=this.getActiveEditor(),i=t.helper.keyCode;(t.helper.isPrintableChar(e.keyCode)||e.keyCode===i.BACKSPACE||e.keyCode===i.DELETE||e.keyCode===i.INSERT)&&n.instance._registerTimeout(setTimeout(function(){n.queryChoices(n.TEXTAREA.value),o=!0},0))};e.prototype.prepare=function(){this.instance.addHook("beforeKeyDown",i),t.editors.HandsontableEditor.prototype.prepare.apply(this,arguments)},e.prototype.open=function(){t.editors.HandsontableEditor.prototype.open.apply(this,arguments),this.TEXTAREA.style.visibility="visible",this.focus();var e=this.$htContainer.handsontable("getInstance"),n=this;e.updateSettings({colWidths:[t.Dom.outerWidth(this.TEXTAREA)-2],afterRenderer:function(t,e,o,i,r){var a=this.getCellMeta(e,o).filteringCaseSensitive===!0,s=a?r.indexOf(this.query):r.toLowerCase().indexOf(n.query.toLowerCase());if(s!=-1){var l=r.substr(s,n.query.length);t.innerHTML=r.replace(l,""+l+"")}}}),o&&(o=!1),n.instance._registerTimeout(setTimeout(function(){n.queryChoices(n.TEXTAREA.value)},0))},e.prototype.close=function(){t.editors.HandsontableEditor.prototype.close.apply(this,arguments)},e.prototype.queryChoices=function(e){if(this.query=e,"function"==typeof this.cellProperties.source){var n=this;this.cellProperties.source(e,function(t){n.updateChoicesList(t)})}else if(t.helper.isArray(this.cellProperties.source)){var o;if(e&&this.cellProperties.filter!==!1){var i=this.cellProperties.filteringCaseSensitive===!0,r=e.toLowerCase();o=this.cellProperties.source.filter(function(t){return i?t.indexOf(e)!=-1:t.toLowerCase().indexOf(r)!=-1})}else o=this.cellProperties.source;this.updateChoicesList(o)}else this.updateChoicesList([])},e.prototype.updateChoicesList=function(e){var n=t.Dom.getCaretPosition(this.TEXTAREA),o=t.Dom.getSelectionEndPosition(this.TEXTAREA);this.choices=e,this.$htContainer.handsontable("loadData",t.helper.pivot([e])),this.$htContainer.handsontable("updateSettings",{height:this.getDropdownHeight()}),this.cellProperties.strict===!0&&this.highlightBestMatchingChoice(),this.instance.listen(),this.TEXTAREA.focus(),t.Dom.setCaretPosition(this.TEXTAREA,n,n!=o?o:void 0)},e.prototype.finishEditing=function(e){e||this.instance.removeHook("beforeKeyDown",i),t.editors.HandsontableEditor.prototype.finishEditing.apply(this,arguments)},e.prototype.highlightBestMatchingChoice=function(){var t=this.findBestMatchingChoice();"undefined"==typeof t&&this.cellProperties.allowInvalid===!1&&(t=0),"undefined"==typeof t?this.$htContainer.handsontable("deselectCell"):this.$htContainer.handsontable("selectCell",t,0)},e.prototype.findBestMatchingChoice=function(){for(var t,e,n,o={},i=this.getValue().length,r=0,a=this.choices.length;r0?t.indexOf(this.getValue()):t===this.getValue()?0:-1,e!=-1&&(n=t.length-e-i,("undefined"==typeof o.indexOfValue||o.indexOfValue>e||o.indexOfValue==e&&o.charsLeft>n)&&(o.indexOfValue=e,o.charsLeft=n,o.index=r));return o.index},e.prototype.getDropdownHeight=function(){var t=this.$htContainer.handsontable("getInstance").getRowHeight(0)||23;return this.choices.length>=10?10*t:this.choices.length*t+8},t.editors.AutocompleteEditor=e,t.editors.registerEditor("autocomplete",e)}(o),function(e){var n=e.editors.TextEditor.prototype.extend();n.prototype.createElements=function(){e.editors.TextEditor.prototype.createElements.apply(this,arguments),this.TEXTAREA=document.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.$textarea=t(this.TEXTAREA),e.Dom.empty(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)},e.editors.PasswordEditor=n,e.editors.registerEditor("password",n)}(o),function(t){var e=t.editors.BaseEditor.prototype.extend();e.prototype.init=function(){this.select=document.createElement("SELECT"),t.Dom.addClass(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement[0].appendChild(this.select)},e.prototype.prepare=function(){t.editors.BaseEditor.prototype.prepare.apply(this,arguments);var e,n=this.cellProperties.selectOptions; e="function"==typeof n?this.prepareOptions(n(this.row,this.col,this.prop)):this.prepareOptions(n),t.Dom.empty(this.select);for(var o in e)if(e.hasOwnProperty(o)){var i=document.createElement("OPTION");i.value=o,t.Dom.fastInnerHTML(i,e[o]),this.select.appendChild(i)}},e.prototype.prepareOptions=function(e){var n={};if(t.helper.isArray(e))for(var o=0,i=e.length;on?t.style.width=e.minWidth+"px":n>e.maxWidth?t.style.width=e.maxWidth+"px":t.style.width=n+"px";var s=t.scrollHeight;e.minHeight>s?t.style.height=e.minHeight+"px":e.maxHeight1&&""===i[i.length-1]&&i.pop(),n=0,o=i.length;n0&&(a+="\t"),r=t[e][o],a+="string"==typeof r?r.indexOf("\n")>-1?'"'+r.replace(/"/g,'""')+'"':r:null===r||void 0===r?"":r;e0&&(t.patches=[],t.callback&&t.callback(i)),i}function h(t,n,o,i){for(var r=y(n),a=y(t),s=!1,l=!1,A=a.length-1;A>=0;A--){var c=a[A],u=t[c];if(n.hasOwnProperty(c)){var d=n[c];u instanceof Object?h(u,d,o,i+"/"+e(c)):u!=d&&(s=!0,o.push({op:"replace",path:i+"/"+e(c),value:d}),t[c]=d)}else o.push({op:"remove",path:i+"/"+e(c)}),delete t[c],l=!0}if(l||r.length!=a.length)for(var A=0;A=A){o=M[n.op].call(n,s,c,t);break}s=s[c]}else{var u=a[l];if(u.indexOf("~")!=-1&&(u=u.replace(/~1/g,"/").replace(/~0/g,"~")),l++,l>=A){o=f[n.op].call(n,s,u,t);break}s=s[u]}i++}return o}var f={add:function(t,e){return t[e]=this.value,!0},remove:function(t,e){return delete t[e],!0},replace:function(t,e){return t[e]=this.value,!0},move:function(t,e,n){var o={op:"_get",path:this.from};return p(n,[o]),p(n,[{op:"remove",path:this.from}]),p(n,[{op:"add",path:this.path,value:o.value}]),!0},copy:function(t,e,n){var o={op:"_get",path:this.from};return p(n,[o]),p(n,[{op:"add",path:this.path,value:o.value}]),!0},test:function(t,e){return JSON.stringify(t[e])===JSON.stringify(this.value)},_get:function(t,e){this.value=t[e]}},M={add:function(t,e){return t.splice(e,0,this.value),!0},remove:function(t,e){return t.splice(e,1),!0},replace:function(t,e){return t[e]=this.value,!0},move:f.move,copy:f.copy,test:f.test,_get:f._get},w={add:function(t,n){var o={op:"add",path:n+e(this.name),value:this.object[this.name]};t.push(o)},delete:function(t,n){var o={op:"remove",path:n+e(this.name)};t.push(o)},update:function(t,n){var o={op:"replace",path:n+e(this.name),value:this.object[this.name]};t.push(o)}},T=[];t.intervals;var C=function(){function t(t){this.observers=[],this.obj=t}return t}(),I=function(){function t(t,e){this.callback=t,this.observer=e}return t}();t.unobserve=A,t.observe=c,t.generate=g;var y;y=Object.keys?Object.keys:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e};var E;E=Array.isArray?Array.isArray:function(t){return t.push&&"number"==typeof t.length},t.apply=p}(O||(O={})),e.apply=O.apply,e.observe=O.observe,e.unobserve=O.unobserve,e.generate=O.generate,o.PluginHookClass=function(){function t(){this.hooks=e(),this.globalBucket={},this.legacy=n}var e=function(){return{beforeInitWalkontable:[],beforeInit:[],beforeRender:[],beforeSetRangeEnd:[],beforeDrawBorders:[],beforeChange:[],beforeChangeRender:[],beforeRemoveCol:[],beforeRemoveRow:[],beforeValidate:[],beforeGetCellMeta:[],beforeAutofill:[],beforeKeyDown:[],afterInit:[],afterLoadData:[],afterUpdateSettings:[],afterRender:[],afterRenderer:[],afterChange:[],afterValidate:[],afterGetCellMeta:[],afterSetCellMeta:[],afterGetColHeader:[],afterGetRowHeader:[],afterDestroy:[],afterRemoveRow:[],afterCreateRow:[],afterRemoveCol:[],afterCreateCol:[],afterDeselect:[],afterSelection:[],afterSelectionByProp:[],afterSelectionEnd:[],afterSelectionEndByProp:[],afterOnCellMouseDown:[],afterOnCellMouseOver:[],afterOnCellCornerMouseDown:[],afterScrollVertically:[],afterScrollHorizontally:[],afterCellMetaReset:[],afterIsMultipleSelectionCheck:[],afterDocumentKeyDown:[],modifyColWidth:[],modifyRowHeight:[],modifyRow:[],modifyCol:[]}},n={onBeforeChange:"beforeChange",onChange:"afterChange",onCreateRow:"afterCreateRow",onCreateCol:"afterCreateCol",onSelection:"afterSelection",onCopyLimit:"afterCopyLimit",onSelectionEnd:"afterSelectionEnd",onSelectionByProp:"afterSelectionByProp",onSelectionEndByProp:"afterSelectionEndByProp"};return t.prototype.getBucket=function(t){return t?(t.pluginHookBucket||(t.pluginHookBucket={}),t.pluginHookBucket):this.globalBucket},t.prototype.add=function(t,e,i){if(o.helper.isArray(e))for(var r=0,a=e.length;rl&&(l=u),s[u]||(s[u]={needed:i,strings:[]}),s[u].needed&&(s[u].strings.push({value:c,row:A}),s[u].needed--)}var d=o.getSettings();d.colHeaders&&o.view.appendColHeader(n,r.theadTh),t.Dom.empty(r.tbody);for(var g in s)if(s.hasOwnProperty(g))for(var h=0,p=s[g].strings.length;ht?this.autoColumnWidths[e]:t},this.afterDestroy=function(){var t=this;t.autoColumnSizeTmp&&t.autoColumnSizeTmp.container&&t.autoColumnSizeTmp.container.parentNode&&t.autoColumnSizeTmp.container.parentNode.removeChild(t.autoColumnSizeTmp.container),t.autoColumnSizeTmp=null}}var n=new e;t.hooks.add("beforeInit",n.beforeInit),t.hooks.add("afterUpdateSettings",n.beforeInit)}(o);var F=new a;o.hooks.add("afterInit",function(){F.init.call(this,"afterInit")}),o.hooks.add("afterUpdateSettings",function(){F.init.call(this,"afterUpdateSettings")}),o.hooks.add("modifyRow",F.translateRow),o.hooks.add("afterGetColHeader",F.getColHeader),o.hooks.register("beforeColumnSort"),o.hooks.register("afterColumnSort"),function(e){function n(t,e){return t.indexOf(e)!=-1?t:(t=t.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),t+=" "+e)}function o(t,e){return t.indexOf(e)!=-1?t:(t=t.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),t+=" "+e)}function i(t,e,i,r){var a=this.getCellMeta(t,e),s=r;a.className&&(s="vertical"===i?n(a.className,r):o(a.className,r)),this.setCellMeta(t,e,"className",s),this.render()}function r(t,e,n){if(t.from.row==t.to.row&&t.from.col==t.to.col)i.call(this,t.from.row,t.from.col,e,n);else for(var o=t.from.row;o<=t.to.row;o++)for(var r=t.from.col;r<=t.to.col;r++)i.call(this,o,r,e,n)}function a(t,n){this.instance=t;var o=this;o.menus=[],o.triggerRows=[],this.enabled=!0,this.instance.addHook("afterDestroy",function(){o.destroy()}),this.defaultOptions={items:{row_above:{name:"Insert row above",callback:function(t,e){this.alter("insert_row",e.start.row)},disabled:function(){var t=this.getSelected(),e=[0,t[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,t[1]],n=e.join(",")==t.join(",");return t[0]<0||this.countRows()>=this.getSettings().maxRows||n}},row_below:{name:"Insert row below",callback:function(t,e){this.alter("insert_row",e.end.row+1)},disabled:function(){var t=this.getSelected(),e=[0,t[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,t[1]],n=e.join(",")==t.join(",");return this.getSelected()[0]<0||this.countRows()>=this.getSettings().maxRows||n}},hsep1:a.SEPARATOR,col_left:{name:"Insert column on the left",callback:function(t,e){this.alter("insert_col",e.start.col)},disabled:function(){var t=this.getSelected(),e=[t[0],0,t[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],n=e.join(",")==t.join(",");return this.getSelected()[1]<0||this.countCols()>=this.getSettings().maxCols||n}},col_right:{name:"Insert column on the right",callback:function(t,e){this.alter("insert_col",e.end.col+1)},disabled:function(){var t=this.getSelected(),e=[t[0],0,t[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],n=e.join(",")==t.join(",");return t[1]<0||this.countCols()>=this.getSettings().maxCols||n}},hsep2:a.SEPARATOR,remove_row:{name:"Remove row",callback:function(t,e){var n=e.end.row-e.start.row+1;this.alter("remove_row",e.start.row,n)},disabled:function(){var t=this.getSelected(),e=[0,t[1],this.view.wt.wtTable.getRowStrategy().cellCount-1,t[1]],n=e.join(",")==t.join(",");return t[0]<0||n}},remove_col:{name:"Remove column",callback:function(t,e){var n=e.end.col-e.start.col+1;this.alter("remove_col",e.start.col,n)},disabled:function(){var t=this.getSelected(),e=[t[0],0,t[0],this.view.wt.wtTable.getColumnStrategy().cellCount-1],n=e.join(",")==t.join(",");return t[1]<0||n}},hsep3:a.SEPARATOR,undo:{name:"Undo",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}},redo:{name:"Redo",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}},hsep4:a.SEPARATOR,make_read_only:{name:function(){var t="Read only",e=o.checkSelectionReadOnlyConsistency(this);return e&&(t=o.markSelected(t)),t},callback:function(){var t=o.checkSelectionReadOnlyConsistency(this),e=this;this.getSelectedRange().forAll(function(n,o){e.getCellMeta(n,o).readOnly=!t}),this.render()}},hsep5:a.SEPARATOR,aligment:{name:"Alignment",submenu:{items:{left:{name:function(){var t="Left",e=o.checkSelectionAlignment(this,"htLeft");return e&&(t=o.markSelected(t)),t},callback:function(){r.call(this,this.getSelectedRange(),"horizontal","htLeft")},disabled:!1},center:{name:function(){var t="Center",e=o.checkSelectionAlignment(this,"htCenter");return e&&(t=o.markSelected(t)),t},callback:function(){r.call(this,this.getSelectedRange(),"horizontal","htCenter")},disabled:!1},right:{name:function(){var t="Right",e=o.checkSelectionAlignment(this,"htRight");return e&&(t=o.markSelected(t)),t},callback:function(){r.call(this,this.getSelectedRange(),"horizontal","htRight")},disabled:!1},justify:{name:function(){var t="Justify",e=o.checkSelectionAlignment(this,"htJustify");return e&&(t=o.markSelected(t)),t},callback:function(){r.call(this,this.getSelectedRange(),"horizontal","htJustify")},disabled:!1},hsep1:a.SEPARATOR,top:{name:function(){var t="Top",e=o.checkSelectionAlignment(this,"htTop");return e&&(t=o.markSelected(t)),t},callback:function(){r.call(this,this.getSelectedRange(),"vertical","htTop")},disabled:!1},middle:{name:function(){var t="Middle",e=o.checkSelectionAlignment(this,"htMiddle");return e&&(t=o.markSelected(t)),t},callback:function(){r.call(this,this.getSelectedRange(),"vertical","htMiddle")},disabled:!1},bottom:{name:function(){var t="Bottom",e=o.checkSelectionAlignment(this,"htBottom");return e&&(t=o.markSelected(t)),t},callback:function(){r.call(this,this.getSelectedRange(),"vertical","htBottom")},disabled:!1}}}}}},o.options={},e.helper.extend(o.options,this.defaultOptions),this.updateOptions(n,this.options),this.bindMouseEvents(),this.markSelected=function(t){return""+t},this.checkSelectionAlignment=function(t,e){var n=!1;return t.getSelectedRange().forAll(function(o,i){var r=t.getCellMeta(o,i).className;if(r&&r.indexOf(e)!=-1)return n=!0,!1}),n},this.checkSelectionReadOnlyConsistency=function(t){var e=!1;return t.getSelectedRange().forAll(function(n,o){if(t.getCellMeta(n,o).readOnly)return e=!0,!1}),e},e.hooks.run(t,"afterContextMenuDefaultOptions",this.defaultOptions)}function s(){if(!this.rootElement[0].className.indexOf("htContextMenu")){for(var t=0,e=0,n=this.getSettings().data.length,o=0;o .htContextMenu."+n)[0]:t("body > .htContextMenu")[0],i||(i=document.createElement("DIV"),e.Dom.addClass(i,"htContextMenu"),n&&e.Dom.addClass(i,n),document.getElementsByTagName("body")[0].appendChild(i)),this.menus.indexOf(i)<0&&(this.menus.push(i),o=o||0,this.triggerRows.push(o)),i},a.prototype.bindMouseEvents=function(){function n(n){this.closeAll(),n.preventDefault(),n.stopPropagation();var o=this.instance.getSettings().rowHeaders,i=this.instance.getSettings().colHeaders;if(o||i||"TD"==n.target.nodeName||e.Dom.hasClass(n.target,"current")&&e.Dom.hasClass(n.target,"wtBorder")){var r=this.createMenu(),s=this.getItems(this.options);this.show(r,s),this.setMenuPosition(n,r),t(document).on("mousedown.htContextMenu",e.helper.proxy(a.prototype.closeAll,this))}}this.instance.rootElement.on("contextmenu.htContextMenu",e.helper.proxy(n,this))},a.prototype.bindTableEvents=function(){this._afterScrollCallback=function(){},this.instance.addHook("afterScrollVertically",this._afterScrollCallback),this.instance.addHook("afterScrollHorizontally",this._afterScrollCallback)},a.prototype.unbindTableEvents=function(){this._afterScrollCallback&&(this.instance.removeHook("afterScrollVertically",this._afterScrollCallback),this.instance.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)},a.prototype.performAction=function(e,n){var o=this,i=t(n).handsontable("getInstance"),r=i.getSelected()[0],s=i.getData()[r];if(s.disabled!==!0&&("function"!=typeof s.disabled||s.disabled.call(this.instance)!==!0)&&!s.hasOwnProperty("submenu")){if("function"!=typeof s.callback)return;var l=this.instance.getSelectedRange(),A=a.utils.normalizeSelection(l);s.callback.call(this.instance,s.key,A,e),o.closeAll(),this.instance.deselectCell()}},a.prototype.unbindMouseEvents=function(){this.instance.rootElement.off("contextmenu.htContextMenu"),t(document).off("mousedown.htContextMenu")},a.prototype.show=function(n,o){n.style.display="block";var i=this;t(n).off("mousedown.htContextMenu").on("mousedown.htContextMenu",function(t){i.performAction(t,n)}),t(n).handsontable({data:a.utils.convertItemsToArray(o),colHeaders:!1,colWidths:[200],readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:e.helper.proxy(this.renderer,this)}],beforeKeyDown:function(t){i.onBeforeKeyDown(t,n)},afterOnCellMouseOver:function(t,e,o){i.onCellMouseOver(t,e,o,n)},renderAllRows:!0}),this.bindTableEvents(),t(n).handsontable("listen")},a.prototype.close=function(e){this.hide(e),t(document).off("mousedown.htContextMenu"),this.unbindTableEvents(),this.instance.listen()},a.prototype.closeAll=function(){for(;this.menus.length>0;){var t=this.menus.pop();t&&this.close(t)}this.triggerRows=[]},a.prototype.closeLastOpenedSubMenu=function(){var t=this.menus.pop();t&&this.hide(t)},a.prototype.hide=function(e){e.style.display="none",t(e).handsontable("destroy")},a.prototype.renderer=function(n,o,i,r,s,l){function A(t){return t.hasOwnProperty("submenu")}function c(t){return new RegExp(a.SEPARATOR,"i").test(t.name)}function u(t){return t.disabled===!0||"function"==typeof t.disabled&&t.disabled.call(d.instance)===!0}var d=this,g=n.getData()[i],h=document.createElement("DIV");"function"==typeof l&&(l=l.call(this.instance)),e.Dom.empty(o),o.appendChild(h),c(g)?e.Dom.addClass(o,"htSeparator"):e.Dom.fastInnerHTML(h,l),u(g)?(e.Dom.addClass(o,"htDisabled"),t(h).on("mouseenter",function(){n.deselectCell()})):A(g)?(e.Dom.addClass(o,"htSubmenu"),t(h).on("mouseenter",function(){n.selectCell(i,r)})):(e.Dom.removeClass(o,"htSubmenu"),e.Dom.removeClass(o,"htDisabled"),t(h).on("mouseenter",function(){n.selectCell(i,r)}))},a.prototype.onCellMouseOver=function(e,n,o,i){var r=t(i).handsontable("getInstance"),a=this.menus.length;if(a>0){var s=this.menus[a-1];s.id!=i.id&&this.closeLastOpenedSubMenu()}else this.closeLastOpenedSubMenu();if(o.className.indexOf("htSubmenu")!=-1){var l=r.getData()[n.row],A=this.getItems(l.submenu),c=this.createMenu(l.name,n.row),u=o.getBoundingClientRect();this.show(c,A),this.setSubMenuPosition(u,c)}},a.prototype.onBeforeKeyDown=function(n,o){function i(t){var e=t.getCell(0,0);a.utils.isSeparator(e)||a.utils.isDisabled(e)?s(0,0,t):t.selectCell(0,0)}function r(t){var e=t.countRows()-1,n=t.getCell(e,0);a.utils.isSeparator(n)||a.utils.isDisabled(n)?l(e,0,t):t.selectCell(e,0)}function s(t,e,n){var o=t+1,i=o=0?n.getCell(o,e):null;i&&(a.utils.isSeparator(i)||a.utils.isDisabled(i)?l(o,e,n):n.selectCell(o,e))}function A(e,n,o,i){var r=e.getData()[i],a=n.getItems(r.submenu),s=n.createMenu(r.name,i),l=o.getBoundingClientRect();n.show(s,a),n.setSubMenuPosition(l,s);var A=t(s).handsontable("getInstance");A.selectCell(0,0)}var c=this,u=t(o).handsontable("getInstance"),d=u.getSelected();switch(n.keyCode){ case e.helper.keyCode.ESCAPE:c.closeAll(),n.preventDefault(),n.stopImmediatePropagation();break;case e.helper.keyCode.ENTER:d&&c.performAction(n,o);break;case e.helper.keyCode.ARROW_DOWN:d?s(d[0],d[1],u,c):i(u,c),n.preventDefault(),n.stopImmediatePropagation();break;case e.helper.keyCode.ARROW_UP:d?l(d[0],d[1],u,c):r(u,c),n.preventDefault(),n.stopImmediatePropagation();break;case e.helper.keyCode.ARROW_RIGHT:if(d){var g=d[0],h=u.getCell(d[0],0);a.utils.hasSubMenu(h)&&A(u,c,h,g)}n.preventDefault(),n.stopImmediatePropagation();break;case e.helper.keyCode.ARROW_LEFT:if(d){if(o.className.indexOf("htContextSubMenu_")!=-1){c.closeLastOpenedSubMenu();var p=c.menus.length;if(p>0){o=c.menus[p-1];var f=c.triggerRows.pop();u=t(o).handsontable("getInstance"),u.selectCell(f,0)}}n.preventDefault(),n.stopImmediatePropagation()}}},a.prototype.getItems=function(t){function n(t){"string"==typeof t?this.name=t:e.helper.extend(this,t)}var o={};n.prototype=t;for(var i in t.items)!t.items.hasOwnProperty(i)||this.itemsFilter&&this.itemsFilter.indexOf(i)==-1||(o[i]=new n(t.items[i]));return o},a.prototype.updateOptions=function(t,n){if(t=t||{},t.items)for(var o in t.items){var i={};t.items.hasOwnProperty(o)&&this.defaultOptions.items.hasOwnProperty(o)&&e.helper.isObject(t.items[o])&&(e.helper.extend(i,this.defaultOptions.items[o]),e.helper.extend(i,t.items[o]),t.items[o]=i)}e.helper.extend(n,t)},a.prototype.setSubMenuPosition=function(t,n){var o=e.Dom.getWindowScrollTop(),i=e.Dom.getWindowScrollLeft(),r={top:o+t.top,topRelative:t.top,left:t.left,leftRelative:t.left-i,scrollTop:o,scrollLeft:i,cellHeight:t.height,cellWidth:t.width};this.menuFitsBelowCursor(r,n)?this.positionMenuBelowCursor(r,n,!0):this.menuFitsAboveCursor(r,n)?this.positionMenuAboveCursor(r,n,!0):this.positionMenuBelowCursor(r,n,!0),this.menuFitsOnRightOfCursor(r,n)?this.positionMenuOnRightOfCursor(r,n,!0):this.positionMenuOnLeftOfCursor(r,n,!0)},a.prototype.setMenuPosition=function(t,n){var o=t.pageY,i=t.pageX,r=e.Dom.getWindowScrollTop(),a=e.Dom.getWindowScrollLeft(),s={top:o,topRelative:o-r,left:i,leftRelative:i-a,scrollTop:r,scrollLeft:a,cellHeight:t.target.clientHeight,cellWidth:t.target.clientWidth};this.menuFitsBelowCursor(s,n)?this.positionMenuBelowCursor(s,n):this.menuFitsAboveCursor(s,n)?this.positionMenuAboveCursor(s,n):this.positionMenuBelowCursor(s,n),this.menuFitsOnRightOfCursor(s,n)?this.positionMenuOnRightOfCursor(s,n):this.positionMenuOnLeftOfCursor(s,n)},a.prototype.menuFitsAboveCursor=function(t,e){return t.topRelative>=e.offsetHeight},a.prototype.menuFitsBelowCursor=function(t,e){return t.topRelative+e.offsetHeight<=t.scrollTop+document.body.clientHeight},a.prototype.menuFitsOnRightOfCursor=function(t,e){return t.leftRelative+e.offsetWidth<=t.scrollLeft+document.body.clientWidth},a.prototype.positionMenuBelowCursor=function(t,e){e.style.top=t.top+"px"},a.prototype.positionMenuAboveCursor=function(t,e,n){n?e.style.top=t.top+t.cellHeight-e.offsetHeight+"px":e.style.top=t.top-e.offsetHeight+"px"},a.prototype.positionMenuOnRightOfCursor=function(t,e,n){n?e.style.left=1+t.left+t.cellWidth+"px":e.style.left=1+t.left+"px"},a.prototype.positionMenuOnLeftOfCursor=function(t,e,n){n?e.style.left=t.left-e.offsetWidth+"px":e.style.left=t.left-e.offsetWidth+"px"},a.utils={},a.utils.convertItemsToArray=function(t){var e,n=[];for(var o in t)if(t.hasOwnProperty(o)){if("string"==typeof t[o])e={name:t[o]};else{if(t[o].visible===!1)continue;e=t[o]}e.key=o,n.push(e)}return n},a.utils.normalizeSelection=function(t){return{start:t.getTopLeftCorner(),end:t.getBottomRightCorner()}},a.utils.isSeparator=function(t){return e.Dom.hasClass(t,"htSeparator")},a.utils.hasSubMenu=function(t){return e.Dom.hasClass(t,"htSubmenu")},a.utils.isDisabled=function(t){return e.Dom.hasClass(t,"htDisabled")},a.prototype.enable=function(){this.enabled||(this.enabled=!0,this.bindMouseEvents())},a.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.closeAll(),this.unbindMouseEvents(),this.unbindTableEvents())},a.prototype.destroy=function(){for(this.closeAll();this.menus.length>0;){var t=this.menus.pop();this.triggerRows.pop(),t&&(this.close(t),this.isMenuEnabledByOtherHotInstance()||this.removeMenu(t))}this.unbindMouseEvents(),this.unbindTableEvents()},a.prototype.isMenuEnabledByOtherHotInstance=function(){for(var e=t(".handsontable"),n=!1,o=0,i=e.length;o=0){d=e;var n=h.getBoundingClientRect();u=n.left,p.style.top=n.top+"px",p.style.left=u+"px",g.rootElement[0].appendChild(p)}}function i(t){var e=t.getBoundingClientRect();p.style.left=e.left+"px"}function r(){var t=this;e.Dom.addClass(p,"active"),e.Dom.addClass(f,"active");var n=h.getBoundingClientRect();f.style.width=n.width+"px",f.style.height=t.view.maximumVisibleElementHeight(0)+"px",f.style.top=p.style.top,f.style.left=u+"px",t.rootElement[0].appendChild(f)}function a(t){f.style.left=u+t+"px"}function s(){e.Dom.removeClass(p,"active"),e.Dom.removeClass(f,"active")}var l,A,c,u,d,g,h,p=document.createElement("DIV"),f=document.createElement("DIV"),M=t(n);p.className="manualColumnMover",f.className="manualColumnMoverGuide";var w=function(){var t=this;e.hooks.run(t,"persistentStateSave","manualColumnPositions",t.manualColumnPositions)},T=function(){var t=this,n={};return e.hooks.run(t,"persistentStateLoad","manualColumnPositions",n),n.value},C=function(){var t,n=this;n.rootElement.on("mouseenter.manualColumnMove."+n.guid,"table thead tr > th",function(e){t?(A=n.view.wt.wtTable.getCoords(e.currentTarget).col,i(e.currentTarget)):o.call(n,e.currentTarget)}),n.rootElement.on("mousedown.manualColumnMove."+n.guid,".manualColumnMover",function(e){c=e.pageX,r.call(n),t=n,l=d,A=d}),M.on("mousemove.manualColumnMove."+n.guid,function(e){t&&a(e.pageX-c)}),M.on("mouseup.manualColumnMove."+n.guid,function(){t&&(s(),t=!1,l th"),t.rootElement.off("mousedown.manualColumnMove."+t.guid,".manualColumnMover"),M.off("mousemove.manualColumnMove."+t.guid),M.off("mouseup.manualColumnMove."+t.guid)},y=function(t,e){if(t.length0&&(this.forceFullRender=!0,this.render()))}else I.call(this),this.manualColumnPositions=[]},this.modifyCol=function(t){return this.getSettings().manualColumnMove?("undefined"==typeof this.manualColumnPositions[t]&&y(this.manualColumnPositions,t+1),this.manualColumnPositions[t]):t}}var i=new o;e.hooks.add("beforeInit",i.beforeInit),e.hooks.add("afterInit",function(){i.init.call(this,"afterInit")}),e.hooks.add("afterUpdateSettings",function(){i.init.call(this,"afterUpdateSettings")}),e.hooks.add("modifyCol",i.modifyCol),e.hooks.register("afterColumnMove")}(o),function(e){function o(){function o(t){u=this,l=t;var e=this.view.wt.wtTable.getCoords(t).col;if(e>=0){A=e;var n=l.getBoundingClientRect();p=n.left-6,h=parseInt(n.width,10),f.style.top=n.top+"px",f.style.left=p+h+"px",u.rootElement[0].appendChild(f)}}function i(){f.style.left=p+c+"px"}function r(){var t=this;e.Dom.addClass(f,"active"),e.Dom.addClass(M,"active"),M.style.top=f.style.top,M.style.left=f.style.left,M.style.height=t.view.maximumVisibleElementHeight(0)+"px",t.rootElement[0].appendChild(M)}function a(){M.style.left=f.style.left}function s(){e.Dom.removeClass(f,"active"),e.Dom.removeClass(M,"active")}var l,A,c,u,d,g,h,p,f=document.createElement("DIV"),M=document.createElement("DIV"),w=t(n);f.className="manualColumnResizer",M.className="manualColumnResizerGuide";var T=function(){var t=this;e.hooks.run(t,"persistentStateSave","manualColumnWidths",t.manualColumnWidths)},C=function(){var t=this,n={};return e.hooks.run(t,"persistentStateLoad","manualColumnWidths",n),n.value},I=function(){var t,n=this,u=0,p=null;n.rootElement.on("mouseenter.manualColumnResize."+n.guid,"table thead tr > th",function(e){t||o.call(n,e.currentTarget)}),n.rootElement.on("mousedown.manualColumnResize."+n.guid,".manualColumnResizer",function(o){r.call(n),t=n,null==p&&(p=setTimeout(function(){u>=2&&(d=n.determineColumnWidth.call(n,A),E(A,d),n.forceFullRender=!0,n.view.render(),e.hooks.run(n,"afterColumnResize",A,d)),u=0,p=null},500),n._registerTimeout(p)),u++,g=o.pageX,d=h}),w.on("mousemove.manualColumnResize."+n.guid,function(e){t&&(c=h+(e.pageX-g),d=E(A,c),i(),a())}),w.on("mouseup.manualColumnResize."+n.guid,function(){t&&(s(),t=!1,d!=h&&(n.forceFullRender=!0,n.view.render(),T.call(n),e.hooks.run(n,"afterColumnResize",A,d)),o.call(n,l))}),n.addHook("afterDestroy",y)},y=function(){var t=this;t.rootElement.off("mouseenter.manualColumnResize."+t.guid,"table thead tr > th"),t.rootElement.off("mousedown.manualColumnResize."+t.guid,".manualColumnResizer"),w.off("mousemove.manualColumnResize."+t.guid),w.off("mouseup.manualColumnResize."+t.guid)};this.beforeInit=function(){this.manualColumnWidths=[]},this.init=function(t){var e=this,n=!!this.getSettings().manualColumnResize;if(n){var o=this.getSettings().manualColumnResize,i=C.call(e);"undefined"!=typeof i?this.manualColumnWidths=i:o instanceof Array?this.manualColumnWidths=o:this.manualColumnWidths=[],"afterInit"==t&&(I.call(this),this.manualColumnWidths.length>0&&(this.forceFullRender=!0,this.render()))}else y.call(this),this.manualColumnWidths=[]};var E=function(t,n){return n=Math.max(n,20),t=e.hooks.execute(u,"modifyCol",t),u.manualColumnWidths[t]=n,n};this.modifyColWidth=function(t,e){return e=this.runHooksAndReturn("modifyCol",e),this.getSettings().manualColumnResize&&this.manualColumnWidths[e]?this.manualColumnWidths[e]:t}}var i=new o;e.hooks.add("beforeInit",i.beforeInit),e.hooks.add("afterInit",function(){i.init.call(this,"afterInit")}),e.hooks.add("afterUpdateSettings",function(){i.init.call(this,"afterUpdateSettings")}),e.hooks.add("modifyColWidth",i.modifyColWidth),e.hooks.register("afterColumnResize")}(o),function(e){function o(){function o(t){u=this,l=t;var e=this.view.wt.wtTable.getCoords(t).row;if(e>=0){A=e;var n=l.getBoundingClientRect();p=n.top-6,h=parseInt(n.height,10),f.style.left=n.left+"px",f.style.top=p+h+"px",u.rootElement[0].appendChild(f)}}function i(){f.style.top=p+c+"px"}function r(){var t=this;e.Dom.addClass(f,"active"),e.Dom.addClass(M,"active"),M.style.top=f.style.top,M.style.left=f.style.left,M.style.width=t.view.maximumVisibleElementWidth(0)+"px",t.rootElement[0].appendChild(M)}function a(){M.style.top=f.style.top}function s(){e.Dom.removeClass(f,"active"),e.Dom.removeClass(M,"active")}var l,A,c,u,d,g,h,p,f=document.createElement("DIV"),M=document.createElement("DIV"),w=t(n);f.className="manualRowResizer",M.className="manualRowResizerGuide";var T=function(){var t=this;e.hooks.run(t,"persistentStateSave","manualRowHeights",t.manualRowHeights)},C=function(){var t=this,n={};return e.hooks.run(t,"persistentStateLoad","manualRowHeights",n),n.value},I=function(){var t,n=this,u=0,p=null;n.rootElement.on("mouseenter.manualRowResize."+n.guid,"table tbody tr > th",function(e){t||o.call(n,e.currentTarget)}),n.rootElement.on("mousedown.manualRowResize."+n.guid,".manualRowResizer",function(o){r.call(n),t=n,null==p&&(p=setTimeout(function(){u>=2&&(E(A,null),n.forceFullRender=!0,n.view.render(),e.hooks.run(n,"afterRowResize",A,d)),u=0,p=null},500),n._registerTimeout(p)),u++,g=o.pageY,d=h}),w.on("mousemove.manualRowResize."+n.guid,function(e){t&&(c=h+(e.pageY-g),d=E(A,c),i(),a())}),w.on("mouseup.manualRowResize."+n.guid,function(){t&&(s(),t=!1,d!=h&&(n.forceFullRender=!0,n.view.render(),T.call(n),e.hooks.run(n,"afterRowResize",A,d)),o.call(n,l))}),n.addHook("afterDestroy",y)},y=function(){var t=this;t.rootElement.off("mouseenter.manualRowResize."+t.guid,"table tbody tr > th"),t.rootElement.off("mousedown.manualRowResize."+t.guid,".manualRowResizer"),w.off("mousemove.manualRowResize."+t.guid),w.off("mouseup.manualRowResize."+t.guid)};this.beforeInit=function(){this.manualRowHeights=[]},this.init=function(t){var e=this,n=!!this.getSettings().manualRowResize;if(n){var o=this.getSettings().manualRowResize,i=C.call(e);"undefined"!=typeof i?this.manualRowHeights=i:o instanceof Array?this.manualRowHeights=o:this.manualRowHeights=[],"afterInit"===t?(I.call(this),this.manualRowHeights.length>0&&(this.forceFullRender=!0,this.render())):(this.forceFullRender=!0,this.render())}else y.call(this),this.manualRowHeights=[]};var E=function(t,n){return t=e.hooks.execute(u,"modifyRow",t),u.manualRowHeights[t]=n,n};this.modifyRowHeight=function(t,e){return this.getSettings().manualRowResize&&(e=this.runHooksAndReturn("modifyRow",e),void 0!==this.manualRowHeights[e])?this.manualRowHeights[e]:t}}var i=new o;e.hooks.add("beforeInit",i.beforeInit),e.hooks.add("afterInit",function(){i.init.call(this,"afterInit")}),e.hooks.add("afterUpdateSettings",function(){i.init.call(this,"afterUpdateSettings")}),e.hooks.add("modifyRowHeight",i.modifyRowHeight),e.hooks.register("afterRowResize")}(o),function(){function t(){var t=this,n=t.getSettings().observeChanges;n?(t.observer&&i.call(t),e.call(t),a.call(t)):n||i.call(t)}function e(){var t=this;t.observeChangesActive=!0,t.pauseObservingChanges=function(){t.observeChangesActive=!1},t.resumeObservingChanges=function(){t.observeChangesActive=!0},t.observedData=t.getData(),t.observer=O.observe(t.observedData,function(e){t.observeChangesActive&&(n.call(t,e),t.render()),t.runHooks("afterChangesObserved")})}function n(t){function e(t){var e;return e=o(t),e=n(e)}function n(t){var e=[];return t.filter(function(t){var n=i(t.path);if(["add","remove"].indexOf(t.op)!=-1&&!isNaN(n.col)){if(e.indexOf(n.col)!=-1)return!1;e.push(n.col)}return!0})}function o(t){return t.filter(function(t){return!/[\/]length/gi.test(t.path)})}function i(t){var e=t.match(/^\/(\d+)\/?(.*)?$/);return{row:parseInt(e[1],10),col:/^\d*$/.test(e[2])?parseInt(e[2],10):e[2]}}for(var r=this,a=e(t),s=0,l=a.length;s0},e.UndoRedo.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},e.UndoRedo.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},e.UndoRedo.Action=function(){},e.UndoRedo.Action.prototype.undo=function(){},e.UndoRedo.Action.prototype.redo=function(){},e.UndoRedo.ChangeAction=function(t){this.changes=t},e.helper.inherit(e.UndoRedo.ChangeAction,e.UndoRedo.Action),e.UndoRedo.ChangeAction.prototype.undo=function(e,n){for(var o=t.extend(!0,[],this.changes),i=e.countEmptyRows(!0),r=e.countEmptyCols(!0),a=0,s=o.length;athis.boundaries.bottom&&(o=e-this.boundaries.bottom),tthis.boundaries.right&&(n=t-this.boundaries.right),this.callback(n,o)};var G,X;if("undefined"!=typeof o){var W=function(t){t.dragToScrollListening=!1;var e=t.view.wt.wtScrollbars.vertical.scrollHandler;G=new A,e!==n&&(e?G.setBoundaries(e.getBoundingClientRect()):G.setBoundaries(t.$table[0].getBoundingClientRect()),G.setCallback(function(n,o){n<0?e?e.scrollLeft-=50:t.view.wt.scrollHorizontal(-1).draw():n>0&&(e?e.scrollLeft+=50:t.view.wt.scrollHorizontal(1).draw()),o<0?e?e.scrollTop-=20:t.view.wt.scrollVertical(-1).draw():o>0&&(e?e.scrollTop+=20:t.view.wt.scrollVertical(1).draw())}),t.dragToScrollListening=!0)};o.hooks.add("afterInit",function(){var e=this;t(document).on("mouseup."+this.guid,function(){e.dragToScrollListening=!1}),t(document).on("mousemove."+this.guid,function(t){e.dragToScrollListening&&G.check(t.clientX,t.clientY)})}),o.hooks.add("afterDestroy",function(){t(document).off("."+this.guid)}),o.hooks.add("afterOnCellMouseDown",function(){W(this)}),o.hooks.add("afterOnCellCornerMouseDown",function(){W(this)}),o.plugins.DragToScroll=A}if(function(t,e,n){function o(o){function i(){o.isListening()&&o.selection.empty()}function r(t){if(o.isListening()&&o.selection.isSelected()){var e=t.replace(/^[\r\n]*/g,"").replace(/[\r\n]*$/g,""),i=n.parse(e),r=o.getSelected(),a=new p(r[0],r[1]),s=new p(r[2],r[3]),l=new f(a,a,s),A=l.getTopLeftCorner(),c=l.getBottomRightCorner(),u=A,d=new p(Math.max(c.row,i.length-1+A.row),Math.max(c.col,i[0].length-1+A.col));o.addHookOnce("afterChange",function(t,e){t&&t.length&&this.selectCell(u.row,u.col,d.row,d.col)}),o.populateFromArray(u.row,u.col,i,d.row,d.col,"paste",o.getSettings().pasteMode)}}function a(e){if(t.helper.isCtrlKey(e.keyCode)&&o.getSelected())return s.setCopyableText(),void e.stopImmediatePropagation();var n=(e.ctrlKey||e.metaKey)&&!e.altKey;e.keyCode==t.helper.keyCode.A&&n&&o._registerTimeout(setTimeout(t.helper.proxy(s.setCopyableText,s),0))}this.copyPasteInstance=e.getInstance(),this.copyPasteInstance.onCut(i),this.copyPasteInstance.onPaste(r);var s=this;o.addHook("beforeKeyDown",a),this.destroy=function(){this.copyPasteInstance.removeCallback(i),this.copyPasteInstance.removeCallback(r),this.copyPasteInstance.destroy(),o.removeHook("beforeKeyDown",a)},o.addHook("afterDestroy",t.helper.proxy(this.destroy,this)),this.triggerPaste=t.helper.proxy(this.copyPasteInstance.triggerPaste,this.copyPasteInstance),this.triggerCut=t.helper.proxy(this.copyPasteInstance.triggerCut,this.copyPasteInstance),this.setCopyableText=function(){var e=o.getSettings(),n=e.copyRowsLimit,i=e.copyColsLimit,r=o.getSelectedRange(),a=r.getTopLeftCorner(),s=r.getBottomRightCorner(),l=a.row,A=a.col,c=s.row,u=s.col,d=Math.min(c,l+n-1),g=Math.min(u,A+i-1);o.copyPaste.copyPasteInstance.copyable(o.getCopyableData(l,A,d,g)),c===d&&u===g||t.hooks.run(o,"afterCopyLimit",c-l+1,u-A+1,n,i)}}function i(){var t=this,e=t.getSettings().copyPaste!==!1;e&&!t.copyPaste?t.copyPaste=new o(t):!e&&t.copyPaste&&(t.copyPaste.destroy(),delete t.copyPaste)}t.hooks.add("afterInit",i),t.hooks.add("afterUpdateSettings",i),t.hooks.register("afterCopyLimit")}(o,Y,SheetClip),function(t){function e(){var e=this,n=!!e.getSettings().search;n?e.search=new t.Search(e):delete e.search}t.Search=function(e){this.query=function(n,o,i){var r=e.countRows(),a=e.countCols(),s=[];o||(o=t.Search.global.getDefaultCallback()),i||(i=t.Search.global.getDefaultQueryMethod());for(var l=0;li.row?(this.lastDesiredCoords=new p(o.row+n.row,o.col+n.col),n.row+=i.row-o.row-n.row):o.row==i.row&&n.row>0?n.row+=i.row-o.row+i.rowspan-1:this.lastDesiredCoords&&0===n.row&&(n.row+=this.lastDesiredCoords.row-o.row,this.lastDesiredCoords=null),o.col>i.col?(this.lastDesiredCoords||(this.lastDesiredCoords=new p(o.row+n.row,o.col+n.col)),n.col+=i.col-o.col-n.col):o.col==i.col&&n.col>0?n.col+=i.col-o.col+i.colspan-1:this.lastDesiredCoords&&0===n.col&&(n.col+=this.lastDesiredCoords.col-o.col,this.lastDesiredCoords=null)):this.lastDesiredCoords&&(0==n.col?n.col+=this.lastDesiredCoords.col-o.col:0==n.row&&(n.row+=this.lastDesiredCoords.row-o.row),this.lastDesiredCoords=null)}else{var r=this.mergedCellInfoCollection.getInfo(e.highlight.row,e.highlight.col);r&&e.isSingle()&&(e.from=new p(r.row,r.col),e.to=new p(r.row+r.rowspan-1,r.col+r.colspan-1)),e.isSingle()&&(e.from=new p(e.highlight.row,e.highlight.col),e.to=new p(e.highlight.row,e.highlight.col));var a=function(t){function o(e,n,o){e[i]=n,e[t]=o}var i="col"==t?"row":"col";if(0!=n[t]){var r,a,s=function(){r=e.getTopLeftCorner(),a=e.getBottomRightCorner()};s();var l,A=!1;if(n[t]<0)if(l=a[t]+n[t],a[t]==e.highlight[t])l=r[t]+n[t],A=!0;else for(var c=r[i];c<=a[i];c++){var u=this.mergedCellInfoCollection.getInfo(c,a[t]);if(u&&u[t]<=e.highlight[t]){l=r[t]+n[t],A=!0;break}}else if(n[t]>0)if(l=r[t]+n[t],r[t]==e.highlight[t])l=a[t]+n[t],A=!0;else for(var c=r[i];c<=a[i];c++){var u=this.mergedCellInfoCollection.getInfo(c,r[t]);if(u&&u[t]+u[t+"span"]>e.highlight[t]){l=a[t]+n[t],A=!0;break}}A?n[t]>0?(o(e.from,r[i],r[t]),o(e.to,a[i],Math.max(a[t],l)),s()):(o(e.from,r[i],Math.min(r[t],l)),o(e.to,a[i],a[t]),s()):n[t]>0?(o(e.from,r[i],Math.max(r[t],l)),o(e.to,a[i],a[t]),s()):(o(e.from,r[i],r[t]), o(e.to,a[i],Math.min(a[t],l)),s());for(var c=r[i];c<=a[i];c++){var u="col"==t?this.mergedCellInfoCollection.getInfo(c,l):this.mergedCellInfoCollection.getInfo(l,c);u&&(A?n[t]>0?(o(e.from,Math.min(r[i],u[i]),Math.min(r[t],u[t])),l>u[t]?o(e.to,Math.max(a[i],u[i]+u[i+"span"]-1),Math.max(a[t],u[t]+u[t+"span"])):o(e.to,Math.max(a[i],u[i]+u[i+"span"]-1),Math.max(a[t],u[t]+u[t+"span"]-1)),s()):(o(e.from,Math.min(r[i],u[i]),Math.min(r[t],u[t])),o(e.to,Math.max(a[i],u[i]+u[i+"span"]-1),Math.max(a[t],u[t]+u[t+"span"]-1)),s()):n[t]>0?(l>u[t]?(o(e.from,r[i],Math.max(r[t],u[t]+u[t+"span"])),o(e.to,a[i],Math.max(a[t],u[t]+u[t+"span"]))):(o(e.from,r[i],Math.max(r[t],u[t])),o(e.to,a[i],Math.max(a[t],u[t]+u[t+"span"]-1))),s()):(l0&&o.from.row>=i&&(o.from.row=o.from-1),o.from.col<0?o.from.col=0:o.from.col>0&&o.from.col>=r&&(o.from.col=r-1)}}}},$=function(t){this.lastDesiredCoords=null;var e=this.getSettings().mergeCells;if(e){var n=this.getSelectedRange();n.highlight=new p(n.highlight.row,n.highlight.col),n.to=t;for(var o=0,i=this.mergeCells.mergedCellInfoCollection.length;o0},i=function(){n(this.getSettings().customBorders)&&(this.customBorders||(e=this,this.customBorders=new t))},a=function(t){for(var n=0;n=0?e.view.wt.selections[i]=o:e.view.wt.selections.push(o)},l=function(t,e,n){var o=h(t,e);o=p(o,n),this.setCellMeta(t,e,"borders",o),s(o)},A=function(t){for(var e=t.range,n=e.from.row;n<=e.to.row;n++)for(var o=e.from.col;o<=e.to.col;o++){var i=h(n,o),r=0;n==e.from.row&&(r++,t.hasOwnProperty("top")&&(i.top=t.top)),n==e.to.row&&(r++,t.hasOwnProperty("bottom")&&(i.bottom=t.bottom)),o==e.from.col&&(r++,t.hasOwnProperty("left")&&(i.left=t.left)),o==e.to.col&&(r++,t.hasOwnProperty("right")&&(i.right=t.right)),r>0&&(this.setCellMeta(n,o,"borders",i),s(i))}},c=function(t,e){return"border_row"+t+"col"+e},u=function(){return{width:1,color:"#000"}},d=function(){return{hide:!0}},g=function(){return{width:1,color:"#000",cornerVisible:!1}},h=function(t,e){return{className:c(t,e),border:g(),row:t,col:e,top:d(),right:d(),bottom:d(),left:d()}},p=function(t,e){return e.hasOwnProperty("border")&&(t.border=e.border),e.hasOwnProperty("top")&&(t.top=e.top),e.hasOwnProperty("right")&&(t.right=e.right),e.hasOwnProperty("bottom")&&(t.bottom=e.bottom),e.hasOwnProperty("left")&&(t.left=e.left),t},M=function(t){for(var e=document.getElementsByClassName(t),n=0;n✓"+t},E=function(t){this.getSettings().customBorders&&(t.items.bordersCellsSeparator=o.ContextMenu.SEPARATOR,t.items.borders={name:"Borders",submenu:{items:{top:{name:function(){var t="Top",e=I(this,"top");return e&&(t=y(t)),t},callback:function(){var t=I(this,"top");C.call(this,this.getSelectedRange(),"top",t)},disabled:!1},right:{name:function(){var t="Right",e=I(this,"right");return e&&(t=y(t)),t},callback:function(){var t=I(this,"right");C.call(this,this.getSelectedRange(),"right",t)},disabled:!1},bottom:{name:function(){var t="Bottom",e=I(this,"bottom");return e&&(t=y(t)),t},callback:function(){var t=I(this,"bottom");C.call(this,this.getSelectedRange(),"bottom",t)},disabled:!1},left:{name:function(){var t="Left",e=I(this,"left");return e&&(t=y(t)),t},callback:function(){var t=I(this,"left");C.call(this,this.getSelectedRange(),"left",t)},disabled:!1},remove:{name:"Remove border(s)",callback:function(){C.call(this,this.getSelectedRange(),"noBorders")},disabled:function(){return!I(this)}}}}})};o.hooks.add("beforeInit",i),o.hooks.add("afterContextMenuDefaultOptions",E),o.hooks.add("afterInit",function(){var t=this.getSettings().customBorders;if(t){for(var e=0;e=0){d=e;var n=g.getBoundingClientRect();u=n.top,h.style.top=u+"px",h.style.left=n.left+"px",X.rootElement[0].appendChild(h)}}function i(t){var e=t.getBoundingClientRect();h.style.top=e.top+"px"}function r(){var t=this;e.Dom.addClass(h,"active"),e.Dom.addClass(p,"active");var n=g.getBoundingClientRect();p.style.width=t.view.maximumVisibleElementWidth(0)+"px",p.style.height=n.height+"px",p.style.top=u+"px",p.style.left=h.style.left,t.rootElement[0].appendChild(p)}function a(t){p.style.top=u+t+"px"}function s(){e.Dom.removeClass(h,"active"),e.Dom.removeClass(p,"active")}var l,A,c,u,d,g,h=document.createElement("DIV"),p=document.createElement("DIV"),f=t(n);h.className="manualRowMover",p.className="manualRowMoverGuide";var M=function(){var t=this;e.hooks.run(t,"persistentStateSave","manualRowPositions",t.manualRowPositions)},w=function(){var t=this,n={};return e.hooks.run(t,"persistentStateLoad","manualRowPositions",n),n.value},T=function(){var t,n=this;n.rootElement.on("mouseenter.manualRowMove."+n.guid,"table tbody tr > th",function(e){t?(A=n.view.wt.wtTable.getCoords(e.currentTarget).row,i(e.currentTarget)):o.call(n,e.currentTarget)}),n.rootElement.on("mousedown.manualRowMove."+n.guid,".manualRowMover",function(e){c=e.pageY,r.call(n),t=n,l=d,A=d}),f.on("mousemove.manualRowMove."+n.guid,function(e){t&&a(e.pageY-c)}),f.on("mouseup.manualRowMove."+n.guid,function(){t&&(s(),t=!1,l th"),t.rootElement.off("mousedown.manualRowMove."+t.guid,".manualRowMover"),f.off("mousemove.manualRowMove."+t.guid),f.off("mouseup.manualRowMove."+t.guid)},I=function(t,e){if(t.length0&&(e.forceFullRender=!0,e.render()))}else C.call(this),e.manualRowPositions=[]},this.modifyRow=function(t){var e=this;return e.getSettings().manualRowMove?("undefined"==typeof e.manualRowPositions[t]&&I(this.manualRowPositions,t+1),e.manualRowPositions[t]):t}}var i=new o;e.hooks.add("beforeInit",i.beforeInit),e.hooks.add("afterInit",function(){i.init.call(this,"afterInit")}),e.hooks.add("afterUpdateSettings",function(){i.init.call(this,"afterUpdateSettings")}),e.hooks.add("modifyRow",i.modifyRow),e.hooks.register("afterRowMove")}(o),function(e){function o(o){this.instance=o,this.addingStarted=!1;var i,r,a=(t(document),!1),s=this,l=function(t){return!o.autofill||void(o.autofill.handle&&o.autofill.handle.isDragged&&(o.autofill.handle.isDragged>1&&o.autofill.apply(),o.autofill.handle.isDragged=0,a=!1))};t(document).off("mouseup.autofill."+o.guid,this.instance.rootElement).on("mouseup.autofill."+o.guid,this.instance.rootElement,function(t){l(t)}),t(document).off("mousemove.moveOutside_"+o.guid).on("mousemove.moveOutside_"+o.guid,function(t){if(!s.instance.autofill)return 0;var o=e.Dom.offset(s.instance.$table[0]).top-(n.pageYOffset||document.documentElement.scrollTop)+e.Dom.outerHeight(s.instance.$table[0]),i=e.Dom.offset(s.instance.$table[0]).left-(n.pageXOffset||document.documentElement.scrollLeft)+e.Dom.outerWidth(s.instance.$table[0]);s.addingStarted===!1&&s.instance.autofill.handle.isDragged>0&&t.clientY>o&&t.clientX<=i?(this.mouseDragOutside=!0,s.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&setTimeout(function(){s.addingStarted=!1,s.instance.alter("insert_row")},200)}),i=this.instance.view.wt.wtSettings.settings.onCellCornerMouseDown,this.instance.view.wt.wtSettings.settings.onCellCornerMouseDown=function(t){o.autofill.handle.isDragged=1,a=!0,i(t)},r=this.instance.view.wt.wtSettings.settings.onCellMouseOver,this.instance.view.wt.wtSettings.settings.onCellMouseOver=function(t,e,n,i){o.autofill&&a&&!o.view.isMouseDown()&&o.autofill.handle&&o.autofill.handle.isDragged&&(o.autofill.handle.isDragged++,o.autofill.showBorder(e),o.autofill.checkIfNewRowNeeded()),r(t,e,n,i)},this.instance.view.wt.wtSettings.settings.onCellCornerDblClick=function(){o.autofill.selectAdjacent()}}o.prototype.init=function(){this.handle={}},o.prototype.disable=function(){this.handle.disabled=!0},o.prototype.selectAdjacent=function(){var t,e,n,o,i;t=this.instance.selection.isMultiple()?this.instance.view.wt.selections.area.getCorners():this.instance.view.wt.selections.current.getCorners(),e=this.instance.getData();t:for(n=t[2]+1;nn[3]?(o=new p(t[0],n[3]+1),i=new p(t[2],t[3])):t[0]n[2]&&t[1]===n[1]&&(o=new p(n[2]+1,t[1]),i=new p(t[2],t[3])),o)){var a={from:this.instance.getSelectedRange().from,to:this.instance.getSelectedRange().to};r=this.instance.getData(a.from.row,a.from.col,a.to.row,a.to.col),e.hooks.run(this.instance,"beforeAutofill",o,i,r),this.instance.populateFromArray(o.row,o.col,r,i.row,i.col,"autofill"),this.instance.selection.setRangeStart(new p(t[0],t[1])),this.instance.selection.setRangeEnd(new p(t[2],t[3]))}},o.prototype.showBorder=function(t){var e=this.instance.getSelectedRange().getTopLeftCorner(),n=this.instance.getSelectedRange().getBottomRightCorner();if("horizontal"!==this.instance.getSettings().fillHandle&&(n.rowt.row))t=new p(t.row,n.col);else{if("vertical"===this.instance.getSettings().fillHandle)return;t=new p(n.row,t.col)}this.instance.view.wt.selections.fill.clear(),this.instance.view.wt.selections.fill.add(this.instance.getSelectedRange().from),this.instance.view.wt.selections.fill.add(this.instance.getSelectedRange().to),this.instance.view.wt.selections.fill.add(t),this.instance.view.render()},o.prototype.checkIfNewRowNeeded=function(){var t,e=this.instance.countRows(),n=this;this.instance.view.wt.selections.fill.cellRange&&this.addingStarted===!1&&(t=this.instance.view.wt.selections.fill.getCorners(),t[2]===e-1&&(this.addingStarted=!0,this.instance._registerTimeout(setTimeout(function(){n.instance.alter("insert_row"),n.addingStarted=!1},200))))},e.hooks.add("afterInit",function(){var t=new o(this);"undefined"!=typeof this.getSettings().fillHandle&&(t.handle&&this.getSettings().fillHandle===!1?t.disable():t.handle||this.getSettings().fillHandle===!1||(this.autofill=t,this.autofill.init()))}),e.Autofill=o}(o),d.prototype.init=function(){this.TABLE=this.instance.wtTable.TABLE,this.fixed=this.instance.wtTable.hider,this.fixedContainer=this.instance.wtTable.holder,this.scrollHandler=this.getScrollableElement(this.TABLE),this.$scrollHandler=t(this.scrollHandler)},d.prototype.makeClone=function(t){var e=document.createElement("DIV");e.className="ht_clone_"+t+" handsontable",e.style.position="absolute",e.style.overflow="hidden";var n=document.createElement("TABLE");return n.className=this.instance.wtTable.TABLE.className,e.appendChild(n),this.instance.wtTable.holder.parentNode.appendChild(e),new C({cloneSource:this.instance,cloneOverlay:this,table:n})},d.prototype.getScrollableElement=function(t){for(var e=t.parentNode;e&&e.style;){if("visible"!==e.style.overflow&&""!==e.style.overflow)return e;if(this instanceof x&&"visible"!==e.style.overflowX&&""!==e.style.overflowX)return e;e=e.parentNode}return n},d.prototype.onScroll=function(){this.windowScrollPosition=this.getScrollPosition(),this.readSettings(),this.resetFixedPosition()},d.prototype.availableSize=function(){var t;return t=this.windowScrollPosition>this.tableParentOffset?this.instance.wtTable.getLastVisibleRow()===this.total-1?o.Dom.outerHeight(this.TABLE):this.windowSize:this.windowSize-this.tableParentOffset},d.prototype.refresh=function(t){this.clone&&this.clone.draw(t)},d.prototype.destroy=function(){this.$scrollHandler.off("."+this.clone.guid),t(n).off("."+this.clone.guid),t(document).off("."+this.clone.guid),t(document.body).off("."+this.clone.guid)},g.prototype.getSize=function(t){return this.cellSizes[t]},g.prototype.getContainerSize=function(t){return"function"==typeof this.containerSizeFn?this.containerSizeFn(t):this.containerSizeFn},g.prototype.countVisible=function(){return this.cellCount},g.prototype.isLastIncomplete=function(){return this.remainingSize>0},h.prototype.appear=function(t){var e,n,i,r,a,s,l,A,c,u,d,g;if(!this.disabled){var h,f,M,w,T,C,I,y=this.instance;for(C=y.cloneOverlay instanceof v||y.cloneOverlay instanceof D?y.getSetting("fixedRowsTop"):y.wtTable.getRowStrategy().countVisible(),T=0;T=t[0]&&I<=t[2]){h=I;break}for(T=C-1;T>=0;T--)if(I=y.wtTable.rowFilter.visibleToSource(T),I>=t[0]&&I<=t[2]){M=I;break}for(C=y.cloneOverlay instanceof x||y.cloneOverlay instanceof D?y.getSetting("fixedColumnsLeft"):y.wtTable.getColumnStrategy().cellCount,T=0;T=t[1]&&I<=t[3]){f=I;break}for(T=C-1;T>=0;T--)if(I=y.wtTable.columnFilter.visibleToSource(T),I>=t[1]&&I<=t[3]){w=I;break}if(void 0===h||void 0===f)return void this.disappear();e=h!==M||f!==w,n=y.wtTable.getCell(new p(h,f)),i=e?y.wtTable.getCell(new p(M,w)):n,r=o.Dom.offset(n),a=e?o.Dom.offset(i):r,s=o.Dom.offset(y.wtTable.TABLE),A=r.top,d=a.top+o.Dom.outerHeight(i)-A,u=r.left,g=a.left+o.Dom.outerWidth(i)-u,l=A-s.top-1,c=u-s.left-1;var E=o.Dom.getComputedStyle(n);parseInt(E.borderTopWidth,10)>0&&(l+=1,d=d>0?d-1:0),parseInt(E.borderLeftWidth,10)>0&&(c+=1,g=g>0?g-1:0),this.topStyle.top=l+"px",this.topStyle.left=c+"px",this.topStyle.width=g+"px",this.topStyle.display="block",this.leftStyle.top=l+"px",this.leftStyle.left=c+"px",this.leftStyle.height=d+"px",this.leftStyle.display="block";var N=Math.floor(this.settings.border.width/2);this.bottomStyle.top=l+d-N+"px",this.bottomStyle.left=c+"px",this.bottomStyle.width=g+"px",this.bottomStyle.display="block",this.rightStyle.top=l+"px",this.rightStyle.left=c+g-N+"px",this.rightStyle.height=d+1+"px",this.rightStyle.display="block",this.hasSetting(this.settings.border.cornerVisible)?(this.cornerStyle.top=l+d-4+"px",this.cornerStyle.left=c+g-4+"px",this.cornerStyle.display="block"):this.cornerStyle.display="none"}},h.prototype.disappear=function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none"},h.prototype.hasSetting=function(t){return"function"==typeof t?t():!!t},p.prototype.isValid=function(t){return!(this.row<0||this.col<0)&&!(this.row>=t.getSetting("totalRows")||this.col>=t.getSetting("totalColumns"))},p.prototype.isEqual=function(t){return t===this||this.row===t.row&&this.col===t.col},p.prototype.isSouthEastOf=function(t){return this.row>=t.row&&this.col>=t.col},p.prototype.isNorthWestOf=function(t){return this.row<=t.row&&this.col<=t.col},n.WalkontableCellCoords=p,f.prototype.isValid=function(t){return this.from.isValid(t)&&this.to.isValid(t)},f.prototype.isSingle=function(){return this.from.row===this.to.row&&this.from.col===this.to.col},f.prototype.includes=function(t){var e=this.getTopLeftCorner(),n=this.getBottomRightCorner();return e.row<=t.row&&n.row>=t.row&&e.col<=t.col&&n.col>=t.col},f.prototype.includesRange=function(t){return this.includes(t.getTopLeftCorner())&&this.includes(t.getBottomRightCorner())},f.prototype.overlaps=function(t){return t.isSouthEastOf(this.getTopLeftCorner())&&t.isNorthWestOf(this.getBottomRightCorner())},f.prototype.isSouthEastOf=function(t){return this.getTopLeftCorner().isSouthEastOf(t)||this.getBottomRightCorner().isSouthEastOf(t)},f.prototype.isNorthWestOf=function(t){return this.getTopLeftCorner().isNorthWestOf(t)||this.getBottomRightCorner().isNorthWestOf(t)},f.prototype.expand=function(t){var e=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(t.rown.row||t.col>n.col)&&(this.from=new p(Math.min(e.row,t.row),Math.min(e.col,t.col)),this.to=new p(Math.max(n.row,t.row),Math.max(n.col,t.col)),!0)},f.prototype.expandByRange=function(t){if(this.includesRange(t)||!this.overlaps(t))return!1;var e=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.getTopLeftCorner(),i=t.getBottomRightCorner(),r=Math.min(e.row,o.row),a=Math.min(e.col,o.col),s=Math.max(n.row,i.row),l=Math.max(n.col,i.col);return this.from=new p(r,a),this.to=new p(s,l),!0},f.prototype.getTopLeftCorner=function(){return new p(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))},f.prototype.getBottomRightCorner=function(){return new p(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},f.prototype.getInner=function(){for(var t=this.getTopLeftCorner(),e=this.getBottomRightCorner(),n=[],o=t.row;o<=e.row;o++)for(var i=t.col;i<=e.col;i++)this.from.row===o&&this.from.col===i||this.to.row===o&&this.to.col===i||n.push(new p(o,i));return n},f.prototype.getAll=function(){for(var t=this.getTopLeftCorner(),e=this.getBottomRightCorner(),n=[],o=t.row;o<=e.row;o++)for(var i=t.col;i<=e.col;i++)t.row===o&&t.col===i?n.push(t):e.row===o&&e.col===i?n.push(e):n.push(new p(o,i));return n},f.prototype.forAll=function(t){for(var e=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=e.row;o<=n.row;o++)for(var i=e.col;i<=n.col;i++){var r=t(o,i);if(r===!1)return}},n.WalkontableCellRange=f,M.prototype.add=function(t,e,n){this.cache[t]||(this.cache[t]=[]),this.cache[t][e]||(this.cache[t][e]=[]),this.cache[t][e][n]=!0},M.prototype.remove=function(t,e,n){this.test(t,e,n)&&(this.cache[t][e][n]=void 0)},M.prototype.test=function(t,e,n){return this.cache[t]&&this.cache[t][e]&&this.cache[t][e][n]},w.prototype.visibleToSource=function(t){return t},w.prototype.sourceToVisible=function(t){return t},w.prototype.offsettedTH=function(t){return t-this.countTH},w.prototype.unOffsettedTH=function(t){return t+this.countTH},w.prototype.visibleRowHeadedColumnToSourceColumn=function(t){return this.visibleToSource(this.offsettedTH(t))},w.prototype.sourceColumnToVisibleRowHeadedColumn=function(t){return this.unOffsettedTH(this.sourceToVisible(t))},T.prototype=new g,T.prototype.getSize=function(t){return this.cellSizes[t]+(this.cellStretch[t]||0)},T.prototype.stretch=function(){var t,e=0;if(t=this.instance.wtTable.allRowsInViewport()?this.getContainerSize():this.getContainerSize(1/0),this.remainingSize=this.cellSizesSum-t,this.cellStretch.length=0,"all"===this.strategy){if(this.remainingSize<0){for(var n,o=t/this.cellSizesSum;e=a},C.prototype.draw=function(t){if(this.drawInterrupted=!1,!t&&!o.Dom.isVisible(this.wtTable.TABLE))return void(this.drawInterrupted=!0);t=t&&this.getSetting("offsetRow")===this.lastOffsetRow,this.lastOffsetRow=this.getSetting("offsetRow");var e=this.getSetting("totalRows");return this.lastOffsetRow>e&&e>0&&(this.scrollVertical(-(1/0)),this.scrollViewport(new p(e-1,0))),this.wtTable.draw(t),this},C.prototype.update=function(t,e){return this.wtSettings.update(t,e)},C.prototype.scrollVertical=function(t){var e=this.wtScroll.scrollVertical(t);return this.getSetting("onScrollVertically"),e},C.prototype.scrollHorizontal=function(t){var e=this.wtScroll.scrollHorizontal(t);return this.getSetting("onScrollHorizontally"),e},C.prototype.scrollViewport=function(t){return this.wtScroll.scrollViewport(t),this},C.prototype.getViewport=function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]},C.prototype.getSetting=function(t,e,n,o,i){return this.wtSettings.getSetting(t,e,n,o,i)},C.prototype.hasSetting=function(t){return this.wtSettings.has(t)},C.prototype.destroy=function(){t(n).off("."+this.guid),t(document.body).off("."+this.guid),this.wtScrollbars.destroy(),this.wtEvent&&this.wtEvent.destroy()},I.prototype=new d,I.prototype.resetFixedPosition=function(){if(this.instance.wtTable.holder.parentNode){var t=this.clone.wtTable.holder.parentNode,e=this.instance.wtTable.holder.getBoundingClientRect();t.style.top=Math.ceil(e.top,10)+"px",t.style.left=Math.ceil(e.left,10)+"px"}},I.prototype.getScrollPosition=function(){},I.prototype.getLastCell=function(){},I.prototype.applyToDOM=function(){},I.prototype.scrollTo=function(){},I.prototype.readWindowSize=function(){},I.prototype.readSettings=function(){},I.prototype.destroy=function(){d.prototype.destroy.call(this),clearTimeout(this.lastTimeout)},y.prototype.parentCell=function(t){var e={},n=this.instance.wtTable.TABLE,i=o.Dom.closest(t,["TD","TH"],n);return i&&o.Dom.isChildOf(i,n)?(e.coords=this.instance.wtTable.getCoords(i),e.TD=i):o.Dom.hasClass(t,"wtBorder")&&o.Dom.hasClass(t,"current")?(e.coords=this.instance.selections[0].cellRange.highlight,e.TD=this.instance.wtTable.getCell(e.coords)):o.Dom.hasClass(t,"wtBorder")&&o.Dom.hasClass(t,"area")&&(e.coords=this.instance.selections[1].cellRange.to,e.TD=this.instance.wtTable.getCell(e.coords)),e},y.prototype.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1])},n.requestAnimFrame=function(){return n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(t,e){return n.setTimeout(t,1e3/60)}}(),n.cancelRequestAnimFrame=function(){return n.cancelAnimationFrame||n.webkitCancelRequestAnimationFrame||n.mozCancelRequestAnimationFrame||n.oCancelRequestAnimationFrame||n.msCancelRequestAnimationFrame||clearTimeout}(),n.getComputedStyle||!function(){var t,e={getPropertyValue:function(e){return"float"==e&&(e="styleFloat"),t.currentStyle[e.toUpperCase()]||null}};n.getComputedStyle=function(n){return t=n,e}}(),!String.prototype.trim){var ot=/^\s+|\s+$/g;String.prototype.trim=function(){return this.replace(ot,"")}}N.prototype.offsetted=function(t){return t+this.offset},N.prototype.unOffsetted=function(t){return t-this.offset},N.prototype.visibleToSource=function(t){return this.offsetted(t)},N.prototype.sourceToVisible=function(t){return this.unOffsetted(t)},N.prototype.offsettedTH=function(t){return t-this.countTH},N.prototype.visibleColHeadedRowToSourceRow=function(t){return this.visibleToSource(this.offsettedTH(t))},N.prototype.sourceRowToVisibleColHeadedRow=function(t){return this.unOffsettedTH(this.sourceToVisible(t))},m.prototype=new g,m.prototype.add=function(t,e){var n=this.sizeAtIndex(t,e);if(void 0===n)return!1;var o=this.getContainerSize(this.cellSizesSum+n);return this.cellSizes.push(n),this.cellSizesSum+=n,this.cellCount++,this.remainingSize=this.cellSizesSum-o,this.visiblCellCount++,!0},m.prototype.canRenderMoreRows=function(){return this.remainingSize<=0||this.cellCount-this.visiblCellCountthis.curOuts;)this.remove()},m.prototype.countRendered=function(){return this.cellCount},m.prototype.countVisible=function(){return this.visiblCellCount},m.prototype.isLastIncomplete=function(){var t=this.instance.wtTable.getLastVisibleRow(),e=this.instance.wtTable.getFirstVisibleColumn(),n=this.instance.wtTable.getCell(new p(t,e)),i=o.Dom.offset(n).top,r=o.Dom.outerHeight(n),a=i+r,s=this.instance.wtScrollbars.horizontal.scrollHandler.offsetTop+this.instance.wtScrollbars.vertical.getScrollPosition(),l=this.instance.wtViewport.getViewportHeight(),A=s+l;return A0&&!this.instance.wtTable.isLastRowFullyVisible()?this.scrollLogicVertical(t,o,r,i,a,function(t){return t-o=0?n.getSetting("rowHeight",t-o):n.getSetting("rowHeight",t)}):0,e!==o&&this.instance.wtScrollbars.vertical.scrollTo(e),n},b.prototype.scrollHorizontal=function(t){return this.instance.wtScrollbars.horizontal.scrollTo(t),this.instance},b.prototype.scrollLogicVertical=function(t,e,n,o,i,r){var a=e+t;return a>=n-o&&(a=n-o-1),a<0&&(a=0),a},b.prototype.scrollViewport=function(t){if(!this.instance.drawn,0){var e=(this.instance.getSetting("offsetRow"),this.instance.getSetting("totalRows")),n=this.instance.getSetting("totalColumns");if(t.row<0||t.row>e-1)throw new Error("row "+t.row+" does not exist");if(t.col<0||t.col>n-1)throw new Error("column "+t.col+" does not exist");var o=this.instance.wtTable.getCell(t);"object"===("undefined"==typeof o?"undefined":r(o))?t.col>=this.instance.getSetting("fixedColumnsLeft")&&this.scrollToRenderedCell(o):t.row>=this.instance.wtTable.getLastVisibleRow()?(this.scrollVertical(t.row-this.instance.wtTable.getLastVisibleRow()),t.row==this.instance.wtTable.getLastVisibleRow()&&this.instance.wtTable.getRowStrategy().isLastIncomplete()&&this.scrollViewport(t)):t.row>=this.instance.getSetting("fixedRowsTop")&&this.scrollVertical(t.row-this.instance.wtTable.getFirstVisibleRow())}},b.prototype.scrollToRenderedCell=function(t){var e=o.Dom.offset(t),i=o.Dom.outerWidth(t),r=o.Dom.outerHeight(t),a=o.Dom.offset(this.instance.wtTable.TABLE),s={left:this.instance.wtScrollbars.horizontal.getScrollPosition(),top:this.instance.wtScrollbars.vertical.getScrollPosition()},l=this.instance.wtViewport.getWorkspaceWidth(),A=this.instance.wtViewport.getWorkspaceHeight(),c=o.Dom.outerWidth(this.instance.wtScrollbars.horizontal.clone.wtTable.TABLE),u=o.Dom.outerHeight(this.instance.wtScrollbars.vertical.clone.wtTable.TABLE);if(this.instance.wtScrollbars.horizontal.scrollHandler!==n&&(a.left=0,e.left-=o.Dom.offset(this.instance.wtScrollbars.horizontal.scrollHandler).left),this.instance.wtScrollbars.vertical.scrollHandler!==n&&(a.top=0,e.top=e.top-o.Dom.offset(this.instance.wtScrollbars.vertical.scrollHandler).top),ia.left+s.left+l){var d=e.left+i-(a.left+s.left+l);this.instance.wtScrollbars.horizontal.setScrollPosition(s.left+d)}rs.top+A&&(this.instance.wtScrollbars.vertical.setScrollPosition(e.top-A+r),this.instance.wtScrollbars.vertical.onScroll()))},D.prototype=new d,D.prototype.resetFixedPosition=function(){if(this.instance.wtTable.holder.parentNode){var t=this.clone.wtTable.holder.parentNode;if(this.scrollHandler===n){var e=this.instance.wtTable.holder.getBoundingClientRect(),i=Math.ceil(e.top),r=Math.ceil(e.left);r<0?t.style.left=-r+"px":t.style.left="0",i<0?t.style.top=-i+"px":t.style.top="0"}else t.style.top=this.instance.wtScrollbars.vertical.windowScrollPosition+"px",t.style.left=this.instance.wtScrollbars.horizontal.windowScrollPosition+"px";t.style.width=o.Dom.outerWidth(this.clone.wtTable.TABLE)+4+"px",t.style.height=o.Dom.outerHeight(this.clone.wtTable.TABLE)+4+"px"}},D.prototype.refresh=function(t){d.prototype.refresh.call(this,t)},D.prototype.getScrollPosition=function(){},D.prototype.getLastCell=function(){},D.prototype.applyToDOM=function(){},D.prototype.scrollTo=function(){},D.prototype.readWindowSize=function(){},D.prototype.readSettings=function(){},x.prototype=new d,x.prototype.resetFixedPosition=function(){if(this.instance.wtTable.holder.parentNode){var t=this.clone.wtTable.holder.parentNode;if(this.scrollHandler===n){var e=this.instance.wtTable.holder.getBoundingClientRect(),i=Math.ceil(e.left);i<0?t.style.left=-i+"px":t.style.left="0",t.style.top=this.instance.wtTable.hider.style.top}else t.style.top=this.instance.wtTable.hider.style.top,t.style.left=this.windowScrollPosition+"px";t.style.height=o.Dom.outerHeight(this.clone.wtTable.TABLE)+"px",t.style.width=o.Dom.outerWidth(this.clone.wtTable.TABLE)+4+"px"}},x.prototype.refresh=function(t){d.prototype.refresh.call(this,t)},x.prototype.getScrollPosition=function(){return o.Dom.getScrollLeft(this.scrollHandler)},x.prototype.setScrollPosition=function(t){this.scrollHandler===n?n.scrollTo(t,o.Dom.getWindowScrollTop()):this.scrollHandler.scrollLeft=t},x.prototype.onScroll=function(){d.prototype.onScroll.call(this),this.instance.getSetting("onScrollHorizontally")},x.prototype.getLastCell=function(){return this.instance.wtTable.getLastVisibleColumn()},x.prototype.applyToDOM=function(){this.readWindowSize()},x.prototype.scrollTo=function(t){this.setScrollPosition(this.tableParentOffset+t*this.cellSize)},x.prototype.readWindowSize=function(){this.scrollHandler===n?(this.windowSize=document.documentElement.clientWidth,this.tableParentOffset=this.instance.wtTable.holderOffset.left):(this.windowSize=this.scrollHandler.clientWidth,this.tableParentOffset=0),this.windowScrollPosition=this.getScrollPosition()},x.prototype.readSettings=function(){this.readWindowSize(),this.total=this.instance.getSetting("totalColumns")},v.prototype=new d,v.prototype.resetFixedPosition=function(){if(this.instance.wtTable.holder.parentNode){var t=this.clone.wtTable.holder.parentNode;if(this.scrollHandler===n){var e=this.instance.wtTable.holder.getBoundingClientRect(),i=Math.ceil(e.top);t.style.left="0",i<0?t.style.top=-i+"px":t.style.top="0"}else t.style.top=this.windowScrollPosition+"px",t.style.left="0";this.instance.wtScrollbars.horizontal.scrollHandler===n?t.style.width=this.instance.wtViewport.getWorkspaceActualWidth()+"px":t.style.width=o.Dom.outerWidth(this.clone.wtTable.TABLE)+"px",t.style.height=o.Dom.outerHeight(this.clone.wtTable.TABLE)+4+"px"}},v.prototype.getScrollPosition=function(){return o.Dom.getScrollTop(this.scrollHandler)},v.prototype.setScrollPosition=function(t){this.scrollHandler===n?n.scrollTo(o.Dom.getWindowScrollLeft(),t):this.scrollHandler.scrollTop=t},v.prototype.onScroll=function(){},v.prototype.getLastCell=function(){return this.instance.getSetting("offsetRow")+this.instance.wtTable.tbodyChildrenLength-1},v.prototype.sumCellSizes=function(t,e){for(var n=0;t0&&this.scrollHandler.clientHeight>0?this.scrollHandler.clientHeight:1/0,this.tableParentOffset=0}this.windowScrollPosition=this.getScrollPosition()},v.prototype.readSettings=function(){this.readWindowSize(),this.offset=this.instance.getSetting("offsetRow"),this.total=this.instance.getSetting("totalRows");for(var t,e=this.windowScrollPosition-this.tableParentOffset,n=0,o=0;oe));o++);this.offset=Math.min(o,this.total),this.instance.update("offsetRow",this.offset)},B.prototype.registerListeners=function(){function e(){if(s.instance.drawn){if(!s.instance.wtTable.holder.parentNode)return void s.destroy();s.vertical.windowScrollPosition=s.vertical.getScrollPosition(),s.horizontal.windowScrollPosition=s.horizontal.getScrollPosition(),s.box=s.instance.wtTable.hider.getBoundingClientRect(),s.vertical.windowScrollPosition===o&&s.horizontal.windowScrollPosition===i&&s.box.top===r&&s.box.left===a||(s.vertical.onScroll(),s.horizontal.onScroll(),s.corner.onScroll(),o=s.vertical.windowScrollPosition,i=s.horizontal.windowScrollPosition,r=s.box.top,a=s.box.left)}}var o,i,r,a,s=this,l=t(n);this.vertical.$scrollHandler.on("scroll."+this.instance.guid,e),this.vertical.scrollHandler!==this.horizontal.scrollHandler&&this.horizontal.$scrollHandler.on("scroll."+this.instance.guid,e),this.vertical.scrollHandler!==n&&this.horizontal.scrollHandler!==n&&l.on("scroll."+this.instance.guid,e)},B.prototype.destroy=function(){this.vertical&&(this.vertical.destroy(),this.vertical.$scrollHandler.off("scroll."+this.instance.guid)),this.horizontal&&(this.horizontal.destroy(),this.vertical.$scrollHandler.off("scroll."+this.instance.guid)),t(n).off("scroll."+this.instance.guid),this.corner&&this.corner.destroy(),this.debug&&this.debug.destroy()},B.prototype.refresh=function(t){},B.prototype.applyToDOM=function(){this.horizontal&&this.horizontal.applyToDOM(),this.vertical&&this.vertical.applyToDOM(),this.corner&&this.corner.applyToDOM(),this.debug&&this.debug.applyToDOM()},L.prototype.getBorder=function(t){return this.instanceBorders[t.guid]?this.instanceBorders[t.guid]:void(this.instanceBorders[t.guid]=new h(t,this.settings))},L.prototype.isEmpty=function(){return null===this.cellRange},L.prototype.add=function(t){this.isEmpty()?this.cellRange=new f(t,t,t):this.cellRange.expand(t)},L.prototype.replace=function(t,e){if(!this.isEmpty()){if(this.cellRange.from.isEqual(t))return this.cellRange.from=e,!0;if(this.cellRange.to.isEqual(t))return this.cellRange.to=e,!0}return!1},L.prototype.clear=function(){this.cellRange=null},L.prototype.getCorners=function(){var t=this.cellRange.getTopLeftCorner(),e=this.cellRange.getBottomRightCorner();return[t.row,t.col,e.row,e.col]},L.prototype.draw=function(t){var e,n,o,i,r,a=t.wtTable.getRowStrategy().countVisible(),s=t.wtTable.getColumnStrategy().cellCount;if(this.isEmpty()){if(this.settings.border){var l=this.getBorder(t);l&&l.disappear()}}else{for(e=this.getCorners(),n=0;n=e[0]&&i<=e[2]&&r>=e[1]&&r<=e[3]?this.settings.className&&t.wtTable.currentCellCache.add(n,o,this.settings.className):i>=e[0]&&i<=e[2]?(t.wtTable.currentCellCache.add(n,o,this.settings.highlightRowClassName),t.wtTable.currentCellCache.add(n,s,this.settings.highlightRowClassName)):r>=e[1]&&r<=e[3]&&(t.wtTable.currentCellCache.add(n,o,this.settings.highlightColumnClassName),t.wtTable.currentCellCache.add(a,o,this.settings.highlightColumnClassName));if(t.getSetting("onBeforeDrawBorders",e,this.settings.className),this.settings.border){var l=this.getBorder(t);l&&l.appear(e)}}},S.prototype.update=function(t,e){if(void 0===e)for(var n in t)t.hasOwnProperty(n)&&(this.settings[n]=t[n]);else this.settings[t]=e;return this.instance},S.prototype.getSetting=function(t,e,n,o,i){return"function"==typeof this.settings[t]?this.settings[t](e,n,o,i):void 0!==e&&"[object Array]"===Object.prototype.toString.call(this.settings[t])?this.settings[t][e]:this.settings[t]},S.prototype.has=function(t){return!!this.settings[t]},Q.prototype.getRowStrategy=function(){return this.isWorkingOnClone()?this.instance.cloneSource.wtTable.rowStrategy:this.rowStrategy},Q.prototype.getColumnStrategy=function(){return this.isWorkingOnClone()?this.instance.cloneSource.wtTable.columnStrategy:this.columnStrategy},Q.prototype.isWorkingOnClone=function(){return!!this.instance.cloneSource},Q.prototype.refreshHiderDimensions=function(){var t=this.spreader.style;t.position="relative",t.width="auto",t.height="auto"},Q.prototype.draw=function(t){if(t)this.instance.wtScrollbars&&this.instance.wtScrollbars.refresh(!0);else{this.isWorkingOnClone()?this.tableOffset=this.instance.cloneSource.wtTable.tableOffset:(this.holderOffset=o.Dom.offset(this.holder),this.tableOffset=o.Dom.offset(this.TABLE),this.instance.wtScrollbars.vertical.readSettings(),this.instance.wtScrollbars.horizontal.readSettings(),this.instance.wtViewport.resetSettings());var e;e=this.instance.cloneOverlay instanceof I||this.instance.cloneOverlay instanceof v||this.instance.cloneOverlay instanceof D?0:this.instance.wtSettings.settings.offsetRow,this.rowFilter=new N(0,this.instance.getSetting("totalRows"),this.instance.getSetting("columnHeaders").length),this.columnFilter=new w(this.instance.getSetting("totalColumns"),this.instance.getSetting("rowHeaders").length),this._doDraw()}return this.refreshPositions(t),t||this.isWorkingOnClone()||(this.instance.wtScrollbars.vertical.resetFixedPosition(),this.instance.wtScrollbars.horizontal.resetFixedPosition(),this.instance.wtScrollbars.corner.resetFixedPosition(),this.instance.wtScrollbars.debug&&this.instance.wtScrollbars.debug.resetFixedPosition()),this.instance.drawn=!0,this},Q.prototype._doDraw=function(){var t=new j(this);t.render()},Q.prototype.refreshPositions=function(t){this.refreshHiderDimensions(),this.refreshSelections(t)},Q.prototype.refreshSelections=function(t){var e,n,i,a,s,l,A,c=[],u=this.getRowStrategy().countVisible(),d=this.getColumnStrategy().cellCount;if(this.oldCellCache=this.currentCellCache,this.currentCellCache=new M(this.instance),this.instance.selections)for(var g=0,h=this.instance.selections.length;g=0},Q.prototype.isRowAfterViewport=function(t){return t>this.getLastVisibleRow()},Q.prototype.isColumnBeforeViewport=function(t){return this.columnFilter.sourceToVisible(t)<0&&t>=0},Q.prototype.isColumnAfterViewport=function(t){return t>this.getLastVisibleColumn()},Q.prototype.isRowInViewport=function(t){return!this.isRowBeforeViewport(t)&&!this.isRowAfterViewport(t)},Q.prototype.isColumnInViewport=function(t){return!this.isColumnBeforeViewport(t)&&!this.isColumnAfterViewport(t)},Q.prototype.isLastRowFullyVisible=function(){return this.getLastVisibleRow()===this.instance.getSetting("totalRows")-1&&!this.getRowStrategy().isLastIncomplete()},Q.prototype.isLastColumnFullyVisible=function(){return this.getLastVisibleColumn()===this.instance.getSetting("totalColumns")-1&&!this.getColumnStrategy().isLastIncomplete()},Q.prototype.getVisibleRowsCount=function(){return this.getRowStrategy().countVisible()},Q.prototype.allRowsInViewport=function(){return this.getRowStrategy().cellCount==this.getVisibleRowsCount()},j.prototype.render=function(){this.wtTable.isWorkingOnClone()||this.instance.getSetting("beforeDraw",!0),this.rowHeaders=this.instance.getSetting("rowHeaders"),this.rowHeaderCount=this.rowHeaders.length,this.fixedRowsTop=this.instance.getSetting("fixedRowsTop"),this.columnHeaders=this.instance.getSetting("columnHeaders");var t,e,n,o=this.instance.getSetting("totalRows"),i=this.instance.getSetting("totalColumns"),r=!1;if(i>0){var a;this.wtTable.isWorkingOnClone()&&(this.instance.cloneOverlay instanceof v||this.instance.cloneOverlay instanceof D?a=this.fixedRowsTop:this.instance.cloneOverlay instanceof x&&(a=this.wtTable.getRowStrategy().cellCount)),this.adjustAvailableNodes(),r=!0,this.renderColGroups(),this.renderColumnHeaders(),e=this.getColumnCount(),this.renderRows(o,a,e),this.wtTable.isWorkingOnClone()||(n=this.instance.wtViewport.getWorkspaceWidth(),this.instance.wtViewport.containerWidth=null,this.wtTable.getColumnStrategy().stretch()),this.adjustColumnWidths(e)}if(r||this.adjustAvailableNodes(),this.instance.cloneOverlay instanceof I||this.removeRedundantRows(),!this.wtTable.isWorkingOnClone()){if(this.markOversizedRows(),n!==this.instance.wtViewport.getWorkspaceWidth()){this.instance.wtViewport.containerWidth=null,this.wtTable.getColumnStrategy().stretch();var s=this.instance.wtTable.columnWidthCache;for(t=0;tt;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--},j.prototype.renderRows=function(t,e,n){for(var o,i,r,a=this.instance.getSetting("offsetRow"),s=0,l=this.rowFilter.visibleToSource(s),A=this.wtTable.isWorkingOnClone();l=0;){if(s>1e3)throw new Error("Security brake: Too much TRs. Please define height for your table, which will enforce scrollbars.");if(void 0!==e&&s===e)break;if(i=this.getOrCreateTrForRow(s,i),this.renderRowHeaders(l,i),this.adjustColumns(i,n+this.rowHeaderCount),o=this.renderCells(l,i,n),a=this.instance.getSetting("offsetRow"),!A){if(r=this.wtTable.getRowStrategy().add(s,o),r===!1)break;0==s&&this.instance.wtScrollbars.vertical.readWindowSize(),this.resetOversizedRow(l)}if(i.firstChild){var c=this.instance.getSetting("rowHeight",l);c?i.firstChild.style.height=c+"px":i.firstChild.style.height=""}s++,l=this.rowFilter.visibleToSource(s)}},j.prototype.resetOversizedRow=function(t){this.instance.wtTable.oversizedRows&&this.instance.wtTable.oversizedRows[t]&&(this.instance.wtTable.oversizedRows[t]=void 0)},j.prototype.markOversizedRows=function(){for(var t,e,n,i,r=this.instance.wtTable.TBODY.childNodes.length;r;)r--,n=this.instance.wtTable.rowFilter.visibleToSource(r),t=this.instance.wtSettings.settings.rowHeight(n),i=this.instance.wtTable.getTrForRow(n),e=o.Dom.innerHeight(i)-1,(!t&&this.instance.wtSettings.settings.defaultRowHeight=this.wtTable.tbodyChildrenLength?(n=this.createRow(),this.appendToTbody(n)):n=0===t?this.TBODY.firstChild:e.nextSibling,n},j.prototype.createRow=function(){for(var t=document.createElement("TR"),e=0;et+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength--,this.wtTable.columnWidthCache&&this.wtTable.columnWidthCache.splice(-1,1)},j.prototype.adjustThead=function(){var t=this.getColumnCount(),e=this.THEAD.firstChild;if(this.columnHeaders.length){for(e||(e=document.createElement("TR"),this.THEAD.appendChild(e)),this.theadChildrenLength=e.childNodes.length;this.theadChildrenLengtht+this.rowHeaderCount;)e.removeChild(e.lastChild),this.theadChildrenLength--}else e&&o.Dom.empty(e)},j.prototype.getTrForColumnHeaders=function(){var t=this.THEAD.firstChild;return this.rowHeaderCount&&this.renderRowHeaders(-1,t),t},j.prototype.renderColumnHeader=function(t,e){return this.columnHeaders[0](t,e)},j.prototype.getColumnCount=function(){return this.wtTable.isWorkingOnClone()&&(this.instance.cloneOverlay instanceof x||this.instance.cloneOverlay instanceof D)?this.instance.getSetting("fixedColumnsLeft"):this.wtTable.getColumnStrategy().cellCount},j.prototype.renderColGroups=function(){for(var t=0;te;)t.removeChild(t.lastChild),n--},j.prototype.refreshStretching=function(){if(!this.wtTable.isWorkingOnClone()){var t=this.instance,e=t.getSetting("stretchH"),n=(t.getSetting("totalRows"),t.getSetting("totalColumns")),o=function(t){var e=i.instance.wtViewport.getViewportWidth(t);return e},i=this,r=function(e){var o=i.columnFilter.visibleToSource(e);if(o0&&(e-=n),e},U.prototype.getRowHeaderWidth=function(){if(this.instance.cloneSource)return this.instance.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth)){var t=this.instance.getSetting("rowHeaders");if(t.length){var e=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var n=0,i=t.length;n0?e-n:e},U.prototype.resetSettings=function(){this.rowHeaderWidth=NaN,this.columnHeaderHeight=NaN}}(jQuery,window,Handsontable),function(){function n(t){this._value=t}function r(t,e,n,o){var i,r,a=Math.pow(10,e);return r=(n(t*a)/a).toFixed(e),o&&(i=new RegExp("0{1,"+o+"}$"),r=r.replace(i,"")),r}function a(t,e,n){var o;return o=e.indexOf("$")>-1?l(t,e,n):e.indexOf("%")>-1?A(t,e,n):e.indexOf(":")>-1?c(t,e):d(t._value,e,n)}function s(t,e){var n,o,i,r,a,s=e,l=["KB","MB","GB","TB","PB","EB","ZB","YB"],A=!1;if(e.indexOf(":")>-1)t._value=u(e);else if(e===C)t._value=0;else{for("."!==w[T].delimiters.decimal&&(e=e.replace(/\./g,"").replace(w[T].delimiters.decimal,".")),n=new RegExp("[^a-zA-Z]"+w[T].abbreviations.thousand+"(?:\\)|(\\"+w[T].currency.symbol+")?(?:\\))?)?$"),o=new RegExp("[^a-zA-Z]"+w[T].abbreviations.million+"(?:\\)|(\\"+w[T].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+w[T].abbreviations.billion+"(?:\\)|(\\"+w[T].currency.symbol+")?(?:\\))?)?$"),r=new RegExp("[^a-zA-Z]"+w[T].abbreviations.trillion+"(?:\\)|(\\"+w[T].currency.symbol+")?(?:\\))?)?$"),a=0;a<=l.length&&!(A=e.indexOf(l[a])>-1&&Math.pow(1024,a+1));a++);t._value=(A?A:1)*(s.match(n)?Math.pow(10,3):1)*(s.match(o)?Math.pow(10,6):1)*(s.match(i)?Math.pow(10,9):1)*(s.match(r)?Math.pow(10,12):1)*(e.indexOf("%")>-1?.01:1)*((e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1)*Number(e.replace(/[^0-9\.]+/g,"")),t._value=A?Math.ceil(t._value):t._value}return t._value}function l(t,e,n){var o,i,r=e.indexOf("$"),a=e.indexOf("("),s=e.indexOf("-"),l="";return e.indexOf(" $")>-1?(l=" ",e=e.replace(" $","")):e.indexOf("$ ")>-1?(l=" ",e=e.replace("$ ","")):e=e.replace("$",""),i=d(t._value,e,n),r<=1?i.indexOf("(")>-1||i.indexOf("-")>-1?(i=i.split(""),o=1,(r-1?(i=i.split(""),i.splice(-1,0,l+w[T].currency.symbol),i=i.join("")):i=i+l+w[T].currency.symbol,i}function A(t,e,n){var o,i="",r=100*t._value;return e.indexOf(" %")>-1?(i=" ",e=e.replace(" %","")):e=e.replace("%",""),o=d(r,e,n),o.indexOf(")")>-1?(o=o.split(""),o.splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o}function c(t){var e=Math.floor(t._value/60/60),n=Math.floor((t._value-60*e*60)/60),o=Math.round(t._value-60*e*60-60*n);return e+":"+(n<10?"0"+n:n)+":"+(o<10?"0"+o:o)}function u(t){var e=t.split(":"),n=0;return 3===e.length?(n+=60*Number(e[0])*60,n+=60*Number(e[1]),n+=Number(e[2])):2===e.length&&(n+=60*Number(e[0]),n+=Number(e[1])),Number(n)}function d(t,e,n){var o,i,a,s,l,A,c=!1,u=!1,d=!1,g="",h=!1,p=!1,f=!1,M=!1,I=!1,y="",E="",N=Math.abs(t),m=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],b="",D=!1;if(0===t&&null!==C)return C;if(e.indexOf("(")>-1?(c=!0,e=e.slice(1,-1)):e.indexOf("+")>-1&&(u=!0,e=e.replace(/\+/g,"")),e.indexOf("a")>-1&&(h=e.indexOf("aK")>=0,p=e.indexOf("aM")>=0,f=e.indexOf("aB")>=0,M=e.indexOf("aT")>=0,I=h||p||f||M,e.indexOf(" a")>-1?(g=" ",e=e.replace(" a","")):e=e.replace("a",""),N>=Math.pow(10,12)&&!I||M?(g+=w[T].abbreviations.trillion,t/=Math.pow(10,12)):N=Math.pow(10,9)&&!I||f?(g+=w[T].abbreviations.billion,t/=Math.pow(10,9)):N=Math.pow(10,6)&&!I||p?(g+=w[T].abbreviations.million,t/=Math.pow(10,6)):(N=Math.pow(10,3)&&!I||h)&&(g+=w[T].abbreviations.thousand,t/=Math.pow(10,3))),e.indexOf("b")>-1)for(e.indexOf(" b")>-1?(y=" ",e=e.replace(" b","")):e=e.replace("b",""),a=0;a<=m.length;a++)if(o=Math.pow(1024,a),i=Math.pow(1024,a+1),t>=o&&t0&&(t/=o);break}return e.indexOf("o")>-1&&(e.indexOf(" o")>-1?(E=" ",e=e.replace(" o","")):e=e.replace("o",""),E+=w[T].ordinal(t)),e.indexOf("[.]")>-1&&(d=!0,e=e.replace("[.]",".")),s=t.toString().split(".")[0],l=e.split(".")[1],A=e.indexOf(","),l?(l.indexOf("[")>-1?(l=l.replace("]",""),l=l.split("["),b=r(t,l[0].length+l[1].length,n,l[1].length)):b=r(t,l.length,n),s=b.split(".")[0],b=b.split(".")[1].length?w[T].delimiters.decimal+b.split(".")[1]:"",d&&0===Number(b.slice(1))&&(b="")):s=r(t,null,n),s.indexOf("-")>-1&&(s=s.slice(1),D=!0),A>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+w[T].delimiters.thousands)),0===e.indexOf(".")&&(s=""),(c&&D?"(":"")+(!c&&D?"-":"")+(!D&&u?"+":"")+s+b+(E?E:"")+(g?g:"")+(y?y:"")+(c&&D?")":"")}function g(t,e){w[t]=e}function h(t){var e=t.toString().split(".");return e.length<2?1:Math.pow(10,e[1].length)}function p(){var t=Array.prototype.slice.call(arguments);return t.reduce(function(t,e){var n=h(t),o=h(e);return n>o?n:o},-(1/0))}var f,M="1.5.3",w={},T="en",C=null,I="0,0",y="undefined"!=typeof t&&t.exports;f=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return f.isNumeral(t)?t=t.value():0===t||"undefined"==typeof t?t=0:Number(t)||(t=f.fn.unformat(t)),new n(Number(t))}),f.version=M,f.isNumeral=function(t){return t instanceof n},f.language=function(t,e){if(!t)return T;if(t&&!e){if(!w[t])throw new Error("Unknown language : "+t);T=t}return!e&&w[t]||g(t,e),f},f.languageData=function(t){if(!t)return w[T];if(!w[t])throw new Error("Unknown language : "+t);return w[t]},f.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),f.zeroFormat=function(t){C="string"==typeof t?t:null},f.defaultFormat=function(t){I="string"==typeof t?t:"0.0"},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(t,e){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,o,i=this.length>>>0,r=!1;for(1n;++n)this.hasOwnProperty(n)&&(r?o=t(o,this[n],n,this):(o=this[n],r=!0));if(!r)throw new TypeError("Reduce of empty array with no initial value");return o}),f.fn=n.prototype={clone:function(){return f(this)},format:function(t,e){ return a(this,t?t:I,void 0!==e?e:Math.round)},unformat:function(t){return"[object Number]"===Object.prototype.toString.call(t)?t:s(this,t?t:I)},value:function(){return this._value},valueOf:function(){return this._value},set:function(t){return this._value=Number(t),this},add:function(t){function e(t,e,o,i){return t+n*e}var n=p.call(null,this._value,t);return this._value=[this._value,t].reduce(e,0)/n,this},subtract:function(t){function e(t,e,o,i){return t-n*e}var n=p.call(null,this._value,t);return this._value=[t].reduce(e,this._value*n)/n,this},multiply:function(t){function e(t,e,n,o){var i=p(t,e);return t*i*(e*i)/(i*i)}return this._value=[this._value,t].reduce(e,1),this},divide:function(t){function e(t,e,n,o){var i=p(t,e);return t*i/(e*i)}return this._value=[this._value,t].reduce(e),this},difference:function(t){return Math.abs(f(this._value).subtract(t).value())}},y&&(t.exports=f),"undefined"==typeof ender&&(this.numeral=f),o=[],i=function(){return f}.apply(e,o),!(void 0!==i&&(t.exports=i))}.call(void 0)},function(t,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){var e=37,o=null,i=function t(e){var n=arguments,o=!0,t=1;return e=e.replace(/%s/g,function(){var e=n[t++];return"undefined"==typeof e?(o=!1,""):e}),o?e:""},r=function(e,n,o,i){var r="";return t.each(e,function(t,e){return e[n]!==i||(r=e[o],!1)}),r},a=function(e,n){var o=-1;return t.each(e,function(t,e){return e.field!==n||(o=t,!1)}),o},s=function(){if(null===o){var e,n,i=t("

").addClass("fixed-table-scroll-inner"),r=t("

").addClass("fixed-table-scroll-outer");r.append(i),t("body").append(r),e=i[0].offsetWidth,r.css("overflow","scroll"),n=i[0].offsetWidth,e===n&&(n=r[0].clientWidth),r.remove(),o=e-n}return o},l=function(e,o,i,r){if("string"==typeof o){var a=o.split(".");a.length>1?(o=window,t.each(a,function(t,e){o=o[e]})):o=window[o]}return"object"==("undefined"==typeof o?"undefined":n(o))?o:"function"==typeof o?o.apply(e,i):r},A=function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"):t},c=function(e,n){this.options=n,this.$el=t(e),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()};c.DEFAULTS={classes:"table table-hover",height:void 0,undefinedText:"-",sortName:void 0,sortOrder:"asc",striped:!1,columns:[],data:[],method:"get",url:void 0,cache:!0,contentType:"application/json",dataType:"json",ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},pagination:!1,sidePagination:"client",totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",search:!1,searchAlign:"right",selectItemName:"btSelectItem",showHeader:!0,showFooter:!1,showColumns:!1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,buttonsAlign:"right",smartDisplay:!0,minimumCountColumns:1,idField:void 0,uniqueId:void 0,cardView:!1,trimOnSearch:!0,clickToSelect:!1,singleSelect:!1,toolbar:void 0,toolbarAlign:"left",checkboxHeader:!0,sortable:!0,maintainSelected:!1,searchTimeOut:500,keyEvents:!1,searchText:"",iconSize:void 0,iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggle:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th"},rowStyle:function(){return{}},rowAttributes:function(){return{}},onAll:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onColumnSearch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1}},c.LOCALES=[],c.LOCALES["en-US"]={formatLoadingMessage:function(){return"Loading, please wait..."},formatRecordsPerPage:function(t){return i("%s records per page",t)},formatShowingRows:function(t,e,n){return i("Showing %s to %s of %s rows",t,e,n)},formatSearch:function(){return"Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:function(){return"All"}},t.extend(c.DEFAULTS,c.LOCALES["en-US"]),c.COLUMN_DEFAULTS={radio:!1,checkbox:!1,checkboxEnabled:!0,field:void 0,title:void 0,class:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,width:void 0,sortable:!1,order:"asc",visible:!0,switchable:!0,clickToSelect:!0,formatter:void 0,footerFormatter:void 0,events:void 0,sorter:void 0,cellStyle:void 0,searchable:!0,cardVisible:!0,filterControl:void 0},c.EVENTS={"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","column-search.bs.table":"onColumnSearch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader"},c.prototype.init=function(){this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initFooter(),this.initToolbar(),this.initPagination(),this.initBody(),this.initServer(),this.initKeyEvents()},c.prototype.initContainer=function(){this.$container=t(['
','
',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'
':"",'
','
','
','
',this.options.formatLoadingMessage(),"
","
",'',"bottom"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'
':"","
","
"].join("")),this.$container.insertAfter(this.$el),this.$container.find(".fixed-table-body").append(this.$el),this.$container.after('
'),this.$loading=this.$container.find(".fixed-table-loading"),this.$el.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped")},c.prototype.initTable=function(){var e=this,n=[],o=[];this.$header=this.$el.find("thead"),this.$header.length||(this.$header=t("").appendTo(this.$el)),this.$header.find("tr").length||this.$header.append(""),this.$header.find("th").each(function(){var e=t.extend({},{title:t(this).html(),class:t(this).attr("class")},t(this).data());n.push(e)}),this.options.columns=t.extend(!0,[],n,this.options.columns),t.each(this.options.columns,function(n,o){e.options.columns[n]=t.extend({},c.COLUMN_DEFAULTS,{field:n},o)}),this.options.data.length||(this.$el.find("tbody tr").each(function(){var n={};n._id=t(this).attr("id"),n._class=t(this).attr("class"),t(this).find("td").each(function(o){var i=e.options.columns[o].field;n[i]=t(this).html(),n["_"+i+"_id"]=t(this).attr("id"),n["_"+i+"_class"]=t(this).attr("class"),n["_"+i+"_data"]=t(this).data()}),o.push(n)}),this.options.data=o)},c.prototype.initHeader=function(){var n=this,o=[],r=[],a=!1,s=0;this.header={fields:[],styles:[],classes:[],formatters:[],events:[],sorters:[],cellStyles:[],clickToSelects:[],searchables:[]},t.each(this.options.columns,function(t,e){var s="",l="",A="",c="",u=i(' class="%s"',e.class),d=(n.options.sortOrder||e.order,"px"),g="hidden";if(e.visible&&(!n.options.cardView||e.cardVisible)){if(void 0!==e.width&&"string"==typeof e.width&&(e.width.indexOf("%")>-1&&(d="%"),e.width=e.width.replace("%","").replace("px","")),l=i("text-align: %s; ",e.halign?e.halign:e.align),A=i("text-align: %s; ",e.align),c=i("vertical-align: %s; ",e.valign),c+=i("width: %s"+d+"; ",e.checkbox||e.radio?36:e.width),o.push(e),n.header.fields.push(e.field),n.header.styles.push(A+c),n.header.classes.push(u),n.header.formatters.push(e.formatter),n.header.events.push(e.events),n.header.sorters.push(e.sorter),n.header.cellStyles.push(e.cellStyle),n.header.clickToSelects.push(e.clickToSelect),n.header.searchables.push(e.searchable),r.push(""),r.push(i('
',n.options.sortable&&e.sortable?"sortable":"")),s=e.title,n.options.sortName===e.field&&n.options.sortable&&e.sortable&&(s+=n.getCaretHtml()),e.checkbox&&(!n.options.singleSelect&&n.options.checkboxHeader&&(s=''),n.header.stateField=e.field),e.radio&&(s="",n.header.stateField=e.field,n.options.singleSelect=!0),r.push(s),r.push("
"),r.push('
'),r.push('
'),e.filterControl&&e.searchable&&(a=!0,g="visible"),void 0!==e.filterControl)switch(e.filterControl.toLowerCase()){case"input":r.push(i('',g));break;case"select":r.push(i('',e.field,g))}else r.push('
');r.push("
"),r.push("")}}),this.$header.find("tr").html(r.join("")),this.$header.find("th").each(function(e){t(this).data(o[e])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(e){n.options.sortable&&t(this).parent().data().sortable&&n.onSort(e)}),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$container.find(".fixed-table-header").hide(),this.$loading.css("top",0)):(this.$header.show(),this.$container.find(".fixed-table-header").show(),this.$loading.css("top",e+"px")),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$container.off("click",'[name="btSelectAll"]').on("click",'[name="btSelectAll"]',function(){var e=t(this).prop("checked");n[e?"checkAll":"uncheckAll"]()}),a?(this.$header.off("keyup","input").on("keyup","input",function(t){clearTimeout(s),s=setTimeout(function(){n.onColumnSearch(t)},n.options.searchTimeOut)}),this.$header.off("change","select").on("change","select",function(t){clearTimeout(s),s=setTimeout(function(){n.onColumnSearch(t)},n.options.searchTimeOut)})):this.$header.find(".filterControl").hide()},c.prototype.initFooter=function(){this.$footer=this.$container.find(".fixed-table-footer"),!this.options.showFooter||this.options.cardView?this.$footer.hide():this.$footer.show()},c.prototype.initData=function(t,e){this.data="append"===e?this.data.concat(t):"prepend"===e?[].concat(t).concat(this.data):t||this.options.data,this.options.data=this.data,"server"!==this.options.sidePagination&&this.initSort()},c.prototype.initSort=function(){var e=this,n=this.options.sortName,o="desc"===this.options.sortOrder?-1:1,i=t.inArray(this.options.sortName,this.header.fields);-1!==i&&this.data.sort(function(r,a){var s=r[n],A=a[n],c=l(e.header,e.header.sorters[i],[s,A]);return void 0!==c?o*c:void 0!==c?o*c:((void 0===s||null===s)&&(s=""),(void 0===A||null===A)&&(A=""),t.isNumeric(s)&&t.isNumeric(A)?(s=parseFloat(s),A=parseFloat(A),A>s?-1*o:o):s===A?0:("string"!=typeof s&&(s=s.toString()),-1===s.localeCompare(A)?-1*o:o))})},c.prototype.onSort=function(e){var n=t(e.currentTarget).parent(),o=this.$header.find("th").eq(n.index());return this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===n.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=n.data("field"),this.options.sortOrder="asc"===n.data("order")?"desc":"asc"),this.trigger("sort",this.options.sortName,this.options.sortOrder),n.add(o).data("order",this.options.sortOrder).find(".th-inner").append(this.getCaretHtml()),"server"===this.options.sidePagination?void this.initServer():(this.initSort(),void this.initBody())},c.prototype.initToolbar=function(){var e,n,o=this,r=[],a=0,s=0;this.$toolbar=this.$container.find(".fixed-table-toolbar").html(""),"string"==typeof this.options.toolbar&&t(i('
',this.options.toolbarAlign)).appendTo(this.$toolbar).append(t(this.options.toolbar)),r=[i('
',this.options.buttonsAlign,this.options.buttonsAlign)],"string"==typeof this.options.icons&&(this.options.icons=l(null,this.options.icons)),this.options.showPaginationSwitch&&r.push(i('"),this.options.showRefresh&&r.push(i('"),this.options.showToggle&&r.push(i('"),this.options.showColumns&&(r.push(i('
',this.options.formatColumns()),'",'","
")),r.push("
"),(this.showToolbar||r.length>2)&&this.$toolbar.append(r.join("")),this.options.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",t.proxy(this.togglePagination,this)),this.options.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",t.proxy(this.refresh,this)),this.options.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){o.toggleView()}),this.options.showColumns&&(e=this.$toolbar.find(".keep-open"),s<=this.options.minimumCountColumns&&e.find("input").prop("disabled",!0),e.find("li").off("click").on("click",function(t){t.stopImmediatePropagation()}),e.find("input").off("click").on("click",function(){var e=t(this);o.toggleColumn(e.val(),e.prop("checked"),!1),o.trigger("column-switch",t(this).data("field"),e.prop("checked"))})),this.options.search&&(r=[],r.push('"),this.$toolbar.append(r.join("")),n=this.$toolbar.find(".search input"),n.off("keyup").on("keyup",function(t){clearTimeout(a),a=setTimeout(function(){o.onSearch(t)},o.options.searchTimeOut)}),""!==this.options.searchText&&(n.val(this.options.searchText),clearTimeout(a),a=setTimeout(function(){n.trigger("keyup")},o.options.searchTimeOut)))},c.prototype.onSearch=function(e){var n=t.trim(t(e.currentTarget).val());this.options.trimOnSearch&&t(e.currentTarget).val()!==n&&t(e.currentTarget).val(n),n!==this.searchText&&(this.searchText=n,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",n))},c.prototype.onColumnSearch=function(e){var n=t.trim(t(e.currentTarget).val()),o=t(e.currentTarget).parent().parent().data("field");t.isEmptyObject(this.filterColumnsPartial)&&(this.filterColumnsPartial={}),n?this.filterColumnsPartial[o]=n:delete this.filterColumnsPartial[o],this.options.pageNumber=1,this.initSearch(),this.updatePagination()},c.prototype.initSearch=function(){var e=this;if("server"!==this.options.sidePagination){var n=this.searchText&&this.searchText.toLowerCase(),o=t.isEmptyObject(this.filterColumns)?null:this.filterColumns,i=t.isEmptyObject(this.filterColumnsPartial)?null:this.filterColumnsPartial;this.data=o?t.grep(this.options.data,function(t){for(var e in o)if(t[e]!==o[e])return!1;return!0}):this.options.data,this.data=i?t.grep(this.data,function(n,o){for(var r in i){var a=i[r].toLowerCase(),s=n[r];if(s=l(e.header,e.header.formatters[t.inArray(r,e.header.fields)],[s,n,o],s),-1===t.inArray(r,e.header.fields)||"string"!=typeof s&&"number"!=typeof s||-1===(s+"").toLowerCase().indexOf(a))return!1}return!0}):this.data,this.data=n?t.grep(this.data,function(o,i){for(var r in o){r=t.isNumeric(r)?parseInt(r,10):r;var a=o[r];a=l(e.header,e.header.formatters[t.inArray(r,e.header.fields)],[a,o,i],a);var s=t.inArray(r,e.header.fields);if(-1!==s&&e.header.searchables[s]&&("string"==typeof a||"number"==typeof a)&&-1!==(a+"").toLowerCase().indexOf(n))return!0}return!1}):this.data}},c.prototype.initPagination=function(){if(this.$pagination=this.$container.find(".fixed-table-pagination"),!this.options.pagination)return void this.$pagination.hide();this.$pagination.show();var e,n,o,r,a,s,l,A,c,u=this,d=[],g=!1,h=this.getData();if("server"!==this.options.sidePagination&&(this.options.totalRows=h.length),this.totalPages=0,this.options.totalRows){if(this.options.pageSize===this.options.formatAllRows())this.options.pageSize=this.options.totalRows,g=!0;else if(this.options.pageSize===this.options.totalRows){var p="string"==typeof this.options.pageList?this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):this.options.pageList;p.indexOf(this.options.formatAllRows().toLowerCase())>-1&&(g=!0)}this.totalPages=~~((this.options.totalRows-1)/this.options.pageSize)+1,this.options.totalPages=this.totalPages}this.totalPages>0&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),d.push('
','',this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),""),d.push('');var f=[i('',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?"dropdown":"dropup"),'",'"),d.push(this.options.formatRecordsPerPage(f.join(""))),d.push(""),d.push("
",'
','
    ','
  • <<
  • ','
  • <
  • '),this.totalPages<5?(n=1,o=this.totalPages):(n=this.options.pageNumber-2,o=n+4,1>n&&(n=1,o=5),o>this.totalPages&&(o=this.totalPages,n=o-4)),e=n;o>=e;e++)d.push('
  • ','',e,"","
  • ");d.push('
  • >
  • ','
  • >>
  • ',"
","
"),this.$pagination.html(d.join("")),r=this.$pagination.find(".page-list a"),a=this.$pagination.find(".page-first"),s=this.$pagination.find(".page-pre"),l=this.$pagination.find(".page-next"),A=this.$pagination.find(".page-last"),c=this.$pagination.find(".page-number"),this.options.pageNumber<=1&&(a.addClass("disabled"),s.addClass("disabled")),this.options.pageNumber>=this.totalPages&&(l.addClass("disabled"),A.addClass("disabled")),this.options.smartDisplay&&(this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),(M.length<2||this.options.totalRows<=M[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"]()),g&&(this.options.pageSize=this.options.formatAllRows()),r.off("click").on("click",t.proxy(this.onPageListChange,this)),a.off("click").on("click",t.proxy(this.onPageFirst,this)),s.off("click").on("click",t.proxy(this.onPagePre,this)),l.off("click").on("click",t.proxy(this.onPageNext,this)),A.off("click").on("click",t.proxy(this.onPageLast,this)),c.off("click").on("click",t.proxy(this.onPageNumber,this))},c.prototype.updatePagination=function(e){e&&t(e.currentTarget).hasClass("disabled")||(this.options.maintainSelected||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))},c.prototype.onPageListChange=function(e){var n=t(e.currentTarget);n.parent().addClass("active").siblings().removeClass("active"),this.options.pageSize=n.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+n.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e)},c.prototype.onPageFirst=function(t){this.options.pageNumber=1,this.updatePagination(t)},c.prototype.onPagePre=function(t){this.options.pageNumber--,this.updatePagination(t)},c.prototype.onPageNext=function(t){this.options.pageNumber++,this.updatePagination(t)},c.prototype.onPageLast=function(t){this.options.pageNumber=this.totalPages,this.updatePagination(t)},c.prototype.onPageNumber=function(e){this.options.pageNumber!==+t(e.currentTarget).text()&&(this.options.pageNumber=+t(e.currentTarget).text(),this.updatePagination(e))},c.prototype.initBody=function(e){var n=this,o=[],s=this.getData();this.trigger("pre-body",s),this.$body=this.$el.find("tbody"),this.$body.length||(this.$body=t("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=s.length);for(var c=this.pageFrom-1;c"),this.options.cardView&&o.push(i('',this.header.fields.length)),t.each(this.header.fields,function(e,s){var A="",u=d[s],p="",f={},M="",w=n.header.classes[e],T="",C=n.options.columns[a(n.options.columns,s)];if(g=i('style="%s"',h.concat(n.header.styles[e]).join("; ")),u=l(n.header,n.header.formatters[e],[u,d,c],u),d["_"+s+"_id"]&&(M=i(' id="%s"',d["_"+s+"_id"])),d["_"+s+"_class"]&&(w=i(' class="%s"',d["_"+s+"_class"])),f=l(n.header,n.header.cellStyles[e],[u,d,c],f),f.classes&&(w=i(' class="%s"',f.classes)),f.css){var I=[];for(var y in f.css)I.push(y+": "+f.css[y]);g=i('style="%s"',I.concat(n.header.styles[e]).join("; "))}if(d["_"+s+"_data"]&&!t.isEmptyObject(d["_"+s+"_data"])&&t.each(d["_"+s+"_data"],function(t,e){"index"!==t&&(T+=i(' data-%s="%s"',t,e))}),C.checkbox||C.radio)p=C.checkbox?"checkbox":p,p=C.radio?"radio":p,A=[n.options.cardView?'
':'',"",n.options.cardView?"
":""].join("");else{if(u="undefined"==typeof u||null===u?n.options.undefinedText:u,A=n.options.cardView?['
',n.options.showHeader?i('%s',g,r(n.options.columns,"field","title",s)):"",i('%s',u),"
"].join(""):[i("",M,w,g,T),u,""].join(""),void 0!==C.filterControl&&"select"===C.filterControl.toLowerCase()&&C.searchable){var E,N=t("."+C.field),m=0,b=!1;if(void 0!==N)if(E=N.get(0).options,0===E.length)N.append(t("").attr("value","").text("")),N.append(t("").attr("value",u).text(u));else{for(;m").attr("value",u).text(u))}}n.options.cardView&&n.options.smartDisplay&&""===u&&(A="")}o.push(A)}),this.options.cardView&&o.push(""),o.push("")}o.length||o.push('',i('%s',this.header.fields.length,this.options.formatNoMatches()),""),this.$body.html(o.join("")),e||this.scrollTo(0),this.$body.find("> tr > td").off("click").on("click",function(){var e=t(this).parent();n.trigger("click-row",n.data[e.data("index")],e),n.options.clickToSelect&&n.header.clickToSelects[e.children().index(t(this))]&&e.find(i('[name="%s"]',n.options.selectItemName))[0].click()}),this.$body.find("tr").off("dblclick").on("dblclick",function(){n.trigger("dbl-click-row",n.data[t(this).data("index")],t(this))}),this.$selectItem=this.$body.find(i('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(e){e.stopImmediatePropagation();var o=t(this).prop("checked"),i=n.data[t(this).data("index")];i[n.header.stateField]=o,n.trigger(o?"check":"uncheck",i),n.options.singleSelect&&(n.$selectItem.not(this).each(function(){n.data[t(this).data("index")][n.header.stateField]=!1}),n.$selectItem.filter(":checked").not(this).prop("checked",!1)),n.updateSelected()}),t.each(this.header.events,function(e,o){if(o){"string"==typeof o&&(o=l(null,o));for(var i in o)n.$body.find("tr").each(function(){var r=t(this),a=r.find(n.options.cardView?".card-view":"td").eq(e),s=i.indexOf(" "),l=i.substring(0,s),A=i.substring(s+1),c=o[i];a.find(A).off(l).on(l,function(t){var o=r.data("index"),i=n.data[o],a=i[n.header.fields[e]];c.apply(this,[t,a,i,o])})})}}),this.updateSelected(),this.resetView(),this.trigger("post-body")},c.prototype.initServer=function(e,n){var o=this,i={},r={pageSize:this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,pageNumber:this.options.pageNumber,searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};this.options.url&&("limit"===this.options.queryParamsType&&(r={search:r.searchText,sort:r.sortName,order:r.sortOrder},this.options.pagination&&(r.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,r.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1))),t.isEmptyObject(this.filterColumnsPartial)||(r.filter=JSON.stringify(this.filterColumnsPartial,null)),i=l(this.options,this.options.queryParams,[r],i),t.extend(i,n||{}),i!==!1&&(e||this.$loading.show(),t.ajax(t.extend({},l(null,this.options.ajaxOptions),{type:this.options.method,url:this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(i):i,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){t=l(o.options,o.options.responseHandler,[t],t),o.load(t),o.trigger("load-success",t)},error:function(t){o.trigger("load-error",t.status)},complete:function(){e||o.$loading.hide()}}))))},c.prototype.initKeyEvents=function(){if(this.options.keyEvents){var e=this;t(document).off("keypress").on("keypress",function(t){var n=e.$toolbar.find(".search input"),o=e.$toolbar.find('button[name="refresh"]'),i=e.$toolbar.find('button[name="toggle"]'),r=e.$toolbar.find('button[name="paginationSwitch"]');switch(t.keyCode){case 115:case 83:if(!e.options.search)return;return document.activeElement===n.get(0)||(n.focus(),!1);case 114:case 82:if(!e.options.showRefresh)return;return document.activeElement===n.get(0)||(o.click(),!1);case 116:case 84:if(!e.options.showToggle)return;return document.activeElement===n.get(0)||(i.click(),!1);case 112:case 80:if(!e.options.showPaginationSwitch)return;return document.activeElement===n.get(0)||(r.click(),!1)}})}},c.prototype.getCaretHtml=function(){return['','',""].join("")},c.prototype.updateSelected=function(){var e=this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(){t(this).parents("tr")[t(this).prop("checked")?"addClass":"removeClass"]("selected")})},c.prototype.updateRows=function(e){var n=this;this.$selectItem.each(function(){n.data[t(this).data("index")][n.header.stateField]=e})},c.prototype.resetRows=function(){var e=this;t.each(this.data,function(t,n){e.$selectAll.prop("checked",!1),e.$selectItem.prop("checked",!1),n[e.header.stateField]=!1})},c.prototype.trigger=function(e){var n=Array.prototype.slice.call(arguments,1);e+=".bs.table",this.options[c.EVENTS[e]].apply(this.options,n),this.$el.trigger(t.Event(e),n),this.options.onAll(e,n),this.$el.trigger(t.Event("all.bs.table"),[e,n])},c.prototype.resetHeader=function(){this.$el.css("margin-top",-this.$header.height()),clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(t.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)},c.prototype.fitHeader=function(){var e,n,o,i=this;return i.$el.is(":hidden")?void(i.timeoutFooter_=setTimeout(t.proxy(i.fitHeader,i),100)):(e=i.$container.find(".fixed-table-header"),n=i.$container.find(".fixed-table-body"),o=i.$el.width()>n.width()?s():0,i.$header_=i.$header.clone(!0,!0),i.$selectAll_=i.$header_.find('[name="btSelectAll"]'),e.css({"margin-right":o}).find("table").css("width",i.$el.css("width")).html("").attr("class",i.$el.attr("class")).append(i.$header_),i.$header.find("th").each(function(e){i.$header_.find("th").eq(e).data(t(this).data())}),i.$body.find("tr:first-child:not(.no-records-found) > *").each(function(e){i.$header_.find("div.fht-cell").eq(e).width(t(this).innerWidth())}),n.off("scroll").on("scroll",function(){ e.scrollLeft(t(this).scrollLeft())}),void i.trigger("post-header"))},c.prototype.resetFooter=function(){var e=this,n=e.getData(),o=[];this.options.showFooter&&!this.options.cardView&&(t.each(this.options.columns,function(t,r){var a="",s="",A=i(' class="%s"',r.class);r.visible&&(!e.options.cardView||r.cardVisible)&&(a=i("text-align: %s; ",r.falign?r.falign:r.align),s=i("vertical-align: %s; ",r.valign),o.push(""),o.push(l(r,r.footerFormatter,[n]," ")||" "),o.push(""))}),this.$footer.find("tr").html(o.join("")),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(t.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0))},c.prototype.fitFooter=function(){var e,n,o,i;return clearTimeout(this.timeoutFooter_),this.$el.is(":hidden")?void(this.timeoutFooter_=setTimeout(t.proxy(this.fitFooter,this),100)):(e=this.$container.find(".fixed-table-body"),o=this.$el.css("width"),i=o>e.width()?s():0,this.$footer.css({"margin-right":i}).find("table").css("width",o).attr("class",this.$el.attr("class")),n=this.$footer.find("td"),void e.find("tbody tr:first-child:not(.no-records-found) > td").each(function(e){n.eq(e).outerWidth(t(this).outerWidth())}))},c.prototype.toggleColumn=function(t,e,n){if(-1!==t&&(this.options.columns[t].visible=e,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var o=this.$toolbar.find(".keep-open input").prop("disabled",!1);n&&o.filter(i('[value="%s"]',t)).prop("checked",e),o.filter(":checked").length<=this.options.minimumCountColumns&&o.filter(":checked").prop("disabled",!0)}},c.prototype.toggleRow=function(e,n,o){-1!==e&&t(this.$body[0]).children().filter(i(n?'[value="%s"]':'[data-index="%s"]',e))[o?"show":"hide"]()},c.prototype.resetView=function(t){var n=this,o=0,i=n.$container.find(".fixed-table-container");if(t&&t.height&&(this.options.height=t.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.options.height){var r=+this.$toolbar.children().outerHeight(!0),a=+this.$pagination.children().outerHeight(!0),s=this.options.height-r-a;i.css("height",s+"px")}return this.options.cardView?(n.$el.css("margin-top","0"),void i.css("padding-bottom","0")):(this.options.showHeader&&this.options.height?(this.$container.find(".fixed-table-header").show(),this.resetHeader(),o+=e):(this.$container.find(".fixed-table-header").hide(),this.trigger("post-header")),this.options.showFooter&&(this.resetFooter(),this.options.height&&(o+=e)),void i.css("padding-bottom",o+"px"))},c.prototype.getData=function(){return!this.searchText&&t.isEmptyObject(this.filterColumns)&&t.isEmptyObject(this.filterColumnsPartial)?this.options.data:this.data},c.prototype.load=function(e){var n=!1;"server"===this.options.sidePagination?(this.options.totalRows=e.total,n=e.fixedScroll,e=e.rows):t.isArray(e)||(n=e.fixedScroll,e=e.data),this.initData(e),this.initSearch(),this.initPagination(),this.initBody(n)},c.prototype.append=function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initBody(!0)},c.prototype.prepend=function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initBody(!0)},c.prototype.remove=function(e){var n,o,i=this.options.data.length;if(e.hasOwnProperty("field")&&e.hasOwnProperty("values")){for(n=i-1;n>=0;n--)o=this.options.data[n],o.hasOwnProperty(e.field)&&-1!==t.inArray(o[e.field],e.values)&&this.options.data.splice(n,1);i!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))}},c.prototype.insertRow=function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initBody(!0))},c.prototype.updateRow=function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("row")&&(t.extend(this.data[e.index],e.row),this.initBody(!0))},c.prototype.showRow=function(t){t.hasOwnProperty("index")&&this.toggleRow(t.index,void 0!==t.isIdField,!0)},c.prototype.hideRow=function(t){t.hasOwnProperty("index")&&this.toggleRow(t.index,void 0!==t.isIdField,!1)},c.prototype.getRowsHidden=function(e){var n=t(this.$body[0]).children().filter(":hidden"),o=0;if(e)for(;oi||0>r||i>=this.data.length)){for(n=i;i+a>n;n++)for(o=r;r+s>o;o++)l.eq(n).find("td").eq(o).hide();A.attr("rowspan",a).attr("colspan",s).show()}},c.prototype.getOptions=function(){return this.options},c.prototype.getSelections=function(){var e=this;return t.grep(this.data,function(t){return t[e.header.stateField]})},c.prototype.checkAll=function(){this.checkAll_(!0)},c.prototype.uncheckAll=function(){this.checkAll_(!1)},c.prototype.checkAll_=function(t){var e;t||(e=this.getSelections()),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows(t),this.updateSelected(),t&&(e=this.getSelections()),this.trigger(t?"check-all":"uncheck-all",e)},c.prototype.check=function(t){this.check_(!0,t)},c.prototype.uncheck=function(t){this.check_(!1,t)},c.prototype.check_=function(t,e){this.$selectItem.filter(i('[data-index="%s"]',e)).prop("checked",t),this.data[e][this.header.stateField]=t,this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[e])},c.prototype.checkBy=function(t){this.checkBy_(!0,t)},c.prototype.uncheckBy=function(t){this.checkBy_(!1,t)},c.prototype.checkBy_=function(e,n){if(n.hasOwnProperty("field")&&n.hasOwnProperty("values")){var o=this;t.each(this.options.data,function(r,a){return!!a.hasOwnProperty(n.field)&&void(-1!==t.inArray(a[n.field],n.values)&&(o.$selectItem.filter(i('[data-index="%s"]',r)).prop("checked",e),a[o.header.stateField]=e,o.trigger(e?"check":"uncheck",a)))}),this.updateSelected()}},c.prototype.destroy=function(){this.$el.insertBefore(this.$container),t(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")},c.prototype.showLoading=function(){this.$loading.show()},c.prototype.hideLoading=function(){this.$loading.hide()},c.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var t=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.pagination?t.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchDown):t.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchUp),this.updatePagination()},c.prototype.refresh=function(t){t&&t.url&&(this.options.url=t.url,this.options.pageNumber=1),this.initServer(t&&t.silent,t&&t.query)},c.prototype.showColumn=function(t){this.toggleColumn(a(this.options.columns,t),!0,!0)},c.prototype.hideColumn=function(t){this.toggleColumn(a(this.options.columns,t),!1,!0)},c.prototype.filterBy=function(e){this.filterColumns=t.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()},c.prototype.scrollTo=function(t){var e=this.$container.find(".fixed-table-body");"string"==typeof t&&(t="bottom"===t?e[0].scrollHeight:0),"number"==typeof t&&e.scrollTop(t)},c.prototype.selectPage=function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())},c.prototype.prevPage=function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())},c.prototype.nextPage=function(){this.options.pageNumber>=4,o[r]=n[19==r?3&e|8:e]);return o.join("")},Math.uuidCompact=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)})}}()},function(t,e){"use strict";window.Remark=function(t){this.remark="",this.defaultRemark="请输入备注内容",this.init(t)},Remark.prototype.init=function(t){var e=$("
备注
");t.append(e);var n=$("");e.append(n);var o=$("
");t.append(o),this.remarkLabel=$("
"+this.defaultRemark+"
"),o.append(this.remarkLabel),this.remarkEditor=$(""),o.append(this.remarkEditor),this.remarkEditor.hide();var i=this;this.remarkLabel.click(function(){i.remarkEditor.show(),i.remarkEditor.focus(),i.remarkLabel.hide()}),this.remarkEditor.change(function(){i.remark=$(this).val(),""===i.remark?i.remarkLabel.text(i.defaultRemark):i.remarkLabel.html(i.parseBreak(i.remark)),window.setDirty&&window.setDirty(),window._setDirty&&window._setDirty()}),this.remarkEditor.blur(function(){i.remarkEditor.hide(),i.remarkLabel.show()}),e.click(function(){o.collapse("toggle")}),o.on("show.bs.collapse",function(){n.removeClass("glyphicon-circle-arrow-right"),n.addClass("glyphicon-circle-arrow-down")}),o.on("hide.bs.collapse",function(){n.removeClass("glyphicon-circle-arrow-down"),n.addClass("glyphicon-circle-arrow-right")}),o.collapse("hide")},Remark.prototype.setData=function(t){t&&""!==t&&(this.remark=t,this.remarkEditor.val(t),this.remarkLabel.html(this.parseBreak(t)))},Remark.prototype.toXml=function(){return""},Remark.prototype.parseBreak=function(t){return t=t.replace(new RegExp("<","gm"),"<"),t=t.replace(new RegExp(">","gm"),">"),t=t.replace(new RegExp("\n","gm"),"
")}},function(t,e,n){"use strict";var o=n(241);window._ConstantValueArray=[],window._ActionTypeArray=[],window._VariableValueArray=[],window._ParameterValueArray=[],window._FunctionValueArray=[],window.actionLibraries=[],window.variableLibraries=[],window.constantLibraries=[],window.parameterLibraries=[],window.urule={},window.generateContainer=function(){var t=$(".");return t.css({height:"20px",cursor:"pointer",margin:"0px",color:"white",border:"dashed transparent 1px"}),t.mouseover(function(){t.css({border:"dashed gray 1px"})}),t.mouseout(function(){t.css({border:"dashed transparent 1px"})}),t},window.refreshParameterLibraries=function(){for(var t="",e=0;e"),e=o[0],this._dom=e,n=this.menuItems;var i=this;if(n.length>20){var r=$("
");r.append(" "),this.search=$(""),r.append(this.search),o.append(r),this.search.click(function(t){t.stopPropagation()}),this.search.dblclick(function(t){t.stopPropagation()}),this.search.keypress(function(t){var e=t.keyCode?t.keyCode:t.which;if("13"===e||13===e){var o=$(this).val();if(!i.oldSearchValue||i.oldSearchValue!==o){for(i.oldSearchValue=o;i.menuItems.length>0;)i.menuItems[0].remove();for(var r=0;r-1&&i.addMenuItem(a):i.addMenuItem(a)}}}})}this.menuItems=[];for(var a=0;a$("html").height()+10&&t.pageY>r?e.addClass("dropdown-context-up").css({top:t.pageY-20-r,left:t.pageX-13}).fadeIn(this.fadeSpeed):e.css({top:t.pageY+10,left:t.pageX-13}).fadeIn(this.fadeSpeed)}this.onShow&&this.onShow(this)},URule.menu.Menu.prototype.hide=function(){var t=$(this._dom);t.is(":visible")&&(this.onHide&&this.onHide(this),t.fadeOut(this.fadeSpeed,function(){t.css({display:""}).find(".drop-left").removeClass("drop-left")}),this.parent&&this.parent.parent.hide())},URule.menu.MenuItem=function(t){URule.menu.MenuItem.prototype.superClass.call(this,t),$.extend(this,t)},URule.menu.MenuItem.prototype=new URule.menu.AbstractMenu,URule.menu.MenuItem.prototype.superClass=URule.menu.AbstractMenu,URule.menu.MenuItem.prototype.constructor=URule.menu.MenuItem,URule.menu.MenuItem.prototype.createDom=function(){var t,e,n;return n=this,t=$("
  • "),this._dom=t[0],e=this.icon?" "+this.label:this.label,t.on("mouseenter",function(){t.siblings(".dropdown-submenu").each(function(){$(this).find("ul.dropdown-context-sub").each(function(){var t=$(this).data("ref");$(this).fadeOut(t.fadeSpeed)})})}),"divider"===this.type?(t.addClass("divider"),t.append(e)):"header"==this.type?(t.addClass("nav-header"),t.append(e)):(t.append(""+e+""),this.subMenu&&this.setSubMenu(this.subMenu)),n.onClick&&(this.parent&&this.parent.search?(t.click(function(t){t.stopPropagation()}),t.dblclick(function(t){n.onClick(n,{event:t}),t.preventDefault(),t.stopPropagation(),n.parent.hide()})):t.click(function(t){t.preventDefault(),t.stopPropagation(),n.onClick(n,{event:t}),n.parent.hide()})),t[0]},URule.menu.MenuItem.prototype.setSubMenu=function(t){var e,n;return n=this,e=n.getDom(),t instanceof URule.menu.Menu?n.subMenu=t:n.subMenu=new URule.menu.Menu(t),n.subMenu.parent=this,$(e).attr("class","dropdown-submenu").on("mouseenter",function(){var t=$(this).find(".dropdown-context-sub:first"),e=t.width(),o=t.offset().left,i=e+o>window.innerWidth;i&&t.addClass("drop-left"),$(n.subMenu.getDom()).fadeIn(n.subMenu.fadeSpeed)}),this.subMenu.render(e),$(this.subMenu.getDom()).addClass("dropdown-context-sub"),this.subMenu},URule.menu.MenuItem.prototype.remove=function(){URule.menu.MenuItem.prototype.superClass.prototype.remove.call(this);var t;t=this.parent.menuItems.indexOf(this),this.parent.menuItems.splice(t,1)},URule.menu.MenuItem.prototype.show=function(){$(this._dom).show()},URule.menu.MenuItem.prototype.hide=function(){$(this._dom).hide()},$(document).on("dblclick","html",function(){$(".dropdown-context").each(function(){var t;t=$(this).data("ref"),t.hide()})}),URule.menu.AbstractMenu.preventDoubleContext&&$(document).on("contextmenu",".dropdown-context",function(t){t.preventDefault()})}()},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var i=n(245),r=o(i);urule.Context=function(t,e){this.container=t,this.paper=new r.default(this.container.get(0),"100%","100%"),this.rule=e,this.rootJoin=null},urule.Context.prototype.putToNamedMap=function(t,e){this.rule.namedMap.set(t,e)},urule.Context.prototype.deleteFromNamedMap=function(t){this.rule.namedMap.delete(t)},urule.Context.prototype.getVariableCategoryFromNamedMap=function(t){return this.rule.namedMap.get(t)},urule.Context.prototype.getCanvas=function(){return this.container},urule.Context.prototype.getPaper=function(){return this.paper},urule.Context.prototype.setRootJoin=function(t){this.rootJoin=t},urule.Context.prototype.getRootJoin=function(){return this.rootJoin},urule.Context.prototype.getTotalChildrenCount=function(){return this.rootJoin.getChildrenCount()}},function(t,e,n){"use strict";var o=n(226),i=n(241);!function(t){t.fn.urule=function(){function e(e){if(t("#saveButton").hasClass("disabled"))return!1;var r='';r+="",t.each(parameterLibraries,function(t,e){r+=''}),t.each(variableLibraries,function(t,e){r+=''}),t.each(constantLibraries,function(t,e){r+=''}),t.each(actionLibraries,function(t,e){r+=''}),r+=d.remark.toXml();try{for(var a=0;a 保存"),t("#saveButton").addClass("disabled"),t("#saveButtonNewVersion").html(" 保存新版本"),t("#saveButtonNewVersion").addClass("disabled"))}function r(e){var n=t("
    ");d.append(n);var o=new urule.Rule(d,n,e);return d.rules.push(o),window._setDirty(),o}function a(e){var n=t("
    ");d.append(n);var o=new urule.LoopRule(d,n,e);return d.rules.push(o),window._setDirty(),o}function s(){var e=window._server+"/common/loadXml";t.ajax({url:e,type:"POST",data:{files:l},error:function(t){t&&t.responseText?bootbox.alert("加载文件失败,服务端错误:"+t.responseText+""):bootbox.alert("加载文件失败,服务端出错")},success:function(t){var e=t[0],o=e.libraries;if(d.remark.setData(e.remark),o)for(var i=0;i\n
    \n \t",u=t(c);u.css({diaplay:"inline-block"}),this.append(u);var d=this;t("#addRuleButton").click(function(){var t=r();t.initTopJoin()}),t("#addLoopRuleButton").click(function(){var t=a();t.initTopJoin()}),t("#configVarButton").click(function(){d.configVarDialog||(d.configVarDialog=new urule.ConfigVariableDialog(d)),d.configVarDialog.open()}),t("#configConstantsButton").click(function(){d.configConstantDialog||(d.configConstantDialog=new urule.ConfigConstantDialog(d)),d.configConstantDialog.open()}),t("#configActionButton").click(function(){d.configActionDialog||(d.configActionDialog=new urule.ConfigActionDialog(d)),d.configActionDialog.open()}),t("#configParameterButton").click(function(){d.configParameterDialog||(d.configParameterDialog=new urule.ConfigParameterDialog(d)),d.configParameterDialog.open()}),t("#saveButton").click(function(){e(!1)}),t("#saveButtonNewVersion").click(function(){e(!0)}),t("#saveButton").addClass("disabled"),t("#saveButtonNewVersion").addClass("disabled");var g=t("
    ");this.append(g),this.remark=new Remark(g),s();var h=this;this.sortable({delay:200,update:function(e,n){var o=h.children("div");o.each(function(e,n){var o=t(n),i=o.prop("id"),r=h.rules,a=null,s=!0,l=!1,A=void 0;try{for(var c,u=r[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var d=c.value;if(d.uuid===i){a=d;break}}}catch(t){l=!0,A=t}finally{try{!s&&u.return&&u.return()}finally{if(l)throw A}}if(a){var g=r.indexOf(a);r.splice(g,1),r.splice(e,0,a)}}),window._setDirty()}}),window._setDirty=function(){d._dirty||(d._dirty=!0,window._dirty=!0,t("#saveButton").html(" *保存"),t("#saveButton").removeClass("disabled"),t("#saveButtonNewVersion").html(" *保存新版本"),t("#saveButtonNewVersion").removeClass("disabled"))}}}(jQuery)},function(t,e){"use strict";urule.ComparisonOperator=function(t){this.inputType=null,this.operator="",this.container=generateContainer(),URule.setDomContent(this.container,"请选择比较操作符"),this.container.css({"font-size":"13px",color:"red",fontWeight:"bold","margin-right":"3px"});var e=this,n=function(t){e.setOperator(t.name)};e.menu=new URule.menu.Menu({onHide:function(){t()},menuItems:[{label:"大于",name:"GreaterThen",onClick:n},{label:"大于或等于",name:"GreaterThenEquals",onClick:n},{label:"小于",name:"LessThen",onClick:n},{label:"小于或等于",name:"LessThenEquals",onClick:n},{label:"等于",name:"Equals",onClick:n},{label:"等于(不分大小写)",name:"EqualsIgnoreCase",onClick:n},{label:"开始于",name:"StartWith",onClick:n},{label:"不开始于",name:"NotStartWith",onClick:n},{label:"结束于",name:"EndWith",onClick:n},{label:"不结束于",name:"NotEndWith",onClick:n},{label:"不等于",name:"NotEquals",onClick:n},{label:"不等于(不分大小写)",name:"NotEqualsIgnoreCase",onClick:n},{label:"在集合",name:"In",onClick:n},{label:"不在集合",name:"NotIn",onClick:n},{label:"为空",name:"Null",onClick:n},{label:"不为空",name:"NotNull",onClick:n},{label:"匹配正则表达式",name:"Match",onClick:n},{label:"不匹配正则表达式",name:"NotMatch",onClick:n}]}),this.container.click(function(t){e.menu.show(t)})},urule.ComparisonOperator.prototype.initRightValue=function(t){this.inputType&&this.inputType.setValueType(t.valueType,t)},urule.ComparisonOperator.prototype.setOperator=function(t){switch(t){case"GreaterThen":this.operator="GreaterThen",URule.setDomContent(this.container,"大于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"GreaterThenEquals":this.operator="GreaterThenEquals",URule.setDomContent(this.container,"大于或等于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"LessThen":this.operator="LessThen",URule.setDomContent(this.container,"小于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"LessThenEquals":this.operator="LessThenEquals",URule.setDomContent(this.container,"小于或等于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"StartWith":this.operator="StartWith",URule.setDomContent(this.container,"开始于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"Equals":this.operator="Equals",URule.setDomContent(this.container,"等于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"EqualsIgnoreCase":this.operator="EqualsIgnoreCase",URule.setDomContent(this.container,"等于(不分大小写)"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotStartWith":this.operator="NotStartWith",URule.setDomContent(this.container,"不开始于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"EndWith":this.operator="EndWith",URule.setDomContent(this.container,"结束于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotEndWith":this.operator="NotEndWith",URule.setDomContent(this.container,"不结束于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotEquals":this.operator="NotEquals",URule.setDomContent(this.container,"不等于"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotEqualsIgnoreCase":this.operator="NotEqualsIgnoreCase",URule.setDomContent(this.container,"不等于(不分大小写)"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"In":this.operator="In",URule.setDomContent(this.container,"在集合"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType("之中");break;case"NotIn":this.operator="NotIn",URule.setDomContent(this.container,"不在集合"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType("之中");break;case"Null":this.operator="Null",URule.setDomContent(this.container,"为空"),this.inputType&&(this.inputType.getContainer().remove(),this.inputType=null);break;case"NotNull":this.operator="NotNull",URule.setDomContent(this.container,"不为空"),this.inputType&&(this.inputType.getContainer().remove(),this.inputType=null);break;case"Match":this.operator="Match",URule.setDomContent(this.container,"匹配正则表达式"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType;break;case"NotMatch":this.operator="NotMatch",URule.setDomContent(this.container,"不匹配正则表达式"),this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType}window._setDirty()},urule.ComparisonOperator.prototype.getOperator=function(){if(""==this.operator)throw"请选择比较操作符!";return this.operator},urule.ComparisonOperator.prototype.getInputType=function(){return this.inputType},urule.ComparisonOperator.prototype.getContainer=function(){ return this.container}},function(t,e){"use strict";urule.ComplexArithmetic=function(t){this.container=$(""),this.operator="",this.rule=t,this.selectorLabel=generateContainer(),this.selectorLabel.css({fontWeight:"blod"}),this.container.append(this.selectorLabel),this.nextType=null;var e=this,n=function(t){e.setOperator(t.name)};e.menu=new URule.menu.Menu({menuItems:[{label:"+",name:"Add",onClick:n},{label:"-",name:"Sub",onClick:n},{label:"x",name:"Mul",onClick:n},{label:"÷",name:"Div",onClick:n},{label:"%",name:"Mod",onClick:n},{label:"删除",onClick:function(){window._setDirty(),e.nextType&&(e.nextType.getContainer().remove(),e.nextType=null,URule.setDomContent(e.selectorLabel,"."),e.selectorLabel.css({color:"#fff","padding-left":"0px","padding-right":"0px"}))}}]}),this.selectorLabel.click(function(t){e.menu.show(t)})},urule.ComplexArithmetic.prototype.setOperator=function(t){switch(window._setDirty(),this.operator=t,this.info="",t){case"Add":this.info="+";break;case"Sub":this.info="-";break;case"Mul":this.info="x";break;case"Div":this.info="÷";break;case"Mod":this.info="%"}URule.setDomContent(this.selectorLabel,this.info),this.selectorLabel.css({color:"green","padding-left":"4px","padding-right":"4px"}),this.nextType||(this.nextType=new urule.NextType(this.rule),this.container.append(this.nextType.getContainer()))},urule.ComplexArithmetic.prototype.initData=function(t){if(t){var e=t.type;this.setOperator(e),this.nextType.initData(t)}},urule.ComplexArithmetic.prototype.getDisplayContainer=function(){if(this.nextType){var t=$(""+this.info+"");return t.append(this.nextType.getDisplayContainer()),t}return null},urule.ComplexArithmetic.prototype.toXml=function(){if(!this.nextType)return"";var t='';return t+=this.nextType.toXml(),t+=""},urule.ComplexArithmetic.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.VariableValue=function(t,e,n,o){this.arithmetic=t,this.container=$("");this.label=generateContainer(),this.functionProperty=o,this.container.append(this.label),this.label.css({color:"darkcyan"}),URule.setDomContent(this.label,"请选择变量"),t&&this.container.append(t.getContainer()),e&&this.initData(e),window._VariableValueArray.push(this),this.act=n,this.initMenu()},urule.VariableValue.prototype.getDisplayContainer=function(){var t=$(""+this.category+"."+this.variableLabel+"");if(this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.VariableValue.prototype.matchAct=function(t){return!this.act||t.indexOf(this.act)>-1},urule.VariableValue.prototype.initMenu=function(t){var e=window._uruleEditorVariableLibraries;if(t&&(e=t),e){var n,o,i,r;n=this,o=function(t){n.setValue({variableCategory:t.label,variables:t.variables})},i=function(t){n.setValue({variables:t.parent.parent.variables,variableCategory:t.parent.parent.label,variableLabel:t.label,variableName:t.name,datatype:t.datatype})},r={menuItems:[]},$.each(e,function(t,e){$.each(e,function(t,e){var a=e.variables;n.functionProperty&&n.category&&e.name==n.category&&n.functionProperty.initMenu(a);var s={label:e.name,variables:a,onClick:o};$.each(a||[],function(t,e){if(s.subMenu||(s.subMenu={menuItems:[]}),n.matchAct(e.act)){var o={name:e.name,label:e.label,datatype:e.type,act:e.act,variables:a,onClick:i};s.subMenu.menuItems.push(o)}}),r.menuItems.push(s)})}),n.menu?n.menu.setConfig(r):n.menu=new URule.menu.Menu(r),this.label.click(function(t){n.menu.show(t)})}},urule.VariableValue.prototype.setValue=function(t){this.category=t.variableCategory,this.variableName=t.variableName,this.variableLabel=t.variableLabel,this.datatype=t.datatype,this.functionProperty&&this.functionProperty.initMenu(t.variables),this.variableLabel?URule.setDomContent(this.label,this.category+"."+this.variableLabel):URule.setDomContent(this.label,this.category),window._setDirty()},urule.VariableValue.prototype.initData=function(t){this.setValue(t),this.arithmetic&&this.arithmetic.initData(t.arithmetic)},urule.VariableValue.prototype.toXml=function(){if(!this.category||""==this.category)throw"变量不能为空!";var t='var-category="'+this.category+'"';return this.variableName&&(t+=' var="'+this.variableName+'" var-label="'+this.variableLabel+'" datatype="'+this.datatype+'"'),t},urule.VariableValue.prototype.getType=function(){return this.variableName?"Variable":"VariableCategory"},urule.VariableValue.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.ResourceListDialog=function(t,e,n){this.type=t,this.select=e,this.doSuccess=n,this.init()},urule.ResourceListDialog.prototype.open=function(){this.initData(),this.dialog.dialog("open")},urule.ResourceListDialog.prototype.close=function(){this.dialog.dialog("close")},urule.ResourceListDialog.prototype.getSelectedFile=function(){var t=!1,e=null,n=this.tree.getSelectedNodes();return n&&n.length>0&&(e=n[0],e.isParent||(t=!0)),t?e.fullPath:(URule.alert("请先选择一个库文件!"),null)},urule.ResourceListDialog.prototype.init=function(){var t=this;this.dialog=$("
    "),this.treeContainer=$("
    "),this.dialog.append(this.treeContainer),this.dialog.dialog({title:"库列表",height:500,width:400,autoOpen:!1,modal:!0,show:!1,buttons:[{text:"确认",click:function(){var e=t.getSelectedFile();e&&t.doSelectFile(e)}},{text:"选择版本",click:function(){var e=t.getSelectedFile();if(e){var n=new urule.ResourceVersionDialog(e);n.open(function(e){t.doSelectFile(e)})}}},{text:"取消",click:function(){$(this).dialog("close")}}]})},urule.ResourceListDialog.prototype.doSelectFile=function(t){var e="jcr:"+t;if(this.doSuccess)return this.doSuccess(this.type,e),void this.dialog.dialog("close");var n=!1;if(this.select.each(function(){$(this.childNodes).each(function(){var t=this.textContent;t==e&&(n=!0)})}),n)URule.alert("当前库文件已被添加!");else{var o=this,i=$(""+e+"");i.click(function(){o.select.find(".active").removeClass("active"),i.addClass("active")}),this.select.append(i),this.dialog.dialog("close")}},urule.ResourceListDialog.prototype.initData=function(){var t=this,e=(uruleServer||"")+"urule?action=loadrepo&filetype="+this.type+"&path="+t.getRequestParameter("file");$.ajax({cache:!1,dataType:"json",url:e,error:function(t,e){URule.alert("加载资源失败:"+e)},success:function(e){t.tree=$.fn.zTree.init(t.treeContainer,{},e)}})},urule.ResourceListDialog.prototype.getRequestParameter=function(t){for(var e=null,n=window.location.search.substring(1).split("&"),o=0;o");var t='';t+="",t+='',t+='',t+='',t+='',t+="
    版本号创建人创建时间
    ",this.table=$(t);var e="urule?action=loadversion&file="+this.path;this.table.bootstrapTable({url:e,onLoadSuccess:function(){n.table.css("margin-top","")}}),this.dialog.append(this.table);var n=this;this.dialog.dialog({title:"版本列表【"+n.path+"】",height:400,width:700,autoOpen:!1,modal:!0,show:!1,buttons:[{text:"确认",click:function(){var t=n.table.bootstrapTable("getSelections");return 0==t.length?void URule.alert("请选择一个版本!"):(n.doSuccess(n.path+":"+t[0].name),void $(this).dialog("close"))}},{text:"取消",click:function(){$(this).dialog("close")}}]})}},function(t,e){"use strict";urule.ConstantValue=function(t,e){this.arithmetic=t,this.container=$(""),this.label=generateContainer(),this.container.append(this.label),this.label.css({color:"#0174DF"}),this.label.prop("innerText","请选择常量"),t&&this.container.append(t.getContainer()),e&&(this.setValue(e),t.initData(e.arithmetic)),this.initMenu(),window._ConstantValueArray.push(this)},urule.ConstantValue.prototype.setValue=function(t){this.category=t.constantCategory,this.constantName=t.constantName,this.constantLabel=t.constantLabel,URule.setDomContent(this.label,this.category+"."+this.constantLabel),window._setDirty()},urule.ConstantValue.prototype.initMenu=function(t){var e=window._uruleEditorConstantLibraries;if(t&&(e=t),e){var n,o,i;n=this,o=function(t){n.setValue({constantCategory:t.parent.parent.label,constantLabel:t.label,constantName:t.name})},i={menuItems:[]},$.each(e,function(t,e){var n=e.categories;$.each(n,function(t,e){var n={label:e.label},r=e.constants;$.each(r,function(t,e){n.subMenu||(n.subMenu={menuItems:[]}),n.subMenu.menuItems.push({name:e.name,label:e.label,onClick:o})}),i.menuItems.push(n)})}),n.menu?n.menu.setConfig(i):n.menu=new URule.menu.Menu(i),this.label.click(function(t){n.menu.show(t)})}},urule.ConstantValue.prototype.getDisplayContainer=function(){var t=$(""+this.category+"."+this.constantLabel+"");if(this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.ConstantValue.prototype.toXml=function(){if(!this.category)throw"常量不能为空!";var t='const-category="'+this.category+'" const="'+this.constantName+'" const-label="'+this.constantLabel+'"';return t},urule.ConstantValue.prototype.getContainer=function(){return this.container}},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var i=n(241),r=n(339),a=o(r);urule.ConfigActionDialog=function(t){this.parent=t,this.init()},urule.ConfigActionDialog.prototype.open=function(){var t=this;i.MsgBox.showDialog("动作库配置",this.dialogContent,[{name:"添加",holdDialog:!0,click:function(){a.eventEmitter.emit(a.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ActionLibrary",callback:function(e,n){var o="jcr:"+e;"LATEST"!==n&&(o+=":"+n);var r=window.actionLibraries.indexOf(o);return r!==-1?void i.MsgBox.alert("动作库文件已存在"):(t.tbody.append(t.newLibRow(o)),window.actionLibraries.push(o),window.refreshActionLibraries(),void window._setDirty())}})}}])},urule.ConfigActionDialog.prototype.init=function(){var t=$('\n\t\t\n\t\t\t\n\t\t\n\t
    动作库文件操作
    ');this.tbody=$(""),t.append(this.tbody),this.dialogContent=$("
    "),this.dialogContent.append(t);for(var e=0;e\n\t\t\t"+t+"\n\t\t"),n=$(""),o=$('');return n.append(o),o.click(function(){var n=window.actionLibraries.indexOf(t);window.actionLibraries.splice(n,1),e.remove(),window.refreshActionLibraries(),window._setDirty()}),e.append(n),e}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.HIDE_VERSION_SELECT_DIALOG=e.OPEN_VERSION_SELECT_DIALOG=e.HIDE_KNOWLEDGE_TREE_DIALOG=e.OPEN_KNOWLEDGE_TREE_DIALOG=e.TREE_DIR_NODE_CLICK=e.TREE_NODE_CLICK=e.HIDE_LOADING=e.SHOW_LOADING=void 0;var i=n(240),r=o(i);e.SHOW_LOADING="show_loading",e.HIDE_LOADING="hide_loading",e.TREE_NODE_CLICK="tree_node_click",e.TREE_DIR_NODE_CLICK="tree_dir_node_click",e.OPEN_KNOWLEDGE_TREE_DIALOG="open_knowledge_tree_dialog",e.HIDE_KNOWLEDGE_TREE_DIALOG="hide_knowledge_tree_dialog",e.OPEN_VERSION_SELECT_DIALOG="open_version_select_dialog",e.HIDE_VERSION_SELECT_DIALOG="hide_version_select_dialog",e.eventEmitter=new r.default.EventEmitter},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var i=n(241),r=n(339),a=o(r);urule.ConfigConstantDialog=function(t){this.parent=t,this.init()},urule.ConfigConstantDialog.prototype.open=function(){var t=this;i.MsgBox.showDialog("常量库配置",this.dialogContent,[{name:"添加",holdDialog:!0,click:function(){a.eventEmitter.emit(a.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ConstantLibrary",callback:function(e,n){var o="jcr:"+e;"LATEST"!==n&&(o+=":"+n);var r=window.constantLibraries.indexOf(o);return r!==-1?void i.MsgBox.alert("常量库文件已存在"):(t.tbody.append(t.newLibRow(o)),window.constantLibraries.push(o),window.refreshConstantLibraries(),void window._setDirty())}})}}])},urule.ConfigConstantDialog.prototype.init=function(){var t=$('\n\t\t\n\t\t\t\n\t\t\n\t
    常量库文件操作
    ');this.tbody=$(""),t.append(this.tbody),this.dialogContent=$("
    "),this.dialogContent.append(t);for(var e=0;e\n\t\t\t"+t+"\n\t\t"),n=$(""),o=$('');return n.append(o),o.click(function(){var n=window.constantLibraries.indexOf(t);window.constantLibraries.splice(n,1),e.remove(),window.refreshConstantLibraries(),window._setDirty()}),e.append(n),e}},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var i=n(241),r=n(339),a=o(r);urule.ConfigParameterDialog=function(t){this.parent=t,this.init()},urule.ConfigParameterDialog.prototype.open=function(){var t=this;i.MsgBox.showDialog("参数库配置",this.dialogContent,[{name:"添加",holdDialog:!0,click:function(){a.eventEmitter.emit(a.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ParameterLibrary",callback:function(e,n){var o="jcr:"+e;"LATEST"!==n&&(o+=":"+n);var r=window.parameterLibraries.indexOf(o);return r!==-1?void i.MsgBox.alert("参数库文件已存在"):(t.tbody.append(t.newLibRow(o)),window.parameterLibraries.push(o),window.refreshParameterLibraries(),void window._setDirty())}})}}])},urule.ConfigParameterDialog.prototype.init=function(){var t=$('\n\t\t\n\t\t\t\n\t\t\n\t
    参数库文件操作
    ');this.tbody=$(""),t.append(this.tbody),this.dialogContent=$("
    "),this.dialogContent.append(t);for(var e=0;e\n\t\t\t"+t+"\n\t\t"),n=$(""),o=$('');return n.append(o),o.click(function(){var n=window.parameterLibraries.indexOf(t);window.parameterLibraries.splice(n,1),e.remove(),window.refreshParameterLibraries(),window._setDirty()}),e.append(n),e}},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var i=n(241),r=n(339),a=o(r);urule.ConfigVariableDialog=function(t){this.parent=t,this.init()},urule.ConfigVariableDialog.prototype.open=function(){var t=this;i.MsgBox.showDialog("变量库配置",this.dialogContent,[{name:"添加",holdDialog:!0,click:function(){a.eventEmitter.emit(a.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"VariableLibrary",callback:function(e,n){var o="jcr:"+e;"LATEST"!==n&&(o+=":"+n);var r=window.variableLibraries.indexOf(o);return r!==-1?void i.MsgBox.alert("变量库文件已存在"):(t.tbody.append(t.newLibRow(o)),window.variableLibraries.push(o),window.refreshVariableLibraries(),void window._setDirty())}})}}])},urule.ConfigVariableDialog.prototype.init=function(){var t=$('\n\t\t\n\t\t\t\n\t\t\n\t
    变量库文件操作
    ');this.tbody=$(""),t.append(this.tbody),this.dialogContent=$("
    "),this.dialogContent.append(t);for(var e=0;e\n\t\t\t"+t+"\n\t\t"),n=$(""),o=$('');return n.append(o),o.click(function(){var n=window.variableLibraries.indexOf(t);window.variableLibraries.splice(n,1),e.remove(),window.refreshVariableLibraries(),window._setDirty()}),e.append(n),e}},function(t,e){"use strict";urule.ActionType=function(t,e){this.uuid=Math.uuid(),t.prop("id",this.uuid),this.rule=e,this.parentContainer=t,this.type="",this.init(),window._ActionTypeArray.push(this),this.initMenu()},urule.ActionType.prototype.toXml=function(){if("execute-function"==this.type){var t="",t+=this.action.getParameter().toXml(),t+=""}return this.action.toXml()},urule.ActionType.prototype.initData=function(t){if(t){var e=t.actionType;this.setAction(e,t)}},urule.ActionType.prototype.init=function(){this.container=generateContainer(),URule.setDomContent(this.container,"请选择动作类型"),this.container.css({color:"green"}),this.parentContainer.append(this.container),this.action=null},urule.ActionType.prototype.initMenu=function(t){var e=window._uruleEditorActionLibraries;t&&(e=t);var n,o,i;n=this,o=function(t){var e=t.parent.parent;n.setAction("ExecuteMethod",{beanLabel:e.label,beanId:e.name,methodLabel:t.label,methodName:t.name,parameters:t.parameters})},i={menuItems:[{label:"打印内容到控制台",onClick:function(){n.setAction("ConsolePrint")}},{label:"变量赋值",onClick:function(){n.setAction("VariableAssign")}},{label:"执行函数",onClick:function(){n.setAction("ExecuteCommonFunction")}}]},$.each(e||[],function(t,e){var n=e.springBeans||[];$.each(n,function(t,e){var n={name:e.id,label:e.name},r=e.methods||[];$.each(r,function(t,e){n.subMenu||(n.subMenu={menuItems:[]}),n.subMenu.menuItems.push({name:e.methodName,label:e.name,parameters:e.parameters,onClick:o})}),i.menuItems.push(n)})}),n.menu?n.menu.setConfig(i):n.menu=new URule.menu.Menu(i),this.container.click(function(t){n.menu.show(t)})},urule.ActionType.prototype.initDefaultMenuData=function(){var t=this,e=[];return e.push({name:"打印内容到控制台",fun:function(){t.setAction("ConsolePrint")}}),e.push({name:"变量赋值",fun:function(){t.setAction("VariableAssign")}}),e},urule.ActionType.prototype.setAction=function(t,e){switch(window._setDirty(),this.action&&this.action.getContainer().remove(),t){case"ConsolePrint":this.action=new urule.PrintAction(this.rule),URule.setDomContent(this.container,"输出:"),this.type="console-print";break;case"ExecuteMethod":this.action=new urule.MethodAction(this.rule),URule.setDomContent(this.container,"执行方法:"),this.type="execute-method";break;case"VariableAssign":this.action=new urule.AssignmentAction(this.rule),URule.setDomContent(this.container,"变量赋值:"),this.type="var-assign";break;case"ExecuteCommonFunction":this.action=new urule.FunctionValue(null,null,this.rule),URule.setDomContent(this.container,"执行函数:"),this.type="execute-function"}this.parentContainer.append(this.action.getContainer()),this.action.initData(e)}},function(t,e){"use strict";urule.PrintAction=function(t){this.container=$(""),this.beforeContainer=$(""),URule.setDomContent(this.beforeContainer,""),this.container.append(this.beforeContainer),this.inputType=new urule.InputType(null,null,null,t),this.inputTypeContainer=this.inputType.getContainer(),this.container.append(this.inputTypeContainer),this.afterContainer=$(""),URule.setDomContent(this.afterContainer,""),this.container.append(this.afterContainer)},urule.PrintAction.prototype.initData=function(t){if(t){var e=t.value;e&&this.inputType.setValueType(e.valueType,e)}},urule.PrintAction.prototype.toXml=function(){var t="";return t+=this.inputType.toXml(),t+=""},urule.PrintAction.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.AssignmentAction=function(t){this.container=$(""),this.label=generateContainer(),this.container.append(this.label),URule.setDomContent(this.label,"请选择值类型"),this.label.css({color:"blue"}),this.valueContainer=$(""),this.container.append(this.valueContainer),this.leftVariable=new urule.VariableValue(null,null,"Out"),this.leftParameter=new urule.ParameterValue(null,null,"Out"),this.leftReference=new urule.NamedReferenceValue(null,null,t),this.valueContainer.append(this.leftVariable.getContainer()),this.valueContainer.append(this.leftParameter.getContainer()),this.valueContainer.append(this.leftReference.getContainer()),this.leftVariable.getContainer().hide(),this.leftParameter.getContainer().hide(),this.leftReference.getContainer().hide();var e=$("");URule.setDomContent(e,"="),e.css({color:"red",fontWeight:"blod"}),this.container.append(e),this.inputType=new urule.InputType(null,null,null,t),this.container.append(this.inputType.getContainer());var n=this;n.menu=new URule.menu.Menu({menuItems:[{label:"选择变量",onClick:function(){n.leftParameter.getContainer().hide(),n.leftReference.getContainer().hide(),n.leftVariable.getContainer().show(),n.type="variable",URule.setDomContent(n.label,"."),n.label.css({color:"white"})}},{label:"选择参数",onClick:function(){n.leftVariable.getContainer().hide(),n.leftReference.getContainer().hide(),n.leftParameter.getContainer().show(),n.type="parameter",URule.setDomContent(n.label,"."),n.label.css({color:"white"})}},{label:"选择命名变量",onClick:function(){n.leftVariable.getContainer().hide(),n.leftParameter.getContainer().hide(),n.leftReference.getContainer().show(),n.type="NamedReference",URule.setDomContent(n.label,"."),n.label.css({color:"white"})}}]}),this.label.click(function(t){n.menu.show(t)})},urule.AssignmentAction.prototype.initData=function(t){if(t){this.type=t.type,this.type&&"parameter"==this.type?(this.leftParameter.setValue(t),this.leftVariable.getContainer().hide(),this.leftReference.getContainer().hide(),this.leftParameter.getContainer().show()):this.type&&"NamedReference"==this.type?(this.leftReference.initData(t),this.leftVariable.getContainer().hide(),this.leftParameter.getContainer().hide(),this.leftReference.getContainer().show()):(this.type="variable",this.leftVariable.setValue(t),this.leftParameter.getContainer().hide(),this.leftReference.getContainer().hide(),this.leftVariable.getContainer().show());var e=t.value;if(e){var n=e.valueType;this.inputType.setValueType(n,e)}URule.setDomContent(this.label,"."),this.label.css({color:"white"})}},urule.AssignmentAction.prototype.toXml=function(){var t="',t+=this.inputType.toXml(),t+=""},urule.AssignmentAction.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.SimpleArithmetic=function(){this.container=$(""),this.selectorLabel=generateContainer(),URule.setDomContent(this.selectorLabel,"."),this.selectorLabel.css({color:"#FFF"}),this.operator="",this.container.append(this.selectorLabel),this.value=null;var t=this,e=function(e){t.setOperator(e.name)};t.menu=new URule.menu.Menu({menuItems:[{label:"+",name:"Add",onClick:e},{label:"-",name:"Sub",onClick:e},{label:"x",name:"Mul",onClick:e},{label:"÷",name:"Div",onClick:e},{label:"%",name:"Mod",onClick:e},{label:"删除",onClick:function(){t.value&&(t.value.getContainer().remove(),t.operator=null,t.value=null,URule.setDomContent(t.selectorLabel,"."),t.selectorLabel.css({color:"#FFF","padding-left":"0px","padding-right":"0px"}))}}]}),this.selectorLabel.click(function(e){t.menu.show(e)})},urule.SimpleArithmetic.prototype.initData=function(t){if(t){var e=t.type;this.setOperator(e),this.value.initData(t.value)}},urule.SimpleArithmetic.prototype.setOperator=function(t){window._setDirty(),this.operator=t;var e="";switch(t){case"Add":e="+";break;case"Sub":e="-";break;case"Mul":e="x";break;case"Div":e="÷";break;case"Mod":e="%"}this.selectorLabel.css({color:"green",fontWeight:"blod","padding-left":"5px","padding-right":"5px"}),URule.setDomContent(this.selectorLabel,e),this.value||(this.simpleArithmetic=new urule.SimpleArithmetic,this.value=new urule.SimpleValue(this.simpleArithmetic),this.container.append(this.value.getContainer()))},urule.SimpleArithmetic.prototype.toXml=function(){if(!this.operator||""==this.operator)return"";if(!this.value)throw"请输入具体值!";var t=this.value.getValue();if(""==t)throw"请输入具体值!";var e='';return e+=this.simpleArithmetic.toXml(),e+=""},urule.SimpleArithmetic.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.RuleProperty=function(t,e,n,o){this.parent=t,this.value=n,this.editorType=o,this.container=$("");var i=$("");this.name=e;var r=this.getLabel();URule.setDomContent(i,r+":"),this.container.append(i);var a=$(""),s=generateContainer();""==n&&(n="无"),s.css({color:"#000"}),URule.setDomContent(s,n),a.append(s),this.container.append(a);var l=null;this.radioName=Math.uuid(15),this.yesRadio=null,this.noRadio=null,1==o?l=$(""):2==o?l=$(""):3==o&&(this.yesRadio=$(" 是 "),this.noRadio=$(" 否"));var A=this;if(3!=o){if(l.blur(function(){A.value=l.prop("value"),l.hide(),""==A.value?URule.setDomContent(s,"无"):URule.setDomContent(s,A.value),s.show(),window._setDirty()}),s.click(function(){s.hide(),l.prop("value",A.value),l.show(),l.focus()}),this.container.append(l),l.hide(),2==o&&"无"!==n){new Date(n);this.value=n,URule.setDomContent(s,this.value)}}else 1==n?this.yesRadio.prop("checked",!0):this.noRadio.prop("checked",!0),this.yesRadio.change(function(){window._setDirty()}),this.noRadio.change(function(){window._setDirty()}),s.hide(),this.container.append(this.yesRadio),this.container.append(this.noRadio);var c=$('');c.click(function(){A.container.remove();var t=A.parent.properties.indexOf(A);A.parent.properties.splice(t,1),window._setDirty()}),this.container.append(c)},urule.RuleProperty.prototype.getLabel=function(){var t="";return"salience"==this.name?t="优先级":"loop"==this.name?t="允许循环触发":"effective-date"==this.name?t="生效日期":"expires-date"==this.name?t="失效日期":"enabled"==this.name?t="是否启用":"debug"==this.name?t="允许调试信息输出":"activation-group"==this.name?t="互斥组":"agenda-group"==this.name?t="执行组":"auto-focus"==this.name?t="自动获取焦点":"ruleflow-group"==this.name&&(t="规则流组"),t},urule.RuleProperty.prototype.toXml=function(){var t=this.name;if(3==this.editorType)t+=this.yesRadio.prop("checked")?'="true"':'="false"';else{if(!this.value||""==this.value)throw"请输入属性"+this.name+"的具体值!";t+='="'+this.value+'"'}return t},urule.RuleProperty.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.Join=function(t){this.type="and",this.context=t,this.H=30,this.W=60,this.children=[],this.joinContainer=$(""),this.joinContainer.css({border:"solid gray 1px",padding:"3px",background:"#fff"}),this.joinLabel=$("并且"),this.joinContainer.append(this.joinLabel)},urule.Join.prototype.initData=function(t){var e=[],n=t.conditions,o=t.joints;if(this.setType(t.type),n&&(e=n),o&&(e=e.concat(o)),0!=e.length)for(var i=0;i'),n=this;n.menu=new URule.menu.Menu({menuItems:[{label:"并且",onClick:function(){n.setType("and")}},{label:"或者",onClick:function(){n.setType("or")}},{label:"添加条件",onClick:function(){n.addItem(!1)}}]}),this.joinContainer.click(function(t){n.menu.show(t)}),this.joinContainer.append(e)},urule.Join.prototype.clean=function(){for(;this.children.length>0;){var t=this.children[0];this.removeConnection(t)}},urule.Join.prototype.removeConnection=function(t){var e=this.children.indexOf(t);this.children.length>1&&this.resetItemPosition(e+1,!1),t.remove(),this.children.splice(e,1),this.resetContainerSize(),window._setDirty()},urule.Join.prototype.addItem=function(t){window._setDirty();var e=this.getChildrenCount();if(e>0&&this.parent){var n=this.parent.getChildren(),o=n.indexOf(this.parentConnection);this.parent.resetItemPosition(o+1,!0)}var i=e*this.H,r=parseInt(this.joinContainer.css("left")),a=parseInt(this.joinContainer.css("top")),s=r+this.W/2,l=a+this.H/5,A=s+this.W-25,c=l+i;t&&(c-=5);var u=new urule.Connection(this.context,t,this);return u.drawPath(s,l,A,c),this.children.push(u),this.resetContainerSize(),u},urule.Join.prototype.toXml=function(){for(var t='',e=0;e0&&this.parent){var r=this.parent.getChildren(),a=r.indexOf(this.parentConnection),s=this.parentConnection.getParentJoin();s.resetItemPosition(a+1,e)}window._setDirty()}},urule.Join.prototype.resetContainerSize=function(){var t=this.context.getCanvas(),e=t.css("height");e=parseInt(e);var n=this.context.getTotalChildrenCount();0==n&&(n=1);var o=n*this.H+10;t.css({height:o+"px"})},urule.Join.prototype.getChildrenCount=function(){for(var t=0,e=0;e"),e=0;e0&&("or"==this.type?t.append($(" 或 ")):t.append($(" 并且 "))),t.append(o))}return t},urule.Join.prototype.getChildren=function(){return this.children},urule.Join.prototype.getContainer=function(){return this.joinContainer}},function(t,e){"use strict";urule.Connection=function(t,e,n){this.isJoin=e,this.context=t,this.parentJoin=n},urule.Connection.prototype.drawPath=function(t,e,n,o){this.startX=t,this.endX=n,this.isJoin?(this.startY=e-3,this.endY=o+2):(this.startY=e-3,this.endY=o-3),this.path=this.context.getPaper().path(this.buildPathInfo()),this.path.attr({stroke:"#777"}),this.isJoin?this.initJoin():this.initCondition()},urule.Connection.prototype.toXml=function(){var t="";return t=this.isJoin?this.join.toXml():this.condition.toXml()},urule.Connection.prototype.initJoin=function(){this.join=new urule.Join(this.context), this.join.init(this);var t=this.join.getContainer(),e=this.endX+10+"px",n=this.endY+"px";t.css({position:"absolute",left:e,top:n}),this.context.getCanvas().append(t)},urule.Connection.prototype.getDisplayContainer=function(){return this.join?this.join.getDisplayContainer():this.condition.getDisplayContainer()},urule.Connection.prototype.remove=function(){this.path.remove(),this.join?this.join.getContainer().remove():this.conditionContainer.remove(),window._setDirty()},urule.Connection.prototype.initCondition=function(){this.conditionContainer=$("
    ");var t=this.endX+10+"px",e=this.endY+"px";this.conditionContainer.css({position:"absolute",left:t,top:e}),this.condition=new urule.Condition(this.conditionContainer);var n=$(''),o=this;n.click(function(){o.parentJoin.removeConnection(o)}),this.conditionContainer.append(n),this.context.getCanvas().append(this.conditionContainer)},urule.Connection.prototype.update=function(t){var e=this.buildPathInfo();this.path.attr("path",e);var n=this.endY+"px";this.conditionContainer?this.conditionContainer.css({top:n}):this.join.getContainer().css({top:n}),this.join&&this.join.resetItemPosition(0,t)},urule.Connection.prototype.getParentJoin=function(){return this.parentJoin},urule.Connection.prototype.getCondition=function(){return this.condition},urule.Connection.prototype.getJoin=function(){return this.join},urule.Connection.prototype.getStartX=function(){return this.startX},urule.Connection.prototype.getStartY=function(){return this.startY},urule.Connection.prototype.getEndX=function(){return this.endX},urule.Connection.prototype.getEndY=function(){return this.endY},urule.Connection.prototype.setStartX=function(t){this.startX=t},urule.Connection.prototype.setStartY=function(t){this.startY=t},urule.Connection.prototype.setEndX=function(t){this.endX=t},urule.Connection.prototype.setEndY=function(t){this.endY=t},urule.Connection.prototype.buildPathInfo=function(){var t=10,e=8;return"M"+(this.startX+t)+","+(this.startY+e)+" C"+(this.startX+t)+","+(this.endY+e)+","+(this.startX+t)+","+(this.endY+e)+","+(this.endX+t)+","+(this.endY+e)}},function(t,e){"use strict";urule.InputType=function(t,e,n,o){this.container=$(""),this.label=generateContainer(),this.rule=o,this.container.append(this.label),e?(URule.setDomContent(this.label,e),this.label.css({color:"gray"})):(URule.setDomContent(this.label,"选择值类型"),this.label.css({color:"blue"})),this.functionProperty=n,this.variableValue=null,this.simpleValue=null,this.referenceValue=null,this.methodValue=null,this.constantValue=null,this.functionValue=null,this.dataContainer=$(""),this.container.append(this.dataContainer),this.type="";var i=this,r=function(t){i.setValueType(t.name)};if(i.menu=new URule.menu.Menu({menuItems:[{label:"输入值",name:"Input",onClick:r},{label:"选择变量",name:"Variable",onClick:r},{label:"选择常量",name:"Constant",onClick:r},{label:"选择参数",name:"Parameter",onClick:r}]}),this.rule&&i.menu.menuItems.push({label:"选择命名变量",name:"NamedReference",onClick:r}),i.menu.menuItems.push({label:"选择方法",name:"Method",onClick:r},{label:"选择函数",name:"CommonFunction",onClick:r}),this.label.click(function(t){i.menu.show(t)}),t){var a=$(""+t+"");this.container.append(a)}},urule.InputType.prototype.getDisplayContainer=function(){var t=$("");return"Input"==this.type?t.append(this.simpleValue.getDisplayContainer()):"Variable"==this.type||"VariableCategory"==this.type?t.append(this.variableValue.getDisplayContainer()):"Constant"==this.type?t.append(this.constantValue.getDisplayContainer()):"Method"==this.type?t.append(this.methodValue.getDisplayContainer()):"Parameter"==this.type?t.append(this.parameterValue.getDisplayContainer()):"CommonFunction"==this.type?t.append(this.functionValue.getDisplayContainer()):"NamedReference"==this.type&&t.append(this.referenceValue.getDisplayContainer()),t},urule.InputType.prototype.setValueType=function(t,e){switch(window._setDirty(),this.type=t,this.variableValue&&this.variableValue.getContainer().hide(),this.constantValue&&this.constantValue.getContainer().hide(),this.simpleValue&&this.simpleValue.getContainer().hide(),this.referenceValue&&this.referenceValue.getContainer().hide(),this.methodValue&&this.methodValue.getContainer().hide(),this.parameterValue&&this.parameterValue.getContainer().hide(),this.functionValue&&this.functionValue.getContainer().hide(),URule.setDomContent(this.label,"."),this.label.css({color:"#FDFDFD"}),t){case"Input":this.simpleValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.simpleValue=new urule.SimpleValue(this.arithmetic,e),this.dataContainer.append(this.simpleValue.getContainer())),this.simpleValue.getContainer().show(),this.type="Input";break;case"NamedReference":this.referenceValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.referenceValue=new urule.NamedReferenceValue(this.arithmetic,e,this.rule),this.dataContainer.append(this.referenceValue.getContainer())),this.referenceValue.getContainer().show(),this.type="NamedReference";break;case"Constant":this.constantValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.constantValue=new urule.ConstantValue(this.arithmetic,e),this.dataContainer.append(this.constantValue.getContainer())),this.constantValue.getContainer().show(),this.type="Constant";break;case"Method":this.methodValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.methodValue=new urule.MethodValue(this.arithmetic,e,this.dataContainer),this.dataContainer.append(this.methodValue.getContainer())),this.methodValue.getContainer().show(),this.type="Method";break;case"Parameter":this.parameterValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.parameterValue=new urule.ParameterValue(this.arithmetic,e,"In"),this.dataContainer.append(this.parameterValue.getContainer())),this.parameterValue.getContainer().show(),this.type="Parameter";break;case"CommonFunction":this.functionValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.functionValue=new urule.FunctionValue(this.arithmetic,e,"In"),this.dataContainer.append(this.functionValue.getContainer())),this.functionValue.getContainer().show(),this.type="CommonFunction";break;default:this.variableValue||(this.arithmetic=new urule.ComplexArithmetic(this.rule),this.variableValue=new urule.VariableValue(this.arithmetic,e,"In",this.functionProperty),this.dataContainer.append(this.variableValue.getContainer())),this.variableValue.getContainer().show(),this.type="Variable"}},urule.InputType.prototype.toXml=function(){if(""==this.type)return"";var t=""),this.rule=t,this.inputType=null,this.paren=null,this.selectorLabel=generateContainer(),this.selectorLabel.css({fontWeight:"blod",color:"#fff"}),this.container.append(this.selectorLabel),URule.setDomContent(this.selectorLabel,".");var e=this,n=function(t){var n=t.name;e.doNext(n),window._setDirty()};e.menu=new URule.menu.Menu({menuItems:[{label:"值",name:"value",onClick:n},{label:"括号",name:"paren",onClick:n}]}),this.selectorLabel.click(function(t){e.menu.show(t)})},urule.NextType.prototype.initData=function(t){var e=t.value,n=e.valueType;"Paren"==n?(this.doNext("paren"),this.paren.initData(e)):(this.doNext("value"),this.inputType.setValueType(n,e))},urule.NextType.prototype.toXml=function(){return this.paren?this.paren.toXml():this.inputType?this.inputType.toXml():""},urule.NextType.prototype.getDisplayContainer=function(){return this.inputType?this.inputType.getDisplayContainer():this.paren?this.paren.getDisplayContainer():null},urule.NextType.prototype.getContainer=function(){return this.container},urule.NextType.prototype.doNext=function(t){"value"==t?(this.paren&&(this.paren.getContainer().remove(),this.paren=null),this.inputType||(this.inputType=new urule.InputType(null,null,null,this.rule),this.container.append(this.inputType.getContainer()))):"paren"==t&&(this.inputType&&(this.inputType.getContainer().remove(),this.inputType=null),this.paren||(this.paren=new urule.Paren(this.rule),this.container.append(this.paren.getContainer())))}},function(t,e){"use strict";urule.Paren=function(t){this.container=$(""),this.leftParen=$("("),this.leftParen.css({color:"#000",fontWeight:"blod","padding-left":"3px","padding-right":"3px"}),this.rightParen=$(")"),this.rightParen.css({color:"#000",fontWeight:"blod","padding-left":"3px","padding-right":"3px"}),this.parenContainer=$(""),this.container.append(this.leftParen),this.container.append(this.parenContainer),this.container.append(this.rightParen),this.inputType=new urule.InputType(null,null,null,t),this.parenContainer.append(this.inputType.getContainer()),this.arithmetic=new urule.ComplexArithmetic(t),this.container.append(this.arithmetic.getContainer())},urule.Paren.prototype.initData=function(t){var e=t.value,n=e.valueType;this.inputType.setValueType(n,e),this.arithmetic.initData(t.arithmetic)},urule.Paren.prototype.getDisplayContainer=function(){return this.inputType.getDisplayContainer()},urule.Paren.prototype.toXml=function(){if(!this.inputType)throw"请输入括号内容!";var t="";return t+=this.inputType.toXml(),this.arithmetic&&(t+=this.arithmetic.toXml()),t+=""},urule.Paren.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.MethodParameter=function(t){this.inputType=new urule.InputType(null,null,null,t),this.container=this.inputType.getContainer()},urule.MethodParameter.prototype.initData=function(t){if(t&&(this.name=t.name,this.type=t.type,t.value)){var e=t.value;e.valueType&&this.inputType.setValueType(e.valueType,e)}},urule.MethodParameter.prototype.toXml=function(){var t='';return t+=this.inputType.toXml(),t+=""},urule.MethodParameter.prototype.getContainer=function(){return this.container},urule.MethodParameter.prototype.getInputType=function(){return this.inputType}},function(t,e){"use strict";urule.MethodAction=function(t){this.parameters=[],this.rule=t,this.init()},urule.MethodAction.prototype.init=function(){this.container=$(""),this.nameContainer=$(""),this.container.append(this.nameContainer),this.nameContainer.css({color:"darkblue"})},urule.MethodAction.prototype.initData=function(t){if(t){this.bean=t.beanId,this.name=t.beanLabel,this.method=t.methodName,this.methodLabel=t.methodLabel;var e=t.parameters;if(this.parameterCount=0,e&&(this.parameterCount=e.length),0===this.parameterCount){URule.setDomContent(this.nameContainer,this.methodLabel);var n=$("(无参数)");this.container.append(n)}else URule.setDomContent(this.nameContainer,this.methodLabel+"(");if(0!=this.parameterCount){for(var o=0;o0){var r=$(";");this.container.append(r)}if(this.parameterCount>0){var a=$(" "+i.name+":");this.container.append(a)}var s=new urule.MethodParameter(this.rule);this.parameters.push(s),this.container.append(s.getContainer()),s.initData(i)}this.container.append(")")}}},urule.MethodAction.prototype.toXml=function(){if(!this.name||""==this.name)throw"请选择要执行的方法!";for(var t='',e=0;e"),this.label=generateContainer(),this.container.append(this.label),this.label.css({color:"#6b3db0"}),URule.setDomContent(this.label,"请选择参数"),t&&this.container.append(t.getContainer()),e&&this.initData(e),window._ParameterValueArray.push(this),this.act=n,this.initMenu()},urule.ParameterValue.prototype.getDisplayContainer=function(){var t=$("参数."+this.parameterLabel+"");if(this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.ParameterValue.prototype.matchAct=function(t){return!this.act||t.indexOf(this.act)>-1},urule.ParameterValue.prototype.initMenu=function(t){var e=window._uruleEditorParameterLibraries;if(t&&(e=t),e){var n,o,i;n=this,o=function(t){n.setValue({variableName:t.name,variableLabel:t.label,datatype:t.datatype})},i={menuItems:[]},$.each(e,function(t,e){$.each(e||[],function(t,e){if(n.matchAct(e.act)){var r={name:e.name,label:e.label,datatype:e.type,act:e.act,onClick:o};i.menuItems.push(r)}})}),n.menu?n.menu.setConfig(i):n.menu=new URule.menu.Menu(i),this.label.click(function(t){n.menu.show(t)})}},urule.ParameterValue.prototype.setValue=function(t){this.parameterName=t.variableName,this.parameterLabel=t.variableLabel,this.datatype=t.datatype,URule.setDomContent(this.label,"参数."+this.parameterLabel),window._setDirty()},urule.ParameterValue.prototype.initData=function(t){this.setValue(t),this.arithmetic&&this.arithmetic.initData(t.arithmetic)},urule.ParameterValue.prototype.toXml=function(){if(!this.parameterLabel||""==this.parameterLabel)throw"参数不能为空!";var t=' var-category="参数" var="'+this.parameterName+'" var-label="'+this.parameterLabel+'" datatype="'+this.datatype+'"';return t},urule.ParameterValue.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.MethodValue=function(t,e){this.arithmetic=t,this.container=$(""),this.rightParn=$("]"),this.label=generateContainer(),this.fetchLength=!1,this.uppercase=!1,this.lowercase=!1,this.fetchSize=!1,this.container.append(this.label),this.label.css({color:"blue"}),this.actionContainer=$(""),this.container.append(this.actionContainer),URule.setDomContent(this.label,"请选择方法"),t&&this.container.append(t.getContainer()),e&&(this.setAction(e),t.initData(e.arithmetic)),window._ActionTypeArray.push(this),this.initMenu()},urule.MethodValue.prototype.initMenu=function(t){var e=window._uruleEditorActionLibraries;t&&(e=t);var n,o,i;n=this,o=function(t){var e=t.parent.parent;n.setAction({beanLabel:e.label,beanId:e.name,methodLabel:t.label,methodName:t.name,parameters:t.parameters})},i={menuItems:[]},$.each(e||[],function(t,e){var n=e.springBeans||[];$.each(n,function(t,e){var n={name:e.id,label:e.name},r=e.methods||[];$.each(r,function(t,e){n.subMenu||(n.subMenu={menuItems:[]}),n.subMenu.menuItems.push({name:e.methodName,label:e.name,parameters:e.parameters,onClick:o})}),i.menuItems.push(n)})}),n.menu?n.menu.setConfig(i):n.menu=new URule.menu.Menu(i),this.label.click(function(t){n.menu.show(t)})},urule.MethodValue.prototype.setAction=function(t){window._setDirty(),this.action&&this.action.getContainer().remove(),this.action=new urule.MethodAction,URule.setDomContent(this.label,"["),this.actionContainer.append(this.action.getContainer()),this.actionContainer.append(this.rightParn),this.action.initData(t)},urule.MethodValue.prototype.getDisplayContainer=function(){var t="",e="";this.action&&(t=this.action.name,e=this.action.methodLabel);var n=$(""+e+"");if(this.arithmetic){var o=this.arithmetic.getDisplayContainer();o&&n.append(o)}return n},urule.MethodValue.prototype.toXml=function(){if(!this.action.bean||""==this.action.name)throw"执行方法不能为空!";var t='bean-name="'+this.action.bean+'"';return t+=' bean-label="'+this.action.name+'"',t+=' method-name="'+this.action.method+'"',t+=' method-label="'+this.action.methodLabel+'"'},urule.MethodValue.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.FunctionProperty=function(){this.container=$(""),this.label=generateContainer(),this.container.append(this.label),URule.setDomContent(this.label,"选择属性"),this.label.css({color:"#004C85"})},urule.FunctionProperty.prototype.toXml=function(){if(!this.variableName)throw"请选择函数属性";var t='property-name="'+this.variableName+'"';return t+=' property-label="'+this.variableLabel+'"'},urule.FunctionProperty.prototype.initMenu=function(t){if(t){var e=this,n=function(t){e.setProperty({name:t.name,label:t.label,datatype:t.type})},o={menuItems:[]};$.each(t,function(t,e){o.menuItems.push({name:e.name,label:e.label,datatype:e.type,onClick:n})}),this.menu=new URule.menu.Menu(o),this.label.click(function(t){e.menu.show(t)})}},urule.FunctionProperty.prototype.setProperty=function(t){window._setDirty(),this.variableName=t.name,this.variableLabel=t.label,URule.setDomContent(this.label,this.variableLabel)},urule.FunctionProperty.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.FunctionParameter=function(t){this.container=$(""),this.nameContainer=$(""),this.rule=t,this.container.append(this.nameContainer),this.nameContainer.css({color:"gray"})},urule.FunctionParameter.prototype.initData=function(t){if(t){this.name=t.name,URule.setDomContent(this.nameContainer,this.name+":"),(t.needProperty||t.property)&&(this.functionProperty=new urule.FunctionProperty,this.functionProperty.setProperty({name:t.property,label:t.propertyLabel})),this.inputType=new urule.InputType(null,null,this.functionProperty,this.rule);var e=t.objectParameter;if(e){var n=e.valueType;this.inputType.setValueType(n,e)}this.container.append(this.inputType.getContainer()),this.functionProperty&&(this.container.append($("")),this.container.append($("属性:")),this.container.append(this.functionProperty.getContainer()))}},urule.FunctionParameter.prototype.toXml=function(){if(!this.name)return"";var t="",t+=this.inputType.toXml(),t+=""},urule.FunctionParameter.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.FunctionValue=function(t,e,n){this.arithmetic=t,this.container=$(""),this.rule=n,this.leftParn=$("("),this.rightParn=$(")"),this.label=generateContainer(),this.container.append(this.label),this.label.css({color:"#008080"}),this.functionContainer=$(""),this.container.append(this.functionContainer),URule.setDomContent(this.label,"请选择函数"),t&&this.container.append(t.getContainer()),e&&(this.setFunction(e),t&&t.initData(e.arithmetic)),window._FunctionValueArray.push(this),this.initMenu()},urule.FunctionValue.prototype.getDisplayContainer=function(){var t=$(""+this.functionName+"");if(this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.FunctionValue.prototype.toXml=function(){if(!this.functionLabel)throw"请选择函数";if(!this.functionName)throw"请选择函数";var t=' function-label="'+this.functionLabel+'"';return t+=' function-name="'+this.functionName+'"'},urule.FunctionValue.prototype.initMenu=function(t){var e=window._uruleEditorFunctionLibraries;t&&(e=t);var n,o,i;n=this,o=function(t){n.setFunction({parameter:t.parameter,label:t.label,name:t.name})},i={menuItems:[]},$.each(e||[],function(t,e){i.menuItems.push({name:e.name,label:e.label,parameter:e.argument,onClick:o})}),n.menu?n.menu.setConfig(i):n.menu=new URule.menu.Menu(i),this.label.click(function(t){n.menu.show(t)})},urule.FunctionValue.prototype.initData=function(t){t&&this.setFunction(t)},urule.FunctionValue.prototype.setFunction=function(t){window._setDirty(),this.functionContainer.empty(),URule.setDomContent(this.label,t.label),this.functionContainer.append(this.leftParn),this.functionLabel=t.label,this.functionName=t.name,this.parameter=new urule.FunctionParameter(this.rule),this.parameter.initData(t.parameter),this.functionContainer.append(this.parameter.getContainer()),this.functionContainer.append(this.rightParn)},urule.FunctionValue.prototype.getFirstParameter=function(){return this.firstParameter},urule.FunctionValue.prototype.getParameter=function(){return this.parameter},urule.FunctionValue.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.SimpleValue=function(t,e){var n="请输入值";this.container=$(""),this.valueContainer=generateContainer(),this.valueContainer.css({color:"rgb(180,95,4)"}),this.editor=$('');var o=this;this.container.append(this.valueContainer).append(this.editor),this.editor.blur(function(){o.editor.hide();var t=o.editor.prop("value");""!=t&&URule.setDomContent(o.valueContainer,t),o.valueContainer.show(),$(this).trigger("DOMSubtreeModified"),window._setDirty()}).mousedown(function(t){t.stopPropagation()}).keydown(function(t){t.stopPropagation()}),o.editor.hide(),this.valueContainer.prop("innerText",n),this.valueContainer.click(function(){o.valueContainer.hide();var t=o.container.parent(),e=120;if(t&&t.parent()&&t.parent().parent()){t=t.parent().parent();var n=t.prop("class");n&&"htMiddle htDimmed current"==n&&(e=t.width()-20)}o.editor.css({width:e}),o.editor.css({display:"inline"}),o.editor.focus(),$(this).trigger("DOMSubtreeModified")}),this.arithmetic=t,this.container.append(t.getContainer()),this.initData(e)},urule.SimpleValue.prototype.getDisplayContainer=function(){var t=$(""+this.editor.prop("value")+"");if(this.arithmetic){var e=this.arithmetic.getDisplayContainer();e&&t.append(e)}return t},urule.SimpleValue.prototype.initData=function(t){if(t){var e=t.content;URule.setDomContent(this.valueContainer,e),this.editor.prop("value",e),this.arithmetic&&this.arithmetic.initData(t.arithmetic)}},urule.SimpleValue.prototype.getValue=function(){var t=this.editor.prop("value");return t=t.replace(new RegExp("&","gm"),"&"),t=t.replace(new RegExp("<","gm"),"<"),t=t.replace(new RegExp(">","gm"),">"),t=t.replace(new RegExp("'","gm"),"'"),t=t.replace(new RegExp('"',"gm"),""")},urule.SimpleValue.prototype.getContainer=function(){return this.container}},function(t,e){"use strict";urule.Condition=function(t){this.container=$(""),t.append(this.container);var e=this;this.operator=new urule.ComparisonOperator(function(){e.inputType=e.operator.getInputType(),e.inputType&&e.container.append(e.inputType.getContainer())}),e.container.append(this.operator.getContainer())},urule.Condition.prototype.initData=function(t){var e=t.op;this.operator.setOperator(e),this.operator.initRightValue(t.value),this.inputType=this.operator.getInputType(),this.inputType&&this.container.append(this.inputType.getContainer())},urule.Condition.prototype.getDisplayContainer=function(){var t=$(""),e=URule.getDomContent(this.operator.getContainer());return t.append($(""+e+"")),this.inputType&&t.append(this.inputType.getDisplayContainer()),t},urule.Condition.prototype.toXml=function(){var t='';return this.inputType&&(t+=this.inputType.toXml()),t+=""},urule.Condition.prototype.getOperator=function(){return this.operator},urule.Condition.prototype.getInputType=function(){return this.inputType}},function(t,e){"use strict";window._conditionId=0,urule.CellCondition=function(t){this.container=$(t),this.container.css({height:"40px",position:"relative"});var e=new urule.Context(this.container);this.join=new urule.Join(e),this.join.init(null),this.join.initTopJoin(this.container),this.join.setType("and"),this.id=window._conditionId++},urule.CellCondition.prototype.clean=function(){this.join.clean(),window._setDirty()},urule.CellCondition.prototype.getId=function(){return this.id},urule.CellCondition.prototype.renderTo=function(t){t.append(this.container)},urule.CellCondition.prototype.getDisplayContainer=function(){var t=null;return this.join&&(t=this.join.getDisplayContainer()),t||(t=$("")),t},urule.CellCondition.prototype.initData=function(t){this.join&&this.join.initData(t)},urule.CellCondition.prototype.toXml=function(){return this.join.toXml()}},function(t,e){"use strict";urule.CellContent=function(t){this.container=$(t),this.container.css({height:"40px",width:"100%"}),this.inputType=new urule.InputType(null,"无"),this.container.append(this.inputType.getContainer())},urule.CellContent.prototype.clean=function(t){this.inputType&&this.inputType.getContainer().remove(),this.inputType=new urule.InputType(null,"无"),this.container.append(this.inputType.getContainer()),window._setDirty()},urule.CellContent.prototype.initData=function(t){this.inputType.setValueType(t.valueType,t)},urule.CellContent.prototype.toXml=function(){return""==this.inputType.type?"":this.inputType.toXml()}},function(t,e){"use strict";urule.CellExecuteMethod=function(t){this.parentContainer=$(t),this.parentContainer.css({height:"40px",width:"100%"}),this.container=generateContainer(),URule.setDomContent(this.container,"无"),this.container.css({color:"gray"}),this.parentContainer.append(this.container),window._ActionTypeArray.push(this),this.initMenu()},urule.CellExecuteMethod.prototype.initMenu=function(t){var e=window._uruleEditorActionLibraries;t&&(e=t);var n,o,i;n=this,o=function(t){var e=t.parent.parent;n.setAction({beanLabel:e.label,beanId:e.name,methodLabel:t.label,methodName:t.name,parameters:t.parameters})},i={menuItems:[]},$.each(e||[],function(t,e){var n=e.springBeans||[];$.each(n,function(t,e){var n={name:e.id,label:e.name},r=e.methods||[];$.each(r,function(t,e){n.subMenu||(n.subMenu={menuItems:[]}),n.subMenu.menuItems.push({name:e.methodName,label:e.name,parameters:e.parameters,onClick:o})}),i.menuItems.push(n)})}),n.menu?n.menu.setConfig(i):n.menu=new URule.menu.Menu(i),this.container.click(function(t){n.menu.show(t)})},urule.CellExecuteMethod.prototype.clean=function(){window._setDirty(),this.action&&this.action.getContainer().remove(),URule.setDomContent(this.container,"无"),this.container.css({color:"gray"}),this.action=null},urule.CellExecuteMethod.prototype.setAction=function(t){window._setDirty(),this.action&&this.action.getContainer().remove(),this.action=new urule.MethodAction,URule.setDomContent(this.container,"."),this.container.css({color:"white"}),this.parentContainer.append(this.action.getContainer()),this.action.initData(t)},urule.CellExecuteMethod.prototype.toXml=function(){return this.action?this.action.toXml():""}},function(t,e){"use strict";!function(t){var e=function(e,o,i,r,a,s,l){t.renderers.cellDecorator.apply(this,arguments),!s&&l.placeholder&&(s=l.placeholder);var A,c=ht.getCellData(i,r);if(n(o,c),c)if(c.container=o,A=ht.getCellContent(c),A instanceof urule.CellCondition){$(o).empty();var u=A.getDisplayContainer();$(o).append($("
    ").append(u))}else A instanceof urule.CellContent},n=function(t,e){if(e){var n=e.rowspan;t.style.display="table-cell",n>1?t.setAttribute("rowspan",n):t.removeAttribute("rowspan")}else t.style.display="none",t.removeAttribute("rowspan"),t.removeAttribute("colspan")};t.renderers.URuleRenderer=e,t.renderers.registerRenderer("urule",e)}(Handsontable),function(){Handsontable.URuleCell={editor:Handsontable.editors.TextEditor,renderer:Handsontable.renderers.URuleRenderer},Handsontable.cellTypes.urule=Handsontable.URuleCell}()},function(t,e){"use strict";!function(t){function e(){function e(t){A=this,a=t;var e=this.view.wt.wtTable.getCoords(t).col;if(e>=0){s=e;var n=a.getBoundingClientRect();g=n.left-6,d=parseInt(n.width,10),h.style.top=n.top+"px",h.style.left=g+d+"px",A.rootElement[0].appendChild(h)}}function n(){h.style.left=g+l+"px"}function o(){var e=this;t.Dom.addClass(h,"active"),t.Dom.addClass(p,"active"),p.style.top=h.style.top,p.style.left=h.style.left,p.style.height=e.view.maximumVisibleElementHeight(0)+"px",e.rootElement[0].appendChild(p)}function i(){p.style.left=h.style.left}function r(){t.Dom.removeClass(h,"active"),t.Dom.removeClass(p,"active")}var a,s,l,A,c,u,d,g,h=document.createElement("DIV"),p=document.createElement("DIV"),f=$(window);h.className="manualColumnResizer",p.className="manualColumnResizerGuide";var M=function(){var e=this;t.hooks.run(e,"persistentStateSave","manualColumnWidths",e.manualColumnWidths)},w=function(){var e=this,n={};return t.hooks.run(e,"persistentStateLoad","manualColumnWidths",n),n.value},T=function(){var A,g=this,h=0,p=null;g.rootElement.on("mouseenter.manualColumnResize."+g.guid,"table thead tr > th",function(t){A||e.call(g,t.currentTarget)}),g.rootElement.on("mousedown.manualColumnResize."+g.guid,".manualColumnResizer",function(e){o.call(g),A=g,null==p&&(p=setTimeout(function(){h>=2&&(c=g.determineColumnWidth.call(g,s),I(s,c),g.forceFullRender=!0,g.view.render(),t.hooks.run(g,"afterColumnResize",s,c)),h=0,p=null},500),g._registerTimeout(p)),h++,u=e.pageX,c=d}),f.on("mousemove.manualColumnResize."+g.guid,function(t){A&&(l=d+(t.pageX-u),c=I(s,l),n(),i())}),f.on("mouseup.manualColumnResize."+g.guid,function(){A&&(r(),A=!1,c!=d&&(t.hooks.run(g,"beforeColumnResize",s,c),g.forceFullRender=!0,g.view.render(),M.call(g),t.hooks.run(g,"afterColumnResize",s,c)),e.call(g,a))}),g.addHook("afterDestroy",C)},C=function(){var t=this;t.rootElement.off("mouseenter.manualColumnResize."+t.guid,"table thead tr > th"),t.rootElement.off("mousedown.manualColumnResize."+t.guid,".manualColumnResizer"),f.off("mousemove.manualColumnResize."+t.guid),f.off("mouseup.manualColumnResize."+t.guid)};this.beforeInit=function(){this.manualColumnWidths=[]},this.init=function(t){var e=this,n=!!this.getSettings().manualColumnResize;if(n){var o=this.getSettings().manualColumnResize,i=w.call(e);"undefined"!=typeof i?this.manualColumnWidths=i:o instanceof Array?this.manualColumnWidths=o:this.manualColumnWidths=[],"afterInit"==t&&(T.call(this),this.manualColumnWidths.length>0&&(this.forceFullRender=!0,this.render()))}else C.call(this),this.manualColumnWidths=[]};var I=function(e,n){return n=Math.max(n,20),e=t.hooks.execute(A,"modifyCol",e),A.manualColumnWidths[e]=n,n};this.modifyColWidth=function(t,e){return e=this.runHooksAndReturn("modifyCol",e),this.getSettings().manualColumnResize&&this.manualColumnWidths[e]?this.manualColumnWidths[e]:t}}var n=new e;t.hooks.add("beforeInit",n.beforeInit),t.hooks.add("afterInit",function(){n.init.call(this,"afterInit")}),t.hooks.add("afterUpdateSettings",function(){n.init.call(this,"afterUpdateSettings")}),t.hooks.add("modifyColWidth",n.modifyColWidth),t.hooks.register("afterColumnResize"),t.hooks.register("beforeColumnResize")}(Handsontable)},function(t,e){"use strict";!function(t){function e(){function e(t){A=this,a=t;var e=this.view.wt.wtTable.getCoords(t).row;if(e>=0){s=e;var n=a.getBoundingClientRect();g=n.top-6,d=parseInt(n.height,10),h.style.left=n.left+"px",h.style.top=g+d+"px",A.rootElement[0].appendChild(h)}}function n(){h.style.top=g+l+"px"}function o(){var e=this;t.Dom.addClass(h,"active"),t.Dom.addClass(p,"active"),p.style.top=h.style.top,p.style.left=h.style.left,p.style.width=e.view.maximumVisibleElementWidth(0)+"px",e.rootElement[0].appendChild(p)}function i(){p.style.top=h.style.top}function r(){t.Dom.removeClass(h,"active"),t.Dom.removeClass(p,"active"); }var a,s,l,A,c,u,d,g,h=document.createElement("DIV"),p=document.createElement("DIV"),f=$(window);h.className="manualRowResizer",p.className="manualRowResizerGuide";var M=function(){var e=this;t.hooks.run(e,"persistentStateSave","manualRowHeights",e.manualRowHeights)},w=function(){var e=this,n={};return t.hooks.run(e,"persistentStateLoad","manualRowHeights",n),n.value},T=function(){var A,g=this,h=0,p=null;g.rootElement.on("mouseenter.manualRowResize."+g.guid,"table tbody tr > th",function(t){A||e.call(g,t.currentTarget)}),g.rootElement.on("mousedown.manualRowResize."+g.guid,".manualRowResizer",function(e){o.call(g),A=g,null==p&&(p=setTimeout(function(){h>=2&&(I(s,null),g.forceFullRender=!0,g.view.render(),t.hooks.run(g,"afterRowResize",s,c)),h=0,p=null},500),g._registerTimeout(p)),h++,u=e.pageY,c=d}),f.on("mousemove.manualRowResize."+g.guid,function(t){A&&(l=d+(t.pageY-u),c=I(s,l),n(),i())}),f.on("mouseup.manualRowResize."+g.guid,function(){A&&(r(),A=!1,c!=d&&(t.hooks.run(g,"beforeRowResize",s,c),g.forceFullRender=!0,g.view.render(),M.call(g),t.hooks.run(g,"afterRowResize",s,c)),e.call(g,a))}),g.addHook("afterDestroy",C)},C=function(){var t=this;t.rootElement.off("mouseenter.manualRowResize."+t.guid,"table tbody tr > th"),t.rootElement.off("mousedown.manualRowResize."+t.guid,".manualRowResizer"),f.off("mousemove.manualRowResize."+t.guid),f.off("mouseup.manualRowResize."+t.guid)};this.beforeInit=function(){this.manualRowHeights=[]},this.init=function(t){var e=this,n=!!this.getSettings().manualRowResize;if(n){var o=this.getSettings().manualRowResize,i=w.call(e);"undefined"!=typeof i?this.manualRowHeights=i:o instanceof Array?this.manualRowHeights=o:this.manualRowHeights=[],"afterInit"===t?(T.call(this),this.manualRowHeights.length>0&&(this.forceFullRender=!0,this.render())):(this.forceFullRender=!0,this.render())}else C.call(this),this.manualRowHeights=[]};var I=function(e,n){return e=t.hooks.execute(A,"modifyRow",e),A.manualRowHeights[e]=n,n};this.modifyRowHeight=function(t,e){return this.getSettings().manualRowResize&&(e=this.runHooksAndReturn("modifyRow",e),void 0!==this.manualRowHeights[e])?this.manualRowHeights[e]:t}}var n=new e;t.hooks.add("beforeInit",n.beforeInit),t.hooks.add("afterInit",function(){n.init.call(this,"afterInit")}),t.hooks.add("afterUpdateSettings",function(){n.init.call(this,"afterUpdateSettings")}),t.hooks.add("modifyRowHeight",n.modifyRowHeight),t.hooks.register("afterRowResize"),t.hooks.register("beforeRowResize")}(Handsontable)},function(t,e,n){"use strict";var o=n(241);urule.Rule=function(t,e,n){this.uuid=Math.uuid(),this.namedMap=new Map,this.namedReferenceValues=[],e.prop("id",this.uuid),this.parent=t,this.container=e,this.data=n,this.actions=[],this.elseActions=[],this.properties=[],this.init(),this.initData()},urule.Rule.prototype.init=function(){this.ruleContainer=$("
    "),this.container.append(this.ruleContainer),this.initRemark(),this.initHeader(),this.initIf(),this.initThen(),this.initElse()},urule.Rule.prototype.initData=function(){if(this.data){this.name=this.data.name,this.nameLabel.prop("innerText",this.name);var t=this.data.salience;t&&this.addProperty(new urule.RuleProperty(this,"salience",t,1));var e=this.data.loop;null!=e&&this.addProperty(new urule.RuleProperty(this,"loop",e,3));var n=this.data.effectiveDate;n&&this.addProperty(new urule.RuleProperty(this,"effective-date",n,2));var o=this.data.expiresDate;o&&this.addProperty(new urule.RuleProperty(this,"expires-date",o,2));var i=this.data.enabled;null!=i&&this.addProperty(new urule.RuleProperty(this,"enabled",i,3));var r=this.data.debug;null!=r&&this.addProperty(new urule.RuleProperty(this,"debug",r,3));var a=this.data.activationGroup;a&&this.addProperty(new urule.RuleProperty(this,"activation-group",a,1));var s=this.data.agendaGroup;s&&this.addProperty(new urule.RuleProperty(this,"agenda-group",s,1));var l=this.data.autoFocus;null!=l&&this.addProperty(new urule.RuleProperty(this,"auto-focus",l,3));var A=this.data.ruleflowGroup;A&&this.addProperty(new urule.RuleProperty(this,"ruleflow-group",l,1));var c=this.data.remark;this.remark.setData(c);var u=this.data.lhs;if(u){var d=u.criterion;d?this.initCriterion(d):this.initCriterion()}else this.initCriterion();var g=this.data.rhs;if(g){var h=g.actions;if(h)for(var p=0;p
    ");this.remark=new Remark(t),this.ruleContainer.append(t)},urule.Rule.prototype.initHeader=function(){this.nameContainer=$("
    "),this.ruleContainer.append(this.nameContainer),this.label=$("规则 "),this.nameContainer.append(this.label),this.nameEditor=$("").hide(),this.name="rule",this.nameLabel=$(""+this.name+""),this.label.append(this.nameEditor),this.label.append(this.nameLabel);var t=this;this.nameLabel.click(function(){t.nameLabel.hide(),t.nameEditor.show(),t.nameEditor.prop("value",t.name),t.nameEditor.focus()}),this.nameEditor.blur(function(){var e=t.nameEditor.prop("value");return!e||e.length<2?void bootbox.alert("规则名不合法"):(t.name=e,t.nameEditor.hide(),t.nameLabel.show(),URule.setDomContent(t.nameLabel,t.name),void window._setDirty())}),this.nameEditor.hide();var e=$('');e.click(function(){var e="真的要删除规则"+t.name+"?";o.MsgBox.confirm(e,function(){var e=t.parent.rules.indexOf(t);t.parent.rules.splice(e,1),t.container.remove(),window._setDirty()})}),this.nameContainer.append(e),this.propertyContainer=$(""),this.propertyContainer.css({padding:"10px"});var n=$("添加属性"),i=function(e){var n=new urule.RuleProperty(t,e.name,e.defaultValue,e.editorType);t.addProperty(n)};t.menu=new URule.menu.Menu({menuItems:[{label:"优先级",name:"salience",defaultValue:"10",editorType:1,onClick:i},{label:"生效日期",name:"effective-date",defaultValue:"",editorType:2,onClick:i},{label:"失效日期",name:"expires-date",defaultValue:"",editorType:2,onClick:i},{label:"是否启用",name:"enabled",defaultValue:!0,editorType:3,onClick:i},{label:"允许调试信息输出",name:"debug",defaultValue:!0,editorType:3,onClick:i},{label:"互斥组",name:"activation-group",defaultValue:"",editorType:1,onClick:i},{label:"执行组",name:"agenda-group",defaultValue:"",editorType:1,onClick:i},{label:"自动获取焦点",name:"auto-focus",defaultValue:!0,editorType:3,onClick:i},{label:"允许循环触发",name:"loop",defaultValue:!1,editorType:3,onClick:i}]}),n.click(function(e){t.menu.show(e)}),this.ruleContainer.append(n),this.ruleContainer.append(this.propertyContainer)},urule.Rule.prototype.initIf=function(){this.ifLabel=$("
    如果
    "),this.ruleContainer.append(this.ifLabel),this.conditionContainer=$("
    "),this.conditionContainer.css({height:"40px",position:"relative"}),this.ruleContainer.append(this.conditionContainer)},urule.Rule.prototype.initThen=function(){this.thenLabel=$("那么"),this.ruleContainer.append(this.thenLabel),this.actionContainer=$("
    "),this.ruleContainer.append(this.actionContainer);var t=this;this.actionContainer.sortable({delay:200,update:function(e,n){var o=t.actionContainer.children("div");o.each(function(e,n){var o=$(n),i=o.prop("id"),r=t.actions,a=null,s=!0,l=!1,A=void 0;try{for(var c,u=r[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var d=c.value;if(d.uuid===i){a=d;break}}}catch(t){l=!0,A=t}finally{try{!s&&u.return&&u.return()}finally{if(l)throw A}}if(a){var g=r.indexOf(a);r.splice(g,1),r.splice(e,0,a)}}),window._setDirty()}}),this.addActionButton=$("添加动作");var e=this;this.addActionButton.click(function(){e.addAction()}),this.thenLabel.append(this.addActionButton)},urule.Rule.prototype.initElse=function(){this.elseContainer=$("
    "),this.ruleContainer.append(this.elseContainer),this.elseLabel=$("否则"),this.elseContainer.append(this.elseLabel),this.elseActionContainer=$("
    "),this.elseContainer.append(this.elseActionContainer);var t=this;this.elseActionContainer.sortable({delay:200,update:function(e,n){var o=t.elseActionContainer.children("div");o.each(function(e,n){var o=$(n),i=o.prop("id"),r=t.elseActions,a=null,s=!0,l=!1,A=void 0;try{for(var c,u=r[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var d=c.value;if(d.uuid===i){a=d;break}}}catch(t){l=!0,A=t}finally{try{!s&&u.return&&u.return()}finally{if(l)throw A}}if(a){var g=r.indexOf(a);r.splice(g,1),r.splice(e,0,a)}}),window._setDirty()}}),this.addElseActionButton=$("添加动作");var e=this;this.addElseActionButton.click(function(){e.addAction(null,!0)}),this.elseLabel.append(this.addElseActionButton)},urule.Rule.prototype.addAction=function(t,e){var n=this,o=$("
    "),i=$('');o.append(i);var r=null;r=e?new urule.ActionType(o):new urule.ActionType(o,this),i.click(function(){if(e){var t=n.elseActions.indexOf(r);n.elseActions.splice(t,1)}else{var t=n.actions.indexOf(r);n.actions.splice(t,1)}o.remove(),window._setDirty()}),e?(this.elseActions.push(r),this.elseActionContainer.append(o)):(this.actions.push(r),this.actionContainer.append(o)),t&&r.initData(t),window._setDirty()},urule.Rule.prototype.toXml=function(){for(var t='",t+=this.join.toXml(),t+="",t+="";for(var e=0;e",t+="";for(var e=0;e *保存"),$("#saveButton").removeClass("disabled"),$("#saveButtonNewVersion").html(" *保存新版本"),$("#saveButtonNewVersion").removeClass("disabled"))},function(t){window.URule||(window.URule={}),URule.DecisionTable=function(t){function e(t){if($("#saveButton").hasClass("disabled"))return!1;var e=(0,i.getParameter)("file"),n=r.toXml(),o={content:n,file:e,newVersion:t},a=window._server+"/common/saveFile";t?bootbox.prompt("请输入新版本描述.",function(t){t&&(o.versionComment=t,(0,i.ajaxSave)(a,o,function(){r.resetState()}))}):(0,i.ajaxSave)(a,o,function(){r.resetState()})}var n;window._VariableValueArray.push(this),window._ParameterValueArray.push(this);var o=$("#"+t);this.hasMod=!0,this.container=o;var r=this,a='',s='',l='',A='";o.append(A);var c=$("
    ");o.append(c),this.remark=new Remark(c),this.properties=[];var u=$("
    ");o.append(u),this.propertyContainer=$(""),this.propertyContainer.css({padding:"10px"});var d=$("");u.append(d),u.append(this.propertyContainer);var g=function(t){var e=new urule.RuleProperty(r,t.name,t.defaultValue,t.editorType);r.addProperty(e)};r.menu=new URule.menu.Menu({menuItems:[{label:"优先级",name:"salience",defaultValue:"10",editorType:1,onClick:g},{label:"生效日期",name:"effective-date",defaultValue:"",editorType:2,onClick:g},{label:"失效日期",name:"expires-date",defaultValue:"",editorType:2,onClick:g},{label:"是否启用",name:"enabled",defaultValue:!0,editorType:3,onClick:g},{label:"允许调试信息输出",name:"debug",defaultValue:!0,editorType:3,onClick:g}]}),d.click(function(t){r.menu.show(t)}),$("#addCriteriaButton").click(function(){var t=r.getCurrentCellData(),e=t.row+t.rowspan,n=t.col;r.mergeRange(n-1),r.translateRow(e),r.createRowData(e),r.createCellDataRange(e,e,n,r.getLastColIndex()),r.insertRow(e-1),r.renderCells(),r.setDirty(),$("#deleteCriteriaButton").removeClass("disabled"),r.invoke("render")}),$("#deleteCriteriaButton").click(function(){var t=r.getHighlight(),e=t.row,n=t.col,o=r.getCellData(e,n),i=o.rowspan;r.mergeRange(n-1,-i),r.removeRowDataRange(e,i),r.removeCellDataRange(e,e+i-1,n,r.getLastColIndex()),r.translateRow(e+i,-i),r.removeRow(e,i),r.renderCells(),r.setDirty(),r.invoke("render"),1==r.countRows()&&$(this).addClass("disabled")}),$("#configVarButton").click(function(){r.configVarDialog||(r.configVarDialog=new urule.ConfigVariableDialog(r)),r.configVarDialog.open()}),$("#configConstantsButton").click(function(){r.configConstantDialog||(r.configConstantDialog=new urule.ConfigConstantDialog(r)),r.configConstantDialog.open()}),$("#configActionButton").click(function(){r.configActionDialog||(r.configActionDialog=new urule.ConfigActionDialog(r)),r.configActionDialog.open()}),$("#configParameterButton").click(function(){r.configParameterDialog||(r.configParameterDialog=new urule.ConfigParameterDialog(r)),r.configParameterDialog.open()}),$("#saveButton").click(function(){e(!1)}),$("#saveButtonNewVersion").click(function(){e(!0)}),r.load(),window.ht=r;var h={type:"urule",manualRowResize:!0,manualColumnResize:!0,autoWrapCol:!0,startCols:r.getColDatas().length,maxRows:2147483647,startRows:r.getRowDatas().length,fillHandle:!1,multiSelect:!1,className:"htMiddle",rowHeaders:!0,maxCols:2147483647,mergeCells:!0,autoWrapRow:!0,outsideClickDeselects:!1,colWidths:120};n=$("
    "),o.append(n),n.handsontable(h),r._handsontable=n.handsontable("getInstance"),r._handsontable.ht=r,h.colHeaders=function(t){var e,n,o=r.getColData(t),i=o.type,a="parameter"==o.variableCategory?"参数":o.variableCategory,s=o.variableLabel,l=o.width,A=a+"."+s;return r.setColWidth(t,l),a&&s||(A=""),"Criteria"==i?(n="glyphicon glyphicon-filter",e="glyphicon glyphicon-filter"):"ExecuteMethod"==i?(A="执行方法",n="glyphicon glyphicon-flash"):"Assignment"==i?n="glyphicon glyphicon-tasks":"ConsolePrint"==i&&(A="控制台输出",n="glyphicon glyphicon-print")," "+A},h.rowHeaders=function(t){var e=r.getRowData(t),n=e.height;return r.setRowHeight(t,n),t+1},h.cells=function(t,e,n){return{readOnly:!0}},r.updateSettings(h),r.renderCells(),r.addHook("afterSelectionEnd",function(){var t=r.getCurrentColData();r.getCurrentRowData(),r.getCurrentCellData();"Criteria"==t.type?$("#addCriteriaButton").removeClass("disabled"):$("#addCriteriaButton").addClass("disabled")}),r.addHook("beforeColumnResize",function(t,e){var n=r.getColData(t);n.width=e,r.setDirty(),r.invoke("render")}),r.addHook("beforeRowResize",function(t,e){var n=r.getRowData(t);n.height=e,r.setDirty()}),r.addHook("afterRender",function(){$(".htCore tr").each(function(){$(this).children().css({"border-right-width":""}),$(this).children().eq(r.countCriteriaCols()).css({"border-right-width":"4px"})})}),r.initMenu(),r.resetState(),n.find(".handsontable").remove(),r.invoke("render")},URule.DecisionTable.prototype={addProperty:function(t){this.propertyContainer.append(t.getContainer()),this.properties.push(t),window._setDirty()},updateSettings:function(t){this._handsontable.updateSettings(t)},getCellRenderer:function(t){return this._handsontable.getCellRenderer(t)},getValue:function(){return this._handsontable.getValue()},alter:function(t,e,n,o){this._handsontable.alter(t,e,n,o)},getCell:function(t,e){return this._handsontable.getCell(t,e)},getCellMeta:function(t,e){return this._handsontable.getCellMeta(t,e)},selectCell:function(t,e,n,o,i){this._handsontable.selectCell(t,e,n,o,i)},deselectCell:function(){this._handsontable.deselectCell()},getSelected:function(){return this._handsontable.getSelected()},getSelectedRange:function(){return this._handsontable.getSelectedRange()},getMergeInfo:function(t,e){return this._handsontable.mergeCells.mergedCellInfoCollection.getInfo(t,e)},setMergeInfo:function(t){this._handsontable.mergeCells.mergedCellInfoCollection.setInfo(t)},removeMergeInfo:function(t,e){return this._handsontable.mergeCells.mergedCellInfoCollection.removeInfo(t,e)},clear:function(){this._handsontable.clear()},countRows:function(){return this._handsontable.countRows()},countCols:function(){return this._handsontable.countCols()},colToProp:function(t){return this._handsontable.colToProp()},getRowHeader:function(t){return this._handsontable.getRowHeader(t)},getColHeader:function(t){return this._handsontable.getColHeader(t)},getColWidth:function(t){return this._handsontable.getColWidth()},getRowHeight:function(t){return this._handsontable.getRowHeight()},propToCol:function(t){return this._handsontable.propToCol(t)},addHook:function(t,e){this._handsontable.addHook(t,e)},invoke:function(t,e){"render"==t?e===!0?(this._handsontable.forceFullRender=!1,this._handsontable.view.render()):this._handsontable.render():jQuery(this._dom).handsontable(t,e)},getInstance:function(){return this._handsontable},setDirty:function(){window._setDirty()},resetState:function(){window._dirty=!1,$("#saveButton").html(" 保存"),$("#saveButton").addClass("disabled"),$("#saveButtonNewVersion").html(" 保存新版本"),$("#saveButtonNewVersion").addClass("disabled")},insertRow:function(t){this.alter("insert_row"),$(".htCore > tbody > tr:eq("+this.getLastRowIndex()+")").insertAfter(".htCore > tbody > tr:eq("+t+")")},removeRow:function(t,e){for(var n=t;n tbody > tr:eq("+t+")").insertAfter(".htCore > tbody > tr:last");this.alter("remove_row",t,e)},insertCol:function(t){this.alter("insert_col"),$(".htCore > tbody > tr").each(function(){$(this).find("td:last").insertAfter($(this).find("td:eq("+t+")"))})},removeCol:function(t){$(".htCore > tbody > tr").each(function(){$(this).find("td:eq("+t+")").insertAfter($(this).find("td:last"))}),this.alter("remove_col")},renderSelection:function(){var t=this.getSelectedRange();if(t)for(var e=t.getTopLeftCorner(),n=t.getBottomRightCorner(),o=e.row;o<=n.row;o++)for(var i=e.col;i<=n.col;i++)this.renderCell(o,i)},getTableData:function(){return this.decisionTable},getCurrentCellData:function(){var t=this.getHighlight(),e=t.row,n=t.col;return this.getCellData(e,n)},getCurrentRowData:function(){var t=this.getHighlight(),e=t.row;return this.getRowData(e)},getCurrentColData:function(){var t=this.getHighlight(),e=t.col;return this.getColData(e)},getCellDatas:function(){var t=this.decisionTable.cellMap;if(!this.decisionTable.cells&&t){this.decisionTable.cells=[];for(var e in t)this.decisionTable.cells.push(t[e])}return this.decisionTable.cells},getRowDatas:function(){return this.decisionTable.rows||[]},getColDatas:function(){return this.decisionTable.columns||[]},getColData:function(t){for(var e=this.getColDatas(),n=0;n0){for(var n=this.getLastRowIndex();n>=t;n--)this.translateRowHeader(n,e);for(var n=this.getLastRowIndex();n>=t;n--)for(var o=0;o0){for(var n=this.getLastColIndex();n>=t;n--)this.translateColHeader(n,e);for(var o=0;o=t;n--)this.translateCell(o,n,0,e)}else if(e<0){for(var n=t;n"),n.joint&&n.cellContent.initData(n.joint)):"Assignment"==r?(n.cellContent=new urule.CellContent(a),n.value&&n.cellContent.initData(n.value)):"ConsolePrint"==r?(n.cellContent=new urule.CellContent(a),n.value&&n.cellContent.initData(n.value)):"ExecuteMethod"==r&&(n.cellContent=new urule.CellExecuteMethod(a),n.action&&n.cellContent.setAction(n.action)),n.cellContent.initData}return n.cellContent},countCriteriaCols:function(){for(var t=this.getColDatas(),e=0,n=0;n':"Constant"==o?t+='':"Action"==o?t+='':"Parameter"==o&&(t+='')}),$.each(n,function(e,n){t+='',t+=a.getCellContent(n).toXml(),t+=""}),$.each(o,function(e,n){t+=''}),$.each(i,function(e,n){var o=n.variableName;t+=o?'':''}),t+=""},load:function(t){var e,n,o,r;o=this,e=(0,i.getParameter)("file"),n=(0,i.getParameter)("version"),r=window._server+"/common/loadXml",$.ajax({url:r,async:!1,type:"POST",data:{files:e},error:function(t){t&&t.responseText?bootbox.alert("加载文件失败:"+t.responseText+""):bootbox.alert("加载文件失败,服务端出错")},success:function(e){var n=e[0];o.remark.setData(n.remark);var i=n.salience;i&&o.addProperty(new urule.RuleProperty(o,"salience",i,1));var r=n.loop;null!=r&&o.addProperty(new urule.RuleProperty(o,"loop",r,3));var a=n.effectiveDate;a&&o.addProperty(new urule.RuleProperty(o,"effective-date",a,2));var s=n.expiresDate;s&&o.addProperty(new urule.RuleProperty(o,"expires-date",s,2));var l=n.enabled;null!=l&&o.addProperty(new urule.RuleProperty(o,"enabled",l,3));var A=n.debug;null!=A&&o.addProperty(new urule.RuleProperty(o,"debug",A,3));var c=n.libraries||[];$.each(c,function(t,e){var n,o;switch(n=e.type,o=e.path,n){case"Constant":constantLibraries.push(o);break;case"Action":actionLibraries.push(o);break;case"Variable":variableLibraries.push(o);break;case"Parameter":parameterLibraries.push(o)}}),o.decisionTable=n,refreshActionLibraries(),refreshConstantLibraries(),refreshVariableLibraries(),refreshParameterLibraries(),refreshFunctionLibraries(),t&&t()}})},initMenu:function(){var t=this,e=[],n=window._uruleEditorVariableLibraries||[];$.each(n,function(t,n){"parameter"!=n.type&&e.push(n)});var o=window._uruleEditorParameterLibraries||[];o.length>0&&$.each(o,function(t,n){e.push([{name:"参数",type:"parameter",variables:o.length?n:[]}])});var i=function(e,n,o){var i=t.getHighlight(),r=(i.row,i.col+(o||0));t.translateCol(r);var a=t.createColData(r);a.type=e,a.width=n||200,"Criteria"==e?t.createCellDataByCopyNextCol(r):t.createCellDataRange(0,t.getLastRowIndex(),r,r),t.insertCol(r-1),t.renderCells(null,r),t.setDirty(),t.invoke("render")},r=function(){var e=t.countActionCols(),n=t.countCriteriaCols(),o=this.getMenuItem("delete");o&&("删除动作列"==o.label?1==e?o.hide():o.show():1==n?o.hide():o.show())},s=[{label:"插入条件列",icon:"glyphicon glyphicon-filter",subMenu:{menuItems:[{label:"前",icon:"glyphicon glyphicon-chevron-left",onClick:function(){i("Criteria",120)}},{label:"后",icon:"glyphicon glyphicon-chevron-right",onClick:function(){i("Criteria",120,1)}}]}},{label:"删除条件列",icon:"glyphicon glyphicon-minus-sign",name:"delete",onClick:function(){var e=t.getHighlight(),n=e.col;t.removeCellDataRange(0,t.getLastRowIndex(),n,n),t.removeColData(n),t.translateCol(n,-1),t.removeCol(n),t.setDirty(),t.invoke("render")}},{label:"插入执行方法动作列",icon:"glyphicon glyphicon-flash",subMenu:{menuItems:[{label:"前",icon:"glyphicon glyphicon-chevron-left",onClick:function(){i("ExecuteMethod")}},{label:"后",icon:"glyphicon glyphicon-chevron-right",onClick:function(){i("ExecuteMethod",200,1)}}]}},{label:"插入变量赋值动作列",icon:"glyphicon glyphicon-tasks",subMenu:{menuItems:[{label:"前",icon:"glyphicon glyphicon-chevron-left",onClick:function(){i("Assignment")}},{label:"后",icon:"glyphicon glyphicon-chevron-right",onClick:function(){i("Assignment",200,1)}}]}},{label:"插入控制台输出动作列",icon:"glyphicon glyphicon-print",subMenu:{menuItems:[{label:"前",icon:"glyphicon glyphicon-chevron-left",onClick:function(){i("ConsolePrint")}},{label:"后",icon:"glyphicon glyphicon-chevron-right",onClick:function(){i("ConsolePrint",200,1)}}]}},{label:"删除动作列",name:"delete",icon:"glyphicon glyphicon-minus-sign",onClick:function(){var e=t.getHighlight(),n=e.col;t.removeColData(n),t.removeCellDataRange(0,t.getLastRowIndex(),n,n),t.translateCol(n,-1),t.removeCol(n),t.setDirty(),t.invoke("render")}},{label:"配置条件",icon:"glyphicon glyphicon-cog",onClick:function(){var e=t.getCurrentColData();if(!e.variableCategory)return void a.MsgBox.alert("当前条件列未定义对应的参数或变量,不能进行[配置条件]操作.");var n=$("
    "),o=t.getCurrentCellData(),i=t.getCellContent(o);i.renderTo(n);var r="parameter"===e.variableCategory?"参数":e.variableCategory,s=r+"."+e.variableLabel;a.MsgBox.showDialog(s,n,[],[{name:"hide.bs.modal",callback:function(){t.renderSelection()}}],!0)}},{label:"清空",icon:"glyphicon glyphicon-trash",name:"clean",onClick:function(){var e=t.getCurrentCellData();a.MsgBox.confirm("确定要清空当前单元格吗?",function(){t.getCellContent(e).clean(),t.renderSelection()})}}],l=function(e){ var n=t.getHighlight(),o=(n.row,n.col),i=e.parent.parent,r=t.getColData(o);r.variableCategory="参数"==i.label?"parameter":i.label,r.variableLabel=e.label,r.variableName=e.name,r.datatype=e.datatype,t.setDirty(),t.invoke("render")},A=[];$.each(e,function(t,e){$.each(e,function(t,e){var n={label:"parameter"==e.name?"参数":e.name,icon:"parameter"==e.type?"glyphicon glyphicon-th-list":"glyphicon glyphicon-tasks"},o=e.variables;$.each(o||[],function(t,e){n.subMenu||(n.subMenu={menuItems:[]});var o={icon:"glyphicon glyphicon-tasks",name:e.name,label:e.label,datatype:e.type,act:e.act,onClick:l};n.subMenu.menuItems.push(o)}),A.push(n)})});var c={onShow:r,menuItems:[]};c.menuItems.push(s[0]),c.menuItems.push(s[1]),c.menuItems=c.menuItems.concat(A);var u={onShow:r,menuItems:[]},d={onShow:r};u.menuItems.push(s[2]),u.menuItems.push(s[3]),u.menuItems.push(s[4]),u.menuItems.push(s[5]),d.menuItems=u.menuItems,d.menuItems=d.menuItems.concat(A);var g={menuItems:[s[6],s[7]]},h={menuItems:[s[7]]};t.criteriaMenu?t.criteriaMenu.setConfig(c):t.criteriaMenu=new URule.menu.Menu(c),t.assignmentMenu?t.assignmentMenu.setConfig(d):t.assignmentMenu=new URule.menu.Menu(d),t.actionMenu?t.actionMenu.setConfig(u):t.actionMenu=new URule.menu.Menu(u),t.criteriaCellMenu?t.criteriaCellMenu.setConfig(g):t.criteriaCellMenu=new URule.menu.Menu(g),t.actionCellMenu?t.actionCellMenu.setConfig(h):t.actionCellMenu=new URule.menu.Menu(h),this.container.contextmenu(function(e){for(var n=$(e.target),o=0;o<50&&!n.is("th")&&!n.is("tr");o++)n=n.parent();if(n.is("th")||n.is("tr")){var i=n.has("span.colHeader .glyphicon-filter").length,r=n.has("span.colHeader .glyphicon-tasks").length,a=n.has("span.colHeader").length,s=(n.has("span.rowHeader").length&&$.trim(n.has(".rowHeader").text()),n.has("td").length),l=(t.getCurrentColData(),t.getHighlight()),A=l.col,c=t.countCriteriaCols();s&&t.hasMod?c>A&&t.criteriaCellMenu.menuItems.length>0?t.criteriaCellMenu.show(e):t.actionCellMenu.menuItems.length>0&&t.actionCellMenu.show(e):i&&t.criteriaMenu.menuItems.length>0?t.criteriaMenu.show(e):r&&t.assignmentMenu.menuItems.length>0?t.assignmentMenu.show(e):a&&t.actionMenu.menuItems.length>0&&t.actionMenu.show(e)}})}}}(Handsontable)},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;nul>li:after,.tree>ul>li:before{border:0}.tree li:last-child:before{height:30px}.tree-active{border:1px solid #2196f3!important}",""])},function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A=function(){function t(t,e){for(var n=0;n ul > li");o.is(":visible")?(o.hide("fast"),n.children("i:first").addClass("rf-plus").removeClass("rf-minus")):(o.show("fast"),n.children("i:first").addClass("rf-minus").removeClass("rf-plus")),e.stopPropagation()}}),t.hasClass("parent_li")){var i=this.props.expandLevel;if(o._level>=i){var r=e.parent("li.parent_li").find(" > ul > li");r.hide(),e.children("i:first").addClass("rf-plus").removeClass("rf-minus")}else e.children("i:first").addClass("rf-minus").removeClass("rf-plus")}this._bindContextMenu(o)}},{key:"isFile",value:function t(){var e=this.props.data,n=e.name,t=!1;return(n.indexOf(".")>-1||"ul"===n||"知识包"===n)&&(t=!0),t}},{key:"componentWillUnmount",value:function(){var t=this.props.data,e=t.contextMenu;e&&0!==e.length&&$("#node-"+t.id).contextmenu("destroy")}},{key:"componentDidUpdate",value:function(){this._bindContextMenu(this.props.data)}},{key:"_bindContextMenu",value:function(t){var e=$("#node-"+t.id);e.contextmenu("destroy");var n=t.contextMenu;if(n&&0!==n.length){var o="treenodemenu"+t.id;e.contextmenu({target:"#"+o})}}},{key:"render",value:function(){var t=this,e=this.props,n=e.data,o=e.dispatch,i=n.children,r="node-"+n.id,a="treenodemenu"+n.id,s=[];if(n.contextMenu&&s.push(u.default.createElement(M.default,{items:n.contextMenu,key:n.id,data:n,dispatch:o,menuId:a})),i&&i.length>0)return u.default.createElement("li",{className:"parent_li"},u.default.createElement("span",{id:r},u.default.createElement("i",{className:"rf rf-minus",style:{marginRight:"2px"}}),u.default.createElement("i",{className:n._icon,style:n._style})," ",u.default.createElement("a",{href:"###",style:n._style}," ",n.name),u.default.createElement("sup",null,u.default.createElement("i",{title:n.lock?n.lockInfo:"",className:n.lock?"rf rf-lock":""}))),s,u.default.createElement(p.default,{dispatch:o,children:i,expandLevel:this.props.expandLevel}));var A=function(){var e=t.isFile();return{v:u.default.createElement("li",null,u.default.createElement("span",{id:r,onClick:function(t){if(e){var o=window._server+n.editorPath+"?file="+n.fullPath;T.eventEmitter.emit(T.TREE_NODE_CLICK,{id:n.id,name:n.name,fullPath:n.fullPath,path:o,active:!0}),$(".tree").find(".tree-active").removeClass("tree-active"),$("#"+r).addClass("tree-active")}}},u.default.createElement("i",{className:n._icon,style:n._style})," ",u.default.createElement("a",{href:"###",style:n._style}," ",n.name),u.default.createElement("sup",null,u.default.createElement("i",{title:n.lock?n.lockInfo:"",className:n.lock?"rf rf-lock":""}))),s)}}();return"object"===("undefined"==typeof A?"undefined":l(A))?A.v:void 0}}]),e}(c.Component);e.default=C},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n