diff --git a/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Styles/bootstrap-select.css b/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Styles/bootstrap-select.css index 1fd06a105b6..7c1c0a20da6 100644 --- a/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Styles/bootstrap-select.css +++ b/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Styles/bootstrap-select.css @@ -725,5 +725,4 @@ select.selectpicker { margin-bottom: 0; width: 100%; float: none; -} -/*# sourceMappingURL=node_modules/bootstrap-select/dist/css/bootstrap-select.css.map */ \ No newline at end of file +} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Styles/bootstrap-select.map b/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Styles/bootstrap-select.map index c8f89ba7f1e..3450b71e9b9 100644 --- a/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Styles/bootstrap-select.map +++ b/src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Styles/bootstrap-select.map @@ -1 +1 @@ -{"version":3,"sourceRoot":null,"mappings":"qPAOA,sLA8BA,6GAMA,oDAKA,0OAkBA,8DAIA,6DAIA,yDAIA,sOAOA,8jDA2BA,yMAYA,4CAIA,6CAIA,8GAOA,wDAIA,yDAIA,4NAOA,gIAKA,iDAIA,kGAIA,kNAOA,iFAOA,gFAIA,uEAKA,yGAKA,uGAMA,yGAKA,0GAKA,2LAMA,0LAMA,gHAMA,sGAKA,sMAQA,kKAOA,wEAIA,sEAIA,wDAIA,0EAKA,0FAKA,8FAOA,gDAIA,iDAIA,2DAIA,kLAYA,8FAMA,iGAMA,sFAIA,qFAIA,qJAOA,4GAIA,yNAQA,iIAIA,8EAIA,wGAMA,uEAIA,wEAIA,0GAOA,+DAIA,8DAIA,+GAMA,wFAIA,uFAIA,iGAIA,gGAIA,0KAOA,+EAIA,yFAIA,mFAIA,2DAIA,+HAOA,qEAIA,sJAWA,sDAIA,2EAIA,kEAIA,0IAQA,4DAIA,wEAIA,yEAIA,mEAIA,qEAIA,sEAIA,uEAIA,wWAkBA,2NAMA,6FAOA,qGAMA,yJAKA,2EAIA,6FAMA,oHAMA,0FAIA,yFAIA,sFAIA,qFAIA,yKAUA,6LAQA,iMAQA,6HAKA,sNAUA,4FAIA,6FAIA,oNAUA,4FAIA,6FAIA,gJAOA,8IAOA,mHAKA,mHAKA,kHAKA,kHAKA,oUAOA,4DAMA,yGAOA,wCAIA,2CAIA,yGAOA,oCAIA,qCAIA,wCAIA,4CAIA,+CAIA","sources":[""],"sourcesContent":["/*!\n * Bootstrap-select v1.14.0-beta3 (https://developer.snapappointments.com/bootstrap-select)\n *\n * Copyright 2012-2022 SnapAppointments, LLC\n * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)\n */\n@-webkit-keyframes bs-notify-fadeOut {\n 0% {\n opacity: 0.9;\n }\n 100% {\n opacity: 0;\n }\n}\n@-o-keyframes bs-notify-fadeOut {\n 0% {\n opacity: 0.9;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes bs-notify-fadeOut {\n 0% {\n opacity: 0.9;\n }\n 100% {\n opacity: 0;\n }\n}\nselect.bs-select-hidden,\n.bootstrap-select > select.bs-select-hidden,\nselect.selectpicker {\n display: none !important;\n}\n.bootstrap-select {\n width: 220px;\n vertical-align: middle;\n}\n.bootstrap-select > .dropdown-toggle {\n position: relative;\n width: 100%;\n white-space: nowrap;\n display: -webkit-inline-box;\n display: -webkit-inline-flex;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n[dir=\"ltr\"] .bootstrap-select > .dropdown-toggle {\n text-align: right;\n}\n[dir=\"rtl\"] .bootstrap-select > .dropdown-toggle {\n text-align: left;\n}\n.bootstrap-select > .dropdown-toggle:after {\n margin-top: -1px;\n}\n.bootstrap-select > .dropdown-toggle.bs-placeholder,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:active {\n color: #999;\n}\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:active {\n color: rgba(255, 255, 255, 0.5);\n}\n.bootstrap-select > select {\n position: absolute !important;\n bottom: 0;\n display: block !important;\n width: 0.5px !important;\n height: 100% !important;\n padding: 0 !important;\n opacity: 0 !important;\n border: none;\n z-index: 0 !important;\n}\n[dir=\"ltr\"] .bootstrap-select > select {\n left: 50%;\n}\n[dir=\"rtl\"] .bootstrap-select > select {\n right: 50%;\n}\n.bootstrap-select > select.mobile-device {\n top: 0;\n display: block !important;\n width: 100% !important;\n z-index: 2 !important;\n}\n[dir=\"ltr\"] .bootstrap-select > select.mobile-device {\n left: 0;\n}\n[dir=\"rtl\"] .bootstrap-select > select.mobile-device {\n right: 0;\n}\n.has-error .bootstrap-select .dropdown-toggle,\n.error .bootstrap-select .dropdown-toggle,\n.bootstrap-select.is-invalid .dropdown-toggle,\n.was-validated .bootstrap-select select:invalid + .dropdown-toggle {\n border-color: #b94a48;\n}\n.bootstrap-select.is-valid .dropdown-toggle,\n.was-validated .bootstrap-select select:valid + .dropdown-toggle {\n border-color: #28a745;\n}\n.bootstrap-select.fit-width {\n width: auto !important;\n}\n.bootstrap-select:not([class*=\"col-\"]):not([class*=\"form-control\"]):not(.input-group-btn) {\n width: 220px;\n}\n.bootstrap-select > select.mobile-device:focus + .dropdown-toggle,\n.bootstrap-select .dropdown-toggle:focus {\n outline: thin dotted #333333 !important;\n outline: 5px auto -webkit-focus-ring-color !important;\n outline-offset: -2px;\n}\n.bootstrap-select.form-control {\n margin-bottom: 0;\n padding: 0;\n border: none;\n height: auto;\n}\n:not(.input-group) > .bootstrap-select.form-control:not([class*=\"col-\"]) {\n width: 100%;\n}\n.bootstrap-select.form-control.input-group-btn {\n float: none;\n z-index: auto;\n}\n.form-inline .bootstrap-select,\n.form-inline .bootstrap-select.form-control:not([class*=\"col-\"]) {\n width: auto;\n}\n.bootstrap-select:not(.input-group-btn),\n.bootstrap-select[class*=\"col-\"] {\n float: none;\n display: inline-block;\n}\n[dir=\"ltr\"] .bootstrap-select:not(.input-group-btn),\n[dir=\"ltr\"] .bootstrap-select[class*=\"col-\"] {\n margin-left: 0;\n}\n[dir=\"rtl\"] .bootstrap-select:not(.input-group-btn),\n[dir=\"rtl\"] .bootstrap-select[class*=\"col-\"] {\n margin-right: 0;\n}\n[dir=\"ltr\"] .bootstrap-select.dropdown-menu-right,\n[dir=\"ltr\"] .bootstrap-select[class*=\"col-\"].dropdown-menu-right,\n[dir=\"ltr\"] .row .bootstrap-select[class*=\"col-\"].dropdown-menu-right {\n float: right;\n}\n[dir=\"rtl\"] .bootstrap-select.dropdown-menu-right,\n[dir=\"rtl\"] .bootstrap-select[class*=\"col-\"].dropdown-menu-right,\n[dir=\"rtl\"] .row .bootstrap-select[class*=\"col-\"].dropdown-menu-right {\n float: left;\n}\n.form-inline .bootstrap-select,\n.form-horizontal .bootstrap-select,\n.form-group .bootstrap-select {\n margin-bottom: 0;\n}\n.form-group-lg .bootstrap-select.form-control,\n.form-group-sm .bootstrap-select.form-control {\n padding: 0;\n}\n.form-group-lg .bootstrap-select.form-control .dropdown-toggle,\n.form-group-sm .bootstrap-select.form-control .dropdown-toggle {\n height: 100%;\n font-size: inherit;\n line-height: inherit;\n border-radius: inherit;\n}\n.bootstrap-select.form-control-sm .dropdown-toggle,\n.bootstrap-select.form-control-lg .dropdown-toggle {\n font-size: inherit;\n line-height: inherit;\n border-radius: inherit;\n}\n.bootstrap-select.form-control-sm .dropdown-toggle {\n padding: 0.25rem 0.5rem;\n}\n.bootstrap-select.form-control-lg .dropdown-toggle {\n padding: 0.5rem 1rem;\n}\n.form-inline .bootstrap-select .form-control {\n width: 100%;\n}\n.bootstrap-select.disabled,\n.bootstrap-select > .disabled {\n cursor: not-allowed;\n}\n.bootstrap-select.disabled:focus,\n.bootstrap-select > .disabled:focus {\n outline: none !important;\n}\n.bootstrap-select.bs-container {\n position: absolute;\n top: 0;\n height: 0 !important;\n padding: 0 !important;\n}\n[dir=\"ltr\"] .bootstrap-select.bs-container {\n left: 0;\n}\n[dir=\"rtl\"] .bootstrap-select.bs-container {\n right: 0;\n}\n.bootstrap-select.bs-container .dropdown-menu {\n z-index: 1060;\n}\n.bootstrap-select .dropdown-toggle .filter-option {\n position: static;\n top: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n -webkit-box-flex: 0;\n -webkit-flex: 0 1 auto;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-toggle .filter-option {\n left: 0;\n float: left;\n text-align: left;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-toggle .filter-option {\n right: 0;\n float: right;\n text-align: right;\n}\n[dir=\"ltr\"] .bs3.bootstrap-select .dropdown-toggle .filter-option {\n padding-right: inherit;\n}\n[dir=\"rtl\"] .bs3.bootstrap-select .dropdown-toggle .filter-option {\n padding-left: inherit;\n}\n.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option {\n position: absolute;\n padding-top: inherit;\n padding-bottom: inherit;\n float: none;\n}\n[dir=\"ltr\"] .input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option {\n padding-left: inherit;\n}\n[dir=\"rtl\"] .input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option {\n padding-right: inherit;\n}\n[dir=\"ltr\"] .input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner {\n padding-right: inherit;\n}\n[dir=\"rtl\"] .input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner {\n padding-left: inherit;\n}\n.bootstrap-select .dropdown-toggle .filter-option-inner-inner {\n overflow: hidden;\n}\n.bootstrap-select .dropdown-toggle .filter-expand {\n width: 0 !important;\n opacity: 0 !important;\n overflow: hidden;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-toggle .filter-expand {\n float: left;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-toggle .filter-expand {\n float: right;\n}\n.bootstrap-select .dropdown-toggle .caret {\n position: absolute;\n top: 50%;\n margin-top: -2px;\n vertical-align: middle;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-toggle .caret {\n right: 12px;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-toggle .caret {\n left: 12px;\n}\n.bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n position: relative;\n display: block;\n text-align: center;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n margin-right: 5px;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n margin-left: 5px;\n}\n[dir=\"ltr\"] .bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n padding-right: inherit;\n}\n[dir=\"rtl\"] .bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n padding-left: inherit;\n}\n.bootstrap-select .dropdown-toggle .bs-select-clear-selected span {\n position: relative;\n top: -webkit-calc(((-1em / 1.5) + 1ex) / 2);\n top: calc(((-1em / 1.5) + 1ex) / 2);\n pointer-events: none;\n}\n.bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected span {\n top: auto;\n}\n.bootstrap-select .dropdown-toggle.bs-placeholder .bs-select-clear-selected {\n display: none;\n}\n.input-group .bootstrap-select.form-control .dropdown-toggle {\n border-radius: inherit;\n}\n.bootstrap-select[class*=\"col-\"] .dropdown-toggle {\n width: 100%;\n}\n.bootstrap-select .dropdown-menu {\n min-width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bootstrap-select .dropdown-menu > .inner:focus {\n outline: none !important;\n}\n.bootstrap-select .dropdown-menu.inner {\n position: static;\n float: none;\n border: 0;\n padding: 0;\n margin: 0;\n border-radius: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.bootstrap-select .dropdown-menu li {\n position: relative;\n}\n.bootstrap-select .dropdown-menu li.active small {\n color: rgba(255, 255, 255, 0.5) !important;\n}\n.bootstrap-select .dropdown-menu li.disabled a {\n cursor: not-allowed;\n}\n.bootstrap-select .dropdown-menu li a {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.bootstrap-select .dropdown-menu li a.opt {\n position: relative;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-menu li a.opt {\n padding-left: 2.25em;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-menu li a.opt {\n padding-right: 2.25em;\n}\n.bootstrap-select .dropdown-menu li a span.check-mark {\n display: none;\n}\n.bootstrap-select .dropdown-menu li a span.text {\n display: inline-block;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-menu li small {\n padding-left: 0.5em;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-menu li small {\n padding-right: 0.5em;\n}\n.bootstrap-select .dropdown-menu .notify {\n position: absolute;\n bottom: 5px;\n width: 96%;\n margin: 0 2%;\n min-height: 26px;\n padding: 3px 5px;\n background: #f5f5f5;\n border: 1px solid #e3e3e3;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n pointer-events: none;\n opacity: 0.9;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bootstrap-select .dropdown-menu .notify.fadeOut {\n -webkit-animation: 300ms linear 750ms forwards bs-notify-fadeOut;\n -o-animation: 300ms linear 750ms forwards bs-notify-fadeOut;\n animation: 300ms linear 750ms forwards bs-notify-fadeOut;\n}\n.bootstrap-select .no-results {\n padding: 3px;\n background: #f5f5f5;\n margin: 0 5px;\n white-space: nowrap;\n}\n.bootstrap-select.fit-width .dropdown-toggle .filter-option {\n position: static;\n display: inline;\n padding: 0;\n}\n.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,\n.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner {\n display: inline;\n}\n.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before {\n content: '\\00a0';\n}\n.bootstrap-select.fit-width .dropdown-toggle .caret {\n position: static;\n top: auto;\n margin-top: -1px;\n}\n.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {\n position: absolute;\n display: inline-block;\n top: 5px;\n}\n[dir=\"ltr\"] .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {\n right: 15px;\n}\n[dir=\"rtl\"] .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {\n left: 15px;\n}\n[dir=\"ltr\"] .bootstrap-select.show-tick .dropdown-menu li a span.text {\n margin-right: 34px;\n}\n[dir=\"rtl\"] .bootstrap-select.show-tick .dropdown-menu li a span.text {\n margin-left: 34px;\n}\n.bootstrap-select .bs-ok-default:after {\n content: '';\n display: block;\n width: 0.5em;\n height: 1em;\n border-style: solid;\n -webkit-transform-style: preserve-3d;\n transform-style: preserve-3d;\n}\n[dir=\"ltr\"] .bootstrap-select .bs-ok-default:after {\n border-width: 0 0.26em 0.26em 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n[dir=\"rtl\"] .bootstrap-select .bs-ok-default:after {\n border-width: 0 0 0.26em 0.26em;\n -webkit-transform: rotate(-45deg);\n -ms-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n}\n.bootstrap-select.show-menu-arrow.open > .dropdown-toggle,\n.bootstrap-select.show-menu-arrow.show > .dropdown-toggle {\n z-index: 1061;\n}\n.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {\n content: '';\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid rgba(204, 204, 204, 0.2);\n position: absolute;\n bottom: -4px;\n display: none;\n}\n[dir=\"ltr\"] .bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {\n left: 9px;\n}\n[dir=\"rtl\"] .bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {\n right: 9px;\n}\n.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {\n content: '';\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid white;\n position: absolute;\n bottom: -4px;\n display: none;\n}\n[dir=\"ltr\"] .bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {\n left: 10px;\n}\n[dir=\"rtl\"] .bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {\n right: 10px;\n}\n.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before {\n bottom: auto;\n top: -4px;\n border-top: 7px solid rgba(204, 204, 204, 0.2);\n border-bottom: 0;\n}\n.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after {\n bottom: auto;\n top: -4px;\n border-top: 6px solid white;\n border-bottom: 0;\n}\n[dir=\"ltr\"] .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before {\n right: 12px;\n left: auto;\n}\n[dir=\"rtl\"] .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before {\n left: 12px;\n right: auto;\n}\n[dir=\"ltr\"] .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after {\n right: 13px;\n left: auto;\n}\n[dir=\"rtl\"] .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after {\n left: 13px;\n right: auto;\n}\n.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:before,\n.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:before,\n.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:after,\n.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:after {\n display: block;\n}\n.bs-searchbox,\n.bs-actionsbox,\n.bs-donebutton {\n padding: 4px 8px;\n}\n.bs-actionsbox {\n width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bs-actionsbox .btn-group {\n display: block;\n}\n.bs-actionsbox .btn-group button {\n width: 50%;\n}\n.bs-donebutton {\n width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n[dir=\"ltr\"] .bs-donebutton {\n float: left;\n}\n[dir=\"rtl\"] .bs-donebutton {\n float: right;\n}\n.bs-donebutton .btn-group {\n display: block;\n}\n.bs-donebutton .btn-group button {\n width: 100%;\n}\n.bs-searchbox + .bs-actionsbox {\n padding: 0 8px 4px;\n}\n.bs-searchbox .form-control {\n margin-bottom: 0;\n width: 100%;\n float: none;\n}\n/*# sourceMappingURL=node_modules/bootstrap-select/dist/css/bootstrap-select.css.map */"],"names":[]} +{"version":3,"sourceRoot":null,"mappings":"qPAOA,sLA8BA,6GAMA,oDAKA,0OAkBA,8DAIA,6DAIA,yDAIA,sOAOA,8jDA2BA,yMAYA,4CAIA,6CAIA,8GAOA,wDAIA,yDAIA,4NAOA,gIAKA,iDAIA,kGAIA,kNAOA,iFAOA,gFAIA,uEAKA,yGAKA,uGAMA,yGAKA,0GAKA,2LAMA,0LAMA,gHAMA,sGAKA,sMAQA,kKAOA,wEAIA,sEAIA,wDAIA,0EAKA,0FAKA,8FAOA,gDAIA,iDAIA,2DAIA,kLAYA,8FAMA,iGAMA,sFAIA,qFAIA,qJAOA,4GAIA,yNAQA,iIAIA,8EAIA,wGAMA,uEAIA,wEAIA,0GAOA,+DAIA,8DAIA,+GAMA,wFAIA,uFAIA,iGAIA,gGAIA,0KAOA,+EAIA,yFAIA,mFAIA,2DAIA,+HAOA,qEAIA,sJAWA,sDAIA,2EAIA,kEAIA,0IAQA,4DAIA,wEAIA,yEAIA,mEAIA,qEAIA,sEAIA,uEAIA,wWAkBA,2NAMA,6FAOA,qGAMA,yJAKA,2EAIA,6FAMA,oHAMA,0FAIA,yFAIA,sFAIA,qFAIA,yKAUA,6LAQA,iMAQA,6HAKA,sNAUA,4FAIA,6FAIA,oNAUA,4FAIA,6FAIA,gJAOA,8IAOA,mHAKA,mHAKA,kHAKA,kHAKA,oUAOA,4DAMA,yGAOA,wCAIA,2CAIA,yGAOA,oCAIA,qCAIA,wCAIA,4CAIA,+CAIA","sources":[""],"sourcesContent":["/*!\n * Bootstrap-select v1.14.0-beta3 (https://developer.snapappointments.com/bootstrap-select)\n *\n * Copyright 2012-2022 SnapAppointments, LLC\n * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)\n */\n@-webkit-keyframes bs-notify-fadeOut {\n 0% {\n opacity: 0.9;\n }\n 100% {\n opacity: 0;\n }\n}\n@-o-keyframes bs-notify-fadeOut {\n 0% {\n opacity: 0.9;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes bs-notify-fadeOut {\n 0% {\n opacity: 0.9;\n }\n 100% {\n opacity: 0;\n }\n}\nselect.bs-select-hidden,\n.bootstrap-select > select.bs-select-hidden,\nselect.selectpicker {\n display: none !important;\n}\n.bootstrap-select {\n width: 220px;\n vertical-align: middle;\n}\n.bootstrap-select > .dropdown-toggle {\n position: relative;\n width: 100%;\n white-space: nowrap;\n display: -webkit-inline-box;\n display: -webkit-inline-flex;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -webkit-justify-content: space-between;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n[dir=\"ltr\"] .bootstrap-select > .dropdown-toggle {\n text-align: right;\n}\n[dir=\"rtl\"] .bootstrap-select > .dropdown-toggle {\n text-align: left;\n}\n.bootstrap-select > .dropdown-toggle:after {\n margin-top: -1px;\n}\n.bootstrap-select > .dropdown-toggle.bs-placeholder,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:active {\n color: #999;\n}\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:active,\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:active {\n color: rgba(255, 255, 255, 0.5);\n}\n.bootstrap-select > select {\n position: absolute !important;\n bottom: 0;\n display: block !important;\n width: 0.5px !important;\n height: 100% !important;\n padding: 0 !important;\n opacity: 0 !important;\n border: none;\n z-index: 0 !important;\n}\n[dir=\"ltr\"] .bootstrap-select > select {\n left: 50%;\n}\n[dir=\"rtl\"] .bootstrap-select > select {\n right: 50%;\n}\n.bootstrap-select > select.mobile-device {\n top: 0;\n display: block !important;\n width: 100% !important;\n z-index: 2 !important;\n}\n[dir=\"ltr\"] .bootstrap-select > select.mobile-device {\n left: 0;\n}\n[dir=\"rtl\"] .bootstrap-select > select.mobile-device {\n right: 0;\n}\n.has-error .bootstrap-select .dropdown-toggle,\n.error .bootstrap-select .dropdown-toggle,\n.bootstrap-select.is-invalid .dropdown-toggle,\n.was-validated .bootstrap-select select:invalid + .dropdown-toggle {\n border-color: #b94a48;\n}\n.bootstrap-select.is-valid .dropdown-toggle,\n.was-validated .bootstrap-select select:valid + .dropdown-toggle {\n border-color: #28a745;\n}\n.bootstrap-select.fit-width {\n width: auto !important;\n}\n.bootstrap-select:not([class*=\"col-\"]):not([class*=\"form-control\"]):not(.input-group-btn) {\n width: 220px;\n}\n.bootstrap-select > select.mobile-device:focus + .dropdown-toggle,\n.bootstrap-select .dropdown-toggle:focus {\n outline: thin dotted #333333 !important;\n outline: 5px auto -webkit-focus-ring-color !important;\n outline-offset: -2px;\n}\n.bootstrap-select.form-control {\n margin-bottom: 0;\n padding: 0;\n border: none;\n height: auto;\n}\n:not(.input-group) > .bootstrap-select.form-control:not([class*=\"col-\"]) {\n width: 100%;\n}\n.bootstrap-select.form-control.input-group-btn {\n float: none;\n z-index: auto;\n}\n.form-inline .bootstrap-select,\n.form-inline .bootstrap-select.form-control:not([class*=\"col-\"]) {\n width: auto;\n}\n.bootstrap-select:not(.input-group-btn),\n.bootstrap-select[class*=\"col-\"] {\n float: none;\n display: inline-block;\n}\n[dir=\"ltr\"] .bootstrap-select:not(.input-group-btn),\n[dir=\"ltr\"] .bootstrap-select[class*=\"col-\"] {\n margin-left: 0;\n}\n[dir=\"rtl\"] .bootstrap-select:not(.input-group-btn),\n[dir=\"rtl\"] .bootstrap-select[class*=\"col-\"] {\n margin-right: 0;\n}\n[dir=\"ltr\"] .bootstrap-select.dropdown-menu-right,\n[dir=\"ltr\"] .bootstrap-select[class*=\"col-\"].dropdown-menu-right,\n[dir=\"ltr\"] .row .bootstrap-select[class*=\"col-\"].dropdown-menu-right {\n float: right;\n}\n[dir=\"rtl\"] .bootstrap-select.dropdown-menu-right,\n[dir=\"rtl\"] .bootstrap-select[class*=\"col-\"].dropdown-menu-right,\n[dir=\"rtl\"] .row .bootstrap-select[class*=\"col-\"].dropdown-menu-right {\n float: left;\n}\n.form-inline .bootstrap-select,\n.form-horizontal .bootstrap-select,\n.form-group .bootstrap-select {\n margin-bottom: 0;\n}\n.form-group-lg .bootstrap-select.form-control,\n.form-group-sm .bootstrap-select.form-control {\n padding: 0;\n}\n.form-group-lg .bootstrap-select.form-control .dropdown-toggle,\n.form-group-sm .bootstrap-select.form-control .dropdown-toggle {\n height: 100%;\n font-size: inherit;\n line-height: inherit;\n border-radius: inherit;\n}\n.bootstrap-select.form-control-sm .dropdown-toggle,\n.bootstrap-select.form-control-lg .dropdown-toggle {\n font-size: inherit;\n line-height: inherit;\n border-radius: inherit;\n}\n.bootstrap-select.form-control-sm .dropdown-toggle {\n padding: 0.25rem 0.5rem;\n}\n.bootstrap-select.form-control-lg .dropdown-toggle {\n padding: 0.5rem 1rem;\n}\n.form-inline .bootstrap-select .form-control {\n width: 100%;\n}\n.bootstrap-select.disabled,\n.bootstrap-select > .disabled {\n cursor: not-allowed;\n}\n.bootstrap-select.disabled:focus,\n.bootstrap-select > .disabled:focus {\n outline: none !important;\n}\n.bootstrap-select.bs-container {\n position: absolute;\n top: 0;\n height: 0 !important;\n padding: 0 !important;\n}\n[dir=\"ltr\"] .bootstrap-select.bs-container {\n left: 0;\n}\n[dir=\"rtl\"] .bootstrap-select.bs-container {\n right: 0;\n}\n.bootstrap-select.bs-container .dropdown-menu {\n z-index: 1060;\n}\n.bootstrap-select .dropdown-toggle .filter-option {\n position: static;\n top: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n -webkit-box-flex: 0;\n -webkit-flex: 0 1 auto;\n -ms-flex: 0 1 auto;\n flex: 0 1 auto;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-toggle .filter-option {\n left: 0;\n float: left;\n text-align: left;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-toggle .filter-option {\n right: 0;\n float: right;\n text-align: right;\n}\n[dir=\"ltr\"] .bs3.bootstrap-select .dropdown-toggle .filter-option {\n padding-right: inherit;\n}\n[dir=\"rtl\"] .bs3.bootstrap-select .dropdown-toggle .filter-option {\n padding-left: inherit;\n}\n.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option {\n position: absolute;\n padding-top: inherit;\n padding-bottom: inherit;\n float: none;\n}\n[dir=\"ltr\"] .input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option {\n padding-left: inherit;\n}\n[dir=\"rtl\"] .input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option {\n padding-right: inherit;\n}\n[dir=\"ltr\"] .input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner {\n padding-right: inherit;\n}\n[dir=\"rtl\"] .input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner {\n padding-left: inherit;\n}\n.bootstrap-select .dropdown-toggle .filter-option-inner-inner {\n overflow: hidden;\n}\n.bootstrap-select .dropdown-toggle .filter-expand {\n width: 0 !important;\n opacity: 0 !important;\n overflow: hidden;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-toggle .filter-expand {\n float: left;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-toggle .filter-expand {\n float: right;\n}\n.bootstrap-select .dropdown-toggle .caret {\n position: absolute;\n top: 50%;\n margin-top: -2px;\n vertical-align: middle;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-toggle .caret {\n right: 12px;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-toggle .caret {\n left: 12px;\n}\n.bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n position: relative;\n display: block;\n text-align: center;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n margin-right: 5px;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n margin-left: 5px;\n}\n[dir=\"ltr\"] .bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n padding-right: inherit;\n}\n[dir=\"rtl\"] .bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n padding-left: inherit;\n}\n.bootstrap-select .dropdown-toggle .bs-select-clear-selected span {\n position: relative;\n top: -webkit-calc(((-1em / 1.5) + 1ex) / 2);\n top: calc(((-1em / 1.5) + 1ex) / 2);\n pointer-events: none;\n}\n.bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected span {\n top: auto;\n}\n.bootstrap-select .dropdown-toggle.bs-placeholder .bs-select-clear-selected {\n display: none;\n}\n.input-group .bootstrap-select.form-control .dropdown-toggle {\n border-radius: inherit;\n}\n.bootstrap-select[class*=\"col-\"] .dropdown-toggle {\n width: 100%;\n}\n.bootstrap-select .dropdown-menu {\n min-width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bootstrap-select .dropdown-menu > .inner:focus {\n outline: none !important;\n}\n.bootstrap-select .dropdown-menu.inner {\n position: static;\n float: none;\n border: 0;\n padding: 0;\n margin: 0;\n border-radius: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.bootstrap-select .dropdown-menu li {\n position: relative;\n}\n.bootstrap-select .dropdown-menu li.active small {\n color: rgba(255, 255, 255, 0.5) !important;\n}\n.bootstrap-select .dropdown-menu li.disabled a {\n cursor: not-allowed;\n}\n.bootstrap-select .dropdown-menu li a {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.bootstrap-select .dropdown-menu li a.opt {\n position: relative;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-menu li a.opt {\n padding-left: 2.25em;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-menu li a.opt {\n padding-right: 2.25em;\n}\n.bootstrap-select .dropdown-menu li a span.check-mark {\n display: none;\n}\n.bootstrap-select .dropdown-menu li a span.text {\n display: inline-block;\n}\n[dir=\"ltr\"] .bootstrap-select .dropdown-menu li small {\n padding-left: 0.5em;\n}\n[dir=\"rtl\"] .bootstrap-select .dropdown-menu li small {\n padding-right: 0.5em;\n}\n.bootstrap-select .dropdown-menu .notify {\n position: absolute;\n bottom: 5px;\n width: 96%;\n margin: 0 2%;\n min-height: 26px;\n padding: 3px 5px;\n background: #f5f5f5;\n border: 1px solid #e3e3e3;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n pointer-events: none;\n opacity: 0.9;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bootstrap-select .dropdown-menu .notify.fadeOut {\n -webkit-animation: 300ms linear 750ms forwards bs-notify-fadeOut;\n -o-animation: 300ms linear 750ms forwards bs-notify-fadeOut;\n animation: 300ms linear 750ms forwards bs-notify-fadeOut;\n}\n.bootstrap-select .no-results {\n padding: 3px;\n background: #f5f5f5;\n margin: 0 5px;\n white-space: nowrap;\n}\n.bootstrap-select.fit-width .dropdown-toggle .filter-option {\n position: static;\n display: inline;\n padding: 0;\n}\n.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,\n.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner {\n display: inline;\n}\n.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before {\n content: '\\00a0';\n}\n.bootstrap-select.fit-width .dropdown-toggle .caret {\n position: static;\n top: auto;\n margin-top: -1px;\n}\n.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {\n position: absolute;\n display: inline-block;\n top: 5px;\n}\n[dir=\"ltr\"] .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {\n right: 15px;\n}\n[dir=\"rtl\"] .bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {\n left: 15px;\n}\n[dir=\"ltr\"] .bootstrap-select.show-tick .dropdown-menu li a span.text {\n margin-right: 34px;\n}\n[dir=\"rtl\"] .bootstrap-select.show-tick .dropdown-menu li a span.text {\n margin-left: 34px;\n}\n.bootstrap-select .bs-ok-default:after {\n content: '';\n display: block;\n width: 0.5em;\n height: 1em;\n border-style: solid;\n -webkit-transform-style: preserve-3d;\n transform-style: preserve-3d;\n}\n[dir=\"ltr\"] .bootstrap-select .bs-ok-default:after {\n border-width: 0 0.26em 0.26em 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n[dir=\"rtl\"] .bootstrap-select .bs-ok-default:after {\n border-width: 0 0 0.26em 0.26em;\n -webkit-transform: rotate(-45deg);\n -ms-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n}\n.bootstrap-select.show-menu-arrow.open > .dropdown-toggle,\n.bootstrap-select.show-menu-arrow.show > .dropdown-toggle {\n z-index: 1061;\n}\n.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {\n content: '';\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid rgba(204, 204, 204, 0.2);\n position: absolute;\n bottom: -4px;\n display: none;\n}\n[dir=\"ltr\"] .bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {\n left: 9px;\n}\n[dir=\"rtl\"] .bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {\n right: 9px;\n}\n.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {\n content: '';\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid white;\n position: absolute;\n bottom: -4px;\n display: none;\n}\n[dir=\"ltr\"] .bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {\n left: 10px;\n}\n[dir=\"rtl\"] .bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {\n right: 10px;\n}\n.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before {\n bottom: auto;\n top: -4px;\n border-top: 7px solid rgba(204, 204, 204, 0.2);\n border-bottom: 0;\n}\n.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after {\n bottom: auto;\n top: -4px;\n border-top: 6px solid white;\n border-bottom: 0;\n}\n[dir=\"ltr\"] .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before {\n right: 12px;\n left: auto;\n}\n[dir=\"rtl\"] .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before {\n left: 12px;\n right: auto;\n}\n[dir=\"ltr\"] .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after {\n right: 13px;\n left: auto;\n}\n[dir=\"rtl\"] .bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after {\n left: 13px;\n right: auto;\n}\n.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:before,\n.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:before,\n.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:after,\n.bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:after {\n display: block;\n}\n.bs-searchbox,\n.bs-actionsbox,\n.bs-donebutton {\n padding: 4px 8px;\n}\n.bs-actionsbox {\n width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bs-actionsbox .btn-group {\n display: block;\n}\n.bs-actionsbox .btn-group button {\n width: 50%;\n}\n.bs-donebutton {\n width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n[dir=\"ltr\"] .bs-donebutton {\n float: left;\n}\n[dir=\"rtl\"] .bs-donebutton {\n float: right;\n}\n.bs-donebutton .btn-group {\n display: block;\n}\n.bs-donebutton .btn-group button {\n width: 100%;\n}\n.bs-searchbox + .bs-actionsbox {\n padding: 0 8px 4px;\n}\n.bs-searchbox .form-control {\n margin-bottom: 0;\n width: 100%;\n float: none;\n}"],"names":[]} diff --git a/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map b/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map index 9964b3a83d7..8a2ab333952 100644 --- a/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map +++ b/src/OrchardCore.Modules/OrchardCore.Shortcodes/wwwroot/Scripts/shortcodes.map @@ -1 +1 @@ -{"version":3,"sources":[""],"sourcesContent":["/// jQuery helper to append text to a textarea or input.\njQuery.fn.extend({\n insertAtCaret: function (myValue) {\n return this.each(function (i) {\n if (document.selection) {\n //For browsers like Internet Explorer\n this.focus();\n sel = document.selection.createRange();\n sel.text = myValue;\n this.focus();\n } else if (this.selectionStart || this.selectionStart === \"0\") {\n //For browsers like Firefox and Webkit based\n var startPos = this.selectionStart;\n var endPos = this.selectionEnd;\n var scrollTop = this.scrollTop;\n this.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos, this.value.length);\n this.focus();\n this.selectionStart = startPos + myValue.length;\n this.selectionEnd = startPos + myValue.length;\n this.scrollTop = scrollTop;\n } else {\n this.value += myValue;\n this.focus();\n }\n });\n }\n});\nconst shortcodeWrapperTemplate = `\n
\n`;\nconst shortcodeBtnTemplate = `\n\n`;\n// Wraps each .shortcode-modal-input class with a wrapper, and attaches detaches the shortcode app as required.\n$(function () {\n $('.shortcode-modal-input').each(function () {\n $(this).wrap(shortcodeWrapperTemplate);\n $(this).parent().append(shortcodeBtnTemplate);\n });\n $('.shortcode-modal-btn').on('click', function() {\n var input = $(this).siblings('.shortcode-modal-input');\n shortcodesApp.init(function (defaultValue) {\n input.insertAtCaret(defaultValue);\n }); \n });\n})\nvar shortcodesApp;\nfunction initializeShortcodesApp(element) {\n if (element && !shortcodesApp) {\n var elementId = element.id;\n shortcodesApp = new Vue({\n el: '#' + elementId,\n data : function () {\n \n var shortcodes = JSON.parse(element.dataset.shortcodes || \"[]\");\n var categories = JSON.parse(element.dataset.categories || \"[]\");\n return {\n filter: '',\n allShortcodes: shortcodes,\n filteredShortcodes: shortcodes,\n categories: categories,\n defaultValue: '',\n modal: null\n }\n },\n watch:\n {\n filter(filter) {\n if (filter) {\n var lower = filter.toLowerCase();\n this.filteredShortcodes = this.allShortcodes\n .filter(s => s.name.startsWith(lower));\n } else {\n this.filteredShortcodes = this.allShortcodes;\n }\n }\n }, \n methods: {\n init(onClose)\n {\n if (onClose) {\n this.onClose = onClose;\n }\n this.selectedValue = '';\n this.modal = new bootstrap.Modal(this.$el);\n this.modal.show();\n var self = this;\n $(this.$el).on('shown.bs.modal', function (e) {\n self.$refs.filter.focus();\n });\n },\n onClose(defaultValue)\n {\n return;\n },\n setCategory(category)\n {\n if (category) {\n this.filteredShortcodes = this.allShortcodes\n .filter(s => s.categories.some(c => c.toLowerCase() === category.toLowerCase()));\n } else {\n this.filteredShortcodes = this.allShortcodes;\n }\n this.filter = '';\n }, \n isVisible(name) {\n return this.filteredShortcodes.some(s => s.name === name);\n },\n insertShortcode(event) {\n this.defaultValue = event.target.dataset.defaultValue;\n this.modal.hide();\n this.onClose(this.defaultValue);\n }\n }\n });\n return shortcodesApp;\n }\n}\n// initializes a code mirror editor with a shortcode modal.\nfunction initializeCodeMirrorShortcodeWrapper(editor) {\n const codemirrorWrapper = editor.display.wrapper;\n $(codemirrorWrapper).wrap(shortcodeWrapperTemplate);\n $(codemirrorWrapper).parent().append(shortcodeBtnTemplate);\n $(codemirrorWrapper).siblings('.shortcode-modal-btn').on('click', function () {\n shortcodesApp.init(function (defaultValue) {\n editor.replaceSelection(defaultValue); \n }); \n }); \n}\n"],"names":["shortcodesApp","jQuery","fn","extend","insertAtCaret","myValue","each","i","document","selection","focus","sel","createRange","text","selectionStart","startPos","endPos","selectionEnd","scrollTop","value","substring","length","shortcodeWrapperTemplate","shortcodeBtnTemplate","initializeShortcodesApp","element","Vue","el","id","data","shortcodes","JSON","parse","dataset","filter","allShortcodes","filteredShortcodes","categories","defaultValue","modal","watch","lower","toLowerCase","s","name","startsWith","methods","init","onClose","selectedValue","bootstrap","Modal","$el","show","self","$","on","e","$refs","setCategory","category","some","c","isVisible","insertShortcode","event","target","hide","initializeCodeMirrorShortcodeWrapper","editor","codemirrorWrapper","display","wrapper","wrap","parent","append","siblings","replaceSelection","input"],"mappings":"IAsDIA,cArDJC,OAAOC,EAAE,CAACC,MAAM,CAAC,CACbC,cAAe,SAAUC,CAAO,EAC5B,OAAO,IAAI,CAACC,IAAI,CAAC,SAAUC,CAAC,EACxB,GAAIC,SAASC,SAAS,CAElB,IAAI,CAACC,KAAK,GAEVC,AADAA,CAAAA,IAAMH,SAASC,SAAS,CAACG,WAAW,EAAC,EACjCC,IAAI,CAAGR,EACX,IAAI,CAACK,KAAK,QACP,GAAI,IAAI,CAACI,cAAc,EAAI,AAAwB,MAAxB,IAAI,CAACA,cAAc,CAAU,CAE3D,IAAIC,EAAW,IAAI,CAACD,cAAc,CAC9BE,EAAS,IAAI,CAACC,YAAY,CAC1BC,EAAY,IAAI,CAACA,SAAS,AAC9B,CAAA,IAAI,CAACC,KAAK,CAAG,IAAI,CAACA,KAAK,CAACC,SAAS,CAAC,EAAGL,GAAYV,EAAU,IAAI,CAACc,KAAK,CAACC,SAAS,CAACJ,EAAQ,IAAI,CAACG,KAAK,CAACE,MAAM,EACzG,IAAI,CAACX,KAAK,GACV,IAAI,CAACI,cAAc,CAAGC,EAAWV,EAAQgB,MAAM,CAC/C,IAAI,CAACJ,YAAY,CAAGF,EAAWV,EAAQgB,MAAM,CAC7C,IAAI,CAACH,SAAS,CAAGA,CACrB,MACI,IAAI,CAACC,KAAK,EAAId,EACd,IAAI,CAACK,KAAK,EAElB,EACJ,CACJ,GAEA,IAAMY,yBAA2B;AACjC;AACA,CAAC,CAEKC,qBAAuB;AAC7B;AACA;AACA;AACA,CAAC,CAoBD,SAASC,wBAAwBC,CAAO,EACpC,GAAIA,GAAW,CAACzB,cAsEZ,OAnEAA,cAAgB,IAAI0B,I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,UAAUnB,CAAI,EACV,OAAO,IAAI,CAACR,kBAAkB,CAACyB,IAAI,CAAClB,GAAKA,EAAEC,IAAI,GAAKA,EACxD,EACAoB,gBAAgBC,CAAK,EACjB,IAAI,CAAC3B,YAAY,CAAI2B,EAAMC,MAAM,CAACjC,OAAO,CAACK,YAAY,CACtD,IAAI,CAACC,KAAK,CAAC4B,IAAI,GACf,IAAI,CAACnB,OAAO,CAAC,IAAI,CAACV,YAAY,CAClC,CACJ,CACJ,EAIR,CAGA,SAAS8B,qCAAqCC,CAAM,EAChD,IAAMC,EAAoBD,EAAOE,OAAO,CAACC,OAAO,CAEhDjB,EAAEe,GAAmBG,IAAI,CAACnD,0BAC1BiC,EAAEe,GAAmBI,MAAM,GAAGC,MAAM,CAACpD,sBACrCgC,EAAEe,GAAmBM,QAAQ,CAAC,wBAAwBpB,EAAE,CAAC,QAAS,WAC9DxD,cAAc+C,IAAI,CAAC,SAAUT,CAAY,EACrC+B,EAAOQ,gBAAgB,CAACvC,EAC5B,EACJ,EACJ,CAvGAiB,EAAE,WACEA,EAAE,0BAA0BjD,IAAI,CAAC,WAC7BiD,EAAE,IAAI,EAAEkB,IAAI,CAACnD,0BACbiC,EAAE,IAAI,EAAEmB,MAAM,GAAGC,MAAM,CAACpD,qBAC5B,GAEAgC,EAAE,wBAAwBC,EAAE,CAAC,QAAS,WAClC,IAAIsB,EAAQvB,EAAE,IAAI,EAAEqB,QAAQ,CAAC,0BAE7B5E,cAAc+C,IAAI,CAAC,SAAUT,CAAY,EACrCwC,EAAM1E,aAAa,CAACkC,EACxB,EACJ,EACJ"} +{"version":3,"sources":[""],"sourcesContent":["/// jQuery helper to append text to a textarea or input.\njQuery.fn.extend({\n insertAtCaret: function (myValue) {\n return this.each(function (i) {\n if (document.selection) {\n //For browsers like Internet Explorer\n this.focus();\n sel = document.selection.createRange();\n sel.text = myValue;\n this.focus();\n } else if (this.selectionStart || this.selectionStart === \"0\") {\n //For browsers like Firefox and Webkit based\n var startPos = this.selectionStart;\n var endPos = this.selectionEnd;\n var scrollTop = this.scrollTop;\n this.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos, this.value.length);\n this.focus();\n this.selectionStart = startPos + myValue.length;\n this.selectionEnd = startPos + myValue.length;\n this.scrollTop = scrollTop;\n } else {\n this.value += myValue;\n this.focus();\n }\n });\n }\n});\nconst shortcodeWrapperTemplate = `\n
\n`;\nconst shortcodeBtnTemplate = `\n\n`;\n// Wraps each .shortcode-modal-input class with a wrapper, and attaches detaches the shortcode app as required.\n$(function () {\n $('.shortcode-modal-input').each(function () {\n $(this).wrap(shortcodeWrapperTemplate);\n $(this).parent().append(shortcodeBtnTemplate);\n });\n $('.shortcode-modal-btn').on('click', function() {\n var input = $(this).siblings('.shortcode-modal-input');\n shortcodesApp.init(function (defaultValue) {\n input.insertAtCaret(defaultValue);\n }); \n });\n})\nvar shortcodesApp;\nfunction initializeShortcodesApp(element) {\n if (element && !shortcodesApp) {\n var elementId = element.id;\n shortcodesApp = new Vue({\n el: '#' + elementId,\n data : function () {\n \n var shortcodes = JSON.parse(element.dataset.shortcodes || \"[]\");\n var categories = JSON.parse(element.dataset.categories || \"[]\");\n return {\n filter: '',\n allShortcodes: shortcodes,\n filteredShortcodes: shortcodes,\n categories: categories,\n defaultValue: '',\n modal: null\n }\n },\n watch:\n {\n filter(filter) {\n if (filter) {\n var lower = filter.toLowerCase();\n this.filteredShortcodes = this.allShortcodes\n .filter(s => s.name.startsWith(lower));\n } else {\n this.filteredShortcodes = this.allShortcodes;\n }\n }\n }, \n methods: {\n init(onClose)\n {\n if (onClose) {\n this.onClose = onClose;\n }\n this.selectedValue = '';\n this.modal = new bootstrap.Modal(this.$el);\n this.modal.show();\n var self = this;\n $(this.$el).on('shown.bs.modal', function (e) {\n self.$refs.filter.focus();\n });\n },\n onClose(defaultValue)\n {\n return;\n },\n setCategory(category)\n {\n if (category) {\n this.filteredShortcodes = this.allShortcodes\n .filter(s => s.categories.some(c => c.toLowerCase() === category.toLowerCase()));\n } else {\n this.filteredShortcodes = this.allShortcodes;\n }\n this.filter = '';\n }, \n isVisible(name) {\n return this.filteredShortcodes.some(s => s.name === name);\n },\n insertShortcode(event) {\n this.defaultValue = event.target.dataset.defaultValue;\n this.modal.hide();\n this.onClose(this.defaultValue);\n }\n }\n });\n return shortcodesApp;\n }\n}\n// initializes a code mirror editor with a shortcode modal.\nfunction initializeCodeMirrorShortcodeWrapper(editor) {\n const codemirrorWrapper = editor.display.wrapper;\n $(codemirrorWrapper).wrap(shortcodeWrapperTemplate);\n $(codemirrorWrapper).parent().append(shortcodeBtnTemplate);\n $(codemirrorWrapper).siblings('.shortcode-modal-btn').on('click', function () {\n shortcodesApp.init(function (defaultValue) {\n editor.replaceSelection(defaultValue); \n }); \n }); \n}\n"],"names":["shortcodesApp","jQuery","fn","extend","insertAtCaret","myValue","each","i","document","selection","focus","sel","createRange","text","selectionStart","startPos","endPos","selectionEnd","scrollTop","value","substring","length","shortcodeWrapperTemplate","shortcodeBtnTemplate","initializeShortcodesApp","element","Vue","el","id","data","shortcodes","JSON","parse","dataset","filter","allShortcodes","filteredShortcodes","categories","defaultValue","modal","watch","lower","toLowerCase","s","name","startsWith","methods","init","onClose","selectedValue","bootstrap","Modal","$el","show","self","$","on","e","$refs","setCategory","category","some","c","isVisible","insertShortcode","event","target","hide","initializeCodeMirrorShortcodeWrapper","editor","codemirrorWrapper","display","wrapper","wrap","parent","append","siblings","replaceSelection","input"],"mappings":"IAsDIA,cArDJC,OAAOC,EAAE,CAACC,MAAM,CAAC,CACbC,cAAe,SAAUC,CAAO,EAC5B,OAAO,IAAI,CAACC,IAAI,CAAC,SAAUC,CAAC,EACxB,GAAIC,SAASC,SAAS,CAElB,IAAI,CAACC,KAAK,GAEVC,AADAA,CAAAA,IAAMH,SAASC,SAAS,CAACG,WAAW,EAAC,EACjCC,IAAI,CAAGR,EACX,IAAI,CAACK,KAAK,QACP,GAAI,IAAI,CAACI,cAAc,EAAI,AAAwB,MAAxB,IAAI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,wBAAwBpB,EAAE,CAAC,QAAS,WAC9DxD,cAAc+C,IAAI,CAAC,SAAUT,CAAY,EACrC+B,EAAOQ,gBAAgB,CAACvC,EAC5B,EACJ,EACJ,CAvGAiB,EAAE,WACEA,EAAE,0BAA0BjD,IAAI,CAAC,WAC7BiD,EAAE,IAAI,EAAEkB,IAAI,CAACnD,0BACbiC,EAAE,IAAI,EAAEmB,MAAM,GAAGC,MAAM,CAACpD,qBAC5B,GAEAgC,EAAE,wBAAwBC,EAAE,CAAC,QAAS,WAClC,IAAIsB,EAAQvB,EAAE,IAAI,EAAEqB,QAAQ,CAAC,0BAE7B5E,cAAc+C,IAAI,CAAC,SAAUT,CAAY,EACrCwC,EAAM1E,aAAa,CAACkC,EACxB,EACJ,EACJ"} diff --git a/src/OrchardCore.Modules/OrchardCore.Themes/Assets.json b/src/OrchardCore.Modules/OrchardCore.Themes/Assets.json index 90f543a5c6e..e284d4a1669 100644 --- a/src/OrchardCore.Modules/OrchardCore.Themes/Assets.json +++ b/src/OrchardCore.Modules/OrchardCore.Themes/Assets.json @@ -1,10 +1,4 @@ [ - { - "inputs": [ - "Assets/scss/admin.scss" - ], - "output": "wwwroot/Styles/themes.admin.css" - }, { "inputs": [ "Assets/js/constants.js", diff --git a/src/OrchardCore.Modules/OrchardCore.Themes/Assets/scss/admin.scss b/src/OrchardCore.Modules/OrchardCore.Themes/Assets/scss/themes.admin.scss similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Themes/Assets/scss/admin.scss rename to src/OrchardCore.Modules/OrchardCore.Themes/Assets/scss/themes.admin.scss diff --git a/src/OrchardCore.Modules/OrchardCore.Themes/Assets2.json b/src/OrchardCore.Modules/OrchardCore.Themes/Assets2.json new file mode 100644 index 00000000000..9f523b64e72 --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Themes/Assets2.json @@ -0,0 +1,8 @@ +[ + { + "action": "sass", + "name": "themes-admin", + "source": "Assets/scss/themes.admin.scss", + "tags": ["themes", "css"] + } +] diff --git a/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.css b/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.css index 2cd287a7a02..3bb8129cdf4 100644 --- a/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.css +++ b/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.css @@ -7,4 +7,4 @@ background-size: cover; border-top: 1px solid #f8f9fa; border-bottom: 1px solid #f8f9fa; -} +} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.css.map b/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.css.map new file mode 100644 index 00000000000..604c5b6df4d --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":null,"mappings":"AAAA,+BAGA","sources":[""],"sourcesContent":[".theme-card {\n margin-bottom: 15px;\n}\n.theme-card .card-theme-thumbnail {\n height: 200px;\n background-color: #f8f9fa;\n background-size: cover;\n border-top: 1px solid #f8f9fa;\n border-bottom: 1px solid #f8f9fa;\n}"],"names":[]} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.min.css b/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.min.css index 0ec1d364b71..ca5647e7c40 100644 --- a/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.min.css +++ b/src/OrchardCore.Modules/OrchardCore.Themes/wwwroot/Styles/themes.admin.min.css @@ -1 +1 @@ -.theme-card{margin-bottom:15px}.theme-card .card-theme-thumbnail{height:200px;background-color:#f8f9fa;background-size:cover;border-top:1px solid #f8f9fa;border-bottom:1px solid #f8f9fa} +.theme-card{margin-bottom:15px}.theme-card .card-theme-thumbnail{background-color:#f8f9fa;background-size:cover;border-top:1px solid #f8f9fa;border-bottom:1px solid #f8f9fa;height:200px} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Assets.json b/src/OrchardCore.Modules/OrchardCore.Workflows/Assets.json index 07a08501798..f4011161c90 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/Assets.json +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Assets.json @@ -1,28 +1,4 @@ [ - { - "inputs": [ - "../../../node_modules/jsplumb/css/jsplumbtoolkit-defaults.css" - ], - "output": "wwwroot/Styles/jsplumbtoolkit-defaults.css" - }, - { - "inputs": [ - "../../../node_modules/jsplumb/dist/js/jsplumb.js" - ], - "output": "wwwroot/Scripts/jsplumb.js" - }, - { - "inputs": [ - "Assets/Styles/workflow-editor.scss" - ], - "output": "wwwroot/Styles/orchard.workflows-editor.css" - }, - { - "inputs": [ - "Assets/Styles/workflow-viewer.scss" - ], - "output": "wwwroot/Styles/orchard.workflows-viewer.css" - }, { "inputs": [ "Assets/Scripts/activity-picker.ts", diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Assets/Styles/workflow-editor.scss b/src/OrchardCore.Modules/OrchardCore.Workflows/Assets/Styles/orchard.workflows-editor.scss similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Workflows/Assets/Styles/workflow-editor.scss rename to src/OrchardCore.Modules/OrchardCore.Workflows/Assets/Styles/orchard.workflows-editor.scss diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Assets/Styles/workflow-viewer.scss b/src/OrchardCore.Modules/OrchardCore.Workflows/Assets/Styles/orchard.workflows-viewer.scss similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Workflows/Assets/Styles/workflow-viewer.scss rename to src/OrchardCore.Modules/OrchardCore.Workflows/Assets/Styles/orchard.workflows-viewer.scss diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/Assets2.json b/src/OrchardCore.Modules/OrchardCore.Workflows/Assets2.json new file mode 100644 index 00000000000..08b74467031 --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/Assets2.json @@ -0,0 +1,26 @@ +[ + { + "action": "min", + "name": "workflow-jsplumbtoolkit-defaults.css", + "source": "../../../node_modules/jsplumb/css/jsplumbtoolkit-defaults.css", + "tags": ["workflows", "css"] + }, + { + "action": "sass", + "name": "workflow-editor-css", + "source": "Assets/Styles/orchard.workflows-editor.scss", + "tags": ["workflows", "css"] + }, + { + "action": "sass", + "name": "workflow-viewer-css", + "source": "Assets/Styles/orchard.workflows-viewer.scss", + "tags": ["workflows", "css"] + }, + { + "action": "min", + "name": "workflow-jsplumb", + "source": "../../../node_modules/jsplumb/dist/js/jsplumb.js", + "tags": ["workflows", "js"] + } +] diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.js b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.js index 505733486b2..700c4f67d65 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.js +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.js @@ -1,9 +1,4 @@ -/* -** NOTE: This file is generated by Gulp and should not be edited directly! -** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp. -*/ - -function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}/** +/** * jsBezier * * Copyright (c) 2010 - 2017 jsPlumb (hello@jsplumbtoolkit.com) @@ -66,7 +61,27 @@ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof * the perpendicular returned. The return value of this is an array of two points: [ {x:...,y:...}, {x:...,y:...} ]. * * - */(function(){var root=this;if(typeof Math.sgn=="undefined"){Math.sgn=function(x){return x==0?0:x>0?1:-1;};}var Vectors={subtract:function subtract(v1,v2){return{x:v1.x-v2.x,y:v1.y-v2.y};},dotProduct:function dotProduct(v1,v2){return v1.x*v2.x+v1.y*v2.y;},square:function square(v){return Math.sqrt(v.x*v.x+v.y*v.y);},scale:function scale(v,s){return{x:v.x*s,y:v.y*s};}},maxRecursion=64,flatnessTolerance=Math.pow(2.0,-maxRecursion-1);/** + */ + +(function() { + + var root = this; + + if(typeof Math.sgn == "undefined") { + Math.sgn = function(x) { return x == 0 ? 0 : x > 0 ? 1 :-1; }; + } + + var Vectors = { + subtract : function(v1, v2) { return {x:v1.x - v2.x, y:v1.y - v2.y }; }, + dotProduct : function(v1, v2) { return (v1.x * v2.x) + (v1.y * v2.y); }, + square : function(v) { return Math.sqrt((v.x * v.x) + (v.y * v.y)); }, + scale : function(v, s) { return {x:v.x * s, y:v.y * s }; } + }, + + maxRecursion = 64, + flatnessTolerance = Math.pow(2.0,-maxRecursion-1); + + /** * Calculates the distance that the point lies from the curve. * * @param point a point in the form {x:567, y:3342} @@ -75,36 +90,336 @@ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof * @return a JS object literal containing location and distance, for example: {location:0.35, distance:10}. Location is analogous to the location * argument you pass to the pointOnPath function: it is a ratio of distance travelled along the curve. Distance is the distance in pixels from * the point to the curve. - */var _distanceFromCurve=function _distanceFromCurve(point,curve){var candidates=[],w=_convertToBezier(point,curve),degree=curve.length-1,higherDegree=2*degree-1,numSolutions=_findRoots2(w,higherDegree,candidates,0),v=Vectors.subtract(point,curve[0]),dist=Vectors.square(v),t=0.0;for(var i=0;i=maxRecursion){t[0]=(w[0].x+w[degree].x)/2.0;return 1;}if(_isFlatEnough(w,degree)){t[0]=_computeXIntercept(w,degree);return 1;}break;}}_bezier(w,degree,0.5,left,right);left_count=_findRoots2(left,degree,left_t,depth+1);right_count=_findRoots2(right,degree,right_t,depth+1);for(var i=0;imax_distance_above)max_distance_above=value;else if(value= maxRecursion) { + t[0] = (w[0].x + w[degree].x) / 2.0; + return 1; + } + if (_isFlatEnough(w, degree)) { + t[0] = _computeXIntercept(w, degree); + return 1; + } + break; + } + } + _bezier(w, degree, 0.5, left, right); + left_count = _findRoots(left, degree, left_t, depth+1); + right_count = _findRoots(right, degree, right_t, depth+1); + for (var i = 0; i < left_count; i++) t[i] = left_t[i]; + for (var i = 0; i < right_count; i++) t[i+left_count] = right_t[i]; + return (left_count+right_count); + }; + var _getCrossingCount = function(curve, degree) { + var n_crossings = 0, sign, old_sign; + sign = old_sign = Math.sgn(curve[0].y); + for (var i = 1; i <= degree; i++) { + sign = Math.sgn(curve[i].y); + if (sign != old_sign) n_crossings++; + old_sign = sign; + } + return n_crossings; + }; + var _isFlatEnough = function(curve, degree) { + var error, + intercept_1, intercept_2, left_intercept, right_intercept, + a, b, c, det, dInv, a1, b1, c1, a2, b2, c2; + a = curve[0].y - curve[degree].y; + b = curve[degree].x - curve[0].x; + c = curve[0].x * curve[degree].y - curve[degree].x * curve[0].y; + + var max_distance_above, max_distance_below; + max_distance_above = max_distance_below = 0.0; + + for (var i = 1; i < degree; i++) { + var value = a * curve[i].x + b * curve[i].y + c; + if (value > max_distance_above) + max_distance_above = value; + else if (value < max_distance_below) + max_distance_below = value; + } + + a1 = 0.0; b1 = 1.0; c1 = 0.0; a2 = a; b2 = b; + c2 = c - max_distance_above; + det = a1 * b2 - a2 * b1; + dInv = 1.0/det; + intercept_1 = (b1 * c2 - b2 * c1) * dInv; + a2 = a; b2 = b; c2 = c - max_distance_below; + det = a1 * b2 - a2 * b1; + dInv = 1.0/det; + intercept_2 = (b1 * c2 - b2 * c1) * dInv; + left_intercept = Math.min(intercept_1, intercept_2); + right_intercept = Math.max(intercept_1, intercept_2); + error = right_intercept - left_intercept; + return (error < flatnessTolerance)? 1 : 0; + }; + var _computeXIntercept = function(curve, degree) { + var XLK = 1.0, YLK = 0.0, + XNM = curve[degree].x - curve[0].x, YNM = curve[degree].y - curve[0].y, + XMK = curve[0].x - 0.0, YMK = curve[0].y - 0.0, + det = XNM*YLK - YNM*XLK, detInv = 1.0/det, + S = (XNM*YMK - YNM*XMK) * detInv; + return 0.0 + XLK * S; + }; + var _bezier = function(curve, degree, t, left, right) { + var temp = [[]]; + for (var j =0; j <= degree; j++) temp[0][j] = curve[j]; + for (var i = 1; i <= degree; i++) { + for (var j =0 ; j <= degree - i; j++) { + if (!temp[i]) temp[i] = []; + if (!temp[i][j]) temp[i][j] = {}; + temp[i][j].x = (1.0 - t) * temp[i-1][j].x + t * temp[i-1][j+1].x; + temp[i][j].y = (1.0 - t) * temp[i-1][j].y + t * temp[i-1][j+1].y; + } + } + if (left != null) + for (j = 0; j <= degree; j++) left[j] = temp[j][0]; + if (right != null) + for (j = 0; j <= degree; j++) right[j] = temp[degree-j][j]; + + return (temp[degree][0]); + }; + + var _curveFunctionCache = {}; + var _getCurveFunctions = function(order) { + var fns = _curveFunctionCache[order]; + if (!fns) { + fns = []; + var f_term = function() { return function(t) { return Math.pow(t, order); }; }, + l_term = function() { return function(t) { return Math.pow((1-t), order); }; }, + c_term = function(c) { return function(t) { return c; }; }, + t_term = function() { return function(t) { return t; }; }, + one_minus_t_term = function() { return function(t) { return 1-t; }; }, + _termFunc = function(terms) { + return function(t) { + var p = 1; + for (var i = 0; i < terms.length; i++) p = p * terms[i](t); + return p; + }; + }; + + fns.push(new f_term()); // first is t to the power of the curve order + for (var i = 1; i < order; i++) { + var terms = [new c_term(order)]; + for (var j = 0 ; j < (order - i); j++) terms.push(new t_term()); + for (var j = 0 ; j < i; j++) terms.push(new one_minus_t_term()); + fns.push(new _termFunc(terms)); + } + fns.push(new l_term()); // last is (1-t) to the power of the curve order + + _curveFunctionCache[order] = fns; + } + + return fns; + }; + + + /** * calculates a point on the curve, for a Bezier of arbitrary order. * @param curve an array of control points, eg [{x:10,y:20}, {x:50,y:50}, {x:100,y:100}, {x:120,y:100}]. For a cubic bezier this should have four points. * @param location a decimal indicating the distance along the curve the point should be located at. this is the distance along the curve as it travels, taking the way it bends into account. should be a number from 0 to 1, inclusive. - */var _pointOnPath=function _pointOnPath(curve,location){var cc=_getCurveFunctions(curve.length-1),_x=0,_y=0;for(var i=0;i0?1:-1,cur=null;while(tally 0 ? 1 : -1, + cur = null; + + while (tally < Math.abs(distance)) { + curLoc += (0.005 * direction); + cur = _pointOnPath(curve, curLoc); + tally += _dist(cur, prev); + prev = cur; + } + + return {point:cur, location:curLoc}; + }; + + var _length = function(curve) { + + var d = new Date().getTime(); + + if (_isPoint(curve)) return 0; + + var prev = _pointOnPath(curve, 0), + tally = 0, + curLoc = 0, + direction = 1, + cur = null; + + while (curLoc < 1) { + curLoc += (0.005 * direction); + cur = _pointOnPath(curve, curLoc); + tally += _dist(cur, prev); + prev = cur; + } + console.log("length", new Date().getTime() - d); + + return tally; + }; + + /** * finds the point that is 'distance' along the path from 'location'. - */var _pointAlongPathFrom=function _pointAlongPathFrom(curve,location,distance){return _pointAlongPath(curve,location,distance).point;};/** + */ + var _pointAlongPathFrom = function(curve, location, distance) { + return _pointAlongPath(curve, location, distance).point; + }; + + /** * finds the location that is 'distance' along the path from 'location'. - */var _locationAlongPathFrom=function _locationAlongPathFrom(curve,location,distance){return _pointAlongPath(curve,location,distance).location;};/** + */ + var _locationAlongPathFrom = function(curve, location, distance) { + return _pointAlongPath(curve, location, distance).location; + }; + + /** * returns the gradient of the curve at the given location, which is a decimal between 0 and 1 inclusive. * * thanks // http://bimixual.org/AnimationLibrary/beziertangents.html - */var _gradientAtPoint=function _gradientAtPoint(curve,location){var p1=_pointOnPath(curve,location),p2=_pointOnPath(curve.slice(0,curve.length-1),location),dy=p2.y-p1.y,dx=p2.x-p1.x;return dy===0?Infinity:Math.atan(dy/dx);};/** + */ + var _gradientAtPoint = function(curve, location) { + + var p1 = _pointOnPath(curve, location), + p2 = _pointOnPath(curve.slice(0, curve.length - 1), location), + dy = p2.y - p1.y, dx = p2.x - p1.x; + + return dy === 0 ? Infinity : Math.atan(dy / dx); + }; + + /** returns the gradient of the curve at the point which is 'distance' from the given location. if this point is greater than location 1, the gradient at location 1 is returned. if this point is less than location 0, the gradient at location 0 is returned. - */var _gradientAtPointAlongPathFrom=function _gradientAtPointAlongPathFrom(curve,location,distance){var p=_pointAlongPath(curve,location,distance);if(p.location>1)p.location=1;if(p.location<0)p.location=0;return _gradientAtPoint(curve,p.location);};/** + */ + var _gradientAtPointAlongPathFrom = function(curve, location, distance) { + var p = _pointAlongPath(curve, location, distance); + if (p.location > 1) p.location = 1; + if (p.location < 0) p.location = 0; + return _gradientAtPoint(curve, p.location); + }; + + /** * calculates a line that is 'length' pixels long, perpendicular to, and centered on, the path at 'distance' pixels from the given location. * if distance is not supplied, the perpendicular for the given location is computed (ie. we set distance to zero). - */var _perpendicularToPathAt=function _perpendicularToPathAt(curve,location,length,distance){distance=distance==null?0:distance;var p=_pointAlongPath(curve,location,distance),m=_gradientAtPoint(curve,p.location),_theta2=Math.atan(-1/m),y=length/2*Math.sin(_theta2),x=length/2*Math.cos(_theta2);return[{x:p.point.x+x,y:p.point.y+y},{x:p.point.x-x,y:p.point.y-y}];};/** + */ + var _perpendicularToPathAt = function(curve, location, length, distance) { + distance = distance == null ? 0 : distance; + var p = _pointAlongPath(curve, location, distance), + m = _gradientAtPoint(curve, p.location), + _theta2 = Math.atan(-1 / m), + y = length / 2 * Math.sin(_theta2), + x = length / 2 * Math.cos(_theta2); + return [{x:p.point.x + x, y:p.point.y + y}, {x:p.point.x - x, y:p.point.y - y}]; + }; + + /** * Calculates all intersections of the given line with the given curve. * @param x1 * @param y1 @@ -112,8 +427,51 @@ _curveFunctionCache[order]=fns;}return fns;};/** * @param y2 * @param curve * @returns {Array} - */var _lineIntersection=function _lineIntersection(x1,y1,x2,y2,curve){var a=y2-y1,b=x1-x2,c=x1*(y1-y2)+y1*(x2-x1),coeffs=_computeCoefficients(curve),p=[a*coeffs[0][0]+b*coeffs[1][0],a*coeffs[0][1]+b*coeffs[1][1],a*coeffs[0][2]+b*coeffs[1][2],a*coeffs[0][3]+b*coeffs[1][3]+c],r=_cubicRoots.apply(null,p),intersections=[];if(r!=null){for(var i=0;i<3;i++){var t=r[i],t2=Math.pow(t,2),t3=Math.pow(t,3),x=[coeffs[0][0]*t3+coeffs[0][1]*t2+coeffs[0][2]*t+coeffs[0][3],coeffs[1][0]*t3+coeffs[1][1]*t2+coeffs[1][2]*t+coeffs[1][3]];// check bounds of the line -var s;if(x2-x1!==0){s=(x[0]-x1)/(x2-x1);}else{s=(x[1]-y1)/(y2-y1);}if(t>=0&&t<=1.0&&s>=0&&s<=1.0){intersections.push(x);}}}return intersections;};/** + */ + var _lineIntersection = function(x1, y1, x2, y2, curve) { + var a = y2 - y1, + b = x1 - x2, + c = (x1 * (y1 - y2)) + (y1 * (x2-x1)), + coeffs = _computeCoefficients(curve), + p = [ + (a*coeffs[0][0]) + (b * coeffs[1][0]), + (a*coeffs[0][1])+(b*coeffs[1][1]), + (a*coeffs[0][2])+(b*coeffs[1][2]), + (a*coeffs[0][3])+(b*coeffs[1][3]) + c + ], + r = _cubicRoots.apply(null, p), + intersections = []; + + if (r != null) { + + for (var i = 0; i < 3; i++) { + var t = r[i], + t2 = Math.pow(t, 2), + t3 = Math.pow(t, 3), + x = [ + (coeffs[0][0] * t3) + (coeffs[0][1] * t2) + (coeffs[0][2] * t) + coeffs[0][3], + (coeffs[1][0] * t3) + (coeffs[1][1] * t2) + (coeffs[1][2] * t) + coeffs[1][3] + ]; + + // check bounds of the line + var s; + if ((x2 - x1) !== 0) { + s = (x[0] - x1) / (x2 - x1); + } + else { + s = (x[1] - y1) / (y2 - y1); + } + + if (t >= 0 && t <= 1.0 && s >= 0 && s <= 1.0) { + intersections.push(x); + } + } + } + + return intersections; + }; + + /** * Calculates all intersections of the given box with the given curve. * @param x X position of top left corner of box * @param y Y position of top left corner of box @@ -121,15 +479,120 @@ var s;if(x2-x1!==0){s=(x[0]-x1)/(x2-x1);}else{s=(x[1]-y1)/(y2-y1);}if(t>=0&&t<=1 * @param h height of box * @param curve * @returns {Array} - */var _boxIntersection=function _boxIntersection(x,y,w,h,curve){var i=[];i.push.apply(i,_lineIntersection(x,y,x+w,y,curve));i.push.apply(i,_lineIntersection(x+w,y,x+w,y+h,curve));i.push.apply(i,_lineIntersection(x+w,y+h,x,y+h,curve));i.push.apply(i,_lineIntersection(x,y+h,x,y,curve));return i;};/** + */ + var _boxIntersection = function(x, y, w, h, curve) { + var i = []; + i.push.apply(i, _lineIntersection(x, y, x + w, y, curve)); + i.push.apply(i, _lineIntersection(x + w, y, x + w, y + h, curve)); + i.push.apply(i, _lineIntersection(x + w, y + h, x, y + h, curve)); + i.push.apply(i, _lineIntersection(x, y + h, x, y, curve)); + return i; + }; + + /** * Calculates all intersections of the given bounding box with the given curve. * @param boundingBox Bounding box, in { x:.., y:..., w:..., h:... } format. * @param curve * @returns {Array} - */var _boundingBoxIntersection=function _boundingBoxIntersection(boundingBox,curve){var i=[];i.push.apply(i,_lineIntersection(boundingBox.x,boundingBox.y,boundingBox.x+boundingBox.w,boundingBox.y,curve));i.push.apply(i,_lineIntersection(boundingBox.x+boundingBox.w,boundingBox.y,boundingBox.x+boundingBox.w,boundingBox.y+boundingBox.h,curve));i.push.apply(i,_lineIntersection(boundingBox.x+boundingBox.w,boundingBox.y+boundingBox.h,boundingBox.x,boundingBox.y+boundingBox.h,curve));i.push.apply(i,_lineIntersection(boundingBox.x,boundingBox.y+boundingBox.h,boundingBox.x,boundingBox.y,curve));return i;};function _computeCoefficientsForAxis(curve,axis){return[-curve[0][axis]+3*curve[1][axis]+-3*curve[2][axis]+curve[3][axis],3*curve[0][axis]-6*curve[1][axis]+3*curve[2][axis],-3*curve[0][axis]+3*curve[1][axis],curve[0][axis]];}function _computeCoefficients(curve){return[_computeCoefficientsForAxis(curve,"x"),_computeCoefficientsForAxis(curve,"y")];}function sgn(x){return x<0?-1:x>0?1:0;}function _cubicRoots(a,b,c,d){var A=b/a,B=c/a,C=d/a,Q=(3*B-Math.pow(A,2))/9,R=(9*A*B-27*C-2*Math.pow(A,3))/54,D=Math.pow(Q,3)+Math.pow(R,2),S,T,t=[];if(D>=0)// complex or duplicate roots -{S=sgn(R+Math.sqrt(D))*Math.pow(Math.abs(R+Math.sqrt(D)),1/3);T=sgn(R-Math.sqrt(D))*Math.pow(Math.abs(R-Math.sqrt(D)),1/3);t[0]=-A/3+(S+T);t[1]=-A/3-(S+T)/2;t[2]=-A/3-(S+T)/2;/*discard complex roots*/if(Math.abs(Math.sqrt(3)*(S-T)/2)!==0){t[1]=-1;t[2]=-1;}}else// distinct real roots -{var th=Math.acos(R/Math.sqrt(-Math.pow(Q,3)));t[0]=2*Math.sqrt(-Q)*Math.cos(th/3)-A/3;t[1]=2*Math.sqrt(-Q)*Math.cos((th+2*Math.PI)/3)-A/3;t[2]=2*Math.sqrt(-Q)*Math.cos((th+4*Math.PI)/3)-A/3;}// discard out of spec roots -for(var i=0;i<3;i++){if(t[i]<0||t[i]>1.0){t[i]=-1;}}return t;}var jsBezier=this.jsBezier={distanceFromCurve:_distanceFromCurve,gradientAtPoint:_gradientAtPoint,gradientAtPointAlongCurveFrom:_gradientAtPointAlongPathFrom,nearestPointOnCurve:_nearestPointOnCurve,pointOnCurve:_pointOnPath,pointAlongCurveFrom:_pointAlongPathFrom,perpendicularToCurveAt:_perpendicularToPathAt,locationAlongCurveFrom:_locationAlongPathFrom,getLength:_length,lineIntersection:_lineIntersection,boxIntersection:_boxIntersection,boundingBoxIntersection:_boundingBoxIntersection,version:"0.9.0"};if(typeof exports!=="undefined"){exports.jsBezier=jsBezier;}}).call(typeof window!=='undefined'?window:this);/** + */ + var _boundingBoxIntersection = function(boundingBox, curve) { + var i = []; + i.push.apply(i, _lineIntersection(boundingBox.x, boundingBox.y, boundingBox.x + boundingBox.w, boundingBox.y, curve)); + i.push.apply(i, _lineIntersection(boundingBox.x + boundingBox.w, boundingBox.y, boundingBox.x + boundingBox.w, boundingBox.y + boundingBox.h, curve)); + i.push.apply(i, _lineIntersection(boundingBox.x + boundingBox.w, boundingBox.y + boundingBox.h, boundingBox.x, boundingBox.y + boundingBox.h, curve)); + i.push.apply(i, _lineIntersection(boundingBox.x, boundingBox.y + boundingBox.h, boundingBox.x, boundingBox.y, curve)); + return i; + }; + + + function _computeCoefficientsForAxis(curve, axis) { + return [ + -(curve[0][axis]) + (3*curve[1][axis]) + (-3 * curve[2][axis]) + curve[3][axis], + (3*(curve[0][axis])) - (6*(curve[1][axis])) + (3*(curve[2][axis])), + -3*curve[0][axis] + 3*curve[1][axis], + curve[0][axis] + ]; + } + + function _computeCoefficients(curve) + { + return [ + _computeCoefficientsForAxis(curve, "x"), + _computeCoefficientsForAxis(curve, "y") + ]; + } + + function sgn(x) { + return x < 0 ? -1 : x > 0 ? 1 : 0; + } + + function _cubicRoots(a, b, c, d) { + var A = b / a, + B = c / a, + C = d / a, + Q = (3*B - Math.pow(A, 2))/9, + R = (9*A*B - 27*C - 2*Math.pow(A, 3))/54, + D = Math.pow(Q, 3) + Math.pow(R, 2), + S, + T, + t = []; + + if (D >= 0) // complex or duplicate roots + { + S = sgn(R + Math.sqrt(D))*Math.pow(Math.abs(R + Math.sqrt(D)),(1/3)); + T = sgn(R - Math.sqrt(D))*Math.pow(Math.abs(R - Math.sqrt(D)),(1/3)); + + t[0] = -A/3 + (S + T); + t[1] = -A/3 - (S + T)/2; + t[2] = -A/3 - (S + T)/2; + + /*discard complex roots*/ + if (Math.abs(Math.sqrt(3)*(S - T)/2) !== 0) { + t[1] = -1; + t[2] = -1; + } + } + else // distinct real roots + { + var th = Math.acos(R/Math.sqrt(-Math.pow(Q, 3))); + t[0] = 2*Math.sqrt(-Q)*Math.cos(th/3) - A/3; + t[1] = 2*Math.sqrt(-Q)*Math.cos((th + 2*Math.PI)/3) - A/3; + t[2] = 2*Math.sqrt(-Q)*Math.cos((th + 4*Math.PI)/3) - A/3; + } + + // discard out of spec roots + for (var i = 0; i < 3; i++) { + if (t[i] < 0 || t[i] > 1.0) { + t[i] = -1; + } + } + + return t; + } + + var jsBezier = this.jsBezier = { + distanceFromCurve : _distanceFromCurve, + gradientAtPoint : _gradientAtPoint, + gradientAtPointAlongCurveFrom : _gradientAtPointAlongPathFrom, + nearestPointOnCurve : _nearestPointOnCurve, + pointOnCurve : _pointOnPath, + pointAlongCurveFrom : _pointAlongPathFrom, + perpendicularToCurveAt : _perpendicularToPathAt, + locationAlongCurveFrom:_locationAlongPathFrom, + getLength:_length, + lineIntersection:_lineIntersection, + boxIntersection:_boxIntersection, + boundingBoxIntersection:_boundingBoxIntersection, + version:"0.9.0" + }; + + if (typeof exports !== "undefined") { + exports.jsBezier = jsBezier; + } + +}).call(typeof window !== 'undefined' ? window : this); + +/** * Biltong v0.4.0 * * Various geometry functions written as part of jsPlumb and perhaps useful for others. @@ -157,49 +620,130 @@ for(var i=0;i<3;i++){if(t[i]<0||t[i]>1.0){t[i]=-1;}}return t;}var jsBezier=this. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. - */;(function(){"use strict";var root=this;var Biltong=root.Biltong={version:"0.4.0"};if(typeof exports!=="undefined"){exports.Biltong=Biltong;}var _isa=function _isa(a){return Object.prototype.toString.call(a)==="[object Array]";},_pointHelper=function _pointHelper(p1,p2,fn){p1=_isa(p1)?p1:[p1.x,p1.y];p2=_isa(p2)?p2:[p2.x,p2.y];return fn(p1,p2);},/** + */ +;(function() { + + "use strict"; + var root = this; + + var Biltong = root.Biltong = { + version:"0.4.0" + }; + + if (typeof exports !== "undefined") { + exports.Biltong = Biltong; + } + + var _isa = function(a) { return Object.prototype.toString.call(a) === "[object Array]"; }, + _pointHelper = function(p1, p2, fn) { + p1 = _isa(p1) ? p1 : [p1.x, p1.y]; + p2 = _isa(p2) ? p2 : [p2.x, p2.y]; + return fn(p1, p2); + }, + /** * @name Biltong.gradient * @function * @desc Calculates the gradient of a line between the two points. * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties. * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties. * @return {Float} The gradient of a line between the two points. - */_gradient=Biltong.gradient=function(p1,p2){return _pointHelper(p1,p2,function(_p1,_p2){if(_p2[0]==_p1[0])return _p2[1]>_p1[1]?Infinity:-Infinity;else if(_p2[1]==_p1[1])return _p2[0]>_p1[0]?0:-0;else return(_p2[1]-_p1[1])/(_p2[0]-_p1[0]);});},/** + */ + _gradient = Biltong.gradient = function(p1, p2) { + return _pointHelper(p1, p2, function(_p1, _p2) { + if (_p2[0] == _p1[0]) + return _p2[1] > _p1[1] ? Infinity : -Infinity; + else if (_p2[1] == _p1[1]) + return _p2[0] > _p1[0] ? 0 : -0; + else + return (_p2[1] - _p1[1]) / (_p2[0] - _p1[0]); + }); + }, + /** * @name Biltong.normal * @function * @desc Calculates the gradient of a normal to a line between the two points. * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties. * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties. * @return {Float} The gradient of a normal to a line between the two points. - */_normal=Biltong.normal=function(p1,p2){return-1/_gradient(p1,p2);},/** + */ + _normal = Biltong.normal = function(p1, p2) { + return -1 / _gradient(p1, p2); + }, + /** * @name Biltong.lineLength * @function * @desc Calculates the length of a line between the two points. * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties. * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties. * @return {Float} The length of a line between the two points. - */_lineLength=Biltong.lineLength=function(p1,p2){return _pointHelper(p1,p2,function(_p1,_p2){return Math.sqrt(Math.pow(_p2[1]-_p1[1],2)+Math.pow(_p2[0]-_p1[0],2));});},/** + */ + _lineLength = Biltong.lineLength = function(p1, p2) { + return _pointHelper(p1, p2, function(_p1, _p2) { + return Math.sqrt(Math.pow(_p2[1] - _p1[1], 2) + Math.pow(_p2[0] - _p1[0], 2)); + }); + }, + /** * @name Biltong.quadrant * @function * @desc Calculates the quadrant in which the angle between the two points lies. * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties. * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties. * @return {Integer} The quadrant - 1 for upper right, 2 for lower right, 3 for lower left, 4 for upper left. - */_quadrant=Biltong.quadrant=function(p1,p2){return _pointHelper(p1,p2,function(_p1,_p2){if(_p2[0]>_p1[0]){return _p2[1]>_p1[1]?2:1;}else if(_p2[0]==_p1[0]){return _p2[1]>_p1[1]?2:1;}else{return _p2[1]>_p1[1]?3:4;}});},/** + */ + _quadrant = Biltong.quadrant = function(p1, p2) { + return _pointHelper(p1, p2, function(_p1, _p2) { + if (_p2[0] > _p1[0]) { + return (_p2[1] > _p1[1]) ? 2 : 1; + } + else if (_p2[0] == _p1[0]) { + return _p2[1] > _p1[1] ? 2 : 1; + } + else { + return (_p2[1] > _p1[1]) ? 3 : 4; + } + }); + }, + /** * @name Biltong.theta * @function * @desc Calculates the angle between the two points. * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties. * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties. * @return {Float} The angle between the two points. - */_theta=Biltong.theta=function(p1,p2){return _pointHelper(p1,p2,function(_p1,_p2){var m=_gradient(_p1,_p2),t=Math.atan(m),s=_quadrant(_p1,_p2);if(s==4||s==3)t+=Math.PI;if(t<0)t+=2*Math.PI;return t;});},/** + */ + _theta = Biltong.theta = function(p1, p2) { + return _pointHelper(p1, p2, function(_p1, _p2) { + var m = _gradient(_p1, _p2), + t = Math.atan(m), + s = _quadrant(_p1, _p2); + if ((s == 4 || s== 3)) t += Math.PI; + if (t < 0) t += (2 * Math.PI); + + return t; + }); + }, + /** * @name Biltong.intersects * @function * @desc Calculates whether or not the two rectangles intersect. * @param {Rectangle} r1 First rectangle, as a js object in the form `{x:.., y:.., w:.., h:..}` * @param {Rectangle} r2 Second rectangle, as a js object in the form `{x:.., y:.., w:.., h:..}` * @return {Boolean} True if the rectangles intersect, false otherwise. - */_intersects=Biltong.intersects=function(r1,r2){var x1=r1.x,x2=r1.x+r1.w,y1=r1.y,y2=r1.y+r1.h,a1=r2.x,a2=r2.x+r2.w,b1=r2.y,b2=r2.y+r2.h;return x1<=a1&&a1<=x2&&y1<=b1&&b1<=y2||x1<=a2&&a2<=x2&&y1<=b1&&b1<=y2||x1<=a1&&a1<=x2&&y1<=b2&&b2<=y2||x1<=a2&&a1<=x2&&y1<=b2&&b2<=y2||a1<=x1&&x1<=a2&&b1<=y1&&y1<=b2||a1<=x2&&x2<=a2&&b1<=y1&&y1<=b2||a1<=x1&&x1<=a2&&b1<=y2&&y2<=b2||a1<=x2&&x1<=a2&&b1<=y2&&y2<=b2;},/** + */ + _intersects = Biltong.intersects = function(r1, r2) { + var x1 = r1.x, x2 = r1.x + r1.w, y1 = r1.y, y2 = r1.y + r1.h, + a1 = r2.x, a2 = r2.x + r2.w, b1 = r2.y, b2 = r2.y + r2.h; + + return ( (x1 <= a1 && a1 <= x2) && (y1 <= b1 && b1 <= y2) ) || + ( (x1 <= a2 && a2 <= x2) && (y1 <= b1 && b1 <= y2) ) || + ( (x1 <= a1 && a1 <= x2) && (y1 <= b2 && b2 <= y2) ) || + ( (x1 <= a2 && a1 <= x2) && (y1 <= b2 && b2 <= y2) ) || + ( (a1 <= x1 && x1 <= a2) && (b1 <= y1 && y1 <= b2) ) || + ( (a1 <= x2 && x2 <= a2) && (b1 <= y1 && y1 <= b2) ) || + ( (a1 <= x1 && x1 <= a2) && (b1 <= y2 && y2 <= b2) ) || + ( (a1 <= x2 && x1 <= a2) && (b1 <= y2 && y2 <= b2) ); + }, + /** * @name Biltong.encloses * @function * @desc Calculates whether or not r2 is completely enclosed by r1. @@ -207,21 +751,55 @@ for(var i=0;i<3;i++){if(t[i]<0||t[i]>1.0){t[i]=-1;}}return t;}var jsBezier=this. * @param {Rectangle} r2 Second rectangle, as a js object in the form `{x:.., y:.., w:.., h:..}` * @param {Boolean} [allowSharedEdges=false] If true, the concept of enclosure allows for one or more edges to be shared by the two rectangles. * @return {Boolean} True if r1 encloses r2, false otherwise. - */_encloses=Biltong.encloses=function(r1,r2,allowSharedEdges){var x1=r1.x,x2=r1.x+r1.w,y1=r1.y,y2=r1.y+r1.h,a1=r2.x,a2=r2.x+r2.w,b1=r2.y,b2=r2.y+r2.h,c=function c(v1,v2,v3,v4){return allowSharedEdges?v1<=v2&&v3>=v4:v1v4;};return c(x1,a1,x2,a2)&&c(y1,b1,y2,b2);},_segmentMultipliers=[null,[1,-1],[1,1],[-1,1],[-1,-1]],_inverseSegmentMultipliers=[null,[-1,-1],[-1,1],[1,1],[1,-1]],/** + */ + _encloses = Biltong.encloses = function(r1, r2, allowSharedEdges) { + var x1 = r1.x, x2 = r1.x + r1.w, y1 = r1.y, y2 = r1.y + r1.h, + a1 = r2.x, a2 = r2.x + r2.w, b1 = r2.y, b2 = r2.y + r2.h, + c = function(v1, v2, v3, v4) { return allowSharedEdges ? v1 <= v2 && v3>= v4 : v1 < v2 && v3 > v4; }; + + return c(x1,a1,x2,a2) && c(y1,b1,y2,b2); + }, + _segmentMultipliers = [null, [1, -1], [1, 1], [-1, 1], [-1, -1] ], + _inverseSegmentMultipliers = [null, [-1, -1], [-1, 1], [1, 1], [1, -1] ], + /** * @name Biltong.pointOnLine * @function * @desc Calculates a point on the line from `fromPoint` to `toPoint` that is `distance` units along the length of the line. * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties. * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties. * @return {Point} Point on the line, in the form `{ x:..., y:... }`. - */_pointOnLine=Biltong.pointOnLine=function(fromPoint,toPoint,distance){var m=_gradient(fromPoint,toPoint),s=_quadrant(fromPoint,toPoint),segmentMultiplier=distance>0?_segmentMultipliers[s]:_inverseSegmentMultipliers[s],theta=Math.atan(m),y=Math.abs(distance*Math.sin(theta))*segmentMultiplier[1],x=Math.abs(distance*Math.cos(theta))*segmentMultiplier[0];return{x:fromPoint.x+x,y:fromPoint.y+y};},/** + */ + _pointOnLine = Biltong.pointOnLine = function(fromPoint, toPoint, distance) { + var m = _gradient(fromPoint, toPoint), + s = _quadrant(fromPoint, toPoint), + segmentMultiplier = distance > 0 ? _segmentMultipliers[s] : _inverseSegmentMultipliers[s], + theta = Math.atan(m), + y = Math.abs(distance * Math.sin(theta)) * segmentMultiplier[1], + x = Math.abs(distance * Math.cos(theta)) * segmentMultiplier[0]; + return { x:fromPoint.x + x, y:fromPoint.y + y }; + }, + /** * @name Biltong.perpendicularLineTo * @function * @desc Calculates a line of length `length` that is perpendicular to the line from `fromPoint` to `toPoint` and passes through `toPoint`. * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties. * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties. * @return {Line} Perpendicular line, in the form `[ { x:..., y:... }, { x:..., y:... } ]`. - */_perpendicularLineTo=Biltong.perpendicularLineTo=function(fromPoint,toPoint,length){var m=_gradient(fromPoint,toPoint),theta2=Math.atan(-1/m),y=length/2*Math.sin(theta2),x=length/2*Math.cos(theta2);return[{x:toPoint.x+x,y:toPoint.y+y},{x:toPoint.x-x,y:toPoint.y-y}];};}).call(typeof window!=='undefined'?window:this);;(function(){"use strict";/** + */ + _perpendicularLineTo = Biltong.perpendicularLineTo = function(fromPoint, toPoint, length) { + var m = _gradient(fromPoint, toPoint), + theta2 = Math.atan(-1 / m), + y = length / 2 * Math.sin(theta2), + x = length / 2 * Math.cos(theta2); + return [{x:toPoint.x + x, y:toPoint.y + y}, {x:toPoint.x - x, y:toPoint.y - y}]; + }; +}).call(typeof window !== 'undefined' ? window : this); +; +(function () { + + "use strict"; + + /** * Creates a Touch object. * @param view * @param target @@ -233,11 +811,34 @@ for(var i=0;i<3;i++){if(t[i]<0||t[i]>1.0){t[i]=-1;}}return t;}var jsBezier=this. * @param clientY * @returns {Touch} * @private - */function _touch(view,target,pageX,pageY,screenX,screenY,clientX,clientY){return new Touch({target:target,identifier:_uuid(),pageX:pageX,pageY:pageY,screenX:screenX,screenY:screenY,clientX:clientX||screenX,clientY:clientY||screenY});}/** + */ + function _touch(view, target, pageX, pageY, screenX, screenY, clientX, clientY) { + + return new Touch({ + target:target, + identifier:_uuid(), + pageX: pageX, + pageY: pageY, + screenX: screenX, + screenY: screenY, + clientX: clientX || screenX, + clientY: clientY || screenY + }); + } + + /** * Create a synthetic touch list from the given list of Touch objects. * @returns {Array} * @private - */function _touchList(){var list=[];Array.prototype.push.apply(list,arguments);list.item=function(index){return this[index];};return list;}/** + */ + function _touchList() { + var list = []; + Array.prototype.push.apply(list, arguments); + list.item = function(index) { return this[index]; }; + return list; + } + + /** * Create a Touch object and then insert it into a synthetic touch list, returning the list.s * @param view * @param target @@ -249,52 +850,400 @@ for(var i=0;i<3;i++){if(t[i]<0||t[i]>1.0){t[i]=-1;}}return t;}var jsBezier=this. * @param clientY * @returns {Array} * @private - */function _touchAndList(view,target,pageX,pageY,screenX,screenY,clientX,clientY){return _touchList(_touch.apply(null,arguments));}var root=this,matchesSelector=function matchesSelector(el,selector,ctx){ctx=ctx||el.parentNode;var possibles=ctx.querySelectorAll(selector);for(var i=0;i-1&&iev<9,_genLoc=function _genLoc(e,prefix){if(e==null)return[0,0];var ts=_touches(e),t=_getTouch(ts,0);return[t[prefix+"X"],t[prefix+"Y"]];},_pageLocation=function _pageLocation(e){if(e==null)return[0,0];if(isIELT9){return[e.clientX+document.documentElement.scrollLeft,e.clientY+document.documentElement.scrollTop];}else{return _genLoc(e,"page");}},_screenLocation=function _screenLocation(e){return _genLoc(e,"screen");},_clientLocation=function _clientLocation(e){return _genLoc(e,"client");},_getTouch=function _getTouch(touches,idx){return touches.item?touches.item(idx):touches[idx];},_touches=function _touches(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e];},_touchCount=function _touchCount(e){return _touches(e).length;},//http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html -_bind=function _bind(obj,type,fn,originalFn){_store(obj,type,fn);originalFn.__tauid=fn.__tauid;if(obj.addEventListener)obj.addEventListener(type,fn,false);else if(obj.attachEvent){var key=type+fn.__tauid;obj["e"+key]=fn;// TODO look at replacing with .call(..) -obj[key]=function(){obj["e"+key]&&obj["e"+key](window.event);};obj.attachEvent("on"+type,obj[key]);}},_unbind2=function _unbind(obj,type,fn){if(fn==null)return;_each(obj,function(){var _el=_gel(this);_unstore(_el,type,fn);// it has been bound if there is a tauid. otherwise it was not bound and we can ignore it. -if(fn.__tauid!=null){if(_el.removeEventListener){_el.removeEventListener(type,fn,false);if(isTouchDevice&&touchMap[type])_el.removeEventListener(touchMap[type],fn,false);}else if(this.detachEvent){var key=type+fn.__tauid;_el[key]&&_el.detachEvent("on"+type,_el[key]);_el[key]=null;_el["e"+key]=null;}}// if a touch event was also registered, deregister now. -if(fn.__taTouchProxy){_unbind2(obj,fn.__taTouchProxy[1],fn.__taTouchProxy[0]);}});},_each=function _each(obj,fn){if(obj==null)return;// if a list (or list-like), use it. if a string, get a list -// by running the string through querySelectorAll. else, assume -// it's an Element. -// obj.top is "unknown" in IE8. -obj=typeof Window!=="undefined"&&typeof obj.top!=="unknown"&&obj==obj.top?[obj]:typeof obj!=="string"&&obj.tagName==null&&obj.length!=null?obj:typeof obj==="string"?document.querySelectorAll(obj):[obj];for(var i=0;i -1 && iev < 9, + _genLoc = function (e, prefix) { + if (e == null) return [ 0, 0 ]; + var ts = _touches(e), t = _getTouch(ts, 0); + return [t[prefix + "X"], t[prefix + "Y"]]; + }, + _pageLocation = function (e) { + if (e == null) return [ 0, 0 ]; + if (isIELT9) { + return [ e.clientX + document.documentElement.scrollLeft, e.clientY + document.documentElement.scrollTop ]; + } + else { + return _genLoc(e, "page"); + } + }, + _screenLocation = function (e) { + return _genLoc(e, "screen"); + }, + _clientLocation = function (e) { + return _genLoc(e, "client"); + }, + _getTouch = function (touches, idx) { + return touches.item ? touches.item(idx) : touches[idx]; + }, + _touches = function (e) { + return e.touches && e.touches.length > 0 ? e.touches : + e.changedTouches && e.changedTouches.length > 0 ? e.changedTouches : + e.targetTouches && e.targetTouches.length > 0 ? e.targetTouches : + [ e ]; + }, + _touchCount = function (e) { + return _touches(e).length; + }, + //http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html + _bind = function (obj, type, fn, originalFn) { + _store(obj, type, fn); + originalFn.__tauid = fn.__tauid; + if (obj.addEventListener) + obj.addEventListener(type, fn, false); + else if (obj.attachEvent) { + var key = type + fn.__tauid; + obj["e" + key] = fn; + // TODO look at replacing with .call(..) + obj[key] = function () { + obj["e" + key] && obj["e" + key](window.event); + }; + obj.attachEvent("on" + type, obj[key]); + } + }, + _unbind = function (obj, type, fn) { + if (fn == null) return; + _each(obj, function () { + var _el = _gel(this); + _unstore(_el, type, fn); + // it has been bound if there is a tauid. otherwise it was not bound and we can ignore it. + if (fn.__tauid != null) { + if (_el.removeEventListener) { + _el.removeEventListener(type, fn, false); + if (isTouchDevice && touchMap[type]) _el.removeEventListener(touchMap[type], fn, false); + } + else if (this.detachEvent) { + var key = type + fn.__tauid; + _el[key] && _el.detachEvent("on" + type, _el[key]); + _el[key] = null; + _el["e" + key] = null; + } + } + + // if a touch event was also registered, deregister now. + if (fn.__taTouchProxy) { + _unbind(obj, fn.__taTouchProxy[1], fn.__taTouchProxy[0]); + } + }); + }, + _each = function (obj, fn) { + if (obj == null) return; + // if a list (or list-like), use it. if a string, get a list + // by running the string through querySelectorAll. else, assume + // it's an Element. + // obj.top is "unknown" in IE8. + obj = (typeof Window !== "undefined" && (typeof obj.top !== "unknown" && obj == obj.top)) ? [ obj ] : + (typeof obj !== "string") && (obj.tagName == null && obj.length != null) ? obj : + typeof obj === "string" ? document.querySelectorAll(obj) + : [ obj ]; + + for (var i = 0; i < obj.length; i++) + fn.apply(obj[i]); + }, + _uuid = function () { + return ('xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { + var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); + return v.toString(16); + })); + }; + + /** * Mottle offers support for abstracting out the differences * between touch and mouse devices, plus "smart click" functionality * (don't fire click if the mouse has moved between mousedown and mouseup), @@ -306,13 +1255,56 @@ obj=typeof Window!=="undefined"&&typeof obj.top!=="unknown"&&obj==obj.top?[obj]: * @param {Number} [params.dblClickThreshold=450] Threshold, in milliseconds beyond which two successive tap events are not considered to be a click. * @param {Boolean} [params.smartClicks=false] If true, won't fire click events if the mouse has moved between mousedown and mouseup. Note that this functionality * requires that Mottle consume the mousedown event, and so may not be viable in all use cases. - */root.Mottle=function(params){params=params||{};var clickThreshold=params.clickThreshold||250,dblClickThreshold=params.dblClickThreshold||450,mouseEnterExitHandler=new MouseEnterExitHandler(),tapHandler=new TapHandler(clickThreshold,dblClickThreshold),_smartClicks=params.smartClicks,_doBind=function _doBind(obj,evt,fn,children){if(fn==null)return;_each(obj,function(){var _el=_gel(this);if(_smartClicks&&evt==="click")SmartClickHandler(_el,evt,fn,children);else if(evt==="tap"||evt==="dbltap"||evt==="contextmenu"){tapHandler(_el,evt,fn,children);}else if(evt==="mouseenter"||evt=="mouseexit")mouseEnterExitHandler(_el,evt,fn,children);else DefaultHandler(_el,evt,fn,children);});};/** + */ + root.Mottle = function (params) { + params = params || {}; + var clickThreshold = params.clickThreshold || 250, + dblClickThreshold = params.dblClickThreshold || 450, + mouseEnterExitHandler = new MouseEnterExitHandler(), + tapHandler = new TapHandler(clickThreshold, dblClickThreshold), + _smartClicks = params.smartClicks, + _doBind = function (obj, evt, fn, children) { + if (fn == null) return; + _each(obj, function () { + var _el = _gel(this); + if (_smartClicks && evt === "click") + SmartClickHandler(_el, evt, fn, children); + else if (evt === "tap" || evt === "dbltap" || evt === "contextmenu") { + tapHandler(_el, evt, fn, children); + } + else if (evt === "mouseenter" || evt == "mouseexit") + mouseEnterExitHandler(_el, evt, fn, children); + else + DefaultHandler(_el, evt, fn, children); + }); + }; + + /** * Removes an element from the DOM, and deregisters all event handlers for it. You should use this * to ensure you don't leak memory. * @method remove * @param {String|Element} el Element, or id of the element, to remove. * @return {Mottle} The current Mottle instance; you can chain this method. - */this.remove=function(el){_each(el,function(){var _el=_gel(this);if(_el.__ta){for(var evt in _el.__ta){if(_el.__ta.hasOwnProperty(evt)){for(var h in _el.__ta[evt]){if(_el.__ta[evt].hasOwnProperty(h))_unbind2(_el,evt,_el.__ta[evt][h]);}}}}_el.parentNode&&_el.parentNode.removeChild(_el);});return this;};/** + */ + this.remove = function (el) { + _each(el, function () { + var _el = _gel(this); + if (_el.__ta) { + for (var evt in _el.__ta) { + if (_el.__ta.hasOwnProperty(evt)) { + for (var h in _el.__ta[evt]) { + if (_el.__ta[evt].hasOwnProperty(h)) + _unbind(_el, evt, _el.__ta[evt][h]); + } + } + } + } + _el.parentNode && _el.parentNode.removeChild(_el); + }); + return this; + }; + + /** * Register an event handler, optionally as a delegate for some set of descendant elements. Note * that this method takes either 3 or 4 arguments - if you supply 3 arguments it is assumed you have * omitted the `children` parameter, and that the event handler should be bound directly to the given element. @@ -322,7 +1314,18 @@ obj=typeof Window!=="undefined"&&typeof obj.top!=="unknown"&&obj==obj.top?[obj]: * @param {String} event Event ID. * @param {Function} fn Event handler function. * @return {Mottle} The current Mottle instance; you can chain this method. - */this.on=function(el,event,children,fn){var _el=arguments[0],_c=arguments.length==4?arguments[2]:null,_e=arguments[1],_f=arguments[arguments.length-1];_doBind(_el,_e,_f,_c);return this;};/** + */ + this.on = function (el, event, children, fn) { + var _el = arguments[0], + _c = arguments.length == 4 ? arguments[2] : null, + _e = arguments[1], + _f = arguments[arguments.length - 1]; + + _doBind(_el, _e, _f, _c); + return this; + }; + + /** * Cancel delegate event handling for the given function. Note that unlike with 'on' you do not supply * a list of child selectors here: it removes event delegation from all of the child selectors for which the * given function was registered (if any). @@ -331,7 +1334,13 @@ obj=typeof Window!=="undefined"&&typeof obj.top!=="unknown"&&obj==obj.top?[obj]: * @param {String} event Event ID. * @param {Function} fn Event handler function. * @return {Mottle} The current Mottle instance; you can chain this method. - */this.off=function(el,event,fn){_unbind2(el,event,fn);return this;};/** + */ + this.off = function (el, event, fn) { + _unbind(el, event, fn); + return this; + }; + + /** * Triggers some event for a given element. * @method trigger * @param {Element} el Element for which to trigger the event. @@ -340,29 +1349,125 @@ obj=typeof Window!=="undefined"&&typeof obj.top!=="unknown"&&obj==obj.top?[obj]: * to the jsPlumb use case that caused this method to be added. * @param {Object} [payload] Optional object to set as `payload` on the generated event; useful for message passing. * @return {Mottle} The current Mottle instance; you can chain this method. - */this.trigger=function(el,event,originalEvent,payload){// MouseEvent undefined in old IE; that's how we know it's a mouse event. A fine Microsoft paradox. -var originalIsMouse=isMouseDevice&&(typeof MouseEvent==="undefined"||originalEvent==null||originalEvent.constructor===MouseEvent);var eventToBind=isTouchDevice&&!isMouseDevice&&touchMap[event]?touchMap[event]:event,bindingAMouseEvent=!(isTouchDevice&&!isMouseDevice&&touchMap[event]);var pl=_pageLocation(originalEvent),sl=_screenLocation(originalEvent),cl=_clientLocation(originalEvent);_each(el,function(){var _el=_gel(this),evt;originalEvent=originalEvent||{screenX:sl[0],screenY:sl[1],clientX:cl[0],clientY:cl[1]};var _decorate=function _decorate(_evt){if(payload)_evt.payload=payload;};var eventGenerators={"TouchEvent":function TouchEvent(evt){var touchList=_touchAndList(window,_el,0,pl[0],pl[1],sl[0],sl[1],cl[0],cl[1]),init=evt.initTouchEvent||evt.initEvent;init(eventToBind,true,true,window,null,sl[0],sl[1],cl[0],cl[1],false,false,false,false,touchList,touchList,touchList,1,0);},"MouseEvents":function MouseEvents(evt){evt.initMouseEvent(eventToBind,true,true,window,0,sl[0],sl[1],cl[0],cl[1],false,false,false,false,1,_el);}};if(document.createEvent){var ite=!bindingAMouseEvent&&!originalIsMouse&&isTouchDevice&&touchMap[event],evtName=ite?"TouchEvent":"MouseEvents";evt=document.createEvent(evtName);eventGenerators[evtName](evt);_decorate(evt);_el.dispatchEvent(evt);}else if(document.createEventObject){evt=document.createEventObject();evt.eventType=evt.eventName=eventToBind;evt.screenX=sl[0];evt.screenY=sl[1];evt.clientX=cl[0];evt.clientY=cl[1];_decorate(evt);_el.fireEvent('on'+eventToBind,evt);}});return this;};};/** + */ + this.trigger = function (el, event, originalEvent, payload) { + // MouseEvent undefined in old IE; that's how we know it's a mouse event. A fine Microsoft paradox. + var originalIsMouse = isMouseDevice && (typeof MouseEvent === "undefined" || originalEvent == null || originalEvent.constructor === MouseEvent); + + var eventToBind = (isTouchDevice && !isMouseDevice && touchMap[event]) ? touchMap[event] : event, + bindingAMouseEvent = !(isTouchDevice && !isMouseDevice && touchMap[event]); + + var pl = _pageLocation(originalEvent), sl = _screenLocation(originalEvent), cl = _clientLocation(originalEvent); + _each(el, function () { + var _el = _gel(this), evt; + originalEvent = originalEvent || { + screenX: sl[0], + screenY: sl[1], + clientX: cl[0], + clientY: cl[1] + }; + + var _decorate = function (_evt) { + if (payload) _evt.payload = payload; + }; + + var eventGenerators = { + "TouchEvent": function (evt) { + + var touchList = _touchAndList(window, _el, 0, pl[0], pl[1], sl[0], sl[1], cl[0], cl[1]), + init = evt.initTouchEvent || evt.initEvent; + + init(eventToBind, true, true, window, null, sl[0], sl[1], + cl[0], cl[1], false, false, false, false, + touchList, touchList, touchList, 1, 0); + }, + "MouseEvents": function (evt) { + evt.initMouseEvent(eventToBind, true, true, window, 0, + sl[0], sl[1], + cl[0], cl[1], + false, false, false, false, 1, _el); + } + }; + + if (document.createEvent) { + + var ite = !bindingAMouseEvent && !originalIsMouse && (isTouchDevice && touchMap[event]), + evtName = ite ? "TouchEvent" : "MouseEvents"; + + evt = document.createEvent(evtName); + eventGenerators[evtName](evt); + _decorate(evt); + _el.dispatchEvent(evt); + } + else if (document.createEventObject) { + evt = document.createEventObject(); + evt.eventType = evt.eventName = eventToBind; + evt.screenX = sl[0]; + evt.screenY = sl[1]; + evt.clientX = cl[0]; + evt.clientY = cl[1]; + _decorate(evt); + _el.fireEvent('on' + eventToBind, evt); + } + }); + return this; + } + }; + + /** * Static method to assist in 'consuming' an element: uses `stopPropagation` where available, or sets * `e.returnValue=false` where it is not. * @method Mottle.consume * @param {Event} e Event to consume * @param {Boolean} [doNotPreventDefault=false] If true, does not call `preventDefault()` on the event. - */root.Mottle.consume=function(e,doNotPreventDefault){if(e.stopPropagation)e.stopPropagation();else e.returnValue=false;if(!doNotPreventDefault&&e.preventDefault)e.preventDefault();};/** + */ + root.Mottle.consume = function (e, doNotPreventDefault) { + if (e.stopPropagation) + e.stopPropagation(); + else + e.returnValue = false; + + if (!doNotPreventDefault && e.preventDefault) + e.preventDefault(); + }; + + /** * Gets the page location corresponding to the given event. For touch events this means get the page location of the first touch. * @method Mottle.pageLocation * @param {Event} e Event to get page location for. * @return {Number[]} [left, top] for the given event. - */root.Mottle.pageLocation=_pageLocation;/** + */ + root.Mottle.pageLocation = _pageLocation; + + /** * Forces touch events to be turned "on". Useful for testing: even if you don't have a touch device, you can still * trigger a touch event when this is switched on and it will be captured and acted on. * @method setForceTouchEvents * @param {Boolean} value If true, force touch events to be on. - */root.Mottle.setForceTouchEvents=function(value){isTouchDevice=value;};/** + */ + root.Mottle.setForceTouchEvents = function (value) { + isTouchDevice = value; + }; + + /** * Forces mouse events to be turned "on". Useful for testing: even if you don't have a mouse, you can still * trigger a mouse event when this is switched on and it will be captured and acted on. * @method setForceMouseEvents * @param {Boolean} value If true, force mouse events to be on. - */root.Mottle.setForceMouseEvents=function(value){isMouseDevice=value;};root.Mottle.version="0.8.0";if(typeof exports!=="undefined"){exports.Mottle=root.Mottle;}}).call(typeof window==="undefined"?this:window);/** + */ + root.Mottle.setForceMouseEvents = function (value) { + isMouseDevice = value; + }; + + root.Mottle.version = "0.8.0"; + + if (typeof exports !== "undefined") { + exports.Mottle = root.Mottle; + } + +}).call(typeof window === "undefined" ? this : window); + +/** drag/drop functionality for use with jsPlumb but with no knowledge of jsPlumb. supports multiple scopes (separated by whitespace), dragging multiple elements, constrain to parent, drop filters, drag start filters, custom @@ -388,11 +1493,83 @@ var originalIsMouse=isMouseDevice&&(typeof MouseEvent==="undefined"||originalEve http://mrsharpoblunto.github.io/foswig.js/ copyright 2016 jsPlumb - */;(function(){"use strict";var root=this;var _suggest=function _suggest(list,item,head){if(list.indexOf(item)===-1){head?list.unshift(item):list.push(item);return true;}return false;};var _vanquish=function _vanquish(list,item){var idx=list.indexOf(item);if(idx!==-1)list.splice(idx,1);};var _difference=function _difference(l1,l2){var d=[];for(var i=0;i .someClass", that is .someClass elements that are direct children of `parentElement`, we have to * jump through a small hoop here: when a delegate draggable is registered, we write a `katavorio-draggable` attribute @@ -404,127 +1581,1229 @@ top=box.top+scrollTop-clientTop,left=box.left+scrollLeft-clientLeft;return{top:M * @param parentElement * @param childElement * @returns {*} - */var findMatchingSelector=function findMatchingSelector(availableSelectors,parentElement,childElement){var el=null;var draggableId=parentElement.getAttribute("katavorio-draggable"),prefix=draggableId!=null?"[katavorio-draggable='"+draggableId+"'] ":"";for(var i=0;i-1&&iev<9,isIE9=iev===9,_pl=function _pl(e){if(isIELT9){return[e.clientX+document.documentElement.scrollLeft,e.clientY+document.documentElement.scrollTop];}else{var ts=_touches(e),t=_getTouch(ts,0);// for IE9 pageX might be null if the event was synthesized. We try for pageX/pageY first, -// falling back to clientX/clientY if necessary. In every other browser we want to use pageX/pageY. -return isIE9?[t.pageX||t.clientX,t.pageY||t.clientY]:[t.pageX,t.pageY];}},_getTouch=function _getTouch(touches,idx){return touches.item?touches.item(idx):touches[idx];},_touches=function _touches(e){return e.touches&&e.touches.length>0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e];},_classes={delegatedDraggable:"katavorio-delegated-draggable",// elements that are the delegated drag handler for a bunch of other elements -draggable:"katavorio-draggable",// draggable elements -droppable:"katavorio-droppable",// droppable elements -drag:"katavorio-drag",// elements currently being dragged -selected:"katavorio-drag-selected",// elements in current drag selection -active:"katavorio-drag-active",// droppables that are targets of a currently dragged element -hover:"katavorio-drag-hover",// droppables over which a matching drag element is hovering -noSelect:"katavorio-drag-no-select",// added to the body to provide a hook to suppress text selection -ghostProxy:"katavorio-ghost-proxy",// added to a ghost proxy element in use when a drag has exited the bounds of its parent. -clonedDrag:"katavorio-clone-drag"// added to a node that is a clone of an element created at the start of a drag -},_defaultScope="katavorio-drag-scope",_events=["stop","start","drag","drop","over","out","beforeStart"],_devNull=function _devNull(){},_true=function _true(){return true;},_foreach=function _foreach(l,fn,from){for(var i=0;i -1 && iev < 9, + isIE9 = iev === 9, + _pl = function(e) { + if (isIELT9) { + return [ e.clientX + document.documentElement.scrollLeft, e.clientY + document.documentElement.scrollTop ]; + } + else { + var ts = _touches(e), t = _getTouch(ts, 0); + // for IE9 pageX might be null if the event was synthesized. We try for pageX/pageY first, + // falling back to clientX/clientY if necessary. In every other browser we want to use pageX/pageY. + return isIE9 ? [t.pageX || t.clientX, t.pageY || t.clientY] : [t.pageX, t.pageY]; + } + }, + _getTouch = function(touches, idx) { return touches.item ? touches.item(idx) : touches[idx]; }, + _touches = function(e) { + return e.touches && e.touches.length > 0 ? e.touches : + e.changedTouches && e.changedTouches.length > 0 ? e.changedTouches : + e.targetTouches && e.targetTouches.length > 0 ? e.targetTouches : + [ e ]; + }, + _classes = { + delegatedDraggable:"katavorio-delegated-draggable", // elements that are the delegated drag handler for a bunch of other elements + draggable:"katavorio-draggable", // draggable elements + droppable:"katavorio-droppable", // droppable elements + drag : "katavorio-drag", // elements currently being dragged + selected:"katavorio-drag-selected", // elements in current drag selection + active : "katavorio-drag-active", // droppables that are targets of a currently dragged element + hover : "katavorio-drag-hover", // droppables over which a matching drag element is hovering + noSelect : "katavorio-drag-no-select", // added to the body to provide a hook to suppress text selection + ghostProxy:"katavorio-ghost-proxy", // added to a ghost proxy element in use when a drag has exited the bounds of its parent. + clonedDrag:"katavorio-clone-drag" // added to a node that is a clone of an element created at the start of a drag + }, + _defaultScope = "katavorio-drag-scope", + _events = [ "stop", "start", "drag", "drop", "over", "out", "beforeStart" ], + _devNull = function() {}, + _true = function() { return true; }, + _foreach = function(l, fn, from) { + for (var i = 0; i < l.length; i++) { + if (l[i] != from) + fn(l[i]); + } + }, + _setDroppablesActive = function(dd, val, andHover, drag) { + _foreach(dd, function(e) { + e.setActive(val); + if (val) e.updatePosition(); + if (andHover) e.setHover(drag, val); + }); + }, + _each = function(obj, fn) { + if (obj == null) return; + obj = !_isString(obj) && (obj.tagName == null && obj.length != null) ? obj : [ obj ]; + for (var i = 0; i < obj.length; i++) + fn.apply(obj[i], [ obj[i] ]); + }, + _consume = function(e) { + if (e.stopPropagation) { + e.stopPropagation(); + e.preventDefault(); + } + else { + e.returnValue = false; + } + }, + _defaultInputFilterSelector = "input,textarea,select,button,option", + // + // filters out events on all input elements, like textarea, checkbox, input, select. + _inputFilter = function(e, el, _katavorio) { + var t = e.srcElement || e.target; + return !matchesSelector(t, _katavorio.getInputFilterSelector(), el); + }; + + var Super = function(el, params, css, scope) { + this.params = params || {}; + this.el = el; + this.params.addClass(this.el, this._class); + this.uuid = _uuid(); + var enabled = true; + this.setEnabled = function(e) { enabled = e; }; + this.isEnabled = function() { return enabled; }; + this.toggleEnabled = function() { enabled = !enabled; }; + this.setScope = function(scopes) { + this.scopes = scopes ? scopes.split(/\s+/) : [ scope ]; + }; + this.addScope = function(scopes) { + var m = {}; + _each(this.scopes, function(s) { m[s] = true;}); + _each(scopes ? scopes.split(/\s+/) : [], function(s) { m[s] = true;}); + this.scopes = []; + for (var i in m) this.scopes.push(i); + }; + this.removeScope = function(scopes) { + var m = {}; + _each(this.scopes, function(s) { m[s] = true;}); + _each(scopes ? scopes.split(/\s+/) : [], function(s) { delete m[s];}); + this.scopes = []; + for (var i in m) this.scopes.push(i); + }; + this.toggleScope = function(scopes) { + var m = {}; + _each(this.scopes, function(s) { m[s] = true;}); + _each(scopes ? scopes.split(/\s+/) : [], function(s) { + if (m[s]) delete m[s]; + else m[s] = true; + }); + this.scopes = []; + for (var i in m) this.scopes.push(i); + }; + this.setScope(params.scope); + this.k = params.katavorio; + return params.katavorio; + }; + + var TRUE = function() { return true; }; + var FALSE = function() { return false; }; + + var Drag = function(el, params, css, scope) { + this._class = css.draggable; + var k = Super.apply(this, arguments); + this.rightButtonCanDrag = this.params.rightButtonCanDrag; + var downAt = [0,0], posAtDown = null, pagePosAtDown = null, pageDelta = [0,0], moving = false, initialScroll = [0,0], + consumeStartEvent = this.params.consumeStartEvent !== false, + dragEl = this.el, + clone = this.params.clone, + scroll = this.params.scroll, + _multipleDrop = params.multipleDrop !== false, + isConstrained = false, + //useGhostProxy = params.ghostProxy === true ? TRUE : params.ghostProxy && typeof params.ghostProxy === "function" ? params.ghostProxy : FALSE, + useGhostProxy, + ghostProxy,// = function(el) { return el.cloneNode(true); }, + elementToDrag = null, + availableSelectors = [], + activeSelectorParams = null, // which, if any, selector config is currently active. + ghostProxyParent = params.ghostProxyParent, + currentParentPosition, + ghostParentPosition, + ghostDx, + ghostDy; + + if (params.ghostProxy === true) { + useGhostProxy = TRUE; + } else { + if (params.ghostProxy && typeof params.ghostProxy === "function") { + useGhostProxy = params.ghostProxy; + } else { + useGhostProxy = function(container, dragEl) { + if (activeSelectorParams && activeSelectorParams.useGhostProxy) { + return activeSelectorParams.useGhostProxy(container, dragEl); + } else { + return false; + } + } + } + } + + if (params.makeGhostProxy) { + ghostProxy = params.makeGhostProxy; + } else { + + ghostProxy = function(el) { + if (activeSelectorParams && activeSelectorParams.makeGhostProxy) { + return activeSelectorParams.makeGhostProxy(el); + } else { + return el.cloneNode(true); + } + }; + + } + + // if an initial selector was provided, push the entire set of params as a selector config. + if (params.selector) { + var draggableId = el.getAttribute("katavorio-draggable"); + if (draggableId == null) { + draggableId = "" + new Date().getTime(); + el.setAttribute("katavorio-draggable", draggableId); + } + + availableSelectors.push(params); + } + + var snapThreshold = params.snapThreshold, + _snap = function(pos, gridX, gridY, thresholdX, thresholdY) { + var _dx = Math.floor(pos[0] / gridX), + _dxl = gridX * _dx, + _dxt = _dxl + gridX, + _x = Math.abs(pos[0] - _dxl) <= thresholdX ? _dxl : Math.abs(_dxt - pos[0]) <= thresholdX ? _dxt : pos[0]; + + var _dy = Math.floor(pos[1] / gridY), + _dyl = gridY * _dy, + _dyt = _dyl + gridY, + _y = Math.abs(pos[1] - _dyl) <= thresholdY ? _dyl : Math.abs(_dyt - pos[1]) <= thresholdY ? _dyt : pos[1]; + + return [ _x, _y]; + }; + + this.posses = []; + this.posseRoles = {}; + + this.toGrid = function(pos) { + if (this.params.grid == null) { + return pos; + } + else { + var tx = this.params.grid ? this.params.grid[0] / 2 : snapThreshold ? snapThreshold : DEFAULT_GRID_X / 2, + ty = this.params.grid ? this.params.grid[1] / 2 : snapThreshold ? snapThreshold : DEFAULT_GRID_Y / 2; + + return _snap(pos, this.params.grid[0], this.params.grid[1], tx, ty); + } + }; + + this.snap = function(x, y) { + if (dragEl == null) return; + x = x || (this.params.grid ? this.params.grid[0] : DEFAULT_GRID_X); + y = y || (this.params.grid ? this.params.grid[1] : DEFAULT_GRID_Y); + var p = this.params.getPosition(dragEl), + tx = this.params.grid ? this.params.grid[0] / 2 : snapThreshold, + ty = this.params.grid ? this.params.grid[1] / 2 : snapThreshold, + snapped = _snap(p, x, y, tx, ty); + + this.params.setPosition(dragEl, snapped); + return snapped; + }; + + this.setUseGhostProxy = function(val) { + useGhostProxy = val ? TRUE : FALSE; + }; + + var constrain; + var negativeFilter = function(pos) { + return (params.allowNegative === false) ? [ Math.max (0, pos[0]), Math.max(0, pos[1]) ] : pos; + }; + + var _setConstrain = function(value) { + constrain = typeof value === "function" ? value : value ? function(pos, dragEl, _constrainRect, _size) { + return negativeFilter([ + Math.max(0, Math.min(_constrainRect.w - _size[0], pos[0])), + Math.max(0, Math.min(_constrainRect.h - _size[1], pos[1])) + ]); + }.bind(this) : function(pos) { return negativeFilter(pos); }; + }.bind(this); + + _setConstrain(typeof this.params.constrain === "function" ? this.params.constrain : (this.params.constrain || this.params.containment)); + + + /** * Sets whether or not the Drag is constrained. A value of 'true' means constrain to parent bounds; a function * will be executed and returns true if the position is allowed. * @param value - */this.setConstrain=function(value){_setConstrain(value);};/* private */var _doConstrain=function _doConstrain(pos,dragEl,_constrainRect,_size){if(activeSelectorParams!=null&&activeSelectorParams.constrain&&typeof activeSelectorParams.constrain==="function"){return activeSelectorParams.constrain(pos,dragEl,_constrainRect,_size);}else{return constrain(pos,dragEl,_constrainRect,_size);}};var revertFunction;/** + */ + this.setConstrain = function(value) { + _setConstrain(value); + }; + + /* private */ var _doConstrain = function(pos, dragEl, _constrainRect, _size) { + if (activeSelectorParams != null && activeSelectorParams.constrain && typeof activeSelectorParams.constrain === "function") { + return activeSelectorParams.constrain(pos, dragEl, _constrainRect, _size); + } else { + return constrain(pos, dragEl, _constrainRect, _size); + } + }; + + var revertFunction; + /** * Sets a function to call on drag stop, which, if it returns true, indicates that the given element should * revert to its position before the previous drag. * @param fn - */this.setRevert=function(fn){revertFunction=fn;};if(this.params.revert){revertFunction=this.params.revert;}var _assignId=function _assignId(obj){if(typeof obj==="function"){obj._katavorioId=_uuid();return obj._katavorioId;}else{return obj;}},// a map of { spec -> [ fn, exclusion ] } entries. -_filters={},_testFilter=function _testFilter(e){for(var key in _filters){var f=_filters[key];var rv=f[0](e);if(f[1])rv=!rv;if(!rv)return false;}return true;},_setFilter=this.setFilter=function(f,_exclude){if(f){var key=_assignId(f);_filters[key]=[function(e){var t=e.srcElement||e.target,m;if(_isString(f)){m=matchesSelector(t,f,el);}else if(typeof f==="function"){m=f(e,el);}return m;},_exclude!==false];}},_addFilter=this.addFilter=_setFilter,_removeFilter=this.removeFilter=function(f){var key=typeof f==="function"?f._katavorioId:f;delete _filters[key];};this.clearAllFilters=function(){_filters={};};this.canDrag=this.params.canDrag||_true;var constrainRect,matchingDroppables=[],intersectingDroppables=[];this.addSelector=function(params){if(params.selector){availableSelectors.push(params);}};this.downListener=function(e){if(e.defaultPrevented){return;}var isNotRightClick=this.rightButtonCanDrag||e.which!==3&&e.button!==2;if(isNotRightClick&&this.isEnabled()&&this.canDrag()){var _f=_testFilter(e)&&_inputFilter(e,this.el,this.k);if(_f){activeSelectorParams=null;elementToDrag=null;// if (selector) { -// elementToDrag = findDelegateElement(this.el, e.target || e.srcElement, selector); -// if(elementToDrag == null) { -// return; -// } -// } -if(availableSelectors.length>0){var match=findMatchingSelector(availableSelectors,this.el,e.target||e.srcElement);if(match!=null){activeSelectorParams=match[0];elementToDrag=match[1];}// elementToDrag = findDelegateElement(this.el, e.target || e.srcElement, selector); -if(elementToDrag==null){return;}}else{elementToDrag=this.el;}if(clone){dragEl=elementToDrag.cloneNode(true);this.params.addClass(dragEl,_classes.clonedDrag);dragEl.setAttribute("id",null);dragEl.style.position="absolute";if(this.params.parent!=null){var p=this.params.getPosition(this.el);dragEl.style.left=p[0]+"px";dragEl.style.top=p[1]+"px";this.params.parent.appendChild(dragEl);}else{// the clone node is added to the body; getOffsetRect gives us a value -// relative to the body. -var b=getOffsetRect(elementToDrag);dragEl.style.left=b.left+"px";dragEl.style.top=b.top+"px";document.body.appendChild(dragEl);}}else{dragEl=elementToDrag;}consumeStartEvent&&_consume(e);downAt=_pl(e);if(dragEl&&dragEl.parentNode){initialScroll=[dragEl.parentNode.scrollLeft,dragEl.parentNode.scrollTop];}// -this.params.bind(document,"mousemove",this.moveListener);this.params.bind(document,"mouseup",this.upListener);k.markSelection(this);k.markPosses(this);this.params.addClass(document.body,css.noSelect);_dispatch("beforeStart",{el:this.el,pos:posAtDown,e:e,drag:this});}else if(this.params.consumeFilteredEvents){_consume(e);}}}.bind(this);this.moveListener=function(e){if(downAt){if(!moving){var _continue=_dispatch("start",{el:this.el,pos:posAtDown,e:e,drag:this});if(_continue!==false){if(!downAt){return;}this.mark(true);moving=true;}else{this.abort();}}// it is possible that the start event caused the drag to be aborted. So we check -// again that we are currently dragging. -if(downAt){intersectingDroppables.length=0;var pos=_pl(e),dx=pos[0]-downAt[0],dy=pos[1]-downAt[1],z=this.params.ignoreZoom?1:k.getZoom();if(dragEl&&dragEl.parentNode){dx+=dragEl.parentNode.scrollLeft-initialScroll[0];dy+=dragEl.parentNode.scrollTop-initialScroll[1];}dx/=z;dy/=z;this.moveBy(dx,dy,e);k.updateSelection(dx,dy,this);k.updatePosses(dx,dy,this);}}}.bind(this);this.upListener=function(e){if(downAt){downAt=null;this.params.unbind(document,"mousemove",this.moveListener);this.params.unbind(document,"mouseup",this.upListener);this.params.removeClass(document.body,css.noSelect);this.unmark(e);k.unmarkSelection(this,e);k.unmarkPosses(this,e);this.stop(e);k.notifyPosseDragStop(this,e);moving=false;intersectingDroppables.length=0;if(clone){dragEl&&dragEl.parentNode&&dragEl.parentNode.removeChild(dragEl);dragEl=null;}else{if(revertFunction&&revertFunction(dragEl,this.params.getPosition(dragEl))===true){this.params.setPosition(dragEl,posAtDown);_dispatch("revert",dragEl);}}}}.bind(this);this.getFilters=function(){return _filters;};this.abort=function(){if(downAt!=null){this.upListener();}};/** + */ + this.setRevert = function(fn) { + revertFunction = fn; + }; + + if (this.params.revert) { + revertFunction = this.params.revert; + } + + var _assignId = function(obj) { + if (typeof obj === "function") { + obj._katavorioId = _uuid(); + return obj._katavorioId; + } else { + return obj; + } + }, + // a map of { spec -> [ fn, exclusion ] } entries. + _filters = {}, + _testFilter = function(e) { + for (var key in _filters) { + var f = _filters[key]; + var rv = f[0](e); + if (f[1]) rv = !rv; + if (!rv) return false; + } + return true; + }, + _setFilter = this.setFilter = function(f, _exclude) { + if (f) { + var key = _assignId(f); + _filters[key] = [ + function(e) { + var t = e.srcElement || e.target, m; + if (_isString(f)) { + m = matchesSelector(t, f, el); + } + else if (typeof f === "function") { + m = f(e, el); + } + return m; + }, + _exclude !== false + ]; + + } + }, + _addFilter = this.addFilter = _setFilter, + _removeFilter = this.removeFilter = function(f) { + var key = typeof f === "function" ? f._katavorioId : f; + delete _filters[key]; + }; + + this.clearAllFilters = function() { + _filters = {}; + }; + + this.canDrag = this.params.canDrag || _true; + + var constrainRect, + matchingDroppables = [], + intersectingDroppables = []; + + this.addSelector = function(params) { + if (params.selector) { + availableSelectors.push(params); + } + }; + + this.downListener = function(e) { + if (e.defaultPrevented) { return; } + var isNotRightClick = this.rightButtonCanDrag || (e.which !== 3 && e.button !== 2); + if (isNotRightClick && this.isEnabled() && this.canDrag()) { + + var _f = _testFilter(e) && _inputFilter(e, this.el, this.k); + if (_f) { + + activeSelectorParams = null; + elementToDrag = null; + + // if (selector) { + // elementToDrag = findDelegateElement(this.el, e.target || e.srcElement, selector); + // if(elementToDrag == null) { + // return; + // } + // } + if (availableSelectors.length > 0) { + var match = findMatchingSelector(availableSelectors, this.el, e.target || e.srcElement); + if (match != null) { + activeSelectorParams = match[0]; + elementToDrag = match[1]; + } + // elementToDrag = findDelegateElement(this.el, e.target || e.srcElement, selector); + if(elementToDrag == null) { + return; + } + } + else { + elementToDrag = this.el; + } + + if (clone) { + dragEl = elementToDrag.cloneNode(true); + this.params.addClass(dragEl, _classes.clonedDrag); + + dragEl.setAttribute("id", null); + dragEl.style.position = "absolute"; + + if (this.params.parent != null) { + var p = this.params.getPosition(this.el); + dragEl.style.left = p[0] + "px"; + dragEl.style.top = p[1] + "px"; + this.params.parent.appendChild(dragEl); + } else { + // the clone node is added to the body; getOffsetRect gives us a value + // relative to the body. + var b = getOffsetRect(elementToDrag); + dragEl.style.left = b.left + "px"; + dragEl.style.top = b.top + "px"; + + document.body.appendChild(dragEl); + } + + } else { + dragEl = elementToDrag; + } + + consumeStartEvent && _consume(e); + downAt = _pl(e); + if (dragEl && dragEl.parentNode) + { + initialScroll = [dragEl.parentNode.scrollLeft, dragEl.parentNode.scrollTop]; + } + // + this.params.bind(document, "mousemove", this.moveListener); + this.params.bind(document, "mouseup", this.upListener); + k.markSelection(this); + k.markPosses(this); + this.params.addClass(document.body, css.noSelect); + _dispatch("beforeStart", {el:this.el, pos:posAtDown, e:e, drag:this}); + } + else if (this.params.consumeFilteredEvents) { + _consume(e); + } + } + }.bind(this); + + this.moveListener = function(e) { + if (downAt) { + if (!moving) { + var _continue = _dispatch("start", {el:this.el, pos:posAtDown, e:e, drag:this}); + if (_continue !== false) { + if (!downAt) { + return; + } + this.mark(true); + moving = true; + } else { + this.abort(); + } + } + + // it is possible that the start event caused the drag to be aborted. So we check + // again that we are currently dragging. + if (downAt) { + intersectingDroppables.length = 0; + var pos = _pl(e), dx = pos[0] - downAt[0], dy = pos[1] - downAt[1], + z = this.params.ignoreZoom ? 1 : k.getZoom(); + if (dragEl && dragEl.parentNode) + { + dx += dragEl.parentNode.scrollLeft - initialScroll[0]; + dy += dragEl.parentNode.scrollTop - initialScroll[1]; + } + dx /= z; + dy /= z; + this.moveBy(dx, dy, e); + k.updateSelection(dx, dy, this); + k.updatePosses(dx, dy, this); + } + } + }.bind(this); + + this.upListener = function(e) { + if (downAt) { + downAt = null; + this.params.unbind(document, "mousemove", this.moveListener); + this.params.unbind(document, "mouseup", this.upListener); + this.params.removeClass(document.body, css.noSelect); + this.unmark(e); + k.unmarkSelection(this, e); + k.unmarkPosses(this, e); + this.stop(e); + + k.notifyPosseDragStop(this, e); + moving = false; + intersectingDroppables.length = 0; + + if (clone) { + dragEl && dragEl.parentNode && dragEl.parentNode.removeChild(dragEl); + dragEl = null; + } else { + if (revertFunction && revertFunction(dragEl, this.params.getPosition(dragEl)) === true) { + this.params.setPosition(dragEl, posAtDown); + _dispatch("revert", dragEl); + } + } + + } + }.bind(this); + + this.getFilters = function() { return _filters; }; + + this.abort = function() { + if (downAt != null) { + this.upListener(); + } + }; + + /** * Returns the element that was last dragged. This may be some original element from the DOM, or if `clone` is * set, then its actually a copy of some original DOM element. In some client calls to this method, it is the * actual element that was dragged that is desired. In others, it is the original DOM element that the user * wishes to get - in which case, pass true for `retrieveOriginalElement`. * * @returns {*} - */this.getDragElement=function(retrieveOriginalElement){return retrieveOriginalElement?elementToDrag||this.el:dragEl||this.el;};var listeners={"start":[],"drag":[],"stop":[],"over":[],"out":[],"beforeStart":[],"revert":[]};if(params.events.start)listeners.start.push(params.events.start);if(params.events.beforeStart)listeners.beforeStart.push(params.events.beforeStart);if(params.events.stop)listeners.stop.push(params.events.stop);if(params.events.drag)listeners.drag.push(params.events.drag);if(params.events.revert)listeners.revert.push(params.events.revert);this.on=function(evt,fn){if(listeners[evt])listeners[evt].push(fn);};this.off=function(evt,fn){if(listeners[evt]){var l=[];for(var i=0;i0){for(var i=0;i0&&ghostProxyOffsets){params.setPosition(elementToDrag,ghostProxyOffsets);}intersectingDroppables.sort(_rankSort);for(var i=0;i 0) { + for (var i = 0; i < sel.length; i++) { + var p = this.params.getPosition(sel[i].el); + positions.push([ sel[i].el, { left: p[0], top: p[1] }, sel[i] ]); + } + } + else { + positions.push([ dragEl, {left:dPos[0], top:dPos[1]}, this ]); + } + + _dispatch("stop", { + el: dragEl, + pos: ghostProxyOffsets || dPos, + finalPos:dPos, + e: e, + drag: this, + selection:positions + }); + } + }; + + this.mark = function(andNotify) { + posAtDown = this.params.getPosition(dragEl); + pagePosAtDown = this.params.getPosition(dragEl, true); + pageDelta = [pagePosAtDown[0] - posAtDown[0], pagePosAtDown[1] - posAtDown[1]]; + this.size = this.params.getSize(dragEl); + matchingDroppables = k.getMatchingDroppables(this); + _setDroppablesActive(matchingDroppables, true, false, this); + this.params.addClass(dragEl, this.params.dragClass || css.drag); + + var cs; + if (this.params.getConstrainingRectangle) { + cs = this.params.getConstrainingRectangle(dragEl) + } else { + cs = this.params.getSize(dragEl.parentNode); + } + constrainRect = {w: cs[0], h: cs[1]}; + + ghostDx = 0; + ghostDy = 0; + + if (andNotify) { + k.notifySelectionDragStart(this); + } + }; + var ghostProxyOffsets; + this.unmark = function(e, doNotCheckDroppables) { + _setDroppablesActive(matchingDroppables, false, true, this); + + if (isConstrained && useGhostProxy(elementToDrag, dragEl)) { + ghostProxyOffsets = [dragEl.offsetLeft - ghostDx, dragEl.offsetTop - ghostDy]; + dragEl.parentNode.removeChild(dragEl); + dragEl = elementToDrag; + } + else { + ghostProxyOffsets = null; + } + + this.params.removeClass(dragEl, this.params.dragClass || css.drag); + matchingDroppables.length = 0; + isConstrained = false; + if (!doNotCheckDroppables) { + if (intersectingDroppables.length > 0 && ghostProxyOffsets) { + params.setPosition(elementToDrag, ghostProxyOffsets); + } + intersectingDroppables.sort(_rankSort); + for (var i = 0; i < intersectingDroppables.length; i++) { + var retVal = intersectingDroppables[i].drop(this, e); + if (retVal === true) break; + } + } + }; + this.moveBy = function(dx, dy, e) { + intersectingDroppables.length = 0; + + var desiredLoc = this.toGrid([posAtDown[0] + dx, posAtDown[1] + dy]), + cPos = _doConstrain(desiredLoc, dragEl, constrainRect, this.size); + + // if we should use a ghost proxy... + if (useGhostProxy(this.el, dragEl)) { + // and the element has been dragged outside of its parent bounds + if (desiredLoc[0] !== cPos[0] || desiredLoc[1] !== cPos[1]) { + + // ...if ghost proxy not yet created + if (!isConstrained) { + // create it + var gp = ghostProxy(elementToDrag); + params.addClass(gp, _classes.ghostProxy); + + if (ghostProxyParent) { + ghostProxyParent.appendChild(gp); + // find offset between drag el's parent the ghost parent + currentParentPosition = params.getPosition(elementToDrag.parentNode, true); + ghostParentPosition = params.getPosition(params.ghostProxyParent, true); + ghostDx = currentParentPosition[0] - ghostParentPosition[0]; + ghostDy = currentParentPosition[1] - ghostParentPosition[1]; + + } else { + elementToDrag.parentNode.appendChild(gp); + } + + // the ghost proxy is the drag element + dragEl = gp; + // set this flag so we dont recreate the ghost proxy + isConstrained = true; + } + // now the drag position can be the desired position, as the ghost proxy can support it. + cPos = desiredLoc; + } + else { + // if the element is not outside of its parent bounds, and ghost proxy is in place, + if (isConstrained) { + // remove the ghost proxy from the dom + dragEl.parentNode.removeChild(dragEl); + // reset the drag element to the original element + dragEl = elementToDrag; + // clear this flag. + isConstrained = false; + currentParentPosition = null; + ghostParentPosition = null; + ghostDx = 0; + ghostDy = 0; + } + } + } + + var rect = { x:cPos[0], y:cPos[1], w:this.size[0], h:this.size[1]}, + pageRect = { x:rect.x + pageDelta[0], y:rect.y + pageDelta[1], w:rect.w, h:rect.h}, + focusDropElement = null; + + this.params.setPosition(dragEl, [cPos[0] + ghostDx, cPos[1] + ghostDy]); + + for (var i = 0; i < matchingDroppables.length; i++) { + var r2 = { x:matchingDroppables[i].pagePosition[0], y:matchingDroppables[i].pagePosition[1], w:matchingDroppables[i].size[0], h:matchingDroppables[i].size[1]}; + if (this.params.intersects(pageRect, r2) && (_multipleDrop || focusDropElement == null || focusDropElement === matchingDroppables[i].el) && matchingDroppables[i].canDrop(this)) { + if (!focusDropElement) focusDropElement = matchingDroppables[i].el; + intersectingDroppables.push(matchingDroppables[i]); + matchingDroppables[i].setHover(this, true, e); + } + else if (matchingDroppables[i].isHover()) { + matchingDroppables[i].setHover(this, false, e); + } + } + + _dispatch("drag", {el:this.el, pos:cPos, e:e, drag:this}); + + /* test to see if the parent needs to be scrolled (future) if (scroll) { var pnsl = dragEl.parentNode.scrollLeft, pnst = dragEl.parentNode.scrollTop; console.log("scroll!", pnsl, pnst); - }*/};this.destroy=function(){this.params.unbind(this.el,"mousedown",this.downListener);this.params.unbind(document,"mousemove",this.moveListener);this.params.unbind(document,"mouseup",this.upListener);this.downListener=null;this.upListener=null;this.moveListener=null;};// init:register mousedown, and perhaps set a filter -this.params.bind(this.el,"mousedown",this.downListener);// if handle provided, use that. otherwise, try to set a filter. -// note that a `handle` selector always results in filterExclude being set to false, ie. -// the selector defines the handle element(s). -if(this.params.handle)_setFilter(this.params.handle,false);else _setFilter(this.params.filter,this.params.filterExclude);};var Drop=function Drop(el,params,css,scope){this._class=css.droppable;this.params=params||{};this.rank=params.rank||0;this._activeClass=this.params.activeClass||css.active;this._hoverClass=this.params.hoverClass||css.hover;Super.apply(this,arguments);var hover=false;this.allowLoopback=this.params.allowLoopback!==false;this.setActive=function(val){this.params[val?"addClass":"removeClass"](this.el,this._activeClass);};this.updatePosition=function(){this.position=this.params.getPosition(this.el);this.pagePosition=this.params.getPosition(this.el,true);this.size=this.params.getSize(this.el);};this.canDrop=this.params.canDrop||function(drag){return true;};this.isHover=function(){return hover;};this.setHover=function(drag,val,e){// if turning off hover but this was not the drag that caused the hover, ignore. -if(val||this.el._katavorioDragHover==null||this.el._katavorioDragHover===drag.el._katavorio){this.params[val?"addClass":"removeClass"](this.el,this._hoverClass);this.el._katavorioDragHover=val?drag.el._katavorio:null;if(hover!==val){this.params.events[val?"over":"out"]({el:this.el,e:e,drag:drag,drop:this});}hover=val;}};/** + }*/ + }; + this.destroy = function() { + this.params.unbind(this.el, "mousedown", this.downListener); + this.params.unbind(document, "mousemove", this.moveListener); + this.params.unbind(document, "mouseup", this.upListener); + this.downListener = null; + this.upListener = null; + this.moveListener = null; + }; + + // init:register mousedown, and perhaps set a filter + this.params.bind(this.el, "mousedown", this.downListener); + + // if handle provided, use that. otherwise, try to set a filter. + // note that a `handle` selector always results in filterExclude being set to false, ie. + // the selector defines the handle element(s). + if (this.params.handle) + _setFilter(this.params.handle, false); + else + _setFilter(this.params.filter, this.params.filterExclude); + }; + + var Drop = function(el, params, css, scope) { + this._class = css.droppable; + this.params = params || {}; + this.rank = params.rank || 0; + this._activeClass = this.params.activeClass || css.active; + this._hoverClass = this.params.hoverClass || css.hover; + Super.apply(this, arguments); + var hover = false; + this.allowLoopback = this.params.allowLoopback !== false; + + this.setActive = function(val) { + this.params[val ? "addClass" : "removeClass"](this.el, this._activeClass); + }; + + this.updatePosition = function() { + this.position = this.params.getPosition(this.el); + this.pagePosition = this.params.getPosition(this.el, true); + this.size = this.params.getSize(this.el); + }; + + this.canDrop = this.params.canDrop || function(drag) { + return true; + }; + + this.isHover = function() { return hover; }; + + this.setHover = function(drag, val, e) { + // if turning off hover but this was not the drag that caused the hover, ignore. + if (val || this.el._katavorioDragHover == null || this.el._katavorioDragHover === drag.el._katavorio) { + this.params[val ? "addClass" : "removeClass"](this.el, this._hoverClass); + this.el._katavorioDragHover = val ? drag.el._katavorio : null; + if (hover !== val) { + this.params.events[val ? "over" : "out"]({el: this.el, e: e, drag: drag, drop: this}); + } + hover = val; + } + }; + + /** * A drop event. `drag` is the corresponding Drag object, which may be a Drag for some specific element, or it * may be a Drag on some element acting as a delegate for elements contained within it. * @param drag * @param event * @returns {*} - */this.drop=function(drag,event){return this.params.events["drop"]({drag:drag,e:event,drop:this});};this.destroy=function(){this._class=null;this._activeClass=null;this._hoverClass=null;hover=null;};};var _uuid=function _uuid(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){var r=Math.random()*16|0,v=c==='x'?r:r&0x3|0x8;return v.toString(16);});};var _rankSort=function _rankSort(a,b){return a.rankb.rank?-1:0;};var _gel=function _gel(el){if(el==null)return null;el=typeof el==="string"||el.constructor===String?document.getElementById(el):el;if(el==null)return null;el._katavorio=el._katavorio||_uuid();return el;};root.Katavorio=function(katavorioParams){var _selection=[],_selectionMap={};this._dragsByScope={};this._dropsByScope={};var _zoom=1,_reg=function _reg(obj,map){_each(obj,function(_obj){for(var i=0;i<_obj.scopes.length;i++){map[_obj.scopes[i]]=map[_obj.scopes[i]]||[];map[_obj.scopes[i]].push(_obj);}});},_unreg=function _unreg(obj,map){var c=0;_each(obj,function(_obj){for(var i=0;i<_obj.scopes.length;i++){if(map[_obj.scopes[i]]){var idx=katavorioParams.indexOf(map[_obj.scopes[i]],_obj);if(idx!==-1){map[_obj.scopes[i]].splice(idx,1);c++;}}}});return c>0;},_getMatchingDroppables=this.getMatchingDroppables=function(drag){var dd=[],_m={};for(var i=0;i b.rank ? -1 : 0; + }; + + var _gel = function(el) { + if (el == null) return null; + el = (typeof el === "string" || el.constructor === String) ? document.getElementById(el) : el; + if (el == null) return null; + el._katavorio = el._katavorio || _uuid(); + return el; + }; + + root.Katavorio = function(katavorioParams) { + + var _selection = [], + _selectionMap = {}; + + this._dragsByScope = {}; + this._dropsByScope = {}; + var _zoom = 1, + _reg = function(obj, map) { + _each(obj, function(_obj) { + for(var i = 0; i < _obj.scopes.length; i++) { + map[_obj.scopes[i]] = map[_obj.scopes[i]] || []; + map[_obj.scopes[i]].push(_obj); + } + }); + }, + _unreg = function(obj, map) { + var c = 0; + _each(obj, function(_obj) { + for(var i = 0; i < _obj.scopes.length; i++) { + if (map[_obj.scopes[i]]) { + var idx = katavorioParams.indexOf(map[_obj.scopes[i]], _obj); + if (idx !== -1) { + map[_obj.scopes[i]].splice(idx, 1); + c++; + } + } + } + }); + + return c > 0 ; + }, + _getMatchingDroppables = this.getMatchingDroppables = function(drag) { + var dd = [], _m = {}; + for (var i = 0; i < drag.scopes.length; i++) { + var _dd = this._dropsByScope[drag.scopes[i]]; + if (_dd) { + for (var j = 0; j < _dd.length; j++) { + if (_dd[j].canDrop(drag) && !_m[_dd[j].uuid] && (_dd[j].allowLoopback || _dd[j].el !== drag.el)) { + _m[_dd[j].uuid] = true; + dd.push(_dd[j]); + } + } + } + } + dd.sort(_rankSort); + return dd; + }, + _prepareParams = function(p) { + p = p || {}; + var _p = { + events:{} + }, i; + for (i in katavorioParams) _p[i] = katavorioParams[i]; + for (i in p) _p[i] = p[i]; + // events + + for (i = 0; i < _events.length; i++) { + _p.events[_events[i]] = p[_events[i]] || _devNull; + } + _p.katavorio = this; + return _p; + }.bind(this), + _mistletoe = function(existingDrag, params) { + for (var i = 0; i < _events.length; i++) { + if (params[_events[i]]) { + existingDrag.on(_events[i], params[_events[i]]); + } + } + }.bind(this), + _css = {}, + overrideCss = katavorioParams.css || {}, + _scope = katavorioParams.scope || _defaultScope; + + // prepare map of css classes based on defaults frst, then optional overrides + for (var i in _classes) _css[i] = _classes[i]; + for (var i in overrideCss) _css[i] = overrideCss[i]; + + var inputFilterSelector = katavorioParams.inputFilterSelector || _defaultInputFilterSelector; + /** * Gets the selector identifying which input elements to filter from drag events. * @method getInputFilterSelector * @return {String} Current input filter selector. - */this.getInputFilterSelector=function(){return inputFilterSelector;};/** + */ + this.getInputFilterSelector = function() { return inputFilterSelector; }; + + /** * Sets the selector identifying which input elements to filter from drag events. * @method setInputFilterSelector * @param {String} selector Input filter selector to set. * @return {Katavorio} Current instance; method may be chained. - */this.setInputFilterSelector=function(selector){inputFilterSelector=selector;return this;};/** + */ + this.setInputFilterSelector = function(selector) { + inputFilterSelector = selector; + return this; + }; + + /** * Either makes the given element draggable, or identifies it as an element inside which some identified list * of elements may be draggable. * @param el * @param params * @returns {Array} - */this.draggable=function(el,params){var o=[];_each(el,function(_el){_el=_gel(_el);if(_el!=null){if(_el._katavorioDrag==null){var p=_prepareParams(params);_el._katavorioDrag=new Drag(_el,p,_css,_scope);_reg(_el._katavorioDrag,this._dragsByScope);o.push(_el._katavorioDrag);katavorioParams.addClass(_el,p.selector?_css.delegatedDraggable:_css.draggable);}else{_mistletoe(_el._katavorioDrag,params);}}}.bind(this));return o;};this.droppable=function(el,params){var o=[];_each(el,function(_el){_el=_gel(_el);if(_el!=null){var drop=new Drop(_el,_prepareParams(params),_css,_scope);_el._katavorioDrop=_el._katavorioDrop||[];_el._katavorioDrop.push(drop);_reg(drop,this._dropsByScope);o.push(drop);katavorioParams.addClass(_el,_css.droppable);}}.bind(this));return o;};/** + */ + this.draggable = function(el, params) { + var o = []; + _each(el, function (_el) { + _el = _gel(_el); + if (_el != null) { + if (_el._katavorioDrag == null) { + var p = _prepareParams(params); + _el._katavorioDrag = new Drag(_el, p, _css, _scope); + _reg(_el._katavorioDrag, this._dragsByScope); + o.push(_el._katavorioDrag); + katavorioParams.addClass(_el, p.selector ? _css.delegatedDraggable : _css.draggable); + } + else { + _mistletoe(_el._katavorioDrag, params); + } + } + }.bind(this)); + return o; + }; + + this.droppable = function(el, params) { + var o = []; + _each(el, function(_el) { + _el = _gel(_el); + if (_el != null) { + var drop = new Drop(_el, _prepareParams(params), _css, _scope); + _el._katavorioDrop = _el._katavorioDrop || []; + _el._katavorioDrop.push(drop); + _reg(drop, this._dropsByScope); + o.push(drop); + katavorioParams.addClass(_el, _css.droppable); + } + }.bind(this)); + return o; + }; + + /** * @name Katavorio#select * @function * @desc Adds an element to the current selection (for multiple node drag) * @param {Element|String} DOM element - or id of the element - to add. - */this.select=function(el){_each(el,function(){var _el=_gel(this);if(_el&&_el._katavorioDrag){if(!_selectionMap[_el._katavorio]){_selection.push(_el._katavorioDrag);_selectionMap[_el._katavorio]=[_el,_selection.length-1];katavorioParams.addClass(_el,_css.selected);}}});return this;};/** + */ + this.select = function(el) { + _each(el, function() { + var _el = _gel(this); + if (_el && _el._katavorioDrag) { + if (!_selectionMap[_el._katavorio]) { + _selection.push(_el._katavorioDrag); + _selectionMap[_el._katavorio] = [ _el, _selection.length - 1 ]; + katavorioParams.addClass(_el, _css.selected); + } + } + }); + return this; + }; + + /** * @name Katavorio#deselect * @function * @desc Removes an element from the current selection (for multiple node drag) * @param {Element|String} DOM element - or id of the element - to remove. - */this.deselect=function(el){_each(el,function(){var _el=_gel(this);if(_el&&_el._katavorio){var e=_selectionMap[_el._katavorio];if(e){var _s=[];for(var i=0;i<_selection.length;i++)if(_selection[i].el!==_el)_s.push(_selection[i]);_selection=_s;delete _selectionMap[_el._katavorio];katavorioParams.removeClass(_el,_css.selected);}}});return this;};this.deselectAll=function(){for(var i in _selectionMap){var d=_selectionMap[i];katavorioParams.removeClass(d[0],_css.selected);}_selection.length=0;_selectionMap={};};this.markSelection=function(drag){_foreach(_selection,function(e){e.mark();},drag);};this.markPosses=function(drag){if(drag.posses){_each(drag.posses,function(p){if(drag.posseRoles[p]&&_posses[p]){_foreach(_posses[p].members,function(d){d.mark();},drag);}});}};this.unmarkSelection=function(drag,event){_foreach(_selection,function(e){e.unmark(event);},drag);};this.unmarkPosses=function(drag,event){if(drag.posses){_each(drag.posses,function(p){if(drag.posseRoles[p]&&_posses[p]){_foreach(_posses[p].members,function(d){d.unmark(event,true);},drag);}});}};this.getSelection=function(){return _selection.slice(0);};this.updateSelection=function(dx,dy,drag){_foreach(_selection,function(e){e.moveBy(dx,dy);},drag);};var _posseAction=function _posseAction(fn,drag){if(drag.posses){_each(drag.posses,function(p){if(drag.posseRoles[p]&&_posses[p]){_foreach(_posses[p].members,function(e){fn(e);},drag);}});}};this.updatePosses=function(dx,dy,drag){_posseAction(function(e){e.moveBy(dx,dy);},drag);};this.notifyPosseDragStop=function(drag,evt){_posseAction(function(e){e.stop(evt,true);},drag);};this.notifySelectionDragStop=function(drag,evt){_foreach(_selection,function(e){e.stop(evt,true);},drag);};this.notifySelectionDragStart=function(drag,evt){_foreach(_selection,function(e){e.notifyStart(evt);},drag);};this.setZoom=function(z){_zoom=z;};this.getZoom=function(){return _zoom;};// does the work of changing scopes -var _scopeManip=function _scopeManip(kObj,scopes,map,fn){_each(kObj,function(_kObj){_unreg(_kObj,map);// deregister existing scopes -_kObj[fn](scopes);// set scopes -_reg(_kObj,map);// register new ones -});};_each(["set","add","remove","toggle"],function(v){this[v+"Scope"]=function(el,scopes){_scopeManip(el._katavorioDrag,scopes,this._dragsByScope,v+"Scope");_scopeManip(el._katavorioDrop,scopes,this._dropsByScope,v+"Scope");}.bind(this);this[v+"DragScope"]=function(el,scopes){_scopeManip(el.constructor===Drag?el:el._katavorioDrag,scopes,this._dragsByScope,v+"Scope");}.bind(this);this[v+"DropScope"]=function(el,scopes){_scopeManip(el.constructor===Drop?el:el._katavorioDrop,scopes,this._dropsByScope,v+"Scope");}.bind(this);}.bind(this));this.snapToGrid=function(x,y){for(var s in this._dragsByScope){_foreach(this._dragsByScope[s],function(d){d.snap(x,y);});}};this.getDragsForScope=function(s){return this._dragsByScope[s];};this.getDropsForScope=function(s){return this._dropsByScope[s];};var _destroy=function _destroy(el,type,map){el=_gel(el);if(el[type]){// remove from selection, if present. -var selIdx=_selection.indexOf(el[type]);if(selIdx>=0){_selection.splice(selIdx,1);}if(_unreg(el[type],map)){_each(el[type],function(kObj){kObj.destroy();});}delete el[type];}};var _removeListener=function _removeListener(el,type,evt,fn){el=_gel(el);if(el[type]){el[type].off(evt,fn);}};this.elementRemoved=function(el){if(el["_katavorioDrag"]){this.destroyDraggable(el);}if(el["_katavorioDrop"]){this.destroyDroppable(el);}};/** + */ + this.deselect = function(el) { + _each(el, function() { + var _el = _gel(this); + if (_el && _el._katavorio) { + var e = _selectionMap[_el._katavorio]; + if (e) { + var _s = []; + for (var i = 0; i < _selection.length; i++) + if (_selection[i].el !== _el) _s.push(_selection[i]); + _selection = _s; + delete _selectionMap[_el._katavorio]; + katavorioParams.removeClass(_el, _css.selected); + } + } + }); + return this; + }; + + this.deselectAll = function() { + for (var i in _selectionMap) { + var d = _selectionMap[i]; + katavorioParams.removeClass(d[0], _css.selected); + } + + _selection.length = 0; + _selectionMap = {}; + }; + + this.markSelection = function(drag) { + _foreach(_selection, function(e) { e.mark(); }, drag); + }; + + this.markPosses = function(drag) { + if (drag.posses) { + _each(drag.posses, function(p) { + if (drag.posseRoles[p] && _posses[p]) { + _foreach(_posses[p].members, function (d) { + d.mark(); + }, drag); + } + }) + } + }; + + this.unmarkSelection = function(drag, event) { + _foreach(_selection, function(e) { e.unmark(event); }, drag); + }; + + this.unmarkPosses = function(drag, event) { + if (drag.posses) { + _each(drag.posses, function(p) { + if (drag.posseRoles[p] && _posses[p]) { + _foreach(_posses[p].members, function (d) { + d.unmark(event, true); + }, drag); + } + }); + } + }; + + this.getSelection = function() { return _selection.slice(0); }; + + this.updateSelection = function(dx, dy, drag) { + _foreach(_selection, function(e) { e.moveBy(dx, dy); }, drag); + }; + + var _posseAction = function(fn, drag) { + if (drag.posses) { + _each(drag.posses, function(p) { + if (drag.posseRoles[p] && _posses[p]) { + _foreach(_posses[p].members, function (e) { + fn(e); + }, drag); + } + }); + } + }; + + this.updatePosses = function(dx, dy, drag) { + _posseAction(function(e) { e.moveBy(dx, dy); }, drag); + }; + + this.notifyPosseDragStop = function(drag, evt) { + _posseAction(function(e) { e.stop(evt, true); }, drag); + }; + + this.notifySelectionDragStop = function(drag, evt) { + _foreach(_selection, function(e) { e.stop(evt, true); }, drag); + }; + + this.notifySelectionDragStart = function(drag, evt) { + _foreach(_selection, function(e) { e.notifyStart(evt);}, drag); + }; + + this.setZoom = function(z) { _zoom = z; }; + this.getZoom = function() { return _zoom; }; + + // does the work of changing scopes + var _scopeManip = function(kObj, scopes, map, fn) { + _each(kObj, function(_kObj) { + _unreg(_kObj, map); // deregister existing scopes + _kObj[fn](scopes); // set scopes + _reg(_kObj, map); // register new ones + }); + }; + + _each([ "set", "add", "remove", "toggle"], function(v) { + this[v + "Scope"] = function(el, scopes) { + _scopeManip(el._katavorioDrag, scopes, this._dragsByScope, v + "Scope"); + _scopeManip(el._katavorioDrop, scopes, this._dropsByScope, v + "Scope"); + }.bind(this); + this[v + "DragScope"] = function(el, scopes) { + _scopeManip(el.constructor === Drag ? el : el._katavorioDrag, scopes, this._dragsByScope, v + "Scope"); + }.bind(this); + this[v + "DropScope"] = function(el, scopes) { + _scopeManip(el.constructor === Drop ? el : el._katavorioDrop, scopes, this._dropsByScope, v + "Scope"); + }.bind(this); + }.bind(this)); + + this.snapToGrid = function(x, y) { + for (var s in this._dragsByScope) { + _foreach(this._dragsByScope[s], function(d) { d.snap(x, y); }); + } + }; + + this.getDragsForScope = function(s) { return this._dragsByScope[s]; }; + this.getDropsForScope = function(s) { return this._dropsByScope[s]; }; + + var _destroy = function(el, type, map) { + el = _gel(el); + if (el[type]) { + + // remove from selection, if present. + var selIdx = _selection.indexOf(el[type]); + if (selIdx >= 0) { + _selection.splice(selIdx, 1); + } + + if (_unreg(el[type], map)) { + _each(el[type], function(kObj) { kObj.destroy() }); + } + + delete el[type]; + } + }; + + var _removeListener = function(el, type, evt, fn) { + el = _gel(el); + if (el[type]) { + el[type].off(evt, fn); + } + }; + + this.elementRemoved = function(el) { + if (el["_katavorioDrag"]) { + this.destroyDraggable(el); + } + if (el["_katavorioDrop"]) { + this.destroyDroppable(el); + } + }; + + /** * Either completely remove drag functionality from the given element, or remove a specific event handler. If you * call this method with a single argument - the element - all drag functionality is removed from it. Otherwise, if * you provide an event name and listener function, this function is de-registered (if found). * @param el Element to update * @param {string} [evt] Optional event name to unsubscribe * @param {Function} [fn] Optional function to unsubscribe - */this.destroyDraggable=function(el,evt,fn){if(arguments.length===1){_destroy(el,"_katavorioDrag",this._dragsByScope);}else{_removeListener(el,"_katavorioDrag",evt,fn);}};/** + */ + this.destroyDraggable = function(el, evt, fn) { + if (arguments.length === 1) { + _destroy(el, "_katavorioDrag", this._dragsByScope); + } else { + _removeListener(el, "_katavorioDrag", evt, fn); + } + }; + + /** * Either completely remove drop functionality from the given element, or remove a specific event handler. If you * call this method with a single argument - the element - all drop functionality is removed from it. Otherwise, if * you provide an event name and listener function, this function is de-registered (if found). * @param el Element to update * @param {string} [evt] Optional event name to unsubscribe * @param {Function} [fn] Optional function to unsubscribe - */this.destroyDroppable=function(el,evt,fn){if(arguments.length===1){_destroy(el,"_katavorioDrop",this._dropsByScope);}else{_removeListener(el,"_katavorioDrop",evt,fn);}};this.reset=function(){this._dragsByScope={};this._dropsByScope={};_selection=[];_selectionMap={};_posses={};};// ----- groups -var _posses={};var _processOneSpec=function _processOneSpec(el,_spec,dontAddExisting){var posseId=_isString(_spec)?_spec:_spec.id;var active=_isString(_spec)?true:_spec.active!==false;var posse=_posses[posseId]||function(){var g={name:posseId,members:[]};_posses[posseId]=g;return g;}();_each(el,function(_el){if(_el._katavorioDrag){if(dontAddExisting&&_el._katavorioDrag.posseRoles[posse.name]!=null)return;_suggest(posse.members,_el._katavorioDrag);_suggest(_el._katavorioDrag.posses,posse.name);_el._katavorioDrag.posseRoles[posse.name]=active;}});return posse;};/** + */ + this.destroyDroppable = function(el, evt, fn) { + if (arguments.length === 1) { + _destroy(el, "_katavorioDrop", this._dropsByScope); + } else { + _removeListener(el, "_katavorioDrop", evt, fn); + } + }; + + this.reset = function() { + this._dragsByScope = {}; + this._dropsByScope = {}; + _selection = []; + _selectionMap = {}; + _posses = {}; + }; + + // ----- groups + var _posses = {}; + + var _processOneSpec = function(el, _spec, dontAddExisting) { + var posseId = _isString(_spec) ? _spec : _spec.id; + var active = _isString(_spec) ? true : _spec.active !== false; + var posse = _posses[posseId] || (function() { + var g = {name:posseId, members:[]}; + _posses[posseId] = g; + return g; + })(); + _each(el, function(_el) { + if (_el._katavorioDrag) { + + if (dontAddExisting && _el._katavorioDrag.posseRoles[posse.name] != null) return; + + _suggest(posse.members, _el._katavorioDrag); + _suggest(_el._katavorioDrag.posses, posse.name); + _el._katavorioDrag.posseRoles[posse.name] = active; + } + }); + return posse; + }; + + /** * Add the given element to the posse with the given id, creating the group if it at first does not exist. * @method addToPosse * @param {Element} el Element to add. @@ -533,7 +2812,19 @@ var _posses={};var _processOneSpec=function _processOneSpec(el,_spec,dontAddExis * `{ id:"posseId", active:false/true}`. In the latter case, if `active` is not provided it is assumed to be * true. * @returns {Posse|Posse[]} The Posse(s) to which the element(s) was/were added. - */this.addToPosse=function(el,spec){var posses=[];for(var i=1;i0;}jsPlumbUtil.isNamedFunction=isNamedFunction;function isEmpty(o){for(var i in o){if(o.hasOwnProperty(i)){return false;}}return true;}jsPlumbUtil.isEmpty=isEmpty;function clone(a){if(isString(a)){return""+a;}else if(isBoolean(a)){return!!a;}else if(isDate(a)){return new Date(a.getTime());}else if(isFunction(a)){return a;}else if(isArray(a)){var b=[];for(var i=0;i=str.length,_getArray=function _getArray(){return t[array[1]]||function(){t[array[1]]=[];return t[array[1]];}();};if(last){// set term = value on current t, creating term as array if necessary. -if(array){_getArray()[array[3]]=value;}else{t[term]=value;}}else{// set to current t[term], creating t[term] if necessary. -if(array){var a_1=_getArray();t=a_1[array[3]]||function(){a_1[array[3]]={};return a_1[array[3]];}();}else{t=t[term]||function(){t[term]={};return t[term];}();}}return"";});return inObj;}jsPlumbUtil.replace=replace;// -// chain a list of functions, supplied by [ object, method name, args ], and return on the first -// one that returns the failValue. if none return the failValue, return the successValue. -// -function functionChain(successValue,failValue,fns){for(var i=0;i 0; + } + jsPlumbUtil.isNamedFunction = isNamedFunction; + function isEmpty(o) { + for (var i in o) { + if (o.hasOwnProperty(i)) { + return false; + } + } + return true; + } + jsPlumbUtil.isEmpty = isEmpty; + function clone(a) { + if (isString(a)) { + return "" + a; + } + else if (isBoolean(a)) { + return !!a; + } + else if (isDate(a)) { + return new Date(a.getTime()); + } + else if (isFunction(a)) { + return a; + } + else if (isArray(a)) { + var b = []; + for (var i = 0; i < a.length; i++) { + b.push(clone(a[i])); + } + return b; + } + else if (isObject(a)) { + var c = {}; + for (var j in a) { + c[j] = clone(a[j]); + } + return c; + } + else { + return a; + } + } + jsPlumbUtil.clone = clone; + function merge(a, b, collations, overwrites) { + // first change the collations array - if present - into a lookup table, because its faster. + var cMap = {}, ar, i, oMap = {}; + collations = collations || []; + overwrites = overwrites || []; + for (i = 0; i < collations.length; i++) { + cMap[collations[i]] = true; + } + for (i = 0; i < overwrites.length; i++) { + oMap[overwrites[i]] = true; + } + var c = clone(a); + for (i in b) { + if (c[i] == null || oMap[i]) { + c[i] = b[i]; + } + else if (isString(b[i]) || isBoolean(b[i])) { + if (!cMap[i]) { + c[i] = b[i]; // if we dont want to collate, just copy it in. + } + else { + ar = []; + // if c's object is also an array we can keep its values. + ar.push.apply(ar, isArray(c[i]) ? c[i] : [c[i]]); + ar.push.apply(ar, isBoolean(b[i]) ? b[i] : [b[i]]); + c[i] = ar; + } + } + else { + if (isArray(b[i])) { + ar = []; + // if c's object is also an array we can keep its values. + if (isArray(c[i])) { + ar.push.apply(ar, c[i]); + } + ar.push.apply(ar, b[i]); + c[i] = ar; + } + else if (isObject(b[i])) { + // overwrite c's value with an object if it is not already one. + if (!isObject(c[i])) { + c[i] = {}; + } + for (var j in b[i]) { + c[i][j] = b[i][j]; + } + } + } + } + return c; + } + jsPlumbUtil.merge = merge; + function replace(inObj, path, value) { + if (inObj == null) { + return; + } + var q = inObj, t = q; + path.replace(/([^\.])+/g, function (term, lc, pos, str) { + var array = term.match(/([^\[0-9]+){1}(\[)([0-9+])/), last = pos + term.length >= str.length, _getArray = function () { + return t[array[1]] || (function () { + t[array[1]] = []; + return t[array[1]]; + })(); + }; + if (last) { + // set term = value on current t, creating term as array if necessary. + if (array) { + _getArray()[array[3]] = value; + } + else { + t[term] = value; + } + } + else { + // set to current t[term], creating t[term] if necessary. + if (array) { + var a_1 = _getArray(); + t = a_1[array[3]] || (function () { + a_1[array[3]] = {}; + return a_1[array[3]]; + })(); + } + else { + t = t[term] || (function () { + t[term] = {}; + return t[term]; + })(); + } + } + return ""; + }); + return inObj; + } + jsPlumbUtil.replace = replace; + // + // chain a list of functions, supplied by [ object, method name, args ], and return on the first + // one that returns the failValue. if none return the failValue, return the successValue. + // + function functionChain(successValue, failValue, fns) { + for (var i = 0; i < fns.length; i++) { + var o = fns[i][0][fns[i][1]].apply(fns[i][0], fns[i][2]); + if (o === failValue) { + return o; + } + } + return successValue; + } + jsPlumbUtil.functionChain = functionChain; + /** * * Take the given model and expand out any parameters. 'functionPrefix' is optional, and if present, helps jsplumb figure out what to do if a value is a Function. * if you do not provide it (and doNotExpandFunctions is null, or false), jsplumb will run the given values through any functions it finds, and use the function's @@ -587,52 +3141,317 @@ function functionChain(successValue,failValue,fns){for(var i=0;i-1){a.splice(idx,1);}return idx!==-1;}jsPlumbUtil.removeWithFunction=removeWithFunction;/** + */ + function removeWithFunction(a, f) { + var idx = findWithFunction(a, f); + if (idx > -1) { + a.splice(idx, 1); + } + return idx !== -1; + } + jsPlumbUtil.removeWithFunction = removeWithFunction; + /** * Remove some element from an array by simple lookup in the array for the given element. Note that this * is an in-place removal; the array is altered. * @param l The array to search * @param v The value to remove. * @returns {boolean} true if removed, false otherwise. - */function remove(l,v){var idx=l.indexOf(v);if(idx>-1){l.splice(idx,1);}return idx!==-1;}jsPlumbUtil.remove=remove;/** + */ + function remove(l, v) { + var idx = l.indexOf(v); + if (idx > -1) { + l.splice(idx, 1); + } + return idx !== -1; + } + jsPlumbUtil.remove = remove; + /** * Add some element to the given array, unless it is determined that it is already in the array. * @param list The array to add the element to. * @param item The item to add. * @param hashFunction A function to use to determine if the given item already exists in the array. - */function addWithFunction(list,item,hashFunction){if(findWithFunction(list,hashFunction)===-1){list.push(item);}}jsPlumbUtil.addWithFunction=addWithFunction;/** + */ + function addWithFunction(list, item, hashFunction) { + if (findWithFunction(list, hashFunction) === -1) { + list.push(item); + } + } + jsPlumbUtil.addWithFunction = addWithFunction; + /** * Add some element to a list that is contained in a map of lists. * @param map The map of [ key -> list ] entries * @param key The name of the list to insert into * @param value The value to insert * @param insertAtStart Whether or not to insert at the start; defaults to false. - */function addToList(map,key,value,insertAtStart){var l=map[key];if(l==null){l=[];map[key]=l;}l[insertAtStart?"unshift":"push"](value);return l;}jsPlumbUtil.addToList=addToList;/** + */ + function addToList(map, key, value, insertAtStart) { + var l = map[key]; + if (l == null) { + l = []; + map[key] = l; + } + l[insertAtStart ? "unshift" : "push"](value); + return l; + } + jsPlumbUtil.addToList = addToList; + /** * Add an item to a list, unless it is already in the list. The test for pre-existence is a simple list lookup. * If you want to do something more complex, perhaps #addWithFunction might help. * @param list List to add the item to * @param item Item to add * @param insertAtHead Whether or not to insert at the start; defaults to false. - */function suggest(list,item,insertAtHead){if(list.indexOf(item)===-1){if(insertAtHead){list.unshift(item);}else{list.push(item);}return true;}return false;}jsPlumbUtil.suggest=suggest;/** + */ + function suggest(list, item, insertAtHead) { + if (list.indexOf(item) === -1) { + if (insertAtHead) { + list.unshift(item); + } + else { + list.push(item); + } + return true; + } + return false; + } + jsPlumbUtil.suggest = suggest; + /** * Extends the given obj (which can be an array) with the given constructor function, prototype functions, and class members, any of which may be null. * @param child * @param parent * @param _protoFn - */function extend(child,parent,_protoFn){var i;parent=isArray(parent)?parent:[parent];var _copyProtoChain=function _copyProtoChain(focus){var proto=focus.__proto__;while(proto!=null){if(proto.prototype!=null){for(var j in proto.prototype){if(proto.prototype.hasOwnProperty(j)&&!child.prototype.hasOwnProperty(j)){child.prototype[j]=proto.prototype[j];}}proto=proto.prototype.__proto__;}else{proto=null;}}};for(i=0;i2){for(i=2;i>8&0xff]+lut[d0>>16&0xff]+lut[d0>>24&0xff]+'-'+lut[d1&0xff]+lut[d1>>8&0xff]+'-'+lut[d1>>16&0x0f|0x40]+lut[d1>>24&0xff]+'-'+lut[d2&0x3f|0x80]+lut[d2>>8&0xff]+'-'+lut[d2>>16&0xff]+lut[d2>>24&0xff]+lut[d3&0xff]+lut[d3>>8&0xff]+lut[d3>>16&0xff]+lut[d3>>24&0xff];}jsPlumbUtil.uuid=uuid;/** + */ + function extend(child, parent, _protoFn) { + var i; + parent = isArray(parent) ? parent : [parent]; + var _copyProtoChain = function (focus) { + var proto = focus.__proto__; + while (proto != null) { + if (proto.prototype != null) { + for (var j in proto.prototype) { + if (proto.prototype.hasOwnProperty(j) && !child.prototype.hasOwnProperty(j)) { + child.prototype[j] = proto.prototype[j]; + } + } + proto = proto.prototype.__proto__; + } + else { + proto = null; + } + } + }; + for (i = 0; i < parent.length; i++) { + for (var j in parent[i].prototype) { + if (parent[i].prototype.hasOwnProperty(j) && !child.prototype.hasOwnProperty(j)) { + child.prototype[j] = parent[i].prototype[j]; + } + } + _copyProtoChain(parent[i]); + } + var _makeFn = function (name, protoFn) { + return function () { + for (i = 0; i < parent.length; i++) { + if (parent[i].prototype[name]) { + parent[i].prototype[name].apply(this, arguments); + } + } + return protoFn.apply(this, arguments); + }; + }; + var _oneSet = function (fns) { + for (var k in fns) { + child.prototype[k] = _makeFn(k, fns[k]); + } + }; + if (arguments.length > 2) { + for (i = 2; i < arguments.length; i++) { + _oneSet(arguments[i]); + } + } + return child; + } + jsPlumbUtil.extend = extend; + var lut = []; + for (var i = 0; i < 256; i++) { + lut[i] = (i < 16 ? '0' : '') + (i).toString(16); + } + function uuid() { + var d0 = Math.random() * 0xffffffff | 0; + var d1 = Math.random() * 0xffffffff | 0; + var d2 = Math.random() * 0xffffffff | 0; + var d3 = Math.random() * 0xffffffff | 0; + return lut[d0 & 0xff] + lut[d0 >> 8 & 0xff] + lut[d0 >> 16 & 0xff] + lut[d0 >> 24 & 0xff] + '-' + + lut[d1 & 0xff] + lut[d1 >> 8 & 0xff] + '-' + lut[d1 >> 16 & 0x0f | 0x40] + lut[d1 >> 24 & 0xff] + '-' + + lut[d2 & 0x3f | 0x80] + lut[d2 >> 8 & 0xff] + '-' + lut[d2 >> 16 & 0xff] + lut[d2 >> 24 & 0xff] + + lut[d3 & 0xff] + lut[d3 >> 8 & 0xff] + lut[d3 >> 16 & 0xff] + lut[d3 >> 24 & 0xff]; + } + jsPlumbUtil.uuid = uuid; + /** * Trim a string. * @param s String to trim * @returns the String with leading and trailing whitespace removed. - */function fastTrim(s){if(s==null){return null;}var str=s.replace(/^\s\s*/,''),ws=/\s/,i=str.length;while(ws.test(str.charAt(--i))){}return str.slice(0,i+1);}jsPlumbUtil.fastTrim=fastTrim;function each(obj,fn){obj=obj.length==null||typeof obj==="string"?[obj]:obj;for(var i=0;iel.scrollTop+el.offsetHeight){if(!children[i]._jsPlumbProxies){children[i]._jsPlumbProxies=children[i]._jsPlumbProxies||[];instance.select({source:children[i]}).each(function(c){instance.proxyConnection(c,0,el,elId,function(){return deriveEndpoint("bottom",0,c.endpoints[0],c);},function(){return deriveAnchor("bottom",0,c.endpoints[0],c);});children[i]._jsPlumbProxies.push([c,0]);});instance.select({target:children[i]}).each(function(c){instance.proxyConnection(c,1,el,elId,function(){return deriveEndpoint("bottom",1,c.endpoints[1],c);},function(){return deriveAnchor("bottom",1,c.endpoints[1],c);});children[i]._jsPlumbProxies.push([c,1]);});}}else if(children[i]._jsPlumbProxies){for(var j=0;j el.scrollTop + el.offsetHeight) { + if (!children[i]._jsPlumbProxies) { + children[i]._jsPlumbProxies = children[i]._jsPlumbProxies || []; + + instance.select({source: children[i]}).each(function (c) { + instance.proxyConnection(c, 0, el, elId, function () { + return deriveEndpoint("bottom", 0, c.endpoints[0], c); + }, function () { + return deriveAnchor("bottom", 0, c.endpoints[0], c); + }); + children[i]._jsPlumbProxies.push([c, 0]); + }); + + instance.select({target: children[i]}).each(function (c) { + instance.proxyConnection(c, 1, el, elId, function () { + return deriveEndpoint("bottom", 1, c.endpoints[1], c); + }, function () { + return deriveAnchor("bottom", 1, c.endpoints[1], c); + }); + children[i]._jsPlumbProxies.push([c, 1]); + }); + } + } else if (children[i]._jsPlumbProxies) { + for (var j = 0; j < children[i]._jsPlumbProxies.length; j++) { + instance.unproxyConnection(children[i]._jsPlumbProxies[j][0], children[i]._jsPlumbProxies[j][1], elId); + } + + delete children[i]._jsPlumbProxies; + } + + instance.revalidate(children[i]); + } + + _maybeUpdateDraggable(el); + }; + + instance.setAttribute(el, "jtk-scrollable-list", "true"); + el._jsPlumbScrollHandler = scrollHandler; + instance.on(el, "scroll", scrollHandler); + scrollHandler(); // run it once; there may be connections already. + + this.destroy = function() { + instance.off(el, "scroll", scrollHandler); + delete el._jsPlumbScrollHandler; + + var children = instance.getSelector(el, ".jtk-managed"); + var elId = instance.getId(el); + + for (var i = 0; i < children.length; i++) { + if (children[i]._jsPlumbProxies) { + for (var j = 0; j < children[i]._jsPlumbProxies.length; j++) { + instance.unproxyConnection(children[i]._jsPlumbProxies[j][0], children[i]._jsPlumbProxies[j][1], elId); + } + + delete children[i]._jsPlumbProxies; + } + } + }; + }; + + +}).call(typeof window !== 'undefined' ? window : this); + +/* * This file contains the core code. * * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) @@ -713,133 +3935,1063 @@ this.destroy=function(){instance.off(el,"scroll",scrollHandler);delete el._jsPlu * https://github.com/jsplumb/jsplumb * * Dual licensed under the MIT and GPL2 licenses. - */;(function(){"use strict";var root=this;var _ju=root.jsPlumbUtil,// helper method to update the hover style whenever it, or paintStyle, changes. -// we use paintStyle as the foundation and merge hoverPaintStyle over the -// top. -_updateHoverStyle=function _updateHoverStyle(component){if(component._jsPlumb.paintStyle&&component._jsPlumb.hoverPaintStyle){var mergedHoverStyle={};jsPlumb.extend(mergedHoverStyle,component._jsPlumb.paintStyle);jsPlumb.extend(mergedHoverStyle,component._jsPlumb.hoverPaintStyle);delete component._jsPlumb.hoverPaintStyle;// we want the fill of paintStyle to override a gradient, if possible. -if(mergedHoverStyle.gradient&&component._jsPlumb.paintStyle.fill){delete mergedHoverStyle.gradient;}component._jsPlumb.hoverPaintStyle=mergedHoverStyle;}},events=["tap","dbltap","click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu"],eventFilters={"mouseout":"mouseleave","mouseexit":"mouseleave"},_updateAttachedElements=function _updateAttachedElements(component,state,timestamp,sourceElement){var affectedElements=component.getAttachedElements();if(affectedElements){for(var i=0,j=affectedElements.length;i0){for(var i=0;i<_containerDelegations.length;i++){_currentInstance.off(_container,_containerDelegations[i][0],_containerDelegations[i][1]);}}};this.setContainer=function(c){this.unbindContainer();// get container as dom element. -c=this.getElement(c);// move existing connections and endpoints, if any. -this.select().each(function(conn){conn.moveParent(c);});this.selectEndpoints().each(function(ep){ep.moveParent(c);});// set container. -var previousContainer=_container;_container=c;_containerDelegations.length=0;var eventAliases={"endpointclick":"endpointClick","endpointdblclick":"endpointDblClick"};var _oneDelegateHandler=function _oneDelegateHandler(id,e,componentType){var t=e.srcElement||e.target,jp=(t&&t.parentNode?t.parentNode._jsPlumb:null)||(t?t._jsPlumb:null)||(t&&t.parentNode&&t.parentNode.parentNode?t.parentNode.parentNode._jsPlumb:null);if(jp){jp.fire(id,jp,e);var alias=componentType?eventAliases[componentType+id]||id:id;// jsplumb also fires every event coming from components/overlays. That's what the test for `jp.component` is for. -_currentInstance.fire(alias,jp.component||jp,e);}};var _addOneDelegate=function _addOneDelegate(eventId,selector,fn){_containerDelegations.push([eventId,fn]);_currentInstance.on(_container,eventId,selector,fn);};// delegate one event on the container to jsplumb elements. it might be possible to -// abstract this out: each of endpoint, connection and overlay could register themselves with -// jsplumb as "component types" or whatever, and provide a suitable selector. this would be -// done by the renderer (although admittedly from 2.0 onwards we're not supporting vml anymore) -var _oneDelegate=function _oneDelegate(id){// connections. -_addOneDelegate(id,".jtk-connector",function(e){_oneDelegateHandler(id,e);});// endpoints. note they can have an enclosing div, or not. -_addOneDelegate(id,".jtk-endpoint",function(e){_oneDelegateHandler(id,e,"endpoint");});// overlays -_addOneDelegate(id,".jtk-overlay",function(e){_oneDelegateHandler(id,e);});};for(var i=0;i endpoint lists. an element can have an arbitrary -// number of endpoints on it, and not all of them have to be connected -// to anything. -endpointsByElement={},endpointsByUUID={},managedElements={},offsets={},offsetTimestamps={},draggableStates={},connectionBeingDragged=false,sizes=[],_suspendDrawing=false,_suspendedAt=null,DEFAULT_SCOPE=this.Defaults.Scope,_curIdStamp=1,_idstamp=function _idstamp(){return""+_curIdStamp++;},// -// appends an element to some other element, which is calculated as follows: -// -// 1. if Container exists, use that element. -// 2. if the 'parent' parameter exists, use that. -// 3. otherwise just use the root element. -// -// -_appendElement=function(el,parent){if(_container){_container.appendChild(el);}else if(!parent){this.appendToRoot(el);}else{this.getElement(parent).appendChild(el);}}.bind(this),// -// Draws an endpoint and its connections. this is the main entry point into drawing connections as well -// as endpoints, since jsPlumb is endpoint-centric under the hood. -// -// @param element element to draw (of type library specific element object) -// @param ui UI object from current library's event system. optional. -// @param timestamp timestamp for this paint cycle. used to speed things up a little by cutting down the amount of offset calculations we do. -// @param clearEdits defaults to false; indicates that mouse edits for connectors should be cleared -/// -_draw=function _draw(element,ui,timestamp,clearEdits){var drawResult={c:[],e:[]};if(!_suspendDrawing){element=_currentInstance.getElement(element);if(element!=null){var id=_getId(element),repaintEls=element.querySelectorAll(".jtk-managed");if(timestamp==null){timestamp=jsPlumbUtil.uuid();}// update the offset of everything _before_ we try to draw anything. -var o=_updateOffset({elId:id,offset:ui,recalc:false,timestamp:timestamp});for(var i=0;i 0) { + for (var i = 0; i < _containerDelegations.length; i++) { + _currentInstance.off(_container, _containerDelegations[i][0], _containerDelegations[i][1]); + } + } + }; + this.setContainer = function (c) { + + this.unbindContainer(); + + // get container as dom element. + c = this.getElement(c); + // move existing connections and endpoints, if any. + this.select().each(function (conn) { + conn.moveParent(c); + }); + this.selectEndpoints().each(function (ep) { + ep.moveParent(c); + }); + + // set container. + var previousContainer = _container; + _container = c; + _containerDelegations.length = 0; + var eventAliases = { + "endpointclick":"endpointClick", + "endpointdblclick":"endpointDblClick" + }; + + var _oneDelegateHandler = function (id, e, componentType) { + var t = e.srcElement || e.target, + jp = (t && t.parentNode ? t.parentNode._jsPlumb : null) || (t ? t._jsPlumb : null) || (t && t.parentNode && t.parentNode.parentNode ? t.parentNode.parentNode._jsPlumb : null); + if (jp) { + jp.fire(id, jp, e); + var alias = componentType ? eventAliases[componentType + id] || id : id; + // jsplumb also fires every event coming from components/overlays. That's what the test for `jp.component` is for. + _currentInstance.fire(alias, jp.component || jp, e); + } + }; + + var _addOneDelegate = function(eventId, selector, fn) { + _containerDelegations.push([eventId, fn]); + _currentInstance.on(_container, eventId, selector, fn); + }; + + // delegate one event on the container to jsplumb elements. it might be possible to + // abstract this out: each of endpoint, connection and overlay could register themselves with + // jsplumb as "component types" or whatever, and provide a suitable selector. this would be + // done by the renderer (although admittedly from 2.0 onwards we're not supporting vml anymore) + var _oneDelegate = function (id) { + // connections. + _addOneDelegate(id, ".jtk-connector", function (e) { + _oneDelegateHandler(id, e); + }); + // endpoints. note they can have an enclosing div, or not. + _addOneDelegate(id, ".jtk-endpoint", function (e) { + _oneDelegateHandler(id, e, "endpoint"); + }); + // overlays + _addOneDelegate(id, ".jtk-overlay", function (e) { + _oneDelegateHandler(id, e); + }); + }; + + for (var i = 0; i < events.length; i++) { + _oneDelegate(events[i]); + } + + // managed elements + for (var elId in managedElements) { + var el = managedElements[elId].el; + if (el.parentNode === previousContainer) { + previousContainer.removeChild(el); + _container.appendChild(el); + } + } + + }; + this.getContainer = function () { + return _container; + }; + + this.bind = function (event, fn) { + if ("ready" === event && initialized) { + fn(); + } + else { + _bb.apply(_currentInstance, [event, fn]); + } + }; + + _currentInstance.importDefaults = function (d) { + for (var i in d) { + _currentInstance.Defaults[i] = d[i]; + } + if (d.Container) { + _currentInstance.setContainer(d.Container); + } + + return _currentInstance; + }; + + _currentInstance.restoreDefaults = function () { + _currentInstance.Defaults = jsPlumb.extend({}, _initialDefaults); + return _currentInstance; + }; + + var log = null, + initialized = false, + // TODO remove from window scope + connections = [], + // map of element id -> endpoint lists. an element can have an arbitrary + // number of endpoints on it, and not all of them have to be connected + // to anything. + endpointsByElement = {}, + endpointsByUUID = {}, + managedElements = {}, + offsets = {}, + offsetTimestamps = {}, + draggableStates = {}, + connectionBeingDragged = false, + sizes = [], + _suspendDrawing = false, + _suspendedAt = null, + DEFAULT_SCOPE = this.Defaults.Scope, + _curIdStamp = 1, + _idstamp = function () { + return "" + _curIdStamp++; + }, + + // + // appends an element to some other element, which is calculated as follows: + // + // 1. if Container exists, use that element. + // 2. if the 'parent' parameter exists, use that. + // 3. otherwise just use the root element. + // + // + _appendElement = function (el, parent) { + if (_container) { + _container.appendChild(el); + } + else if (!parent) { + this.appendToRoot(el); + } + else { + this.getElement(parent).appendChild(el); + } + }.bind(this), + + // + // Draws an endpoint and its connections. this is the main entry point into drawing connections as well + // as endpoints, since jsPlumb is endpoint-centric under the hood. + // + // @param element element to draw (of type library specific element object) + // @param ui UI object from current library's event system. optional. + // @param timestamp timestamp for this paint cycle. used to speed things up a little by cutting down the amount of offset calculations we do. + // @param clearEdits defaults to false; indicates that mouse edits for connectors should be cleared + /// + _draw = function (element, ui, timestamp, clearEdits) { + + var drawResult = { c:[], e:[] }; + + if (!_suspendDrawing) { + + element = _currentInstance.getElement(element); + + if (element != null) { + + var id = _getId(element), + repaintEls = element.querySelectorAll(".jtk-managed"); + + if (timestamp == null) { + timestamp = jsPlumbUtil.uuid(); + } + + // update the offset of everything _before_ we try to draw anything. + var o = _updateOffset({elId: id, offset: ui, recalc: false, timestamp: timestamp}); + + for (var i = 0; i < repaintEls.length; i++) { + _updateOffset({ + elId: repaintEls[i].getAttribute("id"), + // offset: { + // left: o.o.left + repaintEls[i].offset.left, + // top: o.o.top + repaintEls[i].offset.top + // }, + recalc: true, + timestamp: timestamp + }); + } + + var d2 = _currentInstance.router.redraw(id, ui, timestamp, null, clearEdits); + Array.prototype.push.apply(drawResult.c, d2.c); + Array.prototype.push.apply(drawResult.e, d2.e); + + if (repaintEls) { + for (var j = 0; j < repaintEls.length; j++) { + d2 = _currentInstance.router.redraw(repaintEls[j].getAttribute("id"), null, timestamp, null, clearEdits, true); + Array.prototype.push.apply(drawResult.c, d2.c); + Array.prototype.push.apply(drawResult.e, d2.e); + } + } + } + } + + return drawResult; + }, + + // + // gets an Endpoint by uuid. + // + _getEndpoint = function (uuid) { + return endpointsByUUID[uuid]; + }, + + /** * inits a draggable if it's not already initialised. * TODO: somehow abstract this to the adapter, because the concept of "draggable" has no * place on the server. - */_scopeMatch=function _scopeMatch(e1,e2){var s1=e1.scope.split(/\s/),s2=e2.scope.split(/\s/);for(var i=0;i {el, endpoint[], connection, position}] information. - */this.getManagedElements=function(){return managedElements;};this.connectorClass="jtk-connector";this.connectorOutlineClass="jtk-connector-outline";this.connectedClass="jtk-connected";this.hoverClass="jtk-hover";this.endpointClass="jtk-endpoint";this.endpointConnectedClass="jtk-endpoint-connected";this.endpointFullClass="jtk-endpoint-full";this.endpointDropAllowedClass="jtk-endpoint-drop-allowed";this.endpointDropForbiddenClass="jtk-endpoint-drop-forbidden";this.overlayClass="jtk-overlay";this.draggingClass="jtk-dragging";// CONVERTED -this.elementDraggingClass="jtk-element-dragging";// CONVERTED -this.sourceElementDraggingClass="jtk-source-element-dragging";// CONVERTED -this.targetElementDraggingClass="jtk-target-element-dragging";// CONVERTED -this.endpointAnchorClassPrefix="jtk-endpoint-anchor";this.hoverSourceClass="jtk-source-hover";this.hoverTargetClass="jtk-target-hover";this.dragSelectClass="jtk-drag-select";this.Anchors={};this.Connectors={"svg":{}};this.Endpoints={"svg":{}};this.Overlays={"svg":{}};this.ConnectorRenderers={};this.SVG="svg";// --------------------------- jsPlumbInstance public API --------------------------------------------------------- -this.addEndpoint=function(el,params,referenceParams){referenceParams=referenceParams||{};var p=jsPlumb.extend({},referenceParams);jsPlumb.extend(p,params);p.endpoint=p.endpoint||_currentInstance.Defaults.Endpoint;p.paintStyle=p.paintStyle||_currentInstance.Defaults.EndpointStyle;var results=[],inputs=_ju.isArray(el)||el.length!=null&&!_ju.isString(el)?el:[el];for(var i=0,j=inputs.length;i0){var values=Array.prototype.slice.call(arguments,1);try{for(var i=0,j=l.length;i 0) { + var values = Array.prototype.slice.call(arguments, 1); + try { + for (var i = 0, j = l.length; i < j; i++) { + r = r && l[i].apply(l[i], values); + } + } + catch (e) { + _ju.log(_currentInstance, "cannot check condition [" + conditionName + "]" + e); + } + } + return r; + }; + + this.connect = function (params, referenceParams) { + // prepare a final set of parameters to create connection with + var _p = _prepareConnectionParams(params, referenceParams), jpc; + // TODO probably a nicer return value if the connection was not made. _prepareConnectionParams + // will return null (and log something) if either endpoint was full. what would be nicer is to + // create a dedicated 'error' object. + if (_p) { + if (_p.source == null && _p.sourceEndpoint == null) { + _ju.log("Cannot establish connection - source does not exist"); + return; + } + if (_p.target == null && _p.targetEndpoint == null) { + _ju.log("Cannot establish connection - target does not exist"); + return; + } + _ensureContainer(_p.source); + // create the connection. it is not yet registered + jpc = _newConnection(_p); + // now add it the model, fire an event, and redraw + _finaliseConnection(jpc, _p); + } + return jpc; + }; + + var stTypes = [ + { el: "source", elId: "sourceId", epDefs: "sourceEndpointDefinitions" }, + { el: "target", elId: "targetId", epDefs: "targetEndpointDefinitions" } + ]; + + var _set = function (c, el, idx, doNotRepaint) { + var ep, _st = stTypes[idx], cId = c[_st.elId], cEl = c[_st.el], sid, sep, + oldEndpoint = c.endpoints[idx]; + + var evtParams = { + index: idx, + originalSourceId: idx === 0 ? cId : c.sourceId, + newSourceId: c.sourceId, + originalTargetId: idx === 1 ? cId : c.targetId, + newTargetId: c.targetId, + connection: c + }; + + if (el.constructor === jsPlumb.Endpoint) { + ep = el; + ep.addConnection(c); + el = ep.element; + } + else { + sid = _getId(el); + sep = this[_st.epDefs][sid]; + + if (sid === c[_st.elId]) { + ep = null; // dont change source/target if the element is already the one given. + } + else if (sep) { + for (var t in sep) { + if (!sep[t].enabled) { + return; + } + ep = sep[t].endpoint != null && sep[t].endpoint._jsPlumb ? sep[t].endpoint : this.addEndpoint(el, sep[t].def); + if (sep[t].uniqueEndpoint) { + sep[t].endpoint = ep; + } + ep.addConnection(c); + } + } + else { + ep = c.makeEndpoint(idx === 0, el, sid); + } + } + + if (ep != null) { + oldEndpoint.detachFromConnection(c); + c.endpoints[idx] = ep; + c[_st.el] = ep.element; + c[_st.elId] = ep.elementId; + evtParams[idx === 0 ? "newSourceId" : "newTargetId"] = ep.elementId; + + fireMoveEvent(evtParams); + + if (!doNotRepaint) { + c.repaint(); + } + } + + evtParams.element = el; + return evtParams; + + }.bind(this); + + this.setSource = function (connection, el, doNotRepaint) { + var p = _set(connection, el, 0, doNotRepaint); + this.router.sourceOrTargetChanged(p.originalSourceId, p.newSourceId, connection, p.el, 0); + }; + this.setTarget = function (connection, el, doNotRepaint) { + var p = _set(connection, el, 1, doNotRepaint); + this.router.sourceOrTargetChanged(p.originalTargetId, p.newTargetId, connection, p.el, 1); + }; + + this.deleteEndpoint = function (object, dontUpdateHover, deleteAttachedObjects) { + var endpoint = (typeof object === "string") ? endpointsByUUID[object] : object; + if (endpoint) { + _currentInstance.deleteObject({ endpoint: endpoint, dontUpdateHover: dontUpdateHover, deleteAttachedObjects:deleteAttachedObjects }); + } + return _currentInstance; + }; + + this.deleteEveryEndpoint = function () { + var _is = _currentInstance.setSuspendDrawing(true); + for (var id in endpointsByElement) { + var endpoints = endpointsByElement[id]; + if (endpoints && endpoints.length) { + for (var i = 0, j = endpoints.length; i < j; i++) { + _currentInstance.deleteEndpoint(endpoints[i], true); + } + } + } + endpointsByElement = {}; + managedElements = {}; + endpointsByUUID = {}; + offsets = {}; + offsetTimestamps = {}; + _currentInstance.router.reset(); + var dm = _currentInstance.getDragManager(); + if (dm) { + dm.reset(); + } + if (!_is) { + _currentInstance.setSuspendDrawing(false); + } + return _currentInstance; + }; + + var fireDetachEvent = function (jpc, doFireEvent, originalEvent) { + // may have been given a connection, or in special cases, an object + var connType = _currentInstance.Defaults.ConnectionType || _currentInstance.getDefaultConnectionType(), + argIsConnection = jpc.constructor === connType, + params = argIsConnection ? { + connection: jpc, + source: jpc.source, target: jpc.target, + sourceId: jpc.sourceId, targetId: jpc.targetId, + sourceEndpoint: jpc.endpoints[0], targetEndpoint: jpc.endpoints[1] + } : jpc; + + if (doFireEvent) { + _currentInstance.fire("connectionDetached", params, originalEvent); + } + + // always fire this. used by internal jsplumb stuff. + _currentInstance.fire("internal.connectionDetached", params, originalEvent); + + _currentInstance.router.connectionDetached(params); + }; + + var fireMoveEvent = _currentInstance.fireMoveEvent = function (params, evt) { + _currentInstance.fire("connectionMoved", params, evt); + }; + + this.unregisterEndpoint = function (endpoint) { + if (endpoint._jsPlumb.uuid) { + endpointsByUUID[endpoint._jsPlumb.uuid] = null; + } + _currentInstance.router.deleteEndpoint(endpoint); + // TODO at least replace this with a removeWithFunction call. + for (var e in endpointsByElement) { + var endpoints = endpointsByElement[e]; + if (endpoints) { + var newEndpoints = []; + for (var i = 0, j = endpoints.length; i < j; i++) { + if (endpoints[i] !== endpoint) { + newEndpoints.push(endpoints[i]); + } + } + + endpointsByElement[e] = newEndpoints; + } + if (endpointsByElement[e].length < 1) { + delete endpointsByElement[e]; + } + } + }; + + var IS_DETACH_ALLOWED = "isDetachAllowed"; + var BEFORE_DETACH = "beforeDetach"; + var CHECK_CONDITION = "checkCondition"; + + /** + * Deletes a Connection. + * @method deleteConnection + * @param connection Connection to delete + * @param {Object} [params] Optional delete parameters + * @param {Boolean} [params.fireEvent=true] If false, a connection detached event will not be fired. Otherwise one will. + * @param {Boolean} [params.force=false] If true, the connection will be deleted even if a beforeDetach interceptor tries to stop the deletion. + * @returns {Boolean} True if the connection was deleted, false otherwise. + */ + this.deleteConnection = function(connection, params) { + + if (connection != null) { + params = params || {}; + + if (params.force || _ju.functionChain(true, false, [ + [ connection.endpoints[0], IS_DETACH_ALLOWED, [ connection ] ], + [ connection.endpoints[1], IS_DETACH_ALLOWED, [ connection ] ], + [ connection, IS_DETACH_ALLOWED, [ connection ] ], + [ _currentInstance, CHECK_CONDITION, [ BEFORE_DETACH, connection ] ] + ])) { + + connection.setHover(false); + fireDetachEvent(connection, !connection.pending && params.fireEvent !== false, params.originalEvent); + + connection.endpoints[0].detachFromConnection(connection); + connection.endpoints[1].detachFromConnection(connection); + _ju.removeWithFunction(connections, function (_c) { + return connection.id === _c.id; + }); + + connection.cleanup(); + connection.destroy(); + return true; + } + } + return false; + }; + + /** + * Remove all Connections from all elements, but leaves Endpoints in place ((unless a connection is set to auto delete its Endpoints). + * @method deleteEveryConnection + * @param {Object} [params] optional params object for the call + * @param {Boolean} [params.fireEvent=true] Whether or not to fire detach events + * @param {Boolean} [params.forceDetach=false] If true, this call will ignore any `beforeDetach` interceptors. + * @returns {Number} The number of connections that were deleted. + */ + this.deleteEveryConnection = function (params) { + params = params || {}; + var count = connections.length, deletedCount = 0; + _currentInstance.batch(function () { + for (var i = 0; i < count; i++) { + deletedCount += _currentInstance.deleteConnection(connections[0], params) ? 1 : 0; + } + }); + return deletedCount; + }; + + /** + * Removes all an element's Connections. * @method deleteConnectionsForElement * @param {Object} el Either the id of the element, or a selector for the element. * @param {Object} [params] Optional parameters. * @param {Boolean} [params.fireEvent=true] Whether or not to fire the detach event. * @param {Boolean} [params.forceDetach=false] If true, this call will ignore any `beforeDetach` interceptors. * @return {jsPlumbInstance} The current jsPlumb instance. - */this.deleteConnectionsForElement=function(el,params){params=params||{};el=_currentInstance.getElement(el);var id=_getId(el),endpoints=endpointsByElement[id];if(endpoints&&endpoints.length){for(var i=0,j=endpoints.length;i0?list.indexOf(value)!==-1:!missingIsFalse;};// get some connections, specifying source/target/scope -this.getConnections=function(options,flat){if(!options){options={};}else if(options.constructor===String){options={"scope":options};}var scope=options.scope||_currentInstance.getDefaultScope(),scopes=prepareList(scope,true),sources=prepareList(options.source),targets=prepareList(options.target),results=!flat&&scopes.length>1?{}:[],_addOne=function _addOne(scope,obj){if(!flat&&scopes.length>1){var ss=results[scope];if(ss==null){ss=results[scope]=[];}ss.push(obj);}else{results.push(obj);}};for(var j=0,jj=connections.length;j0&&!_ep.isSource,noMatchTarget=targetMatchExact&&targets.length>0&&!_ep.isTarget;if(noMatchSource||noMatchTarget){continue inner;}ep.push(_ep);}}}}return _makeEndpointSelectHandler2(ep);};// get all connections managed by the instance of jsplumb. -this.getAllConnections=function(){return connections;};this.getDefaultScope=function(){return DEFAULT_SCOPE;};// get an endpoint by uuid. -this.getEndpoint=_getEndpoint;/** + */ + this.deleteConnectionsForElement = function (el, params) { + params = params || {}; + el = _currentInstance.getElement(el); + var id = _getId(el), endpoints = endpointsByElement[id]; + if (endpoints && endpoints.length) { + for (var i = 0, j = endpoints.length; i < j; i++) { + endpoints[i].deleteEveryConnection(params); + } + } + return _currentInstance; + }; + + /// not public. but of course its exposed. how to change this. + this.deleteObject = function (params) { + var result = { + endpoints: {}, + connections: {}, + endpointCount: 0, + connectionCount: 0 + }, + deleteAttachedObjects = params.deleteAttachedObjects !== false; + + var unravelConnection = function (connection) { + if (connection != null && result.connections[connection.id] == null) { + if (!params.dontUpdateHover && connection._jsPlumb != null) { + connection.setHover(false); + } + result.connections[connection.id] = connection; + result.connectionCount++; + } + }; + var unravelEndpoint = function (endpoint) { + if (endpoint != null && result.endpoints[endpoint.id] == null) { + if (!params.dontUpdateHover && endpoint._jsPlumb != null) { + endpoint.setHover(false); + } + result.endpoints[endpoint.id] = endpoint; + result.endpointCount++; + + if (deleteAttachedObjects) { + for (var i = 0; i < endpoint.connections.length; i++) { + var c = endpoint.connections[i]; + unravelConnection(c); + } + } + } + }; + + if (params.connection) { + unravelConnection(params.connection); + } + else { + unravelEndpoint(params.endpoint); + } + + // loop through connections + for (var i in result.connections) { + var c = result.connections[i]; + if (c._jsPlumb) { + _ju.removeWithFunction(connections, function (_c) { + return c.id === _c.id; + }); + + fireDetachEvent(c, params.fireEvent === false ? false : !c.pending, params.originalEvent); + var doNotCleanup = params.deleteAttachedObjects == null ? null : !params.deleteAttachedObjects; + + c.endpoints[0].detachFromConnection(c, null, doNotCleanup); + c.endpoints[1].detachFromConnection(c, null, doNotCleanup); + + c.cleanup(true); + c.destroy(true); + } + } + + // loop through endpoints + for (var j in result.endpoints) { + var e = result.endpoints[j]; + if (e._jsPlumb) { + _currentInstance.unregisterEndpoint(e); + // FIRE some endpoint deleted event? + e.cleanup(true); + e.destroy(true); + } + } + + return result; + }; + + + // helpers for select/selectEndpoints + var _setOperation = function (list, func, args, selector) { + for (var i = 0, j = list.length; i < j; i++) { + list[i][func].apply(list[i], args); + } + return selector(list); + }, + _getOperation = function (list, func, args) { + var out = []; + for (var i = 0, j = list.length; i < j; i++) { + out.push([ list[i][func].apply(list[i], args), list[i] ]); + } + return out; + }, + setter = function (list, func, selector) { + return function () { + return _setOperation(list, func, arguments, selector); + }; + }, + getter = function (list, func) { + return function () { + return _getOperation(list, func, arguments); + }; + }, + prepareList = function (input, doNotGetIds) { + var r = []; + if (input) { + if (typeof input === 'string') { + if (input === "*") { + return input; + } + r.push(input); + } + else { + if (doNotGetIds) { + r = input; + } + else { + if (input.length) { + for (var i = 0, j = input.length; i < j; i++) { + r.push(_info(input[i]).id); + } + } + else { + r.push(_info(input).id); + } + } + } + } + return r; + }, + filterList = function (list, value, missingIsFalse) { + if (list === "*") { + return true; + } + return list.length > 0 ? list.indexOf(value) !== -1 : !missingIsFalse; + }; + + // get some connections, specifying source/target/scope + this.getConnections = function (options, flat) { + if (!options) { + options = {}; + } else if (options.constructor === String) { + options = { "scope": options }; + } + var scope = options.scope || _currentInstance.getDefaultScope(), + scopes = prepareList(scope, true), + sources = prepareList(options.source), + targets = prepareList(options.target), + results = (!flat && scopes.length > 1) ? {} : [], + _addOne = function (scope, obj) { + if (!flat && scopes.length > 1) { + var ss = results[scope]; + if (ss == null) { + ss = results[scope] = []; + } + ss.push(obj); + } else { + results.push(obj); + } + }; + + for (var j = 0, jj = connections.length; j < jj; j++) { + var c = connections[j], + sourceId = c.proxies && c.proxies[0] ? c.proxies[0].originalEp.elementId : c.sourceId, + targetId = c.proxies && c.proxies[1] ? c.proxies[1].originalEp.elementId : c.targetId; + + if (filterList(scopes, c.scope) && filterList(sources, sourceId) && filterList(targets, targetId)) { + _addOne(c.scope, c); + } + } + + return results; + }; + + var _curryEach = function (list, executor) { + return function (f) { + for (var i = 0, ii = list.length; i < ii; i++) { + f(list[i]); + } + return executor(list); + }; + }, + _curryGet = function (list) { + return function (idx) { + return list[idx]; + }; + }; + + var _makeCommonSelectHandler = function (list, executor) { + var out = { + length: list.length, + each: _curryEach(list, executor), + get: _curryGet(list) + }, + setters = ["setHover", "removeAllOverlays", "setLabel", "addClass", "addOverlay", "removeOverlay", + "removeOverlays", "showOverlay", "hideOverlay", "showOverlays", "hideOverlays", "setPaintStyle", + "setHoverPaintStyle", "setSuspendEvents", "setParameter", "setParameters", "setVisible", + "repaint", "addType", "toggleType", "removeType", "removeClass", "setType", "bind", "unbind" ], + + getters = ["getLabel", "getOverlay", "isHover", "getParameter", "getParameters", "getPaintStyle", + "getHoverPaintStyle", "isVisible", "hasType", "getType", "isSuspendEvents" ], + i, ii; + + for (i = 0, ii = setters.length; i < ii; i++) { + out[setters[i]] = setter(list, setters[i], executor); + } + + for (i = 0, ii = getters.length; i < ii; i++) { + out[getters[i]] = getter(list, getters[i]); + } + + return out; + }; + + var _makeConnectionSelectHandler = function (list) { + var common = _makeCommonSelectHandler(list, _makeConnectionSelectHandler); + return jsPlumb.extend(common, { + // setters + setDetachable: setter(list, "setDetachable", _makeConnectionSelectHandler), + setReattach: setter(list, "setReattach", _makeConnectionSelectHandler), + setConnector: setter(list, "setConnector", _makeConnectionSelectHandler), + delete: function () { + for (var i = 0, ii = list.length; i < ii; i++) { + _currentInstance.deleteConnection(list[i]); + } + }, + // getters + isDetachable: getter(list, "isDetachable"), + isReattach: getter(list, "isReattach") + }); + }; + + var _makeEndpointSelectHandler = function (list) { + var common = _makeCommonSelectHandler(list, _makeEndpointSelectHandler); + return jsPlumb.extend(common, { + setEnabled: setter(list, "setEnabled", _makeEndpointSelectHandler), + setAnchor: setter(list, "setAnchor", _makeEndpointSelectHandler), + isEnabled: getter(list, "isEnabled"), + deleteEveryConnection: function () { + for (var i = 0, ii = list.length; i < ii; i++) { + list[i].deleteEveryConnection(); + } + }, + "delete": function () { + for (var i = 0, ii = list.length; i < ii; i++) { + _currentInstance.deleteEndpoint(list[i]); + } + } + }); + }; + + this.select = function (params) { + params = params || {}; + params.scope = params.scope || "*"; + return _makeConnectionSelectHandler(params.connections || _currentInstance.getConnections(params, true)); + }; + + this.selectEndpoints = function (params) { + params = params || {}; + params.scope = params.scope || "*"; + var noElementFilters = !params.element && !params.source && !params.target, + elements = noElementFilters ? "*" : prepareList(params.element), + sources = noElementFilters ? "*" : prepareList(params.source), + targets = noElementFilters ? "*" : prepareList(params.target), + scopes = prepareList(params.scope, true); + + var ep = []; + + for (var el in endpointsByElement) { + var either = filterList(elements, el, true), + source = filterList(sources, el, true), + sourceMatchExact = sources !== "*", + target = filterList(targets, el, true), + targetMatchExact = targets !== "*"; + + // if they requested 'either' then just match scope. otherwise if they requested 'source' (not as a wildcard) then we have to match only endpoints that have isSource set to to true, and the same thing with isTarget. + if (either || source || target) { + inner: + for (var i = 0, ii = endpointsByElement[el].length; i < ii; i++) { + var _ep = endpointsByElement[el][i]; + if (filterList(scopes, _ep.scope, true)) { + + var noMatchSource = (sourceMatchExact && sources.length > 0 && !_ep.isSource), + noMatchTarget = (targetMatchExact && targets.length > 0 && !_ep.isTarget); + + if (noMatchSource || noMatchTarget) { + continue inner; + } + + ep.push(_ep); + } + } + } + } + + return _makeEndpointSelectHandler(ep); + }; + + // get all connections managed by the instance of jsplumb. + this.getAllConnections = function () { + return connections; + }; + this.getDefaultScope = function () { + return DEFAULT_SCOPE; + }; + // get an endpoint by uuid. + this.getEndpoint = _getEndpoint; + /** * Gets the list of Endpoints for a given element. * @method getEndpoints * @param {String|Element|Selector} el The element to get endpoints for. * @return {Endpoint[]} An array of Endpoints for the specified element. - */this.getEndpoints=function(el){return endpointsByElement[_info(el).id]||[];};// gets the default endpoint type. used when subclassing. see wiki. -this.getDefaultEndpointType=function(){return jsPlumb.Endpoint;};// gets the default connection type. used when subclassing. see wiki. -this.getDefaultConnectionType=function(){return jsPlumb.Connection;};/* + */ + this.getEndpoints = function (el) { + return endpointsByElement[_info(el).id] || []; + }; + // gets the default endpoint type. used when subclassing. see wiki. + this.getDefaultEndpointType = function () { + return jsPlumb.Endpoint; + }; + // gets the default connection type. used when subclassing. see wiki. + this.getDefaultConnectionType = function () { + return jsPlumb.Connection; + }; + /* * Gets an element's id, creating one if necessary. really only exposed * for the lib-specific functionality to access; would be better to pass * the current instance into the lib-specific code (even though this is * a static call. i just don't want to expose it to the public API). - */this.getId=_getId;this.draw=_draw;this.info=_info;this.appendElement=_appendElement;var _hoverSuspended=false;this.isHoverSuspended=function(){return _hoverSuspended;};this.setHoverSuspended=function(s){_hoverSuspended=s;};// set an element's connections to be hidden -this.hide=function(el,changeEndpoints){_setVisible(el,"none",changeEndpoints);return _currentInstance;};// exposed for other objects to use to get a unique id. -this.idstamp=_idstamp;// ensure that, if the current container exists, it is a DOM element and not a selector. -// if it does not exist and `candidate` is supplied, the offset parent of that element will be set as the Container. -// this is used to do a better default behaviour for the case that the user has not set a container: -// addEndpoint, makeSource, makeTarget and connect all call this method with the offsetParent of the -// element in question (for connect it is the source element). So if no container is set, it is inferred -// to be the offsetParent of the first element the user tries to connect. -var _ensureContainer=function _ensureContainer(candidate){if(!_container&&candidate){var can=_currentInstance.getElement(candidate);if(can.offsetParent){_currentInstance.setContainer(can.offsetParent);}}};var _getContainerFromDefaults=function _getContainerFromDefaults(){if(_currentInstance.Defaults.Container){_currentInstance.setContainer(_currentInstance.Defaults.Container);}};// check if a given element is managed or not. if not, add to our map. if drawing is not suspended then -// we'll also stash its dimensions; otherwise we'll do this in a lazy way through updateOffset. -var _manage=_currentInstance.manage=function(id,element,_transient,_recalc){if(!managedElements[id]){managedElements[id]={el:element,endpoints:[],connections:[],rotation:0};managedElements[id].info=_updateOffset({elId:id,timestamp:_suspendedAt});_currentInstance.addClass(element,"jtk-managed");if(!_transient){_currentInstance.fire("manageElement",{id:id,info:managedElements[id].info,el:element});}}else{if(_recalc){managedElements[id].info=_updateOffset({elId:id,timestamp:_suspendedAt,recalc:true});}}return managedElements[id];};this.unmanage=function(id){if(managedElements[id]){var el=managedElements[id].el;_currentInstance.removeClass(el,"jtk-managed");delete managedElements[id];_currentInstance.fire("unmanageElement",{id:id,el:el});}};this.rotate=function(elId,amountInDegrees,doNotRedraw){if(managedElements[elId]){managedElements[elId].rotation=amountInDegrees;managedElements[elId].el.style.transform="rotate("+amountInDegrees+"deg)";managedElements[elId].el.style.transformOrigin="center center";if(doNotRedraw!==true){return this.revalidate(elId);}}return{c:[],e:[]};};this.getRotation=function(elementId){return managedElements[elementId]?managedElements[elementId].rotation||0:0;};/** + */ + this.getId = _getId; + this.draw = _draw; + this.info = _info; + + this.appendElement = _appendElement; + + var _hoverSuspended = false; + this.isHoverSuspended = function () { + return _hoverSuspended; + }; + this.setHoverSuspended = function (s) { + _hoverSuspended = s; + }; + + // set an element's connections to be hidden + this.hide = function (el, changeEndpoints) { + _setVisible(el, "none", changeEndpoints); + return _currentInstance; + }; + + // exposed for other objects to use to get a unique id. + this.idstamp = _idstamp; + + // ensure that, if the current container exists, it is a DOM element and not a selector. + // if it does not exist and `candidate` is supplied, the offset parent of that element will be set as the Container. + // this is used to do a better default behaviour for the case that the user has not set a container: + // addEndpoint, makeSource, makeTarget and connect all call this method with the offsetParent of the + // element in question (for connect it is the source element). So if no container is set, it is inferred + // to be the offsetParent of the first element the user tries to connect. + var _ensureContainer = function (candidate) { + if (!_container && candidate) { + var can = _currentInstance.getElement(candidate); + if (can.offsetParent) { + _currentInstance.setContainer(can.offsetParent); + } + } + }; + + var _getContainerFromDefaults = function () { + if (_currentInstance.Defaults.Container) { + _currentInstance.setContainer(_currentInstance.Defaults.Container); + } + }; + + // check if a given element is managed or not. if not, add to our map. if drawing is not suspended then + // we'll also stash its dimensions; otherwise we'll do this in a lazy way through updateOffset. + var _manage = _currentInstance.manage = function (id, element, _transient, _recalc) { + if (!managedElements[id]) { + managedElements[id] = { + el: element, + endpoints: [], + connections: [], + rotation: 0 + }; + + managedElements[id].info = _updateOffset({ elId: id, timestamp: _suspendedAt }); + _currentInstance.addClass(element, "jtk-managed"); + + if (!_transient) { + _currentInstance.fire("manageElement", { id:id, info:managedElements[id].info, el:element }); + } + } else { + if (_recalc) { + managedElements[id].info = _updateOffset({ elId: id, timestamp: _suspendedAt, recalc:true }); + } + } + + return managedElements[id]; + }; + + this.unmanage = function(id) { + if (managedElements[id]) { + var el = managedElements[id].el; + _currentInstance.removeClass(el, "jtk-managed"); + delete managedElements[id]; + _currentInstance.fire("unmanageElement", {id:id, el:el}); + } + }; + + this.rotate = function(elId, amountInDegrees, doNotRedraw) { + if (managedElements[elId]) { + managedElements[elId].rotation = amountInDegrees; + + managedElements[elId].el.style.transform="rotate(" + amountInDegrees + "deg)"; + managedElements[elId].el.style.transformOrigin="center center"; + + if (doNotRedraw !== true) { + return this.revalidate(elId); + } + } + + return { + c:[], e:[] + }; + }; + + this.getRotation = function(elementId) { + return managedElements[elementId] ? managedElements[elementId].rotation || 0 : 0; + }; + + /** * updates the offset and size for a given element, and stores the * values. if 'offset' is not null we use that (it would have been * passed in from a drag call) because it's faster; but if it is null, * or if 'recalc' is true in order to force a recalculation, we get the current values. * @method updateOffset - */var _updateOffset=function _updateOffset(params){var timestamp=params.timestamp,recalc=params.recalc,offset=params.offset,elId=params.elId,s;if(_suspendDrawing&&!timestamp){timestamp=_suspendedAt;}if(!recalc){if(timestamp&×tamp===offsetTimestamps[elId]){return{o:params.offset||offsets[elId],s:sizes[elId]};}}if(recalc||!offset&&offsets[elId]==null){// if forced repaint or no offset available, we recalculate. -// get the current size and offset, and store them -s=managedElements[elId]?managedElements[elId].el:null;if(s!=null){sizes[elId]=_currentInstance.getSize(s);offsets[elId]=_currentInstance.getOffset(s);offsetTimestamps[elId]=timestamp;}}else{offsets[elId]=offset||offsets[elId];if(sizes[elId]==null){s=managedElements[elId].el;if(s!=null){sizes[elId]=_currentInstance.getSize(s);}}offsetTimestamps[elId]=timestamp;}if(offsets[elId]&&!offsets[elId].right){offsets[elId].right=offsets[elId].left+sizes[elId][0];offsets[elId].bottom=offsets[elId].top+sizes[elId][1];offsets[elId].width=sizes[elId][0];offsets[elId].height=sizes[elId][1];offsets[elId].centerx=offsets[elId].left+offsets[elId].width/2;offsets[elId].centery=offsets[elId].top+offsets[elId].height/2;}return{o:offsets[elId],s:sizes[elId]};};this.updateOffset=_updateOffset;/** + */ + var _updateOffset = function (params) { + + var timestamp = params.timestamp, recalc = params.recalc, offset = params.offset, elId = params.elId, s; + if (_suspendDrawing && !timestamp) { + timestamp = _suspendedAt; + } + if (!recalc) { + if (timestamp && timestamp === offsetTimestamps[elId]) { + return {o: params.offset || offsets[elId], s: sizes[elId]}; + } + } + if (recalc || (!offset && offsets[elId] == null)) { // if forced repaint or no offset available, we recalculate. + + // get the current size and offset, and store them + s = managedElements[elId] ? managedElements[elId].el : null; + if (s != null) { + sizes[elId] = _currentInstance.getSize(s); + offsets[elId] = _currentInstance.getOffset(s); + offsetTimestamps[elId] = timestamp; + } + } else { + offsets[elId] = offset || offsets[elId]; + if (sizes[elId] == null) { + s = managedElements[elId].el; + if (s != null) { + sizes[elId] = _currentInstance.getSize(s); + } + } + offsetTimestamps[elId] = timestamp; + } + + if (offsets[elId] && !offsets[elId].right) { + offsets[elId].right = offsets[elId].left + sizes[elId][0]; + offsets[elId].bottom = offsets[elId].top + sizes[elId][1]; + offsets[elId].width = sizes[elId][0]; + offsets[elId].height = sizes[elId][1]; + offsets[elId].centerx = offsets[elId].left + (offsets[elId].width / 2); + offsets[elId].centery = offsets[elId].top + (offsets[elId].height / 2); + } + + return {o: offsets[elId], s: sizes[elId]}; + }; + + this.updateOffset = _updateOffset; + + /** * callback from the current library to tell us to prepare ourselves (attach * mouse listeners etc; can't do that until the library has provided a bind method) - */this.init=function(){if(!initialized){_getContainerFromDefaults();_currentInstance.router=new root.jsPlumb.DefaultRouter(_currentInstance);_currentInstance.anchorManager=_currentInstance.router.anchorManager;initialized=true;_currentInstance.fire("ready",_currentInstance);}}.bind(this);this.log=log;this.jsPlumbUIComponent=jsPlumbUIComponent;/* + */ + this.init = function () { + if (!initialized) { + _getContainerFromDefaults(); + _currentInstance.router = new root.jsPlumb.DefaultRouter(_currentInstance); + _currentInstance.anchorManager = _currentInstance.router.anchorManager; + initialized = true; + _currentInstance.fire("ready", _currentInstance); + } + }.bind(this); + + this.log = log; + this.jsPlumbUIComponent = jsPlumbUIComponent; + + /* * Creates an anchor with the given params. * * * Returns: The newly created Anchor. * Throws: an error if a named anchor was not found. - */this.makeAnchor=function(){var pp,_a=function _a(t,p){if(root.jsPlumb.Anchors[t]){return new root.jsPlumb.Anchors[t](p);}if(!_currentInstance.Defaults.DoNotThrowErrors){throw{msg:"jsPlumb: unknown anchor type '"+t+"'"};}};if(arguments.length===0){return null;}var specimen=arguments[0],elementId=arguments[1],jsPlumbInstance=arguments[2],newAnchor=null;// if it appears to be an anchor already... -if(specimen.compute&&specimen.getOrientation){return specimen;}//TODO hazy here about whether it should be added or is already added somehow. -// is it the name of an anchor type? -else if(typeof specimen==="string"){newAnchor=_a(arguments[0],{elementId:elementId,jsPlumbInstance:_currentInstance});}// is it an array? it will be one of: -// an array of [spec, params] - this defines a single anchor, which may be dynamic, but has parameters. -// an array of arrays - this defines some dynamic anchors -// an array of numbers - this defines a single anchor. -else if(_ju.isArray(specimen)){if(_ju.isArray(specimen[0])||_ju.isString(specimen[0])){// if [spec, params] format -if(specimen.length===2&&_ju.isObject(specimen[1])){// if first arg is a string, its a named anchor with params -if(_ju.isString(specimen[0])){pp=root.jsPlumb.extend({elementId:elementId,jsPlumbInstance:_currentInstance},specimen[1]);newAnchor=_a(specimen[0],pp);}// otherwise first arg is array, second is params. we treat as a dynamic anchor, which is fine -// even if the first arg has only one entry. you could argue all anchors should be implicitly dynamic in fact. -else{pp=root.jsPlumb.extend({elementId:elementId,jsPlumbInstance:_currentInstance,anchors:specimen[0]},specimen[1]);newAnchor=new root.jsPlumb.DynamicAnchor(pp);}}else{newAnchor=new jsPlumb.DynamicAnchor({anchors:specimen,selector:null,elementId:elementId,jsPlumbInstance:_currentInstance});}}else{var anchorParams={x:specimen[0],y:specimen[1],orientation:specimen.length>=4?[specimen[2],specimen[3]]:[0,0],offsets:specimen.length>=6?[specimen[4],specimen[5]]:[0,0],elementId:elementId,jsPlumbInstance:_currentInstance,cssClass:specimen.length===7?specimen[6]:null};newAnchor=new root.jsPlumb.Anchor(anchorParams);newAnchor.clone=function(){return new root.jsPlumb.Anchor(anchorParams);};}}if(!newAnchor.id){newAnchor.id="anchor_"+_idstamp();}return newAnchor;};/** + */ + this.makeAnchor = function () { + var pp, _a = function (t, p) { + if (root.jsPlumb.Anchors[t]) { + return new root.jsPlumb.Anchors[t](p); + } + if (!_currentInstance.Defaults.DoNotThrowErrors) { + throw { msg: "jsPlumb: unknown anchor type '" + t + "'" }; + } + }; + if (arguments.length === 0) { + return null; + } + var specimen = arguments[0], elementId = arguments[1], jsPlumbInstance = arguments[2], newAnchor = null; + // if it appears to be an anchor already... + if (specimen.compute && specimen.getOrientation) { + return specimen; + } //TODO hazy here about whether it should be added or is already added somehow. + // is it the name of an anchor type? + else if (typeof specimen === "string") { + newAnchor = _a(arguments[0], {elementId: elementId, jsPlumbInstance: _currentInstance}); + } + // is it an array? it will be one of: + // an array of [spec, params] - this defines a single anchor, which may be dynamic, but has parameters. + // an array of arrays - this defines some dynamic anchors + // an array of numbers - this defines a single anchor. + else if (_ju.isArray(specimen)) { + if (_ju.isArray(specimen[0]) || _ju.isString(specimen[0])) { + // if [spec, params] format + if (specimen.length === 2 && _ju.isObject(specimen[1])) { + // if first arg is a string, its a named anchor with params + if (_ju.isString(specimen[0])) { + pp = root.jsPlumb.extend({elementId: elementId, jsPlumbInstance: _currentInstance}, specimen[1]); + newAnchor = _a(specimen[0], pp); + } + // otherwise first arg is array, second is params. we treat as a dynamic anchor, which is fine + // even if the first arg has only one entry. you could argue all anchors should be implicitly dynamic in fact. + else { + pp = root.jsPlumb.extend({elementId: elementId, jsPlumbInstance: _currentInstance, anchors: specimen[0]}, specimen[1]); + newAnchor = new root.jsPlumb.DynamicAnchor(pp); + } + } + else { + newAnchor = new jsPlumb.DynamicAnchor({anchors: specimen, selector: null, elementId: elementId, jsPlumbInstance: _currentInstance}); + } + + } + else { + var anchorParams = { + x: specimen[0], y: specimen[1], + orientation: (specimen.length >= 4) ? [ specimen[2], specimen[3] ] : [0, 0], + offsets: (specimen.length >= 6) ? [ specimen[4], specimen[5] ] : [ 0, 0 ], + elementId: elementId, + jsPlumbInstance: _currentInstance, + cssClass: specimen.length === 7 ? specimen[6] : null + }; + newAnchor = new root.jsPlumb.Anchor(anchorParams); + newAnchor.clone = function () { + return new root.jsPlumb.Anchor(anchorParams); + }; + } + } + + if (!newAnchor.id) { + newAnchor.id = "anchor_" + _idstamp(); + } + return newAnchor; + }; + + /** * makes a list of anchors from the given list of types or coords, eg * ["TopCenter", "RightMiddle", "BottomCenter", [0, 1, -1, -1] ] - */this.makeAnchors=function(types,elementId,jsPlumbInstance){var r=[];for(var i=0,ii=types.length;i0&&targetCount>=elInfo.def.maxConnections;},element:elInfo.el,elementId:elInfo.id,isSource:isSource,isTarget:isTarget,addClass:function addClass(clazz){_currentInstance.addClass(elInfo.el,clazz);},removeClass:function removeClass(clazz){_currentInstance.removeClass(elInfo.el,clazz);},onDrop:function onDrop(jpc){var source=jpc.endpoints[0];source.anchor.locked=false;},isDropAllowed:function isDropAllowed(){return proxyComponent.isDropAllowed.apply(proxyComponent,arguments);},isRedrop:function isRedrop(jpc){return jpc.suspendedElement!=null&&jpc.suspendedEndpoint!=null&&jpc.suspendedEndpoint.element===elInfo.el;},getEndpoint:function getEndpoint(jpc){// make a new Endpoint for the target, or get it from the cache if uniqueEndpoint -// is set. if its a redrop the new endpoint will be immediately cleaned up. -var newEndpoint=elInfo.def.endpoint;// if no cached endpoint, or there was one but it has been cleaned up -// (ie. detached), create a new one -if(newEndpoint==null||newEndpoint._jsPlumb==null){var eps=_currentInstance.deriveEndpointAndAnchorSpec(jpc.getType().join(" "),true);var pp=eps.endpoints?root.jsPlumb.extend(p,{endpoint:elInfo.def.def.endpoint||eps.endpoints[1]}):p;if(eps.anchors){pp=root.jsPlumb.extend(pp,{anchor:elInfo.def.def.anchor||eps.anchors[1]});}newEndpoint=_currentInstance.addEndpoint(elInfo.el,pp);newEndpoint._mtNew=true;}if(p.uniqueEndpoint){elInfo.def.endpoint=newEndpoint;}newEndpoint.setDeleteOnEmpty(true);// if connection is detachable, init the new endpoint to be draggable, to support that happening. -if(jpc.isDetachable()){newEndpoint.initDraggable();}// if the anchor has a 'positionFinder' set, then delegate to that function to find -// out where to locate the anchor. -if(newEndpoint.anchor.positionFinder!=null){var dropPosition=_currentInstance.getUIPosition(arguments,_currentInstance.getZoom()),elPosition=_currentInstance.getOffset(elInfo.el),elSize=_currentInstance.getSize(elInfo.el),ap=dropPosition==null?[0,0]:newEndpoint.anchor.positionFinder(dropPosition,elPosition,elSize,newEndpoint.anchor.constructorParams);newEndpoint.anchor.x=ap[0];newEndpoint.anchor.y=ap[1];// now figure an orientation for it..kind of hard to know what to do actually. probably the best thing i can do is to -// support specifying an orientation in the anchor's spec. if one is not supplied then i will make the orientation -// be what will cause the most natural link to the source: it will be pointing at the source, but it needs to be -// specified in one axis only, and so how to make that choice? i think i will use whichever axis is the one in which -// the target is furthest away from the source. -}return newEndpoint;},maybeCleanup:function maybeCleanup(ep){if(ep._mtNew&&ep.connections.length===0){_currentInstance.deleteObject({endpoint:ep});}else{delete ep._mtNew;}}});// wrap drop events as needed and initialise droppable -var dropEvent=root.jsPlumb.dragEvents.drop;dropOptions.scope=dropOptions.scope||p.scope||_currentInstance.Defaults.Scope;dropOptions[dropEvent]=_ju.wrap(dropOptions[dropEvent],_drop,true);dropOptions.rank=p.rank||0;// if target, return true from the over event. this will cause katavorio to stop setting drops to hover -// if multipleDrop is set to false. -if(isTarget){dropOptions[root.jsPlumb.dragEvents.over]=function(){return true;};}// vanilla jsplumb only -if(p.allowLoopback===false){dropOptions.canDrop=function(_drag){var de=_drag.getDragElement()._jsPlumbRelatedElement;return de!==elInfo.el;};}_currentInstance.initDroppable(elInfo.el,dropOptions,"internal");return _drop;};// see API docs -this.makeTarget=function(el,params,referenceParams){// put jsplumb ref into params without altering the params passed in -var p=root.jsPlumb.extend({_jsPlumb:this},referenceParams);root.jsPlumb.extend(p,params);var maxConnections=p.maxConnections||-1,_doOne=function(el){// get the element's id and store the endpoint definition for it. jsPlumb.connect calls will look for one of these, -// and use the endpoint definition if found. -// decode the info for this element (id and element) -var elInfo=_info(el),elid=elInfo.id,dropOptions=root.jsPlumb.extend({},p.dropOptions||{}),type=p.connectionType||"default";this.targetEndpointDefinitions[elid]=this.targetEndpointDefinitions[elid]||{};_ensureContainer(elid);// if this is a group and the user has not mandated a rank, set to -1 so that Nodes takes -// precedence. -if(elInfo.el._isJsPlumbGroup&&dropOptions.rank==null){dropOptions.rank=-1;}// store the definition -var _def={def:root.jsPlumb.extend({},p),uniqueEndpoint:p.uniqueEndpoint,maxConnections:maxConnections,enabled:true};if(p.createEndpoint){_def.uniqueEndpoint=true;_def.endpoint=_currentInstance.addEndpoint(el,_def.def);_def.endpoint.setDeleteOnEmpty(false);}elInfo.def=_def;this.targetEndpointDefinitions[elid][type]=_def;_makeElementDropHandler(elInfo,p,dropOptions,p.isSource===true,true);// stash the definition on the drop -elInfo.el._katavorioDrop[elInfo.el._katavorioDrop.length-1].targetDef=_def;}.bind(this);// make an array if only given one element -var inputs=el.length&&el.constructor!==String?el:[el];// register each one in the list. -for(var i=0,ii=inputs.length;i=0&&sourceCount>=def.maxConnections){if(onMaxConnections){onMaxConnections({element:elInfo.el,maxConnections:maxConnections},e);}return false;}// find the position on the element at which the mouse was pressed; this is where the endpoint -// will be located. -var elxy=root.jsPlumb.getPositionOnElement(e,_del,_zoom);// we need to override the anchor in here, and force 'isSource', but we don't want to mess with -// the params passed in, because after a connection is established we're going to reset the endpoint -// to have the anchor we were given. -var tempEndpointParams={};root.jsPlumb.extend(tempEndpointParams,def.def);tempEndpointParams.isTemporarySource=true;tempEndpointParams.anchor=[elxy[0],elxy[1],0,0];tempEndpointParams.dragOptions=dragOptions;if(def.def.scope){tempEndpointParams.scope=def.def.scope;}ep=this.addEndpoint(elid,tempEndpointParams);endpointAddedButNoDragYet=true;ep.setDeleteOnEmpty(true);// if unique endpoint and it's already been created, push it onto the endpoint we create. at the end -// of a successful connection we'll switch to that endpoint. -// TODO this is the same code as the programmatic endpoints create on line 1050 ish -if(def.uniqueEndpoint){if(!def.endpoint){def.endpoint=ep;ep.setDeleteOnEmpty(false);}else{ep.finalEndpoint=def.endpoint;}}var _delTempEndpoint2=function _delTempEndpoint(){// this mouseup event is fired only if no dragging occurred, by jquery and yui, but for mootools -// it is fired even if dragging has occurred, in which case we would blow away a perfectly -// legitimate endpoint, were it not for this check. the flag is set after adding an -// endpoint and cleared in a drag listener we set in the dragOptions above. -_currentInstance.off(ep.canvas,"mouseup",_delTempEndpoint2);_currentInstance.off(elInfo.el,"mouseup",_delTempEndpoint2);if(endpointAddedButNoDragYet){endpointAddedButNoDragYet=false;_currentInstance.deleteEndpoint(ep);}};_currentInstance.on(ep.canvas,"mouseup",_delTempEndpoint2);_currentInstance.on(elInfo.el,"mouseup",_delTempEndpoint2);// optionally check for attributes to extract from the source element -var payload={};if(def.def.extract){for(var att in def.def.extract){var v=(e.srcElement||e.target).getAttribute(att);if(v){payload[def.def.extract[att]]=v;}}}// and then trigger its mousedown event, which will kick off a drag, which will start dragging -// a new connection from this endpoint. -_currentInstance.trigger(ep.canvas,"mousedown",e,payload);_ju.consume(e);}.bind(this);this.on(elInfo.el,"mousedown",mouseDownListener);_def.trigger=mouseDownListener;// if a filter was provided, set it as a dragFilter on the element, -// to prevent the element drag function from kicking in when we want to -// drag a new connection -if(p.filter&&(_ju.isString(p.filter)||_ju.isFunction(p.filter))){_currentInstance.setDragFilter(elInfo.el,p.filter);}var dropOptions=root.jsPlumb.extend({},p.dropOptions||{});_makeElementDropHandler(elInfo,p,dropOptions,true,p.isTarget===true);}.bind(this);var inputs=el.length&&el.constructor!==String?el:[el];for(var i=0,ii=inputs.length;i 0 && targetCount >= elInfo.def.maxConnections; + }, + element: elInfo.el, + elementId: elInfo.id, + isSource: isSource, + isTarget: isTarget, + addClass: function (clazz) { + _currentInstance.addClass(elInfo.el, clazz); + }, + removeClass: function (clazz) { + _currentInstance.removeClass(elInfo.el, clazz); + }, + onDrop: function (jpc) { + var source = jpc.endpoints[0]; + source.anchor.locked = false; + }, + isDropAllowed: function () { + return proxyComponent.isDropAllowed.apply(proxyComponent, arguments); + }, + isRedrop:function(jpc) { + return (jpc.suspendedElement != null && jpc.suspendedEndpoint != null && jpc.suspendedEndpoint.element === elInfo.el); + }, + getEndpoint: function (jpc) { + + // make a new Endpoint for the target, or get it from the cache if uniqueEndpoint + // is set. if its a redrop the new endpoint will be immediately cleaned up. + + var newEndpoint = elInfo.def.endpoint; + + // if no cached endpoint, or there was one but it has been cleaned up + // (ie. detached), create a new one + if (newEndpoint == null || newEndpoint._jsPlumb == null) { + var eps = _currentInstance.deriveEndpointAndAnchorSpec(jpc.getType().join(" "), true); + var pp = eps.endpoints ? root.jsPlumb.extend(p, { + endpoint:elInfo.def.def.endpoint || eps.endpoints[1] + }) :p; + if (eps.anchors) { + pp = root.jsPlumb.extend(pp, { + anchor:elInfo.def.def.anchor || eps.anchors[1] + }); + } + newEndpoint = _currentInstance.addEndpoint(elInfo.el, pp); + newEndpoint._mtNew = true; + } + + if (p.uniqueEndpoint) { + elInfo.def.endpoint = newEndpoint; + } + + newEndpoint.setDeleteOnEmpty(true); + + // if connection is detachable, init the new endpoint to be draggable, to support that happening. + if (jpc.isDetachable()) { + newEndpoint.initDraggable(); + } + + // if the anchor has a 'positionFinder' set, then delegate to that function to find + // out where to locate the anchor. + if (newEndpoint.anchor.positionFinder != null) { + var dropPosition = _currentInstance.getUIPosition(arguments, _currentInstance.getZoom()), + elPosition = _currentInstance.getOffset(elInfo.el), + elSize = _currentInstance.getSize(elInfo.el), + ap = dropPosition == null ? [0,0] : newEndpoint.anchor.positionFinder(dropPosition, elPosition, elSize, newEndpoint.anchor.constructorParams); + + newEndpoint.anchor.x = ap[0]; + newEndpoint.anchor.y = ap[1]; + // now figure an orientation for it..kind of hard to know what to do actually. probably the best thing i can do is to + // support specifying an orientation in the anchor's spec. if one is not supplied then i will make the orientation + // be what will cause the most natural link to the source: it will be pointing at the source, but it needs to be + // specified in one axis only, and so how to make that choice? i think i will use whichever axis is the one in which + // the target is furthest away from the source. + } + + return newEndpoint; + }, + maybeCleanup: function (ep) { + if (ep._mtNew && ep.connections.length === 0) { + _currentInstance.deleteObject({endpoint: ep}); + } + else { + delete ep._mtNew; + } + } + }); + + // wrap drop events as needed and initialise droppable + var dropEvent = root.jsPlumb.dragEvents.drop; + dropOptions.scope = dropOptions.scope || (p.scope || _currentInstance.Defaults.Scope); + dropOptions[dropEvent] = _ju.wrap(dropOptions[dropEvent], _drop, true); + dropOptions.rank = p.rank || 0; + + // if target, return true from the over event. this will cause katavorio to stop setting drops to hover + // if multipleDrop is set to false. + if (isTarget) { + dropOptions[root.jsPlumb.dragEvents.over] = function () { return true; }; + } + + // vanilla jsplumb only + if (p.allowLoopback === false) { + dropOptions.canDrop = function (_drag) { + var de = _drag.getDragElement()._jsPlumbRelatedElement; + return de !== elInfo.el; + }; + } + _currentInstance.initDroppable(elInfo.el, dropOptions, "internal"); + + return _drop; + + }; + + // see API docs + this.makeTarget = function (el, params, referenceParams) { + + // put jsplumb ref into params without altering the params passed in + var p = root.jsPlumb.extend({_jsPlumb: this}, referenceParams); + root.jsPlumb.extend(p, params); + + var maxConnections = p.maxConnections || -1, + + _doOne = function (el) { + + // get the element's id and store the endpoint definition for it. jsPlumb.connect calls will look for one of these, + // and use the endpoint definition if found. + // decode the info for this element (id and element) + var elInfo = _info(el), + elid = elInfo.id, + dropOptions = root.jsPlumb.extend({}, p.dropOptions || {}), + type = p.connectionType || "default"; + + this.targetEndpointDefinitions[elid] = this.targetEndpointDefinitions[elid] || {}; + + _ensureContainer(elid); + + // if this is a group and the user has not mandated a rank, set to -1 so that Nodes takes + // precedence. + if (elInfo.el._isJsPlumbGroup && dropOptions.rank == null) { + dropOptions.rank = -1; + } + + // store the definition + var _def = { + def: root.jsPlumb.extend({}, p), + uniqueEndpoint: p.uniqueEndpoint, + maxConnections: maxConnections, + enabled: true + }; + + if (p.createEndpoint) { + _def.uniqueEndpoint = true; + _def.endpoint = _currentInstance.addEndpoint(el, _def.def); + _def.endpoint.setDeleteOnEmpty(false); + } + + elInfo.def = _def; + this.targetEndpointDefinitions[elid][type] = _def; + _makeElementDropHandler(elInfo, p, dropOptions, p.isSource === true, true); + // stash the definition on the drop + elInfo.el._katavorioDrop[elInfo.el._katavorioDrop.length - 1].targetDef = _def; + + }.bind(this); + + // make an array if only given one element + var inputs = el.length && el.constructor !== String ? el : [ el ]; + + // register each one in the list. + for (var i = 0, ii = inputs.length; i < ii; i++) { + _doOne(inputs[i]); + } + + return this; + }; + + // see api docs + this.unmakeTarget = function (el, doNotClearArrays) { + var info = _info(el); + _currentInstance.destroyDroppable(info.el, "internal"); + if (!doNotClearArrays) { + delete this.targetEndpointDefinitions[info.id]; + } + + return this; + }; + + // see api docs + this.makeSource = function (el, params, referenceParams) { + var p = root.jsPlumb.extend({_jsPlumb: this}, referenceParams); + root.jsPlumb.extend(p, params); + var type = p.connectionType || "default"; + var aae = _currentInstance.deriveEndpointAndAnchorSpec(type); + p.endpoint = p.endpoint || aae.endpoints[0]; + p.anchor = p.anchor || aae.anchors[0]; + var maxConnections = p.maxConnections || -1, + onMaxConnections = p.onMaxConnections, + _doOne = function (elInfo) { + // get the element's id and store the endpoint definition for it. jsPlumb.connect calls will look for one of these, + // and use the endpoint definition if found. + var elid = elInfo.id, + _del = this.getElement(elInfo.el); + + this.sourceEndpointDefinitions[elid] = this.sourceEndpointDefinitions[elid] || {}; + _ensureContainer(elid); + + var _def = { + def:root.jsPlumb.extend({}, p), + uniqueEndpoint: p.uniqueEndpoint, + maxConnections: maxConnections, + enabled: true + }; + + if (p.createEndpoint) { + _def.uniqueEndpoint = true; + _def.endpoint = _currentInstance.addEndpoint(el, _def.def); + _def.endpoint.setDeleteOnEmpty(false); + } + + this.sourceEndpointDefinitions[elid][type] = _def; + elInfo.def = _def; + + var stopEvent = root.jsPlumb.dragEvents.stop, + dragEvent = root.jsPlumb.dragEvents.drag, + dragOptions = root.jsPlumb.extend({ }, p.dragOptions || {}), + existingDrag = dragOptions.drag, + existingStop = dragOptions.stop, + ep = null, + endpointAddedButNoDragYet = false; + + // set scope if its not set in dragOptions but was passed in in params + dragOptions.scope = dragOptions.scope || p.scope; + + dragOptions[dragEvent] = _ju.wrap(dragOptions[dragEvent], function () { + if (existingDrag) { + existingDrag.apply(this, arguments); + } + endpointAddedButNoDragYet = false; + }); + + dragOptions[stopEvent] = _ju.wrap(dragOptions[stopEvent], function () { + + if (existingStop) { + existingStop.apply(this, arguments); + } + this.currentlyDragging = false; + if (ep._jsPlumb != null) { // if not cleaned up... + + // reset the anchor to the anchor that was initially provided. the one we were using to drag + // the connection was just a placeholder that was located at the place the user pressed the + // mouse button to initiate the drag. + var anchorDef = p.anchor || this.Defaults.Anchor, + oldAnchor = ep.anchor, + oldConnection = ep.connections[0]; + + var newAnchor = this.makeAnchor(anchorDef, elid, this), + _el = ep.element; + + // if the anchor has a 'positionFinder' set, then delegate to that function to find + // out where to locate the anchor. issue 117. + if (newAnchor.positionFinder != null) { + var elPosition = _currentInstance.getOffset(_el), + elSize = this.getSize(_el), + dropPosition = { left: elPosition.left + (oldAnchor.x * elSize[0]), top: elPosition.top + (oldAnchor.y * elSize[1]) }, + ap = newAnchor.positionFinder(dropPosition, elPosition, elSize, newAnchor.constructorParams); + + newAnchor.x = ap[0]; + newAnchor.y = ap[1]; + } + + ep.setAnchor(newAnchor, true); + ep.repaint(); + this.repaint(ep.elementId); + if (oldConnection != null) { + this.repaint(oldConnection.targetId); + } + } + }.bind(this)); + + // when the user presses the mouse, add an Endpoint, if we are enabled. + var mouseDownListener = function (e) { + // on right mouse button, abort. + if (e.which === 3 || e.button === 2) { + return; + } + + elid = this.getId(this.getElement(elInfo.el)); // elid might have changed since this method was called to configure the element. + + // TODO store def on element. + var def = this.sourceEndpointDefinitions[elid][type]; + + // if disabled, return. + if (!def.enabled) { + return; + } + + // if a filter was given, run it, and return if it says no. + if (p.filter) { + var r = _ju.isString(p.filter) ? selectorFilter(e, elInfo.el, p.filter, this, p.filterExclude) : p.filter(e, elInfo.el); + if (r === false) { + return; + } + } + + // if maxConnections reached + var sourceCount = this.select({source: elid}).length; + if (def.maxConnections >= 0 && (sourceCount >= def.maxConnections)) { + if (onMaxConnections) { + onMaxConnections({ + element: elInfo.el, + maxConnections: maxConnections + }, e); + } + return false; + } + + // find the position on the element at which the mouse was pressed; this is where the endpoint + // will be located. + var elxy = root.jsPlumb.getPositionOnElement(e, _del, _zoom); + + // we need to override the anchor in here, and force 'isSource', but we don't want to mess with + // the params passed in, because after a connection is established we're going to reset the endpoint + // to have the anchor we were given. + var tempEndpointParams = {}; + root.jsPlumb.extend(tempEndpointParams, def.def); + tempEndpointParams.isTemporarySource = true; + tempEndpointParams.anchor = [ elxy[0], elxy[1] , 0, 0]; + tempEndpointParams.dragOptions = dragOptions; + + if (def.def.scope) { + tempEndpointParams.scope = def.def.scope; + } + + ep = this.addEndpoint(elid, tempEndpointParams); + endpointAddedButNoDragYet = true; + ep.setDeleteOnEmpty(true); + + // if unique endpoint and it's already been created, push it onto the endpoint we create. at the end + // of a successful connection we'll switch to that endpoint. + // TODO this is the same code as the programmatic endpoints create on line 1050 ish + if (def.uniqueEndpoint) { + if (!def.endpoint) { + def.endpoint = ep; + ep.setDeleteOnEmpty(false); + } + else { + ep.finalEndpoint = def.endpoint; + } + } + + var _delTempEndpoint = function () { + // this mouseup event is fired only if no dragging occurred, by jquery and yui, but for mootools + // it is fired even if dragging has occurred, in which case we would blow away a perfectly + // legitimate endpoint, were it not for this check. the flag is set after adding an + // endpoint and cleared in a drag listener we set in the dragOptions above. + _currentInstance.off(ep.canvas, "mouseup", _delTempEndpoint); + _currentInstance.off(elInfo.el, "mouseup", _delTempEndpoint); + if (endpointAddedButNoDragYet) { + endpointAddedButNoDragYet = false; + _currentInstance.deleteEndpoint(ep); + } + }; + + _currentInstance.on(ep.canvas, "mouseup", _delTempEndpoint); + _currentInstance.on(elInfo.el, "mouseup", _delTempEndpoint); + + // optionally check for attributes to extract from the source element + var payload = {}; + if (def.def.extract) { + for (var att in def.def.extract) { + var v = (e.srcElement || e.target).getAttribute(att); + if (v) { + payload[def.def.extract[att]] = v; + } + } + } + + // and then trigger its mousedown event, which will kick off a drag, which will start dragging + // a new connection from this endpoint. + _currentInstance.trigger(ep.canvas, "mousedown", e, payload); + + _ju.consume(e); + + }.bind(this); + + this.on(elInfo.el, "mousedown", mouseDownListener); + _def.trigger = mouseDownListener; + + // if a filter was provided, set it as a dragFilter on the element, + // to prevent the element drag function from kicking in when we want to + // drag a new connection + if (p.filter && (_ju.isString(p.filter) || _ju.isFunction(p.filter))) { + _currentInstance.setDragFilter(elInfo.el, p.filter); + } + + var dropOptions = root.jsPlumb.extend({}, p.dropOptions || {}); + + _makeElementDropHandler(elInfo, p, dropOptions, true, p.isTarget === true); + + }.bind(this); + + var inputs = el.length && el.constructor !== String ? el : [ el ]; + for (var i = 0, ii = inputs.length; i < ii; i++) { + _doOne(_info(inputs[i])); + } + + return this; + }; + + // see api docs + this.unmakeSource = function (el, connectionType, doNotClearArrays) { + var info = _info(el); + _currentInstance.destroyDroppable(info.el, "internal"); + var eldefs = this.sourceEndpointDefinitions[info.id]; + if (eldefs) { + for (var def in eldefs) { + if (connectionType == null || connectionType === def) { + var mouseDownListener = eldefs[def].trigger; + if (mouseDownListener) { + _currentInstance.off(info.el, "mousedown", mouseDownListener); + } + if (!doNotClearArrays) { + delete this.sourceEndpointDefinitions[info.id][def]; + } + } + } + } + + return this; + }; + + // see api docs + this.unmakeEverySource = function () { + for (var i in this.sourceEndpointDefinitions) { + _currentInstance.unmakeSource(i, null, true); + } + + this.sourceEndpointDefinitions = {}; + return this; + }; + + var _getScope = function (el, types, connectionType) { + types = _ju.isArray(types) ? types : [ types ]; + var id = _getId(el); + connectionType = connectionType || "default"; + for (var i = 0; i < types.length; i++) { + var eldefs = this[types[i]][id]; + if (eldefs && eldefs[connectionType]) { + return eldefs[connectionType].def.scope || this.Defaults.Scope; + } + } + }.bind(this); + + var _setScope = function (el, scope, types, connectionType) { + types = _ju.isArray(types) ? types : [ types ]; + var id = _getId(el); + connectionType = connectionType || "default"; + for (var i = 0; i < types.length; i++) { + var eldefs = this[types[i]][id]; + if (eldefs && eldefs[connectionType]) { + eldefs[connectionType].def.scope = scope; + } + } + + }.bind(this); + + this.getScope = function (el, scope) { + return _getScope(el, [ "sourceEndpointDefinitions", "targetEndpointDefinitions" ]); + }; + this.getSourceScope = function (el) { + return _getScope(el, "sourceEndpointDefinitions"); + }; + this.getTargetScope = function (el) { + return _getScope(el, "targetEndpointDefinitions"); + }; + this.setScope = function (el, scope, connectionType) { + this.setSourceScope(el, scope, connectionType); + this.setTargetScope(el, scope, connectionType); + }; + this.setSourceScope = function (el, scope, connectionType) { + _setScope(el, scope, "sourceEndpointDefinitions", connectionType); + // we get the source scope during the mousedown event, but we also want to set this. + this.setDragScope(el, scope); + }; + this.setTargetScope = function (el, scope, connectionType) { + _setScope(el, scope, "targetEndpointDefinitions", connectionType); + this.setDropScope(el, scope); + }; + + // see api docs + this.unmakeEveryTarget = function () { + for (var i in this.targetEndpointDefinitions) { + _currentInstance.unmakeTarget(i, true); + } + + this.targetEndpointDefinitions = {}; + return this; + }; + + // does the work of setting a source enabled or disabled. + var _setEnabled = function (type, el, state, toggle, connectionType) { + var a = type === "source" ? this.sourceEndpointDefinitions : this.targetEndpointDefinitions, + originalState, info, newState; + + connectionType = connectionType || "default"; + + // a selector or an array + if (el.length && !_ju.isString(el)) { + originalState = []; + for (var i = 0, ii = el.length; i < ii; i++) { + info = _info(el[i]); + if (a[info.id] && a[info.id][connectionType]) { + originalState[i] = a[info.id][connectionType].enabled; + newState = toggle ? !originalState[i] : state; + a[info.id][connectionType].enabled = newState; + _currentInstance[newState ? "removeClass" : "addClass"](info.el, "jtk-" + type + "-disabled"); + } + } + } + // otherwise a DOM element or a String ID. + else { + info = _info(el); + var id = info.id; + if (a[id] && a[id][connectionType]) { + originalState = a[id][connectionType].enabled; + newState = toggle ? !originalState : state; + a[id][connectionType].enabled = newState; + _currentInstance[newState ? "removeClass" : "addClass"](info.el, "jtk-" + type + "-disabled"); + } + } + return originalState; + }.bind(this); + + var _first = function (el, fn) { + if (el != null) { + if (_ju.isString(el) || !el.length) { + return fn.apply(this, [el]); + } else if (el.length) { + return fn.apply(this, [el[0]]); + } + } + + }.bind(this); + + this.toggleSourceEnabled = function (el, connectionType) { + _setEnabled("source", el, null, true, connectionType); + return this.isSourceEnabled(el, connectionType); + }; + + this.setSourceEnabled = function (el, state, connectionType) { + return _setEnabled("source", el, state, null, connectionType); + }; + this.isSource = function (el, connectionType) { + connectionType = connectionType || "default"; + return _first(el, function (_el) { + var eldefs = this.sourceEndpointDefinitions[_info(_el).id]; + return eldefs != null && eldefs[connectionType] != null; + }.bind(this)); + }; + this.isSourceEnabled = function (el, connectionType) { + connectionType = connectionType || "default"; + return _first(el, function (_el) { + var sep = this.sourceEndpointDefinitions[_info(_el).id]; + return sep && sep[connectionType] && sep[connectionType].enabled === true; + }.bind(this)); + }; + + this.toggleTargetEnabled = function (el, connectionType) { + _setEnabled("target", el, null, true, connectionType); + return this.isTargetEnabled(el, connectionType); + }; + + this.isTarget = function (el, connectionType) { + connectionType = connectionType || "default"; + return _first(el, function (_el) { + var eldefs = this.targetEndpointDefinitions[_info(_el).id]; + return eldefs != null && eldefs[connectionType] != null; + }.bind(this)); + }; + this.isTargetEnabled = function (el, connectionType) { + connectionType = connectionType || "default"; + return _first(el, function (_el) { + var tep = this.targetEndpointDefinitions[_info(_el).id]; + return tep && tep[connectionType] && tep[connectionType].enabled === true; + }.bind(this)); + }; + this.setTargetEnabled = function (el, state, connectionType) { + return _setEnabled("target", el, state, null, connectionType); + }; + +// --------------------- end makeSource/makeTarget ---------------------------------------------- + + this.ready = function (fn) { + _currentInstance.bind("ready", fn); + }; + + var _elEach = function(el, fn) { + // support both lists... + if (typeof el === 'object' && el.length) { + for (var i = 0, ii = el.length; i < ii; i++) { + fn(el[i]); + } + } + else {// ...and single strings or elements. + fn(el); + } + + return _currentInstance; + }; + + // repaint some element's endpoints and connections + this.repaint = function (el, ui, timestamp) { + return _elEach(el, function(_el) { + _draw(_el, ui, timestamp); + }); + }; + + this.revalidate = function (el, timestamp, isIdAlready) { + var elId = isIdAlready ? el : _currentInstance.getId(el); + _currentInstance.updateOffset({ elId: elId, recalc: true, timestamp:timestamp }); + var dm = _currentInstance.getDragManager(); + if (dm) { + dm.updateOffsets(elId); + } + return _draw(el, null, timestamp); + }; + + // repaint every endpoint and connection. + this.repaintEverything = function () { + // TODO this timestamp causes continuous anchors to not repaint properly. + // fix this. do not just take out the timestamp. it runs a lot faster with + // the timestamp included. + var timestamp = jsPlumbUtil.uuid(), elId; + + for (elId in endpointsByElement) { + _currentInstance.updateOffset({ elId: elId, recalc: true, timestamp: timestamp }); + } + + for (elId in endpointsByElement) { + _draw(elId, null, timestamp); + } + + return this; + }; + + this.removeAllEndpoints = function (el, recurse, affectedElements) { + affectedElements = affectedElements || []; + var _one = function (_el) { + var info = _info(_el), + ebe = endpointsByElement[info.id], + i, ii; + + if (ebe) { + affectedElements.push(info); + for (i = 0, ii = ebe.length; i < ii; i++) { + _currentInstance.deleteEndpoint(ebe[i], false); + } + } + delete endpointsByElement[info.id]; + + if (recurse) { + if (info.el && info.el.nodeType !== 3 && info.el.nodeType !== 8) { + for (i = 0, ii = info.el.childNodes.length; i < ii; i++) { + _one(info.el.childNodes[i]); + } + } + } + + }; + _one(el); + return this; + }; + + var _doRemove = function(info, affectedElements) { + _currentInstance.removeAllEndpoints(info.id, true, affectedElements); + var dm = _currentInstance.getDragManager(); + var _one = function(_info) { + + if (dm) { + dm.elementRemoved(_info.id); + } + _currentInstance.router.elementRemoved(_info.id); + + if (_currentInstance.isSource(_info.el)) { + _currentInstance.unmakeSource(_info.el); + } + if (_currentInstance.isTarget(_info.el)) { + _currentInstance.unmakeTarget(_info.el); + } + _currentInstance.destroyDraggable(_info.el); + _currentInstance.destroyDroppable(_info.el); + + + delete _currentInstance.floatingConnections[_info.id]; + delete managedElements[_info.id]; + delete offsets[_info.id]; + if (_info.el) { + _currentInstance.removeElement(_info.el); + _info.el._jsPlumb = null; + } + }; + + // remove all affected child elements + for (var ae = 1; ae < affectedElements.length; ae++) { + _one(affectedElements[ae]); + } + // and always remove the requested one from the dom. + _one(info); + }; + + /** * Remove the given element, including cleaning up all endpoints registered for it. * This is exposed in the public API but also used internally by jsPlumb when removing the * element associated with a connection drag. - */this.remove=function(el,doNotRepaint){var info=_info(el),affectedElements=[];if(info.text&&info.el.parentNode){info.el.parentNode.removeChild(info.el);}else if(info.id){_currentInstance.batch(function(){_doRemove(info,affectedElements);},doNotRepaint===true);}return _currentInstance;};this.empty=function(el,doNotRepaint){var affectedElements=[];var _one6=function _one(el,dontRemoveFocus){var info=_info(el);if(info.text){info.el.parentNode.removeChild(info.el);}else if(info.el){while(info.el.childNodes.length>0){_one6(info.el.childNodes[0]);}if(!dontRemoveFocus){_doRemove(info,affectedElements);}}};_currentInstance.batch(function(){_one6(el,true);},doNotRepaint===false);return _currentInstance;};this.reset=function(doNotUnbindInstanceEventListeners){_currentInstance.silently(function(){_hoverSuspended=false;_currentInstance.removeAllGroups();_currentInstance.removeGroupManager();_currentInstance.deleteEveryEndpoint();if(!doNotUnbindInstanceEventListeners){_currentInstance.unbind();}this.targetEndpointDefinitions={};this.sourceEndpointDefinitions={};connections.length=0;if(this.doReset){this.doReset();}}.bind(this));};this.destroy=function(){this.reset();_container=null;_containerDelegations=null;};var _clearObject=function _clearObject(obj){if(obj.canvas&&obj.canvas.parentNode){obj.canvas.parentNode.removeChild(obj.canvas);}obj.cleanup();obj.destroy();};this.clear=function(){_currentInstance.select().each(_clearObject);_currentInstance.selectEndpoints().each(_clearObject);endpointsByElement={};endpointsByUUID={};};this.setDefaultScope=function(scope){DEFAULT_SCOPE=scope;return _currentInstance;};this.deriveEndpointAndAnchorSpec=function(type,dontPrependDefault){var bits=((dontPrependDefault?"":"default ")+type).split(/[\s]/),eps=null,ep=null,a=null,as=null;for(var i=0;i0){for(var i=0;i0?"add":"remove")+"Class"](_jsPlumb.endpointConnectedClass);this[(this.isFull()?"add":"remove")+"Class"](_jsPlumb.endpointFullClass);};this.detachFromConnection=function(connection,idx,doNotCleanup){idx=idx==null?this.connections.indexOf(connection):idx;if(idx>=0){this.connections.splice(idx,1);this[(this.connections.length>0?"add":"remove")+"Class"](_jsPlumb.endpointConnectedClass);this[(this.isFull()?"add":"remove")+"Class"](_jsPlumb.endpointFullClass);}if(!doNotCleanup&&deleteOnEmpty&&this.connections.length===0){_jsPlumb.deleteObject({endpoint:this,fireEvent:false,deleteAttachedObjects:doNotCleanup!==true});}};this.deleteEveryConnection=function(params){var c=this.connections.length;for(var i=0;i0){var c=findConnectionToUseForDynamicAnchor(this,params.elementWithPrecedence),oIdx=c.endpoints[0]===this?1:0,oId=oIdx===0?c.sourceId:c.targetId,oInfo=_jsPlumb.getCachedData(oId),oOffset=oInfo.o,oWH=oInfo.s;anchorParams.index=oIdx===0?1:0;anchorParams.connection=c;anchorParams.txy=[oOffset.left,oOffset.top];anchorParams.twh=oWH;anchorParams.tElement=c.endpoints[oIdx];anchorParams.tRotation=_jsPlumb.getRotation(oId);}else if(this.connections.length>0){anchorParams.connection=this.connections[0];}anchorParams.rotation=_jsPlumb.getRotation(this.elementId);ap=this.anchor.compute(anchorParams);}this.endpoint.compute(ap,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,connectorPaintStyle||this.paintStyleInUse);this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor);this.timestamp=timestamp;// paint overlays -for(var i in this._jsPlumb.overlays){if(this._jsPlumb.overlays.hasOwnProperty(i)){var o=this._jsPlumb.overlays[i];if(o.isVisible()){this._jsPlumb.overlayPlacements[i]=o.draw(this.endpoint,this._jsPlumb.paintStyleInUse);o.paint(this._jsPlumb.overlayPlacements[i]);}}}}}};this.getTypeDescriptor=function(){return"endpoint";};this.isVisible=function(){return this._jsPlumb.visible;};this.repaint=this.paint;var draggingInitialised=false;this.initDraggable=function(){// is this a connection source? we make it draggable and have the -// drag listener maintain a connection with a floating endpoint. -if(!draggingInitialised&&_jp.isDragSupported(this.element)){var placeholderInfo={id:null,element:null},jpc=null,existingJpc=false,existingJpcParams=null,_dragHandler=_makeConnectionDragHandler(this,placeholderInfo,_jsPlumb),dragOptions=params.dragOptions||{},defaultOpts={},startEvent=_jp.dragEvents.start,stopEvent=_jp.dragEvents.stop,dragEvent=_jp.dragEvents.drag,beforeStartEvent=_jp.dragEvents.beforeStart,payload;// respond to beforeStart from katavorio; this will have, optionally, a payload of attribute values -// that were placed there by the makeSource mousedown listener. -var beforeStart=function beforeStart(beforeStartParams){payload=beforeStartParams.e.payload||{};};var start=function(startParams){// ------------- first, get a connection to drag. this may be null, in which case we are dragging a new one. -jpc=this.connectorSelector();// -------------------------------- now a bunch of tests about whether or not to proceed ------------------------- -var _continue=true;// if not enabled, return -if(!this.isEnabled()){_continue=false;}// if no connection and we're not a source - or temporarily a source, as is the case with makeSource - return. -if(jpc==null&&!this.isSource&&!this.isTemporarySource){_continue=false;}// otherwise if we're full and not allowed to drag, also return false. -if(this.isSource&&this.isFull()&&!(jpc!=null&&this.dragAllowedWhenFull)){_continue=false;}// if the connection was setup as not detachable or one of its endpoints -// was setup as connectionsDetachable = false, or Defaults.ConnectionsDetachable -// is set to false... -if(jpc!=null&&!jpc.isDetachable(this)){// .. and the endpoint is full -if(this.isFull()){_continue=false;}else{// otherwise, if not full, set the connection to null, and we will now proceed -// to drag a new connection. -jpc=null;}}var beforeDrag=_jsPlumb.checkCondition(jpc==null?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:jpc});if(beforeDrag===false){_continue=false;}// else we might have been given some data. we'll pass it in to a new connection as 'data'. -// here we also merge in the optional payload we were given on mousedown. -else if(_typeof(beforeDrag)==="object"){_jp.extend(beforeDrag,payload||{});}else{// or if no beforeDrag data, maybe use the payload on its own. -beforeDrag=payload||{};}if(_continue===false){// this is for mootools and yui. returning false from this causes jquery to stop drag. -// the events are wrapped in both mootools and yui anyway, but i don't think returning -// false from the start callback would stop a drag. -if(_jsPlumb.stopDrag){_jsPlumb.stopDrag(this.canvas);}_dragHandler.stopDrag();return false;}// --------------------------------------------------------------------------------------------------------------------- -// ok to proceed. -// clear hover for all connections for this endpoint before continuing. -for(var i=0;i0&&this.connectionsDetachable!==false;}.bind(this);_jsPlumb.initDraggable(this.canvas,dragOptions,"internal");this.canvas._jsPlumbRelatedElement=this.element;draggingInitialised=true;}};var ep=params.endpoint||this._jsPlumb.instance.Defaults.Endpoint||_jp.Defaults.Endpoint;this.setEndpoint(ep,true);var anchorParamsToUse=params.anchor?params.anchor:params.anchors?params.anchors:_jsPlumb.Defaults.Anchor||"Top";this.setAnchor(anchorParamsToUse,true);// finally, set type if it was provided -var type=["default",params.type||""].join(" ");this.addType(type,params.data,true);this.canvas=this.endpoint.canvas;this.canvas._jsPlumb=this;this.initDraggable();// pulled this out into a function so we can reuse it for the inPlaceCopy canvas; you can now drop detached connections -// back onto the endpoint you detached it from. -var _initDropTarget=function(canvas,isTransient,endpoint,referenceEndpoint){if(_jp.isDropSupported(this.element)){var dropOptions=params.dropOptions||_jsPlumb.Defaults.DropOptions||_jp.Defaults.DropOptions;dropOptions=_jp.extend({},dropOptions);dropOptions.scope=dropOptions.scope||this.scope;var dropEvent=_jp.dragEvents.drop,overEvent=_jp.dragEvents.over,outEvent=_jp.dragEvents.out,_ep=this,drop=_jsPlumb.EndpointDropHandler({getEndpoint:function getEndpoint(){return _ep;},jsPlumb:_jsPlumb,enabled:function enabled(){return endpoint!=null?endpoint.isEnabled():true;},isFull:function isFull(){return endpoint.isFull();},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function addClass(clazz){_ep.addClass(clazz);},removeClass:function removeClass(clazz){_ep.removeClass(clazz);},isDropAllowed:function isDropAllowed(){return _ep.isDropAllowed.apply(_ep,arguments);},reference:referenceEndpoint,isRedrop:function isRedrop(jpc,dhParams){return jpc.suspendedEndpoint&&dhParams.reference&&jpc.suspendedEndpoint.id===dhParams.reference.id;}});dropOptions[dropEvent]=_ju.wrap(dropOptions[dropEvent],drop,true);dropOptions[overEvent]=_ju.wrap(dropOptions[overEvent],function(){var draggable=_jp.getDragObject(arguments),id=_jsPlumb.getAttribute(_jp.getElement(draggable),"dragId"),_jpc=_jsPlumb.getFloatingConnectionFor(id);//_jsPlumb.floatingConnections[id]; -if(_jpc!=null){var idx=_jsPlumb.getFloatingAnchorIndex(_jpc);// here we should fire the 'over' event if we are a target and this is a new connection, -// or we are the same as the floating endpoint. -var _cont=this.isTarget&&idx!==0||_jpc.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===_jpc.suspendedEndpoint.id;if(_cont){var bb=_jsPlumb.checkCondition("checkDropAllowed",{sourceEndpoint:_jpc.endpoints[idx],targetEndpoint:this,connection:_jpc});this[(bb?"add":"remove")+"Class"](_jsPlumb.endpointDropAllowedClass);this[(bb?"remove":"add")+"Class"](_jsPlumb.endpointDropForbiddenClass);_jpc.endpoints[idx].anchor.over(this.anchor,this);}}}.bind(this));dropOptions[outEvent]=_ju.wrap(dropOptions[outEvent],function(){var draggable=_jp.getDragObject(arguments),id=draggable==null?null:_jsPlumb.getAttribute(_jp.getElement(draggable),"dragId"),_jpc=id?_jsPlumb.getFloatingConnectionFor(id):null;if(_jpc!=null){var idx=_jsPlumb.getFloatingAnchorIndex(_jpc);var _cont=this.isTarget&&idx!==0||_jpc.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===_jpc.suspendedEndpoint.id;if(_cont){this.removeClass(_jsPlumb.endpointDropAllowedClass);this.removeClass(_jsPlumb.endpointDropForbiddenClass);_jpc.endpoints[idx].anchor.out();}}}.bind(this));_jsPlumb.initDroppable(canvas,dropOptions,"internal",isTransient);}}.bind(this);// Initialise the endpoint's canvas as a drop target. The drop handler will take care of the logic of whether -// something can actually be dropped. -if(!this.anchor.isFloating){_initDropTarget(this.canvas,!(params._transient||this.anchor.isFloating),this,params.reference);}return this;};_ju.extend(_jp.Endpoint,_jp.OverlayCapableJsPlumbUIComponent,{setVisible:function setVisible(v,doNotChangeConnections,doNotNotifyOtherEndpoint){this._jsPlumb.visible=v;if(this.canvas){this.canvas.style.display=v?"block":"none";}this[v?"showOverlays":"hideOverlays"]();if(!doNotChangeConnections){for(var i=0;i 0) { + _one(info.el.childNodes[0]); + } + if (!dontRemoveFocus) { + _doRemove(info, affectedElements); + } + } + }; + + _currentInstance.batch(function() { + _one(el, true); + }, doNotRepaint === false); + + return _currentInstance; + }; + + this.reset = function (doNotUnbindInstanceEventListeners) { + _currentInstance.silently(function() { + _hoverSuspended = false; + _currentInstance.removeAllGroups(); + _currentInstance.removeGroupManager(); + _currentInstance.deleteEveryEndpoint(); + if (!doNotUnbindInstanceEventListeners) { + _currentInstance.unbind(); + } + this.targetEndpointDefinitions = {}; + this.sourceEndpointDefinitions = {}; + connections.length = 0; + if (this.doReset) { + this.doReset(); + } + }.bind(this)); + }; + + this.destroy = function() { + this.reset(); + _container = null; + _containerDelegations = null; + }; + + var _clearObject = function (obj) { + if (obj.canvas && obj.canvas.parentNode) { + obj.canvas.parentNode.removeChild(obj.canvas); + } + obj.cleanup(); + obj.destroy(); + }; + + this.clear = function () { + _currentInstance.select().each(_clearObject); + _currentInstance.selectEndpoints().each(_clearObject); + + endpointsByElement = {}; + endpointsByUUID = {}; + }; + + this.setDefaultScope = function (scope) { + DEFAULT_SCOPE = scope; + return _currentInstance; + }; + + this.deriveEndpointAndAnchorSpec = function(type, dontPrependDefault) { + var bits = ((dontPrependDefault ? "" : "default ") + type).split(/[\s]/), eps = null, ep = null, a = null, as = null; + for (var i = 0; i < bits.length; i++) { + var _t = _currentInstance.getType(bits[i], "connection"); + if (_t) { + if (_t.endpoints) { + eps = _t.endpoints; + } + if (_t.endpoint) { + ep = _t.endpoint; + } + if (_t.anchors) { + as = _t.anchors; + } + if (_t.anchor) { + a = _t.anchor; + } + } + } + return { endpoints: eps ? eps : [ ep, ep ], anchors: as ? as : [a, a ]}; + }; + + // sets the id of some element, changing whatever we need to to keep track. + this.setId = function (el, newId, doNotSetAttribute) { + // + var id; + + if (_ju.isString(el)) { + id = el; + } + else { + el = this.getElement(el); + id = this.getId(el); + } + + var sConns = this.getConnections({source: id, scope: '*'}, true), + tConns = this.getConnections({target: id, scope: '*'}, true); + + newId = "" + newId; + + if (!doNotSetAttribute) { + el = this.getElement(id); + this.setAttribute(el, "id", newId); + } + else { + el = this.getElement(newId); + } + + endpointsByElement[newId] = endpointsByElement[id] || []; + for (var i = 0, ii = endpointsByElement[newId].length; i < ii; i++) { + endpointsByElement[newId][i].setElementId(newId); + endpointsByElement[newId][i].setReferenceElement(el); + } + delete endpointsByElement[id]; + + this.sourceEndpointDefinitions[newId] = this.sourceEndpointDefinitions[id]; + delete this.sourceEndpointDefinitions[id]; + this.targetEndpointDefinitions[newId] = this.targetEndpointDefinitions[id]; + delete this.targetEndpointDefinitions[id]; + + this.router.changeId(id, newId); + var dm = this.getDragManager(); + if (dm) { + dm.changeId(id, newId); + } + managedElements[newId] = managedElements[id]; + delete managedElements[id]; + + var _conns = function (list, epIdx, type) { + for (var i = 0, ii = list.length; i < ii; i++) { + list[i].endpoints[epIdx].setElementId(newId); + list[i].endpoints[epIdx].setReferenceElement(el); + list[i][type + "Id"] = newId; + list[i][type] = el; + } + }; + _conns(sConns, 0, "source"); + _conns(tConns, 1, "target"); + + this.repaint(newId); + }; + + this.setDebugLog = function (debugLog) { + log = debugLog; + }; + + this.setSuspendDrawing = function (val, repaintAfterwards) { + var curVal = _suspendDrawing; + _suspendDrawing = val; + if (val) { + _suspendedAt = new Date().getTime(); + } else { + _suspendedAt = null; + } + if (repaintAfterwards) { + this.repaintEverything(); + } + return curVal; + }; + + // returns whether or not drawing is currently suspended. + this.isSuspendDrawing = function () { + return _suspendDrawing; + }; + + // return timestamp for when drawing was suspended. + this.getSuspendedAt = function () { + return _suspendedAt; + }; + + this.batch = function (fn, doNotRepaintAfterwards) { + var _wasSuspended = this.isSuspendDrawing(); + if (!_wasSuspended) { + this.setSuspendDrawing(true); + } + try { + fn(); + } + catch (e) { + _ju.log("Function run while suspended failed", e); + } + if (!_wasSuspended) { + this.setSuspendDrawing(false, !doNotRepaintAfterwards); + } + }; + + this.doWhileSuspended = this.batch; + + this.getCachedData = _getCachedData; + this.show = function (el, changeEndpoints) { + _setVisible(el, "block", changeEndpoints); + return _currentInstance; + }; + + // TODO: update this method to return the current state. + this.toggleVisible = _toggleVisible; + this.addListener = this.bind; + + var floatingConnections = []; + this.registerFloatingConnection = function(info, conn, ep) { + floatingConnections[info.id] = conn; + // only register for the target endpoint; we will not be dragging the source at any time + // before this connection is either discarded or made into a permanent connection. + _ju.addToList(endpointsByElement, info.id, ep); + }; + this.getFloatingConnectionFor = function(id) { + return floatingConnections[id]; + }; + + this.listManager = new root.jsPlumbListManager(this, this.Defaults.ListStyle); + }; + + _ju.extend(root.jsPlumbInstance, _ju.EventGenerator, { + setAttribute: function (el, a, v) { + this.setAttribute(el, a, v); + }, + getAttribute: function (el, a) { + return this.getAttribute(root.jsPlumb.getElement(el), a); + }, + convertToFullOverlaySpec: function(spec) { + if (_ju.isString(spec)) { + spec = [ spec, { } ]; + } + spec[1].id = spec[1].id || _ju.uuid(); + return spec; + }, + registerConnectionType: function (id, type) { + this._connectionTypes[id] = root.jsPlumb.extend({}, type); + if (type.overlays) { + var to = {}; + for (var i = 0; i < type.overlays.length; i++) { + // if a string, convert to object representation so that we can store the typeid on it. + // also assign an id. + var fo = this.convertToFullOverlaySpec(type.overlays[i]); + to[fo[1].id] = fo; + } + this._connectionTypes[id].overlays = to; + } + }, + registerConnectionTypes: function (types) { + for (var i in types) { + this.registerConnectionType(i, types[i]); + } + }, + registerEndpointType: function (id, type) { + this._endpointTypes[id] = root.jsPlumb.extend({}, type); + if (type.overlays) { + var to = {}; + for (var i = 0; i < type.overlays.length; i++) { + // if a string, convert to object representation so that we can store the typeid on it. + // also assign an id. + var fo = this.convertToFullOverlaySpec(type.overlays[i]); + to[fo[1].id] = fo; + } + this._endpointTypes[id].overlays = to; + } + }, + registerEndpointTypes: function (types) { + for (var i in types) { + this.registerEndpointType(i, types[i]); + } + }, + getType: function (id, typeDescriptor) { + return typeDescriptor === "connection" ? this._connectionTypes[id] : this._endpointTypes[id]; + }, + setIdChanged: function (oldId, newId) { + this.setId(oldId, newId, true); + }, + // set parent: change the parent for some node and update all the registrations we need to. + setParent: function (el, newParent) { + var _dom = this.getElement(el), + _id = this.getId(_dom), + _pdom = this.getElement(newParent), + _pid = this.getId(_pdom), + dm = this.getDragManager(); + + _dom.parentNode.removeChild(_dom); + _pdom.appendChild(_dom); + if (dm) { + dm.setParent(_dom, _id, _pdom, _pid); + } + }, + extend: function (o1, o2, names) { + var i; + if (names) { + for (i = 0; i < names.length; i++) { + o1[names[i]] = o2[names[i]]; + } + } + else { + for (i in o2) { + o1[i] = o2[i]; + } + } + + return o1; + }, + floatingConnections: {}, + getFloatingAnchorIndex: function (jpc) { + return jpc.endpoints[0].isFloating() ? 0 : jpc.endpoints[1].isFloating() ? 1 : -1; + }, + proxyConnection :function(connection, index, proxyEl, proxyElId, endpointGenerator, anchorGenerator) { + var proxyEp, + originalElementId = connection.endpoints[index].elementId, + originalEndpoint = connection.endpoints[index]; + + connection.proxies = connection.proxies || []; + if(connection.proxies[index]) { + proxyEp = connection.proxies[index].ep; + }else { + proxyEp = this.addEndpoint(proxyEl, { + endpoint:endpointGenerator(connection, index), + anchor:anchorGenerator(connection, index), + parameters:{ + isProxyEndpoint:true + } + }); + } + proxyEp.setDeleteOnEmpty(true); + + // for this index, stash proxy info: the new EP, the original EP. + connection.proxies[index] = { ep:proxyEp, originalEp: originalEndpoint }; + + // and advise the anchor manager + if (index === 0) { + this.router.sourceOrTargetChanged(originalElementId, proxyElId, connection, proxyEl, 0); + } + else { + this.router.sourceOrTargetChanged(originalElementId, proxyElId, connection, proxyEl, 1); + } + + // detach the original EP from the connection. + originalEndpoint.detachFromConnection(connection, null, true); + + // set the proxy as the new ep + proxyEp.connections = [ connection ]; + connection.endpoints[index] = proxyEp; + + originalEndpoint.setVisible(false); + + connection.setVisible(true); + + this.revalidate(proxyEl); + }, + unproxyConnection : function(connection, index, proxyElId) { + // if connection cleaned up, no proxies, or none for this end of the connection, abort. + if (connection._jsPlumb == null || connection.proxies == null || connection.proxies[index] == null) { + return; + } + + var originalElement = connection.proxies[index].originalEp.element, + originalElementId = connection.proxies[index].originalEp.elementId; + + connection.endpoints[index] = connection.proxies[index].originalEp; + // and advise the anchor manager + if (index === 0) { + // TODO why are there two differently named methods? Why is there not one method that says "some end of this + // connection changed (you give the index), and here's the new element and element id." + this.router.sourceOrTargetChanged(proxyElId, originalElementId, connection, originalElement, 0); + } + else { + this.router.sourceOrTargetChanged(proxyElId, originalElementId, connection, originalElement, 1); + } + + // detach the proxy EP from the connection (which will cause it to be removed as we no longer need it) + connection.proxies[index].ep.detachFromConnection(connection, null); + + connection.proxies[index].originalEp.addConnection(connection); + if(connection.isVisible()) { + connection.proxies[index].originalEp.setVisible(true); + } + + // cleanup + delete connection.proxies[index]; + } + }); + +// --------------------- static instance + module registration ------------------------------------------- + +// create static instance and assign to window if window exists. + var jsPlumb = new jsPlumbInstance(); + // register on 'root' (lets us run on server or browser) + root.jsPlumb = jsPlumb; + // add 'getInstance' method to static instance + jsPlumb.getInstance = function (_defaults, overrideFns) { + var j = new jsPlumbInstance(_defaults); + if (overrideFns) { + for (var ovf in overrideFns) { + j[ovf] = overrideFns[ovf]; + } + } + j.init(); + return j; + }; + jsPlumb.each = function (spec, fn) { + if (spec == null) { + return; + } + if (typeof spec === "string") { + fn(jsPlumb.getElement(spec)); + } + else if (spec.length != null) { + for (var i = 0; i < spec.length; i++) { + fn(jsPlumb.getElement(spec[i])); + } + } + else { + fn(spec); + } // assume it's an element. + }; + + // CommonJS + if (typeof exports !== 'undefined') { + exports.jsPlumb = jsPlumb; + } + +// --------------------- end static instance + AMD registration ------------------------------------------- + +}).call(typeof window !== 'undefined' ? window : this); + +/* + * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) + * + * https://jsplumbtoolkit.com * https://github.com/jsplumb/jsplumb * * Dual licensed under the MIT and GPL2 licenses. - */;(function(){"use strict";var root=this,_ju=root.jsPlumbUtil,_jp=root.jsPlumb;// -// manages anchors for all elements. -// -_jp.AnchorManager=function(params){var _amEndpoints={},continuousAnchorLocations={},continuousAnchorOrientations={},connectionsByElementId={},self=this,anchorLists={},jsPlumbInstance=params.jsPlumbInstance,floatingConnections={},// used by placeAnchors function -placeAnchorsOnLine=function placeAnchorsOnLine(desc,elementDimensions,elementPosition,connections,horizontal,otherMultiplier,reverse,rotation){var a=[],step=elementDimensions[horizontal?0:1]/(connections.length+1);for(var i=0;i0){var sc=_sortHelper(unsortedConnections,edgeSortFunctions[desc]),// puts them in order based on the target element's pos on screen -reverse=desc==="right"||desc==="top",rotation=jsPlumbInstance.getRotation(elementId),anchors=placeAnchorsOnLine(desc,elementDimensions,elementPosition,sc,isHorizontal,otherMultiplier,reverse,rotation);// takes a computed anchor position and adjusts it for parent offset and scroll, then stores it. -var _setAnchorLocation=function _setAnchorLocation(endpoint,anchorPos){continuousAnchorLocations[endpoint.id]=[anchorPos[0],anchorPos[1],anchorPos[2],anchorPos[3]];continuousAnchorOrientations[endpoint.id]=orientation;};for(var i=0;i-1){connectionsByElementId[connection.targetId][tIdx][0]=connection;connectionsByElementId[connection.targetId][tIdx][1]=connection.endpoints[0];connectionsByElementId[connection.targetId][tIdx][2]=connection.endpoints[0].anchor.constructor===_jp.DynamicAnchor;}// add entry for new source -_ju.addToList(connectionsByElementId,newId,[connection,connection.endpoints[1],connection.endpoints[1].anchor.constructor===_jp.DynamicAnchor]);// TODO SP not final on this yet. when a user drags an existing connection and it turns into a self -// loop, then this code hides the target endpoint (by removing it from the DOM) But I think this should -// occur only if the anchor is Continuous -if(connection.endpoints[1].anchor.isContinuous){if(connection.source===connection.target){connection._jsPlumb.instance.removeElement(connection.endpoints[1].canvas);}else{if(connection.endpoints[1].canvas.parentNode==null){connection._jsPlumb.instance.appendElement(connection.endpoints[1].canvas);}}}connection.updateConnectedClass();}}else if(anchorIndex===1){var sourceElId=connection.endpoints[0].elementId;connection.target=newElement;connection.targetId=newId;var sIndex=_ju.findWithFunction(connectionsByElementId[sourceElId],function(i){return i[0].id===connection.id;}),tIndex=_ju.findWithFunction(connectionsByElementId[originalId],function(i){return i[0].id===connection.id;});// update or add data for source -if(sIndex!==-1){connectionsByElementId[sourceElId][sIndex][0]=connection;connectionsByElementId[sourceElId][sIndex][1]=connection.endpoints[1];connectionsByElementId[sourceElId][sIndex][2]=connection.endpoints[1].anchor.constructor===_jp.DynamicAnchor;}// remove entry for previous target (if there) -if(tIndex>-1){connectionsByElementId[originalId].splice(tIndex,1);// add entry for new target -_ju.addToList(connectionsByElementId,newId,[connection,connection.endpoints[0],connection.endpoints[0].anchor.constructor===_jp.DynamicAnchor]);}connection.updateConnectedClass();}};// -// moves the given endpoint from `currentId` to `element`. -// This involves: -// -// 1. changing the key in _amEndpoints under which the endpoint is stored -// 2. changing the source or target values in all of the endpoint's connections -// 3. changing the array in connectionsByElementId in which the endpoint's connections -// are stored (done by either sourceChanged or updateOtherEndpoint) -// -this.rehomeEndpoint=function(ep,currentId,element){var eps=_amEndpoints[currentId]||[],elementId=jsPlumbInstance.getId(element);if(elementId!==currentId){var idx=eps.indexOf(ep);if(idx>-1){var _ep=eps.splice(idx,1)[0];self.add(_ep,elementId);}}for(var i=0;i PI/2) range in order for the sorting to work properly. -/* orientationCache[oKey2] = { + */ +;(function() { + + "use strict"; + var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil; + + // ------------------------------ BEGIN OverlayCapablejsPlumbUIComponent -------------------------------------------- + + var _internalLabelOverlayId = "__label", + // this is a shortcut helper method to let people add a label as + // overlay. + _makeLabelOverlay = function (component, params) { + + var _params = { + cssClass: params.cssClass, + labelStyle: component.labelStyle, + id: _internalLabelOverlayId, + component: component, + _jsPlumb: component._jsPlumb.instance // TODO not necessary, since the instance can be accessed through the component. + }, + mergedParams = _jp.extend(_params, params); + + return new _jp.Overlays[component._jsPlumb.instance.getRenderMode()].Label(mergedParams); + }, + _processOverlay = function (component, o) { + var _newOverlay = null; + if (_ju.isArray(o)) { // this is for the shorthand ["Arrow", { width:50 }] syntax + // there's also a three arg version: + // ["Arrow", { width:50 }, {location:0.7}] + // which merges the 3rd arg into the 2nd. + var type = o[0], + // make a copy of the object so as not to mess up anyone else's reference... + p = _jp.extend({component: component, _jsPlumb: component._jsPlumb.instance}, o[1]); + if (o.length === 3) { + _jp.extend(p, o[2]); + } + _newOverlay = new _jp.Overlays[component._jsPlumb.instance.getRenderMode()][type](p); + } else if (o.constructor === String) { + _newOverlay = new _jp.Overlays[component._jsPlumb.instance.getRenderMode()][o]({component: component, _jsPlumb: component._jsPlumb.instance}); + } else { + _newOverlay = o; + } + + _newOverlay.id = _newOverlay.id || _ju.uuid(); + component.cacheTypeItem("overlay", _newOverlay, _newOverlay.id); + component._jsPlumb.overlays[_newOverlay.id] = _newOverlay; + + return _newOverlay; + }; + + _jp.OverlayCapableJsPlumbUIComponent = function (params) { + + root.jsPlumbUIComponent.apply(this, arguments); + this._jsPlumb.overlays = {}; + this._jsPlumb.overlayPositions = {}; + + if (params.label) { + this.getDefaultType().overlays[_internalLabelOverlayId] = ["Label", { + label: params.label, + location: params.labelLocation || this.defaultLabelLocation || 0.5, + labelStyle: params.labelStyle || this._jsPlumb.instance.Defaults.LabelStyle, + id:_internalLabelOverlayId + }]; + } + + this.setListenerComponent = function (c) { + if (this._jsPlumb) { + for (var i in this._jsPlumb.overlays) { + this._jsPlumb.overlays[i].setListenerComponent(c); + } + } + }; + }; + + _jp.OverlayCapableJsPlumbUIComponent.applyType = function (component, t) { + if (t.overlays) { + // loop through the ones in the type. if already present on the component, + // dont remove or re-add. + var keep = {}, i; + + for (i in t.overlays) { + + var existing = component._jsPlumb.overlays[t.overlays[i][1].id]; + if (existing) { + // maybe update from data, if there were parameterised values for instance. + existing.updateFrom(t.overlays[i][1]); + keep[t.overlays[i][1].id] = true; + + existing.reattach(component._jsPlumb.instance, component); + } + else { + var c = component.getCachedTypeItem("overlay", t.overlays[i][1].id); + if (c != null) { + c.reattach(component._jsPlumb.instance, component); + c.setVisible(true); + // maybe update from data, if there were parameterised values for instance. + c.updateFrom(t.overlays[i][1]); + component._jsPlumb.overlays[c.id] = c; + } + else { + c = component.addOverlay(t.overlays[i], true); + } + keep[c.id] = true; + } + } + + // now loop through the full overlays and remove those that we dont want to keep + for (i in component._jsPlumb.overlays) { + if (keep[component._jsPlumb.overlays[i].id] == null) { + component.removeOverlay(component._jsPlumb.overlays[i].id, true); // remove overlay but dont clean it up. + // that would remove event listeners etc; overlays are never discarded by the types stuff, they are + // just detached/reattached. + } + } + } + }; + + _ju.extend(_jp.OverlayCapableJsPlumbUIComponent, root.jsPlumbUIComponent, { + + setHover: function (hover, ignoreAttachedElements) { + if (this._jsPlumb && !this._jsPlumb.instance.isConnectionBeingDragged()) { + for (var i in this._jsPlumb.overlays) { + this._jsPlumb.overlays[i][hover ? "addClass" : "removeClass"](this._jsPlumb.instance.hoverClass); + } + } + }, + addOverlay: function (overlay, doNotRepaint) { + var o = _processOverlay(this, overlay); + + if (this.getData && o.type === "Label" && _ju.isArray(overlay)) { + // + // component data might contain label location - look for it here. + var d = this.getData(), p = overlay[1]; + if (d) { + var locationAttribute = p.labelLocationAttribute || "labelLocation"; + var loc = d ? d[locationAttribute] : null; + + if (loc) { + o.loc = loc; + } + } + } + + if (!doNotRepaint) { + this.repaint(); + } + return o; + }, + getOverlay: function (id) { + return this._jsPlumb.overlays[id]; + }, + getOverlays: function () { + return this._jsPlumb.overlays; + }, + hideOverlay: function (id) { + var o = this.getOverlay(id); + if (o) { + o.hide(); + } + }, + hideOverlays: function () { + for (var i in this._jsPlumb.overlays) { + this._jsPlumb.overlays[i].hide(); + } + }, + showOverlay: function (id) { + var o = this.getOverlay(id); + if (o) { + o.show(); + } + }, + showOverlays: function () { + for (var i in this._jsPlumb.overlays) { + this._jsPlumb.overlays[i].show(); + } + }, + removeAllOverlays: function (doNotRepaint) { + for (var i in this._jsPlumb.overlays) { + if (this._jsPlumb.overlays[i].cleanup) { + this._jsPlumb.overlays[i].cleanup(); + } + } + + this._jsPlumb.overlays = {}; + this._jsPlumb.overlayPositions = null; + this._jsPlumb.overlayPlacements= {}; + if (!doNotRepaint) { + this.repaint(); + } + }, + removeOverlay: function (overlayId, dontCleanup) { + var o = this._jsPlumb.overlays[overlayId]; + if (o) { + o.setVisible(false); + if (!dontCleanup && o.cleanup) { + o.cleanup(); + } + delete this._jsPlumb.overlays[overlayId]; + if (this._jsPlumb.overlayPositions) { + delete this._jsPlumb.overlayPositions[overlayId]; + } + + if (this._jsPlumb.overlayPlacements) { + delete this._jsPlumb.overlayPlacements[overlayId]; + } + } + }, + removeOverlays: function () { + for (var i = 0, j = arguments.length; i < j; i++) { + this.removeOverlay(arguments[i]); + } + }, + moveParent: function (newParent) { + if (this.bgCanvas) { + this.bgCanvas.parentNode.removeChild(this.bgCanvas); + newParent.appendChild(this.bgCanvas); + } + + if (this.canvas && this.canvas.parentNode) { + this.canvas.parentNode.removeChild(this.canvas); + newParent.appendChild(this.canvas); + + for (var i in this._jsPlumb.overlays) { + if (this._jsPlumb.overlays[i].isAppendedAtTopLevel) { + var el = this._jsPlumb.overlays[i].getElement(); + el.parentNode.removeChild(el); + newParent.appendChild(el); + } + } + } + }, + getLabel: function () { + var lo = this.getOverlay(_internalLabelOverlayId); + return lo != null ? lo.getLabel() : null; + }, + getLabelOverlay: function () { + return this.getOverlay(_internalLabelOverlayId); + }, + setLabel: function (l) { + var lo = this.getOverlay(_internalLabelOverlayId); + if (!lo) { + var params = l.constructor === String || l.constructor === Function ? { label: l } : l; + lo = _makeLabelOverlay(this, params); + this._jsPlumb.overlays[_internalLabelOverlayId] = lo; + } + else { + if (l.constructor === String || l.constructor === Function) { + lo.setLabel(l); + } + else { + if (l.label) { + lo.setLabel(l.label); + } + if (l.location) { + lo.setLocation(l.location); + } + } + } + + if (!this._jsPlumb.instance.isSuspendDrawing()) { + this.repaint(); + } + }, + cleanup: function (force) { + for (var i in this._jsPlumb.overlays) { + this._jsPlumb.overlays[i].cleanup(force); + this._jsPlumb.overlays[i].destroy(force); + } + if (force) { + this._jsPlumb.overlays = {}; + this._jsPlumb.overlayPositions = null; + } + }, + setVisible: function (v) { + this[v ? "showOverlays" : "hideOverlays"](); + }, + setAbsoluteOverlayPosition: function (overlay, xy) { + this._jsPlumb.overlayPositions[overlay.id] = xy; + }, + getAbsoluteOverlayPosition: function (overlay) { + return this._jsPlumb.overlayPositions ? this._jsPlumb.overlayPositions[overlay.id] : null; + }, + _clazzManip:function(action, clazz, dontUpdateOverlays) { + if (!dontUpdateOverlays) { + for (var i in this._jsPlumb.overlays) { + this._jsPlumb.overlays[i][action + "Class"](clazz); + } + } + }, + addClass:function(clazz, dontUpdateOverlays) { + this._clazzManip("add", clazz, dontUpdateOverlays); + }, + removeClass:function(clazz, dontUpdateOverlays) { + this._clazzManip("remove", clazz, dontUpdateOverlays); + } + }); + +// ------------------------------ END OverlayCapablejsPlumbUIComponent -------------------------------------------- + +}).call(typeof window !== 'undefined' ? window : this); + +/* + * This file contains the code for Endpoints. + * + * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) + * + * https://jsplumbtoolkit.com + * https://github.com/jsplumb/jsplumb + * + * Dual licensed under the MIT and GPL2 licenses. + */ +;(function () { + + "use strict"; + var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil; + + // create the drag handler for a connection + var _makeConnectionDragHandler = function (endpoint, placeholder, _jsPlumb) { + var stopped = false; + return { + drag: function () { + if (stopped) { + stopped = false; + return true; + } + + if (placeholder.element) { + var _ui = _jsPlumb.getUIPosition(arguments, _jsPlumb.getZoom()); + if (_ui != null) { + _jsPlumb.setPosition(placeholder.element, _ui); + } + _jsPlumb.repaint(placeholder.element, _ui); + // always repaint the source endpoint, because only continuous/dynamic anchors cause the endpoint + // to be repainted, so static anchors need to be told (or the endpoint gets dragged around) + endpoint.paint({anchorPoint:endpoint.anchor.getCurrentLocation({element:endpoint})}); + } + }, + stopDrag: function () { + stopped = true; + } + }; + }; + + // creates a placeholder div for dragging purposes, adds it, and pre-computes its offset. + var _makeDraggablePlaceholder = function (placeholder, _jsPlumb, ipco, ips) { + var n = _jsPlumb.createElement("div", { position : "absolute" }); + _jsPlumb.appendElement(n); + var id = _jsPlumb.getId(n); + _jsPlumb.setPosition(n, ipco); + n.style.width = ips[0] + "px"; + n.style.height = ips[1] + "px"; + _jsPlumb.manage(id, n, true); // TRANSIENT MANAGE + // create and assign an id, and initialize the offset. + placeholder.id = id; + placeholder.element = n; + }; + + // create a floating endpoint (for drag connections) + var _makeFloatingEndpoint = function (paintStyle, referenceAnchor, endpoint, referenceCanvas, sourceElement, _jsPlumb, _newEndpoint, scope) { + var floatingAnchor = new _jp.FloatingAnchor({ reference: referenceAnchor, referenceCanvas: referenceCanvas, jsPlumbInstance: _jsPlumb }); + return _newEndpoint({ + paintStyle: paintStyle, + endpoint: endpoint, + anchor: floatingAnchor, + source: sourceElement, + scope: scope + }); + }; + + var typeParameters = [ "connectorStyle", "connectorHoverStyle", "connectorOverlays", + "connector", "connectionType", "connectorClass", "connectorHoverClass" ]; + + // a helper function that tries to find a connection to the given element, and returns it if so. if elementWithPrecedence is null, + // or no connection to it is found, we return the first connection in our list. + var findConnectionToUseForDynamicAnchor = function (ep, elementWithPrecedence) { + var idx = 0; + if (elementWithPrecedence != null) { + for (var i = 0; i < ep.connections.length; i++) { + if (ep.connections[i].sourceId === elementWithPrecedence || ep.connections[i].targetId === elementWithPrecedence) { + idx = i; + break; + } + } + } + + return ep.connections[idx]; + }; + + _jp.Endpoint = function (params) { + var _jsPlumb = params._jsPlumb, + _newConnection = params.newConnection, + _newEndpoint = params.newEndpoint; + + this.idPrefix = "_jsplumb_e_"; + this.defaultLabelLocation = [ 0.5, 0.5 ]; + this.defaultOverlayKeys = ["Overlays", "EndpointOverlays"]; + _jp.OverlayCapableJsPlumbUIComponent.apply(this, arguments); + +// TYPE + + this.appendToDefaultType({ + connectionType:params.connectionType, + maxConnections: params.maxConnections == null ? this._jsPlumb.instance.Defaults.MaxConnections : params.maxConnections, // maximum number of connections this endpoint can be the source of., + paintStyle: params.endpointStyle || params.paintStyle || params.style || this._jsPlumb.instance.Defaults.EndpointStyle || _jp.Defaults.EndpointStyle, + hoverPaintStyle: params.endpointHoverStyle || params.hoverPaintStyle || this._jsPlumb.instance.Defaults.EndpointHoverStyle || _jp.Defaults.EndpointHoverStyle, + connectorStyle: params.connectorStyle, + connectorHoverStyle: params.connectorHoverStyle, + connectorClass: params.connectorClass, + connectorHoverClass: params.connectorHoverClass, + connectorOverlays: params.connectorOverlays, + connector: params.connector, + connectorTooltip: params.connectorTooltip + }); + +// END TYPE + + this._jsPlumb.enabled = !(params.enabled === false); + this._jsPlumb.visible = true; + this.element = _jp.getElement(params.source); + this._jsPlumb.uuid = params.uuid; + this._jsPlumb.floatingEndpoint = null; + var inPlaceCopy = null; + if (this._jsPlumb.uuid) { + params.endpointsByUUID[this._jsPlumb.uuid] = this; + } + this.elementId = params.elementId; + this.dragProxy = params.dragProxy; + + this._jsPlumb.connectionCost = params.connectionCost; + this._jsPlumb.connectionsDirected = params.connectionsDirected; + this._jsPlumb.currentAnchorClass = ""; + this._jsPlumb.events = {}; + + var deleteOnEmpty = params.deleteOnEmpty === true; + this.setDeleteOnEmpty = function(d) { + deleteOnEmpty = d; + }; + + var _updateAnchorClass = function () { + // stash old, get new + var oldAnchorClass = _jsPlumb.endpointAnchorClassPrefix + "-" + this._jsPlumb.currentAnchorClass; + this._jsPlumb.currentAnchorClass = this.anchor.getCssClass(); + var anchorClass = _jsPlumb.endpointAnchorClassPrefix + (this._jsPlumb.currentAnchorClass ? "-" + this._jsPlumb.currentAnchorClass : ""); + + this.removeClass(oldAnchorClass); + this.addClass(anchorClass); + // add and remove at the same time to reduce the number of reflows. + _jp.updateClasses(this.element, anchorClass, oldAnchorClass); + }.bind(this); + + this.prepareAnchor = function(anchorParams) { + var a = this._jsPlumb.instance.makeAnchor(anchorParams, this.elementId, _jsPlumb); + a.bind("anchorChanged", function (currentAnchor) { + this.fire("anchorChanged", {endpoint: this, anchor: currentAnchor}); + _updateAnchorClass(); + }.bind(this)); + return a; + }; + + this.setPreparedAnchor = function(anchor, doNotRepaint) { + this._jsPlumb.instance.continuousAnchorFactory.clear(this.elementId); + this.anchor = anchor; + _updateAnchorClass(); + + if (!doNotRepaint) { + this._jsPlumb.instance.repaint(this.elementId); + } + + return this; + }; + + this.setAnchor = function (anchorParams, doNotRepaint) { + var a = this.prepareAnchor(anchorParams); + this.setPreparedAnchor(a, doNotRepaint); + return this; + }; + + var internalHover = function (state) { + if (this.connections.length > 0) { + for (var i = 0; i < this.connections.length; i++) { + this.connections[i].setHover(state, false); + } + } + else { + this.setHover(state); + } + }.bind(this); + + this.bind("mouseover", function () { + internalHover(true); + }); + this.bind("mouseout", function () { + internalHover(false); + }); + + // ANCHOR MANAGER + if (!params._transient) { // in place copies, for example, are transient. they will never need to be retrieved during a paint cycle, because they dont move, and then they are deleted. + this._jsPlumb.instance.router.addEndpoint(this, this.elementId); + } + + this.prepareEndpoint = function(ep, typeId) { + var _e = function (t, p) { + var rm = _jsPlumb.getRenderMode(); + if (_jp.Endpoints[rm][t]) { + return new _jp.Endpoints[rm][t](p); + } + if (!_jsPlumb.Defaults.DoNotThrowErrors) { + throw { msg: "jsPlumb: unknown endpoint type '" + t + "'" }; + } + }; + + var endpointArgs = { + _jsPlumb: this._jsPlumb.instance, + cssClass: params.cssClass, + container: params.container, + tooltip: params.tooltip, + connectorTooltip: params.connectorTooltip, + endpoint: this + }; + + var endpoint; + + if (_ju.isString(ep)) { + endpoint = _e(ep, endpointArgs); + } + else if (_ju.isArray(ep)) { + endpointArgs = _ju.merge(ep[1], endpointArgs); + endpoint = _e(ep[0], endpointArgs); + } + else { + endpoint = ep.clone(); + } + + // assign a clone function using a copy of endpointArgs. this is used when a drag starts: the endpoint that was dragged is cloned, + // and the clone is left in its place while the original one goes off on a magical journey. + // the copy is to get around a closure problem, in which endpointArgs ends up getting shared by + // the whole world. + //var argsForClone = jsPlumb.extend({}, endpointArgs); + endpoint.clone = function () { + // TODO this, and the code above, can be refactored to be more dry. + if (_ju.isString(ep)) { + return _e(ep, endpointArgs); + } + else if (_ju.isArray(ep)) { + endpointArgs = _ju.merge(ep[1], endpointArgs); + return _e(ep[0], endpointArgs); + } + }.bind(this); + + endpoint.typeId = typeId; + return endpoint; + }; + + this.setEndpoint = function(ep, doNotRepaint) { + var _ep = this.prepareEndpoint(ep); + this.setPreparedEndpoint(_ep, true); + }; + + this.setPreparedEndpoint = function (ep, doNotRepaint) { + if (this.endpoint != null) { + this.endpoint.cleanup(); + this.endpoint.destroy(); + } + this.endpoint = ep; + this.type = this.endpoint.type; + this.canvas = this.endpoint.canvas; + }; + + _jp.extend(this, params, typeParameters); + + this.isSource = params.isSource || false; + this.isTemporarySource = params.isTemporarySource || false; + this.isTarget = params.isTarget || false; + + this.connections = params.connections || []; + this.connectorPointerEvents = params["connector-pointer-events"]; + + this.scope = params.scope || _jsPlumb.getDefaultScope(); + this.timestamp = null; + this.reattachConnections = params.reattach || _jsPlumb.Defaults.ReattachConnections; + this.connectionsDetachable = _jsPlumb.Defaults.ConnectionsDetachable; + if (params.connectionsDetachable === false || params.detachable === false) { + this.connectionsDetachable = false; + } + this.dragAllowedWhenFull = params.dragAllowedWhenFull !== false; + + if (params.onMaxConnections) { + this.bind("maxConnections", params.onMaxConnections); + } + + // + // add a connection. not part of public API. + // + this.addConnection = function (connection) { + this.connections.push(connection); + this[(this.connections.length > 0 ? "add" : "remove") + "Class"](_jsPlumb.endpointConnectedClass); + this[(this.isFull() ? "add" : "remove") + "Class"](_jsPlumb.endpointFullClass); + }; + + this.detachFromConnection = function (connection, idx, doNotCleanup) { + idx = idx == null ? this.connections.indexOf(connection) : idx; + if (idx >= 0) { + this.connections.splice(idx, 1); + this[(this.connections.length > 0 ? "add" : "remove") + "Class"](_jsPlumb.endpointConnectedClass); + this[(this.isFull() ? "add" : "remove") + "Class"](_jsPlumb.endpointFullClass); + } + + if (!doNotCleanup && deleteOnEmpty && this.connections.length === 0) { + _jsPlumb.deleteObject({ + endpoint: this, + fireEvent: false, + deleteAttachedObjects: doNotCleanup !== true + }); + } + }; + + this.deleteEveryConnection = function(params) { + var c = this.connections.length; + for (var i = 0; i < c; i++) { + _jsPlumb.deleteConnection(this.connections[0], params); + } + }; + + this.detachFrom = function (targetEndpoint, fireEvent, originalEvent) { + var c = []; + for (var i = 0; i < this.connections.length; i++) { + if (this.connections[i].endpoints[1] === targetEndpoint || this.connections[i].endpoints[0] === targetEndpoint) { + c.push(this.connections[i]); + } + } + for (var j = 0, count = c.length; j < count; j++) { + _jsPlumb.deleteConnection(c[0]); + } + return this; + }; + + this.getElement = function () { + return this.element; + }; + + this.setElement = function (el) { + var parentId = this._jsPlumb.instance.getId(el), + curId = this.elementId; + // remove the endpoint from the list for the current endpoint's element + _ju.removeWithFunction(params.endpointsByElement[this.elementId], function (e) { + return e.id === this.id; + }.bind(this)); + this.element = _jp.getElement(el); + this.elementId = _jsPlumb.getId(this.element); + _jsPlumb.router.rehomeEndpoint(this, curId, this.element); + _jsPlumb.dragManager.endpointAdded(this.element); + _ju.addToList(params.endpointsByElement, parentId, this); + return this; + }; + + /** + * private but must be exposed. + */ + this.makeInPlaceCopy = function () { + var loc = this.anchor.getCurrentLocation({element: this}), + o = this.anchor.getOrientation(this), + acc = this.anchor.getCssClass(), + inPlaceAnchor = { + bind: function () { + }, + compute: function () { + return [ loc[0], loc[1] ]; + }, + getCurrentLocation: function () { + return [ loc[0], loc[1] ]; + }, + getOrientation: function () { + return o; + }, + getCssClass: function () { + return acc; + } + }; + + return _newEndpoint({ + dropOptions: params.dropOptions, + anchor: inPlaceAnchor, + source: this.element, + paintStyle: this.getPaintStyle(), + endpoint: params.hideOnDrag ? "Blank" : this.endpoint, + _transient: true, + scope: this.scope, + reference:this + }); + }; + + /** + * returns a connection from the pool; used when dragging starts. just gets the head of the array if it can. + */ + this.connectorSelector = function () { + return this.connections[0]; + }; + + this.setStyle = this.setPaintStyle; + + this.paint = function (params) { + params = params || {}; + var timestamp = params.timestamp, recalc = !(params.recalc === false); + if (!timestamp || this.timestamp !== timestamp) { + + var info = _jsPlumb.updateOffset({ elId: this.elementId, timestamp: timestamp }); + + var xy = params.offset ? params.offset.o : info.o; + if (xy != null) { + var ap = params.anchorPoint, connectorPaintStyle = params.connectorPaintStyle; + if (ap == null) { + var wh = params.dimensions || info.s, + anchorParams = { xy: [ xy.left, xy.top ], wh: wh, element: this, timestamp: timestamp }; + if (recalc && this.anchor.isDynamic && this.connections.length > 0) { + var c = findConnectionToUseForDynamicAnchor(this, params.elementWithPrecedence), + oIdx = c.endpoints[0] === this ? 1 : 0, + oId = oIdx === 0 ? c.sourceId : c.targetId, + oInfo = _jsPlumb.getCachedData(oId), + oOffset = oInfo.o, oWH = oInfo.s; + + anchorParams.index = oIdx === 0 ? 1 : 0; + anchorParams.connection = c; + anchorParams.txy = [ oOffset.left, oOffset.top ]; + anchorParams.twh = oWH; + anchorParams.tElement = c.endpoints[oIdx]; + anchorParams.tRotation = _jsPlumb.getRotation(oId); + } else if (this.connections.length > 0) { + anchorParams.connection = this.connections[0]; + } + anchorParams.rotation = _jsPlumb.getRotation(this.elementId); + ap = this.anchor.compute(anchorParams); + } + + this.endpoint.compute(ap, this.anchor.getOrientation(this), this._jsPlumb.paintStyleInUse, connectorPaintStyle || this.paintStyleInUse); + this.endpoint.paint(this._jsPlumb.paintStyleInUse, this.anchor); + this.timestamp = timestamp; + + // paint overlays + for (var i in this._jsPlumb.overlays) { + if (this._jsPlumb.overlays.hasOwnProperty(i)) { + var o = this._jsPlumb.overlays[i]; + if (o.isVisible()) { + this._jsPlumb.overlayPlacements[i] = o.draw(this.endpoint, this._jsPlumb.paintStyleInUse); + o.paint(this._jsPlumb.overlayPlacements[i]); + } + } + } + } + } + }; + + this.getTypeDescriptor = function () { + return "endpoint"; + }; + this.isVisible = function () { + return this._jsPlumb.visible; + }; + + this.repaint = this.paint; + + var draggingInitialised = false; + this.initDraggable = function () { + + // is this a connection source? we make it draggable and have the + // drag listener maintain a connection with a floating endpoint. + if (!draggingInitialised && _jp.isDragSupported(this.element)) { + var placeholderInfo = { id: null, element: null }, + jpc = null, + existingJpc = false, + existingJpcParams = null, + _dragHandler = _makeConnectionDragHandler(this, placeholderInfo, _jsPlumb), + dragOptions = params.dragOptions || {}, + defaultOpts = {}, + startEvent = _jp.dragEvents.start, + stopEvent = _jp.dragEvents.stop, + dragEvent = _jp.dragEvents.drag, + beforeStartEvent = _jp.dragEvents.beforeStart, + payload; + + // respond to beforeStart from katavorio; this will have, optionally, a payload of attribute values + // that were placed there by the makeSource mousedown listener. + var beforeStart = function(beforeStartParams) { + payload = beforeStartParams.e.payload || {}; + }; + + var start = function (startParams) { + +// ------------- first, get a connection to drag. this may be null, in which case we are dragging a new one. + + jpc = this.connectorSelector(); + +// -------------------------------- now a bunch of tests about whether or not to proceed ------------------------- + + var _continue = true; + // if not enabled, return + if (!this.isEnabled()) { + _continue = false; + } + // if no connection and we're not a source - or temporarily a source, as is the case with makeSource - return. + if (jpc == null && !this.isSource && !this.isTemporarySource) { + _continue = false; + } + // otherwise if we're full and not allowed to drag, also return false. + if (this.isSource && this.isFull() && !(jpc != null && this.dragAllowedWhenFull)) { + _continue = false; + } + // if the connection was setup as not detachable or one of its endpoints + // was setup as connectionsDetachable = false, or Defaults.ConnectionsDetachable + // is set to false... + if (jpc != null && !jpc.isDetachable(this)) { + // .. and the endpoint is full + if (this.isFull()) { + _continue = false; + } else { + // otherwise, if not full, set the connection to null, and we will now proceed + // to drag a new connection. + jpc = null; + } + } + + var beforeDrag = _jsPlumb.checkCondition(jpc == null ? "beforeDrag" : "beforeStartDetach", { + endpoint:this, + source:this.element, + sourceId:this.elementId, + connection:jpc + }); + if (beforeDrag === false) { + _continue = false; + } + // else we might have been given some data. we'll pass it in to a new connection as 'data'. + // here we also merge in the optional payload we were given on mousedown. + else if (typeof beforeDrag === "object") { + _jp.extend(beforeDrag, payload || {}); + } + else { + // or if no beforeDrag data, maybe use the payload on its own. + beforeDrag = payload || {}; + } + + if (_continue === false) { + // this is for mootools and yui. returning false from this causes jquery to stop drag. + // the events are wrapped in both mootools and yui anyway, but i don't think returning + // false from the start callback would stop a drag. + if (_jsPlumb.stopDrag) { + _jsPlumb.stopDrag(this.canvas); + } + _dragHandler.stopDrag(); + return false; + } + +// --------------------------------------------------------------------------------------------------------------------- + + // ok to proceed. + + // clear hover for all connections for this endpoint before continuing. + for (var i = 0; i < this.connections.length; i++) { + this.connections[i].setHover(false); + } + + this.addClass("endpointDrag"); + _jsPlumb.setConnectionBeingDragged(true); + + // if we're not full but there was a connection, make it null. we'll create a new one. + if (jpc && !this.isFull() && this.isSource) { + jpc = null; + } + + _jsPlumb.updateOffset({ elId: this.elementId }); + +// ---------------- make the element we will drag around, and position it ----------------------------- + + var ipco = this._jsPlumb.instance.getOffset(this.canvas), + canvasElement = this.canvas, + ips = this._jsPlumb.instance.getSize(this.canvas); + + _makeDraggablePlaceholder(placeholderInfo, _jsPlumb, ipco, ips); + + // store the id of the dragging div and the source element. the drop function will pick these up. + _jsPlumb.setAttributes(this.canvas, { + "dragId": placeholderInfo.id, + "elId": this.elementId + }); + +// ------------------- create an endpoint that will be our floating endpoint ------------------------------------ + + var endpointToFloat = this.dragProxy || this.endpoint; + if (this.dragProxy == null && this.connectionType != null) { + var aae = this._jsPlumb.instance.deriveEndpointAndAnchorSpec(this.connectionType); + if (aae.endpoints[1]) { + endpointToFloat = aae.endpoints[1]; + } + } + var centerAnchor = this._jsPlumb.instance.makeAnchor("Center"); + centerAnchor.isFloating = true; + this._jsPlumb.floatingEndpoint = _makeFloatingEndpoint(this.getPaintStyle(), centerAnchor, endpointToFloat, this.canvas, placeholderInfo.element, _jsPlumb, _newEndpoint, this.scope); + var _savedAnchor = this._jsPlumb.floatingEndpoint.anchor; + + + if (jpc == null) { + + this.setHover(false, false); + // create a connection. one end is this endpoint, the other is a floating endpoint. + jpc = _newConnection({ + sourceEndpoint: this, + targetEndpoint: this._jsPlumb.floatingEndpoint, + source: this.element, // for makeSource with parent option. ensure source element is represented correctly. + target: placeholderInfo.element, + anchors: [ this.anchor, this._jsPlumb.floatingEndpoint.anchor ], + paintStyle: params.connectorStyle, // this can be null. Connection will use the default. + hoverPaintStyle: params.connectorHoverStyle, + connector: params.connector, // this can also be null. Connection will use the default. + overlays: params.connectorOverlays, + type: this.connectionType, + cssClass: this.connectorClass, + hoverClass: this.connectorHoverClass, + scope:params.scope, + data:beforeDrag + }); + jpc.pending = true; + jpc.addClass(_jsPlumb.draggingClass); + this._jsPlumb.floatingEndpoint.addClass(_jsPlumb.draggingClass); + this._jsPlumb.floatingEndpoint.anchor = _savedAnchor; + // fire an event that informs that a connection is being dragged + _jsPlumb.fire("connectionDrag", jpc); + + // register the new connection on the drag manager. This connection, at this point, is 'pending', + // and has as its target a temporary element (the 'placeholder'). If the connection subsequently + // becomes established, the anchor manager is informed that the target of the connection has + // changed. + + _jsPlumb.router.newConnection(jpc); + + } else { + existingJpc = true; + jpc.setHover(false); + // new anchor idx + var anchorIdx = jpc.endpoints[0].id === this.id ? 0 : 1; + this.detachFromConnection(jpc, null, true); // detach from the connection while dragging is occurring. but dont cleanup automatically. + + // store the original scope (issue 57) + var dragScope = _jsPlumb.getDragScope(canvasElement); + _jsPlumb.setAttribute(this.canvas, "originalScope", dragScope); + + // fire an event that informs that a connection is being dragged. we do this before + // replacing the original target with the floating element info. + _jsPlumb.fire("connectionDrag", jpc); + + // now we replace ourselves with the temporary div we created above: + if (anchorIdx === 0) { + existingJpcParams = [ jpc.source, jpc.sourceId, canvasElement, dragScope ]; + _jsPlumb.router.sourceOrTargetChanged(jpc.endpoints[anchorIdx].elementId, placeholderInfo.id, jpc, placeholderInfo.element, 0); + + } else { + existingJpcParams = [ jpc.target, jpc.targetId, canvasElement, dragScope ]; + _jsPlumb.router.sourceOrTargetChanged(jpc.endpoints[anchorIdx].elementId, placeholderInfo.id, jpc, placeholderInfo.element, 1); + } + + // store the original endpoint and assign the new floating endpoint for the drag. + jpc.suspendedEndpoint = jpc.endpoints[anchorIdx]; + + // PROVIDE THE SUSPENDED ELEMENT, BE IT A SOURCE OR TARGET (ISSUE 39) + jpc.suspendedElement = jpc.endpoints[anchorIdx].getElement(); + jpc.suspendedElementId = jpc.endpoints[anchorIdx].elementId; + jpc.suspendedElementType = anchorIdx === 0 ? "source" : "target"; + + jpc.suspendedEndpoint.setHover(false); + this._jsPlumb.floatingEndpoint.referenceEndpoint = jpc.suspendedEndpoint; + jpc.endpoints[anchorIdx] = this._jsPlumb.floatingEndpoint; + + jpc.addClass(_jsPlumb.draggingClass); + this._jsPlumb.floatingEndpoint.addClass(_jsPlumb.draggingClass); + } + + _jsPlumb.registerFloatingConnection(placeholderInfo, jpc, this._jsPlumb.floatingEndpoint); + + // tell jsplumb about it + _jsPlumb.currentlyDragging = true; + }.bind(this); + + var stop = function () { + _jsPlumb.setConnectionBeingDragged(false); + + if (jpc && jpc.endpoints != null) { + // get the actual drop event (decode from library args to stop function) + var originalEvent = _jsPlumb.getDropEvent(arguments); + // unlock the other endpoint (if it is dynamic, it would have been locked at drag start) + var idx = _jsPlumb.getFloatingAnchorIndex(jpc); + jpc.endpoints[idx === 0 ? 1 : 0].anchor.locked = false; + jpc.removeClass(_jsPlumb.draggingClass); + // if we have the floating endpoint then the connection has not been dropped + // on another endpoint. If it is a new connection we throw it away. If it is an + // existing connection we check to see if we should reattach it, throwing it away + // if not. + if (this._jsPlumb && (jpc.deleteConnectionNow || jpc.endpoints[idx] === this._jsPlumb.floatingEndpoint)) { + // 6a. if the connection was an existing one... + if (existingJpc && jpc.suspendedEndpoint) { + // fix for issue35, thanks Sylvain Gizard: when firing the detach event make sure the + // floating endpoint has been replaced. + if (idx === 0) { + jpc.floatingElement = jpc.source; + jpc.floatingId = jpc.sourceId; + jpc.floatingEndpoint = jpc.endpoints[0]; + jpc.floatingIndex = 0; + jpc.source = existingJpcParams[0]; + jpc.sourceId = existingJpcParams[1]; + } else { + // keep a copy of the floating element; the anchor manager will want to clean up. + jpc.floatingElement = jpc.target; + jpc.floatingId = jpc.targetId; + jpc.floatingEndpoint = jpc.endpoints[1]; + jpc.floatingIndex = 1; + jpc.target = existingJpcParams[0]; + jpc.targetId = existingJpcParams[1]; + } + + var fe = this._jsPlumb.floatingEndpoint; // store for later removal. + // restore the original scope (issue 57) + _jsPlumb.setDragScope(existingJpcParams[2], existingJpcParams[3]); + jpc.endpoints[idx] = jpc.suspendedEndpoint; + // if the connection should be reattached, or the other endpoint refuses detach, then + // reset the connection to its original state + if (jpc.isReattach() || jpc._forceReattach || jpc._forceDetach || !_jsPlumb.deleteConnection(jpc, {originalEvent: originalEvent})) { + + jpc.setHover(false); + jpc._forceDetach = null; + jpc._forceReattach = null; + this._jsPlumb.floatingEndpoint.detachFromConnection(jpc); + jpc.suspendedEndpoint.addConnection(jpc); + + // TODO this code is duplicated in lots of places...and there is nothing external + // in the code; it all refers to the connection itself. we could add a + // `checkSanity(connection)` method to anchorManager that did this. + if (idx === 1) { + _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.targetId, jpc, jpc.target, idx); + } + else { + _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.sourceId, jpc, jpc.source, idx); + } + + _jsPlumb.repaint(existingJpcParams[1]); + } + else { + _jsPlumb.deleteObject({endpoint: fe}); + } + } + } + + // makeTargets sets this flag, to tell us we have been replaced and should delete this object. + if (this.deleteAfterDragStop) { + _jsPlumb.deleteObject({endpoint: this}); + } + else { + if (this._jsPlumb) { + this.paint({recalc: false}); + } + } + + // although the connection is no longer valid, there are use cases where this is useful. + _jsPlumb.fire("connectionDragStop", jpc, originalEvent); + // fire this event to give people more fine-grained control (connectionDragStop fires a lot) + if (jpc.pending) { + _jsPlumb.fire("connectionAborted", jpc, originalEvent); + } + // tell jsplumb that dragging is finished. + _jsPlumb.currentlyDragging = false; + jpc.suspendedElement = null; + jpc.suspendedEndpoint = null; + jpc = null; + } + + // if no endpoints, jpc already cleaned up. but still we want to ensure we're reset properly. + // remove the element associated with the floating endpoint + // (and its associated floating endpoint and visual artefacts) + if (placeholderInfo && placeholderInfo.element) { + _jsPlumb.remove(placeholderInfo.element, false, false); + } + // remove the inplace copy + if (inPlaceCopy) { + _jsPlumb.deleteObject({endpoint: inPlaceCopy}); + } + + if (this._jsPlumb) { + // make our canvas visible (TODO: hand off to library; we should not know about DOM) + this.canvas.style.visibility = "visible"; + // unlock our anchor + this.anchor.locked = false; + // clear floating anchor. + this._jsPlumb.floatingEndpoint = null; + } + + }.bind(this); + + dragOptions = _jp.extend(defaultOpts, dragOptions); + dragOptions.scope = this.scope || dragOptions.scope; + dragOptions[beforeStartEvent] = _ju.wrap(dragOptions[beforeStartEvent], beforeStart, false); + dragOptions[startEvent] = _ju.wrap(dragOptions[startEvent], start, false); + // extracted drag handler function so can be used by makeSource + dragOptions[dragEvent] = _ju.wrap(dragOptions[dragEvent], _dragHandler.drag); + dragOptions[stopEvent] = _ju.wrap(dragOptions[stopEvent], stop); + dragOptions.multipleDrop = false; + + dragOptions.canDrag = function () { + return this.isSource || this.isTemporarySource || (this.connections.length > 0 && this.connectionsDetachable !== false); + }.bind(this); + + _jsPlumb.initDraggable(this.canvas, dragOptions, "internal"); + + this.canvas._jsPlumbRelatedElement = this.element; + + draggingInitialised = true; + } + }; + + var ep = params.endpoint || this._jsPlumb.instance.Defaults.Endpoint || _jp.Defaults.Endpoint; + this.setEndpoint(ep, true); + var anchorParamsToUse = params.anchor ? params.anchor : params.anchors ? params.anchors : (_jsPlumb.Defaults.Anchor || "Top"); + this.setAnchor(anchorParamsToUse, true); + + // finally, set type if it was provided + var type = [ "default", (params.type || "")].join(" "); + this.addType(type, params.data, true); + this.canvas = this.endpoint.canvas; + this.canvas._jsPlumb = this; + + this.initDraggable(); + + // pulled this out into a function so we can reuse it for the inPlaceCopy canvas; you can now drop detached connections + // back onto the endpoint you detached it from. + var _initDropTarget = function (canvas, isTransient, endpoint, referenceEndpoint) { + + if (_jp.isDropSupported(this.element)) { + var dropOptions = params.dropOptions || _jsPlumb.Defaults.DropOptions || _jp.Defaults.DropOptions; + dropOptions = _jp.extend({}, dropOptions); + dropOptions.scope = dropOptions.scope || this.scope; + var dropEvent = _jp.dragEvents.drop, + overEvent = _jp.dragEvents.over, + outEvent = _jp.dragEvents.out, + _ep = this, + drop = _jsPlumb.EndpointDropHandler({ + getEndpoint: function () { + return _ep; + }, + jsPlumb: _jsPlumb, + enabled: function () { + return endpoint != null ? endpoint.isEnabled() : true; + }, + isFull: function () { + return endpoint.isFull(); + }, + element: this.element, + elementId: this.elementId, + isSource: this.isSource, + isTarget: this.isTarget, + addClass: function (clazz) { + _ep.addClass(clazz); + }, + removeClass: function (clazz) { + _ep.removeClass(clazz); + }, + isDropAllowed: function () { + return _ep.isDropAllowed.apply(_ep, arguments); + }, + reference:referenceEndpoint, + isRedrop:function(jpc, dhParams) { + return jpc.suspendedEndpoint && dhParams.reference && (jpc.suspendedEndpoint.id === dhParams.reference.id); + } + }); + + dropOptions[dropEvent] = _ju.wrap(dropOptions[dropEvent], drop, true); + dropOptions[overEvent] = _ju.wrap(dropOptions[overEvent], function () { + var draggable = _jp.getDragObject(arguments), + id = _jsPlumb.getAttribute(_jp.getElement(draggable), "dragId"), + _jpc = _jsPlumb.getFloatingConnectionFor(id);//_jsPlumb.floatingConnections[id]; + + if (_jpc != null) { + var idx = _jsPlumb.getFloatingAnchorIndex(_jpc); + // here we should fire the 'over' event if we are a target and this is a new connection, + // or we are the same as the floating endpoint. + var _cont = (this.isTarget && idx !== 0) || (_jpc.suspendedEndpoint && this.referenceEndpoint && this.referenceEndpoint.id === _jpc.suspendedEndpoint.id); + if (_cont) { + var bb = _jsPlumb.checkCondition("checkDropAllowed", { + sourceEndpoint: _jpc.endpoints[idx], + targetEndpoint: this, + connection: _jpc + }); + this[(bb ? "add" : "remove") + "Class"](_jsPlumb.endpointDropAllowedClass); + this[(bb ? "remove" : "add") + "Class"](_jsPlumb.endpointDropForbiddenClass); + _jpc.endpoints[idx].anchor.over(this.anchor, this); + } + } + }.bind(this)); + + dropOptions[outEvent] = _ju.wrap(dropOptions[outEvent], function () { + var draggable = _jp.getDragObject(arguments), + id = draggable == null ? null : _jsPlumb.getAttribute(_jp.getElement(draggable), "dragId"), + _jpc = id ? _jsPlumb.getFloatingConnectionFor(id) : null; + + if (_jpc != null) { + var idx = _jsPlumb.getFloatingAnchorIndex(_jpc); + var _cont = (this.isTarget && idx !== 0) || (_jpc.suspendedEndpoint && this.referenceEndpoint && this.referenceEndpoint.id === _jpc.suspendedEndpoint.id); + if (_cont) { + this.removeClass(_jsPlumb.endpointDropAllowedClass); + this.removeClass(_jsPlumb.endpointDropForbiddenClass); + _jpc.endpoints[idx].anchor.out(); + } + } + }.bind(this)); + + _jsPlumb.initDroppable(canvas, dropOptions, "internal", isTransient); + } + }.bind(this); + + // Initialise the endpoint's canvas as a drop target. The drop handler will take care of the logic of whether + // something can actually be dropped. + if (!this.anchor.isFloating) { + _initDropTarget(this.canvas, !(params._transient || this.anchor.isFloating), this, params.reference); + } + + return this; + }; + + _ju.extend(_jp.Endpoint, _jp.OverlayCapableJsPlumbUIComponent, { + + setVisible: function (v, doNotChangeConnections, doNotNotifyOtherEndpoint) { + this._jsPlumb.visible = v; + if (this.canvas) { + this.canvas.style.display = v ? "block" : "none"; + } + this[v ? "showOverlays" : "hideOverlays"](); + if (!doNotChangeConnections) { + for (var i = 0; i < this.connections.length; i++) { + this.connections[i].setVisible(v); + if (!doNotNotifyOtherEndpoint) { + var oIdx = this === this.connections[i].endpoints[0] ? 1 : 0; + // only change the other endpoint if this is its only connection. + if (this.connections[i].endpoints[oIdx].connections.length === 1) { + this.connections[i].endpoints[oIdx].setVisible(v, true, true); + } + } + } + } + }, + getAttachedElements: function () { + return this.connections; + }, + applyType: function (t, doNotRepaint) { + this.setPaintStyle(t.endpointStyle || t.paintStyle, doNotRepaint); + this.setHoverPaintStyle(t.endpointHoverStyle || t.hoverPaintStyle, doNotRepaint); + if (t.maxConnections != null) { + this._jsPlumb.maxConnections = t.maxConnections; + } + if (t.scope) { + this.scope = t.scope; + } + _jp.extend(this, t, typeParameters); + if (t.cssClass != null && this.canvas) { + this._jsPlumb.instance.addClass(this.canvas, t.cssClass); + } + _jp.OverlayCapableJsPlumbUIComponent.applyType(this, t); + }, + isEnabled: function () { + return this._jsPlumb.enabled; + }, + setEnabled: function (e) { + this._jsPlumb.enabled = e; + }, + cleanup: function () { + var anchorClass = this._jsPlumb.instance.endpointAnchorClassPrefix + (this._jsPlumb.currentAnchorClass ? "-" + this._jsPlumb.currentAnchorClass : ""); + _jp.removeClass(this.element, anchorClass); + this.anchor = null; + this.endpoint.cleanup(true); + this.endpoint.destroy(); + this.endpoint = null; + // drag/drop + this._jsPlumb.instance.destroyDraggable(this.canvas, "internal"); + this._jsPlumb.instance.destroyDroppable(this.canvas, "internal"); + }, + setHover: function (h) { + if (this.endpoint && this._jsPlumb && !this._jsPlumb.instance.isConnectionBeingDragged()) { + this.endpoint.setHover(h); + } + }, + isFull: function () { + return this._jsPlumb.maxConnections === 0 ? true : !(this.isFloating() || this._jsPlumb.maxConnections < 0 || this.connections.length < this._jsPlumb.maxConnections); + }, + /** + * private but needs to be exposed. + */ + isFloating: function () { + return this.anchor != null && this.anchor.isFloating; + }, + isConnectedTo: function (endpoint) { + var found = false; + if (endpoint) { + for (var i = 0; i < this.connections.length; i++) { + if (this.connections[i].endpoints[1] === endpoint || this.connections[i].endpoints[0] === endpoint) { + found = true; + break; + } + } + } + return found; + }, + getConnectionCost: function () { + return this._jsPlumb.connectionCost; + }, + setConnectionCost: function (c) { + this._jsPlumb.connectionCost = c; + }, + areConnectionsDirected: function () { + return this._jsPlumb.connectionsDirected; + }, + setConnectionsDirected: function (b) { + this._jsPlumb.connectionsDirected = b; + }, + setElementId: function (_elId) { + this.elementId = _elId; + this.anchor.elementId = _elId; + }, + setReferenceElement: function (_el) { + this.element = _jp.getElement(_el); + }, + setDragAllowedWhenFull: function (allowed) { + this.dragAllowedWhenFull = allowed; + }, + equals: function (endpoint) { + return this.anchor.equals(endpoint.anchor); + }, + getUuid: function () { + return this._jsPlumb.uuid; + }, + computeAnchor: function (params) { + return this.anchor.compute(params); + } + }); + + root.jsPlumbInstance.prototype.EndpointDropHandler = function (dhParams) { + return function (e) { + + var _jsPlumb = dhParams.jsPlumb; + + // remove the classes that are added dynamically. drop is neither forbidden nor allowed now that + // the drop is finishing. + dhParams.removeClass(_jsPlumb.endpointDropAllowedClass); + dhParams.removeClass(_jsPlumb.endpointDropForbiddenClass); + + var originalEvent = _jsPlumb.getDropEvent(arguments), + draggable = _jsPlumb.getDragObject(arguments), + id = _jsPlumb.getAttribute(draggable, "dragId"), + elId = _jsPlumb.getAttribute(draggable, "elId"), + scope = _jsPlumb.getAttribute(draggable, "originalScope"), + jpc = _jsPlumb.getFloatingConnectionFor(id); + + // if no active connection, bail. + if (jpc == null) { + return; + } + + // calculate if this is an existing connection. + var existingConnection = jpc.suspendedEndpoint != null; + + // if suspended endpoint exists but has been cleaned up, bail. This means it's an existing connection + // that has been detached and will shortly be discarded. + if (existingConnection && jpc.suspendedEndpoint._jsPlumb == null) { + return; + } + + // get the drop endpoint. for a normal connection this is just the one that would replace the currently + // floating endpoint. for a makeTarget this is a new endpoint that is created on drop. But we leave that to + // the handler to figure out. + var _ep = dhParams.getEndpoint(jpc); + + // If we're not given an endpoint to use, bail. + if (_ep == null) { + return; + } + + // if this is a drop back where the connection came from, mark it force reattach and + // return; the stop handler will reattach. without firing an event. + if (dhParams.isRedrop(jpc, dhParams)) { + jpc._forceReattach = true; + jpc.setHover(false); + if (dhParams.maybeCleanup) { + dhParams.maybeCleanup(_ep); + } + return; + } + + // ensure we dont bother trying to drop sources on non-source eps, and same for target. + var idx = _jsPlumb.getFloatingAnchorIndex(jpc); + if ((idx === 0 && !dhParams.isSource)|| (idx === 1 && !dhParams.isTarget)){ + if (dhParams.maybeCleanup) { + dhParams.maybeCleanup(_ep); + } + return; + } + + if (dhParams.onDrop) { + dhParams.onDrop(jpc); + } + + // restore the original scope if necessary (issue 57) + if (scope) { + _jsPlumb.setDragScope(draggable, scope); + } + + // if the target of the drop is full, fire an event (we abort below) + // makeTarget: keep. + var isFull = dhParams.isFull(e); + if (isFull) { + _ep.fire("maxConnections", { + endpoint: this, + connection: jpc, + maxConnections: _ep._jsPlumb.maxConnections + }, originalEvent); + } + // + // if endpoint enabled, not full, and matches the index of the floating endpoint... + if (!isFull && dhParams.enabled()) { + var _doContinue = true; + + // before testing for beforeDrop, reset the connection's source/target to be the actual DOM elements + // involved (that is, stash any temporary stuff used for dragging. but we need to keep it around in + // order that the anchor manager can clean things up properly). + if (idx === 0) { + jpc.floatingElement = jpc.source; + jpc.floatingId = jpc.sourceId; + jpc.floatingEndpoint = jpc.endpoints[0]; + jpc.floatingIndex = 0; + jpc.source = dhParams.element; + jpc.sourceId = _jsPlumb.getId(dhParams.element); + } else { + jpc.floatingElement = jpc.target; + jpc.floatingId = jpc.targetId; + jpc.floatingEndpoint = jpc.endpoints[1]; + jpc.floatingIndex = 1; + jpc.target = dhParams.element; + jpc.targetId = _jsPlumb.getId(dhParams.element); + } + + // if this is an existing connection and detach is not allowed we won't continue. The connection's + // endpoints have been reinstated; everything is back to how it was. + if (existingConnection && jpc.suspendedEndpoint.id !== _ep.id) { + if (!jpc.isDetachAllowed(jpc) || !jpc.endpoints[idx].isDetachAllowed(jpc) || !jpc.suspendedEndpoint.isDetachAllowed(jpc) || !_jsPlumb.checkCondition("beforeDetach", jpc)) { + _doContinue = false; + } + } + +// ------------ wrap the execution path in a function so we can support asynchronous beforeDrop + + var continueFunction = function (optionalData) { + // remove this jpc from the current endpoint, which is a floating endpoint that we will + // subsequently discard. + jpc.endpoints[idx].detachFromConnection(jpc); + + // if there's a suspended endpoint, detach it from the connection. + if (jpc.suspendedEndpoint) { + jpc.suspendedEndpoint.detachFromConnection(jpc); + } + + jpc.endpoints[idx] = _ep; + _ep.addConnection(jpc); + + // copy our parameters in to the connection: + var params = _ep.getParameters(); + for (var aParam in params) { + jpc.setParameter(aParam, params[aParam]); + } + + if (!existingConnection) { + // if not an existing connection and + if (params.draggable) { + _jsPlumb.initDraggable(this.element, dhParams.dragOptions, "internal", _jsPlumb); + } + } + else { + var suspendedElementId = jpc.suspendedEndpoint.elementId; + _jsPlumb.fireMoveEvent({ + index: idx, + originalSourceId: idx === 0 ? suspendedElementId : jpc.sourceId, + newSourceId: idx === 0 ? _ep.elementId : jpc.sourceId, + originalTargetId: idx === 1 ? suspendedElementId : jpc.targetId, + newTargetId: idx === 1 ? _ep.elementId : jpc.targetId, + originalSourceEndpoint: idx === 0 ? jpc.suspendedEndpoint : jpc.endpoints[0], + newSourceEndpoint: idx === 0 ? _ep : jpc.endpoints[0], + originalTargetEndpoint: idx === 1 ? jpc.suspendedEndpoint : jpc.endpoints[1], + newTargetEndpoint: idx === 1 ? _ep : jpc.endpoints[1], + connection: jpc + }, originalEvent); + } + + if (idx === 1) { + _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.targetId, jpc, jpc.target, 1); + } + else { + _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.sourceId, jpc, jpc.source, 0); + } + + // when makeSource has uniqueEndpoint:true, we want to create connections with new endpoints + // that are subsequently deleted. So makeSource sets `finalEndpoint`, which is the Endpoint to + // which the connection should be attached. The `detachFromConnection` call below results in the + // temporary endpoint being cleaned up. + if (jpc.endpoints[0].finalEndpoint) { + var _toDelete = jpc.endpoints[0]; + _toDelete.detachFromConnection(jpc); + jpc.endpoints[0] = jpc.endpoints[0].finalEndpoint; + jpc.endpoints[0].addConnection(jpc); + } + + // if optionalData was given, merge it onto the connection's data. + if (_ju.isObject(optionalData)) { + jpc.mergeData(optionalData); + } + // finalise will inform the anchor manager and also add to + // connectionsByScope if necessary. + _jsPlumb.finaliseConnection(jpc, null, originalEvent, false); + jpc.setHover(false); + + // SP continuous anchor flush + _jsPlumb.revalidate(jpc.endpoints[0].element); + + }.bind(this); + + var dontContinueFunction = function () { + // otherwise just put it back on the endpoint it was on before the drag. + if (jpc.suspendedEndpoint) { + jpc.endpoints[idx] = jpc.suspendedEndpoint; + jpc.setHover(false); + jpc._forceDetach = true; + if (idx === 0) { + jpc.source = jpc.suspendedEndpoint.element; + jpc.sourceId = jpc.suspendedEndpoint.elementId; + } else { + jpc.target = jpc.suspendedEndpoint.element; + jpc.targetId = jpc.suspendedEndpoint.elementId; + } + jpc.suspendedEndpoint.addConnection(jpc); + + // TODO checkSanity + if (idx === 1) { + _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.targetId, jpc, jpc.target, 1); + } + else { + _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.sourceId, jpc, jpc.source, 0); + } + + _jsPlumb.repaint(jpc.sourceId); + jpc._forceDetach = false; + } + }; + +// -------------------------------------- + // now check beforeDrop. this will be available only on Endpoints that are setup to + // have a beforeDrop condition (although, secretly, under the hood all Endpoints and + // the Connection have them, because they are on jsPlumbUIComponent. shhh!), because + // it only makes sense to have it on a target endpoint. + _doContinue = _doContinue && dhParams.isDropAllowed(jpc.sourceId, jpc.targetId, jpc.scope, jpc, _ep);// && jpc.pending; + + if (_doContinue) { + continueFunction(_doContinue); + return true; + } + else { + dontContinueFunction(); + } + } + + if (dhParams.maybeCleanup) { + dhParams.maybeCleanup(_ep); + } + + _jsPlumb.currentlyDragging = false; + }; + }; +}).call(typeof window !== 'undefined' ? window : this); + +/* + * This file contains the code for Connections. + * + * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) + * + * https://jsplumbtoolkit.com + * https://github.com/jsplumb/jsplumb + * + * Dual licensed under the MIT and GPL2 licenses. + */ +; +(function () { + + "use strict"; + var root = this, + _jp = root.jsPlumb, + _ju = root.jsPlumbUtil; + + var makeConnector = function (_jsPlumb, renderMode, connectorName, connectorArgs, forComponent) { + // first make sure we have a cache for the specified renderer + _jp.Connectors[renderMode] = _jp.Connectors[renderMode] || {}; + + // now see if the one we want exists; if not we will try to make it + if (_jp.Connectors[renderMode][connectorName] == null) { + + if (_jp.Connectors[connectorName] == null) { + if (!_jsPlumb.Defaults.DoNotThrowErrors) { + throw new TypeError("jsPlumb: unknown connector type '" + connectorName + "'"); + } else { + return null; + } + } + + _jp.Connectors[renderMode][connectorName] = function() { + _jp.Connectors[connectorName].apply(this, arguments); + _jp.ConnectorRenderers[renderMode].apply(this, arguments); + }; + + _ju.extend(_jp.Connectors[renderMode][connectorName], [ _jp.Connectors[connectorName], _jp.ConnectorRenderers[renderMode]]); + + } + + return new _jp.Connectors[renderMode][connectorName](connectorArgs, forComponent); + }, + _makeAnchor = function (anchorParams, elementId, _jsPlumb) { + return (anchorParams) ? _jsPlumb.makeAnchor(anchorParams, elementId, _jsPlumb) : null; + }, + _updateConnectedClass = function (conn, element, _jsPlumb, remove) { + if (element != null) { + element._jsPlumbConnections = element._jsPlumbConnections || {}; + if (remove) { + delete element._jsPlumbConnections[conn.id]; + } + else { + element._jsPlumbConnections[conn.id] = true; + } + + if (_ju.isEmpty(element._jsPlumbConnections)) { + _jsPlumb.removeClass(element, _jsPlumb.connectedClass); + } + else { + _jsPlumb.addClass(element, _jsPlumb.connectedClass); + } + } + }; + + _jp.Connection = function (params) { + var _newEndpoint = params.newEndpoint; + + this.id = params.id; + this.connector = null; + this.idPrefix = "_jsplumb_c_"; + this.defaultLabelLocation = 0.5; + this.defaultOverlayKeys = ["Overlays", "ConnectionOverlays"]; + // if a new connection is the result of moving some existing connection, params.previousConnection + // will have that Connection in it. listeners for the jsPlumbConnection event can look for that + // member and take action if they need to. + this.previousConnection = params.previousConnection; + this.source = _jp.getElement(params.source); + this.target = _jp.getElement(params.target); + + + _jp.OverlayCapableJsPlumbUIComponent.apply(this, arguments); + + // sourceEndpoint and targetEndpoint override source/target, if they are present. but + // source is not overridden if the Endpoint has declared it is not the final target of a connection; + // instead we use the source that the Endpoint declares will be the final source element. + if (params.sourceEndpoint) { + this.source = params.sourceEndpoint.getElement(); + this.sourceId = params.sourceEndpoint.elementId; + } else { + this.sourceId = this._jsPlumb.instance.getId(this.source); + } + + if (params.targetEndpoint) { + this.target = params.targetEndpoint.getElement(); + this.targetId = params.targetEndpoint.elementId; + } else { + this.targetId = this._jsPlumb.instance.getId(this.target); + } + + + this.scope = params.scope; // scope may have been passed in to the connect call. if it wasn't, we will pull it from the source endpoint, after having initialised the endpoints. + this.endpoints = []; + this.endpointStyles = []; + + var _jsPlumb = this._jsPlumb.instance; + + _jsPlumb.manage(this.sourceId, this.source); + _jsPlumb.manage(this.targetId, this.target); + + this._jsPlumb.visible = true; + + this._jsPlumb.params = { + cssClass: params.cssClass, + container: params.container, + "pointer-events": params["pointer-events"], + editorParams: params.editorParams, + overlays: params.overlays + }; + this._jsPlumb.lastPaintedAt = null; + + // listen to mouseover and mouseout events passed from the container delegate. + this.bind("mouseover", function () { + this.setHover(true); + }.bind(this)); + this.bind("mouseout", function () { + this.setHover(false); + }.bind(this)); + + +// INITIALISATION CODE + + this.makeEndpoint = function (isSource, el, elId, ep, definition) { + elId = elId || this._jsPlumb.instance.getId(el); + return this.prepareEndpoint(_jsPlumb, _newEndpoint, this, ep, isSource ? 0 : 1, params, el, elId, definition); + }; + + // if type given, get the endpoint definitions mapping to that type from the jsplumb instance, and use those. + // we apply types at the end of this constructor but endpoints are only honoured in a type definition at + // create time. + if (params.type) { + params.endpoints = params.endpoints || this._jsPlumb.instance.deriveEndpointAndAnchorSpec(params.type).endpoints; + } + + var eS = this.makeEndpoint(true, this.source, this.sourceId, params.sourceEndpoint), + eT = this.makeEndpoint(false, this.target, this.targetId, params.targetEndpoint); + + if (eS) { + _ju.addToList(params.endpointsByElement, this.sourceId, eS); + } + if (eT) { + _ju.addToList(params.endpointsByElement, this.targetId, eT); + } + // if scope not set, set it to be the scope for the source endpoint. + if (!this.scope) { + this.scope = this.endpoints[0].scope; + } + + // if explicitly told to (or not to) delete endpoints when empty, override endpoint's preferences + if (params.deleteEndpointsOnEmpty != null) { + this.endpoints[0].setDeleteOnEmpty(params.deleteEndpointsOnEmpty); + this.endpoints[1].setDeleteOnEmpty(params.deleteEndpointsOnEmpty); + } + +// -------------------------- DEFAULT TYPE --------------------------------------------- + + // DETACHABLE + var _detachable = _jsPlumb.Defaults.ConnectionsDetachable; + if (params.detachable === false) { + _detachable = false; + } + if (this.endpoints[0].connectionsDetachable === false) { + _detachable = false; + } + if (this.endpoints[1].connectionsDetachable === false) { + _detachable = false; + } + // REATTACH + var _reattach = params.reattach || this.endpoints[0].reattachConnections || this.endpoints[1].reattachConnections || _jsPlumb.Defaults.ReattachConnections; + + this.appendToDefaultType({ + detachable: _detachable, + reattach: _reattach, + paintStyle:this.endpoints[0].connectorStyle || this.endpoints[1].connectorStyle || params.paintStyle || _jsPlumb.Defaults.PaintStyle || _jp.Defaults.PaintStyle, + hoverPaintStyle:this.endpoints[0].connectorHoverStyle || this.endpoints[1].connectorHoverStyle || params.hoverPaintStyle || _jsPlumb.Defaults.HoverPaintStyle || _jp.Defaults.HoverPaintStyle + }); + + var _suspendedAt = _jsPlumb.getSuspendedAt(); + if (!_jsPlumb.isSuspendDrawing()) { + // paint the endpoints + var myInfo = _jsPlumb.getCachedData(this.sourceId), + myOffset = myInfo.o, myWH = myInfo.s, + otherInfo = _jsPlumb.getCachedData(this.targetId), + otherOffset = otherInfo.o, + otherWH = otherInfo.s, + initialTimestamp = _suspendedAt || jsPlumbUtil.uuid(), + anchorLoc = this.endpoints[0].anchor.compute({ + xy: [ myOffset.left, myOffset.top ], wh: myWH, element: this.endpoints[0], + elementId: this.endpoints[0].elementId, + txy: [ otherOffset.left, otherOffset.top ], twh: otherWH, tElement: this.endpoints[1], + timestamp: initialTimestamp, + rotation:_jsPlumb.getRotation(this.endpoints[0].elementId) + }); + + this.endpoints[0].paint({ anchorLoc: anchorLoc, timestamp: initialTimestamp }); + + anchorLoc = this.endpoints[1].anchor.compute({ + xy: [ otherOffset.left, otherOffset.top ], wh: otherWH, element: this.endpoints[1], + elementId: this.endpoints[1].elementId, + txy: [ myOffset.left, myOffset.top ], twh: myWH, tElement: this.endpoints[0], + timestamp: initialTimestamp, + rotation:_jsPlumb.getRotation(this.endpoints[1].elementId) + }); + this.endpoints[1].paint({ anchorLoc: anchorLoc, timestamp: initialTimestamp }); + } + + this.getTypeDescriptor = function () { + return "connection"; + }; + this.getAttachedElements = function () { + return this.endpoints; + }; + + this.isDetachable = function (ep) { + return this._jsPlumb.detachable === false ? false : ep != null ? ep.connectionsDetachable === true : this._jsPlumb.detachable === true; + }; + this.setDetachable = function (detachable) { + this._jsPlumb.detachable = detachable === true; + }; + this.isReattach = function () { + return this._jsPlumb.reattach === true || this.endpoints[0].reattachConnections === true || this.endpoints[1].reattachConnections === true; + }; + this.setReattach = function (reattach) { + this._jsPlumb.reattach = reattach === true; + }; + +// END INITIALISATION CODE + + +// COST + DIRECTIONALITY + // if cost not supplied, try to inherit from source endpoint + this._jsPlumb.cost = params.cost || this.endpoints[0].getConnectionCost(); + this._jsPlumb.directed = params.directed; + // inherit directed flag if set no source endpoint + if (params.directed == null) { + this._jsPlumb.directed = this.endpoints[0].areConnectionsDirected(); + } +// END COST + DIRECTIONALITY + +// PARAMETERS + // merge all the parameters objects into the connection. parameters set + // on the connection take precedence; then source endpoint params, then + // finally target endpoint params. + var _p = _jp.extend({}, this.endpoints[1].getParameters()); + _jp.extend(_p, this.endpoints[0].getParameters()); + _jp.extend(_p, this.getParameters()); + this.setParameters(_p); +// END PARAMETERS + +// PAINTING + + this.setConnector(this.endpoints[0].connector || this.endpoints[1].connector || params.connector || _jsPlumb.Defaults.Connector || _jp.Defaults.Connector, true); + var data = params.data == null || !_ju.isObject(params.data) ? {} : params.data; + this.getData = function() { return data; }; + this.setData = function(d) { data = d || {}; }; + this.mergeData = function(d) { data = _jp.extend(data, d); }; + + // the very last thing we do is apply types, if there are any. + var _types = [ "default", this.endpoints[0].connectionType, this.endpoints[1].connectionType, params.type ].join(" "); + if (/[^\s]/.test(_types)) { + this.addType(_types, params.data, true); + } + + this.updateConnectedClass(); + +// END PAINTING + }; + + _ju.extend(_jp.Connection, _jp.OverlayCapableJsPlumbUIComponent, { + applyType: function (t, doNotRepaint, typeMap) { + + var _connector = null; + if (t.connector != null) { + _connector = this.getCachedTypeItem("connector", typeMap.connector); + if (_connector == null) { + _connector = this.prepareConnector(t.connector, typeMap.connector); + this.cacheTypeItem("connector", _connector, typeMap.connector); + } + this.setPreparedConnector(_connector); + } + + // none of these things result in the creation of objects so can be ignored. + if (t.detachable != null) { + this.setDetachable(t.detachable); + } + if (t.reattach != null) { + this.setReattach(t.reattach); + } + if (t.scope) { + this.scope = t.scope; + } + + if (t.cssClass != null && this.canvas) { + this._jsPlumb.instance.addClass(this.canvas, t.cssClass); + } + + var _anchors = null; + // this also results in the creation of objects. + if (t.anchor) { + // note that even if the param was anchor, we store `anchors`. + _anchors = this.getCachedTypeItem("anchors", typeMap.anchor); + if (_anchors == null) { + _anchors = [ this._jsPlumb.instance.makeAnchor(t.anchor), this._jsPlumb.instance.makeAnchor(t.anchor) ]; + this.cacheTypeItem("anchors", _anchors, typeMap.anchor); + } + } + else if (t.anchors) { + _anchors = this.getCachedTypeItem("anchors", typeMap.anchors); + if (_anchors == null) { + _anchors = [ + this._jsPlumb.instance.makeAnchor(t.anchors[0]), + this._jsPlumb.instance.makeAnchor(t.anchors[1]) + ]; + this.cacheTypeItem("anchors", _anchors, typeMap.anchors); + } + } + if (_anchors != null) { + this.endpoints[0].anchor = _anchors[0]; + this.endpoints[1].anchor = _anchors[1]; + if (this.endpoints[1].anchor.isDynamic) { + this._jsPlumb.instance.repaint(this.endpoints[1].elementId); + } + } + + _jp.OverlayCapableJsPlumbUIComponent.applyType(this, t); + }, + addClass: function (c, informEndpoints) { + if (informEndpoints) { + this.endpoints[0].addClass(c); + this.endpoints[1].addClass(c); + if (this.suspendedEndpoint) { + this.suspendedEndpoint.addClass(c); + } + } + if (this.connector) { + this.connector.addClass(c); + } + }, + removeClass: function (c, informEndpoints) { + if (informEndpoints) { + this.endpoints[0].removeClass(c); + this.endpoints[1].removeClass(c); + if (this.suspendedEndpoint) { + this.suspendedEndpoint.removeClass(c); + } + } + if (this.connector) { + this.connector.removeClass(c); + } + }, + isVisible: function () { + return this._jsPlumb.visible; + }, + setVisible: function (v) { + this._jsPlumb.visible = v; + if (this.connector) { + this.connector.setVisible(v); + } + this.repaint(); + }, + cleanup: function () { + this.updateConnectedClass(true); + this.endpoints = null; + this.source = null; + this.target = null; + if (this.connector != null) { + this.connector.cleanup(true); + this.connector.destroy(true); + } + this.connector = null; + }, + updateConnectedClass:function(remove) { + if (this._jsPlumb) { + _updateConnectedClass(this, this.source, this._jsPlumb.instance, remove); + _updateConnectedClass(this, this.target, this._jsPlumb.instance, remove); + } + }, + setHover: function (state) { + if (this.connector && this._jsPlumb && !this._jsPlumb.instance.isConnectionBeingDragged()) { + this.connector.setHover(state); + root.jsPlumb[state ? "addClass" : "removeClass"](this.source, this._jsPlumb.instance.hoverSourceClass); + root.jsPlumb[state ? "addClass" : "removeClass"](this.target, this._jsPlumb.instance.hoverTargetClass); + } + }, + getUuids:function() { + return [ this.endpoints[0].getUuid(), this.endpoints[1].getUuid() ]; + }, + getCost: function () { + return this._jsPlumb ? this._jsPlumb.cost : -Infinity; + }, + setCost: function (c) { + this._jsPlumb.cost = c; + }, + isDirected: function () { + return this._jsPlumb.directed; + }, + getConnector: function () { + return this.connector; + }, + prepareConnector:function(connectorSpec, typeId) { + var connectorArgs = { + _jsPlumb: this._jsPlumb.instance, + cssClass: this._jsPlumb.params.cssClass, + container: this._jsPlumb.params.container, + "pointer-events": this._jsPlumb.params["pointer-events"] + }, + renderMode = this._jsPlumb.instance.getRenderMode(), + connector; + + if (_ju.isString(connectorSpec)) { + connector = makeConnector(this._jsPlumb.instance, renderMode, connectorSpec, connectorArgs, this); + } // lets you use a string as shorthand. + else if (_ju.isArray(connectorSpec)) { + if (connectorSpec.length === 1) { + connector = makeConnector(this._jsPlumb.instance, renderMode, connectorSpec[0], connectorArgs, this); + } + else { + connector = makeConnector(this._jsPlumb.instance, renderMode, connectorSpec[0], _ju.merge(connectorSpec[1], connectorArgs), this); + } + } + if (typeId != null) { + connector.typeId = typeId; + } + return connector; + }, + setPreparedConnector: function(connector, doNotRepaint, doNotChangeListenerComponent, typeId) { + + if (this.connector !== connector) { + + var previous, previousClasses = ""; + // the connector will not be cleaned up if it was set as part of a type, because `typeId` will be set on it + // and we havent passed in `true` for "force" here. + if (this.connector != null) { + previous = this.connector; + previousClasses = previous.getClass(); + this.connector.cleanup(); + this.connector.destroy(); + } + + this.connector = connector; + if (typeId) { + this.cacheTypeItem("connector", connector, typeId); + } + + this.canvas = this.connector.canvas; + this.bgCanvas = this.connector.bgCanvas; + + this.connector.reattach(this._jsPlumb.instance); + + // put classes from prior connector onto the canvas + this.addClass(previousClasses); + + // new: instead of binding listeners per connector, we now just have one delegate on the container. + // so for that handler we set the connection as the '_jsPlumb' member of the canvas element, and + // bgCanvas, if it exists, which it does right now in the VML renderer, so it won't from v 2.0.0 onwards. + if (this.canvas) { + this.canvas._jsPlumb = this; + } + if (this.bgCanvas) { + this.bgCanvas._jsPlumb = this; + } + + if (previous != null) { + var o = this.getOverlays(); + for (var i = 0; i < o.length; i++) { + if (o[i].transfer) { + o[i].transfer(this.connector); + } + } + } + + if (!doNotChangeListenerComponent) { + this.setListenerComponent(this.connector); + } + if (!doNotRepaint) { + this.repaint(); + } + } + }, + setConnector: function (connectorSpec, doNotRepaint, doNotChangeListenerComponent, typeId) { + var connector = this.prepareConnector(connectorSpec, typeId); + this.setPreparedConnector(connector, doNotRepaint, doNotChangeListenerComponent, typeId); + }, + paint: function (params) { + + if (!this._jsPlumb.instance.isSuspendDrawing() && this._jsPlumb.visible) { + params = params || {}; + var timestamp = params.timestamp, + // if the moving object is not the source we must transpose the two references. + swap = false, + tId = swap ? this.sourceId : this.targetId, sId = swap ? this.targetId : this.sourceId, + tIdx = swap ? 0 : 1, sIdx = swap ? 1 : 0; + + if (timestamp == null || timestamp !== this._jsPlumb.lastPaintedAt) { + var sourceInfo = this._jsPlumb.instance.updateOffset({elId:sId}).o, + targetInfo = this._jsPlumb.instance.updateOffset({elId:tId}).o, + sE = this.endpoints[sIdx], tE = this.endpoints[tIdx]; + + var sAnchorP = sE.anchor.getCurrentLocation( + { + xy: [sourceInfo.left, sourceInfo.top], + wh: [sourceInfo.width, sourceInfo.height], + element: sE, + timestamp: timestamp, + rotation:this._jsPlumb.instance.getRotation(this.sourceId) + }), + tAnchorP = tE.anchor.getCurrentLocation({ + xy: [targetInfo.left, targetInfo.top], + wh: [targetInfo.width, targetInfo.height], + element: tE, + timestamp: timestamp, + rotation:this._jsPlumb.instance.getRotation(this.targetId) + }); + + this.connector.resetBounds(); + + this.connector.compute({ + sourcePos: sAnchorP, + targetPos: tAnchorP, + sourceOrientation:sE.anchor.getOrientation(sE), + targetOrientation:tE.anchor.getOrientation(tE), + sourceEndpoint: this.endpoints[sIdx], + targetEndpoint: this.endpoints[tIdx], + "stroke-width": this._jsPlumb.paintStyleInUse.strokeWidth, + sourceInfo: sourceInfo, + targetInfo: targetInfo + }); + + var overlayExtents = { minX: Infinity, minY: Infinity, maxX: -Infinity, maxY: -Infinity }; + + // compute overlays. we do this first so we can get their placements, and adjust the + // container if needs be (if an overlay would be clipped) + for (var i in this._jsPlumb.overlays) { + if (this._jsPlumb.overlays.hasOwnProperty(i)) { + var o = this._jsPlumb.overlays[i]; + if (o.isVisible()) { + this._jsPlumb.overlayPlacements[i] = o.draw(this.connector, this._jsPlumb.paintStyleInUse, this.getAbsoluteOverlayPosition(o)); + overlayExtents.minX = Math.min(overlayExtents.minX, this._jsPlumb.overlayPlacements[i].minX); + overlayExtents.maxX = Math.max(overlayExtents.maxX, this._jsPlumb.overlayPlacements[i].maxX); + overlayExtents.minY = Math.min(overlayExtents.minY, this._jsPlumb.overlayPlacements[i].minY); + overlayExtents.maxY = Math.max(overlayExtents.maxY, this._jsPlumb.overlayPlacements[i].maxY); + } + } + } + + var lineWidth = parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth || 1) / 2, + outlineWidth = parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth || 0), + extents = { + xmin: Math.min(this.connector.bounds.minX - (lineWidth + outlineWidth), overlayExtents.minX), + ymin: Math.min(this.connector.bounds.minY - (lineWidth + outlineWidth), overlayExtents.minY), + xmax: Math.max(this.connector.bounds.maxX + (lineWidth + outlineWidth), overlayExtents.maxX), + ymax: Math.max(this.connector.bounds.maxY + (lineWidth + outlineWidth), overlayExtents.maxY) + }; + // paint the connector. + this.connector.paintExtents = extents; + this.connector.paint(this._jsPlumb.paintStyleInUse, null, extents); + // and then the overlays + for (var j in this._jsPlumb.overlays) { + if (this._jsPlumb.overlays.hasOwnProperty(j)) { + var p = this._jsPlumb.overlays[j]; + if (p.isVisible()) { + p.paint(this._jsPlumb.overlayPlacements[j], extents); + } + } + } + } + this._jsPlumb.lastPaintedAt = timestamp; + } + }, + repaint: function (params) { + var p = jsPlumb.extend(params || {}, {}); + p.elId = this.sourceId; + this.paint(p); + }, + prepareEndpoint: function (_jsPlumb, _newEndpoint, conn, existing, index, params, element, elementId, definition) { + var e; + if (existing) { + conn.endpoints[index] = existing; + existing.addConnection(conn); + } else { + if (!params.endpoints) { + params.endpoints = [ null, null ]; + } + var ep = definition || params.endpoints[index] || params.endpoint || _jsPlumb.Defaults.Endpoints[index] || _jp.Defaults.Endpoints[index] || _jsPlumb.Defaults.Endpoint || _jp.Defaults.Endpoint; + if (!params.endpointStyles) { + params.endpointStyles = [ null, null ]; + } + if (!params.endpointHoverStyles) { + params.endpointHoverStyles = [ null, null ]; + } + var es = params.endpointStyles[index] || params.endpointStyle || _jsPlumb.Defaults.EndpointStyles[index] || _jp.Defaults.EndpointStyles[index] || _jsPlumb.Defaults.EndpointStyle || _jp.Defaults.EndpointStyle; + // Endpoints derive their fill from the connector's stroke, if no fill was specified. + if (es.fill == null && params.paintStyle != null) { + es.fill = params.paintStyle.stroke; + } + + if (es.outlineStroke == null && params.paintStyle != null) { + es.outlineStroke = params.paintStyle.outlineStroke; + } + if (es.outlineWidth == null && params.paintStyle != null) { + es.outlineWidth = params.paintStyle.outlineWidth; + } + + var ehs = params.endpointHoverStyles[index] || params.endpointHoverStyle || _jsPlumb.Defaults.EndpointHoverStyles[index] || _jp.Defaults.EndpointHoverStyles[index] || _jsPlumb.Defaults.EndpointHoverStyle || _jp.Defaults.EndpointHoverStyle; + // endpoint hover fill style is derived from connector's hover stroke style + if (params.hoverPaintStyle != null) { + if (ehs == null) { + ehs = {}; + } + if (ehs.fill == null) { + ehs.fill = params.hoverPaintStyle.stroke; + } + } + var a = params.anchors ? params.anchors[index] : + params.anchor ? params.anchor : + _makeAnchor(_jsPlumb.Defaults.Anchors[index], elementId, _jsPlumb) || + _makeAnchor(_jp.Defaults.Anchors[index], elementId, _jsPlumb) || + _makeAnchor(_jsPlumb.Defaults.Anchor, elementId, _jsPlumb) || + _makeAnchor(_jp.Defaults.Anchor, elementId, _jsPlumb), + u = params.uuids ? params.uuids[index] : null; + + e = _newEndpoint({ + paintStyle: es, hoverPaintStyle: ehs, endpoint: ep, connections: [ conn ], + uuid: u, anchor: a, source: element, scope: params.scope, + reattach: params.reattach || _jsPlumb.Defaults.ReattachConnections, + detachable: params.detachable || _jsPlumb.Defaults.ConnectionsDetachable + }); + if (existing == null) { + e.setDeleteOnEmpty(true); + } + conn.endpoints[index] = e; + + if (params.drawEndpoints === false) { + e.setVisible(false, true, true); + } + + } + return e; + }, + replaceEndpoint:function(idx, endpointDef) { + + var current = this.endpoints[idx], + elId = current.elementId, + ebe = this._jsPlumb.instance.getEndpoints(elId), + _idx = ebe.indexOf(current), + _new = this.makeEndpoint(idx === 0, current.element, elId, null, endpointDef); + + this.endpoints[idx] = _new; + + ebe.splice(_idx, 1, _new); + this._jsPlumb.instance.deleteObject({endpoint:current, deleteAttachedObjects:false}); + this._jsPlumb.instance.fire("endpointReplaced", {previous:current, current:_new}); + + this._jsPlumb.instance.router.sourceOrTargetChanged(this.endpoints[1].elementId, this.endpoints[1].elementId, this, this.endpoints[1].element, 1); + + } + + }); // END Connection class +}).call(typeof window !== 'undefined' ? window : this); + +/* + * This file contains the code for creating and manipulating anchors. + * + * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) + * + * https://jsplumbtoolkit.com + * https://github.com/jsplumb/jsplumb + * + * Dual licensed under the MIT and GPL2 licenses. + */ +; +(function () { + + "use strict"; + + var root = this, + _ju = root.jsPlumbUtil, + _jp = root.jsPlumb; + + // + // manages anchors for all elements. + // + _jp.AnchorManager = function (params) { + var _amEndpoints = {}, + continuousAnchorLocations = {}, + continuousAnchorOrientations = {}, + connectionsByElementId = {}, + self = this, + anchorLists = {}, + jsPlumbInstance = params.jsPlumbInstance, + floatingConnections = {}, + // used by placeAnchors function + placeAnchorsOnLine = function (desc, elementDimensions, elementPosition, connections, horizontal, otherMultiplier, reverse, rotation) { + var a = [], step = elementDimensions[horizontal ? 0 : 1] / (connections.length + 1); + + for (var i = 0; i < connections.length; i++) { + var val = (i + 1) * step, other = otherMultiplier * elementDimensions[horizontal ? 1 : 0]; + if (reverse) { + val = elementDimensions[horizontal ? 0 : 1] - val; + } + + var dx = (horizontal ? val : other), x = elementPosition.left + dx, xp = dx / elementDimensions[0], + dy = (horizontal ? other : val), y = elementPosition.top + dy, yp = dy / elementDimensions[1]; + + if (rotation !== 0) { + var rotated = jsPlumbUtil.rotatePoint([x, y], [elementPosition.centerx, elementPosition.centery], rotation); + x = rotated[0]; + y = rotated[1]; + } + + a.push([ x, y, xp, yp, connections[i][1], connections[i][2] ]); + } + + return a; + }, + rightAndBottomSort = function(a, b) { + return b[0][0] - a[0][0]; + }, + // used by edgeSortFunctions + leftAndTopSort = function (a, b) { + var p1 = a[0][0] < 0 ? -Math.PI - a[0][0] : Math.PI - a[0][0], + p2 = b[0][0] < 0 ? -Math.PI - b[0][0] : Math.PI - b[0][0]; + + return p1 - p2; + }, + // used by placeAnchors + edgeSortFunctions = { + "top":leftAndTopSort, + "right": rightAndBottomSort, + "bottom": rightAndBottomSort, + "left": leftAndTopSort + }, + // used by placeAnchors + _sortHelper = function (_array, _fn) { + return _array.sort(_fn); + }, + // used by AnchorManager.redraw + placeAnchors = function (elementId, _anchorLists) { + var cd = jsPlumbInstance.getCachedData(elementId), sS = cd.s, sO = cd.o, + placeSomeAnchors = function (desc, elementDimensions, elementPosition, unsortedConnections, isHorizontal, otherMultiplier, orientation) { + if (unsortedConnections.length > 0) { + var sc = _sortHelper(unsortedConnections, edgeSortFunctions[desc]), // puts them in order based on the target element's pos on screen + reverse = desc === "right" || desc === "top", + rotation = jsPlumbInstance.getRotation(elementId), + anchors = placeAnchorsOnLine(desc, elementDimensions, + elementPosition, sc, + isHorizontal, otherMultiplier, reverse, rotation); + + // takes a computed anchor position and adjusts it for parent offset and scroll, then stores it. + var _setAnchorLocation = function (endpoint, anchorPos) { + continuousAnchorLocations[endpoint.id] = [ anchorPos[0], anchorPos[1], anchorPos[2], anchorPos[3] ]; + continuousAnchorOrientations[endpoint.id] = orientation; + }; + + for (var i = 0; i < anchors.length; i++) { + var c = anchors[i][4], weAreSource = c.endpoints[0].elementId === elementId, weAreTarget = c.endpoints[1].elementId === elementId; + if (weAreSource) { + _setAnchorLocation(c.endpoints[0], anchors[i]); + } + if (weAreTarget) { + _setAnchorLocation(c.endpoints[1], anchors[i]); + } + } + } + }; + + placeSomeAnchors("bottom", sS, sO, _anchorLists.bottom, true, 1, [0, 1]); + placeSomeAnchors("top", sS, sO, _anchorLists.top, true, 0, [0, -1]); + placeSomeAnchors("left", sS, sO, _anchorLists.left, false, 0, [-1, 0]); + placeSomeAnchors("right", sS, sO, _anchorLists.right, false, 1, [1, 0]); + }; + + this.reset = function () { + _amEndpoints = {}; + connectionsByElementId = {}; + anchorLists = {}; + }; + this.addFloatingConnection = function (key, conn) { + floatingConnections[key] = conn; + }; + this.newConnection = function (conn) { + var sourceId = conn.sourceId, targetId = conn.targetId, + ep = conn.endpoints, + doRegisterTarget = true, + registerConnection = function (otherIndex, otherEndpoint, otherAnchor, elId, c) { + if ((sourceId === targetId) && otherAnchor.isContinuous) { + // remove the target endpoint's canvas. we dont need it. + conn._jsPlumb.instance.removeElement(ep[1].canvas); + doRegisterTarget = false; + } + _ju.addToList(connectionsByElementId, elId, [c, otherEndpoint, otherAnchor.constructor === _jp.DynamicAnchor]); + }; + + registerConnection(0, ep[0], ep[0].anchor, targetId, conn); + if (doRegisterTarget) { + registerConnection(1, ep[1], ep[1].anchor, sourceId, conn); + } + }; + var removeEndpointFromAnchorLists = function (endpoint) { + (function (list, eId) { + if (list) { // transient anchors dont get entries in this list. + var f = function (e) { + return e[4] === eId; + }; + _ju.removeWithFunction(list.top, f); + _ju.removeWithFunction(list.left, f); + _ju.removeWithFunction(list.bottom, f); + _ju.removeWithFunction(list.right, f); + } + })(anchorLists[endpoint.elementId], endpoint.id); + }; + this.connectionDetached = function (connInfo, doNotRedraw) { + var connection = connInfo.connection || connInfo, + sourceId = connInfo.sourceId, + targetId = connInfo.targetId, + ep = connection.endpoints, + removeConnection = function (otherIndex, otherEndpoint, otherAnchor, elId, c) { + _ju.removeWithFunction(connectionsByElementId[elId], function (_c) { + return _c[0].id === c.id; + }); + }; + + removeConnection(1, ep[1], ep[1].anchor, sourceId, connection); + removeConnection(0, ep[0], ep[0].anchor, targetId, connection); + if (connection.floatingId) { + removeConnection(connection.floatingIndex, connection.floatingEndpoint, connection.floatingEndpoint.anchor, connection.floatingId, connection); + removeEndpointFromAnchorLists(connection.floatingEndpoint); + } + + // remove from anchorLists + removeEndpointFromAnchorLists(connection.endpoints[0]); + removeEndpointFromAnchorLists(connection.endpoints[1]); + + if (!doNotRedraw) { + self.redraw(connection.sourceId); + if (connection.targetId !== connection.sourceId) { + self.redraw(connection.targetId); + } + } + }; + this.addEndpoint = function (endpoint, elementId) { + _ju.addToList(_amEndpoints, elementId, endpoint); + }; + this.changeId = function (oldId, newId) { + connectionsByElementId[newId] = connectionsByElementId[oldId]; + _amEndpoints[newId] = _amEndpoints[oldId]; + delete connectionsByElementId[oldId]; + delete _amEndpoints[oldId]; + }; + this.getConnectionsFor = function (elementId) { + return connectionsByElementId[elementId] || []; + }; + this.getEndpointsFor = function (elementId) { + return _amEndpoints[elementId] || []; + }; + this.deleteEndpoint = function (endpoint) { + _ju.removeWithFunction(_amEndpoints[endpoint.elementId], function (e) { + return e.id === endpoint.id; + }); + removeEndpointFromAnchorLists(endpoint); + }; + this.elementRemoved = function (elementId) { + delete floatingConnections[elementId]; + delete _amEndpoints[elementId]; + _amEndpoints[elementId] = []; + }; + // updates the given anchor list by either updating an existing anchor's info, or adding it. this function + // also removes the anchor from its previous list, if the edge it is on has changed. + // all connections found along the way (those that are connected to one of the faces this function + // operates on) are added to the connsToPaint list, as are their endpoints. in this way we know to repaint + // them wthout having to calculate anything else about them. + var _updateAnchorList = function (lists, theta, order, conn, aBoolean, otherElId, idx, reverse, edgeId, elId, connsToPaint, endpointsToPaint) { + // first try to find the exact match, but keep track of the first index of a matching element id along the way.s + var exactIdx = -1, + firstMatchingElIdx = -1, + endpoint = conn.endpoints[idx], + endpointId = endpoint.id, + oIdx = [1, 0][idx], + values = [ + [ theta, order ], + conn, + aBoolean, + otherElId, + endpointId + ], + listToAddTo = lists[edgeId], + listToRemoveFrom = endpoint._continuousAnchorEdge ? lists[endpoint._continuousAnchorEdge] : null, + i, + candidate; + + if (listToRemoveFrom) { + var rIdx = _ju.findWithFunction(listToRemoveFrom, function (e) { + return e[4] === endpointId; + }); + if (rIdx !== -1) { + listToRemoveFrom.splice(rIdx, 1); + // get all connections from this list + for (i = 0; i < listToRemoveFrom.length; i++) { + candidate = listToRemoveFrom[i][1]; + _ju.addWithFunction(connsToPaint, candidate, function (c) { + return c.id === candidate.id; + }); + _ju.addWithFunction(endpointsToPaint, listToRemoveFrom[i][1].endpoints[idx], function (e) { + return e.id === candidate.endpoints[idx].id; + }); + _ju.addWithFunction(endpointsToPaint, listToRemoveFrom[i][1].endpoints[oIdx], function (e) { + return e.id === candidate.endpoints[oIdx].id; + }); + } + } + } + + for (i = 0; i < listToAddTo.length; i++) { + candidate = listToAddTo[i][1]; + if (params.idx === 1 && listToAddTo[i][3] === otherElId && firstMatchingElIdx === -1) { + firstMatchingElIdx = i; + } + _ju.addWithFunction(connsToPaint, candidate, function (c) { + return c.id === candidate.id; + }); + _ju.addWithFunction(endpointsToPaint, listToAddTo[i][1].endpoints[idx], function (e) { + return e.id === candidate.endpoints[idx].id; + }); + _ju.addWithFunction(endpointsToPaint, listToAddTo[i][1].endpoints[oIdx], function (e) { + return e.id === candidate.endpoints[oIdx].id; + }); + } + if (exactIdx !== -1) { + listToAddTo[exactIdx] = values; + } + else { + var insertIdx = reverse ? firstMatchingElIdx !== -1 ? firstMatchingElIdx : 0 : listToAddTo.length; // of course we will get this from having looked through the array shortly. + listToAddTo.splice(insertIdx, 0, values); + } + + // store this for next time. + endpoint._continuousAnchorEdge = edgeId; + }; + + // + // Notification that the connection given has changed source/target from the originalId to the newId. + // + // For a change of source this involves: + // 1. removing the connection from the list of connections stored for the originalId + // 2. updating the source information for the target of the connection + // 3. re-registering the connection in connectionsByElementId with the newId + // + // For a change of target this means find the entry in an endpoint's list for this connection and update its target endpoint + // with the current target in the connection. + // + this.sourceOrTargetChanged = function (originalId, newId, connection, newElement, anchorIndex) { + if (anchorIndex === 0) { + if (originalId !== newId) { + + connection.sourceId = newId; + connection.source = newElement; + + // remove the entry that points from the old source to the target + _ju.removeWithFunction(connectionsByElementId[originalId], function (info) { + return info[0].id === connection.id; + }); + // find entry for target and update it + var tIdx = _ju.findWithFunction(connectionsByElementId[connection.targetId], function (i) { + return i[0].id === connection.id; + }); + if (tIdx > -1) { + connectionsByElementId[connection.targetId][tIdx][0] = connection; + connectionsByElementId[connection.targetId][tIdx][1] = connection.endpoints[0]; + connectionsByElementId[connection.targetId][tIdx][2] = connection.endpoints[0].anchor.constructor === _jp.DynamicAnchor; + } + // add entry for new source + _ju.addToList(connectionsByElementId, newId, [connection, connection.endpoints[1], connection.endpoints[1].anchor.constructor === _jp.DynamicAnchor]); + + // TODO SP not final on this yet. when a user drags an existing connection and it turns into a self + // loop, then this code hides the target endpoint (by removing it from the DOM) But I think this should + // occur only if the anchor is Continuous + if (connection.endpoints[1].anchor.isContinuous) { + if (connection.source === connection.target) { + connection._jsPlumb.instance.removeElement(connection.endpoints[1].canvas); + } else { + if (connection.endpoints[1].canvas.parentNode == null) { + connection._jsPlumb.instance.appendElement(connection.endpoints[1].canvas); + } + } + } + + connection.updateConnectedClass(); + } + } else if (anchorIndex === 1) { + var sourceElId = connection.endpoints[0].elementId; + + connection.target = newElement; + connection.targetId = newId; + + var sIndex = _ju.findWithFunction(connectionsByElementId[sourceElId], function (i) { + return i[0].id === connection.id; + }), + tIndex = _ju.findWithFunction(connectionsByElementId[originalId], function (i) { + return i[0].id === connection.id; + }); + + // update or add data for source + if (sIndex !== -1) { + connectionsByElementId[sourceElId][sIndex][0] = connection; + connectionsByElementId[sourceElId][sIndex][1] = connection.endpoints[1]; + connectionsByElementId[sourceElId][sIndex][2] = connection.endpoints[1].anchor.constructor === _jp.DynamicAnchor; + } + + // remove entry for previous target (if there) + if (tIndex > -1) { + connectionsByElementId[originalId].splice(tIndex, 1); + // add entry for new target + _ju.addToList(connectionsByElementId, newId, [connection, connection.endpoints[0], connection.endpoints[0].anchor.constructor === _jp.DynamicAnchor]); + } + + connection.updateConnectedClass(); + } + }; + + // + // moves the given endpoint from `currentId` to `element`. + // This involves: + // + // 1. changing the key in _amEndpoints under which the endpoint is stored + // 2. changing the source or target values in all of the endpoint's connections + // 3. changing the array in connectionsByElementId in which the endpoint's connections + // are stored (done by either sourceChanged or updateOtherEndpoint) + // + this.rehomeEndpoint = function (ep, currentId, element) { + var eps = _amEndpoints[currentId] || [], + elementId = jsPlumbInstance.getId(element); + + if (elementId !== currentId) { + var idx = eps.indexOf(ep); + if (idx > -1) { + var _ep = eps.splice(idx, 1)[0]; + self.add(_ep, elementId); + } + } + + for (var i = 0; i < ep.connections.length; i++) { + if (ep.connections[i].sourceId === currentId) { + self.sourceOrTargetChanged(currentId, ep.elementId, ep.connections[i], ep.element, 0); + } + else if (ep.connections[i].targetId === currentId) { + self.sourceOrTargetChanged(currentId, ep.elementId, ep.connections[i], ep.element, 1); + } + } + }; + + this.redraw = function (elementId, ui, timestamp, offsetToUI, clearEdits, doNotRecalcEndpoint) { + + var connectionsToPaint = [], + endpointsToPaint = [], + anchorsToUpdate = []; + + if (!jsPlumbInstance.isSuspendDrawing()) { + // get all the endpoints for this element + var ep = _amEndpoints[elementId] || [], + endpointConnections = connectionsByElementId[elementId] || []; + + timestamp = timestamp || jsPlumbUtil.uuid(); + // offsetToUI are values that would have been calculated in the dragManager when registering + // an endpoint for an element that had a parent (somewhere in the hierarchy) that had been + // registered as draggable. + offsetToUI = offsetToUI || {left: 0, top: 0}; + if (ui) { + ui = { + left: ui.left + offsetToUI.left, + top: ui.top + offsetToUI.top + }; + } + + // valid for one paint cycle. + var myOffset = jsPlumbInstance.updateOffset({ elId: elementId, offset: ui, recalc: false, timestamp: timestamp }), + orientationCache = {}; + + // actually, first we should compute the orientation of this element to all other elements to which + // this element is connected with a continuous anchor (whether both ends of the connection have + // a continuous anchor or just one) + + for (var i = 0; i < endpointConnections.length; i++) { + var conn = endpointConnections[i][0], + sourceId = conn.sourceId, + targetId = conn.targetId, + sourceContinuous = conn.endpoints[0].anchor.isContinuous, + targetContinuous = conn.endpoints[1].anchor.isContinuous; + + if (sourceContinuous || targetContinuous) { + var oKey = sourceId + "_" + targetId, + o = orientationCache[oKey], + oIdx = conn.sourceId === elementId ? 1 : 0, + targetRotation = jsPlumbInstance.getRotation(targetId), + sourceRotation = jsPlumbInstance.getRotation(sourceId); + + if (sourceContinuous && !anchorLists[sourceId]) { + anchorLists[sourceId] = { top: [], right: [], bottom: [], left: [] }; + } + if (targetContinuous && !anchorLists[targetId]) { + anchorLists[targetId] = { top: [], right: [], bottom: [], left: [] }; + } + + if (elementId !== targetId) { + jsPlumbInstance.updateOffset({ elId: targetId, timestamp: timestamp }); + } + if (elementId !== sourceId) { + jsPlumbInstance.updateOffset({ elId: sourceId, timestamp: timestamp }); + } + + var td = jsPlumbInstance.getCachedData(targetId), + sd = jsPlumbInstance.getCachedData(sourceId); + + if (targetId === sourceId && (sourceContinuous || targetContinuous)) { + // here we may want to improve this by somehow determining the face we'd like + // to put the connector on. ideally, when drawing, the face should be calculated + // by determining which face is closest to the point at which the mouse button + // was released. for now, we're putting it on the top face. + _updateAnchorList( anchorLists[sourceId], -Math.PI / 2, 0, conn, false, targetId, 0, false, "top", sourceId, connectionsToPaint, endpointsToPaint); + _updateAnchorList( anchorLists[targetId], -Math.PI / 2, 0, conn, false, sourceId, 1, false, "top", targetId, connectionsToPaint, endpointsToPaint); + } + else { + if (!o) { + o = this.calculateOrientation(sourceId, targetId, sd.o, td.o, conn.endpoints[0].anchor, conn.endpoints[1].anchor, conn, sourceRotation, targetRotation); + orientationCache[oKey] = o; + // this would be a performance enhancement, but the computed angles need to be clamped to + //the (-PI/2 -> PI/2) range in order for the sorting to work properly. + /* orientationCache[oKey2] = { orientation:o.orientation, a:[o.a[1], o.a[0]], theta:o.theta + Math.PI, theta2:o.theta2 + Math.PI - };*/}if(sourceContinuous){_updateAnchorList(anchorLists[sourceId],o.theta,0,conn,false,targetId,0,false,o.a[0],sourceId,connectionsToPaint,endpointsToPaint);}if(targetContinuous){_updateAnchorList(anchorLists[targetId],o.theta2,-1,conn,true,sourceId,1,true,o.a[1],targetId,connectionsToPaint,endpointsToPaint);}}if(sourceContinuous){_ju.addWithFunction(anchorsToUpdate,sourceId,function(a){return a===sourceId;});}if(targetContinuous){_ju.addWithFunction(anchorsToUpdate,targetId,function(a){return a===targetId;});}_ju.addWithFunction(connectionsToPaint,conn,function(c){return c.id===conn.id;});if(sourceContinuous&&oIdx===0||targetContinuous&&oIdx===1){_ju.addWithFunction(endpointsToPaint,conn.endpoints[oIdx],function(e){return e.id===conn.endpoints[oIdx].id;});}}}// place Endpoints whose anchors are continuous but have no Connections -for(i=0;ib.dist?1:0;});// now go through this list and try to get an entry that satisfies both (there will be one, unless one of the anchors -// declares no available faces) -var sourceEdge=candidates[0].source,targetEdge=candidates[0].target;for(var i=0;i b.dist ? 1 : 0; + }); + + // now go through this list and try to get an entry that satisfies both (there will be one, unless one of the anchors + // declares no available faces) + var sourceEdge = candidates[0].source, targetEdge = candidates[0].target; + for (var i = 0; i < candidates.length; i++) { + + if (sourceAnchor.isContinuous && sourceAnchor.locked) { + sourceEdge = sourceAnchor.getCurrentFace(); + } + else if (!sourceAnchor.isContinuous || sourceAnchor.isEdgeSupported(candidates[i].source)) { + sourceEdge = candidates[i].source; + } + else { + sourceEdge = null; + } + + if (targetAnchor.isContinuous && targetAnchor.locked) { + targetEdge = targetAnchor.getCurrentFace(); + } + else if (!targetAnchor.isContinuous || targetAnchor.isEdgeSupported(candidates[i].target)) { + targetEdge = candidates[i].target; + } + else { + targetEdge = null; + } + + if (sourceEdge != null && targetEdge != null) { + break; + } + } + + if (sourceAnchor.isContinuous) { + sourceAnchor.setCurrentFace(sourceEdge); + } + + if (targetAnchor.isContinuous) { + targetAnchor.setCurrentFace(targetEdge); + } + +// -------------------------------------------------------------------------------------- + + return { + a: [ sourceEdge, targetEdge ], + theta: theta, + theta2: theta2 + }; + }; + + /** * Anchors model a position on some element at which an Endpoint may be located. They began as a first class citizen of jsPlumb, ie. a user * was required to create these themselves, but over time this has been replaced by the concept of referring to them either by name (eg. "TopMiddle"), * or by an array describing their coordinates (eg. [ 0, 0.5, 0, -1 ], which is the same as "TopMiddle"). jsPlumb now handles all of the * creation of Anchors without user intervention. - */_jp.Anchor=function(params){this.x=params.x||0;this.y=params.y||0;this.elementId=params.elementId;this.cssClass=params.cssClass||"";this.orientation=params.orientation||[0,0];this.lastReturnValue=null;this.offsets=params.offsets||[0,0];this.timestamp=null;this._unrotatedOrientation=[this.orientation[0],this.orientation[1]];this.relocatable=params.relocatable!==false;this.snapOnRelocate=params.snapOnRelocate!==false;this.locked=false;_ju.EventGenerator.apply(this);this.compute=function(params){var xy=params.xy,wh=params.wh,timestamp=params.timestamp;if(timestamp&×tamp===this.timestamp){return this.lastReturnValue;}// unrotated position -var candidate=[xy[0]+this.x*wh[0]+this.offsets[0],xy[1]+this.y*wh[1]+this.offsets[1],this.x,this.y];// if rotation set, adjust position. -var rotation=params.rotation;if(rotation!=null&&rotation!==0){var c2=jsPlumbUtil.rotatePoint(candidate,[xy[0]+wh[0]/2,xy[1]+wh[1]/2],rotation);// rotate the orientation values too. for rotations that are not multiples of 90 degrees, this will result in values that are not in the set -// [0, -1, 1 ], and in that case the connector paint may not be perfect. need some evidence from real world usage. -this.orientation[0]=Math.round(this._unrotatedOrientation[0]*c2[2]-this._unrotatedOrientation[1]*c2[3]);this.orientation[1]=Math.round(this._unrotatedOrientation[1]*c2[2]+this._unrotatedOrientation[0]*c2[3]);this.lastReturnValue=[c2[0],c2[1],this.x,this.y];}else{// if rotation not set (or 0), ensure orientation is original value -this.orientation[0]=this._unrotatedOrientation[0];this.orientation[1]=this._unrotatedOrientation[1];this.lastReturnValue=candidate;}this.timestamp=timestamp;return this.lastReturnValue;};this.getCurrentLocation=function(params){params=params||{};return this.lastReturnValue==null||params.timestamp!=null&&this.timestamp!==params.timestamp?this.compute(params):this.lastReturnValue;};this.setPosition=function(x,y,ox,oy,overrideLock){if(!this.locked||overrideLock){this.x=x;this.y=y;this.orientation=[ox,oy];this.lastReturnValue=null;}};};_ju.extend(_jp.Anchor,_ju.EventGenerator,{equals:function equals(anchor){if(!anchor){return false;}var ao=anchor.getOrientation(),o=this.getOrientation();return this.x===anchor.x&&this.y===anchor.y&&this.offsets[0]===anchor.offsets[0]&&this.offsets[1]===anchor.offsets[1]&&o[0]===ao[0]&&o[1]===ao[1];},getOrientation:function getOrientation(){return this.orientation;},getCssClass:function getCssClass(){return this.cssClass;}});/** + */ + _jp.Anchor = function (params) { + this.x = params.x || 0; + this.y = params.y || 0; + this.elementId = params.elementId; + this.cssClass = params.cssClass || ""; + this.orientation = params.orientation || [ 0, 0 ]; + this.lastReturnValue = null; + this.offsets = params.offsets || [ 0, 0 ]; + this.timestamp = null; + + this._unrotatedOrientation = [ + this.orientation[0], + this.orientation[1] + ]; + + this.relocatable = params.relocatable !== false; + this.snapOnRelocate = params.snapOnRelocate !== false; + + this.locked = false; + + _ju.EventGenerator.apply(this); + + this.compute = function (params) { + + var xy = params.xy, wh = params.wh, timestamp = params.timestamp; + + if (timestamp && timestamp === this.timestamp) { + return this.lastReturnValue; + } + + // unrotated position + var candidate = [ xy[0] + (this.x * wh[0]) + this.offsets[0], xy[1] + (this.y * wh[1]) + this.offsets[1], this.x, this.y ]; + + // if rotation set, adjust position. + var rotation = params.rotation; + if (rotation != null && rotation !== 0) { + + var c2 = jsPlumbUtil.rotatePoint(candidate, [xy[0] + (wh[0] / 2), xy[1] + (wh[1] / 2) ], rotation); + + // rotate the orientation values too. for rotations that are not multiples of 90 degrees, this will result in values that are not in the set + // [0, -1, 1 ], and in that case the connector paint may not be perfect. need some evidence from real world usage. + this.orientation[0] = Math.round((this._unrotatedOrientation[0] * c2[2]) - (this._unrotatedOrientation[1] * c2[3])); + this.orientation[1] = Math.round((this._unrotatedOrientation[1] * c2[2]) + (this._unrotatedOrientation[0] * c2[3])); + + this.lastReturnValue = [c2[0], c2[1], this.x, this.y]; + } else { + // if rotation not set (or 0), ensure orientation is original value + this.orientation[0] = this._unrotatedOrientation[0]; + this.orientation[1] = this._unrotatedOrientation[1]; + this.lastReturnValue = candidate; + } + + this.timestamp = timestamp; + return this.lastReturnValue; + }; + + this.getCurrentLocation = function (params) { + params = params || {}; + return (this.lastReturnValue == null || (params.timestamp != null && this.timestamp !== params.timestamp)) ? this.compute(params) : this.lastReturnValue; + }; + + this.setPosition = function(x, y, ox, oy, overrideLock) { + if (!this.locked || overrideLock) { + this.x = x; + this.y = y; + this.orientation = [ ox, oy ]; + this.lastReturnValue = null; + } + }; + }; + _ju.extend(_jp.Anchor, _ju.EventGenerator, { + equals: function (anchor) { + if (!anchor) { + return false; + } + var ao = anchor.getOrientation(), + o = this.getOrientation(); + return this.x === anchor.x && this.y === anchor.y && this.offsets[0] === anchor.offsets[0] && this.offsets[1] === anchor.offsets[1] && o[0] === ao[0] && o[1] === ao[1]; + }, + getOrientation: function () { + return this.orientation; + }, + getCssClass: function () { + return this.cssClass; + } + }); + + /** * An Anchor that floats. its orientation is computed dynamically from * its position relative to the anchor it is floating relative to. It is used when creating * a connection through drag and drop. * * TODO FloatingAnchor could totally be refactored to extend Anchor just slightly. - */_jp.FloatingAnchor=function(params){_jp.Anchor.apply(this,arguments);// this is the anchor that this floating anchor is referenced to for -// purposes of calculating the orientation. -var ref=params.reference,// the canvas this refers to. -refCanvas=params.referenceCanvas,size=_jp.getSize(refCanvas),// these are used to store the current relative position of our -// anchor wrt the reference anchor. they only indicate -// direction, so have a value of 1 or -1 (or, very rarely, 0). these -// values are written by the compute method, and read -// by the getOrientation method. -xDir=0,yDir=0,// temporary member used to store an orientation when the floating -// anchor is hovering over another anchor. -orientation=null,_lastResult=null;// clear from parent. we want floating anchor orientation to always be computed. -this.orientation=null;// set these to 0 each; they are used by certain types of connectors in the loopback case, -// when the connector is trying to clear the element it is on. but for floating anchor it's not -// very important. -this.x=0;this.y=0;this.isFloating=true;this.compute=function(params){var xy=params.xy,result=[xy[0]+size[0]/2,xy[1]+size[1]/2];// return origin of the element. we may wish to improve this so that any object can be the drag proxy. -_lastResult=result;return result;};this.getOrientation=function(_endpoint){if(orientation){return orientation;}else{var o=ref.getOrientation(_endpoint);// here we take into account the orientation of the other -// anchor: if it declares zero for some direction, we declare zero too. this might not be the most awesome. perhaps we can come -// up with a better way. it's just so that the line we draw looks like it makes sense. maybe this wont make sense. -return[Math.abs(o[0])*xDir*-1,Math.abs(o[1])*yDir*-1];}};/** + */ + _jp.FloatingAnchor = function (params) { + + _jp.Anchor.apply(this, arguments); + + // this is the anchor that this floating anchor is referenced to for + // purposes of calculating the orientation. + var ref = params.reference, + // the canvas this refers to. + refCanvas = params.referenceCanvas, + size = _jp.getSize(refCanvas), + // these are used to store the current relative position of our + // anchor wrt the reference anchor. they only indicate + // direction, so have a value of 1 or -1 (or, very rarely, 0). these + // values are written by the compute method, and read + // by the getOrientation method. + xDir = 0, yDir = 0, + // temporary member used to store an orientation when the floating + // anchor is hovering over another anchor. + orientation = null, + _lastResult = null; + + // clear from parent. we want floating anchor orientation to always be computed. + this.orientation = null; + + // set these to 0 each; they are used by certain types of connectors in the loopback case, + // when the connector is trying to clear the element it is on. but for floating anchor it's not + // very important. + this.x = 0; + this.y = 0; + + this.isFloating = true; + + this.compute = function (params) { + var xy = params.xy, + result = [ xy[0] + (size[0] / 2), xy[1] + (size[1] / 2) ]; // return origin of the element. we may wish to improve this so that any object can be the drag proxy. + _lastResult = result; + return result; + }; + + this.getOrientation = function (_endpoint) { + if (orientation) { + return orientation; + } + else { + var o = ref.getOrientation(_endpoint); + // here we take into account the orientation of the other + // anchor: if it declares zero for some direction, we declare zero too. this might not be the most awesome. perhaps we can come + // up with a better way. it's just so that the line we draw looks like it makes sense. maybe this wont make sense. + return [ Math.abs(o[0]) * xDir * -1, + Math.abs(o[1]) * yDir * -1 ]; + } + }; + + /** * notification the endpoint associated with this anchor is hovering * over another anchor; we want to assume that anchor's orientation * for the duration of the hover. - */this.over=function(anchor,endpoint){orientation=anchor.getOrientation(endpoint);};/** + */ + this.over = function (anchor, endpoint) { + orientation = anchor.getOrientation(endpoint); + }; + + /** * notification the endpoint associated with this anchor is no * longer hovering over another anchor; we should resume calculating * orientation as we normally do. - */this.out=function(){orientation=null;};this.getCurrentLocation=function(params){return _lastResult==null?this.compute(params):_lastResult;};};_ju.extend(_jp.FloatingAnchor,_jp.Anchor);var _convertAnchor=function _convertAnchor(anchor,jsPlumbInstance,elementId){return anchor.constructor===_jp.Anchor?anchor:jsPlumbInstance.makeAnchor(anchor,elementId,jsPlumbInstance);};/* + */ + this.out = function () { + orientation = null; + }; + + this.getCurrentLocation = function (params) { + return _lastResult == null ? this.compute(params) : _lastResult; + }; + }; + _ju.extend(_jp.FloatingAnchor, _jp.Anchor); + + var _convertAnchor = function (anchor, jsPlumbInstance, elementId) { + return anchor.constructor === _jp.Anchor ? anchor : jsPlumbInstance.makeAnchor(anchor, elementId, jsPlumbInstance); + }; + + /* * A DynamicAnchor is an Anchor that contains a list of other Anchors, which it cycles * through at compute time to find the one that is located closest to * the center of the target element, and returns that Anchor's compute @@ -1508,41 +10519,349 @@ return[Math.abs(o[0])*xDir*-1,Math.abs(o[1])*yDir*-1];}};/** * respect to the orientation of their target elements, which is a useful * feature for some applications. * - */_jp.DynamicAnchor=function(params){_jp.Anchor.apply(this,arguments);this.isDynamic=true;this.anchors=[];this.elementId=params.elementId;this.jsPlumbInstance=params.jsPlumbInstance;for(var i=0;i0?this.anchors[0]:null,_lastAnchor=_curAnchor,self=this,// helper method to calculate the distance between the centers of the two elements. -_distance=function _distance(anchor,cx,cy,xy,wh,r,tr){var ax=xy[0]+anchor.x*wh[0],ay=xy[1]+anchor.y*wh[1],acx=xy[0]+wh[0]/2,acy=xy[1]+wh[1]/2;if(r!=null&&r!==0){var rotated=jsPlumbUtil.rotatePoint([ax,ay],[acx,acy],r);ax=rotated[0];ay=rotated[1];}return Math.sqrt(Math.pow(cx-ax,2)+Math.pow(cy-ay,2))+Math.sqrt(Math.pow(acx-ax,2)+Math.pow(acy-ay,2));},// default method uses distance between element centers. you can provide your own method in the dynamic anchor -// constructor (and also to jsPlumb.makeDynamicAnchor). the arguments to it are: -// xy - xy loc of the anchor's element -// wh - anchor's element's dimensions -// txy - xy loc of the element of the other anchor in the connection -// twh - dimensions of the element of the other anchor in the connection. -// r - the rotation of the anchor's element -// tr - the rotation of the target anchor's element. currently unused; a placeholder for possible future refactoring. -// anchors - the list of selectable anchors -_anchorSelector=params.selector||function(xy,wh,txy,twh,r,tr,anchors){var cx=txy[0]+twh[0]/2,cy=txy[1]+twh[1]/2;var minIdx=-1,minDist=Infinity;for(var i=0;i 0 ? this.anchors[0] : null, + _lastAnchor = _curAnchor, + self = this, + + // helper method to calculate the distance between the centers of the two elements. + _distance = function (anchor, cx, cy, xy, wh, r, tr) { + var ax = xy[0] + (anchor.x * wh[0]), ay = xy[1] + (anchor.y * wh[1]), + acx = xy[0] + (wh[0] / 2), acy = xy[1] + (wh[1] / 2); + + if(r != null && r !== 0) { + var rotated = jsPlumbUtil.rotatePoint([ax,ay], [acx, acy], r); + ax = rotated[0]; + ay = rotated[1]; + } + + return (Math.sqrt(Math.pow(cx - ax, 2) + Math.pow(cy - ay, 2)) + + Math.sqrt(Math.pow(acx - ax, 2) + Math.pow(acy - ay, 2))); + }, + // default method uses distance between element centers. you can provide your own method in the dynamic anchor + // constructor (and also to jsPlumb.makeDynamicAnchor). the arguments to it are: + // xy - xy loc of the anchor's element + // wh - anchor's element's dimensions + // txy - xy loc of the element of the other anchor in the connection + // twh - dimensions of the element of the other anchor in the connection. + // r - the rotation of the anchor's element + // tr - the rotation of the target anchor's element. currently unused; a placeholder for possible future refactoring. + // anchors - the list of selectable anchors + _anchorSelector = params.selector || function (xy, wh, txy, twh, r, tr, anchors) { + var cx = txy[0] + (twh[0] / 2), cy = txy[1] + (twh[1] / 2); + var minIdx = -1, minDist = Infinity; + for (var i = 0; i < anchors.length; i++) { + var d = _distance(anchors[i], cx, cy, xy, wh, r, tr); + if (d < minDist) { + minIdx = i + 0; + minDist = d; + } + } + return anchors[minIdx]; + }; + + this.compute = function (params) { + var xy = params.xy, wh = params.wh, txy = params.txy, twh = params.twh, r = params.rotation, tr = params.tRotation; + + this.timestamp = params.timestamp; + + // if anchor is locked or an opposite element was not given, we + // maintain our state. anchor will be locked + // if it is the source of a drag and drop. + if (this.locked || txy == null || twh == null) { + this.lastReturnValue = _curAnchor.compute(params); + return this.lastReturnValue; + } + else { + params.timestamp = null; // otherwise clear this, i think. we want the anchor to compute. + } + + _curAnchor = _anchorSelector(xy, wh, txy, twh, r, tr, this.anchors); + this.x = _curAnchor.x; + this.y = _curAnchor.y; + + if (_curAnchor !== _lastAnchor) { + this.fire("anchorChanged", _curAnchor); + } + + _lastAnchor = _curAnchor; + + this.lastReturnValue = _curAnchor.compute(params); + return this.lastReturnValue; + }; + + this.getCurrentLocation = function (params) { + return _curAnchor != null ? _curAnchor.getCurrentLocation(params) : null; + }; + + this.getOrientation = function (_endpoint) { + return _curAnchor != null ? _curAnchor.getOrientation(_endpoint) : [ 0, 0 ]; + }; + this.over = function (anchor, endpoint) { + if (_curAnchor != null) { + _curAnchor.over(anchor, endpoint); + } + }; + this.out = function () { + if (_curAnchor != null) { + _curAnchor.out(); + } + }; + + this.setAnchor = function(a) { + _curAnchor = a; + }; + + this.getCssClass = function () { + return (_curAnchor && _curAnchor.getCssClass()) || ""; + }; + + /** * Attempt to match an anchor with the given coordinates and then set it. * @param coords * @returns true if matching anchor found, false otherwise. - */this.setAnchorCoordinates=function(coords){var idx=jsPlumbUtil.findWithFunction(this.anchors,function(a){return a.x===coords[0]&&a.y===coords[1];});if(idx!==-1){this.setAnchor(this.anchors[idx]);return true;}else{return false;}};};_ju.extend(_jp.DynamicAnchor,_jp.Anchor);// -------- basic anchors ------------------ -var _curryAnchor=function _curryAnchor(x,y,ox,oy,type,fnInit){_jp.Anchors[type]=function(params){var a=params.jsPlumbInstance.makeAnchor([x,y,ox,oy,0,0],params.elementId,params.jsPlumbInstance);a.type=type;if(fnInit){fnInit(a,params);}return a;};};_curryAnchor(0.5,0,0,-1,"TopCenter");_curryAnchor(0.5,1,0,1,"BottomCenter");_curryAnchor(0,0.5,-1,0,"LeftMiddle");_curryAnchor(1,0.5,1,0,"RightMiddle");_curryAnchor(0.5,0,0,-1,"Top");_curryAnchor(0.5,1,0,1,"Bottom");_curryAnchor(0,0.5,-1,0,"Left");_curryAnchor(1,0.5,1,0,"Right");_curryAnchor(0.5,0.5,0,0,"Center");_curryAnchor(1,0,0,-1,"TopRight");_curryAnchor(1,1,0,1,"BottomRight");_curryAnchor(0,0,0,-1,"TopLeft");_curryAnchor(0,1,0,1,"BottomLeft");// ------- dynamic anchors ------------------- -// default dynamic anchors chooses from Top, Right, Bottom, Left -_jp.Defaults.DynamicAnchors=function(params){return params.jsPlumbInstance.makeAnchors(["TopCenter","RightMiddle","BottomCenter","LeftMiddle"],params.elementId,params.jsPlumbInstance);};// default dynamic anchors bound to name 'AutoDefault' -_jp.Anchors.AutoDefault=function(params){var a=params.jsPlumbInstance.makeDynamicAnchor(_jp.Defaults.DynamicAnchors(params));a.type="AutoDefault";return a;};// ------- continuous anchors ------------------- -var _curryContinuousAnchor=function _curryContinuousAnchor(type,faces){_jp.Anchors[type]=function(params){var a=params.jsPlumbInstance.makeAnchor(["Continuous",{faces:faces}],params.elementId,params.jsPlumbInstance);a.type=type;return a;};};_jp.Anchors.Continuous=function(params){return params.jsPlumbInstance.continuousAnchorFactory.get(params);};_curryContinuousAnchor("ContinuousLeft",["left"]);_curryContinuousAnchor("ContinuousTop",["top"]);_curryContinuousAnchor("ContinuousBottom",["bottom"]);_curryContinuousAnchor("ContinuousRight",["right"]);// ------- position assign anchors ------------------- -// this anchor type lets you assign the position at connection time. -_curryAnchor(0,0,0,0,"Assign",function(anchor,params){// find what to use as the "position finder". the user may have supplied a String which represents -// the id of a position finder in jsPlumb.AnchorPositionFinders, or the user may have supplied the -// position finder as a function. we find out what to use and then set it on the anchor. -var pf=params.position||"Fixed";anchor.positionFinder=pf.constructor===String?params.jsPlumbInstance.AnchorPositionFinders[pf]:pf;// always set the constructor params; the position finder might need them later (the Grid one does, -// for example) -anchor.constructorParams=params;});// these are the default anchor positions finders, which are used by the makeTarget function. supplying -// a position finder argument to that function allows you to specify where the resulting anchor will -// be located -root.jsPlumbInstance.prototype.AnchorPositionFinders={"Fixed":function Fixed(dp,ep,es){return[(dp.left-ep.left)/es[0],(dp.top-ep.top)/es[1]];},"Grid":function Grid(dp,ep,es,params){var dx=dp.left-ep.left,dy=dp.top-ep.top,gx=es[0]/params.grid[0],gy=es[1]/params.grid[1],mx=Math.floor(dx/gx),my=Math.floor(dy/gy);return[(mx*gx+gx/2)/es[0],(my*gy+gy/2)/es[1]];}};// ------- perimeter anchors ------------------- -_jp.Anchors.Perimeter=function(params){params=params||{};var anchorCount=params.anchorCount||60,shape=params.shape;if(!shape){throw new Error("no shape supplied to Perimeter Anchor type");}var _circle=function _circle(){var r=0.5,step=Math.PI*2/anchorCount,current=0,a=[];for(var i=0;i} - */this.lineIntersection=function(x1,y1,x2,y2){return[];};/** + */ + this.lineIntersection = function(x1, y1, x2, y2) { + return []; + }; + + /** * Computes the list of points on the segment that intersect the box with the given origin and size. * @method boxIntersection * @param {number} x1 @@ -1595,58 +11013,237 @@ _jp.Anchors.Perimeter=function(params){params=params||{};var anchorCount=params. * @param {number} w * @param {number} h * @returns {Array<[number, number]>} - */this.boxIntersection=function(x,y,w,h){var a=[];a.push.apply(a,this.lineIntersection(x,y,x+w,y));a.push.apply(a,this.lineIntersection(x+w,y,x+w,y+h));a.push.apply(a,this.lineIntersection(x+w,y+h,x,y+h));a.push.apply(a,this.lineIntersection(x,y+h,x,y));return a;};/** + */ + this.boxIntersection = function(x, y, w, h) { + var a = []; + a.push.apply(a, this.lineIntersection(x, y, x + w, y)); + a.push.apply(a, this.lineIntersection(x + w, y, x + w, y + h)); + a.push.apply(a, this.lineIntersection(x + w, y + h, x, y + h)); + a.push.apply(a, this.lineIntersection(x, y + h, x, y)); + return a; + }; + + /** * Computes the list of points on the segment that intersect the given bounding box, which is an object of the form { x:.., y:.., w:.., h:.. }. * @method lineIntersection * @param {BoundingRectangle} box * @returns {Array<[number, number]>} - */this.boundingBoxIntersection=function(box){return this.boxIntersection(box.x,box.y,box.w,box.y);};},Straight:function Straight(params){var _super=_jp.Segments.AbstractSegment.apply(this,arguments),length,m,m2,x1,x2,y1,y2,_recalc=function _recalc(){length=Math.sqrt(Math.pow(x2-x1,2)+Math.pow(y2-y1,2));m=_jg.gradient({x:x1,y:y1},{x:x2,y:y2});m2=-1/m;};this.type="Straight";this.getLength=function(){return length;};this.getGradient=function(){return m;};this.getCoordinates=function(){return{x1:x1,y1:y1,x2:x2,y2:y2};};this.setCoordinates=function(coords){x1=coords.x1;y1=coords.y1;x2=coords.x2;y2=coords.y2;_recalc();};this.setCoordinates({x1:params.x1,y1:params.y1,x2:params.x2,y2:params.y2});this.getBounds=function(){return{minX:Math.min(x1,x2),minY:Math.min(y1,y2),maxX:Math.max(x1,x2),maxY:Math.max(y1,y2)};};/** + */ + this.boundingBoxIntersection = function(box) { + return this.boxIntersection(box.x, box.y, box.w, box.y); + }; + }, + Straight: function (params) { + var _super = _jp.Segments.AbstractSegment.apply(this, arguments), + length, m, m2, x1, x2, y1, y2, + _recalc = function () { + length = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2)); + m = _jg.gradient({x: x1, y: y1}, {x: x2, y: y2}); + m2 = -1 / m; + }; + + this.type = "Straight"; + + this.getLength = function () { + return length; + }; + this.getGradient = function () { + return m; + }; + + this.getCoordinates = function () { + return { x1: x1, y1: y1, x2: x2, y2: y2 }; + }; + this.setCoordinates = function (coords) { + x1 = coords.x1; + y1 = coords.y1; + x2 = coords.x2; + y2 = coords.y2; + _recalc(); + }; + this.setCoordinates({x1: params.x1, y1: params.y1, x2: params.x2, y2: params.y2}); + + this.getBounds = function () { + return { + minX: Math.min(x1, x2), + minY: Math.min(y1, y2), + maxX: Math.max(x1, x2), + maxY: Math.max(y1, y2) + }; + }; + + /** * returns the point on the segment's path that is 'location' along the length of the path, where 'location' is a decimal from * 0 to 1 inclusive. for the straight line segment this is simple maths. - */this.pointOnPath=function(location,absolute){if(location===0&&!absolute){return{x:x1,y:y1};}else if(location===1&&!absolute){return{x:x2,y:y2};}else{var l=absolute?location>0?location:length+location:location*length;return _jg.pointOnLine({x:x1,y:y1},{x:x2,y:y2},l);}};/** + */ + this.pointOnPath = function (location, absolute) { + if (location === 0 && !absolute) { + return { x: x1, y: y1 }; + } + else if (location === 1 && !absolute) { + return { x: x2, y: y2 }; + } + else { + var l = absolute ? location > 0 ? location : length + location : location * length; + return _jg.pointOnLine({x: x1, y: y1}, {x: x2, y: y2}, l); + } + }; + + /** * returns the gradient of the segment at the given point - which for us is constant. - */this.gradientAtPoint=function(_){return m;};/** + */ + this.gradientAtPoint = function (_) { + return m; + }; + + /** * returns the point on the segment's path that is 'distance' along the length of the path from 'location', where * 'location' is a decimal from 0 to 1 inclusive, and 'distance' is a number of pixels. * this hands off to jsPlumbUtil to do the maths, supplying two points and the distance. - */this.pointAlongPathFrom=function(location,distance,absolute){var p=this.pointOnPath(location,absolute),farAwayPoint=distance<=0?{x:x1,y:y1}:{x:x2,y:y2};/* + */ + this.pointAlongPathFrom = function (location, distance, absolute) { + var p = this.pointOnPath(location, absolute), + farAwayPoint = distance <= 0 ? {x: x1, y: y1} : {x: x2, y: y2 }; + + /* location == 1 ? { x:x1 + ((x2 - x1) * 10), y:y1 + ((y1 - y2) * 10) } : - */if(distance<=0&&Math.abs(distance)>1){distance*=-1;}return _jg.pointOnLine(p,farAwayPoint,distance);};// is c between a and b? -var within=function within(a,b,c){return c>=Math.min(a,b)&&c<=Math.max(a,b);};// find which of a and b is closest to c -var closest=function closest(a,b,c){return Math.abs(c-a) 1) { + distance *= -1; + } + + return _jg.pointOnLine(p, farAwayPoint, distance); + }; + + // is c between a and b? + var within = function (a, b, c) { + return c >= Math.min(a, b) && c <= Math.max(a, b); + }; + // find which of a and b is closest to c + var closest = function (a, b, c) { + return Math.abs(c - a) < Math.abs(c - b) ? a : b; + }; + + /** Function: findClosestPointOnPath Finds the closest point on this segment to [x,y]. See notes on this method in AbstractSegment. - */this.findClosestPointOnPath=function(x,y){var out={d:Infinity,x:null,y:null,l:null,x1:x1,x2:x2,y1:y1,y2:y2};if(m===0){out.y=y1;out.x=within(x1,x2,x)?x:closest(x1,x2,x);}else if(m===Infinity||m===-Infinity){out.x=x1;out.y=within(y1,y2,y)?y:closest(y1,y2,y);}else{// closest point lies on normal from given point to this line. -var b=y1-m*x1,b2=y-m2*x,// y1 = m.x1 + b and y1 = m2.x1 + b2 -// so m.x1 + b = m2.x1 + b2 -// x1(m - m2) = b2 - b -// x1 = (b2 - b) / (m - m2) -_x1=(b2-b)/(m-m2),_y1=m*_x1+b;out.x=within(x1,x2,_x1)?_x1:closest(x1,x2,_x1);//_x1; -out.y=within(y1,y2,_y1)?_y1:closest(y1,y2,_y1);//_y1; -}var fractionInSegment=_jg.lineLength([out.x,out.y],[x1,y1]);out.d=_jg.lineLength([x,y],[out.x,out.y]);out.l=fractionInSegment/length;return out;};var _pointLiesBetween=function _pointLiesBetween(q,p1,p2){return p2>p1?p1<=q&&q<=p2:p1>=q&&q>=p2;},_plb=_pointLiesBetween;/** + */ + this.findClosestPointOnPath = function (x, y) { + var out = { + d: Infinity, + x: null, + y: null, + l: null, + x1: x1, + x2: x2, + y1: y1, + y2: y2 + }; + + if (m === 0) { + out.y = y1; + out.x = within(x1, x2, x) ? x : closest(x1, x2, x); + } + else if (m === Infinity || m === -Infinity) { + out.x = x1; + out.y = within(y1, y2, y) ? y : closest(y1, y2, y); + } + else { + // closest point lies on normal from given point to this line. + var b = y1 - (m * x1), + b2 = y - (m2 * x), + // y1 = m.x1 + b and y1 = m2.x1 + b2 + // so m.x1 + b = m2.x1 + b2 + // x1(m - m2) = b2 - b + // x1 = (b2 - b) / (m - m2) + _x1 = (b2 - b) / (m - m2), + _y1 = (m * _x1) + b; + + out.x = within(x1, x2, _x1) ? _x1 : closest(x1, x2, _x1);//_x1; + out.y = within(y1, y2, _y1) ? _y1 : closest(y1, y2, _y1);//_y1; + } + + var fractionInSegment = _jg.lineLength([ out.x, out.y ], [ x1, y1 ]); + out.d = _jg.lineLength([x, y], [out.x, out.y]); + out.l = fractionInSegment / length; + return out; + }; + + var _pointLiesBetween = function(q, p1, p2) { + return (p2 > p1) ? (p1 <= q && q <= p2) : (p1 >= q && q >= p2); + }, _plb = _pointLiesBetween; + + /** * Calculates all intersections of the given line with this segment. * @param _x1 * @param _y1 * @param _x2 * @param _y2 * @returns {Array} - */this.lineIntersection=function(_x1,_y1,_x2,_y2){var m2=Math.abs(_jg.gradient({x:_x1,y:_y1},{x:_x2,y:_y2})),m1=Math.abs(m),b=m1===Infinity?x1:y1-m1*x1,out=[],b2=m2===Infinity?_x1:_y1-m2*_x1;// if lines parallel, no intersection -if(m2!==m1){// perpendicular, segment horizontal -if(m2===Infinity&&m1===0){if(_plb(_x1,x1,x2)&&_plb(y1,_y1,_y2)){out=[_x1,y1];// we return X on the incident line and Y from the segment -}}else if(m2===0&&m1===Infinity){// perpendicular, segment vertical -if(_plb(_y1,y1,y2)&&_plb(x1,_x1,_x2)){out=[x1,_y1];// we return X on the segment and Y from the incident line -}}else{var X,Y;if(m2===Infinity){// test line is a vertical line. where does it cross the segment? -X=_x1;if(_plb(X,x1,x2)){Y=m1*_x1+b;if(_plb(Y,_y1,_y2)){out=[X,Y];}}}else if(m2===0){Y=_y1;// test line is a horizontal line. where does it cross the segment? -if(_plb(Y,y1,y2)){X=(_y1-b)/m1;if(_plb(X,_x1,_x2)){out=[X,Y];}}}else{// mX + b = m2X + b2 -// mX - m2X = b2 - b -// X(m - m2) = b2 - b -// X = (b2 - b) / (m - m2) -// Y = mX + b -X=(b2-b)/(m1-m2);Y=m1*X+b;if(_plb(X,x1,x2)&&_plb(Y,y1,y2)){out=[X,Y];}}}}return out;};/** + */ + this.lineIntersection = function(_x1, _y1, _x2, _y2) { + var m2 = Math.abs(_jg.gradient({x: _x1, y: _y1}, {x: _x2, y: _y2})), + m1 = Math.abs(m), + b = m1 === Infinity ? x1 : y1 - (m1 * x1), + out = [], + b2 = m2 === Infinity ? _x1 : _y1 - (m2 * _x1); + + // if lines parallel, no intersection + if (m2 !== m1) { + // perpendicular, segment horizontal + if(m2 === Infinity && m1 === 0) { + if (_plb(_x1, x1, x2) && _plb(y1, _y1, _y2)) { + out = [ _x1, y1 ]; // we return X on the incident line and Y from the segment + } + } else if(m2 === 0 && m1 === Infinity) { + // perpendicular, segment vertical + if(_plb(_y1, y1, y2) && _plb(x1, _x1, _x2)) { + out = [x1, _y1]; // we return X on the segment and Y from the incident line + } + } else { + var X, Y; + if (m2 === Infinity) { + // test line is a vertical line. where does it cross the segment? + X = _x1; + if (_plb(X, x1, x2)) { + Y = (m1 * _x1) + b; + if (_plb(Y, _y1, _y2)) { + out = [ X, Y ]; + } + } + } else if (m2 === 0) { + Y = _y1; + // test line is a horizontal line. where does it cross the segment? + if (_plb(Y, y1, y2)) { + X = (_y1 - b) / m1; + if (_plb(X, _x1, _x2)) { + out = [ X, Y ]; + } + } + } else { + // mX + b = m2X + b2 + // mX - m2X = b2 - b + // X(m - m2) = b2 - b + // X = (b2 - b) / (m - m2) + // Y = mX + b + X = (b2 - b) / (m1 - m2); + Y = (m1 * X) + b; + if(_plb(X, x1, x2) && _plb(Y, y1, y2)) { + out = [ X, Y]; + } + } + } + } + + return out; + }; + + /** * Calculates all intersections of the given box with this segment. By default this method simply calls `lineIntersection` with each of the four * faces of the box; subclasses can override this if they think there's a faster way to compute the entire box at once. * @param x X position of top left corner of box @@ -1654,12 +11251,28 @@ X=(b2-b)/(m1-m2);Y=m1*X+b;if(_plb(X,x1,x2)&&_plb(Y,y1,y2)){out=[X,Y];}}}}return * @param w width of box * @param h height of box * @returns {Array} - */this.boxIntersection=function(x,y,w,h){var a=[];a.push.apply(a,this.lineIntersection(x,y,x+w,y));a.push.apply(a,this.lineIntersection(x+w,y,x+w,y+h));a.push.apply(a,this.lineIntersection(x+w,y+h,x,y+h));a.push.apply(a,this.lineIntersection(x,y+h,x,y));return a;};/** + */ + this.boxIntersection = function(x, y, w, h) { + var a = []; + a.push.apply(a, this.lineIntersection(x, y, x + w, y)); + a.push.apply(a, this.lineIntersection(x + w, y, x + w, y + h)); + a.push.apply(a, this.lineIntersection(x + w, y + h, x, y + h)); + a.push.apply(a, this.lineIntersection(x, y + h, x, y)); + return a; + }; + + /** * Calculates all intersections of the given bounding box with this segment. By default this method simply calls `lineIntersection` with each of the four * faces of the box; subclasses can override this if they think there's a faster way to compute the entire box at once. * @param box Bounding box, in { x:.., y:..., w:..., h:... } format. * @returns {Array} - */this.boundingBoxIntersection=function(box){return this.boxIntersection(box.x,box.y,box.w,box.h);};},/* + */ + this.boundingBoxIntersection = function(box) { + return this.boxIntersection(box.x, box.y, box.w, box.h); + }; + }, + + /* Arc Segment. You need to supply: r - radius @@ -1667,42 +11280,357 @@ X=(b2-b)/(m1-m2);Y=m1*X+b;if(_plb(X,x1,x2)&&_plb(Y,y1,y2)){out=[X,Y];}}}}return cy - center y for the arc ac - whether the arc is anticlockwise or not. default is clockwise. - and then either: + and then either: + + startAngle - startAngle for the arc. + endAngle - endAngle for the arc. + + or: + + x1 - x for start point + y1 - y for start point + x2 - x for end point + y2 - y for end point + + */ + Arc: function (params) { + var _super = _jp.Segments.AbstractSegment.apply(this, arguments), + _calcAngle = function (_x, _y) { + return _jg.theta([params.cx, params.cy], [_x, _y]); + }, + _calcAngleForLocation = function (segment, location) { + if (segment.anticlockwise) { + var sa = segment.startAngle < segment.endAngle ? segment.startAngle + TWO_PI : segment.startAngle, + s = Math.abs(sa - segment.endAngle); + return sa - (s * location); + } + else { + var ea = segment.endAngle < segment.startAngle ? segment.endAngle + TWO_PI : segment.endAngle, + ss = Math.abs(ea - segment.startAngle); + + return segment.startAngle + (ss * location); + } + }, + TWO_PI = 2 * Math.PI; + + this.radius = params.r; + this.anticlockwise = params.ac; + this.type = "Arc"; + + if (params.startAngle && params.endAngle) { + this.startAngle = params.startAngle; + this.endAngle = params.endAngle; + this.x1 = params.cx + (this.radius * Math.cos(params.startAngle)); + this.y1 = params.cy + (this.radius * Math.sin(params.startAngle)); + this.x2 = params.cx + (this.radius * Math.cos(params.endAngle)); + this.y2 = params.cy + (this.radius * Math.sin(params.endAngle)); + } + else { + this.startAngle = _calcAngle(params.x1, params.y1); + this.endAngle = _calcAngle(params.x2, params.y2); + this.x1 = params.x1; + this.y1 = params.y1; + this.x2 = params.x2; + this.y2 = params.y2; + } + + if (this.endAngle < 0) { + this.endAngle += TWO_PI; + } + if (this.startAngle < 0) { + this.startAngle += TWO_PI; + } + + // segment is used by vml + //this.segment = _jg.quadrant([this.x1, this.y1], [this.x2, this.y2]); + + // we now have startAngle and endAngle as positive numbers, meaning the + // absolute difference (|d|) between them is the sweep (s) of this arc, unless the + // arc is 'anticlockwise' in which case 's' is given by 2PI - |d|. + + var ea = this.endAngle < this.startAngle ? this.endAngle + TWO_PI : this.endAngle; + this.sweep = Math.abs(ea - this.startAngle); + if (this.anticlockwise) { + this.sweep = TWO_PI - this.sweep; + } + var circumference = 2 * Math.PI * this.radius, + frac = this.sweep / TWO_PI, + length = circumference * frac; + + this.getLength = function () { + return length; + }; + + this.getBounds = function () { + return { + minX: params.cx - params.r, + maxX: params.cx + params.r, + minY: params.cy - params.r, + maxY: params.cy + params.r + }; + }; + + var VERY_SMALL_VALUE = 0.0000000001, + gentleRound = function (n) { + var f = Math.floor(n), r = Math.ceil(n); + if (n - f < VERY_SMALL_VALUE) { + return f; + } + else if (r - n < VERY_SMALL_VALUE) { + return r; + } + return n; + }; + + /** + * returns the point on the segment's path that is 'location' along the length of the path, where 'location' is a decimal from + * 0 to 1 inclusive. + */ + this.pointOnPath = function (location, absolute) { + + if (location === 0) { + return { x: this.x1, y: this.y1, theta: this.startAngle }; + } + else if (location === 1) { + return { x: this.x2, y: this.y2, theta: this.endAngle }; + } + + if (absolute) { + location = location / length; + } + + var angle = _calcAngleForLocation(this, location), + _x = params.cx + (params.r * Math.cos(angle)), + _y = params.cy + (params.r * Math.sin(angle)); + + return { x: gentleRound(_x), y: gentleRound(_y), theta: angle }; + }; + + /** + * returns the gradient of the segment at the given point. + */ + this.gradientAtPoint = function (location, absolute) { + var p = this.pointOnPath(location, absolute); + var m = _jg.normal([ params.cx, params.cy ], [p.x, p.y ]); + if (!this.anticlockwise && (m === Infinity || m === -Infinity)) { + m *= -1; + } + return m; + }; + + this.pointAlongPathFrom = function (location, distance, absolute) { + var p = this.pointOnPath(location, absolute), + arcSpan = distance / circumference * 2 * Math.PI, + dir = this.anticlockwise ? -1 : 1, + startAngle = p.theta + (dir * arcSpan), + startX = params.cx + (this.radius * Math.cos(startAngle)), + startY = params.cy + (this.radius * Math.sin(startAngle)); + + return {x: startX, y: startY}; + }; + + // TODO: lineIntersection + }, + + Bezier: function (params) { + this.curve = [ + { x: params.x1, y: params.y1}, + { x: params.cp1x, y: params.cp1y }, + { x: params.cp2x, y: params.cp2y }, + { x: params.x2, y: params.y2 } + ]; + + var _isPoint = function(c) { + return c[0].x === c[1].x && c[0].y === c[1].y; + }; + + var _dist = function(p1, p2 ) { + return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2)); + }; + + var _compute = function(loc) { + + var EMPTY_POINT = {x:0, y:0}; + + if (loc === 0) { + return this.curve[0]; + } + + var degree = this.curve.length - 1; + + if (loc === 1) { + return this.curve[degree]; + } + + var o = this.curve; + var s = 1 - loc; + + if (degree === 0) { + return this.curve[0]; + } + + if (degree === 1) { + return { + x: s * o[0].x + loc * o[1].x, + y: s * o[0].y + loc * o[1].y + }; + } + + if (degree < 4) { + + var l = s * s, h = loc * loc, u = 0, m, g, f; + + if (degree === 2) { + o = [o[0], o[1], o[2], EMPTY_POINT]; + m = l; + g = 2 * (s * loc); + f = h; + } else if (degree === 3) { + m = l * s; + g = 3 * (l * loc); + f = 3 * (s * h); + u = loc * h; + } + + return { + x: m * o[0].x + g * o[1].x + f * o[2].x + u * o[3].x, + y: m * o[0].y + g * o[1].y + f * o[2].y + u * o[3].y + }; + } else { + return EMPTY_POINT; // not supported. + } + }.bind(this); + + var _getLUT = function(steps) { + var out = []; + steps--; + for (var n = 0; n <= steps; n++) { + out.push(_compute(n / steps)); + } + return out; + }; + + var _computeLength = function() { + + if (_isPoint(this.curve)) { + this.length = 0; + } + + var steps = 16; + var lut = _getLUT(steps); + this.length = 0; + + for (var i = 0; i < steps - 1; i++) { + var a = lut[i], b = lut[i + 1]; + this.length += _dist(a, b); + } + }.bind(this); + + var _super = _jp.Segments.AbstractSegment.apply(this, arguments); + // although this is not a strictly rigorous determination of bounds + // of a bezier curve, it works for the types of curves that this segment + // type produces. + this.bounds = { + minX: Math.min(params.x1, params.x2, params.cp1x, params.cp2x), + minY: Math.min(params.y1, params.y2, params.cp1y, params.cp2y), + maxX: Math.max(params.x1, params.x2, params.cp1x, params.cp2x), + maxY: Math.max(params.y1, params.y2, params.cp1y, params.cp2y) + }; + + this.type = "Bezier"; - startAngle - startAngle for the arc. - endAngle - endAngle for the arc. + _computeLength(); - or: + var _translateLocation = function (_curve, location, absolute) { + if (absolute) { + location = root.jsBezier.locationAlongCurveFrom(_curve, location > 0 ? 0 : 1, location); + } - x1 - x for start point - y1 - y for start point - x2 - x for end point - y2 - y for end point + return location; + }; - */Arc:function Arc(params){var _super=_jp.Segments.AbstractSegment.apply(this,arguments),_calcAngle=function _calcAngle(_x,_y){return _jg.theta([params.cx,params.cy],[_x,_y]);},_calcAngleForLocation=function _calcAngleForLocation(segment,location){if(segment.anticlockwise){var sa=segment.startAngle0?0:1,location);}return location;};/** - * returns the point on the segment's path that is 'location' along the length of the path, where 'location' is a decimal from - * 0 to 1 inclusive. - */this.pointOnPath=function(location,absolute){location=_translateLocation(this.curve,location,absolute);return root.jsBezier.pointOnCurve(this.curve,location);};/** + */ + this.pointOnPath = function (location, absolute) { + location = _translateLocation(this.curve, location, absolute); + return root.jsBezier.pointOnCurve(this.curve, location); + }; + + /** * returns the gradient of the segment at the given point. - */this.gradientAtPoint=function(location,absolute){location=_translateLocation(this.curve,location,absolute);return root.jsBezier.gradientAtPoint(this.curve,location);};this.pointAlongPathFrom=function(location,distance,absolute){location=_translateLocation(this.curve,location,absolute);return root.jsBezier.pointAlongCurveFrom(this.curve,location,distance);};this.getLength=function(){return this.length;};this.getBounds=function(){return this.bounds;};this.findClosestPointOnPath=function(x,y){var p=root.jsBezier.nearestPointOnCurve({x:x,y:y},this.curve);return{d:Math.sqrt(Math.pow(p.point.x-x,2)+Math.pow(p.point.y-y,2)),x:p.point.x,y:p.point.y,l:1-p.location,s:this};};this.lineIntersection=function(x1,y1,x2,y2){return root.jsBezier.lineIntersection(x1,y1,x2,y2,this.curve);};}};_jp.SegmentRenderer={getPath:function getPath(segment,isFirstSegment){return{"Straight":function Straight(isFirstSegment){var d=segment.getCoordinates();return(isFirstSegment?"M "+d.x1+" "+d.y1+" ":"")+"L "+d.x2+" "+d.y2;},"Bezier":function Bezier(isFirstSegment){var d=segment.params;return(isFirstSegment?"M "+d.x2+" "+d.y2+" ":"")+"C "+d.cp2x+" "+d.cp2y+" "+d.cp1x+" "+d.cp1y+" "+d.x1+" "+d.y1;},"Arc":function Arc(isFirstSegment){var d=segment.params,laf=segment.sweep>Math.PI?1:0,sf=segment.anticlockwise?0:1;return(isFirstSegment?"M"+segment.x1+" "+segment.y1+" ":"")+"A "+segment.radius+" "+d.r+" 0 "+laf+","+sf+" "+segment.x2+" "+segment.y2;}}[segment.type](isFirstSegment);}};/* + */ + this.gradientAtPoint = function (location, absolute) { + location = _translateLocation(this.curve, location, absolute); + return root.jsBezier.gradientAtPoint(this.curve, location); + }; + + this.pointAlongPathFrom = function (location, distance, absolute) { + location = _translateLocation(this.curve, location, absolute); + return root.jsBezier.pointAlongCurveFrom(this.curve, location, distance); + }; + + this.getLength = function () { + return this.length; + }; + + this.getBounds = function () { + return this.bounds; + }; + + this.findClosestPointOnPath = function (x, y) { + var p = root.jsBezier.nearestPointOnCurve({x:x,y:y}, this.curve); + return { + d:Math.sqrt(Math.pow(p.point.x - x, 2) + Math.pow(p.point.y - y, 2)), + x:p.point.x, + y:p.point.y, + l:1 - p.location, + s:this + }; + }; + + this.lineIntersection = function(x1, y1, x2, y2) { + return root.jsBezier.lineIntersection(x1, y1, x2, y2, this.curve); + }; + } + }; + + _jp.SegmentRenderer = { + getPath: function (segment, isFirstSegment) { + return ({ + "Straight": function (isFirstSegment) { + var d = segment.getCoordinates(); + return (isFirstSegment ? "M " + d.x1 + " " + d.y1 + " " : "") + "L " + d.x2 + " " + d.y2; + }, + "Bezier": function (isFirstSegment) { + var d = segment.params; + return (isFirstSegment ? "M " + d.x2 + " " + d.y2 + " " : "") + + "C " + d.cp2x + " " + d.cp2y + " " + d.cp1x + " " + d.cp1y + " " + d.x1 + " " + d.y1; + }, + "Arc": function (isFirstSegment) { + var d = segment.params, + laf = segment.sweep > Math.PI ? 1 : 0, + sf = segment.anticlockwise ? 0 : 1; + + return (isFirstSegment ? "M" + segment.x1 + " " + segment.y1 + " " : "") + "A " + segment.radius + " " + d.r + " 0 " + laf + "," + sf + " " + segment.x2 + " " + segment.y2; + } + })[segment.type](isFirstSegment); + } + }; + + /* Class: UIComponent Superclass for Connector and AbstractEndpoint. - */var AbstractComponent=function AbstractComponent(){this.resetBounds=function(){this.bounds={minX:Infinity,minY:Infinity,maxX:-Infinity,maxY:-Infinity};};this.resetBounds();};/* + */ + var AbstractComponent = function () { + this.resetBounds = function () { + this.bounds = { minX: Infinity, minY: Infinity, maxX: -Infinity, maxY: -Infinity }; + }; + this.resetBounds(); + }; + + /* * Class: Connector * Superclass for all Connectors; here is where Segments are managed. This is exposed on jsPlumb just so it * can be accessed from other files. You should not try to instantiate one of these directly. @@ -1711,7 +11639,34 @@ this.bounds={minX:Math.min(params.x1,params.x2,params.cp1x,params.cp2x),minY:Mat * that request to. This is done by keeping track of the total connector length as segments are added, and also * their cumulative ratios to the total length. Then when the right segment is found it is a simple case of dispatching * the request to it (and adjusting 'location' so that it is relative to the beginning of that segment.) - */_jp.Connectors.AbstractConnector=function(params){AbstractComponent.apply(this,arguments);var segments=[],totalLength=0,segmentProportions=[],segmentProportionalLengths=[],stub=params.stub||0,sourceStub=_ju.isArray(stub)?stub[0]:stub,targetStub=_ju.isArray(stub)?stub[1]:stub,gap=params.gap||0,sourceGap=_ju.isArray(gap)?gap[0]:gap,targetGap=_ju.isArray(gap)?gap[1]:gap,userProvidedSegments=null,paintInfo=null;this.getPathData=function(){var p="";for(var i=0;i0?location/totalLength:(totalLength+location)/totalLength;}// if location 1 we know its the last segment -if(location===1){idx=segments.length-1;inSegmentProportion=1;}else if(location===0){// if location 0 we know its the first segment -inSegmentProportion=0;idx=0;}else{// if location >= 0.5, traverse backwards (of course not exact, who knows the segment proportions. but -// an educated guess at least) -if(location>=0.5){idx=0;inSegmentProportion=0;for(i=segmentProportions.length-1;i>-1;i--){if(segmentProportions[i][1]>=location&&segmentProportions[i][0]<=location){idx=i;inSegmentProportion=(location-segmentProportions[i][0])/segmentProportionalLengths[i];break;}}}else{idx=segmentProportions.length-1;inSegmentProportion=1;for(i=0;i=location){idx=i;inSegmentProportion=(location-segmentProportions[i][0])/segmentProportionalLengths[i];break;}}}}return{segment:segments[idx],proportion:inSegmentProportion,index:idx};},_addSegment=function _addSegment(conn,type,params){if(params.x1===params.x2&¶ms.y1===params.y2){return;}var s=new _jp.Segments[type](params);segments.push(s);totalLength+=s.getLength();conn.updateBounds(s);},_clearSegments=function _clearSegments(){totalLength=segments.length=segmentProportions.length=segmentProportionalLengths.length=0;};this.setSegments=function(_segs){userProvidedSegments=[];totalLength=0;for(var i=0;i<_segs.length;i++){userProvidedSegments.push(_segs[i]);totalLength+=_segs[i].getLength();}};this.getLength=function(){return totalLength;};var _prepareCompute=function _prepareCompute(params){this.strokeWidth=params.strokeWidth;var segment=_jg.quadrant(params.sourcePos,params.targetPos),swapX=params.targetPos[0]h?0:1,oIndex=[1,0][index];so=[];to=[];so[index]=params.sourcePos[index]>params.targetPos[index]?-1:1;to[index]=params.sourcePos[index]>params.targetPos[index]?1:-1;so[oIndex]=0;to[oIndex]=0;}var sx=swapX?w+sourceGap*so[0]:sourceGap*so[0],sy=swapY?h+sourceGap*so[1]:sourceGap*so[1],tx=swapX?targetGap*to[0]:w+targetGap*to[0],ty=swapY?targetGap*to[1]:h+targetGap*to[1],oProduct=so[0]*to[0]+so[1]*to[1];var result={sx:sx,sy:sy,tx:tx,ty:ty,lw:lw,xSpan:Math.abs(tx-sx),ySpan:Math.abs(ty-sy),mx:(sx+tx)/2,my:(sy+ty)/2,so:so,to:to,x:x,y:y,w:w,h:h,segment:segment,startStubX:sx+so[0]*sourceStub,startStubY:sy+so[1]*sourceStub,endStubX:tx+to[0]*targetStub,endStubY:ty+to[1]*targetStub,isXGreaterThanStubTimes2:Math.abs(sx-tx)>sourceStub+targetStub,isYGreaterThanStubTimes2:Math.abs(sy-ty)>sourceStub+targetStub,opposite:oProduct===-1,perpendicular:oProduct===0,orthogonal:oProduct===1,sourceAxis:so[0]===0?"y":"x",points:[x,y,w,h,sx,sy,tx,ty],stubs:[sourceStub,targetStub]};result.anchorOrientation=result.opposite?"opposite":result.orthogonal?"orthogonal":"perpendicular";return result;};this.getSegments=function(){return segments;};this.updateBounds=function(segment){var segBounds=segment.getBounds();this.bounds.minX=Math.min(this.bounds.minX,segBounds.minX);this.bounds.maxX=Math.max(this.bounds.maxX,segBounds.maxX);this.bounds.minY=Math.min(this.bounds.minY,segBounds.minY);this.bounds.maxY=Math.max(this.bounds.maxY,segBounds.maxY);};var dumpSegmentsToConsole=function dumpSegmentsToConsole(){console.log("SEGMENTS:");for(var i=0;i 0 ? location / totalLength : (totalLength + location) / totalLength; + } + + // if location 1 we know its the last segment + if (location === 1) { + idx = segments.length - 1; + inSegmentProportion = 1; + } else if (location === 0) { + // if location 0 we know its the first segment + inSegmentProportion = 0; + idx = 0; + } else { + + // if location >= 0.5, traverse backwards (of course not exact, who knows the segment proportions. but + // an educated guess at least) + if (location >= 0.5) { + + idx = 0; + inSegmentProportion = 0; + for (i = segmentProportions.length - 1; i > -1; i--) { + if (segmentProportions[i][1] >= location && segmentProportions[i][0] <= location) { + idx = i; + inSegmentProportion = (location - segmentProportions[i][0]) / segmentProportionalLengths[i]; + break; + } + } + + } else { + idx = segmentProportions.length - 1; + inSegmentProportion = 1; + for (i = 0; i < segmentProportions.length; i++) { + if (segmentProportions[i][1] >= location) { + idx = i; + inSegmentProportion = (location - segmentProportions[i][0]) / segmentProportionalLengths[i]; + break; + } + } + } + } + + return { segment: segments[idx], proportion: inSegmentProportion, index: idx }; + }, + _addSegment = function (conn, type, params) { + if (params.x1 === params.x2 && params.y1 === params.y2) { + return; + } + var s = new _jp.Segments[type](params); + segments.push(s); + totalLength += s.getLength(); + conn.updateBounds(s); + }, + _clearSegments = function () { + totalLength = segments.length = segmentProportions.length = segmentProportionalLengths.length = 0; + }; + + this.setSegments = function (_segs) { + userProvidedSegments = []; + totalLength = 0; + for (var i = 0; i < _segs.length; i++) { + userProvidedSegments.push(_segs[i]); + totalLength += _segs[i].getLength(); + } + }; + + this.getLength = function() { + return totalLength; + }; + + var _prepareCompute = function (params) { + this.strokeWidth = params.strokeWidth; + var segment = _jg.quadrant(params.sourcePos, params.targetPos), + swapX = params.targetPos[0] < params.sourcePos[0], + swapY = params.targetPos[1] < params.sourcePos[1], + lw = params.strokeWidth || 1, + so = params.sourceEndpoint.anchor.getOrientation(params.sourceEndpoint), + to = params.targetEndpoint.anchor.getOrientation(params.targetEndpoint), + x = swapX ? params.targetPos[0] : params.sourcePos[0], + y = swapY ? params.targetPos[1] : params.sourcePos[1], + w = Math.abs(params.targetPos[0] - params.sourcePos[0]), + h = Math.abs(params.targetPos[1] - params.sourcePos[1]); + + // if either anchor does not have an orientation set, we derive one from their relative + // positions. we fix the axis to be the one in which the two elements are further apart, and + // point each anchor at the other element. this is also used when dragging a new connection. + if (so[0] === 0 && so[1] === 0 || to[0] === 0 && to[1] === 0) { + var index = w > h ? 0 : 1, oIndex = [1, 0][index]; + so = []; + to = []; + so[index] = params.sourcePos[index] > params.targetPos[index] ? -1 : 1; + to[index] = params.sourcePos[index] > params.targetPos[index] ? 1 : -1; + so[oIndex] = 0; + to[oIndex] = 0; + } + + var sx = swapX ? w + (sourceGap * so[0]) : sourceGap * so[0], + sy = swapY ? h + (sourceGap * so[1]) : sourceGap * so[1], + tx = swapX ? targetGap * to[0] : w + (targetGap * to[0]), + ty = swapY ? targetGap * to[1] : h + (targetGap * to[1]), + oProduct = ((so[0] * to[0]) + (so[1] * to[1])); + + var result = { + sx: sx, sy: sy, tx: tx, ty: ty, lw: lw, + xSpan: Math.abs(tx - sx), + ySpan: Math.abs(ty - sy), + mx: (sx + tx) / 2, + my: (sy + ty) / 2, + so: so, to: to, x: x, y: y, w: w, h: h, + segment: segment, + startStubX: sx + (so[0] * sourceStub), + startStubY: sy + (so[1] * sourceStub), + endStubX: tx + (to[0] * targetStub), + endStubY: ty + (to[1] * targetStub), + isXGreaterThanStubTimes2: Math.abs(sx - tx) > (sourceStub + targetStub), + isYGreaterThanStubTimes2: Math.abs(sy - ty) > (sourceStub + targetStub), + opposite: oProduct === -1, + perpendicular: oProduct === 0, + orthogonal: oProduct === 1, + sourceAxis: so[0] === 0 ? "y" : "x", + points: [x, y, w, h, sx, sy, tx, ty ], + stubs:[sourceStub, targetStub] + }; + result.anchorOrientation = result.opposite ? "opposite" : result.orthogonal ? "orthogonal" : "perpendicular"; + return result; + }; + + this.getSegments = function () { + return segments; + }; + + this.updateBounds = function (segment) { + var segBounds = segment.getBounds(); + this.bounds.minX = Math.min(this.bounds.minX, segBounds.minX); + this.bounds.maxX = Math.max(this.bounds.maxX, segBounds.maxX); + this.bounds.minY = Math.min(this.bounds.minY, segBounds.minY); + this.bounds.maxY = Math.max(this.bounds.maxY, segBounds.maxY); + }; + + var dumpSegmentsToConsole = function () { + console.log("SEGMENTS:"); + for (var i = 0; i < segments.length; i++) { + console.log(segments[i].type, segments[i].getLength(), segmentProportions[i]); + } + }; + + this.pointOnPath = function (location, absolute) { + var seg = _findSegmentForLocation(location, absolute); + return seg.segment && seg.segment.pointOnPath(seg.proportion, false) || [0, 0]; + }; + + this.gradientAtPoint = function (location, absolute) { + var seg = _findSegmentForLocation(location, absolute); + return seg.segment && seg.segment.gradientAtPoint(seg.proportion, false) || 0; + }; + + this.pointAlongPathFrom = function (location, distance, absolute) { + var seg = _findSegmentForLocation(location, absolute); + // TODO what happens if this crosses to the next segment? + return seg.segment && seg.segment.pointAlongPathFrom(seg.proportion, distance, false) || [0, 0]; + }; + + this.compute = function (params) { + paintInfo = _prepareCompute.call(this, params); + + _clearSegments(); + this._compute(paintInfo, params); + this.x = paintInfo.points[0]; + this.y = paintInfo.points[1]; + this.w = paintInfo.points[2]; + this.h = paintInfo.points[3]; + this.segment = paintInfo.segment; + _updateSegmentProportions(); + }; + + return { + addSegment: _addSegment, + prepareCompute: _prepareCompute, + sourceStub: sourceStub, + targetStub: targetStub, + maxStub: Math.max(sourceStub, targetStub), + sourceGap: sourceGap, + targetGap: targetGap, + maxGap: Math.max(sourceGap, targetGap) + }; + }; + _ju.extend(_jp.Connectors.AbstractConnector, AbstractComponent); + + + // ********************************* END OF CONNECTOR TYPES ******************************************************************* + + // ********************************* ENDPOINT TYPES ******************************************************************* + + _jp.Endpoints.AbstractEndpoint = function (params) { + AbstractComponent.apply(this, arguments); + var compute = this.compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) { + var out = this._compute.apply(this, arguments); + this.x = out[0]; + this.y = out[1]; + this.w = out[2]; + this.h = out[3]; + this.bounds.minX = this.x; + this.bounds.minY = this.y; + this.bounds.maxX = this.x + this.w; + this.bounds.maxY = this.y + this.h; + return out; + }; + return { + compute: compute, + cssClass: params.cssClass + }; + }; + _ju.extend(_jp.Endpoints.AbstractEndpoint, AbstractComponent); + + /** * Class: Endpoints.Dot * A round endpoint, with default radius 10 pixels. - *//** + */ + + /** * Function: Constructor * * Parameters: * * radius - radius of the endpoint. defaults to 10 pixels. - */_jp.Endpoints.Dot=function(params){this.type="Dot";var _super=_jp.Endpoints.AbstractEndpoint.apply(this,arguments);params=params||{};this.radius=params.radius||10;this.defaultOffset=0.5*this.radius;this.defaultInnerRadius=this.radius/3;this._compute=function(anchorPoint,orientation,endpointStyle,connectorPaintStyle){this.radius=endpointStyle.radius||this.radius;var x=anchorPoint[0]-this.radius,y=anchorPoint[1]-this.radius,w=this.radius*2,h=this.radius*2;if(endpointStyle.stroke){var lw=endpointStyle.strokeWidth||1;x-=lw;y-=lw;w+=lw*2;h+=lw*2;}return[x,y,w,h,this.radius];};};_ju.extend(_jp.Endpoints.Dot,_jp.Endpoints.AbstractEndpoint);_jp.Endpoints.Rectangle=function(params){this.type="Rectangle";var _super=_jp.Endpoints.AbstractEndpoint.apply(this,arguments);params=params||{};this.width=params.width||20;this.height=params.height||20;this._compute=function(anchorPoint,orientation,endpointStyle,connectorPaintStyle){var width=endpointStyle.width||this.width,height=endpointStyle.height||this.height,x=anchorPoint[0]-width/2,y=anchorPoint[1]-height/2;return[x,y,width,height];};};_ju.extend(_jp.Endpoints.Rectangle,_jp.Endpoints.AbstractEndpoint);var DOMElementEndpoint=function DOMElementEndpoint(params){_jp.jsPlumbUIComponent.apply(this,arguments);this._jsPlumb.displayElements=[];};_ju.extend(DOMElementEndpoint,_jp.jsPlumbUIComponent,{getDisplayElements:function getDisplayElements(){return this._jsPlumb.displayElements;},appendDisplayElement:function appendDisplayElement(el){this._jsPlumb.displayElements.push(el);}});/** + */ + _jp.Endpoints.Dot = function (params) { + this.type = "Dot"; + var _super = _jp.Endpoints.AbstractEndpoint.apply(this, arguments); + params = params || {}; + this.radius = params.radius || 10; + this.defaultOffset = 0.5 * this.radius; + this.defaultInnerRadius = this.radius / 3; + + this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) { + this.radius = endpointStyle.radius || this.radius; + var x = anchorPoint[0] - this.radius, + y = anchorPoint[1] - this.radius, + w = this.radius * 2, + h = this.radius * 2; + + if (endpointStyle.stroke) { + var lw = endpointStyle.strokeWidth || 1; + x -= lw; + y -= lw; + w += (lw * 2); + h += (lw * 2); + } + return [ x, y, w, h, this.radius ]; + }; + }; + _ju.extend(_jp.Endpoints.Dot, _jp.Endpoints.AbstractEndpoint); + + _jp.Endpoints.Rectangle = function (params) { + this.type = "Rectangle"; + var _super = _jp.Endpoints.AbstractEndpoint.apply(this, arguments); + params = params || {}; + this.width = params.width || 20; + this.height = params.height || 20; + + this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) { + var width = endpointStyle.width || this.width, + height = endpointStyle.height || this.height, + x = anchorPoint[0] - (width / 2), + y = anchorPoint[1] - (height / 2); + + return [ x, y, width, height]; + }; + }; + _ju.extend(_jp.Endpoints.Rectangle, _jp.Endpoints.AbstractEndpoint); + + var DOMElementEndpoint = function (params) { + _jp.jsPlumbUIComponent.apply(this, arguments); + this._jsPlumb.displayElements = []; + }; + _ju.extend(DOMElementEndpoint, _jp.jsPlumbUIComponent, { + getDisplayElements: function () { + return this._jsPlumb.displayElements; + }, + appendDisplayElement: function (el) { + this._jsPlumb.displayElements.push(el); + } + }); + + /** * Class: Endpoints.Image * Draws an image as the Endpoint. - *//** + */ + /** * Function: Constructor * * Parameters: @@ -1765,37 +12046,243 @@ _jp.Endpoints.AbstractEndpoint=function(params){AbstractComponent.apply(this,arg TODO this class still might leak memory. - */_jp.Endpoints.Image=function(params){this.type="Image";DOMElementEndpoint.apply(this,arguments);_jp.Endpoints.AbstractEndpoint.apply(this,arguments);var _onload=params.onload,src=params.src||params.url,clazz=params.cssClass?" "+params.cssClass:"";this._jsPlumb.img=new Image();this._jsPlumb.ready=false;this._jsPlumb.initialized=false;this._jsPlumb.deleted=false;this._jsPlumb.widthToUse=params.width;this._jsPlumb.heightToUse=params.height;this._jsPlumb.endpoint=params.endpoint;this._jsPlumb.img.onload=function(){if(this._jsPlumb!=null){this._jsPlumb.ready=true;this._jsPlumb.widthToUse=this._jsPlumb.widthToUse||this._jsPlumb.img.width;this._jsPlumb.heightToUse=this._jsPlumb.heightToUse||this._jsPlumb.img.height;if(_onload){_onload(this);}}}.bind(this);/* + */ + _jp.Endpoints.Image = function (params) { + + this.type = "Image"; + DOMElementEndpoint.apply(this, arguments); + _jp.Endpoints.AbstractEndpoint.apply(this, arguments); + + var _onload = params.onload, + src = params.src || params.url, + clazz = params.cssClass ? " " + params.cssClass : ""; + + this._jsPlumb.img = new Image(); + this._jsPlumb.ready = false; + this._jsPlumb.initialized = false; + this._jsPlumb.deleted = false; + this._jsPlumb.widthToUse = params.width; + this._jsPlumb.heightToUse = params.height; + this._jsPlumb.endpoint = params.endpoint; + + this._jsPlumb.img.onload = function () { + if (this._jsPlumb != null) { + this._jsPlumb.ready = true; + this._jsPlumb.widthToUse = this._jsPlumb.widthToUse || this._jsPlumb.img.width; + this._jsPlumb.heightToUse = this._jsPlumb.heightToUse || this._jsPlumb.img.height; + if (_onload) { + _onload(this); + } + } + }.bind(this); + + /* Function: setImage Sets the Image to use in this Endpoint. Parameters: img - may be a URL or an Image object onload - optional; a callback to execute once the image has loaded. - */this._jsPlumb.endpoint.setImage=function(_img,onload){var s=_img.constructor===String?_img:_img.src;_onload=onload;this._jsPlumb.img.src=s;if(this.canvas!=null){this.canvas.setAttribute("src",this._jsPlumb.img.src);}}.bind(this);this._jsPlumb.endpoint.setImage(src,_onload);this._compute=function(anchorPoint,orientation,endpointStyle,connectorPaintStyle){this.anchorPoint=anchorPoint;if(this._jsPlumb.ready){return[anchorPoint[0]-this._jsPlumb.widthToUse/2,anchorPoint[1]-this._jsPlumb.heightToUse/2,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse];}else{return[0,0,0,0];}};this.canvas=_jp.createElement("img",{position:"absolute",margin:0,padding:0,outline:0},this._jsPlumb.instance.endpointClass+clazz);if(this._jsPlumb.widthToUse){this.canvas.setAttribute("width",this._jsPlumb.widthToUse);}if(this._jsPlumb.heightToUse){this.canvas.setAttribute("height",this._jsPlumb.heightToUse);}this._jsPlumb.instance.appendElement(this.canvas);this.actuallyPaint=function(d,style,anchor){if(!this._jsPlumb.deleted){if(!this._jsPlumb.initialized){this.canvas.setAttribute("src",this._jsPlumb.img.src);this.appendDisplayElement(this.canvas);this._jsPlumb.initialized=true;}var x=this.anchorPoint[0]-this._jsPlumb.widthToUse/2,y=this.anchorPoint[1]-this._jsPlumb.heightToUse/2;_ju.sizeElement(this.canvas,x,y,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse);}};this.paint=function(style,anchor){if(this._jsPlumb!=null){// may have been deleted -if(this._jsPlumb.ready){this.actuallyPaint(style,anchor);}else{root.setTimeout(function(){this.paint(style,anchor);}.bind(this),200);}}};};_ju.extend(_jp.Endpoints.Image,[DOMElementEndpoint,_jp.Endpoints.AbstractEndpoint],{cleanup:function cleanup(force){if(force){this._jsPlumb.deleted=true;if(this.canvas){this.canvas.parentNode.removeChild(this.canvas);}this.canvas=null;}}});/* + */ + this._jsPlumb.endpoint.setImage = function (_img, onload) { + var s = _img.constructor === String ? _img : _img.src; + _onload = onload; + this._jsPlumb.img.src = s; + + if (this.canvas != null) { + this.canvas.setAttribute("src", this._jsPlumb.img.src); + } + }.bind(this); + + this._jsPlumb.endpoint.setImage(src, _onload); + this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) { + this.anchorPoint = anchorPoint; + if (this._jsPlumb.ready) { + return [anchorPoint[0] - this._jsPlumb.widthToUse / 2, anchorPoint[1] - this._jsPlumb.heightToUse / 2, + this._jsPlumb.widthToUse, this._jsPlumb.heightToUse]; + } + else { + return [0, 0, 0, 0]; + } + }; + + this.canvas = _jp.createElement("img", { + position:"absolute", + margin:0, + padding:0, + outline:0 + }, this._jsPlumb.instance.endpointClass + clazz); + + if (this._jsPlumb.widthToUse) { + this.canvas.setAttribute("width", this._jsPlumb.widthToUse); + } + if (this._jsPlumb.heightToUse) { + this.canvas.setAttribute("height", this._jsPlumb.heightToUse); + } + this._jsPlumb.instance.appendElement(this.canvas); + + this.actuallyPaint = function (d, style, anchor) { + if (!this._jsPlumb.deleted) { + if (!this._jsPlumb.initialized) { + this.canvas.setAttribute("src", this._jsPlumb.img.src); + this.appendDisplayElement(this.canvas); + this._jsPlumb.initialized = true; + } + var x = this.anchorPoint[0] - (this._jsPlumb.widthToUse / 2), + y = this.anchorPoint[1] - (this._jsPlumb.heightToUse / 2); + _ju.sizeElement(this.canvas, x, y, this._jsPlumb.widthToUse, this._jsPlumb.heightToUse); + } + }; + + this.paint = function (style, anchor) { + if (this._jsPlumb != null) { // may have been deleted + if (this._jsPlumb.ready) { + this.actuallyPaint(style, anchor); + } + else { + root.setTimeout(function () { + this.paint(style, anchor); + }.bind(this), 200); + } + } + }; + }; + _ju.extend(_jp.Endpoints.Image, [ DOMElementEndpoint, _jp.Endpoints.AbstractEndpoint ], { + cleanup: function (force) { + if (force) { + this._jsPlumb.deleted = true; + if (this.canvas) { + this.canvas.parentNode.removeChild(this.canvas); + } + this.canvas = null; + } + } + }); + + /* * Class: Endpoints.Blank * An Endpoint that paints nothing (visible) on the screen. Supports cssClass and hoverClass parameters like all Endpoints. - */_jp.Endpoints.Blank=function(params){var _super=_jp.Endpoints.AbstractEndpoint.apply(this,arguments);this.type="Blank";DOMElementEndpoint.apply(this,arguments);this._compute=function(anchorPoint,orientation,endpointStyle,connectorPaintStyle){return[anchorPoint[0],anchorPoint[1],10,0];};var clazz=params.cssClass?" "+params.cssClass:"";this.canvas=_jp.createElement("div",{display:"block",width:"1px",height:"1px",background:"transparent",position:"absolute"},this._jsPlumb.instance.endpointClass+clazz);this._jsPlumb.instance.appendElement(this.canvas);this.paint=function(style,anchor){_ju.sizeElement(this.canvas,this.x,this.y,this.w,this.h);};};_ju.extend(_jp.Endpoints.Blank,[_jp.Endpoints.AbstractEndpoint,DOMElementEndpoint],{cleanup:function cleanup(){if(this.canvas&&this.canvas.parentNode){this.canvas.parentNode.removeChild(this.canvas);}}});/* + */ + _jp.Endpoints.Blank = function (params) { + var _super = _jp.Endpoints.AbstractEndpoint.apply(this, arguments); + this.type = "Blank"; + DOMElementEndpoint.apply(this, arguments); + this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) { + return [anchorPoint[0], anchorPoint[1], 10, 0]; + }; + + var clazz = params.cssClass ? " " + params.cssClass : ""; + + this.canvas = _jp.createElement("div", { + display: "block", + width: "1px", + height: "1px", + background: "transparent", + position: "absolute" + }, this._jsPlumb.instance.endpointClass + clazz); + + this._jsPlumb.instance.appendElement(this.canvas); + + this.paint = function (style, anchor) { + _ju.sizeElement(this.canvas, this.x, this.y, this.w, this.h); + }; + }; + _ju.extend(_jp.Endpoints.Blank, [_jp.Endpoints.AbstractEndpoint, DOMElementEndpoint], { + cleanup: function () { + if (this.canvas && this.canvas.parentNode) { + this.canvas.parentNode.removeChild(this.canvas); + } + } + }); + + /* * Class: Endpoints.Triangle * A triangular Endpoint. - *//* + */ + /* * Function: Constructor * * Parameters: * * width width of the triangle's base. defaults to 55 pixels. * height height of the triangle from base to apex. defaults to 55 pixels. - */_jp.Endpoints.Triangle=function(params){this.type="Triangle";_jp.Endpoints.AbstractEndpoint.apply(this,arguments);var self=this;params=params||{};params.width=params.width||55;params.height=params.height||55;this.width=params.width;this.height=params.height;this._compute=function(anchorPoint,orientation,endpointStyle,connectorPaintStyle){var width=endpointStyle.width||self.width,height=endpointStyle.height||self.height,x=anchorPoint[0]-width/2,y=anchorPoint[1]-height/2;return[x,y,width,height];};};// ********************************* END OF ENDPOINT TYPES ******************************************************************* + */ + _jp.Endpoints.Triangle = function (params) { + this.type = "Triangle"; + _jp.Endpoints.AbstractEndpoint.apply(this, arguments); + var self = this; + params = params || { }; + params.width = params.width || 55; + params.height = params.height || 55; + this.width = params.width; + this.height = params.height; + this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) { + var width = endpointStyle.width || self.width, + height = endpointStyle.height || self.height, + x = anchorPoint[0] - (width / 2), + y = anchorPoint[1] - (height / 2); + return [ x, y, width, height ]; + }; + }; +// ********************************* END OF ENDPOINT TYPES ******************************************************************* + + // ********************************* OVERLAY DEFINITIONS *********************************************************************** -var AbstractOverlay=_jp.Overlays.AbstractOverlay=function(params){this.visible=true;this.isAppendedAtTopLevel=true;this.component=params.component;this.loc=params.location==null?0.5:params.location;this.endpointLoc=params.endpointLocation==null?[0.5,0.5]:params.endpointLocation;this.visible=params.visible!==false;};AbstractOverlay.prototype={cleanup:function cleanup(force){if(force){this.component=null;this.canvas=null;this.endpointLoc=null;}},reattach:function reattach(instance,component){},setVisible:function setVisible(val){this.visible=val;this.component.repaint();},isVisible:function isVisible(){return this.visible;},hide:function hide(){this.setVisible(false);},show:function show(){this.setVisible(true);},incrementLocation:function incrementLocation(amount){this.loc+=amount;this.component.repaint();},setLocation:function setLocation(l){this.loc=l;this.component.repaint();},getLocation:function getLocation(){return this.loc;},updateFrom:function updateFrom(){}};/* + + var AbstractOverlay = _jp.Overlays.AbstractOverlay = function (params) { + this.visible = true; + this.isAppendedAtTopLevel = true; + this.component = params.component; + this.loc = params.location == null ? 0.5 : params.location; + this.endpointLoc = params.endpointLocation == null ? [ 0.5, 0.5] : params.endpointLocation; + this.visible = params.visible !== false; + }; + AbstractOverlay.prototype = { + cleanup: function (force) { + if (force) { + this.component = null; + this.canvas = null; + this.endpointLoc = null; + } + }, + reattach:function(instance, component) { }, + setVisible: function (val) { + this.visible = val; + this.component.repaint(); + }, + isVisible: function () { + return this.visible; + }, + hide: function () { + this.setVisible(false); + }, + show: function () { + this.setVisible(true); + }, + incrementLocation: function (amount) { + this.loc += amount; + this.component.repaint(); + }, + setLocation: function (l) { + this.loc = l; + this.component.repaint(); + }, + getLocation: function () { + return this.loc; + }, + updateFrom:function() { } + }; + + + /* * Class: Overlays.Arrow * * An arrow overlay, defined by four points: the head, the two sides of the tail, and a 'foldback' point at some distance along the length * of the arrow that lines from each tail point converge into. The foldback point is defined using a decimal that indicates some fraction * of the length of the arrow and has a default value of 0.623. A foldback point value of 1 would mean that the arrow had a straight line * across the tail. - *//* + */ + /* * @constructor * * @param {Object} params Constructor params. @@ -1807,17 +12294,133 @@ var AbstractOverlay=_jp.Overlays.AbstractOverlay=function(params){this.visible=t * @param {Number} [params.foldback] Distance (as a decimal from 0 to 1 inclusive) along the length of the arrow marking the point the tail points should fold back to. defaults to 0.623. * @param {Number} [params.location] Distance (as a decimal from 0 to 1 inclusive) marking where the arrow should sit on the connector. defaults to 0.5. * @param {NUmber} [params.direction] Indicates the direction the arrow points in. valid values are -1 and 1; 1 is default. - */_jp.Overlays.Arrow=function(params){this.type="Arrow";AbstractOverlay.apply(this,arguments);this.isAppendedAtTopLevel=false;params=params||{};var self=this;this.length=params.length||20;this.width=params.width||20;this.id=params.id;this.direction=(params.direction||1)<0?-1:1;var paintStyle=params.paintStyle||{"stroke-width":1},// how far along the arrow the lines folding back in come to. default is 62.3%. -foldback=params.foldback||0.623;this.computeMaxSize=function(){return self.width*1.5;};this.elementCreated=function(p,component){this.path=p;if(params.events){for(var i in params.events){_jp.on(p,i,params.events[i]);}}};this.draw=function(component,currentConnectionPaintStyle){var hxy,mid,txy,tail,cxy;if(component.pointAlongPathFrom){if(_ju.isString(this.loc)||this.loc>1||this.loc<0){var l=parseInt(this.loc,10),fromLoc=this.loc<0?1:0;hxy=component.pointAlongPathFrom(fromLoc,l,false);mid=component.pointAlongPathFrom(fromLoc,l-this.direction*this.length/2,false);txy=_jg.pointOnLine(hxy,mid,this.length);}else if(this.loc===1){hxy=component.pointOnPath(this.loc);mid=component.pointAlongPathFrom(this.loc,-this.length);txy=_jg.pointOnLine(hxy,mid,this.length);if(this.direction===-1){var _=txy;txy=hxy;hxy=_;}}else if(this.loc===0){txy=component.pointOnPath(this.loc);mid=component.pointAlongPathFrom(this.loc,this.length);hxy=_jg.pointOnLine(txy,mid,this.length);if(this.direction===-1){var __=txy;txy=hxy;hxy=__;}}else{hxy=component.pointAlongPathFrom(this.loc,this.direction*this.length/2);mid=component.pointOnPath(this.loc);txy=_jg.pointOnLine(hxy,mid,this.length);}tail=_jg.perpendicularLineTo(hxy,txy,this.width);cxy=_jg.pointOnLine(hxy,txy,foldback*this.length);var d={hxy:hxy,tail:tail,cxy:cxy},stroke=paintStyle.stroke||currentConnectionPaintStyle.stroke,fill=paintStyle.fill||currentConnectionPaintStyle.stroke,lineWidth=paintStyle.strokeWidth||currentConnectionPaintStyle.strokeWidth;return{component:component,d:d,"stroke-width":lineWidth,stroke:stroke,fill:fill,minX:Math.min(hxy.x,tail[0].x,tail[1].x),maxX:Math.max(hxy.x,tail[0].x,tail[1].x),minY:Math.min(hxy.y,tail[0].y,tail[1].y),maxY:Math.max(hxy.y,tail[0].y,tail[1].y)};}else{return{component:component,minX:0,maxX:0,minY:0,maxY:0};}};};_ju.extend(_jp.Overlays.Arrow,AbstractOverlay,{updateFrom:function updateFrom(d){this.length=d.length||this.length;this.width=d.width||this.width;this.direction=d.direction!=null?d.direction:this.direction;this.foldback=d.foldback||this.foldback;},cleanup:function cleanup(){if(this.path&&this.path.parentNode){this.path.parentNode.removeChild(this.path);}}});/* + */ + _jp.Overlays.Arrow = function (params) { + this.type = "Arrow"; + AbstractOverlay.apply(this, arguments); + this.isAppendedAtTopLevel = false; + params = params || {}; + var self = this; + + this.length = params.length || 20; + this.width = params.width || 20; + this.id = params.id; + this.direction = (params.direction || 1) < 0 ? -1 : 1; + var paintStyle = params.paintStyle || { "stroke-width": 1 }, + // how far along the arrow the lines folding back in come to. default is 62.3%. + foldback = params.foldback || 0.623; + + this.computeMaxSize = function () { + return self.width * 1.5; + }; + + this.elementCreated = function(p, component) { + this.path = p; + if (params.events) { + for (var i in params.events) { + _jp.on(p, i, params.events[i]); + } + } + }; + + this.draw = function (component, currentConnectionPaintStyle) { + + var hxy, mid, txy, tail, cxy; + if (component.pointAlongPathFrom) { + + if (_ju.isString(this.loc) || this.loc > 1 || this.loc < 0) { + var l = parseInt(this.loc, 10), + fromLoc = this.loc < 0 ? 1 : 0; + hxy = component.pointAlongPathFrom(fromLoc, l, false); + mid = component.pointAlongPathFrom(fromLoc, l - (this.direction * this.length / 2), false); + txy = _jg.pointOnLine(hxy, mid, this.length); + } + else if (this.loc === 1) { + hxy = component.pointOnPath(this.loc); + mid = component.pointAlongPathFrom(this.loc, -(this.length)); + txy = _jg.pointOnLine(hxy, mid, this.length); + + if (this.direction === -1) { + var _ = txy; + txy = hxy; + hxy = _; + } + } + else if (this.loc === 0) { + txy = component.pointOnPath(this.loc); + mid = component.pointAlongPathFrom(this.loc, this.length); + hxy = _jg.pointOnLine(txy, mid, this.length); + if (this.direction === -1) { + var __ = txy; + txy = hxy; + hxy = __; + } + } + else { + hxy = component.pointAlongPathFrom(this.loc, this.direction * this.length / 2); + mid = component.pointOnPath(this.loc); + txy = _jg.pointOnLine(hxy, mid, this.length); + } + + tail = _jg.perpendicularLineTo(hxy, txy, this.width); + cxy = _jg.pointOnLine(hxy, txy, foldback * this.length); + + var d = { hxy: hxy, tail: tail, cxy: cxy }, + stroke = paintStyle.stroke || currentConnectionPaintStyle.stroke, + fill = paintStyle.fill || currentConnectionPaintStyle.stroke, + lineWidth = paintStyle.strokeWidth || currentConnectionPaintStyle.strokeWidth; + + return { + component: component, + d: d, + "stroke-width": lineWidth, + stroke: stroke, + fill: fill, + minX: Math.min(hxy.x, tail[0].x, tail[1].x), + maxX: Math.max(hxy.x, tail[0].x, tail[1].x), + minY: Math.min(hxy.y, tail[0].y, tail[1].y), + maxY: Math.max(hxy.y, tail[0].y, tail[1].y) + }; + } + else { + return {component: component, minX: 0, maxX: 0, minY: 0, maxY: 0}; + } + }; + }; + _ju.extend(_jp.Overlays.Arrow, AbstractOverlay, { + updateFrom:function(d) { + this.length = d.length || this.length; + this.width = d.width|| this.width; + this.direction = d.direction != null ? d.direction : this.direction; + this.foldback = d.foldback|| this.foldback; + }, + cleanup:function() { + if (this.path && this.path.parentNode) { + this.path.parentNode.removeChild(this.path); + } + } + }); + + /* * Class: Overlays.PlainArrow * * A basic arrow. This is in fact just one instance of the more generic case in which the tail folds back on itself to some * point along the length of the arrow: in this case, that foldback point is the full length of the arrow. so it just does * a 'call' to Arrow with foldback set appropriately. - *//* + */ + /* * Function: Constructor * See for allowed parameters for this overlay. - */_jp.Overlays.PlainArrow=function(params){params=params||{};var p=_jp.extend(params,{foldback:1});_jp.Overlays.Arrow.call(this,p);this.type="PlainArrow";};_ju.extend(_jp.Overlays.PlainArrow,_jp.Overlays.Arrow);/* + */ + _jp.Overlays.PlainArrow = function (params) { + params = params || {}; + var p = _jp.extend(params, {foldback: 1}); + _jp.Overlays.Arrow.call(this, p); + this.type = "PlainArrow"; + }; + _ju.extend(_jp.Overlays.PlainArrow, _jp.Overlays.Arrow); + + /* * Class: Overlays.Diamond * * A diamond. Like PlainArrow, this is a concrete case of the more generic case of the tail points converging on some point...it just @@ -1827,29 +12430,191 @@ foldback=params.foldback||0.623;this.computeMaxSize=function(){return self.width * center is actually 1/4 of the way along for this guy. but we don't have any knowledge of pixels at this point, so we're kind of * stuck when it comes to helping out the Arrow class. possibly we could pass in a 'transpose' parameter or something. the value * would be -l/4 in this case - move along one quarter of the total length. - *//* + */ + /* * Function: Constructor * See for allowed parameters for this overlay. - */_jp.Overlays.Diamond=function(params){params=params||{};var l=params.length||40,p=_jp.extend(params,{length:l/2,foldback:2});_jp.Overlays.Arrow.call(this,p);this.type="Diamond";};_ju.extend(_jp.Overlays.Diamond,_jp.Overlays.Arrow);var _getDimensions=function _getDimensions(component,forceRefresh){if(component._jsPlumb.cachedDimensions==null||forceRefresh){component._jsPlumb.cachedDimensions=component.getDimensions();}return component._jsPlumb.cachedDimensions;};// abstract superclass for overlays that add an element to the DOM. -var AbstractDOMOverlay=function AbstractDOMOverlay(params){_jp.jsPlumbUIComponent.apply(this,arguments);AbstractOverlay.apply(this,arguments);// hand off fired events to associated component. -var _f=this.fire;this.fire=function(){_f.apply(this,arguments);if(this.component){this.component.fire.apply(this.component,arguments);}};this.detached=false;this.id=params.id;this._jsPlumb.div=null;this._jsPlumb.initialised=false;this._jsPlumb.component=params.component;this._jsPlumb.cachedDimensions=null;this._jsPlumb.create=params.create;this._jsPlumb.initiallyInvisible=params.visible===false;this.getElement=function(){if(this._jsPlumb.div==null){var div=this._jsPlumb.div=_jp.getElement(this._jsPlumb.create(this._jsPlumb.component));div.style.position="absolute";jsPlumb.addClass(div,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:params.cssClass?params.cssClass:""));this._jsPlumb.instance.appendElement(div);this._jsPlumb.instance.getId(div);this.canvas=div;// in IE the top left corner is what it placed at the desired location. This will not -// be fixed. IE8 is not going to be supported for much longer. -var ts="translate(-50%, -50%)";div.style.webkitTransform=ts;div.style.mozTransform=ts;div.style.msTransform=ts;div.style.oTransform=ts;div.style.transform=ts;// write the related component into the created element -div._jsPlumb=this;if(params.visible===false){div.style.display="none";}}return this._jsPlumb.div;};this.draw=function(component,currentConnectionPaintStyle,absolutePosition){var td=_getDimensions(this);if(td!=null&&td.length===2){var cxy={x:0,y:0};// absolutePosition would have been set by a call to connection.setAbsoluteOverlayPosition. -if(absolutePosition){cxy={x:absolutePosition[0],y:absolutePosition[1]};}else if(component.pointOnPath){var loc=this.loc,absolute=false;if(_ju.isString(this.loc)||this.loc<0||this.loc>1){loc=parseInt(this.loc,10);absolute=true;}cxy=component.pointOnPath(loc,absolute);// a connection -}else{var locToUse=this.loc.constructor===Array?this.loc:this.endpointLoc;cxy={x:locToUse[0]*component.w,y:locToUse[1]*component.h};}var minx=cxy.x-td[0]/2,miny=cxy.y-td[1]/2;return{component:component,d:{minx:minx,miny:miny,td:td,cxy:cxy},minX:minx,maxX:minx+td[0],minY:miny,maxY:miny+td[1]};}else{return{minX:0,maxX:0,minY:0,maxY:0};}};};_ju.extend(AbstractDOMOverlay,[_jp.jsPlumbUIComponent,AbstractOverlay],{getDimensions:function getDimensions(){return[1,1];},setVisible:function setVisible(state){if(this._jsPlumb.div){this._jsPlumb.div.style.display=state?"block":"none";// if initially invisible, dimensions are 0,0 and never get updated -if(state&&this._jsPlumb.initiallyInvisible){_getDimensions(this,true);this.component.repaint();this._jsPlumb.initiallyInvisible=false;}}},/* + */ + _jp.Overlays.Diamond = function (params) { + params = params || {}; + var l = params.length || 40, + p = _jp.extend(params, {length: l / 2, foldback: 2}); + _jp.Overlays.Arrow.call(this, p); + this.type = "Diamond"; + }; + _ju.extend(_jp.Overlays.Diamond, _jp.Overlays.Arrow); + + var _getDimensions = function (component, forceRefresh) { + if (component._jsPlumb.cachedDimensions == null || forceRefresh) { + component._jsPlumb.cachedDimensions = component.getDimensions(); + } + return component._jsPlumb.cachedDimensions; + }; + + // abstract superclass for overlays that add an element to the DOM. + var AbstractDOMOverlay = function (params) { + _jp.jsPlumbUIComponent.apply(this, arguments); + AbstractOverlay.apply(this, arguments); + + // hand off fired events to associated component. + var _f = this.fire; + this.fire = function () { + _f.apply(this, arguments); + if (this.component) { + this.component.fire.apply(this.component, arguments); + } + }; + + this.detached=false; + this.id = params.id; + this._jsPlumb.div = null; + this._jsPlumb.initialised = false; + this._jsPlumb.component = params.component; + this._jsPlumb.cachedDimensions = null; + this._jsPlumb.create = params.create; + this._jsPlumb.initiallyInvisible = params.visible === false; + + this.getElement = function () { + if (this._jsPlumb.div == null) { + var div = this._jsPlumb.div = _jp.getElement(this._jsPlumb.create(this._jsPlumb.component)); + div.style.position = "absolute"; + jsPlumb.addClass(div, this._jsPlumb.instance.overlayClass + " " + + (this.cssClass ? this.cssClass : + params.cssClass ? params.cssClass : "")); + this._jsPlumb.instance.appendElement(div); + this._jsPlumb.instance.getId(div); + this.canvas = div; + + // in IE the top left corner is what it placed at the desired location. This will not + // be fixed. IE8 is not going to be supported for much longer. + var ts = "translate(-50%, -50%)"; + div.style.webkitTransform = ts; + div.style.mozTransform = ts; + div.style.msTransform = ts; + div.style.oTransform = ts; + div.style.transform = ts; + + // write the related component into the created element + div._jsPlumb = this; + + if (params.visible === false) { + div.style.display = "none"; + } + } + return this._jsPlumb.div; + }; + + this.draw = function (component, currentConnectionPaintStyle, absolutePosition) { + var td = _getDimensions(this); + if (td != null && td.length === 2) { + var cxy = { x: 0, y: 0 }; + + // absolutePosition would have been set by a call to connection.setAbsoluteOverlayPosition. + if (absolutePosition) { + cxy = { x: absolutePosition[0], y: absolutePosition[1] }; + } + else if (component.pointOnPath) { + var loc = this.loc, absolute = false; + if (_ju.isString(this.loc) || this.loc < 0 || this.loc > 1) { + loc = parseInt(this.loc, 10); + absolute = true; + } + cxy = component.pointOnPath(loc, absolute); // a connection + } + else { + var locToUse = this.loc.constructor === Array ? this.loc : this.endpointLoc; + cxy = { x: locToUse[0] * component.w, + y: locToUse[1] * component.h }; + } + + var minx = cxy.x - (td[0] / 2), + miny = cxy.y - (td[1] / 2); + + return { + component: component, + d: { minx: minx, miny: miny, td: td, cxy: cxy }, + minX: minx, + maxX: minx + td[0], + minY: miny, + maxY: miny + td[1] + }; + } + else { + return {minX: 0, maxX: 0, minY: 0, maxY: 0}; + } + }; + }; + _ju.extend(AbstractDOMOverlay, [_jp.jsPlumbUIComponent, AbstractOverlay], { + getDimensions: function () { + return [1,1]; + }, + setVisible: function (state) { + if (this._jsPlumb.div) { + this._jsPlumb.div.style.display = state ? "block" : "none"; + // if initially invisible, dimensions are 0,0 and never get updated + if (state && this._jsPlumb.initiallyInvisible) { + _getDimensions(this, true); + this.component.repaint(); + this._jsPlumb.initiallyInvisible = false; + } + } + }, + /* * Function: clearCachedDimensions * Clears the cached dimensions for the label. As a performance enhancement, label dimensions are * cached from 1.3.12 onwards. The cache is cleared when you change the label text, of course, but * there are other reasons why the text dimensions might change - if you make a change through CSS, for * example, you might change the font size. in that case you should explicitly call this method. - */clearCachedDimensions:function clearCachedDimensions(){this._jsPlumb.cachedDimensions=null;},cleanup:function cleanup(force){if(force){if(this._jsPlumb.div!=null){this._jsPlumb.div._jsPlumb=null;this._jsPlumb.instance.removeElement(this._jsPlumb.div);}}else{// if not a forced cleanup, just detach child from parent for now. -if(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode){this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div);}this.detached=true;}},reattach:function reattach(instance,component){if(this._jsPlumb.div!=null){instance.getContainer().appendChild(this._jsPlumb.div);}this.detached=false;},computeMaxSize:function computeMaxSize(){var td=_getDimensions(this);return Math.max(td[0],td[1]);},paint:function paint(p,containerExtents){if(!this._jsPlumb.initialised){this.getElement();p.component.appendDisplayElement(this._jsPlumb.div);this._jsPlumb.initialised=true;if(this.detached){this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div);}}this._jsPlumb.div.style.left=p.component.x+p.d.minx+"px";this._jsPlumb.div.style.top=p.component.y+p.d.miny+"px";}});/* + */ + clearCachedDimensions: function () { + this._jsPlumb.cachedDimensions = null; + }, + cleanup: function (force) { + if (force) { + if (this._jsPlumb.div != null) { + this._jsPlumb.div._jsPlumb = null; + this._jsPlumb.instance.removeElement(this._jsPlumb.div); + } + } + else { + // if not a forced cleanup, just detach child from parent for now. + if (this._jsPlumb && this._jsPlumb.div && this._jsPlumb.div.parentNode) { + this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div); + } + this.detached = true; + } + + }, + reattach:function(instance, component) { + if (this._jsPlumb.div != null) { + instance.getContainer().appendChild(this._jsPlumb.div); + } + this.detached = false; + }, + computeMaxSize: function () { + var td = _getDimensions(this); + return Math.max(td[0], td[1]); + }, + paint: function (p, containerExtents) { + if (!this._jsPlumb.initialised) { + this.getElement(); + p.component.appendDisplayElement(this._jsPlumb.div); + this._jsPlumb.initialised = true; + if (this.detached) { + this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div); + } + } + this._jsPlumb.div.style.left = (p.component.x + p.d.minx) + "px"; + this._jsPlumb.div.style.top = (p.component.y + p.d.miny) + "px"; + } + }); + + /* * Class: Overlays.Custom * A Custom overlay. You supply a 'create' function which returns some DOM element, and jsPlumb positions it. * The 'create' function is passed a Connection or Endpoint. - *//* + */ + /* * Function: Constructor * * Parameters: @@ -1857,11 +12622,49 @@ if(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode){this._jsPlumb * location - distance (as a decimal from 0 to 1 inclusive) marking where the label should sit on the connector. defaults to 0.5. * id - optional id to use for later retrieval of this overlay. * - */_jp.Overlays.Custom=function(params){this.type="Custom";AbstractDOMOverlay.apply(this,arguments);};_ju.extend(_jp.Overlays.Custom,AbstractDOMOverlay);_jp.Overlays.GuideLines=function(){var self=this;self.length=50;self.strokeWidth=5;this.type="GuideLines";AbstractOverlay.apply(this,arguments);_jp.jsPlumbUIComponent.apply(this,arguments);this.draw=function(connector,currentConnectionPaintStyle){var head=connector.pointAlongPathFrom(self.loc,self.length/2),mid=connector.pointOnPath(self.loc),tail=_jg.pointOnLine(head,mid,self.length),tailLine=_jg.perpendicularLineTo(head,tail,40),headLine=_jg.perpendicularLineTo(tail,head,20);return{connector:connector,head:head,tail:tail,headLine:headLine,tailLine:tailLine,minX:Math.min(head.x,tail.x,headLine[0].x,headLine[1].x),minY:Math.min(head.y,tail.y,headLine[0].y,headLine[1].y),maxX:Math.max(head.x,tail.x,headLine[0].x,headLine[1].x),maxY:Math.max(head.y,tail.y,headLine[0].y,headLine[1].y)};};// this.cleanup = function() { }; // nothing to clean up for GuideLines -};/* + */ + _jp.Overlays.Custom = function (params) { + this.type = "Custom"; + AbstractDOMOverlay.apply(this, arguments); + }; + _ju.extend(_jp.Overlays.Custom, AbstractDOMOverlay); + + _jp.Overlays.GuideLines = function () { + var self = this; + self.length = 50; + self.strokeWidth = 5; + this.type = "GuideLines"; + AbstractOverlay.apply(this, arguments); + _jp.jsPlumbUIComponent.apply(this, arguments); + this.draw = function (connector, currentConnectionPaintStyle) { + + var head = connector.pointAlongPathFrom(self.loc, self.length / 2), + mid = connector.pointOnPath(self.loc), + tail = _jg.pointOnLine(head, mid, self.length), + tailLine = _jg.perpendicularLineTo(head, tail, 40), + headLine = _jg.perpendicularLineTo(tail, head, 20); + + return { + connector: connector, + head: head, + tail: tail, + headLine: headLine, + tailLine: tailLine, + minX: Math.min(head.x, tail.x, headLine[0].x, headLine[1].x), + minY: Math.min(head.y, tail.y, headLine[0].y, headLine[1].y), + maxX: Math.max(head.x, tail.x, headLine[0].x, headLine[1].x), + maxY: Math.max(head.y, tail.y, headLine[0].y, headLine[1].y) + }; + }; + + // this.cleanup = function() { }; // nothing to clean up for GuideLines + }; + + /* * Class: Overlays.Label - *//* + */ + /* * Function: Constructor * * Parameters: @@ -1873,55 +12676,522 @@ if(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode){this._jsPlumb * id - optional id to use for later retrieval of this overlay. * * - */_jp.Overlays.Label=function(params){this.labelStyle=params.labelStyle;var labelWidth=null,labelHeight=null,labelText=null,labelPadding=null;this.cssClass=this.labelStyle!=null?this.labelStyle.cssClass:null;var p=_jp.extend({create:function create(){return _jp.createElement("div");}},params);_jp.Overlays.Custom.call(this,p);this.type="Label";this.label=params.label||"";this.labelText=null;if(this.labelStyle){var el=this.getElement();this.labelStyle.font=this.labelStyle.font||"12px sans-serif";el.style.font=this.labelStyle.font;el.style.color=this.labelStyle.color||"black";if(this.labelStyle.fill){el.style.background=this.labelStyle.fill;}if(this.labelStyle.borderWidth>0){var dStyle=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";el.style.border=this.labelStyle.borderWidth+"px solid "+dStyle;}if(this.labelStyle.padding){el.style.padding=this.labelStyle.padding;}}};_ju.extend(_jp.Overlays.Label,_jp.Overlays.Custom,{cleanup:function cleanup(force){if(force){this.div=null;this.label=null;this.labelText=null;this.cssClass=null;this.labelStyle=null;}},getLabel:function getLabel(){return this.label;},/* + */ + _jp.Overlays.Label = function (params) { + this.labelStyle = params.labelStyle; + + var labelWidth = null, labelHeight = null, labelText = null, labelPadding = null; + this.cssClass = this.labelStyle != null ? this.labelStyle.cssClass : null; + var p = _jp.extend({ + create: function () { + return _jp.createElement("div"); + }}, params); + _jp.Overlays.Custom.call(this, p); + this.type = "Label"; + this.label = params.label || ""; + this.labelText = null; + if (this.labelStyle) { + var el = this.getElement(); + this.labelStyle.font = this.labelStyle.font || "12px sans-serif"; + el.style.font = this.labelStyle.font; + el.style.color = this.labelStyle.color || "black"; + if (this.labelStyle.fill) { + el.style.background = this.labelStyle.fill; + } + if (this.labelStyle.borderWidth > 0) { + var dStyle = this.labelStyle.borderStyle ? this.labelStyle.borderStyle : "black"; + el.style.border = this.labelStyle.borderWidth + "px solid " + dStyle; + } + if (this.labelStyle.padding) { + el.style.padding = this.labelStyle.padding; + } + } + + }; + _ju.extend(_jp.Overlays.Label, _jp.Overlays.Custom, { + cleanup: function (force) { + if (force) { + this.div = null; + this.label = null; + this.labelText = null; + this.cssClass = null; + this.labelStyle = null; + } + }, + getLabel: function () { + return this.label; + }, + /* * Function: setLabel * sets the label's, um, label. you would think i'd call this function * 'setText', but you can pass either a Function or a String to this, so * it makes more sense as 'setLabel'. This uses innerHTML on the label div, so keep * that in mind if you need escaped HTML. - */setLabel:function setLabel(l){this.label=l;this.labelText=null;this.clearCachedDimensions();this.update();this.component.repaint();},getDimensions:function getDimensions(){this.update();return AbstractDOMOverlay.prototype.getDimensions.apply(this,arguments);},update:function update(){if(typeof this.label==="function"){var lt=this.label(this);this.getElement().innerHTML=lt.replace(/\r\n/g,"
");}else{if(this.labelText==null){this.labelText=this.label;this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"
");}}},updateFrom:function updateFrom(d){if(d.label!=null){this.setLabel(d.label);}}});// ********************************* END OF OVERLAY DEFINITIONS *********************************************************************** -}).call(typeof window!=='undefined'?window:this);/* + */ + setLabel: function (l) { + this.label = l; + this.labelText = null; + this.clearCachedDimensions(); + this.update(); + this.component.repaint(); + }, + getDimensions: function () { + this.update(); + return AbstractDOMOverlay.prototype.getDimensions.apply(this, arguments); + }, + update: function () { + if (typeof this.label === "function") { + var lt = this.label(this); + this.getElement().innerHTML = lt.replace(/\r\n/g, "
"); + } + else { + if (this.labelText == null) { + this.labelText = this.label; + this.getElement().innerHTML = this.labelText.replace(/\r\n/g, "
"); + } + } + }, + updateFrom:function(d) { + if(d.label != null){ + this.setLabel(d.label); + } + } + }); + + // ********************************* END OF OVERLAY DEFINITIONS *********************************************************************** + +}).call(typeof window !== 'undefined' ? window : this); + +/* * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) * * https://jsplumbtoolkit.com * https://github.com/jsplumb/jsplumb * * Dual licensed under the MIT and GPL2 licenses. - */;(function(){"use strict";var root=this,_ju=root.jsPlumbUtil,_jpi=root.jsPlumbInstance;var GROUP_COLLAPSED_CLASS="jtk-group-collapsed";var GROUP_EXPANDED_CLASS="jtk-group-expanded";var GROUP_CONTAINER_SELECTOR="[jtk-group-content]";var ELEMENT_DRAGGABLE_EVENT="elementDraggable";var STOP="stop";var REVERT="revert";var GROUP_MANAGER="_groupManager";var GROUP="_jsPlumbGroup";var GROUP_DRAG_SCOPE="_jsPlumbGroupDrag";var EVT_CHILD_ADDED="group:addMember";var EVT_CHILD_REMOVED="group:removeMember";var EVT_GROUP_ADDED="group:add";var EVT_GROUP_REMOVED="group:remove";var EVT_EXPAND="group:expand";var EVT_COLLAPSE="group:collapse";var EVT_GROUP_DRAG_STOP="groupDragStop";var EVT_CONNECTION_MOVED="connectionMoved";var EVT_INTERNAL_CONNECTION_DETACHED="internal.connectionDetached";var CMD_REMOVE_ALL="removeAll";var CMD_ORPHAN_ALL="orphanAll";var CMD_SHOW="show";var CMD_HIDE="hide";var GroupManager=function GroupManager(_jsPlumb){var _managedGroups={},_connectionSourceMap={},_connectionTargetMap={},self=this;// function findGroupFor(el) { -// var c = _jsPlumb.getContainer(); -// var abort = false, g = null, child = null; -// while (!abort) { -// if (el == null || el === c) { -// abort = true; -// } else { -// if (el[GROUP]) { -// g = el[GROUP]; -// child = el; -// abort = true; -// } else { -// el = el.parentNode; -// } -// } -// } -// return g; -// } -function isDescendant(el,parentEl){var c=_jsPlumb.getContainer();var abort=false,g=null,child=null;while(!abort){if(el==null||el===c){return false;}else{if(el===parentEl){return true;}else{el=el.parentNode;}}}}_jsPlumb.bind("connection",function(p){var sourceGroup=_jsPlumb.getGroupFor(p.source);var targetGroup=_jsPlumb.getGroupFor(p.target);if(sourceGroup!=null&&targetGroup!=null&&sourceGroup===targetGroup){_connectionSourceMap[p.connection.id]=sourceGroup;_connectionTargetMap[p.connection.id]=sourceGroup;}else{if(sourceGroup!=null){_ju.suggest(sourceGroup.connections.source,p.connection);_connectionSourceMap[p.connection.id]=sourceGroup;}if(targetGroup!=null){_ju.suggest(targetGroup.connections.target,p.connection);_connectionTargetMap[p.connection.id]=targetGroup;}}});function _cleanupDetachedConnection(conn){delete conn.proxies;var group=_connectionSourceMap[conn.id],f;if(group!=null){f=function f(c){return c.id===conn.id;};_ju.removeWithFunction(group.connections.source,f);_ju.removeWithFunction(group.connections.target,f);delete _connectionSourceMap[conn.id];}group=_connectionTargetMap[conn.id];if(group!=null){f=function f(c){return c.id===conn.id;};_ju.removeWithFunction(group.connections.source,f);_ju.removeWithFunction(group.connections.target,f);delete _connectionTargetMap[conn.id];}}_jsPlumb.bind(EVT_INTERNAL_CONNECTION_DETACHED,function(p){_cleanupDetachedConnection(p.connection);});_jsPlumb.bind(EVT_CONNECTION_MOVED,function(p){var connMap=p.index===0?_connectionSourceMap:_connectionTargetMap;var group=connMap[p.connection.id];if(group){var list=group.connections[p.index===0?"source":"target"];var idx=list.indexOf(p.connection);if(idx!==-1){list.splice(idx,1);}}});this.addGroup=function(group){_jsPlumb.addClass(group.getEl(),GROUP_EXPANDED_CLASS);_managedGroups[group.id]=group;group.manager=this;_updateConnectionsForGroup(group);_jsPlumb.fire(EVT_GROUP_ADDED,{group:group});};this.addToGroup=function(group,el,doNotFireEvent){group=this.getGroup(group);if(group){var groupEl=group.getEl();if(el._isJsPlumbGroup){return;}var currentGroup=el._jsPlumbGroup;// if already a member of this group, do nothing -if(currentGroup!==group){_jsPlumb.removeFromDragSelection(el);var elpos=_jsPlumb.getOffset(el,true);var cpos=group.collapsed?_jsPlumb.getOffset(groupEl,true):_jsPlumb.getOffset(group.getDragArea(),true);// otherwise, transfer to this group. -if(currentGroup!=null){currentGroup.remove(el,false,doNotFireEvent,false,group);self.updateConnectionsForGroup(currentGroup);}group.add(el,doNotFireEvent/*, currentGroup*/);var handleDroppedConnections=function handleDroppedConnections(list,index){var oidx=index===0?1:0;list.each(function(c){c.setVisible(false);if(c.endpoints[oidx].element._jsPlumbGroup===group){c.endpoints[oidx].setVisible(false);_expandConnection(c,oidx,group);}else{c.endpoints[index].setVisible(false);_collapseConnection(c,index,group);}});};if(group.collapsed){handleDroppedConnections(_jsPlumb.select({source:el}),0);handleDroppedConnections(_jsPlumb.select({target:el}),1);}var elId=_jsPlumb.getId(el);_jsPlumb.dragManager.setParent(el,elId,groupEl,_jsPlumb.getId(groupEl),elpos);var newPosition={left:elpos.left-cpos.left,top:elpos.top-cpos.top};_jsPlumb.setPosition(el,newPosition);_jsPlumb.dragManager.revalidateParent(el,elId,elpos);self.updateConnectionsForGroup(group);_jsPlumb.revalidate(elId);if(!doNotFireEvent){var p={group:group,el:el,pos:newPosition};if(currentGroup){p.sourceGroup=currentGroup;}_jsPlumb.fire(EVT_CHILD_ADDED,p);}}}};this.removeFromGroup=function(group,el,doNotFireEvent){group=this.getGroup(group);if(group){// if this group is currently collapsed then any proxied connections for the given el (or its descendants) need -// to be put back on their original element, and unproxied -if(group.collapsed){var _expandSet=function _expandSet(conns,index){for(var i=0;i[x,y]} in the case of orphan -};this.removeAllGroups=function(deleteMembers,manipulateDOM,doNotFireEvent){for(var g in _managedGroups){this.removeGroup(_managedGroups[g],deleteMembers,manipulateDOM,doNotFireEvent);}};function _setVisible(group,state){// TODO discovering the list of elements would ideally be a pluggable function. -var m=group.getEl().querySelectorAll(".jtk-managed");for(var i=0;i[x,y]} in the case of orphan + }; + + this.removeAllGroups = function(deleteMembers, manipulateDOM, doNotFireEvent) { + for (var g in _managedGroups) { + this.removeGroup(_managedGroups[g], deleteMembers, manipulateDOM, doNotFireEvent); + } + }; + + function _setVisible(group, state) { + + // TODO discovering the list of elements would ideally be a pluggable function. + var m = group.getEl().querySelectorAll(".jtk-managed"); + for (var i = 0; i < m.length; i++) { + _jsPlumb[state ? CMD_SHOW : CMD_HIDE](m[i], true); + } + } + + var _collapseConnection = function(c, index, group) { + + var otherEl = c.endpoints[index === 0 ? 1 : 0].element; + if (otherEl[GROUP] && (!otherEl[GROUP].shouldProxy() && otherEl[GROUP].collapsed)) { + return; + } + + var groupEl = group.getEl(), groupElId = _jsPlumb.getId(groupEl); + + _jsPlumb.proxyConnection(c, index, groupEl, groupElId, function(c, index) { return group.getEndpoint(c, index); }, function(c, index) { return group.getAnchor(c, index); }); + }; + + this.collapseGroup = function(group) { + group = this.getGroup(group); + if (group == null || group.collapsed) { + return; + } + var groupEl = group.getEl(); + + // todo remove old proxy endpoints first, just in case? + //group.proxies.length = 0; + + // hide all connections + _setVisible(group, false); + + if (group.shouldProxy()) { + // collapses all connections in a group. + var _collapseSet = function (conns, index) { + for (var i = 0; i < conns.length; i++) { + var c = conns[i]; + _collapseConnection(c, index, group); + } + }; + + // setup proxies for sources and targets + _collapseSet(group.connections.source, 0); + _collapseSet(group.connections.target, 1); + } + + group.collapsed = true; + _jsPlumb.removeClass(groupEl, GROUP_EXPANDED_CLASS); + _jsPlumb.addClass(groupEl, GROUP_COLLAPSED_CLASS); + _jsPlumb.revalidate(groupEl); + _jsPlumb.fire(EVT_COLLAPSE, { group:group }); + }; + + var _expandConnection = function(c, index, group) { + _jsPlumb.unproxyConnection(c, index, _jsPlumb.getId(group.getEl())); + }; + + this.expandGroup = function(group, doNotFireEvent) { + + group = this.getGroup(group); + + if (group == null || !group.collapsed) { + return; + } + var groupEl = group.getEl(); + + _setVisible(group, true); + + if (group.shouldProxy()) { + // expands all connections in a group. + var _expandSet = function (conns, index) { + for (var i = 0; i < conns.length; i++) { + var c = conns[i]; + _expandConnection(c, index, group); + } + }; + + // setup proxies for sources and targets + _expandSet(group.connections.source, 0); + _expandSet(group.connections.target, 1); + } + + group.collapsed = false; + _jsPlumb.addClass(groupEl, GROUP_EXPANDED_CLASS); + _jsPlumb.removeClass(groupEl, GROUP_COLLAPSED_CLASS); + _jsPlumb.revalidate(groupEl); + this.repaintGroup(group); + if (!doNotFireEvent) { + _jsPlumb.fire(EVT_EXPAND, { group: group}); + } + }; + + this.repaintGroup = function(group) { + group = this.getGroup(group); + var m = group.getMembers(); + for (var i = 0; i < m.length; i++) { + _jsPlumb.revalidate(m[i]); + } + }; + + // TODO refactor this with the code that responds to `connection` events. + function _updateConnectionsForGroup(group) { + var members = group.getMembers().slice(); + + var childMembers = []; + for (var i = 0; i < members.length; i++) { + Array.prototype.push.apply(childMembers, members[i].querySelectorAll(".jtk-managed")); + } + Array.prototype.push.apply(members, childMembers); + + var c1 = _jsPlumb.getConnections({source:members, scope:"*"}, true); + var c2 = _jsPlumb.getConnections({target:members, scope:"*"}, true); + + var processed = {}; + group.connections.source.length = 0; + group.connections.target.length = 0; + var oneSet = function(c) { + for (var i = 0; i < c.length; i++) { + if (processed[c[i].id]) { + continue; + } + processed[c[i].id] = true; + var gs = _jsPlumb.getGroupFor(c[i].source), + gt = _jsPlumb.getGroupFor(c[i].target); + + if (gs === group) { + if (gt !== group) { + group.connections.source.push(c[i]); + } + _connectionSourceMap[c[i].id] = group; + } + else if (gt === group) { + group.connections.target.push(c[i]); + _connectionTargetMap[c[i].id] = group; + } + } + }; + oneSet(c1); oneSet(c2); + } + + this.updateConnectionsForGroup = _updateConnectionsForGroup; + this.refreshAllGroups = function() { + for (var g in _managedGroups) { + _updateConnectionsForGroup(_managedGroups[g]); + _jsPlumb.dragManager.updateOffsets(_jsPlumb.getId(_managedGroups[g].getEl())); + } + }; + }; + + /** * * @param {jsPlumbInstance} _jsPlumb Associated jsPlumb instance. * @param {Object} params @@ -1933,66 +13203,401 @@ function _updateConnectionsForGroup(group){var members=group.getMembers().slice( * @param {Boolean} [params.prune=false] If true, child elements dropped outside of the Group container will be removed from the Group and also from the DOM. * @param {Boolean} [params.dropOverride=false] If true, a child element that has been dropped onto some other Group will not be subject to the controls imposed by `prune`, `revert` or `orphan`. * @constructor - */var Group=function Group(_jsPlumb,params){var self=this;var el=params.el;this.getEl=function(){return el;};this.id=params.id||_ju.uuid();el._isJsPlumbGroup=true;var getDragArea=this.getDragArea=function(){var da=_jsPlumb.getSelector(el,GROUP_CONTAINER_SELECTOR);return da&&da.length>0?da[0]:el;};var ghost=params.ghost===true;var constrain=ghost||params.constrain===true;var revert=params.revert!==false;var orphan=params.orphan===true;var prune=params.prune===true;var dropOverride=params.dropOverride===true;var proxied=params.proxied!==false;var elements=[];this.connections={source:[],target:[],internal:[]};// this function, and getEndpoint below, are stubs for a future setup in which we can choose endpoint -// and anchor based upon the connection and the index (source/target) of the endpoint to be proxied. -this.getAnchor=function(conn,endpointIndex){return params.anchor||"Continuous";};this.getEndpoint=function(conn,endpointIndex){return params.endpoint||["Dot",{radius:10}];};this.collapsed=false;if(params.draggable!==false){var opts={drag:function drag(){for(var i=0;i0&&leftEdge0&&topEdge 0 ? da[0] : el; + }; + + var ghost = params.ghost === true; + var constrain = ghost || (params.constrain === true); + var revert = params.revert !== false; + var orphan = params.orphan === true; + var prune = params.prune === true; + var dropOverride = params.dropOverride === true; + var proxied = params.proxied !== false; + var elements = []; + this.connections = { source:[], target:[], internal:[] }; + + // this function, and getEndpoint below, are stubs for a future setup in which we can choose endpoint + // and anchor based upon the connection and the index (source/target) of the endpoint to be proxied. + this.getAnchor = function(conn, endpointIndex) { + return params.anchor || "Continuous"; + }; + + this.getEndpoint = function(conn, endpointIndex) { + return params.endpoint || [ "Dot", { radius:10 }]; + }; + + this.collapsed = false; + if (params.draggable !== false) { + var opts = { + drag:function() { + for (var i = 0; i < elements.length; i++) { + _jsPlumb.draw(elements[i]); + } + }, + stop:function(params) { + _jsPlumb.fire(EVT_GROUP_DRAG_STOP, jsPlumb.extend(params, {group:self})); + }, + scope:GROUP_DRAG_SCOPE + }; + if (params.dragOptions) { + root.jsPlumb.extend(opts, params.dragOptions); + } + _jsPlumb.draggable(params.el, opts); + } + if (params.droppable !== false) { + _jsPlumb.droppable(params.el, { + drop:function(p) { + var el = p.drag.el; + if (el._isJsPlumbGroup) { + return; + } + var currentGroup = el._jsPlumbGroup; + if (currentGroup !== self) { + if (currentGroup != null) { + if (currentGroup.overrideDrop(el, self)) { + return; + } + } + _jsPlumb.getGroupManager().addToGroup(self, el, false); + } + + } + }); + } + var _each = function(_el, fn) { + var els = _el.nodeType == null ? _el : [ _el ]; + for (var i = 0; i < els.length; i++) { + fn(els[i]); + } + }; + + this.overrideDrop = function(_el, targetGroup) { + return dropOverride && (revert || prune || orphan); + }; + + this.add = function(_el, doNotFireEvent/*, sourceGroup*/) { + var dragArea = getDragArea(); + _each(_el, function(__el) { + + if (__el._jsPlumbGroup != null) { + if (__el._jsPlumbGroup === self) { + return; + } else { + __el._jsPlumbGroup.remove(__el, true, doNotFireEvent, false); + } + } + + __el._jsPlumbGroup = self; + elements.push(__el); + // test if draggable and add handlers if so. + if (_jsPlumb.isAlreadyDraggable(__el)) { + _bindDragHandlers(__el); + } + + if (__el.parentNode !== dragArea) { + dragArea.appendChild(__el); + } + + // if (!doNotFireEvent) { + // var p = {group: self, el: __el}; + // if (sourceGroup) { + // p.sourceGroup = sourceGroup; + // } + // //_jsPlumb.fire(EVT_CHILD_ADDED, p); + // } + }); + + _jsPlumb.getGroupManager().updateConnectionsForGroup(self); + }; + + this.remove = function(el, manipulateDOM, doNotFireEvent, doNotUpdateConnections, targetGroup) { + + _each(el, function(__el) { + if (__el._jsPlumbGroup === self) { + delete __el._jsPlumbGroup; + _ju.removeWithFunction(elements, function (e) { + return e === __el; + }); + + + if (manipulateDOM) { + try { + self.getDragArea().removeChild(__el); + } catch (e) { + jsPlumbUtil.log("Could not remove element from Group " + e); + } + } + _unbindDragHandlers(__el); + + if (!doNotFireEvent) { + var p = {group: self, el: __el}; + if (targetGroup) { + p.targetGroup = targetGroup; + } + _jsPlumb.fire(EVT_CHILD_REMOVED, p); + } + } + }); + if (!doNotUpdateConnections) { + _jsPlumb.getGroupManager().updateConnectionsForGroup(self); + } + }; + this.removeAll = function(manipulateDOM, doNotFireEvent) { + for (var i = 0, l = elements.length; i < l; i++) { + var el = elements[0]; + self.remove(el, manipulateDOM, doNotFireEvent, true); + _jsPlumb.remove(el, true); + } + elements.length = 0; + _jsPlumb.getGroupManager().updateConnectionsForGroup(self); + }; + this.orphanAll = function() { + var orphanedPositions = {}; + for (var i = 0; i < elements.length; i++) { + var newPosition = _orphan(elements[i]); + orphanedPositions[newPosition[0]] = newPosition[1]; + } + elements.length = 0; + + return orphanedPositions; + }; + this.getMembers = function() { return elements; }; + + el[GROUP] = this; + + _jsPlumb.bind(ELEMENT_DRAGGABLE_EVENT, function(dragParams) { + // if its for the current group, + if (dragParams.el._jsPlumbGroup === this) { + _bindDragHandlers(dragParams.el); + } + }.bind(this)); + + function _findParent(_el) { + return _el.offsetParent; + } + + function _isInsideParent(_el, pos) { + var p = _findParent(_el), + s = _jsPlumb.getSize(p), + ss = _jsPlumb.getSize(_el), + leftEdge = pos[0], + rightEdge = leftEdge + ss[0], + topEdge = pos[1], + bottomEdge = topEdge + ss[1]; + + return rightEdge > 0 && leftEdge < s[0] && bottomEdge > 0 && topEdge < s[1]; + } + + // + // orphaning an element means taking it out of the group and adding it to the main jsplumb container. + // we return the new calculated position from this method and the element's id. + // + function _orphan(_el) { + var id = _jsPlumb.getId(_el); + var pos = _jsPlumb.getOffset(_el); + _el.parentNode.removeChild(_el); + _jsPlumb.getContainer().appendChild(_el); + _jsPlumb.setPosition(_el, pos); + _unbindDragHandlers(_el); + _jsPlumb.dragManager.clearParent(_el, id); + return [id, pos]; + } + + // + // remove an element from the group, then either prune it from the jsplumb instance, or just orphan it. + // + function _pruneOrOrphan(p) { + + var out = []; + + function _one(el, left, top) { + var orphanedPosition = null; + if (!_isInsideParent(el, [left, top])) { + var group = el._jsPlumbGroup; + if (prune) { + _jsPlumb.remove(el); + } else { + orphanedPosition = _orphan(el); + } + + group.remove(el); + } + + return orphanedPosition; + } + + for (var i = 0; i < p.selection.length; i++) { + out.push(_one(p.selection[i][0], p.selection[i][1].left, p.selection[i][1].top)); + } + + return out.length === 1 ? out[0] : out; + + } + + // + // redraws the element + // + function _revalidate(_el) { + var id = _jsPlumb.getId(_el); + _jsPlumb.revalidate(_el); + _jsPlumb.dragManager.revalidateParent(_el, id); + } + + // + // unbind the group specific drag/revert handlers. + // + function _unbindDragHandlers(_el) { + if (!_el._katavorioDrag) { + return; + } + if (prune || orphan) { + _el._katavorioDrag.off(STOP, _pruneOrOrphan); + } + if (!prune && !orphan && revert) { + _el._katavorioDrag.off(REVERT, _revalidate); + _el._katavorioDrag.setRevert(null); + } + } + + function _bindDragHandlers(_el) { + if (!_el._katavorioDrag) { + return; + } + if (prune || orphan) { + _el._katavorioDrag.on(STOP, _pruneOrOrphan); + } + + if (constrain) { + _el._katavorioDrag.setConstrain(true); + } + + if (ghost) { + _el._katavorioDrag.setUseGhostProxy(true); + } + + if (!prune && !orphan && revert) { + _el._katavorioDrag.on(REVERT, _revalidate); + _el._katavorioDrag.setRevert(function(__el, pos) { + return !_isInsideParent(__el, pos); + }); + } + } + + this.shouldProxy = function() { + return proxied; + }; + + _jsPlumb.getGroupManager().addGroup(this); + }; + + /** * Adds a group to the jsPlumb instance. * @method addGroup * @param {Object} params * @return {Group} The newly created Group. - */_jpi.prototype.addGroup=function(params){var j=this;j._groups=j._groups||{};if(j._groups[params.id]!=null){throw new TypeError("cannot create Group ["+params.id+"]; a Group with that ID exists");}if(params.el[GROUP]!=null){throw new TypeError("cannot create Group ["+params.id+"]; the given element is already a Group");}var group=new Group(j,params);j._groups[group.id]=group;if(params.collapsed){this.collapseGroup(group);}return group;};/** + */ + _jpi.prototype.addGroup = function(params) { + var j = this; + j._groups = j._groups || {}; + if (j._groups[params.id] != null) { + throw new TypeError("cannot create Group [" + params.id + "]; a Group with that ID exists"); + } + if (params.el[GROUP] != null) { + throw new TypeError("cannot create Group [" + params.id + "]; the given element is already a Group"); + } + var group = new Group(j, params); + j._groups[group.id] = group; + if (params.collapsed) { + this.collapseGroup(group); + } + return group; + }; + + /** * Add an element to a group. * @method addToGroup * @param {String} group Group, or ID of the group, to add the element to. * @param {Element} el Element to add to the group. - */_jpi.prototype.addToGroup=function(group,el,doNotFireEvent){var _one=function(_el){var id=this.getId(_el);this.manage(id,_el);this.getGroupManager().addToGroup(group,_el,doNotFireEvent);}.bind(this);if(Array.isArray(el)){for(var i=0;iposition} - */_jpi.prototype.removeGroup=function(group,deleteMembers,manipulateDOM,doNotFireEvent){return this.getGroupManager().removeGroup(group,deleteMembers,manipulateDOM,doNotFireEvent);};/** + */ + _jpi.prototype.removeGroup = function(group, deleteMembers, manipulateDOM, doNotFireEvent) { + return this.getGroupManager().removeGroup(group, deleteMembers, manipulateDOM, doNotFireEvent); + }; + + /** * Remove all groups, and optionally remove their members from the jsPlumb instance. * @method removeAllGroup * @param {Boolean} [deleteMembers=false] If true, group members will be removed along with the groups. Otherwise they will * just be 'orphaned' (returned to the main container). - */_jpi.prototype.removeAllGroups=function(deleteMembers,manipulateDOM,doNotFireEvent){this.getGroupManager().removeAllGroups(deleteMembers,manipulateDOM,doNotFireEvent);};/** + */ + _jpi.prototype.removeAllGroups = function(deleteMembers, manipulateDOM, doNotFireEvent) { + this.getGroupManager().removeAllGroups(deleteMembers, manipulateDOM, doNotFireEvent); + }; + + /** * Get a Group * @method getGroup * @param {String} groupId ID of the group to get * @return {Group} Group with the given ID, null if not found. - */_jpi.prototype.getGroup=function(groupId){return this.getGroupManager().getGroup(groupId);};/** + */ + _jpi.prototype.getGroup = function(groupId) { + return this.getGroupManager().getGroup(groupId); + }; + + /** * Gets all the Groups managed by the jsPlumb instance. * @returns {Group[]} List of Groups. Empty if none. - */_jpi.prototype.getGroups=function(){return this.getGroupManager().getGroups();};/** + */ + _jpi.prototype.getGroups = function() { + return this.getGroupManager().getGroups(); + }; + + /** * Expands a group element. jsPlumb doesn't do "everything" for you here, because what it means to expand a Group * will vary from application to application. jsPlumb does these things: * @@ -2005,7 +13610,12 @@ function _unbindDragHandlers(_el){if(!_el._katavorioDrag){return;}if(prune||orph * * @method expandGroup * @param {String|Group} group Group to expand, or ID of Group to expand. - */_jpi.prototype.expandGroup=function(group){this.getGroupManager().expandGroup(group);};/** + */ + _jpi.prototype.expandGroup = function(group) { + this.getGroupManager().expandGroup(group); + }; + + /** * Collapses a group element. jsPlumb doesn't do "everything" for you here, because what it means to collapse a Group * will vary from application to application. jsPlumb does these things: * @@ -2018,20 +13628,76 @@ function _unbindDragHandlers(_el){if(!_el._katavorioDrag){return;}if(prune||orph * * @method expandGroup * @param {String|Group} group Group to expand, or ID of Group to expand. - */_jpi.prototype.collapseGroup=function(groupId){this.getGroupManager().collapseGroup(groupId);};_jpi.prototype.repaintGroup=function(group){this.getGroupManager().repaintGroup(group);};/** + */ + _jpi.prototype.collapseGroup = function(groupId) { + this.getGroupManager().collapseGroup(groupId); + }; + + + _jpi.prototype.repaintGroup = function(group) { + this.getGroupManager().repaintGroup(group); + }; + + /** * Collapses or expands a group element depending on its current state. See notes in the collapseGroup and expandGroup method. * * @method toggleGroup * @param {String|Group} group Group to expand/collapse, or ID of Group to expand/collapse. - */_jpi.prototype.toggleGroup=function(group){group=this.getGroupManager().getGroup(group);if(group!=null){this.getGroupManager()[group.collapsed?"expandGroup":"collapseGroup"](group);}};// -// lazy init a group manager for the given jsplumb instance. -// -_jpi.prototype.getGroupManager=function(){var mgr=this[GROUP_MANAGER];if(mgr==null){mgr=this[GROUP_MANAGER]=new GroupManager(this);}return mgr;};_jpi.prototype.removeGroupManager=function(){delete this[GROUP_MANAGER];};/** + */ + _jpi.prototype.toggleGroup = function(group) { + group = this.getGroupManager().getGroup(group); + if (group != null) { + this.getGroupManager()[group.collapsed ? "expandGroup" : "collapseGroup"](group); + } + }; + + // + // lazy init a group manager for the given jsplumb instance. + // + _jpi.prototype.getGroupManager = function() { + var mgr = this[GROUP_MANAGER]; + if (mgr == null) { + mgr = this[GROUP_MANAGER] = new GroupManager(this); + } + return mgr; + }; + + _jpi.prototype.removeGroupManager = function() { + delete this[GROUP_MANAGER]; + }; + + /** * Gets the Group that the given element belongs to, null if none. * @method getGroupFor * @param {String|Element} el Element, or element ID. * @returns {Group} A Group, if found, or null. - */_jpi.prototype.getGroupFor=function(el){el=this.getElement(el);if(el){var c=this.getContainer();var abort=false,g=null,child=null;while(!abort){if(el==null||el===c){abort=true;}else{if(el[GROUP]){g=el[GROUP];child=el;abort=true;}else{el=el.parentNode;}}}return g;}};}).call(typeof window!=='undefined'?window:this);/* + */ + _jpi.prototype.getGroupFor = function(el) { + el = this.getElement(el); + if (el) { + var c = this.getContainer(); + var abort = false, g = null, child = null; + while (!abort) { + if (el == null || el === c) { + abort = true; + } else { + if (el[GROUP]) { + g = el[GROUP]; + child = el; + abort = true; + } else { + el = el.parentNode; + } + } + } + return g; + } + }; + +}).call(typeof window !== 'undefined' ? window : this); + + +/* * This file contains the 'flowchart' connectors, consisting of vertical and horizontal line segments. * * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) @@ -2040,34 +13706,366 @@ _jpi.prototype.getGroupManager=function(){var mgr=this[GROUP_MANAGER];if(mgr==nu * https://github.com/jsplumb/jsplumb * * Dual licensed under the MIT and GPL2 licenses. - */;(function(){"use strict";var root=this,_jp=root.jsPlumb,_ju=root.jsPlumbUtil;var STRAIGHT="Straight";var ARC="Arc";var Flowchart=function Flowchart(params){this.type="Flowchart";params=params||{};params.stub=params.stub==null?30:params.stub;var segments,_super=_jp.Connectors.AbstractConnector.apply(this,arguments),midpoint=params.midpoint==null||isNaN(params.midpoint)?0.5:params.midpoint,alwaysRespectStubs=params.alwaysRespectStubs===true,lastx=null,lasty=null,lastOrientation,cornerRadius=params.cornerRadius!=null?params.cornerRadius:0,// TODO now common between this and AbstractBezierEditor; refactor into superclass? -loopbackRadius=params.loopbackRadius||25,isLoopbackCurrently=false,sgn=function sgn(n){return n<0?-1:n===0?0:1;},segmentDirections=function segmentDirections(segment){return[sgn(segment[2]-segment[0]),sgn(segment[3]-segment[1])];},/** + */ +; +(function () { + + "use strict"; + var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil; + var STRAIGHT = "Straight"; + var ARC = "Arc"; + + var Flowchart = function (params) { + this.type = "Flowchart"; + params = params || {}; + params.stub = params.stub == null ? 30 : params.stub; + var segments, + _super = _jp.Connectors.AbstractConnector.apply(this, arguments), + midpoint = params.midpoint == null || isNaN(params.midpoint) ? 0.5 : params.midpoint, + alwaysRespectStubs = params.alwaysRespectStubs === true, + lastx = null, lasty = null, lastOrientation, + cornerRadius = params.cornerRadius != null ? params.cornerRadius : 0, + + // TODO now common between this and AbstractBezierEditor; refactor into superclass? + loopbackRadius = params.loopbackRadius || 25, + isLoopbackCurrently = false, + + sgn = function (n) { + return n < 0 ? -1 : n === 0 ? 0 : 1; + }, + segmentDirections = function(segment) { + return [ + sgn( segment[2] - segment[0] ), + sgn( segment[3] - segment[1] ) + ]; + }, + /** * helper method to add a segment. - */addSegment=function addSegment(segments,x,y,paintInfo){if(lastx===x&&lasty===y){return;}var lx=lastx==null?paintInfo.sx:lastx,ly=lasty==null?paintInfo.sy:lasty,o=lx===x?"v":"h";lastx=x;lasty=y;segments.push([lx,ly,x,y,o]);},segLength=function segLength(s){return Math.sqrt(Math.pow(s[0]-s[2],2)+Math.pow(s[1]-s[3],2));},_cloneArray=function _cloneArray(a){var _a=[];_a.push.apply(_a,a);return _a;},writeSegments=function writeSegments(conn,segments,paintInfo){var current=null,next,currentDirection,nextDirection;for(var i=0;i0&¤t[4]!==next[4]){var minSegLength=Math.min(segLength(current),segLength(next));var radiusToUse=Math.min(cornerRadius,minSegLength/2);current[2]-=currentDirection[0]*radiusToUse;current[3]-=currentDirection[1]*radiusToUse;next[0]+=nextDirection[0]*radiusToUse;next[1]+=nextDirection[1]*radiusToUse;var ac=currentDirection[1]===nextDirection[0]&&nextDirection[0]===1||currentDirection[1]===nextDirection[0]&&nextDirection[0]===0&¤tDirection[0]!==nextDirection[1]||currentDirection[1]===nextDirection[0]&&nextDirection[0]===-1,sgny=next[1]>current[3]?1:-1,sgnx=next[0]>current[2]?1:-1,sgnEqual=sgny===sgnx,cx=sgnEqual&&ac||!sgnEqual&&!ac?next[0]:current[2],cy=sgnEqual&&ac||!sgnEqual&&!ac?current[3]:next[1];_super.addSegment(conn,STRAIGHT,{x1:current[0],y1:current[1],x2:current[2],y2:current[3]});_super.addSegment(conn,ARC,{r:radiusToUse,x1:current[2],y1:current[3],x2:next[0],y2:next[1],cx:cx,cy:cy,ac:ac});}else{// dx + dy are used to adjust for line width. -var dx=current[2]===current[0]?0:current[2]>current[0]?paintInfo.lw/2:-(paintInfo.lw/2),dy=current[3]===current[1]?0:current[3]>current[1]?paintInfo.lw/2:-(paintInfo.lw/2);_super.addSegment(conn,STRAIGHT,{x1:current[0]-dx,y1:current[1]-dy,x2:current[2]+dx,y2:current[3]+dy});}current=next;}if(next!=null){// last segment -_super.addSegment(conn,STRAIGHT,{x1:next[0],y1:next[1],x2:next[2],y2:next[3]});}};this.midpoint=midpoint;this._compute=function(paintInfo,params){segments=[];lastx=null;lasty=null;lastOrientation=null;var commonStubCalculator=function commonStubCalculator(){return[paintInfo.startStubX,paintInfo.startStubY,paintInfo.endStubX,paintInfo.endStubY];},stubCalculators={perpendicular:commonStubCalculator,orthogonal:commonStubCalculator,opposite:function opposite(axis){var pi=paintInfo,idx=axis==="x"?0:1,areInProximity={"x":function x(){return pi.so[idx]===1&&(pi.startStubX>pi.endStubX&&pi.tx>pi.startStubX||pi.sx>pi.endStubX&&pi.tx>pi.sx)||pi.so[idx]===-1&&(pi.startStubXpi.endStubY&&pi.ty>pi.startStubY||pi.sy>pi.endStubY&&pi.ty>pi.sy)||pi.so[idx]===-1&&(pi.startStubYotherStubs[axis][0],stub1=stubs[axis][_so][0],stub2=stubs[axis][_so][1],segmentIndexes=sis[axis][_so][_to];if(pi.segment===segmentIndexes[3]||pi.segment===segmentIndexes[2]&&otherFlipped){return midLines[axis];}else if(pi.segment===segmentIndexes[2]&&stub2=stub1||pi.segment===segmentIndexes[1]&&!otherFlipped){return startToMidToEnd[axis];}else if(pi.segment===segmentIndexes[0]||pi.segment===segmentIndexes[1]&&otherFlipped){return startToEnd[axis];}},orthogonal:function orthogonal(axis,startStub,otherStartStub,endStub,otherEndStub){var pi=paintInfo,extent={"x":pi.so[0]===-1?Math.min(startStub,endStub):Math.max(startStub,endStub),"y":pi.so[1]===-1?Math.min(startStub,endStub):Math.max(startStub,endStub)}[axis];return{"x":[[extent,otherStartStub],[extent,otherEndStub],[endStub,otherEndStub]],"y":[[otherStartStub,extent],[otherEndStub,extent],[otherEndStub,endStub]]}[axis];},opposite:function opposite(axis,ss,oss,es){var pi=paintInfo,otherAxis={"x":"y","y":"x"}[axis],dim={"x":"height","y":"width"}[axis],comparator=pi["is"+axis.toUpperCase()+"GreaterThanStubTimes2"];if(params.sourceEndpoint.elementId===params.targetEndpoint.elementId){var _val=oss+(1-params.sourceEndpoint.anchor[otherAxis])*params.sourceInfo[dim]+_super.maxStub;return{"x":[[ss,_val],[es,_val]],"y":[[_val,ss],[_val,es]]}[axis];}else if(!comparator||pi.so[idx]===1&&ss>es||pi.so[idx]===-1&&sses){return{"x":[[midx,pi.sy],[midx,pi.ty]],"y":[[pi.sx,midy],[pi.tx,midy]]}[axis];}}};// compute the rest of the line -var p=lineCalculators[paintInfo.anchorOrientation](paintInfo.sourceAxis,ss,oss,es,oes);if(p){for(var i=0;i 0 && current[4] !== next[4]) { + + var minSegLength = Math.min(segLength(current), segLength(next)); + var radiusToUse = Math.min(cornerRadius, minSegLength / 2); + + current[2] -= currentDirection[0] * radiusToUse; + current[3] -= currentDirection[1] * radiusToUse; + next[0] += nextDirection[0] * radiusToUse; + next[1] += nextDirection[1] * radiusToUse; + + var ac = (currentDirection[1] === nextDirection[0] && nextDirection[0] === 1) || + ((currentDirection[1] === nextDirection[0] && nextDirection[0] === 0) && currentDirection[0] !== nextDirection[1]) || + (currentDirection[1] === nextDirection[0] && nextDirection[0] === -1), + sgny = next[1] > current[3] ? 1 : -1, + sgnx = next[0] > current[2] ? 1 : -1, + sgnEqual = sgny === sgnx, + cx = (sgnEqual && ac || (!sgnEqual && !ac)) ? next[0] : current[2], + cy = (sgnEqual && ac || (!sgnEqual && !ac)) ? current[3] : next[1]; + + _super.addSegment(conn, STRAIGHT, { + x1: current[0], y1: current[1], x2: current[2], y2: current[3] + }); + + _super.addSegment(conn, ARC, { + r: radiusToUse, + x1: current[2], + y1: current[3], + x2: next[0], + y2: next[1], + cx: cx, + cy: cy, + ac: ac + }); + } + else { + // dx + dy are used to adjust for line width. + var dx = (current[2] === current[0]) ? 0 : (current[2] > current[0]) ? (paintInfo.lw / 2) : -(paintInfo.lw / 2), + dy = (current[3] === current[1]) ? 0 : (current[3] > current[1]) ? (paintInfo.lw / 2) : -(paintInfo.lw / 2); + + _super.addSegment(conn, STRAIGHT, { + x1: current[0] - dx, y1: current[1] - dy, x2: current[2] + dx, y2: current[3] + dy + }); + } + current = next; + } + if (next != null) { + // last segment + _super.addSegment(conn, STRAIGHT, { + x1: next[0], y1: next[1], x2: next[2], y2: next[3] + }); + } + }; + + this.midpoint = midpoint; + + this._compute = function (paintInfo, params) { + + segments = []; + lastx = null; + lasty = null; + lastOrientation = null; + + var commonStubCalculator = function () { + return [paintInfo.startStubX, paintInfo.startStubY, paintInfo.endStubX, paintInfo.endStubY]; + }, + stubCalculators = { + perpendicular: commonStubCalculator, + orthogonal: commonStubCalculator, + opposite: function (axis) { + var pi = paintInfo, + idx = axis === "x" ? 0 : 1, + areInProximity = { + "x": function () { + return ( (pi.so[idx] === 1 && ( + ( (pi.startStubX > pi.endStubX) && (pi.tx > pi.startStubX) ) || + ( (pi.sx > pi.endStubX) && (pi.tx > pi.sx))))) || + + ( (pi.so[idx] === -1 && ( + ( (pi.startStubX < pi.endStubX) && (pi.tx < pi.startStubX) ) || + ( (pi.sx < pi.endStubX) && (pi.tx < pi.sx))))); + }, + "y": function () { + return ( (pi.so[idx] === 1 && ( + ( (pi.startStubY > pi.endStubY) && (pi.ty > pi.startStubY) ) || + ( (pi.sy > pi.endStubY) && (pi.ty > pi.sy))))) || + + ( (pi.so[idx] === -1 && ( + ( (pi.startStubY < pi.endStubY) && (pi.ty < pi.startStubY) ) || + ( (pi.sy < pi.endStubY) && (pi.ty < pi.sy))))); + } + }; + + if (!alwaysRespectStubs && areInProximity[axis]()) { + return { + "x": [(paintInfo.sx + paintInfo.tx) / 2, paintInfo.startStubY, (paintInfo.sx + paintInfo.tx) / 2, paintInfo.endStubY], + "y": [paintInfo.startStubX, (paintInfo.sy + paintInfo.ty) / 2, paintInfo.endStubX, (paintInfo.sy + paintInfo.ty) / 2] + }[axis]; + } + else { + return [paintInfo.startStubX, paintInfo.startStubY, paintInfo.endStubX, paintInfo.endStubY]; + } + } + }; + + // calculate Stubs. + var stubs = stubCalculators[paintInfo.anchorOrientation](paintInfo.sourceAxis), + idx = paintInfo.sourceAxis === "x" ? 0 : 1, + oidx = paintInfo.sourceAxis === "x" ? 1 : 0, + ss = stubs[idx], + oss = stubs[oidx], + es = stubs[idx + 2], + oes = stubs[oidx + 2]; + + // add the start stub segment. use stubs for loopback as it will look better, with the loop spaced + // away from the element. + addSegment(segments, stubs[0], stubs[1], paintInfo); + + // if its a loopback and we should treat it differently. + // if (false && params.sourcePos[0] === params.targetPos[0] && params.sourcePos[1] === params.targetPos[1]) { + // + // // we use loopbackRadius here, as statemachine connectors do. + // // so we go radius to the left from stubs[0], then upwards by 2*radius, to the right by 2*radius, + // // down by 2*radius, left by radius. + // addSegment(segments, stubs[0] - loopbackRadius, stubs[1], paintInfo); + // addSegment(segments, stubs[0] - loopbackRadius, stubs[1] - (2 * loopbackRadius), paintInfo); + // addSegment(segments, stubs[0] + loopbackRadius, stubs[1] - (2 * loopbackRadius), paintInfo); + // addSegment(segments, stubs[0] + loopbackRadius, stubs[1], paintInfo); + // addSegment(segments, stubs[0], stubs[1], paintInfo); + // + // } + // else { + + + var midx = paintInfo.startStubX + ((paintInfo.endStubX - paintInfo.startStubX) * midpoint), + midy = paintInfo.startStubY + ((paintInfo.endStubY - paintInfo.startStubY) * midpoint); + + var orientations = {x: [0, 1], y: [1, 0]}, + lineCalculators = { + perpendicular: function (axis) { + var pi = paintInfo, + sis = { + x: [ + [[1, 2, 3, 4], null, [2, 1, 4, 3]], + null, + [[4, 3, 2, 1], null, [3, 4, 1, 2]] + ], + y: [ + [[3, 2, 1, 4], null, [2, 3, 4, 1]], + null, + [[4, 1, 2, 3], null, [1, 4, 3, 2]] + ] + }, + stubs = { + x: [[pi.startStubX, pi.endStubX], null, [pi.endStubX, pi.startStubX]], + y: [[pi.startStubY, pi.endStubY], null, [pi.endStubY, pi.startStubY]] + }, + midLines = { + x: [[midx, pi.startStubY], [midx, pi.endStubY]], + y: [[pi.startStubX, midy], [pi.endStubX, midy]] + }, + linesToEnd = { + x: [[pi.endStubX, pi.startStubY]], + y: [[pi.startStubX, pi.endStubY]] + }, + startToEnd = { + x: [[pi.startStubX, pi.endStubY], [pi.endStubX, pi.endStubY]], + y: [[pi.endStubX, pi.startStubY], [pi.endStubX, pi.endStubY]] + }, + startToMidToEnd = { + x: [[pi.startStubX, midy], [pi.endStubX, midy], [pi.endStubX, pi.endStubY]], + y: [[midx, pi.startStubY], [midx, pi.endStubY], [pi.endStubX, pi.endStubY]] + }, + otherStubs = { + x: [pi.startStubY, pi.endStubY], + y: [pi.startStubX, pi.endStubX] + }, + soIdx = orientations[axis][0], toIdx = orientations[axis][1], + _so = pi.so[soIdx] + 1, + _to = pi.to[toIdx] + 1, + otherFlipped = (pi.to[toIdx] === -1 && (otherStubs[axis][1] < otherStubs[axis][0])) || (pi.to[toIdx] === 1 && (otherStubs[axis][1] > otherStubs[axis][0])), + stub1 = stubs[axis][_so][0], + stub2 = stubs[axis][_so][1], + segmentIndexes = sis[axis][_so][_to]; + + if (pi.segment === segmentIndexes[3] || (pi.segment === segmentIndexes[2] && otherFlipped)) { + return midLines[axis]; + } + else if (pi.segment === segmentIndexes[2] && stub2 < stub1) { + return linesToEnd[axis]; + } + else if ((pi.segment === segmentIndexes[2] && stub2 >= stub1) || (pi.segment === segmentIndexes[1] && !otherFlipped)) { + return startToMidToEnd[axis]; + } + else if (pi.segment === segmentIndexes[0] || (pi.segment === segmentIndexes[1] && otherFlipped)) { + return startToEnd[axis]; + } + }, + orthogonal: function (axis, startStub, otherStartStub, endStub, otherEndStub) { + var pi = paintInfo, + extent = { + "x": pi.so[0] === -1 ? Math.min(startStub, endStub) : Math.max(startStub, endStub), + "y": pi.so[1] === -1 ? Math.min(startStub, endStub) : Math.max(startStub, endStub) + }[axis]; + + return { + "x": [ + [extent, otherStartStub], + [extent, otherEndStub], + [endStub, otherEndStub] + ], + "y": [ + [otherStartStub, extent], + [otherEndStub, extent], + [otherEndStub, endStub] + ] + }[axis]; + }, + opposite: function (axis, ss, oss, es) { + var pi = paintInfo, + otherAxis = {"x": "y", "y": "x"}[axis], + dim = {"x": "height", "y": "width"}[axis], + comparator = pi["is" + axis.toUpperCase() + "GreaterThanStubTimes2"]; + + if (params.sourceEndpoint.elementId === params.targetEndpoint.elementId) { + var _val = oss + ((1 - params.sourceEndpoint.anchor[otherAxis]) * params.sourceInfo[dim]) + _super.maxStub; + return { + "x": [ + [ss, _val], + [es, _val] + ], + "y": [ + [_val, ss], + [_val, es] + ] + }[axis]; + + } + else if (!comparator || (pi.so[idx] === 1 && ss > es) || (pi.so[idx] === -1 && ss < es)) { + return { + "x": [ + [ss, midy], + [es, midy] + ], + "y": [ + [midx, ss], + [midx, es] + ] + }[axis]; + } + else if ((pi.so[idx] === 1 && ss < es) || (pi.so[idx] === -1 && ss > es)) { + return { + "x": [ + [midx, pi.sy], + [midx, pi.ty] + ], + "y": [ + [pi.sx, midy], + [pi.tx, midy] + ] + }[axis]; + } + } + }; + + // compute the rest of the line + var p = lineCalculators[paintInfo.anchorOrientation](paintInfo.sourceAxis, ss, oss, es, oes); + if (p) { + for (var i = 0; i < p.length; i++) { + addSegment(segments, p[i][0], p[i][1], paintInfo); + } + } + + // line to end stub + addSegment(segments, stubs[2], stubs[3], paintInfo); + + //} + + // end stub to end (common) + addSegment(segments, paintInfo.tx, paintInfo.ty, paintInfo); + + + + // write out the segments. + writeSegments(this, segments, paintInfo); + + }; + }; + + _jp.Connectors.Flowchart = Flowchart; + _ju.extend(_jp.Connectors.Flowchart, _jp.Connectors.AbstractConnector); + +}).call(typeof window !== 'undefined' ? window : this); + +/* * This file contains the code for the Bezier connector type. * * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) @@ -2076,12 +14074,152 @@ writeSegments(this,segments,paintInfo);};};_jp.Connectors.Flowchart=Flowchart;_j * https://github.com/jsplumb/jsplumb * * Dual licensed under the MIT and GPL2 licenses. - */;(function(){"use strict";var root=this,_jp=root.jsPlumb,_ju=root.jsPlumbUtil;_jp.Connectors.AbstractBezierConnector=function(params){params=params||{};var showLoopback=params.showLoopback!==false,curviness=params.curviness||10,margin=params.margin||5,proximityLimit=params.proximityLimit||80,clockwise=params.orientation&¶ms.orientation==="clockwise",loopbackRadius=params.loopbackRadius||25,isLoopbackCurrently=false,_super;this._compute=function(paintInfo,p){var sp=p.sourcePos,tp=p.targetPos,_w=Math.abs(sp[0]-tp[0]),_h=Math.abs(sp[1]-tp[1]);if(!showLoopback||p.sourceEndpoint.elementId!==p.targetEndpoint.elementId){isLoopbackCurrently=false;this._computeBezier(paintInfo,p,sp,tp,_w,_h);}else{isLoopbackCurrently=true;// a loopback connector. draw an arc from one anchor to the other. -var x1=p.sourcePos[0],y1=p.sourcePos[1]-margin,cx=x1,cy=y1-loopbackRadius,// canvas sizing stuff, to ensure the whole painted area is visible. -_x=cx-loopbackRadius,_y=cy-loopbackRadius;_w=2*loopbackRadius;_h=2*loopbackRadius;paintInfo.points[0]=_x;paintInfo.points[1]=_y;paintInfo.points[2]=_w;paintInfo.points[3]=_h;// ADD AN ARC SEGMENT. -_super.addSegment(this,"Arc",{loopback:true,x1:x1-_x+4,y1:y1-_y,startAngle:0,endAngle:2*Math.PI,r:loopbackRadius,ac:!clockwise,x2:x1-_x-4,y2:y1-_y,cx:cx-_x,cy:cy-_y});}};_super=_jp.Connectors.AbstractConnector.apply(this,arguments);return _super;};_ju.extend(_jp.Connectors.AbstractBezierConnector,_jp.Connectors.AbstractConnector);var Bezier=function Bezier(params){params=params||{};this.type="Bezier";var _super=_jp.Connectors.AbstractBezierConnector.apply(this,arguments),majorAnchor=params.curviness||150,minorAnchor=10;this.getCurviness=function(){return majorAnchor;};this._findControlPoint=function(point,sourceAnchorPosition,targetAnchorPosition,sourceEndpoint,targetEndpoint,soo,too){// determine if the two anchors are perpendicular to each other in their orientation. we swap the control -// points around if so (code could be tightened up) -var perpendicular=soo[0]!==too[0]||soo[1]===too[1],p=[];if(!perpendicular){if(soo[0]===0){p.push(sourceAnchorPosition[0]=y1){return 3;}return 4;},// the control point we will use depends on the faces to which each end of the connection is assigned, specifically whether or not the -// two faces are parallel or perpendicular. if they are parallel then the control point lies on the midpoint of the axis in which they -// are parellel and varies only in the other axis; this variation is proportional to the distance that the anchor points lie from the -// center of that face. if the two faces are perpendicular then the control point is at some distance from both the midpoints; the amount and -// direction are dependent on the orientation of the two elements. 'seg', passed in to this method, tells you which segment the target element -// lies in with respect to the source: 1 is top right, 2 is bottom right, 3 is bottom left, 4 is top left. -// -// sourcePos and targetPos are arrays of info about where on the source and target each anchor is located. their contents are: -// -// 0 - absolute x -// 1 - absolute y -// 2 - proportional x in element (0 is left edge, 1 is right edge) -// 3 - proportional y in element (0 is top edge, 1 is bottom edge) -// -_findControlPoint=function _findControlPoint(midx,midy,segment,sourceEdge,targetEdge,dx,dy,distance,proximityLimit){// TODO (maybe) -// - if anchor pos is 0.5, make the control point take into account the relative position of the elements. -if(distance<=proximityLimit){return[midx,midy];}if(segment===1){if(sourceEdge[3]<=0&&targetEdge[3]>=1){return[midx+(sourceEdge[2]<0.5?-1*dx:dx),midy];}else if(sourceEdge[2]>=1&&targetEdge[2]<=0){return[midx,midy+(sourceEdge[3]<0.5?-1*dy:dy)];}else{return[midx+-1*dx,midy+-1*dy];}}else if(segment===2){if(sourceEdge[3]>=1&&targetEdge[3]<=0){return[midx+(sourceEdge[2]<0.5?-1*dx:dx),midy];}else if(sourceEdge[2]>=1&&targetEdge[2]<=0){return[midx,midy+(sourceEdge[3]<0.5?-1*dy:dy)];}else{return[midx+dx,midy+-1*dy];}}else if(segment===3){if(sourceEdge[3]>=1&&targetEdge[3]<=0){return[midx+(sourceEdge[2]<0.5?-1*dx:dx),midy];}else if(sourceEdge[2]<=0&&targetEdge[2]>=1){return[midx,midy+(sourceEdge[3]<0.5?-1*dy:dy)];}else{return[midx+-1*dx,midy+-1*dy];}}else if(segment===4){if(sourceEdge[3]<=0&&targetEdge[3]>=1){return[midx+(sourceEdge[2]<0.5?-1*dx:dx),midy];}else if(sourceEdge[2]<=0&&targetEdge[2]>=1){return[midx,midy+(sourceEdge[3]<0.5?-1*dy:dy)];}else{return[midx+dx,midy+-1*dy];}}};var StateMachine=function StateMachine(params){params=params||{};this.type="StateMachine";var _super=_jp.Connectors.AbstractBezierConnector.apply(this,arguments),curviness=params.curviness||10,margin=params.margin||5,proximityLimit=params.proximityLimit||80,clockwise=params.orientation&¶ms.orientation==="clockwise",_controlPoint;this._computeBezier=function(paintInfo,params,sp,tp,w,h){var _sx=params.sourcePos[0]= y1) { + return 3; + } + return 4; + }, + + // the control point we will use depends on the faces to which each end of the connection is assigned, specifically whether or not the + // two faces are parallel or perpendicular. if they are parallel then the control point lies on the midpoint of the axis in which they + // are parellel and varies only in the other axis; this variation is proportional to the distance that the anchor points lie from the + // center of that face. if the two faces are perpendicular then the control point is at some distance from both the midpoints; the amount and + // direction are dependent on the orientation of the two elements. 'seg', passed in to this method, tells you which segment the target element + // lies in with respect to the source: 1 is top right, 2 is bottom right, 3 is bottom left, 4 is top left. + // + // sourcePos and targetPos are arrays of info about where on the source and target each anchor is located. their contents are: + // + // 0 - absolute x + // 1 - absolute y + // 2 - proportional x in element (0 is left edge, 1 is right edge) + // 3 - proportional y in element (0 is top edge, 1 is bottom edge) + // + _findControlPoint = function (midx, midy, segment, sourceEdge, targetEdge, dx, dy, distance, proximityLimit) { + // TODO (maybe) + // - if anchor pos is 0.5, make the control point take into account the relative position of the elements. + if (distance <= proximityLimit) { + return [midx, midy]; + } + + if (segment === 1) { + if (sourceEdge[3] <= 0 && targetEdge[3] >= 1) { + return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ]; + } + else if (sourceEdge[2] >= 1 && targetEdge[2] <= 0) { + return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ]; + } + else { + return [ midx + (-1 * dx) , midy + (-1 * dy) ]; + } + } + else if (segment === 2) { + if (sourceEdge[3] >= 1 && targetEdge[3] <= 0) { + return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ]; + } + else if (sourceEdge[2] >= 1 && targetEdge[2] <= 0) { + return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ]; + } + else { + return [ midx + dx, midy + (-1 * dy) ]; + } + } + else if (segment === 3) { + if (sourceEdge[3] >= 1 && targetEdge[3] <= 0) { + return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ]; + } + else if (sourceEdge[2] <= 0 && targetEdge[2] >= 1) { + return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ]; + } + else { + return [ midx + (-1 * dx) , midy + (-1 * dy) ]; + } + } + else if (segment === 4) { + if (sourceEdge[3] <= 0 && targetEdge[3] >= 1) { + return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ]; + } + else if (sourceEdge[2] <= 0 && targetEdge[2] >= 1) { + return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ]; + } + else { + return [ midx + dx , midy + (-1 * dy) ]; + } + } + + }; + + var StateMachine = function (params) { + params = params || {}; + this.type = "StateMachine"; + + var _super = _jp.Connectors.AbstractBezierConnector.apply(this, arguments), + curviness = params.curviness || 10, + margin = params.margin || 5, + proximityLimit = params.proximityLimit || 80, + clockwise = params.orientation && params.orientation === "clockwise", + _controlPoint; + + this._computeBezier = function(paintInfo, params, sp, tp, w, h) { + var _sx = params.sourcePos[0] < params.targetPos[0] ? 0 : w, + _sy = params.sourcePos[1] < params.targetPos[1] ? 0 : h, + _tx = params.sourcePos[0] < params.targetPos[0] ? w : 0, + _ty = params.sourcePos[1] < params.targetPos[1] ? h : 0; + + // now adjust for the margin + if (params.sourcePos[2] === 0) { + _sx -= margin; + } + if (params.sourcePos[2] === 1) { + _sx += margin; + } + if (params.sourcePos[3] === 0) { + _sy -= margin; + } + if (params.sourcePos[3] === 1) { + _sy += margin; + } + if (params.targetPos[2] === 0) { + _tx -= margin; + } + if (params.targetPos[2] === 1) { + _tx += margin; + } + if (params.targetPos[3] === 0) { + _ty -= margin; + } + if (params.targetPos[3] === 1) { + _ty += margin; + } + + // + // these connectors are quadratic bezier curves, having a single control point. if both anchors + // are located at 0.5 on their respective faces, the control point is set to the midpoint and you + // get a straight line. this is also the case if the two anchors are within 'proximityLimit', since + // it seems to make good aesthetic sense to do that. outside of that, the control point is positioned + // at 'curviness' pixels away along the normal to the straight line connecting the two anchors. + // + // there may be two improvements to this. firstly, we might actually support the notion of avoiding nodes + // in the UI, or at least making a good effort at doing so. if a connection would pass underneath some node, + // for example, we might increase the distance the control point is away from the midpoint in a bid to + // steer it around that node. this will work within limits, but i think those limits would also be the likely + // limits for, once again, aesthetic good sense in the layout of a chart using these connectors. + // + // the second possible change is actually two possible changes: firstly, it is possible we should gradually + // decrease the 'curviness' as the distance between the anchors decreases; start tailing it off to 0 at some + // point (which should be configurable). secondly, we might slightly increase the 'curviness' for connectors + // with respect to how far their anchor is from the center of its respective face. this could either look cool, + // or stupid, and may indeed work only in a way that is so subtle as to have been a waste of time. + // + + var _midx = (_sx + _tx) / 2, + _midy = (_sy + _ty) / 2, + segment = _segment(_sx, _sy, _tx, _ty), + distance = Math.sqrt(Math.pow(_tx - _sx, 2) + Math.pow(_ty - _sy, 2)), + cp1x, cp2x, cp1y, cp2y; + + + // calculate the control point. this code will be where we'll put in a rudimentary element avoidance scheme; it + // will work by extending the control point to force the curve to be, um, curvier. + _controlPoint = _findControlPoint(_midx, + _midy, + segment, + params.sourcePos, + params.targetPos, + curviness, curviness, + distance, + proximityLimit); + + cp1x = _controlPoint[0]; + cp2x = _controlPoint[0]; + cp1y = _controlPoint[1]; + cp2y = _controlPoint[1]; + + _super.addSegment(this, "Bezier", { + x1: _tx, y1: _ty, x2: _sx, y2: _sy, + cp1x: cp1x, cp1y: cp1y, + cp2x: cp2x, cp2y: cp2y + }); + }; + }; + + _jp.Connectors.StateMachine = StateMachine; + _ju.extend(StateMachine, _jp.Connectors.AbstractBezierConnector); + +}).call(typeof window !== 'undefined' ? window : this); + +/* * This file contains the 'flowchart' connectors, consisting of vertical and horizontal line segments. * * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) @@ -2137,7 +14424,31 @@ _controlPoint=_findControlPoint(_midx,_midy,segment,params.sourcePos,params.targ * https://github.com/jsplumb/jsplumb * * Dual licensed under the MIT and GPL2 licenses. - */;(function(){"use strict";var root=this,_jp=root.jsPlumb,_ju=root.jsPlumbUtil;var STRAIGHT="Straight";var Straight=function Straight(params){this.type=STRAIGHT;var _super=_jp.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(paintInfo,_){_super.addSegment(this,STRAIGHT,{x1:paintInfo.sx,y1:paintInfo.sy,x2:paintInfo.startStubX,y2:paintInfo.startStubY});_super.addSegment(this,STRAIGHT,{x1:paintInfo.startStubX,y1:paintInfo.startStubY,x2:paintInfo.endStubX,y2:paintInfo.endStubY});_super.addSegment(this,STRAIGHT,{x1:paintInfo.endStubX,y1:paintInfo.endStubY,x2:paintInfo.tx,y2:paintInfo.ty});};};_jp.Connectors.Straight=Straight;_ju.extend(Straight,_jp.Connectors.AbstractConnector);}).call(typeof window!=='undefined'?window:this);/* + */ +; +(function () { + + "use strict"; + var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil; + var STRAIGHT = "Straight"; + + var Straight = function (params) { + this.type = STRAIGHT; + var _super = _jp.Connectors.AbstractConnector.apply(this, arguments); + + this._compute = function (paintInfo, _) { + _super.addSegment(this, STRAIGHT, {x1: paintInfo.sx, y1: paintInfo.sy, x2: paintInfo.startStubX, y2: paintInfo.startStubY}); + _super.addSegment(this, STRAIGHT, {x1: paintInfo.startStubX, y1: paintInfo.startStubY, x2: paintInfo.endStubX, y2: paintInfo.endStubY}); + _super.addSegment(this, STRAIGHT, {x1: paintInfo.endStubX, y1: paintInfo.endStubY, x2: paintInfo.tx, y2: paintInfo.ty}); + }; + }; + + _jp.Connectors.Straight = Straight; + _ju.extend(Straight, _jp.Connectors.AbstractConnector); + +}).call(typeof window !== 'undefined' ? window : this); + +/* * This file contains the SVG renderers. * * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) @@ -2146,57 +14457,624 @@ _controlPoint=_findControlPoint(_midx,_midy,segment,params.sourcePos,params.targ * https://github.com/jsplumb/jsplumb * * Dual licensed under the MIT and GPL2 licenses. - */;(function(){// ************************** SVG utility methods ******************************************** -"use strict";var root=this,_jp=root.jsPlumb,_ju=root.jsPlumbUtil;var svgAttributeMap={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},STROKE_DASHARRAY="stroke-dasharray",DASHSTYLE="dashstyle",LINEAR_GRADIENT="linearGradient",RADIAL_GRADIENT="radialGradient",DEFS="defs",FILL="fill",STOP="stop",STROKE="stroke",STROKE_WIDTH="stroke-width",STYLE="style",NONE="none",JSPLUMB_GRADIENT="jsplumb_gradient_",LINE_WIDTH="strokeWidth",ns={svg:"http://www.w3.org/2000/svg"},_attr=function _attr(node,attributes){for(var i in attributes){node.setAttribute(i,""+attributes[i]);}},_node=function _node(name,attributes){attributes=attributes||{};attributes.version="1.1";attributes.xmlns=ns.svg;return _jp.createElementNS(ns.svg,name,null,null,attributes);},_pos=function _pos(d){return"position:absolute;left:"+d[0]+"px;top:"+d[1]+"px";},_clearGradient=function _clearGradient(parent){var els=parent.querySelectorAll(" defs,linearGradient,radialGradient");for(var i=0;iidx){svg.insertBefore(path,svg.childNodes[idx]);}else{svg.appendChild(path);}};/** + */ +; +(function () { + +// ************************** SVG utility methods ******************************************** + + "use strict"; + var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil; + + var svgAttributeMap = { + "stroke-linejoin": "stroke-linejoin", + "stroke-dashoffset": "stroke-dashoffset", + "stroke-linecap": "stroke-linecap" + }, + STROKE_DASHARRAY = "stroke-dasharray", + DASHSTYLE = "dashstyle", + LINEAR_GRADIENT = "linearGradient", + RADIAL_GRADIENT = "radialGradient", + DEFS = "defs", + FILL = "fill", + STOP = "stop", + STROKE = "stroke", + STROKE_WIDTH = "stroke-width", + STYLE = "style", + NONE = "none", + JSPLUMB_GRADIENT = "jsplumb_gradient_", + LINE_WIDTH = "strokeWidth", + ns = { + svg: "http://www.w3.org/2000/svg" + }, + _attr = function (node, attributes) { + for (var i in attributes) { + node.setAttribute(i, "" + attributes[i]); + } + }, + _node = function (name, attributes) { + attributes = attributes || {}; + attributes.version = "1.1"; + attributes.xmlns = ns.svg; + return _jp.createElementNS(ns.svg, name, null, null, attributes); + }, + _pos = function (d) { + return "position:absolute;left:" + d[0] + "px;top:" + d[1] + "px"; + }, + _clearGradient = function (parent) { + var els = parent.querySelectorAll(" defs,linearGradient,radialGradient"); + for (var i = 0; i < els.length; i++) { + els[i].parentNode.removeChild(els[i]); + } + }, + _updateGradient = function (parent, node, style, dimensions, uiComponent) { + var id = JSPLUMB_GRADIENT + uiComponent._jsPlumb.instance.idstamp(); + // first clear out any existing gradient + _clearGradient(parent); + // this checks for an 'offset' property in the gradient, and in the absence of it, assumes + // we want a linear gradient. if it's there, we create a radial gradient. + // it is possible that a more explicit means of defining the gradient type would be + // better. relying on 'offset' means that we can never have a radial gradient that uses + // some default offset, for instance. + // issue 244 suggested the 'gradientUnits' attribute; without this, straight/flowchart connectors with gradients would + // not show gradients when the line was perfectly horizontal or vertical. + var g; + if (!style.gradient.offset) { + g = _node(LINEAR_GRADIENT, {id: id, gradientUnits: "userSpaceOnUse"}); + } + else { + g = _node(RADIAL_GRADIENT, { id: id }); + } + + var defs = _node(DEFS); + parent.appendChild(defs); + defs.appendChild(g); + + // the svg radial gradient seems to treat stops in the reverse + // order to how canvas does it. so we want to keep all the maths the same, but + // iterate the actual style declarations in reverse order, if the x indexes are not in order. + for (var i = 0; i < style.gradient.stops.length; i++) { + var styleToUse = uiComponent.segment === 1 || uiComponent.segment === 2 ? i : style.gradient.stops.length - 1 - i, + stopColor = style.gradient.stops[styleToUse][1], + s = _node(STOP, {"offset": Math.floor(style.gradient.stops[i][0] * 100) + "%", "stop-color": stopColor}); + + g.appendChild(s); + } + var applyGradientTo = style.stroke ? STROKE : FILL; + node.setAttribute(applyGradientTo, "url(#" + id + ")"); + }, + _applyStyles = function (parent, node, style, dimensions, uiComponent) { + + node.setAttribute(FILL, style.fill ? style.fill : NONE); + node.setAttribute(STROKE, style.stroke ? style.stroke : NONE); + + if (style.gradient) { + _updateGradient(parent, node, style, dimensions, uiComponent); + } + else { + // make sure we clear any existing gradient + _clearGradient(parent); + node.setAttribute(STYLE, ""); + } + + if (style.strokeWidth) { + node.setAttribute(STROKE_WIDTH, style.strokeWidth); + } + + // in SVG there is a stroke-dasharray attribute we can set, and its syntax looks like + // the syntax in VML but is actually kind of nasty: values are given in the pixel + // coordinate space, whereas in VML they are multiples of the width of the stroked + // line, which makes a lot more sense. for that reason, jsPlumb is supporting both + // the native svg 'stroke-dasharray' attribute, and also the 'dashstyle' concept from + // VML, which will be the preferred method. the code below this converts a dashstyle + // attribute given in terms of stroke width into a pixel representation, by using the + // stroke's lineWidth. + if (style[DASHSTYLE] && style[LINE_WIDTH] && !style[STROKE_DASHARRAY]) { + var sep = style[DASHSTYLE].indexOf(",") === -1 ? " " : ",", + parts = style[DASHSTYLE].split(sep), + styleToUse = ""; + parts.forEach(function (p) { + styleToUse += (Math.floor(p * style.strokeWidth) + sep); + }); + node.setAttribute(STROKE_DASHARRAY, styleToUse); + } + else if (style[STROKE_DASHARRAY]) { + node.setAttribute(STROKE_DASHARRAY, style[STROKE_DASHARRAY]); + } + + // extra attributes such as join type, dash offset. + for (var i in svgAttributeMap) { + if (style[i]) { + node.setAttribute(svgAttributeMap[i], style[i]); + } + } + }, + _appendAtIndex = function (svg, path, idx) { + if (svg.childNodes.length > idx) { + svg.insertBefore(path, svg.childNodes[idx]); + } + else { + svg.appendChild(path); + } + }; + + /** utility methods for other objects to use. - */_ju.svg={node:_node,attr:_attr,pos:_pos};// ************************** / SVG utility methods ******************************************** -/* + */ + _ju.svg = { + node: _node, + attr: _attr, + pos: _pos + }; + + // ************************** / SVG utility methods ******************************************** + + /* * Base class for SVG components. - */var SvgComponent=function SvgComponent(params){var pointerEventsSpec=params.pointerEventsSpec||"all",renderer={};_jp.jsPlumbUIComponent.apply(this,params.originalArgs);this.canvas=null;this.path=null;this.svg=null;this.bgCanvas=null;var clazz=params.cssClass+" "+(params.originalArgs[0].cssClass||""),svgParams={"style":"","width":0,"height":0,"pointer-events":pointerEventsSpec,"position":"absolute"};this.svg=_node("svg",svgParams);if(params.useDivWrapper){this.canvas=_jp.createElement("div",{position:"absolute"});_ju.sizeElement(this.canvas,0,0,1,1);this.canvas.className=clazz;}else{_attr(this.svg,{"class":clazz});this.canvas=this.svg;}params._jsPlumb.appendElement(this.canvas,params.originalArgs[0].parent);if(params.useDivWrapper){this.canvas.appendChild(this.svg);}var displayElements=[this.canvas];this.getDisplayElements=function(){return displayElements;};this.appendDisplayElement=function(el){displayElements.push(el);};this.paint=function(style,anchor,extents){if(style!=null){var xy=[this.x,this.y],wh=[this.w,this.h],p;if(extents!=null){if(extents.xmin<0){xy[0]+=extents.xmin;}if(extents.ymin<0){xy[1]+=extents.ymin;}wh[0]=extents.xmax+(extents.xmin<0?-extents.xmin:0);wh[1]=extents.ymax+(extents.ymin<0?-extents.ymin:0);}if(params.useDivWrapper){_ju.sizeElement(this.canvas,xy[0],xy[1],wh[0]>0?wh[0]:1,wh[1]>0?wh[1]:1);xy[0]=0;xy[1]=0;p=_pos([0,0]);}else{p=_pos([xy[0],xy[1]]);}renderer.paint.apply(this,arguments);_attr(this.svg,{"style":p,"width":wh[0]||1,"height":wh[1]||1});}};return{renderer:renderer};};_ju.extend(SvgComponent,_jp.jsPlumbUIComponent,{cleanup:function cleanup(force){if(force||this.typeId==null){if(this.canvas){this.canvas._jsPlumb=null;}if(this.svg){this.svg._jsPlumb=null;}if(this.bgCanvas){this.bgCanvas._jsPlumb=null;}if(this.canvas&&this.canvas.parentNode){this.canvas.parentNode.removeChild(this.canvas);}if(this.bgCanvas&&this.bgCanvas.parentNode){this.canvas.parentNode.removeChild(this.canvas);}this.svg=null;this.canvas=null;this.path=null;this.group=null;this._jsPlumb=null;}else{// if not a forced cleanup, just detach from DOM for now. -if(this.canvas&&this.canvas.parentNode){this.canvas.parentNode.removeChild(this.canvas);}if(this.bgCanvas&&this.bgCanvas.parentNode){this.bgCanvas.parentNode.removeChild(this.bgCanvas);}}},reattach:function reattach(instance){var c=instance.getContainer();if(this.canvas&&this.canvas.parentNode==null){c.appendChild(this.canvas);}if(this.bgCanvas&&this.bgCanvas.parentNode==null){c.appendChild(this.bgCanvas);}},setVisible:function setVisible(v){if(this.canvas){this.canvas.style.display=v?"block":"none";}}});/* + */ + var SvgComponent = function (params) { + var pointerEventsSpec = params.pointerEventsSpec || "all", renderer = {}; + + _jp.jsPlumbUIComponent.apply(this, params.originalArgs); + this.canvas = null; + this.path = null; + this.svg = null; + this.bgCanvas = null; + + var clazz = params.cssClass + " " + (params.originalArgs[0].cssClass || ""), + svgParams = { + "style": "", + "width": 0, + "height": 0, + "pointer-events": pointerEventsSpec, + "position": "absolute" + }; + + this.svg = _node("svg", svgParams); + + if (params.useDivWrapper) { + this.canvas = _jp.createElement("div", { position : "absolute" }); + _ju.sizeElement(this.canvas, 0, 0, 1, 1); + this.canvas.className = clazz; + } + else { + _attr(this.svg, { "class": clazz }); + this.canvas = this.svg; + } + + params._jsPlumb.appendElement(this.canvas, params.originalArgs[0].parent); + if (params.useDivWrapper) { + this.canvas.appendChild(this.svg); + } + + var displayElements = [ this.canvas ]; + this.getDisplayElements = function () { + return displayElements; + }; + + this.appendDisplayElement = function (el) { + displayElements.push(el); + }; + + this.paint = function (style, anchor, extents) { + if (style != null) { + + var xy = [ this.x, this.y ], wh = [ this.w, this.h ], p; + if (extents != null) { + if (extents.xmin < 0) { + xy[0] += extents.xmin; + } + if (extents.ymin < 0) { + xy[1] += extents.ymin; + } + wh[0] = extents.xmax + ((extents.xmin < 0) ? -extents.xmin : 0); + wh[1] = extents.ymax + ((extents.ymin < 0) ? -extents.ymin : 0); + } + + if (params.useDivWrapper) { + _ju.sizeElement(this.canvas, xy[0], xy[1], wh[0] > 0 ? wh[0] : 1, wh[1] > 0 ? wh[1] : 1); + xy[0] = 0; + xy[1] = 0; + p = _pos([ 0, 0 ]); + } + else { + p = _pos([ xy[0], xy[1] ]); + } + + renderer.paint.apply(this, arguments); + + _attr(this.svg, { + "style": p, + "width": wh[0] || 1, + "height": wh[1] || 1 + }); + } + }; + + return { + renderer: renderer + }; + }; + + _ju.extend(SvgComponent, _jp.jsPlumbUIComponent, { + cleanup: function (force) { + if (force || this.typeId == null) { + if (this.canvas) { + this.canvas._jsPlumb = null; + } + if (this.svg) { + this.svg._jsPlumb = null; + } + if (this.bgCanvas) { + this.bgCanvas._jsPlumb = null; + } + + if (this.canvas && this.canvas.parentNode) { + this.canvas.parentNode.removeChild(this.canvas); + } + if (this.bgCanvas && this.bgCanvas.parentNode) { + this.canvas.parentNode.removeChild(this.canvas); + } + + this.svg = null; + this.canvas = null; + this.path = null; + this.group = null; + this._jsPlumb = null; + } + else { + // if not a forced cleanup, just detach from DOM for now. + if (this.canvas && this.canvas.parentNode) { + this.canvas.parentNode.removeChild(this.canvas); + } + if (this.bgCanvas && this.bgCanvas.parentNode) { + this.bgCanvas.parentNode.removeChild(this.bgCanvas); + } + } + }, + reattach:function(instance) { + var c = instance.getContainer(); + if (this.canvas && this.canvas.parentNode == null) { + c.appendChild(this.canvas); + } + if (this.bgCanvas && this.bgCanvas.parentNode == null) { + c.appendChild(this.bgCanvas); + } + }, + setVisible: function (v) { + if (this.canvas) { + this.canvas.style.display = v ? "block" : "none"; + } + } + }); + + /* * Base class for SVG connectors. - */_jp.ConnectorRenderers.svg=function(params){var self=this,_super=SvgComponent.apply(this,[{cssClass:params._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:params._jsPlumb}]);_super.renderer.paint=function(style,anchor,extents){var segments=self.getSegments(),p="",offset=[0,0];if(extents.xmin<0){offset[0]=-extents.xmin;}if(extents.ymin<0){offset[1]=-extents.ymin;}if(segments.length>0){p=self.getPathData();var a={d:p,transform:"translate("+offset[0]+","+offset[1]+")","pointer-events":params["pointer-events"]||"visibleStroke"},outlineStyle=null,d=[self.x,self.y,self.w,self.h];// outline style. actually means drawing an svg object underneath the main one. -if(style.outlineStroke){var outlineWidth=style.outlineWidth||1,outlineStrokeWidth=style.strokeWidth+2*outlineWidth;outlineStyle=_jp.extend({},style);delete outlineStyle.gradient;outlineStyle.stroke=style.outlineStroke;outlineStyle.strokeWidth=outlineStrokeWidth;if(self.bgPath==null){self.bgPath=_node("path",a);_jp.addClass(self.bgPath,_jp.connectorOutlineClass);_appendAtIndex(self.svg,self.bgPath,0);}else{_attr(self.bgPath,a);}_applyStyles(self.svg,self.bgPath,outlineStyle,d,self);}if(self.path==null){self.path=_node("path",a);_appendAtIndex(self.svg,self.path,style.outlineStroke?1:0);}else{_attr(self.path,a);}_applyStyles(self.svg,self.path,style,d,self);}};};_ju.extend(_jp.ConnectorRenderers.svg,SvgComponent);// ******************************* svg segment renderer ***************************************************** + */ + _jp.ConnectorRenderers.svg = function (params) { + var self = this, + _super = SvgComponent.apply(this, [ + { + cssClass: params._jsPlumb.connectorClass, + originalArgs: arguments, + pointerEventsSpec: "none", + _jsPlumb: params._jsPlumb + } + ]); + + _super.renderer.paint = function (style, anchor, extents) { + + var segments = self.getSegments(), p = "", offset = [0, 0]; + if (extents.xmin < 0) { + offset[0] = -extents.xmin; + } + if (extents.ymin < 0) { + offset[1] = -extents.ymin; + } + + if (segments.length > 0) { + + p = self.getPathData(); + + var a = { + d: p, + transform: "translate(" + offset[0] + "," + offset[1] + ")", + "pointer-events": params["pointer-events"] || "visibleStroke" + }, + outlineStyle = null, + d = [self.x, self.y, self.w, self.h]; + + // outline style. actually means drawing an svg object underneath the main one. + if (style.outlineStroke) { + var outlineWidth = style.outlineWidth || 1, + outlineStrokeWidth = style.strokeWidth + (2 * outlineWidth); + outlineStyle = _jp.extend({}, style); + delete outlineStyle.gradient; + outlineStyle.stroke = style.outlineStroke; + outlineStyle.strokeWidth = outlineStrokeWidth; + + if (self.bgPath == null) { + self.bgPath = _node("path", a); + _jp.addClass(self.bgPath, _jp.connectorOutlineClass); + _appendAtIndex(self.svg, self.bgPath, 0); + } + else { + _attr(self.bgPath, a); + } + + _applyStyles(self.svg, self.bgPath, outlineStyle, d, self); + } + + if (self.path == null) { + self.path = _node("path", a); + _appendAtIndex(self.svg, self.path, style.outlineStroke ? 1 : 0); + } + else { + _attr(self.path, a); + } + + _applyStyles(self.svg, self.path, style, d, self); + } + }; + }; + _ju.extend(_jp.ConnectorRenderers.svg, SvgComponent); + +// ******************************* svg segment renderer ***************************************************** + + // ******************************* /svg segments ***************************************************** -/* + + /* * Base class for SVG endpoints. - */var SvgEndpoint=_jp.SvgEndpoint=function(params){var _super=SvgComponent.apply(this,[{cssClass:params._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:true,_jsPlumb:params._jsPlumb}]);_super.renderer.paint=function(style){var s=_jp.extend({},style);if(s.outlineStroke){s.stroke=s.outlineStroke;}if(this.node==null){this.node=this.makeNode(s);this.svg.appendChild(this.node);}else if(this.updateNode!=null){this.updateNode(this.node);}_applyStyles(this.svg,this.node,s,[this.x,this.y,this.w,this.h],this);_pos(this.node,[this.x,this.y]);}.bind(this);};_ju.extend(SvgEndpoint,SvgComponent);/* + */ + var SvgEndpoint = _jp.SvgEndpoint = function (params) { + var _super = SvgComponent.apply(this, [ + { + cssClass: params._jsPlumb.endpointClass, + originalArgs: arguments, + pointerEventsSpec: "all", + useDivWrapper: true, + _jsPlumb: params._jsPlumb + } + ]); + + _super.renderer.paint = function (style) { + var s = _jp.extend({}, style); + if (s.outlineStroke) { + s.stroke = s.outlineStroke; + } + + if (this.node == null) { + this.node = this.makeNode(s); + this.svg.appendChild(this.node); + } + else if (this.updateNode != null) { + this.updateNode(this.node); + } + _applyStyles(this.svg, this.node, s, [ this.x, this.y, this.w, this.h ], this); + _pos(this.node, [ this.x, this.y ]); + }.bind(this); + + }; + _ju.extend(SvgEndpoint, SvgComponent); + + /* * SVG Dot Endpoint - */_jp.Endpoints.svg.Dot=function(){_jp.Endpoints.Dot.apply(this,arguments);SvgEndpoint.apply(this,arguments);this.makeNode=function(style){return _node("circle",{"cx":this.w/2,"cy":this.h/2,"r":this.radius});};this.updateNode=function(node){_attr(node,{"cx":this.w/2,"cy":this.h/2,"r":this.radius});};};_ju.extend(_jp.Endpoints.svg.Dot,[_jp.Endpoints.Dot,SvgEndpoint]);/* + */ + _jp.Endpoints.svg.Dot = function () { + _jp.Endpoints.Dot.apply(this, arguments); + SvgEndpoint.apply(this, arguments); + this.makeNode = function (style) { + return _node("circle", { + "cx": this.w / 2, + "cy": this.h / 2, + "r": this.radius + }); + }; + this.updateNode = function (node) { + _attr(node, { + "cx": this.w / 2, + "cy": this.h / 2, + "r": this.radius + }); + }; + }; + _ju.extend(_jp.Endpoints.svg.Dot, [_jp.Endpoints.Dot, SvgEndpoint]); + + /* * SVG Rectangle Endpoint - */_jp.Endpoints.svg.Rectangle=function(){_jp.Endpoints.Rectangle.apply(this,arguments);SvgEndpoint.apply(this,arguments);this.makeNode=function(style){return _node("rect",{"width":this.w,"height":this.h});};this.updateNode=function(node){_attr(node,{"width":this.w,"height":this.h});};};_ju.extend(_jp.Endpoints.svg.Rectangle,[_jp.Endpoints.Rectangle,SvgEndpoint]);/* + */ + _jp.Endpoints.svg.Rectangle = function () { + _jp.Endpoints.Rectangle.apply(this, arguments); + SvgEndpoint.apply(this, arguments); + this.makeNode = function (style) { + return _node("rect", { + "width": this.w, + "height": this.h + }); + }; + this.updateNode = function (node) { + _attr(node, { + "width": this.w, + "height": this.h + }); + }; + }; + _ju.extend(_jp.Endpoints.svg.Rectangle, [_jp.Endpoints.Rectangle, SvgEndpoint]); + + /* * SVG Image Endpoint is the default image endpoint. - */_jp.Endpoints.svg.Image=_jp.Endpoints.Image;/* + */ + _jp.Endpoints.svg.Image = _jp.Endpoints.Image; + /* * Blank endpoint in svg renderer is the default Blank endpoint. - */_jp.Endpoints.svg.Blank=_jp.Endpoints.Blank;/* + */ + _jp.Endpoints.svg.Blank = _jp.Endpoints.Blank; + /* * Label overlay in svg renderer is the default Label overlay. - */_jp.Overlays.svg.Label=_jp.Overlays.Label;/* + */ + _jp.Overlays.svg.Label = _jp.Overlays.Label; + /* * Custom overlay in svg renderer is the default Custom overlay. - */_jp.Overlays.svg.Custom=_jp.Overlays.Custom;var AbstractSvgArrowOverlay=function AbstractSvgArrowOverlay(superclass,originalArgs){superclass.apply(this,originalArgs);_jp.jsPlumbUIComponent.apply(this,originalArgs);this.isAppendedAtTopLevel=false;var self=this;this.path=null;this.paint=function(params,containerExtents){// only draws on connections, not endpoints. -if(params.component.svg&&containerExtents){if(this.path==null){this.path=_node("path",{"pointer-events":"all"});params.component.svg.appendChild(this.path);if(this.elementCreated){this.elementCreated(this.path,params.component);}this.canvas=params.component.svg;// for the sake of completeness; this behaves the same as other overlays -}var clazz=originalArgs&&originalArgs.length===1?originalArgs[0].cssClass||"":"",offset=[0,0];if(containerExtents.xmin<0){offset[0]=-containerExtents.xmin;}if(containerExtents.ymin<0){offset[1]=-containerExtents.ymin;}_attr(this.path,{"d":makePath(params.d),"class":clazz,stroke:params.stroke?params.stroke:null,fill:params.fill?params.fill:null,transform:"translate("+offset[0]+","+offset[1]+")"});}};var makePath=function makePath(d){return isNaN(d.cxy.x)||isNaN(d.cxy.y)?"":"M"+d.hxy.x+","+d.hxy.y+" L"+d.tail[0].x+","+d.tail[0].y+" L"+d.cxy.x+","+d.cxy.y+" L"+d.tail[1].x+","+d.tail[1].y+" L"+d.hxy.x+","+d.hxy.y;};this.transfer=function(target){if(target.canvas&&this.path&&this.path.parentNode){this.path.parentNode.removeChild(this.path);target.canvas.appendChild(this.path);}};};var svgProtoFunctions={cleanup:function cleanup(force){if(this.path!=null){if(force){this._jsPlumb.instance.removeElement(this.path);}else{if(this.path.parentNode){this.path.parentNode.removeChild(this.path);}}}},reattach:function reattach(instance,component){if(this.path&&component.canvas){component.canvas.appendChild(this.path);}},setVisible:function setVisible(v){if(this.path!=null){this.path.style.display=v?"block":"none";}}};_ju.extend(AbstractSvgArrowOverlay,[_jp.jsPlumbUIComponent,_jp.Overlays.AbstractOverlay]);_jp.Overlays.svg.Arrow=function(){AbstractSvgArrowOverlay.apply(this,[_jp.Overlays.Arrow,arguments]);};_ju.extend(_jp.Overlays.svg.Arrow,[_jp.Overlays.Arrow,AbstractSvgArrowOverlay],svgProtoFunctions);_jp.Overlays.svg.PlainArrow=function(){AbstractSvgArrowOverlay.apply(this,[_jp.Overlays.PlainArrow,arguments]);};_ju.extend(_jp.Overlays.svg.PlainArrow,[_jp.Overlays.PlainArrow,AbstractSvgArrowOverlay],svgProtoFunctions);_jp.Overlays.svg.Diamond=function(){AbstractSvgArrowOverlay.apply(this,[_jp.Overlays.Diamond,arguments]);};_ju.extend(_jp.Overlays.svg.Diamond,[_jp.Overlays.Diamond,AbstractSvgArrowOverlay],svgProtoFunctions);// a test -_jp.Overlays.svg.GuideLines=function(){var path=null,self=this,p1_1,p1_2;_jp.Overlays.GuideLines.apply(this,arguments);this.paint=function(params,containerExtents){if(path==null){path=_node("path");params.connector.svg.appendChild(path);self.attachListeners(path,params.connector);self.attachListeners(path,self);p1_1=_node("path");params.connector.svg.appendChild(p1_1);self.attachListeners(p1_1,params.connector);self.attachListeners(p1_1,self);p1_2=_node("path");params.connector.svg.appendChild(p1_2);self.attachListeners(p1_2,params.connector);self.attachListeners(p1_2,self);}var offset=[0,0];if(containerExtents.xmin<0){offset[0]=-containerExtents.xmin;}if(containerExtents.ymin<0){offset[1]=-containerExtents.ymin;}_attr(path,{"d":makePath(params.head,params.tail),stroke:"red",fill:null,transform:"translate("+offset[0]+","+offset[1]+")"});_attr(p1_1,{"d":makePath(params.tailLine[0],params.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+offset[0]+","+offset[1]+")"});_attr(p1_2,{"d":makePath(params.headLine[0],params.headLine[1]),stroke:"green",fill:null,transform:"translate("+offset[0]+","+offset[1]+")"});};var makePath=function makePath(d1,d2){return"M "+d1.x+","+d1.y+" L"+d2.x+","+d2.y;};};_ju.extend(_jp.Overlays.svg.GuideLines,_jp.Overlays.GuideLines);}).call(typeof window!=='undefined'?window:this);/* + */ + _jp.Overlays.svg.Custom = _jp.Overlays.Custom; + + var AbstractSvgArrowOverlay = function (superclass, originalArgs) { + superclass.apply(this, originalArgs); + _jp.jsPlumbUIComponent.apply(this, originalArgs); + this.isAppendedAtTopLevel = false; + var self = this; + this.path = null; + this.paint = function (params, containerExtents) { + // only draws on connections, not endpoints. + if (params.component.svg && containerExtents) { + if (this.path == null) { + this.path = _node("path", { + "pointer-events": "all" + }); + params.component.svg.appendChild(this.path); + if (this.elementCreated) { + this.elementCreated(this.path, params.component); + } + + this.canvas = params.component.svg; // for the sake of completeness; this behaves the same as other overlays + } + var clazz = originalArgs && (originalArgs.length === 1) ? (originalArgs[0].cssClass || "") : "", + offset = [0, 0]; + + if (containerExtents.xmin < 0) { + offset[0] = -containerExtents.xmin; + } + if (containerExtents.ymin < 0) { + offset[1] = -containerExtents.ymin; + } + + _attr(this.path, { + "d": makePath(params.d), + "class": clazz, + stroke: params.stroke ? params.stroke : null, + fill: params.fill ? params.fill : null, + transform: "translate(" + offset[0] + "," + offset[1] + ")" + }); + } + }; + var makePath = function (d) { + return (isNaN(d.cxy.x) || isNaN(d.cxy.y)) ? "" : "M" + d.hxy.x + "," + d.hxy.y + + " L" + d.tail[0].x + "," + d.tail[0].y + + " L" + d.cxy.x + "," + d.cxy.y + + " L" + d.tail[1].x + "," + d.tail[1].y + + " L" + d.hxy.x + "," + d.hxy.y; + }; + this.transfer = function(target) { + if (target.canvas && this.path && this.path.parentNode) { + this.path.parentNode.removeChild(this.path); + target.canvas.appendChild(this.path); + } + }; + }; + + var svgProtoFunctions = { + cleanup : function (force) { + if (this.path != null) { + if (force) { + this._jsPlumb.instance.removeElement(this.path); + } + else { + if (this.path.parentNode) { + this.path.parentNode.removeChild(this.path); + } + } + } + }, reattach :function(instance, component) { + if (this.path && component.canvas) { + component.canvas.appendChild(this.path); + } + }, + setVisible : function (v) { + if (this.path != null) { + (this.path.style.display = (v ? "block" : "none")); + } + } + }; + + _ju.extend(AbstractSvgArrowOverlay, [_jp.jsPlumbUIComponent, _jp.Overlays.AbstractOverlay]); + + _jp.Overlays.svg.Arrow = function () { + AbstractSvgArrowOverlay.apply(this, [_jp.Overlays.Arrow, arguments]); + }; + _ju.extend(_jp.Overlays.svg.Arrow, [ _jp.Overlays.Arrow, AbstractSvgArrowOverlay ], svgProtoFunctions); + + _jp.Overlays.svg.PlainArrow = function () { + AbstractSvgArrowOverlay.apply(this, [_jp.Overlays.PlainArrow, arguments]); + }; + _ju.extend(_jp.Overlays.svg.PlainArrow, [ _jp.Overlays.PlainArrow, AbstractSvgArrowOverlay ], svgProtoFunctions); + + _jp.Overlays.svg.Diamond = function () { + AbstractSvgArrowOverlay.apply(this, [_jp.Overlays.Diamond, arguments]); + }; + _ju.extend(_jp.Overlays.svg.Diamond, [ _jp.Overlays.Diamond, AbstractSvgArrowOverlay ], svgProtoFunctions); + + // a test + _jp.Overlays.svg.GuideLines = function () { + var path = null, self = this, p1_1, p1_2; + _jp.Overlays.GuideLines.apply(this, arguments); + this.paint = function (params, containerExtents) { + if (path == null) { + path = _node("path"); + params.connector.svg.appendChild(path); + self.attachListeners(path, params.connector); + self.attachListeners(path, self); + + p1_1 = _node("path"); + params.connector.svg.appendChild(p1_1); + self.attachListeners(p1_1, params.connector); + self.attachListeners(p1_1, self); + + p1_2 = _node("path"); + params.connector.svg.appendChild(p1_2); + self.attachListeners(p1_2, params.connector); + self.attachListeners(p1_2, self); + } + + var offset = [0, 0]; + if (containerExtents.xmin < 0) { + offset[0] = -containerExtents.xmin; + } + if (containerExtents.ymin < 0) { + offset[1] = -containerExtents.ymin; + } + + _attr(path, { + "d": makePath(params.head, params.tail), + stroke: "red", + fill: null, + transform: "translate(" + offset[0] + "," + offset[1] + ")" + }); + + _attr(p1_1, { + "d": makePath(params.tailLine[0], params.tailLine[1]), + stroke: "blue", + fill: null, + transform: "translate(" + offset[0] + "," + offset[1] + ")" + }); + + _attr(p1_2, { + "d": makePath(params.headLine[0], params.headLine[1]), + stroke: "green", + fill: null, + transform: "translate(" + offset[0] + "," + offset[1] + ")" + }); + }; + + var makePath = function (d1, d2) { + return "M " + d1.x + "," + d1.y + + " L" + d2.x + "," + d2.y; + }; + }; + _ju.extend(_jp.Overlays.svg.GuideLines, _jp.Overlays.GuideLines); +}).call(typeof window !== 'undefined' ? window : this); + +/* * This file contains code used when jsPlumb is being rendered in a DOM. * * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com) @@ -2205,11 +15083,176 @@ _jp.Overlays.svg.GuideLines=function(){var path=null,self=this,p1_1,p1_2;_jp.Ove * https://github.com/jsplumb/jsplumb * * Dual licensed under the MIT and GPL2 licenses. - */;(function(){"use strict";var root=this,_jp=root.jsPlumb,_ju=root.jsPlumbUtil,_jk=root.Katavorio,_jg=root.Biltong;var _getEventManager=function _getEventManager(instance){var e=instance._mottle;if(!e){e=instance._mottle=new root.Mottle();}return e;};var _getDragManager=function _getDragManager(instance,category){category=category||"main";var key="_katavorio_"+category;var k=instance[key],e=instance.getEventManager();if(!k){k=new _jk({bind:e.on,unbind:e.off,getSize:_jp.getSize,getConstrainingRectangle:function getConstrainingRectangle(el){return[el.parentNode.scrollWidth,el.parentNode.scrollHeight];},getPosition:function getPosition(el,relativeToRoot){// if this is a nested draggable then compute the offset against its own offsetParent, otherwise -// compute against the Container's origin. see also the getUIPosition method below. -var o=instance.getOffset(el,relativeToRoot,el._katavorioDrag?el.offsetParent:null);return[o.left,o.top];},setPosition:function setPosition(el,xy){el.style.left=xy[0]+"px";el.style.top=xy[1]+"px";},addClass:_jp.addClass,removeClass:_jp.removeClass,intersects:_jg.intersects,indexOf:function indexOf(l,i){return l.indexOf(i);},scope:instance.getDefaultScope(),css:{noSelect:instance.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}});k.setZoom(instance.getZoom());instance[key]=k;instance.bind("zoom",k.setZoom);}return k;};var _dragStart=function _dragStart(params){var options=params.el._jsPlumbDragOptions;var cont=true;if(options.canDrag){cont=options.canDrag();}if(cont){this.setHoverSuspended(true);this.select({source:params.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,true);this.select({target:params.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,true);this.setConnectionBeingDragged(true);}return cont;};var _dragMove=function _dragMove(params){var ui=this.getUIPosition(arguments,this.getZoom());if(ui!=null){var o=params.el._jsPlumbDragOptions;this.draw(params.el,ui,null,true);if(o._dragging){this.addClass(params.el,"jtk-dragged");}o._dragging=true;}};var _dragStop=function _dragStop(params){var elements=params.selection,uip;var _one=function(_e){var drawResult;if(_e[1]!=null){// run the reported offset through the code that takes parent containers -// into account, to adjust if necessary (issue 554) -uip=this.getUIPosition([{el:_e[2].el,pos:[_e[1].left,_e[1].top]}]);drawResult=this.draw(_e[2].el,uip);}if(_e[0]._jsPlumbDragOptions!=null){delete _e[0]._jsPlumbDragOptions._dragging;}this.removeClass(_e[0],"jtk-dragged");this.select({source:_e[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,true);this.select({target:_e[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,true);params.e._drawResult=params.e._drawResult||{c:[],e:[],a:[]};Array.prototype.push.apply(params.e._drawResult.c,drawResult.c);Array.prototype.push.apply(params.e._drawResult.e,drawResult.e);Array.prototype.push.apply(params.e._drawResult.a,drawResult.a);this.getDragManager().dragEnded(_e[2].el);}.bind(this);for(var i=0;i0?e.touches:e.changedTouches&&e.changedTouches.length>0?e.changedTouches:e.targetTouches&&e.targetTouches.length>0?e.targetTouches:[e];};/** + */ +; +(function () { + + "use strict"; + + var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil, + _jk = root.Katavorio, _jg = root.Biltong; + + var _getEventManager = function(instance) { + var e = instance._mottle; + if (!e) { + e = instance._mottle = new root.Mottle(); + } + return e; + }; + + var _getDragManager = function (instance, category) { + + category = category || "main"; + var key = "_katavorio_" + category; + var k = instance[key], + e = instance.getEventManager(); + + if (!k) { + k = new _jk({ + bind: e.on, + unbind: e.off, + getSize: _jp.getSize, + getConstrainingRectangle:function(el) { + return [ el.parentNode.scrollWidth, el.parentNode.scrollHeight ]; + }, + getPosition: function (el, relativeToRoot) { + // if this is a nested draggable then compute the offset against its own offsetParent, otherwise + // compute against the Container's origin. see also the getUIPosition method below. + var o = instance.getOffset(el, relativeToRoot, el._katavorioDrag ? el.offsetParent : null); + return [o.left, o.top]; + }, + setPosition: function (el, xy) { + el.style.left = xy[0] + "px"; + el.style.top = xy[1] + "px"; + }, + addClass: _jp.addClass, + removeClass: _jp.removeClass, + intersects: _jg.intersects, + indexOf: function(l, i) { return l.indexOf(i); }, + scope:instance.getDefaultScope(), + css: { + noSelect: instance.dragSelectClass, + droppable: "jtk-droppable", + draggable: "jtk-draggable", + drag: "jtk-drag", + selected: "jtk-drag-selected", + active: "jtk-drag-active", + hover: "jtk-drag-hover", + ghostProxy:"jtk-ghost-proxy" + } + }); + k.setZoom(instance.getZoom()); + instance[key] = k; + instance.bind("zoom", k.setZoom); + } + return k; + }; + + var _dragStart=function(params) { + var options = params.el._jsPlumbDragOptions; + var cont = true; + if (options.canDrag) { + cont = options.canDrag(); + } + if (cont) { + this.setHoverSuspended(true); + this.select({source: params.el}).addClass(this.elementDraggingClass + " " + this.sourceElementDraggingClass, true); + this.select({target: params.el}).addClass(this.elementDraggingClass + " " + this.targetElementDraggingClass, true); + this.setConnectionBeingDragged(true); + } + return cont; + }; + var _dragMove=function(params) { + var ui = this.getUIPosition(arguments, this.getZoom()); + if (ui != null) { + var o = params.el._jsPlumbDragOptions; + this.draw(params.el, ui, null, true); + if (o._dragging) { + this.addClass(params.el, "jtk-dragged"); + } + o._dragging = true; + } + }; + var _dragStop=function(params) { + var elements = params.selection, uip; + + var _one = function (_e) { + var drawResult; + if (_e[1] != null) { + // run the reported offset through the code that takes parent containers + // into account, to adjust if necessary (issue 554) + uip = this.getUIPosition([{ + el:_e[2].el, + pos:[_e[1].left, _e[1].top] + }]); + drawResult = this.draw(_e[2].el, uip); + } + + if (_e[0]._jsPlumbDragOptions != null) { + delete _e[0]._jsPlumbDragOptions._dragging; + } + + this.removeClass(_e[0], "jtk-dragged"); + this.select({source: _e[2].el}).removeClass(this.elementDraggingClass + " " + this.sourceElementDraggingClass, true); + this.select({target: _e[2].el}).removeClass(this.elementDraggingClass + " " + this.targetElementDraggingClass, true); + + params.e._drawResult = params.e._drawResult || {c:[],e:[], a:[]}; + Array.prototype.push.apply(params.e._drawResult.c, drawResult.c); + Array.prototype.push.apply(params.e._drawResult.e, drawResult.e); + Array.prototype.push.apply(params.e._drawResult.a, drawResult.a); + + this.getDragManager().dragEnded(_e[2].el); + + }.bind(this); + + for (var i = 0; i < elements.length; i++) { + _one(elements[i]); + } + + this.setHoverSuspended(false); + this.setConnectionBeingDragged(false); + }; + + var _animProps = function (o, p) { + var _one = function (pName) { + if (p[pName] != null) { + if (_ju.isString(p[pName])) { + var m = p[pName].match(/-=/) ? -1 : 1, + v = p[pName].substring(2); + return o[pName] + (m * v); + } + else { + return p[pName]; + } + } + else { + return o[pName]; + } + }; + return [ _one("left"), _one("top") ]; + }; + + var _genLoc = function (prefix, e) { + if (e == null) { + return [ 0, 0 ]; + } + var ts = _touches(e), t = _getTouch(ts, 0); + return [t[prefix + "X"], t[prefix + "Y"]]; + }, + _pageLocation = _genLoc.bind(this, "page"), + _screenLocation = _genLoc.bind(this, "screen"), + _clientLocation = _genLoc.bind(this, "client"), + _getTouch = function (touches, idx) { + return touches.item ? touches.item(idx) : touches[idx]; + }, + _touches = function (e) { + return e.touches && e.touches.length > 0 ? e.touches : + e.changedTouches && e.changedTouches.length > 0 ? e.changedTouches : + e.targetTouches && e.targetTouches.length > 0 ? e.targetTouches : + [ e ]; + }; + + /** Manages dragging for some instance of jsPlumb. TODO instead of this being accessed directly, it should subscribe to events on the jsPlumb instance: every method @@ -2219,75 +15262,910 @@ uip=this.getUIPosition([{el:_e[2].el,pos:[_e[1].left,_e[1].top]}]);drawResult=th dedicated drag script), that does not necessarily need to be included. - */var DragManager=function DragManager(_currentInstance){var _draggables={},_dlist=[],_delements={},_elementsWithEndpoints={},// elementids mapped to the draggable to which they belong. -_draggablesForElements={};/** + */ + var DragManager = function (_currentInstance) { + var _draggables = {}, _dlist = [], _delements = {}, _elementsWithEndpoints = {}, + // elementids mapped to the draggable to which they belong. + _draggablesForElements = {}; + + /** register some element as draggable. right now the drag init stuff is done elsewhere, and it is possible that will continue to be the case. - */this.register=function(el){var id=_currentInstance.getId(el),parentOffset;if(!_draggables[id]){_draggables[id]=el;_dlist.push(el);_delements[id]={};}// look for child elements that have endpoints and register them against this draggable. -var _oneLevel2=function _oneLevel(p){if(p){for(var i=0;i0){if(!parentOffset){parentOffset=_currentInstance.getOffset(el);}var cOff=_currentInstance.getOffset(cEl);_delements[id][cid]={id:cid,offset:{left:cOff.left-parentOffset.left,top:cOff.top-parentOffset.top}};_draggablesForElements[cid]=id;}_oneLevel2(p.childNodes[i]);}}}};_oneLevel2(el);};// refresh the offsets for child elements of this element. -this.updateOffsets=function(elId,childOffsetOverrides){if(elId!=null){childOffsetOverrides=childOffsetOverrides||{};var domEl=jsPlumb.getElement(elId),id=_currentInstance.getId(domEl),children=_delements[id],parentOffset;if(children){for(var i in children){if(children.hasOwnProperty(i)){var cel=jsPlumb.getElement(i),cOff=childOffsetOverrides[i]||_currentInstance.getOffset(cel);// do not update if we have a value already and we'd just be writing 0,0 -if(cel.offsetParent==null&&_delements[id][i]!=null){continue;}if(!parentOffset){parentOffset=_currentInstance.getOffset(domEl);}_delements[id][i]={id:i,offset:{left:cOff.left-parentOffset.left,top:cOff.top-parentOffset.top}};_draggablesForElements[i]=id;}}}}};/** + */ + this.register = function (el) { + var id = _currentInstance.getId(el), + parentOffset; + + if (!_draggables[id]) { + _draggables[id] = el; + _dlist.push(el); + _delements[id] = {}; + } + + // look for child elements that have endpoints and register them against this draggable. + var _oneLevel = function (p) { + if (p) { + for (var i = 0; i < p.childNodes.length; i++) { + if (p.childNodes[i].nodeType !== 3 && p.childNodes[i].nodeType !== 8) { + var cEl = jsPlumb.getElement(p.childNodes[i]), + cid = _currentInstance.getId(p.childNodes[i], null, true); + if (cid && _elementsWithEndpoints[cid] && _elementsWithEndpoints[cid] > 0) { + if (!parentOffset) { + parentOffset = _currentInstance.getOffset(el); + } + var cOff = _currentInstance.getOffset(cEl); + _delements[id][cid] = { + id: cid, + offset: { + left: cOff.left - parentOffset.left, + top: cOff.top - parentOffset.top + } + }; + _draggablesForElements[cid] = id; + } + _oneLevel(p.childNodes[i]); + } + } + } + }; + + _oneLevel(el); + }; + + // refresh the offsets for child elements of this element. + this.updateOffsets = function (elId, childOffsetOverrides) { + if (elId != null) { + childOffsetOverrides = childOffsetOverrides || {}; + var domEl = jsPlumb.getElement(elId), + id = _currentInstance.getId(domEl), + children = _delements[id], + parentOffset; + + if (children) { + for (var i in children) { + if (children.hasOwnProperty(i)) { + var cel = jsPlumb.getElement(i), + cOff = childOffsetOverrides[i] || _currentInstance.getOffset(cel); + + // do not update if we have a value already and we'd just be writing 0,0 + if (cel.offsetParent == null && _delements[id][i] != null) { + continue; + } + + if (!parentOffset) { + parentOffset = _currentInstance.getOffset(domEl); + } + + _delements[id][i] = { + id: i, + offset: { + left: cOff.left - parentOffset.left, + top: cOff.top - parentOffset.top + } + }; + _draggablesForElements[i] = id; + } + } + } + } + }; + + /** notification that an endpoint was added to the given el. we go up from that el's parent node, looking for a parent that has been registered as a draggable. if we find one, we add this el to that parent's list of elements to update on drag (if it is not there already) - */this.endpointAdded=function(el,id){id=id||_currentInstance.getId(el);var b=document.body,p=el.parentNode;_elementsWithEndpoints[id]=_elementsWithEndpoints[id]?_elementsWithEndpoints[id]+1:1;while(p!=null&&p!==b){var pid=_currentInstance.getId(p,null,true);if(pid&&_draggables[pid]){var pLoc=_currentInstance.getOffset(p);if(_delements[pid][id]==null){var cLoc=_currentInstance.getOffset(el);_delements[pid][id]={id:id,offset:{left:cLoc.left-pLoc.left,top:cLoc.top-pLoc.top}};_draggablesForElements[id]=pid;}break;}p=p.parentNode;}};this.endpointDeleted=function(endpoint){if(_elementsWithEndpoints[endpoint.elementId]){_elementsWithEndpoints[endpoint.elementId]--;if(_elementsWithEndpoints[endpoint.elementId]<=0){for(var i in _delements){if(_delements.hasOwnProperty(i)&&_delements[i]){delete _delements[i][endpoint.elementId];delete _draggablesForElements[endpoint.elementId];}}}}};this.changeId=function(oldId,newId){_delements[newId]=_delements[oldId];_delements[oldId]={};_draggablesForElements[newId]=_draggablesForElements[oldId];_draggablesForElements[oldId]=null;};this.getElementsForDraggable=function(id){return _delements[id];};this.elementRemoved=function(elementId){var elId=_draggablesForElements[elementId];if(elId){_delements[elId]&&delete _delements[elId][elementId];delete _draggablesForElements[elementId];}};this.reset=function(){_draggables={};_dlist=[];_delements={};_elementsWithEndpoints={};};// -// notification drag ended. We check automatically if need to update some -// ancestor's offsets. -// -this.dragEnded=function(el){if(el.offsetParent!=null){var id=_currentInstance.getId(el),ancestor=_draggablesForElements[id];if(ancestor){this.updateOffsets(ancestor);}}};this.setParent=function(el,elId,p,pId,currentChildLocation){var current=_draggablesForElements[elId];if(!_delements[pId]){_delements[pId]={};}var pLoc=_currentInstance.getOffset(p),cLoc=currentChildLocation||_currentInstance.getOffset(el);if(current&&_delements[current]){delete _delements[current][elId];}_delements[pId][elId]={id:elId,offset:{left:cLoc.left-pLoc.left,top:cLoc.top-pLoc.top}};_draggablesForElements[elId]=pId;};this.clearParent=function(el,elId){var current=_draggablesForElements[elId];if(current){delete _delements[current][elId];delete _draggablesForElements[elId];}};this.revalidateParent=function(el,elId,childOffset){var current=_draggablesForElements[elId];if(current){var co={};co[elId]=childOffset;this.updateOffsets(current,co);_currentInstance.revalidate(current);}};this.getDragAncestor=function(el){var de=jsPlumb.getElement(el),id=_currentInstance.getId(de),aid=_draggablesForElements[id];if(aid){return jsPlumb.getElement(aid);}else{return null;}};};var _setClassName=function _setClassName(el,cn,classList){cn=_ju.fastTrim(cn);if(typeof el.className.baseVal!=="undefined"){el.className.baseVal=cn;}else{el.className=cn;}// recent (i currently have 61.0.3163.100) version of chrome do not update classList when you set the base val -// of an svg element's className. in the long run we'd like to move to just using classList anyway -try{var cl=el.classList;if(cl!=null){while(cl.length>0){cl.remove(cl.item(0));}for(var i=0;i0||offsetParent.scrollLeft>0)){out.left-=offsetParent.scrollLeft;out.top-=offsetParent.scrollTop;}}.bind(this);while(op!=null){out.left+=op.offsetLeft;out.top+=op.offsetTop;_maybeAdjustScroll(op);op=relativeToRoot?op.offsetParent:op.offsetParent===container?null:op.offsetParent;}// if container is scrolled and the element (or its offset parent) is not absolute or fixed, adjust accordingly. -if(container!=null&&!relativeToRoot&&(container.scrollTop>0||container.scrollLeft>0)){var pp=el.offsetParent!=null?this.getStyle(el.offsetParent,"position"):"static",p=this.getStyle(el,"position");if(p!=="absolute"&&p!=="fixed"&&pp!=="absolute"&&pp!=="fixed"){out.left-=container.scrollLeft;out.top-=container.scrollTop;}}return out;},// -// return x+y proportion of the given element's size corresponding to the location of the given event. -// -getPositionOnElement:function getPositionOnElement(evt,el,zoom){var box=typeof el.getBoundingClientRect!=="undefined"?el.getBoundingClientRect():{left:0,top:0,width:0,height:0},body=document.body,docElem=document.documentElement,scrollTop=window.pageYOffset||docElem.scrollTop||body.scrollTop,scrollLeft=window.pageXOffset||docElem.scrollLeft||body.scrollLeft,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,pst=0,psl=0,top=box.top+scrollTop-clientTop+pst*zoom,left=box.left+scrollLeft-clientLeft+psl*zoom,cl=jsPlumb.pageLocation(evt),w=box.width||el.offsetWidth*zoom,h=box.height||el.offsetHeight*zoom,x=(cl[0]-left)/w,y=(cl[1]-top)/h;return[x,y];},/** + */ + this.endpointAdded = function (el, id) { + + id = id || _currentInstance.getId(el); + + var b = document.body, + p = el.parentNode; + + _elementsWithEndpoints[id] = _elementsWithEndpoints[id] ? _elementsWithEndpoints[id] + 1 : 1; + + while (p != null && p !== b) { + var pid = _currentInstance.getId(p, null, true); + if (pid && _draggables[pid]) { + var pLoc = _currentInstance.getOffset(p); + + if (_delements[pid][id] == null) { + var cLoc = _currentInstance.getOffset(el); + _delements[pid][id] = { + id: id, + offset: { + left: cLoc.left - pLoc.left, + top: cLoc.top - pLoc.top + } + }; + _draggablesForElements[id] = pid; + } + break; + } + p = p.parentNode; + } + }; + + this.endpointDeleted = function (endpoint) { + if (_elementsWithEndpoints[endpoint.elementId]) { + _elementsWithEndpoints[endpoint.elementId]--; + if (_elementsWithEndpoints[endpoint.elementId] <= 0) { + for (var i in _delements) { + if (_delements.hasOwnProperty(i) && _delements[i]) { + delete _delements[i][endpoint.elementId]; + delete _draggablesForElements[endpoint.elementId]; + } + } + } + } + }; + + this.changeId = function (oldId, newId) { + _delements[newId] = _delements[oldId]; + _delements[oldId] = {}; + _draggablesForElements[newId] = _draggablesForElements[oldId]; + _draggablesForElements[oldId] = null; + }; + + this.getElementsForDraggable = function (id) { + return _delements[id]; + }; + + this.elementRemoved = function (elementId) { + var elId = _draggablesForElements[elementId]; + if (elId) { + _delements[elId] && delete _delements[elId][elementId]; + delete _draggablesForElements[elementId]; + } + }; + + this.reset = function () { + _draggables = {}; + _dlist = []; + _delements = {}; + _elementsWithEndpoints = {}; + }; + + // + // notification drag ended. We check automatically if need to update some + // ancestor's offsets. + // + this.dragEnded = function (el) { + if (el.offsetParent != null) { + var id = _currentInstance.getId(el), + ancestor = _draggablesForElements[id]; + + if (ancestor) { + this.updateOffsets(ancestor); + } + } + }; + + this.setParent = function (el, elId, p, pId, currentChildLocation) { + var current = _draggablesForElements[elId]; + if (!_delements[pId]) { + _delements[pId] = {}; + } + var pLoc = _currentInstance.getOffset(p), + cLoc = currentChildLocation || _currentInstance.getOffset(el); + + if (current && _delements[current]) { + delete _delements[current][elId]; + } + + _delements[pId][elId] = { + id:elId, + offset : { + left: cLoc.left - pLoc.left, + top: cLoc.top - pLoc.top + } + }; + _draggablesForElements[elId] = pId; + }; + + this.clearParent = function(el, elId) { + var current = _draggablesForElements[elId]; + if (current) { + delete _delements[current][elId]; + delete _draggablesForElements[elId]; + } + }; + + this.revalidateParent = function(el, elId, childOffset) { + var current = _draggablesForElements[elId]; + if (current) { + var co = {}; + co[elId] = childOffset; + this.updateOffsets(current, co); + _currentInstance.revalidate(current); + } + }; + + this.getDragAncestor = function (el) { + var de = jsPlumb.getElement(el), + id = _currentInstance.getId(de), + aid = _draggablesForElements[id]; + + if (aid) { + return jsPlumb.getElement(aid); + } + else { + return null; + } + }; + + }; + + var _setClassName = function (el, cn, classList) { + cn = _ju.fastTrim(cn); + if (typeof el.className.baseVal !== "undefined") { + el.className.baseVal = cn; + } + else { + el.className = cn; + } + + // recent (i currently have 61.0.3163.100) version of chrome do not update classList when you set the base val + // of an svg element's className. in the long run we'd like to move to just using classList anyway + try { + var cl = el.classList; + if (cl != null) { + while (cl.length > 0) { + cl.remove(cl.item(0)); + } + for (var i = 0; i < classList.length; i++) { + if (classList[i]) { + cl.add(classList[i]); + } + } + } + } + catch(e) { + // not fatal + _ju.log("JSPLUMB: cannot set class list", e); + } + }, + _getClassName = function (el) { + return (typeof el.className.baseVal === "undefined") ? el.className : el.className.baseVal; + }, + _classManip = function (el, classesToAdd, classesToRemove) { + classesToAdd = classesToAdd == null ? [] : _ju.isArray(classesToAdd) ? classesToAdd : classesToAdd.split(/\s+/); + classesToRemove = classesToRemove == null ? [] : _ju.isArray(classesToRemove) ? classesToRemove : classesToRemove.split(/\s+/); + + var className = _getClassName(el), + curClasses = className.split(/\s+/); + + var _oneSet = function (add, classes) { + for (var i = 0; i < classes.length; i++) { + if (add) { + if (curClasses.indexOf(classes[i]) === -1) { + curClasses.push(classes[i]); + } + } + else { + var idx = curClasses.indexOf(classes[i]); + if (idx !== -1) { + curClasses.splice(idx, 1); + } + } + } + }; + + _oneSet(true, classesToAdd); + _oneSet(false, classesToRemove); + + _setClassName(el, curClasses.join(" "), curClasses); + }; + + root.jsPlumb.extend(root.jsPlumbInstance.prototype, { + + headless: false, + + pageLocation: _pageLocation, + screenLocation: _screenLocation, + clientLocation: _clientLocation, + + getDragManager:function() { + if (this.dragManager == null) { + this.dragManager = new DragManager(this); + } + + return this.dragManager; + }, + + recalculateOffsets:function(elId) { + this.getDragManager().updateOffsets(elId); + }, + + createElement:function(tag, style, clazz, atts) { + return this.createElementNS(null, tag, style, clazz, atts); + }, + + createElementNS:function(ns, tag, style, clazz, atts) { + var e = ns == null ? document.createElement(tag) : document.createElementNS(ns, tag); + var i; + style = style || {}; + for (i in style) { + e.style[i] = style[i]; + } + + if (clazz) { + e.className = clazz; + } + + atts = atts || {}; + for (i in atts) { + e.setAttribute(i, "" + atts[i]); + } + + return e; + }, + + getAttribute: function (el, attName) { + return el.getAttribute != null ? el.getAttribute(attName) : null; + }, + + setAttribute: function (el, a, v) { + if (el.setAttribute != null) { + el.setAttribute(a, v); + } + }, + + setAttributes: function (el, atts) { + for (var i in atts) { + if (atts.hasOwnProperty(i)) { + el.setAttribute(i, atts[i]); + } + } + }, + appendToRoot: function (node) { + document.body.appendChild(node); + }, + getRenderModes: function () { + return [ "svg" ]; + }, + getClass:_getClassName, + addClass: function (el, clazz) { + jsPlumb.each(el, function (e) { + _classManip(e, clazz); + }); + }, + hasClass: function (el, clazz) { + el = jsPlumb.getElement(el); + if (el.classList) { + return el.classList.contains(clazz); + } + else { + return _getClassName(el).indexOf(clazz) !== -1; + } + }, + removeClass: function (el, clazz) { + jsPlumb.each(el, function (e) { + _classManip(e, null, clazz); + }); + }, + toggleClass:function(el, clazz) { + if (jsPlumb.hasClass(el, clazz)) { + jsPlumb.removeClass(el, clazz); + } else { + jsPlumb.addClass(el, clazz); + } + }, + updateClasses: function (el, toAdd, toRemove) { + jsPlumb.each(el, function (e) { + _classManip(e, toAdd, toRemove); + }); + }, + setClass: function (el, clazz) { + if (clazz != null) { + jsPlumb.each(el, function (e) { + _setClassName(e, clazz, clazz.split(/\s+/)); + }); + } + }, + setPosition: function (el, p) { + el.style.left = p.left + "px"; + el.style.top = p.top + "px"; + }, + getPosition: function (el) { + var _one = function (prop) { + var v = el.style[prop]; + return v ? v.substring(0, v.length - 2) : 0; + }; + return { + left: _one("left"), + top: _one("top") + }; + }, + getStyle:function(el, prop) { + if (typeof window.getComputedStyle !== 'undefined') { + return getComputedStyle(el, null).getPropertyValue(prop); + } else { + return el.currentStyle[prop]; + } + }, + getSelector: function (ctx, spec) { + var sel = null; + if (arguments.length === 1) { + sel = ctx.nodeType != null ? ctx : document.querySelectorAll(ctx); + } + else { + sel = ctx.querySelectorAll(spec); + } + + return sel; + }, + getOffset:function(el, relativeToRoot, container) { + el = jsPlumb.getElement(el); + container = container || this.getContainer(); + var out = { + left: el.offsetLeft, + top: el.offsetTop + }, + op = (relativeToRoot || (container != null && (el !== container && el.offsetParent !== container))) ? el.offsetParent : null, + _maybeAdjustScroll = function(offsetParent) { + if (offsetParent != null && offsetParent !== document.body && (offsetParent.scrollTop > 0 || offsetParent.scrollLeft > 0)) { + out.left -= offsetParent.scrollLeft; + out.top -= offsetParent.scrollTop; + } + }.bind(this); + + while (op != null) { + out.left += op.offsetLeft; + out.top += op.offsetTop; + _maybeAdjustScroll(op); + op = relativeToRoot ? op.offsetParent : + op.offsetParent === container ? null : op.offsetParent; + } + + // if container is scrolled and the element (or its offset parent) is not absolute or fixed, adjust accordingly. + if (container != null && !relativeToRoot && (container.scrollTop > 0 || container.scrollLeft > 0)) { + var pp = el.offsetParent != null ? this.getStyle(el.offsetParent, "position") : "static", + p = this.getStyle(el, "position"); + if (p !== "absolute" && p !== "fixed" && pp !== "absolute" && pp !== "fixed") { + out.left -= container.scrollLeft; + out.top -= container.scrollTop; + } + } + return out; + }, + // + // return x+y proportion of the given element's size corresponding to the location of the given event. + // + getPositionOnElement: function (evt, el, zoom) { + var box = typeof el.getBoundingClientRect !== "undefined" ? el.getBoundingClientRect() : { left: 0, top: 0, width: 0, height: 0 }, + body = document.body, + docElem = document.documentElement, + scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop, + scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft, + clientTop = docElem.clientTop || body.clientTop || 0, + clientLeft = docElem.clientLeft || body.clientLeft || 0, + pst = 0, + psl = 0, + top = box.top + scrollTop - clientTop + (pst * zoom), + left = box.left + scrollLeft - clientLeft + (psl * zoom), + cl = jsPlumb.pageLocation(evt), + w = box.width || (el.offsetWidth * zoom), + h = box.height || (el.offsetHeight * zoom), + x = (cl[0] - left) / w, + y = (cl[1] - top) / h; + + return [ x, y ]; + }, + + /** * Gets the absolute position of some element as read from the left/top properties in its style. * @method getAbsolutePosition * @param {Element} el The element to retrieve the absolute coordinates from. **Note** this is a DOM element, not a selector from the underlying library. * @return {Number[]} [left, top] pixel values. - */getAbsolutePosition:function getAbsolutePosition(el){var _one=function _one(s){var ss=el.style[s];if(ss){return parseFloat(ss.substring(0,ss.length-2));}};return[_one("left"),_one("top")];},/** + */ + getAbsolutePosition: function (el) { + var _one = function (s) { + var ss = el.style[s]; + if (ss) { + return parseFloat(ss.substring(0, ss.length - 2)); + } + }; + return [ _one("left"), _one("top") ]; + }, + + /** * Sets the absolute position of some element by setting the left/top properties in its style. * @method setAbsolutePosition * @param {Element} el The element to set the absolute coordinates on. **Note** this is a DOM element, not a selector from the underlying library. * @param {Number[]} xy x and y coordinates * @param {Number[]} [animateFrom] Optional previous xy to animate from. * @param {Object} [animateOptions] Options for the animation. - */setAbsolutePosition:function setAbsolutePosition(el,xy,animateFrom,animateOptions){if(animateFrom){this.animate(el,{left:"+="+(xy[0]-animateFrom[0]),top:"+="+(xy[1]-animateFrom[1])},animateOptions);}else{el.style.left=xy[0]+"px";el.style.top=xy[1]+"px";}},/** + */ + setAbsolutePosition: function (el, xy, animateFrom, animateOptions) { + if (animateFrom) { + this.animate(el, { + left: "+=" + (xy[0] - animateFrom[0]), + top: "+=" + (xy[1] - animateFrom[1]) + }, animateOptions); + } + else { + el.style.left = xy[0] + "px"; + el.style.top = xy[1] + "px"; + } + }, + /** * gets the size for the element, in an array : [ width, height ]. - */getSize:function getSize(el){return[el.offsetWidth,el.offsetHeight];},getWidth:function getWidth(el){return el.offsetWidth;},getHeight:function getHeight(el){return el.offsetHeight;},getRenderMode:function getRenderMode(){return"svg";},draggable:function draggable(el,options){var info;el=_ju.isArray(el)||el.length!=null&&!_ju.isString(el)?el:[el];Array.prototype.slice.call(el).forEach(function(_el){info=this.info(_el);if(info.el){this._initDraggableIfNecessary(info.el,true,options,info.id,true);}}.bind(this));return this;},snapToGrid:function snapToGrid(el,x,y){var out=[];var _oneEl=function(_el){var info=this.info(_el);if(info.el!=null&&info.el._katavorioDrag){var snapped=info.el._katavorioDrag.snap(x,y);this.revalidate(info.el);out.push([info.el,snapped]);}}.bind(this);// if you call this method with 0 arguments or 2 arguments it is assumed you want to snap all managed elements to -// a grid. if you supply one argument or 3, then you are assumed to be specifying one element. -if(arguments.length===1||arguments.length===3){_oneEl(el,x,y);}else{var _me=this.getManagedElements();for(var mel in _me){_oneEl(mel,arguments[0],arguments[1]);}}return out;},initDraggable:function initDraggable(el,options,category){_getDragManager(this,category).draggable(el,options);el._jsPlumbDragOptions=options;},destroyDraggable:function destroyDraggable(el,category){_getDragManager(this,category).destroyDraggable(el);el._jsPlumbDragOptions=null;el._jsPlumbRelatedElement=null;},unbindDraggable:function unbindDraggable(el,evt,fn,category){_getDragManager(this,category).destroyDraggable(el,evt,fn);},setDraggable:function setDraggable(element,draggable){return jsPlumb.each(element,function(el){if(this.isDragSupported(el)){this._draggableStates[this.getAttribute(el,"id")]=draggable;this.setElementDraggable(el,draggable);}}.bind(this));},_draggableStates:{},/* + */ + getSize: function (el) { + return [ el.offsetWidth, el.offsetHeight ]; + }, + getWidth: function (el) { + return el.offsetWidth; + }, + getHeight: function (el) { + return el.offsetHeight; + }, + getRenderMode : function() { return "svg"; }, + draggable : function (el, options) { + var info; + el = _ju.isArray(el) || (el.length != null && !_ju.isString(el)) ? el: [ el ]; + Array.prototype.slice.call(el).forEach(function(_el) { + info = this.info(_el); + if (info.el) { + this._initDraggableIfNecessary(info.el, true, options, info.id, true); + } + }.bind(this)); + return this; + }, + snapToGrid : function(el, x, y) { + var out = []; + var _oneEl = function(_el) { + var info = this.info(_el); + if (info.el != null && info.el._katavorioDrag) { + var snapped = info.el._katavorioDrag.snap(x, y); + this.revalidate(info.el); + out.push([info.el, snapped]); + } + }.bind(this); + + // if you call this method with 0 arguments or 2 arguments it is assumed you want to snap all managed elements to + // a grid. if you supply one argument or 3, then you are assumed to be specifying one element. + if(arguments.length === 1 || arguments.length === 3) { + _oneEl(el, x, y); + } else { + var _me = this.getManagedElements(); + for (var mel in _me) { + _oneEl(mel, arguments[0], arguments[1]); + } + } + + return out; + }, + initDraggable: function (el, options, category) { + _getDragManager(this, category).draggable(el, options); + el._jsPlumbDragOptions = options; + }, + destroyDraggable: function (el, category) { + _getDragManager(this, category).destroyDraggable(el); + el._jsPlumbDragOptions = null; + el._jsPlumbRelatedElement = null; + }, + unbindDraggable: function (el, evt, fn, category) { + _getDragManager(this, category).destroyDraggable(el, evt, fn); + }, + setDraggable : function (element, draggable) { + return jsPlumb.each(element, function (el) { + if (this.isDragSupported(el)) { + this._draggableStates[this.getAttribute(el, "id")] = draggable; + this.setElementDraggable(el, draggable); + } + }.bind(this)); + }, + _draggableStates : {}, + /* * toggles the draggable state of the given element(s). * el is either an id, or an element object, or a list of ids/element objects. - */toggleDraggable:function toggleDraggable(el){var state;jsPlumb.each(el,function(el){var elId=this.getAttribute(el,"id");state=this._draggableStates[elId]==null?false:this._draggableStates[elId];state=!state;this._draggableStates[elId]=state;this.setDraggable(el,state);return state;}.bind(this));return state;},_initDraggableIfNecessary:function _initDraggableIfNecessary(element,isDraggable,dragOptions,id,fireEvent){// TODO FIRST: move to DragManager. including as much of the decision to init dragging as possible. -if(!jsPlumb.headless){var _draggable=isDraggable==null?false:isDraggable;if(_draggable){if(jsPlumb.isDragSupported(element,this)){var options=dragOptions||this.Defaults.DragOptions;options=jsPlumb.extend({},options);// make a copy. -if(!jsPlumb.isAlreadyDraggable(element,this)){var dragEvent=jsPlumb.dragEvents.drag,stopEvent=jsPlumb.dragEvents.stop,startEvent=jsPlumb.dragEvents.start;this.manage(id,element);options[startEvent]=_ju.wrap(options[startEvent],_dragStart.bind(this));options[dragEvent]=_ju.wrap(options[dragEvent],_dragMove.bind(this));options[stopEvent]=_ju.wrap(options[stopEvent],_dragStop.bind(this));var elId=this.getId(element);// need ID -this._draggableStates[elId]=true;var draggable=this._draggableStates[elId];options.disabled=draggable==null?false:!draggable;this.initDraggable(element,options);this.getDragManager().register(element);if(fireEvent){this.fire("elementDraggable",{el:element,options:options});}}else{// already draggable. attach any start, drag or stop listeners to the current Drag. -if(dragOptions.force){this.initDraggable(element,options);}}}}}},animationSupported:true,getElement:function getElement(el){if(el==null){return null;}// here we pluck the first entry if el was a list of entries. -// this is not my favourite thing to do, but previous versions of -// jsplumb supported jquery selectors, and it is possible a selector -// will be passed in here. -el=typeof el==="string"?el:el.tagName==null&&el.length!=null&&el.enctype==null?el[0]:el;return typeof el==="string"?document.getElementById(el):el;},removeElement:function removeElement(element){_getDragManager(this).elementRemoved(element);this.getEventManager().remove(element);},// -// this adapter supports a rudimentary animation function. no easing is supported. only -// left/top properties are supported. property delta args are expected to be in the form -// -// +=x.xxxx -// -// or -// -// -=x.xxxx -// -doAnimate:function doAnimate(el,properties,options){options=options||{};var o=this.getOffset(el),ap=_animProps(o,properties),ldist=ap[0]-o.left,tdist=ap[1]-o.top,d=options.duration||250,step=15,steps=d/step,linc=step/d*ldist,tinc=step/d*tdist,idx=0,_int=setInterval(function(){_jp.setPosition(el,{left:o.left+linc*(idx+1),top:o.top+tinc*(idx+1)});if(options.step!=null){options.step(idx,Math.ceil(steps));}idx++;if(idx>=steps){window.clearInterval(_int);if(options.complete!=null){options.complete();}}},step);},// DRAG/DROP -destroyDroppable:function destroyDroppable(el,category){_getDragManager(this,category).destroyDroppable(el);},unbindDroppable:function unbindDroppable(el,evt,fn,category){_getDragManager(this,category).destroyDroppable(el,evt,fn);},droppable:function droppable(el,options){el=_ju.isArray(el)||el.length!=null&&!_ju.isString(el)?el:[el];var info;options=options||{};options.allowLoopback=false;Array.prototype.slice.call(el).forEach(function(_el){info=this.info(_el);if(info.el){this.initDroppable(info.el,options);}}.bind(this));return this;},initDroppable:function initDroppable(el,options,category){_getDragManager(this,category).droppable(el,options);},isAlreadyDraggable:function isAlreadyDraggable(el){return el._katavorioDrag!=null;},isDragSupported:function isDragSupported(el,options){return true;},isDropSupported:function isDropSupported(el,options){return true;},isElementDraggable:function isElementDraggable(el){el=_jp.getElement(el);return el._katavorioDrag&&el._katavorioDrag.isEnabled();},getDragObject:function getDragObject(eventArgs){return eventArgs[0].drag.getDragElement();},getDragScope:function getDragScope(el){return el._katavorioDrag&&el._katavorioDrag.scopes.join(" ")||"";},getDropEvent:function getDropEvent(args){return args[0].e;},getUIPosition:function getUIPosition(eventArgs,zoom){// here the position reported to us by Katavorio is relative to the element's offsetParent. For top -// level nodes that is fine, but if we have a nested draggable then its offsetParent is actually -// not going to be the jsplumb container; it's going to be some child of that element. In that case -// we want to adjust the UI position to account for the offsetParent's position relative to the Container -// origin. -var el=eventArgs[0].el;if(el.offsetParent==null){return null;}var finalPos=eventArgs[0].finalPos||eventArgs[0].pos;var p={left:finalPos[0],top:finalPos[1]};if(el._katavorioDrag&&el.offsetParent!==this.getContainer()){var oc=this.getOffset(el.offsetParent);p.left+=oc.left;p.top+=oc.top;}return p;},setDragFilter:function setDragFilter(el,filter,_exclude){if(el._katavorioDrag){el._katavorioDrag.setFilter(filter,_exclude);}},setElementDraggable:function setElementDraggable(el,draggable){el=_jp.getElement(el);if(el._katavorioDrag){el._katavorioDrag.setEnabled(draggable);}},setDragScope:function setDragScope(el,scope){if(el._katavorioDrag){el._katavorioDrag.k.setDragScope(el,scope);}},setDropScope:function setDropScope(el,scope){if(el._katavorioDrop&&el._katavorioDrop.length>0){el._katavorioDrop[0].k.setDropScope(el,scope);}},addToPosse:function addToPosse(el,spec){var specs=Array.prototype.slice.call(arguments,1);var dm=_getDragManager(this);_jp.each(el,function(_el){_el=[_jp.getElement(_el)];_el.push.apply(_el,specs);dm.addToPosse.apply(dm,_el);});},setPosse:function setPosse(el,spec){var specs=Array.prototype.slice.call(arguments,1);var dm=_getDragManager(this);_jp.each(el,function(_el){_el=[_jp.getElement(_el)];_el.push.apply(_el,specs);dm.setPosse.apply(dm,_el);});},removeFromPosse:function removeFromPosse(el,posseId){var specs=Array.prototype.slice.call(arguments,1);var dm=_getDragManager(this);_jp.each(el,function(_el){_el=[_jp.getElement(_el)];_el.push.apply(_el,specs);dm.removeFromPosse.apply(dm,_el);});},removeFromAllPosses:function removeFromAllPosses(el){var dm=_getDragManager(this);_jp.each(el,function(_el){dm.removeFromAllPosses(_jp.getElement(_el));});},setPosseState:function setPosseState(el,posseId,state){var dm=_getDragManager(this);_jp.each(el,function(_el){dm.setPosseState(_jp.getElement(_el),posseId,state);});},dragEvents:{'start':'start','stop':'stop','drag':'drag','step':'step','over':'over','out':'out','drop':'drop','complete':'complete','beforeStart':'beforeStart'},animEvents:{'step':"step",'complete':'complete'},stopDrag:function stopDrag(el){if(el._katavorioDrag){el._katavorioDrag.abort();}},addToDragSelection:function addToDragSelection(spec){var el=this.getElement(spec);if(el!=null&&(el._isJsPlumbGroup||el._jsPlumbGroup==null)){_getDragManager(this).select(spec);}},removeFromDragSelection:function removeFromDragSelection(spec){_getDragManager(this).deselect(spec);},getDragSelection:function getDragSelection(){return _getDragManager(this).getSelection();},clearDragSelection:function clearDragSelection(){_getDragManager(this).deselectAll();},trigger:function trigger(el,event,originalEvent,payload){this.getEventManager().trigger(el,event,originalEvent,payload);},doReset:function doReset(){// look for katavorio instances and reset each one if found. -for(var key in this){if(key.indexOf("_katavorio_")===0){this[key].reset();}}},getEventManager:function getEventManager(){return _getEventManager(this);},on:function on(el,event,callback){// TODO: here we would like to map the tap event if we know its -// an internal bind to a click. we have to know its internal because only -// then can we be sure that the UP event wont be consumed (tap is a synthesized -// event from a mousedown followed by a mouseup). -//event = { "click":"tap", "dblclick":"dbltap"}[event] || event; -this.getEventManager().on.apply(this,arguments);return this;},off:function off(el,event,callback){this.getEventManager().off.apply(this,arguments);return this;}});var ready=function ready(f){var _do2=function _do(){if(/complete|loaded|interactive/.test(document.readyState)&&typeof document.body!=="undefined"&&document.body!=null){f();}else{setTimeout(_do2,9);}};_do2();};ready(_jp.init);}).call(typeof window!=='undefined'?window:this); \ No newline at end of file + */ + toggleDraggable : function (el) { + var state; + jsPlumb.each(el, function (el) { + var elId = this.getAttribute(el, "id"); + state = this._draggableStates[elId] == null ? false : this._draggableStates[elId]; + state = !state; + this._draggableStates[elId] = state; + this.setDraggable(el, state); + return state; + }.bind(this)); + return state; + }, + _initDraggableIfNecessary : function (element, isDraggable, dragOptions, id, fireEvent) { + // TODO FIRST: move to DragManager. including as much of the decision to init dragging as possible. + if (!jsPlumb.headless) { + var _draggable = isDraggable == null ? false : isDraggable; + if (_draggable) { + if (jsPlumb.isDragSupported(element, this)) { + var options = dragOptions || this.Defaults.DragOptions; + options = jsPlumb.extend({}, options); // make a copy. + if (!jsPlumb.isAlreadyDraggable(element, this)) { + var dragEvent = jsPlumb.dragEvents.drag, + stopEvent = jsPlumb.dragEvents.stop, + startEvent = jsPlumb.dragEvents.start; + + this.manage(id, element); + + options[startEvent] = _ju.wrap(options[startEvent], _dragStart.bind(this)); + + options[dragEvent] = _ju.wrap(options[dragEvent], _dragMove.bind(this)); + + options[stopEvent] = _ju.wrap(options[stopEvent], _dragStop.bind(this)); + + var elId = this.getId(element); // need ID + + this._draggableStates[elId] = true; + var draggable = this._draggableStates[elId]; + + options.disabled = draggable == null ? false : !draggable; + this.initDraggable(element, options); + this.getDragManager().register(element); + if (fireEvent) { + this.fire("elementDraggable", {el:element, options:options}); + } + } + else { + // already draggable. attach any start, drag or stop listeners to the current Drag. + if (dragOptions.force) { + this.initDraggable(element, options); + } + } + } + } + } + }, + animationSupported:true, + getElement: function (el) { + + if (el == null) { + return null; + } + // here we pluck the first entry if el was a list of entries. + // this is not my favourite thing to do, but previous versions of + // jsplumb supported jquery selectors, and it is possible a selector + // will be passed in here. + el = typeof el === "string" ? el : (el.tagName == null && el.length != null && el.enctype == null) ? el[0] : el; + return typeof el === "string" ? document.getElementById(el) : el; + }, + removeElement: function (element) { + _getDragManager(this).elementRemoved(element); + this.getEventManager().remove(element); + }, + // + // this adapter supports a rudimentary animation function. no easing is supported. only + // left/top properties are supported. property delta args are expected to be in the form + // + // +=x.xxxx + // + // or + // + // -=x.xxxx + // + doAnimate: function (el, properties, options) { + options = options || {}; + var o = this.getOffset(el), + ap = _animProps(o, properties), + ldist = ap[0] - o.left, + tdist = ap[1] - o.top, + d = options.duration || 250, + step = 15, steps = d / step, + linc = (step / d) * ldist, + tinc = (step / d) * tdist, + idx = 0, + _int = setInterval(function () { + _jp.setPosition(el, { + left: o.left + (linc * (idx + 1)), + top: o.top + (tinc * (idx + 1)) + }); + if (options.step != null) { + options.step(idx, Math.ceil(steps)); + } + idx++; + if (idx >= steps) { + window.clearInterval(_int); + if (options.complete != null) { + options.complete(); + } + } + }, step); + }, + // DRAG/DROP + + + destroyDroppable: function (el, category) { + _getDragManager(this, category).destroyDroppable(el); + }, + unbindDroppable: function (el, evt, fn, category) { + _getDragManager(this, category).destroyDroppable(el, evt, fn); + }, + + droppable :function(el, options) { + el = _ju.isArray(el) || (el.length != null && !_ju.isString(el)) ? el: [ el ]; + var info; + options = options || {}; + options.allowLoopback = false; + Array.prototype.slice.call(el).forEach(function(_el) { + info = this.info(_el); + if (info.el) { + this.initDroppable(info.el, options); + } + }.bind(this)); + return this; + }, + + initDroppable: function (el, options, category) { + _getDragManager(this, category).droppable(el, options); + }, + isAlreadyDraggable: function (el) { + return el._katavorioDrag != null; + }, + isDragSupported: function (el, options) { + return true; + }, + isDropSupported: function (el, options) { + return true; + }, + isElementDraggable: function (el) { + el = _jp.getElement(el); + return el._katavorioDrag && el._katavorioDrag.isEnabled(); + }, + getDragObject: function (eventArgs) { + return eventArgs[0].drag.getDragElement(); + }, + getDragScope: function (el) { + return el._katavorioDrag && el._katavorioDrag.scopes.join(" ") || ""; + }, + getDropEvent: function (args) { + return args[0].e; + }, + getUIPosition: function (eventArgs, zoom) { + // here the position reported to us by Katavorio is relative to the element's offsetParent. For top + // level nodes that is fine, but if we have a nested draggable then its offsetParent is actually + // not going to be the jsplumb container; it's going to be some child of that element. In that case + // we want to adjust the UI position to account for the offsetParent's position relative to the Container + // origin. + var el = eventArgs[0].el; + if (el.offsetParent == null) { + return null; + } + var finalPos = eventArgs[0].finalPos || eventArgs[0].pos; + var p = { left:finalPos[0], top:finalPos[1] }; + if (el._katavorioDrag && el.offsetParent !== this.getContainer()) { + var oc = this.getOffset(el.offsetParent); + p.left += oc.left; + p.top += oc.top; + } + return p; + }, + setDragFilter: function (el, filter, _exclude) { + if (el._katavorioDrag) { + el._katavorioDrag.setFilter(filter, _exclude); + } + }, + setElementDraggable: function (el, draggable) { + el = _jp.getElement(el); + if (el._katavorioDrag) { + el._katavorioDrag.setEnabled(draggable); + } + }, + setDragScope: function (el, scope) { + if (el._katavorioDrag) { + el._katavorioDrag.k.setDragScope(el, scope); + } + }, + setDropScope:function(el, scope) { + if (el._katavorioDrop && el._katavorioDrop.length > 0) { + el._katavorioDrop[0].k.setDropScope(el, scope); + } + }, + addToPosse:function(el, spec) { + var specs = Array.prototype.slice.call(arguments, 1); + var dm = _getDragManager(this); + _jp.each(el, function(_el) { + _el = [ _jp.getElement(_el) ]; + _el.push.apply(_el, specs ); + dm.addToPosse.apply(dm, _el); + }); + }, + setPosse:function(el, spec) { + var specs = Array.prototype.slice.call(arguments, 1); + var dm = _getDragManager(this); + _jp.each(el, function(_el) { + _el = [ _jp.getElement(_el) ]; + _el.push.apply(_el, specs ); + dm.setPosse.apply(dm, _el); + }); + }, + removeFromPosse:function(el, posseId) { + var specs = Array.prototype.slice.call(arguments, 1); + var dm = _getDragManager(this); + _jp.each(el, function(_el) { + _el = [ _jp.getElement(_el) ]; + _el.push.apply(_el, specs ); + dm.removeFromPosse.apply(dm, _el); + }); + }, + removeFromAllPosses:function(el) { + var dm = _getDragManager(this); + _jp.each(el, function(_el) { dm.removeFromAllPosses(_jp.getElement(_el)); }); + }, + setPosseState:function(el, posseId, state) { + var dm = _getDragManager(this); + _jp.each(el, function(_el) { dm.setPosseState(_jp.getElement(_el), posseId, state); }); + }, + dragEvents: { + 'start': 'start', 'stop': 'stop', 'drag': 'drag', 'step': 'step', + 'over': 'over', 'out': 'out', 'drop': 'drop', 'complete': 'complete', + 'beforeStart':'beforeStart' + }, + animEvents: { + 'step': "step", 'complete': 'complete' + }, + stopDrag: function (el) { + if (el._katavorioDrag) { + el._katavorioDrag.abort(); + } + }, + addToDragSelection: function (spec) { + var el = this.getElement(spec); + if (el != null && (el._isJsPlumbGroup || el._jsPlumbGroup == null)) { + _getDragManager(this).select(spec); + } + }, + removeFromDragSelection: function (spec) { + _getDragManager(this).deselect(spec); + }, + getDragSelection:function() { + return _getDragManager(this).getSelection(); + }, + clearDragSelection: function () { + _getDragManager(this).deselectAll(); + }, + trigger: function (el, event, originalEvent, payload) { + this.getEventManager().trigger(el, event, originalEvent, payload); + }, + doReset:function() { + // look for katavorio instances and reset each one if found. + for (var key in this) { + if (key.indexOf("_katavorio_") === 0) { + this[key].reset(); + } + } + }, + getEventManager:function() { + return _getEventManager(this); + }, + on : function(el, event, callback) { + // TODO: here we would like to map the tap event if we know its + // an internal bind to a click. we have to know its internal because only + // then can we be sure that the UP event wont be consumed (tap is a synthesized + // event from a mousedown followed by a mouseup). + //event = { "click":"tap", "dblclick":"dbltap"}[event] || event; + this.getEventManager().on.apply(this, arguments); + return this; + }, + off : function(el, event, callback) { + this.getEventManager().off.apply(this, arguments); + return this; + } + + }); + + var ready = function (f) { + var _do = function () { + if (/complete|loaded|interactive/.test(document.readyState) && typeof(document.body) !== "undefined" && document.body != null) { + f(); + } + else { + setTimeout(_do, 9); + } + }; + + _do(); + }; + ready(_jp.init); + +}).call(typeof window !== 'undefined' ? window : this); diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.map b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.map new file mode 100644 index 00000000000..a941298ceac --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.map @@ -0,0 +1 @@ +{"version":3,"sources":[""],"sourcesContent":["/**\n * jsBezier\n *\n * Copyright (c) 2010 - 2017 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * licensed under the MIT license.\n *\n * a set of Bezier curve functions that deal with Beziers, used by jsPlumb, and perhaps useful for other people. These functions work with Bezier\n * curves of arbitrary degree.\n *\n * - functions are all in the 'jsBezier' namespace.\n *\n * - all input points should be in the format {x:.., y:..}. all output points are in this format too.\n *\n * - all input curves should be in the format [ {x:.., y:..}, {x:.., y:..}, {x:.., y:..}, {x:.., y:..} ]\n *\n * - 'location' as used as an input here refers to a decimal in the range 0-1 inclusive, which indicates a point some proportion along the length\n * of the curve. location as output has the same format and meaning.\n *\n *\n * Function List:\n * --------------\n *\n * distanceFromCurve(point, curve)\n *\n * \tCalculates the distance that the given point lies from the given Bezier. Note that it is computed relative to the center of the Bezier,\n * so if you have stroked the curve with a wide pen you may wish to take that into account! The distance returned is relative to the values\n * of the curve and the point - it will most likely be pixels.\n *\n * gradientAtPoint(curve, location)\n *\n * \tCalculates the gradient to the curve at the given location, as a decimal between 0 and 1 inclusive.\n *\n * gradientAtPointAlongCurveFrom (curve, location)\n *\n *\tCalculates the gradient at the point on the given curve that is 'distance' units from location.\n *\n * nearestPointOnCurve(point, curve)\n *\n *\tCalculates the nearest point to the given point on the given curve. The return value of this is a JS object literal, containing both the\n *point's coordinates and also the 'location' of the point (see above), for example: { point:{x:551,y:150}, location:0.263365 }.\n *\n * pointOnCurve(curve, location)\n *\n * \tCalculates the coordinates of the point on the given Bezier curve at the given location.\n *\n * pointAlongCurveFrom(curve, location, distance)\n *\n * \tCalculates the coordinates of the point on the given curve that is 'distance' units from location. 'distance' should be in the same coordinate\n * space as that used to construct the Bezier curve. For an HTML Canvas usage, for example, distance would be a measure of pixels.\n *\n * locationAlongCurveFrom(curve, location, distance)\n *\n * \tCalculates the location on the given curve that is 'distance' units from location. 'distance' should be in the same coordinate\n * space as that used to construct the Bezier curve. For an HTML Canvas usage, for example, distance would be a measure of pixels.\n *\n * perpendicularToCurveAt(curve, location, length, distance)\n *\n * \tCalculates the perpendicular to the given curve at the given location. length is the length of the line you wish for (it will be centered\n * on the point at 'location'). distance is optional, and allows you to specify a point along the path from the given location as the center of\n * the perpendicular returned. The return value of this is an array of two points: [ {x:...,y:...}, {x:...,y:...} ].\n *\n *\n */\n(function() {\n var root = this;\n if(typeof Math.sgn == \"undefined\") {\n Math.sgn = function(x) { return x == 0 ? 0 : x > 0 ? 1 :-1; };\n }\n var Vectors = {\n subtract \t: \tfunction(v1, v2) { return {x:v1.x - v2.x, y:v1.y - v2.y }; },\n dotProduct\t: \tfunction(v1, v2) { return (v1.x * v2.x) + (v1.y * v2.y); },\n square\t\t:\tfunction(v) { return Math.sqrt((v.x * v.x) + (v.y * v.y)); },\n scale\t\t:\tfunction(v, s) { return {x:v.x * s, y:v.y * s }; }\n },\n maxRecursion = 64,\n flatnessTolerance = Math.pow(2.0,-maxRecursion-1);\n /**\n * Calculates the distance that the point lies from the curve.\n *\n * @param point a point in the form {x:567, y:3342}\n * @param curve a Bezier curve in the form [{x:..., y:...}, {x:..., y:...}, {x:..., y:...}, {x:..., y:...}]. note that this is currently\n * hardcoded to assume cubiz beziers, but would be better off supporting any degree.\n * @return a JS object literal containing location and distance, for example: {location:0.35, distance:10}. Location is analogous to the location\n * argument you pass to the pointOnPath function: it is a ratio of distance travelled along the curve. Distance is the distance in pixels from\n * the point to the curve.\n */\n var _distanceFromCurve = function(point, curve) {\n var candidates = [],\n w = _convertToBezier(point, curve),\n degree = curve.length - 1, higherDegree = (2 * degree) - 1,\n numSolutions = _findRoots(w, higherDegree, candidates, 0),\n v = Vectors.subtract(point, curve[0]), dist = Vectors.square(v), t = 0.0;\n for (var i = 0; i < numSolutions; i++) {\n v = Vectors.subtract(point, _bezier(curve, degree, candidates[i], null, null));\n var newDist = Vectors.square(v);\n if (newDist < dist) {\n dist = newDist;\n t = candidates[i];\n }\n }\n v = Vectors.subtract(point, curve[degree]);\n newDist = Vectors.square(v);\n if (newDist < dist) {\n dist = newDist;\n t = 1.0;\n }\n return {location:t, distance:dist};\n };\n /**\n * finds the nearest point on the curve to the given point.\n */\n var _nearestPointOnCurve = function(point, curve) {\n var td = _distanceFromCurve(point, curve);\n return {point:_bezier(curve, curve.length - 1, td.location, null, null), location:td.location};\n };\n var _convertToBezier = function(point, curve) {\n var degree = curve.length - 1, higherDegree = (2 * degree) - 1,\n c = [], d = [], cdTable = [], w = [],\n z = [ [1.0, 0.6, 0.3, 0.1], [0.4, 0.6, 0.6, 0.4], [0.1, 0.3, 0.6, 1.0] ];\n for (var i = 0; i <= degree; i++) c[i] = Vectors.subtract(curve[i], point);\n for (var i = 0; i <= degree - 1; i++) {\n d[i] = Vectors.subtract(curve[i+1], curve[i]);\n d[i] = Vectors.scale(d[i], 3.0);\n }\n for (var row = 0; row <= degree - 1; row++) {\n for (var column = 0; column <= degree; column++) {\n if (!cdTable[row]) cdTable[row] = [];\n cdTable[row][column] = Vectors.dotProduct(d[row], c[column]);\n }\n }\n for (i = 0; i <= higherDegree; i++) {\n if (!w[i]) w[i] = [];\n w[i].y = 0.0;\n w[i].x = parseFloat(i) / higherDegree;\n }\n var n = degree, m = degree-1;\n for (var k = 0; k <= n + m; k++) {\n var lb = Math.max(0, k - m),\n ub = Math.min(k, n);\n for (i = lb; i <= ub; i++) {\n var j = k - i;\n w[i+j].y += cdTable[j][i] * z[j][i];\n }\n }\n return w;\n };\n /**\n * counts how many roots there are.\n */\n var _findRoots = function(w, degree, t, depth) {\n var left = [], right = [],\n left_count, right_count,\n left_t = [], right_t = [];\n switch (_getCrossingCount(w, degree)) {\n case 0 : {\n return 0;\n }\n case 1 : {\n if (depth >= maxRecursion) {\n t[0] = (w[0].x + w[degree].x) / 2.0;\n return 1;\n }\n if (_isFlatEnough(w, degree)) {\n t[0] = _computeXIntercept(w, degree);\n return 1;\n }\n break;\n }\n }\n _bezier(w, degree, 0.5, left, right);\n left_count = _findRoots(left, degree, left_t, depth+1);\n right_count = _findRoots(right, degree, right_t, depth+1);\n for (var i = 0; i < left_count; i++) t[i] = left_t[i];\n for (var i = 0; i < right_count; i++) t[i+left_count] = right_t[i];\n return (left_count+right_count);\n };\n var _getCrossingCount = function(curve, degree) {\n var n_crossings = 0, sign, old_sign;\n sign = old_sign = Math.sgn(curve[0].y);\n for (var i = 1; i <= degree; i++) {\n sign = Math.sgn(curve[i].y);\n if (sign != old_sign) n_crossings++;\n old_sign = sign;\n }\n return n_crossings;\n };\n var _isFlatEnough = function(curve, degree) {\n var error,\n intercept_1, intercept_2, left_intercept, right_intercept,\n a, b, c, det, dInv, a1, b1, c1, a2, b2, c2;\n a = curve[0].y - curve[degree].y;\n b = curve[degree].x - curve[0].x;\n c = curve[0].x * curve[degree].y - curve[degree].x * curve[0].y;\n var max_distance_above, max_distance_below;\n max_distance_above = max_distance_below = 0.0;\n for (var i = 1; i < degree; i++) {\n var value = a * curve[i].x + b * curve[i].y + c;\n if (value > max_distance_above)\n max_distance_above = value;\n else if (value < max_distance_below)\n max_distance_below = value;\n }\n a1 = 0.0; b1 = 1.0; c1 = 0.0; a2 = a; b2 = b;\n c2 = c - max_distance_above;\n det = a1 * b2 - a2 * b1;\n dInv = 1.0/det;\n intercept_1 = (b1 * c2 - b2 * c1) * dInv;\n a2 = a; b2 = b; c2 = c - max_distance_below;\n det = a1 * b2 - a2 * b1;\n dInv = 1.0/det;\n intercept_2 = (b1 * c2 - b2 * c1) * dInv;\n left_intercept = Math.min(intercept_1, intercept_2);\n right_intercept = Math.max(intercept_1, intercept_2);\n error = right_intercept - left_intercept;\n return (error < flatnessTolerance)? 1 : 0;\n };\n var _computeXIntercept = function(curve, degree) {\n var XLK = 1.0, YLK = 0.0,\n XNM = curve[degree].x - curve[0].x, YNM = curve[degree].y - curve[0].y,\n XMK = curve[0].x - 0.0, YMK = curve[0].y - 0.0,\n det = XNM*YLK - YNM*XLK, detInv = 1.0/det,\n S = (XNM*YMK - YNM*XMK) * detInv;\n return 0.0 + XLK * S;\n };\n var _bezier = function(curve, degree, t, left, right) {\n var temp = [[]];\n for (var j =0; j <= degree; j++) temp[0][j] = curve[j];\n for (var i = 1; i <= degree; i++) {\n for (var j =0 ; j <= degree - i; j++) {\n if (!temp[i]) temp[i] = [];\n if (!temp[i][j]) temp[i][j] = {};\n temp[i][j].x = (1.0 - t) * temp[i-1][j].x + t * temp[i-1][j+1].x;\n temp[i][j].y = (1.0 - t) * temp[i-1][j].y + t * temp[i-1][j+1].y;\n }\n }\n if (left != null)\n for (j = 0; j <= degree; j++) left[j] = temp[j][0];\n if (right != null)\n for (j = 0; j <= degree; j++) right[j] = temp[degree-j][j];\n return (temp[degree][0]);\n };\n var _curveFunctionCache = {};\n var _getCurveFunctions = function(order) {\n var fns = _curveFunctionCache[order];\n if (!fns) {\n fns = [];\n var f_term = function() { return function(t) { return Math.pow(t, order); }; },\n l_term = function() { return function(t) { return Math.pow((1-t), order); }; },\n c_term = function(c) { return function(t) { return c; }; },\n t_term = function() { return function(t) { return t; }; },\n one_minus_t_term = function() { return function(t) { return 1-t; }; },\n _termFunc = function(terms) {\n return function(t) {\n var p = 1;\n for (var i = 0; i < terms.length; i++) p = p * terms[i](t);\n return p;\n };\n };\n fns.push(new f_term()); // first is t to the power of the curve order\n for (var i = 1; i < order; i++) {\n var terms = [new c_term(order)];\n for (var j = 0 ; j < (order - i); j++) terms.push(new t_term());\n for (var j = 0 ; j < i; j++) terms.push(new one_minus_t_term());\n fns.push(new _termFunc(terms));\n }\n fns.push(new l_term()); // last is (1-t) to the power of the curve order\n _curveFunctionCache[order] = fns;\n }\n return fns;\n };\n /**\n * calculates a point on the curve, for a Bezier of arbitrary order.\n * @param curve an array of control points, eg [{x:10,y:20}, {x:50,y:50}, {x:100,y:100}, {x:120,y:100}]. For a cubic bezier this should have four points.\n * @param location a decimal indicating the distance along the curve the point should be located at. this is the distance along the curve as it travels, taking the way it bends into account. should be a number from 0 to 1, inclusive.\n */\n var _pointOnPath = function(curve, location) {\n var cc = _getCurveFunctions(curve.length - 1),\n _x = 0, _y = 0;\n for (var i = 0; i < curve.length ; i++) {\n _x = _x + (curve[i].x * cc[i](location));\n _y = _y + (curve[i].y * cc[i](location));\n }\n return {x:_x, y:_y};\n };\n var _dist = function(p1,p2) {\n return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));\n };\n var _isPoint = function(curve) {\n return curve[0].x === curve[1].x && curve[0].y === curve[1].y;\n };\n /**\n * finds the point that is 'distance' along the path from 'location'. this method returns both the x,y location of the point and also\n * its 'location' (proportion of travel along the path); the method below - _pointAlongPathFrom - calls this method and just returns the\n * point.\n */\n var _pointAlongPath = function(curve, location, distance) {\n \n if (_isPoint(curve)) {\n return {\n point:curve[0],\n location:location\n };\n }\n var prev = _pointOnPath(curve, location),\n tally = 0,\n curLoc = location,\n direction = distance > 0 ? 1 : -1,\n cur = null;\n while (tally < Math.abs(distance)) {\n curLoc += (0.005 * direction);\n cur = _pointOnPath(curve, curLoc);\n tally += _dist(cur, prev);\n prev = cur;\n }\n return {point:cur, location:curLoc};\n };\n var _length = function(curve) {\n var d = new Date().getTime();\n if (_isPoint(curve)) return 0;\n var prev = _pointOnPath(curve, 0),\n tally = 0,\n curLoc = 0,\n direction = 1,\n cur = null;\n while (curLoc < 1) {\n curLoc += (0.005 * direction);\n cur = _pointOnPath(curve, curLoc);\n tally += _dist(cur, prev);\n prev = cur;\n }\n console.log(\"length\", new Date().getTime() - d);\n return tally;\n };\n /**\n * finds the point that is 'distance' along the path from 'location'.\n */\n var _pointAlongPathFrom = function(curve, location, distance) {\n return _pointAlongPath(curve, location, distance).point;\n };\n /**\n * finds the location that is 'distance' along the path from 'location'.\n */\n var _locationAlongPathFrom = function(curve, location, distance) {\n return _pointAlongPath(curve, location, distance).location;\n };\n /**\n * returns the gradient of the curve at the given location, which is a decimal between 0 and 1 inclusive.\n *\n * thanks // http://bimixual.org/AnimationLibrary/beziertangents.html\n */\n var _gradientAtPoint = function(curve, location) {\n var p1 = _pointOnPath(curve, location),\n p2 = _pointOnPath(curve.slice(0, curve.length - 1), location),\n dy = p2.y - p1.y, dx = p2.x - p1.x;\n return dy === 0 ? Infinity : Math.atan(dy / dx);\n };\n /**\n returns the gradient of the curve at the point which is 'distance' from the given location.\n if this point is greater than location 1, the gradient at location 1 is returned.\n if this point is less than location 0, the gradient at location 0 is returned.\n */\n var _gradientAtPointAlongPathFrom = function(curve, location, distance) {\n var p = _pointAlongPath(curve, location, distance);\n if (p.location > 1) p.location = 1;\n if (p.location < 0) p.location = 0;\n return _gradientAtPoint(curve, p.location);\n };\n /**\n * calculates a line that is 'length' pixels long, perpendicular to, and centered on, the path at 'distance' pixels from the given location.\n * if distance is not supplied, the perpendicular for the given location is computed (ie. we set distance to zero).\n */\n var _perpendicularToPathAt = function(curve, location, length, distance) {\n distance = distance == null ? 0 : distance;\n var p = _pointAlongPath(curve, location, distance),\n m = _gradientAtPoint(curve, p.location),\n _theta2 = Math.atan(-1 / m),\n y = length / 2 * Math.sin(_theta2),\n x = length / 2 * Math.cos(_theta2);\n return [{x:p.point.x + x, y:p.point.y + y}, {x:p.point.x - x, y:p.point.y - y}];\n };\n /**\n * Calculates all intersections of the given line with the given curve.\n * @param x1\n * @param y1\n * @param x2\n * @param y2\n * @param curve\n * @returns {Array}\n */\n var _lineIntersection = function(x1, y1, x2, y2, curve) {\n var a = y2 - y1,\n b = x1 - x2,\n c = (x1 * (y1 - y2)) + (y1 * (x2-x1)),\n coeffs = _computeCoefficients(curve),\n p = [\n (a*coeffs[0][0]) + (b * coeffs[1][0]),\n (a*coeffs[0][1])+(b*coeffs[1][1]),\n (a*coeffs[0][2])+(b*coeffs[1][2]),\n (a*coeffs[0][3])+(b*coeffs[1][3]) + c\n ],\n r = _cubicRoots.apply(null, p),\n intersections = [];\n if (r != null) {\n for (var i = 0; i < 3; i++) {\n var t = r[i],\n t2 = Math.pow(t, 2),\n t3 = Math.pow(t, 3),\n x = [\n (coeffs[0][0] * t3) + (coeffs[0][1] * t2) + (coeffs[0][2] * t) + coeffs[0][3],\n (coeffs[1][0] * t3) + (coeffs[1][1] * t2) + (coeffs[1][2] * t) + coeffs[1][3]\n ];\n // check bounds of the line\n var s;\n if ((x2 - x1) !== 0) {\n s = (x[0] - x1) / (x2 - x1);\n }\n else {\n s = (x[1] - y1) / (y2 - y1);\n }\n if (t >= 0 && t <= 1.0 && s >= 0 && s <= 1.0) {\n intersections.push(x);\n }\n }\n }\n return intersections;\n };\n /**\n * Calculates all intersections of the given box with the given curve.\n * @param x X position of top left corner of box\n * @param y Y position of top left corner of box\n * @param w width of box\n * @param h height of box\n * @param curve\n * @returns {Array}\n */\n var _boxIntersection = function(x, y, w, h, curve) {\n var i = [];\n i.push.apply(i, _lineIntersection(x, y, x + w, y, curve));\n i.push.apply(i, _lineIntersection(x + w, y, x + w, y + h, curve));\n i.push.apply(i, _lineIntersection(x + w, y + h, x, y + h, curve));\n i.push.apply(i, _lineIntersection(x, y + h, x, y, curve));\n return i;\n };\n /**\n * Calculates all intersections of the given bounding box with the given curve.\n * @param boundingBox Bounding box, in { x:.., y:..., w:..., h:... } format.\n * @param curve\n * @returns {Array}\n */\n var _boundingBoxIntersection = function(boundingBox, curve) {\n var i = [];\n i.push.apply(i, _lineIntersection(boundingBox.x, boundingBox.y, boundingBox.x + boundingBox.w, boundingBox.y, curve));\n i.push.apply(i, _lineIntersection(boundingBox.x + boundingBox.w, boundingBox.y, boundingBox.x + boundingBox.w, boundingBox.y + boundingBox.h, curve));\n i.push.apply(i, _lineIntersection(boundingBox.x + boundingBox.w, boundingBox.y + boundingBox.h, boundingBox.x, boundingBox.y + boundingBox.h, curve));\n i.push.apply(i, _lineIntersection(boundingBox.x, boundingBox.y + boundingBox.h, boundingBox.x, boundingBox.y, curve));\n return i;\n };\n function _computeCoefficientsForAxis(curve, axis) {\n return [\n -(curve[0][axis]) + (3*curve[1][axis]) + (-3 * curve[2][axis]) + curve[3][axis],\n (3*(curve[0][axis])) - (6*(curve[1][axis])) + (3*(curve[2][axis])),\n -3*curve[0][axis] + 3*curve[1][axis],\n curve[0][axis]\n ];\n }\n function _computeCoefficients(curve)\n {\n return [\n _computeCoefficientsForAxis(curve, \"x\"),\n _computeCoefficientsForAxis(curve, \"y\")\n ];\n }\n function sgn(x) {\n return x < 0 ? -1 : x > 0 ? 1 : 0;\n }\n function _cubicRoots(a, b, c, d) {\n var A = b / a,\n B = c / a,\n C = d / a,\n Q = (3*B - Math.pow(A, 2))/9,\n R = (9*A*B - 27*C - 2*Math.pow(A, 3))/54,\n D = Math.pow(Q, 3) + Math.pow(R, 2),\n S,\n T,\n t = [];\n if (D >= 0) // complex or duplicate roots\n {\n S = sgn(R + Math.sqrt(D))*Math.pow(Math.abs(R + Math.sqrt(D)),(1/3));\n T = sgn(R - Math.sqrt(D))*Math.pow(Math.abs(R - Math.sqrt(D)),(1/3));\n t[0] = -A/3 + (S + T);\n t[1] = -A/3 - (S + T)/2;\n t[2] = -A/3 - (S + T)/2;\n /*discard complex roots*/\n if (Math.abs(Math.sqrt(3)*(S - T)/2) !== 0) {\n t[1] = -1;\n t[2] = -1;\n }\n }\n else // distinct real roots\n {\n var th = Math.acos(R/Math.sqrt(-Math.pow(Q, 3)));\n t[0] = 2*Math.sqrt(-Q)*Math.cos(th/3) - A/3;\n t[1] = 2*Math.sqrt(-Q)*Math.cos((th + 2*Math.PI)/3) - A/3;\n t[2] = 2*Math.sqrt(-Q)*Math.cos((th + 4*Math.PI)/3) - A/3;\n }\n // discard out of spec roots\n for (var i = 0; i < 3; i++) {\n if (t[i] < 0 || t[i] > 1.0) {\n t[i] = -1;\n }\n }\n return t;\n }\n var jsBezier = this.jsBezier = {\n distanceFromCurve : _distanceFromCurve,\n gradientAtPoint : _gradientAtPoint,\n gradientAtPointAlongCurveFrom : _gradientAtPointAlongPathFrom,\n nearestPointOnCurve : _nearestPointOnCurve,\n pointOnCurve : _pointOnPath,\n pointAlongCurveFrom : _pointAlongPathFrom,\n perpendicularToCurveAt : _perpendicularToPathAt,\n locationAlongCurveFrom:_locationAlongPathFrom,\n getLength:_length,\n lineIntersection:_lineIntersection,\n boxIntersection:_boxIntersection,\n boundingBoxIntersection:_boundingBoxIntersection,\n version:\"0.9.0\"\n };\n if (typeof exports !== \"undefined\") {\n exports.jsBezier = jsBezier;\n }\n}).call(typeof window !== 'undefined' ? window : this);\n/**\n * Biltong v0.4.0\n *\n * Various geometry functions written as part of jsPlumb and perhaps useful for others.\n *\n * Copyright (c) 2017 jsPlumb\n * https://jsplumbtoolkit.com\n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the \"Software\"), to deal in the Software without\n * restriction, including without limitation the rights to use,\n * copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the\n * Software is furnished to do so, subject to the following\n * conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n * OTHER DEALINGS IN THE SOFTWARE.\n */\n;(function() {\n \"use strict\";\n var root = this;\n var Biltong = root.Biltong = {\n version:\"0.4.0\"\n };\n if (typeof exports !== \"undefined\") {\n exports.Biltong = Biltong;\n }\n var _isa = function(a) { return Object.prototype.toString.call(a) === \"[object Array]\"; },\n _pointHelper = function(p1, p2, fn) {\n p1 = _isa(p1) ? p1 : [p1.x, p1.y];\n p2 = _isa(p2) ? p2 : [p2.x, p2.y];\n return fn(p1, p2);\n },\n /**\n * @name Biltong.gradient\n * @function\n * @desc Calculates the gradient of a line between the two points.\n * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties.\n * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties.\n * @return {Float} The gradient of a line between the two points.\n */\n _gradient = Biltong.gradient = function(p1, p2) {\n return _pointHelper(p1, p2, function(_p1, _p2) {\n if (_p2[0] == _p1[0])\n return _p2[1] > _p1[1] ? Infinity : -Infinity;\n else if (_p2[1] == _p1[1])\n return _p2[0] > _p1[0] ? 0 : -0;\n else\n return (_p2[1] - _p1[1]) / (_p2[0] - _p1[0]);\n });\n },\n /**\n * @name Biltong.normal\n * @function\n * @desc Calculates the gradient of a normal to a line between the two points.\n * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties.\n * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties.\n * @return {Float} The gradient of a normal to a line between the two points.\n */\n _normal = Biltong.normal = function(p1, p2) {\n return -1 / _gradient(p1, p2);\n },\n /**\n * @name Biltong.lineLength\n * @function\n * @desc Calculates the length of a line between the two points.\n * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties.\n * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties.\n * @return {Float} The length of a line between the two points.\n */\n _lineLength = Biltong.lineLength = function(p1, p2) {\n return _pointHelper(p1, p2, function(_p1, _p2) {\n return Math.sqrt(Math.pow(_p2[1] - _p1[1], 2) + Math.pow(_p2[0] - _p1[0], 2));\n });\n },\n /**\n * @name Biltong.quadrant\n * @function\n * @desc Calculates the quadrant in which the angle between the two points lies.\n * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties.\n * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties.\n * @return {Integer} The quadrant - 1 for upper right, 2 for lower right, 3 for lower left, 4 for upper left.\n */\n _quadrant = Biltong.quadrant = function(p1, p2) {\n return _pointHelper(p1, p2, function(_p1, _p2) {\n if (_p2[0] > _p1[0]) {\n return (_p2[1] > _p1[1]) ? 2 : 1;\n }\n else if (_p2[0] == _p1[0]) {\n return _p2[1] > _p1[1] ? 2 : 1;\n }\n else {\n return (_p2[1] > _p1[1]) ? 3 : 4;\n }\n });\n },\n /**\n * @name Biltong.theta\n * @function\n * @desc Calculates the angle between the two points.\n * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties.\n * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties.\n * @return {Float} The angle between the two points.\n */\n _theta = Biltong.theta = function(p1, p2) {\n return _pointHelper(p1, p2, function(_p1, _p2) {\n var m = _gradient(_p1, _p2),\n t = Math.atan(m),\n s = _quadrant(_p1, _p2);\n if ((s == 4 || s== 3)) t += Math.PI;\n if (t < 0) t += (2 * Math.PI);\n return t;\n });\n },\n /**\n * @name Biltong.intersects\n * @function\n * @desc Calculates whether or not the two rectangles intersect.\n * @param {Rectangle} r1 First rectangle, as a js object in the form `{x:.., y:.., w:.., h:..}`\n * @param {Rectangle} r2 Second rectangle, as a js object in the form `{x:.., y:.., w:.., h:..}`\n * @return {Boolean} True if the rectangles intersect, false otherwise.\n */\n _intersects = Biltong.intersects = function(r1, r2) {\n var x1 = r1.x, x2 = r1.x + r1.w, y1 = r1.y, y2 = r1.y + r1.h,\n a1 = r2.x, a2 = r2.x + r2.w, b1 = r2.y, b2 = r2.y + r2.h;\n return ( (x1 <= a1 && a1 <= x2) && (y1 <= b1 && b1 <= y2) ) ||\n ( (x1 <= a2 && a2 <= x2) && (y1 <= b1 && b1 <= y2) ) ||\n ( (x1 <= a1 && a1 <= x2) && (y1 <= b2 && b2 <= y2) ) ||\n ( (x1 <= a2 && a1 <= x2) && (y1 <= b2 && b2 <= y2) ) ||\n ( (a1 <= x1 && x1 <= a2) && (b1 <= y1 && y1 <= b2) ) ||\n ( (a1 <= x2 && x2 <= a2) && (b1 <= y1 && y1 <= b2) ) ||\n ( (a1 <= x1 && x1 <= a2) && (b1 <= y2 && y2 <= b2) ) ||\n ( (a1 <= x2 && x1 <= a2) && (b1 <= y2 && y2 <= b2) );\n },\n /**\n * @name Biltong.encloses\n * @function\n * @desc Calculates whether or not r2 is completely enclosed by r1.\n * @param {Rectangle} r1 First rectangle, as a js object in the form `{x:.., y:.., w:.., h:..}`\n * @param {Rectangle} r2 Second rectangle, as a js object in the form `{x:.., y:.., w:.., h:..}`\n * @param {Boolean} [allowSharedEdges=false] If true, the concept of enclosure allows for one or more edges to be shared by the two rectangles.\n * @return {Boolean} True if r1 encloses r2, false otherwise.\n */\n _encloses = Biltong.encloses = function(r1, r2, allowSharedEdges) {\n var x1 = r1.x, x2 = r1.x + r1.w, y1 = r1.y, y2 = r1.y + r1.h,\n a1 = r2.x, a2 = r2.x + r2.w, b1 = r2.y, b2 = r2.y + r2.h,\n c = function(v1, v2, v3, v4) { return allowSharedEdges ? v1 <= v2 && v3>= v4 : v1 < v2 && v3 > v4; };\n return c(x1,a1,x2,a2) && c(y1,b1,y2,b2);\n },\n _segmentMultipliers = [null, [1, -1], [1, 1], [-1, 1], [-1, -1] ],\n _inverseSegmentMultipliers = [null, [-1, -1], [-1, 1], [1, 1], [1, -1] ],\n /**\n * @name Biltong.pointOnLine\n * @function\n * @desc Calculates a point on the line from `fromPoint` to `toPoint` that is `distance` units along the length of the line.\n * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties.\n * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties.\n * @return {Point} Point on the line, in the form `{ x:..., y:... }`.\n */\n _pointOnLine = Biltong.pointOnLine = function(fromPoint, toPoint, distance) {\n var m = _gradient(fromPoint, toPoint),\n s = _quadrant(fromPoint, toPoint),\n segmentMultiplier = distance > 0 ? _segmentMultipliers[s] : _inverseSegmentMultipliers[s],\n theta = Math.atan(m),\n y = Math.abs(distance * Math.sin(theta)) * segmentMultiplier[1],\n x = Math.abs(distance * Math.cos(theta)) * segmentMultiplier[0];\n return { x:fromPoint.x + x, y:fromPoint.y + y };\n },\n /**\n * @name Biltong.perpendicularLineTo\n * @function\n * @desc Calculates a line of length `length` that is perpendicular to the line from `fromPoint` to `toPoint` and passes through `toPoint`.\n * @param {Point} p1 First point, either as a 2 entry array or object with `left` and `top` properties.\n * @param {Point} p2 Second point, either as a 2 entry array or object with `left` and `top` properties.\n * @return {Line} Perpendicular line, in the form `[ { x:..., y:... }, { x:..., y:... } ]`.\n */\n _perpendicularLineTo = Biltong.perpendicularLineTo = function(fromPoint, toPoint, length) {\n var m = _gradient(fromPoint, toPoint),\n theta2 = Math.atan(-1 / m),\n y = length / 2 * Math.sin(theta2),\n x = length / 2 * Math.cos(theta2);\n return [{x:toPoint.x + x, y:toPoint.y + y}, {x:toPoint.x - x, y:toPoint.y - y}];\n };\n}).call(typeof window !== 'undefined' ? window : this);\n;\n(function () {\n \"use strict\";\n /**\n * Creates a Touch object.\n * @param view\n * @param target\n * @param pageX\n * @param pageY\n * @param screenX\n * @param screenY\n * @param clientX\n * @param clientY\n * @returns {Touch}\n * @private\n */\n function _touch(view, target, pageX, pageY, screenX, screenY, clientX, clientY) {\n return new Touch({\n target:target,\n identifier:_uuid(),\n pageX: pageX,\n pageY: pageY,\n screenX: screenX,\n screenY: screenY,\n clientX: clientX || screenX,\n clientY: clientY || screenY\n });\n }\n /**\n * Create a synthetic touch list from the given list of Touch objects.\n * @returns {Array}\n * @private\n */\n function _touchList() {\n var list = [];\n Array.prototype.push.apply(list, arguments);\n list.item = function(index) { return this[index]; };\n return list;\n }\n /**\n * Create a Touch object and then insert it into a synthetic touch list, returning the list.s\n * @param view\n * @param target\n * @param pageX\n * @param pageY\n * @param screenX\n * @param screenY\n * @param clientX\n * @param clientY\n * @returns {Array}\n * @private\n */\n function _touchAndList(view, target, pageX, pageY, screenX, screenY, clientX, clientY) {\n return _touchList(_touch.apply(null, arguments));\n }\n var root = this,\n matchesSelector = function (el, selector, ctx) {\n ctx = ctx || el.parentNode;\n var possibles = ctx.querySelectorAll(selector);\n for (var i = 0; i < possibles.length; i++) {\n if (possibles[i] === el) {\n return true;\n }\n }\n return false;\n },\n _gel = function (el) {\n return (typeof el == \"string\" || el.constructor === String) ? document.getElementById(el) : el;\n },\n _t = function (e) {\n return e.srcElement || e.target;\n },\n //\n // gets path info for the given event - the path from target to obj, in the event's bubble chain. if doCompute\n // is false we just return target for the path.\n //\n _pi = function(e, target, obj, doCompute) {\n if (!doCompute) return { path:[target], end:1 };\n else if (typeof e.path !== \"undefined\" && e.path.indexOf) {\n return { path: e.path, end: e.path.indexOf(obj) };\n } else {\n var out = { path:[], end:-1 }, _one = function(el) {\n out.path.push(el);\n if (el === obj) {\n out.end = out.path.length - 1;\n }\n else if (el.parentNode != null) {\n _one(el.parentNode)\n }\n };\n _one(target);\n return out;\n }\n },\n _d = function (l, fn) {\n for (var i = 0, j = l.length; i < j; i++) {\n if (l[i] == fn) break;\n }\n if (i < l.length) l.splice(i, 1);\n },\n guid = 1,\n //\n // this function generates a guid for every handler, sets it on the handler, then adds\n // it to the associated object's map of handlers for the given event. this is what enables us\n // to unbind all events of some type, or all events (the second of which can be requested by the user,\n // but it also used by Mottle when an element is removed.)\n _store = function (obj, event, fn) {\n var g = guid++;\n obj.__ta = obj.__ta || {};\n obj.__ta[event] = obj.__ta[event] || {};\n // store each handler with a unique guid.\n obj.__ta[event][g] = fn;\n // set the guid on the handler.\n fn.__tauid = g;\n return g;\n },\n _unstore = function (obj, event, fn) {\n obj.__ta && obj.__ta[event] && delete obj.__ta[event][fn.__tauid];\n // a handler might have attached extra functions, so we unbind those too.\n if (fn.__taExtra) {\n for (var i = 0; i < fn.__taExtra.length; i++) {\n _unbind(obj, fn.__taExtra[i][0], fn.__taExtra[i][1]);\n }\n fn.__taExtra.length = 0;\n }\n // a handler might have attached an unstore callback\n fn.__taUnstore && fn.__taUnstore();\n },\n _curryChildFilter = function (children, obj, fn, evt) {\n if (children == null) return fn;\n else {\n var c = children.split(\",\"),\n _fn = function (e) {\n _fn.__tauid = fn.__tauid;\n var t = _t(e), target = t; // t is the target element on which the event occurred. it is the\n // element we will wish to pass to any callbacks.\n var pathInfo = _pi(e, t, obj, children != null)\n if (pathInfo.end != -1) {\n for (var p = 0; p < pathInfo.end; p++) {\n target = pathInfo.path[p];\n for (var i = 0; i < c.length; i++) {\n if (matchesSelector(target, c[i], obj)) {\n fn.apply(target, arguments);\n }\n }\n }\n }\n };\n registerExtraFunction(fn, evt, _fn);\n return _fn;\n }\n },\n //\n // registers an 'extra' function on some event listener function we were given - a function that we\n // created and bound to the element as part of our housekeeping, and which we want to unbind and remove\n // whenever the given function is unbound.\n registerExtraFunction = function (fn, evt, newFn) {\n fn.__taExtra = fn.__taExtra || [];\n fn.__taExtra.push([evt, newFn]);\n },\n DefaultHandler = function (obj, evt, fn, children) {\n if (isTouchDevice && touchMap[evt]) {\n var tfn = _curryChildFilter(children, obj, fn, touchMap[evt]);\n _bind(obj, touchMap[evt], tfn , fn);\n }\n if (evt === \"focus\" && obj.getAttribute(\"tabindex\") == null) {\n obj.setAttribute(\"tabindex\", \"1\");\n }\n _bind(obj, evt, _curryChildFilter(children, obj, fn, evt), fn);\n },\n SmartClickHandler = function (obj, evt, fn, children) {\n if (obj.__taSmartClicks == null) {\n var down = function (e) {\n obj.__tad = _pageLocation(e);\n },\n up = function (e) {\n obj.__tau = _pageLocation(e);\n },\n click = function (e) {\n if (obj.__tad && obj.__tau && obj.__tad[0] === obj.__tau[0] && obj.__tad[1] === obj.__tau[1]) {\n for (var i = 0; i < obj.__taSmartClicks.length; i++)\n obj.__taSmartClicks[i].apply(_t(e), [ e ]);\n }\n };\n DefaultHandler(obj, \"mousedown\", down, children);\n DefaultHandler(obj, \"mouseup\", up, children);\n DefaultHandler(obj, \"click\", click, children);\n obj.__taSmartClicks = [];\n }\n // store in the list of callbacks\n obj.__taSmartClicks.push(fn);\n // the unstore function removes this function from the object's listener list for this type.\n fn.__taUnstore = function () {\n _d(obj.__taSmartClicks, fn);\n };\n },\n _tapProfiles = {\n \"tap\": {touches: 1, taps: 1},\n \"dbltap\": {touches: 1, taps: 2},\n \"contextmenu\": {touches: 2, taps: 1}\n },\n TapHandler = function (clickThreshold, dblClickThreshold) {\n return function (obj, evt, fn, children) {\n // if event is contextmenu, for devices which are mouse only, we want to\n // use the default bind.\n if (evt == \"contextmenu\" && isMouseDevice)\n DefaultHandler(obj, evt, fn, children);\n else {\n // the issue here is that this down handler gets registered only for the\n // child nodes in the first registration. in fact it should be registered with\n // no child selector and then on down we should cycle through the registered\n // functions to see if one of them matches. on mouseup we should execute ALL of\n // the functions whose children are either null or match the element.\n if (obj.__taTapHandler == null) {\n var tt = obj.__taTapHandler = {\n tap: [],\n dbltap: [],\n contextmenu: [],\n down: false,\n taps: 0,\n downSelectors: []\n };\n var down = function (e) {\n var target = _t(e), pathInfo = _pi(e, target, obj, children != null), finished = false;\n for (var p = 0; p < pathInfo.end; p++) {\n if (finished) return;\n target = pathInfo.path[p];\n for (var i = 0; i < tt.downSelectors.length; i++) {\n if (tt.downSelectors[i] == null || matchesSelector(target, tt.downSelectors[i], obj)) {\n tt.down = true;\n setTimeout(clearSingle, clickThreshold);\n setTimeout(clearDouble, dblClickThreshold);\n finished = true;\n break; // we only need one match on mousedown\n }\n }\n }\n },\n up = function (e) {\n if (tt.down) {\n var target = _t(e), currentTarget, pathInfo;\n tt.taps++;\n var tc = _touchCount(e);\n for (var eventId in _tapProfiles) {\n if (_tapProfiles.hasOwnProperty(eventId)) {\n var p = _tapProfiles[eventId];\n if (p.touches === tc && (p.taps === 1 || p.taps === tt.taps)) {\n for (var i = 0; i < tt[eventId].length; i++) {\n pathInfo = _pi(e, target, obj, tt[eventId][i][1] != null);\n for (var pLoop = 0; pLoop < pathInfo.end; pLoop++) {\n currentTarget = pathInfo.path[pLoop];\n // this is a single event registration handler.\n if (tt[eventId][i][1] == null || matchesSelector(currentTarget, tt[eventId][i][1], obj)) {\n tt[eventId][i][0].apply(currentTarget, [ e ]);\n break;\n }\n }\n }\n }\n }\n }\n }\n },\n clearSingle = function () {\n tt.down = false;\n },\n clearDouble = function () {\n tt.taps = 0;\n };\n DefaultHandler(obj, \"mousedown\", down);\n DefaultHandler(obj, \"mouseup\", up);\n }\n // add this child selector (it can be null, that's fine).\n obj.__taTapHandler.downSelectors.push(children);\n obj.__taTapHandler[evt].push([fn, children]);\n // the unstore function removes this function from the object's listener list for this type.\n fn.__taUnstore = function () {\n _d(obj.__taTapHandler[evt], fn);\n };\n }\n };\n },\n meeHelper = function (type, evt, obj, target) {\n for (var i in obj.__tamee[type]) {\n if (obj.__tamee[type].hasOwnProperty(i)) {\n obj.__tamee[type][i].apply(target, [ evt ]);\n }\n }\n },\n MouseEnterExitHandler = function () {\n var activeElements = [];\n return function (obj, evt, fn, children) {\n if (!obj.__tamee) {\n // __tamee holds a flag saying whether the mouse is currently \"in\" the element, and a list of\n // both mouseenter and mouseexit functions.\n obj.__tamee = { over: false, mouseenter: [], mouseexit: [] };\n // register over and out functions\n var over = function (e) {\n var t = _t(e);\n if ((children == null && (t == obj && !obj.__tamee.over)) || (matchesSelector(t, children, obj) && (t.__tamee == null || !t.__tamee.over))) {\n meeHelper(\"mouseenter\", e, obj, t);\n t.__tamee = t.__tamee || {};\n t.__tamee.over = true;\n activeElements.push(t);\n }\n },\n out = function (e) {\n var t = _t(e);\n // is the current target one of the activeElements? and is the\n // related target NOT a descendant of it?\n for (var i = 0; i < activeElements.length; i++) {\n if (t == activeElements[i] && !matchesSelector((e.relatedTarget || e.toElement), \"*\", t)) {\n t.__tamee.over = false;\n activeElements.splice(i, 1);\n meeHelper(\"mouseexit\", e, obj, t);\n }\n }\n };\n _bind(obj, \"mouseover\", _curryChildFilter(children, obj, over, \"mouseover\"), over);\n _bind(obj, \"mouseout\", _curryChildFilter(children, obj, out, \"mouseout\"), out);\n }\n fn.__taUnstore = function () {\n delete obj.__tamee[evt][fn.__tauid];\n };\n _store(obj, evt, fn);\n obj.__tamee[evt][fn.__tauid] = fn;\n };\n },\n isTouchDevice = \"ontouchstart\" in document.documentElement || navigator.maxTouchPoints,\n isMouseDevice = \"onmousedown\" in document.documentElement,\n touchMap = { \"mousedown\": \"touchstart\", \"mouseup\": \"touchend\", \"mousemove\": \"touchmove\" },\n touchstart = \"touchstart\", touchend = \"touchend\", touchmove = \"touchmove\",\n iev = (function () {\n var rv = -1;\n if (navigator.appName == 'Microsoft Internet Explorer') {\n var ua = navigator.userAgent,\n re = new RegExp(\"MSIE ([0-9]{1,}[\\.0-9]{0,})\");\n if (re.exec(ua) != null)\n rv = parseFloat(RegExp.$1);\n }\n return rv;\n })(),\n isIELT9 = iev > -1 && iev < 9,\n _genLoc = function (e, prefix) {\n if (e == null) return [ 0, 0 ];\n var ts = _touches(e), t = _getTouch(ts, 0);\n return [t[prefix + \"X\"], t[prefix + \"Y\"]];\n },\n _pageLocation = function (e) {\n if (e == null) return [ 0, 0 ];\n if (isIELT9) {\n return [ e.clientX + document.documentElement.scrollLeft, e.clientY + document.documentElement.scrollTop ];\n }\n else {\n return _genLoc(e, \"page\");\n }\n },\n _screenLocation = function (e) {\n return _genLoc(e, \"screen\");\n },\n _clientLocation = function (e) {\n return _genLoc(e, \"client\");\n },\n _getTouch = function (touches, idx) {\n return touches.item ? touches.item(idx) : touches[idx];\n },\n _touches = function (e) {\n return e.touches && e.touches.length > 0 ? e.touches :\n e.changedTouches && e.changedTouches.length > 0 ? e.changedTouches :\n e.targetTouches && e.targetTouches.length > 0 ? e.targetTouches :\n [ e ];\n },\n _touchCount = function (e) {\n return _touches(e).length;\n },\n //http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html\n _bind = function (obj, type, fn, originalFn) {\n _store(obj, type, fn);\n originalFn.__tauid = fn.__tauid;\n if (obj.addEventListener)\n obj.addEventListener(type, fn, false);\n else if (obj.attachEvent) {\n var key = type + fn.__tauid;\n obj[\"e\" + key] = fn;\n // TODO look at replacing with .call(..)\n obj[key] = function () {\n obj[\"e\" + key] && obj[\"e\" + key](window.event);\n };\n obj.attachEvent(\"on\" + type, obj[key]);\n }\n },\n _unbind = function (obj, type, fn) {\n if (fn == null) return;\n _each(obj, function () {\n var _el = _gel(this);\n _unstore(_el, type, fn);\n // it has been bound if there is a tauid. otherwise it was not bound and we can ignore it.\n if (fn.__tauid != null) {\n if (_el.removeEventListener) {\n _el.removeEventListener(type, fn, false);\n if (isTouchDevice && touchMap[type]) _el.removeEventListener(touchMap[type], fn, false);\n }\n else if (this.detachEvent) {\n var key = type + fn.__tauid;\n _el[key] && _el.detachEvent(\"on\" + type, _el[key]);\n _el[key] = null;\n _el[\"e\" + key] = null;\n }\n }\n // if a touch event was also registered, deregister now.\n if (fn.__taTouchProxy) {\n _unbind(obj, fn.__taTouchProxy[1], fn.__taTouchProxy[0]);\n }\n });\n },\n _each = function (obj, fn) {\n if (obj == null) return;\n // if a list (or list-like), use it. if a string, get a list\n // by running the string through querySelectorAll. else, assume\n // it's an Element.\n // obj.top is \"unknown\" in IE8.\n obj = (typeof Window !== \"undefined\" && (typeof obj.top !== \"unknown\" && obj == obj.top)) ? [ obj ] :\n (typeof obj !== \"string\") && (obj.tagName == null && obj.length != null) ? obj :\n typeof obj === \"string\" ? document.querySelectorAll(obj)\n : [ obj ];\n for (var i = 0; i < obj.length; i++)\n fn.apply(obj[i]);\n },\n _uuid = function () {\n return ('xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);\n return v.toString(16);\n }));\n };\n /**\n * Mottle offers support for abstracting out the differences\n * between touch and mouse devices, plus \"smart click\" functionality\n * (don't fire click if the mouse has moved between mousedown and mouseup),\n * and synthesized click/tap events.\n * @class Mottle\n * @constructor\n * @param {Object} params Constructor params\n * @param {Number} [params.clickThreshold=250] Threshold, in milliseconds beyond which a touchstart followed by a touchend is not considered to be a click.\n * @param {Number} [params.dblClickThreshold=450] Threshold, in milliseconds beyond which two successive tap events are not considered to be a click.\n * @param {Boolean} [params.smartClicks=false] If true, won't fire click events if the mouse has moved between mousedown and mouseup. Note that this functionality\n * requires that Mottle consume the mousedown event, and so may not be viable in all use cases.\n */\n root.Mottle = function (params) {\n params = params || {};\n var clickThreshold = params.clickThreshold || 250,\n dblClickThreshold = params.dblClickThreshold || 450,\n mouseEnterExitHandler = new MouseEnterExitHandler(),\n tapHandler = new TapHandler(clickThreshold, dblClickThreshold),\n _smartClicks = params.smartClicks,\n _doBind = function (obj, evt, fn, children) {\n if (fn == null) return;\n _each(obj, function () {\n var _el = _gel(this);\n if (_smartClicks && evt === \"click\")\n SmartClickHandler(_el, evt, fn, children);\n else if (evt === \"tap\" || evt === \"dbltap\" || evt === \"contextmenu\") {\n tapHandler(_el, evt, fn, children);\n }\n else if (evt === \"mouseenter\" || evt == \"mouseexit\")\n mouseEnterExitHandler(_el, evt, fn, children);\n else\n DefaultHandler(_el, evt, fn, children);\n });\n };\n /**\n * Removes an element from the DOM, and deregisters all event handlers for it. You should use this\n * to ensure you don't leak memory.\n * @method remove\n * @param {String|Element} el Element, or id of the element, to remove.\n * @return {Mottle} The current Mottle instance; you can chain this method.\n */\n this.remove = function (el) {\n _each(el, function () {\n var _el = _gel(this);\n if (_el.__ta) {\n for (var evt in _el.__ta) {\n if (_el.__ta.hasOwnProperty(evt)) {\n for (var h in _el.__ta[evt]) {\n if (_el.__ta[evt].hasOwnProperty(h))\n _unbind(_el, evt, _el.__ta[evt][h]);\n }\n }\n }\n }\n _el.parentNode && _el.parentNode.removeChild(_el);\n });\n return this;\n };\n /**\n * Register an event handler, optionally as a delegate for some set of descendant elements. Note\n * that this method takes either 3 or 4 arguments - if you supply 3 arguments it is assumed you have\n * omitted the `children` parameter, and that the event handler should be bound directly to the given element.\n * @method on\n * @param {Element[]|Element|String} el Either an Element, or a CSS spec for a list of elements, or an array of Elements.\n * @param {String} [children] Comma-delimited list of selectors identifying allowed children.\n * @param {String} event Event ID.\n * @param {Function} fn Event handler function.\n * @return {Mottle} The current Mottle instance; you can chain this method.\n */\n this.on = function (el, event, children, fn) {\n var _el = arguments[0],\n _c = arguments.length == 4 ? arguments[2] : null,\n _e = arguments[1],\n _f = arguments[arguments.length - 1];\n _doBind(_el, _e, _f, _c);\n return this;\n };\n /**\n * Cancel delegate event handling for the given function. Note that unlike with 'on' you do not supply\n * a list of child selectors here: it removes event delegation from all of the child selectors for which the\n * given function was registered (if any).\n * @method off\n * @param {Element[]|Element|String} el Element - or ID of element - from which to remove event listener.\n * @param {String} event Event ID.\n * @param {Function} fn Event handler function.\n * @return {Mottle} The current Mottle instance; you can chain this method.\n */\n this.off = function (el, event, fn) {\n _unbind(el, event, fn);\n return this;\n };\n /**\n * Triggers some event for a given element.\n * @method trigger\n * @param {Element} el Element for which to trigger the event.\n * @param {String} event Event ID.\n * @param {Event} originalEvent The original event. Should be optional of course, but currently is not, due\n * to the jsPlumb use case that caused this method to be added.\n * @param {Object} [payload] Optional object to set as `payload` on the generated event; useful for message passing.\n * @return {Mottle} The current Mottle instance; you can chain this method.\n */\n this.trigger = function (el, event, originalEvent, payload) {\n // MouseEvent undefined in old IE; that's how we know it's a mouse event. A fine Microsoft paradox.\n var originalIsMouse = isMouseDevice && (typeof MouseEvent === \"undefined\" || originalEvent == null || originalEvent.constructor === MouseEvent);\n var eventToBind = (isTouchDevice && !isMouseDevice && touchMap[event]) ? touchMap[event] : event,\n bindingAMouseEvent = !(isTouchDevice && !isMouseDevice && touchMap[event]);\n var pl = _pageLocation(originalEvent), sl = _screenLocation(originalEvent), cl = _clientLocation(originalEvent);\n _each(el, function () {\n var _el = _gel(this), evt;\n originalEvent = originalEvent || {\n screenX: sl[0],\n screenY: sl[1],\n clientX: cl[0],\n clientY: cl[1]\n };\n var _decorate = function (_evt) {\n if (payload) _evt.payload = payload;\n };\n var eventGenerators = {\n \"TouchEvent\": function (evt) {\n var touchList = _touchAndList(window, _el, 0, pl[0], pl[1], sl[0], sl[1], cl[0], cl[1]),\n init = evt.initTouchEvent || evt.initEvent;\n init(eventToBind, true, true, window, null, sl[0], sl[1],\n cl[0], cl[1], false, false, false, false,\n touchList, touchList, touchList, 1, 0);\n },\n \"MouseEvents\": function (evt) {\n evt.initMouseEvent(eventToBind, true, true, window, 0,\n sl[0], sl[1],\n cl[0], cl[1],\n false, false, false, false, 1, _el);\n }\n };\n if (document.createEvent) {\n var ite = !bindingAMouseEvent && !originalIsMouse && (isTouchDevice && touchMap[event]),\n evtName = ite ? \"TouchEvent\" : \"MouseEvents\";\n evt = document.createEvent(evtName);\n eventGenerators[evtName](evt);\n _decorate(evt);\n _el.dispatchEvent(evt);\n }\n else if (document.createEventObject) {\n evt = document.createEventObject();\n evt.eventType = evt.eventName = eventToBind;\n evt.screenX = sl[0];\n evt.screenY = sl[1];\n evt.clientX = cl[0];\n evt.clientY = cl[1];\n _decorate(evt);\n _el.fireEvent('on' + eventToBind, evt);\n }\n });\n return this;\n }\n };\n /**\n * Static method to assist in 'consuming' an element: uses `stopPropagation` where available, or sets\n * `e.returnValue=false` where it is not.\n * @method Mottle.consume\n * @param {Event} e Event to consume\n * @param {Boolean} [doNotPreventDefault=false] If true, does not call `preventDefault()` on the event.\n */\n root.Mottle.consume = function (e, doNotPreventDefault) {\n if (e.stopPropagation)\n e.stopPropagation();\n else\n e.returnValue = false;\n if (!doNotPreventDefault && e.preventDefault)\n e.preventDefault();\n };\n /**\n * Gets the page location corresponding to the given event. For touch events this means get the page location of the first touch.\n * @method Mottle.pageLocation\n * @param {Event} e Event to get page location for.\n * @return {Number[]} [left, top] for the given event.\n */\n root.Mottle.pageLocation = _pageLocation;\n /**\n * Forces touch events to be turned \"on\". Useful for testing: even if you don't have a touch device, you can still\n * trigger a touch event when this is switched on and it will be captured and acted on.\n * @method setForceTouchEvents\n * @param {Boolean} value If true, force touch events to be on.\n */\n root.Mottle.setForceTouchEvents = function (value) {\n isTouchDevice = value;\n };\n /**\n * Forces mouse events to be turned \"on\". Useful for testing: even if you don't have a mouse, you can still\n * trigger a mouse event when this is switched on and it will be captured and acted on.\n * @method setForceMouseEvents\n * @param {Boolean} value If true, force mouse events to be on.\n */\n root.Mottle.setForceMouseEvents = function (value) {\n isMouseDevice = value;\n };\n root.Mottle.version = \"0.8.0\";\n if (typeof exports !== \"undefined\") {\n exports.Mottle = root.Mottle;\n }\n}).call(typeof window === \"undefined\" ? this : window);\n/**\n drag/drop functionality for use with jsPlumb but with\n no knowledge of jsPlumb. supports multiple scopes (separated by whitespace), dragging\n multiple elements, constrain to parent, drop filters, drag start filters, custom\n css classes.\n a lot of the functionality of this script is expected to be plugged in:\n addClass\n removeClass\n addEvent\n removeEvent\n getPosition\n setPosition\n getSize\n indexOf\n intersects\n the name came from here:\n http://mrsharpoblunto.github.io/foswig.js/\n copyright 2016 jsPlumb\n */\n;(function() {\n \"use strict\";\n var root = this;\n var _suggest = function(list, item, head) {\n if (list.indexOf(item) === -1) {\n head ? list.unshift(item) : list.push(item);\n return true;\n }\n return false;\n };\n var _vanquish = function(list, item) {\n var idx = list.indexOf(item);\n if (idx !== -1) list.splice(idx, 1);\n };\n var _difference = function(l1, l2) {\n var d = [];\n for (var i = 0; i < l1.length; i++) {\n if (l2.indexOf(l1[i]) === -1)\n d.push(l1[i]);\n }\n return d;\n };\n var _isString = function(f) {\n return f == null ? false : (typeof f === \"string\" || f.constructor === String);\n };\n var getOffsetRect = function (elem) {\n // (1)\n var box = elem.getBoundingClientRect(),\n body = document.body,\n docElem = document.documentElement,\n // (2)\n scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop,\n scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft,\n // (3)\n clientTop = docElem.clientTop || body.clientTop || 0,\n clientLeft = docElem.clientLeft || body.clientLeft || 0,\n // (4)\n top = box.top + scrollTop - clientTop,\n left = box.left + scrollLeft - clientLeft;\n return { top: Math.round(top), left: Math.round(left) };\n };\n var matchesSelector = function(el, selector, ctx) {\n ctx = ctx || el.parentNode;\n var possibles = ctx.querySelectorAll(selector);\n for (var i = 0; i < possibles.length; i++) {\n if (possibles[i] === el)\n return true;\n }\n return false;\n };\n var findDelegateElement = function(parentElement, childElement, selector) {\n if (matchesSelector(childElement, selector, parentElement)) {\n return childElement;\n } else {\n var currentParent = childElement.parentNode;\n while (currentParent != null && currentParent !== parentElement) {\n if (matchesSelector(currentParent, selector, parentElement)) {\n return currentParent;\n } else {\n currentParent = currentParent.parentNode;\n }\n }\n }\n };\n /**\n * Finds all elements matching the given selector, for the given parent. In order to support \"scoped root\" selectors,\n * ie. things like \"> .someClass\", that is .someClass elements that are direct children of `parentElement`, we have to\n * jump through a small hoop here: when a delegate draggable is registered, we write a `katavorio-draggable` attribute\n * on the element on which the draggable is registered. Then when this method runs, we grab the value of that attribute and\n * prepend it as part of the selector we're looking for. So \"> .someClass\" ends up being written as\n * \"[katavorio-draggable='...' > .someClass]\", which works with querySelectorAll.\n *\n * @param availableSelectors\n * @param parentElement\n * @param childElement\n * @returns {*}\n */\n var findMatchingSelector = function(availableSelectors, parentElement, childElement) {\n var el = null;\n var draggableId = parentElement.getAttribute(\"katavorio-draggable\"),\n prefix = draggableId != null ? \"[katavorio-draggable='\" + draggableId + \"'] \" : \"\";\n for (var i = 0; i < availableSelectors.length; i++) {\n el = findDelegateElement(parentElement, childElement, prefix + availableSelectors[i].selector);\n if (el != null) {\n if (availableSelectors[i].filter) {\n var matches = matchesSelector(childElement, availableSelectors[i].filter, el),\n exclude = availableSelectors[i].filterExclude === true;\n if ( (exclude && !matches) || matches) {\n return null;\n }\n }\n return [ availableSelectors[i], el ];\n }\n }\n return null;\n };\n var iev = (function() {\n var rv = -1;\n if (navigator.appName === 'Microsoft Internet Explorer') {\n var ua = navigator.userAgent,\n re = new RegExp(\"MSIE ([0-9]{1,}[\\.0-9]{0,})\");\n if (re.exec(ua) != null)\n rv = parseFloat(RegExp.$1);\n }\n return rv;\n })(),\n DEFAULT_GRID_X = 10,\n DEFAULT_GRID_Y = 10,\n isIELT9 = iev > -1 && iev < 9,\n isIE9 = iev === 9,\n _pl = function(e) {\n if (isIELT9) {\n return [ e.clientX + document.documentElement.scrollLeft, e.clientY + document.documentElement.scrollTop ];\n }\n else {\n var ts = _touches(e), t = _getTouch(ts, 0);\n // for IE9 pageX might be null if the event was synthesized. We try for pageX/pageY first,\n // falling back to clientX/clientY if necessary. In every other browser we want to use pageX/pageY.\n return isIE9 ? [t.pageX || t.clientX, t.pageY || t.clientY] : [t.pageX, t.pageY];\n }\n },\n _getTouch = function(touches, idx) { return touches.item ? touches.item(idx) : touches[idx]; },\n _touches = function(e) {\n return e.touches && e.touches.length > 0 ? e.touches :\n e.changedTouches && e.changedTouches.length > 0 ? e.changedTouches :\n e.targetTouches && e.targetTouches.length > 0 ? e.targetTouches :\n [ e ];\n },\n _classes = {\n delegatedDraggable:\"katavorio-delegated-draggable\", // elements that are the delegated drag handler for a bunch of other elements\n draggable:\"katavorio-draggable\", // draggable elements\n droppable:\"katavorio-droppable\", // droppable elements\n drag : \"katavorio-drag\", // elements currently being dragged\n selected:\"katavorio-drag-selected\", // elements in current drag selection\n active : \"katavorio-drag-active\", // droppables that are targets of a currently dragged element\n hover : \"katavorio-drag-hover\", // droppables over which a matching drag element is hovering\n noSelect : \"katavorio-drag-no-select\", // added to the body to provide a hook to suppress text selection\n ghostProxy:\"katavorio-ghost-proxy\", // added to a ghost proxy element in use when a drag has exited the bounds of its parent.\n clonedDrag:\"katavorio-clone-drag\" // added to a node that is a clone of an element created at the start of a drag\n },\n _defaultScope = \"katavorio-drag-scope\",\n _events = [ \"stop\", \"start\", \"drag\", \"drop\", \"over\", \"out\", \"beforeStart\" ],\n _devNull = function() {},\n _true = function() { return true; },\n _foreach = function(l, fn, from) {\n for (var i = 0; i < l.length; i++) {\n if (l[i] != from)\n fn(l[i]);\n }\n },\n _setDroppablesActive = function(dd, val, andHover, drag) {\n _foreach(dd, function(e) {\n e.setActive(val);\n if (val) e.updatePosition();\n if (andHover) e.setHover(drag, val);\n });\n },\n _each = function(obj, fn) {\n if (obj == null) return;\n obj = !_isString(obj) && (obj.tagName == null && obj.length != null) ? obj : [ obj ];\n for (var i = 0; i < obj.length; i++)\n fn.apply(obj[i], [ obj[i] ]);\n },\n _consume = function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n e.preventDefault();\n }\n else {\n e.returnValue = false;\n }\n },\n _defaultInputFilterSelector = \"input,textarea,select,button,option\",\n //\n // filters out events on all input elements, like textarea, checkbox, input, select.\n _inputFilter = function(e, el, _katavorio) {\n var t = e.srcElement || e.target;\n return !matchesSelector(t, _katavorio.getInputFilterSelector(), el);\n };\n var Super = function(el, params, css, scope) {\n this.params = params || {};\n this.el = el;\n this.params.addClass(this.el, this._class);\n this.uuid = _uuid();\n var enabled = true;\n this.setEnabled = function(e) { enabled = e; };\n this.isEnabled = function() { return enabled; };\n this.toggleEnabled = function() { enabled = !enabled; };\n this.setScope = function(scopes) {\n this.scopes = scopes ? scopes.split(/\\s+/) : [ scope ];\n };\n this.addScope = function(scopes) {\n var m = {};\n _each(this.scopes, function(s) { m[s] = true;});\n _each(scopes ? scopes.split(/\\s+/) : [], function(s) { m[s] = true;});\n this.scopes = [];\n for (var i in m) this.scopes.push(i);\n };\n this.removeScope = function(scopes) {\n var m = {};\n _each(this.scopes, function(s) { m[s] = true;});\n _each(scopes ? scopes.split(/\\s+/) : [], function(s) { delete m[s];});\n this.scopes = [];\n for (var i in m) this.scopes.push(i);\n };\n this.toggleScope = function(scopes) {\n var m = {};\n _each(this.scopes, function(s) { m[s] = true;});\n _each(scopes ? scopes.split(/\\s+/) : [], function(s) {\n if (m[s]) delete m[s];\n else m[s] = true;\n });\n this.scopes = [];\n for (var i in m) this.scopes.push(i);\n };\n this.setScope(params.scope);\n this.k = params.katavorio;\n return params.katavorio;\n };\n var TRUE = function() { return true; };\n var FALSE = function() { return false; };\n var Drag = function(el, params, css, scope) {\n this._class = css.draggable;\n var k = Super.apply(this, arguments);\n this.rightButtonCanDrag = this.params.rightButtonCanDrag;\n var downAt = [0,0], posAtDown = null, pagePosAtDown = null, pageDelta = [0,0], moving = false, initialScroll = [0,0],\n consumeStartEvent = this.params.consumeStartEvent !== false,\n dragEl = this.el,\n clone = this.params.clone,\n scroll = this.params.scroll,\n _multipleDrop = params.multipleDrop !== false,\n isConstrained = false,\n //useGhostProxy = params.ghostProxy === true ? TRUE : params.ghostProxy && typeof params.ghostProxy === \"function\" ? params.ghostProxy : FALSE,\n useGhostProxy,\n ghostProxy,// = function(el) { return el.cloneNode(true); },\n elementToDrag = null,\n availableSelectors = [],\n activeSelectorParams = null, // which, if any, selector config is currently active.\n ghostProxyParent = params.ghostProxyParent,\n currentParentPosition,\n ghostParentPosition,\n ghostDx,\n ghostDy;\n if (params.ghostProxy === true) {\n useGhostProxy = TRUE;\n } else {\n if (params.ghostProxy && typeof params.ghostProxy === \"function\") {\n useGhostProxy = params.ghostProxy;\n } else {\n useGhostProxy = function(container, dragEl) {\n if (activeSelectorParams && activeSelectorParams.useGhostProxy) {\n return activeSelectorParams.useGhostProxy(container, dragEl);\n } else {\n return false;\n }\n }\n }\n }\n if (params.makeGhostProxy) {\n ghostProxy = params.makeGhostProxy;\n } else {\n ghostProxy = function(el) {\n if (activeSelectorParams && activeSelectorParams.makeGhostProxy) {\n return activeSelectorParams.makeGhostProxy(el);\n } else {\n return el.cloneNode(true);\n }\n };\n }\n // if an initial selector was provided, push the entire set of params as a selector config.\n if (params.selector) {\n var draggableId = el.getAttribute(\"katavorio-draggable\");\n if (draggableId == null) {\n draggableId = \"\" + new Date().getTime();\n el.setAttribute(\"katavorio-draggable\", draggableId);\n }\n availableSelectors.push(params);\n }\n var snapThreshold = params.snapThreshold,\n _snap = function(pos, gridX, gridY, thresholdX, thresholdY) {\n var _dx = Math.floor(pos[0] / gridX),\n _dxl = gridX * _dx,\n _dxt = _dxl + gridX,\n _x = Math.abs(pos[0] - _dxl) <= thresholdX ? _dxl : Math.abs(_dxt - pos[0]) <= thresholdX ? _dxt : pos[0];\n var _dy = Math.floor(pos[1] / gridY),\n _dyl = gridY * _dy,\n _dyt = _dyl + gridY,\n _y = Math.abs(pos[1] - _dyl) <= thresholdY ? _dyl : Math.abs(_dyt - pos[1]) <= thresholdY ? _dyt : pos[1];\n return [ _x, _y];\n };\n this.posses = [];\n this.posseRoles = {};\n this.toGrid = function(pos) {\n if (this.params.grid == null) {\n return pos;\n }\n else {\n var tx = this.params.grid ? this.params.grid[0] / 2 : snapThreshold ? snapThreshold : DEFAULT_GRID_X / 2,\n ty = this.params.grid ? this.params.grid[1] / 2 : snapThreshold ? snapThreshold : DEFAULT_GRID_Y / 2;\n return _snap(pos, this.params.grid[0], this.params.grid[1], tx, ty);\n }\n };\n this.snap = function(x, y) {\n if (dragEl == null) return;\n x = x || (this.params.grid ? this.params.grid[0] : DEFAULT_GRID_X);\n y = y || (this.params.grid ? this.params.grid[1] : DEFAULT_GRID_Y);\n var p = this.params.getPosition(dragEl),\n tx = this.params.grid ? this.params.grid[0] / 2 : snapThreshold,\n ty = this.params.grid ? this.params.grid[1] / 2 : snapThreshold,\n snapped = _snap(p, x, y, tx, ty);\n this.params.setPosition(dragEl, snapped);\n return snapped;\n };\n this.setUseGhostProxy = function(val) {\n useGhostProxy = val ? TRUE : FALSE;\n };\n var constrain;\n var negativeFilter = function(pos) {\n return (params.allowNegative === false) ? [ Math.max (0, pos[0]), Math.max(0, pos[1]) ] : pos;\n };\n var _setConstrain = function(value) {\n constrain = typeof value === \"function\" ? value : value ? function(pos, dragEl, _constrainRect, _size) {\n return negativeFilter([\n Math.max(0, Math.min(_constrainRect.w - _size[0], pos[0])),\n Math.max(0, Math.min(_constrainRect.h - _size[1], pos[1]))\n ]);\n }.bind(this) : function(pos) { return negativeFilter(pos); };\n }.bind(this);\n _setConstrain(typeof this.params.constrain === \"function\" ? this.params.constrain : (this.params.constrain || this.params.containment));\n /**\n * Sets whether or not the Drag is constrained. A value of 'true' means constrain to parent bounds; a function\n * will be executed and returns true if the position is allowed.\n * @param value\n */\n this.setConstrain = function(value) {\n _setConstrain(value);\n };\n /* private */ var _doConstrain = function(pos, dragEl, _constrainRect, _size) {\n if (activeSelectorParams != null && activeSelectorParams.constrain && typeof activeSelectorParams.constrain === \"function\") {\n return activeSelectorParams.constrain(pos, dragEl, _constrainRect, _size);\n } else {\n return constrain(pos, dragEl, _constrainRect, _size);\n }\n };\n var revertFunction;\n /**\n * Sets a function to call on drag stop, which, if it returns true, indicates that the given element should\n * revert to its position before the previous drag.\n * @param fn\n */\n this.setRevert = function(fn) {\n revertFunction = fn;\n };\n if (this.params.revert) {\n revertFunction = this.params.revert;\n }\n var _assignId = function(obj) {\n if (typeof obj === \"function\") {\n obj._katavorioId = _uuid();\n return obj._katavorioId;\n } else {\n return obj;\n }\n },\n // a map of { spec -> [ fn, exclusion ] } entries.\n _filters = {},\n _testFilter = function(e) {\n for (var key in _filters) {\n var f = _filters[key];\n var rv = f[0](e);\n if (f[1]) rv = !rv;\n if (!rv) return false;\n }\n return true;\n },\n _setFilter = this.setFilter = function(f, _exclude) {\n if (f) {\n var key = _assignId(f);\n _filters[key] = [\n function(e) {\n var t = e.srcElement || e.target, m;\n if (_isString(f)) {\n m = matchesSelector(t, f, el);\n }\n else if (typeof f === \"function\") {\n m = f(e, el);\n }\n return m;\n },\n _exclude !== false\n ];\n }\n },\n _addFilter = this.addFilter = _setFilter,\n _removeFilter = this.removeFilter = function(f) {\n var key = typeof f === \"function\" ? f._katavorioId : f;\n delete _filters[key];\n };\n this.clearAllFilters = function() {\n _filters = {};\n };\n this.canDrag = this.params.canDrag || _true;\n var constrainRect,\n matchingDroppables = [],\n intersectingDroppables = [];\n this.addSelector = function(params) {\n if (params.selector) {\n availableSelectors.push(params);\n }\n };\n this.downListener = function(e) {\n if (e.defaultPrevented) { return; }\n var isNotRightClick = this.rightButtonCanDrag || (e.which !== 3 && e.button !== 2);\n if (isNotRightClick && this.isEnabled() && this.canDrag()) {\n var _f = _testFilter(e) && _inputFilter(e, this.el, this.k);\n if (_f) {\n activeSelectorParams = null;\n elementToDrag = null;\n // if (selector) {\n // elementToDrag = findDelegateElement(this.el, e.target || e.srcElement, selector);\n // if(elementToDrag == null) {\n // return;\n // }\n // }\n if (availableSelectors.length > 0) {\n var match = findMatchingSelector(availableSelectors, this.el, e.target || e.srcElement);\n if (match != null) {\n activeSelectorParams = match[0];\n elementToDrag = match[1];\n }\n // elementToDrag = findDelegateElement(this.el, e.target || e.srcElement, selector);\n if(elementToDrag == null) {\n return;\n }\n }\n else {\n elementToDrag = this.el;\n }\n if (clone) {\n dragEl = elementToDrag.cloneNode(true);\n this.params.addClass(dragEl, _classes.clonedDrag);\n dragEl.setAttribute(\"id\", null);\n dragEl.style.position = \"absolute\";\n if (this.params.parent != null) {\n var p = this.params.getPosition(this.el);\n dragEl.style.left = p[0] + \"px\";\n dragEl.style.top = p[1] + \"px\";\n this.params.parent.appendChild(dragEl);\n } else {\n // the clone node is added to the body; getOffsetRect gives us a value\n // relative to the body.\n var b = getOffsetRect(elementToDrag);\n dragEl.style.left = b.left + \"px\";\n dragEl.style.top = b.top + \"px\";\n document.body.appendChild(dragEl);\n }\n } else {\n dragEl = elementToDrag;\n }\n consumeStartEvent && _consume(e);\n downAt = _pl(e);\n if (dragEl && dragEl.parentNode)\n {\n initialScroll = [dragEl.parentNode.scrollLeft, dragEl.parentNode.scrollTop];\n }\n //\n this.params.bind(document, \"mousemove\", this.moveListener);\n this.params.bind(document, \"mouseup\", this.upListener);\n k.markSelection(this);\n k.markPosses(this);\n this.params.addClass(document.body, css.noSelect);\n _dispatch(\"beforeStart\", {el:this.el, pos:posAtDown, e:e, drag:this});\n }\n else if (this.params.consumeFilteredEvents) {\n _consume(e);\n }\n }\n }.bind(this);\n this.moveListener = function(e) {\n if (downAt) {\n if (!moving) {\n var _continue = _dispatch(\"start\", {el:this.el, pos:posAtDown, e:e, drag:this});\n if (_continue !== false) {\n if (!downAt) {\n return;\n }\n this.mark(true);\n moving = true;\n } else {\n this.abort();\n }\n }\n // it is possible that the start event caused the drag to be aborted. So we check\n // again that we are currently dragging.\n if (downAt) {\n intersectingDroppables.length = 0;\n var pos = _pl(e), dx = pos[0] - downAt[0], dy = pos[1] - downAt[1],\n z = this.params.ignoreZoom ? 1 : k.getZoom();\n if (dragEl && dragEl.parentNode)\n {\n dx += dragEl.parentNode.scrollLeft - initialScroll[0];\n dy += dragEl.parentNode.scrollTop - initialScroll[1];\n }\n dx /= z;\n dy /= z;\n this.moveBy(dx, dy, e);\n k.updateSelection(dx, dy, this);\n k.updatePosses(dx, dy, this);\n }\n }\n }.bind(this);\n this.upListener = function(e) {\n if (downAt) {\n downAt = null;\n this.params.unbind(document, \"mousemove\", this.moveListener);\n this.params.unbind(document, \"mouseup\", this.upListener);\n this.params.removeClass(document.body, css.noSelect);\n this.unmark(e);\n k.unmarkSelection(this, e);\n k.unmarkPosses(this, e);\n this.stop(e);\n k.notifyPosseDragStop(this, e);\n moving = false;\n intersectingDroppables.length = 0;\n if (clone) {\n dragEl && dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n dragEl = null;\n } else {\n if (revertFunction && revertFunction(dragEl, this.params.getPosition(dragEl)) === true) {\n this.params.setPosition(dragEl, posAtDown);\n _dispatch(\"revert\", dragEl);\n }\n }\n }\n }.bind(this);\n this.getFilters = function() { return _filters; };\n this.abort = function() {\n if (downAt != null) {\n this.upListener();\n }\n };\n /**\n * Returns the element that was last dragged. This may be some original element from the DOM, or if `clone` is\n * set, then its actually a copy of some original DOM element. In some client calls to this method, it is the\n * actual element that was dragged that is desired. In others, it is the original DOM element that the user\n * wishes to get - in which case, pass true for `retrieveOriginalElement`.\n *\n * @returns {*}\n */\n this.getDragElement = function(retrieveOriginalElement) {\n return retrieveOriginalElement ? elementToDrag || this.el : dragEl || this.el;\n };\n var listeners = {\"start\":[], \"drag\":[], \"stop\":[], \"over\":[], \"out\":[], \"beforeStart\":[], \"revert\":[] };\n if (params.events.start) listeners.start.push(params.events.start);\n if (params.events.beforeStart) listeners.beforeStart.push(params.events.beforeStart);\n if (params.events.stop) listeners.stop.push(params.events.stop);\n if (params.events.drag) listeners.drag.push(params.events.drag);\n if (params.events.revert) listeners.revert.push(params.events.revert);\n this.on = function(evt, fn) {\n if (listeners[evt]) listeners[evt].push(fn);\n };\n this.off = function(evt, fn) {\n if (listeners[evt]) {\n var l = [];\n for (var i = 0; i < listeners[evt].length; i++) {\n if (listeners[evt][i] !== fn) l.push(listeners[evt][i]);\n }\n listeners[evt] = l;\n }\n };\n var _dispatch = function(evt, value) {\n var result = null;\n if (activeSelectorParams && activeSelectorParams[evt]) {\n result = activeSelectorParams[evt](value);\n } else if (listeners[evt]) {\n for (var i = 0; i < listeners[evt].length; i++) {\n try {\n var v = listeners[evt][i](value);\n if (v != null) {\n result = v;\n }\n }\n catch (e) { }\n }\n }\n return result;\n };\n this.notifyStart = function(e) {\n _dispatch(\"start\", {el:this.el, pos:this.params.getPosition(dragEl), e:e, drag:this});\n };\n this.stop = function(e, force) {\n if (force || moving) {\n var positions = [],\n sel = k.getSelection(),\n dPos = this.params.getPosition(dragEl);\n if (sel.length > 0) {\n for (var i = 0; i < sel.length; i++) {\n var p = this.params.getPosition(sel[i].el);\n positions.push([ sel[i].el, { left: p[0], top: p[1] }, sel[i] ]);\n }\n }\n else {\n positions.push([ dragEl, {left:dPos[0], top:dPos[1]}, this ]);\n }\n _dispatch(\"stop\", {\n el: dragEl,\n pos: ghostProxyOffsets || dPos,\n finalPos:dPos,\n e: e,\n drag: this,\n selection:positions\n });\n }\n };\n this.mark = function(andNotify) {\n posAtDown = this.params.getPosition(dragEl);\n pagePosAtDown = this.params.getPosition(dragEl, true);\n pageDelta = [pagePosAtDown[0] - posAtDown[0], pagePosAtDown[1] - posAtDown[1]];\n this.size = this.params.getSize(dragEl);\n matchingDroppables = k.getMatchingDroppables(this);\n _setDroppablesActive(matchingDroppables, true, false, this);\n this.params.addClass(dragEl, this.params.dragClass || css.drag);\n var cs;\n if (this.params.getConstrainingRectangle) {\n cs = this.params.getConstrainingRectangle(dragEl)\n } else {\n cs = this.params.getSize(dragEl.parentNode);\n }\n constrainRect = {w: cs[0], h: cs[1]};\n ghostDx = 0;\n ghostDy = 0;\n if (andNotify) {\n k.notifySelectionDragStart(this);\n }\n };\n var ghostProxyOffsets;\n this.unmark = function(e, doNotCheckDroppables) {\n _setDroppablesActive(matchingDroppables, false, true, this);\n if (isConstrained && useGhostProxy(elementToDrag, dragEl)) {\n ghostProxyOffsets = [dragEl.offsetLeft - ghostDx, dragEl.offsetTop - ghostDy];\n dragEl.parentNode.removeChild(dragEl);\n dragEl = elementToDrag;\n }\n else {\n ghostProxyOffsets = null;\n }\n this.params.removeClass(dragEl, this.params.dragClass || css.drag);\n matchingDroppables.length = 0;\n isConstrained = false;\n if (!doNotCheckDroppables) {\n if (intersectingDroppables.length > 0 && ghostProxyOffsets) {\n params.setPosition(elementToDrag, ghostProxyOffsets);\n }\n intersectingDroppables.sort(_rankSort);\n for (var i = 0; i < intersectingDroppables.length; i++) {\n var retVal = intersectingDroppables[i].drop(this, e);\n if (retVal === true) break;\n }\n }\n };\n this.moveBy = function(dx, dy, e) {\n intersectingDroppables.length = 0;\n var desiredLoc = this.toGrid([posAtDown[0] + dx, posAtDown[1] + dy]),\n cPos = _doConstrain(desiredLoc, dragEl, constrainRect, this.size);\n // if we should use a ghost proxy...\n if (useGhostProxy(this.el, dragEl)) {\n // and the element has been dragged outside of its parent bounds\n if (desiredLoc[0] !== cPos[0] || desiredLoc[1] !== cPos[1]) {\n // ...if ghost proxy not yet created\n if (!isConstrained) {\n // create it\n var gp = ghostProxy(elementToDrag);\n params.addClass(gp, _classes.ghostProxy);\n if (ghostProxyParent) {\n ghostProxyParent.appendChild(gp);\n // find offset between drag el's parent the ghost parent\n currentParentPosition = params.getPosition(elementToDrag.parentNode, true);\n ghostParentPosition = params.getPosition(params.ghostProxyParent, true);\n ghostDx = currentParentPosition[0] - ghostParentPosition[0];\n ghostDy = currentParentPosition[1] - ghostParentPosition[1];\n } else {\n elementToDrag.parentNode.appendChild(gp);\n }\n // the ghost proxy is the drag element\n dragEl = gp;\n // set this flag so we dont recreate the ghost proxy\n isConstrained = true;\n }\n // now the drag position can be the desired position, as the ghost proxy can support it.\n cPos = desiredLoc;\n }\n else {\n // if the element is not outside of its parent bounds, and ghost proxy is in place,\n if (isConstrained) {\n // remove the ghost proxy from the dom\n dragEl.parentNode.removeChild(dragEl);\n // reset the drag element to the original element\n dragEl = elementToDrag;\n // clear this flag.\n isConstrained = false;\n currentParentPosition = null;\n ghostParentPosition = null;\n ghostDx = 0;\n ghostDy = 0;\n }\n }\n }\n var rect = { x:cPos[0], y:cPos[1], w:this.size[0], h:this.size[1]},\n pageRect = { x:rect.x + pageDelta[0], y:rect.y + pageDelta[1], w:rect.w, h:rect.h},\n focusDropElement = null;\n this.params.setPosition(dragEl, [cPos[0] + ghostDx, cPos[1] + ghostDy]);\n for (var i = 0; i < matchingDroppables.length; i++) {\n var r2 = { x:matchingDroppables[i].pagePosition[0], y:matchingDroppables[i].pagePosition[1], w:matchingDroppables[i].size[0], h:matchingDroppables[i].size[1]};\n if (this.params.intersects(pageRect, r2) && (_multipleDrop || focusDropElement == null || focusDropElement === matchingDroppables[i].el) && matchingDroppables[i].canDrop(this)) {\n if (!focusDropElement) focusDropElement = matchingDroppables[i].el;\n intersectingDroppables.push(matchingDroppables[i]);\n matchingDroppables[i].setHover(this, true, e);\n }\n else if (matchingDroppables[i].isHover()) {\n matchingDroppables[i].setHover(this, false, e);\n }\n }\n _dispatch(\"drag\", {el:this.el, pos:cPos, e:e, drag:this});\n /* test to see if the parent needs to be scrolled (future)\n if (scroll) {\n var pnsl = dragEl.parentNode.scrollLeft, pnst = dragEl.parentNode.scrollTop;\n console.log(\"scroll!\", pnsl, pnst);\n }*/\n };\n this.destroy = function() {\n this.params.unbind(this.el, \"mousedown\", this.downListener);\n this.params.unbind(document, \"mousemove\", this.moveListener);\n this.params.unbind(document, \"mouseup\", this.upListener);\n this.downListener = null;\n this.upListener = null;\n this.moveListener = null;\n };\n // init:register mousedown, and perhaps set a filter\n this.params.bind(this.el, \"mousedown\", this.downListener);\n // if handle provided, use that. otherwise, try to set a filter.\n // note that a `handle` selector always results in filterExclude being set to false, ie.\n // the selector defines the handle element(s).\n if (this.params.handle)\n _setFilter(this.params.handle, false);\n else\n _setFilter(this.params.filter, this.params.filterExclude);\n };\n var Drop = function(el, params, css, scope) {\n this._class = css.droppable;\n this.params = params || {};\n this.rank = params.rank || 0;\n this._activeClass = this.params.activeClass || css.active;\n this._hoverClass = this.params.hoverClass || css.hover;\n Super.apply(this, arguments);\n var hover = false;\n this.allowLoopback = this.params.allowLoopback !== false;\n this.setActive = function(val) {\n this.params[val ? \"addClass\" : \"removeClass\"](this.el, this._activeClass);\n };\n this.updatePosition = function() {\n this.position = this.params.getPosition(this.el);\n this.pagePosition = this.params.getPosition(this.el, true);\n this.size = this.params.getSize(this.el);\n };\n this.canDrop = this.params.canDrop || function(drag) {\n return true;\n };\n this.isHover = function() { return hover; };\n this.setHover = function(drag, val, e) {\n // if turning off hover but this was not the drag that caused the hover, ignore.\n if (val || this.el._katavorioDragHover == null || this.el._katavorioDragHover === drag.el._katavorio) {\n this.params[val ? \"addClass\" : \"removeClass\"](this.el, this._hoverClass);\n this.el._katavorioDragHover = val ? drag.el._katavorio : null;\n if (hover !== val) {\n this.params.events[val ? \"over\" : \"out\"]({el: this.el, e: e, drag: drag, drop: this});\n }\n hover = val;\n }\n };\n /**\n * A drop event. `drag` is the corresponding Drag object, which may be a Drag for some specific element, or it\n * may be a Drag on some element acting as a delegate for elements contained within it.\n * @param drag\n * @param event\n * @returns {*}\n */\n this.drop = function(drag, event) {\n return this.params.events[\"drop\"]({ drag:drag, e:event, drop:this });\n };\n this.destroy = function() {\n this._class = null;\n this._activeClass = null;\n this._hoverClass = null;\n hover = null;\n };\n };\n var _uuid = function() {\n return ('xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n var r = Math.random()*16|0, v = c === 'x' ? r : (r&0x3|0x8);\n return v.toString(16);\n }));\n };\n var _rankSort = function(a,b) {\n return a.rank < b.rank ? 1 : a.rank > b.rank ? -1 : 0;\n };\n var _gel = function(el) {\n if (el == null) return null;\n el = (typeof el === \"string\" || el.constructor === String) ? document.getElementById(el) : el;\n if (el == null) return null;\n el._katavorio = el._katavorio || _uuid();\n return el;\n };\n root.Katavorio = function(katavorioParams) {\n var _selection = [],\n _selectionMap = {};\n this._dragsByScope = {};\n this._dropsByScope = {};\n var _zoom = 1,\n _reg = function(obj, map) {\n _each(obj, function(_obj) {\n for(var i = 0; i < _obj.scopes.length; i++) {\n map[_obj.scopes[i]] = map[_obj.scopes[i]] || [];\n map[_obj.scopes[i]].push(_obj);\n }\n });\n },\n _unreg = function(obj, map) {\n var c = 0;\n _each(obj, function(_obj) {\n for(var i = 0; i < _obj.scopes.length; i++) {\n if (map[_obj.scopes[i]]) {\n var idx = katavorioParams.indexOf(map[_obj.scopes[i]], _obj);\n if (idx !== -1) {\n map[_obj.scopes[i]].splice(idx, 1);\n c++;\n }\n }\n }\n });\n return c > 0 ;\n },\n _getMatchingDroppables = this.getMatchingDroppables = function(drag) {\n var dd = [], _m = {};\n for (var i = 0; i < drag.scopes.length; i++) {\n var _dd = this._dropsByScope[drag.scopes[i]];\n if (_dd) {\n for (var j = 0; j < _dd.length; j++) {\n if (_dd[j].canDrop(drag) && !_m[_dd[j].uuid] && (_dd[j].allowLoopback || _dd[j].el !== drag.el)) {\n _m[_dd[j].uuid] = true;\n dd.push(_dd[j]);\n }\n }\n }\n }\n dd.sort(_rankSort);\n return dd;\n },\n _prepareParams = function(p) {\n p = p || {};\n var _p = {\n events:{}\n }, i;\n for (i in katavorioParams) _p[i] = katavorioParams[i];\n for (i in p) _p[i] = p[i];\n // events\n for (i = 0; i < _events.length; i++) {\n _p.events[_events[i]] = p[_events[i]] || _devNull;\n }\n _p.katavorio = this;\n return _p;\n }.bind(this),\n _mistletoe = function(existingDrag, params) {\n for (var i = 0; i < _events.length; i++) {\n if (params[_events[i]]) {\n existingDrag.on(_events[i], params[_events[i]]);\n }\n }\n }.bind(this),\n _css = {},\n overrideCss = katavorioParams.css || {},\n _scope = katavorioParams.scope || _defaultScope;\n // prepare map of css classes based on defaults frst, then optional overrides\n for (var i in _classes) _css[i] = _classes[i];\n for (var i in overrideCss) _css[i] = overrideCss[i];\n var inputFilterSelector = katavorioParams.inputFilterSelector || _defaultInputFilterSelector;\n /**\n * Gets the selector identifying which input elements to filter from drag events.\n * @method getInputFilterSelector\n * @return {String} Current input filter selector.\n */\n this.getInputFilterSelector = function() { return inputFilterSelector; };\n /**\n * Sets the selector identifying which input elements to filter from drag events.\n * @method setInputFilterSelector\n * @param {String} selector Input filter selector to set.\n * @return {Katavorio} Current instance; method may be chained.\n */\n this.setInputFilterSelector = function(selector) {\n inputFilterSelector = selector;\n return this;\n };\n /**\n * Either makes the given element draggable, or identifies it as an element inside which some identified list\n * of elements may be draggable.\n * @param el\n * @param params\n * @returns {Array}\n */\n this.draggable = function(el, params) {\n var o = [];\n _each(el, function (_el) {\n _el = _gel(_el);\n if (_el != null) {\n if (_el._katavorioDrag == null) {\n var p = _prepareParams(params);\n _el._katavorioDrag = new Drag(_el, p, _css, _scope);\n _reg(_el._katavorioDrag, this._dragsByScope);\n o.push(_el._katavorioDrag);\n katavorioParams.addClass(_el, p.selector ? _css.delegatedDraggable : _css.draggable);\n }\n else {\n _mistletoe(_el._katavorioDrag, params);\n }\n }\n }.bind(this));\n return o;\n };\n this.droppable = function(el, params) {\n var o = [];\n _each(el, function(_el) {\n _el = _gel(_el);\n if (_el != null) {\n var drop = new Drop(_el, _prepareParams(params), _css, _scope);\n _el._katavorioDrop = _el._katavorioDrop || [];\n _el._katavorioDrop.push(drop);\n _reg(drop, this._dropsByScope);\n o.push(drop);\n katavorioParams.addClass(_el, _css.droppable);\n }\n }.bind(this));\n return o;\n };\n /**\n * @name Katavorio#select\n * @function\n * @desc Adds an element to the current selection (for multiple node drag)\n * @param {Element|String} DOM element - or id of the element - to add.\n */\n this.select = function(el) {\n _each(el, function() {\n var _el = _gel(this);\n if (_el && _el._katavorioDrag) {\n if (!_selectionMap[_el._katavorio]) {\n _selection.push(_el._katavorioDrag);\n _selectionMap[_el._katavorio] = [ _el, _selection.length - 1 ];\n katavorioParams.addClass(_el, _css.selected);\n }\n }\n });\n return this;\n };\n /**\n * @name Katavorio#deselect\n * @function\n * @desc Removes an element from the current selection (for multiple node drag)\n * @param {Element|String} DOM element - or id of the element - to remove.\n */\n this.deselect = function(el) {\n _each(el, function() {\n var _el = _gel(this);\n if (_el && _el._katavorio) {\n var e = _selectionMap[_el._katavorio];\n if (e) {\n var _s = [];\n for (var i = 0; i < _selection.length; i++)\n if (_selection[i].el !== _el) _s.push(_selection[i]);\n _selection = _s;\n delete _selectionMap[_el._katavorio];\n katavorioParams.removeClass(_el, _css.selected);\n }\n }\n });\n return this;\n };\n this.deselectAll = function() {\n for (var i in _selectionMap) {\n var d = _selectionMap[i];\n katavorioParams.removeClass(d[0], _css.selected);\n }\n _selection.length = 0;\n _selectionMap = {};\n };\n this.markSelection = function(drag) {\n _foreach(_selection, function(e) { e.mark(); }, drag);\n };\n this.markPosses = function(drag) {\n if (drag.posses) {\n _each(drag.posses, function(p) {\n if (drag.posseRoles[p] && _posses[p]) {\n _foreach(_posses[p].members, function (d) {\n d.mark();\n }, drag);\n }\n })\n }\n };\n this.unmarkSelection = function(drag, event) {\n _foreach(_selection, function(e) { e.unmark(event); }, drag);\n };\n this.unmarkPosses = function(drag, event) {\n if (drag.posses) {\n _each(drag.posses, function(p) {\n if (drag.posseRoles[p] && _posses[p]) {\n _foreach(_posses[p].members, function (d) {\n d.unmark(event, true);\n }, drag);\n }\n });\n }\n };\n this.getSelection = function() { return _selection.slice(0); };\n this.updateSelection = function(dx, dy, drag) {\n _foreach(_selection, function(e) { e.moveBy(dx, dy); }, drag);\n };\n var _posseAction = function(fn, drag) {\n if (drag.posses) {\n _each(drag.posses, function(p) {\n if (drag.posseRoles[p] && _posses[p]) {\n _foreach(_posses[p].members, function (e) {\n fn(e);\n }, drag);\n }\n });\n }\n };\n this.updatePosses = function(dx, dy, drag) {\n _posseAction(function(e) { e.moveBy(dx, dy); }, drag);\n };\n this.notifyPosseDragStop = function(drag, evt) {\n _posseAction(function(e) { e.stop(evt, true); }, drag);\n };\n this.notifySelectionDragStop = function(drag, evt) {\n _foreach(_selection, function(e) { e.stop(evt, true); }, drag);\n };\n this.notifySelectionDragStart = function(drag, evt) {\n _foreach(_selection, function(e) { e.notifyStart(evt);}, drag);\n };\n this.setZoom = function(z) { _zoom = z; };\n this.getZoom = function() { return _zoom; };\n // does the work of changing scopes\n var _scopeManip = function(kObj, scopes, map, fn) {\n _each(kObj, function(_kObj) {\n _unreg(_kObj, map); // deregister existing scopes\n _kObj[fn](scopes); // set scopes\n _reg(_kObj, map); // register new ones\n });\n };\n _each([ \"set\", \"add\", \"remove\", \"toggle\"], function(v) {\n this[v + \"Scope\"] = function(el, scopes) {\n _scopeManip(el._katavorioDrag, scopes, this._dragsByScope, v + \"Scope\");\n _scopeManip(el._katavorioDrop, scopes, this._dropsByScope, v + \"Scope\");\n }.bind(this);\n this[v + \"DragScope\"] = function(el, scopes) {\n _scopeManip(el.constructor === Drag ? el : el._katavorioDrag, scopes, this._dragsByScope, v + \"Scope\");\n }.bind(this);\n this[v + \"DropScope\"] = function(el, scopes) {\n _scopeManip(el.constructor === Drop ? el : el._katavorioDrop, scopes, this._dropsByScope, v + \"Scope\");\n }.bind(this);\n }.bind(this));\n this.snapToGrid = function(x, y) {\n for (var s in this._dragsByScope) {\n _foreach(this._dragsByScope[s], function(d) { d.snap(x, y); });\n }\n };\n this.getDragsForScope = function(s) { return this._dragsByScope[s]; };\n this.getDropsForScope = function(s) { return this._dropsByScope[s]; };\n var _destroy = function(el, type, map) {\n el = _gel(el);\n if (el[type]) {\n // remove from selection, if present.\n var selIdx = _selection.indexOf(el[type]);\n if (selIdx >= 0) {\n _selection.splice(selIdx, 1);\n }\n if (_unreg(el[type], map)) {\n _each(el[type], function(kObj) { kObj.destroy() });\n }\n delete el[type];\n }\n };\n var _removeListener = function(el, type, evt, fn) {\n el = _gel(el);\n if (el[type]) {\n el[type].off(evt, fn);\n }\n };\n this.elementRemoved = function(el) {\n if (el[\"_katavorioDrag\"]) {\n this.destroyDraggable(el);\n }\n if (el[\"_katavorioDrop\"]) {\n this.destroyDroppable(el);\n }\n };\n /**\n * Either completely remove drag functionality from the given element, or remove a specific event handler. If you\n * call this method with a single argument - the element - all drag functionality is removed from it. Otherwise, if\n * you provide an event name and listener function, this function is de-registered (if found).\n * @param el Element to update\n * @param {string} [evt] Optional event name to unsubscribe\n * @param {Function} [fn] Optional function to unsubscribe\n */\n this.destroyDraggable = function(el, evt, fn) {\n if (arguments.length === 1) {\n _destroy(el, \"_katavorioDrag\", this._dragsByScope);\n } else {\n _removeListener(el, \"_katavorioDrag\", evt, fn);\n }\n };\n /**\n * Either completely remove drop functionality from the given element, or remove a specific event handler. If you\n * call this method with a single argument - the element - all drop functionality is removed from it. Otherwise, if\n * you provide an event name and listener function, this function is de-registered (if found).\n * @param el Element to update\n * @param {string} [evt] Optional event name to unsubscribe\n * @param {Function} [fn] Optional function to unsubscribe\n */\n this.destroyDroppable = function(el, evt, fn) {\n if (arguments.length === 1) {\n _destroy(el, \"_katavorioDrop\", this._dropsByScope);\n } else {\n _removeListener(el, \"_katavorioDrop\", evt, fn);\n }\n };\n this.reset = function() {\n this._dragsByScope = {};\n this._dropsByScope = {};\n _selection = [];\n _selectionMap = {};\n _posses = {};\n };\n // ----- groups\n var _posses = {};\n var _processOneSpec = function(el, _spec, dontAddExisting) {\n var posseId = _isString(_spec) ? _spec : _spec.id;\n var active = _isString(_spec) ? true : _spec.active !== false;\n var posse = _posses[posseId] || (function() {\n var g = {name:posseId, members:[]};\n _posses[posseId] = g;\n return g;\n })();\n _each(el, function(_el) {\n if (_el._katavorioDrag) {\n if (dontAddExisting && _el._katavorioDrag.posseRoles[posse.name] != null) return;\n _suggest(posse.members, _el._katavorioDrag);\n _suggest(_el._katavorioDrag.posses, posse.name);\n _el._katavorioDrag.posseRoles[posse.name] = active;\n }\n });\n return posse;\n };\n /**\n * Add the given element to the posse with the given id, creating the group if it at first does not exist.\n * @method addToPosse\n * @param {Element} el Element to add.\n * @param {String...|Object...} spec Variable args parameters. Each argument can be a either a String, indicating\n * the ID of a Posse to which the element should be added as an active participant, or an Object containing\n * `{ id:\"posseId\", active:false/true}`. In the latter case, if `active` is not provided it is assumed to be\n * true.\n * @returns {Posse|Posse[]} The Posse(s) to which the element(s) was/were added.\n */\n this.addToPosse = function(el, spec) {\n var posses = [];\n for (var i = 1; i < arguments.length; i++) {\n posses.push(_processOneSpec(el, arguments[i]));\n }\n return posses.length === 1 ? posses[0] : posses;\n };\n /**\n * Sets the posse(s) for the element with the given id, creating those that do not yet exist, and removing from\n * the element any current Posses that are not specified by this method call. This method will not change the\n * active/passive state if it is given a posse in which the element is already a member.\n * @method setPosse\n * @param {Element} el Element to set posse(s) on.\n * @param {String...|Object...} spec Variable args parameters. Each argument can be a either a String, indicating\n * the ID of a Posse to which the element should be added as an active participant, or an Object containing\n * `{ id:\"posseId\", active:false/true}`. In the latter case, if `active` is not provided it is assumed to be\n * true.\n * @returns {Posse|Posse[]} The Posse(s) to which the element(s) now belongs.\n */\n this.setPosse = function(el, spec) {\n var posses = [];\n for (var i = 1; i < arguments.length; i++) {\n posses.push(_processOneSpec(el, arguments[i], true).name);\n }\n _each(el, function(_el) {\n if (_el._katavorioDrag) {\n var diff = _difference(_el._katavorioDrag.posses, posses);\n var p = [];\n Array.prototype.push.apply(p, _el._katavorioDrag.posses);\n for (var i = 0; i < diff.length; i++) {\n this.removeFromPosse(_el, diff[i]);\n }\n }\n }.bind(this));\n return posses.length === 1 ? posses[0] : posses;\n };\n /**\n * Remove the given element from the given posse(s).\n * @method removeFromPosse\n * @param {Element} el Element to remove.\n * @param {String...} posseId Varargs parameter: one value for each posse to remove the element from.\n */\n this.removeFromPosse = function(el, posseId) {\n if (arguments.length < 2) throw new TypeError(\"No posse id provided for remove operation\");\n for(var i = 1; i < arguments.length; i++) {\n posseId = arguments[i];\n _each(el, function (_el) {\n if (_el._katavorioDrag && _el._katavorioDrag.posses) {\n var d = _el._katavorioDrag;\n _each(posseId, function (p) {\n _vanquish(_posses[p].members, d);\n _vanquish(d.posses, p);\n delete d.posseRoles[p];\n });\n }\n });\n }\n };\n /**\n * Remove the given element from all Posses to which it belongs.\n * @method removeFromAllPosses\n * @param {Element|Element[]} el Element to remove from Posses.\n */\n this.removeFromAllPosses = function(el) {\n _each(el, function(_el) {\n if (_el._katavorioDrag && _el._katavorioDrag.posses) {\n var d = _el._katavorioDrag;\n _each(d.posses, function(p) {\n _vanquish(_posses[p].members, d);\n });\n d.posses.length = 0;\n d.posseRoles = {};\n }\n });\n };\n /**\n * Changes the participation state for the element in the Posse with the given ID.\n * @param {Element|Element[]} el Element(s) to change state for.\n * @param {String} posseId ID of the Posse to change element state for.\n * @param {Boolean} state True to make active, false to make passive.\n */\n this.setPosseState = function(el, posseId, state) {\n var posse = _posses[posseId];\n if (posse) {\n _each(el, function(_el) {\n if (_el._katavorioDrag && _el._katavorioDrag.posses) {\n _el._katavorioDrag.posseRoles[posse.name] = state;\n }\n });\n }\n };\n };\n root.Katavorio.version = \"1.0.0\";\n if (typeof exports !== \"undefined\") {\n exports.Katavorio = root.Katavorio;\n }\n}).call(typeof window !== 'undefined' ? window : this);\n(function() {\n var root = this;\n root.jsPlumbUtil = root.jsPlumbUtil || {};\n var jsPlumbUtil = root.jsPlumbUtil;\n if (typeof exports !=='undefined') { exports.jsPlumbUtil = jsPlumbUtil;}\n /**\n * Tests if the given object is an Array.\n * @param a\n */\n function isArray(a) {\n return Object.prototype.toString.call(a) === \"[object Array]\";\n }\n jsPlumbUtil.isArray = isArray;\n /**\n * Tests if the given object is a Number.\n * @param n\n */\n function isNumber(n) {\n return Object.prototype.toString.call(n) === \"[object Number]\";\n }\n jsPlumbUtil.isNumber = isNumber;\n function isString(s) {\n return typeof s === \"string\";\n }\n jsPlumbUtil.isString = isString;\n function isBoolean(s) {\n return typeof s === \"boolean\";\n }\n jsPlumbUtil.isBoolean = isBoolean;\n function isNull(s) {\n return s == null;\n }\n jsPlumbUtil.isNull = isNull;\n function isObject(o) {\n return o == null ? false : Object.prototype.toString.call(o) === \"[object Object]\";\n }\n jsPlumbUtil.isObject = isObject;\n function isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n }\n jsPlumbUtil.isDate = isDate;\n function isFunction(o) {\n return Object.prototype.toString.call(o) === \"[object Function]\";\n }\n jsPlumbUtil.isFunction = isFunction;\n function isNamedFunction(o) {\n return isFunction(o) && o.name != null && o.name.length > 0;\n }\n jsPlumbUtil.isNamedFunction = isNamedFunction;\n function isEmpty(o) {\n for (var i in o) {\n if (o.hasOwnProperty(i)) {\n return false;\n }\n }\n return true;\n }\n jsPlumbUtil.isEmpty = isEmpty;\n function clone(a) {\n if (isString(a)) {\n return \"\" + a;\n }\n else if (isBoolean(a)) {\n return !!a;\n }\n else if (isDate(a)) {\n return new Date(a.getTime());\n }\n else if (isFunction(a)) {\n return a;\n }\n else if (isArray(a)) {\n var b = [];\n for (var i = 0; i < a.length; i++) {\n b.push(clone(a[i]));\n }\n return b;\n }\n else if (isObject(a)) {\n var c = {};\n for (var j in a) {\n c[j] = clone(a[j]);\n }\n return c;\n }\n else {\n return a;\n }\n }\n jsPlumbUtil.clone = clone;\n function merge(a, b, collations, overwrites) {\n // first change the collations array - if present - into a lookup table, because its faster.\n var cMap = {}, ar, i, oMap = {};\n collations = collations || [];\n overwrites = overwrites || [];\n for (i = 0; i < collations.length; i++) {\n cMap[collations[i]] = true;\n }\n for (i = 0; i < overwrites.length; i++) {\n oMap[overwrites[i]] = true;\n }\n var c = clone(a);\n for (i in b) {\n if (c[i] == null || oMap[i]) {\n c[i] = b[i];\n }\n else if (isString(b[i]) || isBoolean(b[i])) {\n if (!cMap[i]) {\n c[i] = b[i]; // if we dont want to collate, just copy it in.\n }\n else {\n ar = [];\n // if c's object is also an array we can keep its values.\n ar.push.apply(ar, isArray(c[i]) ? c[i] : [c[i]]);\n ar.push.apply(ar, isBoolean(b[i]) ? b[i] : [b[i]]);\n c[i] = ar;\n }\n }\n else {\n if (isArray(b[i])) {\n ar = [];\n // if c's object is also an array we can keep its values.\n if (isArray(c[i])) {\n ar.push.apply(ar, c[i]);\n }\n ar.push.apply(ar, b[i]);\n c[i] = ar;\n }\n else if (isObject(b[i])) {\n // overwrite c's value with an object if it is not already one.\n if (!isObject(c[i])) {\n c[i] = {};\n }\n for (var j in b[i]) {\n c[i][j] = b[i][j];\n }\n }\n }\n }\n return c;\n }\n jsPlumbUtil.merge = merge;\n function replace(inObj, path, value) {\n if (inObj == null) {\n return;\n }\n var q = inObj, t = q;\n path.replace(/([^\\.])+/g, function (term, lc, pos, str) {\n var array = term.match(/([^\\[0-9]+){1}(\\[)([0-9+])/), last = pos + term.length >= str.length, _getArray = function () {\n return t[array[1]] || (function () {\n t[array[1]] = [];\n return t[array[1]];\n })();\n };\n if (last) {\n // set term = value on current t, creating term as array if necessary.\n if (array) {\n _getArray()[array[3]] = value;\n }\n else {\n t[term] = value;\n }\n }\n else {\n // set to current t[term], creating t[term] if necessary.\n if (array) {\n var a_1 = _getArray();\n t = a_1[array[3]] || (function () {\n a_1[array[3]] = {};\n return a_1[array[3]];\n })();\n }\n else {\n t = t[term] || (function () {\n t[term] = {};\n return t[term];\n })();\n }\n }\n return \"\";\n });\n return inObj;\n }\n jsPlumbUtil.replace = replace;\n //\n // chain a list of functions, supplied by [ object, method name, args ], and return on the first\n // one that returns the failValue. if none return the failValue, return the successValue.\n //\n function functionChain(successValue, failValue, fns) {\n for (var i = 0; i < fns.length; i++) {\n var o = fns[i][0][fns[i][1]].apply(fns[i][0], fns[i][2]);\n if (o === failValue) {\n return o;\n }\n }\n return successValue;\n }\n jsPlumbUtil.functionChain = functionChain;\n /**\n *\n * Take the given model and expand out any parameters. 'functionPrefix' is optional, and if present, helps jsplumb figure out what to do if a value is a Function.\n * if you do not provide it (and doNotExpandFunctions is null, or false), jsplumb will run the given values through any functions it finds, and use the function's\n * output as the value in the result. if you do provide the prefix, only functions that are named and have this prefix\n * will be executed; other functions will be passed as values to the output.\n *\n * @param model\n * @param values\n * @param functionPrefix\n * @param doNotExpandFunctions\n * @returns {any}\n */\n function populate(model, values, functionPrefix, doNotExpandFunctions) {\n // for a string, see if it has parameter matches, and if so, try to make the substitutions.\n var getValue = function (fromString) {\n var matches = fromString.match(/(\\${.*?})/g);\n if (matches != null) {\n for (var i = 0; i < matches.length; i++) {\n var val = values[matches[i].substring(2, matches[i].length - 1)] || \"\";\n if (val != null) {\n fromString = fromString.replace(matches[i], val);\n }\n }\n }\n return fromString;\n };\n // process one entry.\n var _one = function (d) {\n if (d != null) {\n if (isString(d)) {\n return getValue(d);\n }\n else if (isFunction(d) && !doNotExpandFunctions && (functionPrefix == null || (d.name || \"\").indexOf(functionPrefix) === 0)) {\n return d(values);\n }\n else if (isArray(d)) {\n var r = [];\n for (var i = 0; i < d.length; i++) {\n r.push(_one(d[i]));\n }\n return r;\n }\n else if (isObject(d)) {\n var s = {};\n for (var j in d) {\n s[j] = _one(d[j]);\n }\n return s;\n }\n else {\n return d;\n }\n }\n };\n return _one(model);\n }\n jsPlumbUtil.populate = populate;\n /**\n * Find the index of a given object in an array.\n * @param a The array to search\n * @param f The function to run on each element. Return true if the element matches.\n * @returns {number} -1 if not found, otherwise the index in the array.\n */\n function findWithFunction(a, f) {\n if (a) {\n for (var i = 0; i < a.length; i++) {\n if (f(a[i])) {\n return i;\n }\n }\n }\n return -1;\n }\n jsPlumbUtil.findWithFunction = findWithFunction;\n /**\n * Remove some element from an array by matching each element in the array against some predicate function. Note that this\n * is an in-place removal; the array is altered.\n * @param a The array to search\n * @param f The function to run on each element. Return true if the element matches.\n * @returns {boolean} true if removed, false otherwise.\n */\n function removeWithFunction(a, f) {\n var idx = findWithFunction(a, f);\n if (idx > -1) {\n a.splice(idx, 1);\n }\n return idx !== -1;\n }\n jsPlumbUtil.removeWithFunction = removeWithFunction;\n /**\n * Remove some element from an array by simple lookup in the array for the given element. Note that this\n * is an in-place removal; the array is altered.\n * @param l The array to search\n * @param v The value to remove.\n * @returns {boolean} true if removed, false otherwise.\n */\n function remove(l, v) {\n var idx = l.indexOf(v);\n if (idx > -1) {\n l.splice(idx, 1);\n }\n return idx !== -1;\n }\n jsPlumbUtil.remove = remove;\n /**\n * Add some element to the given array, unless it is determined that it is already in the array.\n * @param list The array to add the element to.\n * @param item The item to add.\n * @param hashFunction A function to use to determine if the given item already exists in the array.\n */\n function addWithFunction(list, item, hashFunction) {\n if (findWithFunction(list, hashFunction) === -1) {\n list.push(item);\n }\n }\n jsPlumbUtil.addWithFunction = addWithFunction;\n /**\n * Add some element to a list that is contained in a map of lists.\n * @param map The map of [ key -> list ] entries\n * @param key The name of the list to insert into\n * @param value The value to insert\n * @param insertAtStart Whether or not to insert at the start; defaults to false.\n */\n function addToList(map, key, value, insertAtStart) {\n var l = map[key];\n if (l == null) {\n l = [];\n map[key] = l;\n }\n l[insertAtStart ? \"unshift\" : \"push\"](value);\n return l;\n }\n jsPlumbUtil.addToList = addToList;\n /**\n * Add an item to a list, unless it is already in the list. The test for pre-existence is a simple list lookup.\n * If you want to do something more complex, perhaps #addWithFunction might help.\n * @param list List to add the item to\n * @param item Item to add\n * @param insertAtHead Whether or not to insert at the start; defaults to false.\n */\n function suggest(list, item, insertAtHead) {\n if (list.indexOf(item) === -1) {\n if (insertAtHead) {\n list.unshift(item);\n }\n else {\n list.push(item);\n }\n return true;\n }\n return false;\n }\n jsPlumbUtil.suggest = suggest;\n /**\n * Extends the given obj (which can be an array) with the given constructor function, prototype functions, and class members, any of which may be null.\n * @param child\n * @param parent\n * @param _protoFn\n */\n function extend(child, parent, _protoFn) {\n var i;\n parent = isArray(parent) ? parent : [parent];\n var _copyProtoChain = function (focus) {\n var proto = focus.__proto__;\n while (proto != null) {\n if (proto.prototype != null) {\n for (var j in proto.prototype) {\n if (proto.prototype.hasOwnProperty(j) && !child.prototype.hasOwnProperty(j)) {\n child.prototype[j] = proto.prototype[j];\n }\n }\n proto = proto.prototype.__proto__;\n }\n else {\n proto = null;\n }\n }\n };\n for (i = 0; i < parent.length; i++) {\n for (var j in parent[i].prototype) {\n if (parent[i].prototype.hasOwnProperty(j) && !child.prototype.hasOwnProperty(j)) {\n child.prototype[j] = parent[i].prototype[j];\n }\n }\n _copyProtoChain(parent[i]);\n }\n var _makeFn = function (name, protoFn) {\n return function () {\n for (i = 0; i < parent.length; i++) {\n if (parent[i].prototype[name]) {\n parent[i].prototype[name].apply(this, arguments);\n }\n }\n return protoFn.apply(this, arguments);\n };\n };\n var _oneSet = function (fns) {\n for (var k in fns) {\n child.prototype[k] = _makeFn(k, fns[k]);\n }\n };\n if (arguments.length > 2) {\n for (i = 2; i < arguments.length; i++) {\n _oneSet(arguments[i]);\n }\n }\n return child;\n }\n jsPlumbUtil.extend = extend;\n var lut = [];\n for (var i = 0; i < 256; i++) {\n lut[i] = (i < 16 ? '0' : '') + (i).toString(16);\n }\n function uuid() {\n var d0 = Math.random() * 0xffffffff | 0;\n var d1 = Math.random() * 0xffffffff | 0;\n var d2 = Math.random() * 0xffffffff | 0;\n var d3 = Math.random() * 0xffffffff | 0;\n return lut[d0 & 0xff] + lut[d0 >> 8 & 0xff] + lut[d0 >> 16 & 0xff] + lut[d0 >> 24 & 0xff] + '-' +\n lut[d1 & 0xff] + lut[d1 >> 8 & 0xff] + '-' + lut[d1 >> 16 & 0x0f | 0x40] + lut[d1 >> 24 & 0xff] + '-' +\n lut[d2 & 0x3f | 0x80] + lut[d2 >> 8 & 0xff] + '-' + lut[d2 >> 16 & 0xff] + lut[d2 >> 24 & 0xff] +\n lut[d3 & 0xff] + lut[d3 >> 8 & 0xff] + lut[d3 >> 16 & 0xff] + lut[d3 >> 24 & 0xff];\n }\n jsPlumbUtil.uuid = uuid;\n /**\n * Trim a string.\n * @param s String to trim\n * @returns the String with leading and trailing whitespace removed.\n */\n function fastTrim(s) {\n if (s == null) {\n return null;\n }\n var str = s.replace(/^\\s\\s*/, ''), ws = /\\s/, i = str.length;\n while (ws.test(str.charAt(--i))) {\n }\n return str.slice(0, i + 1);\n }\n jsPlumbUtil.fastTrim = fastTrim;\n function each(obj, fn) {\n obj = obj.length == null || typeof obj === \"string\" ? [obj] : obj;\n for (var i = 0; i < obj.length; i++) {\n fn(obj[i]);\n }\n }\n jsPlumbUtil.each = each;\n function map(obj, fn) {\n var o = [];\n for (var i = 0; i < obj.length; i++) {\n o.push(fn(obj[i]));\n }\n return o;\n }\n jsPlumbUtil.map = map;\n function mergeWithParents(type, map, parentAttribute) {\n parentAttribute = parentAttribute || \"parent\";\n var _def = function (id) {\n return id ? map[id] : null;\n };\n var _parent = function (def) {\n return def ? _def(def[parentAttribute]) : null;\n };\n var _one = function (parent, def) {\n if (parent == null) {\n return def;\n }\n else {\n var overrides = [\"anchor\", \"anchors\", \"cssClass\", \"connector\", \"paintStyle\", \"hoverPaintStyle\", \"endpoint\", \"endpoints\"];\n if (def.mergeStrategy === \"override\") {\n Array.prototype.push.apply(overrides, [\"events\", \"overlays\"]);\n }\n var d_1 = merge(parent, def, [], overrides);\n return _one(_parent(parent), d_1);\n }\n };\n var _getDef = function (t) {\n if (t == null) {\n return {};\n }\n if (typeof t === \"string\") {\n return _def(t);\n }\n else if (t.length) {\n var done = false, i = 0, _dd = void 0;\n while (!done && i < t.length) {\n _dd = _getDef(t[i]);\n if (_dd) {\n done = true;\n }\n else {\n i++;\n }\n }\n return _dd;\n }\n };\n var d = _getDef(type);\n if (d) {\n return _one(_parent(d), d);\n }\n else {\n return {};\n }\n }\n jsPlumbUtil.mergeWithParents = mergeWithParents;\n jsPlumbUtil.logEnabled = true;\n function log() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (jsPlumbUtil.logEnabled && typeof console !== \"undefined\") {\n try {\n var msg = arguments[arguments.length - 1];\n console.log(msg);\n }\n catch (e) {\n }\n }\n }\n jsPlumbUtil.log = log;\n /**\n * Wraps one function with another, creating a placeholder for the\n * wrapped function if it was null. this is used to wrap the various\n * drag/drop event functions - to allow jsPlumb to be notified of\n * important lifecycle events without imposing itself on the user's\n * drag/drop functionality.\n * @method jsPlumbUtil.wrap\n * @param {Function} wrappedFunction original function to wrap; may be null.\n * @param {Function} newFunction function to wrap the original with.\n * @param {Object} [returnOnThisValue] Optional. Indicates that the wrappedFunction should\n * not be executed if the newFunction returns a value matching 'returnOnThisValue'.\n * note that this is a simple comparison and only works for primitives right now.\n */\n function wrap(wrappedFunction, newFunction, returnOnThisValue) {\n return function () {\n var r = null;\n try {\n if (newFunction != null) {\n r = newFunction.apply(this, arguments);\n }\n }\n catch (e) {\n log(\"jsPlumb function failed : \" + e);\n }\n if ((wrappedFunction != null) && (returnOnThisValue == null || (r !== returnOnThisValue))) {\n try {\n r = wrappedFunction.apply(this, arguments);\n }\n catch (e) {\n log(\"wrapped function failed : \" + e);\n }\n }\n return r;\n };\n }\n jsPlumbUtil.wrap = wrap;\n var EventGenerator = /** @class */ (function () {\n function EventGenerator() {\n var _this = this;\n this._listeners = {};\n this.eventsSuspended = false;\n this.tick = false;\n // this is a list of events that should re-throw any errors that occur during their dispatch.\n this.eventsToDieOn = { \"ready\": true };\n this.queue = [];\n this.bind = function (event, listener, insertAtStart) {\n var _one = function (evt) {\n addToList(_this._listeners, evt, listener, insertAtStart);\n listener.__jsPlumb = listener.__jsPlumb || {};\n listener.__jsPlumb[uuid()] = evt;\n };\n if (typeof event === \"string\") {\n _one(event);\n }\n else if (event.length != null) {\n for (var i = 0; i < event.length; i++) {\n _one(event[i]);\n }\n }\n return _this;\n };\n this.fire = function (event, value, originalEvent) {\n if (!this.tick) {\n this.tick = true;\n if (!this.eventsSuspended && this._listeners[event]) {\n var l = this._listeners[event].length, i = 0, _gone = false, ret = null;\n if (!this.shouldFireEvent || this.shouldFireEvent(event, value, originalEvent)) {\n while (!_gone && i < l && ret !== false) {\n // doing it this way rather than catching and then possibly re-throwing means that an error propagated by this\n // method will have the whole call stack available in the debugger.\n if (this.eventsToDieOn[event]) {\n this._listeners[event][i].apply(this, [value, originalEvent]);\n }\n else {\n try {\n ret = this._listeners[event][i].apply(this, [value, originalEvent]);\n }\n catch (e) {\n log(\"jsPlumb: fire failed for event \" + event + \" : \" + e);\n }\n }\n i++;\n if (this._listeners == null || this._listeners[event] == null) {\n _gone = true;\n }\n }\n }\n }\n this.tick = false;\n this._drain();\n }\n else {\n this.queue.unshift(arguments);\n }\n return this;\n };\n this._drain = function () {\n var n = _this.queue.pop();\n if (n) {\n _this.fire.apply(_this, n);\n }\n };\n this.unbind = function (eventOrListener, listener) {\n if (arguments.length === 0) {\n this._listeners = {};\n }\n else if (arguments.length === 1) {\n if (typeof eventOrListener === \"string\") {\n delete this._listeners[eventOrListener];\n }\n else if (eventOrListener.__jsPlumb) {\n var evt = void 0;\n for (var i in eventOrListener.__jsPlumb) {\n evt = eventOrListener.__jsPlumb[i];\n remove(this._listeners[evt] || [], eventOrListener);\n }\n }\n }\n else if (arguments.length === 2) {\n remove(this._listeners[eventOrListener] || [], listener);\n }\n return this;\n };\n this.getListener = function (forEvent) {\n return _this._listeners[forEvent];\n };\n this.setSuspendEvents = function (val) {\n _this.eventsSuspended = val;\n };\n this.isSuspendEvents = function () {\n return _this.eventsSuspended;\n };\n this.silently = function (fn) {\n _this.setSuspendEvents(true);\n try {\n fn();\n }\n catch (e) {\n log(\"Cannot execute silent function \" + e);\n }\n _this.setSuspendEvents(false);\n };\n this.cleanupListeners = function () {\n for (var i in _this._listeners) {\n _this._listeners[i] = null;\n }\n };\n }\n return EventGenerator;\n }());\n jsPlumbUtil.EventGenerator = EventGenerator;\n function rotatePoint(point, center, rotation) {\n var radial = [point[0] - center[0], point[1] - center[1]], cr = Math.cos(rotation / 360 * Math.PI * 2), sr = Math.sin(rotation / 360 * Math.PI * 2);\n return [\n (radial[0] * cr) - (radial[1] * sr) + center[0],\n (radial[1] * cr) + (radial[0] * sr) + center[1],\n cr,\n sr\n ];\n }\n jsPlumbUtil.rotatePoint = rotatePoint;\n function rotateAnchorOrientation(orientation, rotation) {\n var r = rotatePoint(orientation, [0, 0], rotation);\n return [\n Math.round(r[0]),\n Math.round(r[1])\n ];\n }\n jsPlumbUtil.rotateAnchorOrientation = rotateAnchorOrientation;\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains utility functions that run in browsers only.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n ;(function() {\n \"use strict\";\n var root = this;\n root.jsPlumbUtil.matchesSelector = function(el, selector, ctx) {\n ctx = ctx || el.parentNode;\n var possibles = ctx.querySelectorAll(selector);\n for (var i = 0; i < possibles.length; i++) {\n if (possibles[i] === el) {\n return true;\n }\n }\n return false;\n };\n root.jsPlumbUtil.consume = function(e, doNotPreventDefault) {\n if (e.stopPropagation) {\n e.stopPropagation();\n }\n else {\n e.returnValue = false;\n }\n if (!doNotPreventDefault && e.preventDefault){\n e.preventDefault();\n }\n };\n /*\n * Function: sizeElement\n * Helper to size and position an element. You would typically use\n * this when writing your own Connector or Endpoint implementation.\n *\n * Parameters:\n * x - [int] x position for the element origin\n * y - [int] y position for the element origin\n * w - [int] width of the element\n * h - [int] height of the element\n *\n */\n root.jsPlumbUtil.sizeElement = function(el, x, y, w, h) {\n if (el) {\n el.style.height = h + \"px\";\n el.height = h;\n el.style.width = w + \"px\";\n el.width = w;\n el.style.left = x + \"px\";\n el.style.top = y + \"px\";\n }\n };\n }).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the code for working with scrollable lists.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;(function() {\n var DEFAULT_OPTIONS = {\n deriveAnchor:function(edge, index, ep, conn) {\n return {\n top:[\"TopRight\", \"TopLeft\"],\n bottom:[\"BottomRight\", \"BottomLeft\"]\n }[edge][index];\n }\n };\n var root = this;\n var ListManager = function(jsPlumbInstance, params) {\n this.count = 0;\n this.instance = jsPlumbInstance;\n this.lists = {};\n this.options = params || {};\n this.instance.addList = function(el, options) {\n return this.listManager.addList(el, options);\n };\n this.instance.removeList = function(el) {\n this.listManager.removeList(el);\n };\n this.instance.bind(\"manageElement\", function(p) {\n //look for [jtk-scrollable-list] elements and attach scroll listeners if necessary\n var scrollableLists = this.instance.getSelector(p.el, \"[jtk-scrollable-list]\");\n for (var i = 0; i < scrollableLists.length; i++) {\n this.addList(scrollableLists[i]);\n }\n }.bind(this));\n this.instance.bind(\"unmanageElement\", function(p) {\n this.removeList(p.el);\n });\n this.instance.bind(\"connection\", function(c, evt) {\n if (evt == null) {\n // not added by mouse. look for an ancestor of the source and/or target element that is a scrollable list, and run\n // its scroll method.\n this._maybeUpdateParentList(c.source);\n this._maybeUpdateParentList(c.target);\n }\n }.bind(this));\n };\n root.jsPlumbListManager = ListManager;\n ListManager.prototype = {\n addList : function(el, options) {\n var dp = this.instance.extend({}, DEFAULT_OPTIONS);\n this.instance.extend(dp, this.options);\n options = this.instance.extend(dp, options || {});\n var id = [this.instance.getInstanceIndex(), this.count++].join(\"_\");\n this.lists[id] = new List(this.instance, el, options, id);\n },\n removeList:function(el) {\n var list = this.lists[el._jsPlumbList];\n if (list) {\n list.destroy();\n delete this.lists[el._jsPlumbList];\n }\n },\n _maybeUpdateParentList:function (el) {\n var parent = el.parentNode, container = this.instance.getContainer();\n while(parent != null && parent !== container) {\n if (parent._jsPlumbList != null && this.lists[parent._jsPlumbList] != null) {\n parent._jsPlumbScrollHandler();\n return\n }\n parent = parent.parentNode;\n }\n }\n };\n var List = function(instance, el, options, id) {\n el[\"_jsPlumbList\"] = id;\n //\n // Derive an anchor to use for the current situation. In contrast to the way we derive an endpoint, here we use `anchor` from the options, if present, as\n // our first choice, and then `deriveAnchor` as our next choice. There is a default `deriveAnchor` implementation that uses TopRight/TopLeft for top and\n // BottomRight/BottomLeft for bottom.\n //\n // edge - \"top\" or \"bottom\"\n // index - 0 when endpoint is connection source, 1 when endpoint is connection target\n // ep - the endpoint that is being proxied\n // conn - the connection that is being proxied\n //\n function deriveAnchor(edge, index, ep, conn) {\n return options.anchor ? options.anchor : options.deriveAnchor(edge, index, ep, conn);\n }\n //\n // Derive an endpoint to use for the current situation. We'll use a `deriveEndpoint` function passed in to the options as our first choice,\n // followed by `endpoint` (an endpoint spec) from the options, and failing either of those we just use the `type` of the endpoint that is being proxied.\n //\n // edge - \"top\" or \"bottom\"\n // index - 0 when endpoint is connection source, 1 when endpoint is connection target\n // endpoint - the endpoint that is being proxied\n // connection - the connection that is being proxied\n //\n function deriveEndpoint(edge, index, ep, conn) {\n return options.deriveEndpoint ? options.deriveEndpoint(edge, index, ep, conn) : options.endpoint ? options.endpoint : ep.type;\n }\n //\n // look for a parent of the given scrollable list that is draggable, and then update the child offsets for it. this should not\n // be necessary in the delegated drag stuff from the upcoming 3.0.0 release.\n //\n function _maybeUpdateDraggable(el) {\n var parent = el.parentNode, container = instance.getContainer();\n while(parent != null && parent !== container) {\n if (instance.hasClass(parent, \"jtk-managed\")) {\n instance.recalculateOffsets(parent);\n return\n }\n parent = parent.parentNode;\n }\n }\n var scrollHandler = function(e) {\n var children = instance.getSelector(el, \".jtk-managed\");\n var elId = instance.getId(el);\n for (var i = 0; i < children.length; i++) {\n if (children[i].offsetTop < el.scrollTop) {\n if (!children[i]._jsPlumbProxies) {\n children[i]._jsPlumbProxies = children[i]._jsPlumbProxies || [];\n instance.select({source: children[i]}).each(function (c) {\n instance.proxyConnection(c, 0, el, elId, function () {\n return deriveEndpoint(\"top\", 0, c.endpoints[0], c);\n }, function () {\n return deriveAnchor(\"top\", 0, c.endpoints[0], c);\n });\n children[i]._jsPlumbProxies.push([c, 0]);\n });\n instance.select({target: children[i]}).each(function (c) {\n instance.proxyConnection(c, 1, el, elId, function () {\n return deriveEndpoint(\"top\", 1, c.endpoints[1], c);\n }, function () {\n return deriveAnchor(\"top\", 1, c.endpoints[1], c);\n });\n children[i]._jsPlumbProxies.push([c, 1]);\n });\n }\n }\n //\n else if (children[i].offsetTop + children[i].offsetHeight > el.scrollTop + el.offsetHeight) {\n if (!children[i]._jsPlumbProxies) {\n children[i]._jsPlumbProxies = children[i]._jsPlumbProxies || [];\n instance.select({source: children[i]}).each(function (c) {\n instance.proxyConnection(c, 0, el, elId, function () {\n return deriveEndpoint(\"bottom\", 0, c.endpoints[0], c);\n }, function () {\n return deriveAnchor(\"bottom\", 0, c.endpoints[0], c);\n });\n children[i]._jsPlumbProxies.push([c, 0]);\n });\n instance.select({target: children[i]}).each(function (c) {\n instance.proxyConnection(c, 1, el, elId, function () {\n return deriveEndpoint(\"bottom\", 1, c.endpoints[1], c);\n }, function () {\n return deriveAnchor(\"bottom\", 1, c.endpoints[1], c);\n });\n children[i]._jsPlumbProxies.push([c, 1]);\n });\n }\n } else if (children[i]._jsPlumbProxies) {\n for (var j = 0; j < children[i]._jsPlumbProxies.length; j++) {\n instance.unproxyConnection(children[i]._jsPlumbProxies[j][0], children[i]._jsPlumbProxies[j][1], elId);\n }\n delete children[i]._jsPlumbProxies;\n }\n instance.revalidate(children[i]);\n }\n _maybeUpdateDraggable(el);\n };\n instance.setAttribute(el, \"jtk-scrollable-list\", \"true\");\n el._jsPlumbScrollHandler = scrollHandler;\n instance.on(el, \"scroll\", scrollHandler);\n scrollHandler(); // run it once; there may be connections already.\n this.destroy = function() {\n instance.off(el, \"scroll\", scrollHandler);\n delete el._jsPlumbScrollHandler;\n var children = instance.getSelector(el, \".jtk-managed\");\n var elId = instance.getId(el);\n for (var i = 0; i < children.length; i++) {\n if (children[i]._jsPlumbProxies) {\n for (var j = 0; j < children[i]._jsPlumbProxies.length; j++) {\n instance.unproxyConnection(children[i]._jsPlumbProxies[j][0], children[i]._jsPlumbProxies[j][1], elId);\n }\n delete children[i]._jsPlumbProxies;\n }\n }\n };\n };\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the core code.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;(function () {\n \"use strict\";\n var root = this;\n var _ju = root.jsPlumbUtil,\n // helper method to update the hover style whenever it, or paintStyle, changes.\n // we use paintStyle as the foundation and merge hoverPaintStyle over the\n // top.\n _updateHoverStyle = function (component) {\n if (component._jsPlumb.paintStyle && component._jsPlumb.hoverPaintStyle) {\n var mergedHoverStyle = {};\n jsPlumb.extend(mergedHoverStyle, component._jsPlumb.paintStyle);\n jsPlumb.extend(mergedHoverStyle, component._jsPlumb.hoverPaintStyle);\n delete component._jsPlumb.hoverPaintStyle;\n // we want the fill of paintStyle to override a gradient, if possible.\n if (mergedHoverStyle.gradient && component._jsPlumb.paintStyle.fill) {\n delete mergedHoverStyle.gradient;\n }\n component._jsPlumb.hoverPaintStyle = mergedHoverStyle;\n }\n },\n events = [\"tap\", \"dbltap\", \"click\", \"dblclick\", \"mouseover\", \"mouseout\", \"mousemove\", \"mousedown\", \"mouseup\", \"contextmenu\" ],\n eventFilters = { \"mouseout\": \"mouseleave\", \"mouseexit\": \"mouseleave\" },\n _updateAttachedElements = function (component, state, timestamp, sourceElement) {\n var affectedElements = component.getAttachedElements();\n if (affectedElements) {\n for (var i = 0, j = affectedElements.length; i < j; i++) {\n if (!sourceElement || sourceElement !== affectedElements[i]) {\n affectedElements[i].setHover(state, true, timestamp);\t\t\t// tell the attached elements not to inform their own attached elements.\n }\n }\n }\n },\n _splitType = function (t) {\n return t == null ? null : t.split(\" \");\n },\n _mapType = function(map, obj, typeId) {\n for (var i in obj) {\n map[i] = typeId;\n }\n },\n _each = function(fn, obj) {\n obj = _ju.isArray(obj) || (obj.length != null && !_ju.isString(obj)) ? obj : [ obj ];\n for (var i = 0; i < obj.length; i++) {\n try {\n fn.apply(obj[i], [ obj[i] ]);\n }\n catch (e) {\n _ju.log(\".each iteration failed : \" + e);\n }\n }\n },\n _applyTypes = function (component, params, doNotRepaint) {\n if (component.getDefaultType) {\n var td = component.getTypeDescriptor(), map = {};\n var defType = component.getDefaultType();\n var o = _ju.merge({}, defType);\n _mapType(map, defType, \"__default\");\n for (var i = 0, j = component._jsPlumb.types.length; i < j; i++) {\n var tid = component._jsPlumb.types[i];\n if (tid !== \"__default\") {\n var _t = component._jsPlumb.instance.getType(tid, td);\n if (_t != null) {\n var overrides = [\"anchor\", \"anchors\", \"connector\", \"paintStyle\", \"hoverPaintStyle\", \"endpoint\", \"endpoints\", \"connectorOverlays\", \"connectorStyle\", \"connectorHoverStyle\", \"endpointStyle\", \"endpointHoverStyle\"];\n var collations = [ ];\n if (_t.mergeStrategy === \"override\") {\n Array.prototype.push.apply(overrides, [\"events\", \"overlays\", \"cssClass\"]);\n } else {\n collations.push(\"cssClass\");\n }\n o = _ju.merge(o, _t, collations, overrides);\n _mapType(map, _t, tid);\n }\n }\n }\n if (params) {\n o = _ju.populate(o, params, \"_\");\n }\n component.applyType(o, doNotRepaint, map);\n if (!doNotRepaint) {\n component.repaint();\n }\n }\n },\n// ------------------------------ BEGIN jsPlumbUIComponent --------------------------------------------\n jsPlumbUIComponent = root.jsPlumbUIComponent = function (params) {\n _ju.EventGenerator.apply(this, arguments);\n var self = this,\n a = arguments,\n idPrefix = self.idPrefix,\n id = idPrefix + (new Date()).getTime();\n this._jsPlumb = {\n instance: params._jsPlumb,\n parameters: params.parameters || {},\n paintStyle: null,\n hoverPaintStyle: null,\n paintStyleInUse: null,\n hover: false,\n beforeDetach: params.beforeDetach,\n beforeDrop: params.beforeDrop,\n overlayPlacements: [],\n hoverClass: params.hoverClass || params._jsPlumb.Defaults.HoverClass,\n types: [],\n typeCache:{}\n };\n this.cacheTypeItem = function(key, item, typeId) {\n this._jsPlumb.typeCache[typeId] = this._jsPlumb.typeCache[typeId] || {};\n this._jsPlumb.typeCache[typeId][key] = item;\n };\n this.getCachedTypeItem = function(key, typeId) {\n return this._jsPlumb.typeCache[typeId] ? this._jsPlumb.typeCache[typeId][key] : null;\n };\n this.getId = function () {\n return id;\n };\n// ----------------------------- default type --------------------------------------------\n var o = params.overlays || [], oo = {};\n if (this.defaultOverlayKeys) {\n for (var i = 0; i < this.defaultOverlayKeys.length; i++) {\n Array.prototype.push.apply(o, this._jsPlumb.instance.Defaults[this.defaultOverlayKeys[i]] || []);\n }\n for (i = 0; i < o.length; i++) {\n // if a string, convert to object representation so that we can store the typeid on it.\n // also assign an id.\n var fo = jsPlumb.convertToFullOverlaySpec(o[i]);\n oo[fo[1].id] = fo;\n }\n }\n var _defaultType = {\n overlays:oo,\n parameters: params.parameters || {},\n scope: params.scope || this._jsPlumb.instance.getDefaultScope()\n };\n this.getDefaultType = function() {\n return _defaultType;\n };\n this.appendToDefaultType = function(obj) {\n for (var i in obj) {\n _defaultType[i] = obj[i];\n }\n };\n// ----------------------------- end default type --------------------------------------------\n // all components can generate events\n if (params.events) {\n for (var evtName in params.events) {\n self.bind(evtName, params.events[evtName]);\n }\n }\n // all components get this clone function.\n // TODO issue 116 showed a problem with this - it seems 'a' that is in\n // the clone function's scope is shared by all invocations of it, the classic\n // JS closure problem. for now, jsPlumb does a version of this inline where\n // it used to call clone. but it would be nice to find some time to look\n // further at this.\n this.clone = function () {\n var o = Object.create(this.constructor.prototype);\n this.constructor.apply(o, a);\n return o;\n }.bind(this);\n // user can supply a beforeDetach callback, which will be executed before a detach\n // is performed; returning false prevents the detach.\n this.isDetachAllowed = function (connection) {\n var r = true;\n if (this._jsPlumb.beforeDetach) {\n try {\n r = this._jsPlumb.beforeDetach(connection);\n }\n catch (e) {\n _ju.log(\"jsPlumb: beforeDetach callback failed\", e);\n }\n }\n return r;\n };\n // user can supply a beforeDrop callback, which will be executed before a dropped\n // connection is confirmed. user can return false to reject connection.\n this.isDropAllowed = function (sourceId, targetId, scope, connection, dropEndpoint, source, target) {\n var r = this._jsPlumb.instance.checkCondition(\"beforeDrop\", {\n sourceId: sourceId,\n targetId: targetId,\n scope: scope,\n connection: connection,\n dropEndpoint: dropEndpoint,\n source: source, target: target\n });\n if (this._jsPlumb.beforeDrop) {\n try {\n r = this._jsPlumb.beforeDrop({\n sourceId: sourceId,\n targetId: targetId,\n scope: scope,\n connection: connection,\n dropEndpoint: dropEndpoint,\n source: source, target: target\n });\n }\n catch (e) {\n _ju.log(\"jsPlumb: beforeDrop callback failed\", e);\n }\n }\n return r;\n };\n var domListeners = [];\n // sets the component associated with listener events. for instance, an overlay delegates\n // its events back to a connector. but if the connector is swapped on the underlying connection,\n // then this component must be changed. This is called by setConnector in the Connection class.\n this.setListenerComponent = function (c) {\n for (var i = 0; i < domListeners.length; i++) {\n domListeners[i][3] = c;\n }\n };\n };\n var _removeTypeCssHelper = function (component, typeIndex) {\n var typeId = component._jsPlumb.types[typeIndex],\n type = component._jsPlumb.instance.getType(typeId, component.getTypeDescriptor());\n if (type != null && type.cssClass && component.canvas) {\n component._jsPlumb.instance.removeClass(component.canvas, type.cssClass);\n }\n };\n _ju.extend(root.jsPlumbUIComponent, _ju.EventGenerator, {\n getParameter: function (name) {\n return this._jsPlumb.parameters[name];\n },\n setParameter: function (name, value) {\n this._jsPlumb.parameters[name] = value;\n },\n getParameters: function () {\n return this._jsPlumb.parameters;\n },\n setParameters: function (p) {\n this._jsPlumb.parameters = p;\n },\n getClass:function() {\n return jsPlumb.getClass(this.canvas);\n },\n hasClass:function(clazz) {\n return jsPlumb.hasClass(this.canvas, clazz);\n },\n addClass: function (clazz) {\n jsPlumb.addClass(this.canvas, clazz);\n },\n removeClass: function (clazz) {\n jsPlumb.removeClass(this.canvas, clazz);\n },\n updateClasses: function (classesToAdd, classesToRemove) {\n jsPlumb.updateClasses(this.canvas, classesToAdd, classesToRemove);\n },\n setType: function (typeId, params, doNotRepaint) {\n this.clearTypes();\n this._jsPlumb.types = _splitType(typeId) || [];\n _applyTypes(this, params, doNotRepaint);\n },\n getType: function () {\n return this._jsPlumb.types;\n },\n reapplyTypes: function (params, doNotRepaint) {\n _applyTypes(this, params, doNotRepaint);\n },\n hasType: function (typeId) {\n return this._jsPlumb.types.indexOf(typeId) !== -1;\n },\n addType: function (typeId, params, doNotRepaint) {\n var t = _splitType(typeId), _cont = false;\n if (t != null) {\n for (var i = 0, j = t.length; i < j; i++) {\n if (!this.hasType(t[i])) {\n this._jsPlumb.types.push(t[i]);\n _cont = true;\n }\n }\n if (_cont) {\n _applyTypes(this, params, doNotRepaint);\n }\n }\n },\n removeType: function (typeId, params, doNotRepaint) {\n var t = _splitType(typeId), _cont = false, _one = function (tt) {\n var idx = this._jsPlumb.types.indexOf(tt);\n if (idx !== -1) {\n // remove css class if necessary\n _removeTypeCssHelper(this, idx);\n this._jsPlumb.types.splice(idx, 1);\n return true;\n }\n return false;\n }.bind(this);\n if (t != null) {\n for (var i = 0, j = t.length; i < j; i++) {\n _cont = _one(t[i]) || _cont;\n }\n if (_cont) {\n _applyTypes(this, params, doNotRepaint);\n }\n }\n },\n clearTypes: function (params, doNotRepaint) {\n var i = this._jsPlumb.types.length;\n for (var j = 0; j < i; j++) {\n _removeTypeCssHelper(this, 0);\n this._jsPlumb.types.splice(0, 1);\n }\n _applyTypes(this, params, doNotRepaint);\n },\n toggleType: function (typeId, params, doNotRepaint) {\n var t = _splitType(typeId);\n if (t != null) {\n for (var i = 0, j = t.length; i < j; i++) {\n var idx = this._jsPlumb.types.indexOf(t[i]);\n if (idx !== -1) {\n _removeTypeCssHelper(this, idx);\n this._jsPlumb.types.splice(idx, 1);\n }\n else {\n this._jsPlumb.types.push(t[i]);\n }\n }\n _applyTypes(this, params, doNotRepaint);\n }\n },\n applyType: function (t, doNotRepaint) {\n this.setPaintStyle(t.paintStyle, doNotRepaint);\n this.setHoverPaintStyle(t.hoverPaintStyle, doNotRepaint);\n if (t.parameters) {\n for (var i in t.parameters) {\n this.setParameter(i, t.parameters[i]);\n }\n }\n this._jsPlumb.paintStyleInUse = this.getPaintStyle();\n },\n setPaintStyle: function (style, doNotRepaint) {\n // this._jsPlumb.paintStyle = jsPlumb.extend({}, style);\n // TODO figure out if we want components to clone paintStyle so as not to share it.\n this._jsPlumb.paintStyle = style;\n this._jsPlumb.paintStyleInUse = this._jsPlumb.paintStyle;\n _updateHoverStyle(this);\n if (!doNotRepaint) {\n this.repaint();\n }\n },\n getPaintStyle: function () {\n return this._jsPlumb.paintStyle;\n },\n setHoverPaintStyle: function (style, doNotRepaint) {\n //this._jsPlumb.hoverPaintStyle = jsPlumb.extend({}, style);\n // TODO figure out if we want components to clone paintStyle so as not to share it.\n this._jsPlumb.hoverPaintStyle = style;\n _updateHoverStyle(this);\n if (!doNotRepaint) {\n this.repaint();\n }\n },\n getHoverPaintStyle: function () {\n return this._jsPlumb.hoverPaintStyle;\n },\n destroy: function (force) {\n if (force || this.typeId == null) {\n this.cleanupListeners(); // this is on EventGenerator\n this.clone = null;\n this._jsPlumb = null;\n }\n },\n isHover: function () {\n return this._jsPlumb.hover;\n },\n setHover: function (hover, ignoreAttachedElements, timestamp) {\n // while dragging, we ignore these events. this keeps the UI from flashing and\n // swishing and whatevering.\n if (this._jsPlumb && !this._jsPlumb.instance.currentlyDragging && !this._jsPlumb.instance.isHoverSuspended()) {\n this._jsPlumb.hover = hover;\n var method = hover ? \"addClass\" : \"removeClass\";\n if (this.canvas != null) {\n if (this._jsPlumb.instance.hoverClass != null) {\n this._jsPlumb.instance[method](this.canvas, this._jsPlumb.instance.hoverClass);\n }\n if (this._jsPlumb.hoverClass != null) {\n this._jsPlumb.instance[method](this.canvas, this._jsPlumb.hoverClass);\n }\n }\n if (this._jsPlumb.hoverPaintStyle != null) {\n this._jsPlumb.paintStyleInUse = hover ? this._jsPlumb.hoverPaintStyle : this._jsPlumb.paintStyle;\n if (!this._jsPlumb.instance.isSuspendDrawing()) {\n timestamp = timestamp || jsPlumbUtil.uuid();\n this.repaint({timestamp: timestamp, recalc: false});\n }\n }\n // get the list of other affected elements, if supported by this component.\n // for a connection, its the endpoints. for an endpoint, its the connections! surprise.\n if (this.getAttachedElements && !ignoreAttachedElements) {\n _updateAttachedElements(this, hover, jsPlumbUtil.uuid(), this);\n }\n }\n }\n });\n// ------------------------------ END jsPlumbUIComponent --------------------------------------------\n var _jsPlumbInstanceIndex = 0,\n getInstanceIndex = function () {\n var i = _jsPlumbInstanceIndex + 1;\n _jsPlumbInstanceIndex++;\n return i;\n };\n var jsPlumbInstance = root.jsPlumbInstance = function (_defaults) {\n this.version = \"2.15.6\";\n this.Defaults = {\n Anchor: \"Bottom\",\n Anchors: [ null, null ],\n ConnectionsDetachable: true,\n ConnectionOverlays: [ ],\n Connector: \"Bezier\",\n Container: null,\n DoNotThrowErrors: false,\n DragOptions: { },\n DropOptions: { },\n Endpoint: \"Dot\",\n EndpointOverlays: [ ],\n Endpoints: [ null, null ],\n EndpointStyle: { fill: \"#456\" },\n EndpointStyles: [ null, null ],\n EndpointHoverStyle: null,\n EndpointHoverStyles: [ null, null ],\n HoverPaintStyle: null,\n LabelStyle: { color: \"black\" },\n ListStyle: { },\n LogEnabled: false,\n Overlays: [ ],\n MaxConnections: 1,\n PaintStyle: { \"stroke-width\": 4, stroke: \"#456\" },\n ReattachConnections: false,\n RenderMode: \"svg\",\n Scope: \"jsPlumb_DefaultScope\"\n };\n if (_defaults) {\n jsPlumb.extend(this.Defaults, _defaults);\n }\n this.logEnabled = this.Defaults.LogEnabled;\n this._connectionTypes = {};\n this._endpointTypes = {};\n _ju.EventGenerator.apply(this);\n var _currentInstance = this,\n _instanceIndex = getInstanceIndex(),\n _bb = _currentInstance.bind,\n _initialDefaults = {},\n _zoom = 1,\n _info = function (el) {\n if (el == null) {\n return null;\n }\n else if (el.nodeType === 3 || el.nodeType === 8) {\n return { el:el, text:true };\n }\n else {\n var _el = _currentInstance.getElement(el);\n return { el: _el, id: (_ju.isString(el) && _el == null) ? el : _getId(_el) };\n }\n };\n this.getInstanceIndex = function () {\n return _instanceIndex;\n };\n // CONVERTED\n this.setZoom = function (z, repaintEverything) {\n _zoom = z;\n _currentInstance.fire(\"zoom\", _zoom);\n if (repaintEverything) {\n _currentInstance.repaintEverything();\n }\n return true;\n };\n // CONVERTED\n this.getZoom = function () {\n return _zoom;\n };\n for (var i in this.Defaults) {\n _initialDefaults[i] = this.Defaults[i];\n }\n var _container, _containerDelegations = [];\n this.unbindContainer = function() {\n if (_container != null && _containerDelegations.length > 0) {\n for (var i = 0; i < _containerDelegations.length; i++) {\n _currentInstance.off(_container, _containerDelegations[i][0], _containerDelegations[i][1]);\n }\n }\n };\n this.setContainer = function (c) {\n this.unbindContainer();\n // get container as dom element.\n c = this.getElement(c);\n // move existing connections and endpoints, if any.\n this.select().each(function (conn) {\n conn.moveParent(c);\n });\n this.selectEndpoints().each(function (ep) {\n ep.moveParent(c);\n });\n // set container.\n var previousContainer = _container;\n _container = c;\n _containerDelegations.length = 0;\n var eventAliases = {\n \"endpointclick\":\"endpointClick\",\n \"endpointdblclick\":\"endpointDblClick\"\n };\n var _oneDelegateHandler = function (id, e, componentType) {\n var t = e.srcElement || e.target,\n jp = (t && t.parentNode ? t.parentNode._jsPlumb : null) || (t ? t._jsPlumb : null) || (t && t.parentNode && t.parentNode.parentNode ? t.parentNode.parentNode._jsPlumb : null);\n if (jp) {\n jp.fire(id, jp, e);\n var alias = componentType ? eventAliases[componentType + id] || id : id;\n // jsplumb also fires every event coming from components/overlays. That's what the test for `jp.component` is for.\n _currentInstance.fire(alias, jp.component || jp, e);\n }\n };\n var _addOneDelegate = function(eventId, selector, fn) {\n _containerDelegations.push([eventId, fn]);\n _currentInstance.on(_container, eventId, selector, fn);\n };\n // delegate one event on the container to jsplumb elements. it might be possible to\n // abstract this out: each of endpoint, connection and overlay could register themselves with\n // jsplumb as \"component types\" or whatever, and provide a suitable selector. this would be\n // done by the renderer (although admittedly from 2.0 onwards we're not supporting vml anymore)\n var _oneDelegate = function (id) {\n // connections.\n _addOneDelegate(id, \".jtk-connector\", function (e) {\n _oneDelegateHandler(id, e);\n });\n // endpoints. note they can have an enclosing div, or not.\n _addOneDelegate(id, \".jtk-endpoint\", function (e) {\n _oneDelegateHandler(id, e, \"endpoint\");\n });\n // overlays\n _addOneDelegate(id, \".jtk-overlay\", function (e) {\n _oneDelegateHandler(id, e);\n });\n };\n for (var i = 0; i < events.length; i++) {\n _oneDelegate(events[i]);\n }\n // managed elements\n for (var elId in managedElements) {\n var el = managedElements[elId].el;\n if (el.parentNode === previousContainer) {\n previousContainer.removeChild(el);\n _container.appendChild(el);\n }\n }\n };\n this.getContainer = function () {\n return _container;\n };\n this.bind = function (event, fn) {\n if (\"ready\" === event && initialized) {\n fn();\n }\n else {\n _bb.apply(_currentInstance, [event, fn]);\n }\n };\n _currentInstance.importDefaults = function (d) {\n for (var i in d) {\n _currentInstance.Defaults[i] = d[i];\n }\n if (d.Container) {\n _currentInstance.setContainer(d.Container);\n }\n return _currentInstance;\n };\n _currentInstance.restoreDefaults = function () {\n _currentInstance.Defaults = jsPlumb.extend({}, _initialDefaults);\n return _currentInstance;\n };\n var log = null,\n initialized = false,\n // TODO remove from window scope\n connections = [],\n // map of element id -> endpoint lists. an element can have an arbitrary\n // number of endpoints on it, and not all of them have to be connected\n // to anything.\n endpointsByElement = {},\n endpointsByUUID = {},\n managedElements = {},\n offsets = {},\n offsetTimestamps = {},\n draggableStates = {},\n connectionBeingDragged = false,\n sizes = [],\n _suspendDrawing = false,\n _suspendedAt = null,\n DEFAULT_SCOPE = this.Defaults.Scope,\n _curIdStamp = 1,\n _idstamp = function () {\n return \"\" + _curIdStamp++;\n },\n //\n // appends an element to some other element, which is calculated as follows:\n //\n // 1. if Container exists, use that element.\n // 2. if the 'parent' parameter exists, use that.\n // 3. otherwise just use the root element.\n //\n //\n _appendElement = function (el, parent) {\n if (_container) {\n _container.appendChild(el);\n }\n else if (!parent) {\n this.appendToRoot(el);\n }\n else {\n this.getElement(parent).appendChild(el);\n }\n }.bind(this),\n //\n // Draws an endpoint and its connections. this is the main entry point into drawing connections as well\n // as endpoints, since jsPlumb is endpoint-centric under the hood.\n //\n // @param element element to draw (of type library specific element object)\n // @param ui UI object from current library's event system. optional.\n // @param timestamp timestamp for this paint cycle. used to speed things up a little by cutting down the amount of offset calculations we do.\n // @param clearEdits defaults to false; indicates that mouse edits for connectors should be cleared\n ///\n _draw = function (element, ui, timestamp, clearEdits) {\n var drawResult = { c:[], e:[] };\n if (!_suspendDrawing) {\n element = _currentInstance.getElement(element);\n if (element != null) {\n var id = _getId(element),\n repaintEls = element.querySelectorAll(\".jtk-managed\");\n if (timestamp == null) {\n timestamp = jsPlumbUtil.uuid();\n }\n // update the offset of everything _before_ we try to draw anything.\n var o = _updateOffset({elId: id, offset: ui, recalc: false, timestamp: timestamp});\n for (var i = 0; i < repaintEls.length; i++) {\n _updateOffset({\n elId: repaintEls[i].getAttribute(\"id\"),\n // offset: {\n // left: o.o.left + repaintEls[i].offset.left,\n // top: o.o.top + repaintEls[i].offset.top\n // },\n recalc: true,\n timestamp: timestamp\n });\n }\n var d2 = _currentInstance.router.redraw(id, ui, timestamp, null, clearEdits);\n Array.prototype.push.apply(drawResult.c, d2.c);\n Array.prototype.push.apply(drawResult.e, d2.e);\n if (repaintEls) {\n for (var j = 0; j < repaintEls.length; j++) {\n d2 = _currentInstance.router.redraw(repaintEls[j].getAttribute(\"id\"), null, timestamp, null, clearEdits, true);\n Array.prototype.push.apply(drawResult.c, d2.c);\n Array.prototype.push.apply(drawResult.e, d2.e);\n }\n }\n }\n }\n return drawResult;\n },\n //\n // gets an Endpoint by uuid.\n //\n _getEndpoint = function (uuid) {\n return endpointsByUUID[uuid];\n },\n /**\n * inits a draggable if it's not already initialised.\n * TODO: somehow abstract this to the adapter, because the concept of \"draggable\" has no\n * place on the server.\n */\n _scopeMatch = function (e1, e2) {\n var s1 = e1.scope.split(/\\s/), s2 = e2.scope.split(/\\s/);\n for (var i = 0; i < s1.length; i++) {\n for (var j = 0; j < s2.length; j++) {\n if (s2[j] === s1[i]) {\n return true;\n }\n }\n }\n return false;\n },\n _mergeOverrides = function (def, values) {\n var m = jsPlumb.extend({}, def);\n for (var i in values) {\n if (values[i]) {\n m[i] = values[i];\n }\n }\n return m;\n },\n /*\n * prepares a final params object that can be passed to _newConnection, taking into account defaults, events, etc.\n */\n _prepareConnectionParams = function (params, referenceParams) {\n var _p = jsPlumb.extend({ }, params);\n if (referenceParams) {\n jsPlumb.extend(_p, referenceParams);\n }\n // hotwire endpoints passed as source or target to sourceEndpoint/targetEndpoint, respectively.\n if (_p.source) {\n if (_p.source.endpoint) {\n _p.sourceEndpoint = _p.source;\n }\n else {\n _p.source = _currentInstance.getElement(_p.source);\n }\n }\n if (_p.target) {\n if (_p.target.endpoint) {\n _p.targetEndpoint = _p.target;\n }\n else {\n _p.target = _currentInstance.getElement(_p.target);\n }\n }\n // test for endpoint uuids to connect\n if (params.uuids) {\n _p.sourceEndpoint = _getEndpoint(params.uuids[0]);\n _p.targetEndpoint = _getEndpoint(params.uuids[1]);\n }\n // now ensure that if we do have Endpoints already, they're not full.\n // source:\n if (_p.sourceEndpoint && _p.sourceEndpoint.isFull()) {\n _ju.log(_currentInstance, \"could not add connection; source endpoint is full\");\n return;\n }\n // target:\n if (_p.targetEndpoint && _p.targetEndpoint.isFull()) {\n _ju.log(_currentInstance, \"could not add connection; target endpoint is full\");\n return;\n }\n // if source endpoint mandates connection type and nothing specified in our params, use it.\n if (!_p.type && _p.sourceEndpoint) {\n _p.type = _p.sourceEndpoint.connectionType;\n }\n // copy in any connectorOverlays that were specified on the source endpoint.\n // it doesnt copy target endpoint overlays. i'm not sure if we want it to or not.\n if (_p.sourceEndpoint && _p.sourceEndpoint.connectorOverlays) {\n _p.overlays = _p.overlays || [];\n for (var i = 0, j = _p.sourceEndpoint.connectorOverlays.length; i < j; i++) {\n _p.overlays.push(_p.sourceEndpoint.connectorOverlays[i]);\n }\n }\n // scope\n if (_p.sourceEndpoint && _p.sourceEndpoint.scope) {\n _p.scope = _p.sourceEndpoint.scope;\n }\n // pointer events\n if (!_p[\"pointer-events\"] && _p.sourceEndpoint && _p.sourceEndpoint.connectorPointerEvents) {\n _p[\"pointer-events\"] = _p.sourceEndpoint.connectorPointerEvents;\n }\n var _addEndpoint = function (el, def, idx) {\n var params = _mergeOverrides(def, {\n anchor: _p.anchors ? _p.anchors[idx] : _p.anchor,\n endpoint: _p.endpoints ? _p.endpoints[idx] : _p.endpoint,\n paintStyle: _p.endpointStyles ? _p.endpointStyles[idx] : _p.endpointStyle,\n hoverPaintStyle: _p.endpointHoverStyles ? _p.endpointHoverStyles[idx] : _p.endpointHoverStyle\n });\n return _currentInstance.addEndpoint(el, params);\n };\n // check for makeSource/makeTarget specs.\n var _oneElementDef = function (type, idx, defs, matchType) {\n if (_p[type] && !_p[type].endpoint && !_p[type + \"Endpoint\"] && !_p.newConnection) {\n var tid = _getId(_p[type]), tep = defs[tid];\n tep = tep ? tep[matchType] : null;\n if (tep) {\n // if not enabled, return.\n if (!tep.enabled) {\n return false;\n }\n var epDef = jsPlumb.extend({}, tep.def);\n delete epDef.label;\n var newEndpoint = tep.endpoint != null && tep.endpoint._jsPlumb ? tep.endpoint : _addEndpoint(_p[type], epDef, idx);\n if (newEndpoint.isFull()) {\n return false;\n }\n _p[type + \"Endpoint\"] = newEndpoint;\n if (!_p.scope && epDef.scope) {\n _p.scope = epDef.scope;\n } // provide scope if not already provided and endpoint def has one.\n if (tep.uniqueEndpoint) {\n if (!tep.endpoint) {\n tep.endpoint = newEndpoint;\n newEndpoint.setDeleteOnEmpty(false);\n }\n else {\n newEndpoint.finalEndpoint = tep.endpoint;\n }\n } else {\n newEndpoint.setDeleteOnEmpty(true);\n }\n //\n // copy in connector overlays if present on the source definition.\n //\n if (idx === 0 && tep.def.connectorOverlays) {\n _p.overlays = _p.overlays || [];\n Array.prototype.push.apply(_p.overlays, tep.def.connectorOverlays);\n }\n }\n }\n };\n if (_oneElementDef(\"source\", 0, this.sourceEndpointDefinitions, _p.type || \"default\") === false) {\n return;\n }\n if (_oneElementDef(\"target\", 1, this.targetEndpointDefinitions, _p.type || \"default\") === false) {\n return;\n }\n // last, ensure scopes match\n if (_p.sourceEndpoint && _p.targetEndpoint) {\n if (!_scopeMatch(_p.sourceEndpoint, _p.targetEndpoint)) {\n _p = null;\n }\n }\n return _p;\n }.bind(_currentInstance),\n _newConnection = function (params) {\n var connectionFunc = _currentInstance.Defaults.ConnectionType || _currentInstance.getDefaultConnectionType();\n params._jsPlumb = _currentInstance;\n params.newConnection = _newConnection;\n params.newEndpoint = _newEndpoint;\n params.endpointsByUUID = endpointsByUUID;\n params.endpointsByElement = endpointsByElement;\n params.finaliseConnection = _finaliseConnection;\n params.id = \"con_\" + _idstamp();\n var con = new connectionFunc(params);\n // if the connection is draggable, then maybe we need to tell the target endpoint to init the\n // dragging code. it won't run again if it already configured to be draggable.\n if (con.isDetachable()) {\n con.endpoints[0].initDraggable(\"_jsPlumbSource\");\n con.endpoints[1].initDraggable(\"_jsPlumbTarget\");\n }\n return con;\n },\n //\n // adds the connection to the backing model, fires an event if necessary and then redraws\n //\n _finaliseConnection = _currentInstance.finaliseConnection = function (jpc, params, originalEvent, doInformAnchorManager) {\n params = params || {};\n // add to list of connections (by scope).\n if (!jpc.suspendedEndpoint) {\n connections.push(jpc);\n }\n jpc.pending = null;\n // turn off isTemporarySource on the source endpoint (only viable on first draw)\n jpc.endpoints[0].isTemporarySource = false;\n // always inform the anchor manager\n // except that if jpc has a suspended endpoint it's not true to say the\n // connection is new; it has just (possibly) moved. the question is whether\n // to make that call here or in the anchor manager. i think perhaps here.\n if (doInformAnchorManager !== false) {\n _currentInstance.router.newConnection(jpc);\n }\n // force a paint\n _draw(jpc.source);\n // fire an event\n if (!params.doNotFireConnectionEvent && params.fireEvent !== false) {\n var eventArgs = {\n connection: jpc,\n source: jpc.source, target: jpc.target,\n sourceId: jpc.sourceId, targetId: jpc.targetId,\n sourceEndpoint: jpc.endpoints[0], targetEndpoint: jpc.endpoints[1]\n };\n _currentInstance.fire(\"connection\", eventArgs, originalEvent);\n }\n },\n /*\n factory method to prepare a new endpoint. this should always be used instead of creating Endpoints\n manually, since this method attaches event listeners and an id.\n */\n _newEndpoint = function (params, id) {\n var endpointFunc = _currentInstance.Defaults.EndpointType || jsPlumb.Endpoint;\n var _p = jsPlumb.extend({}, params);\n //delete _p.label; // not supported by endpoint.\n _p._jsPlumb = _currentInstance;\n _p.newConnection = _newConnection;\n _p.newEndpoint = _newEndpoint;\n _p.endpointsByUUID = endpointsByUUID;\n _p.endpointsByElement = endpointsByElement;\n _p.fireDetachEvent = fireDetachEvent;\n _p.elementId = id || _getId(_p.source);\n var ep = new endpointFunc(_p);\n ep.id = \"ep_\" + _idstamp();\n _manage(_p.elementId, _p.source);\n if (!jsPlumb.headless) {\n _currentInstance.getDragManager().endpointAdded(_p.source, id);\n }\n return ep;\n },\n /*\n * performs the given function operation on all the connections found\n * for the given element id; this means we find all the endpoints for\n * the given element, and then for each endpoint find the connectors\n * connected to it. then we pass each connection in to the given\n * function.\n */\n _operation = function (elId, func, endpointFunc) {\n var endpoints = endpointsByElement[elId];\n if (endpoints && endpoints.length) {\n for (var i = 0, ii = endpoints.length; i < ii; i++) {\n for (var j = 0, jj = endpoints[i].connections.length; j < jj; j++) {\n var retVal = func(endpoints[i].connections[j]);\n // if the function passed in returns true, we exit.\n // most functions return false.\n if (retVal) {\n return;\n }\n }\n if (endpointFunc) {\n endpointFunc(endpoints[i]);\n }\n }\n }\n },\n _setDraggable = function (element, draggable) {\n return jsPlumb.each(element, function (el) {\n if (_currentInstance.isDragSupported(el)) {\n draggableStates[_currentInstance.getAttribute(el, \"id\")] = draggable;\n _currentInstance.setElementDraggable(el, draggable);\n }\n });\n },\n /*\n * private method to do the business of hiding/showing.\n *\n * @param el\n * either Id of the element in question or a library specific\n * object for the element.\n * @param state\n * String specifying a value for the css 'display' property\n * ('block' or 'none').\n */\n _setVisible = function (el, state, alsoChangeEndpoints) {\n state = state === \"block\";\n var endpointFunc = null;\n if (alsoChangeEndpoints) {\n endpointFunc = function (ep) {\n ep.setVisible(state, true, true);\n };\n }\n var info = _info(el);\n _operation(info.id, function (jpc) {\n if (state && alsoChangeEndpoints) {\n // this test is necessary because this functionality is new, and i wanted to maintain backwards compatibility.\n // this block will only set a connection to be visible if the other endpoint in the connection is also visible.\n var oidx = jpc.sourceId === info.id ? 1 : 0;\n if (jpc.endpoints[oidx].isVisible()) {\n jpc.setVisible(true);\n }\n }\n else { // the default behaviour for show, and what always happens for hide, is to just set the visibility without getting clever.\n jpc.setVisible(state);\n }\n }, endpointFunc);\n },\n /**\n * private method to do the business of toggling hiding/showing.\n */\n _toggleVisible = function (elId, changeEndpoints) {\n var endpointFunc = null;\n if (changeEndpoints) {\n endpointFunc = function (ep) {\n var state = ep.isVisible();\n ep.setVisible(!state);\n };\n }\n _operation(elId, function (jpc) {\n var state = jpc.isVisible();\n jpc.setVisible(!state);\n }, endpointFunc);\n },\n // TODO comparison performance\n _getCachedData = function (elId) {\n var o = offsets[elId];\n if (!o) {\n return _updateOffset({elId: elId});\n }\n else {\n return {o: o, s: sizes[elId]};\n }\n },\n /**\n * gets an id for the given element, creating and setting one if\n * necessary. the id is of the form\n *\n * jsPlumb__\n *\n * where \"index in instance\" is a monotonically increasing integer that starts at 0,\n * for each instance. this method is used not only to assign ids to elements that do not\n * have them but also to connections and endpoints.\n */\n _getId = function (element, uuid, doNotCreateIfNotFound) {\n if (_ju.isString(element)) {\n return element;\n }\n if (element == null) {\n return null;\n }\n var id = _currentInstance.getAttribute(element, \"id\");\n if (!id || id === \"undefined\") {\n // check if fixed uuid parameter is given\n if (arguments.length === 2 && arguments[1] !== undefined) {\n id = uuid;\n }\n else if (arguments.length === 1 || (arguments.length === 3 && !arguments[2])) {\n id = \"jsPlumb_\" + _instanceIndex + \"_\" + _idstamp();\n }\n if (!doNotCreateIfNotFound) {\n _currentInstance.setAttribute(element, \"id\", id);\n }\n }\n return id;\n };\n this.setConnectionBeingDragged = function (v) {\n connectionBeingDragged = v;\n };\n this.isConnectionBeingDragged = function () {\n return connectionBeingDragged;\n };\n /**\n * Returns a map of all the elements this jsPlumbInstance is currently managing.\n * @returns {Object} Map of [id-> {el, endpoint[], connection, position}] information.\n */\n this.getManagedElements = function() {\n return managedElements;\n };\n this.connectorClass = \"jtk-connector\";\n this.connectorOutlineClass = \"jtk-connector-outline\";\n this.connectedClass = \"jtk-connected\";\n this.hoverClass = \"jtk-hover\";\n this.endpointClass = \"jtk-endpoint\";\n this.endpointConnectedClass = \"jtk-endpoint-connected\";\n this.endpointFullClass = \"jtk-endpoint-full\";\n this.endpointDropAllowedClass = \"jtk-endpoint-drop-allowed\";\n this.endpointDropForbiddenClass = \"jtk-endpoint-drop-forbidden\";\n this.overlayClass = \"jtk-overlay\";\n this.draggingClass = \"jtk-dragging\";// CONVERTED\n this.elementDraggingClass = \"jtk-element-dragging\";// CONVERTED\n this.sourceElementDraggingClass = \"jtk-source-element-dragging\"; // CONVERTED\n this.targetElementDraggingClass = \"jtk-target-element-dragging\";// CONVERTED\n this.endpointAnchorClassPrefix = \"jtk-endpoint-anchor\";\n this.hoverSourceClass = \"jtk-source-hover\";\n this.hoverTargetClass = \"jtk-target-hover\";\n this.dragSelectClass = \"jtk-drag-select\";\n this.Anchors = {};\n this.Connectors = { \"svg\": {} };\n this.Endpoints = { \"svg\": {} };\n this.Overlays = { \"svg\": {} } ;\n this.ConnectorRenderers = {};\n this.SVG = \"svg\";\n// --------------------------- jsPlumbInstance public API ---------------------------------------------------------\n this.addEndpoint = function (el, params, referenceParams) {\n referenceParams = referenceParams || {};\n var p = jsPlumb.extend({}, referenceParams);\n jsPlumb.extend(p, params);\n p.endpoint = p.endpoint || _currentInstance.Defaults.Endpoint;\n p.paintStyle = p.paintStyle || _currentInstance.Defaults.EndpointStyle;\n var results = [],\n inputs = (_ju.isArray(el) || (el.length != null && !_ju.isString(el))) ? el : [ el ];\n for (var i = 0, j = inputs.length; i < j; i++) {\n p.source = _currentInstance.getElement(inputs[i]);\n _ensureContainer(p.source);\n var id = _getId(p.source), e = _newEndpoint(p, id);\n // ensure element is managed. force a recalc if drawing not suspended, to ensure the cached value is fresh\n var myOffset = _manage(id, p.source, null, !_suspendDrawing).info.o;\n _ju.addToList(endpointsByElement, id, e);\n if (!_suspendDrawing) {\n e.paint({\n anchorLoc: e.anchor.compute(\n { xy: [ myOffset.left, myOffset.top ],\n wh: sizes[id],\n element: e,\n timestamp: _suspendedAt,\n rotation:this.getRotation(id)\n }),\n timestamp: _suspendedAt\n });\n }\n results.push(e);\n }\n return results.length === 1 ? results[0] : results;\n };\n this.addEndpoints = function (el, endpoints, referenceParams) {\n var results = [];\n for (var i = 0, j = endpoints.length; i < j; i++) {\n var e = _currentInstance.addEndpoint(el, endpoints[i], referenceParams);\n if (_ju.isArray(e)) {\n Array.prototype.push.apply(results, e);\n }\n else {\n results.push(e);\n }\n }\n return results;\n };\n this.animate = function (el, properties, options) {\n if (!this.animationSupported) {\n return false;\n }\n options = options || {};\n var del = _currentInstance.getElement(el),\n id = _getId(del),\n stepFunction = jsPlumb.animEvents.step,\n completeFunction = jsPlumb.animEvents.complete;\n options[stepFunction] = _ju.wrap(options[stepFunction], function () {\n _currentInstance.revalidate(id);\n });\n // onComplete repaints, just to make sure everything looks good at the end of the animation.\n options[completeFunction] = _ju.wrap(options[completeFunction], function () {\n _currentInstance.revalidate(id);\n });\n _currentInstance.doAnimate(del, properties, options);\n };\n /**\n * checks for a listener for the given condition, executing it if found, passing in the given value.\n * condition listeners would have been attached using \"bind\" (which is, you could argue, now overloaded, since\n * firing click events etc is a bit different to what this does). i thought about adding a \"bindCondition\"\n * or something, but decided against it, for the sake of simplicity. jsPlumb will never fire one of these\n * condition events anyway.\n */\n this.checkCondition = function (conditionName, args) {\n var l = _currentInstance.getListener(conditionName),\n r = true;\n if (l && l.length > 0) {\n var values = Array.prototype.slice.call(arguments, 1);\n try {\n for (var i = 0, j = l.length; i < j; i++) {\n r = r && l[i].apply(l[i], values);\n }\n }\n catch (e) {\n _ju.log(_currentInstance, \"cannot check condition [\" + conditionName + \"]\" + e);\n }\n }\n return r;\n };\n this.connect = function (params, referenceParams) {\n // prepare a final set of parameters to create connection with\n var _p = _prepareConnectionParams(params, referenceParams), jpc;\n // TODO probably a nicer return value if the connection was not made. _prepareConnectionParams\n // will return null (and log something) if either endpoint was full. what would be nicer is to\n // create a dedicated 'error' object.\n if (_p) {\n if (_p.source == null && _p.sourceEndpoint == null) {\n _ju.log(\"Cannot establish connection - source does not exist\");\n return;\n }\n if (_p.target == null && _p.targetEndpoint == null) {\n _ju.log(\"Cannot establish connection - target does not exist\");\n return;\n }\n _ensureContainer(_p.source);\n // create the connection. it is not yet registered\n jpc = _newConnection(_p);\n // now add it the model, fire an event, and redraw\n _finaliseConnection(jpc, _p);\n }\n return jpc;\n };\n var stTypes = [\n { el: \"source\", elId: \"sourceId\", epDefs: \"sourceEndpointDefinitions\" },\n { el: \"target\", elId: \"targetId\", epDefs: \"targetEndpointDefinitions\" }\n ];\n var _set = function (c, el, idx, doNotRepaint) {\n var ep, _st = stTypes[idx], cId = c[_st.elId], cEl = c[_st.el], sid, sep,\n oldEndpoint = c.endpoints[idx];\n var evtParams = {\n index: idx,\n originalSourceId: idx === 0 ? cId : c.sourceId,\n newSourceId: c.sourceId,\n originalTargetId: idx === 1 ? cId : c.targetId,\n newTargetId: c.targetId,\n connection: c\n };\n if (el.constructor === jsPlumb.Endpoint) {\n ep = el;\n ep.addConnection(c);\n el = ep.element;\n }\n else {\n sid = _getId(el);\n sep = this[_st.epDefs][sid];\n if (sid === c[_st.elId]) {\n ep = null; // dont change source/target if the element is already the one given.\n }\n else if (sep) {\n for (var t in sep) {\n if (!sep[t].enabled) {\n return;\n }\n ep = sep[t].endpoint != null && sep[t].endpoint._jsPlumb ? sep[t].endpoint : this.addEndpoint(el, sep[t].def);\n if (sep[t].uniqueEndpoint) {\n sep[t].endpoint = ep;\n }\n ep.addConnection(c);\n }\n }\n else {\n ep = c.makeEndpoint(idx === 0, el, sid);\n }\n }\n if (ep != null) {\n oldEndpoint.detachFromConnection(c);\n c.endpoints[idx] = ep;\n c[_st.el] = ep.element;\n c[_st.elId] = ep.elementId;\n evtParams[idx === 0 ? \"newSourceId\" : \"newTargetId\"] = ep.elementId;\n fireMoveEvent(evtParams);\n if (!doNotRepaint) {\n c.repaint();\n }\n }\n evtParams.element = el;\n return evtParams;\n }.bind(this);\n this.setSource = function (connection, el, doNotRepaint) {\n var p = _set(connection, el, 0, doNotRepaint);\n this.router.sourceOrTargetChanged(p.originalSourceId, p.newSourceId, connection, p.el, 0);\n };\n this.setTarget = function (connection, el, doNotRepaint) {\n var p = _set(connection, el, 1, doNotRepaint);\n this.router.sourceOrTargetChanged(p.originalTargetId, p.newTargetId, connection, p.el, 1);\n };\n this.deleteEndpoint = function (object, dontUpdateHover, deleteAttachedObjects) {\n var endpoint = (typeof object === \"string\") ? endpointsByUUID[object] : object;\n if (endpoint) {\n _currentInstance.deleteObject({ endpoint: endpoint, dontUpdateHover: dontUpdateHover, deleteAttachedObjects:deleteAttachedObjects });\n }\n return _currentInstance;\n };\n this.deleteEveryEndpoint = function () {\n var _is = _currentInstance.setSuspendDrawing(true);\n for (var id in endpointsByElement) {\n var endpoints = endpointsByElement[id];\n if (endpoints && endpoints.length) {\n for (var i = 0, j = endpoints.length; i < j; i++) {\n _currentInstance.deleteEndpoint(endpoints[i], true);\n }\n }\n }\n endpointsByElement = {};\n managedElements = {};\n endpointsByUUID = {};\n offsets = {};\n offsetTimestamps = {};\n _currentInstance.router.reset();\n var dm = _currentInstance.getDragManager();\n if (dm) {\n dm.reset();\n }\n if (!_is) {\n _currentInstance.setSuspendDrawing(false);\n }\n return _currentInstance;\n };\n var fireDetachEvent = function (jpc, doFireEvent, originalEvent) {\n // may have been given a connection, or in special cases, an object\n var connType = _currentInstance.Defaults.ConnectionType || _currentInstance.getDefaultConnectionType(),\n argIsConnection = jpc.constructor === connType,\n params = argIsConnection ? {\n connection: jpc,\n source: jpc.source, target: jpc.target,\n sourceId: jpc.sourceId, targetId: jpc.targetId,\n sourceEndpoint: jpc.endpoints[0], targetEndpoint: jpc.endpoints[1]\n } : jpc;\n if (doFireEvent) {\n _currentInstance.fire(\"connectionDetached\", params, originalEvent);\n }\n // always fire this. used by internal jsplumb stuff.\n _currentInstance.fire(\"internal.connectionDetached\", params, originalEvent);\n _currentInstance.router.connectionDetached(params);\n };\n var fireMoveEvent = _currentInstance.fireMoveEvent = function (params, evt) {\n _currentInstance.fire(\"connectionMoved\", params, evt);\n };\n this.unregisterEndpoint = function (endpoint) {\n if (endpoint._jsPlumb.uuid) {\n endpointsByUUID[endpoint._jsPlumb.uuid] = null;\n }\n _currentInstance.router.deleteEndpoint(endpoint);\n // TODO at least replace this with a removeWithFunction call.\n for (var e in endpointsByElement) {\n var endpoints = endpointsByElement[e];\n if (endpoints) {\n var newEndpoints = [];\n for (var i = 0, j = endpoints.length; i < j; i++) {\n if (endpoints[i] !== endpoint) {\n newEndpoints.push(endpoints[i]);\n }\n }\n endpointsByElement[e] = newEndpoints;\n }\n if (endpointsByElement[e].length < 1) {\n delete endpointsByElement[e];\n }\n }\n };\n var IS_DETACH_ALLOWED = \"isDetachAllowed\";\n var BEFORE_DETACH = \"beforeDetach\";\n var CHECK_CONDITION = \"checkCondition\";\n /**\n * Deletes a Connection.\n * @method deleteConnection\n * @param connection Connection to delete\n * @param {Object} [params] Optional delete parameters\n * @param {Boolean} [params.fireEvent=true] If false, a connection detached event will not be fired. Otherwise one will.\n * @param {Boolean} [params.force=false] If true, the connection will be deleted even if a beforeDetach interceptor tries to stop the deletion.\n * @returns {Boolean} True if the connection was deleted, false otherwise.\n */\n this.deleteConnection = function(connection, params) {\n if (connection != null) {\n params = params || {};\n if (params.force || _ju.functionChain(true, false, [\n [ connection.endpoints[0], IS_DETACH_ALLOWED, [ connection ] ],\n [ connection.endpoints[1], IS_DETACH_ALLOWED, [ connection ] ],\n [ connection, IS_DETACH_ALLOWED, [ connection ] ],\n [ _currentInstance, CHECK_CONDITION, [ BEFORE_DETACH, connection ] ]\n ])) {\n connection.setHover(false);\n fireDetachEvent(connection, !connection.pending && params.fireEvent !== false, params.originalEvent);\n connection.endpoints[0].detachFromConnection(connection);\n connection.endpoints[1].detachFromConnection(connection);\n _ju.removeWithFunction(connections, function (_c) {\n return connection.id === _c.id;\n });\n connection.cleanup();\n connection.destroy();\n return true;\n }\n }\n return false;\n };\n /**\n * Remove all Connections from all elements, but leaves Endpoints in place ((unless a connection is set to auto delete its Endpoints).\n * @method deleteEveryConnection\n * @param {Object} [params] optional params object for the call\n * @param {Boolean} [params.fireEvent=true] Whether or not to fire detach events\n * @param {Boolean} [params.forceDetach=false] If true, this call will ignore any `beforeDetach` interceptors.\n * @returns {Number} The number of connections that were deleted.\n */\n this.deleteEveryConnection = function (params) {\n params = params || {};\n var count = connections.length, deletedCount = 0;\n _currentInstance.batch(function () {\n for (var i = 0; i < count; i++) {\n deletedCount += _currentInstance.deleteConnection(connections[0], params) ? 1 : 0;\n }\n });\n return deletedCount;\n };\n /**\n * Removes all an element's Connections.\n * @method deleteConnectionsForElement\n * @param {Object} el Either the id of the element, or a selector for the element.\n * @param {Object} [params] Optional parameters.\n * @param {Boolean} [params.fireEvent=true] Whether or not to fire the detach event.\n * @param {Boolean} [params.forceDetach=false] If true, this call will ignore any `beforeDetach` interceptors.\n * @return {jsPlumbInstance} The current jsPlumb instance.\n */\n this.deleteConnectionsForElement = function (el, params) {\n params = params || {};\n el = _currentInstance.getElement(el);\n var id = _getId(el), endpoints = endpointsByElement[id];\n if (endpoints && endpoints.length) {\n for (var i = 0, j = endpoints.length; i < j; i++) {\n endpoints[i].deleteEveryConnection(params);\n }\n }\n return _currentInstance;\n };\n /// not public. but of course its exposed. how to change this.\n this.deleteObject = function (params) {\n var result = {\n endpoints: {},\n connections: {},\n endpointCount: 0,\n connectionCount: 0\n },\n deleteAttachedObjects = params.deleteAttachedObjects !== false;\n var unravelConnection = function (connection) {\n if (connection != null && result.connections[connection.id] == null) {\n if (!params.dontUpdateHover && connection._jsPlumb != null) {\n connection.setHover(false);\n }\n result.connections[connection.id] = connection;\n result.connectionCount++;\n }\n };\n var unravelEndpoint = function (endpoint) {\n if (endpoint != null && result.endpoints[endpoint.id] == null) {\n if (!params.dontUpdateHover && endpoint._jsPlumb != null) {\n endpoint.setHover(false);\n }\n result.endpoints[endpoint.id] = endpoint;\n result.endpointCount++;\n if (deleteAttachedObjects) {\n for (var i = 0; i < endpoint.connections.length; i++) {\n var c = endpoint.connections[i];\n unravelConnection(c);\n }\n }\n }\n };\n if (params.connection) {\n unravelConnection(params.connection);\n }\n else {\n unravelEndpoint(params.endpoint);\n }\n // loop through connections\n for (var i in result.connections) {\n var c = result.connections[i];\n if (c._jsPlumb) {\n _ju.removeWithFunction(connections, function (_c) {\n return c.id === _c.id;\n });\n fireDetachEvent(c, params.fireEvent === false ? false : !c.pending, params.originalEvent);\n var doNotCleanup = params.deleteAttachedObjects == null ? null : !params.deleteAttachedObjects;\n c.endpoints[0].detachFromConnection(c, null, doNotCleanup);\n c.endpoints[1].detachFromConnection(c, null, doNotCleanup);\n c.cleanup(true);\n c.destroy(true);\n }\n }\n // loop through endpoints\n for (var j in result.endpoints) {\n var e = result.endpoints[j];\n if (e._jsPlumb) {\n _currentInstance.unregisterEndpoint(e);\n // FIRE some endpoint deleted event?\n e.cleanup(true);\n e.destroy(true);\n }\n }\n return result;\n };\n // helpers for select/selectEndpoints\n var _setOperation = function (list, func, args, selector) {\n for (var i = 0, j = list.length; i < j; i++) {\n list[i][func].apply(list[i], args);\n }\n return selector(list);\n },\n _getOperation = function (list, func, args) {\n var out = [];\n for (var i = 0, j = list.length; i < j; i++) {\n out.push([ list[i][func].apply(list[i], args), list[i] ]);\n }\n return out;\n },\n setter = function (list, func, selector) {\n return function () {\n return _setOperation(list, func, arguments, selector);\n };\n },\n getter = function (list, func) {\n return function () {\n return _getOperation(list, func, arguments);\n };\n },\n prepareList = function (input, doNotGetIds) {\n var r = [];\n if (input) {\n if (typeof input === 'string') {\n if (input === \"*\") {\n return input;\n }\n r.push(input);\n }\n else {\n if (doNotGetIds) {\n r = input;\n }\n else {\n if (input.length) {\n for (var i = 0, j = input.length; i < j; i++) {\n r.push(_info(input[i]).id);\n }\n }\n else {\n r.push(_info(input).id);\n }\n }\n }\n }\n return r;\n },\n filterList = function (list, value, missingIsFalse) {\n if (list === \"*\") {\n return true;\n }\n return list.length > 0 ? list.indexOf(value) !== -1 : !missingIsFalse;\n };\n // get some connections, specifying source/target/scope\n this.getConnections = function (options, flat) {\n if (!options) {\n options = {};\n } else if (options.constructor === String) {\n options = { \"scope\": options };\n }\n var scope = options.scope || _currentInstance.getDefaultScope(),\n scopes = prepareList(scope, true),\n sources = prepareList(options.source),\n targets = prepareList(options.target),\n results = (!flat && scopes.length > 1) ? {} : [],\n _addOne = function (scope, obj) {\n if (!flat && scopes.length > 1) {\n var ss = results[scope];\n if (ss == null) {\n ss = results[scope] = [];\n }\n ss.push(obj);\n } else {\n results.push(obj);\n }\n };\n for (var j = 0, jj = connections.length; j < jj; j++) {\n var c = connections[j],\n sourceId = c.proxies && c.proxies[0] ? c.proxies[0].originalEp.elementId : c.sourceId,\n targetId = c.proxies && c.proxies[1] ? c.proxies[1].originalEp.elementId : c.targetId;\n if (filterList(scopes, c.scope) && filterList(sources, sourceId) && filterList(targets, targetId)) {\n _addOne(c.scope, c);\n }\n }\n return results;\n };\n var _curryEach = function (list, executor) {\n return function (f) {\n for (var i = 0, ii = list.length; i < ii; i++) {\n f(list[i]);\n }\n return executor(list);\n };\n },\n _curryGet = function (list) {\n return function (idx) {\n return list[idx];\n };\n };\n var _makeCommonSelectHandler = function (list, executor) {\n var out = {\n length: list.length,\n each: _curryEach(list, executor),\n get: _curryGet(list)\n },\n setters = [\"setHover\", \"removeAllOverlays\", \"setLabel\", \"addClass\", \"addOverlay\", \"removeOverlay\",\n \"removeOverlays\", \"showOverlay\", \"hideOverlay\", \"showOverlays\", \"hideOverlays\", \"setPaintStyle\",\n \"setHoverPaintStyle\", \"setSuspendEvents\", \"setParameter\", \"setParameters\", \"setVisible\",\n \"repaint\", \"addType\", \"toggleType\", \"removeType\", \"removeClass\", \"setType\", \"bind\", \"unbind\" ],\n getters = [\"getLabel\", \"getOverlay\", \"isHover\", \"getParameter\", \"getParameters\", \"getPaintStyle\",\n \"getHoverPaintStyle\", \"isVisible\", \"hasType\", \"getType\", \"isSuspendEvents\" ],\n i, ii;\n for (i = 0, ii = setters.length; i < ii; i++) {\n out[setters[i]] = setter(list, setters[i], executor);\n }\n for (i = 0, ii = getters.length; i < ii; i++) {\n out[getters[i]] = getter(list, getters[i]);\n }\n return out;\n };\n var _makeConnectionSelectHandler = function (list) {\n var common = _makeCommonSelectHandler(list, _makeConnectionSelectHandler);\n return jsPlumb.extend(common, {\n // setters\n setDetachable: setter(list, \"setDetachable\", _makeConnectionSelectHandler),\n setReattach: setter(list, \"setReattach\", _makeConnectionSelectHandler),\n setConnector: setter(list, \"setConnector\", _makeConnectionSelectHandler),\n delete: function () {\n for (var i = 0, ii = list.length; i < ii; i++) {\n _currentInstance.deleteConnection(list[i]);\n }\n },\n // getters\n isDetachable: getter(list, \"isDetachable\"),\n isReattach: getter(list, \"isReattach\")\n });\n };\n var _makeEndpointSelectHandler = function (list) {\n var common = _makeCommonSelectHandler(list, _makeEndpointSelectHandler);\n return jsPlumb.extend(common, {\n setEnabled: setter(list, \"setEnabled\", _makeEndpointSelectHandler),\n setAnchor: setter(list, \"setAnchor\", _makeEndpointSelectHandler),\n isEnabled: getter(list, \"isEnabled\"),\n deleteEveryConnection: function () {\n for (var i = 0, ii = list.length; i < ii; i++) {\n list[i].deleteEveryConnection();\n }\n },\n \"delete\": function () {\n for (var i = 0, ii = list.length; i < ii; i++) {\n _currentInstance.deleteEndpoint(list[i]);\n }\n }\n });\n };\n this.select = function (params) {\n params = params || {};\n params.scope = params.scope || \"*\";\n return _makeConnectionSelectHandler(params.connections || _currentInstance.getConnections(params, true));\n };\n this.selectEndpoints = function (params) {\n params = params || {};\n params.scope = params.scope || \"*\";\n var noElementFilters = !params.element && !params.source && !params.target,\n elements = noElementFilters ? \"*\" : prepareList(params.element),\n sources = noElementFilters ? \"*\" : prepareList(params.source),\n targets = noElementFilters ? \"*\" : prepareList(params.target),\n scopes = prepareList(params.scope, true);\n var ep = [];\n for (var el in endpointsByElement) {\n var either = filterList(elements, el, true),\n source = filterList(sources, el, true),\n sourceMatchExact = sources !== \"*\",\n target = filterList(targets, el, true),\n targetMatchExact = targets !== \"*\";\n // if they requested 'either' then just match scope. otherwise if they requested 'source' (not as a wildcard) then we have to match only endpoints that have isSource set to to true, and the same thing with isTarget.\n if (either || source || target) {\n inner:\n for (var i = 0, ii = endpointsByElement[el].length; i < ii; i++) {\n var _ep = endpointsByElement[el][i];\n if (filterList(scopes, _ep.scope, true)) {\n var noMatchSource = (sourceMatchExact && sources.length > 0 && !_ep.isSource),\n noMatchTarget = (targetMatchExact && targets.length > 0 && !_ep.isTarget);\n if (noMatchSource || noMatchTarget) {\n continue inner;\n }\n ep.push(_ep);\n }\n }\n }\n }\n return _makeEndpointSelectHandler(ep);\n };\n // get all connections managed by the instance of jsplumb.\n this.getAllConnections = function () {\n return connections;\n };\n this.getDefaultScope = function () {\n return DEFAULT_SCOPE;\n };\n // get an endpoint by uuid.\n this.getEndpoint = _getEndpoint;\n /**\n * Gets the list of Endpoints for a given element.\n * @method getEndpoints\n * @param {String|Element|Selector} el The element to get endpoints for.\n * @return {Endpoint[]} An array of Endpoints for the specified element.\n */\n this.getEndpoints = function (el) {\n return endpointsByElement[_info(el).id] || [];\n };\n // gets the default endpoint type. used when subclassing. see wiki.\n this.getDefaultEndpointType = function () {\n return jsPlumb.Endpoint;\n };\n // gets the default connection type. used when subclassing. see wiki.\n this.getDefaultConnectionType = function () {\n return jsPlumb.Connection;\n };\n /*\n * Gets an element's id, creating one if necessary. really only exposed\n * for the lib-specific functionality to access; would be better to pass\n * the current instance into the lib-specific code (even though this is\n * a static call. i just don't want to expose it to the public API).\n */\n this.getId = _getId;\n this.draw = _draw;\n this.info = _info;\n this.appendElement = _appendElement;\n var _hoverSuspended = false;\n this.isHoverSuspended = function () {\n return _hoverSuspended;\n };\n this.setHoverSuspended = function (s) {\n _hoverSuspended = s;\n };\n // set an element's connections to be hidden\n this.hide = function (el, changeEndpoints) {\n _setVisible(el, \"none\", changeEndpoints);\n return _currentInstance;\n };\n // exposed for other objects to use to get a unique id.\n this.idstamp = _idstamp;\n // ensure that, if the current container exists, it is a DOM element and not a selector.\n // if it does not exist and `candidate` is supplied, the offset parent of that element will be set as the Container.\n // this is used to do a better default behaviour for the case that the user has not set a container:\n // addEndpoint, makeSource, makeTarget and connect all call this method with the offsetParent of the\n // element in question (for connect it is the source element). So if no container is set, it is inferred\n // to be the offsetParent of the first element the user tries to connect.\n var _ensureContainer = function (candidate) {\n if (!_container && candidate) {\n var can = _currentInstance.getElement(candidate);\n if (can.offsetParent) {\n _currentInstance.setContainer(can.offsetParent);\n }\n }\n };\n var _getContainerFromDefaults = function () {\n if (_currentInstance.Defaults.Container) {\n _currentInstance.setContainer(_currentInstance.Defaults.Container);\n }\n };\n // check if a given element is managed or not. if not, add to our map. if drawing is not suspended then\n // we'll also stash its dimensions; otherwise we'll do this in a lazy way through updateOffset.\n var _manage = _currentInstance.manage = function (id, element, _transient, _recalc) {\n if (!managedElements[id]) {\n managedElements[id] = {\n el: element,\n endpoints: [],\n connections: [],\n rotation: 0\n };\n managedElements[id].info = _updateOffset({ elId: id, timestamp: _suspendedAt });\n _currentInstance.addClass(element, \"jtk-managed\");\n if (!_transient) {\n _currentInstance.fire(\"manageElement\", { id:id, info:managedElements[id].info, el:element });\n }\n } else {\n if (_recalc) {\n managedElements[id].info = _updateOffset({ elId: id, timestamp: _suspendedAt, recalc:true });\n }\n }\n return managedElements[id];\n };\n this.unmanage = function(id) {\n if (managedElements[id]) {\n var el = managedElements[id].el;\n _currentInstance.removeClass(el, \"jtk-managed\");\n delete managedElements[id];\n _currentInstance.fire(\"unmanageElement\", {id:id, el:el});\n }\n };\n this.rotate = function(elId, amountInDegrees, doNotRedraw) {\n if (managedElements[elId]) {\n managedElements[elId].rotation = amountInDegrees;\n managedElements[elId].el.style.transform=\"rotate(\" + amountInDegrees + \"deg)\";\n managedElements[elId].el.style.transformOrigin=\"center center\";\n if (doNotRedraw !== true) {\n return this.revalidate(elId);\n }\n }\n return {\n c:[], e:[]\n };\n };\n this.getRotation = function(elementId) {\n return managedElements[elementId] ? managedElements[elementId].rotation || 0 : 0;\n };\n /**\n * updates the offset and size for a given element, and stores the\n * values. if 'offset' is not null we use that (it would have been\n * passed in from a drag call) because it's faster; but if it is null,\n * or if 'recalc' is true in order to force a recalculation, we get the current values.\n * @method updateOffset\n */\n var _updateOffset = function (params) {\n var timestamp = params.timestamp, recalc = params.recalc, offset = params.offset, elId = params.elId, s;\n if (_suspendDrawing && !timestamp) {\n timestamp = _suspendedAt;\n }\n if (!recalc) {\n if (timestamp && timestamp === offsetTimestamps[elId]) {\n return {o: params.offset || offsets[elId], s: sizes[elId]};\n }\n }\n if (recalc || (!offset && offsets[elId] == null)) { // if forced repaint or no offset available, we recalculate.\n // get the current size and offset, and store them\n s = managedElements[elId] ? managedElements[elId].el : null;\n if (s != null) {\n sizes[elId] = _currentInstance.getSize(s);\n offsets[elId] = _currentInstance.getOffset(s);\n offsetTimestamps[elId] = timestamp;\n }\n } else {\n offsets[elId] = offset || offsets[elId];\n if (sizes[elId] == null) {\n s = managedElements[elId].el;\n if (s != null) {\n sizes[elId] = _currentInstance.getSize(s);\n }\n }\n offsetTimestamps[elId] = timestamp;\n }\n if (offsets[elId] && !offsets[elId].right) {\n offsets[elId].right = offsets[elId].left + sizes[elId][0];\n offsets[elId].bottom = offsets[elId].top + sizes[elId][1];\n offsets[elId].width = sizes[elId][0];\n offsets[elId].height = sizes[elId][1];\n offsets[elId].centerx = offsets[elId].left + (offsets[elId].width / 2);\n offsets[elId].centery = offsets[elId].top + (offsets[elId].height / 2);\n }\n return {o: offsets[elId], s: sizes[elId]};\n };\n this.updateOffset = _updateOffset;\n /**\n * callback from the current library to tell us to prepare ourselves (attach\n * mouse listeners etc; can't do that until the library has provided a bind method)\n */\n this.init = function () {\n if (!initialized) {\n _getContainerFromDefaults();\n _currentInstance.router = new root.jsPlumb.DefaultRouter(_currentInstance);\n _currentInstance.anchorManager = _currentInstance.router.anchorManager;\n initialized = true;\n _currentInstance.fire(\"ready\", _currentInstance);\n }\n }.bind(this);\n this.log = log;\n this.jsPlumbUIComponent = jsPlumbUIComponent;\n /*\n * Creates an anchor with the given params.\n *\n *\n * Returns: The newly created Anchor.\n * Throws: an error if a named anchor was not found.\n */\n this.makeAnchor = function () {\n var pp, _a = function (t, p) {\n if (root.jsPlumb.Anchors[t]) {\n return new root.jsPlumb.Anchors[t](p);\n }\n if (!_currentInstance.Defaults.DoNotThrowErrors) {\n throw { msg: \"jsPlumb: unknown anchor type '\" + t + \"'\" };\n }\n };\n if (arguments.length === 0) {\n return null;\n }\n var specimen = arguments[0], elementId = arguments[1], jsPlumbInstance = arguments[2], newAnchor = null;\n // if it appears to be an anchor already...\n if (specimen.compute && specimen.getOrientation) {\n return specimen;\n } //TODO hazy here about whether it should be added or is already added somehow.\n // is it the name of an anchor type?\n else if (typeof specimen === \"string\") {\n newAnchor = _a(arguments[0], {elementId: elementId, jsPlumbInstance: _currentInstance});\n }\n // is it an array? it will be one of:\n // an array of [spec, params] - this defines a single anchor, which may be dynamic, but has parameters.\n // an array of arrays - this defines some dynamic anchors\n // an array of numbers - this defines a single anchor.\n else if (_ju.isArray(specimen)) {\n if (_ju.isArray(specimen[0]) || _ju.isString(specimen[0])) {\n // if [spec, params] format\n if (specimen.length === 2 && _ju.isObject(specimen[1])) {\n // if first arg is a string, its a named anchor with params\n if (_ju.isString(specimen[0])) {\n pp = root.jsPlumb.extend({elementId: elementId, jsPlumbInstance: _currentInstance}, specimen[1]);\n newAnchor = _a(specimen[0], pp);\n }\n // otherwise first arg is array, second is params. we treat as a dynamic anchor, which is fine\n // even if the first arg has only one entry. you could argue all anchors should be implicitly dynamic in fact.\n else {\n pp = root.jsPlumb.extend({elementId: elementId, jsPlumbInstance: _currentInstance, anchors: specimen[0]}, specimen[1]);\n newAnchor = new root.jsPlumb.DynamicAnchor(pp);\n }\n }\n else {\n newAnchor = new jsPlumb.DynamicAnchor({anchors: specimen, selector: null, elementId: elementId, jsPlumbInstance: _currentInstance});\n }\n }\n else {\n var anchorParams = {\n x: specimen[0], y: specimen[1],\n orientation: (specimen.length >= 4) ? [ specimen[2], specimen[3] ] : [0, 0],\n offsets: (specimen.length >= 6) ? [ specimen[4], specimen[5] ] : [ 0, 0 ],\n elementId: elementId,\n jsPlumbInstance: _currentInstance,\n cssClass: specimen.length === 7 ? specimen[6] : null\n };\n newAnchor = new root.jsPlumb.Anchor(anchorParams);\n newAnchor.clone = function () {\n return new root.jsPlumb.Anchor(anchorParams);\n };\n }\n }\n if (!newAnchor.id) {\n newAnchor.id = \"anchor_\" + _idstamp();\n }\n return newAnchor;\n };\n /**\n * makes a list of anchors from the given list of types or coords, eg\n * [\"TopCenter\", \"RightMiddle\", \"BottomCenter\", [0, 1, -1, -1] ]\n */\n this.makeAnchors = function (types, elementId, jsPlumbInstance) {\n var r = [];\n for (var i = 0, ii = types.length; i < ii; i++) {\n if (typeof types[i] === \"string\") {\n r.push(root.jsPlumb.Anchors[types[i]]({elementId: elementId, jsPlumbInstance: jsPlumbInstance}));\n }\n else if (_ju.isArray(types[i])) {\n r.push(_currentInstance.makeAnchor(types[i], elementId, jsPlumbInstance));\n }\n }\n return r;\n };\n /**\n * Makes a dynamic anchor from the given list of anchors (which may be in shorthand notation as strings or dimension arrays, or Anchor\n * objects themselves) and the given, optional, anchorSelector function (jsPlumb uses a default if this is not provided; most people will\n * not need to provide this - i think).\n */\n this.makeDynamicAnchor = function (anchors, anchorSelector) {\n return new root.jsPlumb.DynamicAnchor({anchors: anchors, selector: anchorSelector, elementId: null, jsPlumbInstance: _currentInstance});\n };\n// --------------------- makeSource/makeTarget ----------------------------------------------\n this.targetEndpointDefinitions = {};\n this.sourceEndpointDefinitions = {};\n var selectorFilter = function (evt, _el, selector, _instance, negate) {\n var t = evt.target || evt.srcElement, ok = false,\n sel = _instance.getSelector(_el, selector);\n for (var j = 0; j < sel.length; j++) {\n if (sel[j] === t) {\n ok = true;\n break;\n }\n }\n return negate ? !ok : ok;\n };\n var _makeElementDropHandler = function (elInfo, p, dropOptions, isSource, isTarget) {\n var proxyComponent = new jsPlumbUIComponent(p);\n var _drop = p._jsPlumb.EndpointDropHandler({\n jsPlumb: _currentInstance,\n enabled: function () {\n return elInfo.def.enabled;\n },\n isFull: function () {\n var targetCount = _currentInstance.select({target: elInfo.id}).length;\n return elInfo.def.maxConnections > 0 && targetCount >= elInfo.def.maxConnections;\n },\n element: elInfo.el,\n elementId: elInfo.id,\n isSource: isSource,\n isTarget: isTarget,\n addClass: function (clazz) {\n _currentInstance.addClass(elInfo.el, clazz);\n },\n removeClass: function (clazz) {\n _currentInstance.removeClass(elInfo.el, clazz);\n },\n onDrop: function (jpc) {\n var source = jpc.endpoints[0];\n source.anchor.locked = false;\n },\n isDropAllowed: function () {\n return proxyComponent.isDropAllowed.apply(proxyComponent, arguments);\n },\n isRedrop:function(jpc) {\n return (jpc.suspendedElement != null && jpc.suspendedEndpoint != null && jpc.suspendedEndpoint.element === elInfo.el);\n },\n getEndpoint: function (jpc) {\n // make a new Endpoint for the target, or get it from the cache if uniqueEndpoint\n // is set. if its a redrop the new endpoint will be immediately cleaned up.\n var newEndpoint = elInfo.def.endpoint;\n // if no cached endpoint, or there was one but it has been cleaned up\n // (ie. detached), create a new one\n if (newEndpoint == null || newEndpoint._jsPlumb == null) {\n var eps = _currentInstance.deriveEndpointAndAnchorSpec(jpc.getType().join(\" \"), true);\n var pp = eps.endpoints ? root.jsPlumb.extend(p, {\n endpoint:elInfo.def.def.endpoint || eps.endpoints[1]\n }) :p;\n if (eps.anchors) {\n pp = root.jsPlumb.extend(pp, {\n anchor:elInfo.def.def.anchor || eps.anchors[1]\n });\n }\n newEndpoint = _currentInstance.addEndpoint(elInfo.el, pp);\n newEndpoint._mtNew = true;\n }\n if (p.uniqueEndpoint) {\n elInfo.def.endpoint = newEndpoint;\n }\n newEndpoint.setDeleteOnEmpty(true);\n // if connection is detachable, init the new endpoint to be draggable, to support that happening.\n if (jpc.isDetachable()) {\n newEndpoint.initDraggable();\n }\n // if the anchor has a 'positionFinder' set, then delegate to that function to find\n // out where to locate the anchor.\n if (newEndpoint.anchor.positionFinder != null) {\n var dropPosition = _currentInstance.getUIPosition(arguments, _currentInstance.getZoom()),\n elPosition = _currentInstance.getOffset(elInfo.el),\n elSize = _currentInstance.getSize(elInfo.el),\n ap = dropPosition == null ? [0,0] : newEndpoint.anchor.positionFinder(dropPosition, elPosition, elSize, newEndpoint.anchor.constructorParams);\n newEndpoint.anchor.x = ap[0];\n newEndpoint.anchor.y = ap[1];\n // now figure an orientation for it..kind of hard to know what to do actually. probably the best thing i can do is to\n // support specifying an orientation in the anchor's spec. if one is not supplied then i will make the orientation\n // be what will cause the most natural link to the source: it will be pointing at the source, but it needs to be\n // specified in one axis only, and so how to make that choice? i think i will use whichever axis is the one in which\n // the target is furthest away from the source.\n }\n return newEndpoint;\n },\n maybeCleanup: function (ep) {\n if (ep._mtNew && ep.connections.length === 0) {\n _currentInstance.deleteObject({endpoint: ep});\n }\n else {\n delete ep._mtNew;\n }\n }\n });\n // wrap drop events as needed and initialise droppable\n var dropEvent = root.jsPlumb.dragEvents.drop;\n dropOptions.scope = dropOptions.scope || (p.scope || _currentInstance.Defaults.Scope);\n dropOptions[dropEvent] = _ju.wrap(dropOptions[dropEvent], _drop, true);\n dropOptions.rank = p.rank || 0;\n // if target, return true from the over event. this will cause katavorio to stop setting drops to hover\n // if multipleDrop is set to false.\n if (isTarget) {\n dropOptions[root.jsPlumb.dragEvents.over] = function () { return true; };\n }\n // vanilla jsplumb only\n if (p.allowLoopback === false) {\n dropOptions.canDrop = function (_drag) {\n var de = _drag.getDragElement()._jsPlumbRelatedElement;\n return de !== elInfo.el;\n };\n }\n _currentInstance.initDroppable(elInfo.el, dropOptions, \"internal\");\n return _drop;\n };\n // see API docs\n this.makeTarget = function (el, params, referenceParams) {\n // put jsplumb ref into params without altering the params passed in\n var p = root.jsPlumb.extend({_jsPlumb: this}, referenceParams);\n root.jsPlumb.extend(p, params);\n var maxConnections = p.maxConnections || -1,\n _doOne = function (el) {\n // get the element's id and store the endpoint definition for it. jsPlumb.connect calls will look for one of these,\n // and use the endpoint definition if found.\n // decode the info for this element (id and element)\n var elInfo = _info(el),\n elid = elInfo.id,\n dropOptions = root.jsPlumb.extend({}, p.dropOptions || {}),\n type = p.connectionType || \"default\";\n this.targetEndpointDefinitions[elid] = this.targetEndpointDefinitions[elid] || {};\n _ensureContainer(elid);\n // if this is a group and the user has not mandated a rank, set to -1 so that Nodes takes\n // precedence.\n if (elInfo.el._isJsPlumbGroup && dropOptions.rank == null) {\n dropOptions.rank = -1;\n }\n // store the definition\n var _def = {\n def: root.jsPlumb.extend({}, p),\n uniqueEndpoint: p.uniqueEndpoint,\n maxConnections: maxConnections,\n enabled: true\n };\n if (p.createEndpoint) {\n _def.uniqueEndpoint = true;\n _def.endpoint = _currentInstance.addEndpoint(el, _def.def);\n _def.endpoint.setDeleteOnEmpty(false);\n }\n elInfo.def = _def;\n this.targetEndpointDefinitions[elid][type] = _def;\n _makeElementDropHandler(elInfo, p, dropOptions, p.isSource === true, true);\n // stash the definition on the drop\n elInfo.el._katavorioDrop[elInfo.el._katavorioDrop.length - 1].targetDef = _def;\n }.bind(this);\n // make an array if only given one element\n var inputs = el.length && el.constructor !== String ? el : [ el ];\n // register each one in the list.\n for (var i = 0, ii = inputs.length; i < ii; i++) {\n _doOne(inputs[i]);\n }\n return this;\n };\n // see api docs\n this.unmakeTarget = function (el, doNotClearArrays) {\n var info = _info(el);\n _currentInstance.destroyDroppable(info.el, \"internal\");\n if (!doNotClearArrays) {\n delete this.targetEndpointDefinitions[info.id];\n }\n return this;\n };\n // see api docs\n this.makeSource = function (el, params, referenceParams) {\n var p = root.jsPlumb.extend({_jsPlumb: this}, referenceParams);\n root.jsPlumb.extend(p, params);\n var type = p.connectionType || \"default\";\n var aae = _currentInstance.deriveEndpointAndAnchorSpec(type);\n p.endpoint = p.endpoint || aae.endpoints[0];\n p.anchor = p.anchor || aae.anchors[0];\n var maxConnections = p.maxConnections || -1,\n onMaxConnections = p.onMaxConnections,\n _doOne = function (elInfo) {\n // get the element's id and store the endpoint definition for it. jsPlumb.connect calls will look for one of these,\n // and use the endpoint definition if found.\n var elid = elInfo.id,\n _del = this.getElement(elInfo.el);\n this.sourceEndpointDefinitions[elid] = this.sourceEndpointDefinitions[elid] || {};\n _ensureContainer(elid);\n var _def = {\n def:root.jsPlumb.extend({}, p),\n uniqueEndpoint: p.uniqueEndpoint,\n maxConnections: maxConnections,\n enabled: true\n };\n if (p.createEndpoint) {\n _def.uniqueEndpoint = true;\n _def.endpoint = _currentInstance.addEndpoint(el, _def.def);\n _def.endpoint.setDeleteOnEmpty(false);\n }\n this.sourceEndpointDefinitions[elid][type] = _def;\n elInfo.def = _def;\n var stopEvent = root.jsPlumb.dragEvents.stop,\n dragEvent = root.jsPlumb.dragEvents.drag,\n dragOptions = root.jsPlumb.extend({ }, p.dragOptions || {}),\n existingDrag = dragOptions.drag,\n existingStop = dragOptions.stop,\n ep = null,\n endpointAddedButNoDragYet = false;\n // set scope if its not set in dragOptions but was passed in in params\n dragOptions.scope = dragOptions.scope || p.scope;\n dragOptions[dragEvent] = _ju.wrap(dragOptions[dragEvent], function () {\n if (existingDrag) {\n existingDrag.apply(this, arguments);\n }\n endpointAddedButNoDragYet = false;\n });\n dragOptions[stopEvent] = _ju.wrap(dragOptions[stopEvent], function () {\n if (existingStop) {\n existingStop.apply(this, arguments);\n }\n this.currentlyDragging = false;\n if (ep._jsPlumb != null) { // if not cleaned up...\n // reset the anchor to the anchor that was initially provided. the one we were using to drag\n // the connection was just a placeholder that was located at the place the user pressed the\n // mouse button to initiate the drag.\n var anchorDef = p.anchor || this.Defaults.Anchor,\n oldAnchor = ep.anchor,\n oldConnection = ep.connections[0];\n var newAnchor = this.makeAnchor(anchorDef, elid, this),\n _el = ep.element;\n // if the anchor has a 'positionFinder' set, then delegate to that function to find\n // out where to locate the anchor. issue 117.\n if (newAnchor.positionFinder != null) {\n var elPosition = _currentInstance.getOffset(_el),\n elSize = this.getSize(_el),\n dropPosition = { left: elPosition.left + (oldAnchor.x * elSize[0]), top: elPosition.top + (oldAnchor.y * elSize[1]) },\n ap = newAnchor.positionFinder(dropPosition, elPosition, elSize, newAnchor.constructorParams);\n newAnchor.x = ap[0];\n newAnchor.y = ap[1];\n }\n ep.setAnchor(newAnchor, true);\n ep.repaint();\n this.repaint(ep.elementId);\n if (oldConnection != null) {\n this.repaint(oldConnection.targetId);\n }\n }\n }.bind(this));\n // when the user presses the mouse, add an Endpoint, if we are enabled.\n var mouseDownListener = function (e) {\n // on right mouse button, abort.\n if (e.which === 3 || e.button === 2) {\n return;\n }\n elid = this.getId(this.getElement(elInfo.el)); // elid might have changed since this method was called to configure the element.\n // TODO store def on element.\n var def = this.sourceEndpointDefinitions[elid][type];\n // if disabled, return.\n if (!def.enabled) {\n return;\n }\n // if a filter was given, run it, and return if it says no.\n if (p.filter) {\n var r = _ju.isString(p.filter) ? selectorFilter(e, elInfo.el, p.filter, this, p.filterExclude) : p.filter(e, elInfo.el);\n if (r === false) {\n return;\n }\n }\n // if maxConnections reached\n var sourceCount = this.select({source: elid}).length;\n if (def.maxConnections >= 0 && (sourceCount >= def.maxConnections)) {\n if (onMaxConnections) {\n onMaxConnections({\n element: elInfo.el,\n maxConnections: maxConnections\n }, e);\n }\n return false;\n }\n // find the position on the element at which the mouse was pressed; this is where the endpoint\n // will be located.\n var elxy = root.jsPlumb.getPositionOnElement(e, _del, _zoom);\n // we need to override the anchor in here, and force 'isSource', but we don't want to mess with\n // the params passed in, because after a connection is established we're going to reset the endpoint\n // to have the anchor we were given.\n var tempEndpointParams = {};\n root.jsPlumb.extend(tempEndpointParams, def.def);\n tempEndpointParams.isTemporarySource = true;\n tempEndpointParams.anchor = [ elxy[0], elxy[1] , 0, 0];\n tempEndpointParams.dragOptions = dragOptions;\n if (def.def.scope) {\n tempEndpointParams.scope = def.def.scope;\n }\n ep = this.addEndpoint(elid, tempEndpointParams);\n endpointAddedButNoDragYet = true;\n ep.setDeleteOnEmpty(true);\n // if unique endpoint and it's already been created, push it onto the endpoint we create. at the end\n // of a successful connection we'll switch to that endpoint.\n // TODO this is the same code as the programmatic endpoints create on line 1050 ish\n if (def.uniqueEndpoint) {\n if (!def.endpoint) {\n def.endpoint = ep;\n ep.setDeleteOnEmpty(false);\n }\n else {\n ep.finalEndpoint = def.endpoint;\n }\n }\n var _delTempEndpoint = function () {\n // this mouseup event is fired only if no dragging occurred, by jquery and yui, but for mootools\n // it is fired even if dragging has occurred, in which case we would blow away a perfectly\n // legitimate endpoint, were it not for this check. the flag is set after adding an\n // endpoint and cleared in a drag listener we set in the dragOptions above.\n _currentInstance.off(ep.canvas, \"mouseup\", _delTempEndpoint);\n _currentInstance.off(elInfo.el, \"mouseup\", _delTempEndpoint);\n if (endpointAddedButNoDragYet) {\n endpointAddedButNoDragYet = false;\n _currentInstance.deleteEndpoint(ep);\n }\n };\n _currentInstance.on(ep.canvas, \"mouseup\", _delTempEndpoint);\n _currentInstance.on(elInfo.el, \"mouseup\", _delTempEndpoint);\n // optionally check for attributes to extract from the source element\n var payload = {};\n if (def.def.extract) {\n for (var att in def.def.extract) {\n var v = (e.srcElement || e.target).getAttribute(att);\n if (v) {\n payload[def.def.extract[att]] = v;\n }\n }\n }\n // and then trigger its mousedown event, which will kick off a drag, which will start dragging\n // a new connection from this endpoint.\n _currentInstance.trigger(ep.canvas, \"mousedown\", e, payload);\n _ju.consume(e);\n }.bind(this);\n this.on(elInfo.el, \"mousedown\", mouseDownListener);\n _def.trigger = mouseDownListener;\n // if a filter was provided, set it as a dragFilter on the element,\n // to prevent the element drag function from kicking in when we want to\n // drag a new connection\n if (p.filter && (_ju.isString(p.filter) || _ju.isFunction(p.filter))) {\n _currentInstance.setDragFilter(elInfo.el, p.filter);\n }\n var dropOptions = root.jsPlumb.extend({}, p.dropOptions || {});\n _makeElementDropHandler(elInfo, p, dropOptions, true, p.isTarget === true);\n }.bind(this);\n var inputs = el.length && el.constructor !== String ? el : [ el ];\n for (var i = 0, ii = inputs.length; i < ii; i++) {\n _doOne(_info(inputs[i]));\n }\n return this;\n };\n // see api docs\n this.unmakeSource = function (el, connectionType, doNotClearArrays) {\n var info = _info(el);\n _currentInstance.destroyDroppable(info.el, \"internal\");\n var eldefs = this.sourceEndpointDefinitions[info.id];\n if (eldefs) {\n for (var def in eldefs) {\n if (connectionType == null || connectionType === def) {\n var mouseDownListener = eldefs[def].trigger;\n if (mouseDownListener) {\n _currentInstance.off(info.el, \"mousedown\", mouseDownListener);\n }\n if (!doNotClearArrays) {\n delete this.sourceEndpointDefinitions[info.id][def];\n }\n }\n }\n }\n return this;\n };\n // see api docs\n this.unmakeEverySource = function () {\n for (var i in this.sourceEndpointDefinitions) {\n _currentInstance.unmakeSource(i, null, true);\n }\n this.sourceEndpointDefinitions = {};\n return this;\n };\n var _getScope = function (el, types, connectionType) {\n types = _ju.isArray(types) ? types : [ types ];\n var id = _getId(el);\n connectionType = connectionType || \"default\";\n for (var i = 0; i < types.length; i++) {\n var eldefs = this[types[i]][id];\n if (eldefs && eldefs[connectionType]) {\n return eldefs[connectionType].def.scope || this.Defaults.Scope;\n }\n }\n }.bind(this);\n var _setScope = function (el, scope, types, connectionType) {\n types = _ju.isArray(types) ? types : [ types ];\n var id = _getId(el);\n connectionType = connectionType || \"default\";\n for (var i = 0; i < types.length; i++) {\n var eldefs = this[types[i]][id];\n if (eldefs && eldefs[connectionType]) {\n eldefs[connectionType].def.scope = scope;\n }\n }\n }.bind(this);\n this.getScope = function (el, scope) {\n return _getScope(el, [ \"sourceEndpointDefinitions\", \"targetEndpointDefinitions\" ]);\n };\n this.getSourceScope = function (el) {\n return _getScope(el, \"sourceEndpointDefinitions\");\n };\n this.getTargetScope = function (el) {\n return _getScope(el, \"targetEndpointDefinitions\");\n };\n this.setScope = function (el, scope, connectionType) {\n this.setSourceScope(el, scope, connectionType);\n this.setTargetScope(el, scope, connectionType);\n };\n this.setSourceScope = function (el, scope, connectionType) {\n _setScope(el, scope, \"sourceEndpointDefinitions\", connectionType);\n // we get the source scope during the mousedown event, but we also want to set this.\n this.setDragScope(el, scope);\n };\n this.setTargetScope = function (el, scope, connectionType) {\n _setScope(el, scope, \"targetEndpointDefinitions\", connectionType);\n this.setDropScope(el, scope);\n };\n // see api docs\n this.unmakeEveryTarget = function () {\n for (var i in this.targetEndpointDefinitions) {\n _currentInstance.unmakeTarget(i, true);\n }\n this.targetEndpointDefinitions = {};\n return this;\n };\n // does the work of setting a source enabled or disabled.\n var _setEnabled = function (type, el, state, toggle, connectionType) {\n var a = type === \"source\" ? this.sourceEndpointDefinitions : this.targetEndpointDefinitions,\n originalState, info, newState;\n connectionType = connectionType || \"default\";\n // a selector or an array\n if (el.length && !_ju.isString(el)) {\n originalState = [];\n for (var i = 0, ii = el.length; i < ii; i++) {\n info = _info(el[i]);\n if (a[info.id] && a[info.id][connectionType]) {\n originalState[i] = a[info.id][connectionType].enabled;\n newState = toggle ? !originalState[i] : state;\n a[info.id][connectionType].enabled = newState;\n _currentInstance[newState ? \"removeClass\" : \"addClass\"](info.el, \"jtk-\" + type + \"-disabled\");\n }\n }\n }\n // otherwise a DOM element or a String ID.\n else {\n info = _info(el);\n var id = info.id;\n if (a[id] && a[id][connectionType]) {\n originalState = a[id][connectionType].enabled;\n newState = toggle ? !originalState : state;\n a[id][connectionType].enabled = newState;\n _currentInstance[newState ? \"removeClass\" : \"addClass\"](info.el, \"jtk-\" + type + \"-disabled\");\n }\n }\n return originalState;\n }.bind(this);\n var _first = function (el, fn) {\n if (el != null) {\n if (_ju.isString(el) || !el.length) {\n return fn.apply(this, [el]);\n } else if (el.length) {\n return fn.apply(this, [el[0]]);\n }\n }\n }.bind(this);\n this.toggleSourceEnabled = function (el, connectionType) {\n _setEnabled(\"source\", el, null, true, connectionType);\n return this.isSourceEnabled(el, connectionType);\n };\n this.setSourceEnabled = function (el, state, connectionType) {\n return _setEnabled(\"source\", el, state, null, connectionType);\n };\n this.isSource = function (el, connectionType) {\n connectionType = connectionType || \"default\";\n return _first(el, function (_el) {\n var eldefs = this.sourceEndpointDefinitions[_info(_el).id];\n return eldefs != null && eldefs[connectionType] != null;\n }.bind(this));\n };\n this.isSourceEnabled = function (el, connectionType) {\n connectionType = connectionType || \"default\";\n return _first(el, function (_el) {\n var sep = this.sourceEndpointDefinitions[_info(_el).id];\n return sep && sep[connectionType] && sep[connectionType].enabled === true;\n }.bind(this));\n };\n this.toggleTargetEnabled = function (el, connectionType) {\n _setEnabled(\"target\", el, null, true, connectionType);\n return this.isTargetEnabled(el, connectionType);\n };\n this.isTarget = function (el, connectionType) {\n connectionType = connectionType || \"default\";\n return _first(el, function (_el) {\n var eldefs = this.targetEndpointDefinitions[_info(_el).id];\n return eldefs != null && eldefs[connectionType] != null;\n }.bind(this));\n };\n this.isTargetEnabled = function (el, connectionType) {\n connectionType = connectionType || \"default\";\n return _first(el, function (_el) {\n var tep = this.targetEndpointDefinitions[_info(_el).id];\n return tep && tep[connectionType] && tep[connectionType].enabled === true;\n }.bind(this));\n };\n this.setTargetEnabled = function (el, state, connectionType) {\n return _setEnabled(\"target\", el, state, null, connectionType);\n };\n// --------------------- end makeSource/makeTarget ----------------------------------------------\n this.ready = function (fn) {\n _currentInstance.bind(\"ready\", fn);\n };\n var _elEach = function(el, fn) {\n // support both lists...\n if (typeof el === 'object' && el.length) {\n for (var i = 0, ii = el.length; i < ii; i++) {\n fn(el[i]);\n }\n }\n else {// ...and single strings or elements.\n fn(el);\n }\n return _currentInstance;\n };\n // repaint some element's endpoints and connections\n this.repaint = function (el, ui, timestamp) {\n return _elEach(el, function(_el) {\n _draw(_el, ui, timestamp);\n });\n };\n this.revalidate = function (el, timestamp, isIdAlready) {\n var elId = isIdAlready ? el : _currentInstance.getId(el);\n _currentInstance.updateOffset({ elId: elId, recalc: true, timestamp:timestamp });\n var dm = _currentInstance.getDragManager();\n if (dm) {\n dm.updateOffsets(elId);\n }\n return _draw(el, null, timestamp);\n };\n // repaint every endpoint and connection.\n this.repaintEverything = function () {\n // TODO this timestamp causes continuous anchors to not repaint properly.\n // fix this. do not just take out the timestamp. it runs a lot faster with\n // the timestamp included.\n var timestamp = jsPlumbUtil.uuid(), elId;\n for (elId in endpointsByElement) {\n _currentInstance.updateOffset({ elId: elId, recalc: true, timestamp: timestamp });\n }\n for (elId in endpointsByElement) {\n _draw(elId, null, timestamp);\n }\n return this;\n };\n this.removeAllEndpoints = function (el, recurse, affectedElements) {\n affectedElements = affectedElements || [];\n var _one = function (_el) {\n var info = _info(_el),\n ebe = endpointsByElement[info.id],\n i, ii;\n if (ebe) {\n affectedElements.push(info);\n for (i = 0, ii = ebe.length; i < ii; i++) {\n _currentInstance.deleteEndpoint(ebe[i], false);\n }\n }\n delete endpointsByElement[info.id];\n if (recurse) {\n if (info.el && info.el.nodeType !== 3 && info.el.nodeType !== 8) {\n for (i = 0, ii = info.el.childNodes.length; i < ii; i++) {\n _one(info.el.childNodes[i]);\n }\n }\n }\n };\n _one(el);\n return this;\n };\n var _doRemove = function(info, affectedElements) {\n _currentInstance.removeAllEndpoints(info.id, true, affectedElements);\n var dm = _currentInstance.getDragManager();\n var _one = function(_info) {\n if (dm) {\n dm.elementRemoved(_info.id);\n }\n _currentInstance.router.elementRemoved(_info.id);\n if (_currentInstance.isSource(_info.el)) {\n _currentInstance.unmakeSource(_info.el);\n }\n if (_currentInstance.isTarget(_info.el)) {\n _currentInstance.unmakeTarget(_info.el);\n }\n _currentInstance.destroyDraggable(_info.el);\n _currentInstance.destroyDroppable(_info.el);\n delete _currentInstance.floatingConnections[_info.id];\n delete managedElements[_info.id];\n delete offsets[_info.id];\n if (_info.el) {\n _currentInstance.removeElement(_info.el);\n _info.el._jsPlumb = null;\n }\n };\n // remove all affected child elements\n for (var ae = 1; ae < affectedElements.length; ae++) {\n _one(affectedElements[ae]);\n }\n // and always remove the requested one from the dom.\n _one(info);\n };\n /**\n * Remove the given element, including cleaning up all endpoints registered for it.\n * This is exposed in the public API but also used internally by jsPlumb when removing the\n * element associated with a connection drag.\n */\n this.remove = function (el, doNotRepaint) {\n var info = _info(el), affectedElements = [];\n if (info.text && info.el.parentNode) {\n info.el.parentNode.removeChild(info.el);\n }\n else if (info.id) {\n _currentInstance.batch(function () {\n _doRemove(info, affectedElements);\n }, doNotRepaint === true);\n }\n return _currentInstance;\n };\n this.empty = function (el, doNotRepaint) {\n var affectedElements = [];\n var _one = function(el, dontRemoveFocus) {\n var info = _info(el);\n if (info.text) {\n info.el.parentNode.removeChild(info.el);\n }\n else if (info.el) {\n while(info.el.childNodes.length > 0) {\n _one(info.el.childNodes[0]);\n }\n if (!dontRemoveFocus) {\n _doRemove(info, affectedElements);\n }\n }\n };\n _currentInstance.batch(function() {\n _one(el, true);\n }, doNotRepaint === false);\n return _currentInstance;\n };\n this.reset = function (doNotUnbindInstanceEventListeners) {\n _currentInstance.silently(function() {\n _hoverSuspended = false;\n _currentInstance.removeAllGroups();\n _currentInstance.removeGroupManager();\n _currentInstance.deleteEveryEndpoint();\n if (!doNotUnbindInstanceEventListeners) {\n _currentInstance.unbind();\n }\n this.targetEndpointDefinitions = {};\n this.sourceEndpointDefinitions = {};\n connections.length = 0;\n if (this.doReset) {\n this.doReset();\n }\n }.bind(this));\n };\n this.destroy = function() {\n this.reset();\n _container = null;\n _containerDelegations = null;\n };\n var _clearObject = function (obj) {\n if (obj.canvas && obj.canvas.parentNode) {\n obj.canvas.parentNode.removeChild(obj.canvas);\n }\n obj.cleanup();\n obj.destroy();\n };\n this.clear = function () {\n _currentInstance.select().each(_clearObject);\n _currentInstance.selectEndpoints().each(_clearObject);\n endpointsByElement = {};\n endpointsByUUID = {};\n };\n this.setDefaultScope = function (scope) {\n DEFAULT_SCOPE = scope;\n return _currentInstance;\n };\n this.deriveEndpointAndAnchorSpec = function(type, dontPrependDefault) {\n var bits = ((dontPrependDefault ? \"\" : \"default \") + type).split(/[\\s]/), eps = null, ep = null, a = null, as = null;\n for (var i = 0; i < bits.length; i++) {\n var _t = _currentInstance.getType(bits[i], \"connection\");\n if (_t) {\n if (_t.endpoints) {\n eps = _t.endpoints;\n }\n if (_t.endpoint) {\n ep = _t.endpoint;\n }\n if (_t.anchors) {\n as = _t.anchors;\n }\n if (_t.anchor) {\n a = _t.anchor;\n }\n }\n }\n return { endpoints: eps ? eps : [ ep, ep ], anchors: as ? as : [a, a ]};\n };\n // sets the id of some element, changing whatever we need to to keep track.\n this.setId = function (el, newId, doNotSetAttribute) {\n //\n var id;\n if (_ju.isString(el)) {\n id = el;\n }\n else {\n el = this.getElement(el);\n id = this.getId(el);\n }\n var sConns = this.getConnections({source: id, scope: '*'}, true),\n tConns = this.getConnections({target: id, scope: '*'}, true);\n newId = \"\" + newId;\n if (!doNotSetAttribute) {\n el = this.getElement(id);\n this.setAttribute(el, \"id\", newId);\n }\n else {\n el = this.getElement(newId);\n }\n endpointsByElement[newId] = endpointsByElement[id] || [];\n for (var i = 0, ii = endpointsByElement[newId].length; i < ii; i++) {\n endpointsByElement[newId][i].setElementId(newId);\n endpointsByElement[newId][i].setReferenceElement(el);\n }\n delete endpointsByElement[id];\n this.sourceEndpointDefinitions[newId] = this.sourceEndpointDefinitions[id];\n delete this.sourceEndpointDefinitions[id];\n this.targetEndpointDefinitions[newId] = this.targetEndpointDefinitions[id];\n delete this.targetEndpointDefinitions[id];\n this.router.changeId(id, newId);\n var dm = this.getDragManager();\n if (dm) {\n dm.changeId(id, newId);\n }\n managedElements[newId] = managedElements[id];\n delete managedElements[id];\n var _conns = function (list, epIdx, type) {\n for (var i = 0, ii = list.length; i < ii; i++) {\n list[i].endpoints[epIdx].setElementId(newId);\n list[i].endpoints[epIdx].setReferenceElement(el);\n list[i][type + \"Id\"] = newId;\n list[i][type] = el;\n }\n };\n _conns(sConns, 0, \"source\");\n _conns(tConns, 1, \"target\");\n this.repaint(newId);\n };\n this.setDebugLog = function (debugLog) {\n log = debugLog;\n };\n this.setSuspendDrawing = function (val, repaintAfterwards) {\n var curVal = _suspendDrawing;\n _suspendDrawing = val;\n if (val) {\n _suspendedAt = new Date().getTime();\n } else {\n _suspendedAt = null;\n }\n if (repaintAfterwards) {\n this.repaintEverything();\n }\n return curVal;\n };\n // returns whether or not drawing is currently suspended.\n this.isSuspendDrawing = function () {\n return _suspendDrawing;\n };\n // return timestamp for when drawing was suspended.\n this.getSuspendedAt = function () {\n return _suspendedAt;\n };\n this.batch = function (fn, doNotRepaintAfterwards) {\n var _wasSuspended = this.isSuspendDrawing();\n if (!_wasSuspended) {\n this.setSuspendDrawing(true);\n }\n try {\n fn();\n }\n catch (e) {\n _ju.log(\"Function run while suspended failed\", e);\n }\n if (!_wasSuspended) {\n this.setSuspendDrawing(false, !doNotRepaintAfterwards);\n }\n };\n this.doWhileSuspended = this.batch;\n this.getCachedData = _getCachedData;\n this.show = function (el, changeEndpoints) {\n _setVisible(el, \"block\", changeEndpoints);\n return _currentInstance;\n };\n // TODO: update this method to return the current state.\n this.toggleVisible = _toggleVisible;\n this.addListener = this.bind;\n var floatingConnections = [];\n this.registerFloatingConnection = function(info, conn, ep) {\n floatingConnections[info.id] = conn;\n // only register for the target endpoint; we will not be dragging the source at any time\n // before this connection is either discarded or made into a permanent connection.\n _ju.addToList(endpointsByElement, info.id, ep);\n };\n this.getFloatingConnectionFor = function(id) {\n return floatingConnections[id];\n };\n this.listManager = new root.jsPlumbListManager(this, this.Defaults.ListStyle);\n };\n _ju.extend(root.jsPlumbInstance, _ju.EventGenerator, {\n setAttribute: function (el, a, v) {\n this.setAttribute(el, a, v);\n },\n getAttribute: function (el, a) {\n return this.getAttribute(root.jsPlumb.getElement(el), a);\n },\n convertToFullOverlaySpec: function(spec) {\n if (_ju.isString(spec)) {\n spec = [ spec, { } ];\n }\n spec[1].id = spec[1].id || _ju.uuid();\n return spec;\n },\n registerConnectionType: function (id, type) {\n this._connectionTypes[id] = root.jsPlumb.extend({}, type);\n if (type.overlays) {\n var to = {};\n for (var i = 0; i < type.overlays.length; i++) {\n // if a string, convert to object representation so that we can store the typeid on it.\n // also assign an id.\n var fo = this.convertToFullOverlaySpec(type.overlays[i]);\n to[fo[1].id] = fo;\n }\n this._connectionTypes[id].overlays = to;\n }\n },\n registerConnectionTypes: function (types) {\n for (var i in types) {\n this.registerConnectionType(i, types[i]);\n }\n },\n registerEndpointType: function (id, type) {\n this._endpointTypes[id] = root.jsPlumb.extend({}, type);\n if (type.overlays) {\n var to = {};\n for (var i = 0; i < type.overlays.length; i++) {\n // if a string, convert to object representation so that we can store the typeid on it.\n // also assign an id.\n var fo = this.convertToFullOverlaySpec(type.overlays[i]);\n to[fo[1].id] = fo;\n }\n this._endpointTypes[id].overlays = to;\n }\n },\n registerEndpointTypes: function (types) {\n for (var i in types) {\n this.registerEndpointType(i, types[i]);\n }\n },\n getType: function (id, typeDescriptor) {\n return typeDescriptor === \"connection\" ? this._connectionTypes[id] : this._endpointTypes[id];\n },\n setIdChanged: function (oldId, newId) {\n this.setId(oldId, newId, true);\n },\n // set parent: change the parent for some node and update all the registrations we need to.\n setParent: function (el, newParent) {\n var _dom = this.getElement(el),\n _id = this.getId(_dom),\n _pdom = this.getElement(newParent),\n _pid = this.getId(_pdom),\n dm = this.getDragManager();\n _dom.parentNode.removeChild(_dom);\n _pdom.appendChild(_dom);\n if (dm) {\n dm.setParent(_dom, _id, _pdom, _pid);\n }\n },\n extend: function (o1, o2, names) {\n var i;\n if (names) {\n for (i = 0; i < names.length; i++) {\n o1[names[i]] = o2[names[i]];\n }\n }\n else {\n for (i in o2) {\n o1[i] = o2[i];\n }\n }\n return o1;\n },\n floatingConnections: {},\n getFloatingAnchorIndex: function (jpc) {\n return jpc.endpoints[0].isFloating() ? 0 : jpc.endpoints[1].isFloating() ? 1 : -1;\n },\n proxyConnection :function(connection, index, proxyEl, proxyElId, endpointGenerator, anchorGenerator) {\n var proxyEp,\n originalElementId = connection.endpoints[index].elementId,\n originalEndpoint = connection.endpoints[index];\n connection.proxies = connection.proxies || [];\n if(connection.proxies[index]) {\n proxyEp = connection.proxies[index].ep;\n }else {\n proxyEp = this.addEndpoint(proxyEl, {\n endpoint:endpointGenerator(connection, index),\n anchor:anchorGenerator(connection, index),\n parameters:{\n isProxyEndpoint:true\n }\n });\n }\n proxyEp.setDeleteOnEmpty(true);\n // for this index, stash proxy info: the new EP, the original EP.\n connection.proxies[index] = { ep:proxyEp, originalEp: originalEndpoint };\n // and advise the anchor manager\n if (index === 0) {\n this.router.sourceOrTargetChanged(originalElementId, proxyElId, connection, proxyEl, 0);\n }\n else {\n this.router.sourceOrTargetChanged(originalElementId, proxyElId, connection, proxyEl, 1);\n }\n // detach the original EP from the connection.\n originalEndpoint.detachFromConnection(connection, null, true);\n // set the proxy as the new ep\n proxyEp.connections = [ connection ];\n connection.endpoints[index] = proxyEp;\n originalEndpoint.setVisible(false);\n connection.setVisible(true);\n this.revalidate(proxyEl);\n },\n unproxyConnection : function(connection, index, proxyElId) {\n // if connection cleaned up, no proxies, or none for this end of the connection, abort.\n if (connection._jsPlumb == null || connection.proxies == null || connection.proxies[index] == null) {\n return;\n }\n var originalElement = connection.proxies[index].originalEp.element,\n originalElementId = connection.proxies[index].originalEp.elementId;\n connection.endpoints[index] = connection.proxies[index].originalEp;\n // and advise the anchor manager\n if (index === 0) {\n // TODO why are there two differently named methods? Why is there not one method that says \"some end of this\n // connection changed (you give the index), and here's the new element and element id.\"\n this.router.sourceOrTargetChanged(proxyElId, originalElementId, connection, originalElement, 0);\n }\n else {\n this.router.sourceOrTargetChanged(proxyElId, originalElementId, connection, originalElement, 1);\n }\n // detach the proxy EP from the connection (which will cause it to be removed as we no longer need it)\n connection.proxies[index].ep.detachFromConnection(connection, null);\n connection.proxies[index].originalEp.addConnection(connection);\n if(connection.isVisible()) {\n connection.proxies[index].originalEp.setVisible(true);\n }\n // cleanup\n delete connection.proxies[index];\n }\n });\n// --------------------- static instance + module registration -------------------------------------------\n// create static instance and assign to window if window exists.\n var jsPlumb = new jsPlumbInstance();\n // register on 'root' (lets us run on server or browser)\n root.jsPlumb = jsPlumb;\n // add 'getInstance' method to static instance\n jsPlumb.getInstance = function (_defaults, overrideFns) {\n var j = new jsPlumbInstance(_defaults);\n if (overrideFns) {\n for (var ovf in overrideFns) {\n j[ovf] = overrideFns[ovf];\n }\n }\n j.init();\n return j;\n };\n jsPlumb.each = function (spec, fn) {\n if (spec == null) {\n return;\n }\n if (typeof spec === \"string\") {\n fn(jsPlumb.getElement(spec));\n }\n else if (spec.length != null) {\n for (var i = 0; i < spec.length; i++) {\n fn(jsPlumb.getElement(spec[i]));\n }\n }\n else {\n fn(spec);\n } // assume it's an element.\n };\n // CommonJS\n if (typeof exports !== 'undefined') {\n exports.jsPlumb = jsPlumb;\n }\n// --------------------- end static instance + AMD registration -------------------------------------------\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;(function() {\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil;\n // ------------------------------ BEGIN OverlayCapablejsPlumbUIComponent --------------------------------------------\n var _internalLabelOverlayId = \"__label\",\n // this is a shortcut helper method to let people add a label as\n // overlay.\n _makeLabelOverlay = function (component, params) {\n var _params = {\n cssClass: params.cssClass,\n labelStyle: component.labelStyle,\n id: _internalLabelOverlayId,\n component: component,\n _jsPlumb: component._jsPlumb.instance // TODO not necessary, since the instance can be accessed through the component.\n },\n mergedParams = _jp.extend(_params, params);\n return new _jp.Overlays[component._jsPlumb.instance.getRenderMode()].Label(mergedParams);\n },\n _processOverlay = function (component, o) {\n var _newOverlay = null;\n if (_ju.isArray(o)) {\t// this is for the shorthand [\"Arrow\", { width:50 }] syntax\n // there's also a three arg version:\n // [\"Arrow\", { width:50 }, {location:0.7}]\n // which merges the 3rd arg into the 2nd.\n var type = o[0],\n // make a copy of the object so as not to mess up anyone else's reference...\n p = _jp.extend({component: component, _jsPlumb: component._jsPlumb.instance}, o[1]);\n if (o.length === 3) {\n _jp.extend(p, o[2]);\n }\n _newOverlay = new _jp.Overlays[component._jsPlumb.instance.getRenderMode()][type](p);\n } else if (o.constructor === String) {\n _newOverlay = new _jp.Overlays[component._jsPlumb.instance.getRenderMode()][o]({component: component, _jsPlumb: component._jsPlumb.instance});\n } else {\n _newOverlay = o;\n }\n _newOverlay.id = _newOverlay.id || _ju.uuid();\n component.cacheTypeItem(\"overlay\", _newOverlay, _newOverlay.id);\n component._jsPlumb.overlays[_newOverlay.id] = _newOverlay;\n return _newOverlay;\n };\n _jp.OverlayCapableJsPlumbUIComponent = function (params) {\n root.jsPlumbUIComponent.apply(this, arguments);\n this._jsPlumb.overlays = {};\n this._jsPlumb.overlayPositions = {};\n if (params.label) {\n this.getDefaultType().overlays[_internalLabelOverlayId] = [\"Label\", {\n label: params.label,\n location: params.labelLocation || this.defaultLabelLocation || 0.5,\n labelStyle: params.labelStyle || this._jsPlumb.instance.Defaults.LabelStyle,\n id:_internalLabelOverlayId\n }];\n }\n this.setListenerComponent = function (c) {\n if (this._jsPlumb) {\n for (var i in this._jsPlumb.overlays) {\n this._jsPlumb.overlays[i].setListenerComponent(c);\n }\n }\n };\n };\n _jp.OverlayCapableJsPlumbUIComponent.applyType = function (component, t) {\n if (t.overlays) {\n // loop through the ones in the type. if already present on the component,\n // dont remove or re-add.\n var keep = {}, i;\n for (i in t.overlays) {\n var existing = component._jsPlumb.overlays[t.overlays[i][1].id];\n if (existing) {\n // maybe update from data, if there were parameterised values for instance.\n existing.updateFrom(t.overlays[i][1]);\n keep[t.overlays[i][1].id] = true;\n existing.reattach(component._jsPlumb.instance, component);\n }\n else {\n var c = component.getCachedTypeItem(\"overlay\", t.overlays[i][1].id);\n if (c != null) {\n c.reattach(component._jsPlumb.instance, component);\n c.setVisible(true);\n // maybe update from data, if there were parameterised values for instance.\n c.updateFrom(t.overlays[i][1]);\n component._jsPlumb.overlays[c.id] = c;\n }\n else {\n c = component.addOverlay(t.overlays[i], true);\n }\n keep[c.id] = true;\n }\n }\n // now loop through the full overlays and remove those that we dont want to keep\n for (i in component._jsPlumb.overlays) {\n if (keep[component._jsPlumb.overlays[i].id] == null) {\n component.removeOverlay(component._jsPlumb.overlays[i].id, true); // remove overlay but dont clean it up.\n // that would remove event listeners etc; overlays are never discarded by the types stuff, they are\n // just detached/reattached.\n }\n }\n }\n };\n _ju.extend(_jp.OverlayCapableJsPlumbUIComponent, root.jsPlumbUIComponent, {\n setHover: function (hover, ignoreAttachedElements) {\n if (this._jsPlumb && !this._jsPlumb.instance.isConnectionBeingDragged()) {\n for (var i in this._jsPlumb.overlays) {\n this._jsPlumb.overlays[i][hover ? \"addClass\" : \"removeClass\"](this._jsPlumb.instance.hoverClass);\n }\n }\n },\n addOverlay: function (overlay, doNotRepaint) {\n var o = _processOverlay(this, overlay);\n if (this.getData && o.type === \"Label\" && _ju.isArray(overlay)) {\n //\n // component data might contain label location - look for it here.\n var d = this.getData(), p = overlay[1];\n if (d) {\n var locationAttribute = p.labelLocationAttribute || \"labelLocation\";\n var loc = d ? d[locationAttribute] : null;\n if (loc) {\n o.loc = loc;\n }\n }\n }\n if (!doNotRepaint) {\n this.repaint();\n }\n return o;\n },\n getOverlay: function (id) {\n return this._jsPlumb.overlays[id];\n },\n getOverlays: function () {\n return this._jsPlumb.overlays;\n },\n hideOverlay: function (id) {\n var o = this.getOverlay(id);\n if (o) {\n o.hide();\n }\n },\n hideOverlays: function () {\n for (var i in this._jsPlumb.overlays) {\n this._jsPlumb.overlays[i].hide();\n }\n },\n showOverlay: function (id) {\n var o = this.getOverlay(id);\n if (o) {\n o.show();\n }\n },\n showOverlays: function () {\n for (var i in this._jsPlumb.overlays) {\n this._jsPlumb.overlays[i].show();\n }\n },\n removeAllOverlays: function (doNotRepaint) {\n for (var i in this._jsPlumb.overlays) {\n if (this._jsPlumb.overlays[i].cleanup) {\n this._jsPlumb.overlays[i].cleanup();\n }\n }\n this._jsPlumb.overlays = {};\n this._jsPlumb.overlayPositions = null;\n this._jsPlumb.overlayPlacements= {};\n if (!doNotRepaint) {\n this.repaint();\n }\n },\n removeOverlay: function (overlayId, dontCleanup) {\n var o = this._jsPlumb.overlays[overlayId];\n if (o) {\n o.setVisible(false);\n if (!dontCleanup && o.cleanup) {\n o.cleanup();\n }\n delete this._jsPlumb.overlays[overlayId];\n if (this._jsPlumb.overlayPositions) {\n delete this._jsPlumb.overlayPositions[overlayId];\n }\n if (this._jsPlumb.overlayPlacements) {\n delete this._jsPlumb.overlayPlacements[overlayId];\n }\n }\n },\n removeOverlays: function () {\n for (var i = 0, j = arguments.length; i < j; i++) {\n this.removeOverlay(arguments[i]);\n }\n },\n moveParent: function (newParent) {\n if (this.bgCanvas) {\n this.bgCanvas.parentNode.removeChild(this.bgCanvas);\n newParent.appendChild(this.bgCanvas);\n }\n if (this.canvas && this.canvas.parentNode) {\n this.canvas.parentNode.removeChild(this.canvas);\n newParent.appendChild(this.canvas);\n for (var i in this._jsPlumb.overlays) {\n if (this._jsPlumb.overlays[i].isAppendedAtTopLevel) {\n var el = this._jsPlumb.overlays[i].getElement();\n el.parentNode.removeChild(el);\n newParent.appendChild(el);\n }\n }\n }\n },\n getLabel: function () {\n var lo = this.getOverlay(_internalLabelOverlayId);\n return lo != null ? lo.getLabel() : null;\n },\n getLabelOverlay: function () {\n return this.getOverlay(_internalLabelOverlayId);\n },\n setLabel: function (l) {\n var lo = this.getOverlay(_internalLabelOverlayId);\n if (!lo) {\n var params = l.constructor === String || l.constructor === Function ? { label: l } : l;\n lo = _makeLabelOverlay(this, params);\n this._jsPlumb.overlays[_internalLabelOverlayId] = lo;\n }\n else {\n if (l.constructor === String || l.constructor === Function) {\n lo.setLabel(l);\n }\n else {\n if (l.label) {\n lo.setLabel(l.label);\n }\n if (l.location) {\n lo.setLocation(l.location);\n }\n }\n }\n if (!this._jsPlumb.instance.isSuspendDrawing()) {\n this.repaint();\n }\n },\n cleanup: function (force) {\n for (var i in this._jsPlumb.overlays) {\n this._jsPlumb.overlays[i].cleanup(force);\n this._jsPlumb.overlays[i].destroy(force);\n }\n if (force) {\n this._jsPlumb.overlays = {};\n this._jsPlumb.overlayPositions = null;\n }\n },\n setVisible: function (v) {\n this[v ? \"showOverlays\" : \"hideOverlays\"]();\n },\n setAbsoluteOverlayPosition: function (overlay, xy) {\n this._jsPlumb.overlayPositions[overlay.id] = xy;\n },\n getAbsoluteOverlayPosition: function (overlay) {\n return this._jsPlumb.overlayPositions ? this._jsPlumb.overlayPositions[overlay.id] : null;\n },\n _clazzManip:function(action, clazz, dontUpdateOverlays) {\n if (!dontUpdateOverlays) {\n for (var i in this._jsPlumb.overlays) {\n this._jsPlumb.overlays[i][action + \"Class\"](clazz);\n }\n }\n },\n addClass:function(clazz, dontUpdateOverlays) {\n this._clazzManip(\"add\", clazz, dontUpdateOverlays);\n },\n removeClass:function(clazz, dontUpdateOverlays) {\n this._clazzManip(\"remove\", clazz, dontUpdateOverlays);\n }\n });\n// ------------------------------ END OverlayCapablejsPlumbUIComponent --------------------------------------------\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the code for Endpoints.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n * \n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n * \n * Dual licensed under the MIT and GPL2 licenses.\n */\n;(function () {\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil;\n // create the drag handler for a connection\n var _makeConnectionDragHandler = function (endpoint, placeholder, _jsPlumb) {\n var stopped = false;\n return {\n drag: function () {\n if (stopped) {\n stopped = false;\n return true;\n }\n if (placeholder.element) {\n var _ui = _jsPlumb.getUIPosition(arguments, _jsPlumb.getZoom());\n if (_ui != null) {\n _jsPlumb.setPosition(placeholder.element, _ui);\n }\n _jsPlumb.repaint(placeholder.element, _ui);\n // always repaint the source endpoint, because only continuous/dynamic anchors cause the endpoint\n // to be repainted, so static anchors need to be told (or the endpoint gets dragged around)\n endpoint.paint({anchorPoint:endpoint.anchor.getCurrentLocation({element:endpoint})});\n }\n },\n stopDrag: function () {\n stopped = true;\n }\n };\n };\n // creates a placeholder div for dragging purposes, adds it, and pre-computes its offset.\n var _makeDraggablePlaceholder = function (placeholder, _jsPlumb, ipco, ips) {\n var n = _jsPlumb.createElement(\"div\", { position : \"absolute\" });\n _jsPlumb.appendElement(n);\n var id = _jsPlumb.getId(n);\n _jsPlumb.setPosition(n, ipco);\n n.style.width = ips[0] + \"px\";\n n.style.height = ips[1] + \"px\";\n _jsPlumb.manage(id, n, true); // TRANSIENT MANAGE\n // create and assign an id, and initialize the offset.\n placeholder.id = id;\n placeholder.element = n;\n };\n // create a floating endpoint (for drag connections)\n var _makeFloatingEndpoint = function (paintStyle, referenceAnchor, endpoint, referenceCanvas, sourceElement, _jsPlumb, _newEndpoint, scope) {\n var floatingAnchor = new _jp.FloatingAnchor({ reference: referenceAnchor, referenceCanvas: referenceCanvas, jsPlumbInstance: _jsPlumb });\n return _newEndpoint({\n paintStyle: paintStyle,\n endpoint: endpoint,\n anchor: floatingAnchor,\n source: sourceElement,\n scope: scope\n });\n };\n var typeParameters = [ \"connectorStyle\", \"connectorHoverStyle\", \"connectorOverlays\",\n \"connector\", \"connectionType\", \"connectorClass\", \"connectorHoverClass\" ];\n // a helper function that tries to find a connection to the given element, and returns it if so. if elementWithPrecedence is null,\n // or no connection to it is found, we return the first connection in our list.\n var findConnectionToUseForDynamicAnchor = function (ep, elementWithPrecedence) {\n var idx = 0;\n if (elementWithPrecedence != null) {\n for (var i = 0; i < ep.connections.length; i++) {\n if (ep.connections[i].sourceId === elementWithPrecedence || ep.connections[i].targetId === elementWithPrecedence) {\n idx = i;\n break;\n }\n }\n }\n return ep.connections[idx];\n };\n _jp.Endpoint = function (params) {\n var _jsPlumb = params._jsPlumb,\n _newConnection = params.newConnection,\n _newEndpoint = params.newEndpoint;\n this.idPrefix = \"_jsplumb_e_\";\n this.defaultLabelLocation = [ 0.5, 0.5 ];\n this.defaultOverlayKeys = [\"Overlays\", \"EndpointOverlays\"];\n _jp.OverlayCapableJsPlumbUIComponent.apply(this, arguments);\n// TYPE\n this.appendToDefaultType({\n connectionType:params.connectionType,\n maxConnections: params.maxConnections == null ? this._jsPlumb.instance.Defaults.MaxConnections : params.maxConnections, // maximum number of connections this endpoint can be the source of.,\n paintStyle: params.endpointStyle || params.paintStyle || params.style || this._jsPlumb.instance.Defaults.EndpointStyle || _jp.Defaults.EndpointStyle,\n hoverPaintStyle: params.endpointHoverStyle || params.hoverPaintStyle || this._jsPlumb.instance.Defaults.EndpointHoverStyle || _jp.Defaults.EndpointHoverStyle,\n connectorStyle: params.connectorStyle,\n connectorHoverStyle: params.connectorHoverStyle,\n connectorClass: params.connectorClass,\n connectorHoverClass: params.connectorHoverClass,\n connectorOverlays: params.connectorOverlays,\n connector: params.connector,\n connectorTooltip: params.connectorTooltip\n });\n// END TYPE\n this._jsPlumb.enabled = !(params.enabled === false);\n this._jsPlumb.visible = true;\n this.element = _jp.getElement(params.source);\n this._jsPlumb.uuid = params.uuid;\n this._jsPlumb.floatingEndpoint = null;\n var inPlaceCopy = null;\n if (this._jsPlumb.uuid) {\n params.endpointsByUUID[this._jsPlumb.uuid] = this;\n }\n this.elementId = params.elementId;\n this.dragProxy = params.dragProxy;\n this._jsPlumb.connectionCost = params.connectionCost;\n this._jsPlumb.connectionsDirected = params.connectionsDirected;\n this._jsPlumb.currentAnchorClass = \"\";\n this._jsPlumb.events = {};\n var deleteOnEmpty = params.deleteOnEmpty === true;\n this.setDeleteOnEmpty = function(d) {\n deleteOnEmpty = d;\n };\n var _updateAnchorClass = function () {\n // stash old, get new\n var oldAnchorClass = _jsPlumb.endpointAnchorClassPrefix + \"-\" + this._jsPlumb.currentAnchorClass;\n this._jsPlumb.currentAnchorClass = this.anchor.getCssClass();\n var anchorClass = _jsPlumb.endpointAnchorClassPrefix + (this._jsPlumb.currentAnchorClass ? \"-\" + this._jsPlumb.currentAnchorClass : \"\");\n this.removeClass(oldAnchorClass);\n this.addClass(anchorClass);\n // add and remove at the same time to reduce the number of reflows.\n _jp.updateClasses(this.element, anchorClass, oldAnchorClass);\n }.bind(this);\n this.prepareAnchor = function(anchorParams) {\n var a = this._jsPlumb.instance.makeAnchor(anchorParams, this.elementId, _jsPlumb);\n a.bind(\"anchorChanged\", function (currentAnchor) {\n this.fire(\"anchorChanged\", {endpoint: this, anchor: currentAnchor});\n _updateAnchorClass();\n }.bind(this));\n return a;\n };\n this.setPreparedAnchor = function(anchor, doNotRepaint) {\n this._jsPlumb.instance.continuousAnchorFactory.clear(this.elementId);\n this.anchor = anchor;\n _updateAnchorClass();\n if (!doNotRepaint) {\n this._jsPlumb.instance.repaint(this.elementId);\n }\n return this;\n };\n this.setAnchor = function (anchorParams, doNotRepaint) {\n var a = this.prepareAnchor(anchorParams);\n this.setPreparedAnchor(a, doNotRepaint);\n return this;\n };\n var internalHover = function (state) {\n if (this.connections.length > 0) {\n for (var i = 0; i < this.connections.length; i++) {\n this.connections[i].setHover(state, false);\n }\n }\n else {\n this.setHover(state);\n }\n }.bind(this);\n this.bind(\"mouseover\", function () {\n internalHover(true);\n });\n this.bind(\"mouseout\", function () {\n internalHover(false);\n });\n // ANCHOR MANAGER\n if (!params._transient) { // in place copies, for example, are transient. they will never need to be retrieved during a paint cycle, because they dont move, and then they are deleted.\n this._jsPlumb.instance.router.addEndpoint(this, this.elementId);\n }\n this.prepareEndpoint = function(ep, typeId) {\n var _e = function (t, p) {\n var rm = _jsPlumb.getRenderMode();\n if (_jp.Endpoints[rm][t]) {\n return new _jp.Endpoints[rm][t](p);\n }\n if (!_jsPlumb.Defaults.DoNotThrowErrors) {\n throw { msg: \"jsPlumb: unknown endpoint type '\" + t + \"'\" };\n }\n };\n var endpointArgs = {\n _jsPlumb: this._jsPlumb.instance,\n cssClass: params.cssClass,\n container: params.container,\n tooltip: params.tooltip,\n connectorTooltip: params.connectorTooltip,\n endpoint: this\n };\n var endpoint;\n if (_ju.isString(ep)) {\n endpoint = _e(ep, endpointArgs);\n }\n else if (_ju.isArray(ep)) {\n endpointArgs = _ju.merge(ep[1], endpointArgs);\n endpoint = _e(ep[0], endpointArgs);\n }\n else {\n endpoint = ep.clone();\n }\n // assign a clone function using a copy of endpointArgs. this is used when a drag starts: the endpoint that was dragged is cloned,\n // and the clone is left in its place while the original one goes off on a magical journey.\n // the copy is to get around a closure problem, in which endpointArgs ends up getting shared by\n // the whole world.\n //var argsForClone = jsPlumb.extend({}, endpointArgs);\n endpoint.clone = function () {\n // TODO this, and the code above, can be refactored to be more dry.\n if (_ju.isString(ep)) {\n return _e(ep, endpointArgs);\n }\n else if (_ju.isArray(ep)) {\n endpointArgs = _ju.merge(ep[1], endpointArgs);\n return _e(ep[0], endpointArgs);\n }\n }.bind(this);\n endpoint.typeId = typeId;\n return endpoint;\n };\n this.setEndpoint = function(ep, doNotRepaint) {\n var _ep = this.prepareEndpoint(ep);\n this.setPreparedEndpoint(_ep, true);\n };\n this.setPreparedEndpoint = function (ep, doNotRepaint) {\n if (this.endpoint != null) {\n this.endpoint.cleanup();\n this.endpoint.destroy();\n }\n this.endpoint = ep;\n this.type = this.endpoint.type;\n this.canvas = this.endpoint.canvas;\n };\n _jp.extend(this, params, typeParameters);\n this.isSource = params.isSource || false;\n this.isTemporarySource = params.isTemporarySource || false;\n this.isTarget = params.isTarget || false;\n this.connections = params.connections || [];\n this.connectorPointerEvents = params[\"connector-pointer-events\"];\n this.scope = params.scope || _jsPlumb.getDefaultScope();\n this.timestamp = null;\n this.reattachConnections = params.reattach || _jsPlumb.Defaults.ReattachConnections;\n this.connectionsDetachable = _jsPlumb.Defaults.ConnectionsDetachable;\n if (params.connectionsDetachable === false || params.detachable === false) {\n this.connectionsDetachable = false;\n }\n this.dragAllowedWhenFull = params.dragAllowedWhenFull !== false;\n if (params.onMaxConnections) {\n this.bind(\"maxConnections\", params.onMaxConnections);\n }\n //\n // add a connection. not part of public API.\n //\n this.addConnection = function (connection) {\n this.connections.push(connection);\n this[(this.connections.length > 0 ? \"add\" : \"remove\") + \"Class\"](_jsPlumb.endpointConnectedClass);\n this[(this.isFull() ? \"add\" : \"remove\") + \"Class\"](_jsPlumb.endpointFullClass);\n };\n this.detachFromConnection = function (connection, idx, doNotCleanup) {\n idx = idx == null ? this.connections.indexOf(connection) : idx;\n if (idx >= 0) {\n this.connections.splice(idx, 1);\n this[(this.connections.length > 0 ? \"add\" : \"remove\") + \"Class\"](_jsPlumb.endpointConnectedClass);\n this[(this.isFull() ? \"add\" : \"remove\") + \"Class\"](_jsPlumb.endpointFullClass);\n }\n if (!doNotCleanup && deleteOnEmpty && this.connections.length === 0) {\n _jsPlumb.deleteObject({\n endpoint: this,\n fireEvent: false,\n deleteAttachedObjects: doNotCleanup !== true\n });\n }\n };\n this.deleteEveryConnection = function(params) {\n var c = this.connections.length;\n for (var i = 0; i < c; i++) {\n _jsPlumb.deleteConnection(this.connections[0], params);\n }\n };\n this.detachFrom = function (targetEndpoint, fireEvent, originalEvent) {\n var c = [];\n for (var i = 0; i < this.connections.length; i++) {\n if (this.connections[i].endpoints[1] === targetEndpoint || this.connections[i].endpoints[0] === targetEndpoint) {\n c.push(this.connections[i]);\n }\n }\n for (var j = 0, count = c.length; j < count; j++) {\n _jsPlumb.deleteConnection(c[0]);\n }\n return this;\n };\n this.getElement = function () {\n return this.element;\n };\n this.setElement = function (el) {\n var parentId = this._jsPlumb.instance.getId(el),\n curId = this.elementId;\n // remove the endpoint from the list for the current endpoint's element\n _ju.removeWithFunction(params.endpointsByElement[this.elementId], function (e) {\n return e.id === this.id;\n }.bind(this));\n this.element = _jp.getElement(el);\n this.elementId = _jsPlumb.getId(this.element);\n _jsPlumb.router.rehomeEndpoint(this, curId, this.element);\n _jsPlumb.dragManager.endpointAdded(this.element);\n _ju.addToList(params.endpointsByElement, parentId, this);\n return this;\n };\n /**\n * private but must be exposed.\n */\n this.makeInPlaceCopy = function () {\n var loc = this.anchor.getCurrentLocation({element: this}),\n o = this.anchor.getOrientation(this),\n acc = this.anchor.getCssClass(),\n inPlaceAnchor = {\n bind: function () {\n },\n compute: function () {\n return [ loc[0], loc[1] ];\n },\n getCurrentLocation: function () {\n return [ loc[0], loc[1] ];\n },\n getOrientation: function () {\n return o;\n },\n getCssClass: function () {\n return acc;\n }\n };\n return _newEndpoint({\n dropOptions: params.dropOptions,\n anchor: inPlaceAnchor,\n source: this.element,\n paintStyle: this.getPaintStyle(),\n endpoint: params.hideOnDrag ? \"Blank\" : this.endpoint,\n _transient: true,\n scope: this.scope,\n reference:this\n });\n };\n /**\n * returns a connection from the pool; used when dragging starts. just gets the head of the array if it can.\n */\n this.connectorSelector = function () {\n return this.connections[0];\n };\n this.setStyle = this.setPaintStyle;\n this.paint = function (params) {\n params = params || {};\n var timestamp = params.timestamp, recalc = !(params.recalc === false);\n if (!timestamp || this.timestamp !== timestamp) {\n var info = _jsPlumb.updateOffset({ elId: this.elementId, timestamp: timestamp });\n var xy = params.offset ? params.offset.o : info.o;\n if (xy != null) {\n var ap = params.anchorPoint, connectorPaintStyle = params.connectorPaintStyle;\n if (ap == null) {\n var wh = params.dimensions || info.s,\n anchorParams = { xy: [ xy.left, xy.top ], wh: wh, element: this, timestamp: timestamp };\n if (recalc && this.anchor.isDynamic && this.connections.length > 0) {\n var c = findConnectionToUseForDynamicAnchor(this, params.elementWithPrecedence),\n oIdx = c.endpoints[0] === this ? 1 : 0,\n oId = oIdx === 0 ? c.sourceId : c.targetId,\n oInfo = _jsPlumb.getCachedData(oId),\n oOffset = oInfo.o, oWH = oInfo.s;\n anchorParams.index = oIdx === 0 ? 1 : 0;\n anchorParams.connection = c;\n anchorParams.txy = [ oOffset.left, oOffset.top ];\n anchorParams.twh = oWH;\n anchorParams.tElement = c.endpoints[oIdx];\n anchorParams.tRotation = _jsPlumb.getRotation(oId);\n } else if (this.connections.length > 0) {\n anchorParams.connection = this.connections[0];\n }\n anchorParams.rotation = _jsPlumb.getRotation(this.elementId);\n ap = this.anchor.compute(anchorParams);\n }\n this.endpoint.compute(ap, this.anchor.getOrientation(this), this._jsPlumb.paintStyleInUse, connectorPaintStyle || this.paintStyleInUse);\n this.endpoint.paint(this._jsPlumb.paintStyleInUse, this.anchor);\n this.timestamp = timestamp;\n // paint overlays\n for (var i in this._jsPlumb.overlays) {\n if (this._jsPlumb.overlays.hasOwnProperty(i)) {\n var o = this._jsPlumb.overlays[i];\n if (o.isVisible()) {\n this._jsPlumb.overlayPlacements[i] = o.draw(this.endpoint, this._jsPlumb.paintStyleInUse);\n o.paint(this._jsPlumb.overlayPlacements[i]);\n }\n }\n }\n }\n }\n };\n this.getTypeDescriptor = function () {\n return \"endpoint\";\n };\n this.isVisible = function () {\n return this._jsPlumb.visible;\n };\n this.repaint = this.paint;\n var draggingInitialised = false;\n this.initDraggable = function () {\n // is this a connection source? we make it draggable and have the\n // drag listener maintain a connection with a floating endpoint.\n if (!draggingInitialised && _jp.isDragSupported(this.element)) {\n var placeholderInfo = { id: null, element: null },\n jpc = null,\n existingJpc = false,\n existingJpcParams = null,\n _dragHandler = _makeConnectionDragHandler(this, placeholderInfo, _jsPlumb),\n dragOptions = params.dragOptions || {},\n defaultOpts = {},\n startEvent = _jp.dragEvents.start,\n stopEvent = _jp.dragEvents.stop,\n dragEvent = _jp.dragEvents.drag,\n beforeStartEvent = _jp.dragEvents.beforeStart,\n payload;\n // respond to beforeStart from katavorio; this will have, optionally, a payload of attribute values\n // that were placed there by the makeSource mousedown listener.\n var beforeStart = function(beforeStartParams) {\n payload = beforeStartParams.e.payload || {};\n };\n var start = function (startParams) {\n// ------------- first, get a connection to drag. this may be null, in which case we are dragging a new one.\n jpc = this.connectorSelector();\n// -------------------------------- now a bunch of tests about whether or not to proceed -------------------------\n var _continue = true;\n // if not enabled, return\n if (!this.isEnabled()) {\n _continue = false;\n }\n // if no connection and we're not a source - or temporarily a source, as is the case with makeSource - return.\n if (jpc == null && !this.isSource && !this.isTemporarySource) {\n _continue = false;\n }\n // otherwise if we're full and not allowed to drag, also return false.\n if (this.isSource && this.isFull() && !(jpc != null && this.dragAllowedWhenFull)) {\n _continue = false;\n }\n // if the connection was setup as not detachable or one of its endpoints\n // was setup as connectionsDetachable = false, or Defaults.ConnectionsDetachable\n // is set to false...\n if (jpc != null && !jpc.isDetachable(this)) {\n // .. and the endpoint is full\n if (this.isFull()) {\n _continue = false;\n } else {\n // otherwise, if not full, set the connection to null, and we will now proceed\n // to drag a new connection.\n jpc = null;\n }\n }\n var beforeDrag = _jsPlumb.checkCondition(jpc == null ? \"beforeDrag\" : \"beforeStartDetach\", {\n endpoint:this,\n source:this.element,\n sourceId:this.elementId,\n connection:jpc\n });\n if (beforeDrag === false) {\n _continue = false;\n }\n // else we might have been given some data. we'll pass it in to a new connection as 'data'.\n // here we also merge in the optional payload we were given on mousedown.\n else if (typeof beforeDrag === \"object\") {\n _jp.extend(beforeDrag, payload || {});\n }\n else {\n // or if no beforeDrag data, maybe use the payload on its own.\n beforeDrag = payload || {};\n }\n if (_continue === false) {\n // this is for mootools and yui. returning false from this causes jquery to stop drag.\n // the events are wrapped in both mootools and yui anyway, but i don't think returning\n // false from the start callback would stop a drag.\n if (_jsPlumb.stopDrag) {\n _jsPlumb.stopDrag(this.canvas);\n }\n _dragHandler.stopDrag();\n return false;\n }\n// ---------------------------------------------------------------------------------------------------------------------\n // ok to proceed.\n // clear hover for all connections for this endpoint before continuing.\n for (var i = 0; i < this.connections.length; i++) {\n this.connections[i].setHover(false);\n }\n this.addClass(\"endpointDrag\");\n _jsPlumb.setConnectionBeingDragged(true);\n // if we're not full but there was a connection, make it null. we'll create a new one.\n if (jpc && !this.isFull() && this.isSource) {\n jpc = null;\n }\n _jsPlumb.updateOffset({ elId: this.elementId });\n// ---------------- make the element we will drag around, and position it -----------------------------\n var ipco = this._jsPlumb.instance.getOffset(this.canvas),\n canvasElement = this.canvas,\n ips = this._jsPlumb.instance.getSize(this.canvas);\n _makeDraggablePlaceholder(placeholderInfo, _jsPlumb, ipco, ips);\n // store the id of the dragging div and the source element. the drop function will pick these up. \n _jsPlumb.setAttributes(this.canvas, {\n \"dragId\": placeholderInfo.id,\n \"elId\": this.elementId\n });\n// ------------------- create an endpoint that will be our floating endpoint ------------------------------------\n var endpointToFloat = this.dragProxy || this.endpoint;\n if (this.dragProxy == null && this.connectionType != null) {\n var aae = this._jsPlumb.instance.deriveEndpointAndAnchorSpec(this.connectionType);\n if (aae.endpoints[1]) {\n endpointToFloat = aae.endpoints[1];\n }\n }\n var centerAnchor = this._jsPlumb.instance.makeAnchor(\"Center\");\n centerAnchor.isFloating = true;\n this._jsPlumb.floatingEndpoint = _makeFloatingEndpoint(this.getPaintStyle(), centerAnchor, endpointToFloat, this.canvas, placeholderInfo.element, _jsPlumb, _newEndpoint, this.scope);\n var _savedAnchor = this._jsPlumb.floatingEndpoint.anchor;\n if (jpc == null) {\n this.setHover(false, false);\n // create a connection. one end is this endpoint, the other is a floating endpoint. \n jpc = _newConnection({\n sourceEndpoint: this,\n targetEndpoint: this._jsPlumb.floatingEndpoint,\n source: this.element, // for makeSource with parent option. ensure source element is represented correctly.\n target: placeholderInfo.element,\n anchors: [ this.anchor, this._jsPlumb.floatingEndpoint.anchor ],\n paintStyle: params.connectorStyle, // this can be null. Connection will use the default.\n hoverPaintStyle: params.connectorHoverStyle,\n connector: params.connector, // this can also be null. Connection will use the default.\n overlays: params.connectorOverlays,\n type: this.connectionType,\n cssClass: this.connectorClass,\n hoverClass: this.connectorHoverClass,\n scope:params.scope,\n data:beforeDrag\n });\n jpc.pending = true;\n jpc.addClass(_jsPlumb.draggingClass);\n this._jsPlumb.floatingEndpoint.addClass(_jsPlumb.draggingClass);\n this._jsPlumb.floatingEndpoint.anchor = _savedAnchor;\n // fire an event that informs that a connection is being dragged\n _jsPlumb.fire(\"connectionDrag\", jpc);\n // register the new connection on the drag manager. This connection, at this point, is 'pending',\n // and has as its target a temporary element (the 'placeholder'). If the connection subsequently\n // becomes established, the anchor manager is informed that the target of the connection has\n // changed.\n _jsPlumb.router.newConnection(jpc);\n } else {\n existingJpc = true;\n jpc.setHover(false);\n // new anchor idx\n var anchorIdx = jpc.endpoints[0].id === this.id ? 0 : 1;\n this.detachFromConnection(jpc, null, true); // detach from the connection while dragging is occurring. but dont cleanup automatically.\n // store the original scope (issue 57)\n var dragScope = _jsPlumb.getDragScope(canvasElement);\n _jsPlumb.setAttribute(this.canvas, \"originalScope\", dragScope);\n // fire an event that informs that a connection is being dragged. we do this before\n // replacing the original target with the floating element info.\n _jsPlumb.fire(\"connectionDrag\", jpc);\n // now we replace ourselves with the temporary div we created above:\n if (anchorIdx === 0) {\n existingJpcParams = [ jpc.source, jpc.sourceId, canvasElement, dragScope ];\n _jsPlumb.router.sourceOrTargetChanged(jpc.endpoints[anchorIdx].elementId, placeholderInfo.id, jpc, placeholderInfo.element, 0);\n } else {\n existingJpcParams = [ jpc.target, jpc.targetId, canvasElement, dragScope ];\n _jsPlumb.router.sourceOrTargetChanged(jpc.endpoints[anchorIdx].elementId, placeholderInfo.id, jpc, placeholderInfo.element, 1);\n }\n // store the original endpoint and assign the new floating endpoint for the drag.\n jpc.suspendedEndpoint = jpc.endpoints[anchorIdx];\n // PROVIDE THE SUSPENDED ELEMENT, BE IT A SOURCE OR TARGET (ISSUE 39)\n jpc.suspendedElement = jpc.endpoints[anchorIdx].getElement();\n jpc.suspendedElementId = jpc.endpoints[anchorIdx].elementId;\n jpc.suspendedElementType = anchorIdx === 0 ? \"source\" : \"target\";\n jpc.suspendedEndpoint.setHover(false);\n this._jsPlumb.floatingEndpoint.referenceEndpoint = jpc.suspendedEndpoint;\n jpc.endpoints[anchorIdx] = this._jsPlumb.floatingEndpoint;\n jpc.addClass(_jsPlumb.draggingClass);\n this._jsPlumb.floatingEndpoint.addClass(_jsPlumb.draggingClass);\n }\n _jsPlumb.registerFloatingConnection(placeholderInfo, jpc, this._jsPlumb.floatingEndpoint);\n // tell jsplumb about it\n _jsPlumb.currentlyDragging = true;\n }.bind(this);\n var stop = function () {\n _jsPlumb.setConnectionBeingDragged(false);\n if (jpc && jpc.endpoints != null) {\n // get the actual drop event (decode from library args to stop function)\n var originalEvent = _jsPlumb.getDropEvent(arguments);\n // unlock the other endpoint (if it is dynamic, it would have been locked at drag start)\n var idx = _jsPlumb.getFloatingAnchorIndex(jpc);\n jpc.endpoints[idx === 0 ? 1 : 0].anchor.locked = false;\n jpc.removeClass(_jsPlumb.draggingClass);\n // if we have the floating endpoint then the connection has not been dropped\n // on another endpoint. If it is a new connection we throw it away. If it is an\n // existing connection we check to see if we should reattach it, throwing it away\n // if not.\n if (this._jsPlumb && (jpc.deleteConnectionNow || jpc.endpoints[idx] === this._jsPlumb.floatingEndpoint)) {\n // 6a. if the connection was an existing one...\n if (existingJpc && jpc.suspendedEndpoint) {\n // fix for issue35, thanks Sylvain Gizard: when firing the detach event make sure the\n // floating endpoint has been replaced.\n if (idx === 0) {\n jpc.floatingElement = jpc.source;\n jpc.floatingId = jpc.sourceId;\n jpc.floatingEndpoint = jpc.endpoints[0];\n jpc.floatingIndex = 0;\n jpc.source = existingJpcParams[0];\n jpc.sourceId = existingJpcParams[1];\n } else {\n // keep a copy of the floating element; the anchor manager will want to clean up.\n jpc.floatingElement = jpc.target;\n jpc.floatingId = jpc.targetId;\n jpc.floatingEndpoint = jpc.endpoints[1];\n jpc.floatingIndex = 1;\n jpc.target = existingJpcParams[0];\n jpc.targetId = existingJpcParams[1];\n }\n var fe = this._jsPlumb.floatingEndpoint; // store for later removal.\n // restore the original scope (issue 57)\n _jsPlumb.setDragScope(existingJpcParams[2], existingJpcParams[3]);\n jpc.endpoints[idx] = jpc.suspendedEndpoint;\n // if the connection should be reattached, or the other endpoint refuses detach, then\n // reset the connection to its original state\n if (jpc.isReattach() || jpc._forceReattach || jpc._forceDetach || !_jsPlumb.deleteConnection(jpc, {originalEvent: originalEvent})) {\n jpc.setHover(false);\n jpc._forceDetach = null;\n jpc._forceReattach = null;\n this._jsPlumb.floatingEndpoint.detachFromConnection(jpc);\n jpc.suspendedEndpoint.addConnection(jpc);\n // TODO this code is duplicated in lots of places...and there is nothing external\n // in the code; it all refers to the connection itself. we could add a\n // `checkSanity(connection)` method to anchorManager that did this.\n if (idx === 1) {\n _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.targetId, jpc, jpc.target, idx);\n }\n else {\n _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.sourceId, jpc, jpc.source, idx);\n }\n _jsPlumb.repaint(existingJpcParams[1]);\n }\n else {\n _jsPlumb.deleteObject({endpoint: fe});\n }\n }\n }\n // makeTargets sets this flag, to tell us we have been replaced and should delete this object.\n if (this.deleteAfterDragStop) {\n _jsPlumb.deleteObject({endpoint: this});\n }\n else {\n if (this._jsPlumb) {\n this.paint({recalc: false});\n }\n }\n // although the connection is no longer valid, there are use cases where this is useful.\n _jsPlumb.fire(\"connectionDragStop\", jpc, originalEvent);\n // fire this event to give people more fine-grained control (connectionDragStop fires a lot)\n if (jpc.pending) {\n _jsPlumb.fire(\"connectionAborted\", jpc, originalEvent);\n }\n // tell jsplumb that dragging is finished.\n _jsPlumb.currentlyDragging = false;\n jpc.suspendedElement = null;\n jpc.suspendedEndpoint = null;\n jpc = null;\n }\n // if no endpoints, jpc already cleaned up. but still we want to ensure we're reset properly.\n // remove the element associated with the floating endpoint\n // (and its associated floating endpoint and visual artefacts)\n if (placeholderInfo && placeholderInfo.element) {\n _jsPlumb.remove(placeholderInfo.element, false, false);\n }\n // remove the inplace copy\n if (inPlaceCopy) {\n _jsPlumb.deleteObject({endpoint: inPlaceCopy});\n }\n if (this._jsPlumb) {\n // make our canvas visible (TODO: hand off to library; we should not know about DOM)\n this.canvas.style.visibility = \"visible\";\n // unlock our anchor\n this.anchor.locked = false;\n // clear floating anchor.\n this._jsPlumb.floatingEndpoint = null;\n }\n }.bind(this);\n dragOptions = _jp.extend(defaultOpts, dragOptions);\n dragOptions.scope = this.scope || dragOptions.scope;\n dragOptions[beforeStartEvent] = _ju.wrap(dragOptions[beforeStartEvent], beforeStart, false);\n dragOptions[startEvent] = _ju.wrap(dragOptions[startEvent], start, false);\n // extracted drag handler function so can be used by makeSource\n dragOptions[dragEvent] = _ju.wrap(dragOptions[dragEvent], _dragHandler.drag);\n dragOptions[stopEvent] = _ju.wrap(dragOptions[stopEvent], stop);\n dragOptions.multipleDrop = false;\n dragOptions.canDrag = function () {\n return this.isSource || this.isTemporarySource || (this.connections.length > 0 && this.connectionsDetachable !== false);\n }.bind(this);\n _jsPlumb.initDraggable(this.canvas, dragOptions, \"internal\");\n this.canvas._jsPlumbRelatedElement = this.element;\n draggingInitialised = true;\n }\n };\n var ep = params.endpoint || this._jsPlumb.instance.Defaults.Endpoint || _jp.Defaults.Endpoint;\n this.setEndpoint(ep, true);\n var anchorParamsToUse = params.anchor ? params.anchor : params.anchors ? params.anchors : (_jsPlumb.Defaults.Anchor || \"Top\");\n this.setAnchor(anchorParamsToUse, true);\n // finally, set type if it was provided\n var type = [ \"default\", (params.type || \"\")].join(\" \");\n this.addType(type, params.data, true);\n this.canvas = this.endpoint.canvas;\n this.canvas._jsPlumb = this;\n this.initDraggable();\n // pulled this out into a function so we can reuse it for the inPlaceCopy canvas; you can now drop detached connections\n // back onto the endpoint you detached it from.\n var _initDropTarget = function (canvas, isTransient, endpoint, referenceEndpoint) {\n if (_jp.isDropSupported(this.element)) {\n var dropOptions = params.dropOptions || _jsPlumb.Defaults.DropOptions || _jp.Defaults.DropOptions;\n dropOptions = _jp.extend({}, dropOptions);\n dropOptions.scope = dropOptions.scope || this.scope;\n var dropEvent = _jp.dragEvents.drop,\n overEvent = _jp.dragEvents.over,\n outEvent = _jp.dragEvents.out,\n _ep = this,\n drop = _jsPlumb.EndpointDropHandler({\n getEndpoint: function () {\n return _ep;\n },\n jsPlumb: _jsPlumb,\n enabled: function () {\n return endpoint != null ? endpoint.isEnabled() : true;\n },\n isFull: function () {\n return endpoint.isFull();\n },\n element: this.element,\n elementId: this.elementId,\n isSource: this.isSource,\n isTarget: this.isTarget,\n addClass: function (clazz) {\n _ep.addClass(clazz);\n },\n removeClass: function (clazz) {\n _ep.removeClass(clazz);\n },\n isDropAllowed: function () {\n return _ep.isDropAllowed.apply(_ep, arguments);\n },\n reference:referenceEndpoint,\n isRedrop:function(jpc, dhParams) {\n return jpc.suspendedEndpoint && dhParams.reference && (jpc.suspendedEndpoint.id === dhParams.reference.id);\n }\n });\n dropOptions[dropEvent] = _ju.wrap(dropOptions[dropEvent], drop, true);\n dropOptions[overEvent] = _ju.wrap(dropOptions[overEvent], function () {\n var draggable = _jp.getDragObject(arguments),\n id = _jsPlumb.getAttribute(_jp.getElement(draggable), \"dragId\"),\n _jpc = _jsPlumb.getFloatingConnectionFor(id);//_jsPlumb.floatingConnections[id];\n if (_jpc != null) {\n var idx = _jsPlumb.getFloatingAnchorIndex(_jpc);\n // here we should fire the 'over' event if we are a target and this is a new connection,\n // or we are the same as the floating endpoint.\n var _cont = (this.isTarget && idx !== 0) || (_jpc.suspendedEndpoint && this.referenceEndpoint && this.referenceEndpoint.id === _jpc.suspendedEndpoint.id);\n if (_cont) {\n var bb = _jsPlumb.checkCondition(\"checkDropAllowed\", {\n sourceEndpoint: _jpc.endpoints[idx],\n targetEndpoint: this,\n connection: _jpc\n });\n this[(bb ? \"add\" : \"remove\") + \"Class\"](_jsPlumb.endpointDropAllowedClass);\n this[(bb ? \"remove\" : \"add\") + \"Class\"](_jsPlumb.endpointDropForbiddenClass);\n _jpc.endpoints[idx].anchor.over(this.anchor, this);\n }\n }\n }.bind(this));\n dropOptions[outEvent] = _ju.wrap(dropOptions[outEvent], function () {\n var draggable = _jp.getDragObject(arguments),\n id = draggable == null ? null : _jsPlumb.getAttribute(_jp.getElement(draggable), \"dragId\"),\n _jpc = id ? _jsPlumb.getFloatingConnectionFor(id) : null;\n if (_jpc != null) {\n var idx = _jsPlumb.getFloatingAnchorIndex(_jpc);\n var _cont = (this.isTarget && idx !== 0) || (_jpc.suspendedEndpoint && this.referenceEndpoint && this.referenceEndpoint.id === _jpc.suspendedEndpoint.id);\n if (_cont) {\n this.removeClass(_jsPlumb.endpointDropAllowedClass);\n this.removeClass(_jsPlumb.endpointDropForbiddenClass);\n _jpc.endpoints[idx].anchor.out();\n }\n }\n }.bind(this));\n _jsPlumb.initDroppable(canvas, dropOptions, \"internal\", isTransient);\n }\n }.bind(this);\n // Initialise the endpoint's canvas as a drop target. The drop handler will take care of the logic of whether\n // something can actually be dropped.\n if (!this.anchor.isFloating) {\n _initDropTarget(this.canvas, !(params._transient || this.anchor.isFloating), this, params.reference);\n }\n return this;\n };\n _ju.extend(_jp.Endpoint, _jp.OverlayCapableJsPlumbUIComponent, {\n setVisible: function (v, doNotChangeConnections, doNotNotifyOtherEndpoint) {\n this._jsPlumb.visible = v;\n if (this.canvas) {\n this.canvas.style.display = v ? \"block\" : \"none\";\n }\n this[v ? \"showOverlays\" : \"hideOverlays\"]();\n if (!doNotChangeConnections) {\n for (var i = 0; i < this.connections.length; i++) {\n this.connections[i].setVisible(v);\n if (!doNotNotifyOtherEndpoint) {\n var oIdx = this === this.connections[i].endpoints[0] ? 1 : 0;\n // only change the other endpoint if this is its only connection.\n if (this.connections[i].endpoints[oIdx].connections.length === 1) {\n this.connections[i].endpoints[oIdx].setVisible(v, true, true);\n }\n }\n }\n }\n },\n getAttachedElements: function () {\n return this.connections;\n },\n applyType: function (t, doNotRepaint) {\n this.setPaintStyle(t.endpointStyle || t.paintStyle, doNotRepaint);\n this.setHoverPaintStyle(t.endpointHoverStyle || t.hoverPaintStyle, doNotRepaint);\n if (t.maxConnections != null) {\n this._jsPlumb.maxConnections = t.maxConnections;\n }\n if (t.scope) {\n this.scope = t.scope;\n }\n _jp.extend(this, t, typeParameters);\n if (t.cssClass != null && this.canvas) {\n this._jsPlumb.instance.addClass(this.canvas, t.cssClass);\n }\n _jp.OverlayCapableJsPlumbUIComponent.applyType(this, t);\n },\n isEnabled: function () {\n return this._jsPlumb.enabled;\n },\n setEnabled: function (e) {\n this._jsPlumb.enabled = e;\n },\n cleanup: function () {\n var anchorClass = this._jsPlumb.instance.endpointAnchorClassPrefix + (this._jsPlumb.currentAnchorClass ? \"-\" + this._jsPlumb.currentAnchorClass : \"\");\n _jp.removeClass(this.element, anchorClass);\n this.anchor = null;\n this.endpoint.cleanup(true);\n this.endpoint.destroy();\n this.endpoint = null;\n // drag/drop\n this._jsPlumb.instance.destroyDraggable(this.canvas, \"internal\");\n this._jsPlumb.instance.destroyDroppable(this.canvas, \"internal\");\n },\n setHover: function (h) {\n if (this.endpoint && this._jsPlumb && !this._jsPlumb.instance.isConnectionBeingDragged()) {\n this.endpoint.setHover(h);\n }\n },\n isFull: function () {\n return this._jsPlumb.maxConnections === 0 ? true : !(this.isFloating() || this._jsPlumb.maxConnections < 0 || this.connections.length < this._jsPlumb.maxConnections);\n },\n /**\n * private but needs to be exposed.\n */\n isFloating: function () {\n return this.anchor != null && this.anchor.isFloating;\n },\n isConnectedTo: function (endpoint) {\n var found = false;\n if (endpoint) {\n for (var i = 0; i < this.connections.length; i++) {\n if (this.connections[i].endpoints[1] === endpoint || this.connections[i].endpoints[0] === endpoint) {\n found = true;\n break;\n }\n }\n }\n return found;\n },\n getConnectionCost: function () {\n return this._jsPlumb.connectionCost;\n },\n setConnectionCost: function (c) {\n this._jsPlumb.connectionCost = c;\n },\n areConnectionsDirected: function () {\n return this._jsPlumb.connectionsDirected;\n },\n setConnectionsDirected: function (b) {\n this._jsPlumb.connectionsDirected = b;\n },\n setElementId: function (_elId) {\n this.elementId = _elId;\n this.anchor.elementId = _elId;\n },\n setReferenceElement: function (_el) {\n this.element = _jp.getElement(_el);\n },\n setDragAllowedWhenFull: function (allowed) {\n this.dragAllowedWhenFull = allowed;\n },\n equals: function (endpoint) {\n return this.anchor.equals(endpoint.anchor);\n },\n getUuid: function () {\n return this._jsPlumb.uuid;\n },\n computeAnchor: function (params) {\n return this.anchor.compute(params);\n }\n });\n root.jsPlumbInstance.prototype.EndpointDropHandler = function (dhParams) {\n return function (e) {\n var _jsPlumb = dhParams.jsPlumb;\n // remove the classes that are added dynamically. drop is neither forbidden nor allowed now that\n // the drop is finishing.\n dhParams.removeClass(_jsPlumb.endpointDropAllowedClass);\n dhParams.removeClass(_jsPlumb.endpointDropForbiddenClass);\n var originalEvent = _jsPlumb.getDropEvent(arguments),\n draggable = _jsPlumb.getDragObject(arguments),\n id = _jsPlumb.getAttribute(draggable, \"dragId\"),\n elId = _jsPlumb.getAttribute(draggable, \"elId\"),\n scope = _jsPlumb.getAttribute(draggable, \"originalScope\"),\n jpc = _jsPlumb.getFloatingConnectionFor(id);\n // if no active connection, bail.\n if (jpc == null) {\n return;\n }\n // calculate if this is an existing connection.\n var existingConnection = jpc.suspendedEndpoint != null;\n // if suspended endpoint exists but has been cleaned up, bail. This means it's an existing connection\n // that has been detached and will shortly be discarded.\n if (existingConnection && jpc.suspendedEndpoint._jsPlumb == null) {\n return;\n }\n // get the drop endpoint. for a normal connection this is just the one that would replace the currently\n // floating endpoint. for a makeTarget this is a new endpoint that is created on drop. But we leave that to\n // the handler to figure out.\n var _ep = dhParams.getEndpoint(jpc);\n // If we're not given an endpoint to use, bail.\n if (_ep == null) {\n return;\n }\n // if this is a drop back where the connection came from, mark it force reattach and\n // return; the stop handler will reattach. without firing an event.\n if (dhParams.isRedrop(jpc, dhParams)) {\n jpc._forceReattach = true;\n jpc.setHover(false);\n if (dhParams.maybeCleanup) {\n dhParams.maybeCleanup(_ep);\n }\n return;\n }\n // ensure we dont bother trying to drop sources on non-source eps, and same for target.\n var idx = _jsPlumb.getFloatingAnchorIndex(jpc);\n if ((idx === 0 && !dhParams.isSource)|| (idx === 1 && !dhParams.isTarget)){\n if (dhParams.maybeCleanup) {\n dhParams.maybeCleanup(_ep);\n }\n return;\n }\n if (dhParams.onDrop) {\n dhParams.onDrop(jpc);\n }\n // restore the original scope if necessary (issue 57)\n if (scope) {\n _jsPlumb.setDragScope(draggable, scope);\n }\n // if the target of the drop is full, fire an event (we abort below)\n // makeTarget: keep.\n var isFull = dhParams.isFull(e);\n if (isFull) {\n _ep.fire(\"maxConnections\", {\n endpoint: this,\n connection: jpc,\n maxConnections: _ep._jsPlumb.maxConnections\n }, originalEvent);\n }\n //\n // if endpoint enabled, not full, and matches the index of the floating endpoint...\n if (!isFull && dhParams.enabled()) {\n var _doContinue = true;\n // before testing for beforeDrop, reset the connection's source/target to be the actual DOM elements\n // involved (that is, stash any temporary stuff used for dragging. but we need to keep it around in\n // order that the anchor manager can clean things up properly).\n if (idx === 0) {\n jpc.floatingElement = jpc.source;\n jpc.floatingId = jpc.sourceId;\n jpc.floatingEndpoint = jpc.endpoints[0];\n jpc.floatingIndex = 0;\n jpc.source = dhParams.element;\n jpc.sourceId = _jsPlumb.getId(dhParams.element);\n } else {\n jpc.floatingElement = jpc.target;\n jpc.floatingId = jpc.targetId;\n jpc.floatingEndpoint = jpc.endpoints[1];\n jpc.floatingIndex = 1;\n jpc.target = dhParams.element;\n jpc.targetId = _jsPlumb.getId(dhParams.element);\n }\n // if this is an existing connection and detach is not allowed we won't continue. The connection's\n // endpoints have been reinstated; everything is back to how it was.\n if (existingConnection && jpc.suspendedEndpoint.id !== _ep.id) {\n if (!jpc.isDetachAllowed(jpc) || !jpc.endpoints[idx].isDetachAllowed(jpc) || !jpc.suspendedEndpoint.isDetachAllowed(jpc) || !_jsPlumb.checkCondition(\"beforeDetach\", jpc)) {\n _doContinue = false;\n }\n }\n// ------------ wrap the execution path in a function so we can support asynchronous beforeDrop\n var continueFunction = function (optionalData) {\n // remove this jpc from the current endpoint, which is a floating endpoint that we will\n // subsequently discard.\n jpc.endpoints[idx].detachFromConnection(jpc);\n // if there's a suspended endpoint, detach it from the connection.\n if (jpc.suspendedEndpoint) {\n jpc.suspendedEndpoint.detachFromConnection(jpc);\n }\n jpc.endpoints[idx] = _ep;\n _ep.addConnection(jpc);\n // copy our parameters in to the connection:\n var params = _ep.getParameters();\n for (var aParam in params) {\n jpc.setParameter(aParam, params[aParam]);\n }\n if (!existingConnection) {\n // if not an existing connection and\n if (params.draggable) {\n _jsPlumb.initDraggable(this.element, dhParams.dragOptions, \"internal\", _jsPlumb);\n }\n }\n else {\n var suspendedElementId = jpc.suspendedEndpoint.elementId;\n _jsPlumb.fireMoveEvent({\n index: idx,\n originalSourceId: idx === 0 ? suspendedElementId : jpc.sourceId,\n newSourceId: idx === 0 ? _ep.elementId : jpc.sourceId,\n originalTargetId: idx === 1 ? suspendedElementId : jpc.targetId,\n newTargetId: idx === 1 ? _ep.elementId : jpc.targetId,\n originalSourceEndpoint: idx === 0 ? jpc.suspendedEndpoint : jpc.endpoints[0],\n newSourceEndpoint: idx === 0 ? _ep : jpc.endpoints[0],\n originalTargetEndpoint: idx === 1 ? jpc.suspendedEndpoint : jpc.endpoints[1],\n newTargetEndpoint: idx === 1 ? _ep : jpc.endpoints[1],\n connection: jpc\n }, originalEvent);\n }\n if (idx === 1) {\n _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.targetId, jpc, jpc.target, 1);\n }\n else {\n _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.sourceId, jpc, jpc.source, 0);\n }\n // when makeSource has uniqueEndpoint:true, we want to create connections with new endpoints\n // that are subsequently deleted. So makeSource sets `finalEndpoint`, which is the Endpoint to\n // which the connection should be attached. The `detachFromConnection` call below results in the\n // temporary endpoint being cleaned up.\n if (jpc.endpoints[0].finalEndpoint) {\n var _toDelete = jpc.endpoints[0];\n _toDelete.detachFromConnection(jpc);\n jpc.endpoints[0] = jpc.endpoints[0].finalEndpoint;\n jpc.endpoints[0].addConnection(jpc);\n }\n // if optionalData was given, merge it onto the connection's data.\n if (_ju.isObject(optionalData)) {\n jpc.mergeData(optionalData);\n }\n // finalise will inform the anchor manager and also add to\n // connectionsByScope if necessary.\n _jsPlumb.finaliseConnection(jpc, null, originalEvent, false);\n jpc.setHover(false);\n // SP continuous anchor flush\n _jsPlumb.revalidate(jpc.endpoints[0].element);\n }.bind(this);\n var dontContinueFunction = function () {\n // otherwise just put it back on the endpoint it was on before the drag.\n if (jpc.suspendedEndpoint) {\n jpc.endpoints[idx] = jpc.suspendedEndpoint;\n jpc.setHover(false);\n jpc._forceDetach = true;\n if (idx === 0) {\n jpc.source = jpc.suspendedEndpoint.element;\n jpc.sourceId = jpc.suspendedEndpoint.elementId;\n } else {\n jpc.target = jpc.suspendedEndpoint.element;\n jpc.targetId = jpc.suspendedEndpoint.elementId;\n }\n jpc.suspendedEndpoint.addConnection(jpc);\n // TODO checkSanity\n if (idx === 1) {\n _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.targetId, jpc, jpc.target, 1);\n }\n else {\n _jsPlumb.router.sourceOrTargetChanged(jpc.floatingId, jpc.sourceId, jpc, jpc.source, 0);\n }\n _jsPlumb.repaint(jpc.sourceId);\n jpc._forceDetach = false;\n }\n };\n// --------------------------------------\n // now check beforeDrop. this will be available only on Endpoints that are setup to\n // have a beforeDrop condition (although, secretly, under the hood all Endpoints and\n // the Connection have them, because they are on jsPlumbUIComponent. shhh!), because\n // it only makes sense to have it on a target endpoint.\n _doContinue = _doContinue && dhParams.isDropAllowed(jpc.sourceId, jpc.targetId, jpc.scope, jpc, _ep);// && jpc.pending;\n if (_doContinue) {\n continueFunction(_doContinue);\n return true;\n }\n else {\n dontContinueFunction();\n }\n }\n if (dhParams.maybeCleanup) {\n dhParams.maybeCleanup(_ep);\n }\n _jsPlumb.currentlyDragging = false;\n };\n };\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the code for Connections.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this,\n _jp = root.jsPlumb,\n _ju = root.jsPlumbUtil;\n var makeConnector = function (_jsPlumb, renderMode, connectorName, connectorArgs, forComponent) {\n // first make sure we have a cache for the specified renderer\n _jp.Connectors[renderMode] = _jp.Connectors[renderMode] || {};\n // now see if the one we want exists; if not we will try to make it\n if (_jp.Connectors[renderMode][connectorName] == null) {\n if (_jp.Connectors[connectorName] == null) {\n if (!_jsPlumb.Defaults.DoNotThrowErrors) {\n throw new TypeError(\"jsPlumb: unknown connector type '\" + connectorName + \"'\");\n } else {\n return null;\n }\n }\n _jp.Connectors[renderMode][connectorName] = function() {\n _jp.Connectors[connectorName].apply(this, arguments);\n _jp.ConnectorRenderers[renderMode].apply(this, arguments);\n };\n _ju.extend(_jp.Connectors[renderMode][connectorName], [ _jp.Connectors[connectorName], _jp.ConnectorRenderers[renderMode]]);\n }\n return new _jp.Connectors[renderMode][connectorName](connectorArgs, forComponent);\n },\n _makeAnchor = function (anchorParams, elementId, _jsPlumb) {\n return (anchorParams) ? _jsPlumb.makeAnchor(anchorParams, elementId, _jsPlumb) : null;\n },\n _updateConnectedClass = function (conn, element, _jsPlumb, remove) {\n if (element != null) {\n element._jsPlumbConnections = element._jsPlumbConnections || {};\n if (remove) {\n delete element._jsPlumbConnections[conn.id];\n }\n else {\n element._jsPlumbConnections[conn.id] = true;\n }\n if (_ju.isEmpty(element._jsPlumbConnections)) {\n _jsPlumb.removeClass(element, _jsPlumb.connectedClass);\n }\n else {\n _jsPlumb.addClass(element, _jsPlumb.connectedClass);\n }\n }\n };\n _jp.Connection = function (params) {\n var _newEndpoint = params.newEndpoint;\n this.id = params.id;\n this.connector = null;\n this.idPrefix = \"_jsplumb_c_\";\n this.defaultLabelLocation = 0.5;\n this.defaultOverlayKeys = [\"Overlays\", \"ConnectionOverlays\"];\n // if a new connection is the result of moving some existing connection, params.previousConnection\n // will have that Connection in it. listeners for the jsPlumbConnection event can look for that\n // member and take action if they need to.\n this.previousConnection = params.previousConnection;\n this.source = _jp.getElement(params.source);\n this.target = _jp.getElement(params.target);\n _jp.OverlayCapableJsPlumbUIComponent.apply(this, arguments);\n // sourceEndpoint and targetEndpoint override source/target, if they are present. but \n // source is not overridden if the Endpoint has declared it is not the final target of a connection;\n // instead we use the source that the Endpoint declares will be the final source element.\n if (params.sourceEndpoint) {\n this.source = params.sourceEndpoint.getElement();\n this.sourceId = params.sourceEndpoint.elementId;\n } else {\n this.sourceId = this._jsPlumb.instance.getId(this.source);\n }\n if (params.targetEndpoint) {\n this.target = params.targetEndpoint.getElement();\n this.targetId = params.targetEndpoint.elementId;\n } else {\n this.targetId = this._jsPlumb.instance.getId(this.target);\n }\n this.scope = params.scope; // scope may have been passed in to the connect call. if it wasn't, we will pull it from the source endpoint, after having initialised the endpoints. \n this.endpoints = [];\n this.endpointStyles = [];\n var _jsPlumb = this._jsPlumb.instance;\n _jsPlumb.manage(this.sourceId, this.source);\n _jsPlumb.manage(this.targetId, this.target);\n this._jsPlumb.visible = true;\n this._jsPlumb.params = {\n cssClass: params.cssClass,\n container: params.container,\n \"pointer-events\": params[\"pointer-events\"],\n editorParams: params.editorParams,\n overlays: params.overlays\n };\n this._jsPlumb.lastPaintedAt = null;\n // listen to mouseover and mouseout events passed from the container delegate.\n this.bind(\"mouseover\", function () {\n this.setHover(true);\n }.bind(this));\n this.bind(\"mouseout\", function () {\n this.setHover(false);\n }.bind(this));\n// INITIALISATION CODE\n this.makeEndpoint = function (isSource, el, elId, ep, definition) {\n elId = elId || this._jsPlumb.instance.getId(el);\n return this.prepareEndpoint(_jsPlumb, _newEndpoint, this, ep, isSource ? 0 : 1, params, el, elId, definition);\n };\n // if type given, get the endpoint definitions mapping to that type from the jsplumb instance, and use those.\n // we apply types at the end of this constructor but endpoints are only honoured in a type definition at\n // create time.\n if (params.type) {\n params.endpoints = params.endpoints || this._jsPlumb.instance.deriveEndpointAndAnchorSpec(params.type).endpoints;\n }\n var eS = this.makeEndpoint(true, this.source, this.sourceId, params.sourceEndpoint),\n eT = this.makeEndpoint(false, this.target, this.targetId, params.targetEndpoint);\n if (eS) {\n _ju.addToList(params.endpointsByElement, this.sourceId, eS);\n }\n if (eT) {\n _ju.addToList(params.endpointsByElement, this.targetId, eT);\n }\n // if scope not set, set it to be the scope for the source endpoint.\n if (!this.scope) {\n this.scope = this.endpoints[0].scope;\n }\n // if explicitly told to (or not to) delete endpoints when empty, override endpoint's preferences\n if (params.deleteEndpointsOnEmpty != null) {\n this.endpoints[0].setDeleteOnEmpty(params.deleteEndpointsOnEmpty);\n this.endpoints[1].setDeleteOnEmpty(params.deleteEndpointsOnEmpty);\n }\n// -------------------------- DEFAULT TYPE ---------------------------------------------\n // DETACHABLE\n var _detachable = _jsPlumb.Defaults.ConnectionsDetachable;\n if (params.detachable === false) {\n _detachable = false;\n }\n if (this.endpoints[0].connectionsDetachable === false) {\n _detachable = false;\n }\n if (this.endpoints[1].connectionsDetachable === false) {\n _detachable = false;\n }\n // REATTACH\n var _reattach = params.reattach || this.endpoints[0].reattachConnections || this.endpoints[1].reattachConnections || _jsPlumb.Defaults.ReattachConnections;\n this.appendToDefaultType({\n detachable: _detachable,\n reattach: _reattach,\n paintStyle:this.endpoints[0].connectorStyle || this.endpoints[1].connectorStyle || params.paintStyle || _jsPlumb.Defaults.PaintStyle || _jp.Defaults.PaintStyle,\n hoverPaintStyle:this.endpoints[0].connectorHoverStyle || this.endpoints[1].connectorHoverStyle || params.hoverPaintStyle || _jsPlumb.Defaults.HoverPaintStyle || _jp.Defaults.HoverPaintStyle\n });\n var _suspendedAt = _jsPlumb.getSuspendedAt();\n if (!_jsPlumb.isSuspendDrawing()) {\n // paint the endpoints\n var myInfo = _jsPlumb.getCachedData(this.sourceId),\n myOffset = myInfo.o, myWH = myInfo.s,\n otherInfo = _jsPlumb.getCachedData(this.targetId),\n otherOffset = otherInfo.o,\n otherWH = otherInfo.s,\n initialTimestamp = _suspendedAt || jsPlumbUtil.uuid(),\n anchorLoc = this.endpoints[0].anchor.compute({\n xy: [ myOffset.left, myOffset.top ], wh: myWH, element: this.endpoints[0],\n elementId: this.endpoints[0].elementId,\n txy: [ otherOffset.left, otherOffset.top ], twh: otherWH, tElement: this.endpoints[1],\n timestamp: initialTimestamp,\n rotation:_jsPlumb.getRotation(this.endpoints[0].elementId)\n });\n this.endpoints[0].paint({ anchorLoc: anchorLoc, timestamp: initialTimestamp });\n anchorLoc = this.endpoints[1].anchor.compute({\n xy: [ otherOffset.left, otherOffset.top ], wh: otherWH, element: this.endpoints[1],\n elementId: this.endpoints[1].elementId,\n txy: [ myOffset.left, myOffset.top ], twh: myWH, tElement: this.endpoints[0],\n timestamp: initialTimestamp,\n rotation:_jsPlumb.getRotation(this.endpoints[1].elementId)\n });\n this.endpoints[1].paint({ anchorLoc: anchorLoc, timestamp: initialTimestamp });\n }\n this.getTypeDescriptor = function () {\n return \"connection\";\n };\n this.getAttachedElements = function () {\n return this.endpoints;\n };\n this.isDetachable = function (ep) {\n return this._jsPlumb.detachable === false ? false : ep != null ? ep.connectionsDetachable === true : this._jsPlumb.detachable === true;\n };\n this.setDetachable = function (detachable) {\n this._jsPlumb.detachable = detachable === true;\n };\n this.isReattach = function () {\n return this._jsPlumb.reattach === true || this.endpoints[0].reattachConnections === true || this.endpoints[1].reattachConnections === true;\n };\n this.setReattach = function (reattach) {\n this._jsPlumb.reattach = reattach === true;\n };\n// END INITIALISATION CODE\n// COST + DIRECTIONALITY\n // if cost not supplied, try to inherit from source endpoint\n this._jsPlumb.cost = params.cost || this.endpoints[0].getConnectionCost();\n this._jsPlumb.directed = params.directed;\n // inherit directed flag if set no source endpoint\n if (params.directed == null) {\n this._jsPlumb.directed = this.endpoints[0].areConnectionsDirected();\n }\n// END COST + DIRECTIONALITY\n// PARAMETERS\n // merge all the parameters objects into the connection. parameters set\n // on the connection take precedence; then source endpoint params, then\n // finally target endpoint params.\n var _p = _jp.extend({}, this.endpoints[1].getParameters());\n _jp.extend(_p, this.endpoints[0].getParameters());\n _jp.extend(_p, this.getParameters());\n this.setParameters(_p);\n// END PARAMETERS\n// PAINTING\n this.setConnector(this.endpoints[0].connector || this.endpoints[1].connector || params.connector || _jsPlumb.Defaults.Connector || _jp.Defaults.Connector, true);\n var data = params.data == null || !_ju.isObject(params.data) ? {} : params.data;\n this.getData = function() { return data; };\n this.setData = function(d) { data = d || {}; };\n this.mergeData = function(d) { data = _jp.extend(data, d); };\n // the very last thing we do is apply types, if there are any.\n var _types = [ \"default\", this.endpoints[0].connectionType, this.endpoints[1].connectionType, params.type ].join(\" \");\n if (/[^\\s]/.test(_types)) {\n this.addType(_types, params.data, true);\n }\n this.updateConnectedClass();\n// END PAINTING \n };\n _ju.extend(_jp.Connection, _jp.OverlayCapableJsPlumbUIComponent, {\n applyType: function (t, doNotRepaint, typeMap) {\n var _connector = null;\n if (t.connector != null) {\n _connector = this.getCachedTypeItem(\"connector\", typeMap.connector);\n if (_connector == null) {\n _connector = this.prepareConnector(t.connector, typeMap.connector);\n this.cacheTypeItem(\"connector\", _connector, typeMap.connector);\n }\n this.setPreparedConnector(_connector);\n }\n // none of these things result in the creation of objects so can be ignored.\n if (t.detachable != null) {\n this.setDetachable(t.detachable);\n }\n if (t.reattach != null) {\n this.setReattach(t.reattach);\n }\n if (t.scope) {\n this.scope = t.scope;\n }\n if (t.cssClass != null && this.canvas) {\n this._jsPlumb.instance.addClass(this.canvas, t.cssClass);\n }\n var _anchors = null;\n // this also results in the creation of objects.\n if (t.anchor) {\n // note that even if the param was anchor, we store `anchors`.\n _anchors = this.getCachedTypeItem(\"anchors\", typeMap.anchor);\n if (_anchors == null) {\n _anchors = [ this._jsPlumb.instance.makeAnchor(t.anchor), this._jsPlumb.instance.makeAnchor(t.anchor) ];\n this.cacheTypeItem(\"anchors\", _anchors, typeMap.anchor);\n }\n }\n else if (t.anchors) {\n _anchors = this.getCachedTypeItem(\"anchors\", typeMap.anchors);\n if (_anchors == null) {\n _anchors = [\n this._jsPlumb.instance.makeAnchor(t.anchors[0]),\n this._jsPlumb.instance.makeAnchor(t.anchors[1])\n ];\n this.cacheTypeItem(\"anchors\", _anchors, typeMap.anchors);\n }\n }\n if (_anchors != null) {\n this.endpoints[0].anchor = _anchors[0];\n this.endpoints[1].anchor = _anchors[1];\n if (this.endpoints[1].anchor.isDynamic) {\n this._jsPlumb.instance.repaint(this.endpoints[1].elementId);\n }\n }\n _jp.OverlayCapableJsPlumbUIComponent.applyType(this, t);\n },\n addClass: function (c, informEndpoints) {\n if (informEndpoints) {\n this.endpoints[0].addClass(c);\n this.endpoints[1].addClass(c);\n if (this.suspendedEndpoint) {\n this.suspendedEndpoint.addClass(c);\n }\n }\n if (this.connector) {\n this.connector.addClass(c);\n }\n },\n removeClass: function (c, informEndpoints) {\n if (informEndpoints) {\n this.endpoints[0].removeClass(c);\n this.endpoints[1].removeClass(c);\n if (this.suspendedEndpoint) {\n this.suspendedEndpoint.removeClass(c);\n }\n }\n if (this.connector) {\n this.connector.removeClass(c);\n }\n },\n isVisible: function () {\n return this._jsPlumb.visible;\n },\n setVisible: function (v) {\n this._jsPlumb.visible = v;\n if (this.connector) {\n this.connector.setVisible(v);\n }\n this.repaint();\n },\n cleanup: function () {\n this.updateConnectedClass(true);\n this.endpoints = null;\n this.source = null;\n this.target = null;\n if (this.connector != null) {\n this.connector.cleanup(true);\n this.connector.destroy(true);\n }\n this.connector = null;\n },\n updateConnectedClass:function(remove) {\n if (this._jsPlumb) {\n _updateConnectedClass(this, this.source, this._jsPlumb.instance, remove);\n _updateConnectedClass(this, this.target, this._jsPlumb.instance, remove);\n }\n },\n setHover: function (state) {\n if (this.connector && this._jsPlumb && !this._jsPlumb.instance.isConnectionBeingDragged()) {\n this.connector.setHover(state);\n root.jsPlumb[state ? \"addClass\" : \"removeClass\"](this.source, this._jsPlumb.instance.hoverSourceClass);\n root.jsPlumb[state ? \"addClass\" : \"removeClass\"](this.target, this._jsPlumb.instance.hoverTargetClass);\n }\n },\n getUuids:function() {\n return [ this.endpoints[0].getUuid(), this.endpoints[1].getUuid() ];\n },\n getCost: function () {\n return this._jsPlumb ? this._jsPlumb.cost : -Infinity;\n },\n setCost: function (c) {\n this._jsPlumb.cost = c;\n },\n isDirected: function () {\n return this._jsPlumb.directed;\n },\n getConnector: function () {\n return this.connector;\n },\n prepareConnector:function(connectorSpec, typeId) {\n var connectorArgs = {\n _jsPlumb: this._jsPlumb.instance,\n cssClass: this._jsPlumb.params.cssClass,\n container: this._jsPlumb.params.container,\n \"pointer-events\": this._jsPlumb.params[\"pointer-events\"]\n },\n renderMode = this._jsPlumb.instance.getRenderMode(),\n connector;\n if (_ju.isString(connectorSpec)) {\n connector = makeConnector(this._jsPlumb.instance, renderMode, connectorSpec, connectorArgs, this);\n } // lets you use a string as shorthand.\n else if (_ju.isArray(connectorSpec)) {\n if (connectorSpec.length === 1) {\n connector = makeConnector(this._jsPlumb.instance, renderMode, connectorSpec[0], connectorArgs, this);\n }\n else {\n connector = makeConnector(this._jsPlumb.instance, renderMode, connectorSpec[0], _ju.merge(connectorSpec[1], connectorArgs), this);\n }\n }\n if (typeId != null) {\n connector.typeId = typeId;\n }\n return connector;\n },\n setPreparedConnector: function(connector, doNotRepaint, doNotChangeListenerComponent, typeId) {\n if (this.connector !== connector) {\n var previous, previousClasses = \"\";\n // the connector will not be cleaned up if it was set as part of a type, because `typeId` will be set on it\n // and we havent passed in `true` for \"force\" here.\n if (this.connector != null) {\n previous = this.connector;\n previousClasses = previous.getClass();\n this.connector.cleanup();\n this.connector.destroy();\n }\n this.connector = connector;\n if (typeId) {\n this.cacheTypeItem(\"connector\", connector, typeId);\n }\n this.canvas = this.connector.canvas;\n this.bgCanvas = this.connector.bgCanvas;\n this.connector.reattach(this._jsPlumb.instance);\n // put classes from prior connector onto the canvas\n this.addClass(previousClasses);\n // new: instead of binding listeners per connector, we now just have one delegate on the container.\n // so for that handler we set the connection as the '_jsPlumb' member of the canvas element, and\n // bgCanvas, if it exists, which it does right now in the VML renderer, so it won't from v 2.0.0 onwards.\n if (this.canvas) {\n this.canvas._jsPlumb = this;\n }\n if (this.bgCanvas) {\n this.bgCanvas._jsPlumb = this;\n }\n if (previous != null) {\n var o = this.getOverlays();\n for (var i = 0; i < o.length; i++) {\n if (o[i].transfer) {\n o[i].transfer(this.connector);\n }\n }\n }\n if (!doNotChangeListenerComponent) {\n this.setListenerComponent(this.connector);\n }\n if (!doNotRepaint) {\n this.repaint();\n }\n }\n },\n setConnector: function (connectorSpec, doNotRepaint, doNotChangeListenerComponent, typeId) {\n var connector = this.prepareConnector(connectorSpec, typeId);\n this.setPreparedConnector(connector, doNotRepaint, doNotChangeListenerComponent, typeId);\n },\n paint: function (params) {\n if (!this._jsPlumb.instance.isSuspendDrawing() && this._jsPlumb.visible) {\n params = params || {};\n var timestamp = params.timestamp,\n // if the moving object is not the source we must transpose the two references.\n swap = false,\n tId = swap ? this.sourceId : this.targetId, sId = swap ? this.targetId : this.sourceId,\n tIdx = swap ? 0 : 1, sIdx = swap ? 1 : 0;\n if (timestamp == null || timestamp !== this._jsPlumb.lastPaintedAt) {\n var sourceInfo = this._jsPlumb.instance.updateOffset({elId:sId}).o,\n targetInfo = this._jsPlumb.instance.updateOffset({elId:tId}).o,\n sE = this.endpoints[sIdx], tE = this.endpoints[tIdx];\n var sAnchorP = sE.anchor.getCurrentLocation(\n {\n xy: [sourceInfo.left, sourceInfo.top],\n wh: [sourceInfo.width, sourceInfo.height],\n element: sE,\n timestamp: timestamp,\n rotation:this._jsPlumb.instance.getRotation(this.sourceId)\n }),\n tAnchorP = tE.anchor.getCurrentLocation({\n xy: [targetInfo.left, targetInfo.top],\n wh: [targetInfo.width, targetInfo.height],\n element: tE,\n timestamp: timestamp,\n rotation:this._jsPlumb.instance.getRotation(this.targetId)\n });\n this.connector.resetBounds();\n this.connector.compute({\n sourcePos: sAnchorP,\n targetPos: tAnchorP,\n sourceOrientation:sE.anchor.getOrientation(sE),\n targetOrientation:tE.anchor.getOrientation(tE),\n sourceEndpoint: this.endpoints[sIdx],\n targetEndpoint: this.endpoints[tIdx],\n \"stroke-width\": this._jsPlumb.paintStyleInUse.strokeWidth,\n sourceInfo: sourceInfo,\n targetInfo: targetInfo\n });\n var overlayExtents = { minX: Infinity, minY: Infinity, maxX: -Infinity, maxY: -Infinity };\n // compute overlays. we do this first so we can get their placements, and adjust the\n // container if needs be (if an overlay would be clipped)\n for (var i in this._jsPlumb.overlays) {\n if (this._jsPlumb.overlays.hasOwnProperty(i)) {\n var o = this._jsPlumb.overlays[i];\n if (o.isVisible()) {\n this._jsPlumb.overlayPlacements[i] = o.draw(this.connector, this._jsPlumb.paintStyleInUse, this.getAbsoluteOverlayPosition(o));\n overlayExtents.minX = Math.min(overlayExtents.minX, this._jsPlumb.overlayPlacements[i].minX);\n overlayExtents.maxX = Math.max(overlayExtents.maxX, this._jsPlumb.overlayPlacements[i].maxX);\n overlayExtents.minY = Math.min(overlayExtents.minY, this._jsPlumb.overlayPlacements[i].minY);\n overlayExtents.maxY = Math.max(overlayExtents.maxY, this._jsPlumb.overlayPlacements[i].maxY);\n }\n }\n }\n var lineWidth = parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth || 1) / 2,\n outlineWidth = parseFloat(this._jsPlumb.paintStyleInUse.strokeWidth || 0),\n extents = {\n xmin: Math.min(this.connector.bounds.minX - (lineWidth + outlineWidth), overlayExtents.minX),\n ymin: Math.min(this.connector.bounds.minY - (lineWidth + outlineWidth), overlayExtents.minY),\n xmax: Math.max(this.connector.bounds.maxX + (lineWidth + outlineWidth), overlayExtents.maxX),\n ymax: Math.max(this.connector.bounds.maxY + (lineWidth + outlineWidth), overlayExtents.maxY)\n };\n // paint the connector.\n this.connector.paintExtents = extents;\n this.connector.paint(this._jsPlumb.paintStyleInUse, null, extents);\n // and then the overlays\n for (var j in this._jsPlumb.overlays) {\n if (this._jsPlumb.overlays.hasOwnProperty(j)) {\n var p = this._jsPlumb.overlays[j];\n if (p.isVisible()) {\n p.paint(this._jsPlumb.overlayPlacements[j], extents);\n }\n }\n }\n }\n this._jsPlumb.lastPaintedAt = timestamp;\n }\n },\n repaint: function (params) {\n var p = jsPlumb.extend(params || {}, {});\n p.elId = this.sourceId;\n this.paint(p);\n },\n prepareEndpoint: function (_jsPlumb, _newEndpoint, conn, existing, index, params, element, elementId, definition) {\n var e;\n if (existing) {\n conn.endpoints[index] = existing;\n existing.addConnection(conn);\n } else {\n if (!params.endpoints) {\n params.endpoints = [ null, null ];\n }\n var ep = definition || params.endpoints[index] || params.endpoint || _jsPlumb.Defaults.Endpoints[index] || _jp.Defaults.Endpoints[index] || _jsPlumb.Defaults.Endpoint || _jp.Defaults.Endpoint;\n if (!params.endpointStyles) {\n params.endpointStyles = [ null, null ];\n }\n if (!params.endpointHoverStyles) {\n params.endpointHoverStyles = [ null, null ];\n }\n var es = params.endpointStyles[index] || params.endpointStyle || _jsPlumb.Defaults.EndpointStyles[index] || _jp.Defaults.EndpointStyles[index] || _jsPlumb.Defaults.EndpointStyle || _jp.Defaults.EndpointStyle;\n // Endpoints derive their fill from the connector's stroke, if no fill was specified.\n if (es.fill == null && params.paintStyle != null) {\n es.fill = params.paintStyle.stroke;\n }\n if (es.outlineStroke == null && params.paintStyle != null) {\n es.outlineStroke = params.paintStyle.outlineStroke;\n }\n if (es.outlineWidth == null && params.paintStyle != null) {\n es.outlineWidth = params.paintStyle.outlineWidth;\n }\n var ehs = params.endpointHoverStyles[index] || params.endpointHoverStyle || _jsPlumb.Defaults.EndpointHoverStyles[index] || _jp.Defaults.EndpointHoverStyles[index] || _jsPlumb.Defaults.EndpointHoverStyle || _jp.Defaults.EndpointHoverStyle;\n // endpoint hover fill style is derived from connector's hover stroke style\n if (params.hoverPaintStyle != null) {\n if (ehs == null) {\n ehs = {};\n }\n if (ehs.fill == null) {\n ehs.fill = params.hoverPaintStyle.stroke;\n }\n }\n var a = params.anchors ? params.anchors[index] :\n params.anchor ? params.anchor :\n _makeAnchor(_jsPlumb.Defaults.Anchors[index], elementId, _jsPlumb) ||\n _makeAnchor(_jp.Defaults.Anchors[index], elementId, _jsPlumb) ||\n _makeAnchor(_jsPlumb.Defaults.Anchor, elementId, _jsPlumb) ||\n _makeAnchor(_jp.Defaults.Anchor, elementId, _jsPlumb),\n u = params.uuids ? params.uuids[index] : null;\n e = _newEndpoint({\n paintStyle: es, hoverPaintStyle: ehs, endpoint: ep, connections: [ conn ],\n uuid: u, anchor: a, source: element, scope: params.scope,\n reattach: params.reattach || _jsPlumb.Defaults.ReattachConnections,\n detachable: params.detachable || _jsPlumb.Defaults.ConnectionsDetachable\n });\n if (existing == null) {\n e.setDeleteOnEmpty(true);\n }\n conn.endpoints[index] = e;\n if (params.drawEndpoints === false) {\n e.setVisible(false, true, true);\n }\n }\n return e;\n },\n replaceEndpoint:function(idx, endpointDef) {\n var current = this.endpoints[idx],\n elId = current.elementId,\n ebe = this._jsPlumb.instance.getEndpoints(elId),\n _idx = ebe.indexOf(current),\n _new = this.makeEndpoint(idx === 0, current.element, elId, null, endpointDef);\n this.endpoints[idx] = _new;\n ebe.splice(_idx, 1, _new);\n this._jsPlumb.instance.deleteObject({endpoint:current, deleteAttachedObjects:false});\n this._jsPlumb.instance.fire(\"endpointReplaced\", {previous:current, current:_new});\n this._jsPlumb.instance.router.sourceOrTargetChanged(this.endpoints[1].elementId, this.endpoints[1].elementId, this, this.endpoints[1].element, 1);\n }\n }); // END Connection class \n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the code for creating and manipulating anchors.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this,\n _ju = root.jsPlumbUtil,\n _jp = root.jsPlumb;\n //\n // manages anchors for all elements.\n //\n _jp.AnchorManager = function (params) {\n var _amEndpoints = {},\n continuousAnchorLocations = {},\n continuousAnchorOrientations = {},\n connectionsByElementId = {},\n self = this,\n anchorLists = {},\n jsPlumbInstance = params.jsPlumbInstance,\n floatingConnections = {},\n // used by placeAnchors function\n placeAnchorsOnLine = function (desc, elementDimensions, elementPosition, connections, horizontal, otherMultiplier, reverse, rotation) {\n var a = [], step = elementDimensions[horizontal ? 0 : 1] / (connections.length + 1);\n for (var i = 0; i < connections.length; i++) {\n var val = (i + 1) * step, other = otherMultiplier * elementDimensions[horizontal ? 1 : 0];\n if (reverse) {\n val = elementDimensions[horizontal ? 0 : 1] - val;\n }\n var dx = (horizontal ? val : other), x = elementPosition.left + dx, xp = dx / elementDimensions[0],\n dy = (horizontal ? other : val), y = elementPosition.top + dy, yp = dy / elementDimensions[1];\n if (rotation !== 0) {\n var rotated = jsPlumbUtil.rotatePoint([x, y], [elementPosition.centerx, elementPosition.centery], rotation);\n x = rotated[0];\n y = rotated[1];\n }\n a.push([ x, y, xp, yp, connections[i][1], connections[i][2] ]);\n }\n return a;\n },\n rightAndBottomSort = function(a, b) {\n return b[0][0] - a[0][0];\n },\n // used by edgeSortFunctions\n leftAndTopSort = function (a, b) {\n var p1 = a[0][0] < 0 ? -Math.PI - a[0][0] : Math.PI - a[0][0],\n p2 = b[0][0] < 0 ? -Math.PI - b[0][0] : Math.PI - b[0][0];\n return p1 - p2;\n },\n // used by placeAnchors\n edgeSortFunctions = {\n \"top\":leftAndTopSort,\n \"right\": rightAndBottomSort,\n \"bottom\": rightAndBottomSort,\n \"left\": leftAndTopSort\n },\n // used by placeAnchors\n _sortHelper = function (_array, _fn) {\n return _array.sort(_fn);\n },\n // used by AnchorManager.redraw\n placeAnchors = function (elementId, _anchorLists) {\n var cd = jsPlumbInstance.getCachedData(elementId), sS = cd.s, sO = cd.o,\n placeSomeAnchors = function (desc, elementDimensions, elementPosition, unsortedConnections, isHorizontal, otherMultiplier, orientation) {\n if (unsortedConnections.length > 0) {\n var sc = _sortHelper(unsortedConnections, edgeSortFunctions[desc]), // puts them in order based on the target element's pos on screen\n reverse = desc === \"right\" || desc === \"top\",\n rotation = jsPlumbInstance.getRotation(elementId),\n anchors = placeAnchorsOnLine(desc, elementDimensions,\n elementPosition, sc,\n isHorizontal, otherMultiplier, reverse, rotation);\n // takes a computed anchor position and adjusts it for parent offset and scroll, then stores it.\n var _setAnchorLocation = function (endpoint, anchorPos) {\n continuousAnchorLocations[endpoint.id] = [ anchorPos[0], anchorPos[1], anchorPos[2], anchorPos[3] ];\n continuousAnchorOrientations[endpoint.id] = orientation;\n };\n for (var i = 0; i < anchors.length; i++) {\n var c = anchors[i][4], weAreSource = c.endpoints[0].elementId === elementId, weAreTarget = c.endpoints[1].elementId === elementId;\n if (weAreSource) {\n _setAnchorLocation(c.endpoints[0], anchors[i]);\n }\n if (weAreTarget) {\n _setAnchorLocation(c.endpoints[1], anchors[i]);\n }\n }\n }\n };\n placeSomeAnchors(\"bottom\", sS, sO, _anchorLists.bottom, true, 1, [0, 1]);\n placeSomeAnchors(\"top\", sS, sO, _anchorLists.top, true, 0, [0, -1]);\n placeSomeAnchors(\"left\", sS, sO, _anchorLists.left, false, 0, [-1, 0]);\n placeSomeAnchors(\"right\", sS, sO, _anchorLists.right, false, 1, [1, 0]);\n };\n this.reset = function () {\n _amEndpoints = {};\n connectionsByElementId = {};\n anchorLists = {};\n };\n this.addFloatingConnection = function (key, conn) {\n floatingConnections[key] = conn;\n };\n this.newConnection = function (conn) {\n var sourceId = conn.sourceId, targetId = conn.targetId,\n ep = conn.endpoints,\n doRegisterTarget = true,\n registerConnection = function (otherIndex, otherEndpoint, otherAnchor, elId, c) {\n if ((sourceId === targetId) && otherAnchor.isContinuous) {\n // remove the target endpoint's canvas. we dont need it.\n conn._jsPlumb.instance.removeElement(ep[1].canvas);\n doRegisterTarget = false;\n }\n _ju.addToList(connectionsByElementId, elId, [c, otherEndpoint, otherAnchor.constructor === _jp.DynamicAnchor]);\n };\n registerConnection(0, ep[0], ep[0].anchor, targetId, conn);\n if (doRegisterTarget) {\n registerConnection(1, ep[1], ep[1].anchor, sourceId, conn);\n }\n };\n var removeEndpointFromAnchorLists = function (endpoint) {\n (function (list, eId) {\n if (list) { // transient anchors dont get entries in this list.\n var f = function (e) {\n return e[4] === eId;\n };\n _ju.removeWithFunction(list.top, f);\n _ju.removeWithFunction(list.left, f);\n _ju.removeWithFunction(list.bottom, f);\n _ju.removeWithFunction(list.right, f);\n }\n })(anchorLists[endpoint.elementId], endpoint.id);\n };\n this.connectionDetached = function (connInfo, doNotRedraw) {\n var connection = connInfo.connection || connInfo,\n sourceId = connInfo.sourceId,\n targetId = connInfo.targetId,\n ep = connection.endpoints,\n removeConnection = function (otherIndex, otherEndpoint, otherAnchor, elId, c) {\n _ju.removeWithFunction(connectionsByElementId[elId], function (_c) {\n return _c[0].id === c.id;\n });\n };\n removeConnection(1, ep[1], ep[1].anchor, sourceId, connection);\n removeConnection(0, ep[0], ep[0].anchor, targetId, connection);\n if (connection.floatingId) {\n removeConnection(connection.floatingIndex, connection.floatingEndpoint, connection.floatingEndpoint.anchor, connection.floatingId, connection);\n removeEndpointFromAnchorLists(connection.floatingEndpoint);\n }\n // remove from anchorLists\n removeEndpointFromAnchorLists(connection.endpoints[0]);\n removeEndpointFromAnchorLists(connection.endpoints[1]);\n if (!doNotRedraw) {\n self.redraw(connection.sourceId);\n if (connection.targetId !== connection.sourceId) {\n self.redraw(connection.targetId);\n }\n }\n };\n this.addEndpoint = function (endpoint, elementId) {\n _ju.addToList(_amEndpoints, elementId, endpoint);\n };\n this.changeId = function (oldId, newId) {\n connectionsByElementId[newId] = connectionsByElementId[oldId];\n _amEndpoints[newId] = _amEndpoints[oldId];\n delete connectionsByElementId[oldId];\n delete _amEndpoints[oldId];\n };\n this.getConnectionsFor = function (elementId) {\n return connectionsByElementId[elementId] || [];\n };\n this.getEndpointsFor = function (elementId) {\n return _amEndpoints[elementId] || [];\n };\n this.deleteEndpoint = function (endpoint) {\n _ju.removeWithFunction(_amEndpoints[endpoint.elementId], function (e) {\n return e.id === endpoint.id;\n });\n removeEndpointFromAnchorLists(endpoint);\n };\n this.elementRemoved = function (elementId) {\n delete floatingConnections[elementId];\n delete _amEndpoints[elementId];\n _amEndpoints[elementId] = [];\n };\n // updates the given anchor list by either updating an existing anchor's info, or adding it. this function\n // also removes the anchor from its previous list, if the edge it is on has changed.\n // all connections found along the way (those that are connected to one of the faces this function\n // operates on) are added to the connsToPaint list, as are their endpoints. in this way we know to repaint\n // them wthout having to calculate anything else about them.\n var _updateAnchorList = function (lists, theta, order, conn, aBoolean, otherElId, idx, reverse, edgeId, elId, connsToPaint, endpointsToPaint) {\n // first try to find the exact match, but keep track of the first index of a matching element id along the way.s\n var exactIdx = -1,\n firstMatchingElIdx = -1,\n endpoint = conn.endpoints[idx],\n endpointId = endpoint.id,\n oIdx = [1, 0][idx],\n values = [\n [ theta, order ],\n conn,\n aBoolean,\n otherElId,\n endpointId\n ],\n listToAddTo = lists[edgeId],\n listToRemoveFrom = endpoint._continuousAnchorEdge ? lists[endpoint._continuousAnchorEdge] : null,\n i,\n candidate;\n if (listToRemoveFrom) {\n var rIdx = _ju.findWithFunction(listToRemoveFrom, function (e) {\n return e[4] === endpointId;\n });\n if (rIdx !== -1) {\n listToRemoveFrom.splice(rIdx, 1);\n // get all connections from this list\n for (i = 0; i < listToRemoveFrom.length; i++) {\n candidate = listToRemoveFrom[i][1];\n _ju.addWithFunction(connsToPaint, candidate, function (c) {\n return c.id === candidate.id;\n });\n _ju.addWithFunction(endpointsToPaint, listToRemoveFrom[i][1].endpoints[idx], function (e) {\n return e.id === candidate.endpoints[idx].id;\n });\n _ju.addWithFunction(endpointsToPaint, listToRemoveFrom[i][1].endpoints[oIdx], function (e) {\n return e.id === candidate.endpoints[oIdx].id;\n });\n }\n }\n }\n for (i = 0; i < listToAddTo.length; i++) {\n candidate = listToAddTo[i][1];\n if (params.idx === 1 && listToAddTo[i][3] === otherElId && firstMatchingElIdx === -1) {\n firstMatchingElIdx = i;\n }\n _ju.addWithFunction(connsToPaint, candidate, function (c) {\n return c.id === candidate.id;\n });\n _ju.addWithFunction(endpointsToPaint, listToAddTo[i][1].endpoints[idx], function (e) {\n return e.id === candidate.endpoints[idx].id;\n });\n _ju.addWithFunction(endpointsToPaint, listToAddTo[i][1].endpoints[oIdx], function (e) {\n return e.id === candidate.endpoints[oIdx].id;\n });\n }\n if (exactIdx !== -1) {\n listToAddTo[exactIdx] = values;\n }\n else {\n var insertIdx = reverse ? firstMatchingElIdx !== -1 ? firstMatchingElIdx : 0 : listToAddTo.length; // of course we will get this from having looked through the array shortly.\n listToAddTo.splice(insertIdx, 0, values);\n }\n // store this for next time.\n endpoint._continuousAnchorEdge = edgeId;\n };\n //\n // Notification that the connection given has changed source/target from the originalId to the newId.\n //\n // For a change of source this involves:\n // 1. removing the connection from the list of connections stored for the originalId\n // 2. updating the source information for the target of the connection\n // 3. re-registering the connection in connectionsByElementId with the newId\n //\n // For a change of target this means find the entry in an endpoint's list for this connection and update its target endpoint\n // with the current target in the connection.\n //\n this.sourceOrTargetChanged = function (originalId, newId, connection, newElement, anchorIndex) {\n if (anchorIndex === 0) {\n if (originalId !== newId) {\n connection.sourceId = newId;\n connection.source = newElement;\n // remove the entry that points from the old source to the target\n _ju.removeWithFunction(connectionsByElementId[originalId], function (info) {\n return info[0].id === connection.id;\n });\n // find entry for target and update it\n var tIdx = _ju.findWithFunction(connectionsByElementId[connection.targetId], function (i) {\n return i[0].id === connection.id;\n });\n if (tIdx > -1) {\n connectionsByElementId[connection.targetId][tIdx][0] = connection;\n connectionsByElementId[connection.targetId][tIdx][1] = connection.endpoints[0];\n connectionsByElementId[connection.targetId][tIdx][2] = connection.endpoints[0].anchor.constructor === _jp.DynamicAnchor;\n }\n // add entry for new source\n _ju.addToList(connectionsByElementId, newId, [connection, connection.endpoints[1], connection.endpoints[1].anchor.constructor === _jp.DynamicAnchor]);\n // TODO SP not final on this yet. when a user drags an existing connection and it turns into a self\n // loop, then this code hides the target endpoint (by removing it from the DOM) But I think this should\n // occur only if the anchor is Continuous\n if (connection.endpoints[1].anchor.isContinuous) {\n if (connection.source === connection.target) {\n connection._jsPlumb.instance.removeElement(connection.endpoints[1].canvas);\n } else {\n if (connection.endpoints[1].canvas.parentNode == null) {\n connection._jsPlumb.instance.appendElement(connection.endpoints[1].canvas);\n }\n }\n }\n connection.updateConnectedClass();\n }\n } else if (anchorIndex === 1) {\n var sourceElId = connection.endpoints[0].elementId;\n connection.target = newElement;\n connection.targetId = newId;\n var sIndex = _ju.findWithFunction(connectionsByElementId[sourceElId], function (i) {\n return i[0].id === connection.id;\n }),\n tIndex = _ju.findWithFunction(connectionsByElementId[originalId], function (i) {\n return i[0].id === connection.id;\n });\n // update or add data for source\n if (sIndex !== -1) {\n connectionsByElementId[sourceElId][sIndex][0] = connection;\n connectionsByElementId[sourceElId][sIndex][1] = connection.endpoints[1];\n connectionsByElementId[sourceElId][sIndex][2] = connection.endpoints[1].anchor.constructor === _jp.DynamicAnchor;\n }\n // remove entry for previous target (if there)\n if (tIndex > -1) {\n connectionsByElementId[originalId].splice(tIndex, 1);\n // add entry for new target\n _ju.addToList(connectionsByElementId, newId, [connection, connection.endpoints[0], connection.endpoints[0].anchor.constructor === _jp.DynamicAnchor]);\n }\n connection.updateConnectedClass();\n }\n };\n //\n // moves the given endpoint from `currentId` to `element`.\n // This involves:\n //\n // 1. changing the key in _amEndpoints under which the endpoint is stored\n // 2. changing the source or target values in all of the endpoint's connections\n // 3. changing the array in connectionsByElementId in which the endpoint's connections\n // are stored (done by either sourceChanged or updateOtherEndpoint)\n //\n this.rehomeEndpoint = function (ep, currentId, element) {\n var eps = _amEndpoints[currentId] || [],\n elementId = jsPlumbInstance.getId(element);\n if (elementId !== currentId) {\n var idx = eps.indexOf(ep);\n if (idx > -1) {\n var _ep = eps.splice(idx, 1)[0];\n self.add(_ep, elementId);\n }\n }\n for (var i = 0; i < ep.connections.length; i++) {\n if (ep.connections[i].sourceId === currentId) {\n self.sourceOrTargetChanged(currentId, ep.elementId, ep.connections[i], ep.element, 0);\n }\n else if (ep.connections[i].targetId === currentId) {\n self.sourceOrTargetChanged(currentId, ep.elementId, ep.connections[i], ep.element, 1);\n }\n }\n };\n this.redraw = function (elementId, ui, timestamp, offsetToUI, clearEdits, doNotRecalcEndpoint) {\n var connectionsToPaint = [],\n endpointsToPaint = [],\n anchorsToUpdate = [];\n if (!jsPlumbInstance.isSuspendDrawing()) {\n // get all the endpoints for this element\n var ep = _amEndpoints[elementId] || [],\n endpointConnections = connectionsByElementId[elementId] || [];\n timestamp = timestamp || jsPlumbUtil.uuid();\n // offsetToUI are values that would have been calculated in the dragManager when registering\n // an endpoint for an element that had a parent (somewhere in the hierarchy) that had been\n // registered as draggable.\n offsetToUI = offsetToUI || {left: 0, top: 0};\n if (ui) {\n ui = {\n left: ui.left + offsetToUI.left,\n top: ui.top + offsetToUI.top\n };\n }\n // valid for one paint cycle.\n var myOffset = jsPlumbInstance.updateOffset({ elId: elementId, offset: ui, recalc: false, timestamp: timestamp }),\n orientationCache = {};\n // actually, first we should compute the orientation of this element to all other elements to which\n // this element is connected with a continuous anchor (whether both ends of the connection have\n // a continuous anchor or just one)\n for (var i = 0; i < endpointConnections.length; i++) {\n var conn = endpointConnections[i][0],\n sourceId = conn.sourceId,\n targetId = conn.targetId,\n sourceContinuous = conn.endpoints[0].anchor.isContinuous,\n targetContinuous = conn.endpoints[1].anchor.isContinuous;\n if (sourceContinuous || targetContinuous) {\n var oKey = sourceId + \"_\" + targetId,\n o = orientationCache[oKey],\n oIdx = conn.sourceId === elementId ? 1 : 0,\n targetRotation = jsPlumbInstance.getRotation(targetId),\n sourceRotation = jsPlumbInstance.getRotation(sourceId);\n if (sourceContinuous && !anchorLists[sourceId]) {\n anchorLists[sourceId] = { top: [], right: [], bottom: [], left: [] };\n }\n if (targetContinuous && !anchorLists[targetId]) {\n anchorLists[targetId] = { top: [], right: [], bottom: [], left: [] };\n }\n if (elementId !== targetId) {\n jsPlumbInstance.updateOffset({ elId: targetId, timestamp: timestamp });\n }\n if (elementId !== sourceId) {\n jsPlumbInstance.updateOffset({ elId: sourceId, timestamp: timestamp });\n }\n var td = jsPlumbInstance.getCachedData(targetId),\n sd = jsPlumbInstance.getCachedData(sourceId);\n if (targetId === sourceId && (sourceContinuous || targetContinuous)) {\n // here we may want to improve this by somehow determining the face we'd like\n // to put the connector on. ideally, when drawing, the face should be calculated\n // by determining which face is closest to the point at which the mouse button\n // was released. for now, we're putting it on the top face.\n _updateAnchorList( anchorLists[sourceId], -Math.PI / 2, 0, conn, false, targetId, 0, false, \"top\", sourceId, connectionsToPaint, endpointsToPaint);\n _updateAnchorList( anchorLists[targetId], -Math.PI / 2, 0, conn, false, sourceId, 1, false, \"top\", targetId, connectionsToPaint, endpointsToPaint);\n }\n else {\n if (!o) {\n o = this.calculateOrientation(sourceId, targetId, sd.o, td.o, conn.endpoints[0].anchor, conn.endpoints[1].anchor, conn, sourceRotation, targetRotation);\n orientationCache[oKey] = o;\n // this would be a performance enhancement, but the computed angles need to be clamped to\n //the (-PI/2 -> PI/2) range in order for the sorting to work properly.\n /* orientationCache[oKey2] = {\n orientation:o.orientation,\n a:[o.a[1], o.a[0]],\n theta:o.theta + Math.PI,\n theta2:o.theta2 + Math.PI\n };*/\n }\n if (sourceContinuous) {\n _updateAnchorList(anchorLists[sourceId], o.theta, 0, conn, false, targetId, 0, false, o.a[0], sourceId, connectionsToPaint, endpointsToPaint);\n }\n if (targetContinuous) {\n _updateAnchorList(anchorLists[targetId], o.theta2, -1, conn, true, sourceId, 1, true, o.a[1], targetId, connectionsToPaint, endpointsToPaint);\n }\n }\n if (sourceContinuous) {\n _ju.addWithFunction(anchorsToUpdate, sourceId, function (a) {\n return a === sourceId;\n });\n }\n if (targetContinuous) {\n _ju.addWithFunction(anchorsToUpdate, targetId, function (a) {\n return a === targetId;\n });\n }\n _ju.addWithFunction(connectionsToPaint, conn, function (c) {\n return c.id === conn.id;\n });\n if ((sourceContinuous && oIdx === 0) || (targetContinuous && oIdx === 1)) {\n _ju.addWithFunction(endpointsToPaint, conn.endpoints[oIdx], function (e) {\n return e.id === conn.endpoints[oIdx].id;\n });\n }\n }\n }\n // place Endpoints whose anchors are continuous but have no Connections\n for (i = 0; i < ep.length; i++) {\n if (ep[i].connections.length === 0 && ep[i].anchor.isContinuous) {\n if (!anchorLists[elementId]) {\n anchorLists[elementId] = { top: [], right: [], bottom: [], left: [] };\n }\n _updateAnchorList(anchorLists[elementId], -Math.PI / 2, 0, {endpoints: [ep[i], ep[i]], paint: function () {\n }}, false, elementId, 0, false, ep[i].anchor.getDefaultFace(), elementId, connectionsToPaint, endpointsToPaint);\n _ju.addWithFunction(anchorsToUpdate, elementId, function (a) {\n return a === elementId;\n });\n }\n }\n // now place all the continuous anchors we need to;\n for (i = 0; i < anchorsToUpdate.length; i++) {\n placeAnchors(anchorsToUpdate[i], anchorLists[anchorsToUpdate[i]]);\n }\n // now that continuous anchors have been placed, paint all the endpoints for this element\n for (i = 0; i < ep.length; i++) {\n ep[i].paint({ timestamp: timestamp, offset: myOffset, dimensions: myOffset.s, recalc: doNotRecalcEndpoint !== true });\n }\n // ... and any other endpoints we came across as a result of the continuous anchors.\n for (i = 0; i < endpointsToPaint.length; i++) {\n var cd = jsPlumbInstance.getCachedData(endpointsToPaint[i].elementId);\n //endpointsToPaint[i].paint({ timestamp: timestamp, offset: cd, dimensions: cd.s });\n endpointsToPaint[i].paint({ timestamp: null, offset: cd, dimensions: cd.s });\n }\n // paint all the standard and \"dynamic connections\", which are connections whose other anchor is\n // static and therefore does need to be recomputed; we make sure that happens only one time.\n // TODO we could have compiled a list of these in the first pass through connections; might save some time.\n for (i = 0; i < endpointConnections.length; i++) {\n var otherEndpoint = endpointConnections[i][1];\n if (otherEndpoint.anchor.constructor === _jp.DynamicAnchor) {\n otherEndpoint.paint({ elementWithPrecedence: elementId, timestamp: timestamp });\n _ju.addWithFunction(connectionsToPaint, endpointConnections[i][0], function (c) {\n return c.id === endpointConnections[i][0].id;\n });\n // all the connections for the other endpoint now need to be repainted\n for (var k = 0; k < otherEndpoint.connections.length; k++) {\n if (otherEndpoint.connections[k] !== endpointConnections[i][0]) {\n _ju.addWithFunction(connectionsToPaint, otherEndpoint.connections[k], function (c) {\n return c.id === otherEndpoint.connections[k].id;\n });\n }\n }\n } else {\n _ju.addWithFunction(connectionsToPaint, endpointConnections[i][0], function (c) {\n return c.id === endpointConnections[i][0].id;\n });\n }\n }\n // paint current floating connection for this element, if there is one.\n var fc = floatingConnections[elementId];\n if (fc) {\n fc.paint({timestamp: timestamp, recalc: false, elId: elementId});\n }\n // paint all the connections\n for (i = 0; i < connectionsToPaint.length; i++) {\n connectionsToPaint[i].paint({elId: elementId, timestamp: null, recalc: false, clearEdits: clearEdits});\n }\n }\n return {\n c:connectionsToPaint,\n e:endpointsToPaint\n };\n };\n var ContinuousAnchor = function (anchorParams) {\n _ju.EventGenerator.apply(this);\n this.type = \"Continuous\";\n this.isDynamic = true;\n this.isContinuous = true;\n var faces = anchorParams.faces || [\"top\", \"right\", \"bottom\", \"left\"],\n clockwise = !(anchorParams.clockwise === false),\n availableFaces = { },\n opposites = { \"top\": \"bottom\", \"right\": \"left\", \"left\": \"right\", \"bottom\": \"top\" },\n clockwiseOptions = { \"top\": \"right\", \"right\": \"bottom\", \"left\": \"top\", \"bottom\": \"left\" },\n antiClockwiseOptions = { \"top\": \"left\", \"right\": \"top\", \"left\": \"bottom\", \"bottom\": \"right\" },\n secondBest = clockwise ? clockwiseOptions : antiClockwiseOptions,\n lastChoice = clockwise ? antiClockwiseOptions : clockwiseOptions,\n cssClass = anchorParams.cssClass || \"\",\n _currentFace = null, _lockedFace = null, X_AXIS_FACES = [\"left\", \"right\"], Y_AXIS_FACES = [\"top\", \"bottom\"],\n _lockedAxis = null;\n for (var i = 0; i < faces.length; i++) {\n availableFaces[faces[i]] = true;\n }\n this.getDefaultFace = function () {\n return faces.length === 0 ? \"top\" : faces[0];\n };\n this.isRelocatable = function() { return true; };\n this.isSnapOnRelocate = function() { return true; };\n // if the given edge is supported, returns it. otherwise looks for a substitute that _is_\n // supported. if none supported we also return the request edge.\n this.verifyEdge = function (edge) {\n if (availableFaces[edge]) {\n return edge;\n }\n else if (availableFaces[opposites[edge]]) {\n return opposites[edge];\n }\n else if (availableFaces[secondBest[edge]]) {\n return secondBest[edge];\n }\n else if (availableFaces[lastChoice[edge]]) {\n return lastChoice[edge];\n }\n return edge; // we have to give them something.\n };\n this.isEdgeSupported = function (edge) {\n return _lockedAxis == null ?\n (_lockedFace == null ? availableFaces[edge] === true : _lockedFace === edge)\n : _lockedAxis.indexOf(edge) !== -1;\n };\n this.setCurrentFace = function(face, overrideLock) {\n _currentFace = face;\n // if currently locked, and the user wants to override, do that.\n if (overrideLock && _lockedFace != null) {\n _lockedFace = _currentFace;\n }\n };\n this.getCurrentFace = function() { return _currentFace; };\n this.getSupportedFaces = function() {\n var af = [];\n for (var k in availableFaces) {\n if (availableFaces[k]) {\n af.push(k);\n }\n }\n return af;\n };\n this.lock = function() {\n _lockedFace = _currentFace;\n };\n this.unlock = function() {\n _lockedFace = null;\n };\n this.isLocked = function() {\n return _lockedFace != null;\n };\n this.lockCurrentAxis = function() {\n if (_currentFace != null) {\n _lockedAxis = (_currentFace === \"left\" || _currentFace === \"right\") ? X_AXIS_FACES : Y_AXIS_FACES;\n }\n };\n this.unlockCurrentAxis = function() {\n _lockedAxis = null;\n };\n this.compute = function (params) {\n return continuousAnchorLocations[params.element.id] || [0, 0];\n };\n this.getCurrentLocation = function (params) {\n return continuousAnchorLocations[params.element.id] || [0, 0];\n };\n this.getOrientation = function (endpoint) {\n return continuousAnchorOrientations[endpoint.id] || [0, 0];\n };\n this.getCssClass = function () {\n return cssClass;\n };\n };\n // continuous anchors\n jsPlumbInstance.continuousAnchorFactory = {\n get: function (params) {\n return new ContinuousAnchor(params);\n },\n clear: function (elementId) {\n delete continuousAnchorLocations[elementId];\n }\n };\n };\n _jp.AnchorManager.prototype.calculateOrientation = function (sourceId,\n targetId,\n sd,\n td,\n sourceAnchor,\n targetAnchor,\n connection,\n sourceRotation,\n targetRotation) {\n var Orientation = { HORIZONTAL: \"horizontal\", VERTICAL: \"vertical\", DIAGONAL: \"diagonal\", IDENTITY: \"identity\" },\n axes = [\"left\", \"top\", \"right\", \"bottom\"];\n if (sourceId === targetId) {\n return {\n orientation: Orientation.IDENTITY,\n a: [\"top\", \"top\"]\n };\n }\n // since we only support rotation around the center of an element these two lines don't have to take rotation\n // into account.\n var theta = Math.atan2((td.centery - sd.centery), (td.centerx - sd.centerx)),\n theta2 = Math.atan2((sd.centery - td.centery), (sd.centerx - td.centerx));\n// --------------------------------------------------------------------------------------\n // improved face calculation. get midpoints of each face for source and target, then put in an array with all combinations of\n // source/target faces. sort this array by distance between midpoints. the entry at index 0 is our preferred option. we can\n // go through the array one by one until we find an entry in which each requested face is supported.\n var candidates = [], midpoints = { };\n (function (types, dim) {\n for (var i = 0; i < types.length; i++) {\n midpoints[types[i]] = {\n \"left\": [ dim[i][0].left, dim[i][0].centery ],\n \"right\": [ dim[i][0].right, dim[i][0].centery ],\n \"top\": [ dim[i][0].centerx, dim[i][0].top ],\n \"bottom\": [ dim[i][0].centerx , dim[i][0].bottom]\n };\n if (dim[i][1] !== 0) {\n for (var axis in midpoints[types[i]]) {\n midpoints[types[i]][axis] = jsPlumbUtil.rotatePoint(midpoints[types[i]][axis], [dim[i][0].centerx, dim[i][0].centery], dim[i][1]);\n }\n }\n }\n })([ \"source\", \"target\" ], [ [sd, sourceRotation], [td, targetRotation] ]);\n for (var sf = 0; sf < axes.length; sf++) {\n for (var tf = 0; tf < axes.length; tf++) {\n candidates.push({\n source: axes[sf],\n target: axes[tf],\n dist: Biltong.lineLength(midpoints.source[axes[sf]], midpoints.target[axes[tf]])\n });\n }\n }\n candidates.sort(function (a, b) {\n return a.dist < b.dist ? -1 : a.dist > b.dist ? 1 : 0;\n });\n // now go through this list and try to get an entry that satisfies both (there will be one, unless one of the anchors\n // declares no available faces)\n var sourceEdge = candidates[0].source, targetEdge = candidates[0].target;\n for (var i = 0; i < candidates.length; i++) {\n if (sourceAnchor.isContinuous && sourceAnchor.locked) {\n sourceEdge = sourceAnchor.getCurrentFace();\n }\n else if (!sourceAnchor.isContinuous || sourceAnchor.isEdgeSupported(candidates[i].source)) {\n sourceEdge = candidates[i].source;\n }\n else {\n sourceEdge = null;\n }\n if (targetAnchor.isContinuous && targetAnchor.locked) {\n targetEdge = targetAnchor.getCurrentFace();\n }\n else if (!targetAnchor.isContinuous || targetAnchor.isEdgeSupported(candidates[i].target)) {\n targetEdge = candidates[i].target;\n }\n else {\n targetEdge = null;\n }\n if (sourceEdge != null && targetEdge != null) {\n break;\n }\n }\n if (sourceAnchor.isContinuous) {\n sourceAnchor.setCurrentFace(sourceEdge);\n }\n if (targetAnchor.isContinuous) {\n targetAnchor.setCurrentFace(targetEdge);\n }\n// --------------------------------------------------------------------------------------\n return {\n a: [ sourceEdge, targetEdge ],\n theta: theta,\n theta2: theta2\n };\n };\n /**\n * Anchors model a position on some element at which an Endpoint may be located. They began as a first class citizen of jsPlumb, ie. a user\n * was required to create these themselves, but over time this has been replaced by the concept of referring to them either by name (eg. \"TopMiddle\"),\n * or by an array describing their coordinates (eg. [ 0, 0.5, 0, -1 ], which is the same as \"TopMiddle\"). jsPlumb now handles all of the\n * creation of Anchors without user intervention.\n */\n _jp.Anchor = function (params) {\n this.x = params.x || 0;\n this.y = params.y || 0;\n this.elementId = params.elementId;\n this.cssClass = params.cssClass || \"\";\n this.orientation = params.orientation || [ 0, 0 ];\n this.lastReturnValue = null;\n this.offsets = params.offsets || [ 0, 0 ];\n this.timestamp = null;\n this._unrotatedOrientation = [\n this.orientation[0],\n this.orientation[1]\n ];\n this.relocatable = params.relocatable !== false;\n this.snapOnRelocate = params.snapOnRelocate !== false;\n this.locked = false;\n _ju.EventGenerator.apply(this);\n this.compute = function (params) {\n var xy = params.xy, wh = params.wh, timestamp = params.timestamp;\n if (timestamp && timestamp === this.timestamp) {\n return this.lastReturnValue;\n }\n // unrotated position\n var candidate = [ xy[0] + (this.x * wh[0]) + this.offsets[0], xy[1] + (this.y * wh[1]) + this.offsets[1], this.x, this.y ];\n // if rotation set, adjust position.\n var rotation = params.rotation;\n if (rotation != null && rotation !== 0) {\n var c2 = jsPlumbUtil.rotatePoint(candidate, [xy[0] + (wh[0] / 2), xy[1] + (wh[1] / 2) ], rotation);\n // rotate the orientation values too. for rotations that are not multiples of 90 degrees, this will result in values that are not in the set\n // [0, -1, 1 ], and in that case the connector paint may not be perfect. need some evidence from real world usage.\n this.orientation[0] = Math.round((this._unrotatedOrientation[0] * c2[2]) - (this._unrotatedOrientation[1] * c2[3]));\n this.orientation[1] = Math.round((this._unrotatedOrientation[1] * c2[2]) + (this._unrotatedOrientation[0] * c2[3]));\n this.lastReturnValue = [c2[0], c2[1], this.x, this.y];\n } else {\n // if rotation not set (or 0), ensure orientation is original value\n this.orientation[0] = this._unrotatedOrientation[0];\n this.orientation[1] = this._unrotatedOrientation[1];\n this.lastReturnValue = candidate;\n }\n this.timestamp = timestamp;\n return this.lastReturnValue;\n };\n this.getCurrentLocation = function (params) {\n params = params || {};\n return (this.lastReturnValue == null || (params.timestamp != null && this.timestamp !== params.timestamp)) ? this.compute(params) : this.lastReturnValue;\n };\n this.setPosition = function(x, y, ox, oy, overrideLock) {\n if (!this.locked || overrideLock) {\n this.x = x;\n this.y = y;\n this.orientation = [ ox, oy ];\n this.lastReturnValue = null;\n }\n };\n };\n _ju.extend(_jp.Anchor, _ju.EventGenerator, {\n equals: function (anchor) {\n if (!anchor) {\n return false;\n }\n var ao = anchor.getOrientation(),\n o = this.getOrientation();\n return this.x === anchor.x && this.y === anchor.y && this.offsets[0] === anchor.offsets[0] && this.offsets[1] === anchor.offsets[1] && o[0] === ao[0] && o[1] === ao[1];\n },\n getOrientation: function () {\n return this.orientation;\n },\n getCssClass: function () {\n return this.cssClass;\n }\n });\n /**\n * An Anchor that floats. its orientation is computed dynamically from\n * its position relative to the anchor it is floating relative to. It is used when creating\n * a connection through drag and drop.\n *\n * TODO FloatingAnchor could totally be refactored to extend Anchor just slightly.\n */\n _jp.FloatingAnchor = function (params) {\n _jp.Anchor.apply(this, arguments);\n // this is the anchor that this floating anchor is referenced to for\n // purposes of calculating the orientation.\n var ref = params.reference,\n // the canvas this refers to.\n refCanvas = params.referenceCanvas,\n size = _jp.getSize(refCanvas),\n // these are used to store the current relative position of our\n // anchor wrt the reference anchor. they only indicate\n // direction, so have a value of 1 or -1 (or, very rarely, 0). these\n // values are written by the compute method, and read\n // by the getOrientation method.\n xDir = 0, yDir = 0,\n // temporary member used to store an orientation when the floating\n // anchor is hovering over another anchor.\n orientation = null,\n _lastResult = null;\n // clear from parent. we want floating anchor orientation to always be computed.\n this.orientation = null;\n // set these to 0 each; they are used by certain types of connectors in the loopback case,\n // when the connector is trying to clear the element it is on. but for floating anchor it's not\n // very important.\n this.x = 0;\n this.y = 0;\n this.isFloating = true;\n this.compute = function (params) {\n var xy = params.xy,\n result = [ xy[0] + (size[0] / 2), xy[1] + (size[1] / 2) ]; // return origin of the element. we may wish to improve this so that any object can be the drag proxy.\n _lastResult = result;\n return result;\n };\n this.getOrientation = function (_endpoint) {\n if (orientation) {\n return orientation;\n }\n else {\n var o = ref.getOrientation(_endpoint);\n // here we take into account the orientation of the other\n // anchor: if it declares zero for some direction, we declare zero too. this might not be the most awesome. perhaps we can come\n // up with a better way. it's just so that the line we draw looks like it makes sense. maybe this wont make sense.\n return [ Math.abs(o[0]) * xDir * -1,\n Math.abs(o[1]) * yDir * -1 ];\n }\n };\n /**\n * notification the endpoint associated with this anchor is hovering\n * over another anchor; we want to assume that anchor's orientation\n * for the duration of the hover.\n */\n this.over = function (anchor, endpoint) {\n orientation = anchor.getOrientation(endpoint);\n };\n /**\n * notification the endpoint associated with this anchor is no\n * longer hovering over another anchor; we should resume calculating\n * orientation as we normally do.\n */\n this.out = function () {\n orientation = null;\n };\n this.getCurrentLocation = function (params) {\n return _lastResult == null ? this.compute(params) : _lastResult;\n };\n };\n _ju.extend(_jp.FloatingAnchor, _jp.Anchor);\n var _convertAnchor = function (anchor, jsPlumbInstance, elementId) {\n return anchor.constructor === _jp.Anchor ? anchor : jsPlumbInstance.makeAnchor(anchor, elementId, jsPlumbInstance);\n };\n /* \n * A DynamicAnchor is an Anchor that contains a list of other Anchors, which it cycles\n * through at compute time to find the one that is located closest to\n * the center of the target element, and returns that Anchor's compute\n * method result. this causes endpoints to follow each other with\n * respect to the orientation of their target elements, which is a useful\n * feature for some applications.\n * \n */\n _jp.DynamicAnchor = function (params) {\n _jp.Anchor.apply(this, arguments);\n this.isDynamic = true;\n this.anchors = [];\n this.elementId = params.elementId;\n this.jsPlumbInstance = params.jsPlumbInstance;\n for (var i = 0; i < params.anchors.length; i++) {\n this.anchors[i] = _convertAnchor(params.anchors[i], this.jsPlumbInstance, this.elementId);\n }\n this.getAnchors = function () {\n return this.anchors;\n };\n var _curAnchor = this.anchors.length > 0 ? this.anchors[0] : null,\n _lastAnchor = _curAnchor,\n self = this,\n // helper method to calculate the distance between the centers of the two elements.\n _distance = function (anchor, cx, cy, xy, wh, r, tr) {\n var ax = xy[0] + (anchor.x * wh[0]), ay = xy[1] + (anchor.y * wh[1]),\n acx = xy[0] + (wh[0] / 2), acy = xy[1] + (wh[1] / 2);\n if(r != null && r !== 0) {\n var rotated = jsPlumbUtil.rotatePoint([ax,ay], [acx, acy], r);\n ax = rotated[0];\n ay = rotated[1];\n }\n return (Math.sqrt(Math.pow(cx - ax, 2) + Math.pow(cy - ay, 2)) +\n Math.sqrt(Math.pow(acx - ax, 2) + Math.pow(acy - ay, 2)));\n },\n // default method uses distance between element centers. you can provide your own method in the dynamic anchor\n // constructor (and also to jsPlumb.makeDynamicAnchor). the arguments to it are:\n // xy - xy loc of the anchor's element\n // wh - anchor's element's dimensions\n // txy - xy loc of the element of the other anchor in the connection\n // twh - dimensions of the element of the other anchor in the connection.\n // r - the rotation of the anchor's element\n // tr - the rotation of the target anchor's element. currently unused; a placeholder for possible future refactoring.\n // anchors - the list of selectable anchors\n _anchorSelector = params.selector || function (xy, wh, txy, twh, r, tr, anchors) {\n var cx = txy[0] + (twh[0] / 2), cy = txy[1] + (twh[1] / 2);\n var minIdx = -1, minDist = Infinity;\n for (var i = 0; i < anchors.length; i++) {\n var d = _distance(anchors[i], cx, cy, xy, wh, r, tr);\n if (d < minDist) {\n minIdx = i + 0;\n minDist = d;\n }\n }\n return anchors[minIdx];\n };\n this.compute = function (params) {\n var xy = params.xy, wh = params.wh, txy = params.txy, twh = params.twh, r = params.rotation, tr = params.tRotation;\n this.timestamp = params.timestamp;\n // if anchor is locked or an opposite element was not given, we\n // maintain our state. anchor will be locked\n // if it is the source of a drag and drop.\n if (this.locked || txy == null || twh == null) {\n this.lastReturnValue = _curAnchor.compute(params);\n return this.lastReturnValue;\n }\n else {\n params.timestamp = null; // otherwise clear this, i think. we want the anchor to compute.\n }\n _curAnchor = _anchorSelector(xy, wh, txy, twh, r, tr, this.anchors);\n this.x = _curAnchor.x;\n this.y = _curAnchor.y;\n if (_curAnchor !== _lastAnchor) {\n this.fire(\"anchorChanged\", _curAnchor);\n }\n _lastAnchor = _curAnchor;\n this.lastReturnValue = _curAnchor.compute(params);\n return this.lastReturnValue;\n };\n this.getCurrentLocation = function (params) {\n return _curAnchor != null ? _curAnchor.getCurrentLocation(params) : null;\n };\n this.getOrientation = function (_endpoint) {\n return _curAnchor != null ? _curAnchor.getOrientation(_endpoint) : [ 0, 0 ];\n };\n this.over = function (anchor, endpoint) {\n if (_curAnchor != null) {\n _curAnchor.over(anchor, endpoint);\n }\n };\n this.out = function () {\n if (_curAnchor != null) {\n _curAnchor.out();\n }\n };\n this.setAnchor = function(a) {\n _curAnchor = a;\n };\n this.getCssClass = function () {\n return (_curAnchor && _curAnchor.getCssClass()) || \"\";\n };\n /**\n * Attempt to match an anchor with the given coordinates and then set it.\n * @param coords\n * @returns true if matching anchor found, false otherwise.\n */\n this.setAnchorCoordinates = function(coords) {\n var idx = jsPlumbUtil.findWithFunction(this.anchors, function(a) {\n return a.x === coords[0] && a.y === coords[1];\n });\n if (idx !== -1) {\n this.setAnchor(this.anchors[idx]);\n return true;\n } else {\n return false;\n }\n };\n };\n _ju.extend(_jp.DynamicAnchor, _jp.Anchor);\n// -------- basic anchors ------------------ \n var _curryAnchor = function (x, y, ox, oy, type, fnInit) {\n _jp.Anchors[type] = function (params) {\n var a = params.jsPlumbInstance.makeAnchor([ x, y, ox, oy, 0, 0 ], params.elementId, params.jsPlumbInstance);\n a.type = type;\n if (fnInit) {\n fnInit(a, params);\n }\n return a;\n };\n };\n _curryAnchor(0.5, 0, 0, -1, \"TopCenter\");\n _curryAnchor(0.5, 1, 0, 1, \"BottomCenter\");\n _curryAnchor(0, 0.5, -1, 0, \"LeftMiddle\");\n _curryAnchor(1, 0.5, 1, 0, \"RightMiddle\");\n _curryAnchor(0.5, 0, 0, -1, \"Top\");\n _curryAnchor(0.5, 1, 0, 1, \"Bottom\");\n _curryAnchor(0, 0.5, -1, 0, \"Left\");\n _curryAnchor(1, 0.5, 1, 0, \"Right\");\n _curryAnchor(0.5, 0.5, 0, 0, \"Center\");\n _curryAnchor(1, 0, 0, -1, \"TopRight\");\n _curryAnchor(1, 1, 0, 1, \"BottomRight\");\n _curryAnchor(0, 0, 0, -1, \"TopLeft\");\n _curryAnchor(0, 1, 0, 1, \"BottomLeft\");\n// ------- dynamic anchors ------------------- \n // default dynamic anchors chooses from Top, Right, Bottom, Left\n _jp.Defaults.DynamicAnchors = function (params) {\n return params.jsPlumbInstance.makeAnchors([\"TopCenter\", \"RightMiddle\", \"BottomCenter\", \"LeftMiddle\"], params.elementId, params.jsPlumbInstance);\n };\n // default dynamic anchors bound to name 'AutoDefault'\n _jp.Anchors.AutoDefault = function (params) {\n var a = params.jsPlumbInstance.makeDynamicAnchor(_jp.Defaults.DynamicAnchors(params));\n a.type = \"AutoDefault\";\n return a;\n };\n// ------- continuous anchors ------------------- \n var _curryContinuousAnchor = function (type, faces) {\n _jp.Anchors[type] = function (params) {\n var a = params.jsPlumbInstance.makeAnchor([\"Continuous\", { faces: faces }], params.elementId, params.jsPlumbInstance);\n a.type = type;\n return a;\n };\n };\n _jp.Anchors.Continuous = function (params) {\n return params.jsPlumbInstance.continuousAnchorFactory.get(params);\n };\n _curryContinuousAnchor(\"ContinuousLeft\", [\"left\"]);\n _curryContinuousAnchor(\"ContinuousTop\", [\"top\"]);\n _curryContinuousAnchor(\"ContinuousBottom\", [\"bottom\"]);\n _curryContinuousAnchor(\"ContinuousRight\", [\"right\"]);\n// ------- position assign anchors ------------------- \n // this anchor type lets you assign the position at connection time.\n _curryAnchor(0, 0, 0, 0, \"Assign\", function (anchor, params) {\n // find what to use as the \"position finder\". the user may have supplied a String which represents\n // the id of a position finder in jsPlumb.AnchorPositionFinders, or the user may have supplied the\n // position finder as a function. we find out what to use and then set it on the anchor.\n var pf = params.position || \"Fixed\";\n anchor.positionFinder = pf.constructor === String ? params.jsPlumbInstance.AnchorPositionFinders[pf] : pf;\n // always set the constructor params; the position finder might need them later (the Grid one does,\n // for example)\n anchor.constructorParams = params;\n });\n // these are the default anchor positions finders, which are used by the makeTarget function. supplying\n // a position finder argument to that function allows you to specify where the resulting anchor will\n // be located\n root.jsPlumbInstance.prototype.AnchorPositionFinders = {\n \"Fixed\": function (dp, ep, es) {\n return [ (dp.left - ep.left) / es[0], (dp.top - ep.top) / es[1] ];\n },\n \"Grid\": function (dp, ep, es, params) {\n var dx = dp.left - ep.left, dy = dp.top - ep.top,\n gx = es[0] / (params.grid[0]), gy = es[1] / (params.grid[1]),\n mx = Math.floor(dx / gx), my = Math.floor(dy / gy);\n return [ ((mx * gx) + (gx / 2)) / es[0], ((my * gy) + (gy / 2)) / es[1] ];\n }\n };\n// ------- perimeter anchors ------------------- \n _jp.Anchors.Perimeter = function (params) {\n params = params || {};\n var anchorCount = params.anchorCount || 60,\n shape = params.shape;\n if (!shape) {\n throw new Error(\"no shape supplied to Perimeter Anchor type\");\n }\n var _circle = function () {\n var r = 0.5, step = Math.PI * 2 / anchorCount, current = 0, a = [];\n for (var i = 0; i < anchorCount; i++) {\n var x = r + (r * Math.sin(current)),\n y = r + (r * Math.cos(current));\n a.push([ x, y, 0, 0 ]);\n current += step;\n }\n return a;\n },\n _path = function (segments) {\n var anchorsPerFace = anchorCount / segments.length, a = [],\n _computeFace = function (x1, y1, x2, y2, fractionalLength, ox, oy) {\n anchorsPerFace = anchorCount * fractionalLength;\n var dx = (x2 - x1) / anchorsPerFace, dy = (y2 - y1) / anchorsPerFace;\n for (var i = 0; i < anchorsPerFace; i++) {\n a.push([\n x1 + (dx * i),\n y1 + (dy * i),\n ox == null ? 0 : ox,\n oy == null ? 0 : oy\n ]);\n }\n };\n for (var i = 0; i < segments.length; i++) {\n _computeFace.apply(null, segments[i]);\n }\n return a;\n },\n _shape = function (faces) {\n var s = [];\n for (var i = 0; i < faces.length; i++) {\n s.push([faces[i][0], faces[i][1], faces[i][2], faces[i][3], 1 / faces.length, faces[i][4], faces[i][5]]);\n }\n return _path(s);\n },\n _rectangle = function () {\n return _shape([\n [ 0, 0, 1, 0, 0, -1 ],\n [ 1, 0, 1, 1, 1, 0 ],\n [ 1, 1, 0, 1, 0, 1 ],\n [ 0, 1, 0, 0, -1, 0 ]\n ]);\n };\n var _shapes = {\n \"Circle\": _circle,\n \"Ellipse\": _circle,\n \"Diamond\": function () {\n return _shape([\n [ 0.5, 0, 1, 0.5 ],\n [ 1, 0.5, 0.5, 1 ],\n [ 0.5, 1, 0, 0.5 ],\n [ 0, 0.5, 0.5, 0 ]\n ]);\n },\n \"Rectangle\": _rectangle,\n \"Square\": _rectangle,\n \"Triangle\": function () {\n return _shape([\n [ 0.5, 0, 1, 1 ],\n [ 1, 1, 0, 1 ],\n [ 0, 1, 0.5, 0]\n ]);\n },\n \"Path\": function (params) {\n var points = params.points, p = [], tl = 0;\n for (var i = 0; i < points.length - 1; i++) {\n var l = Math.sqrt(Math.pow(points[i][2] - points[i][0]) + Math.pow(points[i][3] - points[i][1]));\n tl += l;\n p.push([points[i][0], points[i][1], points[i + 1][0], points[i + 1][1], l]);\n }\n for (var j = 0; j < p.length; j++) {\n p[j][4] = p[j][4] / tl;\n }\n return _path(p);\n }\n },\n _rotate = function (points, amountInDegrees) {\n var o = [], theta = amountInDegrees / 180 * Math.PI;\n for (var i = 0; i < points.length; i++) {\n var _x = points[i][0] - 0.5,\n _y = points[i][1] - 0.5;\n o.push([\n 0.5 + ((_x * Math.cos(theta)) - (_y * Math.sin(theta))),\n 0.5 + ((_x * Math.sin(theta)) + (_y * Math.cos(theta))),\n points[i][2],\n points[i][3]\n ]);\n }\n return o;\n };\n if (!_shapes[shape]) {\n throw new Error(\"Shape [\" + shape + \"] is unknown by Perimeter Anchor type\");\n }\n var da = _shapes[shape](params);\n if (params.rotation) {\n da = _rotate(da, params.rotation);\n }\n var a = params.jsPlumbInstance.makeDynamicAnchor(da);\n a.type = \"Perimeter\";\n return a;\n };\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * Default router. Defers to an AnchorManager for placement of anchors, and connector paint routines for paths.\n * Currently this is a placeholder and acts as a facade to the pre-existing anchor manager. The Toolkit edition\n * will make use of concept to provide more advanced routing.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this,\n _ju = root.jsPlumbUtil,\n _jp = root.jsPlumb;\n _jp.DefaultRouter = function(jsPlumbInstance) {\n this.jsPlumbInstance = jsPlumbInstance;\n this.anchorManager = new _jp.AnchorManager({jsPlumbInstance:jsPlumbInstance});\n this.sourceOrTargetChanged = function (originalId, newId, connection, newElement, anchorIndex) {\n this.anchorManager.sourceOrTargetChanged(originalId, newId, connection, newElement, anchorIndex);\n };\n this.reset = function() {\n this.anchorManager.reset();\n };\n this.changeId = function (oldId, newId) {\n this.anchorManager.changeId(oldId, newId);\n };\n this.elementRemoved = function (elementId) {\n this.anchorManager.elementRemoved(elementId);\n };\n this.newConnection = function (conn) {\n this.anchorManager.newConnection(conn);\n };\n this.connectionDetached = function (connInfo, doNotRedraw) {\n this.anchorManager.connectionDetached(connInfo, doNotRedraw);\n };\n this.redraw = function (elementId, ui, timestamp, offsetToUI, clearEdits, doNotRecalcEndpoint) {\n return this.anchorManager.redraw(elementId, ui, timestamp, offsetToUI, clearEdits, doNotRecalcEndpoint);\n };\n this.deleteEndpoint = function (endpoint) {\n this.anchorManager.deleteEndpoint(endpoint);\n };\n this.rehomeEndpoint = function (ep, currentId, element) {\n this.anchorManager.rehomeEndpoint(ep, currentId, element);\n };\n this.addEndpoint = function (endpoint, elementId) {\n this.anchorManager.addEndpoint(endpoint, elementId);\n };\n };\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the default Connectors, Endpoint and Overlay definitions.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n * \n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n * \n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil, _jg = root.Biltong;\n _jp.Segments = {\n /*\n * Class: AbstractSegment\n * A Connector is made up of 1..N Segments, each of which has a Type, such as 'Straight', 'Arc',\n * 'Bezier'. This is new from 1.4.2, and gives us a lot more flexibility when drawing connections: things such\n * as rounded corners for flowchart connectors, for example, or a straight line stub for Bezier connections, are\n * much easier to do now.\n *\n * A Segment is responsible for providing coordinates for painting it, and also must be able to report its length.\n * \n */\n AbstractSegment: function (params) {\n this.params = params;\n /**\n * Function: findClosestPointOnPath\n * Finds the closest point on this segment to the given [x, y],\n * returning both the x and y of the point plus its distance from\n * the supplied point, and its location along the length of the\n * path inscribed by the segment. This implementation returns\n * Infinity for distance and null values for everything else;\n * subclasses are expected to override.\n */\n this.findClosestPointOnPath = function (x, y) {\n return {\n d: Infinity,\n x: null,\n y: null,\n l: null\n };\n };\n this.getBounds = function () {\n return {\n minX: Math.min(params.x1, params.x2),\n minY: Math.min(params.y1, params.y2),\n maxX: Math.max(params.x1, params.x2),\n maxY: Math.max(params.y1, params.y2)\n };\n };\n /**\n * Computes the list of points on the segment that intersect the given line.\n * @method lineIntersection\n * @param {number} x1\n * @param {number} y1\n * @param {number} x2\n * @param {number} y2\n * @returns {Array<[number, number]>}\n */\n this.lineIntersection = function(x1, y1, x2, y2) {\n return [];\n };\n /**\n * Computes the list of points on the segment that intersect the box with the given origin and size.\n * @method boxIntersection\n * @param {number} x1\n * @param {number} y1\n * @param {number} w\n * @param {number} h\n * @returns {Array<[number, number]>}\n */\n this.boxIntersection = function(x, y, w, h) {\n var a = [];\n a.push.apply(a, this.lineIntersection(x, y, x + w, y));\n a.push.apply(a, this.lineIntersection(x + w, y, x + w, y + h));\n a.push.apply(a, this.lineIntersection(x + w, y + h, x, y + h));\n a.push.apply(a, this.lineIntersection(x, y + h, x, y));\n return a;\n };\n /**\n * Computes the list of points on the segment that intersect the given bounding box, which is an object of the form { x:.., y:.., w:.., h:.. }.\n * @method lineIntersection\n * @param {BoundingRectangle} box\n * @returns {Array<[number, number]>}\n */\n this.boundingBoxIntersection = function(box) {\n return this.boxIntersection(box.x, box.y, box.w, box.y);\n };\n },\n Straight: function (params) {\n var _super = _jp.Segments.AbstractSegment.apply(this, arguments),\n length, m, m2, x1, x2, y1, y2,\n _recalc = function () {\n length = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n m = _jg.gradient({x: x1, y: y1}, {x: x2, y: y2});\n m2 = -1 / m;\n };\n this.type = \"Straight\";\n this.getLength = function () {\n return length;\n };\n this.getGradient = function () {\n return m;\n };\n this.getCoordinates = function () {\n return { x1: x1, y1: y1, x2: x2, y2: y2 };\n };\n this.setCoordinates = function (coords) {\n x1 = coords.x1;\n y1 = coords.y1;\n x2 = coords.x2;\n y2 = coords.y2;\n _recalc();\n };\n this.setCoordinates({x1: params.x1, y1: params.y1, x2: params.x2, y2: params.y2});\n this.getBounds = function () {\n return {\n minX: Math.min(x1, x2),\n minY: Math.min(y1, y2),\n maxX: Math.max(x1, x2),\n maxY: Math.max(y1, y2)\n };\n };\n /**\n * returns the point on the segment's path that is 'location' along the length of the path, where 'location' is a decimal from\n * 0 to 1 inclusive. for the straight line segment this is simple maths.\n */\n this.pointOnPath = function (location, absolute) {\n if (location === 0 && !absolute) {\n return { x: x1, y: y1 };\n }\n else if (location === 1 && !absolute) {\n return { x: x2, y: y2 };\n }\n else {\n var l = absolute ? location > 0 ? location : length + location : location * length;\n return _jg.pointOnLine({x: x1, y: y1}, {x: x2, y: y2}, l);\n }\n };\n /**\n * returns the gradient of the segment at the given point - which for us is constant.\n */\n this.gradientAtPoint = function (_) {\n return m;\n };\n /**\n * returns the point on the segment's path that is 'distance' along the length of the path from 'location', where\n * 'location' is a decimal from 0 to 1 inclusive, and 'distance' is a number of pixels.\n * this hands off to jsPlumbUtil to do the maths, supplying two points and the distance.\n */\n this.pointAlongPathFrom = function (location, distance, absolute) {\n var p = this.pointOnPath(location, absolute),\n farAwayPoint = distance <= 0 ? {x: x1, y: y1} : {x: x2, y: y2 };\n /*\n location == 1 ? {\n x:x1 + ((x2 - x1) * 10),\n y:y1 + ((y1 - y2) * 10)\n } :\n */\n if (distance <= 0 && Math.abs(distance) > 1) {\n distance *= -1;\n }\n return _jg.pointOnLine(p, farAwayPoint, distance);\n };\n // is c between a and b?\n var within = function (a, b, c) {\n return c >= Math.min(a, b) && c <= Math.max(a, b);\n };\n // find which of a and b is closest to c\n var closest = function (a, b, c) {\n return Math.abs(c - a) < Math.abs(c - b) ? a : b;\n };\n /**\n Function: findClosestPointOnPath\n Finds the closest point on this segment to [x,y]. See\n notes on this method in AbstractSegment.\n */\n this.findClosestPointOnPath = function (x, y) {\n var out = {\n d: Infinity,\n x: null,\n y: null,\n l: null,\n x1: x1,\n x2: x2,\n y1: y1,\n y2: y2\n };\n if (m === 0) {\n out.y = y1;\n out.x = within(x1, x2, x) ? x : closest(x1, x2, x);\n }\n else if (m === Infinity || m === -Infinity) {\n out.x = x1;\n out.y = within(y1, y2, y) ? y : closest(y1, y2, y);\n }\n else {\n // closest point lies on normal from given point to this line. \n var b = y1 - (m * x1),\n b2 = y - (m2 * x),\n // y1 = m.x1 + b and y1 = m2.x1 + b2\n // so m.x1 + b = m2.x1 + b2\n // x1(m - m2) = b2 - b\n // x1 = (b2 - b) / (m - m2)\n _x1 = (b2 - b) / (m - m2),\n _y1 = (m * _x1) + b;\n out.x = within(x1, x2, _x1) ? _x1 : closest(x1, x2, _x1);//_x1;\n out.y = within(y1, y2, _y1) ? _y1 : closest(y1, y2, _y1);//_y1;\n }\n var fractionInSegment = _jg.lineLength([ out.x, out.y ], [ x1, y1 ]);\n out.d = _jg.lineLength([x, y], [out.x, out.y]);\n out.l = fractionInSegment / length;\n return out;\n };\n var _pointLiesBetween = function(q, p1, p2) {\n return (p2 > p1) ? (p1 <= q && q <= p2) : (p1 >= q && q >= p2);\n }, _plb = _pointLiesBetween;\n /**\n * Calculates all intersections of the given line with this segment.\n * @param _x1\n * @param _y1\n * @param _x2\n * @param _y2\n * @returns {Array}\n */\n this.lineIntersection = function(_x1, _y1, _x2, _y2) {\n var m2 = Math.abs(_jg.gradient({x: _x1, y: _y1}, {x: _x2, y: _y2})),\n m1 = Math.abs(m),\n b = m1 === Infinity ? x1 : y1 - (m1 * x1),\n out = [],\n b2 = m2 === Infinity ? _x1 : _y1 - (m2 * _x1);\n // if lines parallel, no intersection\n if (m2 !== m1) {\n // perpendicular, segment horizontal\n if(m2 === Infinity && m1 === 0) {\n if (_plb(_x1, x1, x2) && _plb(y1, _y1, _y2)) {\n out = [ _x1, y1 ]; // we return X on the incident line and Y from the segment\n }\n } else if(m2 === 0 && m1 === Infinity) {\n // perpendicular, segment vertical\n if(_plb(_y1, y1, y2) && _plb(x1, _x1, _x2)) {\n out = [x1, _y1]; // we return X on the segment and Y from the incident line\n }\n } else {\n var X, Y;\n if (m2 === Infinity) {\n // test line is a vertical line. where does it cross the segment?\n X = _x1;\n if (_plb(X, x1, x2)) {\n Y = (m1 * _x1) + b;\n if (_plb(Y, _y1, _y2)) {\n out = [ X, Y ];\n }\n }\n } else if (m2 === 0) {\n Y = _y1;\n // test line is a horizontal line. where does it cross the segment?\n if (_plb(Y, y1, y2)) {\n X = (_y1 - b) / m1;\n if (_plb(X, _x1, _x2)) {\n out = [ X, Y ];\n }\n }\n } else {\n // mX + b = m2X + b2\n // mX - m2X = b2 - b\n // X(m - m2) = b2 - b\n // X = (b2 - b) / (m - m2)\n // Y = mX + b\n X = (b2 - b) / (m1 - m2);\n Y = (m1 * X) + b;\n if(_plb(X, x1, x2) && _plb(Y, y1, y2)) {\n out = [ X, Y];\n }\n }\n }\n }\n return out;\n };\n /**\n * Calculates all intersections of the given box with this segment. By default this method simply calls `lineIntersection` with each of the four\n * faces of the box; subclasses can override this if they think there's a faster way to compute the entire box at once.\n * @param x X position of top left corner of box\n * @param y Y position of top left corner of box\n * @param w width of box\n * @param h height of box\n * @returns {Array}\n */\n this.boxIntersection = function(x, y, w, h) {\n var a = [];\n a.push.apply(a, this.lineIntersection(x, y, x + w, y));\n a.push.apply(a, this.lineIntersection(x + w, y, x + w, y + h));\n a.push.apply(a, this.lineIntersection(x + w, y + h, x, y + h));\n a.push.apply(a, this.lineIntersection(x, y + h, x, y));\n return a;\n };\n /**\n * Calculates all intersections of the given bounding box with this segment. By default this method simply calls `lineIntersection` with each of the four\n * faces of the box; subclasses can override this if they think there's a faster way to compute the entire box at once.\n * @param box Bounding box, in { x:.., y:..., w:..., h:... } format.\n * @returns {Array}\n */\n this.boundingBoxIntersection = function(box) {\n return this.boxIntersection(box.x, box.y, box.w, box.h);\n };\n },\n /*\n Arc Segment. You need to supply:\n r - radius\n cx - center x for the arc\n cy - center y for the arc\n ac - whether the arc is anticlockwise or not. default is clockwise.\n and then either:\n startAngle - startAngle for the arc.\n endAngle - endAngle for the arc.\n or:\n x1 - x for start point\n y1 - y for start point\n x2 - x for end point\n y2 - y for end point\n */\n Arc: function (params) {\n var _super = _jp.Segments.AbstractSegment.apply(this, arguments),\n _calcAngle = function (_x, _y) {\n return _jg.theta([params.cx, params.cy], [_x, _y]);\n },\n _calcAngleForLocation = function (segment, location) {\n if (segment.anticlockwise) {\n var sa = segment.startAngle < segment.endAngle ? segment.startAngle + TWO_PI : segment.startAngle,\n s = Math.abs(sa - segment.endAngle);\n return sa - (s * location);\n }\n else {\n var ea = segment.endAngle < segment.startAngle ? segment.endAngle + TWO_PI : segment.endAngle,\n ss = Math.abs(ea - segment.startAngle);\n return segment.startAngle + (ss * location);\n }\n },\n TWO_PI = 2 * Math.PI;\n this.radius = params.r;\n this.anticlockwise = params.ac;\n this.type = \"Arc\";\n if (params.startAngle && params.endAngle) {\n this.startAngle = params.startAngle;\n this.endAngle = params.endAngle;\n this.x1 = params.cx + (this.radius * Math.cos(params.startAngle));\n this.y1 = params.cy + (this.radius * Math.sin(params.startAngle));\n this.x2 = params.cx + (this.radius * Math.cos(params.endAngle));\n this.y2 = params.cy + (this.radius * Math.sin(params.endAngle));\n }\n else {\n this.startAngle = _calcAngle(params.x1, params.y1);\n this.endAngle = _calcAngle(params.x2, params.y2);\n this.x1 = params.x1;\n this.y1 = params.y1;\n this.x2 = params.x2;\n this.y2 = params.y2;\n }\n if (this.endAngle < 0) {\n this.endAngle += TWO_PI;\n }\n if (this.startAngle < 0) {\n this.startAngle += TWO_PI;\n }\n // segment is used by vml \n //this.segment = _jg.quadrant([this.x1, this.y1], [this.x2, this.y2]);\n // we now have startAngle and endAngle as positive numbers, meaning the\n // absolute difference (|d|) between them is the sweep (s) of this arc, unless the\n // arc is 'anticlockwise' in which case 's' is given by 2PI - |d|.\n var ea = this.endAngle < this.startAngle ? this.endAngle + TWO_PI : this.endAngle;\n this.sweep = Math.abs(ea - this.startAngle);\n if (this.anticlockwise) {\n this.sweep = TWO_PI - this.sweep;\n }\n var circumference = 2 * Math.PI * this.radius,\n frac = this.sweep / TWO_PI,\n length = circumference * frac;\n this.getLength = function () {\n return length;\n };\n this.getBounds = function () {\n return {\n minX: params.cx - params.r,\n maxX: params.cx + params.r,\n minY: params.cy - params.r,\n maxY: params.cy + params.r\n };\n };\n var VERY_SMALL_VALUE = 0.0000000001,\n gentleRound = function (n) {\n var f = Math.floor(n), r = Math.ceil(n);\n if (n - f < VERY_SMALL_VALUE) {\n return f;\n }\n else if (r - n < VERY_SMALL_VALUE) {\n return r;\n }\n return n;\n };\n /**\n * returns the point on the segment's path that is 'location' along the length of the path, where 'location' is a decimal from\n * 0 to 1 inclusive.\n */\n this.pointOnPath = function (location, absolute) {\n if (location === 0) {\n return { x: this.x1, y: this.y1, theta: this.startAngle };\n }\n else if (location === 1) {\n return { x: this.x2, y: this.y2, theta: this.endAngle };\n }\n if (absolute) {\n location = location / length;\n }\n var angle = _calcAngleForLocation(this, location),\n _x = params.cx + (params.r * Math.cos(angle)),\n _y = params.cy + (params.r * Math.sin(angle));\n return { x: gentleRound(_x), y: gentleRound(_y), theta: angle };\n };\n /**\n * returns the gradient of the segment at the given point.\n */\n this.gradientAtPoint = function (location, absolute) {\n var p = this.pointOnPath(location, absolute);\n var m = _jg.normal([ params.cx, params.cy ], [p.x, p.y ]);\n if (!this.anticlockwise && (m === Infinity || m === -Infinity)) {\n m *= -1;\n }\n return m;\n };\n this.pointAlongPathFrom = function (location, distance, absolute) {\n var p = this.pointOnPath(location, absolute),\n arcSpan = distance / circumference * 2 * Math.PI,\n dir = this.anticlockwise ? -1 : 1,\n startAngle = p.theta + (dir * arcSpan),\n startX = params.cx + (this.radius * Math.cos(startAngle)),\n startY = params.cy + (this.radius * Math.sin(startAngle));\n return {x: startX, y: startY};\n };\n // TODO: lineIntersection\n },\n Bezier: function (params) {\n this.curve = [\n { x: params.x1, y: params.y1},\n { x: params.cp1x, y: params.cp1y },\n { x: params.cp2x, y: params.cp2y },\n { x: params.x2, y: params.y2 }\n ];\n var _isPoint = function(c) {\n return c[0].x === c[1].x && c[0].y === c[1].y;\n };\n var _dist = function(p1, p2 ) {\n return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));\n };\n var _compute = function(loc) {\n var EMPTY_POINT = {x:0, y:0};\n if (loc === 0) {\n return this.curve[0];\n }\n var degree = this.curve.length - 1;\n if (loc === 1) {\n return this.curve[degree];\n }\n var o = this.curve;\n var s = 1 - loc;\n if (degree === 0) {\n return this.curve[0];\n }\n if (degree === 1) {\n return {\n x: s * o[0].x + loc * o[1].x,\n y: s * o[0].y + loc * o[1].y\n };\n }\n if (degree < 4) {\n var l = s * s, h = loc * loc, u = 0, m, g, f;\n if (degree === 2) {\n o = [o[0], o[1], o[2], EMPTY_POINT];\n m = l;\n g = 2 * (s * loc);\n f = h;\n } else if (degree === 3) {\n m = l * s;\n g = 3 * (l * loc);\n f = 3 * (s * h);\n u = loc * h;\n }\n return {\n x: m * o[0].x + g * o[1].x + f * o[2].x + u * o[3].x,\n y: m * o[0].y + g * o[1].y + f * o[2].y + u * o[3].y\n };\n } else {\n return EMPTY_POINT; // not supported.\n }\n }.bind(this);\n var _getLUT = function(steps) {\n var out = [];\n steps--;\n for (var n = 0; n <= steps; n++) {\n out.push(_compute(n / steps));\n }\n return out;\n };\n var _computeLength = function() {\n if (_isPoint(this.curve)) {\n this.length = 0;\n }\n var steps = 16;\n var lut = _getLUT(steps);\n this.length = 0;\n for (var i = 0; i < steps - 1; i++) {\n var a = lut[i], b = lut[i + 1];\n this.length += _dist(a, b);\n }\n }.bind(this);\n var _super = _jp.Segments.AbstractSegment.apply(this, arguments);\n // although this is not a strictly rigorous determination of bounds\n // of a bezier curve, it works for the types of curves that this segment\n // type produces.\n this.bounds = {\n minX: Math.min(params.x1, params.x2, params.cp1x, params.cp2x),\n minY: Math.min(params.y1, params.y2, params.cp1y, params.cp2y),\n maxX: Math.max(params.x1, params.x2, params.cp1x, params.cp2x),\n maxY: Math.max(params.y1, params.y2, params.cp1y, params.cp2y)\n };\n this.type = \"Bezier\";\n _computeLength();\n var _translateLocation = function (_curve, location, absolute) {\n if (absolute) {\n location = root.jsBezier.locationAlongCurveFrom(_curve, location > 0 ? 0 : 1, location);\n }\n return location;\n };\n /**\n * returns the point on the segment's path that is 'location' along the length of the path, where 'location' is a decimal from\n * 0 to 1 inclusive.\n */\n this.pointOnPath = function (location, absolute) {\n location = _translateLocation(this.curve, location, absolute);\n return root.jsBezier.pointOnCurve(this.curve, location);\n };\n /**\n * returns the gradient of the segment at the given point.\n */\n this.gradientAtPoint = function (location, absolute) {\n location = _translateLocation(this.curve, location, absolute);\n return root.jsBezier.gradientAtPoint(this.curve, location);\n };\n this.pointAlongPathFrom = function (location, distance, absolute) {\n location = _translateLocation(this.curve, location, absolute);\n return root.jsBezier.pointAlongCurveFrom(this.curve, location, distance);\n };\n this.getLength = function () {\n return this.length;\n };\n this.getBounds = function () {\n return this.bounds;\n };\n this.findClosestPointOnPath = function (x, y) {\n var p = root.jsBezier.nearestPointOnCurve({x:x,y:y}, this.curve);\n return {\n d:Math.sqrt(Math.pow(p.point.x - x, 2) + Math.pow(p.point.y - y, 2)),\n x:p.point.x,\n y:p.point.y,\n l:1 - p.location,\n s:this\n };\n };\n this.lineIntersection = function(x1, y1, x2, y2) {\n return root.jsBezier.lineIntersection(x1, y1, x2, y2, this.curve);\n };\n }\n };\n _jp.SegmentRenderer = {\n getPath: function (segment, isFirstSegment) {\n return ({\n \"Straight\": function (isFirstSegment) {\n var d = segment.getCoordinates();\n return (isFirstSegment ? \"M \" + d.x1 + \" \" + d.y1 + \" \" : \"\") + \"L \" + d.x2 + \" \" + d.y2;\n },\n \"Bezier\": function (isFirstSegment) {\n var d = segment.params;\n return (isFirstSegment ? \"M \" + d.x2 + \" \" + d.y2 + \" \" : \"\") +\n \"C \" + d.cp2x + \" \" + d.cp2y + \" \" + d.cp1x + \" \" + d.cp1y + \" \" + d.x1 + \" \" + d.y1;\n },\n \"Arc\": function (isFirstSegment) {\n var d = segment.params,\n laf = segment.sweep > Math.PI ? 1 : 0,\n sf = segment.anticlockwise ? 0 : 1;\n return (isFirstSegment ? \"M\" + segment.x1 + \" \" + segment.y1 + \" \" : \"\") + \"A \" + segment.radius + \" \" + d.r + \" 0 \" + laf + \",\" + sf + \" \" + segment.x2 + \" \" + segment.y2;\n }\n })[segment.type](isFirstSegment);\n }\n };\n /*\n Class: UIComponent\n Superclass for Connector and AbstractEndpoint.\n */\n var AbstractComponent = function () {\n this.resetBounds = function () {\n this.bounds = { minX: Infinity, minY: Infinity, maxX: -Infinity, maxY: -Infinity };\n };\n this.resetBounds();\n };\n /*\n * Class: Connector\n * Superclass for all Connectors; here is where Segments are managed. This is exposed on jsPlumb just so it\n * can be accessed from other files. You should not try to instantiate one of these directly.\n *\n * When this class is asked for a pointOnPath, or gradient etc, it must first figure out which segment to dispatch\n * that request to. This is done by keeping track of the total connector length as segments are added, and also\n * their cumulative ratios to the total length. Then when the right segment is found it is a simple case of dispatching\n * the request to it (and adjusting 'location' so that it is relative to the beginning of that segment.)\n */\n _jp.Connectors.AbstractConnector = function (params) {\n AbstractComponent.apply(this, arguments);\n var segments = [],\n totalLength = 0,\n segmentProportions = [],\n segmentProportionalLengths = [],\n stub = params.stub || 0,\n sourceStub = _ju.isArray(stub) ? stub[0] : stub,\n targetStub = _ju.isArray(stub) ? stub[1] : stub,\n gap = params.gap || 0,\n sourceGap = _ju.isArray(gap) ? gap[0] : gap,\n targetGap = _ju.isArray(gap) ? gap[1] : gap,\n userProvidedSegments = null,\n paintInfo = null;\n this.getPathData = function() {\n var p = \"\";\n for (var i = 0; i < segments.length; i++) {\n p += _jp.SegmentRenderer.getPath(segments[i], i === 0);\n p += \" \";\n }\n return p;\n };\n /**\n * Function: findSegmentForPoint\n * Returns the segment that is closest to the given [x,y],\n * null if nothing found. This function returns a JS\n * object with:\n *\n * d - distance from segment\n * l - proportional location in segment\n * x - x point on the segment\n * y - y point on the segment\n * s - the segment itself.\n * connectorLocation - the location on the connector of the point, expressed as a decimal between 0 and 1 inclusive.\n */\n this.findSegmentForPoint = function (x, y) {\n var out = { d: Infinity, s: null, x: null, y: null, l: null };\n for (var i = 0; i < segments.length; i++) {\n var _s = segments[i].findClosestPointOnPath(x, y);\n if (_s.d < out.d) {\n out.d = _s.d;\n out.l = _s.l;\n out.x = _s.x;\n out.y = _s.y;\n out.s = segments[i];\n out.x1 = _s.x1;\n out.x2 = _s.x2;\n out.y1 = _s.y1;\n out.y2 = _s.y2;\n out.index = i;\n out.connectorLocation = segmentProportions[i][0] + (_s.l * (segmentProportions[i][1] - segmentProportions[i][0]));\n }\n }\n return out;\n };\n this.lineIntersection = function(x1, y1, x2, y2) {\n var out = [];\n for (var i = 0; i < segments.length; i++) {\n out.push.apply(out, segments[i].lineIntersection(x1, y1, x2, y2));\n }\n return out;\n };\n this.boxIntersection = function(x, y, w, h) {\n var out = [];\n for (var i = 0; i < segments.length; i++) {\n out.push.apply(out, segments[i].boxIntersection(x, y, w, h));\n }\n return out;\n };\n this.boundingBoxIntersection = function(box) {\n var out = [];\n for (var i = 0; i < segments.length; i++) {\n out.push.apply(out, segments[i].boundingBoxIntersection(box));\n }\n return out;\n };\n var _updateSegmentProportions = function () {\n var curLoc = 0;\n for (var i = 0; i < segments.length; i++) {\n var sl = segments[i].getLength();\n segmentProportionalLengths[i] = sl / totalLength;\n segmentProportions[i] = [curLoc, (curLoc += (sl / totalLength)) ];\n }\n },\n /**\n * returns [segment, proportion of travel in segment, segment index] for the segment\n * that contains the point which is 'location' distance along the entire path, where\n * 'location' is a decimal between 0 and 1 inclusive. in this connector type, paths\n * are made up of a list of segments, each of which contributes some fraction to\n * the total length.\n * From 1.3.10 this also supports the 'absolute' property, which lets us specify a location\n * as the absolute distance in pixels, rather than a proportion of the total path.\n */\n _findSegmentForLocation = function (location, absolute) {\n var idx, i, inSegmentProportion;\n if (absolute) {\n location = location > 0 ? location / totalLength : (totalLength + location) / totalLength;\n }\n // if location 1 we know its the last segment\n if (location === 1) {\n idx = segments.length - 1;\n inSegmentProportion = 1;\n } else if (location === 0) {\n // if location 0 we know its the first segment\n inSegmentProportion = 0;\n idx = 0;\n } else {\n // if location >= 0.5, traverse backwards (of course not exact, who knows the segment proportions. but\n // an educated guess at least)\n if (location >= 0.5) {\n idx = 0;\n inSegmentProportion = 0;\n for (i = segmentProportions.length - 1; i > -1; i--) {\n if (segmentProportions[i][1] >= location && segmentProportions[i][0] <= location) {\n idx = i;\n inSegmentProportion = (location - segmentProportions[i][0]) / segmentProportionalLengths[i];\n break;\n }\n }\n } else {\n idx = segmentProportions.length - 1;\n inSegmentProportion = 1;\n for (i = 0; i < segmentProportions.length; i++) {\n if (segmentProportions[i][1] >= location) {\n idx = i;\n inSegmentProportion = (location - segmentProportions[i][0]) / segmentProportionalLengths[i];\n break;\n }\n }\n }\n }\n return { segment: segments[idx], proportion: inSegmentProportion, index: idx };\n },\n _addSegment = function (conn, type, params) {\n if (params.x1 === params.x2 && params.y1 === params.y2) {\n return;\n }\n var s = new _jp.Segments[type](params);\n segments.push(s);\n totalLength += s.getLength();\n conn.updateBounds(s);\n },\n _clearSegments = function () {\n totalLength = segments.length = segmentProportions.length = segmentProportionalLengths.length = 0;\n };\n this.setSegments = function (_segs) {\n userProvidedSegments = [];\n totalLength = 0;\n for (var i = 0; i < _segs.length; i++) {\n userProvidedSegments.push(_segs[i]);\n totalLength += _segs[i].getLength();\n }\n };\n this.getLength = function() {\n return totalLength;\n };\n var _prepareCompute = function (params) {\n this.strokeWidth = params.strokeWidth;\n var segment = _jg.quadrant(params.sourcePos, params.targetPos),\n swapX = params.targetPos[0] < params.sourcePos[0],\n swapY = params.targetPos[1] < params.sourcePos[1],\n lw = params.strokeWidth || 1,\n so = params.sourceEndpoint.anchor.getOrientation(params.sourceEndpoint),\n to = params.targetEndpoint.anchor.getOrientation(params.targetEndpoint),\n x = swapX ? params.targetPos[0] : params.sourcePos[0],\n y = swapY ? params.targetPos[1] : params.sourcePos[1],\n w = Math.abs(params.targetPos[0] - params.sourcePos[0]),\n h = Math.abs(params.targetPos[1] - params.sourcePos[1]);\n \n // if either anchor does not have an orientation set, we derive one from their relative\n // positions. we fix the axis to be the one in which the two elements are further apart, and\n // point each anchor at the other element. this is also used when dragging a new connection.\n if (so[0] === 0 && so[1] === 0 || to[0] === 0 && to[1] === 0) {\n var index = w > h ? 0 : 1, oIndex = [1, 0][index];\n so = [];\n to = [];\n so[index] = params.sourcePos[index] > params.targetPos[index] ? -1 : 1;\n to[index] = params.sourcePos[index] > params.targetPos[index] ? 1 : -1;\n so[oIndex] = 0;\n to[oIndex] = 0;\n }\n var sx = swapX ? w + (sourceGap * so[0]) : sourceGap * so[0],\n sy = swapY ? h + (sourceGap * so[1]) : sourceGap * so[1],\n tx = swapX ? targetGap * to[0] : w + (targetGap * to[0]),\n ty = swapY ? targetGap * to[1] : h + (targetGap * to[1]),\n oProduct = ((so[0] * to[0]) + (so[1] * to[1]));\n var result = {\n sx: sx, sy: sy, tx: tx, ty: ty, lw: lw,\n xSpan: Math.abs(tx - sx),\n ySpan: Math.abs(ty - sy),\n mx: (sx + tx) / 2,\n my: (sy + ty) / 2,\n so: so, to: to, x: x, y: y, w: w, h: h,\n segment: segment,\n startStubX: sx + (so[0] * sourceStub),\n startStubY: sy + (so[1] * sourceStub),\n endStubX: tx + (to[0] * targetStub),\n endStubY: ty + (to[1] * targetStub),\n isXGreaterThanStubTimes2: Math.abs(sx - tx) > (sourceStub + targetStub),\n isYGreaterThanStubTimes2: Math.abs(sy - ty) > (sourceStub + targetStub),\n opposite: oProduct === -1,\n perpendicular: oProduct === 0,\n orthogonal: oProduct === 1,\n sourceAxis: so[0] === 0 ? \"y\" : \"x\",\n points: [x, y, w, h, sx, sy, tx, ty ],\n stubs:[sourceStub, targetStub]\n };\n result.anchorOrientation = result.opposite ? \"opposite\" : result.orthogonal ? \"orthogonal\" : \"perpendicular\";\n return result;\n };\n this.getSegments = function () {\n return segments;\n };\n this.updateBounds = function (segment) {\n var segBounds = segment.getBounds();\n this.bounds.minX = Math.min(this.bounds.minX, segBounds.minX);\n this.bounds.maxX = Math.max(this.bounds.maxX, segBounds.maxX);\n this.bounds.minY = Math.min(this.bounds.minY, segBounds.minY);\n this.bounds.maxY = Math.max(this.bounds.maxY, segBounds.maxY);\n };\n var dumpSegmentsToConsole = function () {\n console.log(\"SEGMENTS:\");\n for (var i = 0; i < segments.length; i++) {\n console.log(segments[i].type, segments[i].getLength(), segmentProportions[i]);\n }\n };\n this.pointOnPath = function (location, absolute) {\n var seg = _findSegmentForLocation(location, absolute);\n return seg.segment && seg.segment.pointOnPath(seg.proportion, false) || [0, 0];\n };\n this.gradientAtPoint = function (location, absolute) {\n var seg = _findSegmentForLocation(location, absolute);\n return seg.segment && seg.segment.gradientAtPoint(seg.proportion, false) || 0;\n };\n this.pointAlongPathFrom = function (location, distance, absolute) {\n var seg = _findSegmentForLocation(location, absolute);\n // TODO what happens if this crosses to the next segment?\n return seg.segment && seg.segment.pointAlongPathFrom(seg.proportion, distance, false) || [0, 0];\n };\n this.compute = function (params) {\n paintInfo = _prepareCompute.call(this, params);\n _clearSegments();\n this._compute(paintInfo, params);\n this.x = paintInfo.points[0];\n this.y = paintInfo.points[1];\n this.w = paintInfo.points[2];\n this.h = paintInfo.points[3];\n this.segment = paintInfo.segment;\n _updateSegmentProportions();\n };\n return {\n addSegment: _addSegment,\n prepareCompute: _prepareCompute,\n sourceStub: sourceStub,\n targetStub: targetStub,\n maxStub: Math.max(sourceStub, targetStub),\n sourceGap: sourceGap,\n targetGap: targetGap,\n maxGap: Math.max(sourceGap, targetGap)\n };\n };\n _ju.extend(_jp.Connectors.AbstractConnector, AbstractComponent);\n // ********************************* END OF CONNECTOR TYPES *******************************************************************\n // ********************************* ENDPOINT TYPES *******************************************************************\n _jp.Endpoints.AbstractEndpoint = function (params) {\n AbstractComponent.apply(this, arguments);\n var compute = this.compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) {\n var out = this._compute.apply(this, arguments);\n this.x = out[0];\n this.y = out[1];\n this.w = out[2];\n this.h = out[3];\n this.bounds.minX = this.x;\n this.bounds.minY = this.y;\n this.bounds.maxX = this.x + this.w;\n this.bounds.maxY = this.y + this.h;\n return out;\n };\n return {\n compute: compute,\n cssClass: params.cssClass\n };\n };\n _ju.extend(_jp.Endpoints.AbstractEndpoint, AbstractComponent);\n /**\n * Class: Endpoints.Dot\n * A round endpoint, with default radius 10 pixels.\n */\n /**\n * Function: Constructor\n *\n * Parameters:\n *\n * radius - radius of the endpoint. defaults to 10 pixels.\n */\n _jp.Endpoints.Dot = function (params) {\n this.type = \"Dot\";\n var _super = _jp.Endpoints.AbstractEndpoint.apply(this, arguments);\n params = params || {};\n this.radius = params.radius || 10;\n this.defaultOffset = 0.5 * this.radius;\n this.defaultInnerRadius = this.radius / 3;\n this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) {\n this.radius = endpointStyle.radius || this.radius;\n var x = anchorPoint[0] - this.radius,\n y = anchorPoint[1] - this.radius,\n w = this.radius * 2,\n h = this.radius * 2;\n if (endpointStyle.stroke) {\n var lw = endpointStyle.strokeWidth || 1;\n x -= lw;\n y -= lw;\n w += (lw * 2);\n h += (lw * 2);\n }\n return [ x, y, w, h, this.radius ];\n };\n };\n _ju.extend(_jp.Endpoints.Dot, _jp.Endpoints.AbstractEndpoint);\n _jp.Endpoints.Rectangle = function (params) {\n this.type = \"Rectangle\";\n var _super = _jp.Endpoints.AbstractEndpoint.apply(this, arguments);\n params = params || {};\n this.width = params.width || 20;\n this.height = params.height || 20;\n this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) {\n var width = endpointStyle.width || this.width,\n height = endpointStyle.height || this.height,\n x = anchorPoint[0] - (width / 2),\n y = anchorPoint[1] - (height / 2);\n return [ x, y, width, height];\n };\n };\n _ju.extend(_jp.Endpoints.Rectangle, _jp.Endpoints.AbstractEndpoint);\n var DOMElementEndpoint = function (params) {\n _jp.jsPlumbUIComponent.apply(this, arguments);\n this._jsPlumb.displayElements = [];\n };\n _ju.extend(DOMElementEndpoint, _jp.jsPlumbUIComponent, {\n getDisplayElements: function () {\n return this._jsPlumb.displayElements;\n },\n appendDisplayElement: function (el) {\n this._jsPlumb.displayElements.push(el);\n }\n });\n /**\n * Class: Endpoints.Image\n * Draws an image as the Endpoint.\n */\n /**\n * Function: Constructor\n *\n * Parameters:\n *\n * src - location of the image to use.\n TODO: multiple references to self. not sure quite how to get rid of them entirely. perhaps self = null in the cleanup\n function will suffice\n TODO this class still might leak memory.\n */\n _jp.Endpoints.Image = function (params) {\n this.type = \"Image\";\n DOMElementEndpoint.apply(this, arguments);\n _jp.Endpoints.AbstractEndpoint.apply(this, arguments);\n var _onload = params.onload,\n src = params.src || params.url,\n clazz = params.cssClass ? \" \" + params.cssClass : \"\";\n this._jsPlumb.img = new Image();\n this._jsPlumb.ready = false;\n this._jsPlumb.initialized = false;\n this._jsPlumb.deleted = false;\n this._jsPlumb.widthToUse = params.width;\n this._jsPlumb.heightToUse = params.height;\n this._jsPlumb.endpoint = params.endpoint;\n this._jsPlumb.img.onload = function () {\n if (this._jsPlumb != null) {\n this._jsPlumb.ready = true;\n this._jsPlumb.widthToUse = this._jsPlumb.widthToUse || this._jsPlumb.img.width;\n this._jsPlumb.heightToUse = this._jsPlumb.heightToUse || this._jsPlumb.img.height;\n if (_onload) {\n _onload(this);\n }\n }\n }.bind(this);\n /*\n Function: setImage\n Sets the Image to use in this Endpoint.\n Parameters:\n img - may be a URL or an Image object\n onload - optional; a callback to execute once the image has loaded.\n */\n this._jsPlumb.endpoint.setImage = function (_img, onload) {\n var s = _img.constructor === String ? _img : _img.src;\n _onload = onload;\n this._jsPlumb.img.src = s;\n if (this.canvas != null) {\n this.canvas.setAttribute(\"src\", this._jsPlumb.img.src);\n }\n }.bind(this);\n this._jsPlumb.endpoint.setImage(src, _onload);\n this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) {\n this.anchorPoint = anchorPoint;\n if (this._jsPlumb.ready) {\n return [anchorPoint[0] - this._jsPlumb.widthToUse / 2, anchorPoint[1] - this._jsPlumb.heightToUse / 2,\n this._jsPlumb.widthToUse, this._jsPlumb.heightToUse];\n }\n else {\n return [0, 0, 0, 0];\n }\n };\n this.canvas = _jp.createElement(\"img\", {\n position:\"absolute\",\n margin:0,\n padding:0,\n outline:0\n }, this._jsPlumb.instance.endpointClass + clazz);\n if (this._jsPlumb.widthToUse) {\n this.canvas.setAttribute(\"width\", this._jsPlumb.widthToUse);\n }\n if (this._jsPlumb.heightToUse) {\n this.canvas.setAttribute(\"height\", this._jsPlumb.heightToUse);\n }\n this._jsPlumb.instance.appendElement(this.canvas);\n this.actuallyPaint = function (d, style, anchor) {\n if (!this._jsPlumb.deleted) {\n if (!this._jsPlumb.initialized) {\n this.canvas.setAttribute(\"src\", this._jsPlumb.img.src);\n this.appendDisplayElement(this.canvas);\n this._jsPlumb.initialized = true;\n }\n var x = this.anchorPoint[0] - (this._jsPlumb.widthToUse / 2),\n y = this.anchorPoint[1] - (this._jsPlumb.heightToUse / 2);\n _ju.sizeElement(this.canvas, x, y, this._jsPlumb.widthToUse, this._jsPlumb.heightToUse);\n }\n };\n this.paint = function (style, anchor) {\n if (this._jsPlumb != null) { // may have been deleted\n if (this._jsPlumb.ready) {\n this.actuallyPaint(style, anchor);\n }\n else {\n root.setTimeout(function () {\n this.paint(style, anchor);\n }.bind(this), 200);\n }\n }\n };\n };\n _ju.extend(_jp.Endpoints.Image, [ DOMElementEndpoint, _jp.Endpoints.AbstractEndpoint ], {\n cleanup: function (force) {\n if (force) {\n this._jsPlumb.deleted = true;\n if (this.canvas) {\n this.canvas.parentNode.removeChild(this.canvas);\n }\n this.canvas = null;\n }\n }\n });\n /*\n * Class: Endpoints.Blank\n * An Endpoint that paints nothing (visible) on the screen. Supports cssClass and hoverClass parameters like all Endpoints.\n */\n _jp.Endpoints.Blank = function (params) {\n var _super = _jp.Endpoints.AbstractEndpoint.apply(this, arguments);\n this.type = \"Blank\";\n DOMElementEndpoint.apply(this, arguments);\n this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) {\n return [anchorPoint[0], anchorPoint[1], 10, 0];\n };\n var clazz = params.cssClass ? \" \" + params.cssClass : \"\";\n this.canvas = _jp.createElement(\"div\", {\n display: \"block\",\n width: \"1px\",\n height: \"1px\",\n background: \"transparent\",\n position: \"absolute\"\n }, this._jsPlumb.instance.endpointClass + clazz);\n this._jsPlumb.instance.appendElement(this.canvas);\n this.paint = function (style, anchor) {\n _ju.sizeElement(this.canvas, this.x, this.y, this.w, this.h);\n };\n };\n _ju.extend(_jp.Endpoints.Blank, [_jp.Endpoints.AbstractEndpoint, DOMElementEndpoint], {\n cleanup: function () {\n if (this.canvas && this.canvas.parentNode) {\n this.canvas.parentNode.removeChild(this.canvas);\n }\n }\n });\n /*\n * Class: Endpoints.Triangle\n * A triangular Endpoint.\n */\n /*\n * Function: Constructor\n *\n * Parameters:\n *\n * width width of the triangle's base. defaults to 55 pixels.\n * height height of the triangle from base to apex. defaults to 55 pixels.\n */\n _jp.Endpoints.Triangle = function (params) {\n this.type = \"Triangle\";\n _jp.Endpoints.AbstractEndpoint.apply(this, arguments);\n var self = this;\n params = params || { };\n params.width = params.width || 55;\n params.height = params.height || 55;\n this.width = params.width;\n this.height = params.height;\n this._compute = function (anchorPoint, orientation, endpointStyle, connectorPaintStyle) {\n var width = endpointStyle.width || self.width,\n height = endpointStyle.height || self.height,\n x = anchorPoint[0] - (width / 2),\n y = anchorPoint[1] - (height / 2);\n return [ x, y, width, height ];\n };\n };\n// ********************************* END OF ENDPOINT TYPES *******************************************************************\n// ********************************* OVERLAY DEFINITIONS *********************************************************************** \n var AbstractOverlay = _jp.Overlays.AbstractOverlay = function (params) {\n this.visible = true;\n this.isAppendedAtTopLevel = true;\n this.component = params.component;\n this.loc = params.location == null ? 0.5 : params.location;\n this.endpointLoc = params.endpointLocation == null ? [ 0.5, 0.5] : params.endpointLocation;\n this.visible = params.visible !== false;\n };\n AbstractOverlay.prototype = {\n cleanup: function (force) {\n if (force) {\n this.component = null;\n this.canvas = null;\n this.endpointLoc = null;\n }\n },\n reattach:function(instance, component) { },\n setVisible: function (val) {\n this.visible = val;\n this.component.repaint();\n },\n isVisible: function () {\n return this.visible;\n },\n hide: function () {\n this.setVisible(false);\n },\n show: function () {\n this.setVisible(true);\n },\n incrementLocation: function (amount) {\n this.loc += amount;\n this.component.repaint();\n },\n setLocation: function (l) {\n this.loc = l;\n this.component.repaint();\n },\n getLocation: function () {\n return this.loc;\n },\n updateFrom:function() { }\n };\n /*\n * Class: Overlays.Arrow\n *\n * An arrow overlay, defined by four points: the head, the two sides of the tail, and a 'foldback' point at some distance along the length\n * of the arrow that lines from each tail point converge into. The foldback point is defined using a decimal that indicates some fraction\n * of the length of the arrow and has a default value of 0.623. A foldback point value of 1 would mean that the arrow had a straight line\n * across the tail.\n */\n /*\n * @constructor\n *\n * @param {Object} params Constructor params.\n * @param {Number} [params.length] Distance in pixels from head to tail baseline. default 20.\n * @param {Number} [params.width] Width in pixels of the tail baseline. default 20.\n * @param {String} [params.fill] Style to use when filling the arrow. defaults to \"black\".\n * @param {String} [params.stroke] Style to use when stroking the arrow. defaults to null, which means the arrow is not stroked.\n * @param {Number} [params.stroke-width] Line width to use when stroking the arrow. defaults to 1, but only used if stroke is not null.\n * @param {Number} [params.foldback] Distance (as a decimal from 0 to 1 inclusive) along the length of the arrow marking the point the tail points should fold back to. defaults to 0.623.\n * @param {Number} [params.location] Distance (as a decimal from 0 to 1 inclusive) marking where the arrow should sit on the connector. defaults to 0.5.\n * @param {NUmber} [params.direction] Indicates the direction the arrow points in. valid values are -1 and 1; 1 is default.\n */\n _jp.Overlays.Arrow = function (params) {\n this.type = \"Arrow\";\n AbstractOverlay.apply(this, arguments);\n this.isAppendedAtTopLevel = false;\n params = params || {};\n var self = this;\n this.length = params.length || 20;\n this.width = params.width || 20;\n this.id = params.id;\n this.direction = (params.direction || 1) < 0 ? -1 : 1;\n var paintStyle = params.paintStyle || { \"stroke-width\": 1 },\n // how far along the arrow the lines folding back in come to. default is 62.3%.\n foldback = params.foldback || 0.623;\n this.computeMaxSize = function () {\n return self.width * 1.5;\n };\n this.elementCreated = function(p, component) {\n this.path = p;\n if (params.events) {\n for (var i in params.events) {\n _jp.on(p, i, params.events[i]);\n }\n }\n };\n this.draw = function (component, currentConnectionPaintStyle) {\n var hxy, mid, txy, tail, cxy;\n if (component.pointAlongPathFrom) {\n if (_ju.isString(this.loc) || this.loc > 1 || this.loc < 0) {\n var l = parseInt(this.loc, 10),\n fromLoc = this.loc < 0 ? 1 : 0;\n hxy = component.pointAlongPathFrom(fromLoc, l, false);\n mid = component.pointAlongPathFrom(fromLoc, l - (this.direction * this.length / 2), false);\n txy = _jg.pointOnLine(hxy, mid, this.length);\n }\n else if (this.loc === 1) {\n hxy = component.pointOnPath(this.loc);\n mid = component.pointAlongPathFrom(this.loc, -(this.length));\n txy = _jg.pointOnLine(hxy, mid, this.length);\n if (this.direction === -1) {\n var _ = txy;\n txy = hxy;\n hxy = _;\n }\n }\n else if (this.loc === 0) {\n txy = component.pointOnPath(this.loc);\n mid = component.pointAlongPathFrom(this.loc, this.length);\n hxy = _jg.pointOnLine(txy, mid, this.length);\n if (this.direction === -1) {\n var __ = txy;\n txy = hxy;\n hxy = __;\n }\n }\n else {\n hxy = component.pointAlongPathFrom(this.loc, this.direction * this.length / 2);\n mid = component.pointOnPath(this.loc);\n txy = _jg.pointOnLine(hxy, mid, this.length);\n }\n tail = _jg.perpendicularLineTo(hxy, txy, this.width);\n cxy = _jg.pointOnLine(hxy, txy, foldback * this.length);\n var d = { hxy: hxy, tail: tail, cxy: cxy },\n stroke = paintStyle.stroke || currentConnectionPaintStyle.stroke,\n fill = paintStyle.fill || currentConnectionPaintStyle.stroke,\n lineWidth = paintStyle.strokeWidth || currentConnectionPaintStyle.strokeWidth;\n return {\n component: component,\n d: d,\n \"stroke-width\": lineWidth,\n stroke: stroke,\n fill: fill,\n minX: Math.min(hxy.x, tail[0].x, tail[1].x),\n maxX: Math.max(hxy.x, tail[0].x, tail[1].x),\n minY: Math.min(hxy.y, tail[0].y, tail[1].y),\n maxY: Math.max(hxy.y, tail[0].y, tail[1].y)\n };\n }\n else {\n return {component: component, minX: 0, maxX: 0, minY: 0, maxY: 0};\n }\n };\n };\n _ju.extend(_jp.Overlays.Arrow, AbstractOverlay, {\n updateFrom:function(d) {\n this.length = d.length || this.length;\n this.width = d.width|| this.width;\n this.direction = d.direction != null ? d.direction : this.direction;\n this.foldback = d.foldback|| this.foldback;\n },\n cleanup:function() {\n if (this.path && this.path.parentNode) {\n this.path.parentNode.removeChild(this.path);\n }\n }\n });\n /*\n * Class: Overlays.PlainArrow\n *\n * A basic arrow. This is in fact just one instance of the more generic case in which the tail folds back on itself to some\n * point along the length of the arrow: in this case, that foldback point is the full length of the arrow. so it just does\n * a 'call' to Arrow with foldback set appropriately.\n */\n /*\n * Function: Constructor\n * See for allowed parameters for this overlay.\n */\n _jp.Overlays.PlainArrow = function (params) {\n params = params || {};\n var p = _jp.extend(params, {foldback: 1});\n _jp.Overlays.Arrow.call(this, p);\n this.type = \"PlainArrow\";\n };\n _ju.extend(_jp.Overlays.PlainArrow, _jp.Overlays.Arrow);\n /*\n * Class: Overlays.Diamond\n * \n * A diamond. Like PlainArrow, this is a concrete case of the more generic case of the tail points converging on some point...it just\n * happens that in this case, that point is greater than the length of the the arrow.\n *\n * this could probably do with some help with positioning...due to the way it reuses the Arrow paint code, what Arrow thinks is the\n * center is actually 1/4 of the way along for this guy. but we don't have any knowledge of pixels at this point, so we're kind of\n * stuck when it comes to helping out the Arrow class. possibly we could pass in a 'transpose' parameter or something. the value\n * would be -l/4 in this case - move along one quarter of the total length.\n */\n /*\n * Function: Constructor\n * See for allowed parameters for this overlay.\n */\n _jp.Overlays.Diamond = function (params) {\n params = params || {};\n var l = params.length || 40,\n p = _jp.extend(params, {length: l / 2, foldback: 2});\n _jp.Overlays.Arrow.call(this, p);\n this.type = \"Diamond\";\n };\n _ju.extend(_jp.Overlays.Diamond, _jp.Overlays.Arrow);\n var _getDimensions = function (component, forceRefresh) {\n if (component._jsPlumb.cachedDimensions == null || forceRefresh) {\n component._jsPlumb.cachedDimensions = component.getDimensions();\n }\n return component._jsPlumb.cachedDimensions;\n };\n // abstract superclass for overlays that add an element to the DOM.\n var AbstractDOMOverlay = function (params) {\n _jp.jsPlumbUIComponent.apply(this, arguments);\n AbstractOverlay.apply(this, arguments);\n // hand off fired events to associated component.\n var _f = this.fire;\n this.fire = function () {\n _f.apply(this, arguments);\n if (this.component) {\n this.component.fire.apply(this.component, arguments);\n }\n };\n this.detached=false;\n this.id = params.id;\n this._jsPlumb.div = null;\n this._jsPlumb.initialised = false;\n this._jsPlumb.component = params.component;\n this._jsPlumb.cachedDimensions = null;\n this._jsPlumb.create = params.create;\n this._jsPlumb.initiallyInvisible = params.visible === false;\n this.getElement = function () {\n if (this._jsPlumb.div == null) {\n var div = this._jsPlumb.div = _jp.getElement(this._jsPlumb.create(this._jsPlumb.component));\n div.style.position = \"absolute\";\n jsPlumb.addClass(div, this._jsPlumb.instance.overlayClass + \" \" +\n (this.cssClass ? this.cssClass :\n params.cssClass ? params.cssClass : \"\"));\n this._jsPlumb.instance.appendElement(div);\n this._jsPlumb.instance.getId(div);\n this.canvas = div;\n // in IE the top left corner is what it placed at the desired location. This will not\n // be fixed. IE8 is not going to be supported for much longer.\n var ts = \"translate(-50%, -50%)\";\n div.style.webkitTransform = ts;\n div.style.mozTransform = ts;\n div.style.msTransform = ts;\n div.style.oTransform = ts;\n div.style.transform = ts;\n // write the related component into the created element\n div._jsPlumb = this;\n if (params.visible === false) {\n div.style.display = \"none\";\n }\n }\n return this._jsPlumb.div;\n };\n this.draw = function (component, currentConnectionPaintStyle, absolutePosition) {\n var td = _getDimensions(this);\n if (td != null && td.length === 2) {\n var cxy = { x: 0, y: 0 };\n // absolutePosition would have been set by a call to connection.setAbsoluteOverlayPosition.\n if (absolutePosition) {\n cxy = { x: absolutePosition[0], y: absolutePosition[1] };\n }\n else if (component.pointOnPath) {\n var loc = this.loc, absolute = false;\n if (_ju.isString(this.loc) || this.loc < 0 || this.loc > 1) {\n loc = parseInt(this.loc, 10);\n absolute = true;\n }\n cxy = component.pointOnPath(loc, absolute); // a connection\n }\n else {\n var locToUse = this.loc.constructor === Array ? this.loc : this.endpointLoc;\n cxy = { x: locToUse[0] * component.w,\n y: locToUse[1] * component.h };\n }\n var minx = cxy.x - (td[0] / 2),\n miny = cxy.y - (td[1] / 2);\n return {\n component: component,\n d: { minx: minx, miny: miny, td: td, cxy: cxy },\n minX: minx,\n maxX: minx + td[0],\n minY: miny,\n maxY: miny + td[1]\n };\n }\n else {\n return {minX: 0, maxX: 0, minY: 0, maxY: 0};\n }\n };\n };\n _ju.extend(AbstractDOMOverlay, [_jp.jsPlumbUIComponent, AbstractOverlay], {\n getDimensions: function () {\n return [1,1];\n },\n setVisible: function (state) {\n if (this._jsPlumb.div) {\n this._jsPlumb.div.style.display = state ? \"block\" : \"none\";\n // if initially invisible, dimensions are 0,0 and never get updated\n if (state && this._jsPlumb.initiallyInvisible) {\n _getDimensions(this, true);\n this.component.repaint();\n this._jsPlumb.initiallyInvisible = false;\n }\n }\n },\n /*\n * Function: clearCachedDimensions\n * Clears the cached dimensions for the label. As a performance enhancement, label dimensions are\n * cached from 1.3.12 onwards. The cache is cleared when you change the label text, of course, but\n * there are other reasons why the text dimensions might change - if you make a change through CSS, for\n * example, you might change the font size. in that case you should explicitly call this method.\n */\n clearCachedDimensions: function () {\n this._jsPlumb.cachedDimensions = null;\n },\n cleanup: function (force) {\n if (force) {\n if (this._jsPlumb.div != null) {\n this._jsPlumb.div._jsPlumb = null;\n this._jsPlumb.instance.removeElement(this._jsPlumb.div);\n }\n }\n else {\n // if not a forced cleanup, just detach child from parent for now.\n if (this._jsPlumb && this._jsPlumb.div && this._jsPlumb.div.parentNode) {\n this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div);\n }\n this.detached = true;\n }\n },\n reattach:function(instance, component) {\n if (this._jsPlumb.div != null) {\n instance.getContainer().appendChild(this._jsPlumb.div);\n }\n this.detached = false;\n },\n computeMaxSize: function () {\n var td = _getDimensions(this);\n return Math.max(td[0], td[1]);\n },\n paint: function (p, containerExtents) {\n if (!this._jsPlumb.initialised) {\n this.getElement();\n p.component.appendDisplayElement(this._jsPlumb.div);\n this._jsPlumb.initialised = true;\n if (this.detached) {\n this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div);\n }\n }\n this._jsPlumb.div.style.left = (p.component.x + p.d.minx) + \"px\";\n this._jsPlumb.div.style.top = (p.component.y + p.d.miny) + \"px\";\n }\n });\n /*\n * Class: Overlays.Custom\n * A Custom overlay. You supply a 'create' function which returns some DOM element, and jsPlumb positions it.\n * The 'create' function is passed a Connection or Endpoint.\n */\n /*\n * Function: Constructor\n * \n * Parameters:\n * create - function for jsPlumb to call that returns a DOM element.\n * location - distance (as a decimal from 0 to 1 inclusive) marking where the label should sit on the connector. defaults to 0.5.\n * id - optional id to use for later retrieval of this overlay.\n *\n */\n _jp.Overlays.Custom = function (params) {\n this.type = \"Custom\";\n AbstractDOMOverlay.apply(this, arguments);\n };\n _ju.extend(_jp.Overlays.Custom, AbstractDOMOverlay);\n _jp.Overlays.GuideLines = function () {\n var self = this;\n self.length = 50;\n self.strokeWidth = 5;\n this.type = \"GuideLines\";\n AbstractOverlay.apply(this, arguments);\n _jp.jsPlumbUIComponent.apply(this, arguments);\n this.draw = function (connector, currentConnectionPaintStyle) {\n var head = connector.pointAlongPathFrom(self.loc, self.length / 2),\n mid = connector.pointOnPath(self.loc),\n tail = _jg.pointOnLine(head, mid, self.length),\n tailLine = _jg.perpendicularLineTo(head, tail, 40),\n headLine = _jg.perpendicularLineTo(tail, head, 20);\n return {\n connector: connector,\n head: head,\n tail: tail,\n headLine: headLine,\n tailLine: tailLine,\n minX: Math.min(head.x, tail.x, headLine[0].x, headLine[1].x),\n minY: Math.min(head.y, tail.y, headLine[0].y, headLine[1].y),\n maxX: Math.max(head.x, tail.x, headLine[0].x, headLine[1].x),\n maxY: Math.max(head.y, tail.y, headLine[0].y, headLine[1].y)\n };\n };\n // this.cleanup = function() { }; // nothing to clean up for GuideLines\n };\n /*\n * Class: Overlays.Label\n */\n /*\n * Function: Constructor\n * \n * Parameters:\n * cssClass - optional css class string to append to css class. This string is appended \"as-is\", so you can of course have multiple classes\n * defined. This parameter is preferred to using labelStyle, borderWidth and borderStyle.\n * label - the label to paint. May be a string or a function that returns a string. Nothing will be painted if your label is null or your\n * label function returns null. empty strings _will_ be painted.\n * location - distance (as a decimal from 0 to 1 inclusive) marking where the label should sit on the connector. defaults to 0.5.\n * id - optional id to use for later retrieval of this overlay.\n * \n *\n */\n _jp.Overlays.Label = function (params) {\n this.labelStyle = params.labelStyle;\n var labelWidth = null, labelHeight = null, labelText = null, labelPadding = null;\n this.cssClass = this.labelStyle != null ? this.labelStyle.cssClass : null;\n var p = _jp.extend({\n create: function () {\n return _jp.createElement(\"div\");\n }}, params);\n _jp.Overlays.Custom.call(this, p);\n this.type = \"Label\";\n this.label = params.label || \"\";\n this.labelText = null;\n if (this.labelStyle) {\n var el = this.getElement();\n this.labelStyle.font = this.labelStyle.font || \"12px sans-serif\";\n el.style.font = this.labelStyle.font;\n el.style.color = this.labelStyle.color || \"black\";\n if (this.labelStyle.fill) {\n el.style.background = this.labelStyle.fill;\n }\n if (this.labelStyle.borderWidth > 0) {\n var dStyle = this.labelStyle.borderStyle ? this.labelStyle.borderStyle : \"black\";\n el.style.border = this.labelStyle.borderWidth + \"px solid \" + dStyle;\n }\n if (this.labelStyle.padding) {\n el.style.padding = this.labelStyle.padding;\n }\n }\n };\n _ju.extend(_jp.Overlays.Label, _jp.Overlays.Custom, {\n cleanup: function (force) {\n if (force) {\n this.div = null;\n this.label = null;\n this.labelText = null;\n this.cssClass = null;\n this.labelStyle = null;\n }\n },\n getLabel: function () {\n return this.label;\n },\n /*\n * Function: setLabel\n * sets the label's, um, label. you would think i'd call this function\n * 'setText', but you can pass either a Function or a String to this, so\n * it makes more sense as 'setLabel'. This uses innerHTML on the label div, so keep\n * that in mind if you need escaped HTML.\n */\n setLabel: function (l) {\n this.label = l;\n this.labelText = null;\n this.clearCachedDimensions();\n this.update();\n this.component.repaint();\n },\n getDimensions: function () {\n this.update();\n return AbstractDOMOverlay.prototype.getDimensions.apply(this, arguments);\n },\n update: function () {\n if (typeof this.label === \"function\") {\n var lt = this.label(this);\n this.getElement().innerHTML = lt.replace(/\\n\\n/g, \"
\");\n }\n else {\n if (this.labelText == null) {\n this.labelText = this.label;\n this.getElement().innerHTML = this.labelText.replace(/\\n\\n/g, \"
\");\n }\n }\n },\n updateFrom:function(d) {\n if(d.label != null){\n this.setLabel(d.label);\n }\n }\n });\n // ********************************* END OF OVERLAY DEFINITIONS ***********************************************************************\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;(function() {\n \"use strict\";\n var root = this,\n _ju = root.jsPlumbUtil,\n _jpi = root.jsPlumbInstance;\n var GROUP_COLLAPSED_CLASS = \"jtk-group-collapsed\";\n var GROUP_EXPANDED_CLASS = \"jtk-group-expanded\";\n var GROUP_CONTAINER_SELECTOR = \"[jtk-group-content]\";\n var ELEMENT_DRAGGABLE_EVENT = \"elementDraggable\";\n var STOP = \"stop\";\n var REVERT = \"revert\";\n var GROUP_MANAGER = \"_groupManager\";\n var GROUP = \"_jsPlumbGroup\";\n var GROUP_DRAG_SCOPE = \"_jsPlumbGroupDrag\";\n var EVT_CHILD_ADDED = \"group:addMember\";\n var EVT_CHILD_REMOVED = \"group:removeMember\";\n var EVT_GROUP_ADDED = \"group:add\";\n var EVT_GROUP_REMOVED = \"group:remove\";\n var EVT_EXPAND = \"group:expand\";\n var EVT_COLLAPSE = \"group:collapse\";\n var EVT_GROUP_DRAG_STOP = \"groupDragStop\";\n var EVT_CONNECTION_MOVED = \"connectionMoved\";\n var EVT_INTERNAL_CONNECTION_DETACHED = \"internal.connectionDetached\";\n var CMD_REMOVE_ALL = \"removeAll\";\n var CMD_ORPHAN_ALL = \"orphanAll\";\n var CMD_SHOW = \"show\";\n var CMD_HIDE = \"hide\";\n var GroupManager = function(_jsPlumb) {\n var _managedGroups = {}, _connectionSourceMap = {}, _connectionTargetMap = {}, self = this;\n // function findGroupFor(el) {\n // var c = _jsPlumb.getContainer();\n // var abort = false, g = null, child = null;\n // while (!abort) {\n // if (el == null || el === c) {\n // abort = true;\n // } else {\n // if (el[GROUP]) {\n // g = el[GROUP];\n // child = el;\n // abort = true;\n // } else {\n // el = el.parentNode;\n // }\n // }\n // }\n // return g;\n // }\n function isDescendant(el, parentEl) {\n var c = _jsPlumb.getContainer();\n var abort = false, g = null, child = null;\n while (!abort) {\n if (el == null || el === c) {\n return false;\n } else {\n if (el === parentEl) {\n return true;\n } else {\n el = el.parentNode;\n }\n }\n }\n }\n _jsPlumb.bind(\"connection\", function(p) {\n var sourceGroup = _jsPlumb.getGroupFor(p.source);\n var targetGroup = _jsPlumb.getGroupFor(p.target);\n if (sourceGroup != null && targetGroup != null && sourceGroup === targetGroup) {\n _connectionSourceMap[p.connection.id] = sourceGroup;\n _connectionTargetMap[p.connection.id] = sourceGroup;\n }\n else {\n if (sourceGroup != null) {\n _ju.suggest(sourceGroup.connections.source, p.connection);\n _connectionSourceMap[p.connection.id] = sourceGroup;\n }\n if (targetGroup != null) {\n _ju.suggest(targetGroup.connections.target, p.connection);\n _connectionTargetMap[p.connection.id] = targetGroup;\n }\n }\n });\n function _cleanupDetachedConnection(conn) {\n delete conn.proxies;\n var group = _connectionSourceMap[conn.id], f;\n if (group != null) {\n f = function(c) { return c.id === conn.id; };\n _ju.removeWithFunction(group.connections.source, f);\n _ju.removeWithFunction(group.connections.target, f);\n delete _connectionSourceMap[conn.id];\n }\n group = _connectionTargetMap[conn.id];\n if (group != null) {\n f = function(c) { return c.id === conn.id; };\n _ju.removeWithFunction(group.connections.source, f);\n _ju.removeWithFunction(group.connections.target, f);\n delete _connectionTargetMap[conn.id];\n }\n }\n _jsPlumb.bind(EVT_INTERNAL_CONNECTION_DETACHED, function(p) {\n _cleanupDetachedConnection(p.connection);\n });\n _jsPlumb.bind(EVT_CONNECTION_MOVED, function(p) {\n var connMap = p.index === 0 ? _connectionSourceMap : _connectionTargetMap;\n var group = connMap[p.connection.id];\n if (group) {\n var list = group.connections[p.index === 0 ? \"source\" : \"target\"];\n var idx = list.indexOf(p.connection);\n if (idx !== -1) {\n list.splice(idx, 1);\n }\n }\n });\n this.addGroup = function(group) {\n _jsPlumb.addClass(group.getEl(), GROUP_EXPANDED_CLASS);\n _managedGroups[group.id] = group;\n group.manager = this;\n _updateConnectionsForGroup(group);\n _jsPlumb.fire(EVT_GROUP_ADDED, { group:group });\n };\n this.addToGroup = function(group, el, doNotFireEvent) {\n group = this.getGroup(group);\n if (group) {\n var groupEl = group.getEl();\n if (el._isJsPlumbGroup) {\n return;\n }\n var currentGroup = el._jsPlumbGroup;\n // if already a member of this group, do nothing\n if (currentGroup !== group) {\n _jsPlumb.removeFromDragSelection(el);\n var elpos = _jsPlumb.getOffset(el, true);\n var cpos = group.collapsed ? _jsPlumb.getOffset(groupEl, true) : _jsPlumb.getOffset(group.getDragArea(), true);\n // otherwise, transfer to this group.\n if (currentGroup != null) {\n currentGroup.remove(el, false, doNotFireEvent, false, group);\n self.updateConnectionsForGroup(currentGroup);\n }\n group.add(el, doNotFireEvent/*, currentGroup*/);\n var handleDroppedConnections = function (list, index) {\n var oidx = index === 0 ? 1 : 0;\n list.each(function (c) {\n c.setVisible(false);\n if (c.endpoints[oidx].element._jsPlumbGroup === group) {\n c.endpoints[oidx].setVisible(false);\n _expandConnection(c, oidx, group);\n }\n else {\n c.endpoints[index].setVisible(false);\n _collapseConnection(c, index, group);\n }\n });\n };\n if (group.collapsed) {\n handleDroppedConnections(_jsPlumb.select({source: el}), 0);\n handleDroppedConnections(_jsPlumb.select({target: el}), 1);\n }\n var elId = _jsPlumb.getId(el);\n _jsPlumb.dragManager.setParent(el, elId, groupEl, _jsPlumb.getId(groupEl), elpos);\n var newPosition = { left: elpos.left - cpos.left, top: elpos.top - cpos.top };\n _jsPlumb.setPosition(el, newPosition);\n _jsPlumb.dragManager.revalidateParent(el, elId, elpos);\n self.updateConnectionsForGroup(group);\n _jsPlumb.revalidate(elId);\n if (!doNotFireEvent) {\n var p = {group: group, el: el, pos:newPosition};\n if (currentGroup) {\n p.sourceGroup = currentGroup;\n }\n _jsPlumb.fire(EVT_CHILD_ADDED, p);\n }\n }\n }\n };\n this.removeFromGroup = function(group, el, doNotFireEvent) {\n group = this.getGroup(group);\n if (group) {\n // if this group is currently collapsed then any proxied connections for the given el (or its descendants) need\n // to be put back on their original element, and unproxied\n if (group.collapsed) {\n var _expandSet = function (conns, index) {\n for (var i = 0; i < conns.length; i++) {\n var c = conns[i];\n if (c.proxies) {\n for(var j = 0; j < c.proxies.length; j++) {\n if (c.proxies[j] != null) {\n var proxiedElement = c.proxies[j].originalEp.element;\n if (proxiedElement === el || isDescendant(proxiedElement, el)) {\n _expandConnection(c, index, group);\n }\n }\n }\n }\n }\n };\n // setup proxies for sources and targets\n _expandSet(group.connections.source.slice(), 0);\n _expandSet(group.connections.target.slice(), 1);\n }\n group.remove(el, null, doNotFireEvent);\n }\n };\n this.getGroup = function(groupId) {\n var group = groupId;\n if (_ju.isString(groupId)) {\n group = _managedGroups[groupId];\n if (group == null) {\n throw new TypeError(\"No such group [\" + groupId + \"]\");\n }\n }\n return group;\n };\n this.getGroups = function() {\n var o = [];\n for (var g in _managedGroups) {\n o.push(_managedGroups[g]);\n }\n return o;\n };\n this.removeGroup = function(group, deleteMembers, manipulateDOM, doNotFireEvent) {\n group = this.getGroup(group);\n this.expandGroup(group, true); // this reinstates any original connections and removes all proxies, but does not fire an event.\n var newPositions = group[deleteMembers ? CMD_REMOVE_ALL : CMD_ORPHAN_ALL](manipulateDOM, doNotFireEvent);\n _jsPlumb.remove(group.getEl());\n delete _managedGroups[group.id];\n delete _jsPlumb._groups[group.id];\n _jsPlumb.fire(EVT_GROUP_REMOVED, { group:group });\n return newPositions; // this will be null in the case or remove, but be a map of {id->[x,y]} in the case of orphan\n };\n this.removeAllGroups = function(deleteMembers, manipulateDOM, doNotFireEvent) {\n for (var g in _managedGroups) {\n this.removeGroup(_managedGroups[g], deleteMembers, manipulateDOM, doNotFireEvent);\n }\n };\n function _setVisible(group, state) {\n // TODO discovering the list of elements would ideally be a pluggable function.\n var m = group.getEl().querySelectorAll(\".jtk-managed\");\n for (var i = 0; i < m.length; i++) {\n _jsPlumb[state ? CMD_SHOW : CMD_HIDE](m[i], true);\n }\n }\n var _collapseConnection = function(c, index, group) {\n var otherEl = c.endpoints[index === 0 ? 1 : 0].element;\n if (otherEl[GROUP] && (!otherEl[GROUP].shouldProxy() && otherEl[GROUP].collapsed)) {\n return;\n }\n var groupEl = group.getEl(), groupElId = _jsPlumb.getId(groupEl);\n _jsPlumb.proxyConnection(c, index, groupEl, groupElId, function(c, index) { return group.getEndpoint(c, index); }, function(c, index) { return group.getAnchor(c, index); });\n };\n this.collapseGroup = function(group) {\n group = this.getGroup(group);\n if (group == null || group.collapsed) {\n return;\n }\n var groupEl = group.getEl();\n // todo remove old proxy endpoints first, just in case?\n //group.proxies.length = 0;\n // hide all connections\n _setVisible(group, false);\n if (group.shouldProxy()) {\n // collapses all connections in a group.\n var _collapseSet = function (conns, index) {\n for (var i = 0; i < conns.length; i++) {\n var c = conns[i];\n _collapseConnection(c, index, group);\n }\n };\n // setup proxies for sources and targets\n _collapseSet(group.connections.source, 0);\n _collapseSet(group.connections.target, 1);\n }\n group.collapsed = true;\n _jsPlumb.removeClass(groupEl, GROUP_EXPANDED_CLASS);\n _jsPlumb.addClass(groupEl, GROUP_COLLAPSED_CLASS);\n _jsPlumb.revalidate(groupEl);\n _jsPlumb.fire(EVT_COLLAPSE, { group:group });\n };\n var _expandConnection = function(c, index, group) {\n _jsPlumb.unproxyConnection(c, index, _jsPlumb.getId(group.getEl()));\n };\n this.expandGroup = function(group, doNotFireEvent) {\n group = this.getGroup(group);\n if (group == null || !group.collapsed) {\n return;\n }\n var groupEl = group.getEl();\n _setVisible(group, true);\n if (group.shouldProxy()) {\n // expands all connections in a group.\n var _expandSet = function (conns, index) {\n for (var i = 0; i < conns.length; i++) {\n var c = conns[i];\n _expandConnection(c, index, group);\n }\n };\n // setup proxies for sources and targets\n _expandSet(group.connections.source, 0);\n _expandSet(group.connections.target, 1);\n }\n group.collapsed = false;\n _jsPlumb.addClass(groupEl, GROUP_EXPANDED_CLASS);\n _jsPlumb.removeClass(groupEl, GROUP_COLLAPSED_CLASS);\n _jsPlumb.revalidate(groupEl);\n this.repaintGroup(group);\n if (!doNotFireEvent) {\n _jsPlumb.fire(EVT_EXPAND, { group: group});\n }\n };\n this.repaintGroup = function(group) {\n group = this.getGroup(group);\n var m = group.getMembers();\n for (var i = 0; i < m.length; i++) {\n _jsPlumb.revalidate(m[i]);\n }\n };\n // TODO refactor this with the code that responds to `connection` events.\n function _updateConnectionsForGroup(group) {\n var members = group.getMembers().slice();\n var childMembers = [];\n for (var i = 0; i < members.length; i++) {\n Array.prototype.push.apply(childMembers, members[i].querySelectorAll(\".jtk-managed\"));\n }\n Array.prototype.push.apply(members, childMembers);\n var c1 = _jsPlumb.getConnections({source:members, scope:\"*\"}, true);\n var c2 = _jsPlumb.getConnections({target:members, scope:\"*\"}, true);\n var processed = {};\n group.connections.source.length = 0;\n group.connections.target.length = 0;\n var oneSet = function(c) {\n for (var i = 0; i < c.length; i++) {\n if (processed[c[i].id]) {\n continue;\n }\n processed[c[i].id] = true;\n var gs = _jsPlumb.getGroupFor(c[i].source),\n gt = _jsPlumb.getGroupFor(c[i].target);\n if (gs === group) {\n if (gt !== group) {\n group.connections.source.push(c[i]);\n }\n _connectionSourceMap[c[i].id] = group;\n }\n else if (gt === group) {\n group.connections.target.push(c[i]);\n _connectionTargetMap[c[i].id] = group;\n }\n }\n };\n oneSet(c1); oneSet(c2);\n }\n this.updateConnectionsForGroup = _updateConnectionsForGroup;\n this.refreshAllGroups = function() {\n for (var g in _managedGroups) {\n _updateConnectionsForGroup(_managedGroups[g]);\n _jsPlumb.dragManager.updateOffsets(_jsPlumb.getId(_managedGroups[g].getEl()));\n }\n };\n };\n /**\n *\n * @param {jsPlumbInstance} _jsPlumb Associated jsPlumb instance.\n * @param {Object} params\n * @param {Element} params.el The DOM element representing the Group.\n * @param {String} [params.id] Optional ID for the Group. A UUID will be assigned as the Group's ID if you do not provide one.\n * @param {Boolean} [params.constrain=false] If true, child elements will not be able to be dragged outside of the Group container.\n * @param {Boolean} [params.revert=true] By default, child elements revert to the container if dragged outside. You can change this by setting `revert:false`. This behaviour is also overridden if you set `orphan` or `prune`.\n * @param {Boolean} [params.orphan=false] If true, child elements dropped outside of the Group container will be removed from the Group (but not from the DOM).\n * @param {Boolean} [params.prune=false] If true, child elements dropped outside of the Group container will be removed from the Group and also from the DOM.\n * @param {Boolean} [params.dropOverride=false] If true, a child element that has been dropped onto some other Group will not be subject to the controls imposed by `prune`, `revert` or `orphan`.\n * @constructor\n */\n var Group = function(_jsPlumb, params) {\n var self = this;\n var el = params.el;\n this.getEl = function() { return el; };\n this.id = params.id || _ju.uuid();\n el._isJsPlumbGroup = true;\n var getDragArea = this.getDragArea = function() {\n var da = _jsPlumb.getSelector(el, GROUP_CONTAINER_SELECTOR);\n return da && da.length > 0 ? da[0] : el;\n };\n var ghost = params.ghost === true;\n var constrain = ghost || (params.constrain === true);\n var revert = params.revert !== false;\n var orphan = params.orphan === true;\n var prune = params.prune === true;\n var dropOverride = params.dropOverride === true;\n var proxied = params.proxied !== false;\n var elements = [];\n this.connections = { source:[], target:[], internal:[] };\n // this function, and getEndpoint below, are stubs for a future setup in which we can choose endpoint\n // and anchor based upon the connection and the index (source/target) of the endpoint to be proxied.\n this.getAnchor = function(conn, endpointIndex) {\n return params.anchor || \"Continuous\";\n };\n this.getEndpoint = function(conn, endpointIndex) {\n return params.endpoint || [ \"Dot\", { radius:10 }];\n };\n this.collapsed = false;\n if (params.draggable !== false) {\n var opts = {\n drag:function() {\n for (var i = 0; i < elements.length; i++) {\n _jsPlumb.draw(elements[i]);\n }\n },\n stop:function(params) {\n _jsPlumb.fire(EVT_GROUP_DRAG_STOP, jsPlumb.extend(params, {group:self}));\n },\n scope:GROUP_DRAG_SCOPE\n };\n if (params.dragOptions) {\n root.jsPlumb.extend(opts, params.dragOptions);\n }\n _jsPlumb.draggable(params.el, opts);\n }\n if (params.droppable !== false) {\n _jsPlumb.droppable(params.el, {\n drop:function(p) {\n var el = p.drag.el;\n if (el._isJsPlumbGroup) {\n return;\n }\n var currentGroup = el._jsPlumbGroup;\n if (currentGroup !== self) {\n if (currentGroup != null) {\n if (currentGroup.overrideDrop(el, self)) {\n return;\n }\n }\n _jsPlumb.getGroupManager().addToGroup(self, el, false);\n }\n }\n });\n }\n var _each = function(_el, fn) {\n var els = _el.nodeType == null ? _el : [ _el ];\n for (var i = 0; i < els.length; i++) {\n fn(els[i]);\n }\n };\n this.overrideDrop = function(_el, targetGroup) {\n return dropOverride && (revert || prune || orphan);\n };\n this.add = function(_el, doNotFireEvent/*, sourceGroup*/) {\n var dragArea = getDragArea();\n _each(_el, function(__el) {\n if (__el._jsPlumbGroup != null) {\n if (__el._jsPlumbGroup === self) {\n return;\n } else {\n __el._jsPlumbGroup.remove(__el, true, doNotFireEvent, false);\n }\n }\n __el._jsPlumbGroup = self;\n elements.push(__el);\n // test if draggable and add handlers if so.\n if (_jsPlumb.isAlreadyDraggable(__el)) {\n _bindDragHandlers(__el);\n }\n if (__el.parentNode !== dragArea) {\n dragArea.appendChild(__el);\n }\n // if (!doNotFireEvent) {\n // var p = {group: self, el: __el};\n // if (sourceGroup) {\n // p.sourceGroup = sourceGroup;\n // }\n // //_jsPlumb.fire(EVT_CHILD_ADDED, p);\n // }\n });\n _jsPlumb.getGroupManager().updateConnectionsForGroup(self);\n };\n this.remove = function(el, manipulateDOM, doNotFireEvent, doNotUpdateConnections, targetGroup) {\n _each(el, function(__el) {\n if (__el._jsPlumbGroup === self) {\n delete __el._jsPlumbGroup;\n _ju.removeWithFunction(elements, function (e) {\n return e === __el;\n });\n if (manipulateDOM) {\n try {\n self.getDragArea().removeChild(__el);\n } catch (e) {\n jsPlumbUtil.log(\"Could not remove element from Group \" + e);\n }\n }\n _unbindDragHandlers(__el);\n if (!doNotFireEvent) {\n var p = {group: self, el: __el};\n if (targetGroup) {\n p.targetGroup = targetGroup;\n }\n _jsPlumb.fire(EVT_CHILD_REMOVED, p);\n }\n }\n });\n if (!doNotUpdateConnections) {\n _jsPlumb.getGroupManager().updateConnectionsForGroup(self);\n }\n };\n this.removeAll = function(manipulateDOM, doNotFireEvent) {\n for (var i = 0, l = elements.length; i < l; i++) {\n var el = elements[0];\n self.remove(el, manipulateDOM, doNotFireEvent, true);\n _jsPlumb.remove(el, true);\n }\n elements.length = 0;\n _jsPlumb.getGroupManager().updateConnectionsForGroup(self);\n };\n this.orphanAll = function() {\n var orphanedPositions = {};\n for (var i = 0; i < elements.length; i++) {\n var newPosition = _orphan(elements[i]);\n orphanedPositions[newPosition[0]] = newPosition[1];\n }\n elements.length = 0;\n return orphanedPositions;\n };\n this.getMembers = function() { return elements; };\n el[GROUP] = this;\n _jsPlumb.bind(ELEMENT_DRAGGABLE_EVENT, function(dragParams) {\n // if its for the current group,\n if (dragParams.el._jsPlumbGroup === this) {\n _bindDragHandlers(dragParams.el);\n }\n }.bind(this));\n function _findParent(_el) {\n return _el.offsetParent;\n }\n function _isInsideParent(_el, pos) {\n var p = _findParent(_el),\n s = _jsPlumb.getSize(p),\n ss = _jsPlumb.getSize(_el),\n leftEdge = pos[0],\n rightEdge = leftEdge + ss[0],\n topEdge = pos[1],\n bottomEdge = topEdge + ss[1];\n return rightEdge > 0 && leftEdge < s[0] && bottomEdge > 0 && topEdge < s[1];\n }\n //\n // orphaning an element means taking it out of the group and adding it to the main jsplumb container.\n // we return the new calculated position from this method and the element's id.\n //\n function _orphan(_el) {\n var id = _jsPlumb.getId(_el);\n var pos = _jsPlumb.getOffset(_el);\n _el.parentNode.removeChild(_el);\n _jsPlumb.getContainer().appendChild(_el);\n _jsPlumb.setPosition(_el, pos);\n _unbindDragHandlers(_el);\n _jsPlumb.dragManager.clearParent(_el, id);\n return [id, pos];\n }\n //\n // remove an element from the group, then either prune it from the jsplumb instance, or just orphan it.\n //\n function _pruneOrOrphan(p) {\n var out = [];\n function _one(el, left, top) {\n var orphanedPosition = null;\n if (!_isInsideParent(el, [left, top])) {\n var group = el._jsPlumbGroup;\n if (prune) {\n _jsPlumb.remove(el);\n } else {\n orphanedPosition = _orphan(el);\n }\n group.remove(el);\n }\n return orphanedPosition;\n }\n for (var i = 0; i < p.selection.length; i++) {\n out.push(_one(p.selection[i][0], p.selection[i][1].left, p.selection[i][1].top));\n }\n return out.length === 1 ? out[0] : out;\n }\n //\n // redraws the element\n //\n function _revalidate(_el) {\n var id = _jsPlumb.getId(_el);\n _jsPlumb.revalidate(_el);\n _jsPlumb.dragManager.revalidateParent(_el, id);\n }\n //\n // unbind the group specific drag/revert handlers.\n //\n function _unbindDragHandlers(_el) {\n if (!_el._katavorioDrag) {\n return;\n }\n if (prune || orphan) {\n _el._katavorioDrag.off(STOP, _pruneOrOrphan);\n }\n if (!prune && !orphan && revert) {\n _el._katavorioDrag.off(REVERT, _revalidate);\n _el._katavorioDrag.setRevert(null);\n }\n }\n function _bindDragHandlers(_el) {\n if (!_el._katavorioDrag) {\n return;\n }\n if (prune || orphan) {\n _el._katavorioDrag.on(STOP, _pruneOrOrphan);\n }\n if (constrain) {\n _el._katavorioDrag.setConstrain(true);\n }\n if (ghost) {\n _el._katavorioDrag.setUseGhostProxy(true);\n }\n if (!prune && !orphan && revert) {\n _el._katavorioDrag.on(REVERT, _revalidate);\n _el._katavorioDrag.setRevert(function(__el, pos) {\n return !_isInsideParent(__el, pos);\n });\n }\n }\n this.shouldProxy = function() {\n return proxied;\n };\n _jsPlumb.getGroupManager().addGroup(this);\n };\n /**\n * Adds a group to the jsPlumb instance.\n * @method addGroup\n * @param {Object} params\n * @return {Group} The newly created Group.\n */\n _jpi.prototype.addGroup = function(params) {\n var j = this;\n j._groups = j._groups || {};\n if (j._groups[params.id] != null) {\n throw new TypeError(\"cannot create Group [\" + params.id + \"]; a Group with that ID exists\");\n }\n if (params.el[GROUP] != null) {\n throw new TypeError(\"cannot create Group [\" + params.id + \"]; the given element is already a Group\");\n }\n var group = new Group(j, params);\n j._groups[group.id] = group;\n if (params.collapsed) {\n this.collapseGroup(group);\n }\n return group;\n };\n /**\n * Add an element to a group.\n * @method addToGroup\n * @param {String} group Group, or ID of the group, to add the element to.\n * @param {Element} el Element to add to the group.\n */\n _jpi.prototype.addToGroup = function(group, el, doNotFireEvent) {\n var _one = function(_el) {\n var id = this.getId(_el);\n this.manage(id, _el);\n this.getGroupManager().addToGroup(group, _el, doNotFireEvent);\n }.bind(this);\n if (Array.isArray(el)) {\n for (var i = 0; i < el.length; i++) {\n _one(el[i]);\n }\n } else {\n _one(el);\n }\n };\n /**\n * Remove an element from a group, and sets its DOM element to be a child of the container again. ??\n * @method removeFromGroup\n * @param {String} group Group, or ID of the group, to remove the element from.\n * @param {Element} el Element to add to the group.\n */\n _jpi.prototype.removeFromGroup = function(group, el, doNotFireEvent) {\n this.getGroupManager().removeFromGroup(group, el, doNotFireEvent);\n this.getContainer().appendChild(el);\n };\n /**\n * Remove a group, and optionally remove its members from the jsPlumb instance.\n * @method removeGroup\n * @param {String|Group} group Group to delete, or ID of Group to delete.\n * @param {Boolean} [deleteMembers=false] If true, group members will be removed along with the group. Otherwise they will\n * just be 'orphaned' (returned to the main container).\n * @returns {Map[String, Position}} When deleteMembers is false, this method returns a map of {id->position}\n */\n _jpi.prototype.removeGroup = function(group, deleteMembers, manipulateDOM, doNotFireEvent) {\n return this.getGroupManager().removeGroup(group, deleteMembers, manipulateDOM, doNotFireEvent);\n };\n /**\n * Remove all groups, and optionally remove their members from the jsPlumb instance.\n * @method removeAllGroup\n * @param {Boolean} [deleteMembers=false] If true, group members will be removed along with the groups. Otherwise they will\n * just be 'orphaned' (returned to the main container).\n */\n _jpi.prototype.removeAllGroups = function(deleteMembers, manipulateDOM, doNotFireEvent) {\n this.getGroupManager().removeAllGroups(deleteMembers, manipulateDOM, doNotFireEvent);\n };\n /**\n * Get a Group\n * @method getGroup\n * @param {String} groupId ID of the group to get\n * @return {Group} Group with the given ID, null if not found.\n */\n _jpi.prototype.getGroup = function(groupId) {\n return this.getGroupManager().getGroup(groupId);\n };\n /**\n * Gets all the Groups managed by the jsPlumb instance.\n * @returns {Group[]} List of Groups. Empty if none.\n */\n _jpi.prototype.getGroups = function() {\n return this.getGroupManager().getGroups();\n };\n /**\n * Expands a group element. jsPlumb doesn't do \"everything\" for you here, because what it means to expand a Group\n * will vary from application to application. jsPlumb does these things:\n *\n * - Hides any connections that are internal to the group (connections between members, and connections from member of\n * the group to the group itself)\n * - Proxies all connections for which the source or target is a member of the group.\n * - Hides the proxied connections.\n * - Adds the jtk-group-expanded class to the group's element\n * - Removes the jtk-group-collapsed class from the group's element.\n *\n * @method expandGroup\n * @param {String|Group} group Group to expand, or ID of Group to expand.\n */\n _jpi.prototype.expandGroup = function(group) {\n this.getGroupManager().expandGroup(group);\n };\n /**\n * Collapses a group element. jsPlumb doesn't do \"everything\" for you here, because what it means to collapse a Group\n * will vary from application to application. jsPlumb does these things:\n *\n * - Shows any connections that are internal to the group (connections between members, and connections from member of\n * the group to the group itself)\n * - Removes proxies for all connections for which the source or target is a member of the group.\n * - Shows the previously proxied connections.\n * - Adds the jtk-group-collapsed class to the group's element\n * - Removes the jtk-group-expanded class from the group's element.\n *\n * @method expandGroup\n * @param {String|Group} group Group to expand, or ID of Group to expand.\n */\n _jpi.prototype.collapseGroup = function(groupId) {\n this.getGroupManager().collapseGroup(groupId);\n };\n _jpi.prototype.repaintGroup = function(group) {\n this.getGroupManager().repaintGroup(group);\n };\n /**\n * Collapses or expands a group element depending on its current state. See notes in the collapseGroup and expandGroup method.\n *\n * @method toggleGroup\n * @param {String|Group} group Group to expand/collapse, or ID of Group to expand/collapse.\n */\n _jpi.prototype.toggleGroup = function(group) {\n group = this.getGroupManager().getGroup(group);\n if (group != null) {\n this.getGroupManager()[group.collapsed ? \"expandGroup\" : \"collapseGroup\"](group);\n }\n };\n //\n // lazy init a group manager for the given jsplumb instance.\n //\n _jpi.prototype.getGroupManager = function() {\n var mgr = this[GROUP_MANAGER];\n if (mgr == null) {\n mgr = this[GROUP_MANAGER] = new GroupManager(this);\n }\n return mgr;\n };\n _jpi.prototype.removeGroupManager = function() {\n delete this[GROUP_MANAGER];\n };\n /**\n * Gets the Group that the given element belongs to, null if none.\n * @method getGroupFor\n * @param {String|Element} el Element, or element ID.\n * @returns {Group} A Group, if found, or null.\n */\n _jpi.prototype.getGroupFor = function(el) {\n el = this.getElement(el);\n if (el) {\n var c = this.getContainer();\n var abort = false, g = null, child = null;\n while (!abort) {\n if (el == null || el === c) {\n abort = true;\n } else {\n if (el[GROUP]) {\n g = el[GROUP];\n child = el;\n abort = true;\n } else {\n el = el.parentNode;\n }\n }\n }\n return g;\n }\n };\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the 'flowchart' connectors, consisting of vertical and horizontal line segments.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil;\n var STRAIGHT = \"Straight\";\n var ARC = \"Arc\";\n var Flowchart = function (params) {\n this.type = \"Flowchart\";\n params = params || {};\n params.stub = params.stub == null ? 30 : params.stub;\n var segments,\n _super = _jp.Connectors.AbstractConnector.apply(this, arguments),\n midpoint = params.midpoint == null || isNaN(params.midpoint) ? 0.5 : params.midpoint,\n alwaysRespectStubs = params.alwaysRespectStubs === true,\n lastx = null, lasty = null, lastOrientation,\n cornerRadius = params.cornerRadius != null ? params.cornerRadius : 0,\n // TODO now common between this and AbstractBezierEditor; refactor into superclass?\n loopbackRadius = params.loopbackRadius || 25,\n isLoopbackCurrently = false,\n sgn = function (n) {\n return n < 0 ? -1 : n === 0 ? 0 : 1;\n },\n segmentDirections = function(segment) {\n return [\n sgn( segment[2] - segment[0] ),\n sgn( segment[3] - segment[1] )\n ];\n },\n /**\n * helper method to add a segment.\n */\n addSegment = function (segments, x, y, paintInfo) {\n if (lastx === x && lasty === y) {\n return;\n }\n var lx = lastx == null ? paintInfo.sx : lastx,\n ly = lasty == null ? paintInfo.sy : lasty,\n o = lx === x ? \"v\" : \"h\";\n lastx = x;\n lasty = y;\n segments.push([ lx, ly, x, y, o ]);\n },\n segLength = function (s) {\n return Math.sqrt(Math.pow(s[0] - s[2], 2) + Math.pow(s[1] - s[3], 2));\n },\n _cloneArray = function (a) {\n var _a = [];\n _a.push.apply(_a, a);\n return _a;\n },\n writeSegments = function (conn, segments, paintInfo) {\n var current = null, next, currentDirection, nextDirection;\n for (var i = 0; i < segments.length - 1; i++) {\n current = current || _cloneArray(segments[i]);\n next = _cloneArray(segments[i + 1]);\n currentDirection = segmentDirections(current);\n nextDirection = segmentDirections(next);\n if (cornerRadius > 0 && current[4] !== next[4]) {\n var minSegLength = Math.min(segLength(current), segLength(next));\n var radiusToUse = Math.min(cornerRadius, minSegLength / 2);\n current[2] -= currentDirection[0] * radiusToUse;\n current[3] -= currentDirection[1] * radiusToUse;\n next[0] += nextDirection[0] * radiusToUse;\n next[1] += nextDirection[1] * radiusToUse;\n var ac = (currentDirection[1] === nextDirection[0] && nextDirection[0] === 1) ||\n ((currentDirection[1] === nextDirection[0] && nextDirection[0] === 0) && currentDirection[0] !== nextDirection[1]) ||\n (currentDirection[1] === nextDirection[0] && nextDirection[0] === -1),\n sgny = next[1] > current[3] ? 1 : -1,\n sgnx = next[0] > current[2] ? 1 : -1,\n sgnEqual = sgny === sgnx,\n cx = (sgnEqual && ac || (!sgnEqual && !ac)) ? next[0] : current[2],\n cy = (sgnEqual && ac || (!sgnEqual && !ac)) ? current[3] : next[1];\n _super.addSegment(conn, STRAIGHT, {\n x1: current[0], y1: current[1], x2: current[2], y2: current[3]\n });\n _super.addSegment(conn, ARC, {\n r: radiusToUse,\n x1: current[2],\n y1: current[3],\n x2: next[0],\n y2: next[1],\n cx: cx,\n cy: cy,\n ac: ac\n });\n }\n else {\n // dx + dy are used to adjust for line width.\n var dx = (current[2] === current[0]) ? 0 : (current[2] > current[0]) ? (paintInfo.lw / 2) : -(paintInfo.lw / 2),\n dy = (current[3] === current[1]) ? 0 : (current[3] > current[1]) ? (paintInfo.lw / 2) : -(paintInfo.lw / 2);\n _super.addSegment(conn, STRAIGHT, {\n x1: current[0] - dx, y1: current[1] - dy, x2: current[2] + dx, y2: current[3] + dy\n });\n }\n current = next;\n }\n if (next != null) {\n // last segment\n _super.addSegment(conn, STRAIGHT, {\n x1: next[0], y1: next[1], x2: next[2], y2: next[3]\n });\n }\n };\n this.midpoint = midpoint;\n this._compute = function (paintInfo, params) {\n segments = [];\n lastx = null;\n lasty = null;\n lastOrientation = null;\n var commonStubCalculator = function () {\n return [paintInfo.startStubX, paintInfo.startStubY, paintInfo.endStubX, paintInfo.endStubY];\n },\n stubCalculators = {\n perpendicular: commonStubCalculator,\n orthogonal: commonStubCalculator,\n opposite: function (axis) {\n var pi = paintInfo,\n idx = axis === \"x\" ? 0 : 1,\n areInProximity = {\n \"x\": function () {\n return ( (pi.so[idx] === 1 && (\n ( (pi.startStubX > pi.endStubX) && (pi.tx > pi.startStubX) ) ||\n ( (pi.sx > pi.endStubX) && (pi.tx > pi.sx))))) ||\n ( (pi.so[idx] === -1 && (\n ( (pi.startStubX < pi.endStubX) && (pi.tx < pi.startStubX) ) ||\n ( (pi.sx < pi.endStubX) && (pi.tx < pi.sx)))));\n },\n \"y\": function () {\n return ( (pi.so[idx] === 1 && (\n ( (pi.startStubY > pi.endStubY) && (pi.ty > pi.startStubY) ) ||\n ( (pi.sy > pi.endStubY) && (pi.ty > pi.sy))))) ||\n ( (pi.so[idx] === -1 && (\n ( (pi.startStubY < pi.endStubY) && (pi.ty < pi.startStubY) ) ||\n ( (pi.sy < pi.endStubY) && (pi.ty < pi.sy)))));\n }\n };\n if (!alwaysRespectStubs && areInProximity[axis]()) {\n return {\n \"x\": [(paintInfo.sx + paintInfo.tx) / 2, paintInfo.startStubY, (paintInfo.sx + paintInfo.tx) / 2, paintInfo.endStubY],\n \"y\": [paintInfo.startStubX, (paintInfo.sy + paintInfo.ty) / 2, paintInfo.endStubX, (paintInfo.sy + paintInfo.ty) / 2]\n }[axis];\n }\n else {\n return [paintInfo.startStubX, paintInfo.startStubY, paintInfo.endStubX, paintInfo.endStubY];\n }\n }\n };\n // calculate Stubs.\n var stubs = stubCalculators[paintInfo.anchorOrientation](paintInfo.sourceAxis),\n idx = paintInfo.sourceAxis === \"x\" ? 0 : 1,\n oidx = paintInfo.sourceAxis === \"x\" ? 1 : 0,\n ss = stubs[idx],\n oss = stubs[oidx],\n es = stubs[idx + 2],\n oes = stubs[oidx + 2];\n // add the start stub segment. use stubs for loopback as it will look better, with the loop spaced\n // away from the element.\n addSegment(segments, stubs[0], stubs[1], paintInfo);\n // if its a loopback and we should treat it differently.\n // if (false && params.sourcePos[0] === params.targetPos[0] && params.sourcePos[1] === params.targetPos[1]) {\n //\n // // we use loopbackRadius here, as statemachine connectors do.\n // // so we go radius to the left from stubs[0], then upwards by 2*radius, to the right by 2*radius,\n // // down by 2*radius, left by radius.\n // addSegment(segments, stubs[0] - loopbackRadius, stubs[1], paintInfo);\n // addSegment(segments, stubs[0] - loopbackRadius, stubs[1] - (2 * loopbackRadius), paintInfo);\n // addSegment(segments, stubs[0] + loopbackRadius, stubs[1] - (2 * loopbackRadius), paintInfo);\n // addSegment(segments, stubs[0] + loopbackRadius, stubs[1], paintInfo);\n // addSegment(segments, stubs[0], stubs[1], paintInfo);\n //\n // }\n // else {\n var midx = paintInfo.startStubX + ((paintInfo.endStubX - paintInfo.startStubX) * midpoint),\n midy = paintInfo.startStubY + ((paintInfo.endStubY - paintInfo.startStubY) * midpoint);\n var orientations = {x: [0, 1], y: [1, 0]},\n lineCalculators = {\n perpendicular: function (axis) {\n var pi = paintInfo,\n sis = {\n x: [\n [[1, 2, 3, 4], null, [2, 1, 4, 3]],\n null,\n [[4, 3, 2, 1], null, [3, 4, 1, 2]]\n ],\n y: [\n [[3, 2, 1, 4], null, [2, 3, 4, 1]],\n null,\n [[4, 1, 2, 3], null, [1, 4, 3, 2]]\n ]\n },\n stubs = {\n x: [[pi.startStubX, pi.endStubX], null, [pi.endStubX, pi.startStubX]],\n y: [[pi.startStubY, pi.endStubY], null, [pi.endStubY, pi.startStubY]]\n },\n midLines = {\n x: [[midx, pi.startStubY], [midx, pi.endStubY]],\n y: [[pi.startStubX, midy], [pi.endStubX, midy]]\n },\n linesToEnd = {\n x: [[pi.endStubX, pi.startStubY]],\n y: [[pi.startStubX, pi.endStubY]]\n },\n startToEnd = {\n x: [[pi.startStubX, pi.endStubY], [pi.endStubX, pi.endStubY]],\n y: [[pi.endStubX, pi.startStubY], [pi.endStubX, pi.endStubY]]\n },\n startToMidToEnd = {\n x: [[pi.startStubX, midy], [pi.endStubX, midy], [pi.endStubX, pi.endStubY]],\n y: [[midx, pi.startStubY], [midx, pi.endStubY], [pi.endStubX, pi.endStubY]]\n },\n otherStubs = {\n x: [pi.startStubY, pi.endStubY],\n y: [pi.startStubX, pi.endStubX]\n },\n soIdx = orientations[axis][0], toIdx = orientations[axis][1],\n _so = pi.so[soIdx] + 1,\n _to = pi.to[toIdx] + 1,\n otherFlipped = (pi.to[toIdx] === -1 && (otherStubs[axis][1] < otherStubs[axis][0])) || (pi.to[toIdx] === 1 && (otherStubs[axis][1] > otherStubs[axis][0])),\n stub1 = stubs[axis][_so][0],\n stub2 = stubs[axis][_so][1],\n segmentIndexes = sis[axis][_so][_to];\n if (pi.segment === segmentIndexes[3] || (pi.segment === segmentIndexes[2] && otherFlipped)) {\n return midLines[axis];\n }\n else if (pi.segment === segmentIndexes[2] && stub2 < stub1) {\n return linesToEnd[axis];\n }\n else if ((pi.segment === segmentIndexes[2] && stub2 >= stub1) || (pi.segment === segmentIndexes[1] && !otherFlipped)) {\n return startToMidToEnd[axis];\n }\n else if (pi.segment === segmentIndexes[0] || (pi.segment === segmentIndexes[1] && otherFlipped)) {\n return startToEnd[axis];\n }\n },\n orthogonal: function (axis, startStub, otherStartStub, endStub, otherEndStub) {\n var pi = paintInfo,\n extent = {\n \"x\": pi.so[0] === -1 ? Math.min(startStub, endStub) : Math.max(startStub, endStub),\n \"y\": pi.so[1] === -1 ? Math.min(startStub, endStub) : Math.max(startStub, endStub)\n }[axis];\n return {\n \"x\": [\n [extent, otherStartStub],\n [extent, otherEndStub],\n [endStub, otherEndStub]\n ],\n \"y\": [\n [otherStartStub, extent],\n [otherEndStub, extent],\n [otherEndStub, endStub]\n ]\n }[axis];\n },\n opposite: function (axis, ss, oss, es) {\n var pi = paintInfo,\n otherAxis = {\"x\": \"y\", \"y\": \"x\"}[axis],\n dim = {\"x\": \"height\", \"y\": \"width\"}[axis],\n comparator = pi[\"is\" + axis.toUpperCase() + \"GreaterThanStubTimes2\"];\n if (params.sourceEndpoint.elementId === params.targetEndpoint.elementId) {\n var _val = oss + ((1 - params.sourceEndpoint.anchor[otherAxis]) * params.sourceInfo[dim]) + _super.maxStub;\n return {\n \"x\": [\n [ss, _val],\n [es, _val]\n ],\n \"y\": [\n [_val, ss],\n [_val, es]\n ]\n }[axis];\n }\n else if (!comparator || (pi.so[idx] === 1 && ss > es) || (pi.so[idx] === -1 && ss < es)) {\n return {\n \"x\": [\n [ss, midy],\n [es, midy]\n ],\n \"y\": [\n [midx, ss],\n [midx, es]\n ]\n }[axis];\n }\n else if ((pi.so[idx] === 1 && ss < es) || (pi.so[idx] === -1 && ss > es)) {\n return {\n \"x\": [\n [midx, pi.sy],\n [midx, pi.ty]\n ],\n \"y\": [\n [pi.sx, midy],\n [pi.tx, midy]\n ]\n }[axis];\n }\n }\n };\n // compute the rest of the line\n var p = lineCalculators[paintInfo.anchorOrientation](paintInfo.sourceAxis, ss, oss, es, oes);\n if (p) {\n for (var i = 0; i < p.length; i++) {\n addSegment(segments, p[i][0], p[i][1], paintInfo);\n }\n }\n // line to end stub\n addSegment(segments, stubs[2], stubs[3], paintInfo);\n //}\n // end stub to end (common)\n addSegment(segments, paintInfo.tx, paintInfo.ty, paintInfo);\n // write out the segments.\n writeSegments(this, segments, paintInfo);\n };\n };\n _jp.Connectors.Flowchart = Flowchart;\n _ju.extend(_jp.Connectors.Flowchart, _jp.Connectors.AbstractConnector);\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the code for the Bezier connector type.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil;\n _jp.Connectors.AbstractBezierConnector = function(params) {\n params = params || {};\n var showLoopback = params.showLoopback !== false,\n curviness = params.curviness || 10,\n margin = params.margin || 5,\n proximityLimit = params.proximityLimit || 80,\n clockwise = params.orientation && params.orientation === \"clockwise\",\n loopbackRadius = params.loopbackRadius || 25,\n isLoopbackCurrently = false,\n _super;\n this._compute = function (paintInfo, p) {\n var sp = p.sourcePos,\n tp = p.targetPos,\n _w = Math.abs(sp[0] - tp[0]),\n _h = Math.abs(sp[1] - tp[1]);\n if (!showLoopback || (p.sourceEndpoint.elementId !== p.targetEndpoint.elementId)) {\n isLoopbackCurrently = false;\n this._computeBezier(paintInfo, p, sp, tp, _w, _h);\n } else {\n isLoopbackCurrently = true;\n // a loopback connector. draw an arc from one anchor to the other.\n var x1 = p.sourcePos[0], y1 = p.sourcePos[1] - margin,\n cx = x1, cy = y1 - loopbackRadius,\n // canvas sizing stuff, to ensure the whole painted area is visible.\n _x = cx - loopbackRadius,\n _y = cy - loopbackRadius;\n _w = 2 * loopbackRadius;\n _h = 2 * loopbackRadius;\n paintInfo.points[0] = _x;\n paintInfo.points[1] = _y;\n paintInfo.points[2] = _w;\n paintInfo.points[3] = _h;\n // ADD AN ARC SEGMENT.\n _super.addSegment(this, \"Arc\", {\n loopback: true,\n x1: (x1 - _x) + 4,\n y1: y1 - _y,\n startAngle: 0,\n endAngle: 2 * Math.PI,\n r: loopbackRadius,\n ac: !clockwise,\n x2: (x1 - _x) - 4,\n y2: y1 - _y,\n cx: cx - _x,\n cy: cy - _y\n });\n }\n };\n _super = _jp.Connectors.AbstractConnector.apply(this, arguments);\n return _super;\n };\n _ju.extend(_jp.Connectors.AbstractBezierConnector, _jp.Connectors.AbstractConnector);\n var Bezier = function (params) {\n params = params || {};\n this.type = \"Bezier\";\n var _super = _jp.Connectors.AbstractBezierConnector.apply(this, arguments),\n majorAnchor = params.curviness || 150,\n minorAnchor = 10;\n this.getCurviness = function () {\n return majorAnchor;\n };\n this._findControlPoint = function (point, sourceAnchorPosition, targetAnchorPosition, sourceEndpoint, targetEndpoint, soo, too) {\n // determine if the two anchors are perpendicular to each other in their orientation. we swap the control\n // points around if so (code could be tightened up)\n var perpendicular = soo[0] !== too[0] || soo[1] === too[1],\n p = [];\n if (!perpendicular) {\n if (soo[0] === 0) {\n p.push(sourceAnchorPosition[0] < targetAnchorPosition[0] ? point[0] + minorAnchor : point[0] - minorAnchor);\n }\n else {\n p.push(point[0] - (majorAnchor * soo[0]));\n }\n if (soo[1] === 0) {\n p.push(sourceAnchorPosition[1] < targetAnchorPosition[1] ? point[1] + minorAnchor : point[1] - minorAnchor);\n }\n else {\n p.push(point[1] + (majorAnchor * too[1]));\n }\n }\n else {\n if (too[0] === 0) {\n p.push(targetAnchorPosition[0] < sourceAnchorPosition[0] ? point[0] + minorAnchor : point[0] - minorAnchor);\n }\n else {\n p.push(point[0] + (majorAnchor * too[0]));\n }\n if (too[1] === 0) {\n p.push(targetAnchorPosition[1] < sourceAnchorPosition[1] ? point[1] + minorAnchor : point[1] - minorAnchor);\n }\n else {\n p.push(point[1] + (majorAnchor * soo[1]));\n }\n }\n return p;\n };\n this._computeBezier = function (paintInfo, p, sp, tp, _w, _h) {\n var _CP, _CP2,\n _sx = sp[0] < tp[0] ? _w : 0,\n _sy = sp[1] < tp[1] ? _h : 0,\n _tx = sp[0] < tp[0] ? 0 : _w,\n _ty = sp[1] < tp[1] ? 0 : _h;\n _CP = this._findControlPoint([_sx, _sy], sp, tp, p.sourceEndpoint, p.targetEndpoint, paintInfo.so, paintInfo.to);\n _CP2 = this._findControlPoint([_tx, _ty], tp, sp, p.targetEndpoint, p.sourceEndpoint, paintInfo.to, paintInfo.so);\n _super.addSegment(this, \"Bezier\", {\n x1: _sx, y1: _sy, x2: _tx, y2: _ty,\n cp1x: _CP[0], cp1y: _CP[1], cp2x: _CP2[0], cp2y: _CP2[1]\n });\n };\n };\n _jp.Connectors.Bezier = Bezier;\n _ju.extend(Bezier, _jp.Connectors.AbstractBezierConnector);\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the state machine connectors, which extend AbstractBezierConnector.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n * \n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil;\n var _segment = function (x1, y1, x2, y2) {\n if (x1 <= x2 && y2 <= y1) {\n return 1;\n }\n else if (x1 <= x2 && y1 <= y2) {\n return 2;\n }\n else if (x2 <= x1 && y2 >= y1) {\n return 3;\n }\n return 4;\n },\n // the control point we will use depends on the faces to which each end of the connection is assigned, specifically whether or not the\n // two faces are parallel or perpendicular. if they are parallel then the control point lies on the midpoint of the axis in which they\n // are parellel and varies only in the other axis; this variation is proportional to the distance that the anchor points lie from the\n // center of that face. if the two faces are perpendicular then the control point is at some distance from both the midpoints; the amount and\n // direction are dependent on the orientation of the two elements. 'seg', passed in to this method, tells you which segment the target element\n // lies in with respect to the source: 1 is top right, 2 is bottom right, 3 is bottom left, 4 is top left.\n //\n // sourcePos and targetPos are arrays of info about where on the source and target each anchor is located. their contents are:\n //\n // 0 - absolute x\n // 1 - absolute y\n // 2 - proportional x in element (0 is left edge, 1 is right edge)\n // 3 - proportional y in element (0 is top edge, 1 is bottom edge)\n //\n _findControlPoint = function (midx, midy, segment, sourceEdge, targetEdge, dx, dy, distance, proximityLimit) {\n // TODO (maybe)\n // - if anchor pos is 0.5, make the control point take into account the relative position of the elements.\n if (distance <= proximityLimit) {\n return [midx, midy];\n }\n if (segment === 1) {\n if (sourceEdge[3] <= 0 && targetEdge[3] >= 1) {\n return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ];\n }\n else if (sourceEdge[2] >= 1 && targetEdge[2] <= 0) {\n return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];\n }\n else {\n return [ midx + (-1 * dx) , midy + (-1 * dy) ];\n }\n }\n else if (segment === 2) {\n if (sourceEdge[3] >= 1 && targetEdge[3] <= 0) {\n return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ];\n }\n else if (sourceEdge[2] >= 1 && targetEdge[2] <= 0) {\n return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];\n }\n else {\n return [ midx + dx, midy + (-1 * dy) ];\n }\n }\n else if (segment === 3) {\n if (sourceEdge[3] >= 1 && targetEdge[3] <= 0) {\n return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ];\n }\n else if (sourceEdge[2] <= 0 && targetEdge[2] >= 1) {\n return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];\n }\n else {\n return [ midx + (-1 * dx) , midy + (-1 * dy) ];\n }\n }\n else if (segment === 4) {\n if (sourceEdge[3] <= 0 && targetEdge[3] >= 1) {\n return [ midx + (sourceEdge[2] < 0.5 ? -1 * dx : dx), midy ];\n }\n else if (sourceEdge[2] <= 0 && targetEdge[2] >= 1) {\n return [ midx, midy + (sourceEdge[3] < 0.5 ? -1 * dy : dy) ];\n }\n else {\n return [ midx + dx , midy + (-1 * dy) ];\n }\n }\n };\n var StateMachine = function (params) {\n params = params || {};\n this.type = \"StateMachine\";\n var _super = _jp.Connectors.AbstractBezierConnector.apply(this, arguments),\n curviness = params.curviness || 10,\n margin = params.margin || 5,\n proximityLimit = params.proximityLimit || 80,\n clockwise = params.orientation && params.orientation === \"clockwise\",\n _controlPoint;\n this._computeBezier = function(paintInfo, params, sp, tp, w, h) {\n var _sx = params.sourcePos[0] < params.targetPos[0] ? 0 : w,\n _sy = params.sourcePos[1] < params.targetPos[1] ? 0 : h,\n _tx = params.sourcePos[0] < params.targetPos[0] ? w : 0,\n _ty = params.sourcePos[1] < params.targetPos[1] ? h : 0;\n // now adjust for the margin\n if (params.sourcePos[2] === 0) {\n _sx -= margin;\n }\n if (params.sourcePos[2] === 1) {\n _sx += margin;\n }\n if (params.sourcePos[3] === 0) {\n _sy -= margin;\n }\n if (params.sourcePos[3] === 1) {\n _sy += margin;\n }\n if (params.targetPos[2] === 0) {\n _tx -= margin;\n }\n if (params.targetPos[2] === 1) {\n _tx += margin;\n }\n if (params.targetPos[3] === 0) {\n _ty -= margin;\n }\n if (params.targetPos[3] === 1) {\n _ty += margin;\n }\n //\n // these connectors are quadratic bezier curves, having a single control point. if both anchors\n // are located at 0.5 on their respective faces, the control point is set to the midpoint and you\n // get a straight line. this is also the case if the two anchors are within 'proximityLimit', since\n // it seems to make good aesthetic sense to do that. outside of that, the control point is positioned\n // at 'curviness' pixels away along the normal to the straight line connecting the two anchors.\n //\n // there may be two improvements to this. firstly, we might actually support the notion of avoiding nodes\n // in the UI, or at least making a good effort at doing so. if a connection would pass underneath some node,\n // for example, we might increase the distance the control point is away from the midpoint in a bid to\n // steer it around that node. this will work within limits, but i think those limits would also be the likely\n // limits for, once again, aesthetic good sense in the layout of a chart using these connectors.\n //\n // the second possible change is actually two possible changes: firstly, it is possible we should gradually\n // decrease the 'curviness' as the distance between the anchors decreases; start tailing it off to 0 at some\n // point (which should be configurable). secondly, we might slightly increase the 'curviness' for connectors\n // with respect to how far their anchor is from the center of its respective face. this could either look cool,\n // or stupid, and may indeed work only in a way that is so subtle as to have been a waste of time.\n //\n var _midx = (_sx + _tx) / 2,\n _midy = (_sy + _ty) / 2,\n segment = _segment(_sx, _sy, _tx, _ty),\n distance = Math.sqrt(Math.pow(_tx - _sx, 2) + Math.pow(_ty - _sy, 2)),\n cp1x, cp2x, cp1y, cp2y;\n // calculate the control point. this code will be where we'll put in a rudimentary element avoidance scheme; it\n // will work by extending the control point to force the curve to be, um, curvier.\n _controlPoint = _findControlPoint(_midx,\n _midy,\n segment,\n params.sourcePos,\n params.targetPos,\n curviness, curviness,\n distance,\n proximityLimit);\n cp1x = _controlPoint[0];\n cp2x = _controlPoint[0];\n cp1y = _controlPoint[1];\n cp2y = _controlPoint[1];\n _super.addSegment(this, \"Bezier\", {\n x1: _tx, y1: _ty, x2: _sx, y2: _sy,\n cp1x: cp1x, cp1y: cp1y,\n cp2x: cp2x, cp2y: cp2y\n });\n };\n };\n _jp.Connectors.StateMachine = StateMachine;\n _ju.extend(StateMachine, _jp.Connectors.AbstractBezierConnector);\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the 'flowchart' connectors, consisting of vertical and horizontal line segments.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil;\n var STRAIGHT = \"Straight\";\n var Straight = function (params) {\n this.type = STRAIGHT;\n var _super = _jp.Connectors.AbstractConnector.apply(this, arguments);\n this._compute = function (paintInfo, _) {\n _super.addSegment(this, STRAIGHT, {x1: paintInfo.sx, y1: paintInfo.sy, x2: paintInfo.startStubX, y2: paintInfo.startStubY});\n _super.addSegment(this, STRAIGHT, {x1: paintInfo.startStubX, y1: paintInfo.startStubY, x2: paintInfo.endStubX, y2: paintInfo.endStubY});\n _super.addSegment(this, STRAIGHT, {x1: paintInfo.endStubX, y1: paintInfo.endStubY, x2: paintInfo.tx, y2: paintInfo.ty});\n };\n };\n _jp.Connectors.Straight = Straight;\n _ju.extend(Straight, _jp.Connectors.AbstractConnector);\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains the SVG renderers.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n * \n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n * \n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n// ************************** SVG utility methods ********************************************\t\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil;\n var svgAttributeMap = {\n \"stroke-linejoin\": \"stroke-linejoin\",\n \"stroke-dashoffset\": \"stroke-dashoffset\",\n \"stroke-linecap\": \"stroke-linecap\"\n },\n STROKE_DASHARRAY = \"stroke-dasharray\",\n DASHSTYLE = \"dashstyle\",\n LINEAR_GRADIENT = \"linearGradient\",\n RADIAL_GRADIENT = \"radialGradient\",\n DEFS = \"defs\",\n FILL = \"fill\",\n STOP = \"stop\",\n STROKE = \"stroke\",\n STROKE_WIDTH = \"stroke-width\",\n STYLE = \"style\",\n NONE = \"none\",\n JSPLUMB_GRADIENT = \"jsplumb_gradient_\",\n LINE_WIDTH = \"strokeWidth\",\n ns = {\n svg: \"http://www.w3.org/2000/svg\"\n },\n _attr = function (node, attributes) {\n for (var i in attributes) {\n node.setAttribute(i, \"\" + attributes[i]);\n }\n },\n _node = function (name, attributes) {\n attributes = attributes || {};\n attributes.version = \"1.1\";\n attributes.xmlns = ns.svg;\n return _jp.createElementNS(ns.svg, name, null, null, attributes);\n },\n _pos = function (d) {\n return \"position:absolute;left:\" + d[0] + \"px;top:\" + d[1] + \"px\";\n },\n _clearGradient = function (parent) {\n var els = parent.querySelectorAll(\" defs,linearGradient,radialGradient\");\n for (var i = 0; i < els.length; i++) {\n els[i].parentNode.removeChild(els[i]);\n }\n },\n _updateGradient = function (parent, node, style, dimensions, uiComponent) {\n var id = JSPLUMB_GRADIENT + uiComponent._jsPlumb.instance.idstamp();\n // first clear out any existing gradient\n _clearGradient(parent);\n // this checks for an 'offset' property in the gradient, and in the absence of it, assumes\n // we want a linear gradient. if it's there, we create a radial gradient.\n // it is possible that a more explicit means of defining the gradient type would be\n // better. relying on 'offset' means that we can never have a radial gradient that uses\n // some default offset, for instance.\n // issue 244 suggested the 'gradientUnits' attribute; without this, straight/flowchart connectors with gradients would\n // not show gradients when the line was perfectly horizontal or vertical.\n var g;\n if (!style.gradient.offset) {\n g = _node(LINEAR_GRADIENT, {id: id, gradientUnits: \"userSpaceOnUse\"});\n }\n else {\n g = _node(RADIAL_GRADIENT, { id: id });\n }\n var defs = _node(DEFS);\n parent.appendChild(defs);\n defs.appendChild(g);\n // the svg radial gradient seems to treat stops in the reverse\n // order to how canvas does it. so we want to keep all the maths the same, but\n // iterate the actual style declarations in reverse order, if the x indexes are not in order.\n for (var i = 0; i < style.gradient.stops.length; i++) {\n var styleToUse = uiComponent.segment === 1 || uiComponent.segment === 2 ? i : style.gradient.stops.length - 1 - i,\n stopColor = style.gradient.stops[styleToUse][1],\n s = _node(STOP, {\"offset\": Math.floor(style.gradient.stops[i][0] * 100) + \"%\", \"stop-color\": stopColor});\n g.appendChild(s);\n }\n var applyGradientTo = style.stroke ? STROKE : FILL;\n node.setAttribute(applyGradientTo, \"url(#\" + id + \")\");\n },\n _applyStyles = function (parent, node, style, dimensions, uiComponent) {\n node.setAttribute(FILL, style.fill ? style.fill : NONE);\n node.setAttribute(STROKE, style.stroke ? style.stroke : NONE);\n if (style.gradient) {\n _updateGradient(parent, node, style, dimensions, uiComponent);\n }\n else {\n // make sure we clear any existing gradient\n _clearGradient(parent);\n node.setAttribute(STYLE, \"\");\n }\n if (style.strokeWidth) {\n node.setAttribute(STROKE_WIDTH, style.strokeWidth);\n }\n // in SVG there is a stroke-dasharray attribute we can set, and its syntax looks like\n // the syntax in VML but is actually kind of nasty: values are given in the pixel\n // coordinate space, whereas in VML they are multiples of the width of the stroked\n // line, which makes a lot more sense. for that reason, jsPlumb is supporting both\n // the native svg 'stroke-dasharray' attribute, and also the 'dashstyle' concept from\n // VML, which will be the preferred method. the code below this converts a dashstyle\n // attribute given in terms of stroke width into a pixel representation, by using the\n // stroke's lineWidth.\n if (style[DASHSTYLE] && style[LINE_WIDTH] && !style[STROKE_DASHARRAY]) {\n var sep = style[DASHSTYLE].indexOf(\",\") === -1 ? \" \" : \",\",\n parts = style[DASHSTYLE].split(sep),\n styleToUse = \"\";\n parts.forEach(function (p) {\n styleToUse += (Math.floor(p * style.strokeWidth) + sep);\n });\n node.setAttribute(STROKE_DASHARRAY, styleToUse);\n }\n else if (style[STROKE_DASHARRAY]) {\n node.setAttribute(STROKE_DASHARRAY, style[STROKE_DASHARRAY]);\n }\n // extra attributes such as join type, dash offset.\n for (var i in svgAttributeMap) {\n if (style[i]) {\n node.setAttribute(svgAttributeMap[i], style[i]);\n }\n }\n },\n _appendAtIndex = function (svg, path, idx) {\n if (svg.childNodes.length > idx) {\n svg.insertBefore(path, svg.childNodes[idx]);\n }\n else {\n svg.appendChild(path);\n }\n };\n /**\n utility methods for other objects to use.\n */\n _ju.svg = {\n node: _node,\n attr: _attr,\n pos: _pos\n };\n // ************************** / SVG utility methods ********************************************\n /*\n * Base class for SVG components.\n */\n var SvgComponent = function (params) {\n var pointerEventsSpec = params.pointerEventsSpec || \"all\", renderer = {};\n _jp.jsPlumbUIComponent.apply(this, params.originalArgs);\n this.canvas = null;\n this.path = null;\n this.svg = null;\n this.bgCanvas = null;\n var clazz = params.cssClass + \" \" + (params.originalArgs[0].cssClass || \"\"),\n svgParams = {\n \"style\": \"\",\n \"width\": 0,\n \"height\": 0,\n \"pointer-events\": pointerEventsSpec,\n \"position\": \"absolute\"\n };\n this.svg = _node(\"svg\", svgParams);\n if (params.useDivWrapper) {\n this.canvas = _jp.createElement(\"div\", { position : \"absolute\" });\n _ju.sizeElement(this.canvas, 0, 0, 1, 1);\n this.canvas.className = clazz;\n }\n else {\n _attr(this.svg, { \"class\": clazz });\n this.canvas = this.svg;\n }\n params._jsPlumb.appendElement(this.canvas, params.originalArgs[0].parent);\n if (params.useDivWrapper) {\n this.canvas.appendChild(this.svg);\n }\n var displayElements = [ this.canvas ];\n this.getDisplayElements = function () {\n return displayElements;\n };\n this.appendDisplayElement = function (el) {\n displayElements.push(el);\n };\n this.paint = function (style, anchor, extents) {\n if (style != null) {\n var xy = [ this.x, this.y ], wh = [ this.w, this.h ], p;\n if (extents != null) {\n if (extents.xmin < 0) {\n xy[0] += extents.xmin;\n }\n if (extents.ymin < 0) {\n xy[1] += extents.ymin;\n }\n wh[0] = extents.xmax + ((extents.xmin < 0) ? -extents.xmin : 0);\n wh[1] = extents.ymax + ((extents.ymin < 0) ? -extents.ymin : 0);\n }\n if (params.useDivWrapper) {\n _ju.sizeElement(this.canvas, xy[0], xy[1], wh[0] > 0 ? wh[0] : 1, wh[1] > 0 ? wh[1] : 1);\n xy[0] = 0;\n xy[1] = 0;\n p = _pos([ 0, 0 ]);\n }\n else {\n p = _pos([ xy[0], xy[1] ]);\n }\n renderer.paint.apply(this, arguments);\n _attr(this.svg, {\n \"style\": p,\n \"width\": wh[0] || 1,\n \"height\": wh[1] || 1\n });\n }\n };\n return {\n renderer: renderer\n };\n };\n _ju.extend(SvgComponent, _jp.jsPlumbUIComponent, {\n cleanup: function (force) {\n if (force || this.typeId == null) {\n if (this.canvas) {\n this.canvas._jsPlumb = null;\n }\n if (this.svg) {\n this.svg._jsPlumb = null;\n }\n if (this.bgCanvas) {\n this.bgCanvas._jsPlumb = null;\n }\n if (this.canvas && this.canvas.parentNode) {\n this.canvas.parentNode.removeChild(this.canvas);\n }\n if (this.bgCanvas && this.bgCanvas.parentNode) {\n this.canvas.parentNode.removeChild(this.canvas);\n }\n this.svg = null;\n this.canvas = null;\n this.path = null;\n this.group = null;\n this._jsPlumb = null;\n }\n else {\n // if not a forced cleanup, just detach from DOM for now.\n if (this.canvas && this.canvas.parentNode) {\n this.canvas.parentNode.removeChild(this.canvas);\n }\n if (this.bgCanvas && this.bgCanvas.parentNode) {\n this.bgCanvas.parentNode.removeChild(this.bgCanvas);\n }\n }\n },\n reattach:function(instance) {\n var c = instance.getContainer();\n if (this.canvas && this.canvas.parentNode == null) {\n c.appendChild(this.canvas);\n }\n if (this.bgCanvas && this.bgCanvas.parentNode == null) {\n c.appendChild(this.bgCanvas);\n }\n },\n setVisible: function (v) {\n if (this.canvas) {\n this.canvas.style.display = v ? \"block\" : \"none\";\n }\n }\n });\n /*\n * Base class for SVG connectors.\n */\n _jp.ConnectorRenderers.svg = function (params) {\n var self = this,\n _super = SvgComponent.apply(this, [\n {\n cssClass: params._jsPlumb.connectorClass,\n originalArgs: arguments,\n pointerEventsSpec: \"none\",\n _jsPlumb: params._jsPlumb\n }\n ]);\n _super.renderer.paint = function (style, anchor, extents) {\n var segments = self.getSegments(), p = \"\", offset = [0, 0];\n if (extents.xmin < 0) {\n offset[0] = -extents.xmin;\n }\n if (extents.ymin < 0) {\n offset[1] = -extents.ymin;\n }\n if (segments.length > 0) {\n p = self.getPathData();\n var a = {\n d: p,\n transform: \"translate(\" + offset[0] + \",\" + offset[1] + \")\",\n \"pointer-events\": params[\"pointer-events\"] || \"visibleStroke\"\n },\n outlineStyle = null,\n d = [self.x, self.y, self.w, self.h];\n // outline style. actually means drawing an svg object underneath the main one.\n if (style.outlineStroke) {\n var outlineWidth = style.outlineWidth || 1,\n outlineStrokeWidth = style.strokeWidth + (2 * outlineWidth);\n outlineStyle = _jp.extend({}, style);\n delete outlineStyle.gradient;\n outlineStyle.stroke = style.outlineStroke;\n outlineStyle.strokeWidth = outlineStrokeWidth;\n if (self.bgPath == null) {\n self.bgPath = _node(\"path\", a);\n _jp.addClass(self.bgPath, _jp.connectorOutlineClass);\n _appendAtIndex(self.svg, self.bgPath, 0);\n }\n else {\n _attr(self.bgPath, a);\n }\n _applyStyles(self.svg, self.bgPath, outlineStyle, d, self);\n }\n if (self.path == null) {\n self.path = _node(\"path\", a);\n _appendAtIndex(self.svg, self.path, style.outlineStroke ? 1 : 0);\n }\n else {\n _attr(self.path, a);\n }\n _applyStyles(self.svg, self.path, style, d, self);\n }\n };\n };\n _ju.extend(_jp.ConnectorRenderers.svg, SvgComponent);\n// ******************************* svg segment renderer *****************************************************\t\n// ******************************* /svg segments *****************************************************\n /*\n * Base class for SVG endpoints.\n */\n var SvgEndpoint = _jp.SvgEndpoint = function (params) {\n var _super = SvgComponent.apply(this, [\n {\n cssClass: params._jsPlumb.endpointClass,\n originalArgs: arguments,\n pointerEventsSpec: \"all\",\n useDivWrapper: true,\n _jsPlumb: params._jsPlumb\n }\n ]);\n _super.renderer.paint = function (style) {\n var s = _jp.extend({}, style);\n if (s.outlineStroke) {\n s.stroke = s.outlineStroke;\n }\n if (this.node == null) {\n this.node = this.makeNode(s);\n this.svg.appendChild(this.node);\n }\n else if (this.updateNode != null) {\n this.updateNode(this.node);\n }\n _applyStyles(this.svg, this.node, s, [ this.x, this.y, this.w, this.h ], this);\n _pos(this.node, [ this.x, this.y ]);\n }.bind(this);\n };\n _ju.extend(SvgEndpoint, SvgComponent);\n /*\n * SVG Dot Endpoint\n */\n _jp.Endpoints.svg.Dot = function () {\n _jp.Endpoints.Dot.apply(this, arguments);\n SvgEndpoint.apply(this, arguments);\n this.makeNode = function (style) {\n return _node(\"circle\", {\n \"cx\": this.w / 2,\n \"cy\": this.h / 2,\n \"r\": this.radius\n });\n };\n this.updateNode = function (node) {\n _attr(node, {\n \"cx\": this.w / 2,\n \"cy\": this.h / 2,\n \"r\": this.radius\n });\n };\n };\n _ju.extend(_jp.Endpoints.svg.Dot, [_jp.Endpoints.Dot, SvgEndpoint]);\n /*\n * SVG Rectangle Endpoint\n */\n _jp.Endpoints.svg.Rectangle = function () {\n _jp.Endpoints.Rectangle.apply(this, arguments);\n SvgEndpoint.apply(this, arguments);\n this.makeNode = function (style) {\n return _node(\"rect\", {\n \"width\": this.w,\n \"height\": this.h\n });\n };\n this.updateNode = function (node) {\n _attr(node, {\n \"width\": this.w,\n \"height\": this.h\n });\n };\n };\n _ju.extend(_jp.Endpoints.svg.Rectangle, [_jp.Endpoints.Rectangle, SvgEndpoint]);\n /*\n * SVG Image Endpoint is the default image endpoint.\n */\n _jp.Endpoints.svg.Image = _jp.Endpoints.Image;\n /*\n * Blank endpoint in svg renderer is the default Blank endpoint.\n */\n _jp.Endpoints.svg.Blank = _jp.Endpoints.Blank;\n /*\n * Label overlay in svg renderer is the default Label overlay.\n */\n _jp.Overlays.svg.Label = _jp.Overlays.Label;\n /*\n * Custom overlay in svg renderer is the default Custom overlay.\n */\n _jp.Overlays.svg.Custom = _jp.Overlays.Custom;\n var AbstractSvgArrowOverlay = function (superclass, originalArgs) {\n superclass.apply(this, originalArgs);\n _jp.jsPlumbUIComponent.apply(this, originalArgs);\n this.isAppendedAtTopLevel = false;\n var self = this;\n this.path = null;\n this.paint = function (params, containerExtents) {\n // only draws on connections, not endpoints.\n if (params.component.svg && containerExtents) {\n if (this.path == null) {\n this.path = _node(\"path\", {\n \"pointer-events\": \"all\"\n });\n params.component.svg.appendChild(this.path);\n if (this.elementCreated) {\n this.elementCreated(this.path, params.component);\n }\n this.canvas = params.component.svg; // for the sake of completeness; this behaves the same as other overlays\n }\n var clazz = originalArgs && (originalArgs.length === 1) ? (originalArgs[0].cssClass || \"\") : \"\",\n offset = [0, 0];\n if (containerExtents.xmin < 0) {\n offset[0] = -containerExtents.xmin;\n }\n if (containerExtents.ymin < 0) {\n offset[1] = -containerExtents.ymin;\n }\n _attr(this.path, {\n \"d\": makePath(params.d),\n \"class\": clazz,\n stroke: params.stroke ? params.stroke : null,\n fill: params.fill ? params.fill : null,\n transform: \"translate(\" + offset[0] + \",\" + offset[1] + \")\"\n });\n }\n };\n var makePath = function (d) {\n return (isNaN(d.cxy.x) || isNaN(d.cxy.y)) ? \"\" : \"M\" + d.hxy.x + \",\" + d.hxy.y +\n \" L\" + d.tail[0].x + \",\" + d.tail[0].y +\n \" L\" + d.cxy.x + \",\" + d.cxy.y +\n \" L\" + d.tail[1].x + \",\" + d.tail[1].y +\n \" L\" + d.hxy.x + \",\" + d.hxy.y;\n };\n this.transfer = function(target) {\n if (target.canvas && this.path && this.path.parentNode) {\n this.path.parentNode.removeChild(this.path);\n target.canvas.appendChild(this.path);\n }\n };\n };\n var svgProtoFunctions = {\n cleanup : function (force) {\n if (this.path != null) {\n if (force) {\n this._jsPlumb.instance.removeElement(this.path);\n }\n else {\n if (this.path.parentNode) {\n this.path.parentNode.removeChild(this.path);\n }\n }\n }\n }, reattach :function(instance, component) {\n if (this.path && component.canvas) {\n component.canvas.appendChild(this.path);\n }\n },\n setVisible : function (v) {\n if (this.path != null) {\n (this.path.style.display = (v ? \"block\" : \"none\"));\n }\n }\n };\n _ju.extend(AbstractSvgArrowOverlay, [_jp.jsPlumbUIComponent, _jp.Overlays.AbstractOverlay]);\n _jp.Overlays.svg.Arrow = function () {\n AbstractSvgArrowOverlay.apply(this, [_jp.Overlays.Arrow, arguments]);\n };\n _ju.extend(_jp.Overlays.svg.Arrow, [ _jp.Overlays.Arrow, AbstractSvgArrowOverlay ], svgProtoFunctions);\n _jp.Overlays.svg.PlainArrow = function () {\n AbstractSvgArrowOverlay.apply(this, [_jp.Overlays.PlainArrow, arguments]);\n };\n _ju.extend(_jp.Overlays.svg.PlainArrow, [ _jp.Overlays.PlainArrow, AbstractSvgArrowOverlay ], svgProtoFunctions);\n _jp.Overlays.svg.Diamond = function () {\n AbstractSvgArrowOverlay.apply(this, [_jp.Overlays.Diamond, arguments]);\n };\n _ju.extend(_jp.Overlays.svg.Diamond, [ _jp.Overlays.Diamond, AbstractSvgArrowOverlay ], svgProtoFunctions);\n // a test\n _jp.Overlays.svg.GuideLines = function () {\n var path = null, self = this, p1_1, p1_2;\n _jp.Overlays.GuideLines.apply(this, arguments);\n this.paint = function (params, containerExtents) {\n if (path == null) {\n path = _node(\"path\");\n params.connector.svg.appendChild(path);\n self.attachListeners(path, params.connector);\n self.attachListeners(path, self);\n p1_1 = _node(\"path\");\n params.connector.svg.appendChild(p1_1);\n self.attachListeners(p1_1, params.connector);\n self.attachListeners(p1_1, self);\n p1_2 = _node(\"path\");\n params.connector.svg.appendChild(p1_2);\n self.attachListeners(p1_2, params.connector);\n self.attachListeners(p1_2, self);\n }\n var offset = [0, 0];\n if (containerExtents.xmin < 0) {\n offset[0] = -containerExtents.xmin;\n }\n if (containerExtents.ymin < 0) {\n offset[1] = -containerExtents.ymin;\n }\n _attr(path, {\n \"d\": makePath(params.head, params.tail),\n stroke: \"red\",\n fill: null,\n transform: \"translate(\" + offset[0] + \",\" + offset[1] + \")\"\n });\n _attr(p1_1, {\n \"d\": makePath(params.tailLine[0], params.tailLine[1]),\n stroke: \"blue\",\n fill: null,\n transform: \"translate(\" + offset[0] + \",\" + offset[1] + \")\"\n });\n _attr(p1_2, {\n \"d\": makePath(params.headLine[0], params.headLine[1]),\n stroke: \"green\",\n fill: null,\n transform: \"translate(\" + offset[0] + \",\" + offset[1] + \")\"\n });\n };\n var makePath = function (d1, d2) {\n return \"M \" + d1.x + \",\" + d1.y +\n \" L\" + d2.x + \",\" + d2.y;\n };\n };\n _ju.extend(_jp.Overlays.svg.GuideLines, _jp.Overlays.GuideLines);\n}).call(typeof window !== 'undefined' ? window : this);\n/*\n * This file contains code used when jsPlumb is being rendered in a DOM.\n *\n * Copyright (c) 2010 - 2020 jsPlumb (hello@jsplumbtoolkit.com)\n *\n * https://jsplumbtoolkit.com\n * https://github.com/jsplumb/jsplumb\n *\n * Dual licensed under the MIT and GPL2 licenses.\n */\n;\n(function () {\n \"use strict\";\n var root = this, _jp = root.jsPlumb, _ju = root.jsPlumbUtil,\n _jk = root.Katavorio, _jg = root.Biltong;\n var _getEventManager = function(instance) {\n var e = instance._mottle;\n if (!e) {\n e = instance._mottle = new root.Mottle();\n }\n return e;\n };\n var _getDragManager = function (instance, category) {\n category = category || \"main\";\n var key = \"_katavorio_\" + category;\n var k = instance[key],\n e = instance.getEventManager();\n if (!k) {\n k = new _jk({\n bind: e.on,\n unbind: e.off,\n getSize: _jp.getSize,\n getConstrainingRectangle:function(el) {\n return [ el.parentNode.scrollWidth, el.parentNode.scrollHeight ];\n },\n getPosition: function (el, relativeToRoot) {\n // if this is a nested draggable then compute the offset against its own offsetParent, otherwise\n // compute against the Container's origin. see also the getUIPosition method below.\n var o = instance.getOffset(el, relativeToRoot, el._katavorioDrag ? el.offsetParent : null);\n return [o.left, o.top];\n },\n setPosition: function (el, xy) {\n el.style.left = xy[0] + \"px\";\n el.style.top = xy[1] + \"px\";\n },\n addClass: _jp.addClass,\n removeClass: _jp.removeClass,\n intersects: _jg.intersects,\n indexOf: function(l, i) { return l.indexOf(i); },\n scope:instance.getDefaultScope(),\n css: {\n noSelect: instance.dragSelectClass,\n droppable: \"jtk-droppable\",\n draggable: \"jtk-draggable\",\n drag: \"jtk-drag\",\n selected: \"jtk-drag-selected\",\n active: \"jtk-drag-active\",\n hover: \"jtk-drag-hover\",\n ghostProxy:\"jtk-ghost-proxy\"\n }\n });\n k.setZoom(instance.getZoom());\n instance[key] = k;\n instance.bind(\"zoom\", k.setZoom);\n }\n return k;\n };\n var _dragStart=function(params) {\n var options = params.el._jsPlumbDragOptions;\n var cont = true;\n if (options.canDrag) {\n cont = options.canDrag();\n }\n if (cont) {\n this.setHoverSuspended(true);\n this.select({source: params.el}).addClass(this.elementDraggingClass + \" \" + this.sourceElementDraggingClass, true);\n this.select({target: params.el}).addClass(this.elementDraggingClass + \" \" + this.targetElementDraggingClass, true);\n this.setConnectionBeingDragged(true);\n }\n return cont;\n };\n var _dragMove=function(params) {\n var ui = this.getUIPosition(arguments, this.getZoom());\n if (ui != null) {\n var o = params.el._jsPlumbDragOptions;\n this.draw(params.el, ui, null, true);\n if (o._dragging) {\n this.addClass(params.el, \"jtk-dragged\");\n }\n o._dragging = true;\n }\n };\n var _dragStop=function(params) {\n var elements = params.selection, uip;\n var _one = function (_e) {\n var drawResult;\n if (_e[1] != null) {\n // run the reported offset through the code that takes parent containers\n // into account, to adjust if necessary (issue 554)\n uip = this.getUIPosition([{\n el:_e[2].el,\n pos:[_e[1].left, _e[1].top]\n }]);\n drawResult = this.draw(_e[2].el, uip);\n }\n if (_e[0]._jsPlumbDragOptions != null) {\n delete _e[0]._jsPlumbDragOptions._dragging;\n }\n this.removeClass(_e[0], \"jtk-dragged\");\n this.select({source: _e[2].el}).removeClass(this.elementDraggingClass + \" \" + this.sourceElementDraggingClass, true);\n this.select({target: _e[2].el}).removeClass(this.elementDraggingClass + \" \" + this.targetElementDraggingClass, true);\n params.e._drawResult = params.e._drawResult || {c:[],e:[], a:[]};\n Array.prototype.push.apply(params.e._drawResult.c, drawResult.c);\n Array.prototype.push.apply(params.e._drawResult.e, drawResult.e);\n Array.prototype.push.apply(params.e._drawResult.a, drawResult.a);\n this.getDragManager().dragEnded(_e[2].el);\n }.bind(this);\n for (var i = 0; i < elements.length; i++) {\n _one(elements[i]);\n }\n this.setHoverSuspended(false);\n this.setConnectionBeingDragged(false);\n };\n var _animProps = function (o, p) {\n var _one = function (pName) {\n if (p[pName] != null) {\n if (_ju.isString(p[pName])) {\n var m = p[pName].match(/-=/) ? -1 : 1,\n v = p[pName].substring(2);\n return o[pName] + (m * v);\n }\n else {\n return p[pName];\n }\n }\n else {\n return o[pName];\n }\n };\n return [ _one(\"left\"), _one(\"top\") ];\n };\n var _genLoc = function (prefix, e) {\n if (e == null) {\n return [ 0, 0 ];\n }\n var ts = _touches(e), t = _getTouch(ts, 0);\n return [t[prefix + \"X\"], t[prefix + \"Y\"]];\n },\n _pageLocation = _genLoc.bind(this, \"page\"),\n _screenLocation = _genLoc.bind(this, \"screen\"),\n _clientLocation = _genLoc.bind(this, \"client\"),\n _getTouch = function (touches, idx) {\n return touches.item ? touches.item(idx) : touches[idx];\n },\n _touches = function (e) {\n return e.touches && e.touches.length > 0 ? e.touches :\n e.changedTouches && e.changedTouches.length > 0 ? e.changedTouches :\n e.targetTouches && e.targetTouches.length > 0 ? e.targetTouches :\n [ e ];\n };\n /**\n Manages dragging for some instance of jsPlumb.\n TODO instead of this being accessed directly, it should subscribe to events on the jsPlumb instance: every method\n in here is called directly by jsPlumb. But what should happen is that we have unpublished events that this listens\n to. The only trick is getting one of these instantiated with every jsPlumb instance: it needs to have a hook somehow.\n Basically the general idea is to pull ALL the drag code out (prototype method registrations plus this) into a\n dedicated drag script), that does not necessarily need to be included.\n */\n var DragManager = function (_currentInstance) {\n var _draggables = {}, _dlist = [], _delements = {}, _elementsWithEndpoints = {},\n // elementids mapped to the draggable to which they belong.\n _draggablesForElements = {};\n /**\n register some element as draggable. right now the drag init stuff is done elsewhere, and it is\n possible that will continue to be the case.\n */\n this.register = function (el) {\n var id = _currentInstance.getId(el),\n parentOffset;\n if (!_draggables[id]) {\n _draggables[id] = el;\n _dlist.push(el);\n _delements[id] = {};\n }\n // look for child elements that have endpoints and register them against this draggable.\n var _oneLevel = function (p) {\n if (p) {\n for (var i = 0; i < p.childNodes.length; i++) {\n if (p.childNodes[i].nodeType !== 3 && p.childNodes[i].nodeType !== 8) {\n var cEl = jsPlumb.getElement(p.childNodes[i]),\n cid = _currentInstance.getId(p.childNodes[i], null, true);\n if (cid && _elementsWithEndpoints[cid] && _elementsWithEndpoints[cid] > 0) {\n if (!parentOffset) {\n parentOffset = _currentInstance.getOffset(el);\n }\n var cOff = _currentInstance.getOffset(cEl);\n _delements[id][cid] = {\n id: cid,\n offset: {\n left: cOff.left - parentOffset.left,\n top: cOff.top - parentOffset.top\n }\n };\n _draggablesForElements[cid] = id;\n }\n _oneLevel(p.childNodes[i]);\n }\n }\n }\n };\n _oneLevel(el);\n };\n // refresh the offsets for child elements of this element.\n this.updateOffsets = function (elId, childOffsetOverrides) {\n if (elId != null) {\n childOffsetOverrides = childOffsetOverrides || {};\n var domEl = jsPlumb.getElement(elId),\n id = _currentInstance.getId(domEl),\n children = _delements[id],\n parentOffset;\n if (children) {\n for (var i in children) {\n if (children.hasOwnProperty(i)) {\n var cel = jsPlumb.getElement(i),\n cOff = childOffsetOverrides[i] || _currentInstance.getOffset(cel);\n // do not update if we have a value already and we'd just be writing 0,0\n if (cel.offsetParent == null && _delements[id][i] != null) {\n continue;\n }\n if (!parentOffset) {\n parentOffset = _currentInstance.getOffset(domEl);\n }\n _delements[id][i] = {\n id: i,\n offset: {\n left: cOff.left - parentOffset.left,\n top: cOff.top - parentOffset.top\n }\n };\n _draggablesForElements[i] = id;\n }\n }\n }\n }\n };\n /**\n notification that an endpoint was added to the given el. we go up from that el's parent\n node, looking for a parent that has been registered as a draggable. if we find one, we add this\n el to that parent's list of elements to update on drag (if it is not there already)\n */\n this.endpointAdded = function (el, id) {\n id = id || _currentInstance.getId(el);\n var b = document.body,\n p = el.parentNode;\n _elementsWithEndpoints[id] = _elementsWithEndpoints[id] ? _elementsWithEndpoints[id] + 1 : 1;\n while (p != null && p !== b) {\n var pid = _currentInstance.getId(p, null, true);\n if (pid && _draggables[pid]) {\n var pLoc = _currentInstance.getOffset(p);\n if (_delements[pid][id] == null) {\n var cLoc = _currentInstance.getOffset(el);\n _delements[pid][id] = {\n id: id,\n offset: {\n left: cLoc.left - pLoc.left,\n top: cLoc.top - pLoc.top\n }\n };\n _draggablesForElements[id] = pid;\n }\n break;\n }\n p = p.parentNode;\n }\n };\n this.endpointDeleted = function (endpoint) {\n if (_elementsWithEndpoints[endpoint.elementId]) {\n _elementsWithEndpoints[endpoint.elementId]--;\n if (_elementsWithEndpoints[endpoint.elementId] <= 0) {\n for (var i in _delements) {\n if (_delements.hasOwnProperty(i) && _delements[i]) {\n delete _delements[i][endpoint.elementId];\n delete _draggablesForElements[endpoint.elementId];\n }\n }\n }\n }\n };\n this.changeId = function (oldId, newId) {\n _delements[newId] = _delements[oldId];\n _delements[oldId] = {};\n _draggablesForElements[newId] = _draggablesForElements[oldId];\n _draggablesForElements[oldId] = null;\n };\n this.getElementsForDraggable = function (id) {\n return _delements[id];\n };\n this.elementRemoved = function (elementId) {\n var elId = _draggablesForElements[elementId];\n if (elId) {\n _delements[elId] && delete _delements[elId][elementId];\n delete _draggablesForElements[elementId];\n }\n };\n this.reset = function () {\n _draggables = {};\n _dlist = [];\n _delements = {};\n _elementsWithEndpoints = {};\n };\n //\n // notification drag ended. We check automatically if need to update some\n // ancestor's offsets.\n //\n this.dragEnded = function (el) {\n if (el.offsetParent != null) {\n var id = _currentInstance.getId(el),\n ancestor = _draggablesForElements[id];\n if (ancestor) {\n this.updateOffsets(ancestor);\n }\n }\n };\n this.setParent = function (el, elId, p, pId, currentChildLocation) {\n var current = _draggablesForElements[elId];\n if (!_delements[pId]) {\n _delements[pId] = {};\n }\n var pLoc = _currentInstance.getOffset(p),\n cLoc = currentChildLocation || _currentInstance.getOffset(el);\n if (current && _delements[current]) {\n delete _delements[current][elId];\n }\n _delements[pId][elId] = {\n id:elId,\n offset : {\n left: cLoc.left - pLoc.left,\n top: cLoc.top - pLoc.top\n }\n };\n _draggablesForElements[elId] = pId;\n };\n this.clearParent = function(el, elId) {\n var current = _draggablesForElements[elId];\n if (current) {\n delete _delements[current][elId];\n delete _draggablesForElements[elId];\n }\n };\n this.revalidateParent = function(el, elId, childOffset) {\n var current = _draggablesForElements[elId];\n if (current) {\n var co = {};\n co[elId] = childOffset;\n this.updateOffsets(current, co);\n _currentInstance.revalidate(current);\n }\n };\n this.getDragAncestor = function (el) {\n var de = jsPlumb.getElement(el),\n id = _currentInstance.getId(de),\n aid = _draggablesForElements[id];\n if (aid) {\n return jsPlumb.getElement(aid);\n }\n else {\n return null;\n }\n };\n };\n var _setClassName = function (el, cn, classList) {\n cn = _ju.fastTrim(cn);\n if (typeof el.className.baseVal !== \"undefined\") {\n el.className.baseVal = cn;\n }\n else {\n el.className = cn;\n }\n // recent (i currently have 61.0.3163.100) version of chrome do not update classList when you set the base val\n // of an svg element's className. in the long run we'd like to move to just using classList anyway\n try {\n var cl = el.classList;\n if (cl != null) {\n while (cl.length > 0) {\n cl.remove(cl.item(0));\n }\n for (var i = 0; i < classList.length; i++) {\n if (classList[i]) {\n cl.add(classList[i]);\n }\n }\n }\n }\n catch(e) {\n // not fatal\n _ju.log(\"JSPLUMB: cannot set class list\", e);\n }\n },\n _getClassName = function (el) {\n return (typeof el.className.baseVal === \"undefined\") ? el.className : el.className.baseVal;\n },\n _classManip = function (el, classesToAdd, classesToRemove) {\n classesToAdd = classesToAdd == null ? [] : _ju.isArray(classesToAdd) ? classesToAdd : classesToAdd.split(/\\s+/);\n classesToRemove = classesToRemove == null ? [] : _ju.isArray(classesToRemove) ? classesToRemove : classesToRemove.split(/\\s+/);\n var className = _getClassName(el),\n curClasses = className.split(/\\s+/);\n var _oneSet = function (add, classes) {\n for (var i = 0; i < classes.length; i++) {\n if (add) {\n if (curClasses.indexOf(classes[i]) === -1) {\n curClasses.push(classes[i]);\n }\n }\n else {\n var idx = curClasses.indexOf(classes[i]);\n if (idx !== -1) {\n curClasses.splice(idx, 1);\n }\n }\n }\n };\n _oneSet(true, classesToAdd);\n _oneSet(false, classesToRemove);\n _setClassName(el, curClasses.join(\" \"), curClasses);\n };\n root.jsPlumb.extend(root.jsPlumbInstance.prototype, {\n headless: false,\n pageLocation: _pageLocation,\n screenLocation: _screenLocation,\n clientLocation: _clientLocation,\n getDragManager:function() {\n if (this.dragManager == null) {\n this.dragManager = new DragManager(this);\n }\n return this.dragManager;\n },\n recalculateOffsets:function(elId) {\n this.getDragManager().updateOffsets(elId);\n },\n createElement:function(tag, style, clazz, atts) {\n return this.createElementNS(null, tag, style, clazz, atts);\n },\n createElementNS:function(ns, tag, style, clazz, atts) {\n var e = ns == null ? document.createElement(tag) : document.createElementNS(ns, tag);\n var i;\n style = style || {};\n for (i in style) {\n e.style[i] = style[i];\n }\n if (clazz) {\n e.className = clazz;\n }\n atts = atts || {};\n for (i in atts) {\n e.setAttribute(i, \"\" + atts[i]);\n }\n return e;\n },\n getAttribute: function (el, attName) {\n return el.getAttribute != null ? el.getAttribute(attName) : null;\n },\n setAttribute: function (el, a, v) {\n if (el.setAttribute != null) {\n el.setAttribute(a, v);\n }\n },\n setAttributes: function (el, atts) {\n for (var i in atts) {\n if (atts.hasOwnProperty(i)) {\n el.setAttribute(i, atts[i]);\n }\n }\n },\n appendToRoot: function (node) {\n document.body.appendChild(node);\n },\n getRenderModes: function () {\n return [ \"svg\" ];\n },\n getClass:_getClassName,\n addClass: function (el, clazz) {\n jsPlumb.each(el, function (e) {\n _classManip(e, clazz);\n });\n },\n hasClass: function (el, clazz) {\n el = jsPlumb.getElement(el);\n if (el.classList) {\n return el.classList.contains(clazz);\n }\n else {\n return _getClassName(el).indexOf(clazz) !== -1;\n }\n },\n removeClass: function (el, clazz) {\n jsPlumb.each(el, function (e) {\n _classManip(e, null, clazz);\n });\n },\n toggleClass:function(el, clazz) {\n if (jsPlumb.hasClass(el, clazz)) {\n jsPlumb.removeClass(el, clazz);\n } else {\n jsPlumb.addClass(el, clazz);\n }\n },\n updateClasses: function (el, toAdd, toRemove) {\n jsPlumb.each(el, function (e) {\n _classManip(e, toAdd, toRemove);\n });\n },\n setClass: function (el, clazz) {\n if (clazz != null) {\n jsPlumb.each(el, function (e) {\n _setClassName(e, clazz, clazz.split(/\\s+/));\n });\n }\n },\n setPosition: function (el, p) {\n el.style.left = p.left + \"px\";\n el.style.top = p.top + \"px\";\n },\n getPosition: function (el) {\n var _one = function (prop) {\n var v = el.style[prop];\n return v ? v.substring(0, v.length - 2) : 0;\n };\n return {\n left: _one(\"left\"),\n top: _one(\"top\")\n };\n },\n getStyle:function(el, prop) {\n if (typeof window.getComputedStyle !== 'undefined') {\n return getComputedStyle(el, null).getPropertyValue(prop);\n } else {\n return el.currentStyle[prop];\n }\n },\n getSelector: function (ctx, spec) {\n var sel = null;\n if (arguments.length === 1) {\n sel = ctx.nodeType != null ? ctx : document.querySelectorAll(ctx);\n }\n else {\n sel = ctx.querySelectorAll(spec);\n }\n return sel;\n },\n getOffset:function(el, relativeToRoot, container) {\n el = jsPlumb.getElement(el);\n container = container || this.getContainer();\n var out = {\n left: el.offsetLeft,\n top: el.offsetTop\n },\n op = (relativeToRoot || (container != null && (el !== container && el.offsetParent !== container))) ? el.offsetParent : null,\n _maybeAdjustScroll = function(offsetParent) {\n if (offsetParent != null && offsetParent !== document.body && (offsetParent.scrollTop > 0 || offsetParent.scrollLeft > 0)) {\n out.left -= offsetParent.scrollLeft;\n out.top -= offsetParent.scrollTop;\n }\n }.bind(this);\n while (op != null) {\n out.left += op.offsetLeft;\n out.top += op.offsetTop;\n _maybeAdjustScroll(op);\n op = relativeToRoot ? op.offsetParent :\n op.offsetParent === container ? null : op.offsetParent;\n }\n // if container is scrolled and the element (or its offset parent) is not absolute or fixed, adjust accordingly.\n if (container != null && !relativeToRoot && (container.scrollTop > 0 || container.scrollLeft > 0)) {\n var pp = el.offsetParent != null ? this.getStyle(el.offsetParent, \"position\") : \"static\",\n p = this.getStyle(el, \"position\");\n if (p !== \"absolute\" && p !== \"fixed\" && pp !== \"absolute\" && pp !== \"fixed\") {\n out.left -= container.scrollLeft;\n out.top -= container.scrollTop;\n }\n }\n return out;\n },\n //\n // return x+y proportion of the given element's size corresponding to the location of the given event.\n //\n getPositionOnElement: function (evt, el, zoom) {\n var box = typeof el.getBoundingClientRect !== \"undefined\" ? el.getBoundingClientRect() : { left: 0, top: 0, width: 0, height: 0 },\n body = document.body,\n docElem = document.documentElement,\n scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop,\n scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft,\n clientTop = docElem.clientTop || body.clientTop || 0,\n clientLeft = docElem.clientLeft || body.clientLeft || 0,\n pst = 0,\n psl = 0,\n top = box.top + scrollTop - clientTop + (pst * zoom),\n left = box.left + scrollLeft - clientLeft + (psl * zoom),\n cl = jsPlumb.pageLocation(evt),\n w = box.width || (el.offsetWidth * zoom),\n h = box.height || (el.offsetHeight * zoom),\n x = (cl[0] - left) / w,\n y = (cl[1] - top) / h;\n return [ x, y ];\n },\n /**\n * Gets the absolute position of some element as read from the left/top properties in its style.\n * @method getAbsolutePosition\n * @param {Element} el The element to retrieve the absolute coordinates from. **Note** this is a DOM element, not a selector from the underlying library.\n * @return {Number[]} [left, top] pixel values.\n */\n getAbsolutePosition: function (el) {\n var _one = function (s) {\n var ss = el.style[s];\n if (ss) {\n return parseFloat(ss.substring(0, ss.length - 2));\n }\n };\n return [ _one(\"left\"), _one(\"top\") ];\n },\n /**\n * Sets the absolute position of some element by setting the left/top properties in its style.\n * @method setAbsolutePosition\n * @param {Element} el The element to set the absolute coordinates on. **Note** this is a DOM element, not a selector from the underlying library.\n * @param {Number[]} xy x and y coordinates\n * @param {Number[]} [animateFrom] Optional previous xy to animate from.\n * @param {Object} [animateOptions] Options for the animation.\n */\n setAbsolutePosition: function (el, xy, animateFrom, animateOptions) {\n if (animateFrom) {\n this.animate(el, {\n left: \"+=\" + (xy[0] - animateFrom[0]),\n top: \"+=\" + (xy[1] - animateFrom[1])\n }, animateOptions);\n }\n else {\n el.style.left = xy[0] + \"px\";\n el.style.top = xy[1] + \"px\";\n }\n },\n /**\n * gets the size for the element, in an array : [ width, height ].\n */\n getSize: function (el) {\n return [ el.offsetWidth, el.offsetHeight ];\n },\n getWidth: function (el) {\n return el.offsetWidth;\n },\n getHeight: function (el) {\n return el.offsetHeight;\n },\n getRenderMode : function() { return \"svg\"; },\n draggable : function (el, options) {\n var info;\n el = _ju.isArray(el) || (el.length != null && !_ju.isString(el)) ? el: [ el ];\n Array.prototype.slice.call(el).forEach(function(_el) {\n info = this.info(_el);\n if (info.el) {\n this._initDraggableIfNecessary(info.el, true, options, info.id, true);\n }\n }.bind(this));\n return this;\n },\n snapToGrid : function(el, x, y) {\n var out = [];\n var _oneEl = function(_el) {\n var info = this.info(_el);\n if (info.el != null && info.el._katavorioDrag) {\n var snapped = info.el._katavorioDrag.snap(x, y);\n this.revalidate(info.el);\n out.push([info.el, snapped]);\n }\n }.bind(this);\n // if you call this method with 0 arguments or 2 arguments it is assumed you want to snap all managed elements to\n // a grid. if you supply one argument or 3, then you are assumed to be specifying one element.\n if(arguments.length === 1 || arguments.length === 3) {\n _oneEl(el, x, y);\n } else {\n var _me = this.getManagedElements();\n for (var mel in _me) {\n _oneEl(mel, arguments[0], arguments[1]);\n }\n }\n return out;\n },\n initDraggable: function (el, options, category) {\n _getDragManager(this, category).draggable(el, options);\n el._jsPlumbDragOptions = options;\n },\n destroyDraggable: function (el, category) {\n _getDragManager(this, category).destroyDraggable(el);\n el._jsPlumbDragOptions = null;\n el._jsPlumbRelatedElement = null;\n },\n unbindDraggable: function (el, evt, fn, category) {\n _getDragManager(this, category).destroyDraggable(el, evt, fn);\n },\n setDraggable : function (element, draggable) {\n return jsPlumb.each(element, function (el) {\n if (this.isDragSupported(el)) {\n this._draggableStates[this.getAttribute(el, \"id\")] = draggable;\n this.setElementDraggable(el, draggable);\n }\n }.bind(this));\n },\n _draggableStates : {},\n /*\n * toggles the draggable state of the given element(s).\n * el is either an id, or an element object, or a list of ids/element objects.\n */\n toggleDraggable : function (el) {\n var state;\n jsPlumb.each(el, function (el) {\n var elId = this.getAttribute(el, \"id\");\n state = this._draggableStates[elId] == null ? false : this._draggableStates[elId];\n state = !state;\n this._draggableStates[elId] = state;\n this.setDraggable(el, state);\n return state;\n }.bind(this));\n return state;\n },\n _initDraggableIfNecessary : function (element, isDraggable, dragOptions, id, fireEvent) {\n // TODO FIRST: move to DragManager. including as much of the decision to init dragging as possible.\n if (!jsPlumb.headless) {\n var _draggable = isDraggable == null ? false : isDraggable;\n if (_draggable) {\n if (jsPlumb.isDragSupported(element, this)) {\n var options = dragOptions || this.Defaults.DragOptions;\n options = jsPlumb.extend({}, options); // make a copy.\n if (!jsPlumb.isAlreadyDraggable(element, this)) {\n var dragEvent = jsPlumb.dragEvents.drag,\n stopEvent = jsPlumb.dragEvents.stop,\n startEvent = jsPlumb.dragEvents.start;\n this.manage(id, element);\n options[startEvent] = _ju.wrap(options[startEvent], _dragStart.bind(this));\n options[dragEvent] = _ju.wrap(options[dragEvent], _dragMove.bind(this));\n options[stopEvent] = _ju.wrap(options[stopEvent], _dragStop.bind(this));\n var elId = this.getId(element); // need ID\n this._draggableStates[elId] = true;\n var draggable = this._draggableStates[elId];\n options.disabled = draggable == null ? false : !draggable;\n this.initDraggable(element, options);\n this.getDragManager().register(element);\n if (fireEvent) {\n this.fire(\"elementDraggable\", {el:element, options:options});\n }\n }\n else {\n // already draggable. attach any start, drag or stop listeners to the current Drag.\n if (dragOptions.force) {\n this.initDraggable(element, options);\n }\n }\n }\n }\n }\n },\n animationSupported:true,\n getElement: function (el) {\n if (el == null) {\n return null;\n }\n // here we pluck the first entry if el was a list of entries.\n // this is not my favourite thing to do, but previous versions of\n // jsplumb supported jquery selectors, and it is possible a selector\n // will be passed in here.\n el = typeof el === \"string\" ? el : (el.tagName == null && el.length != null && el.enctype == null) ? el[0] : el;\n return typeof el === \"string\" ? document.getElementById(el) : el;\n },\n removeElement: function (element) {\n _getDragManager(this).elementRemoved(element);\n this.getEventManager().remove(element);\n },\n //\n // this adapter supports a rudimentary animation function. no easing is supported. only\n // left/top properties are supported. property delta args are expected to be in the form\n //\n // +=x.xxxx\n //\n // or\n //\n // -=x.xxxx\n //\n doAnimate: function (el, properties, options) {\n options = options || {};\n var o = this.getOffset(el),\n ap = _animProps(o, properties),\n ldist = ap[0] - o.left,\n tdist = ap[1] - o.top,\n d = options.duration || 250,\n step = 15, steps = d / step,\n linc = (step / d) * ldist,\n tinc = (step / d) * tdist,\n idx = 0,\n _int = setInterval(function () {\n _jp.setPosition(el, {\n left: o.left + (linc * (idx + 1)),\n top: o.top + (tinc * (idx + 1))\n });\n if (options.step != null) {\n options.step(idx, Math.ceil(steps));\n }\n idx++;\n if (idx >= steps) {\n window.clearInterval(_int);\n if (options.complete != null) {\n options.complete();\n }\n }\n }, step);\n },\n // DRAG/DROP\n destroyDroppable: function (el, category) {\n _getDragManager(this, category).destroyDroppable(el);\n },\n unbindDroppable: function (el, evt, fn, category) {\n _getDragManager(this, category).destroyDroppable(el, evt, fn);\n },\n droppable :function(el, options) {\n el = _ju.isArray(el) || (el.length != null && !_ju.isString(el)) ? el: [ el ];\n var info;\n options = options || {};\n options.allowLoopback = false;\n Array.prototype.slice.call(el).forEach(function(_el) {\n info = this.info(_el);\n if (info.el) {\n this.initDroppable(info.el, options);\n }\n }.bind(this));\n return this;\n },\n initDroppable: function (el, options, category) {\n _getDragManager(this, category).droppable(el, options);\n },\n isAlreadyDraggable: function (el) {\n return el._katavorioDrag != null;\n },\n isDragSupported: function (el, options) {\n return true;\n },\n isDropSupported: function (el, options) {\n return true;\n },\n isElementDraggable: function (el) {\n el = _jp.getElement(el);\n return el._katavorioDrag && el._katavorioDrag.isEnabled();\n },\n getDragObject: function (eventArgs) {\n return eventArgs[0].drag.getDragElement();\n },\n getDragScope: function (el) {\n return el._katavorioDrag && el._katavorioDrag.scopes.join(\" \") || \"\";\n },\n getDropEvent: function (args) {\n return args[0].e;\n },\n getUIPosition: function (eventArgs, zoom) {\n // here the position reported to us by Katavorio is relative to the element's offsetParent. For top\n // level nodes that is fine, but if we have a nested draggable then its offsetParent is actually\n // not going to be the jsplumb container; it's going to be some child of that element. In that case\n // we want to adjust the UI position to account for the offsetParent's position relative to the Container\n // origin.\n var el = eventArgs[0].el;\n if (el.offsetParent == null) {\n return null;\n }\n var finalPos = eventArgs[0].finalPos || eventArgs[0].pos;\n var p = { left:finalPos[0], top:finalPos[1] };\n if (el._katavorioDrag && el.offsetParent !== this.getContainer()) {\n var oc = this.getOffset(el.offsetParent);\n p.left += oc.left;\n p.top += oc.top;\n }\n return p;\n },\n setDragFilter: function (el, filter, _exclude) {\n if (el._katavorioDrag) {\n el._katavorioDrag.setFilter(filter, _exclude);\n }\n },\n setElementDraggable: function (el, draggable) {\n el = _jp.getElement(el);\n if (el._katavorioDrag) {\n el._katavorioDrag.setEnabled(draggable);\n }\n },\n setDragScope: function (el, scope) {\n if (el._katavorioDrag) {\n el._katavorioDrag.k.setDragScope(el, scope);\n }\n },\n setDropScope:function(el, scope) {\n if (el._katavorioDrop && el._katavorioDrop.length > 0) {\n el._katavorioDrop[0].k.setDropScope(el, scope);\n }\n },\n addToPosse:function(el, spec) {\n var specs = Array.prototype.slice.call(arguments, 1);\n var dm = _getDragManager(this);\n _jp.each(el, function(_el) {\n _el = [ _jp.getElement(_el) ];\n _el.push.apply(_el, specs );\n dm.addToPosse.apply(dm, _el);\n });\n },\n setPosse:function(el, spec) {\n var specs = Array.prototype.slice.call(arguments, 1);\n var dm = _getDragManager(this);\n _jp.each(el, function(_el) {\n _el = [ _jp.getElement(_el) ];\n _el.push.apply(_el, specs );\n dm.setPosse.apply(dm, _el);\n });\n },\n removeFromPosse:function(el, posseId) {\n var specs = Array.prototype.slice.call(arguments, 1);\n var dm = _getDragManager(this);\n _jp.each(el, function(_el) {\n _el = [ _jp.getElement(_el) ];\n _el.push.apply(_el, specs );\n dm.removeFromPosse.apply(dm, _el);\n });\n },\n removeFromAllPosses:function(el) {\n var dm = _getDragManager(this);\n _jp.each(el, function(_el) { dm.removeFromAllPosses(_jp.getElement(_el)); });\n },\n setPosseState:function(el, posseId, state) {\n var dm = _getDragManager(this);\n _jp.each(el, function(_el) { dm.setPosseState(_jp.getElement(_el), posseId, state); });\n },\n dragEvents: {\n 'start': 'start', 'stop': 'stop', 'drag': 'drag', 'step': 'step',\n 'over': 'over', 'out': 'out', 'drop': 'drop', 'complete': 'complete',\n 'beforeStart':'beforeStart'\n },\n animEvents: {\n 'step': \"step\", 'complete': 'complete'\n },\n stopDrag: function (el) {\n if (el._katavorioDrag) {\n el._katavorioDrag.abort();\n }\n },\n addToDragSelection: function (spec) {\n var el = this.getElement(spec);\n if (el != null && (el._isJsPlumbGroup || el._jsPlumbGroup == null)) {\n _getDragManager(this).select(spec);\n }\n },\n removeFromDragSelection: function (spec) {\n _getDragManager(this).deselect(spec);\n },\n getDragSelection:function() {\n return _getDragManager(this).getSelection();\n },\n clearDragSelection: function () {\n _getDragManager(this).deselectAll();\n },\n trigger: function (el, event, originalEvent, payload) {\n this.getEventManager().trigger(el, event, originalEvent, payload);\n },\n doReset:function() {\n // look for katavorio instances and reset each one if found.\n for (var key in this) {\n if (key.indexOf(\"_katavorio_\") === 0) {\n this[key].reset();\n }\n }\n },\n getEventManager:function() {\n return _getEventManager(this);\n },\n on : function(el, event, callback) {\n // TODO: here we would like to map the tap event if we know its\n // an internal bind to a click. we have to know its internal because only\n // then can we be sure that the UP event wont be consumed (tap is a synthesized\n // event from a mousedown followed by a mouseup).\n //event = { \"click\":\"tap\", \"dblclick\":\"dbltap\"}[event] || event;\n this.getEventManager().on.apply(this, arguments);\n return this;\n },\n off : function(el, event, callback) {\n this.getEventManager().off.apply(this, arguments);\n return this;\n }\n });\n var ready = function (f) {\n var _do = function () {\n if (/complete|loaded|interactive/.test(document.readyState) && typeof(document.body) !== \"undefined\" && document.body != null) {\n f();\n }\n else {\n setTimeout(_do, 9);\n }\n };\n _do();\n };\n ready(_jp.init);\n}).call(typeof window !== 'undefined' ? window : this);\n"],"names":["Math","sgn","x","Vectors","subtract","v1","v2","y","dotProduct","square","v","sqrt","scale","s","_distanceFromCurve","point","curve","candidates","w","_convertToBezier","degree","length","numSolutions","_findRoots","dist","t","i","_bezier","newDist","location","distance","higherDegree","c","d","cdTable","z","row","column","parseFloat","m","k","n","lb","max","ub","min","j","depth","left_count","right_count","left","right","left_t","right_t","_getCrossingCount","_isFlatEnough","_computeXIntercept","sign","old_sign","n_crossings","a","b","max_distance_above","max_distance_below","intercept_1","intercept_2","left_intercept","dInv","a2","b2","c2","value","a1","b1","error","XNM","YNM","XMK","XLK","temp","_curveFunctionCache","_getCurveFunctions","order","fns","c_term","t_term","one_minus_t_term","_termFunc","terms","p","push","pow","_pointOnPath","cc","_x","_y","_dist","p1","p2","_isPoint","_pointAlongPath","prev","tally","curLoc","direction","cur","abs","_gradientAtPoint","slice","dy","dx","Infinity","atan","_lineIntersection","x1","y1","x2","y2","coeffs","_computeCoefficientsForAxis","r","_cubicRoots","apply","intersections","t2","t3","axis","S","T","A","B","Q","R","D","th","acos","cos","PI","jsBezier","distanceFromCurve","gradientAtPoint","gradientAtPointAlongCurveFrom","nearestPointOnCurve","td","pointOnCurve","pointAlongCurveFrom","perpendicularToCurveAt","_theta2","sin","locationAlongCurveFrom","getLength","Date","getTime","console","log","lineIntersection","boxIntersection","h","boundingBoxIntersection","boundingBox","version","exports","call","window","Biltong","root","_isa","Object","prototype","toString","_pointHelper","fn","_gradient","gradient","_p1","_p2","_quadrant","normal","lineLength","quadrant","_segmentMultipliers","theta","intersects","r1","r2","encloses","allowSharedEdges","v3","v4","_inverseSegmentMultipliers","pointOnLine","fromPoint","toPoint","segmentMultiplier","perpendicularLineTo","theta2","_touch","view","target","pageX","pageY","screenX","screenY","clientX","clientY","Touch","identifier","_uuid","matchesSelector","el","selector","ctx","possibles","parentNode","querySelectorAll","_gel","constructor","String","document","getElementById","_t","e","srcElement","_pi","obj","doCompute","path","end","indexOf","out","_one","_d","l","splice","guid","_store","event","g","__ta","__tauid","_unstore","__taExtra","_unbind","__taUnstore","_curryChildFilter","children","evt","split","_fn","pathInfo","arguments","registerExtraFunction","newFn","DefaultHandler","isTouchDevice","touchMap","tfn","_bind","getAttribute","setAttribute","SmartClickHandler","__taSmartClicks","__tad","_pageLocation","__tau","_tapProfiles","touches","taps","TapHandler","clickThreshold","dblClickThreshold","isMouseDevice","__taTapHandler","tt","tap","dbltap","contextmenu","down","downSelectors","clearSingle","clearDouble","finished","setTimeout","currentTarget","tc","_touchCount","eventId","hasOwnProperty","pLoop","meeHelper","type","__tamee","MouseEnterExitHandler","activeElements","over","mouseenter","mouseexit","relatedTarget","toElement","documentElement","navigator","maxTouchPoints","iev","rv","appName","ua","userAgent","re","RegExp","exec","$1","isIELT9","_genLoc","prefix","_getTouch","_touches","scrollLeft","scrollTop","idx","item","changedTouches","targetTouches","originalFn","addEventListener","attachEvent","key","_each","_el","removeEventListener","detachEvent","__taTouchProxy","Window","top","tagName","replace","random","Mottle","params","mouseEnterExitHandler","tapHandler","_smartClicks","smartClicks","_doBind","remove","removeChild","on","_c","_e","_f","off","trigger","originalEvent","payload","originalIsMouse","MouseEvent","eventToBind","bindingAMouseEvent","pl","sl","cl","_decorate","_evt","createEvent","evtName","ite","eventGenerators","touchList","_touchAndList","_touchList","list","Array","index","init","initTouchEvent","initEvent","initMouseEvent","dispatchEvent","createEventObject","eventType","eventName","fireEvent","consume","doNotPreventDefault","stopPropagation","returnValue","preventDefault","pageLocation","setForceTouchEvents","setForceMouseEvents","_suggest","head","unshift","_vanquish","_difference","l1","l2","_isString","f","getOffsetRect","elem","box","getBoundingClientRect","body","docElem","pageYOffset","pageXOffset","clientTop","clientLeft","round","findDelegateElement","parentElement","childElement","currentParent","findMatchingSelector","availableSelectors","draggableId","filter","matches","filterExclude","isIE9","_pl","_classes","delegatedDraggable","draggable","droppable","drag","selected","active","hover","noSelect","ghostProxy","clonedDrag","_events","_devNull","_true","_foreach","from","_setDroppablesActive","dd","val","andHover","setActive","updatePosition","setHover","_consume","Super","css","scope","addClass","_class","uuid","enabled","setEnabled","isEnabled","toggleEnabled","setScope","scopes","addScope","removeScope","toggleScope","katavorio","TRUE","FALSE","Drag","ghostProxyOffsets","rightButtonCanDrag","useGhostProxy","currentParentPosition","ghostParentPosition","ghostDx","ghostDy","downAt","posAtDown","pagePosAtDown","pageDelta","moving","initialScroll","consumeStartEvent","dragEl","clone","_multipleDrop","scroll","multipleDrop","isConstrained","elementToDrag","activeSelectorParams","ghostProxyParent","container","makeGhostProxy","cloneNode","snapThreshold","_snap","pos","gridX","gridY","thresholdX","thresholdY","_dx","floor","_dxl","_dxt","_dy","_dyl","_dyt","posses","posseRoles","toGrid","grid","tx","DEFAULT_GRID_X","ty","DEFAULT_GRID_Y","snap","snapped","getPosition","setPosition","setUseGhostProxy","negativeFilter","allowNegative","_setConstrain","constrain","_constrainRect","_size","bind","containment","setConstrain","setRevert","revertFunction","revert","_filters","_testFilter","_setFilter","setFilter","_exclude","_katavorioId","addFilter","removeFilter","clearAllFilters","canDrag","constrainRect","matchingDroppables","intersectingDroppables","addSelector","downListener","defaultPrevented","isNotRightClick","which","button","_katavorio","getInputFilterSelector","match","style","position","parent","appendChild","moveListener","upListener","markSelection","markPosses","_dispatch","consumeFilteredEvents","_continue","mark","abort","ignoreZoom","getZoom","moveBy","updateSelection","updatePosses","unbind","removeClass","unmark","unmarkSelection","unmarkPosses","stop","notifyPosseDragStop","getFilters","getDragElement","retrieveOriginalElement","listeners","events","start","beforeStart","result","notifyStart","force","positions","sel","getSelection","dPos","finalPos","selection","andNotify","cs","size","getSize","getMatchingDroppables","dragClass","getConstrainingRectangle","notifySelectionDragStart","doNotCheckDroppables","offsetLeft","offsetTop","sort","_rankSort","retVal","drop","desiredLoc","cPos","gp","rect","pageRect","focusDropElement","pagePosition","canDrop","isHover","destroy","handle","Drop","rank","_activeClass","activeClass","_hoverClass","hoverClass","allowLoopback","_katavorioDragHover","Katavorio","katavorioParams","_selection","_selectionMap","_dragsByScope","_dropsByScope","_zoom","_reg","map","_obj","_unreg","_prepareParams","_m","_dd","_p","_mistletoe","existingDrag","_css","overrideCss","_scope","inputFilterSelector","setInputFilterSelector","o","_katavorioDrag","_katavorioDrop","select","deselect","_s","deselectAll","_posses","members","_posseAction","notifySelectionDragStop","setZoom","_scopeManip","kObj","_kObj","snapToGrid","getDragsForScope","getDropsForScope","_destroy","selIdx","_removeListener","elementRemoved","destroyDraggable","destroyDroppable","reset","_processOneSpec","_spec","dontAddExisting","posseId","id","posse","name","addToPosse","spec","setPosse","diff","removeFromPosse","TypeError","removeFromAllPosses","setPosseState","state","jsPlumbUtil","isArray","isString","isBoolean","isObject","isDate","isFunction","merge","collations","overwrites","ar","cMap","oMap","findWithFunction","addToList","insertAtStart","isNumber","isNull","isNamedFunction","isEmpty","inObj","term","lc","str","array","last","_getArray","a_1","functionChain","successValue","failValue","populate","model","values","functionPrefix","doNotExpandFunctions","getValue","fromString","substring","removeWithFunction","addWithFunction","hashFunction","suggest","insertAtHead","extend","child","_protoFn","_copyProtoChain","focus","proto","__proto__","_makeFn","protoFn","_oneSet","lut","d0","d1","d2","d3","args","_i","logEnabled","msg","rotatePoint","center","rotation","radial","cr","sr","fastTrim","ws","test","charAt","each","mergeWithParents","parentAttribute","_def","_parent","def","overrides","mergeStrategy","d_1","_getDef","done","wrap","wrappedFunction","newFunction","returnOnThisValue","EventGenerator","_this","_listeners","eventsSuspended","tick","eventsToDieOn","queue","listener","__jsPlumb","fire","_gone","ret","shouldFireEvent","_drain","pop","eventOrListener","getListener","forEvent","setSuspendEvents","isSuspendEvents","silently","cleanupListeners","rotateAnchorOrientation","orientation","sizeElement","height","width","DEFAULT_OPTIONS","deriveAnchor","edge","ep","conn","bottom","ListManager","jsPlumbInstance","count","instance","lists","options","addList","listManager","removeList","scrollableLists","getSelector","_maybeUpdateParentList","source","jsPlumbListManager","dp","getInstanceIndex","join","List","_jsPlumbList","getContainer","_jsPlumbScrollHandler","anchor","deriveEndpoint","endpoint","scrollHandler","elId","getId","_jsPlumbProxies","proxyConnection","endpoints","offsetHeight","unproxyConnection","revalidate","_maybeUpdateDraggable","hasClass","recalculateOffsets","_ju","_updateHoverStyle","component","_jsPlumb","paintStyle","hoverPaintStyle","mergedHoverStyle","jsPlumb","fill","_updateAttachedElements","timestamp","sourceElement","affectedElements","getAttachedElements","_splitType","_mapType","typeId","_applyTypes","doNotRepaint","getDefaultType","getTypeDescriptor","defType","types","tid","getType","applyType","repaint","jsPlumbUIComponent","idPrefix","self","parameters","paintStyleInUse","beforeDetach","beforeDrop","overlayPlacements","Defaults","HoverClass","typeCache","cacheTypeItem","getCachedTypeItem","overlays","oo","defaultOverlayKeys","fo","convertToFullOverlaySpec","_defaultType","getDefaultScope","appendToDefaultType","create","isDetachAllowed","connection","isDropAllowed","sourceId","targetId","dropEndpoint","checkCondition","domListeners","setListenerComponent","_removeTypeCssHelper","typeIndex","cssClass","canvas","getParameter","setParameter","getParameters","setParameters","getClass","clazz","updateClasses","classesToAdd","classesToRemove","setType","clearTypes","reapplyTypes","hasType","addType","_cont","removeType","toggleType","setPaintStyle","setHoverPaintStyle","getPaintStyle","getHoverPaintStyle","ignoreAttachedElements","currentlyDragging","isHoverSuspended","method","isSuspendDrawing","recalc","_jsPlumbInstanceIndex","_defaults","Anchor","Anchors","ConnectionsDetachable","ConnectionOverlays","Connector","Container","DoNotThrowErrors","DragOptions","DropOptions","Endpoint","EndpointOverlays","Endpoints","EndpointStyle","EndpointStyles","EndpointHoverStyle","EndpointHoverStyles","HoverPaintStyle","LabelStyle","color","ListStyle","LogEnabled","Overlays","MaxConnections","PaintStyle","stroke","ReattachConnections","RenderMode","Scope","_connectionTypes","_endpointTypes","_currentInstance","_instanceIndex","_bb","_initialDefaults","_info","nodeType","text","getElement","_getId","repaintEverything","_container","_containerDelegations","unbindContainer","setContainer","moveParent","selectEndpoints","previousContainer","eventAliases","_oneDelegateHandler","componentType","jp","alias","_addOneDelegate","_oneDelegate","managedElements","initialized","importDefaults","restoreDefaults","connections","endpointsByElement","endpointsByUUID","offsets","offsetTimestamps","connectionBeingDragged","sizes","_suspendDrawing","_suspendedAt","DEFAULT_SCOPE","_curIdStamp","_idstamp","_appendElement","appendToRoot","_draw","element","ui","clearEdits","drawResult","repaintEls","_updateOffset","offset","router","redraw","_getEndpoint","_scopeMatch","e1","e2","s1","s2","_mergeOverrides","_prepareConnectionParams","referenceParams","sourceEndpoint","targetEndpoint","uuids","isFull","connectionType","connectorOverlays","connectorPointerEvents","_addEndpoint","anchors","endpointStyles","endpointStyle","endpointHoverStyles","endpointHoverStyle","addEndpoint","_oneElementDef","defs","matchType","newConnection","tep","epDef","label","newEndpoint","uniqueEndpoint","finalEndpoint","setDeleteOnEmpty","sourceEndpointDefinitions","targetEndpointDefinitions","_newConnection","connectionFunc","ConnectionType","getDefaultConnectionType","_newEndpoint","finaliseConnection","_finaliseConnection","con","isDetachable","initDraggable","jpc","doInformAnchorManager","suspendedEndpoint","pending","isTemporarySource","doNotFireConnectionEvent","eventArgs","endpointFunc","EndpointType","fireDetachEvent","elementId","_manage","headless","getDragManager","endpointAdded","_operation","func","ii","jj","_setVisible","alsoChangeEndpoints","setVisible","info","oidx","isVisible","doNotCreateIfNotFound","undefined","setConnectionBeingDragged","isConnectionBeingDragged","getManagedElements","connectorClass","connectorOutlineClass","connectedClass","endpointClass","endpointConnectedClass","endpointFullClass","endpointDropAllowedClass","endpointDropForbiddenClass","overlayClass","draggingClass","elementDraggingClass","sourceElementDraggingClass","targetElementDraggingClass","endpointAnchorClassPrefix","hoverSourceClass","hoverTargetClass","dragSelectClass","Connectors","ConnectorRenderers","SVG","results","inputs","_ensureContainer","myOffset","paint","anchorLoc","compute","xy","wh","getRotation","addEndpoints","animate","properties","animationSupported","del","stepFunction","animEvents","step","completeFunction","complete","doAnimate","conditionName","connect","stTypes","epDefs","_set","sid","sep","_st","cId","oldEndpoint","evtParams","originalSourceId","newSourceId","originalTargetId","newTargetId","addConnection","makeEndpoint","detachFromConnection","fireMoveEvent","setSource","sourceOrTargetChanged","setTarget","deleteEndpoint","object","dontUpdateHover","deleteAttachedObjects","deleteObject","deleteEveryEndpoint","_is","setSuspendDrawing","dm","doFireEvent","connType","argIsConnection","connectionDetached","unregisterEndpoint","newEndpoints","IS_DETACH_ALLOWED","deleteConnection","cleanup","deleteEveryConnection","deletedCount","batch","deleteConnectionsForElement","endpointCount","connectionCount","unravelConnection","unravelEndpoint","doNotCleanup","_setOperation","_getOperation","setter","getter","prepareList","input","doNotGetIds","filterList","missingIsFalse","getConnections","flat","sources","targets","proxies","originalEp","_addOne","ss","_makeCommonSelectHandler","executor","get","setters","getters","_makeConnectionSelectHandler","common","setDetachable","setReattach","setConnector","delete","isReattach","_makeEndpointSelectHandler","setAnchor","noElementFilters","elements","either","sourceMatchExact","targetMatchExact","_ep","noMatchSource","isSource","noMatchTarget","isTarget","getAllConnections","getEndpoint","getEndpoints","getDefaultEndpointType","Connection","draw","appendElement","_hoverSuspended","setHoverSuspended","hide","changeEndpoints","idstamp","candidate","can","offsetParent","_getContainerFromDefaults","manage","_transient","_recalc","unmanage","rotate","amountInDegrees","doNotRedraw","transform","transformOrigin","getOffset","centerx","centery","updateOffset","DefaultRouter","anchorManager","makeAnchor","pp","_a","specimen","newAnchor","getOrientation","DynamicAnchor","anchorParams","makeAnchors","makeDynamicAnchor","anchorSelector","selectorFilter","_instance","negate","ok","_makeElementDropHandler","elInfo","dropOptions","proxyComponent","_drop","EndpointDropHandler","targetCount","maxConnections","onDrop","locked","isRedrop","suspendedElement","eps","deriveEndpointAndAnchorSpec","_mtNew","positionFinder","dropPosition","getUIPosition","elPosition","elSize","ap","constructorParams","maybeCleanup","dropEvent","dragEvents","_drag","de","_jsPlumbRelatedElement","initDroppable","makeTarget","_doOne","elid","_isJsPlumbGroup","createEndpoint","targetDef","unmakeTarget","doNotClearArrays","makeSource","aae","onMaxConnections","_del","stopEvent","dragEvent","dragOptions","existingStop","endpointAddedButNoDragYet","anchorDef","oldAnchor","oldConnection","mouseDownListener","sourceCount","elxy","getPositionOnElement","tempEndpointParams","_delTempEndpoint","extract","att","setDragFilter","unmakeSource","eldefs","unmakeEverySource","_getScope","_setScope","getScope","getSourceScope","getTargetScope","setSourceScope","setTargetScope","setDragScope","setDropScope","unmakeEveryTarget","_setEnabled","toggle","originalState","newState","_first","toggleSourceEnabled","isSourceEnabled","setSourceEnabled","toggleTargetEnabled","isTargetEnabled","setTargetEnabled","ready","_elEach","isIdAlready","updateOffsets","removeAllEndpoints","recurse","ebe","childNodes","_doRemove","floatingConnections","removeElement","ae","empty","dontRemoveFocus","doNotUnbindInstanceEventListeners","removeAllGroups","removeGroupManager","doReset","_clearObject","clear","setDefaultScope","dontPrependDefault","bits","as","setId","newId","doNotSetAttribute","sConns","tConns","setElementId","setReferenceElement","changeId","_conns","epIdx","setDebugLog","debugLog","repaintAfterwards","curVal","getSuspendedAt","doNotRepaintAfterwards","_wasSuspended","doWhileSuspended","getCachedData","show","toggleVisible","addListener","registerFloatingConnection","getFloatingConnectionFor","registerConnectionType","to","registerConnectionTypes","registerEndpointType","registerEndpointTypes","typeDescriptor","setIdChanged","oldId","setParent","newParent","_dom","_id","_pdom","_pid","o1","o2","names","getFloatingAnchorIndex","isFloating","proxyEl","proxyElId","endpointGenerator","anchorGenerator","proxyEp","originalElementId","originalEndpoint","isProxyEndpoint","originalElement","getInstance","overrideFns","ovf","_jp","_internalLabelOverlayId","_makeLabelOverlay","_params","labelStyle","mergedParams","getRenderMode","Label","_processOverlay","_newOverlay","OverlayCapableJsPlumbUIComponent","overlayPositions","labelLocation","defaultLabelLocation","keep","existing","updateFrom","reattach","addOverlay","removeOverlay","overlay","getData","locationAttribute","labelLocationAttribute","loc","getOverlay","getOverlays","hideOverlay","hideOverlays","showOverlay","showOverlays","removeAllOverlays","overlayId","dontCleanup","removeOverlays","bgCanvas","isAppendedAtTopLevel","getLabel","lo","getLabelOverlay","setLabel","Function","setLocation","setAbsoluteOverlayPosition","getAbsoluteOverlayPosition","_clazzManip","action","dontUpdateOverlays","_makeConnectionDragHandler","placeholder","stopped","_ui","anchorPoint","getCurrentLocation","stopDrag","_makeDraggablePlaceholder","ipco","ips","createElement","typeParameters","findConnectionToUseForDynamicAnchor","elementWithPrecedence","connectorStyle","connectorHoverStyle","connectorHoverClass","connector","connectorTooltip","visible","floatingEndpoint","dragProxy","connectionCost","connectionsDirected","currentAnchorClass","deleteOnEmpty","_updateAnchorClass","oldAnchorClass","getCssClass","anchorClass","prepareAnchor","currentAnchor","setPreparedAnchor","continuousAnchorFactory","internalHover","prepareEndpoint","rm","endpointArgs","tooltip","setEndpoint","setPreparedEndpoint","reattachConnections","connectionsDetachable","detachable","dragAllowedWhenFull","detachFrom","setElement","parentId","curId","rehomeEndpoint","dragManager","makeInPlaceCopy","acc","hideOnDrag","reference","connectorSelector","setStyle","connectorPaintStyle","dimensions","isDynamic","oIdx","oId","oInfo","oOffset","oWH","txy","twh","tElement","tRotation","draggingInitialised","isDragSupported","placeholderInfo","existingJpc","existingJpcParams","_dragHandler","startEvent","beforeStartEvent","startParams","referenceCanvas","beforeDrag","canvasElement","setAttributes","endpointToFloat","centerAnchor","FloatingAnchor","_savedAnchor","data","anchorIdx","dragScope","getDragScope","suspendedElementId","suspendedElementType","referenceEndpoint","getDropEvent","deleteConnectionNow","floatingElement","floatingId","floatingIndex","fe","_forceReattach","_forceDetach","deleteAfterDragStop","visibility","beforeStartParams","anchorParamsToUse","_initDropTarget","isTransient","isDropSupported","overEvent","outEvent","dhParams","getDragObject","_jpc","bb","doNotChangeConnections","doNotNotifyOtherEndpoint","display","isConnectedTo","found","getConnectionCost","setConnectionCost","areConnectionsDirected","setConnectionsDirected","_elId","setDragAllowedWhenFull","allowed","equals","getUuid","computeAnchor","existingConnection","_doContinue","continueFunction","optionalData","aParam","originalSourceEndpoint","newSourceEndpoint","originalTargetEndpoint","newTargetEndpoint","_toDelete","mergeData","makeConnector","renderMode","connectorName","connectorArgs","forComponent","_makeAnchor","_updateConnectedClass","_jsPlumbConnections","previousConnection","editorParams","lastPaintedAt","definition","eS","eT","deleteEndpointsOnEmpty","_detachable","_reattach","myInfo","myWH","otherInfo","otherOffset","otherWH","initialTimestamp","cost","directed","setData","_types","updateConnectedClass","typeMap","_connector","prepareConnector","setPreparedConnector","_anchors","informEndpoints","getUuids","getCost","setCost","isDirected","getConnector","connectorSpec","doNotChangeListenerComponent","previous","previousClasses","transfer","tId","swap","sId","sourceInfo","targetInfo","sE","tE","sAnchorP","tAnchorP","resetBounds","sourcePos","targetPos","sourceOrientation","targetOrientation","strokeWidth","overlayExtents","minX","minY","maxX","maxY","lineWidth","outlineWidth","extents","xmin","bounds","ymin","xmax","ymax","paintExtents","es","outlineStroke","ehs","drawEndpoints","replaceEndpoint","endpointDef","current","_idx","_new","AnchorManager","_amEndpoints","continuousAnchorLocations","continuousAnchorOrientations","connectionsByElementId","anchorLists","placeAnchorsOnLine","desc","elementDimensions","elementPosition","horizontal","otherMultiplier","reverse","other","xp","yp","rotated","rightAndBottomSort","leftAndTopSort","edgeSortFunctions","placeAnchors","_anchorLists","cd","sS","sO","placeSomeAnchors","unsortedConnections","isHorizontal","sc","_array","_setAnchorLocation","anchorPos","weAreSource","weAreTarget","addFloatingConnection","doRegisterTarget","registerConnection","otherIndex","otherEndpoint","otherAnchor","isContinuous","removeEndpointFromAnchorLists","eId","connInfo","removeConnection","getConnectionsFor","getEndpointsFor","_updateAnchorList","aBoolean","otherElId","edgeId","connsToPaint","endpointsToPaint","firstMatchingElIdx","endpointId","listToAddTo","listToRemoveFrom","_continuousAnchorEdge","rIdx","insertIdx","originalId","newElement","anchorIndex","tIdx","sourceElId","sIndex","tIndex","currentId","add","offsetToUI","doNotRecalcEndpoint","connectionsToPaint","anchorsToUpdate","endpointConnections","orientationCache","sourceContinuous","targetContinuous","oKey","targetRotation","sourceRotation","sd","calculateOrientation","getDefaultFace","fc","ContinuousAnchor","faces","clockwise","availableFaces","opposites","clockwiseOptions","antiClockwiseOptions","secondBest","lastChoice","_currentFace","_lockedFace","X_AXIS_FACES","Y_AXIS_FACES","_lockedAxis","isRelocatable","isSnapOnRelocate","verifyEdge","isEdgeSupported","setCurrentFace","face","overrideLock","getCurrentFace","getSupportedFaces","af","lock","unlock","isLocked","lockCurrentAxis","unlockCurrentAxis","sourceAnchor","targetAnchor","axes","atan2","midpoints","dim","sf","tf","sourceEdge","targetEdge","lastReturnValue","_unrotatedOrientation","relocatable","snapOnRelocate","ox","oy","ao","ref","refCanvas","_lastResult","_endpoint","getAnchors","_curAnchor","_lastAnchor","_distance","cx","cy","tr","ax","ay","acx","acy","_anchorSelector","minIdx","minDist","setAnchorCoordinates","coords","_curryAnchor","fnInit","DynamicAnchors","AutoDefault","_curryContinuousAnchor","Continuous","pf","AnchorPositionFinders","gx","gy","my","Perimeter","anchorCount","shape","Error","_circle","_path","segments","anchorsPerFace","_computeFace","fractionalLength","_shape","_rectangle","_shapes","points","tl","da","_rotate","_jg","Segments","AbstractSegment","findClosestPointOnPath","getBounds","Straight","m2","getGradient","getCoordinates","setCoordinates","pointOnPath","absolute","_","pointAlongPathFrom","farAwayPoint","within","closest","_x1","_y1","fractionInSegment","_plb","q","_x2","_y2","X","Y","m1","Arc","_calcAngle","_calcAngleForLocation","segment","anticlockwise","sa","startAngle","endAngle","TWO_PI","ea","radius","ac","sweep","circumference","gentleRound","ceil","angle","arcSpan","dir","Bezier","cp1x","cp1y","cp2x","cp2y","_compute","EMPTY_POINT","u","_getLUT","steps","_computeLength","_translateLocation","_curve","SegmentRenderer","getPath","isFirstSegment","laf","AbstractComponent","AbstractConnector","totalLength","segmentProportions","segmentProportionalLengths","stub","sourceStub","targetStub","gap","sourceGap","targetGap","userProvidedSegments","paintInfo","getPathData","findSegmentForPoint","connectorLocation","_updateSegmentProportions","_findSegmentForLocation","inSegmentProportion","proportion","_clearSegments","setSegments","_segs","_prepareCompute","swapX","swapY","lw","so","oIndex","sx","sy","oProduct","xSpan","ySpan","mx","startStubX","startStubY","endStubX","endStubY","isXGreaterThanStubTimes2","isYGreaterThanStubTimes2","opposite","perpendicular","orthogonal","sourceAxis","stubs","anchorOrientation","getSegments","updateBounds","segBounds","seg","addSegment","prepareCompute","maxStub","maxGap","AbstractEndpoint","Dot","defaultOffset","defaultInnerRadius","Rectangle","DOMElementEndpoint","displayElements","getDisplayElements","appendDisplayElement","Image","_onload","onload","src","url","img","deleted","widthToUse","heightToUse","setImage","_img","margin","padding","outline","actuallyPaint","Blank","background","Triangle","AbstractOverlay","endpointLoc","endpointLocation","incrementLocation","amount","getLocation","Arrow","foldback","computeMaxSize","elementCreated","currentConnectionPaintStyle","hxy","mid","tail","cxy","parseInt","fromLoc","__","PlainArrow","Diamond","_getDimensions","forceRefresh","cachedDimensions","getDimensions","AbstractDOMOverlay","detached","div","initialised","initiallyInvisible","ts","webkitTransform","mozTransform","msTransform","oTransform","absolutePosition","locToUse","minx","miny","clearCachedDimensions","containerExtents","Custom","GuideLines","tailLine","headLine","labelText","font","borderWidth","dStyle","borderStyle","border","update","lt","innerHTML","_jpi","GROUP_COLLAPSED_CLASS","GROUP_EXPANDED_CLASS","STOP","REVERT","GROUP_MANAGER","GROUP","GroupManager","_managedGroups","_connectionSourceMap","_connectionTargetMap","group","getEl","sourceGroup","getGroupFor","targetGroup","connMap","addGroup","manager","_updateConnectionsForGroup","addToGroup","doNotFireEvent","getGroup","groupEl","currentGroup","_jsPlumbGroup","removeFromDragSelection","elpos","cpos","collapsed","getDragArea","updateConnectionsForGroup","handleDroppedConnections","_expandConnection","_collapseConnection","newPosition","revalidateParent","removeFromGroup","_expandSet","conns","proxiedElement","isDescendant","parentEl","groupId","getGroups","removeGroup","deleteMembers","manipulateDOM","expandGroup","newPositions","_groups","otherEl","shouldProxy","groupElId","getAnchor","collapseGroup","_collapseSet","getMembers","childMembers","c1","processed","oneSet","gs","gt","repaintGroup","refreshAllGroups","Group","ghost","orphan","prune","dropOverride","proxied","internal","endpointIndex","opts","overrideDrop","getGroupManager","els","_isInsideParent","leftEdge","rightEdge","topEdge","bottomEdge","_orphan","_unbindDragHandlers","clearParent","_pruneOrOrphan","orphanedPosition","_revalidate","_bindDragHandlers","__el","dragArea","isAlreadyDraggable","doNotUpdateConnections","removeAll","orphanAll","orphanedPositions","dragParams","toggleGroup","mgr","STRAIGHT","Flowchart","_super","midpoint","isNaN","alwaysRespectStubs","lastx","lasty","cornerRadius","loopbackRadius","segmentDirections","lx","ly","segLength","_cloneArray","writeSegments","next","currentDirection","nextDirection","radiusToUse","minSegLength","sgnEqual","sgny","commonStubCalculator","stubCalculators","areInProximity","pi","oss","oes","midx","midy","orientations","lineCalculators","midLines","linesToEnd","startToEnd","startToMidToEnd","otherStubs","soIdx","toIdx","_so","_to","otherFlipped","stub1","stub2","segmentIndexes","sis","startStub","otherStartStub","endStub","otherEndStub","extent","otherAxis","comparator","toUpperCase","_val","AbstractBezierConnector","showLoopback","curviness","proximityLimit","sp","tp","_w","_h","loopback","_computeBezier","majorAnchor","getCurviness","_findControlPoint","sourceAnchorPosition","targetAnchorPosition","soo","too","_CP","_CP2","_sx","_sy","_tx","_ty","StateMachine","_controlPoint","_midx","_midy","svgAttributeMap","STROKE_DASHARRAY","DASHSTYLE","FILL","STROKE","NONE","_attr","node","attributes","_node","xmlns","createElementNS","_pos","_clearGradient","_updateGradient","uiComponent","JSPLUMB_GRADIENT","gradientUnits","stops","styleToUse","stopColor","applyGradientTo","_applyStyles","parts","forEach","_appendAtIndex","svg","insertBefore","attr","SvgComponent","pointerEventsSpec","renderer","originalArgs","useDivWrapper","className","outlineStyle","outlineStrokeWidth","bgPath","SvgEndpoint","makeNode","updateNode","AbstractSvgArrowOverlay","superclass","makePath","svgProtoFunctions","p1_1","p1_2","attachListeners","_do","_jk","_getEventManager","_mottle","_getDragManager","category","getEventManager","scrollWidth","scrollHeight","relativeToRoot","_dragStart","_jsPlumbDragOptions","cont","_dragMove","_dragging","_dragStop","uip","_drawResult","dragEnded","_animProps","pName","_screenLocation","_clientLocation","DragManager","_draggables","_dlist","_delements","_elementsWithEndpoints","_draggablesForElements","register","parentOffset","_oneLevel","cEl","cid","cOff","childOffsetOverrides","domEl","cel","pid","pLoc","cLoc","endpointDeleted","getElementsForDraggable","ancestor","pId","currentChildLocation","childOffset","co","getDragAncestor","aid","_setClassName","cn","classList","baseVal","_getClassName","_classManip","curClasses","classes","screenLocation","clientLocation","tag","atts","ns","attName","getRenderModes","contains","toggleClass","toAdd","toRemove","setClass","prop","getStyle","getComputedStyle","getPropertyValue","currentStyle","op","_maybeAdjustScroll","zoom","pst","psl","offsetWidth","getAbsolutePosition","setAbsolutePosition","animateFrom","animateOptions","getWidth","getHeight","_initDraggableIfNecessary","_oneEl","_me","mel","unbindDraggable","setDraggable","_draggableStates","setElementDraggable","toggleDraggable","isDraggable","disabled","enctype","ldist","tdist","duration","linc","tinc","_int","setInterval","clearInterval","unbindDroppable","isElementDraggable","oc","specs","addToDragSelection","getDragSelection","clearDragSelection","callback","readyState"],"mappings":"AAiEC,CAAA,WAIyB,KAAA,IAAZA,KAAKC,GAAG,EACdD,CAAAA,KAAKC,GAAG,CAAG,SAASC,CAAC,EAAI,OAAOA,AAAK,GAALA,EAAS,EAAIA,EAAI,EAAI,EAAG,EAAI,CAAA,EAGhE,IAAIC,EAAU,CACNC,SAAa,SAASC,CAAE,CAAEC,CAAE,EAAI,MAAO,CAACJ,EAAEG,EAAGH,CAAC,CAAGI,EAAGJ,CAA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AAC,IAAI,CAAEgI,WAC/B,IAAI,AACf,EACAmG,IAAM,SAAS5I,CAAE,CAAE2B,CAAK,CAAE4oE,CAAQ,EAE9B,OADA,IAAI,CAAC5G,eAAe,GAAG/6D,GAAG,CAACnO,KAAK,CAAC,IAAI,CAAEgI,WAChC,IAAI,AACf,CAEJ,GAEsBmJ,EAYhB4gC,EAAIriC,IAAI,CAFVk5D,CATIA,EAAM,WACF,8BAA8B9gD,IAAI,CAAC9hB,SAAS+pE,UAAU,GAAK,AAA0B,KAAA,IAAnB/pE,SAASwL,IAAI,EAAqBxL,AAAiB,MAAjBA,SAASwL,IAAI,CACjHL,IAGAnH,WAAW4+D,EAAK,EAExB,IAMR,CAAA,EAAGpmE,IAAI,CAAC,AAAkB,aAAlB,OAAOC,OAAyBA,OAAS,IAAI"} diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.min.js b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.min.js index 76232cce550..04ce2fd668c 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.min.js +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Scripts/jsplumb.min.js @@ -1 +1 @@ -function _typeof(t){return _typeof="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},_typeof(t)}(function(){void 0===Math.sgn&&(Math.sgn=function(t){return 0==t?0:t>0?1:-1});var t=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},e=function(t,e){return t.x*e.x+t.y*e.y},n=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},i=function(t,e){return{x:t.x*e,y:t.y*e}},s=Math.pow(2,-65),o=function(e,i){for(var s=[],o=r(e,i),l=i.length-1,u=a(o,2*l-1,s,0),c=t(e,i[0]),d=n(c),p=0,f=0;f=64)return n[0]=(t[0].x+t[e].x)/2,1;if(u(t,e))return n[0]=c(t,e),1}h(t,e,.5,r,d),s=a(r,e,p,i+1),o=a(d,e,f,i+1);for(var g=0;gc?c=p:p0?1:-1,a=null;s=0&&f<=1&&p>=0&&p<=1&&h.push(v)}return h};function b(t,e){return[-t[0][e]+3*t[1][e]+-3*t[2][e]+t[3][e],3*t[0][e]-6*t[1][e]+3*t[2][e],-3*t[0][e]+3*t[1][e],t[0][e]]}function P(t){return t<0?-1:t>0?1:0}function _(t,e,n,i){var s,o,r=e/t,a=n/t,l=i/t,u=(3*a-Math.pow(r,2))/9,c=(9*r*a-27*l-2*Math.pow(r,3))/54,h=Math.pow(u,3)+Math.pow(c,2),d=[];if(h>=0)s=P(c+Math.sqrt(h))*Math.pow(Math.abs(c+Math.sqrt(h)),1/3),o=P(c-Math.sqrt(h))*Math.pow(Math.abs(c-Math.sqrt(h)),1/3),d[0]=-r/3+(s+o),d[1]=-r/3-(s+o)/2,d[2]=-r/3-(s+o)/2,0!==Math.abs(Math.sqrt(3)*(s-o)/2)&&(d[1]=-1,d[2]=-1);else{var p=Math.acos(c/Math.sqrt(-Math.pow(u,3)));d[0]=2*Math.sqrt(-u)*Math.cos(p/3)-r/3,d[1]=2*Math.sqrt(-u)*Math.cos((p+2*Math.PI)/3)-r/3,d[2]=2*Math.sqrt(-u)*Math.cos((p+4*Math.PI)/3)-r/3}for(var f=0;f<3;f++)(d[f]<0||d[f]>1)&&(d[f]=-1);return d}var x=this.jsBezier={distanceFromCurve:o,gradientAtPoint:v,gradientAtPointAlongCurveFrom:function(t,e,n){var i=m(t,e,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),v(t,i.location)},nearestPointOnCurve:function(t,e){var n=o(t,e);return{point:h(e,e.length-1,n.location,null,null),location:n.location}},pointOnCurve:p,pointAlongCurveFrom:function(t,e,n){return m(t,e,n).point},perpendicularToCurveAt:function(t,e,n,i){var s=m(t,e,i=null==i?0:i),o=v(t,s.location),r=Math.atan(-1/o),a=n/2*Math.sin(r),l=n/2*Math.cos(r);return[{x:s.point.x+l,y:s.point.y+a},{x:s.point.x-l,y:s.point.y-a}]},locationAlongCurveFrom:function(t,e,n){return m(t,e,n).location},getLength:function(t){var e=(new Date).getTime();if(g(t))return 0;for(var n=p(t,0),i=0,s=0,o=null;s<1;)o=p(t,s+=.005),i+=f(o,n),n=o;return console.log("length",(new Date).getTime()-e),i},lineIntersection:y,boxIntersection:function(t,e,n,i,s){var o=[];return o.push.apply(o,y(t,e,t+n,e,s)),o.push.apply(o,y(t+n,e,t+n,e+i,s)),o.push.apply(o,y(t+n,e+i,t,e+i,s)),o.push.apply(o,y(t,e+i,t,e,s)),o},boundingBoxIntersection:function(t,e){var n=[];return n.push.apply(n,y(t.x,t.y,t.x+t.w,t.y,e)),n.push.apply(n,y(t.x+t.w,t.y,t.x+t.w,t.y+t.h,e)),n.push.apply(n,y(t.x+t.w,t.y+t.h,t.x,t.y+t.h,e)),n.push.apply(n,y(t.x,t.y+t.h,t.x,t.y,e)),n},version:"0.9.0"};"undefined"!=typeof exports&&(exports.jsBezier=x)}).call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.Biltong={version:"0.4.0"};"undefined"!=typeof exports&&(exports.Biltong=t);var e=function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=function(t,n,i){return i(t=e(t)?t:[t.x,t.y],n=e(n)?n:[n.x,n.y])},i=t.gradient=function(t,e){return n(t,e,(function(t,e){return e[0]==t[0]?e[1]>t[1]?1/0:-1/0:e[1]==t[1]?e[0]>t[0]?0:-0:(e[1]-t[1])/(e[0]-t[0])}))},s=(t.normal=function(t,e){return-1/i(t,e)},t.lineLength=function(t,e){return n(t,e,(function(t,e){return Math.sqrt(Math.pow(e[1]-t[1],2)+Math.pow(e[0]-t[0],2))}))},t.quadrant=function(t,e){return n(t,e,(function(t,e){return e[0]>t[0]||e[0]==t[0]?e[1]>t[1]?2:1:e[1]>t[1]?3:4}))}),o=(t.theta=function(t,e){return n(t,e,(function(t,e){var n=i(t,e),o=Math.atan(n),r=s(t,e);return 4!=r&&3!=r||(o+=Math.PI),o<0&&(o+=2*Math.PI),o}))},t.intersects=function(t,e){var n=t.x,i=t.x+t.w,s=t.y,o=t.y+t.h,r=e.x,a=e.x+e.w,l=e.y,u=e.y+e.h;return n<=r&&r<=i&&s<=l&&l<=o||n<=a&&a<=i&&s<=l&&l<=o||n<=r&&r<=i&&s<=u&&u<=o||n<=a&&r<=i&&s<=u&&u<=o||r<=n&&n<=a&&l<=s&&s<=u||r<=i&&i<=a&&l<=s&&s<=u||r<=n&&n<=a&&l<=o&&o<=u||r<=i&&n<=a&&l<=o&&o<=u},t.encloses=function(t,e,n){var i=t.x,s=t.x+t.w,o=t.y,r=t.y+t.h,a=e.x,l=e.x+e.w,u=e.y,c=e.y+e.h,h=function(t,e,i,s){return n?t<=e&&i>=s:ts};return h(i,a,s,l)&&h(o,u,r,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),r=[null,[-1,-1],[-1,1],[1,1],[1,-1]];t.pointOnLine=function(t,e,n){var a=i(t,e),l=s(t,e),u=n>0?o[l]:r[l],c=Math.atan(a),h=Math.abs(n*Math.sin(c))*u[1],d=Math.abs(n*Math.cos(c))*u[0];return{x:t.x+d,y:t.y+h}},t.perpendicularLineTo=function(t,e,n){var s=i(t,e),o=Math.atan(-1/s),r=n/2*Math.sin(o),a=n/2*Math.cos(o);return[{x:e.x+a,y:e.y+r},{x:e.x-a,y:e.y-r}]}}.call("undefined"!=typeof window?window:this),function(){"use strict";function t(t,e,n,i,s,o,r,a){return new Touch({target:e,identifier:A(),pageX:n,pageY:i,screenX:s,screenY:o,clientX:r||s,clientY:a||o})}function e(e,n,i,s,o,r,a,l){return function(){var t=[];return Array.prototype.push.apply(t,arguments),t.item=function(t){return this[t]},t}(t.apply(null,arguments))}var n=this,i=function(t,e,n){for(var i=(n=n||t.parentNode).querySelectorAll(e),s=0;s-1&&P<9,x=function(t,e){if(null==t)return[0,0];var n=E(t),i=j(n,0);return[i[e+"X"],i[e+"Y"]]},C=function(t){return null==t?[0,0]:_?[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop]:x(t,"page")},j=function(t,e){return t.item?t.item(e):t[e]},E=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},S=function(t){return E(t).length},D=function(t,e,n,i){if(u(t,e,n),i.__tauid=n.__tauid,t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent){var s=e+n.__tauid;t["e"+s]=n,t[s]=function(){t["e"+s]&&t["e"+s](window.event)},t.attachEvent("on"+e,t[s])}},w=function(t,e,n){null!=n&&I(t,(function(){var i=s(this);if(function(t,e,n){if(t.__ta&&t.__ta[e]&&delete t.__ta[e][n.__tauid],n.__taExtra){for(var i=0;i-1&&r<9,l=9===r,u=function(t){if(a)return[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop];var e=h(t),n=c(e,0);return l?[n.pageX||n.clientX,n.pageY||n.clientY]:[n.pageX,n.pageY]},c=function(t,e){return t.item?t.item(e):t[e]},h=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},d={delegatedDraggable:"katavorio-delegated-draggable",draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},p=["stop","start","drag","drop","over","out","beforeStart"],f=function(){},g=function(){return!0},m=function(t,e,n){for(var i=0;i0){var v=function(t,e,n){for(var i=null,r=e.getAttribute("katavorio-draggable"),a=null!=r?"[katavorio-draggable='"+r+"'] ":"",l=0;l0)for(var o=0;o0&&$&&e.setPosition(F,$),Z.sort(S);for(var s=0;se.rank?-1:0},D=function(t){return null==t||null==(t="string"==typeof t||t.constructor===String?document.getElementById(t):t)?null:(t._katavorio=t._katavorio||E(),t)};t.Katavorio=function(t){var s=[],o={};this._dragsByScope={},this._dropsByScope={};var r=1,a=function(t,e){y(t,(function(t){for(var n=0;n0},u=(this.getMatchingDroppables=function(t){for(var e=[],n={},i=0;i=0&&s.splice(i,1),l(t[e],n)&&y(t[e],(function(t){t.destroy()})),delete t[e]}},w=function(t,e,n,i){(t=D(t))[e]&&t[e].off(n,i)};this.elementRemoved=function(t){t._katavorioDrag&&this.destroyDraggable(t),t._katavorioDrop&&this.destroyDroppable(t)},this.destroyDraggable=function(t,e,n){1===arguments.length?E(t,"_katavorioDrag",this._dragsByScope):w(t,"_katavorioDrag",e,n)},this.destroyDroppable=function(t,e,n){1===arguments.length?E(t,"_katavorioDrop",this._dropsByScope):w(t,"_katavorioDrop",e,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},s=[],o={},I={}};var I={},A=function(t,n,s){var o,r=i(n)?n:n.id,a=!!i(n)||!1!==n.active,l=I[r]||(o={name:r,members:[]},I[r]=o,o);return y(t,(function(t){if(t._katavorioDrag){if(s&&null!=t._katavorioDrag.posseRoles[l.name])return;e(l.members,t._katavorioDrag),e(t._katavorioDrag.posses,l.name),t._katavorioDrag.posseRoles[l.name]=a}})),l};this.addToPosse=function(t,e){for(var n=[],i=1;i-1&&t.splice(n,1),-1!==n}function d(t,e,n,i){var s=t[e];return null==s&&(s=[],t[e]=s),s[i?"unshift":"push"](n),s}"undefined"!=typeof exports&&(exports.jsPlumbUtil=e),e.isArray=n,e.isNumber=function(t){return"[object Number]"===Object.prototype.toString.call(t)},e.isString=i,e.isBoolean=s,e.isNull=function(t){return null==t},e.isObject=o,e.isDate=r,e.isFunction=a,e.isNamedFunction=function(t){return a(t)&&null!=t.name&&t.name.length>0},e.isEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},e.clone=l,e.merge=u,e.replace=function(t,e,n){if(null!=t){var i=t;return e.replace(/([^\.])+/g,(function(t,e,s,o){var r=t.match(/([^\[0-9]+){1}(\[)([0-9+])/),a=function(){return i[r[1]]||(i[r[1]]=[],i[r[1]])};if(s+t.length>=o.length)r?a()[r[3]]=n:i[t]=n;else if(r){var l=a();i=l[r[3]]||(l[r[3]]={},l[r[3]])}else i=i[t]||(i[t]={},i[t]);return""})),t}},e.functionChain=function(t,e,n){for(var i=0;i-1&&t.splice(n,1),-1!==n},e.remove=h,e.addWithFunction=function(t,e,n){-1===c(t,n)&&t.push(e)},e.addToList=d,e.suggest=function(t,e,n){return-1===t.indexOf(e)&&(n?t.unshift(e):t.push(e),!0)},e.extend=function(t,e,i){var s;e=n(e)?e:[e];var o=function(e){for(var n=e.__proto__;null!=n;)if(null!=n.prototype){for(var i in n.prototype)n.prototype.hasOwnProperty(i)&&!t.prototype.hasOwnProperty(i)&&(t.prototype[i]=n.prototype[i]);n=n.prototype.__proto__}else n=null};for(s=0;s2)for(s=2;s>8&255]+p[t>>16&255]+p[t>>24&255]+"-"+p[255&e]+p[e>>8&255]+"-"+p[e>>16&15|64]+p[e>>24&255]+"-"+p[63&n|128]+p[n>>8&255]+"-"+p[n>>16&255]+p[n>>24&255]+p[255&i]+p[i>>8&255]+p[i>>16&255]+p[i>>24&255]}function m(){for(var t=[],n=0;ne.scrollTop+e.offsetHeight)i[a]._jsPlumbProxies||(i[a]._jsPlumbProxies=i[a]._jsPlumbProxies||[],t.select({source:i[a]}).each((function(n){t.proxyConnection(n,0,e,r,(function(){return o("bottom",0,n.endpoints[0],n)}),(function(){return s("bottom",0,n.endpoints[0],n)})),i[a]._jsPlumbProxies.push([n,0])})),t.select({target:i[a]}).each((function(n){t.proxyConnection(n,1,e,r,(function(){return o("bottom",1,n.endpoints[1],n)}),(function(){return s("bottom",1,n.endpoints[1],n)})),i[a]._jsPlumbProxies.push([n,1])})));else if(i[a]._jsPlumbProxies){for(var l=0;l0)for(var t=0;t0){var r=Array.prototype.slice.call(arguments,1);try{for(var a=0,l=i.length;a0?-1!==t.indexOf(e):!n)};this.getConnections=function(t,e){t?t.constructor===String&&(t={scope:t}):t={};for(var n=t.scope||s.getDefaultScope(),i=q(n,!0),o=q(t.source),r=q(t.target),a=!e&&i.length>1?{}:[],l=function(t,n){if(!e&&i.length>1){var s=a[t];null==s&&(s=a[t]=[]),s.push(n)}else a.push(n)},u=0,c=y.length;u0&&!g.isSource,v=d&&s.length>0&&!g.isTarget;if(m||v)continue t;r.push(g)}}}return tt(r)},this.getAllConnections=function(){return y},this.getDefaultScope=function(){return w},this.getEndpoint=M,this.getEndpoints=function(t){return b[d(t).id]||[]},this.getDefaultEndpointType=function(){return h.Endpoint},this.getDefaultConnectionType=function(){return h.Connection},this.getId=U,this.draw=O,this.info=d,this.appendElement=k;var et=!1;this.isHoverSuspended=function(){return et},this.setHoverSuspended=function(t){et=t},this.hide=function(t,e){return R(t,"none",e),s},this.idstamp=A;var nt=function(t){if(!f&&t){var e=s.getElement(t);e.offsetParent&&s.setContainer(e.offsetParent)}},it=s.manage=function(t,e,n,i){return _[t]?i&&(_[t].info=st({elId:t,timestamp:D,recalc:!0})):(_[t]={el:e,endpoints:[],connections:[],rotation:0},_[t].info=st({elId:t,timestamp:D}),s.addClass(e,"jtk-managed"),n||s.fire("manageElement",{id:t,info:_[t].info,el:e})),_[t]};this.unmanage=function(t){if(_[t]){var e=_[t].el;s.removeClass(e,"jtk-managed"),delete _[t],s.fire("unmanageElement",{id:t,el:e})}},this.rotate=function(t,e,n){return _[t]&&(_[t].rotation=e,_[t].el.style.transform="rotate("+e+"deg)",_[t].el.style.transformOrigin="center center",!0!==n)?this.revalidate(t):{c:[],e:[]}},this.getRotation=function(t){return _[t]&&_[t].rotation||0};var st=function(t){var e,n=t.timestamp,i=t.recalc,o=t.offset,r=t.elId;return S&&!n&&(n=D),!i&&n&&n===C[r]?{o:t.offset||x[r],s:E[r]}:(i||!o&&null==x[r]?null!=(e=_[r]?_[r].el:null)&&(E[r]=s.getSize(e),x[r]=s.getOffset(e),C[r]=n):(x[r]=o||x[r],null==E[r]&&null!=(e=_[r].el)&&(E[r]=s.getSize(e)),C[r]=n),x[r]&&!x[r].right&&(x[r].right=x[r].left+E[r][0],x[r].bottom=x[r].top+E[r][1],x[r].width=E[r][0],x[r].height=E[r][1],x[r].centerx=x[r].left+x[r].width/2,x[r].centery=x[r].top+x[r].height/2),{o:x[r],s:E[r]})};this.updateOffset=st,this.init=function(){v||(s.Defaults.Container&&s.setContainer(s.Defaults.Container),s.router=new t.jsPlumb.DefaultRouter(s),s.anchorManager=s.router.anchorManager,v=!0,s.fire("ready",s))}.bind(this),this.log=m,this.jsPlumbUIComponent=a,this.makeAnchor=function(){var n,i=function(e,n){if(t.jsPlumb.Anchors[e])return new t.jsPlumb.Anchors[e](n);if(!s.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+e+"'"}};if(0===arguments.length)return null;var o=arguments[0],r=arguments[1],a=null;if(o.compute&&o.getOrientation)return o;if("string"==typeof o)a=i(arguments[0],{elementId:r,jsPlumbInstance:s});else if(e.isArray(o))if(e.isArray(o[0])||e.isString(o[0]))2===o.length&&e.isObject(o[1])?e.isString(o[0])?(n=t.jsPlumb.extend({elementId:r,jsPlumbInstance:s},o[1]),a=i(o[0],n)):(n=t.jsPlumb.extend({elementId:r,jsPlumbInstance:s,anchors:o[0]},o[1]),a=new t.jsPlumb.DynamicAnchor(n)):a=new h.DynamicAnchor({anchors:o,selector:null,elementId:r,jsPlumbInstance:s});else{var l={x:o[0],y:o[1],orientation:o.length>=4?[o[2],o[3]]:[0,0],offsets:o.length>=6?[o[4],o[5]]:[0,0],elementId:r,jsPlumbInstance:s,cssClass:7===o.length?o[6]:null};(a=new t.jsPlumb.Anchor(l)).clone=function(){return new t.jsPlumb.Anchor(l)}}return a.id||(a.id="anchor_"+A()),a},this.makeAnchors=function(n,i,o){for(var r=[],a=0,l=n.length;a0&&t>=n.def.maxConnections},element:n.el,elementId:n.id,isSource:r,isTarget:l,addClass:function(t){s.addClass(n.el,t)},removeClass:function(t){s.removeClass(n.el,t)},onDrop:function(t){t.endpoints[0].anchor.locked=!1},isDropAllowed:function(){return u.isDropAllowed.apply(u,arguments)},isRedrop:function(t){return null!=t.suspendedElement&&null!=t.suspendedEndpoint&&t.suspendedEndpoint.element===n.el},getEndpoint:function(e){var o=n.def.endpoint;if(null==o||null==o._jsPlumb){var r=s.deriveEndpointAndAnchorSpec(e.getType().join(" "),!0),a=r.endpoints?t.jsPlumb.extend(i,{endpoint:n.def.def.endpoint||r.endpoints[1]}):i;r.anchors&&(a=t.jsPlumb.extend(a,{anchor:n.def.def.anchor||r.anchors[1]})),(o=s.addEndpoint(n.el,a))._mtNew=!0}if(i.uniqueEndpoint&&(n.def.endpoint=o),o.setDeleteOnEmpty(!0),e.isDetachable()&&o.initDraggable(),null!=o.anchor.positionFinder){var l=s.getUIPosition(arguments,s.getZoom()),u=s.getOffset(n.el),c=s.getSize(n.el),h=null==l?[0,0]:o.anchor.positionFinder(l,u,c,o.anchor.constructorParams);o.anchor.x=h[0],o.anchor.y=h[1]}return o},maybeCleanup:function(t){t._mtNew&&0===t.connections.length?s.deleteObject({endpoint:t}):delete t._mtNew}}),h=t.jsPlumb.dragEvents.drop;return o.scope=o.scope||i.scope||s.Defaults.Scope,o[h]=e.wrap(o[h],c,!0),o.rank=i.rank||0,l&&(o[t.jsPlumb.dragEvents.over]=function(){return!0}),!1===i.allowLoopback&&(o.canDrop=function(t){return t.getDragElement()._jsPlumbRelatedElement!==n.el}),s.initDroppable(n.el,o,"internal"),c};this.makeTarget=function(e,n,i){var o=t.jsPlumb.extend({_jsPlumb:this},i);t.jsPlumb.extend(o,n);for(var r=o.maxConnections||-1,a=function(e){var n=d(e),i=n.id,a=t.jsPlumb.extend({},o.dropOptions||{}),l=o.connectionType||"default";this.targetEndpointDefinitions[i]=this.targetEndpointDefinitions[i]||{},nt(i),n.el._isJsPlumbGroup&&null==a.rank&&(a.rank=-1);var u={def:t.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:r,enabled:!0};o.createEndpoint&&(u.uniqueEndpoint=!0,u.endpoint=s.addEndpoint(e,u.def),u.endpoint.setDeleteOnEmpty(!1)),n.def=u,this.targetEndpointDefinitions[i][l]=u,ot(n,o,a,!0===o.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=u}.bind(this),l=e.length&&e.constructor!==String?e:[e],u=0,c=l.length;u=0&&p>=d.maxConnections)return h&&h({element:i.el,maxConnections:u},n),!1;var f=t.jsPlumb.getPositionOnElement(n,l,c),m={};t.jsPlumb.extend(m,d.def),m.isTemporarySource=!0,m.anchor=[f[0],f[1],0,0],m.dragOptions=g,d.def.scope&&(m.scope=d.def.scope),y=this.addEndpoint(o,m),b=!0,y.setDeleteOnEmpty(!0),d.uniqueEndpoint&&(d.endpoint?y.finalEndpoint=d.endpoint:(d.endpoint=y,y.setDeleteOnEmpty(!1)));var v=function(){s.off(y.canvas,"mouseup",v),s.off(i.el,"mouseup",v),b&&(b=!1,s.deleteEndpoint(y))};s.on(y.canvas,"mouseup",v),s.on(i.el,"mouseup",v);var P={};if(d.def.extract)for(var _ in d.def.extract){var x=(n.srcElement||n.target).getAttribute(_);x&&(P[d.def.extract[_]]=x)}s.trigger(y.canvas,"mousedown",n,P),e.consume(n)}}}.bind(this);this.on(i.el,"mousedown",P),d.trigger=P,r.filter&&(e.isString(r.filter)||e.isFunction(r.filter))&&s.setDragFilter(i.el,r.filter);var _=t.jsPlumb.extend({},r.dropOptions||{});ot(i,r,_,!0,!0===r.isTarget)}.bind(this),f=n.length&&n.constructor!==String?n:[n],g=0,m=f.length;g0;)i(s.el.childNodes[0]);e||ct(s,n)}};return s.batch((function(){i(t,!0)}),!1===e),s},this.reset=function(t){s.silently(function(){et=!1,s.removeAllGroups(),s.removeGroupManager(),s.deleteEveryEndpoint(),t||s.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},y.length=0,this.doReset&&this.doReset()}.bind(this))},this.destroy=function(){this.reset(),f=null,g=null};var ht=function(t){t.canvas&&t.canvas.parentNode&&t.canvas.parentNode.removeChild(t.canvas),t.cleanup(),t.destroy()};this.clear=function(){s.select().each(ht),s.selectEndpoints().each(ht),b={},P={}},this.setDefaultScope=function(t){return w=t,s},this.deriveEndpointAndAnchorSpec=function(t,e){for(var n=((e?"":"default ")+t).split(/[\s]/),i=null,o=null,r=null,a=null,l=0;l0)for(var e=0;e0?"add":"remove")+"Class"](s.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](s.endpointFullClass)},this.detachFromConnection=function(t,e,n){(e=null==e?this.connections.indexOf(t):e)>=0&&(this.connections.splice(e,1),this[(this.connections.length>0?"add":"remove")+"Class"](s.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](s.endpointFullClass)),!n&&a&&0===this.connections.length&&s.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(t){for(var e=this.connections.length,n=0;n0){var c=function(t,e){var n=0;if(null!=e)for(var i=0;i0&&(u.connection=this.connections[0]);u.rotation=s.getRotation(this.elementId),r=this.anchor.compute(u)}for(var m in this.endpoint.compute(r,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,a||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=e,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(m)){var v=this._jsPlumb.overlays[m];v.isVisible()&&(this._jsPlumb.overlayPlacements[m]=v.draw(this.endpoint,this._jsPlumb.paintStyleInUse),v.paint(this._jsPlumb.overlayPlacements[m]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var c=!1;this.initDraggable=function(){if(!c&&e.isDragSupported(this.element)){var i,a={id:null,element:null},l=null,u=!1,h=null,d=function(t,e,n){var i=!1;return{drag:function(){if(i)return i=!1,!0;if(e.element){var s=n.getUIPosition(arguments,n.getZoom());null!=s&&n.setPosition(e.element,s),n.repaint(e.element,s),t.paint({anchorPoint:t.anchor.getCurrentLocation({element:t})})}},stopDrag:function(){i=!0}}}(this,a,s),p=t.dragOptions||{},f=e.dragEvents.start,g=e.dragEvents.stop,m=e.dragEvents.drag,v=e.dragEvents.beforeStart,y=function(n){l=this.connectorSelector();var c=!0;this.isEnabled()||(c=!1),null!=l||this.isSource||this.isTemporarySource||(c=!1),!this.isSource||!this.isFull()||null!=l&&this.dragAllowedWhenFull||(c=!1),null==l||l.isDetachable(this)||(this.isFull()?c=!1:l=null);var p=s.checkCondition(null==l?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:l});if(!1===p?c=!1:"object"===_typeof(p)?e.extend(p,i||{}):p=i||{},!1===c)return s.stopDrag&&s.stopDrag(this.canvas),d.stopDrag(),!1;for(var f=0;f0&&!1!==this.connectionsDetachable}.bind(this),s.initDraggable(this.canvas,p,"internal"),this.canvas._jsPlumbRelatedElement=this.element,c=!0}};var h=t.endpoint||this._jsPlumb.instance.Defaults.Endpoint||e.Defaults.Endpoint;this.setEndpoint(h,!0);var d=t.anchor?t.anchor:t.anchors?t.anchors:s.Defaults.Anchor||"Top";this.setAnchor(d,!0);var p=["default",t.type||""].join(" ");this.addType(p,t.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var f=function(i,o,r,a){if(e.isDropSupported(this.element)){var l=t.dropOptions||s.Defaults.DropOptions||e.Defaults.DropOptions;(l=e.extend({},l)).scope=l.scope||this.scope;var u=e.dragEvents.drop,c=e.dragEvents.over,h=e.dragEvents.out,d=this,p=s.EndpointDropHandler({getEndpoint:function(){return d},jsPlumb:s,enabled:function(){return null==r||r.isEnabled()},isFull:function(){return r.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(t){d.addClass(t)},removeClass:function(t){d.removeClass(t)},isDropAllowed:function(){return d.isDropAllowed.apply(d,arguments)},reference:a,isRedrop:function(t,e){return t.suspendedEndpoint&&e.reference&&t.suspendedEndpoint.id===e.reference.id}});l[u]=n.wrap(l[u],p,!0),l[c]=n.wrap(l[c],function(){var t=e.getDragObject(arguments),n=s.getAttribute(e.getElement(t),"dragId"),i=s.getFloatingConnectionFor(n);if(null!=i){var o=s.getFloatingAnchorIndex(i);if(this.isTarget&&0!==o||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id){var r=s.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[o],targetEndpoint:this,connection:i});this[(r?"add":"remove")+"Class"](s.endpointDropAllowedClass),this[(r?"remove":"add")+"Class"](s.endpointDropForbiddenClass),i.endpoints[o].anchor.over(this.anchor,this)}}}.bind(this)),l[h]=n.wrap(l[h],function(){var t=e.getDragObject(arguments),n=null==t?null:s.getAttribute(e.getElement(t),"dragId"),i=n?s.getFloatingConnectionFor(n):null;if(null!=i){var o=s.getFloatingAnchorIndex(i);(this.isTarget&&0!==o||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id)&&(this.removeClass(s.endpointDropAllowedClass),this.removeClass(s.endpointDropForbiddenClass),i.endpoints[o].anchor.out())}}.bind(this)),s.initDroppable(i,l,"internal",o)}}.bind(this);return this.anchor.isFloating||f(this.canvas,!(t._transient||this.anchor.isFloating),this,t.reference),this},n.extend(e.Endpoint,e.OverlayCapableJsPlumbUIComponent,{setVisible:function(t,e,n){if(this._jsPlumb.visible=t,this.canvas&&(this.canvas.style.display=t?"block":"none"),this[t?"showOverlays":"hideOverlays"](),!e)for(var i=0;i0)for(var h=function(t,e,n,i,s,o,r,a){for(var l=[],u=e[s?0:1]/(i.length+1),c=0;c-1&&(r[s.targetId][l][0]=s,r[s.targetId][l][1]=s.endpoints[0],r[s.targetId][l][2]=s.endpoints[0].anchor.constructor===n.DynamicAnchor),e.addToList(r,i,[s,s.endpoints[1],s.endpoints[1].anchor.constructor===n.DynamicAnchor]),s.endpoints[1].anchor.isContinuous&&(s.source===s.target?s._jsPlumb.instance.removeElement(s.endpoints[1].canvas):null==s.endpoints[1].canvas.parentNode&&s._jsPlumb.instance.appendElement(s.endpoints[1].canvas)),s.updateConnectedClass()}}else if(1===a){var u=s.endpoints[0].elementId;s.target=o,s.targetId=i;var c=e.findWithFunction(r[u],(function(t){return t[0].id===s.id})),h=e.findWithFunction(r[t],(function(t){return t[0].id===s.id}));-1!==c&&(r[u][c][0]=s,r[u][c][1]=s.endpoints[1],r[u][c][2]=s.endpoints[1].anchor.constructor===n.DynamicAnchor),h>-1&&(r[t].splice(h,1),e.addToList(r,i,[s,s.endpoints[0],s.endpoints[0].anchor.constructor===n.DynamicAnchor])),s.updateConnectedClass()}},this.rehomeEndpoint=function(t,e,n){var s=i[e]||[],o=u.getId(n);if(o!==e){var r=s.indexOf(t);if(r>-1){var l=s.splice(r,1)[0];a.add(l,o)}}for(var c=0;ce.dist?1:0}));for(var m=d[0].source,v=d[0].target,y=0;y0?this.anchors[0]:null,a=r,l=function(t,e,n,i,s,o,r){var a=i[0]+t.x*s[0],l=i[1]+t.y*s[1],u=i[0]+s[0]/2,c=i[1]+s[1]/2;if(null!=o&&0!==o){var h=jsPlumbUtil.rotatePoint([a,l],[u,c],o);a=h[0],l=h[1]}return Math.sqrt(Math.pow(e-a,2)+Math.pow(n-l,2))+Math.sqrt(Math.pow(u-a,2)+Math.pow(c-l,2))},u=t.selector||function(t,e,n,i,s,o,r){for(var a=n[0]+i[0]/2,u=n[1]+i[1]/2,c=-1,h=1/0,d=0;d0?t:n+t:t*n;return i.pointOnLine({x:r,y:l},{x:a,y:u},s)}return{x:a,y:u}}return{x:r,y:l}},this.gradientAtPoint=function(t){return s},this.pointAlongPathFrom=function(t,e,n){var s=this.pointOnPath(t,n),o=e<=0?{x:r,y:l}:{x:a,y:u};return e<=0&&Math.abs(e)>1&&(e*=-1),i.pointOnLine(s,o,e)};var c=function(t,e,n){return n>=Math.min(t,e)&&n<=Math.max(t,e)},h=function(t,e,n){return Math.abs(n-t)e?e<=t&&t<=n:e>=t&&t>=n};this.lineIntersection=function(t,e,n,o){var c=Math.abs(i.gradient({x:t,y:e},{x:n,y:o})),h=Math.abs(s),p=h===1/0?r:l-h*r,f=[],g=c===1/0?t:e-c*t;if(c!==h)if(c===1/0&&0===h)d(t,r,a)&&d(l,e,o)&&(f=[t,l]);else if(0===c&&h===1/0)d(e,l,u)&&d(r,t,n)&&(f=[r,e]);else{var m,v;c===1/0?d(m=t,r,a)&&d(v=h*t+p,e,o)&&(f=[m,v]):0===c?d(v=e,l,u)&&d(m=(e-p)/h,t,n)&&(f=[m,v]):(v=h*(m=(g-p)/(h-c))+p,d(m,r,a)&&d(v,l,u)&&(f=[m,v]))}return f},this.boxIntersection=function(t,e,n,i){var s=[];return s.push.apply(s,this.lineIntersection(t,e,t+n,e)),s.push.apply(s,this.lineIntersection(t+n,e,t+n,e+i)),s.push.apply(s,this.lineIntersection(t+n,e+i,t,e+i)),s.push.apply(s,this.lineIntersection(t,e+i,t,e)),s},this.boundingBoxIntersection=function(t){return this.boxIntersection(t.x,t.y,t.w,t.h)}},Arc:function(t){e.Segments.AbstractSegment.apply(this,arguments);var n=function(e,n){return i.theta([t.cx,t.cy],[e,n])},s=2*Math.PI;this.radius=t.r,this.anticlockwise=t.ac,this.type="Arc",t.startAngle&&t.endAngle?(this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.x1=t.cx+this.radius*Math.cos(t.startAngle),this.y1=t.cy+this.radius*Math.sin(t.startAngle),this.x2=t.cx+this.radius*Math.cos(t.endAngle),this.y2=t.cy+this.radius*Math.sin(t.endAngle)):(this.startAngle=n(t.x1,t.y1),this.endAngle=n(t.x2,t.y2),this.x1=t.x1,this.y1=t.y1,this.x2=t.x2,this.y2=t.y2),this.endAngle<0&&(this.endAngle+=s),this.startAngle<0&&(this.startAngle+=s);var o=this.endAngle0?0:1,n)),n};this.pointOnPath=function(e,n){return e=o(this.curve,e,n),t.jsBezier.pointOnCurve(this.curve,e)},this.gradientAtPoint=function(e,n){return e=o(this.curve,e,n),t.jsBezier.gradientAtPoint(this.curve,e)},this.pointAlongPathFrom=function(e,n,i){return e=o(this.curve,e,i),t.jsBezier.pointAlongCurveFrom(this.curve,e,n)},this.getLength=function(){return this.length},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(e,n){var i=t.jsBezier.nearestPointOnCurve({x:e,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-e,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:1-i.location,s:this}},this.lineIntersection=function(e,n,i,s){return t.jsBezier.lineIntersection(e,n,i,s,this.curve)}}},e.SegmentRenderer={getPath:function(t,e){return{Straight:function(e){var n=t.getCoordinates();return(e?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(e){var n=t.params;return(e?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(e){var n=t.params,i=t.sweep>Math.PI?1:0,s=t.anticlockwise?0:1;return(e?"M"+t.x1+" "+t.y1+" ":"")+"A "+t.radius+" "+n.r+" 0 "+i+","+s+" "+t.x2+" "+t.y2}}[t.type](e)}};var s=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};e.Connectors.AbstractConnector=function(t){s.apply(this,arguments);var o=[],r=0,a=[],l=[],u=t.stub||0,c=n.isArray(u)?u[0]:u,h=n.isArray(u)?u[1]:u,d=t.gap||0,p=n.isArray(d)?d[0]:d,f=n.isArray(d)?d[1]:d,g=null,m=null;this.getPathData=function(){for(var t="",n=0;n0?t/r:(r+t)/r),1===t)n=o.length-1,s=1;else if(0===t)s=0,n=0;else if(t>=.5){for(n=0,s=0,i=a.length-1;i>-1;i--)if(a[i][1]>=t&&a[i][0]<=t){n=i,s=(t-a[i][0])/l[i];break}}else for(n=a.length-1,s=1,i=0;i=t){n=i,s=(t-a[i][0])/l[i];break}return{segment:o[n],proportion:s,index:n}};this.setSegments=function(t){g=[],r=0;for(var e=0;eg?0:1,v=[1,0][m];a=[],(r=[])[m]=t.sourcePos[m]>t.targetPos[m]?-1:1,a[m]=t.sourcePos[m]>t.targetPos[m]?1:-1,r[v]=0,a[v]=0}var y=n?d+p*r[0]:p*r[0],b=s?g+p*r[1]:p*r[1],P=n?f*a[0]:d+f*a[0],_=s?f*a[1]:g+f*a[1],x=r[0]*a[0]+r[1]*a[1],C={sx:y,sy:b,tx:P,ty:_,lw:o,xSpan:Math.abs(P-y),ySpan:Math.abs(_-b),mx:(y+P)/2,my:(b+_)/2,so:r,to:a,x:l,y:u,w:d,h:g,segment:e,startStubX:y+r[0]*c,startStubY:b+r[1]*c,endStubX:P+a[0]*h,endStubY:_+a[1]*h,isXGreaterThanStubTimes2:Math.abs(y-P)>c+h,isYGreaterThanStubTimes2:Math.abs(b-_)>c+h,opposite:-1===x,perpendicular:0===x,orthogonal:1===x,sourceAxis:0===r[0]?"y":"x",points:[l,u,d,g,y,b,P,_],stubs:[c,h]};return C.anchorOrientation=C.opposite?"opposite":C.orthogonal?"orthogonal":"perpendicular",C};this.getSegments=function(){return o},this.updateBounds=function(t){var e=t.getBounds();this.bounds.minX=Math.min(this.bounds.minX,e.minX),this.bounds.maxX=Math.max(this.bounds.maxX,e.maxX),this.bounds.minY=Math.min(this.bounds.minY,e.minY),this.bounds.maxY=Math.max(this.bounds.maxY,e.maxY)};return this.pointOnPath=function(t,e){var n=v(t,e);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(t,e){var n=v(t,e);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(t,e,n){var i=v(t,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,e,!1)||[0,0]},this.compute=function(t){m=y.call(this,t),r=o.length=a.length=l.length=0,this._compute(m,t),this.x=m.points[0],this.y=m.points[1],this.w=m.points[2],this.h=m.points[3],this.segment=m.segment,function(){for(var t=0,e=0;e1||this.loc<0){var c=parseInt(this.loc,10),h=this.loc<0?1:0;s=t.pointAlongPathFrom(h,c,!1),r=t.pointAlongPathFrom(h,c-this.direction*this.length/2,!1),l=i.pointOnLine(s,r,this.length)}else if(1===this.loc){if(s=t.pointOnPath(this.loc),r=t.pointAlongPathFrom(this.loc,-this.length),l=i.pointOnLine(s,r,this.length),-1===this.direction){var d=l;l=s,s=d}}else if(0===this.loc){if(l=t.pointOnPath(this.loc),r=t.pointAlongPathFrom(this.loc,this.length),s=i.pointOnLine(l,r,this.length),-1===this.direction){var p=l;l=s,s=p}}else s=t.pointAlongPathFrom(this.loc,this.direction*this.length/2),r=t.pointOnPath(this.loc),l=i.pointOnLine(s,r,this.length);var f={hxy:s,tail:u=i.perpendicularLineTo(s,l,this.width),cxy:i.pointOnLine(s,l,a*this.length)},g=o.stroke||e.stroke,m=o.fill||e.stroke;return{component:t,d:f,"stroke-width":o.strokeWidth||e.strokeWidth,stroke:g,fill:m,minX:Math.min(s.x,u[0].x,u[1].x),maxX:Math.max(s.x,u[0].x,u[1].x),minY:Math.min(s.y,u[0].y,u[1].y),maxY:Math.max(s.y,u[0].y,u[1].y)}}return{component:t,minX:0,maxX:0,minY:0,maxY:0}}},n.extend(e.Overlays.Arrow,r,{updateFrom:function(t){this.length=t.length||this.length,this.width=t.width||this.width,this.direction=null!=t.direction?t.direction:this.direction,this.foldback=t.foldback||this.foldback},cleanup:function(){this.path&&this.path.parentNode&&this.path.parentNode.removeChild(this.path)}}),e.Overlays.PlainArrow=function(t){t=t||{};var n=e.extend(t,{foldback:1});e.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(e.Overlays.PlainArrow,e.Overlays.Arrow),e.Overlays.Diamond=function(t){var n=(t=t||{}).length||40,i=e.extend(t,{length:n/2,foldback:2});e.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(e.Overlays.Diamond,e.Overlays.Arrow);var a=function(t,e){return(null==t._jsPlumb.cachedDimensions||e)&&(t._jsPlumb.cachedDimensions=t.getDimensions()),t._jsPlumb.cachedDimensions},l=function(t){e.jsPlumbUIComponent.apply(this,arguments),r.apply(this,arguments);var i=this.fire;this.fire=function(){i.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=t.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=t.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=t.create,this._jsPlumb.initiallyInvisible=!1===t.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=e.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:t.cssClass?t.cssClass:"")),this._jsPlumb.instance.appendElement(n),this._jsPlumb.instance.getId(n),this.canvas=n;var i="translate(-50%, -50%)";n.style.webkitTransform=i,n.style.mozTransform=i,n.style.msTransform=i,n.style.oTransform=i,n.style.transform=i,n._jsPlumb=this,!1===t.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(t,e,i){var s=a(this);if(null!=s&&2===s.length){var o={x:0,y:0};if(i)o={x:i[0],y:i[1]};else if(t.pointOnPath){var r=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(r=parseInt(this.loc,10),l=!0),o=t.pointOnPath(r,l)}else{var u=this.loc.constructor===Array?this.loc:this.endpointLoc;o={x:u[0]*t.w,y:u[1]*t.h}}var c=o.x-s[0]/2,h=o.y-s[1]/2;return{component:t,d:{minx:c,miny:h,td:s,cxy:o},minX:c,maxX:c+s[0],minY:h,maxY:h+s[1]}}return{minX:0,maxX:0,minY:0,maxY:0}}};n.extend(l,[e.jsPlumbUIComponent,r],{getDimensions:function(){return[1,1]},setVisible:function(t){this._jsPlumb.div&&(this._jsPlumb.div.style.display=t?"block":"none",t&&this._jsPlumb.initiallyInvisible&&(a(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(t){t?null!=this._jsPlumb.div&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(t,e){null!=this._jsPlumb.div&&t.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var t=a(this);return Math.max(t[0],t[1])},paint:function(t,e){this._jsPlumb.initialised||(this.getElement(),t.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=t.component.x+t.d.minx+"px",this._jsPlumb.div.style.top=t.component.y+t.d.miny+"px"}}),e.Overlays.Custom=function(t){this.type="Custom",l.apply(this,arguments)},n.extend(e.Overlays.Custom,l),e.Overlays.GuideLines=function(){var t=this;t.length=50,t.strokeWidth=5,this.type="GuideLines",r.apply(this,arguments),e.jsPlumbUIComponent.apply(this,arguments),this.draw=function(e,n){var s=e.pointAlongPathFrom(t.loc,t.length/2),o=e.pointOnPath(t.loc),r=i.pointOnLine(s,o,t.length),a=i.perpendicularLineTo(s,r,40),l=i.perpendicularLineTo(r,s,20);return{connector:e,head:s,tail:r,headLine:l,tailLine:a,minX:Math.min(s.x,r.x,l[0].x,l[1].x),minY:Math.min(s.y,r.y,l[0].y,l[1].y),maxX:Math.max(s.x,r.x,l[0].x,l[1].x),maxY:Math.max(s.y,r.y,l[0].y,l[1].y)}}},e.Overlays.Label=function(t){this.labelStyle=t.labelStyle;this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=e.extend({create:function(){return e.createElement("div")}},t);if(e.Overlays.Custom.call(this,n),this.type="Label",this.label=t.label||"",this.labelText=null,this.labelStyle){var i=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",i.style.font=this.labelStyle.font,i.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(i.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var s=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";i.style.border=this.labelStyle.borderWidth+"px solid "+s}this.labelStyle.padding&&(i.style.padding=this.labelStyle.padding)}},n.extend(e.Overlays.Label,e.Overlays.Custom,{cleanup:function(t){t&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(t){this.label=t,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),l.prototype.getDimensions.apply(this,arguments)},update:function(){if("function"==typeof this.label){var t=this.label(this);this.getElement().innerHTML=t.replace(/\r\n/g,"
")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"
"))},updateFrom:function(t){null!=t.label&&this.setLabel(t.label)}})}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumbUtil,n=t.jsPlumbInstance,i="jtk-group-collapsed",s="jtk-group-expanded",o="stop",r="revert",a="_groupManager",l="_jsPlumbGroup",u=function(t){var n={},o={},r={},a=this;function u(e,n){for(var i=t.getContainer();;){if(null==e||e===i)return!1;if(e===n)return!0;e=e.parentNode}}function c(e,n){for(var i=e.getEl().querySelectorAll(".jtk-managed"),s=0;s0?t[0]:a},c=!0===i.ghost,h=c||!0===i.constrain,d=!1!==i.revert,p=!0===i.orphan,f=!0===i.prune,g=!0===i.dropOverride,m=!1!==i.proxied,v=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(t,e){return i.anchor||"Continuous"},this.getEndpoint=function(t,e){return i.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==i.draggable){var y={drag:function(){for(var t=0;t0&&r0&&ln.endStubX&&n.tx>n.startStubX||n.sx>n.endStubX&&n.tx>n.sx)||-1===n.so[i]&&(n.startStubXn.endStubY&&n.ty>n.startStubY||n.sy>n.endStubY&&n.ty>n.sy)||-1===n.so[i]&&(n.startStubYl[e][0],f=i[e][h][0],g=i[e][h][1],m={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]}[e][h][d];return n.segment===m[3]||n.segment===m[2]&&p?s[e]:n.segment===m[2]&&g=f||n.segment===m[1]&&!p?a[e]:n.segment===m[0]||n.segment===m[1]&&p?r[e]:void 0},orthogonal:function(e,n,i,s,o){var r=t,a={x:-1===r.so[0]?Math.min(n,s):Math.max(n,s),y:-1===r.so[1]?Math.min(n,s):Math.max(n,s)}[e];return{x:[[a,i],[a,o],[s,o]],y:[[i,a],[o,a],[o,s]]}[e]},opposite:function(n,i,o,r){var a=t,l={x:"y",y:"x"}[n],u={x:"height",y:"width"}[n],c=a["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(e.sourceEndpoint.elementId===e.targetEndpoint.elementId){var h=o+(1-e.sourceEndpoint.anchor[l])*e.sourceInfo[u]+s.maxStub;return{x:[[i,h],[r,h]],y:[[h,i],[h,r]]}[n]}return!c||1===a.so[v]&&i>r||-1===a.so[v]&&ir?{x:[[C,a.sy],[C,a.ty]],y:[[a.sx,j],[a.tx,j]]}[n]:void 0}},D=S[t.anchorOrientation](t.sourceAxis,b,P,_,x);if(D)for(var w=0;w0&&l[4]!==o[4]){var d=Math.min(p(l),p(o)),g=Math.min(u,d/2);l[2]-=r[0]*g,l[3]-=r[1]*g,o[0]+=a[0]*g,o[1]+=a[1]*g;var m=r[1]===a[0]&&1===a[0]||r[1]===a[0]&&0===a[0]&&r[0]!==a[1]||r[1]===a[0]&&-1===a[0],v=(o[1]>l[3]?1:-1)==(o[0]>l[2]?1:-1),y=v&&m||!v&&!m?o[0]:l[2],b=v&&m||!v&&!m?l[3]:o[1];s.addSegment(t,n,{x1:l[0],y1:l[1],x2:l[2],y2:l[3]}),s.addSegment(t,"Arc",{r:g,x1:l[2],y1:l[3],x2:o[0],y2:o[1],cx:y,cy:b,ac:m})}else{var P=l[2]===l[0]?0:l[2]>l[0]?i.lw/2:-i.lw/2,_=l[3]===l[1]?0:l[3]>l[1]?i.lw/2:-i.lw/2;s.addSegment(t,n,{x1:l[0]-P,y1:l[1]-_,x2:l[2]+P,y2:l[3]+_})}l=o}null!=o&&s.addSegment(t,n,{x1:o[0],y1:o[1],x2:o[2],y2:o[3]})}(this,i,t)}},e.extend(t.Connectors.Flowchart,t.Connectors.AbstractConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil;t.Connectors.AbstractBezierConnector=function(e){var n,i=!1!==(e=e||{}).showLoopback,s=(e.curviness,e.margin||5),o=(e.proximityLimit,e.orientation&&"clockwise"===e.orientation),r=e.loopbackRadius||25;return this._compute=function(t,e){var a=e.sourcePos,l=e.targetPos,u=Math.abs(a[0]-l[0]),c=Math.abs(a[1]-l[1]);if(i&&e.sourceEndpoint.elementId===e.targetEndpoint.elementId){0;var h=e.sourcePos[0],d=e.sourcePos[1]-s,p=h,f=d-r,g=p-r,m=f-r;u=2*r,c=2*r,t.points[0]=g,t.points[1]=m,t.points[2]=u,t.points[3]=c,n.addSegment(this,"Arc",{loopback:!0,x1:h-g+4,y1:d-m,startAngle:0,endAngle:2*Math.PI,r:r,ac:!o,x2:h-g-4,y2:d-m,cx:p-g,cy:f-m})}else this._computeBezier(t,e,a,l,u,c)},n=t.Connectors.AbstractConnector.apply(this,arguments)},e.extend(t.Connectors.AbstractBezierConnector,t.Connectors.AbstractConnector);var n=function(e){e=e||{},this.type="Bezier";var n=t.Connectors.AbstractBezierConnector.apply(this,arguments),i=e.curviness||150,s=10;this.getCurviness=function(){return i},this._findControlPoint=function(t,e,n,o,r,a,l){var u=[];return a[0]!==l[0]||a[1]===l[1]?(0===l[0]?u.push(n[0]=P?3:4),S=Math.sqrt(Math.pow(p-h,2)+Math.pow(f-d,2));n=function(t,e,n,i,s,o,r,a,l){return a<=l?[t,e]:1===n?i[3]<=0&&s[3]>=1?[t+(i[2]<.5?-1*o:o),e]:i[2]>=1&&s[2]<=0?[t,e+(i[3]<.5?-1*r:r)]:[t+-1*o,e+-1*r]:2===n?i[3]>=1&&s[3]<=0?[t+(i[2]<.5?-1*o:o),e]:i[2]>=1&&s[2]<=0?[t,e+(i[3]<.5?-1*r:r)]:[t+o,e+-1*r]:3===n?i[3]>=1&&s[3]<=0?[t+(i[2]<.5?-1*o:o),e]:i[2]<=0&&s[2]>=1?[t,e+(i[3]<.5?-1*r:r)]:[t+-1*o,e+-1*r]:4===n?i[3]<=0&&s[3]>=1?[t+(i[2]<.5?-1*o:o),e]:i[2]<=0&&s[2]>=1?[t,e+(i[3]<.5?-1*r:r)]:[t+o,e+-1*r]:void 0}(C,j,E,e.sourcePos,e.targetPos,s,s,S,r),g=n[0],m=n[0],v=n[1],y=n[1],i.addSegment(this,"Bezier",{x1:p,y1:f,x2:h,y2:d,cp1x:g,cp1y:v,cp2x:m,cp2y:y})}};t.Connectors.StateMachine=n,e.extend(n,t.Connectors.AbstractBezierConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil,n="Straight",i=function(e){this.type=n;var i=t.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(t,e){i.addSegment(this,n,{x1:t.sx,y1:t.sy,x2:t.startStubX,y2:t.startStubY}),i.addSegment(this,n,{x1:t.startStubX,y1:t.startStubY,x2:t.endStubX,y2:t.endStubY}),i.addSegment(this,n,{x1:t.endStubX,y1:t.endStubY,x2:t.tx,y2:t.ty})}};t.Connectors.Straight=i,e.extend(i,t.Connectors.AbstractConnector)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil,n={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},i="stroke-dasharray",s="dashstyle",o="fill",r="stroke",a="none",l="http://www.w3.org/2000/svg",u=function(t,e){for(var n in e)t.setAttribute(n,""+e[n])},c=function(e,n){return(n=n||{}).version="1.1",n.xmlns=l,t.createElementNS(l,e,null,null,n)},h=function(t){return"position:absolute;left:"+t[0]+"px;top:"+t[1]+"px"},d=function(t){for(var e=t.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;nn?t.insertBefore(e,t.childNodes[n]):t.appendChild(e)};e.svg={node:c,attr:u,pos:h};var g=function(n){var i=n.pointerEventsSpec||"all",s={};t.jsPlumbUIComponent.apply(this,n.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var o=n.cssClass+" "+(n.originalArgs[0].cssClass||""),r={style:"",width:0,height:0,"pointer-events":i,position:"absolute"};this.svg=c("svg",r),n.useDivWrapper?(this.canvas=t.createElement("div",{position:"absolute"}),e.sizeElement(this.canvas,0,0,1,1),this.canvas.className=o):(u(this.svg,{class:o}),this.canvas=this.svg),n._jsPlumb.appendElement(this.canvas,n.originalArgs[0].parent),n.useDivWrapper&&this.canvas.appendChild(this.svg);var a=[this.canvas];return this.getDisplayElements=function(){return a},this.appendDisplayElement=function(t){a.push(t)},this.paint=function(t,i,o){if(null!=t){var r,a=[this.x,this.y],l=[this.w,this.h];null!=o&&(o.xmin<0&&(a[0]+=o.xmin),o.ymin<0&&(a[1]+=o.ymin),l[0]=o.xmax+(o.xmin<0?-o.xmin:0),l[1]=o.ymax+(o.ymin<0?-o.ymin:0)),n.useDivWrapper?(e.sizeElement(this.canvas,a[0],a[1],l[0]>0?l[0]:1,l[1]>0?l[1]:1),a[0]=0,a[1]=0,r=h([0,0])):r=h([a[0],a[1]]),s.paint.apply(this,arguments),u(this.svg,{style:r,width:l[0]||1,height:l[1]||1})}},{renderer:s}};e.extend(g,t.jsPlumbUIComponent,{cleanup:function(t){t||null==this.typeId?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null,this._jsPlumb=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(t){var e=t.getContainer();this.canvas&&null==this.canvas.parentNode&&e.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&e.appendChild(this.bgCanvas)},setVisible:function(t){this.canvas&&(this.canvas.style.display=t?"block":"none")}}),t.ConnectorRenderers.svg=function(e){var n=this;g.apply(this,[{cssClass:e._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:e._jsPlumb}]).renderer.paint=function(i,s,o){var r=n.getSegments(),a=[0,0];if(o.xmin<0&&(a[0]=-o.xmin),o.ymin<0&&(a[1]=-o.ymin),r.length>0){var l={d:n.getPathData(),transform:"translate("+a[0]+","+a[1]+")","pointer-events":e["pointer-events"]||"visibleStroke"},h=null;n.x,n.y,n.w,n.h;if(i.outlineStroke){var d=i.outlineWidth||1,g=i.strokeWidth+2*d;delete(h=t.extend({},i)).gradient,h.stroke=i.outlineStroke,h.strokeWidth=g,null==n.bgPath?(n.bgPath=c("path",l),t.addClass(n.bgPath,t.connectorOutlineClass),f(n.svg,n.bgPath,0)):u(n.bgPath,l),p(n.svg,n.bgPath,h,0,n)}null==n.path?(n.path=c("path",l),f(n.svg,n.path,i.outlineStroke?1:0)):u(n.path,l),p(n.svg,n.path,i,0,n)}}},e.extend(t.ConnectorRenderers.svg,g);var m=t.SvgEndpoint=function(e){g.apply(this,[{cssClass:e._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:e._jsPlumb}]).renderer.paint=function(e){var n=t.extend({},e);n.outlineStroke&&(n.stroke=n.outlineStroke),null==this.node?(this.node=this.makeNode(n),this.svg.appendChild(this.node)):null!=this.updateNode&&this.updateNode(this.node),p(this.svg,this.node,n,(this.x,this.y,this.w,this.h),this),h(this.node,(this.x,this.y))}.bind(this)};e.extend(m,g),t.Endpoints.svg.Dot=function(){t.Endpoints.Dot.apply(this,arguments),m.apply(this,arguments),this.makeNode=function(t){return c("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(t){u(t,{cx:this.w/2,cy:this.h/2,r:this.radius})}},e.extend(t.Endpoints.svg.Dot,[t.Endpoints.Dot,m]),t.Endpoints.svg.Rectangle=function(){t.Endpoints.Rectangle.apply(this,arguments),m.apply(this,arguments),this.makeNode=function(t){return c("rect",{width:this.w,height:this.h})},this.updateNode=function(t){u(t,{width:this.w,height:this.h})}},e.extend(t.Endpoints.svg.Rectangle,[t.Endpoints.Rectangle,m]),t.Endpoints.svg.Image=t.Endpoints.Image,t.Endpoints.svg.Blank=t.Endpoints.Blank,t.Overlays.svg.Label=t.Overlays.Label,t.Overlays.svg.Custom=t.Overlays.Custom;var v=function(e,n){e.apply(this,n),t.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1;this.path=null,this.paint=function(t,e){if(t.component.svg&&e){null==this.path&&(this.path=c("path",{"pointer-events":"all"}),t.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,t.component),this.canvas=t.component.svg);var s=n&&1===n.length&&n[0].cssClass||"",o=[0,0];e.xmin<0&&(o[0]=-e.xmin),e.ymin<0&&(o[1]=-e.ymin),u(this.path,{d:i(t.d),class:s,stroke:t.stroke?t.stroke:null,fill:t.fill?t.fill:null,transform:"translate("+o[0]+","+o[1]+")"})}};var i=function(t){return isNaN(t.cxy.x)||isNaN(t.cxy.y)?"":"M"+t.hxy.x+","+t.hxy.y+" L"+t.tail[0].x+","+t.tail[0].y+" L"+t.cxy.x+","+t.cxy.y+" L"+t.tail[1].x+","+t.tail[1].y+" L"+t.hxy.x+","+t.hxy.y};this.transfer=function(t){t.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),t.canvas.appendChild(this.path))}},y={cleanup:function(t){null!=this.path&&(t?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(t,e){this.path&&e.canvas&&e.canvas.appendChild(this.path)},setVisible:function(t){null!=this.path&&(this.path.style.display=t?"block":"none")}};e.extend(v,[t.jsPlumbUIComponent,t.Overlays.AbstractOverlay]),t.Overlays.svg.Arrow=function(){v.apply(this,[t.Overlays.Arrow,arguments])},e.extend(t.Overlays.svg.Arrow,[t.Overlays.Arrow,v],y),t.Overlays.svg.PlainArrow=function(){v.apply(this,[t.Overlays.PlainArrow,arguments])},e.extend(t.Overlays.svg.PlainArrow,[t.Overlays.PlainArrow,v],y),t.Overlays.svg.Diamond=function(){v.apply(this,[t.Overlays.Diamond,arguments])},e.extend(t.Overlays.svg.Diamond,[t.Overlays.Diamond,v],y),t.Overlays.svg.GuideLines=function(){var e,n,i=null,s=this;t.Overlays.GuideLines.apply(this,arguments),this.paint=function(t,r){null==i&&(i=c("path"),t.connector.svg.appendChild(i),s.attachListeners(i,t.connector),s.attachListeners(i,s),e=c("path"),t.connector.svg.appendChild(e),s.attachListeners(e,t.connector),s.attachListeners(e,s),n=c("path"),t.connector.svg.appendChild(n),s.attachListeners(n,t.connector),s.attachListeners(n,s));var a=[0,0];r.xmin<0&&(a[0]=-r.xmin),r.ymin<0&&(a[1]=-r.ymin),u(i,{d:o(t.head,t.tail),stroke:"red",fill:null,transform:"translate("+a[0]+","+a[1]+")"}),u(e,{d:o(t.tailLine[0],t.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+a[0]+","+a[1]+")"}),u(n,{d:o(t.headLine[0],t.headLine[1]),stroke:"green",fill:null,transform:"translate("+a[0]+","+a[1]+")"})};var o=function(t,e){return"M "+t.x+","+t.y+" L"+e.x+","+e.y}},e.extend(t.Overlays.svg.GuideLines,t.Overlays.GuideLines)}.call("undefined"!=typeof window?window:this),function(){"use strict";var t=this,e=t.jsPlumb,n=t.jsPlumbUtil,i=t.Katavorio,s=t.Biltong,o=function(t,n){var o="_katavorio_"+(n=n||"main"),r=t[o],a=t.getEventManager();return r||((r=new i({bind:a.on,unbind:a.off,getSize:e.getSize,getConstrainingRectangle:function(t){return[t.parentNode.scrollWidth,t.parentNode.scrollHeight]},getPosition:function(e,n){var i=t.getOffset(e,n,e._katavorioDrag?e.offsetParent:null);return[i.left,i.top]},setPosition:function(t,e){t.style.left=e[0]+"px",t.style.top=e[1]+"px"},addClass:e.addClass,removeClass:e.removeClass,intersects:s.intersects,indexOf:function(t,e){return t.indexOf(e)},scope:t.getDefaultScope(),css:{noSelect:t.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}})).setZoom(t.getZoom()),t[o]=r,t.bind("zoom",r.setZoom)),r},r=function(t){var e=t.el._jsPlumbDragOptions,n=!0;return e.canDrag&&(n=e.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:t.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:t.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n},a=function(t){var e=this.getUIPosition(arguments,this.getZoom());if(null!=e){var n=t.el._jsPlumbDragOptions;this.draw(t.el,e,null,!0),n._dragging&&this.addClass(t.el,"jtk-dragged"),n._dragging=!0}},l=function(t){for(var e,n=t.selection,i=function(n){var i;null!=n[1]&&(e=this.getUIPosition([{el:n[2].el,pos:[n[1].left,n[1].top]}]),i=this.draw(n[2].el,e)),null!=n[0]._jsPlumbDragOptions&&delete n[0]._jsPlumbDragOptions._dragging,this.removeClass(n[0],"jtk-dragged"),this.select({source:n[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:n[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),t.e._drawResult=t.e._drawResult||{c:[],e:[],a:[]},Array.prototype.push.apply(t.e._drawResult.c,i.c),Array.prototype.push.apply(t.e._drawResult.e,i.e),Array.prototype.push.apply(t.e._drawResult.a,i.a),this.getDragManager().dragEnded(n[2].el)}.bind(this),s=0;s0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},g=function(t){var e={},n=[],i={},s={},o={};this.register=function(r){var a,l=t.getId(r);e[l]||(e[l]=r,n.push(r),i[l]={});var u=function(e){if(e)for(var n=0;n0){a||(a=t.getOffset(r));var d=t.getOffset(c);i[l][h]={id:h,offset:{left:d.left-a.left,top:d.top-a.top}},o[h]=l}u(e.childNodes[n])}};u(r)},this.updateOffsets=function(e,n){if(null!=e){n=n||{};var s,r=jsPlumb.getElement(e),a=t.getId(r),l=i[a];if(l)for(var u in l)if(l.hasOwnProperty(u)){var c=jsPlumb.getElement(u),h=n[u]||t.getOffset(c);if(null==c.offsetParent&&null!=i[a][u])continue;s||(s=t.getOffset(r)),i[a][u]={id:u,offset:{left:h.left-s.left,top:h.top-s.top}},o[u]=a}}},this.endpointAdded=function(n,r){r=r||t.getId(n);var a=document.body,l=n.parentNode;for(s[r]=s[r]?s[r]+1:1;null!=l&&l!==a;){var u=t.getId(l,null,!0);if(u&&e[u]){var c=t.getOffset(l);if(null==i[u][r]){var h=t.getOffset(n);i[u][r]={id:r,offset:{left:h.left-c.left,top:h.top-c.top}},o[r]=u}break}l=l.parentNode}},this.endpointDeleted=function(t){if(s[t.elementId]&&(s[t.elementId]--,s[t.elementId]<=0))for(var e in i)i.hasOwnProperty(e)&&i[e]&&(delete i[e][t.elementId],delete o[t.elementId])},this.changeId=function(t,e){i[e]=i[t],i[t]={},o[e]=o[t],o[t]=null},this.getElementsForDraggable=function(t){return i[t]},this.elementRemoved=function(t){var e=o[t];e&&(i[e]&&delete i[e][t],delete o[t])},this.reset=function(){e={},n=[],i={},s={}},this.dragEnded=function(e){if(null!=e.offsetParent){var n=t.getId(e),i=o[n];i&&this.updateOffsets(i)}},this.setParent=function(e,n,s,r,a){var l=o[n];i[r]||(i[r]={});var u=t.getOffset(s),c=a||t.getOffset(e);l&&i[l]&&delete i[l][n],i[r][n]={id:n,offset:{left:c.left-u.left,top:c.top-u.top}},o[n]=r},this.clearParent=function(t,e){var n=o[e];n&&(delete i[n][e],delete o[e])},this.revalidateParent=function(e,n,i){var s=o[n];if(s){var r={};r[n]=i,this.updateOffsets(s,r),t.revalidate(s)}},this.getDragAncestor=function(e){var n=jsPlumb.getElement(e),i=t.getId(n),s=o[i];return s?jsPlumb.getElement(s):null}},m=function(t,e,i){e=n.fastTrim(e),void 0!==t.className.baseVal?t.className.baseVal=e:t.className=e;try{var s=t.classList;if(null!=s){for(;s.length>0;)s.remove(s.item(0));for(var o=0;o0||t.scrollLeft>0)&&(i.left-=t.scrollLeft,i.top-=t.scrollTop)}.bind(this);null!=s;)i.left+=s.offsetLeft,i.top+=s.offsetTop,o(s),s=e?s.offsetParent:s.offsetParent===n?null:s.offsetParent;if(null!=n&&!e&&(n.scrollTop>0||n.scrollLeft>0)){var r=null!=t.offsetParent?this.getStyle(t.offsetParent,"position"):"static",a=this.getStyle(t,"position");"absolute"!==a&&"fixed"!==a&&"absolute"!==r&&"fixed"!==r&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(t,e,n){var i=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0,width:0,height:0},s=document.body,o=document.documentElement,r=window.pageYOffset||o.scrollTop||s.scrollTop,a=window.pageXOffset||o.scrollLeft||s.scrollLeft,l=o.clientTop||s.clientTop||0,u=o.clientLeft||s.clientLeft||0,c=i.top+r-l+0*n,h=i.left+a-u+0*n,d=jsPlumb.pageLocation(t),p=i.width||e.offsetWidth*n,f=i.height||e.offsetHeight*n;return[(d[0]-h)/p,(d[1]-c)/f]},getAbsolutePosition:function(t){var e=function(e){var n=t.style[e];if(n)return parseFloat(n.substring(0,n.length-2))};return[e("left"),e("top")]},setAbsolutePosition:function(t,e,n,i){n?this.animate(t,{left:"+="+(e[0]-n[0]),top:"+="+(e[1]-n[1])},i):(t.style.left=e[0]+"px",t.style.top=e[1]+"px")},getSize:function(t){return[t.offsetWidth,t.offsetHeight]},getWidth:function(t){return t.offsetWidth},getHeight:function(t){return t.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],Array.prototype.slice.call(t).forEach(function(t){(i=this.info(t)).el&&this._initDraggableIfNecessary(i.el,!0,e,i.id,!0)}.bind(this)),this},snapToGrid:function(t,e,n){var i=[],s=function(t){var s=this.info(t);if(null!=s.el&&s.el._katavorioDrag){var o=s.el._katavorioDrag.snap(e,n);this.revalidate(s.el),i.push([s.el,o])}}.bind(this);if(1===arguments.length||3===arguments.length)s(t,e,n);else{var o=this.getManagedElements();for(var r in o)s(r,arguments[0],arguments[1])}return i},initDraggable:function(t,e,n){o(this,n).draggable(t,e),t._jsPlumbDragOptions=e},destroyDraggable:function(t,e){o(this,e).destroyDraggable(t),t._jsPlumbDragOptions=null,t._jsPlumbRelatedElement=null},unbindDraggable:function(t,e,n,i){o(this,i).destroyDraggable(t,e,n)},setDraggable:function(t,e){return jsPlumb.each(t,function(t){this.isDragSupported(t)&&(this._draggableStates[this.getAttribute(t,"id")]=e,this.setElementDraggable(t,e))}.bind(this))},_draggableStates:{},toggleDraggable:function(t){var e;return jsPlumb.each(t,function(t){var n=this.getAttribute(t,"id");return e=!(e=null!=this._draggableStates[n]&&this._draggableStates[n]),this._draggableStates[n]=e,this.setDraggable(t,e),e}.bind(this)),e},_initDraggableIfNecessary:function(t,e,i,s,o){if(!jsPlumb.headless&&(null!=e&&e&&jsPlumb.isDragSupported(t,this))){var u=i||this.Defaults.DragOptions;if(u=jsPlumb.extend({},u),jsPlumb.isAlreadyDraggable(t,this))i.force&&this.initDraggable(t,u);else{var c=jsPlumb.dragEvents.drag,h=jsPlumb.dragEvents.stop,d=jsPlumb.dragEvents.start;this.manage(s,t),u[d]=n.wrap(u[d],r.bind(this)),u[c]=n.wrap(u[c],a.bind(this)),u[h]=n.wrap(u[h],l.bind(this));var p=this.getId(t);this._draggableStates[p]=!0;var f=this._draggableStates[p];u.disabled=null!=f&&!f,this.initDraggable(t,u),this.getDragManager().register(t),o&&this.fire("elementDraggable",{el:t,options:u})}}},animationSupported:!0,getElement:function(t){return null==t?null:"string"==typeof(t="string"==typeof t?t:null==t.tagName&&null!=t.length&&null==t.enctype?t[0]:t)?document.getElementById(t):t},removeElement:function(t){o(this).elementRemoved(t),this.getEventManager().remove(t)},doAnimate:function(t,i,s){s=s||{};var o=this.getOffset(t),r=function(t,e){var i=function(i){if(null!=e[i]){if(n.isString(e[i])){var s=e[i].match(/-=/)?-1:1,o=e[i].substring(2);return t[i]+s*o}return e[i]}return t[i]};return[i("left"),i("top")]}(o,i),a=r[0]-o.left,l=r[1]-o.top,u=s.duration||250,c=u/15,h=15/u*a,d=15/u*l,p=0,f=setInterval((function(){e.setPosition(t,{left:o.left+h*(p+1),top:o.top+d*(p+1)}),null!=s.step&&s.step(p,Math.ceil(c)),++p>=c&&(window.clearInterval(f),null!=s.complete&&s.complete())}),15)},destroyDroppable:function(t,e){o(this,e).destroyDroppable(t)},unbindDroppable:function(t,e,n,i){o(this,i).destroyDroppable(t,e,n)},droppable:function(t,e){var i;return t=n.isArray(t)||null!=t.length&&!n.isString(t)?t:[t],(e=e||{}).allowLoopback=!1,Array.prototype.slice.call(t).forEach(function(t){(i=this.info(t)).el&&this.initDroppable(i.el,e)}.bind(this)),this},initDroppable:function(t,e,n){o(this,n).droppable(t,e)},isAlreadyDraggable:function(t){return null!=t._katavorioDrag},isDragSupported:function(t,e){return!0},isDropSupported:function(t,e){return!0},isElementDraggable:function(t){return(t=e.getElement(t))._katavorioDrag&&t._katavorioDrag.isEnabled()},getDragObject:function(t){return t[0].drag.getDragElement()},getDragScope:function(t){return t._katavorioDrag&&t._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(t){return t[0].e},getUIPosition:function(t,e){var n=t[0].el;if(null==n.offsetParent)return null;var i=t[0].finalPos||t[0].pos,s={left:i[0],top:i[1]};if(n._katavorioDrag&&n.offsetParent!==this.getContainer()){var o=this.getOffset(n.offsetParent);s.left+=o.left,s.top+=o.top}return s},setDragFilter:function(t,e,n){t._katavorioDrag&&t._katavorioDrag.setFilter(e,n)},setElementDraggable:function(t,n){(t=e.getElement(t))._katavorioDrag&&t._katavorioDrag.setEnabled(n)},setDragScope:function(t,e){t._katavorioDrag&&t._katavorioDrag.k.setDragScope(t,e)},setDropScope:function(t,e){t._katavorioDrop&&t._katavorioDrop.length>0&&t._katavorioDrop[0].k.setDropScope(t,e)},addToPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),s=o(this);e.each(t,(function(t){(t=[e.getElement(t)]).push.apply(t,i),s.addToPosse.apply(s,t)}))},setPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),s=o(this);e.each(t,(function(t){(t=[e.getElement(t)]).push.apply(t,i),s.setPosse.apply(s,t)}))},removeFromPosse:function(t,n){var i=Array.prototype.slice.call(arguments,1),s=o(this);e.each(t,(function(t){(t=[e.getElement(t)]).push.apply(t,i),s.removeFromPosse.apply(s,t)}))},removeFromAllPosses:function(t){var n=o(this);e.each(t,(function(t){n.removeFromAllPosses(e.getElement(t))}))},setPosseState:function(t,n,i){var s=o(this);e.each(t,(function(t){s.setPosseState(e.getElement(t),n,i)}))},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(t){t._katavorioDrag&&t._katavorioDrag.abort()},addToDragSelection:function(t){var e=this.getElement(t);null==e||!e._isJsPlumbGroup&&null!=e._jsPlumbGroup||o(this).select(t)},removeFromDragSelection:function(t){o(this).deselect(t)},getDragSelection:function(){return o(this).getSelection()},clearDragSelection:function(){o(this).deselectAll()},trigger:function(t,e,n,i){this.getEventManager().trigger(t,e,n,i)},doReset:function(){for(var t in this)0===t.indexOf("_katavorio_")&&this[t].reset()},getEventManager:function(){return(n=(e=this)._mottle)||(n=e._mottle=new t.Mottle),n;var e,n},on:function(t,e,n){return this.getEventManager().on.apply(this,arguments),this},off:function(t,e,n){return this.getEventManager().off.apply(this,arguments),this}});var b,P;b=e.init,(P=function(){/complete|loaded|interactive/.test(document.readyState)&&void 0!==document.body&&null!=document.body?b():setTimeout(P,9)})()}.call("undefined"!=typeof window?window:this); +(function(){void 0===Math.sgn&&(Math.sgn=function(t){return 0==t?0:t>0?1:-1});var t={subtract:function(t,e){return{x:t.x-e.x,y:t.y-e.y}},dotProduct:function(t,e){return t.x*e.x+t.y*e.y},square:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},scale:function(t,e){return{x:t.x*e,y:t.y*e}}},e=function(e,s){for(var o=[],r=n(e,s),l=s.length-1,u=i(r,2*l-1,o,0),c=t.subtract(e,s[0]),h=t.square(c),d=0,p=0;p=64)return n[0]=(t[0].x+t[e].x)/2,1;if(o(t,e))return n[0]=r(t,e),1}a(t,e,.5,h,d),u=i(h,e,p,l+1),c=i(d,e,f,l+1);for(var g=0;gd?d=g:g0?1:-1,a=null;s=0&&d<=1&&h>=0&&h<=1&&u.push(g)}return u};function m(t,e){return[-t[0][e]+3*t[1][e]+-3*t[2][e]+t[3][e],3*t[0][e]-6*t[1][e]+3*t[2][e],-3*t[0][e]+3*t[1][e],t[0][e]]}function v(t){return t<0?-1:t>0?1:0}function b(t,e,n,i){var s,o,r=e/t,a=n/t,l=(3*a-Math.pow(r,2))/9,u=(9*r*a-i/t*27-2*Math.pow(r,3))/54,c=Math.pow(l,3)+Math.pow(u,2),h=[];if(c>=0)s=v(u+Math.sqrt(c))*Math.pow(Math.abs(u+Math.sqrt(c)),1/3),o=v(u-Math.sqrt(c))*Math.pow(Math.abs(u-Math.sqrt(c)),1/3),h[0]=-r/3+(s+o),h[1]=-r/3-(s+o)/2,h[2]=-r/3-(s+o)/2,0!==Math.abs(Math.sqrt(3)*(s-o)/2)&&(h[1]=-1,h[2]=-1);else{var d=Math.acos(u/Math.sqrt(-Math.pow(l,3)));h[0]=2*Math.sqrt(-l)*Math.cos(d/3)-r/3,h[1]=2*Math.sqrt(-l)*Math.cos((d+2*Math.PI)/3)-r/3,h[2]=2*Math.sqrt(-l)*Math.cos((d+4*Math.PI)/3)-r/3}for(var p=0;p<3;p++)(h[p]<0||h[p]>1)&&(h[p]=-1);return h}var y=this.jsBezier={distanceFromCurve:e,gradientAtPoint:f,gradientAtPointAlongCurveFrom:function(t,e,n){var i=p(t,e,n);return i.location>1&&(i.location=1),i.location<0&&(i.location=0),f(t,i.location)},nearestPointOnCurve:function(t,n){var i=e(t,n);return{point:a(n,n.length-1,i.location,null,null),location:i.location}},pointOnCurve:c,pointAlongCurveFrom:function(t,e,n){return p(t,e,n).point},perpendicularToCurveAt:function(t,e,n,i){var s=p(t,e,i=null==i?0:i),o=Math.atan(-1/f(t,s.location)),r=n/2*Math.sin(o),a=n/2*Math.cos(o);return[{x:s.point.x+a,y:s.point.y+r},{x:s.point.x-a,y:s.point.y-r}]},locationAlongCurveFrom:function(t,e,n){return p(t,e,n).location},getLength:function(t){var e=new Date().getTime();if(d(t))return 0;for(var n=c(t,0),i=0,s=0,o=null;s<1;)s+=.005,i+=h(o=c(t,s),n),n=o;return console.log("length",new Date().getTime()-e),i},lineIntersection:g,boxIntersection:function(t,e,n,i,s){var o=[];return o.push.apply(o,g(t,e,t+n,e,s)),o.push.apply(o,g(t+n,e,t+n,e+i,s)),o.push.apply(o,g(t+n,e+i,t,e+i,s)),o.push.apply(o,g(t,e+i,t,e,s)),o},boundingBoxIntersection:function(t,e){var n=[];return n.push.apply(n,g(t.x,t.y,t.x+t.w,t.y,e)),n.push.apply(n,g(t.x+t.w,t.y,t.x+t.w,t.y+t.h,e)),n.push.apply(n,g(t.x+t.w,t.y+t.h,t.x,t.y+t.h,e)),n.push.apply(n,g(t.x,t.y+t.h,t.x,t.y,e)),n},version:"0.9.0"};"undefined"!=typeof exports&&(exports.jsBezier=y)}).call("undefined"!=typeof window?window:this),(function(){"use strict";var t=this.Biltong={version:"0.4.0"};"undefined"!=typeof exports&&(exports.Biltong=t);var e=function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=function(t,n,i){return i(t=e(t)?t:[t.x,t.y],n=e(n)?n:[n.x,n.y])},i=t.gradient=function(t,e){return n(t,e,function(t,e){return e[0]==t[0]?e[1]>t[1]?1/0:-1/0:e[1]==t[1]?e[0]>t[0]?0:-0:(e[1]-t[1])/(e[0]-t[0])})},s=(t.normal=function(t,e){return -1/i(t,e)},t.lineLength=function(t,e){return n(t,e,function(t,e){return Math.sqrt(Math.pow(e[1]-t[1],2)+Math.pow(e[0]-t[0],2))})},t.quadrant=function(t,e){return n(t,e,function(t,e){return e[0]>t[0]?e[1]>t[1]?2:1:e[0]==t[0]?e[1]>t[1]?2:1:e[1]>t[1]?3:4})}),o=(t.theta=function(t,e){return n(t,e,function(t,e){var n=Math.atan(i(t,e)),o=s(t,e);return(4==o||3==o)&&(n+=Math.PI),n<0&&(n+=2*Math.PI),n})},t.intersects=function(t,e){var n=t.x,i=t.x+t.w,s=t.y,o=t.y+t.h,r=e.x,a=e.x+e.w,l=e.y,u=e.y+e.h;return n<=r&&r<=i&&s<=l&&l<=o||n<=a&&a<=i&&s<=l&&l<=o||n<=r&&r<=i&&s<=u&&u<=o||n<=a&&r<=i&&s<=u&&u<=o||r<=n&&n<=a&&l<=s&&s<=u||r<=i&&i<=a&&l<=s&&s<=u||r<=n&&n<=a&&l<=o&&o<=u||r<=i&&n<=a&&l<=o&&o<=u},t.encloses=function(t,e,n){var i=t.x,s=t.x+t.w,o=t.y,r=t.y+t.h,a=e.x,l=e.x+e.w,u=e.y,c=e.y+e.h,h=function(t,e,i,s){return n?t<=e&&i>=s:ts};return h(i,a,s,l)&&h(o,u,r,c)},[null,[1,-1],[1,1],[-1,1],[-1,-1]]),r=[null,[-1,-1],[-1,1],[1,1],[1,-1]];t.pointOnLine=function(t,e,n){var a=i(t,e),l=s(t,e),u=n>0?o[l]:r[l],c=Math.atan(a),h=Math.abs(n*Math.sin(c))*u[1],d=Math.abs(n*Math.cos(c))*u[0];return{x:t.x+d,y:t.y+h}},t.perpendicularLineTo=function(t,e,n){var s=Math.atan(-1/i(t,e)),o=n/2*Math.sin(s),r=n/2*Math.cos(s);return[{x:e.x+r,y:e.y+o},{x:e.x-r,y:e.y-o}]}}).call("undefined"!=typeof window?window:this),(function(){"use strict";function t(t,e,n,i,s,o,r,a){return new Touch({target:e,identifier:A(),pageX:n,pageY:i,screenX:s,screenY:o,clientX:r||s,clientY:a||o})}var e=function(t,e,n){for(var i=(n=n||t.parentNode).querySelectorAll(e),s=0;s-1&&P<9,x=function(t,e){if(null==t)return[0,0];var n=j(E(t),0);return[n[e+"X"],n[e+"Y"]]},C=function(t){return null==t?[0,0]:_?[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop]:x(t,"page")},j=function(t,e){return t.item?t.item(e):t[e]},E=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},S=function(t){return E(t).length},D=function(t,e,n,i){if(a(t,e,n),i.__tauid=n.__tauid,t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent){var s=e+n.__tauid;t["e"+s]=n,t[s]=function(){t["e"+s]&&t["e"+s](window.event)},t.attachEvent("on"+e,t[s])}},w=function(t,e,i){null!=i&&I(t,function(){var s=n(this);if(l(s,e,i),null!=i.__tauid){if(s.removeEventListener)s.removeEventListener(e,i,!1),v&&y[e]&&s.removeEventListener(y[e],i,!1);else if(this.detachEvent){var o=e+i.__tauid;s[o]&&s.detachEvent("on"+e,s[o]),s[o]=null,s["e"+o]=null}}i.__taTouchProxy&&w(t,i.__taTouchProxy[1],i.__taTouchProxy[0])})},I=function(t,e){if(null!=t){t="undefined"!=typeof Window&&"unknown"!=typeof t.top&&t==t.top?[t]:"string"!=typeof t&&null==t.tagName&&null!=t.length?t:"string"==typeof t?document.querySelectorAll(t):[t];for(var n=0;n-1&&l<9,c=9===l,h=function(t){if(u)return[t.clientX+document.documentElement.scrollLeft,t.clientY+document.documentElement.scrollTop];var e=d(p(t),0);return c?[e.pageX||e.clientX,e.pageY||e.clientY]:[e.pageX,e.pageY]},d=function(t,e){return t.item?t.item(e):t[e]},p=function(t){return t.touches&&t.touches.length>0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},f={delegatedDraggable:"katavorio-delegated-draggable",draggable:"katavorio-draggable",droppable:"katavorio-droppable",drag:"katavorio-drag",selected:"katavorio-drag-selected",active:"katavorio-drag-active",hover:"katavorio-drag-hover",noSelect:"katavorio-drag-no-select",ghostProxy:"katavorio-ghost-proxy",clonedDrag:"katavorio-clone-drag"},g=["stop","start","drag","drop","over","out","beforeStart"],m=function(){},v=function(){return!0},b=function(t,e,n){for(var i=0;i0){var r=a(N,this.el,t.target||t.srcElement);if(null!=r&&(R=r[0],G=r[1]),null==G)return}else G=this.el;if(T){if(M=G.cloneNode(!0),this.params.addClass(M,f.clonedDrag),M.setAttribute("id",null),M.style.position="absolute",null!=this.params.parent){var l=this.params.getPosition(this.el);M.style.left=l[0]+"px",M.style.top=l[1]+"px",this.params.parent.appendChild(M)}else{var c=s(G);M.style.left=c.left+"px",M.style.top=c.top+"px",document.body.appendChild(M)}}else M=G;O&&_(t),P=h(t),M&&M.parentNode&&(k=[M.parentNode.scrollLeft,M.parentNode.scrollTop]),this.params.bind(document,"mousemove",this.moveListener),this.params.bind(document,"mouseup",this.upListener),u.markSelection(this),u.markPosses(this),this.params.addClass(document.body,n.noSelect),te("beforeStart",{el:this.el,pos:E,e:t,drag:this})}else this.params.consumeFilteredEvents&&_(t)}}).bind(this),this.moveListener=(function(t){if(P){if(!A){if(!1!==te("start",{el:this.el,pos:E,e:t,drag:this})){if(!P)return;this.mark(!0),A=!0}else this.abort()}if(P){Q.length=0;var e=h(t),n=e[0]-P[0],i=e[1]-P[1],s=this.params.ignoreZoom?1:u.getZoom();M&&M.parentNode&&(n+=M.parentNode.scrollLeft-k[0],i+=M.parentNode.scrollTop-k[1]),n/=s,i/=s,this.moveBy(n,i,t),u.updateSelection(n,i,this),u.updatePosses(n,i,this)}}}).bind(this),this.upListener=(function(t){P&&(P=null,this.params.unbind(document,"mousemove",this.moveListener),this.params.unbind(document,"mouseup",this.upListener),this.params.removeClass(document.body,n.noSelect),this.unmark(t),u.unmarkSelection(this,t),u.unmarkPosses(this,t),this.stop(t),u.notifyPosseDragStop(this,t),A=!1,Q.length=0,T?(M&&M.parentNode&&M.parentNode.removeChild(M),M=null):Z&&!0===Z(M,this.params.getPosition(M))&&(this.params.setPosition(M,E),te("revert",M)))}).bind(this),this.getFilters=function(){return z},this.abort=function(){null!=P&&this.upListener()},this.getDragElement=function(t){return t?G||this.el:M||this.el};var tt={start:[],drag:[],stop:[],over:[],out:[],beforeStart:[],revert:[]};e.events.start&&tt.start.push(e.events.start),e.events.beforeStart&&tt.beforeStart.push(e.events.beforeStart),e.events.stop&&tt.stop.push(e.events.stop),e.events.drag&&tt.drag.push(e.events.drag),e.events.revert&&tt.revert.push(e.events.revert),this.on=function(t,e){tt[t]&&tt[t].push(e)},this.off=function(t,e){if(tt[t]){for(var n=[],i=0;i0)for(var o=0;o0&&l&&e.setPosition(G,l),Q.sort(w);for(var s=0;se.rank?-1:0},I=function(t){return null==t||null==(t="string"==typeof t||t.constructor===String?document.getElementById(t):t)?null:(t._katavorio=t._katavorio||D(),t)};this.Katavorio=function(s){var o=[],r={};this._dragsByScope={},this._dropsByScope={};var a=1,l=function(t,e){P(t,function(t){for(var n=0;n0},c=(this.getMatchingDroppables=function(t){for(var e=[],n={},i=0;i=0&&o.splice(i,1),u(t[e],n)&&P(t[e],function(t){t.destroy()}),delete t[e]}},D=function(t,e,n,i){(t=I(t))[e]&&t[e].off(n,i)};this.elementRemoved=function(t){t._katavorioDrag&&this.destroyDraggable(t),t._katavorioDrop&&this.destroyDroppable(t)},this.destroyDraggable=function(t,e,n){1==arguments.length?j(t,"_katavorioDrag",this._dragsByScope):D(t,"_katavorioDrag",e,n)},this.destroyDroppable=function(t,e,n){1==arguments.length?j(t,"_katavorioDrop",this._dropsByScope):D(t,"_katavorioDrop",e,n)},this.reset=function(){this._dragsByScope={},this._dropsByScope={},o=[],r={},A={}};var A={},k=function(e,n,s){var o,r=i(n)?n:n.id,a=!!i(n)||!1!==n.active,l=A[r]||(o={name:r,members:[]},A[r]=o,o);return P(e,function(e){e._katavorioDrag&&(!s||null==e._katavorioDrag.posseRoles[l.name])&&(t(l.members,e._katavorioDrag),t(e._katavorioDrag.posses,l.name),e._katavorioDrag.posseRoles[l.name]=a)}),l};this.addToPosse=function(t,e){for(var n=[],i=1;i-1&&t.splice(n,1),-1!==n}function h(t,e,n,i){var s=t[e];return null==s&&(s=[],t[e]=s),s[i?"unshift":"push"](n),s}"undefined"!=typeof exports&&(exports.jsPlumbUtil=t),t.isArray=e,t.isNumber=function(t){return"[object Number]"===Object.prototype.toString.call(t)},t.isString=n,t.isBoolean=i,t.isNull=function(t){return null==t},t.isObject=s,t.isDate=o,t.isFunction=r,t.isNamedFunction=function(t){return r(t)&&null!=t.name&&t.name.length>0},t.isEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},t.clone=a,t.merge=l,t.replace=function(t,e,n){if(null!=t){var i=t;return e.replace(/([^\.])+/g,function(t,e,s,o){var r=t.match(/([^\[0-9]+){1}(\[)([0-9+])/),a=s+t.length>=o.length,l=function(){return i[r[1]]||(i[r[1]]=[],i[r[1]])};if(a)r?l()[r[3]]=n:i[t]=n;else if(r){var u=l();i=u[r[3]]||(u[r[3]]={},u[r[3]])}else i=i[t]||(i[t]={},i[t]);return""}),t}},t.functionChain=function(t,e,n){for(var i=0;i-1&&t.splice(n,1),-1!==n},t.remove=c,t.addWithFunction=function(t,e,n){-1===u(t,n)&&t.push(e)},t.addToList=h,t.suggest=function(t,e,n){return -1===t.indexOf(e)&&(n?t.unshift(e):t.push(e),!0)},t.extend=function(t,n,i){for(o=0,n=e(n)?n:[n];o2)for(o=2;o>8&255]+d[t>>16&255]+d[t>>24&255]+"-"+d[255&e]+d[e>>8&255]+"-"+d[e>>16&15|64]+d[e>>24&255]+"-"+d[63&n|128]+d[n>>8&255]+"-"+d[n>>16&255]+d[n>>24&255]+d[255&i]+d[i>>8&255]+d[i>>16&255]+d[i>>24&255]}function g(){for(var e=[],n=0;ne.scrollTop+e.offsetHeight)i[a]._jsPlumbProxies||(i[a]._jsPlumbProxies=i[a]._jsPlumbProxies||[],t.select({source:i[a]}).each(function(n){t.proxyConnection(n,0,e,r,function(){return o("bottom",0,n.endpoints[0],n)},function(){return s("bottom",0,n.endpoints[0],n)}),i[a]._jsPlumbProxies.push([n,0])}),t.select({target:i[a]}).each(function(n){t.proxyConnection(n,1,e,r,function(){return o("bottom",1,n.endpoints[1],n)},function(){return s("bottom",1,n.endpoints[1],n)}),i[a]._jsPlumbProxies.push([n,1])}));else if(i[a]._jsPlumbProxies){for(var l=0;l0)for(var t=0;t0){var r=Array.prototype.slice.call(arguments,1);try{for(var a=0,l=i.length;a0?-1!==t.indexOf(e):!n)};this.getConnections=function(t,e){t?t.constructor===String&&(t={scope:t}):t={};for(var n=$(t.scope||s.getDefaultScope(),!0),i=$(t.source),o=$(t.target),r=!e&&n.length>1?{}:[],a=0,l=b.length;a1){var s=r[t];null==s&&(s=r[t]=[]),s.push(i)}else r.push(i)}(u.scope,u)}return r};var tt=function(t,e){var n,i,s={length:t.length,each:function(n){for(var i=0,s=t.length;i0&&!g.isSource,v=d&&s.length>0&&!g.isTarget;if(m||v)continue;r.push(g)}}}return tn(r)},this.getAllConnections=function(){return b},this.getDefaultScope=function(){return w},this.getEndpoint=M,this.getEndpoints=function(t){return y[c(t).id]||[]},this.getDefaultEndpointType=function(){return p.Endpoint},this.getDefaultConnectionType=function(){return p.Connection},this.getId=H,this.draw=O,this.info=c,this.appendElement=k;var ti=!1;this.isHoverSuspended=function(){return ti},this.setHoverSuspended=function(t){ti=t},this.hide=function(t,e){return B(t,"none",e),s},this.idstamp=A;var ts=function(t){if(!f&&t){var e=s.getElement(t);e.offsetParent&&s.setContainer(e.offsetParent)}},to=function(){s.Defaults.Container&&s.setContainer(s.Defaults.Container)},tr=s.manage=function(t,e,n,i){return _[t]?i&&(_[t].info=ta({elId:t,timestamp:D,recalc:!0})):(_[t]={el:e,endpoints:[],connections:[],rotation:0},_[t].info=ta({elId:t,timestamp:D}),s.addClass(e,"jtk-managed"),n||s.fire("manageElement",{id:t,info:_[t].info,el:e})),_[t]};this.unmanage=function(t){if(_[t]){var e=_[t].el;s.removeClass(e,"jtk-managed"),delete _[t],s.fire("unmanageElement",{id:t,el:e})}},this.rotate=function(t,e,n){return _[t]&&(_[t].rotation=e,_[t].el.style.transform="rotate("+e+"deg)",_[t].el.style.transformOrigin="center center",!0!==n)?this.revalidate(t):{c:[],e:[]}},this.getRotation=function(t){return _[t]&&_[t].rotation||0};var ta=function(t){var e,n=t.timestamp,i=t.recalc,o=t.offset,r=t.elId;return(S&&!n&&(n=D),!i&&n&&n===C[r])?{o:t.offset||x[r],s:E[r]}:(i||!o&&null==x[r]?null!=(e=_[r]?_[r].el:null)&&(E[r]=s.getSize(e),x[r]=s.getOffset(e),C[r]=n):(x[r]=o||x[r],null==E[r]&&null!=(e=_[r].el)&&(E[r]=s.getSize(e)),C[r]=n),x[r]&&!x[r].right&&(x[r].right=x[r].left+E[r][0],x[r].bottom=x[r].top+E[r][1],x[r].width=E[r][0],x[r].height=E[r][1],x[r].centerx=x[r].left+x[r].width/2,x[r].centery=x[r].top+x[r].height/2),{o:x[r],s:E[r]})};this.updateOffset=ta,this.init=(function(){v||(to(),s.router=new t.jsPlumb.DefaultRouter(s),s.anchorManager=s.router.anchorManager,v=!0,s.fire("ready",s))}).bind(this),this.log=m,this.jsPlumbUIComponent=l,this.makeAnchor=function(){var n,i=function(e,n){if(t.jsPlumb.Anchors[e])return new t.jsPlumb.Anchors[e](n);if(!s.Defaults.DoNotThrowErrors)throw{msg:"jsPlumb: unknown anchor type '"+e+"'"}};if(0==arguments.length)return null;var o=arguments[0],r=arguments[1],a=(arguments[2],null);if(o.compute&&o.getOrientation)return o;if("string"==typeof o)a=i(arguments[0],{elementId:r,jsPlumbInstance:s});else if(e.isArray(o)){if(e.isArray(o[0])||e.isString(o[0]))2===o.length&&e.isObject(o[1])?e.isString(o[0])?(n=t.jsPlumb.extend({elementId:r,jsPlumbInstance:s},o[1]),a=i(o[0],n)):(n=t.jsPlumb.extend({elementId:r,jsPlumbInstance:s,anchors:o[0]},o[1]),a=new t.jsPlumb.DynamicAnchor(n)):a=new p.DynamicAnchor({anchors:o,selector:null,elementId:r,jsPlumbInstance:s});else{var l={x:o[0],y:o[1],orientation:o.length>=4?[o[2],o[3]]:[0,0],offsets:o.length>=6?[o[4],o[5]]:[0,0],elementId:r,jsPlumbInstance:s,cssClass:7===o.length?o[6]:null};(a=new t.jsPlumb.Anchor(l)).clone=function(){return new t.jsPlumb.Anchor(l)}}}return a.id||(a.id="anchor_"+A()),a},this.makeAnchors=function(n,i,o){for(var r=[],a=0,l=n.length;a0&&t>=n.def.maxConnections},element:n.el,elementId:n.id,isSource:r,isTarget:a,addClass:function(t){s.addClass(n.el,t)},removeClass:function(t){s.removeClass(n.el,t)},onDrop:function(t){t.endpoints[0].anchor.locked=!1},isDropAllowed:function(){return u.isDropAllowed.apply(u,arguments)},isRedrop:function(t){return null!=t.suspendedElement&&null!=t.suspendedEndpoint&&t.suspendedEndpoint.element===n.el},getEndpoint:function(e){var o=n.def.endpoint;if(null==o||null==o._jsPlumb){var r=s.deriveEndpointAndAnchorSpec(e.getType().join(" "),!0),a=r.endpoints?t.jsPlumb.extend(i,{endpoint:n.def.def.endpoint||r.endpoints[1]}):i;r.anchors&&(a=t.jsPlumb.extend(a,{anchor:n.def.def.anchor||r.anchors[1]})),(o=s.addEndpoint(n.el,a))._mtNew=!0}if(i.uniqueEndpoint&&(n.def.endpoint=o),o.setDeleteOnEmpty(!0),e.isDetachable()&&o.initDraggable(),null!=o.anchor.positionFinder){var l=s.getUIPosition(arguments,s.getZoom()),u=s.getOffset(n.el),c=s.getSize(n.el),h=null==l?[0,0]:o.anchor.positionFinder(l,u,c,o.anchor.constructorParams);o.anchor.x=h[0],o.anchor.y=h[1]}return o},maybeCleanup:function(t){t._mtNew&&0===t.connections.length?s.deleteObject({endpoint:t}):delete t._mtNew}}),h=t.jsPlumb.dragEvents.drop;return o.scope=o.scope||i.scope||s.Defaults.Scope,o[h]=e.wrap(o[h],c,!0),o.rank=i.rank||0,a&&(o[t.jsPlumb.dragEvents.over]=function(){return!0}),!1===i.allowLoopback&&(o.canDrop=function(t){return t.getDragElement()._jsPlumbRelatedElement!==n.el}),s.initDroppable(n.el,o,"internal"),c};this.makeTarget=function(e,n,i){var o=t.jsPlumb.extend({_jsPlumb:this},i);t.jsPlumb.extend(o,n);for(var r=o.maxConnections||-1,a=(function(e){var n=c(e),i=n.id,a=t.jsPlumb.extend({},o.dropOptions||{}),l=o.connectionType||"default";this.targetEndpointDefinitions[i]=this.targetEndpointDefinitions[i]||{},ts(i),n.el._isJsPlumbGroup&&null==a.rank&&(a.rank=-1);var u={def:t.jsPlumb.extend({},o),uniqueEndpoint:o.uniqueEndpoint,maxConnections:r,enabled:!0};o.createEndpoint&&(u.uniqueEndpoint=!0,u.endpoint=s.addEndpoint(e,u.def),u.endpoint.setDeleteOnEmpty(!1)),n.def=u,this.targetEndpointDefinitions[i][l]=u,tu(n,o,a,!0===o.isSource,!0),n.el._katavorioDrop[n.el._katavorioDrop.length-1].targetDef=u}).bind(this),l=e.length&&e.constructor!==String?e:[e],u=0,h=l.length;u=0&&p>=c.maxConnections)return d&&d({element:i.el,maxConnections:h},n),!1;var f=t.jsPlumb.getPositionOnElement(n,l,u),m={};t.jsPlumb.extend(m,c.def),m.isTemporarySource=!0,m.anchor=[f[0],f[1],0,0],m.dragOptions=g,c.def.scope&&(m.scope=c.def.scope),b=this.addEndpoint(o,m),y=!0,b.setDeleteOnEmpty(!0),c.uniqueEndpoint&&(c.endpoint?b.finalEndpoint=c.endpoint:(c.endpoint=b,b.setDeleteOnEmpty(!1)));var v=function(){s.off(b.canvas,"mouseup",v),s.off(i.el,"mouseup",v),y&&(y=!1,s.deleteEndpoint(b))};s.on(b.canvas,"mouseup",v),s.on(i.el,"mouseup",v);var P={};if(c.def.extract)for(var _ in c.def.extract){var x=(n.srcElement||n.target).getAttribute(_);x&&(P[c.def.extract[_]]=x)}s.trigger(b.canvas,"mousedown",n,P),e.consume(n)}}}).bind(this);this.on(i.el,"mousedown",P),c.trigger=P,r.filter&&(e.isString(r.filter)||e.isFunction(r.filter))&&s.setDragFilter(i.el,r.filter);var _=t.jsPlumb.extend({},r.dropOptions||{});tu(i,r,_,!0,!0===r.isTarget)}).bind(this),f=n.length&&n.constructor!==String?n:[n],g=0,m=f.length;g0;)i(s.el.childNodes[0]);e||tg(s,n)}};return s.batch(function(){i(t,!0)},!1===e),s},this.reset=function(t){s.silently((function(){ti=!1,s.removeAllGroups(),s.removeGroupManager(),s.deleteEveryEndpoint(),t||s.unbind(),this.targetEndpointDefinitions={},this.sourceEndpointDefinitions={},b.length=0,this.doReset&&this.doReset()}).bind(this))},this.destroy=function(){this.reset(),f=null,g=null};var tm=function(t){t.canvas&&t.canvas.parentNode&&t.canvas.parentNode.removeChild(t.canvas),t.cleanup(),t.destroy()};this.clear=function(){s.select().each(tm),s.selectEndpoints().each(tm),y={},P={}},this.setDefaultScope=function(t){return w=t,s},this.deriveEndpointAndAnchorSpec=function(t,e){for(var n=((e?"":"default ")+t).split(/[\s]/),i=null,o=null,r=null,a=null,l=0;l0)for(var e=0;e0?"add":"remove")+"Class"](a.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](a.endpointFullClass)},this.detachFromConnection=function(t,e,n){(e=null==e?this.connections.indexOf(t):e)>=0&&(this.connections.splice(e,1),this[(this.connections.length>0?"add":"remove")+"Class"](a.endpointConnectedClass),this[(this.isFull()?"add":"remove")+"Class"](a.endpointFullClass)),!n&&c&&0===this.connections.length&&a.deleteObject({endpoint:this,fireEvent:!1,deleteAttachedObjects:!0!==n})},this.deleteEveryConnection=function(t){for(var e=this.connections.length,n=0;n0){var h=o(this,t.elementWithPrecedence),d=h.endpoints[0]===this?1:0,p=0===d?h.sourceId:h.targetId,f=a.getCachedData(p),g=f.o,m=f.s;c.index=0===d?1:0,c.connection=h,c.txy=[g.left,g.top],c.twh=m,c.tElement=h.endpoints[d],c.tRotation=a.getRotation(p)}else this.connections.length>0&&(c.connection=this.connections[0]);c.rotation=a.getRotation(this.elementId),r=this.anchor.compute(c)}for(var v in this.endpoint.compute(r,this.anchor.getOrientation(this),this._jsPlumb.paintStyleInUse,l||this.paintStyleInUse),this.endpoint.paint(this._jsPlumb.paintStyleInUse,this.anchor),this.timestamp=e,this._jsPlumb.overlays)if(this._jsPlumb.overlays.hasOwnProperty(v)){var b=this._jsPlumb.overlays[v];b.isVisible()&&(this._jsPlumb.overlayPlacements[v]=b.draw(this.endpoint,this._jsPlumb.paintStyleInUse),b.paint(this._jsPlumb.overlayPlacements[v]))}}}},this.getTypeDescriptor=function(){return"endpoint"},this.isVisible=function(){return this._jsPlumb.visible},this.repaint=this.paint;var p=!1;this.initDraggable=function(){if(!p&&t.isDragSupported(this.element)){var s,o={id:null,element:null},c=null,h=!1,d=null,f=n(this,o,a),g=r.dragOptions||{},m=t.dragEvents.start,v=t.dragEvents.stop,b=t.dragEvents.drag,y=t.dragEvents.beforeStart,P=(function(e){c=this.connectorSelector();var n,p,g,m,v,b=!0;this.isEnabled()||(b=!1),null!=c||this.isSource||this.isTemporarySource||(b=!1),this.isSource&&this.isFull()&&!(null!=c&&this.dragAllowedWhenFull)&&(b=!1),null==c||c.isDetachable(this)||(this.isFull()?b=!1:c=null);var y=a.checkCondition(null==c?"beforeDrag":"beforeStartDetach",{endpoint:this,source:this.element,sourceId:this.elementId,connection:c});if(!1===y?b=!1:"object"==typeof y?t.extend(y,s||{}):y=s||{},!1===b)return a.stopDrag&&a.stopDrag(this.canvas),f.stopDrag(),!1;for(var P=0;P0&&!1!==this.connectionsDetachable}).bind(this),a.initDraggable(this.canvas,g,"internal"),this.canvas._jsPlumbRelatedElement=this.element,p=!0}};var f=r.endpoint||this._jsPlumb.instance.Defaults.Endpoint||t.Defaults.Endpoint;this.setEndpoint(f,!0);var g=r.anchor?r.anchor:r.anchors?r.anchors:a.Defaults.Anchor||"Top";this.setAnchor(g,!0);var m=["default",r.type||""].join(" ");this.addType(m,r.data,!0),this.canvas=this.endpoint.canvas,this.canvas._jsPlumb=this,this.initDraggable();var v=(function(n,i,s,o){if(t.isDropSupported(this.element)){var l=r.dropOptions||a.Defaults.DropOptions||t.Defaults.DropOptions;(l=t.extend({},l)).scope=l.scope||this.scope;var u=t.dragEvents.drop,c=t.dragEvents.over,h=t.dragEvents.out,d=this,p=a.EndpointDropHandler({getEndpoint:function(){return d},jsPlumb:a,enabled:function(){return null==s||s.isEnabled()},isFull:function(){return s.isFull()},element:this.element,elementId:this.elementId,isSource:this.isSource,isTarget:this.isTarget,addClass:function(t){d.addClass(t)},removeClass:function(t){d.removeClass(t)},isDropAllowed:function(){return d.isDropAllowed.apply(d,arguments)},reference:o,isRedrop:function(t,e){return t.suspendedEndpoint&&e.reference&&t.suspendedEndpoint.id===e.reference.id}});l[u]=e.wrap(l[u],p,!0),l[c]=e.wrap(l[c],(function(){var e=t.getDragObject(arguments),n=a.getAttribute(t.getElement(e),"dragId"),i=a.getFloatingConnectionFor(n);if(null!=i){var s=a.getFloatingAnchorIndex(i);if(this.isTarget&&0!==s||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id){var o=a.checkCondition("checkDropAllowed",{sourceEndpoint:i.endpoints[s],targetEndpoint:this,connection:i});this[(o?"add":"remove")+"Class"](a.endpointDropAllowedClass),this[(o?"remove":"add")+"Class"](a.endpointDropForbiddenClass),i.endpoints[s].anchor.over(this.anchor,this)}}}).bind(this)),l[h]=e.wrap(l[h],(function(){var e=t.getDragObject(arguments),n=null==e?null:a.getAttribute(t.getElement(e),"dragId"),i=n?a.getFloatingConnectionFor(n):null;if(null!=i){var s=a.getFloatingAnchorIndex(i);(this.isTarget&&0!==s||i.suspendedEndpoint&&this.referenceEndpoint&&this.referenceEndpoint.id===i.suspendedEndpoint.id)&&(this.removeClass(a.endpointDropAllowedClass),this.removeClass(a.endpointDropForbiddenClass),i.endpoints[s].anchor.out())}}).bind(this)),a.initDroppable(n,l,"internal",i)}}).bind(this);return this.anchor.isFloating||v(this.canvas,!(r._transient||this.anchor.isFloating),this,r.reference),this},e.extend(t.Endpoint,t.OverlayCapableJsPlumbUIComponent,{setVisible:function(t,e,n){if(this._jsPlumb.visible=t,this.canvas&&(this.canvas.style.display=t?"block":"none"),this[t?"showOverlays":"hideOverlays"](),!e){for(var i=0;i0)for(var d,p=(d=f[e],r.sort(d)),g=h(e,n,i,p,a,l,"right"===e||"top"===e,u.getRotation(t)),m=function(t,e){s[t.id]=[e[0],e[1],e[2],e[3]],o[t.id]=c},v=0;v-1&&(r[s.targetId][l][0]=s,r[s.targetId][l][1]=s.endpoints[0],r[s.targetId][l][2]=s.endpoints[0].anchor.constructor===e.DynamicAnchor),t.addToList(r,i,[s,s.endpoints[1],s.endpoints[1].anchor.constructor===e.DynamicAnchor]),s.endpoints[1].anchor.isContinuous&&(s.source===s.target?s._jsPlumb.instance.removeElement(s.endpoints[1].canvas):null==s.endpoints[1].canvas.parentNode&&s._jsPlumb.instance.appendElement(s.endpoints[1].canvas)),s.updateConnectedClass()}}else if(1===a){var u=s.endpoints[0].elementId;s.target=o,s.targetId=i;var c=t.findWithFunction(r[u],function(t){return t[0].id===s.id}),h=t.findWithFunction(r[n],function(t){return t[0].id===s.id});-1!==c&&(r[u][c][0]=s,r[u][c][1]=s.endpoints[1],r[u][c][2]=s.endpoints[1].anchor.constructor===e.DynamicAnchor),h>-1&&(r[n].splice(h,1),t.addToList(r,i,[s,s.endpoints[0],s.endpoints[0].anchor.constructor===e.DynamicAnchor])),s.updateConnectedClass()}},this.rehomeEndpoint=function(t,e,n){var s=i[e]||[],o=u.getId(n);if(o!==e){var r=s.indexOf(t);if(r>-1){var l=s.splice(r,1)[0];a.add(l,o)}}for(var c=0;ce.dist?1:0});for(var m=d[0].source,v=d[0].target,b=0;b0?this.anchors[0]:null,a=r,l=function(t,e,n,i,s,o,r){var a=i[0]+t.x*s[0],l=i[1]+t.y*s[1],u=i[0]+s[0]/2,c=i[1]+s[1]/2;if(null!=o&&0!==o){var h=jsPlumbUtil.rotatePoint([a,l],[u,c],o);a=h[0],l=h[1]}return Math.sqrt(Math.pow(e-a,2)+Math.pow(n-l,2))+Math.sqrt(Math.pow(u-a,2)+Math.pow(c-l,2))},u=t.selector||function(t,e,n,i,s,o,r){for(var a=n[0]+i[0]/2,u=n[1]+i[1]/2,c=-1,h=1/0,d=0;d0?t:n+t:t*n;return i.pointOnLine({x:r,y:l},{x:a,y:u},s)},this.gradientAtPoint=function(t){return s},this.pointAlongPathFrom=function(t,e,n){var s=this.pointOnPath(t,n),o=e<=0?{x:r,y:l}:{x:a,y:u};return e<=0&&Math.abs(e)>1&&(e*=-1),i.pointOnLine(s,o,e)};var h=function(t,e,n){return n>=Math.min(t,e)&&n<=Math.max(t,e)},d=function(t,e,n){return Math.abs(n-t)e?e<=t&&t<=n:e>=t&&t>=n};this.lineIntersection=function(t,e,n,o){var c,h,d=Math.abs(i.gradient({x:t,y:e},{x:n,y:o})),f=Math.abs(s),g=f===1/0?r:l-f*r,m=[],v=d===1/0?t:e-d*t;return d!==f&&(d===1/0&&0===f?p(t,r,a)&&p(l,e,o)&&(m=[t,l]):0===d&&f===1/0?p(e,l,u)&&p(r,t,n)&&(m=[r,e]):d===1/0?p(c=t,r,a)&&p(h=f*t+g,e,o)&&(m=[c,h]):0===d?p(h=e,l,u)&&p(c=(e-g)/f,t,n)&&(m=[c,h]):(c=(v-g)/(f-d),h=f*c+g,p(c,r,a)&&p(h,l,u)&&(m=[c,h]))),m},this.boxIntersection=function(t,e,n,i){var s=[];return s.push.apply(s,this.lineIntersection(t,e,t+n,e)),s.push.apply(s,this.lineIntersection(t+n,e,t+n,e+i)),s.push.apply(s,this.lineIntersection(t+n,e+i,t,e+i)),s.push.apply(s,this.lineIntersection(t,e+i,t,e)),s},this.boundingBoxIntersection=function(t){return this.boxIntersection(t.x,t.y,t.w,t.h)}},Arc:function(t){e.Segments.AbstractSegment.apply(this,arguments);var n=function(e,n){return i.theta([t.cx,t.cy],[e,n])},s=function(t,e){if(t.anticlockwise){var n=t.startAngle0?0:1,n)),n};this.pointOnPath=function(e,n){return e=r(this.curve,e,n),t.jsBezier.pointOnCurve(this.curve,e)},this.gradientAtPoint=function(e,n){return e=r(this.curve,e,n),t.jsBezier.gradientAtPoint(this.curve,e)},this.pointAlongPathFrom=function(e,n,i){return e=r(this.curve,e,i),t.jsBezier.pointAlongCurveFrom(this.curve,e,n)},this.getLength=function(){return this.length},this.getBounds=function(){return this.bounds},this.findClosestPointOnPath=function(e,n){var i=t.jsBezier.nearestPointOnCurve({x:e,y:n},this.curve);return{d:Math.sqrt(Math.pow(i.point.x-e,2)+Math.pow(i.point.y-n,2)),x:i.point.x,y:i.point.y,l:1-i.location,s:this}},this.lineIntersection=function(e,n,i,s){return t.jsBezier.lineIntersection(e,n,i,s,this.curve)}}},e.SegmentRenderer={getPath:function(t,e){return({Straight:function(e){var n=t.getCoordinates();return(e?"M "+n.x1+" "+n.y1+" ":"")+"L "+n.x2+" "+n.y2},Bezier:function(e){var n=t.params;return(e?"M "+n.x2+" "+n.y2+" ":"")+"C "+n.cp2x+" "+n.cp2y+" "+n.cp1x+" "+n.cp1y+" "+n.x1+" "+n.y1},Arc:function(e){var n=t.params,i=t.sweep>Math.PI?1:0,s=t.anticlockwise?0:1;return(e?"M"+t.x1+" "+t.y1+" ":"")+"A "+t.radius+" "+n.r+" 0 "+i+","+s+" "+t.x2+" "+t.y2}})[t.type](e)}};var s=function(){this.resetBounds=function(){this.bounds={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}},this.resetBounds()};e.Connectors.AbstractConnector=function(t){s.apply(this,arguments);var o=[],r=0,a=[],l=[],u=t.stub||0,c=n.isArray(u)?u[0]:u,h=n.isArray(u)?u[1]:u,d=t.gap||0,p=n.isArray(d)?d[0]:d,f=n.isArray(d)?d[1]:d,g=null,m=null;this.getPathData=function(){for(var t="",n=0;n0?t/r:(r+t)/r),1===t)n=o.length-1,s=1;else if(0===t)s=0,n=0;else if(t>=.5){for(n=0,s=0,i=a.length-1;i>-1;i--)if(a[i][1]>=t&&a[i][0]<=t){n=i,s=(t-a[i][0])/l[i];break}}else for(i=0,n=a.length-1,s=1;i=t){n=i,s=(t-a[i][0])/l[i];break}return{segment:o[n],proportion:s,index:n}},y=function(){r=o.length=a.length=l.length=0};this.setSegments=function(t){g=[],r=0;for(var e=0;eg?0:1,v=[1,0][m];a=[],(r=[])[m]=t.sourcePos[m]>t.targetPos[m]?-1:1,a[m]=t.sourcePos[m]>t.targetPos[m]?1:-1,r[v]=0,a[v]=0}var b=n?d+p*r[0]:p*r[0],y=s?g+p*r[1]:p*r[1],P=n?f*a[0]:d+f*a[0],_=s?f*a[1]:g+f*a[1],x=r[0]*a[0]+r[1]*a[1],C={sx:b,sy:y,tx:P,ty:_,lw:o,xSpan:Math.abs(P-b),ySpan:Math.abs(_-y),mx:(b+P)/2,my:(y+_)/2,so:r,to:a,x:l,y:u,w:d,h:g,segment:e,startStubX:b+r[0]*c,startStubY:y+r[1]*c,endStubX:P+a[0]*h,endStubY:_+a[1]*h,isXGreaterThanStubTimes2:Math.abs(b-P)>c+h,isYGreaterThanStubTimes2:Math.abs(y-_)>c+h,opposite:-1===x,perpendicular:0===x,orthogonal:1===x,sourceAxis:0===r[0]?"y":"x",points:[l,u,d,g,b,y,P,_],stubs:[c,h]};return C.anchorOrientation=C.opposite?"opposite":C.orthogonal?"orthogonal":"perpendicular",C};return this.getSegments=function(){return o},this.updateBounds=function(t){var e=t.getBounds();this.bounds.minX=Math.min(this.bounds.minX,e.minX),this.bounds.maxX=Math.max(this.bounds.maxX,e.maxX),this.bounds.minY=Math.min(this.bounds.minY,e.minY),this.bounds.maxY=Math.max(this.bounds.maxY,e.maxY)},this.pointOnPath=function(t,e){var n=b(t,e);return n.segment&&n.segment.pointOnPath(n.proportion,!1)||[0,0]},this.gradientAtPoint=function(t,e){var n=b(t,e);return n.segment&&n.segment.gradientAtPoint(n.proportion,!1)||0},this.pointAlongPathFrom=function(t,e,n){var i=b(t,n);return i.segment&&i.segment.pointAlongPathFrom(i.proportion,e,!1)||[0,0]},this.compute=function(t){m=P.call(this,t),y(),this._compute(m,t),this.x=m.points[0],this.y=m.points[1],this.w=m.points[2],this.h=m.points[3],this.segment=m.segment,v()},{addSegment:function(t,n,i){if(i.x1!==i.x2||i.y1!==i.y2){var s=new e.Segments[n](i);o.push(s),r+=s.getLength(),t.updateBounds(s)}},prepareCompute:P,sourceStub:c,targetStub:h,maxStub:Math.max(c,h),sourceGap:p,targetGap:f,maxGap:Math.max(p,f)}},n.extend(e.Connectors.AbstractConnector,s),e.Endpoints.AbstractEndpoint=function(t){return s.apply(this,arguments),{compute:this.compute=function(t,e,n,i){var s=this._compute.apply(this,arguments);return this.x=s[0],this.y=s[1],this.w=s[2],this.h=s[3],this.bounds.minX=this.x,this.bounds.minY=this.y,this.bounds.maxX=this.x+this.w,this.bounds.maxY=this.y+this.h,s},cssClass:t.cssClass}},n.extend(e.Endpoints.AbstractEndpoint,s),e.Endpoints.Dot=function(t){this.type="Dot",e.Endpoints.AbstractEndpoint.apply(this,arguments),t=t||{},this.radius=t.radius||10,this.defaultOffset=.5*this.radius,this.defaultInnerRadius=this.radius/3,this._compute=function(t,e,n,i){this.radius=n.radius||this.radius;var s=t[0]-this.radius,o=t[1]-this.radius,r=2*this.radius,a=2*this.radius;if(n.stroke){var l=n.strokeWidth||1;s-=l,o-=l,r+=2*l,a+=2*l}return[s,o,r,a,this.radius]}},n.extend(e.Endpoints.Dot,e.Endpoints.AbstractEndpoint),e.Endpoints.Rectangle=function(t){this.type="Rectangle",e.Endpoints.AbstractEndpoint.apply(this,arguments),t=t||{},this.width=t.width||20,this.height=t.height||20,this._compute=function(t,e,n,i){var s=n.width||this.width,o=n.height||this.height;return[t[0]-s/2,t[1]-o/2,s,o]}},n.extend(e.Endpoints.Rectangle,e.Endpoints.AbstractEndpoint);var o=function(t){e.jsPlumbUIComponent.apply(this,arguments),this._jsPlumb.displayElements=[]};n.extend(o,e.jsPlumbUIComponent,{getDisplayElements:function(){return this._jsPlumb.displayElements},appendDisplayElement:function(t){this._jsPlumb.displayElements.push(t)}}),e.Endpoints.Image=function(i){this.type="Image",o.apply(this,arguments),e.Endpoints.AbstractEndpoint.apply(this,arguments);var s=i.onload,r=i.src||i.url,a=i.cssClass?" "+i.cssClass:"";this._jsPlumb.img=new Image,this._jsPlumb.ready=!1,this._jsPlumb.initialized=!1,this._jsPlumb.deleted=!1,this._jsPlumb.widthToUse=i.width,this._jsPlumb.heightToUse=i.height,this._jsPlumb.endpoint=i.endpoint,this._jsPlumb.img.onload=(function(){null!=this._jsPlumb&&(this._jsPlumb.ready=!0,this._jsPlumb.widthToUse=this._jsPlumb.widthToUse||this._jsPlumb.img.width,this._jsPlumb.heightToUse=this._jsPlumb.heightToUse||this._jsPlumb.img.height,s&&s(this))}).bind(this),this._jsPlumb.endpoint.setImage=(function(t,e){var n=t.constructor===String?t:t.src;s=e,this._jsPlumb.img.src=n,null!=this.canvas&&this.canvas.setAttribute("src",this._jsPlumb.img.src)}).bind(this),this._jsPlumb.endpoint.setImage(r,s),this._compute=function(t,e,n,i){return(this.anchorPoint=t,this._jsPlumb.ready)?[t[0]-this._jsPlumb.widthToUse/2,t[1]-this._jsPlumb.heightToUse/2,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse]:[0,0,0,0]},this.canvas=e.createElement("img",{position:"absolute",margin:0,padding:0,outline:0},this._jsPlumb.instance.endpointClass+a),this._jsPlumb.widthToUse&&this.canvas.setAttribute("width",this._jsPlumb.widthToUse),this._jsPlumb.heightToUse&&this.canvas.setAttribute("height",this._jsPlumb.heightToUse),this._jsPlumb.instance.appendElement(this.canvas),this.actuallyPaint=function(t,e,i){if(!this._jsPlumb.deleted){this._jsPlumb.initialized||(this.canvas.setAttribute("src",this._jsPlumb.img.src),this.appendDisplayElement(this.canvas),this._jsPlumb.initialized=!0);var s=this.anchorPoint[0]-this._jsPlumb.widthToUse/2,o=this.anchorPoint[1]-this._jsPlumb.heightToUse/2;n.sizeElement(this.canvas,s,o,this._jsPlumb.widthToUse,this._jsPlumb.heightToUse)}},this.paint=function(e,n){null!=this._jsPlumb&&(this._jsPlumb.ready?this.actuallyPaint(e,n):t.setTimeout((function(){this.paint(e,n)}).bind(this),200))}},n.extend(e.Endpoints.Image,[o,e.Endpoints.AbstractEndpoint],{cleanup:function(t){t&&(this._jsPlumb.deleted=!0,this.canvas&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null)}}),e.Endpoints.Blank=function(t){e.Endpoints.AbstractEndpoint.apply(this,arguments),this.type="Blank",o.apply(this,arguments),this._compute=function(t,e,n,i){return[t[0],t[1],10,0]};var i=t.cssClass?" "+t.cssClass:"";this.canvas=e.createElement("div",{display:"block",width:"1px",height:"1px",background:"transparent",position:"absolute"},this._jsPlumb.instance.endpointClass+i),this._jsPlumb.instance.appendElement(this.canvas),this.paint=function(t,e){n.sizeElement(this.canvas,this.x,this.y,this.w,this.h)}},n.extend(e.Endpoints.Blank,[e.Endpoints.AbstractEndpoint,o],{cleanup:function(){this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)}}),e.Endpoints.Triangle=function(t){this.type="Triangle",e.Endpoints.AbstractEndpoint.apply(this,arguments);var n=this;(t=t||{}).width=t.width||55,t.height=t.height||55,this.width=t.width,this.height=t.height,this._compute=function(t,e,i,s){var o=i.width||n.width,r=i.height||n.height;return[t[0]-o/2,t[1]-r/2,o,r]}};var r=e.Overlays.AbstractOverlay=function(t){this.visible=!0,this.isAppendedAtTopLevel=!0,this.component=t.component,this.loc=null==t.location?.5:t.location,this.endpointLoc=null==t.endpointLocation?[.5,.5]:t.endpointLocation,this.visible=!1!==t.visible};r.prototype={cleanup:function(t){t&&(this.component=null,this.canvas=null,this.endpointLoc=null)},reattach:function(t,e){},setVisible:function(t){this.visible=t,this.component.repaint()},isVisible:function(){return this.visible},hide:function(){this.setVisible(!1)},show:function(){this.setVisible(!0)},incrementLocation:function(t){this.loc+=t,this.component.repaint()},setLocation:function(t){this.loc=t,this.component.repaint()},getLocation:function(){return this.loc},updateFrom:function(){}},e.Overlays.Arrow=function(t){this.type="Arrow",r.apply(this,arguments),this.isAppendedAtTopLevel=!1,t=t||{};var s=this;this.length=t.length||20,this.width=t.width||20,this.id=t.id,this.direction=0>(t.direction||1)?-1:1;var o=t.paintStyle||{"stroke-width":1},a=t.foldback||.623;this.computeMaxSize=function(){return 1.5*s.width},this.elementCreated=function(n,i){if(this.path=n,t.events)for(var s in t.events)e.on(n,s,t.events[s])},this.draw=function(t,e){if(!t.pointAlongPathFrom)return{component:t,minX:0,maxX:0,minY:0,maxY:0};if(n.isString(this.loc)||this.loc>1||this.loc<0){var s,r,l,u,c,h=parseInt(this.loc,10),d=this.loc<0?1:0;s=t.pointAlongPathFrom(d,h,!1),r=t.pointAlongPathFrom(d,h-this.direction*this.length/2,!1),l=i.pointOnLine(s,r,this.length)}else if(1===this.loc){if(s=t.pointOnPath(this.loc),r=t.pointAlongPathFrom(this.loc,-this.length),l=i.pointOnLine(s,r,this.length),-1===this.direction){var p=l;l=s,s=p}}else if(0===this.loc){if(l=t.pointOnPath(this.loc),r=t.pointAlongPathFrom(this.loc,this.length),s=i.pointOnLine(l,r,this.length),-1===this.direction){var f=l;l=s,s=f}}else s=t.pointAlongPathFrom(this.loc,this.direction*this.length/2),r=t.pointOnPath(this.loc),l=i.pointOnLine(s,r,this.length);u=i.perpendicularLineTo(s,l,this.width),c=i.pointOnLine(s,l,a*this.length);var g={hxy:s,tail:u,cxy:c},m=o.stroke||e.stroke,v=o.fill||e.stroke;return{component:t,d:g,"stroke-width":o.strokeWidth||e.strokeWidth,stroke:m,fill:v,minX:Math.min(s.x,u[0].x,u[1].x),maxX:Math.max(s.x,u[0].x,u[1].x),minY:Math.min(s.y,u[0].y,u[1].y),maxY:Math.max(s.y,u[0].y,u[1].y)}}},n.extend(e.Overlays.Arrow,r,{updateFrom:function(t){this.length=t.length||this.length,this.width=t.width||this.width,this.direction=null!=t.direction?t.direction:this.direction,this.foldback=t.foldback||this.foldback},cleanup:function(){this.path&&this.path.parentNode&&this.path.parentNode.removeChild(this.path)}}),e.Overlays.PlainArrow=function(t){t=t||{};var n=e.extend(t,{foldback:1});e.Overlays.Arrow.call(this,n),this.type="PlainArrow"},n.extend(e.Overlays.PlainArrow,e.Overlays.Arrow),e.Overlays.Diamond=function(t){var n=(t=t||{}).length||40,i=e.extend(t,{length:n/2,foldback:2});e.Overlays.Arrow.call(this,i),this.type="Diamond"},n.extend(e.Overlays.Diamond,e.Overlays.Arrow);var a=function(t,e){return(null==t._jsPlumb.cachedDimensions||e)&&(t._jsPlumb.cachedDimensions=t.getDimensions()),t._jsPlumb.cachedDimensions},l=function(t){e.jsPlumbUIComponent.apply(this,arguments),r.apply(this,arguments);var i=this.fire;this.fire=function(){i.apply(this,arguments),this.component&&this.component.fire.apply(this.component,arguments)},this.detached=!1,this.id=t.id,this._jsPlumb.div=null,this._jsPlumb.initialised=!1,this._jsPlumb.component=t.component,this._jsPlumb.cachedDimensions=null,this._jsPlumb.create=t.create,this._jsPlumb.initiallyInvisible=!1===t.visible,this.getElement=function(){if(null==this._jsPlumb.div){var n=this._jsPlumb.div=e.getElement(this._jsPlumb.create(this._jsPlumb.component));n.style.position="absolute",jsPlumb.addClass(n,this._jsPlumb.instance.overlayClass+" "+(this.cssClass?this.cssClass:t.cssClass?t.cssClass:"")),this._jsPlumb.instance.appendElement(n),this._jsPlumb.instance.getId(n),this.canvas=n;var i="translate(-50%, -50%)";n.style.webkitTransform=i,n.style.mozTransform=i,n.style.msTransform=i,n.style.oTransform=i,n.style.transform=i,n._jsPlumb=this,!1===t.visible&&(n.style.display="none")}return this._jsPlumb.div},this.draw=function(t,e,i){var s=a(this);if(null==s||2!==s.length)return{minX:0,maxX:0,minY:0,maxY:0};var o={x:0,y:0};if(i)o={x:i[0],y:i[1]};else if(t.pointOnPath){var r=this.loc,l=!1;(n.isString(this.loc)||this.loc<0||this.loc>1)&&(r=parseInt(this.loc,10),l=!0),o=t.pointOnPath(r,l)}else{var u=this.loc.constructor===Array?this.loc:this.endpointLoc;o={x:u[0]*t.w,y:u[1]*t.h}}var c=o.x-s[0]/2,h=o.y-s[1]/2;return{component:t,d:{minx:c,miny:h,td:s,cxy:o},minX:c,maxX:c+s[0],minY:h,maxY:h+s[1]}}};n.extend(l,[e.jsPlumbUIComponent,r],{getDimensions:function(){return[1,1]},setVisible:function(t){this._jsPlumb.div&&(this._jsPlumb.div.style.display=t?"block":"none",t&&this._jsPlumb.initiallyInvisible&&(a(this,!0),this.component.repaint(),this._jsPlumb.initiallyInvisible=!1))},clearCachedDimensions:function(){this._jsPlumb.cachedDimensions=null},cleanup:function(t){t?null!=this._jsPlumb.div&&(this._jsPlumb.div._jsPlumb=null,this._jsPlumb.instance.removeElement(this._jsPlumb.div)):(this._jsPlumb&&this._jsPlumb.div&&this._jsPlumb.div.parentNode&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div),this.detached=!0)},reattach:function(t,e){null!=this._jsPlumb.div&&t.getContainer().appendChild(this._jsPlumb.div),this.detached=!1},computeMaxSize:function(){var t=a(this);return Math.max(t[0],t[1])},paint:function(t,e){!this._jsPlumb.initialised&&(this.getElement(),t.component.appendDisplayElement(this._jsPlumb.div),this._jsPlumb.initialised=!0,this.detached&&this._jsPlumb.div.parentNode.removeChild(this._jsPlumb.div)),this._jsPlumb.div.style.left=t.component.x+t.d.minx+"px",this._jsPlumb.div.style.top=t.component.y+t.d.miny+"px"}}),e.Overlays.Custom=function(t){this.type="Custom",l.apply(this,arguments)},n.extend(e.Overlays.Custom,l),e.Overlays.GuideLines=function(){var t=this;t.length=50,t.strokeWidth=5,this.type="GuideLines",r.apply(this,arguments),e.jsPlumbUIComponent.apply(this,arguments),this.draw=function(e,n){var s=e.pointAlongPathFrom(t.loc,t.length/2),o=e.pointOnPath(t.loc),r=i.pointOnLine(s,o,t.length),a=i.perpendicularLineTo(s,r,40),l=i.perpendicularLineTo(r,s,20);return{connector:e,head:s,tail:r,headLine:l,tailLine:a,minX:Math.min(s.x,r.x,l[0].x,l[1].x),minY:Math.min(s.y,r.y,l[0].y,l[1].y),maxX:Math.max(s.x,r.x,l[0].x,l[1].x),maxY:Math.max(s.y,r.y,l[0].y,l[1].y)}}},e.Overlays.Label=function(t){this.labelStyle=t.labelStyle,this.cssClass=null!=this.labelStyle?this.labelStyle.cssClass:null;var n=e.extend({create:function(){return e.createElement("div")}},t);if(e.Overlays.Custom.call(this,n),this.type="Label",this.label=t.label||"",this.labelText=null,this.labelStyle){var i=this.getElement();if(this.labelStyle.font=this.labelStyle.font||"12px sans-serif",i.style.font=this.labelStyle.font,i.style.color=this.labelStyle.color||"black",this.labelStyle.fill&&(i.style.background=this.labelStyle.fill),this.labelStyle.borderWidth>0){var s=this.labelStyle.borderStyle?this.labelStyle.borderStyle:"black";i.style.border=this.labelStyle.borderWidth+"px solid "+s}this.labelStyle.padding&&(i.style.padding=this.labelStyle.padding)}},n.extend(e.Overlays.Label,e.Overlays.Custom,{cleanup:function(t){t&&(this.div=null,this.label=null,this.labelText=null,this.cssClass=null,this.labelStyle=null)},getLabel:function(){return this.label},setLabel:function(t){this.label=t,this.labelText=null,this.clearCachedDimensions(),this.update(),this.component.repaint()},getDimensions:function(){return this.update(),l.prototype.getDimensions.apply(this,arguments)},update:function(){if("function"==typeof this.label){var t=this.label(this);this.getElement().innerHTML=t.replace(/\r\n/g,"
")}else null==this.labelText&&(this.labelText=this.label,this.getElement().innerHTML=this.labelText.replace(/\r\n/g,"
"))},updateFrom:function(t){null!=t.label&&this.setLabel(t.label)}})}).call("undefined"!=typeof window?window:this),(function(){"use strict";var t=this,e=t.jsPlumbUtil,n=t.jsPlumbInstance,i="jtk-group-collapsed",s="jtk-group-expanded",o="stop",r="revert",a="_groupManager",l="_jsPlumbGroup",u=function(t){var n={},o={},r={},a=this;function u(e,n){for(var i=e.getEl().querySelectorAll(".jtk-managed"),s=0;s0?t[0]:a},c=!0===i.ghost,h=c||!0===i.constrain,d=!1!==i.revert,p=!0===i.orphan,f=!0===i.prune,g=!0===i.dropOverride,m=!1!==i.proxied,v=[];if(this.connections={source:[],target:[],internal:[]},this.getAnchor=function(t,e){return i.anchor||"Continuous"},this.getEndpoint=function(t,e){return i.endpoint||["Dot",{radius:10}]},this.collapsed=!1,!1!==i.draggable){var b={drag:function(){for(var t=0;t0&&r0&&l0&&l[4]!==o[4]){var d=Math.min(u,Math.min(p(l),p(o))/2);l[2]-=r[0]*d,l[3]-=r[1]*d,o[0]+=a[0]*d,o[1]+=a[1]*d;var g=r[1]===a[0]&&1===a[0]||r[1]===a[0]&&0===a[0]&&r[0]!==a[1]||r[1]===a[0]&&-1===a[0],m=(o[1]>l[3]?1:-1)==(o[0]>l[2]?1:-1),v=m&&g||!m&&!g?o[0]:l[2],b=m&&g||!m&&!g?l[3]:o[1];s.addSegment(t,n,{x1:l[0],y1:l[1],x2:l[2],y2:l[3]}),s.addSegment(t,"Arc",{r:d,x1:l[2],y1:l[3],x2:o[0],y2:o[1],cx:v,cy:b,ac:g})}else{var y=l[2]===l[0]?0:l[2]>l[0]?i.lw/2:-(i.lw/2),P=l[3]===l[1]?0:l[3]>l[1]?i.lw/2:-(i.lw/2);s.addSegment(t,n,{x1:l[0]-y,y1:l[1]-P,x2:l[2]+y,y2:l[3]+P})}l=o}null!=o&&s.addSegment(t,n,{x1:o[0],y1:o[1],x2:o[2],y2:o[3]})};this.midpoint=o,this._compute=function(t,e){i=[],a=null,l=null;var n=function(){return[t.startStubX,t.startStubY,t.endStubX,t.endStubY]},u=({perpendicular:n,orthogonal:n,opposite:function(e){var n="x"===e?0:1;return!r&&({x:function(){return 1===t.so[n]&&(t.startStubX>t.endStubX&&t.tx>t.startStubX||t.sx>t.endStubX&&t.tx>t.sx)||-1===t.so[n]&&(t.startStubXt.endStubY&&t.ty>t.startStubY||t.sy>t.endStubY&&t.ty>t.sy)||-1===t.so[n]&&(t.startStubYa[e][0],p=n[e][c][0],f=n[e][c][1],g={x:[[[1,2,3,4],null,[2,1,4,3]],null,[[4,3,2,1],null,[3,4,1,2]]],y:[[[3,2,1,4],null,[2,3,4,1]],null,[[4,1,2,3],null,[1,4,3,2]]]}[e][c][h];return t.segment===g[3]||t.segment===g[2]&&d?i[e]:t.segment===g[2]&&f=p||t.segment===g[1]&&!d?r[e]:t.segment===g[0]||t.segment===g[1]&&d?o[e]:void 0},orthogonal:function(e,n,i,s,o){var r={x:-1===t.so[0]?Math.min(n,s):Math.max(n,s),y:-1===t.so[1]?Math.min(n,s):Math.max(n,s)}[e];return({x:[[r,i],[r,o],[s,o]],y:[[i,r],[o,r],[o,s]]})[e]},opposite:function(n,i,o,r){var a={x:"y",y:"x"}[n],l={x:"height",y:"width"}[n],u=t["is"+n.toUpperCase()+"GreaterThanStubTimes2"];if(e.sourceEndpoint.elementId===e.targetEndpoint.elementId){var h=o+(1-e.sourceEndpoint.anchor[a])*e.sourceInfo[l]+s.maxStub;return({x:[[i,h],[r,h]],y:[[h,i],[h,r]]})[n]}return!u||1===t.so[c]&&i>r||-1===t.so[c]&&ir?({x:[[b,t.sy],[b,t.ty]],y:[[t.sx,y],[t.tx,y]]})[n]:void 0}})[t.anchorOrientation](t.sourceAxis,p,f,m,v);if(_)for(var x=0;x<_.length;x++)d(i,_[x][0],_[x][1],t);d(i,u[2],u[3],t),d(i,t.tx,t.ty,t),g(this,i,t)}},e.extend(t.Connectors.Flowchart,t.Connectors.AbstractConnector)}).call("undefined"!=typeof window?window:this),(function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil;t.Connectors.AbstractBezierConnector=function(e){var n,i=!1!==(e=e||{}).showLoopback,s=(e.curviness,e.margin||5),o=(e.proximityLimit,e.orientation&&"clockwise"===e.orientation),r=e.loopbackRadius||25;return this._compute=function(t,e){var a=e.sourcePos,l=e.targetPos,u=Math.abs(a[0]-l[0]),c=Math.abs(a[1]-l[1]);if(i&&e.sourceEndpoint.elementId===e.targetEndpoint.elementId){var h=e.sourcePos[0],d=e.sourcePos[1]-s,p=d-r,f=h-r,g=p-r;u=2*r,c=2*r,t.points[0]=f,t.points[1]=g,t.points[2]=u,t.points[3]=c,n.addSegment(this,"Arc",{loopback:!0,x1:h-f+4,y1:d-g,startAngle:0,endAngle:2*Math.PI,r:r,ac:!o,x2:h-f-4,y2:d-g,cx:h-f,cy:p-g})}else this._computeBezier(t,e,a,l,u,c)},n=t.Connectors.AbstractConnector.apply(this,arguments)},e.extend(t.Connectors.AbstractBezierConnector,t.Connectors.AbstractConnector);var n=function(e){e=e||{},this.type="Bezier";var n=t.Connectors.AbstractBezierConnector.apply(this,arguments),i=e.curviness||150;this.getCurviness=function(){return i},this._findControlPoint=function(t,e,n,s,o,r,a){var l=r[0]!==a[0]||r[1]===a[1],u=[];return l?(0===a[0]?u.push(n[0]=b?3:4),w=Math.sqrt(Math.pow(g-p,2)+Math.pow(m-f,2));_=(h=e.sourcePos,d=e.targetPos,n=w<=r?[E,S]:1===D?h[3]<=0&&d[3]>=1?[E+(h[2]<.5?-1*s:s),S]:h[2]>=1&&d[2]<=0?[E,S+(h[3]<.5?-1*s:s)]:[E+-1*s,S+-1*s]:2===D?h[3]>=1&&d[3]<=0?[E+(h[2]<.5?-1*s:s),S]:h[2]>=1&&d[2]<=0?[E,S+(h[3]<.5?-1*s:s)]:[E+s,S+-1*s]:3===D?h[3]>=1&&d[3]<=0?[E+(h[2]<.5?-1*s:s),S]:h[2]<=0&&d[2]>=1?[E,S+(h[3]<.5?-1*s:s)]:[E+-1*s,S+-1*s]:4===D?h[3]<=0&&d[3]>=1?[E+(h[2]<.5?-1*s:s),S]:h[2]<=0&&d[2]>=1?[E,S+(h[3]<.5?-1*s:s)]:[E+s,S+-1*s]:void 0)[0],x=n[0],C=n[1],j=n[1],i.addSegment(this,"Bezier",{x1:g,y1:m,x2:p,y2:f,cp1x:_,cp1y:C,cp2x:x,cp2y:j})}};t.Connectors.StateMachine=n,e.extend(n,t.Connectors.AbstractBezierConnector)}).call("undefined"!=typeof window?window:this),(function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil,n="Straight",i=function(e){this.type=n;var i=t.Connectors.AbstractConnector.apply(this,arguments);this._compute=function(t,e){i.addSegment(this,n,{x1:t.sx,y1:t.sy,x2:t.startStubX,y2:t.startStubY}),i.addSegment(this,n,{x1:t.startStubX,y1:t.startStubY,x2:t.endStubX,y2:t.endStubY}),i.addSegment(this,n,{x1:t.endStubX,y1:t.endStubY,x2:t.tx,y2:t.ty})}};t.Connectors.Straight=i,e.extend(i,t.Connectors.AbstractConnector)}).call("undefined"!=typeof window?window:this),(function(){"use strict";var t=this.jsPlumb,e=this.jsPlumbUtil,n={"stroke-linejoin":"stroke-linejoin","stroke-dashoffset":"stroke-dashoffset","stroke-linecap":"stroke-linecap"},i="stroke-dasharray",s="dashstyle",o="fill",r="stroke",a="none",l="http://www.w3.org/2000/svg",u=function(t,e){for(var n in e)t.setAttribute(n,""+e[n])},c=function(e,n){return(n=n||{}).version="1.1",n.xmlns=l,t.createElementNS(l,e,null,null,n)},h=function(t){return"position:absolute;left:"+t[0]+"px;top:"+t[1]+"px"},d=function(t){for(var e=t.querySelectorAll(" defs,linearGradient,radialGradient"),n=0;nn?t.insertBefore(e,t.childNodes[n]):t.appendChild(e)};e.svg={node:c,attr:u,pos:h};var m=function(n){var i=n.pointerEventsSpec||"all",s={};t.jsPlumbUIComponent.apply(this,n.originalArgs),this.canvas=null,this.path=null,this.svg=null,this.bgCanvas=null;var o=n.cssClass+" "+(n.originalArgs[0].cssClass||"");this.svg=c("svg",{style:"",width:0,height:0,"pointer-events":i,position:"absolute"}),n.useDivWrapper?(this.canvas=t.createElement("div",{position:"absolute"}),e.sizeElement(this.canvas,0,0,1,1),this.canvas.className=o):(u(this.svg,{class:o}),this.canvas=this.svg),n._jsPlumb.appendElement(this.canvas,n.originalArgs[0].parent),n.useDivWrapper&&this.canvas.appendChild(this.svg);var r=[this.canvas];return this.getDisplayElements=function(){return r},this.appendDisplayElement=function(t){r.push(t)},this.paint=function(t,i,o){if(null!=t){var r,a=[this.x,this.y],l=[this.w,this.h];null!=o&&(o.xmin<0&&(a[0]+=o.xmin),o.ymin<0&&(a[1]+=o.ymin),l[0]=o.xmax+(o.xmin<0?-o.xmin:0),l[1]=o.ymax+(o.ymin<0?-o.ymin:0)),n.useDivWrapper?(e.sizeElement(this.canvas,a[0],a[1],l[0]>0?l[0]:1,l[1]>0?l[1]:1),a[0]=0,a[1]=0,r=h([0,0])):r=h([a[0],a[1]]),s.paint.apply(this,arguments),u(this.svg,{style:r,width:l[0]||1,height:l[1]||1})}},{renderer:s}};e.extend(m,t.jsPlumbUIComponent,{cleanup:function(t){t||null==this.typeId?(this.canvas&&(this.canvas._jsPlumb=null),this.svg&&(this.svg._jsPlumb=null),this.bgCanvas&&(this.bgCanvas._jsPlumb=null),this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.svg=null,this.canvas=null,this.path=null,this.group=null,this._jsPlumb=null):(this.canvas&&this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.bgCanvas&&this.bgCanvas.parentNode&&this.bgCanvas.parentNode.removeChild(this.bgCanvas))},reattach:function(t){var e=t.getContainer();this.canvas&&null==this.canvas.parentNode&&e.appendChild(this.canvas),this.bgCanvas&&null==this.bgCanvas.parentNode&&e.appendChild(this.bgCanvas)},setVisible:function(t){this.canvas&&(this.canvas.style.display=t?"block":"none")}}),t.ConnectorRenderers.svg=function(e){var n=this,i=m.apply(this,[{cssClass:e._jsPlumb.connectorClass,originalArgs:arguments,pointerEventsSpec:"none",_jsPlumb:e._jsPlumb}]);i.renderer.paint=function(i,s,o){var r=n.getSegments(),a=[0,0];if(o.xmin<0&&(a[0]=-o.xmin),o.ymin<0&&(a[1]=-o.ymin),r.length>0){var l={d:n.getPathData(),transform:"translate("+a[0]+","+a[1]+")","pointer-events":e["pointer-events"]||"visibleStroke"},h=null,d=[n.x,n.y,n.w,n.h];if(i.outlineStroke){var p=i.outlineWidth||1,m=i.strokeWidth+2*p;h=t.extend({},i),delete h.gradient,h.stroke=i.outlineStroke,h.strokeWidth=m,null==n.bgPath?(n.bgPath=c("path",l),t.addClass(n.bgPath,t.connectorOutlineClass),g(n.svg,n.bgPath,0)):u(n.bgPath,l),f(n.svg,n.bgPath,h,d,n)}null==n.path?(n.path=c("path",l),g(n.svg,n.path,i.outlineStroke?1:0)):u(n.path,l),f(n.svg,n.path,i,d,n)}}},e.extend(t.ConnectorRenderers.svg,m);var v=t.SvgEndpoint=function(e){var n=m.apply(this,[{cssClass:e._jsPlumb.endpointClass,originalArgs:arguments,pointerEventsSpec:"all",useDivWrapper:!0,_jsPlumb:e._jsPlumb}]);n.renderer.paint=(function(e){var n=t.extend({},e);n.outlineStroke&&(n.stroke=n.outlineStroke),null==this.node?(this.node=this.makeNode(n),this.svg.appendChild(this.node)):null!=this.updateNode&&this.updateNode(this.node),f(this.svg,this.node,n,[this.x,this.y,this.w,this.h],this),h(this.node,[this.x,this.y])}).bind(this)};e.extend(v,m),t.Endpoints.svg.Dot=function(){t.Endpoints.Dot.apply(this,arguments),v.apply(this,arguments),this.makeNode=function(t){return c("circle",{cx:this.w/2,cy:this.h/2,r:this.radius})},this.updateNode=function(t){u(t,{cx:this.w/2,cy:this.h/2,r:this.radius})}},e.extend(t.Endpoints.svg.Dot,[t.Endpoints.Dot,v]),t.Endpoints.svg.Rectangle=function(){t.Endpoints.Rectangle.apply(this,arguments),v.apply(this,arguments),this.makeNode=function(t){return c("rect",{width:this.w,height:this.h})},this.updateNode=function(t){u(t,{width:this.w,height:this.h})}},e.extend(t.Endpoints.svg.Rectangle,[t.Endpoints.Rectangle,v]),t.Endpoints.svg.Image=t.Endpoints.Image,t.Endpoints.svg.Blank=t.Endpoints.Blank,t.Overlays.svg.Label=t.Overlays.Label,t.Overlays.svg.Custom=t.Overlays.Custom;var b=function(e,n){e.apply(this,n),t.jsPlumbUIComponent.apply(this,n),this.isAppendedAtTopLevel=!1,this.path=null,this.paint=function(t,e){if(t.component.svg&&e){null==this.path&&(this.path=c("path",{"pointer-events":"all"}),t.component.svg.appendChild(this.path),this.elementCreated&&this.elementCreated(this.path,t.component),this.canvas=t.component.svg);var s=n&&1===n.length&&n[0].cssClass||"",o=[0,0];e.xmin<0&&(o[0]=-e.xmin),e.ymin<0&&(o[1]=-e.ymin),u(this.path,{d:i(t.d),class:s,stroke:t.stroke?t.stroke:null,fill:t.fill?t.fill:null,transform:"translate("+o[0]+","+o[1]+")"})}};var i=function(t){return isNaN(t.cxy.x)||isNaN(t.cxy.y)?"":"M"+t.hxy.x+","+t.hxy.y+" L"+t.tail[0].x+","+t.tail[0].y+" L"+t.cxy.x+","+t.cxy.y+" L"+t.tail[1].x+","+t.tail[1].y+" L"+t.hxy.x+","+t.hxy.y};this.transfer=function(t){t.canvas&&this.path&&this.path.parentNode&&(this.path.parentNode.removeChild(this.path),t.canvas.appendChild(this.path))}},y={cleanup:function(t){null!=this.path&&(t?this._jsPlumb.instance.removeElement(this.path):this.path.parentNode&&this.path.parentNode.removeChild(this.path))},reattach:function(t,e){this.path&&e.canvas&&e.canvas.appendChild(this.path)},setVisible:function(t){null!=this.path&&(this.path.style.display=t?"block":"none")}};e.extend(b,[t.jsPlumbUIComponent,t.Overlays.AbstractOverlay]),t.Overlays.svg.Arrow=function(){b.apply(this,[t.Overlays.Arrow,arguments])},e.extend(t.Overlays.svg.Arrow,[t.Overlays.Arrow,b],y),t.Overlays.svg.PlainArrow=function(){b.apply(this,[t.Overlays.PlainArrow,arguments])},e.extend(t.Overlays.svg.PlainArrow,[t.Overlays.PlainArrow,b],y),t.Overlays.svg.Diamond=function(){b.apply(this,[t.Overlays.Diamond,arguments])},e.extend(t.Overlays.svg.Diamond,[t.Overlays.Diamond,b],y),t.Overlays.svg.GuideLines=function(){var e,n,i=null,s=this;t.Overlays.GuideLines.apply(this,arguments),this.paint=function(t,r){null==i&&(i=c("path"),t.connector.svg.appendChild(i),s.attachListeners(i,t.connector),s.attachListeners(i,s),e=c("path"),t.connector.svg.appendChild(e),s.attachListeners(e,t.connector),s.attachListeners(e,s),n=c("path"),t.connector.svg.appendChild(n),s.attachListeners(n,t.connector),s.attachListeners(n,s));var a=[0,0];r.xmin<0&&(a[0]=-r.xmin),r.ymin<0&&(a[1]=-r.ymin),u(i,{d:o(t.head,t.tail),stroke:"red",fill:null,transform:"translate("+a[0]+","+a[1]+")"}),u(e,{d:o(t.tailLine[0],t.tailLine[1]),stroke:"blue",fill:null,transform:"translate("+a[0]+","+a[1]+")"}),u(n,{d:o(t.headLine[0],t.headLine[1]),stroke:"green",fill:null,transform:"translate("+a[0]+","+a[1]+")"})};var o=function(t,e){return"M "+t.x+","+t.y+" L"+e.x+","+e.y}},e.extend(t.Overlays.svg.GuideLines,t.Overlays.GuideLines)}).call("undefined"!=typeof window?window:this),(function(){"use strict";var t,e,n=this,i=n.jsPlumb,s=n.jsPlumbUtil,o=n.Katavorio,r=n.Biltong,a=function(t){var e=t._mottle;return e||(e=t._mottle=new n.Mottle),e},l=function(t,e){var n="_katavorio_"+(e=e||"main"),s=t[n],a=t.getEventManager();return s||((s=new o({bind:a.on,unbind:a.off,getSize:i.getSize,getConstrainingRectangle:function(t){return[t.parentNode.scrollWidth,t.parentNode.scrollHeight]},getPosition:function(e,n){var i=t.getOffset(e,n,e._katavorioDrag?e.offsetParent:null);return[i.left,i.top]},setPosition:function(t,e){t.style.left=e[0]+"px",t.style.top=e[1]+"px"},addClass:i.addClass,removeClass:i.removeClass,intersects:r.intersects,indexOf:function(t,e){return t.indexOf(e)},scope:t.getDefaultScope(),css:{noSelect:t.dragSelectClass,droppable:"jtk-droppable",draggable:"jtk-draggable",drag:"jtk-drag",selected:"jtk-drag-selected",active:"jtk-drag-active",hover:"jtk-drag-hover",ghostProxy:"jtk-ghost-proxy"}})).setZoom(t.getZoom()),t[n]=s,t.bind("zoom",s.setZoom)),s},u=function(t){var e=t.el._jsPlumbDragOptions,n=!0;return e.canDrag&&(n=e.canDrag()),n&&(this.setHoverSuspended(!0),this.select({source:t.el}).addClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:t.el}).addClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),this.setConnectionBeingDragged(!0)),n},c=function(t){var e=this.getUIPosition(arguments,this.getZoom());if(null!=e){var n=t.el._jsPlumbDragOptions;this.draw(t.el,e,null,!0),n._dragging&&this.addClass(t.el,"jtk-dragged"),n._dragging=!0}},h=function(t){for(var e,n=t.selection,i=(function(n){var i;null!=n[1]&&(e=this.getUIPosition([{el:n[2].el,pos:[n[1].left,n[1].top]}]),i=this.draw(n[2].el,e)),null!=n[0]._jsPlumbDragOptions&&delete n[0]._jsPlumbDragOptions._dragging,this.removeClass(n[0],"jtk-dragged"),this.select({source:n[2].el}).removeClass(this.elementDraggingClass+" "+this.sourceElementDraggingClass,!0),this.select({target:n[2].el}).removeClass(this.elementDraggingClass+" "+this.targetElementDraggingClass,!0),t.e._drawResult=t.e._drawResult||{c:[],e:[],a:[]},Array.prototype.push.apply(t.e._drawResult.c,i.c),Array.prototype.push.apply(t.e._drawResult.e,i.e),Array.prototype.push.apply(t.e._drawResult.a,i.a),this.getDragManager().dragEnded(n[2].el)}).bind(this),s=0;s0?t.touches:t.changedTouches&&t.changedTouches.length>0?t.changedTouches:t.targetTouches&&t.targetTouches.length>0?t.targetTouches:[t]},y=function(t){var e={},n=[],i={},s={},o={};this.register=function(r){var a,l=t.getId(r);e[l]||(e[l]=r,n.push(r),i[l]={});var u=function(e){if(e){for(var n=0;n0){a||(a=t.getOffset(r));var d=t.getOffset(c);i[l][h]={id:h,offset:{left:d.left-a.left,top:d.top-a.top}},o[h]=l}u(e.childNodes[n])}}};u(r)},this.updateOffsets=function(e,n){if(null!=e){n=n||{};var s,r=jsPlumb.getElement(e),a=t.getId(r),l=i[a];if(l){for(var u in l)if(l.hasOwnProperty(u)){var c=jsPlumb.getElement(u),h=n[u]||t.getOffset(c);if(null==c.offsetParent&&null!=i[a][u])continue;s||(s=t.getOffset(r)),i[a][u]={id:u,offset:{left:h.left-s.left,top:h.top-s.top}},o[u]=a}}}},this.endpointAdded=function(n,r){r=r||t.getId(n);var a=document.body,l=n.parentNode;for(s[r]=s[r]?s[r]+1:1;null!=l&&l!==a;){var u=t.getId(l,null,!0);if(u&&e[u]){var c=t.getOffset(l);if(null==i[u][r]){var h=t.getOffset(n);i[u][r]={id:r,offset:{left:h.left-c.left,top:h.top-c.top}},o[r]=u}break}l=l.parentNode}},this.endpointDeleted=function(t){if(s[t.elementId]&&(s[t.elementId]--,s[t.elementId]<=0))for(var e in i)i.hasOwnProperty(e)&&i[e]&&(delete i[e][t.elementId],delete o[t.elementId])},this.changeId=function(t,e){i[e]=i[t],i[t]={},o[e]=o[t],o[t]=null},this.getElementsForDraggable=function(t){return i[t]},this.elementRemoved=function(t){var e=o[t];e&&(i[e]&&delete i[e][t],delete o[t])},this.reset=function(){e={},n=[],i={},s={}},this.dragEnded=function(e){if(null!=e.offsetParent){var n=o[t.getId(e)];n&&this.updateOffsets(n)}},this.setParent=function(e,n,s,r,a){var l=o[n];i[r]||(i[r]={});var u=t.getOffset(s),c=a||t.getOffset(e);l&&i[l]&&delete i[l][n],i[r][n]={id:n,offset:{left:c.left-u.left,top:c.top-u.top}},o[n]=r},this.clearParent=function(t,e){var n=o[e];n&&(delete i[n][e],delete o[e])},this.revalidateParent=function(e,n,i){var s=o[n];if(s){var r={};r[n]=i,this.updateOffsets(s,r),t.revalidate(s)}},this.getDragAncestor=function(e){var n=jsPlumb.getElement(e),i=o[t.getId(n)];return i?jsPlumb.getElement(i):null}},P=function(t,e,n){e=s.fastTrim(e),void 0!==t.className.baseVal?t.className.baseVal=e:t.className=e;try{var i=t.classList;if(null!=i){for(;i.length>0;)i.remove(i.item(0));for(var o=0;o0||t.scrollLeft>0)&&(i.left-=t.scrollLeft,i.top-=t.scrollTop)}).bind(this);null!=s;)i.left+=s.offsetLeft,i.top+=s.offsetTop,o(s),s=e?s.offsetParent:s.offsetParent===n?null:s.offsetParent;if(null!=n&&!e&&(n.scrollTop>0||n.scrollLeft>0)){var r=null!=t.offsetParent?this.getStyle(t.offsetParent,"position"):"static",a=this.getStyle(t,"position");"absolute"!==a&&"fixed"!==a&&"absolute"!==r&&"fixed"!==r&&(i.left-=n.scrollLeft,i.top-=n.scrollTop)}return i},getPositionOnElement:function(t,e,n){var i=void 0!==e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0,width:0,height:0},s=document.body,o=document.documentElement,r=window.pageYOffset||o.scrollTop||s.scrollTop,a=window.pageXOffset||o.scrollLeft||s.scrollLeft,l=o.clientTop||s.clientTop||0,u=o.clientLeft||s.clientLeft||0,c=i.top+r-l+0*n,h=i.left+a-u+0*n,d=jsPlumb.pageLocation(t),p=i.width||e.offsetWidth*n,f=i.height||e.offsetHeight*n;return[(d[0]-h)/p,(d[1]-c)/f]},getAbsolutePosition:function(t){var e=function(e){var n=t.style[e];if(n)return parseFloat(n.substring(0,n.length-2))};return[e("left"),e("top")]},setAbsolutePosition:function(t,e,n,i){n?this.animate(t,{left:"+="+(e[0]-n[0]),top:"+="+(e[1]-n[1])},i):(t.style.left=e[0]+"px",t.style.top=e[1]+"px")},getSize:function(t){return[t.offsetWidth,t.offsetHeight]},getWidth:function(t){return t.offsetWidth},getHeight:function(t){return t.offsetHeight},getRenderMode:function(){return"svg"},draggable:function(t,e){var n;return t=s.isArray(t)||null!=t.length&&!s.isString(t)?t:[t],Array.prototype.slice.call(t).forEach((function(t){(n=this.info(t)).el&&this._initDraggableIfNecessary(n.el,!0,e,n.id,!0)}).bind(this)),this},snapToGrid:function(t,e,n){var i=[],s=(function(t){var s=this.info(t);if(null!=s.el&&s.el._katavorioDrag){var o=s.el._katavorioDrag.snap(e,n);this.revalidate(s.el),i.push([s.el,o])}}).bind(this);if(1==arguments.length||3==arguments.length)s(t,e,n);else{var o=this.getManagedElements();for(var r in o)s(r,arguments[0],arguments[1])}return i},initDraggable:function(t,e,n){l(this,n).draggable(t,e),t._jsPlumbDragOptions=e},destroyDraggable:function(t,e){l(this,e).destroyDraggable(t),t._jsPlumbDragOptions=null,t._jsPlumbRelatedElement=null},unbindDraggable:function(t,e,n,i){l(this,i).destroyDraggable(t,e,n)},setDraggable:function(t,e){return jsPlumb.each(t,(function(t){this.isDragSupported(t)&&(this._draggableStates[this.getAttribute(t,"id")]=e,this.setElementDraggable(t,e))}).bind(this))},_draggableStates:{},toggleDraggable:function(t){var e;return jsPlumb.each(t,(function(t){var n=this.getAttribute(t,"id");return e=!(e=null!=this._draggableStates[n]&&this._draggableStates[n]),this._draggableStates[n]=e,this.setDraggable(t,e),e}).bind(this)),e},_initDraggableIfNecessary:function(t,e,n,i,o){if(!jsPlumb.headless&&null!=e&&e&&jsPlumb.isDragSupported(t,this)){var r=n||this.Defaults.DragOptions;if(r=jsPlumb.extend({},r),jsPlumb.isAlreadyDraggable(t,this))n.force&&this.initDraggable(t,r);else{var a=jsPlumb.dragEvents.drag,l=jsPlumb.dragEvents.stop,d=jsPlumb.dragEvents.start;this.manage(i,t),r[d]=s.wrap(r[d],u.bind(this)),r[a]=s.wrap(r[a],c.bind(this)),r[l]=s.wrap(r[l],h.bind(this));var p=this.getId(t);this._draggableStates[p]=!0;var f=this._draggableStates[p];r.disabled=null!=f&&!f,this.initDraggable(t,r),this.getDragManager().register(t),o&&this.fire("elementDraggable",{el:t,options:r})}}},animationSupported:!0,getElement:function(t){return null==t?null:"string"==typeof(t="string"==typeof t?t:null==t.tagName&&null!=t.length&&null==t.enctype?t[0]:t)?document.getElementById(t):t},removeElement:function(t){l(this).elementRemoved(t),this.getEventManager().remove(t)},doAnimate:function(t,e,n){n=n||{};var s=this.getOffset(t),o=d(s,e),r=o[0]-s.left,a=o[1]-s.top,l=n.duration||250,u=l/15,c=15/l*r,h=15/l*a,p=0,f=setInterval(function(){i.setPosition(t,{left:s.left+c*(p+1),top:s.top+h*(p+1)}),null!=n.step&&n.step(p,Math.ceil(u)),++p>=u&&(window.clearInterval(f),null!=n.complete&&n.complete())},15)},destroyDroppable:function(t,e){l(this,e).destroyDroppable(t)},unbindDroppable:function(t,e,n,i){l(this,i).destroyDroppable(t,e,n)},droppable:function(t,e){var n;return t=s.isArray(t)||null!=t.length&&!s.isString(t)?t:[t],(e=e||{}).allowLoopback=!1,Array.prototype.slice.call(t).forEach((function(t){(n=this.info(t)).el&&this.initDroppable(n.el,e)}).bind(this)),this},initDroppable:function(t,e,n){l(this,n).droppable(t,e)},isAlreadyDraggable:function(t){return null!=t._katavorioDrag},isDragSupported:function(t,e){return!0},isDropSupported:function(t,e){return!0},isElementDraggable:function(t){return(t=i.getElement(t))._katavorioDrag&&t._katavorioDrag.isEnabled()},getDragObject:function(t){return t[0].drag.getDragElement()},getDragScope:function(t){return t._katavorioDrag&&t._katavorioDrag.scopes.join(" ")||""},getDropEvent:function(t){return t[0].e},getUIPosition:function(t,e){var n=t[0].el;if(null==n.offsetParent)return null;var i=t[0].finalPos||t[0].pos,s={left:i[0],top:i[1]};if(n._katavorioDrag&&n.offsetParent!==this.getContainer()){var o=this.getOffset(n.offsetParent);s.left+=o.left,s.top+=o.top}return s},setDragFilter:function(t,e,n){t._katavorioDrag&&t._katavorioDrag.setFilter(e,n)},setElementDraggable:function(t,e){(t=i.getElement(t))._katavorioDrag&&t._katavorioDrag.setEnabled(e)},setDragScope:function(t,e){t._katavorioDrag&&t._katavorioDrag.k.setDragScope(t,e)},setDropScope:function(t,e){t._katavorioDrop&&t._katavorioDrop.length>0&&t._katavorioDrop[0].k.setDropScope(t,e)},addToPosse:function(t,e){var n=Array.prototype.slice.call(arguments,1),s=l(this);i.each(t,function(t){(t=[i.getElement(t)]).push.apply(t,n),s.addToPosse.apply(s,t)})},setPosse:function(t,e){var n=Array.prototype.slice.call(arguments,1),s=l(this);i.each(t,function(t){(t=[i.getElement(t)]).push.apply(t,n),s.setPosse.apply(s,t)})},removeFromPosse:function(t,e){var n=Array.prototype.slice.call(arguments,1),s=l(this);i.each(t,function(t){(t=[i.getElement(t)]).push.apply(t,n),s.removeFromPosse.apply(s,t)})},removeFromAllPosses:function(t){var e=l(this);i.each(t,function(t){e.removeFromAllPosses(i.getElement(t))})},setPosseState:function(t,e,n){var s=l(this);i.each(t,function(t){s.setPosseState(i.getElement(t),e,n)})},dragEvents:{start:"start",stop:"stop",drag:"drag",step:"step",over:"over",out:"out",drop:"drop",complete:"complete",beforeStart:"beforeStart"},animEvents:{step:"step",complete:"complete"},stopDrag:function(t){t._katavorioDrag&&t._katavorioDrag.abort()},addToDragSelection:function(t){var e=this.getElement(t);null!=e&&(e._isJsPlumbGroup||null==e._jsPlumbGroup)&&l(this).select(t)},removeFromDragSelection:function(t){l(this).deselect(t)},getDragSelection:function(){return l(this).getSelection()},clearDragSelection:function(){l(this).deselectAll()},trigger:function(t,e,n,i){this.getEventManager().trigger(t,e,n,i)},doReset:function(){for(var t in this)0===t.indexOf("_katavorio_")&&this[t].reset()},getEventManager:function(){return a(this)},on:function(t,e,n){return this.getEventManager().on.apply(this,arguments),this},off:function(t,e,n){return this.getEventManager().off.apply(this,arguments),this}}),t=i.init,(e=function(){/complete|loaded|interactive/.test(document.readyState)&&void 0!==document.body&&null!=document.body?t():setTimeout(e,9)})()}).call("undefined"!=typeof window?window:this); \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/jsplumbtoolkit-defaults.map b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/jsplumbtoolkit-defaults.map new file mode 100644 index 00000000000..80858eef2ba --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/jsplumbtoolkit-defaults.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":null,"mappings":"AAWA,gCAYA,4BAUA,8CAUA,sCAqBA,0CAYA,4HAgCA,0MAcA,+CAQA,8CAOA,4DAQA,yNAcA,qHAaA,mKAaA,sGAeA,kEAOA,kRAgBA,oEASA,iLAWA,mFAUA,+EAcA,kKAeA,oIAYA,mEAQA,iEAQA,oEAQA,wHAaA,4CAOA,qHAaA,6GAOA,kEAOA,2CAYA,yGAeA,0KAWA,iOASA,2NASA,iCAIA,uCAIA,mCAIA,qCAIA,mEAIA,kEAOA,oDAQA,2HAYA,6DAQA,mEAMA,iFAOA,iDAKA,6DAKA,6LAWA,8KAgBA,kFAaA,iFAUA,kDASA,mDASA,qDASA,sDAUA,8JAiBA","sources":[""],"sourcesContent":["/* \n Default styles for jsPlumb Toolkit/Community Editions.\n Copyright 2020 https://jsplumbtoolkit.com\n*/\n/**\njtk-connector is assigned to connector SVG elements. overflow:visible here ensures we dont have to take into account path\nwidth and overlay sizes when computing the size of the svg element. In the Community edition this is a change from\n2.14.0 onwards.\n */\n.jtk-connector {\n overflow:visible;\n}\n/* --------------------------------------------------------------------------------------------- */\n/* --- SURFACE WIDGET -------------------------------------------------------------------------- */\n/* --------------------------------------------------------------------------------------------- */\n/*\n Assigned to every Node managed by an instance of the Toolkit. They are required to be positioned absolute, to\n enable dragging to work properly.\n*/\n.jtk-node {\n position: absolute;\n}\n/*\n Assigned to every Group managed by an instance of the Toolkit. They are required to be positioned absolute, to\n enable dragging to work properly. We set overflow:visible on Group elements too, as a drag outside of the bounds\n is automatically reverted anyway, and without overflow:visible you cannot drag a node to some other element. You can\n also drag a node out of the element's viewport and if you drop it you can never get it back.\n*/\n.jtk-group {\n position: absolute;\n overflow: visible;\n}\n/*\n This is the attribute used to mark which part of a Group DOM element should contain the child Nodes. We mark it\n as having `position:relative` so that the absolute positioned Nodes are drawn correctly.\n*/\n[jtk-group-content] {\n position:relative;\n}\n/*\n This style was created in response to this Chrome bug:\n http://stackoverflow.com/questions/13758215/artifacts-when-css-scaled-in-chrome\n Basically it's about how sometimes there can be artefacts left on screen when the user drags an element. It seems\n the issue has been fixed in more recent versions of Chrome, but the style is left here in case you come across\n the problem.\n*/\n.jtk-node.jtk-drag {\n /*-webkit-backface-visibility: hidden;*/\n}\n/*\n Suppresses the pointer events on an element that was created by Katavorio in response to a drag in which the element\n should first be cloned. Having this clone ignore pointer events means there is less chance that any other\n mouse activity (such as click) on the original element will not be consumed by katavorio.\n */\n.katavorio-clone-drag {\n pointer-events:none;\n}\n/*\n Assigned to an element that is the `Container` in a `render` call.\n Elements that are acting as Surface widgets should have overflow:hidden set to prevent libs from\n scrolling them during drag (we don't want scrollbars; we have an infinite canvas). Position is set to\n `relative` as this is the parent for nodes, which are positioned absolute (and for absolute positioning\n to work, you need to ensure the parent node has `position:relative`). This style also sets some default\n values for the cursor - using a `grab` cursor where supported.\n*/\n.jtk-surface {\n overflow: hidden !important;\n position: relative;\n cursor: move;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n /*\n For IE10+. As discussed on this page:\n https://msdn.microsoft.com/en-us/library/ie/jj583807(v=vs.85).aspx\n Microsoft have very helpfully implemented default behaviours for a bunch of touch events and\n then consumed the events so you don't have to be bothered by them. They've \"done a lot of research\"\n about this stuff and put together a really great default experience for everyone in the entire world.\n */\n touch-action:none;\n /*\n Another Chrome issue that appears to have been fixed in later versions\n http://stackoverflow.com/questions/15464055/css-transition-effect-makes-image-blurry-moves-image-1px-in-chrome\n */\n /*\n -webkit-backface-visibility: hidden;\n -webkit-transform: translateZ(0) scale(1.0, 1.0);\n */\n}\n/*\n Assigned to the surface when it is being panned. The default is to change the cursor (in browsers that support\n a `grabbing` cursor), and to disable text selection.\n*/\n.jtk-surface-panning {\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n/*\n The work area in a surface renderer.\n*/\n.jtk-surface-canvas {\n overflow: visible !important;\n}\n/*\n For IE10+. Discussed above in the .jtk-surface styles. This one is specific to elements that are configured\n to be droppable on a Surface via its `registerDroppableNodes` method.\n*/\n.jtk-surface-droppable-node {\n touch-action:none;\n}\n/*\n Assigned to a Surface widget when panning is disabled (and therefore the app is relying on scrollbars when the content overflows).\n*/\n.jtk-surface-nopan {\n overflow: scroll !important;\n cursor:default;\n}\n/*\nAssigned to tile images in a tiled background\n*/\n.jtk-surface-tile {\n border:none;\n outline:none;\n margin:0;\n -webkit-transition: opacity .3s ease .15s;\n -moz-transition: opacity .3s ease .15s;\n -o-transition: opacity .3s ease .15s;\n -ms-transition: opacity .3s ease .15s;\n transition: opacity .3s ease .15s;\n}\n/*\n Assigned to the element used for node select with the mouse (\"lasso\").\n*/\n.jtk-lasso {\n border: 2px solid rgb(49, 119, 184);\n background-color: WhiteSmoke;\n opacity: 0.5;\n display: none;\n z-index: 20000;\n position: absolute;\n}\n/*\n This class is added to the document body on lasso drag start and removed at the end of lasso dragging. Its purpose\n is to switch off text selection on all elements while the user is dragging the lasso.\n*/\n.jtk-lasso-select-defeat * {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n/**\n Added to the lasso mask when it is operating in 'inverted' mode, ie. the excluded parts of the UI are covered, rather\n than the normal mode in which the selected parts of the UI are covered.\n*/\n.jtk-lasso-mask {\n position:fixed;\n z-index:20000;\n display:none;\n opacity:0.5;\n background-color: #07234E;\n top:0;\n bottom:0;\n left:0;\n right:0;\n}\n/*\n Assigned to some element that has been selected (either via lasso or programmatically).\n*/\n.jtk-surface-selected-element {\n border: 2px dashed #f76258 !important;\n}\n/*\n Assigned to all pan buttons in a surface widget.\n*/\n.jtk-surface-pan {\n background-color: Azure;\n opacity: 0.4;\n text-align: center;\n cursor: pointer;\n z-index: 2;\n -webkit-transition: background-color 0.15s ease-in;\n -moz-transition: background-color 0.15s ease-in;\n -o-transition: background-color 0.15s ease-in;\n transition: background-color 0.15s ease-in;\n}\n/*\n Specific styles for the top and bottom pan buttons.\n Top/bottom are 100% width and 20px high by default\n*/\n.jtk-surface-pan-top, .jtk-surface-pan-bottom {\n width: 100%;\n height: 20px;\n}\n/*\n Hover styles for all pan buttons.\n On hover, change color, background color, font weight and opacity.\n*/\n.jtk-surface-pan-top:hover, .jtk-surface-pan-bottom:hover, .jtk-surface-pan-left:hover, .jtk-surface-pan-right:hover {\n opacity: 0.6;\n background-color: rgb(49, 119, 184);\n color: white;\n font-weight: bold;\n}\n/*\n Specific styles for the left and right pan buttons.\n Left/right pan buttons are 100% height and 20px wide\n*/\n.jtk-surface-pan-left, .jtk-surface-pan-right {\n width: 20px;\n height: 100%;\n line-height: 40;\n}\n/*\n Assigned to a pan button when the user is pressing it.\n*/\n.jtk-surface-pan-active, .jtk-surface-pan-active:hover {\n background-color: #f76258;\n}\n/* --------------------------------------------------------------------------------------------- */\n/* --- MINIVIEW WIDGET ------------------------------------------------------------------------- */\n/* --------------------------------------------------------------------------------------------- */\n/*\n Assigned to an element that is acting as a Miniview.\n As with Surface, Miniview elements should have overflow:hidden set to prevent\n libs from scrolling them during drag. This style also provides a default width/height for a miniview,\n which you may wish to override.\n*/\n.jtk-miniview {\n overflow: hidden !important;\n width: 125px;\n height: 125px;\n position: relative;\n background-color: #B2C9CD;\n border: 1px solid #E2E6CD;\n border-radius: 4px;\n opacity: 0.8;\n}\n/* \n Assigned to the element that shows the size of the related viewport in a Miniview widget, and which can be dragged to\n move the surface.\n*/\n.jtk-miniview-panner {\n border: 5px dotted WhiteSmoke;\n opacity: 0.4;\n background-color: rgb(79, 111, 126);\n cursor: move;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n/*\n Assigned to the miniview's panner when it is being dragged.\n*/\n.jtk-miniview-panning {\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}\n/*\n Added to all elements displayed in a miniview.\n*/\n.jtk-miniview-element {\n background-color: rgb(96, 122, 134);\n position: absolute;\n}\n/*\n Added to Group elements displayed in a miniview\n*/\n.jtk-miniview-group-element {\n background: transparent;\n border: 2px solid rgb(96,122,134);\n}\n/*\n Assigned to the collapse/expand miniview button\n*/\n.jtk-miniview-collapse {\n color: whiteSmoke;\n position: absolute;\n font-size: 18px;\n top: -1px;\n right: 3px;\n cursor: pointer;\n font-weight: bold;\n}\n/*\n The '-' symbol when the miniview is expanded\n*/\n.jtk-miniview-collapse:before {\n content: \"\\2012\";\n}\n/*\n Assigned to the miniview element when it is collapsed.\n*/\n.jtk-miniview-collapsed {\n background-color: #449ea6;\n border-radius: 4px;\n height: 22px;\n margin-right: 0;\n padding: 4px;\n width: 21px;\n}\n/*\n Hide all children of the miniview (except the expand button) when it is collapsed so you don't see anything\n poking through under the + icon.\n*/\n.jtk-miniview-collapsed .jtk-miniview-element, .jtk-miniview-collapsed .jtk-miniview-panner {\n visibility: hidden;\n}\n/*\n The '+' symbol when the miniview is collapsed.\n*/\n.jtk-miniview-collapsed .jtk-miniview-collapse:before {\n content: \"+\";\n}\n/*\n Hover state for the collapse/expand icon.\n*/\n.jtk-miniview-collapse:hover {\n color: #E4F013;\n}\n/* ------------------------------------------------------------------------------------------- */\n/* --- DIALOGS --------------------------------------------------------------------------------*/\n/* ------------------------------------------------------------------------------------------- */\n/*\n This is the element that acts as the dialog underlay - the modal \"mask\". Note the high z-index default\n set here (and note also the overlay style below has a z-index with a value higher by one).\n*/\n.jtk-dialog-underlay {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: fixed;\n z-index: 100000;\n opacity: 0.8;\n background-color: #CCC;\n display: none;\n}\n/*\n This is the element that acts as the parent for dialog content.\n*/\n.jtk-dialog-overlay {\n position: fixed;\n z-index: 100001;\n display: none;\n background-color: white;\n font-family: \"Open Sans\", sans-serif;\n padding: 7px;\n box-shadow: 0 0 5px gray;\n overflow: hidden;\n}\n.jtk-dialog-overlay-x {\n max-height:0;\n transition: max-height 0.5s ease-in;\n -moz-transition: max-height 0.5s ease-in;\n -ms-transition: max-height 0.5s ease-in;\n -o-transition: max-height 0.5s ease-in;\n -webkit-transition: max-height 0.5s ease-in;\n}\n.jtk-dialog-overlay-y {\n max-width:0;\n transition: max-width 0.5s ease-in;\n -moz-transition: max-width 0.5s ease-in;\n -ms-transition: max-width 0.5s ease-in;\n -o-transition: max-width 0.5s ease-in;\n -webkit-transition: max-width 0.5s ease-in;\n}\n.jtk-dialog-overlay-top {\n top:20px;\n}\n.jtk-dialog-overlay-bottom {\n bottom:20px;\n}\n.jtk-dialog-overlay-left {\n left:20px;\n}\n.jtk-dialog-overlay-right {\n right:20px;\n}\n.jtk-dialog-overlay-x.jtk-dialog-overlay-visible {\n max-height:1000px;\n}\n.jtk-dialog-overlay-y.jtk-dialog-overlay-visible {\n max-width:1000px;\n}\n/*\n The element containing buttons in a dialog.\n*/\n.jtk-dialog-buttons {\n text-align: right;\n margin-top: 5px;\n}\n/*\n An individual button in a dialog.\n*/\n.jtk-dialog-button {\n border: none;\n cursor: pointer;\n margin-right: 5px;\n min-width: 56px;\n background-color: white;\n outline: 1px solid #ccc;\n}\n/*\n Hover style for an individual button in a dialog.\n*/\n.jtk-dialog-button:hover {\n color: white;\n background-color: #234b5e;\n}\n/*\n The titlebar of a dialog.\n*/\n.jtk-dialog-title {\n text-align: left;\n font-size: 14px;\n margin-bottom: 9px;\n}\n.jtk-dialog-content {\n font-size:12px;\n text-align:left;\n min-width:250px;\n margin: 0 14px;\n}\n.jtk-dialog-content ul {\n width:100%;\n padding-left:0;\n}\n.jtk-dialog-content label {\n cursor: pointer;\n font-weight: inherit;\n}\n.jtk-dialog-overlay input, .jtk-dialog-overlay textarea {\n background-color: #FFF;\n border: 1px solid #CCC;\n color: #333;\n font-size: 14px;\n font-style: normal;\n outline: none;\n padding: 6px 4px;\n margin-right: 6px;\n}\n.jtk-dialog-overlay input:focus, .jtk-dialog-overlay textarea:focus {\n background-color: #cbeae1;\n border: 1px solid #83b8a8;\n color: #333;\n font-size: 14px;\n font-style: normal;\n outline: none;\n}\n/* -------------------------------------------------------------------------------------------- */\n/* --- DRAWING TOOLS -------------------------------------------------------------------------- */\n/* -------------------------------------------------------------------------------------------- */\n/*\n Assigned to the element that is drawn around some other element when a drawing operation is taking place.\n*/\n.jtk-draw-skeleton {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n outline: 2px solid #84acb3;\n opacity: 0.8;\n}\n/*\n Assigned to every handle (top left, top right, bottom left, bottom right, center) in a draw skeleton.\n*/\n.jtk-draw-handle {\n position: absolute;\n width: 7px;\n height: 7px;\n background-color: #84acb3;\n}\n/*\n Assigned to the top left handle in a draw skeleton\n*/\n.jtk-draw-handle-tl {\n left: 0;\n top: 0;\n cursor: nw-resize;\n}\n/*\n Assigned to the top right handle in a draw skeleton\n*/\n.jtk-draw-handle-tr {\n right: 0;\n top: 0;\n cursor: ne-resize;\n}\n/*\n Assigned to the bottom left handle in a draw skeleton\n*/\n.jtk-draw-handle-bl {\n left: 0;\n bottom: 0;\n cursor: sw-resize;\n}\n/*\n Assigned to the bottom right handle in a draw skeleton\n*/\n.jtk-draw-handle-br {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n/*\n Assigned to the center handle in a draw skeleton (the handle by which the element may be dragged). This is\n not visible by defaut; enable if you need it.\n*/\n.jtk-draw-drag {\n display:none;\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: -10px;\n margin-top: -10px;\n width: 20px;\n height: 20px;\n background-color: #84acb3;\n cursor: move;\n}\n/*\n This class is added to the document body on drag resize start and removed at the end of resizing. Its purpose\n is to switch off text selection on all elements while the user is resizing an element.\n*/\n.jtk-drag-select-defeat * {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n"],"names":[]} diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/jsplumbtoolkit-defaults.min.css b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/jsplumbtoolkit-defaults.min.css index 0c7086cdc4b..69b9a22da0e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/jsplumbtoolkit-defaults.min.css +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/jsplumbtoolkit-defaults.min.css @@ -1 +1 @@ -.jtk-connector{overflow:visible}.jtk-node{position:absolute}.jtk-group{position:absolute;overflow:visible}[jtk-group-content]{position:relative}.katavorio-clone-drag{pointer-events:none}.jtk-surface{overflow:hidden!important;position:relative;cursor:move;cursor:-moz-grab;cursor:-webkit-grab;touch-action:none}.jtk-surface-panning{cursor:-moz-grabbing;cursor:-webkit-grabbing;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jtk-surface-canvas{overflow:visible!important}.jtk-surface-droppable-node{touch-action:none}.jtk-surface-nopan{overflow:scroll!important;cursor:default}.jtk-surface-tile{border:none;outline:0;margin:0;-webkit-transition:opacity .3s ease .15s;-moz-transition:opacity .3s ease .15s;-o-transition:opacity .3s ease .15s;-ms-transition:opacity .3s ease .15s;transition:opacity .3s ease .15s}.jtk-lasso{border:2px solid #3177b8;background-color:#f5f5f5;opacity:.5;display:none;z-index:20000;position:absolute}.jtk-lasso-select-defeat *{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jtk-lasso-mask{position:fixed;z-index:20000;display:none;opacity:.5;background-color:#07234e;top:0;bottom:0;left:0;right:0}.jtk-surface-selected-element{border:2px dashed #f76258!important}.jtk-surface-pan{background-color:Azure;opacity:.4;text-align:center;cursor:pointer;z-index:2;-webkit-transition:background-color .15s ease-in;-moz-transition:background-color .15s ease-in;-o-transition:background-color .15s ease-in;transition:background-color .15s ease-in}.jtk-surface-pan-bottom,.jtk-surface-pan-top{width:100%;height:20px}.jtk-surface-pan-bottom:hover,.jtk-surface-pan-left:hover,.jtk-surface-pan-right:hover,.jtk-surface-pan-top:hover{opacity:.6;background-color:#3177b8;color:#fff;font-weight:700}.jtk-surface-pan-left,.jtk-surface-pan-right{width:20px;height:100%;line-height:40}.jtk-surface-pan-active,.jtk-surface-pan-active:hover{background-color:#f76258}.jtk-miniview{overflow:hidden!important;width:125px;height:125px;position:relative;background-color:#b2c9cd;border:1px solid #e2e6cd;border-radius:4px;opacity:.8}.jtk-miniview-panner{border:5px dotted #f5f5f5;opacity:.4;background-color:#4f6f7e;cursor:move;cursor:-moz-grab;cursor:-webkit-grab}.jtk-miniview-panning{cursor:-moz-grabbing;cursor:-webkit-grabbing}.jtk-miniview-element{background-color:#607a86;position:absolute}.jtk-miniview-group-element{background:0 0;border:2px solid #607a86}.jtk-miniview-collapse{color:#f5f5f5;position:absolute;font-size:18px;top:-1px;right:3px;cursor:pointer;font-weight:700}.jtk-miniview-collapse:before{content:"\2012"}.jtk-miniview-collapsed{background-color:#449ea6;border-radius:4px;height:22px;margin-right:0;padding:4px;width:21px}.jtk-miniview-collapsed .jtk-miniview-element,.jtk-miniview-collapsed .jtk-miniview-panner{visibility:hidden}.jtk-miniview-collapsed .jtk-miniview-collapse:before{content:"+"}.jtk-miniview-collapse:hover{color:#e4f013}.jtk-dialog-underlay{left:0;right:0;top:0;bottom:0;position:fixed;z-index:100000;opacity:.8;background-color:#ccc;display:none}.jtk-dialog-overlay{position:fixed;z-index:100001;display:none;background-color:#fff;font-family:"Open Sans",sans-serif;padding:7px;box-shadow:0 0 5px gray;overflow:hidden}.jtk-dialog-overlay-x{max-height:0;transition:max-height .5s ease-in;-moz-transition:max-height .5s ease-in;-ms-transition:max-height .5s ease-in;-o-transition:max-height .5s ease-in;-webkit-transition:max-height .5s ease-in}.jtk-dialog-overlay-y{max-width:0;transition:max-width .5s ease-in;-moz-transition:max-width .5s ease-in;-ms-transition:max-width .5s ease-in;-o-transition:max-width .5s ease-in;-webkit-transition:max-width .5s ease-in}.jtk-dialog-overlay-top{top:20px}.jtk-dialog-overlay-bottom{bottom:20px}.jtk-dialog-overlay-left{left:20px}.jtk-dialog-overlay-right{right:20px}.jtk-dialog-overlay-x.jtk-dialog-overlay-visible{max-height:1000px}.jtk-dialog-overlay-y.jtk-dialog-overlay-visible{max-width:1000px}.jtk-dialog-buttons{text-align:right;margin-top:5px}.jtk-dialog-button{border:none;cursor:pointer;margin-right:5px;min-width:56px;background-color:#fff;outline:1px solid #ccc}.jtk-dialog-button:hover{color:#fff;background-color:#234b5e}.jtk-dialog-title{text-align:left;font-size:14px;margin-bottom:9px}.jtk-dialog-content{font-size:12px;text-align:left;min-width:250px;margin:0 14px}.jtk-dialog-content ul{width:100%;padding-left:0}.jtk-dialog-content label{cursor:pointer;font-weight:inherit}.jtk-dialog-overlay input,.jtk-dialog-overlay textarea{background-color:#fff;border:1px solid #ccc;color:#333;font-size:14px;font-style:normal;outline:0;padding:6px 4px;margin-right:6px}.jtk-dialog-overlay input:focus,.jtk-dialog-overlay textarea:focus{background-color:#cbeae1;border:1px solid #83b8a8;color:#333;font-size:14px;font-style:normal;outline:0}.jtk-draw-skeleton{position:absolute;left:0;right:0;top:0;bottom:0;outline:2px solid #84acb3;opacity:.8}.jtk-draw-handle{position:absolute;width:7px;height:7px;background-color:#84acb3}.jtk-draw-handle-tl{left:0;top:0;cursor:nw-resize}.jtk-draw-handle-tr{right:0;top:0;cursor:ne-resize}.jtk-draw-handle-bl{left:0;bottom:0;cursor:sw-resize}.jtk-draw-handle-br{bottom:0;right:0;cursor:se-resize}.jtk-draw-drag{display:none;position:absolute;left:50%;top:50%;margin-left:-10px;margin-top:-10px;width:20px;height:20px;background-color:#84acb3;cursor:move}.jtk-drag-select-defeat *{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} +.jtk-connector{overflow:visible}.jtk-node{position:absolute}.jtk-group{position:absolute;overflow:visible}[jtk-group-content]{position:relative}.katavorio-clone-drag{pointer-events:none}.jtk-surface{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;touch-action:none;position:relative;overflow:hidden!important}.jtk-surface-panning{cursor:-moz-grabbing;cursor:-webkit-grabbing;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-khtml-user-select:none}.jtk-surface-canvas{overflow:visible!important}.jtk-surface-droppable-node{touch-action:none}.jtk-surface-nopan{cursor:default;overflow:scroll!important}.jtk-surface-tile{-o-transition:opacity .3s ease .15s;border:none;outline:none;margin:0;-webkit-transition:opacity .3s .15s;-moz-transition:opacity .3s .15s;-ms-transition:opacity .3s .15s;transition:opacity .3s .15s}.jtk-lasso{opacity:.5;z-index:20000;background-color:#f5f5f5;border:2px solid #3177b8;display:none;position:absolute}.jtk-lasso-select-defeat *{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-khtml-user-select:none}.jtk-lasso-mask{z-index:20000;opacity:.5;background-color:#07234e;display:none;position:fixed;inset:0}.jtk-surface-selected-element{border:2px dashed #f76258!important}.jtk-surface-pan{opacity:.4;text-align:center;cursor:pointer;z-index:2;-o-transition:background-color .15s ease-in;background-color:azure;-webkit-transition:background-color .15s ease-in;-moz-transition:background-color .15s ease-in;transition:background-color .15s ease-in}.jtk-surface-pan-top,.jtk-surface-pan-bottom{width:100%;height:20px}.jtk-surface-pan-top:hover,.jtk-surface-pan-bottom:hover,.jtk-surface-pan-left:hover,.jtk-surface-pan-right:hover{opacity:.6;color:#fff;background-color:#3177b8;font-weight:700}.jtk-surface-pan-left,.jtk-surface-pan-right{width:20px;height:100%;line-height:40}.jtk-surface-pan-active,.jtk-surface-pan-active:hover{background-color:#f76258}.jtk-miniview{opacity:.8;background-color:#b2c9cd;border:1px solid #e2e6cd;border-radius:4px;width:125px;height:125px;position:relative;overflow:hidden!important}.jtk-miniview-panner{opacity:.4;cursor:move;cursor:-moz-grab;cursor:-webkit-grab;background-color:#4f6f7e;border:5px dotted #f5f5f5}.jtk-miniview-panning{cursor:-moz-grabbing;cursor:-webkit-grabbing}.jtk-miniview-element{background-color:#607a86;position:absolute}.jtk-miniview-group-element{background:0 0;border:2px solid #607a86}.jtk-miniview-collapse{color:#f5f5f5;cursor:pointer;font-size:18px;font-weight:700;position:absolute;top:-1px;right:3px}.jtk-miniview-collapse:before{content:"‒"}.jtk-miniview-collapsed{background-color:#449ea6;border-radius:4px;width:21px;height:22px;margin-right:0;padding:4px}.jtk-miniview-collapsed .jtk-miniview-element,.jtk-miniview-collapsed .jtk-miniview-panner{visibility:hidden}.jtk-miniview-collapsed .jtk-miniview-collapse:before{content:"+"}.jtk-miniview-collapse:hover{color:#e4f013}.jtk-dialog-underlay{z-index:100000;opacity:.8;background-color:#ccc;display:none;position:fixed;inset:0}.jtk-dialog-overlay{z-index:100001;background-color:#fff;padding:7px;font-family:Open Sans,sans-serif;display:none;position:fixed;overflow:hidden;box-shadow:0 0 5px gray}.jtk-dialog-overlay-x{-o-transition:max-height .5s ease-in;max-height:0;-webkit-transition:max-height .5s ease-in;-moz-transition:max-height .5s ease-in;-ms-transition:max-height .5s ease-in;transition:max-height .5s ease-in}.jtk-dialog-overlay-y{-o-transition:max-width .5s ease-in;max-width:0;-webkit-transition:max-width .5s ease-in;-moz-transition:max-width .5s ease-in;-ms-transition:max-width .5s ease-in;transition:max-width .5s ease-in}.jtk-dialog-overlay-top{top:20px}.jtk-dialog-overlay-bottom{bottom:20px}.jtk-dialog-overlay-left{left:20px}.jtk-dialog-overlay-right{right:20px}.jtk-dialog-overlay-x.jtk-dialog-overlay-visible{max-height:1000px}.jtk-dialog-overlay-y.jtk-dialog-overlay-visible{max-width:1000px}.jtk-dialog-buttons{text-align:right;margin-top:5px}.jtk-dialog-button{cursor:pointer;background-color:#fff;border:none;outline:1px solid #ccc;min-width:56px;margin-right:5px}.jtk-dialog-button:hover{color:#fff;background-color:#234b5e}.jtk-dialog-title{text-align:left;margin-bottom:9px;font-size:14px}.jtk-dialog-content{text-align:left;min-width:250px;margin:0 14px;font-size:12px}.jtk-dialog-content ul{width:100%;padding-left:0}.jtk-dialog-content label{cursor:pointer;font-weight:inherit}.jtk-dialog-overlay input,.jtk-dialog-overlay textarea{color:#333;background-color:#fff;border:1px solid #ccc;outline:none;margin-right:6px;padding:6px 4px;font-size:14px;font-style:normal}.jtk-dialog-overlay input:focus,.jtk-dialog-overlay textarea:focus{color:#333;background-color:#cbeae1;border:1px solid #83b8a8;outline:none;font-size:14px;font-style:normal}.jtk-draw-skeleton{opacity:.8;outline:2px solid #84acb3;position:absolute;inset:0}.jtk-draw-handle{background-color:#84acb3;width:7px;height:7px;position:absolute}.jtk-draw-handle-tl{cursor:nw-resize;top:0;left:0}.jtk-draw-handle-tr{cursor:ne-resize;top:0;right:0}.jtk-draw-handle-bl{cursor:sw-resize;bottom:0;left:0}.jtk-draw-handle-br{cursor:se-resize;bottom:0;right:0}.jtk-draw-drag{cursor:move;background-color:#84acb3;width:20px;height:20px;margin-top:-10px;margin-left:-10px;display:none;position:absolute;top:50%;left:50%}.jtk-drag-select-defeat *{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-khtml-user-select:none} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.css b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.css index 985683c9033..ec9ba1b0e85 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.css +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.css @@ -127,4 +127,4 @@ .jtk-connector.jtk-hover { stroke: #216477; fill: #216477; -} +} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.css.map b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.css.map new file mode 100644 index 00000000000..a415106bb82 --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":null,"mappings":"AAAA,kMAMA,sDAIA,8FAMA,unBAsBA,8GAGA,+GAGA,gNAKA,qDAGA,2DAGA,0CAGA,qIAIA,0FAGA,qDAGA,6UAUA,kEAIA,uDAIA,gJAMA,2DAGA,uEAGA,wJAQA,kJAOA,oEAIA,sCAIA,yFAKA","sources":[""],"sourcesContent":[".workflow-container .workflow-canvas-container {\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) var(--bs-border-color, #e4e5e6);\n border-radius: var(--bs-border-radius, 2px);\n padding: 15px;\n}\n\n.modal-activities h4.card-title .fa {\n margin-right: 0.5em;\n}\n\n.workflow-canvas {\n overflow: auto !important;\n position: relative;\n touch-action: none;\n min-height: 400px;\n}\n.workflow-canvas .activity {\n display: none;\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) var(--bs-border-color, #346789);\n box-shadow: 2px 2px 19px #aaa;\n -webkit-box-shadow: 2px 2px 9px #aaa;\n -moz-box-shadow: 2px 2px 9px #aaa;\n -moz-border-radius: var(--bs-border-radius, 2px);\n border-radius: var(--bs-border-radius, 2px);\n opacity: 0.8;\n min-width: 80px;\n min-height: 80px;\n text-align: left;\n z-index: 20;\n position: absolute;\n background-color: var(--bs-secondary-bg);\n color: var(--bs-body-color);\n padding: 1em;\n font-size: 0.7em;\n -webkit-transition: -webkit-box-shadow 0.15s ease-in;\n -moz-transition: -moz-box-shadow 0.15s ease-in;\n transition: box-shadow 0.15s ease-in;\n}\n.workflow-canvas .activity.activity-task {\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) #7ab02c;\n}\n.workflow-canvas .activity.activity-event {\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) #3a8acd;\n}\n.workflow-canvas .activity.activity-start, .workflow-canvas .activity.activity-blocking {\n background-color: #7ab02c;\n color: var(--bs-white, #ffffff);\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) #507b11;\n}\n.workflow-canvas .activity header h4 {\n font-size: 1.4em;\n}\n.workflow-canvas .activity header h4 .fa {\n margin-right: 0.5em;\n}\n.workflow-canvas .jtk-connector {\n z-index: 4;\n}\n.workflow-canvas .jtk-endpoint, .workflow-canvas .endpointTargetLabel, .workflow-canvas .endpointSourceLabel {\n z-index: 21;\n cursor: pointer;\n}\n.workflow-canvas .endpointTargetLabel, .workflow-canvas .endpointSourceLabel {\n font-size: 8px;\n}\n.workflow-canvas .jtk-overlay {\n background-color: transparent;\n}\n.workflow-canvas .connection-label {\n z-index: 31;\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) var(--bs-border-color, #e4e5e6);\n padding: 0 0.5rem;\n -moz-border-radius: var(--bs-border-radius, 2px);\n -webkit-border-radius: var(--bs-border-radius, 2px);\n border-radius: var(--bs-border-radius, 2px);\n background-color: var(--bs-secondary-bg);\n}\n\n.modal-activities h4.card-title .svg-inline--fa {\n margin-right: 0.5em;\n}\n\n.workflow-canvas .activity {\n max-width: 280px;\n cursor: move;\n}\n.workflow-canvas .activity:hover {\n box-shadow: 2px 2px 19px #444;\n -webkit-box-shadow: 2px 2px 19px #444;\n -moz-box-shadow: 2px 2px 19px #444;\n opacity: 0.6;\n}\n.workflow-canvas .activity .activity-commands {\n display: none;\n}\n.workflow-canvas .activity header h4 .svg-inline--fa {\n margin-right: 0.5em;\n}\n.workflow-canvas .activity span, .workflow-canvas .activity em {\n /* Add an ellipsis on the workflow activity boxes. This makes the activities much easier to move when they have long text */\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n display: inline-block;\n}\n.workflow-canvas .jtk-drag-select {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.workflow-canvas path, .workflow-canvas .jtk-endpoint {\n cursor: pointer;\n}\n\n.jtk-connector-outline {\n stroke-width: 0;\n}\n\n.jtk-connector:not(.jtk-hover) path {\n stroke: var(--bs-border-color, black);\n stroke-width: 3;\n}\n\n.jtk-connector.jtk-hover {\n stroke: #216477;\n fill: #216477;\n}"],"names":[]} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.min.css b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.min.css index 5b902b19faf..8fc650c5449 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.min.css +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-editor.min.css @@ -1 +1 @@ -.workflow-container .workflow-canvas-container{border:var(--bs-border-width,1px) var(--bs-border-style,solid) var(--bs-border-color,#e4e5e6);border-radius:var(--bs-border-radius,2px);padding:15px}.modal-activities h4.card-title .fa{margin-right:.5em}.workflow-canvas{overflow:auto!important;position:relative;touch-action:none;min-height:400px}.workflow-canvas .activity{display:none;border:var(--bs-border-width,1px) var(--bs-border-style,solid) var(--bs-border-color,#346789);box-shadow:2px 2px 19px #aaa;-webkit-box-shadow:2px 2px 9px #aaa;-moz-box-shadow:2px 2px 9px #aaa;-moz-border-radius:var(--bs-border-radius,2px);border-radius:var(--bs-border-radius,2px);opacity:.8;min-width:80px;min-height:80px;text-align:left;z-index:20;position:absolute;background-color:var(--bs-secondary-bg);color:var(--bs-body-color);padding:1em;font-size:.7em;-webkit-transition:-webkit-box-shadow .15s ease-in;-moz-transition:-moz-box-shadow .15s ease-in;transition:box-shadow .15s ease-in}.workflow-canvas .activity.activity-task{border:var(--bs-border-width,1px) var(--bs-border-style,solid) #7ab02c}.workflow-canvas .activity.activity-event{border:var(--bs-border-width,1px) var(--bs-border-style,solid) #3a8acd}.workflow-canvas .activity.activity-blocking,.workflow-canvas .activity.activity-start{background-color:#7ab02c;color:var(--bs-white,#fff);border:var(--bs-border-width,1px) var(--bs-border-style,solid) #507b11}.workflow-canvas .activity header h4{font-size:1.4em}.workflow-canvas .activity header h4 .fa{margin-right:.5em}.workflow-canvas .jtk-connector{z-index:4}.workflow-canvas .endpointSourceLabel,.workflow-canvas .endpointTargetLabel,.workflow-canvas .jtk-endpoint{z-index:21;cursor:pointer}.workflow-canvas .endpointSourceLabel,.workflow-canvas .endpointTargetLabel{font-size:8px}.workflow-canvas .jtk-overlay{background-color:transparent}.workflow-canvas .connection-label{z-index:31;border:var(--bs-border-width,1px) var(--bs-border-style,solid) var(--bs-border-color,#e4e5e6);padding:0 .5rem;-moz-border-radius:var(--bs-border-radius,2px);-webkit-border-radius:var(--bs-border-radius,2px);border-radius:var(--bs-border-radius,2px);background-color:var(--bs-secondary-bg)}.modal-activities h4.card-title .svg-inline--fa{margin-right:.5em}.workflow-canvas .activity{max-width:280px;cursor:move}.workflow-canvas .activity:hover{box-shadow:2px 2px 19px #444;-webkit-box-shadow:2px 2px 19px #444;-moz-box-shadow:2px 2px 19px #444;opacity:.6}.workflow-canvas .activity .activity-commands{display:none}.workflow-canvas .activity header h4 .svg-inline--fa{margin-right:.5em}.workflow-canvas .activity em,.workflow-canvas .activity span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;display:inline-block}.workflow-canvas .jtk-drag-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.workflow-canvas .jtk-endpoint,.workflow-canvas path{cursor:pointer}.jtk-connector-outline{stroke-width:0}.jtk-connector:not(.jtk-hover) path{stroke:var(--bs-border-color,#000);stroke-width:3}.jtk-connector.jtk-hover{stroke:#216477;fill:#216477} +.workflow-container .workflow-canvas-container{border:var(--bs-border-width,1px)var(--bs-border-style,solid)var(--bs-border-color,#e4e5e6);border-radius:var(--bs-border-radius,2px);padding:15px}.modal-activities h4.card-title .fa{margin-right:.5em}.workflow-canvas{touch-action:none;min-height:400px;position:relative;overflow:auto!important}.workflow-canvas .activity{border:var(--bs-border-width,1px)var(--bs-border-style,solid)var(--bs-border-color,#346789);box-shadow:2px 2px 19px #aaa;-moz-border-radius:var(--bs-border-radius,2px);border-radius:var(--bs-border-radius,2px);opacity:.8;text-align:left;z-index:20;background-color:var(--bs-secondary-bg);min-width:80px;min-height:80px;color:var(--bs-body-color);-webkit-transition:-webkit-box-shadow .15s ease-in;-moz-transition:-moz-box-shadow .15s ease-in;padding:1em;font-size:.7em;transition:box-shadow .15s ease-in;display:none;position:absolute;-webkit-box-shadow:2px 2px 9px #aaa;-moz-box-shadow:2px 2px 9px #aaa}.workflow-canvas .activity.activity-task{border:var(--bs-border-width,1px)var(--bs-border-style,solid)#7ab02c}.workflow-canvas .activity.activity-event{border:var(--bs-border-width,1px)var(--bs-border-style,solid)#3a8acd}.workflow-canvas .activity.activity-start,.workflow-canvas .activity.activity-blocking{color:var(--bs-white,#fff);border:var(--bs-border-width,1px)var(--bs-border-style,solid)#507b11;background-color:#7ab02c}.workflow-canvas .activity header h4{font-size:1.4em}.workflow-canvas .activity header h4 .fa{margin-right:.5em}.workflow-canvas .jtk-connector{z-index:4}.workflow-canvas .jtk-endpoint,.workflow-canvas .endpointTargetLabel,.workflow-canvas .endpointSourceLabel{z-index:21;cursor:pointer}.workflow-canvas .endpointTargetLabel,.workflow-canvas .endpointSourceLabel{font-size:8px}.workflow-canvas .jtk-overlay{background-color:#0000}.workflow-canvas .connection-label{z-index:31;border:var(--bs-border-width,1px)var(--bs-border-style,solid)var(--bs-border-color,#e4e5e6);-moz-border-radius:var(--bs-border-radius,2px);-webkit-border-radius:var(--bs-border-radius,2px);border-radius:var(--bs-border-radius,2px);background-color:var(--bs-secondary-bg);padding:0 .5rem}.modal-activities h4.card-title .svg-inline--fa{margin-right:.5em}.workflow-canvas .activity{cursor:move;max-width:280px}.workflow-canvas .activity:hover{opacity:.6;-webkit-box-shadow:2px 2px 19px #444;-moz-box-shadow:2px 2px 19px #444;box-shadow:2px 2px 19px #444}.workflow-canvas .activity .activity-commands{display:none}.workflow-canvas .activity header h4 .svg-inline--fa{margin-right:.5em}.workflow-canvas .activity span,.workflow-canvas .activity em{white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block;overflow:hidden}.workflow-canvas .jtk-drag-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.workflow-canvas path,.workflow-canvas .jtk-endpoint{cursor:pointer}.jtk-connector-outline{stroke-width:0}.jtk-connector:not(.jtk-hover) path{stroke:var(--bs-border-color,black);stroke-width:3px}.jtk-connector.jtk-hover{stroke:#216477;fill:#216477} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.css b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.css index 49def12c14f..75f1196ae77 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.css +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.css @@ -82,4 +82,4 @@ } .workflow-details span { display: block; -} +} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.css.map b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.css.map new file mode 100644 index 00000000000..ba4920dc00b --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":null,"mappings":"AAAA,kMAMA,sDAIA,8FAMA,unBAsBA,8GAGA,+GAGA,gNAKA,qDAGA,2DAGA,0CAGA,qIAIA,0FAGA,qDAGA,6UAUA,sDAIA","sources":[""],"sourcesContent":[".workflow-container .workflow-canvas-container {\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) var(--bs-border-color, #e4e5e6);\n border-radius: var(--bs-border-radius, 2px);\n padding: 15px;\n}\n\n.modal-activities h4.card-title .fa {\n margin-right: 0.5em;\n}\n\n.workflow-canvas {\n overflow: auto !important;\n position: relative;\n touch-action: none;\n min-height: 400px;\n}\n.workflow-canvas .activity {\n display: none;\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) var(--bs-border-color, #346789);\n box-shadow: 2px 2px 19px #aaa;\n -webkit-box-shadow: 2px 2px 9px #aaa;\n -moz-box-shadow: 2px 2px 9px #aaa;\n -moz-border-radius: var(--bs-border-radius, 2px);\n border-radius: var(--bs-border-radius, 2px);\n opacity: 0.8;\n min-width: 80px;\n min-height: 80px;\n text-align: left;\n z-index: 20;\n position: absolute;\n background-color: var(--bs-secondary-bg);\n color: var(--bs-body-color);\n padding: 1em;\n font-size: 0.7em;\n -webkit-transition: -webkit-box-shadow 0.15s ease-in;\n -moz-transition: -moz-box-shadow 0.15s ease-in;\n transition: box-shadow 0.15s ease-in;\n}\n.workflow-canvas .activity.activity-task {\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) #7ab02c;\n}\n.workflow-canvas .activity.activity-event {\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) #3a8acd;\n}\n.workflow-canvas .activity.activity-start, .workflow-canvas .activity.activity-blocking {\n background-color: #7ab02c;\n color: var(--bs-white, #ffffff);\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) #507b11;\n}\n.workflow-canvas .activity header h4 {\n font-size: 1.4em;\n}\n.workflow-canvas .activity header h4 .fa {\n margin-right: 0.5em;\n}\n.workflow-canvas .jtk-connector {\n z-index: 4;\n}\n.workflow-canvas .jtk-endpoint, .workflow-canvas .endpointTargetLabel, .workflow-canvas .endpointSourceLabel {\n z-index: 21;\n cursor: pointer;\n}\n.workflow-canvas .endpointTargetLabel, .workflow-canvas .endpointSourceLabel {\n font-size: 8px;\n}\n.workflow-canvas .jtk-overlay {\n background-color: transparent;\n}\n.workflow-canvas .connection-label {\n z-index: 31;\n border: var(--bs-border-width, 1px) var(--bs-border-style, solid) var(--bs-border-color, #e4e5e6);\n padding: 0 0.5rem;\n -moz-border-radius: var(--bs-border-radius, 2px);\n -webkit-border-radius: var(--bs-border-radius, 2px);\n border-radius: var(--bs-border-radius, 2px);\n background-color: var(--bs-secondary-bg);\n}\n\n.workflow-details label {\n font-weight: bold;\n display: block;\n}\n.workflow-details span {\n display: block;\n}"],"names":[]} \ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.min.css b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.min.css index 44e99d1231c..7da5d35644d 100644 --- a/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.min.css +++ b/src/OrchardCore.Modules/OrchardCore.Workflows/wwwroot/Styles/orchard.workflows-viewer.min.css @@ -1 +1 @@ -.workflow-container .workflow-canvas-container{border:var(--bs-border-width,1px) var(--bs-border-style,solid) var(--bs-border-color,#e4e5e6);border-radius:var(--bs-border-radius,2px);padding:15px}.modal-activities h4.card-title .fa{margin-right:.5em}.workflow-canvas{overflow:auto!important;position:relative;touch-action:none;min-height:400px}.workflow-canvas .activity{display:none;border:var(--bs-border-width,1px) var(--bs-border-style,solid) var(--bs-border-color,#346789);box-shadow:2px 2px 19px #aaa;-webkit-box-shadow:2px 2px 9px #aaa;-moz-box-shadow:2px 2px 9px #aaa;-moz-border-radius:var(--bs-border-radius,2px);border-radius:var(--bs-border-radius,2px);opacity:.8;min-width:80px;min-height:80px;text-align:left;z-index:20;position:absolute;background-color:var(--bs-secondary-bg);color:var(--bs-body-color);padding:1em;font-size:.7em;-webkit-transition:-webkit-box-shadow .15s ease-in;-moz-transition:-moz-box-shadow .15s ease-in;transition:box-shadow .15s ease-in}.workflow-canvas .activity.activity-task{border:var(--bs-border-width,1px) var(--bs-border-style,solid) #7ab02c}.workflow-canvas .activity.activity-event{border:var(--bs-border-width,1px) var(--bs-border-style,solid) #3a8acd}.workflow-canvas .activity.activity-blocking,.workflow-canvas .activity.activity-start{background-color:#7ab02c;color:var(--bs-white,#fff);border:var(--bs-border-width,1px) var(--bs-border-style,solid) #507b11}.workflow-canvas .activity header h4{font-size:1.4em}.workflow-canvas .activity header h4 .fa{margin-right:.5em}.workflow-canvas .jtk-connector{z-index:4}.workflow-canvas .endpointSourceLabel,.workflow-canvas .endpointTargetLabel,.workflow-canvas .jtk-endpoint{z-index:21;cursor:pointer}.workflow-canvas .endpointSourceLabel,.workflow-canvas .endpointTargetLabel{font-size:8px}.workflow-canvas .jtk-overlay{background-color:transparent}.workflow-canvas .connection-label{z-index:31;border:var(--bs-border-width,1px) var(--bs-border-style,solid) var(--bs-border-color,#e4e5e6);padding:0 .5rem;-moz-border-radius:var(--bs-border-radius,2px);-webkit-border-radius:var(--bs-border-radius,2px);border-radius:var(--bs-border-radius,2px);background-color:var(--bs-secondary-bg)}.workflow-details label{font-weight:700;display:block}.workflow-details span{display:block} +.workflow-container .workflow-canvas-container{border:var(--bs-border-width,1px)var(--bs-border-style,solid)var(--bs-border-color,#e4e5e6);border-radius:var(--bs-border-radius,2px);padding:15px}.modal-activities h4.card-title .fa{margin-right:.5em}.workflow-canvas{touch-action:none;min-height:400px;position:relative;overflow:auto!important}.workflow-canvas .activity{border:var(--bs-border-width,1px)var(--bs-border-style,solid)var(--bs-border-color,#346789);box-shadow:2px 2px 19px #aaa;-moz-border-radius:var(--bs-border-radius,2px);border-radius:var(--bs-border-radius,2px);opacity:.8;text-align:left;z-index:20;background-color:var(--bs-secondary-bg);min-width:80px;min-height:80px;color:var(--bs-body-color);-webkit-transition:-webkit-box-shadow .15s ease-in;-moz-transition:-moz-box-shadow .15s ease-in;padding:1em;font-size:.7em;transition:box-shadow .15s ease-in;display:none;position:absolute;-webkit-box-shadow:2px 2px 9px #aaa;-moz-box-shadow:2px 2px 9px #aaa}.workflow-canvas .activity.activity-task{border:var(--bs-border-width,1px)var(--bs-border-style,solid)#7ab02c}.workflow-canvas .activity.activity-event{border:var(--bs-border-width,1px)var(--bs-border-style,solid)#3a8acd}.workflow-canvas .activity.activity-start,.workflow-canvas .activity.activity-blocking{color:var(--bs-white,#fff);border:var(--bs-border-width,1px)var(--bs-border-style,solid)#507b11;background-color:#7ab02c}.workflow-canvas .activity header h4{font-size:1.4em}.workflow-canvas .activity header h4 .fa{margin-right:.5em}.workflow-canvas .jtk-connector{z-index:4}.workflow-canvas .jtk-endpoint,.workflow-canvas .endpointTargetLabel,.workflow-canvas .endpointSourceLabel{z-index:21;cursor:pointer}.workflow-canvas .endpointTargetLabel,.workflow-canvas .endpointSourceLabel{font-size:8px}.workflow-canvas .jtk-overlay{background-color:#0000}.workflow-canvas .connection-label{z-index:31;border:var(--bs-border-width,1px)var(--bs-border-style,solid)var(--bs-border-color,#e4e5e6);-moz-border-radius:var(--bs-border-radius,2px);-webkit-border-radius:var(--bs-border-radius,2px);border-radius:var(--bs-border-radius,2px);background-color:var(--bs-secondary-bg);padding:0 .5rem}.workflow-details label{font-weight:700;display:block}.workflow-details span{display:block} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/Assets.json b/src/OrchardCore.Themes/TheAdmin/Assets.json index e59bc8bc357..9c8e26ed17a 100644 --- a/src/OrchardCore.Themes/TheAdmin/Assets.json +++ b/src/OrchardCore.Themes/TheAdmin/Assets.json @@ -1,27 +1,4 @@ [ - { - "generateRTL": false, - "inputs": [ - "Assets/scss/index.scss" - ], - "watch": [ - "Assets/scss/components/**/*.scss", - "Assets/scss/main/**/*.scss", - "Assets/scss/mixins/**/*.scss", - "Assets/scss/themes/**/*.scss" - ], - "output": "wwwroot/css/TheAdmin.css" - }, - { - "generateRTL": true, - "inputs": [ - "Assets/scss/admin-layout.scss" - ], - "watch": [ - "Assets/scss/admin/**/*.scss" - ], - "output": "wwwroot/css/admin-layout.css" - }, { "inputs": [ "Assets/js/*.js" @@ -31,17 +8,6 @@ ], "output": "wwwroot/js/TheAdmin.js" }, - { - "generateRTL": false, - "inputs": [ - "Assets/scss/login.scss" - ], - "watch": [ - "Assets/scss/componenets/_recaptcha.scss", - "Assets/scss/componenets/_validations.scss" - ], - "output": "wwwroot/css/login.css" - }, { "inputs": [ "Assets/js/header/global/*.js", diff --git a/src/OrchardCore.Themes/TheAdmin/Assets/scss/index.scss b/src/OrchardCore.Themes/TheAdmin/Assets/scss/TheAdmin.scss similarity index 100% rename from src/OrchardCore.Themes/TheAdmin/Assets/scss/index.scss rename to src/OrchardCore.Themes/TheAdmin/Assets/scss/TheAdmin.scss diff --git a/src/OrchardCore.Themes/TheAdmin/Assets/scss/admin/_sidebar-menu.scss b/src/OrchardCore.Themes/TheAdmin/Assets/scss/admin/_sidebar-menu.scss index 6cc4297c42a..9a2162e4828 100644 --- a/src/OrchardCore.Themes/TheAdmin/Assets/scss/admin/_sidebar-menu.scss +++ b/src/OrchardCore.Themes/TheAdmin/Assets/scss/admin/_sidebar-menu.scss @@ -905,7 +905,7 @@ html:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin > li > .item-label &:hover { color: rgba(0, 120, 212, 1); - color: var(rgba(0, 120, 212, 1)); + color: rgba(0, 120, 212, 1); text-shadow: 0 0 4px rgba(0, 120, 212, 0.5); } diff --git a/src/OrchardCore.Themes/TheAdmin/Assets2.json b/src/OrchardCore.Themes/TheAdmin/Assets2.json new file mode 100644 index 00000000000..4e0d23b48fc --- /dev/null +++ b/src/OrchardCore.Themes/TheAdmin/Assets2.json @@ -0,0 +1,24 @@ +[ + { + "action": "sass", + "name": "theme-theadmin", + "source": "Assets/scss/TheAdmin.scss", + "dest": "wwwroot/css/", + "tags": ["theme", "css"] + }, + { + "action": "sass", + "generateRTL": true, + "name": "theme-theadmin-layout", + "source": "Assets/scss/admin-layout.scss", + "dest": "wwwroot/css/", + "tags": ["theme", "css"] + }, + { + "action": "sass", + "name": "theme-theadmin-login", + "source": "Assets/scss/login.scss", + "dest": "wwwroot/css/", + "tags": ["theme", "css"] + } +] diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css index 638248a001b..e1ed193d06e 100644 --- a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css @@ -8962,4 +8962,4 @@ textarea.form-control.input-validation-error { color: var(--bs-white); background-color: var(--bs-gray-900); border-color: var(--bs-gray-900); -} +} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css.map b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css.map new file mode 100644 index 00000000000..2ef67a71781 --- /dev/null +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":null,"mappings":"AAuEA,6BAIA,6BAIA,6BAIA,sBACE,6BAKA,6BAKA,8BAIF,sBACE,6BAKA,6BAKA,8BAIF,sBACE,6BAKA,6BAKA,8BAIF,uBACE,6BAKA,6BAKA,8BAIF,uBACE,8BAKA,8BAKA,+BAIF,iBAIA,uBAIA,kCAIA,8GA+CA,2DAKA,8DAIA,mJAKA,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,yFASA,yEAMA,wDAQA,mEAMA,0DAQA,kEAKA,uEAWA,4EAQA,2FAMA,mGAKA,0EAMA,oDAIA,sDAOA,+DAOA,qGAOA,2FAKA,uEAMA,iDAIA,mDAIA,wMAYA,gHAOA,8GAOA,4HAOA,8HAOA,mEAMA,gCAsCA,6BAIA,mGAsCA,seAcA,+DAKA,kMAMA,uCACE,qCAIF,mDAGA,2QAQA,uDAGA,oCAIA,yBACE,yDAGA,yHAIA,6FAIF,0BAIA,wOAQA,sIAMA,2JAKA,gMAKA,8IAKA,0DAIA,kIAMA,gOAQA,uCAIA,uoBAqBA,wDAIA,uEAIA,qCAIA,4GAKA,iiBAOA,yLAKA,8JAKA,qFAIA,4iBAOA,kJAKA,uEAIA,0FAIA,+FAIA,sGAIA,8FAIA,2MAMA,mGAKA,qHAIA,mEAIA,kHAIA,wJAMA,mEAOA,2EAKA,+DAIA,8PAcA,0EAIA,mCAIA,qCAIA,4EAIA,uCAIA,4GAKA,+EAMA,qFAMA,mJAOA,oMAMA,gMAIA,4GAUA,29BA8BA,0FAIA,+FAIA,+UAMA,+FAGA,0DAGA,yDAGA,6GAGA,sEAGA,uJAIA,0HAKA,0GAKA,6LAMA,6SAKA,ySAGA","sources":[""],"sourcesContent":["@charset \"UTF-8\";\n/* Import variables first */\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\n/* Import the files from main folder before importing any component */\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\n.w-xs-25 {\n width: 25% !important;\n}\n\n.w-xs-50 {\n width: 50% !important;\n}\n\n.w-xs-75 {\n width: 75% !important;\n}\n\n@media (min-width: 576px) {\n .w-sm-25 {\n width: 25% !important;\n }\n}\n@media (min-width: 576px) {\n .w-sm-50 {\n width: 50% !important;\n }\n}\n@media (min-width: 576px) {\n .w-sm-75 {\n width: 75% !important;\n }\n}\n@media (min-width: 768px) {\n .w-md-25 {\n width: 25% !important;\n }\n}\n@media (min-width: 768px) {\n .w-md-50 {\n width: 50% !important;\n }\n}\n@media (min-width: 768px) {\n .w-md-75 {\n width: 75% !important;\n }\n}\n@media (min-width: 992px) {\n .w-lg-25 {\n width: 25% !important;\n }\n}\n@media (min-width: 992px) {\n .w-lg-50 {\n width: 50% !important;\n }\n}\n@media (min-width: 992px) {\n .w-lg-75 {\n width: 75% !important;\n }\n}\n@media (min-width: 1200px) {\n .w-xl-25 {\n width: 25% !important;\n }\n}\n@media (min-width: 1200px) {\n .w-xl-50 {\n width: 50% !important;\n }\n}\n@media (min-width: 1200px) {\n .w-xl-75 {\n width: 75% !important;\n }\n}\n@media (min-width: 1400px) {\n .w-xxl-25 {\n width: 25% !important;\n }\n}\n@media (min-width: 1400px) {\n .w-xxl-50 {\n width: 50% !important;\n }\n}\n@media (min-width: 1400px) {\n .w-xxl-75 {\n width: 75% !important;\n }\n}\n.unset {\n all: unset;\n}\n\na {\n text-decoration: none;\n}\n\na:hover {\n text-decoration: underline;\n}\n\n.btn:hover, .button:hover {\n text-decoration: none;\n}\n\n.btn-link:focus-visible {\n text-decoration: none;\n}\n\n.navbar-brand:hover, .navbar-brand:focus {\n text-decoration: none;\n}\n\n/* Import the components files */\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\n.action-bar {\n top: 3.3rem;\n z-index: var(--oc-action-bar-zindex);\n}\n\n.second-action-bar {\n z-index: var(--oc-second-action-bar-zindex);\n}\n\n.ta-badge {\n border-radius: var(--bs-border-radius-pill) !important;\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;\n}\n\n@keyframes bs-notify-fadeOut {\n 0% {\n opacity: 0.9;\n }\n 100% {\n opacity: 0;\n }\n}\nselect.bs-select-hidden,\n.bootstrap-select > select.bs-select-hidden,\nselect.selectpicker {\n display: none !important;\n}\n\n.bootstrap-select {\n width: 220px;\n vertical-align: middle;\n}\n.bootstrap-select > .dropdown-toggle {\n position: relative;\n width: 100%;\n text-align: right;\n white-space: nowrap;\n display: inline-flex;\n align-items: center;\n justify-content: space-between;\n}\n.bootstrap-select > .dropdown-toggle:after {\n margin-top: -1px;\n}\n.bootstrap-select > .dropdown-toggle.bs-placeholder, .bootstrap-select > .dropdown-toggle.bs-placeholder:hover, .bootstrap-select > .dropdown-toggle.bs-placeholder:focus, .bootstrap-select > .dropdown-toggle.bs-placeholder:active {\n color: #999;\n}\n.bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary, .bootstrap-select > .dropdown-toggle.bs-placeholder.button, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:hover, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:focus, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-primary:active, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:hover, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:focus, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-secondary:active, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:hover, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:focus, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-success:active, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:hover, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:focus, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-danger:active, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:hover, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:focus, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-info:active, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:hover, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:focus, .bootstrap-select > .dropdown-toggle.bs-placeholder.btn-dark:active {\n color: rgba(255, 255, 255, 0.5);\n}\n.bootstrap-select > select {\n position: absolute !important;\n bottom: 0;\n left: 50%;\n display: block !important;\n width: 0.5px !important;\n height: 100% !important;\n padding: 0 !important;\n opacity: 0 !important;\n border: none;\n z-index: 0 !important;\n}\n.bootstrap-select > select.mobile-device {\n top: 0;\n left: 0;\n display: block !important;\n width: 100% !important;\n z-index: 2 !important;\n}\n.has-error .bootstrap-select .dropdown-toggle, .error .bootstrap-select .dropdown-toggle, .bootstrap-select.is-invalid .dropdown-toggle, .was-validated .bootstrap-select select:invalid + .dropdown-toggle {\n border-color: rgb(185, 74, 72);\n}\n.bootstrap-select.is-valid .dropdown-toggle, .was-validated .bootstrap-select select:valid + .dropdown-toggle {\n border-color: #28a745;\n}\n.bootstrap-select.fit-width {\n width: auto !important;\n}\n.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {\n width: 220px;\n}\n.bootstrap-select > select.mobile-device:focus + .dropdown-toggle,\n.bootstrap-select .dropdown-toggle:focus {\n outline: thin dotted #333333 !important;\n outline: 5px auto -webkit-focus-ring-color !important;\n outline-offset: -2px;\n}\n\n.bootstrap-select.form-control {\n margin-bottom: 0;\n padding: 0;\n border: none;\n height: auto;\n}\n:not(.input-group) > .bootstrap-select.form-control:not([class*=col-]) {\n width: 100%;\n}\n.bootstrap-select.form-control.input-group-btn {\n float: none;\n z-index: auto;\n}\n.form-inline .bootstrap-select, .form-inline .bootstrap-select.form-control:not([class*=col-]) {\n width: auto;\n}\n.bootstrap-select:not(.input-group-btn), .bootstrap-select[class*=col-] {\n float: none;\n display: inline-block;\n margin-left: 0;\n}\n.bootstrap-select.dropdown-menu-right, .bootstrap-select[class*=col-].dropdown-menu-right, .row .bootstrap-select[class*=col-].dropdown-menu-right {\n float: right;\n}\n.form-inline .bootstrap-select, .form-horizontal .bootstrap-select, .form-group .bootstrap-select {\n margin-bottom: 0;\n}\n.form-group-lg .bootstrap-select.form-control, .form-group-sm .bootstrap-select.form-control {\n padding: 0;\n}\n.form-group-lg .bootstrap-select.form-control .dropdown-toggle, .form-group-sm .bootstrap-select.form-control .dropdown-toggle {\n height: 100%;\n font-size: inherit;\n line-height: inherit;\n border-radius: inherit;\n}\n.bootstrap-select.form-control-sm .dropdown-toggle, .bootstrap-select.form-control-lg .dropdown-toggle {\n font-size: inherit;\n line-height: inherit;\n border-radius: inherit;\n}\n.bootstrap-select.form-control-sm .dropdown-toggle {\n padding: 0.25rem 0.5rem;\n}\n.bootstrap-select.form-control-lg .dropdown-toggle {\n padding: 0.5rem 1rem;\n}\n.form-inline .bootstrap-select .form-control {\n width: 100%;\n}\n.bootstrap-select.disabled,\n.bootstrap-select > .disabled {\n cursor: not-allowed;\n}\n.bootstrap-select.disabled:focus,\n.bootstrap-select > .disabled:focus {\n outline: none !important;\n}\n.bootstrap-select.bs-container {\n position: absolute;\n top: 0;\n left: 0;\n height: 0 !important;\n padding: 0 !important;\n}\n.bootstrap-select.bs-container .dropdown-menu {\n z-index: 1060;\n}\n.bootstrap-select .dropdown-toggle .filter-option {\n position: static;\n top: 0;\n left: 0;\n float: left;\n height: 100%;\n width: 100%;\n text-align: left;\n overflow: hidden;\n flex: 0 1 auto;\n}\n.bs3.bootstrap-select .dropdown-toggle .filter-option {\n padding-right: inherit;\n}\n\n.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option {\n position: absolute;\n padding-top: inherit;\n padding-bottom: inherit;\n padding-left: inherit;\n float: none;\n}\n.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner {\n padding-right: inherit;\n}\n\n.bootstrap-select .dropdown-toggle .filter-option-inner-inner {\n overflow: hidden;\n}\n.bootstrap-select .dropdown-toggle .filter-expand {\n width: 0 !important;\n float: left;\n opacity: 0 !important;\n overflow: hidden;\n}\n.bootstrap-select .dropdown-toggle .caret {\n position: absolute;\n top: 50%;\n right: 12px;\n margin-top: -2px;\n vertical-align: middle;\n}\n.bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n position: relative;\n display: block;\n margin-right: 5px;\n text-align: center;\n}\n.bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected {\n padding-right: inherit;\n}\n\n.bootstrap-select .dropdown-toggle .bs-select-clear-selected span {\n position: relative;\n top: calc((-0.6666666667em + 1ex) / 2);\n pointer-events: none;\n}\n.bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected span {\n top: auto;\n}\n\n.bootstrap-select .dropdown-toggle.bs-placeholder .bs-select-clear-selected {\n display: none;\n}\n.input-group .bootstrap-select.form-control .dropdown-toggle {\n border-radius: inherit;\n}\n.bootstrap-select[class*=col-] .dropdown-toggle {\n width: 100%;\n}\n.bootstrap-select .dropdown-menu {\n min-width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bootstrap-select .dropdown-menu > .inner:focus {\n outline: none !important;\n}\n.bootstrap-select .dropdown-menu.inner {\n position: static;\n float: none;\n border: 0;\n padding: 0;\n margin: 0;\n border-radius: 0;\n box-shadow: none;\n}\n.bootstrap-select .dropdown-menu li {\n position: relative;\n}\n.bootstrap-select .dropdown-menu li.active small {\n color: rgba(255, 255, 255, 0.5) !important;\n}\n.bootstrap-select .dropdown-menu li.disabled a {\n cursor: not-allowed;\n}\n.bootstrap-select .dropdown-menu li a {\n cursor: pointer;\n user-select: none;\n}\n.bootstrap-select .dropdown-menu li a.opt {\n position: relative;\n padding-left: 2.25em;\n}\n.bootstrap-select .dropdown-menu li a span.check-mark {\n display: none;\n}\n.bootstrap-select .dropdown-menu li a span.text {\n display: inline-block;\n}\n.bootstrap-select .dropdown-menu li small {\n padding-left: 0.5em;\n}\n.bootstrap-select .dropdown-menu .notify {\n position: absolute;\n bottom: 5px;\n width: 96%;\n margin: 0 2%;\n min-height: 26px;\n padding: 3px 5px;\n background: rgb(245, 245, 245);\n border: 1px solid rgb(227, 227, 227);\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);\n pointer-events: none;\n opacity: 0.9;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bootstrap-select .dropdown-menu .notify.fadeOut {\n animation: 300ms linear 750ms forwards bs-notify-fadeOut;\n}\n.bootstrap-select .no-results {\n padding: 3px;\n background: #f5f5f5;\n margin: 0 5px;\n white-space: nowrap;\n}\n.bootstrap-select.fit-width .dropdown-toggle .filter-option {\n position: static;\n display: inline;\n padding: 0;\n}\n.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,\n.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner {\n display: inline;\n}\n.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before {\n content: \" \";\n}\n.bootstrap-select.fit-width .dropdown-toggle .caret {\n position: static;\n top: auto;\n margin-top: -1px;\n}\n.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {\n position: absolute;\n display: inline-block;\n right: 15px;\n top: 5px;\n}\n.bootstrap-select.show-tick .dropdown-menu li a span.text {\n margin-right: 34px;\n}\n.bootstrap-select .bs-ok-default:after {\n content: \"\";\n display: block;\n width: 0.5em;\n height: 1em;\n border-style: solid;\n border-width: 0 0.26em 0.26em 0;\n transform-style: preserve-3d;\n transform: rotate(45deg);\n}\n\n.bootstrap-select.show-menu-arrow.open > .dropdown-toggle, .bootstrap-select.show-menu-arrow.show > .dropdown-toggle {\n z-index: 1061;\n}\n.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before {\n content: \"\";\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid rgba(204, 204, 204, 0.2);\n position: absolute;\n bottom: -4px;\n left: 9px;\n display: none;\n}\n.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after {\n content: \"\";\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid white;\n position: absolute;\n bottom: -4px;\n left: 10px;\n display: none;\n}\n.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before {\n bottom: auto;\n top: -4px;\n border-top: 7px solid rgba(204, 204, 204, 0.2);\n border-bottom: 0;\n}\n.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after {\n bottom: auto;\n top: -4px;\n border-top: 6px solid white;\n border-bottom: 0;\n}\n.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before {\n right: 12px;\n left: auto;\n}\n.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after {\n right: 13px;\n left: auto;\n}\n.bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:before, .bootstrap-select.show-menu-arrow.open > .dropdown-toggle .filter-option:after, .bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:before, .bootstrap-select.show-menu-arrow.show > .dropdown-toggle .filter-option:after {\n display: block;\n}\n\n.bs-searchbox,\n.bs-actionsbox,\n.bs-donebutton {\n padding: 4px 8px;\n}\n\n.bs-actionsbox {\n width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bs-actionsbox .btn-group {\n display: block;\n}\n.bs-actionsbox .btn-group button {\n width: 50%;\n}\n\n.bs-donebutton {\n float: left;\n width: 100%;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n.bs-donebutton .btn-group {\n display: block;\n}\n.bs-donebutton .btn-group button {\n width: 100%;\n}\n\n.bs-searchbox + .bs-actionsbox {\n padding: 0 8px 4px;\n}\n.bs-searchbox .form-control {\n margin-bottom: 0;\n width: 100%;\n float: none;\n}\n\n.multiselect__content-wrapper ul {\n padding-left: unset;\n}\n\nhtml[dir=rtl] .bootstrap-select .bs-ok-default:after {\n border-width: 0 0.26em 0.26em 0 !important;\n transform: rotate(45deg) !important;\n}\n\n.bootstrap-select .popover-header {\n padding: 0.5rem 1rem;\n margin-bottom: 0;\n border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;\n}\n\n.bootstrap-select .popover-header .close {\n border: 0;\n background: none;\n box-shadow: none;\n border-radius: 0;\n float: right !important;\n padding-top: 0px;\n padding-right: 0px;\n background: unset;\n}\n\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\n:root {\n --oc-mde-zindex: var(--oc-editor-fullscreen) !important;\n}\n\n.CodeMirror {\n height: auto;\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n background-color: var(--bs-body-bg);\n color: var(--bs-body-color);\n}\n\n.CodeMirror-gutters {\n background-color: var(--bs-secondary-bg);\n color: var(--bs-secondary-color);\n}\n\n.CodeMirror-fullscreen {\n background: var(--bs-body-bg);\n color: var(--bs-body-color);\n position: fixed !important;\n top: var(--oc-top-nav-height) !important;\n left: 0;\n right: 0;\n bottom: 0;\n height: auto;\n z-index: var(--bs-modal-zindex);\n border-right: none !important;\n border-bottom-right-radius: 0 !important;\n}\n\n.CodeMirror pre {\n padding-left: 7px;\n line-height: 1.25;\n margin-bottom: 0;\n overflow: unset;\n}\n\n.CodeMirror-activeline-background {\n background: transparent !important;\n}\n\n.CodeMirror-focused .CodeMirror-activeline-background {\n background: rgba(var(--bs-secondary-bg-rgb), 0.1) !important;\n}\n\n.dropdown-menu.scrollable {\n overflow-y: auto;\n max-height: var(--oc-height-dropdown);\n scrollbar-width: thin;\n}\n\n.btn-dropdown ::-webkit-scrollbar {\n width: 4px;\n}\n.btn-dropdown .dropdown-menu {\n max-height: var(--oc-height-dropdown);\n overflow: hidden auto;\n scrollbar-width: thin;\n}\n\n.dropdown-item:hover, .dropdown-item:focus {\n text-decoration: none;\n}\n\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\n.hint {\n font-size: 0.875em;\n color: var(--bs-secondary) !important;\n overflow-wrap: break-word;\n word-wrap: break-word;\n -ms-word-break: break-all;\n word-break: break-all;\n word-break: break-word;\n -ms-hyphens: auto;\n -moz-hyphens: auto;\n -webkit-hyphens: auto;\n hyphens: auto;\n}\n\n.hint.dashed::before,\n.text-muted.dashed::before {\n content: \"— \";\n}\n\n.code,\n.form-control.code {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;\n font-size: 0.875em;\n padding: 0.1875rem 0.375rem;\n border-radius: 0.375rem;\n}\n\n.form-label {\n margin-bottom: 0.25rem;\n}\n\n.label-link {\n float: right;\n font-size: 12px;\n}\n\n.form-control:disabled, .form-control[readonly] {\n background-color: var(--bs-secondary-bg);\n opacity: 1;\n}\n\nlabel .field-validation-error::before {\n content: \"- \";\n}\n\nlabel.input-required:after {\n color: var(--bs-danger-text-emphasis);\n content: \" *\";\n}\n\ninput[type=password]::-ms-reveal,\ninput[type=password]::-ms-clear {\n display: none;\n}\n\n.has-filter .form-control,\n.has-search .form-control {\n padding-left: 2rem;\n color: var(--bs-body-color);\n}\n\n.has-filter .form-control-feedback,\n.has-search .form-control-feedback {\n position: absolute;\n left: 1.75rem;\n z-index: 10;\n display: block;\n width: 1rem;\n height: 2rem;\n line-height: 1rem;\n text-align: center;\n pointer-events: none;\n color: var(--bs-secondary);\n}\n\n.has-filter .form-control-feedback {\n left: 4.25rem;\n top: 0.25rem;\n}\n\n.has-search .form-control-feedback {\n left: 1.75rem;\n}\n\n.has-search:not(.input-group) .form-control-feedback,\n.has-filter:not(.input-group) .form-control-feedback {\n left: 1.75rem;\n top: 1.25rem;\n}\n\n.has-filter .btn:not(.show), .has-filter .button:not(.show) {\n border-color: var(--bs-border-color) !important;\n}\n\n.ta-col-grouping.col-xs .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-1 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-2 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-3 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-4 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-5 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xs-6 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-1 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-2 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-3 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-4 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-5 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-sm-6 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-1 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-2 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-3 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-4 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-5 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-md-6 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-1 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-2 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-3 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-4 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-5 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-lg-6 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-1 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-2 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-3 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-4 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-5 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xl-6 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-1 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-2 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-3 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-4 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-5 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xs {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xs-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xs-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xs-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xs-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xs-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xs-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-sm {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-sm-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-sm-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-sm-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-sm-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-sm-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-sm-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-md {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-md-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-md-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-md-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-md-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-md-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-md-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-lg {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-lg-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-lg-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-lg-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-lg-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-lg-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-lg-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xxl {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xxl-1 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xxl-2 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xxl-3 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xxl-4 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xxl-5 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n.ta-col-grouping.col-xxl-6 .col-xxl-6 {\n flex: 0 0 100%;\n max-width: 100%;\n}\n\n.iconpicker-popover.popover {\n background: transparent !important;\n}\n\n.iconpicker-popover.popover .popover-title {\n border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;\n background-color: var(--bs-body-bg) !important;\n}\n\n.iconpicker .iconpicker-items {\n background-color: var(--bs-body-bg) !important;\n}\n\n.iconpicker .iconpicker-item {\n color: var(--bs-body-color) !important;\n box-shadow: 0 0 0 1px var(--bs-border-color);\n}\n\n.iconpicker .iconpicker-item:hover {\n background-color: var(--bs-tertiary-color) !important;\n}\n\n.with-checkbox .list-group-item {\n padding: 0.75rem 0.5rem;\n}\n\n.EasyMDEContainer blockquote:not(.blockquote) {\n background: var(--bs-secondary-bg-subtle);\n border-left: 0.4rem solid var(--bs-secondary-border-subtle) !important;\n margin: 1.5em 10px;\n padding: 1em 10px 0.1em;\n quotes: \"“\" \"”\" \"‘\" \"’\";\n}\n\n.EasyMDEContainer blockquote:not(.blockquote) > p {\n color: var(--bs-secondary-text-emphasis);\n}\n\n.monaco-editor {\n --vscode-foreground: var(--bs-body-color) !important;\n --vscode-editor-background: var(--bs-body-bg) !important;\n --vscode-editor-foreground: var(--bs-body-color) !important;\n --vscode-editorStickyScroll-background: var(--bs-body-bg) !important;\n --vscode-editorLink-activeForeground: var(--bs-secondary) !important;\n --vscode-breadcrumb-background: var(--bs-body-bg) !important;\n --vscode-editorGutter-background: var(--bs-body-bg) !important;\n --vscode-editorMarkerNavigation-background: var(--bs-body-bg) !important;\n --vscode-editorSuggestWidget-foreground: var(--bs-body-color) !important;\n --vscode-minimapSlider-background: rgba(var(--bs-body-bg-rbg), 0.2);\n --vscode-minimapSlider-hoverBackground: rgba(var(--bs-body-bg-rbg), 0.35);\n --vscode-minimapSlider-activeBackground: rgba(var(--bs-body-bg-rbg), 0.2);\n --vscode-scrollbarSlider-background: var(--oc-scrollbar-color) !important;\n --vscode-scrollbarSlider-hoverBackground: var(--oc-admin-menu-bg-color) !important;\n --vscode-scrollbarSlider-activeBackground: var(--oc-admin-menu-bg-color) !important;\n --vscode-dropdown-background: var(--bs-body-bg) !important;\n --vscode-dropdown-foreground: var(--bs-body-color) !important;\n --vscode-dropdown-border: var(--bs-border-color-translucent);\n}\n\ndiv.editor-widget.find-widget .button.codicon {\n background-color: transparent;\n border-color: transparent;\n display: flex;\n color: var(--bs-secondary-color);\n box-shadow: none;\n}\ndiv.editor-widget.find-widget .button.codicon:focus {\n background-color: transparent;\n border-color: transparent;\n}\ndiv.editor-widget.find-widget .button.codicon:active {\n background-color: transparent;\n border-color: transparent;\n}\n\n.ta-navbar-top {\n border-bottom: var(--oc-border-content);\n z-index: var(--oc-top-nav-zindex);\n height: var(--oc-top-nav-height);\n box-shadow: 0 0.46875rem 2.1875rem rgba(4, 9, 20, 0.03), 0 0.9375rem 1.40625rem rgba(4, 9, 20, 0.03), 0 0.25rem 0.53125rem rgba(4, 9, 20, 0.05), 0 0.125rem 0.1875rem rgba(4, 9, 20, 0.03);\n padding-top: 0;\n padding-bottom: 0;\n}\n.ta-navbar-top h1 {\n font-size: 24px;\n font-weight: bold;\n margin-bottom: 0;\n}\n.ta-navbar-top .brand-wrapper-title {\n display: none;\n}\n.ta-navbar-top .breadcrumb {\n background-color: transparent;\n margin-top: 1rem;\n}\n@media (min-width: 576px) {\n .ta-navbar-top .brand-wrapper-title {\n display: block;\n position: absolute;\n left: calc(var(--oc-start-navigation-width) + 10px);\n }\n}\n@media (max-width: 575.98px) {\n .ta-navbar-top .navbar-collapse li:first-child .nav-link {\n padding-top: 15px;\n }\n .ta-navbar-top .navbar-collapse li:last-child .nav-link {\n padding-bottom: 0px;\n }\n}\n\n.left-sidebar-compact .ta-navbar-top .brand-wrapper-title {\n left: calc(var(--oc-start-navigation-width-when-compact) + 15px);\n}\n\n.brand-wrapper-title > h1 {\n margin-bottom: 0;\n}\n\n.ta-navbar-brand {\n white-space: nowrap;\n transition: width 0.2s ease-in-out;\n color: var(--bs-navbar-brand-color);\n}\n.ta-navbar-brand span {\n font-size: 14px;\n font-weight: bold;\n}\n\n.ta-navbar-brand img {\n height: 32px;\n}\n\n.left-sidebar-compact .ta-navbar-brand span {\n display: none;\n}\n\n.user-top-navbar {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.user-top-navbar .nav-item .nav-link {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n\n/* Functional styling;\n * These styles are required for noUiSlider to function.\n * You don't need to change these rules to apply your design.\n */\n.noUi-target,\n.noUi-target * {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -ms-touch-action: none;\n touch-action: none;\n -ms-user-select: none;\n -moz-user-select: none;\n user-select: none;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.noUi-target {\n position: relative;\n}\n\n.noUi-base,\n.noUi-connects {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 1;\n}\n\n/* Wrapper for all connect elements.\n */\n.noUi-connects {\n overflow: hidden;\n z-index: 0;\n}\n\n.noUi-connect,\n.noUi-origin {\n will-change: transform;\n position: absolute;\n z-index: 1;\n top: 0;\n right: 0;\n height: 100%;\n width: 100%;\n -ms-transform-origin: 0 0;\n -webkit-transform-origin: 0 0;\n -webkit-transform-style: preserve-3d;\n transform-origin: 0 0;\n transform-style: flat;\n}\n\n/* Offset direction\n */\n/*! rtl:ignore */\n.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {\n left: 0;\n right: auto;\n}\n\n/* Give origins 0 height/width so they don't interfere with clicking the\n * connect elements.\n */\n.noUi-vertical .noUi-origin {\n top: -100%;\n width: 0;\n}\n\n.noUi-horizontal .noUi-origin {\n height: 0;\n}\n\n.noUi-handle {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n position: absolute;\n}\n\n.noUi-touch-area {\n height: 100%;\n width: 100%;\n}\n\n.noUi-state-tap .noUi-connect,\n.noUi-state-tap .noUi-origin {\n -webkit-transition: transform 0.3s;\n transition: transform 0.3s;\n}\n\n.noUi-state-drag * {\n cursor: inherit !important;\n}\n\n/* Slider size and handle placement;\n */\n.noUi-horizontal {\n height: 18px;\n}\n\n.noUi-horizontal .noUi-handle {\n width: 34px;\n height: 28px;\n right: -17px;\n top: -6px;\n}\n\n.noUi-vertical {\n width: 18px;\n}\n\n.noUi-vertical .noUi-handle {\n width: 28px;\n height: 34px;\n right: -6px;\n bottom: -17px;\n}\n\n/*! rtl:ignore */\n.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {\n left: -17px;\n right: auto;\n}\n\n/* Styling;\n * Giving the connect element a border radius causes issues with using transform: scale\n */\n.noUi-target {\n background-color: var(--bs-body-bg);\n color: var(--bs-body-color);\n border-radius: var(--bs-border-radius);\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n box-shadow: inset 0 1px 1px rgba(var(--bs-border-color), 0.1), 0 3px 6px -5px rgba(var(--bs-border-color), 0.2);\n}\n\n.noUi-connects {\n border-radius: var(--bs-border-radius);\n}\n\n.noUi-connect {\n background-color: var(--bs-body-bg);\n}\n\n/* Handles and cursors;\n */\n.noUi-draggable {\n cursor: ew-resize;\n}\n\n.noUi-vertical .noUi-draggable {\n cursor: ns-resize;\n}\n\n.noUi-handle {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n border-radius: var(--bs-border-radius);\n background-color: var(--bs-body-bg);\n cursor: default;\n box-shadow: inset 0 1px 1px rgba(var(--bs-border-color), 0.1), 0 3px 6px -5px rgba(var(--bs-border-color), 0.2);\n}\n\n.noUi-active {\n box-shadow: inset 0 1px 1px rgba(var(--bs-border-color), 0.1), 0 3px 6px -5px rgba(var(--bs-border-color), 0.2);\n}\n\n/* Handle stripes;\n */\n.noUi-handle:before,\n.noUi-handle:after {\n content: \"\";\n display: block;\n position: absolute;\n height: 14px;\n width: 1px;\n background-color: var(--bs-body-bg);\n left: 14px;\n top: 6px;\n}\n\n.noUi-handle:after {\n left: 17px;\n}\n\n.noUi-vertical .noUi-handle:before,\n.noUi-vertical .noUi-handle:after {\n width: 14px;\n height: 1px;\n left: 6px;\n top: 14px;\n}\n\n.noUi-vertical .noUi-handle:after {\n top: 17px;\n}\n\n/* Disabled state;\n */\n[disabled] .noUi-connect {\n background-color: var(--bs-body-bg);\n}\n\n[disabled].noUi-target,\n[disabled].noUi-handle,\n[disabled] .noUi-handle {\n cursor: not-allowed;\n}\n\n/* Base;\n *\n */\n.noUi-pips,\n.noUi-pips * {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n}\n\n.noUi-pips {\n position: absolute;\n color: var(--bs-body-color);\n}\n\n/* Values;\n *\n */\n.noUi-value {\n position: absolute;\n white-space: nowrap;\n text-align: center;\n}\n\n.noUi-value-sub {\n color: var(--bs-body-color);\n font-size: 10px;\n}\n\n/* Markings;\n *\n */\n.noUi-marker {\n position: absolute;\n background-color: var(--bs-body-bg);\n}\n\n.noUi-marker-sub {\n background-color: var(--bs-body-bg);\n}\n\n.noUi-marker-large {\n background-color: var(--bs-body-bg);\n}\n\n/* Horizontal layout;\n *\n */\n.noUi-pips-horizontal {\n padding: 10px 0;\n height: 80px;\n top: 100%;\n left: 0;\n width: 100%;\n}\n\n.noUi-value-horizontal {\n -webkit-transform: translate(-50%, 50%);\n transform: translate(-50%, 50%);\n}\n\n/*! rtl:ignore */\n.noUi-rtl .noUi-value-horizontal {\n -webkit-transform: translate(50%, 50%);\n transform: translate(50%, 50%);\n}\n\n.noUi-marker-horizontal.noUi-marker {\n margin-left: -1px;\n width: 2px;\n height: 5px;\n}\n\n.noUi-marker-horizontal.noUi-marker-sub {\n height: 10px;\n}\n\n.noUi-marker-horizontal.noUi-marker-large {\n height: 15px;\n}\n\n/* Vertical layout;\n *\n */\n.noUi-pips-vertical {\n padding: 0 10px;\n height: 100%;\n top: 0;\n left: 100%;\n}\n\n.noUi-value-vertical {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n padding-left: 25px;\n}\n\n/*! rtl:ignore */\n.noUi-rtl .noUi-value-vertical {\n -webkit-transform: translate(0, 50%);\n transform: translate(0, 50%);\n}\n\n.noUi-marker-vertical.noUi-marker {\n width: 5px;\n height: 2px;\n margin-top: -1px;\n}\n\n.noUi-marker-vertical.noUi-marker-sub {\n width: 10px;\n}\n\n.noUi-marker-vertical.noUi-marker-large {\n width: 15px;\n}\n\n.noUi-tooltip {\n display: block;\n position: absolute;\n border: 1px solid #D9D9D9;\n border-radius: 3px;\n background-color: var(--bs-body-bg);\n color: var(--bs-body-color);\n padding: 5px;\n text-align: center;\n white-space: nowrap;\n}\n\n.noUi-horizontal .noUi-tooltip {\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n left: 50%;\n bottom: 120%;\n}\n\n.noUi-vertical .noUi-tooltip {\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n top: 50%;\n right: 120%;\n}\n\n.noUi-horizontal .noUi-origin > .noUi-tooltip {\n -webkit-transform: translate(50%, 0);\n transform: translate(50%, 0);\n left: auto;\n bottom: 10px;\n}\n\n.noUi-vertical .noUi-origin > .noUi-tooltip {\n -webkit-transform: translate(0, -18px);\n transform: translate(0, -18px);\n top: auto;\n right: 28px;\n}\n\nul.pager {\n margin-top: 1rem;\n margin-bottom: 1rem;\n justify-content: center;\n}\n\n.g-recaptcha {\n margin-bottom: 1rem;\n}\n\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\n.ui-sortable {\n min-height: 1rem;\n}\n\nul.ui-sortable:not(:has(> li)) {\n border: var(--bs-border-width) dashed var(--bs-border-color) !important;\n}\n\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\n.tab-pane {\n border-left: var(--bs-border-width) solid var(--bs-border-color);\n border-right: var(--bs-border-width) solid var(--bs-border-color);\n border-bottom: var(--bs-border-width) solid var(--bs-border-color);\n border-top: var(--bs-border-width) solid var(--bs-border-color);\n border-bottom-left-radius: var(--bs-border-radius);\n border-bottom-right-radius: var(--bs-border-radius);\n border-top-right-radius: var(--bs-border-radius);\n margin-bottom: 1rem;\n padding-left: 1rem;\n padding-right: 1rem;\n padding-top: 1rem;\n}\n\n.nav-tabs {\n border-bottom: none;\n margin-top: 1px;\n margin-bottom: -1px;\n}\n.nav-tabs .nav-link {\n border: none;\n color: #fff;\n background-color: #6c757d;\n transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;\n}\n@media (prefers-reduced-motion: reduce) {\n .nav-tabs .nav-link {\n transition: none;\n }\n}\n.nav-tabs .nav-link:hover {\n background-color: rgb(90.2703862661, 97.7929184549, 104.4796137339);\n}\n.nav-tabs .nav-link.active {\n border-left: var(--bs-border-width) solid var(--bs-border-color);\n border-right: var(--bs-border-width) solid var(--bs-border-color);\n border-top: var(--bs-border-width) solid var(--bs-border-color);\n cursor: initial;\n color: #212529;\n background-color: #fff;\n}\n.nav-tabs .nav-link.active:hover {\n background-color: #fff;\n}\n.nav-tabs .nav-item {\n margin-bottom: 0px;\n}\n\n@media (max-width: 575.98px) {\n .nav-tabs .nav-item:not(.nav-link) {\n padding-bottom: 0.25rem;\n }\n .nav-tabs .nav-link {\n border-bottom-left-radius: var(--bs-border-radius);\n border-bottom-right-radius: var(--bs-border-radius);\n }\n .nav-tabs .nav-link.active {\n border-bottom: var(--bs-border-width) solid var(--bs-border-color);\n }\n}\n.trumbowyg {\n font-size: 16px;\n}\n\n[dir] .trumbowyg-box,\n[dir] .trumbowyg-dark .trumbowyg-box {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n border-radius: var(--bs-border-radius);\n background-color: var(--bs-body-bg);\n color: var(--bs-body-color);\n}\n\n[dir] .trumbowyg-editor-box,\n[dir] .trumbowyg-dark .trumbowyg-editor-box {\n background-color: var(--bs-body-bg);\n color: var(--bs-body-color);\n}\n\n[dir] .trumbowyg-button-pane,\n[dir] .trumbowyg-dark .trumbowyg-button-pane {\n border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n}\n\n[dir] .trumbowyg-button-pane .trumbowyg-button-group:not(:empty)::after,\n[dir] .trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty)::after {\n background: var(--bs-border-color);\n}\n\n[dir] .trumbowyg-dropdown,\n[dir] .trumbowyg-dark .trumbowyg-dropdown {\n border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);\n}\n\n.trumbowyg-fullscreen {\n z-index: var(--oc-editor-fullscreen);\n}\n\n[dir] .trumbowyg-textarea,\n[dir] .trumbowyg-dark .trumbowyg-textarea {\n background-color: var(--bs-body-bg);\n color: var(--bs-body-color);\n}\n\n[dir] .trumbowyg-box .trumbowyg-editor th,\n[dir] .trumbowyg-box .trumbowyg-editor td {\n border-width: var(--bs-border-width, 1px);\n border-style: var(--bs-border-style, solid);\n border-color: var(--bs-border-color, #dee2e6);\n padding: 0.5rem;\n}\n\nspan.field-validation-error {\n width: 100%;\n}\n\n.validation-summary-errors {\n --bs-alert-color: var(--bs-danger-text-emphasis);\n --bs-alert-bg: var(--bs-danger-bg-subtle);\n --bs-alert-border-color: var(--bs-danger-border-subtle);\n --bs-alert-link-color: var(--bs-danger-text-emphasis);\n --bs-alert-padding-x: 1rem;\n --bs-alert-padding-y: 1rem;\n --bs-alert-margin-bottom: 1rem;\n --bs-alert-border-color: transparent;\n --bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);\n --bs-alert-border-radius: var(--bs-border-radius);\n --bs-alert-link-color: inherit;\n position: relative;\n padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);\n margin-bottom: var(--bs-alert-margin-bottom);\n color: var(--bs-alert-color);\n background-color: var(--bs-alert-bg);\n border: var(--bs-alert-border);\n border-radius: var(--bs-alert-border-radius);\n}\n\n.validation-summary-errors ul {\n margin-bottom: 0 !important;\n}\n\n.field-validation-error {\n color: var(--bs-danger-text-emphasis) !important;\n}\n\n.field-validation-valid {\n display: none;\n}\n\n.input-validation-error {\n border-color: var(--bs-form-invalid-border-color);\n padding-right: calc(1.5em + 0.75rem);\n}\n\ninput:not([type=checkbox]):not([type=radio]).input-validation-error {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");\n background-repeat: no-repeat;\n background-position: right calc(0.375em + 0.1875rem) center;\n background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);\n}\n\n.input-validation-error:invalid:focus, .form-control.input-validation-error:focus {\n border-color: var(--bs-form-invalid-border-color);\n box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);\n}\n\ntextarea.form-control.input-validation-error {\n padding-right: calc(1.5em + 0.75rem);\n background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);\n}\n\n.form-select.input-validation-error {\n border-color: var(--bs-form-invalid-border-color);\n}\n\n.form-select.input-validation-error:not([multiple])[size=\"1\"] {\n --bs-form-select-bg-icon: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");\n padding-right: 4.125rem;\n background-position: right 0.75rem center, center right 2.25rem;\n background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);\n}\n\n.form-select.input-validation-error:focus {\n border-color: var(--bs-form-invalid-border-color);\n box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);\n}\n\n.form-control-color.input-validation-error {\n width: calc(3rem + 1.5em + 0.75rem);\n}\n\n.form-check-input.input-validation-error {\n border-color: var(--bs-form-invalid-border-color);\n}\n\n.form-check-input.input-validation-error:checked {\n background-color: var(--bs-form-invalid-color);\n}\n\n.form-check-input.input-validation-error:focus {\n box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);\n}\n\n.form-check-input.input-validation-error ~ .form-check-label {\n color: var(--bs-form-invalid-color);\n}\n\n.input-group > .form-control:not(:focus).input-validation-error,\n.input-group > .form-select:not(:focus).input-validation-error,\n.input-group > .form-floating:not(:focus-within).input-validation-error {\n z-index: 4;\n}\n\n.vue-multiselect {\n color: var(--bs-body-color) !important;\n background-color: var(--bs-body-bg) !important;\n}\n\n.multiselect__tags, .multiselect__content-wrapper {\n border: var(--bs-border-width) solid var(--bs-border-color) !important;\n}\n\n.multiselect__tags {\n border-radius: var(--bs-border-radius) !important;\n}\n\n.multiselect__tags, .multiselect__content-wrapper, .multiselect__input {\n background-color: var(--bs-body-bg) !important;\n}\n\n.multiselect--active {\n z-index: var(--oc-zindex-dropdown, 1000) !important;\n color: var(--bs-body-color) !important;\n background-color: var(--bs-body-bg) !important;\n}\n\n.multiselect__spinner {\n background-color: var(--bs-body-bg) !important;\n}\n\n/* Import themes */\n/* The light theme is also the default theme. */\n/* Do not wrap the these classes for the light theme specific. */\n.ta-badge {\n background-color: var(--bs-light);\n color: var(--bs-secondary-color);\n}\n\n.bootstrap-select .popover-header .close {\n color: var(--bs-black);\n}\n\n.bootstrap-select > .dropdown-toggle.bs-placeholder,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:active {\n color: var(--bs-white) !important;\n}\n\n.bootstrap-select > .dropdown-toggle.bs-placeholder,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:hover,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,\n.bootstrap-select > .dropdown-toggle.bs-placeholder:active {\n color: var(--bs-gray-900) !important;\n}\n\n.bootstrap-select .popover-header {\n background-color: var(--bs-secondary-bg);\n}\n\n.card {\n --bs-card-bg: var(--bs-white);\n}\n\n.modal {\n --bs-modal-bg: var(--bs-white);\n}\n\n.bg-theme {\n background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity, 1));\n}\n\n.text-theme {\n color: var(--bs-body-color);\n}\n\n.text-bg-theme {\n color: var(--bs-body-color);\n background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity, 1));\n}\n\n.btn-theme {\n color: var(--bs-black);\n background-color: #f8f9fa;\n border-color: #f8f9fa;\n}\n\n.btn-theme:hover {\n color: var(--bs-black);\n background-color: #f9fafb;\n border-color: #f9fafb;\n}\n\n.btn-check:focus + .btn-theme, .btn-theme:focus {\n color: var(--bs-black);\n background-color: #f9fafb;\n border-color: #f9fafb;\n box-shadow: 0 0 0 0.25rem rgba(211, 212, 213, 0.5);\n}\n\n.btn-check:checked + .btn-theme, .btn-check:active + .btn-theme, .btn-theme:active, .btn-theme.active, .show > .btn-theme.dropdown-toggle {\n color: var(--bs-black);\n background-color: #f9fafb;\n border-color: #f9fafb;\n}\n\n.btn-check:checked + .btn-theme:focus, .btn-check:active + .btn-theme:focus, .btn-theme:active:focus, .btn-theme.active:focus, .show > .btn-theme.dropdown-toggle:focus {\n box-shadow: 0 0 0 0.25rem rgba(211, 212, 213, 0.5);\n}\n\n.btn-theme:disabled, .btn-theme.disabled {\n color: var(--bs-black);\n background-color: #f8f9fa;\n border-color: #f8f9fa;\n}\n\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\n[data-bs-theme=dark] {\n --oc-scrollbar-color: #76787A;\n --oc-admin-menu-bg-color: var(--bs-dark);\n}\n[data-bs-theme=dark] .ta-badge {\n background-color: var(--bs-dark);\n color: var(--bs-secondary-color);\n}\n[data-bs-theme=dark] .bootstrap-select > .dropdown-toggle.bs-placeholder,\n[data-bs-theme=dark] .bootstrap-select > .dropdown-toggle.bs-placeholder:hover,\n[data-bs-theme=dark] .bootstrap-select > .dropdown-toggle.bs-placeholder:focus,\n[data-bs-theme=dark] .bootstrap-select > .dropdown-toggle.bs-placeholder:active {\n color: var(--bs-white) !important;\n}\n[data-bs-theme=dark] .bootstrap-select .popover-header {\n background-color: var(--bs-secondary-bg);\n}\n[data-bs-theme=dark] .card {\n --bs-card-bg: var(--bs-body-bg);\n}\n[data-bs-theme=dark] .modal {\n --bs-modal-bg: var(--bs-dark);\n}\n[data-bs-theme=dark] .bg-theme {\n background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity, 1)) !important;\n}\n[data-bs-theme=dark] .text-theme {\n color: var(--bs-body-color) !important;\n}\n[data-bs-theme=dark] .text-bg-theme {\n color: var(--bs-body-color) !important;\n background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity, 1)) !important;\n}\n[data-bs-theme=dark] .btn-theme {\n color: var(--bs-white);\n background-color: var(--bs-gray-900);\n border-color: var(--bs-gray-900);\n}\n[data-bs-theme=dark] .btn-theme:hover {\n color: var(--bs-white);\n background-color: #1c1f23;\n border-color: #1a1e21;\n}\n[data-bs-theme=dark] .btn-check:focus + .btn-theme, [data-bs-theme=dark] .btn-theme:focus {\n color: var(--bs-white);\n background-color: #1c1f23;\n border-color: #1a1e21;\n box-shadow: 0 0 0 0.25rem rgba(66, 70, 73, 0.5);\n}\n[data-bs-theme=dark] .btn-check:checked + .btn-theme, [data-bs-theme=dark] .btn-check:active + .btn-theme, [data-bs-theme=dark] .btn-theme:active, [data-bs-theme=dark] .btn-theme.active, [data-bs-theme=dark] .show > .btn-theme.dropdown-toggle {\n color: var(--bs-white);\n background-color: #1a1e21;\n border-color: #191c1f;\n}\n[data-bs-theme=dark] .btn-check:checked + .btn-theme:focus, [data-bs-theme=dark] .btn-check:active + .btn-theme:focus, [data-bs-theme=dark] .btn-theme:active:focus, [data-bs-theme=dark] .btn-theme.active:focus, [data-bs-theme=dark] .show > .btn-theme.dropdown-toggle:focus {\n box-shadow: 0 0 0 0.25rem rgba(66, 70, 73, 0.5);\n}\n[data-bs-theme=dark] .btn-theme:disabled, [data-bs-theme=dark] .btn-theme.disabled {\n color: var(--bs-white);\n background-color: var(--bs-gray-900);\n border-color: var(--bs-gray-900);\n}"],"names":[]} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.min.css b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.min.css index a0073feae91..6e3ad611424 100644 --- a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.min.css +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.min.css @@ -1 +1 @@ -@charset "UTF-8";:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}.w-xs-25{width:25%!important}.w-xs-50{width:50%!important}.w-xs-75{width:75%!important}@media (min-width:576px){.w-sm-25{width:25%!important}}@media (min-width:576px){.w-sm-50{width:50%!important}}@media (min-width:576px){.w-sm-75{width:75%!important}}@media (min-width:768px){.w-md-25{width:25%!important}}@media (min-width:768px){.w-md-50{width:50%!important}}@media (min-width:768px){.w-md-75{width:75%!important}}@media (min-width:992px){.w-lg-25{width:25%!important}}@media (min-width:992px){.w-lg-50{width:50%!important}}@media (min-width:992px){.w-lg-75{width:75%!important}}@media (min-width:1200px){.w-xl-25{width:25%!important}}@media (min-width:1200px){.w-xl-50{width:50%!important}}@media (min-width:1200px){.w-xl-75{width:75%!important}}@media (min-width:1400px){.w-xxl-25{width:25%!important}}@media (min-width:1400px){.w-xxl-50{width:50%!important}}@media (min-width:1400px){.w-xxl-75{width:75%!important}}.unset{all:unset}a{text-decoration:none}a:hover{text-decoration:underline}.btn:hover,.button:hover{text-decoration:none}.btn-link:focus-visible{text-decoration:none}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}.action-bar{top:3.3rem;z-index:var(--oc-action-bar-zindex)}.second-action-bar{z-index:var(--oc-second-action-bar-zindex)}.ta-badge{border-radius:var(--bs-border-radius-pill)!important;border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}@keyframes bs-notify-fadeOut{0%{opacity:.9}100%{opacity:0}}.bootstrap-select>select.bs-select-hidden,select.bs-select-hidden,select.selectpicker{display:none!important}.bootstrap-select{width:220px;vertical-align:middle}.bootstrap-select>.dropdown-toggle{position:relative;width:100%;text-align:right;white-space:nowrap;display:inline-flex;align-items:center;justify-content:space-between}.bootstrap-select>.dropdown-toggle:after{margin-top:-1px}.bootstrap-select>.dropdown-toggle.bs-placeholder,.bootstrap-select>.dropdown-toggle.bs-placeholder:active,.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder:hover{color:#999}.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.button{color:rgba(255,255,255,.5)}.bootstrap-select>select{position:absolute!important;bottom:0;left:50%;display:block!important;width:.5px!important;height:100%!important;padding:0!important;opacity:0!important;border:none;z-index:0!important}.bootstrap-select>select.mobile-device{top:0;left:0;display:block!important;width:100%!important;z-index:2!important}.bootstrap-select.is-invalid .dropdown-toggle,.error .bootstrap-select .dropdown-toggle,.has-error .bootstrap-select .dropdown-toggle,.was-validated .bootstrap-select select:invalid+.dropdown-toggle{border-color:#b94a48}.bootstrap-select.is-valid .dropdown-toggle,.was-validated .bootstrap-select select:valid+.dropdown-toggle{border-color:#28a745}.bootstrap-select.fit-width{width:auto!important}.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){width:220px}.bootstrap-select .dropdown-toggle:focus,.bootstrap-select>select.mobile-device:focus+.dropdown-toggle{outline:thin dotted #333!important;outline:5px auto -webkit-focus-ring-color!important;outline-offset:-2px}.bootstrap-select.form-control{margin-bottom:0;padding:0;border:none;height:auto}:not(.input-group)>.bootstrap-select.form-control:not([class*=col-]){width:100%}.bootstrap-select.form-control.input-group-btn{float:none;z-index:auto}.form-inline .bootstrap-select,.form-inline .bootstrap-select.form-control:not([class*=col-]){width:auto}.bootstrap-select:not(.input-group-btn),.bootstrap-select[class*=col-]{float:none;display:inline-block;margin-left:0}.bootstrap-select.dropdown-menu-right,.bootstrap-select[class*=col-].dropdown-menu-right,.row .bootstrap-select[class*=col-].dropdown-menu-right{float:right}.form-group .bootstrap-select,.form-horizontal .bootstrap-select,.form-inline .bootstrap-select{margin-bottom:0}.form-group-lg .bootstrap-select.form-control,.form-group-sm .bootstrap-select.form-control{padding:0}.form-group-lg .bootstrap-select.form-control .dropdown-toggle,.form-group-sm .bootstrap-select.form-control .dropdown-toggle{height:100%;font-size:inherit;line-height:inherit;border-radius:inherit}.bootstrap-select.form-control-lg .dropdown-toggle,.bootstrap-select.form-control-sm .dropdown-toggle{font-size:inherit;line-height:inherit;border-radius:inherit}.bootstrap-select.form-control-sm .dropdown-toggle{padding:.25rem .5rem}.bootstrap-select.form-control-lg .dropdown-toggle{padding:.5rem 1rem}.form-inline .bootstrap-select .form-control{width:100%}.bootstrap-select.disabled,.bootstrap-select>.disabled{cursor:not-allowed}.bootstrap-select.disabled:focus,.bootstrap-select>.disabled:focus{outline:0!important}.bootstrap-select.bs-container{position:absolute;top:0;left:0;height:0!important;padding:0!important}.bootstrap-select.bs-container .dropdown-menu{z-index:1060}.bootstrap-select .dropdown-toggle .filter-option{position:static;top:0;left:0;float:left;height:100%;width:100%;text-align:left;overflow:hidden;flex:0 1 auto}.bs3.bootstrap-select .dropdown-toggle .filter-option{padding-right:inherit}.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option{position:absolute;padding-top:inherit;padding-bottom:inherit;padding-left:inherit;float:none}.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner{padding-right:inherit}.bootstrap-select .dropdown-toggle .filter-option-inner-inner{overflow:hidden}.bootstrap-select .dropdown-toggle .filter-expand{width:0!important;float:left;opacity:0!important;overflow:hidden}.bootstrap-select .dropdown-toggle .caret{position:absolute;top:50%;right:12px;margin-top:-2px;vertical-align:middle}.bootstrap-select .dropdown-toggle .bs-select-clear-selected{position:relative;display:block;margin-right:5px;text-align:center}.bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected{padding-right:inherit}.bootstrap-select .dropdown-toggle .bs-select-clear-selected span{position:relative;top:calc((-.6666666667em + 1ex)/ 2);pointer-events:none}.bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected span{top:auto}.bootstrap-select .dropdown-toggle.bs-placeholder .bs-select-clear-selected{display:none}.input-group .bootstrap-select.form-control .dropdown-toggle{border-radius:inherit}.bootstrap-select[class*=col-] .dropdown-toggle{width:100%}.bootstrap-select .dropdown-menu{min-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select .dropdown-menu>.inner:focus{outline:0!important}.bootstrap-select .dropdown-menu.inner{position:static;float:none;border:0;padding:0;margin:0;border-radius:0;box-shadow:none}.bootstrap-select .dropdown-menu li{position:relative}.bootstrap-select .dropdown-menu li.active small{color:rgba(255,255,255,.5)!important}.bootstrap-select .dropdown-menu li.disabled a{cursor:not-allowed}.bootstrap-select .dropdown-menu li a{cursor:pointer;user-select:none}.bootstrap-select .dropdown-menu li a.opt{position:relative;padding-left:2.25em}.bootstrap-select .dropdown-menu li a span.check-mark{display:none}.bootstrap-select .dropdown-menu li a span.text{display:inline-block}.bootstrap-select .dropdown-menu li small{padding-left:.5em}.bootstrap-select .dropdown-menu .notify{position:absolute;bottom:5px;width:96%;margin:0 2%;min-height:26px;padding:3px 5px;background:#f5f5f5;border:1px solid #e3e3e3;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05);pointer-events:none;opacity:.9;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-select .dropdown-menu .notify.fadeOut{animation:.3s linear 750ms forwards bs-notify-fadeOut}.bootstrap-select .no-results{padding:3px;background:#f5f5f5;margin:0 5px;white-space:nowrap}.bootstrap-select.fit-width .dropdown-toggle .filter-option{position:static;display:inline;padding:0}.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner{display:inline}.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before{content:" "}.bootstrap-select.fit-width .dropdown-toggle .caret{position:static;top:auto;margin-top:-1px}.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark{position:absolute;display:inline-block;right:15px;top:5px}.bootstrap-select.show-tick .dropdown-menu li a span.text{margin-right:34px}.bootstrap-select .bs-ok-default:after{content:"";display:block;width:.5em;height:1em;border-style:solid;border-width:0 .26em .26em 0;transform-style:preserve-3d;transform:rotate(45deg)}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle{z-index:1061}.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before{content:"";border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(204,204,204,.2);position:absolute;bottom:-4px;left:9px;display:none}.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after{content:"";border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;bottom:-4px;left:10px;display:none}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before{bottom:auto;top:-4px;border-top:7px solid rgba(204,204,204,.2);border-bottom:0}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after{bottom:auto;top:-4px;border-top:6px solid #fff;border-bottom:0}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before{right:12px;left:auto}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after{right:13px;left:auto}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle .filter-option:after,.bootstrap-select.show-menu-arrow.open>.dropdown-toggle .filter-option:before,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle .filter-option:after,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle .filter-option:before{display:block}.bs-actionsbox,.bs-donebutton,.bs-searchbox{padding:4px 8px}.bs-actionsbox{width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-actionsbox .btn-group{display:block}.bs-actionsbox .btn-group button{width:50%}.bs-donebutton{float:left;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bs-donebutton .btn-group{display:block}.bs-donebutton .btn-group button{width:100%}.bs-searchbox+.bs-actionsbox{padding:0 8px 4px}.bs-searchbox .form-control{margin-bottom:0;width:100%;float:none}.multiselect__content-wrapper ul{padding-left:unset}html[dir=rtl] .bootstrap-select .bs-ok-default:after{border-width:0 .26em .26em 0!important;transform:rotate(45deg)!important}.bootstrap-select .popover-header{padding:.5rem 1rem;margin-bottom:0;border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.bootstrap-select .popover-header .close{border:0;background:0 0;box-shadow:none;border-radius:0;float:right!important;padding-top:0;padding-right:0;background:unset}:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}:root{--oc-mde-zindex:var(--oc-editor-fullscreen)!important}.CodeMirror{height:auto;border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);background-color:var(--bs-body-bg);color:var(--bs-body-color)}.CodeMirror-gutters{background-color:var(--bs-secondary-bg);color:var(--bs-secondary-color)}.CodeMirror-fullscreen{background:var(--bs-body-bg);color:var(--bs-body-color);position:fixed!important;top:var(--oc-top-nav-height)!important;left:0;right:0;bottom:0;height:auto;z-index:var(--bs-modal-zindex);border-right:none!important;border-bottom-right-radius:0!important}.CodeMirror pre{padding-left:7px;line-height:1.25;margin-bottom:0;overflow:unset}.CodeMirror-activeline-background{background:0 0!important}.CodeMirror-focused .CodeMirror-activeline-background{background:rgba(var(--bs-secondary-bg-rgb),.1)!important}.dropdown-menu.scrollable{overflow-y:auto;max-height:var(--oc-height-dropdown);scrollbar-width:thin}.btn-dropdown ::-webkit-scrollbar{width:4px}.btn-dropdown .dropdown-menu{max-height:var(--oc-height-dropdown);overflow:hidden auto;scrollbar-width:thin}.dropdown-item:focus,.dropdown-item:hover{text-decoration:none}:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}.hint{font-size:.875em;color:var(--bs-secondary)!important;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-ms-hyphens:auto;-moz-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.hint.dashed::before,.text-muted.dashed::before{content:"— "}.code,.form-control.code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:.875em;padding:.1875rem .375rem;border-radius:.375rem}.form-label{margin-bottom:.25rem}.label-link{float:right;font-size:12px}.form-control:disabled,.form-control[readonly]{background-color:var(--bs-secondary-bg);opacity:1}label .field-validation-error::before{content:"- "}label.input-required:after{color:var(--bs-danger-text-emphasis);content:" *"}input[type=password]::-ms-clear,input[type=password]::-ms-reveal{display:none}.has-filter .form-control,.has-search .form-control{padding-left:2rem;color:var(--bs-body-color)}.has-filter .form-control-feedback,.has-search .form-control-feedback{position:absolute;left:1.75rem;z-index:10;display:block;width:1rem;height:2rem;line-height:1rem;text-align:center;pointer-events:none;color:var(--bs-secondary)}.has-filter .form-control-feedback{left:4.25rem;top:.25rem}.has-search .form-control-feedback{left:1.75rem}.has-filter:not(.input-group) .form-control-feedback,.has-search:not(.input-group) .form-control-feedback{left:1.75rem;top:1.25rem}.has-filter .btn:not(.show),.has-filter .button:not(.show){border-color:var(--bs-border-color)!important}.ta-col-grouping.col-xs .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-1 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-2 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-3 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-4 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-5 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xs-6 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-1 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-2 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-3 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-4 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-5 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-sm-6 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-1 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-2 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-3 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-4 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-5 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-md-6 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-1 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-2 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-3 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-4 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-5 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-lg-6 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-1 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-2 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-3 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-4 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-5 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xl-6 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-1 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-2 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-3 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-4 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-5 .col-xxl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xs{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xs-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xs-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xs-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xs-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xs-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xs-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-sm{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-sm-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-sm-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-sm-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-sm-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-sm-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-sm-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-md{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-md-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-md-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-md-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-md-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-md-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-md-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-lg{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-lg-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-lg-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-lg-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-lg-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-lg-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-lg-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xl-6{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xxl{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xxl-1{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xxl-2{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xxl-3{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xxl-4{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xxl-5{flex:0 0 100%;max-width:100%}.ta-col-grouping.col-xxl-6 .col-xxl-6{flex:0 0 100%;max-width:100%}.iconpicker-popover.popover{background:0 0!important}.iconpicker-popover.popover .popover-title{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important;background-color:var(--bs-body-bg)!important}.iconpicker .iconpicker-items{background-color:var(--bs-body-bg)!important}.iconpicker .iconpicker-item{color:var(--bs-body-color)!important;box-shadow:0 0 0 1px var(--bs-border-color)}.iconpicker .iconpicker-item:hover{background-color:var(--bs-tertiary-color)!important}.with-checkbox .list-group-item{padding:.75rem .5rem}.EasyMDEContainer blockquote:not(.blockquote){background:var(--bs-secondary-bg-subtle);border-left:.4rem solid var(--bs-secondary-border-subtle)!important;margin:1.5em 10px;padding:1em 10px .1em;quotes:"“" "”" "‘" "’"}.EasyMDEContainer blockquote:not(.blockquote)>p{color:var(--bs-secondary-text-emphasis)}.monaco-editor{--vscode-foreground:var(--bs-body-color)!important;--vscode-editor-background:var(--bs-body-bg)!important;--vscode-editor-foreground:var(--bs-body-color)!important;--vscode-editorStickyScroll-background:var(--bs-body-bg)!important;--vscode-editorLink-activeForeground:var(--bs-secondary)!important;--vscode-breadcrumb-background:var(--bs-body-bg)!important;--vscode-editorGutter-background:var(--bs-body-bg)!important;--vscode-editorMarkerNavigation-background:var(--bs-body-bg)!important;--vscode-editorSuggestWidget-foreground:var(--bs-body-color)!important;--vscode-minimapSlider-background:rgba(var(--bs-body-bg-rbg), 0.2);--vscode-minimapSlider-hoverBackground:rgba(var(--bs-body-bg-rbg), 0.35);--vscode-minimapSlider-activeBackground:rgba(var(--bs-body-bg-rbg), 0.2);--vscode-scrollbarSlider-background:var(--oc-scrollbar-color)!important;--vscode-scrollbarSlider-hoverBackground:var(--oc-admin-menu-bg-color)!important;--vscode-scrollbarSlider-activeBackground:var(--oc-admin-menu-bg-color)!important;--vscode-dropdown-background:var(--bs-body-bg)!important;--vscode-dropdown-foreground:var(--bs-body-color)!important;--vscode-dropdown-border:var(--bs-border-color-translucent)}div.editor-widget.find-widget .button.codicon{background-color:transparent;border-color:transparent;display:flex;color:var(--bs-secondary-color);box-shadow:none}div.editor-widget.find-widget .button.codicon:focus{background-color:transparent;border-color:transparent}div.editor-widget.find-widget .button.codicon:active{background-color:transparent;border-color:transparent}.ta-navbar-top{border-bottom:var(--oc-border-content);z-index:var(--oc-top-nav-zindex);height:var(--oc-top-nav-height);box-shadow:0 .46875rem 2.1875rem rgba(4,9,20,.03),0 .9375rem 1.40625rem rgba(4,9,20,.03),0 .25rem .53125rem rgba(4,9,20,.05),0 .125rem .1875rem rgba(4,9,20,.03);padding-top:0;padding-bottom:0}.ta-navbar-top h1{font-size:24px;font-weight:700;margin-bottom:0}.ta-navbar-top .brand-wrapper-title{display:none}.ta-navbar-top .breadcrumb{background-color:transparent;margin-top:1rem}@media (min-width:576px){.ta-navbar-top .brand-wrapper-title{display:block;position:absolute;left:calc(var(--oc-start-navigation-width) + 10px)}}@media (max-width:575.98px){.ta-navbar-top .navbar-collapse li:first-child .nav-link{padding-top:15px}.ta-navbar-top .navbar-collapse li:last-child .nav-link{padding-bottom:0}}.left-sidebar-compact .ta-navbar-top .brand-wrapper-title{left:calc(var(--oc-start-navigation-width-when-compact) + 15px)}.brand-wrapper-title>h1{margin-bottom:0}.ta-navbar-brand{white-space:nowrap;transition:width .2s ease-in-out;color:var(--bs-navbar-brand-color)}.ta-navbar-brand span{font-size:14px;font-weight:700}.ta-navbar-brand img{height:32px}.left-sidebar-compact .ta-navbar-brand span{display:none}.user-top-navbar{padding-top:0;padding-bottom:0}.user-top-navbar .nav-item .nav-link{padding-left:.5rem;padding-right:.5rem}.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;height:100%;width:100%;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}/*! rtl:ignore */.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{top:-100%;width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;bottom:-17px}/*! rtl:ignore */.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background-color:var(--bs-body-bg);color:var(--bs-body-color);border-radius:var(--bs-border-radius);border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);box-shadow:inset 0 1px 1px rgba(var(--bs-border-color),.1),0 3px 6px -5px rgba(var(--bs-border-color),.2)}.noUi-connects{border-radius:var(--bs-border-radius)}.noUi-connect{background-color:var(--bs-body-bg)}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);border-radius:var(--bs-border-radius);background-color:var(--bs-body-bg);cursor:default;box-shadow:inset 0 1px 1px rgba(var(--bs-border-color),.1),0 3px 6px -5px rgba(var(--bs-border-color),.2)}.noUi-active{box-shadow:inset 0 1px 1px rgba(var(--bs-border-color),.1),0 3px 6px -5px rgba(var(--bs-border-color),.2)}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background-color:var(--bs-body-bg);left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background-color:var(--bs-body-bg)}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:var(--bs-body-color)}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:var(--bs-body-color);font-size:10px}.noUi-marker{position:absolute;background-color:var(--bs-body-bg)}.noUi-marker-sub{background-color:var(--bs-body-bg)}.noUi-marker-large{background-color:var(--bs-body-bg)}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}/*! rtl:ignore */.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);padding-left:25px}/*! rtl:ignore */.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translate(0,50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #d9d9d9;border-radius:3px;background-color:var(--bs-body-bg);color:var(--bs-body-color);padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%,0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);top:50%;right:120%}.noUi-horizontal .noUi-origin>.noUi-tooltip{-webkit-transform:translate(50%,0);transform:translate(50%,0);left:auto;bottom:10px}.noUi-vertical .noUi-origin>.noUi-tooltip{-webkit-transform:translate(0,-18px);transform:translate(0,-18px);top:auto;right:28px}ul.pager{margin-top:1rem;margin-bottom:1rem;justify-content:center}.g-recaptcha{margin-bottom:1rem}:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}.ui-sortable{min-height:1rem}ul.ui-sortable:not(:has(>li)){border:var(--bs-border-width) dashed var(--bs-border-color)!important}:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}.tab-pane{border-left:var(--bs-border-width) solid var(--bs-border-color);border-right:var(--bs-border-width) solid var(--bs-border-color);border-bottom:var(--bs-border-width) solid var(--bs-border-color);border-top:var(--bs-border-width) solid var(--bs-border-color);border-bottom-left-radius:var(--bs-border-radius);border-bottom-right-radius:var(--bs-border-radius);border-top-right-radius:var(--bs-border-radius);margin-bottom:1rem;padding-left:1rem;padding-right:1rem;padding-top:1rem}.nav-tabs{border-bottom:none;margin-top:1px;margin-bottom:-1px}.nav-tabs .nav-link{border:none;color:#fff;background-color:#6c757d;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-tabs .nav-link{transition:none}}.nav-tabs .nav-link:hover{background-color:rgb(90.2703862661,97.7929184549,104.4796137339)}.nav-tabs .nav-link.active{border-left:var(--bs-border-width) solid var(--bs-border-color);border-right:var(--bs-border-width) solid var(--bs-border-color);border-top:var(--bs-border-width) solid var(--bs-border-color);cursor:initial;color:#212529;background-color:#fff}.nav-tabs .nav-link.active:hover{background-color:#fff}.nav-tabs .nav-item{margin-bottom:0}@media (max-width:575.98px){.nav-tabs .nav-item:not(.nav-link){padding-bottom:.25rem}.nav-tabs .nav-link{border-bottom-left-radius:var(--bs-border-radius);border-bottom-right-radius:var(--bs-border-radius)}.nav-tabs .nav-link.active{border-bottom:var(--bs-border-width) solid var(--bs-border-color)}}.trumbowyg{font-size:16px}[dir] .trumbowyg-box,[dir] .trumbowyg-dark .trumbowyg-box{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);border-radius:var(--bs-border-radius);background-color:var(--bs-body-bg);color:var(--bs-body-color)}[dir] .trumbowyg-dark .trumbowyg-editor-box,[dir] .trumbowyg-editor-box{background-color:var(--bs-body-bg);color:var(--bs-body-color)}[dir] .trumbowyg-button-pane,[dir] .trumbowyg-dark .trumbowyg-button-pane{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)}[dir] .trumbowyg-button-pane .trumbowyg-button-group:not(:empty)::after,[dir] .trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty)::after{background:var(--bs-border-color)}[dir] .trumbowyg-dark .trumbowyg-dropdown,[dir] .trumbowyg-dropdown{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)}.trumbowyg-fullscreen{z-index:var(--oc-editor-fullscreen)}[dir] .trumbowyg-dark .trumbowyg-textarea,[dir] .trumbowyg-textarea{background-color:var(--bs-body-bg);color:var(--bs-body-color)}[dir] .trumbowyg-box .trumbowyg-editor td,[dir] .trumbowyg-box .trumbowyg-editor th{border-width:var(--bs-border-width,1px);border-style:var(--bs-border-style,solid);border-color:var(--bs-border-color,#dee2e6);padding:.5rem}span.field-validation-error{width:100%}.validation-summary-errors{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis);--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.validation-summary-errors ul{margin-bottom:0!important}.field-validation-error{color:var(--bs-danger-text-emphasis)!important}.field-validation-valid{display:none}.input-validation-error{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem)}input:not([type=checkbox]):not([type=radio]).input-validation-error{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.input-validation-error:focus,.input-validation-error:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}textarea.form-control.input-validation-error{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.input-validation-error{border-color:var(--bs-form-invalid-border-color)}.form-select.input-validation-error:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.input-validation-error:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.input-validation-error{width:calc(3rem + 1.5em + .75rem)}.form-check-input.input-validation-error{border-color:var(--bs-form-invalid-border-color)}.form-check-input.input-validation-error:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.input-validation-error:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.input-validation-error~.form-check-label{color:var(--bs-form-invalid-color)}.input-group>.form-control:not(:focus).input-validation-error,.input-group>.form-floating:not(:focus-within).input-validation-error,.input-group>.form-select:not(:focus).input-validation-error{z-index:4}.vue-multiselect{color:var(--bs-body-color)!important;background-color:var(--bs-body-bg)!important}.multiselect__content-wrapper,.multiselect__tags{border:var(--bs-border-width) solid var(--bs-border-color)!important}.multiselect__tags{border-radius:var(--bs-border-radius)!important}.multiselect__content-wrapper,.multiselect__input,.multiselect__tags{background-color:var(--bs-body-bg)!important}.multiselect--active{z-index:var(--oc-zindex-dropdown,1000)!important;color:var(--bs-body-color)!important;background-color:var(--bs-body-bg)!important}.multiselect__spinner{background-color:var(--bs-body-bg)!important}.ta-badge{background-color:var(--bs-light);color:var(--bs-secondary-color)}.bootstrap-select .popover-header .close{color:var(--bs-black)}.bootstrap-select>.dropdown-toggle.bs-placeholder,.bootstrap-select>.dropdown-toggle.bs-placeholder:active,.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder:hover{color:var(--bs-white)!important}.bootstrap-select>.dropdown-toggle.bs-placeholder,.bootstrap-select>.dropdown-toggle.bs-placeholder:active,.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder:hover{color:var(--bs-gray-900)!important}.bootstrap-select .popover-header{background-color:var(--bs-secondary-bg)}.card{--bs-card-bg:var(--bs-white)}.modal{--bs-modal-bg:var(--bs-white)}.bg-theme{background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity,1))}.text-theme{color:var(--bs-body-color)}.text-bg-theme{color:var(--bs-body-color);background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity,1))}.btn-theme{color:var(--bs-black);background-color:#f8f9fa;border-color:#f8f9fa}.btn-theme:hover{color:var(--bs-black);background-color:#f9fafb;border-color:#f9fafb}.btn-check:focus+.btn-theme,.btn-theme:focus{color:var(--bs-black);background-color:#f9fafb;border-color:#f9fafb;box-shadow:0 0 0 .25rem rgba(211,212,213,.5)}.btn-check:active+.btn-theme,.btn-check:checked+.btn-theme,.btn-theme.active,.btn-theme:active,.show>.btn-theme.dropdown-toggle{color:var(--bs-black);background-color:#f9fafb;border-color:#f9fafb}.btn-check:active+.btn-theme:focus,.btn-check:checked+.btn-theme:focus,.btn-theme.active:focus,.btn-theme:active:focus,.show>.btn-theme.dropdown-toggle:focus{box-shadow:0 0 0 .25rem rgba(211,212,213,.5)}.btn-theme.disabled,.btn-theme:disabled{color:var(--bs-black);background-color:#f8f9fa;border-color:#f8f9fa}:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}[data-bs-theme=dark]{--oc-scrollbar-color:#76787A;--oc-admin-menu-bg-color:var(--bs-dark)}[data-bs-theme=dark] .ta-badge{background-color:var(--bs-dark);color:var(--bs-secondary-color)}[data-bs-theme=dark] .bootstrap-select>.dropdown-toggle.bs-placeholder,[data-bs-theme=dark] .bootstrap-select>.dropdown-toggle.bs-placeholder:active,[data-bs-theme=dark] .bootstrap-select>.dropdown-toggle.bs-placeholder:focus,[data-bs-theme=dark] .bootstrap-select>.dropdown-toggle.bs-placeholder:hover{color:var(--bs-white)!important}[data-bs-theme=dark] .bootstrap-select .popover-header{background-color:var(--bs-secondary-bg)}[data-bs-theme=dark] .card{--bs-card-bg:var(--bs-body-bg)}[data-bs-theme=dark] .modal{--bs-modal-bg:var(--bs-dark)}[data-bs-theme=dark] .bg-theme{background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity,1))!important}[data-bs-theme=dark] .text-theme{color:var(--bs-body-color)!important}[data-bs-theme=dark] .text-bg-theme{color:var(--bs-body-color)!important;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity,1))!important}[data-bs-theme=dark] .btn-theme{color:var(--bs-white);background-color:var(--bs-gray-900);border-color:var(--bs-gray-900)}[data-bs-theme=dark] .btn-theme:hover{color:var(--bs-white);background-color:#1c1f23;border-color:#1a1e21}[data-bs-theme=dark] .btn-check:focus+.btn-theme,[data-bs-theme=dark] .btn-theme:focus{color:var(--bs-white);background-color:#1c1f23;border-color:#1a1e21;box-shadow:0 0 0 .25rem rgba(66,70,73,.5)}[data-bs-theme=dark] .btn-check:active+.btn-theme,[data-bs-theme=dark] .btn-check:checked+.btn-theme,[data-bs-theme=dark] .btn-theme.active,[data-bs-theme=dark] .btn-theme:active,[data-bs-theme=dark] .show>.btn-theme.dropdown-toggle{color:var(--bs-white);background-color:#1a1e21;border-color:#191c1f}[data-bs-theme=dark] .btn-check:active+.btn-theme:focus,[data-bs-theme=dark] .btn-check:checked+.btn-theme:focus,[data-bs-theme=dark] .btn-theme.active:focus,[data-bs-theme=dark] .btn-theme:active:focus,[data-bs-theme=dark] .show>.btn-theme.dropdown-toggle:focus{box-shadow:0 0 0 .25rem rgba(66,70,73,.5)}[data-bs-theme=dark] .btn-theme.disabled,[data-bs-theme=dark] .btn-theme:disabled{color:var(--bs-white);background-color:var(--bs-gray-900);border-color:var(--bs-gray-900)} +.w-xs-25{width:25%!important}.w-xs-50{width:50%!important}.w-xs-75{width:75%!important}@media (width>=576px){.w-sm-25{width:25%!important}.w-sm-50{width:50%!important}.w-sm-75{width:75%!important}}@media (width>=768px){.w-md-25{width:25%!important}.w-md-50{width:50%!important}.w-md-75{width:75%!important}}@media (width>=992px){.w-lg-25{width:25%!important}.w-lg-50{width:50%!important}.w-lg-75{width:75%!important}}@media (width>=1200px){.w-xl-25{width:25%!important}.w-xl-50{width:50%!important}.w-xl-75{width:75%!important}}@media (width>=1400px){.w-xxl-25{width:25%!important}.w-xxl-50{width:50%!important}.w-xxl-75{width:75%!important}}.unset{all:unset}a{text-decoration:none}a:hover{text-decoration:underline}.btn:hover,.button:hover,.btn-link:focus-visible,.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.action-bar{z-index:var(--oc-action-bar-zindex);top:3.3rem}.second-action-bar{z-index:var(--oc-second-action-bar-zindex)}.ta-badge{border-radius:var(--bs-border-radius-pill)!important;border:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color)!important}@keyframes bs-notify-fadeOut{0%{opacity:.9}to{opacity:0}}select.bs-select-hidden,.bootstrap-select>select.bs-select-hidden,select.selectpicker{display:none!important}.bootstrap-select{vertical-align:middle;width:220px}.bootstrap-select>.dropdown-toggle{text-align:right;white-space:nowrap;justify-content:space-between;align-items:center;width:100%;display:inline-flex;position:relative}.bootstrap-select>.dropdown-toggle:after{margin-top:-1px}.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary,.bootstrap-select>.dropdown-toggle.bs-placeholder.button,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-primary:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-secondary:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-success:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-danger:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-info:active,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder.btn-dark:active{color:#ffffff80}.bootstrap-select>select{border:none;bottom:0;left:50%;opacity:0!important;z-index:0!important;width:.5px!important;height:100%!important;padding:0!important;display:block!important;position:absolute!important}.bootstrap-select>select.mobile-device{top:0;left:0;z-index:2!important;width:100%!important;display:block!important}.has-error .bootstrap-select .dropdown-toggle,.error .bootstrap-select .dropdown-toggle,.bootstrap-select.is-invalid .dropdown-toggle,.was-validated .bootstrap-select select:invalid+.dropdown-toggle{border-color:#b94a48}.bootstrap-select.is-valid .dropdown-toggle,.was-validated .bootstrap-select select:valid+.dropdown-toggle{border-color:#28a745}.bootstrap-select.fit-width{width:auto!important}.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn){width:220px}.bootstrap-select>select.mobile-device:focus+.dropdown-toggle,.bootstrap-select .dropdown-toggle:focus{outline-offset:-2px;outline:thin dotted #333!important;outline:5px auto -webkit-focus-ring-color!important}.bootstrap-select.form-control{border:none;height:auto;margin-bottom:0;padding:0}:not(.input-group)>.bootstrap-select.form-control:not([class*=col-]){width:100%}.bootstrap-select.form-control.input-group-btn{float:none;z-index:auto}.form-inline .bootstrap-select,.form-inline .bootstrap-select.form-control:not([class*=col-]){width:auto}.bootstrap-select:not(.input-group-btn),.bootstrap-select[class*=col-]{float:none;margin-left:0;display:inline-block}.bootstrap-select.dropdown-menu-right,.bootstrap-select[class*=col-].dropdown-menu-right,.row .bootstrap-select[class*=col-].dropdown-menu-right{float:right}.form-inline .bootstrap-select,.form-horizontal .bootstrap-select,.form-group .bootstrap-select{margin-bottom:0}.form-group-lg .bootstrap-select.form-control,.form-group-sm .bootstrap-select.form-control{padding:0}.form-group-lg .bootstrap-select.form-control .dropdown-toggle,.form-group-sm .bootstrap-select.form-control .dropdown-toggle{height:100%;font-size:inherit;line-height:inherit;border-radius:inherit}.bootstrap-select.form-control-sm .dropdown-toggle,.bootstrap-select.form-control-lg .dropdown-toggle{font-size:inherit;line-height:inherit;border-radius:inherit}.bootstrap-select.form-control-sm .dropdown-toggle{padding:.25rem .5rem}.bootstrap-select.form-control-lg .dropdown-toggle{padding:.5rem 1rem}.form-inline .bootstrap-select .form-control{width:100%}.bootstrap-select.disabled,.bootstrap-select>.disabled{cursor:not-allowed}.bootstrap-select.disabled:focus,.bootstrap-select>.disabled:focus{outline:none!important}.bootstrap-select.bs-container{position:absolute;top:0;left:0;height:0!important;padding:0!important}.bootstrap-select.bs-container .dropdown-menu{z-index:1060}.bootstrap-select .dropdown-toggle .filter-option{float:left;text-align:left;flex:0 auto;width:100%;height:100%;position:static;top:0;left:0;overflow:hidden}.bs3.bootstrap-select .dropdown-toggle .filter-option{padding-right:inherit}.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option{padding-top:inherit;padding-bottom:inherit;padding-left:inherit;float:none;position:absolute}.input-group .bs3-has-addon.bootstrap-select .dropdown-toggle .filter-option .filter-option-inner{padding-right:inherit}.bootstrap-select .dropdown-toggle .filter-option-inner-inner{overflow:hidden}.bootstrap-select .dropdown-toggle .filter-expand{float:left;overflow:hidden;opacity:0!important;width:0!important}.bootstrap-select .dropdown-toggle .caret{vertical-align:middle;margin-top:-2px;position:absolute;top:50%;right:12px}.bootstrap-select .dropdown-toggle .bs-select-clear-selected{text-align:center;margin-right:5px;display:block;position:relative}.bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected{padding-right:inherit}.bootstrap-select .dropdown-toggle .bs-select-clear-selected span{pointer-events:none;position:relative;top:calc(.5ex - .333333em)}.bs3.bootstrap-select .dropdown-toggle .bs-select-clear-selected span{top:auto}.bootstrap-select .dropdown-toggle.bs-placeholder .bs-select-clear-selected{display:none}.input-group .bootstrap-select.form-control .dropdown-toggle{border-radius:inherit}.bootstrap-select[class*=col-] .dropdown-toggle{width:100%}.bootstrap-select .dropdown-menu{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;min-width:100%}.bootstrap-select .dropdown-menu>.inner:focus{outline:none!important}.bootstrap-select .dropdown-menu.inner{float:none;box-shadow:none;border:0;border-radius:0;margin:0;padding:0;position:static}.bootstrap-select .dropdown-menu li{position:relative}.bootstrap-select .dropdown-menu li.active small{color:#ffffff80!important}.bootstrap-select .dropdown-menu li.disabled a{cursor:not-allowed}.bootstrap-select .dropdown-menu li a{cursor:pointer;user-select:none}.bootstrap-select .dropdown-menu li a.opt{padding-left:2.25em;position:relative}.bootstrap-select .dropdown-menu li a span.check-mark{display:none}.bootstrap-select .dropdown-menu li a span.text{display:inline-block}.bootstrap-select .dropdown-menu li small{padding-left:.5em}.bootstrap-select .dropdown-menu .notify{pointer-events:none;opacity:.9;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#f5f5f5;border:1px solid #e3e3e3;width:96%;min-height:26px;margin:0 2%;padding:3px 5px;position:absolute;bottom:5px;-webkit-box-shadow:inset 0 1px 1px #0000000d;box-shadow:inset 0 1px 1px #0000000d}.bootstrap-select .dropdown-menu .notify.fadeOut{animation:.3s linear .75s forwards bs-notify-fadeOut}.bootstrap-select .no-results{white-space:nowrap;background:#f5f5f5;margin:0 5px;padding:3px}.bootstrap-select.fit-width .dropdown-toggle .filter-option{padding:0;display:inline;position:static}.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner,.bootstrap-select.fit-width .dropdown-toggle .filter-option-inner-inner{display:inline}.bootstrap-select.fit-width .dropdown-toggle .bs-caret:before{content:" "}.bootstrap-select.fit-width .dropdown-toggle .caret{margin-top:-1px;position:static;top:auto}.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark{display:inline-block;position:absolute;top:5px;right:15px}.bootstrap-select.show-tick .dropdown-menu li a span.text{margin-right:34px}.bootstrap-select .bs-ok-default:after{content:"";width:.5em;height:1em;transform-style:preserve-3d;border-style:solid;border-width:0 .26em .26em 0;display:block;transform:rotate(45deg)}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle{z-index:1061}.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:before{content:"";border-bottom:7px solid #ccc3;border-left:7px solid #0000;border-right:7px solid #0000;display:none;position:absolute;bottom:-4px;left:9px}.bootstrap-select.show-menu-arrow .dropdown-toggle .filter-option:after{content:"";border-bottom:6px solid #fff;border-left:6px solid #0000;border-right:6px solid #0000;display:none;position:absolute;bottom:-4px;left:10px}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:before{border-top:7px solid #ccc3;border-bottom:0;top:-4px;bottom:auto}.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle .filter-option:after{border-top:6px solid #fff;border-bottom:0;top:-4px;bottom:auto}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:before{left:auto;right:12px}.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle .filter-option:after{left:auto;right:13px}.bootstrap-select.show-menu-arrow.open>.dropdown-toggle .filter-option:before,.bootstrap-select.show-menu-arrow.open>.dropdown-toggle .filter-option:after,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle .filter-option:before,.bootstrap-select.show-menu-arrow.show>.dropdown-toggle .filter-option:after{display:block}.bs-searchbox,.bs-actionsbox,.bs-donebutton{padding:4px 8px}.bs-actionsbox{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.bs-actionsbox .btn-group{display:block}.bs-actionsbox .btn-group button{width:50%}.bs-donebutton{float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%}.bs-donebutton .btn-group{display:block}.bs-donebutton .btn-group button{width:100%}.bs-searchbox+.bs-actionsbox{padding:0 8px 4px}.bs-searchbox .form-control{float:none;width:100%;margin-bottom:0}.multiselect__content-wrapper ul{padding-left:unset}html[dir=rtl] .bootstrap-select .bs-ok-default:after{border-width:0 .26em .26em 0!important;transform:rotate(45deg)!important}.bootstrap-select .popover-header{margin-bottom:0;padding:.5rem 1rem;border-bottom:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color)!important}.bootstrap-select .popover-header .close{box-shadow:none;background:0 0;background:unset;border:0;border-radius:0;padding-top:0;padding-right:0;float:right!important}:root{--oc-border-content:var(--bs-border-width)solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#cdcdcd;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1;--oc-mde-zindex:var(--oc-editor-fullscreen)!important}.CodeMirror{border:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color);background-color:var(--bs-body-bg);height:auto;color:var(--bs-body-color)}.CodeMirror-gutters{background-color:var(--bs-secondary-bg);color:var(--bs-secondary-color)}.CodeMirror-fullscreen{background:var(--bs-body-bg);color:var(--bs-body-color);height:auto;z-index:var(--bs-modal-zindex);bottom:0;left:0;right:0;top:var(--oc-top-nav-height)!important;border-right:none!important;border-bottom-right-radius:0!important;position:fixed!important}.CodeMirror pre{overflow:unset;margin-bottom:0;padding-left:7px;line-height:1.25}.CodeMirror-activeline-background{background:0 0!important}.CodeMirror-focused .CodeMirror-activeline-background{background:rgba(var(--bs-secondary-bg-rgb),.1)!important}.dropdown-menu.scrollable{max-height:var(--oc-height-dropdown);scrollbar-width:thin;overflow-y:auto}.btn-dropdown ::-webkit-scrollbar{width:4px}.btn-dropdown .dropdown-menu{max-height:var(--oc-height-dropdown);scrollbar-width:thin;overflow:hidden auto}.dropdown-item:hover,.dropdown-item:focus{text-decoration:none}.hint{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;font-size:.875em;color:var(--bs-secondary)!important}.hint.dashed:before,.text-muted.dashed:before{content:"— "}.code,.form-control.code{border-radius:.375rem;padding:.1875rem .375rem;font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875em}.form-label{margin-bottom:.25rem}.label-link{float:right;font-size:12px}.form-control:disabled,.form-control[readonly]{background-color:var(--bs-secondary-bg);opacity:1}label .field-validation-error:before{content:"- "}label.input-required:after{color:var(--bs-danger-text-emphasis);content:" *"}input[type=password]::-ms-reveal,input[type=password]::-ms-clear{display:none}.has-filter .form-control,.has-search .form-control{color:var(--bs-body-color);padding-left:2rem}.has-filter .form-control-feedback,.has-search .form-control-feedback{z-index:10;text-align:center;pointer-events:none;width:1rem;height:2rem;color:var(--bs-secondary);line-height:1rem;display:block;position:absolute;left:1.75rem}.has-filter .form-control-feedback{top:.25rem;left:4.25rem}.has-search .form-control-feedback{left:1.75rem}.has-search:not(.input-group) .form-control-feedback,.has-filter:not(.input-group) .form-control-feedback{top:1.25rem;left:1.75rem}.has-filter .btn:not(.show),.has-filter .button:not(.show){border-color:var(--bs-border-color)!important}.ta-col-grouping.col-xs .col-xs,.ta-col-grouping.col-xs .col-xs-1,.ta-col-grouping.col-xs .col-xs-2,.ta-col-grouping.col-xs .col-xs-3,.ta-col-grouping.col-xs .col-xs-4,.ta-col-grouping.col-xs .col-xs-5,.ta-col-grouping.col-xs .col-xs-6,.ta-col-grouping.col-xs .col-sm,.ta-col-grouping.col-xs .col-sm-1,.ta-col-grouping.col-xs .col-sm-2,.ta-col-grouping.col-xs .col-sm-3,.ta-col-grouping.col-xs .col-sm-4,.ta-col-grouping.col-xs .col-sm-5,.ta-col-grouping.col-xs .col-sm-6,.ta-col-grouping.col-xs .col-md,.ta-col-grouping.col-xs .col-md-1,.ta-col-grouping.col-xs .col-md-2,.ta-col-grouping.col-xs .col-md-3,.ta-col-grouping.col-xs .col-md-4,.ta-col-grouping.col-xs .col-md-5,.ta-col-grouping.col-xs .col-md-6,.ta-col-grouping.col-xs .col-lg,.ta-col-grouping.col-xs .col-lg-1,.ta-col-grouping.col-xs .col-lg-2,.ta-col-grouping.col-xs .col-lg-3,.ta-col-grouping.col-xs .col-lg-4,.ta-col-grouping.col-xs .col-lg-5,.ta-col-grouping.col-xs .col-lg-6,.ta-col-grouping.col-xs .col-xl,.ta-col-grouping.col-xs .col-xl-1,.ta-col-grouping.col-xs .col-xl-2,.ta-col-grouping.col-xs .col-xl-3,.ta-col-grouping.col-xs .col-xl-4,.ta-col-grouping.col-xs .col-xl-5,.ta-col-grouping.col-xs .col-xl-6,.ta-col-grouping.col-xs .col-xxl,.ta-col-grouping.col-xs .col-xxl-1,.ta-col-grouping.col-xs .col-xxl-2,.ta-col-grouping.col-xs .col-xxl-3,.ta-col-grouping.col-xs .col-xxl-4,.ta-col-grouping.col-xs .col-xxl-5,.ta-col-grouping.col-xs .col-xxl-6,.ta-col-grouping.col-xs-1 .col-xs,.ta-col-grouping.col-xs-1 .col-xs-1,.ta-col-grouping.col-xs-1 .col-xs-2,.ta-col-grouping.col-xs-1 .col-xs-3,.ta-col-grouping.col-xs-1 .col-xs-4,.ta-col-grouping.col-xs-1 .col-xs-5,.ta-col-grouping.col-xs-1 .col-xs-6,.ta-col-grouping.col-xs-1 .col-sm,.ta-col-grouping.col-xs-1 .col-sm-1,.ta-col-grouping.col-xs-1 .col-sm-2,.ta-col-grouping.col-xs-1 .col-sm-3,.ta-col-grouping.col-xs-1 .col-sm-4,.ta-col-grouping.col-xs-1 .col-sm-5,.ta-col-grouping.col-xs-1 .col-sm-6,.ta-col-grouping.col-xs-1 .col-md,.ta-col-grouping.col-xs-1 .col-md-1,.ta-col-grouping.col-xs-1 .col-md-2,.ta-col-grouping.col-xs-1 .col-md-3,.ta-col-grouping.col-xs-1 .col-md-4,.ta-col-grouping.col-xs-1 .col-md-5,.ta-col-grouping.col-xs-1 .col-md-6,.ta-col-grouping.col-xs-1 .col-lg,.ta-col-grouping.col-xs-1 .col-lg-1,.ta-col-grouping.col-xs-1 .col-lg-2,.ta-col-grouping.col-xs-1 .col-lg-3,.ta-col-grouping.col-xs-1 .col-lg-4,.ta-col-grouping.col-xs-1 .col-lg-5,.ta-col-grouping.col-xs-1 .col-lg-6,.ta-col-grouping.col-xs-1 .col-xl,.ta-col-grouping.col-xs-1 .col-xl-1,.ta-col-grouping.col-xs-1 .col-xl-2,.ta-col-grouping.col-xs-1 .col-xl-3,.ta-col-grouping.col-xs-1 .col-xl-4,.ta-col-grouping.col-xs-1 .col-xl-5,.ta-col-grouping.col-xs-1 .col-xl-6,.ta-col-grouping.col-xs-1 .col-xxl,.ta-col-grouping.col-xs-1 .col-xxl-1,.ta-col-grouping.col-xs-1 .col-xxl-2,.ta-col-grouping.col-xs-1 .col-xxl-3,.ta-col-grouping.col-xs-1 .col-xxl-4,.ta-col-grouping.col-xs-1 .col-xxl-5,.ta-col-grouping.col-xs-1 .col-xxl-6,.ta-col-grouping.col-xs-2 .col-xs,.ta-col-grouping.col-xs-2 .col-xs-1,.ta-col-grouping.col-xs-2 .col-xs-2,.ta-col-grouping.col-xs-2 .col-xs-3,.ta-col-grouping.col-xs-2 .col-xs-4,.ta-col-grouping.col-xs-2 .col-xs-5,.ta-col-grouping.col-xs-2 .col-xs-6,.ta-col-grouping.col-xs-2 .col-sm,.ta-col-grouping.col-xs-2 .col-sm-1,.ta-col-grouping.col-xs-2 .col-sm-2,.ta-col-grouping.col-xs-2 .col-sm-3,.ta-col-grouping.col-xs-2 .col-sm-4,.ta-col-grouping.col-xs-2 .col-sm-5,.ta-col-grouping.col-xs-2 .col-sm-6,.ta-col-grouping.col-xs-2 .col-md,.ta-col-grouping.col-xs-2 .col-md-1,.ta-col-grouping.col-xs-2 .col-md-2,.ta-col-grouping.col-xs-2 .col-md-3,.ta-col-grouping.col-xs-2 .col-md-4,.ta-col-grouping.col-xs-2 .col-md-5,.ta-col-grouping.col-xs-2 .col-md-6,.ta-col-grouping.col-xs-2 .col-lg,.ta-col-grouping.col-xs-2 .col-lg-1,.ta-col-grouping.col-xs-2 .col-lg-2,.ta-col-grouping.col-xs-2 .col-lg-3,.ta-col-grouping.col-xs-2 .col-lg-4,.ta-col-grouping.col-xs-2 .col-lg-5,.ta-col-grouping.col-xs-2 .col-lg-6,.ta-col-grouping.col-xs-2 .col-xl,.ta-col-grouping.col-xs-2 .col-xl-1,.ta-col-grouping.col-xs-2 .col-xl-2,.ta-col-grouping.col-xs-2 .col-xl-3,.ta-col-grouping.col-xs-2 .col-xl-4,.ta-col-grouping.col-xs-2 .col-xl-5,.ta-col-grouping.col-xs-2 .col-xl-6,.ta-col-grouping.col-xs-2 .col-xxl,.ta-col-grouping.col-xs-2 .col-xxl-1,.ta-col-grouping.col-xs-2 .col-xxl-2,.ta-col-grouping.col-xs-2 .col-xxl-3,.ta-col-grouping.col-xs-2 .col-xxl-4,.ta-col-grouping.col-xs-2 .col-xxl-5,.ta-col-grouping.col-xs-2 .col-xxl-6,.ta-col-grouping.col-xs-3 .col-xs,.ta-col-grouping.col-xs-3 .col-xs-1,.ta-col-grouping.col-xs-3 .col-xs-2,.ta-col-grouping.col-xs-3 .col-xs-3,.ta-col-grouping.col-xs-3 .col-xs-4,.ta-col-grouping.col-xs-3 .col-xs-5,.ta-col-grouping.col-xs-3 .col-xs-6,.ta-col-grouping.col-xs-3 .col-sm,.ta-col-grouping.col-xs-3 .col-sm-1,.ta-col-grouping.col-xs-3 .col-sm-2,.ta-col-grouping.col-xs-3 .col-sm-3,.ta-col-grouping.col-xs-3 .col-sm-4,.ta-col-grouping.col-xs-3 .col-sm-5,.ta-col-grouping.col-xs-3 .col-sm-6,.ta-col-grouping.col-xs-3 .col-md,.ta-col-grouping.col-xs-3 .col-md-1,.ta-col-grouping.col-xs-3 .col-md-2,.ta-col-grouping.col-xs-3 .col-md-3,.ta-col-grouping.col-xs-3 .col-md-4,.ta-col-grouping.col-xs-3 .col-md-5,.ta-col-grouping.col-xs-3 .col-md-6,.ta-col-grouping.col-xs-3 .col-lg,.ta-col-grouping.col-xs-3 .col-lg-1,.ta-col-grouping.col-xs-3 .col-lg-2,.ta-col-grouping.col-xs-3 .col-lg-3,.ta-col-grouping.col-xs-3 .col-lg-4,.ta-col-grouping.col-xs-3 .col-lg-5,.ta-col-grouping.col-xs-3 .col-lg-6,.ta-col-grouping.col-xs-3 .col-xl,.ta-col-grouping.col-xs-3 .col-xl-1,.ta-col-grouping.col-xs-3 .col-xl-2,.ta-col-grouping.col-xs-3 .col-xl-3,.ta-col-grouping.col-xs-3 .col-xl-4,.ta-col-grouping.col-xs-3 .col-xl-5,.ta-col-grouping.col-xs-3 .col-xl-6,.ta-col-grouping.col-xs-3 .col-xxl,.ta-col-grouping.col-xs-3 .col-xxl-1,.ta-col-grouping.col-xs-3 .col-xxl-2,.ta-col-grouping.col-xs-3 .col-xxl-3,.ta-col-grouping.col-xs-3 .col-xxl-4,.ta-col-grouping.col-xs-3 .col-xxl-5,.ta-col-grouping.col-xs-3 .col-xxl-6,.ta-col-grouping.col-xs-4 .col-xs,.ta-col-grouping.col-xs-4 .col-xs-1,.ta-col-grouping.col-xs-4 .col-xs-2,.ta-col-grouping.col-xs-4 .col-xs-3,.ta-col-grouping.col-xs-4 .col-xs-4,.ta-col-grouping.col-xs-4 .col-xs-5,.ta-col-grouping.col-xs-4 .col-xs-6,.ta-col-grouping.col-xs-4 .col-sm,.ta-col-grouping.col-xs-4 .col-sm-1,.ta-col-grouping.col-xs-4 .col-sm-2,.ta-col-grouping.col-xs-4 .col-sm-3,.ta-col-grouping.col-xs-4 .col-sm-4,.ta-col-grouping.col-xs-4 .col-sm-5,.ta-col-grouping.col-xs-4 .col-sm-6,.ta-col-grouping.col-xs-4 .col-md,.ta-col-grouping.col-xs-4 .col-md-1,.ta-col-grouping.col-xs-4 .col-md-2,.ta-col-grouping.col-xs-4 .col-md-3,.ta-col-grouping.col-xs-4 .col-md-4,.ta-col-grouping.col-xs-4 .col-md-5,.ta-col-grouping.col-xs-4 .col-md-6,.ta-col-grouping.col-xs-4 .col-lg,.ta-col-grouping.col-xs-4 .col-lg-1,.ta-col-grouping.col-xs-4 .col-lg-2,.ta-col-grouping.col-xs-4 .col-lg-3,.ta-col-grouping.col-xs-4 .col-lg-4,.ta-col-grouping.col-xs-4 .col-lg-5,.ta-col-grouping.col-xs-4 .col-lg-6,.ta-col-grouping.col-xs-4 .col-xl,.ta-col-grouping.col-xs-4 .col-xl-1,.ta-col-grouping.col-xs-4 .col-xl-2,.ta-col-grouping.col-xs-4 .col-xl-3,.ta-col-grouping.col-xs-4 .col-xl-4,.ta-col-grouping.col-xs-4 .col-xl-5,.ta-col-grouping.col-xs-4 .col-xl-6,.ta-col-grouping.col-xs-4 .col-xxl,.ta-col-grouping.col-xs-4 .col-xxl-1,.ta-col-grouping.col-xs-4 .col-xxl-2,.ta-col-grouping.col-xs-4 .col-xxl-3,.ta-col-grouping.col-xs-4 .col-xxl-4,.ta-col-grouping.col-xs-4 .col-xxl-5,.ta-col-grouping.col-xs-4 .col-xxl-6,.ta-col-grouping.col-xs-5 .col-xs,.ta-col-grouping.col-xs-5 .col-xs-1,.ta-col-grouping.col-xs-5 .col-xs-2,.ta-col-grouping.col-xs-5 .col-xs-3,.ta-col-grouping.col-xs-5 .col-xs-4,.ta-col-grouping.col-xs-5 .col-xs-5,.ta-col-grouping.col-xs-5 .col-xs-6,.ta-col-grouping.col-xs-5 .col-sm,.ta-col-grouping.col-xs-5 .col-sm-1,.ta-col-grouping.col-xs-5 .col-sm-2,.ta-col-grouping.col-xs-5 .col-sm-3,.ta-col-grouping.col-xs-5 .col-sm-4,.ta-col-grouping.col-xs-5 .col-sm-5,.ta-col-grouping.col-xs-5 .col-sm-6,.ta-col-grouping.col-xs-5 .col-md,.ta-col-grouping.col-xs-5 .col-md-1,.ta-col-grouping.col-xs-5 .col-md-2,.ta-col-grouping.col-xs-5 .col-md-3,.ta-col-grouping.col-xs-5 .col-md-4,.ta-col-grouping.col-xs-5 .col-md-5,.ta-col-grouping.col-xs-5 .col-md-6,.ta-col-grouping.col-xs-5 .col-lg,.ta-col-grouping.col-xs-5 .col-lg-1,.ta-col-grouping.col-xs-5 .col-lg-2,.ta-col-grouping.col-xs-5 .col-lg-3,.ta-col-grouping.col-xs-5 .col-lg-4,.ta-col-grouping.col-xs-5 .col-lg-5,.ta-col-grouping.col-xs-5 .col-lg-6,.ta-col-grouping.col-xs-5 .col-xl,.ta-col-grouping.col-xs-5 .col-xl-1,.ta-col-grouping.col-xs-5 .col-xl-2,.ta-col-grouping.col-xs-5 .col-xl-3,.ta-col-grouping.col-xs-5 .col-xl-4,.ta-col-grouping.col-xs-5 .col-xl-5,.ta-col-grouping.col-xs-5 .col-xl-6,.ta-col-grouping.col-xs-5 .col-xxl,.ta-col-grouping.col-xs-5 .col-xxl-1,.ta-col-grouping.col-xs-5 .col-xxl-2,.ta-col-grouping.col-xs-5 .col-xxl-3,.ta-col-grouping.col-xs-5 .col-xxl-4,.ta-col-grouping.col-xs-5 .col-xxl-5,.ta-col-grouping.col-xs-5 .col-xxl-6,.ta-col-grouping.col-xs-6 .col-xs,.ta-col-grouping.col-xs-6 .col-xs-1,.ta-col-grouping.col-xs-6 .col-xs-2,.ta-col-grouping.col-xs-6 .col-xs-3,.ta-col-grouping.col-xs-6 .col-xs-4,.ta-col-grouping.col-xs-6 .col-xs-5,.ta-col-grouping.col-xs-6 .col-xs-6,.ta-col-grouping.col-xs-6 .col-sm,.ta-col-grouping.col-xs-6 .col-sm-1,.ta-col-grouping.col-xs-6 .col-sm-2,.ta-col-grouping.col-xs-6 .col-sm-3,.ta-col-grouping.col-xs-6 .col-sm-4,.ta-col-grouping.col-xs-6 .col-sm-5,.ta-col-grouping.col-xs-6 .col-sm-6,.ta-col-grouping.col-xs-6 .col-md,.ta-col-grouping.col-xs-6 .col-md-1,.ta-col-grouping.col-xs-6 .col-md-2,.ta-col-grouping.col-xs-6 .col-md-3,.ta-col-grouping.col-xs-6 .col-md-4,.ta-col-grouping.col-xs-6 .col-md-5,.ta-col-grouping.col-xs-6 .col-md-6,.ta-col-grouping.col-xs-6 .col-lg,.ta-col-grouping.col-xs-6 .col-lg-1,.ta-col-grouping.col-xs-6 .col-lg-2,.ta-col-grouping.col-xs-6 .col-lg-3,.ta-col-grouping.col-xs-6 .col-lg-4,.ta-col-grouping.col-xs-6 .col-lg-5,.ta-col-grouping.col-xs-6 .col-lg-6,.ta-col-grouping.col-xs-6 .col-xl,.ta-col-grouping.col-xs-6 .col-xl-1,.ta-col-grouping.col-xs-6 .col-xl-2,.ta-col-grouping.col-xs-6 .col-xl-3,.ta-col-grouping.col-xs-6 .col-xl-4,.ta-col-grouping.col-xs-6 .col-xl-5,.ta-col-grouping.col-xs-6 .col-xl-6,.ta-col-grouping.col-xs-6 .col-xxl,.ta-col-grouping.col-xs-6 .col-xxl-1,.ta-col-grouping.col-xs-6 .col-xxl-2,.ta-col-grouping.col-xs-6 .col-xxl-3,.ta-col-grouping.col-xs-6 .col-xxl-4,.ta-col-grouping.col-xs-6 .col-xxl-5,.ta-col-grouping.col-xs-6 .col-xxl-6,.ta-col-grouping.col-sm .col-xs,.ta-col-grouping.col-sm .col-xs-1,.ta-col-grouping.col-sm .col-xs-2,.ta-col-grouping.col-sm .col-xs-3,.ta-col-grouping.col-sm .col-xs-4,.ta-col-grouping.col-sm .col-xs-5,.ta-col-grouping.col-sm .col-xs-6,.ta-col-grouping.col-sm .col-sm,.ta-col-grouping.col-sm .col-sm-1,.ta-col-grouping.col-sm .col-sm-2,.ta-col-grouping.col-sm .col-sm-3,.ta-col-grouping.col-sm .col-sm-4,.ta-col-grouping.col-sm .col-sm-5,.ta-col-grouping.col-sm .col-sm-6,.ta-col-grouping.col-sm .col-md,.ta-col-grouping.col-sm .col-md-1,.ta-col-grouping.col-sm .col-md-2,.ta-col-grouping.col-sm .col-md-3,.ta-col-grouping.col-sm .col-md-4,.ta-col-grouping.col-sm .col-md-5,.ta-col-grouping.col-sm .col-md-6,.ta-col-grouping.col-sm .col-lg,.ta-col-grouping.col-sm .col-lg-1,.ta-col-grouping.col-sm .col-lg-2,.ta-col-grouping.col-sm .col-lg-3,.ta-col-grouping.col-sm .col-lg-4,.ta-col-grouping.col-sm .col-lg-5,.ta-col-grouping.col-sm .col-lg-6,.ta-col-grouping.col-sm .col-xl,.ta-col-grouping.col-sm .col-xl-1,.ta-col-grouping.col-sm .col-xl-2,.ta-col-grouping.col-sm .col-xl-3,.ta-col-grouping.col-sm .col-xl-4,.ta-col-grouping.col-sm .col-xl-5,.ta-col-grouping.col-sm .col-xl-6,.ta-col-grouping.col-sm .col-xxl,.ta-col-grouping.col-sm .col-xxl-1,.ta-col-grouping.col-sm .col-xxl-2,.ta-col-grouping.col-sm .col-xxl-3,.ta-col-grouping.col-sm .col-xxl-4,.ta-col-grouping.col-sm .col-xxl-5,.ta-col-grouping.col-sm .col-xxl-6,.ta-col-grouping.col-sm-1 .col-xs,.ta-col-grouping.col-sm-1 .col-xs-1,.ta-col-grouping.col-sm-1 .col-xs-2,.ta-col-grouping.col-sm-1 .col-xs-3,.ta-col-grouping.col-sm-1 .col-xs-4,.ta-col-grouping.col-sm-1 .col-xs-5,.ta-col-grouping.col-sm-1 .col-xs-6,.ta-col-grouping.col-sm-1 .col-sm,.ta-col-grouping.col-sm-1 .col-sm-1,.ta-col-grouping.col-sm-1 .col-sm-2,.ta-col-grouping.col-sm-1 .col-sm-3,.ta-col-grouping.col-sm-1 .col-sm-4,.ta-col-grouping.col-sm-1 .col-sm-5,.ta-col-grouping.col-sm-1 .col-sm-6,.ta-col-grouping.col-sm-1 .col-md,.ta-col-grouping.col-sm-1 .col-md-1,.ta-col-grouping.col-sm-1 .col-md-2,.ta-col-grouping.col-sm-1 .col-md-3,.ta-col-grouping.col-sm-1 .col-md-4,.ta-col-grouping.col-sm-1 .col-md-5,.ta-col-grouping.col-sm-1 .col-md-6,.ta-col-grouping.col-sm-1 .col-lg,.ta-col-grouping.col-sm-1 .col-lg-1,.ta-col-grouping.col-sm-1 .col-lg-2,.ta-col-grouping.col-sm-1 .col-lg-3,.ta-col-grouping.col-sm-1 .col-lg-4,.ta-col-grouping.col-sm-1 .col-lg-5,.ta-col-grouping.col-sm-1 .col-lg-6,.ta-col-grouping.col-sm-1 .col-xl,.ta-col-grouping.col-sm-1 .col-xl-1,.ta-col-grouping.col-sm-1 .col-xl-2,.ta-col-grouping.col-sm-1 .col-xl-3,.ta-col-grouping.col-sm-1 .col-xl-4,.ta-col-grouping.col-sm-1 .col-xl-5,.ta-col-grouping.col-sm-1 .col-xl-6,.ta-col-grouping.col-sm-1 .col-xxl,.ta-col-grouping.col-sm-1 .col-xxl-1,.ta-col-grouping.col-sm-1 .col-xxl-2,.ta-col-grouping.col-sm-1 .col-xxl-3,.ta-col-grouping.col-sm-1 .col-xxl-4,.ta-col-grouping.col-sm-1 .col-xxl-5,.ta-col-grouping.col-sm-1 .col-xxl-6,.ta-col-grouping.col-sm-2 .col-xs,.ta-col-grouping.col-sm-2 .col-xs-1,.ta-col-grouping.col-sm-2 .col-xs-2,.ta-col-grouping.col-sm-2 .col-xs-3,.ta-col-grouping.col-sm-2 .col-xs-4,.ta-col-grouping.col-sm-2 .col-xs-5,.ta-col-grouping.col-sm-2 .col-xs-6,.ta-col-grouping.col-sm-2 .col-sm,.ta-col-grouping.col-sm-2 .col-sm-1,.ta-col-grouping.col-sm-2 .col-sm-2,.ta-col-grouping.col-sm-2 .col-sm-3,.ta-col-grouping.col-sm-2 .col-sm-4,.ta-col-grouping.col-sm-2 .col-sm-5,.ta-col-grouping.col-sm-2 .col-sm-6,.ta-col-grouping.col-sm-2 .col-md,.ta-col-grouping.col-sm-2 .col-md-1,.ta-col-grouping.col-sm-2 .col-md-2,.ta-col-grouping.col-sm-2 .col-md-3,.ta-col-grouping.col-sm-2 .col-md-4,.ta-col-grouping.col-sm-2 .col-md-5,.ta-col-grouping.col-sm-2 .col-md-6,.ta-col-grouping.col-sm-2 .col-lg,.ta-col-grouping.col-sm-2 .col-lg-1,.ta-col-grouping.col-sm-2 .col-lg-2,.ta-col-grouping.col-sm-2 .col-lg-3,.ta-col-grouping.col-sm-2 .col-lg-4,.ta-col-grouping.col-sm-2 .col-lg-5,.ta-col-grouping.col-sm-2 .col-lg-6,.ta-col-grouping.col-sm-2 .col-xl,.ta-col-grouping.col-sm-2 .col-xl-1,.ta-col-grouping.col-sm-2 .col-xl-2,.ta-col-grouping.col-sm-2 .col-xl-3,.ta-col-grouping.col-sm-2 .col-xl-4,.ta-col-grouping.col-sm-2 .col-xl-5,.ta-col-grouping.col-sm-2 .col-xl-6,.ta-col-grouping.col-sm-2 .col-xxl,.ta-col-grouping.col-sm-2 .col-xxl-1,.ta-col-grouping.col-sm-2 .col-xxl-2,.ta-col-grouping.col-sm-2 .col-xxl-3,.ta-col-grouping.col-sm-2 .col-xxl-4,.ta-col-grouping.col-sm-2 .col-xxl-5,.ta-col-grouping.col-sm-2 .col-xxl-6,.ta-col-grouping.col-sm-3 .col-xs,.ta-col-grouping.col-sm-3 .col-xs-1,.ta-col-grouping.col-sm-3 .col-xs-2,.ta-col-grouping.col-sm-3 .col-xs-3,.ta-col-grouping.col-sm-3 .col-xs-4,.ta-col-grouping.col-sm-3 .col-xs-5,.ta-col-grouping.col-sm-3 .col-xs-6,.ta-col-grouping.col-sm-3 .col-sm,.ta-col-grouping.col-sm-3 .col-sm-1,.ta-col-grouping.col-sm-3 .col-sm-2,.ta-col-grouping.col-sm-3 .col-sm-3,.ta-col-grouping.col-sm-3 .col-sm-4,.ta-col-grouping.col-sm-3 .col-sm-5,.ta-col-grouping.col-sm-3 .col-sm-6,.ta-col-grouping.col-sm-3 .col-md,.ta-col-grouping.col-sm-3 .col-md-1,.ta-col-grouping.col-sm-3 .col-md-2,.ta-col-grouping.col-sm-3 .col-md-3,.ta-col-grouping.col-sm-3 .col-md-4,.ta-col-grouping.col-sm-3 .col-md-5,.ta-col-grouping.col-sm-3 .col-md-6,.ta-col-grouping.col-sm-3 .col-lg,.ta-col-grouping.col-sm-3 .col-lg-1,.ta-col-grouping.col-sm-3 .col-lg-2,.ta-col-grouping.col-sm-3 .col-lg-3,.ta-col-grouping.col-sm-3 .col-lg-4,.ta-col-grouping.col-sm-3 .col-lg-5,.ta-col-grouping.col-sm-3 .col-lg-6,.ta-col-grouping.col-sm-3 .col-xl,.ta-col-grouping.col-sm-3 .col-xl-1,.ta-col-grouping.col-sm-3 .col-xl-2,.ta-col-grouping.col-sm-3 .col-xl-3,.ta-col-grouping.col-sm-3 .col-xl-4,.ta-col-grouping.col-sm-3 .col-xl-5,.ta-col-grouping.col-sm-3 .col-xl-6,.ta-col-grouping.col-sm-3 .col-xxl,.ta-col-grouping.col-sm-3 .col-xxl-1,.ta-col-grouping.col-sm-3 .col-xxl-2,.ta-col-grouping.col-sm-3 .col-xxl-3,.ta-col-grouping.col-sm-3 .col-xxl-4,.ta-col-grouping.col-sm-3 .col-xxl-5,.ta-col-grouping.col-sm-3 .col-xxl-6,.ta-col-grouping.col-sm-4 .col-xs,.ta-col-grouping.col-sm-4 .col-xs-1,.ta-col-grouping.col-sm-4 .col-xs-2,.ta-col-grouping.col-sm-4 .col-xs-3,.ta-col-grouping.col-sm-4 .col-xs-4,.ta-col-grouping.col-sm-4 .col-xs-5,.ta-col-grouping.col-sm-4 .col-xs-6,.ta-col-grouping.col-sm-4 .col-sm,.ta-col-grouping.col-sm-4 .col-sm-1,.ta-col-grouping.col-sm-4 .col-sm-2,.ta-col-grouping.col-sm-4 .col-sm-3,.ta-col-grouping.col-sm-4 .col-sm-4,.ta-col-grouping.col-sm-4 .col-sm-5,.ta-col-grouping.col-sm-4 .col-sm-6,.ta-col-grouping.col-sm-4 .col-md,.ta-col-grouping.col-sm-4 .col-md-1,.ta-col-grouping.col-sm-4 .col-md-2,.ta-col-grouping.col-sm-4 .col-md-3,.ta-col-grouping.col-sm-4 .col-md-4,.ta-col-grouping.col-sm-4 .col-md-5,.ta-col-grouping.col-sm-4 .col-md-6,.ta-col-grouping.col-sm-4 .col-lg,.ta-col-grouping.col-sm-4 .col-lg-1,.ta-col-grouping.col-sm-4 .col-lg-2,.ta-col-grouping.col-sm-4 .col-lg-3,.ta-col-grouping.col-sm-4 .col-lg-4,.ta-col-grouping.col-sm-4 .col-lg-5,.ta-col-grouping.col-sm-4 .col-lg-6,.ta-col-grouping.col-sm-4 .col-xl,.ta-col-grouping.col-sm-4 .col-xl-1,.ta-col-grouping.col-sm-4 .col-xl-2,.ta-col-grouping.col-sm-4 .col-xl-3,.ta-col-grouping.col-sm-4 .col-xl-4,.ta-col-grouping.col-sm-4 .col-xl-5,.ta-col-grouping.col-sm-4 .col-xl-6,.ta-col-grouping.col-sm-4 .col-xxl,.ta-col-grouping.col-sm-4 .col-xxl-1,.ta-col-grouping.col-sm-4 .col-xxl-2,.ta-col-grouping.col-sm-4 .col-xxl-3,.ta-col-grouping.col-sm-4 .col-xxl-4,.ta-col-grouping.col-sm-4 .col-xxl-5,.ta-col-grouping.col-sm-4 .col-xxl-6,.ta-col-grouping.col-sm-5 .col-xs,.ta-col-grouping.col-sm-5 .col-xs-1,.ta-col-grouping.col-sm-5 .col-xs-2,.ta-col-grouping.col-sm-5 .col-xs-3,.ta-col-grouping.col-sm-5 .col-xs-4,.ta-col-grouping.col-sm-5 .col-xs-5,.ta-col-grouping.col-sm-5 .col-xs-6,.ta-col-grouping.col-sm-5 .col-sm,.ta-col-grouping.col-sm-5 .col-sm-1,.ta-col-grouping.col-sm-5 .col-sm-2,.ta-col-grouping.col-sm-5 .col-sm-3,.ta-col-grouping.col-sm-5 .col-sm-4,.ta-col-grouping.col-sm-5 .col-sm-5,.ta-col-grouping.col-sm-5 .col-sm-6,.ta-col-grouping.col-sm-5 .col-md,.ta-col-grouping.col-sm-5 .col-md-1,.ta-col-grouping.col-sm-5 .col-md-2,.ta-col-grouping.col-sm-5 .col-md-3,.ta-col-grouping.col-sm-5 .col-md-4,.ta-col-grouping.col-sm-5 .col-md-5,.ta-col-grouping.col-sm-5 .col-md-6,.ta-col-grouping.col-sm-5 .col-lg,.ta-col-grouping.col-sm-5 .col-lg-1,.ta-col-grouping.col-sm-5 .col-lg-2,.ta-col-grouping.col-sm-5 .col-lg-3,.ta-col-grouping.col-sm-5 .col-lg-4,.ta-col-grouping.col-sm-5 .col-lg-5,.ta-col-grouping.col-sm-5 .col-lg-6,.ta-col-grouping.col-sm-5 .col-xl,.ta-col-grouping.col-sm-5 .col-xl-1,.ta-col-grouping.col-sm-5 .col-xl-2,.ta-col-grouping.col-sm-5 .col-xl-3,.ta-col-grouping.col-sm-5 .col-xl-4,.ta-col-grouping.col-sm-5 .col-xl-5,.ta-col-grouping.col-sm-5 .col-xl-6,.ta-col-grouping.col-sm-5 .col-xxl,.ta-col-grouping.col-sm-5 .col-xxl-1,.ta-col-grouping.col-sm-5 .col-xxl-2,.ta-col-grouping.col-sm-5 .col-xxl-3,.ta-col-grouping.col-sm-5 .col-xxl-4,.ta-col-grouping.col-sm-5 .col-xxl-5,.ta-col-grouping.col-sm-5 .col-xxl-6,.ta-col-grouping.col-sm-6 .col-xs,.ta-col-grouping.col-sm-6 .col-xs-1,.ta-col-grouping.col-sm-6 .col-xs-2,.ta-col-grouping.col-sm-6 .col-xs-3,.ta-col-grouping.col-sm-6 .col-xs-4,.ta-col-grouping.col-sm-6 .col-xs-5,.ta-col-grouping.col-sm-6 .col-xs-6,.ta-col-grouping.col-sm-6 .col-sm,.ta-col-grouping.col-sm-6 .col-sm-1,.ta-col-grouping.col-sm-6 .col-sm-2,.ta-col-grouping.col-sm-6 .col-sm-3,.ta-col-grouping.col-sm-6 .col-sm-4,.ta-col-grouping.col-sm-6 .col-sm-5,.ta-col-grouping.col-sm-6 .col-sm-6,.ta-col-grouping.col-sm-6 .col-md,.ta-col-grouping.col-sm-6 .col-md-1,.ta-col-grouping.col-sm-6 .col-md-2,.ta-col-grouping.col-sm-6 .col-md-3,.ta-col-grouping.col-sm-6 .col-md-4,.ta-col-grouping.col-sm-6 .col-md-5,.ta-col-grouping.col-sm-6 .col-md-6,.ta-col-grouping.col-sm-6 .col-lg,.ta-col-grouping.col-sm-6 .col-lg-1,.ta-col-grouping.col-sm-6 .col-lg-2,.ta-col-grouping.col-sm-6 .col-lg-3,.ta-col-grouping.col-sm-6 .col-lg-4,.ta-col-grouping.col-sm-6 .col-lg-5,.ta-col-grouping.col-sm-6 .col-lg-6,.ta-col-grouping.col-sm-6 .col-xl,.ta-col-grouping.col-sm-6 .col-xl-1,.ta-col-grouping.col-sm-6 .col-xl-2,.ta-col-grouping.col-sm-6 .col-xl-3,.ta-col-grouping.col-sm-6 .col-xl-4,.ta-col-grouping.col-sm-6 .col-xl-5,.ta-col-grouping.col-sm-6 .col-xl-6,.ta-col-grouping.col-sm-6 .col-xxl,.ta-col-grouping.col-sm-6 .col-xxl-1,.ta-col-grouping.col-sm-6 .col-xxl-2,.ta-col-grouping.col-sm-6 .col-xxl-3,.ta-col-grouping.col-sm-6 .col-xxl-4,.ta-col-grouping.col-sm-6 .col-xxl-5,.ta-col-grouping.col-sm-6 .col-xxl-6,.ta-col-grouping.col-md .col-xs,.ta-col-grouping.col-md .col-xs-1,.ta-col-grouping.col-md .col-xs-2,.ta-col-grouping.col-md .col-xs-3,.ta-col-grouping.col-md .col-xs-4,.ta-col-grouping.col-md .col-xs-5,.ta-col-grouping.col-md .col-xs-6,.ta-col-grouping.col-md .col-sm,.ta-col-grouping.col-md .col-sm-1,.ta-col-grouping.col-md .col-sm-2,.ta-col-grouping.col-md .col-sm-3,.ta-col-grouping.col-md .col-sm-4,.ta-col-grouping.col-md .col-sm-5,.ta-col-grouping.col-md .col-sm-6,.ta-col-grouping.col-md .col-md,.ta-col-grouping.col-md .col-md-1,.ta-col-grouping.col-md .col-md-2,.ta-col-grouping.col-md .col-md-3,.ta-col-grouping.col-md .col-md-4,.ta-col-grouping.col-md .col-md-5,.ta-col-grouping.col-md .col-md-6,.ta-col-grouping.col-md .col-lg,.ta-col-grouping.col-md .col-lg-1,.ta-col-grouping.col-md .col-lg-2,.ta-col-grouping.col-md .col-lg-3,.ta-col-grouping.col-md .col-lg-4,.ta-col-grouping.col-md .col-lg-5,.ta-col-grouping.col-md .col-lg-6,.ta-col-grouping.col-md .col-xl,.ta-col-grouping.col-md .col-xl-1,.ta-col-grouping.col-md .col-xl-2,.ta-col-grouping.col-md .col-xl-3,.ta-col-grouping.col-md .col-xl-4,.ta-col-grouping.col-md .col-xl-5,.ta-col-grouping.col-md .col-xl-6,.ta-col-grouping.col-md .col-xxl,.ta-col-grouping.col-md .col-xxl-1,.ta-col-grouping.col-md .col-xxl-2,.ta-col-grouping.col-md .col-xxl-3,.ta-col-grouping.col-md .col-xxl-4,.ta-col-grouping.col-md .col-xxl-5,.ta-col-grouping.col-md .col-xxl-6,.ta-col-grouping.col-md-1 .col-xs,.ta-col-grouping.col-md-1 .col-xs-1,.ta-col-grouping.col-md-1 .col-xs-2,.ta-col-grouping.col-md-1 .col-xs-3,.ta-col-grouping.col-md-1 .col-xs-4,.ta-col-grouping.col-md-1 .col-xs-5,.ta-col-grouping.col-md-1 .col-xs-6,.ta-col-grouping.col-md-1 .col-sm,.ta-col-grouping.col-md-1 .col-sm-1,.ta-col-grouping.col-md-1 .col-sm-2,.ta-col-grouping.col-md-1 .col-sm-3,.ta-col-grouping.col-md-1 .col-sm-4,.ta-col-grouping.col-md-1 .col-sm-5,.ta-col-grouping.col-md-1 .col-sm-6,.ta-col-grouping.col-md-1 .col-md,.ta-col-grouping.col-md-1 .col-md-1,.ta-col-grouping.col-md-1 .col-md-2,.ta-col-grouping.col-md-1 .col-md-3,.ta-col-grouping.col-md-1 .col-md-4,.ta-col-grouping.col-md-1 .col-md-5,.ta-col-grouping.col-md-1 .col-md-6,.ta-col-grouping.col-md-1 .col-lg,.ta-col-grouping.col-md-1 .col-lg-1,.ta-col-grouping.col-md-1 .col-lg-2,.ta-col-grouping.col-md-1 .col-lg-3,.ta-col-grouping.col-md-1 .col-lg-4,.ta-col-grouping.col-md-1 .col-lg-5,.ta-col-grouping.col-md-1 .col-lg-6,.ta-col-grouping.col-md-1 .col-xl,.ta-col-grouping.col-md-1 .col-xl-1,.ta-col-grouping.col-md-1 .col-xl-2,.ta-col-grouping.col-md-1 .col-xl-3,.ta-col-grouping.col-md-1 .col-xl-4,.ta-col-grouping.col-md-1 .col-xl-5,.ta-col-grouping.col-md-1 .col-xl-6,.ta-col-grouping.col-md-1 .col-xxl,.ta-col-grouping.col-md-1 .col-xxl-1,.ta-col-grouping.col-md-1 .col-xxl-2,.ta-col-grouping.col-md-1 .col-xxl-3,.ta-col-grouping.col-md-1 .col-xxl-4,.ta-col-grouping.col-md-1 .col-xxl-5,.ta-col-grouping.col-md-1 .col-xxl-6,.ta-col-grouping.col-md-2 .col-xs,.ta-col-grouping.col-md-2 .col-xs-1,.ta-col-grouping.col-md-2 .col-xs-2,.ta-col-grouping.col-md-2 .col-xs-3,.ta-col-grouping.col-md-2 .col-xs-4,.ta-col-grouping.col-md-2 .col-xs-5,.ta-col-grouping.col-md-2 .col-xs-6,.ta-col-grouping.col-md-2 .col-sm,.ta-col-grouping.col-md-2 .col-sm-1,.ta-col-grouping.col-md-2 .col-sm-2,.ta-col-grouping.col-md-2 .col-sm-3,.ta-col-grouping.col-md-2 .col-sm-4,.ta-col-grouping.col-md-2 .col-sm-5,.ta-col-grouping.col-md-2 .col-sm-6,.ta-col-grouping.col-md-2 .col-md,.ta-col-grouping.col-md-2 .col-md-1,.ta-col-grouping.col-md-2 .col-md-2,.ta-col-grouping.col-md-2 .col-md-3,.ta-col-grouping.col-md-2 .col-md-4,.ta-col-grouping.col-md-2 .col-md-5,.ta-col-grouping.col-md-2 .col-md-6,.ta-col-grouping.col-md-2 .col-lg,.ta-col-grouping.col-md-2 .col-lg-1,.ta-col-grouping.col-md-2 .col-lg-2,.ta-col-grouping.col-md-2 .col-lg-3,.ta-col-grouping.col-md-2 .col-lg-4,.ta-col-grouping.col-md-2 .col-lg-5,.ta-col-grouping.col-md-2 .col-lg-6,.ta-col-grouping.col-md-2 .col-xl,.ta-col-grouping.col-md-2 .col-xl-1,.ta-col-grouping.col-md-2 .col-xl-2,.ta-col-grouping.col-md-2 .col-xl-3,.ta-col-grouping.col-md-2 .col-xl-4,.ta-col-grouping.col-md-2 .col-xl-5,.ta-col-grouping.col-md-2 .col-xl-6,.ta-col-grouping.col-md-2 .col-xxl,.ta-col-grouping.col-md-2 .col-xxl-1,.ta-col-grouping.col-md-2 .col-xxl-2,.ta-col-grouping.col-md-2 .col-xxl-3,.ta-col-grouping.col-md-2 .col-xxl-4,.ta-col-grouping.col-md-2 .col-xxl-5,.ta-col-grouping.col-md-2 .col-xxl-6,.ta-col-grouping.col-md-3 .col-xs,.ta-col-grouping.col-md-3 .col-xs-1,.ta-col-grouping.col-md-3 .col-xs-2,.ta-col-grouping.col-md-3 .col-xs-3,.ta-col-grouping.col-md-3 .col-xs-4,.ta-col-grouping.col-md-3 .col-xs-5,.ta-col-grouping.col-md-3 .col-xs-6,.ta-col-grouping.col-md-3 .col-sm,.ta-col-grouping.col-md-3 .col-sm-1,.ta-col-grouping.col-md-3 .col-sm-2,.ta-col-grouping.col-md-3 .col-sm-3,.ta-col-grouping.col-md-3 .col-sm-4,.ta-col-grouping.col-md-3 .col-sm-5,.ta-col-grouping.col-md-3 .col-sm-6,.ta-col-grouping.col-md-3 .col-md,.ta-col-grouping.col-md-3 .col-md-1,.ta-col-grouping.col-md-3 .col-md-2,.ta-col-grouping.col-md-3 .col-md-3,.ta-col-grouping.col-md-3 .col-md-4,.ta-col-grouping.col-md-3 .col-md-5,.ta-col-grouping.col-md-3 .col-md-6,.ta-col-grouping.col-md-3 .col-lg,.ta-col-grouping.col-md-3 .col-lg-1,.ta-col-grouping.col-md-3 .col-lg-2,.ta-col-grouping.col-md-3 .col-lg-3,.ta-col-grouping.col-md-3 .col-lg-4,.ta-col-grouping.col-md-3 .col-lg-5,.ta-col-grouping.col-md-3 .col-lg-6,.ta-col-grouping.col-md-3 .col-xl,.ta-col-grouping.col-md-3 .col-xl-1,.ta-col-grouping.col-md-3 .col-xl-2,.ta-col-grouping.col-md-3 .col-xl-3,.ta-col-grouping.col-md-3 .col-xl-4,.ta-col-grouping.col-md-3 .col-xl-5,.ta-col-grouping.col-md-3 .col-xl-6,.ta-col-grouping.col-md-3 .col-xxl,.ta-col-grouping.col-md-3 .col-xxl-1,.ta-col-grouping.col-md-3 .col-xxl-2,.ta-col-grouping.col-md-3 .col-xxl-3,.ta-col-grouping.col-md-3 .col-xxl-4,.ta-col-grouping.col-md-3 .col-xxl-5,.ta-col-grouping.col-md-3 .col-xxl-6,.ta-col-grouping.col-md-4 .col-xs,.ta-col-grouping.col-md-4 .col-xs-1,.ta-col-grouping.col-md-4 .col-xs-2,.ta-col-grouping.col-md-4 .col-xs-3,.ta-col-grouping.col-md-4 .col-xs-4,.ta-col-grouping.col-md-4 .col-xs-5,.ta-col-grouping.col-md-4 .col-xs-6,.ta-col-grouping.col-md-4 .col-sm,.ta-col-grouping.col-md-4 .col-sm-1,.ta-col-grouping.col-md-4 .col-sm-2,.ta-col-grouping.col-md-4 .col-sm-3,.ta-col-grouping.col-md-4 .col-sm-4,.ta-col-grouping.col-md-4 .col-sm-5,.ta-col-grouping.col-md-4 .col-sm-6,.ta-col-grouping.col-md-4 .col-md,.ta-col-grouping.col-md-4 .col-md-1,.ta-col-grouping.col-md-4 .col-md-2,.ta-col-grouping.col-md-4 .col-md-3,.ta-col-grouping.col-md-4 .col-md-4,.ta-col-grouping.col-md-4 .col-md-5,.ta-col-grouping.col-md-4 .col-md-6,.ta-col-grouping.col-md-4 .col-lg,.ta-col-grouping.col-md-4 .col-lg-1,.ta-col-grouping.col-md-4 .col-lg-2,.ta-col-grouping.col-md-4 .col-lg-3,.ta-col-grouping.col-md-4 .col-lg-4,.ta-col-grouping.col-md-4 .col-lg-5,.ta-col-grouping.col-md-4 .col-lg-6,.ta-col-grouping.col-md-4 .col-xl,.ta-col-grouping.col-md-4 .col-xl-1,.ta-col-grouping.col-md-4 .col-xl-2,.ta-col-grouping.col-md-4 .col-xl-3,.ta-col-grouping.col-md-4 .col-xl-4,.ta-col-grouping.col-md-4 .col-xl-5,.ta-col-grouping.col-md-4 .col-xl-6,.ta-col-grouping.col-md-4 .col-xxl,.ta-col-grouping.col-md-4 .col-xxl-1,.ta-col-grouping.col-md-4 .col-xxl-2,.ta-col-grouping.col-md-4 .col-xxl-3,.ta-col-grouping.col-md-4 .col-xxl-4,.ta-col-grouping.col-md-4 .col-xxl-5,.ta-col-grouping.col-md-4 .col-xxl-6,.ta-col-grouping.col-md-5 .col-xs,.ta-col-grouping.col-md-5 .col-xs-1,.ta-col-grouping.col-md-5 .col-xs-2,.ta-col-grouping.col-md-5 .col-xs-3,.ta-col-grouping.col-md-5 .col-xs-4,.ta-col-grouping.col-md-5 .col-xs-5,.ta-col-grouping.col-md-5 .col-xs-6,.ta-col-grouping.col-md-5 .col-sm,.ta-col-grouping.col-md-5 .col-sm-1,.ta-col-grouping.col-md-5 .col-sm-2,.ta-col-grouping.col-md-5 .col-sm-3,.ta-col-grouping.col-md-5 .col-sm-4,.ta-col-grouping.col-md-5 .col-sm-5,.ta-col-grouping.col-md-5 .col-sm-6,.ta-col-grouping.col-md-5 .col-md,.ta-col-grouping.col-md-5 .col-md-1,.ta-col-grouping.col-md-5 .col-md-2,.ta-col-grouping.col-md-5 .col-md-3,.ta-col-grouping.col-md-5 .col-md-4,.ta-col-grouping.col-md-5 .col-md-5,.ta-col-grouping.col-md-5 .col-md-6,.ta-col-grouping.col-md-5 .col-lg,.ta-col-grouping.col-md-5 .col-lg-1,.ta-col-grouping.col-md-5 .col-lg-2,.ta-col-grouping.col-md-5 .col-lg-3,.ta-col-grouping.col-md-5 .col-lg-4,.ta-col-grouping.col-md-5 .col-lg-5,.ta-col-grouping.col-md-5 .col-lg-6,.ta-col-grouping.col-md-5 .col-xl,.ta-col-grouping.col-md-5 .col-xl-1,.ta-col-grouping.col-md-5 .col-xl-2,.ta-col-grouping.col-md-5 .col-xl-3,.ta-col-grouping.col-md-5 .col-xl-4,.ta-col-grouping.col-md-5 .col-xl-5,.ta-col-grouping.col-md-5 .col-xl-6,.ta-col-grouping.col-md-5 .col-xxl,.ta-col-grouping.col-md-5 .col-xxl-1,.ta-col-grouping.col-md-5 .col-xxl-2,.ta-col-grouping.col-md-5 .col-xxl-3,.ta-col-grouping.col-md-5 .col-xxl-4,.ta-col-grouping.col-md-5 .col-xxl-5,.ta-col-grouping.col-md-5 .col-xxl-6,.ta-col-grouping.col-md-6 .col-xs,.ta-col-grouping.col-md-6 .col-xs-1,.ta-col-grouping.col-md-6 .col-xs-2,.ta-col-grouping.col-md-6 .col-xs-3,.ta-col-grouping.col-md-6 .col-xs-4,.ta-col-grouping.col-md-6 .col-xs-5,.ta-col-grouping.col-md-6 .col-xs-6,.ta-col-grouping.col-md-6 .col-sm,.ta-col-grouping.col-md-6 .col-sm-1,.ta-col-grouping.col-md-6 .col-sm-2,.ta-col-grouping.col-md-6 .col-sm-3,.ta-col-grouping.col-md-6 .col-sm-4,.ta-col-grouping.col-md-6 .col-sm-5,.ta-col-grouping.col-md-6 .col-sm-6,.ta-col-grouping.col-md-6 .col-md,.ta-col-grouping.col-md-6 .col-md-1,.ta-col-grouping.col-md-6 .col-md-2,.ta-col-grouping.col-md-6 .col-md-3,.ta-col-grouping.col-md-6 .col-md-4,.ta-col-grouping.col-md-6 .col-md-5,.ta-col-grouping.col-md-6 .col-md-6,.ta-col-grouping.col-md-6 .col-lg,.ta-col-grouping.col-md-6 .col-lg-1,.ta-col-grouping.col-md-6 .col-lg-2,.ta-col-grouping.col-md-6 .col-lg-3,.ta-col-grouping.col-md-6 .col-lg-4,.ta-col-grouping.col-md-6 .col-lg-5,.ta-col-grouping.col-md-6 .col-lg-6,.ta-col-grouping.col-md-6 .col-xl,.ta-col-grouping.col-md-6 .col-xl-1,.ta-col-grouping.col-md-6 .col-xl-2,.ta-col-grouping.col-md-6 .col-xl-3,.ta-col-grouping.col-md-6 .col-xl-4,.ta-col-grouping.col-md-6 .col-xl-5,.ta-col-grouping.col-md-6 .col-xl-6,.ta-col-grouping.col-md-6 .col-xxl,.ta-col-grouping.col-md-6 .col-xxl-1,.ta-col-grouping.col-md-6 .col-xxl-2,.ta-col-grouping.col-md-6 .col-xxl-3,.ta-col-grouping.col-md-6 .col-xxl-4,.ta-col-grouping.col-md-6 .col-xxl-5,.ta-col-grouping.col-md-6 .col-xxl-6,.ta-col-grouping.col-lg .col-xs,.ta-col-grouping.col-lg .col-xs-1,.ta-col-grouping.col-lg .col-xs-2,.ta-col-grouping.col-lg .col-xs-3,.ta-col-grouping.col-lg .col-xs-4,.ta-col-grouping.col-lg .col-xs-5,.ta-col-grouping.col-lg .col-xs-6,.ta-col-grouping.col-lg .col-sm,.ta-col-grouping.col-lg .col-sm-1,.ta-col-grouping.col-lg .col-sm-2,.ta-col-grouping.col-lg .col-sm-3,.ta-col-grouping.col-lg .col-sm-4,.ta-col-grouping.col-lg .col-sm-5,.ta-col-grouping.col-lg .col-sm-6,.ta-col-grouping.col-lg .col-md,.ta-col-grouping.col-lg .col-md-1,.ta-col-grouping.col-lg .col-md-2,.ta-col-grouping.col-lg .col-md-3,.ta-col-grouping.col-lg .col-md-4,.ta-col-grouping.col-lg .col-md-5,.ta-col-grouping.col-lg .col-md-6,.ta-col-grouping.col-lg .col-lg,.ta-col-grouping.col-lg .col-lg-1,.ta-col-grouping.col-lg .col-lg-2,.ta-col-grouping.col-lg .col-lg-3,.ta-col-grouping.col-lg .col-lg-4,.ta-col-grouping.col-lg .col-lg-5,.ta-col-grouping.col-lg .col-lg-6,.ta-col-grouping.col-lg .col-xl,.ta-col-grouping.col-lg .col-xl-1,.ta-col-grouping.col-lg .col-xl-2,.ta-col-grouping.col-lg .col-xl-3,.ta-col-grouping.col-lg .col-xl-4,.ta-col-grouping.col-lg .col-xl-5,.ta-col-grouping.col-lg .col-xl-6,.ta-col-grouping.col-lg .col-xxl,.ta-col-grouping.col-lg .col-xxl-1,.ta-col-grouping.col-lg .col-xxl-2,.ta-col-grouping.col-lg .col-xxl-3,.ta-col-grouping.col-lg .col-xxl-4,.ta-col-grouping.col-lg .col-xxl-5,.ta-col-grouping.col-lg .col-xxl-6,.ta-col-grouping.col-lg-1 .col-xs,.ta-col-grouping.col-lg-1 .col-xs-1,.ta-col-grouping.col-lg-1 .col-xs-2,.ta-col-grouping.col-lg-1 .col-xs-3,.ta-col-grouping.col-lg-1 .col-xs-4,.ta-col-grouping.col-lg-1 .col-xs-5,.ta-col-grouping.col-lg-1 .col-xs-6,.ta-col-grouping.col-lg-1 .col-sm,.ta-col-grouping.col-lg-1 .col-sm-1,.ta-col-grouping.col-lg-1 .col-sm-2,.ta-col-grouping.col-lg-1 .col-sm-3,.ta-col-grouping.col-lg-1 .col-sm-4,.ta-col-grouping.col-lg-1 .col-sm-5,.ta-col-grouping.col-lg-1 .col-sm-6,.ta-col-grouping.col-lg-1 .col-md,.ta-col-grouping.col-lg-1 .col-md-1,.ta-col-grouping.col-lg-1 .col-md-2,.ta-col-grouping.col-lg-1 .col-md-3,.ta-col-grouping.col-lg-1 .col-md-4,.ta-col-grouping.col-lg-1 .col-md-5,.ta-col-grouping.col-lg-1 .col-md-6,.ta-col-grouping.col-lg-1 .col-lg,.ta-col-grouping.col-lg-1 .col-lg-1,.ta-col-grouping.col-lg-1 .col-lg-2,.ta-col-grouping.col-lg-1 .col-lg-3,.ta-col-grouping.col-lg-1 .col-lg-4,.ta-col-grouping.col-lg-1 .col-lg-5,.ta-col-grouping.col-lg-1 .col-lg-6,.ta-col-grouping.col-lg-1 .col-xl,.ta-col-grouping.col-lg-1 .col-xl-1,.ta-col-grouping.col-lg-1 .col-xl-2,.ta-col-grouping.col-lg-1 .col-xl-3,.ta-col-grouping.col-lg-1 .col-xl-4,.ta-col-grouping.col-lg-1 .col-xl-5,.ta-col-grouping.col-lg-1 .col-xl-6,.ta-col-grouping.col-lg-1 .col-xxl,.ta-col-grouping.col-lg-1 .col-xxl-1,.ta-col-grouping.col-lg-1 .col-xxl-2,.ta-col-grouping.col-lg-1 .col-xxl-3,.ta-col-grouping.col-lg-1 .col-xxl-4,.ta-col-grouping.col-lg-1 .col-xxl-5,.ta-col-grouping.col-lg-1 .col-xxl-6,.ta-col-grouping.col-lg-2 .col-xs,.ta-col-grouping.col-lg-2 .col-xs-1,.ta-col-grouping.col-lg-2 .col-xs-2,.ta-col-grouping.col-lg-2 .col-xs-3,.ta-col-grouping.col-lg-2 .col-xs-4,.ta-col-grouping.col-lg-2 .col-xs-5,.ta-col-grouping.col-lg-2 .col-xs-6,.ta-col-grouping.col-lg-2 .col-sm,.ta-col-grouping.col-lg-2 .col-sm-1,.ta-col-grouping.col-lg-2 .col-sm-2,.ta-col-grouping.col-lg-2 .col-sm-3,.ta-col-grouping.col-lg-2 .col-sm-4,.ta-col-grouping.col-lg-2 .col-sm-5,.ta-col-grouping.col-lg-2 .col-sm-6,.ta-col-grouping.col-lg-2 .col-md,.ta-col-grouping.col-lg-2 .col-md-1,.ta-col-grouping.col-lg-2 .col-md-2,.ta-col-grouping.col-lg-2 .col-md-3,.ta-col-grouping.col-lg-2 .col-md-4,.ta-col-grouping.col-lg-2 .col-md-5,.ta-col-grouping.col-lg-2 .col-md-6,.ta-col-grouping.col-lg-2 .col-lg,.ta-col-grouping.col-lg-2 .col-lg-1,.ta-col-grouping.col-lg-2 .col-lg-2,.ta-col-grouping.col-lg-2 .col-lg-3,.ta-col-grouping.col-lg-2 .col-lg-4,.ta-col-grouping.col-lg-2 .col-lg-5,.ta-col-grouping.col-lg-2 .col-lg-6,.ta-col-grouping.col-lg-2 .col-xl,.ta-col-grouping.col-lg-2 .col-xl-1,.ta-col-grouping.col-lg-2 .col-xl-2,.ta-col-grouping.col-lg-2 .col-xl-3,.ta-col-grouping.col-lg-2 .col-xl-4,.ta-col-grouping.col-lg-2 .col-xl-5,.ta-col-grouping.col-lg-2 .col-xl-6,.ta-col-grouping.col-lg-2 .col-xxl,.ta-col-grouping.col-lg-2 .col-xxl-1,.ta-col-grouping.col-lg-2 .col-xxl-2,.ta-col-grouping.col-lg-2 .col-xxl-3,.ta-col-grouping.col-lg-2 .col-xxl-4,.ta-col-grouping.col-lg-2 .col-xxl-5,.ta-col-grouping.col-lg-2 .col-xxl-6,.ta-col-grouping.col-lg-3 .col-xs,.ta-col-grouping.col-lg-3 .col-xs-1,.ta-col-grouping.col-lg-3 .col-xs-2,.ta-col-grouping.col-lg-3 .col-xs-3,.ta-col-grouping.col-lg-3 .col-xs-4,.ta-col-grouping.col-lg-3 .col-xs-5,.ta-col-grouping.col-lg-3 .col-xs-6,.ta-col-grouping.col-lg-3 .col-sm,.ta-col-grouping.col-lg-3 .col-sm-1,.ta-col-grouping.col-lg-3 .col-sm-2,.ta-col-grouping.col-lg-3 .col-sm-3,.ta-col-grouping.col-lg-3 .col-sm-4,.ta-col-grouping.col-lg-3 .col-sm-5,.ta-col-grouping.col-lg-3 .col-sm-6,.ta-col-grouping.col-lg-3 .col-md,.ta-col-grouping.col-lg-3 .col-md-1,.ta-col-grouping.col-lg-3 .col-md-2,.ta-col-grouping.col-lg-3 .col-md-3,.ta-col-grouping.col-lg-3 .col-md-4,.ta-col-grouping.col-lg-3 .col-md-5,.ta-col-grouping.col-lg-3 .col-md-6,.ta-col-grouping.col-lg-3 .col-lg,.ta-col-grouping.col-lg-3 .col-lg-1,.ta-col-grouping.col-lg-3 .col-lg-2,.ta-col-grouping.col-lg-3 .col-lg-3,.ta-col-grouping.col-lg-3 .col-lg-4,.ta-col-grouping.col-lg-3 .col-lg-5,.ta-col-grouping.col-lg-3 .col-lg-6,.ta-col-grouping.col-lg-3 .col-xl,.ta-col-grouping.col-lg-3 .col-xl-1,.ta-col-grouping.col-lg-3 .col-xl-2,.ta-col-grouping.col-lg-3 .col-xl-3,.ta-col-grouping.col-lg-3 .col-xl-4,.ta-col-grouping.col-lg-3 .col-xl-5,.ta-col-grouping.col-lg-3 .col-xl-6,.ta-col-grouping.col-lg-3 .col-xxl,.ta-col-grouping.col-lg-3 .col-xxl-1,.ta-col-grouping.col-lg-3 .col-xxl-2,.ta-col-grouping.col-lg-3 .col-xxl-3,.ta-col-grouping.col-lg-3 .col-xxl-4,.ta-col-grouping.col-lg-3 .col-xxl-5,.ta-col-grouping.col-lg-3 .col-xxl-6,.ta-col-grouping.col-lg-4 .col-xs,.ta-col-grouping.col-lg-4 .col-xs-1,.ta-col-grouping.col-lg-4 .col-xs-2,.ta-col-grouping.col-lg-4 .col-xs-3,.ta-col-grouping.col-lg-4 .col-xs-4,.ta-col-grouping.col-lg-4 .col-xs-5,.ta-col-grouping.col-lg-4 .col-xs-6,.ta-col-grouping.col-lg-4 .col-sm,.ta-col-grouping.col-lg-4 .col-sm-1,.ta-col-grouping.col-lg-4 .col-sm-2,.ta-col-grouping.col-lg-4 .col-sm-3,.ta-col-grouping.col-lg-4 .col-sm-4,.ta-col-grouping.col-lg-4 .col-sm-5,.ta-col-grouping.col-lg-4 .col-sm-6,.ta-col-grouping.col-lg-4 .col-md,.ta-col-grouping.col-lg-4 .col-md-1,.ta-col-grouping.col-lg-4 .col-md-2,.ta-col-grouping.col-lg-4 .col-md-3,.ta-col-grouping.col-lg-4 .col-md-4,.ta-col-grouping.col-lg-4 .col-md-5,.ta-col-grouping.col-lg-4 .col-md-6,.ta-col-grouping.col-lg-4 .col-lg,.ta-col-grouping.col-lg-4 .col-lg-1,.ta-col-grouping.col-lg-4 .col-lg-2,.ta-col-grouping.col-lg-4 .col-lg-3,.ta-col-grouping.col-lg-4 .col-lg-4,.ta-col-grouping.col-lg-4 .col-lg-5,.ta-col-grouping.col-lg-4 .col-lg-6,.ta-col-grouping.col-lg-4 .col-xl,.ta-col-grouping.col-lg-4 .col-xl-1,.ta-col-grouping.col-lg-4 .col-xl-2,.ta-col-grouping.col-lg-4 .col-xl-3,.ta-col-grouping.col-lg-4 .col-xl-4,.ta-col-grouping.col-lg-4 .col-xl-5,.ta-col-grouping.col-lg-4 .col-xl-6,.ta-col-grouping.col-lg-4 .col-xxl,.ta-col-grouping.col-lg-4 .col-xxl-1,.ta-col-grouping.col-lg-4 .col-xxl-2,.ta-col-grouping.col-lg-4 .col-xxl-3,.ta-col-grouping.col-lg-4 .col-xxl-4,.ta-col-grouping.col-lg-4 .col-xxl-5,.ta-col-grouping.col-lg-4 .col-xxl-6,.ta-col-grouping.col-lg-5 .col-xs,.ta-col-grouping.col-lg-5 .col-xs-1,.ta-col-grouping.col-lg-5 .col-xs-2,.ta-col-grouping.col-lg-5 .col-xs-3,.ta-col-grouping.col-lg-5 .col-xs-4,.ta-col-grouping.col-lg-5 .col-xs-5,.ta-col-grouping.col-lg-5 .col-xs-6,.ta-col-grouping.col-lg-5 .col-sm,.ta-col-grouping.col-lg-5 .col-sm-1,.ta-col-grouping.col-lg-5 .col-sm-2,.ta-col-grouping.col-lg-5 .col-sm-3,.ta-col-grouping.col-lg-5 .col-sm-4,.ta-col-grouping.col-lg-5 .col-sm-5,.ta-col-grouping.col-lg-5 .col-sm-6,.ta-col-grouping.col-lg-5 .col-md,.ta-col-grouping.col-lg-5 .col-md-1,.ta-col-grouping.col-lg-5 .col-md-2,.ta-col-grouping.col-lg-5 .col-md-3,.ta-col-grouping.col-lg-5 .col-md-4,.ta-col-grouping.col-lg-5 .col-md-5,.ta-col-grouping.col-lg-5 .col-md-6,.ta-col-grouping.col-lg-5 .col-lg,.ta-col-grouping.col-lg-5 .col-lg-1,.ta-col-grouping.col-lg-5 .col-lg-2,.ta-col-grouping.col-lg-5 .col-lg-3,.ta-col-grouping.col-lg-5 .col-lg-4,.ta-col-grouping.col-lg-5 .col-lg-5,.ta-col-grouping.col-lg-5 .col-lg-6,.ta-col-grouping.col-lg-5 .col-xl,.ta-col-grouping.col-lg-5 .col-xl-1,.ta-col-grouping.col-lg-5 .col-xl-2,.ta-col-grouping.col-lg-5 .col-xl-3,.ta-col-grouping.col-lg-5 .col-xl-4,.ta-col-grouping.col-lg-5 .col-xl-5,.ta-col-grouping.col-lg-5 .col-xl-6,.ta-col-grouping.col-lg-5 .col-xxl,.ta-col-grouping.col-lg-5 .col-xxl-1,.ta-col-grouping.col-lg-5 .col-xxl-2,.ta-col-grouping.col-lg-5 .col-xxl-3,.ta-col-grouping.col-lg-5 .col-xxl-4,.ta-col-grouping.col-lg-5 .col-xxl-5,.ta-col-grouping.col-lg-5 .col-xxl-6,.ta-col-grouping.col-lg-6 .col-xs,.ta-col-grouping.col-lg-6 .col-xs-1,.ta-col-grouping.col-lg-6 .col-xs-2,.ta-col-grouping.col-lg-6 .col-xs-3,.ta-col-grouping.col-lg-6 .col-xs-4,.ta-col-grouping.col-lg-6 .col-xs-5,.ta-col-grouping.col-lg-6 .col-xs-6,.ta-col-grouping.col-lg-6 .col-sm,.ta-col-grouping.col-lg-6 .col-sm-1,.ta-col-grouping.col-lg-6 .col-sm-2,.ta-col-grouping.col-lg-6 .col-sm-3,.ta-col-grouping.col-lg-6 .col-sm-4,.ta-col-grouping.col-lg-6 .col-sm-5,.ta-col-grouping.col-lg-6 .col-sm-6,.ta-col-grouping.col-lg-6 .col-md,.ta-col-grouping.col-lg-6 .col-md-1,.ta-col-grouping.col-lg-6 .col-md-2,.ta-col-grouping.col-lg-6 .col-md-3,.ta-col-grouping.col-lg-6 .col-md-4,.ta-col-grouping.col-lg-6 .col-md-5,.ta-col-grouping.col-lg-6 .col-md-6,.ta-col-grouping.col-lg-6 .col-lg,.ta-col-grouping.col-lg-6 .col-lg-1,.ta-col-grouping.col-lg-6 .col-lg-2,.ta-col-grouping.col-lg-6 .col-lg-3,.ta-col-grouping.col-lg-6 .col-lg-4,.ta-col-grouping.col-lg-6 .col-lg-5,.ta-col-grouping.col-lg-6 .col-lg-6,.ta-col-grouping.col-lg-6 .col-xl,.ta-col-grouping.col-lg-6 .col-xl-1,.ta-col-grouping.col-lg-6 .col-xl-2,.ta-col-grouping.col-lg-6 .col-xl-3,.ta-col-grouping.col-lg-6 .col-xl-4,.ta-col-grouping.col-lg-6 .col-xl-5,.ta-col-grouping.col-lg-6 .col-xl-6,.ta-col-grouping.col-lg-6 .col-xxl,.ta-col-grouping.col-lg-6 .col-xxl-1,.ta-col-grouping.col-lg-6 .col-xxl-2,.ta-col-grouping.col-lg-6 .col-xxl-3,.ta-col-grouping.col-lg-6 .col-xxl-4,.ta-col-grouping.col-lg-6 .col-xxl-5,.ta-col-grouping.col-lg-6 .col-xxl-6,.ta-col-grouping.col-xl .col-xs,.ta-col-grouping.col-xl .col-xs-1,.ta-col-grouping.col-xl .col-xs-2,.ta-col-grouping.col-xl .col-xs-3,.ta-col-grouping.col-xl .col-xs-4,.ta-col-grouping.col-xl .col-xs-5,.ta-col-grouping.col-xl .col-xs-6,.ta-col-grouping.col-xl .col-sm,.ta-col-grouping.col-xl .col-sm-1,.ta-col-grouping.col-xl .col-sm-2,.ta-col-grouping.col-xl .col-sm-3,.ta-col-grouping.col-xl .col-sm-4,.ta-col-grouping.col-xl .col-sm-5,.ta-col-grouping.col-xl .col-sm-6,.ta-col-grouping.col-xl .col-md,.ta-col-grouping.col-xl .col-md-1,.ta-col-grouping.col-xl .col-md-2,.ta-col-grouping.col-xl .col-md-3,.ta-col-grouping.col-xl .col-md-4,.ta-col-grouping.col-xl .col-md-5,.ta-col-grouping.col-xl .col-md-6,.ta-col-grouping.col-xl .col-lg,.ta-col-grouping.col-xl .col-lg-1,.ta-col-grouping.col-xl .col-lg-2,.ta-col-grouping.col-xl .col-lg-3,.ta-col-grouping.col-xl .col-lg-4,.ta-col-grouping.col-xl .col-lg-5,.ta-col-grouping.col-xl .col-lg-6,.ta-col-grouping.col-xl .col-xl,.ta-col-grouping.col-xl .col-xl-1,.ta-col-grouping.col-xl .col-xl-2,.ta-col-grouping.col-xl .col-xl-3,.ta-col-grouping.col-xl .col-xl-4,.ta-col-grouping.col-xl .col-xl-5,.ta-col-grouping.col-xl .col-xl-6,.ta-col-grouping.col-xl .col-xxl,.ta-col-grouping.col-xl .col-xxl-1,.ta-col-grouping.col-xl .col-xxl-2,.ta-col-grouping.col-xl .col-xxl-3,.ta-col-grouping.col-xl .col-xxl-4,.ta-col-grouping.col-xl .col-xxl-5,.ta-col-grouping.col-xl .col-xxl-6,.ta-col-grouping.col-xl-1 .col-xs,.ta-col-grouping.col-xl-1 .col-xs-1,.ta-col-grouping.col-xl-1 .col-xs-2,.ta-col-grouping.col-xl-1 .col-xs-3,.ta-col-grouping.col-xl-1 .col-xs-4,.ta-col-grouping.col-xl-1 .col-xs-5,.ta-col-grouping.col-xl-1 .col-xs-6,.ta-col-grouping.col-xl-1 .col-sm,.ta-col-grouping.col-xl-1 .col-sm-1,.ta-col-grouping.col-xl-1 .col-sm-2,.ta-col-grouping.col-xl-1 .col-sm-3,.ta-col-grouping.col-xl-1 .col-sm-4,.ta-col-grouping.col-xl-1 .col-sm-5,.ta-col-grouping.col-xl-1 .col-sm-6,.ta-col-grouping.col-xl-1 .col-md,.ta-col-grouping.col-xl-1 .col-md-1,.ta-col-grouping.col-xl-1 .col-md-2,.ta-col-grouping.col-xl-1 .col-md-3,.ta-col-grouping.col-xl-1 .col-md-4,.ta-col-grouping.col-xl-1 .col-md-5,.ta-col-grouping.col-xl-1 .col-md-6,.ta-col-grouping.col-xl-1 .col-lg,.ta-col-grouping.col-xl-1 .col-lg-1,.ta-col-grouping.col-xl-1 .col-lg-2,.ta-col-grouping.col-xl-1 .col-lg-3,.ta-col-grouping.col-xl-1 .col-lg-4,.ta-col-grouping.col-xl-1 .col-lg-5,.ta-col-grouping.col-xl-1 .col-lg-6,.ta-col-grouping.col-xl-1 .col-xl,.ta-col-grouping.col-xl-1 .col-xl-1,.ta-col-grouping.col-xl-1 .col-xl-2,.ta-col-grouping.col-xl-1 .col-xl-3,.ta-col-grouping.col-xl-1 .col-xl-4,.ta-col-grouping.col-xl-1 .col-xl-5,.ta-col-grouping.col-xl-1 .col-xl-6,.ta-col-grouping.col-xl-1 .col-xxl,.ta-col-grouping.col-xl-1 .col-xxl-1,.ta-col-grouping.col-xl-1 .col-xxl-2,.ta-col-grouping.col-xl-1 .col-xxl-3,.ta-col-grouping.col-xl-1 .col-xxl-4,.ta-col-grouping.col-xl-1 .col-xxl-5,.ta-col-grouping.col-xl-1 .col-xxl-6,.ta-col-grouping.col-xl-2 .col-xs,.ta-col-grouping.col-xl-2 .col-xs-1,.ta-col-grouping.col-xl-2 .col-xs-2,.ta-col-grouping.col-xl-2 .col-xs-3,.ta-col-grouping.col-xl-2 .col-xs-4,.ta-col-grouping.col-xl-2 .col-xs-5,.ta-col-grouping.col-xl-2 .col-xs-6,.ta-col-grouping.col-xl-2 .col-sm,.ta-col-grouping.col-xl-2 .col-sm-1,.ta-col-grouping.col-xl-2 .col-sm-2,.ta-col-grouping.col-xl-2 .col-sm-3,.ta-col-grouping.col-xl-2 .col-sm-4,.ta-col-grouping.col-xl-2 .col-sm-5,.ta-col-grouping.col-xl-2 .col-sm-6,.ta-col-grouping.col-xl-2 .col-md,.ta-col-grouping.col-xl-2 .col-md-1,.ta-col-grouping.col-xl-2 .col-md-2,.ta-col-grouping.col-xl-2 .col-md-3,.ta-col-grouping.col-xl-2 .col-md-4,.ta-col-grouping.col-xl-2 .col-md-5,.ta-col-grouping.col-xl-2 .col-md-6,.ta-col-grouping.col-xl-2 .col-lg,.ta-col-grouping.col-xl-2 .col-lg-1,.ta-col-grouping.col-xl-2 .col-lg-2,.ta-col-grouping.col-xl-2 .col-lg-3,.ta-col-grouping.col-xl-2 .col-lg-4,.ta-col-grouping.col-xl-2 .col-lg-5,.ta-col-grouping.col-xl-2 .col-lg-6,.ta-col-grouping.col-xl-2 .col-xl,.ta-col-grouping.col-xl-2 .col-xl-1,.ta-col-grouping.col-xl-2 .col-xl-2,.ta-col-grouping.col-xl-2 .col-xl-3,.ta-col-grouping.col-xl-2 .col-xl-4,.ta-col-grouping.col-xl-2 .col-xl-5,.ta-col-grouping.col-xl-2 .col-xl-6,.ta-col-grouping.col-xl-2 .col-xxl,.ta-col-grouping.col-xl-2 .col-xxl-1,.ta-col-grouping.col-xl-2 .col-xxl-2,.ta-col-grouping.col-xl-2 .col-xxl-3,.ta-col-grouping.col-xl-2 .col-xxl-4,.ta-col-grouping.col-xl-2 .col-xxl-5,.ta-col-grouping.col-xl-2 .col-xxl-6,.ta-col-grouping.col-xl-3 .col-xs,.ta-col-grouping.col-xl-3 .col-xs-1,.ta-col-grouping.col-xl-3 .col-xs-2,.ta-col-grouping.col-xl-3 .col-xs-3,.ta-col-grouping.col-xl-3 .col-xs-4,.ta-col-grouping.col-xl-3 .col-xs-5,.ta-col-grouping.col-xl-3 .col-xs-6,.ta-col-grouping.col-xl-3 .col-sm,.ta-col-grouping.col-xl-3 .col-sm-1,.ta-col-grouping.col-xl-3 .col-sm-2,.ta-col-grouping.col-xl-3 .col-sm-3,.ta-col-grouping.col-xl-3 .col-sm-4,.ta-col-grouping.col-xl-3 .col-sm-5,.ta-col-grouping.col-xl-3 .col-sm-6,.ta-col-grouping.col-xl-3 .col-md,.ta-col-grouping.col-xl-3 .col-md-1,.ta-col-grouping.col-xl-3 .col-md-2,.ta-col-grouping.col-xl-3 .col-md-3,.ta-col-grouping.col-xl-3 .col-md-4,.ta-col-grouping.col-xl-3 .col-md-5,.ta-col-grouping.col-xl-3 .col-md-6,.ta-col-grouping.col-xl-3 .col-lg,.ta-col-grouping.col-xl-3 .col-lg-1,.ta-col-grouping.col-xl-3 .col-lg-2,.ta-col-grouping.col-xl-3 .col-lg-3,.ta-col-grouping.col-xl-3 .col-lg-4,.ta-col-grouping.col-xl-3 .col-lg-5,.ta-col-grouping.col-xl-3 .col-lg-6,.ta-col-grouping.col-xl-3 .col-xl,.ta-col-grouping.col-xl-3 .col-xl-1,.ta-col-grouping.col-xl-3 .col-xl-2,.ta-col-grouping.col-xl-3 .col-xl-3,.ta-col-grouping.col-xl-3 .col-xl-4,.ta-col-grouping.col-xl-3 .col-xl-5,.ta-col-grouping.col-xl-3 .col-xl-6,.ta-col-grouping.col-xl-3 .col-xxl,.ta-col-grouping.col-xl-3 .col-xxl-1,.ta-col-grouping.col-xl-3 .col-xxl-2,.ta-col-grouping.col-xl-3 .col-xxl-3,.ta-col-grouping.col-xl-3 .col-xxl-4,.ta-col-grouping.col-xl-3 .col-xxl-5,.ta-col-grouping.col-xl-3 .col-xxl-6,.ta-col-grouping.col-xl-4 .col-xs,.ta-col-grouping.col-xl-4 .col-xs-1,.ta-col-grouping.col-xl-4 .col-xs-2,.ta-col-grouping.col-xl-4 .col-xs-3,.ta-col-grouping.col-xl-4 .col-xs-4,.ta-col-grouping.col-xl-4 .col-xs-5,.ta-col-grouping.col-xl-4 .col-xs-6,.ta-col-grouping.col-xl-4 .col-sm,.ta-col-grouping.col-xl-4 .col-sm-1,.ta-col-grouping.col-xl-4 .col-sm-2,.ta-col-grouping.col-xl-4 .col-sm-3,.ta-col-grouping.col-xl-4 .col-sm-4,.ta-col-grouping.col-xl-4 .col-sm-5,.ta-col-grouping.col-xl-4 .col-sm-6,.ta-col-grouping.col-xl-4 .col-md,.ta-col-grouping.col-xl-4 .col-md-1,.ta-col-grouping.col-xl-4 .col-md-2,.ta-col-grouping.col-xl-4 .col-md-3,.ta-col-grouping.col-xl-4 .col-md-4,.ta-col-grouping.col-xl-4 .col-md-5,.ta-col-grouping.col-xl-4 .col-md-6,.ta-col-grouping.col-xl-4 .col-lg,.ta-col-grouping.col-xl-4 .col-lg-1,.ta-col-grouping.col-xl-4 .col-lg-2,.ta-col-grouping.col-xl-4 .col-lg-3,.ta-col-grouping.col-xl-4 .col-lg-4,.ta-col-grouping.col-xl-4 .col-lg-5,.ta-col-grouping.col-xl-4 .col-lg-6,.ta-col-grouping.col-xl-4 .col-xl,.ta-col-grouping.col-xl-4 .col-xl-1,.ta-col-grouping.col-xl-4 .col-xl-2,.ta-col-grouping.col-xl-4 .col-xl-3,.ta-col-grouping.col-xl-4 .col-xl-4,.ta-col-grouping.col-xl-4 .col-xl-5,.ta-col-grouping.col-xl-4 .col-xl-6,.ta-col-grouping.col-xl-4 .col-xxl,.ta-col-grouping.col-xl-4 .col-xxl-1,.ta-col-grouping.col-xl-4 .col-xxl-2,.ta-col-grouping.col-xl-4 .col-xxl-3,.ta-col-grouping.col-xl-4 .col-xxl-4,.ta-col-grouping.col-xl-4 .col-xxl-5,.ta-col-grouping.col-xl-4 .col-xxl-6,.ta-col-grouping.col-xl-5 .col-xs,.ta-col-grouping.col-xl-5 .col-xs-1,.ta-col-grouping.col-xl-5 .col-xs-2,.ta-col-grouping.col-xl-5 .col-xs-3,.ta-col-grouping.col-xl-5 .col-xs-4,.ta-col-grouping.col-xl-5 .col-xs-5,.ta-col-grouping.col-xl-5 .col-xs-6,.ta-col-grouping.col-xl-5 .col-sm,.ta-col-grouping.col-xl-5 .col-sm-1,.ta-col-grouping.col-xl-5 .col-sm-2,.ta-col-grouping.col-xl-5 .col-sm-3,.ta-col-grouping.col-xl-5 .col-sm-4,.ta-col-grouping.col-xl-5 .col-sm-5,.ta-col-grouping.col-xl-5 .col-sm-6,.ta-col-grouping.col-xl-5 .col-md,.ta-col-grouping.col-xl-5 .col-md-1,.ta-col-grouping.col-xl-5 .col-md-2,.ta-col-grouping.col-xl-5 .col-md-3,.ta-col-grouping.col-xl-5 .col-md-4,.ta-col-grouping.col-xl-5 .col-md-5,.ta-col-grouping.col-xl-5 .col-md-6,.ta-col-grouping.col-xl-5 .col-lg,.ta-col-grouping.col-xl-5 .col-lg-1,.ta-col-grouping.col-xl-5 .col-lg-2,.ta-col-grouping.col-xl-5 .col-lg-3,.ta-col-grouping.col-xl-5 .col-lg-4,.ta-col-grouping.col-xl-5 .col-lg-5,.ta-col-grouping.col-xl-5 .col-lg-6,.ta-col-grouping.col-xl-5 .col-xl,.ta-col-grouping.col-xl-5 .col-xl-1,.ta-col-grouping.col-xl-5 .col-xl-2,.ta-col-grouping.col-xl-5 .col-xl-3,.ta-col-grouping.col-xl-5 .col-xl-4,.ta-col-grouping.col-xl-5 .col-xl-5,.ta-col-grouping.col-xl-5 .col-xl-6,.ta-col-grouping.col-xl-5 .col-xxl,.ta-col-grouping.col-xl-5 .col-xxl-1,.ta-col-grouping.col-xl-5 .col-xxl-2,.ta-col-grouping.col-xl-5 .col-xxl-3,.ta-col-grouping.col-xl-5 .col-xxl-4,.ta-col-grouping.col-xl-5 .col-xxl-5,.ta-col-grouping.col-xl-5 .col-xxl-6,.ta-col-grouping.col-xl-6 .col-xs,.ta-col-grouping.col-xl-6 .col-xs-1,.ta-col-grouping.col-xl-6 .col-xs-2,.ta-col-grouping.col-xl-6 .col-xs-3,.ta-col-grouping.col-xl-6 .col-xs-4,.ta-col-grouping.col-xl-6 .col-xs-5,.ta-col-grouping.col-xl-6 .col-xs-6,.ta-col-grouping.col-xl-6 .col-sm,.ta-col-grouping.col-xl-6 .col-sm-1,.ta-col-grouping.col-xl-6 .col-sm-2,.ta-col-grouping.col-xl-6 .col-sm-3,.ta-col-grouping.col-xl-6 .col-sm-4,.ta-col-grouping.col-xl-6 .col-sm-5,.ta-col-grouping.col-xl-6 .col-sm-6,.ta-col-grouping.col-xl-6 .col-md,.ta-col-grouping.col-xl-6 .col-md-1,.ta-col-grouping.col-xl-6 .col-md-2,.ta-col-grouping.col-xl-6 .col-md-3,.ta-col-grouping.col-xl-6 .col-md-4,.ta-col-grouping.col-xl-6 .col-md-5,.ta-col-grouping.col-xl-6 .col-md-6,.ta-col-grouping.col-xl-6 .col-lg,.ta-col-grouping.col-xl-6 .col-lg-1,.ta-col-grouping.col-xl-6 .col-lg-2,.ta-col-grouping.col-xl-6 .col-lg-3,.ta-col-grouping.col-xl-6 .col-lg-4,.ta-col-grouping.col-xl-6 .col-lg-5,.ta-col-grouping.col-xl-6 .col-lg-6,.ta-col-grouping.col-xl-6 .col-xl,.ta-col-grouping.col-xl-6 .col-xl-1,.ta-col-grouping.col-xl-6 .col-xl-2,.ta-col-grouping.col-xl-6 .col-xl-3,.ta-col-grouping.col-xl-6 .col-xl-4,.ta-col-grouping.col-xl-6 .col-xl-5,.ta-col-grouping.col-xl-6 .col-xl-6,.ta-col-grouping.col-xl-6 .col-xxl,.ta-col-grouping.col-xl-6 .col-xxl-1,.ta-col-grouping.col-xl-6 .col-xxl-2,.ta-col-grouping.col-xl-6 .col-xxl-3,.ta-col-grouping.col-xl-6 .col-xxl-4,.ta-col-grouping.col-xl-6 .col-xxl-5,.ta-col-grouping.col-xl-6 .col-xxl-6,.ta-col-grouping.col-xxl .col-xs,.ta-col-grouping.col-xxl .col-xs-1,.ta-col-grouping.col-xxl .col-xs-2,.ta-col-grouping.col-xxl .col-xs-3,.ta-col-grouping.col-xxl .col-xs-4,.ta-col-grouping.col-xxl .col-xs-5,.ta-col-grouping.col-xxl .col-xs-6,.ta-col-grouping.col-xxl .col-sm,.ta-col-grouping.col-xxl .col-sm-1,.ta-col-grouping.col-xxl .col-sm-2,.ta-col-grouping.col-xxl .col-sm-3,.ta-col-grouping.col-xxl .col-sm-4,.ta-col-grouping.col-xxl .col-sm-5,.ta-col-grouping.col-xxl .col-sm-6,.ta-col-grouping.col-xxl .col-md,.ta-col-grouping.col-xxl .col-md-1,.ta-col-grouping.col-xxl .col-md-2,.ta-col-grouping.col-xxl .col-md-3,.ta-col-grouping.col-xxl .col-md-4,.ta-col-grouping.col-xxl .col-md-5,.ta-col-grouping.col-xxl .col-md-6,.ta-col-grouping.col-xxl .col-lg,.ta-col-grouping.col-xxl .col-lg-1,.ta-col-grouping.col-xxl .col-lg-2,.ta-col-grouping.col-xxl .col-lg-3,.ta-col-grouping.col-xxl .col-lg-4,.ta-col-grouping.col-xxl .col-lg-5,.ta-col-grouping.col-xxl .col-lg-6,.ta-col-grouping.col-xxl .col-xl,.ta-col-grouping.col-xxl .col-xl-1,.ta-col-grouping.col-xxl .col-xl-2,.ta-col-grouping.col-xxl .col-xl-3,.ta-col-grouping.col-xxl .col-xl-4,.ta-col-grouping.col-xxl .col-xl-5,.ta-col-grouping.col-xxl .col-xl-6,.ta-col-grouping.col-xxl .col-xxl,.ta-col-grouping.col-xxl .col-xxl-1,.ta-col-grouping.col-xxl .col-xxl-2,.ta-col-grouping.col-xxl .col-xxl-3,.ta-col-grouping.col-xxl .col-xxl-4,.ta-col-grouping.col-xxl .col-xxl-5,.ta-col-grouping.col-xxl .col-xxl-6,.ta-col-grouping.col-xxl-1 .col-xs,.ta-col-grouping.col-xxl-1 .col-xs-1,.ta-col-grouping.col-xxl-1 .col-xs-2,.ta-col-grouping.col-xxl-1 .col-xs-3,.ta-col-grouping.col-xxl-1 .col-xs-4,.ta-col-grouping.col-xxl-1 .col-xs-5,.ta-col-grouping.col-xxl-1 .col-xs-6,.ta-col-grouping.col-xxl-1 .col-sm,.ta-col-grouping.col-xxl-1 .col-sm-1,.ta-col-grouping.col-xxl-1 .col-sm-2,.ta-col-grouping.col-xxl-1 .col-sm-3,.ta-col-grouping.col-xxl-1 .col-sm-4,.ta-col-grouping.col-xxl-1 .col-sm-5,.ta-col-grouping.col-xxl-1 .col-sm-6,.ta-col-grouping.col-xxl-1 .col-md,.ta-col-grouping.col-xxl-1 .col-md-1,.ta-col-grouping.col-xxl-1 .col-md-2,.ta-col-grouping.col-xxl-1 .col-md-3,.ta-col-grouping.col-xxl-1 .col-md-4,.ta-col-grouping.col-xxl-1 .col-md-5,.ta-col-grouping.col-xxl-1 .col-md-6,.ta-col-grouping.col-xxl-1 .col-lg,.ta-col-grouping.col-xxl-1 .col-lg-1,.ta-col-grouping.col-xxl-1 .col-lg-2,.ta-col-grouping.col-xxl-1 .col-lg-3,.ta-col-grouping.col-xxl-1 .col-lg-4,.ta-col-grouping.col-xxl-1 .col-lg-5,.ta-col-grouping.col-xxl-1 .col-lg-6,.ta-col-grouping.col-xxl-1 .col-xl,.ta-col-grouping.col-xxl-1 .col-xl-1,.ta-col-grouping.col-xxl-1 .col-xl-2,.ta-col-grouping.col-xxl-1 .col-xl-3,.ta-col-grouping.col-xxl-1 .col-xl-4,.ta-col-grouping.col-xxl-1 .col-xl-5,.ta-col-grouping.col-xxl-1 .col-xl-6,.ta-col-grouping.col-xxl-1 .col-xxl,.ta-col-grouping.col-xxl-1 .col-xxl-1,.ta-col-grouping.col-xxl-1 .col-xxl-2,.ta-col-grouping.col-xxl-1 .col-xxl-3,.ta-col-grouping.col-xxl-1 .col-xxl-4,.ta-col-grouping.col-xxl-1 .col-xxl-5,.ta-col-grouping.col-xxl-1 .col-xxl-6,.ta-col-grouping.col-xxl-2 .col-xs,.ta-col-grouping.col-xxl-2 .col-xs-1,.ta-col-grouping.col-xxl-2 .col-xs-2,.ta-col-grouping.col-xxl-2 .col-xs-3,.ta-col-grouping.col-xxl-2 .col-xs-4,.ta-col-grouping.col-xxl-2 .col-xs-5,.ta-col-grouping.col-xxl-2 .col-xs-6,.ta-col-grouping.col-xxl-2 .col-sm,.ta-col-grouping.col-xxl-2 .col-sm-1,.ta-col-grouping.col-xxl-2 .col-sm-2,.ta-col-grouping.col-xxl-2 .col-sm-3,.ta-col-grouping.col-xxl-2 .col-sm-4,.ta-col-grouping.col-xxl-2 .col-sm-5,.ta-col-grouping.col-xxl-2 .col-sm-6,.ta-col-grouping.col-xxl-2 .col-md,.ta-col-grouping.col-xxl-2 .col-md-1,.ta-col-grouping.col-xxl-2 .col-md-2,.ta-col-grouping.col-xxl-2 .col-md-3,.ta-col-grouping.col-xxl-2 .col-md-4,.ta-col-grouping.col-xxl-2 .col-md-5,.ta-col-grouping.col-xxl-2 .col-md-6,.ta-col-grouping.col-xxl-2 .col-lg,.ta-col-grouping.col-xxl-2 .col-lg-1,.ta-col-grouping.col-xxl-2 .col-lg-2,.ta-col-grouping.col-xxl-2 .col-lg-3,.ta-col-grouping.col-xxl-2 .col-lg-4,.ta-col-grouping.col-xxl-2 .col-lg-5,.ta-col-grouping.col-xxl-2 .col-lg-6,.ta-col-grouping.col-xxl-2 .col-xl,.ta-col-grouping.col-xxl-2 .col-xl-1,.ta-col-grouping.col-xxl-2 .col-xl-2,.ta-col-grouping.col-xxl-2 .col-xl-3,.ta-col-grouping.col-xxl-2 .col-xl-4,.ta-col-grouping.col-xxl-2 .col-xl-5,.ta-col-grouping.col-xxl-2 .col-xl-6,.ta-col-grouping.col-xxl-2 .col-xxl,.ta-col-grouping.col-xxl-2 .col-xxl-1,.ta-col-grouping.col-xxl-2 .col-xxl-2,.ta-col-grouping.col-xxl-2 .col-xxl-3,.ta-col-grouping.col-xxl-2 .col-xxl-4,.ta-col-grouping.col-xxl-2 .col-xxl-5,.ta-col-grouping.col-xxl-2 .col-xxl-6,.ta-col-grouping.col-xxl-3 .col-xs,.ta-col-grouping.col-xxl-3 .col-xs-1,.ta-col-grouping.col-xxl-3 .col-xs-2,.ta-col-grouping.col-xxl-3 .col-xs-3,.ta-col-grouping.col-xxl-3 .col-xs-4,.ta-col-grouping.col-xxl-3 .col-xs-5,.ta-col-grouping.col-xxl-3 .col-xs-6,.ta-col-grouping.col-xxl-3 .col-sm,.ta-col-grouping.col-xxl-3 .col-sm-1,.ta-col-grouping.col-xxl-3 .col-sm-2,.ta-col-grouping.col-xxl-3 .col-sm-3,.ta-col-grouping.col-xxl-3 .col-sm-4,.ta-col-grouping.col-xxl-3 .col-sm-5,.ta-col-grouping.col-xxl-3 .col-sm-6,.ta-col-grouping.col-xxl-3 .col-md,.ta-col-grouping.col-xxl-3 .col-md-1,.ta-col-grouping.col-xxl-3 .col-md-2,.ta-col-grouping.col-xxl-3 .col-md-3,.ta-col-grouping.col-xxl-3 .col-md-4,.ta-col-grouping.col-xxl-3 .col-md-5,.ta-col-grouping.col-xxl-3 .col-md-6,.ta-col-grouping.col-xxl-3 .col-lg,.ta-col-grouping.col-xxl-3 .col-lg-1,.ta-col-grouping.col-xxl-3 .col-lg-2,.ta-col-grouping.col-xxl-3 .col-lg-3,.ta-col-grouping.col-xxl-3 .col-lg-4,.ta-col-grouping.col-xxl-3 .col-lg-5,.ta-col-grouping.col-xxl-3 .col-lg-6,.ta-col-grouping.col-xxl-3 .col-xl,.ta-col-grouping.col-xxl-3 .col-xl-1,.ta-col-grouping.col-xxl-3 .col-xl-2,.ta-col-grouping.col-xxl-3 .col-xl-3,.ta-col-grouping.col-xxl-3 .col-xl-4,.ta-col-grouping.col-xxl-3 .col-xl-5,.ta-col-grouping.col-xxl-3 .col-xl-6,.ta-col-grouping.col-xxl-3 .col-xxl,.ta-col-grouping.col-xxl-3 .col-xxl-1,.ta-col-grouping.col-xxl-3 .col-xxl-2,.ta-col-grouping.col-xxl-3 .col-xxl-3,.ta-col-grouping.col-xxl-3 .col-xxl-4,.ta-col-grouping.col-xxl-3 .col-xxl-5,.ta-col-grouping.col-xxl-3 .col-xxl-6,.ta-col-grouping.col-xxl-4 .col-xs,.ta-col-grouping.col-xxl-4 .col-xs-1,.ta-col-grouping.col-xxl-4 .col-xs-2,.ta-col-grouping.col-xxl-4 .col-xs-3,.ta-col-grouping.col-xxl-4 .col-xs-4,.ta-col-grouping.col-xxl-4 .col-xs-5,.ta-col-grouping.col-xxl-4 .col-xs-6,.ta-col-grouping.col-xxl-4 .col-sm,.ta-col-grouping.col-xxl-4 .col-sm-1,.ta-col-grouping.col-xxl-4 .col-sm-2,.ta-col-grouping.col-xxl-4 .col-sm-3,.ta-col-grouping.col-xxl-4 .col-sm-4,.ta-col-grouping.col-xxl-4 .col-sm-5,.ta-col-grouping.col-xxl-4 .col-sm-6,.ta-col-grouping.col-xxl-4 .col-md,.ta-col-grouping.col-xxl-4 .col-md-1,.ta-col-grouping.col-xxl-4 .col-md-2,.ta-col-grouping.col-xxl-4 .col-md-3,.ta-col-grouping.col-xxl-4 .col-md-4,.ta-col-grouping.col-xxl-4 .col-md-5,.ta-col-grouping.col-xxl-4 .col-md-6,.ta-col-grouping.col-xxl-4 .col-lg,.ta-col-grouping.col-xxl-4 .col-lg-1,.ta-col-grouping.col-xxl-4 .col-lg-2,.ta-col-grouping.col-xxl-4 .col-lg-3,.ta-col-grouping.col-xxl-4 .col-lg-4,.ta-col-grouping.col-xxl-4 .col-lg-5,.ta-col-grouping.col-xxl-4 .col-lg-6,.ta-col-grouping.col-xxl-4 .col-xl,.ta-col-grouping.col-xxl-4 .col-xl-1,.ta-col-grouping.col-xxl-4 .col-xl-2,.ta-col-grouping.col-xxl-4 .col-xl-3,.ta-col-grouping.col-xxl-4 .col-xl-4,.ta-col-grouping.col-xxl-4 .col-xl-5,.ta-col-grouping.col-xxl-4 .col-xl-6,.ta-col-grouping.col-xxl-4 .col-xxl,.ta-col-grouping.col-xxl-4 .col-xxl-1,.ta-col-grouping.col-xxl-4 .col-xxl-2,.ta-col-grouping.col-xxl-4 .col-xxl-3,.ta-col-grouping.col-xxl-4 .col-xxl-4,.ta-col-grouping.col-xxl-4 .col-xxl-5,.ta-col-grouping.col-xxl-4 .col-xxl-6,.ta-col-grouping.col-xxl-5 .col-xs,.ta-col-grouping.col-xxl-5 .col-xs-1,.ta-col-grouping.col-xxl-5 .col-xs-2,.ta-col-grouping.col-xxl-5 .col-xs-3,.ta-col-grouping.col-xxl-5 .col-xs-4,.ta-col-grouping.col-xxl-5 .col-xs-5,.ta-col-grouping.col-xxl-5 .col-xs-6,.ta-col-grouping.col-xxl-5 .col-sm,.ta-col-grouping.col-xxl-5 .col-sm-1,.ta-col-grouping.col-xxl-5 .col-sm-2,.ta-col-grouping.col-xxl-5 .col-sm-3,.ta-col-grouping.col-xxl-5 .col-sm-4,.ta-col-grouping.col-xxl-5 .col-sm-5,.ta-col-grouping.col-xxl-5 .col-sm-6,.ta-col-grouping.col-xxl-5 .col-md,.ta-col-grouping.col-xxl-5 .col-md-1,.ta-col-grouping.col-xxl-5 .col-md-2,.ta-col-grouping.col-xxl-5 .col-md-3,.ta-col-grouping.col-xxl-5 .col-md-4,.ta-col-grouping.col-xxl-5 .col-md-5,.ta-col-grouping.col-xxl-5 .col-md-6,.ta-col-grouping.col-xxl-5 .col-lg,.ta-col-grouping.col-xxl-5 .col-lg-1,.ta-col-grouping.col-xxl-5 .col-lg-2,.ta-col-grouping.col-xxl-5 .col-lg-3,.ta-col-grouping.col-xxl-5 .col-lg-4,.ta-col-grouping.col-xxl-5 .col-lg-5,.ta-col-grouping.col-xxl-5 .col-lg-6,.ta-col-grouping.col-xxl-5 .col-xl,.ta-col-grouping.col-xxl-5 .col-xl-1,.ta-col-grouping.col-xxl-5 .col-xl-2,.ta-col-grouping.col-xxl-5 .col-xl-3,.ta-col-grouping.col-xxl-5 .col-xl-4,.ta-col-grouping.col-xxl-5 .col-xl-5,.ta-col-grouping.col-xxl-5 .col-xl-6,.ta-col-grouping.col-xxl-5 .col-xxl,.ta-col-grouping.col-xxl-5 .col-xxl-1,.ta-col-grouping.col-xxl-5 .col-xxl-2,.ta-col-grouping.col-xxl-5 .col-xxl-3,.ta-col-grouping.col-xxl-5 .col-xxl-4,.ta-col-grouping.col-xxl-5 .col-xxl-5,.ta-col-grouping.col-xxl-5 .col-xxl-6,.ta-col-grouping.col-xxl-6 .col-xs,.ta-col-grouping.col-xxl-6 .col-xs-1,.ta-col-grouping.col-xxl-6 .col-xs-2,.ta-col-grouping.col-xxl-6 .col-xs-3,.ta-col-grouping.col-xxl-6 .col-xs-4,.ta-col-grouping.col-xxl-6 .col-xs-5,.ta-col-grouping.col-xxl-6 .col-xs-6,.ta-col-grouping.col-xxl-6 .col-sm,.ta-col-grouping.col-xxl-6 .col-sm-1,.ta-col-grouping.col-xxl-6 .col-sm-2,.ta-col-grouping.col-xxl-6 .col-sm-3,.ta-col-grouping.col-xxl-6 .col-sm-4,.ta-col-grouping.col-xxl-6 .col-sm-5,.ta-col-grouping.col-xxl-6 .col-sm-6,.ta-col-grouping.col-xxl-6 .col-md,.ta-col-grouping.col-xxl-6 .col-md-1,.ta-col-grouping.col-xxl-6 .col-md-2,.ta-col-grouping.col-xxl-6 .col-md-3,.ta-col-grouping.col-xxl-6 .col-md-4,.ta-col-grouping.col-xxl-6 .col-md-5,.ta-col-grouping.col-xxl-6 .col-md-6,.ta-col-grouping.col-xxl-6 .col-lg,.ta-col-grouping.col-xxl-6 .col-lg-1,.ta-col-grouping.col-xxl-6 .col-lg-2,.ta-col-grouping.col-xxl-6 .col-lg-3,.ta-col-grouping.col-xxl-6 .col-lg-4,.ta-col-grouping.col-xxl-6 .col-lg-5,.ta-col-grouping.col-xxl-6 .col-lg-6,.ta-col-grouping.col-xxl-6 .col-xl,.ta-col-grouping.col-xxl-6 .col-xl-1,.ta-col-grouping.col-xxl-6 .col-xl-2,.ta-col-grouping.col-xxl-6 .col-xl-3,.ta-col-grouping.col-xxl-6 .col-xl-4,.ta-col-grouping.col-xxl-6 .col-xl-5,.ta-col-grouping.col-xxl-6 .col-xl-6,.ta-col-grouping.col-xxl-6 .col-xxl,.ta-col-grouping.col-xxl-6 .col-xxl-1,.ta-col-grouping.col-xxl-6 .col-xxl-2,.ta-col-grouping.col-xxl-6 .col-xxl-3,.ta-col-grouping.col-xxl-6 .col-xxl-4,.ta-col-grouping.col-xxl-6 .col-xxl-5,.ta-col-grouping.col-xxl-6 .col-xxl-6{flex:0 0 100%;max-width:100%}.iconpicker-popover.popover{background:0 0!important}.iconpicker-popover.popover .popover-title{border-bottom:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color)!important;background-color:var(--bs-body-bg)!important}.iconpicker .iconpicker-items{background-color:var(--bs-body-bg)!important}.iconpicker .iconpicker-item{box-shadow:0 0 0 1px var(--bs-border-color);color:var(--bs-body-color)!important}.iconpicker .iconpicker-item:hover{background-color:var(--bs-tertiary-color)!important}.with-checkbox .list-group-item{padding:.75rem .5rem}.EasyMDEContainer blockquote:not(.blockquote){background:var(--bs-secondary-bg-subtle);quotes:"“" "”" "‘" "’";margin:1.5em 10px;padding:1em 10px .1em;border-left:.4rem solid var(--bs-secondary-border-subtle)!important}.EasyMDEContainer blockquote:not(.blockquote)>p{color:var(--bs-secondary-text-emphasis)}.monaco-editor{--vscode-minimapSlider-background:rgba(var(--bs-body-bg-rbg),.2);--vscode-minimapSlider-hoverBackground:rgba(var(--bs-body-bg-rbg),.35);--vscode-minimapSlider-activeBackground:rgba(var(--bs-body-bg-rbg),.2);--vscode-dropdown-border:var(--bs-border-color-translucent);--vscode-foreground:var(--bs-body-color)!important;--vscode-editor-background:var(--bs-body-bg)!important;--vscode-editor-foreground:var(--bs-body-color)!important;--vscode-editorStickyScroll-background:var(--bs-body-bg)!important;--vscode-editorLink-activeForeground:var(--bs-secondary)!important;--vscode-breadcrumb-background:var(--bs-body-bg)!important;--vscode-editorGutter-background:var(--bs-body-bg)!important;--vscode-editorMarkerNavigation-background:var(--bs-body-bg)!important;--vscode-editorSuggestWidget-foreground:var(--bs-body-color)!important;--vscode-scrollbarSlider-background:var(--oc-scrollbar-color)!important;--vscode-scrollbarSlider-hoverBackground:var(--oc-admin-menu-bg-color)!important;--vscode-scrollbarSlider-activeBackground:var(--oc-admin-menu-bg-color)!important;--vscode-dropdown-background:var(--bs-body-bg)!important;--vscode-dropdown-foreground:var(--bs-body-color)!important}div.editor-widget.find-widget .button.codicon{color:var(--bs-secondary-color);box-shadow:none;background-color:#0000;border-color:#0000;display:flex}div.editor-widget.find-widget .button.codicon:focus,div.editor-widget.find-widget .button.codicon:active{background-color:#0000;border-color:#0000}.ta-navbar-top{border-bottom:var(--oc-border-content);z-index:var(--oc-top-nav-zindex);height:var(--oc-top-nav-height);padding-top:0;padding-bottom:0;box-shadow:0 .46875rem 2.1875rem #04091408,0 .9375rem 1.40625rem #04091408,0 .25rem .53125rem #0409140d,0 .125rem .1875rem #04091408}.ta-navbar-top h1{margin-bottom:0;font-size:24px;font-weight:700}.ta-navbar-top .brand-wrapper-title{display:none}.ta-navbar-top .breadcrumb{background-color:#0000;margin-top:1rem}@media (width>=576px){.ta-navbar-top .brand-wrapper-title{left:calc(var(--oc-start-navigation-width) + 10px);display:block;position:absolute}}@media (width<=575.98px){.ta-navbar-top .navbar-collapse li:first-child .nav-link{padding-top:15px}.ta-navbar-top .navbar-collapse li:last-child .nav-link{padding-bottom:0}}.left-sidebar-compact .ta-navbar-top .brand-wrapper-title{left:calc(var(--oc-start-navigation-width-when-compact) + 15px)}.brand-wrapper-title>h1{margin-bottom:0}.ta-navbar-brand{white-space:nowrap;color:var(--bs-navbar-brand-color);transition:width .2s ease-in-out}.ta-navbar-brand span{font-size:14px;font-weight:700}.ta-navbar-brand img{height:32px}.left-sidebar-compact .ta-navbar-brand span{display:none}.user-top-navbar{padding-top:0;padding-bottom:0}.user-top-navbar .nav-item .nav-link{padding-left:.5rem;padding-right:.5rem}.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:#0000;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:none;touch-action:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{z-index:1;width:100%;height:100%;position:relative}.noUi-connects{z-index:0;overflow:hidden}.noUi-connect,.noUi-origin{will-change:transform;z-index:1;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%;-webkit-transform-style:preserve-3d;transform-style:flat;position:absolute;top:0;right:0}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{width:0;top:-100%}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{width:100%;height:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;top:-6px;right:-17px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;bottom:-17px;right:-6px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background-color:var(--bs-body-bg);color:var(--bs-body-color);border-radius:var(--bs-border-radius);border:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color);box-shadow:inset 0 1px 1px rgba(var(--bs-border-color),.1),0 3px 6px -5px rgba(var(--bs-border-color),.2)}.noUi-connects{border-radius:var(--bs-border-radius)}.noUi-connect{background-color:var(--bs-body-bg)}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color);border-radius:var(--bs-border-radius);background-color:var(--bs-body-bg);cursor:default;box-shadow:inset 0 1px 1px rgba(var(--bs-border-color),.1),0 3px 6px -5px rgba(var(--bs-border-color),.2)}.noUi-active{box-shadow:inset 0 1px 1px rgba(var(--bs-border-color),.1),0 3px 6px -5px rgba(var(--bs-border-color),.2)}.noUi-handle:before,.noUi-handle:after{content:"";background-color:var(--bs-body-bg);width:1px;height:14px;display:block;position:absolute;top:6px;left:14px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:before,.noUi-vertical .noUi-handle:after{width:14px;height:1px;top:14px;left:6px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background-color:var(--bs-body-bg)}[disabled].noUi-target,[disabled].noUi-handle,[disabled] .noUi-handle{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{color:var(--bs-body-color);position:absolute}.noUi-value{white-space:nowrap;text-align:center;position:absolute}.noUi-value-sub{color:var(--bs-body-color);font-size:10px}.noUi-marker{background-color:var(--bs-body-bg);position:absolute}.noUi-marker-sub,.noUi-marker-large{background-color:var(--bs-body-bg)}.noUi-pips-horizontal{width:100%;height:80px;padding:10px 0;top:100%;left:0}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{width:2px;height:5px;margin-left:-1px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{height:100%;padding:0 10px;top:0;left:100%}.noUi-value-vertical{padding-left:25px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.noUi-rtl .noUi-value-vertical{-webkit-transform:translateY(50%);transform:translateY(50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{background-color:var(--bs-body-bg);color:var(--bs-body-color);text-align:center;white-space:nowrap;border:1px solid #d9d9d9;border-radius:3px;padding:5px;display:block;position:absolute}.noUi-horizontal .noUi-tooltip{bottom:120%;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%)}.noUi-vertical .noUi-tooltip{top:50%;right:120%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.noUi-horizontal .noUi-origin>.noUi-tooltip{bottom:10px;left:auto;-webkit-transform:translate(50%);transform:translate(50%)}.noUi-vertical .noUi-origin>.noUi-tooltip{top:auto;right:28px;-webkit-transform:translateY(-18px);transform:translateY(-18px)}ul.pager{justify-content:center;margin-top:1rem;margin-bottom:1rem}.g-recaptcha{margin-bottom:1rem}.ui-sortable{min-height:1rem}ul.ui-sortable:not(:has(>li)){border:var(--bs-border-width)dashed var(--bs-border-color)!important}.tab-pane{border-left:var(--bs-border-width)solid var(--bs-border-color);border-right:var(--bs-border-width)solid var(--bs-border-color);border-bottom:var(--bs-border-width)solid var(--bs-border-color);border-top:var(--bs-border-width)solid var(--bs-border-color);border-bottom-left-radius:var(--bs-border-radius);border-bottom-right-radius:var(--bs-border-radius);border-top-right-radius:var(--bs-border-radius);margin-bottom:1rem;padding-top:1rem;padding-left:1rem;padding-right:1rem}.nav-tabs{border-bottom:none;margin-top:1px;margin-bottom:-1px}.nav-tabs .nav-link{color:#fff;background-color:#6c757d;border:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-tabs .nav-link{transition:none}}.nav-tabs .nav-link:hover{background-color:#5a6268}.nav-tabs .nav-link.active{border-left:var(--bs-border-width)solid var(--bs-border-color);border-right:var(--bs-border-width)solid var(--bs-border-color);border-top:var(--bs-border-width)solid var(--bs-border-color);cursor:initial;color:#212529;background-color:#fff}.nav-tabs .nav-link.active:hover{background-color:#fff}.nav-tabs .nav-item{margin-bottom:0}@media (width<=575.98px){.nav-tabs .nav-item:not(.nav-link){padding-bottom:.25rem}.nav-tabs .nav-link{border-bottom-left-radius:var(--bs-border-radius);border-bottom-right-radius:var(--bs-border-radius)}.nav-tabs .nav-link.active{border-bottom:var(--bs-border-width)solid var(--bs-border-color)}}.trumbowyg{font-size:16px}[dir] .trumbowyg-box,[dir] .trumbowyg-dark .trumbowyg-box{border:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color);border-radius:var(--bs-border-radius);background-color:var(--bs-body-bg);color:var(--bs-body-color)}[dir] .trumbowyg-editor-box,[dir] .trumbowyg-dark .trumbowyg-editor-box{background-color:var(--bs-body-bg);color:var(--bs-body-color)}[dir] .trumbowyg-button-pane,[dir] .trumbowyg-dark .trumbowyg-button-pane{border-bottom:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color)}[dir] .trumbowyg-button-pane .trumbowyg-button-group:not(:empty):after,[dir] .trumbowyg-dark .trumbowyg-button-pane .trumbowyg-button-group:not(:empty):after{background:var(--bs-border-color)}[dir] .trumbowyg-dropdown,[dir] .trumbowyg-dark .trumbowyg-dropdown{border:var(--bs-border-width)var(--bs-border-style)var(--bs-border-color)}.trumbowyg-fullscreen{z-index:var(--oc-editor-fullscreen)}[dir] .trumbowyg-textarea,[dir] .trumbowyg-dark .trumbowyg-textarea{background-color:var(--bs-body-bg);color:var(--bs-body-color)}[dir] .trumbowyg-box .trumbowyg-editor th,[dir] .trumbowyg-box .trumbowyg-editor td{border-width:var(--bs-border-width,1px);border-style:var(--bs-border-style,solid);border-color:var(--bs-border-color,#dee2e6);padding:.5rem}span.field-validation-error{width:100%}.validation-summary-errors{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:transparent;--bs-alert-link-color:inherit;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-border:var(--bs-border-width)solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);padding:var(--bs-alert-padding-y)var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius);position:relative}.validation-summary-errors ul{margin-bottom:0!important}.field-validation-error{color:var(--bs-danger-text-emphasis)!important}.field-validation-valid{display:none}.input-validation-error{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem)}input:not([type=checkbox]):not([type=radio]).input-validation-error{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right calc(.375em + .1875rem) center;background-repeat:no-repeat;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.input-validation-error:invalid:focus,.form-control.input-validation-error:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}textarea.form-control.input-validation-error{background-position:right calc(.375em + .1875rem) top calc(.375em + .1875rem);padding-right:calc(1.5em + .75rem)}.form-select.input-validation-error{border-color:var(--bs-form-invalid-border-color)}.form-select.input-validation-error:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,right 2.25rem center;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem);padding-right:4.125rem}.form-select.input-validation-error:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.input-validation-error{width:calc(3.75rem + 1.5em)}.form-check-input.input-validation-error{border-color:var(--bs-form-invalid-border-color)}.form-check-input.input-validation-error:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.input-validation-error:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.input-validation-error~.form-check-label{color:var(--bs-form-invalid-color)}.input-group>.form-control:not(:focus).input-validation-error,.input-group>.form-select:not(:focus).input-validation-error,.input-group>.form-floating:not(:focus-within).input-validation-error{z-index:4}.vue-multiselect{color:var(--bs-body-color)!important;background-color:var(--bs-body-bg)!important}.multiselect__tags,.multiselect__content-wrapper{border:var(--bs-border-width)solid var(--bs-border-color)!important}.multiselect__tags{border-radius:var(--bs-border-radius)!important}.multiselect__tags,.multiselect__content-wrapper,.multiselect__input{background-color:var(--bs-body-bg)!important}.multiselect--active{z-index:var(--oc-zindex-dropdown,1000)!important;color:var(--bs-body-color)!important;background-color:var(--bs-body-bg)!important}.multiselect__spinner{background-color:var(--bs-body-bg)!important}.ta-badge{background-color:var(--bs-light);color:var(--bs-secondary-color)}.bootstrap-select .popover-header .close{color:var(--bs-black)}.bootstrap-select>.dropdown-toggle.bs-placeholder,.bootstrap-select>.dropdown-toggle.bs-placeholder:hover,.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,.bootstrap-select>.dropdown-toggle.bs-placeholder:active{color:var(--bs-gray-900)!important}.bootstrap-select .popover-header{background-color:var(--bs-secondary-bg)}.card{--bs-card-bg:var(--bs-white)}.modal{--bs-modal-bg:var(--bs-white)}.bg-theme{background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity,1))}.text-theme{color:var(--bs-body-color)}.text-bg-theme{color:var(--bs-body-color);background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity,1))}.btn-theme{color:var(--bs-black);background-color:#f8f9fa;border-color:#f8f9fa}.btn-theme:hover{color:var(--bs-black);background-color:#f9fafb;border-color:#f9fafb}.btn-check:focus+.btn-theme,.btn-theme:focus{color:var(--bs-black);background-color:#f9fafb;border-color:#f9fafb;box-shadow:0 0 0 .25rem #d3d4d580}.btn-check:checked+.btn-theme,.btn-check:active+.btn-theme,.btn-theme:active,.btn-theme.active,.show>.btn-theme.dropdown-toggle{color:var(--bs-black);background-color:#f9fafb;border-color:#f9fafb}.btn-check:checked+.btn-theme:focus,.btn-check:active+.btn-theme:focus,.btn-theme:active:focus,.btn-theme.active:focus,.show>.btn-theme.dropdown-toggle:focus{box-shadow:0 0 0 .25rem #d3d4d580}.btn-theme:disabled,.btn-theme.disabled{color:var(--bs-black);background-color:#f8f9fa;border-color:#f8f9fa}:root{--oc-border-content:var(--bs-border-width)solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#cdcdcd;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}[data-bs-theme=dark]{--oc-scrollbar-color:#76787a;--oc-admin-menu-bg-color:var(--bs-dark)}[data-bs-theme=dark] .ta-badge{background-color:var(--bs-dark);color:var(--bs-secondary-color)}[data-bs-theme=dark] .bootstrap-select>.dropdown-toggle.bs-placeholder,[data-bs-theme=dark] .bootstrap-select>.dropdown-toggle.bs-placeholder:hover,[data-bs-theme=dark] .bootstrap-select>.dropdown-toggle.bs-placeholder:focus,[data-bs-theme=dark] .bootstrap-select>.dropdown-toggle.bs-placeholder:active{color:var(--bs-white)!important}[data-bs-theme=dark] .bootstrap-select .popover-header{background-color:var(--bs-secondary-bg)}[data-bs-theme=dark] .card{--bs-card-bg:var(--bs-body-bg)}[data-bs-theme=dark] .modal{--bs-modal-bg:var(--bs-dark)}[data-bs-theme=dark] .bg-theme{background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity,1))!important}[data-bs-theme=dark] .text-theme{color:var(--bs-body-color)!important}[data-bs-theme=dark] .text-bg-theme{color:var(--bs-body-color)!important;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity,1))!important}[data-bs-theme=dark] .btn-theme{color:var(--bs-white);background-color:var(--bs-gray-900);border-color:var(--bs-gray-900)}[data-bs-theme=dark] .btn-theme:hover{color:var(--bs-white);background-color:#1c1f23;border-color:#1a1e21}[data-bs-theme=dark] .btn-check:focus+.btn-theme,[data-bs-theme=dark] .btn-theme:focus{color:var(--bs-white);background-color:#1c1f23;border-color:#1a1e21;box-shadow:0 0 0 .25rem #42464980}[data-bs-theme=dark] .btn-check:checked+.btn-theme,[data-bs-theme=dark] .btn-check:active+.btn-theme,[data-bs-theme=dark] .btn-theme:active,[data-bs-theme=dark] .btn-theme.active,[data-bs-theme=dark] .show>.btn-theme.dropdown-toggle{color:var(--bs-white);background-color:#1a1e21;border-color:#191c1f}[data-bs-theme=dark] .btn-check:checked+.btn-theme:focus,[data-bs-theme=dark] .btn-check:active+.btn-theme:focus,[data-bs-theme=dark] .btn-theme:active:focus,[data-bs-theme=dark] .btn-theme.active:focus,[data-bs-theme=dark] .show>.btn-theme.dropdown-toggle:focus{box-shadow:0 0 0 .25rem #42464980}[data-bs-theme=dark] .btn-theme:disabled,[data-bs-theme=dark] .btn-theme.disabled{color:var(--bs-white);background-color:var(--bs-gray-900);border-color:var(--bs-gray-900)} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.css b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.css index 05480239275..dd2ba6d352d 100644 --- a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.css +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.css @@ -37,11 +37,11 @@ body, html { height: 100%; } -[dir] .cursor-move { +.cursor-move { cursor: move; } -[dir] .cursor-pointer { +.cursor-pointer { cursor: pointer; } @@ -50,23 +50,21 @@ body, html { } .ta-content { - min-height: 100%; -} - -[dir] .ta-content { padding: 1rem; + min-height: 100%; padding-top: calc(var(--oc-top-nav-height, 0) + 1rem); } -[dir=ltr] .ta-content { +[dir="ltr"] .ta-content { margin-left: var(--oc-start-navigation-width); transition: margin-left 0.2s ease-in-out; } -[dir=rtl] .ta-content { +[dir="rtl"] .ta-content { margin-right: var(--oc-start-navigation-width); transition: margin-right 0.2s ease-in-out; } + .ta-content h1 { line-height: 40px; font-size: 28px; @@ -75,31 +73,31 @@ body, html { } @media (max-width: 575.98px) { - [dir=ltr] .ta-content { + [dir="ltr"] .ta-content { margin-left: var(--oc-start-navigation-width-when-compact); transition: margin-left 0.5s ease-in-out; } - [dir=rtl] .ta-content { + + [dir="rtl"] .ta-content { margin-right: var(--oc-start-navigation-width-when-compact); transition: margin-right 0.5s ease-in-out; } } -[dir=ltr] .left-sidebar-compact .ta-content { + +[dir="ltr"] .left-sidebar-compact .ta-content { margin-left: var(--oc-start-navigation-width-when-compact); } -[dir=rtl] .left-sidebar-compact .ta-content { + +[dir="rtl"] .left-sidebar-compact .ta-content { margin-right: var(--oc-start-navigation-width-when-compact); } .preload * { + -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; } -[dir] .preload * { - -webkit-transition: none !important; -} - /* IMPORTANT: Never import Bootstrap directly into the theme. TheAdmin.css will depend on Bootstrap, but we never want to compile it. @@ -135,6 +133,7 @@ body, html { } body:not(.left-sidebar-compact) #ta-left-sidebar { + background-color: var(--oc-admin-menu-bg-color); z-index: var(--oc-start-navigation-zindex); position: fixed; top: var(--oc-top-nav-height); @@ -143,68 +142,76 @@ body:not(.left-sidebar-compact) #ta-left-sidebar { color: var(--oc-admin-menu-font-color); } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar { - background-color: var(--oc-admin-menu-bg-color); -} - -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar { +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar { left: 0px; border-right: var(--oc-border-content); transition: left 0.2s ease-in-out, width 0.2s ease-in-out; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar { +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar { right: 0px; border-left: var(--oc-border-content); transition: right 0.2s ease-in-out, width 0.2s ease-in-out; } + body:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar { width: 4px; } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar-thumb { + +body:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar-thumb { background-color: var(--oc-scrollbar-color); } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar figure { + +body:not(.left-sidebar-compact) #ta-left-sidebar figure { margin: 0; } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron { + +body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron { transition-duration: 0.2s; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron { transform: rotate(90deg); } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron { transform: rotate(-90deg); } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=false] .chevron { + +body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=false] .chevron { transition-duration: 0.2s; } + body:not(.left-sidebar-compact) #ta-left-sidebar .collapse { display: none; } + body:not(.left-sidebar-compact) #ta-left-sidebar .collapse.show { display: block; } + body:not(.left-sidebar-compact) #ta-left-sidebar .chevron { position: absolute; top: 38%; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron { left: 100%; margin-left: -25px; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron { right: 100%; margin-right: -25px; } + body:not(.left-sidebar-compact) #ta-left-sidebar figcaption, body:not(.left-sidebar-compact) #ta-left-sidebar a { position: relative; display: block; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar figcaption, [dir] body:not(.left-sidebar-compact) #ta-left-sidebar a { margin: 0; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav { position: relative; flex: 1 1 auto; @@ -214,95 +221,97 @@ body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav { color: white; }*/ } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul { - white-space: nowrap; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul { margin: 0; padding: 0; + white-space: nowrap; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul li { position: relative; - display: list-item; - list-style: none; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul li { margin: 0; padding: 0; + display: list-item; + list-style: none; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul li .item-label { flex-grow: 1; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul li .item-label { cursor: pointer; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li { line-height: 3em; width: var(--oc-start-navigation-width); transition: width 0.2s ease-in-out; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li { background-color: var(--oc-admin-menu-bg-color); } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li > figure > ul > li { line-height: 2.5em; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { border-left: 3px solid; border-left-color: var(--oc-selected-indicator-color); left: 0; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { border-right: 3px solid; border-right-color: var(--oc-selected-indicator-color); right: 0; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.new:after { content: ""; width: 92%; height: 1px; - display: block; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.new:after { background: rgba(140, 130, 115, 0.13); + display: block; margin: 0px auto; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin { overflow-y: auto; overflow-x: hidden; height: 100%; + margin-bottom: 40px; scrollbar-width: thin; scrollbar-color: var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color); } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin { - margin-bottom: 40px; -} + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label { display: flex; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label { padding-left: 0px !important; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label { padding-right: 0px !important; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label > span.icon { + padding: 0 5px; flex-shrink: 0; font-size: 22px; width: var(--oc-start-navigation-width-when-compact); } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label > span.icon { - padding: 0 5px; -} + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label > span.icon svg { width: 35px; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label > span.title { flex-grow: 1; font-size: 14px; @@ -311,11 +320,13 @@ body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item white-space: nowrap; text-overflow: ellipsis; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin > li > figure > figcaption > .item-label > .collapse-icon { color: rgba(255, 0, 0, 0); display: flex; justify-content: center; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label, body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover, body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active, @@ -323,213 +334,258 @@ body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited { color: var(--oc-admin-menu-item-font-color); text-decoration: none; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label, [dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover, [dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active, [dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label, +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover, +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active, +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited { padding-left: 16px; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label, [dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover, [dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active, [dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label, +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover, +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active, +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited { padding-right: 16px; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav .btn-nostyle { - color: inherit; - font: inherit; - width: 45px; - outline: none; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav .btn-nostyle { background: none; + color: inherit; border: none; padding: 0; + font: inherit; cursor: pointer; + width: 45px; + outline: none; } + body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > li > figure > figcaption > .item-label { width: 100%; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label, [dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover, [dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active, [dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label, +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover, +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active, +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited { padding-left: 12px; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label, [dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover, [dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active, [dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label, +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover, +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active, +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited { padding-right: 12px; } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li .item-label:hover { + +body:not(.left-sidebar-compact) #ta-left-sidebar li .item-label:hover { background-color: rgba(0, 0, 0, 0.1); } + body:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label { + background: rgba(0, 0, 0, 0.1); color: var(--oc-admin-menu-item-font-color-active) !important; font-weight: 600; } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label { - background: rgba(0, 0, 0, 0.1); -} -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label { padding-left: 48px !important; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label { padding-right: 48px !important; } + body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { border-left: 3px solid; border-left-color: var(--oc-selected-indicator-color); left: 0; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { border-right: 3px solid; border-right-color: var(--oc-selected-indicator-color); right: 0; } + body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li > .item-label::before { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li > .item-label::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.2); left: 0; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li > .item-label::before { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li > .item-label::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.2); right: 0; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label { padding-left: 48px !important; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label { padding-right: 48px !important; } + body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label::before { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.1); left: 0; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label::before { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.1); right: 0; } + body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > figcaption > .item-label { - font-weight: 600; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > figcaption > .item-label { background-color: rgba(0, 0, 0, 0.05); + font-weight: 600; } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > figcaption > .item-label:hover { + +body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > figcaption > .item-label:hover { background-color: rgba(0, 0, 0, 0.1); } + body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.05); left: 0; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.05); right: 0; } + body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.1); left: 0; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.1); right: 0; } + body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > .item-label, body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > figure > figcaption > .item-label { - color: var(--oc-admin-menu-item-font-color) !important; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > .item-label, [dir] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > figure > figcaption > .item-label { background: rgba(0, 0, 0, 0.05); + color: var(--oc-admin-menu-item-font-color) !important; } + body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > .item-label > span.icon, body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > figure > figcaption > .item-label > span.icon { font-size: 16px !important; } + body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul > li > figure > figcaption > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul > li > figure > figcaption > .item-label::before { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul > li > figure > figcaption > .item-label::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.2); left: 0; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul > li > figure > figcaption > .item-label::before { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul > li > figure > figcaption > .item-label::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.2); right: 0; } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li { + +body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li { background: rgba(0, 0, 0, 0.1); } + body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li > a { color: var(--oc-admin-menu-item-font-color-active); } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li > a { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li > a { padding-left: 48px !important; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li > a { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li > a { padding-right: 48px !important; } -[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > .active > a { + +[dir="ltr"] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > .active > a { padding-left: 44px !important; } -[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > .active > a { + +[dir="rtl"] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > .active > a { padding-right: 44px !important; } + body:not(.left-sidebar-compact) #ta-left-sidebar .footer { + background-color: var(--oc-admin-menu-bg-color) !important; position: relative; z-index: 1; } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar .footer { - background-color: var(--oc-admin-menu-bg-color) !important; -} + body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { content: ""; width: 92%; height: 1px; - display: block; -} -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { background: rgba(140, 130, 115, 0.13); + display: block; margin: 0px auto; } -[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #filter, [dir] body:not(.left-sidebar-compact) #ta-left-sidebar #filter:focus { + +body:not(.left-sidebar-compact) #ta-left-sidebar #filter, +body:not(.left-sidebar-compact) #ta-left-sidebar #filter:focus { border: none; box-shadow: unset; border-radius: unset; } .left-sidebar-compact #ta-left-sidebar { + background-color: var(--oc-admin-menu-bg-color); z-index: var(--oc-start-navigation-zindex); position: fixed; top: var(--oc-top-nav-height); @@ -539,59 +595,64 @@ body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { font-family: "Segoe UI VSS (Regular)", "Segoe UI", "-apple-system", BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Ubuntu, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } -[dir] .left-sidebar-compact #ta-left-sidebar { - background-color: var(--oc-admin-menu-bg-color); -} - -[dir=ltr] .left-sidebar-compact #ta-left-sidebar { +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar { left: 0px; border-right: var(--oc-border-content); transition: left 0.2s ease-in-out, width 0.2s ease-in-out; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar { +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar { right: 0px; border-left: var(--oc-border-content); transition: right 0.2s ease-in-out, width 0.2s ease-in-out; } + .left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar { width: 4px; } -[dir] .left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar-thumb { + +.left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar-thumb { background-color: var(--oc-scrollbar-color); } -[dir] .left-sidebar-compact #ta-left-sidebar figure { + +.left-sidebar-compact #ta-left-sidebar figure { margin: 0; } -[dir] .left-sidebar-compact #ta-left-sidebar a[aria-expanded=false] .chevron { + +.left-sidebar-compact #ta-left-sidebar a[aria-expanded=false] .chevron { transition-duration: 0.2s; } + .left-sidebar-compact #ta-left-sidebar .collapse { display: none; } + .left-sidebar-compact #ta-left-sidebar .collapse.show { display: block; } + .left-sidebar-compact #ta-left-sidebar .chevron { position: absolute; top: 38%; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar .chevron { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar .chevron { left: 100%; margin-left: -25px; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar .chevron { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar .chevron { right: 100%; margin-right: -25px; } + .left-sidebar-compact #ta-left-sidebar figcaption, .left-sidebar-compact #ta-left-sidebar a { position: relative; display: block; -} -[dir] .left-sidebar-compact #ta-left-sidebar figcaption, [dir] .left-sidebar-compact #ta-left-sidebar a { margin: 0; } + .left-sidebar-compact #ta-left-sidebar #left-nav { flex: 1 1 auto; height: calc(100% - 51px); @@ -600,78 +661,83 @@ body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { scrollbar-width: thin; scrollbar-color: var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color); } + .left-sidebar-compact #ta-left-sidebar #left-nav ul { - white-space: nowrap; -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav ul { margin: 0; padding: 0; + white-space: nowrap; background-color: var(--oc-admin-menu-item-bg-color); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul li { position: relative; - display: list-item; - list-style: none; -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul li { margin: 0; padding: 0; + display: list-item; + list-style: none; } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul li .item-label { + +.left-sidebar-compact #ta-left-sidebar #left-nav > ul li .item-label { cursor: pointer; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li { height: 48px; line-height: 3em; width: calc(var(--oc-start-navigation-width-when-compact) - 1); transition: width 0.2s ease-in-out; -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li { background-color: var(--oc-admin-menu-bg-color); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li:first-child > span.title:after { content: ""; width: 75%; height: 1px; - display: block; -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li:first-child > span.title:after { background: rgba(0, 0, 0, 0.1); + display: block; margin: 0px auto 4px auto; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > .btn-nostyle { display: none; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul > li { line-height: 2.5em; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li:not(.has-items) .item-label > span.icon { font-size: 22px; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label { display: flex; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label { padding-left: 0px !important; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label { padding-right: 0px !important; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.icon { + padding: 0 5px; flex-shrink: 0; font-size: 16px; } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.icon { - padding: 0 5px; -} + .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.icon svg { width: 35px; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.icon-none { flex-shrink: 0; font-size: 16px; width: 37px; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.title { flex-grow: 1; font-size: 14px; @@ -680,108 +746,122 @@ body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { white-space: nowrap; text-overflow: ellipsis; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > .collapse-icon { color: rgba(255, 0, 0, 0); display: flex; justify-content: center; } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .icon:hover { + +.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .icon:hover { background-color: rgba(0, 0, 0, 0.1); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title:hover { color: var(--oc-admin-menu-font-color-hover); -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title:hover { background-color: rgba(0, 0, 0, 0.1); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items) > figure > figcaption > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items) > figure > figcaption > .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items) > figure > figcaption > .item-label::before { border-left: 3px solid; border-left-color: var(--oc-selected-indicator-color); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items) > figure > figcaption > .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items) > figure > figcaption > .item-label::before { border-right: 3px solid; border-right-color: var(--oc-selected-indicator-color); right: 0; } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.visible > figure > figcaption { + +.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.visible > figure > figcaption { box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.visible > figure > figcaption > a.item-label { z-index: 9999; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li .item-label:hover:not(:first-child) { color: var(--oc-admin-menu-font-color-hover); -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li .item-label:hover:not(:first-child) { background-color: rgba(0, 0, 0, 0.1); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.icon { display: inline-block !important; color: var(--oc-admin-menu-item-font-color); - width: var(--oc-start-navigation-width-when-compact); -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.icon { background-color: var(--oc-admin-menu-bg-color); + width: var(--oc-start-navigation-width-when-compact); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.active > figure > figcaption > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.active > figure > figcaption > .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.active > figure > figcaption > .item-label::before { border-left: 3px solid; border-left-color: var(--oc-selected-indicator-color); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.active > figure > figcaption > .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.active > figure > figcaption > .item-label::before { border-right: 3px solid; border-right-color: var(--oc-selected-indicator-color); right: 0; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.visible { -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); - z-index: 1; -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.visible { box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); + z-index: 1; } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul li .active > figure > figcaption > .item-label:hover { + +.left-sidebar-compact #ta-left-sidebar #left-nav > ul li .active > figure > figcaption > .item-label:hover { background-color: rgba(0, 0, 0, 0.1); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li { overflow: hidden; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li span.title { display: none; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.visible { overflow: visible; width: calc(var(--oc-start-navigation-width-when-compact) + var(--oc-start-navigation-width)); transition: none; position: static; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.visible > figure { position: absolute; z-index: 999; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.visible span.title, .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.visible span.icon { display: block; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul { position: absolute; width: var(--oc-start-navigation-width); -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); + box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); max-height: 250px; z-index: 1; overflow-x: hidden; @@ -789,51 +869,53 @@ body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { scrollbar-width: thin; scrollbar-color: var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color); } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul { - box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); -} -[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul { left: var(--oc-start-navigation-width-when-compact); } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul { right: var(--oc-start-navigation-width-when-compact); } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul li .item-label:hover { + +.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul li .item-label:hover { background-color: rgba(0, 0, 0, 0.05); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label { + background-color: var(--oc-admin-menu-item-bg-color); color: var(--oc-admin-menu-item-font-color); display: flex; } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label { - background-color: var(--oc-admin-menu-item-bg-color); -} -[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label { padding-left: 0px !important; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label { padding-right: 0px !important; } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title { + +.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title { padding: 0 20px; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title:hover { - color: var(--oc-admin-menu-item-font-color); -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title:hover { background-color: var(--oc-admin-menu-item-bg-color) !important; + color: var(--oc-admin-menu-item-font-color); } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.icon { + padding: 0 5px; flex-shrink: 0; font-size: 22px; width: var(--oc-start-navigation-width-when-compact); } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.icon { - padding: 0 5px; -} + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.icon svg { width: 35px; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title { flex-grow: 1; font-size: 14px; @@ -844,263 +926,316 @@ body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { text-overflow: ellipsis; width: 260px; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after { content: ""; height: 1px; + background: rgba(0, 0, 0, 0.1); display: block; + margin: 0px auto; position: absolute; width: 75%; } -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after { - background: rgba(0, 0, 0, 0.1); - margin: 0px auto; -} -[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after { left: 63px; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after { right: 63px; } + .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { border-left: 3px solid; border-left-color: var(--oc-selected-indicator-color); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before { border-right: 3px solid; border-right-color: var(--oc-selected-indicator-color); right: 0; } + .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label, .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover, .left-sidebar-compact #ta-left-sidebar #left-nav li a:active, .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited { text-decoration: none; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label, [dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover, [dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active, [dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label, +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover, +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active, +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited { padding-left: 16px; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label, [dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover, [dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active, [dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label, +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover, +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active, +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited { padding-right: 16px; } + .left-sidebar-compact #ta-left-sidebar #left-nav .btn-nostyle { - color: inherit; - font: inherit; - width: 45px; - outline: none; -} -[dir] .left-sidebar-compact #ta-left-sidebar #left-nav .btn-nostyle { background: none; + color: inherit; border: none; padding: 0; + font: inherit; cursor: pointer; + width: 45px; + outline: none; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label, [dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover, [dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:active, [dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label, +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover, +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.has-items a:active, +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited { padding-left: 12px; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label, [dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover, [dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:active, [dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label, +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover, +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.has-items a:active, +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited { padding-right: 12px; } + .left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label { + background: rgba(0, 0, 0, 0.05); color: rgba(var(--oc-admin-menu-item-font-color-active), 0.9) !important; font-weight: 600; } -[dir] .left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label { - background: rgba(0, 0, 0, 0.05); -} -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label { padding-left: 48px !important; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label { padding-right: 48px !important; } + .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { border-left: 3px solid; border-left-color: var(--oc-selected-indicator-color); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before { border-right: 3px solid; border-right-color: var(--oc-selected-indicator-color); right: 0; } + .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active ul > li.active .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active ul > li.active .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active ul > li.active .item-label::before { border-left: 3px solid; border-left-color: var(--oc-selected-indicator-color); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active ul > li.active .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active ul > li.active .item-label::before { border-right: 3px solid; border-right-color: var(--oc-selected-indicator-color); right: 0; } + .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > figure > figcaption > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > figure > figcaption > .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > figure > figcaption > .item-label::before { border-left: 3px solid; border-left-color: var(--oc-selected-indicator-color); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > figure > figcaption > .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > figure > figcaption > .item-label::before { border-right: 3px solid; border-right-color: var(--oc-selected-indicator-color); right: 0; } + .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li .item-label::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.2); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li .item-label::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.2); right: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label { padding-left: 48px !important; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label { padding-right: 48px !important; } + .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.2); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.2); right: 0; } + .left-sidebar-compact #ta-left-sidebar li.active > .item-label { - font-weight: 600; -} -[dir] .left-sidebar-compact #ta-left-sidebar li.active > .item-label { background-color: rgba(0, 0, 0, 0.1); + font-weight: 600; } + .left-sidebar-compact #ta-left-sidebar li .active::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li .active::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li .active::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.1); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li .active::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li .active::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.1); right: 0; } + .left-sidebar-compact #ta-left-sidebar li .active .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li .active .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li .active .item-label::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.2); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li .active .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li .active .item-label::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.2); right: 0; } + .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure .item-label { color: var(--oc-admin-menu-item-font-color) !important; } + .left-sidebar-compact #ta-left-sidebar li > .item-label { color: var(--oc-admin-menu-item-font-color) !important; } + .left-sidebar-compact #ta-left-sidebar li.active > figure ul > li > figure > figcaption > .item-label::before { bottom: 0; content: ""; position: absolute; top: 0; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active > figure ul > li > figure > figcaption > .item-label::before { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li.active > figure ul > li > figure > figcaption > .item-label::before { border-left: 3px solid; border-left-color: rgba(0, 0, 0, 0.2); left: 0; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active > figure ul > li > figure > figcaption > .item-label::before { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li.active > figure ul > li > figure > figcaption > .item-label::before { border-right: 3px solid; border-right-color: rgba(0, 0, 0, 0.2); right: 0; } -[dir] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li { + +.left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li { background: rgba(0, 0, 0, 0.1); } + .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li > figure > figcaption > a { color: var(--oc-admin-menu-item-font-color-active); } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li > figure > figcaption > a { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li > figure > figcaption > a { padding-left: 48px !important; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li > figure > figcaption > a { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li > figure > figcaption > a { padding-right: 48px !important; } -[dir=ltr] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > .active > a { + +[dir="ltr"] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > .active > a { padding-left: 44px !important; } -[dir=rtl] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > .active > a { + +[dir="rtl"] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > .active > a { padding-right: 44px !important; } + .left-sidebar-compact #ta-left-sidebar .footer { + background-color: var(--oc-admin-menu-bg-color) !important; position: relative; z-index: 1; } -[dir] .left-sidebar-compact #ta-left-sidebar .footer { - background-color: var(--oc-admin-menu-bg-color) !important; -} + .left-sidebar-compact #ta-left-sidebar .footer:before { content: ""; width: 60%; height: 1px; - display: block; -} -[dir] .left-sidebar-compact #ta-left-sidebar .footer:before { background: rgba(0, 0, 0, 0.1); + display: block; margin: 0px auto; } + .left-sidebar-compact #ta-left-sidebar #filter, .left-sidebar-compact #ta-left-sidebar #filter:focus { display: none; @@ -1110,38 +1245,40 @@ body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { position: static; z-index: unset; } + .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul:before { content: attr(data-title); + padding: 0 20px; font-size: 14px; font-weight: bold; width: 100%; display: block; } -[dir] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul:before { - padding: 0 20px; -} + .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before { + background: rgba(0, 0, 0, 0.1); + margin: 0px auto; content: ""; height: 1px; display: block; position: absolute; width: 90%; } -[dir] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before { - background: rgba(0, 0, 0, 0.1); - margin: 0px auto; -} -[dir=ltr] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before { + +[dir="ltr"] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before { left: 15px; } -[dir=rtl] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before { + +[dir="rtl"] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before { right: 15px; } + .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul { position: absolute; width: var(--oc-start-navigation-width); -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); + box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); height: calc(100vh - 52px); max-height: unset; z-index: 1; @@ -1151,21 +1288,21 @@ body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before { scrollbar-color: var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color); top: 0px; } -[dir] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul { - box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); -} -[dir=ltr] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul { + +[dir="ltr"] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul { left: var(--oc-start-navigation-width-when-compact); } -[dir=rtl] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul { + +[dir="rtl"] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul { right: var(--oc-start-navigation-width-when-compact); } + .left-sidebar-compact #ta-left-sidebar a[aria-expanded=true] .chevron { transform: rotate(90deg); transition-duration: 0.2s; } -html[dir]:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin > li > .item-label { +html:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin > li > .item-label { background-color: var(--oc-admin-menu-bg-color, #f8f9fa) !important; } @@ -1173,42 +1310,40 @@ html[dir]:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin > li > .item- display: block; width: var(--oc-start-navigation-width-when-compact); height: 50px; - color: var(--oc-admin-menu-font-color); - font-size: 20px; - display: block; -} - -[dir] .leftbar-compactor { padding: 10px; border: none; background-color: transparent; + color: var(--oc-admin-menu-font-color); cursor: pointer; + font-size: 20px; transition-duration: 0.2s; + display: block; transform: scale(2, 1); } -[dir=ltr] .leftbar-compactor { +[dir="ltr"] .leftbar-compactor { float: right; } -[dir=rtl] .leftbar-compactor { +[dir="rtl"] .leftbar-compactor { float: left; } + .leftbar-compactor:focus { outline: none; } + .leftbar-compactor:hover { color: rgb(0, 120, 212); - color: var(rgb(0, 120, 212)); -} -[dir] .leftbar-compactor:hover { + color: rgb(0, 120, 212); text-shadow: 0 0 4px rgba(0, 120, 212, 0.5); } + .leftbar-compactor:before { content: "⟪"; } -[dir] .left-sidebar-compact .leftbar-compactor { +.left-sidebar-compact .leftbar-compactor { transition-duration: 0.2s; transform: scale(-2, 1); -} +} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.css.map b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.css.map new file mode 100644 index 00000000000..8633e7b8ef7 --- /dev/null +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":null,"mappings":"AAmCA,sBAIA,yBAIA,+BAIA,wBAIA,6FAMA,0GAKA,4GAKA,qFAOA,yBACE,uHAKA,0HAMF,sGAIA,uGAIA,yGAUA,29BA8BA,4QAUA,8JAMA,+JAMA,+EAIA,sHAIA,iEAIA,wGAIA,kHAIA,mHAIA,yGAIA,wEAIA,8EAIA,oFAKA,gGAK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A,kHAIA,oIAMA,uIASA,iHAKA,2GAKA,uLASA,yMAUA,0HAIA,2HAIA,wYAgBA,qIAIA,sIAIA,sHAKA,8IAIA,iQAeA,yCAIA,wCAIA,sCAIA,qEAMA,wCAIA","sources":[""],"sourcesContent":["@charset \"UTF-8\";\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\nbody, html {\n height: 100%;\n}\n\n.cursor-move {\n cursor: move;\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.ta-wrapper {\n height: 100%;\n}\n\n.ta-content {\n padding: 1rem;\n min-height: 100%;\n padding-top: calc(var(--oc-top-nav-height, 0) + 1rem);\n}\n\n[dir=\"ltr\"] .ta-content {\n margin-left: var(--oc-start-navigation-width);\n transition: margin-left 0.2s ease-in-out;\n}\n\n[dir=\"rtl\"] .ta-content {\n margin-right: var(--oc-start-navigation-width);\n transition: margin-right 0.2s ease-in-out;\n}\n\n.ta-content h1 {\n line-height: 40px;\n font-size: 28px;\n letter-spacing: -0.04em;\n font-weight: bold;\n}\n\n@media (max-width: 575.98px) {\n [dir=\"ltr\"] .ta-content {\n margin-left: var(--oc-start-navigation-width-when-compact);\n transition: margin-left 0.5s ease-in-out;\n }\n\n [dir=\"rtl\"] .ta-content {\n margin-right: var(--oc-start-navigation-width-when-compact);\n transition: margin-right 0.5s ease-in-out;\n }\n}\n\n[dir=\"ltr\"] .left-sidebar-compact .ta-content {\n margin-left: var(--oc-start-navigation-width-when-compact);\n}\n\n[dir=\"rtl\"] .left-sidebar-compact .ta-content {\n margin-right: var(--oc-start-navigation-width-when-compact);\n}\n\n.preload * {\n -webkit-transition: none !important;\n -moz-transition: none !important;\n -o-transition: none !important;\n}\n\n/* \n IMPORTANT: Never import Bootstrap directly into the theme. \n TheAdmin.css will depend on Bootstrap, but we never want to compile it. \n*/\n:root {\n --oc-border-content: var(--bs-border-width) solid var(--bs-border-color);\n --oc-admin-menu-bg-color: var(--bs-secondary-bg-subtle);\n --oc-scrollbar-color: #CDCDCD;\n --oc-admin-menu-font-color: var(--bs-secondary-color);\n --oc-admin-menu-font-color-hover: var(--bs-emphasis-color);\n --oc-admin-menu-item-bg-color: var(--bs-secondary-bg-subtle);\n --oc-admin-menu-item-font-color: var(--bs-secondary-color);\n --oc-admin-menu-item-font-color-active: var(--bs-emphasis-color);\n --oc-li-hover-bg-color: var(--bs-list-group-action-hover-bg);\n --oc-zindex-dropdown: 1000;\n --oc-height-dropdown: 250px;\n --oc-top-nav-height: 52px;\n --oc-top-nav-zindex: 1034;\n --oc-footer-height: 40px;\n --oc-start-navigation-width: 260px;\n --oc-start-navigation-width-when-compact: 48px;\n --oc-start-navigation-zindex: 1033;\n --oc-link-padding-left: 16px;\n --oc-editor-fullscreen: 1054;\n --oc-selected-indicator-color: var(--bs-primary);\n /* Action bar should always be less than dropdown menu */\n --oc-action-bar-zindex: 980;\n --oc-second-action-bar-zindex: 983;\n /* Undefined Bootstrap variables */\n --bs-dropdown-zindex: 1000;\n --bs-zindex-fixed: 1030;\n --bs-bg-opacity: 1;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar {\n background-color: var(--oc-admin-menu-bg-color);\n z-index: var(--oc-start-navigation-zindex);\n position: fixed;\n top: var(--oc-top-nav-height);\n bottom: 0;\n width: var(--oc-start-navigation-width);\n color: var(--oc-admin-menu-font-color);\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar {\n left: 0px;\n border-right: var(--oc-border-content);\n transition: left 0.2s ease-in-out, width 0.2s ease-in-out;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar {\n right: 0px;\n border-left: var(--oc-border-content);\n transition: right 0.2s ease-in-out, width 0.2s ease-in-out;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar {\n width: 4px;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar-thumb {\n background-color: var(--oc-scrollbar-color);\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar figure {\n margin: 0;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron {\n transition-duration: 0.2s;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron {\n transform: rotate(90deg);\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron {\n transform: rotate(-90deg);\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=false] .chevron {\n transition-duration: 0.2s;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar .collapse {\n display: none;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar .collapse.show {\n display: block;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar .chevron {\n position: absolute;\n top: 38%;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron {\n left: 100%;\n margin-left: -25px;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron {\n right: 100%;\n margin-right: -25px;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar figcaption,\nbody:not(.left-sidebar-compact) #ta-left-sidebar a {\n position: relative;\n display: block;\n margin: 0;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav {\n position: relative;\n flex: 1 1 auto;\n height: calc(100% - 51px - 38px);\n /*.btn-nostyle:focus, .btn-nostyle:active {\n background-color: rgba(0, 0, 0, 0.3);\n color: white;\n }*/\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul {\n margin: 0;\n padding: 0;\n white-space: nowrap;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul li {\n position: relative;\n margin: 0;\n padding: 0;\n display: list-item;\n list-style: none;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul li .item-label {\n flex-grow: 1;\n cursor: pointer;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li {\n line-height: 3em;\n width: var(--oc-start-navigation-width);\n transition: width 0.2s ease-in-out;\n background-color: var(--oc-admin-menu-bg-color);\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li > figure > ul > li {\n line-height: 2.5em;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before {\n border-left: 3px solid;\n border-left-color: var(--oc-selected-indicator-color);\n left: 0;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before {\n border-right: 3px solid;\n border-right-color: var(--oc-selected-indicator-color);\n right: 0;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul > li.new:after {\n content: \"\";\n width: 92%;\n height: 1px;\n background: rgba(140, 130, 115, 0.13);\n display: block;\n margin: 0px auto;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin {\n overflow-y: auto;\n overflow-x: hidden;\n height: 100%;\n margin-bottom: 40px;\n scrollbar-width: thin;\n scrollbar-color: var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color);\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label {\n display: flex;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label {\n padding-left: 0px !important;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label {\n padding-right: 0px !important;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label > span.icon {\n padding: 0 5px;\n flex-shrink: 0;\n font-size: 22px;\n width: var(--oc-start-navigation-width-when-compact);\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label > span.icon svg {\n width: 35px;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin .item-label > span.title {\n flex-grow: 1;\n font-size: 14px;\n width: calc(100% - 48px - 45px);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > ul.menu-admin > li > figure > figcaption > .item-label > .collapse-icon {\n color: rgba(255, 0, 0, 0);\n display: flex;\n justify-content: center;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label,\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited {\n color: var(--oc-admin-menu-item-font-color);\n text-decoration: none;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label,\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited {\n padding-left: 16px;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label,\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited {\n padding-right: 16px;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav .btn-nostyle {\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n width: 45px;\n outline: none;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #left-nav > li > figure > figcaption > .item-label {\n width: 100%;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label,\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover,\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active,\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited {\n padding-left: 12px;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label,\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover,\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active,\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited {\n padding-right: 12px;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li .item-label:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label {\n background: rgba(0, 0, 0, 0.1);\n color: var(--oc-admin-menu-item-font-color-active) !important;\n font-weight: 600;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label {\n padding-left: 48px !important;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li > figure > ul > li.active > .item-label {\n padding-right: 48px !important;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before {\n border-left: 3px solid;\n border-left-color: var(--oc-selected-indicator-color);\n left: 0;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before {\n border-right: 3px solid;\n border-right-color: var(--oc-selected-indicator-color);\n right: 0;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li > .item-label::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.2);\n left: 0;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > ul > li > .item-label::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.2);\n right: 0;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label {\n padding-left: 48px !important;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label {\n padding-right: 48px !important;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.1);\n left: 0;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active > figure > figcaption > .item-label::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.1);\n right: 0;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > figcaption > .item-label {\n background-color: rgba(0, 0, 0, 0.05);\n font-weight: 600;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li.active > figure > figcaption > .item-label:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li .active::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.05);\n left: 0;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.05);\n right: 0;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.1);\n left: 0;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.1);\n right: 0;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > .item-label,\nbody:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > figure > figcaption > .item-label {\n background: rgba(0, 0, 0, 0.05);\n color: var(--oc-admin-menu-item-font-color) !important;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > .item-label > span.icon,\nbody:not(.left-sidebar-compact) #ta-left-sidebar li ul > li > figure > figcaption > .item-label > span.icon {\n font-size: 16px !important;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li.active ul > li > figure > figcaption > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul > li > figure > figcaption > .item-label::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.2);\n left: 0;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul > li > figure > figcaption > .item-label::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.2);\n right: 0;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li {\n background: rgba(0, 0, 0, 0.1);\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li > a {\n color: var(--oc-admin-menu-item-font-color-active);\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li > a {\n padding-left: 48px !important;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > li > a {\n padding-right: 48px !important;\n}\n\n[dir=\"ltr\"] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > .active > a {\n padding-left: 44px !important;\n}\n\n[dir=\"rtl\"] body:not(.left-sidebar-compact) #ta-left-sidebar li ul > li ul > .active > a {\n padding-right: 44px !important;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar .footer {\n background-color: var(--oc-admin-menu-bg-color) !important;\n position: relative;\n z-index: 1;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar .footer:before {\n content: \"\";\n width: 92%;\n height: 1px;\n background: rgba(140, 130, 115, 0.13);\n display: block;\n margin: 0px auto;\n}\n\nbody:not(.left-sidebar-compact) #ta-left-sidebar #filter,\nbody:not(.left-sidebar-compact) #ta-left-sidebar #filter:focus {\n border: none;\n box-shadow: unset;\n border-radius: unset;\n}\n\n.left-sidebar-compact #ta-left-sidebar {\n background-color: var(--oc-admin-menu-bg-color);\n z-index: var(--oc-start-navigation-zindex);\n position: fixed;\n top: var(--oc-top-nav-height);\n bottom: 0;\n width: var(--oc-start-navigation-width-when-compact);\n color: var(--oc-admin-menu-font-color);\n font-family: \"Segoe UI VSS (Regular)\", \"Segoe UI\", \"-apple-system\", BlinkMacSystemFont, Roboto, \"Helvetica Neue\", Helvetica, Ubuntu, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar {\n left: 0px;\n border-right: var(--oc-border-content);\n transition: left 0.2s ease-in-out, width 0.2s ease-in-out;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar {\n right: 0px;\n border-left: var(--oc-border-content);\n transition: right 0.2s ease-in-out, width 0.2s ease-in-out;\n}\n\n.left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar {\n width: 4px;\n}\n\n.left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar-thumb {\n background-color: var(--oc-scrollbar-color);\n}\n\n.left-sidebar-compact #ta-left-sidebar figure {\n margin: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar a[aria-expanded=false] .chevron {\n transition-duration: 0.2s;\n}\n\n.left-sidebar-compact #ta-left-sidebar .collapse {\n display: none;\n}\n\n.left-sidebar-compact #ta-left-sidebar .collapse.show {\n display: block;\n}\n\n.left-sidebar-compact #ta-left-sidebar .chevron {\n position: absolute;\n top: 38%;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar .chevron {\n left: 100%;\n margin-left: -25px;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar .chevron {\n right: 100%;\n margin-right: -25px;\n}\n\n.left-sidebar-compact #ta-left-sidebar figcaption,\n.left-sidebar-compact #ta-left-sidebar a {\n position: relative;\n display: block;\n margin: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav {\n flex: 1 1 auto;\n height: calc(100% - 51px);\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-width: thin;\n scrollbar-color: var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav ul {\n margin: 0;\n padding: 0;\n white-space: nowrap;\n background-color: var(--oc-admin-menu-item-bg-color);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul li {\n position: relative;\n margin: 0;\n padding: 0;\n display: list-item;\n list-style: none;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul li .item-label {\n cursor: pointer;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li {\n height: 48px;\n line-height: 3em;\n width: calc(var(--oc-start-navigation-width-when-compact) - 1);\n transition: width 0.2s ease-in-out;\n background-color: var(--oc-admin-menu-bg-color);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li:first-child > span.title:after {\n content: \"\";\n width: 75%;\n height: 1px;\n background: rgba(0, 0, 0, 0.1);\n display: block;\n margin: 0px auto 4px auto;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > .btn-nostyle {\n display: none;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul > li {\n line-height: 2.5em;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li:not(.has-items) .item-label > span.icon {\n font-size: 22px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label {\n display: flex;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label {\n padding-left: 0px !important;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label {\n padding-right: 0px !important;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.icon {\n padding: 0 5px;\n flex-shrink: 0;\n font-size: 16px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.icon svg {\n width: 35px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.icon-none {\n flex-shrink: 0;\n font-size: 16px;\n width: 37px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul .item-label > span.title {\n flex-grow: 1;\n font-size: 14px;\n width: calc(100% - 48px);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > .collapse-icon {\n color: rgba(255, 0, 0, 0);\n display: flex;\n justify-content: center;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .icon:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title:hover {\n color: var(--oc-admin-menu-font-color-hover);\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items) > figure > figcaption > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items) > figure > figcaption > .item-label::before {\n border-left: 3px solid;\n border-left-color: var(--oc-selected-indicator-color);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items) > figure > figcaption > .item-label::before {\n border-right: 3px solid;\n border-right-color: var(--oc-selected-indicator-color);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.visible > figure > figcaption {\n box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.visible > figure > figcaption > a.item-label {\n z-index: 9999;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li .item-label:hover:not(:first-child) {\n color: var(--oc-admin-menu-font-color-hover);\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.icon {\n display: inline-block !important;\n color: var(--oc-admin-menu-item-font-color);\n background-color: var(--oc-admin-menu-bg-color);\n width: var(--oc-start-navigation-width-when-compact);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.active > figure > figcaption > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.active > figure > figcaption > .item-label::before {\n border-left: 3px solid;\n border-left-color: var(--oc-selected-indicator-color);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.active > figure > figcaption > .item-label::before {\n border-right: 3px solid;\n border-right-color: var(--oc-selected-indicator-color);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.has-items.visible {\n -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n z-index: 1;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul li .active > figure > figcaption > .item-label:hover {\n background-color: rgba(0, 0, 0, 0.1);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li {\n overflow: hidden;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li span.title {\n display: none;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.visible {\n overflow: visible;\n width: calc(var(--oc-start-navigation-width-when-compact) + var(--oc-start-navigation-width));\n transition: none;\n position: static;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.visible > figure {\n position: absolute;\n z-index: 999;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.visible span.title,\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.visible span.icon {\n display: block;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul {\n position: absolute;\n width: var(--oc-start-navigation-width);\n -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n max-height: 250px;\n z-index: 1;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-width: thin;\n scrollbar-color: var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color);\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul {\n left: var(--oc-start-navigation-width-when-compact);\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul {\n right: var(--oc-start-navigation-width-when-compact);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > ul li .item-label:hover {\n background-color: rgba(0, 0, 0, 0.05);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label {\n background-color: var(--oc-admin-menu-item-bg-color);\n color: var(--oc-admin-menu-item-font-color);\n display: flex;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label {\n padding-left: 0px !important;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label {\n padding-right: 0px !important;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title {\n padding: 0 20px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label .title:hover {\n background-color: var(--oc-admin-menu-item-bg-color) !important;\n color: var(--oc-admin-menu-item-font-color);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.icon {\n padding: 0 5px;\n flex-shrink: 0;\n font-size: 22px;\n width: var(--oc-start-navigation-width-when-compact);\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.icon svg {\n width: 35px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title {\n flex-grow: 1;\n font-size: 14px;\n font-weight: bold;\n width: calc(100% - 48px);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n width: 260px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after {\n content: \"\";\n height: 1px;\n background: rgba(0, 0, 0, 0.1);\n display: block;\n margin: 0px auto;\n position: absolute;\n width: 75%;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after {\n left: 63px;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li > figure > figcaption > .item-label > span.title:after {\n right: 63px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before {\n border-left: 3px solid;\n border-left-color: var(--oc-selected-indicator-color);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav > ul > li.active:not(.has-items)::before {\n border-right: 3px solid;\n border-right-color: var(--oc-selected-indicator-color);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label,\n.left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,\n.left-sidebar-compact #ta-left-sidebar #left-nav li a:active,\n.left-sidebar-compact #ta-left-sidebar #left-nav li a:visited {\n text-decoration: none;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label,\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active,\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited {\n padding-left: 16px;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label,\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active,\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited {\n padding-right: 16px;\n}\n\n.left-sidebar-compact #ta-left-sidebar #left-nav .btn-nostyle {\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n width: 45px;\n outline: none;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label,\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover,\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.has-items a:active,\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited {\n padding-left: 12px;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label,\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover,\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.has-items a:active,\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited {\n padding-right: 12px;\n}\n\n.left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label {\n background: rgba(0, 0, 0, 0.05);\n color: rgba(var(--oc-admin-menu-item-font-color-active), 0.9) !important;\n font-weight: 600;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label {\n padding-left: 48px !important;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li > figure > ul > li.active ul > li.active .item-label {\n padding-right: 48px !important;\n}\n\n.left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before {\n border-left: 3px solid;\n border-left-color: var(--oc-selected-indicator-color);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > .item-label::before {\n border-right: 3px solid;\n border-right-color: var(--oc-selected-indicator-color);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active ul > li.active .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active ul > li.active .item-label::before {\n border-left: 3px solid;\n border-left-color: var(--oc-selected-indicator-color);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active ul > li.active .item-label::before {\n border-right: 3px solid;\n border-right-color: var(--oc-selected-indicator-color);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > figure > figcaption > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > figure > figcaption > .item-label::before {\n border-left: 3px solid;\n border-left-color: var(--oc-selected-indicator-color);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li.active > figure > figcaption > .item-label::before {\n border-right: 3px solid;\n border-right-color: var(--oc-selected-indicator-color);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li .item-label::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.2);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.active > figure > ul > li .item-label::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.2);\n right: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label {\n padding-left: 48px !important;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label {\n padding-right: 48px !important;\n}\n\n.left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.2);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.has-items.active > .item-label::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.2);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar li.active > .item-label {\n background-color: rgba(0, 0, 0, 0.1);\n font-weight: 600;\n}\n\n.left-sidebar-compact #ta-left-sidebar li .active::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li .active::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.1);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li .active::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.1);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar li .active .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li .active .item-label::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.2);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li .active .item-label::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.2);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure .item-label {\n color: var(--oc-admin-menu-item-font-color) !important;\n}\n\n.left-sidebar-compact #ta-left-sidebar li > .item-label {\n color: var(--oc-admin-menu-item-font-color) !important;\n}\n\n.left-sidebar-compact #ta-left-sidebar li.active > figure ul > li > figure > figcaption > .item-label::before {\n bottom: 0;\n content: \"\";\n position: absolute;\n top: 0;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li.active > figure ul > li > figure > figcaption > .item-label::before {\n border-left: 3px solid;\n border-left-color: rgba(0, 0, 0, 0.2);\n left: 0;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li.active > figure ul > li > figure > figcaption > .item-label::before {\n border-right: 3px solid;\n border-right-color: rgba(0, 0, 0, 0.2);\n right: 0;\n}\n\n.left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li {\n background: rgba(0, 0, 0, 0.1);\n}\n\n.left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li > figure > figcaption > a {\n color: var(--oc-admin-menu-item-font-color-active);\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li > figure > figcaption > a {\n padding-left: 48px !important;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > li > figure > figcaption > a {\n padding-right: 48px !important;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > .active > a {\n padding-left: 44px !important;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact #ta-left-sidebar li > figure ul > li > figure ul > .active > a {\n padding-right: 44px !important;\n}\n\n.left-sidebar-compact #ta-left-sidebar .footer {\n background-color: var(--oc-admin-menu-bg-color) !important;\n position: relative;\n z-index: 1;\n}\n\n.left-sidebar-compact #ta-left-sidebar .footer:before {\n content: \"\";\n width: 60%;\n height: 1px;\n background: rgba(0, 0, 0, 0.1);\n display: block;\n margin: 0px auto;\n}\n\n.left-sidebar-compact #ta-left-sidebar #filter,\n.left-sidebar-compact #ta-left-sidebar #filter:focus {\n display: none;\n}\n\n.left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure {\n position: static;\n z-index: unset;\n}\n\n.left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul:before {\n content: attr(data-title);\n padding: 0 20px;\n font-size: 14px;\n font-weight: bold;\n width: 100%;\n display: block;\n}\n\n.left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before {\n background: rgba(0, 0, 0, 0.1);\n margin: 0px auto;\n content: \"\";\n height: 1px;\n display: block;\n position: absolute;\n width: 90%;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before {\n left: 15px;\n}\n\n[dir=\"rtl\"] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li.visible > figure > ul > li:first-child::before {\n right: 15px;\n}\n\n.left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul {\n position: absolute;\n width: var(--oc-start-navigation-width);\n -webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n -moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n height: calc(100vh - 52px);\n max-height: unset;\n z-index: 1;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-width: thin;\n scrollbar-color: var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color);\n top: 0px;\n}\n\n[dir=\"ltr\"] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul {\n left: var(--oc-start-navigation-width-when-compact);\n}\n\n[dir=\"rtl\"] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav > ul > li > figure > ul {\n right: var(--oc-start-navigation-width-when-compact);\n}\n\n.left-sidebar-compact #ta-left-sidebar a[aria-expanded=true] .chevron {\n transform: rotate(90deg);\n transition-duration: 0.2s;\n}\n\nhtml:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin > li > .item-label {\n background-color: var(--oc-admin-menu-bg-color, #f8f9fa) !important;\n}\n\n.leftbar-compactor {\n display: block;\n width: var(--oc-start-navigation-width-when-compact);\n height: 50px;\n padding: 10px;\n border: none;\n background-color: transparent;\n color: var(--oc-admin-menu-font-color);\n cursor: pointer;\n font-size: 20px;\n transition-duration: 0.2s;\n display: block;\n transform: scale(2, 1);\n}\n\n[dir=\"ltr\"] .leftbar-compactor {\n float: right;\n}\n\n[dir=\"rtl\"] .leftbar-compactor {\n float: left;\n}\n\n.leftbar-compactor:focus {\n outline: none;\n}\n\n.leftbar-compactor:hover {\n color: rgb(0, 120, 212);\n color: rgb(0, 120, 212);\n text-shadow: 0 0 4px rgba(0, 120, 212, 0.5);\n}\n\n.leftbar-compactor:before {\n content: \"⟪\";\n}\n\n.left-sidebar-compact .leftbar-compactor {\n transition-duration: 0.2s;\n transform: scale(-2, 1);\n}"],"names":[]} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.min.css b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.min.css index 37d31dd9bca..201e00c2c15 100644 --- a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.min.css +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/admin-layout.min.css @@ -1 +1 @@ -@charset "UTF-8";:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}body,html{height:100%}[dir] .cursor-move{cursor:move}[dir] .cursor-pointer{cursor:pointer}.ta-wrapper{height:100%}.ta-content{min-height:100%}[dir] .ta-content{padding:1rem;padding-top:calc(var(--oc-top-nav-height,0) + 1rem)}[dir=ltr] .ta-content{margin-left:var(--oc-start-navigation-width);transition:margin-left .2s ease-in-out}[dir=rtl] .ta-content{margin-right:var(--oc-start-navigation-width);transition:margin-right .2s ease-in-out}.ta-content h1{line-height:40px;font-size:28px;letter-spacing:-.04em;font-weight:700}@media (max-width:575.98px){[dir=ltr] .ta-content{margin-left:var(--oc-start-navigation-width-when-compact);transition:margin-left .5s ease-in-out}[dir=rtl] .ta-content{margin-right:var(--oc-start-navigation-width-when-compact);transition:margin-right .5s ease-in-out}}[dir=ltr] .left-sidebar-compact .ta-content{margin-left:var(--oc-start-navigation-width-when-compact)}[dir=rtl] .left-sidebar-compact .ta-content{margin-right:var(--oc-start-navigation-width-when-compact)}.preload *{-moz-transition:none!important;-o-transition:none!important}[dir] .preload *{-webkit-transition:none!important}:root{--oc-border-content:var(--bs-border-width) solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#CDCDCD;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}body:not(.left-sidebar-compact) #ta-left-sidebar{z-index:var(--oc-start-navigation-zindex);position:fixed;top:var(--oc-top-nav-height);bottom:0;width:var(--oc-start-navigation-width);color:var(--oc-admin-menu-font-color)}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar{background-color:var(--oc-admin-menu-bg-color)}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar{left:0;border-right:var(--oc-border-content);transition:left .2s ease-in-out,width .2s ease-in-out}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar{right:0;border-left:var(--oc-border-content);transition:right .2s ease-in-out,width .2s ease-in-out}body:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar{width:4px}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar-thumb{background-color:var(--oc-scrollbar-color)}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar figure{margin:0}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron{transition-duration:.2s}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron{transform:rotate(90deg)}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron{transform:rotate(-90deg)}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=false] .chevron{transition-duration:.2s}body:not(.left-sidebar-compact) #ta-left-sidebar .collapse{display:none}body:not(.left-sidebar-compact) #ta-left-sidebar .collapse.show{display:block}body:not(.left-sidebar-compact) #ta-left-sidebar .chevron{position:absolute;top:38%}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron{left:100%;margin-left:-25px}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron{right:100%;margin-right:-25px}body:not(.left-sidebar-compact) #ta-left-sidebar a,body:not(.left-sidebar-compact) #ta-left-sidebar figcaption{position:relative;display:block}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar a,[dir] body:not(.left-sidebar-compact) #ta-left-sidebar figcaption{margin:0}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav{position:relative;flex:1 1 auto;height:calc(100% - 51px - 38px)}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul{white-space:nowrap}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul{margin:0;padding:0}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul li{position:relative;display:list-item;list-style:none}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul li{margin:0;padding:0}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul li .item-label{flex-grow:1}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul li .item-label{cursor:pointer}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li{line-height:3em;width:var(--oc-start-navigation-width);transition:width .2s ease-in-out}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li{background-color:var(--oc-admin-menu-bg-color)}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li>figure>ul>li{line-height:2.5em}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)::before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)::before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.new:after{content:"";width:92%;height:1px;display:block}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.new:after{background:rgba(140,130,115,.13);margin:0 auto}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin{overflow-y:auto;overflow-x:hidden;height:100%;scrollbar-width:thin;scrollbar-color:var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color)}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin{margin-bottom:40px}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label{display:flex}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label{padding-left:0!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label{padding-right:0!important}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label>span.icon{flex-shrink:0;font-size:22px;width:var(--oc-start-navigation-width-when-compact)}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label>span.icon{padding:0 5px}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label>span.icon svg{width:35px}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label>span.title{flex-grow:1;font-size:14px;width:calc(100% - 48px - 45px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin>li>figure>figcaption>.item-label>.collapse-icon{color:rgba(255,0,0,0);display:flex;justify-content:center}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited,body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label{color:var(--oc-admin-menu-item-font-color);text-decoration:none}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label{padding-left:16px}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label{padding-right:16px}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav .btn-nostyle{color:inherit;font:inherit;width:45px;outline:0}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav .btn-nostyle{background:0 0;border:none;padding:0;cursor:pointer}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>li>figure>figcaption>.item-label{width:100%}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited{padding-left:12px}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited{padding-right:12px}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li .item-label:hover{background-color:rgba(0,0,0,.1)}body:not(.left-sidebar-compact) #ta-left-sidebar li>figure>ul>li.active>.item-label{color:var(--oc-admin-menu-item-font-color-active)!important;font-weight:600}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li>figure>ul>li.active>.item-label{background:rgba(0,0,0,.1)}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li>figure>ul>li.active>.item-label{padding-left:48px!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li>figure>ul>li.active>.item-label{padding-right:48px!important}body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li.active>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li.active>.item-label::before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li.active>.item-label::before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li>.item-label::before{border-left:3px solid;border-left-color:rgba(0,0,0,.2);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li>.item-label::before{border-right:3px solid;border-right-color:rgba(0,0,0,.2);right:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label{padding-left:48px!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label{padding-right:48px!important}body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label::before{border-left:3px solid;border-left-color:rgba(0,0,0,.1);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label::before{border-right:3px solid;border-right-color:rgba(0,0,0,.1);right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>figcaption>.item-label{font-weight:600}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>figcaption>.item-label{background-color:rgba(0,0,0,.05)}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>figcaption>.item-label:hover{background-color:rgba(0,0,0,.1)}body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before{border-left:3px solid;border-left-color:rgba(0,0,0,.05);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li .active::before{border-right:3px solid;border-right-color:rgba(0,0,0,.05);right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before{border-left:3px solid;border-left-color:rgba(0,0,0,.1);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label::before{border-right:3px solid;border-right-color:rgba(0,0,0,.1);right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>.item-label,body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>figure>figcaption>.item-label{color:var(--oc-admin-menu-item-font-color)!important}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>.item-label,[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>figure>figcaption>.item-label{background:rgba(0,0,0,.05)}body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>.item-label>span.icon,body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>figure>figcaption>.item-label>span.icon{font-size:16px!important}body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul>li>figure>figcaption>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul>li>figure>figcaption>.item-label::before{border-left:3px solid;border-left-color:rgba(0,0,0,.2);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul>li>figure>figcaption>.item-label::before{border-right:3px solid;border-right-color:rgba(0,0,0,.2);right:0}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>li{background:rgba(0,0,0,.1)}body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>li>a{color:var(--oc-admin-menu-item-font-color-active)}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>li>a{padding-left:48px!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>li>a{padding-right:48px!important}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>.active>a{padding-left:44px!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>.active>a{padding-right:44px!important}body:not(.left-sidebar-compact) #ta-left-sidebar .footer{position:relative;z-index:1}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar .footer{background-color:var(--oc-admin-menu-bg-color)!important}body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before{content:"";width:92%;height:1px;display:block}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before{background:rgba(140,130,115,.13);margin:0 auto}[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #filter,[dir] body:not(.left-sidebar-compact) #ta-left-sidebar #filter:focus{border:none;box-shadow:unset;border-radius:unset}.left-sidebar-compact #ta-left-sidebar{z-index:var(--oc-start-navigation-zindex);position:fixed;top:var(--oc-top-nav-height);bottom:0;width:var(--oc-start-navigation-width-when-compact);color:var(--oc-admin-menu-font-color);font-family:"Segoe UI VSS (Regular)","Segoe UI","-apple-system",BlinkMacSystemFont,Roboto,"Helvetica Neue",Helvetica,Ubuntu,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"}[dir] .left-sidebar-compact #ta-left-sidebar{background-color:var(--oc-admin-menu-bg-color)}[dir=ltr] .left-sidebar-compact #ta-left-sidebar{left:0;border-right:var(--oc-border-content);transition:left .2s ease-in-out,width .2s ease-in-out}[dir=rtl] .left-sidebar-compact #ta-left-sidebar{right:0;border-left:var(--oc-border-content);transition:right .2s ease-in-out,width .2s ease-in-out}.left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar{width:4px}[dir] .left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar-thumb{background-color:var(--oc-scrollbar-color)}[dir] .left-sidebar-compact #ta-left-sidebar figure{margin:0}[dir] .left-sidebar-compact #ta-left-sidebar a[aria-expanded=false] .chevron{transition-duration:.2s}.left-sidebar-compact #ta-left-sidebar .collapse{display:none}.left-sidebar-compact #ta-left-sidebar .collapse.show{display:block}.left-sidebar-compact #ta-left-sidebar .chevron{position:absolute;top:38%}[dir=ltr] .left-sidebar-compact #ta-left-sidebar .chevron{left:100%;margin-left:-25px}[dir=rtl] .left-sidebar-compact #ta-left-sidebar .chevron{right:100%;margin-right:-25px}.left-sidebar-compact #ta-left-sidebar a,.left-sidebar-compact #ta-left-sidebar figcaption{position:relative;display:block}[dir] .left-sidebar-compact #ta-left-sidebar a,[dir] .left-sidebar-compact #ta-left-sidebar figcaption{margin:0}.left-sidebar-compact #ta-left-sidebar #left-nav{flex:1 1 auto;height:calc(100% - 51px);overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color)}.left-sidebar-compact #ta-left-sidebar #left-nav ul{white-space:nowrap}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav ul{margin:0;padding:0;background-color:var(--oc-admin-menu-item-bg-color)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul li{position:relative;display:list-item;list-style:none}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul li{margin:0;padding:0}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul li .item-label{cursor:pointer}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li{height:48px;line-height:3em;width:calc(var(--oc-start-navigation-width-when-compact) - 1);transition:width .2s ease-in-out}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li{background-color:var(--oc-admin-menu-bg-color)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li:first-child>span.title:after{content:"";width:75%;height:1px;display:block}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li:first-child>span.title:after{background:rgba(0,0,0,.1);margin:0 auto 4px auto}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>.btn-nostyle{display:none}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul>li{line-height:2.5em}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li:not(.has-items) .item-label>span.icon{font-size:22px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label{display:flex}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label{padding-left:0!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label{padding-right:0!important}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.icon{flex-shrink:0;font-size:16px}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.icon{padding:0 5px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.icon svg{width:35px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.icon-none{flex-shrink:0;font-size:16px;width:37px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.title{flex-grow:1;font-size:14px;width:calc(100% - 48px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>.collapse-icon{color:rgba(255,0,0,0);display:flex;justify-content:center}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .icon:hover{background-color:rgba(0,0,0,.1)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .title:hover{color:var(--oc-admin-menu-font-color-hover)}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .title:hover{background-color:rgba(0,0,0,.1)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)>figure>figcaption>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)>figure>figcaption>.item-label::before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)>figure>figcaption>.item-label::before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.visible>figure>figcaption{box-shadow:0 0 10px 0 rgba(0,0,0,.2)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.visible>figure>figcaption>a.item-label{z-index:9999}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li .item-label:hover:not(:first-child){color:var(--oc-admin-menu-font-color-hover)}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li .item-label:hover:not(:first-child){background-color:rgba(0,0,0,.1)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.icon{display:inline-block!important;color:var(--oc-admin-menu-item-font-color);width:var(--oc-start-navigation-width-when-compact)}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.icon{background-color:var(--oc-admin-menu-bg-color)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.active>figure>figcaption>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.active>figure>figcaption>.item-label::before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.active>figure>figcaption>.item-label::before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.visible{-webkit-box-shadow:0 0 10px 0 rgba(0,0,0,.2);-moz-box-shadow:0 0 10px 0 rgba(0,0,0,.2);z-index:1}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.visible{box-shadow:0 0 10px 0 rgba(0,0,0,.2)}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul li .active>figure>figcaption>.item-label:hover{background-color:rgba(0,0,0,.1)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li{overflow:hidden}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li span.title{display:none}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.visible{overflow:visible;width:calc(var(--oc-start-navigation-width-when-compact) + var(--oc-start-navigation-width));transition:none;position:static}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.visible>figure{position:absolute;z-index:999}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.visible span.icon,.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.visible span.title{display:block}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul{position:absolute;width:var(--oc-start-navigation-width);-webkit-box-shadow:0 0 10px 0 rgba(0,0,0,.2);-moz-box-shadow:0 0 10px 0 rgba(0,0,0,.2);max-height:250px;z-index:1;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color)}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul{box-shadow:0 0 10px 0 rgba(0,0,0,.2)}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul{left:var(--oc-start-navigation-width-when-compact)}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul{right:var(--oc-start-navigation-width-when-compact)}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul li .item-label:hover{background-color:rgba(0,0,0,.05)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label{color:var(--oc-admin-menu-item-font-color);display:flex}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label{background-color:var(--oc-admin-menu-item-bg-color)}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label{padding-left:0!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label{padding-right:0!important}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .title{padding:0 20px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .title:hover{color:var(--oc-admin-menu-item-font-color)}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .title:hover{background-color:var(--oc-admin-menu-item-bg-color)!important}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.icon{flex-shrink:0;font-size:22px;width:var(--oc-start-navigation-width-when-compact)}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.icon{padding:0 5px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.icon svg{width:35px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title{flex-grow:1;font-size:14px;font-weight:700;width:calc(100% - 48px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:260px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title:after{content:"";height:1px;display:block;position:absolute;width:75%}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title:after{background:rgba(0,0,0,.1);margin:0 auto}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title:after{left:63px}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title:after{right:63px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)::before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)::before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar #left-nav li a:active,.left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,.left-sidebar-compact #ta-left-sidebar #left-nav li a:visited,.left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label{text-decoration:none}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active,[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited,[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label{padding-left:16px}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active,[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited,[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label{padding-right:16px}.left-sidebar-compact #ta-left-sidebar #left-nav .btn-nostyle{color:inherit;font:inherit;width:45px;outline:0}[dir] .left-sidebar-compact #ta-left-sidebar #left-nav .btn-nostyle{background:0 0;border:none;padding:0;cursor:pointer}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label,[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:active,[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover,[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited{padding-left:12px}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label,[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:active,[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover,[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited{padding-right:12px}.left-sidebar-compact #ta-left-sidebar li>figure>ul>li.active ul>li.active .item-label{color:rgba(var(--oc-admin-menu-item-font-color-active),.9)!important;font-weight:600}[dir] .left-sidebar-compact #ta-left-sidebar li>figure>ul>li.active ul>li.active .item-label{background:rgba(0,0,0,.05)}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li>figure>ul>li.active ul>li.active .item-label{padding-left:48px!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li>figure>ul>li.active ul>li.active .item-label{padding-right:48px!important}.left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>.item-label::before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>.item-label::before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active ul>li.active .item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active ul>li.active .item-label::before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active ul>li.active .item-label::before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>figure>figcaption>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>figure>figcaption>.item-label::before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>figure>figcaption>.item-label::before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li .item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li .item-label::before{border-left:3px solid;border-left-color:rgba(0,0,0,.2);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li .item-label::before{border-right:3px solid;border-right-color:rgba(0,0,0,.2);right:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label{padding-left:48px!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label{padding-right:48px!important}.left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label::before{border-left:3px solid;border-left-color:rgba(0,0,0,.2);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label::before{border-right:3px solid;border-right-color:rgba(0,0,0,.2);right:0}.left-sidebar-compact #ta-left-sidebar li.active>.item-label{font-weight:600}[dir] .left-sidebar-compact #ta-left-sidebar li.active>.item-label{background-color:rgba(0,0,0,.1)}.left-sidebar-compact #ta-left-sidebar li .active::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li .active::before{border-left:3px solid;border-left-color:rgba(0,0,0,.1);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li .active::before{border-right:3px solid;border-right-color:rgba(0,0,0,.1);right:0}.left-sidebar-compact #ta-left-sidebar li .active .item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li .active .item-label::before{border-left:3px solid;border-left-color:rgba(0,0,0,.2);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li .active .item-label::before{border-right:3px solid;border-right-color:rgba(0,0,0,.2);right:0}.left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure .item-label{color:var(--oc-admin-menu-item-font-color)!important}.left-sidebar-compact #ta-left-sidebar li>.item-label{color:var(--oc-admin-menu-item-font-color)!important}.left-sidebar-compact #ta-left-sidebar li.active>figure ul>li>figure>figcaption>.item-label::before{bottom:0;content:"";position:absolute;top:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure ul>li>figure>figcaption>.item-label::before{border-left:3px solid;border-left-color:rgba(0,0,0,.2);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure ul>li>figure>figcaption>.item-label::before{border-right:3px solid;border-right-color:rgba(0,0,0,.2);right:0}[dir] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>li{background:rgba(0,0,0,.1)}.left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>li>figure>figcaption>a{color:var(--oc-admin-menu-item-font-color-active)}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>li>figure>figcaption>a{padding-left:48px!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>li>figure>figcaption>a{padding-right:48px!important}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>.active>a{padding-left:44px!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>.active>a{padding-right:44px!important}.left-sidebar-compact #ta-left-sidebar .footer{position:relative;z-index:1}[dir] .left-sidebar-compact #ta-left-sidebar .footer{background-color:var(--oc-admin-menu-bg-color)!important}.left-sidebar-compact #ta-left-sidebar .footer:before{content:"";width:60%;height:1px;display:block}[dir] .left-sidebar-compact #ta-left-sidebar .footer:before{background:rgba(0,0,0,.1);margin:0 auto}.left-sidebar-compact #ta-left-sidebar #filter,.left-sidebar-compact #ta-left-sidebar #filter:focus{display:none}.left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure{position:static;z-index:unset}.left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul:before{content:attr(data-title);font-size:14px;font-weight:700;width:100%;display:block}[dir] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul:before{padding:0 20px}.left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul>li:first-child::before{content:"";height:1px;display:block;position:absolute;width:90%}[dir] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul>li:first-child::before{background:rgba(0,0,0,.1);margin:0 auto}[dir=ltr] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul>li:first-child::before{left:15px}[dir=rtl] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul>li:first-child::before{right:15px}.left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li>figure>ul{position:absolute;width:var(--oc-start-navigation-width);-webkit-box-shadow:0 0 10px 0 rgba(0,0,0,.2);-moz-box-shadow:0 0 10px 0 rgba(0,0,0,.2);height:calc(100vh - 52px);max-height:unset;z-index:1;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--oc-scrollbar-color) var(--oc-admin-menu-bg-color);top:0}[dir] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li>figure>ul{box-shadow:0 0 10px 0 rgba(0,0,0,.2)}[dir=ltr] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li>figure>ul{left:var(--oc-start-navigation-width-when-compact)}[dir=rtl] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li>figure>ul{right:var(--oc-start-navigation-width-when-compact)}.left-sidebar-compact #ta-left-sidebar a[aria-expanded=true] .chevron{transform:rotate(90deg);transition-duration:.2s}html[dir]:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin>li>.item-label{background-color:var(--oc-admin-menu-bg-color,#f8f9fa)!important}.leftbar-compactor{display:block;width:var(--oc-start-navigation-width-when-compact);height:50px;color:var(--oc-admin-menu-font-color);font-size:20px;display:block}[dir] .leftbar-compactor{padding:10px;border:none;background-color:transparent;cursor:pointer;transition-duration:.2s;transform:scale(2,1)}[dir=ltr] .leftbar-compactor{float:right}[dir=rtl] .leftbar-compactor{float:left}.leftbar-compactor:focus{outline:0}.leftbar-compactor:hover{color:#0078d4;color:var(#0078d4)}[dir] .leftbar-compactor:hover{text-shadow:0 0 4px rgba(0,120,212,.5)}.leftbar-compactor:before{content:"⟪"}[dir] .left-sidebar-compact .leftbar-compactor{transition-duration:.2s;transform:scale(-2,1)} +body,html{height:100%}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.ta-wrapper{height:100%}.ta-content{min-height:100%;padding:1rem;padding-top:calc(var(--oc-top-nav-height,0) + 1rem)}[dir=ltr] .ta-content{margin-left:var(--oc-start-navigation-width);transition:margin-left .2s ease-in-out}[dir=rtl] .ta-content{margin-right:var(--oc-start-navigation-width);transition:margin-right .2s ease-in-out}.ta-content h1{letter-spacing:-.04em;font-size:28px;font-weight:700;line-height:40px}@media (width<=575.98px){[dir=ltr] .ta-content{margin-left:var(--oc-start-navigation-width-when-compact);transition:margin-left .5s ease-in-out}[dir=rtl] .ta-content{margin-right:var(--oc-start-navigation-width-when-compact);transition:margin-right .5s ease-in-out}}[dir=ltr] .left-sidebar-compact .ta-content{margin-left:var(--oc-start-navigation-width-when-compact)}[dir=rtl] .left-sidebar-compact .ta-content{margin-right:var(--oc-start-navigation-width-when-compact)}.preload *{-o-transition:none!important;-webkit-transition:none!important;-moz-transition:none!important}:root{--oc-border-content:var(--bs-border-width)solid var(--bs-border-color);--oc-admin-menu-bg-color:var(--bs-secondary-bg-subtle);--oc-scrollbar-color:#cdcdcd;--oc-admin-menu-font-color:var(--bs-secondary-color);--oc-admin-menu-font-color-hover:var(--bs-emphasis-color);--oc-admin-menu-item-bg-color:var(--bs-secondary-bg-subtle);--oc-admin-menu-item-font-color:var(--bs-secondary-color);--oc-admin-menu-item-font-color-active:var(--bs-emphasis-color);--oc-li-hover-bg-color:var(--bs-list-group-action-hover-bg);--oc-zindex-dropdown:1000;--oc-height-dropdown:250px;--oc-top-nav-height:52px;--oc-top-nav-zindex:1034;--oc-footer-height:40px;--oc-start-navigation-width:260px;--oc-start-navigation-width-when-compact:48px;--oc-start-navigation-zindex:1033;--oc-link-padding-left:16px;--oc-editor-fullscreen:1054;--oc-selected-indicator-color:var(--bs-primary);--oc-action-bar-zindex:980;--oc-second-action-bar-zindex:983;--bs-dropdown-zindex:1000;--bs-zindex-fixed:1030;--bs-bg-opacity:1}body:not(.left-sidebar-compact) #ta-left-sidebar{background-color:var(--oc-admin-menu-bg-color);z-index:var(--oc-start-navigation-zindex);top:var(--oc-top-nav-height);width:var(--oc-start-navigation-width);color:var(--oc-admin-menu-font-color);position:fixed;bottom:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar{border-right:var(--oc-border-content);transition:left .2s ease-in-out,width .2s ease-in-out;left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar{border-left:var(--oc-border-content);transition:right .2s ease-in-out,width .2s ease-in-out;right:0}body:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar{width:4px}body:not(.left-sidebar-compact) #ta-left-sidebar ::-webkit-scrollbar-thumb{background-color:var(--oc-scrollbar-color)}body:not(.left-sidebar-compact) #ta-left-sidebar figure{margin:0}body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron{transition-duration:.2s}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron{transform:rotate(90deg)}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=true] .chevron{transform:rotate(-90deg)}body:not(.left-sidebar-compact) #ta-left-sidebar a[aria-expanded=false] .chevron{transition-duration:.2s}body:not(.left-sidebar-compact) #ta-left-sidebar .collapse{display:none}body:not(.left-sidebar-compact) #ta-left-sidebar .collapse.show{display:block}body:not(.left-sidebar-compact) #ta-left-sidebar .chevron{position:absolute;top:38%}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron{margin-left:-25px;left:100%}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar .chevron{margin-right:-25px;right:100%}body:not(.left-sidebar-compact) #ta-left-sidebar figcaption,body:not(.left-sidebar-compact) #ta-left-sidebar a{margin:0;display:block;position:relative}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav{flex:auto;height:calc(100% - 89px);position:relative}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul{white-space:nowrap;margin:0;padding:0}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul li{margin:0;padding:0;list-style:none;display:list-item;position:relative}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul li .item-label{cursor:pointer;flex-grow:1}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li{width:var(--oc-start-navigation-width);background-color:var(--oc-admin-menu-bg-color);line-height:3em;transition:width .2s ease-in-out}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li>figure>ul>li{line-height:2.5em}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.active:not(.has-items):before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.active:not(.has-items):before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.active:not(.has-items):before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul>li.new:after{content:"";background:#8c827321;width:92%;height:1px;margin:0 auto;display:block}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin{scrollbar-width:thin;scrollbar-color:var(--oc-scrollbar-color)var(--oc-admin-menu-bg-color);height:100%;margin-bottom:40px;overflow:hidden auto}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label{display:flex}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label{padding-left:0!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label{padding-right:0!important}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label>span.icon{width:var(--oc-start-navigation-width-when-compact);flex-shrink:0;padding:0 5px;font-size:22px}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label>span.icon svg{width:35px}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin .item-label>span.title{white-space:nowrap;text-overflow:ellipsis;flex-grow:1;width:calc(100% - 93px);font-size:14px;overflow:hidden}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>ul.menu-admin>li>figure>figcaption>.item-label>.collapse-icon{color:#f000;justify-content:center;display:flex}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label,body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited{color:var(--oc-admin-menu-item-font-color);text-decoration:none}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited{padding-left:16px}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav ul li .item-label,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:hover,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:active,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav li a:visited{padding-right:16px}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav .btn-nostyle{color:inherit;font:inherit;cursor:pointer;background:0 0;border:none;outline:none;width:45px;padding:0}body:not(.left-sidebar-compact) #ta-left-sidebar #left-nav>li>figure>figcaption>.item-label{width:100%}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active,[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited{padding-left:12px}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items .item-label,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:hover,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:active,[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items a:visited{padding-right:12px}body:not(.left-sidebar-compact) #ta-left-sidebar li .item-label:hover{background-color:#0000001a}body:not(.left-sidebar-compact) #ta-left-sidebar li>figure>ul>li.active>.item-label{background:#0000001a;font-weight:600;color:var(--oc-admin-menu-item-font-color-active)!important}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li>figure>ul>li.active>.item-label{padding-left:48px!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li>figure>ul>li.active>.item-label{padding-right:48px!important}body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li.active>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li.active>.item-label:before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li.active>.item-label:before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li>.item-label:before{border-left:3px solid #0003;left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>ul>li>.item-label:before{border-right:3px solid #0003;right:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label{padding-left:48px!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label{padding-right:48px!important}body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label:before{border-left:3px solid #0000001a;left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.has-items.active>figure>figcaption>.item-label:before{border-right:3px solid #0000001a;right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>figcaption>.item-label{background-color:#0000000d;font-weight:600}body:not(.left-sidebar-compact) #ta-left-sidebar li.active>figure>figcaption>.item-label:hover{background-color:#0000001a}body:not(.left-sidebar-compact) #ta-left-sidebar li .active:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li .active:before{border-left:3px solid #0000000d;left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li .active:before{border-right:3px solid #0000000d;right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label:before{border-left:3px solid #0000001a;left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li .active .item-label:before{border-right:3px solid #0000001a;right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>.item-label,body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>figure>figcaption>.item-label{background:#0000000d;color:var(--oc-admin-menu-item-font-color)!important}body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>.item-label>span.icon,body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li>figure>figcaption>.item-label>span.icon{font-size:16px!important}body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul>li>figure>figcaption>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul>li>figure>figcaption>.item-label:before{border-left:3px solid #0003;left:0}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li.active ul>li>figure>figcaption>.item-label:before{border-right:3px solid #0003;right:0}body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>li{background:#0000001a}body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>li>a{color:var(--oc-admin-menu-item-font-color-active)}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>li>a{padding-left:48px!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>li>a{padding-right:48px!important}[dir=ltr] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>.active>a{padding-left:44px!important}[dir=rtl] body:not(.left-sidebar-compact) #ta-left-sidebar li ul>li ul>.active>a{padding-right:44px!important}body:not(.left-sidebar-compact) #ta-left-sidebar .footer{z-index:1;position:relative;background-color:var(--oc-admin-menu-bg-color)!important}body:not(.left-sidebar-compact) #ta-left-sidebar .footer:before{content:"";background:#8c827321;width:92%;height:1px;margin:0 auto;display:block}body:not(.left-sidebar-compact) #ta-left-sidebar #filter,body:not(.left-sidebar-compact) #ta-left-sidebar #filter:focus{box-shadow:unset;border-radius:unset;border:none}.left-sidebar-compact #ta-left-sidebar{background-color:var(--oc-admin-menu-bg-color);z-index:var(--oc-start-navigation-zindex);top:var(--oc-top-nav-height);width:var(--oc-start-navigation-width-when-compact);color:var(--oc-admin-menu-font-color);font-family:"Segoe UI VSS (Regular)",Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,Helvetica,Ubuntu,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;position:fixed;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar{border-right:var(--oc-border-content);transition:left .2s ease-in-out,width .2s ease-in-out;left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar{border-left:var(--oc-border-content);transition:right .2s ease-in-out,width .2s ease-in-out;right:0}.left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar{width:4px}.left-sidebar-compact #ta-left-sidebar ::-webkit-scrollbar-thumb{background-color:var(--oc-scrollbar-color)}.left-sidebar-compact #ta-left-sidebar figure{margin:0}.left-sidebar-compact #ta-left-sidebar a[aria-expanded=false] .chevron{transition-duration:.2s}.left-sidebar-compact #ta-left-sidebar .collapse{display:none}.left-sidebar-compact #ta-left-sidebar .collapse.show{display:block}.left-sidebar-compact #ta-left-sidebar .chevron{position:absolute;top:38%}[dir=ltr] .left-sidebar-compact #ta-left-sidebar .chevron{margin-left:-25px;left:100%}[dir=rtl] .left-sidebar-compact #ta-left-sidebar .chevron{margin-right:-25px;right:100%}.left-sidebar-compact #ta-left-sidebar figcaption,.left-sidebar-compact #ta-left-sidebar a{margin:0;display:block;position:relative}.left-sidebar-compact #ta-left-sidebar #left-nav{scrollbar-width:thin;scrollbar-color:var(--oc-scrollbar-color)var(--oc-admin-menu-bg-color);flex:auto;height:calc(100% - 51px);overflow:hidden auto}.left-sidebar-compact #ta-left-sidebar #left-nav ul{white-space:nowrap;background-color:var(--oc-admin-menu-item-bg-color);margin:0;padding:0}.left-sidebar-compact #ta-left-sidebar #left-nav>ul li{margin:0;padding:0;list-style:none;display:list-item;position:relative}.left-sidebar-compact #ta-left-sidebar #left-nav>ul li .item-label{cursor:pointer}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li{height:48px;width:calc(var(--oc-start-navigation-width-when-compact) - 1);background-color:var(--oc-admin-menu-bg-color);line-height:3em;transition:width .2s ease-in-out}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li:first-child>span.title:after{content:"";background:#0000001a;width:75%;height:1px;margin:0 auto 4px;display:block}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>.btn-nostyle{display:none}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul>li{line-height:2.5em}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li:not(.has-items) .item-label>span.icon{font-size:22px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label{display:flex}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label{padding-left:0!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label{padding-right:0!important}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.icon{flex-shrink:0;padding:0 5px;font-size:16px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.icon svg{width:35px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.icon-none{flex-shrink:0;width:37px;font-size:16px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul .item-label>span.title{white-space:nowrap;text-overflow:ellipsis;flex-grow:1;width:calc(100% - 48px);font-size:14px;overflow:hidden}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>.collapse-icon{color:#f000;justify-content:center;display:flex}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .icon:hover{background-color:#0000001a}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)>figure>figcaption>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)>figure>figcaption>.item-label:before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items)>figure>figcaption>.item-label:before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.visible>figure>figcaption{box-shadow:0 0 10px #0003}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.visible>figure>figcaption>a.item-label{z-index:9999}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li .item-label:hover:not(:first-child){color:var(--oc-admin-menu-font-color-hover);background-color:#0000001a}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.icon{color:var(--oc-admin-menu-item-font-color);background-color:var(--oc-admin-menu-bg-color);width:var(--oc-start-navigation-width-when-compact);display:inline-block!important}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.active>figure>figcaption>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.active>figure>figcaption>.item-label:before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.active>figure>figcaption>.item-label:before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.has-items.visible{z-index:1;-webkit-box-shadow:0 0 10px #0003;-moz-box-shadow:0 0 10px #0003;box-shadow:0 0 10px #0003}.left-sidebar-compact #ta-left-sidebar #left-nav>ul li .active>figure>figcaption>.item-label:hover{background-color:#0000001a}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li{overflow:hidden}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li span.title{display:none}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.visible{width:calc(var(--oc-start-navigation-width-when-compact) + var(--oc-start-navigation-width));transition:none;position:static;overflow:visible}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.visible>figure{z-index:999;position:absolute}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.visible span.title,.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.visible span.icon{display:block}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul{width:var(--oc-start-navigation-width);z-index:1;scrollbar-width:thin;scrollbar-color:var(--oc-scrollbar-color)var(--oc-admin-menu-bg-color);max-height:250px;position:absolute;overflow:hidden auto;-webkit-box-shadow:0 0 10px #0003;-moz-box-shadow:0 0 10px #0003;box-shadow:0 0 10px #0003}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul{left:var(--oc-start-navigation-width-when-compact)}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul{right:var(--oc-start-navigation-width-when-compact)}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>ul li .item-label:hover{background-color:#0000000d}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label{background-color:var(--oc-admin-menu-item-bg-color);color:var(--oc-admin-menu-item-font-color);display:flex}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label{padding-left:0!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label{padding-right:0!important}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .title{padding:0 20px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label .title:hover{color:var(--oc-admin-menu-item-font-color);background-color:var(--oc-admin-menu-item-bg-color)!important}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.icon{width:var(--oc-start-navigation-width-when-compact);flex-shrink:0;padding:0 5px;font-size:22px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.icon svg{width:35px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title{white-space:nowrap;text-overflow:ellipsis;flex-grow:1;width:260px;font-size:14px;font-weight:700;overflow:hidden}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title:after{content:"";background:#0000001a;width:75%;height:1px;margin:0 auto;display:block;position:absolute}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title:after{left:63px}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li>figure>figcaption>.item-label>span.title:after{right:63px}.left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items):before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items):before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav>ul>li.active:not(.has-items):before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label,.left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,.left-sidebar-compact #ta-left-sidebar #left-nav li a:active,.left-sidebar-compact #ta-left-sidebar #left-nav li a:visited{text-decoration:none}[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label,[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active,[dir=ltr] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited{padding-left:16px}[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav ul li .item-label,[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:hover,[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:active,[dir=rtl] .left-sidebar-compact #ta-left-sidebar #left-nav li a:visited{padding-right:16px}.left-sidebar-compact #ta-left-sidebar #left-nav .btn-nostyle{color:inherit;font:inherit;cursor:pointer;background:0 0;border:none;outline:none;width:45px;padding:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label,[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover,[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:active,[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited{padding-left:12px}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items .item-label,[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:hover,[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:active,[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items a:visited{padding-right:12px}.left-sidebar-compact #ta-left-sidebar li>figure>ul>li.active ul>li.active .item-label{background:#0000000d;font-weight:600;color:rgba(var(--oc-admin-menu-item-font-color-active),.9)!important}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li>figure>ul>li.active ul>li.active .item-label{padding-left:48px!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li>figure>ul>li.active ul>li.active .item-label{padding-right:48px!important}.left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>.item-label:before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>.item-label:before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active ul>li.active .item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active ul>li.active .item-label:before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active ul>li.active .item-label:before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>figure>figcaption>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>figure>figcaption>.item-label:before{border-left:3px solid;border-left-color:var(--oc-selected-indicator-color);left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li.active>figure>figcaption>.item-label:before{border-right:3px solid;border-right-color:var(--oc-selected-indicator-color);right:0}.left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li .item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li .item-label:before{border-left:3px solid #0003;left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure>ul>li .item-label:before{border-right:3px solid #0003;right:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label{padding-left:48px!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label{padding-right:48px!important}.left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label:before{border-left:3px solid #0003;left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.has-items.active>.item-label:before{border-right:3px solid #0003;right:0}.left-sidebar-compact #ta-left-sidebar li.active>.item-label{background-color:#0000001a;font-weight:600}.left-sidebar-compact #ta-left-sidebar li .active:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li .active:before{border-left:3px solid #0000001a;left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li .active:before{border-right:3px solid #0000001a;right:0}.left-sidebar-compact #ta-left-sidebar li .active .item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li .active .item-label:before{border-left:3px solid #0003;left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li .active .item-label:before{border-right:3px solid #0003;right:0}.left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure .item-label,.left-sidebar-compact #ta-left-sidebar li>.item-label{color:var(--oc-admin-menu-item-font-color)!important}.left-sidebar-compact #ta-left-sidebar li.active>figure ul>li>figure>figcaption>.item-label:before{content:"";position:absolute;top:0;bottom:0}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li.active>figure ul>li>figure>figcaption>.item-label:before{border-left:3px solid #0003;left:0}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li.active>figure ul>li>figure>figcaption>.item-label:before{border-right:3px solid #0003;right:0}.left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>li{background:#0000001a}.left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>li>figure>figcaption>a{color:var(--oc-admin-menu-item-font-color-active)}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>li>figure>figcaption>a{padding-left:48px!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>li>figure>figcaption>a{padding-right:48px!important}[dir=ltr] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>.active>a{padding-left:44px!important}[dir=rtl] .left-sidebar-compact #ta-left-sidebar li>figure ul>li>figure ul>.active>a{padding-right:44px!important}.left-sidebar-compact #ta-left-sidebar .footer{z-index:1;position:relative;background-color:var(--oc-admin-menu-bg-color)!important}.left-sidebar-compact #ta-left-sidebar .footer:before{content:"";background:#0000001a;width:60%;height:1px;margin:0 auto;display:block}.left-sidebar-compact #ta-left-sidebar #filter,.left-sidebar-compact #ta-left-sidebar #filter:focus{display:none}.left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure{z-index:unset;position:static}.left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul:before{content:attr(data-title);width:100%;padding:0 20px;font-size:14px;font-weight:700;display:block}.left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul>li:first-child:before{content:"";background:#0000001a;width:90%;height:1px;margin:0 auto;display:block;position:absolute}[dir=ltr] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul>li:first-child:before{left:15px}[dir=rtl] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li.visible>figure>ul>li:first-child:before{right:15px}.left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li>figure>ul{width:var(--oc-start-navigation-width);height:calc(100vh - 52px);max-height:unset;z-index:1;scrollbar-width:thin;scrollbar-color:var(--oc-scrollbar-color)var(--oc-admin-menu-bg-color);position:absolute;top:0;overflow:hidden auto;-webkit-box-shadow:0 0 10px #0003;-moz-box-shadow:0 0 10px #0003;box-shadow:0 0 10px #0003}[dir=ltr] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li>figure>ul{left:var(--oc-start-navigation-width-when-compact)}[dir=rtl] .left-sidebar-compact.scroll #ta-left-sidebar #left-nav>ul>li>figure>ul{right:var(--oc-start-navigation-width-when-compact)}.left-sidebar-compact #ta-left-sidebar a[aria-expanded=true] .chevron{transition-duration:.2s;transform:rotate(90deg)}html:not(.fontawesome-i2svg-complete) #left-nav ul.menu-admin>li>.item-label{background-color:var(--oc-admin-menu-bg-color,#f8f9fa)!important}.leftbar-compactor{width:var(--oc-start-navigation-width-when-compact);height:50px;color:var(--oc-admin-menu-font-color);cursor:pointer;background-color:#0000;border:none;padding:10px;font-size:20px;transition-duration:.2s;display:block;transform:scaleX(2)}[dir=ltr] .leftbar-compactor{float:right}[dir=rtl] .leftbar-compactor{float:left}.leftbar-compactor:focus{outline:none}.leftbar-compactor:hover{color:#0078d4;text-shadow:0 0 4px #0078d480}.leftbar-compactor:before{content:"⟪"}.left-sidebar-compact .leftbar-compactor{transition-duration:.2s;transform:scaleX(-2)} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.css b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.css index 7bf7c2e45b7..31c1e81a8c6 100644 --- a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.css +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.css @@ -111,4 +111,4 @@ textarea.form-control.input-validation-error { .input-group > .form-select:not(:focus).input-validation-error, .input-group > .form-floating:not(:focus-within).input-validation-error { z-index: 4; -} +} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.css.map b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.css.map new file mode 100644 index 00000000000..3c06318e7c1 --- /dev/null +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":null,"mappings":"AAAA,sBAIA,qDAMA,gCAIA,uCAIA,uoBAqBA,wDAIA,uEAIA,qCAIA,4GAKA,iiBAOA,yLAKA,8JAKA,qFAIA,4iBAOA,kJAKA,uEAIA,0FAIA,+FAIA,sGAIA,8FAIA","sources":[""],"sourcesContent":["body, html {\n height: 100%;\n}\n\n.auth-wrapper {\n width: 100%;\n max-width: 800px;\n margin: auto;\n}\n\n.g-recaptcha {\n margin-bottom: 1rem;\n}\n\nspan.field-validation-error {\n width: 100%;\n}\n\n.validation-summary-errors {\n --bs-alert-color: var(--bs-danger-text-emphasis);\n --bs-alert-bg: var(--bs-danger-bg-subtle);\n --bs-alert-border-color: var(--bs-danger-border-subtle);\n --bs-alert-link-color: var(--bs-danger-text-emphasis);\n --bs-alert-padding-x: 1rem;\n --bs-alert-padding-y: 1rem;\n --bs-alert-margin-bottom: 1rem;\n --bs-alert-border-color: transparent;\n --bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);\n --bs-alert-border-radius: var(--bs-border-radius);\n --bs-alert-link-color: inherit;\n position: relative;\n padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);\n margin-bottom: var(--bs-alert-margin-bottom);\n color: var(--bs-alert-color);\n background-color: var(--bs-alert-bg);\n border: var(--bs-alert-border);\n border-radius: var(--bs-alert-border-radius);\n}\n\n.validation-summary-errors ul {\n margin-bottom: 0 !important;\n}\n\n.field-validation-error {\n color: var(--bs-danger-text-emphasis) !important;\n}\n\n.field-validation-valid {\n display: none;\n}\n\n.input-validation-error {\n border-color: var(--bs-form-invalid-border-color);\n padding-right: calc(1.5em + 0.75rem);\n}\n\ninput:not([type=checkbox]):not([type=radio]).input-validation-error {\n background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");\n background-repeat: no-repeat;\n background-position: right calc(0.375em + 0.1875rem) center;\n background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);\n}\n\n.input-validation-error:invalid:focus, .form-control.input-validation-error:focus {\n border-color: var(--bs-form-invalid-border-color);\n box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);\n}\n\ntextarea.form-control.input-validation-error {\n padding-right: calc(1.5em + 0.75rem);\n background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);\n}\n\n.form-select.input-validation-error {\n border-color: var(--bs-form-invalid-border-color);\n}\n\n.form-select.input-validation-error:not([multiple])[size=\"1\"] {\n --bs-form-select-bg-icon: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");\n padding-right: 4.125rem;\n background-position: right 0.75rem center, center right 2.25rem;\n background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);\n}\n\n.form-select.input-validation-error:focus {\n border-color: var(--bs-form-invalid-border-color);\n box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);\n}\n\n.form-control-color.input-validation-error {\n width: calc(3rem + 1.5em + 0.75rem);\n}\n\n.form-check-input.input-validation-error {\n border-color: var(--bs-form-invalid-border-color);\n}\n\n.form-check-input.input-validation-error:checked {\n background-color: var(--bs-form-invalid-color);\n}\n\n.form-check-input.input-validation-error:focus {\n box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);\n}\n\n.form-check-input.input-validation-error ~ .form-check-label {\n color: var(--bs-form-invalid-color);\n}\n\n.input-group > .form-control:not(:focus).input-validation-error,\n.input-group > .form-select:not(:focus).input-validation-error,\n.input-group > .form-floating:not(:focus-within).input-validation-error {\n z-index: 4;\n}"],"names":[]} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.min.css b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.min.css index c0d094b9845..3731063b9ad 100644 --- a/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.min.css +++ b/src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.min.css @@ -1 +1 @@ -body,html{height:100%}.auth-wrapper{width:100%;max-width:800px;margin:auto}.g-recaptcha{margin-bottom:1rem}span.field-validation-error{width:100%}.validation-summary-errors{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis);--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.validation-summary-errors ul{margin-bottom:0!important}.field-validation-error{color:var(--bs-danger-text-emphasis)!important}.field-validation-valid{display:none}.input-validation-error{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem)}input:not([type=checkbox]):not([type=radio]).input-validation-error{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.input-validation-error:focus,.input-validation-error:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}textarea.form-control.input-validation-error{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.input-validation-error{border-color:var(--bs-form-invalid-border-color)}.form-select.input-validation-error:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.input-validation-error:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.input-validation-error{width:calc(3rem + 1.5em + .75rem)}.form-check-input.input-validation-error{border-color:var(--bs-form-invalid-border-color)}.form-check-input.input-validation-error:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.input-validation-error:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.input-validation-error~.form-check-label{color:var(--bs-form-invalid-color)}.input-group>.form-control:not(:focus).input-validation-error,.input-group>.form-floating:not(:focus-within).input-validation-error,.input-group>.form-select:not(:focus).input-validation-error{z-index:4} +body,html{height:100%}.auth-wrapper{width:100%;max-width:800px;margin:auto}.g-recaptcha{margin-bottom:1rem}span.field-validation-error{width:100%}.validation-summary-errors{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:transparent;--bs-alert-link-color:inherit;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-border:var(--bs-border-width)solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);padding:var(--bs-alert-padding-y)var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius);position:relative}.validation-summary-errors ul{margin-bottom:0!important}.field-validation-error{color:var(--bs-danger-text-emphasis)!important}.field-validation-valid{display:none}.input-validation-error{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem)}input:not([type=checkbox]):not([type=radio]).input-validation-error{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right calc(.375em + .1875rem) center;background-repeat:no-repeat;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.input-validation-error:invalid:focus,.form-control.input-validation-error:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}textarea.form-control.input-validation-error{background-position:right calc(.375em + .1875rem) top calc(.375em + .1875rem);padding-right:calc(1.5em + .75rem)}.form-select.input-validation-error{border-color:var(--bs-form-invalid-border-color)}.form-select.input-validation-error:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-position:right .75rem center,right 2.25rem center;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem);padding-right:4.125rem}.form-select.input-validation-error:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.input-validation-error{width:calc(3.75rem + 1.5em)}.form-check-input.input-validation-error{border-color:var(--bs-form-invalid-border-color)}.form-check-input.input-validation-error:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.input-validation-error:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.input-validation-error~.form-check-label{color:var(--bs-form-invalid-color)}.input-group>.form-control:not(:focus).input-validation-error,.input-group>.form-select:not(:focus).input-validation-error,.input-group>.form-floating:not(:focus-within).input-validation-error{z-index:4} \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/js/TheAdmin-header.js b/src/OrchardCore.Themes/TheAdmin/wwwroot/js/TheAdmin-header.js deleted file mode 100644 index ab2e8757f21..00000000000 --- a/src/OrchardCore.Themes/TheAdmin/wwwroot/js/TheAdmin-header.js +++ /dev/null @@ -1,85 +0,0 @@ -/* -** NOTE: This file is generated by Gulp and should not be edited directly! -** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp. -*/ - -themeStoreKeySuffix = 'admintheme'; -var getAdminPreferenceKey = function getAdminPreferenceKey() { - return getTenantName() + '-adminPreferences'; -}; -var getAdminPreferences = function getAdminPreferences() { - return JSON.parse(localStorage.getItem(getAdminPreferenceKey())); -}; -var setAdminPreferences = function setAdminPreferences(adminPreferences) { - var key = getAdminPreferenceKey(); - localStorage.setItem(key, JSON.stringify(adminPreferences)); - Cookies.set(key, JSON.stringify(adminPreferences), { - expires: 360 - }); -}; -// We add some classes to the body tag to restore the sidebar to the state is was before reload. -// That state was saved to localstorage by userPreferencesPersistor.js -// We need to apply the classes BEFORE the page is rendered. -// That is why we use a MutationObserver instead of document.Ready(). -var themeObserver = new MutationObserver(function (mutations) { - for (var i = 0; i < mutations.length; i++) { - for (var j = 0; j < mutations[i].addedNodes.length; j++) { - if (mutations[i].addedNodes[j].tagName == 'BODY') { - setTheme(getPreferredTheme()); - - // we're done: - themeObserver.disconnect(); - } - ; - } - } -}); -themeObserver.observe(document.documentElement, { - childList: true, - subtree: true -}); -(function () { - 'use strict'; - - var showActiveTheme = function showActiveTheme(theme) { - var focus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - var themeSwitcher = document.querySelector('#bd-theme'); - if (!themeSwitcher) { - return; - } - var themeSwitcherText = document.querySelector('#bd-theme-text'); - var activeThemeIcon = document.querySelector('.theme-icon-active'); - var btnToActive = document.querySelector("[data-bs-theme-value=\"".concat(theme, "\"]")); - var svgOfActiveBtn = btnToActive.querySelector('.theme-icon'); - btnToActive.classList.add('active'); - btnToActive.setAttribute('aria-pressed', 'true'); - activeThemeIcon.innerHTML = svgOfActiveBtn.innerHTML; - var themeSwitcherLabel = "".concat(themeSwitcherText.textContent, " (").concat(btnToActive.dataset.bsThemeValue, ")"); - themeSwitcher.setAttribute('aria-label', themeSwitcherLabel); - var btnsToInactive = document.querySelectorAll("[data-bs-theme-value]:not([data-bs-theme-value=\"".concat(theme, "\"])")); - for (var i = 0; i < btnsToInactive.length; i++) { - btnsToInactive[i].classList.remove('active'); - btnsToInactive[i].setAttribute('aria-pressed', 'false'); - } - if (focus) { - themeSwitcher.focus(); - } - }; - window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function () { - var storedTheme = getStoredTheme(); - if (storedTheme !== lightThemeName && storedTheme !== darkThemeName) { - setTheme(getPreferredTheme()); - } - }); - window.addEventListener('DOMContentLoaded', function () { - showActiveTheme(getPreferredTheme()); - document.querySelectorAll('[data-bs-theme-value]').forEach(function (toggle) { - toggle.addEventListener('click', function () { - var theme = toggle.getAttribute('data-bs-theme-value'); - setStoredTheme(theme); - setTheme(theme); - showActiveTheme(theme, true); - }); - }); - }); -})(); \ No newline at end of file diff --git a/src/OrchardCore.Themes/TheAdmin/wwwroot/js/TheAdmin-header.min.js b/src/OrchardCore.Themes/TheAdmin/wwwroot/js/TheAdmin-header.min.js deleted file mode 100644 index ef08bf6b205..00000000000 --- a/src/OrchardCore.Themes/TheAdmin/wwwroot/js/TheAdmin-header.min.js +++ /dev/null @@ -1 +0,0 @@ -themeStoreKeySuffix="admintheme";var getAdminPreferenceKey=function(){return getTenantName()+"-adminPreferences"},getAdminPreferences=function(){return JSON.parse(localStorage.getItem(getAdminPreferenceKey()))},setAdminPreferences=function(e){var t=getAdminPreferenceKey();localStorage.setItem(t,JSON.stringify(e)),Cookies.set(t,JSON.stringify(e),{expires:360})},themeObserver=new MutationObserver((function(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1],r=document.querySelector("#bd-theme");if(r){var n=document.querySelector("#bd-theme-text"),a=document.querySelector(".theme-icon-active"),c=document.querySelector('[data-bs-theme-value="'.concat(e,'"]')),o=c.querySelector(".theme-icon");c.classList.add("active"),c.setAttribute("aria-pressed","true"),a.innerHTML=o.innerHTML;var d="".concat(n.textContent," (").concat(c.dataset.bsThemeValue,")");r.setAttribute("aria-label",d);for(var i=document.querySelectorAll('[data-bs-theme-value]:not([data-bs-theme-value="'.concat(e,'"])')),s=0;s