UNPKG

@eform/ng-formio-builder

Version:

The Angular.js form builder component.

7 lines 1.54 MB
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).formioBuilder=e()}}(function(){var define,module,exports;return function i(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var r=s[t]={exports:{}};a[t][0].call(r.exports,function(e){return u(a[t][1][e]||e)},r,r.exports,i,a,s,l)}return s[t].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(o,e,r){(function(e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(o("./utils"));"object"===(void 0===e?"undefined":t(e))&&(e.FormioUtils=n),r.default=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utils":3}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},{}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.jsonLogic=void 0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.evaluate=f,n.getRandomComponentId=function(){return"e"+Math.random().toString(36).substring(7)},n.getPropertyValue=i,n.getElementRect=function(e){var t=window.getComputedStyle(e,null);return{x:i(t,"left"),y:i(t,"top"),width:i(t,"width"),height:i(t,"height")}},n.boolValue=function(e){return p.default.isBoolean(e)?e:p.default.isString(e)?"true"===e.toLowerCase():!!e},n.isMongoId=function(e){return e.toString().match(/^[0-9a-fA-F]{24}$/)},n.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},n.eachComponent=d,n.matchComponent=a,n.getComponent=function(e,n,t){var o=void 0;return d(e,function(e,t){if(t===n)return e.path=t,o=e,!0},t),o},n.findComponents=function(e,n){var o=[];return d(e,function(e,t){a(e,n)&&(e.path=t,o.push(e))},!0),o},n.flattenComponents=function(e,t){var n={};return d(e,function(e,t){n[t]=e},t),n},n.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&e.conditional.when||e.conditional&&e.conditional.json)},n.parseFloatExt=s,n.formatAsCurrency=function(e){var t=s(e);if(p.default.isNaN(t))return"";var n=p.default.round(t,2).toString().split(".");return n[0]=p.default.chunk(Array.from(n[0]).reverse(),3).reverse().map(function(e){return e.reverse().join("")}).join(","),n[1]=p.default.pad(n[1],2,"0"),n.join(".")},n.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},n.checkCalculated=function(e,t,n){e.calculateValue&&p.default.set(n,e.key,f(e.calculateValue,{value:void 0,data:t?t.data:n,row:n,util:this,component:e},"value"))},n.checkSimpleConditional=m,n.checkCustomConditional=h,n.checkJsonConditional=g,n.checkCondition=function(e,t,n,o,r){{if(e.customConditional)return h(e,e.customConditional,t,n,o,"show",!0,r);if(e.conditional&&e.conditional.when)return m(e,e.conditional,t,n);if(e.conditional&&e.conditional.json)return g(e,e.conditional.json,t,n,o,r)}return!0},n.checkTrigger=function(e,t,n,o,r,i){switch(t.type){case"simple":return m(e,t.simple,n,o);case"javascript":return h(e,t.javascript,n,o,r,"result",!1,i);case"json":return g(e,t.json,n,o,r,!1)}return!1},n.setActionProperty=function(e,t,n,o,r,i){switch(t.property.type){case"boolean":p.default.get(e,t.property.value,!1).toString()!==t.state.toString()&&p.default.set(e,t.property.value,"true"===t.state.toString());break;case"string":var a={data:o,row:n,component:e,result:r},s=i&&i.interpolate?i.interpolate(t.text,a):b(t.text,a);s!==p.default.get(e,t.property.value,"")&&p.default.set(e,t.property.value,s)}return e},n.getValue=v,n.interpolate=b,n.uniqueName=function(e){var t=e.toLowerCase().replace(/[^0-9a-z.]/g,"").split("."),n=t[0],o=1<t.length?"."+p.default.last(t):"";return n.substr(0,10)+"-"+y()+o},n.guid=y,n.getDateSetting=function(e){if(p.default.isNil(e)||p.default.isNaN(e)||""===e)return null;{if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null}var t="string"!=typeof e||-1===e.indexOf("moment(")?(0,o.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{var n=new Function("moment","return "+e+";")(o.default);"string"==typeof n?t=(0,o.default)(n):"function"==typeof n.toDate?t=(0,o.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,o.default)(n))}catch(e){return null}if(!t)return null;if(!t.isValid())return null;return t.toDate()},n.isValidDate=function(e){return p.default.isDate(e)&&!p.default.isNaN(e.getDate())},n.getLocaleDateFormatInfo=function(e){var t={},n=new Date(2017,11,21).toLocaleDateString(e);return t.dayFirst=n.slice(0,2)===21..toString(),t},n.convertFormatToFlatpickr=function(e){return e.replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace("jj","d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","h").replace("mm","i").replace("ss","S").replace(/a/g,"K")},n.convertFormatToMoment=function(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A")},n.getInputMask=function(e){if(e instanceof Array)return e;var t=[];t.numeric=!0;for(var n=0;n<e.length;n++)switch(e[n]){case"9":t.push(/\d/);break;case"A":t.numeric=!1,t.push(/[a-zA-Z]/);break;case"a":t.numeric=!1,t.push(/[a-z]/);break;case"*":t.numeric=!1,t.push(/[a-zA-Z0-9]/);break;default:t.push(e[n])}return t},n.matchInputMask=function(e,t){if(!t)return!0;for(var n=0;n<t.length;n++){var o=e[n],r=t[n];if(!(p.default.isRegExp(r)&&r.test(o)||r===o))return!1}return!0},n.getNumberSeparators=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"en",t=12345.6789.toLocaleString(e).match(/..(.)...(.)../);if(!t)return{delimiter:",",decimalSeparator:"."};return{delimiter:1<t.length?t[1]:",",decimalSeparator:2<t.length?t[2]:"."}},n.getNumberDecimalLimit=function(e){var t=20,n=p.default.get(e,"validate.step","any");if("any"!==n){var o=n.toString().split(".");1<o.length&&(t=o[1].length)}return t},n.getCurrencyAffixes=function(e){var t=e.currency,n=void 0===t?"USD":t,o=e.decimalLimit,r=e.decimalSeparator,i=e.lang,a="(.*)?100";o&&(a+=("."===r?"\\.":r)+"0{"+o+"}");a+="(.*)?";var s=100..toLocaleString(i,{style:"currency",currency:n,useGrouping:!0,maximumFractionDigits:o,minimumFractionDigits:o}).replace(".",r).match(new RegExp(a));return{prefix:s[1]||"",suffix:s[2]||""}},n.fieldData=function(e,t){if(!e)return"";if(!t||!t.key)return e;{if(-1!==t.key.indexOf(".")){for(var n=e,o=t.key.split("."),r="",i=0;i<o.length;i++){if(r=o[i],n.hasOwnProperty("_id")&&(n=n.data),!n.hasOwnProperty(r))return;r===o[o.length-1]&&t.multiple&&!Array.isArray(n[r])&&(n[r]=[n[r]]),n=n[r]}return n}return t.multiple&&!Array.isArray(e[t.key])&&(e[t.key]=[e[t.key]]),e[t.key]}},n.delay=function(e){for(var t=arguments.length,n=Array(2<t?t-2:0),o=2;o<t;o++)n[o-2]=arguments[o];var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=setTimeout.apply(void 0,[e,r].concat(n));function a(){clearTimeout(i)}function s(){return a(),e.apply(void 0,n)}return s.timer=i,s.cancel=a,s};var p=r(e("lodash")),u=r(e("json-logic-js")),o=r(e("moment"));function r(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(t,o,e,n){var r=null,i=o.component?o.component:{key:"unknown"};if(!o.form&&o.instance&&(o.form=p.default.get(o.instance,"root._form",{})),"string"==typeof t){e&&(t+=";return "+e);var a=p.default.keys(o);n&&(t=t.replace(/({{\s+(.*)\s+}})/,function(e,t,n){return 0===n.indexOf("data.")?p.default.get(o.data,n.replace("data.","")):0===n.indexOf("row.")?p.default.get(o.row,n.replace("row.","")):p.default.get(o.data,n)}));try{t=new(Function.prototype.bind.apply(Function,[null].concat(c(a),[t])))}catch(e){console.warn("An error occured within the custom function for "+i.key,e),r=null,t=!1}}if("function"==typeof t){var s=p.default.values(o);try{r=t.apply(void 0,c(s))}catch(e){r=null,console.warn("An error occured within custom function for "+i.key,e)}}else if("object"===(void 0===t?"undefined":l(t)))try{r=u.default.apply(t,o)}catch(e){r=null,console.warn("An error occured within custom function for "+i.key,e)}else t&&console.warn("Unknown function type for "+i.key);return r}function i(e,t){var n=e.getPropertyValue(t);return n=n?n.replace(/[^0-9.]/g,""):"0",parseFloat(n)}function d(e,s,l,u,c){e&&(u=u||"",e.forEach(function(t){var e=t.columns&&Array.isArray(t.columns),n=t.rows&&Array.isArray(t.rows),o=t.components&&Array.isArray(t.components),r=!1,i=t.key?u?u+"."+t.key:t.key:"";c&&(t.parent=p.default.clone(c),delete t.parent.components,delete t.parent.componentMap,delete t.parent.columns,delete t.parent.rows),(l||t.tree||!e&&!n&&!o)&&(r=s(t,i));var a=function(){return t.key&&-1===["panel","table","well","columns","fieldset","tabs","form"].indexOf(t.type)&&(-1!==["datagrid","container","editgrid"].indexOf(t.type)||t.tree)?i:t.key&&"form"===t.type?i+".data":u};r||(e?t.columns.forEach(function(e){return d(e.components,s,l,a(),c?t:null)}):n?t.rows.forEach(function(e){Array.isArray(e)&&e.forEach(function(e){return d(e.components,s,l,a(),c?t:null)})}):o&&d(t.components,s,l,a(),c?t:null))}))}function a(n,e){if(p.default.isString(e))return n.key===e;var o=!1;return p.default.forOwn(e,function(e,t){if(!(o=p.default.get(n,t)===e))return!1}),o}function s(e){return parseFloat(p.default.isString(e)?e.replace(/[^\de.+-]/gi,""):e)}function m(e,t,n,o){var r=null;return n&&(r=v({data:n},t.when)),o&&p.default.isNil(r)&&(r=v({data:o},t.when)),p.default.isNil(r)&&(r=""),p.default.isObject(r)&&p.default.has(r,t.eq)?r[t.eq].toString()===t.show.toString():Array.isArray(r)&&-1!==r.indexOf(t.eq)?"true"===t.show.toString():r.toString()===t.eq.toString()==("true"===t.show.toString())}function h(e,t,n,o,r,i,a,s){"string"==typeof t&&(t="var "+i+" = true; "+t+"; return "+i+";");var l=s&&s.evaluate?s.evaluate(t):f(t,{row:n,data:o,form:r});return null===l?a:l}function g(t,e,n,o,r,i){try{return u.default.apply(e,{data:o,row:n,form:r,_:p.default})}catch(e){return console.warn("An error occurred in jsonLogic advanced condition for "+t.key,e),i}}function v(e,t){return function n(e){if(p.default.isPlainObject(e)){if(p.default.has(e,t))return e[t];var o=null;return p.default.forOwn(e,function(e){var t=n(e);if(!p.default.isNil(t))return o=t,!1}),o}return null}(e.data)}function b(t,n){try{return p.default.template(t,{evaluate:/\{%(.+?)%\}/g,interpolate:/\{\{(.+?)\}\}/g,escape:/\{\{\{(.+?)\}\}\}/g})(n)}catch(e){console.warn("Error interpolating template",e,t,n)}}function y(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}e("./jsonlogic/operators").lodashOperators.forEach(function(e){return u.default.add_operation("_"+e,p.default[e])}),u.default.add_operation("getDate",function(e){return(0,o.default)(e).toISOString()}),u.default.add_operation("relativeMinDate",function(e){return(0,o.default)().subtract(e,"days").toISOString()}),u.default.add_operation("relativeMaxDate",function(e){return(0,o.default)().add(e,"days").toISOString()}),n.jsonLogic=u.default},{"./jsonlogic/operators":2,"json-logic-js":8,lodash:213,moment:232}],4:[function(_dereq_,module,exports){(function(global){"use strict"; /*! ng-formio v2.35.6 | https://unpkg.com/ng-formio@2.35.6/LICENSE.txt */ /*! ng-formio v2.35.6 | https://unpkg.com/ng-formio@2.35.6/LICENSE.txt */ !function(e){if("object"==typeof exports&&void 0!==module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:this).formio=e()}}(function(){var define,module,exports;return function i(a,s,l){function u(t,e){if(!s[t]){if(!a[t]){var n="function"==typeof _dereq_&&_dereq_;if(!e&&n)return n(t,!0);if(c)return c(t,!0);var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}var r=s[t]={exports:{}};a[t][0].call(r.exports,function(e){return u(a[t][1][e]||e)},r,r.exports,i,a,s,l)}return s[t].exports}for(var c="function"==typeof _dereq_&&_dereq_,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,n){var o;o=function(e){e.module("ckeditor",[]).directive("ckeditor",["$parse",function(a){return{restrict:"A",require:["ckeditor","ngModel"],controller:["$scope","$element","$attrs","$parse","$q",t],link:function(e,t,n,o){var r=o[0],i=o[1];r.ready().then(function(){["dataReady","change","blur","saveSnapshot"].forEach(function(e){r.onCKEvent(e,function(){i.$setViewValue(r.instance.getData()||"")})}),r.instance.setReadOnly(!!n.readonly),n.$observe("readonly",function(e){r.instance.setReadOnly(!!e)}),u(function(){a(n.ready)(e)})}),i.$render=function(){r.ready().then(function(){r.instance.setData(i.$viewValue||"",{noSnapshot:!0,callback:function(){r.instance.fire("updateSnapshot")}})})}}}}]);var u=window&&window.setImmediate?window.setImmediate:function(e){setTimeout(e,0)};function t(o,e,t,n,r){var i,a=n(t.ckeditor)(o)||{},s=e[0],l=r.defer();i=s.hasAttribute("contenteditable")&&"true"==s.getAttribute("contenteditable").toLowerCase()?this.instance=CKEDITOR.inline(s,a):this.instance=CKEDITOR.replace(s,a),this.onCKEvent=function(e,t){function n(){var e=arguments;o.$apply(function(){t.apply(null,e)})}return i.on(e,function(){var e=arguments;u(function(){n.apply(null,e)})}),function(){i.removeListener(e,n)}},this.onCKEvent("instanceReady",function(){l.resolve(!0)}),this.ready=function(){return l.promise},o.$on("$destroy",function(){l.promise.then(function(){i.destroy(!1)})})}},"function"==typeof define&&define.amd?define(["angular"],o):o(angular)},{}],2:[function(e,r,i){!function(e,t){if("object"==typeof i&&"object"==typeof r)r.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof i?i:e)[o]=n[o]}}(this,function(){return function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}return r.m=n,r.c=o,r.p="",r(0)}([function(e,t,n){e.exports="ngFileSaver",angular.module("ngFileSaver",[]).factory("FileSaver",["Blob","SaveAs","FileSaverUtils",n(1)]).factory("FileSaverUtils",[n(2)]).factory("Blob",["$window",n(3)]).factory("SaveAs",[n(5)])},function(e,t){e.exports=function(e,o,r){return{saveAs:function(e,t,n){return r.isBlobInstance(e)||r.handleErrors("Data argument should be a blob instance"),r.isString(t)||r.handleErrors("Filename argument should be a string"),function(e,t,n){try{o(e,t,n)}catch(e){r.handleErrors(e.message)}}(e,t,n)}}}},function(e,t){e.exports=function(){return{handleErrors:function(e){throw new Error(e)},isString:function(e){return"string"==typeof e||e instanceof String},isUndefined:function(e){return void 0===e},isBlobInstance:function(e){return e instanceof Blob}}}},function(e,t,n){n(4),e.exports=function(e){return e.Blob}},function(e,t){ /*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */ !function(e){if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return new Blob}catch(e){}var s=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var s=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},t=function(){this.data=[]},l=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},n=t.prototype,o=l.prototype,u=e.FileReaderSync,c=function(e){this.code=this[this.name=e]},r="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),i=r.length,a=e.URL||e.webkitURL||e,p=a.createObjectURL,f=a.revokeObjectURL,d=a,m=e.btoa,h=e.atob,g=e.ArrayBuffer,v=e.Uint8Array,b=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(l.fake=o.fake=!0;i--;)c.prototype[r[i]]=i+1;return a.createObjectURL||(d=e.URL=function(e){var t,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=e,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(t=e.match(b),n.origin=t&&t[1])),n}),d.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof l?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):m?t+";base64,"+m(e.data):t+","+encodeURIComponent(e.data)):p?p.call(a,e):void 0},d.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&f&&f.call(a,e)},n.append=function(e){var t=this.data;if(v&&(e instanceof g||e instanceof v)){for(var n="",o=new v(e),r=0,i=o.length;r<i;r++)n+=String.fromCharCode(o[r]);t.push(n)}else if("Blob"===s(e)||"File"===s(e)){if(!u)throw new c("NOT_READABLE_ERR");var a=new u;t.push(a.readAsBinaryString(e))}else e instanceof l?"base64"===e.encoding&&h?t.push(h(e.data)):"URI"===e.encoding?t.push(decodeURIComponent(e.data)):"raw"===e.encoding&&t.push(e.data):("string"!=typeof e&&(e+=""),t.push(unescape(encodeURIComponent(e))))},n.getBlob=function(e){return arguments.length||(e=null),new l(this.data.join(""),e,"raw")},n.toString=function(){return"[object BlobBuilder]"},o.slice=function(e,t,n){var o=arguments.length;return o<3&&(n=null),new l(this.data.slice(e,1<o?t:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},t}(e);e.Blob=function(e,t){var n=t&&t.type||"",o=new s;if(e)for(var r=0,i=e.length;r<i;r++)Uint8Array&&e[r]instanceof Uint8Array?o.append(e[r].buffer):o.append(e[r]);var a=o.getBlob(n);return!a.slice&&a.webkitSlice&&(a.slice=a.webkitSlice),a};var t=Object.getPrototypeOf||function(e){return e.__proto__};e.Blob.prototype=t(new e.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},function(e,t,n){e.exports=function(){return n(6).saveAs||function(){}}},function(e,t,n){var o,r=r||function(s){if(!(void 0===s||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=s.document,l=function(){return s.URL||s.webkitURL||s},u=e.createElementNS("http://www.w3.org/1999/xhtml","a"),c="download"in u,p=/constructor/i.test(s.HTMLElement)||s.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent),d=function(e){(s.setImmediate||s.setTimeout)(function(){throw e},0)},m=function(e){setTimeout(function(){"string"==typeof e?l().revokeObjectURL(e):e.remove()},4e4)},h=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},o=function(e,n,t){t||(e=h(e));var o,r=this,i="application/octet-stream"===e.type,a=function(){!function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){d(e)}}}(r,"writestart progress write writeend".split(" "))};if(r.readyState=r.INIT,c)return o=l().createObjectURL(e),void setTimeout(function(){var e,t;u.href=o,u.download=n,e=u,t=new MouseEvent("click"),e.dispatchEvent(t),a(),m(o),r.readyState=r.DONE});!function(){if((f||i&&p)&&s.FileReader){var t=new FileReader;return t.onloadend=function(){var e=f?t.result:t.result.replace(/^data:[^;]*;/,"data:attachment/file;");s.open(e,"_blank")||(s.location.href=e),e=void 0,r.readyState=r.DONE,a()},t.readAsDataURL(e),r.readyState=r.INIT}o||(o=l().createObjectURL(e)),i?s.location.href=o:s.open(o,"_blank")||(s.location.href=o);r.readyState=r.DONE,a(),m(o)}()},t=o.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=h(e)),navigator.msSaveOrOpenBlob(e,t)}:(t.abort=function(){},t.readyState=t.INIT=0,t.WRITING=1,t.DONE=2,t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null,function(e,t,n){return new o(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content); /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */void 0!==e&&e.exports?e.exports.saveAs=r:null!==n(7)&&null!==n(8)&&(void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o))},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){(function(e){t.exports=e}).call(e,{})}])})},{}],3:[function(o,r,e){(function(n){!function(){function k(e){return angular.isUndefined(e)||null===e}function e(_,e){if(void 0===e){if("function"!=typeof o)throw new Error("Moment cannot be found by angular-moment! Please reference to: https://github.com/urish/angular-moment");e=function(){try{return o("moment")}catch(e){throw new Error("Please install moment via npm. Please reference to: https://github.com/urish/angular-moment")}}()}return _.module("angularMoment",[]).constant("angularMomentConfig",{preprocess:null,timezone:null,format:null,statefulFilters:!0}).constant("moment",e).constant("amTimeAgoConfig",{withoutSuffix:!1,serverTime:null,titleFormat:null,fullDateThreshold:null,fullDateFormat:null,fullDateThresholdUnit:"day"}).directive("amTimeAgo",["$window","moment","amMoment","amTimeAgoConfig",function(y,$,w,x){return function(e,a,t){var n,o,s=null,l=x.withoutSuffix,u=x.titleFormat,c=x.fullDateThreshold,p=x.fullDateFormat,f=x.fullDateThresholdUnit,r=(new Date).getTime(),i=t.amTimeAgo,d="TIME"===a[0].nodeName.toUpperCase(),m=!a.attr("title");function h(){var e;if(o)e=o;else if(x.serverTime){var t=(new Date).getTime()-r+x.serverTime;e=$(t)}else e=$();return e}function g(){s&&(y.clearTimeout(s),s=null)}function v(e){d&&a.attr("datetime",e)}function b(){if(g(),n){var e=w.preprocessDate(n);!function e(t){var n=h().diff(t,f),o=c&&c<=n;if(o?a.text(t.format(p)):a.text(t.from(h(),l)),u&&m&&a.attr("title",t.format(u)),!o){var r=Math.abs(h().diff(t,"minute")),i=3600;r<1?i=1:r<60?i=30:r<180&&(i=300),s=y.setTimeout(function(){e(t)},1e3*i)}}(e),v(e.toISOString())}}e.$watch(i,function(e){if(k(e)||""===e)return g(),void(n&&(a.text(""),v(""),n=null));n=e,b()}),_.isDefined(t.amFrom)&&e.$watch(t.amFrom,function(e){o=k(e)||""===e?null:$(e),b()}),_.isDefined(t.amWithoutSuffix)&&e.$watch(t.amWithoutSuffix,function(e){"boolean"==typeof e?(l=e,b()):l=x.withoutSuffix}),t.$observe("amFullDateThreshold",function(e){c=e,b()}),t.$observe("amFullDateFormat",function(e){p=e,b()}),t.$observe("amFullDateThresholdUnit",function(e){f=e,b()}),e.$on("$destroy",function(){g()}),e.$on("amMoment:localeChanged",function(){b()})}}]).service("amMoment",["moment","$rootScope","$log","angularMomentConfig",function(o,r,t,n){var i=null;this.changeLocale=function(e,t){var n=o.locale(e,t);return _.isDefined(e)&&r.$broadcast("amMoment:localeChanged"),n},this.changeTimezone=function(e){o.tz&&o.tz.setDefault?(o.tz.setDefault(e),r.$broadcast("amMoment:timezoneChanged")):t.warn("angular-moment: changeTimezone() works only with moment-timezone.js v0.3.0 or greater."),n.timezone=e,i=e},this.preprocessDate=function(e){return i!==n.timezone&&this.changeTimezone(n.timezone),n.preprocess?n.preprocess(e):!isNaN(parseFloat(e))&&isFinite(e)?o(parseInt(e,10)):o(e)}}]).filter("amParse",["moment",function(n){return function(e,t){return n(e,t)}}]).filter("amFromUnix",["moment",function(t){return function(e){return t.unix(e)}}]).filter("amUtc",["moment",function(t){return function(e){return t.utc(e)}}]).filter("amUtcOffset",["amMoment",function(n){return function(e,t){return n.preprocessDate(e).utcOffset(t)}}]).filter("amLocal",["moment",function(t){return function(e){return t.isMoment(e)?e.local():null}}]).filter("amTimezone",["amMoment","angularMomentConfig","$log",function(o,e,r){return function(e,t){var n=o.preprocessDate(e);return t?n.tz?n.tz(t):(r.warn("angular-moment: named timezone specified but moment.tz() is undefined. Did you forget to include moment-timezone.js ?"),n):n}}]).filter("amCalendar",["moment","amMoment","angularMomentConfig",function(e,r,t){function n(e,t,n){if(k(e))return"";var o=r.preprocessDate(e);return o.isValid()?o.calendar(t,n):""}return n.$stateful=t.statefulFilters,n}]).filter("amDifference",["moment","amMoment","angularMomentConfig",function(a,s,e){function t(e,t,n,o){if(k(e))return"";var r=s.preprocessDate(e),i=k(t)?a():s.preprocessDate(t);return r.isValid()&&i.isValid()?r.diff(i,n,o):""}return t.$stateful=e.statefulFilters,t}]).filter("amDateFormat",["moment","amMoment","angularMomentConfig",function(e,o,t){function n(e,t){if(k(e))return"";var n=o.preprocessDate(e);return n.isValid()?n.format(t):""}return n.$stateful=t.statefulFilters,n}]).filter("amDurationFormat",["moment","angularMomentConfig",function(o,e){function t(e,t,n){return k(e)?"":o.duration(e,t).humanize(n)}return t.$stateful=e.statefulFilters,t}]).filter("amTimeAgo",["moment","amMoment","angularMomentConfig",function(i,a,e){function t(e,t,n){var o,r;return k(e)?"":(e=a.preprocessDate(e),(o=i(e)).isValid()?(r=i(n),!k(n)&&r.isValid()?o.from(r,t):o.fromNow(t)):"")}return t.$stateful=e.statefulFilters,t}]).filter("amSubtract",["moment","angularMomentConfig",function(o,e){function t(e,t,n){return k(e)?"":o(e).subtract(parseInt(t,10),n)}return t.$stateful=e.statefulFilters,t}]).filter("amAdd",["moment","angularMomentConfig",function(o,e){function t(e,t,n){return k(e)?"":o(e).add(parseInt(t,10),n)}return t.$stateful=e.statefulFilters,t}]).filter("amStartOf",["moment","angularMomentConfig",function(n,e){function t(e,t){return k(e)?"":n(e).startOf(t)}return t.$stateful=e.statefulFilters,t}]).filter("amEndOf",["moment","angularMomentConfig",function(n,e){function t(e,t){return k(e)?"":n(e).endOf(t)}return t.$stateful=e.statefulFilters,t}]),"angularMoment"}var t=window&&window.process&&window.process.type;"function"==typeof define&&define.amd?define(["angular","moment"],e):void 0!==r&&r&&r.exports&&"function"==typeof o&&!t?r.exports=e(o("angular"),o("moment")):e(angular,(void 0!==n&&void 0!==n.moment?n:window).moment)}()}).call(this,void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{angular:10,moment:209}],4:[function(e,t,n){var k,C,S,O,D,T,A,E,M,P,I,j,L;k=window,C=window.angular,L=C.$$minErr("$sanitize"),C.module("ngSanitize",[]).provider("$sanitize",function(){var t=!1,o=!1;this.$get=["$$sanitizeUri",function(n){return t=!0,o&&O(f,c),function(e){var t=[];return I(e,j(t,function(e,t){return!/^unsafe:/.test(n(e,t))})),t.join("")}}],this.enableSvg=function(e){return A(e)?(o=e,this):o},this.addValidElements=function(e){return t||(T(e)&&(e={htmlElements:e}),y(c,e.svgElements),y(s,e.htmlVoidElements),y(f,e.htmlVoidElements),y(f,e.htmlElements)),this},this.addValidAttrs=function(e){return t||O(g,b(e,!0)),this},S=C.bind,O=C.extend,D=C.forEach,T=C.isArray,A=C.isDefined,E=C.$$lowercase,M=C.noop,I=function(e,t){null==e?e="":"string"!=typeof e&&(e=""+e);var n=$(e);if(!n)return"";var o=5;do{if(0===o)throw L("uinput","Failed to sanitize html because the input is unstable");o--,e=n.innerHTML,n=$(e)}while(e!==n.innerHTML);for(var r=n.firstChild;r;){switch(r.nodeType){case 1:t.start(r.nodeName.toLowerCase(),w(r.attributes));break;case 3:t.chars(r.textContent)}var i;if(!((i=r.firstChild)||(1===r.nodeType&&t.end(r.nodeName.toLowerCase()),i=_("nextSibling",r))))for(;null==i&&(r=_("parentNode",r))!==n;)i=_("nextSibling",r),1===r.nodeType&&t.end(r.nodeName.toLowerCase());r=i}for(;r=n.firstChild;)n.removeChild(r)},j=function(e,i){var t=!1,a=S(e,e.push);return{start:function(r,e){r=E(r),!t&&p[r]&&(t=r),t||!0!==f[r]||(a("<"),a(r),D(e,function(e,t){var n=E(t),o="img"===r&&"src"===n||"background"===n;!0!==g[n]||!0===d[n]&&!i(e,o)||(a(" "),a(t),a('="'),a(x(e)),a('"'))}),a(">"))},end:function(e){e=E(e),t||!0!==f[e]||!0===s[e]||(a("</"),a(e),a(">")),e==t&&(t=!1)},chars:function(e){t||a(x(e))}}},P=k.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,r=/([^#-~ |!])/g,s=v("area,br,col,hr,img,wbr"),e=v("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),i=v("rp,rt"),a=O({},i,e),l=O({},e,v("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),u=O({},i,v("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),c=v("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),p=v("script,style"),f=O({},s,l,u,a),d=v("background,cite,href,longdesc,src,xlink:href,xml:base"),m=v("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),h=v("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),g=O({},d,h,m);function v(e,t){return b(e.split(","),t)}function b(e,t){var n,o={};for(n=0;n<e.length;n++)o[t?E(e[n]):e[n]]=!0;return o}function y(e,t){t&&t.length&&O(e,b(t))}var $=function(o,t){var e;if(!t||!t.implementation)throw L("noinert","Can't create an inert html document");var n=((e=t.implementation.createHTMLDocument("inert")).documentElement||e.getDocumentElement()).querySelector("body");return n.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',n.querySelector("svg")?(n.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',n.querySelector("svg img")?function(e){e="<remove></remove>"+e;try{var t=(new o.DOMParser).parseFromString(e,"text/html").body;return t.firstChild.remove(),t}catch(e){return}}:function(e){return n.innerHTML=e,t.documentMode&&function e(t){for(;t;){if(t.nodeType===k.Node.ELEMENT_NODE)for(var n=t.attributes,o=0,r=n.length;o<r;o++){var i=n[o],a=i.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(i),o--,r--)}var s=t.firstChild;s&&e(s),t=_("nextSibling",t)}}(n),n}):function(e){e="<remove></remove>"+e;try{e=encodeURI(e)}catch(e){return}var t=new o.XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.firstChild.remove(),n}}(k,k.document);function w(e){for(var t={},n=0,o=e.length;n<o;n++){var r=e[n];t[r.name]=r.value}return t}function x(e){return e.replace(/&/g,"&amp;").replace(n,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(r,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _(e,t){var n=t[e];if(n&&P.call(t,n))throw L("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}}).info({angularVersion:"1.7.2"}),C.module("ngSanitize").filter("linky",["$sanitize",function(p){var f=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,d=/^mailto:/i,m=C.$$minErr("linky"),h=C.isDefined,g=C.isFunction,v=C.isObject,b=C.isString;return function(e,r,t){if(null==e||""===e)return e;if(!b(e))throw m("notstring","Expected string but received: {0}",e);for(var n,o,i,a=g(t)?t:v(t)?function(){return t}:function(){return{}},s=e,l=[];n=s.match(f);)o=n[0],n[2]||n[4]||(o=(n[3]?"http://":"mailto:")+o),i=n.index,u(s.substr(0,i)),c(o,n[0].replace(d,"")),s=s.substring(i+n[0].length);return u(s),p(l.join(""));function u(e){var t,n;e&&l.push((t=e,j(n=[],M).chars(t),n.join("")))}function c(e,t){var n,o=a(e);for(n in l.push("<a "),o)l.push(n+'="'+o[n]+'" ');!h(r)||"target"in o||l.push('target="',r,'" '),l.push('href="',e.replace(/"/g,"&quot;"),'">'),u(t),l.push("</a>")}}}])},{}],5:[function(e,t,n){e("./angular-sanitize"),t.exports="ngSanitize"},{"./angular-sanitize":4}],6:[function(e,t,n){angular.module("ui.ace",[]).constant("uiAceConfig",{}).directive("uiAce",["uiAceConfig",function(m){if(angular.isUndefined(window.ace))throw new Error("ui-ace need ace to work... (o rly?)");return{restrict:"EA",require:"?ngModel",link:function(o,e,n,r){var i,a,s=m.ace||{},l=angular.extend({},s,o.$eval(n.uiAce)),u=window.ace.edit(e[0]),c=u.getSession(),p=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);angular.isDefined(e)&&o.$evalAsync(function(){if(!angular.isFunction(e))throw new Error("ui-ace use a function as callback.");e(t)})},f=function(n){return function(e){var t=c.getValue();!r||t===r.$viewValue||o.$$phase||o.$root.$$phase||o.$evalAsync(function(){r.$setViewValue(t)}),p(n,e,u)}},d=function(e){return function(){p(e,u)}};n.$observe("readonly",function(e){u.setReadOnly(!!e||""===e)}),r&&(r.$formatters.push(function(e){if(angular.isUndefined(e)||null===e)return"";if(angular.isObject(e)||angular.isArray(e))throw new Error("ui-ace cannot use an object or an array as a model");return e}),r.$render=function(){c.setValue(r.$viewValue)});var t=function(e,t){e!==t&&((l=angular.extend({},s,o.$eval(n.uiAce))).callbacks=[l.onLoad],l.onLoad!==s.onLoad&&l.callbacks.unshift(s.onLoad),c.removeListener("change",i),i=f(l.onChange),c.on("change",i),u.removeListener("blur",a),a=d(l.onBlur),u.on("blur",a),function(t,e,n){var o,r;angular.isDefined(n.workerPath)&&window.ace.require("ace/config").set("workerPath",n.workerPath);if(angular.isDefined(n.require)&&n.require.forEach(function(e){window.ace.require(e)}),angular.isDefined(n.showGutter)&&t.renderer.setShowGutter(n.showGutter),angular.isDefined(n.useWrapMode)&&e.setUseWrapMode(n.useWrapMode),angular.isDefined(n.showInvisibles)&&t.renderer.setShowInvisibles(n.showInvisibles),angular.isDefined(n.showIndentGuides)&&t.renderer.setDisplayIndentGuides(n.showIndentGuides),angular.isDefined(n.useSoftTabs)&&e.setUseSoftTabs(n.useSoftTabs),angular.isDefined(n.showPrintMargin)&&t.setShowPrintMargin(n.showPrintMargin),angular.isDefined(n.disableSearch)&&n.disableSearch&&t.commands.addCommands([{name:"unfind",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(){return!1},readOnly:!0}]),angular.isString(n.theme)&&t.setTheme("ace/theme/"+n.theme),angular.isString(n.mode)&&e.setMode("ace/mode/"+n.mode),angular.isDefined(n.firstLineNumber)&&(angular.isNumber(n.firstLineNumber)?e.setOption("firstLineNumber",n.firstLineNumber):angular.isFunction(n.firstLineNumber)&&e.setOption("firstLineNumber",n.firstLineNumber())),angular.isDefined(n.advanced))for(o in n.advanced)r={name:o,value:n.advanced[o]},t.setOption(r.name,r.value);if(angular.isDefined(n.rendererOptions))for(o in n.rendererOptions)r={name:o,value:n.rendererOptions[o]},t.renderer.setOption(r.name,r.value);angular.forEach(n.callbacks,function(e){angular.isFunction(e)&&e(t)})}(u,c,l))};o.$watch(n.uiAce,t,!0),t(s),e.on("$destroy",function(){u.session.$stopWorker(),u.destroy()}),o.$watch(function(){return[e[0].offsetWidth,e[0].offsetHeight]},function(){u.resize(),u.renderer.updateFull()},!0)}}}])},{}],7:[function(e,t,n){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.multiMap","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(d,m,h,e){var g=e.has("$animateCss")?e.get("$animateCss"):null;return{link:function(t,n,e){var o=h(e.expanding),r=h(e.expanded),i=h(e.collapsing),a=h(e.collapsed),s=!1,l={},u={};function c(e){return s?{width:e.scrollWidth+"px"}:{height:e.scrollHeight+"px"}}function p(){n.removeClass("collapsing").addClass("collapse").css(l),r(t)}function f(){n.css(u),n.removeClass("collapsing").addClass("collapse"),a(t)}!function(){(s=!!("horizontal"in e))?(l={width:""},u={width:"0"}):(l={height:""},u={height:"0"});t.$eval(e.uibCollapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(l)}(),t.$watch(e.uibCollapse,function(e){e?function(){if(!n.hasClass("collapse")&&!n.hasClass("in"))return f();m.resolve(i(t)).then(function(){n.css(c(n[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),g?g(n,{removeClass:"in",to:u}).start().finally(f):d.removeClass(n,"in",{to:u}).then(f)},angular.noop)}():n.hasClass("collapse")&&n.hasClass("in")||m.resolve(o(t)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),g?g(n,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:c(n[0])}).start().finally(p):d.addClass(n,"in",{css:{overflow:"hidden"},to:c(n[0])}).then(p)},angular.noop)})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(e,t,n){n.$observe("disabled",function(e){n.$set("tabindex",e?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,n,o){this.groups=[],this.closeOthers=function(t){(angular.isDefined(n.closeOthers)?e.$eval(n.closeOthers):o.closeOthers)&&angular.forEach(this.groups,function(e){e!==t&&(e.isOpen=!1)})},this.addGroup=function(t){var n=this;this.groups.push(t),t.$on("$destroy",function(e){n.removeGroup(t)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(t,n,e,o){n.addClass("panel"),o.addGroup(t),t.openClass=e.openClass||"panel-open",t.panelClass=e.panelClass||"panel-default",t.$watch("isOpen",function(e){n.toggleClass(t.openClass,!!e),e&&o.closeOthers(t)}),t.toggleOpen=function(e){t.isDisabled||e&&32!==e.which||(t.isOpen=!t.isOpen)};var r="accordiongroup-"+t.$id+"-"+Math.floor(1e4*Math.random());t.headingId=r+"-tab",t.panelId=r+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,o,r){o.setHeading(r(e,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(e,n,t,o){e.$watch(function(){return o[t.uibAccordionTransclude]},function(e){if(e){var t=angular.element(n[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"));t.html(""),t.append(e)}})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(e,t,n,o,r){e.closeable=!!n.close,t.addClass("alert"),n.$set("role","alert"),e.closeable&&t.addClass("alert-dismissible");var i=angular.isDefined(n.dismissOnTimeout)?o(n.dismissOnTimeout)(e.$parent):null;i&&r(function(){e.close()},parseInt(i,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(s){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,o,e){var r=e[0],i=e[1],a=s(o.uibUncheckable);n.find("input").css({display:"none"}),i.$render=function(){n.toggleClass(r.activeClass,angular.equals(i.$modelValue,t.$eval(o.uibBtnRadio)))},n.on(r.toggleEvent,function(){if(!o.disabled){var e=n.hasClass(r.activeClass);e&&!angular.isDefined(o.uncheckable)||t.$apply(function(){i.$setViewValue(e?null:t.$eval(o.uibBtnRadio)),i.$render()})}}),o.uibUncheckable&&t.$watch(a,function(e){o.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,e,t,o){var r=o[0],i=o[1];function a(){return s(t.btnCheckboxTrue,!0)}function s(e,t){return angular.isDefined(e)?n.$eval(e):t}e.find("input").css({display:"none"}),i.$render=function(){e.toggleClass(r.activeClass,angular.equals(i.$modelValue,a()))},e.on(r.toggleEvent,function(){t.disabled||n.$apply(function(){i.$setViewValue(e.hasClass(r.activeClass)?s(t.btnCheckboxFalse,!1):a()),i.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(r,i,t,e,a){var n,o,s=this,l=s.slides=r.slides=[],u="uib-slideDirection",c=r.active,p=!1;function f(e){for(var t=0;t<l.length;t++)l[t].slide.active=t===e}function d(e){for(var t=0;t<l.length;t++)if(l[t].slide===e)return t}function m(){n&&(t.cancel(n),n=null)}function h(){m();var e=+r.interval;!isNaN(e)&&0<e&&(n=t(g,e))}function g(){var e=+r.interval;o&&!isNaN(e)&&0<e&&l.length?r.next():r.pause()}i.addClass("carousel"),s.addSlide=function(e,t){l.push({slide:e,element:t}),l.sort(function(e,t){return+e.slide.index-+t.slide.index}),(e.index===r.active||1===l.length&&!angular.isNumber(r.active))&&(r.$currentTransition&&(r.$currentTransition=null),c=e.index,r.active=e.index,f(c),s.select(l[d(e)]),1===l.length&&r.play())},s.getCurrentIndex=function(){for(var e=0;e<l.length;e++)if(l[e].slide.index===c)return e},s.next=r.next=function(){var e=(s.getCurrentIndex()+1)%l.length;if(0!==e||!r.noWrap())return s.select(l[e],"next");r.pause()},s.prev=r.prev=function(){var e=s.getCurrentIndex()-1<0?l.length-1:s.getCurrentIndex()-1;if(!r.noWrap()||e!==l.length-1)return s.select(l[e],"prev");r.pause()},s.removeSlide=function(e){var t=d(e);l.splice(t,1),0<l.length&&c===t?t>=l.length?(c=l.length-1,f(r.active=c),s.select(l[l.length-1])):(c=t,f(r.active=c),s.select(l[t])):t<c&&(c--,r.active=c),0===l.length&&(c=null,r.active=null)},s.select=r.select=function(e,t){var n=d(e.slide);void 0===t&&(t=n>s.getCurrentIndex()?"next":"prev"),e.slide.index===c||r.$currentTransition||function(e,t,n){if(p)return;if(angular.extend(e,{direction:n}),angular.extend(l[c].slide||{},{direction:n}),a.enabled(i)&&!r.$currentTransition&&l[t].element&&1<s.slides.length){l[t].element.data(u,e.direction);var o=s.getCurrentIndex();angular.isNumber(o)&&l[o].element&&l[o].element.data(u,e.direction),r.$currentTransition=!0,a.on("addClass",l[t].element,function(e,t){"close"===t&&(r.$currentTransition=null,a.off("addClass",e))})}r.active=e.index,c=e.index,f(t),h()}(e.slide,n,t)},r.indexOfSlide=function(e){return+e.slide.index},r.isActive=function(e){return r.active===e.slide.index},r.isPrevDisabled=function(){return 0===r.active&&r.noWrap()},r.isNextDisabled=function(){return r.active===l.length-1&&r.noWrap()},r.pause=function(){r.noPause||(o=!1,m())},r.play=function(){o||(o=!0,h())},i.on("mouseenter",r.pause),i.on("mouseleave",r.play),r.$on("$destroy",function(){p=!0,m()}),r.$watch("noTransition",function(e){a.enabled(i,!e)}),r.$watch("interval",h),r.$watchCollection("slides",function(e){e.length||(r.$currentTransition=null)}),r.$watch("active",function(e){if(angular.isNumber(e)&&c!==e){for(var t=0;t<l.length;t++)if(l[t].slide.index===e){e=t;break}l[e]&&(f(e),s.select(l[e]),c=e)}})}]).directive("uibCarousel",function(){return