2 lines
328 KiB
JavaScript
2 lines
328 KiB
JavaScript
function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _typeof2(obj){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof2(obj)}(function(){'use strict';var loaderScript=document.getElementById("amd-loader"),configUrl=loaderScript.getAttribute("data-config"),bundle=loaderScript.getAttribute("data-bundle"),loadController=function(){var controllerOptions={},controllerPath=loaderScript.getAttribute("data-controller"),params=loaderScript.getAttribute("data-params");try{controllerOptions=JSON.parse(params)}catch(err){controllerOptions={}}window.require([controllerPath],function(controller){var startController=function(){window.started||(window.started=!0,controller.start(controllerOptions))};document.addEventListener("readystatechange",startController,!1),"complete"===document.readyState&&startController()})};window.require([configUrl],function(){window.loadBundles||(window.loaded={},window.loadBundles=function(bundles){bundles=bundles||[],bundles=bundles.concat(window.bundles),bundles=bundles.filter(function(item,index){return item&&bundles.indexOf(item)===index&&!0!==window.loaded[item]}),require(bundles,function(){bundles.forEach(function(item){window.loaded[item]=!0}),loadController()})}),bundle||window.bundles&&window.bundles.length?window.loadBundles([bundle]):loadController()})})(),define("loader/bootstrap",function(){}),define("i18n",["json!i18ntr/messages.json","core/format"],function(i18nTr,format){'use strict';var translations=i18nTr.translations;return function(message){var localized=translations[message]||message;return 1<arguments.length&&(localized=format.apply(null,[localized].concat([].slice.call(arguments,1)))),localized}}),function(global,factory){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("lib/dompurify/purify",factory):global.DOMPurify=factory()}(this,function(){'use strict';function addToSet(set,array){setPrototypeOf&&setPrototypeOf(set,null);for(var l=array.length;l--;){var element=array[l];if("string"==typeof element){var lcElement=element.toLowerCase();lcElement!==element&&(!Object.isFrozen(array)&&(array[l]=lcElement),element=lcElement)}set[element]=!0}return set}function clone(object){var newObject={},property=void 0;for(property in object)apply$1(hasOwnProperty,object,[property])&&(newObject[property]=object[property]);return newObject}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}return Array.from(arr)}function createDOMPurify(){var window=0<arguments.length&&void 0!==arguments[0]?arguments[0]:getGlobal(),DOMPurify=function(root){return createDOMPurify(root)};if(DOMPurify.version="1.0.9",DOMPurify.removed=[],!window||!window.document||9!==window.document.nodeType)return DOMPurify.isSupported=!1,DOMPurify;var originalDocument=window.document,useDOMParser=!1,removeTitle=!1,document=window.document,DocumentFragment=window.DocumentFragment,HTMLTemplateElement=window.HTMLTemplateElement,Node=window.Node,NodeFilter=window.NodeFilter,_window$NamedNodeMap=window.NamedNodeMap,NamedNodeMap=void 0===_window$NamedNodeMap?window.NamedNodeMap||window.MozNamedAttrMap:_window$NamedNodeMap,Text=window.Text,Comment=window.Comment,DOMParser=window.DOMParser,TrustedTypes=window.TrustedTypes;if("function"==typeof HTMLTemplateElement){var template=document.createElement("template");template.content&&template.content.ownerDocument&&(document=template.content.ownerDocument)}var trustedTypesPolicy=_createTrustedTypesPolicy(TrustedTypes,originalDocument),emptyHTML=trustedTypesPolicy?trustedTypesPolicy.createHTML(""):"",_document=document,implementation=_document.implementation,createNodeIterator=_document.createNodeIterator,getElementsByTagName=_document.getElementsByTagName,createDocumentFragment=_document.createDocumentFragment,importNode=originalDocument.importNode,hooks={};DOMPurify.isSupported=implementation&&"undefined"!=typeof implementation.createHTMLDocument&&9!==document.documentMode;var MUSTACHE_EXPR$$1=MUSTACHE_EXPR,ERB_EXPR$$1=ERB_EXPR,ATTR_WHITESPACE$$1=ATTR_WHITESPACE,IS_ALLOWED_URI$$1=IS_ALLOWED_URI,ALLOWED_TAGS=null,DEFAULT_ALLOWED_TAGS=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(svgFilters),_toConsumableArray(mathMl),_toConsumableArray(text))),ALLOWED_ATTR=null,DEFAULT_ALLOWED_ATTR=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(mathMl$1),_toConsumableArray(xml))),FORBID_TAGS=null,FORBID_ATTR=null,ALLOW_ARIA_ATTR=!0,ALLOW_DATA_ATTR=!0,ALLOW_UNKNOWN_PROTOCOLS=!1,SAFE_FOR_JQUERY=!1,SAFE_FOR_TEMPLATES=!1,WHOLE_DOCUMENT=!1,SET_CONFIG=!1,FORCE_BODY=!1,RETURN_DOM=!1,RETURN_DOM_FRAGMENT=!1,RETURN_DOM_IMPORT=!1,SANITIZE_DOM=!0,KEEP_CONTENT=!0,IN_PLACE=!1,USE_PROFILES={},FORBID_CONTENTS=addToSet({},["audio","head","math","script","style","template","svg","video"]),DATA_URI_TAGS=addToSet({},["audio","video","img","source","image"]),URI_SAFE_ATTRIBUTES=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),CONFIG=null,formElement=document.createElement("form"),_parseConfig=function(cfg){CONFIG&&CONFIG===cfg||((!cfg||"object"!==("undefined"==typeof cfg?"undefined":_typeof(cfg)))&&(cfg={}),ALLOWED_TAGS="ALLOWED_TAGS"in cfg?addToSet({},cfg.ALLOWED_TAGS):DEFAULT_ALLOWED_TAGS,ALLOWED_ATTR="ALLOWED_ATTR"in cfg?addToSet({},cfg.ALLOWED_ATTR):DEFAULT_ALLOWED_ATTR,FORBID_TAGS="FORBID_TAGS"in cfg?addToSet({},cfg.FORBID_TAGS):{},FORBID_ATTR="FORBID_ATTR"in cfg?addToSet({},cfg.FORBID_ATTR):{},USE_PROFILES=!!("USE_PROFILES"in cfg)&&cfg.USE_PROFILES,ALLOW_ARIA_ATTR=!1!==cfg.ALLOW_ARIA_ATTR,ALLOW_DATA_ATTR=!1!==cfg.ALLOW_DATA_ATTR,ALLOW_UNKNOWN_PROTOCOLS=cfg.ALLOW_UNKNOWN_PROTOCOLS||!1,SAFE_FOR_JQUERY=cfg.SAFE_FOR_JQUERY||!1,SAFE_FOR_TEMPLATES=cfg.SAFE_FOR_TEMPLATES||!1,WHOLE_DOCUMENT=cfg.WHOLE_DOCUMENT||!1,RETURN_DOM=cfg.RETURN_DOM||!1,RETURN_DOM_FRAGMENT=cfg.RETURN_DOM_FRAGMENT||!1,RETURN_DOM_IMPORT=cfg.RETURN_DOM_IMPORT||!1,FORCE_BODY=cfg.FORCE_BODY||!1,SANITIZE_DOM=!1!==cfg.SANITIZE_DOM,KEEP_CONTENT=!1!==cfg.KEEP_CONTENT,IN_PLACE=cfg.IN_PLACE||!1,IS_ALLOWED_URI$$1=cfg.ALLOWED_URI_REGEXP||IS_ALLOWED_URI$$1,SAFE_FOR_TEMPLATES&&(ALLOW_DATA_ATTR=!1),RETURN_DOM_FRAGMENT&&(RETURN_DOM=!0),USE_PROFILES&&(ALLOWED_TAGS=addToSet({},[].concat(_toConsumableArray(text))),ALLOWED_ATTR=[],!0===USE_PROFILES.html&&(addToSet(ALLOWED_TAGS,html),addToSet(ALLOWED_ATTR,html$1)),!0===USE_PROFILES.svg&&(addToSet(ALLOWED_TAGS,svg),addToSet(ALLOWED_ATTR,svg$1),addToSet(ALLOWED_ATTR,xml)),!0===USE_PROFILES.svgFilters&&(addToSet(ALLOWED_TAGS,svgFilters),addToSet(ALLOWED_ATTR,svg$1),addToSet(ALLOWED_ATTR,xml)),!0===USE_PROFILES.mathMl&&(addToSet(ALLOWED_TAGS,mathMl),addToSet(ALLOWED_ATTR,mathMl$1),addToSet(ALLOWED_ATTR,xml))),cfg.ADD_TAGS&&(ALLOWED_TAGS===DEFAULT_ALLOWED_TAGS&&(ALLOWED_TAGS=clone(ALLOWED_TAGS)),addToSet(ALLOWED_TAGS,cfg.ADD_TAGS)),cfg.ADD_ATTR&&(ALLOWED_ATTR===DEFAULT_ALLOWED_ATTR&&(ALLOWED_ATTR=clone(ALLOWED_ATTR)),addToSet(ALLOWED_ATTR,cfg.ADD_ATTR)),cfg.ADD_URI_SAFE_ATTR&&addToSet(URI_SAFE_ATTRIBUTES,cfg.ADD_URI_SAFE_ATTR),KEEP_CONTENT&&(ALLOWED_TAGS["#text"]=!0),WHOLE_DOCUMENT&&addToSet(ALLOWED_TAGS,["html","head","body"]),ALLOWED_TAGS.table&&addToSet(ALLOWED_TAGS,["tbody"]),freeze&&freeze(cfg),CONFIG=cfg)},_forceRemove=function(node){DOMPurify.removed.push({element:node});try{node.parentNode.removeChild(node)}catch(err){node.outerHTML=emptyHTML}},_removeAttribute=function(name,node){try{DOMPurify.removed.push({attribute:node.getAttributeNode(name),from:node})}catch(err){DOMPurify.removed.push({attribute:null,from:node})}node.removeAttribute(name)},_initDocument=function(dirty){var doc=void 0,leadingWhitespace=void 0;if(FORCE_BODY)dirty="<remove></remove>"+dirty;else{var matches=dirty.match(/^[\s]+/);leadingWhitespace=matches&&matches[0],leadingWhitespace&&(dirty=dirty.slice(leadingWhitespace.length))}if(useDOMParser)try{doc=new DOMParser().parseFromString(dirty,"text/html")}catch(err){}if(removeTitle&&addToSet(FORBID_TAGS,["title"]),!doc||!doc.documentElement){doc=implementation.createHTMLDocument("");var _doc=doc,body=_doc.body;body.parentNode.removeChild(body.parentNode.firstElementChild),body.outerHTML=trustedTypesPolicy?trustedTypesPolicy.createHTML(dirty):dirty}return leadingWhitespace&&doc.body.insertBefore(document.createTextNode(leadingWhitespace),doc.body.childNodes[0]||null),getElementsByTagName.call(doc,WHOLE_DOCUMENT?"html":"body")[0]};DOMPurify.isSupported&&(function(){try{var doc=_initDocument("<svg><p><style><img src=\"</style><img src=x onerror=1//\">");doc.querySelector("svg img")&&(useDOMParser=!0)}catch(err){}}(),function(){try{var doc=_initDocument("<x/><title></title><img>");doc.querySelector("title").innerHTML.match(/<\/title/)&&(removeTitle=!0)}catch(err){}}());var _createIterator=function(root){return createNodeIterator.call(root.ownerDocument||root,root,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT,function(){return NodeFilter.FILTER_ACCEPT},!1)},_isClobbered=function(elm){return!(elm instanceof Text||elm instanceof Comment)&&!("string"==typeof elm.nodeName&&"string"==typeof elm.textContent&&"function"==typeof elm.removeChild&&elm.attributes instanceof NamedNodeMap&&"function"==typeof elm.removeAttribute&&"function"==typeof elm.setAttribute)},_isNode=function(obj){return"object"===("undefined"==typeof Node?"undefined":_typeof(Node))?obj instanceof Node:obj&&"object"===("undefined"==typeof obj?"undefined":_typeof(obj))&&"number"==typeof obj.nodeType&&"string"==typeof obj.nodeName},_executeHook=function(entryPoint,currentNode,data){hooks[entryPoint]&&hooks[entryPoint].forEach(function(hook){hook.call(DOMPurify,currentNode,data,CONFIG)})},_sanitizeElements=function(currentNode){var content;if(_executeHook("beforeSanitizeElements",currentNode,null),_isClobbered(currentNode))return _forceRemove(currentNode),!0;var tagName=currentNode.nodeName.toLowerCase();if(_executeHook("uponSanitizeElement",currentNode,{tagName:tagName,allowedTags:ALLOWED_TAGS}),!ALLOWED_TAGS[tagName]||FORBID_TAGS[tagName]){if(KEEP_CONTENT&&!FORBID_CONTENTS[tagName]&&"function"==typeof currentNode.insertAdjacentHTML)try{var htmlToInsert=currentNode.innerHTML;currentNode.insertAdjacentHTML("AfterEnd",trustedTypesPolicy?trustedTypesPolicy.createHTML(htmlToInsert):htmlToInsert)}catch(err){}return _forceRemove(currentNode),!0}return!SAFE_FOR_JQUERY||currentNode.firstElementChild||currentNode.content&¤tNode.content.firstElementChild||!/</g.test(currentNode.textContent)||(DOMPurify.removed.push({element:currentNode.cloneNode()}),currentNode.innerHTML=currentNode.innerHTML?currentNode.innerHTML.replace(/</g,"<"):currentNode.textContent.replace(/</g,"<")),SAFE_FOR_TEMPLATES&&3===currentNode.nodeType&&(content=currentNode.textContent,content=content.replace(MUSTACHE_EXPR$$1," "),content=content.replace(ERB_EXPR$$1," "),currentNode.textContent!==content&&(DOMPurify.removed.push({element:currentNode.cloneNode()}),currentNode.textContent=content)),_executeHook("afterSanitizeElements",currentNode,null),!1},_isValidAttribute=function(lcTag,lcName,value){if(SANITIZE_DOM&&("id"===lcName||"name"===lcName)&&(value in document||value in formElement))return!1;if(SAFE_FOR_TEMPLATES&&(value=value.replace(MUSTACHE_EXPR$$1," "),value=value.replace(ERB_EXPR$$1," ")),ALLOW_DATA_ATTR&&DATA_ATTR.test(lcName));else if(ALLOW_ARIA_ATTR&&ARIA_ATTR.test(lcName));else{if(!ALLOWED_ATTR[lcName]||FORBID_ATTR[lcName])return!1;if(URI_SAFE_ATTRIBUTES[lcName]);else if(IS_ALLOWED_URI$$1.test(value.replace(ATTR_WHITESPACE$$1,"")));else if(("src"===lcName||"xlink:href"===lcName)&&"script"!==lcTag&&0===value.indexOf("data:")&&DATA_URI_TAGS[lcTag]);else if(ALLOW_UNKNOWN_PROTOCOLS&&!IS_SCRIPT_OR_DATA.test(value.replace(ATTR_WHITESPACE$$1,"")));else if(!value);else return!1}return!0},_sanitizeAttributes=function(currentNode){var attr=void 0,value=void 0,lcName=void 0,idAttr=void 0,l=void 0;_executeHook("beforeSanitizeAttributes",currentNode,null);var attributes=currentNode.attributes;if(attributes){var hookEvent={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ALLOWED_ATTR};for(l=attributes.length;l--;){attr=attributes[l];var _attr=attr,name=_attr.name,namespaceURI=_attr.namespaceURI;if(value=attr.value.trim(),lcName=name.toLowerCase(),hookEvent.attrName=lcName,hookEvent.attrValue=value,hookEvent.keepAttr=!0,_executeHook("uponSanitizeAttribute",currentNode,hookEvent),value=hookEvent.attrValue,"name"===lcName&&"IMG"===currentNode.nodeName&&attributes.id)idAttr=attributes.id,attributes=apply(arraySlice,attributes,[]),_removeAttribute("id",currentNode),_removeAttribute(name,currentNode),attributes.indexOf(idAttr)>l&¤tNode.setAttribute("id",idAttr.value);else if("INPUT"===currentNode.nodeName&&"type"===lcName&&"file"===value&&(ALLOWED_ATTR[lcName]||!FORBID_ATTR[lcName]))continue;else"id"===name&¤tNode.setAttribute(name,""),_removeAttribute(name,currentNode);if(hookEvent.keepAttr){var lcTag=currentNode.nodeName.toLowerCase();if(_isValidAttribute(lcTag,lcName,value))try{namespaceURI?currentNode.setAttributeNS(namespaceURI,name,value):currentNode.setAttribute(name,value),DOMPurify.removed.pop()}catch(err){}}}_executeHook("afterSanitizeAttributes",currentNode,null)}},_sanitizeShadowDOM=function _sanitizeShadowDOM(fragment){var shadowNode=void 0,shadowIterator=_createIterator(fragment);for(_executeHook("beforeSanitizeShadowDOM",fragment,null);shadowNode=shadowIterator.nextNode();)(_executeHook("uponSanitizeShadowNode",shadowNode,null),!_sanitizeElements(shadowNode))&&(shadowNode.content instanceof DocumentFragment&&_sanitizeShadowDOM(shadowNode.content),_sanitizeAttributes(shadowNode));_executeHook("afterSanitizeShadowDOM",fragment,null)};return DOMPurify.sanitize=function(dirty,cfg){var body=void 0,importedNode=void 0,currentNode=void 0,oldNode=void 0,returnNode=void 0;if(dirty||(dirty="<!-->"),"string"!=typeof dirty&&!_isNode(dirty))if("function"!=typeof dirty.toString)throw new TypeError("toString is not a function");else if(dirty=dirty.toString(),"string"!=typeof dirty)throw new TypeError("dirty is not a string, aborting");if(!DOMPurify.isSupported){if("object"===_typeof(window.toStaticHTML)||"function"==typeof window.toStaticHTML){if("string"==typeof dirty)return window.toStaticHTML(dirty);if(_isNode(dirty))return window.toStaticHTML(dirty.outerHTML)}return dirty}if(SET_CONFIG||_parseConfig(cfg),DOMPurify.removed=[],IN_PLACE);else if(dirty instanceof Node)body=_initDocument("<!-->"),importedNode=body.ownerDocument.importNode(dirty,!0),1===importedNode.nodeType&&"BODY"===importedNode.nodeName?body=importedNode:body.appendChild(importedNode);else{if(!RETURN_DOM&&!WHOLE_DOCUMENT&&-1===dirty.indexOf("<"))return trustedTypesPolicy?trustedTypesPolicy.createHTML(dirty):dirty;if(body=_initDocument(dirty),!body)return RETURN_DOM?null:emptyHTML}body&&FORCE_BODY&&_forceRemove(body.firstChild);for(var nodeIterator=_createIterator(IN_PLACE?dirty:body);currentNode=nodeIterator.nextNode();)(3!==currentNode.nodeType||currentNode!==oldNode)&&(_sanitizeElements(currentNode)||(currentNode.content instanceof DocumentFragment&&_sanitizeShadowDOM(currentNode.content),_sanitizeAttributes(currentNode),oldNode=currentNode));if(oldNode=null,IN_PLACE)return dirty;if(RETURN_DOM){if(RETURN_DOM_FRAGMENT)for(returnNode=createDocumentFragment.call(body.ownerDocument);body.firstChild;)returnNode.appendChild(body.firstChild);else returnNode=body;return RETURN_DOM_IMPORT&&(returnNode=importNode.call(originalDocument,returnNode,!0)),returnNode}var serializedHTML=WHOLE_DOCUMENT?body.outerHTML:body.innerHTML;return trustedTypesPolicy?trustedTypesPolicy.createHTML(serializedHTML):serializedHTML},DOMPurify.setConfig=function(cfg){_parseConfig(cfg),SET_CONFIG=!0},DOMPurify.clearConfig=function(){CONFIG=null,SET_CONFIG=!1},DOMPurify.isValidAttribute=function(tag,attr,value){CONFIG||_parseConfig({});var lcTag=tag.toLowerCase(),lcName=attr.toLowerCase();return _isValidAttribute(lcTag,lcName,value)},DOMPurify.addHook=function(entryPoint,hookFunction){"function"!=typeof hookFunction||(hooks[entryPoint]=hooks[entryPoint]||[],hooks[entryPoint].push(hookFunction))},DOMPurify.removeHook=function(entryPoint){hooks[entryPoint]&&hooks[entryPoint].pop()},DOMPurify.removeHooks=function(entryPoint){hooks[entryPoint]&&(hooks[entryPoint]=[])},DOMPurify.removeAllHooks=function(){hooks={}},DOMPurify}var freeze$1=Object.freeze||function(x){return x},html=freeze$1(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg=freeze$1(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),svgFilters=freeze$1(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mathMl=freeze$1(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),text=freeze$1(["#text"]),freeze$2=Object.freeze||function(x){return x},html$1=freeze$2(["accept","action","align","alt","autocomplete","background","bgcolor","border","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","coords","crossorigin","datetime","default","dir","disabled","download","enctype","face","for","headers","height","hidden","high","href","hreflang","id","integrity","ismap","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","type","usemap","valign","value","width","xmlns"]),svg$1=freeze$2(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl$1=freeze$2(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze$2(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),hasOwnProperty=Object.hasOwnProperty,setPrototypeOf=Object.setPrototypeOf,_ref$1="undefined"!=typeof Reflect&&Reflect,apply$1=_ref$1.apply;apply$1||(apply$1=function(fun,thisValue,args){return fun.apply(thisValue,args)});var seal=Object.seal||function(x){return x},MUSTACHE_EXPR=seal(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ERB_EXPR=seal(/<%[\s\S]*|[\s\S]*%>/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),_typeof="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)},_ref="undefined"!=typeof Reflect&&Reflect,apply=_ref.apply,arraySlice=Array.prototype.slice,freeze=Object.freeze,getGlobal=function(){return"undefined"==typeof window?null:window};apply||(apply=function(fun,thisValue,args){return fun.apply(thisValue,args)});var _createTrustedTypesPolicy=function(trustedTypes,document){if("object"!==("undefined"==typeof trustedTypes?"undefined":_typeof(trustedTypes))||"function"!=typeof trustedTypes.createPolicy)return null;var suffix=null,ATTR_NAME="data-tt-policy-suffix";document.currentScript&&document.currentScript.hasAttribute(ATTR_NAME)&&(suffix=document.currentScript.getAttribute(ATTR_NAME));var policyName="dompurify"+(suffix?"#"+suffix:"");try{return trustedTypes.createPolicy(policyName,{createHTML:function(html$$1){return html$$1}})}catch(e){return console.warn("TrustedTypes policy "+policyName+" could not be created."),null}},purify=createDOMPurify();return purify});define("layout/logout-event",["jquery","lodash","i18n","util/url","ui/dialog/alert"],function($,_,__,url,alert){'use strict';var defaults={message:__("You have been logged out. Please login again"),redirectUrl:url.route("logout","Main","tao")};return function(options){options=_.defaults(options||{},defaults),alert(options.message,function(){window.location=options.redirectUrl})}}),define("controller/app",["lodash","jquery","core/historyRouter","core/logger","core/eventifier","core/statifier","util/url","ui/feedback","layout/logout-event"],function(_,$,historyRouterFactory,loggerFactory,eventifier,statifier,urlUtil,feedback,logoutEvent){'use strict';var appLogger=loggerFactory("controller/app"),appController=eventifier(statifier({start:function(options){var currentRoute;appController.apply(),currentRoute=options&&options.forwardTo?options.forwardTo:window.location+"",options&&options.redirectUrl&&(redirectUrl=options.redirectUrl||{}),historyRouter.forward(currentRoute)},apply:function(selector,target){return selector=selector||".router",target=target||document,$(target).off("click.appController").on("click.appController",selector,function(e){var $elt,href;e.preventDefault(),$elt=$(this),href=$elt.attr("href"),href||(href=$("[href]:first-child",$elt).attr("href")),href&&historyRouter.redirect(href)}),this},getRouter:function(){return historyRouter},getLogger:function(){return appLogger},onError:function(err){var message=err&&err.message||err,options={message:message};return appLogger.error(err),403===err.code?(options=_.defaults(options,redirectUrl||{}),logoutEvent(options)):feedback().error(message),this}})),historyRouter,redirectUrl;return historyRouter=historyRouterFactory().on("dispatching",function(url){appController.setState("dispatching"),appController.trigger("change",url)}).on("dispatched",function(url){appController.setState("dispatching",!1),appController.trigger("started",url)}),appController}),define("layout/loading-bar",["jquery"],function($){'use strict';function getHeaderHeight(headerElements){for(var $element in headerHeight=0,headerElements)headerElements[$element].length&&headerElements[$element].is(":visible")&&(headerHeight+=headerElements[$element].outerHeight());return headerHeight}function updateHeight(){var loadingBarHeight=$doc.height();$loadingBar.hasClass("loading")&&(headerHeight=getHeaderHeight(headerElements),headerHeight<=$win.scrollTop()?$loadingBar.addClass("fixed"):$loadingBar.removeClass("fixed"),$loadingBar.hasClass("loadingbar-covered")?(1!==window.devicePixelRatio&&loadingBarHeight--,$loadingBar.height(loadingBarHeight)):$loadingBar.height(""))}var $loadingBar=$(".loading-bar"),originalHeight=$loadingBar.height(),$win=$(window),$doc=$(document),$contentWrap=$(".content-wrap"),headerElements={$versionWarning:$contentWrap.find(".version-warning"),$header:$contentWrap.find("header:first()")},headerHeight=getHeaderHeight(headerElements);return $win.on("scroll.loadingbar",function(){updateHeight()}),{start:function start(covered){"undefined"==typeof covered&&(covered=!0),$loadingBar.hasClass("loading")&&$loadingBar.stop(),$loadingBar.addClass("loading"),$loadingBar.toggleClass("loadingbar-covered",covered),updateHeight()},stop:function stop(){$loadingBar.removeClass("loading fixed").height(originalHeight)}}}),define("helpers",["lodash","jquery","context","layout/loading-bar"],function(_,$,context,loadingBar){'use strict';return{init:function init(){$.postJson=function(url,data,callback){$.post(url,data,callback,"json")}},getMainContainer:function getMainContainer(){console.warn("deprecated, use section instead");var sectionIndex;return context.section||(sectionIndex=$(".section-container").tabs("options","selected"),$(".content-panel").eq(sectionIndex).find(".content-block")),$("#panel-"+context.section+" .content-block")},getMainContainerSelector:function getMainContainerSelector(){console.warn("deprecated, use section instead");var $container=this.getMainContainer();return!!($container&&0<$container.length)&&$container.selector},loading:function loading(){console.warn("deprecated, this should be automated"),$(window).on("click",function(e){return e.stopPropagation(),e.preventDefault(),!1}),loadingBar.start()},loaded:function loaded(){console.warn("deprecated, this should be automated"),$(window).off("click"),loadingBar.stop()},_load:function _load(selector,url,data){url=url||"",data?data.nc=new Date().getTime():data={nc:new Date().getTime()},$(selector).hide().empty().show(),-1===url.indexOf("?")?$(selector).load(url,data):(url+="&"+$.param(data),$(selector).load(url))},_url:function _url(action,controller,extension,params){var url;if("string"!=typeof action||"string"!=typeof controller||"string"!=typeof extension)throw new TypeError("All parts are required to build an URL");return url=context.root_url+extension+"/"+controller+"/"+action,_.isString(params)?url+="?"+params:_.isPlainObject(params)&&(url+="?"+$.param(params)),url}}}),define("lib/gamp/gamp",[],function(){'use strict';var _Mathfloor=Math.floor,_Mathround=Math.round,_Mathabs=Math.abs,_Mathmax=Math.max,_Mathpow=Math.pow;function precision(val){var digits=val+"",point=digits.indexOf(".");return 0>point?1:_Mathpow(10,digits.length-point-1)}function gamp(){for(var i=arguments.length-1,factor=-Infinity;0<=i;)factor=_Mathmax(factor,precision(arguments[i--]));return _Mathabs(factor)}return gamp.normalize=function(val,factor){return _Mathround(factor*+val)},gamp.round=function(val,digits){return+(+val).toPrecision("undefined"==typeof digits?16:digits)},gamp.add=function(a,b){var factor=gamp(a,b);return gamp.round((gamp.normalize(a,factor)+gamp.normalize(b,factor))/factor)},gamp.sub=function(a,b){var factor=gamp(a,b);return gamp.round((gamp.normalize(a,factor)-gamp.normalize(b,factor))/factor)},gamp.mul=function(a,b){var factor=gamp(a,b);return gamp.round(gamp.normalize(a,factor)*gamp.normalize(b,factor)/(factor*factor),15)},gamp.div=function(a,b){var factor=gamp(a,b);return gamp.round(gamp.normalize(a,factor)/gamp.normalize(b,factor))},gamp.pow=function(a,b){var factor=gamp(a),ta=gamp.normalize(a,factor),ib=_Mathfloor(b),fb=b-ib,res=ib?_Mathpow(ta,ib)/_Mathpow(factor,ib):1;return fb&&(res=gamp.div(gamp.mul(res,_Mathpow(ta,fb)),_Mathpow(factor,fb))),gamp.round(res,15)},gamp}),function(global,factory){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("lib/popper/popper",factory):global.Popper=factory()}(this,function(){'use strict';var _Mathmin=Math.min,_Mathfloor2=Math.floor,_Mathround2=Math.round,_Mathmax2=Math.max;function isFunction(functionToCheck){return functionToCheck&&"[object Function]"==={}.toString.call(functionToCheck)}function getStyleComputedProperty(element,property){if(1!==element.nodeType)return[];var window=element.ownerDocument.defaultView,css=window.getComputedStyle(element,null);return property?css[property]:css}function getParentNode(element){return"HTML"===element.nodeName?element:element.parentNode||element.host}function getScrollParent(element){if(!element)return document.body;switch(element.nodeName){case"HTML":case"BODY":return element.ownerDocument.body;case"#document":return element.body;}var _getStyleComputedProp=getStyleComputedProperty(element),overflow=_getStyleComputedProp.overflow,overflowX=_getStyleComputedProp.overflowX,overflowY=_getStyleComputedProp.overflowY;return /(auto|scroll|overlay)/.test(overflow+overflowY+overflowX)?element:getScrollParent(getParentNode(element))}function isIE(version){return 11===version?isIE11:10===version?isIE10:isIE11||isIE10}function getOffsetParent(element){if(!element)return document.documentElement;for(var noOffsetParent=isIE(10)?document.body:null,offsetParent=element.offsetParent||null;offsetParent===noOffsetParent&&element.nextElementSibling;)offsetParent=(element=element.nextElementSibling).offsetParent;var nodeName=offsetParent&&offsetParent.nodeName;return nodeName&&"BODY"!==nodeName&&"HTML"!==nodeName?-1!==["TH","TD","TABLE"].indexOf(offsetParent.nodeName)&&"static"===getStyleComputedProperty(offsetParent,"position")?getOffsetParent(offsetParent):offsetParent:element?element.ownerDocument.documentElement:document.documentElement}function isOffsetContainer(element){var nodeName=element.nodeName;return"BODY"!==nodeName&&("HTML"===nodeName||getOffsetParent(element.firstElementChild)===element)}function getRoot(node){return null===node.parentNode?node:getRoot(node.parentNode)}function findCommonOffsetParent(element1,element2){if(!element1||!element1.nodeType||!element2||!element2.nodeType)return document.documentElement;var order=element1.compareDocumentPosition(element2)&Node.DOCUMENT_POSITION_FOLLOWING,start=order?element1:element2,end=order?element2:element1,range=document.createRange();range.setStart(start,0),range.setEnd(end,0);var commonAncestorContainer=range.commonAncestorContainer;if(element1!==commonAncestorContainer&&element2!==commonAncestorContainer||start.contains(end))return isOffsetContainer(commonAncestorContainer)?commonAncestorContainer:getOffsetParent(commonAncestorContainer);var element1root=getRoot(element1);return element1root.host?findCommonOffsetParent(element1root.host,element2):findCommonOffsetParent(element1,getRoot(element2).host)}function getScroll(element){var side=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",upperSide="top"===side?"scrollTop":"scrollLeft",nodeName=element.nodeName;if("BODY"===nodeName||"HTML"===nodeName){var html=element.ownerDocument.documentElement,scrollingElement=element.ownerDocument.scrollingElement||html;return scrollingElement[upperSide]}return element[upperSide]}function includeScroll(rect,element){var subtract=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],scrollTop=getScroll(element,"top"),scrollLeft=getScroll(element,"left"),modifier=subtract?-1:1;return rect.top+=scrollTop*modifier,rect.bottom+=scrollTop*modifier,rect.left+=scrollLeft*modifier,rect.right+=scrollLeft*modifier,rect}function getBordersSize(styles,axis){var sideA="x"===axis?"Left":"Top",sideB="Left"===sideA?"Right":"Bottom";return parseFloat(styles["border"+sideA+"Width"],10)+parseFloat(styles["border"+sideB+"Width"],10)}function getSize(axis,body,html,computedStyle){return _Mathmax2(body["offset"+axis],body["scroll"+axis],html["client"+axis],html["offset"+axis],html["scroll"+axis],isIE(10)?parseInt(html["offset"+axis])+parseInt(computedStyle["margin"+("Height"===axis?"Top":"Left")])+parseInt(computedStyle["margin"+("Height"===axis?"Bottom":"Right")]):0)}function getWindowSizes(document){var body=document.body,html=document.documentElement,computedStyle=isIE(10)&&getComputedStyle(html);return{height:getSize("Height",body,html,computedStyle),width:getSize("Width",body,html,computedStyle)}}function getClientRect(offsets){return _extends({},offsets,{right:offsets.left+offsets.width,bottom:offsets.top+offsets.height})}function getBoundingClientRect(element){var rect={};try{if(isIE(10)){rect=element.getBoundingClientRect();var scrollTop=getScroll(element,"top"),scrollLeft=getScroll(element,"left");rect.top+=scrollTop,rect.left+=scrollLeft,rect.bottom+=scrollTop,rect.right+=scrollLeft}else rect=element.getBoundingClientRect()}catch(e){}var result={left:rect.left,top:rect.top,width:rect.right-rect.left,height:rect.bottom-rect.top},sizes="HTML"===element.nodeName?getWindowSizes(element.ownerDocument):{},width=sizes.width||element.clientWidth||result.right-result.left,height=sizes.height||element.clientHeight||result.bottom-result.top,horizScrollbar=element.offsetWidth-width,vertScrollbar=element.offsetHeight-height;if(horizScrollbar||vertScrollbar){var styles=getStyleComputedProperty(element);horizScrollbar-=getBordersSize(styles,"x"),vertScrollbar-=getBordersSize(styles,"y"),result.width-=horizScrollbar,result.height-=vertScrollbar}return getClientRect(result)}function getOffsetRectRelativeToArbitraryNode(children,parent){var fixedPosition=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],isIE10=isIE(10),isHTML="HTML"===parent.nodeName,childrenRect=getBoundingClientRect(children),parentRect=getBoundingClientRect(parent),scrollParent=getScrollParent(children),styles=getStyleComputedProperty(parent),borderTopWidth=parseFloat(styles.borderTopWidth,10),borderLeftWidth=parseFloat(styles.borderLeftWidth,10);fixedPosition&&isHTML&&(parentRect.top=_Mathmax2(parentRect.top,0),parentRect.left=_Mathmax2(parentRect.left,0));var offsets=getClientRect({top:childrenRect.top-parentRect.top-borderTopWidth,left:childrenRect.left-parentRect.left-borderLeftWidth,width:childrenRect.width,height:childrenRect.height});if(offsets.marginTop=0,offsets.marginLeft=0,!isIE10&&isHTML){var marginTop=parseFloat(styles.marginTop,10),marginLeft=parseFloat(styles.marginLeft,10);offsets.top-=borderTopWidth-marginTop,offsets.bottom-=borderTopWidth-marginTop,offsets.left-=borderLeftWidth-marginLeft,offsets.right-=borderLeftWidth-marginLeft,offsets.marginTop=marginTop,offsets.marginLeft=marginLeft}return(isIE10&&!fixedPosition?parent.contains(scrollParent):parent===scrollParent&&"BODY"!==scrollParent.nodeName)&&(offsets=includeScroll(offsets,parent)),offsets}function getViewportOffsetRectRelativeToArtbitraryNode(element){var excludeScroll=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],html=element.ownerDocument.documentElement,relativeOffset=getOffsetRectRelativeToArbitraryNode(element,html),width=_Mathmax2(html.clientWidth,window.innerWidth||0),height=_Mathmax2(html.clientHeight,window.innerHeight||0),scrollTop=excludeScroll?0:getScroll(html),scrollLeft=excludeScroll?0:getScroll(html,"left"),offset={top:scrollTop-relativeOffset.top+relativeOffset.marginTop,left:scrollLeft-relativeOffset.left+relativeOffset.marginLeft,width:width,height:height};return getClientRect(offset)}function isFixed(element){var nodeName=element.nodeName;return"BODY"!==nodeName&&"HTML"!==nodeName&&("fixed"===getStyleComputedProperty(element,"position")||isFixed(getParentNode(element)))}function getFixedPositionOffsetParent(element){if(!element||!element.parentElement||isIE())return document.documentElement;for(var el=element.parentElement;el&&"none"===getStyleComputedProperty(el,"transform");)el=el.parentElement;return el||document.documentElement}function getBoundaries(popper,reference,padding,boundariesElement){var fixedPosition=!!(4<arguments.length&&void 0!==arguments[4])&&arguments[4],boundaries={top:0,left:0},offsetParent=fixedPosition?getFixedPositionOffsetParent(popper):findCommonOffsetParent(popper,reference);if("viewport"===boundariesElement)boundaries=getViewportOffsetRectRelativeToArtbitraryNode(offsetParent,fixedPosition);else{var boundariesNode;"scrollParent"===boundariesElement?(boundariesNode=getScrollParent(getParentNode(reference)),"BODY"===boundariesNode.nodeName&&(boundariesNode=popper.ownerDocument.documentElement)):"window"===boundariesElement?boundariesNode=popper.ownerDocument.documentElement:boundariesNode=boundariesElement;var offsets=getOffsetRectRelativeToArbitraryNode(boundariesNode,offsetParent,fixedPosition);if("HTML"===boundariesNode.nodeName&&!isFixed(offsetParent)){var _getWindowSizes=getWindowSizes(popper.ownerDocument),height=_getWindowSizes.height,width=_getWindowSizes.width;boundaries.top+=offsets.top-offsets.marginTop,boundaries.bottom=height+offsets.top,boundaries.left+=offsets.left-offsets.marginLeft,boundaries.right=width+offsets.left}else boundaries=offsets}padding=padding||0;var isPaddingNumber="number"==typeof padding;return boundaries.left+=isPaddingNumber?padding:padding.left||0,boundaries.top+=isPaddingNumber?padding:padding.top||0,boundaries.right-=isPaddingNumber?padding:padding.right||0,boundaries.bottom-=isPaddingNumber?padding:padding.bottom||0,boundaries}function getArea(_ref){var width=_ref.width,height=_ref.height;return width*height}function computeAutoPlacement(placement,refRect,popper,reference,boundariesElement){var padding=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===placement.indexOf("auto"))return placement;var boundaries=getBoundaries(popper,reference,padding,boundariesElement),rects={top:{width:boundaries.width,height:refRect.top-boundaries.top},right:{width:boundaries.right-refRect.right,height:boundaries.height},bottom:{width:boundaries.width,height:boundaries.bottom-refRect.bottom},left:{width:refRect.left-boundaries.left,height:boundaries.height}},sortedAreas=Object.keys(rects).map(function(key){return _extends({key:key},rects[key],{area:getArea(rects[key])})}).sort(function(a,b){return b.area-a.area}),filteredAreas=sortedAreas.filter(function(_ref2){var width=_ref2.width,height=_ref2.height;return width>=popper.clientWidth&&height>=popper.clientHeight}),computedPlacement=0<filteredAreas.length?filteredAreas[0].key:sortedAreas[0].key,variation=placement.split("-")[1];return computedPlacement+(variation?"-"+variation:"")}function getReferenceOffsets(state,popper,reference){var fixedPosition=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,commonOffsetParent=fixedPosition?getFixedPositionOffsetParent(popper):findCommonOffsetParent(popper,reference);return getOffsetRectRelativeToArbitraryNode(reference,commonOffsetParent,fixedPosition)}function getOuterSizes(element){var window=element.ownerDocument.defaultView,styles=window.getComputedStyle(element),x=parseFloat(styles.marginTop)+parseFloat(styles.marginBottom),y=parseFloat(styles.marginLeft)+parseFloat(styles.marginRight),result={width:element.offsetWidth+y,height:element.offsetHeight+x};return result}function getOppositePlacement(placement){var hash={left:"right",right:"left",bottom:"top",top:"bottom"};return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}function getPopperOffsets(popper,referenceOffsets,placement){placement=placement.split("-")[0];var popperRect=getOuterSizes(popper),popperOffsets={width:popperRect.width,height:popperRect.height},isHoriz=-1!==["right","left"].indexOf(placement),mainSide=isHoriz?"top":"left",secondarySide=isHoriz?"left":"top",measurement=isHoriz?"height":"width",secondaryMeasurement=isHoriz?"width":"height";return popperOffsets[mainSide]=referenceOffsets[mainSide]+referenceOffsets[measurement]/2-popperRect[measurement]/2,popperOffsets[secondarySide]=placement===secondarySide?referenceOffsets[secondarySide]-popperRect[secondaryMeasurement]:referenceOffsets[getOppositePlacement(secondarySide)],popperOffsets}function find(arr,check){return Array.prototype.find?arr.find(check):arr.filter(check)[0]}function findIndex(arr,prop,value){if(Array.prototype.findIndex)return arr.findIndex(function(cur){return cur[prop]===value});var match=find(arr,function(obj){return obj[prop]===value});return arr.indexOf(match)}function runModifiers(modifiers,data,ends){var modifiersToRun=void 0===ends?modifiers:modifiers.slice(0,findIndex(modifiers,"name",ends));return modifiersToRun.forEach(function(modifier){modifier["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var fn=modifier["function"]||modifier.fn;modifier.enabled&&isFunction(fn)&&(data.offsets.popper=getClientRect(data.offsets.popper),data.offsets.reference=getClientRect(data.offsets.reference),data=fn(data,modifier))}),data}function update(){if(!this.state.isDestroyed){var data={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};data.offsets.reference=getReferenceOffsets(this.state,this.popper,this.reference,this.options.positionFixed),data.placement=computeAutoPlacement(this.options.placement,data.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),data.originalPlacement=data.placement,data.positionFixed=this.options.positionFixed,data.offsets.popper=getPopperOffsets(this.popper,data.offsets.reference,data.placement),data.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",data=runModifiers(this.modifiers,data),this.state.isCreated?this.options.onUpdate(data):(this.state.isCreated=!0,this.options.onCreate(data))}}function isModifierEnabled(modifiers,modifierName){return modifiers.some(function(_ref){var name=_ref.name,enabled=_ref.enabled;return enabled&&name===modifierName})}function getSupportedPropertyName(property){for(var prefixes=[!1,"ms","Webkit","Moz","O"],upperProp=property.charAt(0).toUpperCase()+property.slice(1),i=0;i<prefixes.length;i++){var prefix=prefixes[i],toCheck=prefix?""+prefix+upperProp:property;if("undefined"!=typeof document.body.style[toCheck])return toCheck}return null}function destroy(){return this.state.isDestroyed=!0,isModifierEnabled(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[getSupportedPropertyName("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function getWindow(element){var ownerDocument=element.ownerDocument;return ownerDocument?ownerDocument.defaultView:window}function attachToScrollParents(scrollParent,event,callback,scrollParents){var isBody="BODY"===scrollParent.nodeName,target=isBody?scrollParent.ownerDocument.defaultView:scrollParent;target.addEventListener(event,callback,{passive:!0}),isBody||attachToScrollParents(getScrollParent(target.parentNode),event,callback,scrollParents),scrollParents.push(target)}function setupEventListeners(reference,options,state,updateBound){state.updateBound=updateBound,getWindow(reference).addEventListener("resize",state.updateBound,{passive:!0});var scrollElement=getScrollParent(reference);return attachToScrollParents(scrollElement,"scroll",state.updateBound,state.scrollParents),state.scrollElement=scrollElement,state.eventsEnabled=!0,state}function enableEventListeners(){this.state.eventsEnabled||(this.state=setupEventListeners(this.reference,this.options,this.state,this.scheduleUpdate))}function removeEventListeners(reference,state){return getWindow(reference).removeEventListener("resize",state.updateBound),state.scrollParents.forEach(function(target){target.removeEventListener("scroll",state.updateBound)}),state.updateBound=null,state.scrollParents=[],state.scrollElement=null,state.eventsEnabled=!1,state}function disableEventListeners(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=removeEventListeners(this.reference,this.state))}function isNumeric(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function setStyles(element,styles){Object.keys(styles).forEach(function(prop){var unit="";-1!==["width","height","top","right","bottom","left"].indexOf(prop)&&isNumeric(styles[prop])&&(unit="px"),element.style[prop]=styles[prop]+unit})}function setAttributes(element,attributes){Object.keys(attributes).forEach(function(prop){var value=attributes[prop];!1===value?element.removeAttribute(prop):element.setAttribute(prop,attributes[prop])})}function isModifierRequired(modifiers,requestingName,requestedName){var requesting=find(modifiers,function(_ref){var name=_ref.name;return name===requestingName}),isRequired=!!requesting&&modifiers.some(function(modifier){return modifier.name===requestedName&&modifier.enabled&&modifier.order<requesting.order});if(!isRequired){var _requesting="`"+requestingName+"`";console.warn("`"+requestedName+"`"+" modifier is required by "+_requesting+" modifier in order to work, be sure to include it before "+_requesting+"!")}return isRequired}function getOppositeVariation(variation){return"end"===variation?"start":"start"===variation?"end":variation}function clockwise(placement){var counter=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],index=validPlacements.indexOf(placement),arr=validPlacements.slice(index+1).concat(validPlacements.slice(0,index));return counter?arr.reverse():arr}function toValue(str,measurement,popperOffsets,referenceOffsets){var split=str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),value=+split[1],unit=split[2];if(!value)return str;if(0===unit.indexOf("%")){var element;switch(unit){case"%p":element=popperOffsets;break;case"%":case"%r":default:element=referenceOffsets;}var rect=getClientRect(element);return rect[measurement]/100*value}if("vh"===unit||"vw"===unit){var size;return size="vh"===unit?_Mathmax2(document.documentElement.clientHeight,window.innerHeight||0):_Mathmax2(document.documentElement.clientWidth,window.innerWidth||0),size/100*value}return value}function parseOffset(offset,popperOffsets,referenceOffsets,basePlacement){var offsets=[0,0],useHeight=-1!==["right","left"].indexOf(basePlacement),fragments=offset.split(/(\+|\-)/).map(function(frag){return frag.trim()}),divider=fragments.indexOf(find(fragments,function(frag){return-1!==frag.search(/,|\s/)}));fragments[divider]&&-1===fragments[divider].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var splitRegex=/\s*,\s*|\s+/,ops=-1===divider?[fragments]:[fragments.slice(0,divider).concat([fragments[divider].split(splitRegex)[0]]),[fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider+1))];return ops=ops.map(function(op,index){var measurement=(1===index?!useHeight:useHeight)?"height":"width",mergeWithPrevious=!1;return op.reduce(function(a,b){return""===a[a.length-1]&&-1!==["+","-"].indexOf(b)?(a[a.length-1]=b,mergeWithPrevious=!0,a):mergeWithPrevious?(a[a.length-1]+=b,mergeWithPrevious=!1,a):a.concat(b)},[]).map(function(str){return toValue(str,measurement,popperOffsets,referenceOffsets)})}),ops.forEach(function(op,index){op.forEach(function(frag,index2){isNumeric(frag)&&(offsets[index]+=frag*("-"===op[index2-1]?-1:1))})}),offsets}function offset(data,_ref){var offset=_ref.offset,placement=data.placement,_data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference,basePlacement=placement.split("-")[0],offsets=void 0;return offsets=isNumeric(+offset)?[+offset,0]:parseOffset(offset,popper,reference,basePlacement),"left"===basePlacement?(popper.top+=offsets[0],popper.left-=offsets[1]):"right"===basePlacement?(popper.top+=offsets[0],popper.left+=offsets[1]):"top"===basePlacement?(popper.left+=offsets[0],popper.top-=offsets[1]):"bottom"===basePlacement&&(popper.left+=offsets[0],popper.top+=offsets[1]),data.popper=popper,data}for(var isBrowser="undefined"!=typeof window&&"undefined"!=typeof document,longerTimeoutBrowsers=["Edge","Trident","Firefox"],timeoutDuration=0,i=0;i<longerTimeoutBrowsers.length;i+=1)if(isBrowser&&0<=navigator.userAgent.indexOf(longerTimeoutBrowsers[i])){timeoutDuration=1;break}var supportsMicroTasks=isBrowser&&window.Promise,debounce=supportsMicroTasks?function(fn){var called=!1;return function(){called||(called=!0,window.Promise.resolve().then(function(){called=!1,fn()}))}}:function(fn){var scheduled=!1;return function(){scheduled||(scheduled=!0,setTimeout(function(){scheduled=!1,fn()},timeoutDuration))}},isIE11=isBrowser&&!!(window.MSInputMethodContext&&document.documentMode),isIE10=isBrowser&&/MSIE 10/.test(navigator.userAgent),classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")},createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),defineProperty=function(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj},_extends=Object.assign||function(target){for(var i=1,source;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},placements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],validPlacements=placements.slice(3),BEHAVIORS={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Popper=function(){function Popper(reference,popper){var _this=this,options=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};classCallCheck(this,Popper),this.scheduleUpdate=function(){return requestAnimationFrame(_this.update)},this.update=debounce(this.update.bind(this)),this.options=_extends({},Popper.Defaults,options),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=reference&&reference.jquery?reference[0]:reference,this.popper=popper&&popper.jquery?popper[0]:popper,this.options.modifiers={},Object.keys(_extends({},Popper.Defaults.modifiers,options.modifiers)).forEach(function(name){_this.options.modifiers[name]=_extends({},Popper.Defaults.modifiers[name]||{},options.modifiers?options.modifiers[name]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(name){return _extends({name:name},_this.options.modifiers[name])}).sort(function(a,b){return a.order-b.order}),this.modifiers.forEach(function(modifierOptions){modifierOptions.enabled&&isFunction(modifierOptions.onLoad)&&modifierOptions.onLoad(_this.reference,_this.popper,_this.options,modifierOptions,_this.state)}),this.update();var eventsEnabled=this.options.eventsEnabled;eventsEnabled&&this.enableEventListeners(),this.state.eventsEnabled=eventsEnabled}return createClass(Popper,[{key:"update",value:function(){return update.call(this)}},{key:"destroy",value:function(){return destroy.call(this)}},{key:"enableEventListeners",value:function(){return enableEventListeners.call(this)}},{key:"disableEventListeners",value:function(){return disableEventListeners.call(this)}}]),Popper}();return Popper.Utils=("undefined"==typeof window?global:window).PopperUtils,Popper.placements=placements,Popper.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(data){var placement=data.placement,basePlacement=placement.split("-")[0],shiftvariation=placement.split("-")[1];if(shiftvariation){var _data$offsets=data.offsets,reference=_data$offsets.reference,popper=_data$offsets.popper,isVertical=-1!==["bottom","top"].indexOf(basePlacement),side=isVertical?"left":"top",measurement=isVertical?"width":"height",shiftOffsets={start:defineProperty({},side,reference[side]),end:defineProperty({},side,reference[side]+reference[measurement]-popper[measurement])};data.offsets.popper=_extends({},popper,shiftOffsets[shiftvariation])}return data}},offset:{order:200,enabled:!0,fn:offset,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(data,options){var boundariesElement=options.boundariesElement||getOffsetParent(data.instance.popper);data.instance.reference===boundariesElement&&(boundariesElement=getOffsetParent(boundariesElement));var transformProp=getSupportedPropertyName("transform"),popperStyles=data.instance.popper.style,top=popperStyles.top,left=popperStyles.left,transform=popperStyles[transformProp];popperStyles.top="",popperStyles.left="",popperStyles[transformProp]="";var boundaries=getBoundaries(data.instance.popper,data.instance.reference,options.padding,boundariesElement,data.positionFixed);popperStyles.top=top,popperStyles.left=left,popperStyles[transformProp]=transform,options.boundaries=boundaries;var order=options.priority,popper=data.offsets.popper,check={primary:function(placement){var value=popper[placement];if("left"===placement){var overlap=boundaries.width-(popper.left+popper.width);if(!options.escapeWithReference&&0>overlap){var padding=options.padding||0;value=boundaries.width-popper.width-padding}}return popper[placement]<boundaries[placement]&&!options.escapeWithReference&&(value=_Mathmax2(popper[placement],boundaries[placement])),defineProperty({},placement,value)},secondary:function(placement){var mainSide="right"===placement?"left":"top",value=popper[mainSide];return popper[placement]>boundaries[placement]&&!options.escapeWithReference&&(value=_Mathmin(popper[mainSide],boundaries[placement]-("right"===placement?popper.width:popper.height))),defineProperty({},mainSide,value)}};return order.forEach(function(placement){var side=-1===["left","top"].indexOf(placement)?"secondary":"primary";popper=_extends({},popper,check[side](placement))}),data.offsets.popper=popper,data},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(data){var _data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference,placement=data.placement.split("-")[0],floor=_Mathfloor2,isVertical=-1!==["top","bottom"].indexOf(placement),side=isVertical?"right":"bottom",opSide=isVertical?"left":"top",measurement=isVertical?"width":"height";return popper[side]<floor(reference[opSide])&&(data.offsets.popper[opSide]=floor(reference[opSide])-popper[measurement]),popper[opSide]>floor(reference[side])&&(data.offsets.popper[opSide]=floor(reference[side])),data}},arrow:{order:500,enabled:!0,fn:function(data,options){var _data$offsets$arrow;if(!isModifierRequired(data.instance.modifiers,"arrow","keepTogether"))return data;var arrowElement=options.element;if("string"==typeof arrowElement){if(arrowElement=data.instance.popper.querySelector(arrowElement),!arrowElement)return data;}else if(!data.instance.popper.contains(arrowElement))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),data;var placement=data.placement.split("-")[0],_data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference,isVertical=-1!==["left","right"].indexOf(placement),len=isVertical?"height":"width",sideCapitalized=isVertical?"Top":"Left",side=sideCapitalized.toLowerCase(),altSide=isVertical?"left":"top",opSide=isVertical?"bottom":"right",arrowElementSize=getOuterSizes(arrowElement)[len];if(reference[opSide]-arrowElementSize<popper[side]&&(data.offsets.popper[side]-=popper[side]-(reference[opSide]-arrowElementSize)),reference[side]+arrowElementSize>popper[opSide]){var clientWidth=_Mathmax2(document.documentElement.clientWidth,document.documentElement.innerWidth||0);clientWidth<popper[opSide]+arrowElementSize&&!isVertical?(data.offsets.popper[opSide]=clientWidth-2,data.offsets.popper[side]=data.offsets.popper[opSide]-data.popper.width):data.offsets.popper[side]+=reference[side]+arrowElementSize-popper[opSide]}data.offsets.popper=getClientRect(data.offsets.popper);var center=reference[side]+reference[len]/2-arrowElementSize/2,css=getStyleComputedProperty(data.instance.popper),popperMarginSide=parseFloat(css["margin"+sideCapitalized],10),popperBorderSide=parseFloat(css["border"+sideCapitalized+"Width"],10),sideValue=center-data.offsets.popper[side]-popperMarginSide-popperBorderSide;return sideValue=_Mathmax2(_Mathmin(popper[len]-arrowElementSize,sideValue),0),data.arrowElement=arrowElement,data.offsets.arrow=(_data$offsets$arrow={},defineProperty(_data$offsets$arrow,side,_Mathround2(sideValue)),defineProperty(_data$offsets$arrow,altSide,""),_data$offsets$arrow),data},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(data,options){if(isModifierEnabled(data.instance.modifiers,"inner"))return data;if(data.flipped&&data.placement===data.originalPlacement)return data;var boundaries=getBoundaries(data.instance.popper,data.instance.reference,options.padding,options.boundariesElement,data.positionFixed),placement=data.placement.split("-")[0],placementOpposite=getOppositePlacement(placement),variation=data.placement.split("-")[1]||"",flipOrder=[];switch(options.behavior){case BEHAVIORS.FLIP:flipOrder=[placement,placementOpposite];break;case BEHAVIORS.CLOCKWISE:flipOrder=clockwise(placement);break;case BEHAVIORS.COUNTERCLOCKWISE:flipOrder=clockwise(placement,!0);break;default:flipOrder=options.behavior;}return flipOrder.forEach(function(step,index){if(placement!==step||flipOrder.length===index+1)return data;placement=data.placement.split("-")[0],placementOpposite=getOppositePlacement(placement);var popperOffsets=data.offsets.popper,refOffsets=data.offsets.reference,floor=_Mathfloor2,overlapsRef="left"===placement&&floor(popperOffsets.right)>floor(refOffsets.left)||"right"===placement&&floor(popperOffsets.left)<floor(refOffsets.right)||"top"===placement&&floor(popperOffsets.bottom)>floor(refOffsets.top)||"bottom"===placement&&floor(popperOffsets.top)<floor(refOffsets.bottom),overflowsLeft=floor(popperOffsets.left)<floor(boundaries.left),overflowsRight=floor(popperOffsets.right)>floor(boundaries.right),overflowsTop=floor(popperOffsets.top)<floor(boundaries.top),overflowsBottom=floor(popperOffsets.bottom)>floor(boundaries.bottom),overflowsBoundaries="left"===placement&&overflowsLeft||"right"===placement&&overflowsRight||"top"===placement&&overflowsTop||"bottom"===placement&&overflowsBottom,isVertical=-1!==["top","bottom"].indexOf(placement),flippedVariation=!!options.flipVariations&&(isVertical&&"start"===variation&&overflowsLeft||isVertical&&"end"===variation&&overflowsRight||!isVertical&&"start"===variation&&overflowsTop||!isVertical&&"end"===variation&&overflowsBottom);(overlapsRef||overflowsBoundaries||flippedVariation)&&(data.flipped=!0,(overlapsRef||overflowsBoundaries)&&(placement=flipOrder[index+1]),flippedVariation&&(variation=getOppositeVariation(variation)),data.placement=placement+(variation?"-"+variation:""),data.offsets.popper=_extends({},data.offsets.popper,getPopperOffsets(data.instance.popper,data.offsets.reference,data.placement)),data=runModifiers(data.instance.modifiers,data,"flip"))}),data},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(data){var placement=data.placement,basePlacement=placement.split("-")[0],_data$offsets=data.offsets,popper=_data$offsets.popper,reference=_data$offsets.reference,isHoriz=-1!==["left","right"].indexOf(basePlacement),subtractLength=-1===["top","left"].indexOf(basePlacement);return popper[isHoriz?"left":"top"]=reference[basePlacement]-(subtractLength?popper[isHoriz?"width":"height"]:0),data.placement=getOppositePlacement(placement),data.offsets.popper=getClientRect(popper),data}},hide:{order:800,enabled:!0,fn:function(data){if(!isModifierRequired(data.instance.modifiers,"hide","preventOverflow"))return data;var refRect=data.offsets.reference,bound=find(data.instance.modifiers,function(modifier){return"preventOverflow"===modifier.name}).boundaries;if(refRect.bottom<bound.top||refRect.left>bound.right||refRect.top>bound.bottom||refRect.right<bound.left){if(!0===data.hide)return data;data.hide=!0,data.attributes["x-out-of-boundaries"]=""}else{if(!1===data.hide)return data;data.hide=!1,data.attributes["x-out-of-boundaries"]=!1}return data}},computeStyle:{order:850,enabled:!0,fn:function(data,options){var x=options.x,y=options.y,popper=data.offsets.popper,legacyGpuAccelerationOption=find(data.instance.modifiers,function(modifier){return"applyStyle"===modifier.name}).gpuAcceleration;void 0!==legacyGpuAccelerationOption&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var gpuAcceleration=void 0===legacyGpuAccelerationOption?options.gpuAcceleration:legacyGpuAccelerationOption,offsetParent=getOffsetParent(data.instance.popper),offsetParentRect=getBoundingClientRect(offsetParent),styles={position:popper.position},offsets={left:_Mathfloor2(popper.left),top:_Mathround2(popper.top),bottom:_Mathround2(popper.bottom),right:_Mathfloor2(popper.right)},sideA="bottom"===x?"top":"bottom",sideB="right"===y?"left":"right",prefixedProperty=getSupportedPropertyName("transform"),left=void 0,top=void 0;if(top="bottom"===sideA?"HTML"===offsetParent.nodeName?-offsetParent.clientHeight+offsets.bottom:-offsetParentRect.height+offsets.bottom:offsets.top,left="right"===sideB?"HTML"===offsetParent.nodeName?-offsetParent.clientWidth+offsets.right:-offsetParentRect.width+offsets.right:offsets.left,gpuAcceleration&&prefixedProperty)styles[prefixedProperty]="translate3d("+left+"px, "+top+"px, 0)",styles[sideA]=0,styles[sideB]=0,styles.willChange="transform";else{var invertTop="bottom"===sideA?-1:1,invertLeft="right"===sideB?-1:1;styles[sideA]=top*invertTop,styles[sideB]=left*invertLeft,styles.willChange=sideA+", "+sideB}var attributes={"x-placement":data.placement};return data.attributes=_extends({},attributes,data.attributes),data.styles=_extends({},styles,data.styles),data.arrowStyles=_extends({},data.offsets.arrow,data.arrowStyles),data},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(data){return setStyles(data.instance.popper,data.styles),setAttributes(data.instance.popper,data.attributes),data.arrowElement&&Object.keys(data.arrowStyles).length&&setStyles(data.arrowElement,data.arrowStyles),data},onLoad:function(reference,popper,options,modifierOptions,state){var referenceOffsets=getReferenceOffsets(state,popper,reference,options.positionFixed),placement=computeAutoPlacement(options.placement,referenceOffsets,popper,reference,options.modifiers.flip.boundariesElement,options.modifiers.flip.padding);return popper.setAttribute("x-placement",placement),setStyles(popper,{position:options.positionFixed?"fixed":"absolute"}),options},gpuAcceleration:void 0}}},Popper});(function(global,factory){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?module.exports=factory(require("./popper")):"function"==typeof define&&define.amd?define("lib/popper/tooltip",["./popper"],factory):global.Tooltip=factory(global.Popper)})(this,function(Popper){'use strict';function isFunction(functionToCheck){return functionToCheck&&"[object Function]"==={}.toString.call(functionToCheck)}Popper=Popper&&Popper.hasOwnProperty("default")?Popper["default"]:Popper;var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")},createClass=function(){function defineProperties(target,props){for(var i=0,descriptor;i<props.length;i++)descriptor=props[i],descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),_extends=Object.assign||function(target){for(var i=1,source;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},DEFAULT_OPTIONS={container:!1,delay:0,html:!1,placement:"top",title:"",template:"<div class=\"tooltip\" role=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"></div></div>",trigger:"hover focus",offset:0,arrowSelector:".tooltip-arrow, .tooltip__arrow",innerSelector:".tooltip-inner, .tooltip__inner"},Tooltip=function(){function Tooltip(reference,options){classCallCheck(this,Tooltip),_initialiseProps.call(this),options=_extends({},DEFAULT_OPTIONS,options),reference.jquery&&(reference=reference[0]),this.reference=reference,this.options=options;var events="string"==typeof options.trigger?options.trigger.split(" ").filter(function(trigger){return-1!==["click","hover","focus"].indexOf(trigger)}):[];this._isOpen=!1,this._popperOptions={},this._setEventListeners(reference,events,options)}return createClass(Tooltip,[{key:"_create",value:function(reference,template,title,allowHtml){var tooltipGenerator=window.document.createElement("div");tooltipGenerator.innerHTML=template.trim();var tooltipNode=tooltipGenerator.childNodes[0];tooltipNode.id="tooltip_"+Math.random().toString(36).substr(2,10),tooltipNode.setAttribute("aria-hidden","false");var titleNode=tooltipGenerator.querySelector(this.options.innerSelector);return this._addTitleContent(reference,title,allowHtml,titleNode),tooltipNode}},{key:"_addTitleContent",value:function(reference,title,allowHtml,titleNode){if(1===title.nodeType||11===title.nodeType)allowHtml&&titleNode.appendChild(title);else if(isFunction(title)){var titleText=title.call(reference);allowHtml?titleNode.innerHTML=titleText:titleNode.textContent=titleText}else allowHtml?titleNode.innerHTML=title:titleNode.textContent=title}},{key:"_show",value:function(reference,options){if(this._isOpen&&!this._isOpening)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.visibility="visible",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(),this;var title=reference.getAttribute("title")||options.title;if(!title)return this;var tooltipNode=this._create(reference,options.template,title,options.html);reference.setAttribute("aria-describedby",tooltipNode.id);var container=this._findContainer(options.container,reference);return this._append(tooltipNode,container),this._popperOptions=_extends({},options.popperOptions,{placement:options.placement}),this._popperOptions.modifiers=_extends({},this._popperOptions.modifiers,{arrow:{element:this.options.arrowSelector},offset:{offset:options.offset}}),options.boundariesElement&&(this._popperOptions.modifiers.preventOverflow={boundariesElement:options.boundariesElement}),this.popperInstance=new Popper(reference,tooltipNode,this._popperOptions),this._tooltipNode=tooltipNode,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.visibility="hidden",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var _this=this;return this._events.forEach(function(_ref){var func=_ref.func,event=_ref.event;_this.reference.removeEventListener(event,func)}),this._events=[],this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy&&(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)),this}},{key:"_findContainer",value:function(container,reference){return"string"==typeof container?container=window.document.querySelector(container):!1===container&&(container=reference.parentNode),container}},{key:"_append",value:function(tooltipNode,container){var _this2=this;container.appendChild(tooltipNode),setTimeout(function(){_this2._isOpen&&_this2.hide(),_this2.show()})}},{key:"_setEventListeners",value:function(reference,events,options){var _this3=this,directEvents=[],oppositeEvents=[];events.forEach(function(event){"hover"===event?(directEvents.push("mouseenter"),oppositeEvents.push("mouseleave")):"focus"===event?(directEvents.push("focus"),oppositeEvents.push("blur")):"click"===event?(directEvents.push("click"),oppositeEvents.push("click")):void 0}),directEvents.forEach(function(event){var func=function(evt){!0===_this3._isOpening||(evt.usedByTooltip=!0,_this3._scheduleShow(reference,options.delay,options,evt))};_this3._events.push({event:event,func:func}),reference.addEventListener(event,func)}),oppositeEvents.forEach(function(event){var func=function(evt){!0===evt.usedByTooltip||_this3._scheduleHide(reference,options.delay,options,evt)};_this3._events.push({event:event,func:func}),reference.addEventListener(event,func),"click"===event&&options.closeOnClickOutside&&document.addEventListener("mousedown",function(e){if(_this3._isOpening){var popper=_this3.popperInstance.popper;reference.contains(e.target)||popper.contains(e.target)||func(e)}},!0)})}},{key:"_scheduleShow",value:function(reference,delay,options){var _this4=this;this._isOpening=!0;var computedDelay=delay&&delay.show||delay||0;this._showTimeout=window.setTimeout(function(){return _this4._show(reference,options)},computedDelay)}},{key:"_scheduleHide",value:function(reference,delay,options,evt){var _this5=this;this._isOpening=!1;var computedDelay=delay&&delay.hide||delay||0;window.setTimeout(function(){if((window.clearTimeout(_this5._showTimeout),!1!==_this5._isOpen)&&document.body.contains(_this5._tooltipNode)){if("mouseleave"===evt.type){var isSet=_this5._setTooltipNodeEvent(evt,reference,delay,options);if(isSet)return}_this5._hide(reference,options)}},computedDelay)}},{key:"_updateTitleContent",value:function(title){if("undefined"==typeof this._tooltipNode)return void("undefined"!=typeof this.options.title&&(this.options.title=title));var titleNode=this._tooltipNode.querySelector(this.options.innerSelector);this._clearTitleContent(titleNode,this.options.html,this.reference.getAttribute("title")||this.options.title),this._addTitleContent(this.reference,title,this.options.html,titleNode),this.options.title=title,this.popperInstance.update()}},{key:"_clearTitleContent",value:function(titleNode,allowHtml,lastTitle){1===lastTitle.nodeType||11===lastTitle.nodeType?allowHtml&&titleNode.removeChild(lastTitle):allowHtml?titleNode.innerHTML="":titleNode.textContent=""}}]),Tooltip}(),_initialiseProps=function(){var _this6=this;this.show=function(){return _this6._show(_this6.reference,_this6.options)},this.hide=function(){return _this6._hide()},this.dispose=function(){return _this6._dispose()},this.toggle=function(){return _this6._isOpen?_this6.hide():_this6.show()},this.updateTitleContent=function(title){return _this6._updateTitleContent(title)},this._events=[],this._setTooltipNodeEvent=function(evt,reference,delay,options){var relatedreference=evt.relatedreference||evt.toElement||evt.relatedTarget;return!!_this6._tooltipNode.contains(relatedreference)&&(_this6._tooltipNode.addEventListener(evt.type,function callback(evt2){var relatedreference2=evt2.relatedreference||evt2.toElement||evt2.relatedTarget;_this6._tooltipNode.removeEventListener(evt.type,callback),reference.contains(relatedreference2)||_this6._scheduleHide(reference,options.delay,options,evt2)}),!0)}};return Tooltip});!function(root,factory){"function"==typeof define&&define.amd?define("lib/polyfill/svg4everybody/svg4everybody",[],function(){return root.svg4everybody=factory()}):"object"==("undefined"==typeof exports?"undefined":_typeof2(exports))?module.exports=factory():root.svg4everybody=factory()}(this,function(){function embed(svg,target){if(target){var fragment=document.createDocumentFragment(),viewBox=!svg.getAttribute("viewBox")&&target.getAttribute("viewBox");viewBox&&svg.setAttribute("viewBox",viewBox);for(var clone=target.cloneNode(!0);clone.childNodes.length;)fragment.appendChild(clone.firstChild);var group=document.createElementNS("http://www.w3.org/2000/svg","g");group.setAttribute("class","use"),group.appendChild(fragment),svg.appendChild(group)}}function loadreadystatechange(xhr){xhr.onreadystatechange=function(){if(4===xhr.readyState){var cachedDocument=xhr._cachedDocument;cachedDocument||(cachedDocument=xhr._cachedDocument=document.implementation.createHTMLDocument(""),cachedDocument.body.innerHTML=xhr.responseText,xhr._cachedTarget={}),xhr._embeds.splice(0).map(function(item){var target=xhr._cachedTarget[item.id];target||(target=xhr._cachedTarget[item.id]=cachedDocument.getElementById(item.id)),embed(item.svg,target)})}},xhr.onreadystatechange()}function svg4everybody(rawopts){function oninterval(){for(var index=0;index<uses.length;){var use=uses[index],svg=use.parentNode;if(svg&&/svg/i.test(svg.nodeName)){var src=use.getAttribute("xlink:href");if(polyfill&&(!opts.validate||opts.validate(src,svg,use))){svg.removeChild(use);var srcSplit=src.split("#"),url=srcSplit.shift(),id=srcSplit.join("#");if(url.length){var xhr=requests[url];xhr||(xhr=requests[url]=new XMLHttpRequest,xhr.open("GET",url),xhr.send(),xhr._embeds=[]),xhr._embeds.push({svg:svg,id:id}),loadreadystatechange(xhr)}else embed(svg,document.getElementById(id))}}else++index}requestAnimationFrame(oninterval,67)}var opts=Object(rawopts),polyfill;polyfill="polyfill"in opts?opts.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||10547>(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]||537>(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1];var requests={},requestAnimationFrame=window.requestAnimationFrame||setTimeout,uses=document.getElementsByTagName("use");polyfill&&oninterval()}return svg4everybody}),define("uikitLoader",["ui/toggler","ui/disabler","ui/adder","ui/deleter","ui/incrementer","ui/inplacer","ui/btngrouper","ui/durationer","ui/selecter","ui/modal","ui/tooltip","ui/form","ui/validator","ui/groupvalidator"],function(toggler,disabler,adder,deleter,incrementer,inplacer,btngrouper,durationer,selecter,modal,tooltip,form){'use strict';function initCrossBrowserSvg(){(/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||10547>(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]||537>(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1])&&require(["lib/polyfill/svg4everybody/svg4everybody"],function(svg4everybody){svg4everybody()})}return{startEventComponents:function startEventComponents($container){adder($container),btngrouper($container),deleter($container),disabler($container),toggler($container),inplacer($container),modal($container),form($container),this.startDomComponent($container)},startDomComponent:function startDomComponent($container){incrementer($container),durationer($container),selecter($container),initCrossBrowserSvg(),tooltip.lookup($container)}}}),define("controller/backoffice",["jquery","lodash","i18n","context","helpers","core/router","uikitLoader","core/history","ui/feedback","layout/logout-event"],function($,_,__,context,helpers,router,uikitLoader,history,feedback,logoutEvent){'use strict';function hasAjaxResponse(ajaxResponse){return ajaxResponse&&null!==ajaxResponse}function hasAjaxResponseProperties(ajaxResponse){return"undefined"!=typeof ajaxResponse.success&&"undefined"!=typeof ajaxResponse.type&&"undefined"!=typeof ajaxResponse.message&&"undefined"!=typeof ajaxResponse.data}return{start:function(){var $doc=$(document),$container=$("body > .content-wrap");history.fixBrokenBrowsers(),$doc.ajaxComplete(function(event,request,settings){var urls,forward;_.contains(settings.dataTypes,"html")&&(urls=[settings.url],forward=request.getResponseHeader("X-Tao-Forward"),forward&&urls.push(forward),router.dispatch(urls,function(){uikitLoader.startDomComponent($container)}))}),router.dispatchUrl(helpers._url(context.action,context.module,context.extension)),$doc.ajaxError(function(event,request,settings,thrownError){var errorMessage=__("Unknown Error"),ajaxResponse;if("abort"!==thrownError){try{ajaxResponse=$.parseJSON(request.responseText)}catch(err){errorMessage="".concat(request.status,": ").concat(request.responseText)}ajaxResponse&&999===ajaxResponse.code||(404!==request.status&&0!==request.status||"HEAD"!==settings.type)&&((404===request.status||500===request.status)&&(errorMessage=hasAjaxResponse()&&hasAjaxResponseProperties()?"".concat(request.status,": ").concat(ajaxResponse.message):"".concat(request.status,": ").concat(request.responseText)),403===request.status?logoutEvent():feedback().error(errorMessage))}}),uikitLoader.startEventComponents($container)}}}),define("controller/entry",["jquery","lodash","i18n","ui/feedback"],function($,_,__,feedback){'use strict';return{start:function(){var $container=$("#entry-point-box"),errorMessage=$container.data("errormessage");errorMessage&&feedback().error(errorMessage)}}}),define("lock",["jquery","helpers"],function($,helpers){function Lock(resourceUri){this.uri=resourceUri}return Lock.prototype.release=function(cb,err){var releaseUrl=helpers._url("release","Lock","tao"),options={data:{uri:this.uri},type:"POST",dataType:"json"};$.ajax(releaseUrl,options).success(cb).fail(err)},Lock}),define("layout/generisRouter",["jquery","lodash","core/eventifier","util/url"],function($,_,eventifier,urlUtil){'use strict';var generisRouter=eventifier({pushSectionState:function(baseUrl,sectionId,restoreWith){var parsedUrl=urlUtil.parse(baseUrl),currentQuery=_.mapValues(parsedUrl.query,function(value,key){return"uri"===key?decodeURIComponent(value):value}),newQuery=_.clone(currentQuery),baseUrlHasSection=currentQuery.section,newState={sectionId:sectionId,restoreWith:restoreWith||"activate",nodeUri:currentQuery.uri},stateUrl;baseUrlHasSection?sectionId!==currentQuery.section&&(newQuery.section=sectionId,delete newQuery.uri,delete newState.nodeUri):newQuery.section=sectionId,sectionId&&!_.isEqual(currentQuery,newQuery)&&(stateUrl=urlUtil.build(parsedUrl.path,newQuery),baseUrlHasSection?(window.history.pushState(newState,null,stateUrl),this.trigger("pushsectionstate",stateUrl)):(window.history.replaceState(newState,null,stateUrl),this.trigger("replacesectionstate",stateUrl)),topState=newState)},pushNodeState:function(baseUrl,nodeUri){var parsedUrl=urlUtil.parse(baseUrl),currentQuery=_.mapValues(parsedUrl.query,function(value,key){return"uri"===key?decodeURIComponent(value):value}),newQuery=_.clone(currentQuery),baseUrlHasUri=currentQuery.uri,currentState=window.history.state||{},newState={sectionId:currentState.sectionId||currentQuery.section||"",restoreWith:currentState.restoreWith||"activate",nodeUri:nodeUri},stateUrl;nodeUri!==currentQuery.uri&&(newQuery.uri=nodeUri),nodeUri&&!_.isEqual(currentQuery,newQuery)&&(stateUrl=urlUtil.build(parsedUrl.path,newQuery),baseUrlHasUri?(window.history.pushState(newState,null,stateUrl),this.trigger("pushnodestate",stateUrl)):(window.history.replaceState(newState,null,stateUrl),this.trigger("replacenodestate",stateUrl)),topState=newState)},restoreState:function(fromPopState){var state=window.history.state||{};this.hasRestorableState()&&(fromPopState?(topState=topState||{},topState.sectionId===state.sectionId?state.nodeUri&&this.trigger("urichange",state.nodeUri,state.sectionId):this.trigger("section"+state.restoreWith,state.sectionId)):this.trigger("section"+state.restoreWith,state.sectionId),topState=state)},hasRestorableState:function(){var state=window.history.state;return state&&state.restoreWith&&state.sectionId},init:function(){$(window).on("popstate.generisRouter",function(){generisRouter.restoreState(!0)})},destroy:function(){$(window).off(".generisRouter")}}),topState;return generisRouter}),define("layout/section",["jquery","lodash","context","util/url","layout/generisRouter"],function($,_,context,url,generisRouter){'use strict';var sectionApi;return sectionApi={scope:$(".section-container"),sections:{},selected:null,init:function init($scope,options){var self=this,restore=!0,parsedUrl=url.parse(location.href),defaultSection=parsedUrl.query.section,defaultUri=decodeURIComponent(parsedUrl.query.uri),$openersContainer;if(this.options=options||{},this.scope=$scope||this.scope||$(".section-container"),$openersContainer=$(".tab-container",this.scope),this.selected=null,$("li",$openersContainer).each(function(index){var $sectionOpener=$(this),$link=$sectionOpener.children("a"),id=$link.attr("href").replace("#panel-",""),$panel=$("#panel-".concat(id)),isActive=defaultSection?defaultSection===id:0===index;$panel.removeClass("hidden"),self.sections[id]={id:id,url:$link.data("url"),name:$link.text(),panel:$panel,opener:$sectionOpener,type:$panel.find(".section-trees").children().length?"tree":"content",active:isActive,activated:!1,disabled:$sectionOpener.hasClass("disabled"),defaultUri:isActive&&defaultUri?defaultUri:""}}),0===_(this.sections).where({active:!0}).size())for(var id in this.sections){this.sections[id].active=!0,restore=!1;break}return this._bindOpener($openersContainer),this.scope.trigger("init.section"),generisRouter.off(".sectionManager").on("sectionactivate.sectionManager",function(sectionId){self.get(sectionId)._activate()}).on("sectionshow.sectionManager",function(sectionId){self.get(sectionId)._show()}),!1!==this.options.history&&restore&&generisRouter.hasRestorableState()?void generisRouter.restoreState():this.activate()},_bindOpener:function _bindOpener($openersContainer){var self=this;return $openersContainer.off("click.section","li").on("click.section","li",function(e){e.preventDefault();var id=$(this).children("a").attr("href").replace("#panel-",""),section=self.sections[id];section.disabled||self.get(id).activate()}),2>$("li:not(.hidden)",$openersContainer).length?$openersContainer.hide():$openersContainer.show(),this},activate:function activate(){return this.selected||this.current(),!1!==this.options.history&&generisRouter.pushSectionState(location.href,this.selected.id,"activate"),this._activate()},_activate:function _activate(){return this._show(),!1===this.selected.activated&&(this.selected.activated=!0,this.scope.trigger("activate.section",[this.selected])),this},show:function show(){return this.selected||this.current(),!1!==this.options.history&&generisRouter.pushSectionState(location.href,this.selected.id,"show"),this._show()},_show:function _show(){var self=this,active=_(this.sections).where({active:!0}).first();return this.selected&&this.selected.id!==active.id?(_.forEach(this.sections,function(section){section.active=!1}),this.sections[this.selected.id].active=!0):this.current(),_.where(this.sections,{active:!1}).forEach(function(section){section.opener.removeClass("active"),section.panel.hide(),self.scope.trigger("hide.section",[section])}),_.where(this.sections,{active:!0}).forEach(function(section){section.opener.addClass("active"),section.panel.show(),self.scope.trigger("show.section",[section])}),this},refresh:function refresh(){return this.sections={},this.init()},enable:function enable(){return this.selected||this.current(),!0===this.selected.disabled&&(this.selected.disabled=!1,this.selected.opener.removeClass("disabled"),this.scope.trigger("enable.section",[this.selected])),this},disable:function disable(){return this.selected||this.current(),!1===this.selected.disabled&&(this.selected.disabled=!0,this.selected.opener.addClass("disabled"),this.scope.trigger("disable.section",[this.selected])),this},current:function current(){return this.selected=_(this.sections).where({active:!0}).first(),this},create:function create(data){var $openersContainer=this.scope.find(".tab-container"),$sectionOpener,$sectionPanel,section;if(!_.isObject(data))throw new TypeError("The create() method requires an object with section data as parameter.");if(!_.isString(data.id)||!_.isString(data.url)||!_.isString(data.name))throw new TypeError("The create() method requires data with id, url and name to create a new section.");return"undefined"==typeof data.visible&&(data.visible=!0),this.get(data.id),section=this.selected&&this.selected.id===data.id?this.selected:void 0,section||($sectionPanel=$("<div id=\"panel-".concat(data.id,"\" class=\"clear\"></div>")),!0===data.contentBlock&&$sectionPanel.append("<section class=\"content-container\"><ul class=\"plain action-bar content-action-bar horizontal-action-bar\"></ul><div class=\"content-block\"></div></section>"),$sectionOpener=$("<li class=\"small ".concat(data.visible?"":"hidden","\"><a title=\"").concat(data.name,"\" data-url=\"").concat(data.url,"\" href=\"#panel-").concat(data.id,"\">").concat(data.name,"</a></li>")),$openersContainer.append($sectionOpener),this.scope.append($sectionPanel),section={id:data.id,url:data.url,name:data.name,panel:$sectionPanel,opener:$sectionOpener,type:"content",active:!1},this.sections[data.id]=section),section.url=section.url===data.url||void 0===data.url?section.url:data.url,this.selected=section,data.content?!0===data.contentBlock?this.updateContentBlock(data.content):section.panel.html(data.content):!0===data.contentBlock?this.loadContentBlock():this.load(),this._bindOpener($openersContainer),this},get:function get(value){var section;if(!_.isString(value))throw new TypeError("The get() method requires a string parameter, the section id or url.");return section=this.sections[value]||this.sections[value.replace("panel-","")]||_(this.sections).where({url:value}).first()||_(this.sections).where({url:context.root_url+value}).first(),section?this.selected=section:this.current(),this},load:function(url,data,loaded){var self=this;return this.selected||this.current(),url=url||this.selected.url,"tree"===this.selected.type?this.selected.panel.addClass("content-panel"):this.selected.panel.removeClass("content-panel"),this.selected.panel.empty().load(url,data,function(response){self.scope.trigger("load.section",[self.selected,response]),_.isFunction(loaded)&&loaded()}),this},clearContentBlock:function(){if(this.selected){var $contentblock=$(".content-block",this.selected.panel);$contentblock.length&&$contentblock.empty()}},loadContentBlock:function(url,data,loaded){var $contentblock;return this.selected||this.current(),url=url||this.selected.url,"tree"===this.selected.type?this.selected.panel.addClass("content-panel"):this.selected.panel.removeClass("content-panel"),$contentblock=$(".content-block",this.selected.panel),$contentblock.length?($contentblock.empty().load(url,data,loaded),this):this.load(url,data,loaded)},updateContentBlock:function updateContentBlock(html){var $contentblock=$(".content-block",this.selected.panel);return $contentblock.length?$contentblock.empty().html(html):this.selected.panel.empty().html(html),this},on:function on(eventName,cb){var self=this;return this.scope.on("".concat(eventName,".section"),function(){cb.apply(self,Array.prototype.slice.call(arguments,1))}),this},off:function off(eventName){return this.scope.off("".concat(eventName,".section")),this}},sectionApi}),define("controller/Lock/locked",["jquery","i18n","helpers","lock","layout/section","ui/feedback"],function($,__,helpers,Lock,sectionApi,feedback){'use strict';return{start:function start(){$(".forcerelease").click(function(e){e.preventDefault(),$.ajax({url:helpers._url("forceRelease","Lock","tao"),type:"POST",data:{uri:$(this).data("id")},dataType:"json",success:function success(response){response.success?(feedback().success(__("The lock has been released")),$(".tree").trigger("refresh.taotree")):feedback().error(__("Unable to release the lock"))},error:function error(){feedback().error(__("Unable to release the lock"))}})})}}}),define("layout/version-warning",["jquery","jquery.cookie"],function($){'use strict';function hideWarning(slide){var callback=function(){document.documentElement.className+=" no-version-warning",versionWarning.trigger("hiding.versionwarning")};slide?versionWarning.slideUp("slow",function(){versionWarning.slideUp("slow",callback)}):(versionWarning.hide(),callback())}var versionWarning=$(".version-warning");return{init:function init(){return $.cookie("versionWarning")?void hideWarning(!1):void versionWarning.find(".close-trigger").on("click",function(){$.cookie("versionWarning",!0,{path:"/"}),hideWarning(!0)})}}}),define("controller/login",["jquery","lodash","i18n","module","layout/loading-bar","layout/version-warning","ui/login/login","core/store"],function($,_,__,module,loadingBar,versionWarning,loginComponent){'use strict';var _defaults={disableAutocomplete:!1,enablePasswordReveal:!1,disableAutofocus:!1,message:{error:""}};return{start:function(){var conf=_.defaults({},module.config(),_defaults),login=loginComponent($("#login-box-inner-container"),conf);login.on("init",function(){loadingBar.start()}).after("render",function(){versionWarning.init(),loadingBar.stop()}).on("submit.login",function(){loadingBar.start()})}}}),define("form/depends-on-property",["jquery","lodash"],function($,_){'use strict';function _isHiddenDependsOn($container){var $typeElt=$(".property-type",$container);if(!$typeElt||!$typeElt.val()||!$typeElt.val().trim())return!0;var $listElt=$(".property-listvalues",$container);return!($listElt&&$listElt.val()&&$listElt.val().trim())}return{toggle:function($dependsOnSelectbox,$wrapper,$container){if(($container=$container||$(".property-edit-container-open .property-heading-label ~ .property-edit-container"),!!$container.length)&&($dependsOnSelectbox=$dependsOnSelectbox||$container.find(".property-depends-on"),!!$dependsOnSelectbox.length)){if(!$wrapper)for($wrapper=$dependsOnSelectbox;!_.isEqual($wrapper.parent()[0],$container[0]);)$wrapper=$wrapper.parent();return _isHiddenDependsOn($container)?void($dependsOnSelectbox.prop("disabled","disabled"),$wrapper.hide()):($dependsOnSelectbox.removeAttr("disabled"),void $wrapper.show())}}}}),define("form/secondary-property",["jquery","context"],function($,context){'use strict';function getSecondaryPropsList($primaryProp){var $secondaryPropsList=$primaryProp.find(".secondary-props-list");return $secondaryPropsList.length||($secondaryPropsList=$("<ul class=\"secondary-props-list\"></ul>"),$primaryProp.append($secondaryPropsList)),$secondaryPropsList}function filterSecondaryValues($container,selectedPrimaryProperty,fromMultiple){var $secondaryList=$container.find(".secondary-props-list > li > *");$secondaryList.each(function(i,secondaryProp){var $secondarySelect=$(secondaryProp).children("select");$secondarySelect.length&&$.ajax({url:context.root_url+"tao/PropertyValues/get",type:"GET",data:{propertyUri:$secondarySelect.attr("id"),parentListValues:selectedPrimaryProperty},dataType:"json",success:function success(response){fromMultiple?response.data.forEach(function(selectOption){$secondarySelect.find("option[value=\"".concat(selectOption.uri,"\"]")).length||$secondarySelect.append(new Option(selectOption.label,selectOption.uri))}):($secondarySelect.empty().append(new Option(""," ")),response.data.forEach(function(selectOption){$secondarySelect.append(new Option(selectOption.label,selectOption.uri))}))}})})}function toggleDisableSecondary($container){var disable=!(1<arguments.length&&arguments[1]!==void 0)||arguments[1],$secondaryList=$container.find(".secondary-props-list > li > *");$secondaryList.each(function(i,secondaryProp){return disable?($(secondaryProp).find("[data-depends-on-property]").attr("disabled","disabled"),$(secondaryProp).addClass("disabled"),void clearSecondary($(secondaryProp))):void($(secondaryProp).find("[data-depends-on-property]").removeAttr("disabled"),$(secondaryProp).removeClass("disabled"))})}function clearSecondary($secondaryProp){var $select2Chosen=$secondaryProp.find(".select2-chosen");if($select2Chosen.length)return $(this).find("> div > input").val("").trigger("change"),void $select2Chosen.empty();var $selectElt=$secondaryProp.find("select[data-depends-on-property]");if($selectElt.length)return void $selectElt.each(function(){$(this).find("option[selected]").removeAttr("selected"),$(this).find("option[value=\" \"]").attr("selected","selected"),$(this).trigger("change")});var $inputElt=$secondaryProp.find("input");$inputElt.length&&$inputElt.each(function(){$(this).val(null).trigger("change")})}function addPrimaryPropertyListener($primaryProp,primaryPropUri){$primaryProp.on("change","[name=\"".concat(primaryPropUri,"\"]"),function(e){e.removed||e.added?filterSecondaryValues($primaryProp,e.target.value.split(","),!0):filterSecondaryValues($primaryProp,e.target.value.split(",")),toggleDisableSecondary($primaryProp,!e.target.value.trim())})}function moveSecondaryProperty($secondaryProp,$primaryProp){var $secondaryPropsList=getSecondaryPropsList($primaryProp),$wrapper=$("<li></li>");$secondaryPropsList.append($wrapper),$wrapper.append($secondaryProp.detach())}return{init:function($container){var $props=$container.children(),primaryPropsMap=new Map,$secondaryProps=$props.filter(function(){return!!$(this).find("[data-depends-on-property]").length});$secondaryProps.each(function(i,secondaryProp){var primaryPropUri=$(secondaryProp).find("[data-depends-on-property]").data("depends-on-property"),$primaryProp=$($props.filter(function(){return!!$(this).find("#".concat(primaryPropUri)).length})[0]);if($primaryProp.length){primaryPropsMap.has(primaryPropUri)?null:primaryPropsMap.set(primaryPropUri,$primaryProp),moveSecondaryProperty($(secondaryProp),$primaryProp);var $primaryElt=$primaryProp.find("[name=\"".concat(primaryPropUri,"\"]"));toggleDisableSecondary($primaryProp,!$primaryElt.val().trim())}}),primaryPropsMap.forEach(function($primaryProp,primaryPropUri){addPrimaryPropertyListener($primaryProp,primaryPropUri)})}}}),define("form/post-render-props",["jquery","i18n","ui/feedback","./depends-on-property","./secondary-property"],function($,__,feedback,dependsOn,secondaryProps){'use strict';function _createCopyToClipboardHandler($field){var successFeedback=$field.data("copy-success-feedback")||__("Resource Identifier has been copied to the clipboard"),failureFeedback=$field.data("copy-failure-feedback")||__("Resource Identifier could not be copied to the clipboard");return function(){var success;try{$field.select(),success=document.execCommand("copy"),$field.blur(),success?feedback().success(successFeedback):feedback().error(failureFeedback)}catch(err){feedback().error(__("Your browser does not support copying to the clipboard"))}}}function _cloneField($field){return $field.clone().val("").attr({readonly:!0,type:"text"})}function _initializeCopyToClipboard($container){!document.getElementById("tao.forms.instance")||$(".uri-container").length||$container.find("#id, .copy-to-clipboard").each(function(){var $field=$(this),$fieldCopy=_cloneField($field),$button=$("<span>",{class:"icon-clipboard clipboard-command",title:__("Copy to clipboard")}),$label=$("<span>",{class:"form_desc",text:__("Resource Identifier")}),$fieldBox=$("<span>",{class:"uri-container"}),value=$field.val();"id"===$field.attr("id")?($field.remove(),$field=$fieldCopy,$fieldBox.append([$field,$button]),$container.find("div").first().after($("<div>").append([$label,$fieldBox])),$fieldBox.height($field.outerHeight())):($fieldBox.height($field.outerHeight()),$field.wrap($fieldBox).parent().append($button)),$button.on("click",_createCopyToClipboardHandler($field)),$field.addClass("final").val(value)})}function _toggleModeBtn(newMode){var $modeToggle=$(".property-mode");"disabled"===newMode?$modeToggle.addClass("disabled"):$modeToggle.removeClass("disabled")}function _upgradeButtons($container,type){"radio"!==type&&"checkbox"!==type&&(type="radio");var selector=".form_checklst",notSelector="";"radio"===type&&(selector=".form_radlst",notSelector=".form_checklst, "),$container.find(selector).not(notSelector+".property-"+type+"-list").each(function(){var $radioList=$(this);$radioList.addClass("property-"+type+"-list"),$radioList.parent().addClass("property-"+type+"-list-box"),$radioList.each(function(){var $block=$(this),$inputs=$block.find("input");2>=$inputs.length&&$block.find("br").remove(),$inputs.each(function(){var $input=$(this),$label=$block.find("label[for=\""+this.id+"\"]"),$icon=$("<span>",{class:"icon-"+type});$label.prepend($icon),$label.prepend($input)})})})}function getPropertyContainer(){var $propertyContainer=$(".content-block .property-container");return $propertyContainer.length?$propertyContainer:($propertyContainer=$("<div>",{class:"property-container"}),$(".content-block .form-group").first().before($propertyContainer),$propertyContainer)}function _wrapPropsInContainer($properties){var $propertyContainer=getPropertyContainer(),hasAlreadyProperties=!!$propertyContainer.find(".property-block").length;$properties.each(function(){var $property=$(this);if($property.attr!==void 0){var type=function(){var $propertyMode=$(".property-mode");switch($property.attr("id").replace(/_?property_[\d]+/,"")){case"ro":return"readonly-property";case"parent":return"parent-property";default:var $editIcon=$property.find(".icon-edit"),$editContainer=$property.children("div:first"),$indexIcon=$property.find(".icon-find");return $editContainer.addClass("property-edit-container"),_hideProperties($editContainer),_hideIndexes($editContainer),$propertyMode.hasClass("property-mode-simple")?$indexIcon.hide():$propertyMode.hasClass("property-mode-advanced")&&$indexIcon.show(),$editIcon.on("click",function(){$editContainer.parent().hasClass("property-edit-container-open")?$($(".property",$editContainer)[0]).is(":visible")?$editContainer.slideToggle(function(){$editContainer.parent().toggleClass("property-edit-container-open"),_hideProperties($editContainer)}):(_hideIndexes($editContainer),_showProperties($editContainer)):(_hideIndexes($editContainer),_showProperties($editContainer),$editContainer.slideToggle(function(){$editContainer.parent().toggleClass("property-edit-container-open")}))}),$indexIcon.on("click",function(){$(".property-mode").hasClass("property-mode-advanced")&&($editContainer.parent().hasClass("property-edit-container-open")?$($(".index",$editContainer)[0]).is(":visible")?$editContainer.slideToggle(function(){$editContainer.parent().toggleClass("property-edit-container-open"),_hideIndexes($editContainer)}):(_hideProperties($editContainer),_showIndexes($editContainer)):(_hideProperties($editContainer),_showIndexes($editContainer),$editContainer.slideToggle(function(){$editContainer.parent().toggleClass("property-edit-container-open")})))}),"regular-property";}}();$property.addClass(hasAlreadyProperties?"property-block "+type:"property-block-first property-block "+type),$propertyContainer.append($property),hasAlreadyProperties=!0}})}function _showErrors($container){var $error=$container.find(".error"),$editContainer;$error.length&&($editContainer=$error.closest(".property-edit-container"),$editContainer.length&&(_hideIndexes($editContainer),_showProperties($editContainer),$editContainer.slideToggle(function(){$editContainer.parent().toggleClass("property-edit-container-open")})))}function _hideProperties($container){$(".property",$container).each(function(){for(var $currentTarget=$(this);!_.isEqual($currentTarget.parent()[0],$container[0]);)$currentTarget=$currentTarget.parent();$currentTarget.hide()}),_toggleModeBtn("disabled")}function _showProperties($container){$(".property",$container).each(function(){for(var $currentTarget=$(this);!_.isEqual($currentTarget.parent()[0],$container[0]);)$currentTarget=$currentTarget.parent();return $(this).hasClass("property-depends-on")?void(1<$(this)[0].length&&dependsOn.toggle($(this),$currentTarget,$container)):void $currentTarget.show()});var elt=$("[class*=\"property-type\"]",$container).parent("div").next("div"),re=new RegExp(["list","tree"].join("$|").concat("$"));re.test($("[class*=\"property-type\"]",$container).val())?"none"===elt.css("display")&&(elt.show(),elt.find("select").removeAttr("disabled")):"none"!==elt.css("display")&&(elt.css("display","none"),elt.find("select").prop("disabled","disabled")),_toggleModeBtn("enabled")}function _hideIndexes($container){$(".index",$container).each(function(){for(var $currentTarget=$(this);!_.isEqual($currentTarget.parent()[0],$container[0]);)$currentTarget=$currentTarget.parent();$currentTarget.hide()}),$(".index-remover",$container).each(function(){$(this).parent().hide()})}function _showIndexes($container){$(".index",$container).each(function(){for(var $currentTarget=$(this);!_.isEqual($currentTarget.parent()[0],$container[0]);)$currentTarget=$currentTarget.parent();$currentTarget.show()}),$(".index-remover",$container).each(function(){$(this).parent().show()})}function _checkRegularPropertyLabels($properties){$properties.each(function(){if($(this).hasClass("regular-property")){var $parentHeadingLabel=$(this).find(".property-heading-label"),$editBlockLabel=$(this).find(".property-edit-container input[name$=\"_label\"]");""!==$editBlockLabel.val()&&$parentHeadingLabel.text($editBlockLabel.val())}})}return{init:function($properties){var $container=$(".content-block .xhtml_form:first form");if($container.length)return _initializeCopyToClipboard($container),$properties&&$properties.length||($properties=$container.children("div[id*=\"property_\"]").not(".property-block")),$properties.length?void(_wrapPropsInContainer($properties),_upgradeButtons($container,"radio"),_upgradeButtons($container,"checkbox"),_toggleModeBtn("disabled"),_showErrors($container),_checkRegularPropertyLabels($properties)):void($container.children("[name=\"tao.forms.instance\"]").length&&secondaryProps.init($container))},getPropertyContainer:getPropertyContainer}}),define("form/property",["jquery","lodash","form/post-render-props"],function($,_,postRenderProps){return{add:function add(classUri,url){var $existingProperties=$(".property-block"),index=$existingProperties.length;$existingProperties.each(function(){index=Math.max(parseInt(this.id.replace(/[\D]+/,"")),index)}),index++,$.ajax({url:url,type:"POST",data:{index:index,id:classUri},dataType:"html",success:function success(response){var $response=$(response),property=$response.first();if(1<$response.length){var script=$response.last();script.appendTo(property)}postRenderProps.init(property)}})},remove:function remove(uri,classUri,url,successCallback){$.ajax({url:url,type:"POST",data:{uri:uri,classUri:classUri},dataType:"html",success:function success(){_.isFunction(successCallback)&&successCallback()}})}}}),function(global,factory){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?module.exports=factory():"function"==typeof define&&define.amd?define("lib/flatpickr/flatpickr",factory):(global=global||self,global.flatpickr=factory())}(this,function(){'use strict';var _Mathmin2=Math.min,_Mathround3=Math.round,_Mathabs2=Math.abs,_Mathmax3=Math.max;function debounce(func,wait,immediate){void 0===immediate&&(immediate=!1);var timeout;return function(){var context=this,args=arguments;null!==timeout&&clearTimeout(timeout),timeout=window.setTimeout(function(){timeout=null,immediate||func.apply(context,args)},wait),immediate&&!timeout&&func.apply(context,args)}}function toggleClass(elem,className,bool){return!0===bool?elem.classList.add(className):void elem.classList.remove(className)}function createElement(tag,className,content){var e=window.document.createElement(tag);return className=className||"",content=content||"",e.className=className,void 0!==content&&(e.textContent=content),e}function clearNode(node){for(;node.firstChild;)node.removeChild(node.firstChild)}function findParent(node,condition){return condition(node)?node:node.parentNode?findParent(node.parentNode,condition):void 0}function createNumberInput(inputClassName,opts){var wrapper=createElement("div","numInputWrapper"),numInput=createElement("input","numInput "+inputClassName),arrowUp=createElement("span","arrowUp"),arrowDown=createElement("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?numInput.type="number":(numInput.type="text",numInput.pattern="\\d*"),void 0!==opts)for(var key in opts)numInput.setAttribute(key,opts[key]);return wrapper.appendChild(numInput),wrapper.appendChild(arrowUp),wrapper.appendChild(arrowDown),wrapper}function getEventTarget(event){if("function"==typeof event.composedPath){var path=event.composedPath();return path[0]}return event.target}function compareDates(date1,date2,timeless){return void 0===timeless&&(timeless=!0),!1===timeless?date1.getTime()-date2.getTime():new Date(date1.getTime()).setHours(0,0,0,0)-new Date(date2.getTime()).setHours(0,0,0,0)}function FlatpickrInstance(element,instanceConfig){function setupHelperFunctions(){self.utils={getDaysInMonth:function getDaysInMonth(month,yr){return void 0===month&&(month=self.currentMonth),void 0===yr&&(yr=self.currentYear),1===month&&(0==yr%4&&0!=yr%100||0==yr%400)?29:self.l10n.daysInMonth[month]}}}function bindToInstance(fn){return fn.bind(self)}function setCalendarWidth(){var config=self.config;!1===config.weekNumbers&&1===config.showMonths||!0!==config.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==self.calendarContainer&&(self.calendarContainer.style.visibility="hidden",self.calendarContainer.style.display="block"),void 0!==self.daysContainer){var daysWidth=(self.days.offsetWidth+1)*config.showMonths;self.daysContainer.style.width=daysWidth+"px",self.calendarContainer.style.width=daysWidth+(void 0===self.weekWrapper?0:self.weekWrapper.offsetWidth)+"px",self.calendarContainer.style.removeProperty("visibility"),self.calendarContainer.style.removeProperty("display")}})}function updateTime(e){0===self.selectedDates.length&&setDefaultTime(),void 0!==e&&"blur"!==e.type&&timeWrapper(e);var prevValue=self._input.value;setHoursFromInputs(),updateValue(),self._input.value!==prevValue&&self._debouncedChange()}function ampm2military(hour,amPM){return hour%12+12*int(amPM===self.l10n.amPM[1])}function military2ampm(hour){switch(hour%24){case 0:case 12:return 12;default:return hour%12;}}function setHoursFromInputs(){if(void 0!==self.hourElement&&void 0!==self.minuteElement){var hours=(parseInt(self.hourElement.value.slice(-2),10)||0)%24,minutes=(parseInt(self.minuteElement.value,10)||0)%60,seconds=void 0===self.secondElement?0:(parseInt(self.secondElement.value,10)||0)%60;void 0!==self.amPM&&(hours=ampm2military(hours,self.amPM.textContent));var limitMinHours=void 0!==self.config.minTime||self.config.minDate&&self.minDateHasTime&&self.latestSelectedDateObj&&0===compareDates(self.latestSelectedDateObj,self.config.minDate,!0),limitMaxHours=void 0!==self.config.maxTime||self.config.maxDate&&self.maxDateHasTime&&self.latestSelectedDateObj&&0===compareDates(self.latestSelectedDateObj,self.config.maxDate,!0);if(limitMaxHours){var maxTime=void 0===self.config.maxTime?self.config.maxDate:self.config.maxTime;hours=_Mathmin2(hours,maxTime.getHours()),hours===maxTime.getHours()&&(minutes=_Mathmin2(minutes,maxTime.getMinutes())),minutes===maxTime.getMinutes()&&(seconds=_Mathmin2(seconds,maxTime.getSeconds()))}if(limitMinHours){var minTime=void 0===self.config.minTime?self.config.minDate:self.config.minTime;hours=_Mathmax3(hours,minTime.getHours()),hours===minTime.getHours()&&(minutes=_Mathmax3(minutes,minTime.getMinutes())),minutes===minTime.getMinutes()&&(seconds=_Mathmax3(seconds,minTime.getSeconds()))}setHours(hours,minutes,seconds)}}function setHoursFromDate(dateObj){var date=dateObj||self.latestSelectedDateObj;date&&setHours(date.getHours(),date.getMinutes(),date.getSeconds())}function setDefaultHours(){var hours=self.config.defaultHour,minutes=self.config.defaultMinute,seconds=self.config.defaultSeconds;if(void 0!==self.config.minDate){var min_hr=self.config.minDate.getHours(),min_minutes=self.config.minDate.getMinutes();hours=_Mathmax3(hours,min_hr),hours===min_hr&&(minutes=_Mathmax3(min_minutes,minutes)),hours===min_hr&&minutes===min_minutes&&(seconds=self.config.minDate.getSeconds())}if(void 0!==self.config.maxDate){var max_hr=self.config.maxDate.getHours(),max_minutes=self.config.maxDate.getMinutes();hours=_Mathmin2(hours,max_hr),hours===max_hr&&(minutes=_Mathmin2(max_minutes,minutes)),hours===max_hr&&minutes===max_minutes&&(seconds=self.config.maxDate.getSeconds())}setHours(hours,minutes,seconds)}function setHours(hours,minutes,seconds){void 0!==self.latestSelectedDateObj&&self.latestSelectedDateObj.setHours(hours%24,minutes,seconds||0,0),self.hourElement&&self.minuteElement&&!self.isMobile&&(self.hourElement.value=pad(self.config.time_24hr?hours:(12+hours)%12+12*int(0==hours%12)),self.minuteElement.value=pad(minutes),void 0!==self.amPM&&(self.amPM.textContent=self.l10n.amPM[int(12<=hours)]),void 0!==self.secondElement&&(self.secondElement.value=pad(seconds)))}function onYearInput(event){var year=parseInt(event.target.value)+(event.delta||0);(1<year/1e3||"Enter"===event.key&&!/[^\d]/.test(year.toString()))&&changeYear(year)}function bind(element,event,handler,options){return event instanceof Array?event.forEach(function(ev){return bind(element,ev,handler,options)}):element instanceof Array?element.forEach(function(el){return bind(el,event,handler,options)}):void(element.addEventListener(event,handler,options),self._handlers.push({element:element,event:event,handler:handler,options:options}))}function onClick(handler){return function(evt){1===evt.which&&handler(evt)}}function triggerChange(){triggerEvent("onChange")}function bindEvents(){if(self.config.wrap&&["open","close","toggle","clear"].forEach(function(evt){Array.prototype.forEach.call(self.element.querySelectorAll("[data-"+evt+"]"),function(el){return bind(el,"click",self[evt])})}),self.isMobile)return void setupMobile();var debouncedResize=debounce(onResize,50);if(self._debouncedChange=debounce(triggerChange,300),self.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&bind(self.daysContainer,"mouseover",function(e){"range"===self.config.mode&&onMouseOver(e.target)}),bind(window.document.body,"keydown",onKeyDown),self.config.static||bind(self._input,"keydown",onKeyDown),self.config.inline||self.config.static||bind(window,"resize",debouncedResize),void 0===window.ontouchstart?bind(window.document,"mousedown",onClick(documentClick)):bind(window.document,"click",documentClick),bind(window.document,"focus",documentClick,{capture:!0}),!0===self.config.clickOpens&&(bind(self._input,"focus",self.open),bind(self._input,"mousedown",onClick(self.open))),void 0!==self.daysContainer&&(bind(self.monthNav,"mousedown",onClick(onMonthNavClick)),bind(self.monthNav,["keyup","increment"],onYearInput),bind(self.daysContainer,"mousedown",onClick(selectDate))),void 0!==self.timeContainer&&void 0!==self.minuteElement&&void 0!==self.hourElement){var selText=function(e){return e.target.select()};bind(self.timeContainer,["increment"],updateTime),bind(self.timeContainer,"blur",updateTime,{capture:!0}),bind(self.timeContainer,"mousedown",onClick(timeIncrement)),bind([self.hourElement,self.minuteElement],["focus","click"],selText),void 0!==self.secondElement&&bind(self.secondElement,"focus",function(){return self.secondElement&&self.secondElement.select()}),void 0!==self.amPM&&bind(self.amPM,"mousedown",onClick(function(e){updateTime(e),triggerChange()}))}}function jumpToDate(jumpDate){var jumpTo=void 0===jumpDate?self.latestSelectedDateObj||(self.config.minDate&&self.config.minDate>self.now?self.config.minDate:self.config.maxDate&&self.config.maxDate<self.now?self.config.maxDate:self.now):self.parseDate(jumpDate);try{void 0!==jumpTo&&(self.currentYear=jumpTo.getFullYear(),self.currentMonth=jumpTo.getMonth())}catch(e){e.message="Invalid date supplied: "+jumpTo,self.config.errorHandler(e)}self.redraw()}function timeIncrement(e){~e.target.className.indexOf("arrow")&&incrementNumInput(e,e.target.classList.contains("arrowUp")?1:-1)}function incrementNumInput(e,delta,inputElem){var target=e&&e.target,input=inputElem||target&&target.parentNode&&target.parentNode.firstChild,event=createEvent("increment");event.delta=delta,input&&input.dispatchEvent(event)}function build(){var fragment=window.document.createDocumentFragment();if(self.calendarContainer=createElement("div","flatpickr-calendar"),self.calendarContainer.tabIndex=-1,!self.config.noCalendar){if(fragment.appendChild(buildMonthNav()),self.innerContainer=createElement("div","flatpickr-innerContainer"),self.config.weekNumbers){var _a=buildWeeks(),weekWrapper=_a.weekWrapper,weekNumbers=_a.weekNumbers;self.innerContainer.appendChild(weekWrapper),self.weekNumbers=weekNumbers,self.weekWrapper=weekWrapper}self.rContainer=createElement("div","flatpickr-rContainer"),self.rContainer.appendChild(buildWeekdays()),self.daysContainer||(self.daysContainer=createElement("div","flatpickr-days"),self.daysContainer.tabIndex=-1),buildDays(),self.rContainer.appendChild(self.daysContainer),self.innerContainer.appendChild(self.rContainer),fragment.appendChild(self.innerContainer)}self.config.enableTime&&fragment.appendChild(buildTime()),toggleClass(self.calendarContainer,"rangeMode","range"===self.config.mode),toggleClass(self.calendarContainer,"animate",!0===self.config.animate),toggleClass(self.calendarContainer,"multiMonth",1<self.config.showMonths),self.calendarContainer.appendChild(fragment);var customAppend=void 0!==self.config.appendTo&&void 0!==self.config.appendTo.nodeType;if((self.config.inline||self.config.static)&&(self.calendarContainer.classList.add(self.config.inline?"inline":"static"),self.config.inline&&(!customAppend&&self.element.parentNode?self.element.parentNode.insertBefore(self.calendarContainer,self._input.nextSibling):void 0!==self.config.appendTo&&self.config.appendTo.appendChild(self.calendarContainer)),self.config.static)){var wrapper=createElement("div","flatpickr-wrapper");self.element.parentNode&&self.element.parentNode.insertBefore(wrapper,self.element),wrapper.appendChild(self.element),self.altInput&&wrapper.appendChild(self.altInput),wrapper.appendChild(self.calendarContainer)}self.config.static||self.config.inline||(void 0===self.config.appendTo?window.document.body:self.config.appendTo).appendChild(self.calendarContainer)}function createDay(className,date,dayNumber,i){var dateIsEnabled=isEnabled(date,!0),dayElement=createElement("span","flatpickr-day "+className,date.getDate().toString());return dayElement.dateObj=date,dayElement.$i=i,dayElement.setAttribute("aria-label",self.formatDate(date,self.config.ariaDateFormat)),-1===className.indexOf("hidden")&&0===compareDates(date,self.now)&&(self.todayDateElem=dayElement,dayElement.classList.add("today"),dayElement.setAttribute("aria-current","date")),dateIsEnabled?(dayElement.tabIndex=-1,isDateSelected(date)&&(dayElement.classList.add("selected"),self.selectedDateElem=dayElement,"range"===self.config.mode&&(toggleClass(dayElement,"startRange",self.selectedDates[0]&&0===compareDates(date,self.selectedDates[0],!0)),toggleClass(dayElement,"endRange",self.selectedDates[1]&&0===compareDates(date,self.selectedDates[1],!0)),"nextMonthDay"===className&&dayElement.classList.add("inRange")))):dayElement.classList.add("disabled"),"range"===self.config.mode&&isDateInRange(date)&&!isDateSelected(date)&&dayElement.classList.add("inRange"),self.weekNumbers&&1===self.config.showMonths&&"prevMonthDay"!==className&&1==dayNumber%7&&self.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+self.config.getWeek(date)+"</span>"),triggerEvent("onDayCreate",dayElement),dayElement}function focusOnDayElem(targetNode){targetNode.focus(),"range"===self.config.mode&&onMouseOver(targetNode)}function getFirstAvailableDay(delta){for(var startMonth=0<delta?0:self.config.showMonths-1,endMonth=0<delta?self.config.showMonths:-1,m=startMonth;m!=endMonth;m+=delta)for(var month=self.daysContainer.children[m],startIndex=0<delta?0:month.children.length-1,endIndex=0<delta?month.children.length:-1,i=startIndex,c;i!=endIndex;i+=delta)if(c=month.children[i],-1===c.className.indexOf("hidden")&&isEnabled(c.dateObj))return c}function getNextAvailableDay(current,delta){for(var givenMonth=-1===current.className.indexOf("Month")?current.dateObj.getMonth():self.currentMonth,endMonth=0<delta?self.config.showMonths:-1,loopDelta=0<delta?1:-1,m=givenMonth-self.currentMonth;m!=endMonth;m+=loopDelta)for(var month=self.daysContainer.children[m],startIndex=givenMonth-self.currentMonth===m?current.$i+delta:0>delta?month.children.length-1:0,numMonthDays=month.children.length,i=startIndex,c;0<=i&&i<numMonthDays&&i!=(0<delta?numMonthDays:-1);i+=loopDelta)if(c=month.children[i],-1===c.className.indexOf("hidden")&&isEnabled(c.dateObj)&&_Mathabs2(current.$i-i)>=_Mathabs2(delta))return focusOnDayElem(c);return self.changeMonth(loopDelta),void focusOnDay(getFirstAvailableDay(loopDelta),0)}function focusOnDay(current,offset){var dayFocused=isInView(document.activeElement||document.body),startElem=void 0===current?dayFocused?document.activeElement:void 0!==self.selectedDateElem&&isInView(self.selectedDateElem)?self.selectedDateElem:void 0!==self.todayDateElem&&isInView(self.todayDateElem)?self.todayDateElem:getFirstAvailableDay(0<offset?1:-1):current;return void 0===startElem?self._input.focus():dayFocused?void getNextAvailableDay(startElem,offset):focusOnDayElem(startElem)}function buildMonthDays(year,month){for(var firstOfMonth=(new Date(year,month,1).getDay()-self.l10n.firstDayOfWeek+7)%7,prevMonthDays=self.utils.getDaysInMonth((month-1+12)%12),daysInMonth=self.utils.getDaysInMonth(month),days=window.document.createDocumentFragment(),isMultiMonth=1<self.config.showMonths,prevMonthDayClass=isMultiMonth?"prevMonthDay hidden":"prevMonthDay",nextMonthDayClass=isMultiMonth?"nextMonthDay hidden":"nextMonthDay",dayNumber=prevMonthDays+1-firstOfMonth,dayIndex=0;dayNumber<=prevMonthDays;dayNumber++,dayIndex++)days.appendChild(createDay(prevMonthDayClass,new Date(year,month-1,dayNumber),dayNumber,dayIndex));for(dayNumber=1;dayNumber<=daysInMonth;dayNumber++,dayIndex++)days.appendChild(createDay("",new Date(year,month,dayNumber),dayNumber,dayIndex));for(var dayNum=daysInMonth+1;dayNum<=42-firstOfMonth&&(1===self.config.showMonths||0!=dayIndex%7);dayNum++,dayIndex++)days.appendChild(createDay(nextMonthDayClass,new Date(year,month+1,dayNum%daysInMonth),dayNum,dayIndex));var dayContainer=createElement("div","dayContainer");return dayContainer.appendChild(days),dayContainer}function buildDays(){if(void 0!==self.daysContainer){clearNode(self.daysContainer),self.weekNumbers&&clearNode(self.weekNumbers);for(var frag=document.createDocumentFragment(),i=0,d;i<self.config.showMonths;i++)d=new Date(self.currentYear,self.currentMonth,1),d.setMonth(self.currentMonth+i),frag.appendChild(buildMonthDays(d.getFullYear(),d.getMonth()));self.daysContainer.appendChild(frag),self.days=self.daysContainer.firstChild,"range"===self.config.mode&&1===self.selectedDates.length&&onMouseOver()}}function buildMonth(){var container=createElement("div","flatpickr-month"),monthNavFragment=window.document.createDocumentFragment(),monthElement=createElement("span","cur-month"),yearInput=createNumberInput("cur-year",{tabindex:"-1"}),yearElement=yearInput.getElementsByTagName("input")[0];yearElement.setAttribute("aria-label",self.l10n.yearAriaLabel),self.config.minDate&&yearElement.setAttribute("min",self.config.minDate.getFullYear().toString()),self.config.maxDate&&(yearElement.setAttribute("max",self.config.maxDate.getFullYear().toString()),yearElement.disabled=!!self.config.minDate&&self.config.minDate.getFullYear()===self.config.maxDate.getFullYear());var currentMonth=createElement("div","flatpickr-current-month");return currentMonth.appendChild(monthElement),currentMonth.appendChild(yearInput),monthNavFragment.appendChild(currentMonth),container.appendChild(monthNavFragment),{container:container,yearElement:yearElement,monthElement:monthElement}}function buildMonths(){clearNode(self.monthNav),self.monthNav.appendChild(self.prevMonthNav),self.config.showMonths&&(self.yearElements=[],self.monthElements=[]);for(var m=self.config.showMonths,month;m--;)month=buildMonth(),self.yearElements.push(month.yearElement),self.monthElements.push(month.monthElement),self.monthNav.appendChild(month.container);self.monthNav.appendChild(self.nextMonthNav)}function buildMonthNav(){return self.monthNav=createElement("div","flatpickr-months"),self.yearElements=[],self.monthElements=[],self.prevMonthNav=createElement("span","flatpickr-prev-month"),self.prevMonthNav.innerHTML=self.config.prevArrow,self.nextMonthNav=createElement("span","flatpickr-next-month"),self.nextMonthNav.innerHTML=self.config.nextArrow,buildMonths(),Object.defineProperty(self,"_hidePrevMonthArrow",{get:function get(){return self.__hidePrevMonthArrow},set:function(bool){self.__hidePrevMonthArrow!==bool&&(toggleClass(self.prevMonthNav,"disabled",bool),self.__hidePrevMonthArrow=bool)}}),Object.defineProperty(self,"_hideNextMonthArrow",{get:function get(){return self.__hideNextMonthArrow},set:function(bool){self.__hideNextMonthArrow!==bool&&(toggleClass(self.nextMonthNav,"disabled",bool),self.__hideNextMonthArrow=bool)}}),self.currentYearElement=self.yearElements[0],updateNavigationCurrentMonth(),self.monthNav}function buildTime(){self.calendarContainer.classList.add("hasTime"),self.config.noCalendar&&self.calendarContainer.classList.add("noCalendar"),self.timeContainer=createElement("div","flatpickr-time"),self.timeContainer.tabIndex=-1;var separator=createElement("span","flatpickr-time-separator",":"),hourInput=createNumberInput("flatpickr-hour");self.hourElement=hourInput.getElementsByTagName("input")[0];var minuteInput=createNumberInput("flatpickr-minute");if(self.minuteElement=minuteInput.getElementsByTagName("input")[0],self.hourElement.tabIndex=self.minuteElement.tabIndex=-1,self.hourElement.value=pad(self.latestSelectedDateObj?self.latestSelectedDateObj.getHours():self.config.time_24hr?self.config.defaultHour:military2ampm(self.config.defaultHour)),self.minuteElement.value=pad(self.latestSelectedDateObj?self.latestSelectedDateObj.getMinutes():self.config.defaultMinute),self.hourElement.setAttribute("step",self.config.hourIncrement.toString()),self.minuteElement.setAttribute("step",self.config.minuteIncrement.toString()),self.hourElement.setAttribute("min",self.config.time_24hr?"0":"1"),self.hourElement.setAttribute("max",self.config.time_24hr?"23":"12"),self.minuteElement.setAttribute("min","0"),self.minuteElement.setAttribute("max","59"),self.timeContainer.appendChild(hourInput),self.timeContainer.appendChild(separator),self.timeContainer.appendChild(minuteInput),self.config.time_24hr&&self.timeContainer.classList.add("time24hr"),self.config.enableSeconds){self.timeContainer.classList.add("hasSeconds");var secondInput=createNumberInput("flatpickr-second");self.secondElement=secondInput.getElementsByTagName("input")[0],self.secondElement.value=pad(self.latestSelectedDateObj?self.latestSelectedDateObj.getSeconds():self.config.defaultSeconds),self.secondElement.setAttribute("step",self.minuteElement.getAttribute("step")),self.secondElement.setAttribute("min","0"),self.secondElement.setAttribute("max","59"),self.timeContainer.appendChild(createElement("span","flatpickr-time-separator",":")),self.timeContainer.appendChild(secondInput)}return self.config.time_24hr||(self.amPM=createElement("span","flatpickr-am-pm",self.l10n.amPM[int(11<(self.latestSelectedDateObj?self.hourElement.value:self.config.defaultHour))]),self.amPM.title=self.l10n.toggleTitle,self.amPM.tabIndex=-1,self.timeContainer.appendChild(self.amPM)),self.timeContainer}function buildWeekdays(){self.weekdayContainer?clearNode(self.weekdayContainer):self.weekdayContainer=createElement("div","flatpickr-weekdays");for(var i=self.config.showMonths,container;i--;)container=createElement("div","flatpickr-weekdaycontainer"),self.weekdayContainer.appendChild(container);return updateWeekdays(),self.weekdayContainer}function updateWeekdays(){var firstDayOfWeek=self.l10n.firstDayOfWeek,weekdays=self.l10n.weekdays.shorthand.slice();0<firstDayOfWeek&&firstDayOfWeek<weekdays.length&&(weekdays=weekdays.splice(firstDayOfWeek,weekdays.length).concat(weekdays.splice(0,firstDayOfWeek)));for(var i=self.config.showMonths;i--;)self.weekdayContainer.children[i].innerHTML="\n <span class='flatpickr-weekday'>\n "+weekdays.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}function buildWeeks(){self.calendarContainer.classList.add("hasWeeks");var weekWrapper=createElement("div","flatpickr-weekwrapper");weekWrapper.appendChild(createElement("span","flatpickr-weekday",self.l10n.weekAbbreviation));var weekNumbers=createElement("div","flatpickr-weeks");return weekWrapper.appendChild(weekNumbers),{weekWrapper:weekWrapper,weekNumbers:weekNumbers}}function changeMonth(value,is_offset){void 0===is_offset&&(is_offset=!0);var delta=is_offset?value:value-self.currentMonth;0>delta&&!0===self._hidePrevMonthArrow||0<delta&&!0===self._hideNextMonthArrow||(self.currentMonth+=delta,(0>self.currentMonth||11<self.currentMonth)&&(self.currentYear+=11<self.currentMonth?1:-1,self.currentMonth=(self.currentMonth+12)%12,triggerEvent("onYearChange")),buildDays(),triggerEvent("onMonthChange"),updateNavigationCurrentMonth())}function isCalendarElem(elem){return!!(self.config.appendTo&&self.config.appendTo.contains(elem))||self.calendarContainer.contains(elem)}function documentClick(e){if(self.isOpen&&!self.config.inline){var eventTarget_1=getEventTarget(e),isCalendarElement=isCalendarElem(eventTarget_1),isInput=eventTarget_1===self.input||eventTarget_1===self.altInput||self.element.contains(eventTarget_1)||e.path&&e.path.indexOf&&(~e.path.indexOf(self.input)||~e.path.indexOf(self.altInput)),lostFocus="blur"===e.type?isInput&&e.relatedTarget&&!isCalendarElem(e.relatedTarget):!isInput&&!isCalendarElement&&!isCalendarElem(e.relatedTarget),isIgnored=!self.config.ignoredFocusElements.some(function(elem){return elem.contains(eventTarget_1)});lostFocus&&isIgnored&&(self.close(),"range"===self.config.mode&&1===self.selectedDates.length&&(self.clear(!1),self.redraw()))}}function changeYear(newYear){if(!(!newYear||self.config.minDate&&newYear<self.config.minDate.getFullYear()||self.config.maxDate&&newYear>self.config.maxDate.getFullYear())){var newYearNum=newYear,isNewYear=self.currentYear!==newYearNum;self.currentYear=newYearNum||self.currentYear,self.config.maxDate&&self.currentYear===self.config.maxDate.getFullYear()?self.currentMonth=_Mathmin2(self.config.maxDate.getMonth(),self.currentMonth):self.config.minDate&&self.currentYear===self.config.minDate.getFullYear()&&(self.currentMonth=_Mathmax3(self.config.minDate.getMonth(),self.currentMonth)),isNewYear&&(self.redraw(),triggerEvent("onYearChange"))}}function isEnabled(date,timeless){void 0===timeless&&(timeless=!0);var dateToCheck=self.parseDate(date,void 0,timeless);if(self.config.minDate&&dateToCheck&&0>compareDates(dateToCheck,self.config.minDate,void 0===timeless?!self.minDateHasTime:timeless)||self.config.maxDate&&dateToCheck&&0<compareDates(dateToCheck,self.config.maxDate,void 0===timeless?!self.maxDateHasTime:timeless))return!1;if(0===self.config.enable.length&&0===self.config.disable.length)return!0;if(void 0===dateToCheck)return!1;for(var bool=0<self.config.enable.length,array=bool?self.config.enable:self.config.disable,i=0,d=void 0;i<array.length;i++){if(d=array[i],"function"==typeof d&&d(dateToCheck))return bool;if(d instanceof Date&&void 0!==dateToCheck&&d.getTime()===dateToCheck.getTime())return bool;if("string"==typeof d&&void 0!==dateToCheck){var parsed=self.parseDate(d,void 0,!0);return parsed&&parsed.getTime()===dateToCheck.getTime()?bool:!bool}if("object"===_typeof2(d)&&void 0!==dateToCheck&&d.from&&d.to&&dateToCheck.getTime()>=d.from.getTime()&&dateToCheck.getTime()<=d.to.getTime())return bool}return!bool}function isInView(elem){return void 0!==self.daysContainer&&-1===elem.className.indexOf("hidden")&&self.daysContainer.contains(elem)}function onKeyDown(e){var isInput=e.target===self._input,allowInput=self.config.allowInput,allowKeydown=self.isOpen&&(!allowInput||!isInput),allowInlineKeydown=self.config.inline&&isInput&&!allowInput;if(13===e.keyCode&&isInput){if(allowInput)return self.setDate(self._input.value,!0,e.target===self.altInput?self.config.altFormat:self.config.dateFormat),e.target.blur();self.open()}else if(isCalendarElem(e.target)||allowKeydown||allowInlineKeydown){var isTimeObj=!!self.timeContainer&&self.timeContainer.contains(e.target);switch(e.keyCode){case 13:isTimeObj?(updateTime(),focusAndClose()):selectDate(e);break;case 27:e.preventDefault(),focusAndClose();break;case 8:case 46:isInput&&!self.config.allowInput&&(e.preventDefault(),self.clear());break;case 37:case 39:if(!!isTimeObj)self.hourElement&&self.hourElement.focus();else if(e.preventDefault(),void 0!==self.daysContainer&&(!1===allowInput||document.activeElement&&isInView(document.activeElement))){var delta_1=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),changeMonth(delta_1),focusOnDay(getFirstAvailableDay(1),0)):focusOnDay(void 0,delta_1)}break;case 38:case 40:e.preventDefault();var delta=40===e.keyCode?1:-1;self.daysContainer&&void 0!==e.target.$i||e.target===self.input?e.ctrlKey?(e.stopPropagation(),changeYear(self.currentYear-delta),focusOnDay(getFirstAvailableDay(1),0)):!isTimeObj&&focusOnDay(void 0,7*delta):self.config.enableTime&&(!isTimeObj&&self.hourElement&&self.hourElement.focus(),updateTime(e),self._debouncedChange());break;case 9:if(isTimeObj){var elems=[self.hourElement,self.minuteElement,self.secondElement,self.amPM].filter(function(x){return x}),i=elems.indexOf(e.target);if(-1!==i){var target=elems[i+(e.shiftKey?-1:1)];void 0===target?e.shiftKey&&(e.preventDefault(),self._input.focus()):(e.preventDefault(),target.focus())}}break;default:}}if(void 0!==self.amPM&&e.target===self.amPM)switch(e.key){case self.l10n.amPM[0].charAt(0):case self.l10n.amPM[0].charAt(0).toLowerCase():self.amPM.textContent=self.l10n.amPM[0],setHoursFromInputs(),updateValue();break;case self.l10n.amPM[1].charAt(0):case self.l10n.amPM[1].charAt(0).toLowerCase():self.amPM.textContent=self.l10n.amPM[1],setHoursFromInputs(),updateValue();}triggerEvent("onKeyDown",e)}function onMouseOver(elem){if(!(1!==self.selectedDates.length||elem&&(!elem.classList.contains("flatpickr-day")||elem.classList.contains("disabled")))){for(var hoverDate=elem?elem.dateObj.getTime():self.days.firstElementChild.dateObj.getTime(),initialDate=self.parseDate(self.selectedDates[0],void 0,!0).getTime(),rangeStartDate=_Mathmin2(hoverDate,self.selectedDates[0].getTime()),rangeEndDate=_Mathmax3(hoverDate,self.selectedDates[0].getTime()),lastDate=self.daysContainer.lastChild.lastChild.dateObj.getTime(),containsDisabled=!1,minRange=0,maxRange=0,t=rangeStartDate;t<lastDate;t+=duration.DAY)isEnabled(new Date(t),!0)||(containsDisabled=containsDisabled||t>rangeStartDate&&t<rangeEndDate,t<initialDate&&(!minRange||t>minRange)?minRange=t:t>initialDate&&(!maxRange||t<maxRange)&&(maxRange=t));for(var m=0;m<self.config.showMonths;m++)for(var month=self.daysContainer.children[m],prevMonth=self.daysContainer.children[m-1],_loop_1=function(i){var dayElem=month.children[i],date=dayElem.dateObj,timestamp=date.getTime(),outOfRange=0<minRange&×tamp<minRange||0<maxRange&×tamp>maxRange;return outOfRange?(dayElem.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(c){dayElem.classList.remove(c)}),"continue"):containsDisabled&&!outOfRange?"continue":void(["startRange","inRange","endRange","notAllowed"].forEach(function(c){dayElem.classList.remove(c)}),void 0!==elem&&(elem.classList.add(hoverDate<self.selectedDates[0].getTime()?"startRange":"endRange"),(month.contains(elem)||!(0<m&&prevMonth&&prevMonth.lastChild.dateObj.getTime()>=timestamp))&&(initialDate<hoverDate&×tamp===initialDate?dayElem.classList.add("startRange"):initialDate>hoverDate&×tamp===initialDate&&dayElem.classList.add("endRange"),timestamp>=minRange&&(0===maxRange||timestamp<=maxRange)&&isBetween(timestamp,initialDate,hoverDate)&&dayElem.classList.add("inRange"))))},i=0,l=month.children.length;i<l;i++)_loop_1(i,l)}}function onResize(){!self.isOpen||self.config.static||self.config.inline||positionCalendar()}function setDefaultTime(){self.setDate(void 0===self.config.minDate?new Date:new Date(self.config.minDate.getTime()),!1),setDefaultHours(),updateValue()}function minMaxDateSetter(type){return function(date){var dateObj=self.config["_"+type+"Date"]=self.parseDate(date,self.config.dateFormat),inverseDateObj=self.config["_"+("min"===type?"max":"min")+"Date"];void 0!==dateObj&&(self["min"===type?"minDateHasTime":"maxDateHasTime"]=0<dateObj.getHours()||0<dateObj.getMinutes()||0<dateObj.getSeconds()),self.selectedDates&&(self.selectedDates=self.selectedDates.filter(function(d){return isEnabled(d)}),!self.selectedDates.length&&"min"===type&&setHoursFromDate(dateObj),updateValue()),self.daysContainer&&(redraw(),void 0===dateObj?self.currentYearElement.removeAttribute(type):self.currentYearElement[type]=dateObj.getFullYear().toString(),self.currentYearElement.disabled=!!inverseDateObj&&void 0!==dateObj&&inverseDateObj.getFullYear()===dateObj.getFullYear())}}function parseConfig(){var boolOpts=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],userConfig=_assign({},instanceConfig,JSON.parse(JSON.stringify(element.dataset||{}))),formats={};self.config.parseDate=userConfig.parseDate,self.config.formatDate=userConfig.formatDate,Object.defineProperty(self.config,"enable",{get:function get(){return self.config._enable},set:function(dates){self.config._enable=parseDateRules(dates)}}),Object.defineProperty(self.config,"disable",{get:function get(){return self.config._disable},set:function(dates){self.config._disable=parseDateRules(dates)}});var timeMode="time"===userConfig.mode;!userConfig.dateFormat&&(userConfig.enableTime||timeMode)&&(formats.dateFormat=userConfig.noCalendar||timeMode?"H:i"+(userConfig.enableSeconds?":S":""):flatpickr.defaultConfig.dateFormat+" H:i"+(userConfig.enableSeconds?":S":"")),userConfig.altInput&&(userConfig.enableTime||timeMode)&&!userConfig.altFormat&&(formats.altFormat=userConfig.noCalendar||timeMode?"h:i"+(userConfig.enableSeconds?":S K":" K"):flatpickr.defaultConfig.altFormat+(" h:i"+(userConfig.enableSeconds?":S":"")+" K")),Object.defineProperty(self.config,"minDate",{get:function get(){return self.config._minDate},set:minMaxDateSetter("min")}),Object.defineProperty(self.config,"maxDate",{get:function get(){return self.config._maxDate},set:minMaxDateSetter("max")});var minMaxTimeSetter=function(type){return function(val){self.config["min"===type?"_minTime":"_maxTime"]=self.parseDate(val,"H:i")}};Object.defineProperty(self.config,"minTime",{get:function get(){return self.config._minTime},set:minMaxTimeSetter("min")}),Object.defineProperty(self.config,"maxTime",{get:function get(){return self.config._maxTime},set:minMaxTimeSetter("max")}),"time"===userConfig.mode&&(self.config.noCalendar=!0,self.config.enableTime=!0),Object.assign(self.config,formats,userConfig);for(var i=0;i<boolOpts.length;i++)self.config[boolOpts[i]]=!0===self.config[boolOpts[i]]||"true"===self.config[boolOpts[i]];HOOKS.filter(function(hook){return void 0!==self.config[hook]}).forEach(function(hook){self.config[hook]=arrayify(self.config[hook]||[]).map(bindToInstance)}),self.isMobile=!self.config.disableMobile&&!self.config.inline&&"single"===self.config.mode&&!self.config.disable.length&&!self.config.enable.length&&!self.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var i=0,pluginConf;i<self.config.plugins.length;i++)for(var key in pluginConf=self.config.plugins[i](self)||{},pluginConf)-1<HOOKS.indexOf(key)?self.config[key]=arrayify(pluginConf[key]).map(bindToInstance).concat(self.config[key]):"undefined"==typeof userConfig[key]&&(self.config[key]=pluginConf[key]);triggerEvent("onParseConfig")}function setupLocale(){"object"!==_typeof2(self.config.locale)&&"undefined"==typeof flatpickr.l10ns[self.config.locale]&&self.config.errorHandler(new Error("flatpickr: invalid locale "+self.config.locale)),self.l10n=_assign({},flatpickr.l10ns["default"],"object"===_typeof2(self.config.locale)?self.config.locale:"default"===self.config.locale?void 0:flatpickr.l10ns[self.config.locale]),tokenRegex.K="("+self.l10n.amPM[0]+"|"+self.l10n.amPM[1]+"|"+self.l10n.amPM[0].toLowerCase()+"|"+self.l10n.amPM[1].toLowerCase()+")",self.formatDate=createDateFormatter(self),self.parseDate=createDateParser({config:self.config,l10n:self.l10n})}function positionCalendar(customPositionElement){if(void 0!==self.calendarContainer){triggerEvent("onPreCalendarPosition");var positionElement=customPositionElement||self._positionElement,calendarHeight=Array.prototype.reduce.call(self.calendarContainer.children,function(acc,child){return acc+child.offsetHeight},0),calendarWidth=self.calendarContainer.offsetWidth,configPos=self.config.position.split(" "),configPosVertical=configPos[0],configPosHorizontal=1<configPos.length?configPos[1]:null,inputBounds=positionElement.getBoundingClientRect(),distanceFromBottom=window.innerHeight-inputBounds.bottom,showOnTop="above"===configPosVertical||"below"!==configPosVertical&&distanceFromBottom<calendarHeight&&inputBounds.top>calendarHeight,top=window.pageYOffset+inputBounds.top+(showOnTop?-calendarHeight-2:positionElement.offsetHeight+2);if(toggleClass(self.calendarContainer,"arrowTop",!showOnTop),toggleClass(self.calendarContainer,"arrowBottom",showOnTop),!self.config.inline){var left=window.pageXOffset+inputBounds.left-(null!=configPosHorizontal&&"center"===configPosHorizontal?(calendarWidth-inputBounds.width)/2:0),right=window.document.body.offsetWidth-inputBounds.right,rightMost=left+calendarWidth>window.document.body.offsetWidth,centerMost=right+calendarWidth>window.document.body.offsetWidth;if(toggleClass(self.calendarContainer,"rightMost",rightMost),!self.config.static)if(self.calendarContainer.style.top=top+"px",!rightMost)self.calendarContainer.style.left=left+"px",self.calendarContainer.style.right="auto";else if(!centerMost)self.calendarContainer.style.left="auto",self.calendarContainer.style.right=right+"px";else{var doc=document.styleSheets[0];if(void 0===doc)return;var bodyWidth=window.document.body.offsetWidth,centerLeft=_Mathmax3(0,bodyWidth/2-calendarWidth/2),centerIndex=doc.cssRules.length,centerStyle="{left:"+inputBounds.left+"px;right:auto;}";toggleClass(self.calendarContainer,"rightMost",!1),toggleClass(self.calendarContainer,"centerMost",!0),doc.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+centerStyle,centerIndex),self.calendarContainer.style.left=centerLeft+"px",self.calendarContainer.style.right="auto"}}}}function redraw(){self.config.noCalendar||self.isMobile||(updateNavigationCurrentMonth(),buildDays())}function focusAndClose(){self._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(self.close,0):self.close()}function selectDate(e){e.preventDefault(),e.stopPropagation();var t=findParent(e.target,function isSelectable(day){return day.classList&&day.classList.contains("flatpickr-day")&&!day.classList.contains("disabled")&&!day.classList.contains("notAllowed")});if(void 0!==t){var target=t,selectedDate=self.latestSelectedDateObj=new Date(target.dateObj.getTime()),shouldChangeMonth=(selectedDate.getMonth()<self.currentMonth||selectedDate.getMonth()>self.currentMonth+self.config.showMonths-1)&&"range"!==self.config.mode;if(self.selectedDateElem=target,"single"===self.config.mode)self.selectedDates=[selectedDate];else if("multiple"===self.config.mode){var selectedIndex=isDateSelected(selectedDate);selectedIndex?self.selectedDates.splice(parseInt(selectedIndex),1):self.selectedDates.push(selectedDate)}else"range"===self.config.mode&&(2===self.selectedDates.length&&self.clear(!1,!1),self.latestSelectedDateObj=selectedDate,self.selectedDates.push(selectedDate),0!==compareDates(selectedDate,self.selectedDates[0],!0)&&self.selectedDates.sort(function(a,b){return a.getTime()-b.getTime()}));if(setHoursFromInputs(),shouldChangeMonth){var isNewYear=self.currentYear!==selectedDate.getFullYear();self.currentYear=selectedDate.getFullYear(),self.currentMonth=selectedDate.getMonth(),isNewYear&&triggerEvent("onYearChange"),triggerEvent("onMonthChange")}if(updateNavigationCurrentMonth(),buildDays(),updateValue(),self.config.enableTime&&setTimeout(function(){return self.showTimeInput=!0},50),shouldChangeMonth||"range"===self.config.mode||1!==self.config.showMonths?void 0!==self.selectedDateElem&&void 0===self.hourElement&&self.selectedDateElem&&self.selectedDateElem.focus():focusOnDayElem(target),void 0!==self.hourElement&&void 0!==self.hourElement&&self.hourElement.focus(),self.config.closeOnSelect){var single="single"===self.config.mode&&!self.config.enableTime,range="range"===self.config.mode&&2===self.selectedDates.length&&!self.config.enableTime;(single||range)&&focusAndClose()}triggerChange()}}function set(option,value){null!==option&&"object"===_typeof2(option)?Object.assign(self.config,option):(self.config[option]=value,void 0===CALLBACKS[option]?-1<HOOKS.indexOf(option)&&(self.config[option]=arrayify(value)):CALLBACKS[option].forEach(function(x){return x()})),self.redraw(),updateValue(!1)}function setSelectedDate(inputDate,format){var dates=[];if(inputDate instanceof Array)dates=inputDate.map(function(d){return self.parseDate(d,format)});else if(inputDate instanceof Date||"number"==typeof inputDate)dates=[self.parseDate(inputDate,format)];else if("string"==typeof inputDate)switch(self.config.mode){case"single":case"time":dates=[self.parseDate(inputDate,format)];break;case"multiple":dates=inputDate.split(self.config.conjunction).map(function(date){return self.parseDate(date,format)});break;case"range":dates=inputDate.split(self.l10n.rangeSeparator).map(function(date){return self.parseDate(date,format)});break;default:}else self.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(inputDate)));self.selectedDates=dates.filter(function(d){return d instanceof Date&&isEnabled(d,!1)}),"range"===self.config.mode&&self.selectedDates.sort(function(a,b){return a.getTime()-b.getTime()})}function parseDateRules(arr){return arr.slice().map(function(rule){return"string"==typeof rule||"number"==typeof rule||rule instanceof Date?self.parseDate(rule,void 0,!0):rule&&"object"===_typeof2(rule)&&rule.from&&rule.to?{from:self.parseDate(rule.from,void 0),to:self.parseDate(rule.to,void 0)}:rule}).filter(function(x){return x})}function setupDates(){self.selectedDates=[],self.now=self.parseDate(self.config.now)||new Date;var preloadedDate=self.config.defaultDate||(("INPUT"===self.input.nodeName||"TEXTAREA"===self.input.nodeName)&&self.input.placeholder&&self.input.value===self.input.placeholder?null:self.input.value);preloadedDate&&setSelectedDate(preloadedDate,self.config.dateFormat),self._initialDate=0<self.selectedDates.length?self.selectedDates[0]:self.config.minDate&&self.config.minDate.getTime()>self.now.getTime()?self.config.minDate:self.config.maxDate&&self.config.maxDate.getTime()<self.now.getTime()?self.config.maxDate:self.now,self.currentYear=self._initialDate.getFullYear(),self.currentMonth=self._initialDate.getMonth(),0<self.selectedDates.length&&(self.latestSelectedDateObj=self.selectedDates[0]),void 0!==self.config.minTime&&(self.config.minTime=self.parseDate(self.config.minTime,"H:i")),void 0!==self.config.maxTime&&(self.config.maxTime=self.parseDate(self.config.maxTime,"H:i")),self.minDateHasTime=!!self.config.minDate&&(0<self.config.minDate.getHours()||0<self.config.minDate.getMinutes()||0<self.config.minDate.getSeconds()),self.maxDateHasTime=!!self.config.maxDate&&(0<self.config.maxDate.getHours()||0<self.config.maxDate.getMinutes()||0<self.config.maxDate.getSeconds()),Object.defineProperty(self,"showTimeInput",{get:function get(){return self._showTimeInput},set:function(bool){self._showTimeInput=bool,self.calendarContainer&&toggleClass(self.calendarContainer,"showTimeInput",bool),self.isOpen&&positionCalendar()}})}function setupInputs(){return self.input=self.config.wrap?element.querySelector("[data-input]"):element,self.input?void(self.input._type=self.input.type,self.input.type="text",self.input.classList.add("flatpickr-input"),self._input=self.input,self.config.altInput&&(self.altInput=createElement(self.input.nodeName,self.input.className+" "+self.config.altInputClass),self._input=self.altInput,self.altInput.placeholder=self.input.placeholder,self.altInput.disabled=self.input.disabled,self.altInput.required=self.input.required,self.altInput.tabIndex=self.input.tabIndex,self.altInput.type="text",self.input.setAttribute("type","hidden"),!self.config.static&&self.input.parentNode&&self.input.parentNode.insertBefore(self.altInput,self.input.nextSibling)),!self.config.allowInput&&self._input.setAttribute("readonly","readonly"),self._positionElement=self.config.positionElement||self._input):void self.config.errorHandler(new Error("Invalid input element specified"))}function setupMobile(){var inputType=self.config.enableTime?self.config.noCalendar?"time":"datetime-local":"date";self.mobileInput=createElement("input",self.input.className+" flatpickr-mobile"),self.mobileInput.step=self.input.getAttribute("step")||"any",self.mobileInput.tabIndex=1,self.mobileInput.type=inputType,self.mobileInput.disabled=self.input.disabled,self.mobileInput.required=self.input.required,self.mobileInput.placeholder=self.input.placeholder,self.mobileFormatStr="datetime-local"==inputType?"Y-m-d\\TH:i:S":"date"===inputType?"Y-m-d":"H:i:S",0<self.selectedDates.length&&(self.mobileInput.defaultValue=self.mobileInput.value=self.formatDate(self.selectedDates[0],self.mobileFormatStr)),self.config.minDate&&(self.mobileInput.min=self.formatDate(self.config.minDate,"Y-m-d")),self.config.maxDate&&(self.mobileInput.max=self.formatDate(self.config.maxDate,"Y-m-d")),self.input.type="hidden",void 0!==self.altInput&&(self.altInput.type="hidden");try{self.input.parentNode&&self.input.parentNode.insertBefore(self.mobileInput,self.input.nextSibling)}catch(_a){}bind(self.mobileInput,"change",function(e){self.setDate(e.target.value,!1,self.mobileFormatStr),triggerEvent("onChange"),triggerEvent("onClose")})}function triggerEvent(event,data){if(void 0!==self.config){var hooks=self.config[event];if(void 0!==hooks&&0<hooks.length)for(var i=0;hooks[i]&&i<hooks.length;i++)hooks[i](self.selectedDates,self.input.value,self,data);"onChange"===event&&(self.input.dispatchEvent(createEvent("change")),self.input.dispatchEvent(createEvent("input")))}}function createEvent(name){var e=document.createEvent("Event");return e.initEvent(name,!0,!0),e}function isDateSelected(date){for(var i=0;i<self.selectedDates.length;i++)if(0===compareDates(self.selectedDates[i],date))return""+i;return!1}function isDateInRange(date){return!("range"!==self.config.mode||2>self.selectedDates.length)&&0<=compareDates(date,self.selectedDates[0])&&0>=compareDates(date,self.selectedDates[1])}function updateNavigationCurrentMonth(){self.config.noCalendar||self.isMobile||!self.monthNav||(self.yearElements.forEach(function(yearElement,i){var d=new Date(self.currentYear,self.currentMonth,1);d.setMonth(self.currentMonth+i),self.monthElements[i].textContent=monthToStr(d.getMonth(),self.config.shorthandCurrentMonth,self.l10n)+" ",yearElement.value=d.getFullYear().toString()}),self._hidePrevMonthArrow=void 0!==self.config.minDate&&(self.currentYear===self.config.minDate.getFullYear()?self.currentMonth<=self.config.minDate.getMonth():self.currentYear<self.config.minDate.getFullYear()),self._hideNextMonthArrow=void 0!==self.config.maxDate&&(self.currentYear===self.config.maxDate.getFullYear()?self.currentMonth+1>self.config.maxDate.getMonth():self.currentYear>self.config.maxDate.getFullYear()))}function getDateStr(format){return self.selectedDates.map(function(dObj){return self.formatDate(dObj,format)}).filter(function(d,i,arr){return"range"!==self.config.mode||self.config.enableTime||arr.indexOf(d)===i}).join("range"===self.config.mode?self.l10n.rangeSeparator:self.config.conjunction)}function updateValue(triggerChange){return void 0===triggerChange&&(triggerChange=!0),0===self.selectedDates.length?self.clear(triggerChange):void(void 0!==self.mobileInput&&self.mobileFormatStr&&(self.mobileInput.value=void 0===self.latestSelectedDateObj?"":self.formatDate(self.latestSelectedDateObj,self.mobileFormatStr)),self.input.value=getDateStr(self.config.dateFormat),void 0!==self.altInput&&(self.altInput.value=getDateStr(self.config.altFormat)),!1!==triggerChange&&triggerEvent("onValueUpdate"))}function onMonthNavClick(e){e.preventDefault();var isPrevMonth=self.prevMonthNav.contains(e.target),isNextMonth=self.nextMonthNav.contains(e.target);isPrevMonth||isNextMonth?changeMonth(isPrevMonth?-1:1):0<=self.yearElements.indexOf(e.target)?e.target.select():e.target.classList.contains("arrowUp")?self.changeYear(self.currentYear+1):e.target.classList.contains("arrowDown")&&self.changeYear(self.currentYear-1)}function timeWrapper(e){e.preventDefault();var isKeyDown="keydown"===e.type,input=e.target;void 0!==self.amPM&&e.target===self.amPM&&(self.amPM.textContent=self.l10n.amPM[int(self.amPM.textContent===self.l10n.amPM[0])]);var min=parseFloat(input.getAttribute("min")),max=parseFloat(input.getAttribute("max")),step=parseFloat(input.getAttribute("step")),curValue=parseInt(input.value,10),delta=e.delta||(isKeyDown?38===e.which?1:-1:0),newValue=curValue+step*delta;if("undefined"!=typeof input.value&&2===input.value.length){var isHourElem=input===self.hourElement,isMinuteElem=input===self.minuteElement;newValue<min?(newValue=max+newValue+int(!isHourElem)+(int(isHourElem)&&int(!self.amPM)),isMinuteElem&&incrementNumInput(void 0,-1,self.hourElement)):newValue>max&&(newValue=input===self.hourElement?newValue-max-int(!self.amPM):min,isMinuteElem&&incrementNumInput(void 0,1,self.hourElement)),self.amPM&&isHourElem&&(1===step?23===newValue+curValue:_Mathabs2(newValue-curValue)>step)&&(self.amPM.textContent=self.l10n.amPM[int(self.amPM.textContent===self.l10n.amPM[0])]),input.value=pad(newValue)}}var self={config:_assign({},flatpickr.defaultConfig),l10n:english};self.parseDate=createDateParser({config:self.config,l10n:self.l10n}),self._handlers=[],self._bind=bind,self._setHoursFromDate=setHoursFromDate,self._positionCalendar=positionCalendar,self.changeMonth=changeMonth,self.changeYear=changeYear,self.clear=function(triggerChangeEvent,toInitial){void 0===triggerChangeEvent&&(triggerChangeEvent=!0),void 0===toInitial&&(toInitial=!0),self.input.value="",void 0!==self.altInput&&(self.altInput.value=""),void 0!==self.mobileInput&&(self.mobileInput.value=""),self.selectedDates=[],self.latestSelectedDateObj=void 0,!0===toInitial&&(self.currentYear=self._initialDate.getFullYear(),self.currentMonth=self._initialDate.getMonth()),self.showTimeInput=!1,!0===self.config.enableTime&&setDefaultHours(),self.redraw(),triggerChangeEvent&&triggerEvent("onChange")},self.close=function(){self.isOpen=!1,self.isMobile||(void 0!==self.calendarContainer&&self.calendarContainer.classList.remove("open"),void 0!==self._input&&self._input.classList.remove("active")),triggerEvent("onClose")},self._createElement=createElement,self.destroy=function(){void 0!==self.config&&triggerEvent("onDestroy");for(var i=self._handlers.length,h;i--;)h=self._handlers[i],h.element.removeEventListener(h.event,h.handler,h.options);if(self._handlers=[],self.mobileInput)self.mobileInput.parentNode&&self.mobileInput.parentNode.removeChild(self.mobileInput),self.mobileInput=void 0;else if(self.calendarContainer&&self.calendarContainer.parentNode)if(self.config.static&&self.calendarContainer.parentNode){var wrapper=self.calendarContainer.parentNode;if(wrapper.lastChild&&wrapper.removeChild(wrapper.lastChild),wrapper.parentNode){for(;wrapper.firstChild;)wrapper.parentNode.insertBefore(wrapper.firstChild,wrapper);wrapper.parentNode.removeChild(wrapper)}}else self.calendarContainer.parentNode.removeChild(self.calendarContainer);self.altInput&&(self.input.type="text",self.altInput.parentNode&&self.altInput.parentNode.removeChild(self.altInput),delete self.altInput),self.input&&(self.input.type=self.input._type,self.input.classList.remove("flatpickr-input"),self.input.removeAttribute("readonly"),self.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(k){try{delete self[k]}catch(_){}})},self.isEnabled=isEnabled,self.jumpToDate=jumpToDate,self.open=function(e,positionElement){if(void 0===positionElement&&(positionElement=self._positionElement),!0===self.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==self.mobileInput&&(self.mobileInput.focus(),self.mobileInput.click()),void triggerEvent("onOpen");if(!(self._input.disabled||self.config.inline)){var wasOpen=self.isOpen;self.isOpen=!0,wasOpen||(self.calendarContainer.classList.add("open"),self._input.classList.add("active"),triggerEvent("onOpen"),positionCalendar(positionElement)),!0===self.config.enableTime&&!0===self.config.noCalendar&&(0===self.selectedDates.length&&setDefaultTime(),!1===self.config.allowInput&&(void 0===e||!self.timeContainer.contains(e.relatedTarget))&&setTimeout(function(){return self.hourElement.select()},50))}},self.redraw=redraw,self.set=set,self.setDate=function(date,triggerChange,format){return void 0===triggerChange&&(triggerChange=!1),void 0===format&&(format=self.config.dateFormat),0!==date&&!date||date instanceof Array&&0===date.length?self.clear(triggerChange):void(setSelectedDate(date,format),self.showTimeInput=0<self.selectedDates.length,self.latestSelectedDateObj=self.selectedDates[0],self.redraw(),jumpToDate(),setHoursFromDate(),updateValue(triggerChange),triggerChange&&triggerEvent("onChange"))},self.toggle=function(e){return!0===self.isOpen?self.close():void self.open(e)};var CALLBACKS={locale:[setupLocale,updateWeekdays],showMonths:[buildMonths,setCalendarWidth,buildWeekdays]};return function(){self.element=self.input=element,self.isOpen=!1,parseConfig(),setupLocale(),setupInputs(),setupDates(),setupHelperFunctions(),self.isMobile||build(),bindEvents(),(self.selectedDates.length||self.config.noCalendar)&&(self.config.enableTime&&setHoursFromDate(self.config.noCalendar?self.latestSelectedDateObj||self.config.minDate:void 0),updateValue(!1)),setCalendarWidth(),self.showTimeInput=0<self.selectedDates.length||self.config.noCalendar;var isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!self.isMobile&&isSafari&&positionCalendar(),triggerEvent("onReady")}(),self}function _flatpickr(nodeList,config){for(var nodes=Array.prototype.slice.call(nodeList).filter(function(x){return x instanceof HTMLElement}),instances=[],i=0,node;i<nodes.length;i++){node=nodes[i];try{if(null!==node.getAttribute("data-fp-omit"))continue;void 0!==node._flatpickr&&(node._flatpickr.destroy(),node._flatpickr=void 0),node._flatpickr=FlatpickrInstance(node,config||{}),instances.push(node._flatpickr)}catch(e){console.error(e)}}return 1===instances.length?instances[0]:instances}var _assign=function __assign(){return _assign=Object.assign||function(t){for(var i=1,n=arguments.length,s;i<n;i++)for(var p in s=arguments[i],s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},_assign.apply(this,arguments)},HOOKS=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],defaults={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"===("undefined"==typeof window?"undefined":_typeof2(window))&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function errorHandler(err){return"undefined"!=typeof console&&console.warn(err)},getWeek:function getWeek(givenDate){var date=new Date(givenDate.getTime());date.setHours(0,0,0,0),date.setDate(date.getDate()+3-(date.getDay()+6)%7);var week1=new Date(date.getFullYear(),0,4);return 1+_Mathround3(((date.getTime()-week1.getTime())/864e5-3+(week1.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},english={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function ordinal(nth){var s=nth%100;if(3<s&&21>s)return"th";switch(s%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th";}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year"},pad=function(number){return("0"+number).slice(-2)},int=function(bool){return!0===bool?1:0},arrayify=function(obj){return obj instanceof Array?obj:[obj]},do_nothing=function(){},monthToStr=function(monthNumber,shorthand,locale){return locale.months[shorthand?"shorthand":"longhand"][monthNumber]},revFormat={D:do_nothing,F:function F(dateObj,monthName,locale){dateObj.setMonth(locale.months.longhand.indexOf(monthName))},G:function G(dateObj,hour){dateObj.setHours(parseFloat(hour))},H:function H(dateObj,hour){dateObj.setHours(parseFloat(hour))},J:function J(dateObj,day){dateObj.setDate(parseFloat(day))},K:function K(dateObj,amPM,locale){dateObj.setHours(dateObj.getHours()%12+12*int(new RegExp(locale.amPM[1],"i").test(amPM)))},M:function M(dateObj,shortMonth,locale){dateObj.setMonth(locale.months.shorthand.indexOf(shortMonth))},S:function S(dateObj,seconds){dateObj.setSeconds(parseFloat(seconds))},U:function U(_,unixSeconds){return new Date(1e3*parseFloat(unixSeconds))},W:function W(dateObj,weekNum){var weekNumber=parseInt(weekNum);return new Date(dateObj.getFullYear(),0,2+7*(weekNumber-1),0,0,0,0)},Y:function Y(dateObj,year){dateObj.setFullYear(parseFloat(year))},Z:function Z(_,ISODate){return new Date(ISODate)},d:function d(dateObj,day){dateObj.setDate(parseFloat(day))},h:function h(dateObj,hour){dateObj.setHours(parseFloat(hour))},i:function i(dateObj,minutes){dateObj.setMinutes(parseFloat(minutes))},j:function j(dateObj,day){dateObj.setDate(parseFloat(day))},l:do_nothing,m:function m(dateObj,month){dateObj.setMonth(parseFloat(month)-1)},n:function n(dateObj,month){dateObj.setMonth(parseFloat(month)-1)},s:function s(dateObj,seconds){dateObj.setSeconds(parseFloat(seconds))},u:function u(_,unixMillSeconds){return new Date(parseFloat(unixMillSeconds))},w:do_nothing,y:function y(dateObj,year){dateObj.setFullYear(2e3+parseFloat(year))}},tokenRegex={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},formats={Z:function Z(date){return date.toISOString()},D:function D(date,locale,options){return locale.weekdays.shorthand[formats.w(date,locale,options)]},F:function F(date,locale,options){return monthToStr(formats.n(date,locale,options)-1,!1,locale)},G:function G(date,locale,options){return pad(formats.h(date,locale,options))},H:function H(date){return pad(date.getHours())},J:function J(date,locale){return void 0===locale.ordinal?date.getDate():date.getDate()+locale.ordinal(date.getDate())},K:function K(date,locale){return locale.amPM[int(11<date.getHours())]},M:function M(date,locale){return monthToStr(date.getMonth(),!0,locale)},S:function S(date){return pad(date.getSeconds())},U:function U(date){return date.getTime()/1e3},W:function W(date,_,options){return options.getWeek(date)},Y:function Y(date){return date.getFullYear()},d:function d(date){return pad(date.getDate())},h:function h(date){return date.getHours()%12?date.getHours()%12:12},i:function i(date){return pad(date.getMinutes())},j:function j(date){return date.getDate()},l:function l(date,locale){return locale.weekdays.longhand[date.getDay()]},m:function m(date){return pad(date.getMonth()+1)},n:function n(date){return date.getMonth()+1},s:function s(date){return date.getSeconds()},u:function u(date){return date.getTime()},w:function w(date){return date.getDay()},y:function y(date){return(date.getFullYear()+"").substring(2)}},createDateFormatter=function(_a){var _b=_a.config,config=void 0===_b?defaults:_b,_c=_a.l10n,l10n=void 0===_c?english:_c;return function(dateObj,frmt,overrideLocale){var locale=overrideLocale||l10n;return void 0===config.formatDate?frmt.split("").map(function(c,i,arr){return formats[c]&&"\\"!==arr[i-1]?formats[c](dateObj,locale,config):"\\"===c?"":c}).join(""):config.formatDate(dateObj,frmt,locale)}},createDateParser=function(_a){var _b=_a.config,config=void 0===_b?defaults:_b,_c=_a.l10n,l10n=void 0===_c?english:_c;return function(date,givenFormat,timeless,customLocale){if(0===date||date){var parsedDate;if(date instanceof Date)parsedDate=new Date(date.getTime());else if("string"!=typeof date&&void 0!==date.toFixed)parsedDate=new Date(date);else if("string"==typeof date){var format=givenFormat||(config||defaults).dateFormat,datestr=(date+"").trim();if("today"===datestr)parsedDate=new Date,timeless=!0;else if(/Z$/.test(datestr)||/GMT$/.test(datestr))parsedDate=new Date(date);else if(config&&config.parseDate)parsedDate=config.parseDate(date,format);else{parsedDate=config&&config.noCalendar?new Date(new Date().setHours(0,0,0,0)):new Date(new Date().getFullYear(),0,1,0,0,0,0);for(var matched=void 0,ops=[],i=0,matchIndex=0,regexStr="";i<format.length;i++){var token_1=format[i],isBackSlash="\\"===token_1,escaped="\\"===format[i-1]||isBackSlash;if(tokenRegex[token_1]&&!escaped){regexStr+=tokenRegex[token_1];var match=new RegExp(regexStr).exec(date);match&&(matched=!0)&&ops["Y"===token_1?"unshift":"push"]({fn:revFormat[token_1],val:match[++matchIndex]})}else isBackSlash||(regexStr+=".");ops.forEach(function(_a){var fn=_a.fn,val=_a.val;return parsedDate=fn(parsedDate,val,customLocale||l10n)||parsedDate})}parsedDate=matched?parsedDate:void 0}}return!(parsedDate instanceof Date)||isNaN(parsedDate.getTime())?void config.errorHandler(new Error("Invalid date provided: "+date)):(!0===timeless&&parsedDate.setHours(0,0,0,0),parsedDate)}}},isBetween=function(ts,ts1,ts2){return ts>_Mathmin2(ts1,ts2)&&ts<_Mathmax3(ts1,ts2)},duration={DAY:864e5};"function"!=typeof Object.assign&&(Object.assign=function(target){for(var args=[],_i=1;_i<arguments.length;_i++)args[_i-1]=arguments[_i];if(!target)throw TypeError("Cannot convert undefined or null to object");for(var _loop_1=function(source){source&&Object.keys(source).forEach(function(key){return target[key]=source[key]})},_a=0,args_1=args,source;_a<args_1.length;_a++)source=args_1[_a],_loop_1(source);return target});"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(config){return _flatpickr(this,config)},HTMLElement.prototype.flatpickr=function(config){return _flatpickr([this],config)});var flatpickr=function(selector,config){return"string"==typeof selector?_flatpickr(window.document.querySelectorAll(selector),config):selector instanceof Node?_flatpickr([selector],config):_flatpickr(selector,config)};return flatpickr.defaultConfig=defaults,flatpickr.l10ns={en:_assign({},english),default:_assign({},english)},flatpickr.localize=function(l10n){flatpickr.l10ns["default"]=_assign({},flatpickr.l10ns["default"],l10n)},flatpickr.setDefaults=function(config){flatpickr.defaultConfig=_assign({},flatpickr.defaultConfig,config)},flatpickr.parseDate=createDateParser({}),flatpickr.formatDate=createDateFormatter({}),flatpickr.compareDates=compareDates,"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(config){return _flatpickr(this,config)}),Date.prototype.fp_incr=function(days){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof days?parseInt(days,10):days))},"undefined"!=typeof window&&(window.flatpickr=flatpickr),flatpickr}),function(global,factory){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define("lib/flatpickr/l10n/index",["exports"],factory):(global=global||self,factory(global.index={}))}(this,function(exports){'use strict';var _assign2=function __assign(){return _assign2=Object.assign||function(t){for(var i=1,n=arguments.length,s;i<n;i++)for(var p in s=arguments[i],s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},_assign2.apply(this,arguments)},fp="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Arabic={weekdays:{shorthand:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"],longhand:["\u0627\u0644\u0623\u062D\u062F","\u0627\u0644\u0627\u062B\u0646\u064A\u0646","\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062E\u0645\u064A\u0633","\u0627\u0644\u062C\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062A"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"]}};fp.l10ns.ar=Arabic,fp.l10ns;var fp$1="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Austria={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["J\xE4n","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["J\xE4nner","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken"};fp$1.l10ns.at=Austria,fp$1.l10ns;var fp$2="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Azerbaijan={weekdays:{shorthand:["Baz","BzE","\xC7Ax","\xC7\u0259r","CAx","C\xFCm","\u015E\u0259n"],longhand:["Bazar","Bazar ert\u0259si","\xC7\u0259r\u015F\u0259nb\u0259 ax\u015Fam\u0131","\xC7\u0259r\u015F\u0259nb\u0259","C\xFCm\u0259 ax\u015Fam\u0131","C\xFCm\u0259","\u015E\u0259nb\u0259"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","\u0130yn","\u0130yl","Avq","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","\u0130yun","\u0130yul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function ordinal(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmaq \xFC\xE7\xFCn s\xFCr\xFC\u015Fd\xFCr\xFCn",toggleTitle:"A\xE7 / Ba\u011Fla",amPM:["G\u018F","GS"]};fp$2.l10ns.az=Azerbaijan,fp$2.l10ns;var fp$3="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Belarusian={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0410\u045E","\u0421\u0440","\u0427\u0446","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u044F\u0434\u0437\u0435\u043B\u044F","\u041F\u0430\u043D\u044F\u0434\u0437\u0435\u043B\u0430\u043A","\u0410\u045E\u0442\u043E\u0440\u0430\u043A","\u0421\u0435\u0440\u0430\u0434\u0430","\u0427\u0430\u0446\u0432\u0435\u0440","\u041F\u044F\u0442\u043D\u0456\u0446\u0430","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0442\u0443","\u041B\u044E\u0442","\u0421\u0430\u043A","\u041A\u0440\u0430","\u0422\u0440\u0430","\u0427\u044D\u0440","\u041B\u0456\u043F","\u0416\u043D\u0456","\u0412\u0435\u0440","\u041A\u0430\u0441","\u041B\u0456\u0441","\u0421\u043D\u0435"],longhand:["\u0421\u0442\u0443\u0434\u0437\u0435\u043D\u044C","\u041B\u044E\u0442\u044B","\u0421\u0430\u043A\u0430\u0432\u0456\u043A","\u041A\u0440\u0430\u0441\u0430\u0432\u0456\u043A","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u044D\u0440\u0432\u0435\u043D\u044C","\u041B\u0456\u043F\u0435\u043D\u044C","\u0416\u043D\u0456\u0432\u0435\u043D\u044C","\u0412\u0435\u0440\u0430\u0441\u0435\u043D\u044C","\u041A\u0430\u0441\u0442\u0440\u044B\u0447\u043D\u0456\u043A","\u041B\u0456\u0441\u0442\u0430\u043F\u0430\u0434","\u0421\u043D\u0435\u0436\u0430\u043D\u044C"]},firstDayOfWeek:1,ordinal:function ordinal(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0422\u044B\u0434.",scrollTitle:"\u041F\u0440\u0430\u043A\u0440\u0443\u0446\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0430\u0432\u0435\u043B\u0456\u0447\u044D\u043D\u043D\u044F",toggleTitle:"\u041D\u0430\u0446\u0456\u0441\u043D\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434"};fp$3.l10ns.be=Belarusian,fp$3.l10ns;var fp$4="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Bulgarian={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0435\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u044F\u0434\u0430","\u0427\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A","\u041F\u0435\u0442\u044A\u043A","\u0421\u044A\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0443","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]}};fp$4.l10ns.bg=Bulgarian,fp$4.l10ns;var fp$5="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Bangla={weekdays:{shorthand:["\u09B0\u09AC\u09BF","\u09B8\u09CB\u09AE","\u09AE\u0999\u09CD\u0997\u09B2","\u09AC\u09C1\u09A7","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF","\u09B6\u09C1\u0995\u09CD\u09B0","\u09B6\u09A8\u09BF"],longhand:["\u09B0\u09AC\u09BF\u09AC\u09BE\u09B0","\u09B8\u09CB\u09AE\u09AC\u09BE\u09B0","\u09AE\u0999\u09CD\u0997\u09B2\u09AC\u09BE\u09B0","\u09AC\u09C1\u09A7\u09AC\u09BE\u09B0","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF\u09AC\u09BE\u09B0","\u09B6\u09C1\u0995\u09CD\u09B0\u09AC\u09BE\u09B0","\u09B6\u09A8\u09BF\u09AC\u09BE\u09B0"]},months:{shorthand:["\u099C\u09BE\u09A8\u09C1","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7","\u0985\u0995\u09CD\u099F\u09CB","\u09A8\u09AD\u09C7","\u09A1\u09BF\u09B8\u09C7"],longhand:["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"]}};fp$5.l10ns.bn=Bangla,fp$5.l10ns;var fp$6="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Catalan={weekdays:{shorthand:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],longhand:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},months:{shorthand:["Gen","Febr","Mar\xE7","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"],longhand:["Gener","Febrer","Mar\xE7","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"]},ordinal:function ordinal(nth){var s=nth%100;if(3<s&&21>s)return"\xE8";switch(s%10){case 1:return"r";case 2:return"n";case 3:return"r";case 4:return"t";default:return"\xE8";}},firstDayOfWeek:1};fp$6.l10ns.cat=Catalan,fp$6.l10ns;var fp$7="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Czech={weekdays:{shorthand:["Ne","Po","\xDAt","St","\u010Ct","P\xE1","So"],longhand:["Ned\u011Ble","Pond\u011Bl\xED","\xDAter\xFD","St\u0159eda","\u010Ctvrtek","P\xE1tek","Sobota"]},months:{shorthand:["Led","\xDAn","B\u0159e","Dub","Kv\u011B","\u010Cer","\u010Cvc","Srp","Z\xE1\u0159","\u0158\xEDj","Lis","Pro"],longhand:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function ordinal(){return"."},rangeSeparator:" do ",weekAbbreviation:"T\xFDd.",scrollTitle:"Rolujte pro zm\u011Bnu",toggleTitle:"P\u0159epnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok"};fp$7.l10ns.cs=Czech,fp$7.l10ns;var fp$8="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Welsh={weekdays:{shorthand:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],longhand:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"]},months:{shorthand:["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],longhand:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},firstDayOfWeek:1,ordinal:function ordinal(nth){return 1===nth?"af":2===nth?"ail":3===nth||4===nth?"ydd":5===nth||6===nth?"ed":7<=nth&&10>=nth||12==nth||15==nth||18==nth||20==nth?"fed":11==nth||13==nth||14==nth||16==nth||17==nth||19==nth?"eg":21<=nth&&39>=nth?"ain":""}};fp$8.l10ns.cy=Welsh,fp$8.l10ns;var fp$9="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Danish={weekdays:{shorthand:["s\xF8n","man","tir","ons","tors","fre","l\xF8r"],longhand:["s\xF8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xF8rdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},ordinal:function ordinal(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge"};fp$9.l10ns.da=Danish,fp$9.l10ns;var fp$a="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},German={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken"};fp$a.l10ns.de=German,fp$a.l10ns;var english={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function ordinal(nth){var s=nth%100;if(3<s&&21>s)return"th";switch(s%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th";}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year"},fp$b="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Esperanto={firstDayOfWeek:1,rangeSeparator:" \u011Dis ",weekAbbreviation:"Sem",scrollTitle:"Rulumu por pligrandigi la valoron",toggleTitle:"Klaku por \u015Dalti",weekdays:{shorthand:["Dim","Lun","Mar","Mer","\u0134a\u016D","Ven","Sab"],longhand:["diman\u0109o","lundo","mardo","merkredo","\u0135a\u016Ddo","vendredo","sabato"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","A\u016Dg","Sep","Okt","Nov","Dec"],longhand:["januaro","februaro","marto","aprilo","majo","junio","julio","a\u016Dgusto","septembro","oktobro","novembro","decembro"]},ordinal:function ordinal(){return"-a"}};fp$b.l10ns.eo=Esperanto,fp$b.l10ns;var fp$c="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Spanish={weekdays:{shorthand:["Dom","Lun","Mar","Mi\xE9","Jue","Vie","S\xE1b"],longhand:["Domingo","Lunes","Martes","Mi\xE9rcoles","Jueves","Viernes","S\xE1bado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:function ordinal(){return"\xBA"},firstDayOfWeek:1,rangeSeparator:" a "};fp$c.l10ns.es=Spanish,fp$c.l10ns;var fp$d="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Estonian={weekdays:{shorthand:["P","E","T","K","N","R","L"],longhand:["P\xFChap\xE4ev","Esmasp\xE4ev","Teisip\xE4ev","Kolmap\xE4ev","Neljap\xE4ev","Reede","Laup\xE4ev"]},months:{shorthand:["Jaan","Veebr","M\xE4rts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],longhand:["Jaanuar","Veebruar","M\xE4rts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"]},firstDayOfWeek:1,ordinal:function ordinal(){return"."},weekAbbreviation:"N\xE4d",rangeSeparator:" kuni ",scrollTitle:"Keri, et suurendada",toggleTitle:"Kl\xF5psa, et vahetada"};fp$d.l10ns.et=Estonian,fp$d.l10ns;var fp$e="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Persian={weekdays:{shorthand:["\u06CC\u06A9","\u062F\u0648","\u0633\u0647","\u0686\u0647\u0627\u0631","\u067E\u0646\u062C","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],longhand:["\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u0686\u200C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},months:{shorthand:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"],longhand:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"]},firstDayOfWeek:6,ordinal:function ordinal(){return""}};fp$e.l10ns.fa=Persian,fp$e.l10ns;var fp$f="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Finnish={firstDayOfWeek:1,weekdays:{shorthand:["Su","Ma","Ti","Ke","To","Pe","La"],longhand:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"]},months:{shorthand:["Tammi","Helmi","Maalis","Huhti","Touko","Kes\xE4","Hein\xE4","Elo","Syys","Loka","Marras","Joulu"],longhand:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kes\xE4kuu","Hein\xE4kuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"]},ordinal:function ordinal(){return"."}};fp$f.l10ns.fi=Finnish,fp$f.l10ns;var fp$g="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Faroese={weekdays:{shorthand:["Sun","M\xE1n","T\xFDs","Mik","H\xF3s","Fr\xED","Ley"],longhand:["Sunnudagur","M\xE1nadagur","T\xFDsdagur","Mikudagur","H\xF3sdagur","Fr\xEDggjadagur","Leygardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","Apr\xEDl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"]},ordinal:function ordinal(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",scrollTitle:"Rulla fyri at broyta",toggleTitle:"Tr\xFDst fyri at skifta",yearAriaLabel:"\xC1r"};fp$g.l10ns.fo=Faroese,fp$g.l10ns;var fp$h="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},French={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","f\xE9vr","mars","avr","mai","juin","juil","ao\xFBt","sept","oct","nov","d\xE9c"],longhand:["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]},ordinal:function ordinal(nth){return 1<nth?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"D\xE9filer pour augmenter la valeur",toggleTitle:"Cliquer pour basculer"};fp$h.l10ns.fr=French,fp$h.l10ns;var fp$i="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Greek={weekdays:{shorthand:["\u039A\u03C5","\u0394\u03B5","\u03A4\u03C1","\u03A4\u03B5","\u03A0\u03AD","\u03A0\u03B1","\u03A3\u03AC"],longhand:["\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE","\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1","\u03A4\u03C1\u03AF\u03C4\u03B7","\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7","\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7","\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE","\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF"]},months:{shorthand:["\u0399\u03B1\u03BD","\u03A6\u03B5\u03B2","\u039C\u03AC\u03C1","\u0391\u03C0\u03C1","\u039C\u03AC\u03B9","\u0399\u03BF\u03CD","\u0399\u03BF\u03CD","\u0391\u03CD\u03B3","\u03A3\u03B5\u03C0","\u039F\u03BA\u03C4","\u039D\u03BF\u03AD","\u0394\u03B5\u03BA"],longhand:["\u0399\u03B1\u03BD\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2","\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2","\u039C\u03AC\u03C1\u03C4\u03B9\u03BF\u03C2","\u0391\u03C0\u03C1\u03AF\u03BB\u03B9\u03BF\u03C2","\u039C\u03AC\u03B9\u03BF\u03C2","\u0399\u03BF\u03CD\u03BD\u03B9\u03BF\u03C2","\u0399\u03BF\u03CD\u03BB\u03B9\u03BF\u03C2","\u0391\u03CD\u03B3\u03BF\u03C5\u03C3\u03C4\u03BF\u03C2","\u03A3\u03B5\u03C0\u03C4\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2","\u039F\u03BA\u03C4\u03CE\u03B2\u03C1\u03B9\u03BF\u03C2","\u039D\u03BF\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2","\u0394\u03B5\u03BA\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2"]},firstDayOfWeek:1,ordinal:function ordinal(){return""},weekAbbreviation:"\u0395\u03B2\u03B4",rangeSeparator:" \u03AD\u03C9\u03C2 ",scrollTitle:"\u039C\u03B5\u03C4\u03B1\u03BA\u03C5\u03BB\u03AE\u03C3\u03C4\u03B5 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B1\u03CD\u03BE\u03B7\u03C3\u03B7",toggleTitle:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE",amPM:["\u03A0\u039C","\u039C\u039C"]};fp$i.l10ns.gr=Greek,fp$i.l10ns;var fp$j="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Hebrew={weekdays:{shorthand:["\u05D0","\u05D1","\u05D2","\u05D3","\u05D4","\u05D5","\u05E9"],longhand:["\u05E8\u05D0\u05E9\u05D5\u05DF","\u05E9\u05E0\u05D9","\u05E9\u05DC\u05D9\u05E9\u05D9","\u05E8\u05D1\u05D9\u05E2\u05D9","\u05D7\u05DE\u05D9\u05E9\u05D9","\u05E9\u05D9\u05E9\u05D9","\u05E9\u05D1\u05EA"]},months:{shorthand:["\u05D9\u05E0\u05D5\u05F3","\u05E4\u05D1\u05E8\u05F3","\u05DE\u05E8\u05E5","\u05D0\u05E4\u05E8\u05F3","\u05DE\u05D0\u05D9","\u05D9\u05D5\u05E0\u05D9","\u05D9\u05D5\u05DC\u05D9","\u05D0\u05D5\u05D2\u05F3","\u05E1\u05E4\u05D8\u05F3","\u05D0\u05D5\u05E7\u05F3","\u05E0\u05D5\u05D1\u05F3","\u05D3\u05E6\u05DE\u05F3"],longhand:["\u05D9\u05E0\u05D5\u05D0\u05E8","\u05E4\u05D1\u05E8\u05D5\u05D0\u05E8","\u05DE\u05E8\u05E5","\u05D0\u05E4\u05E8\u05D9\u05DC","\u05DE\u05D0\u05D9","\u05D9\u05D5\u05E0\u05D9","\u05D9\u05D5\u05DC\u05D9","\u05D0\u05D5\u05D2\u05D5\u05E1\u05D8","\u05E1\u05E4\u05D8\u05DE\u05D1\u05E8","\u05D0\u05D5\u05E7\u05D8\u05D5\u05D1\u05E8","\u05E0\u05D5\u05D1\u05DE\u05D1\u05E8","\u05D3\u05E6\u05DE\u05D1\u05E8"]},rangeSeparator:" \u05D0\u05DC "};fp$j.l10ns.he=Hebrew,fp$j.l10ns;var fp$k="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Hindi={weekdays:{shorthand:["\u0930\u0935\u093F","\u0938\u094B\u092E","\u092E\u0902\u0917\u0932","\u092C\u0941\u0927","\u0917\u0941\u0930\u0941","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"],longhand:["\u0930\u0935\u093F\u0935\u093E\u0930","\u0938\u094B\u092E\u0935\u093E\u0930","\u092E\u0902\u0917\u0932\u0935\u093E\u0930","\u092C\u0941\u0927\u0935\u093E\u0930","\u0917\u0941\u0930\u0941\u0935\u093E\u0930","\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930","\u0936\u0928\u093F\u0935\u093E\u0930"]},months:{shorthand:["\u091C\u0928","\u092B\u0930","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0947\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0942\u0932\u093E\u0908","\u0905\u0917","\u0938\u093F\u0924","\u0905\u0915\u094D\u091F","\u0928\u0935","\u0926\u093F"],longhand:["\u091C\u0928\u0935\u0930\u0940 ","\u092B\u0930\u0935\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0947\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0942\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u0924 ","\u0938\u093F\u0924\u092E\u094D\u092C\u0930","\u0905\u0915\u094D\u091F\u0942\u092C\u0930","\u0928\u0935\u092E\u094D\u092C\u0930","\u0926\u093F\u0938\u092E\u094D\u092C\u0930"]}};fp$k.l10ns.hi=Hindi,fp$k.l10ns;var fp$l="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Croatian={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","\u010Cet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Sij","Velj","O\u017Eu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],longhand:["Sije\u010Danj","Velja\u010Da","O\u017Eujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"]}};fp$l.l10ns.hr=Croatian,fp$l.l10ns;var fp$m="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Hungarian={firstDayOfWeek:1,weekdays:{shorthand:["V","H","K","Sz","Cs","P","Szo"],longhand:["Vas\xE1rnap","H\xE9tf\u0151","Kedd","Szerda","Cs\xFCt\xF6rt\xF6k","P\xE9ntek","Szombat"]},months:{shorthand:["Jan","Feb","M\xE1r","\xC1pr","M\xE1j","J\xFAn","J\xFAl","Aug","Szep","Okt","Nov","Dec"],longhand:["Janu\xE1r","Febru\xE1r","M\xE1rcius","\xC1prilis","M\xE1jus","J\xFAnius","J\xFAlius","Augusztus","Szeptember","Okt\xF3ber","November","December"]},ordinal:function ordinal(){return"."},weekAbbreviation:"H\xE9t",scrollTitle:"G\xF6rgessen",toggleTitle:"Kattintson a v\xE1lt\xE1shoz",rangeSeparator:" - "};fp$m.l10ns.hu=Hungarian,fp$m.l10ns;var fp$n="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Indonesian={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:function ordinal(){return""}};fp$n.l10ns.id=Indonesian,fp$n.l10ns;var fp$o="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Icelandic={weekdays:{shorthand:["Sun","M\xE1n","\xDEri","Mi\xF0","Fim","F\xF6s","Lau"],longhand:["Sunnudagur","M\xE1nudagur","\xDEri\xF0judagur","Mi\xF0vikudagur","Fimmtudagur","F\xF6studagur","Laugardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Ma\xED","J\xFAn","J\xFAl","\xC1g\xFA","Sep","Okt","N\xF3v","Des"],longhand:["Jan\xFAar","Febr\xFAar","Mars","Apr\xEDl","Ma\xED","J\xFAn\xED","J\xFAl\xED","\xC1g\xFAst","September","Okt\xF3ber","N\xF3vember","Desember"]},ordinal:function ordinal(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"\xC1r"};fp$o.l10ns.is=Icelandic,fp$o.l10ns;var fp$p="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Italian={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Luned\xEC","Marted\xEC","Mercoled\xEC","Gioved\xEC","Venerd\xEC","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:function ordinal(){return"\xB0"},rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare"};fp$p.l10ns.it=Italian,fp$p.l10ns;var fp$q="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Japanese={weekdays:{shorthand:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"],longhand:["\u65E5\u66DC\u65E5","\u6708\u66DC\u65E5","\u706B\u66DC\u65E5","\u6C34\u66DC\u65E5","\u6728\u66DC\u65E5","\u91D1\u66DC\u65E5","\u571F\u66DC\u65E5"]},months:{shorthand:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],longhand:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]}};fp$q.l10ns.ja=Japanese,fp$q.l10ns;var fp$r="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Korean={weekdays:{shorthand:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],longhand:["\uC77C\uC694\uC77C","\uC6D4\uC694\uC77C","\uD654\uC694\uC77C","\uC218\uC694\uC77C","\uBAA9\uC694\uC77C","\uAE08\uC694\uC77C","\uD1A0\uC694\uC77C"]},months:{shorthand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"],longhand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"]},ordinal:function ordinal(){return"\uC77C"}};fp$r.l10ns.ko=Korean,fp$r.l10ns;var fp$s="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Khmer={weekdays:{shorthand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F.","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"],longhand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F\u17D2\u1794\u178F\u17B7\u17CD","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"]},months:{shorthand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"],longhand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"]},ordinal:function ordinal(){return""},firstDayOfWeek:1,rangeSeparator:" \u178A\u179B\u17CB ",weekAbbreviation:"\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD",scrollTitle:"\u179A\u17C6\u1780\u17B7\u179B\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1794\u1784\u17D2\u1780\u17BE\u1793",toggleTitle:"\u1785\u17BB\u1785\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1795\u17D2\u179B\u17B6\u179F\u17CB\u1794\u17D2\u178A\u17BC\u179A",yearAriaLabel:"\u1786\u17D2\u1793\u17B6\u17C6"};fp$s.l10ns.km=Khmer,fp$s.l10ns;var fp$t="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Kazakh={weekdays:{shorthand:["\u0416\u0441","\u0414\u0441","\u0421c","\u0421\u0440","\u0411\u0441","\u0416\u043C","\u0421\u0431"],longhand:["\u0416\u0435\u043A\u0441\u0435\u043D\u0431i","\u0414\u04AF\u0439\u0441\u0435\u043D\u0431i","\u0421\u0435\u0439\u0441\u0435\u043D\u0431i","\u0421\u04D9\u0440\u0441\u0435\u043D\u0431i","\u0411\u0435\u0439\u0441\u0435\u043D\u0431i","\u0416\u04B1\u043C\u0430","\u0421\u0435\u043D\u0431i"]},months:{shorthand:["\u049A\u0430\u04A3","\u0410\u049B\u043F","\u041D\u0430\u0443","\u0421\u04D9\u0443","\u041C\u0430\u043C","\u041C\u0430\u0443","\u0428i\u043B","\u0422\u0430\u043C","\u049A\u044B\u0440","\u049A\u0430\u0437","\u049A\u0430\u0440","\u0416\u0435\u043B"],longhand:["\u049A\u0430\u04A3\u0442\u0430\u0440","\u0410\u049B\u043F\u0430\u043D","\u041D\u0430\u0443\u0440\u044B\u0437","\u0421\u04D9\u0443i\u0440","\u041C\u0430\u043C\u044B\u0440","\u041C\u0430\u0443\u0441\u044B\u043C","\u0428i\u043B\u0434\u0435","\u0422\u0430\u043C\u044B\u0437","\u049A\u044B\u0440\u043A\u04AF\u0439\u0435\u043A","\u049A\u0430\u0437\u0430\u043D","\u049A\u0430\u0440\u0430\u0448\u0430","\u0416\u0435\u043B\u0442\u043E\u049B\u0441\u0430\u043D"]},firstDayOfWeek:1,ordinal:function ordinal(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0410\u043F\u0442\u0430",scrollTitle:"\u04AE\u043B\u043A\u0435\u0439\u0442\u0443 \u04AF\u0448\u0456\u043D \u0430\u0439\u043D\u0430\u043B\u0434\u044B\u0440\u044B\u04A3\u044B\u0437",toggleTitle:"\u0410\u0443\u044B\u0441\u0442\u044B\u0440\u0443 \u04AF\u0448\u0456\u043D \u0431\u0430\u0441\u044B\u04A3\u044B\u0437",amPM:["\u0422\u0414","\u0422\u041A"],yearAriaLabel:"\u0416\u044B\u043B"};fp$t.l10ns.kz=Kazakh,fp$t.l10ns;var fp$u="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Lithuanian={weekdays:{shorthand:["S","Pr","A","T","K","Pn","\u0160"],longhand:["Sekmadienis","Pirmadienis","Antradienis","Tre\u010Diadienis","Ketvirtadienis","Penktadienis","\u0160e\u0161tadienis"]},months:{shorthand:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd"],longhand:["Sausis","Vasaris","Kovas","Balandis","Gegu\u017E\u0117","Bir\u017Eelis","Liepa","Rugpju\u0304tis","Rugse\u0307jis","Spalis","Lapkritis","Gruodis"]},firstDayOfWeek:1,ordinal:function ordinal(){return"-a"},weekAbbreviation:"Sav",scrollTitle:"Keisti laik\u0105 pel\u0117s rateliu",toggleTitle:"Perjungti laiko format\u0105"};fp$u.l10ns.lt=Lithuanian,fp$u.l10ns;var fp$v="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Latvian={firstDayOfWeek:1,weekdays:{shorthand:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],longhand:["Sv\u0113tdiena","Pirmdiena","Otrdiena","Tre\u0161diena","Ceturtdiena","Piektdiena","Sestdiena"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","J\u016Bn","J\u016Bl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janv\u0101ris","Febru\u0101ris","Marts","Apr\u012Blis","Maijs","J\u016Bnijs","J\u016Blijs","Augusts","Septembris","Oktobris","Novembris","Decembris"]},rangeSeparator:" l\u012Bdz "};fp$v.l10ns.lv=Latvian,fp$v.l10ns;var fp$w="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Macedonian={weekdays:{shorthand:["\u041D\u0435","\u041F\u043E","\u0412\u0442","\u0421\u0440","\u0427\u0435","\u041F\u0435","\u0421\u0430"],longhand:["\u041D\u0435\u0434\u0435\u043B\u0430","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0440\u0442\u043E\u043A","\u041F\u0435\u0442\u043E\u043A","\u0421\u0430\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0408\u0430\u043D","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0458","\u0408\u0443\u043D","\u0408\u0443\u043B","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u0408\u0430\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0458","\u0408\u0443\u043D\u0438","\u0408\u0443\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]},firstDayOfWeek:1,weekAbbreviation:"\u041D\u0435\u0434.",rangeSeparator:" \u0434\u043E "};fp$w.l10ns.mk=Macedonian,fp$w.l10ns;var fp$x="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Mongolian={firstDayOfWeek:1,weekdays:{shorthand:["\u0414\u0430","\u041C\u044F","\u041B\u0445","\u041F\u04AF","\u0411\u0430","\u0411\u044F","\u041D\u044F"],longhand:["\u0414\u0430\u0432\u0430\u0430","\u041C\u044F\u0433\u043C\u0430\u0440","\u041B\u0445\u0430\u0433\u0432\u0430","\u041F\u04AF\u0440\u044D\u0432","\u0411\u0430\u0430\u0441\u0430\u043D","\u0411\u044F\u043C\u0431\u0430","\u041D\u044F\u043C"]},months:{shorthand:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],longhand:["\u041D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0425\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u04E9\u0440\u04E9\u0432\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0417\u0443\u0440\u0433\u0430\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u043E\u043B\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u041D\u0430\u0439\u043C\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0415\u0441\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043D\u043D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043D\u0445\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"]},rangeSeparator:"-\u0441 "};fp$x.l10ns.mn=Mongolian,fp$x.l10ns;var fp$y="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}};fp$y.l10ns;var fp$z="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Burmese={weekdays:{shorthand:["\u1014\u103D\u1031","\u101C\u102C","\u1002\u102B","\u101F\u1030\u1038","\u1000\u103C\u102C","\u101E\u1031\u102C","\u1014\u1031"],longhand:["\u1010\u1014\u1004\u103A\u1039\u1002\u1014\u103D\u1031","\u1010\u1014\u1004\u103A\u1039\u101C\u102C","\u1021\u1004\u103A\u1039\u1002\u102B","\u1017\u102F\u1012\u1039\u1013\u101F\u1030\u1038","\u1000\u103C\u102C\u101E\u1015\u1010\u1031\u1038","\u101E\u1031\u102C\u1000\u103C\u102C","\u1005\u1014\u1031"]},months:{shorthand:["\u1007\u1014\u103A","\u1016\u1031","\u1019\u1010\u103A","\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u101C\u102D\u102F\u1004\u103A","\u101E\u103C","\u1005\u1000\u103A","\u1021\u1031\u102C\u1000\u103A","\u1014\u102D\u102F","\u1012\u102E"],longhand:["\u1007\u1014\u103A\u1014\u101D\u102B\u101B\u102E","\u1016\u1031\u1016\u1031\u102C\u103A\u101D\u102B\u101B\u102E","\u1019\u1010\u103A","\u1027\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u1007\u1030\u101C\u102D\u102F\u1004\u103A","\u101E\u103C\u1002\u102F\u1010\u103A","\u1005\u1000\u103A\u1010\u1004\u103A\u1018\u102C","\u1021\u1031\u102C\u1000\u103A\u1010\u102D\u102F\u1018\u102C","\u1014\u102D\u102F\u101D\u1004\u103A\u1018\u102C","\u1012\u102E\u1007\u1004\u103A\u1018\u102C"]},firstDayOfWeek:1,ordinal:function ordinal(){return""}};fp$z.l10ns.my=Burmese,fp$z.l10ns;var fp$A="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dutch={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" tot ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",ordinal:function ordinal(nth){return 1===nth||8===nth||20<=nth?"ste":"de"}};fp$A.l10ns.nl=Dutch,fp$A.l10ns;var fp$B="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Norwegian={weekdays:{shorthand:["S\xF8n","Man","Tir","Ons","Tor","Fre","L\xF8r"],longhand:["S\xF8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xF8rdag"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Uke",scrollTitle:"Scroll for \xE5 endre",toggleTitle:"Klikk for \xE5 veksle",ordinal:function ordinal(){return"."}};fp$B.l10ns.no=Norwegian,fp$B.l10ns;var fp$C="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Punjabi={weekdays:{shorthand:["\u0A10\u0A24","\u0A38\u0A4B\u0A2E","\u0A2E\u0A70\u0A17\u0A32","\u0A2C\u0A41\u0A71\u0A27","\u0A35\u0A40\u0A30","\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30","\u0A38\u0A3C\u0A28\u0A3F\u0A71\u0A1A\u0A30"],longhand:["\u0A10\u0A24\u0A35\u0A3E\u0A30","\u0A38\u0A4B\u0A2E\u0A35\u0A3E\u0A30","\u0A2E\u0A70\u0A17\u0A32\u0A35\u0A3E\u0A30","\u0A2C\u0A41\u0A71\u0A27\u0A35\u0A3E\u0A30","\u0A35\u0A40\u0A30\u0A35\u0A3E\u0A30","\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30\u0A35\u0A3E\u0A30","\u0A38\u0A3C\u0A28\u0A3F\u0A71\u0A1A\u0A30\u0A35\u0A3E\u0A30"]},months:{shorthand:["\u0A1C\u0A28","\u0A2B\u0A3C\u0A30","\u0A2E\u0A3E\u0A30","\u0A05\u0A2A\u0A4D\u0A30\u0A48","\u0A2E\u0A08","\u0A1C\u0A42\u0A28","\u0A1C\u0A41\u0A32\u0A3E","\u0A05\u0A17","\u0A38\u0A24\u0A70","\u0A05\u0A15","\u0A28\u0A35\u0A70","\u0A26\u0A38\u0A70"],longhand:["\u0A1C\u0A28\u0A35\u0A30\u0A40","\u0A2B\u0A3C\u0A30\u0A35\u0A30\u0A40","\u0A2E\u0A3E\u0A30\u0A1A","\u0A05\u0A2A\u0A4D\u0A30\u0A48\u0A32","\u0A2E\u0A08","\u0A1C\u0A42\u0A28","\u0A1C\u0A41\u0A32\u0A3E\u0A08","\u0A05\u0A17\u0A38\u0A24","\u0A38\u0A24\u0A70\u0A2C\u0A30","\u0A05\u0A15\u0A24\u0A42\u0A2C\u0A30","\u0A28\u0A35\u0A70\u0A2C\u0A30","\u0A26\u0A38\u0A70\u0A2C\u0A30"]}};fp$C.l10ns.pa=Punjabi,fp$C.l10ns;var fp$D="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Polish={weekdays:{shorthand:["Nd","Pn","Wt","\u015Ar","Cz","Pt","So"],longhand:["Niedziela","Poniedzia\u0142ek","Wtorek","\u015Aroda","Czwartek","Pi\u0105tek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Pa\u017A","Lis","Gru"],longhand:["Stycze\u0144","Luty","Marzec","Kwiecie\u0144","Maj","Czerwiec","Lipiec","Sierpie\u0144","Wrzesie\u0144","Pa\u017Adziernik","Listopad","Grudzie\u0144"]},rangeSeparator:" do ",weekAbbreviation:"tydz.",scrollTitle:"Przwi\u0144 aby zwi\u0119kszy\u0107",toggleTitle:"Kliknij aby prze\u0142\u0105czy\u0107",firstDayOfWeek:1,ordinal:function ordinal(){return"."}};fp$D.l10ns.pl=Polish,fp$D.l10ns;var fp$E="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Portuguese={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"],longhand:["Domingo","Segunda-feira","Ter\xE7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xE1bado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" at\xE9 "};fp$E.l10ns.pt=Portuguese,fp$E.l10ns;var fp$F="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Romanian={weekdays:{shorthand:["Dum","Lun","Mar","Mie","Joi","Vin","Sam"],longhand:["Duminic\u0103","Luni","Mar\u021Bi","Miercuri","Joi","Vineri","S\xE2mb\u0103t\u0103"]},months:{shorthand:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],longhand:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"]},firstDayOfWeek:1,ordinal:function ordinal(){return""}};fp$F.l10ns.ro=Romanian,fp$F.l10ns;var fp$G="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Russian={weekdays:{shorthand:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"]},firstDayOfWeek:1,ordinal:function ordinal(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u041D\u0435\u0434.",scrollTitle:"\u041F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u0435 \u0434\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F",toggleTitle:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434"};fp$G.l10ns.ru=Russian,fp$G.l10ns;var fp$H="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Sinhala={weekdays:{shorthand:["\u0D89","\u0DC3","\u0D85","\u0DB6","\u0DB6\u0DCA\u200D\u0DBB","\u0DC3\u0DD2","\u0DC3\u0DD9"],longhand:["\u0D89\u0DBB\u0DD2\u0DAF\u0DCF","\u0DC3\u0DB3\u0DD4\u0DAF\u0DCF","\u0D85\u0D9F\u0DC4\u0DBB\u0DD4\u0DC0\u0DCF\u0DAF\u0DCF","\u0DB6\u0DAF\u0DCF\u0DAF\u0DCF","\u0DB6\u0DCA\u200D\u0DBB\u0DC4\u0DC3\u0DCA\u0DB4\u0DAD\u0DD2\u0DB1\u0DCA\u0DAF\u0DCF","\u0DC3\u0DD2\u0D9A\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF","\u0DC3\u0DD9\u0DB1\u0DC3\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF"]},months:{shorthand:["\u0DA2\u0DB1","\u0DB4\u0DD9\u0DB6","\u0DB8\u0DCF\u0DBB\u0DCA","\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA","\u0DB8\u0DD0\u0DBA\u0DD2","\u0DA2\u0DD4\u0DB1\u0DD2","\u0DA2\u0DD6\u0DBD\u0DD2","\u0D85\u0D9C\u0DDD","\u0DC3\u0DD0\u0DB4\u0DCA","\u0D94\u0D9A\u0DCA","\u0DB1\u0DDC\u0DC0\u0DD0","\u0DAF\u0DD9\u0DC3\u0DD0"],longhand:["\u0DA2\u0DB1\u0DC0\u0DCF\u0DBB\u0DD2","\u0DB4\u0DD9\u0DB6\u0DBB\u0DC0\u0DCF\u0DBB\u0DD2","\u0DB8\u0DCF\u0DBB\u0DCA\u0DAD\u0DD4","\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA\u0DBD\u0DCA","\u0DB8\u0DD0\u0DBA\u0DD2","\u0DA2\u0DD4\u0DB1\u0DD2","\u0DA2\u0DD6\u0DBD\u0DD2","\u0D85\u0D9C\u0DDD\u0DC3\u0DCA\u0DAD\u0DD4","\u0DC3\u0DD0\u0DB4\u0DCA\u0DAD\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA","\u0D94\u0D9A\u0DCA\u0DAD\u0DDD\u0DB6\u0DBB\u0DCA","\u0DB1\u0DDC\u0DC0\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA","\u0DAF\u0DD9\u0DC3\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA"]}};fp$H.l10ns.si=Sinhala,fp$H.l10ns;var fp$I="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Slovak={weekdays:{shorthand:["Ned","Pon","Ut","Str","\u0160tv","Pia","Sob"],longhand:["Nede\u013Ea","Pondelok","Utorok","Streda","\u0160tvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","M\xE1j","J\xFAn","J\xFAl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janu\xE1r","Febru\xE1r","Marec","Apr\xEDl","M\xE1j","J\xFAn","J\xFAl","August","September","Okt\xF3ber","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",ordinal:function ordinal(){return"."}};fp$I.l10ns.sk=Slovak,fp$I.l10ns;var fp$J="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Slovenian={weekdays:{shorthand:["Ned","Pon","Tor","Sre","\u010Cet","Pet","Sob"],longhand:["Nedelja","Ponedeljek","Torek","Sreda","\u010Cetrtek","Petek","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",ordinal:function ordinal(){return"."}};fp$J.l10ns.sl=Slovenian,fp$J.l10ns;var fp$K="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Albanian={weekdays:{shorthand:["Di","H\xEB","Ma","M\xEB","En","Pr","Sh"],longhand:["E Diel","E H\xEBn\xEB","E Mart\xEB","E M\xEBrkur\xEB","E Enjte","E Premte","E Shtun\xEB"]},months:{shorthand:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","N\xEBn","Dhj"],longhand:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","N\xEBntor","Dhjetor"]}};fp$K.l10ns.sq=Albanian,fp$K.l10ns;var fp$L="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Serbian={weekdays:{shorthand:["Ned","Pon","Uto","Sre","\u010Cet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",rangeSeparator:" do "};fp$L.l10ns.sr=Serbian,fp$L.l10ns;var fp$M="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Swedish={firstDayOfWeek:1,weekAbbreviation:"v",weekdays:{shorthand:["S\xF6n","M\xE5n","Tis","Ons","Tor","Fre","L\xF6r"],longhand:["S\xF6ndag","M\xE5ndag","Tisdag","Onsdag","Torsdag","Fredag","L\xF6rdag"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],longhand:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"]},ordinal:function ordinal(){return"."}};fp$M.l10ns.sv=Swedish,fp$M.l10ns;var fp$N="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Thai={weekdays:{shorthand:["\u0E2D\u0E32","\u0E08","\u0E2D","\u0E1E","\u0E1E\u0E24","\u0E28","\u0E2A"],longhand:["\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C","\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C","\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23","\u0E1E\u0E38\u0E18","\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35","\u0E28\u0E38\u0E01\u0E23\u0E4C","\u0E40\u0E2A\u0E32\u0E23\u0E4C"]},months:{shorthand:["\u0E21.\u0E04.","\u0E01.\u0E1E.","\u0E21\u0E35.\u0E04.","\u0E40\u0E21.\u0E22.","\u0E1E.\u0E04.","\u0E21\u0E34.\u0E22.","\u0E01.\u0E04.","\u0E2A.\u0E04.","\u0E01.\u0E22.","\u0E15.\u0E04.","\u0E1E.\u0E22.","\u0E18.\u0E04."],longhand:["\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21","\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C","\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21","\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19","\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21","\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19","\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21","\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21","\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19","\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21","\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19","\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21"]},firstDayOfWeek:1,rangeSeparator:" \u0E16\u0E36\u0E07 ",scrollTitle:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E14",toggleTitle:"\u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",ordinal:function ordinal(){return""}};fp$N.l10ns.th=Thai,fp$N.l10ns;var fp$O="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Turkish={weekdays:{shorthand:["Paz","Pzt","Sal","\xC7ar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Sal\u0131","\xC7ar\u015Famba","Per\u015Fembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","\u015Eub","Mar","Nis","May","Haz","Tem","A\u011Fu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","\u015Eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011Fustos","Eyl\xFCl","Ekim","Kas\u0131m","Aral\u0131k"]},firstDayOfWeek:1,ordinal:function ordinal(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmak i\xE7in kayd\u0131r\u0131n",toggleTitle:"A\xE7/Kapa",amPM:["\xD6\xD6","\xD6S"]};fp$O.l10ns.tr=Turkish,fp$O.l10ns;var fp$P="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ukrainian={firstDayOfWeek:1,weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0456\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A","\u0412\u0456\u0432\u0442\u043E\u0440\u043E\u043A","\u0421\u0435\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440","\u041F'\u044F\u0442\u043D\u0438\u0446\u044F","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0456\u0447","\u041B\u044E\u0442","\u0411\u0435\u0440","\u041A\u0432\u0456","\u0422\u0440\u0430","\u0427\u0435\u0440","\u041B\u0438\u043F","\u0421\u0435\u0440","\u0412\u0435\u0440","\u0416\u043E\u0432","\u041B\u0438\u0441","\u0413\u0440\u0443"],longhand:["\u0421\u0456\u0447\u0435\u043D\u044C","\u041B\u044E\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044C","\u041A\u0432\u0456\u0442\u0435\u043D\u044C","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u0435\u0440\u0432\u0435\u043D\u044C","\u041B\u0438\u043F\u0435\u043D\u044C","\u0421\u0435\u0440\u043F\u0435\u043D\u044C","\u0412\u0435\u0440\u0435\u0441\u0435\u043D\u044C","\u0416\u043E\u0432\u0442\u0435\u043D\u044C","\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043D\u044C"]}};fp$P.l10ns.uk=Ukrainian,fp$P.l10ns;var fp$Q="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Vietnamese={weekdays:{shorthand:["CN","T2","T3","T4","T5","T6","T7"],longhand:["Ch\u1EE7 nh\u1EADt","Th\u1EE9 hai","Th\u1EE9 ba","Th\u1EE9 t\u01B0","Th\u1EE9 n\u0103m","Th\u1EE9 s\xE1u","Th\u1EE9 b\u1EA3y"]},months:{shorthand:["Th1","Th2","Th3","Th4","Th5","Th6","Th7","Th8","Th9","Th10","Th11","Th12"],longhand:["Th\xE1ng m\u1ED9t","Th\xE1ng hai","Th\xE1ng ba","Th\xE1ng t\u01B0","Th\xE1ng n\u0103m","Th\xE1ng s\xE1u","Th\xE1ng b\u1EA3y","Th\xE1ng t\xE1m","Th\xE1ng ch\xEDn","Th\xE1ng m\u01B0\u1EDDi","Th\xE1ng 11","Th\xE1ng 12"]},firstDayOfWeek:1};fp$Q.l10ns.vn=Vietnamese,fp$Q.l10ns;var fp$R="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Mandarin={weekdays:{shorthand:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],longhand:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},months:{shorthand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],longhand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rangeSeparator:" \u81F3 ",weekAbbreviation:"\u5468",scrollTitle:"\u6EDA\u52A8\u5207\u6362",toggleTitle:"\u70B9\u51FB\u5207\u6362 12/24 \u5C0F\u65F6\u65F6\u5236"};fp$R.l10ns.zh=Mandarin,fp$R.l10ns;var fp$S="undefined"!=typeof window&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},MandarinTraditional={weekdays:{shorthand:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],longhand:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},months:{shorthand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],longhand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rangeSeparator:" \u81F3 ",weekAbbreviation:"\u9031",scrollTitle:"\u6EFE\u52D5\u5207\u63DB",toggleTitle:"\u9EDE\u64CA\u5207\u63DB 12/24 \u5C0F\u6642\u6642\u5236"};fp$S.l10ns.zh_tw=MandarinTraditional,fp$S.l10ns;var l10n={ar:Arabic,at:Austria,az:Azerbaijan,be:Belarusian,bg:Bulgarian,bn:Bangla,cat:Catalan,cs:Czech,cy:Welsh,da:Danish,de:German,default:_assign2({},english),en:english,eo:Esperanto,es:Spanish,et:Estonian,fa:Persian,fi:Finnish,fo:Faroese,fr:French,gr:Greek,he:Hebrew,hi:Hindi,hr:Croatian,hu:Hungarian,id:Indonesian,is:Icelandic,it:Italian,ja:Japanese,ko:Korean,km:Khmer,kz:Kazakh,lt:Lithuanian,lv:Latvian,mk:Macedonian,mn:Mongolian,ms:{weekdays:{shorthand:["Min","Isn","Sel","Rab","Kha","Jum","Sab"],longhand:["Minggu","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},months:{shorthand:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],longhand:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},firstDayOfWeek:1,ordinal:function ordinal(){return""}},my:Burmese,nl:Dutch,no:Norwegian,pa:Punjabi,pl:Polish,pt:Portuguese,ro:Romanian,ru:Russian,si:Sinhala,sk:Slovak,sl:Slovenian,sq:Albanian,sr:Serbian,sv:Swedish,th:Thai,tr:Turkish,uk:Ukrainian,vn:Vietnamese,zh:Mandarin,zh_tw:MandarinTraditional};exports.default=l10n,Object.defineProperty(exports,"__esModule",{value:!0})}),define("css!lib/flatpickr/flatpickr",[],function(){}),define("uiForm",["module","jquery","lodash","i18n","helpers","context","form/property","form/post-render-props","form/depends-on-property","util/encode","ckeditor","ui/ckeditor/ckConfigurator","ui/datetime/picker","ui/dialog/confirmDelete","core/request","util/url"],function(module,$,_,__,helpers,context,property,postRenderProps,dependsOn,encode,ckeditor,ckConfigurator,dateTimePicker,confirmDialog,request,urlUtil){'use strict';var getUrl=function(action){var conf=module.config();return context.root_url+conf.extension+"/"+conf.module+"/"+action};return{htmlEditors:{},init:function(){var self=this;$("body").off("change","input[value=notEmpty]").on("change","input[value=notEmpty]",function(event){var primaryPropertyUri=$(event.target).closest("[id^=\"property_\"]").attr("id").replace("property_",""),secondaryProperties=$("option[value=".concat(primaryPropertyUri,"][selected='selected']")).closest("[id^=\"property_\"]"),secondaryPropertiesCheckbox=secondaryProperties.find("[value=notEmpty]");secondaryPropertiesCheckbox.each(function(i,notEmptyCheckbox){event.target.checked?notEmptyCheckbox.disabled=!1:(notEmptyCheckbox.disabled=!0,notEmptyCheckbox.checked=!1)})}),this.counter=0,this.initGenerisFormPattern=new RegExp("add|edit|mode|PropertiesAuthoring","i"),this.initTranslationFormPattern=/translate/,this.htmlEditors={},$(document).ajaxComplete(function(event,request,settings){var testedUrl;"html"!==settings.dataType&&settings.dataType||(testedUrl=-1===settings.url.indexOf("?")?settings.url:settings.url.substr(0,settings.url.indexOf("?")),self.initRendering(),self.initElements(),self.initGenerisFormPattern.test(testedUrl)&&self.initOntoForms(),self.initTranslationFormPattern.test(testedUrl)&&self.initTranslationForm())}),this.initRendering()},initRendering:function(){var self=this,$container=$(".content-block .xhtml_form:first"),$toolBar=$container.find(".form-toolbar"),$authoringBtn=$(".authoringOpener"),$testAuthoringBtn=$(".test-authoring"),$rdfImportForm=$(".rdfImport #import"),$rdfExportForm=$(".rdfExport #export"),$authoringBtnParent;$(".form_desc ~.form_radlst").parent().addClass("bool-list"),$(".form_desc + input[type=\"hidden\"]").prev().addClass("hidden-input-label"),$authoringBtn.length&&!$authoringBtn.hasClass("btn-info")&&($authoringBtnParent=$authoringBtn.parent(),$authoringBtn.prepend($("<span>",{class:"icon-edit"})),$authoringBtn.addClass("btn-info small"),$authoringBtn.appendTo($toolBar),$authoringBtnParent.remove()),$testAuthoringBtn.length&&$testAuthoringBtn.prependTo($toolBar),$rdfImportForm.length&&($("span.form_desc:empty",$rdfImportForm).hide(),$("span.form-elt-info",$rdfImportForm).css({display:"block",width:"100%"}),$(".form-elt-container.file-uploader",$rdfImportForm).css({width:"65%",float:"right"})),$rdfExportForm.length&&($("div:first",$rdfExportForm).find("input[type=\"text\"]").css("width","calc(65% - 23px)"),$("div:not(.form-toolbar):last span",$rdfExportForm).css("float","right").closest("div").find("[id*=\"ns_filter\"]").addClass("btn-default small")),$("body").off("submit",".xhtml_form form").on("submit",".xhtml_form form",function(e){var $form=$(this);return e.preventDefault(),self.submitForm($form,self.getFormData($form))}),$(".form-submitter").off("click").on("click",function(e){e.preventDefault(),$(this).addClass("current-submitter"),$(e.target).closest(".xhtml_form form").trigger("submit")}),postRenderProps.init()},getFormData:function($form){var formData={},clazz={},properties=[],indexes=[];if($("[id=\"tao.forms.class\"]").length)return $("input.global",$form[0]).each(function(){var $global=$(this),name=$global.attr("name");-1<name.indexOf("class_")?(name=name.replace("class_",""),clazz[name]=$global.val()):formData[name]=$global.val()}),0!==clazz.length&&(formData.class=clazz),$(".regular-property",$form[0]).each(function(){var property={},name="",isArray=!1,range=[];$("[id*=\"http_2_www_0_w3_0_org_1_2000_1_01_1_rdf-schema_3_range-TreeBox\"]",this).find(".checked").each(function(){range.push($(this).parent().attr("id"))}),0!==range.length&&(property["http_2_www_0_w3_0_org_1_2000_1_01_1_rdf-schema_3_range"]=range),$(":input.property",this).each(function(){var $property=$(this);name=$property.attr("name").replace(/(property_)?[^_]+_/,""),isArray=name.indexOf("[]")===name.length-2,"checkbox"===$property.attr("type")&&isArray?(name=name.substr(0,name.length-2),$property.is(":checked")&&(!_.isArray(property[name])&&(property[name]=[]),property[name].push($property.val()))):"radio"===$property.attr("type")?$property.is(":checked")&&(property[name]=$property.val()):property[name]=$property.val()}),$(":input.index",this).each(function(){var found=!1,name="",$index=$(this),i;for(i in indexes)indexes[i]&&$index.attr("data-related-index")===indexes[i].uri&&(name=$index.attr("name").replace(/(index_)?[^_]+_/,""),"radio"===$index.attr("type")||"checkbox"===$index.attr("type")?$index.is(":checked")&&(indexes[i][name]=$index.val()):indexes[i][name]=$index.val(),found=!0);if(!found){var index={};index.uri=$index.attr("data-related-index"),name=$index.attr("name").replace(/(index_)?[^_]+_/,""),"radio"===$index.attr("type")?$index.is(":checked")&&(index[name]=$index.val()):index[name]=$index.val(),indexes.push(index)}}),property.indexes=indexes,properties.push(property)}),formData.properties=properties,formData},initElements:function(){var self=this,$uriElm,$classUriElm;$(".form-refresher").off("click").on("click",function(){var $form=$(this).parents("form");return $(":input[name='"+$form.attr("name")+"_sent']").remove(),$form.submit()}),$uriElm=$("#uri"),$classUriElm=$("#classUri"),$(".form-translator").off("click").on("click",function(){return $uriElm.length&&$classUriElm.length&&helpers.getMainContainer().load(getUrl("translateInstance"),{uri:$uriElm.val(),classUri:$classUriElm.val()}),!1}),$(".html-area").each(function(){var propertyUri=this.id;ckeditor.instances[propertyUri]&&(ckeditor.instances[propertyUri].destroy(this),delete self.htmlEditors[propertyUri]);var editor=ckeditor.replace(this);editor.config=ckConfigurator.getConfig(editor,"htmlField",{resize_enabled:!1}),self.htmlEditors[propertyUri]=editor}),$(".datepicker-input").each(function(){dateTimePicker($(this).parent(),{replaceField:this,setup:"datetime",controlButtons:!0})}),$(".box-checker").off("click").on("click",function(){var $checker=$(this),regexpId=new RegExp("^"+$checker.prop("id").replace("_checker",""),"i");return $checker.hasClass("box-checker-uncheck")?($(":checkbox:not(:disabled)").each(function(){regexpId.test(this.id)&&(this.checked=!1,$(this).change())}),$checker.removeClass("box-checker-uncheck"),$checker.text(__("Check all"))):($(":checkbox:not(:disabled)").each(function(){regexpId.test(this.id)&&(this.checked=!0,$(this).change())}),$checker.addClass("box-checker-uncheck"),$checker.text(__("Uncheck all"))),!1})},initOntoForms:function initOntoForms(){function buildClassPropertiesAuthoringURL(action){var shownExtensions=context.shownExtension,extension="tao",controller="PropertiesAuthoring";return"taoItems"===shownExtensions&&(extension=shownExtensions,controller="Items"),helpers._url(action,controller,extension)}function checkForDependency(){return _checkForDependency.apply(this,arguments)}function _checkForDependency(){return _checkForDependency=_asyncToGenerator(regeneratorRuntime.mark(function _callee(propertyUri){var url,response;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.prev=0,url=urlUtil.route("getDependentProperties","PropertyValues","tao",{propertyUri:propertyUri}),_context.next=4,request({url:url,method:"GET",dataType:"json"});case 4:if(response=_context.sent,!(response.success&&response.data)){_context.next=9;break}return _context.abrupt("return",response.data);case 9:throw response;case 10:_context.next=16;break;case 12:return _context.prev=12,_context.t0=_context["catch"](0),console.error(_context.t0),_context.abrupt("return",null);case 16:case"end":return _context.stop();}},_callee,null,[[0,12]])})),_checkForDependency.apply(this,arguments)}function regularConfirmantion(){return window.confirm(__("Please confirm property deletion!"))}function getPropertyRemovalConfirmation(){return _getPropertyRemovalConfirmation.apply(this,arguments)}function _getPropertyRemovalConfirmation(){return _getPropertyRemovalConfirmation=_asyncToGenerator(regeneratorRuntime.mark(function _callee2($groupNode,uri){var dependencies;return regeneratorRuntime.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,checkForDependency(uri);case 2:return dependencies=_context2.sent,_context2.abrupt("return",new Promise(function(resolve,reject){if(!dependencies.length)return regularConfirmantion()?resolve():reject();var name=$groupNode.find(".property-heading-label")[0].innerText,dependantPropName=dependencies.reduce(function(prev,next,index){var delimiter=index===dependencies.length-1?"":", ";return prev+"".concat(next.label).concat(delimiter)},"");confirmDialog("<b>".concat(name,"</b>\n ").concat(__("currently has a dependency established with "),"\n <b>").concat(dependantPropName,"</b>.\n ").concat(__("Deleting this property will also remove the dependency"),". \n <br><br> ").concat(__("Are you wish to delete it"),"?"),resolve,reject)}));case 4:case"end":return _context2.stop();}},_callee2)})),_getPropertyRemovalConfirmation.apply(this,arguments)}function removePropertyGroup(){return _removePropertyGroup.apply(this,arguments)}function _removePropertyGroup(){return _removePropertyGroup=_asyncToGenerator(regeneratorRuntime.mark(function _callee3(){var $groupNode;return regeneratorRuntime.wrap(function(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return $groupNode=$(this).closest(".form-group"),_context3.prev=1,_context3.next=4,getPropertyRemovalConfirmation($groupNode,$(this).data("uri"));case 4:_context3.next=9;break;case 6:return _context3.prev=6,_context3.t0=_context3["catch"](1),_context3.abrupt("return");case 9:property.remove($(this).data("uri"),$("#id").val(),buildClassPropertiesAuthoringURL("removeClassProperty"),function(){$groupNode.remove()}),document.getElementById("item-class-schema").click();case 11:case"end":return _context3.stop();}},_callee3,this,[[1,6]])})),_removePropertyGroup.apply(this,arguments)}function showPropertyList(e,isInit){var $this=$(this),$elt=$this.parent("div").next("div"),propertiesTypes=["list","tree"],re=new RegExp(propertiesTypes.join("$|").concat("$"));re.test($this.val())?"none"===$elt.css("display")&&($elt.show(),$elt.find("select").removeAttr("disabled")):"none"!==$elt.css("display")&&($elt.css("display","none"),$elt.find("select").prop("disabled",!1),$elt.find("select option[value=\" \"]").attr("selected","selected").trigger("change")),$.each(propertiesTypes,function(i,rangedPropertyName){var re=new RegExp(rangedPropertyName+"$");if(re.test($this.val())){var $propValuesSelect=$elt.find("select"),propValue=$propValuesSelect.val();$propValuesSelect.html($elt.closest(".property-edit-container").find("."+rangedPropertyName+"-template").html());var $selectedInTemplate=$propValuesSelect.find("option[selected]");return propValue&&propValue.trim()?($("option[value=\"".concat(propValue,"\"]"),$propValuesSelect).length&&$propValuesSelect.val(propValue),!0):(!isInit&&$selectedInTemplate.length&&$propValuesSelect.find("option[value=\" \"]").attr("selected","selected"),!0)}})}function clearPropertyListValues(){$(this).parent("div").parent("div").children("ul.form-elt-list").remove()}function showPropertyListValues(){var $this=$(this),elt=$this.parent("div"),classUri;$(elt).parent("div").children("ul.form-elt-list").remove(),classUri=$this.val(),classUri&&classUri.trim()&&($this.parent("div").children("div.form-error").remove(),$.ajax({url:context.root_url+"taoBackOffice/Lists/getListElements",type:"POST",data:{listUri:classUri},dataType:"json",success:function success(response){var html="<ul class='form-elt-list'>",property;for(property in response)response.hasOwnProperty(property)&&(html+="<li>"+encode.html(response[property])+"</li>");html+="</ul>",$(elt).after(html)}}))}function showDependsOnProperty(){var $this=$(this),classUri=$(document.getElementById("classUri")).val(),listUri=$this.val(),dependsId=$(this)[0].id.match(/\d+_/)[0],dependsOnSelect=$(document.getElementById("".concat(dependsId,"depends-on-property"))),propertyUriToSend;propertyUriToSend=$this.parent().parent().parent()[0].id,propertyUriToSend=propertyUriToSend.replace("property_",""),$.ajax({url:context.root_url+"tao/PropertyValues/getDependOnPropertyList",type:"GET",data:{class_uri:classUri,list_uri:listUri,property_uri:propertyUriToSend},dataType:"json",success:function success(response){if(response&&response.data&&0!==response.data.length){var backendValues=response.data.reduce(function(accumulator,currentValue){return accumulator.push(currentValue.uriEncoded),accumulator},[]),currentValues=Object.values(dependsOnSelect[0].options).map(function(entry){return entry.value}).filter(function(entry){return" "!==entry}),haveSameData=!1;if(currentValues.map(function(entry){backendValues.includes(entry)||(haveSameData=!0)}),1>=dependsOnSelect[0].length||haveSameData){var html="<option value=\" \"> --- select --- </option>";for(var propertyData in response.data)html+="<option value=\"".concat(response.data[propertyData].uri,"\">").concat(response.data[propertyData].label,"</option>");dependsOnSelect.empty().append(html)}dependsOn.toggle()}else dependsOnSelect.parent().hide()}})}$(".authoringOpener").click(function(){var tabUrl=getUrl("authoring"),tabId="panel-"+module.config().module.toLowerCase()+"_authoring",$tabContainer=$("#tabs"),$panel=function(){var $wantedPanel=$tabContainer.find("#"+tabId);return $wantedPanel.length||($wantedPanel=$("<div>",{id:tabId,class:"clear content-panel"}).hide(),$tabContainer.find(".content-panel").after($wantedPanel)),$wantedPanel}();$.ajax({type:"GET",url:tabUrl,data:{uri:$("#uri").val(),classUri:$("#classUri").val()},dataType:"html",success:function success(responseHtml){$tabContainer.find(".content-panel").not($panel).hide(),window.location.hash=tabId,responseHtml=$(responseHtml),responseHtml.find("#authoringBack").click(function(){var $myPanel=$(this).parents(".content-panel"),$otherPanel=$myPanel.prev();$myPanel.hide(),$otherPanel.show()}),$panel.html(responseHtml).show()}})}),$("input.editVersionedFile").each(function(){var infoUrl=context.root_url+"tao/File/getPropertyFileInfo",data={uri:$("#uri").val(),propertyUri:$(this).siblings("label.form_desc").prop("for")},$_this=$(this);$.ajax({type:"GET",url:infoUrl,data:data,dataType:"json",success:function success(r){$_this.after("<span>"+r.name+"</span>")}})}).click(function(){var data={uri:$("#uri").val(),propertyUri:$(this).siblings("label.form_desc").prop("for")};return helpers.getMainContainer().load(getUrl("editVersionedFile"),data),!1}),$(".property-deleter").off("click").on("click",removePropertyGroup),$(".property-adder").off("click").on("click",function(e){e.preventDefault(),property.add($("#id").val(),buildClassPropertiesAuthoringURL("addClassProperty"))}),$(".index-adder").off("click").on("click",function(e){e.preventDefault();var $prependTo=$(this).closest("div"),$groupNode=$(this).closest(".form-group");if($groupNode.length){var max=0,$propertyindex=$(".property-uri",$groupNode),propertyindex=parseInt($propertyindex.attr("id").replace(/[\D]+/,""));$groupNode.find("[data-index]").each(function(){max<$(this).data("index")&&(max=$(this).data("index"))}),++max;var uri=$groupNode.find(".property-uri").val();$.ajax({type:"GET",url:helpers._url("addPropertyIndex","PropertiesAuthoring","tao"),data:{uri:uri,index:max,propertyIndex:propertyindex},dataType:"json",success:function success(response){$prependTo.before(response.form)}})}}),$(".property-edit-container").off("click",".index-remover").on("click",".index-remover",function(e){e.preventDefault();var $groupNode=$(this).closest(".form-group"),uri=$groupNode.find(".property-uri").val(),$editContainer=$($groupNode[0]).children(".property-edit-container");$.ajax({type:"POST",url:helpers._url("removePropertyIndex","PropertiesAuthoring","tao"),data:{uri:uri,indexProperty:$(this).attr("id")},dataType:"json",success:function success(response){var $toRemove=$("[id*=\""+response.id+"\"], [data-related-index=\""+response.id+"\"]");$toRemove.each(function(){for(var $currentTarget=$(this);!_.isEqual($currentTarget.parent()[0],$editContainer[0])&&$currentTarget.parent()[0]!==void 0;)$currentTarget=$currentTarget.parent();$currentTarget.remove()})}})}),$(".property-mode").off("click").on("click",function(){var $btn=$(this),mode="simple",url;if(!$btn.hasClass("disabled"))return $btn.hasClass("property-mode-advanced")&&(mode="advanced"),url=$btn.parents("form").prop("action"),helpers.getMainContainer().load(url,{property_mode:mode,uri:$("#uri").val(),id:$("#id").val(),classUri:$("#classUri").val()}),!1}),$(".property-template").each(function(){$(this).closest("div").hide()});var $propertyType=$(".property-type"),$propertyListValues=$(".property-listvalues");$propertyType.on("change",function(e,flag){showPropertyList.bind(this)(e,"initial"===flag)}).trigger("change","initial"),$propertyListValues.off("change"),$propertyListValues.on("change",function(e){clearPropertyListValues.bind(this)(e),$(this).val()&&$(this).val().trim()||$(this).find("option[value=\" \"]").attr("selected","selected"),showPropertyListValues.bind(this)(e),showDependsOnProperty.bind(this)(e)}).trigger("change"),$propertyListValues.each(function(){var elt=$(this).parent("div");elt.hasClass("form-elt-highlight")||"none"===elt.css("display")||elt.addClass("form-elt-highlight")})},initTranslationForm:function(){var self=this;$("#translate_lang").change(function(){var trLang=$(this).val();""!==trLang&&($("#translation_form").find(":input").each(function(){/^http/.test($(this).prop("name"))&&$(this).val("")}),$.post(getUrl("getTranslatedData"),{uri:$("#uri").val(),classUri:$("#classUri").val(),lang:trLang},function(response){var index,formElt;for(index in response)formElt=$(":input[name='"+index+"']"),formElt.hasClass("html-area")&&self.htmlEditors[index]?self.htmlEditors[index].setData(response[index]):formElt.val(response[index])},"json"))})},submitForm:function(myForm,serialize){var self=this,$container;try{if("multipart/form-data"===myForm.prop("enctype")&&myForm.find(".file-uploader").length)return!1;if($container=myForm.closest(".content-block"),!$container||0===$container.length)return!0;$(".html-area",myForm).each(function(){self.htmlEditors[this.id]&&self.htmlEditors[this.id].updateElement()}),serialize="undefined"==typeof serialize?myForm.serializeArray():serialize,$(".current-submitter",myForm).each(function(){$(this).removeClass("current-submitter"),Array.isArray(serialize)?serialize.push({name:this.name,value:this.value}):serialize[this.name]=this.value}),$("[data-depends-on-property][disabled]",myForm).each(function(){Array.isArray(serialize)?serialize.push({name:this.name,value:this.value}):serialize[this.name]=this.value}),$container.load(myForm.prop("action"),serialize)}catch(exp){return!1}return!1}}}),define("layout/actions/binder",["lodash"],function(_){'use strict';var bindings={};return{register:function(name,binding){bindings[name]=binding},exec:function(action,context){var name;if(action&&action.binding&&(name=action.binding,_.isFunction(bindings[name])))return bindings[name].call(action,context)}}}),define("layout/permissions",["lodash","uri"],function(_,uriUtil){'use strict';var permissionStore={},supportedRights=[];return{setSupportedRights:function(rights){_.isArray(rights)&&(supportedRights=_.filter(rights,_.isString))},getRights:function(){return supportedRights},isSupported:function(right){return _.contains(supportedRights,right)},addPermissions:function(uri,permissions){return _.isString(uri)&&_.isArray(permissions)&&(permissionStore[uri]=_.intersection(permissions,_.values(this.getRights()))),_.isUndefined(permissions)&&_.isPlainObject(uri)&&(permissions=uri,_.forEach(permissions,function(value,key){this.addPermissions(key,value)},this)),this},getPermissions:function(uri){return permissionStore[uri]},hasPermission:function(uri,permission){return!(0!==supportedRights.length)||"undefined"!=typeof permissionStore[uri]&&_.contains(permissionStore[uri],permission)},clear:function(){return permissionStore={},this},isContextAllowed:function(requiredRights,resourceContext){var self=this;return!(requiredRights&&0!==_.size(requiredRights)&&0!==supportedRights.length)||!!_.isPlainObject(resourceContext)&&_.all(requiredRights,function(right,requiredParameter){var parameterValue;return("ids"===requiredParameter&&(requiredParameter="id"),"undefined"!=typeof resourceContext[requiredParameter]&&self.isSupported(right))&&(parameterValue=uriUtil.decode(resourceContext[requiredParameter]),self.hasPermission(parameterValue,right))})},getResourceAccessMode:function(uri){var self=this,mode="allowed",rights=this.getRights(),count=_.reduce(rights,function(acc,right){return self.hasPermission(uri,right)&&acc++,acc},0);return 0<rights.length&&count!==rights.length&&(0===count?mode="denied":mode="partial"),mode}}}),define("provider/resources",["lodash","i18n","util/url","core/promise","core/dataProvider/request","layout/permissions"],function(_,__,urlUtil,Promise,request,permissionsManager){'use strict';function applyClassSignatures(resources,signature){return _.isArray(resources)?_.forEach(resources,function(resource){applyClassSignatures(resource,signature)}):resources&&(signature&&(resources.classSignature=signature),resources.children&&applyClassSignatures(resources.children,resources.signature||signature)),resources}var defaultConfig={getClasses:{url:urlUtil.route("getAll","RestClass","tao")},getResources:{url:urlUtil.route("getAll","RestResource","tao")},getClassProperties:{url:urlUtil.route("create","RestResource","tao")},copyTo:{},moveTo:{}},computeNodeAccessMode=function computeNodeAccessMode(nodes){return _.map(nodes,function(node){return node.accessMode=permissionsManager.getResourceAccessMode(node.uri),_.isArray(node.children)&&(node.children=computeNodeAccessMode(node.children)),node})};return function(config){return config=_.defaults(config||{},defaultConfig),{getClasses:function(classUri){return request(config.getClasses.url,{classUri:classUri})},getResources:function(params,computePermissions){return request(config.getResources.url,params).then(function(results){var resources,currentRights;return resources=results&&results.resources?results.resources:results,computePermissions&&results.permissions&&(currentRights=permissionsManager.getRights(),results.permissions.supportedRights&&results.permissions.supportedRights.length&&0===currentRights.length&&permissionsManager.setSupportedRights(results.permissions.supportedRights),results.permissions.data&&permissionsManager.addPermissions(results.permissions.data),resources.nodes?resources.nodes=computeNodeAccessMode(resources.nodes):resources=computeNodeAccessMode(resources)),resources}).then(applyClassSignatures)},getClassProperties:function(classUri){return request(config.getClassProperties.url,{classUri:classUri})},copyTo:function(uri,destinationClassUri,signature){return _.isEmpty(config.copyTo.url)?Promise.reject("Please define the action URL"):_.isEmpty(uri)?Promise.reject("The URI of the resource to copy must be defined"):_.isEmpty(destinationClassUri)?Promise.reject("The URI of the destination class must be defined"):request(config.copyTo.url,{uri:uri,destinationClassUri:destinationClassUri,signature:signature},"POST",null,!0,!1)},moveTo:function(ids,destinationClassUri){var params={destinationClassUri:destinationClassUri};return ids?!_.isArray(ids)&&(ids=[ids]):ids=[],1===ids.length?(params.uri=ids[0],params.signature=config.moveTo.signature):params.ids=ids,_.isEmpty(config.moveTo.url)?Promise.reject("Please define the action URL"):_.isEmpty(ids)||_.some(ids,_.isEmpty)?Promise.reject("The URI of the resource to move must be defined"):_.isEmpty(destinationClassUri)?Promise.reject("The URI of the destination class must be defined"):request(config.moveTo.url,params,"POST",null,!0,!1)}}}}),define("layout/actions/common",["jquery","i18n","lodash","core/promise","core/request","layout/section","layout/actions/binder","layout/permissions","provider/resources","ui/destination/selector","uri","ui/feedback","ui/dialog/confirm"],function($,__,_,Promise,request,section,binder,permissionsManager,resourceProviderFactory,destinationSelectorFactory,uri,feedback,confirmDialog){'use strict';var messages={confirmMove:__("The properties of the source class will be replaced by those of the destination class. This might result in a loss of metadata. Continue anyway?")},emptyPanel=function(){return section.current().updateContentBlock("<div class=\"main-container flex-container-form-main\"></div>"),$(section.selected.panel).find(".main-container")};return function(){binder.register("load",function(actionContext){section.current().loadContentBlock(this.url,_.pick(actionContext,["uri","classUri","id"]))}),binder.register("loadClass",function(actionContext){section.current().loadContentBlock(this.url,{classUri:actionContext.classUri,id:uri.decode(actionContext.classUri)})}),binder.register("subClass",function(actionContext){var classUri=uri.decode(actionContext.classUri),signature=actionContext.signature,self=this;"class"!==actionContext.type&&(signature=actionContext.classSignature);var currentSection=section.current();return currentSection.clearContentBlock&¤tSection.clearContentBlock(),request({url:self.url,method:"POST",data:{id:classUri,type:"class",signature:signature},dataType:"json"}).then(function(response){if(response.success&&response.uri)return actionContext.tree&&$(actionContext.tree).trigger("addnode.taotree",[{uri:uri.decode(response.uri),label:response.label,parent:uri.decode(actionContext.classUri),cssClass:"node-class"}]),{uri:uri.decode(response.uri),label:response.label,classUri:uri.decode(actionContext.classUri),type:"class"};throw new Error(__("Adding the new class has failed"))})}),binder.register("instanciate",function(actionContext){var self=this,classUri=uri.decode(actionContext.classUri),signature=actionContext.signature;return"class"!==actionContext.type&&(signature=actionContext.classSignature),request({url:self.url,method:"POST",data:{id:classUri,type:"instance",signature:signature},dataType:"json"}).then(function(response){if(response.success&&response.uri)return actionContext.tree&&$(actionContext.tree).trigger("addnode.taotree",[{uri:uri.decode(response.uri),label:response.label,parent:uri.decode(actionContext.classUri),cssClass:"node-instance"}]),{uri:uri.decode(response.uri),label:response.label,classUri:uri.decode(actionContext.classUri),type:"instance"};throw new Error(__("Adding the new resource has failed"))})}),binder.register("duplicateNode",function(actionContext){var self=this;return request({url:self.url,method:"POST",data:{uri:actionContext.id,classUri:uri.decode(actionContext.classUri),signature:actionContext.signature},dataType:"json"}).then(function(response){if(response.success&&response.uri)return actionContext.tree&&$(actionContext.tree).trigger("addnode.taotree",[{uri:uri.decode(response.uri),label:response.label,parent:uri.decode(actionContext.classUri),cssClass:"node-instance"}]),{uri:uri.decode(response.uri),label:response.label,classUri:uri.decode(actionContext.classUri),type:"instance"};throw new Error(__("Node duplication has failed"))})}),binder.register("removeNode",function(actionContext){var self=this,data={};return data.uri=uri.decode(actionContext.uri),data.classUri=uri.decode(actionContext.classUri),data.id=actionContext.id,data.signature=actionContext.signature,new Promise(function(resolve,reject){confirmDialog(__("Please confirm deletion"),function(){request({url:self.url,method:"POST",data:data,dataType:"json"}).then(function(response){return response.success&&response.deleted?(feedback().success(response.message||__("Resource deleted")),actionContext.tree&&$(actionContext.tree).trigger("removenode.taotree",[{id:actionContext.uri||actionContext.classUri}]),resolve({uri:actionContext.uri||actionContext.classUri})):void reject(response.msg||__("Unable to delete the selected resource"))})},function(){reject({cancel:!0})})})}),binder.register("removeNodes",function(actionContexts){var self=this,confirmMessage="",data={},classes,instances;return _.isArray(actionContexts)||(actionContexts=[actionContexts]),classes=_.filter(actionContexts,{type:"class"}),instances=_.filter(actionContexts,{type:"instance"}),data.ids=_.map(actionContexts,function(elem){return{id:elem.id,signature:elem.signature}}),1===actionContexts.length?confirmMessage=__("Please confirm deletion"):1<actionContexts.length&&(instances.length&&(1===instances.length?confirmMessage=__("an instance"):confirmMessage=__("%s instances",instances.length)),classes.length&&(confirmMessage&&(confirmMessage+=__(" and ")),1===classes.length?confirmMessage=__("a class"):confirmMessage+=__("%s classes",classes.length)),confirmMessage=__("Please confirm deletion of %s.",confirmMessage)),new Promise(function(resolve,reject){confirmDialog(confirmMessage,function(){request({url:self.url,method:"POST",data:data,dataType:"json"}).then(function(response){response.success&&response.deleted?resolve(response.deleted):reject(new Error(response.message||__("Unable to delete the selected resources")))})},function(){reject({cancel:!0})})})}),binder.register("moveNode",function(actionContext){var data=_.pick(actionContext,["id","uri","destinationClassUri","confirmed","signature"]);(function _moveNode(url){request({url:url,method:"POST",data:data,dataType:"json"}).then(function(response){var message,i;if(!(response&&!0===response.status)){if(response&&"diff"===response.status){for(message=__("Moving this element will replace the properties of the previous class by those of the destination class :"),message+="\n",i=0;i<response.data.length;i++)response.data[i].label&&(message+="- ".concat(response.data[i].label,"\n"));if(message+="".concat(__("Please confirm this operation."),"\n"),window.confirm(message))return data.confirmed=!0,_moveNode(url,data)}$(actionContext.tree).trigger("rollback.taotree")}})})(this.url,data)}),binder.register("launchEditor",function(actionContext){var data=_.pick(actionContext,["id"]),wideDifferenciator="[data-content-target=\"wide\"]";$.ajax({url:this.url,type:"GET",data:data,dataType:"html",success:function success(response){var $response=$($.parseHTML(response,document,!0));$response.is(wideDifferenciator)||$response.find(wideDifferenciator).length?section.create({id:"authoring",name:__("Authoring"),url:this.url,content:$response,visible:!1}).show():section.updateContentBlock($response)}})}),binder.register("copyTo",function(actionContext){var $container=emptyPanel(),resourceProvider=resourceProviderFactory({copyTo:{url:this.url}});return new Promise(function(resolve,reject){destinationSelectorFactory($container,{classUri:actionContext.rootClassUri,preventSelection:function(nodeUri,node,$node){return!((!$node.length||"partial"!==$node.data("access"))&&"denied"!==$node.data("access")||permissionsManager.hasPermission(nodeUri,"WRITE"))&&(feedback().warning(__("You are not allowed to write in the class %s",node.label)),!0)}}).on("query",function(params){var self=this;params.classOnly=!0,resourceProvider.getResources(params,!0).then(function(resources){self.update(resources,params)}).catch(function(err){self.trigger("error",err)})}).on("select",function(destinationClassUri){var self=this;_.isEmpty(destinationClassUri)||(this.disable(),resourceProvider.copyTo(actionContext.id,destinationClassUri,actionContext.signature).then(function(result){return result&&result.uri?(feedback().success(__("Resource copied")),actionContext.tree&&$(actionContext.tree).trigger("refresh.taotree",[result]),resolve(result)):reject(new Error(__("Unable to copy the resource")))}).catch(function(err){self.trigger("error",err)}))}).on("error",reject)})}),binder.register("moveTo",function(actionContext){var $container=emptyPanel(),tree=actionContext.tree,resourceProvider=resourceProviderFactory({moveTo:{url:this.url}});return _.isArray(actionContext)||(actionContext=[actionContext]),new Promise(function(resolve,reject){var rootClassUri=_.pluck(actionContext,"rootClassUri").pop(),selectedUri=_.pluck(actionContext,"id"),selectedData=_.map(actionContext,function(a){return{id:a.id,signature:a.signature}});destinationSelectorFactory($container,{title:__("Move to"),actionName:__("Move"),icon:"move-item",classUri:rootClassUri,confirm:messages.confirmMove,preventSelection:function(nodeUri,node,$node){var uriList=[];return($node.length&&"partial"===$node.data("access")||"denied"===$node.data("access"))&&!permissionsManager.hasPermission(nodeUri,"WRITE")?(feedback().warning(__("You are not allowed to write in the class %s",node.label)),!0):(uriList=[nodeUri],$node.parents(".class").each(function(){this.dataset.uri!==rootClassUri&&uriList.push(this.dataset.uri)}),!!_.intersection(selectedUri,uriList).length&&(feedback().warning(__("You cannot move the selected resources in the class %s",node.label)),!0))}}).on("query",function(params){var self=this;params.classOnly=!0,resourceProvider.getResources(params,!0).then(function(resources){self.update(resources,params)}).catch(function(err){self.trigger("error",err)})}).on("select",function(destinationClassUri){var self=this;_.isEmpty(destinationClassUri)||(this.disable(),resourceProvider.moveTo(selectedData,destinationClassUri).then(function(results){var failed=[],success=[];return _.forEach(results,function(result,resUri){var resource=_.find(actionContext,{uri:resUri});result.success?success.push(resource):failed.push(result.message)}),success.length?failed.length?feedback().warning(__("Some resources have not been moved: %s",failed.join(", "))):feedback().success(__("Resources moved")):feedback().error(__("Unable to move the resources")),tree&&$(tree).trigger("refresh.taotree",[destinationClassUri]),resolve(destinationClassUri)}).catch(function(err){self.trigger("error",err)}))}).on("error",reject)})})}}),define("layout/actions",["jquery","lodash","core/eventifier","core/promise","lib/uuid","layout/actions/binder","layout/actions/common","layout/permissions"],function($,_,eventifier,Promise,uuid,binder,commonActions,permissionsManager){'use strict';var actions={},resourceContext={},actionManager=eventifier({init:function($scope){this.$scope=$scope&&$scope.length?$scope:$(document),commonActions(),this._lookup(),this.updateContext(),this._listenUpdates(),this._bind()},_lookup:function(){var self=this;$(".action-bar .action",this.$scope).each(function(){var $this=$(this),id;if($this.data("action")){if($this.attr("id"))id=$this.attr("id");else{do id="action-"+uuid(8,16);while(self._actions[id]);$this.attr("id",id)}actions[id]={id:id,name:$this.attr("title"),binding:$this.data("action"),url:$("a",$this).attr("href"),context:$this.data("context"),multiple:$this.data("multiple"),rights:$this.data("rights"),state:{disabled:$this.hasClass("disabled"),hidden:$this.hasClass("hidden"),active:$this.hasClass("active")}}}})},_bind:function(){var self=this,actionSelector=this.$scope.selector+" .action-bar .action";$(document).off("click",actionSelector).on("click",actionSelector,function(e){var selected;e.preventDefault(),selected=actions[$(this).attr("id")],selected&&!1===selected.state.disabled&&!1===selected.state.hidden&&self.exec(selected)})},_listenUpdates:function(){var self=this,treeSelector=this.$scope.selector+" .tree";$(document).off("change.taotree.actions",treeSelector).on("change.taotree.actions",treeSelector,function(e,context){context=context||{},context.tree=this,self.updateContext(context)})},updateContext:function(context){var self=this,hasClasses,hasInstances,current;context=context||{},_.isArray(context)?(hasClasses=_.some(context,{type:"class"}),hasInstances=_.some(context,{type:"instance"}),_.forEach(actions,function(action){var hasPermissionDenied=_.some(context,function(resource){return!permissionsManager.isContextAllowed(action.rights,resource)});action.state.hidden=!(context.length&&action.multiple&&!hasPermissionDenied&&"none"!==action.context&&("*"===action.context||"resource"===action.context||"instance"===action.context&&hasInstances&&!hasClasses||"class"===action.context&&hasClasses&&!hasInstances))})):(current=context.type?context.type:context.uri?"instance":context.classUri?"class":"none",_.forEach(actions,function(action){var allowed=permissionsManager.isContextAllowed(action.rights,context);action.state.hidden=!!(action.multiple||!1===allowed||"none"===current&&"*"!==action.context||"*"!==action.context&&"resource"!==action.context&¤t!==action.context)})),resourceContext=context,self.trigger("contextchange",context),self.updateState()},updateState:function(){_.forEach(actions,function(action,id){var $elt=$("#"+id);_.forEach(["hidden","disabled","active"],function(state){!0===action.state[state]?$elt.addClass(state):$elt.removeClass(state)})})},exec:function(action,context){var self=this;if(_.isString(action)&&(_.isPlainObject(actions[action])?action=actions[action]:action=_.find(actions,{name:action})),_.isPlainObject(action))return _.forEach(actions,function(otherAction){otherAction.state.active=!1}),action.state.active=!0,this.updateState(),Promise.resolve(binder.exec(action,context||resourceContext)).then(function(actionData){var events=[action.id,action.binding];self.trigger(events.join(" "),context||resourceContext,actionData)}).catch(function(err){return err&&err.cancel?self.trigger("cancel",action.id):void self.trigger("error",err)})},getBy:function getBy(actionName){var action;return action=_.isPlainObject(actions[actionName])?actions[actionName]:_.find(actions,{name:actionName}),action}});return actionManager}),define("layout/nav",["jquery","lodash"],function($,_){'use strict';var $body=$("body"),$navContainer=$("header.dark-bar"),$nav=$navContainer.find($("nav")),$mainMenu=$nav.find(".main-menu"),$settingsMenu=$nav.find(".settings-menu"),navIsOversized=!1,expandedMinWidth=function(){var _width=$navContainer.find("img").parent().outerWidth();return $mainMenu.add($settingsMenu).each(function(){var oldDisplay=window.getComputedStyle(this,null).getPropertyValue("display");this.style.display="block",_width+=$(this).outerWidth(),this.style.display=oldDisplay}),_width+20}(),checkHeight=function(){$mainMenu.length&&$settingsMenu.length&&($mainMenu.offset().top===$settingsMenu.offset().top?navIsOversized&&expandedMinWidth<=$navContainer.width()&&($body.removeClass("oversized-nav"),navIsOversized=!1):($body.addClass("oversized-nav"),navIsOversized=!0))};return{init:function init(){$("[data-action]",$nav).off("click").on("click",function(e){e.preventDefault();var binding=$(this).data("action");binding&&require([binding],function(controller){controller&&"function"==typeof controller.start&&controller.start()})}),checkHeight(),$(window).off("resize.navheight").on("resize.navheight",_.debounce(function(){checkHeight()},100))}}}),define("layout/search",["jquery","layout/actions","ui/searchModal","core/store","context","util/url","layout/actions/binder"],function($,actionManager,searchModal,store,context,urlHelper){function initializeEvents(){searchComponent.container=searchComponent.panelId?$("#panel-".concat(searchComponent.panelId," .action-bar .search-area")):$(".action-bar .search-area");var $searchBtn=$("button.icon-find",searchComponent.container),$searchInput=$("input",searchComponent.container),$resultsBtn=$("button.icon-ul",searchComponent.container);$searchBtn.off(".searchComponent").on("click.searchComponent",function(){return createSearchModalInstance()}),$searchInput.off(".searchComponent").on("keypress.searchComponent",function(e){13===e.which&&createSearchModalInstance()}),$resultsBtn.off(".searchComponent").on("click.searchComponent",function(){searchComponent.searchStore.getItem("criterias").then(function(storedCriterias){return createSearchModalInstance(storedCriterias,!1)}).catch(function(e){actionManager.trigger("error",e)})}),$(document).on("keydown.searchComponent",function(e){"flex"===$(".action-bar .search-area").closest(".content-panel").css("display")&&e.ctrlKey&&75==e.which&&(e.preventDefault(),createSearchModalInstance())})}function createSearchModalInstance(criterias){var searchOnInit=!(1<arguments.length&&arguments[1]!==void 0)||arguments[1];criterias=criterias||{search:$("input",searchComponent.container).val()};var url=searchComponent.container.data("url"),placeholder=searchComponent.container.find("input").attr("placeholder"),rootClassUri=decodeURIComponent(urlHelper.parse(url).query.rootNode),isResultPage="results"===context.shownStructure,searchModalInstance=searchModal({criterias:criterias,url:url,searchOnInit:searchOnInit,rootClassUri:rootClassUri,hideResourceSelector:isResultPage,placeholder:placeholder});searchModalInstance.on("store-updated",manageSearchStoreUpdate),searchModalInstance.on("refresh",function(id,data){var uri=isResultPage&&data.delivery?data.delivery:id;actionManager.trigger("refresh",{uri:uri}),isResultPage&&data.delivery&&searchComponent.container.data("show-result",id)})}function manageSearchStoreUpdate(){searchComponent.searchStore.getItem("context").then(function(storedContext){if(storedContext!==context.shownStructure)searchComponent.searchStore.clear(),updateViewAfterSeachStoreUpdate();else{var promises=[searchComponent.searchStore.getItem("criterias"),searchComponent.searchStore.getItem("results")];return Promise.all(promises).then(function(values){updateViewAfterSeachStoreUpdate(values[0],values[1])})}}).catch(function(e){return actionManager.trigger("error",e)})}function updateViewAfterSeachStoreUpdate(storedCriterias,storedSearchResults){var $searchInput=$("input",searchComponent.container),$resultsCounterContainer=$(".results-counter",searchComponent.container),$searchAreaButtonsContainer=$(".search-area-buttons-container",searchComponent.container);$searchInput.val(storedCriterias?storedCriterias.search:""),storedSearchResults?($searchAreaButtonsContainer.addClass("has-results-counter"),$resultsCounterContainer.text(99<storedSearchResults.totalCount?"+99":storedSearchResults.totalCount)):($searchAreaButtonsContainer.removeClass("has-results-counter"),$resultsCounterContainer.text(""))}var searchComponent={container:null,searchStore:null,panelId:"",init:function init(panelId){searchComponent.panelId=panelId,store("search").then(function(store){store.clear(),searchComponent.searchStore=store,initializeEvents(),manageSearchStoreUpdate()}).catch(function(e){actionManager.trigger("error",e)})}};return searchComponent}),define("layout/tree/provider/jstree",["jquery","lodash","i18n","context","core/store","core/promise","util/url","layout/generisRouter","layout/actions","layout/section","layout/permissions","ui/feedback","uri","jquery.tree"],function($,_,__,context,store,Promise,urlUtil,generisRouter,actionManager,sectionManager,permissionsManager,feedback,uri){'use strict';return{name:"jstree",init:function($container,options){function setTreeState(treeState){$container.data("tree-state",treeState)}function hasAccessTo(actionType,node){var action=options.actions[actionType];return!(node&&action&&node.permissions&&action.rights)||permissionsManager.isContextAllowed(action.rights,{uri:node.attributes["data-uri"],classUri:node.attributes["data-classUri"],id:node.attributes.id})}function computeSelectionAccess(node){return _.isArray(node)?void _.forEach(node,computeSelectionAccess):void(node.type&&(addClassToNode(node,getPermissionClass(node)),!hasAccessTo("moveInstance",node)&&addClassToNode(node,"node-undraggable")),node.children&&_.forEach(node.children,computeSelectionAccess))}function getPermissionClass(node){var nodeId=node.attributes["data-uri"],rights=permissionsManager.getRights(),count=_.reduce(rights,function(acc,right){return permissionsManager.hasPermission(nodeId,right)&&acc++,acc},0);return 0===rights.length||count===rights.length?"permissions-full":0===count?"permissions-none":"permissions-partial"}function addTitle(node){return _.isArray(node)?void _.forEach(node,addTitle):void(node.attributes&&node.data&&(node.attributes.title=node.data),node.children&&_.forEach(node.children,addTitle))}function needMore(node){_.isArray(node)&&lastOpened&&lastOpened.length&&lastOpened.data("count")>30?node.push(moreNode):(node.count&&(node.attributes["data-count"]=node.count,node.children&&node.count>node.children.length&&node.children.push(moreNode)),node.children&&_.forEach(node.children,needMore),_.isArray(node)&&_.forEach(node,needMore))}function loadMore($node,$parentNode,tree){var current=$parentNode.children("ul").children("li.node-instance").length,count=$parentNode.data("count"),left=count-current,params=_.defaults({classUri:$parentNode.attr("id"),subclasses:0,offset:current,limit:0>left?30:30>left?left:30},serverParams);$.ajax(tree.settings.data.opts.url,{type:tree.settings.data.opts.method,dataType:tree.settings.data.type,async:tree.settings.data.async,data:params}).done(function(response){var treeData=getTreeData(response);treeData&&_.isArray(treeData.children)&&(treeData=treeData.children),_.isArray(treeData)&&(_.forEach(treeData,function(newNode){"instance"===newNode.type&&tree.create(newNode,$parentNode)}),tree.deselect_branch($node),tree.remove($node),0<left-treeData.length&&tree.create(moreNode,$parentNode))})}function executePossibleAction(actions,nodeContext,exclude){var possibleActions;_.isArray(exclude)||(exclude=[]),possibleActions=_.filter(actions,function(action,name){var possible=_.contains(nodeContext.context,action.context);return possible&&!_.contains(exclude,name)}),0<possibleActions.length&&actionManager.exec(possibleActions[0],nodeContext)}function addClassToNode(node,clazz){node&&node.attributes&&(node.attributes["class"]=node.attributes["class"]||"",node.attributes["class"]=node.attributes["class"].length?node.attributes["class"]+" "+clazz:clazz)}function getTreeData(response){var treeData=response.tree||response,currentRights;return response.permissions&&(currentRights=permissionsManager.getRights(),response.permissions.supportedRights&&response.permissions.supportedRights.length&&0===currentRights.length&&permissionsManager.setSupportedRights(response.permissions.supportedRights),response.permissions.data&&permissionsManager.addPermissions(response.permissions.data)),treeData}function selectNodeById(id,tree){var $node;return!!id&&($node=$("#"+id,$container),$node.length&&!$node.hasClass("private"))&&(tree.select_branch($node),!0)}var moreNode={data:__("More"),type:"more",attributes:{class:"more"}},serverParams=_.defaults(options.serverParameters||{},{extension:context.shownExtension,perspective:context.shownStructure,section:context.section,classUri:options.rootClassUri?options.rootClassUri:void 0,hideInstances:options.hideInstances||0,filter:"*",offset:0,limit:30}),events={refresh:function(data){var tree=$.tree.reference($container),treeState,node;if(tree){if(data&&data.loadNode&&(node=$container.find("[data-uri=\""+data.loadNode+"\"]"),node.length))return void tree.select_branch(node);treeState=_.merge($container.data("tree-state")||{},data),treeState=_.omit(treeState,"selectNode"),data&&data.loadNode?(tree.deselect_branch(tree.selected),tree.settings.selected=!1,treeState.selectNode=data.loadNode):data&&data.selectNode&&(tree.deselect_branch(tree.selected),tree.settings.selected=!1),setTreeState(treeState),tree.refresh()}},rollback:function(){var tree=$.tree.reference($container),treeState;tree&&(treeState=$container.data("tree-state"),treeState.rollback?($.tree.rollback(treeState.rollback),setTreeState(_.omit(treeState,"rollback"))):$container.trigger("refresh.taotree"))},addnode:function(data){var tree=$.tree.reference($container),parentNode=tree.get_node($("#"+uri.encode(data.parent),$container).get(0)),params=_.clone(serverParams);params.classUri=data.parent,"node-class"===data.cssClass?params.hideInstances=1:params.loadNode=data.uri,$.ajax(tree.settings.data.opts.url,{type:tree.settings.data.opts.method,dataType:tree.settings.data.type,async:tree.settings.data.async,data:params,success:function success(response){var treeData=getTreeData(response),items=treeData.children||treeData,node=_.filter(items,function(child){return child.attributes&&child.attributes["data-uri"]===data.uri});node.length&&tree.select_branch(tree.create(node[0],parentNode))}})},removenode:function(data){var tree=$.tree.reference($container),node=tree.get_node($("#"+data.id,$container).get(0));tree.remove(node)},selectnode:function(data){var tree=$.tree.reference($container),node=tree.get_node($("#"+data.id,$container).get(0));$("li a",$container).removeClass("clicked"),tree.select_branch(node)},openbranch:function(data){var tree=$.tree.reference($container),node=tree.get_node($("#"+data.id,$container).get(0));$("li a",$container).removeClass("clicked"),tree.open_branch(node)}},treeOptions={data:{type:"json",async:!0,opts:{method:"GET",url:options.url}},ui:{theme_name:"css",theme_path:context.taobase_www+"js/lib/jsTree/themes/css/style.css"},types:{default:{renameable:!1,deletable:!0,creatable:!0,draggable:function draggable($node){return $node.hasClass("node-instance")&&!$node.hasClass("node-undraggable")&&options.actions&&options.actions.moveInstance}}},callback:{ondelete:function(){$container.trigger("delete.taotree",Array.prototype.slice.call(arguments))},beforedata:function($node){var treeData=$container.data("tree-state"),params=_.clone(serverParams);return $node&&$node.length&&(params.classUri=$node.data("uri")),lastSelected&&(params.selected=lastSelected),treeData&&(_.isString(treeData.filter)&&treeData.filter.length&&(params.filter=treeData.filter,treeData=_.omit(treeData,"filter")),_.isString(treeData.loadNode)&&treeData.loadNode.length&&(params.selected=treeData.loadNode,treeData.selectNode=uri.encode(treeData.loadNode),treeData=_.omit(treeData,"loadNode")),setTreeState(treeData)),params},ondata:function(data){var treeData;return data.error?(feedback().error(data.error),[]):(treeData=getTreeData(data),treeData.children&&(treeData.state="open"),computeSelectionAccess(treeData),needMore(treeData),addTitle(treeData),treeData)},onload:function(tree){var $firstClass=$(".node-class:not(.private):first",$container),$firstInstance=$(".node-instance:not(.private):first",$container),treeState=$container.data("tree-state")||{},selectNode=treeState.selectNode||options.selectNode,nodeSelection=function(){return selectNodeById(selectNode,tree)||tree.selected||selectNodeById(lastSelected,tree)?void 0:$firstInstance.length?tree.select_branch($firstInstance):void tree.select_branch($(".node-class,.node-instance",$container).get(0))};$firstClass.hasClass("leaf")?tree.select_branch($firstClass):tree.open_branch($firstClass,!1,function(){_.delay(nodeSelection,10)}),$container.trigger("ready.taotree")},oninit:function(){options.actions&&options.actions.init&&actionManager.exec(options.actions.init,{uri:$container.data("rootnode")})},beforeopen:function(node){lastOpened=$(node)},onselect:function(node,tree){var $node=$(node),classActions=[],nodeId=$node.attr("id"),nodeUri=$node.data("uri"),$parentNode=tree.parent($node),nodeContext={rootClassUri:options.rootClassUri,signature:$node.data("signature")};return(lastSelected=nodeId,$("a.clicked",$container).parent("li").not("[id=\""+nodeId+"\"]").removeClass("clicked"),$node.hasClass("more"))?(loadMore($node,$parentNode,tree),!1):($node.hasClass("node-class")&&($node.hasClass("closed")&&tree.open_branch($node),nodeContext.classUri=nodeId,nodeContext.classSignature=$node.data("signature"),nodeContext.id=nodeUri,nodeContext.context=["class","resource"],classActions=_.intersection(_.pluck(options.actions,"context"),["class","resource","*"]),0<classActions.length&&(generisRouter.pushNodeState(location.href,uri.decode(nodeContext.classUri)),executePossibleAction(options.actions,nodeContext,["delete"]))),$node.hasClass("node-instance")&&(nodeContext.uri=nodeId,nodeContext.classUri=$parentNode.attr("id"),nodeContext.classSignature=$parentNode.data("signature"),nodeContext.id=nodeUri,nodeContext.context=["instance","resource"],store("taotree").then(function(treeStore){treeStore.setItem(context.section,nodeId).then(function(){generisRouter.pushNodeState(location.href,uri.decode(nodeContext.uri)),executePossibleAction(options.actions,nodeContext,["moveInstance","delete"])})})),$container.trigger("select.taotree",[nodeContext]).trigger("change.taotree",[nodeContext]),!1)},onmove:function(node,refNode,type,tree,rollback){return!!options.actions.moveInstance&&($(refNode).hasClass("node-instance")&&"inside"===type?($.tree.rollback(rollback),!1):(("after"===type||"before"===type)&&(refNode=tree.parent(refNode)),refNode instanceof $||refNode instanceof window.HTMLElement?void(setTreeState(_.merge($container.data("tree-state"),{rollback:rollback})),actionManager.exec(options.actions.moveInstance,{uri:$(node).data("uri"),destinationClassUri:$(refNode).data("uri"),signature:$(node).data("signature"),tree:node}),$container.trigger("change.taotree")):($.tree.rollback(rollback),!1)))}}},lastOpened,lastSelected;return function(){return new Promise(function(resolve){_.forEach(events,function(callback,name){$container.off(name+".taotree").on(name+".taotree",function(){callback.apply(this,Array.prototype.slice.call(arguments,1))})}),actionManager.on("refresh",function(node){var params=node;node&&node.uri&&(params={loadNode:uri.encode(params.uri)}),$container.is(":visible")&&$container.trigger("refresh.taotree",[params])}),$container.hasClass("tree")||store("taotree").then(function(treeStore){treeStore.getItem(context.section).then(function(){setTreeState({loadNode:options.loadNode}),$container.tree(treeOptions),sectionManager.on("show.section",function(section){options.sectionId===section.id&&$container.trigger("refresh.taotree")}),generisRouter.on("urichange",function(nodeUri,sectionId){options.sectionId===sectionId&&$container.trigger("refresh.taotree",[{loadNode:uri.encode(nodeUri)}])})})}),$container.on("ready.taotree",function(){resolve()})})}()}}}),define("layout/tree/provider/resourceSelector",["lodash","i18n","core/promise","core/store","core/logger","layout/actions","layout/generisRouter","layout/permissions","provider/resources","ui/resource/selector"],function(_,__,Promise,store,loggerFactory,actionManager,generisRouter,permissionsManager,resourceProviderFactory,resourceSelectorFactory){'use strict';var logger=loggerFactory("layout/tree/provider/resourceSelector"),resourceProvider=resourceProviderFactory();return{name:"resource-selector",init:function($container,options){return new Promise(function(resolve){store("taotree").then(function(treeStore){return Promise.all([resourceProvider.getClasses(options.rootClassUri),resourceProvider.getClassProperties(options.rootClassUri),treeStore.getItem(options.id)]).then(function(results){var classes=results[0],filters=results[1],defaultNode=results[2],preloadNode="undefined"!=typeof options.loadNode;resourceSelectorFactory($container,{icon:options.icon||"test",searchPlaceholder:__("Filter"),selectionMode:"both",selectClass:!0,classUri:options.rootClassUri,classes:classes,filters:filters}).on("init",function(){actionManager.exec(options.actions.init,{uri:options.rootClassUri})}).on("render",function(){var self=this;actionManager.on("removeNodes",function(actionContext,nodes){self.setState("loading",!0),_.forEach(nodes,self.removeNode,self),self.changeSelectionMode("single"),self.setState("loading",!1),self.selectDefaultNode(defaultNode)}),actionManager.on("removeNode",function(actionContext,node){self.removeNode(node),self.selectDefaultNode(defaultNode)}),actionManager.on("subClass instanciate duplicateNode",function(actionContext,node){self.after("update.add",function(){self.off("update.add"),self.select(node)}).changeSelectionMode("single").query({classUri:node.classUri})}),actionManager.on("copyTo moveTo",function(actionContext,node){self.refresh(node||defaultNode)}),actionManager.on("refresh",function(node){self.refresh(node||defaultNode)}),generisRouter.on("urichange",function(nodeUri,sectionId){options.sectionId===sectionId&&self.refresh(nodeUri)}),resolve()}).on("query",function(params){var self=this;preloadNode&&(params.selectedUri=options.loadNode,preloadNode=!1),resourceProvider.getResources(params,!0).then(function(resources){self.update(resources,params)}).catch(function(err){logger.error(err)})}).on("update.first",function(){this.off("update.first"),this.selectDefaultNode(options.loadNode||defaultNode)}).on("selectionmodechange",function(mode){"single"===mode&&defaultNode&&this.selectDefaultNode(defaultNode)}).on("change",function(selection){var self=this,length=_.size(selection),getContext=function(resource){return _.defaults(resource,{id:resource.uri,rootClassUri:self.classUri})};self.is("loading")||(1===length?_.forEach(selection,function(resource){var selectedContext=getContext(resource);actionManager.updateContext(selectedContext),"class"===selectedContext.type&&actionManager.exec(options.actions.selectClass,selectedContext),"instance"===selectedContext.type&&actionManager.exec(options.actions.selectInstance,selectedContext),generisRouter.pushNodeState(location.href,resource.uri),defaultNode=resource,treeStore.setItem(options.id,defaultNode)}):actionManager.updateContext(_.transform(selection,function(acc,resource){return acc.push(getContext(resource)),acc},[])))}).on("error",function(err){logger.error(err)})})})})}}}),define("layout/tree/loader",["module","core/providerRegistry","layout/tree/provider/jstree","layout/tree/provider/resourceSelector"],function(module,providerRegistry,jsTreeProvider,resourceSelectorProvider){'use strict';var treeProviderRegistry=providerRegistry({}),providerExists=function(providerName){return providerName&&-1!==treeProviderRegistry.getAvailableProviders().indexOf(providerName)};return treeProviderRegistry.registerProvider(jsTreeProvider.name,jsTreeProvider),treeProviderRegistry.registerProvider(resourceSelectorProvider.name,resourceSelectorProvider),function(providerName){var providerToLoad="jstree",config=module.config();return providerExists(providerName)?providerToLoad=providerName:providerExists(config.treeProvider)&&(providerToLoad=config.treeProvider),treeProviderRegistry.getProvider(providerToLoad)}}),define("layout/section-height",["jquery","lodash"],function($,_){'use strict';var _Mathmax4=Math.max;function getTreeActionIdealHeight(){var _Mathceil=Math.ceil,$visibleActionBarBox=$(".tree-action-bar-box"),$visibleActionBar=$visibleActionBarBox.find(".tree-action-bar"),$mainButtons=$visibleActionBar.find("li"),$visibleButtons=$mainButtons.filter(":visible"),$requiredRows=_Mathmax4(_Mathceil($mainButtons.length/4),2),idealHeight;return $visibleButtons.length||($visibleButtons=$("<li class=\"dummy\"><a/></li>"),$visibleActionBar.append($visibleButtons)),idealHeight=$visibleButtons.outerHeight(!0)*$requiredRows+parseInt($visibleActionBarBox.css("margin-bottom"))+parseInt($visibleActionBarBox.css("margin-top")),$visibleActionBarBox.find(".dummy").remove(),idealHeight}function getContainerHeight($scope){var winHeight=$window.innerHeight(),footerHeight=$footer.outerHeight(),headerHeight=$("header.dark-bar").outerHeight()+($versionWarning.length?$versionWarning.outerHeight():0),actionBarHeight=$scope.find(".content-container .action-bar").outerHeight(),$tabs=$(".section-container > .tab-container:visible"),tabHeight=$tabs.length?$tabs.outerHeight():0;return winHeight-headerHeight-footerHeight-actionBarHeight-tabHeight}function setHeights($scope){var containerHeight=getContainerHeight($scope),$contentBlock=$scope.find(".content-block"),$tree=$scope.find(".taotree"),treeHeight;$tree.length&&($contentBlock.css({height:containerHeight,maxHeight:containerHeight}),treeHeight=containerHeight-getTreeActionIdealHeight(),$tree.css({maxHeight:treeHeight}),"resource-selector"===$tree.data("type")&&$tree.css({height:treeHeight}))}var $versionWarning=$(".version-warning:visible"),$window=$(window),$footer=$("body > footer");return{init:function init($scope){$window.off("resize.sectionheight").on("resize.sectionheight",_.debounce(function(){setHeights($scope)},50)),$versionWarning.off("hiding.versionwarning").on("hiding.versionwarning",function(){$versionWarning=$(".version-warning:visible"),setHeights($scope)}),$(window).trigger("resize.navheight")},setHeights:setHeights}}),define("controller/main",["module","jquery","lodash","context","core/router","helpers","uiForm","util/url","core/logger","ui/feedback","layout/generisRouter","layout/section","layout/actions","layout/version-warning","layout/loading-bar","layout/nav","layout/search","layout/tree/loader","layout/section-height"],function(module,$,_,context,router,helpers,uiForm,urlUtil,loggerFactory,feedback,generisRouter,sections,actionManager,versionWarning,loadingBar,nav,search,treeLoader,sectionHeight){'use strict';var logger=loggerFactory("controller/main"),sectionTree=function($container,section){var treeActions=_.reduce($container.data("actions"),function(acc,id,key){var action=actionManager.getBy(id);return action&&(acc[key]=action),acc},{}),treeUrl=urlUtil.build([context.root_url,$container.data("url")]),treeType=$container.data("type"),treeProvider=treeLoader(treeType);return treeType||$container.data("type",treeProvider.name),treeProvider.init($container,{id:$container.attr("id"),url:treeUrl,rootClassUri:$container.data("rootnode"),icon:$container.data("icon"),actions:treeActions,sectionId:section.id,loadNode:section.defaultUri})},handleError=function(err){logger.error(err),feedback().error(err)};return{start:function start(){var config=module.config(),$doc=$(document);versionWarning.init(),generisRouter.init(),$doc.ajaxSend(function(){return loadingBar.start()}),$doc.ajaxComplete(function(){return loadingBar.stop()}),nav.init(),actionManager.on("error",handleError),actionManager.on("contextchange",function(actionContext){_.isArray(actionContext)&&1!==actionContext.length&§ions.current().updateContentBlock("<div class=\"main-container flex-container-form-main\"></div>")}),sections.on("activate",function(section){if(window.scrollTo(0,0),section&§ion.id)switch(context.section=section.id,actionManager.init(section.panel),search.init(section.id),section.type){case"tree":section.panel.addClass("content-panel"),sectionHeight.init(section.panel),$(".taotree",section.panel).each(function(){var $treeElt=$(this),$actionBar=$(".tree-action-bar-box",section.panel);sectionTree($treeElt,section).then(function(){$actionBar.addClass("active"),sectionHeight.setHeights(section.panel)}).catch(handleError)}),$(".navi-container",section.panel).show();break;case"content":sections.loadContentBlock();}}).init(),helpers.init(),uiForm.init(),config&&_.isArray(config.extraRoutes)&&config.extraRoutes.length&&router.dispatch(config.extraRoutes)}}}),define("controller/passwordRecovery",["jquery","i18n","module","ui/feedback","layout/version-warning"],function($,__,module,feedback,versionWarning){'use strict';var conf=module.config(),feedbackType;if(versionWarning.init(),conf.message)for(feedbackType in conf.message)conf.message[feedbackType]&&feedback()[feedbackType](conf.message[feedbackType])}),define("controller/routes",[],function(){'use strict';return{Main:{actions:{index:"controller/main",entry:"controller/entry",getSectionActions:"controller/main/actions",getSectionTrees:"controller/main/trees",login:"controller/login"}},PasswordRecovery:{actions:{index:"controller/passwordRecovery"}},Lock:{actions:{locked:"controller/Lock/locked"}},ExtensionsManager:{actions:{index:"controller/settings/extensionManager"}},Users:{deps:"controller/users/disable-edit",actions:{index:"controller/users/index",add:"controller/users/add"}},Security:{actions:{index:"controller/security/cspHeaderForm"}}}}),define("controller/security/cspHeaderForm",["jquery","lodash","i18n","ui/feedback","ui/tooltip"],function($,_,__,feedback,tooltip){'use strict';function _submitForm(event){var $form=$("form#cspHeader");event.preventDefault(),$.ajax({url:$form.attr("action"),method:"POST",success:function success(data){$form.closest(".content-block").html(data),setTimeout(_showFeedback,250)},fail:function fail(){feedback().error(__("Form data not saved."))}})}function _showFeedback(){var $form=$("form#cspHeader"),$formTextArea=$form.find("#iframeSourceDomains"),$formErrors=$form.find(".form-error"),tooltipOptions;0<$formErrors.length?(tooltipOptions={trigger:"click",closeOnClickOutside:!0,placement:"right"},tooltip.error($formTextArea,$formErrors.html(),tooltipOptions).show(),$formErrors.remove()):feedback().success(__("Saved."))}return{start:function(){var $form=$("form#cspHeader"),$formSourceList=$form.find("#iframeSourceDomains").parent(),$formRadioOptions=$form.find("input[name=iframeSourceOption]"),$selectedRadio;$formSourceList.hide(),$selectedRadio=$form.find("input[name=iframeSourceOption]:checked"),"list"===$selectedRadio.val()&&$formSourceList.show(),$formRadioOptions.on("click",function(){var selectedValue=$(this).val();$formSourceList.toggle("list"===selectedValue)}),$form.on("submit",_submitForm)}}}),define("controller/settings/extensionManager",["jquery","i18n","util/url","ui/feedback","ui/modal"],function($,__,urlUtil,feedback){'use strict';function getDependencies(extension){var dependencies=[];return $("#"+extension+" .dependencies li:not(.installed)").each(function(){var ext=$(this).attr("rel"),deps=getDependencies(ext);deps.push(ext),dependencies=dependencies.concat(deps)}),dependencies}function getUnique(orig){var a=[],i;for(i=0;i<orig.length;i++)0>$.inArray(orig[i],a)&&a.push(orig[i]);return a}function progressConsole(msg){$("#installProgress .console").append("<p>"+msg+"</p>"),$("#installProgress .console").prop({scrollTop:$("#installProgress .console").prop("scrollHeight")})}function installNextExtension(){var ext=toInstall[indexCurrentToInstall];$("#installProgress p.status").text(__("Installing extension %s...").replace("%s",ext)),progressConsole(__("Installing extension %s...").replace("%s",ext)),$.ajax({type:"POST",url:urlUtil.route("install","ExtensionsManager","tao"),data:"id="+ext,dataType:"json",success:function(data){data.success?(progressConsole(__("> Extension %s succesfully installed.").replace("%s",ext)),$("li.ext-id.ext-"+ext).addClass("installed"),$("tr#"+ext).slideUp("normal",function(){var $tr=$("<tr></tr>").appendTo($("#extensions-manager-container tbody")).hide(),$orig=$("tr#"+ext+" td");$tr.append("<td class=\"ext-id bordered\">"+$($orig[0]).text()+"</td>"),$tr.append("<td class=\"author\">"+$($orig[1]).text()+"</td>"),$tr.append("<td class=\"version\">"+$($orig[2]).text()+"</td>"),$tr.slideDown("normal",function(){$("tr#"+ext).remove(),styleTables(),0===$("#available-extensions-container table tbody tr").length&&noAvailableExtensions(),$("#installProgress .bar").animate({width:"+="+percentByExt+"%"},1e3,function(){indexCurrentToInstall++,hasNextExtensionToInstall()})})})):(installError=1,progressConsole("Installation of "+ext+" failed")),feedback().info(data.message)}}),installError&&progressConsole(__("A fatal error occured during the installation process."))}function postInstall(){return progressConsole(__("Post install processing")),$.ajax({type:"GET",url:urlUtil.route("postInstall","ExtensionsManager","tao")})}function hasNextExtensionToInstall(){indexCurrentToInstall>=toInstall.length?(toInstall=[],$("#installProgress .bar").animate({backgroundColor:"#bb6",width:"100%"},1e3),postInstall().done(function(){$("#installProgress .bar").animate({backgroundColor:"#6b6"},1e3),$("#installProgress p.status").text(__("Installation done.")),progressConsole(__("> Installation done.")),progressConsole(__("... reloading page.")),setTimeout(function(){window.location.reload(!0)},1e3)})):installNextExtension()}function styleTables(){$("#Extensions_manager table tr").removeClass("extensionOdd").removeClass("extensionEven"),$("#Extensions_manager table tr:nth-child(even)").addClass("extensionEven"),$("#Extensions_manager table tr:nth-child(odd)").addClass("extensionOdd")}function noAvailableExtensions(){var $noAvailableExtElement=$("<div/>");$noAvailableExtElement.attr("id","noExtensions").addClass("ui-state-highlight").text(__("No extensions available.")),$("#available-extensions-container").empty().append($noAvailableExtElement)}var ext_installed=[],toInstall=[],indexCurrentToInstall=-1,percentByExt=0,installError=0;return{start:function(){styleTables(),$("#installProgress").hide(),$("#extensions-manager-container .ext-id").each(function(){var ext=$(this).text();ext_installed.push(ext),$(".ext-id.ext-"+ext).addClass("installed")}),$("#available-extensions-container tr input").click(function(event){event.stopPropagation()}),$("#available-extensions-container tr input:checkbox").click(function(){var $installButton=$("#installButton");0<$(this).parent().parent().parent().find("input:checkbox:checked").length?$installButton.attr("disabled",!1):$installButton.attr("disabled",!0)}),$("#available-extensions-container #installButton").click(function(event){var $modalContainer=$("#installProgress");return event.preventDefault(),toInstall=[],$("#available-extensions-container input:checked").each(function(){var ext=$(this).prop("name").split("_")[1],deps=getDependencies(ext);deps.length&&(toInstall=toInstall.concat(deps)),toInstall.push(ext)}),toInstall=getUnique(toInstall),toInstall.length?void(percentByExt=100/toInstall.length,$(".status",$modalContainer).text(__("%s extension(s) to install.").replace("%s",toInstall.length)),$(".bar",$modalContainer).width(0),$(".console",$modalContainer).empty(),progressConsole(__("Do you wish to install the following extension(s):\n%s?").replace("%s",toInstall.join(", "))),$("[data-control=cancel]",$modalContainer).on("click",function(e){e.preventDefault(),$modalContainer.modal("close")}),$("[data-control=confirm]",$modalContainer).on("click",function(e){e.preventDefault(),progressConsole(__("Preparing installation...")),$(".buttons",$modalContainer).remove(),installError=0,indexCurrentToInstall=0,installNextExtension()}),$modalContainer.modal({width:400,height:300,top:150,disableEscape:!0,disableClosing:!0})):(window.alert(__("Nothing to install !")),!1)})}}}),define("users",["jquery","i18n","context"],function($,__,context){return{checkLogin:function(id,url){var $login=$("input[id='"+id+"']");0<$login.length&&$login.blur(function(){var elt=$(this),trimmedValue=elt.val().replace(/^\s+/g,"").replace(/\s+$/g,""),value=elt.val();$("input#http_2_www_0_tao_0_lu_1_Ontologies_1_generis_0_rdf_3_login ~ div.form-error").remove(),""===trimmedValue?$("span.login-info").remove():$.postJson(url,{login:value},function(data){$("span.login-info").remove(),data.available?elt.after("<span class='login-info'><img src='"+context.taobase_www+"img/tick.png' /> "+__("Login available")+"</span>"):elt.after("<span class='login-info ui-state-error'><img src='"+context.taobase_www+"img/exclamation.png' class='icon' /> "+__("This Login is already in use")+"</span>")})})}}}),define("controller/users/add",["jquery","module","helpers","users"],function($,module,helpers,users){'use strict';return{start:function start(){var conf=module.config(),url=helpers._url("checkLogin","Users","tao");users.checkLogin(conf.loginId,url),!0===conf.exit&&setTimeout(function(){window.location=helpers._url("index","Main","tao",{structure:"users",ext:"tao",section:"list_users"})},1e3)}}}),define("controller/users/disable-edit",["layout/section"],function(section){'use strict';return{start:function start(){section.get("edit_user").disable()}}}),define("controller/users/index",["jquery","lodash","i18n","util/url","layout/section","core/request","ui/feedback","ui/dialog/confirm","ui/datatable"],function($,_,__,urlHelper,section,request,feedback,dialogConfirm){'use strict';var runUserAction=function(uri,action,confirmMessage){var data={uri:uri};dialogConfirm(confirmMessage,function(){request({url:urlHelper.route(action,"Users","tao"),data:data,method:"POST"}).then(function(response){response.success&&feedback().success(response.message),$("#user-list").datatable("refresh")}).catch(function(err){feedback().error(err)})})},editUser=function(uri){section.get("edit_user").enable().loadContentBlock(urlHelper.route("edit","Users","tao"),{uri:uri}).show()},removeUser=function(uri,row){runUserAction(uri,"delete",__("Please confirm deletion of user %s",row.login))},lockUser=function(uri,row){runUserAction(uri,"lock",__("Please confirm locking of account %s",row.login))},unlockUser=function(uri,row){runUserAction(uri,"unlock",__("Please confirm unlocking of account %s",row.login))};return{start:function start(){var $userList=$("#user-list");section.on("show",function(section){"list_users"===section.id&&$userList.datatable("refresh")});$userList.on("load.datatable",function(e,dataset){_.forEach(dataset.data,function(row){var lockBtn="[data-item-identifier=\""+row.id+"\"] button.lock",unlockBtn="[data-item-identifier=\""+row.id+"\"] button.unlock";row.lockable?$(row.locked?lockBtn:unlockBtn,$userList).hide():_.forEach([lockBtn,unlockBtn],function(btn){$(btn,$userList).hide()})})}).datatable({url:urlHelper.route("data","Users","tao"),paginationStrategyBottom:"pages",filter:!0,actions:{edit:editUser,remove:removeUser,lock:lockUser,unlock:unlockUser},model:[{id:"login",label:__("Login"),sortable:!0},{id:"firstname",label:__("First Name"),sortable:!0},{id:"lastname",label:__("Last Name"),sortable:!0},{id:"email",label:__("Email"),sortable:!0},{id:"roles",label:__("Roles"),sortable:!1},{id:"dataLg",label:__("Data Language"),sortable:!0,visible:$userList.data("user-data-lang-enabled")},{id:"guiLg",label:__("Interface Language"),sortable:!0},{id:"status",label:__("Account status"),sortable:!0,transform:function transform(value){var icon="enabled"===value?"result-ok":"lock";return"<span class=\"icon-"+icon+"\"></span> "+value}}]})}}}),function(){'use strict';var reqFeedback=document.getElementById("browser-check"),tests=[{name:"ES5 Global JSON",test:function test(){return"JSON"in window&&"function"==typeof JSON.parse&&"function"==typeof JSON.stringify}},{name:"ES5 Extension",test:function test(){var _Stringprototype=String.prototype;return"function"==typeof Function.prototype.bind&&"function"==typeof _Stringprototype.trim}},{name:"localstorage",test:function test(){return"localStorage"in window}},{name:"querySelector",test:function test(){return"querySelector"in window.document&&"querySelectorAll"in window.document}},{name:"file reader",test:function test(){return"File"in window&&"FileReader"in window}}],testCounter=0;if(document.documentElement.className=document.documentElement.className.replace("no-js",""),reqFeedback)for(;testCounter<tests.length;){if("function"==typeof tests[testCounter].test&&!tests[testCounter].test()){reqFeedback.style.display="block",reqFeedback.className=reqFeedback.className.replace("hidden",""),document.documentElement.className+=" no-js";break}testCounter++}}(),define("layout/requirement-check",function(){}),define("report",["jquery","context","i18n"],function($,context,__){'use strict';return{fold:function fold(){var $content=$(".report > .feedback-nesting-0 > div"),$top=$(".report > .feedback-nesting-0");"none"===$content.css("display")?($content.css("display","block"),$top.css("background-color","transparent"),$top.css("border-color","transparent"),$("#fold > span.check-txt").text(__("Hide detailed report"))):($content.css("display","none"),$top.hasClass("feedback-success")?($top.css("border-color","#3ea76f"),$top.css("background-color","#e6f4ed")):$top.hasClass("feedback-warning")?($top.css("border-color","#dfbe7b"),$top.css("background-color","#fbf6ee")):$top.hasClass("feedback-error")?($top.css("border-color","#c74155"),$top.css("background-color","#f8e7e9")):($top.css("border-color","#3e7da7"),$top.css("background-color","#e6eef4")),$("#fold > span.check-txt").text(__("Show detailed report")))}}}),define("serviceApi/PseudoStorage",[],function(){function PseudoStorage(){}return PseudoStorage.prototype.get=function(callback){return"function"==typeof callback&&callback(null),null},PseudoStorage.prototype.set=function(state,callback){"function"==typeof callback&&callback()},PseudoStorage}),define("serviceApi/ServiceApi",["jquery","util/urlParser"],function($,UrlParser){'use strict';function ServiceApi(baseUrl,parameters,serviceCallId,stateStorage,userService,paused){this.baseUrl=baseUrl,this.parameters=parameters,this.connected=!1,this.serviceCallId=serviceCallId,this.state=stateStorage,this.userService=userService,this.hasBeenPaused=paused}return ServiceApi.SIG_SUCCESS=0,ServiceApi.SIG_ERROR=1,ServiceApi.prototype.loadInto=function(frame,connected){var self=this,$frame=$(frame),callUrl=this.getCallUrl(),isCORSAllowed=new UrlParser(callUrl).checkCORS();$frame.on("load",function(){$(document).on("serviceready",function(){self.connect(frame,function(){$(document).off("serviceready"),"function"==typeof connected&&connected()})}),!0===isCORSAllowed&&(frame.contentWindow.__knownParent__=!0)}),$frame.attr("src",callUrl)},ServiceApi.prototype.connect=function(frame,connected){!1===this.connected&&frame.contentWindow&&"function"==typeof frame.contentWindow.onServiceApiReady&&(frame.contentWindow.onServiceApiReady(this),this.connected=!0,"function"==typeof connected&&connected())},ServiceApi.prototype.getCallUrl=function(){var params=this.parameters||{};return params.serviceCallId=this.serviceCallId,this.baseUrl+"?"+$.param(params)},ServiceApi.prototype.getUserPropertyValues=function(property,callback){this.userService.get(property,callback)},ServiceApi.prototype.getServiceCallId=function(){return this.serviceCallId},ServiceApi.prototype.getState=function(){return this.state.get()},ServiceApi.prototype.setState=function(state,callback){return this.state.set(state,callback)},ServiceApi.prototype.getHasBeenPaused=function(){return this.hasBeenPaused},ServiceApi.prototype.setHasBeenPaused=function(paused){this.hasBeenPaused=paused},ServiceApi.prototype.getParameter=function(identifier){return"undefined"==typeof this.parameters[identifier]?null:this.parameters[identifier]},ServiceApi.prototype.onFinish=function(callback){return this.onFinishCallback=callback,this},ServiceApi.prototype.onKill=function(callback){return this.onKillCallback=callback,this},ServiceApi.prototype.onExit=function(callback){return this.onExitCallback=callback,this},ServiceApi.prototype.kill=function(callback){"function"==typeof this.onKillCallback?this.onKillCallback(callback):callback(0)},ServiceApi.prototype.exit=function(callback){"function"==typeof this.onExitCallback?this.onExitCallback(callback):callback(0)},ServiceApi.prototype.finish=function(valueArray){"function"==typeof this.onFinishCallback&&this.onFinishCallback(valueArray)},ServiceApi}),define("serviceApi/StateStorage",["jquery"],function($){'use strict';function StateStorage(state,submitUrl){this.state=state,this.submitUrl=submitUrl}return StateStorage.prototype.get=function(callback){return"function"==typeof callback&&callback(this.state),this.state},StateStorage.prototype.set=function(state,callback){state===this.state?"function"==typeof callback&&callback():(this.state=state,$.ajax({url:this.submitUrl,data:{state:state},type:"post",dataType:"json",success:"function"==typeof callback?callback:null}))},StateStorage}),define("serviceApi/UserInfoService",["jquery"],function($){function UserInfoService(requestUrl,data){this.data=data,this.requestUrl=requestUrl}return UserInfoService.prototype.get=function(property,callback){this.data.hasOwnProperty(property)?"function"==typeof callback&&callback(this.data[property]):$.ajax({url:this.requestUrl,data:{property:property},type:"post",dataType:"json",success:function(service,callback){return function(r){for(key in r.data)service.data[key]=r.data[key];"function"==typeof callback&&callback(service.data[property])}}(this,callback)})},UserInfoService}),define("generis.tree",["jquery","i18n","class"],function($,__,Class){var GenerisTreeClass=Class.extend({init:function init(selector,dataUrl,options,treeOptions){var self=this;this.STATE_BROWSING=0,this.STATE_FILTERING=1,this.selector=selector,this.options=options,this.dataUrl=dataUrl,this.metaClasses=[],this.lastOpened=null,this.state=this.STATE_BROWSING,this.paginate="undefined"==typeof options.paginate?0:options.paginate,this.serverParameters="undefined"==typeof options.serverParameters?[]:options.serverParameters,this.defaultServerParameters={hideInstances:!1|this.options.hideInstances,filter:$("#filter-content-"+options.actionId).val(),offset:0,limit:this.options.paginate},this.treeOptions={data:{type:"json",async:!0,opts:{method:"POST",url:this.dataUrl}},types:{default:{renameable:!1,deletable:!0,creatable:!0}},callback:{beforeopen:function beforeopen(NODE){self.lastOpened=NODE}}},$.extend(!0,this.treeOptions,treeOptions);var classes=$(selector).attr("class");("string"!=typeof classes||null==classes.match("tree"))&&$(selector).tree(this.treeOptions)},createMeta:function createMeta(meta){this.metaClasses[meta.id]={displayed:meta.displayed?meta.displayed:0,count:meta.count?meta.count:0,position:meta.position?meta.position:0}},extractMeta:function extractMeta(DATA){var nodes=[],nodeId=null;if(DATA instanceof Array?(this.lastOpened&&this.state!=this.STATE_FILTERING?nodeId=this.lastOpened.id:(nodeId="DEFAULT_ROOT",this.createMeta({id:nodeId,count:0})),nodes=DATA):(nodeId=DATA.attributes.id,"undefined"!=typeof DATA.children&&(nodes=DATA.children),this.createMeta({id:DATA.attributes.id,count:DATA.count})),0!==nodes.length){for(var countClass=0,i=0;i<nodes.length;i++)"class"==nodes[i].type&&(this.extractMeta(nodes[i]),countClass++);var countInstances=nodes.length-countClass;this.setMeta(nodeId,"position",countInstances),this.setMeta(nodeId,"displayed",countInstances),!(DATA instanceof Array)&&DATA.state&&"closed"!=DATA.state?this.getMeta(nodeId,"displayed")<this.getMeta(nodeId,"count")&&nodes.push(this.getPaginateActionNodes()):DATA instanceof Array&&this.getMeta(nodeId,"displayed")<this.getMeta(nodeId,"count")&&nodes.push(this.getPaginateActionNodes())}},setServerParameter:function setServerParameter(key,value,reload){this.serverParameters[key]=value,"undefined"!=typeof reload&&reload&&(this.isRefreshing=!0,this.getTree().refresh())},getTree:function getTree(){return $.tree.reference(this.selector)},getMeta:function getMeta(classId,metaName){return this.metaClasses[classId][metaName]},setMeta:function setMeta(classId,metaName,value){this.metaClasses[classId][metaName]=value},getPaginateActionNodes:function getPaginateActionNodes(){return returnValue=[{data:__("all"),attributes:{class:"paginate paginate-all"}},{data:this.paginate+__(" next"),attributes:{class:"paginate paginate-more"}}],returnValue},showPaginate:function showPaginate(NODE,TREE_OBJ){for(var DATA=this.getPaginateActionNodes(),i=0;i<DATA.length;i++)TREE_OBJ.create(DATA[i],TREE_OBJ.get_node(NODE[0]))},hidePaginate:function(nodeId){$("#"+nodeId+" > ul > li.paginate",$(this.selector)).each(function(){$(this).remove()})},refreshPaginate:function refreshPaginate(NODE,TREE_OBJ){var nodeId=$(NODE)[0].id;this.hidePaginate(nodeId),this.getMeta(nodeId,"displayed")<this.getMeta(nodeId,"count")&&this.showPaginate(NODE,TREE_OBJ)},getClassUri:function getClassUri(NODE){var parents=$(NODE).parents("li"),classUri=null;return classUri=0==parents.length?$(NODE).prop("id"):$(parents[0]).prop("id"),classUri},callGetSectionActions:function callGetSectionActions(NODE){var uri=void 0,classUri=void 0;NODE!=null&&($(NODE).hasClass("node-class")?classUri=$(NODE).prop("id"):(uri=$(NODE).prop("id"),classUri=this.getClassUri(NODE)))}});return GenerisTreeClass}),define("generis.tree.select",["jquery","lodash","i18n","context","generis.tree","helpers","ui/feedback","jquery.tree","lib/jsTree/plugins/jquery.tree.checkbox"],function($,_,__,context,GenerisTreeClass,helpers,feedback){var GenerisTreeSelectClass=GenerisTreeClass.extend({init:function init(selector,dataUrl,options){this.loadedData=null,this.checkedNodes="undefined"==typeof options.checkedNodes?[]:options.checkedNodes.slice(0),this.hiddenNodes="undefined"==typeof options.hiddenNodes?[]:options.hiddenNodes.slice(0),options.callback&&options.callback.checkPaginate&&(this.checkPaginate=options.callback.checkPaginate),this.checkResourcePermissions="undefined"!=typeof options.checkResourcePermissions&&options.checkResourcePermissions;var instance=this;this.DISPLAY_SELECTED=1;var treeOptions={types:{default:{draggable:!1}},ui:{theme_name:"checkbox",theme_path:context.taobase_www+"js/lib/jsTree/themes/css/style.css"},callback:{beforecheck:function beforecheck(NODE,TREE_OBJ){var nodeId=$(NODE).prop("id");return!(instance.isRefreshing&&-1===$.inArray(nodeId,instance.checkedNodes))&&(!(NODE.hasClass("node-class")&&instance.getMeta(nodeId,"displayed")!==instance.getMeta(nodeId,"count"))||(instance.paginateInstances(NODE,TREE_OBJ,{limit:0,checkedNodes:"*"}),!1))},beforeuncheck:function beforeuncheck(NODE){var nodeId=$(NODE).prop("id"),indice=$.inArray(nodeId,instance.checkedNodes);return!$(NODE).hasClass("node-class")&&-1<indice&&instance.checkedNodes.splice(indice,1),!0},beforedata:function beforedata(NODE){var returnValue=instance.defaultServerParameters;for(var key in NODE&&(returnValue.classUri=$(NODE).prop("id")),instance.serverParameters)null!==instance.serverParameters[key]&&(returnValue[key]=instance.serverParameters[key]);return returnValue},onopen:function onopen(NODE,TREE_OBJ){instance.checkedNodes&&instance.check(instance.checkedNodes),instance.options.onOpenCallback&&instance.options.onOpenCallback(TREE_OBJ)},onload:function onload(TREE_OBJ){instance.check(instance.checkedNodes),instance.options.loadCallback&&instance.options.loadCallback(TREE_OBJ),instance.isRefreshing=!1},onchange:function onchange(NODE,TREE_OBJ){instance.options.onChangeCallback&&!instance.isRefreshing&&instance.options.onChangeCallback(NODE,TREE_OBJ)},onselect:function onselect(NODE,TREE_OBJ){var servOptions={},$NODE=$(NODE),$nodeParent=$NODE.parent().parent();if(instance.serverParameters.hasOwnProperty("order")&&(servOptions.order=instance.serverParameters.order),instance.serverParameters.hasOwnProperty("orderdir")&&(servOptions.orderdir=instance.serverParameters.orderdir),$NODE.hasClass("paginate-more"))return void instance.paginateInstances($nodeParent,TREE_OBJ,servOptions);if($NODE.hasClass("paginate-all")){var parentNodeId=$nodeParent.prop("id");return servOptions.limit=instance.getMeta(parentNodeId,"count")-instance.getMeta(parentNodeId,"displayed"),void instance.paginateInstances($nodeParent,TREE_OBJ,servOptions)}return!0},ondata:function ondata(DATA){return instance.checkResourcePermissions&&DATA.permissions&&(DATA=instance.convertDataWithPermissions(DATA)),DATA.children&&(DATA.state="open"),instance.loadedData=DATA,instance.extractMeta(DATA),instance.removeHiddenNodes(DATA.children||DATA),DATA}},plugins:{checkbox:{three_state:!0}}};for(var i in this.serverParameters)treeOptions.data.opts[i]=this.serverParameters[i];this._super(selector,dataUrl,options,treeOptions),$("#saver-action-"+this.options.actionId).click({instance:this},function(e){e.data.instance.saveData()})},convertDataWithPermissions:function(rawData){var converted=rawData,permissions=converted.permissions,children,filteredChildren;return children=converted.tree.children?converted.tree.children:converted.tree,filteredChildren=this.checkPermissionsRecursively(children,permissions),converted.tree.children?converted.tree.children=filteredChildren:converted.tree=filteredChildren,converted.tree},checkPermissionsRecursively:function checkPermissionsRecursively(children,permissions){var filteredChildren=[],recursiveCheck=[];return _.each(children,function(dataObj){var key=dataObj.attributes["data-uri"];dataObj.children&&0<dataObj.children.length?(recursiveCheck=checkPermissionsRecursively(dataObj.children,permissions),permissions.data[key]&&-1!==permissions.data[key].indexOf("READ")&&(dataObj.children=recursiveCheck,filteredChildren.push(dataObj))):permissions.data[key]&&-1!==permissions.data[key].indexOf("READ")&&filteredChildren.push(dataObj)}),filteredChildren},removeHiddenNodes:function(nodes){var self=this,hiddenNodes=this.hiddenNodes;_.isArray(nodes)&&hiddenNodes&&_.isArray(hiddenNodes)&&_.remove(nodes,function(node){return"instance"===node.type?0<=_.indexOf(hiddenNodes,node.attributes["data-uri"]):void("class"===node.type&&node.children&&self.removeHiddenNodes(node.children))})},trace:function trace(){},paginateInstances:function paginateInstances(NODE,TREE_OBJ,pOptions,callback){var nodeId=NODE[0].id,instancesLeft=this.getMeta(nodeId,"count")-this.getMeta(nodeId,"displayed"),options={classUri:nodeId,subclasses:0,offset:this.getMeta(nodeId,"position"),limit:instancesLeft<this.paginate?instancesLeft:this.paginate};options=$.extend(options,pOptions),$.post(this.dataUrl,options,function(instance){return function(DATA){var countClass=0,i=0;for(instance.checkResourcePermissions&&(DATA=instance.convertDataWithPermissions(DATA)),instance.hidePaginate(nodeId),i;i<DATA.length;i++)DATA[i].attributes["class"]=instance.options.instanceClass+" node-instance node-draggable",$("#"+DATA[i].attributes.id,$(TREE_OBJ.container)).length||TREE_OBJ.create(DATA[i],TREE_OBJ.get_node(NODE[0])),"*"===options.checkedNodes&&instance.checkedNodes.push(DATA[i].attributes.id),countClass+="class"===DATA[i].type;instance.setMeta(nodeId,"displayed",instance.getMeta(nodeId,"displayed")+DATA.length-countClass),instance.setMeta(nodeId,"position",instance.getMeta(nodeId,"position")+DATA.length-countClass),instance.refreshPaginate(NODE,TREE_OBJ),options.checkedNodes&&("*"===options.checkedNodes?$(NODE).find("ul:first").children().each(function(){var $this=$(this);$this.hasClass("node-instance")&&$this.find("a:not(.checked, .undetermined)").each(function(){instance.checkedNodes.push($this.parent().prop("id"))})}):instance.checkedNodes=options.checkedNodes),instance.check(instance.checkedNodes),instance.options.onChangeCallback&&instance.options.onChangeCallback(),callback&&callback(NODE,TREE_OBJ),instance.checkPaginate&&instance.checkPaginate(NODE,TREE_OBJ)}}(this),"json")},check:function check(elements){var self=this;$.each(elements,function(i,elt){if(null!=elt){var NODE=$(self.selector).find("li[id='"+elt+"']");0<NODE.length&&$(NODE).hasClass("node-instance")&&$.tree.plugins.checkbox.check(NODE)}})},getChecked:function getChecked(){var unchecked=[];$.each($.tree.plugins.checkbox.get_unchecked(this.getTree()),function(i,NODE){$(NODE).hasClass("node-instance")&&unchecked.push($(NODE).prop("id"))});var returnValue=$.grep(this.checkedNodes,function(value){return-1==unchecked.indexOf(value)});return $.each($.tree.plugins.checkbox.get_checked(this.getTree()),function(i,NODE){if($(NODE).hasClass("node-instance")){var value=$(NODE).prop("id");-1==returnValue.indexOf(value)&&returnValue.push(value)}}),returnValue},saveData:function saveData(){var instance=this,toSend={};if("object"==_typeof2(this.options.saveData))for(var key in this.options.saveData)toSend[key]=this.options.saveData[key];helpers.loading();var nodes=this.getChecked();toSend.instances=JSON.stringify(nodes);var classUriField=null,uriField;if(this.options.relatedFormId){var uriEltSelector="#"+this.options.relatedFormId+" :input[name=uri]";$(uriEltSelector).length&&(uriField=$(uriEltSelector));var classUriEltSelector="#"+this.options.relatedFormId+" :input[name=classUri]";$(classUriEltSelector).length&&(classUriField=$(classUriEltSelector))}uriField||(uriField=$("input[name=uri]")),classUriField||(classUriField=$("input[name=classUri]")),uriField&&(toSend.uri=uriField.val()),classUriField&&(toSend.classUri=classUriField.val()),$.ajax({url:this.options.saveUrl,type:"POST",data:toSend,dataType:"json",success:function success(response){response.saved?(instance.options.saveCallback&&instance.options.saveCallback(toSend),feedback().info(__("Selection saved successfully"))):instance.options.saveErrorCallback&&instance.options.saveErrorCallback(response,instance)},complete:function complete(){helpers.loaded()}})}});return GenerisTreeSelectClass}),function(c){var d=document,s=d.createElement("style");s.type="text/css",d.getElementsByTagName("head")[0].appendChild(s),s.styleSheet?s.styleSheet.cssText=c:s.appendChild(d.createTextNode(c))}(".flatpickr-calendar {\n background: transparent;\n opacity: 0;\n display: none;\n text-align: center;\n visibility: hidden;\n padding: 0;\n -webkit-animation: none;\n animation: none;\n direction: ltr;\n border: 0;\n font-size: 14px;\n line-height: 24px;\n border-radius: 5px;\n position: absolute;\n width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n background: #fff;\n -webkit-box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);\n box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0,0,0,0.08);\n}\n.flatpickr-calendar.open,\n.flatpickr-calendar.inline {\n opacity: 1;\n max-height: 640px;\n visibility: visible;\n}\n.flatpickr-calendar.open {\n display: inline-block;\n z-index: 99999;\n}\n.flatpickr-calendar.animate.open {\n -webkit-animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);\n}\n.flatpickr-calendar.inline {\n display: block;\n position: relative;\n top: 2px;\n}\n.flatpickr-calendar.static {\n position: absolute;\n top: calc(100% + 2px);\n}\n.flatpickr-calendar.static.open {\n z-index: 999;\n display: block;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n}\n.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {\n -webkit-box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-calendar .hasWeeks .dayContainer,\n.flatpickr-calendar .hasTime .dayContainer {\n border-bottom: 0;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.flatpickr-calendar .hasWeeks .dayContainer {\n border-left: 0;\n}\n.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {\n height: 40px;\n border-top: 1px solid #e6e6e6;\n}\n.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {\n height: auto;\n}\n.flatpickr-calendar:before,\n.flatpickr-calendar:after {\n position: absolute;\n display: block;\n pointer-events: none;\n border: solid transparent;\n content: '';\n height: 0;\n width: 0;\n left: 22px;\n}\n.flatpickr-calendar.rightMost:before,\n.flatpickr-calendar.rightMost:after {\n left: auto;\n right: 22px;\n}\n.flatpickr-calendar:before {\n border-width: 5px;\n margin: 0 -5px;\n}\n.flatpickr-calendar:after {\n border-width: 4px;\n margin: 0 -4px;\n}\n.flatpickr-calendar.arrowTop:before,\n.flatpickr-calendar.arrowTop:after {\n bottom: 100%;\n}\n.flatpickr-calendar.arrowTop:before {\n border-bottom-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowTop:after {\n border-bottom-color: #fff;\n}\n.flatpickr-calendar.arrowBottom:before,\n.flatpickr-calendar.arrowBottom:after {\n top: 100%;\n}\n.flatpickr-calendar.arrowBottom:before {\n border-top-color: #e6e6e6;\n}\n.flatpickr-calendar.arrowBottom:after {\n border-top-color: #fff;\n}\n.flatpickr-calendar:focus {\n outline: 0;\n}\n.flatpickr-wrapper {\n position: relative;\n display: inline-block;\n}\n.flatpickr-months {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-months .flatpickr-month {\n background: transparent;\n color: rgba(0,0,0,0.9);\n fill: rgba(0,0,0,0.9);\n height: 28px;\n line-height: 1;\n text-align: center;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\n.flatpickr-months .flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month {\n text-decoration: none;\n cursor: pointer;\n position: absolute;\n top: 0px;\n line-height: 16px;\n height: 28px;\n padding: 10px;\n z-index: 3;\n color: rgba(0,0,0,0.9);\n fill: rgba(0,0,0,0.9);\n}\n.flatpickr-months .flatpickr-prev-month.disabled,\n.flatpickr-months .flatpickr-next-month.disabled {\n display: none;\n}\n.flatpickr-months .flatpickr-prev-month i,\n.flatpickr-months .flatpickr-next-month i {\n position: relative;\n}\n.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {\n/*\n /*rtl:begin:ignore*/\n/*\n */\n left: 0;\n/*\n /*rtl:end:ignore*/\n/*\n */\n}\n/*\n /*rtl:begin:ignore*/\n/*\n /*rtl:end:ignore*/\n.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,\n.flatpickr-months .flatpickr-next-month.flatpickr-next-month {\n/*\n /*rtl:begin:ignore*/\n/*\n */\n right: 0;\n/*\n /*rtl:end:ignore*/\n/*\n */\n}\n/*\n /*rtl:begin:ignore*/\n/*\n /*rtl:end:ignore*/\n.flatpickr-months .flatpickr-prev-month:hover,\n.flatpickr-months .flatpickr-next-month:hover {\n color: #959ea9;\n}\n.flatpickr-months .flatpickr-prev-month:hover svg,\n.flatpickr-months .flatpickr-next-month:hover svg {\n fill: #f64747;\n}\n.flatpickr-months .flatpickr-prev-month svg,\n.flatpickr-months .flatpickr-next-month svg {\n width: 14px;\n height: 14px;\n}\n.flatpickr-months .flatpickr-prev-month svg path,\n.flatpickr-months .flatpickr-next-month svg path {\n -webkit-transition: fill 0.1s;\n transition: fill 0.1s;\n fill: inherit;\n}\n.numInputWrapper {\n position: relative;\n height: auto;\n}\n.numInputWrapper input,\n.numInputWrapper span {\n display: inline-block;\n}\n.numInputWrapper input {\n width: 100%;\n}\n.numInputWrapper input::-ms-clear {\n display: none;\n}\n.numInputWrapper input::-webkit-outer-spin-button,\n.numInputWrapper input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n}\n.numInputWrapper span {\n position: absolute;\n right: 0;\n width: 14px;\n padding: 0 4px 0 2px;\n height: 50%;\n line-height: 50%;\n opacity: 0;\n cursor: pointer;\n border: 1px solid rgba(57,57,57,0.15);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.numInputWrapper span:hover {\n background: rgba(0,0,0,0.1);\n}\n.numInputWrapper span:active {\n background: rgba(0,0,0,0.2);\n}\n.numInputWrapper span:after {\n display: block;\n content: \"\";\n position: absolute;\n}\n.numInputWrapper span.arrowUp {\n top: 0;\n border-bottom: 0;\n}\n.numInputWrapper span.arrowUp:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid rgba(57,57,57,0.6);\n top: 26%;\n}\n.numInputWrapper span.arrowDown {\n top: 50%;\n}\n.numInputWrapper span.arrowDown:after {\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 4px solid rgba(57,57,57,0.6);\n top: 40%;\n}\n.numInputWrapper span svg {\n width: inherit;\n height: auto;\n}\n.numInputWrapper span svg path {\n fill: rgba(0,0,0,0.5);\n}\n.numInputWrapper:hover {\n background: rgba(0,0,0,0.05);\n}\n.numInputWrapper:hover span {\n opacity: 1;\n}\n.flatpickr-current-month {\n font-size: 135%;\n line-height: inherit;\n font-weight: 300;\n color: inherit;\n position: absolute;\n width: 75%;\n left: 12.5%;\n padding: 6.16px 0 0 0;\n line-height: 1;\n height: 28px;\n display: inline-block;\n text-align: center;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.flatpickr-current-month span.cur-month {\n font-family: inherit;\n font-weight: 700;\n color: inherit;\n display: inline-block;\n margin-left: 0.5ch;\n padding: 0;\n}\n.flatpickr-current-month span.cur-month:hover {\n background: rgba(0,0,0,0.05);\n}\n.flatpickr-current-month .numInputWrapper {\n width: 6ch;\n width: 7ch\\0;\n display: inline-block;\n}\n.flatpickr-current-month .numInputWrapper span.arrowUp:after {\n border-bottom-color: rgba(0,0,0,0.9);\n}\n.flatpickr-current-month .numInputWrapper span.arrowDown:after {\n border-top-color: rgba(0,0,0,0.9);\n}\n.flatpickr-current-month input.cur-year {\n background: transparent;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: inherit;\n cursor: text;\n padding: 0 0 0 0.5ch;\n margin: 0;\n display: inline-block;\n font-size: inherit;\n font-family: inherit;\n font-weight: 300;\n line-height: inherit;\n height: auto;\n border: 0;\n border-radius: 0;\n vertical-align: initial;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-current-month input.cur-year:focus {\n outline: 0;\n}\n.flatpickr-current-month input.cur-year[disabled],\n.flatpickr-current-month input.cur-year[disabled]:hover {\n font-size: 100%;\n color: rgba(0,0,0,0.5);\n background: transparent;\n pointer-events: none;\n}\n.flatpickr-weekdays {\n background: transparent;\n text-align: center;\n overflow: hidden;\n width: 100%;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n height: 28px;\n}\n.flatpickr-weekdays .flatpickr-weekdaycontainer {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n}\nspan.flatpickr-weekday {\n cursor: default;\n font-size: 90%;\n background: transparent;\n color: rgba(0,0,0,0.54);\n line-height: 1;\n margin: 0;\n text-align: center;\n display: block;\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n font-weight: bolder;\n}\n.dayContainer,\n.flatpickr-weeks {\n padding: 1px 0 0 0;\n}\n.flatpickr-days {\n position: relative;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: start;\n -webkit-align-items: flex-start;\n -ms-flex-align: start;\n align-items: flex-start;\n width: 307.875px;\n}\n.flatpickr-days:focus {\n outline: 0;\n}\n.dayContainer {\n padding: 0;\n outline: 0;\n text-align: left;\n width: 307.875px;\n min-width: 307.875px;\n max-width: 307.875px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n display: inline-block;\n display: -ms-flexbox;\n display: -webkit-box;\n display: -webkit-flex;\n display: flex;\n -webkit-flex-wrap: wrap;\n flex-wrap: wrap;\n -ms-flex-wrap: wrap;\n -ms-flex-pack: justify;\n -webkit-justify-content: space-around;\n justify-content: space-around;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n opacity: 1;\n}\n.dayContainer + .dayContainer {\n -webkit-box-shadow: -1px 0 0 #e6e6e6;\n box-shadow: -1px 0 0 #e6e6e6;\n}\n.flatpickr-day {\n background: none;\n border: 1px solid transparent;\n border-radius: 150px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #393939;\n cursor: pointer;\n font-weight: 400;\n width: 14.2857143%;\n -webkit-flex-basis: 14.2857143%;\n -ms-flex-preferred-size: 14.2857143%;\n flex-basis: 14.2857143%;\n max-width: 39px;\n height: 39px;\n line-height: 39px;\n margin: 0;\n display: inline-block;\n position: relative;\n -webkit-box-pack: center;\n -webkit-justify-content: center;\n -ms-flex-pack: center;\n justify-content: center;\n text-align: center;\n}\n.flatpickr-day.inRange,\n.flatpickr-day.prevMonthDay.inRange,\n.flatpickr-day.nextMonthDay.inRange,\n.flatpickr-day.today.inRange,\n.flatpickr-day.prevMonthDay.today.inRange,\n.flatpickr-day.nextMonthDay.today.inRange,\n.flatpickr-day:hover,\n.flatpickr-day.prevMonthDay:hover,\n.flatpickr-day.nextMonthDay:hover,\n.flatpickr-day:focus,\n.flatpickr-day.prevMonthDay:focus,\n.flatpickr-day.nextMonthDay:focus {\n cursor: pointer;\n outline: 0;\n background: #e6e6e6;\n border-color: #e6e6e6;\n}\n.flatpickr-day.today {\n border-color: #959ea9;\n}\n.flatpickr-day.today:hover,\n.flatpickr-day.today:focus {\n border-color: #959ea9;\n background: #959ea9;\n color: #fff;\n}\n.flatpickr-day.selected,\n.flatpickr-day.startRange,\n.flatpickr-day.endRange,\n.flatpickr-day.selected.inRange,\n.flatpickr-day.startRange.inRange,\n.flatpickr-day.endRange.inRange,\n.flatpickr-day.selected:focus,\n.flatpickr-day.startRange:focus,\n.flatpickr-day.endRange:focus,\n.flatpickr-day.selected:hover,\n.flatpickr-day.startRange:hover,\n.flatpickr-day.endRange:hover,\n.flatpickr-day.selected.prevMonthDay,\n.flatpickr-day.startRange.prevMonthDay,\n.flatpickr-day.endRange.prevMonthDay,\n.flatpickr-day.selected.nextMonthDay,\n.flatpickr-day.startRange.nextMonthDay,\n.flatpickr-day.endRange.nextMonthDay {\n background: #569ff7;\n -webkit-box-shadow: none;\n box-shadow: none;\n color: #fff;\n border-color: #569ff7;\n}\n.flatpickr-day.selected.startRange,\n.flatpickr-day.startRange.startRange,\n.flatpickr-day.endRange.startRange {\n border-radius: 50px 0 0 50px;\n}\n.flatpickr-day.selected.endRange,\n.flatpickr-day.startRange.endRange,\n.flatpickr-day.endRange.endRange {\n border-radius: 0 50px 50px 0;\n}\n.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),\n.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {\n -webkit-box-shadow: -10px 0 0 #569ff7;\n box-shadow: -10px 0 0 #569ff7;\n}\n.flatpickr-day.selected.startRange.endRange,\n.flatpickr-day.startRange.startRange.endRange,\n.flatpickr-day.endRange.startRange.endRange {\n border-radius: 50px;\n}\n.flatpickr-day.inRange {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;\n}\n.flatpickr-day.disabled,\n.flatpickr-day.disabled:hover,\n.flatpickr-day.prevMonthDay,\n.flatpickr-day.nextMonthDay,\n.flatpickr-day.notAllowed,\n.flatpickr-day.notAllowed.prevMonthDay,\n.flatpickr-day.notAllowed.nextMonthDay {\n color: rgba(57,57,57,0.3);\n background: transparent;\n border-color: transparent;\n cursor: default;\n}\n.flatpickr-day.disabled,\n.flatpickr-day.disabled:hover {\n cursor: not-allowed;\n color: rgba(57,57,57,0.1);\n}\n.flatpickr-day.week.selected {\n border-radius: 0;\n -webkit-box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;\n}\n.flatpickr-day.hidden {\n visibility: hidden;\n}\n.rangeMode .flatpickr-day {\n margin-top: 1px;\n}\n.flatpickr-weekwrapper {\n display: inline-block;\n float: left;\n}\n.flatpickr-weekwrapper .flatpickr-weeks {\n padding: 0 12px;\n -webkit-box-shadow: 1px 0 0 #e6e6e6;\n box-shadow: 1px 0 0 #e6e6e6;\n}\n.flatpickr-weekwrapper .flatpickr-weekday {\n float: none;\n width: 100%;\n line-height: 28px;\n}\n.flatpickr-weekwrapper span.flatpickr-day,\n.flatpickr-weekwrapper span.flatpickr-day:hover {\n display: block;\n width: 100%;\n max-width: none;\n color: rgba(57,57,57,0.3);\n background: transparent;\n cursor: default;\n border: none;\n}\n.flatpickr-innerContainer {\n display: block;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n}\n.flatpickr-rContainer {\n display: inline-block;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.flatpickr-time {\n text-align: center;\n outline: 0;\n display: block;\n height: 0;\n line-height: 40px;\n max-height: 40px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n overflow: hidden;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n}\n.flatpickr-time:after {\n content: \"\";\n display: table;\n clear: both;\n}\n.flatpickr-time .numInputWrapper {\n -webkit-box-flex: 1;\n -webkit-flex: 1;\n -ms-flex: 1;\n flex: 1;\n width: 40%;\n height: 40px;\n float: left;\n}\n.flatpickr-time .numInputWrapper span.arrowUp:after {\n border-bottom-color: #393939;\n}\n.flatpickr-time .numInputWrapper span.arrowDown:after {\n border-top-color: #393939;\n}\n.flatpickr-time.hasSeconds .numInputWrapper {\n width: 26%;\n}\n.flatpickr-time.time24hr .numInputWrapper {\n width: 49%;\n}\n.flatpickr-time input {\n background: transparent;\n -webkit-box-shadow: none;\n box-shadow: none;\n border: 0;\n border-radius: 0;\n text-align: center;\n margin: 0;\n padding: 0;\n height: inherit;\n line-height: inherit;\n color: #393939;\n font-size: 14px;\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-appearance: textfield;\n -moz-appearance: textfield;\n appearance: textfield;\n}\n.flatpickr-time input.flatpickr-hour {\n font-weight: bold;\n}\n.flatpickr-time input.flatpickr-minute,\n.flatpickr-time input.flatpickr-second {\n font-weight: 400;\n}\n.flatpickr-time input:focus {\n outline: 0;\n border: 0;\n}\n.flatpickr-time .flatpickr-time-separator,\n.flatpickr-time .flatpickr-am-pm {\n height: inherit;\n display: inline-block;\n float: left;\n line-height: inherit;\n color: #393939;\n font-weight: bold;\n width: 2%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-align-self: center;\n -ms-flex-item-align: center;\n align-self: center;\n}\n.flatpickr-time .flatpickr-am-pm {\n outline: 0;\n width: 18%;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n}\n.flatpickr-time input:hover,\n.flatpickr-time .flatpickr-am-pm:hover,\n.flatpickr-time input:focus,\n.flatpickr-time .flatpickr-am-pm:focus {\n background: #eee;\n}\n.flatpickr-input[readonly] {\n cursor: pointer;\n}\n@-webkit-keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n@keyframes fpFadeInDown {\n from {\n opacity: 0;\n -webkit-transform: translate3d(0, -20px, 0);\n transform: translate3d(0, -20px, 0);\n }\n to {\n opacity: 1;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n }\n}\n"),define("loader/tao.bundle",function(){});
|
|
//# sourceMappingURL=tao.min.js.map
|