diff --git a/application/config/version.php b/application/config/version.php index c54ec138be9..607c28c7839 100644 --- a/application/config/version.php +++ b/application/config/version.php @@ -12,9 +12,9 @@ */ -$config['versionnumber'] = '3.15.2'; +$config['versionnumber'] = '3.15.4'; $config['dbversionnumber'] = 355; $config['buildnumber'] = ''; $config['updatable'] = true; -$config['assetsversionnumber'] = '30065'; +$config['assetsversionnumber'] = '30067'; return $config; diff --git a/application/controllers/admin/export.php b/application/controllers/admin/export.php index 52617e28ef1..559618c0073 100644 --- a/application/controllers/admin/export.php +++ b/application/controllers/admin/export.php @@ -642,7 +642,7 @@ public function vvexport() if (count($fielddata) < 1) { $firstline .= $field; } else { - $firstline .= preg_replace('/\s+/', ' ', strip_tags($fielddata['question'])); + $firstline .= preg_replace('/\s+/', ' ', flattenText($fielddata['question'],false,true,'UTF-8',true)); } $firstline .= $s; if ($vvVersion == 2) { diff --git a/application/controllers/admin/surveyadmin.php b/application/controllers/admin/surveyadmin.php index 6505a879a04..4073bd5362d 100644 --- a/application/controllers/admin/surveyadmin.php +++ b/application/controllers/admin/surveyadmin.php @@ -2275,4 +2275,89 @@ public function applythemeoptions($iSurveyID = 0) } $this->getController()->redirect(array('admin/survey/sa/view/surveyid/'.$iSurveyID)); } + + /** + * Upload an image in directory + * @return json + */ + public function uploadimagefile() + { + $iSurveyID = Yii::app()->request->getPost('surveyid'); + $success = false; + $debug = []; + if(!Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent', 'update')) { + return Yii::app()->getController()->renderPartial( + '/admin/super/_renderJson', + array('data' => ['success' => $success, 'message' => gT("You don't have suffisient right to upload image in this survey"), 'debug' => $debug]), + false, + false + ); + } + $debug[] = $_FILES; + if(empty($_FILES)) { + $uploadresult = gT("No file was uploaded."); + return Yii::app()->getController()->renderPartial( + '/admin/super/_renderJson', + array('data' => ['success' => $success, 'message' => $uploadresult, 'debug' => $debug]), + false, + false + ); + } + if ($_FILES['file']['error'] == 1 || $_FILES['file']['error'] == 2) { + $uploadresult = sprintf(gT("Sorry, this file is too large. Only files up to %01.2f MB are allowed."), getMaximumFileUploadSize() / 1024 / 1024); + return Yii::app()->getController()->renderPartial( + '/admin/super/_renderJson', + array('data' => ['success' => $success, 'message' => $uploadresult, 'debug' => $debug]), + false, + false + ); + } + $checkImage = LSYii_ImageValidator::validateImage($_FILES["file"]["tmp_name"]); + if ($checkImage['check'] === false) { + return Yii::app()->getController()->renderPartial( + '/admin/super/_renderJson', + array('data' => ['success' => $success, 'message' => $checkImage['uploadresult'], 'debug' => $checkImage['debug']]), + false, + false + ); + } + $surveyDir = Yii::app()->getConfig('uploaddir')."/surveys/".$iSurveyID; + if (!is_dir($surveyDir)) { + @mkdir($surveyDir); + } + if (!is_dir($surveyDir."/images")) { + @mkdir($surveyDir."/images"); + } + $destdir = $surveyDir."/images/"; + if (!is_writeable($destdir)) { + $uploadresult = sprintf(gT("Incorrect permissions in your %s folder."), $destdir); + return Yii::app()->getController()->renderPartial( + '/admin/super/_renderJson', + array('data' => ['success' => $success, 'message' => $uploadresult, 'debug' => $debug]), + false, + false + ); + } + + $filename = sanitize_filename($_FILES['file']['name'], false, false, false); // Don't force lowercase or alphanumeric + $fullfilepath = $destdir.$filename; + $debug[] = $destdir; + $debug[] = $filename; + $debug[] = $fullfilepath; + if (!@move_uploaded_file($_FILES['file']['tmp_name'], $fullfilepath)) { + $uploadresult = gT("An error occurred uploading your file. This may be caused by incorrect permissions for the application /tmp folder."); + } else { + $uploadresult = sprintf(gT("File %s uploaded"), $filename); + $success = true; + }; + return Yii::app()->getController()->renderPartial( + '/admin/super/_renderJson', + array('data' => ['success' => $success, 'message' => $uploadresult, 'debug' => $debug]), + false, + false + ); + + + + } } diff --git a/application/controllers/admin/themeoptions.php b/application/controllers/admin/themeoptions.php index 50e5d88663f..e383e0c2154 100644 --- a/application/controllers/admin/themeoptions.php +++ b/application/controllers/admin/themeoptions.php @@ -112,7 +112,6 @@ public function updatesurvey($sid) $this->getController()->redirect(Yii::app()->getController()->createUrl("/admin/themeoptions/sa/updatesurvey", ['surveyid'=>$sid, 'sid'=>$sid])); } } - $this->_updateCommon($model, $sid); } else { Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."), 'error'); @@ -343,8 +342,9 @@ private function _updateCommon(TemplateConfiguration $model, $sid = null) Yii::app()->clientScript->registerPackage('bootstrap-switch', LSYii_ClientScript::POS_BEGIN); $aData = array( - 'model'=>$model, - 'templateOptionPage' => $templateOptionPage + 'model' => $model, + 'templateOptionPage' => $templateOptionPage, + 'sid' => $sid ); if ($sid !== null) { diff --git a/application/controllers/admin/themes.php b/application/controllers/admin/themes.php index c2900d46f27..15a6b0443aa 100755 --- a/application/controllers/admin/themes.php +++ b/application/controllers/admin/themes.php @@ -172,14 +172,17 @@ public function tmp($id) */ public function upload() { + $action = returnGlobal('action'); + if ($action == 'templateuploadimagefile' && Yii::app()->request->getPost('surveyid') ) { + Yii::app()->getController()->forward("/admin/survey/sa/uploadimagefile/"); + Yii::app()->end(); + } if (Permission::model()->hasGlobalPermission('templates', 'import')) { Yii::app()->loadHelper('admin/template'); $lid = returnGlobal('lid'); - $action = returnGlobal('action'); $uploadresult = ""; $success = false; $debug = []; - if ($action == 'templateuploadimagefile') { // $iTemplateConfigurationId = Yii::app()->request->getPost('templateconfig'); // $oTemplateConfiguration = TemplateConfiguration::getInstanceFromConfigurationId($iTemplateConfigurationId); diff --git a/application/core/plugins/GroupSpecificActivation b/application/core/plugins/GroupSpecificActivation new file mode 160000 index 00000000000..0dd28d3d48e --- /dev/null +++ b/application/core/plugins/GroupSpecificActivation @@ -0,0 +1 @@ +Subproject commit 0dd28d3d48ed23b8ecf73c50e20f0319ff5256a2 diff --git a/application/helpers/admin/import_helper.php b/application/helpers/admin/import_helper.php index c881da9ab39..a7eb9790e38 100644 --- a/application/helpers/admin/import_helper.php +++ b/application/helpers/admin/import_helper.php @@ -2024,11 +2024,11 @@ function CSVImportResponses($sFullFilePath, $iSurveyId, $aOptions = array()) } //Check if datestamp is set => throws no default error on importing - if(!isset($oSurvey->datestamp)){ + if($oSurvey->hasAttribute('datestamp') && !isset($oSurvey->datestamp)){ $oSurvey->datestamp = '1980-01-01 00:00:01'; } //Check if startdate is set => throws no default error on importing - if(!isset($oSurvey->startdate)){ + if($oSurvey->hasAttribute('startdate') && !isset($oSurvey->startdate)){ $oSurvey->startdate = '1980-01-01 00:00:01'; } diff --git a/application/helpers/common_helper.php b/application/helpers/common_helper.php index 33c0ef50b91..98726f0ca9b 100644 --- a/application/helpers/common_helper.php +++ b/application/helpers/common_helper.php @@ -331,16 +331,27 @@ function convertGETtoPOST($url) $query = array_shift($stack); $aqueryitems = explode('&', $query); $postArray = []; - + $getArray = []; foreach ($aqueryitems as $queryitem) { $stack = explode('=', $queryitem); $paramname = array_shift($stack); $value = array_shift($stack); - $postArray[$paramname] = $value; + if(in_array($paramname,array(Yii::app()->getComponent('urlManager')->routeVar))) { + $getArray[$paramname] = $value; + } else { + $postArray[$paramname] = $value; + } + } + if(!empty($getArray)) { + $calledscript = $calledscript."?".implode('&', array_map( + function ($v, $k) { + return $k.'='.$v; + }, + $getArray, + array_keys($getArray) + )); } - $callscript = "window.LS.sendPost(\"".$calledscript."\",\"\",".json_encode($postArray).");"; - return $callscript; } @@ -5085,4 +5096,4 @@ function safecount($element) return count($element); } return 0; -} \ No newline at end of file +} diff --git a/application/helpers/update/updatedb_helper.php b/application/helpers/update/updatedb_helper.php index b6e224e8a5e..21ed585f306 100644 --- a/application/helpers/update/updatedb_helper.php +++ b/application/helpers/update/updatedb_helper.php @@ -2289,7 +2289,7 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false) $oDB->createCommand()->delete('{{surveymenu}}', 'name=:name', [':name' => $aSurveymenu['name']]); $oDB->createCommand()->delete('{{surveymenu}}', 'id=:id', [':id' => $aSurveymenu['id']]); $oDB->createCommand()->insert('{{surveymenu}}', $aSurveymenu); - $aIdMap[$aSurveymenu['name']] = $oDB->getCommandBuilder()->getLastInsertID('{{surveymenu}}'); + $aIdMap[$aSurveymenu['name']] = $aSurveymenu['id']; } $aDefaultSurveyMenuEntries = LsDefaultDataSets::getSurveyMenuEntryData(); diff --git a/application/libraries/MersenneTwister.php b/application/libraries/MersenneTwister.php index 6889311ec8d..63ac7db939c 100644 --- a/application/libraries/MersenneTwister.php +++ b/application/libraries/MersenneTwister.php @@ -15,6 +15,12 @@ function setSeed($surveyid) if (isset($_SESSION['survey_'.$surveyid]['srid'])) { $oResponse = \Response::model($surveyid)->findByPk($_SESSION['survey_'.$surveyid]['srid']); $seed = $oResponse->seed; + /* fix empty seed, this allow broken seed (not number) */ + if(empty($seed)) { + $seed = mt_rand(); + $oResponse->seed = $seed; + $oResponse->save(); + } } else { $seed = mt_rand(); diff --git a/application/models/Permission.php b/application/models/Permission.php index 8bcf8ab8447..0e23f3eff3a 100644 --- a/application/models/Permission.php +++ b/application/models/Permission.php @@ -744,7 +744,7 @@ protected function getOwnerId($iEntityID, $sEntityName) } public static function getPermissionList(){ - $aPermissions = self::getSurveyBasePermissions(); + $aPermissions = array_merge(self::getSurveyBasePermissions(),self::getGlobalBasePermissions()); return array_map(function($aPermission){ return $aPermission['title']; }, $aPermissions); diff --git a/application/models/Survey.php b/application/models/Survey.php index 8d16920cbab..ceb71a30ee5 100755 --- a/application/models/Survey.php +++ b/application/models/Survey.php @@ -799,10 +799,17 @@ private function _createSurveymenuArray($oSurveyMenuObjects, $collapsed=false) } //Skip menu if no permission - if ((!empty($aEntry['permission']) && !empty($aEntry['permission_grade']) - && !Permission::model()->hasSurveyPermission($this->sid, $aEntry['permission'], $aEntry['permission_grade'])) - ) { - continue; + if (!empty($aEntry['permission']) && !empty($aEntry['permission_grade'])){ + $inArray = array_search($aEntry['permission'],array_keys(Permission::getGlobalBasePermissions())); + if($inArray) { + $hasPermission = Permission::model()->hasGlobalPermission($aEntry['permission'], $aEntry['permission_grade']); + } else { + $hasPermission = Permission::model()->hasSurveyPermission($this->sid, $aEntry['permission'], $aEntry['permission_grade']); + } + + if(!$hasPermission) { + continue; + } } // Check if a specific user owns this menu. diff --git a/application/models/TemplateConfiguration.php b/application/models/TemplateConfiguration.php index 912248a22bd..2abafa7b450 100755 --- a/application/models/TemplateConfiguration.php +++ b/application/models/TemplateConfiguration.php @@ -785,20 +785,24 @@ private function _getRelativePath($from, $to) { return str_repeat('..'.DIRECTORY_SEPARATOR, count($dir)) . implode(DIRECTORY_SEPARATOR, $file); } - private function _filterImages($file) + /** + * Return image information + * @param string $file with Path + * @return array|null + */ + private function _getImageInfo($file) { - $imagePath = (file_exists($this->filesPath.$file['name'])) - ? $this->filesPath.$file['name'] - : $this->generalFilesPath.$file['name'] ; - - $filePath = $this->_getRelativePath(Yii::app()->getConfig('rootdir'), $imagePath); - - $previewFilePath = App()->getAssetManager()->publish($imagePath); - - $checkImage = LSYii_ImageValidator::validateImage($imagePath); - if (!$checkImage['check'] === false) { - return ['preview' => $previewFilePath, 'filepath' => $filePath, 'filepathOptions' => $filePath ,'filename'=>$file['name']]; + if(!file_exists($file)) { + return; + } + // Currently it's private and only used one time, before put this function in twig : must validate directory is inside rootdir + $checkImage = LSYii_ImageValidator::validateImage($file); + if (!$checkImage['check']) { + return; } + $filePath = $this->_getRelativePath(Yii::app()->getConfig('rootdir'), $file); + $previewFilePath = App()->getAssetManager()->publish($file); + return ['preview' => $previewFilePath, 'filepath' => $filePath, 'filepathOptions' => $filePath ,'filename'=>basename($file)]; } protected function getOptionPageAttributes() @@ -807,13 +811,21 @@ protected function getOptionPageAttributes() $fileList = array_merge(Template::getOtherFiles($this->filesPath), Template::getOtherFiles($this->generalFilesPath)); $aData['maxFileSize'] = getMaximumFileUploadSize(); $aData['imageFileList'] = []; - foreach ($fileList as $file) { - $isImage = $this->_filterImages($file); - - if ($isImage) { - $aData['imageFileList'][] = $isImage; - } - }; + $categoryList = []; // Array with optgroup label and path + $categoryList[] = ['group' => gT("Global"),'path' => $this->generalFilesPath]; + $categoryList[] = ['group' => gT("Theme"),'path' => $this->filesPath]; + if($this->sid) { + $categoryList[] = ['group' => gT("Survey"),'path' => Yii::app()->getConfig('uploaddir').'/surveys/'.$this->sid.'/images/']; + } + foreach($categoryList as $category) { + $fileList = Template::getOtherFiles($category['path']); + foreach ($fileList as $file) { + $imageInfo = $this->_getImageInfo($category['path'].$file['name']); + if ($imageInfo) { + $aData['imageFileList'][] = array_merge($category,$imageInfo); + } + }; + } return $aData; } diff --git a/application/views/admin/token/managetokenattributes.php b/application/views/admin/token/managetokenattributes.php index c2d6928fdd6..c62f6448376 100644 --- a/application/views/admin/token/managetokenattributes.php +++ b/application/views/admin/token/managetokenattributes.php @@ -149,7 +149,7 @@

- gT('(None)','unescaped'), 'class'=>'form-control')); ?> + gT('(None)','unescaped'), 'class'=>'form-control')); ?>

diff --git a/assets/packages/adminbasics/build/adminbasics.debug.js b/assets/packages/adminbasics/build/adminbasics.debug.js index 134d172d1b9..0cbb22d3a9d 100644 --- a/assets/packages/adminbasics/build/adminbasics.debug.js +++ b/assets/packages/adminbasics/build/adminbasics.debug.js @@ -9723,7 +9723,7 @@ module.exports=Math.scale||function scale(x,inLow,inHigh,outLow,outHigh){if(argu * Also bootstrapping methods and window bound methods are set here */var globalWindowMethods={renderBootstrapSwitch:function renderBootstrapSwitch(){try{if(!$('[data-is-bootstrap-switch]').parent().hasClass('bootstrap-switch-container')){$('[data-is-bootstrap-switch]').bootstrapSwitch({onInit:function onInit(){return __WEBPACK_IMPORTED_MODULE_0__components_lslog__["a"/* default */].log("BootstrapSwitch Initialized");}});}}catch(e){__WEBPACK_IMPORTED_MODULE_0__components_lslog__["a"/* default */].error(e);}},unrenderBootstrapSwitch:function unrenderBootstrapSwitch(){try{$('[data-is-bootstrap-switch]').bootstrapSwitch('destroy');}catch(e){__WEBPACK_IMPORTED_MODULE_0__components_lslog__["a"/* default */].error(e);}},validatefilename:function validatefilename(form,strmessage){if(form.the_file.value==""){$('#pleaseselectfile-popup').modal();form.the_file.focus();return false;}return true;},doToolTip:function doToolTip(){try{$(".btntooltip").tooltip("destroy");}catch(e){}try{$('[data-tooltip="true"]').tooltip("destroy");}catch(e){}try{$('[data-tooltip="true"]').tooltip("destroy");}catch(e){}$(".btntooltip").tooltip();$('[data-tooltip="true"]').tooltip();$('[data-toggle="tooltip"]').tooltip();},// finds any duplicate array elements using the fewest possible comparison arrHasDupes:function arrHasDupes(arrayToCheck){return _.uniq(arrayToCheck).length!==arrayToCheck.length;},arrHasDupesWhich:function arrHasDupesWhich(arrayToCheck){return _.difference(_.uniq(arrayToCheck),arrayToCheck).length>0;},getkey:function getkey(e){return window.event?window.event.keyCode:e?e.which:null;},goodchars:function goodchars(e,goods){var key=getkey(e);if(key==null)return true;// get character -var keychar=String.fromCharCode(key).toLowerCase();goods=goods.toLowerCase();return goods.indexOf(keychar)!=-1||key==null||key==0||key==8||key==9||key==27;},tableCellAdapters:function tableCellAdapters(){$('table.activecell').on("click",['tbody td input:checkbox','tbody td input:radio','tbody td label','tbody th input:checkbox','tbody th input:radio','tbody th label'].join(', '),function(e){e.stopPropagation();});$('table.activecell').on("click",'tbody td, tbody th',function(){if($(this).find("input:radio,input:checkbox").length==1){$(this).find("input:radio").click();$(this).find("input:radio").triggerHandler("click");$(this).find("input:checkbox").click();$(this).find("input:checkbox").triggerHandler("click");}});},sendPost:function sendPost(url,content,contentObject){contentObject=contentObject||{};var $form=$("

").attr("action",url);if(typeof content=='string'&&content!=''){try{contentObject=_.merge(contentObject,JSON.parse(content));}catch(e){console.error('JSON parse on sendPost failed!');}}_.each(contentObject,function(value,key){$("").attr("name",key).attr("value",value).appendTo($form);});$("").attr("name",'YII_CSRF_TOKEN').attr("value",LS.data.csrfToken).appendTo($form);$form.appendTo("body");$form.submit();},addHiddenElement:function addHiddenElement(form,name,value){$('').attr('name',name).attr('value',value).appendTo($(form));},fixAccordionPosition:function fixAccordionPosition(){$('#accordion').on('shown.bs.collapse',".panel-collapse.collapse",function(){$('#accordion').find('.collapse').not('#'+$(this).attr('id')).collapse('hide');setTimeout(function(){$('html, body').animate({scrollTop:$(this).closest('.panel.panel-default').offset().top-20},500);},500);});}};var globalStartUpMethods={bootstrapping:function bootstrapping(){$('button,input[type=submit],input[type=button],input[type=reset],.button').button();$('button,input[type=submit],input[type=button],input[type=reset],.button').addClass("limebutton");$(".progressbar").each(function(){var pValue=parseInt($(this).attr('name'));$(this).progressbar({value:pValue});if(pValue>85){$("div",$(this)).css({'background':'Red'});}$("div",this).html(pValue+"%");});globalWindowMethods.tableCellAdapters();}};/***/},/* 128 *//***/function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:true});/** +var keychar=String.fromCharCode(key).toLowerCase();goods=goods.toLowerCase();return goods.indexOf(keychar)!=-1||key==null||key==0||key==8||key==9||key==27;},tableCellAdapters:function tableCellAdapters(){$('table.activecell').on("click",['tbody td input:checkbox','tbody td input:radio','tbody td label','tbody th input:checkbox','tbody th input:radio','tbody th label'].join(', '),function(e){e.stopPropagation();});$('table.activecell').on("click",'tbody td, tbody th',function(){if($(this).find("input:radio,input:checkbox").length==1){$(this).find("input:radio").click();$(this).find("input:radio").triggerHandler("click");$(this).find("input:checkbox").click();$(this).find("input:checkbox").triggerHandler("click");}});},sendPost:function sendPost(url,content,contentObject){contentObject=contentObject||{};var $form=$("").attr("action",url);if(typeof content=='string'&&content!=''){try{contentObject=_.merge(contentObject,JSON.parse(content));}catch(e){console.error('JSON parse on sendPost failed!');}}_.each(contentObject,function(value,key){$("").attr("name",key).attr("value",value).appendTo($form);});$("").attr("name",'YII_CSRF_TOKEN').attr("value",LS.data.csrfToken).appendTo($form);$form.appendTo("body");$form.submit();},addHiddenElement:function addHiddenElement(form,name,value){$('').attr('name',name).attr('value',value).appendTo($(form));},fixAccordionPosition:function fixAccordionPosition(){$('#accordion').on('shown.bs.collapse',".panel-collapse.collapse",function(e){if(e.target!=this)return;$('#accordion').find('.panel-collapse.collapse').not('#'+$(this).attr('id')).collapse('hide');setTimeout(function(){$('html, body').animate({scrollTop:$(this).closest('.panel.panel-default').offset().top-20},500);},500);});}};var globalStartUpMethods={bootstrapping:function bootstrapping(){$('button,input[type=submit],input[type=button],input[type=reset],.button').button();$('button,input[type=submit],input[type=button],input[type=reset],.button').addClass("limebutton");$(".progressbar").each(function(){var pValue=parseInt($(this).attr('name'));$(this).progressbar({value:pValue});if(pValue>85){$("div",$(this)).css({'background':'Red'});}$("div",this).html(pValue+"%");});globalWindowMethods.tableCellAdapters();}};/***/},/* 128 *//***/function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:true});/** * A method to use the implemented notifier, via ajax or javascript * * @param text string | The text to be displayed diff --git a/assets/packages/adminbasics/build/adminbasics.js b/assets/packages/adminbasics/build/adminbasics.js index 0fc2561e677..dbedcf42eb4 100644 --- a/assets/packages/adminbasics/build/adminbasics.js +++ b/assets/packages/adminbasics/build/adminbasics.js @@ -21111,8 +21111,9 @@ const globalWindowMethods = { $('').attr('name', name).attr('value', value).appendTo($(form)); }, fixAccordionPosition : () => { - $('#accordion').on('shown.bs.collapse',".panel-collapse.collapse", function () { - $('#accordion').find('.collapse').not('#'+$(this).attr('id')).collapse('hide'); + $('#accordion').on('shown.bs.collapse',".panel-collapse.collapse", function (e) { + if(e.target != this) return; + $('#accordion').find('.panel-collapse.collapse').not('#'+$(this).attr('id')).collapse('hide'); setTimeout(function(){ $('html, body').animate({ scrollTop: $(this).closest('.panel.panel-default').offset().top-20 diff --git a/assets/packages/adminbasics/build/adminbasics.min.js b/assets/packages/adminbasics/build/adminbasics.min.js index b4045741a36..093311db27f 100644 --- a/assets/packages/adminbasics/build/adminbasics.min.js +++ b/assets/packages/adminbasics/build/adminbasics.min.js @@ -1 +1 @@ -"use strict";var _createClass=function(){function e(t,n){for(var r=0;r"+o+""};t.exports=function(n,t){var r={};r[n]=t(i),e(e.P+e.F*o(function(){var t=""[n]('"');return t!==t.toLowerCase()||3document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[f][u[r]];return l()};t.exports=Object.create||function(t,n){var r;return null!==t?(c[f]=o(t),r=new c,c[f]=null,r[a]=t):r=l(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(95),o=r(70).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(2),o=r(7),i=r(6),u=r(5)("species");t.exports=function(t){var n=e[t];i&&n&&!n[u]&&o.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var h=r(19),p=r(107),v=r(83),d=r(1),g=r(8),y=r(85),_={},m={};(n=t.exports=function(t,n,r,e,o){var i,u,a,c,f=o?function(){return t}:y(t),l=h(r,e,n?2:1),s=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(v(f)){for(i=g(t.length);s"']/g,zu=RegExp(Wu.source),Gu=RegExp(Uu.source),Hu=/<%-([\s\S]+?)%>/g,qu=/<%([\s\S]+?)%>/g,Vu=/<%=([\s\S]+?)%>/g,Ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yu=/^\w*$/,Ju=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zu=/[\\^$.*+?()[\]{}|]/g,Qu=RegExp(Zu.source),Xu=/^\s+|\s+$/g,ta=/^\s+/,na=/\s+$/,ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ea=/\{\n\/\* \[wrapped with (.+)\] \*/,oa=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ua=/\\(\\)?/g,aa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ca=/\w*$/,fa=/^[-+]0x[0-9a-f]+$/i,la=/^0b[01]+$/i,sa=/^\[object .+?Constructor\]$/,ha=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,va=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,ga=/['\n\r\u2028\u2029\\]/g,t="\\ud800-\\udfff",n="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",r="\\u2700-\\u27bf",e="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\ufe0e\\ufe0f",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",c="["+t+"]",f="["+u+"]",l="["+n+"]",s="\\d+",h="["+r+"]",p="["+e+"]",v="[^"+t+u+s+r+e+o+"]",d="\\ud83c[\\udffb-\\udfff]",g="[^"+t+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",m="["+o+"]",b="\\u200d",w="(?:"+p+"|"+v+")",x="(?:"+m+"|"+v+")",S="(?:['’](?:d|ll|m|re|s|t|ve))?",O="(?:['’](?:D|LL|M|RE|S|T|VE))?",E="(?:"+l+"|"+d+")"+"?",k="["+i+"]?",j=k+E+("(?:"+b+"(?:"+[g,y,_].join("|")+")"+k+E+")*"),A="(?:"+[h,y,_].join("|")+")"+j,$="(?:"+[g+l+"?",l,y,_,c].join("|")+")",ya=RegExp(a,"g"),_a=RegExp(l,"g"),M=RegExp(d+"(?="+d+")|"+$+j,"g"),ma=RegExp([m+"?"+p+"+"+S+"(?="+[f,m,"$"].join("|")+")",x+"+"+O+"(?="+[f,m+w,"$"].join("|")+")",m+"?"+w+"+"+S,m+"+"+O,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,A].join("|"),"g"),T=RegExp("["+b+t+n+i+"]"),ba=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xa=-1,Sa={};Sa[$u]=Sa[Mu]=Sa[Tu]=Sa[Pu]=Sa[Iu]=Sa[Fu]=Sa[Lu]=Sa[Ru]=Sa[Nu]=!0,Sa[su]=Sa[hu]=Sa[ju]=Sa[pu]=Sa[Au]=Sa[vu]=Sa[du]=Sa[gu]=Sa[_u]=Sa[mu]=Sa[bu]=Sa[xu]=Sa[Su]=Sa[Ou]=Sa[ku]=!1;var Oa={};Oa[su]=Oa[hu]=Oa[ju]=Oa[Au]=Oa[pu]=Oa[vu]=Oa[$u]=Oa[Mu]=Oa[Tu]=Oa[Pu]=Oa[Iu]=Oa[_u]=Oa[mu]=Oa[bu]=Oa[xu]=Oa[Su]=Oa[Ou]=Oa[Eu]=Oa[Fu]=Oa[Lu]=Oa[Ru]=Oa[Nu]=!0,Oa[du]=Oa[gu]=Oa[ku]=!1;var P={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ea=parseFloat,ka=parseInt,I="object"==(void 0===W?"undefined":_typeof(W))&&W&&W.Object===Object&&W,F="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,ja=I||F||Function("return this")(),L="object"==(void 0===G?"undefined":_typeof(G))&&G&&!G.nodeType&&G,R=L&&"object"==(void 0===U?"undefined":_typeof(U))&&U&&!U.nodeType&&U,Aa=R&&R.exports===L,N=Aa&&I.process,C=function(){try{var t=R&&R.require&&R.require("util").types;return t||N&&N.binding&&N.binding("util")}catch(t){}}(),$a=C&&C.isArrayBuffer,Ma=C&&C.isDate,Ta=C&&C.isMap,Pa=C&&C.isRegExp,Ia=C&&C.isSet,Fa=C&&C.isTypedArray;function La(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function Ra(t,n,r,e){for(var o=-1,i=null==t?0:t.length;++o":">",'"':""","'":"'"});function sc(t){return"\\"+P[t]}function hc(t){return T.test(t)}function pc(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e}function vc(n,r){return function(t){return n(r(t))}}function dc(t,n){for(var r=-1,e=t.length,o=0,i=[];++r",""":'"',"'":"'"});var bc=function t(n){var r,A=(n=null==n?ja:bc.defaults(ja.Object(),n,bc.pick(ja,wa))).Array,e=n.Date,o=n.Error,g=n.Function,i=n.Math,O=n.Object,y=n.RegExp,l=n.String,$=n.TypeError,u=A.prototype,a=g.prototype,s=O.prototype,c=n["__core-js_shared__"],f=a.toString,E=s.hasOwnProperty,h=0,p=(r=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",v=s.toString,d=f.call(O),_=ja._,m=y("^"+f.call(E).replace(Zu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=Aa?n.Buffer:ru,w=n.Symbol,x=n.Uint8Array,S=b?b.allocUnsafe:ru,k=vc(O.getPrototypeOf,O),j=O.create,M=s.propertyIsEnumerable,T=u.splice,P=w?w.isConcatSpreadable:ru,I=w?w.iterator:ru,F=w?w.toStringTag:ru,L=function(){try{var t=Br(O,"defineProperty");return t({},"",{}),t}catch(t){}}(),R=n.clearTimeout!==ja.clearTimeout&&n.clearTimeout,N=e&&e.now!==ja.Date.now&&e.now,C=n.setTimeout!==ja.setTimeout&&n.setTimeout,D=i.ceil,B=i.floor,W=O.getOwnPropertySymbols,U=b?b.isBuffer:ru,z=n.isFinite,G=u.join,H=vc(O.keys,O),q=i.max,V=i.min,K=e.now,Y=n.parseInt,J=i.random,Z=u.reverse,Q=Br(n,"DataView"),X=Br(n,"Map"),tt=Br(n,"Promise"),nt=Br(n,"Set"),rt=Br(n,"WeakMap"),et=Br(O,"create"),ot=rt&&new rt,it={},ut=ve(Q),at=ve(X),ct=ve(tt),ft=ve(nt),lt=ve(rt),st=w?w.prototype:ru,ht=st?st.valueOf:ru,pt=st?st.toString:ru;function vt(t){if(Po(t)&&!wo(t)&&!(t instanceof _t)){if(t instanceof yt)return t;if(E.call(t,"__wrapped__"))return de(t)}return new yt(t)}var dt=function(){function r(){}return function(t){if(!To(t))return{};if(j)return j(t);r.prototype=t;var n=new r;return r.prototype=ru,n}}();function gt(){}function yt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=ru}function _t(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=fu,this.__views__=[]}function mt(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n>>0,n>>>=0;for(var i=A(o);++e>>1,u=t[i];null!==u&&!Do(u)&&(r?u<=n:u>>0)?(t=Yo(t))&&("string"==typeof n||null!=n&&!Ro(n))&&!(n=Cn(n))&&hc(t)?Jn(_c(t),0,r):t.split(n,r):[]},vt.spread=function(e,o){if("function"!=typeof e)throw new $(eu);return o=null==o?0:q(Ho(o),0),En(function(t){var n=t[o],r=Jn(t,0,o);return n&&Ga(r,n),La(e,this,r)})},vt.tail=function(t){var n=null==t?0:t.length;return n?Pn(t,1,n):[]},vt.take=function(t,n,r){return t&&t.length?Pn(t,0,(n=r||n===ru?1:Ho(n))<0?0:n):[]},vt.takeRight=function(t,n,r){var e=null==t?0:t.length;return e?Pn(t,(n=e-(n=r||n===ru?1:Ho(n)))<0?0:n,e):[]},vt.takeRightWhile=function(t,n){return t&&t.length?Un(t,Nr(n,3),!1,!0):[]},vt.takeWhile=function(t,n){return t&&t.length?Un(t,Nr(n,3)):[]},vt.tap=function(t,n){return n(t),t},vt.throttle=function(t,n,r){var e=!0,o=!0;if("function"!=typeof t)throw new $(eu);return To(r)&&(e="leading"in r?!!r.leading:e,o="trailing"in r?!!r.trailing:o),ao(t,n,{leading:e,maxWait:n,trailing:o})},vt.thru=ze,vt.toArray=zo,vt.toPairs=di,vt.toPairsIn=gi,vt.toPath=function(t){return wo(t)?za(t,pe):Do(t)?[t]:or(he(Yo(t)))},vt.toPlainObject=Ko,vt.transform=function(t,e,o){var n=wo(t),r=n||Eo(t)||Bo(t);if(e=Nr(e,4),null==o){var i=t&&t.constructor;o=r?n?new i:[]:To(t)&&Ao(i)?dt(k(t)):{}}return(r?Na:Kt)(t,function(t,n,r){return e(o,t,n,r)}),o},vt.unary=function(t){return eo(t,1)},vt.union=Te,vt.unionBy=Pe,vt.unionWith=Ie,vt.uniq=function(t){return t&&t.length?Dn(t):[]},vt.uniqBy=function(t,n){return t&&t.length?Dn(t,Nr(n,2)):[]},vt.uniqWith=function(t,n){return n="function"==typeof n?n:ru,t&&t.length?Dn(t,ru,n):[]},vt.unset=function(t,n){return null==t||Bn(t,n)},vt.unzip=Fe,vt.unzipWith=Le,vt.update=function(t,n,r){return null==t?t:Wn(t,n,Vn(r))},vt.updateWith=function(t,n,r,e){return e="function"==typeof e?e:ru,null==t?t:Wn(t,n,Vn(r),e)},vt.values=yi,vt.valuesIn=function(t){return null==t?[]:ic(t,fi(t))},vt.without=Re,vt.words=Ai,vt.wrap=function(t,n){return po(Vn(n),t)},vt.xor=Ne,vt.xorBy=Ce,vt.xorWith=De,vt.zip=Be,vt.zipObject=function(t,n){return Hn(t||[],n||[],$t)},vt.zipObjectDeep=function(t,n){return Hn(t||[],n||[],An)},vt.zipWith=We,vt.entries=di,vt.entriesIn=gi,vt.extend=Zo,vt.extendWith=Qo,Ci(vt,vt),vt.add=Ki,vt.attempt=$i,vt.camelCase=_i,vt.capitalize=mi,vt.ceil=Yi,vt.clamp=function(t,n,r){return r===ru&&(r=n,n=ru),r!==ru&&(r=(r=Vo(r))==r?r:0),n!==ru&&(n=(n=Vo(n))==n?n:0),Lt(Vo(t),n,r)},vt.clone=function(t){return Rt(t,4)},vt.cloneDeep=function(t){return Rt(t,5)},vt.cloneDeepWith=function(t,n){return Rt(t,5,n="function"==typeof n?n:ru)},vt.cloneWith=function(t,n){return Rt(t,4,n="function"==typeof n?n:ru)},vt.conformsTo=function(t,n){return null==n||Nt(t,n,ci(n))},vt.deburr=bi,vt.defaultTo=function(t,n){return null==t||t!=t?n:t},vt.divide=Ji,vt.endsWith=function(t,n,r){t=Yo(t),n=Cn(n);var e=t.length,o=r=r===ru?e:Lt(Ho(r),0,e);return 0<=(r-=n.length)&&t.slice(r,o)==n},vt.eq=yo,vt.escape=function(t){return(t=Yo(t))&&Gu.test(t)?t.replace(Uu,lc):t},vt.escapeRegExp=function(t){return(t=Yo(t))&&Qu.test(t)?t.replace(Zu,"\\$&"):t},vt.every=function(t,n,r){var e=wo(t)?Da:Ut;return r&&Kr(t,n,r)&&(n=ru),e(t,Nr(n,3))},vt.find=qe,vt.findIndex=me,vt.findKey=function(t,n){return Ka(t,Nr(n,3),Kt)},vt.findLast=Ve,vt.findLastIndex=be,vt.findLastKey=function(t,n){return Ka(t,Nr(n,3),Yt)},vt.floor=Zi,vt.forEach=Ke,vt.forEachRight=Ye,vt.forIn=function(t,n){return null==t?t:qt(t,Nr(n,3),fi)},vt.forInRight=function(t,n){return null==t?t:Vt(t,Nr(n,3),fi)},vt.forOwn=function(t,n){return t&&Kt(t,Nr(n,3))},vt.forOwnRight=function(t,n){return t&&Yt(t,Nr(n,3))},vt.get=ei,vt.gt=_o,vt.gte=mo,vt.has=function(t,n){return null!=t&&Gr(t,n,nn)},vt.hasIn=oi,vt.head=xe,vt.identity=Fi,vt.includes=function(t,n,r,e){t=So(t)?t:yi(t),r=r&&!e?Ho(r):0;var o=t.length;return r<0&&(r=q(o+r,0)),Co(t)?r<=o&&-1=V(o=n,i=r)&&e=this.__values__.length;return{done:t,value:t?ru:this.__values__[this.__index__++]}},vt.prototype.plant=function(t){for(var n,r=this;r instanceof gt;){var e=de(r);e.__index__=0,e.__values__=ru,n?o.__wrapped__=e:n=e;var o=e;r=r.__wrapped__}return o.__wrapped__=t,n},vt.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof _t){var n=t;return this.__actions__.length&&(n=new _t(this)),(n=n.reverse()).__actions__.push({func:ze,args:[Me],thisArg:ru}),new yt(n,this.__chain__)}return this.thru(Me)},vt.prototype.toJSON=vt.prototype.valueOf=vt.prototype.value=function(){return zn(this.__wrapped__,this.__actions__)},vt.prototype.first=vt.prototype.head,I&&(vt.prototype[I]=function(){return this}),vt}();ja._=bc,(z=function(){return bc}.call(G,H,G,U))===ru||(U.exports=z)}).call(this)}).call(G,H(66),H(334)(t))},function(t,n){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":_typeof(window))&&(r=window)}t.exports=r},function(t,n,r){var e=r(4),o=r(2).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(2),o=r(18),i=r(30),u=r(94),a=r(7).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(50)("keys"),o=r(33);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(2).document;t.exports=e&&e.documentElement},function(t,n,o){var r=o(4),e=o(1),i=function(t,n){if(e(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,e){try{(e=o(19)(Function.call,o(16).f(Object.prototype,"__proto__").set,2))(t,[]),r=!(t instanceof Array)}catch(t){r=!0}return function(t,n){return i(t,n),r?t.__proto__=n:e(t,n),t}}({},!1):void 0),check:i}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,r){var i=r(4),u=r(72).set;t.exports=function(t,n,r){var e,o=n.constructor;return o!==r&&"function"==typeof o&&(e=o.prototype)!==r.prototype&&i(e)&&u&&u(t,e),t}},function(t,n,r){var o=r(24),i=r(23);t.exports=function(t){var n=String(i(this)),r="",e=o(t);if(e<0||e==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(n+=n))1&e&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||22025.465794806718=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n,r){var e,o,i,u=r(19),a=r(100),c=r(71),f=r(67),l=r(2),s=l.process,h=l.setImmediate,p=l.clearImmediate,v=l.MessageChannel,d=l.Dispatch,g=0,y={},_="onreadystatechange",m=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},b=function(t){m.call(t.data)};h&&p||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return y[++g]=function(){a("function"==typeof t?t:Function(t),n)},e(g),g},p=function(t){delete y[t]},"process"==r(20)(s)?e=function(t){s.nextTick(u(m,t,1))}:d&&d.now?e=function(t){d.now(u(m,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=b,e=u(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(e=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):e=_ in f("script")?function(t){c.appendChild(f("script"))[_]=function(){c.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){var a=r(2),c=r(89).set,f=a.MutationObserver||a.WebKitMutationObserver,l=a.process,s=a.Promise,h="process"==r(20)(l);t.exports=function(){var r,e,o,t=function(){var t,n;for(h&&(t=l.domain)&&t.exit();r;){n=r.fn,r=r.next;try{n()}catch(t){throw r?o():e=void 0,t}}e=void 0,t&&t.enter()};if(h)o=function(){l.nextTick(t)};else if(!f||a.navigator&&a.navigator.standalone)if(s&&s.resolve){var n=s.resolve(void 0);o=function(){n.then(t)}}else o=function(){c.call(a,t)};else{var i=!0,u=document.createTextNode("");new f(t).observe(u,{characterData:!0}),o=function(){u.data=i=!i}}return function(t){var n={fn:t,next:void 0};e&&(e.next=n),r||(r=n,o()),e=n}}},function(t,n,r){var o=r(10);function e(t){var r,e;this.promise=new t(function(t,n){if(void 0!==r||void 0!==e)throw TypeError("Bad Promise constructor");r=t,e=n}),this.resolve=o(r),this.reject=o(e)}t.exports.f=function(t){return new e(t)}},function(t,n,r){var e=r(2),o=r(6),i=r(30),u=r(61),a=r(11),c=r(41),f=r(3),l=r(39),s=r(24),h=r(8),p=r(119),v=r(37).f,d=r(7).f,g=r(87),y=r(42),_="ArrayBuffer",m="DataView",b="prototype",w="Wrong index!",x=e[_],S=e[m],O=e.Math,E=e.RangeError,k=e.Infinity,j=x,A=O.abs,$=O.pow,M=O.floor,T=O.log,P=O.LN2,I="byteLength",F="byteOffset",L=o?"_b":"buffer",R=o?"_l":I,N=o?"_o":F;function C(t,n,r){var e,o,i,u=new Array(r),a=8*r-n-1,c=(1<>1,l=23===n?$(2,-24)-$(2,-77):0,s=0,h=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===k?(o=t!=t?1:0,e=c):(e=M(T(t)/P),t*(i=$(2,-e))<1&&(e--,i*=2),2<=(t+=1<=e+f?l/i:l*$(2,1-f))*i&&(e++,i/=2),c<=e+f?(o=0,e=c):1<=e+f?(o=(t*i-1)*$(2,n),e+=f):(o=t*$(2,f-1)*$(2,n),e=0));8<=n;u[s++]=255&o,o/=256,n-=8);for(e=e<>1,a=o-7,c=r-1,f=t[c--],l=127&f;for(f>>=7;0>=-a,a+=n;0>8&255]}function z(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function G(t){return C(t,52,8)}function H(t){return C(t,23,4)}function q(t,n,r){d(t[b],n,{get:function(){return this[r]}})}function V(t,n,r,e){var o=p(+r);if(o+n>t[R])throw E(w);var i=t[L]._b,u=o+t[N],a=i.slice(u,u+n);return e?a:a.reverse()}function K(t,n,r,e,o,i){var u=p(+r);if(u+n>t[R])throw E(w);for(var a=t[L]._b,c=u+t[N],f=e(+o),l=0;lQ;)(Y=Z[Q++])in x||a(x,Y,j[Y]);i||(J.constructor=x)}var X=new S(new x(2)),tt=S[b].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||c(S[b],{setInt8:function(t,n){tt.call(this,t,n<<24>>24)},setUint8:function(t,n){tt.call(this,t,n<<24>>24)}},!0)}else x=function(t){l(this,x,_);var n=p(t);this._b=g.call(new Array(n),0),this[R]=n},S=function(t,n,r){l(this,S,m),l(t,x,m);var e=t[R],o=s(n);if(o<0||e>24},getUint8:function(t){return V(this,1,t)[0]},getInt16:function(t){var n=V(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=V(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return B(V(this,4,t,arguments[1]))},getUint32:function(t){return B(V(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return D(V(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return D(V(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){K(this,1,t,W,n)},setUint8:function(t,n){K(this,1,t,W,n)},setInt16:function(t,n){K(this,2,t,U,n,arguments[2])},setUint16:function(t,n){K(this,2,t,U,n,arguments[2])},setInt32:function(t,n){K(this,4,t,z,n,arguments[2])},setUint32:function(t,n){K(this,4,t,z,n,arguments[2])},setFloat32:function(t,n){K(this,4,t,H,n,arguments[2])},setFloat64:function(t,n){K(this,8,t,G,n,arguments[2])}});y(x,_),y(S,m),a(S[b],u.VIEW,!0),n[_]=x,n[m]=S},function(t,n,r){t.exports=!r(6)&&!r(3)(function(){return 7!=Object.defineProperty(r(67)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){n.f=r(5)},function(t,n,r){var u=r(14),a=r(15),c=r(51)(!1),f=r(69)("IE_PROTO");t.exports=function(t,n){var r,e=a(t),o=0,i=[];for(r in e)r!=f&&u(e,r)&&i.push(r);for(;n.length>o;)u(e,r=n[o++])&&(~c(i,r)||i.push(r));return i}},function(t,n,r){var u=r(7),a=r(1),c=r(34);t.exports=r(6)?Object.defineProperties:function(t,n){a(t);for(var r,e=c(n),o=e.length,i=0;i>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(2).parseFloat,o=r(43).trim;t.exports=1/e(r(73)+"-0")!=-1/0?function(t){var n=o(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(20);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(4),o=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&o(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){var i=r(76),e=Math.pow,u=e(2,-52),a=e(2,-23),c=e(2,127)*(2-a),f=e(2,-126);t.exports=Math.fround||function(t){var n,r,e=Math.abs(t),o=i(t);return ec&&(f=f.slice(0,c)),e?f+o:o+f}},function(t,n,r){var c=r(34),f=r(15),l=r(47).f;t.exports=function(a){return function(t){for(var n,r=f(t),e=c(r),o=e.length,i=0,u=[];i").attr("action",t);if("string"==typeof n&&""!=n)try{r=_.merge(r,JSON.parse(n))}catch(t){console.error("JSON parse on sendPost failed!")}_.each(r,function(t,n){$("").attr("name",n).attr("value",t).appendTo(e)}),$("").attr("name","YII_CSRF_TOKEN").attr("value",LS.data.csrfToken).appendTo(e),e.appendTo("body"),e.submit()},addHiddenElement:function(t,n,r){$('').attr("name",n).attr("value",r).appendTo($(t))},fixAccordionPosition:function(){$("#accordion").on("shown.bs.collapse",".panel-collapse.collapse",function(){$("#accordion").find(".collapse").not("#"+$(this).attr("id")).collapse("hide"),setTimeout(function(){$("html, body").animate({scrollTop:$(this).closest(".panel.panel-default").offset().top-20},500)},500)})}},i={bootstrapping:function(){$("button,input[type=submit],input[type=button],input[type=reset],.button").button(),$("button,input[type=submit],input[type=button],input[type=reset],.button").addClass("limebutton"),$(".progressbar").each(function(){var t=parseInt($(this).attr("name"));$(this).progressbar({value:t}),85 "),a="notif-container_"+this.getCount();u.addClass(n),u.css(r),i.useHtml?u.html(t):u.text(t),$("#notif-container").clone().attr("id",a).css({display:"none",top:8*this.getCount()+"%",position:"fixed",left:"15%",width:"70%","z-index":3500}).appendTo($("#notif-container").parent()).html(u),$("#"+a)[i.inAnimation](i.animationTime,function(){var t=function(){$("#"+a)[i.outAnimation](i.animationTime,function(){$("#"+a).remove(),o.decrement()})};$(o).on("click",t),i.timeout&&setTimeout(t,i.timeout)})}}]),t}();window.LS.LsGlobalNotifier=window.LS.LsGlobalNotifier||new e,n.default={notifyFader:function(t,n,r,e){window.LS.LsGlobalNotifier.create(t,n,r,e)}}},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),r.d(n,"ajax",function(){return u}),r.d(n,"onSuccess",function(){return i});var e=r(127),o=r(128),i=function(t){return""==t?(console.error("No response from server"),o.default.create("No response from server","alert-danger"),!1):t.loggedIn?t.hasPermission?t.error?(Object(o.default)(t.error.message,"well-lg bg-danger text-center"),!1):("jsonoutputhtml"==t.outputType&&($("#"+t.target).html(t.html),e.b.doToolTip()),t.success&&Object(o.default)(t.success,"well-lg bg-primary text-center"),t.html&&($("#ajax-helper-modal .modal-content").html(t.html),$("#ajax-helper-modal").modal("show")),!0):(Object(o.default)(t.noPermissionText,"well-lg bg-danger text-center"),!1):($(".modal").modal("hide"),$("#ajax-helper-modal .modal-content").html(t.html),$("#ajax-helper-modal").modal("show"),!1)},u=function(t){var o=t.success,e=t.error;return t.success=function(t,n,r){$("#ls-loading").hide();var e=i(t);o&&e&&o(t,n,r)},t.error=function(t,n,r){$("#ls-loading").hide(),console.error("AJAX CALL FAILED -> ",{errorThrown:r,textStatus:n,jqXHR:t}),e&&e(t,n,r)},$("#ls-loading").show(),$.ajax(t)}},function(t,n,r){r(131),t.exports=r(333)},function(t,n,r){(function(t){if(r(132),r(329),r(330),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;function n(t,n,r){t[n]||Object.defineProperty(t,n,{writable:!0,configurable:!0,value:r})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&n(Array,t,Function.call.bind([][t]))})}).call(n,r(66))},function(t,n,r){r(133),r(135),r(136),r(137),r(138),r(139),r(140),r(141),r(142),r(143),r(144),r(145),r(146),r(147),r(148),r(149),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(205),r(206),r(207),r(208),r(209),r(210),r(211),r(213),r(214),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(232),r(233),r(234),r(235),r(236),r(88),r(237),r(238),r(111),r(239),r(240),r(241),r(242),r(243),r(114),r(116),r(117),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),t.exports=r(18)},function(t,n,r){var e=r(2),u=r(14),o=r(6),i=r(0),a=r(12),c=r(29).KEY,f=r(3),l=r(50),s=r(42),h=r(33),p=r(5),v=r(94),d=r(68),g=r(134),y=r(53),_=r(1),m=r(4),b=r(15),w=r(22),x=r(32),S=r(36),O=r(97),E=r(16),k=r(7),j=r(34),A=E.f,$=k.f,M=O.f,T=e.Symbol,P=e.JSON,I=P&&P.stringify,F="prototype",L=p("_hidden"),R=p("toPrimitive"),N={}.propertyIsEnumerable,C=l("symbol-registry"),D=l("symbols"),B=l("op-symbols"),W=Object[F],U="function"==typeof T,z=e.QObject,G=!z||!z[F]||!z[F].findChild,H=o&&f(function(){return 7!=S($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=A(W,n);e&&delete W[n],$(t,n,r),e&&t!==W&&$(W,n,e)}:$,q=function(t){var n=D[t]=S(T[F]);return n._k=t,n},V=U&&"symbol"==_typeof(T.iterator)?function(t){return"symbol"==(void 0===t?"undefined":_typeof(t))}:function(t){return t instanceof T},K=function(t,n,r){return t===W&&K(B,n,r),_(t),n=w(n,!0),_(r),u(D,n)?(r.enumerable?(u(t,L)&&t[L][n]&&(t[L][n]=!1),r=S(r,{enumerable:x(0,!1)})):(u(t,L)||$(t,L,x(1,{})),t[L][n]=!0),H(t,n,r)):$(t,n,r)},Y=function(t,n){_(t);for(var r,e=g(n=b(n)),o=0,i=e.length;oo;)u(D,n=r[o++])||n==L||n==c||e.push(n);return e},X=function(t){for(var n,r=t===W,e=M(r?B:b(t)),o=[],i=0;e.length>i;)!u(D,n=e[i++])||r&&!u(W,n)||o.push(D[n]);return o};U||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var r=h(0nt;)p(tt[nt++]);for(var rt=j(p.store),et=0;rt.length>et;)d(rt[et++]);i(i.S+i.F*!U,"Symbol",{for:function(t){return u(C,t+="")?C[t]:C[t]=T(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var n in C)if(C[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),i(i.S+i.F*!U,"Object",{create:function(t,n){return void 0===n?S(t):Y(S(t),n)},defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:X}),P&&i(i.S+i.F*(!U||f(function(){var t=T();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(m(n)||void 0!==t)&&!V(t))return y(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!V(n))return n}),e[1]=n,I.apply(P,e)}}),T[F][R]||r(11)(T[F],R,T[F].valueOf),s(T,"Symbol"),s(Math,"Math",!0),s(e.JSON,"JSON",!0)},function(t,n,r){var a=r(34),c=r(52),f=r(47);t.exports=function(t){var n=a(t),r=c.f;if(r)for(var e,o=r(t),i=f.f,u=0;o.length>u;)i.call(t,e=o[u++])&&n.push(e);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(36)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(6),"Object",{defineProperty:r(7).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(6),"Object",{defineProperties:r(96)})},function(t,n,r){var e=r(15),o=r(16).f;r(25)("getOwnPropertyDescriptor",function(){return function(t,n){return o(e(t),n)}})},function(t,n,r){var e=r(9),o=r(17);r(25)("getPrototypeOf",function(){return function(t){return o(e(t))}})},function(t,n,r){var e=r(9),o=r(34);r(25)("keys",function(){return function(t){return o(e(t))}})},function(t,n,r){r(25)("getOwnPropertyNames",function(){return r(97).f})},function(t,n,r){var e=r(4),o=r(29).onFreeze;r(25)("freeze",function(n){return function(t){return n&&e(t)?n(o(t)):t}})},function(t,n,r){var e=r(4),o=r(29).onFreeze;r(25)("seal",function(n){return function(t){return n&&e(t)?n(o(t)):t}})},function(t,n,r){var e=r(4),o=r(29).onFreeze;r(25)("preventExtensions",function(n){return function(t){return n&&e(t)?n(o(t)):t}})},function(t,n,r){var e=r(4);r(25)("isFrozen",function(n){return function(t){return!e(t)||!!n&&n(t)}})},function(t,n,r){var e=r(4);r(25)("isSealed",function(n){return function(t){return!e(t)||!!n&&n(t)}})},function(t,n,r){var e=r(4);r(25)("isExtensible",function(n){return function(t){return!!e(t)&&(!n||n(t))}})},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(98)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(150)})},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(72).set})},function(t,n,r){var e=r(48),o={};o[r(5)("toStringTag")]="z",o+""!="[object z]"&&r(12)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(99)})},function(t,n,r){var e=r(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||r(6)&&e(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,n,r){var e=r(4),o=r(17),i=r(5)("hasInstance"),u=Function.prototype;i in u||r(7).f(u,i,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(0),o=r(101);e(e.G+e.F*(parseInt!=o),{parseInt:o})},function(t,n,r){var e=r(0),o=r(102);e(e.G+e.F*(parseFloat!=o),{parseFloat:o})},function(t,n,r){var e=r(2),o=r(14),i=r(20),u=r(74),l=r(22),a=r(3),c=r(37).f,f=r(16).f,s=r(7).f,h=r(43).trim,p="Number",v=e[p],d=v,g=v.prototype,y=i(r(36)(g))==p,_="trim"in String.prototype,m=function(t){var n=l(t,!1);if("string"==typeof n&&2x;x++)o(d,b=w[x])&&!o(v,b)&&s(v,b,f(d,b));(v.prototype=g).constructor=v,r(12)(e,p,v)}},function(t,n,r){var e=r(0),f=r(24),l=r(103),s=r(75),o=1..toFixed,i=Math.floor,u=[0,0,0,0,0,0],h="Number.toFixed: incorrect invocation!",p=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*u[r],u[r]=e%1e7,e=i(e/1e7)},v=function(t){for(var n=6,r=0;0<=--n;)r+=u[n],u[n]=i(r/t),r=r%t*1e7},d=function(){for(var t=6,n="";0<=--t;)if(""!==n||0===t||0!==u[t]){var r=String(u[t]);n=""===n?r:n+s.call("0",7-r.length)+r}return n},g=function t(n,r,e){return 0===r?e:r%2==1?t(n,r-1,e*n):t(n*n,r/2,e)};e(e.P+e.F*(!!o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(3)(function(){o.call({})})),"Number",{toFixed:function(t){var n,r,e,o,i=l(this,h),u=f(t),a="",c="0";if(u<0||20>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),o=Math.exp;e(e.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,n,r){var e=r(0),o=r(77);e(e.S+e.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(106)})},function(t,n,r){var e=r(0),c=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,i=0,u=arguments.length,a=0;i>>16)*i+o*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(105)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(76)})},function(t,n,r){var e=r(0),o=r(77),i=Math.exp;e(e.S+e.F*r(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),o=r(77),i=Math.exp;e(e.S,"Math",{tanh:function(t){var n=o(t=+t),r=o(-t);return n==1/0?1:r==1/0?-1:(n-r)/(i(t)+i(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(0>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),u=r(15),a=r(8);e(e.S,"String",{raw:function(t){for(var n=u(t.raw),r=a(n.length),e=arguments.length,o=[],i=0;i=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){var e=r(0),o=r(78)(!1);e(e.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,n,r){var e=r(0),u=r(8),a=r(81),c="endsWith",f=""[c];e(e.P+e.F*r(82)(c),"String",{endsWith:function(t){var n=a(this,t,c),r=1y;)d(g[y++]);(s.constructor=f).prototype=s,r(12)(e,"RegExp",f)}r(38)("RegExp")},function(t,n,r){r(111);var e=r(1),o=r(56),i=r(6),u="toString",a=/./[u],c=function(t){r(12)(RegExp.prototype,u,t,!0)};r(3)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):a.name!=u&&c(function(){return a.call(this)})},function(t,n,r){r(57)("match",1,function(e,o,t){return[function(t){var n=e(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n):new RegExp(t)[o](String(n))},t]})},function(t,n,r){r(57)("replace",2,function(o,i,u){return[function(t,n){var r=o(this),e=null==t?void 0:t[i];return void 0!==e?e.call(t,r,n):u.call(String(r),t,n)},u]})},function(t,n,r){r(57)("search",1,function(e,o,t){return[function(t){var n=e(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n):new RegExp(t)[o](String(n))},t]})},function(t,n,r){r(57)("split",2,function(o,i,u){var p=r(54),v=u,d=[].push,t="split",g="length";if("c"=="abbc"[t](/(b)*/)[1]||4!="test"[t](/(?:)/,-1)[g]||2!="ab"[t](/(?:ab)*/)[g]||4!="."[t](/(.?)(.?)/)[g]||1<"."[t](/()()/)[g]||""[t](/.?/)[g]){var y=void 0===/()??/.exec("")[1];u=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!p(t))return v.call(r,t,n);var e,o,i,u,a,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,s=void 0===n?4294967295:n>>>0,h=new RegExp(t.source,f+"g");for(y||(e=new RegExp("^"+h.source+"$(?!\\s)",f));(o=h.exec(r))&&!(l<(i=o.index+o[0][g])&&(c.push(r.slice(l,o.index)),!y&&1=s));)h.lastIndex===o.index&&h.lastIndex++;return l===r[g]?!u&&h.test("")||c.push(""):c.push(r.slice(l)),c[g]>s?c.slice(0,s):c}}else"0"[t](void 0,0)[g]&&(u=function(t,n){return void 0===t&&0===n?[]:v.call(this,t,n)});return[function(t,n){var r=o(this),e=null==t?void 0:t[i];return void 0!==e?e.call(t,r,n):u.call(String(r),t,n)},u]})},function(t,n,r){var e,o,i,u,a=r(30),c=r(2),f=r(19),l=r(48),s=r(0),h=r(4),p=r(10),v=r(39),d=r(40),g=r(58),y=r(89).set,_=r(90)(),m=r(91),b=r(112),w=r(59),x=r(113),S="Promise",O=c.TypeError,E=c.process,k=E&&E.versions,j=k&&k.v8||"",A=c[S],$="process"==l(E),M=function(){},T=o=m.f,P=!!function(){try{var t=A.resolve(1),n=(t.constructor={})[r(5)("species")]=function(t){t(M,M)};return($||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof n&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},F=function(l,r){if(!l._n){l._n=!0;var e=l._c;_(function(){for(var c=l._v,f=1==l._s,t=0,n=function(t){var n,r,e,o=f?t.ok:t.fail,i=t.resolve,u=t.reject,a=t.domain;try{o?(f||(2==l._h&&N(l),l._h=1),!0===o?n=c:(a&&a.enter(),n=o(c),a&&(a.exit(),e=!0)),n===t.promise?u(O("Promise-chain cycle")):(r=I(n))?r.call(n,i,u):i(n)):u(c)}catch(t){a&&!e&&a.exit(),u(t)}};e.length>t;)n(e[t++]);l._c=[],l._n=!1,r&&!l._h&&L(l)})}},L=function(i){y.call(c,function(){var t,n,r,e=i._v,o=R(i);if(o&&(t=b(function(){$?E.emit("unhandledRejection",e,i):(n=c.onunhandledrejection)?n({promise:i,reason:e}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",e)}),i._h=$||R(i)?2:1),i._a=void 0,o&&t.e)throw t.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(n){y.call(c,function(){var t;$?E.emit("rejectionHandled",n):(t=c.onrejectionhandled)&&t({promise:n,reason:n._v})})},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),F(n,!0))},D=function t(r){var e,o=this;if(!o._d){o._d=!0,o=o._w||o;try{if(o===r)throw O("Promise can't be resolved itself");(e=I(r))?_(function(){var n={_w:o,_d:!1};try{e.call(r,f(t,n,1),f(C,n,1))}catch(t){C.call(n,t)}}):(o._v=r,o._s=1,F(o,!1))}catch(t){C.call({_w:o,_d:!1},t)}}};P||(A=function(t){v(this,A,S,"_h"),p(t),e.call(this);try{t(f(D,this,1),f(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(41)(A.prototype,{then:function(t,n){var r=T(g(this,A));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=$?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&F(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new e;this.promise=t,this.resolve=f(D,t,1),this.reject=f(C,t,1)},m.f=T=function(t){return t===A||t===u?new i(t):o(t)}),s(s.G+s.W+s.F*!P,{Promise:A}),r(42)(A,S),r(38)(S),u=r(18)[S],s(s.S+s.F*!P,S,{reject:function(t){var n=T(this);return(0,n.reject)(t),n.promise}}),s(s.S+s.F*(a||!P),S,{resolve:function(t){return x(a&&this===u?A:this,t)}}),s(s.S+s.F*!(P&&r(55)(function(t){A.all(t).catch(M)})),S,{all:function(t){var u=this,n=T(u),a=n.resolve,c=n.reject,r=b(function(){var e=[],o=0,i=1;d(t,!1,function(t){var n=o++,r=!1;e.push(void 0),i++,u.resolve(t).then(function(t){r||(r=!0,e[n]=t,--i||a(e))},c)}),--i||a(e)});return r.e&&c(r.v),n.promise},race:function(t){var n=this,r=T(n),e=r.reject,o=b(function(){d(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return o.e&&e(o.v),r.promise}})},function(t,n,r){var e=r(118),o=r(45);r(60)("WeakSet",function(t){return function(){return t(this,0=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,n,r){var u=r(16),a=r(17),c=r(14),e=r(0),f=r(4),l=r(1);e(e.S,"Reflect",{get:function t(n,r){var e,o,i=arguments.length<3?n:arguments[2];return l(n)===i?n[r]:(e=u.f(n,r))?c(e,"value")?e.value:void 0!==e.get?e.get.call(i):void 0:f(o=a(n))?t(o,r,i):void 0}})},function(t,n,r){var e=r(16),o=r(0),i=r(1);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(i(t),n)}})},function(t,n,r){var e=r(0),o=r(17),i=r(1);e(e.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),o=r(1),i=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(120)})},function(t,n,r){var e=r(0),o=r(1),i=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,n,r){var c=r(7),f=r(16),l=r(17),s=r(14),e=r(0),h=r(32),p=r(1),v=r(4);e(e.S,"Reflect",{set:function t(n,r,e){var o,i,u=arguments.length<4?n:arguments[3],a=f.f(p(n),r);if(!a){if(v(i=l(n)))return t(i,r,e,u);a=h(0)}if(s(a,"value")){if(!1===a.writable||!v(u))return!1;if(o=f.f(u,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=e,c.f(u,r,o)}else c.f(u,r,h(0,e));return!0}return void 0!==a.set&&(a.set.call(u,e),!0)}})},function(t,n,r){var e=r(0),o=r(72);o&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){o.check(t,n);try{return o.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){var e=r(0),o=r(51)(!0);e(e.P,"Array",{includes:function(t){return o(this,t,1a;)void 0!==(r=o(e,n=i[a++]))&&s(u,n,r);return u}})},function(t,n,r){var e=r(0),o=r(123)(!1);e(e.S,"Object",{values:function(t){return o(t)}})},function(t,n,r){var e=r(0),o=r(123)(!0);e(e.S,"Object",{entries:function(t){return o(t)}})},function(t,n,r){var e=r(0),o=r(9),i=r(10),u=r(7);r(6)&&e(e.P+r(62),"Object",{__defineGetter__:function(t,n){u.f(o(this),t,{get:i(n),enumerable:!0,configurable:!0})}})},function(t,n,r){var e=r(0),o=r(9),i=r(10),u=r(7);r(6)&&e(e.P+r(62),"Object",{__defineSetter__:function(t,n){u.f(o(this),t,{set:i(n),enumerable:!0,configurable:!0})}})},function(t,n,r){var e=r(0),o=r(9),i=r(22),u=r(17),a=r(16).f;r(6)&&e(e.P+r(62),"Object",{__lookupGetter__:function(t){var n,r=o(this),e=i(t,!0);do{if(n=a(r,e))return n.get}while(r=u(r))}})},function(t,n,r){var e=r(0),o=r(9),i=r(22),u=r(17),a=r(16).f;r(6)&&e(e.P+r(62),"Object",{__lookupSetter__:function(t){var n,r=o(this),e=i(t,!0);do{if(n=a(r,e))return n.set}while(r=u(r))}})},function(t,n,r){var e=r(0);e(e.P+e.R,"Map",{toJSON:r(124)("Map")})},function(t,n,r){var e=r(0);e(e.P+e.R,"Set",{toJSON:r(124)("Set")})},function(t,n,r){r(63)("Map")},function(t,n,r){r(63)("Set")},function(t,n,r){r(63)("WeakMap")},function(t,n,r){r(63)("WeakSet")},function(t,n,r){r(64)("Map")},function(t,n,r){r(64)("Set")},function(t,n,r){r(64)("WeakMap")},function(t,n,r){r(64)("WeakSet")},function(t,n,r){var e=r(0);e(e.G,{global:r(2)})},function(t,n,r){var e=r(0);e(e.S,"System",{global:r(2)})},function(t,n,r){var e=r(0),o=r(20);e(e.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clamp:function(t,n,r){return Math.min(r,Math.max(n,t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,n,r){var e=r(0),o=180/Math.PI;e(e.S,"Math",{degrees:function(t){return t*o}})},function(t,n,r){var e=r(0),i=r(126),u=r(106);e(e.S,"Math",{fscale:function(t,n,r,e,o){return u(i(t,n,r,e,o))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{iaddh:function(t,n,r,e){var o=t>>>0,i=r>>>0;return(n>>>0)+(e>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},function(t,n,r){var e=r(0);e(e.S,"Math",{isubh:function(t,n,r,e){var o=t>>>0,i=r>>>0;return(n>>>0)-(e>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},function(t,n,r){var e=r(0);e(e.S,"Math",{imulh:function(t,n){var r=+t,e=+n,o=65535&r,i=65535&e,u=r>>16,a=e>>16,c=(u*i>>>0)+(o*i>>>16);return u*a+(c>>16)+((o*a>>>0)+(65535&c)>>16)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,n,r){var e=r(0),o=Math.PI/180;e(e.S,"Math",{radians:function(t){return t*o}})},function(t,n,r){var e=r(0);e(e.S,"Math",{scale:r(126)})},function(t,n,r){var e=r(0);e(e.S,"Math",{umulh:function(t,n){var r=+t,e=+n,o=65535&r,i=65535&e,u=r>>>16,a=e>>>16,c=(u*i>>>0)+(o*i>>>16);return u*a+(c>>>16)+((o*a>>>0)+(65535&c)>>>16)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:0')),i=$(''),u=$(''),a=$(''),c=$(''),f=$(''),l=$(''),s=$(n.closeIcon),h=$(n.closeButton),p=$(n.saveButton),v=null,r=function(){var r=this;$.each(e,function(t,n){e[t]=r.data(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||e[t]})},d=function(){v.on("show.bs.modal",function(){g();try{e.fnOnShow}catch(t){}}),v.on("shown.bs.modal",e.fnOnShown),v.on("hide.bs.modal",e.fnOnHide),v.on("hidden.bs.modal",function(){!0===e.removeOnClose&&v.find(".modal-body").html(" ");try{e.fnOnHidden}catch(t){}}),v.on("loaded.ls.remotemodal",e.fnOnLoaded)},g=function(){var n=v.find(".modal-body");$.ajax({url:e.remoteLink,method:"GET",success:function(t){n.html(t),v.trigger("loaded.ls.remotemodal")}})},y=function(){var t=u.clone();if(t.append(f.clone()),!0===e.header){var n=a.clone();c.text(e.modalTitle),n.append(s.clone()),n.append(c),t.prepend(n)}if(!0===e.footer){var r=l.clone();r.append(h.clone()),!0===e.saveButton&&r.append(p.clone()),t.append(r)}(v=o.clone()).append(i.clone().append(t))},_=function(){this.on("click.remotemodal",function(){v.modal("toggle")})};r.call(this),y(),v.appendTo($(e.parentElement)),_.call(this),d.call(this)}})},function(t,n,r){n.a=function(){0<$("#advancedquestionsettingswrapper").length&&(window.questionFunctions=window.questionFunctions||new QuestionFunctions||null,window.questionFunctions.updatequestionattributes()),$("#showadvancedattributes").click(function(){$("#showadvancedattributes").hide(),$("#hideadvancedattributes").show(),$("#advancedquestionsettingswrapper").animate({height:"toggle",opacity:"toggle"})})}},function(t,n,r){r.d(n,"a",function(){return i});var e=r(65),o=r.n(e),i={removechars:function(t){return t.replace(/[-a-zA-Z_]/g,"")},getUnique:function(t){return o.a.uniq(t)}}},function(t,n,r){r.d(n,"a",function(){return e});var e=function(){$(document).on("click",".has-link",function(){var t=$(this).find("a").attr("href");window.location.href=t})}},function(module,__webpack_exports__,__webpack_require__){var __WEBPACK_IMPORTED_MODULE_0_lodash__=__webpack_require__(65),__WEBPACK_IMPORTED_MODULE_0_lodash___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__),ConfirmationModal=function ConfirmationModal(e){var _this=this,optionsDefault={onclick:null,href:null,message:null,keepopen:null,postDatas:null,gridid:null,"ajax-url":null},_parseOptions=function(r){return __WEBPACK_IMPORTED_MODULE_0_lodash___default.a.each(optionsDefault,function(t,n){optionsDefault[n]=$(_this).data(n)||$(r.relatedTarget).data(n)||optionsDefault[n]})},_basicLink=function(){$(_this).find(".btn-ok").attr("href",options.href)},_onClickFunction=function _onClickFunction(){var onclick_fn=eval(options.onclick);if("function"==typeof onclick_fn)return $(_this).find(".btn-ok").off("click"),void $(_this).find(".btn-ok").on("click",function(t){options.keepopen||$("#confirmation-modal").modal("hide"),onclick_fn()});console.error("Confirmation modal: onclick is not a function. Wrap data-onclick content in (function() { ... }).")},_ajaxHandler=function(){$(_this).find(".btn-ok").on("click",function(t){$.ajax({type:"POST",url:options["ajax-url"],data:options.postDatas,success:function(t,n){$.fn.yiiGridView.update(options.gridid),$("#confirmation-modal").modal("hide")},error:function(t,n){$("#confirmation-modal .modal-body-text").append(t.responseText)}})})},_setTarget=function(){options.href?_basicLink():options.onclick?_onClickFunction():options["ajax-url"]?_ajaxHandler():console.error("Confirmation modal: Found neither data-href or data-onclick, nor ajax data.")},options=_parseOptions(e);$(this).find(".modal-body-text").html(options.message),_setTarget()},loadMethods=function(){$("#confirmation-modal").on("show.bs.modal",function(t){ConfirmationModal.call(this,t)})};__webpack_exports__.a=loadMethods},function(t,n,r){var e,o,i=r(65),u=r.n(i),a=r(49),c=(e=$("").attr("type","hidden").attr("name","close-after-save"),o=function(t){var n=void 0;if((n=1==$(t).attr("data-use-form-id")?(formId="#"+$(t).attr("data-form-to-save"),[$(formId)]):$("#pjax-content").find("form")).length<1)throw"No form Found this can't be!";return n},function(){u.a.each({_checkSaveButton:{check:"#save-button",run:function(t){t.preventDefault();var n=o(this);for(var r in CKEDITOR.instances)CKEDITOR.instances[r].updateElement();n.find('[type="submit"]').first().trigger("click")},on:"click"},_checkSaveFormButton:{check:"#save-form-button",run:function(t){t.preventDefault();var n="#"+$(this).attr("data-form-id");return $(n).find('[type="submit"]').trigger("click"),!1},on:"click"},_checkSaveAndNewButton:{check:"#save-and-new-button",run:function(t){t.preventDefault();var n=o(this);for(var r in n.append(''),CKEDITOR.instances)CKEDITOR.instances[r].updateElement();n.find('[type="submit"]').first().trigger("click")},on:"click"},_checkSaveAndCloseButton:{check:"#save-and-close-button",run:function(t){t.preventDefault();var n=o(this);e.val("true"),n.append(e),n.find('[type="submit"]').first().trigger("click")},on:"click"},_checkSaveAndCloseFormButton:{check:"#save-and-close-form-button",run:function(t){t.preventDefault();var n="#"+$(this).attr("data-form-id"),r=$(n);return $('').attr({name:"saveandclose",value:"1"}).appendTo(r),r.find('[type="submit"]').trigger("click"),!1},on:"click"},_checkSaveAndNewQuestionButton:{check:"#save-and-new-question-button",run:function(t){t.preventDefault();var n=o(this);for(var r in n.append(''),CKEDITOR.instances)CKEDITOR.instances[r].updateElement();n.find('[type="submit"]').first().trigger("click")},on:"click"},_checkOpenPreview:{check:".open-preview",run:function(t){var n=$(this).attr("aria-data-url");$("#frame-question-preview").attr("src",n),$("#question-preview").modal("show")},on:"click"}},function(t){var n=t.check;$(document).off(t.on,n),a.a.log("saveBindings",t,$(n)),0<$(n).length&&($(document).on(t.on,n,t.run),a.a.log($(n),"on",t.on,"run",t.run))})});n.a=c},function(module,__webpack_exports__,__webpack_require__){__webpack_exports__.a=confirmDeletemodal;var ConfirmDeleteModal=function ConfirmDeleteModal(options){var $item=$(this);options.fnOnShown=options.fnOnShown||function(){},options.fnOnHide=options.fnOnHide||function(){},options.removeOnClose=options.removeOnClose||function(){},options.fnOnHidden=options.fnOnHidden||function(){},options.fnOnLoaded=options.fnOnLoaded||function(){};var postUrl=options.postUrl||$item.attr("href"),confirmText=options.confirmText||$item.data("text")||"",confirmTitle=options.confirmTitle||$item.attr("title")||"",postObject=options.postObject||$item.data("post"),showTextArea=options.showTextArea||$item.data("show-text-area")||"",useAjax=options.useAjax||$item.data("use-ajax")||"",keepopen=options.keepopen||$item.data("keepopen")||"",gridReload=options.gridReload||$item.data("grid-reload")||"",gridid=options.gridid||$item.data("grid-id")||"",buttonNo=options.buttonNo||$item.data("button-no")||'',buttonYes=options.buttonYes||$item.data("button-yes")||'',parentElement=options.parentElement||$item.data("parent-element")||"body",closeIconHTML='',closeButtonHTML='",confirmButtonHTML='",outerBlock=$(''),innerBlock=$(''),contentBlock=$(''),headerBlock=$(''),headlineBlock=$(''),bodyBlock=$(''),footerBlock=$(''),closeIcon=$(closeIconHTML),closeButton=$(closeButtonHTML),confirmButton=$(confirmButtonHTML),modalObject=null,combineModal=function(){var t=contentBlock.clone();if(t.append(bodyBlock.clone()),""!==confirmTitle){var n=headerBlock.clone();headlineBlock.text(confirmTitle),n.append(closeIcon.clone()),n.append(headlineBlock),t.prepend(n)}var r=footerBlock.clone();r.append(closeButton.clone()),r.append(confirmButton.clone()),t.append(r),(modalObject=outerBlock.clone()).append(innerBlock.clone().append(t))},addForm=function(){var t=$('');for(var n in postObject){var r="hidden",e=postObject[n],o="";"object"==_typeof(postObject[n])&&(r=postObject[n].type,e=postObject[n].value,o=postObject[n].class),t.append('")}t.append(''),modalObject.find(".modal-body").append(t),modalObject.find(".modal-body").append("

"+confirmText+"

"),""!==showTextArea&&modalObject.find("form").append('')},runAjaxRequest=function runAjaxRequest(){return LS.ajax({url:postUrl,type:"POST",data:modalObject.find("form").serialize(),success:function success(html,statut){if("true"!=keepopen?modalObject.modal("hide"):modalObject.find(".modal-body").empty().html(html),gridReload&&($("#"+gridid).yiiGridView("update"),setTimeout(function(){$(document).trigger("actions-updated")},500)),html.ajaxHelper)LS.AjaxHelper.onSuccess(html);else if(onSuccess){var func=eval(onSuccess);func(html)}else;},error:function(t,n){modalObject.find(".modal-body").empty().html(t.responseText),console.ls.log(t)}})},bindEvents=function(){modalObject.on("show.bs.modal",function(){addForm();try{options.fnOnShow}catch(t){}}),modalObject.on("shown.bs.modal",function(){modalObject.find(".selector--button-confirm").on("click",function(t){t.preventDefault(),useAjax?runAjaxRequest():(modalObject.find("form").trigger("submit"),modalObject.modal("close"))}),options.fnOnShown.call(this)}),modalObject.on("hide.bs.modal",options.fnOnHide),modalObject.on("hidden.bs.modal",function(){!0===options.removeOnClose&&modalObject.find(".modal-body").html(" ");try{options.fnOnHidden}catch(t){}}),modalObject.on("loaded.ls.remotemodal",options.fnOnLoaded)},bindToElement=function(){$item.on("click.confirmmodal",function(){modalObject.modal("toggle")})},runPrepare=function(){"yes"!=$item.data("confirm-modal-appended")&&(combineModal(),modalObject.appendTo($(parentElement)),bindToElement.call(this),bindEvents.call(this),$item.data("confirm-modal-appended","yes"))};runPrepare()};function confirmDeletemodal(){$(document).off("click.confirmModalSelector","a.selector--ConfirmModal"),$(document).on("click.confirmModalSelector","a.selector--ConfirmModal",function(t){t.preventDefault(),$(this).confirmModal({}),$(this).trigger("click.confirmmodal")})}jQuery.fn.extend({confirmModal:ConfirmDeleteModal})},function(t,n,r){n.a=function(){$(".panel-clickable").on("click",function(t){var n=$(this);""!=n.data("url")&&("_blank"===n.data("target")?window.open(n.data("url")):window.location.href=n.data("url"))})}},function(t,n,r){n.a=function(){e.a.log("Triggering panel animation"),$(".panel").each(function(t){$(this).delay(200*t++).animate({opacity:1,top:"0px"},200)}),$("#last_question").length&&($(".rotateHidden").hide(),window.setTimeout(function t(){var n=$(".rotateShown");var r=$(".rotateHidden");n.hide("slide",{direction:"left",easing:"easeInOutQuint"},500,function(){r.show("slide",{direction:"right",easing:"easeInOutQuint"},1e3)});n.removeClass("rotateShown").addClass("rotateHidden");r.removeClass("rotateHidden").addClass("rotateShown");window.setTimeout(t,5e3)},2e3))};var e=r(49)},function(t,n,r){r(129);var u=r(49),e=new function(){var o=function(t){return u.a.log("updateNotificationWidget"),$.ajax({url:t,method:"GET",success:function(t){$("#notification-li").replaceWith(t),n(),e()}})},i=function(e,t){u.a.log("showNotificationModal"),$.ajax({url:t,method:"GET"}).done(function(t){var r=t.result;$("#admin-notification-modal .modal-title").html(r.title),$("#admin-notification-modal .modal-body-text").html(r.message),$("#admin-notification-modal .modal-content").addClass("panel-"+r.display_class),$("#admin-notification-modal .notification-date").html(r.created.substr(0,16)),$("#admin-notification-modal").modal(),$("#admin-notification-modal").off("hidden.bs.modal"),$("#admin-notification-modal").on("hidden.bs.modal",function(t){var n;n=e,u.a.log("notificationIsRead"),$.ajax({url:$(n).data("read-url"),method:"GET"}).done(function(t){o($(n).data("update-url"))}),$("#admin-notification-modal .modal-content").removeClass("panel-"+r.display_class)})})},n=function(){u.a.group("initNotification"),$(".admin-notification-link").each(function(t,n){u.a.log("Number of Notification: ",t);var r=$(n).data("url"),e=$(n).data("importance"),o=$(n).data("status");if(3==e&&"new"==o)return i(n,r),u.a.log("stoploop"),!1;$(n).off("click.showNotification"),$(n).on("click.showNotification",function(){i(n,r)})}),u.a.groupEnd("initNotification")},r=function(t,n){o(t).then(function(){!1!==n&&$("#notification-li").addClass("open")}),$("#notification-li").off("click.showNotification")},e=function(){u.a.log("styleNotificationMenu");var t=window.innerHeight-70;$("#notification-outer-ul").css("height",t+"px"),$("#notification-inner-ul").css("height",t-60+"px"),$("#notification-inner-li").css("height",t-60+"px")};return{initNotification:n,updateNotificationWidget:r,styleNotificationMenu:e,deleteAllNotifications:function(t,n){return $.ajax({url:t,method:"GET",success:function(t){u.a.log("response",t)}}).then(function(){r(n)})}}};n.a=e}]); \ No newline at end of file +"use strict";var _createClass=function(){function e(t,n){for(var r=0;r"+o+""};t.exports=function(n,t){var r={};r[n]=t(i),e(e.P+e.F*o(function(){var t=""[n]('"');return t!==t.toLowerCase()||3document.F=Object<\/script>"),t.close(),l=t.F;r--;)delete l[f][u[r]];return l()};t.exports=Object.create||function(t,n){var r;return null!==t?(c[f]=o(t),r=new c,c[f]=null,r[a]=t):r=l(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(95),o=r(70).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e=r(2),o=r(7),i=r(6),u=r(5)("species");t.exports=function(t){var n=e[t];i&&n&&!n[u]&&o.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var h=r(19),p=r(107),v=r(83),d=r(1),g=r(8),y=r(85),_={},m={};(n=t.exports=function(t,n,r,e,o){var i,u,a,c,f=o?function(){return t}:y(t),l=h(r,e,n?2:1),s=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(v(f)){for(i=g(t.length);s"']/g,zu=RegExp(Wu.source),Gu=RegExp(Uu.source),Hu=/<%-([\s\S]+?)%>/g,qu=/<%([\s\S]+?)%>/g,Vu=/<%=([\s\S]+?)%>/g,Ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yu=/^\w*$/,Ju=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zu=/[\\^$.*+?()[\]{}|]/g,Qu=RegExp(Zu.source),Xu=/^\s+|\s+$/g,ta=/^\s+/,na=/\s+$/,ra=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ea=/\{\n\/\* \[wrapped with (.+)\] \*/,oa=/,? & /,ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ua=/\\(\\)?/g,aa=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ca=/\w*$/,fa=/^[-+]0x[0-9a-f]+$/i,la=/^0b[01]+$/i,sa=/^\[object .+?Constructor\]$/,ha=/^0o[0-7]+$/i,pa=/^(?:0|[1-9]\d*)$/,va=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,ga=/['\n\r\u2028\u2029\\]/g,t="\\ud800-\\udfff",n="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",r="\\u2700-\\u27bf",e="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\ufe0e\\ufe0f",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",c="["+t+"]",f="["+u+"]",l="["+n+"]",s="\\d+",h="["+r+"]",p="["+e+"]",v="[^"+t+u+s+r+e+o+"]",d="\\ud83c[\\udffb-\\udfff]",g="[^"+t+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",m="["+o+"]",b="\\u200d",w="(?:"+p+"|"+v+")",x="(?:"+m+"|"+v+")",S="(?:['’](?:d|ll|m|re|s|t|ve))?",O="(?:['’](?:D|LL|M|RE|S|T|VE))?",E="(?:"+l+"|"+d+")"+"?",k="["+i+"]?",j=k+E+("(?:"+b+"(?:"+[g,y,_].join("|")+")"+k+E+")*"),A="(?:"+[h,y,_].join("|")+")"+j,$="(?:"+[g+l+"?",l,y,_,c].join("|")+")",ya=RegExp(a,"g"),_a=RegExp(l,"g"),M=RegExp(d+"(?="+d+")|"+$+j,"g"),ma=RegExp([m+"?"+p+"+"+S+"(?="+[f,m,"$"].join("|")+")",x+"+"+O+"(?="+[f,m+w,"$"].join("|")+")",m+"?"+w+"+"+S,m+"+"+O,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,A].join("|"),"g"),T=RegExp("["+b+t+n+i+"]"),ba=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wa=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xa=-1,Sa={};Sa[$u]=Sa[Mu]=Sa[Tu]=Sa[Pu]=Sa[Iu]=Sa[Fu]=Sa[Lu]=Sa[Ru]=Sa[Nu]=!0,Sa[su]=Sa[hu]=Sa[ju]=Sa[pu]=Sa[Au]=Sa[vu]=Sa[du]=Sa[gu]=Sa[_u]=Sa[mu]=Sa[bu]=Sa[xu]=Sa[Su]=Sa[Ou]=Sa[ku]=!1;var Oa={};Oa[su]=Oa[hu]=Oa[ju]=Oa[Au]=Oa[pu]=Oa[vu]=Oa[$u]=Oa[Mu]=Oa[Tu]=Oa[Pu]=Oa[Iu]=Oa[_u]=Oa[mu]=Oa[bu]=Oa[xu]=Oa[Su]=Oa[Ou]=Oa[Eu]=Oa[Fu]=Oa[Lu]=Oa[Ru]=Oa[Nu]=!0,Oa[du]=Oa[gu]=Oa[ku]=!1;var P={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ea=parseFloat,ka=parseInt,I="object"==(void 0===W?"undefined":_typeof(W))&&W&&W.Object===Object&&W,F="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,ja=I||F||Function("return this")(),L="object"==(void 0===G?"undefined":_typeof(G))&&G&&!G.nodeType&&G,R=L&&"object"==(void 0===U?"undefined":_typeof(U))&&U&&!U.nodeType&&U,Aa=R&&R.exports===L,N=Aa&&I.process,C=function(){try{var t=R&&R.require&&R.require("util").types;return t||N&&N.binding&&N.binding("util")}catch(t){}}(),$a=C&&C.isArrayBuffer,Ma=C&&C.isDate,Ta=C&&C.isMap,Pa=C&&C.isRegExp,Ia=C&&C.isSet,Fa=C&&C.isTypedArray;function La(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function Ra(t,n,r,e){for(var o=-1,i=null==t?0:t.length;++o":">",'"':""","'":"'"});function sc(t){return"\\"+P[t]}function hc(t){return T.test(t)}function pc(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e}function vc(n,r){return function(t){return n(r(t))}}function dc(t,n){for(var r=-1,e=t.length,o=0,i=[];++r",""":'"',"'":"'"});var bc=function t(n){var r,A=(n=null==n?ja:bc.defaults(ja.Object(),n,bc.pick(ja,wa))).Array,e=n.Date,o=n.Error,g=n.Function,i=n.Math,O=n.Object,y=n.RegExp,l=n.String,$=n.TypeError,u=A.prototype,a=g.prototype,s=O.prototype,c=n["__core-js_shared__"],f=a.toString,E=s.hasOwnProperty,h=0,p=(r=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",v=s.toString,d=f.call(O),_=ja._,m=y("^"+f.call(E).replace(Zu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=Aa?n.Buffer:ru,w=n.Symbol,x=n.Uint8Array,S=b?b.allocUnsafe:ru,k=vc(O.getPrototypeOf,O),j=O.create,M=s.propertyIsEnumerable,T=u.splice,P=w?w.isConcatSpreadable:ru,I=w?w.iterator:ru,F=w?w.toStringTag:ru,L=function(){try{var t=Br(O,"defineProperty");return t({},"",{}),t}catch(t){}}(),R=n.clearTimeout!==ja.clearTimeout&&n.clearTimeout,N=e&&e.now!==ja.Date.now&&e.now,C=n.setTimeout!==ja.setTimeout&&n.setTimeout,D=i.ceil,B=i.floor,W=O.getOwnPropertySymbols,U=b?b.isBuffer:ru,z=n.isFinite,G=u.join,H=vc(O.keys,O),q=i.max,V=i.min,K=e.now,Y=n.parseInt,J=i.random,Z=u.reverse,Q=Br(n,"DataView"),X=Br(n,"Map"),tt=Br(n,"Promise"),nt=Br(n,"Set"),rt=Br(n,"WeakMap"),et=Br(O,"create"),ot=rt&&new rt,it={},ut=ve(Q),at=ve(X),ct=ve(tt),ft=ve(nt),lt=ve(rt),st=w?w.prototype:ru,ht=st?st.valueOf:ru,pt=st?st.toString:ru;function vt(t){if(Po(t)&&!wo(t)&&!(t instanceof _t)){if(t instanceof yt)return t;if(E.call(t,"__wrapped__"))return de(t)}return new yt(t)}var dt=function(){function r(){}return function(t){if(!To(t))return{};if(j)return j(t);r.prototype=t;var n=new r;return r.prototype=ru,n}}();function gt(){}function yt(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=ru}function _t(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=fu,this.__views__=[]}function mt(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n>>0,n>>>=0;for(var i=A(o);++e>>1,u=t[i];null!==u&&!Do(u)&&(r?u<=n:u>>0)?(t=Yo(t))&&("string"==typeof n||null!=n&&!Ro(n))&&!(n=Cn(n))&&hc(t)?Jn(_c(t),0,r):t.split(n,r):[]},vt.spread=function(e,o){if("function"!=typeof e)throw new $(eu);return o=null==o?0:q(Ho(o),0),En(function(t){var n=t[o],r=Jn(t,0,o);return n&&Ga(r,n),La(e,this,r)})},vt.tail=function(t){var n=null==t?0:t.length;return n?Pn(t,1,n):[]},vt.take=function(t,n,r){return t&&t.length?Pn(t,0,(n=r||n===ru?1:Ho(n))<0?0:n):[]},vt.takeRight=function(t,n,r){var e=null==t?0:t.length;return e?Pn(t,(n=e-(n=r||n===ru?1:Ho(n)))<0?0:n,e):[]},vt.takeRightWhile=function(t,n){return t&&t.length?Un(t,Nr(n,3),!1,!0):[]},vt.takeWhile=function(t,n){return t&&t.length?Un(t,Nr(n,3)):[]},vt.tap=function(t,n){return n(t),t},vt.throttle=function(t,n,r){var e=!0,o=!0;if("function"!=typeof t)throw new $(eu);return To(r)&&(e="leading"in r?!!r.leading:e,o="trailing"in r?!!r.trailing:o),ao(t,n,{leading:e,maxWait:n,trailing:o})},vt.thru=ze,vt.toArray=zo,vt.toPairs=di,vt.toPairsIn=gi,vt.toPath=function(t){return wo(t)?za(t,pe):Do(t)?[t]:or(he(Yo(t)))},vt.toPlainObject=Ko,vt.transform=function(t,e,o){var n=wo(t),r=n||Eo(t)||Bo(t);if(e=Nr(e,4),null==o){var i=t&&t.constructor;o=r?n?new i:[]:To(t)&&Ao(i)?dt(k(t)):{}}return(r?Na:Kt)(t,function(t,n,r){return e(o,t,n,r)}),o},vt.unary=function(t){return eo(t,1)},vt.union=Te,vt.unionBy=Pe,vt.unionWith=Ie,vt.uniq=function(t){return t&&t.length?Dn(t):[]},vt.uniqBy=function(t,n){return t&&t.length?Dn(t,Nr(n,2)):[]},vt.uniqWith=function(t,n){return n="function"==typeof n?n:ru,t&&t.length?Dn(t,ru,n):[]},vt.unset=function(t,n){return null==t||Bn(t,n)},vt.unzip=Fe,vt.unzipWith=Le,vt.update=function(t,n,r){return null==t?t:Wn(t,n,Vn(r))},vt.updateWith=function(t,n,r,e){return e="function"==typeof e?e:ru,null==t?t:Wn(t,n,Vn(r),e)},vt.values=yi,vt.valuesIn=function(t){return null==t?[]:ic(t,fi(t))},vt.without=Re,vt.words=Ai,vt.wrap=function(t,n){return po(Vn(n),t)},vt.xor=Ne,vt.xorBy=Ce,vt.xorWith=De,vt.zip=Be,vt.zipObject=function(t,n){return Hn(t||[],n||[],$t)},vt.zipObjectDeep=function(t,n){return Hn(t||[],n||[],An)},vt.zipWith=We,vt.entries=di,vt.entriesIn=gi,vt.extend=Zo,vt.extendWith=Qo,Ci(vt,vt),vt.add=Ki,vt.attempt=$i,vt.camelCase=_i,vt.capitalize=mi,vt.ceil=Yi,vt.clamp=function(t,n,r){return r===ru&&(r=n,n=ru),r!==ru&&(r=(r=Vo(r))==r?r:0),n!==ru&&(n=(n=Vo(n))==n?n:0),Lt(Vo(t),n,r)},vt.clone=function(t){return Rt(t,4)},vt.cloneDeep=function(t){return Rt(t,5)},vt.cloneDeepWith=function(t,n){return Rt(t,5,n="function"==typeof n?n:ru)},vt.cloneWith=function(t,n){return Rt(t,4,n="function"==typeof n?n:ru)},vt.conformsTo=function(t,n){return null==n||Nt(t,n,ci(n))},vt.deburr=bi,vt.defaultTo=function(t,n){return null==t||t!=t?n:t},vt.divide=Ji,vt.endsWith=function(t,n,r){t=Yo(t),n=Cn(n);var e=t.length,o=r=r===ru?e:Lt(Ho(r),0,e);return 0<=(r-=n.length)&&t.slice(r,o)==n},vt.eq=yo,vt.escape=function(t){return(t=Yo(t))&&Gu.test(t)?t.replace(Uu,lc):t},vt.escapeRegExp=function(t){return(t=Yo(t))&&Qu.test(t)?t.replace(Zu,"\\$&"):t},vt.every=function(t,n,r){var e=wo(t)?Da:Ut;return r&&Kr(t,n,r)&&(n=ru),e(t,Nr(n,3))},vt.find=qe,vt.findIndex=me,vt.findKey=function(t,n){return Ka(t,Nr(n,3),Kt)},vt.findLast=Ve,vt.findLastIndex=be,vt.findLastKey=function(t,n){return Ka(t,Nr(n,3),Yt)},vt.floor=Zi,vt.forEach=Ke,vt.forEachRight=Ye,vt.forIn=function(t,n){return null==t?t:qt(t,Nr(n,3),fi)},vt.forInRight=function(t,n){return null==t?t:Vt(t,Nr(n,3),fi)},vt.forOwn=function(t,n){return t&&Kt(t,Nr(n,3))},vt.forOwnRight=function(t,n){return t&&Yt(t,Nr(n,3))},vt.get=ei,vt.gt=_o,vt.gte=mo,vt.has=function(t,n){return null!=t&&Gr(t,n,nn)},vt.hasIn=oi,vt.head=xe,vt.identity=Fi,vt.includes=function(t,n,r,e){t=So(t)?t:yi(t),r=r&&!e?Ho(r):0;var o=t.length;return r<0&&(r=q(o+r,0)),Co(t)?r<=o&&-1=V(o=n,i=r)&&e=this.__values__.length;return{done:t,value:t?ru:this.__values__[this.__index__++]}},vt.prototype.plant=function(t){for(var n,r=this;r instanceof gt;){var e=de(r);e.__index__=0,e.__values__=ru,n?o.__wrapped__=e:n=e;var o=e;r=r.__wrapped__}return o.__wrapped__=t,n},vt.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof _t){var n=t;return this.__actions__.length&&(n=new _t(this)),(n=n.reverse()).__actions__.push({func:ze,args:[Me],thisArg:ru}),new yt(n,this.__chain__)}return this.thru(Me)},vt.prototype.toJSON=vt.prototype.valueOf=vt.prototype.value=function(){return zn(this.__wrapped__,this.__actions__)},vt.prototype.first=vt.prototype.head,I&&(vt.prototype[I]=function(){return this}),vt}();ja._=bc,(z=function(){return bc}.call(G,H,G,U))===ru||(U.exports=z)}).call(this)}).call(G,H(66),H(334)(t))},function(t,n){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":_typeof(window))&&(r=window)}t.exports=r},function(t,n,r){var e=r(4),o=r(2).document,i=e(o)&&e(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,r){var e=r(2),o=r(18),i=r(30),u=r(94),a=r(7).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(50)("keys"),o=r(33);t.exports=function(t){return e[t]||(e[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(2).document;t.exports=e&&e.documentElement},function(t,n,o){var r=o(4),e=o(1),i=function(t,n){if(e(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,e){try{(e=o(19)(Function.call,o(16).f(Object.prototype,"__proto__").set,2))(t,[]),r=!(t instanceof Array)}catch(t){r=!0}return function(t,n){return i(t,n),r?t.__proto__=n:e(t,n),t}}({},!1):void 0),check:i}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,r){var i=r(4),u=r(72).set;t.exports=function(t,n,r){var e,o=n.constructor;return o!==r&&"function"==typeof o&&(e=o.prototype)!==r.prototype&&i(e)&&u&&u(t,e),t}},function(t,n,r){var o=r(24),i=r(23);t.exports=function(t){var n=String(i(this)),r="",e=o(t);if(e<0||e==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(n+=n))1&e&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||22025.465794806718=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n,r){var e,o,i,u=r(19),a=r(100),c=r(71),f=r(67),l=r(2),s=l.process,h=l.setImmediate,p=l.clearImmediate,v=l.MessageChannel,d=l.Dispatch,g=0,y={},_="onreadystatechange",m=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},b=function(t){m.call(t.data)};h&&p||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return y[++g]=function(){a("function"==typeof t?t:Function(t),n)},e(g),g},p=function(t){delete y[t]},"process"==r(20)(s)?e=function(t){s.nextTick(u(m,t,1))}:d&&d.now?e=function(t){d.now(u(m,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=b,e=u(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(e=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):e=_ in f("script")?function(t){c.appendChild(f("script"))[_]=function(){c.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){var a=r(2),c=r(89).set,f=a.MutationObserver||a.WebKitMutationObserver,l=a.process,s=a.Promise,h="process"==r(20)(l);t.exports=function(){var r,e,o,t=function(){var t,n;for(h&&(t=l.domain)&&t.exit();r;){n=r.fn,r=r.next;try{n()}catch(t){throw r?o():e=void 0,t}}e=void 0,t&&t.enter()};if(h)o=function(){l.nextTick(t)};else if(!f||a.navigator&&a.navigator.standalone)if(s&&s.resolve){var n=s.resolve(void 0);o=function(){n.then(t)}}else o=function(){c.call(a,t)};else{var i=!0,u=document.createTextNode("");new f(t).observe(u,{characterData:!0}),o=function(){u.data=i=!i}}return function(t){var n={fn:t,next:void 0};e&&(e.next=n),r||(r=n,o()),e=n}}},function(t,n,r){var o=r(10);function e(t){var r,e;this.promise=new t(function(t,n){if(void 0!==r||void 0!==e)throw TypeError("Bad Promise constructor");r=t,e=n}),this.resolve=o(r),this.reject=o(e)}t.exports.f=function(t){return new e(t)}},function(t,n,r){var e=r(2),o=r(6),i=r(30),u=r(61),a=r(11),c=r(41),f=r(3),l=r(39),s=r(24),h=r(8),p=r(119),v=r(37).f,d=r(7).f,g=r(87),y=r(42),_="ArrayBuffer",m="DataView",b="prototype",w="Wrong index!",x=e[_],S=e[m],O=e.Math,E=e.RangeError,k=e.Infinity,j=x,A=O.abs,$=O.pow,M=O.floor,T=O.log,P=O.LN2,I="byteLength",F="byteOffset",L=o?"_b":"buffer",R=o?"_l":I,N=o?"_o":F;function C(t,n,r){var e,o,i,u=new Array(r),a=8*r-n-1,c=(1<>1,l=23===n?$(2,-24)-$(2,-77):0,s=0,h=t<0||0===t&&1/t<0?1:0;for((t=A(t))!=t||t===k?(o=t!=t?1:0,e=c):(e=M(T(t)/P),t*(i=$(2,-e))<1&&(e--,i*=2),2<=(t+=1<=e+f?l/i:l*$(2,1-f))*i&&(e++,i/=2),c<=e+f?(o=0,e=c):1<=e+f?(o=(t*i-1)*$(2,n),e+=f):(o=t*$(2,f-1)*$(2,n),e=0));8<=n;u[s++]=255&o,o/=256,n-=8);for(e=e<>1,a=o-7,c=r-1,f=t[c--],l=127&f;for(f>>=7;0>=-a,a+=n;0>8&255]}function z(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function G(t){return C(t,52,8)}function H(t){return C(t,23,4)}function q(t,n,r){d(t[b],n,{get:function(){return this[r]}})}function V(t,n,r,e){var o=p(+r);if(o+n>t[R])throw E(w);var i=t[L]._b,u=o+t[N],a=i.slice(u,u+n);return e?a:a.reverse()}function K(t,n,r,e,o,i){var u=p(+r);if(u+n>t[R])throw E(w);for(var a=t[L]._b,c=u+t[N],f=e(+o),l=0;lQ;)(Y=Z[Q++])in x||a(x,Y,j[Y]);i||(J.constructor=x)}var X=new S(new x(2)),tt=S[b].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||c(S[b],{setInt8:function(t,n){tt.call(this,t,n<<24>>24)},setUint8:function(t,n){tt.call(this,t,n<<24>>24)}},!0)}else x=function(t){l(this,x,_);var n=p(t);this._b=g.call(new Array(n),0),this[R]=n},S=function(t,n,r){l(this,S,m),l(t,x,m);var e=t[R],o=s(n);if(o<0||e>24},getUint8:function(t){return V(this,1,t)[0]},getInt16:function(t){var n=V(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=V(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return B(V(this,4,t,arguments[1]))},getUint32:function(t){return B(V(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return D(V(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return D(V(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){K(this,1,t,W,n)},setUint8:function(t,n){K(this,1,t,W,n)},setInt16:function(t,n){K(this,2,t,U,n,arguments[2])},setUint16:function(t,n){K(this,2,t,U,n,arguments[2])},setInt32:function(t,n){K(this,4,t,z,n,arguments[2])},setUint32:function(t,n){K(this,4,t,z,n,arguments[2])},setFloat32:function(t,n){K(this,4,t,H,n,arguments[2])},setFloat64:function(t,n){K(this,8,t,G,n,arguments[2])}});y(x,_),y(S,m),a(S[b],u.VIEW,!0),n[_]=x,n[m]=S},function(t,n,r){t.exports=!r(6)&&!r(3)(function(){return 7!=Object.defineProperty(r(67)("div"),"a",{get:function(){return 7}}).a})},function(t,n,r){n.f=r(5)},function(t,n,r){var u=r(14),a=r(15),c=r(51)(!1),f=r(69)("IE_PROTO");t.exports=function(t,n){var r,e=a(t),o=0,i=[];for(r in e)r!=f&&u(e,r)&&i.push(r);for(;n.length>o;)u(e,r=n[o++])&&(~c(i,r)||i.push(r));return i}},function(t,n,r){var u=r(7),a=r(1),c=r(34);t.exports=r(6)?Object.defineProperties:function(t,n){a(t);for(var r,e=c(n),o=e.length,i=0;i>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(2).parseFloat,o=r(43).trim;t.exports=1/e(r(73)+"-0")!=-1/0?function(t){var n=o(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(20);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(4),o=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&o(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){var i=r(76),e=Math.pow,u=e(2,-52),a=e(2,-23),c=e(2,127)*(2-a),f=e(2,-126);t.exports=Math.fround||function(t){var n,r,e=Math.abs(t),o=i(t);return ec&&(f=f.slice(0,c)),e?f+o:o+f}},function(t,n,r){var c=r(34),f=r(15),l=r(47).f;t.exports=function(a){return function(t){for(var n,r=f(t),e=c(r),o=e.length,i=0,u=[];i").attr("action",t);if("string"==typeof n&&""!=n)try{r=_.merge(r,JSON.parse(n))}catch(t){console.error("JSON parse on sendPost failed!")}_.each(r,function(t,n){$("").attr("name",n).attr("value",t).appendTo(e)}),$("").attr("name","YII_CSRF_TOKEN").attr("value",LS.data.csrfToken).appendTo(e),e.appendTo("body"),e.submit()},addHiddenElement:function(t,n,r){$('').attr("name",n).attr("value",r).appendTo($(t))},fixAccordionPosition:function(){$("#accordion").on("shown.bs.collapse",".panel-collapse.collapse",function(t){t.target==this&&($("#accordion").find(".panel-collapse.collapse").not("#"+$(this).attr("id")).collapse("hide"),setTimeout(function(){$("html, body").animate({scrollTop:$(this).closest(".panel.panel-default").offset().top-20},500)},500))})}},i={bootstrapping:function(){$("button,input[type=submit],input[type=button],input[type=reset],.button").button(),$("button,input[type=submit],input[type=button],input[type=reset],.button").addClass("limebutton"),$(".progressbar").each(function(){var t=parseInt($(this).attr("name"));$(this).progressbar({value:t}),85 "),a="notif-container_"+this.getCount();u.addClass(n),u.css(r),i.useHtml?u.html(t):u.text(t),$("#notif-container").clone().attr("id",a).css({display:"none",top:8*this.getCount()+"%",position:"fixed",left:"15%",width:"70%","z-index":3500}).appendTo($("#notif-container").parent()).html(u),$("#"+a)[i.inAnimation](i.animationTime,function(){var t=function(){$("#"+a)[i.outAnimation](i.animationTime,function(){$("#"+a).remove(),o.decrement()})};$(o).on("click",t),i.timeout&&setTimeout(t,i.timeout)})}}]),t}();window.LS.LsGlobalNotifier=window.LS.LsGlobalNotifier||new e,n.default={notifyFader:function(t,n,r,e){window.LS.LsGlobalNotifier.create(t,n,r,e)}}},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),r.d(n,"ajax",function(){return u}),r.d(n,"onSuccess",function(){return i});var e=r(127),o=r(128),i=function(t){return""==t?(console.error("No response from server"),o.default.create("No response from server","alert-danger"),!1):t.loggedIn?t.hasPermission?t.error?(Object(o.default)(t.error.message,"well-lg bg-danger text-center"),!1):("jsonoutputhtml"==t.outputType&&($("#"+t.target).html(t.html),e.b.doToolTip()),t.success&&Object(o.default)(t.success,"well-lg bg-primary text-center"),t.html&&($("#ajax-helper-modal .modal-content").html(t.html),$("#ajax-helper-modal").modal("show")),!0):(Object(o.default)(t.noPermissionText,"well-lg bg-danger text-center"),!1):($(".modal").modal("hide"),$("#ajax-helper-modal .modal-content").html(t.html),$("#ajax-helper-modal").modal("show"),!1)},u=function(t){var o=t.success,e=t.error;return t.success=function(t,n,r){$("#ls-loading").hide();var e=i(t);o&&e&&o(t,n,r)},t.error=function(t,n,r){$("#ls-loading").hide(),console.error("AJAX CALL FAILED -> ",{errorThrown:r,textStatus:n,jqXHR:t}),e&&e(t,n,r)},$("#ls-loading").show(),$.ajax(t)}},function(t,n,r){r(131),t.exports=r(333)},function(t,n,r){(function(t){if(r(132),r(329),r(330),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;function n(t,n,r){t[n]||Object.defineProperty(t,n,{writable:!0,configurable:!0,value:r})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&n(Array,t,Function.call.bind([][t]))})}).call(n,r(66))},function(t,n,r){r(133),r(135),r(136),r(137),r(138),r(139),r(140),r(141),r(142),r(143),r(144),r(145),r(146),r(147),r(148),r(149),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(205),r(206),r(207),r(208),r(209),r(210),r(211),r(213),r(214),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(232),r(233),r(234),r(235),r(236),r(88),r(237),r(238),r(111),r(239),r(240),r(241),r(242),r(243),r(114),r(116),r(117),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(323),r(324),r(325),r(326),r(327),r(328),t.exports=r(18)},function(t,n,r){var e=r(2),u=r(14),o=r(6),i=r(0),a=r(12),c=r(29).KEY,f=r(3),l=r(50),s=r(42),h=r(33),p=r(5),v=r(94),d=r(68),g=r(134),y=r(53),_=r(1),m=r(4),b=r(15),w=r(22),x=r(32),S=r(36),O=r(97),E=r(16),k=r(7),j=r(34),A=E.f,$=k.f,M=O.f,T=e.Symbol,P=e.JSON,I=P&&P.stringify,F="prototype",L=p("_hidden"),R=p("toPrimitive"),N={}.propertyIsEnumerable,C=l("symbol-registry"),D=l("symbols"),B=l("op-symbols"),W=Object[F],U="function"==typeof T,z=e.QObject,G=!z||!z[F]||!z[F].findChild,H=o&&f(function(){return 7!=S($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=A(W,n);e&&delete W[n],$(t,n,r),e&&t!==W&&$(W,n,e)}:$,q=function(t){var n=D[t]=S(T[F]);return n._k=t,n},V=U&&"symbol"==_typeof(T.iterator)?function(t){return"symbol"==(void 0===t?"undefined":_typeof(t))}:function(t){return t instanceof T},K=function(t,n,r){return t===W&&K(B,n,r),_(t),n=w(n,!0),_(r),u(D,n)?(r.enumerable?(u(t,L)&&t[L][n]&&(t[L][n]=!1),r=S(r,{enumerable:x(0,!1)})):(u(t,L)||$(t,L,x(1,{})),t[L][n]=!0),H(t,n,r)):$(t,n,r)},Y=function(t,n){_(t);for(var r,e=g(n=b(n)),o=0,i=e.length;oo;)u(D,n=r[o++])||n==L||n==c||e.push(n);return e},X=function(t){for(var n,r=t===W,e=M(r?B:b(t)),o=[],i=0;e.length>i;)!u(D,n=e[i++])||r&&!u(W,n)||o.push(D[n]);return o};U||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var r=h(0nt;)p(tt[nt++]);for(var rt=j(p.store),et=0;rt.length>et;)d(rt[et++]);i(i.S+i.F*!U,"Symbol",{for:function(t){return u(C,t+="")?C[t]:C[t]=T(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var n in C)if(C[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),i(i.S+i.F*!U,"Object",{create:function(t,n){return void 0===n?S(t):Y(S(t),n)},defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:X}),P&&i(i.S+i.F*(!U||f(function(){var t=T();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var n,r,e=[t],o=1;arguments.length>o;)e.push(arguments[o++]);if(r=n=e[1],(m(n)||void 0!==t)&&!V(t))return y(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!V(n))return n}),e[1]=n,I.apply(P,e)}}),T[F][R]||r(11)(T[F],R,T[F].valueOf),s(T,"Symbol"),s(Math,"Math",!0),s(e.JSON,"JSON",!0)},function(t,n,r){var a=r(34),c=r(52),f=r(47);t.exports=function(t){var n=a(t),r=c.f;if(r)for(var e,o=r(t),i=f.f,u=0;o.length>u;)i.call(t,e=o[u++])&&n.push(e);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(36)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(6),"Object",{defineProperty:r(7).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(6),"Object",{defineProperties:r(96)})},function(t,n,r){var e=r(15),o=r(16).f;r(25)("getOwnPropertyDescriptor",function(){return function(t,n){return o(e(t),n)}})},function(t,n,r){var e=r(9),o=r(17);r(25)("getPrototypeOf",function(){return function(t){return o(e(t))}})},function(t,n,r){var e=r(9),o=r(34);r(25)("keys",function(){return function(t){return o(e(t))}})},function(t,n,r){r(25)("getOwnPropertyNames",function(){return r(97).f})},function(t,n,r){var e=r(4),o=r(29).onFreeze;r(25)("freeze",function(n){return function(t){return n&&e(t)?n(o(t)):t}})},function(t,n,r){var e=r(4),o=r(29).onFreeze;r(25)("seal",function(n){return function(t){return n&&e(t)?n(o(t)):t}})},function(t,n,r){var e=r(4),o=r(29).onFreeze;r(25)("preventExtensions",function(n){return function(t){return n&&e(t)?n(o(t)):t}})},function(t,n,r){var e=r(4);r(25)("isFrozen",function(n){return function(t){return!e(t)||!!n&&n(t)}})},function(t,n,r){var e=r(4);r(25)("isSealed",function(n){return function(t){return!e(t)||!!n&&n(t)}})},function(t,n,r){var e=r(4);r(25)("isExtensible",function(n){return function(t){return!!e(t)&&(!n||n(t))}})},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(98)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(150)})},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(72).set})},function(t,n,r){var e=r(48),o={};o[r(5)("toStringTag")]="z",o+""!="[object z]"&&r(12)(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(99)})},function(t,n,r){var e=r(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||r(6)&&e(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,n,r){var e=r(4),o=r(17),i=r(5)("hasInstance"),u=Function.prototype;i in u||r(7).f(u,i,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(0),o=r(101);e(e.G+e.F*(parseInt!=o),{parseInt:o})},function(t,n,r){var e=r(0),o=r(102);e(e.G+e.F*(parseFloat!=o),{parseFloat:o})},function(t,n,r){var e=r(2),o=r(14),i=r(20),u=r(74),l=r(22),a=r(3),c=r(37).f,f=r(16).f,s=r(7).f,h=r(43).trim,p="Number",v=e[p],d=v,g=v.prototype,y=i(r(36)(g))==p,_="trim"in String.prototype,m=function(t){var n=l(t,!1);if("string"==typeof n&&2x;x++)o(d,b=w[x])&&!o(v,b)&&s(v,b,f(d,b));(v.prototype=g).constructor=v,r(12)(e,p,v)}},function(t,n,r){var e=r(0),f=r(24),l=r(103),s=r(75),o=1..toFixed,i=Math.floor,u=[0,0,0,0,0,0],h="Number.toFixed: incorrect invocation!",p=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*u[r],u[r]=e%1e7,e=i(e/1e7)},v=function(t){for(var n=6,r=0;0<=--n;)r+=u[n],u[n]=i(r/t),r=r%t*1e7},d=function(){for(var t=6,n="";0<=--t;)if(""!==n||0===t||0!==u[t]){var r=String(u[t]);n=""===n?r:n+s.call("0",7-r.length)+r}return n},g=function t(n,r,e){return 0===r?e:r%2==1?t(n,r-1,e*n):t(n*n,r/2,e)};e(e.P+e.F*(!!o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(3)(function(){o.call({})})),"Number",{toFixed:function(t){var n,r,e,o,i=l(this,h),u=f(t),a="",c="0";if(u<0||20>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),o=Math.exp;e(e.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},function(t,n,r){var e=r(0),o=r(77);e(e.S+e.F*(o!=Math.expm1),"Math",{expm1:o})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(106)})},function(t,n,r){var e=r(0),c=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,i=0,u=arguments.length,a=0;i>>16)*i+o*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(105)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(76)})},function(t,n,r){var e=r(0),o=r(77),i=Math.exp;e(e.S+e.F*r(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(o(t)-o(-t))/2:(i(t-1)-i(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),o=r(77),i=Math.exp;e(e.S,"Math",{tanh:function(t){var n=o(t=+t),r=o(-t);return n==1/0?1:r==1/0?-1:(n-r)/(i(t)+i(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(0>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),u=r(15),a=r(8);e(e.S,"String",{raw:function(t){for(var n=u(t.raw),r=a(n.length),e=arguments.length,o=[],i=0;i=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},function(t,n,r){var e=r(0),o=r(78)(!1);e(e.P,"String",{codePointAt:function(t){return o(this,t)}})},function(t,n,r){var e=r(0),u=r(8),a=r(81),c="endsWith",f=""[c];e(e.P+e.F*r(82)(c),"String",{endsWith:function(t){var n=a(this,t,c),r=1y;)d(g[y++]);(s.constructor=f).prototype=s,r(12)(e,"RegExp",f)}r(38)("RegExp")},function(t,n,r){r(111);var e=r(1),o=r(56),i=r(6),u="toString",a=/./[u],c=function(t){r(12)(RegExp.prototype,u,t,!0)};r(3)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):a.name!=u&&c(function(){return a.call(this)})},function(t,n,r){r(57)("match",1,function(e,o,t){return[function(t){var n=e(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n):new RegExp(t)[o](String(n))},t]})},function(t,n,r){r(57)("replace",2,function(o,i,u){return[function(t,n){var r=o(this),e=null==t?void 0:t[i];return void 0!==e?e.call(t,r,n):u.call(String(r),t,n)},u]})},function(t,n,r){r(57)("search",1,function(e,o,t){return[function(t){var n=e(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n):new RegExp(t)[o](String(n))},t]})},function(t,n,r){r(57)("split",2,function(o,i,u){var p=r(54),v=u,d=[].push,t="split",g="length";if("c"=="abbc"[t](/(b)*/)[1]||4!="test"[t](/(?:)/,-1)[g]||2!="ab"[t](/(?:ab)*/)[g]||4!="."[t](/(.?)(.?)/)[g]||1<"."[t](/()()/)[g]||""[t](/.?/)[g]){var y=void 0===/()??/.exec("")[1];u=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!p(t))return v.call(r,t,n);var e,o,i,u,a,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,s=void 0===n?4294967295:n>>>0,h=new RegExp(t.source,f+"g");for(y||(e=new RegExp("^"+h.source+"$(?!\\s)",f));(o=h.exec(r))&&!(l<(i=o.index+o[0][g])&&(c.push(r.slice(l,o.index)),!y&&1=s));)h.lastIndex===o.index&&h.lastIndex++;return l===r[g]?!u&&h.test("")||c.push(""):c.push(r.slice(l)),c[g]>s?c.slice(0,s):c}}else"0"[t](void 0,0)[g]&&(u=function(t,n){return void 0===t&&0===n?[]:v.call(this,t,n)});return[function(t,n){var r=o(this),e=null==t?void 0:t[i];return void 0!==e?e.call(t,r,n):u.call(String(r),t,n)},u]})},function(t,n,r){var e,o,i,u,a=r(30),c=r(2),f=r(19),l=r(48),s=r(0),h=r(4),p=r(10),v=r(39),d=r(40),g=r(58),y=r(89).set,_=r(90)(),m=r(91),b=r(112),w=r(59),x=r(113),S="Promise",O=c.TypeError,E=c.process,k=E&&E.versions,j=k&&k.v8||"",A=c[S],$="process"==l(E),M=function(){},T=o=m.f,P=!!function(){try{var t=A.resolve(1),n=(t.constructor={})[r(5)("species")]=function(t){t(M,M)};return($||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof n&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},F=function(l,r){if(!l._n){l._n=!0;var e=l._c;_(function(){for(var c=l._v,f=1==l._s,t=0,n=function(t){var n,r,e,o=f?t.ok:t.fail,i=t.resolve,u=t.reject,a=t.domain;try{o?(f||(2==l._h&&N(l),l._h=1),!0===o?n=c:(a&&a.enter(),n=o(c),a&&(a.exit(),e=!0)),n===t.promise?u(O("Promise-chain cycle")):(r=I(n))?r.call(n,i,u):i(n)):u(c)}catch(t){a&&!e&&a.exit(),u(t)}};e.length>t;)n(e[t++]);l._c=[],l._n=!1,r&&!l._h&&L(l)})}},L=function(i){y.call(c,function(){var t,n,r,e=i._v,o=R(i);if(o&&(t=b(function(){$?E.emit("unhandledRejection",e,i):(n=c.onunhandledrejection)?n({promise:i,reason:e}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",e)}),i._h=$||R(i)?2:1),i._a=void 0,o&&t.e)throw t.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(n){y.call(c,function(){var t;$?E.emit("rejectionHandled",n):(t=c.onrejectionhandled)&&t({promise:n,reason:n._v})})},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),F(n,!0))},D=function t(r){var e,o=this;if(!o._d){o._d=!0,o=o._w||o;try{if(o===r)throw O("Promise can't be resolved itself");(e=I(r))?_(function(){var n={_w:o,_d:!1};try{e.call(r,f(t,n,1),f(C,n,1))}catch(t){C.call(n,t)}}):(o._v=r,o._s=1,F(o,!1))}catch(t){C.call({_w:o,_d:!1},t)}}};P||(A=function(t){v(this,A,S,"_h"),p(t),e.call(this);try{t(f(D,this,1),f(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(41)(A.prototype,{then:function(t,n){var r=T(g(this,A));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=$?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&F(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new e;this.promise=t,this.resolve=f(D,t,1),this.reject=f(C,t,1)},m.f=T=function(t){return t===A||t===u?new i(t):o(t)}),s(s.G+s.W+s.F*!P,{Promise:A}),r(42)(A,S),r(38)(S),u=r(18)[S],s(s.S+s.F*!P,S,{reject:function(t){var n=T(this);return(0,n.reject)(t),n.promise}}),s(s.S+s.F*(a||!P),S,{resolve:function(t){return x(a&&this===u?A:this,t)}}),s(s.S+s.F*!(P&&r(55)(function(t){A.all(t).catch(M)})),S,{all:function(t){var u=this,n=T(u),a=n.resolve,c=n.reject,r=b(function(){var e=[],o=0,i=1;d(t,!1,function(t){var n=o++,r=!1;e.push(void 0),i++,u.resolve(t).then(function(t){r||(r=!0,e[n]=t,--i||a(e))},c)}),--i||a(e)});return r.e&&c(r.v),n.promise},race:function(t){var n=this,r=T(n),e=r.reject,o=b(function(){d(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return o.e&&e(o.v),r.promise}})},function(t,n,r){var e=r(118),o=r(45);r(60)("WeakSet",function(t){return function(){return t(this,0=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new i(t)}})},function(t,n,r){var u=r(16),a=r(17),c=r(14),e=r(0),f=r(4),l=r(1);e(e.S,"Reflect",{get:function t(n,r){var e,o,i=arguments.length<3?n:arguments[2];return l(n)===i?n[r]:(e=u.f(n,r))?c(e,"value")?e.value:void 0!==e.get?e.get.call(i):void 0:f(o=a(n))?t(o,r,i):void 0}})},function(t,n,r){var e=r(16),o=r(0),i=r(1);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(i(t),n)}})},function(t,n,r){var e=r(0),o=r(17),i=r(1);e(e.S,"Reflect",{getPrototypeOf:function(t){return o(i(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),o=r(1),i=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return o(t),!i||i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(120)})},function(t,n,r){var e=r(0),o=r(1),i=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){o(t);try{return i&&i(t),!0}catch(t){return!1}}})},function(t,n,r){var c=r(7),f=r(16),l=r(17),s=r(14),e=r(0),h=r(32),p=r(1),v=r(4);e(e.S,"Reflect",{set:function t(n,r,e){var o,i,u=arguments.length<4?n:arguments[3],a=f.f(p(n),r);if(!a){if(v(i=l(n)))return t(i,r,e,u);a=h(0)}if(s(a,"value")){if(!1===a.writable||!v(u))return!1;if(o=f.f(u,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=e,c.f(u,r,o)}else c.f(u,r,h(0,e));return!0}return void 0!==a.set&&(a.set.call(u,e),!0)}})},function(t,n,r){var e=r(0),o=r(72);o&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){o.check(t,n);try{return o.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){var e=r(0),o=r(51)(!0);e(e.P,"Array",{includes:function(t){return o(this,t,1a;)void 0!==(r=o(e,n=i[a++]))&&s(u,n,r);return u}})},function(t,n,r){var e=r(0),o=r(123)(!1);e(e.S,"Object",{values:function(t){return o(t)}})},function(t,n,r){var e=r(0),o=r(123)(!0);e(e.S,"Object",{entries:function(t){return o(t)}})},function(t,n,r){var e=r(0),o=r(9),i=r(10),u=r(7);r(6)&&e(e.P+r(62),"Object",{__defineGetter__:function(t,n){u.f(o(this),t,{get:i(n),enumerable:!0,configurable:!0})}})},function(t,n,r){var e=r(0),o=r(9),i=r(10),u=r(7);r(6)&&e(e.P+r(62),"Object",{__defineSetter__:function(t,n){u.f(o(this),t,{set:i(n),enumerable:!0,configurable:!0})}})},function(t,n,r){var e=r(0),o=r(9),i=r(22),u=r(17),a=r(16).f;r(6)&&e(e.P+r(62),"Object",{__lookupGetter__:function(t){var n,r=o(this),e=i(t,!0);do{if(n=a(r,e))return n.get}while(r=u(r))}})},function(t,n,r){var e=r(0),o=r(9),i=r(22),u=r(17),a=r(16).f;r(6)&&e(e.P+r(62),"Object",{__lookupSetter__:function(t){var n,r=o(this),e=i(t,!0);do{if(n=a(r,e))return n.set}while(r=u(r))}})},function(t,n,r){var e=r(0);e(e.P+e.R,"Map",{toJSON:r(124)("Map")})},function(t,n,r){var e=r(0);e(e.P+e.R,"Set",{toJSON:r(124)("Set")})},function(t,n,r){r(63)("Map")},function(t,n,r){r(63)("Set")},function(t,n,r){r(63)("WeakMap")},function(t,n,r){r(63)("WeakSet")},function(t,n,r){r(64)("Map")},function(t,n,r){r(64)("Set")},function(t,n,r){r(64)("WeakMap")},function(t,n,r){r(64)("WeakSet")},function(t,n,r){var e=r(0);e(e.G,{global:r(2)})},function(t,n,r){var e=r(0);e(e.S,"System",{global:r(2)})},function(t,n,r){var e=r(0),o=r(20);e(e.S,"Error",{isError:function(t){return"Error"===o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clamp:function(t,n,r){return Math.min(r,Math.max(n,t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,n,r){var e=r(0),o=180/Math.PI;e(e.S,"Math",{degrees:function(t){return t*o}})},function(t,n,r){var e=r(0),i=r(126),u=r(106);e(e.S,"Math",{fscale:function(t,n,r,e,o){return u(i(t,n,r,e,o))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{iaddh:function(t,n,r,e){var o=t>>>0,i=r>>>0;return(n>>>0)+(e>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}})},function(t,n,r){var e=r(0);e(e.S,"Math",{isubh:function(t,n,r,e){var o=t>>>0,i=r>>>0;return(n>>>0)-(e>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}})},function(t,n,r){var e=r(0);e(e.S,"Math",{imulh:function(t,n){var r=+t,e=+n,o=65535&r,i=65535&e,u=r>>16,a=e>>16,c=(u*i>>>0)+(o*i>>>16);return u*a+(c>>16)+((o*a>>>0)+(65535&c)>>16)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,n,r){var e=r(0),o=Math.PI/180;e(e.S,"Math",{radians:function(t){return t*o}})},function(t,n,r){var e=r(0);e(e.S,"Math",{scale:r(126)})},function(t,n,r){var e=r(0);e(e.S,"Math",{umulh:function(t,n){var r=+t,e=+n,o=65535&r,i=65535&e,u=r>>>16,a=e>>>16,c=(u*i>>>0)+(o*i>>>16);return u*a+(c>>>16)+((o*a>>>0)+(65535&c)>>>16)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:0')),i=$(''),u=$(''),a=$(''),c=$(''),f=$(''),l=$(''),s=$(n.closeIcon),h=$(n.closeButton),p=$(n.saveButton),v=null,r=function(){var r=this;$.each(e,function(t,n){e[t]=r.data(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||e[t]})},d=function(){v.on("show.bs.modal",function(){g();try{e.fnOnShow}catch(t){}}),v.on("shown.bs.modal",e.fnOnShown),v.on("hide.bs.modal",e.fnOnHide),v.on("hidden.bs.modal",function(){!0===e.removeOnClose&&v.find(".modal-body").html(" ");try{e.fnOnHidden}catch(t){}}),v.on("loaded.ls.remotemodal",e.fnOnLoaded)},g=function(){var n=v.find(".modal-body");$.ajax({url:e.remoteLink,method:"GET",success:function(t){n.html(t),v.trigger("loaded.ls.remotemodal")}})},y=function(){var t=u.clone();if(t.append(f.clone()),!0===e.header){var n=a.clone();c.text(e.modalTitle),n.append(s.clone()),n.append(c),t.prepend(n)}if(!0===e.footer){var r=l.clone();r.append(h.clone()),!0===e.saveButton&&r.append(p.clone()),t.append(r)}(v=o.clone()).append(i.clone().append(t))},_=function(){this.on("click.remotemodal",function(){v.modal("toggle")})};r.call(this),y(),v.appendTo($(e.parentElement)),_.call(this),d.call(this)}})},function(t,n,r){n.a=function(){0<$("#advancedquestionsettingswrapper").length&&(window.questionFunctions=window.questionFunctions||new QuestionFunctions||null,window.questionFunctions.updatequestionattributes()),$("#showadvancedattributes").click(function(){$("#showadvancedattributes").hide(),$("#hideadvancedattributes").show(),$("#advancedquestionsettingswrapper").animate({height:"toggle",opacity:"toggle"})})}},function(t,n,r){r.d(n,"a",function(){return i});var e=r(65),o=r.n(e),i={removechars:function(t){return t.replace(/[-a-zA-Z_]/g,"")},getUnique:function(t){return o.a.uniq(t)}}},function(t,n,r){r.d(n,"a",function(){return e});var e=function(){$(document).on("click",".has-link",function(){var t=$(this).find("a").attr("href");window.location.href=t})}},function(module,__webpack_exports__,__webpack_require__){var __WEBPACK_IMPORTED_MODULE_0_lodash__=__webpack_require__(65),__WEBPACK_IMPORTED_MODULE_0_lodash___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash__),ConfirmationModal=function ConfirmationModal(e){var _this=this,optionsDefault={onclick:null,href:null,message:null,keepopen:null,postDatas:null,gridid:null,"ajax-url":null},_parseOptions=function(r){return __WEBPACK_IMPORTED_MODULE_0_lodash___default.a.each(optionsDefault,function(t,n){optionsDefault[n]=$(_this).data(n)||$(r.relatedTarget).data(n)||optionsDefault[n]})},_basicLink=function(){$(_this).find(".btn-ok").attr("href",options.href)},_onClickFunction=function _onClickFunction(){var onclick_fn=eval(options.onclick);if("function"==typeof onclick_fn)return $(_this).find(".btn-ok").off("click"),void $(_this).find(".btn-ok").on("click",function(t){options.keepopen||$("#confirmation-modal").modal("hide"),onclick_fn()});console.error("Confirmation modal: onclick is not a function. Wrap data-onclick content in (function() { ... }).")},_ajaxHandler=function(){$(_this).find(".btn-ok").on("click",function(t){$.ajax({type:"POST",url:options["ajax-url"],data:options.postDatas,success:function(t,n){$.fn.yiiGridView.update(options.gridid),$("#confirmation-modal").modal("hide")},error:function(t,n){$("#confirmation-modal .modal-body-text").append(t.responseText)}})})},_setTarget=function(){options.href?_basicLink():options.onclick?_onClickFunction():options["ajax-url"]?_ajaxHandler():console.error("Confirmation modal: Found neither data-href or data-onclick, nor ajax data.")},options=_parseOptions(e);$(this).find(".modal-body-text").html(options.message),_setTarget()},loadMethods=function(){$("#confirmation-modal").on("show.bs.modal",function(t){ConfirmationModal.call(this,t)})};__webpack_exports__.a=loadMethods},function(t,n,r){var e,o,i=r(65),u=r.n(i),a=r(49),c=(e=$("").attr("type","hidden").attr("name","close-after-save"),o=function(t){var n=void 0;if((n=1==$(t).attr("data-use-form-id")?(formId="#"+$(t).attr("data-form-to-save"),[$(formId)]):$("#pjax-content").find("form")).length<1)throw"No form Found this can't be!";return n},function(){u.a.each({_checkSaveButton:{check:"#save-button",run:function(t){t.preventDefault();var n=o(this);for(var r in CKEDITOR.instances)CKEDITOR.instances[r].updateElement();n.find('[type="submit"]').first().trigger("click")},on:"click"},_checkSaveFormButton:{check:"#save-form-button",run:function(t){t.preventDefault();var n="#"+$(this).attr("data-form-id");return $(n).find('[type="submit"]').trigger("click"),!1},on:"click"},_checkSaveAndNewButton:{check:"#save-and-new-button",run:function(t){t.preventDefault();var n=o(this);for(var r in n.append(''),CKEDITOR.instances)CKEDITOR.instances[r].updateElement();n.find('[type="submit"]').first().trigger("click")},on:"click"},_checkSaveAndCloseButton:{check:"#save-and-close-button",run:function(t){t.preventDefault();var n=o(this);e.val("true"),n.append(e),n.find('[type="submit"]').first().trigger("click")},on:"click"},_checkSaveAndCloseFormButton:{check:"#save-and-close-form-button",run:function(t){t.preventDefault();var n="#"+$(this).attr("data-form-id"),r=$(n);return $('').attr({name:"saveandclose",value:"1"}).appendTo(r),r.find('[type="submit"]').trigger("click"),!1},on:"click"},_checkSaveAndNewQuestionButton:{check:"#save-and-new-question-button",run:function(t){t.preventDefault();var n=o(this);for(var r in n.append(''),CKEDITOR.instances)CKEDITOR.instances[r].updateElement();n.find('[type="submit"]').first().trigger("click")},on:"click"},_checkOpenPreview:{check:".open-preview",run:function(t){var n=$(this).attr("aria-data-url");$("#frame-question-preview").attr("src",n),$("#question-preview").modal("show")},on:"click"}},function(t){var n=t.check;$(document).off(t.on,n),a.a.log("saveBindings",t,$(n)),0<$(n).length&&($(document).on(t.on,n,t.run),a.a.log($(n),"on",t.on,"run",t.run))})});n.a=c},function(module,__webpack_exports__,__webpack_require__){__webpack_exports__.a=confirmDeletemodal;var ConfirmDeleteModal=function ConfirmDeleteModal(options){var $item=$(this);options.fnOnShown=options.fnOnShown||function(){},options.fnOnHide=options.fnOnHide||function(){},options.removeOnClose=options.removeOnClose||function(){},options.fnOnHidden=options.fnOnHidden||function(){},options.fnOnLoaded=options.fnOnLoaded||function(){};var postUrl=options.postUrl||$item.attr("href"),confirmText=options.confirmText||$item.data("text")||"",confirmTitle=options.confirmTitle||$item.attr("title")||"",postObject=options.postObject||$item.data("post"),showTextArea=options.showTextArea||$item.data("show-text-area")||"",useAjax=options.useAjax||$item.data("use-ajax")||"",keepopen=options.keepopen||$item.data("keepopen")||"",gridReload=options.gridReload||$item.data("grid-reload")||"",gridid=options.gridid||$item.data("grid-id")||"",buttonNo=options.buttonNo||$item.data("button-no")||'',buttonYes=options.buttonYes||$item.data("button-yes")||'',parentElement=options.parentElement||$item.data("parent-element")||"body",closeIconHTML='',closeButtonHTML='",confirmButtonHTML='",outerBlock=$(''),innerBlock=$(''),contentBlock=$(''),headerBlock=$(''),headlineBlock=$(''),bodyBlock=$(''),footerBlock=$(''),closeIcon=$(closeIconHTML),closeButton=$(closeButtonHTML),confirmButton=$(confirmButtonHTML),modalObject=null,combineModal=function(){var t=contentBlock.clone();if(t.append(bodyBlock.clone()),""!==confirmTitle){var n=headerBlock.clone();headlineBlock.text(confirmTitle),n.append(closeIcon.clone()),n.append(headlineBlock),t.prepend(n)}var r=footerBlock.clone();r.append(closeButton.clone()),r.append(confirmButton.clone()),t.append(r),(modalObject=outerBlock.clone()).append(innerBlock.clone().append(t))},addForm=function(){var t=$('
');for(var n in postObject){var r="hidden",e=postObject[n],o="";"object"==_typeof(postObject[n])&&(r=postObject[n].type,e=postObject[n].value,o=postObject[n].class),t.append('")}t.append(''),modalObject.find(".modal-body").append(t),modalObject.find(".modal-body").append("

"+confirmText+"

"),""!==showTextArea&&modalObject.find("form").append('')},runAjaxRequest=function runAjaxRequest(){return LS.ajax({url:postUrl,type:"POST",data:modalObject.find("form").serialize(),success:function success(html,statut){if("true"!=keepopen?modalObject.modal("hide"):modalObject.find(".modal-body").empty().html(html),gridReload&&($("#"+gridid).yiiGridView("update"),setTimeout(function(){$(document).trigger("actions-updated")},500)),html.ajaxHelper)LS.AjaxHelper.onSuccess(html);else if(onSuccess){var func=eval(onSuccess);func(html)}else;},error:function(t,n){modalObject.find(".modal-body").empty().html(t.responseText),console.ls.log(t)}})},bindEvents=function(){modalObject.on("show.bs.modal",function(){addForm();try{options.fnOnShow}catch(t){}}),modalObject.on("shown.bs.modal",function(){modalObject.find(".selector--button-confirm").on("click",function(t){t.preventDefault(),useAjax?runAjaxRequest():(modalObject.find("form").trigger("submit"),modalObject.modal("close"))}),options.fnOnShown.call(this)}),modalObject.on("hide.bs.modal",options.fnOnHide),modalObject.on("hidden.bs.modal",function(){!0===options.removeOnClose&&modalObject.find(".modal-body").html(" ");try{options.fnOnHidden}catch(t){}}),modalObject.on("loaded.ls.remotemodal",options.fnOnLoaded)},bindToElement=function(){$item.on("click.confirmmodal",function(){modalObject.modal("toggle")})},runPrepare=function(){"yes"!=$item.data("confirm-modal-appended")&&(combineModal(),modalObject.appendTo($(parentElement)),bindToElement.call(this),bindEvents.call(this),$item.data("confirm-modal-appended","yes"))};runPrepare()};function confirmDeletemodal(){$(document).off("click.confirmModalSelector","a.selector--ConfirmModal"),$(document).on("click.confirmModalSelector","a.selector--ConfirmModal",function(t){t.preventDefault(),$(this).confirmModal({}),$(this).trigger("click.confirmmodal")})}jQuery.fn.extend({confirmModal:ConfirmDeleteModal})},function(t,n,r){n.a=function(){$(".panel-clickable").on("click",function(t){var n=$(this);""!=n.data("url")&&("_blank"===n.data("target")?window.open(n.data("url")):window.location.href=n.data("url"))})}},function(t,n,r){n.a=function(){e.a.log("Triggering panel animation"),$(".panel").each(function(t){$(this).delay(200*t++).animate({opacity:1,top:"0px"},200)}),$("#last_question").length&&($(".rotateHidden").hide(),window.setTimeout(function t(){var n=$(".rotateShown");var r=$(".rotateHidden");n.hide("slide",{direction:"left",easing:"easeInOutQuint"},500,function(){r.show("slide",{direction:"right",easing:"easeInOutQuint"},1e3)});n.removeClass("rotateShown").addClass("rotateHidden");r.removeClass("rotateHidden").addClass("rotateShown");window.setTimeout(t,5e3)},2e3))};var e=r(49)},function(t,n,r){r(129);var u=r(49),e=new function(){var o=function(t){return u.a.log("updateNotificationWidget"),$.ajax({url:t,method:"GET",success:function(t){$("#notification-li").replaceWith(t),n(),e()}})},i=function(e,t){u.a.log("showNotificationModal"),$.ajax({url:t,method:"GET"}).done(function(t){var r=t.result;$("#admin-notification-modal .modal-title").html(r.title),$("#admin-notification-modal .modal-body-text").html(r.message),$("#admin-notification-modal .modal-content").addClass("panel-"+r.display_class),$("#admin-notification-modal .notification-date").html(r.created.substr(0,16)),$("#admin-notification-modal").modal(),$("#admin-notification-modal").off("hidden.bs.modal"),$("#admin-notification-modal").on("hidden.bs.modal",function(t){var n;n=e,u.a.log("notificationIsRead"),$.ajax({url:$(n).data("read-url"),method:"GET"}).done(function(t){o($(n).data("update-url"))}),$("#admin-notification-modal .modal-content").removeClass("panel-"+r.display_class)})})},n=function(){u.a.group("initNotification"),$(".admin-notification-link").each(function(t,n){u.a.log("Number of Notification: ",t);var r=$(n).data("url"),e=$(n).data("importance"),o=$(n).data("status");if(3==e&&"new"==o)return i(n,r),u.a.log("stoploop"),!1;$(n).off("click.showNotification"),$(n).on("click.showNotification",function(){i(n,r)})}),u.a.groupEnd("initNotification")},r=function(t,n){o(t).then(function(){!1!==n&&$("#notification-li").addClass("open")}),$("#notification-li").off("click.showNotification")},e=function(){u.a.log("styleNotificationMenu");var t=window.innerHeight-70;$("#notification-outer-ul").css("height",t+"px"),$("#notification-inner-ul").css("height",t-60+"px"),$("#notification-inner-li").css("height",t-60+"px")};return{initNotification:n,updateNotificationWidget:r,styleNotificationMenu:e,deleteAllNotifications:function(t,n){return $.ajax({url:t,method:"GET",success:function(t){u.a.log("response",t)}}).then(function(){r(n)})}}};n.a=e}]); \ No newline at end of file diff --git a/assets/packages/adminbasics/src/parts/globalMethods.js b/assets/packages/adminbasics/src/parts/globalMethods.js index d5fd684997d..1917829284c 100644 --- a/assets/packages/adminbasics/src/parts/globalMethods.js +++ b/assets/packages/adminbasics/src/parts/globalMethods.js @@ -108,8 +108,9 @@ const globalWindowMethods = { $('').attr('name', name).attr('value', value).appendTo($(form)); }, fixAccordionPosition : () => { - $('#accordion').on('shown.bs.collapse',".panel-collapse.collapse", function () { - $('#accordion').find('.collapse').not('#'+$(this).attr('id')).collapse('hide'); + $('#accordion').on('shown.bs.collapse',".panel-collapse.collapse", function (e) { + if(e.target != this) return; + $('#accordion').find('.panel-collapse.collapse').not('#'+$(this).attr('id')).collapse('hide'); setTimeout(function(){ $('html, body').animate({ scrollTop: $(this).closest('.panel.panel-default').offset().top-20 diff --git a/assets/packages/limesurvey/survey.js b/assets/packages/limesurvey/survey.js index a9fc0da5492..247af33e993 100644 --- a/assets/packages/limesurvey/survey.js +++ b/assets/packages/limesurvey/survey.js @@ -394,24 +394,4 @@ function updateMandatoryErrorClass(){ $(this).closest(".has-error").removeClass("has-error"); }); } -/** - * showStartPopups : Take all message in startPopups json array and launch an alert with text - */ -function showStartPopups() -{ - if(LSvar.showpopup && typeof(LSvar.startPopups) == 'array' && LSvar.startPopups.length){ - startPopup=LSvar.startPopups.map(function(text) { - return $("
").html(text).text(); - }); - alertSurveyDialog(startPopup.join("\n"),''); // What can be a good title here ? ANd this title must come from PHP - } -} -/** - * alertSurveyDialog : Send a warning/alert to the user - * @var string text : the text to be shown - * @var string optionnal title - */ -function alertSurveyDialog(text,title) -{ - alert(text); -} + diff --git a/assets/scripts/admin/statistics.js b/assets/scripts/admin/statistics.js index ecff147564e..0d05024881a 100644 --- a/assets/scripts/admin/statistics.js +++ b/assets/scripts/admin/statistics.js @@ -130,15 +130,20 @@ function init_chart_js_graph_with_datas($type, $qid) { var $labels = $statistics.labels var $grawdata = $statistics.grawdata var $chartDef = new Array(); + var $max = 0; $('#legend-no-percent-' + $qid).hide(); $('#legend-percent-' + $qid).show(); $('#stat-no-answer-' + $qid).show(); + $.each($labels, function($i, $label) { + $max = $max + parseInt($grawdata[$i]); + }); + $.each($labels, function ($i, $label) { $colori = (parseInt($i) + $color); $chartDef[$i] = { - value: $grawdata[$i], + value: Math.round($grawdata[$i]/$max * 100 * 100) / 100, color: "rgba(" + COLORS_FOR_SURVEY[$colori] + ",0.6)", highlight: "rgba(" + COLORS_FOR_SURVEY[$colori] + ",0.9)", label: $label, diff --git a/docs/release_notes.txt b/docs/release_notes.txt index 4c1eb509262..b926cb1d692 100644 --- a/docs/release_notes.txt +++ b/docs/release_notes.txt @@ -35,6 +35,37 @@ Thank you to everyone who helped with this new release! CHANGE LOG ------------------------------------------------------ + +Changes from 3.15.3 (build 181018) to 3.15.4 (build 181019) November 08, 2018 +-New feature : list image in Survey for Brand logo file in Theme option (Denis Chenu) +-Fixed issue #14171: Survey owner without template edit right can not upload logo (Denis Chenu) +-Fixed issue #14180: Multiple logo filename with same url in dropdown (Denis Chenu) +-Fixed issue #14227: Some token with existing reponse can send PHP Warning about seed (Denis Chenu) +-Fixed issue: HTML quotes not properly decoded in VV export file header (Carsten Schmitz) +-Fixed issue: VV import not working if datestamps are off (Carsten Schmitz) +#Updated translation: Catalan by qualitatuvic +#Updated translation: Croatian by dominikvitt +#Updated translation: Dutch (Informal) by Han +#Updated translation: Dutch by Han +#Updated translation: Finnish by jeskiv, Jmantysalo +#Updated translation: Norwegian (Bokmål) by pmonstad + +Changes from 3.15.2 (build 181107) to 3.15.3 (build 181018) November 08, 2018 +-Fixed issue #11845: Relevance Equation code is missing syntax highlighting and not recognising question variables (Dominik Vitt) +-Fixed issue #14211 : no keyboard navigation available with language changer (Denis Chenu) +-Fixed issue: Condition designer doesn't show predefined answers on first load (Dominik Vitt) +-Fixed issue: Selected survey language for browsing responses was not used in detail view or queXML PDF view (Carsten Schmitz) +-Fixed issue: Update not possible from pre 3.x versions (Carsten Schmitz) +#Updated translation: German (Informal) by c_schmitz +#Updated translation: German by c_schmitz +#Updated translation: Italian (Informal) by lfanfoni +#Updated translation: Italian by lfanfoni +#Updated translation: Japanese by nomoto +#Updated translation: Norwegian (Bokmål) by pmonstad +#Updated translation: Papiamento (Curaçao and Bonaire) by c_schmitz +#Updated translation: Romanian by cdorin + + Changes from 3.15.1 (build 181017) to 3.15.2 (build 181107) November 07, 2018 -New feature: allow to change config file location (LouisGac) diff --git a/locale/_template/limesurvey.pot b/locale/_template/limesurvey.pot index 4da6d61c2e4..7cb3a3f69b2 100644 --- a/locale/_template/limesurvey.pot +++ b/locale/_template/limesurvey.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: LimeSurvey language file\n" "Report-Msgid-Bugs-To: http://translate.limesurvey.org/\n" -"POT-Creation-Date: 2018-11-07 13:03:26+00:00\n" +"POT-Creation-Date: 2018-11-08 15:23:48+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -27,8 +27,8 @@ msgstr "" #: application/controllers/admin/dataentry.php:1497 #: application/controllers/admin/questions.php:206 #: application/controllers/admin/questions.php:229 -#: application/controllers/admin/themes.php:902 -#: application/controllers/admin/themes.php:1204 +#: application/controllers/admin/themes.php:905 +#: application/controllers/admin/themes.php:1207 #: application/controllers/survey/index.php:79 #: application/controllers/survey/index.php:313 #: application/controllers/survey/index.php:335 @@ -112,7 +112,7 @@ msgid "Version" msgstr "" #: application/controllers/InstallerController.php:138 -#: application/controllers/admin/themes.php:895 +#: application/controllers/admin/themes.php:898 #: application/views/admin/update/updater/_progress.php:11 #: application/views/installer/sidebar_view.php:13 msgid "Welcome" @@ -1032,24 +1032,24 @@ msgstr "" #: application/controllers/admin/themeoptions.php:43 #: application/controllers/admin/themeoptions.php:67 #: application/controllers/admin/themeoptions.php:94 -#: application/controllers/admin/themeoptions.php:118 -#: application/controllers/admin/themeoptions.php:150 -#: application/controllers/admin/themeoptions.php:158 -#: application/controllers/admin/themeoptions.php:221 -#: application/controllers/admin/themeoptions.php:242 -#: application/controllers/admin/themeoptions.php:272 -#: application/controllers/admin/themeoptions.php:288 -#: application/controllers/admin/themeoptions.php:303 +#: application/controllers/admin/themeoptions.php:117 +#: application/controllers/admin/themeoptions.php:149 +#: application/controllers/admin/themeoptions.php:157 +#: application/controllers/admin/themeoptions.php:220 +#: application/controllers/admin/themeoptions.php:241 +#: application/controllers/admin/themeoptions.php:271 +#: application/controllers/admin/themeoptions.php:287 +#: application/controllers/admin/themeoptions.php:302 #: application/controllers/admin/themes.php:33 #: application/controllers/admin/themes.php:73 #: application/controllers/admin/themes.php:122 -#: application/controllers/admin/themes.php:323 -#: application/controllers/admin/themes.php:382 -#: application/controllers/admin/themes.php:474 -#: application/controllers/admin/themes.php:527 -#: application/controllers/admin/themes.php:572 -#: application/controllers/admin/themes.php:623 -#: application/controllers/admin/themes.php:738 +#: application/controllers/admin/themes.php:326 +#: application/controllers/admin/themes.php:385 +#: application/controllers/admin/themes.php:477 +#: application/controllers/admin/themes.php:530 +#: application/controllers/admin/themes.php:575 +#: application/controllers/admin/themes.php:626 +#: application/controllers/admin/themes.php:741 #: application/controllers/admin/tokens.php:87 #: application/controllers/admin/tokens.php:473 #: application/controllers/admin/tokens.php:493 @@ -1136,7 +1136,7 @@ msgstr "" #: application/views/admin/token/token_bar.php:237 #: application/views/admin/usergroup/usergroupbar_view.php:55 #: application/views/survey/questions/question_help/error-tip.php:12 -#: tmp/twig_translate.php:143 tmp/twig_translate.php:171 +#: tmp/twig_translate.php:142 tmp/twig_translate.php:170 msgid "Close" msgstr "" @@ -1231,7 +1231,7 @@ msgid "Add" msgstr "" #: application/controllers/admin/assessments.php:131 -#: application/controllers/admin/themes.php:903 +#: application/controllers/admin/themes.php:906 #: application/core/LsDefaultDataSets.php:30 #: application/models/Permission.php:80 #: application/views/admin/assessments/assessments_view.php:17 @@ -1664,7 +1664,7 @@ msgstr "" #: application/controllers/admin/printablesurvey.php:935 #: application/controllers/admin/quotas.php:562 #: application/controllers/admin/tokens.php:2244 -#: application/core/Survey_Common_Action.php:1071 +#: application/core/Survey_Common_Action.php:1078 #: application/core/plugins/ExportSTATAxml/STATAxmlWriter.php:202 #: application/core/plugins/ExportSTATAxml/STATAxmlWriter.php:211 #: application/core/plugins/ExportSTATAxml/STATAxmlWriter.php:229 @@ -1801,12 +1801,12 @@ msgstr "" #: tmp/twig_translate.php:41 tmp/twig_translate.php:45 #: tmp/twig_translate.php:49 tmp/twig_translate.php:53 #: tmp/twig_translate.php:56 tmp/twig_translate.php:64 -#: tmp/twig_translate.php:71 tmp/twig_translate.php:78 -#: tmp/twig_translate.php:84 tmp/twig_translate.php:90 -#: tmp/twig_translate.php:96 tmp/twig_translate.php:102 -#: tmp/twig_translate.php:113 tmp/twig_translate.php:116 -#: tmp/twig_translate.php:120 tmp/twig_translate.php:124 -#: tmp/twig_translate.php:175 tmp/twig_translate.php:185 +#: tmp/twig_translate.php:71 tmp/twig_translate.php:77 +#: tmp/twig_translate.php:83 tmp/twig_translate.php:89 +#: tmp/twig_translate.php:95 tmp/twig_translate.php:101 +#: tmp/twig_translate.php:112 tmp/twig_translate.php:115 +#: tmp/twig_translate.php:119 tmp/twig_translate.php:123 +#: tmp/twig_translate.php:174 tmp/twig_translate.php:184 msgid "Yes" msgstr "" @@ -1824,7 +1824,7 @@ msgstr "" #: application/helpers/userstatistics_helper.php:1218 #: application/views/admin/dataentry/content_view.php:711 #: application/views/admin/export/statistics_subviews/_question.php:460 -#: tmp/twig_translate.php:187 +#: tmp/twig_translate.php:186 msgid "Uncertain" msgstr "" @@ -1840,7 +1840,7 @@ msgstr "" #: application/controllers/admin/printablesurvey.php:937 #: application/controllers/admin/quotas.php:563 #: application/controllers/admin/tokens.php:2246 -#: application/core/Survey_Common_Action.php:1069 +#: application/core/Survey_Common_Action.php:1076 #: application/core/plugins/ExportSTATAxml/STATAxmlWriter.php:233 #: application/core/plugins/ExportSTATAxml/STATAxmlWriter.php:242 #: application/extensions/admin/grid/MassiveActionsWidget/views/modals/yes-no.php:41 @@ -1971,12 +1971,12 @@ msgstr "" #: tmp/twig_translate.php:46 tmp/twig_translate.php:50 #: tmp/twig_translate.php:54 tmp/twig_translate.php:57 #: tmp/twig_translate.php:65 tmp/twig_translate.php:72 -#: tmp/twig_translate.php:79 tmp/twig_translate.php:85 -#: tmp/twig_translate.php:91 tmp/twig_translate.php:97 -#: tmp/twig_translate.php:103 tmp/twig_translate.php:114 -#: tmp/twig_translate.php:117 tmp/twig_translate.php:121 -#: tmp/twig_translate.php:125 tmp/twig_translate.php:132 -#: tmp/twig_translate.php:176 tmp/twig_translate.php:186 +#: tmp/twig_translate.php:78 tmp/twig_translate.php:84 +#: tmp/twig_translate.php:90 tmp/twig_translate.php:96 +#: tmp/twig_translate.php:102 tmp/twig_translate.php:113 +#: tmp/twig_translate.php:116 tmp/twig_translate.php:120 +#: tmp/twig_translate.php:124 tmp/twig_translate.php:131 +#: tmp/twig_translate.php:175 tmp/twig_translate.php:185 msgid "No" msgstr "" @@ -1993,7 +1993,7 @@ msgstr "" #: application/helpers/userstatistics_helper.php:1235 #: application/views/admin/dataentry/content_view.php:735 #: application/views/admin/export/statistics_subviews/_question.php:500 -#: tmp/twig_translate.php:177 +#: tmp/twig_translate.php:176 msgid "Increase" msgstr "" @@ -2010,7 +2010,7 @@ msgstr "" #: application/helpers/userstatistics_helper.php:1236 #: application/views/admin/dataentry/content_view.php:736 #: application/views/admin/export/statistics_subviews/_question.php:505 -#: tmp/twig_translate.php:178 +#: tmp/twig_translate.php:177 msgid "Same" msgstr "" @@ -2027,7 +2027,7 @@ msgstr "" #: application/helpers/userstatistics_helper.php:1237 #: application/views/admin/dataentry/content_view.php:737 #: application/views/admin/export/statistics_subviews/_question.php:510 -#: tmp/twig_translate.php:179 +#: tmp/twig_translate.php:178 msgid "Decrease" msgstr "" @@ -2071,7 +2071,7 @@ msgstr "" #: application/helpers/userstatistics_helper.php:1331 #: application/views/admin/dataentry/content_view.php:104 #: application/views/admin/export/statistics_subviews/_question.php:293 -#: tmp/twig_translate.php:184 +#: tmp/twig_translate.php:183 msgid "Female" msgstr "" @@ -2089,7 +2089,7 @@ msgstr "" #: application/helpers/userstatistics_helper.php:1332 #: application/views/admin/dataentry/content_view.php:105 #: application/views/admin/export/statistics_subviews/_question.php:299 -#: tmp/twig_translate.php:183 +#: tmp/twig_translate.php:182 msgid "Male" msgstr "" @@ -2297,9 +2297,10 @@ msgstr "" #: application/controllers/admin/questions.php:188 #: application/controllers/admin/surveyadmin.php:321 #: application/controllers/admin/surveyadmin.php:1277 -#: application/controllers/admin/themes.php:231 -#: application/controllers/admin/themes.php:304 -#: application/controllers/admin/themes.php:372 +#: application/controllers/admin/surveyadmin.php:2348 +#: application/controllers/admin/themes.php:234 +#: application/controllers/admin/themes.php:307 +#: application/controllers/admin/themes.php:375 msgid "An error occurred uploading your file. This may be caused by incorrect permissions for the application /tmp folder." msgstr "" @@ -2373,7 +2374,7 @@ msgstr "" #: application/controllers/admin/quotas.php:252 #: application/controllers/admin/responses.php:189 #: application/controllers/admin/responses.php:190 -#: application/controllers/admin/themes.php:897 +#: application/controllers/admin/themes.php:900 #: application/controllers/admin/tokens.php:1609 #: application/models/Token.php:88 #: application/views/admin/quotas/viewquotas_view.php:83 @@ -2412,8 +2413,8 @@ msgid "Next choice" msgstr "" #: application/controllers/admin/dataentry.php:813 -#: application/core/Survey_Common_Action.php:451 -#: application/core/Survey_Common_Action.php:783 +#: application/core/Survey_Common_Action.php:458 +#: application/core/Survey_Common_Action.php:790 #: application/helpers/common_helper.php:705 #: application/helpers/common_helper.php:768 #: application/helpers/common_helper.php:4512 @@ -2439,7 +2440,7 @@ msgstr "" #: application/controllers/admin/dataentry.php:1227 #: application/controllers/admin/labels.php:223 -#: application/controllers/admin/themes.php:900 +#: application/controllers/admin/themes.php:903 #: application/controllers/admin/usergroups.php:178 #: application/helpers/admin/label_helper.php:131 #: application/views/admin/assessments/assessments_edit.php:125 @@ -2480,7 +2481,7 @@ msgstr "" #: application/views/admin/user/editusers.php:132 #: application/views/admin/user/modifyuser.php:62 #: application/views/admin/user/setuserpermissions.php:82 -#: tmp/twig_translate.php:109 +#: tmp/twig_translate.php:108 msgid "Save" msgstr "" @@ -2674,7 +2675,7 @@ msgid "Confirmation attachments:" msgstr "" #: application/controllers/admin/emailtemplates.php:217 -#: application/controllers/admin/themes.php:904 +#: application/controllers/admin/themes.php:907 msgid "Registration" msgstr "" @@ -2839,7 +2840,8 @@ msgstr "" #: application/controllers/admin/labels.php:73 #: application/controllers/admin/surveyadmin.php:285 -#: application/controllers/admin/themes.php:1344 +#: application/controllers/admin/surveyadmin.php:2333 +#: application/controllers/admin/themes.php:1347 msgid "Incorrect permissions in your %s folder." msgstr "" @@ -2853,8 +2855,9 @@ msgstr "" #: application/controllers/admin/questiongroups.php:57 #: application/controllers/admin/questions.php:186 #: application/controllers/admin/surveyadmin.php:1271 -#: application/controllers/admin/themes.php:202 -#: application/controllers/admin/themes.php:1326 +#: application/controllers/admin/surveyadmin.php:2307 +#: application/controllers/admin/themes.php:205 +#: application/controllers/admin/themes.php:1329 #: application/controllers/admin/tokens.php:1957 msgid "Sorry, this file is too large. Only files up to %01.2f MB are allowed." msgstr "" @@ -3028,8 +3031,8 @@ msgstr "" #: application/controllers/admin/participantsaction.php:791 #: application/controllers/admin/surveyadmin.php:1945 -#: application/controllers/admin/themes.php:285 -#: application/core/Survey_Common_Action.php:1212 +#: application/controllers/admin/themes.php:288 +#: application/core/Survey_Common_Action.php:1219 #: application/extensions/LimeScript/LimeScript.php:25 #: application/helpers/SurveyRuntimeHelper.php:1303 #: application/helpers/frontend_helper.php:2183 @@ -3162,7 +3165,7 @@ msgid "There are no unmapped attributes" msgstr "" #: application/controllers/admin/printablesurvey.php:81 -#: application/controllers/admin/themes.php:1130 +#: application/controllers/admin/themes.php:1133 msgid "Please submit by %s" msgstr "" @@ -3179,12 +3182,12 @@ msgid "Submit Your Survey." msgstr "" #: application/controllers/admin/printablesurvey.php:137 -#: application/controllers/admin/themes.php:1131 +#: application/controllers/admin/themes.php:1134 msgid "Thank you for completing this survey." msgstr "" #: application/controllers/admin/printablesurvey.php:145 -#: application/controllers/admin/themes.php:1127 +#: application/controllers/admin/themes.php:1130 msgid "Please fax your completed survey to:" msgstr "" @@ -3278,7 +3281,7 @@ msgid "Question code:" msgstr "" #: application/controllers/admin/printablesurvey.php:545 -#: application/controllers/admin/themes.php:1104 +#: application/controllers/admin/themes.php:1107 msgid "*" msgstr "" @@ -3287,7 +3290,7 @@ msgstr "" #: application/controllers/admin/printablesurvey.php:604 #: application/controllers/admin/printablesurvey.php:654 #: application/controllers/admin/printablesurvey.php:835 -#: application/controllers/admin/themes.php:1108 +#: application/controllers/admin/themes.php:1111 msgid "Please choose *only one* of the following:" msgstr "" @@ -3350,7 +3353,7 @@ msgid "Please choose the appropriate response for each item:" msgstr "" #: application/controllers/admin/printablesurvey.php:1302 -#: tmp/twig_translate.php:170 +#: tmp/twig_translate.php:169 msgid "There are %s questions in this survey." msgstr "" @@ -3453,8 +3456,8 @@ msgstr "" #: application/controllers/admin/questions.php:60 #: application/controllers/admin/responses.php:67 #: application/controllers/admin/surveyadmin.php:1314 -#: application/core/Survey_Common_Action.php:588 -#: application/core/Survey_Common_Action.php:864 +#: application/core/Survey_Common_Action.php:595 +#: application/core/Survey_Common_Action.php:871 msgid "Invalid survey ID" msgstr "" @@ -3631,7 +3634,7 @@ msgstr "" #: application/views/admin/responses/listResponses_view.php:136 #: application/views/admin/themes/templateeditor_register_view.php:3 #: application/views/admin/token/dummytokenform.php:40 -#: tmp/twig_translate.php:216 +#: tmp/twig_translate.php:215 msgid "First name" msgstr "" @@ -3644,7 +3647,7 @@ msgstr "" #: application/views/admin/responses/listResponses_view.php:147 #: application/views/admin/themes/templateeditor_register_view.php:7 #: application/views/admin/token/dummytokenform.php:48 -#: tmp/twig_translate.php:217 +#: tmp/twig_translate.php:216 msgid "Last name" msgstr "" @@ -3739,7 +3742,7 @@ msgid "Group: " msgstr "" #: application/controllers/admin/responses.php:796 -#: application/controllers/admin/themes.php:896 +#: application/controllers/admin/themes.php:899 #: application/helpers/admin/statistics_helper.php:4269 #: application/views/admin/conditions/includes/form_editconditions_header.php:67 #: application/views/admin/conditions/includes/quickAddConditionForm.php:22 @@ -3934,6 +3937,20 @@ msgstr "" msgid "This is a question help text." msgstr "" +#: application/controllers/admin/surveyadmin.php:2291 +msgid "You don't have suffisient right to upload image in this survey" +msgstr "" + +#: application/controllers/admin/surveyadmin.php:2298 +msgid "No file was uploaded." +msgstr "" + +#: application/controllers/admin/surveyadmin.php:2350 +#: application/controllers/admin/themes.php:236 +#: application/controllers/admin/themes.php:377 +msgid "File %s uploaded" +msgstr "" + #: application/controllers/admin/surveypermission.php:59 #: application/controllers/admin/surveypermission.php:226 #: application/core/LsDefaultDataSets.php:31 @@ -4070,7 +4087,7 @@ msgstr "" #: application/views/survey/frontpage/captchaForm/form.php:39 #: application/views/survey/frontpage/registerForm/form.php:56 #: application/views/survey/frontpage/tokenForm/form.php:57 -#: tmp/twig_translate.php:148 tmp/twig_translate.php:151 +#: tmp/twig_translate.php:147 tmp/twig_translate.php:150 msgid "Continue" msgstr "" @@ -4158,7 +4175,7 @@ msgstr "" #: application/controllers/admin/surveypermission.php:504 #: application/views/survey/frontpage/saveForm/form.php:72 -#: tmp/twig_translate.php:195 +#: tmp/twig_translate.php:194 msgid "Save Now" msgstr "" @@ -4190,29 +4207,29 @@ msgstr "" #: application/controllers/admin/themeoptions.php:87 #: application/controllers/admin/themeoptions.php:111 -#: application/controllers/admin/themeoptions.php:143 +#: application/controllers/admin/themeoptions.php:142 msgid "Theme options saved." msgstr "" -#: application/controllers/admin/themeoptions.php:183 +#: application/controllers/admin/themeoptions.php:182 msgid "The template upload directory doesn't exist or is not writable." msgstr "" -#: application/controllers/admin/themeoptions.php:187 +#: application/controllers/admin/themeoptions.php:186 #: application/views/admin/themes/templateeditorbar_view.php:137 msgid "Some directories are not writable. Please change the folder permissions for /tmp and /upload/themes in order to enable this option." msgstr "" -#: application/controllers/admin/themeoptions.php:191 +#: application/controllers/admin/themeoptions.php:190 #: application/views/admin/themes/templateeditorbar_view.php:80 msgid "You do not have the required ZIP library installed in PHP." msgstr "" -#: application/controllers/admin/themeoptions.php:285 +#: application/controllers/admin/themeoptions.php:284 msgid "You can't uninstall template '%s' because some templates inherit from it." msgstr "" -#: application/controllers/admin/themeoptions.php:300 +#: application/controllers/admin/themeoptions.php:299 msgid "The theme '%s' has been reset." msgstr "" @@ -4221,136 +4238,131 @@ msgstr "" msgid "Survey template options" msgstr "" -#: application/controllers/admin/themes.php:192 +#: application/controllers/admin/themes.php:195 msgid "Demo mode: Uploading images is disabled." msgstr "" -#: application/controllers/admin/themes.php:233 -#: application/controllers/admin/themes.php:374 -msgid "File %s uploaded" -msgstr "" - -#: application/controllers/admin/themes.php:272 +#: application/controllers/admin/themes.php:275 msgid "This file is not a valid ZIP file archive. Import failed." msgstr "" -#: application/controllers/admin/themes.php:292 +#: application/controllers/admin/themes.php:295 msgid "Can not import a theme that already exists!" msgstr "" -#: application/controllers/admin/themes.php:300 +#: application/controllers/admin/themes.php:303 msgid "This ZIP archive contains no valid template files. Import failed." msgstr "" -#: application/controllers/admin/themes.php:353 +#: application/controllers/admin/themes.php:356 msgid "The folder %s doesn't exist and can't be created." msgstr "" -#: application/controllers/admin/themes.php:364 +#: application/controllers/admin/themes.php:367 msgid "Demo mode: Uploading template files is disabled." msgstr "" -#: application/controllers/admin/themes.php:366 +#: application/controllers/admin/themes.php:369 msgid "This filename is not allowed to be uploaded." msgstr "" -#: application/controllers/admin/themes.php:368 +#: application/controllers/admin/themes.php:371 #: application/views/admin/themes/templateeditorbar_view.php:36 #: application/views/admin/themes/templateeditorbar_view.php:45 msgid "This file type is not allowed to be uploaded." msgstr "" -#: application/controllers/admin/themes.php:422 +#: application/controllers/admin/themes.php:425 msgid "Theme %s does not exist." msgstr "" -#: application/controllers/admin/themes.php:468 +#: application/controllers/admin/themes.php:471 msgid "The file %s was deleted." msgstr "" -#: application/controllers/admin/themes.php:471 +#: application/controllers/admin/themes.php:474 msgid "File %s couldn't be deleted. Please check the permissions on the /upload/themes folder" msgstr "" -#: application/controllers/admin/themes.php:497 -#: application/controllers/admin/themes.php:501 -#: application/controllers/admin/themes.php:505 +#: application/controllers/admin/themes.php:500 +#: application/controllers/admin/themes.php:504 +#: application/controllers/admin/themes.php:508 msgid "Template could not be renamed to '%s'." msgstr "" -#: application/controllers/admin/themes.php:497 +#: application/controllers/admin/themes.php:500 msgid "This name is reserved for standard template." msgstr "" -#: application/controllers/admin/themes.php:501 +#: application/controllers/admin/themes.php:504 msgid "A template with that name already exists." msgstr "" -#: application/controllers/admin/themes.php:505 +#: application/controllers/admin/themes.php:508 msgid "Maybe you don't have permission." msgstr "" -#: application/controllers/admin/themes.php:520 +#: application/controllers/admin/themes.php:523 msgid "Template '%s' could not be found." msgstr "" -#: application/controllers/admin/themes.php:561 +#: application/controllers/admin/themes.php:564 msgid "Directory with the name `%s` already exists - choose another name" msgstr "" -#: application/controllers/admin/themes.php:564 +#: application/controllers/admin/themes.php:567 msgid "Unable to create directory `%s`." msgstr "" -#: application/controllers/admin/themes.php:565 +#: application/controllers/admin/themes.php:568 msgid "Please check the directory permissions." msgstr "" -#: application/controllers/admin/themes.php:611 +#: application/controllers/admin/themes.php:614 msgid "Template '%s' was successfully deleted." msgstr "" -#: application/controllers/admin/themes.php:613 +#: application/controllers/admin/themes.php:616 msgid "There was a problem deleting the template '%s'. Please check your directory/file permissions." msgstr "" -#: application/controllers/admin/themes.php:616 +#: application/controllers/admin/themes.php:619 msgid "You can't delete template '%s' because one or more templates inherit from it." msgstr "" -#: application/controllers/admin/themes.php:620 +#: application/controllers/admin/themes.php:623 msgid "Theme '%s' does not exist." msgstr "" -#: application/controllers/admin/themes.php:638 +#: application/controllers/admin/themes.php:641 msgid "Theme '%s' was successfully deleted." msgstr "" -#: application/controllers/admin/themes.php:641 +#: application/controllers/admin/themes.php:644 msgid "Not a broken theme!" msgstr "" -#: application/controllers/admin/themes.php:698 +#: application/controllers/admin/themes.php:701 msgid "Invalid theme name" msgstr "" -#: application/controllers/admin/themes.php:712 +#: application/controllers/admin/themes.php:715 msgid "Could not open file " msgstr "" -#: application/controllers/admin/themes.php:717 +#: application/controllers/admin/themes.php:720 msgid "Could not write file " msgstr "" -#: application/controllers/admin/themes.php:898 +#: application/controllers/admin/themes.php:901 msgid "Clear all" msgstr "" -#: application/controllers/admin/themes.php:899 +#: application/controllers/admin/themes.php:902 msgid "Load" msgstr "" -#: application/controllers/admin/themes.php:901 +#: application/controllers/admin/themes.php:904 #: application/views/admin/super/welcome.php:149 #: application/views/admin/survey/breadcrumb.php:12 #: application/views/admin/survey/listSurveys_view.php:16 @@ -4358,156 +4370,156 @@ msgstr "" msgid "Survey list" msgstr "" -#: application/controllers/admin/themes.php:905 +#: application/controllers/admin/themes.php:908 msgid "Print answers" msgstr "" -#: application/controllers/admin/themes.php:906 +#: application/controllers/admin/themes.php:909 #: application/core/plugins/Authdb/Authdb.php:200 #: application/views/admin/export/statistics_subviews/_outputformat.php:11 msgid "PDF" msgstr "" -#: application/controllers/admin/themes.php:907 +#: application/controllers/admin/themes.php:910 msgid "Navigation" msgstr "" -#: application/controllers/admin/themes.php:916 +#: application/controllers/admin/themes.php:919 msgid "Invalid screen name" msgstr "" -#: application/controllers/admin/themes.php:948 +#: application/controllers/admin/themes.php:951 msgid "Template Sample" msgstr "" -#: application/controllers/admin/themes.php:951 +#: application/controllers/admin/themes.php:954 msgid "This is a sample survey description. It could be quite long." msgstr "" -#: application/controllers/admin/themes.php:952 +#: application/controllers/admin/themes.php:955 msgid "But this one isn't." msgstr "" -#: application/controllers/admin/themes.php:955 +#: application/controllers/admin/themes.php:958 msgid "Welcome to this sample survey" msgstr "" -#: application/controllers/admin/themes.php:956 +#: application/controllers/admin/themes.php:959 msgid "You should have a great time doing this" msgstr "" -#: application/controllers/admin/themes.php:958 +#: application/controllers/admin/themes.php:961 #: application/helpers/replacements_helper.php:198 msgid "There is 1 question in this survey" msgstr "" -#: application/controllers/admin/themes.php:965 +#: application/controllers/admin/themes.php:968 msgid "Some URL description" msgstr "" -#: application/controllers/admin/themes.php:972 +#: application/controllers/admin/themes.php:975 msgid "Group 1: The first lot of questions" msgstr "" -#: application/controllers/admin/themes.php:973 +#: application/controllers/admin/themes.php:976 msgid "This group description is fairly vacuous, but quite important." msgstr "" -#: application/controllers/admin/themes.php:993 -#: application/controllers/admin/themes.php:1181 +#: application/controllers/admin/themes.php:996 +#: application/controllers/admin/themes.php:1184 #: application/helpers/surveytranslator_helper.php:241 msgid "English" msgstr "" -#: application/controllers/admin/themes.php:994 -#: application/controllers/admin/themes.php:1182 +#: application/controllers/admin/themes.php:997 +#: application/controllers/admin/themes.php:1185 #: application/helpers/surveytranslator_helper.php:291 #: application/views/admin/token/exportdialog.php:69 msgid "German" msgstr "" -#: application/controllers/admin/themes.php:1002 -#: application/controllers/admin/themes.php:1028 +#: application/controllers/admin/themes.php:1005 +#: application/controllers/admin/themes.php:1031 msgid "How many roads must a man walk down?" msgstr "" -#: application/controllers/admin/themes.php:1004 +#: application/controllers/admin/themes.php:1007 msgid "This is some helpful text." msgstr "" -#: application/controllers/admin/themes.php:1013 +#: application/controllers/admin/themes.php:1016 msgid "Hint when response is valid" msgstr "" -#: application/controllers/admin/themes.php:1040 +#: application/controllers/admin/themes.php:1043 msgid "Please explain something in detail:" msgstr "" -#: application/controllers/admin/themes.php:1088 +#: application/controllers/admin/themes.php:1091 msgid "Welcome to the Assessment" msgstr "" -#: application/controllers/admin/themes.php:1088 +#: application/controllers/admin/themes.php:1091 msgid "You got {TOTAL} points out of 3 possible points." msgstr "" -#: application/controllers/admin/themes.php:1115 +#: application/controllers/admin/themes.php:1118 msgid "This is a sample question text. The user was asked to pick an entry." msgstr "" -#: application/controllers/admin/themes.php:1116 +#: application/controllers/admin/themes.php:1119 msgid "This is some help text for this question." msgstr "" -#: application/controllers/admin/themes.php:1128 +#: application/controllers/admin/themes.php:1131 msgid "Submit your survey." msgstr "" -#: application/controllers/admin/themes.php:1132 +#: application/controllers/admin/themes.php:1135 msgid "This is the survey end message." msgstr "" -#: application/controllers/admin/themes.php:1151 +#: application/controllers/admin/themes.php:1154 msgid "A group without step status styling" msgstr "" -#: application/controllers/admin/themes.php:1154 +#: application/controllers/admin/themes.php:1157 msgid "This group is unanswered" msgstr "" -#: application/controllers/admin/themes.php:1160 +#: application/controllers/admin/themes.php:1163 msgid "This group has an error" msgstr "" -#: application/controllers/admin/themes.php:1166 +#: application/controllers/admin/themes.php:1169 msgid "Current group is disabled" msgstr "" -#: application/controllers/admin/themes.php:1195 +#: application/controllers/admin/themes.php:1198 msgid "Question group name" msgstr "" -#: application/controllers/admin/themes.php:1196 +#: application/controllers/admin/themes.php:1199 msgid "Question group description" msgstr "" -#: application/controllers/admin/themes.php:1205 +#: application/controllers/admin/themes.php:1208 msgid "This is an error message example" msgstr "" -#: application/controllers/admin/themes.php:1280 +#: application/controllers/admin/themes.php:1283 msgid "LimeSurvey 3.0 theme editor" msgstr "" -#: application/controllers/admin/themes.php:1284 +#: application/controllers/admin/themes.php:1287 msgid "Welcome to the new theme editor of LimeSurvey 3.0. To get an overview of new functionality and possibilities, please visit the %s LimeSurvey manual %s. For further questions and information, feel free to post your questions on the %s LimeSurvey forums %s." msgstr "" -#: application/controllers/admin/themes.php:1311 +#: application/controllers/admin/themes.php:1314 msgid "Demo mode: Uploading templates is disabled." msgstr "" -#: application/controllers/admin/themes.php:1349 +#: application/controllers/admin/themes.php:1352 msgid "Template '%s' does already exist." msgstr "" @@ -4968,7 +4980,7 @@ msgstr "" #: application/controllers/admin/translate.php:269 #: application/core/LsDefaultDataSets.php:810 -#: application/core/Survey_Common_Action.php:681 +#: application/core/Survey_Common_Action.php:688 #: application/views/admin/survey/Question/questionbar_view.php:19 #: application/views/admin/survey/Question/questionbar_view.php:79 #: application/views/admin/survey/QuestionGroups/questiongroupbar_view.php:22 @@ -4979,7 +4991,7 @@ msgid "Preview survey" msgstr "" #: application/controllers/admin/translate.php:269 -#: application/core/Survey_Common_Action.php:683 +#: application/core/Survey_Common_Action.php:690 #: application/views/admin/survey/Question/questionbar_view.php:21 #: application/views/admin/survey/Question/questionbar_view.php:81 #: application/views/admin/survey/QuestionGroups/questiongroupbar_view.php:24 @@ -5412,7 +5424,7 @@ msgstr "" #: application/helpers/replacements_helper.php:149 #: application/helpers/replacements_helper.php:151 #: application/helpers/replacements_helper.php:399 -#: application/helpers/replacements_helper.php:401 tmp/twig_translate.php:138 +#: application/helpers/replacements_helper.php:401 tmp/twig_translate.php:137 msgid "Please contact %s ( %s ) for further assistance." msgstr "" @@ -5495,7 +5507,7 @@ msgid "You have exceeded the number of maximum login attempts. Please wait %d mi msgstr "" #: application/core/LSUserIdentity.php:138 -#: application/core/Survey_Common_Action.php:433 +#: application/core/Survey_Common_Action.php:440 msgid "Warning: You are still using the default password ('password'). Please change your password and re-login again." msgstr "" @@ -6017,7 +6029,7 @@ msgstr "" #: application/views/installer/license_view.php:16 #: application/views/installer/precheck_view.php:147 #: application/views/survey/system/actionButton/movePrevious.php:11 -#: tmp/twig_translate.php:158 tmp/twig_translate.php:211 +#: tmp/twig_translate.php:157 tmp/twig_translate.php:210 msgid "Previous" msgstr "" @@ -6029,7 +6041,7 @@ msgstr "" #: application/views/installer/optconfig_view.php:82 #: application/views/installer/precheck_view.php:155 #: application/views/survey/system/actionButton/moveNext.php:11 -#: tmp/twig_translate.php:160 +#: tmp/twig_translate.php:159 msgid "Next" msgstr "" @@ -6530,102 +6542,102 @@ msgstr "" msgid "Survey not found" msgstr "" -#: application/core/Survey_Common_Action.php:431 +#: application/core/Survey_Common_Action.php:438 msgid "Password warning" msgstr "" -#: application/core/Survey_Common_Action.php:449 +#: application/core/Survey_Common_Action.php:456 msgid "Activated" msgstr "" -#: application/core/Survey_Common_Action.php:989 +#: application/core/Survey_Common_Action.php:996 #: application/views/admin/survey/subview/accordion/_tokens_panel.php:58 msgid "Responses to this survey are anonymized." msgstr "" -#: application/core/Survey_Common_Action.php:991 +#: application/core/Survey_Common_Action.php:998 #: application/views/admin/survey/subview/accordion/_tokens_panel.php:56 msgid "Responses to this survey are NOT anonymized." msgstr "" -#: application/core/Survey_Common_Action.php:994 +#: application/core/Survey_Common_Action.php:1001 msgid "It is presented question by question." msgstr "" -#: application/core/Survey_Common_Action.php:996 +#: application/core/Survey_Common_Action.php:1003 msgid "It is presented group by group." msgstr "" -#: application/core/Survey_Common_Action.php:998 +#: application/core/Survey_Common_Action.php:1005 msgid "It is presented on one single page." msgstr "" -#: application/core/Survey_Common_Action.php:1002 +#: application/core/Survey_Common_Action.php:1009 msgid "No question index will be shown with this format." msgstr "" -#: application/core/Survey_Common_Action.php:1004 +#: application/core/Survey_Common_Action.php:1011 msgid "A question index will be shown; participants will be able to jump between viewed questions." msgstr "" -#: application/core/Survey_Common_Action.php:1006 +#: application/core/Survey_Common_Action.php:1013 msgid "A full question index will be shown; participants will be able to jump between relevant questions." msgstr "" -#: application/core/Survey_Common_Action.php:1010 +#: application/core/Survey_Common_Action.php:1017 #: application/views/admin/survey/subview/accordion/_notification_panel.php:34 msgid "Responses will be date stamped." msgstr "" -#: application/core/Survey_Common_Action.php:1013 +#: application/core/Survey_Common_Action.php:1020 msgid "IP Addresses will be logged" msgstr "" -#: application/core/Survey_Common_Action.php:1016 +#: application/core/Survey_Common_Action.php:1023 msgid "Referrer URL will be saved." msgstr "" -#: application/core/Survey_Common_Action.php:1019 +#: application/core/Survey_Common_Action.php:1026 msgid "It uses cookies for access control." msgstr "" -#: application/core/Survey_Common_Action.php:1022 +#: application/core/Survey_Common_Action.php:1029 msgid "If tokens are used, the public may register for this survey" msgstr "" -#: application/core/Survey_Common_Action.php:1025 +#: application/core/Survey_Common_Action.php:1032 msgid "Participants can save partially finished surveys" msgstr "" -#: application/core/Survey_Common_Action.php:1028 +#: application/core/Survey_Common_Action.php:1035 msgid "Basic email notification is sent to:" msgstr "" -#: application/core/Survey_Common_Action.php:1031 +#: application/core/Survey_Common_Action.php:1038 msgid "Detailed email notification with response data is sent to:" msgstr "" -#: application/core/Survey_Common_Action.php:1081 +#: application/core/Survey_Common_Action.php:1088 msgid "Survey cannot be activated yet." msgstr "" -#: application/core/Survey_Common_Action.php:1083 +#: application/core/Survey_Common_Action.php:1090 msgid "You need to add question groups" msgstr "" -#: application/core/Survey_Common_Action.php:1086 +#: application/core/Survey_Common_Action.php:1093 msgid "You need to add questions" msgstr "" -#: application/core/Survey_Common_Action.php:1193 +#: application/core/Survey_Common_Action.php:1200 msgid "Extracted files not found - maybe a permission problem?" msgstr "" -#: application/core/Survey_Common_Action.php:1207 +#: application/core/Survey_Common_Action.php:1214 msgid "Copy failed" msgstr "" -#: application/core/Survey_Common_Action.php:1219 +#: application/core/Survey_Common_Action.php:1226 msgid "Forbidden Extension" msgstr "" @@ -7022,7 +7034,7 @@ msgstr "" #: application/views/admin/user/setusertemplates.php:26 #: application/views/admin/user/setusertemplates.php:58 #: tmp/twig_translate.php:9 tmp/twig_translate.php:39 -#: tmp/twig_translate.php:130 +#: tmp/twig_translate.php:129 msgid "Off" msgstr "" @@ -7529,7 +7541,7 @@ msgstr "" msgid "Your responses were successfully saved." msgstr "" -#: application/helpers/SurveyRuntimeHelper.php:1133 tmp/twig_translate.php:201 +#: application/helpers/SurveyRuntimeHelper.php:1133 tmp/twig_translate.php:200 msgid "Print your answers." msgstr "" @@ -8117,6 +8129,7 @@ msgstr "" #: application/helpers/userstatistics_helper.php:2775 #: application/helpers/userstatistics_helper.php:2879 #: application/models/Surveymenu.php:185 +#: application/models/TemplateConfiguration.php:818 #: application/views/admin/participants/modal_subviews/_addToSurvey.php:22 #: application/views/admin/super/quickmenu.php:6 msgid "Survey" @@ -8245,7 +8258,7 @@ msgstr "" #: application/views/admin/export/exportresult_panels/_token-control.php:29 #: application/views/admin/saved/savedlist_view.php:22 #: application/views/admin/themes/templateeditor_register_view.php:11 -#: tmp/twig_translate.php:218 +#: tmp/twig_translate.php:217 msgid "Email address" msgstr "" @@ -9244,7 +9257,7 @@ msgstr "" msgid "The minimum number of files has not been uploaded." msgstr "" -#: application/helpers/frontend_helper.php:691 tmp/twig_translate.php:198 +#: application/helpers/frontend_helper.php:691 tmp/twig_translate.php:197 msgid "Did Not Save" msgstr "" @@ -9289,7 +9302,7 @@ msgstr "" msgid "This survey cannot be tested or completed for the following reason(s):" msgstr "" -#: application/helpers/frontend_helper.php:1403 tmp/twig_translate.php:168 +#: application/helpers/frontend_helper.php:1403 tmp/twig_translate.php:167 msgid "There are no questions in this survey." msgstr "" @@ -9489,7 +9502,7 @@ msgstr "" #: application/helpers/qanda_helper.php:2310 #: application/views/admin/survey/activateSurvey_view.php:36 -#: tmp/twig_translate.php:196 tmp/twig_translate.php:210 +#: tmp/twig_translate.php:195 tmp/twig_translate.php:209 msgid "Return to survey" msgstr "" @@ -9503,7 +9516,7 @@ msgstr "" #: application/views/admin/themes/templatesummary_view.php:159 #: application/views/admin/token/csvupload.php:122 #: application/views/admin/token/ldapform.php:71 tmp/twig_translate.php:15 -#: tmp/twig_translate.php:110 tmp/twig_translate.php:136 +#: tmp/twig_translate.php:109 tmp/twig_translate.php:135 msgid "Upload" msgstr "" @@ -10955,11 +10968,11 @@ msgstr "" msgid "Note: Print will not include items on this page" msgstr "" -#: application/helpers/replacements_helper.php:297 tmp/twig_translate.php:203 +#: application/helpers/replacements_helper.php:297 tmp/twig_translate.php:202 msgid "Answers cleared" msgstr "" -#: application/helpers/replacements_helper.php:298 tmp/twig_translate.php:167 +#: application/helpers/replacements_helper.php:298 tmp/twig_translate.php:166 msgid "Your assessment" msgstr "" @@ -11402,19 +11415,19 @@ msgstr "" msgid "Moving user templates to new location at %s..." msgstr "" -#: application/helpers/update/updatedb_helper.php:2355 +#: application/helpers/update/updatedb_helper.php:2356 msgid "An non-recoverable error happened during the update. Error details:" msgstr "" -#: application/helpers/update/updatedb_helper.php:2359 +#: application/helpers/update/updatedb_helper.php:2360 msgid "File %s, line %s." msgstr "" -#: application/helpers/update/updatedb_helper.php:2402 +#: application/helpers/update/updatedb_helper.php:2403 msgid "Database update" msgstr "" -#: application/helpers/update/updatedb_helper.php:2403 +#: application/helpers/update/updatedb_helper.php:2404 msgid "The database has been updated from version %s to version %s." msgstr "" @@ -12511,11 +12524,19 @@ msgstr "" msgid "You cannot uninstall the default template." msgstr "" -#: application/models/TemplateConfiguration.php:931 +#: application/models/TemplateConfiguration.php:815 +msgid "Global" +msgstr "" + +#: application/models/TemplateConfiguration.php:816 +msgid "Theme" +msgstr "" + +#: application/models/TemplateConfiguration.php:943 msgid "Error: Malformed JSON: Field %s must be either a JSON array or the string \"inherit\". Found \"%s\"." msgstr "" -#: application/models/TemplateConfiguration.php:999 +#: application/models/TemplateConfiguration.php:1011 msgid "Theme '%s' has been uninstalled because it's not compatible with this LimeSurvey version." msgstr "" @@ -13264,7 +13285,7 @@ msgstr "" #: application/views/admin/update/manage/subscribe.php:38 #: application/views/admin/update/updater/welcome/_subscribe.php:44 #: application/views/survey/system/actionButton/moveSubmit.php:11 -#: tmp/twig_translate.php:159 tmp/twig_translate.php:212 +#: tmp/twig_translate.php:158 tmp/twig_translate.php:211 msgid "Submit" msgstr "" @@ -14232,7 +14253,7 @@ msgstr "" #: application/views/admin/global_settings/_general.php:192 #: tmp/twig_translate.php:7 tmp/twig_translate.php:37 -#: tmp/twig_translate.php:128 +#: tmp/twig_translate.php:127 msgid "Popup" msgstr "" @@ -16648,11 +16669,11 @@ msgid "Question type" msgstr "" #: application/views/admin/survey/Question/listquestions.php:105 -#: application/views/survey/system/required.php:6 tmp/twig_translate.php:145 -#: tmp/twig_translate.php:146 tmp/twig_translate.php:149 -#: tmp/twig_translate.php:192 tmp/twig_translate.php:193 -#: tmp/twig_translate.php:194 tmp/twig_translate.php:207 -#: tmp/twig_translate.php:208 tmp/twig_translate.php:221 +#: application/views/survey/system/required.php:6 tmp/twig_translate.php:144 +#: tmp/twig_translate.php:145 tmp/twig_translate.php:148 +#: tmp/twig_translate.php:191 tmp/twig_translate.php:192 +#: tmp/twig_translate.php:193 tmp/twig_translate.php:206 +#: tmp/twig_translate.php:207 tmp/twig_translate.php:220 msgid "Mandatory" msgstr "" @@ -18939,7 +18960,7 @@ msgid "Thank you!" msgstr "" #: application/views/admin/themes/templateeditor_completed_view.php:4 -#: tmp/twig_translate.php:197 tmp/twig_translate.php:200 +#: tmp/twig_translate.php:196 tmp/twig_translate.php:199 msgid "Your survey responses have been recorded." msgstr "" @@ -18977,7 +18998,7 @@ msgstr "" #: application/views/admin/themes/templateeditor_surveylist_view.php:33 #: application/views/admin/themes/templateeditor_surveylist_view.php:77 -#: tmp/twig_translate.php:137 +#: tmp/twig_translate.php:136 msgid "Start survey" msgstr "" @@ -20852,7 +20873,7 @@ msgstr "" #: application/views/survey/frontpage/clearallForm/heading.php:7 #: application/views/survey/system/actionButton/clearAll.php:16 #: application/views/survey/system/actionLink/clearAll.php:11 -#: tmp/twig_translate.php:166 +#: tmp/twig_translate.php:165 msgid "Exit and clear survey" msgstr "" @@ -20867,20 +20888,20 @@ msgid "Security question:" msgstr "" #: application/views/survey/frontpage/loadForm/form.php:35 -#: tmp/twig_translate.php:209 +#: tmp/twig_translate.php:208 msgid "Load now" msgstr "" #: application/views/survey/frontpage/loadForm/heading.php:7 #: application/views/survey/system/actionButton/saveLoad.php:11 #: application/views/survey/system/actionLink/saveLoad.php:11 -#: tmp/twig_translate.php:156 tmp/twig_translate.php:163 -#: tmp/twig_translate.php:205 +#: tmp/twig_translate.php:155 tmp/twig_translate.php:162 +#: tmp/twig_translate.php:204 msgid "Load unfinished survey" msgstr "" #: application/views/survey/frontpage/loadForm/message.php:7 -#: tmp/twig_translate.php:206 +#: tmp/twig_translate.php:205 msgid "You can load a survey that you have previously saved from this screen." msgstr "" @@ -20901,7 +20922,7 @@ msgid "You may register for this survey but you have to wait for the %s before s msgstr "" #: application/views/survey/frontpage/registerForm/message.php:10 -#: tmp/twig_translate.php:215 +#: tmp/twig_translate.php:214 msgid "You may register for this survey if you wish to take part." msgstr "" @@ -20922,12 +20943,12 @@ msgid "Your email address:" msgstr "" #: application/views/survey/frontpage/saveForm/heading.php:7 -#: tmp/twig_translate.php:189 +#: tmp/twig_translate.php:188 msgid "Save your unfinished survey" msgstr "" #: application/views/survey/frontpage/saveForm/message.php:7 -#: tmp/twig_translate.php:190 +#: tmp/twig_translate.php:189 msgid "Enter a name and password for this survey and click save below." msgstr "" @@ -20940,7 +20961,7 @@ msgid "If you give an email address, an email containing the details will be sen msgstr "" #: application/views/survey/frontpage/saveForm/message.php:10 -#: tmp/twig_translate.php:191 +#: tmp/twig_translate.php:190 msgid "After having clicked the save button you can either close this browser window or continue filling out the survey." msgstr "" @@ -20953,17 +20974,17 @@ msgid "If you have been issued a token, please enter it in the box below and cli msgstr "" #: application/views/survey/frontpage/tokenForm/message.php:11 -#: tmp/twig_translate.php:144 +#: tmp/twig_translate.php:143 msgid "Please confirm the token by answering the security question below and click continue." msgstr "" #: application/views/survey/questions/question_help/asterisk.php:9 -#: tmp/twig_translate.php:139 +#: tmp/twig_translate.php:138 msgid "(This question is mandatory)" msgstr "" #: application/views/survey/system/LanguageChanger/LanguageChanger.php:20 -#: tmp/twig_translate.php:161 +#: tmp/twig_translate.php:160 msgid "Change the language" msgstr "" @@ -20973,7 +20994,7 @@ msgstr "" #: application/views/survey/system/actionButton/saveSave.php:11 #: application/views/survey/system/actionLink/saveSave.php:11 -#: tmp/twig_translate.php:157 tmp/twig_translate.php:164 +#: tmp/twig_translate.php:156 tmp/twig_translate.php:163 msgid "Resume later" msgstr "" @@ -20982,7 +21003,7 @@ msgid "Caution: JavaScript execution is disabled in your browser or for this web msgstr "" #: application/views/survey/system/privacy/heading.php:7 -#: tmp/twig_translate.php:140 +#: tmp/twig_translate.php:139 msgid "This survey is anonymous." msgstr "" @@ -20998,13 +21019,13 @@ msgstr "" #: application/views/survey/system/surveyIndex/groupIndexMenuLink.php:10 #: application/views/survey/system/surveyIndex/questionIndex.php:10 #: application/views/survey/system/surveyIndex/questionIndexMenuLink.php:10 -#: tmp/twig_translate.php:152 tmp/twig_translate.php:153 -#: tmp/twig_translate.php:154 tmp/twig_translate.php:162 +#: tmp/twig_translate.php:151 tmp/twig_translate.php:152 +#: tmp/twig_translate.php:153 tmp/twig_translate.php:161 msgid "Question index" msgstr "" #: tmp/twig_translate.php:3 tmp/twig_translate.php:20 -#: tmp/twig_translate.php:115 +#: tmp/twig_translate.php:114 msgid "Ajax mode" msgstr "" @@ -21015,39 +21036,39 @@ msgstr "" #: tmp/twig_translate.php:47 tmp/twig_translate.php:51 #: tmp/twig_translate.php:55 tmp/twig_translate.php:58 #: tmp/twig_translate.php:66 tmp/twig_translate.php:68 -#: tmp/twig_translate.php:73 tmp/twig_translate.php:75 -#: tmp/twig_translate.php:80 tmp/twig_translate.php:86 -#: tmp/twig_translate.php:92 tmp/twig_translate.php:98 -#: tmp/twig_translate.php:104 tmp/twig_translate.php:118 -#: tmp/twig_translate.php:122 tmp/twig_translate.php:126 -#: tmp/twig_translate.php:131 tmp/twig_translate.php:133 +#: tmp/twig_translate.php:73 tmp/twig_translate.php:79 +#: tmp/twig_translate.php:85 tmp/twig_translate.php:91 +#: tmp/twig_translate.php:97 tmp/twig_translate.php:103 +#: tmp/twig_translate.php:117 tmp/twig_translate.php:121 +#: tmp/twig_translate.php:125 tmp/twig_translate.php:130 +#: tmp/twig_translate.php:132 msgid "Inherit" msgstr "" #: tmp/twig_translate.php:6 tmp/twig_translate.php:36 -#: tmp/twig_translate.php:127 +#: tmp/twig_translate.php:126 msgid "Show popups" msgstr "" #: tmp/twig_translate.php:8 tmp/twig_translate.php:38 -#: tmp/twig_translate.php:129 +#: tmp/twig_translate.php:128 msgid "On page" msgstr "" #: tmp/twig_translate.php:14 tmp/twig_translate.php:69 -#: tmp/twig_translate.php:76 tmp/twig_translate.php:134 +#: tmp/twig_translate.php:75 tmp/twig_translate.php:133 msgid "Preview image" msgstr "" -#: tmp/twig_translate.php:16 tmp/twig_translate.php:111 +#: tmp/twig_translate.php:16 tmp/twig_translate.php:110 msgid "Local Server" msgstr "" -#: tmp/twig_translate.php:17 tmp/twig_translate.php:112 +#: tmp/twig_translate.php:17 tmp/twig_translate.php:111 msgid "User browser" msgstr "" -#: tmp/twig_translate.php:24 tmp/twig_translate.php:119 +#: tmp/twig_translate.php:24 tmp/twig_translate.php:118 msgid "Survey container" msgstr "" @@ -21067,7 +21088,7 @@ msgstr "" msgid "Dim answered array rows" msgstr "" -#: tmp/twig_translate.php:52 tmp/twig_translate.php:123 +#: tmp/twig_translate.php:52 tmp/twig_translate.php:122 msgid "Hide privacy info" msgstr "" @@ -21103,133 +21124,133 @@ msgstr "" msgid "Logo file" msgstr "" -#: tmp/twig_translate.php:77 +#: tmp/twig_translate.php:76 msgid "Animate body" msgstr "" -#: tmp/twig_translate.php:81 +#: tmp/twig_translate.php:80 msgid "Body animation" msgstr "" -#: tmp/twig_translate.php:82 tmp/twig_translate.php:88 -#: tmp/twig_translate.php:94 tmp/twig_translate.php:100 -#: tmp/twig_translate.php:106 +#: tmp/twig_translate.php:81 tmp/twig_translate.php:87 +#: tmp/twig_translate.php:93 tmp/twig_translate.php:99 +#: tmp/twig_translate.php:105 msgid "Duration" msgstr "" -#: tmp/twig_translate.php:83 +#: tmp/twig_translate.php:82 msgid "Animate question" msgstr "" -#: tmp/twig_translate.php:87 +#: tmp/twig_translate.php:86 msgid "Question animation" msgstr "" -#: tmp/twig_translate.php:89 +#: tmp/twig_translate.php:88 msgid "Animate alert" msgstr "" -#: tmp/twig_translate.php:93 tmp/twig_translate.php:99 +#: tmp/twig_translate.php:92 tmp/twig_translate.php:98 msgid "Alert animation" msgstr "" -#: tmp/twig_translate.php:95 +#: tmp/twig_translate.php:94 msgid "Animate checkbox" msgstr "" -#: tmp/twig_translate.php:101 +#: tmp/twig_translate.php:100 msgid "Animate radio buttons" msgstr "" -#: tmp/twig_translate.php:105 +#: tmp/twig_translate.php:104 msgid "Radio button animation" msgstr "" -#: tmp/twig_translate.php:107 +#: tmp/twig_translate.php:106 msgid "%s fonts" msgstr "" -#: tmp/twig_translate.php:108 +#: tmp/twig_translate.php:107 msgid "%s variations" msgstr "" -#: tmp/twig_translate.php:135 +#: tmp/twig_translate.php:134 msgid "Fruity fonts" msgstr "" -#: tmp/twig_translate.php:141 +#: tmp/twig_translate.php:140 msgid "Survey data policy" msgstr "" -#: tmp/twig_translate.php:142 +#: tmp/twig_translate.php:141 msgid "Accept" msgstr "" -#: tmp/twig_translate.php:147 tmp/twig_translate.php:150 -#: tmp/twig_translate.php:219 +#: tmp/twig_translate.php:146 tmp/twig_translate.php:149 +#: tmp/twig_translate.php:218 msgid "Reload captcha" msgstr "" -#: tmp/twig_translate.php:155 +#: tmp/twig_translate.php:154 msgid "Question by question mode not yet supported." msgstr "" -#: tmp/twig_translate.php:165 +#: tmp/twig_translate.php:164 msgid "This action need to be confirmed." msgstr "" -#: tmp/twig_translate.php:169 +#: tmp/twig_translate.php:168 msgid "There is 1 question in this survey." msgstr "" -#: tmp/twig_translate.php:172 +#: tmp/twig_translate.php:171 msgid "This survey is currently not active. You will not be able to save your responses." msgstr "" -#: tmp/twig_translate.php:173 +#: tmp/twig_translate.php:172 msgid "PDF export" msgstr "" -#: tmp/twig_translate.php:174 +#: tmp/twig_translate.php:173 msgid "queXMLPDF export" msgstr "" -#: tmp/twig_translate.php:180 +#: tmp/twig_translate.php:179 msgid "No comment" msgstr "" -#: tmp/twig_translate.php:181 +#: tmp/twig_translate.php:180 msgid "File type" msgstr "" -#: tmp/twig_translate.php:182 +#: tmp/twig_translate.php:181 msgid "Rank" msgstr "" -#: tmp/twig_translate.php:188 +#: tmp/twig_translate.php:187 msgid "default" msgstr "" -#: tmp/twig_translate.php:199 +#: tmp/twig_translate.php:198 msgid "Your survey responses have not been recorded. This survey is not yet active." msgstr "" -#: tmp/twig_translate.php:202 +#: tmp/twig_translate.php:201 msgid "View the statistics for this survey." msgstr "" -#: tmp/twig_translate.php:204 +#: tmp/twig_translate.php:203 msgid "Restart this survey" msgstr "" -#: tmp/twig_translate.php:213 +#: tmp/twig_translate.php:212 msgid "Thank you for registering. You will receive an email shortly." msgstr "" -#: tmp/twig_translate.php:214 +#: tmp/twig_translate.php:213 msgid "You may register for this survey but you have to wait for the {{sStartDate}} before starting the survey." msgstr "" -#: tmp/twig_translate.php:220 +#: tmp/twig_translate.php:219 msgid "Fields marked with an asterisk are mandatory." msgstr "" \ No newline at end of file diff --git a/locale/ca/ca.mo b/locale/ca/ca.mo index 02cd33cc594..f4ed647bdaf 100644 Binary files a/locale/ca/ca.mo and b/locale/ca/ca.mo differ diff --git a/locale/fi/fi.mo b/locale/fi/fi.mo index 6ffd4ddb66f..d39ad7b5ea5 100644 Binary files a/locale/fi/fi.mo and b/locale/fi/fi.mo differ diff --git a/locale/hr/hr.mo b/locale/hr/hr.mo index de0cf982972..5c1c31e5a3b 100644 Binary files a/locale/hr/hr.mo and b/locale/hr/hr.mo differ diff --git a/locale/nb/nb.mo b/locale/nb/nb.mo index ea8b7d87752..ddbf49e1510 100644 Binary files a/locale/nb/nb.mo and b/locale/nb/nb.mo differ diff --git a/locale/nl-informal/nl-informal.mo b/locale/nl-informal/nl-informal.mo index 95c85e57c26..4269c66d7ca 100644 Binary files a/locale/nl-informal/nl-informal.mo and b/locale/nl-informal/nl-informal.mo differ diff --git a/locale/nl/nl.mo b/locale/nl/nl.mo index 89c0fe381b8..c2d4a0eb01a 100644 Binary files a/locale/nl/nl.mo and b/locale/nl/nl.mo differ diff --git a/tests/LimeSurveyWebDriver.php b/tests/LimeSurveyWebDriver.php index 976d0571050..0bf0d821c96 100644 --- a/tests/LimeSurveyWebDriver.php +++ b/tests/LimeSurveyWebDriver.php @@ -32,6 +32,10 @@ public function changeLanguageSelect($newLang) ) ); $langSelectOption->click(); + $langSubmit = $this->findElement( + WebDriverBy::cssSelector('button[value=changelang]') + ); + $langSubmit->click(); } /** diff --git a/themes/survey/bootswatch/options/options.twig b/themes/survey/bootswatch/options/options.twig index a4c35b67a9e..73a245257de 100644 --- a/themes/survey/bootswatch/options/options.twig +++ b/themes/survey/bootswatch/options/options.twig @@ -205,9 +205,19 @@ {% endif %} + {% set optgroup = '' %} {% for image in templateConfiguration.imageFileList %} - + {% if image.group != optgroup %} + {% if optgroup != '' %} + + {% endif %} + + {% set optgroup = image.group %} + {% endif %} + {% endfor %} + +
diff --git a/themes/survey/fruity/options/options.twig b/themes/survey/fruity/options/options.twig index 577ac9d3f37..a5c67b4fdb3 100644 --- a/themes/survey/fruity/options/options.twig +++ b/themes/survey/fruity/options/options.twig @@ -706,9 +706,19 @@ {% endif %} + {% set optgroup = '' %} {% for image in templateConfiguration.imageFileList %} - + {% if image.group != optgroup %} + {% if optgroup != '' %} + + {% endif %} + + {% set optgroup = image.group %} + {% endif %} + {% endfor %} + + @@ -751,12 +761,20 @@
diff --git a/themes/survey/vanilla/options/options.twig b/themes/survey/vanilla/options/options.twig index d3954600f07..cb1a17ef196 100644 --- a/themes/survey/vanilla/options/options.twig +++ b/themes/survey/vanilla/options/options.twig @@ -244,10 +244,18 @@ {% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %} {% endif %} - + {% set optgroup = '' %} {% for image in templateConfiguration.imageFileList %} - + {% if image.group != optgroup %} + {% if optgroup != '' %} + + {% endif %} + + {% set optgroup = image.group %} + {% endif %} + {% endfor %} + @@ -303,7 +311,7 @@ {{ gT("Upload") }} - +