PageSourceSearch

https://www.sgfintel.de/static/jscript/basic-20260901.js

js sgfintel.de collected 2026-09-25 02:37:15 UTC 1,048,794 bytes, 2,788 lines download raw bytes

1
vendor: 87,533 bytes, lines 2-3
2/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
3!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
4
5
6/*! jQuery UI - v1.13.2 - 2022-07-14
7* http://jqueryui.com
8* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
9* Copyright jQuery Foundation and other contributors; Licensed MIT */
10
11!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict";V.ui=V.ui||{};V.ui.version="1.13.2";var n,i=0,a=Array.prototype.hasOwnProperty,r=Array.prototype.slice;
vendor: 5,697 bytes, line 11
11V.cleanData=(n=V.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=V._data(i,"events"))&&e.remove&&V(i).triggerHandler("remove");n(t)}),V.widget=function(t,i,e){var s,n,o,a={},r=t.split(".")[0],l=r+"-"+(t=t.split(".")[1]);return e||(e=i,i=V.Widget),Array.isArray(e)&&(e=V.extend.apply(null,[{}].concat(e))),V.expr.pseudos[l.toLowerCase()]=function(t){return!!V.data(t,l)},V[r]=V[r]||{},s=V[r][t],n=V[r][t]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},V.extend(n,s,{version:e.version,_proto:V.extend({},e),_childConstructors:[]}),(o=new i).options=V.widget.extend({},o.options),V.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}a[e]="function"==typeof s?function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:s}),n.prototype=V.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},a,{constructor:n,namespace:r,widgetName:t,widgetFullName:l}),s?(V.each(s._childConstructors,function(t,e){var i=e.prototype;V.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),V.widget.bridge(t,n),n},V.widget.extend=function(t){for(var e,i,s=r.call(arguments,1),n=0,o=s.length;n<o;n++)for(e in s[n])i=s[n][e],a.call(s[n],e)&&void 0!==i&&(V.isPlainObject(i)?t[e]=V.isPlainObject(t[e])?V.widget.extend({},t[e],i):V.widget.extend({},i):t[e]=i);return t},V.widget.bridge=function(o,e){var a=e.prototype.widgetFullName||o;V.fn[o]=function(i){var t="string"==typeof i,s=r.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=V.data(this,a);return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for "+o+" widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=V.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=V.data(this,a);t?(t.option(i||{}),t._init&&t._init()):V.data(this,a,new e(i,this))})),n}},V.Widget=function(){},V.Widget._childConstructors=[],V.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=V(e||this.defaultElement||this)[0],this.element=V(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=V(),this.hoverable=V(),this.focusable=V(),this.classesElementLookup={},e!==this&&(V.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=V(e.style?e.ownerDocument:e.document||e),this.window=V(this.document[0].defaultView||this.document[0].parentWindow)),this.options=V.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:V.noop,_create:V.noop,_init:V.noop,destroy:function(){var i=this;this._destroy(),V.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:V.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return V.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=V.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=V(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){var o=[],a=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=a.classesElementLookup[t[s]]||V(),i=n.add?(function(){var i=[];n.element.each(function(t,e){V.map(a.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),a._on(V(i),{remove:"_untrackClassesElement"})}(),V(V.uniqueSort(i.get().concat(n.element.get())))):V(i.not(n.element).get()),a.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}return(n=V.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var s=this;V.each(s.classesElementLookup,function(t,e){-1!==V.inArray(i.target,e)&&(s.classesElementLookup[t]=V(e.not(i.target).get()))}),this._off(V(i.target))}
vendor: 4,936 bytes, line 11
11,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var n="string"==typeof t||null===t,i={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof s?s:i};return i.element.toggleClass(this._classes(i),s),this},_on:function(n,o,t){var a,r=this;"boolean"!=typeof n&&(t=o,o=n,n=!1),t?(o=a=V(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,a=this.widget()),V.each(t,function(t,e){function i(){if(n||!0!==r.options.disabled&&!V(this).hasClass("ui-state-disabled"))return("string"==typeof e?r[e]:e).apply(r,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||V.guid++);var s=t.match(/^([\w:-]*)\s*(.*)$/),t=s[1]+r.eventNamespace,s=s[2];s?a.on(t,s,i):o.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=V(this.bindings.not(t).get()),this.focusable=V(this.focusable.not(t).get()),this.hoverable=V(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(V(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(V(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=V.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!("function"==typeof o&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},V.each({show:"fadeIn",hide:"fadeOut"},function(o,a){V.Widget.prototype["_"+o]=function(e,t,i){var s,n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||a:o;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!V.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&V.effects&&V.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){V(this)[o](),i&&i.call(e[0]),t()})}});var s,x,k,o,l,h,c,u,C;V.widget;function D(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function I(t,e){return parseInt(V.css(t,e),10)||0}function T(t){return null!=t&&t===t.window}x=Math.max,k=Math.abs,o=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,C=V.fn.position,V.position={scrollbarWidth:function(){if(void 0!==s)return s;var t,e=V("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),i=e.children()[0];return V("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?V.position.scrollbarWidth():0,height:e?V.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=V(t||window),i=T(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:!i&&!s?V(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},V.fn.position=function(u){if(!u||!u.of)return C.apply(this,arguments);var d,p,f,g,m,t,_="string"==typeof(u=V.extend({},u)).of?V(document).find(u.of):V(u.of),v=V.position.getWithinInfo(u.within),b=V.position.getScrollInfo(v),y=(u.collision||"flip").split(" "),w={},e=9===(t=(e=_)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:T(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return _[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,m=V.extend({},g=e.offset),V.each(["my","at"],function(){var t,e,i=(u[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],u[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===u.at[0]?m.left+=p:"center"===u.at[0]&&(m.left+=p/2),"bottom"===u.at[1]?m.top+=f:"center"===u.at[1]&&(m.top+=f/2),d=D(w.at,p,f),m.left+=d[0],m.to
vendor: 4,447 bytes, line 11
11p+=d[1],this.each(function(){var i,t,a=V(this),r=a.outerWidth(),l=a.outerHeight(),e=I(this,"marginLeft"),s=I(this,"marginTop"),n=r+e+I(this,"marginRight")+b.width,o=l+s+I(this,"marginBottom")+b.height,h=V.extend({},m),c=D(w.my,a.outerWidth(),a.outerHeight());"right"===u.my[0]?h.left-=r:"center"===u.my[0]&&(h.left-=r/2),"bottom"===u.my[1]?h.top-=l:"center"===u.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:s},V.each(["left","top"],function(t,e){V.ui.position[y[t]]&&V.ui.position[y[t]][e](h,{targetWidth:p,targetHeight:f,elemWidth:r,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:o,offset:[d[0]+c[0],d[1]+c[1]],my:u.my,at:u.at,within:v,elem:a})}),u.using&&(t=function(t){var e=g.left-h.left,i=e+p-r,s=g.top-h.top,n=s+f-l,o={target:{element:_,left:g.left,top:g.top,width:p,height:f},element:{element:a,left:h.left,top:h.top,width:r,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};p<r&&k(e+i)<p&&(o.horizontal="center"),f<l&&k(s+n)<f&&(o.vertical="middle"),x(k(e),k(i))>x(k(s),k(n))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),a.offset(V.extend(h,{using:t}))})},V.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,a=s-o,r=o+e.collisionWidth-n-s;e.collisionWidth>n?0<a&&r<=0?(i=t.left+a+e.collisionWidth-n-s,t.left+=a-i):t.left=!(0<r&&a<=0)&&r<a?s+n-e.collisionWidth:s:0<a?t.left+=a:0<r?t.left-=r:t.left=x(t.left-o,t.left)},top:function(t,e){var i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,n=e.within.height,o=t.top-e.collisionPosition.marginTop,a=s-o,r=o+e.collisionHeight-n-s;e.collisionHeight>n?0<a&&r<=0?(i=t.top+a+e.collisionHeight-n-s,t.top+=a-i):t.top=!(0<r&&a<=0)&&r<a?s+n-e.collisionHeight:s:0<a?t.top+=a:0<r?t.top-=r:t.top=x(t.top-o,t.top)}},flip:{left:function(t,e){var i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,o=i.isWindow?i.scrollLeft:i.offset.left,a=t.left-e.collisionPosition.marginLeft,r=a-o,l=a+e.collisionWidth-n-o,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,a=-2*e.offset[0];r<0?((s=t.left+h+i+a+e.collisionWidth-n-s)<0||s<k(r))&&(t.left+=h+i+a):0<l&&(0<(o=t.left-e.collisionPosition.marginLeft+h+i+a-o)||k(o)<l)&&(t.left+=h+i+a)},top:function(t,e){var i=e.within,s=i.offset.top+i.scrollTop,n=i.height,o=i.isWindow?i.scrollTop:i.offset.top,a=t.top-e.collisionPosition.marginTop,r=a-o,l=a+e.collisionHeight-n-o,h="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,a=-2*e.offset[1];r<0?((s=t.top+h+i+a+e.collisionHeight-n-s)<0||s<k(r))&&(t.top+=h+i+a):0<l&&(0<(o=t.top-e.collisionPosition.marginTop+h+i+a-o)||k(o)<l)&&(t.top+=h+i+a)}},flipfit:{left:function(){V.ui.position.flip.left.apply(this,arguments),V.ui.position.fit.left.apply(this,arguments)},top:function(){V.ui.position.flip.top.apply(this,arguments),V.ui.position.fit.top.apply(this,arguments)}}};V.ui.position,V.extend(V.expr.pseudos,{data:V.expr.createPseudo?V.expr.createPseudo(function(e){return function(t){return!!V.data(t,e)}}):function(t,e,i){return!!V.data(t,i[3])}}),V.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var t,d=V,p={},e=p.toString,f=/^([\-+])=\s*(\d+\.?\d*)/,g=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}
vendor: 5,162 bytes, line 11
11],m=d.Color=function(t,e,i,s){return new d.Color.fn.parse(t,e,i,s)},_={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},v={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},b=m.support={},y=d("<p>")[0],w=d.each;function P(t){return null==t?t+"":"object"==typeof t?p[e.call(t)]||"object":typeof t}function M(t,e,i){var s=v[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:Math.min(s.max,Math.max(0,t)))}function S(s){var n=m(),o=n._rgba=[];return s=s.toLowerCase(),w(g,function(t,e){var i=e.re.exec(s),i=i&&e.parse(i),e=e.space||"rgba";if(i)return i=n[e](i),n[_[e].cache]=i[_[e].cache],o=n._rgba=i._rgba,!1}),o.length?("0,0,0,0"===o.join()&&d.extend(o,B.transparent),n):B[s]}function H(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}y.style.cssText="background-color:rgba(1,1,1,.5)",b.rgba=-1<y.style.backgroundColor.indexOf("rgba"),w(_,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),d.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){p["[object "+e+"]"]=e.toLowerCase()}),(m.fn=d.extend(m.prototype,{parse:function(n,t,e,i){if(void 0===n)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=d(n).css(t),t=void 0);var o=this,s=P(n),a=this._rgba=[];return void 0!==t&&(n=[n,t,e,i],s="array"),"string"===s?this.parse(S(n)||B._default):"array"===s?(w(_.rgba.props,function(t,e){a[e.idx]=M(n[e.idx],e)}),this):"object"===s?(w(_,n instanceof m?function(t,e){n[e.cache]&&(o[e.cache]=n[e.cache].slice())}:function(t,i){var s=i.cache;w(i.props,function(t,e){if(!o[s]&&i.to){if("alpha"===t||null==n[t])return;o[s]=i.to(o._rgba)}o[s][e.idx]=M(n[t],e,!0)}),o[s]&&d.inArray(null,o[s].slice(0,3))<0&&(null==o[s][3]&&(o[s][3]=1),i.from&&(o._rgba=i.from(o[s])))}),this):void 0},is:function(t){var n=m(t),o=!0,a=this;return w(_,function(t,e){var i,s=n[e.cache];return s&&(i=a[e.cache]||e.to&&e.to(a._rgba)||[],w(e.props,function(t,e){if(null!=s[e.idx])return o=s[e.idx]===i[e.idx]})),o}),o},_space:function(){var i=[],s=this;return w(_,function(t,e){s[e.cache]&&i.push(t)}),i.pop()},transition:function(t,a){var e=(h=m(t))._space(),i=_[e],t=0===this.alpha()?m("transparent"):this,r=t[i.cache]||i.to(t._rgba),l=r.slice(),h=h[i.cache];return w(i.props,function(t,e){var i=e.idx,s=r[i],n=h[i],o=v[e.type]||{};null!==n&&(null===s?l[i]=n:(o.mod&&(n-s>o.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),l[i]=M((n-s)*a+s,e)))}),this[e](l)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),s=m(t)._rgba;return m(d.map(e,function(t,e){return(1-i)*s[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=d.map(this._rgba,function(t,e){return null!=t?t:2<e?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=d.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),t=e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+d.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=m.fn,_.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,s=t[2]/255,n=t[3],o=Math.max(e,i,s),a=Math.min(e,i,s),r=o-a,l=o+a,t=.5*l,i=a===o?0:e===o?60*(i-s)/r+360:i===o?60*(s-e)/r+120:60*(e-i)/r+240,l=0==r?0:t<=.5?r/l:r/(2-l);return[Math.round(i)%360,l,t,null==n?1:n]},_.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],t=t[3],i=s<=.5?s*(1+i):s+i-s*i,s=2*s-i;return[Math.round(255*H(s,i,e+1/3)),Math.round(255*H(s,i,e)),Math.round(255*H(s,i,e-1/3)),t]},w(_,function(l,t){var e=t.props,o=t.cache,a=t.to,r=t.from;m.fn[l]=function(t){if(a&&!this[o]&&(this[o]=a(this._rgba)),void 0===t)return this[o].slice();var i=P(t),s="array"===i||"object"===i?t:arguments,n=this[o].slice();return w(e,function(t,e){t=s["object"===i?t:e.idx];null==t&&(t=n[e.idx]),n[e.idx]=M(t,e)}),r?((t=m(r(n)))[o]=n,t):m(n)},w(e,function(a,r){m.fn[a]||(m.fn[a]=function(t){var e,i=P(t),s="alpha"===a?this._hsla?"hsla":"rgba":l,n=this[s](),o=n[r.idx];return"undefined"===i?o:("function"===i&&(i=P(t=t.call(this,o))),null==t&&r.empty?this:("string"===i&&(e=f.exec(t))&&(t=o+parseFloat(e[2])*("+"===e[1]?1:-1)),n[r.idx]=t,this[s](n)))})})}),(m.hook=function(t){t=t.split(" ");w(t,function(t,o){d.cssHooks[o]={set:function(t,e){var i,s,n="";if("transparent"!==e&&("string"!==P(e)||(i=S(e)))){if(e=m(i||e),!b.rgba&&1!==e._rgba[3]){for(s="backgroundColor"===o?t.parentNode:t;(""===n||"transparent"===n)&&s&&s.style;)try{n=d.css(s,"backgroundColor"),s=s.parentNode}catch(t){}e=e.blend(n&&"transparent"!==n?n:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},d.fx.step[o]=function(t){t.colorInit||(t.start=m(t.elem,o),t.end=m(t.end
vendor: 29,600 bytes, line 11
11),t.colorInit=!0),d.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),d.cssHooks.borderColor={expand:function(i){var s={};return w(["Top","Right","Bottom","Left"],function(t,e){s["border"+e+"Color"]=i}),s}};var z,A,O,N,E,W,F,L,R,Y,B=d.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},j="ui-effects-",q="ui-effects-style",K="ui-effects-animated";function U(t){var e,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[e=s[i]]&&(n[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=s[e]);else for(e in s)"string"==typeof s[e]&&(n[e]=s[e]);return n}function X(t,e,i,s){return t={effect:t=V.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(s=e,i=null,e={}),"number"!=typeof e&&!V.fx.speeds[e]||(s=i,i=e,e={}),"function"==typeof i&&(s=i,i=null),e&&V.extend(t,e),i=i||e.duration,t.duration=V.fx.off?0:"number"==typeof i?i:i in V.fx.speeds?V.fx.speeds[i]:V.fx.speeds._default,t.complete=s||e.complete,t}function $(t){return!t||"number"==typeof t||V.fx.speeds[t]||("string"==typeof t&&!V.effects.effect[t]||("function"==typeof t||"object"==typeof t&&!t.effect))}function G(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}V.effects={effect:{}},N=["add","remove","toggle"],E={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},V.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){V.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(d.style(t.elem,e,t.end),t.setAttr=!0)}}),V.fn.addBack||(V.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),V.effects.animateClass=function(n,t,e,i){var o=V.speed(t,e,i);return this.queue(function(){var i=V(this),t=i.attr("class")||"",e=(e=o.children?i.find("*").addBack():i).map(function(){return{el:V(this),start:U(this)}}),s=function(){V.each(N,function(t,e){n[e]&&i[e+"Class"](n[e])})};s(),e=e.map(function(){return this.end=U(this.el[0]),this.diff=function(t,e){var i,s,n={};for(i in e)s=e[i],t[i]!==s&&(E[i]||!V.fx.step[i]&&isNaN(parseFloat(s))||(n[i]=s));return n}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=V.Deferred(),i=V.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),V.when.apply(V,e.get()).done(function(){s(),V.each(arguments,function(){var e=this.el;V.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},V.fn.extend({addClass:(O=V.fn.addClass,function(t,e,i,s){return e?V.effects.animateClass.call(this,{add:t},e,i,s):O.apply(this,arguments)}),removeClass:(A=V.fn.removeClass,function(t,e,i,s){return 1<arguments.length?V.effects.animateClass.call(this,{remove:t},e,i,s):A.apply(this,arguments)}),toggleClass:(z=V.fn.toggleClass,function(t,e,i,s,n){return"boolean"==typeof e||void 0===e?i?V.effects.animateClass.call(this,e?{add:t}:{remove:t},i,s,n):z.apply(this,arguments):V.effects.animateClass.call(this,{toggle:t},e,i,s)}),switchClass:function(t,e,i,s,n){return V.effects.animateClass.call(this,{add:e,remove:t},i,s,n)}}),V.expr&&V.expr.pseudos&&V.expr.pseudos.animated&&(V.expr.pseudos.animated=(W=V.expr.pseudos.animated,function(t){return!!V(t).data(K)||W(t)})),!1!==V.uiBackCompat&&V.extend(V.effects,{save:function(t,e){for(var i=0,s=e.length;i<s;i++)null!==e[i]&&t.data(j+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;s<n;s++)null!==e[s]&&(i=t.data(j+e[s]),t.css(e[s],i))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var s={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=V("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!V.contains(i[0],n)||V(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(V.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),V.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!V.contains(t[0],e)||V(e).trigger("focus")),t}}),V.extend(V.effects,{version:"1.13.2",define:function(t,e,i){return i||(i=e,e="effect"),V.effects.effect[t]=i,V.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,e="vertical"!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*s,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();1<e&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(q,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(q)||"",t.removeData(q)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=V("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(j+"placeholder",e)),t.css({position:i,left:s.left,top:s.top}),e},removePlaceholder:function(t){var e=j+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){V.effects.restoreStyle(t),V.effects.removePlaceholder(t)},setTransition:function(s,t,n,o){return o=o||{},V.each(t,function(t,e){var i=s.cssUnit(e);0<i[0]&&(o[e]=i[0]*n+i[1])}),o}}),V.fn.extend({effect:function(){function t(t){var e=V(this),i=V.effects.mode(e,r)||o;e.data(K,!0),l.push(i),o&&("show"===i||i===o&&"hide"===i)&&e.show(),o&&"none"===i||V.effects.saveStyle(e),"function"==typeof t&&t()}var s=X.apply(this,arguments),n=V.effects.effect[s.effect],o=n.mode,e=s.queue,i=e||"fx",a=s.complete,r=s.mode,l=[];return V.fx.off||!n?r?this[r](s.duration,a):this.each(function(){a&&a.call(this)}):!1===e?this.each(t).each(h):this.queue(i,t).queue(i,h);function h(t){var e=V(this);function i(){"function"==typeof a&&a.call(e[0]),"function"==typeof t&&t()}s.mode=l.shift(),!1===V.uiBackCompat||o?"none"===s.mode?(e[r](),i()):n.call(e[0],s,function(){e.removeData(K),V.effects.cleanUp(e),"hide"===s.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===r:"show"===r)?(e[r](),i()):n.call(e[0],s,i)}},show:(R=V.fn.show,function(t){if($(t))return R.apply(this,arguments);t=X.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(L=V.fn.hide,function(t){if($(t))return L.apply(this,arguments);t=X.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(F=V.fn.toggle,function(t){if($(t)||"boolean"==typeof t)return F.apply(this,arguments);t=X.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(t){var i=this.css(t),s=[];return V.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):G(this.css("clip"),this)},transfer:function(t,e){var i=V(this),s=V(t.to),n="fixed"===s.css("position"),o=V("body"),a=n?o.scrollTop():0,r=n?o.scrollLeft():0,o=s.offset(),o={top:o.top-a,left:o.left-r,height:s.innerHeight(),width:s.innerWidth()},s=i.offset(),l=V("<div class='ui-effects-transfer'></div>");l.appendTo("body").addClass(t.className).css({top:s.top-a,left:s.left-r,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(o,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),V.fx.step.clip=function(t){t.clipInit||(t.start=V(t.elem).cssClip(),"string"==typeof t.end&&(t.end=G(t.end,t.elem)),t.clipInit=!0),V(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},Y={},V.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){Y[t]=function(t){return Math.pow(t,e+2)}}),V.extend(Y,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),V.each(Y,function(t,e){V.easing["easeIn"+t]=e,V.easing["easeOut"+t]=function(t){return 1-e(1-t)},V.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});y=V.effects,V.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=V(this),n=t.direction||"up",o=s.cssClip(),a={clip:V.extend({},o)},r=V.effects.createPlaceholder(s);a.clip[i[n][0]]=a.clip[i[n][1]],"show"===t.mode&&(s.cssClip(a.clip),r&&r.css(V.effects.clipToBox(a)),a.clip=o),r&&r.animate(V.effects.clipToBox(a),t.duration,t.easing),s.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("bounce",function(t,e){var i,s,n=V(this),o=t.mode,a="hide"===o,r="show"===o,l=t.direction||"up",h=t.distance,c=t.times||5,o=2*c+(r||a?1:0),u=t.duration/o,d=t.easing,p="up"===l||"down"===l?"top":"left",f="up"===l||"left"===l,g=0,t=n.queue().length;for(V.effects.createPlaceholder(n),l=n.css(p),h=h||n["top"==p?"outerHeight":"outerWidth"]()/3,r&&((s={opacity:1})[p]=l,n.css("opacity",0).css(p,f?2*-h:2*h).animate(s,u,d)),a&&(h/=Math.pow(2,c-1)),(s={})[p]=l;g<c;g++)(i={})[p]=(f?"-=":"+=")+h,n.animate(i,u,d).animate(s,u,d),h=a?2*h:h/2;a&&((i={opacity:0})[p]=(f?"-=":"+=")+h,n.animate(i,u,d)),n.queue(e),V.effects.unshift(n,t,1+o)}),V.effects.define("clip","hide",function(t,e){var i={},s=V(this),n=t.direction||"vertical",o="both"===n,a=o||"horizontal"===n,o=o||"vertical"===n,n=s.cssClip();i.clip={top:o?(n.bottom-n.top)/2:n.top,right:a?(n.right-n.left)/2:n.right,bottom:o?(n.bottom-n.top)/2:n.bottom,left:a?(n.right-n.left)/2:n.left},V.effects.createPlaceholder(s),"show"===t.mode&&(s.cssClip(i.clip),i.clip=n),s.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("drop","hide",function(t,e){var i=V(this),s="show"===t.mode,n=t.direction||"left",o="up"===n||"down"===n?"top":"left",a="up"===n||"left"===n?"-=":"+=",r="+="==a?"-=":"+=",l={opacity:0};V.effects.createPlaceholder(i),n=t.distance||i["top"==o?"outerHeight":"outerWidth"](!0)/2,l[o]=a+n,s&&(i.css(l),l[o]=r+n,l.opacity=1),i.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("explode","hide",function(t,e){var i,s,n,o,a,r,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=l,c=V(this),u="show"===t.mode,d=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),g=[];function m(){g.push(this),g.length===l*h&&(c.css({visibility:"visible"}),V(g).remove(),e())}for(i=0;i<l;i++)for(o=d.top+i*f,r=i-(l-1)/2,s=0;s<h;s++)n=d.left+s*p,a=s-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:n+(u?a*p:0),top:o+(u?r*f:0),opacity:u?0:1}).animate({left:n+(u?0:a*p),top:o+(u?0:r*f),opacity:u?1:0},t.duration||500,t.easing,m)}),V.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;V(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("fold","hide",function(e,t){var i=V(this),s=e.mode,n="show"===s,o="hide"===s,a=e.size||15,r=/([0-9]+)%/.exec(a),l=!!e.horizFirst?["right","bottom"]:["bottom","right"],h=e.duration/2,c=V.effects.createPlaceholder(i),u=i.cssClip(),d={clip:V.extend({},u)},p={clip:V.extend({},u)},f=[u[l[0]],u[l[1]]],s=i.queue().length;r&&(a=parseInt(r[1],10)/100*f[o?0:1]),d.clip[l[0]]=a,p.clip[l[0]]=a,p.clip[l[1]]=0,n&&(i.cssClip(p.clip),c&&c.css(V.effects.clipToBox(p)),p.clip=u),i.queue(function(t){c&&c.animate(V.effects.clipToBox(d),h,e.easing).animate(V.effects.clipToBox(p),h,e.easing),t()}).animate(d,h,e.easing).animate(p,h,e.easing).queue(t),V.effects.unshift(i,s,4)}),V.effects.define("highlight","show",function(t,e){var i=V(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),V.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("size",function(s,e){var n,i=V(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],a=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=s.mode,l="effect"!==r,h=s.scale||"both",c=s.origin||["middle","center"],u=i.css("position"),d=i.position(),p=V.effects.scaledDimensions(i),f=s.from||p,g=s.to||V.effects.scaledDimensions(i,0);V.effects.createPlaceholder(i),"show"===r&&(r=f,f=g,g=r),n={from:{y:f.height/p.height,x:f.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==h&&"both"!==h||(n.from.y!==n.to.y&&(f=V.effects.setTransition(i,o,n.from.y,f),g=V.effects.setTransition(i,o,n.to.y,g)),n.from.x!==n.to.x&&(f=V.effects.setTransition(i,a,n.from.x,f),g=V.effects.setTransition(i,a,n.to.x,g))),"content"!==h&&"both"!==h||n.from.y!==n.to.y&&(f=V.effects.setTransition(i,t,n.from.y,f),g=V.effects.setTransition(i,t,n.to.y,g)),c&&(c=V.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*c.y+d.top,f.left=(p.outerWidth-f.outerWidth)*c.x+d.left,g.top=(p.outerHeight-g.outerHeight)*c.y+d.top,g.left=(p.outerWidth-g.outerWidth)*c.x+d.left),delete f.outerHeight,delete f.outerWidth,i.css(f),"content"!==h&&"both"!==h||(o=o.concat(["marginTop","marginBottom"]).concat(t),a=a.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=V(this),e=V.effects.scaledDimensions(t),i={height:e.height*n.from.y,width:e.width*n.from.x,outerHeight:e.outerHeight*n.from.y,outerWidth:e.outerWidth*n.from.x},e={height:e.height*n.to.y,width:e.width*n.to.x,outerHeight:e.height*n.to.y,outerWidth:e.width*n.to.x};n.from.y!==n.to.y&&(i=V.effects.setTransition(t,o,n.from.y,i),e=V.effects.setTransition(t,o,n.to.y,e)),n.from.x!==n.to.x&&(i=V.effects.setTransition(t,a,n.from.x,i),e=V.effects.setTransition(t,a,n.to.x,e)),l&&V.effects.saveStyle(t),t.css(i),t.animate(e,s.duration,s.easing,function(){l&&V.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),V.effects.saveStyle(i)),e()}})}),V.effects.define("scale",function(t,e){var i=V(this),s=t.mode,s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),s=V.extend(!0,{from:V.effects.scaledDimensions(i),to:V.effects.scaledDimensions(i,s,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(s.from.opacity=1,s.to.opacity=0),V.effects.effect.size.call(this,s,e)}),V.effects.define("puff","hide",function(t,e){t=V.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});V.effects.effect.scale.call(this,t,e)}),V.effects.define("pulsate","show",function(t,e){var i=V(this),s=t.mode,n="show"===s,o=2*(t.times||5)+(n||"hide"===s?1:0),a=t.duration/o,r=0,l=1,s=i.queue().length;for(!n&&i.is(":visible")||(i.css("opacity",0).show(),r=1);l<o;l++)i.animate({opacity:r},a,t.easing),r=1-r;i.animate({opacity:r},a,t.easing),i.queue(e),V.effects.unshift(i,s,1+o)}),V.effects.define("shake",function(t,e){var i=1,s=V(this),n=t.direction||"left",o=t.distance||20,a=t.times||3,r=2*a+1,l=Math.round(t.duration/r),h="up"===n||"down"===n?"top":"left",c="up"===n||"left"===n,u={},d={},p={},n=s.queue().length;for(V.effects.createPlaceholder(s),u[h]=(c?"-=":"+=")+o,d[h]=(c?"+=":"-=")+2*o,p[h]=(c?"-=":"+=")+2*o,s.animate(u,l,t.easing);i<a;i++)s.animate(d,l,t.easing).animate(p,l,t.easing);s.animate(d,l,t.easing).animate(u,l/2,t.easing).queue(e),V.effects.unshift(s,n,1+r)}),V.effects.define("slide","show",function(t,e){var i,s,n=V(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,r=t.direction||"left",l="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r,c=t.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};V.effects.createPlaceholder(n),i=n.cssClip(),s=n.position()[l],u[l]=(h?-1:1)*c+s,u.clip=n.cssClip(),u.clip[o[r][1]]=u.clip[o[r][0]],"show"===a&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=s),n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),y=!1!==V.uiBackCompat?V.effects.define("transfer",function(t,e){V(this).transfer(t,e)}):y;V.ui.focusable=function(t,e){var i,s,n,o,a=t.nodeName.toLowerCase();return"area"===a?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(0<(s=V("img[usemap='#"+s+"']")).length&&s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(a)?(n=!t.disabled)&&(o=V(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===a&&t.href||e,n&&V(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(V(t)))},V.extend(V.expr.pseudos,{focusable:function(t){return V.ui.focusable(t,null!=V.attr(t,"tabindex"))}});var Q,J;V.ui.focusable,V.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):V(this[0].form)},V.ui.formResetMixin={_formResetHandler:function(){var e=V(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");V.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(V.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}};V.expr.pseudos||(V.expr.pseudos=V.expr[":"]),V.uniqueSort||(V.uniqueSort=V.unique),V.escapeSelector||(Q=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,J=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},V.escapeSelector=function(t){return(t+"").replace(Q,J)}),V.fn.even&&V.fn.odd||V.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}});var Z;V.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},V.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+V.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},V.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=V(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:V(this[0].ownerDocument||document)},V.extend(V.expr.pseudos,{tabbable:function(t){var e=V.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&V.ui.focusable(t,i)}}),V.fn.extend({uniqueId:(Z=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++Z)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&V(this).removeAttr("id")})}}),V.widget("ui.accordion",{version:"1.13.2",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(t){return t.find("> li > :first-child").add(t.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=V(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():V()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=V("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=V.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(V(t.target).attr("tabIndex",-1),V(n).attr("tabIndex",0),V(n).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===V.ui.keyCode.UP&&t.ctrlKey&&V(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=V()):!1===t.active?this._activate(0):this.active.length&&!V.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=V()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=V(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=V(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=V(this).outerHeight(!0)}),this.headers.next().each(function(){V(this).height(Math.max(0,i-V(this).innerHeight()+V(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=V(this).is(":visible");t||V(this).show(),i=Math.max(i,V(this).css("height","").height()),t||V(this).hide()}).height(i))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:V.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):V()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&V.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,s=V(t.currentTarget),n=s[0]===i[0],o=n&&e.collapsible,a=o?V():s.next(),r=i.next(),a={oldHeader:i,oldPanel:r,newHeader:o?V():s,newPanel:a};t.preventDefault(),n&&!e.collapsible||!1===this._trigger("beforeActivate",t,a)||(e.active=!o&&this.headers.index(s),this.active=n?V():s,this._toggle(a),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(i=i.children(".ui-accordion-header-icon"),this._removeClass(i,null,e.icons.activeHeader)._addClass(i,null,e.icons.header)),n||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),e.icons&&(n=s.children(".ui-accordion-header-icon"),this._removeClass(n,null,e.icons.header)._addClass(n,null,e.icons.activeHeader)),this._addClass(s.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(V(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){var s,n,o,a=this,r=0,l=t.css("box-sizing"),h=t.length&&(!i.length||t.index()<i.index()),c=this.options.animate||{},u=h&&c.down||c,h=function(){a._toggleComplete(e)};
vendor: 8,223 bytes, line 11
11return n=(n="string"==typeof u?u:n)||u.easing||c.easing,o=(o="number"==typeof u?u:o)||u.duration||c.duration,i.length?t.length?(s=t.show().outerHeight(),i.animate(this.hideProps,{duration:o,easing:n,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:n,complete:h,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===l&&(r+=e.now):"content"!==a.options.heightStyle&&(e.now=Math.round(s-i.outerHeight()-r),r=0)}})):i.animate(this.hideProps,o,n,h):t.animate(this.showProps,o,n,h)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),V.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=!(i=i||e.body).nodeName?e.body:i},V.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=V(t.target),i=V(V.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){V.contains(this.element[0],V.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=V(t.target).closest(".ui-menu-item"),i=V(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=V(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case V.ui.keyCode.PAGE_UP:this.previousPage(t);break;case V.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case V.ui.keyCode.HOME:this._move("first","first",t);break;case V.ui.keyCode.END:this._move("last","last",t);break;case V.ui.keyCode.UP:this.previous(t);break;case V.ui.keyCode.DOWN:this.next(t);break;case V.ui.keyCode.LEFT:this.collapse(t);break;case V.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case V.ui.keyCode.ENTER:case V.ui.keyCode.SPACE:this._activate(t);break;case V.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=V(this),e=t.prev(),i=V("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=V(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!V.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(V.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(V.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=V.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:V(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
11se")},_closeOnDocumentClick:function(t){return!V(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===V.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=V(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===V.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=V(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||V(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(String.prototype.trim.call(V(this).children(".ui-menu-item-wrapper").text()))})}});V.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=V.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=V.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 13,513 bytes, line 11
11)},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=V("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){V(t.target).trigger(t.originalEvent)});s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(V("<div>").text(i))},100))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==V.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=V("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||V.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?V(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(V.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=V.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:V.map(t,function(t){return"string"==typeof t?{label:t,value:t}:V.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(V.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var s=this;V.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return V("<li>").append(V("<div>").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),V.extend(V.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(V.ui.autocomplete.escapeRegex(e),"i");return V.grep(t,function(t){return i.test(t.label||t.value||t)})}}),V.widget("ui.autocomplete",V.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(V("<div>").text(e))},100))}});V.ui.autocomplete;var tt=/ui-corner-([a-z]){2,6}/g;V.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var o=this,a=[];V.each(this.options.items,function(s,t){var e,n={};if(t)return"controlgroupLabel"===s?((e=o.element.find(t)).each(function(){var t=V(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(a=a.concat(e.get()))):void(V.fn[s]&&(n=o["_"+s+"Options"]?o["_"+s+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=V(this),e=t[s]("instance"),i=V.widget.extend({},n);"button"===s&&t.parent(".ui-spinner").length||((e=e||t[s]()[s]("instance"))&&(i.classes=o._resolveClassesValues(i.classes,e)),t[s](i),i=t[s]("widget"),V.data(i[0],"ui-controlgroup-data",e||t[s]("instance")),a.push(i[0]))})))}),this.childWidgets=V(V.uniqueSort(a)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=V(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,s){var n={};return V.each(i,function(t){var e=s.options.classes[t]||"",e=String.prototype.trim.call(e.replace(tt,""));n[t]=(e+" "+i[t]).replace(/\s+/g," ")}),n},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var n,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),n=this.childWidgets,(n=this.options.onlyVisible?n.filter(":visible"):n).length&&(V.each(["first","last"],function(t,e){var i,s=n[e]().data("ui-controlgroup-data");s&&o["_"+s.widgetName+"Options"]?((i=o["_"+s.widgetName+"Options"](1===n.length?"only":e)).classes=o._resolveClassesValues(i.classes,s),s.element[s.widgetName](i)):o._updateCornerClass(n[e](),e)}),this._callChildMethod("refresh"))}});V.widget("ui.checkboxradio",[V.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this._super()||{};return this._readType(),t=this.element.labels(),this.label=V(t[t.length-1]),this.label.length||V.error("No label found for checkboxradio widget"),this.originalLabel="",(t=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=t.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(e.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(e.disabled=t),e},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||V.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+V.escapeSelector(t)+"']";return t?(this.form.length?V(this.form[0].elements).filter(e):V(e).filter(function(){return 0===V(this)._form().length})).not(this.element):V([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=V(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=V("<span>"),this.iconSpace=V("<span> </span>
11"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]);var et;V.ui.checkboxradio;V.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===V.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var i="iconPosition"!==t,s=i?this.options.iconPosition:e,t="top"===s||"bottom"===s;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=V("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,e),this._attachIcon(s),t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 4,777 bytes, line 11
11pace||(this.iconSpace=V("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),(this.element[0].disabled=e)&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==V.uiBackCompat&&(V.widget("ui.button",V.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),V.fn.button=(et=V.fn.button,function(i){var t="string"==typeof i,s=Array.prototype.slice.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t=V(this).attr("type"),e=V.data(this,"ui-"+("checkbox"!==t&&"radio"!==t?"button":"checkboxradio"));return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for button widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=V.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=V(this).attr("type"),e="checkbox"!==t&&"radio"!==t?"button":"checkboxradio",t=V.data(this,"ui-"+e);t?(t.option(i||{}),t._init&&t._init()):"button"!=e?V(this).checkboxradio(V.extend({icon:!1},i)):et.call(V(this),i)})),n}),V.fn.buttonset=function(){return V.ui.controlgroup||V.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});var it;V.ui.button;function st(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
vendor: 4,737 bytes, line 11
11ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=nt(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function nt(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,ot)}function ot(){V.datepicker._isDisabledDatepicker((it.inline?it.dpDiv.parent():it.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function at(t,e){for(var i in V.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}V.extend(V.ui,{datepicker:{version:"1.13.2"}}),V.extend(st.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return at(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),n="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(V(t),n)).settings=V.extend({},e||{}),"input"===s?this._connectDatepicker(t,i):n&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?nt(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=V(t);e.append=V([]),e.trigger=V([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),V.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=V("<span>").addClass(this._appendClass).text(s),t[n?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=V("<img>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):(e.trigger=V("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html(V("<img>").attr({src:i,alt:s,title:s})):e.trigger.text(s)),t[n?"before":"after"](e.trigger),e.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===t[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==t[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,n,o,a;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(a=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(n=s=i=0;n<t.length;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var i=V(t);
vendor: 11,779 bytes, line 11
11i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),V.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,s,n){var o,a=this._dialogInst;return a||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",a)),at(a.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(a,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,s/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(t){var e,i=V(t),s=V.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),V.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),it===s&&(it=null,this._curInst=null))},_enableDatepicker:function(e){var t,i=V(e),s=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=V(e),s=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return V.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,o=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?V.extend({},V.datepicker._defaults):o?"all"===e?V.extend({},o.settings):this._get(o,e):null;s=e||{},"string"==typeof e&&((s={})[e]=i),o&&(this._curInst===o&&this._hideDatepicker(),n=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(o,"min"),i=this._getMinMaxDate(o,"max"),at(o.settings,s),null!==e&&void 0!==s.dateFormat&&void 0===s.minDate&&(o.settings.minDate=this._formatDate(o,e)),null!==i&&void 0!==s.dateFormat&&void 0===s.maxDate&&(o.settings.maxDate=this._formatDate(o,i)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(V(t),o),this._autoSize(o),this._setDate(o,n),this._updateAlternate(o),this._updateDatepicker(o))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,s=V.datepicker._getInst(t.target),n=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,V.datepicker._datepickerShowing)switch(t.keyCode){case 9:V.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",s.dpDiv))[0]&&V.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(e=V.datepicker._get(s,"onSelect"))?(i=V.datepicker._formatDate(s),e.apply(s.input?s.input[0]:null,[i,s])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(s,"stepBigMonths"):-V.datepicker._get(s,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(s,"stepBigMonths"):+V.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&V.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&V.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,o?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(s,"stepBigMonths"):-V.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,o?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(s,"stepBigMonths"):+V.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?V.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=V.datepicker._getInst(t.target);if(V.datepicker._get(i,"constrainInput"))return e=V.datepicker._possibleChars(V.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){t=V.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{V.datepicker.parseDate(V.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,V.datepicker._getFormatConfig(t))&&(V.datepicker._setDateFromField(t),V.datepicker._updateAlternate(t),V.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=V("input",t.parentNode)[0]),V.datepicker._isDisabledDatepicker(t)||V.datepicker._lastInput===t||(n=V.datepicker._getInst(t),V.datepicker._curInst&&V.datepicker._curInst!==n&&(V.datepicker._curInst.dpDiv.stop(!0,!0),n&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0])),!1!==(i=(s=V.datepicker._get(n,"beforeShow"))?s.apply(t,[t,n]):{})&&(at(n.settings,i),n.lastVal=null,V.datepicker._lastInput=t,V.datepicker._setDateFromField(n),V.datepicker._inDialog&&(t.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(t),V.datepicker._pos[1]+=t.offsetHeight),e=!1,V(t).parents().each(function(){return!(e|="fixed"===V(this).css("position"))}),s={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(n),s=V.datepicker._checkOffset(n,s,e),n.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":e?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),n.inline||(i=V.datepicker._get(n,"showAnim"),s=V.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(V(t))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[i]?n.dpDiv.show(i,V.datepicker._get(n,"showOptions"),s):n.dpDiv[i||"show"](i?s:null),V.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),V.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,(it=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a"),o=V.datepicker._get(t,"onUpdateDatepicker");0<n.length&&ot.apply(n.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+(i?0:V(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:V(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-o:0,e.left-=i&&e.left===t.input.offset().left?V(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+a?V(document).scrollTop():0,e.left-=Math.min(e.left,e.left+s>r&&s<r?Math.abs(e.left+s-r):0),e.top-=Math.min(e.top,e.top+n>l&&n<l?Math.abs(n+a):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||V.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=V(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==V.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(s,"showAnim"),i=this._get(s,"duration"),t=function(){V.datepicker._tidyDialog(s)},V.effects&&(V.effects.effect[e]||V.effects[e])?s.dpDiv.hide(e,V.datepicker._get(s,"showOptions"),i,t):s.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(s,"onClose"))&&t.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI&&(V.unblockUI(),V("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;V.datepicker._curInst&&(e=V(t.target),t=V.datepicker._getInst(e[0]),(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)&&(!e.hasClass(V.datepicker.markerClassName)||V.datepicker._curInst===t)||V.datepicker._hideDatepicker())}
vendor: 14,467 bytes, line 11
11,_adjustDate:function(t,e,i){var s=V(t),t=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(t,e,i),this._updateDatepicker(t))},_gotoToday:function(t){var e=V(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var s=V(t),t=this._getInst(s[0]);t["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(s)},_selectDay:function(t,e,i,s){var n=V(t);V(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=parseInt(V("a",s).attr("data-date")),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){t=V(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=V(t),t=this._getInst(i[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,s=this._get(t,"altField");s&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),V(document).find(s).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;for(var i,s,o,a=0,r=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,r="string"!=typeof r?r:(new Date).getFullYear()%100+parseInt(r,10),l=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,h=(t?t.dayNames:null)||this._defaults.dayNames,c=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,u=(t?t.monthNames:null)||this._defaults.monthNames,d=-1,p=-1,f=-1,g=-1,m=!1,_=function(t){t=w+1<e.length&&e.charAt(w+1)===t;return t&&w++,t},v=function(t){var e=_(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}"),e=n.substring(a).match(e);if(!e)throw"Missing number at position "+a;return a+=e[0].length,parseInt(e[0],10)},b=function(t,e,i){var s=-1,e=V.map(_(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(V.each(e,function(t,e){var i=e[1];if(n.substr(a,i.length).toLowerCase()===i.toLowerCase())return s=e[0],a+=i.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+a},y=function(){if(n.charAt(a)!==e.charAt(w))throw"Unexpected literal at position "+a;a++},w=0;w<e.length;w++)if(m)"'"!==e.charAt(w)||_("'")?y():m=!1;else switch(e.charAt(w)){case"d":f=v("d");break;case"D":b("D",l,h);break;case"o":g=v("o");break;case"m":p=v("m");break;case"M":p=b("M",c,u);break;case"y":d=v("y");break;case"@":d=(o=new Date(v("@"))).getFullYear(),p=o.getMonth()+1,f=o.getDate();break;case"!":d=(o=new Date((v("!")-this._ticksTo1970)/1e4)).getFullYear(),p=o.getMonth()+1,f=o.getDate();break;case"'":_("'")?y():m=!0;break;default:y()}if(a<n.length&&(s=n.substr(a),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===d?d=(new Date).getFullYear():d<100&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=r?0:-100)),-1<g)for(p=1,f=g;;){if(f<=(i=this._getDaysInMonth(d,p-1)))break;p++,f-=i}if((o=this._daylightSavingAdjust(new Date(d,p-1,f))).getFullYear()!==d||o.getMonth()+1!==p||o.getDate()!==f)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function s(t,e,i){var s=""+e;if(c(t))for(;s.length<i;)s="0"+s;return s}function n(t,e,i,s){return(c(t)?s:i)[e]}var o,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,c=function(t){t=o+1<e.length&&e.charAt(o+1)===t;return t&&o++,t},u="",d=!1;if(t)for(o=0;o<e.length;o++)if(d)"'"!==e.charAt(o)||c("'")?u+=e.charAt(o):d=!1;else switch(e.charAt(o)){case"d":u+=s("d",t.getDate(),2);break;case"D":u+=n("D",t.getDay(),a,r);break;case"o":u+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=s("m",t.getMonth()+1,2);break;case"M":u+=n("M",t.getMonth(),l,h);break;case"y":u+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?u+="'":d=!0;break;default:u+=e.charAt(o)}return u},_possibleChars:function(e){for(var t="",i=!1,s=function(t){t=n+1<e.length&&e.charAt(n+1)===t;return t&&n++,t},n=0;n<e.length;n++)if(i)"'"!==e.charAt(n)||s("'")?t+=e.charAt(n):i=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":s("'")?t+="'":i=!0;break;default:t+=e.charAt(n)}return t},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(t){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(r,t,e){var i,s,t=null==t||""===t?e:"string"==typeof t?function(t){try{return V.datepicker.parseDate(V.datepicker._get(r,"dateFormat"),t,V.datepicker._getFormatConfig(r))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?V.datepicker._getDate(r):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(t);a;){switch(a[2]||"d"){case"d":case"D":n+=parseInt(a[1],10);break;case"w":case"W":n+=7*parseInt(a[1],10);break;case"m":case"M":s+=parseInt(a[1],10),n=Math.min(n,V.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(a[1],10),n=Math.min(n,V.datepicker._getDaysInMonth(i,s))}a=o.exec(t)}return new Date(i,s,n)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(s=new Date).setDate(s.getDate()+i),s):new Date(t.getTime());return(t=t&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){V.datepicker._adjustDate(i,-e,"M")},next:function(){V.datepicker._adjustDate(i,+e,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(i)},selectDay:function(){return V.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(i,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,a,r,l,h,c,u,d,p,f,g,m,_,v,b,y,w,x,k,C,D,I,T,P,M,S,H,z,A=new Date,O=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth(),A.getDate())),N=this._get(t,"isRTL"),E=this._get(t,"showButtonPanel"),W=this._get(t,"hideIfNoPrevNext"),F=this._get(t,"navigationAsDateFormat"),L=this._getNumberOfMonths(t),R=this._get(t,"showCurrentAtPos"),A=this._get(t,"stepMonths"),Y=1!==L[0]||1!==L[1],B=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),j=this._getMinMaxDate(t,"min"),q=this._getMinMaxDate(t,"max"),K=t.drawMonth-R,U=t.drawYear;if(K<0&&(K+=12,U--),q)for(e=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-L[0]*L[1]+1,q.getDate())),e=j&&e<j?j:e;this._daylightSavingAdjust(new Date(U,K,1))>e;)--K<0&&(K=11,U--);for(t.drawMonth=K,t.drawYear=U,R=this._get(t,"prevText"),R=F?this.formatDate(R,this._daylightSavingAdjust(new Date(U,K-A,1)),this._getFormatConfig(t)):R,i=this._canAdjustMonth(t,-1,U,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"e":"w")).text(R))[0].outerHTML:W?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"e":"w")).text(R))[0].outerHTML,R=this._get(t,"nextText"),R=F?this.formatDate(R,this._daylightSavingAdjust(new Date(U,K+A,1)),this._getFormatConfig(t)):R,s=this._canAdjustMonth(t,1,U,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:R}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"w":"e")).text(R))[0].outerHTML:W?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:R}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(N?"w":"e")).text(R))[0].outerHTML,A=this._get(t,"currentText"),W=this._get(t,"gotoCurrent")&&t.currentDay?B:O,A=F?this.formatDate(A,W,this._getFormatConfig(t)):A,R="",t.inline||(R=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),F="",E&&(F=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(N?R:"").append(this._isInRange(t,W)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(A):"").append(N?"":R)[0].outerHTML),n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,o=this._get(t,"showWeek"),a=this._get(t,"dayNames"),r=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),h=this._get(t,"monthNamesShort"),c=this._get(t,"beforeShowDay"),u=this._get(t,"showOtherMonths"),d=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),f="",m=0;m<L[0];m++){for(_="",this.maxRows=4,v=0;v<L[1];v++){if(b=this._daylightSavingAdjust(new Date(U,K,t.selectedDay)),y=" ui-corner-all",w="",Y){if(w+="<div class='ui-datepicker-group",1<L[1])switch(v){case 0:w+=" ui-datepicker-group-first",y=" ui-corner-"+(N?"right":"left");break;case L[1]-1:w+=" ui-datepicker-group-last",y=" ui-corner-"+(N?"left":"right");break;default:w+=" ui-datepicker-group-middle",y=""}w+="'>"}for(w+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+y+"'>"+(/all|left/.test(y)&&0===m?N?s:i:"")+(/all|right/.test(y)&&0===m?N?i:s:"")+this._generateMonthYearHeader(t,K,U,j,q,0<m||0<v,l,h)+"</div><table class='ui-datepicker-calendar'><thead><tr>",x=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",g=0;g<7;g++)x+="<th scope='col'"+(5<=(g+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+a[k=(g+n)%7]+"'>"+r[k]+"</span></th>";for(w+=x+"</tr></thead><tbody>",D=this._getDaysInMonth(U,K),U===t.selectedYear&&K===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,D)),C=(this._getFirstDayOfMonth(U,K)-n+7)%7,D=Math.ceil((C+D)/7),I=Y&&this.maxRows>D?this.maxRows:D,this.maxRows=I,T=this._daylightSavingAdjust(new Date(U,K,1-C)),P=0;P<I;P++){for(w+="<tr>",M=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(T)+"</td>":"",g=0;g<7;g++)S=c?c.apply(t.input?t.input[0]:null,[T]):[!0,""],z=(H=T.getMonth()!==K)&&!d||!S[0]||j&&T<j||q&&q<T,M+="<td class='"+(5<=(g+n+6)%7?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(T.getTime()===b.getTime()&&K===t.selectedMonth&&t._keyEvent||p.getTime()===T.getTime()&&p.getTime()===b.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!u?"":" "+S[1]+(T.getTime()===B.getTime()?" "+this._currentClass:"")+(T.getTime()===O.getTime()?" ui-datepicker-today":""))+"'"+(H&&!u||!S[2]?"":" title='"+S[2].replace(/'/g,"&#39;")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+T.getMonth()+"' data-year='"+T.getFullYear()+"'")+">"+(H&&!u?"&#xa0;":z?"<span class='ui-state-default'>"+T.getDate()+"</span>":"<a class='ui-state-default"+(T.getTime()===O.getTime()?" ui-state-highlight":"")+(T.getTime()===B.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#' aria-current='"+(T.getTime()===B.getTime()?"true":"false")+"' data-date='"+T.getDate()+"'>"+T.getDate()+"</a>")+"</td>",T.setDate(T.getDate()+1),T=this._daylightSavingAdjust(T);w+=M+"</tr>"}11<++K&&(K=0,U++),_+=w+="</tbody></table>"+(Y?"</div>"+(0<L[0]&&v===L[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}f+=_}return f+=F,t._keyEvent=!1,f}
vendor: 18,320 bytes, line 11
11,_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var l,h,c,u,d,p,f=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),m=this._get(t,"showMonthAfterYear"),_=this._get(t,"selectMonthLabel"),v=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",y="";if(o||!f)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' aria-label='"+_+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||c<=n.getMonth())&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(m||(b+=y+(!o&&f&&g?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!g)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(a=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),d=(_=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(t)?u:t})(a[0]),p=Math.max(d,_(a[1]||"")),d=s?Math.max(d,s.getFullYear()):d,p=n?Math.min(p,n.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+v+"' data-handler='selectYear' data-event='change'>";d<=p;d++)t.yearshtml+="<option value='"+d+"'"+(d===i?" selected='selected'":"")+">"+d+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),m&&(b+=(!o&&f&&g?"":"&#xa0;")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),e=i&&e<i?i:e;return t&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),n=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(t,n)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=null,o=null,a=this._get(t,"yearRange");return a&&(t=a.split(":"),a=(new Date).getFullYear(),n=parseInt(t[0],10),o=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(n+=a),t[1].match(/[+\-].*/)&&(o+=a)),(!i||e.getTime()>=i.getTime())&&(!s||e.getTime()<=s.getTime())&&(!n||e.getFullYear()>=n)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),V.fn.datepicker=function(t){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this].concat(e)):V.datepicker._attachDatepicker(this,t)})},V.datepicker=new st,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.2";V.datepicker,V.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var rt=!1;V(document).on("mouseup",function(){rt=!1});V.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===V.data(t.target,e.widgetName+".preventClickEvent"))return V.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!rt){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&V(t.target).closest(this.options.cancel).length;return i&&!s&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===V.data(t.target,this.widgetName+".preventClickEvent")&&V.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),rt=!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(V.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&V.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,rt=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),V.ui.plugin={add:function(t,e,i){var s,n=V.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;n<o.length;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},V.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&V(t).trigger("blur")};V.widget("ui.draggable",V.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<V(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=V(this);return V("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=V.ui.safeActiveElement(this.document[0]);V(t.target).closest(e).length||V.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),V.ui.ddmanager&&(V.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===V(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),V.ui.ddmanager&&!e.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),V.ui.ddmanager&&V.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new V.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",V.ui.ddmanager&&V.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return V.ui.ddmanager&&!this.options.dropBehaviour&&(i=V.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?V(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),V.ui.ddmanager&&V.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),V.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new V.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!V(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,i="function"==typeof e.helper,t=i?V(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&V.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,s=this.options,n=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(i=(e=V(s.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e)):this.containment=s.containment:this.containment=[0,0,V(n).width()-this.helperProportions.width-this.margins.left,(V(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[V(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,V(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,V(window).scrollLeft()+V(window).width()-this.helperProportions.width-this.margins.left,V(window).scrollTop()+(V(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,t=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s=this.options,n=this._isRootNode(this.scrollParent[0]),o=t.pageX,a=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(a=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(a=i[3]+this.offset.click.top)),s.grid&&(t=s.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,a=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-s.grid[1]:t+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,o=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-s.grid[0]:t+s.grid[0]),"y"===s.axis&&(o=this.originalPageX),"x"===s.axis&&(a=this.originalPageY)),{top:a
vendor: 6,471 bytes, line 11
11-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,i){return i=i||this._uiHash(),V.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),V.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),V.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=V.extend({},t,{item:i.element});i.sortables=[],V(i.options.connectToSortable).each(function(){var t=V(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(e,t,i){var s=V.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,V.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(i,s,n){V.each(n.sortables,function(){var t=!1,e=this;e.positionAbs=n.positionAbs,e.helperProportions=n.helperProportions,e.offset.click=n.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,V.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,t=this!==e&&this._intersectsWith(this.containerCache)&&V.contains(e.element[0],this.element[0])?!1:t})),t?(e.isOver||(e.isOver=1,n._parent=s.helper.parent(),e.currentItem=s.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return s.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=n.offset.click.top,e.offset.click.left=n.offset.click.left,e.offset.parent.left-=n.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=n.offset.parent.top-e.offset.parent.top,n._trigger("toSortable",i),n.dropped=e.element,V.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,e.fromOutside=n),e.currentItem&&(e._mouseDrag(i),s.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),s.helper.appendTo(n._parent),n._refreshOffsets(i),s.position=n._generatePosition(i,!0),n._trigger("fromSortable",i),n.dropped=!1,V.each(n.sortables,function(){this.refreshPositions()}))})}}),V.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=V("body"),i=i.options;s.css("cursor")&&(i._cursor=s.css("cursor")),s.css("cursor",i.cursor)},stop:function(t,e,i){i=i.options;i._cursor&&V("body").css("cursor",i._cursor)}}),V.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=V(e.helper),i=i.options;e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){i=i.options;i._opacity&&V(e.helper).css("opacity",i._opacity)}}),V.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var s=i.options,n=!1,o=i.scrollParentNotHidden[0],a=i.document[0];o!==a&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY<s.scrollSensitivity?o.scrollTop=n=o.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(o.scrollTop=n=o.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+o.offsetWidth-t.pageX<s.scrollSensitivity?o.scrollLeft=n=o.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(o.scrollLeft=n=o.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-V(a).scrollTop()<s.scrollSensitivity?n=V(a).scrollTop(V(a).scrollTop()-s.scrollSpeed):V(window).height()-(t.pageY-V(a).scrollTop())<s.scrollSensitivity&&(n=V(a).scrollTop(V(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-V(a).scrollLeft()<s.scrollSensitivity?n=V(a).scrollLeft(V(a).scrollLeft()-s.scrollSpeed):V(window).width()-(t.pageX-V(a).scrollLeft())<s.scrollSensitivity&&(n=V(a).scrollLeft(V(a).scrollLeft()+s.scrollSpeed)))),!1!==n&&V.ui.ddmanager&&!s.dropBehaviour&&V.ui.ddmanager.prepareOffsets(i,t)}}),V.ui.plugin.add("draggable","snap",{start:function(t,e,i){var s=i.options;i.snapElements=[],V(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=V(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var s,n,o,a,r,l,h,c,u,d=i.options,p=d.snapTolerance,f=e.offset.left,g=f+i.helperProportions.width,m=e.offset.top,_=m+i.helperProportions.height,v=i.snapElements.length-1;0<=v;v--)l=(r=i.snapElements[v].left-i.margins.left)+i.snapElements[v].width,c=(h=i.snapElements[v].top-i.margins.top)+i.snapElements[v].height,g<r-p||l+p<f||_<h-p||c+p<m||!V.contains(i.snapElements[v].item.ownerDocument,i.snapElements[v].item)?(i.snapElements[v].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,V.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=!1):("inner"!==d.snapMode&&(s=Math.abs(h-_)<=p,n=Math.abs(c-m)<=p,o=Math.abs(r-g)<=p,a=Math.abs(l-f)<=p,s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left),a
vendor: 9,875 bytes, line 11
11&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),u=s||n||o||a,"outer"!==d.snapMode&&(s=Math.abs(h-m)<=p,n=Math.abs(c-_)<=p,o=Math.abs(r-f)<=p,a=Math.abs(l-g)<=p,s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r}).left),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[v].snapping&&(s||n||o||a||u)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,V.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=s||n||o||a||u)}}),V.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,i=i.options,i=V.makeArray(V(i.stack)).sort(function(t,e){return(parseInt(V(t).css("zIndex"),10)||0)-(parseInt(V(e).css("zIndex"),10)||0)});i.length&&(s=parseInt(V(i[0]).css("zIndex"),10)||0,V(i).each(function(t){V(this).css("zIndex",s+t)}),this.css("zIndex",s+i.length))}}),V.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=V(e.helper),i=i.options;e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){i=i.options;i._zIndex&&V(e.helper).css("zIndex",i._zIndex)}});V.ui.draggable;V.widget("ui.resizable",V.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if("hidden"===V(t).css("overflow"))return!1;var i=e&&"left"===e?"scrollLeft":"scrollTop",e=!1;if(0<t[i])return!0;try{t[i]=1,e=0<t[i],t[i]=0}catch(t){}return e},_create:function(){var t,e=this.options,i=this;this._addClass("ui-resizable"),V.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(V("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&V(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();function t(t){V(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var t,e,i,s,n,o=this.options,a=this;if(this.handles=o.handles||(V(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=V(),this._addedHandles=V(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e<i.length;e++)s="ui-resizable-"+(t=String.prototype.trim.call(i[e])),n=V("<div>"),this._addClass(n,"ui-resizable-handle "+s),n.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(t){var e,i,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=V(this.handles[e]),this._on(this.handles[e],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=V(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)(i=V(this.handles[e])[0])!==t.target&&!V.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(e+=V(s.containment).scrollLeft()||0,i+=V(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width(),height:n.height()},this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()},this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=V(".ui-resizable-"+this.axis).css("cursor"),V("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,s=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(e=i.apply(this,[t,s,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),e=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),V.isEmptyObject(e)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n=this.options,o=this;return this._helper&&(s=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,i=e?0:o.sizeDiff.width,e={width:o.helper.width()-i,height:o.helper.height()-s},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,s=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,n.animate||this.element.css(V.extend(e,{top:s,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper&&!n.animate&&this._proportionallyResize()),V("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s=this.options,n={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0};(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,s=n.maxHeight*this.aspectRatio,t=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),i>n.minHeight&&(n.minHeight=i),s<n.maxWidth&&(n.maxWidth=s),t<n.maxHeight&&(n.maxHeight=t)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
vendor: 5,511 bytes, line 11
11=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&i&&(t.top=l-e.minHeight),n&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||V("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return V.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return V.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return V.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return V.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){V.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),V.ui.plugin.add("resizable","animate",{stop:function(e){var i=V(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),o=n&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=n?0:i.sizeDiff.width,n={width:i.size.width-a,height:i.size.height-o},a=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(V.extend(n,o&&a?{top:o,left:a}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&V(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),V.ui.plugin.add("resizable","containment",{start:function(){var i,s,n=V(this).resizable("instance"),t=n.options,e=n.element,o=t.containment,a=o instanceof V?o.get(0):/parent/.test(o)?e.parent().get(0):o;a&&(n.containerElement=V(a),/document/.test(o)||o===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:V(document),left:0,top:0,width:V(document).width(),height:V(document).height()||document.body.parentNode.scrollHeight}):(i=V(a),s=[],V(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=n._num(i.css("padding"+e))}),n.containerOffset=i.offset(),n.containerPosition=i.position(),n.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},t=n.containerOffset,e=n.containerSize.height,o=n.containerSize.width,o=n._hasScroll(a,"left")?a.scrollWidth:o,e=n._hasScroll(a)?a.scrollHeight:e,n.parentData={element:a,left:t.left,top:t.top,width:o,height:e}))},resize:function(t){var e=V(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.position,o=e._aspectRatio||t.shiftKey,a={top:0,left:0}
vendor: 22,744 bytes, line 11
11,r=e.containerElement,t=!0;r[0]!==document&&/static/.test(r.css("position"))&&(a=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-a.left),o&&(e.size.height=e.size.width/e.aspectRatio,t=!1),e.position.left=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),o&&(e.size.width=e.size.height*e.aspectRatio,t=!1),e.position.top=e._helper?s.top:0),i=e.containerElement.get(0)===e.element.parent().get(0),n=/relative|absolute/.test(e.containerElement.css("position")),i&&n?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),n=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-a.left:e.offset.left-s.left)),s=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-a.top:e.offset.top-s.top)),n+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-n,o&&(e.size.height=e.size.width/e.aspectRatio,t=!1)),s+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-s,o&&(e.size.width=e.size.height*e.aspectRatio,t=!1)),t||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=V(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,o=V(t.helper),a=o.offset(),r=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&V(this).css({left:a.left-s.left-i.left,width:r,height:o}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&V(this).css({left:a.left-s.left-i.left,width:r,height:o})}}),V.ui.plugin.add("resizable","alsoResize",{start:function(){var t=V(this).resizable("instance").options;V(t.alsoResize).each(function(){var t=V(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=V(this).resizable("instance"),s=e.options,n=e.originalSize,o=e.originalPosition,a={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};V(s.alsoResize).each(function(){var t=V(this),s=V(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];V.each(e,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){V(this).removeData("ui-resizable-alsoresize")}}),V.ui.plugin.add("resizable","ghost",{start:function(){var t=V(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==V.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=V(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=V(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),V.ui.plugin.add("resizable","grid",{resize:function(){var t,e=V(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,a=e.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=r[0]||1,h=r[1]||1,c=Math.round((s.width-n.width)/l)*l,u=Math.round((s.height-n.height)/h)*h,d=n.width+c,p=n.height+u,f=i.maxWidth&&i.maxWidth<d,g=i.maxHeight&&i.maxHeight<p,m=i.minWidth&&i.minWidth>d,s=i.minHeight&&i.minHeight>p;i.grid=r,m&&(d+=l),s&&(p+=h),f&&(d-=l),g&&(p-=h),/^(se|s|e)$/.test(a)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.top=o.top-u):/^(sw)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.left=o.left-c):((p-h<=0||d-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<p-h?(e.size.height=p,e.position.top=o.top-u):(p=h-t.height,e.size.height=p,e.position.top=o.top+n.height-p),0<d-l?(e.size.width=d,e.position.left=o.left-c):(d=l-t.width,e.size.width=d,e.position.left=o.left+n.width-d))}});V.ui.resizable;V.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=V(this).css(t).offset().top;e<0&&V(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&V.fn.draggable&&this._makeDraggable(),this.options.resizable&&V.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?V(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:V.noop,enable:V.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||V.ui.safeBlur(V.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+V(this).css("z-index")}).get(),s=Math.max.apply(null,s);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=V(V.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=!(t=!(t=!(t=!(t=t||this.element.find("[autofocus]")).length?this.element.find(":tabbable"):t).length?this.uiDialogButtonPane.find(":tabbable"):t).length?this.uiDialogTitlebarClose.filter(":tabbable"):t).length?this.uiDialog:t).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=V.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||V.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=V("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===V.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);var e,i,s;t.keyCode!==V.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.first(),s=e.last(),t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=V("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){V(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=V("<button type='button'></button>").button({label:V("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=V("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=V("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=V("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),V.isEmptyObject(t)||Array.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(V.each(t,function(t,e){var i;e=V.extend({type:"button"},e="function"==typeof e?{click:e,text:t}:e),i=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,V("<button></button>",e).button(t).appendTo(s.uiButtonSet).on("click",function(){i.apply(s.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var n=this,o=this.options;function a(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){n._addClass(V(this),"ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",t,a(e))},drag:function(t,e){n._trigger("drag",t,a(e))},stop:function(t,e){var i=e.offset.left-n.document.scrollLeft(),s=e.offset.top-n.document.scrollTop();o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:n.window},n._removeClass(V(this),"ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",t,a(e))}})},_makeResizable:function(){var n=this,o=this.options,t=o.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function a(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){n._addClass(V(this),"ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",t,a(e))},resize:function(t,e){n._trigger("resize",t,a(e))},stop:function(t,e){var i=n.uiDialog.offset(),s=i.left-n.document.scrollLeft(),i=i.top-n.document.scrollTop();o.height=n.uiDialog.height(),o.width=n.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=s?"+":"")+s+" top"+(0<=i?"+":"")+i,of:n.window},n._removeClass(V(this),"ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",t,a(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=V(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=V.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};V.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,e){var i,s=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:V("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=s.is(":data(ui-draggable)"))&&!e&&s.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((i=s.is(":data(ui-resizable)"))&&!e&&s.resizable("destroy"),i&&"string"==typeof e&&s.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=V(this);return V("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!V(t.target).closest(".ui-dialog").length||!!V(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var i,s;this.options.modal&&(i=V.fn.jquery.substring(0,4),s=!0,this._delay(function(){s=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){var e;s||((e=this._trackingInstances()[0])._allowInteraction(t)||(t.preventDefault(),e._focusTabbable(),"3.4."!==i&&"3.5."!==i||e._delay(e._restoreTabbableFocus)))}.bind(this)),this.overlay=V("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==V.uiBackCompat&&V.widget("ui.dialog",V.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}});V.ui.dialog;function lt(t,e,i){return e<=t&&t<e+i}V.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){V.ui.ddmanager.droppables[t]=V.ui.ddmanager.droppables[t]||[],V.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=V.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept="function"==typeof e?e:function(t){return t.is(e)}:"scope"===t&&(i=V.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=V.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=V.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=V.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=V.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||V.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=V(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&V.ui.intersect(i,V.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(s=!0)}),!s&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),V.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var n=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,a=n+t.helperProportions.width,r=o+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,u=h+e.proportions().height;switch(i){case"fit":return l<=n&&a<=c&&h<=o&&r<=u;case"intersect":return l<n+t.helperProportions.width/2&&a-t.helperProportions.width/2<c&&h<o+t.helperProportions.height/2&&r-t.helperProportions.height/2<u;case"pointer":return lt(s.pageY,h,e.proportions().height)&&lt(s.pageX,l,e.proportions().width);case"touch":return(h<=o&&o<=u||h<=r&&r<=u||o<h&&u<r)&&(l<=n&&n<=c||l<=a&&a<=c||n<l&&c<a);default:return!1}},!(V.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var i,s,n=V.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<n.length;i++)if(!(n[i].options.disabled||t&&!n[i].accept.call(n[i].element[0],t.currentItem||t.element))){for(s=0;s<a.length;s++)if(a[s]===n[i].element[0]){n[i].proportions().height=0;continue t}n[i].visible="none"!==n[i].element.css("display"),n[i].visible&&("mousedown"===o&&n[i]._activate.call(n[i],e),n[i].offset=n[i].element.offset(),n[i].proportions({width:n[i].element[0].offsetWidth,height:n[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return V.each((V.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&V.ui.intersect(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e)))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||V.ui.ddmanager.prepareOffsets(t,e)})},drag:function(n,o){n.options.refreshPositions&&V.ui.ddmanager.prepareOffsets(n,o),V.each(V.ui.ddmanager.droppables[n.options.scope]||[],function(){var t,e,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(i=V.ui.intersect(n,this,this.options.tolerance,o))&&this.isover?"isout":i&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return V(this).droppable("instance").options.scope===e})).length&&((t=V(i[0]).droppable("instance")).greedyChild="isover"===s)),t&&"isover"===s&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,o),t&&"isout"===s&&(t.isout=!1,t.isover=!0,t._over.call(t,o)))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||V.ui.ddmanager.prepareOffsets(t,e)}})!==V.uiBackCompat&&V.widget("ui.droppable",V.ui.droppable,{options:{hoverClass:!1,activeClass:!1}
vendor: 4,941 bytes, line 11
11,_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});V.ui.droppable,V.widget("ui.progressbar",{version:"1.13.2",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=V("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=V("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),V.widget("ui.selectable",V.ui.mouse,{version:"1.13.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var i=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){i.elementPos=V(i.element[0]).offset(),i.selectees=V(i.options.filter,i.element[0]),i._addClass(i.selectees,"ui-selectee"),i.selectees.each(function(){var t=V(this),e=t.offset(),e={left:e.left-i.elementPos.left,top:e.top-i.elementPos.top};V.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=V("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var s=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=V(this.element[0]).offset(),this.options.disabled||(this.selectees=V(t.filter,this.element[0]),this._trigger("start",i),V(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=V.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))}),V(i.target).parents().addBack().each(function(){var t,e=V.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),s._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?s._trigger("selecting",i,{selecting:e.element}):s._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(s){if(this.dragged=!0,!this.options.disabled){var t,n=this,o=this.options,a=this.opos[0],r=this.opos[1],l=s.pageX,h=s.pageY;
vendor: 6,948 bytes, line 11
11return l<a&&(t=l,l=a,a=t),h<r&&(t=h,h=r,r=t),this.helper.css({left:a,top:r,width:l-a,height:h-r}),this.selectees.each(function(){var t=V.data(this,"selectable-item"),e=!1,i={};t&&t.element!==n.element[0]&&(i.left=t.left+n.elementPos.left,i.right=t.right+n.elementPos.left,i.top=t.top+n.elementPos.top,i.bottom=t.bottom+n.elementPos.top,"touch"===o.tolerance?e=!(i.left>l||i.right<a||i.top>h||i.bottom<r):"fit"===o.tolerance&&(e=i.left>a&&i.right<l&&i.top>r&&i.bottom<h),e?(t.selected&&(n._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(n._addClass(t.$element,"ui-selecting"),t.selecting=!0,n._trigger("selecting",s,{selecting:t.element}))):(t.selecting&&((s.metaKey||s.ctrlKey)&&t.startselected?(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,n._addClass(t.$element,"ui-selected"),t.selected=!0):(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),n._trigger("unselecting",s,{unselecting:t.element}))),t.selected&&(s.metaKey||s.ctrlKey||t.startselected||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",s,{unselecting:t.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,V(".ui-unselecting",this.element[0]).each(function(){var t=V.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),V(".ui-selecting",this.element[0]).each(function(){var t=V.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),V.widget("ui.selectmenu",[V.ui.formResetMixin,{version:"1.13.2",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=V()},_drawButton:function(){var t,e=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.trigger("focus"),t.preventDefault()}}),this.element.hide(),this.button=V("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=V("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=V("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=V("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),i._setSelection(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item");null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(V.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=V("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(s,t){var n=this,o="";V.each(t,function(t,e){var i;e.optgroup!==o&&(i=V("<li>",{text:e.optgroup}),n._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(s),o=e.optgroup),n._renderItemData(s,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=V("<li>"),s=V("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(s,e.label),i.append(s).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(s="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")}
vendor: 4,336 bytes, line 11
11,_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(t){this.isOpen&&(V(t.target).closest(".ui-selectmenu-menu, #"+V.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case V.ui.keyCode.TAB:case V.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case V.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case V.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case V.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case V.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case V.ui.keyCode.LEFT:this._move("prev",t);break;case V.ui.keyCode.RIGHT:this._move("next",t);break;case V.ui.keyCode.HOME:case V.ui.keyCode.PAGE_UP:this._move("first",t);break;case V.ui.keyCode.END:case V.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?V(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,s=[];t.each(function(t,e){e.hidden||s.push(i._parseOption(V(e),t))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),V.widget("ui.slider",V.ui.mouse,{version:"1.13.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null}
vendor: 20,223 bytes, line 11
11,numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle"),s=[],n=e.values&&e.values.length||1;for(i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)s.push("<span tabindex='0'></span>");this.handles=i.add(V(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){V(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=V("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,o,e,a,r=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),a={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(a),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-r.values(t));(e<s||s===e&&(t===r._lastChangedValue||r.values(t)===l.min))&&(s=e,n=V(this),o=t)}),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),e=n.offset(),a=!V(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:t.pageX-e.left-n.width()/2,top:t.pageY-e.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return(t=1<t?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),e=this._valueMin()+t*e,this._trimAlignValue(e)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n=this.value(),o=this.values();this._hasMultipleValues()&&(s=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(s,i):Math.max(s,i)),o[e]=i),i!==n&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,s,n;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!Array.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,s=t,n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()},_setOption:function(t,e){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length)return t=this.options.values[t],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(e=this.options.values.slice(),i=0;i<e.length;i+=1)e[i]=this._trimAlignValue(e[i]);return e}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,i=(t-this._valueMin())%e,t=t-i;return 2*Math.abs(i)>=e&&(t+=0<i?e:-e),parseFloat(t.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,s,n,o=this.options.range,a=this.options,r=this,l=!this._animateOff&&a.animate,h={};this._hasMultipleValues()?this.handles.each(function(t){i=(r.values(t)-r._valueMin())/(r._valueMax()-r._valueMin())*100,h["horizontal"===r.orientation?"left":"bottom"]=i+"%",V(this).stop(1,1)[l?"animate":"css"](h,a.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===t&&r.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===t&&r.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(t=this.value(),s=this._valueMin(),n=this._valueMax(),i=n!==s?(t-s)/(n-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,a.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},a.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},a.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},a.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var e,i,s,n=V(t.target).data("ui-slider-handle-index");switch(t.keyCode){case V.ui.keyCode.HOME:case V.ui.keyCode.END:case V.ui.keyCode.PAGE_UP:case V.ui.keyCode.PAGE_DOWN:case V.ui.keyCode.UP:case V.ui.keyCode.RIGHT:case V.ui.keyCode.DOWN:case V.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(V(t.target),null,"ui-state-active"),!1===this._start(t,n)))return}switch(s=this.options.step,e=i=this._hasMultipleValues()?this.values(n):this.value(),t.keyCode){case V.ui.keyCode.HOME:i=this._valueMin();break;case V.ui.keyCode.END:i=this._valueMax();break;case V.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case V.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case V.ui.keyCode.UP:case V.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+s);break;case V.ui.keyCode.DOWN:case V.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-s)}this._slide(t,n,i)},keyup:function(t){var e=V(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(V(t.target),null,"ui-state-active"))}}}),V.widget("ui.sortable",V.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),V.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,n=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),V(t.target).parents().each(function(){if(V.data(this,n.widgetName+"-item")===n)return i=V(this),!1}),!!(i=V.data(t.target,n.widgetName+"-item")===n?V(t.target):i)&&(!(this.options.handle&&!e&&(V(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,e,i){var s,n,o=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=V("parent"!==o.appendTo?o.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},V.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),V.extend(this.offset,{parent:this._getParentOffset()}),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",o.cursor),this.storedStylesheet=V("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(n)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return V.ui.ddmanager&&(V.ui.ddmanager.current=this),V.ui.ddmanager&&!o.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,n,o=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),o.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),V.ui.ddmanager&&!o.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(n=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===n?"next":"prev"]()[0]===s||V.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&V.contains(this.element[0],s))){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),V.ui.ddmanager&&V.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,n,o;if(t)return V.ui.ddmanager&&!this.options.dropBehaviour&&V.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),o={},(n=this.options.axis)&&"x"!==n||(o.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(o.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,V(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new V.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),V.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?V(this.domPosition.prev).after(this.currentItem):V(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},V(t).each(function(){var t=(V(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(V(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||r<s+h&&s+h<l,c="y"===this.options.axis||o<e+c&&e+c<a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h&&c:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&r<s+this.helperProportions.height/2&&n-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this.dragDirection.vertical,t=this.dragDirection.horizontal;return this.floating&&t?"right"===t&&i||"left"===t&&!i:s&&("down"===s&&e||"up"===s
vendor: 4,080 bytes, line 11
11&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,n,o=[],a=[],r=this._connectWith();if(r&&t)for(e=r.length-1;0<=e;e--)for(i=(s=V(r[e],this.document[0])).length-1;0<=i;i--)(n=V.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&a.push(["function"==typeof n.options.items?n.options.items.call(n.element):V(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n]);function l(){o.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):V(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=a.length-1;0<=e;e--)a[e][0].each(l);return V(o)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=V.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,n,o,a,r,l,h=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):V(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(e=u.length-1;0<=e;e--)for(i=(s=V(u[e],this.document[0])).length-1;0<=i;i--)(n=V.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&(c.push(["function"==typeof n.options.items?n.options.items.call(n.element[0],t,{item:this.currentItem}):V(n.options.items,n.element),n]),this.containers.push(n));for(e=c.length-1;0<=e;e--)for(o=c[e][1],l=(a=c[e][i=0]).length;i<l;i++)(r=V(a[i])).data(this.widgetName+"-item",o),h.push({item:r,instance:o,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?V(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,n,o=(i=i||this).options;o.placeholder&&o.placeholder.constructor!==String||(s=o.placeholder,n=i.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var t=V("<"+n+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===n?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),V("<tr>",i.document[0]).appendTo(t)):"tr"===n?i._createTrPlaceholder(i.currentItem,t):"img"===n&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!o.forcePlaceholderSize||(e.height()&&(!o.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()
vendor: 7,741 bytes, line 11
11||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=V(o.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),o.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){V("<td>&#160;</td>",i.document[0]).attr("colspan",V(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,n,o,a,r,l,h,c=null,u=null,d=this.containers.length-1;0<=d;d--)V.contains(this.currentItem[0],this.containers[d].element[0])||(this._intersectsWith(this.containers[d].containerCache)?c&&V.contains(this.containers[d].element[0],c.element[0])||(c=this.containers[d],u=d):this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[u].containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1);else{for(i=1e4,s=null,n=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",h=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)V.contains(this.containers[u].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(a=this.items[e].item.offset()[n],r=!1,t[h]-a>this.items[e][o]/2&&(r=!0),Math.abs(t[h]-a)<i&&(i=Math.abs(t[h]-a),s=this.items[e],this.direction=r?"up":"down"));(s||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[u]?(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[u].element,!0),this._trigger("change",t,this._uiHash()),this.containers[u]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[u],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(t){var e=this.options,t="function"==typeof e.helper?V(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&V.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=V(i.containment)[0],e=V(i.containment).offset(),i="hidden"!==V(t).css("overflow"),this.containment=[e.left+(parseInt(V(t).css("borderLeftWidth"),10)||0)+(parseInt(V(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(V(t).css("borderTopWidth"),10)||0)+(parseInt(V(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(V(t).css("borderLeftWidth"),10)||0)-(parseInt(V(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(V(t).css("borderTopWidth"),10)||0)-(parseInt(V(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(s[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:s.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:s.scrollLeft())*i}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),e.grid&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[
vendor: 4,194 bytes, line 11
110])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0])),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function n(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)e||s.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===V.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||V([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}});function ht(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}V.widget("ui.spinner",{version:"1.13.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var s=this._super(),n=this.element;return V.each(["min","max","step"],function(t,e){var i=n.attr(e);null!=i&&i.length&&(s[e]=i)}),s}
vendor: 5,973 bytes, line 11
11,_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){var i=V.ui.safeActiveElement(this.document[0]);if(this.element[0]===i&&e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function i(){this.element[0]===V.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===V.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,V(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(V(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,V(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,i=V.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return t=null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0,s=t-i;return t=i+Math.round(s/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;if("culture"===t||"numberFormat"===t)return i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i));"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:ht(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:ht(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:ht(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:ht(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:ht(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());ht(this._value).call(this,t)},widget:function(){return this.uiSpinner}}
vendor: 11,349 bytes, line 11
11),!1!==V.uiBackCompat&&V.widget("ui.spinner",V.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});var ct;V.ui.spinner;V.widget("ui.tabs",{version:"1.13.2",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(ct=/#.*$/,function(t){var e=t.href.replace(ct,""),i=location.href.replace(ct,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=V.uniqueSort(t.disabled.concat(V.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=V(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,s=location.hash.substring(1);return null===i&&(s&&this.tabs.each(function(t,e){if(V(e).attr("aria-controls")===s)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):V()}},_tabKeydown:function(t){var e=V(V.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case V.ui.keyCode.RIGHT:case V.ui.keyCode.DOWN:i++;break;case V.ui.keyCode.UP:case V.ui.keyCode.LEFT:s=!1,i--;break;case V.ui.keyCode.END:i=this.anchors.length-1;break;case V.ui.keyCode.HOME:i=0;break;case V.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case V.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,s),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===V.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===V.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===V.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var i=this.tabs.length-1;for(;-1!==V.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"!==t?(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=V.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!V.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=V()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=V()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){V(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){V(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return V("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=V(),this.anchors.each(function(t,e){var i,s,n,o=V(e).uniqueId().attr("id"),a=V(e).closest("li"),r=a.attr("aria-controls");l._isLocal(e)?(n=(i=e.hash).substring(1),s=l.element.find(l._sanitizeSelector(i))):(n=a.attr("aria-controls")||V({}).uniqueId()[0].id,(s=l.element.find(i="#"+n)).length||(s=l._createPanel(n)).insertAfter(l.panels[t-1]||l.tablist),s.attr("aria-live","polite")),s.length&&(l.panels=l.panels.add(s)),r&&a.data("ui-tabs-aria-controls",r),a.attr({"aria-controls":n,"aria-labelledby":o}),s.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return V("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=V(e),!0===t||-1!==V.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&V.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=V(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=V(this).outerHeight(!0)}),this.panels.each(function(){V(this).height(Math.max(0,i-V(this).innerHeight()+V(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,V(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,s=V(t.currentTarget).closest("li"),n=s[0]===i[0],o=n&&e.collapsible,a=o?V():this._getPanelForTab(s),r=i.length?this._getPanelForTab(i):V(),i={oldTab:i,oldPanel:r,newTab:o?V():s,newPanel:a};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||n&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!o&&this.tabs.index(s),this.active=n?V():s,this.xhr&&this.xhr.abort(),r.length||a.length||V.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,s=e.newPanel,n=e.oldPanel;function o(){i.running=!1,i._trigger("activate",t,e)}function a(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&i.options.show?i._show(s,i.options.show,o):(s.show(),o())}this.running=!0,n.length&&this.options.hide?this._hide(n,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n.hide(),a()),n.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&n.length?e.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter(function(){return 0===V(this).attr("tabIndex")}).attr("tabIndex",-1),s.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=!t.length?this.active:t).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:V.noop}))},_findActive:function(t){return!1===t?V():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+V.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){V.data(this,"ui-tabs-destroy")?V(this).remove():V(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=V(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?V.map(t,function(t){return t!==i?t:null}):V.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==V.inArray(t,e))return;e=Array.isArray(e)?V.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,s){t=this._getIndex(t);function n(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(i,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}var o=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),a=this._getPanelForTab(i),r={tab:i,panel:a};this._isLocal(t[0])||(this.xhr=V.ajax(this._ajaxSettings(t,s,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,
vendor: 7,580 bytes, lines 11-27
11i){setTimeout(function(){a.html(t),o._trigger("load",s,r),n(i,e)},1)}).fail(function(t,e){setTimeout(function(){n(t,e)},1)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return n._trigger("beforeLoad",i,V.extend({jqXHR:t,ajaxSettings:e},s))}}},_getPanelForTab:function(t){t=V(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==V.uiBackCompat&&V.widget("ui.tabs",V.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});V.ui.tabs;V.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=V(this).attr("title");return V("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),e=V.inArray(e,i);-1!==e&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=String.prototype.trim.call(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=V("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=V([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&V.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var s=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=V(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=V(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=V([])},open:function(t){var i=this,e=V(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=V(this);e.data("ui-tooltip-open")&&((t=V.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,s=this,n=i?i.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(i,e,t);(t=t.call(e[0],function(t){s._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=n),this._open(i,e,t))})}))&&this._open(i,e,t)},_open:function(t,e,i){var s,n,o,a=V.extend({},this.options.position);function r(t){a.of=t,n.is(":hidden")||n.position(a)}i&&((s=this._find(e))?s.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),s=this._tooltip(e),n=s.tooltip,this._addDescribedBy(e,n.attr("id")),n.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(i=V("<div>").html(n.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),i.removeAttr("id").find("[id]").removeAttr("id"),i.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:r}),r(t)):n.position(V.extend({of:e},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){n.is(":visible")&&(r(a.of),clearInterval(o))},13)),this._trigger("open",t,{tooltip:n})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===V.ui.keyCode.ESCAPE&&((t=V.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){var t=this._find(e);t&&this._removeTooltip(t.tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,s=V(t?t.currentTarget:this.element),n=this._find(s);n?(e=n.tooltip,n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(V(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&V.each(this.parents,function(t,e){V(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding||(n.closing=!1))):s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=V("<div>").attr("role","tooltip"),i=V("<div>").appendTo(e),s=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=!t.length?this.document[0].body:t},_destroy:function(){var s=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],s.close(i,!0),V("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==V.uiBackCompat&&V.widget("ui.tooltip",V.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}});V.ui.tooltip});
12jQuery.noConflict();
13
14/**
15 * jQuery UI Touch Punch 0.3.2
16 *
17 * Copyright 2014, Dzmitry Khadorkin <[email protected]>
18 * Original jquery-ui-touch-punch Copyright 2011-2014, Dave Furfero
19 * Hacked jquery-ui-touch-punch-improved Copyright 2013, Chris Hutchinson
20 * Dual licensed under the MIT or GPL Version 2 licenses.
21 *
22 * Depends:
23 *  jquery.ui.widget.js
24 *  jquery.ui.mouse.js
25 */
26(function(a){"function"===typeof define&&define.amd?define(["jquery"],a):a(jQuery)})(function(a,p){function f(c,f){if(!(!g&&1<c.originalEvent.touches.length||g&&!c.isPrimary)){var b=g?c.originalEvent:c.originalEvent.changedTouches[0],e=document.createEvent("MouseEvents");var d=window.pageXOffset;var l=window.pageYOffset,h=b.clientX;var k=b.clientY;if(0===b.pageY&&Math.floor(k)>Math.floor(b.pageY)||0===b.pageX&&Math.floor(h)>Math.floor(b.pageX))h-=d,k-=l;else if(k<b.pageY-l||h<b.pageX-d)h=b.pageX-
27d,k=b.pageY-l;d=h;a(b.target).is("input")||a(b.target).is("textarea")||a(b.target).is("select")?c.stopPropagation():c.preventDefault();e.initMouseEvent(f,!0,!0,window,1,c.screenX||b.screenX,c.screenY||b.screenY,c.clientX||d,c.clientY||k,!1,!1,
27!1,!1,0,null);c.target.dispatchEvent(e)}}var g=window.navigator.pointerEnabled||window.navigator.msPointerEnabled;a.support.touch="ontouchend"in document||g;if(a.support.touch&&a.ui.mouse){var e=a.ui.mouse.prototype,m=e._mouseInit,n=e._mouseDestroy,d;e._touchStart=function(a){d||!g&&
28!this._mouseCapture(a.originalEvent.changedTouches[0])||(d=!0,this._touchMoved=0,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))};e._touchMove=function(a){d&&(this._touchMoved+=1,f(a,"mousemove"))};e._touchEnd=function(a){d&&(f(a,"mouseup"),f(a,"mouseout"),5>=this._touchMoved&&f(a,"click"),d=!1)};e._mouseInit=function(){this.element.on({touchstart:a.proxy(this,"_touchStart"),touchmove:a.proxy(this,"_touchMove"),touchend:a.proxy(this,"_touchEnd"),pointerDown:a.proxy(this,"_touchStart"),pointerMove:a.proxy(this,
29"_touchMove"),pointerUp:a.proxy(this,"_touchEnd"),MSPointerDown:a.proxy(this,"_touchStart"),MSPointerMove:a.proxy(this,"_touchMove"),MSPointerUp:a.proxy(this,"_touchEnd")});m.call(this)};e._mouseDestroy=function(){this.element.off({touchstart:a.proxy(this,"_touchStart"),touchmove:a.proxy(this,"_touchMove"),touchend:a.proxy(this,"_touchEnd"),pointerDown:a.proxy(this,"_touchStart"),pointerMove:a.proxy(this,"_touchMove"),pointerUp:a.proxy(this,"_touchEnd"),MSPointerDown:a.proxy(this,"_touchStart"),MSPointerMove:a.proxy(this,
30"_touchMove"),MSPointerUp:a.proxy(this,"_touchEnd")});n.call(this)}}});
31
32/*!
33 * jQuery Mobile Events
34 * by Ben Major
35 *
36 * Copyright 2011-2019, Ben Major
37 * Licensed under the MIT License:
38 * 
39 * Permission is hereby granted, free of charge, to any person obtaining a copy
40 * of this software and associated documentation files (the "Software"), to deal
41 * in the Software without restriction, including without limitation the rights
42 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43 * copies of the Software, and to permit persons to whom the Software is
44 * furnished to do so, subject to the following conditions:
45 *
46 * The above copyright notice and this permission notice shall be included in
47 * all copies or substantial portions of the Software.
48 *
49 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
52 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
53 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
54 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
55 * THE SOFTWARE.
56 * 
57 */
58
59"use strict";
60
61(function ($) {
62    $.attrFn = $.attrFn || {};
63
64    var touchCapable  = ('ontouchstart' in window),
65    
66        settings = {
67            tap_pixel_range: 5,
68            swipe_h_threshold: 50,
69            swipe_v_threshold: 50,
70            taphold_threshold: 750,
71            doubletap_int: 500,
72            shake_threshold: 15,
73
74            touch_capable: touchCapable,
75            orientation_support: ('orientation' in window && 'onorientationchange' in window),
76
77            startevent:  (touchCapable) ? 'touchstart' : 'mousedown',
78            endevent:    (touchCapable) ? 'touchend' : 'mouseup',
79            moveevent:   (touchCapable) ? 'touchmove' : 'mousemove',
80            tapevent:    (touchCapable) ? 'tap' : 'click',
81            scrollevent: (touchCapable) ? 'touchmove' : 'scroll',
82
83            hold_timer: null,
84            tap_timer: null
85        };
86    
87    // Declare touch namespace:
88    $.touch = { };
89    
90    // Convenience functions:
91    $.isTouchCapable = function() { return settings.touch_capable; };
92    $.getStartEvent  = function() { return settings.startevent;    };
93    $.getEndEvent    = function() { return settings.endevent;      };
94    $.getMoveEvent   = function() { return settings.moveevent;     };
95    $.getTapEvent    = function() { return settings.tapevent;      };
96    $.getScrollEvent = function() { return settings.scrollevent;   };
97    
98    // SETTERS:
99    // Set the X threshold of swipe events:
100    $.touch.setSwipeThresholdX = function( threshold ) {
101        if( typeof threshold !== 'number' ) { throw new Error('Threshold parameter must be a type of number'); }
102        settings.swipe_h_threshold = threshold;
103    };
104    
105    // Set the Y threshold of swipe events:
106    $.touch.setSwipeThresholdY = function( threshold ) {
107        if( typeof threshold !== 'number' ) { throw new Error('Threshold parameter must be a type of number'); }
108        settings.swipe_v_threshold = threshold;
109    };
110    
111    // Set the double tap interval:
112    $.touch.setDoubleTapInt    = function( interval ) {
113        if( typeof interval !== 'number' ) { throw new Error('Interval parameter must be a type of number'); }
114        settings.doubletap_int = interval;
115    };
116    
117    // Set the taphold threshold:
118    $.touch.setTapHoldThreshold = function( threshold ) {
119        if( typeof threshold !== 'number' ) { throw new Error('Threshold parameter must be a type of number'); }
120        settings.taphold_threshold = threshold;
121    };
122    
123    // Set the pixel range for tapas:
124    $.touch.setTapRange = function( range ) {
125        if( typeof range !== 'number' ) { throw new Error('Ranger parameter must be a type of number'); }
126        settings.tap_pixel_range = threshold;
127    };
128    
129    // Add Event shortcuts:
130    $.each(['tapstart', 'tapend', 'tapmove', 'tap', 'singletap', 'doubletap', 'taphold', 'swipe', 'swipeup', 'swiperight', 'swipedown', 'swipeleft', 'swipeend', 'scrollstart', 'scrollend', 'orientationchange', 'tap2', 'taphold2'], function (i, name) {
131        $.fn[name] = function (fn) {
132            return fn ? this.on(name, fn) : this.trigger(name);
133        };
134
135        $.attrFn[name] = true;
136    });
137
138    // tapstart Event:
139    $.event.special.tapstart = {
140        setup: function () {
141            
142            var thisObject = this,
143                $this = $(thisObject);
144            
145            $this.on(settings.startevent, function tapStartFunc(e) {
146                
147                $this.data('callee', tapStartFunc);
148                if (e.which && e.which !== 1) {
149                    return false;
150                }
151
152                var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
153                var origEvent = e.originalEvent,
154                    touchData = {
155                        'position': {
156                            'x': ((settings.touch_capable) ? origEvent.touches[0].pageX : e.pageX),
157                            'y': (settings.touch_capable) ? origEvent.touches[0].pageY : e.pageY
158                        },
159                        'offset': {
160                            'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
161                            'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
162                        },
163                        'time': Date.now(),
164                        'target': e.target
165                    };
166                
167                triggerCustomEvent(thisObject, 'tapstart', e, touchData);
168                return true;
169            });
170        },
171
172        remove: function () {
173            $(this).off(settings.startevent, $(this).data.callee);
174        }
175    };
176    
177    // tapmove Event:
178    $.event.special.tapmove = {
179        setup: function() {
180            var thisObject = this,
181            $this = $(thisObject);
182                
183            $this.on(settings.moveevent, function tapMoveFunc(e) {
184                $this.data('callee', tapMoveFunc);
185                
186                var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
187                var origEvent = e.originalEvent,
188                    touchData = {
189                        'position': {
190                            'x': ((settings.touch_capable) ? origEvent.touches[0].pageX : e.pageX),
191                            'y': (settings.touch_capable) ? origEvent.touches[0].pageY : e.pageY
192                        },
193                        'offset': {
194                            'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
195                            'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
196                        },
197                        'time': Date.now(),
198                        'target': e.target
199                    };
200                    
201                triggerCustomEvent(thisObject, 'tapmove', e, touchData);
202                return true;
203            });
204        },
205        remove: function() {
206            $(this).off(settings.moveevent, $(this).data.callee);
207        }
208    };
209
210    // tapend Event:
211    $.event.special.tapend = {
212        setup: function () {
213            var thisObject = this,
214                $this = $(thisObject);
215
216            $this.on(settings.endevent, function tapEndFunc(e) {
217                // Touch event data:
218                $this.data('callee', tapEndFunc);
219
220                var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
221                var origEvent = e.originalEvent;
222                var touchData = {
223                    'position': {
224                        'x': (settings.touch_capable) ? origEvent.changedTouches[0].pageX : e.pageX,
225                        'y': (settings.touch_capable) ? origEvent.changedTouches[0].pageY : e.pageY
226                    },
227                    'offset': {
228                        'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
229                        'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
230                    },
231                    'time': Date.now(),
232                    'target': e.target
233                };
234                triggerCustomEvent(thisObject, 'tapend', e, touchData);
235                return true;
236            });
237        },
238        remove: function () {
239            $(this).off(settings.endevent, $(this).data.callee);
240        }
241    };
242
243    // taphold Event:
244    $.event.special.taphold = {
245        setup: function () {
246            var thisObject = this,
247                $this = $(thisObject),
248                origTarget,
249                start_pos = {
250                    x: 0,
251                    y: 0
252                },
253                end_x = 0,
254                end_y = 0;
255
256            $this.on(settings.startevent, function tapHoldFunc1(e) {
257                if (e.which && e.which !== 1) {
258                    return false;
259                } else {
260                    $this.data('tapheld', false);
261                    origTarget = e.target;
262
263                    var origEvent = e.originalEvent;
264                    var start_time = Date.now(),
265                        startPosition = {
266                            'x': (settings.touch_capable) ? origEvent.touches[0].pageX : e.pageX,
267                            'y': (settings.touch_capable) ? origEvent.touches[0].pageY : e.pageY
268                        },
269                        startOffset = {
270                            'x': (settings.touch_capable) ? origEvent.touches[0].pageX - origEvent.touches[0].target.offsetLeft : e.offsetX,
271                            'y': (settings.touch_capable) ? origEvent.touches[0].pageY - origEvent.touches[0].target.offsetTop : e.offsetY
272                        };
273
274                    start_pos.x = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageX : e.pageX;
275                    start_pos.y = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageY : e.pageY;
276
277                    end_x = start_pos.x;
278                    end_y = start_pos.y;
279                    
280                    // Get the element's threshold:
281                    var ele_threshold = ($this.parent().data('threshold')) ? $this.parent().data('threshold') : $this.data('threshold'),
282                        threshold = (typeof ele_threshold !== 'undefined' && ele_threshold !== false && parseInt(ele_threshold)) ? parseInt(ele_threshold) : settings.taphold_threshold; 
283
284                    $this.data('hold_timer', window.setTimeout(function () {
285
286                        var diff_x = (start_pos.x - end_x),
287                            diff_y = (start_pos.y - end_y);
288
289                        if (e.target == origTarget && ((start_pos.x == end_x && start_pos.y == end_y) || (diff_x >= -(settings.tap_pixel_range) && diff_x <= settings.tap_pixel_range && diff_y >= -(settings.tap_pixel_range) && diff_y <= settings.tap_pixel_range))) {
290                            $this.data('tapheld', true);
291
292                            var end_time = Date.now();
293                                
294                            var duration  = end_time - start_time,
295                                touches   = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches : [ e ],
296                                touchData = [ ];
297                            
298                            var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
299                            for( var i = 0; i < touches.length; i++)
300                            {
301                                var touch = {
302                                    'position': {
303                                        'x': (settings.touch_capable) ? origEvent.changedTouches[i].pageX : e.pageX,
304                                        'y': (settings.touch_capable) ? origEvent.changedTouches[i].pageY : e.pageY
305                                    },
306                                    'offset': {
307                                        'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[i].pageX - offset.left) : Math.round(e.pageX - offset.left),
308                                        'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[i].pageY - offset.top) : Math.round(e.pageY - offset.top)
309                                    },
310                                    'time': Date.now(),
311                                    'target': e.target,
312                                    'duration': duration
313                                };
314                                
315                                touchData.push( touch );
316                            }
317                            
318                            var evt_name = ( touches.length == 2 ) ? 'taphold2' : 'taphold';
319                            
320                            $this.data('callee1', tapHoldFunc1);
321                            
322                            triggerCustomEvent(thisObject, evt_name, e, touchData);
323                        }
324                    }, threshold) );
325
326                    return true;
327                }
328            }).on(settings.endevent, function tapHoldFunc2() {
329                $this.data('callee2', tapHoldFunc2);
330                $this.data('tapheld', false);
331                window.clearTimeout( $this.data('hold_timer') );
332            })
333            .on(settings.moveevent, function tapHoldFunc3(e) {
334                $this.data('callee3', tapHoldFunc3);
335                
336                end_x = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageX : e.pageX;
337                end_y = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageY : e.pageY;
338            });
339        },
340
341        remove: function () {
342            $(this).off(settings.startevent, $(this).data.callee1).off(settings.endevent, $(this).data.callee2).off(settings.moveevent, $(this).data.callee3);
343        }
344    };
345
346    // doubletap Event:
347    $.event.special.doubletap = {
348        setup: function () {
349            var thisObject = this,
350                $this = $(thisObject),
351                origTarget,
352                action,
353                firstTap = null,
354                origEvent,
355                cooloff,
356                cooling = false;
357
358            $this.on(settings.startevent, function doubleTapFunc1(e) {
359                if (e.which && e.which !== 1) {
360                    return false;
361                }
362                
363                $this.data('doubletapped', false);
364                origTarget = e.target;
365                $this.data('callee1', doubleTapFunc1);
366
367                origEvent = e.originalEvent;
368                if (!firstTap) {
369                    var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
370                    firstTap = {
371                        'position': {
372                            'x': (settings.touch_capable) ? origEvent.touches[0].pageX : e.pageX,
373                            'y': (settings.touch_capable) ? origEvent.touches[0].pageY : e.pageY
374                        },
375                        'offset': {
376                            'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
377                            'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
378                        },
379                        'time': Date.now(),
380                        'target': e.target,
381                        'element': e.originalEvent.srcElement,
382                        'index':   $(e.target).index()
383                    };
384                }
385
386                return true;
387            }).on(settings.endevent, function doubleTapFunc2(e) {
388                
389                var now = Date.now();
390                var lastTouch = $this.data('lastTouch') || now + 1;
391                var delta = now - lastTouch;
392                window.clearTimeout(action);
393                $this.data('callee2', doubleTapFunc2);
394
395                if (delta < settings.doubletap_int && ($(e.target).index() == firstTap.index) && delta > 100) {
396                    $this.data('doubletapped', true);
397                    window.clearTimeout(settings.tap_timer);
398
399                    // Now get the current event:
400                    var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
401                    var lastTap = {
402                        'position': {
403                            'x': (settings.touch_capable) ? e.originalEvent.changedTouches[0].pageX : e.pageX,
404                            'y': (settings.touch_capable) ? e.originalEvent.changedTouches[0].pageY : e.pageY
405                        },
406                        'offset': {
407                            'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
408                            'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
409                        },
410                        'time': Date.now(),
411                        'target': e.target,
412                        'element': e.originalEvent.srcElement,
413                        'index': $(e.target).index()
414                    };
415
416                    var touchData = {
417                        'firstTap': firstTap,
418                        'secondTap': lastTap,
419                        'interval': lastTap.time - firstTap.time
420                    };
421
422                    if (!cooling) {
423                        triggerCustomEvent(thisObject, 'doubletap', e, touchData);
424                        firstTap = null;
425                    }
426                    
427                    cooling = true;
428                    
429                    cooloff = window.setTimeout(function () {
430                        cooling = false;
431                    }, settings.doubletap_int);
432                    
433                } else {
434                    $this.data('lastTouch', now);
435                    action = window.setTimeout(function () {
436                        firstTap = null;
437                        window.clearTimeout(action);
438                    }, settings.doubletap_int, [e]);
439                }
440                $this.data('lastTouch', now);
441            });
442        },
443        remove: function () {
444            $(this).off(settings.startevent, $(this).data.callee1).off(settings.endevent, $(this).data.callee2);
445        }
446    };
447
448    // singletap Event:
449    // This is used in conjuction with doubletap when both events are needed on the same element
450    $.event.special.singletap = {
451        setup: function () {
452            var thisObject = this,
453                $this = $(thisObject),
454                origTarget = null,
455                startTime = null,
456                start_pos = {
457                    x: 0,
458                    y: 0
459                };
460
461            $this.on(settings.startevent, function singleTapFunc1(e) {
462                if (e.which && e.which !== 1) {
463                    return false;
464                } else {
465                    startTime = Date.now();
466                    origTarget = e.target;
467                    $this.data('callee1', singleTapFunc1);
468
469                    // Get the start x and y position:
470                    start_pos.x = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageX : e.pageX;
471                    start_pos.y = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageY : e.pageY;
472                    
473                    return true;
474                }
475            }).on(settings.endevent, function singleTapFunc2(e) {
476                $this.data('callee2', singleTapFunc2);
477                if (e.target == origTarget) {
478                    
479                    // Get the end point:
480                    var end_pos_x = (e.originalEvent.changedTouches) ? e.originalEvent.changedTouches[0].pageX : e.pageX,
481                        end_pos_y = (e.originalEvent.changedTouches) ? e.originalEvent.changedTouches[0].pageY : e.pageY;
482                    
483                    // We need to check if it was a taphold:
484
485                    settings.tap_timer = window.setTimeout(function () {
486                        
487                        var diff_x = (start_pos.x - end_pos_x), diff_y = (start_pos.y - end_pos_y);
488                        
489                        if(!$this.data('doubletapped') && !$this.data('tapheld') && (((start_pos.x == end_pos_x) && (start_pos.y == end_pos_y)) || (diff_x >= -(settings.tap_pixel_range) && diff_x <= settings.tap_pixel_range && diff_y >= -(settings.tap_pixel_range) && diff_y <= settings.tap_pixel_range))) {
490
491                            var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
492                            var origEvent = e.originalEvent;
493                            var touchData = {
494                                'position': {
495                                    'x': (settings.touch_capable) ? origEvent.changedTouches[0].pageX : e.pageX,
496                                    'y': (settings.touch_capable) ? origEvent.changedTouches[0].pageY : e.pageY
497                                },
498                                'offset': {
499                                    'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
500                                    'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
501                                },
502                                'time': Date.now(),
503                                'target': e.target
504                            };
505                            
506                            // Was it a taphold?
507                            if((touchData.time - startTime) < settings.taphold_threshold)
508                            {
509                                triggerCustomEvent(thisObject, 'singletap', e, touchData);
510                            }
511                        }
512                    }, settings.doubletap_int);
513                }
514            });
515        },
516
517        remove: function () {
518            $(this).off(settings.startevent, $(this).data.callee1).off(settings.endevent, $(this).data.callee2);
519        }
520    };
521
522    // tap Event:
523    $.event.special.tap = {
524        setup: function () {
525            var thisObject = this,
526                $this = $(thisObject),
527                started = false,
528                origTarget = null,
529                start_time,
530                start_pos = {
531                    x: 0,
532                    y: 0
533                },
534                touches;
535
536            $this.on(settings.startevent, function tapFunc1(e) {
537                $this.data('callee1', tapFunc1);
538
539                if( e.which && e.which !== 1 )
540                {
541                    return false;
542                }
543                else
544                {
545                    started = true;
546                    start_pos.x = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageX : e.pageX;
547                    start_pos.y = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageY : e.pageY;
548                    start_time = Date.now();
549                    origTarget = e.target;
550                    
551                    touches = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches : [ e ];
552                    return true;
553                }
554            }).on(settings.endevent, function tapFunc2(e) {
555                $this.data('callee2', tapFunc2);
556
557                // Only trigger if they've started, and the target matches:
558                var end_x = (e.originalEvent.targetTouches) ? e.originalEvent.changedTouches[0].pageX : e.pageX,
559                    end_y = (e.originalEvent.targetTouches) ? e.originalEvent.changedTouches[0].pageY : e.pageY,
560                    diff_x = (start_pos.x - end_x),
561                    diff_y = (start_pos.y - end_y),
562                    eventName;
563                    
564                if (origTarget == e.target && started && ((Date.now() - start_time) < settings.taphold_threshold) && ((start_pos.x == end_x && start_pos.y == end_y) || (diff_x >= -(settings.tap_pixel_range) && diff_x <= settings.tap_pixel_range && diff_y >= -(settings.tap_pixel_range) && diff_y <= settings.tap_pixel_range))) {
565                    var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
566                    var origEvent = e.originalEvent;
567                    var touchData = [ ];
568                    
569                    for( var i = 0; i < touches.length; i++)
570                    {
571                        var touch = {
572                            'position': {
573                                'x': (settings.touch_capable) ? origEvent.changedTouches[i].pageX : e.pageX,
574                                'y': (settings.touch_capable) ? origEvent.changedTouches[i].pageY : e.pageY
575                            },
576                            'offset': {
577                                'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[i].pageX - offset.left) : Math.round(e.pageX - offset.left),
578                                'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[i].pageY - offset.top) : Math.round(e.pageY - offset.top)
579                            },
580                            'time': Date.now(),
581                            'target': e.target
582                        };
583                        
584                        touchData.push( touch );
585                    }
586                    
587                    var evt_name = ( touches.length == 2 ) ? 'tap2' : 'tap';
588                    
589                    triggerCustomEvent(thisObject, evt_name, e, touchData);
590                }
591            });
592        },
593
594        remove: function () {
595            $(this).off(settings.startevent, $(this).data.callee1).off(settings.endevent, $(this).data.callee2);
596        }
597    };
598
599    // swipe Event (also handles swipeup, swiperight, swipedown and swipeleft):
600    $.event.special.swipe = {
601        setup: function () {
602            var thisObject = this,
603                $this = $(thisObject),
604                started = false,
605                hasSwiped = false,
606                originalCoord = {
607                    x: 0,
608                    y: 0
609                },
610                finalCoord = {
611                    x: 0,
612                    y: 0
613                },
614                startEvnt;
615
616            // Screen touched, store the original coordinate
617
618            function touchStart(e) {
619                $this = $(e.currentTarget);
620                $this.data('callee1', touchStart);
621                originalCoord.x = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageX : e.pageX;
622                originalCoord.y = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageY : e.pageY;
623                finalCoord.x = originalCoord.x;
624                finalCoord.y = originalCoord.y;
625                started = true;
626                var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
627                var origEvent = e.originalEvent;
628                // Read event data into our startEvt:
629                startEvnt = {
630                    'position': {
631                        'x': (settings.touch_capable) ? origEvent.touches[0].pageX : e.pageX,
632                        'y': (settings.touch_capable) ? origEvent.touches[0].pageY : e.pageY
633                    },
634                    'offset': {
635                        'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
636                        'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
637                    },
638                    'time': Date.now(),
639                    'target': e.target
640                };
641            }
642
643            // Store coordinates as finger is swiping
644
645            function touchMove(e) {
646                $this = $(e.currentTarget);
647                $this.data('callee2', touchMove);
648                finalCoord.x = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageX : e.pageX;
649                finalCoord.y = (e.originalEvent.targetTouches) ? e.originalEvent.targetTouches[0].pageY : e.pageY;
650
651                var swipedir;
652
653                // We need to check if the element to which the event was bound contains a data-xthreshold | data-vthreshold:
654                var ele_x_threshold = ($this.parent().data('xthreshold')) ? $this.parent().data('xthreshold') : $this.data('xthreshold'),
655                    ele_y_threshold = ($this.parent().data('ythreshold')) ? $this.parent().data('ythreshold') : $this.data('ythreshold'),
656                    h_threshold = (typeof ele_x_threshold !== 'undefined' && ele_x_threshold !== false && parseInt(ele_x_threshold)) ? parseInt(ele_x_threshold) : settings.swipe_h_threshold,
657                    v_threshold = (typeof ele_y_threshold !== 'undefined' && ele_y_threshold !== false && parseInt(ele_y_threshold)) ? parseInt(ele_y_threshold) : settings.swipe_v_threshold; 
658
659                if (Math.abs(finalCoord.x - originalCoord.x) > Math.abs(finalCoord.y - originalCoord.y)) {
660                  if (originalCoord.x < finalCoord.x && (finalCoord.x - originalCoord.x > h_threshold)) {
661                      swipedir = 'swiperight';
662                  }
663                  if (originalCoord.x > finalCoord.x && (originalCoord.x - finalCoord.x > h_threshold)) {
664                      swipedir = 'swipeleft';
665                  }
666                }
667                else {
668                  if (originalCoord.y > finalCoord.y && (originalCoord.y - finalCoord.y > v_threshold)) {
669                      swipedir = 'swipeup';
670                  }
671                  if (originalCoord.y < finalCoord.y && (finalCoord.y - originalCoord.y > v_threshold)) {
672                      swipedir = 'swipedown';
673                  }
674                }
675
676                if (swipedir != undefined && started) {
677                    originalCoord.x = 0;
678                    originalCoord.y = 0;
679                    finalCoord.x = 0;
680                    finalCoord.y = 0;
681                    started = false;
682
683                    // Read event data into our endEvnt:
684                    var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
685                    var origEvent = e.originalEvent;
686                    var endEvnt = {
687                        'position': {
688                            'x': (settings.touch_capable) ? origEvent.touches[0].pageX : e.pageX,
689                            'y': (settings.touch_capable) ? origEvent.touches[0].pageY : e.pageY
690                        },
691                        'offset': {
692                            'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
693                            'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
694                        },
695                        'time': Date.now(),
696                        'target': e.target
697                    };
698
699                    // Calculate the swipe amount (normalized):
700                    var xAmount = Math.abs(startEvnt.position.x - endEvnt.position.x),
701                        yAmount = Math.abs(startEvnt.position.y - endEvnt.position.y);
702
703                    var touchData = {
704                        'startEvnt': startEvnt,
705                        'endEvnt': endEvnt,
706                        'direction': swipedir.replace('swipe', ''),
707                        'xAmount': xAmount,
708                        'yAmount': yAmount,
709                        'duration': endEvnt.time - startEvnt.time
710                    };
711                    hasSwiped = true;
712                    $this.trigger('swipe', touchData).trigger(swipedir, touchData);
713                }
714            }
715
716            function touchEnd(e) {
717                $this = $(e.currentTarget);
718                var swipedir = "";
719                $this.data('callee3', touchEnd);
720                if (hasSwiped) {
721                    // We need to check if the element to which the event was bound contains a data-xthreshold | data-vthreshold:
722                    var ele_x_threshold = $this.data('xthreshold'),
723                        ele_y_threshold = $this.data('ythreshold'),
724                        h_threshold = (typeof ele_x_threshold !== 'undefined' && ele_x_threshold !== false && parseInt(ele_x_threshold)) ? parseInt(ele_x_threshold) : settings.swipe_h_threshold,
725                        v_threshold = (typeof ele_y_threshold !== 'undefined' && ele_y_threshold !== false && parseInt(ele_y_threshold)) ? parseInt(ele_y_threshold) : settings.swipe_v_threshold;
726
727                    var offset = ($this.get(0) !== window && $this.get(0) !== document) ? $this.offset() : { left: 0, top: 0 };
728                    var origEvent = e.originalEvent;
729                    var endEvnt = {
730                        'position': {
731                            'x': (settings.touch_capable) ? origEvent.changedTouches[0].pageX : e.pageX,
732                            'y': (settings.touch_capable) ? origEvent.changedTouches[0].pageY : e.pageY
733                        },
734                        'offset': {
735                            'x': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageX - offset.left) : Math.round(e.pageX - offset.left),
736                            'y': (settings.touch_capable) ? Math.round(origEvent.changedTouches[0].pageY - offset.top) : Math.round(e.pageY - offset.top)
737                        },
738                        'time': Date.now(),
739                        'target': e.target
740                    };
741
742                    // Calculate the swipe amount (normalized):
743                    var xAmount = Math.abs(startEvnt.position.x - endEvnt.position.x),
744                        yAmount = Math.abs(startEvnt.position.y - endEvnt.position.y);
745
746                    // Read event data into our endEvnt:
747                    if (xAmount > yAmount) {
748                      if (startEvnt.position.x < endEvnt.position.x && (endEvnt.position.x - startEvnt.position.x > h_threshold)) {
749                          swipedir = 'swiperight';
750                      }
751                      if (startEvnt.position.x > endEvnt.position.x && (startEvnt.position.x - endEvnt.position.x > h_threshold)) {
752                          swipedir = 'swipeleft';
753                      }
754                    }
755                    else {
756                      if (startEvnt.position.y > endEvnt.position.y && (startEvnt.position.y - endEvnt.position.y > v_threshold)) {
757                          swipedir = 'swipeup';
758                      }
759                      if (startEvnt.position.y < endEvnt.position.y && (endEvnt.position.y - startEvnt.position.y > v_threshold)) {
760                          swipedir = 'swipedown';
761                      }
762                    }
763
764                    var touchData = {
765                        'startEvnt': startEvnt,
766                        'endEvnt': endEvnt,
767                        'direction': swipedir.replace('swipe', ''),
768                        'xAmount': xAmount,
769                        'yAmount': yAmount,
770                        'duration': endEvnt.time - startEvnt.time
771                    };
772                    $this.trigger('swipeend', touchData);
773                }
774
775                started = false;
776                hasSwiped = false;
777            }
778
779            $this.on(settings.startevent, touchStart);
780            $this.on(settings.moveevent, touchMove);
781            $this.on(settings.endevent, touchEnd);
782        },
783
784        remove: function () {
785            $(this).off(settings.startevent, $(this).data.callee1).off(settings.moveevent, $(this).data.callee2).off(settings.endevent, $(this).data.callee3);
786        }
787    };
788
789    // scrollstart Event (also handles scrollend):
790    $.event.special.scrollstart = {
791        setup: function () {
792            var thisObject = this,
793                $this = $(thisObject),
794                scrolling,
795                timer;
796
797            function trigger(event, state) {
798                scrolling = state;
799                triggerCustomEvent(thisObject, scrolling ? 'scrollstart' : 'scrollend', event);
800            }
801
802            // iPhone triggers scroll after a small delay; use touchmove instead
803            $this.on(settings.scrollevent, function scrollFunc(event) {
804                $this.data('callee', scrollFunc);
805
806                if (!scrolling) {
807                    trigger(event, true);
808                }
809
810                clearTimeout(timer);
811                timer = setTimeout(function () {
812                    trigger(event, false);
813                }, 50);
814            });
815        },
816
817        remove: function () {
818            $(this).off(settings.scrollevent, $(this).data.callee);
819        }
820    };
821
822    // This is the orientation change (largely borrowed from jQuery Mobile):
823    var win = $(window),
824        special_event,
825        get_orientation,
826        last_orientation,
827        initial_orientation_is_landscape,
828        initial_orientation_is_default,
829        portrait_map = {
830            '0': true,
831            '180': true
832        };
833
834    if (settings.orientation_support) {
835        var ww = window.innerWidth || win.width(),
836            wh = window.innerHeight || win.height(),
837            landscape_threshold = 50;
838
839        initial_orientation_is_landscape = ww > wh && (ww - wh) > landscape_threshold;
840        initial_orientation_is_default = portrait_map[window.orientation];
841
842        if ((initial_orientation_is_landscape && initial_orientation_is_default) || (!initial_orientation_is_landscape && !initial_orientation_is_default)) {
843            portrait_map = {
844                '-90': true,
845                '90': true
846            };
847        }
848    }
849
850    $.event.special.orientationchange = special_event = {
851        setup: function () {
852            // If the event is supported natively, return false so that jQuery
853            // will on to the event using DOM methods.
854            if (settings.orientation_support) {
855                return false;
856            }
857
858            // Get the current orientation to avoid initial double-triggering.
859            last_orientation = get_orientation();
860
861            win.on('throttledresize', handler);
862            return true;
863        },
864        teardown: function () {
865            if (settings.orientation_support) {
866                return false;
867            }
868
869            win.off('throttledresize', handler);
870            return true;
871        },
872        add: function (handleObj) {
873            // Save a reference to the bound event handler.
874            var old_handler = handleObj.handler;
875
876            handleObj.handler = function (event) {
877                event.orientation = get_orientation();
878                return old_handler.apply(this, arguments);
879            };
880        }
881    };
882
883    // If the event is not supported natively, this handler will be bound to
884    // the window resize event to simulate the orientationchange event.
885
886    function handler() {
887        // Get the current orientation.
888        var orientation = get_orientation();
889
890        if (orientation !== last_orientation) {
891            // The orientation has changed, so trigger the orientationchange event.
892            last_orientation = orientation;
893            win.trigger("orientationchange");
894        }
895    }
896
897    $.event.special.orientationchange.orientation = get_orientation = function () {
898        var isPortrait = true,
899            elem = document.documentElement;
900
901        if (settings.orientation_support) {
902            isPortrait = portrait_map[window.orientation];
903        } else {
904            isPortrait = elem && elem.clientWidth / elem.clientHeight < 1.1;
905        }
906
907        return isPortrait ? 'portrait' : 'landscape';
908    };
909
910    // throttle Handler:
911    $.event.special.throttledresize = {
912        setup: function () {
913            $(this).on('resize', throttle_handler);
914        },
915        teardown: function () {
916            $(this).off('resize', throttle_handler);
917        }
918    };
919
920    var throttle = 250,
921        throttle_handler = function () {
922            curr = Date.now();
923            diff = curr - lastCall;
924
925            if (diff >= throttle) {
926                lastCall = curr;
927                $(this).trigger('throttledresize');
928
929            } else {
930                if (heldCall) {
931                    window.clearTimeout(heldCall);
932                }
933
934                // Promise a held call will still execute
935                heldCall = window.setTimeout(handler, throttle - diff);
936            }
937        },
938        lastCall = 0,
939        heldCall,
940        curr,
941        diff;
942
943    // Trigger a custom event:
944
945    function triggerCustomEvent(obj, eventType, event, touchData) {
946        var originalType = event.type;
947        event.type = eventType;
948
949        $.event.dispatch.call(obj, event, touchData);
950        event.type = originalType;
951    }
952
953    // Correctly on anything we've overloaded:
954    $.each({
955        scrollend: 'scrollstart',
956        swipeup: 'swipe',
957        swiperight: 'swipe',
958        swipedown: 'swipe',
959        swipeleft: 'swipe',
960        swipeend: 'swipe',
961        tap2:     'tap',
962        taphold2: 'taphold'
963    }, function (e, srcE) {
964        $.event.special[e] = {
965            setup: function () {
966                $(this).on(srcE, $.noop);
967            }
968        };
969    });
970
971}(jQuery));
972
973(function(k){function t(a){a.debug&&(g("callbackIfComplete()"),g("totalFiles: "+a.totalFiles),g("filesLoaded: "+a.filesLoaded));a.async&&a.filesLoaded===a.totalFiles&&a.callback&&a.callback()}function n(a,d){d.debug&&g("loadAndParseFiles");null!==a&&0<a.length?u(a[0],d,function(){a.shift();n(a,d)}):t(d)}function u(a,d,b){d.debug&&(g("loadAndParseFile('"+a+"')"),g("totalFiles: "+d.totalFiles),g("filesLoaded: "+d.filesLoaded));null!==a&&"undefined"!==typeof a&&k.ajax({url:a,async:d.async,cache:d.cache,
974dataType:"text",success:function(h,c){d.debug&&(g("Succeeded in downloading "+a+"."),g(h));v(h,d);b()},error:function(h,c,e){d.debug&&g("Failed to download or parse "+a+". errorThrown: "+e);404===h.status&&--d.totalFiles;b()}})}function v(a,d){var b="",h=a.split(/\n/),c=/(\{\d+})/g,e=/\{(\d+)}/g,g=/(\\u.{4})/ig;h.forEach(function(a,w){a=a.trim();if(0<a.length&&"#"!=a.match("^#")){var l=a.split("=");if(0<l.length){for(var m=decodeURI(l[0]).trim(),f=1==l.length?"":l[1];"\\"===f.match(/\\$/);)f=f.substring(0,
975f.length-1),f+=h[++w].trimRight();for(var p=2;p<l.length;p++)f+="="+l[p];f=f.trim();if("map"==d.mode||"both"==d.mode)(l=f.match(g))&&l.forEach(function(a){f=f.replace(a,x(a))}),k.i18n.map[m]=f;if("vars"==d.mode||"both"==d.mode)if(f=f.replace(/"/g,'\\"'),y(m),c.test(f)){var n=!0,q="",r=[];f.split(c).forEach(function(a){!c.test(a)||0!==r.length&&-1!=r.indexOf(a)||(n||(q+=","),q+=a.replace(e,"v$1"),r.push(a),n=!1)});b+=m+"=function("+q+"){";m='"'+f.replace(e,'"+v$1+"')+'"';b+="return "+m+";};"}else b+=
976m+'="'+f+'";'}}});eval(b);d.filesLoaded+=1}function y(a){if(/\./.test(a)){var d="";a.split(/\./).forEach(function(a,h){0<h&&(d+=".");d+=a;eval("typeof "+d+' == "undefined"')&&eval(d+"={};")})}}function x(a){var d=[];a=parseInt(a.substr(2),16);0<=a&&a<Math.pow(2,16)&&d.push(a);return d.reduce(function(a,d){return a+String.fromCharCode(d)},"")}k.i18n={};k.i18n.map={};var g=function(a){window.console&&console.log("i18n::"+a)};k.i18n.properties=function(a){a=k.extend({name:"Messages",language:"",path:"",
977mode:"vars",cache:!1,debug:!1,encoding:"UTF-8",async:!1,callback:null},a);a.path.match(/\/$/)||(a.path+="/");a.language=this.normaliseLanguageCode(a.language);var d=a.name&&a.name.constructor===Array?a.name:[a.name];a.totalFiles=2*d.length+(5<=a.language.length?d.length:0);a.debug&&g("totalFiles: "+a.totalFiles);a.filesLoaded=0;d.forEach(function(b){var d=a.path+b+".properties";var c=a.language.substring(0,2);c=a.path+b+"_"+c+".properties";if(5<=a.language.length){var e=a.language.substring(0,5);
978b=a.path+b+"_"+e+".properties";d=[d,c,b]}else d=[d,c];n(d,a)});a.callback&&!a.async&&a.callback()};k.i18n.prop=function(a){var d,b=k.i18n.map[a];if(null===b)return"["+a+"]";var h;2==arguments.length&&k.isArray(arguments[1])&&(h=arguments[1]);var c;if("string"==typeof b){for(c=0;-1!=(c=b.indexOf("\\",c));)b="t"==b.charAt(c+1)?b.substring(0,c)+"\t"+b.substring(c++ +2):"r"==b.charAt(c+1)?b.substring(0,c)+"\r"+b.substring(c++ +2):"n"==b.charAt(c+1)?b.substring(0,c)+"\n"+b.
978substring(c++ +2):"f"==b.charAt(c+
9791)?b.substring(0,c)+"\f"+b.substring(c++ +2):"\\"==b.charAt(c+1)?b.substring(0,c)+"\\"+b.substring(c++ +2):b.substring(0,c)+b.substring(c+1);var e=[];for(c=0;c<b.length;)if("'"==b.charAt(c))if(c==b.length-1)b=b.substring(0,c);else if("'"==b.charAt(c+1))b=b.substring(0,c)+b.substring(++c);else{for(d=c+2;-1!=(d=b.indexOf("'",d));)if(d==b.length-1||"'"!=b.charAt(d+1)){b=b.substring(0,c)+b.substring(c+1,d)+b.substring(d+1);c=d-1;break}else b=b.substring(0,d)+b.substring(++d);-1==d&&(b=b.substring(0,c)+
980b.substring(c+1))}else if("{"==b.charAt(c))if(d=b.indexOf("}",c+1),-1==d)c++;else{var g=parseInt(b.substring(c+1,d));!isNaN(g)&&0<=g?(c=b.substring(0,c),""!==c&&e.push(c),e.push(g),c=0,b=b.substring(d+1)):c=d+1}else c++;""!==b&&e.push(b);b=e;k.i18n.map[a]=e}if(0===b.length)return"";if(1==b.length&&"string"==typeof b[0])return b[0];e="";c=0;for(d=b.length;c<d;c++)e="string"==typeof b[c]?e+b[c]:h&&b[c]<h.length?e+h[b[c]]:!h&&b[c]+1<arguments.length?e+arguments[b[c]+1]:e+("{"+b[c]+"}");return e};k.i18n.normaliseLanguageCode=
981function(a){if(!a||2>a.length)a=navigator.languages&&0<navigator.languages.length?navigator.languages[0]:navigator.language||navigator.userLanguage||"en";a=a.toLowerCase();a=a.replace(/-/,"_");3<a.length&&(a=a.substring(0,3)+a.substring(3).toUpperCase());return a}})(jQuery);
982
983(function(e,a){"function"===typeof define&&define.amd?define([],a):"object"===typeof module&&module.exports?module.exports=a():e.NLightbox=a()})(this,function(){function e(a){this.init.apply(this,arguments)}jQuery.extend(e.prototype,{settings:{duration:3E3,loop:!1,autostart:!1,thumbnails:!0,download:!0,description:!0,buttons:!0,close:!0,closeIn:!1,closeColor:"",svgNext:'<svg width="32px" height="32px" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M322.7,128.4L423,233.4c6,5.8,9,13.7,9,22.4c0,8.7-3,16.5-9,22.4L322.7,383.6c-11.9,12.5-31.3,12.5-43.2,0  c-11.9-12.5-11.9-32.7,0-45.2l48.2-50.4h-217C93.7,288,80,273.7,80,256c0-17.7,13.7-32,30.6-32h217l-48.2-50.4  c-11.9-12.5-11.9-32.7,0-45.2C291.4,115.9,310.7,115.9,322.7,128.4z"/></svg>',
984svgBack:'<svg width="32px" height="32px" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M189.3,128.4L89,233.4c-6,5.8-9,13.7-9,22.4c0,8.7,3,16.5,9,22.4l100.3,105.4c11.9,12.5,31.3,12.5,43.2,0  c11.9-12.5,11.9-32.7,0-45.2L184.4,288h217c16.9,0,30.6-14.3,30.6-32c0-17.7-13.7-32-30.6-32h-217l48.2-50.4  c11.9-12.5,11.9-32.7,0-45.2C220.6,115.9,201.3,115.9,189.3,128.4z"/></svg>',svgStart:'<svg width="20px" height="20px" version="1.1" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><path d="M107.574,55.165L38.623,15.364C37.044,14.452,35.287,14,33.524,14c-1.762,0-3.519,0.453-5.096,1.365  c-3.157,1.82-5.098,5.186-5.098,8.831v79.611c0,3.644,1.94,7.008,5.098,8.83c1.577,0.912,3.334,1.363,5.096,1.363  c1.763,0,3.52-0.451,5.099-1.363l68.951-39.811c3.153-1.822,5.095-5.186,5.095-8.832C112.669,60.351,110.728,56.987,107.574,55.165z" /></svg>',
985svgStop:'<svg version="1.1" width="20px" height="20px" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g><path d="M39.806,72.858h-8.915c-2.176,0-3.94-1.764-3.94-3.94V31.119c0-2.176,1.764-3.94,3.94-3.94h8.915   c2.176,0,3.94,1.764,3.94,3.94v37.799C43.746,71.094,41.982,72.858,39.806,72.858z"/><path d="M68.109,72.821h-8.915c-2.176,0-3.94-1.764-3.94-3.94V31.082c0-2.176,1.764-3.94,3.94-3.94h8.915   c2.176,0,3.94,1.764,3.94,3.94v37.799C72.049,71.057,70.285,72.821,68.109,72.821z"/><path d="M40.489,27.248c0.769,0.719,1.257,1.735,1.257,2.871v37.799c0,2.176-1.764,3.94-3.94,3.94h-8.915   c-0.234,0-0.46-0.03-0.683-0.069c0.704,0.658,1.643,1.069,2.683,1.069h8.915c2.176,0,3.94-1.764,3.94-3.94V31.119   C43.746,29.177,42.338,27.573,40.489,27.248z"/><path d="M68.792,27.211c0.769,0.719,1.257,1.735,1.257,2.871v37.799c0,2.176-1.764,3.94-3.94,3.94h-8.915   c-0.234,0-0.46-0.03-0.683-0.069c0.704,0.658,1.643,1.069,2.683,1.069h8.915c2.176,0,3.94-1.764,3.94-3.94V31.082   C72.049,29.14,70.641,27.535,68.792,27.211z"/><path d="M39.806,72.858h-8.915c-2.176,0-3.94-1.764-3.94-3.94V31.119   c0-2.176,1.764-3.94,3.94-3.94h8.915c2.176,0,3.94,1.764,3.94,3.94v37.799C43.746,71.094,41.982,72.858,39.806,72.858z"/><path d="M68.109,72.821h-8.915c-2.176,0-3.94-1.764-3.94-3.94V31.082   c0-2.176,1.764-3.94,3.94-3.94h8.915c2.176,0,3.94,1.764,3.94,3.94v37.799C72.049,71.057,70.285,72.821,68.109,72.821z"/></g></svg>',
986svgDownload:'<svg width="20px" height="20px" viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><g><path d="M90,54a5.9966,5.9966,0,0,0-6,6V78H12V60A6,6,0,0,0,0,60V84a5.9966,5.9966,0,0,0,6,6H90a5.9966,5.9966,0,0,0,6-6V60A5.9966,5.9966,0,0,0,90,54Z"/><path d="M43.7578,64.2422a5.9979,5.9979,0,0,0,8.4844,0l18-18a5.9994,5.9994,0,0,0-8.4844-8.4844L54,45.5156V12a6,6,0,0,0-12,0V45.5156l-7.7578-7.7578a5.9994,5.9994,0,0,0-8.4844,8.4844Z"/></g></svg>',svgGallery:'<svg width="20px" height="20px" version="1.1" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><rect height="12" width="12"/><rect height="12" width="12" x="18"/><rect height="12" width="12" x="36"/><rect height="12" width="12" y="18"/><rect height="12" width="12" x="18" y="18"/><rect height="12" width="12" x="36" y="18"/><rect height="12" width="12" y="36"/><rect height="12" width="12" x="18" y="36"/><rect height="12" width="12" x="36" y="36"/></g></svg>',
987svgClose:'<svg width="20px" height="20px" version="1.1" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5  c-14.1-14.1-36.8-14.1-50.9,0c-14.1,14.1-14.1,36.8,0,50.9L205.1,256L74.5,386.6c-14.1,14.1-14.1,36.8,0,50.9  c14.1,14.1,36.8,14.1,50.9,0L256,306.9l130.6,130.6c14.1,14.1,36.8,14.1,50.9,0C451.5,423.4,451.5,400.6,437.5,386.6z"/></svg>',accessbilityId:null,eventOpen:null,eventClose:null},
988index:0,items:[],images:!1,interval:null,init:function(a){var b=this;b.index=0;b.items=[];b.interval=null;b.options=jQuery.extend({},b.settings,a);b.options.closeIn&&(b.options.close=!1);a._items&&(b.images=!0,a._items.each(function(f){b.items.push({type:"image",uri:jQuery(this).attr("href"),title:jQuery("img",jQuery(this)).attr("title"),alt:jQuery("img",jQuery(this)).attr("alt"),description:jQuery("img",jQuery(this)).data("description"),copyright:jQuery("img",jQuery(this)).data("c
988opyright")});jQuery(this).on("click",
989function(g){b.item(f);b.options.autostart&&b.slideshow();g.preventDefault()})}));if(a.items){b.images=!0;for(var d=a.items.length,c=0;c<d;c++)if(a.items[c].image)b.items.push({type:"image",uri:a.items[c].image,title:a.items[c].title?a.items[c].title:"",alt:a.items[c].alt?a.items[c].alt:"",description:a.items[c].description?a.items[c].description:"",copyright:a.items[c].copyright?a.items[c].copyright:"",loaded:a.items[c].loaded&&"function"==typeof a.items[c].loaded?a.items[c].loaded:null,removed:a.items[c].removed&&
990"function"==typeof a.items[c].removed?a.items[c].removed:null});else if(a.items[c].html||a.items[c].uri)b.images=!1,b.items.push({type:a.items[c].uri?"uri":"html",uri:a.items[c].uri?a.items[c].uri:"",html:a.items[c].html?a.items[c].html:"",width:a.items[c].width?a.items[c].width:"",height:a.items[c].height?a.items[c].height:"",minWidth:a.items[c].minWidth?a.items[c].minWidth:"",minHeight:a.items[c].minHeight?a.items[c].minHeight:"",maxWidth:a.items[c].maxWidth?a.items[c].maxWidth:"",maxHeight:a.items[c].maxHeight?
991a.items[c].maxHeight:"",loaded:a.items[c].loaded&&"function"==typeof a.items[c].loaded?a.items[c].loaded:null,removed:a.items[c].removed&&"function"==typeof a.items[c].removed?a.items[c].removed:null})}b.images||(a.thumbnails=!1)},navigation:function(){var a=this;jQuery(".nlightbox-item").on("click","img",function(b){a.next();a.slideshow(!0);b.stopPropagation()});jQuery(".nlightbox-item").on("swipeleft",function(){a.slideshow(!0);a.next()});jQuery(".nlightbox-item").on("swiperight",function(){a.slideshow(!0);
992a.prev()});a.options.buttons&&(jQuery(".nlightbox-next").html('<p><a href="javascript:void(0)" role="button" title="Vor">'+a.options.svgNext+"</a></p>"),jQuery(".nlightbox-prev").html('<p><a href="javascript:void(0)" role="button" title="Zur\u00fcck">'+a.options.svgBack+"</a></p>"),jQuery(".nlightbox-next a").on("click",function(b){a.slideshow(!0);a.next();b.preventDefault();b.stopPropagation()}),jQuery(".nlightbox-prev a").on("click",function(b){a.slideshow(!0);a.prev();b.preventDefault();b.stopPropagation()}))},
993slideshow:function(a){var b=this;if(a||b.interval)b.interval&&(window.clearInterval(b.interval),b.interval=null,jQuery(".nlightbox-slideshow-start").show(),jQuery(".nlightbox-slideshow-stop").hide());else{var d=0;b.interval=window.setInterval(function(){d++;d<b.items.length?b.next():0==b.options.loop?b.slideshow(!0):b.next()},b.options.duration);jQuery(".nlightbox-slideshow-start").hide();jQuery(".nlightbox-slideshow-stop").show()}},gallery:function(){var a=this;if(0<jQuery(".nlightbox-thumbnails").length&&
9940==jQuery(".nlightbox-thumbnails img").length){for(var b=a.items.length,d="",c=0;c<b;c++)d+='<a href="javascript:void(0)" style="background-image:url('+a.items[c].uri+')" data-index="'+c+'" title="'+a.items[c].title+'">&nbsp;</a>';jQuery(".nlightbox-thumbnails").html('<div class="nlightbox-thumbnails-images">'+d+'<div class="nlightbox-thumbnails-clear"></div></div>');jQuery(".nlightbox-thumbnails a").on("click",function(f){a.slideshow(!0);a.item(jQuery(this).data("index"));f.preventDefault();f.stopPropagation()});
995jQuery('.nlightbox-thumbnails a[data-index="'+a.index+'"]').addClass("nlightbox-thumbnails-active");a.scroll()}},lightbox:function(){var a=this,b=a.items.length;if(0==jQuery(".nlightbox").length){var d="";d=a.options.accessbilityId?d+('<dialog class="nlightbox" id="nl-'+a.options.accessbilityId+'"'):d+'<div class="nlightbox"';d+='><div class="nlightbox-overlay"></div><div class="nlightbox-preload"></div><div class="nlightbox-stage"><div class="nlightbox-last"></div><div class="nlightbox-item"></div><div class="nlightbox-caption"><div class="nlightbox-caption-content"></div></div><div class="nlightbox-count"></div><div class="nlightbox-tools"></div>';
996a.options.buttons&&(d+='<div class="nlightbox-prev"></div><div class="nlightbox-next"></div>');d+="</div>";a.images&&a.options.thumbnails&&(d+='<div class="nlightbox-thumbnails"></div>');d=a.options.accessbilityId?d+"</dialog>":d+"</div>";jQuery("body").append(d);jQuery("body").addClass("nlightbox-open");"function"==typeof a.options.eventOpen&&a.options.eventOpen&&a.options.eventOpen();a.options.accessbilityId&&0<jQuery("#nl-"+a.options.accessbilityId).length?document.getElementById("nl-"+a.options.accessbilityId).showModal():
997jQuery(".nlightbox").fadeIn(200);jQuery(".nlightbox").on("click",function(c){c.target&&(jQuery(c.target).hasClass("nlightbox-item")||jQuery(c.target).hasClass("nlightbox-caption")||jQuery(c.target).hasClass("nlightbox-caption-content"))&&(a.close(),c.preventDefault(),c.stopPropagation())});jQuery(document).on("keyup",jQuery.proxy(a.keyboard,a));1<b&&(jQuery(window).on("wheel",jQuery.proxy(a.wheel,a)),a.navigation());d="";1<b&&(d+='<a href="javascript:void(0)" class="nlightbox-slideshow-start" role="button" title="Slideshow starten">'+
998a.options.svgStart+"</a>",d+='<a href="javascript:void(0)" class="nlightbox-slideshow-stop" role="button" title="Slideshow stoppen">'+a.options.svgStop+"</a>");a.options.download&&(d+='<a href="javascript:void(0)" class="nlightbox-download" role="button" title="Bild in Orginalgr\u00f6\u00dfe anzeigen">'+a.options.svgDownload+"</a>");a.images&&a.options.thumbnails&&1<b&&(d+='<a href="javascript:void(0)" class="nlightbox-gallery" role="button" title="\u00dcbersicht anzeigen">'+a.options.svgGallery+
999"</a>");a.options.close&&(d+='<a href="javascript:void(0)" class="nlightbox-close" role="button" title="Schlie\u00dfen">'+a.options.svgClose+"</a>");jQuery(".nlightbox-tools").html(d);jQuery(".nlightbox-slideshow-start").on("click",function(c){a.slideshow();c.preventDefault();c.stopPropagation()});jQuery(".nlightbox-slideshow-stop").on("click",function(c){a.slideshow(!0);c.preventDefault();c.stopPropagation()});jQuery(".nlightbox-download").on("click",function(c){window.open(jQuery(this).attr("href"));
1000c.preventDefault();c.stopPropagation()});
1000jQuery(".nlightbox-gallery, .nlightbox-thumbnails").on("click",function(c){jQuery(".nlightbox").toggleClass("nlightbox-thumbnails-open");a.gallery();c.preventDefault();c.stopPropagation()});jQuery(".nlightbox-close").on("click",function(c){a.close();c.preventDefault();c.stopPropagation()});jQuery(window).on("resize",jQuery.proxy(a.resize,a))}else jQuery(".nlightbox-last").html(jQuery(".nlightbox-item").html()),jQuery(".nlightbox-last > img").fadeOut(200,function(){jQuery(this).remove();
1001a.items[a.index].removed&&a.items[a.index].removed()}),jQuery(".nlightbox-last .nlightbox-html").fadeOut(200,function(){jQuery(this).remove();a.items[a.index].removed&&a.items[a.index].removed()}),jQuery(".nlightbox-item").empty(),jQuery(".nlightbox-caption-content").empty()},keyboard:function(a){27==a.keyCode&&this.close();1<this.items.length&&(39==a.keyCode||68==a.keyCode?this.next():(37==a.keyCode||65==a.keyCode)&&this.prev())},wheel:function(a){0>a.originalEvent.deltaY?this.prev():this.next()},
1002next:function(){var a=this.index+1;this.items[a]?this.item(a):this.item(0)},prev:function(){var a=this.index-1;this.items[a]?this.item(a):this.item(this.items.length-1)},preload:function(){var a=this.items.length;if(1<a){var b=this.items[this.index+1]?this.items[this.index+1]:this.items[0];a=this.items[this.index-1]?this.items[this.index-1]:this.items[a-1];jQuery(".nlightbox-preload").html('<img src="'+a.uri+'" /><img src="'+b.uri+'" />')}},resize:function(){var a=jQuery(window).height()-jQuery(".nlightbox-caption-content").outerHeight(),
1003b=jQuery(".nlightbox-item > img").height();if(0<b){var d=0;a>b&&(d=(a-b)/2);jQuery(".nlightbox-item > img").css({display:"block",marginTop:d+"px",maxHeight:jQuery(".nlightbox-item").height()-jQuery(".nlightbox-caption-content").outerHeight()+"px"})}},scroll:function(){if(0<jQuery('.nlightbox-thumbnails a[data-index="'+this.index+'"]').length){var a=jQuery(".nlightbox-thumbnails"),b=jQuery('.nlightbox-thumbnails a[data-index="'+this.index+'"]');a.animate({scrollTop:b.offset().top-a.offset().top+a.scrollTop()-
100416},0)}},item:function(a){var b=this;b.index=a;b.lightbox();b.preload();var d=b.items.length;1<d&&jQuery(".nlightbox-count").html("<p>"+(a+1)+" / "+d+"</p>");b.items[b.index].title&&jQuery(".nlightbox-caption-content").prepend('<p class="nlightbox-caption-headline">'+b.items[b.index].title+"</p>");b.options.description&&b.items[b.index].description&&jQuery(".nlightbox-caption-content").append('<p class="nlightbox-caption-description">'+b.items[b.index].description+"</p>");b.items[b.index].copyright&&
1005jQuery(".nlightbox-caption-content").append('<p class="nlightbox-caption-copyright">'+b.items[b.index].copyright+"</p>");jQuery(".nlightbox").addClass("nlightbox-type-"+b.items[b.index].type);jQuery(".nlightbox-download").attr("href",b.items[b.index].uri);if("image"==b.items[b.index].type)jQuery(".nlightbox-item").html('<img src="'+b.items[b.index].uri+'" style="display:none" alt="'+b.items[b.index].alt+'" title="'+b.items[b.index].title+'" />');else{a="";if(b.items[b.index].width||b.items[b.index].height||
1006b.items[b.index].minWidth||b.items[b.index].minHeight||b.items[b.index].maxWidth||b.items[b.index].maxHeight)a+=' style="',b.items[b.index].width&&(a+="width:"+b.items[b.index].width+";"),b.items[b.index].height&&(a+="height:"+b.items[b.index].height+";"),b.items[b.index].minWidth&&(a+="min-width:"+b.items[b.index].minWidth+";"),b.items[b.index].minHeight&&(a+="min-height:"+b.items[b.index].minHeight+";"),b.items[b.index].maxWidth&&(a+="max-width:"+b.items[b.index].maxWidth+";"),b.items[b.index].maxHeight&&
1007(a+="max-height:"+b.items[b.index].maxHeight+";"),a+='"';"uri"==b.items[b.index].type?jQuery(".nlightbox-item").html('<div class="nlightbox-html"'+a+'><iframe src="'+b.items[b.index].uri+'"></iframe></div>'):jQuery(".nlightbox-item").html('<div class="nlightbox-html"'+a+">"+b.items[b.index].html+"</div>");b.options.closeIn&&(a="",b.options.closeColor&&(a=' style="fill:'+b.options.closeColor+'"'),jQuery(".nlightbox-html").append('<a href="javascript:void(0)" class="nlightbox-close-in" role="button" title="Schlie\u00dfen"'+
1008a+">"+b.options.svgClose+"</a>"),jQuery(".nlightbox-close-in").on("click",function(){b.close()}))}
1008jQuery(".nlightbox-thumbnails a").removeClass("nlightbox-thumbnails-active");jQuery('.nlightbox-thumbnails a[data-index="'+b.index+'"]').addClass("nlightbox-thumbnails-active");b.scroll();if("image"==b.items[b.index].type)jQuery(".nlightbox-item > img").on("load",function(){b.resize();b.items[b.index].loaded&&b.items[b.index].loaded()});else b.items[b.index].loaded&&b.items[b.index].loaded()},close:function(){var a=
1009this;a.slideshow(!0);jQuery(".nlightbox-item").hide();jQuery(".nlightbox-caption").hide();jQuery(".nlightbox").fadeOut(200,function(){a.options.accessbilityId&&0<jQuery("#nl-"+a.options.accessbilityId).length&&document.getElementById("nl-"+a.options.accessbilityId).close();jQuery(".nlightbox").remove();jQuery("body").removeClass("nlightbox-open");a.items[a.index].removed&&a.items[a.index].removed();"function"==typeof a.options.eventClose&&a.options.eventClose&&a.options.eventClose()});jQuery(document).off("keyup",
1010this.keyboard);jQuery(window).off("resize",this.resize);jQuery(window).off("wheel",this.wheel)}});e.open=function(a,b){"undefined"==typeof b&&(b={});b.items=a;a=new e(b);a.item(0);return a};e.registerAsJqueryPlugin=function(a){a.fn.NLightbox=function(b){var d,c=this;return this.each(function(){a.data(this,"NLightbox")||(d=d||new e(a.extend({},b,{_items:c})),a.data(this,"NLightbox",d))})};a.NLightbox=e};"undefined"!==typeof window&&window.jQuery&&e.registerAsJqueryPlugin(window.jQuery);return e});
1011
1012!function(e){e.fn.upload=function(t){const a=this;let i=null;return t=e.extend({textlanguage:"de",id:null,selectButtonname:"Datei",labelBezeichnung:"Bezeichnung:",selectImageUrl:null,owner:0,kuerzel:"",uploadUrl:null,uploadLimit:0,uploadHash:null,editBezeichnung:!1,editCopyright:!1,editAlternativtext:!1,bezeichnungRequired:!1,copyrightRequired:!1,alternativtextRequired:!1,sortable:!1,allowDrop:!0,live_preview:!1,preview:!1,deleteable:!0,onlyClient:!1,noupload:!1,nouploadDateiname:!0,nouploadBezeichnung:!1,nouploadCopyright:!1,nouploadAlternativtext:!1,maxFileSizeMB:0,extensions:"[]",dms_on:0,dms_var:"",noliskatalog_typ:0,noliskatalog_buttonbezeichnung:"Katalog",entries:[],infotext:null,icon_search:'<i class="fal fa-search fa-fw"></i>',icon_trash:'<i class="fal fa-trash-can fa-fw"></i>',icon_preview:'<i class="fal fa-eye fa-fw"></i>',icon_dropdown:'<i class="fal fa-chevron-down"></i>',capis_array:[],capis_prefix:"",cintegrations:[]},t),window.dropZones=window.dropZones||[],t.bezeichnungRequired&&(t.labelBezeichnung="Bezeichnung*:"),t.noupload&&(t.editBezeichnung=!1,t.editCopyright=!1,t.editAlternativtext=!1,t.sortable=!1,t.allowDrop=!1,t.dms_on=0,t.noliskatalog_typ=0,t.deleteable=!1,t.capis_array=[]),"de"!=t.textlanguage&&"en"!=t.textlanguage&&(t.textlanguage="en"),"en"==t.textlanguage&&("Datei"==t.selectButtonname?t.selectButtonname="File":"Bild"==t.selectButtonname&&(t.selectButtonname="Image"),"Bezeichnung:"==t.labelBezeichnung&&(t.labelBezeichnung="Title:"),"Bezeichnung*:"==t.labelBezeichnung&&(t.labelBezeichnung="Title*:")),jQuery.i18n.properties({name:"jq_upload_Messages",path:jurl2jscript+"plugins/",encoding:"UTF-8",mode:"map",language:t.textlanguage,cache:!0}),this.each(function(){const n=this;var o=t.extensions,r=o.length>0?"":"*";e(o).each(function(){r.length>0&&(r+=", "),r+="."+this});var l=e(this).hide().attr("accept",r),s=e('<input type="hidden" name="upload_identifier_'+t.id+'" value="'+t.id+'"/>').insertAfter(l),d=e("#upload_dimmer").length>0?e("#upload_dimmer").hide():e('<div id="upload_dimmer"></div>').hide().appendTo("body");if(l.loadExistingFiles=function(){return new Promise((e,a)=>{if(i=[],t.entries&&t.entries.length){const n=t.entries.length-1;t.entries.forEach(async(t,o)=>{if(t.dateiname&&t.url&&t.sizekB){const e=new URL(window.location.href),n=new URL(t.url);if(jurl2domain!=e.origin&&n.origin!==e.origin&&"url_livepreview"in t&&t.url_livepreview.length){const i=new URL(t.url_livepreview);if(i.origin&&i.origin!=e.origin){if(!("filepath"in t)||!t.filepath.length)return void a("no url to download");{const e=new URL(jurl2cms+"/base/datei.php");e.searchParams.append("id",t.filepath),n.href=e.href}}else n.href=i.href}let o=!1,r=await jQuery.ajax(n.href,{type:"GET",url:n.href,xhrFields:{responseType:"blob"},dataType:"binary",async:!0}).done(function(e,t,a){o=a});if(o&&200==o.status&&o.getResponseHeader("content-type")){const e=o.getResponseHeader("content-disposition")?o.getResponseHeader("content-disposition").replace('inline; filename="',"").replace('"',""):t.dateiname,a=new File([r],e,{type:o.getResponseHeader("content-type")});i.push(a)}}o===n&&e()})}else e()})},l.setKatalogSelection=function(e){e&&0<Object.keys(e).length?l.importFiles("nolis_katalog",{katalog_typ:t.noliskatalog_typ,katalog_auswahl:e}):NAlert("Es sind keine Dateien zum Import vorhanden")},l.getNumVorhandeneDateien=function(){return parseInt(k.actives.length)},l.getNumDateien=function(){return parseInt(Object.keys(k.entries).length)},l.openKatalogSelection=function(){let e=t&&t.uploadLimit?t.uploadLimit:0,a=l.getNumVorhandeneDateien();e&&k&&k.entries&&k.actives&&(e-=a),NOLISManager.OverForm.openSelection("ikatalog_suche_"+t.id,jurl2cms+"inc/ajax/set_katalogordner.php",{navigation:1,owner:t.owner,gla:"0",fromUpload:"1",selectLimit:e,maxFileSizeMB:t.maxFileSizeMB,maxFileSizeKB:t.maxFileSizeKB,allowedExtensions:t.extensions,selectOrdner:"0",typ:t.noliskatalog_typ+"",uploadID:t.id},{},"",l.setKatalogSelection)},l.importFiles=function(e,t){if(!e instanceof String)return;let a=[],n=null,o=!1,r=(e=!1)=>
1012{if(NOLISManager&&NOLISManager.Ladebildschirm){if(!0===o?(setTimeout(NOLISManager.Ladebildschirm.ausblenden,800),o=!1):NOLISManager.Ladebildschirm.init("Bitte warten..."),n&&"number"==typeof n&&clearInterval(n),!1===e)return;n=setInterval(()=>{NOLISManager.Ladebildschirm.anzeigen(),o=!0},250)}};"nolis_katalog"===e&&Object.keys(t.katalog_auswahl).forEach(async function(e,n){r(!0);let o=t.katalog_auswahl[e];if(!o.url||!o.url.length)return;let s=!1,d=await jQuery.ajax(o.url,{type:"GET",url:o.url,xhrFields:{responseType:"blob"},dataType:"binary",async:!0}).done(function(e,a,i){s=i,n===Object.keys(t.katalog_auswahl).length-1&&r(!1)});if(s&&200==s.status&&s.getResponseHeader("content-type")&&s.getResponseHeader("content-disposition")){null===i&&await l.loadExistingFiles();const e=new File([d],s.getResponseHeader("content-disposition").replace('inline; filename="',"").replace('"',""),{type:s.getResponseHeader("content-type")});e&&a.push(e),l.processFiles([e]),i.push(e)}})},l.processFiles=function(a){a&&a.length>0&&e(a).each(function(){var e=this,a=e.type.match("image/[a-zA-Z]+");a=null!=a;let i=0;"size"in e&&0<e.size&&(i=1e3>e.size?Math.ceil(e.size/1024):Math.round(e.size/1024));var n={};n.target=k,n.action="",n.filename=e.name,n.filesizeKB=e.size>0?i:0;var o=1;for(id in k.entries)"DELETE"!=k.entries[id].upload_action.val()&&parseInt(k.entries[id].upload_position.val())>=o&&(o=parseInt(k.entries[id].upload_position.val())+1);n.position=o,n.bezeichnung=e.name,n.copyright="",n.alternativtext="",n.originalname=e.name,n.filesrc="",n.filesrc_livepreview="",n.isImage=a;var r=k.addEntry(n);if(t.live_preview&&a){var l=new FileReader;l.onload=function(){r.live_preview.attr("src",l.result),r.live_preview_container.show()},l.readAsDataURL(e)}k.sendFile(r,e)})},t.noupload)k=e('<div id="upload_queue_'+t.id+'" class="upload_queue"></div>').insertAfter(s),L=e('<div id="upload_list_'+t.id+'" class="upload_list"></div>').insertAfter(s);else{var p="";1!=t.uploadLimit&&(p="<p>"+jQuery.i18n.prop("msg_anzahlerlaubt",t.uploadLimit)+"</p>");var u=e('<div id="upload_not_available_'+t.id+'" class="upload_not_available cmsinfo">'+p+"</div>").insertAfter(s),c=e('<div id="upload_available_'+t.id+'" class="upload_available"></div>').insertAfter(s);if(t.dms_on>0||t.noliskatalog_typ>0){var _,g="en"==t.textlanguage?"<span>Choose from </span>":"<span>Auswählen aus </span>",h=e('<div class="upload_actionbar">'+g+"</div>").appendTo(c);_=t.dms_on>0||t.noliskatalog_typ>0?jQuery.i18n.prop("msg_ausdateisystem"):t.selectButtonname+" "+jQuery.i18n.prop("msg_waehlen");var f=e('<span class="upload_select" title="'+jQuery.i18n.prop("msg_datei")+" "+jQuery.i18n.prop("msg_ausdateisystem")+'">'+_+" </span>").appendTo(h);if(t.selectImageUrl&&f.prepend(t.icon_search),t.noliskatalog_typ>0&&jurl2cms){const a=t.noliskatalog_buttonbezeichnung&&"Katalog"!=t.noliskatalog_buttonbezeichnung&&"de"==t.textlanguage?t.noliskatalog_buttonbezeichnung:jQuery.i18n.prop("msg_katalog");var v=e('<span class="upload_select" " title="'+t.selectButtonname+" "+jQuery.i18n.prop("msg_auskatalog")+'">'+a+" </span>").appendTo(h);t.selectImageUrl&&v.prepend(t.icon_search),v.click(l.openKatalogSelection)}if(t.dms_on>0){var m=e('<span class="upload_dms" onclick="'+t.dms_var+'.initDiv(1);" title="'+t.selectButtonname+" "+jQuery.i18n.prop("msg_ausdms")+'">'+jQuery.i18n.prop("msg_dms")+"</span>").appendTo(h);t.selectImageUrl&&m.prepend(t.icon_search)}}if(t.capis_array.length>0){t.dms_on<=0&&t.noliskatalog_typ<=0&&(g="en"==t.textlanguage?"<span>Choose from </span>":"<span>Auswählen aus </span>",h=e('<div class="upload_actionbar">'+g+"</div>").appendTo(c));for(var y=e('<span class="upload_dropdown">'+t.icon_dropdown+"</span>").appendTo(h),w=e('<ul class="upload_dropmenu"></ul>').appendTo(y),b=0;b<t.capis_array.length;b++)e('<li><span class="upload_capi" onclick="'+t.capis_prefix+t.capis_array[b]+'.
1012initDiv();">'+t.icon_search+t.capis_array[b]+"</span></li>").appendTo(w)}var x="jQuery('#h5upload_"+t.id+"').trigger('click');";x+="jQuery(this).closest('form').attr('data-file-dialog-opened', 'true');",window.addEventListener("focus",function(e){"true"==jQuery(l).closest("form").attr("data-file-dialog-opened")&&jQuery(l).closest("form").attr("data-file-dialog-opened","false")});var z=jQuery.i18n.prop("msg_draganddrop").replace("{0}",'<span tabindex="0" class="link" onkeyup="if(event.keyCode==13) '+x+'" onclick="'+x+'" title="vom Computer">').replace("{1}","</span>");z='<span class="upload_dropzone_text">'+z+"</span>";var T='<span class="upload_dropzone_info"><span class="nobreak">'+jQuery.i18n.prop("msg_anzahldateien").replace("{0}",t.uploadLimit).replace("{1}",1==t.uploadLimit?jQuery.i18n.prop("msg_datei"):jQuery.i18n.prop("msg_dateien"))+'</span> <span class="nobreak">'+jQuery.i18n.prop("msg_dateigroesse").replace("{0}",t.maxFileSizeMB+" MB")+"</span>"+(o.length>0?'<br><span class="">'+jQuery.i18n.prop("msg_dateitypen")+": "+o.join(", ")+"</span>":"")+"</span>";"string"==typeof t.infotext&&(T=""!=t.infotext?'<span class="upload_dropzone_info">'+t.infotext+"</span>":"");var k=e('<div id="upload_queue_'+t.id+'" class="upload_queue"></div>').appendTo(c),j=window.dropZones[window.dropZones.length]=e('<div id="drop_'+t.id+'" class="upload_dropzone">'+z+T+'<div class="placement"></div></div>').hide().appendTo(c),L=e('<div id="upload_list_'+t.id+'" class="upload_list"></div>').insertAfter(u);t.uploadLimit>1&&l.attr("multiple","MULTIPLE"),t.allowDrop&&(j.show(),k.appendTo(j));var I=e("div#drop_"+t.id+" span.upload_dropzone_info");if(t.cintegrations.length>0){var O={hash:t.hash,clouds:t.cintegrations,fieldId:t.id,kuerzel:t.kuerzel,originUrl:jurl2domain,mimeTypes:t.extensions,uploadLimit:t.uploadLimit,maxFileSize:t.maxFileSizeMB};if(cloudStorageContainerOptions={id:"cloudstorage_container_"+t.id,class:"cloudstorage-container","data-hash":t.hash},given=I.parent().children().find("#cloudstorage_container_"+t.id+".cloudstorage-container"),0==given.length)var D=e("<div></div>",cloudStorageContainerOptions).insertBefore(I);e("<div/>",{class:"cloudstorage_text",html:"oder"}).appendTo(D);var B=e("<div />",{class:"cloudstorage-win-wrapper"}).appendTo(D);let a=[],i=btoa(JSON.stringify(O));t.cintegrations.forEach(e=>{let n="";switch(e){case"onedrive":n="Microsoft OneDrive";break;case"googledrive":n="Google Drive";break;case"dropbox":n="Dropbox"}0<n.length&&(n="aus "+n);let o={id:"h5upload_"+t.id+"_"+e,class:"cloudstorage-button "+e+"-button",title:n,tabindex:0},r={fieldId:t.id,cloud:e,key:"e67818a3-d2c4-4702-8112-1be85e66230f",data:i},l=jQuery("<a />",o);l.on("click keydown",function(e){return"click"!=e.type&&13!=e.originalEvent.keyCode||("click"==e.type&&e.stopPropagation(),"undefined"!=typeof NCloudHandler&&"function"==typeof NCloudHandler.startUpload&&NCloudHandler.startUpload(r)),"click"!=e.type});let s={};switch(e){case"onedrive":s={class:"cloudstorage-icon nolisicon-1619-onedrive"};break;case"googledrive":s={class:"fa-brands fa-google-drive"};break;case"dropbox":s={class:"fa-brands fa-dropbox"}}let d=jQuery("<i />",s);l.append(d),B.append(l),a.push(l),l.blur()})}}var S=function(e){if(e.dataTransfer.files>0)return!0;for(var t=e.dataTransfer.types.length,a=0;a<t;a++){var i=e.dataTransfer.types[a];if("file"==i)return!0;if("Files"==i)return!0;if("application/x-moz-file"==i)return!0}return!1};t.allowDrop&&(e("body").on("dragover",function(e){e&&e.target&&jQuery(e.target).hasClass("background-area")||this&&jQuery(this).is("body")&&jQuery(this).find("div.background-area:visible").length||this&&jQuery(this).find("div.tox div.tox-dialog:visible").length||(S(e.originalEvent)&&(e.stopPropagation(),e.preventDefault(),d.show(),j.addClass("highlight")),clearTimeout(d.prop("timerId")))}).on("drop",function(e){S(e.originalEvent)&&(e.stopPropagation(),e.preventDefault()),d.hide(),j.removeClass("highlight")}),d.on("dragleave",function(t){if(clearTimeout(d.prop("timerId")),S(t.originalEvent)){t.stopPropagation(),t.preventDefault();var a=setTimeout(function(){d.hide(),e(window.dropZones).each(function(){e(this).removeClass("highlight")})},250);d.prop("timerId",a)}}),j.on("dragover",function(e){clearTimeout(d.prop("timerId")),S(e.originalEvent)&&(e.stopPropagation(),e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy",j.addClass("dragover"))}).on("drop",function(a){j.removeClass("dragover"),d.hide(),e(window.dropZones).each(function(){e(this).removeClass("highlight")});var i=a.originalEvent.dataTransfer.files;document.querySelector("input#h5upload_"+t.id).files=i,l.process
1012Files(i)}).on("dragleave",function(t){j.removeClass("dragover"),clearTimeout(d.prop("timerId")),t.stopPropagation(),t.preventDefault();var a=setTimeout(function(){d.hide(),e(window.dropZones).each(function(){e(this).removeClass("highlight")})},250);d.prop("timerId",a)}));var C=function(){var e=0;for(var a in k.entries){var i=k.entries[a];"NEW"!=i.upload_action.val()&&"UPDATE"!=i.upload_action.val()||e++}t.noupload||(e>=t.uploadLimit?(c.hide(),u.show()):(c.show(),u.hide()))};k.entries={},k.actives=[],k.counter=0,k.addEntry=function(o){var r={target:k,action:"",filename:"",filesizeKB:0,position:1,bezeichnung:"",copyright:"",alternativtext:"",originalname:"",filesrc:"",filesrc_livepreview:"",isImage:!1,temp_filename:"",prefix:"",medien_id:null,medien_owner:null,hash:null},l=(o=e.extend(r,o),e('<div id="upload_queue_entry_'+k.counter+'" class="upload_queue_entry upload_vorhanden"></div>').appendTo(o.target));l.request=new XMLHttpRequest,l.upload_action=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][action]" id="upload_'+t.id+"_entries_"+k.counter+'_action" />').val(o.action).appendTo(l),l.upload_status=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][status]" id="upload_'+t.id+"_entries_"+k.counter+'_status" />').appendTo(l),l.upload_temp_filename=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][temp_filename]" id="upload_'+t.id+"_entries_"+k.counter+'_temp_filename" />').val(o.temp_filename).appendTo(l),l.upload_prefix=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][prefix]" id="upload_'+t.id+"_entries_"+k.counter+'_prefix" />').val(o.prefix).appendTo(l),l.upload_filename=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][filename]" id="upload_'+t.id+"_entries_"+k.counter+'_filename" />').val(o.filename).appendTo(l),l.upload_originalname=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][originalname]" id="upload_'+t.id+"_entries_"+k.counter+'_originalname" />').val(o.originalname).appendTo(l),l.upload_position=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][position]" id="upload_'+t.id+"_entries_"+k.counter+'_position" />').val(o.position).appendTo(l),l.upload_medien_id=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][medien_id]" id="upload_'+t.id+"_entries_"+k.counter+'_medien_id" />').val(o.medien_id).appendTo(l),l.upload_medien_owner=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][medien_owner]" id="upload_'+t.id+"_entries_"+k.counter+'_medien_owner" />').val(o.medien_owner).appendTo(l),l.upload_hash=e('<input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][hash]" id="upload_'+t.id+"_entries_"+k.counter+'_hash" />').val(o.hash).appendTo(l),"OK"==o.status&&l.upload_status.val("OK"),l.actioncontainer=e('<div class="upload_queue_entry_actioncontainer"></div>').appendTo(l),l.filename=e('<span id="upload_'+t.id+"_entry_"+k.counter+'_file" class="upload_queue_entry_filename"></span>').text(o.filename).attr("title",o.filename).appendTo(l.actioncontainer),l.cancel=e('<span class="upload_queue_entry_cancel">'+t.icon_trash+jQuery.i18n.prop("msg_entfernen")+"</span>").hide().click(function(){l.request.abort(),l.fadeOut("slow",function(){l.remove(),delete k.entries[l.prop("id")]});const e=k.actives.indexOf(l.prop("id"));-1<e&&(k.actives=Array.prototype.concat(k.actives.slice(0,e),k.actives.slice(e+1))),a.trigger("cancelled").trigger("update")}).appendTo(l.actioncontainer),l.delete=e('<span class="upload_queue_entry_delete" title="'+jQuery.i18n.prop("msg_entfernen")+'">'+t.icon_trash+jQuery.i18n.prop("msg_entfernen")+"</span>").hide().click(function(){const e=l.upload_position.val()-1;l.upload_action.val("DELETE"),l.fadeOut("slow");const t=k.actives.indexOf(l.prop("id"));-1<t&&(k.actives=Array.prototype.concat(k.actives.slice(0,t),k.actives.slice(t+1))),i&&i.at(e)&&(i=Array.prototype.concat(i.slice(0,e),i.slice(e+1))),C(),a.trigger("removed").trigger("update")}).appendTo(l.actioncontainer),(0==t.deleteable||t.noupload)&&l.delete.hide().addClass("hidden").addClass("d-none"),l.preview=e('<span class="upload_queue_entry_preview" title="'+jQuery.i18n.prop("msg_vorschau")+'">'+t.icon_preview+jQuery.i18n.prop("msg_vorschau")+"</span>").hide().click(function(){let e=new URL(o.filesrc);e.searchParams.append("dt",(new Date).getTime()),window.open(e.href,"_blank")}).appendTo(l.actioncontainer),e('<span style="float: none; clear:both; display: block;"></span>').appendTo(l.actioncontainer),l.live_preview_container=e('<div class="upload_queue_entry_live_preview_container"></div>').hide().appendTo(l),l.live_preview=e('<img class="upload_queue_entry_live_preview"/>').appendTo(l.live_preview_container),l.container_bezeichnung=e('<div class="upload_queue_entry_input_container"></div>').hide().appendTo(l),l.label_bezeichnung=e('<label for="upload_'+t.id+"_entry_"+k.counter+'_bezeichnung"></label>').text(t.labelBezeichnung).appendTo(l.container_bezeichnung),l.bezeichnung=t.editBezeichnung?e('<input id="upload_'+t.id+"_entry_"+k.counter+'_bezeichnung" type="text" class="upload_queue_entry_bezeichnung" name="upload_'+t.id+"_entr
1012ies["+k.counter+'][bezeichnung]"/>').val(o.bezeichnung).appendTo(l.container_bezeichnung):e('<span class="upload_queue_entry_bezeichnung"><input type="hidden" name="upload_'+t.id+"_entries["+k.counter+'][bezeichnung]" value="'+o.bezeichnung+'"/>'+o.bezeichnung+"</span>").appendTo(l.container_bezeichnung),l.bezeichnung_span=e('<span id="upload_'+t.id+"_entry_"+k.counter+'_bezeichnung_span" class="upload_queue_entry_bezeichnung"></span>').text(o.bezeichnung).attr("title",o.bezeichnung).hide().appendTo(l.container_bezeichnung),l.container_copyright=e('<div class="upload_queue_entry_input_container"></div>').hide().appendTo(l),l.label_copyright=e('<label for="upload_'+t.id+"_entry_"+k.counter+'_copyright">Copyright'+(t.copyrightRequired?"*":"")+":</label>").appendTo(l.container_copyright),l.copyright=t.editCopyright?e('<input id="upload_'+t.id+"_entry_"+k.counter+'_copyright" type="text" class="upload_queue_entry_copyright" name="upload_'+t.id+"_entries["+k.counter+'][copyright]"/>').val(o.copyright).appendTo(l.container_copyright):e('<input type="hidden" value="'+o.copyright+'" name="upload_'+t.id+"_entries["+k.counter+'][copyright]"/><span class="upload_queue_entry_copyright">'+o.copyright+"</span>").appendTo(l.container_copyright),l.copyright_span=e('<span id="upload_'+t.id+"_entry_"+k.counter+'_copyright_span" class="upload_queue_entry_copyright"></span>').text(o.copyright).attr("title",o.copyright).hide().appendTo(l.container_copyright),l.container_alternativtext=e('<div class="upload_queue_entry_input_container flex-center-vertical-row flex-align-self-start"></div>').hide().appendTo(l),l.label_cont_alternativtext=e("<div/>",{class:"flex-center-vertical-column"}).appendTo(l.container_alternativtext),l.label_alternativtext=e('<label for="upload_'+t.id+"_entry_"+k.counter+'_alternativtext">Alternativtext'+(t.alternativtextRequired?"*":"")+":</label>").appendTo(l.label_cont_alternativtext),l.button_ki_alttext=e("<i />",{class:"fas fa-sparkles fa-fw flex-align-self-end mr-half","aria-hidden":!0,role:"presentation",title:"Alternativtext mit KI generieren"}),l.button_ki_alttext_reset=e("<i />",{class:"fas fa-undo fa-fw d-none flex-align-self-end mr-half","aria-hidden":!0,role:"presentation",title:"Vorherigen Alternativtext verwenden"}),t.kiAlternativText&&(l.button_ki_alttext.appendTo(l.label_cont_alternativtext),l.button_ki_alttext_reset.appendTo(l.label_cont_alternativtext));let s=t.editAlternativtext?"textarea":"input",d=t.editAlternativtext?"":"hidden",p=e("<div />",{class:t.editAlternativtext?"field-has-icons":""}).appendTo(l.container_alternativtext),u=e("<div />",{class:"textarea-container form-item form-item-textarea"}).appendTo(p);if(t.editAlternativtext){let t=e("<span />",{class:"field-icons"}).appendTo(p),a=e("<span />",{onmouseover:'NOLISManager.QuickTip.showTip(this, "Hinweis", "Beschreiben Sie im Textfeld \'Alternativtext\' den Inhalt des Bildes möglichst kurz und treffend. Der Text wird verwendet, wenn der Browser das Bild durch einen Ladefehler nicht darstellen kann oder wenn ein Screenreader die Seite vorliest.", {})'}).appendTo(t);e("<i />",{class:"fas fa-info-circle fa-fw","aria-hidden":!0,role:"presentation"}).appendTo(a)}let c=e("<"+s+" />",{rows:"3",id:"upload_"+t.id+"_entry_"+k.counter+"_alternativtext",class:"upload_queue_entry_alternativtext",name:"upload_"+t.id+"_entries["+k.counter+"][alternativtext]",type:d}).text(o.alternativtext).appendTo(u);l.alternativtext_span=e('<span id="upload_'+t.id+"_entry_"+k.counter+'_alternativtext_span" class="upload_queue_entry_alternativtext"></span>').text(o.alternativtext).attr("title",o.alternativtext).hide().appendTo(l.container_alternativtext);let _=c.text(),g=NOLISManager.API.getClone();l.button_ki_alttext.click(async e=>{NOLISManager.Ladebildschirm.init(),NOLISManager.Ladebildschirm.anzeigen();const t=await n.getVorhandeneDateien(),a=o.position-1;if(isNaN(a)||!t||!t.length||!t.at(a))return void NOLISManager.Ladebildschirm.ausblenden();const i=t.at(a);c.attr("data-autoresize","true"),NOLISForms&&NOLISForms.textareaAutoresize(c.get(0));const r=()=>{},s=()=>{c.change()};g.setRequestCacheTime();const d=new NOLISManager.Result(await NOLISManager.KI_CMS.getImageDescription("",{limit:15},i,async(e,t,a=!1)=>{const i=new NOLISManager.Result(e);if(l.button_ki_alttext.is(":visible")&&(l.button_ki_alttext.addClass("d-none"),l.button_ki_alttext_reset.removeClass("d-none")),i.isOK()&&(i.getData()||"string"==typeof i.getData())){NOL
1012ISManager.Ladebildschirm.ausblenden();const e="object"==typeof i.getData()&&"chunk"in i.getData()?i.getData().chunk:"";await NOLISManager.Typewriter.write(c,e,17,t,r,s,a)}},g));NOLISManager.Ladebildschirm.ausblenden(),d&&d.isOK()&&"object"==typeof d.getData()&&"description"in d.getData()&&c.val(d.getData().description)}),l.button_ki_alttext_reset.click(async e=>{await g.abortRequest().catch(e=>{console.warn(e)}),c.text(_).change(),l.button_ki_alttext.removeClass("d-none"),l.button_ki_alttext_reset.addClass("d-none")}),l.status=e('<span class="upload_queue_entry_status"></span>').appendTo(l),l.progress_container=e('<div class="upload_queue_entry_progress_container"></div>').appendTo(l),l.progress=e('<div class="upload_queue_entry_progress"></div>').width(0).appendTo(l.progress_container),t.editBezeichnung&&""!=o.action&&l.container_bezeichnung.show(),t.editCopyright&&""!=o.action&&l.container_copyright.show(),t.editAlternativtext&&""!=o.action&&l.container_alternativtext.show(),t.noupload&&(l.filename.hide(),t.nouploadDateiname&&l.filename.show(),t.nouploadBezeichnung&&(l.container_bezeichnung.show(),l.bezeichnung.hide(),l.bezeichnung_span.show()),t.nouploadCopyright&&(l.container_copyright.show(),l.container.hide(),l.copyright_span.show()),t.nouploadAlternativtext&&(l.container_alternativtext.show(),l.container.hide(),l.alternativtext_span.show())),o.filesrc_livepreview.length>0&&t.live_preview&&o.isImage&&(l.live_preview.attr("src",o.filesrc_livepreview),l.live_preview_container.show()),o.filesrc.length>0&&t.preview&&l.preview.show(),"NEW"==o.action&&l.addClass("upload_successful");var h="",f=t.extensions,v=0;for(var m in k.entries){var y=k.entries[m];if(("NEW"==y.upload_action.val()||"UPDATE"==y.upload_action.val())&&y.upload_originalname.val()==o.originalname){h=jQuery.i18n.prop("msg_datei")+" "+o.originalname+" "+jQuery.i18n.prop("msg_error_vorhanden");break}if((""==y.upload_action.val()||"NEW"==y.upload_action.val()||"UPDATE"==y.upload_action.val())&&++v>=t.uploadLimit){h=jQuery.i18n.prop("msg_anzahlerlaubt",t.uploadLimit);break}}return 0==h.length&&(t.maxFileSizeMB>0&&o.filesizeKB/1024>t.maxFileSizeMB?h=jQuery.i18n.prop("msg_error_groesse")+" ("+jQuery.i18n.prop("msg_dateigroesse").replace("{0}",t.maxFileSizeMB+" MB")+")":0==o.filesizeKB?h=jQuery.i18n.prop("msg_error_defekt")+" ("+jQuery.i18n.prop("msg_dateigroesse").replace("{0}",t.maxFileSizeMB+" MB")+")":f.length>0&&-1==e.inArray(o.filename.substr(o.filename.lastIndexOf(".")+1).toLowerCase(),f)&&(h=jQuery.i18n.prop("msg_error_typ")+" ("+jQuery.i18n.prop("msg_dateitypen")+": "+f.join(", ")+")")),h.length>0?(l.upload_status.val("ERROR"),l.upload_action.val("DELETE"),l.status.text(h),l.progress.width("100%"),l.removeClass("upload_successful"),l.addClass("upload_error"),setTimeout(function(){l.fadeOut("slow",function(){})},5e3)):(t.sortable&&(l.addClass("draggable"),jQuery("#upload_list_"+t.id).sortable({items:"div.draggable",update:function(t,a){e(this).sortable("toArray").forEach(function(e,t){k.entries[e].upload_position.val(parseInt(t)+1)})}})),k.entries[l.prop("id")]=l,k.actives.push(l.prop("id")),C()),k.counter++,l},k.sendFile=function(i,n){if(0==i.upload_action.val().length){var o=new FormData;o.append("owner",t.owner),o.append("kuerzel",t.kuerzel),o.append("upload_hash",t.uploadHash),o.append("upload_name","Filedata"),o.append("Filedata",n),t.id&&t.uploadUrl?(i.request.upload.onprogress=function(e){var t=Math.round(100/e.total*e.loaded);i.status.text(jQuery.i18n.prop("msg_wirdhochgeladen")+" ("+t+"%)"),i.progress.width(t+"%")},i.request.onabort=function(e){delete k.entries[i.prop("id")],i.remove();const t=k.actives.indexOf(i.prop("id"));-1<t&&(k.actives=Array.prototype.concat(k.actives.slice(0,t),k.actives.slice(t+1)))},i.request.onreadystatechange=function(){if(4==i.request.readyState)if(200==i.request.status){var n={};try{n=JSON.parse(i.request.responseText)}catch(e){n.status="NOK"}if("OK"==n.status){i.upload_status.val("OK"),i.upload_action.val("NEW"),i.upload_temp_filename.val(n.tmp_filename),i.upload_prefix.val(n.tmp_prefix),i.upload_filename.val(n.tmp_filename.replace(n.tmp_prefix,"")),i.status.text(jQuery.i18n.prop("msg_fertig")),i.progress.width("100%"),i.addClass("upload_successful"),i.trigger("upload_successful"),i.addClass("upload_successful_trigger"),i.cancel.hide(),!t.deleteable&&t.noupload||i.delete.show(),t.editBezeichnung&&i.container_bezeichnung.show(),t.editCopyright&&i.container_
1012copyright.show(),t.editAlternativtext&&i.container_alternativtext.show(),e(i).css({top:i.offset().top,left:i.offset().left,position:"absolute","z-index":5}).appendTo("body"),e(L).is(":visible")||e(L).show();var o=function(t,a,i,n,r,l){a>=e(i).offset().top+e(i).height()-n&&a<=e(i).offset().top+e(i).height()+n?l():setTimeout(function(){a<e(i).offset().top+e(i).height()-n?a+=5:a-=5,e(t).css("top",a),o(t,a,i,n,r,l)},r)};o(i,i.offset().top,L,30,16,function(){i.css({top:"auto",left:"auto",position:"relative"}).appendTo(L)}),a.trigger("added").trigger("update")}else{i.upload_status.val("ERROR"),i.upload_action.val("ERROR"),i.status.text(jQuery.i18n.prop("msg_fehlgeschlagen")+". "+n.status),i.progress.width("100%"),i.addClass("upload_error");{setTimeout(function(){i.fadeOut("slow",function(){i.remove(),delete k.entries[i.prop("id")]})},5e3);const e=k.actives.indexOf(i.prop("id"));-1<e&&(k.actives=Array.prototype.concat(k.actives.slice(0,e),k.actives.slice(e+1)))}}}else{i.upload_status.val("ERROR_FATAL"),i.upload_action.val("ERROR"),i.status.text(jQuery.i18n.prop("msg_fehlgeschlagen")),i.progress.width("100%"),i.addClass("upload_error");{setTimeout(function(){i.fadeOut("slow",function(){i.remove(),delete k.entries[i.prop("id")]})},5e3);const e=k.actives.indexOf(i.prop("id"));-1<e&&(k.actives=Array.prototype.concat(k.actives.slice(0,e),k.actives.slice(e+1)))}}C()},i.status.text(jQuery.i18n.prop("msg_bittewarten")),i.cancel.show(),i.delete.hide(),i.request.open("POST",t.uploadUrl),i.request.send(o)):(i.status.text(jQuery.i18n.prop("msg_konfiguration")),i.progress.width("100%"))}};var E=t.entries;e(E).each(function(){var e=this.mime.match("image/[a-zA-Z]+");e=null!=e;var a={};a.target=L,a.action=this.action,a.filename=this.dateiname,a.filesizeKB=this.sizekB,a.position=this.pos,a.bezeichnung=this.bezeichnung,a.copyright=this.copyright,a.alternativtext=this.alternativtext,a.originalname=this.originalname,a.filesrc=this.url,a.filesrc_livepreview=this.url_livepreview,a.isImage=e,a.temp_filename=this.temp_filename,a.prefix=this.prefix,a.medien_id=this.medien_id,a.medien_owner=this.medien_owner,a.hash=this.hash;var i=k.addEntry(a);i.cancel.hide(),!t.deleteable&&t.noupload||i.delete.show()}),l.change(function(){var i=!1;e.each(this.files,function(){var n=this,o=n.type.match("image/[a-zA-Z]+");o=null!=o;var r=n.name;o&&"image.jpg"===r&&(r="image_"+Math.floor(Date.now()/1e3)+".jpg",i=!0);var l={};l.target=k,l.action="",l.filename=r,l.filesizeKB=n.size>0?Math.ceil(n.size/1024):0;var s=1;for(id in k.entries)"DELETE"!=k.entries[id].upload_action.val()&&parseInt(k.entries[id].upload_position.val())>=s&&(s=parseInt(k.entries[id].upload_position.val())+1);l.position=s,l.bezeichnung=r,l.copyright="",l.alternativtext="",l.originalname=r,l.filesrc="",l.filesrc_livepreview="",l.isImage=o;var d=k.addEntry(l);if(t.live_preview&&o){var p=new FileReader;p.onload=function(){d.live_preview.attr("src",p.result),d.live_preview_container.show()},p.readAsDataURL(n)}t.onlyClient?(d.upload_status.val("OK"),d.upload_action.val("NEW"),d.status.text(jQuery.i18n.prop("msg_fertig")),d.progress.width("100%"),d.addClass("upload_successful"),d.trigger("upload_successful"),d.addClass("upload_successful_trigger"),d.cancel.hide(),t.deleteable&&d.delete&&d.delete.show(),t.editBezeichnung&&d.container_bezeichnung.show(),t.editCopyright&&d.container_copyright.show(),t.editAlternativtext&&d.container_alternativtext.show(),C(),e(L).is(":visible")||e(L).show(),d.css({top:"auto",left:"auto",position:"relative"}).appendTo(L),a.trigger("added").trigger("update")):k.sendFile(d,n)}),i&&(this.value=null)}),!t.noupload&&f&&f.click(function(e){l.click()}),this.queue=k,this.lst=L,this.options=t,this.getNumVorhandeneDateien=l.getNumVorhandeneDateien,this.getNumDateien=l.getNumDateien,this.getVorhandeneDateien=async()=>{const e=[];if(null===i&&await l.loadExistingFiles(),i.forEach(t=>{e.push(t)}),this&&this.files&&this.files.length)for(let t=0;t<this.files.length;t++)e.push(this.files[t]);return e},this.getVorhandeneDatei=async(e=null)=>(await this.getVorhandeneDateien()).at(e),this.describeImage2Container=async(e,t,a=!0)=>
1012{if(e=parseInt(e),isNaN(e)||!(t instanceof jQuery)||!t.length)return console.warn("invalid imagedescription call: ",e,t),!1;const i=await this.getVorhandeneDatei(e);if(!i)return console.warn("file at index "+e+" doesnt exist."),!1;if(!1 in i||!i.type||0>i.type.indexOf("image"))return console.warn("file at index "+e+" is not an image! it's  "+i.type),!1;a&&NOLISManager.Ladebildschirm.anzeigen();const n=NOLISManager.API.getClone();n.setRequestCacheTime();const o=new NOLISManager.Result(await NOLISManager.KI_CMS.getImageDescription("",{limit:15},i,null,n));return a&&NOLISManager.Ladebildschirm.ausblenden(),o&&o.isOK()&&"object"==typeof o.getData()&&"description"in o.getData()&&await NOLISManager.Typewriter.write(t,o.getData().description,15,!0,null,null,!1),!0},this.deleteEntries=(e=null)=>{const t=new DataTransfer,{files:a}=this;e=parseInt(e);let i=null;isNaN(e)||(i="upload_queue_entry_"+e,!i in k.entries&&(i=null));for(const[e,n]of Object.entries(k.entries)){if(!("delete"in n)||!n.delete)return;if(!i||e===i){const e=n.filename.text();if(n.delete.click(),a&&a.length){for(let n=0;n<a.length;n++)a[n]&&a[n].name&&e!==a[n].name&&i&&t.items.add(a[n]);this.files=t.files}if(i)return}}}})}}(jQuery);
1013(function(x){var C={PullInterval:2E3},K=function(){var c="WAIT",b=null,g=function(){},k=function(){},m=function(){};this.WAIT="WAIT";this.ERROR="ERROR";this.SUCCESS="SUCCESS";
1013this.getState=function(){return c};this.done=function(f){"function"==typeof f&&(g=f);c!=this.SUCCESS&&c!=this.ERROR||g(b);return self};this.error=function(f){"function"==typeof f&&(k=f);c==this.ERROR&&k(b);return self};this.success=function(f){"function"==typeof f&&(m=f);c==this.SUCCESS&&m(b);return self};this.resolve=function(f,
1014a){c=f;b=a;switch(c){case this.WAIT:break;case this.SUCCESS:m(b);g(b);break;case this.ERROR:k(b);g(b);break;default:g(b)}return self}},w=function(c,b,g,k,m,f){for(var a=this,y=0,n="INIT",e=null,t=function(){},D=function(){},E=function(){},F=function(){},G=[],l=0,u="",q="",z=new Date,A=null,B=null,H=0;H<c.length;H++){var r=c[H];"string"==typeof r.id&&-1!==r.id.indexOf("new_")&&(r=parseInt(r.id.substr(4)),r>=l&&(l=r+1))}l="new_"+l;b=b||"";g=g||"";k=k||"";m=m||0;f=f||"";a.INIT="INIT";a.WAIT="WAIT";a.PROCESS=
1015"PROCESS";a.SUCCESS="SUCCESS";a.ERROR="ERROR";a.getState=function(){return n};a.onStateChange=function(h){"function"==typeof h&&G.push(h);return a};a.done=function(h){"function"==typeof h&&(t=h);n!=this.SUCCESS&&n!=a.ERROR||t(e);return a};a.error=function(h){"function"==typeof h&&(D=h);n==a.ERROR&&D(e);return a};a.process=function(h){"function"==typeof h&&(E=h);n==a.PROCESS&&E(e);return a};a.success=function(h){"function"==typeof h&&(F=h);n==a.SUCCESS&&F(e);return a};a.resolve=function(h,d){var l=
1016n;n=h;e=d;switch(n){case a.INIT:break;case a.WAIT:I(d.id);u=d.hash;b=d.jobtyp;g=d.bezeichnung;k=d.json;try{0<d.result.length&&(q=JSON.parse(d.result))}catch(v){a.resolve(a.ERROR,v);break}z=p(d.erstellt);A=p(d.angefangen);B=p(d.beendet);clearTimeout(y);y=setTimeout(function(){w(m,f)},C.PullInterval);break;case a.PROCESS:I(d.id);u=d.hash;b=d.jobtyp;g=d.bezeichnung;k=d.json;try{0<d.result.length&&(q=JSON.parse(d.result))}catch(v){a.resolve(a.ERROR,v);break}z=p(d.erstellt);A=p(d.angefangen);B=p(d.beendet);
1017E.call(a,q);clearTimeout(y);y=setTimeout(function(){w(m,f)},C.PullInterval);break;case a.SUCCESS:I(d.id);u=d.hash;b=d.jobtyp;g=d.bezeichnung;k=d.json;try{q=JSON.parse(d.result)}catch(v){a.resolve(a.ERROR,v);break}z=p(d.erstellt);A=p(d.angefangen);B=p(d.beendet);F.call(a,q);t.call(a,q);break;case a.ERROR:D.call(a,e);t.call(a,e);break;default:t.call(a,e)}if(l!=n)for("function"==typeof c.ExecuteTaskStateChanged&&c.ExecuteTaskStateChanged(a,l),h=0;h<G.length;h++)d=G[h],"function"==typeof d&&d(a,l);return a};
1018a.getId=function(){return l};a.getHash=function(){return u};a.getJobtyp=function(){return b};a.getBezeichnung=function(){return g};a.getJson=function(){return k};a.getResult=function(){return q};a.getErstellt=function(){return z};a.getAngefangen=function(){return A};a.getBeendet=function(){return B};var I=function(a){l!=a&&(c["id_"+a]=c["id_"+l],delete c["id_"+l],l=a)},p=function(a){a=a.split(/[- :]/);return new Date(a[0],a[1]-1,a[2],a[3],a[4],a[5])},w=function(b,d){var e=jurl2cms+"inc/ajax/queuetask.php";
10191===b&&(e=jurl2domain+"scripts/ajax.php?"+Date.now()+"&route=queuetask");x.getJSON(e,{method:"getTask",hash:u,kuerzel:d}).done(function(b){200==b.code?1==b.data.status?a.resolve(a.PROCESS,b.data):2==b.data.status?a.resolve(a.SUCCESS,b.data):a.resolve(a.WAIT,b.data):a.resolve(a.ERROR,null)}).fail(function(b){a.resolve(a.ERROR,b)})}},J=function(c){c=c||"";var b=[],g=[];b.OnTaskStateChange=function(b){"function"==typeof b&&g.push(b);return self};b.ExecuteTaskStateChanged=function(b,f){for(var a=0;a<
1020g.length;a++){var c=g[a];"function"==typeof c&&c(b,f)}return self};b.LoadTasks=function(g,f){var a=new K,k=jurl2cms+"inc/ajax/queuetask.php";1===g&&(k=jurl2domain+"scripts/ajax.php?route=queuetask");x.getJSON(k,{jobtyp:c,method:"getTasks",kuerzel:f}).done(function(c){200==c.code?(x(c.data).each(function(){var a="undefined"==typeof b["id_"+this.id],c=1==a?new w(b):b["id_"+this.id];1==this.status?c.resolve(c.PROCESS,this):2==this.status?c.resolve(c.SUCCESS,this):c.resolve(c.WAIT,this);1==a&&b.push(b["id_"+
1021this.id]=c)}),a.resolve(a.SUCCESS,b)):a.resolve(a.ERROR,null)}).fail(function(b){a.resolve(a.ERROR,b)});return a};var k=function(c,f,a,g,k){var e=new w(b,c,f,a,g,k);b.push(b["id_"+e.getId()]=e);var m=jurl2cms+"inc/ajax/queuetask.php";1===g&&(m=jurl2domain+"scripts/ajax.php?route=queuetask");x.getJSON(m,{jobtyp:c,method:"addTask",bezeichnung:f,data:a,kuerzel:k}).done(function(a){200==a.code?1==a.data.status?e.resolve(e.PROCESS,a.data):2==a.data.status?e.resolve(e.SUCCESS,a.data):e.resolve(e.WAIT,a.data):
1022e.resolve(e.ERROR,null)}).fail(function(a){e.resolve(e.ERROR,a)});return e};b.AddTask="string"==typeof c&&0<c.length?function(b,f,a){k(c,b,f,a)}:k;b.Settings=C;b.CreateQueue=J;return b};window.QueueTask=new J})(jQuery);
1023//# sourceMappingURL=queuetask.min.js.map
1024
1025(function(q){var l=function(f,b){var g=this,h=0,a=null,d=null,k=[],e=null,m=null,n=function(c){"undefined"!=typeof c&&(e=c);h=2;"function"==typeof a&&a(e);for(c=0;c<k.length;c++)k[c].__start();f.__checkTasks()},p=function(c){"function"==typeof c&&(m=c)};g.done=function(c){"function"==typeof c&&(2==h?c(e):a=c);return g};g.await=function(c){"object"==typeof c&&c instanceof l&&(c.__addSlaveTask(g),d=c);return g};g.stop=function(){1==h&&null!=m&&(m(),h=3)};g.getData=function(){return 2==h?e:null};g.__start=
1026function(){0==h&&(h=1,b(n,p))};g.__getState=function(){return h};g.__getMasterTask=function(){return d};g.__addSlaveTask=function(c){"object"==typeof c&&c instanceof l&&(2==h?c.__start():k.push(c))}};window.AsyncQueue=function(){var f=this,b=[],g=null,h=null;f.add=function(a){return"function"==typeof a?(a=new l(f,a),b.push(a),a):null};f.addRange=function(a,d,k){for(var e=0;e<arguments.length;e++)"function"==typeof arguments[e]&&f.add(arguments[e]);return f};f.start=function(){for(var a=!1,d=0;d<b.length;d++)if(1==
1027b[d].__getState()||2==b[d].__getState()){a=!0;break}if(!a)for("function"==typeof h&&h(0,b.length,null),d=0;d<b.length;d++)a=b[d],0!=a.__getState()||null!=a.__getMasterTask()&&2!=a.__getMasterTask().__getState()||a.__start();return f};f.done=function(a){if("function"==typeof a){for(var d=!0,k=0;k<b.length;k++)if(2!=b[k].__getState()){d=!1;break}d?a():g=a}return f};f.step=function(a){if("function"==typeof a){for(var d=!0,k=!1,e=0;e<b.length;e++)1==b[e].__getState()?k=!0:2!=b[e].__getState()&&(d=!1);
1028k?a(0,b.length,null):d?a(b.length,b.length,null):h=a}return f};f.stop=function(){for(var a=0;a<b.length;a++)1==b[a].__getState()&&b[a].stop();return f};f.__checkTasks=function(a){for(var d=!0,k=0,e=0;e<b.length;e++)2==b[e].__getState()?k++:d=!1;"object"==typeof a&&a instanceof l&&"function"==typeof h&&h(k,b.length,a);d&&"function"==typeof g&&g()}}})(jQuery);
1029(function(d){d.fn.adjustcontent=function(q){function r(){d(window).resize(function(){m()})}function m(){var a=e.parent().width();var b=Math.round(a/((h+g)/2));b<f?b=f:b>k&&(b=k);1==b&&g<a&&h<=a/2?b=2:(b+1)*g<a?t(b):d(".adjustcontent-break").remove();a=b;if(a!=n){n=a;if(1<a||1<f){b=100/a;if(100>a*b)for(;100>a*b;)b+=.01;if(100<a*b)for(;100<a*b;)b-=.01;a=b.toFixed(2);c.css("width",a+"%")}else c.css("width","100%");p&&u()}}function t(a){c.filter(function(b){return 0==(b+1)%a}).after('<div class="adjustcontent-break" style="clear:both;"></div>')}
1030function u(){var a=0;d(l).each(function(){var b=0;d(this).children().each(function(){b+=d(this).outerHeight(!0)});b>a&&(a=b)});d(l).height(a)}var e=this,l="",h=200,g=400,f=1,k=12,n=0,c=null,p=!1;(function(a){"autoHeight"in a&&(p=1==a.autoHeight);"minWidth"in a?h=parseInt(a.minWidth):console.warn("minWidth-Fallback: "+h);"maxWidth"in a?g=parseInt(a.maxWidth):console.warn("maxWidth-Fallback: "+g);"minCols"in a?f=parseInt(a.minCols):console.warn("minCols-Fallback: "+f);"maxCols"in a?k=parseInt(a.maxCols):
1031console.warn("maxCols-Fallback: "+k);if("children"in a)l=a.children;else return console.error('Keine "children"-Option im initialen Parameter gesetzt!'),!1;return"number"!==typeof h?(console.error('"minWidth" muss eine Zahl sein!'),!1):"number"!==typeof g?(console.error('"maxWidth" muss eine Zahl sein!'),!1):"number"!==typeof f?(console.error('"minCols" muss eine Zahl sein!'),!1):"number"!==typeof k?(console.error('"maxCols" muss eine Zahl sein!'),!1):0>=f?(console.error('"minCols" muss gr\u00f6\u00dfer Null sein!'),
1032!1):f>k?(console.error('"minCols" darf nicht gr\u00f6\u00dfer als "maxCols" sein!'),!1):!0})(q)&&0<d(l).length&&(e.children(l).wrap('<div class="adjustcontent-wrapper"></div>'),c=e.children(".adjustcontent-wrapper"),e.append('<div style="clear:both;"></div>'),e.css("display","block"),e.css("margin-left","-.5em"),e.css("margin-right","-.5em"),e.css("padding","0"),c.css("display","block"),c.css("min-width","calc("+h+"px + 1em)"),c.css("max-width","calc("+g+"px + 1em)"),c.css("box-sizing","border-box"),
1033c.css("margin","0 0 1em"),c.css("padding","0 .5em"),c.css("float","left"),r(),m());return this}})(jQuery);
1034var NOLISManager={};NOLISManager.String={mergeAlternateString:function(e,t){for(var a=e.length,n="",r=0;r<a;r++)void 0!==e.charAt(r)&&(n+=e.charAt(r)),void 0!==t.charAt(r)&&(n+=t.charAt(r));return n},is_array:function(e){return"object"==typeof e&&e instanceof Array},str_replace_array:function(e,t,a){if("string"!=typeof a)return"";search_counter=e.length,NOLISManager.String.is_array(t)||(temp=t,t=new Array(temp));var n=t.length;if(n<search_counter){for(var r=n;r<search_counter;r++)t[r]=t[r-1];n=t.length}for(r=0;r<n;r++)a=a.split(e[r]).join(t[r]);return a},str_replace:function(e,t,a){return"string"!=typeof a?"":a.split(e).join(t)},str_replaceAmp:function(e){return"string"!=typeof e?"":e.split("&amp;").join("&")},str_to_lower:function(e){return search_array=new Array("A","B","C","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","Ä","Ü","Ö"),replace_array=new Array("a","b","c","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ä","ü","ö"),NOLISManager.String.str_replace_array(search_array,replace_array,e)},str_replaceUmlaute:function(e){return search_array=new Array("Ä","Ö","Ü","ä","ö","ü","ß","ø","å","æ"),replace_array=new Array("Ae","Oe","Ue","ae","oe","ue","ss","oe","aa","ae"),NOLISManager.String.str_replace_array(search_array,replace_array,e)},stripslashes:function(e){return"string"!=typeof e?"":e.replace(/\\/g,"")},replaceQuotes:function(e,t){return"string"!=typeof e?"":(null!==typeof t&&void 0!==t&&1!=t||(e=e.replace(/'/g,"&#039;")),null!==typeof t&&void 0!==t&&2!=t||(e=e.replace(/"/g,"&quot;")),e)},stripTags:function(e){var t=jQuery("<div>").html(e);jQuery("body").append(t),t.find("*:not(:visible)").remove();var a=t.text();return t.remove(),a},clearBezeichnung:function(e,t,a){if("string"!=typeof e)throw new Error("Input must be string");var n=t=t||"-";(a=a||!1)&&(n+="."),n="/[^a-z0-9"+t+"]/gi",a&&(n="/[^a-z0-9."+t+"]/gi");var r="/"+t+"{2,}/g";
1034return(e=(e=(e=(e=NOLISManager.String.str_replaceUmlaute(e)).toLowerCase()).replace(n,t)).replace(r,t)).trim()},b64e:function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))},b64d:function(e){return decodeURIComponent(Array.prototype.map.call(atob(e),function(e){return"%"+e.charCodeAt(0).toString(16)}).join(""))},objectToString:function(e,t){qoute=null===typeof t||void 0===t?'"':"'";var a="{",n=0;for(i in e)++n;var r=0;for(var o in e)a+=" "+qoute+o+qoute+": "+qoute+e[o]+qoute,r+1<n&&(a+=", "),r++;return a+"}"},generatePW:function(e,t,a){void 0===e&&(e=12),void 0===t&&(t="alphanum_special_nohtml"),void 0===a&&(a=2);var n="0123456789abcdef",r="abcdefghjkmnpqrstuvwxyz";1==a&&(r="ABCDEFGHJKMNPQRSTUVWXYZ",n="0123456789ABCDEF"),2==a&&(r+="ABCDEFGHJKMNPQRSTUVWXYZ",n+="ABCDEF");var i="23456789",o=r+i,s="";"alpha"==t&&(s=r),"numeric"==t&&(s=i),"alphanum"==t&&(s=o),"alphanum_special"==t&&(s=o+'!"$%&/(){}[]<>,.:;~+#-_^'),"alphanum_special_nohtml"==t&&(s=o+'!"$%&/(){}[]>,.:;~+#-_^'),"alphanum_special_nohtml_noaltchars"==t&&(s=o+"!$%&/(),.:;+#-"),"hexidec"==t&&(s=n);for(var l="",u=0,d=0;d<e;++d)u=Math.floor(Math.random()*(s.length-0))+0,l+=s.charAt(u);return l},passwordStrength:function(e){var t=0;return 0===e.length?-1:(e.length>16?t+=10:e.length>12?t+=7:e.length>10?t+=5:e.length>5&&(t+=3),e.match(/[a-z]/)&&(t+=3),e.match(/[A-Z]/)&&(t+=15),e.match(/\d+/)&&(t+=15),e.match(/(\d.*\d.*\d)/)&&(t+=15),e.match(/[!,@#$%^&*?_~]/)&&(t+=15),e.match(/([!,@#$%^&*?_~].*[!,@#$%^&*?_~])/)&&(t+=15),e.match(/[a-z]/)&&e.match(/[A-Z]/)&&(t+=6),e.match(/\d/)&&e.match(/\D/)&&(t+=6),e.match(/[a-z]/)&&e.match(/[A-Z]/)&&e.match(/\d/)&&e.match(/[!,@#$%^&*?_~]/)&&(t+=6),t>90?4:t>63?3:t>34?2:1)},showPasswordStrength:function(e,t){switch(t||(t="password_meter"),NOLISManager.String.passwordStrength(e)){case-1:jQuery("#"+t).css({display:"none",backgroundColor:"transparent"}),jQuery("#"+t).html("");break;case 0:case 1:jQuery("#"+t).css({display:"inline-block",backgroundColor:"#CC0000"}),jQuery("#"+t).html("schwach");break;case 2:jQuery("#"+t).css({display:"inline-block",backgroundColor:"#FF6600"}),jQuery("#"+t).html("mittel");break;case 3:case 4:jQuery("#"+t).css({display:"inline-block",backgroundColor:"#009933"}),jQuery("#"+t).html("stark")}},nl2br:function(e){return e=NOLISManager.String.str_replace("\r\n","<br />",e),e=NOLISManager.String.str_replace("\n\r","<br />",e),e=NOLISManager.String.str_replace("\r","<br />",e),NOLISManager.String.str_replace("\n","<br />",e)},startsWith:function(e,t){return e.substring(0,t.length)===t},endsWith:function(e,t){return-1!==e.indexOf(t,e.length-t.length)},splitEMail:function(e,t,a){void 0===t&&(t=3),void 0===a&&(a=3);var n=e.split("@"),r=n[1].split("."),i=r.slice(r.length>2?-2:-1).join("."),o={};return o.name=n[0],o.domain=n[1],o.tld=i,o.name_anonym=o.name.substring(0,t),o.domain1=o.domain.substring(0,o.domain.indexOf("."+o.tld)),o.domain1_anonym=o.domain1.substring(o.domain1.length-a),o.email_anonym=o.name_anonym+"***@***"+o.domain1_anonym+"."+o.tld,o},anonymizeTel:function(e,t,a){return void 0===t&&(t=3),void 0===a&&(a=3),e.substring(0,t)+"******"+e.substring(e.length-a)},getLocation:function(e){var t=document.createElement("a");return t.href=e,""==t.host&&(t.href=t.href),t},navigator_href_parser:function(e){var t=NOLISManager.String.getLocation(e),a=new Map(t.search.slice(1).split("&").map(function(e){return e.split("=")}));if(a.get("id"))return(i={typ:""}).uuid=a.get("id"),a.get("data-typ")&&(i.typ=a.get("data-typ")),i;if(a.get("x")&&a.get("y"))return(i={typ:""}).x=a.get("x"),i.y=a.get("y"),a.get("data-typ")&&(i.typ=a.get("data-typ")),i;var n=t.pathname.replace("/",""),r=(n=(n=n.replace("navigator/","")).replace(".html","")).split("-"),i={};switch(r[0]){case"leerstand":i.typ="leerstand",i.id=r[1],i.owner=r[2];break;case"immobilien":i.typ="immobilien",i.id=r[1],i.owner=r[2];break;case"suche-aufgrabeschein":default:i.typ="";break;case"aufgrabeschein":i.typ="aufgrabeschein",i.id=r[1],i.owner=r[2];break;case"mycontent":i.typ="mycontent",i.id=r[1],i.owner=r[2];break;case"mytermin":i.typ="mytermin",i.id=r[1],i.owner=r[2];break;case"kommune":i.typ="kommune",i.id=r[1];break;case"thema":i.typ="thema",i.id=r[1];break;case"standort":i.typ="link",i.layer=r[1],i.x=r[2],i.y=r[3];break;case"pin":i.typ="pin",i.x=r[1],i.y=r[2];break;case"bauleitplan":i.typ="bauleitplan",i.id=r[1],i.owner=r[2];break;case"baugebiet":i.typ="baugebiet",i.id=r[1],i.owner=r[2];break;case"gewerbegebiet":i.typ="gewerbegebiet",i.id=r[1],i.owner=r[2];break;case"flaeche":i.typ="flaeche",i.id=r[1],i.owner=r[2];break;case"tour":i.typ="tour",i.id=r[1],i.owner=r[2];break;case"poi":i.typ="poi",i.id=r[1],i.owner=r[2];break;case"notruf":i.typ="notruf",i.id=r[1],i.owner=r[2];break;case"veranstaltung":i.typ="veranstaltung",i.id=r[1],i.owner=r[2];break;case"meldung":i.typ="meldung",i.id=r[1],i.owner=r[2];break;case"seite":i.typ="seite",i.id=r[1],i.owner=r[2]}return i},autolinkTel:function(e){"undefined"!=e&&""!=e||(e=0);var t=jQuery("body").hasClass("touch"),a=jQuery("body").hasClass("no-autolink-tel");jQuery("body").hasClass("autolink-tel-notouch")&&(e=1),a||!t&&!e||jQuery("span.tel:not(:has(*))").each(function(){var e=jQuery(this).text(),t=e;t=(t=(t=(t=(t=(t=t.replace(";","")).replace("-","")).replace(" ","")).replace("/","")).replace("&nbsp;","")).replace(" ","");var a=e;jQuery(this).replaceWith('<a title="'+a+'" href="tel:'+t+'" itemprop="telephone" rel="nofollow">'+e+"</a>")})},mirrorInput:function(e,t){return null!=e&&null!=t&&(jQuery(e).off("keyup").keyup(function(){var e=jQuery(this).val();jQuery(t).text(e).attr("label",e).attr("placeholder",e)}),!0)}},NOLISManager.multiRowHandler={inited_parents:[],callbacks:{},init:function(e,t,a={}){Array.isArray(e)||(e=[e]);var n=null,r=null,i=jQuery(t);this.callbacks=a;for(var o=0;o<e.length;o++)if(n=e[o],0<(r=jQuery("#"+n)).length&&"true"!=r.data("init-multiRowHandler")){r.data("init-multiRowHandler","true"),this.inited_parents.push(r),NOLISManager.multiRowHandler.updateParentStatus(n),r.on("click",function(e){NOLISManager.multiRowHandler.checkAll(j
1034Query(this).get(0)),r.prop("indeterminate",!1),r.is(":checked")&&0<i.length&&""!=i.val()&&(i.val("").keyup(),NAlert("Sie haben eine Mehrfachauswahl in einer über die Filterfunktion eingeschränkten Ergebnisliste getroffen.<br />Dies ist aus technischen Gründen leider nicht möglich. Eine Mehrfachauswahl kann immer nur anhand der ungefilterten Liste vorgenommen werden.<br />Aus diesem Grund wurde der Filter zurückgesetzt.",{color:"yellow"})),NOLISManager.multiRowHandler.runCallback("onChange",[r,r.is(":checked"),e]),NOLISManager.multiRowHandler.runCallback("onCheckParent",[r,r.is(":checked"),e])});let e=jQuery("input[type=checkbox]."+n);0<e.length?(e.not(":disabled").click(this.onChildClick),r.prop("disabled",!1),r.removeClass("disabled","no_children")):(r.prop("disabled",!0),r.addClass("disabled","no_children"))}},onChildClick:async function(e){let t=jQuery(e.target),a=NOLISManager.multiRowHandler.getBoxParents(t);0<a.length&&(jQuery.each(a,(e,t)=>{!t instanceof jQuery||1>t.length||NOLISManager.multiRowHandler.updateParentStatus(t.attr("id"))}),NOLISManager.multiRowHandler.runCallback("onChange",[t,t.is(":checked"),e]),NOLISManager.multiRowHandler.runCallback("onCheckChild",[t,t.is(":checked"),e]))},runCallback:async function(e,t={}){e in this.callbacks&&"function"==typeof this.callbacks[e]&&"object"==typeof t&&this.callbacks[e].apply(this,t)},destroy:async e=>{let t=null;if(!Array.isArray(e))if("object"!=typeof e)e=[e];else{let t=[];for(val in e)t.push(val);e=t}e.forEach(e=>{t=jQuery("#"+e),0<t.length&&"true"==t.data("init-multiRowHandler")&&(NOLISManager.multiRowHandler.inited_parents=jQuery.grep(NOLISManager.multiRowHandler.getActiveParents(),t=>t.attr("id")!=e),t.prop("checked",!1),t.prop("indeterminate",!1),t.off(),jQuery("input[type=checkbox]."+e).off(),t.data("init-multiRowHandler","false"))})},reInit:async function(e){if(!Array.isArray(e))if("object"!=typeof e)e=[e];else{let t=[];for(val in e)t.push(val);e=t}await NOLISManager.multiRowHandler.destroy(e),await NOLISManager.multiRowHandler.init(e,"",this.callbacks)},getActiveParents:function(){return this.inited_parents},getBoxParents:function(e){return!e instanceof jQuery?null:jQuery.grep(NOLISManager.multiRowHandler.getActiveParents(),t=>e.hasClass(t.attr("id")))},updateParentStatus:function(e){var t=!0,a=!0;let n=jQuery("#"+e);jQuery("input[type=checkbox]."+e+":not(:disabled)").each(function(){this.checked?this.checked&&(a=!1):t=!1}),a?(n.prop("indeterminate",!1),n.prop("checked",!1)):t?(n.prop("indeterminate",!1),n.prop("checked",!0)):(n.prop("indeterminate",!0),n.prop("checked",!1))},checkAll:function(e){let t=jQuery("input[type=checkbox]."+e.id+":not(:disabled)");t.off("click","",this.onChildClick),t.prop("checked",!e.checked),t.click(),"onCheckAll"in this.callbacks&&"function"==typeof this.callbacks.onCheckAll&&this.callbacks.onCheckAll(t,e.checked);let a=[],n=e.id;1<NOLISManager.multiRowHandler.getActiveParents().length&&t.each((e,t)=>{t=jQuery(t);let r=jQuery(NOLISManager.multiRowHandler.getBoxParents(t));r instanceof jQuery&&0<r.length&&r.each((e,t)=>{let r=(t=jQuery(t)).attr("id");r.length&&r!==n&&!NOLISManager.Helper.inArray(a,r)&&a.push(r)})}),"object"==typeof a&&0<a.length&&a.forEach(e=>{NOLISManager.multiRowHandler.updateParentStatus(e)}),t.on("click",this.onChildClick)},hasSelected:async function(e=null,t=!0){if("object"==typeof e&&e instanceof jQuery||1!=this.inited_parents.length||(e=this.inited_parents[0]),e instanceof jQuery){if("string"==typeof e.attr("id"))return 0<(await NOLISManager.multiRowHandler.getSelected(e)).length||(1==t&&(1==jcms?await NAlert("Sie haben keine Einträge ausgewählt.",{color:"blue",header:"Hinweis"}):alert("Sie haben keine Einträge ausgewählt.")),!1)}else console.warn("Ungültige master Checkbox bei der Abfrage der angewählten übergeben: ",e);return!1},getSelected:async function(e=null){if("object"==typeof e&&e instanceof jQuery||1!=this.inited_parents.length||(e=this.inited_parents[0]),e instanceof jQuery){let t=e.attr("id");return jQuery("input."+t).not(":disabled").filter(":checked")}return jQuery()},doDelete:async function(e,t,a){var n=!(void 0===typeof e||""==e||!e),r=!(!NOLISManager.Helper.isset(t)||""==t||1!=jQuery("input[type=hidden]#"+t).length)&&jQuery("input[type=hidden]#"+t);if(NOLISManager.Helper.isset(a)&&!jQuery.isEmptyObject(a)&&NOLISManager.Helper.isset(a.text_einz)&&NOLISManager.Helper.isset(a.text_mehrz)||(a={text_einz:"Wollen Sie diesen Eintrag wirklich löschen?",text_mehrz:"Wollen Sie die ausgewählten Einträge wirklich löschen?"}),n)"1"==await NConfirm(a.text_einz)?(await exitFullscreenView("fullscreenIn","fullscreenOption",1),jQuery(".checkbox_delete").each(function(){jQuery(this).prop("checked",!1)}),jQuery("#"+e).prop("checked",!0),r&&jQuery(r).val("1"),submitForm(
1034)):r&&jQuery(r).val("0");else{if(1!=await NOLISManager.multiRowHandler.hasSelected())return!1;let e=await NOLISManager.multiRowHandler.getSelected(),t=a.text_mehrz;1==e.length&&(t=a.text_einz),"1"==await NConfirm(t)&&(await exitFullscreenView("fullscreenIn","fullscreenOption",1),r&&jQuery(r).val("1"),submitForm())}}},NOLISManager.Helper={datalazy2src:function(e){jQuery("[data-lazy-src]",jQuery(e)).each(function(){jQuery(this).attr("src",jQuery(this).data("lazy-src")).removeAttr("data-lazy-src")})},reloadCaptcha:function(e,t,a,n){NOLISManager.Helper.getCaptchaData(function(r){!1!==r&&(jQuery(e).html("Bitte das Ergebnis folgender Berechnung eingeben: <span>"+r.task+"</span>"),jQuery(t).val(r.id),jQuery(a).attr("data-placeholder",r.task)),"function"==typeof n&&n(r)})},getCaptchaData:function(e){var t=jurl2domain+"scripts/ajax.php?route=getCaptchaData";jQuery.ajax(t).done(function(t){"function"==typeof e&&e(t)}).fail(function(){"function"==typeof e&&e(!1)})},createClass:function(){return function(){this.initialize.apply(this,arguments)}},callback:function(e,t){var a=[];if(void 0!==t&&t.constructor==Array&&(a=t),"function"==typeof e)e.apply(null,a);else{var n=e,r=e.split("."),i=r.length;if(i>1)for(var o=window[r[0]],s=1;s<i;s++)o=o[r[s]];else o=window[n];"function"==typeof o&&o.apply(null,a)}},isEmptyObject:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return JSON.stringify(e)===JSON.stringify({})},loadScripts:function(e,t,a,n){var r=jQuery.Deferred();return void 0===a&&(a=!0),a=Boolean(a),void 0===n&&(n=!1),(n=Boolean(n))&&(console.log(e),console.log(t),console.log(a)),void 0!==e&&e.constructor==Array&&(scripts_in_dom_arr=[],jQuery("script[src]").each(function(e){scripts_in_dom_arr.push(jQuery(this).attr("src"))}),n&&console.log(scripts_in_dom_arr),function i(o){if(o<e.length){var s=(t||"")+e[o];-1===jQuery.inArray(s,scripts_in_dom_arr)?(n&&console.log(s+" loading"),scripts_in_dom_arr.push(s),jQuery.ajax({url:s,dataType:"script",cache:a,crossDomain:!0,success:function(){n&&console.log(" loaded"),i(o+1)}})):(n&&console.log(s+" already in DOM"),i(o+1))}else r.resolve()}(0)),r},radiocheckboxFocus:function(){jQuery(document).on("keyup","input[type=radio], input[type=checkbox]",function(e){if(9===e.which){var t=jQuery(this);return t.addClass("tabbed"),void t.one("blur",function(e){jQuery(this).removeClass("tabbed")})}})},browserDetection:function(e){var t,a,n,r,i,o=0,s=0,l=0,u=0,d=0;t=document;var c=navigator,m=c.appVersion,h=c.userAgent;if(r=-1!=m.indexOf("Win"),n=-1!=m.indexOf("Mac"),lin=-1!=h.indexOf("Linux"),!t.layers){a=t.getElementById,i=-1!=h.indexOf("Opera");var p=-1!=h.indexOf("Konqueror"),g=-1!=h.indexOf("Safari");moz=-1!=h.indexOf("Gecko")&&!g&&!p,s=(o=t.all&&!i)&&!a,l=t.all&&a,u=n&&l,d=r&&l}if("ie"==e){var y=!1;return(o||s||l||u||d)&&(y=!0),y}},browserDetectionObj:function(){var e=navigator.userAgent;e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],a={browser:t[1]||"",version:t[2]||"0"};return a.browser&&(a[a.browser]=!0),a.chrome?a.webkit=!0:a.webkit&&(a.safari=!0),a},sleep:function(e){for(var t=(new Date).getTime()+e;(new Date).getTime()<t;);},inArray:function(e,t){for(var a=0;a<e.length;++a)if(e[a]==t)return!0;return!1},uniqueArray:function(e){for(var t={},a=[],n=0;n<e.length;n++)t[e[n]]||(t[e[n]]=!0,a.push(e[n]));return a},array_intersection:function(e,t){e.sort(),t.sort();var a=j=0;for(ret=[];a<e.length&&j<t.length;)e[a]<t[j]?a++:(t[j]<e[a]||(ret.push(e[a]),a++),j++);return ret},getMouseXY:function(e){e=jQuery.event.fix(e||window.event),x=e.pageX,y=e.pageY},getcordsInDiv:function(e,t){jQuery("#"+t).position().left,jQuery("#"+t).position().top;(e=jQuery.event.fix(e||window.event)).pageX,e.pageY,jQuery("#"+t).outerHeight(),jQuery("#"+t).outerWidth()},checkRadio:function(e){for(var t=0;t<e.length;t++)if(!0===e[t].checked)return e[t].value;return!1},checkSelect:function(e,t,a){for(var n=jQuery(e).find("option"),r=null,i=0;i<n.length;i++)if(n[i].selected){r=n[i],1==t&&(r=n[i].value),1==a&&(r=n[i].text);break}return r},setSelectByValue:function(e,t){jQuery(e).find('option[value="'+t+'"]').prop("selected",!0)},AutoTab:function(e,t){e.value.length==e.getAttribute("maxlength")&&t.focu
1034s()},makeDatumAuswahl:function(e,t,a){NOLISManager.Helper.makeKalender(e,t,null,a)},makeMonatsauswahl:function(e,t,a,n){defaults={prefix:"datum",reference:""},a=jQuery.extend(defaults,a),monthPickerDefaults={selectfeld:1,jahr_zurueck:5,jahr_vor:5},n=jQuery.extend(monthPickerDefaults,n),""!=jQuery("#"+a.prefix+"_jahr").val()?n.jahr=jQuery("#"+a.prefix+"_jahr").val():""!=a.reference&&(ref_monat=jQuery("#"+a.reference+"_monat").val(),ref_jahr=jQuery("#"+a.reference+"_jahr").val(),""!=ref_jahr&&(n.jahr=ref_jahr)),mouseX=e.pageX,mouseY=e.pageY,$monthPicker=jQuery("#monthPicker"),$monthPicker.length<1?($monthPicker=jQuery('<div id="monthPicker">MonthPicker</div>'),jQuery($monthPicker).appendTo("body")):$monthPicker.show(),$monthPicker.css("position","absolute"),$monthPicker.css("top",mouseY+"px"),$monthPicker.css("left",mouseX+"px"),$monthPicker.css("z-index","999"),$monthPicker.load(t,n,function(){jQuery("#monthPicker .monat").click(function(){monat=jQuery(this).attr("data-month"),jahr=jQuery("#month_picker_jahr_input").val(),$inputMonat=jQuery("#"+a.prefix+"_monat"),$inputJahr=jQuery("#"+a.prefix+"_jahr"),$inputMonat.length>0&&$inputJahr.length>0&&(1==monat.length&&(monat="0"+monat),$inputMonat.val(monat),$inputJahr.val(jahr)),$monthPicker.hide()})})},makeKalender:function(e,t,a,n){var r={},i=t+"_datepicker";if(document.getElementById(i)||(r={id:i,class:"datepicker"},jQuery("<div/>",r).prependTo(document.body),r={id:i+"_head",class:"datepicker_head",style:""},jQuery("<div/>",r).prependTo("#"+i),r={id:i+"_head_close",class:"",style:"",href:"javascript:void(0);"},jQuery("<a/>",r).prependTo("#"+i+"_head"),jQuery("#"+i+"_head_close").bind("click",function(e){jQuery("#"+i).hide(),jQuery(".background-area").remove()}),r={id:i+"_content",class:"datepicker_content",style:""},jQuery("<div/>",r).appendTo("#"+i),jQuery("#"+i).draggable({handle:"#"+i+"_head",containment:"document"})),jQuery("#"+i).show(),0==jQuery(".background-area").length&&jQuery("body").append('<div class="background-area"></div>'),a){var o=jQuery("#"+a.cloneid).offset();a.offsetLeft&&(o.left+=a.offsetLeft),a.offsetTop&&(o.top+=a.offsetTop),jQuery("#"+i).css({position:"absolute",width:"200px",top:o.top+"px",left:o.left+"px"})}else NOLISManager.Helper.clonePosition(i,null,{left:"mitte",top:65},1);var s={method:"get"};s.date_picker_url=e,s.kalender_id=i+"_content",n.tdonclick_url&&(s.tdonclick_url=n.tdonclick_url),n.tdonclick&&(s.tdonclick=n.tdonclick),n.tdondblclick_url&&(s.tdondblclick_url=n.tdondblclick_url),n.tdondblclick&&(s.tdondblclick=n.tdondblclick),n.month_link&&(s.month_link=n.month_link),n.month_link_onclick&&(s.month_link_onclick=n.month_link_onclick),n.selectfeld&&(s.selectfeld=n.selectfeld),n.von&&(s.von=n.von),n.bis&&(s.bis=n.bis),document.getElementById(t+"_jahr")&&document.getElementById(t+"_jahr").value&&document.getElementById(t+"_monat")&&document.getElementById(t+"_monat").value?(s.year=document.getElementById(t+"_jahr").value,s.month=document.getElementById(t+"_monat").value):(n.year&&(s.year=n.year),n.month&&(s.month=n.month),n.depending&&(document.getElementById(n.depending+"_jahr").value&&(s.year=document.getElementById(n.depending+"_jahr").value),document.getElementById(n.depending+"_monat").value&&(s.month=document.getElementById(n.depending+"_monat").value))),jQuery.ajax({url:e,type:s.method,dataType:"html",data:s}).done(function(e){jQuery("#"+i+"_content").html(e),setTimeout(function(){a?NOLISManager.Helper.moveToVisibility(i):NOLISManager.Helper.centerHorizontalWithinViewport(i)},250)})},sendDay:function(e,t,a,n,r){0==n&&(document.getElementById(r+t+"_stunde")?(""==document.getElementById(r+t+"_minute").value&&jQuery("#"+r+t+"_minute").val(e.substr(10,2)).change(),""==document.getElementById(r+t+"_stunde").value&&jQuery("#"+r+t+"_stunde").val(e.substr(8,2)).change()):(""==jQuery('form input[name="'+t+'_minute"]').val()&&jQuery('form input[name="'+t+'_minute"]').val(e.substr(10,2)).change(),""==jQuery('form input[name="'+t+'_minute"]').val()&&jQuery('form input[name="'+t+'_stunde"]').val(e.substr(8,2)).change())),document.getElementById(r+t+"_tag")?(jQuery("#"+r+t+"_tag").val(e.substr(6,2)).change(),jQuery("#"+r+t+"_monat").val(e.substr(4,2)).change(),jQuery("#"+r+t+"_jahr").val(e.substr(0,4)).change()):(jQuery('form input[name="'+t+'_tag"]').val(e.substr(6,2)).change(),jQuery('form input[name="'+t+'_monat"]').val(e.substr(4,2)).change(),jQuery('form input[name="'+t+'_jahr"]').val(e.substr(0,4)).change()),document.getElementById(r+t+"_datepicker")&&(jQuery("#"+r+t+"_datepicker").hide(),jQuery(".background-area").remove())},copyDatum:function(e,t,a){document.getElementById(t+"_tag").value=d
1034ocument.getElementById(e+"_tag").value,document.getElementById(t+"_monat").value=document.getElementById(e+"_monat").value,document.getElementById(t+"_jahr").value=document.getElementById(e+"_jahr").value,1==a&&(document.getElementById(t+"_stunde").value=document.getElementById(e+"_stunde").value,document.getElementById(t+"_minute").value=document.getElementById(e+"_minute").value)},setWochentagOnInputDate:function(e,t){var a="",n=jQuery("#"+e+"_jahr").val(),r=jQuery("#"+e+"_monat").val(),i=jQuery("#"+e+"_tag").val(),o=new Date(n+"-"+r+"-"+i);isNaN(o.getTime())||(a=NOLISManager.Helper.getWochentagString(o.getDay(),t)+" "),jQuery("#"+e+"_WochentagText").text(a)},timestamp2date:function(e,t){var a,n,r,i,o,s;if(a=(e=String(e)).substr(0,4),n=e.substr(4,2),r=e.substr(6,2),i=e.substr(8,2),o=e.substr(10,2),s=e.substr(12,2),1==t)(l={}).year=a,l.month=n,l.day=r,l.hour=i,l.minute=o,l.second=s,l.millisecond=0;else var l=new Date(a,n-1,r,i,o,s,0);return l},dateformat:function(e){var t={};return t.year=e.getFullYear(),t.month=String(e.getMonth()+1),1==t.month.length&&(t.month="0"+t.month),t.day=String(e.getDate()),1==t.day.length&&(t.day="0"+t.day),t.hour=String(e.getHours()),1==t.hour.length&&(t.hour="0"+t.hour),t.minute=String(e.getMinutes()),1==t.minute.length&&(t.minute="0"+t.minute),t.second=String(e.getSeconds()),1==t.second.length&&(t.second="0"+t.second),t.millisecond=String(e.getMilliseconds()),1==t.millisecond.length?t.millisecond="00"+t.millisecond:2==t.millisecond.length&&(t.millisecond="0"+t.millisecond),t},getWochentagString:function(e,t){return e="object"==typeof e?e.getDay():e,"kurz"==t?["So","Mo","Di","Mi","Do","Fr","Sa","So"][e]:"b"==t?["S","M","D","M","D","F","S","S"][e]:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"][e]},getMonatString:function(e,t){return e="object"==typeof e?e.getMonth():e,"kurz"==t?["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"][e]:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"][e]},textCounter:function(e,t,a,n){if(1!=n&&document.getElementById(e).value.length>
1034t&&(document.getElementById(e).value=document.getElementById(e).value.substring(0,t)),null!==typeof a&&void 0!==a&&""!==a){var r=t-document.getElementById(e).value.length;document.getElementById(a).innerHTML=r}},getLastDateInMonth:function(e,t){var a=new Date(e,t+1,1);return a.setTime(a.getTime()-432e5),a},createEvent:function(e){var t={};return""===e&&(e="Events"),document.createEvent?t=document.createEvent(e):document.createEventObject&&(t=document.createEventObject()),t},raiseEvent:function(e,t){var a=document.getElementById(t);if(document.createEvent)(n=document.createEvent("Events")).initEvent(e,!0,!0),a.dispatchEvent(n);else if(document.createEventObject){var n=document.createEventObject();a.fireEvent("on"+e,n)}a=null},toggleDisplayI:function(e,t,a,n,r){var i="undefined";"undefined"!=jQuery(e).children("i")[0]&&(i=jQuery(jQuery(e).children("i")[0])),void 0!==r?1==r?(jQuery("#"+t).show(),"undefined"!=i&&(i.removeClass(a),i.addClass(n),jQuery(e).attr("title","zuklappen"))):(jQuery("#"+t).hide(),"undefined"!=i&&(i.removeClass(n),i.addClass(a),jQuery(e).attr("title","aufklappen"))):""===document.getElementById(t).style.display?(jQuery("#"+t).hide(),"undefined"!=i&&(i.removeClass(n),i.addClass(a),jQuery(e).attr("title","aufklappen"))):(jQuery("#"+t).show(),"undefined"!=i&&(i.removeClass(a),i.addClass(n),jQuery(e).attr("title","zuklappen")))},toggleDisplay:function(e,t,a,n,r){void 0!==r?1==r?(document.getElementById(e).style.display="",void 0!==t&&(document.getElementById(t).src=n,document.getElementById(t).title="zuklappen")):(document.getElementById(e).style.display="none",void 0!==t&&(document.getElementById(t).src=a,document.getElementById(t).title="aufklappen")):""===document.getElementById(e).style.display?(document.getElementById(e).style.display="none",void 0!==t&&(document.getElementById(t).src=a,document.getElementById(t).title="aufklappen")):(document.getElementById(e).style.display="",void 0!==t&&(document.getElementById(t).src=n,document.getElementById(t).title="zuklappen"))},toggleDisplayIconById:function(e,t,a,n,r){if(void 0!==r&&(1==r||0==r))return 1==r?(document.getElementById(e).style.display="",void 0!==t&&(document.getElementById(t).className=n,document.getElementById(t).title="zuklappen"),!0):(document.getElementById(e).style.display="none",void 0!==t&&(document.getElementById(t).className=a,document.getElementById(t).title="aufklappen"),!1);if(""===document.getElementById(e).style.display){if(document.getElementById(e).style.display="none",void 0!==t)return document.getElementById(t).className=a,document.getElementById(t).title="aufklappen",!1}else if(document.getElementById(e).style.display="",void 0!==t)return document.getElementById(t).className=n,document.getElementById(t).title="zuklappen",!0},toggleDisplayIcon:function(e,t,a,n,r,i,o){var s,l=jQuery(e),u=jQuery(t);return i=void 0!==i?i:"aufklappen",o=void 0!==o?o:"zuklappen",s="none"!=l[0].style.display,void 0!==r?1==r?(jQuery.each(l,function(e,t){jQuery(t).hide()}),void 0!==u&&(u.attr("class",n),u.attr("title",i)),!0):(jQuery.each(l,function(e,t){jQuery(t).show()}),void 0!==u&&(u.attr("class",a),u.attr("title",o)),!1):0==s?(jQuery.each(l,function(e,t){jQuery(t).show()}),void 0!==u&&(u.attr("class",a),u.attr("title",o)),!1):(jQuery.each(l,function(e,t){jQuery(t).hide()}),void 0!==u&&(u.attr("class",n),u.attr("title",i)),!0)},toggleDisplayByClass:function(e,t,a,n,r){var i=jQuery(e),o=!0;o="none"!=i[0].style.display,void 0!==r?1==r?(jQuery.each(i,function(e,t){jQuery(t).show()}),o=!1,null!=t&&(document.getElementById(t).src=n,document.getElementById(t).title="zuklappen")):(jQuery.each(i,function(e,t){jQuery(t).hide()}),o=!0,null!=t&&(document.getElementById(t).src=a,document.getElementById(t).title="aufklappen")):0==o?(jQuery.each(i,function(e,t){jQuery(t).show()}),null!=t&&(document.getElementById(t).src=n,document.getElementById(t).title="zuklappen")):(jQuery.each(i,function(e,t){jQuery(t).hide()}),null!=t&&(document.getElementById(t).src=a,document.getElementById(t).title="aufklappen"))},reassignTabOrdersForm:function(e){var t=0;jQuery(e).find(":input").each(function(){var e=jQuery(this);e.is(":visible")&&(e.attr("tabindex",t),t++)})},resetInput:function(e){for(i in e)document.getElementById(e[i]).value=""},resetSearch:function(e){for(a in e){var t=document.getElementById(e[a]);if(!t){const e=/^ergaenzende_angaben\[\d+\]\[\d+\]\[value\]$/,t=document.querySelectorAll("select");for(var a=0;a<t.length;
1034a++)if(e.test(t[a].name)){element_ergaenzende_angabe=t[a],element_ergaenzende_angabe.options.length>0&&(element_ergaenzende_angabe.selectedIndex=0);var n=new Event("change",{bubbles:!0,cancelable:!0});element_ergaenzende_angabe.dispatchEvent(n)}}if(t)if("select"===t.tagName.toLowerCase())t.options.length>0&&(t.selectedIndex=0),n=new Event("change",{bubbles:!0,cancelable:!0}),t.dispatchEvent(n);else if("input"===t.tagName.toLowerCase()){switch(t.type){case"text":t.value="";case"checkbox":t.checked=!1;case"radio":document.getElementsByName(t.name).forEach(function(e){e.checked=!1});default:t.value=""}n=new Event("click",{bubbles:!0,cancelable:!0}),t.dispatchEvent(n)}else t.value=""}},resetForm:function(e){jQuery("#"+e).get(0).reset()},clearFormElements:function(e){jQuery(e).find(":input").each(function(){switch(this.type){case"password":case"select-multiple":case"select-one":case"text":case"textarea":jQuery(this).val("");break;case"checkbox":case"radio":this.checked=!1}})},combineFroms:function(e,t){jQuery("#"+e+" :input[data-isacopy]").remove(),jQuery("#"+t+" :input").not(":submit").not("textarea").not("select").each(function(){jQuery(this).attr("value",jQuery(this).val())}),jQuery("#"+t+" textarea").each(function(){jQuery(this).text(jQuery(this).val())}),jQuery("#"+t+" select").each(function(){jQuery('option[value!="'+jQuery(this).val()+'"]',this).remove(),jQuery('option[value="'+jQuery(this).val()+'"]',this).prop("selected","selected")}),jQuery("#"+t+" :input").not(":submit").clone().hide().attr("data-isacopy","y").appendTo("#"+e)},serializeForm2Object:function(e){var t={},a=jQuery("#"+e).serializeArray();return jQuery.each(a,function(e,a){t[a.name]?(t[a.name].push||(t[a.name]=[t[a.name]]),t[a.name].push(a.value||"")):t[a.name]=a.value||""}),t},serializeForm2singlefield:function(e,t){var a=jQuery("#"+e),n=a.serialize();a.find(":input").not(":disabled").not(":button").attr("data-mdisable","true").prop("disabled","true");var r=jQuery('<input type="hidden" name="'+t+'" value="" />');jQuery(r).appendTo("#"+e),jQuery(r).val(n)},data2url:function(e,t,a,n,r,i){n=n||"post",r=r||"nolisformid",a=a||"_blank",i=i||"";var o=jQuery("<form></form>");if(o.attr("action",e),o.attr("target",a),o.attr("method",n),o.attr("id",r),jQuery.each(t,function(e,t){var a=jQuery("<input></input>");a.attr("type","hidden"),a.attr("name",t.name),a.attr("value",t.value),o.append(a)}),i.length){let e=o.serializeArray();o.children().remove();let t=jQuery("<input />",{type:"hidden",name:i,value:JSON.stringify(e)});o.append(t)}let s=jQuery(document.body).find("#"+r);0<s.length&&s.remove(),jQuery(document.body).append(o),o.submit(),"_self"!=a&&(0<s.length?o.replaceWith(s):o.remove())},smoothScrollTo:function(e,t,a,n,r,i){if(void 0===t&&(t=1e3),void 0===r&&(r=""),void 0===a&&(a="swing"),void 0===i&&(i=0),0==t)window.location.hash="#"+e,n&&"function"==typeof n&&(""==r?n(e,t,a):n(r));else{var o=i;try{jQuery("#"+e).length>0&&(o=jQuery("#"+e).offset().top+i)}catch(e){o=i}var s="html,body";jQuery("#main_main").length>0&&(s="#main_main",jQuery(".outer-arbeitsbereich").length>0&&(s=".arbeitsbereich_in2"),o-=jQuery(s).offset().top,jQuery("#tabs").length>0&&(o+=jQuery("#tabs").outerHeight(!0)),jQuery(".outer-arbeitsbereich").length>0&&(o+=jQuery(".outer-arbeitsbereich").outerHeight(!0)),s="#main_main"),jQuery(s).stop().animate({scrollTop:o},t,a,function(){n&&"function"==typeof n&&(""==r?n(e,t,a):n(r))}),jQuery(".large-table-xscroll").length>0&&(s=".large-table-xscroll",o-=jQuery(s).offset().top,jQuery(s).stop().animate({scrollTop:o},t,a,function(){n&&"function"==typeof n&&(""==r?n(e,t,a):n(r))}))}return!1},scrollToHashFixedHeader:function(e,t,a,n,r){void 0===t&&(t="#head"),void 0===a&&(a=50),void 0===n&&(n=200),void 0===r&&(r="swing");var i=jQuery(t).height()+a,o=jQuery(e);if((o=o.length?o:jQuery("[name="+e.slice(1)+"]")).length)return jQuery("html, body").animate({scrollTop:o.offset().top-i},n,r),!1},highlightAnchor:function(e){setTimeout(function(){jQuery("#"+e.id).addClass("highlightAnchor")},100),setTimeout(function(){jQuery("#"+e.id).removeClass("highlightAnchor")},600),setTimeout(function(){jQuery("#"+e.id).addClass("highlightAnchor")},1100),setTimeout(function(){jQuery("#"+e.id).removeClass("highlightAnchor")},1600)},highlightELement:function(e){var t="#ffff99",a="#ffffff",n=jQuery("#"+e.id).css("background-color"),r=1200;e.startcolor&&(t=e.startcolor),e.endcolor&&(a=e.endcolor),e.restorecolor&&(t=e.restorecolor),e.duration&&(r=e.duration),jQuery("#"+e.id).css("background-color",t),jQuery("#"+e.id).animate({"background-color":a},r,function(){jQuery("#"+e.id).css("background-color",n)})},showAndHide:function(e,t){document.getElementById(e).style.display="inline",document.getElementById(t).style.display="none"},autoresize_iframe_height:function(e){if(window.frames[e]&&window.frames[e].document){window.frames[e].window.scroll(0,0);var t=window.frames[e].document.body;t&&(height=(t.scrollHeight||t.offsetHeight)+10,document.getElementById(e).style.height=height+"px")}}
1034,openIFrame:function(e,t,a,n,r,i){NOLISManager.Helper.move2body(t);var o=1,s=0,l=0,u={};void 0!==i.top?(l="mitte"==i.top?jQuery(window).height()/2:i.top,o=0):void 0!==i.offsetTop?u.offsetTop=i.offsetTop:u.offsetTop=0,void 0!==i.left?(s="mitte"==i.left?jQuery(window).width()/2-100:i.left,o=0):void 0!==i.offsetLeft?u.offsetLeft=i.offsetLeft:u.offsetLeft=50,jQuery("#"+t).show(),document.getElementById(t+"_handle")&&jQuery("#"+t).draggable({handle:"#"+t+"_handle",containment:"document"}),document.getElementById(a).src=n+"?divid="+t+"&"+r;var d=jQuery("#"+a).width();jQuery("#"+a).css({width:d+"px"}),document.getElementById(t+"_handle")&&jQuery("#"+t+"_handle").css({width:d+"px"}),jQuery("#"+t).css({position:"absolute",top:l+"px",left:s+"px"}),1==o&&NOLISManager.Helper.clonePosition(t,e,u,1)},resizeMiddle:function(e,t){var a=(window.innerHeight||window.document.documentElement.clientHeight||window.document.body.clientHeight)-t;browserVer=navigator.appVersion,-1!=browserVer.indexOf("MSIE 6.0")?e.style.height=a+"px":e.style.minHeight=a+"px"},isset:function(e){return null!=typeof e&&void 0!==e},ShowAll:function(e,t,a,n){for(var r=0;r<t;r++)jQuery("a.zugeklappt[aria-controls='"+e+r+"']").click()},HideAll:function(e,t,a,n){for(var r=0;r<t;r++)jQuery("a.aufgeklappt[aria-controls='"+e+r+"']").click()},SlideShowHide:function(e,t,a,n,r,i,o){NOLISManager.Helper.datalazy2src("#"+t),e=jQuery(e);var s=jQuery("#"+t),l=jQuery("#"+a);if(s.length>0){var u=s.is(":visible")&&"show"!=i?"slideUp":"slideDown",d="string"==typeof s.attr("data-isSliding")&&"sliding"==s.attr("data-isSliding"),c="slideDown"==u?r:n;d||(s.attr("data-isSliding","sliding"),s[u]({duration:300,complete:function(){e.attr("aria-expanded","slideDown"==u?"true":"false"),""==i&&"slideDown"==u&&s.focus(),l.length>0&&(void 0!==c.src?l.attr("src",c.src).attr("alt",c.alt).parent().attr("title",c.alt):void 0!==c.class&&l.removeClass().addClass(c.class).parent().attr("title",c.alt),e.toggleClass("aufgeklappt zugeklappt")),s.attr("data-isSliding",""),"function"==typeof o&&o(),s.is(":visible")&&s.find("div.nmaps-api.nmaps-container").each(function(){var e=jQuery(this).attr("id");NOLISManager.NavigatorMaps.invalidateSize(e)})}}))}},Infobox_zuklappen:function(e){jQuery("div#"+e+" .kasten").slideUp(),jQuery("div#"+e+" .infoblock").toggleClass("close"),jQuery("div#"+e).addClass("zugeklappt"),jQuery("div#"+e+" a.infoblock").attr("alt","Infobox aufklappen"),jQuery("div#"+e+" a.infoblock").attr("aria-expanded","false"),jQuery("div#"+e+" a.infoblock").attr("onclick","NOLISManager.Helper.Infobox_aufklappen('"+e+"')"),"1"!=jQuery("div#"+e).attr("data-cmsklappen")?(NOLISManager.Cookies.prototype.initialize("/"),NOLISManager.Cookies.prototype.clear(e)):(NOLISManager.Cookies.prototype.initialize("/"),NOLISManager.Cookies.prototype.set(e,1,360))},Infobox_aufklappen:function(e){jQuery("div#"+e+" .kasten").slideDown(),jQuery("div#"+e+" .infoblock").toggleClass("close"),jQuery("div#"+e).removeClass("zugeklappt"),jQuery("div#"+e+" a.infoblock").attr("alt","Infobox zuklappen"),jQuery("div#"+e+" a.infoblock").attr("aria-expanded","true"),jQuery("div#"+e+" a.infoblock").attr("onclick","NOLISManager.Helper.Infobox_zuklappen('"+e+"')"),"2"!=jQuery("div#"+e).attr("data-cmsklappen")?(NOLISManager.Cookies.prototype.initialize("/"),NOLISManager.Cookies.prototype.clear(e)):(NOLISManager.Cookies.prototype.initialize("/"),NOLISManager.Cookies.prototype.set(e,2,360))},aufrufe:function(e,t,a,n){window.open("aufrufe.php?kommune="+e+"&medium="+t+"&typ="+a+"&id="+n,"aufrufe","width=100,height=100")},getElementsByClassName1:function(e){for(var t=["tr"],a=[],n=new RegExp("\\b"+e+"\\b"),r=0;r<t.length;r++)for(var i=document.getElementsByTagName(t[r]),o=0;o<i.length;o++)i[o].className.match(n)&&a.push(i[o]);return a},getElementsByClassName:function(e,t,a){var n=new RegExp("(^|\\\\s)"+e+"(\\\\s|$)");t=t||"*",a=a||document;for(var r,i="*"==t&&a.all?a.all:a.getElementsByTagName(t),o=[],s=i.length,l=0;l<s;l++)r=i[l],n.test(r.className)&&o.push(r);return o},placeholder:function(){placeholderSupport="placeholder"in document.createElement("input"),placeholderSupport||jQuery("[placeholder]").focus(function(){var e=jQuery(this);e.val()===e.attr("placeholder")&&(e.val(""),e.removeClass("placeholder"))}).blur(function(){var e=jQuery(this);""!==e.val()&&e.val()!==e.attr("placeholder")||(e.addClass("placeholder"),e.val(e.attr("placeholder")))}).blur().parents("form").submit(function(){jQuery(this).find("[placeholder]").each(function(){var e=jQuery(this);e.val()===e.attr("placeholder")&&e.val("")}
1034)})},selectOnFocus:function(e){jQuery(e).on("focus",function(){var e=jQuery(this);setTimeout(function(){e.select()})})},selfLabeledInputs:function(e,t){var a;jQuery("label").each(function(){null!==(a=jQuery(this).attr("for"))&&(jQuery(this).hide(),document.getElementById(a)._type=document.getElementById(a).type,"password"==document.getElementById(a)._type&&NOLISManager.Helper.changeInputType(document.getElementById(a),"text"),document.getElementById(a)._value=this.innerHTML,document.getElementById(a).value||(document.getElementById(a).value=document.getElementById(a)._value),jQuery("#"+a).on("blur",function(){NOLISManager.Helper.selfLabeledInputs_blur(this.id)}),jQuery("#"+a).on("focusin",function(e,t){!0!==t&&NOLISManager.Helper.selfLabeledInputs_focus(this.id)}))})},selfLabeledInputs_select:function(e){var t=NOLISManager.Helper.browserDetectionObj();t.msie&&t.version<"9.0"||(jQuery("#"+e).val(document.getElementById(e)._value),jQuery("#"+e).off("focusin"),jQuery("#"+e).select(),setTimeout(function(){jQuery("#"+e).on("focusin",function(e,t){!0!==t&&NOLISManager.Helper.selfLabeledInputs_focus(this.id)})},50))},selfLabeledInputs_blur:function(e){""==document.getElementById(e).value&&(document.getElementById(e).value=d
1034ocument.getElementById(e)._value,"password"==document.getElementById(e)._type&&NOLISManager.Helper.changeInputType(document.getElementById(e),"text"))},selfLabeledInputs_focus:function(e,t){!0!==t&&document.getElementById(e).value==document.getElementById(e)._value&&(document.getElementById(e).value="","password"==document.getElementById(e)._type&&NOLISManager.Helper.changeInputType(document.getElementById(e),document.getElementById(e)._type))},changeInputType:function(e,t){var a=NOLISManager.Helper.browserDetectionObj(),n=0;if(a.msie&&a.version<"9.0"&&(n=1),0==n)e.type=t;else{var r=document.createElement("input");r.type=t,e._type&&(r._type=e._type),e.size&&(r.size=e.size),e.value&&(r.value=e.value),e._value&&(r._value=e._value),e.name&&(r.name=e.name),e.id?r.id=e.id:r.id=e.name+"_id",e.className&&(r.className=e.className),e.autocomplete&&(r.autocomplete=e.autocomplete),jQuery(e).off(),jQuery(e).replaceWith(r),jQuery("#"+r.id).on("blur",function(){NOLISManager.Helper.selfLabeledInputs_blur(this.id)}),jQuery("#"+r.id).on("focusin",function(e,t){!0!==t&&NOLISManager.Helper.selfLabeledInputs_focus(this.id)})}},togglePasswordMask:function(e,t,a,n){NOLISManager.Helper.isset(n)||(n=document.getElementById(a).checked),n?(document.getElementById(t).value=document.getElementById(e).value,jQuery("#"+t).show(),jQuery("#"+e).hide()):(document.getElementById(e).value=d
1034ocument.getElementById(t).value,jQuery("#"+e).show(),jQuery("#"+t).hide())},stopBubble:function(e){e||(e=window.event),e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()},getWindowSize:function(e){return{width:NOLISManager.Helper.getWindowWidth(),height:NOLISManager.Helper.getWindowHeight()}},getWindowHeight:function(){return jQuery(window).height()},getWindowWidth:function(){return jQuery(window).width()},viewportOffset:function(e){var t=jQuery(e).offset();return t?(t.left=t.left-jQuery(window).scrollLeft(),t.top=t.top-jQuery(window).scrollTop()):((t={}).left=0,t.top=0),t},getElementSize:function(e){var t=jQuery(e).height();return{width:jQuery(e).width(),height:t}},moveToVisibilityFromBottom:function(e,t){t=t||0;var a=NOLISManager.Helper.getWindowSize(),n={};n.left=jQuery(window).scrollLeft(),n.top=jQuery(window).scrollTop();var r=jQuery("#"+e),i=NOLISManager.Helper.getElementSize(r),o=jQuery(r).position(),s={};s.top=o.top+i.height,1==t&&(s.left=o.left+i.width+n.left);var l=a.height+n.top,u={};if(u.left=o.left,u.top=o.top,175+i.height>a.height-160)u.top=160+n.top;else if(s.top>l){margin=15;var d=s.top-l;d>a.height&&(d=a.height,margin=160),u.top=u.top-d-margin,u.top<160&&(u.top=160)}else u.top<n.top+160&&(u.top=n.top+160);jQuery(r).offset(u)},moveToVisibility:function(e,t){if(t=void 0!==t&&t,jQuery("div.main-main").length>0){var a=jQuery("#"+e).offset(),n=a.left,r=a.top;jQuery("#"+e).offset({left:0,top:0});var i=NOLISManager.Helper.getElementSize("#"+e),o=NOLISManager.Helper.getWindowSize();o.width>1935&&(o.width=1935),i.width<832&&!t&&(i.width=832),a.left<0?n=65:a.left+i.width>o.width&&(n=o.width-i.width-65),a.top<0?r=65:a.top+i.height>o.height&&(r=o.height-i.height-65),n<0&&(n=15),r<0&&(r=15),jQuery("#"+e).offset({left:n,top:r})}},centerHorizontalWithinViewport:function(e){if(jQuery("div.main-main").length>0){var t=jQuery(window).width();t>1935&&(t=1935);var a=t/2-jQuery("#"+e).outerWidth()/2;jQuery("#"+e).css({left:a+"px"})}},setSelectScrollBarPosition:function(e){},getScrollBarWidth:function(){var e=jQuery("<div>").css({visibility:"hidden",width:100,overflow:"scroll"}).appendTo("body"),t=jQuery("<div>").css({width:"100%"}).appendTo(e).outerWidth();return e.remove(),100-t},showLayerPopUp:function(e,t){if(jQuery("#"+e).length>0||jQuery("<div/>",{id:e,style:"position:fixed; z-index:5000;",onclick:"jQuery('#"+e+"popboxcontainer').remove(); jQuery(this).hide();"}).prependTo("body"),jQuery("#"+e).length>0){jQuery("#"+e).show(),jQuery("#"+e+"popboxcontainer")||jQuery("<div/>",{id:e+"popboxcontainer",style:"",class:"popboxcontainer"}).prependTo("#"+e);for(var a=jQuery("#"+e+"popboxcontainer div"),n=a.length,r=!1,i=0;i<n;i++)t==a[i].innerHTML&&(r=!0);0==r&&(document.getElementById("popbox"+n)||(attributes={id:"popbox"+n,class:"popbox",style:""},jQuery("<div/>",attributes).appendTo("#"+e+"popboxcontainer"),jQuery("#popbox"+n).html(t)))}},jump:function(e){this.jumpID=0,this.jumpURL=e,this.jumpIDInput={},this.jumpIDLink={},this.jumpInput=function(e){this.jumpID=e,this.jumpSetIDs(),this.jumpDisplay("none","inline"),this.jumpIDInput.focus(),this.jumpIDInput.onkeyup=function(e){pj.jumpStart(e)},this.jumpIDInput.onblur=function(){pj.jumpStop()}},this.jumpStart=function(e){var t=0;e||(e=window.event),e.which?t=e.which:e.keyCode&&(t=e.keyCode);var a=this.jumpIDInput.value;13==t?this.jumpGo(a):27==t&&this.jumpStop()},this.jumpStop=function(){this.jumpDisplay("inline-block","none")},this.jumpSetIDs=function(){this.jumpIDLink=document.getElementById("p-a-"+this.jumpID),this.jumpIDInput=document.getElementById("p-i-"+this.jumpID)},this.jumpDisplay=function(e,t){this.jumpIDLink.style.display=e,this.jumpIDInput.style.display=t},this.jumpGo=function(e){this.jumpURL=this.jumpURL.replace(/&amp;/g,"&"),document.location.href=this.jumpURL.replace(/%p%/,parseInt(e))}},jumpAjax:function(e,t,a){this.jumpID=0,this.targetURL=e,this.jumpIDInput={},this.jumpIDLink={},this.jumpInput=function(e){this.jumpID=e,this.jumpSetIDs(),this.jumpDisplay("none","inline"),this.jumpIDInput.focus(),this.jumpIDInput.onkeydown=function(e){return!!e&&(13==e.which?(e.preventDefault(),!1):void 0)},this.jumpIDInput.onkeyup=function(e){return pja.jumpStart(e),!1},this.jumpIDInput.onblur=function(){return pja.jumpStop(),!1}},this.jumpStart=function(e){var t=0;e||(e=window.event),e.which?t=e.which:e.keyCode&&(t=e.keyCode);var a=this.jumpIDInput.value;if(13==t)return this.jumpGo(e,a),!1;27==t&&this.jumpStop()},this.jumpStop=function(){this.jumpDisplay("inline-block","none")},this.jumpSetIDs=function(){this.jumpIDLink=document.getElementById("p-a-"+this.jumpID),this.jumpIDInput
1034=document.getElementById("p-i-"+this.jumpID)},this.jumpDisplay=function(e,t){this.jumpIDLink.style.display=e,this.jumpIDInput.style.display=t},this.jumpGo=function(n,r){return""!=r&&((r=parseInt(r))<1&&(r=1),""!=e&&""!=t&&""!=a&&(e=e.replace("%p%",r),void NOLISManager.Pages.ajaxUpdatePage(t,e,a)))}},populateSelect:function(e,t,a,n){var r;r=1===t?"/ajax/populate_select.html":jurl2cms+"inc/ajax/populate_select.php",jQuery.ajax({url:r,type:"get",dataType:"html",data:e}).done(function(t){if(jQuery("#"+e.updateContainer).html(t),a){var r=[];if(void 0!==n&&n.constructor==Array&&(r=n),"function"==typeof a)a.apply(null,r);else{var i=window[a];"function"==typeof i&&i.apply(null,r)}}})},move2body:async function(e){var t=document.getElementsByTagName("body")[0];if(document.getElementById(e))t.appendChild(document.getElementById(e));else{var a="move2body: Element nicht vorhanden: "+e;1==jcms?await NAlert(a):alert(a)}},clonePosition:function(t,a,n,r){var i,o={top:0,left:0},s=0;null!=a&&""!=a&&(o=(i="string"==typeof a?jQuery("#"+a):jQuery(a)).offset(),s=i.outerWidth());var l=o.top,u=o.left;if(u+=s,NOLISManager.Helper.isset(n.cloneFromLeft)&&(u-=s),NOLISManager.Helper.isset(n.event)&&(e=jQuery.event.fix(n.event||window.event),u=e.pageX,l=e.pageY),NOLISManager.Helper.isset(n.offsetLeft)&&(u+=parseInt(n.offsetLeft)),NOLISManager.Helper.isset(n.offsetTop)&&(l+=parseInt(n.offsetTop)),NOLISManager.Helper.isset(n.left))if("mitte"==n.left){var d=jQuery(window).width();d>1935&&(d=1935),u=d/2-jQuery("#"+t).outerWidth()/2}else u=n.left;if(NOLISManager.Helper.isset(n.top)&&(l="mitte"==n.top?jQuery(window).height()/2-jQuery("#"+t).outerHeight()/2:n.top),!NOLISManager.Helper.isset(n.top)){var c=jQuery(window).height(),m=jQuery(window).scrollTop();o.top+150>c+m&&(l=l+(c+m)-(o.top+150))}1==r&&NOLISManager.Helper.move2body(t),jQuery("#"+t).css({top:l+"px",left:u+"px"})},clonePositionPT:function(e,t){t=jQuery.extend({setLeft:!0,setTop:!0,setWidth:!1,setHeight:!1,offsetLeft:0,offsetTop:0},t||{});var a=jQuery(this),n=jQuery(e),r=[n.offset().left,n.offset().top],i=[0,0],o=[0,0];return"absolute"==a.css("position")&&(d=a.offset(),i[0]=d.left,i[1]=d.top),o[0]=(a.outerWidth()-n.outerWidth())/2,o[1]=(a.outerHeight()-n.outerHeight())/2,null==document.body&&(i[0]-=document.body.offsetLeft,i[1]-=document.body.offsetTop),t.setLeft&&a.css("left",r[0]-i[0]+t.offsetLeft-o[0]+"px"),t.setTop&&a.css("top",r[1]-i[1]+t.offsetTop-o[1]+"px"),t.setWidth&&a.width(n.width()+"px"),t.setHeight&&a.height(n.height()+"px"),a},withinViewport:function(e){var t=jQuery(e).offset(),a={},n={},r={};return a.top=jQuery(window).scrollTop(),a.left=jQuery(window).scrollLeft(),n.width=jQuery(e).outerWidth(),n.height=jQuery(e).outerHeight(),r.width=jQuery(window).width(),r.height=jQuery(window).height(),!(t.top+n.height<a.top||t.top>a.top+r.height||t.left+n.width<a.left||t.left>a.left+r.width)},zeigePOI:function(e,t,a,n,r){void 0===n&&(n="info"),void 0===r&&(r=""),window.open(jurl2domain+"/info/poi/"+e+"-"+t+"-"+a+".html?site="+n,"detail"+t,"width=484, height=400,locationbar=no,resizable=yes,dependent=yes,scrollbars=yes,statusbar=no").focus()},getPosFromItem:function(e,t,a){void 0===t&&(t=0),void 0===a&&(a=0);var n={},r=jQuery(e).offset(),i=jQuery(e).outerWidth();return n.top=r.top+a,n.left=r.left+i+t,n},getPosFromTreeitem:function(e,t,a){void 0===t&&(t=0),void 0===a&&(a=0);var n={},r=jQuery("#"+e).children("a").first(),i=jQuery(r).offset(),o=jQuery(r).outerWidth();return n.top=i.top+a,n.left=i.left+o+t,n},setDisableFormField:function(e,t){e?jQuery("#"+t).prop("disabled",!0):jQuery("#"+t).prop("disabled",!1)},makeSelectAbfallStruktur:function(e,t,a,n,r){if(e>0){var i=jurl2cms+"inc/ajax/abfall_gebiete_struktur_select.php";1===r&&(i="/ajax/abfall_gebiete_struktur_select.html"),jQuery.ajax({url:i,type:"get",dataType:"html",data:{parent:e,ebene:a,portal:r,selected_ebene:n},beforeSend:function(){jQuery("#ajax_load").show()}}).done(function(e){jQuery("#"+t).nextAll(".ebene").remove(),jQuery("#sucheAusgabe #ajax_load_ausgabe").nextAll().remove(),""!=e?jQuery("#"+t).after(e):searchDownloadsStruktur()}).always(function(){jQuery("#ajax_load").hide()})}else jQuery("#strukturEbene"+(a-1)).val(),jQuery("#"+t).nextAll(".ebene").remove()},setCheckboxen:function(e){id=jQuery(e).val(),e.checked?jQuery('input[data-parent="'+id+'"]').prop("checked",!0):jQuery('input[data-parent="'+id+'"]').prop("checked",!1)},showAbfallStruktur:function(e,t,a){0==e?jQuery("#abfuhrbereiche tr").show():-1==e?(jQuery("#abfuhrbereiche tr").hide(),jQuery("#abfuhrbereiche tr.ohneunterebenen.ebene"+a).show()):(jQuery("#abfuhrbereiche tr").hide(),jQuery("#abfuhrbereiche tr.parent"+e).show())},getQRCode:function(e){e=jQuery.extend({text:"",size:"5",level:"H",padding:"0",target:"",filename:"",style:"",class:"",alttext:"",width:"",height:"",html:"0",title:"",onclick:"",download:"0",save:"0",src:""},e);var t=jQuery.ajax({url:e.src,type:"get",dataType:"html",data:e});t.done(function(t){1==e.html&&jQuery(e.target).html(t)}),t.fail(async function(e,t){var a="Request failed: "+t;1==jcms?await NAlert(a):alert(a)})},cleanImageVarianten:function(e,t,a){params={},params.ids=e,params.table=t,params.hash=a,jQuery.ajax({url:jurl2cms+"inc/ajax/delete_imagevarianten.php",type:"get",dataType:"html",data:params})},getRadioValue:function(e){return jQuery("input[name='"+e+"']:checked").val()},getValue:function(e){if(e&&(e instanceof jQuery||e.constructor.prototype.jquery))e=(t=e).attr("name");else var t=jQuery("[name='"+e+"']")[0];var a="";return jQuery(t).is(":radio")?a=jQuery("input[name='"+e+"']:checked").val():jQuery(t).is(":checkbox")?!0===jQuery(t).prop("checked")&&(a=jQuery(t).val()):a=jQuery(t).val(),a},setVorbelegungPortaleByMedium:function(e){var t=NOLISManager.Helper.getValue(e);0==t&&(jQuery("input.nolisportale_intern[type=checkbox]").each(function(){jQuery(this).prop("disabled",!1)}),jQuery("input.nolisportale_oeffentlich[type=checkbox]").each(function(){jQuery(this).prop("disabled",!0)}),jQuery(".tr_nolisportale_intern").show(),jQuery(".tr_nolisportale_oeffentlich").hide()),1==t&&(jQuery("input.nolisportale_intern[type=checkbox]").each(function(){jQuery(this).prop("disabled",!0)}),jQuery("input.nolisportale_oeffentlich[type=checkbox]").each(function(){jQuery(this).prop("disabled",!1)}),jQuery(".tr_nolisportale_intern").hide(),jQuery(".tr_nolisportale_oeffentlich").show()),2==t&&(jQuery("input.nolisportale_intern[type=checkbox]").each(function(){jQuery(this).prop("disabled",!1)}),jQuery("input.nolisportale_oeffentlich[type=checkbox]").each(function(){jQuery(this).prop("disabled",!1)}),jQuery(".tr_nolisportale_intern").show(),jQuery(".tr_nolisportale_oeffentlich").show())},setGruppen:function(e){gruppen_typ=jQuery("#"+e+" #gruppen_typ").val(),1==gruppen_typ?(jQuery("#tr_gruppe1").show(),jQuery("#tr_gruppe2").hide(),jQuery("#tr_gruppe3").hide()):2==gruppen_typ?(jQuery("#tr_gruppe1").hide(),jQuery("#tr_gruppe2").show(),jQuery("#tr_gruppe3").hide()):3==gruppen_typ?(jQuery("#tr_gruppe1").hide(),jQuery("#tr_gruppe2").hide(),jQuery("#tr_gruppe3").show()):(jQuery("#tr_gruppe1").hide(),jQuery("#tr_gruppe2").hide(),jQuery("#tr_gruppe3").hide())},setZusatzressort:function(){1==document.getElementById("manager_form").zusatz_ressort_checkbox.checked?document.getElementById("zusatz_ressort").style.display="":(document.getElementById("manager_form").zusatz_ressort1.value=0,document.getElementById("manager_form").zusatz_ressort2.value=0,document.getElementById("zusatz_ressort").style.display="none")},setRubriken:function(e,t){0==jQuery("#medium").val()?(jQuery("#rubrik1").show(),jQuery("#rubrik2").hide(),jQuery("#rubrik2Select").val(0),jQuery("#rub_bez1").hide(),jQuery("#rub_bez2").hide(),e>0&&document.getElementById("gruppen")&&(jQuery("#gruppen").show(),1==t&&jQuery("#tr_lesestatus").show())):1==jQuery("#medium").val()?(jQuery("#rubrik1").hide(),jQuery("#rubrik2").show(),jQuery("#rubrik1Select").val(0),jQuery("#rub_bez1").hide(),jQuery("#rub_bez2").hide(),e>0&&document.getElementById("gruppen")&&(jQuery("#gruppen").hide(),jQuery("#gruppen_typ").val(0).prop("selected",!0),jQuery("#tr_gruppe1").hide(),jQuery("#gruppe1").val(0).prop("selected",!0),jQuery("#tr_gruppe2").hide(),jQuery("#gruppe2").val(0).prop("selected",!0),jQuery("#tr_gruppe3").hide(),jQuery("#gruppe3").val(0).prop("selected",!0),1==t&&jQuery("#tr_lesestatus").hide())):(jQuery("#rubrik1").show(),jQuery("#rubrik2").show(),jQuery("#rub_bez1").show(),jQuery("#rub_bez2").show(),e>0&&document.getElementById("gruppen")&&(jQuery("#gruppen").hide(),jQuery("#gruppen_typ").val(0).prop("selected",!0),jQuery("#tr_gruppe1").hide(),jQuery("#gruppe1").val(0).prop("selected",!0),jQuery("#tr_gruppe2").hide(),jQuery("#gruppe2").val(0).prop("selected",!0),jQuery("#tr_gruppe3").hide(),jQuery("#gruppe3").val(0).prop("selected",!0),1==t&&jQuery("#tr_lesestatus").show()))},setRubrikenVeranstaltung:function(){0==jQuery("#medium").val()?(jQuery("#ressort1").show(),jQuery("#ressort2").hide(),jQuery("#ressort2Select").val(0),jQuery("#ressort_bez1").hide(),jQuery("#ressort_bez2").hide()):(1==jQuery("#medium").val()||2==jQuery("#medium").val())&&(jQuery("#ressort1").hide(),jQuery("#ressort2").show(),jQuery("#ressort1Select").val(0),jQuery("#ressort_bez1").hide(),jQuery("#ressort_bez2").hide())},setVorbelegungPortaleByRessort:function(e,t){if(void 0===t&&(t="rubrik"),0==e){var a={},n={};
1034n.ressort1=document.getElementById(t+"1Select").value,n.ressort2=document.getElementById(t+"2Select").value;var r=jQuery.ajax({url:jurl2cms+"inc/ajax/portale_getVorbelegung.php",type:"GET",data:n,dataType:"json",async:!1});if(r.done(function(e){a=e}),r.fail(async function(e,t){await NAlert("Request failed: "+t)}),a.vorbelegt)for(var i=a.vorbelegt.length,o=0;o<i;o++)"hidden"==document.getElementById("nolisportale_"+a.vorbelegt[o]).type&&(document.getElementById("nolisportale_"+a.vorbelegt[o]).value=1),"checkbox"==document.getElementById("nolisportale_"+a.vorbelegt[o]).type&&(document.getElementById("nolisportale_"+a.vorbelegt[o]).checked=!0);if(a.nicht_vorbelegt){var s=a.nicht_vorbelegt.length;for(o=0;o<s;o++)"hidden"==document.getElementById("nolisportale_"+a.nicht_vorbelegt[o]).type&&(document.getElementById("nolisportale_"+a.nicht_vorbelegt[o]).value=0),"checkbox"==document.getElementById("nolisportale_"+a.nicht_vorbelegt[o]).type&&(document.getElementById("nolisportale_"+a.nicht_vorbelegt[o]).checked=!1)}}},checkVeranstaltungsort:function(e,t){document.getElementById("veranstaltungsort_id").value>0?(e>0&&1==t&&jQuery("#veranstaltungsort_geo_tr").hide(),jQuery(".veranstaltungsort_alternativ_tr").length>0&&jQuery(".veranstaltungsort_alternativ_tr").hide()):(e>0&&1==t&&jQuery("#veranstaltungsort_geo_tr").show(),jQuery(".veranstaltungsort_alternativ_tr").length>0&&jQuery(".veranstaltungsort_alternativ_tr").show())},checkVeranstalter:function(){document.getElementById("veranstalter_id").value>0?(document.getElementById("veranstalter_alternativ").value="",document.getElementById("veranstalter_anschrift").value="",jQuery(".veranstalter_alternativ_tr").hide()):jQuery(".veranstalter_alternativ_tr").show()},setLocal:function(e,t,a){void 0===a&&(a=1),1==a?(document.getElementById("veranstaltungsort_bezeichnung").value=document.getElementById("locals_bezeichnung").value,document.getElementById("veranstaltungsort_id").value=document.getElementById("locals_id").value,document.getElementById("veranstaltungsort_owner").value=document.getElementById("locals_owner").value,document.getElementById("veranstaltungsort_kommune").value=document.getElementById("locals_kommune").value,jQuery("#del_geo").length>0&&(document.getElementById("del_geo").value="0"),NOLISManager.Helper.checkVeranstaltungsort(e,t)):2==a&&(document.getElementById("veranstalter_bezeichnung").value=document.getElementById("locals_bezeichnung").value,document.getElementById("veranstalter_id").value=document.getElementById("locals_id").value,document.getElementById("veranstalter_owner").value=document.getElementById("locals_owner").value,document.getElementById("veranstalter_kommune").value=document.getElementById("locals_kommune").value,NOLISManager.Helper.checkVeranstalter(e,t))},delLocal:function(e,t,a,n){void 0===n&&(n=1),1==n?(1==t&&NOLISManager.Helper.delGeo(a),document.getElementById("veranstaltungsort_bezeichnung").value="",document.getElementById("veranstaltungsort_id").value="",document.getElementById("veranstaltungsort_owner").value="",document.getElementById("veranstaltungsort_kommune").value="",NOLISManager.Helper.checkVeranstaltungsort(e,t)):2==n&&(document.getElementById("veranstalter_bezeichnung").value="",document.getElementById("veranstalter_id").value="",document.getElementById("veranstalter_owner").value="",document.getElementById("veranstalter_kommune").value="",NOLISManager.Helper.checkVeranstalter(e,t))},delGeo:function(e){jQuery("#del_geo").length>0&&(document.getElementById("del_geo").value="1",document.getElementById("show_geo").innerHTML=e)},doDeleteManagerabfrage:function(e){document.getElementById("manager_form")["abfrage_"+e].value=0,document.getElementById("manager_form")["abfrage_bezeichnung_"+e].value="",document.getElementById("abfrage_del_"+e).style.display="none"},doSetManagerabfrage:function(e){document.getElementById("abfrage_del_"+e).style.display=""},resetWorkflow:async function(e,t){frage=await NConfirm("Wollen Sie den Originaleintrag wirklich wieder herstellen?\nAchtung: Die Arbeitskopie wird dabei entfernt."),1==frage&&(1==t&&(document.location.href="meldungen_edit.php?reset_workflow=1&id="+e),2==t&&(document.location.href="seiten_edit.php?reset_workflow=1&id="+e))},setContentPool:function(){1==document.getElementById("manager_form").content_pool.checked?(document.getElementById("content_pool_kommunen").style.display="",document.getElementById("content_pool_parent_row").classList.remove("bb"),1==document.getElementById("manager_form").kommunen[1].checked&&(document.getElementById("selected_kommunen_row").style.display="")):(document.getElementById("content_pool_kommunen").style.display="none",document.getElementById("selected_kommunen_row").style.display="none",document.getElementById("content_pool_parent_row").classList.add("bb"))},setInfoContentMail:function(){var e=document.getElementsByClassName("infocontentmail"),t=e.length;if(1==document.getElementById("manager_form").info_content_mail_checkbox.checked)for(var a=0;a<t;a++)e[a].style.display="";else for(a=0;a<t;a++)e[a].style.display="none"},setInfoContentMailCheckAlle:function(){var e=jQuery("#content_mail_gruppe_alle"),t=jQuery(".checkbox-icm-empfaenger");e.is(":checked")?(t.prop("checked",!0),t.off("click"),t.on("click",function(){e.prop("checked",!1)})):t.prop("checked",!1)},setSelectedKommunen:function(){1==document.getElementById("manager_form").kommunen[1].checked?document.getElementById("selected_kommunen_row").style.display="":document.getElementById("selected_kommunen_row").style.display="none"},setPublizieren:function(e){medium=document.getElementById("medium").value,0==e&&0==medium&&(document.manager_form.publizieren[1].checked=!0)},setZusatz:function(){status=jQuery("#status option:selected").val(),3==status||2==status||10==status?jQuery("#zusatz").show():jQuery("#zusatz").hide()},checkKommunenweit:function(e){1==e&&(document.getElementById("kommunenweit").value=0,document.getElementById("kommunenweit").checked=!1),1==document.getElementById("kommunenweit").checked&&(document.getElementById("ort").value=0)},addObject2ArrayUnique:function(e,t){var a=JSON.stringify(t),n=!0;for(m in e)JSON.stringify(e[m])==a&&(n=!1);return n&&e.push(t),e},sortTable:function(e,t,a){var n=jQuery("#"+e+" tbody  tr").get(),r=1;a&&"dec"!=a?"asc"==a&&(r=1):r=-1,n.sort(function(e,a){return jQuery(e).children("td").eq(t).text().toUpperCase()<a>jQuery(a).children("td").eq(t).text().toUpperCase()?r:0}),jQuery.each(n,function(t,a){jQuery("#"+e).children("tbody").append(a)})},initTinyMce:function(e,t){if(null!=typeof tinyMCE&&"undefined"!=typeof tinyMCE){var a="#"+t;1==jQuery(a).length&&null===tinyMCE.get(t)&&(e.selector=a,tinymce.init(e))}},tinymceNolisitemMouseover:function(e){console.log(e);var t={htmltext:e};NOLISManager.QuickTip.showTipAjax(e,"",t,"Vorschau","","tinymcemouseoverinfo")}},NOLISManager.Kalender={displayCalendar:function(e,t,a,n){var r=t.year,i=t.month,o=a.year,s=a.month,l=a.day,u=n.owner,d=n.medium,c=n.portal,m=n.linksuche,h=n.onclickTip,p=n.linksuchemonat,g="";null!==typeof n.linkdateprefix&&void 0!==n.linkdateprefix&&(g=n.linkdateprefix);var y=0;null!==typeof n.globalEventArrayLinkOnly&&void 0!==n.globalEventArrayLinkOnly&&(y=n.globalEventArrayLinkOnly);var _="NOLIS_Kalenderdates";null!==typeof n.globalEventArrayName&&void 0!==n.globalEventArrayName&&(_=n.globalEventArrayName);var f=n.rows6fixed,j=n.showKW,v=n.termine_buchbar,b=n.intern,Q=n.termine_layout,k=new Date,I=k.getFullYear(),S=k.getMonth();void 0!==r&&k.setYear(r),void 0!==i&&(S!=i&&k.setDate(1),k.setMonth(i));var w=k.getFullYear(),O=k.getMonth(),L=k.getDate(),M=O+1,N=w,F=w,D=O+1,x=O-1;11==O&&(N=w+1,D=0),0==O&&(F=w-1,x=11);var z=28;NOLISManager.Kalender.isLeap(w)&&(z=29);var C=["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"],E=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],H=["31",z.toString(),"31","30","31","30","31","31","30","31","30","31"],T=["So","Mo","Di","Mi","Do","Fr","Sa","So"];1==n.daynames&&(T=["S","M","D","M","D","F","S","S"]),2==n.daynames&&(T=C);var B=new Date(w,O,1),A=B.getDay()>0?B.getDay()-1:6,P=A,R=H[O],$=O-1,W=w;-1==$&&($=11,W=w-1);var q=H[$],K="";for(j&&A>=0&&(K+='  <td class="kw">'+NOLISManager.Kalender.getKW(W,$+1,q-A+1)+"</td>");A>0;){var U=new Date(W,$,q-A+1).getDay(),V="";NOLISManager.Kalender.isWeekend(U)&&(V="we"),K+='<td class="kalenderDayCell monthPre '+V+'">'+(q-A+1)+"</td>",A--}for(var J=1,G=1;G<=R;){var Y=G.toString();1==Y.length&&(Y="0"+Y);var X=M.toString();1==X.length&&(X="0"+X);var Z=m+"&"+g+"auswahl_woche_tage="+Y+"&"+g+"onlyMonat_select="+w+X+"&"+g+"beginn_datum="+w+"-"+X+"-"+Y,ee=w+X+Y;P>
10346&&(P=0,J++,K+='</tr><tr class="days">',j&&(K+='  <td class="kw">'+NOLISManager.Kalender.getKW(w,M,Y)+"</td>"));var te="";G==L&&S==O&&I==w?te="dayNow":G==l&&w==o&&O==s&&(te="daySelected");var ae=!1,ne="no_event";void 0!==window[_]&&void 0!==window[_][ee]&&(ae=!0,ne="event "+window[_][ee]);var re=new Date(w,M-1,G),ie=re.getDay();V="",NOLISManager.Kalender.isWeekend(ie)&&(V="we");let e="";if(1==h){var oe=re.getMonth();e='NOLISManager.QuickTip.showClickTipAjax(event, this, "'+jurl2domain+'scripts/ajax.php?route=infospalte_kalenderblatt", { tag: "'+Y+'", monat: "'+X+'", jahr: "'+w+'", owner: "'+u+'", medium: "'+d+'", portal: "'+c+'", termine_buchbar: "'+v+'", intern: "'+b+'", termine_layout: "'+Q+'" }, "'+C[ie]+", "+Y+". "+E[oe]+" "+w+'",  { positionOffsetX: -328, positionOffsetY: 5 }, "mediumwidth kalenderblatt-aufruf" ); return false;'}K+='<td class="kalenderDayCell '+te+" "+V+" "+ne+'">',K+=!ae&&y>0?"  <span>"+G+"</span>":'  <a href="'+Z+'" class="'+ne+'" data-linkday="'+ee+"\" onclick='"+e+"'>"+G+"</a>",K+="</td>",P++,G++}for(var se=1;se<=7-P;se++)V="",se>7-P-2&&(V="we"),K+='<td class="kalenderDayCell monthAfter '+V+'">'+se+"</td>";if(1==f&&5==J){K+='</tr><tr class="days">',j&&(K+='  <td class="kw">'+NOLISManager.Kalender.getKW(w,M+1,se)+"</td>");for(var le=1;le<=7;le++)V="",6!=le&&7!=le||(V="we"),K+='<td class="kalenderDayCell monthAfter '+V+'">'+se+++"</td>"}p=p.replace("onlyMonat_select=","onlyMonat_select="+w+("0"+(O+1)).slice(-2));let ue="";void 0!==n.toggleMonth_fn&&(ue=n.toggleMonth_fn);let de={};de.year=F,de.month=x;let ce={};ce.year=N,ce.month=D;var me='<table class="kalender monthNow">\n';me+="<tr>\n",me+='  <th class="prev">',me+='    <a href="#" onclick="NOLISManager.Kalender.displayCalendar(\''+e+"', "+NOLISManager.String.objectToString(de,1)+", "+NOLISManager.String.objectToString(a,1)+", "+NOLISManager.String.objectToString(n,1)+"); "+ue+' return false;">',me+="      «",me+="      <span>Vorherigen Monat anzeigen</span>",me+="    </a>",me+="  </th>",me+="  <th>",me+='    <a href="'+p+'" class="current-month-year">',me+='      <span class="monat">'+E[O]+'</span><span class="jahr">'+w+"</span>",me+="    </a>",me+="  </th>",me+='  <th class="next">',me+='    <a href="#" onclick="NOLISManager.Kalender.displayCalendar(\''+e+"', "+NOLISManager.String.objectToString(ce,1)+", "+NOLISManager.String.objectToString(a,1)+", "+NOLISManager.String.objectToString(n,1)+"); "+ue+' return false;">',me+="      <span>Nächsten Monat anzeigen</span>",me+="      »",me+="    </a>",me+="  </th>\n",me+="</tr>\n",me+="</table>",me+='<table class="kalender dayNames days">',me+='  <tr class="dayNames">',j&&(me+='  <th class="kw">KW</th>');var he=T.length;for(se=1;se<he;se++)me+="  <th>"+T[se]+"</th>";me+="  </tr>",me+='  <tr class="days">',me+=K,me+="  </tr>",me+="</table>",document.getElementById(e).innerHTML=me;let pe=jQuery("table.kalender.days tbody tr:not(.dayNames)").find("td.kalenderDayCell");pe.click(function(){pe.removeClass("cell-selected"),jQuery(this).addClass("cell-selected")})},getKW:function(e,t,a){var n=new Date(e,t-1,a),r=new Date(n.getTime()+864e5*(3-(n.getDay()+6)%7)),i=r.getFullYear(),o=new Date(new Date(i,0,4).getTime()+864e5*(3-(new Date(i,0,4).getDay()+6)%7));return Math.floor(1.5+(r.getTime()-o.getTime())/864e5/7)},isLeap:function(e){return 29===new Date(e,1,29).getDate()},isWeekend:function(e){var t=!1;return 0!=e&&6!=e||(t=!0),t}},NOLISManager.Layout={toggle_header:function(e){var t=managercookie.get("header_ausgeklappt");1==e&&(0==t||0==t?managercookie.set("header_ausgeklappt",1):managercookie.set("header_ausgeklappt",0)),jQuery("body").toggleClass("header_ausgeklappt")},setLayoutAlign:function(e){jQuery("body").removeClass("layout_center"),jQuery("body").removeClass("layout_left"),jQuery("body").removeClass("layout_right"),jQuery("body").addClass("layout_"+e)},modulbuttons:function(e){switch(e){case 1:jQuery("div#container form#manager_form div.modulbuttons").first().addClass("vertikal left"),jQuery("div#container form#manager_form div.modulbuttons").first().removeClass("right"),jQuery("div#container form#manager_form div.modulbuttons.fix").removeClass("vertikal left");var t={left:jQuery("div#container div#container_in").offset().left-jQuery("div#container form#manager_form div.modulbuttons").first().outerWidth()};jQuery("div#container form#manager_form div.modulbuttons").first().css(t);break;case 2:jQuery("div#container form#manager_form div.modulbuttons").first().addClass("vertikal right"),jQuery("div#container form#manager_form div.modulbuttons").first().removeClass("left"),jQuery("div#container form#manager_form div.modulbuttons.fix").removeClass("vertikal right"),t={left:jQuery("div#container div#container_in").offset().left+jQuery("div#container div#container_in").outerWidth()},jQuery("div#container form#manager_form div.modulbuttons").first().css(t);break;default:jQuery("div#container form#manager_form div.modulbuttons").first().removeClass("vertikal"),jQuery("div#container form#manager_form div.modulbuttons").first().removeClass("left"),jQuery("div#container form#manager_form div.modulbuttons").first().removeClass("right")}},toggleManagerbookmarks:function(e){1==e?(document.getElementById("managerbookmarks_toggle").style.display="",document.getElementById("managerbookmarks_toggle1").style.display="none",""!=document.getElementById("managerbookmarks_content").style.display&&(document.getElementById("managerbookmarks_content").style.display="","undefined"!=typeof Storage&&localStorage.setItem("managerbookmarks_show",1))):(document.getElementById("managerbookmarks_toggle").style.display="none",document.getElementById("managerbookmarks_toggle1").style.display="","none"!=document.getElementById("managerbookmarks_content").style.display&&(document.getElementById("managerbookmarks_content").style.display="none","undefined"!=typeof Storage&&localStorage.setItem("managerbookmarks_show",0)))},toggleManagerbookmarksUnterpunkte:function(e){"object"==typeof e?jQuery.each(e,function(e,t){t&&(jQuery("#"+e).show(),-1!=e.indexOf("container")?e=e.replace("container","img"):e+="_img",jQuery("#"+e).removeClass("fa-chevron-square-down").addClass("fa-chevron-square-up"))}
1034):(subitem_obj=localStorage.getItem("managerbookmarks_subitem_show"),subitem_obj=JSON.parse(subitem_obj),jQuery("#"+e).is(":visible")?subitem_obj[e]=!1:subitem_obj[e]=!0,subitem_obj=JSON.stringify(subitem_obj),localStorage.setItem("managerbookmarks_subitem_show",subitem_obj))}},NOLISManager.Monatsauswahl={callback:"",init:function(e,t,a,n){void 0!==n&&(NOLISManager.Monatsauswahl.callback=n),$monatsauswahl=jQuery("#monatsauswahl"),0==$monatsauswahl.length&&($monatsauswahl=jQuery('<div id="monatsauswahl"></div>'),$monatsauswahl.appendTo("body")),void 0!==a.top&&void 0!==a.left?(topPosition=a.top,leftPosition=a.left):void 0!==a.from_element?(elementPosition=jQuery(a.from_element).offset(),topPosition=elementPosition.top+a.offset_top,leftPosition=elementPosition.left+a.offset_left):(topPosition=e.pageY+a.offset_top,leftPosition=e.pageX+a.offset_left),$monatsauswahl.hide(),$monatsauswahl.css("top",topPosition+"px"),$monatsauswahl.css("left",leftPosition+"px"),$load_url=jurl2cms+"inc/ajax/getMonatsauswahl.php",t.load_url&&($load_url=t.load_url),$monatsauswahl.load($load_url,t,function(){jetzt=new Date,aktuellerMonat=jetzt.getMonth()+1,aktuellesJahr=jetzt.getFullYear(),void 0!==t.sel_monat&&0!=t.sel_monat&&""!=t.sel_monat||(t.sel_monat=aktuellerMonat),void 0!==t.sel_jahr&&0!=t.sel_jahr&&""!=t.sel_jahr||(t.sel_jahr=aktuellesJahr),$inputMonat=jQuery('<input type="hidden" name="monatsauswahl_monat" id="input_monatsauswahl_monat" value="'+t.sel_monat+'" />'),$inputJahr=jQuery('<input type="hidden" name="monatsauswahl_jahr" id="input_monatsauswahl_jahr" value="'+t.sel_jahr+'" />'),$inputMonat.prependTo($monatsauswahl),$inputJahr.prependTo($monatsauswahl),$monatsauswahl.show(),scrollTo=0,selector='#monatsauswahl .monatsauswahl_jahr[data-jahr="'+t.sel_jahr+'"]',$scrollToElement=jQuery(selector),scrollToPosition=$scrollToElement.position(),void 0!==scrollToPosition.top&&(scrollTo=Math.floor(scrollToPosition.top-51)),jQuery("#monatsauswahl_jahre").scrollable({classes:"",width:3,marginTopBottom:0,marginLeft:0,marginRight:0,borderRadius:!1,scrollAmount:75,scrollTo:scrollTo}),jQuery(".monatsauswahl_monat").click(function(){NOLISManager.Monatsauswahl.selectMonth(jQuery(this).attr("data-monat"))}),jQuery(".monatsauswahl_jahr").click(function(){NOLISManager.Monatsauswahl.selectYear(jQuery(this).attr("data-jahr"))}),jQuery("#monatsauswahl_buttons_bottom .aktionsbox").click(function(){NOLISManager.Monatsauswahl.auswahlUebernehmen()}),jQuery("#monatsauswahl_button_heute").click(function(){NOLISManager.Monatsauswahl.selectToday()})})},selectMonth:function(e){var t=jQuery(".monatsauswahl_monat").length,a=0;return jQuery(".monatsauswahl_monat").each(function(){jQuery(this).removeClass("active"),a++,t==a&&(jQuery('.monatsauswahl_monat[data-monat="'+e+'"]').addClass("active"),jQuery("#input_monatsauswahl_monat").val(e))}),!0},selectYear:function(e){var t=jQuery(".monatsauswahl_jahr").length,a=0;return jQuery(".monatsauswahl_jahr").each(function(){jQuery(this).removeClass("active"),a++,t==a&&(jQuery('.monatsauswahl_jahr[data-jahr="'+e+'"]').addClass("active"),jQuery("#input_monatsauswahl_jahr").val(e))}),!0},selectToday:function(){heute=new Date,monat=heute.getMonth()+1,jahr=heute.getFullYear(),checkMonat=NOLISManager.Monatsauswahl.selectMonth(monat),checkJahr=NOLISManager.Monatsauswahl.selectYear(jahr),checkMonat&&checkJahr&&NOLISManager.Monatsauswahl.auswahlUebernehmen()},auswahlUebernehmen:function(){monat=jQuery("#input_monatsauswahl_monat").val(),jahr=jQuery("#input_monatsauswahl_jahr").val(),result={monat:monat,jahr:jahr},NOLISManager.Monatsauswahl.callback(result)}},NOLISManager.Draggables={cache:{dragActive:!1,dragElement:"",dragElemente:new Array},init:function(e){jQuery(window).mouseup(function(){NOLISManager.Draggables.cache.dragActive=!1}),NOLISManager.Draggables.initElemente(e)},initElement:function(e){inputA_id=e.attr("data-inputa")+"_"+e.attr("data-index"),$inputA=jQuery("#"+inputA_id),0==$inputA.length&&($inputA=jQuery('<input type="hidden" name="'+e.attr("data-inputa")+"["+e.attr("data-index")+']" id="'+inputA_id+'" value="0" />'),$inputA.insertAfter(e)),inputV_id=e.attr("data-inputv")+"_"+e.attr("data-index"),$inputV=jQuery("#"+inputV_id),0==$inputV.length&&($inputV=jQuery('<input type="hidden" name="'+e.attr("data-inputv")+"["+e.attr("data-index")+']" id="'+inputV_id+'" value="
10340" />'),$inputV.insertAfter(e)),elementArray=new Object,elementArray.inputA=inputA_id,elementArray.inputV=inputV_id,NOLISManager.Draggables.cache.dragElemente[e.attr("id")]=elementArray,e.mousemove(function(t){element_id=jQuery(this).attr("id"),element_index=jQuery(this).attr("data-index"),jQuery(this).mousedown(function(t){return e=jQuery(this),parentWidth=e.parent().width(),parentHeight=e.parent().height(),outerW=e.outerWidth(!0),outerH=e.outerHeight(!0),NOLISManager.Draggables.cache.startPos=e.position(),NOLISManager.Draggables.cache.startPos.right=parentWidth-(outerW+NOLISManager.Draggables.cache.startPos.left),NOLISManager.Draggables.cache.startPos.bottom=parentHeight-(outerH+NOLISManager.Draggables.cache.startPos.top),NOLISManager.Draggables.cache.mousedownX=t.pageX,NOLISManager.Draggables.cache.mousedownY=t.pageY,NOLISManager.Draggables.cache.dragActive=!0,NOLISManager.Draggables.cache.dragElement=e.attr("id"),!1}),1==NOLISManager.Draggables.cache.dragActive&&element_id==NOLISManager.Draggables.cache.dragElement&&void 0!==NOLISManager.Draggables.cache.mousedownX&&(differenzX=NOLISManager.Draggables.cache.mousedownX-t.pageX,differenzY=NOLISManager.Draggables.cache.mousedownY-t.pageY,e=jQuery(this),$parent=e.parent(),alignRight=!1,jQuery(this).hasClass("alignRight")&&(alignRight=!0),valignBottom=!1,jQuery(this).hasClass("val
1034ignBottom")&&(valignBottom=!0),alignRight?(align="right",newAlign=NOLISManager.Draggables.cache.startPos.right+differenzX):(align="left",newAlign=NOLISManager.Draggables.cache.startPos.left-differenzX),valignBottom?(valign="bottom",newValign=NOLISManager.Draggables.cache.startPos.bottom+differenzY):(valign="top",newValign=NOLISManager.Draggables.cache.startPos.top-differenzY),elementWidth=e.outerWidth(!0),elementHeight=e.outerHeight(!0),parentWidth=$parent.width(),parentHeight=$parent.height(),elementWidth<=parentWidth&&(newAlign<0?newAlign=0:newAlign>parentWidth-elementWidth&&(newAlign=parentWidth-elementWidth)),elementHeight<=parentHeight&&(newValign<0?newValign=0:newValign>parentHeight-elementHeight&&(newValign=parentHeight-elementHeight)),e.css(align,newAlign+"px"),e.css(valign,newValign+"px"),left_id=e.attr("id")+"_align",top_id=e.attr("id")+"_valign",void 0!==NOLISManager.Draggables.cache.dragElemente[element_id]&&($inputA=jQuery("#"+NOLISManager.Draggables.cache.dragElemente[element_id].inputA),$inputV=jQuery("#"+NOLISManager.Draggables.cache.dragElemente[element_id].inputV),$inputA.val(newAlign),$inputV.val(newValign)))})},initElemente:function(e){jQuery(e).length>0&&jQuery(e).each(function(){NOLISManager.Draggables.initElement(jQuery(this))})}},NOLISManager.DraggableSortables={createDropSortable:function(e,t,a,n){jQuery("div#"+t).sortable({items:"div.draggable"})},doDelDrag:async function(e,t,a){var n="1";2==t&&(n=await NConfirm("Möchten Sie diese Zuordnung wirklich löschen?")),"1"==n&&(jQuery("#"+e).remove(),a&&a.DraggableSourceSelection&&a.DraggableSourceSelection.remove(e))},sortable:function(e,t){jQuery(e).sortable({axis:"y",items:t,helper:function(e,t){return t.children().each(function(){jQuery(this).width(jQuery(this).width())}),t}})},openSelection:async function(e,t,a,n,r,o,s){var l=NOLISManager.String.str_replace("_drags","",e),u=NOLISManager.DraggableSortables.checkMaxLimit(l,n,"",1),d=s&&!jQuery.isEmptyObject(s)&&(!s.position||"autoDraggable"!=s.position);1==u&&(jQuery("#"+e+"_maxlimitinfo").length>0&&jQuery("#"+e+"_maxlimitinfo").remove(),0==jQuery("#"+e+"_suche").length&&jQuery('<div id="'+e+'_suche" class="suche"></div>').appendTo("#"+e),0==jQuery("#"+e+"_content").length&&jQuery('<div id="'+e+'_content" class="content"></div>').appendTo("#"+e)),jQuery("#"+e).show(),d?NOLISManager.Helper.clonePosition(e,n,s,1):NOLISManager.Helper.clonePosition(e,null,{left:5e3,top:65},1),jQuery("#"+e).draggable({handle:"#"+e+"_kopf",containment:"document"});var c=e+"_suche",m=e+"_content";if(a.srcContainerSucheID=c,a.srcContainerContentID=m,a.destContainerID=n,a.pseudoParam=(new Date).getTime(),NOLISManager.Helper.isset(a.valuesFromId))for(i in a.valuesFromId)jQuery("#"+NOLISManager.String.str_replace("|","\\|",a.valuesFromId[i])).length>0?a[a.valuesFromId[i]]=jQuery("#"+NOLISManager.String.str_replace("|","\\|",a.valuesFromId[i])).val():await NAlert("Element "+a.valuesFromId[i]+" nicht vorhanden.");NOLISManager.Helper.isset(a.serializeFormId)&&(a.serializedForm=jQuery("#"+a.serializeFormId).serialize()),jQuery.ajax({url:t,type:"get",dataType:"html",data:a}).done(function(t){jQuery("#"+e+"_suche").html(t),jQuery("body, html").scrollLeft(0),setTimeout(function(){NOLISManager.Helper.moveToVisibility(e)},250)})},createSourceSortable:function(e,t,a){var n={scroll:!1,cursor:"move",helper:"clone",appendTo:"body",items:"div.draggable"};n.connectWith="div#"+t,jQuery("div#"+e).sortable(n)},dropSortable:function(e,t,a,n,r){NOLISManager.Helper.isset(r)?jQuery("#"+NOLISManager.String.str_replace("|","\\|",t)).detach().appendTo(window.parent.document.getElementById(e)):jQuery("#"+NOLISManager.String.str_replace("|","\\|",t)).detach().appendTo("#"+e),""!=n&&("function"==typeof window[n]?window[n](e,t,a):"function"==typeof n&&n(e,t,a))},dropSortableHTML:function(e,t,a,n,r,i){if(null!==typeof r&&void 0!==r||(r=""),1===i)var o=jurl2domain+"ajax/drag_element.html";else o=jurl2cms+"inc/ajax/drag_element.php";jQuery.ajax({url:o,type:"get",dataType:"html",data:{destContainerID:e,srcContainerContentID:"",receiveDrop:r,data_id:a,typ:t,bezeichnung:n,farbe:"",preview:"",bezeichnungAnzeige:"",style:"",counter:0,not_draggable:0}}).done(function(t){jQuery("#"+e).append(t)})},startSourceAuswahl:function(e){var t=NOLISManager.Helper.serializeForm2Object(e);t.pseudoParam=(new Date).getTime(),jQuery.ajax({url:t.src,type:"post",dataType:"html",data:t}).done(function(e){jQuery("#"+t.srcContainerSucheID).html(e)}
1034).fail(function(){}).always(function(){})},checkMaxLimit:function(e,t,a,n){var r=parseInt(jQuery("#"+e+"_max_limit").val());return 0==r||r-NOLISManager.DraggableSortables.getBestehendeElemente(t,a).length>0?1:(1==parseInt(n)&&NOLISManager.DraggableSortables.showMaxLimitInfo(e),0)},showMaxLimitInfo:function(e){jQuery("#"+e+"_drags_maxlimitinfo").length>0&&jQuery("#"+e+"_drags_maxlimitinfo").remove(),jQuery("#"+e+"_drags_suche").remove(),jQuery("#"+e+"_drags_content").remove();var t=parseInt(jQuery("#"+e+"_max_limit").val()),a=t+" Einträgen";1==t&&(a="einem Eintrag"),jQuery('<div id="'+e+'_drags_maxlimitinfo" class="content"><p>Das Limit von '+a+" ist erreicht.</p></div>").appendTo("#"+e+"_drags")},getBestehendeElemente:function(e,t){for(var a,n=jQuery("#"+e+" .draggable, #"+e+" .not_draggable"),r=n.length,i=new Array,o=0;o<r;o++)a=(a=n[o].id).replace(/\|nolis[a-f0-9]{32}/,""),i.push(a);if(null!=typeof t&&void 0!==t&&""!=t)for(var s=t.split(";"),l=s.length,u=[],d=0,c=0;c<l;c++)for(d=(u=jQuery("#"+s[c]+" .draggable, #"+s[c]+" .not_draggable")).length,o=0;o<d;o++)a=(a=u[o].id).replace(/\|nolis[a-f0-9]{32}/,""),i.push(a);return i},startSourceSuche:function(e,t){var a=NOLISManager.Helper.serializeForm2Object(e);a.pseudoParam=(new Date).getTime();var n=NOLISManager.DraggableSortables.getBestehendeElemente(a.destContainerID,t);a.bestehende_elementeJSON=JSON.stringify(n),jQuery.ajax({url:a.src,type:"post",dataType:"html",data:a}).done(function(e){jQuery("#"+a.srcContainerContentID).html(e)})},closeSelection:function(e){var t=e+"_suche",a=e+"_content";jQuery("div#"+a).hasClass("ui-sortable")&&jQuery("div#"+a).sortable("destroy"),jQuery("#"+e).hide(),jQuery("#"+t).empty(),jQuery("#"+t).show(),jQuery("#"+a).empty(),jQuery("#"+a).show(),jQuery(".background-area").remove()},makeInputHiddenFromSortable:function(e,t,a,n){var r={};a&&(r.expression=a);for(var i=(s=jQuery("#"+e+" .not_draggable")).length,o=0;o<i;o++)jQuery(s[o]).addClass("not_draggable_temp"),jQuery(s[o]).addClass("draggable");var s,l="";for(jQuery("#"+e).hasClass("ui-sortable")&&(l=jQuery("#"+e).sortable("serialize",r)),i=(s=jQuery("#"+e+" .not_draggable_temp")).length,o=0;o<i;o++)jQuery(s[o]).removeClass("not_draggable_temp"),jQuery(s[o]).removeClass("draggable");var u=jQuery("<input />"),d={type:"hidden",id:t,name:t,value:l};NOLISManager.Helper.isset(n)&&1==n?u.attr(d).prependTo("#"+e):u.attr(d).appendTo("#"+e)},activateDrop:function(e,t,a){NOLISManager.Helper.highlightELement({id:e})},overDrop:function(e,t,a){},receiveDrop:function(e,t,a){NOLISManager.Helper.highlightELement({id:e}),jQuery("#addicon_"+t.replace("|","_")).remove();var n=NOLISManager.String.str_replace("_drop","",e);NOLISManager.DraggableSortables.checkMaxLimit(n,e,"",1)},addInput:function(e,t){var a="new"+Math.floor(1e3*Math.random()+1),n=document.createElement("div");jQuery(n).attr("id",e+"_"+a),jQuery(n).attr("class",e+"_draggable draggable"),jQuery(n).appendTo("#"+t);var r=document.createElement("input");r.type="text",r.name=e+"["+a+"][data]",r.id=e+a+"_data",r.value="",document.getElementById(e+"_"+a).appendChild(r)}},NOLISManager.Termine={checkTagesAnzahl:async function(e,t){var a=0;if(1!=e&&3!=e&&5!=e&&7!=e&&8!=e&&10!=e&&12!=e||!(t<1||t>31)||(document.getElementById("manager_form").muster4_tag.value=31,a=1),4!=e&&6!=e&&9!=e&&11!=e||!(t<1||t>30)||(document.getElementById("manager_form").muster4_tag.value=30,a=1),2==e&&(isleap=0,(t<1||t>29&&isleap||t>28&&!isleap)&&(isleap?document.getElementById("manager_form").muster4_tag.value=29:document.getElementById("manager_form").muster4_tag.value=28,a=1)),a){var n="Ungültige Tagesangabe";1==jcms?await NAlert(n):alert(n)}},checkWochentage:async function(){for(var e=0,t=0;t<document.getElementById("manager_form").length;t++)"muster2_wochentag[]"==document.getElementById("manager_form").elements[t].name&&document.getElementById("manager_form").elements[t].checked&&e++;if(0==e){var a="Es muss mindestens ein Wochentag\nausgewählt sein.";for(1==jcms?await NAlert(a):alert(a),t=0;t<document.getElementById("manager_form").length;t++)if("muster2_wochentag[]"==document.getElementById("manager_form").elements[t].name){document.getElementById("manager_form").elements[t].checked=!0;break}}},setTermine:function(e){null!=e&&""!=e||(e="manager_form");var t=jQuery("input[name='serie_muster']:checked").val();1==t&&(jQuery("#m1").show(),jQuery("#m2").hide(),jQuery("#m3").hide(),jQuery("#m4").hide()),2==t&&(jQuery("#m1").hide(),jQuery("#m2").show(),jQuery("#m3").hide(),jQuery("#m4").hide()),3==t&&(jQuery("#m1").hide(),jQuery("#m2").hide(),jQuery("#m3").show(),jQuery("#m4").hide()),4==t&&(jQuery("#m1").hide(),jQuery("#m2").hide(),jQuery("#m3").hide(),jQuery("#m4").show()),"checked"!=jQuery("#ganztag").prop("checked")&&(NOLISManager.Helper.setDisableFormField(!1,"end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"end_minute"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit"))},setSerie:function(e){null!=e&&""!=e||(e="manager_form"),jQuery("#startdatum_label").html('Datum<span class="required-asterisk">*</span>'),jQuery("#serientyp").removeClass("active"),jQuery("#serientyp").removeClass("inactive"),jQuery("#block").removeClass("active"),jQuery("#block").removeClass("inactive"),jQuery("#einzeltermine").removeClass("active"),jQuery("#einzeltermine").removeClass("inactive"),jQuery("#ende_der_serie_tr").removeClass("inactive"),jQuery("#ende_der_serie_tr").removeClass("active"),jQuery("#serie_uhrzeit").removeClass("inactive"),jQuery("#serie_uhrzeit").removeClass("active"),jQuery("#startdatum_tr").removeClass("inactive"),jQuery("#startdatum_tr").removeClass("active"),jQuery("#ganztag_block").removeClass("inactive"),jQuery("#ganztag_block").removeClass("active"),jQuery("#ganztag").removeClass("inactive"),jQuery("#ganztag").removeClass("active"),jQuery("#serienart").addClass("active"),jQuery("#ganztag").removeClass("active");
1034var t=jQuery("form[name='"+e+"'] input[name='serie']:checked").val();0==t?(jQuery("#serientyp").addClass("inactive"),jQuery("#block").addClass("inactive"),jQuery("#einzeltermine").addClass("inactive"),jQuery("#ende_der_serie_tr").addClass("inactive"),jQuery("#ganztag_block").addClass("inactive"),jQuery("#serie_uhrzeit").addClass("active"),jQuery("#startdatum_tr").addClass("active"),jQuery("#ganztag").addClass("bg_rot"),jQuery("#muster6_string").val="",NOLISManager.Helper.setDisableFormField(!1,"start_tag"),NOLISManager.Helper.setDisableFormField(!1,"start_monat"),NOLISManager.Helper.setDisableFormField(!1,"start_jahr"),NOLISManager.Helper.setDisableFormField(!1,"start_datum"),NOLISManager.Helper.setDisableFormField(!1,"start_datum_clone"),jQuery("#start_datum").attr("required",!0),jQuery("#start_datum").attr("aria-required",!0),NOLISManager.Helper.setDisableFormField(!0,"block_start_tag"),NOLISManager.Helper.setDisableFormField(!0,"block_start_monat"),NOLISManager.Helper.setDisableFormField(!0,"block_start_jahr"),NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_datum"),NOLISManager.Helper.setDisableFormField(!0,"block_start_datum_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),jQuery("#block_start_datum").attr("required",!1),jQuery("#block_start_datum").attr("aria-required",!1),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_tag"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_monat"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_jahr"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_datum"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_datum_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone"),jQuery("#block_serie_muster_ende_datum").attr("required",!1),jQuery("#block_serie_muster_ende_datum").attr("aria-required",!1),jQuery("#muster6_string").attr("required",!1),jQuery("#muster6_string").attr("aria-required",!1)):1==t?(jQuery("#block").addClass("inactive"),jQuery("#einzeltermine").addClass("inactive"),jQuery("#ganztag_block").addClass("inactive"),jQuery("#serientyp").addClass("active"),jQuery("#ende_der_serie_tr").addClass("active"),jQuery("#serie_uhrzeit").addClass("active"),jQuery("#startdatum_tr").addClass("active"),jQuery("#ganztag").addClass("active"),jQuery("#startdatum_label").html('Start der Serie<span class="required-asterisk">*</span>'),jQuery("#muster6_string").val="",NOLISManager.Helper.setDisableFormField(!1,"start_tag"),NOLISManager.Helper.setDisableFormField(!1,"start_monat"),NOLISManager.Helper.setDisableFormField(!1,"start_jahr"),NOLISManager.Helper.setDisableFormField(!1,"start_datum"),NOLISManager.Helper.setDisableFormField(!1,"start_datum_clone"),jQuery("#start_datum").attr("required",!0),jQuery("#start_datum").attr("aria-required",!0),NOLISManager.Helper.setDisableFormField(!0,"block_start_tag"),NOLISManager.Helper.setDisableFormField(!0,"block_start_monat"),NOLISManager.Helper.setDisableFormField(!0,"block_start_jahr"),NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_datum"),NOLISManager.Helper.setDisableFormField(!0,"block_start_datum_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),jQuery("#block_start_datum").attr("required",!1),jQuery("#block_start_datum").attr("aria-required",!1),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_tag"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_monat"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_jahr"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_datum"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_datum_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone"),jQuery("#block_serie_muster_ende_datum").attr("required",!1),jQuery("#block_serie_muster_ende_datum").attr("aria-required",!1),jQuery("#muster6_string").attr("required",!1),jQuery("#muster6_string").attr("aria-required",!1)):2==t?(jQuery("#serientyp").addClass("inactive"),jQuery("#einzeltermine").addClass("inactive"),jQuery("#ende_der_serie_tr").addClass("inactive"),jQuery("#serie_uhrzeit").addClass("inactive"),jQuery("#startdatum_tr").addClass("inactive"),jQuery("#ganztag").addClass("inactive"),jQuery("#ganztag_block").addClass("active"),jQuery("#ganztag").addClass("active"),jQuery("#block").addClass("active"),jQuery("#muster6_string").val="",void 0!==jQuery("#start_schulstunde")&&(jQuery("#start_schulstunde option:first-child").prop("selected",!0),jQuery("#end_schulstunde option:first-child").prop("selected",!0)),0==jQuery("#block_ganztag:checked").length?(NOLISManager.Helper.setDisableFormField(!1,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit_clone")):(NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone")),NOLISManager.Helper.setDisableFormField(!1,"block_start_tag"),NOLISManager.Helper.setDisableFormField(!1,"block_start_monat"),NOLISManager.Helper.setDisableFormField(!1,"block_start_jahr"),NOLISManager.Helper.setDisableFormField(!1,"block_start_datum"),NOLISManager.Helper.setDisableFormField(!1,"block_start_datum_clone"),jQuery("#block_start_datum").attr("required",!0),jQuery("#block_start_datum").attr("aria-required",!0),NOLISManager.Helper.setDisableFormField(!1,"block_serie_muster_ende_tag"),NOLISManager.Helper.setDisableFormField(!1,"block_serie_muster_ende_monat"),NOLISManager.Helper.setDisableFormField(!1,"block_serie_muster_ende_jahr"),NOLISManager.Helper.setDisableFormField(!1,"block_serie_muster_ende_datum"),NOLISManager.Helper.setDisableFormField(!1,"block_serie_muster_ende_datum_clone"),jQuery("#block_serie_muster_ende_datum").attr("required",!0),jQuery("#block_serie_muster_ende_datum").attr("aria-required",!0),NOLISManager.Helper.setDisableFormField(!1,"serie_muster_ende_tag"),NOLISManager.Helper.setDisableFormField(!1,"serie_muster_ende_monat"),NOLISManager.Helper.setDisableFormField(!1,"serie_muster_ende_jahr"),NOLISManager.Helper.setDisableFormField(!1,"serie_muster_ende_datum"),NOLISManager.Helper.setDisableFormField(!1,"serie_muster_ende_datum_clone"),jQuery("#serie_muster_ende_datum").attr("required",!1),jQuery("#serie_muster_ende_datum").attr("aria-required",!1),NOLISManager.Helper.setDisableFormField(!0,"start_tag"),NOLISManager.Helper.setDisableFormField(!0,"start_monat"),NOLISManager.Helper.setDisableFormField(!0,"start_jahr"),NOLISManager.Helper.setDisableFormField(!0,"start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"start_minute"),NOLISManager.Helper.setDisableFormField(!0,"start_datum"),NOLISManager.Helper.setDisableFormField(!0,"start_datum_clone"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"end_tag"),NOLISManager.Helper.setDisableFormField(!0,"end_monat"),NOLISManager.Helper.setDisableFormField(!0,"end_jahr"),NOLISManager.Helper.setDisableFormField(!0,"end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"end_minute"),NOLISManager.Helper.setDisableFormField(!0,"end_datum"),NOLISManager.Helper.setDisableFormField(!0,"end_datum_clone"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit_clone"),jQuery("#end_datum").attr("required",!1),jQuery("#end_datum").attr("aria-required",!1),jQuery("#muster6_string").attr("required",!1),jQuery("#muster6_string").attr("aria-required",!1)):3==t&&(jQuery("#serientyp").addClass("inactive"),jQuery("#block").addClass("inactive"),jQuery("#ende_der_serie_tr").addClass("inactive"),jQuery("#ganztag_block").addClass("inactive"),jQuery("#startdatum_label").html('erster Termin<span class="required-asterisk">*</span>'),jQuery("#einzeltermine").addClass("active"),jQuery("#serie_uhrzeit").addClass("active"),jQuery("#startdatum_tr").addClass("active"),jQuery("#ganztag").addClass("active"),NOLISManager.Helper.setDisableFormField(!1,"start_tag"),NOLISManager.Helper.setDisableFormField(!1,"start_monat"),NOLISManager.Helper.setDisableFormField(!1,"start_jahr"),NOLISManager.Helper.setDisableFormField(!1,"start_datum"),NOLISManager.Helper.setDisableFormField(!1,"start_datum_clone"),jQuery("#start_datum").attr("required",!0),jQuery("#start_datum").attr("aria-required",!0),NOLISManager.Helper.setDisableFormField(!0,"block_start_tag"),NOLISManager.Helper.setDisableFormField(!0,"block_start_monat"),NOLISManager.Helper.setDisableFormField(!0,"block_start_jahr"),NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_datum"),NOLISManager.Helper.setDisableFormField(!0,"block_start_datum_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),jQuery("#block_start_datum").attr("required",!1),jQuery("#block_start_datum").attr("aria-required",!1),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_tag"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_monat"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_jahr"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_datum"),NOLISManager.Helper.setDisableFormField(!0,"block_serie_muster_ende_datum_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone"),jQuery("#block_serie_muster_ende_datum").attr("required",!1),jQuery("#block_serie_muster_ende_datum").attr("aria-required",!1),NOLISManager.Helper.setDisableFormField(!0,"end_tag"),NOLISManager.Helper.setDisableFormField(!0,"end_monat"),NOLISManager.Helper.setDisableFormField(!0,"end_jahr"),NOLISManager.Helper.setDisableFormField(!0,"end_datum"),NOLISManager.Helper.setDisableFormField(!0,"end_datum_clone"),jQuery("#end_datum").attr("required",!1),jQuery("#end_datum").attr("aria-required",!1),jQuery("#muster6_string").attr("required",!0),jQuery("#muster6_string").attr("aria-required",!0)),2==t&&(0==jQuery("#ganztag:checked").length?(jQuery("#uhrzeit_container").show(),jQuery("#ganztagOder").show(),jQuery("#ganztagIcon").hide(),jQuery("#start_stunde").prop("disabled",!1),jQuery("#start_minute").prop("disabled",!1),jQuery("#end_stunde").prop("disabled",!1),jQuery("#end_minute").prop("disabled",!1)):(jQuery("#uhrzeit_container").hide(),jQuery("#ganztagOder").hide(),jQuery("#ganztagIcon").show(),NOLISManager.Helper.setDisableFormField(!0,"start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"start_minute"),NOLISManager.Helper.setDisableFormField(!0,"end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"end_minute"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit_clone")))},setUhrzeit:function(e,t){t>0||1==e?(jQuery("#start_stunde").val(""),jQuery("#end_stunde").val(""),jQuery("#start_minute").val(""),jQuery("#end_minute").val(""),jQuery("#block_start_stunde").val(""),jQuery("#block_end_stunde").val(""),jQuery("#block_start_minute").val(""),jQuery("#block_end_minute").val(""),jQuery("#start_uhrzeit").val("").change(),jQuery("#start_uhrzeit_clone").val("").change(),jQuery("#end_uhrzeit").val("").change(),jQuery("#end_uhrzeit_clone").val("").change(),jQuery("#block_start_uhrzeit").val("").change(),jQuery("#block_start_uhrzeit_clone").val("").change(),jQuery("#block_end_uhrzeit").val("").change(),jQuery("#block_end_uhrzeit_clone").val("").change(),NOLISManager.Helper.setDisableFormField(!0,"start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"start_minute"),NOLISManager.Helper.setDisableFormField(!0,"end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone"),1==e&&(void 0!==jQuery("#start_schulstunde")&&(jQuery("#start_schulstunde option:first-child").prop("selected",!0),jQuery("#end_schulstunde option:first-child").prop("selected",!0),NOLISManager.Helper.setDisableFormField(!0,"start_schulstunde"),NOLISManager.Helper.setDisableFormField(!0,"end_schulstunde")),jQuery("#ganztag").prop("checked",!0),jQuery("#block_ganztag").prop("checked",!0),jQuery("#ganztagIcon").show(),jQuery("#block_ganztagIcon").show())):(checkStart=!1,checkEnd=!1,schulstunde=!1,void 0!==jQuery("#start_schulstunde")&&(schulstunde=!0),schulstunde&&(jQuery("#start_schulstunde option:selected").each(function(){0==this.value&&(checkStart=!0)}),jQuery("#end_schulstunde option:selected").each(function(){0==this.value&&(checkEnd=!0)})),(!schulstunde||checkStart&&checkEnd)&&(NOLISManager.Helper.setDisableFormField(!1,"start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"start_minute"),NOLISManager.Helper.setDisableFormField(!1,"end_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit_clone")),schulstunde&&(NOLISManager.Helper.setDisableFormField(!1,"start
1034_schulstunde"),NOLISManager.Helper.setDisableFormField(!1,"end_schulstunde")))},enableSerie:function(){jQuery(".serienterminEingabe .serie .disabled").each(function(){jQuery(this).prop("disabled",!1)})},showHideSerie:function(e,t){"undefined"!=t&&""!=t||(t="manager_form");var a=!1,n=!1,r=!1,i=!1,o=!1;void 0!==jQuery("#start_schulstunde")&&(a=!0),a&&(jQuery("#start_schulstunde option:selected").each(function(){0!=this.value&&(n=!0)}),jQuery("#end_schulstunde option:selected").each(function(){0!=this.value&&(r=!0)})),a&&(n||r)&&(i=!0),e&&"none"!=jQuery("#serienart").css("display")?(jQuery(".serienterminEingabe .active").each(function(){jQuery(this).hide()}),jQuery(".serienterminEingabe .inactive").each(function(){jQuery(this).hide()})):(o=!0,jQuery(".serienterminEingabe .active").each(function(){jQuery(this).show()}),jQuery(".serienterminEingabe .inactive").each(function(){jQuery(this).hide()})),1==document.getElementById(t).serie[2].checked?(jQuery("#ganztag").prop("checked")||(NOLISManager.Helper.setDisableFormField(!1,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit_clone")),NOLISManager.Helper.setDisableFormField(!0,"start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"start_minute"),NOLISManager.Helper.setDisableFormField(!0,"end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"end_minute"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit_clone")):(jQuery("#ganztag").prop("checked")||i||(NOLISManager.Helper.setDisableFormField(!1,"start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"start_minute"),NOLISManager.Helper.setDisableFormField(!1,"end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"end_minute"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit_clone")),NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone")),o?jQuery("input[type=hidden].serienfelder-hidden").each(function(){jQuery(this).prop("disabled",!0)}):jQuery("input[type=hidden].serienfelder-hidden").each(function(){jQuery(this).prop("disabled",!1)})},check_taeglich_anzahlTage:async function(e){if(e<1){var t="Der Wert muss mindestens 1 sein!";1==jcms?await NAlert(t):alert(t),jQuery("#muster1_tage").val(1),e=1}1==e?(jQuery("#taeglich_einTermin_container").show(),NOLISManager.Helper.setDisableFormField(!1,"taeglich_einTermin")):(NOLISManager.Helper.setDisableFormField(!0,"taeglich_einTermin"),jQuery("#taeglich_einTermin_container").hide())},setDates:function(e){switch(e){case"serie_muster_ende":jQuery("#endet_am").prop("checked",!0),jQuery("#block_serie_muster_ende_tag").val(jQuery("#serie_muster_ende_tag").val()),jQuery("#block_serie_muster_ende_monat").val(jQuery("#serie_muster_ende_monat").val()),jQuery("#block_serie_muster_ende_jahr").val(jQuery("#serie_muster_ende_jahr").val()),jQuery("#block_serie_muster_ende_datum").val(jQuery("#serie_muster_ende_datum").val()).change(),jQuery("#block_serie_muster_ende_datum_clone").val(jQuery("#serie_muster_ende_datum_clone").val()).change();break;case"block_serie_muster_ende":jQuery("#endet_am").prop("checked",!0),jQuery("#serie_muster_ende_tag").val(jQuery("#block_serie_muster_ende_tag").val()),jQuery("#serie_muster_ende_monat").val(jQuery("#block_serie_muster_ende_monat").val()),jQuery("#serie_muster_ende_jahr").val(jQuery("#block_serie_muster_ende_jahr").val()),jQuery("#serie_muster_ende_datum").val(jQuery("#block_serie_muster_ende_datum").val()).change(),jQuery("#serie_muster_ende_datum_clone").val(jQuery("#block_serie_muster_ende_datum_clone").val()).change();break;case"start":jQuery("#block_start_tag").val(jQuery("#start_tag").val()),jQuery("#block_start_monat").val(jQuery("#start_monat").val()),jQuery("#block_start_jahr").val(jQuery("#start_jahr").val()),jQuery("#block_start_datum").val(jQuery("#start_datum").val()).change(),jQuery("#block_start_datum_clone").val(jQuery("#start_datum_clone").val()).change();case"block_start":jQuery("#start_tag").val(jQuery("#block_start_tag").val()),jQuery("#start_monat").val(jQuery("#block_start_monat").val()),jQuery("#start_jahr").val(jQuery("#block_start_jahr").val()),jQuery("#start_datum").val(jQuery("#block_start_datum").val()).change(),jQuery("#start_datum_clone").val(jQuery("#block_start_datum_clone").val()).change()}},createSerienListener:function(e){null!=e&&""!=e||(e="manager_form"),jQuery("#ganztag").click(function(){jQuery("#ganztag").prop("checked")?(jQuery("div#c_ganztag").css("padding-top","0.5rem"),NOLISManager.Helper.setDisableFormField(!0,"start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"start_minute"),NOLISManager.Helper.setDisableFormField(!0,"end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"end_minute"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit_clone"),jQuery("#uhrzeit_container").hide(),jQuery("#ganztagOder").hide(),jQuery("#ganztagIcon").show(),jQuery("#start_stunde").val(""),jQuery("#start_minute").val(""),jQuery("#end_stunde").val(""),jQuery("#end_minute").val(""),jQuery("#start_uhrzeit").val("").change(),jQuery("#start_uhrzeit_clone").val("").change(),jQuery("#end_uhrzeit").val("").change(),jQuery("#end_uhrzeit_clone").val("").change(),jQuery("#block_ganztag").prop("checked",!0),NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone"),jQuery("#block_ganztagOder").hide(),jQuery("#block_ganztagIcon").show(),jQuery("#block_start_stunde").val(""),jQuery("#block_start_minute").val(""),jQuery("#block_end_stunde").val(""),jQuery("#block_end_minute").val(""),jQuery("#block_start_uhrzeit").val("").change(),jQuery("#block_start_uhrzeit_clone").val("").change(),jQuery("#block_end_uhrzeit").val("").change(),jQuery("#block_end_uhrzeit_clone").val("").change(),void 0!==jQuery("#start_schulstunde")&&(jQuery("#start_schulstunde option:first-child").prop("selected",!0),jQuery("#end_schulstunde option:first-child").prop("selected",!0),NOLISManager.Helper.setDisableFormField(!0,"start_schulstunde"),NOLISManager.Helper.setDisableFormField(!0,"end_schulstunde"))):(jQuery("div#c_ganztag").css("padding-top","0rem"),NOLISManager.Helper.setDisableFormField(!1,"start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"start_minute"),NOLISManager.Helper.setDisableFormField(!1,"end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"end_minute"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit_clone"),jQuery("#uhrzeit_container").show(),jQuery("#ganztagOder").show(),jQuery("#ganztagIcon").hide(),jQuery("#block_ganztag").prop("checked",!1),NOLISManager.Helper.setDisableFormField(!1,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit_clone"),jQuery("#block_ganztagOder").show(),jQuery("#block_ganztagIcon").hide(),void 0!==jQuery("#start_schulstunde")&&(NOLISManager.Helper.setDisableFormField(!1,"start_schulstunde"),NOLISManager.Helper.setDisableFormField(!1,"end_schulstunde")))}),jQuery("#block_ganztag").click(function(){jQuery("#block_ganztag").prop("checked")?(NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone"),jQuery("#block_ganztagOder").hide(),jQuery("#block_ganztagIcon").show(),jQuery("#block_start_stunde").val(""),jQuery("#block_start_minute").val(""),jQuery("#block_end_stunde").val(""),jQuery("#block_end_minute").val(""),jQuery("#block_start_uhrzeit").val("").change(),jQuery("#block_start_uhrzeit_clone").val("").change(),jQuery("#block_end_uhrzeit").val("").change(),jQuery("#block_end_uhrzeit_clone").val("").change(),jQuery("#ganztag").prop("checked",!0),NOLISManager.Helper.setDisableFormField(!0,"start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"start_minute"),NOLISManager.Helper.setDisableFormField(!0,"end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"end_minute"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit_clone"),jQuery("#uhrzeit_container").hide(),jQuery("#ganztagOder").hide(),jQuery("#ganztagIcon").show(),jQuery("#start_stunde").val(""),jQuery("#start_minute").val(""),jQuery("#end_stunde").val(""),jQuery("#end_minute").val(""),jQuery("#start_uhrzeit").val("").change(),jQuery("#start_uhrzeit_clone").val("").change(),jQuery("#end_uhrzeit").val("").change(),jQuery("#end_uhrzeit_clone").val("").change(),void 0!==jQuery("#start_schulstunde")&&(jQuery("#start_schulstunde option:first-child").prop("selected",!0),jQuery("#end_schulstunde option:first-child").prop("selected",!0),NOLISManager.Helper.setDisableFormField(!0,"start_schulstunde"),NOLISManager.Helper.setDisableFormField(!0,"end_schulstunde"))):(NOLISManager.Helper.setDisableFormField(!1,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit_clone"),jQuery("#block_uhrzeit_container").show(),jQuery("#block_ganztagOder").show(),jQuery("#block_ganztagIcon").hide(),jQuery("#ganztag").prop("checked",!1),NOLISManager.Helper.setDisableFormField(!1,"start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"start_minute"),NOLISManager.Helper.setDisableFormField(!1,"end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"end_minute"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit_clone"),jQuery("#uhrzeit_container").show(),jQuery("#ganztagOder").show(),jQuery("#ganztagIcon").hide(),void 0!==jQuery("#start_schulstunde")&&(NOLISManager.Helper.setDisableFormField(!1,"start_schulstunde"),NOLISManager.Helper.setDisableFormField(!1,"end_schulstunde")))}),jQuery(window).ready(function(){jQuery("#ganztag").prop("checked")?(jQuery("div#c_ganztag").css("padding-top","0.5rem"),NOLISManager.Helper.setDisableFormField(!0,"start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"start_minute"),NOLISManager.Helper.setDisableFormField(!0,"end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"end_minute"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit_clone"),jQuery("#uhrzeit_container").hide(),jQuery("#ganztagOder").hide(),jQuery("#ganztagIcon").show(),jQuery("#block_ganztag").prop("checked",!0),NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone"),jQuery("#block_ganztagOder").hide(),jQuery("#block_ganztagIcon").show()):(jQuery("div#c_ganztag").css("padding-top","0rem"),NOLISManager.Helper.setDisableFormField(!1,"start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"start_minute"),NOLISManager.Helper.setDisableFormField(!1,"end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"end_minute"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"end_uhrzeit_clone"),jQuery("#uhrzeit_container").show(),jQuery("#ganztagOder").show(),jQuery("#ganztagIcon").hide(),jQuery("#block_ganztag").prop("checked",!1),NOLISManager.Helper.setDisableFormField(!1,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!1,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!1,"block_end_uhrzeit_clone"),jQuery("#block_ganztagOder").show(),jQuery("#block_ganztagIcon").hide(),void 0!==jQuery("#start_schulstunde")&&(NOLISManager.Helper.setDisableFormField(!1,"start_schulstunde"),NOLISManager.Helper.setDisableFormField(!1,"end_schulstunde"))),void 0!==jQuery("#start_schulstunde")&&(checkStart=!1,checkEnd=!1,jQuery("#start_schulstunde option:selected").each(function(){0!=this.value&&(checkStart=!0)}),jQuery("#end_schulstunde option:selected").each(function(){0!=this.value&&(checkEnd=!0)}),(checkStart||checkEnd)&&(NOLISManager.Helper.setDisableFormField(!0,"start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"start_minute"),NOLISManager.Helper.setDisableFormField(!0,"end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"end_minute"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField
1034(!0,"end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"end_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_start_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_start_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_end_stunde"),NOLISManager.Helper.setDisableFormField(!0,"block_end_minute"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_start_uhrzeit_clone"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit"),NOLISManager.Helper.setDisableFormField(!0,"block_end_uhrzeit_clone"))),NOLISManager.Termine.setTermine(e),NOLISManager.Termine.setSerie(e)}),jQuery("#start_tag").blur(function(){jQuery("#block_start_tag").val(jQuery("#start_tag").val())}),jQuery("#start_monat").blur(function(){jQuery("#block_start_monat").val(jQuery("#start_monat").val())}),jQuery("#start_jahr").blur(function(){jQuery("#block_start_jahr").val(jQuery("#start_jahr").val())}),jQuery("#start_stunde").blur(function(){jQuery("#block_start_stunde").val(jQuery("#start_stunde").val())}),jQuery("#start_minute").blur(function(){jQuery("#block_start_minute").val(jQuery("#start_minute").val())}),jQuery("#start_datum").blur(function(){jQuery("#block_start_datum").val(jQuery("#start_datum").val()).change(),jQuery("#block_start_datum_clone").val(jQuery("#start_datum_clone").val()).change()}),jQuery("#start_uhrzeit").blur(function(){jQuery("#block_start_uhrzeit").val(jQuery("#start_uhrzeit").val()).change(),jQuery("#block_start_uhrzeit_clone").val(jQuery("#start_uhrzeit_clone").val()).change()}),jQuery("#block_start_tag").blur(function(){jQuery("#start_tag").val(jQuery("#block_start_tag").val())}),jQuery("#block_start_monat").blur(function(){jQuery("#start_monat").val(jQuery("#block_start_monat").val())}),jQuery("#block_start_jahr").blur(function(){jQuery("#start_jahr").val(jQuery("#block_start_jahr").val())}),jQuery("#block_start_stunde").blur(function(){jQuery("#start_stunde").val(jQuery("#block_start_stunde").val())}),jQuery("#block_start_minute").blur(function(){jQuery("#start_minute").val(jQuery("#block_start_minute").val())}),jQuery("#block_start_datum").blur(function(){jQuery("#start_datum").val(jQuery("#block_start_datum").val()).change(),jQuery("#start_datum_clone").val(jQuery("#block_start_datum_clone").val()).change()}),jQuery("#block_start_uhrzeit").blur(function(){jQuery("#start_uhrzeit").val(jQuery("#block_start_uhrzeit").val()).change(),jQuery("#start_uhrzeit_clone").val(jQuery("#block_start_uhrzeit_clone").val()).change()}),jQuery("#end_stunde").blur(function(){jQuery("#block_end_stunde").val(jQuery("#end_stunde").val())}),jQuery("#end_minute").blur(function(){jQuery("#block_end_minute").val(jQuery("#end_minute").val())}),jQuery("#block_end_stunde").blur(function(){jQuery("#end_stunde").val(jQuery("#block_end_stunde").val())}),jQuery("#block_end_minute").blur(function(){jQuery("#end_minute").val(jQuery("#block_end_minute").val())}),jQuery("#block_end_datum").blur(function(){jQuery("#end_datum").val(jQuery("#block_end_datum").val()).change(),jQuery("#end_datum_clone").val(jQuery("#block_end_datum_clone").val()).change()}),jQuery("#block_end_uhrzeit").blur(function(){jQuery("#end_uhrzeit").val(jQuery("#block_end_uhrzeit").val()).change(),jQuery("#end_uhrzeit_clone").val(jQuery("#block_end_uhrzeit_clone").val()).change()}),jQuery("#muster1_tage").keyup(function(){value=jQuery("input#muster1_tage").val(),""!=value&&jQuery("#alleXTage").prop("checked",!0)}),jQuery("#muster3_tag").keyup(function(){value=jQuery("input#muster3_tag").val(),""!=value&&jQuery("#monatlichAm1").prop("checked",!0)}),jQuery("#muster3_monat1").keyup(function(){value=jQuery("input#muster3_monat1").val(),""!=value&&jQuery("#monatlichAm1").prop("checked",!0)}),jQuery("#muster3_pos").change(function(){value=jQuery("select#muster3_pos").val(),""!=value&&jQuery("#monatlichAm2").prop("checked",!0)}),jQuery("#muster3_wochentag").change(function(){value=jQuery("select#muster3_wochentag").val(),""!=value&&jQuery("#monatlichAm2").prop("checked",!0)}),jQuery("#muster3_monat2").keyup(function(){value=jQuery("input#muster3_monat2").val(),""!=value&&jQuery("#monatlichAm2").prop("checked",!0)}),jQuery("#muster4_tag").keyup(function(){value=jQuery("input#muster4_tag").val(),""!=value&&jQuery("#muster4").prop("checked",!0)}),jQuery("#muster4_monat1").change(function(){value=jQuery("select#muster4_monat1").val(),""!=value&&jQuery("#muster4").prop("checked",!0)}),jQuery("#muster4_pos").change(function(){value=jQuery("select#muster4_pos").val(),""!=value&&jQuery("#muster4_2").prop("checked",!0)}
1034),jQuery("#muster4_wochentag").change(function(){value=jQuery("select#muster4_wochentag").val(),""!=value&&jQuery("#muster4_2").prop("checked",!0)}),jQuery("#muster4_monat2").change(function(){value=jQuery("select#muster4_monat2").val(),""!=value&&jQuery("#muster4_2").prop("checked",!0)}),jQuery("input#serie_muster_ende_anzahl").keyup(function(){value=jQuery("input#serie_muster_ende_anzahl").val(),""!=value&&jQuery("#endet_nach").prop("checked",!0)}),jQuery("input#serie_muster_ende_anzahl").blur(async function(){if(value=jQuery("input#serie_muster_ende_anzahl").val(),value<2){var e="Der Wert muss mindestens 2 sein!";1==jcms?await NAlert(e):alert(e),jQuery("#serie_muster_ende_anzahl").val(2)}}),jQuery("#serie_muster_ende_tag").keyup(function(){value=jQuery("#serie_muster_ende_tag").val(),""!=value&&jQuery("#endet_am").prop("checked",!0)}),jQuery("#serie_muster_ende_monat").keyup(function(){value=jQuery("#serie_muster_ende_monat").val(),""!=value&&jQuery("#endet_am").prop("checked",!0)}),jQuery("#serie_muster_ende_jahr").keyup(function(){value=jQuery("#serie_muster_ende_jahr").val(),""!=value&&jQuery("#endet_am").prop("checked",!0)}),jQuery("#serie_muster_ende_datum").keyup(function(){value=jQuery("#serie_muster_ende_datum").val(),""!=value&&jQuery("#endet_am").prop("checked",!0)})}},NOLISManager.DokuFis=NOLISManager.Helper.createClass(),NOLISManager.DokuFis.prototype={container_id:"dmscontainer",ajax_url:"",owner:0,portal:1,folder_select_target:"",js_dms_objectname:"",js_upload_objectname:"",jurl2cms:jurl2cms,initialize:function(e,t,a,n,r){this.owner=e||0,this.portal=t||1,this.folder_select_target=r||"",2===this.portal?this.ajax_url="/ajax/dokufis.html":this.ajax_url=this.jurl2cms+"inc/ajax/dokufis.php",this.js_dms_objectname=a,this.js_upload_objectname=n},initDiv:function(e){if(jQuery("#"+this.container_id).length>0)1==e&&this.startDMS();else{var t={};t.portal=this.portal,t.folder_select_target=this.folder_select_target,t.js_dms_objectname=this.js_dms_objectname,t.js_upload_objectname=this.js_upload_objectname,t.funktion="init",t.container_id=this.container_id;var a=this,n=jQuery.ajax({url:this.ajax_url,type:"POST",data:t,dataType:"json"});n.done(async function(t){var n=new NOLISManager.Result(t);if(n.isOK()){var r=n.getData();jQuery("body").append(r),jQuery("#"+a.container_id).length>0?1==e&&a.startDMS():await NAlert("DMS-Container nicht vorhanden. (Init)")}else alert(n.getMessage())}),n.fail(async function(e,t){await NAlert("Request failed(DMS.initDiv): "+t)})}},startDMS:async function(){if(jQuery("#"+this.container_id).length>0){var e={};e.portal=this.portal,e.folder_select_target=this.folder_select_target,e.js_dms_objectname=this.js_dms_objectname,e.js_upload_objectname=this.js_upload_objectname,e.pseudoParam=(new Date).getTime(),e.funktion="loginmaske";var t=this,a=jQuery.ajax({url:this.ajax_url,type:"POST",data:e,dataType:"json"});a.done(async function(e){var a=new NOLISManager.Result(e);if(a.isOK()){var n=a.getData();NOLISManager.OverForm.openSelectionHTML(t.container_id,n,{},null,{top:"mitte",left:"mitte"})}else await NAlert(a.getMessage())}),a.fail(async function(e,t){await NAlert("Request failed(DMS.startDMS): "+t)})}else await NAlert(this.container_id+"DMS-Container nicht vorhanden. (Start)")},login:function(e){param={},param.portal=this.portal,param.folder_select_target=this.folder_select_target,param.js_dms_objectname=this.js_dms_objectname,param.js_upload_objectname=this.js_upload_objectname,param.funktion="login",param.user=jQuery("#"+e+" #user").val(),param.pw=jQuery("#"+e+" #pw").val();var t=this;NOLISManager.Ladebildschirm.init("Bitte warten ...<br />Daten werden geladen.");var a=jQuery.ajax({type:"POST",url:this.ajax_url,data:param,dataType:"json",beforeSend:function(){NOLISManager.Ladebildschirm.anzeigen()}});a.always(function(){NOLISManager.Ladebildschirm.ausblenden()}),a.done(async function(e){var a=new NOLISManager.Result(e);if(a.isOK()){var n=a.getData();html=n.strukturhtml,NOLISManager.OverForm.openSelectionHTML(t.container_id,html,{},null,{top:65,left:50}),jQuery("#dmsrepository #repositoryinfo").html(n.infohtml),jQuery("#dmsrepository #folderId").val(n.init_folder),t.getFolderContent()}else await NAlert(a.getMessage())}),a.fail(async function(e,t){await NAlert("Request failed(DMS.login): "+t)})},getFolderContent:function(){NOLISManager.Ladebildschirm.init("Bitte warten ...<br />Daten werden geladen."),param={},param.portal=this.portal,param.folder_select_target=this.folder_select_target,param.js_dms_objectname=this.js_dms_objectname,param.js_upload_objectname=this.js_upload_objectname,param.funktion="folder",param.folderId=jQuery("#dmsrepository #folderId").val();var e=jQuery.ajax({type:"POST",url:this.ajax_url,data:param,dataType:"json",beforeSend:function(){NOLISManager.Ladebildschirm.anzeigen()}});e.always(function(){NOLISManager.Ladebildschirm.ausblenden()}),e.done(async function(e){var t=new NOLISManager.Result(e);if(t.isOK()){var a=t.getData();jQuery("#dmsrepository #repositoryinfo").html(a.infohtml),jQuery("#dmsrepository #repositorycontent").html(a.html),jQuery("#dmsrepository #parentId").val(""),jQuery("#dmsrepository #parentbutton").hide(),null!=a.parentId&&""!=a.parentId&&(jQuery("#dmsrepository #parentId").val(a.parentId),jQuery("#dmsrepository #parentbutton").show())}else await NAlert(t.getMessage())}),e.fail(async function(e,t){await NAlert("Request failed(DMS.getFolderContent): "+t)})},showFolderContent:function(e){jQuery("#dmsrepository #folderId").val(e),this.getFolderContent()},showParentFolderContent:function(){var e=jQuery("#dmsrepository #parentId").val();
1034null!=e&&""!=e&&this.showFolderContent(e)},getDoc:function(e,t){var a=window[this.js_upload_objectname][0],n={};n.js_dms_objectname=this.js_dms_objectname,n.js_upload_objectname=this.js_upload_objectname,n.uploadHash=a.options.uploadHash,n.docid=e,n.docfilename=t,n.pseudoParam=(new Date).getTime(),n.funktion="getDoc";var r=this;NOLISManager.Ladebildschirm.init("Bitte warten ...<br />Daten werden übertragen.");var i=jQuery.ajax({url:this.ajax_url,type:"POST",data:n,dataType:"json",beforeSend:function(){NOLISManager.Ladebildschirm.anzeigen()}});i.always(function(){NOLISManager.Ladebildschirm.ausblenden()}),i.done(async function(e){var t=new NOLISManager.Result(e);if(t.isOK()){var n=t.getData(),i={};i.target=a.lst,i.action="NEW",i.temp_filename=n.temp_filename,i.prefix=n.prefix,i.filename=n.name,i.filesizeKB=n.size/1024,i.position=a.queue.counter,i.bezeichnung=n.name,i.copyright="",i.original_filename=n.name,i.filesrc="",i.filesrc_livepreview="",i.isImage=!1;var o=a.queue.addEntry(i);o.cancel.hide(),o.delete.show(),o.status.show(),1==a.options.uploadLimit&&NOLISManager.OverForm.closeSelection(r.container_id,"1")}else await NAlert(t.getMessage())}),i.fail(async function(e,t){await NAlert("Request failed(DMS.getDoc): "+t)})},setFolderID:function(e){jQuery("#"+this.folder_select_target).val(e),NOLISManager.OverForm.closeSelection(this.container_id,"1")}},NOLISManager.CloudAPI_pixxio=NOLISManager.Helper.createClass(),NOLISManager.CloudAPI_pixxio.prototype={owner:0,js_capi_objectname:"",js_upload_objectname:"",params:{},accessToken:"",cloudname:"pixxio",container_id:"cloudstorage_api_results",ajax_url:jurl2cms+"inc/ajax/cloudstorage.php",api_result_entries:[],initialize:function(e,t,a,n){this.owner=e||0,this.js_capi_objectname=t,this.js_upload_objectname=a,this.params=JSON.parse(n)},initDiv:function(){if(jQuery("#"+this.container_id).length)this.requestAccessToken();else{var e=this,t=jQuery.ajax({url:this.ajax_url,type:"POST",data:{cloud:this.cloudname},dataType:"json"});t.done(function(t){var a=new NOLISManager.Result(t);if(a.isOK()){var n=a.getData();jQuery("body").append(n),e.requestAccessToken()}else alert(a.getMessage())}),t.fail(function(e,t){console.error(t),alert("Es ist ein Fehler aufgetreten...")})}},requestAccessToken:function(){NOLISManager.Ladebildschirm.init("Bitte warten ...<br />Zugangsdaten werden geprüft.");var e=this,t=jQuery.ajax({url:this.ajax_url,type:"POST",data:{action:"requestAccessToken",cloud:this.cloudname,subdomain:this.params.subdomain,apiKey:this.params.apikey,refreshToken:this.params.token},dataType:"json",beforeSend:function(){NOLISManager.Ladebildschirm.anzeigen()}});t.done(function(t){var a=new NOLISManager.Result(t);if(a.isOK()){var n=a.getData();e.initSearch(n)}else console.error(t),alert("Es ist ein Fehler aufgetreten...")}),t.fail(function(e,t){console.error(t),alert("Es ist ein Fehler aufgetreten...")}),t.always(function(){NOLISManager.Ladebildschirm.ausblenden()})},initSearch:function(e){NOLISManager.Ladebildschirm.init("Bitte warten ...<br />Daten werden geladen."),this.accessToken=e;var t=this,a=jQuery.ajax({url:this.ajax_url,type:"POST",data:{action:"init",cloud:this.cloudname,jsvar:this.js_capi_objectname},dataType:"json",beforeSend:function(){NOLISManager.Ladebildschirm.anzeigen()}});a.done(function(e){var a=new NOLISManager.Result(e);if(a.isOK()){var n=a.getData();NOLISManager.OverForm.openSelectionHTML(t.container_id,n,{},null,{top:65,left:50})}else alert(a.getMessage())}),a.fail(function(e,t){console.error(t),alert("Es ist ein Fehler aufgetreten...")}),a.always(function(){NOLISManager.Ladebildschirm.ausblenden()})},doSearch:function(e){NOLISManager.Ladebildschirm.init("Bitte warten ...<br />Daten werden geladen."),this.api_result_entries=[];var t=this,a={},n=window[this.js_upload_objectname][0];a.searchTerm=e,a.fileType=n.options.extensions.join(","),a.pagination="100-1",a.sortBy="fileName",jQuery("#cloudstorage_api_resultcount").text("keine Einträge gefunden"),jQuery(".new_result_row").remove();var r=jQuery.ajax({url:this.ajax_url,type:"GET",data:{action:"search",cloud:this.cloudname,subdomain:this.params.subdomain,accessToken:this.accessToken,options:JSON.stringify(a)},dataType:"json",beforeSend:function(){NOLISManager.Ladebildschirm.anzeigen()}});r.done(function(e){var a=new NOLISManager.Result(e);if(a.isOK()){var n=a.getData(),r=jQuery("#cloudstorage_api_resulttable > tbody");if(n.files.length>0){var i=n.quantity+" Treffer gefunden";n.quantity>100&&(i+=" (die ersten 100 Treffer werden angezeigt)"),jQuery("#cloudstorage_api_resultcount").text(i),t.api_result_entries=n.files;for(var o=0;o<n.files.length;o++)jQuery(t.prepareResultRow(o)).appendTo(r)}}else alert(a.getMessage())}),r.fail(function(e,t){console.error(t),alert("Es ist ein Fehler aufgetreten...")}),r.always(function(){NOLISManager.Ladebildschirm.ausblenden()})},prepareResultRow:function(e){var t=this.api_result_entries[e];if(!t)return"";var a=Math.round(t.fileSize/1048576*100)/100,n=a.toString().replace(".",",")+" MB",r=a.toString().replace(".","");a<10&&(r="0"+r),a<100&&(r="0"+r);var i=t.createDate.split(" ")[0].split(":"),o="unbekannt";i[1]&&(o=i[2]+"."+i[1]+"."+i[0]);var s=window[this.js_upload_objectname][0].options.maxFileSizeMB,l=t.imagePath.replace("?w=1920&q=100&","?w=150&q=90&").split("?"),u="NOLISManager.QuickTip.showTip(this, '', '&lt;img style=&quot;max-width: 300px;&quot; src=&quot;"+jurl2cms+"proxy_cloadstorage/"+this.cloudname+"/"+this.params.subdomain+"?"+l[1]+"&quot; /&gt;', {})",d='<tr class="new_result_row">';return d+='    <td class="hidden-ellipsis-nowrap">
1034',d+=a<=s?'      <span title="'+t.originalFilename+'" class="cursor-default" onmouseover="'+u+'">'+t.originalFilename+"</span>":'      <span title="'+t.originalFilename+'" class="cursor-default text-light" onmouseover="'+u+'">'+t.originalFilename+"</span>",d+="    </td>",d+="    <td>"+t.description+"</td>",d+=a<=s?'    <td><span style="display:none;">'+r+"</span>"+n+"</td>":'    <td><span style="display:none;">'+r+'</span><span class="text-danger">'+n+"</span></td>",d+='    <td><span style="display:none;">'+t.createDate+"</span>"+o+"</td>",d+='    <td class="column-action-icon">',a<=s&&(d+='      <a href="#" title="Datei übertragen" onclick="'+this.js_capi_objectname+"_"+this.cloudname+".getImage("+e+');">',d+='        <i class="fal fa-arrow-to-bottom fa-fw" aria-hidden="true" role="presentation"></i>',d+="      </a>"),(d+="    </td>")+"  </tr>"},getImage:function(e){var t=this.api_result_entries[e];if(!t)return alert("Es ist ein Fehler aufgetreten..."),!1;NOLISManager.Ladebildschirm.init("Bitte warten...<br />Daten werden übertragen.");var a=this,n={},r=window[this.js_upload_objectname][0];n.action="download",n.cloud=this.cloudname,n.jsvar=this.js_capi_objectname,n.filename=t.originalFilename,n.filepath=t.originalPath,n.filehash=r.options.uploadHash;var i=jQuery.ajax({url:this.ajax_url,type:"POST",data:n,dataType:"json",beforeSend:function(){NOLISManager.Ladebildschirm.anzeigen()}});i.done(function(e){var n=new NOLISManager.Result(e);if(n.isOK()){var i=n.getData(),o={};o.target=r.lst,o.action="NEW",o.temp_filename=i.tempname,o.prefix=i.prefix,o.filename=i.filename,o.filesizeKB=i.filesize/1024,o.position=r.queue.counter,o.bezeichnung=t.subject,o.originalname=t.originalFilename,o.original_filename=t.originalFilename,o.copyright="",o.filesrc="",o.filesrc_livepreview="",o.isImage=!0;var s=r.queue.addEntry(o);s.cancel.hide(),s.delete.show(),s.status.show(),jQuery("input#bezeichnung").val(t.subject),jQuery("textarea#alttext").val(t.description),NOLISManager.OverForm.closeSelection(a.container_id,"1")}else alert(n.getMessage())}),i.fail(function(e,t){console.error(t),alert("Es ist ein Fehler aufgetreten...")}),i.always(function(){NOLISManager.Ladebildschirm.ausblenden()})}},NOLISManager.Tabs=NOLISManager.Helper.createClass(),NOLISManager.Tabs.prototype={dest_prefix:"dest-",active_classname:"tab-aktiv",initialize:function(e){this.ul_id=e},setDestPrefix:function(e){this.dest_prefix=e},setActiveClassname:function(e){this.active_classname=e},getActiveTab:function(){return jQuery("ul#"+this.ul_id).find("."+this.active_classname).attr("id")},switchTab:function(e){e=NOLISManager.String.str_replace("#","",e),e=NOLISManager.String.str_replace(this.dest_prefix,"",e);for(var t=jQuery("#"+this.ul_id).children("li"),a=t.length,n=0;n<a;n++)t[n].id==e?("none"==t[n].style.display&&(t[n].style.display="inline"),jQuery("#"+t[n].id).addClass(this.active_classname).trigger("tabwechsel"),document.getElementById(this.dest_prefix+t[n].id).style.display="block",jQuery("#"+this.dest_prefix+t[n].id).trigger("tab-show"),document.getElementById("tabhash").value="#"+this.dest_prefix+t[n].id):(jQuery("#"+t[n].id).removeClass(this.active_classname),document.getElementById(this.dest_prefix+t[n].id).style.display="none",jQuery("#"+this.dest_prefix+t[n].id).trigger("tab-hide"));if(null!=typeof tinyMCE&&"undefined"!=typeof tinyMCE&&tinyMCE&&tinyMCE.editors){var r=tinyMCE.editors.length;for(n=0;n<r;n++){var i=parseInt(jQuery("#"+tinyMCE.editors[n].editorId).css("width"))+5+"px";jQuery("#"+tinyMCE.editors[n].editorId+"_ifr").css({width:i,height:jQuery("#"+tinyMCE.editors[n].editorId).css("height")})}}}},NOLISManager.ImageEdit=NOLISManager.Helper.createClass(),NOLISManager.ImageEdit.prototype={defaults:{container_click:"div_img",ratio:"1",target_offset:"25",target_id:"target",x_id:"set_center_x",y_id:"set_center_y",methode:""},initialize:function(e){this.options=jQuery.extend(this.defaults,e),"mittelpunkt"==this.options.methode&&(this.setTarget(),this.clickImg())},setTarget:function(){x=jQuery("#"+this.options.x_id).val(),y=jQuery("#"+this.options.y_id).val(),x>0&&y>0&&(x=Math.round(x/this.options.ratio),y=Math.round(y/this.options.ratio),jQuery("#"+this.options.target_id).show(),jQuery("#"+this.options.target_id).css({top:y-this.options.target_offset+"px",left:x-this.options.target_offset+"px"}))},clickImg:function(){that=this,jQuery("#"+that.options.container_
1034click).on("click",function(e){var t=jQuery(this).offset(),a=e.pageX-t.left,n=e.pageY-t.top;a=Math.round(a),n=Math.round(n),jQuery("#"+that.options.x_id).val(Math.round(a*that.options.ratio)),jQuery("#"+that.options.y_id).val(Math.round(n*that.options.ratio)),that.setTarget()})}},NOLISManager.Bigmenu=NOLISManager.Helper.createClass(),NOLISManager.Bigmenu.prototype={menuprefix:"limenu",dropprefix:"submenudiv",navipart:"navipart",switch_classname:"switch",active_classname:"aktiv",active_classname_switch:"aktiv_switch",liArray:[],switchLimit:0,initialize:function(e,t){this.liArray=jQuery("#"+e).children(),this.switchLimit=Math.floor(this.liArray.length/2),this.dropprefix=t,this.initElements()},initElements:function(){var e=0,t=0,a=0,n="mouseenter",r="click";"click"==managercookie.get("managernavi_event")&&(n="click",r="mouseenter"),document.getElementById(this.dropprefix+"0")&&(a+=parseInt(jQuery("#"+this.dropprefix+"0").css("padding-left"),10),a+=parseInt(jQuery("#"+this.dropprefix+"0").css("padding-right"),10));for(var i=0;i<this.liArray.length;++i){var o=this.dropprefix+""+e;jQuery(this.liArray[i]).css({width:jQuery(this.liArray[i]).width()+"px"}),t=0;for(var s=jQuery("#"+o+" div."+this.navipart),l=0;l<s.length;++l)t+=parseInt(jQuery(s[l]).css("width"),10);t+=a,jQuery("#"+o).css({width:t+"px"}),e>this.switchLimit&&(jQuery("#"+o).addClass(this.switch_classname),jQuery(this.liArray[i]).addClass(this.switch_classname));var u=this,d=this.menuprefix+e;jQuery("#"+d).unbind(r),jQuery("#"+d).bind(n,function(e){e.preventDefault(),e.stopPropagation(),u.showDropmenu(o,this)}),jQuery("#"+d).bind("mouseleave",function(e){e.preventDefault(),e.stopPropagation(),u.hideDropmenu(o,this)}),e++}},showDropmenu:function(e,t){var a="show";jQuery(t).hasClass(this.switch_classname)?jQuery(t).addClass(this.active_classname_switch):jQuery(t).addClass(this.active_classname),""!=managercookie.get("managernavi_einblendeffekt")&&(a=managercookie.get("managernavi_einblendeffekt")),"show"===a?jQuery("#"+jQuery(t).attr("id")+" div.submenudiv").show():jQuery("#"+jQuery(t).attr("id")+" div.submenudiv").slideDown({duration:200})},hideDropmenu:function(e,t){jQuery(t).hasClass(this.switch_classname)?jQuery(t).removeClass(this.active_classname_switch):jQuery(t).removeClass(this.active_classname),jQuery("#"+jQuery(t).attr("id")+" div.submenudiv").hide()}},NOLISManager.FormTip={showinfo:function(e,t,a,n){NOLISManager.Helper.clonePosition(e,n,{offsetTop:-8,offsetLeft:35},1),document.getElementById(e).style.visibility="visible"},hideinfo:function(e){document.getElementById(e).style.visibility="hidden"},hilfeAnzeigen:function(e){document.getElementById("form_infotext").innerHTML=e}},NOLISManager.Form={calculateCostsWithOptionsFE:function(e,t){jQuery("form#"+e).on("change",function(a){var n,r=0,i=0,o=0,s=parseInt(jQuery("#"+t+"_calc_grundbetrag").text())||0;0==s&&(s=parseInt(jQuery("#"+t+"_calc_grundbetrag").val())||0);var l=parseFloat(jQuery("#"+e+"_payment_vat").text())/100,u=jQuery("#"+e+"_payment_vat").text(),d=parseFloat(jQuery("#"+e+"_payment_status_vat").text()),c=parseInt(jQuery("#"+e+"_payment_vat_betrag").text()),m={};jQuery("option[data-betrag]").each(function(){if(this.selected){var e=jQuery("#"+jQuery(this).parent().attr("name")+"_multiplikator"),t=e.length?parseInt(e.val())||0:1,a=parseInt(jQuery(this).attr("data-betrag"))||0,n=parseInt(jQuery(this).attr("data-betrag-typ"))||0,s=(parseFloat(jQuery(this).attr("data-steuer-betrag")),parseFloat(jQuery(this).attr("data-steuersatz"))||0),l=t*a;if(r+=l,!isNaN(s))if(m[s]||(m[s]=0),1===n){var u=l/(1+s);i+=Math.round(l-u),m[s]+=Math.round(l-u)}else o+=Math.round(l*s),m[s]+=Math.round(l*s)}}),jQuery("input[data-betrag]").each(function(){if(this.checked||"hidden"===this.type){var e=jQuery("#"+jQuery(this).attr("id")+"_multiplikator"),t=e.length?parseInt(e.val())||0:1;t=isNaN(t)?1:t;var a=parseInt(jQuery(this).attr("data-betrag"))||0,n=parseInt(jQuery(this).attr("data-betrag-typ"))||0,s=(parseFloat(jQuery(this).attr("data-steuer-betrag")),parseFloat(jQuery(this).attr("data-steuersatz"))||0),l=t*a;if(r+=l,!isNaN(s))if(m[s]||(m[s]=0),1===n){var u=l/(1+s);i+=Math.round(l-u),m[s]+=Math.round(l-u)}else o+=Math.round(l*s),m[s]+=Math.round(l*s)}}),gesamt_options_show=r+(isNaN(o)?0:o),isNaN(l)||(m[l]||(m[l]=0),0==c?(o+=Math.round(s*l),m[l]+=Math.round(s*l)):(i+=Math.round(s-s/(1+l)),m[l]+=Math.round(s-s/(1+l)))),n=s+r+(isNaN(o)?0:o);var h=1;"termin_buchen_mehrfach"==e&&(jQuery("form#"+e+" input[data-id='payment_multiplier']").val(jQuery("form#"+e+" input#termine_anzahl").val()),h=parseInt(j
1034Query("form#"+e+" input[data-id='payment_multiplier']").val()),void 0===jQuery("form#"+e+" input[data-id='payment_multiplier']").val()&&(h=jQuery("form#"+e+" input#termine_anzahl").val())),jQuery("#"+t+"_calc_options").html(gesamt_options_show),jQuery("#"+t+"_options").val((gesamt_options_show/100).toFixed(2).replace(".",","));let p=(gesamt_options_show/100).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2});jQuery("#"+t+"_calc_options_text").html(p+" EUR "+(i>0||o>0?"inkl. MwSt.":"")),jQuery("#calc_gesamtbetrag").val(n),jQuery("#"+t+"_amount").html(n);let g=(n/100).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2});jQuery("#"+t+"_amount_text").html(g+" EUR");var y=parseFloat(n/100).toFixed(2).replace(".",","),_=y.replace(".",",")+" EUR",f="",j=(i+o)/100;if(delete m[0],1===Object.keys(m).length){let e=Object.keys(m)[0],t=j.toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2});f="Der zu zahlende Gesamtbetrag enthält "+(100*e).toFixed(0).replace(".",",")+" % MwSt. = "+t+" EUR"}else{var v=Object.keys(m).map(function(e){let t=(m[e]/100).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2});return"MwSt. "+Math.round(100*e).toFixed(0)+" % = "+t+" EUR"}).join(", ");f="Der zu zahlende Gesamtbetrag enthält "+j.toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2})+" EUR MwSt. ("+v+")"}Object.keys(m).length>0&&jQuery("#"+t+"_amount_taxes_text").show().html(f);let b=(s/100).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2});jQuery("#"+t+"_calc_grundbetrag_text").html(b+" EUR "+(1==d?1==c?"inkl. "+u+" % MwSt.":"zzgl. "+u+" % MwSt.":"")),0==n?(jQuery("form#"+e+" div#"+e+"_payment_content").hide(),jQuery("form#"+e+" div.payment_active").hide(),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("readonly",!0),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("checked",!0),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("readonly",!0),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("checked",!1),jQuery("form#"+e+" div#"+e+"_payment_options").hide(),jQuery("form#"+e+" input[name='payment[service]']").prop("checked",!1),jQuery("form#"+e+" div[data-id='tr_accountHolder']").hide(),jQuery("form#"+e+" div[data-id='tr_iban']").hide(),0==jQuery("div#payment_ohne_gebuehren").length&&jQuery("small.payment_info").length>0?jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] small.payment_info"):0==jQuery("div#payment_ohne_gebuehren").length&&0==jQuery("small.payment_info").length&&jQuery("div.payment_logos").length>0?jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] div.payment_logos"):0==jQuery("div#payment_ohne_gebuehren").length&&0==jQuery("small.payment_info").length&&jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] h4")):(jQuery("form#"+e+" div#"+e+"_payment_content").show(),jQuery("form#"+e+" div.payment_active").show(),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("readonly",!1),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("readonly",!1),0==jQuery("form#"+e+" input#"+e+"_payment_active_0").length&&jQuery("form#"+e+" div#"+e+"_payment_options").show(),jQuery("div#payment_ohne_gebuehren").remove()),"termin_buchen_mehrfach"==e&&jQuery("form#"+e+" span#"+t+"_amount_text").html(h+"x "+_),jQuery("form#"+e+" input[data-id='payment_amount']").val(y)}),setTimeout(function(){jQuery("form#"+e).change()},100)},calculateCostsWithOptions:function(e,t){jQuery("form#"+e).on("change",function(a){var n,r=parseInt(jQuery("#"+t+"_calc_grundbetrag").text()),i=0;jQuery("option[data-betrag]").each(function(e,t){1==t.selected&&(multiplikator=jQuery("#"+jQuery(this).parent().attr("name")+"_multiplikator").val(),option=jQuery(this).attr("data-betrag"),gesamt_option=parseInt(multiplikator)*parseInt(option),i=parseInt(i)+parseInt(gesamt_option))}),jQuery("input[data-betrag]").each(function(e,t){1!=t.checked&&"hidden"
1034!=t.type||(multiplikator=jQuery("#"+jQuery(this).attr("id")+"_multiplikator").val(),void 0===multiplikator&&(multiplikator=1),option=jQuery(this).attr("data-betrag"),gesamt_option=parseInt(multiplikator)*parseInt(option),i=parseInt(i)+parseInt(gesamt_option))}),jQuery("#"+t+"_calc_options").html(i);var o=parseFloat(i/100).toFixed(2),s=o.replace(".",","),l=o.replace(".",",")+" EUR";jQuery("#"+t+"_options").val(s),jQuery("#"+t+"_calc_options_text").html(l);var u=1;"termin_buchen_mehrfach"==e&&(jQuery("form#"+e+" input[data-id='payment_multiplier']").val(jQuery("form#"+e+" input#termine_anzahl").val()),u=parseInt(jQuery("form#"+e+" input[data-id='payment_multiplier']").val()),void 0===jQuery("form#"+e+" input[data-id='payment_multiplier']").val()&&(u=jQuery("form#"+e+" input#termine_anzahl").val())),n=parseInt(r)+parseInt(i),jQuery("#calc_gesamtbetrag").val(n),jQuery("#"+t+"_amount").html(n);var d=parseFloat(n/100).toFixed(2).replace(".",","),c=d.replace(".",",")+" EUR";jQuery("#"+t+"_amount_text").html(c),0==n?(jQuery("form#"+e+" div#"+e+"_payment_content").hide(),jQuery("form#"+e+" div.payment_active").hide(),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("readonly",!0),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("checked",!0),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("readonly",!0),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("checked",!1),jQuery("form#"+e+" div#"+e+"_payment_options").hide(),jQuery("form#"+e+" input[name='payment[service]']").prop("checked",!1),jQuery("form#"+e+" div[data-id='tr_accountHolder']").hide(),jQuery("form#"+e+" div[data-id='tr_iban']").hide(),0==jQuery("div#payment_ohne_gebuehren").length&&jQuery("small.payment_info").length>0?jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] small.payment_info"):0==jQuery("div#payment_ohne_gebuehren").length&&0==jQuery("small.payment_info").length&&jQuery("div.payment_logos").length>0?jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] div.payment_logos"):0==jQuery("div#payment_ohne_gebuehren").length&&0==jQuery("small.payment_info").length&&jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] h4")):(jQuery("form#"+e+" div#"+e+"_payment_content").show(),jQuery("form#"+e+" div.payment_active").show(),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("readonly",!1),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("readonly",!1),0==jQuery("form#"+e+" input#"+e+"_payment_active_0").length&&jQuery("form#"+e+" div#"+e+"_payment_options").show(),jQuery("div#payment_ohne_gebuehren").remove()),"termin_buchen_mehrfach"==e&&jQuery("form#"+e+" span#"+t+"_amount_text").html(u+"x "+c),jQuery("form#"+e+" input[data-id='payment_amount']").val(d)}),setTimeout(function(){jQuery("form#"+e).change()},100)},calculateCosts:function(e,t,a){var n=jQuery("#anzahl").val();void 0===n&&(n=1);var r=1;"termin_buchen_mehrfach"==e&&(jQuery("form#"+e+" input[data-id='payment_multiplier']").val(jQuery("form#"+e+" input#termine_anzahl").val()),r=parseInt(jQuery("form#"+e+" input[data-id='payment_multiplier']").val()),isNaN(r)&&(r=parseInt(jQuery("form#"+e+" input#termine_anzahl").val())));var i=a*n,o=parseFloat(i/100).toFixed(2).replace(".",","),s=o.replace(".",",")+" EUR";jQuery("#"+t+"_amount_text").html(s),"termin_buchen_mehrfach"==e&&jQuery("form#"+e+" span#"+t+"_amount_text").html(r+"x "+s),0==i?(jQuery("form#"+e+" div#"+e+"_payment_content").hide(),jQuery("form#"+e+" div.payment_active").hide(),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("readonly",!0),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("checked",!0),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("readonly",!0),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("checked",!1),jQuery("form#"+e+" div#"+e+"_payment_options").hide(),jQuery("form#"+e+" input[name='payment[service]']").prop("checked",!1),jQuery("form#"+e+" div[data-id='tr_accountHolder']").hide(),jQuery("form#"+e+" div[data-id='tr_iban']").hide(),0==jQuery("div#payment_ohne_gebuehren").length&&jQuery("small.payment_info").length>0?jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] small.payment_info"):0==jQuery("div#payment_ohne_gebuehren").length&&0==jQuery("small.payment_info").length&&jQuery("div.payment_logos").length>0?jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] div.payment_logos"):0==jQuery("div#payment_ohne_gebuehren").length&&0==jQuery("small.payment_info").length&&jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] h4")):(jQuery("form#"+e+" div#"+e+"_payment_content").show(),jQuery("form#"+e+" div.payment_active").show(),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("readonly",!1),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("readonly",!1),0==jQuery("form#"+e+" input#"+e+"_payment_active_0").length&&jQuery("form#"+e+" div#"+e+"_payment_options").show(),jQuery("div#payment_ohne_gebuehren").remove()),jQuery("form#"+e+" input[data-id='payment_amount']").val(o),jQuery("form#"+e+" termin_amount").val(o
1034),setTimeout(function(){jQuery("form#"+e).change()},100)},calculateCostsWithAnzahlOptions:function(e,t,a,n){"termin_buchen_mehrfach"==e&&jQuery("#anzahl").change();var r=jQuery("#anzahl").val();if(null!==r){for(var i=n.length,o=0,s=0;s<i;s++){var l=(c=jQuery("#"+n[s].termin_id+"_"+n[s].termin_owner+"_"+n[s].position)).val();o=parseInt(o)+parseInt(l)}if(r<o)for(s=0;s<i;s++){var u=(c=jQuery("#"+n[s].termin_id+"_"+n[s].termin_owner+"_"+n[s].position)).attr("id");l=c.val(),jQuery("#"+u).empty();for(var d=0;d<=r;d++)0==d&&1==n[s].verpflichtend?jQuery("#"+u).append(jQuery("<option>",{value:d,text:"-",disabled:"disabled"})):jQuery("#"+u).append(jQuery("<option>",{value:d,text:d}))}if(o<r||o==r)for(s=0;s<i;s++){var c;u=(c=jQuery("#"+n[s].termin_id+"_"+n[s].termin_owner+"_"+n[s].position)).attr("id"),l=parseInt(c.val()),jQuery("#"+u).find("option").remove();var m=r-o+l;for(d=0;d<=m;d++)0==d&&1==n[s].verpflichtend?jQuery("#"+u).append(jQuery("<option>",{value:d,text:"-",disabled:"disabled"})):jQuery("#"+u).append(jQuery("<option>",{value:d,text:d}));if(jQuery("select#"+u).val(l),a[n[s].termin_id+"_"+n[s].termin_owner+"_"+n[s].position]){var h=a[n[s].termin_id+"_"+n[s].termin_owner+"_"+n[s].position].anzahl;jQuery("#"+u+' option[value="'+h+'"]').attr("selected","selected")}}var p=new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR",minimumFractionDigits:2}),g={summe1:0,summew:0,betrag:0,porto:0};jQuery("select.berechnen").each(function(){var e=jQuery(this),t=e.data("value-id"),a=0;this.value>=1&&(g.summe1+=1,a=parseInt(e.next().val())/100,this.value>1&&(g.summew+=this.value-1,a+=parseInt(e.next().val())/100*(this.value-1))),jQuery("#preis_"+t).text(p.format(a)),g.betrag+=a}),jQuery("#"+t+"_summe").text(p.format(g.betrag)),jQuery("#"+t+"_calc_options").html(100*g.betrag);var y=parseInt(jQuery("#"+t+"_calc_grundbetrag").html()),_=parseInt(jQuery("#"+t+"_calc_options").html()),f=parseInt(y+_);jQuery("#"+t+"_amount").html(f),jQuery("#calc_gesamtbetrag").val(f);var j=parseFloat(_/100).toFixed(2).replace(".",",")+" EUR";jQuery("#"+t+"_calc_options_text").html(j);var v=parseFloat(f/100).toFixed(2).replace(".",",")+" EUR";jQuery("#"+t+"_amount_text").html(v);var b=1;"termin_buchen_mehrfach"==e&&(jQuery("form#"+e+" input[data-id='payment_multiplier']").val(jQuery("form#"+e+" input#termine_anzahl").val()),b=parseInt(jQuery("form#"+e+" input[data-id='payment_multiplier']").val()));var Q=parseFloat(f/100).toFixed(2).replace(".",",");v=Q.replace(".",",")+" EUR",jQuery("#"+t+"_amount_text").html(v),"termin_buchen_mehrfach"==e&&jQuery("form#"+e+" span#"+t+"_amount_text").html(b+"x "+v),0==f?(jQuery("form#"+e+" div#"+e+"_payment_content").hide(),jQuery("form#"+e+" div.payment_active").hide(),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("readonly",!0),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("checked",!0),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("readonly",!0),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("checked",!1),jQuery("form#"+e+" div#"+e+"_payment_options").hide(),jQuery("form#"+e+" input[name='payment[service]']").prop("checked",!1),jQuery("form#"+e+" div[data-id='tr_accountHolder']").hide(),jQuery("form#"+e+" div[data-id='tr_iban']").hide(),0==jQuery("div#payment_ohne_gebuehren").length&&jQuery("small.payment_info").length>0?jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] small.payment_info"):0==jQuery("div#payment_ohne_gebuehren").length&&0==jQuery("small.payment_info").length&&jQuery("div.payment_logos").length>0?jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] div.payment_logos"):0==jQuery("div#payment_ohne_gebuehren").length&&0==jQuery("small.payment_info").length&&jQuery('<div id="payment_ohne_gebuehren" class="datenschutz_spezifisch"><p>Es fallen keine Gebühren an.</p></div></div>').insertAfter("form#"+e+" fieldset[name='payment'] h4")):(jQuery("form#"+e+" div#"+e+"_payment_content").show(),jQuery("form#"+e+" div.payment_active").show(),jQuery("form#"+e+" input#"+e+"_payment_active_0").prop("readonly",!1),jQuery("form#"+e+" input#"+e+"_payment_active_1").prop("readonly",!1),0==jQuery("form#"+e+" input#"+e+"_payment_active_0").length&&jQuery("form#"+e+" div#"+e+"_payment_options").show(),jQuery("div#payment_ohne_gebuehren").remove()),jQuery("form#"+e+" input[data-id='payment_amount']").val(Q),setTimeout(function(){jQuery("form#"+e).change()},100)}}},NOLISManager.Pages=function(){let e="",t=jQuery(),a=[],n=1,r=0,i=1,o=25,s=jQuery(),l={},u={},d={},c={},m=!1,h={},p={},g=null;return init=(a,i,l,p,y,_={},f=!1,j={},v=null)=>{let b=!1;"string"!=typeof a&&"function"!=typeof a||(e=a,i instanceof jQuery&&i.is("table")&&i.hasClass("filter_table")&&(s=i,0<l.length&&l instanceof jQuery&&"object"==typeof p&&2<=Object.keys(p).length&&("sort_column"in p&&"sort_direction"in p||"sort_sort"in p)&&"page"in y&&"per_page"in y&&"total"in y&&(u=p,d=_,c=f,n=y.page,o=y.per_page,r=y.total,t=l,h=NOLISManager.Ladebildschirm,h.init(),b=!0,"function"==typeof v&&(g=v),calcTotalPages(r),updateHistory(j),updateData(u,-1,{})))),!1!==b&&(initSortables(),m=b)},initSortables=()=>{l=jQuery(".sort_button"),l.off(),l.click(NOLISManager.Pages.sortTable)},updateHistory=e=>{"object"==typeof e&&("historyQuery"in e&&""!=e.historyQuery&&(p.historyQuery=e.historyQuery),"historyArr"in e&&""!=e.historyArr&&(p.historyArr=e.historyArr))},calcTotalPages=e=>{i=Math.ceil(parseInt(e)/parseInt(o)),r=parseInt(e),i<n&&0<i&&(n=i)},doSort=e=>{if(1==m){let t=e.data("sortdirection"),a=e.data("column"),n=e.data("sort"),r={};
1034r.sort_column=a,r.sort_direction=t,r.sort_sort=n,updateData(r),u.sort_column=a,u.sort_direction=t,u.sort_sort=n}},preparePagesController=e=>{t.html(e);let r=t.children("ul").children("li");0<r.length&&(r.children("a").attr("href",""),r.children("a").attr("onclick","return false;"),r.children('input[type="text"]').attr("pattern","^\\d+$").css(":invalid","border: red;"),r.children("a").click(e=>{let t=jQuery(e.target),a=t.text(),r=parseInt(a);if(1==isNaN(r))if("..."==a){t.hide();let e=t.next();e.show().focus(),e.keyup(t=>{switch(t.keyCode){case 13:let t=parseInt(e.val());0==isNaN(t)?0<t&&t<=parseInt(i)?NOLISManager.Pages.umblaettern(t):NAlert("Bitte geben Sie eine gültige Zahl als Zielseite ein",{color:"yellow"}):NAlert("Es dürfen nur Zahlen eingegeben werden",{color:"yellow"});break;case 27:e.blur()}}),e.blur(()=>{t.show(),e.hide(),e.off()})}else">"==a||8250==a.charCodeAt(0)?n<i&&NOLISManager.Pages.umblaettern(parseInt(n)+1):"<"!=a&&8249!=a.charCodeAt(0)||1<n&&NOLISManager.Pages.umblaettern(parseInt(n)-1);else NOLISManager.Pages.umblaettern(t.text())}),a=r)},umblaettern=(e=1)=>{0<e&&i>=e&&n!=e&&(updateData({},parseInt(e)),n=parseInt(e))},updateData=async(t,a=-1,s={},l=null)=>{let m={};if("object"==typeof h&&h.anzeigen(),"object"!=typeof t&&(t={}),t.hasOwnProperty("sort_column")||(t.sort_column=u.sort_column),t.hasOwnProperty("sort_direction")||(t.sort_direction=u.sort_direction),t.hasOwnProperty("sort_sort")||(t.sort_sort=u.sort_sort),a=parseInt(a),1!=isNaN(a)&&-1!==a&&0<a&&i>=a?n=a:a=n,0<Object.keys(d).length&&(m=d),"object"==typeof s&&0<Object.keys(s).length&&jQuery.extend(m,s),c){let e={},t=jQuery("#manager_form").serializeArray();0<t.length&&t.forEach(t=>{"name"in t&&"value"in t&&(null===t.name.match(/^[^\[]*\[[^\]]*\]$/g)?e[t.name]=t.value:(void 0===e[t.name]&&(e[t.name]=[]),e[t.name].push(t.value)))}),jQuery.extend(m,e)}let p={sort_column:t.sort_column,sort_direction:t.sort_direction,sort_sort:t.sort_sort,p:a,per_page:o,total:r};jQuery.extend(m,p);const y=async e=>{let t=new NOLISManager.Result(e);if(t.isOK()){let e=t.getData();return await swapPageContent(e),"function"==typeof l&&await l(e),"function"==typeof g&&await g(e),void h.ausblenden()}{let e=t.getCode(),a=t.getMessage();return await h.ausblenden(),await NAlert("Beim Laden der Daten ist ein Fehler aufgetreten.",{color:"yellow"}),void console.warn("Fehler beim laden der Daten: ",e+" "+a)}},_=async e=>{await NAlert("Beim Laden der Daten ist ein Fehler aufgetreten.",{color:"yellow"}),h.ausblenden()};"function"==typeof e||e in window&&"function"==typeof window[e]?"function"==typeof e?e(m,y,_):window[e](m,y,_):await jQuery.ajax({type:"GET",url:e,data:m,dataType:"json"}).done(y).fail(_)},swapPageContent=async e=>{if("object"==typeof e){if(mr_checkboxes=NOLISManager.multiRowHandler.getActiveParents(),resTableParent=await jQuery.grep(mr_checkboxes,e=>{let t=e.closest("table");return 0<t.length&&t.get(0)==s.get(0)}),"pages"in e&&await preparePagesController(e.pages),"tColgroup"in e&&""!==e.tColgroup&&0<s.children("colgroup").length&&s.children("colgroup").html(e.tColgroup),"thead"in e&&""!==e.thead&&0<s.children("thead").length){if(0 in resTableParent){let e=await resTableParent[0].attr("id");await NOLISManager.multiRowHandler.destroy([e])}await s.children("thead").html(e.thead),await initSortables()}if("tfoot"in e&&""!==e.tfoot&&0<s.children("tfoot").length){if(0 in resTableParent){let e=await resTableParent[0].attr("id");await NOLISManager.multiRowHandler.destroy([e])}await s.children("tfoot").html(e.tfoot),await initSortables()}if("tbody"in e){let t=s.parent("div.modul.resulttable");if(0<t.length&&(""==e.tbody?t.hide():t.show(),t.hasClass("is_vertical_scrollable")?t.get(0).scrollTo({top:0,behaviour:"smooth"}):(s.get(0).scrollIntoView({behaviour:"smooth",block:"start",inline:"nearest"}),void 0!==document.body&&document.body.scrollIntoView())),await s.children("tbody").html(e.tbody).promise().then(function(){setTimeout(()=>{s.hasClass("filter_table")&&"function"==typeof checkTableScrollable&&(checkTableScrollable(),"function"==typeof setIntersectionObserverResulttable&&setIntersectionObserverResulttable())},300)}),1==resTableParent.length){let e=resTableParent[0].attr("id");NOLISManager.multiRowHandler.reInit([e])}}if("total_datasets"in e&&-1<parseInt(e.total_datasets)&&calcTotalPages(parseInt(e.total_datasets)),"resultbox_text"in e&&""!=e.resultbox_text){let t=jQuery("div.resultstatusbox div.resultstatusbox_in span.count_text");0<t.length&&t.html(e.resultbox_text)}"historyData"in e&&0<Object.keys(e.historyData).length&&updateHistory(e.historyData),"debug"in e&&e.debug}},ajaxUpdatePage=(e,t,a)=>{data={};var n=jQuery.ajax({url:t,type:"GET",data:data,dataType:"json",async:!1});n.done(function(t){jQuery("#"+e).html(t.data.html),jQuery("#"+a).html(t.data.htmlPages)}),n.fail(function(e,t){console.log("Fehler beim laden der Daten: "+t)})},{ajaxUpdatePage:(e,t,a)=>{ajaxUpdatePage(e,t,a)},init:(e,t,a,n,r,i={},o=!1,s={},l=null)=>{init(e,t,a,n,r,i,o,s,l)},sortTable:e=>{doSort(jQuery(e.currentTarget))},umblaettern:e=>{umblaettern(e)},getLastHistoryQuery:()=>p.historyQuery,getLastHistoryObject:()=>p.historyArr,setUseManagerForm:(e=!0)=>{"boolean"==typeof e&&(c=e)},getNumDatasets:async()=>r,update:async(e={},t=null)=>{"object"!=typeof e||await updateData({},1,e,t)},reload:async(e={},t=null)=>{"object"!=typeof e||await updateData({},n,e,t)}}}(),NOLISManager.QuickTip={showTip:function(e,t,a,n,r,i,o=!1){const s=event||window.event;if(s&&"mouseover"===s.type&&jQuery("body").hasClass("touch"))return;const l=o?400:0;let u=0;jQuery("#overDiv").length>0||jQuery("<div/>",{id:"overDiv"}).prependTo("body"),jQuery("#overDiv").length&&(u=jQuery("#overDiv").data("hideTimer")||0),void 0===i&&(i=!0),r?Array.isArray(r)?r=r.concat(["over-container"]):r+=" over-container":r="over-container",jQuery("#overDiv").removeClass().addClass(r),jQuery(e).unbind("mouseover"),""!=t?(jQuery("#overDivTitle").length>0||jQuery("<div/>",{id:"overDivTitle"}).prependTo("#overDiv"),jQuery("#overDivTitle").html(t)):jQuery("#overDivTitle")&&jQuery("#overDivTitle").remove(),jQuery("#overDivContent").length>0||jQuery("<div/>",{id:"overDivContent"}).appendTo("#overDiv"),jQuery("#overDivContent").html(a);const d=t=>{u&&(u=clearTimeout(u)),jQuery("#overDiv").data("hideTimer")&&jQuery("#overDiv").data("hideTimer",clearTimeout(jQuery("#overDiv").data("hideTimer"))),u=setTimeout(()=>
1034{NOLISManager.QuickTip.hideTip(t,n,e),0<l&&NOLISManager.QuickTip.removeTip(),clearTimeout(u)},l),jQuery("#overDiv").data("hideTimer",u)};jQuery("#overDiv").data("hideTip",d),o&&jQuery("#overDiv").bind("mouseout mouseleave",t=>{d(t),jQuery(e).bind("mouseout",d)}).bind("mouseenter mousemove",t=>{jQuery(e).unbind("mouseout",d),u&&clearTimeout(u)}),jQuery(e).bind("mouseout",d),jQuery(e).bind("mousemove",function(t){NOLISManager.QuickTip.moveTip(t,n,e,i)})},ajaxTipActive:!1,showTipAjax:function(e,t,a,n,r,i){if(!NOLISManager.QuickTip.ajaxTipActive){NOLISManager.QuickTip.ajaxTipActive=!0;const o=function(e,n){"function"==typeof e&&"function"==typeof n&&jQuery.ajax({url:t,type:"get",dataType:"html",data:a}).done(function(t){e(new NOLISManager.Result({code:200,data:t,msg:""}))}).fail(function(e){n(e)}).always(function(e){NOLISManager.QuickTip.ajaxTipActive=!1})};NOLISManager.QuickTip.showTipCallback(o,e,n,r,i)}},showTipCallback:function(e,t,a,n,r){t&&"function"==typeof e&&(NOLISManager.QuickTip.showTip(t,a,"Inhalt wird geladen ...",n,r),e(e=>{"object"==typeof e&&"getData"in e&&"isOK"in e&&e.isOK()&&"string"==typeof e.getData()?NOLISManager.QuickTip.showTip(t,a,e.getData(),n,r):NOLISManager.QuickTip.showTip(t,a,'<span class"text-red"><i>Beim laden der Daten ist ein Fehler aufgetreten.</i></span>',n,r)},e=>{NOLISManager.QuickTip.removeTip(),NOLISManager.QuickTip.showTip(t,a,'<span class"text-red"><i>Beim laden der Daten ist ein Fehler aufgetreten.</i></span>',n,r),console.warin("Error showing Tip",e)}))},showClickTip:function(e,t,a,n,r,i){jQuery("#overDiv").length>0||jQuery("<div/>",{id:"overDiv",style:"position:absolute; visibility:hidden; z-index:3000; top:-100px;"}).prependTo("body"),jQuery("#overDiv").removeClass().addClass(i),jQuery(t).unbind("mouseover"),""!=a?(jQuery("#overDivTitle").length>0||jQuery("<div/>",{id:"overDivTitle"}).prependTo("#overDiv"),a+='<span class="overdivCloseSpan" title="schließen">x</span>',jQuery("#overDivTitle").html(a)):jQuery("#overDivTitle")&&jQuery("#overDivTitle").remove(),jQuery("#overDivContent").length>0||jQuery("<div/>",{id:"overDivContent"}).appendTo("#overDiv"),jQuery("#overDivContent").html(n),NOLISManager.QuickTip.moveTip(e,r,t),jQuery("#overDiv").bind("mouseleave",function(e){NOLISManager.QuickTip.hideTip(e,r,t)}),jQuery("#overDiv .overdivCloseSpan").bind("click",function(e){NOLISManager.QuickTip.hideTip(e,r,t)})},ajaxClickTipActive:!1,showClickTipAjax:function(e,t,a,n,r,i,o){NOLISManager.QuickTip.showClickTipClickCallback(function(e,t){"function"==typeof e&&"function"==typeof t&&(NOLISManager.QuickTip.ajaxClickTipActive||(NOLISManager.QuickTip.ajaxClickTipActive=!0,jQuery.ajax({url:a,type:"get",dataType:"html",data:n}).done(function(t){e(new NOLISManager.Result({code:200,data:t,msg:""}))}).fail(function(e){t(e)}).always(()=>{NOLISManager.QuickTip.ajaxClickTipActive=!1})))},e,t,r,i,o)},showClickTipClickCallback:function(e,t,a,n,r,i){a&&"function"==typeof e&&(NOLISManager.QuickTip.showClickTip(t,a,n,"Inhalt wird geladen ...",r,i),e(e=>{NOLISManager.QuickTip.removeTip(),"object"==typeof e&&"getData"in e&&"isOK"in e&&e.isOK()&&"string"==typeof e.getData()?NOLISManager.QuickTip.showClickTip(t,a,n,e.getData(),r,i):NOLISManager.QuickTip.showClickTip(t,a,n,'<span class"text-red"><i>Beim laden der Daten ist ein Fehler aufgetreten.</i></span>',r,i)},e=>{NOLISManager.QuickTip.removeTip(),NOLISManager.QuickTip.showClickTip(t,a,n,'<span class"text-red"><i>Beim laden der Daten ist ein Fehler aufgetreten.</i></span>',r,i),console.warn("Error showing Tip",e)}))},moveTip:function(e,t,a,n){var r,i;if(e.preventDefault(),void 0!==n&&1!=n||e.stopPropagation(),void 0===t&&(t={}),void 0!==t.fixedX&&void 0!==t.fixedY)r=t.fixedX,i=t.fixedY;else{var o=NOLISManager.QuickTip.getPosition(e,t,a);r=o.x,i=o.y}r<0&&(r=10),i<0&&(i=10),NOLISManager.QuickTip.positionTip(r,i,t),NOLISManager.QuickTip.viewTip(e,t,n)}
1034,positionTip:function(e,t,a){var n={left:e+"px",top:t+"px"};void 0!==a.width&&(n.width=a.width+"px"),void 0!==a.height&&(n.width=a.height+"px"),jQuery("#overDiv").css(n)},viewTip:function(e,t,a){e.preventDefault(),void 0!==typeof a&&0!=a||e.stopPropagation(),("undefined"==typeof global_disableQuickTip||"undefined"!=typeof global_disableQuickTip&&0==global_disableQuickTip)&&"visible"!=jQuery("#overDiv").css("visibility")&&jQuery("#overDiv").css({visibility:"visible"})},hideTip:function(e,t){jQuery("#overDiv").css({visibility:"hidden",top:"-100px"}),jQuery("#overDiv").unbind("mouseout"),jQuery("#overDiv").unbind("mousemove")},removeTip:function(){jQuery("#overDivTitle").remove(),jQuery("#overDivContent").remove(),jQuery("#overDiv").remove()},getPosition:function(e,t,a){var n=e.pageX,r=e.pageY,i=n,o=r,s=10,l=jQuery("#overDiv").outerWidth(),u=jQuery("#overDiv").outerHeight(),d=NOLISManager.Helper.getWindowSize();if(a.ownerDocument.defaultView!==window&&(n+=a.ownerDocument.defaultView.frameElement.getBoundingClientRect().left,r+=a.ownerDocument.defaultView.frameElement.getBoundingClientRect().top,n-=a.ownerDocument.defaultView.frameElement.contentWindow.scrollX,r-=a.ownerDocument.defaultView.frameElement.contentWindow.scrollY),i=l+n>=d.width-10?n-l-10:n+10,o=u+r>=d.height-s?r-u-s:r+s,void 0!==t.positionX)switch(t.positionX){case"left":i=n-l-10;break;case"center":i=n-l/2,o>r&&(o+=10);break;case"right":i=n+10;break;case"center_src":i=jQuery(a).offset().left+jQuery(a).outerWidth()/2-l/2}if(void 0!==t.positionY)switch(t.positionY){case"top":o=r-u-s;break;case"bottom":o=r+s;break;case"top_src":o=jQuery(a).offset().top-u-s}return void 0!==t.positionOffsetX&&(i+=t.positionOffsetX),void 0!==t.positionOffsetY&&(o+=t.positionOffsetY),{x:i,y:o}}},NOLISManager.Organizer={showKalenderEinstellungen:function(){NOLISManager.Helper.clonePosition("organizer_einstellungen","organizer_einstellungen_button",{offsetLeft:-400},1),jQuery("#organizer_einstellungen").show()},setKalenderAll:function(e,t,a){var n;jQuery("#organizer_einstellungen input.check_kalender").each(function(){n=parseInt(NOLISManager.String.str_replace("check_kalender","",this.id),10),1==a?"-1"==n||"0"==n||"1"==n?1!=this.checked&&(this.checked=!0,NOLISManager.Organizer.setKalender(e,n,t)):1==this.checked&&(this.checked=!1,NOLISManager.Organizer.setKalender(e,n,t)):1!=this.checked&&(this.checked=!0,NOLISManager.Organizer.setKalender(e,n,t))})},setKalender:function(e,t,a,n){1==document.getElementById("check_kalender"+t).checked?(NOLISManager.Organizer.showKalender(t),NOLISManager.Organizer.setCookieKalender(t,1)):(NOLISManager.Organizer.hideKalender(t),NOLISManager.Organizer.setCookieKalender(t,0))},showKalender:function(e){jQuery("div.kalender"+e).each(function(){var e=managercookie.get("organizer_kalender_fremdtermine");(0==e&&!jQuery(this).hasClass("fremdtermin")||1==e)&&jQuery(this).show()})},hideKalender:function(e){jQuery("div.kalender"+e).each(function(){jQuery(this).hide()})},setCookieKalender:function(e,t){var a=managercookie.get("organizer_kalender_kalender");!1===a&&(a="[0, -1]");var n=JSON.parse(a),r=n.indexOf(e);1==t?-1==r&&n.push(e):r>-1&&n.splice(r,1),managercookie.set("organizer_kalender_kalender",JSON.stringify(n),365)},setFremdtermine:function(e,t,a,n){1==t?(NOLISManager.Organizer.showFremdtermine(),NOLISManager.Organizer.setCookieFremdtermine(1)):(NOLISManager.Organizer.hideFremdtermine(),NOLISManager.Organizer.setCookieFremdtermine(0))},showFremdtermine:function(){var e=managercookie.get("organizer_kalender_kalender"),t=JSON.parse(e),a=t.length,n=!1;jQuery("div.fremdtermin").each(function(){for(var e=0;e<a;++e)if(jQuery(this).hasClass("kalender"+t[e])){n=!0;break}1==n&&(jQuery(this).show(),n=!1)})},hideFremdtermine:function(){jQuery("div.fremdtermin").each(function(){jQuery(this).hide()})},setCookieFremdtermine:function(e){managercookie.set("organizer_kalender_fremdtermine",e,365)},toggleTitle:function(e){1==e?(jQuery("span.organizer_summary").each(function(){jQuery(this).hide()}),jQuery("span.organizer_teilnehmer").each(function(){jQuery(this).show()}),managercookie.set("organizer_kalender_termintitel",1,365)):(jQuery("span.organizer_summary").each(function(){jQuery(this).show()}),jQuery("span.organizer_teilnehmer").each(function(){jQuery(this).hide()}),managercookie.set("organizer_kalender_termintitel",0,365))},initEinstellungen:function(){var e=managercookie.get("organizer_kalender_kalender"),t=managercookie.get("organizer_kalender_fremdtermine"),a=managercookie.get("organizer_kalender_termintitel"),n=[0,-1
1034];!1===e?managercookie.set("organizer_kalender_kalender",JSON.stringify(n),365):n=JSON.parse(e),!1===t&&(t=1,managercookie.set("organizer_kalender_fremdtermine",t,365)),!1===a&&(a=0,managercookie.set("organizer_kalender_termintitel",a,365)),jQuery("div.zusatz").each(function(){jQuery(this).hide()});for(var r=n.length,i=0;i<r;++i)document.getElementById("check_kalender"+n[i])&&(document.getElementById("check_kalender"+n[i]).checked=!0,NOLISManager.Organizer.showKalender(n[i]));1==t?(NOLISManager.Organizer.showFremdtermine(),document.getElementById("radio_fremdtermine1").checked=!0):(NOLISManager.Organizer.hideFremdtermine(),document.getElementById("radio_fremdtermine0").checked=!0),1==a?(NOLISManager.Organizer.toggleTitle(1),document.getElementById("radio_teilnehmer1").checked=!0):(NOLISManager.Organizer.toggleTitle(0),document.getElementById("radio_teilnehmer0").checked=!0)},showReminderPopUp:function(e,t){for(var a=(new Date).getTime(),n=jQuery.map(e,function(e,t){return e}),r=n.length,i="",o=0;o<r;o++)a>=n[o].key&&(i='<a class="organizer_reminder" href="#" onclick="setReminderAngezeigtRequest('+n[o].id+", "+n[o].owner+'); jQuery(this).hide(); NOLISManager.Helper.stopBubble(event);">x</a> ',i+=n[o].value,NOLISManager.Helper.showLayerPopUp(t,i))},setReminderAngezeigt:function(e){var t=e.responseJSON;reminderArray=jQuery.map(t,function(e,t){return e})}},NOLISManager.Infoleiste={show:function(e,t,a){switch(t){case"success":jClass="success";break;case"error":jClass="error";break;case"attention":jClass="attention";break;default:jClass="information"}a=jQuery.extend({slideInDuration:0,slideOutDuration:400,delay:2500,closeButton:!1},a),jQuery("#nolis_infoleiste").remove(),$infoleiste=jQuery('<div id="nolis_infoleiste"></div>'),$infoleiste.css("top","-10000px"),$infoleiste_in=jQuery('<div id="nolis_infoleiste_in" class="'+jClass+'"><div id="nolis_infoleiste_ausgabe">'+e.ausgabe+"</div></div>"),$infoleiste.html($infoleiste_in),a.closeButton&&($closeButton=jQuery('<div id="nolis_infoleiste_close"><a href="#schliessen" onclick="$infoleiste.remove(); return false;">Schließen</a></div>'),$closeButton.appendTo($infoleiste_in)),$infoleiste.appendTo("body"),infoleiste_height=$infoleiste.outerHeight(),$infoleiste.css("top","-"+infoleiste_height+"px"),$infoleiste.animate({top:0},a.slideInDuration,function(){a.delay>0&&setTimeout(function(){a.closeButton&&$closeButton.css("opacity",0),$infoleiste.animate({top:"-"+infoleiste_height},a.slideOutDuration)},a.delay)})}},NOLISManager.BuchungExtra={initEinstellungen:function(e){var t=managercookie.get("buchungExtra_kalender_status"),a=managercookie.get("buchungExtra_kalender_fremdtermine"),n=managercookie.get("buchungExtra_kalender_termintitel");!1===t&&void 0!==e.status_string&&(t=e.status_string),!1===a&&void 0!==e.fremdtermine_string&&(a=e.fremdtermine_string),!1===n&&void 0!==e.termintitel_string&&(n=e.termintitel_string),!1===t?managercookie.set("buchungExtra_kalender_status",JSON.stringify(statusArray),365):statusArray=JSON.parse(t),!1===n&&(n=1,managercookie.set("buchungExtra_kalender_termintitel",n,365)),1==n?(NOLISManager.BuchungExtra.toggleTitle(1),document.getElementById("radio_objekte1").checked=!0):2==n?(NOLISManager.BuchungExtra.toggleTitle(2),document.getElementById("radio_objekte2").checked=!0):(NOLISManager.BuchungExtra.toggleTitle(0),document.getElementById("radio_objekte0").checked=!0),jQuery("div.zusatz").each(function(){jQuery(this).hide()});for(var r=statusArray.length,i=0;i<r;++i)document.getElementById("check_status"+statusArray[i])&&(document.getElementById("check_status"+statusArray[i]).checked=!0,NOLISManager.BuchungExtra.showStatus(statusArray[i]));jQuery(".informationsblock").show(),1==a?(NOLISManager.BuchungExtra.showFremdtermine(),document.getElementById("radio_fremdtermine1").checked=!0):(NOLISManager.BuchungExtra.hideFremdtermine(),document.getElementById("radio_fremdtermine0").checked=!0),1==n?(NOLISManager.BuchungExtra.toggleTitle(1),document.getElementById("radio_objekte1").checked=!0):2==n?(NOLISManager.BuchungExtra.toggleTitle(2),document.getElementById("radio_objekte2").checked=!0):(NOLISManager.BuchungExtra.toggleTitle(0),document.getElementById("radio_objekte0").checked=!0)}
1034,setCookieFremdtermine:function(e){managercookie.set("buchungExtra_kalender_fremdtermine",e,365)},toggleTitle:function(e){1==e?(jQuery("span.buchungExtra_nutzung").each(function(){jQuery(this).hide()}),jQuery("span.buchungExtra_objekte").each(function(){jQuery(this).show()}),jQuery("span.buchungExtra_full").each(function(){jQuery(this).hide()}),managercookie.set("buchungExtra_kalender_termintitel",1,365)):2==e?(jQuery("span.buchungExtra_nutzung").each(function(){jQuery(this).hide()}),jQuery("span.buchungExtra_objekte").each(function(){jQuery(this).hide()}),jQuery("span.buchungExtra_full").each(function(){jQuery(this).show()}),managercookie.set("buchungExtra_kalender_termintitel",2,365)):(jQuery("span.buchungExtra_nutzung").each(function(){jQuery(this).show()}),jQuery("span.buchungExtra_objekte").each(function(){jQuery(this).hide()}),jQuery("span.buchungExtra_full").each(function(){jQuery(this).hide()}),managercookie.set("buchungExtra_kalender_termintitel",0,365))},setFremdtermine:function(e,t,a,n){1==t?(NOLISManager.BuchungExtra.showFremdtermine(),NOLISManager.BuchungExtra.setCookieFremdtermine(1)):(NOLISManager.BuchungExtra.hideFremdtermine(),NOLISManager.BuchungExtra.setCookieFremdtermine(0))},showFremdtermine:function(){jQuery("div.fremdtermin").each(function(){jQuery(this).show()})},hideFremdtermine:function(){jQuery("div.fremdtermin").each(function(){jQuery(this).hide()})},setCookieStatus:function(e,t){var a=managercookie.get("buchungExtra_kalender_status");!1===a&&(a="[0, -1]");var n=JSON.parse(a),r=n.indexOf(e);1==t?-1==r&&n.push(e):r>-1&&(n=n.without(e)),managercookie.set("buchungExtra_kalender_status",JSON.stringify(n),365)},setStatus:function(e,t,a,n){1==document.getElementById("check_status"+t).checked?(NOLISManager.BuchungExtra.showStatus(t),NOLISManager.BuchungExtra.setCookieStatus(t,1)):(NOLISManager.BuchungExtra.hideStatus(t),NOLISManager.BuchungExtra.setCookieStatus(t,0))},showStatus:function(e){jQuery("div.status"+e).each(function(){var e=managercookie.get("buchungExtra_kalender_fremdtermine");(0==e&&!jQuery(this).hasClass("fremdtermin")||1==e)&&jQuery(this).show()})},hideStatus:function(e){jQuery("div.status"+e).each(function(){jQuery(this).hide()})}},NOLISManager.Planungskalender={initEinstellungen:function(){var e=managercookie.get("planungskalender_kalender_status"),t=managercookie.get("planungskalender_kalender_fremdtermine"),a=managercookie.get("planungskalender_kalender_termintitel"),n=[1];0==e?managercookie.set("planungskalender_kalender_status",JSON.stringify(n),365):n=JSON.parse(e),!1===a&&(a=1,managercookie.set("planungskalender_kalender_termintitel",a,365)),1==a?(NOLISManager.Planungskalender.toggleTitle(1),document.getElementById("radio_objekte1").checked=!0):(NOLISManager.Planungskalender.toggleTitle(0),document.getElementById("radio_objekte0").checked=!0),jQuery("div.zusatz").each(function(){jQuery(this).hide()});for(var r=n.length,i=0;i<r;++i)document.getElementById("check_status"+n[i])&&(document.getElementById("check_status"+n[i]).checked=!0,NOLISManager.BuchungExtra.showStatus(n[i]));1==t?(NOLISManager.Planungskalender.showFremdtermine(),document.getElementById("radio_fremdtermine1").checked=!0):(NOLISManager.Planungskalender.hideFremdtermine(),document.getElementById("radio_fremdtermine0").checked=!0),1==a?(NOLISManager.Planungskalender.toggleTitle(1),document.getElementById("radio_objekte1").checked=!0):(NOLISManager.Planungskalender.toggleTitle(0),document.getElementById("radio_objekte0").checked=!0)},setCookieFremdtermine:function(e){managercookie.set("planungskalender_kalender_fremdtermine",e,365)},toggleTitle:function(e){1==e?(jQuery("span.planungskalender_nutzung").each(function(){jQuery(this).hide()}),jQuery("span.planungskalender_objekte").each(function(){jQuery(this).show()}),managercookie.set("planungskalender_kalender_termintitel",1,365)):(jQuery("span.planungskalender_nutzung").each(function(){jQuery(this).show()}),jQuery("span.planungskalender_objekte").each(function(){jQuery(this).hide()}),managercookie.set("planungskalender_kalender_termintitel",0,365))},setFremdtermine:function(e,t,a,n){1==t?(NOLISManager.Planungskalender.showFremdtermine(),NOLISManager.Planungskalender.setCookieFremdtermine(1)):(NOLISManager.Planungskalender.hideFremdtermine(),NOLISManager.Planungskalender.setCookieFremdtermine(0))},showFremdtermine:function(){jQuery("div.fremdtermin").each(function(){jQuery(this).show()})},hideFremdtermine:function(){jQuery("div.fremdtermin").each(function(){jQuery(this).hide()})}
1034,setCookieStatus:function(e,t){var a=managercookie.get("planungskalender_kalender_status");!1===a&&(a="[0, -1]");var n=JSON.parse(a),r=n.indexOf(e);1==t?-1==r&&n.push(e):r>-1&&(n=n.without(e)),managercookie.set("planungskalender_kalender_status",JSON.stringify(n),365)},setStatus:function(e,t,a,n){1==document.getElementById("check_status"+t).checked?(NOLISManager.Planungskalender.showStatus(t),NOLISManager.Planungskalender.setCookieStatus(t,1)):(NOLISManager.Planungskalender.hideStatus(t),NOLISManager.Planungskalender.setCookieStatus(t,0))},showStatus:function(e){jQuery("div.status"+e).each(function(){var e=managercookie.get("planungskalender_kalender_fremdtermine");(0==e&&!jQuery(this).hasClass("fremdtermin")||1==e)&&jQuery(this).show()})},hideStatus:function(e){jQuery("div.status"+e).each(function(){jQuery(this).hide()})}},NOLISManager.Ladebildschirm={ladebildschirm:jQuery(),init:function(e,t){void 0===e&&(e="Bitte warten ...<br />"),void 0===t&&(t="fas fa-spinner fa-spin"),0==NOLISManager.Ladebildschirm.ladebildschirm.length?NOLISManager.Ladebildschirm.ladebildschirm=jQuery('<div id="ladebildschirm" style="display:none;"></div><div id="ladebildschirm_in" style="display:none;"><i class="'+t+'"></i><div id="ladebildschirm_in_text">'+e+"</div></div>"):NOLISManager.Ladebildschirm.ladebildschirm.children("#ladebildschirm_in_text").html(e)},add2Dom:()=>{0==NOLISManager.Ladebildschirm.ladebildschirm.length&&NOLISManager.Ladebildschirm.init();let e=jQuery(".fullscreenSize");0<e.length?e.append(NOLISManager.Ladebildschirm.ladebildschirm):NOLISManager.Ladebildschirm.ladebildschirm.appendTo("body")},reset:()=>{0==NOLISManager.Ladebildschirm.ladebildschirm.length&&NOLISManager.Ladebildschirm.init(),NOLISManager.Ladebildschirm.ladebildschirm.remove()},anzeigen:function(){NOLISManager.Ladebildschirm.add2Dom(),jQuery("#ladebildschirm").show(),jQuery("#ladebildschirm_in").show()},ausblenden:function(){jQuery("#ladebildschirm").hide(),jQuery("#ladebildschirm_in").hide(),NOLISManager.Ladebildschirm.reset()},setAusgabe:function(e){NOLISManager.Ladebildschirm.ladebildschirm.children("#ladebildschirm_in_text").html(e)}},NOLISManager.Diashow={cache:{},showHiddenElements:function(){NOLISManager.Diashow.cache.hiddenElementsMouseOver=!0,window.setTimeout(function(){1==NOLISManager.Diashow.cache.hiddenElementsMouseOver&&0==NOLISManager.Diashow.cache.hiddenElementsFadeIn&&(NOLISManager.Diashow.cache.hiddenElementsFadeIn=!0,jQuery("#cboxTitleCopy .cboxBeschreibung").show({duration:600,complete:function(){0==jQuery("#cboxTitleCopy .cboxDownload").length&&(NOLISManager.Diashow.cache.hiddenElementsFadeIn=!1,0==NOLISManager.Diashow.cache.hiddenElementsMouseOver&&NOLISManager.Diashow.hideHiddenElements())}}),1==jQuery("#cboxTitleCopy .cboxDownload").length&&(jQuery("#cboxTitleCopy .cboxDownload_in").show({duration:600}),jQuery("#cboxTitleCopy .cboxDownload").show({duration:600,complete:function(){NOLISManager.Diashow.cache.hiddenElementsFadeIn=!1,0==NOLISManager.Diashow.cache.hiddenElementsMouseOver&&NOLISManager.Diashow.hideHiddenElements()}})))},400)},hideHiddenElements:function(){NOLISManager.Diashow.cache.hiddenElementsMouseOver=!1,0==NOLISManager.Diashow.cache.hiddenElementsMouseOver&&0==NOLISManager.Diashow.cache.hiddenElementsFadeOut&&(NOLISManager.Diashow.cache.hiddenElementsFadeOut=!0,jQuery("#cboxTitleCopy .cboxBeschreibung").hide({duration:600,complete:function(){0==jQuery("#cboxTitleCopy .cboxDownload").length&&(NOLISManager.Diashow.cache.hiddenElementsFadeOut=!1,1==NOLISManager.Diashow.cache.hiddenElementsMouseOver&&NOLISManager.Diashow.showHiddenElements())}}),1==jQuery("#cboxTitleCopy .cboxDownload").length&&(jQuery("#cboxTitleCopy .cboxDownload_in").hide({duration:600}),jQuery("#cboxTitleCopy .cboxDownload").hide({duration:600,complete:function(){NOLISManager.Diashow.cache.hiddenElementsFadeOut=!1,1==NOLISManager.Diashow.cache.hiddenElementsMouseOver&&NOLISManager.Diashow.showHiddenElements()}})))},hideHiddenElementsQuick:function(){jQuery("#cboxTitleCopy .cboxBeschreibung").hide(),jQuery("#cboxTitleCopy .cboxDownload_in").hide(),jQuery("#cboxTitleCopy .cboxDownload").hide(),NOLISManager.Diashow.cache.hiddenElementsFadeIn=!1,NOLISManager.Diashow.cache.hiddenElementsFadeOut=!1},initThumbnails:function(e){$thumbnails=jQuery("#cboxThumbnails"),$thumbnails_in=jQuery("#cboxThumbnails_in"),1==$thumbnails.length&&1==$thumbnails_in.length||(jQuery("#cboxThumbnails").remove(),jQuery("#cboxThumbnails_in").remove(),$thumbnails=jQuery("<div></div>"),$thumbnails.attr("id","cboxThumbnails"),$thumbnails_in=jQuery("<div></div>"),$thumbnails_in.attr("id","cboxThumbnails_in"),$thumbnails_in.appendTo($thumbnails),counter=0,jQuery(".gallerygroup_"+e.nolisContent+"_"+e.id+" img").each(function(){$element=jQuery('<span class="img_'+counter+'"></span>'),$img=jQuery(this).clone(),$img.removeAttr("width"),$img.removeAttr("height"),$img.css("height","80px"),$img.appendTo($element),$element.appendTo($thumbnails_in),jQuery($element).click(function(){$thumbnail=jQuery(this),newIndex=$thumbnail.attr("class"),newIndex=newIndex.replace("img_",""),newIndex=newIndex.replace(" ",""),newIndex=newIndex.replace("cboxActiveElement",""),jQuery.colorbox.index(newIndex)}),counter++})),$thumbnails.hide(),$thumbnails_in.hide(),$thumbnails.appendTo("#cboxContent")}
1034,selectThumbnail:function(){jQuery("#cboxThumbnails_in > span").removeClass("cboxActiveElement"),activeIndex=jQuery.colorbox.getIndex(),$activeElement=jQuery("#cboxThumbnails_in > span.img_"+activeIndex),$activeElement.addClass("cboxActiveElement"),NOLISManager.Diashow.refreshThumbnailPosition()},initThumbnailSlider:function(){jQuery("#thumbnailsButtonLeft").remove(),jQuery("#thumbnailsButtonRight").remove(),marginLeft=NOLISManager.Diashow.cache.thumbnailsMarginLeft,gesamtbreite=NOLISManager.Diashow.cache.thumbnailsGesamtbreite,containerBreite=NOLISManager.Diashow.cache.thumbnailsContainerBreite,activeElementWidth=NOLISManager.Diashow.cache.thumbnailsActiveElementWidth,gesamtbreite>containerBreite&&($thumbnailsButtonLeft=jQuery("<button></button>"),$thumbnailsButtonLeft.attr("id","thumbnailsButtonLeft"),0==marginLeft&&$thumbnailsButtonLeft.hide(),$thumbnailsButtonLeft.appendTo("#cboxThumbnails"),$thumbnailsButtonLeft.click(function(){NOLISManager.Diashow.thumbnailsSlidesLeft()}),$thumbnailsButtonRight=jQuery("<button></button>"),$thumbnailsButtonRight.attr("id","thumbnailsButtonRight"),-1*(gesamtbreite-containerBreite)==marginLeft&&$thumbnailsButtonRight.hide(),$thumbnailsButtonRight.appendTo("#cboxThumbnails"),$thumbnailsButtonRight.click(function(){NOLISManager.Diashow.thumbnailsSlidesRight()}))},thumbnailsSlidesLeft:function(){marginLeft=NOLISManager.Diashow.cache.thumbnailsMarginLeft,gesamtbreite=NOLISManager.Diashow.cache.thumbnailsGesamtbreite,containerBreite=NOLISManager.Diashow.cache.thumbnailsContainerBreite,activeElementWidth=NOLISManager.Diashow.cache.thumbnailsActiveElementWidth,marginLeft*=-1,marginLeft<containerBreite?marginLeft=0:marginLeft-=containerBreite,marginLeft*=-1,NOLISManager.Diashow.cache.thumbnailsMarginLeft=marginLeft,jQuery("#cboxThumbnails_in").animate({marginLeft:marginLeft+"px"},600),NOLISManager.Diashow.initThumbnailSlider()},thumbnailsSlidesRight:function(){marginLeft=NOLISManager.Diashow.cache.thumbnailsMarginLeft,gesamtbreite=NOLISManager.Diashow.cache.thumbnailsGesamtbreite,containerBreite=NOLISManager.Diashow.cache.thumbnailsContainerBreite,activeElementWidth=NOLISManager.Diashow.cache.thumbnailsActiveElementWidth,marginLeft*=-1,gesamtbreite-marginLeft-containerBreite<containerBreite?marginLeft=gesamtbreite-containerBreite:marginLeft+=containerBreite,marginLeft*=-1,NOLISManager.Diashow.cache.thumbnailsMarginLeft=marginLeft,jQuery("#cboxThumbnails_in").animate({marginLeft:marginLeft+"px"},600),NOLISManager.Diashow.initThumbnailSlider()},refreshThumbnailPosition:function(){marginLeft=0,activeElementWidth=0,jQuery("#cboxThumbnails_in").css("margin-left","auto"),containerBreite=jQuery("#cboxThumbnails").width(),gesamtbreite=0,jQuery("#cboxThumbnails_in > span").each(function(){gesamtbreite+=jQuery(this).outerWidth(!0)}),gesamtbreite>=containerBreite&&($activeElement=jQuery("#cboxThumbnails_in span.cboxActiveElement"),activeElementPosition=$activeElement.position(),activeElementWidth=$activeElement.outerWidth(!0),activeElementPosition.left+activeElementWidth/2>containerBreite/2&&(abstandNachRechts=gesamtbreite-activeElementPosition.left-activeElementWidth,containerBreite/2-activeElementWidth/2<abstandNachRechts?marginLeft=activeElementPosition.left-containerBreite/2+activeElementWidth/2:containerBreite/2-activeElementWidth/2>abstandNachRechts&&(marginLeft=gesamtbreite-containerBreite))),marginLeft*=-1,marginLeft<0&&jQuery("#cboxThumbnails_in").css("margin-left",marginLeft+"px"),NOLISManager.Diashow.cache.thumbnailsMarginLeft=marginLeft,NOLISManager.Diashow.cache.thumbnailsGesamtbreite=gesamtbreite,NOLISManager.Diashow.cache.thumbnailsContainerBreite=containerBreite,NOLISManager.Diashow.cache.thumbnailsActiveElementWidth=activeElementWidth},initActionbuttons:function(){$cboxButtons=jQuery("#cboxButtons"),1!=$cboxButtons.length&&($cboxButtons=jQuery("<div></div>"),$cboxButtons.attr("id","cboxButtons"),jQuery("#cboxPrevious").appendTo($cboxButtons),jQuery("#cboxSlideshow").appendTo($cboxButtons),jQuery("#cboxNext").appendTo($cboxButtons),jQuery("#cboxCurrent").appendTo($cboxButtons)),jQuery("#cboxClose").css("opacity",0),$cboxButtons.hide(),$cboxButtons.appendTo("body"),jQuery("#cboxCurrent").css("opacity","0")}
1034,actionbuttonsMove2Content:function(){jQuery($cboxButtons).appendTo("#cboxContent"),jQuery("#cboxCurrent").css("opacity","1")},initDiashow:function(e){e.thumbnails&&(jQuery("#cboxThumbnails").appendTo("#cboxLoadedContent"),jQuery("#cboxThumbnails").show(),jQuery("#cboxButtons").appendTo("#cboxLoadedContent"),jQuery("#cboxButtons").show()),jQuery("#cboxThumbnails_in").show(),void 0===e&&(e={}),void 0===e.textboxPositionClass&&(e.textboxPositionClass="cboxTop"),$cboxPhotoContainer=jQuery("<div></div>"),$cboxPhotoContainer.css("opacity",0),$cboxPhotoContainer.css("position","relative"),e.thumbnails&&$cboxPhotoContainer.attr("class","cboxThumbnails cboxButtons"),$cboxPhotoContainer.attr("id","cboxPhotoContainer"),$cboxPhotoContainer.prependTo("#cboxLoadedContent"),jQuery("#cboxLoadedContent img.cboxPhoto").appendTo($cboxPhotoContainer),$cboxPhotoContainer.animate({opacity:1},800),jQuery("#cboxClose").animate({opacity:1},800),jQuery("#cboxTitleCopy").remove(),jQuery("#cboxTitle").clone().appendTo($cboxPhotoContainer),jQuery("#cboxLoadedContent #cboxTitle").attr("id","cboxTitleCopy"),jQuery("#cboxContent > #cboxTitle").hide(),jQuery("#cboxTitleCopy").addClass(e.textboxPositionClass),"cboxBottom"==e.textboxPositionClass&&jQuery("#cboxTitleCopy").css("bottom","0px"),elementID=jQuery(jQuery.colorbox.element()[0]).data("id"),""!=elementID&&jQuery("#cboxTitleCopy").html(jQuery("#"+elementID).html()),jQuery(".nolis_scrollable_js").scrollable({}),e.textboxEnabled&&jQuery("#cboxPhotoContainer").hover(function(){NOLISManager.Diashow.showHiddenElements()},function(){NOLISManager.Diashow.hideHiddenElements()}),NOLISManager.Diashow.hideHiddenElementsQuick()}},NOLISManager.Cookies=NOLISManager.Helper.createClass(),NOLISManager.Cookies.prototype={initialize:function(e,t,a,n){this.path=e||"/",this.domain=t||null,this.secure=a||"",this.samesite=n||a?"None":"Lax"},set:function(e,t,a){if("string"!=typeof e)throw"Invalid key";if("string"!=typeof t&&"number"!=typeof t)throw"Invalid value";if(a&&"number"!=typeof a)throw"Invalid expiration time";var n=e+"="+encodeURI(String(t)),r="";if(a){var i=new Date;i.setTime(i.getTime()+24*a*60*60*1e3),r="; expires="+i.toGMTString()}var o=n+r+"; path="+encodeURI(this.path)+(this.domain?"; domain="+encodeURI(this.domain):"")+(this.secure?"; "+this.secure:"")+(this.secure?"; SameSite="+this.samesite:"; SameSite=Lax");document.cookie=o},setCookiedough:function(e,t,a){if(NOLISManager.Helper.isset(e)){var n=this.get(e);if(!1!==n&&NOLISManager.Helper.isset(t)&&NOLISManager.Helper.isset(a)){var r={};for(var i of n.split("&")){var o=i.split("="),s=decodeURIComponent((o[1]||"").trim());r[o[0].trim()]=s}r[t]=a.toString();var l=[];for(t in r)l.push(t+"="+r[t]);this.initialize("/"),this.clear(e),this.set(e,l.join("&"),360)}}},get:function(e,t){var a=e+"=",n=!1;NOLISManager.Helper.isset(t)&&(n=t);for(var r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(a)){n=decodeURI(o.substring(a.length,o.length));break}}return n},clear:function(e){this.set(e,"",-1)},clearAll:function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){for(var a=e[t];" "===a.charAt(0);)a=a.substring(1,a.length);this.clear(a.split("=")[0])}}},NOLISManager.Storage={initForm:function(e,t,a,n){"undefined"!=typeof Storage&&(void 0!==a&&0==a||(a=!0),jQuery(document).ready(function(){NOLISManager.Storage._fillFormFromLocalStorage(e,t,a),"function"==typeof n&&n(),jQuery("#"+e).on("submit",function(){NOLISManager.Storage._saveFormToLocalStorage(e,t)})}))},_fillFormFromLocalStorage:function(e,t){var a={};try{a=!0===t?JSON.parse(sessionStorage.getItem("form-"+e)):JSON.parse(localStorage.getItem("form-"+e))}catch(e){console.error(e)}jQuery.isEmptyObject(a)||jQuery("#"+e).find(":input:not(button)").each(function(e,t){var n=(t=jQuery(t)).data("auto-fill"),r=t.closest("div.form-item.form-item-checkbox-container, div.form-item.form-item-radio-container, div.form-item.form-item-h5upload").data("auto-fill");void 0!==a[t.attr("name")]&&"disabled"!=n&&"disabled"!=r&&(t.is("input:checkbox")||t.is("input
1034:radio")?a[t.attr("name")]===t.attr("value")&&t.prop("checked",!0).change():(t.is("select"),t.val(a[t.attr("name")]).change()))})},_saveFormToLocalStorage:function(e,t){var a={};jQuery("#"+e).find(':input:not(button):not([type="hidden"])').each(function(e,t){var n="";void 0===(t=jQuery(t)).attr("name")||t.is("input:password")||t.is("input:image")||(n=NOLISManager.Helper.getValue(t),a[t.attr("name")]=n)}),!0===t?sessionStorage.setItem("form-"+e,JSON.stringify(a)):localStorage.setItem("form-"+e,JSON.stringify(a))},clear:function(e,t){!0===t?sessionStorage.removeItem("form-"+e):localStorage.removeItem("form-"+e)}},NOLISManager.MaskenStorage=NOLISManager.Helper.createClass(),NOLISManager.MaskenStorage.prototype={formid:"",hash:"",session:!0,data:{},initialize:function(e,t,a){"undefined"!=typeof Storage&&(this.formid=e,this.hash=t,this.session=a||!0,this.initForm())},key2index:function(e){var t=NOLISManager.String.clearBezeichnung(e);return t.substring(0,255)},initForm:function(){"undefined"!=typeof Storage&&(that=this,jQuery(document).ready(function(){that._fillDataFromLocalStorage();var e=that.getItem("sortable-id");null!=e&&jQuery("#"+that.formid+" span.sortable_container a[data-sortable-id="+e+"]").click(),jQuery("#"+that.formid+" span.sortable_container a").on("click",function(){that.setItem("sortable-id",jQuery(this).data("sortable-id"))});var t=that.getItem("erweiterung-togglestate");null!=t&&""!=t&&(jQuery("#"+that.formid+" a.erweiterung-togglestate[data-erweiterung-togglestate="+t+"]").click(),jQuery("#"+that.formid+" input#"+t+"_togglestate").val(1)),jQuery("#"+that.formid+" a.erweiterung-togglestate").on("click",function(){var e=jQuery(this),t=e.data("erweiterung-togglestate"),a=e.data("erweiterung-togglestate");"none"==jQuery("#"+t).css("display")?(jQuery("#"+t+"_togglestate").val(0),a=""):jQuery("#"+t+"_togglestate").val(1),that.setItem("erweiterung-togglestate",a)});var a=that.getItem("legende-togglestate");null!=a&&1==a&&jQuery("#"+that.formid+" div.legende a.legende_toggle").click(),jQuery("#"+that.formid).on("click","div.legende a.legende_toggle",function(){var e=-1;jQuery(this).hasClass("toggle_down")&&(e=0),jQuery(this).hasClass("toggle_up")&&(e=1),that.setItem("legende-togglestate",e)})}))},_fillDataFromLocalStorage:function(){try{!0===this.session?(this.data=JSON.parse(sessionStorage.getItem("maske-"+this.formid+this.hash)),null===this.data&&(this.data={})):(this.data=JSON.parse(localStorage.getItem("maske-"+this.formid+this.hash)),null===this.data&&(this.data={}))}catch(e){console.error(e)}},_saveDataToLocalStorage:function(){!0===this.session?sessionStorage.setItem("maske-"+this.formid+this.hash,JSON.stringify(this.data)):localStorage.setItem("maske-"+this.formid+this.hash,JSON.stringify(this.data))},setItem:function(e,t){var a=this.key2index(e);this.data[a]=t,this._saveDataToLocalStorage()},getItem:function(e){var t=this.key2index(e);return this.data.hasOwnProperty(t)?this.data[t]:null},clear:function(){!0===session?sessionStorage.removeItem("maske-"+this.formid+this.hash):localStorage.removeItem("maske-"+this.formid+this.hash),this.data={}}},NOLISManager.ContextMenu={openMenu:function(e,t,a){if(0==jQuery(".background-area").length){var n=jQuery("#"+e),r="",i="";n.hasClass("hideonclick")&&(r=" onclick=\"jQuery('.context-menu').hide(); jQuery('.background-area').hide();\""),n.hasClass("hiddenbg")&&(i=' style="opacity:0;"'),jQuery("body").append('<div class="background-area"'+r+i+"></div>")}jQuery("#"+e).find("li.context-menu-item").each(function(e,t){jQuery(t).on("click",function(){jQuery(this).parents(".context-menu").hide(),jQuery(".background-area").hide()})}),jQuery(".background-area").show();var o=a&&!jQuery.isEmptyObject(a)&&!a.position;NOLISManager.Helper.clonePosition(e,null,a,1),jQuery("#"+e).show(),jQuery("#"+e).css("visibility","hidden"),o?NOLISManager.Helper.moveToVisibility(e,!0):NOLISManager.Helper.centerHorizontalWithinViewport(e),jQuery("#"+e).css("visibility","visible")},createMenu:function(e,t=null){if(void 0===e||!Array.isArray(e))return console.error("ContextMenu items must be an array. Current:",typeof e),null;if(!(e=>{const t=["text","icon"];for(let a of e){for(let e of t)if(!a.hasOwnProperty(e))return console.error("ContextMenu item missing required key: "+e,a),!1;return!0}})(e))return null;null===t&&(t="context-menu-"+Math.random().toString(36).substr(2,9));const a=e.map(e=>(e.id=e.id||"item-"+Math.random().toString(36).substr(2,9),`\n        <li class="context-menu-item  ${e.disabled?"disabled":""} ${e.id}">\n          <a href="${e.href||"#"}" ${e.onclick?' onclick="'+e.onclick+'"':""}>\n            ${e.icon}
1034\n            <span class="context-menu-text">\n              ${e.text}\n            </span>\n          </a>\n        </li>\n      `)).join(""),n=['<div class="context-menu hiddenbg" id="'+t+'" style="display:none;">','<div class="context-menu-container">','<div class="context-menu-in">',a,"</div>","</div>","</div>"].join(""),r=jQuery(n);for(let t of e)if(t.hasOwnProperty("onclick")&&"function"==typeof t.onclick&&r.find("."+t.id).on("click",function(e){t.disabled?e.preventDefault():t.onclick(e)}),t.hasOwnProperty("disabled")&&t.disabled&&t.hasOwnProperty("textDisabled")&&t.textDisabled){const e=r.find("."+t.id);e.on("mouseenter",function(a){setTimeout(function(){NOLISManager.QuickTip.showTip(e.get(0),t.textDisabledTitle||"Hinweis",t.textDisabled,{},"quicktip-default")},25)}),e.on("mouseleave",function(e){NOLISManager.QuickTip.removeTip()})}return r.appendTo("body"),jQuery("body").on("click",function(e){e.stopPropagation(),jQuery(e.target).closest("#"+t).length||(jQuery("#"+t).hide(),jQuery(".background-area").hide(),jQuery("body").off("click"))}),t}},NOLISManager.OverForm={openSelection:function(e,t,a,n,r,i=null){let o=!0;if(void 0!==a&&void 0!==a.createBackground&&(o=a.createBackground),0==jQuery(".background-area").length&&o){var s=jQuery("#"+e),l="",u="";s.hasClass("hideonclick")&&(l=" onclick=\"jQuery('.overformcontainer').hide(); jQuery('.background-area').hide();\""),s.hasClass("hiddenbg")&&(u=' style="opacity:0;"'),jQuery("body").append('<div class="background-area"'+l+u+"></div>")}var d=r&&!jQuery.isEmptyObject(r)&&(!r.position||"autoDraggable"!=r.position),c=!(!r||!r.ignoreElementWidth)&&r.ignoreElementWidth;d?NOLISManager.Helper.clonePosition(e,n,r,1):NOLISManager.Helper.clonePosition(e,null,{left:"mitte",top:65},1),jQuery("#"+e).show(),jQuery("#"+e).css("visibility","hidden"),"function"==typeof i&&jQuery("#"+e).data("resultCallback",i),jQuery("#"+e).draggable({handle:"#"+e+"_kopf",containment:"document"}),void 0!==a&&void 0!==a.styles&&(void 0!==a.styles.width&&jQuery("#"+e).css("width",a.styles.width),void 0!==a.styles.maxwidth&&jQuery("#"+e).css("max-width",a.styles.maxwidth),delete a.styles);var m=e+"_content";a.srcContainerContentID=m,a.srcContainerID=e,a.pseudoParam=(new Date).getTime(),jQuery.ajax({url:t,type:"post",dataType:"html",data:a}).done(function(t){jQuery("#"+a.srcContainerContentID).html(t),setTimeout(function(){d?NOLISManager.Helper.moveToVisibility(e,c):NOLISManager.Helper.centerHorizontalWithinViewport(e),jQuery("#"+e).css("visibility","visible")},250)}).fail(function(){}
1034).always(function(){})},openSelection2:function(e,t,a,n,r){jQuery("#"+e).show(),jQuery("#overContainer_"+e).show();var i=e+"_content";a.srcContainerContentID=i,a.srcContainerID=e,a.pseudoParam=(new Date).getTime(),jQuery.ajax({url:t,type:"post",dataType:"html",data:a}).done(function(t){jQuery("#"+a.srcContainerContentID).html(t),NOLISManager.Helper.clonePosition(e,n,r,1)}).fail(function(){}).always(function(){})},openSelectionHTML:function(e,t,a,n,r){let i=!0;if(void 0!==a&&void 0!==a.createBackground&&(i=a.createBackground),0==jQuery(".background-area").length&&i){var o="";jQuery("#"+e).hasClass("hiddenbg")&&(o=' style="opacity:0;"'),jQuery("body").append('<div class="background-area" '+o+"></div>")}void 0!==a&&(void 0!==a.width&&jQuery("#"+e).css("width",a.width),void 0!==a.maxwidth&&jQuery("#"+e).css("max-width",a.maxwidth),void 0!==a.maxheight&&jQuery("#"+e).css("max-height",a.maxheight),void 0!==a.minheight&&jQuery("#"+e).css("min-height",a.minheight)),jQuery("#"+e).show(),jQuery("#"+e).draggable({handle:"#"+e+"_kopf",containment:"document"}),jQuery("#"+e+"_content").html(t),!r||jQuery.isEmptyObject(r)||r.position&&"autoDraggable"==r.position?NOLISManager.Helper.clonePosition(e,null,{left:"mitte",top:65},1):NOLISManager.Helper.clonePosition(e,n,r,1)},openSelectionElement:function(e,t,a,n,r){jQuery("#"+e).show(),jQuery("#"+e).draggable({handle:"#"+e+"_kopf",containment:"document"});var i=e+"_content";a.srcContainerContentID=i,a.srcContainerID=e,jQuery("#"+t).appendTo("#"+i),jQuery("#"+t).show(),!r||jQuery.isEmptyObject(r)||r.position&&"autoDraggable"==r.position?NOLISManager.Helper.clonePosition(e,null,{left:"mitte",top:65},1):NOLISManager.Helper.clonePosition(e,n,r,1)},startSubmit:function(e){var t=NOLISManager.Helper.serializeForm2Object(e);t.pseudoParam=(new Date).getTime(),jQuery("#"+t.srcContainerContentID).load(t.src,t)},closeSelection:function(e,t,a=null){var n=e+"_suche",r=e+"_content";"function"==typeof jQuery("#"+e).data("resultCallback")&&null!==a&&(jQuery("#"+e).data("resultCallback")(a),jQuery("#"+e).data("resultCallback",null)),jQuery("#"+e).hide(),1==t&&(jQuery("#"+n).empty(),jQuery("#"+r).empty()),jQuery(".background-area").remove()}},NOLISManager.LayoutTemplate={mouseoverSelectboxOption:function(e,t,a){var n=jQuery(e).data("value").split("|");NOLISManager.Helper.clonePosition("layout_template_preview",jQuery(e).parent().prev(),{},1),document.getElementById("layout_template_preview_img").src=jurl2cmsbilder+"templates/template_"+n[0]+"_vorschau.jpg",jQuery("#layout_template_preview").css({"z-index":16}),jQuery("#layout_template_preview").show()},changeTemplate:async function(e,t,a,n,r){var i=t.split("|"),o=a.split("|"),s=1;i[1]>o[1]&&1!=(s=await NConfirm("Achtung: Durch das Umstellen des Layout-Templates wird der aktuelle Bearbeitungsstand gespeichert.\n\nDas ausgewählte Template hat weniger Plätze als das vorherige.\n\nWollen Sie trotzdem fortfahren?\n\nTipp: Sie sollten vorher alle überzähligen Plätze leeren bzw. umkopieren."))&&(jQuery("div.select-selected").eq(0).remove(),jQuery("div.select-items").eq(0).remove(),jQuery("#"+e).val(t),jQuery("#template_alt").val(t),NOLISManager.Selectbox.init(e)),r>0?1==s&&t!==a&&submitForm():jQuery("#manager_form").submit()},spaltenAngleichen:function(){jQuery(".spaltenhoehe").each(function(){var e=0;jQuery(this).find(".innen").each(function(){jQuery(this).innerHeight()>e&&(e=jQuery(this).innerHeight())}),jQuery(this).find(".innen, .trennlinie > div").each(function(){jQuery(this).css("min-height",e+jQuery(this).height()-jQuery(this).innerHeight()+"px")})})},setColumnwidthForCards:function(){let e=[],t=0,a=0,n=jQuery("div#nolis_content_site div.platz");if(jQuery(n).is(".nolis-custom-padding",".nolis-custom-border")){let e=jQuery(n).find(".rahmen");t=parseInt(jQuery(e).css("border-width"));let r=jQuery(n).find(".innen");a=parseInt(jQuery(r).css("padding"))}if(t>0||a>0){let t=jQuery(n).find(".np-cards");t.length>0&&jQuery(t).each(function(){e.push(jQuery(this))})}let r=jQuery("div#nolis_content_site div.template.nolis-alternierend .np-cards");r.length>0&&jQuery(r).each(function(){e.push(jQuery(this))}),e.forEach(function(e){let t=e,a=jQuery(t).find(".np-row"),n=0;if(jQuery(a).hasClass("np-cols-2")?n=2:jQuery(a).hasClass("np-cols-3")?n=3:jQuery(a).hasClass("np-cols-4")&&(n=4),n>0){let e=16*(n-1),r=(jQuery(a).width()-e)/n+"px";jQuery(t).find(".np-col").each(function(){jQuery(this).css("width",r)})}})}},NOLISManager.Select2Datalist={init:function(e,t=""){var a=e+"_entry",n=e+"_datalist";jQuery("#"+e).after('<input placeholder="'+t+'" type="text" autocomplete="off" list="'+n+'" id="'+a+'" class="fake-select"/><datalist id="'+n+'"></datalist>');var r="",i="";jQuery("#"+e+" option").each(function(e,t){i="",jQuery(t).attr("selected")&&(jQuery("#"+a).val(jQuery(t).text()),i=' selected="selected"'),r+="<option"+i+">"+jQuery(t).text()+"</option>"}),jQuery("#"+n).append(r),jQuery("#"+e).hide(),jQuery("#"+a).on("change",function(){jQuery("#"+e).val(jQuery("#"+e+' option:contains("'+jQuery("#"+a).val()+'")').attr("value")),jQuery("#"+e).change(),null==jQuery("#"+e).val()&&jQuery("#"+a).val("")}
1034)}},NOLISManager.Selectbox={init:function(e){void 0===e&&(e=""),selector="div.custom-select",jQuery(selector).each(function(){s=jQuery(this).children("select"),a=jQuery('<div class="select-selected '+e+'">'+jQuery("option:selected",s).text()+"</div>"),a.bind("click",function(e){e.stopPropagation(),NOLISManager.Selectbox.closeAllSelect(s),jQuery(this).next().toggleClass("select-hide"),jQuery(this).toggleClass("select-arrow-active")}),a.appendTo(this),b=jQuery('<div class="select-items select-hide '+e+'"></div>'),jQuery(s).children("option").each(function(){c=jQuery('<div class="select-options '+e+'" data-value="'+jQuery(this).val()+'">'+jQuery(this).text()+"</div>"),c.bind("click",function(e){jQuery(s).val(jQuery(this).data("value")),jQuery(s).change(),jQuery(this).parent().children(".same-as-selected").each(function(){jQuery(this).removeClass()}),jQuery(this).addClass("same-as-selected"),jQuery(a).text(jQuery(this).text()),jQuery(a).click()}),c.appendTo(b)}),b.appendTo(this)}),document.addEventListener("click",NOLISManager.Selectbox.closeAllSelect)},closeAllSelect:function(e){var t,a,n,r,i,o=[];for(t=document.getElementsByClassName("select-items"),a=document.getElementsByClassName("select-selected"),r=t.length,i=a.length,n=0;n<i;n++)e==a[n]?o.push(n):jQuery(a[n]).removeClass("select-arrow-active");for(n=0;n<r;n++)o.indexOf(n)&&jQuery(t[n]).addClass("select-hide").trigger("classChangeHide")}},NOLISManager.Listfilter={filter:function(e,t,a,n){var r=0,i=0,o=jQuery.trim(jQuery("#"+e).val());1===n&&(o=o.replace(/ /gi,"|")),jQuery(t).each(function(){i++;var e=jQuery(this).find(a);e[0]&&e[0].innerText.search(new RegExp(o,"i"))<0?jQuery(this).hide().removeClass("visible"):(jQuery(this).show().addClass("visible"),r++)}),jQuery("#"+e+"-count").text(r),jQuery("#"+e+"-num").text(i)},filter_cleanup_managerbox:function(e){jQuery(e+" div.managerbox-wrapper").each(function(){0==jQuery(this).children("div.managerbox.visible").length?(jQuery(this).hide().removeClass("visible"),jQuery(this).prev("h4").hide().removeClass("visible")):(jQuery(this).show().addClass("visible"),jQuery(this).prev("h4").show().addClass("visible")),jQuery(this).children("div.managertrenner").each(function(){jQuery(this).prev("div.managerbox").hasClass("visible")||jQuery(this).next("div.managerbox").hasClass("visible")?jQuery(this).show().addClass("visible"):jQuery(this).hide().removeClass("visible")})})},filter_cleanup_listitem:function(e){jQuery(e+" div.listitem-layout-container").each(function(){0==jQuery(this).children("a.visible").length?(jQuery(this).hide().removeClass("visible"),jQuery(this).prev("h4").hide().removeClass("visible")):(jQuery(this).show().addClass("visible"),jQuery(this).prev("h4").show().addClass("visible"))})},filter_cleanup_listgeneral:function(e){jQuery(e+" div.nolis-list-general").each(function(){0==jQuery(this).children("div.nolis-list-item.visible").length?(jQuery(this).hide().removeClass("visible"),jQuery(this).prev("h4").hide().removeClass("visible")):(jQuery(this).show().addClass("visible"),jQuery(this).prev("h4").show().addClass("visible"))})},filter_cleanup_cardflex:function(e){jQuery(e+" div.cardflex").each(function(){0==jQuery(this).children("a.visible").length?(jQuery(this).hide().removeClass("visible"),jQuery(this).prev("h4").hide().removeClass("visible")):(jQuery(this).show().addClass("visible"),jQuery(this).prev("h4").show().addClass("visible"))})}},NOLISManager.Resultfilter={filter_start:function(e,t,a){jQuery(e).keyup(function(n){if(13==n.keyCode&&n.preventDefault(),27==n.keyCode||""==jQuery(this).val()){jQuery(this).val("");var r=0;jQuery(t).each(function(){jQuery(this).removeClass("visible").show().addClass("visible"),r++}),jQuery(e+"-count").text(r)}else NOLISManager.Resultfilter.filter(e,t,jQuery(this).val(),a);NOLISManager.Resultfilter.zebraRows(t+".visible:even","row1","row2"),NOLISManager.Resultfilter.zebraRows(t+".visible:odd","row2","row1")}),jQuery(e).keydown(function(e){13==e.keyCode&&e.preventDefault()})},filter:function(e,t,a,n){var r=0;a=jQuery.trim(a),1===n&&(a=a.replace(/ /gi,"|")),jQuery(t).each(function(){jQuery(this).text().search(new RegExp(a,"i"))<0?jQuery(this).hide().removeClass("visible"):(jQuery(this).show().addClass("visible"),r++)}),jQuery(e+"-count").text(r)},sortableTable_start:function(e,t){isNaN(t)&&(t=0),t=parseInt(t,10),jQuery(e+" thead th").each(function(a){jQuery(this).hasClass("sortable")&&jQuery(this).addClass("sortable").click(function(){NOLISManager.Resultfilter.sortableTable_sort(jQuery(this),a,e,t)})})},sortableTable_sort:function(e,t,a,n,r,i,o,s){isNaN(n)&&(n=0),n=parseInt(n,10),isNaN(r)&&(r=0),r=parseInt(r,10),isNaN(i)&&(i=1),i=parseInt(i,10),void 0===o&&(o="");var l=e.is(".sorted-asc")?-1:1;-1==r&&(l=-1),1==r&&(l=1);var u=e.parent().parent().parent().find("> tbody > tr").get();jQuery.each(u,function(e,a){var r;a.sortKey=(r=jQuery(a).children("td").eq(t+n)).find(".sort-key").text().toUpperCase()+" "+r.text().toUpperCase().trim()}),u.sort(function(e,t){let a,n;
1034return NOLISManager.Resultfilter.isValidDate(e.sortKey)&&NOLISManager.Resultfilter.isValidDate(t.sortKey)?(a=NOLISManager.Resultfilter.getUnixTime(e.sortKey),n=NOLISManager.Resultfilter.getUnixTime(t.sortKey)):NOLISManager.Resultfilter.isNumeric(e.sortKey)&&NOLISManager.Resultfilter.isNumeric(t.sortKey)?(a=Number(e.sortKey),n=Number(t.sortKey)):(a=e.sortKey,n=t.sortKey),a<n?-l:a>n?l:0}),jQuery.each(u,function(e,t){jQuery(a+" tbody").append(t),t.sortKey=null}),jQuery(a+" thead th").removeClass("sorted-asc sorted-desc");var d=jQuery("th").filter(":nth-child("+(t+1)+")");1==l?d.addClass("sorted-asc"):d.addClass("sorted-desc"),jQuery(a+" tbody td").removeClass("sorted").filter(":nth-child("+(t+1)+")").addClass("sorted");let c=jQuery("div.modul.resulttable");if(0<c.length&&c.get(0).scrollIntoView({behaviour:"smooth",block:"start",inline:"nearest"}),void 0!==document.body&&document.body.scrollIntoView(),""!=o){var m=e.parent().parent().parent().find("> tbody > tr."+o).get();jQuery.each(m,function(e,t){var a=jQuery(t);if(a.hasClass(o)){var n=a.attr("id"),r=jQuery("tr."+n);r.sort(function(e,t){var a=jQuery(e).find("td").eq(s).text().toUpperCase(),n=jQuery(t).find("td").eq(s).text().toUpperCase();return a.localeCompare(n)}),r.each(function(){jQuery(this).insertAfter(a),a=jQuery(this)})}})}0==i?(NOLISManager.Resultfilter.zebraRows(a+" tbody tr:even","row1","row2"),NOLISManager.Resultfilter.zebraRows(a+" tbody tr:odd","row2","row1")):(NOLISManager.Resultfilter.zebraRows(a+" tbody tr:visible:even","row1","row2"),NOLISManager.Resultfilter.zebraRows(a+" tbody tr:visible:odd","row2","row1"))},zebraRows:function(e,t,a){jQuery(e).removeClass(a).removeClass(t).addClass(t)},isValidDate:function(e){return e=e.trim(),timeRegex=/^([01]\d|2[0-3]):([0-5]\d)$/,dateEURegex=/^(0[1-9]|[12][0-9]|3[01])[\.\/](0[1-9]|1[0-2])[\.\/](19|20)\d{2}$/,timeRegex.test(e)||dateEURegex.test(e)},isNumeric:function(e){let t=Number(e);return!isNaN(t)&&""!==e},getUnixTime:function(e){e=e.trim(),timeRegex=/^([01]\d|2[0-3]):([0-5]\d)$/,dateEURegex=/^(0[1-9]|[12][0-9]|3[01])[\.\/](0[1-9]|1[0-2])[\.\/](19|20)\d{2}$/;let t=null;if(timeRegex.test(e))[stunden,minuten]=e.split(":"),t=new Date(0,0,0,stunden,minuten);else if(dateEURegex.test(e)){let a=e.includes(".")?".":"/";[tag,monat,jahr]=e.split(a),t=new Date(jahr,monat-1,tag)}return Math.floor(t.getTime()/1e3)}},NOLISManager.Navigation={resetSite:function(e,t,a){jQuery("#"+e).val(a),jQuery("#"+t).val("")}},NOLISManager.NavigatorMaps={loadJS:function(e,t,a){t="function"==typeof t?t:function(){},void 0===a&&(a=!1),a=Boolean(a),"function"==typeof NMap?(a&&console.log("NMap schon vorhanden"),t()):NOLISManager.Helper.loadScripts(["https://maps.nol-is.de/version/"+e+".js"],"",!0,a).done(function(){t()})},initMap:function(e){return void 0===window["map_"+e]&&void 0!==window["map_config_"+e]?window["map_"+e]=NMap(e,window["map_config_"+e]):void 0!==window["map_"+e]&&window["map_"+e].invalidateSize(),window["map_"+e]},invalidateSize:function(e){void 0!==window["map_"+e]&&window["map_"+e].invalidateSize()},callback_initialised:function(){window["map_"+this.options.container+"_loaded"]=!0},changeGeodata:function(e,t){void 0!==window["map_"+e]&&window["map_"+e].changeGeodata(t)},makePoint2Geojson:function(e,t,a,n,r,i,o){void 0===a&&(a=""),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i={}),void 0===o&&(o="");var s={type:"Feature",geometry:{}};return s.geometry.type="Point",s.geometry.coordinates=[e,t],s.properties={},s.properties.marker=!0,i.length>0&&(s.properties.icon={},i.iconUrl&&(s.properties.icon.iconUrl=i.iconUrl),i.iconSize&&(s.properties.icon.iconSize=i.iconSize),i.iconAnchor&&(s.properties.icon.iconAnchor=i.iconAnchor),i.popupAnchor&&(s.properties.icon.popupAnchor=i.popupAnchor),i.tooltipAnchor&&(s.properties.icon.tooltipAnchor=i.tooltipAnchor)),s.properties.name=a,""!=n&&(s.properties.description=n),s.properties.uri=r,""!=o&&(s.properties.location=o),s},changeAddress:async function(e){var t="";jQuery("#strasse").length>0&&(t=jQuery("#strasse").val());var a="";jQuery("#hnr").length>0&&(a=jQuery("#hnr").val());var n="";jQuery("#plz").length>0&&(n=jQuery("#plz").val());var r="";if(jQuery("#ort").length>0&&(r=jQuery("#ort").val()),""!=t&&""!=a&&""!=n)r="",NOLISManager.NavigatorMaps.initMap(e),NOLISManager.NavigatorMaps.changeGeocode(e,t,a,n,r,!1);else{var i="Adressdaten unvollständig.";1==jcms?await NAlert(i):alert(i)}},changeGeocodeFromAddress:function(e,t,a,n,r){var i="";t.length>0&&(i=t);var o="";a.length>0&&(o=a);var s="";n.length>0&&(s=n);var l="";r.length>0&&(l=r),""!=i&&""!=o&&""!=s?l&&(l=l.substring(0,3)):alert("Adressdaten unvollständig.")},changeGeocode:function(e,t,a,n,r,i){if(void 0!==window["map_"+e]){r&&(r=r.substring(0,3)),0!=i&&(i=!0);var o={};o.suggest=i,o.address={street:t,houseNumber:a,postalCode:n,city:r},window["map_"+e].changeGeocode(o)}},callback_georef_drag:function(e,t){},callback_georef_position:function(e,t){},callback_georef_elevation:function(e,t){},callback_georef_information_address:async function(e,t){var a=!0;1==e.match&&""==e.street&&(a=!1);var n=0,r=0;jQuery("#old_geo_wgs84_y").length>0&&(r=jQuery("#old_geo_wgs84_y").val()),jQuery("#old_geo_wgs84_x").length>0&&(n=jQuery("#old_geo_wgs84_x").val());var i="";i+='<div><div class="geo_angabe">Geo-Koordinaten (Pin):</div><div class="geo_eingabe">N '+parseFloat(e.y).toFixed(5)+", E "+parseFloat(e.x).toFixed(5)+"</div></div>",i+='<div><div class="geo_angabe">Geo-Koordinaten (gespeichert):</div><div class="geo_eingabe geo_eingabe_gespeichert">',i+=0==n?"Keine Geo-Koordinaten vorhanden.":"N "+parseFloat(r).toFixed(5)+", E "+parseFloat(n).toFixed(5),i+="</
1034div></div>",jQuery("#"+t+"_geo").html(i);var o="";if(o+="<span>Automatisch ermittelte Adresse (Pin):</span>",o+=a?'<div><span style="display: inline-block" id="inlinemap-auto-street">'+e.street+'</span>&nbsp;<span style="display: inline-block" id="inlinemap-auto-housenumber">'+e.houseNumber+"</span></div>":"<span>&nbsp;</span>",o+='<div><span style="display: inline-block" id="inlinemap-auto-postalcode">'+e.postalCode+'</span>&nbsp;<span style="display: inline-block" id="inlinemap-auto-city">'+e.city+"</span></div>",jQuery("#"+t+"_source").length>0&&jQuery("#"+t+"_source").html(o),jQuery("#map_resultjson_"+t).val(JSON.stringify(e)),window["map_resultjson_"+t]=e,1==e.match)jQuery("#"+t+"_statusanzeige").length>0&&(jQuery("#"+t+"_statusanzeige").removeClass("nicht_vorhanden"),jQuery("#"+t+"_statusanzeige").removeClass("vorhanden_warn"),jQuery("#"+t+"_statusanzeige").addClass("vorhanden"),jQuery("#"+t+"_statusanzeige").html('<i class="fas fa-check fa-fw"></i><span>vorhanden</span><span>(N '+parseFloat(e.y).toFixed(5)+", E "+parseFloat(e.x).toFixed(5)+")</span>")),jQuery("#geo_wgs84_y").length>0&&jQuery("#geo_wgs84_y").val(parseFloat(e.y).toFixed(9)),jQuery("#geo_wgs84_x").length>0&&jQuery("#geo_wgs84_x").val(parseFloat(e.x).toFixed(9)),jQuery("#"+t+"_geo_wgs84_y").length>0&&jQuery("#"+t+"_geo_wgs84_y").val(parseFloat(e.y).toFixed(9)),jQuery("#"+t+"_geo_wgs84_x").length>0&&jQuery("#"+t+"_geo_wgs84_x").val(parseFloat(e.x).toFixed(9)),jQuery("#"+t).trigger("georef:information",e);else if(0==e.suggest){var s="Es konnten leider keine Koordinaten automatisch ermittelt werden!\nBitte unter Geodaten manuell setzen.";1==jcms?await NAlert(s):alert(s)}var l="";if(l+="<span>Gespeicherte Adresse:</span>",jQuery("#strasse").length>0&&(l+="<span>"+jQuery("#strasse").val()+" "+jQuery("#hnr").val()+"</span>",l+="<span>"+jQuery("#plz").val()+" "+jQuery("#ort").val()+"</span>"),jQuery("#"+t+"_result").length>0&&jQuery("#"+t+"_result").html(l),!a||1!=jQuery("#strasse").length||1!=jQuery("#hnr").length||1!=jQuery("#plz").length||1!=jQuery("#ort").length||"object"!=typeof e||void 0===e.street||e.street.substring(0,3)==jQuery("#strasse").val().substring(0,3)&&e.houseNumber==jQuery("#hnr").val()&&e.postalCode==jQuery("#plz").val()&&e.city.substring(0,3)==jQuery("#ort").val().substring(0,3))jQuery("#"+t+"_warning").length>0&&(jQuery("#"+t+"_warning").html("&nbsp;"),jQuery("#"+t+"_warning").hide());else{var u="Adresse aktualisieren",d="jQuery('#strasse').val(window['map_resultjson_"+t+"'].street); jQuery('#hnr').val(window['map_resultjson_"+t+"'].houseNumber); jQuery('#plz').val(window['map_resultjson_"+t+"'].postalCode); jQuery('#ort').val(window['map_resultjson_"+t+"'].city);";d+=" var text='Die automatisch ermittelte Adresse wurde in die Adressfelder übernommen. Bitte speichern Sie die Änderungen.';";var c="";c+="<div>",c+="  <span>Der aktuell markierte Standort (Pin) entspricht nicht der gespeicherten Adresse.<br />Möchten Sie die automatisch ermittelte Adresse übernehmen?</span>",c+="  <br />",c+='  <span class="aktionsbox" title="'+u+'" onclick="'+(d+=" if (jcms==1) { NAlert(text); } else { alert(text); }")+'" id="navigator_sync_location_by_pin_button" style="margin-top: 5px;">',c+='    <span class="aktionsbox_in" style="width: auto;">'+u+"</span>",c+="  </span>",c+="</div>",jQuery("#"+t+"_warning").length>0&&(jQuery("#"+t+"_warning").show(),jQuery("#"+t+"_warning").html(c)),jQuery("#"+t+"_statusanzeige").length>0&&(jQuery("#"+t+"_statusanzeige").removeClass("vorhanden"),jQuery("#"+t+"_statusanzeige").removeClass("nicht_vorhanden"),jQuery("#"+t+"_statusanzeige").addClass("vorhanden_warn"),jQuery("#"+t+"_statusanzeige").html('<i class="fas fa-check fa-fw"></i><span>vorhanden</span><span>(Adressdaten stimmen nicht überein)</span>'))}},callback_draw_create:function(e,t){new Intl.NumberFormat("de-DE",{style:"decimal",useGrouping:!1,minimumFractionDigits:2,maximumFractionDigits:2}),jQuery("#map_resultjson_"+t).val(JSON.stringify(e)),window["map_resultjson_"+t]=e},callback_draw_modify:function(e,t){NOLISManager.NavigatorMaps.callback_draw_create(e,t)},callback_draw_loaded:function(e,t){NOLISManager.NavigatorMaps.callback_draw_create(e,t)}},NOLISManager.Result=NOLISManager.Helper.createClass(),NOLISManager.Result.prototype={code:0,message:null,data:null,ResultCodeEnum:Object.freeze({Undefined:0,Processing:102,OK:200,Created:201,BadRequest:400,Unauthorized:4
103401,Forbidden:403,NotFound:404,Locked:423,FailedDependency:424,InternalServerError:500,NotImplemented:501,ServiceUnavailable:503,Error:1e3,UnknownError:1001}),initialize:function(e){if(!e)return!1;this.code="code"in e?e.code:this.ResultCodeEnum.InternalServerError,this.message="message"in e?e.message:"",this.data="data"in e?e.data:null},getCode:function(){return this.code},getCodename:function(){return this.getCodenameByCode(this.code)},getMessage:function(){return this.message},getData:function(){return this.data},getCodenameByCode:function(e){for(var t in this.ResultCodeEnum)if(e==this.ResultCodeEnum[t])return t;return null},getResult:function(e){if("array"==e){var t=new Array;return t.code=this.code,t.message=this.message,t.data=this.data,t}return this},isOK:function(){return 200==this.code}},NOLISManager.Inlinekarte=NOLISManager.Helper.createClass(),NOLISManager.Inlinekarte.prototype={dividkarte:"portal_inlinekarte",objectname:"NOLISManagerInlinekarte",map_content_array:[],callback:null,callbackparamA:null,url2static:"",position:null,position_marker:0,position_follow:0,resizeTimer:null,lightbox:1,lightbox_object:null,lightboxOptions:{duration:0,autostart:!1,loop:!1,thumbnails:!1,buttons:!1,download:!1,description:!1,close:!1,closeIn:!1,closeColor:""},scrollparams:{offset:50},initialize:function(e,t,a,n,r){var i=this;this.karte_storage_clear(),this.lightbox=e,this.dividkarte=t,this.callback=a;var o=[];"object"==typeof n&&n instanceof Array&&(o=n),this.callbackparamA=o,1==this.lightbox&&jQuery(document).ready(function(){jQuery("#"+i.dividkarte).length>0&&jQuery("#"+i.dividkarte).remove()}),"object"==typeof r&&("string"==typeof r.objectname&&(i.objectname=r.objectname),"object"==typeof r.scrollparams&&(i.scrollparams=r.scrollparams),"string"==typeof r.portal&&(i.portal=r.portal))},karte_ajax:function(e){var t=this;if(e.length&&e.length>0?e.push({name:"objectname",value:t.objectname}):e.objectname=t.objectname,"string"==typeof t.portal&&(e.portal=t.portal),1==t.lightbox)if(null===t.lightbox_object){var a=t.lightboxOptions,n={};n.html='<div id="'+t.dividkarte+'" class="portal_inlinekarte" style="height: 100%;"></div>',n.loaded=function(){jQuery.post("/ajax/inlinekarte.html",e,function(e){jQuery("div#"+t.dividkarte).html(e),jQuery("div#"+t.dividkarte+" div.NOLISManagerInlinekarte").css({height:"100%"});var a=jQuery("div#cboxContent div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_poisuche:visible").outerHeight(!0);a?a+=2:a=0,jQuery("div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_mapcontainer").css({height:"calc(100% - "+a+"px)"}),jQuery("div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_poisuche input.NOLISinlineajaxkarte_poisuche_input").focus(),t.mapdata_projektion=jQuery("div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_map").data("projektion")}).fail(function(){})},n.removed=function(){t.karte_close()},t.lightbox_object=NLightbox.open([n],a)}else jQuery.post("/ajax/inlinekarte.html",e,function(e){jQuery("div#"+t.dividkarte).html(e),jQuery("div#"+t.dividkarte+" div.NOLISManagerInlinekarte").css({height:"100%"});var a=jQuery("div#cboxContent div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_poisuche:visible").outerHeight(!0);a?a+=2:a=0,jQuery("div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_mapcontainer").css({height:"calc(100% - "+a+"px)"}),jQuery("div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_poisuche input.NOLISinlineajaxkarte_poisuche_input").focus(),t.mapdata_projektion=jQuery("div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_map").data("projektion")}).fail(function(){});else jQuery.post("/ajax/inlinekarte.html",e,function(e){jQuery("div#"+t.dividkarte).html(e),null!=t.scrollparams&&"object"==typeof t.scrollparams&&(offset=50,t.scrollparams.offset&&(offset=t.scrollparams.offset),jQuery("html,body").animate({scrollTop:jQuery("div#"+t.dividkarte).offset().top-offset},1200)),jQuery("div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_poisuche input.NOLISinlineajaxkarte_poisuche_input").focus()}).done(function(){t.mapdata_projektion=jQuery("div.NOLISinlineajaxkarte."+t.objectname+" div.NOLISinlineajaxkarte_map").data("projektion")}).fail(function(){});NOLISManager.Helper.callback(this.callback,["karte_ajax"].concat(this.callbackparamA))},karte_close:function(){1==this.lightbox&&null!==this.lightbox_object&&(this.lightbox_object.close(),this.lightbox_object=null),this.karte_storage_clear(),NOLISManager.Helper.callback(this.callback,["karte_close"].concat(this.callbackparamA))},makeNavigatorLinksInline:function(e){var t=this,a=0,n=jQuery('div#nolis_content_site a.link_navigator[data-collect="1"], div#nolis_info a.link_navigator[data-collect="1"], body.objektinfo div#oi_container a.link_navigator[data-collect="1"]');n.length>0&&n.each(function(){if(void 0!==jQuery(this).attr("href")&&("poi"==jQuery(this).data("typ")||"pin"==jQuery(this).data("typ")||""!=jQuery(this).data("uuid"))){var e={};e.uuid=jQuery(this).data("uuid"),e.id=jQuery(this).data("id"),e.owner=jQuery(this).data("owner"),e.lon=jQuery(this).data("lon"),e.lat=jQuery(this).data("lat"),e.z=jQuery(this).data("z"),e.typ=jQuery(this).data("typ"),e.name=jQuery(this).data("name"),e.description=jQuery(this).data("description"),jQuery(this).attr("onclick","return false;"),jQuery(this).click(function(){t.karte_ajax({map_content_array:[e]})});var n=!1;jQuery("div#nolis_content_site").has(jQuery(this)).length&&(n=!0,jQuery("div#nolis_content_site div#more_infos").has(jQuery(this)).length&&(n=!1)),n&&("poi"!=jQuery(this).data("typ")&&"pin"!=jQuery(this).data("typ")||jQuery(this).is('div#nolis_content_site a.link_navigator[data-collect="1"]')&&(t.map_content_array=NOLISManager.Helper.addObject2ArrayUnique(t.map_content_array,e),a++))}}),1==e&&a>
10340&&(ahtml='<div class="managerbox">',ahtml+='<a href="javascript:" class="itemsinline">Alle Einträge dieser Seite in Karte anzeigen</a>',ahtml+="</div>",jQuery("div#nolis_content_site div.ergebnistext").after(ahtml),jQuery("a.itemsinline").click(function(){t.karte_ajax({map_content_array:t.map_content_array})})),NOLISManager.Helper.callback(this.callback,["makeNavigatorLinksInline"].concat(this.callbackparamA))},karte_poisuche:function(e){var t=!1;for(i=0;i<e.length&&("suchwort"===e[i].name&&e[i].value.length>2&&(t=!0),1!=t);i++);1==t&&(this.karte_ajax(e),NOLISManager.Helper.callback(this.callback,["karte_poisuche"].concat(this.callbackparamA)))},karte_resize:function(){jQuery("div.NOLISinlineajaxkarte."+this.objectname+" div.NOLISinlineajaxkarte_mapcontainer").length>0&&(jQuery(window).width()<600?jQuery("div.NOLISinlineajaxkarte."+this.objectname+" input.NOLISinlineajaxkarte_poisuche_input").attr("placeholder","Mehr finden"):jQuery("div.NOLISinlineajaxkarte."+this.objectname+" input.NOLISinlineajaxkarte_poisuche_input").attr("placeholder","Finden Sie interessante Orte und mehr"),"function"==typeof window["map_"+this.objectname+"_map"].invalidateSize&&window["map_"+this.objectname+"_map"].invalidateSize())},karte_initialised:function(e){1==this.lightbox&&e.invalidateSize()},karte_storage_save:function(e){sessionStorage.setItem("form-"+this.objectname,JSON.stringify(e))},karte_storage_save_moveend:function(e){sessionStorage.setItem("mapconfig-"+this.objectname,JSON.stringify(e))},karte_storage_check4load:function(){storageData=JSON.parse(sessionStorage.getItem("form-"+this.objectname)),null!=storageData&&(""!=storageData.suchwort||storageData.map_content_array.length>0)&&jQuery("div.NOLISinlineajaxkarte."+this.objectname+" a.NOLISinlineajaxkarte_a_schliessen").after('<a class="formbutton NOLISinlineajaxkarte_a_zurueck" href="javascript:'+this.objectname+'.karte_storage_load();"><i class="fa fa-arrow-left" aria-hidden="true"></i> Zurück</a>')},karte_storage_load:function(){storageData=JSON.parse(sessionStorage.getItem("form-"+this.objectname)),null!=storageData&&(storageConfigData=JSON.parse(sessionStorage.getItem("mapconfig-"+this.objectname)),""!=storageData.suchwort?(serializedArray=[],serializedArray.push({name:"backtostorage",value:1}),serializedArray.push({name:"selected_kommune",value:storageData.selected_kommune}),serializedArray.push({name:"suchwort",value:storageData.suchwort}),null!=storageConfigData&&(serializedArray.push({name:"kartenconfig_x",value:storageConfigData.x}),serializedArray.push({name:"kartenconfig_y",value:storageConfigData.y}),serializedArray.push({name:"kartenconfig_z",value:storageConfigData.z}),serializedArray.push({name:"kartenconfig_map",value:storageConfigData.map}),serializedArray.push({name:"kartenconfig_baselayer",value:storageConfigData.baselayer})),this.karte_poisuche(serializedArray)):storageData.map_content_array.length>0&&(storageData.backtostorage=1,storageData.suchwort="",storageData.kartenconfig_x=storageConfigData.x,storageData.kartenconfig_y=storageConfigData.y,storageData.kartenconfig_z=storageConfigData.z,storageData.kartenconfig_map=storageConfigData.map,storageData.kartenconfig_baselayer=storageConfigData.baselayer,this.karte_ajax(storageData)))},karte_storage_clear:function(){sessionStorage.removeItem("form-"+this.objectname),sessionStorage.removeItem("mapconfig-"+this.objectname)}},NOLISManager.SliderTeaser={responsive:function(e,t){if(void 0===NOLISManager.SliderTeaser.responsive.sliderArray&&(NOLISManager.SliderTeaser.responsive.sliderArray=[]),NOLISManager.Helper.isset(e)||(e=880),defaults={controls:!0,pager:!1,moveSlides:1,speed:1,mode:"fade",pause:6e3,auto:!0,responsive:!0,adaptiveHeight:!0},t=jQuery.extend(defaults,t),jQuery(window).width()<e){var a=jQuery("div.sliderteaserresponsive").length,n=0;a>0&&NOLISManager.SliderTeaser.responsive.sliderArray.length<1&&jQuery("div.sliderteaserresponsive").each(function(){var e=jQuery(this).children("div.sliderteaser_slide").length;e>1&&NOLISManager.SliderTeaser.responsive.sliderArray.length<e&&(NOLISManager.SliderTeaser.responsive.sliderArray[n]||(NOLISManager.SliderTeaser.responsive.sliderArray[n]=jQuery(this).bxSlider(t)),n++)})}else NOLISManager.SliderTeaser.responsive.sliderArray.length>0&&jQuery(NOLISManager.SliderTeaser.responsive.sliderArray).each(function(){this.destroySlider()}),NOLISManager.SliderTeaser.responsive.sliderArray.length=0}},NOLISManager.Snapshot={_iframe:function(e){return'<iframe src="'+e+'" seamless width="1100" height="5000" style="border:none;overflow:hidden;" onload="this.style.height=0; this.style.height=(this.contentWindow.document.body.scrollHeight+25)+\'px\';"></iframe>'},_openSelection:function(e){var t={};t.top=100+jQuery(window).scrollTop(),t.left=100,NOLISManager.OverForm.openSelectionHTML("isnapsh
1034ot",NOLISManager.Snapshot._iframe(e),{},"isnapshot",t)},preview:function(e,t,a,n,r){var i=jurl2cms+"inc/ajax/snapshot.php?act=preview&typ="+e+"&owner="+t+"&id="+a+"&person_owner="+n+"&person="+r;NOLISManager.Snapshot._openSelection(i)},add:function(e,t,a,n,r){NOLISManager.Ladebildschirm.init("Bitte warten ...<br />Daten werden ermittelt."),params={},params.act="add",params.typ=e,params.owner=t,params.id=a,params.person_owner=n,params.person=r,jQuery.ajax({url:jurl2cms+"inc/ajax/snapshot.php",type:"post",dataType:"json",data:params,beforeSend:function(){NOLISManager.Ladebildschirm.anzeigen()}}).done(function(i){var o=new NOLISManager.Result(i);if(o.isOK()){var s=o.getData();NOLISManager.Snapshot.add2list(e,t,a,n,r,s),NOLISManager.Snapshot.show(e,t,a,n,r,s),NOLISManager.Ladebildschirm.ausblenden(),setTimeout(function(){alert("Snapshot hinzugefügt!")},100)}else NOLISManager.Ladebildschirm.ausblenden(),setTimeout(function(){alert("Fehler beim hinzufügen eines Snapshots! ("+o.getCode()+": "+o.getMessage()+")")},100)}).always(function(){NOLISManager.Ladebildschirm.ausblenden()})},show:function(e,t,a,n,r,i){var o=jurl2cms+"inc/ajax/snapshot.php?act=show&typ="+e+"&owner="+t+"&id="+a+"&person_owner="+n+"&person="+r+"&snapid="+i;NOLISManager.Snapshot._openSelection(o)},add2list:function(e,t,a,n,r,i){jQuery("#snaphot_container div.nodata").length>0&&(jQuery("#snaphot_container div.nodata").hide(),jQuery("#snaphot_container div.data").append("<ul></ul>"));var o=new Date,s=o.getDay2Digits()+"."+o.getMonth2Digits()+"."+o.getFullYear()+" "+o.getHours2Digits()+":"+o.getMinutes2Digits()+" Uhr";jQuery("#snaphot_container div.data ul").prepend('<li id="id_'+i+'"><a href="#" onclick="NOLISManager.Snapshot.show(\''+e+"', '"+t+"', '"+a+"', '"+n+"', '"+r+"', '"+i+"'); return false;\">"+s+"</a></li>")}},NOLISManager.Favoriten={addFav:function(e,t,a,n,r){return NOLISManager.Favoriten._addFav(e,t,a,n,r,0)},addFavCMS:function(e,t,a,n){return NOLISManager.Favoriten._addFav(e,0,t,a,n,1,"NOLISManager.Favoriten.addFavCMSResult")},addFavCMSResult:async function(e){var t=new NOLISManager.Result(e);if(t.isOK()){var a=t.getData();0==jQuery("#favcms_container ul#favcms").length&&jQuery("#favcms_container").append('<ul id="favcms"></ul>');var n='<li id="fav_'+a.id+'">';n+='<span style="float: right; cursor: pointer;" title="Favorit entfernen" onclick="NOLISManager.Favoriten.deleteFavCMS('+a.id+", "+a.owner+');"><i class="fal fa-trash-can fa-fw text-light" aria-hidden="true"></i></span>',n+='<span style="float: right; cursor: pointer; margin-right: 5px;" title="Favorit bearbeiten" onclick="NOLISManager.Favoriten.editFavCMS('+a.id+", "+a.owner+');"><i class="fad fa-pen fa-fw" aria-hidden="true"></i></span>',n+='<a href="'+a.url+'"  title="'+a.description+'">'+a.title+"</a>",n+="</li>",jQuery("#favcms_container ul#favcms").append(n),await NAlert('"'+a.title+'" wurde der Favoriten-Liste hinzugefügt.',{header:"Hinweis",color:"blue"})}else await NAlert("Fehler beim Hinzufügen in die Favoriten-Liste ("+t.getCode()+": "+t.getMessage()+").")},_addFav:function(e,t,a,n,r,i,o){if(0===i)var s="/ajax/favoriten_add.html";else s=jurl2cms+"inc/ajax/favoriten_add.php";return jQuery.getJSON(s,{cms:i,medium:t,portal:e,url:a,title:n,description:r}).done(function(e){var t={code:0,message:null,data:null};e.id>0&&(t.code=200,t.message="OK",t.data=e);var a=[];a.push(new NOLISManager.Result(t)),NOLISManager.Helper.callback(o,a)}).fail(async function(e,t){await NAlert("Request failed: "+t)}),!1},deleteFavCMS:async function(e,t){if(frage=await NConfirm("Wollen Sie den Favoriteneintrag wirklich löschen?"),1==frage){var a=jurl2cms+"inc/ajax/favoriten_add.php";jQuery.getJSON(a,{cms:1,medium:0,act:"del",id:e,owner:t}).done(async function(t){var a=new NOLISManager.Result(t);if(a.isOK()){var n=jQuery("li#fav_"+e).remove().children("a").text();await NAlert('"'+n+'" wurde aus der Favoriten-Liste entfernt.',{header:"Hinweis",color:"blue"})}else await NAlert("Fehler beim Löschen aus der Favoriten-Liste ("+a.getCode()+": "+a.getMessage()+").")}).fail(async function(e,t){await NAlert("Request failed: "+t)})}},editFavCMS:function(e,t){if(0==jQuery("#favcms_container ul#favcms li#fav_"+e+" span#favspaninput_"+e).length){var a='<span id="favspaninput_'+e+'" style="display: block; margin: 5px 0 20px 0;">';a+='<input id="favinput_'+e+'" type="text" placeholder="Neue Bezeichnung eingeben" style="width: 190px;" />',a+='<span style="float: right; cursor: pointer; margin-top: 5px" title="Neue Bezeichnung speichern" onclick="NOLISManager.Favoriten.updateFavCMS('+e+", "+t+", jQuery('#favcms_container ul#favcms li#fav_"+e+" input#favinput_"+e+'\').val(), \'\');"><i class="fal fa-save fa-fw" aria-hidden="true"></i><span/>',a+="</span>",jQuery("#favcms_container ul#favcms li#fav_"+e).append(a)}else jQuery("#favcms_container ul#favcms li#fav_"+e+" span#favspaninput_"+e).remove()},updateFavCMS:function(e,t,a,n){var r=jurl2cms+"inc/ajax/favoriten_add.php";jQuery.getJSON(r,{cms:1,medium:0,act:"update",id:e,owner:t,title:a,description:n}).done(async function(t){var a=new NOLISManager.Result(t),n=a.getData();a.isOK()?(jQuery("#favcms_container ul#favcms li#fav_"+e+" span#favspaninput_"+e).remove(),jQuery("#favcms_container ul#favcms li#fav_"+e+" a").text(n.title)):await NAlert("Fehler beim Editieren in der Favoriten-Liste ("+
1034a.getCode()+": "+a.getMessage()+").")}).fail(async function(e,t){await NAlert("Request failed: "+t)})}},NOLISManager.Data2HTML={_makeInfobox:function(e,t,a,n=!0){void 0===a&&(a=0);var r="",o="information_notification";switch(e){case"error":r='role="alert" aria-live="assertive"',o="error_notification";break;case"success":r="",o="success_notification";break;case"attention":r="",o="attention_notification"}var s="<div "+r+' class="infobox '+o+' short">';if(s+='<div class="infobox_in">',s+='<div class="infotext">',1==n){for(s+="<ul>",i=0;i<t.length;i++)s+="<li>"+t[i]+"</li>";s+="</ul>"}else for(i=0;i<t.length;i++)i>0&&(s+="<br />"),s+=t[i];return s+="</div>",(s+="</div>")+"</div>"},_makeInfobox2:function(e,t,a,n=!0,r=[],o=""){void 0===a&&(a=0);var s="",l="information_notification",u="fad fa-info-circle";switch(e){case"error":s='role="alert" aria-live="assertive"',l="error_notification",u="fas fa-exclamation-circle";break;case"success":s="",l="success_notification",u="fad fa-check-circle";break;case"attention":s="",l="attention_notification",u="fad fa-exclamation-triangle"}var d="<div "+s+' class="infobox '+l+" short "+r.join(" ")+'" '+(""!=o?'id="'+o+'"':"")+">";if(d+='<div class="infobox_in">',d+='<div class="infoicon">',d+='<i class="'+u+'"></i>',d+="</div>",d+='<div class="infotext">',1==n){for(d+="<ul>",i=0;i<t.length;i++)d+="<li>"+t[i]+"</li>";d+="</ul>"}else for(i=0;i<t.length;i++)i>0&&(d+="<br />"),d+=t[i];return d+="</div>",(d+="</div>")+"</div>"},makeError:function(e,t){return NOLISManager.Data2HTML._makeInfobox("error",e,t)},makeTableZeileKopf:function(e){return""+'<tr><th colspan="2" class="kopf">'+e+"</th></tr>"},makeTableZeile:function(e,t,a){var n="th";return 2==a&&(n="td"),""+"<tr><"+n+">"+e+"</"+n+"><td>"+t+"</td></tr>"},_getTable:function(e,t,a,n){void 0===e&&(e="3"),void 0===a&&(a=""),void 0===n&&(n="");var r='<table id="'+n+'" class="nolis_table_style'+e+" "+a+'">';for(i=0;i<t.length;i++)1==t[i].kopf?r+=NOLISManager.Data2HTML.makeTableZeileKopf(t[i].label):r+=NOLISManager.Data2HTML.makeTableZeile(t[i].label,t[i].value,e);return r+"</table>"},getTableStyle1:function(e,t,a){return NOLISManager.Data2HTML._getTable(1,e,t,a)},getTableStyle2:function(e,t,a){return NOLISManager.Data2HTML._getTable(2,e,t,a)},getTableStyle3:function(e,t,a){return NOLISManager.Data2HTML._getTable(3,e,t,a)},getTableStyle10:function(e,t,a){void 0===t&&(t=""),void 0===a&&(a="");var n='<table id="'+a+'" class="nolis_table_style10 '+t+'">';if(e.caption&&(n+="<caption>"+e.caption+"</caption>"),e.head){for(n+="<thead>",n+='<tr class="kopf">',i=0;i<e.head;i++)n+="<th>"+e.head[i]+"</th>";n+="</tr>",n+="</thead>"}if(e.body){for(n+="<tbody>",i=0;i<e.body;i++){for(n+="<tr>",j=0;j<e.body[i];j++)n+="<td>"+e.body[i][j]+"</td>";n+="</tr>"}n+="</tbody>"}return n+"</table>"}},NOLISManager.Onlineservices={addStat:function(e,t,a,n){var r={};r.typ=e,r.owner=t,r.id=a,r.portal=n,jQuery.ajax({url:"/ajax/onlineservice_addstat.html",type:"post",dataType:"json",data:r})}},NOLISManager.WebPush={validateSettings:function(e){try{if("string"!=typeof e.name)return null;if("string"!=typeof e.privacy)return null;"object"==typeof e.channels||e.channels instanceof Array||(e.channels=[]),"string"!=typeof e.image&&(e.image=""),"number"!=typeof e.showafterseconds&&(e.showafterseconds=-1),("string"!=typeof e.pushbutton||""!=e.pushbutton&&jQuery("#"+e.pushbutton).length<1)&&(e.pushbutton="")}catch(e){return null}return e},init:function(e){if(null==(e=NOLISManager.WebPush.validateSettings(e)))return null;jQuery.ajax({url:"https://webpush.nol-is.de/static/webpush.js",dataType:"script",cache:!0,crossDomain:!0,success:function(){void 0===window.npush&&(window.npush=new NPush({subscribe:"/subscribe/",name:e.name,privacy:e.privacy,channels:e.channels,image:e.image})),window.npush.init(function(){e.pushbutton&&jQuery("#"+e.pushbutton).click(function(){window.npush.dialog(!0)}),e.showafterseconds>=0&&(window.npush.isActive()||(e.showafterseconds>0?setTimeout(function(){window.npush.dialog(!0)},1e3*e.showafterseconds):window.npush.dialog(!0)))})}})},show:function(){void 0!==window.npush&&window.npush.dialog(!0)},hide:function(){void 0!==window.npush&&window.npush.dialog(!1)}},NOLISManager.ExtraContent={individuellerEC:function(e,t){1==t?(jQuery("#"+e+"_ueberschrift").val(""),jQuery("#"+e+"_pos").val(""),jQuery("#"+e+"_zugeklappt").val(-1),jQuery("#"+e+"_ec_delete").hide(),jQuery("tr.sub-row.einstellungen-"+e).hide()):(jQuery("#"+e+"_ec_delete").show(),jQuery("tr.sub-row.einstellungen-"+e).show(),jQuery("#"+e+"_ueberschrift").prop("readonly",!1),jQuery("#"+e+"_pos").prop("readonly",!1),jQuery('input
1034:radio[name="'+e+'_zugeklappt_dummy"]').prop("disabled",!1))},changeLayout:function(){let e=jQuery("div#more_infos");if(e.length>0){let t=this._getExtraContentData();if(t.length>0){let a=jQuery('<div id="more_infos_tabmenu"></div>'),n=jQuery('<div class="tabmenu-tablist" role="tablist" aria-label="Zusatzinformationen"></div>'),r=jQuery('<div class="tabmenu-tabpanel"></div>');t.forEach(function(e,t){let a="";"object"==typeof e.sprungmarken&&0!==Object.keys(e.sprungmarken).length&&(a=Object.entries(e.sprungmarken).map(([e,t])=>`${e}="${t}"`).join(" "));let i=jQuery(`<button class="tabmenu-tablist-button ${e.addClass}" aria-selected="false" aria-controls="tabpanel_${t}" role="tab" tabindex="-1" ${a}>${e.icon}<span>${e.titel}</span></button>`);0==t&&(i.addClass("tabmenu-tablist-button-active").removeAttr("tabindex"),i.first().attr("aria-selected","true")),i.click(function(){let e=jQuery(this);e.siblings().removeClass("tabmenu-tablist-button-active"),e.addClass("tabmenu-tablist-button-active"),e.siblings().attr("aria-selected","false").attr("tabindex","-1"),e.attr("aria-selected","true"),e.removeAttr("tabindex"),jQuery("div#more_infos_tabmenu div.tabmenu-tabpanel-item").removeClass("tabmenu-tabpanel-item-active"),jQuery("div#tabpanel_"+t).addClass("tabmenu-tabpanel-item-active")}),n.append(i);let o=jQuery(`<div id="tabpanel_${t}" class="tabmenu-tabpanel-item ${e.addClass}" role="tabpanel" aria-label="${e.titel}">${e.inhalt}</div>`);0==t&&o.addClass("tabmenu-tabpanel-item-active"),r.append(o)}),n.on("keydown",function(e){let t=e.key,a=["ArrowRight","ArrowDown"];if(a.includes(t)||["ArrowLeft","ArrowUp"].includes(t)){e.preventDefault();let n,r=jQuery(this).find(".tabmenu-tablist-button-active");a.includes(t)?(n=r.next(".tabmenu-tablist-button"),0===n.length&&(n=jQuery(this).find(".tabmenu-tablist-button").first())):(n=r.prev(".tabmenu-tablist-button"),0===n.length&&(n=jQuery(this).find(".tabmenu-tablist-button").last())),n.click(),n.focus()}}),jQuery(".nolis-toc li a").click(function(){let e=jQuery(this).attr("href");jQuery("[data-scrollto], [data-scrollto-normal], [data-scrollto-ls]").filter(function(){for(let t of this.attributes)if(t.name.startsWith("data-scrollto")&&t.value===e.substring(1))return!0;return!1}).click()}),a.append(n),a.append(r),a.insertAfter(e),e.remove()}}},_getExtraContentData:function(){let e=[];return jQuery("div#more_infos div.managerbox").each(function(){let t=jQuery(this).find(".manager_titel").text(),a=jQuery(this).find(".managerboxmain").html(),n=jQuery(this).attr("class").split(/\s+/),r="",i="",o={};n.includes("aufgabe")&&(r="aufgabe",i='<i class="fa-regular fa-file-lines"></i>'),n.includes("aufgabe2")&&(r="aufgabe2",i='<i class="fa-regular fa-file-lines"></i>'),n.includes("link")&&(r="link",i='<i class="fa-regular fa-link"></i>'),n.includes("ansprechpartner")&&(r="ansprechpartner",i='<i class="fa-regular fa-comments"></i>'),n.includes("amt")&&(r="amt",i='<i class="fa-regular fa-sitemap"></i>'),n.includes("behoerde")&&(r="behoerde",i='<i class="fa-regular fa-person-walking-arrow-right"></i>'),(n.includes("dokument")||n.includes("dokument_recht")||n.includes("dokument_zeichnung")||n.includes("dokument_legende")||n.includes("dokument_festsetzung")||n.includes("dokument_vorschrift")||n.includes("dokument_begruendung")||n.includes("dokument_umwelt")||n.includes("dokument_ausschreibung"))&&(r="dokument",i='<i class="fa-regular fa-file-lines"></i>'),n.includes("formular")&&(r="formular",i='<i class="fa-regular fa-file-lines"></i>'),n.includes("lokalitaet")&&(r="lokalitaet",i='<i class="fa-regular fa-buildings"></i>'),n.includes("verein")&&(r="verein",i='<i class="fa-regular fa-users"></i>'),n.includes("termin")&&(r="termin",i='<i class="fa-regular fa-calendar-range"></i>'),n.includes("satzung")&&(r="satzung",i='<i class="fa-regular fa-section"></i>'),n.includes("os-angebote")&&(r="os-angebote",i='<i class="fa-regular fa-pen-to-square"></i>'),jQuery(this).find("[data-scrollto]").length>0&&(o["data-scrollto"]=jQuery(this).find("[data-scrollto]").attr("data-scrollto")),jQuery(this).find("[data-scrollto-normal]").length>0&&(o["data-scrollto-normal"]=jQuery(this).find("[data-scrollto-normal]").attr("data-scrollto-normal")),jQuery(this).find("[data-scrollto-ls]").length>0&&(o["data-scrollto-ls"]=jQuery(this).find("[data-scrollto-ls]").attr("data-scrollto-ls"));let s={titel:t,inhalt:a,icon:i,addClass:r,sprungmarken:o};e.push(s)}),e}},NOLISManager.SocailMediaWall={masonry:{},init:function(e){const t=document.getElementById(e);window.addEventListener("load",()=>{this.masonry=new Masonry(t,{itemSelector:".np-socail-media-item",columnWidth:".np-socail-media-item",percentPosition:!0,gutter:24})})}
1034,showFullArticle:function(e){const t=jQuery(e),a=t.closest(".np-socail-media-item");t.remove(),a.toggleClass("np-socail-media-item-expanded"),this.masonry.layout()}},NOLISManager.KI_CMS={spinner_class:"fas fa-sparkles fa-beat",spinner_text:"Bitte warten ...<br />Daten werden ermittelt.",nolis_modulid_current:jnolis_modulid_current,getSpellingCheck:function(e,t=null,a=null,n=null,r=null){"function"!=typeof n&&(n=null);const i=new FormData,o=null!==r&&r.hasOwnProperty("post")?r:NOLISManager.API.getClone();if("object"==typeof a&&a)for(const[e,t]of Object.entries(a))i.append(e,t);return e&&e.length&&i.append("text",e),t&&t instanceof File&&i.append("file",t),i.append("nolis_modulid_current",this.nolis_modulid_current),o.post("ki/tools/spellingcheck",i,{},n)},getLanguages4Translate:function(e=null){"function"!=typeof chunkCallback&&(chunkCallback=null);const t=new FormData,a=null!==e&&e.hasOwnProperty("post")?e:NOLISManager.API.getClone();return t.append("nolis_modulid_current",this.nolis_modulid_current),a.setRequestCacheTime(600),a.get("ki/tools/translation/0/languages",t,{})},getTranslation:function(e,t,a=null,n=null){"function"!=typeof a&&(a=null);const r=new FormData,i=null!==n&&n.hasOwnProperty("post")?n:NOLISManager.API.getClone();return t&&t.length&&r.append("text",t),e&&e.length&&r.append("code",e),r.append("nolis_modulid_current",this.nolis_modulid_current),i.get("ki/tools/translation/0/translate",r,{},a)},getTags:function(e,t,a=null,n=null){const r=new FormData,i=null!==n&&n.hasOwnProperty("post")?n:NOLISManager.API.getClone();if("object"==typeof t&&t)for(const[e,a]of Object.entries(t))r.append(e,a);e&&e.length&&r.append("text",e),a&&a instanceof File&&r.append("file",a),r.append("nolis_modulid_current",this.nolis_modulid_current);const o=jQuery.Deferred();return i.post("ki/tools/tags",r,{},null).then(e=>{o.resolve(e)}).catch(e=>{o.reject(e)}),o},getSummary:function(e,t,a=null,n=null,r=null){"function"!=typeof n&&(n=null);const i=new FormData,o=null!==r&&r.hasOwnProperty("post")?r:NOLISManager.API.getClone();if("object"==typeof t&&t)for(const[e,a]of Object.entries(t))i.append(e,a);e&&e.length&&i.append("text",e),a&&a instanceof File&&i.append("file",a),i.append("nolis_modulid_current",this.nolis_modulid_current);const s=jQuery.Deferred();return o.post("ki/tools/summary",i,{},n).then(e=>{s.resolve(e)}).catch(e=>{s.reject(e)}),s},getTeaser:function(e,t,a=!1,n=null,r=null){const i=new FormData,o=null!==r&&r.hasOwnProperty("post")?r:NOLISManager.API.getClone();if("object"==typeof t&&t)for(const[e,a]of Object.entries(t))i.append(e,a);e&&e.length&&i.append("text",e),n&&n instanceof File&&i.append("file",n),1==a&&i.append("hashtags","true"),i.append("nolis_modulid_current",this.nolis_modulid_current);const s=jQuery.Deferred();return o.post("ki/tools/teaser",i,{},null).then(e=>{s.resolve(e)}).catch(e=>{s.reject(e)}),s},getImageClassify:function(e,t,a=null,n=null){const r=new FormData,i=null!==n&&n.hasOwnProperty("post")?n:NOLISManager.API.getClone();if("object"==typeof t&&t)for(const[e,a]of Object.entries(t))r.append(e,a);e&&e.length&&r.append("path",text),a&&a instanceof File&&r.append("file",a),r.append("nolis_modulid_current",this.nolis_modulid_current);const o=jQuery.Deferred();return i.post("ki/tools/imageclassify",r,{},chunkCallback).then(e=>{o.resolve(e)}).catch(e=>{o.reject(e)}),o},getImageDescription:function(e="",t={},a=null,n=null,r=null){"function"!=typeof n&&(n=null);const i=new FormData,o=null!==r&&r.hasOwnProperty("post")?r:NOLISManager.API.getClone();if("object"==typeof t&&t)for(const[e,a]of Object.entries(t))i.append(e,a);e&&e.length&&i.append("path",text),a&&a instanceof File&&i.append("file",a),i.append("nolis_modulid_current",this.nolis_modulid_current);const s=jQuery.Deferred();return o.post("ki/tools/imagedescription",i,{},n).then(e=>{s.resolve(e)}).catch(e=>{s.reject(e)}),s},getLeichteSprache:function(e,t,a=null,n=null,r=null){"function"!=typeof n&&(n=null);const i=new FormData,o=null!==r&&r.hasOwnProperty("post")?r:NOLISManager.API.getClone();if("object"==typeof t&&t)for(const[e,a]of Object.entries(t))i.append(e,a);e&&e.length&&i.append("text",e),a&&a instanceof File&&i.append("file",a),i.append("nolis_modulid_current",this.nolis_modulid_current);const s=jQuery.Deferred();return o.post("ki/tools/leichtesprache",i,{},n).then(e=>{s.resolve(e)}).catch(e=>{s.reject(e)}),s},getTags4Schlagworte:function(e,t,a){NOLISManager.Ladebildschirm.init(this.spinner_text,this.spinner_class),NOLISManager.Ladebildschirm.anzeigen();var n=this.getTags(t,a);n.done(async function(t){var a=new NOLISManager.Result(t);if(a.isOK()){var n=a.getData();if(jQuery("#"+e).length>0&&"tags"in n&&n.tags instanceof Array){var r=jQuery("#"+e).val().split(",").map(e=>e.trim()).filter(e=>""!==e),i=[...new Set([...r,...n.tags])];jQuery("#"+e).val(i.join(", ")),jQuery("#"+e).keyup()}else jQuery("#"+e).length>0?await NAlert("KI-Antwort konnte nicht gelesen werden."):await NAlert('Container "'+e+'" nicht vorhanden.')}else await NAlert(a.getMessage())}),n.always(function(){NOLISManager.Ladebildschirm.ausblenden()})},getSummary4Anreisser:function(e,t,a){NOLISManager.Ladebildschirm.init(this.spinner_text,this.spinner_class),NOLISManager.Ladebildschirm.anzeigen();var n=this.getSummary(t,a);n.done(async function(t){var a=new NOLISManager.Result(t);if(a.isOK()){var n=a.getData();jQuery("#"+e).length>0&&"summary"in n&&"string"==typeof n.summary?(jQuery("#"+e).data("old",jQuery("#"+e).val()),jQuery("#"+e).val(n.summary)):jQuery("#"+e).length>0?await NAlert("KI-Antwort konnte nicht gelesen werden."):await NAlert('Container "'+e+'" nicht vorhanden.')}else await NAlert(a.getMessage())}),n.always(function(){NOLISManager.Ladebildschirm.ausblenden()})},getTeaser4Anreisser:function(e,t,a){NOLISManager.Ladebildschirm.init(this.spinner_text,this.spinner_class),NOLISManager.Ladebildschirm.anzeigen();var n=this.getTeaser(t,a);n.done(async function(t){var a=new NOLISManager.Result(t);if(a.isOK()){var n=a.getData();jQuery("#"+e).length>0&&"teaser"in n&&"string"==typeof n.teaser?(jQuery("#"+e).data("old",jQuery("#"+e).val()),jQuery("#"+e).val(n.teaser),jQuery("#"+e).keyup()):jQuery("#"+e).length>0?await NAlert("KI-Antwort konnte nicht gelesen werden."):await NAlert('Container "'+e+'" nicht vorhanden.')}else await NAlert(a.getMessage())}),n.always(function(){NOLISManager.Ladebildschirm.ausblenden()})},analyzeFormdata:function(e){const t=new FormData,a=NOLISManager.API.getClone();return e&&e.length&&t.append("vorgang_json_string",e),t.append("nolis_modulid_current",this.nolis_modulid_current),a.post("ki/tools/formdata",t,{},null)}},NOLISManager.ToDo={add:function(e,t,a,n,r,i,o,s,l,u,d){},update:function(e,t,a,n,r,i,o,s,l,u,d,c,m){},delete:function(e,t){}},NOLISManager.API={},NOLISManager.Typewriter={_dataname:"nolistypewriterdataID",_states:{},write:async function(e,t,a=20,n=!1,r=null,i=null,o=null){await new Promise((s,l)=>{!e instanceof jQuery||1>e.length?l():setTimeout(()=>{if(!e.data(this._dataname)){const t=Date.now().toString(36)+Math.random().toString(36).substring(2);e.data(this._dataname,t),this._states[t]={text:"",buffer:"",isTyping:!1,finalCall:!1,aborted:!1,markdown:"function"==typeof window.markdownit?window.markdownit({linkify:!0}):null}}state=this._states[e.data(this._dataname)],state.buffer+=t,state.aborted=o,state.finalCall=n,"object"==typeof state.markdown&&null!==state.markdown&&state.markdown.disable(["code","fence","hr"]),1!=state.isTyping&&1!=state.aborted?(state.isTyping=!0,(async()=>{for(counter=0;0<state.buffer.length;){if(!0===state.aborted){"function"==typeof r&&r(),e.data(this._dataname,null),state.isTyping=!1;break}const t=state.buffer.charAt(0);
1034state.buffer=state.buffer.substring(1),state.text+=t,e.is("textarea")||e.is("input")?e.is("textarea")?e.get(0).innerHTML=NOLISManager.String.stripTags(state.markdown.render(state.text)):e.get(0).value=NOLISManager.String.stripTags(state.markdown.render(state.text)):e.get(0).innerHTML=state.markdown.render(state.text),"function"==typeof i&&0==counter%60&&i(),a=!1===state.finalCall?Math.max(1,Math.min(50,Math.floor(2e3/state.buffer.length))):20,await new Promise(e=>setTimeout(e,a)),counter++}state.isTyping=!1,!0===state.finalCall&&("function"==typeof i&&i(),"function"==typeof r&&r(),e.data(this._dataname,null)),s()})()):s()},2)}).catch(e=>{console.warn("NOLISManager Typewriter aborted: ",e)})}},NOLISManager.recorder=function(){let e=null,t=null,a=!1,n=!1,r=null,i=null,o=null,s=!1,l=null,u=!1,d=null,c=5,m=800,h=null;const p={WEBM:"audio/webm",WAV:"audio/wav",MP4:"video/mp4"},g=function(){if(!d||!d.isActive)return;d.analyser.getByteTimeDomainData(d.dataArray);let e=0;for(let t=0;t<d.dataArray.length;t++){const a=(d.dataArray[t]-128)/128;e+=a*a}const t=Math.sqrt(e/d.dataArray.length);if(Math.round(100*t)<c)if(d.silenceStart){const e=Date.now()-d.silenceStart;(!0===d.hadSpeech&&e>=m||e>=5e3)&&(y(),_().catch(e=>{console.error("Error stopping recording:",e)}))}else d.silenceStart=Date.now();else d.silenceStart=null,d.hadSpeech=!0,s=!0},y=function(){d&&(d.isActive=!1,d.intervalId&&clearInterval(d.intervalId),d.source&&d.source.disconnect(),d.audioContext&&"closed"!==d.audioContext.state&&d.audioContext.close().catch(console.error),d=null)},_=function(){return new Promise((a,n)=>{i instanceof Array&&null!==t||n(!1),y(),e.stop(),r.getAudioTracks()[0].stop(),t=null,l.then(()=>{i&&i.length&&(o=new Blob(i,{type:e.mimeType}),i=null),a(!0)})}).then(e=>("function"==typeof h&&h(o,s),!0))};getWavBytes=function(e,t){const a=t.isFloat?Float32Array:Uint16Array,n=e.byteLength/a.BYTES_PER_ELEMENT,r=f(Object.assign({},t,{numFrames:n})),i=new Uint8Array(r.length+e.byteLength);return i.set(r,0),i.set(new Uint8Array(e),r.length),i};const f=function(e){const t=e.numFrames,a=e.numChannels||2,n=e.sampleRate||44100,r=e.isFloat?4:2,i=e.isFloat?3:1,o=a*r,s=n*o,l=t*o,u=new ArrayBuffer(44),d=new DataView(u);let c=0;function m(e){for(let t=0;t<e.length;t++)d.setUint8(c+t,e.charCodeAt(t));c+=e.length}function h(e){d.setUint32(c,e,!0),c+=4}function p(e){d.setUint16(c,e,!0),c+=2}return m("RIFF"),h(l+36),m("WAVE"),m("fmt "),h(16),p(i),p(a),h(n),h(s),p(o),p(8*r),m("data"),h(l),new Uint8Array(u)};return{_init:function(e,t,r){let i=p.WEBM;return 1==t&&(i=p.MP4),window&&window.navigator&&window.navigator.mediaDevices?(n=e,a=t,"object"==typeof r&&Object.keys(r).length>0&&("stopOnSilence"in r&&(u=r.stopOnSilence),"silenceThreshold"in r&&(c=r.silenceThreshold),"silenceDuration"in r&&(m=r.silenceDuration),"onStopCallback"in r&&(h=r.onStopCallback)),this):null},record:function(){return!(i instanceof Array||!0===t)&&new Promise((o,s)=>{(!1===n&&!1===a?void(e=null):new Promise((t,o)=>{navigator.mediaDevices.getUserMedia({audio:n,video:a}).then(a=>{r=a,r?(e=new MediaRecorder(r),l=new Promise((t,a)=>{e.ondataavailable=e=>{i instanceof Array?(i.push(e.data),t()):a()}}),e.onstop=e=>{y()},!0===u&&n&&function(e){try{d={audioContext:new(window.AudioContext||window.webkitAudioContext),source:null,analyser:null,dataArray:null,silenceStart:null,isActive:!1,hadSpeech:!1},d.source=d.audioContext.createMediaStreamSource(e),d.analyser=d.audioContext.createAnalyser(),d.analyser.fftSize=2048,d.source.connect(d.analyser),d.dataArray=new Uint8Array(d.analyser.frequencyBinCount),d.isActive=!0,d.intervalId=setInterval(g,100)}catch(e){console.error("Error initializing silence detection:",e),d=null}}(a),t()):(window.console&&console.error("Error accessing microphone: NO STREAM",r),o())}).catch(e=>{window.console&&console.error("Error accessing microphone:",e),o()})})).then(()=>{if(!e)return!1;i=[],e.start(),t=!0,o(!0)}).catch(()=>{s(!1)})})},pause:function(){return i instanceof Array&&!0===t&&(e.pause(),t=!1,y(),i=null,!0)},stop:_,file:async function(t,n){if(("string"!=typeof t||1>t.length)&&(t=e.mimeType),null===o)return null;if(1!=jQuery.grep(Object.values(p),(e,a)=>-1<t.indexOf(e)).length)return null;if(!1===a&&-1<t.indexOf("video"))return null;let r=null;if(t===e.mimeType)r=o;else if(-1<t.indexOf("audio")){const e=new(window.AudioContext||window.webkitAudioContext);let t=await e.decodeAudioData(await o.arrayBuffer());0<n&&(t=function(e,t){const a=new AudioBuffer({length:e.length,numberOfChannels:e.numberOfChannels,sampleRate:e.sampleRate});for(let n=0;n<e.numberOfChannels;n+=1){const r=e.getChannelData(n),i=a.getChannelData(n);for(let e=0;e<r.length;e+=1)i[e]=r[e]*parseInt(t)}return a}(t,n)),r=function(e){let t=[],a=0,n=0;for(let r=0;r<e.numberOfChannels;r++)t.push(e.getChannelData(r)),a+=t[r].length,0==r&&(n=t[r].length);const r=new Float32Array(a);for(let a=0,i=0;a<n;a++,i+=e.numberOfChannels)for(let n=0;n<e.numberOfChannels;n++)r[i+n]=t[n][a];const i=getWavBytes(r.buffer,{isFloat:!0,numChannels:e.numberOfChannels,sampleRate:48e3});return new Blob([i],{type:"audio/wav"})}(t)}return r},mimes:()=>p}},NOLISManager.mediaRecorder=function(e,t,a){return(0!=e||0!=t)&&(!1!==this._init(e,t,a)&&this)},Object.assign(NOLISManager.mediaRecorder.prototype,NOLISManager.recorder()),NOLISManager.rating={rate:async function(e,t={},a=null){if("string"!=typeof e||1>e.length)return void console.error("NOLISManager.rating.rate: No valid endpoint provided");
1034if("function"!=typeof window.markdownit)return void console.error("NOLISManager.rating.rate: markdownit library is required but not found");NOLISManager.Ladebildschirm.init(),NOLISManager.Ladebildschirm.anzeigen();let n=await NOLISManager.API.get(e,t);if(n=new NOLISManager.Result(n),!n.isOK())return void NAlert("Fehler beim Abrufen der Daten für die KI-Bewertung");const r=await n.getData(),i={relevanz:"relevanz-score"in r?r["relevanz-score"]:0,verstaendlichkeit:"verstaendlichkeits-score"in r?r["verstaendlichkeits-score"]:0,vollstaendigkeit:"vollstaendigkeits-score"in r?r["vollstaendigkeits-score"]:0,handlungsklarheit:"handlungsklarheits-score"in r?r["handlungsklarheits-score"]:0,gesamt:"gesamt-score"in r?r["gesamt-score"]:0,staerken:"staerken"in r?r.staerken:"",schwaechen:"schwaechen"in r?r.schwaechen:"",empfehlung:"empfehlung"in r?r.empfehlung:""};let o;o="function"==typeof a&&null!==a?a(i):NOLISManager.rating.buildHTML(i),NOLISManager.OverForm.openSelectionHTML("ai_rating",o,{width:"40rem",createBackground:!1}),NOLISManager.Ladebildschirm.ausblenden()},buildHTML:function(e){const t=new markdownit({linkify:!0});let a="";return a+='<div class="ai-rating-box mt-small">',a+='  <div class="ai-rating-item blue">',a+="    <h3>Relevanz</h3>",a+='    <span class="mt-xs">'+e.relevanz+"/10</span>",a+='    <meter value="'+e.relevanz+'" min="0" max="10" low="4" high="7" optimum="10"></meter>',a+="  </div>",a+='  <div class="ai-rating-item green">',a+="    <h3>Verständlichkeit</h3>",a+='    <span class="mt-xs">'+e.verstaendlichkeit+"/10</span>",a+='    <meter value="'+e.verstaendlichkeit+'" min="0" max="10" low="4" high="7" optimum="10"></meter>',a+="  </div>",a+='  <div class="ai-rating-item orange">',a+="    <h3>Vollständigkeit</h3>",a+='    <span class="mt-xs">'+e.vollstaendigkeit+"/10</span>",a+='    <meter value="'+e.vollstaendigkeit+'" min="0" max="10" low="4" high="7" optimum="10"></meter>',a+="  </div>",a+='  <div class="ai-rating-item red">',a+="    <h3>
1034Handlungsklarheit</h3>",a+='    <span class="mt-xs">'+e.handlungsklarheit+"/10</span>",a+='    <meter value="'+e.handlungsklarheit+'" min="0" max="10" low="4" high="7" optimum="10"></meter>',a+="  </div>",a+='  <div class="ai-rating-item full-width purple">',a+="    <h3>Gesamtbewertung</h3>",a+='    <span class="mt-xs">'+e.gesamt+"/10</span>",a+='    <meter value="'+e.gesamt+'" min="0" max="10" low="4" high="7" optimum="10"></meter>',a+="  </div>",a+="</div>",a+='<div class="ai-rating-details green">',a+="  <h4>Stärken</h4>",a+='  <div class="ai-rating-details-content">',a+="    <p>"+t.render(e.staerken)+"</p>",a+="  </div>",a+="</div>",a+='<div class="ai-rating-details red">',a+="  <h4>Schwächen</h4>",a+='  <div class="ai-rating-details-content">',a+="    <p>"+t.render(e.schwaechen)+"</p>",a+="  </div>",a+="</div>",a+='<div class="ai-rating-details blue">',a+="  <h4>Empfehlungen zur Verbesserung</h4>",a+='  <div class="ai-rating-details-content">',a+="    <p>"+t.render(e.empfehlung)+"</p>",a+="  </div>",a+="</div>",a}},Date.prototype.getMonth2Digits=function(){return(this.getMonth()+1<10?"0":"")+(this.getMonth()+1)},Date.prototype.getDay2Digits=function(){return(this.getDate()<10?"0":"")+this.getDate()},Date.prototype.getHours2Digits=function(){return(this.getHours()<10?"0":"")+this.getHours()},Date.prototype.getMinutes2Digits=function(){return(this.getMinutes()<10?"0":"")+this.getMinutes()},Date.prototype.getSeconds2Digits=function(){return(this.getSeconds()<10?"0":"")+this.getSeconds()};
1035var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};
1036$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
1037$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");
1038var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};
1039$jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
1040$jscomp.polyfillIsolated=function(a,b,c,d){var e=a.split(".");a=1===e.length;d=e[0];d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var g=e[f];g in d||(d[g]={});d=d[g]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&($jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+e,e=$jscomp.propertyToPolyfillSymbol[e],
1041$jscomp.defineProperty(d,e,{configurable:!0,writable:!0,value:b})))};$jscomp.FORCE_POLYFILL_PROMISE=!1;
1042$jscomp.polyfill("Promise",function(a){function b(){this.batch_=null}function c(a){return a instanceof e?a:new e(function(b,c){b(a)})}if(a&&!$jscomp.FORCE_POLYFILL_PROMISE)return a;
1042b.prototype.asyncExecute=function(a){if(null==this.batch_){this.batch_=[];var b=this;this.asyncExecuteFunction(function(){b.executeBatch_()})}this.batch_.push(a)};var d=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(a){d(a,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=
1043this.batch_;this.batch_=[];for(var b=0;b<a.length;++b){var c=a[b];a[b]=null;try{c()}catch(l){this.asyncThrow_(l)}}}this.batch_=null};b.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var e=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var b=this.createResolveAndReject_();try{a(b.resolve,b.reject)}catch(k){b.reject(k)}};e.prototype.createResolveAndReject_=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=!1;
1044return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};e.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof e)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var b=null!=a;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};e.prototype.resolveToNonPromiseObj_=function(a){var b=void 0;try{b=a.then}catch(k){this.reject_(k);return}"function"==typeof b?
1045this.settleSameAsThenable_(b,a):this.fulfill_(a)};e.prototype.reject_=function(a){this.settle_(2,a)};e.prototype.fulfill_=function(a){this.settle_(1,a)};e.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=0;a<this.onSettledCallbacks_.length;++a)f.asyncExecute(this.onSettledCallbacks_[a]);
1046this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};e.prototype.settleSameAsThenable_=function(a,b){var c=this.createResolveAndReject_();try{a.call(b,c.resolve,c.reject)}catch(l){c.reject(l)}};e.prototype.then=function(a,b){function c(a,b){return"function"==typeof a?function(b){try{d(a(b))}catch(m){f(m)}}:b}var d,f,g=new e(function(a,b){d=a;f=b});this.callWhenSettled_(c(a,d),c(b,f));return g};
1047e.prototype.catch=function(a){return this.then(void 0,a)};e.prototype.callWhenSettled_=function(a,b){function c(){switch(d.state_){case 1:a(d.result_);break;case 2:b(d.result_);break;default:throw Error("Unexpected state: "+d.state_);}}var d=this;null==this.onSettledCallbacks_?f.asyncExecute(c):this.onSettledCallbacks_.push(c)};e.resolve=c;e.reject=function(a){return new e(function(b,c){c(a)})};e.race=function(a){return new e(function(b,d){for(var e=$jscomp.makeIterator(a),f=e.next();!f.done;f=e.next())c(f.value).callWhenSettled_(b,
1048d)})};e.all=function(a){var b=$jscomp.makeIterator(a),d=b.next();return d.done?c([]):new e(function(a,e){function f(b){return function(c){g[b]=c;h--;0==h&&a(g)}}var g=[],h=0;do g.push(void 0),h++,c(d.value).callWhenSettled_(f(g.length-1),e),d=b.next();while(!d.done)})};return e},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};
1049$jscomp.SymbolClass=function(a,b){this.$jscomp$symbol$id_=a;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:b})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};$jscomp.Symbol=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(c||"")+"_"+b++,c)}var b=0;return a}();
1050$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
1051$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.asyncIterator;a||(a=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1};
1052$jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.generator={};
1052$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
1053$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
1054$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
1055$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.value,b)};
1056$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0};
1057$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0};
1058$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
1059$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
1060$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
1061$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(a){return{value:a,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
1062$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
1063$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var d=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var e=d.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,e);return this.nextStep_()};
1064$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
1065$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};$jscomp.initSymbolIterator();this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&$jscomp.setPrototypeOf(b,a.prototype);return b};
1066$jscomp.asyncExecutePromiseGenerator=function(a){function b(b){return a.next(b)}function c(b){return a.throw(b)}return new Promise(function(d,e){function f(a){a.done?d(a.value):Promise.resolve(a.value).then(b,c).then(f,e)}f(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
1067NOLISValidate=NOLISManager.Helper.createClass();
1068NOLISValidate.prototype={_form:"",initialize:function(a){this._form=document.getElementById(a)},number_int:function(a,b,c,d){var e="object"==typeof d?d:this._form.elements[a];b=this.getValue(e);d=[];var f=!1;c.repair==a&&(f=!0);a=!1;1==c.required&&(a=!0);f&&(b=parseInt(b,10),isNaN(b)&&(b=0),e.value=b);a&&0==b.length&&d.push(10);isNaN(b)&&d.push(20);e=parseInt(b,10);c.min&&e<c.min&&(a&&!this.inArray(d,10)&&d.push(10),d.push(21));c.max&&e>c.max&&(a&&!this.inArray(d,10)&&d.push(10),d.push(22));b&&c.min_digits&&
1069b.length<c.min_digits&&(a&&!this.inArray(d,10)&&d.push(10),(a||0<b.length)&&d.push(23));b&&c.max_digits&&b.length>c.max_digits&&(a&&!this.inArray(d,10)&&d.push(10),(a||0<b.length)&&d.push(24));"undefined"!=typeof c.equal&&""!=c.equal&&b!=this._form.elements[c.equal].value&&d.push(25);"undefined"!=typeof c.not_equal&&""!=c.not_equal&&b==this._form.elements[c.not_equal].value&&d.push(26);return d},number_float:function(a,b,c,d){var e="object"==typeof d?d:this._form.elements[a];b=this.getValue(e);b=
1070b.replace(",",".");d=[];var f=!1;c.repair==a&&(f=!0);a=!1;"undefined"!=typeof c.required&&1==c.required&&(a=!0);f&&(b=parseFloat(b),isNaN(b)&&(b=0),e.value=b);a&&0==b.length&&d.push(10);isNaN(b)&&d.push(20);e=parseFloat(b);c.min&&e<c.min&&(a&&!this.inArray(d,10)&&d.push(10),d.push(21));c.max&&e>c.max&&(a&&!this.inArray(d,10)&&d.push(10),d.push(22));b&&c.min_digits&&b.length<c.min_digits&&(a&&!this.inArray(d,10)&&d.push(10),(a||0<b.length)&&d.push(23));b&&c.max_digits&&b.length>c.max_digits&&(a&&!this.inArray(d,
107110)&&d.push(10),(a||0<b.length)&&d.push(24));"undefined"!=typeof c.equal&&""!=c.equal&&b!=this._form.elements[c.equal].value&&d.push(25);"undefined"!=typeof c.not_equal&&""!=c.not_equal&&b==this._form.elements[c.not_equal].value&&d.push(26);return d},text:function(a,b,c,d){var e="object"==typeof d?d:this._form.elements[a];b=this.getValue(e);"undefined"!=typeof c.tinymce&&(b=tinyMCE.get(c.tinymce).getContent());d=[];var f=!1;c.repair==a&&(f=!0);a=!1;"undefined"!=typeof c.required&&1==c.required&&(a=
1072!0);"undefined"==typeof c.allow_html&&(b=this.strip_tags(b));f&&(e.value=b);a&&0==b.length&&d.push(10);e=b.length;c.min_length&&e<c.min_length&&(a&&!this.inArray(d,10)&&d.push(10),(a||0<e)&&d.push(30));c.max_length&&e>c.max_length&&(a&&!this.inArray(d,10)&&d.push(10),(a||0<e)&&d.push(31));"undefined"!=typeof c.equal&&""!=c.equal&&b!=this._form.elements[c.equal].value&&d.push(34);"undefined"!=typeof c.not_equal&&""!=c.not_equal&&b==this._form.elements[c.not_equal].value&&d.push(35);return d},mail:function(a,
1073b,c,d){a=this.getValue("object"==typeof d?d:this._form.elements[a]);b=[];d=!1;"undefined"!=typeof c.required&&1==c.required&&(d=!0);d&&0==a.length&&b.push(10);0<a.length&&!/^[^@\s]+@([-a-z0-9\u00e4\u00f6\u00fc\u00df]+\.)+[a-z]{2,}$/i.test(a)&&(d&&!this.inArray(b,10)&&b.push(10),b.push(50));"undefined"!=typeof c.equal&&""!=c.equal&&a!=this._form.elements[c.equal].value&&b.pu
1073sh(52);"undefined"!=typeof c.not_equal&&""!=c.not_equal&&a==this._form.elements[c.not_equal].value&&b.push(53);return b},array_text:function(a,
1074b,c){for(var d=this._form.elements[a],e=[],f=0;f<d.length;f++){var g=this.text(a,b,c,d[f]);e=e.concat(g)}return e},array_number_int:function(a,b,c){for(var d=this._form.elements[a],e=[],f=0;f<d.length;f++){var g=this.number_int(a,b,c,d[f]);e=e.concat(g)}return e},array_number_float:function(a,b,c){for(var d=this._form.elements[a],e=[],f=0;f<d.length;f++){var g=this.number_float(a,b,c,d[f]);e=e.concat(g)}return e},date:function(a,b,c){b=[];var d=0,e=!1;"undefined"!=typeof c.required&&1==c.required&&
1075(e=!0);"undefined"==typeof c.mode&&(c.mode=1);var f="",g="",h="";if(0==c.mode||1==c.mode){h=jQuery(jQuery('input[name="'+a+'_tag"]')[0]).val();g=jQuery(jQuery('input[name="'+a+'_monat"]')[0]).val();f=jQuery(jQuery('input[name="'+a+'_jahr"]')[0]).val();if(isNaN(parseInt(h,10))||isNaN(parseInt(g,10))||isNaN(parseInt(f,10)))d=1;if(2!=h.length||2!=g.length||4!=f.length)d=1}if(0==c.mode||2==c.mode){var k=this._form.elements[a+"_stunde"].value;a=this._form.elements[a+"_minute"].value;if(isNaN(parseInt(k,
107610))||isNaN(parseInt(a,10)))d=1;if(2!=k.length||2!=a.length)d=1}if(0==c.mode||1==c.mode)if(g=parseInt(g,10)-1,c=new Date(f,g,h),f!=c.getFullYear()||g!=c.getMonth()||h!=c.getDate())d=1;e&&0<d&&b.push(40);return b},plz:function(a,b,c,d){a=this.getValue("object"==typeof d?d:this._form.elements[a]);b=[];d=!1;"undefined"!=typeof c.required&&1==c.required&&(d=!0);d&&0==a.length&&b.push(10);if(0<a.length)switch("undefined"==typeof c.land&&(c.land=""),c.land){case "de":/^\d{5}$/.test(a)||(d&&!this.inArray(b,
107710)&&b.push(10),b.push(80));break;default:4>a.length&&(d&&!this.inArray(b,10)&&b.push(10),b.push(30)),10<a.length&&(d&&!this.inArray(b,10)&&b.push(10),b.push(31))}"undefined"!=typeof c.equal&&""!=c.equal&&a!=this._form.elements[c.equal].value&&b.push(25);"undefined"!=typeof c.not_equal&&""!=c.not_equal&&a==this._form.elements[c.not_equal].value&&b.push(26);return b},strip_tags:function(a){return"undefined"==typeof a||null===a?"":a.replace(/<\/?[^>]+>/gi,"")},inArray:function(a,b){for(var c=0;c<a.length;++c)if(a[c]==
1078b)return!0;return!1},getValue:function(a){var b="";jQuery(a).is(":radio")?b=this.checkradio(a):jQuery(a).is(":checkbox")?a.checked&&(b=a.value):b=jQuery(a).val();return b},checkradio:function(a){for(var b=0;b<a.length;b++)if(1==a[b].checked)return a[b].value;return""},getErrorMessage:function(a,b,c,d){fieldname=a[b].bezeichnung;parameter=a[b].parameter;switch(c){case 10:return"Das Feld <span class='feldbezeichnung'>"+fieldname+"</span> ist ein Pflichtfeld.";case 20:return"Der Wert im Feld <span class='feldbezeichnung'>"+
1079fieldname+"</span> ist ung&uuml;ltig. Es d&uuml;rfen nur Ziffern vorkommen.";case 21:case 22:return min=parameter.min,max=parameter.max,0<min&&0<max?min==max?"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss "+min+" sein.":"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss zwischen "+min+" und "+max+" liegen.":0<min?"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss mindestens "+min+" sein.":0<max?
1080"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> darf h&ouml;chstens "+max+" sein.":"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> ist ung&uuml;ltig.";case 23:case 24:return min=parameter.min_digits,max=parameter.max_digits,0<min&&0<max?min==max?"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss aus "+min+" Ziffern bestehen.":"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss zwischen "+
1081min+" und "+max+" Ziffern enthalten.":0<min?"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss mindestens aus "+min+" Ziffern bestehen.":0<max?"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> darf h&ouml;chstens aus "+max+" Ziffern bestehen.":"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> ist ung&uuml;ltig.";case 25:return"Die eingegebenen Werte f\u00fcr <span class='feldbezeichnung'>"+fieldname+"</span> und <span class='feldbezeichnung'>"+
1082a[parameter.equal].bezeichnung+"</span> stimmen nicht &uuml;berein.";case 26:return"Die eingegebenen Werte f\u00fcr <span class='feldbezeichnung'>"+fieldname+"</span> und <span class='feldbezeichnung'>"+a[parameter.not_equal].bezeichnung+"</span> d&uuml;rfen nicht identisch sein.";case 30:case 31:return min=parameter.min_length,max=parameter.max_length,0<min&&0<max?min==max?"Der Text im Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss aus "+min+" Zeichen bestehen.":"Der Text im Feld <span class='feldbezeichnung'>"+
1083fieldname+"</span> muss zwischen "+min+" und "+max+" Zeichen enthalten.":0<min?"Der Text im Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss mindestens aus "+min+" Zeichen bestehen.":0<max?"Der Text im Feld <span class='feldbezeichnung'>"+fieldname+"</span> darf h&ouml;chstens aus "+max+" Zeichen bestehen.":"Der Text im Feld <span class='feldbezeichnung'>"+fieldname+"</span> ist ung&uuml;ltig.";case 32:return"Das Feld <span class='feldbezeichnung'>"+fieldname+"</span> entspricht nicht dem Eingabemuster.";
1084case 33:return"Das Feld <span class='feldbezeichnung'>"+fieldname+"</span> enth&auml;lt HTML-Zeichen, die nicht erlaubt sind.";case 34:return"Der Inhalt der Felder <span class='feldbezeichnung'>"+fieldname+"</span> und <span class='feldbezeichnung'>"+a[parameter.equal].bezeichnung+"</span> stimmen nicht &uuml;berein.";case 35:return"Der Inhalt der Felder <span class='feldbezeichnung'>"+fieldname+"</span> und <span class='feldbezeichnung'>"+a[parameter.not_equal].bezeichnung+"</span> d&uuml;rfen nicht identisch sein.";
1085case 40:return"Das Datum im Feld <span class='feldbezeichnung'>"+fieldname+"</span> ist ung&uuml;ltig.";case 50:return"Die E-Mail-Adresse im Feld <span class='feldbezeichnung'>"+fieldname+"</span> ist ung&uuml;ltig.";case 51:return"Die E-Mail-Adresse im Feld <span class='feldbezeichnung'>"+fieldname+"</span> hat z.Z. keinen g\u00fcltigen E-Mail-Host. Eventuell liegt ein tempor&auml;res Serverproblem vor oder die Adresse ist nicht korrekt.";case 52:return"Die E-Mail-Adressen der Felder <span class='feldbezeichnung'>"+
1086fieldname+"</span> und <span class='feldbezeichnung'>"+a[parameter.equal].bezeichnung+"</span> stimmen nicht &uuml;berein.";case 53:return"Die E-Mail-Adressen der Felder <span class='feldbezeichnung'>"+fieldname+"</span> und <span class='feldbezeichnung'>"+a[parameter.not_equal].bezeichnung+"</span> d&uuml;rfen nicht identisch sein.";case 60:return"Die Internetadresse im Feld <span class='feldbezeichnung'>"+fieldname+"</span> ist ung&uuml;ltig.";case 70:return"Es wurde keine Auswahl f\u00fcr das Feld <span class='feldbezeichnung'>"+
1087fieldname+"</span> getroffen.";case 80:return"Der Wert f\u00fcr das Feld <span class='feldbezeichnung'>"+fieldname+"</span> muss aus 5 Ziffern bestehen.";case 100:return"Das Feld <span class='feldbezeichnung'>"+fieldname+"</span> ist nicht vorhanden.";default:return"Die Daten im Feld <span class='feldbezeichnung'>"+fieldname+"</span> sind ung&uuml;ltig."}},callback:function(a,b,c){return[]},validateJob:function(a,b,c){var d=[];for(key in a){var e=!1;var f=key;if("array_text"==a[key].funktion||"array_number_int"==
1088a[key].funktion||"array_number_float"==a[key].funktion)f=key+"[]";if(!jQuery.isFunction(a[key])){if("date"==a[key].funktion){var g=!1;"undefined"==typeof a[key].parameter.mode&&(a[key].parameter.mode=1);(0==a[key].parameter.mode||1==a[key].parameter.mode)&&this._form.elements[f+"_jahr"]&&this._form.elements[f+"_monat"]&&this._form.elements[f+"_tag"]&&(g=!0,1==a[key].parameter.mode&&(e=!0));(0==a[key].parameter.mode||2==a[key].parameter.mode)&&this._form.elements[f+"_stunde"]&&this._form.elements[f+
1089"_minute"]&&(0==a[key].parameter.mode&&g||2==a[key].parameter.mode)&&(e=!0)}else this._form.elements[f]&&(e=!0);if(!0!==e)f=[],f.push(100),1==a[key].parameter.required&&f.push(10),d[key]=f;else{switch(a[key].funktion){case "number_int":f=this.number_int(f,a[key].bezeichnung,a[key].parameter);break;case "number_float":f=this.number_float(f,a[key].bezeichnung,a[key].parameter);break;case "text":f=this.text(f,a[key].bezeichnung,a[key].parameter);break;case "mail":f=this.mail(f,a[key].bezeichnung,a[key].parameter);
1090break;case "plz":f=this.plz(f,a[key].bezeichnung,a[key].parameter);break;case "array_text":f=this.array_text(f,a[key].bezeichnung,a[key].parameter);break;case "array_number_int":f=this.array_number_int(f,a[key].bezeichnung,a[key].parameter);break;case "array_number_float":f=this.array_number_float(f,a[key].bezeichnung,a[key].parameter);break;case "date":f=this.date(f,a[key].bezeichnung,a[key].parameter);break;default:f=this.text(f,a[key].bezeichnung,a[key].parameter)}0<f.length&&(d[key]=f)}}}if(1==
1091b)return d;f=[];for(field in d)if(!jQuery.isFunction(d[field])){e=[];for(g=0;g<d[field].length;
1091++g){var h=this.getErrorMessage(a,field,d[field][g],c);e.push(h);f.push(h)}3==b&&(d[field].texte=e);jQuery("[name='"+field+"']").addClass("validate_error")}d._error_=f;return d}};
1092function validateStandard(a,b){a=(new NOLISValidate(a)).validateJob(b,2,"de");b="";for(var c=0;c<a._error_.length;++c){var d=a._error_[c];d=d.replace(/<span class='feldbezeichnung'>/g,"");d=d.replace(/<\/span>/g,"");d=d.replace(/&auml;/g,"\u00e4");d=d.replace(/&ouml;/g,"\u00f6");d=d.replace(/&uuml;/g,"\u00fc");b=1==jcms?b+("<li>"+d+"</li>"):b+(d+"\n")}return 0<b.length?(1==jcms?NAlert("<strong>Folgende Fehler sind aufgetreten :</strong><ul>"+(b+"</ul>")):alert(b),!1):!0}
1093function validateStandardNBox(a,b){var c,d,e,f,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==h.nextAddress){c=new NOLISValidate(a);d=c.validateJob(b,2,"de");if(0>=d._error_.length)return h.return(!0);e="<strong>Folgende Fehler sind aufgetreten:</strong><ul>";for(f=0;f<d._error_.length;++f)g=d._error_[f],g=g.replace(/<span class='feldbezeichnung'>/g,""),g=g.replace(/<\/span>/g,""),g=g.replace(/&auml;/g,"\u00e4"),g=g.replace(/&ouml;/g,"\u00f6"),g=g.replace(/&uuml;/g,"\u00fc"),
1094e+="<li>"+g+"</li>";e+="</ul>";return 0<e.length?h.yield(NAlert(e),3):h.return(!0)}return h.return(!1)})};
1095//# sourceMappingURL=js_validate_min.js.map
1096
1097
1098(function($) {
1099  $.fn.scrollable=function(options) {
1100
1101    var defaults = {
1102      'classes': '',
1103      'width': 5,
1104      'marginTopBottom': 2,
1105      'marginLeft': 5,
1106      'marginRight': 2,
1107      'borderRadius': true,
1108      'scrollAmount': 30,
1109      'scrollTo': 0
1110    }
1111
1112    var obj;
1113    var options = $.extend(defaults, options);
1114    
1115    var cache = {};
1116    
1117    var replaceScrollbar = function() {
1118      // Prüfen, ob der Inhaltsbereich höher ist, als der umliegende Container
1119      if(cache.objectContentHeight > cache.objectHeight) {
1120        // Container
1121        jQuery(obj).children().remove('div.nolis_scrollbar');
1122        nolis_scrollbar = jQuery('<div class="nolis_scrollbar'+options.classes+'"></div>');
1123        nolis_scrollbar.css('top', '0px');
1124        nolis_scrollbar.css('right', '0px');
1125        nolis_scrollbar.css('bottom', '0px');
1126        nolis_scrollbar.css('width', options.width+'px');
1127        nolis_scrollbar.css('margin-top', options.marginTopBottom+'px');
1128        nolis_scrollbar.css('margin-bottom', options.marginTopBottom+'px');
1129        nolis_scrollbar.css('margin-left', options.marginLeft+'px');
1130        nolis_scrollbar.css('margin-right', options.marginRight+'px');
1131        if(options.borderRadius) nolis_scrollbar.css('border-radius', '5px');
1132        // Container ins Objekt einfügen
1133        jQuery(obj).append(nolis_scrollbar);
1134        
1135        // Scrollbar
1136        // Höhe berechnen
1137        scrollbarHeight = 0;
1138        maxScrollbarHeight = cache.objectHeight - (2 * options.marginTopBottom);
1139        
1140        faktor = cache.objectHeight / cache.objectContentHeight;
1141        scrollbarHeight = cache.objectHeight * faktor;
1142        
1143        // Margin berechnen
1144        faktor = cache.objectHeight / cache.objectContentHeight;
1145        scrollbarHeight = Math.round(cache.objectHeight * faktor);
1146        scrollbarMarginTop = 0;
1147        
1148        diffContent2Container = cache.objectContentHeight - cache.objectHeight;
1149        
1150        if(cache.objectContentMarginTop < cache.htmlMarginTop) {
1151          quotient = diffContent2Container / cache.objectContentHeight;
1152          maxMarginScrollbar = maxScrollbarHeight * quotient;
1153          whitespaceScrollbar = maxScrollbarHeight - scrollbarHeight;
1154          
1155          scrolled = (cache.objectContentMarginTop - cache.htmlMarginTop) * -1;
1156          faktor = scrolled / diffContent2Container;
1157          scrollbarMarginTop = Math.floor(faktor * whitespaceScrollbar);
1158        }
1159        
1160        // Scrollbar erstellen
1161        nolis_scrollbar_in = jQuery('<div class="nolis_scrollbar_in"></div>');
1162        nolis_scrollbar_in.css('height', scrollbarHeight+'px');
1163        nolis_scrollbar_in.css('margin-top', scrollbarMarginTop+'px');
1164        if(options.borderRadius) nolis_scrollbar_in.css('border-radius', '5px');
1165        // Scrollbar in Container einfügen
1166        jQuery(nolis_scrollbar).append(nolis_scrollbar_in);
1167      }
1168    }
1169    
1170    var scrollUp = function() {
1171      // Hochscrollen
1172      scrollContainer = obj.children('div:first');
1173      marginTop = scrollContainer.css('margin-top');
1174      marginTop = parseInt(marginTop.replace('px', ''));
1175      marginTop += options.scrollAmount;
1176      
1177      if(marginTop > cache.htmlMarginTop) marginTop = cache.htmlMarginTop;
1178      
1179      cache.objectContentMarginTop = marginTop;
1180      scrollContainer.css('margin-top', marginTop+'px');
1181      
1182      scrollCallback();
1183      return false;
1184    };
1185    
1186    var scrollDown = function() {
1187      // Runterscrollen
1188      scrollContainer = obj.children('div:first');
1189      marginTop = scrollContainer.css('margin-top');
1190      marginTop = parseInt(marginTop.replace('px', ''));
1191      marginTop -= options.scrollAmount;
1192
1193      checkValue = cache.objectContentHeight + marginTop;
1194      
1195      differenz = checkValue-cache.objectInnerHeight;
1196      
1197      if((differenz - cache.htmlMarginBottom) <= 0) {
1198        marginTop = (cache.objectContentHeight - cache.htmlMarginBottom - cache.objectInnerHeight) * -1;
1199      }
1200      
1201      cache.objectContentMarginTop = marginTop;
1202      scrollContainer.css('margin-top', marginTop+'px');
1203      
1204      scrollCallback();
1205      return false;
1206    };
1207    
1208    var scroll = function(e) {
1209      e.preventDefault();
1210      cache.htmlOverflow = jQuery('html').css('overflow');
1211      cache.htmlHeight = jQuery('html').css('height');
1212      cache.htmlPaddingBottom = jQuery('html').css('padding-bottom');
1213      
1214      cache.bodyOverflow = jQuery('body').css('overflow');
1215      cache.bodyHeight = jQuery('body').css('height');
1216      cache.bodyPaddingBottom = jQuery('body').css('padding-bottom');
1217      /*
1218      jQuery('html, body').css({
1219        'overflow': 'hidden',
1220        'height': '100%',
1221        'padding-bottom:': '1px'
1222      })
1223      */
1224      delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
1225      if(delta > 0) {
1226        return scrollUp();
1227      }
1228      else { 
1229        return scrollDown();
1230      }
1231    };
1232    
1233    var scrollCallback = function() {
1234      /*
1235      jQuery('html').css({
1236        'overflow': cache.htmlOverflow,
1237        'height': cache.htmlHeight,
1238        'padding': cache.htmlPaddingBottom
1239      });
1240      
1241      jQuery('body').css({
1242        'overflow': cache.bodyOverflow,
1243        'height': cache.bodyHeight,
1244        'padding': cache.bodyPaddingBottom
1245      });
1246      */
1247      replaceScrollbar();
1248    };
1249
1250    return this.each(function() {
1251      obj = $(this);
1252      
1253      if(obj.children('.nolis_scrollable_added').length == 1) {
1254        obj.html(obj.children('.nolis_scrollable_added').html());
1255        obj.children('.nolis_scrollable_added').remove();
1256      }
1257      
1258      cache.htmlMarginTop = jQuery(obj).children(':first').css('margin-top');
1259      cache.htmlMarginBottom = jQuery(obj).children(':last').css('margin-bottom');
1260      
1261      if(typeof cache.htmlMarginTop == 'undefined') cache.htmlMarginTop = 0;
1262      else cache.htmlMarginTop = Math.round(cache.htmlMarginTop.replace('px', ''));
1263      
1264      if(typeof cache.htmlMarginBottom == 'undefined') cache.htmlMarginBottom = 0;
1265      else cache.htmlMarginBottom = Math.round(cache.htmlMarginBottom.replace('px', ''));
1266      
1267      jQuery(obj).children(':first').css('margin-top', '0');
1268      jQuery(obj).children(':last').css('margin-bottom', '0');
1269      
1270      cache.objectHeight = obj.outerHeight();
1271      cache.objectInnerHeight = obj.height();
1272      
1273      // Objektinhalt in Container setzen
1274      objectContent = jQuery('<div></div>');
1275      objectContent.attr('class', 'nolis_scrollable_added');
1276      objectContent.html(obj.html());
1277      objectContent.css('margin-top', cache.htmlMarginTop+'px');
1278      objectContent.css('margin-bottom', cache.htmlMarginBottom+'px');
1279      obj.html(objectContent);
1280      cache.objectContentHeight = objectContent.outerHeight(true);
1281      cache.objectContentMarginTop = cache.htmlMarginTop;
1282      
1283      replaceScrollbar();
1284      
1285      if(options.scrollTo > 0) {
1286        scrollTimes = Math.floor(options.scrollTo / options.scrollAmount);
1287        
1288        // An die nächst höhere Position anhand des scrollAmounts scrollen
1289        for(i = 0; i < scrollTimes; i++) {
1290          scrollDown();
1291        }
1292        
1293        // Auf exakte Position scrollen (Differenz zwischen scrollTo und (scrollTimes*scrollAmount))
1294        differenz = options.scrollTo - (options.scrollAmount * scrollTimes);
1295        if(differenz > 0) {
1296          tmpScrollAmount = options.scrollAmount;
1297          options.scrollAmount = differenz;
1298          scrollDown();
1299          options.scrollAmount = tmpScrollAmount;
1300        }
1301      }
1302      
1303      if(this.addEventListener) {
1304        // IE9, Chrome, Safari, Opera 
1305        this.addEventListener("mousewheel", function(e) { scroll(e); }, false); 
1306        // Firefox 
1307        this.addEventListener("DOMMouseScroll", function(e) { scroll(e); }, false); 
1308      } 
1309      // alte Internet Explorer (Version < 9)
1310      else  {
1311        this.attachEvent("onmousewheel", function(e) { scroll(e); });
1312      } 
1313    });
1314  };
1315})(jQuery);
1316(function($) {
1317  $.fn.slideshow = function(options) {
1318    /* global gültig */
1319    var sliders = $(this);
1320
1321    var defaults = {
1322      'autostart': true,
1323      'pausefn': false,
1324      'wiederholung': true,
1325      'standzeit': 3000,
1326      'effektdauer': 600,
1327      'pfeile': true,
1328      'pfeilLinksSrc': '',
1329      'pfeilRechtsSrc': '',
1330      'pfeilWidth': 22,
1331      'pfeilHeight': 42,
1332      'pfeilAbstand': 10,
1333      'sprungmarken': true,
1334      'beschreibung': true,
1335      'css_breite': 100
1336    };
1337
1338    var options = $.extend(defaults, options);
1339
1340    sliders.resizeImages = function() {
1341      sliders.each(function() {
1342        if (this.resize) this.resize();
1343      });
1344    };
1345
1346    return sliders.each(function() {
1347      /* Instanz gültig */
1348      var self = $(this);
1349      var elements = self.children('.sliderElement');
1350      var elementIndex = -1;
1351      var running = false;
1352      var timerIDs = [];
1353      var sprungmarken = null;
1354      var pausefn = null;
1355      var size = {width: self.width(), height: 0};
1356      var working = false;
1357      var steuerung = self.children('.sliderSteuerung');
1358
1359      /* Sliderstyle anpassen */
1360      self.css('position', 'relative');
1361      self.height(0);
1362
1363      /* Events zuweisen */
1364      self.on('mouseenter focusin', function() {
1365        if (options.pfeile) self.find('.sliderArrow').fadeTo(200, 1);
1366        if (options.pausefn) self.find('.sliderPause').fadeTo(200, 1);
1367
1368        if (options.beschreibung) {
1369          self.find('.sliderHoverContainer').addClass('hover');
1370          self.find('.sliderHoverContainer').children('.sliderBeschreibung').show(200);
1371        }
1372      });
1373
1374      self.on('mouseleave focusout', function() {
1375        if (options.pfeile) self.find('.sliderArrow').fadeTo(200, 0);
1376        if (options.pausefn) self.find('.sliderPause').fadeTo(200, 0);
1377
1378        if (options.beschreibung) {
1379          self.find('.sliderBeschreibung').hide(200, function() {
1380            self.find('.sliderHoverContainer').removeClass('hover');
1381          });
1382        }
1383      });
1384
1385      // Kontrollfunktionen
1386      var play = function(timeout) {
1387        timeout = timeout || 0;
1388
1389        running = true;
1390        steuerung.find('.sliderPause').removeClass('play').addClass('pause').attr('aria-label', 'Elementwechsel anhalten');
1391        updateLoop(timeout);
1392      };
1393
1394      var pause = function() {
1395        running = false;
1396        steuerung.find('.sliderPause').removeClass('pause').addClass('play').attr('aria-label', 'automatischen Elementwechsel fortsetzen');
1397        for(var i = 0; i < timerIDs.length; i++) {
1398          window.clearTimeout(timerIDs[i]);
1399        }
1400        timerIDs = [];
1401      };
1402
1403      var updateLoop = function(timeout) {
1404        timeout = timeout || 0;
1405
1406        if (running) {
1407          for(var i = timerIDs.length - 1; i >= 0; i--) {
1408            window.clearTimeout(timerIDs[i]);
1409            timerIDs.splice(i);
1410          }
1411          if (timerIDs.length == 0) {
1412            timerIDs[timerIDs.length] = window.setTimeout(function() {
1413              if (running) {
1414                slide(elementIndex + 1, function() {
1415                  if (running) updateLoop(options.standzeit);
1416                });
1417              }
1418            }, timeout);
1419          }
1420        }
1421      };
1422
1423      var next = function(clbk) {
1424        if (!working) {
1425          pause();
1426          slide(elementIndex + 1, function() {
1427            if (typeof clbk == "function") clbk();
1428            if (options.autostart && running) play(options.standzeit);
1429          });
1430        }
1431      };
1432
1433      var previous = function(clbk) {
1434        if (!working) {
1435          pause();
1436          slide(elementIndex - 1, function() {
1437            if (typeof clbk == "function") clbk();
1438            if (options.autostart && running) play(options.standzeit);
1439          });
1440        }
1441      };
1442
1443      var slide = function(targetIndex, clb) {
1444        working = true;
1445
1446        targetIndex = typeof targetIndex == 'number' ? targetIndex : 0;
1447
1448        if (targetIndex > elements.length - 1) targetIndex = 0;
1449        if (targetIndex < 0) targetIndex = elements.length - 1;
1450
1451        var element = elements.eq(targetIndex);
1452        var img = element.children('.sliderElement_in').children('img');
1453
1454        img.show();
1455
1456        var anim = function() {
1457          if (elementIndex == -1) { // direkte Darstellung
1458            slideFinish();
1459          } else if (elementIndex < targetIndex) { // slide-in von rechts
1460            var prev_element = elements.eq(elementIndex);
1461            prev_element.animate({
1462              left: "-=" + self.width()
1463            }, options.effektdauer);
1464            element.animate({
1465              left: "-=" + self.width()
1466            }, options.effektdauer, slideFinish);
1467          } else { // slide-in von links
1468            var prev_element = elements.eq(elementIndex);
1469            prev_element.animate({
1470              left: "+=" + self.width()
1471            }, options.effektdauer);
1472            element.animate({
1473              left: "+=" + + self.width()
1474            }, options.effektdauer, slideFinish);
1475          }
1476        };
1477
1478        var slideFinish = function() {
1479          elementIndex = targetIndex;
1480          element.css('left', '0px');
1481          sortSlideElemente(targetIndex);
1482          if (sprungmarken != null) {
1483            sprungmarken.children('.slider_sprungmarke').removeClass('active').attr('aria-disabled', 'false');
1484            sprungmarken.children('.slider_sprungmarke[data-index='+targetIndex+']').addClass('active').attr('aria-disabled', 'true');
1485          }
1486          resize();
1487          working = false;
1488          if (typeof clb == 'function') clb();
1489        };
1490
1491        if (targetIndex != elementIndex) {
1492          if (img.length > 0 && img.prop('src').length == 0) { // erst Bild laden
1493            img.on('load', anim);
1494            img.attr('src', img.data('src'));
1495          } else { // Bild bereits geladen
1496            anim();
1497          }
1498        } else {
1499          //if (typeof clb == 'function') clb();
1500          slideFinish();
1501        }
1502      };
1503
1504      var sortSlideElemente = function(targetIndex) {
1505        targetIndex = typeof targetIndex == 'number' ? targetIndex : elementIndex;
1506
1507        if (targetIndex > elements.length - 1) targetIndex = 0;
1508
1509        var zIndexLeft = 1000;
1510        var zIndexRight = 1000;
1511        // sortieren der Slider-Elemente
1512        elements.each(function(index) {
1513          var element = $(this);
1514          element[0].style.transition = 'none';
1515          if (index < targetIndex) {
1516            zIndexLeft = 1000 + (targetIndex - index);
1517            element[0].style['z-index'] = zIndexLeft;
1518            element[0].style.left = '-' + size.width + 'px';
1519          }else if (index > targetIndex) {
1520            zIndexRight++;
1521            element[0].style['z-index'] = zIndexRight;
1522            element[0].style.left = self.width() + 'px';
1523          }else{
1524            element[0].style['z-index'] = 1000;
1525          }
1526        });
1527      };
1528
1529      var resize = this.resize = function() {
1530        size.width = self.width();
1531        size.height = 0;
1532
1533        elements.each(function() {
1534          var img = $(this).children('.sliderElement_in').children('img');
1535          var width = 0;
1536          var height = 0;
1537
1538          // alles wie Querformat behandeln
1539          var ratio = img.data('width') / size.width;
1540          width = size.width;
1541          height = img.data('height') / ratio;
1542
1543          if (height > size.height) {
1544            size.height = height;
1545            /*
1546            ratio = img.data('height') / size.height;
1547            height = size.height;
1548            width = img.data('width') / ratio;
1549            */
1550          }
1551
1552          /*
1553          if (img.data('width') > size.width) {
1554            var ratio = img.data('width') / size.width;
1555
1556            width = size.width;
1557            height = img.data('height') / ratio;
1558            size.height = size.height < height ? height : size.height;
1559          }else{
1560            width = img.data('width');
1561            height = img.data('height');
1562            size.height = size.height < img.data('height') ? img.data('height') : size.height;
1563          }
1564          */
1565
1566          img.width(width);
1567          img.height(height);
1568
1569          // Parent angleichen
1570          img.parent().width(width);
1571          img.parent().height(height);
1572        });
1573
1574        // Elemente auf volle Höhe setzen
1575        elements.width(size.width);
1576        elements.height(size.height);
1577
1578        // Bilder vertikal zentrieren
1579        elements.each(function() {
1580          var element_in = $(this).children('.sliderElement_in');
1581          if (element_in.height() < size.height) {
1582            element_in[0].style.top = ((size.height / 2) - (element_in.height() / 2)) + 'px';
1583          }
1584        });
1585
1586        sortSlideElemente();
1587
1588        // Sliderhöhe anpassen
1589        if (sprungmarken != null) {
1590          if (sprungmarken.maxWidth > size.width) {
1591            sprungmarken.hide();
1592            self.height(size.height);
1593          } else {
1594            sprungmarken.show();
1595            self.height(size.height + sprungmarken.outerHeight());
1596            sprungmarken.css('top', size.height + 'px');
1597          }
1598        } else {
1599          self.height(size.height);
1600        }
1601      };
1602
1603      var initArrows = function() {
1604        arrowContainer = $('<div class="sliderArrowContainer"></div>');
1605        arrowContainer.appendTo(steuerung);
1606        arrowContainer_in = $('<div class="sliderArrowContainerIn"></div>');
1607        arrowContainer_in.appendTo(arrowContainer);
1608
1609        leftArrow = $('<span class="sliderArrow sliderArrow_left" role="button" aria-label="Vorheriges Element anzeigen" tabindex="0"><span class="sliderArrow_left_1"></span><span class="sliderArrow_left_2"></span></span>');
1610        leftArrow.appendTo(arrowContainer_in);
1611        leftArrow.on('keyup', function(ereignis) {
1612          if ('key' in ereignis && ereignis.key == 'Enter') {
1613            previous();
1614          }
1615        });
1616        // separater Click-Handler, um triggern zu können (z. B. in Göttingen)
1617        leftArrow.click(function() {
1618          previous();
1619        });
1620
1621        rightArrow = $('<span class="sliderArrow sliderArrow_right" role="button" aria-label="Nächstes Element anzeigen" tabindex="0"><span class="sliderArrow_right_1"></span><span class="sliderArrow_right_2"></span></span>');
1622        rightArrow.appendTo(arrowContainer_in);
1623        rightArrow.on('keyup', function(ereignis) {
1624          if ('key' in ereignis && ereignis.key == 'Enter') {
1625            next();
1626          }
1627        });
1628        // separater Click-Handler, um triggern zu können (z. B. in Göttingen)
1629        rightArrow.click(function() {
1630          next();
1631        });
1632      };
1633
1634      var initSprungmarken = function() {
1635        sprungmarken = $('<div class="slider_sprungmarken"></div>');
1636        sprungmarken.appendTo(self);
1637        sprungmarken.css('position', 'absolute');
1638        sprungmarken.css('top', size.height + 'px');
1639        sprungmarken.css('left', '0px');
1640        sprungmarken.css('right', '0px');
1641        sprungmarken.css('text-align', 'center');
1642        sprungmarken.hide();
1643
1644        sprungmarken.maxWidth = 0;
1645
1646        for(i = 0; i < elements.length; i++) {
1647          var dot = $('<span></span>');
1648
1649          dot.attr('class', 'slider_sprungmarke');
1650          dot.attr('data-index', i);
1651          dot.attr('role', 'button');
1652          dot.attr('aria-label', 'zeige Element '+(1+i));
1653          dot.attr('aria-disabled', 'false');
1654          dot.attr('tabindex', '0');
1655          dot.appendTo(sprungmarken);
1656
1657          dot.on('click keyup', function(ereignis) {
1658            index = $(this).attr('data-index');
1659            if (('click'==ereignis.type && 0==ereignis.button) || ('key' in ereignis && ereignis.key == 'Enter')) {
1660              if (!working) {
1661                pause();
1662                slide(parseInt(index));
1663                $(this).attr('aria-disabled', 'true');
1664                $(this).siblings('.slider_sprungmarke').attr('aria-disabled', 'false');
1665              }
1666            }
1667          });
1668
1669          sprungmarken.maxWidth = sprungmarken.maxWidth + dot.width();
1670        }
1671
1672        if (sprungmarken.maxWidth <= size.width) sprungmarken.show();
1673      };
1674
1675      var initPause = function() {
1676        pauseContainer = $('<div class="sliderPauseContainer"></div>');
1677        pauseContainer.appendTo(steuerung);
1678        pauseContainer_in = $('<div class="sliderPauseContainerIn"></div>');
1679        pauseContainer_in.appendTo(pauseContainer);
1680
1681        pauseIcon = $('<span class="sliderPause" role="button" aria-label="Start/Stopp" tabindex="0"><span class="sliderPause_icon"></span></span>');
1682        if (options.autostart) pauseIcon.addClass('pause').attr('aria-label', 'Elementwechsel anhalten');
1683        else pauseIcon.addClass('play').attr('aria-label', 'automatischen Elementwechsel starten');
1684        pauseIcon.appendTo(pauseContainer_in);
1685
1686        pauseIcon.on('click keyup', function(ereignis) {
1687          if (('click'==ereignis.type && 0==ereignis.button) || ('key' in ereignis && ereignis.key == 'Enter')) {
1688            if (!running) {
1689              play(options.standzeit);
1690              pauseIcon.removeClass('play').addClass('pause').attr('aria-label', 'Elementwechsel anhalten');
1691            }
1692            else {
1693              pause();
1694              pauseIcon.removeClass('pause').addClass('play').attr('aria-label', 'automatischen Elementwechsel starten');
1695            }
1696          }
1697        })
1698      };
1699
1700      var init = function(clbk) {
1701        elements.css({'display': 'block', 'position': 'absolute', 'top': 0});
1702        elements.children('.sliderElement_in').css({'display': 'block', 'position': 'absolute', 'top': 0});
1703        elements.children('.sliderElement_in').children('img').hide();
1704
1705        resize();
1706        sortSlideElemente();
1707
1708        // Ooptions (vor dem Start) behandeln
1709        if (options.pausefn) initPause();
1710        if (options.pfeile) initArrows();
1711        if (options.sprungmarken) initSprungmarken();
1712
1713        clbk();
1714      };
1715
1716      // init
1717      init(function() {
1718        slide(0, function() {
1719          // Options (nach dem Start) behandeln
1720          if (options.autostart) play(options.standzeit);
1721        });
1722      });
1723
1724      /* Touch-Bedienung */
1725      const sliderContainer = document.querySelectorAll('.medienbaustein_slider');
1726
1727      sliderContainer.forEach(element => {
1728        let touchStartX = 0;
1729        let touchStartY = 0; // NEU: Auch Y-Achse tracken
1730        const minSwipeDistance = 50;
1731
1732        // WICHTIG: Kein { passive: true } mehr, damit wir notfalls intervenieren können
1733        element.addEventListener('touchstart', (e) => {
1734          touchStartX = e.changedTouches[0].clientX;
1735          touchStartY = e.changedTouches[0].clientY; 
1736        }, { passive: true }); // touchstart kann passiv bleiben
1737
1738        // touchmove hinzufügen, um das native Scrollen zu unterdrücken, WENN gewischt wird
1739        element.addEventListener('touchmove', (e) => {
1740          const currentX = e.changedTouches[0].clientX;
1741          const currentY = e.changedTouches[0].clientY;
1742          
1743          const diffX = Math.abs(touchStartX - currentX);
1744          const diffY = Math.abs(touchStartY - currentY);
1745
1746          // Wenn sich der Finger mehr horizontal als vertikal bewegt, 
1747          // verhindern wir das Seitenscrollen des Browsers
1748          if (diffX > diffY && diffX > 10) {
1749            if (e.cancelable) e.preventDefault(); 
1750          }
1751        }, { passive: false }); // HIER WICHTIG: passive muss false sein!
1752
1753        element.addEventListener('touchend', (e) => {
1754          const touchEndX = e.changedTouches[0].clientX;
1755          const distance = touchStartX - touchEndX;
1756          let direction = null;
1757
1758          if (distance > minSwipeDistance) {
1759            direction = 'right';
1760          } else if (distance < -minSwipeDistance) {
1761            direction = 'left';
1762          }
1763
1764          if (direction) {
1765            handleSwipe(element, direction);
1766          }
1767        }, { passive: true });
1768
1769        function handleSwipe(sliderElement, richtung) {
1770          console.log('Slider-Swipe nach ' + richtung + ' erkannt');
1771          $(sliderElement).find('.sliderArrow_' + richtung).trigger('click');
1772        }
1773      });
1774
1775    });
1776  };
1777})(jQuery);
1778(function($) {
1779  $.fn.sliderteaser = function(options) {
1780
1781    var defaults = {
1782      'autostart': true,
1783      'wiederholung': true,
1784      'effekt': 0,
1785      'standzeit': 3500,
1786      'effektdauer': 600,
1787      'pfeile': 1,
1788      'sprungmarken': 1,
1789      'easing': 'linear'
1790    }
1791
1792    var $obj;
1793    var options = $.extend(defaults, options);
1794    
1795    var cache = {};
1796    
1797    var autostart = function() {
1798      jQuery('window').ready(function() {
1799        window.setTimeout(function() {
1800          play();
1801        }, options.standzeit);
1802      });
1803    };
1804    
1805    var play = function() {
1806      cache.playActive = true;
1807      nextElement('', cache.playActive);
1808    };
1809    
1810    var stop = function() {
1811      cache.playActive = false;
1812      setActiveElement(cache.activeElement-1);
1813      nextElement('', cache.playActive);
1814    };
1815    
1816    var triggerNextElement = function() {
1817      if(cache.playActive) {
1818        cache.timer = window.setTimeout(function() {
1819          nextElement('');
1820        }, options.standzeit);
1821      }
1822    };
1823    
1824    var nextElement = function(newElement, wiederholung) {
1825      if(cache.sliderActive) return false;
1826      
1827      if(typeof cache.timer != 'undefined') window.clearTimeout(cache.timer);
1828      
1829      if(typeof newElement == 'undefined' || newElement == '') newElement = cache.activeElement + 1;
1830      if(newElement > cache.count) newElement = 1;
1831      
1832      if(typeof wiederholung == 'undefined' && (cache.activeElement + 1) > cache.count && !options.wiederholung) {
1833        wiederholung = false;
1834      }
1835      else {
1836        wiederholung = true;
1837      }
1838
1839      if(wiederholung != true) {
1840        cache.playActive = false;
1841        // Ende des Sliders.
1842        $pauseArrow.addClass('stopped');
1843        $pauseArrow.click(function(){
1844          autostart();
1845        });
1846      }
1847      else {
1848        
1849        
1850        $activeElement = $obj.find('.sliderteaser_slide[data-index='+cache.activeElement+']');
1851        
1852        if($activeElement.length > 0) {
1853          if(cache.activeElement < cache.count) {
1854            $newElement = $obj.find('.sliderteaser_slide[data-index='+newElement+']');
1855          }
1856          else {
1857            $newElement = $obj.find('.sliderteaser_slide[data-index=1]');
1858          }
1859          
1860          if($newElement.length > 0) {
1861            $newElement.css('left', cache.containerWidth+'px');
1862            
1863            cache.sliderActive = true;
1864            if(options.effekt == 0) {
1865              $activeElement.animate({
1866                left: '-='+cache.containerWidth
1867              }, options.effektdauer, options.easing);
1868              
1869              $newElement.animate({
1870                left: 0
1871              }, options.effektdauer, options.easing, function() {
1872                setActiveElement(newElement);
1873                cache.sliderActive = false;
1874                if(cache.playActive) triggerNextElement();
1875              });
1876            }
1877            else if (options.effekt == 1) {
1878              $activeElement.animate({
1879                opacity: 0
1880              }, options.effektdauer, options.easing);
1881              $newElement.css('left', '0px');
1882              $newElement.css('opacity', '0');
1883              $newElement.animate({
1884                opacity: 1
1885              }, options.effektdauer, options.easing, function() {
1886                setActiveElement(newElement);
1887                cache.sliderActive = false;
1888                if(cache.playActive) triggerNextElement();
1889              });
1890            }
1891          }
1892        }
1893      }
1894    };
1895    
1896    var prevElement = function(newElement) {
1897      if(cache.sliderActive) return false;
1898      
1899      if(typeof cache.timer != 'undefined') window.clearTimeout(cache.timer);
1900      
1901      if(typeof newElement == 'undefined') newElement = cache.activeElement - 1;
1902      if(newElement < 1) newElement = cache.count;
1903      
1904      $activeElement = $obj.find('.sliderteaser_slide[data-index='+cache.activeElement+']');
1905      
1906      if($activeElement.length > 0) {
1907        if(cache.activeElement > 1) {
1908          $newElement = $obj.find('.sliderteaser_slide[data-index='+newElement+']');
1909        }
1910        else {
1911          $newElement = $obj.find('.sliderteaser_slide[data-index='+cache.count+']');
1912        }
1913        
1914        if($newElement.length > 0) {
1915          $newElement.css('left', '-'+cache.containerWidth+'px');
1916          
1917          cache.sliderActive = true;
1918          if(options.effekt == 0) {
1919            $activeElement.animate({
1920              left: cache.containerWidth+'px'
1921            }, options.effektdauer, options.easing);
1922            
1923            $newElement.animate({
1924              left: '0px'
1925            }, options.effektdauer, options.easing, function() {
1926              setActiveElement(newElement);
1927              cache.sliderActive = false;
1928              if(cache.playActive) triggerNextElement();
1929            });
1930          }
1931          else if(options.effekt == 1) {
1932            $activeElement.animate({
1933              opacity: 0
1934            }, options.effektdauer, options.easing);
1935            
1936            $newElement.css('left', '0px');
1937            $newElement.css('opacity', '0');
1938            $newElement.animate({
1939              opacity: 1
1940            }, options.effektdauer, options.easing, function() {
1941              setActiveElement(newElement);
1942              cache.sliderActive = false;
1943              if(cache.playActive) triggerNextElement();
1944            });
1945          }
1946        }
1947      }
1948    };
1949    
1950    var setActiveElement = function(index) {
1951      cache.activeElement = parseInt(index);
1952      $obj.find('.slider_sprungmarke').removeClass('active');
1953      $obj.find('.slider_sprungmarke[data-index='+cache.activeElement+']').addClass('active');
1954    };
1955    
1956    var initArrows = function() {
1957      // Container
1958      $arrowContainer = jQuery('<div class="sliderArrowContainer"></div>');
1959      $arrowContainerIn = jQuery('<div class="sliderArrowContainerIn"></div>');
1960      
1961      // Zurück
1962      $leftArrow = jQuery('<span class="sliderArrow sliderArrow_left"><span class="sliderArrow_left_1"></span><span class="sliderArrow_left_2"></span></span>');
1963      $leftArrow.appendTo($arrowContainerIn);
1964      arrowsTop = Math.round(((cache.containerHeight/2) - ($leftArrow.height() / 2)));
1965      $leftArrow.css('left', options.pfeilAbstand+'px');
1966      $leftArrow.css('top', arrowsTop+'px');
1967      if(options.pfeile == 2) $leftArrow.css('opacity', '1');
1968      
1969      // Weiter
1970      $rightArrow = jQuery('<span class="sliderArrow sliderArrow_right"><span class="sliderArrow_right_1"></span><span class="sliderArrow_right_2"></span></span>');
1971      $rightArrow.css('right', options.pfeilAbstand+'px');
1972      $rightArrow.css('text-align', 'right');
1973      $rightArrow.css('top', arrowsTop+'px');
1974      if(options.pfeile == 2) $rightArrow.css('opacity', '1');
1975      $rightArrow.appendTo($arrowContainerIn);
1976      
1977      //Pause-Button
1978      $pauseArrow = jQuery('<span class="sliderArrow sliderArrow_pause"><span class="sliderArrow_pause_1"></span><span class="sliderArrow_pause_2"></span></span>');
1979      $pauseArrow.css('text-align', 'center');
1980      $pauseArrow.css('left', 'calc(50% - 25px)');
1981      $pauseArrow.css('top', arrowsTop+'px');
1982      //if(options.pfeile == 2) $rightArrow.css('opacity', '1');
1983      $pauseArrow.appendTo($arrowContainerIn);      
1984      
1985      $arrowContainerIn.appendTo($arrowContainer);
1986      $arrowContainer.appendTo($obj);
1987      
1988      // Click-Listener Left Arrow
1989      $leftArrow.click(function() {
1990        prevElement();
1991      });
1992
1993      // Click-Listener Right Arrow
1994      $rightArrow.click(function() {
1995        nextElement('', true);
1996      });
1997      
1998      // Click-Listener Pause Arrow
1999      $pauseArrow.click(function() {
2000        stop();
2001        $pauseArrow.addClass('stopped');
2002        $pauseArrow.unbind('click');
2003        $pauseArrow.click(function() {
2004          play();
2005          $pauseArrow.removeClass('stopped');
2006        });
2007      });
2008    };
2009    
2010    var initSprungmarken = function() {  
2011      gesamtbreite = 0;
2012      
2013      $sprungmarkenContainer = jQuery('<div class="sliderSprungmarkenContainer"></div>');
2014      $sprungmarkenContainerIn = jQuery('<div class="sliderSprungmarkenContainerIn"></div>');
2015      
2016      $sprungmarken = jQuery('<div class="slider_sprungmarken"></div>');
2017      $sprungmarken.appendTo($sprungmarkenContainerIn);
2018      $sprungmarken.hide();
2019      $sprungmarken.css('position', 'absolute');
2020      $sprungmarken.css('top', cache.containerHeight+'px');
2021      $sprungmarken.css('left', '0px');
2022      $sprungmarken.css('right', '0px');
2023      $sprungmarken.css('text-align', 'center');
2024      if(options.sprungmarken == 2) $sprungmarkenContainer.css('opacity', '1');
2025      
2026      $sprungmarkenContainerIn.appendTo($sprungmarkenContainer);
2027      $sprungmarkenContainer.appendTo($obj);
2028      
2029      for(i = 1; i <= cache.count; i++) {
2030        $dot = jQuery('<span class="slider_sprungmarke" data-index="'+i+'"><span class="slider_sprungmarke_nummer">'+i+'</span></span>');
2031        $dot.appendTo($sprungmarken);
2032        
2033        $dot.click(function() {
2034          index = jQuery(this).attr('data-index');
2035          
2036          if(cache.activeElement < index) {
2037            nextElement(index, true);
2038          }
2039          else if(cache.activeElement > index) {
2040            prevElement(index);
2041          }
2042        });
2043        
2044        gesamtbreite += $dot.outerWidth(true);
2045      }
2046      
2047      if(gesamtbreite <= cache.containerWidth) {
2048        zusaetzlicheHoehe = $sprungmarken.outerHeight(true);
2049        cache.containerHeight += zusaetzlicheHoehe;
2050        $obj.css('height', cache.containerHeight+'px');
2051        $sprungmarken.show();
2052        cache.sprungmarkenActive = true;
2053      }
2054    };
2055
2056    return this.each(function() {
2057      var zIndex = 99;
2058      
2059      //cache initialisieren
2060      cache.sliderActive = false;
2061      
2062      $obj = $(this);
2063      
2064      $elements = $obj.find('.sliderteaser_slide');
2065      
2066      cache.count = 0;
2067      cache.containerWidth = $obj.width();
2068      
2069      $elements.each(function() {
2070        cache.count++;
2071        //zIndex--;
2072        left = cache.containerWidth;
2073        
2074        if(cache.count == 1) left = 0;
2075        
2076        $element = $(this);
2077        $element.attr('data-index', cache.count);
2078        $element.css('top', '0');
2079        $element.css('left', left+'px');
2080        //$element.css('z-index', zIndex);
2081        
2082        //$element.children('.sliderElement_in').css('position', 'relative');
2083        //$element.children('.sliderElement_in').css('top', '0');
2084        //$element.children('.sliderElement_in').css('display', 'block');
2085      });
2086      
2087      if(options.autostart) {
2088        autostart();
2089      }
2090      
2091      if(options.pfeile) {
2092        initArrows();
2093      }
2094      
2095      if(options.sprungmarken) {
2096        initSprungmarken();
2097      }
2098      else {
2099        cache.sprungmarkenActive = false;
2100      }
2101      
2102      setActiveElement(1);
2103      
2104      $obj.mouseenter(function() {
2105        var in_obj = jQuery(this);
2106        
2107        if(options.pfeile == 1) in_obj.find('.sliderArrow').fadeTo(200, 1);
2108        if(options.sprungmarken == 1) in_obj.find('.sliderSprungmarkenContainer').fadeTo(200, 1);
2109        
2110        if(options.beschreibung) {
2111          in_obj.children('.sliderElement').children('.sliderElement_in').children('.sliderHoverContainer').addClass('hover');
2112          in_obj.children('.sliderElement').children('.sliderElement_in').children('.sliderHoverContainer').children('.sliderBeschreibung').show(200);
2113        }
2114      });
2115      
2116      $obj.mouseleave(function() {
2117        var in_obj = jQuery(this);
2118        
2119        if(options.pfeile == 1) in_obj.find('.sliderArrow').fadeTo(200, 0);
2120        if(options.sprungmarken == 1) in_obj.find('.sliderSprungmarkenContainer').fadeTo(200, 0);
2121        
2122        if(options.beschreibung) {
2123          in_obj.children('.sliderElement').children('.sliderElement_in').children('.sliderHoverContainer').children('.sliderBeschreibung').hide(200, function() {
2124            in_obj.children('.sliderElement').children('.sliderElement_in').children('.sliderHoverContainer').removeClass('hover');
2125          });
2126        }
2127      });
2128    });
2129
2130  };
2131})(jQuery);
2132(function($) {
2133  $.fn.isOnScreenV = function(){
2134      var viewport = {};
2135      viewport.top = $(window).scrollTop();
2136      viewport.bottom = viewport.top + $(window).height();
2137      var bounds = {};
2138      bounds.top = this.offset().top;
2139      bounds.bottom = bounds.top + this.outerHeight();
2140      return ((bounds.top <= viewport.bottom) && (bounds.bottom >= viewport.top));
2141  };
2142
2143  $.fn.isOnScreen = function(){
2144    var win = $(window);
2145    var viewport = {
2146      top : win.scrollTop(),
2147      left : win.scrollLeft()
2148    };
2149    viewport.right = viewport.left + win.width();
2150    viewport.bottom = viewport.top + win.height();
2151    var bounds = this.offset();
2152    bounds.right = bounds.left + this.outerWidth();
2153    bounds.bottom = bounds.top + this.outerHeight();
2154    return (!(viewport.right < bounds.left || viewport.left > bounds.right || viewport.bottom < bounds.top || viewport.top > bounds.bottom));
2155  };
2156
2157  $.fn.isOnScreenPercent = function(x, y){
2158    //isOnScreenPercent(0.5, 0.5) would return true if the element had at least 50% of it’s height and width within the viewport rectangle
2159    if(x == null || typeof x == 'undefined') x = 1;
2160    if(y == null || typeof y == 'undefined') y = 1;
2161
2162    var win = $(window);
2163
2164    var viewport = {
2165        top : win.scrollTop(),
2166        left : win.scrollLeft()
2167    };
2168    viewport.right = viewport.left + win.width();
2169    viewport.bottom = viewport.top + win.height();
2170
2171    var height = this.outerHeight();
2172    var width = this.outerWidth();
2173
2174    if(!width || !height){
2175        return false;
2176    }
2177
2178    var bounds = this.offset();
2179    bounds.right = bounds.left + width;
2180    bounds.bottom = bounds.top + height;
2181
2182    var visible = (!(viewport.right < bounds.left || viewport.left > bounds.right || viewport.bottom < bounds.top || viewport.top > bounds.bottom));
2183
2184    if(!visible){
2185        return false;
2186    }
2187
2188    var deltas = {
2189        top : Math.min( 1, ( bounds.bottom - viewport.top ) / height),
2190        bottom : Math.min(1, ( viewport.bottom - bounds.top ) / height),
2191        left : Math.min(1, ( bounds.right - viewport.left ) / width),
2192        right : Math.min(1, ( viewport.right - bounds.left ) / width)
2193    };
2194
2195    return (deltas.left * deltas.right) >= x && (deltas.top * deltas.bottom) >= y;
2196  };
2197})(jQuery);
2198(function($) {
2199  $.fn.nolisVorZurueck=function(options) {
2200    //TODO carousel
2201
2202    var defaults = {
2203      'next': 'a.seitenschaltung_weiter',
2204      'prev': 'a.seitenschaltung_zurueck',
2205      'containerclass' : 'div.nolis_content_seitenschaltung_container'
2206    }
2207
2208    var obj; //Container s. return
2209    var options=$.extend(defaults, options);
2210
2211    var container_active=1;
2212    var container_counter=0;
2213
2214
2215    function init() {
2216      $(options.prev, obj).hide();
2217
2218      //Alle Container ausblenden
2219      $(options.containerclass, obj).each(function() {
2220        container_counter++;
2221
2222        //Ersten Container anzeigen
2223        if(1==container_counter) $(this).show();
2224        else $(this).hide();
2225
2226        //data-attrib schreiben
2227        $(this).attr('data-seitenzahl', container_counter);
2228      });
2229    }
2230
2231    function next() {
2232      //Inhalte wechseln
2233      if(container_active<container_counter) {
2234        container_active++;
2235
2236        $(obj).find("[data-seitenzahl='"+(container_active-1)+"']").hide();
2237        $(obj).find("[data-seitenzahl='"+container_active+"']").show();
2238
2239        //scroll to
2240        if($(obj).isOnScreenPercent()==false) {
2241          window.location.hash = "#"+$(obj).attr('id');
2242        }
2243      }
2244
2245      //Seitenschaltung ein-, ausblenden
2246      if(container_active==container_counter) {
2247        $(options.next, obj).hide();
2248      }
2249      $(options.prev, obj).show();
2250    }
2251
2252    function prev() {
2253      //Inhalte wechseln
2254      if(container_active>1) {
2255        container_active--;
2256
2257        $(obj).find("[data-seitenzahl='"+(container_active+1)+"']").hide();
2258        $(obj).find("[data-seitenzahl='"+container_active+"']").show();
2259
2260        //scroll to
2261        if($(obj).isOnScreenPercent()==false) {
2262          window.location.hash = "#"+$(obj).attr('id');
2263        }
2264      }
2265
2266      //Seitenschaltung ein-, ausblenden
2267      if(container_active==1) {
2268        $(options.prev, obj).hide();
2269      }
2270      $(options.next, obj).show();
2271    }
2272
2273    function showSeite(seitenzahl) {
2274      //var max=$(options.containerclass, obj).length;
2275
2276      //Inhalte wechseln
2277      if(container_active!=seitenzahl) {
2278        container_active=seitenzahl;
2279
2280        $(obj).find("[data-seitenzahl][data-seitenzahl!='"+container_active+"']").hide();
2281        $(obj).find("[data-seitenzahl='"+container_active+"']").show();
2282
2283        //scroll to
2284        if($(obj).isOnScreenPercent()==false) {
2285          window.location.hash = "#"+$(obj).attr('id');
2286        }
2287      }
2288
2289      //Seitenschaltung ein-, ausblenden
2290      $(options.prev, obj).hide();
2291      $(options.next, obj).hide();
2292      if(container_active<container_counter) {
2293        $(options.next, obj).show();
2294      }
2295      if(container_active>1) {
2296        $(options.prev, obj).show();
2297      }
2298    }
2299
2300    return this.each(function() {
2301      obj=$(this);
2302
2303      init();
2304
2305      $(options.next, obj).click( function() { next(); } );
2306      $(options.prev, obj).click( function() { prev(); } );
2307
2308      //Nach außen bekannt machen
2309      this.showSeite=showSeite;
2310    });
2311  };
2312})(jQuery);
2313var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};
2314$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
2315$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");
2316var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};
2317$jscomp.polyfillUnisolated=function(a,b,c,d){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
2318$jscomp.polyfillIsolated=function(a,b,c,d){var e=a.split(".");a=1===e.length;d=e[0];
2318d=!a&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var g=e[f];g in d||(d[g]={});d=d[g]}e=e[e.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?d[e]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:b}):b!==c&&($jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+e,e=$jscomp.propertyToPolyfillSymbol[e],
2319$jscomp.defineProperty(d,e,{configurable:!0,writable:!0,value:b})))};$jscomp.FORCE_POLYFILL_PROMISE=!1;
2320$jscomp.polyfill("Promise",function(a){function b(){this.batch_=null}function c(a){return a instanceof e?a:new e(function(b,c){b(a)})}if(a&&!$jscomp.FORCE_POLYFILL_PROMISE)return a;b.prototype.asyncExecute=function(a){if(null==this.batch_){this.batch_=[];var b=this;this.asyncExecuteFunction(function(){b.executeBatch_()})}this.batch_.push(a)};var d=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(a){d(a,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=
2321this.batch_;this.batch_=[];for(var b=0;b<a.length;++b){var c=a[b];a[b]=null;try{c()}catch(l){this.asyncThrow_(l)}}}this.batch_=null};b.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var e=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var b=this.createResolveAndReject_();try{a(b.resolve,b.reject)}catch(k){b.reject(k)}};e.prototype.createResolveAndReject_=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=!1;
2322return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};e.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof e)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var b=null!=a;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};e.prototype.resolveToNonPromiseObj_=function(a){var b=void 0;try{b=a.then}catch(k){this.reject_(k);return}"function"==typeof b?
2323this.settleSameAsThenable_(b,a):this.fulfill_(a)};e.prototype.reject_=function(a){this.settle_(2,a)};e.prototype.fulfill_=function(a){this.settle_(1,a)};e.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=0;a<this.onSettledCallbacks_.length;++a)f.asyncExecute(this.onSettledCallbacks_[a]);
2324this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};e.prototype.settleSameAsThenable_=function(a,b){var c=this.createResolveAndReject_();try{a.call(b,c.resolve,c.reject)}catch(l){c.reject(l)}};e.prototype.then=function(a,b){function c(a,b){return"function"==typeof a?function(b){try{d(a(b))}catch(m){f(m)}}:b}var d,f,g=new e(function(a,b){d=a;f=b});this.callWhenSettled_(c(a,d),c(b,f));return g};
2325e.prototype.catch=function(a){return this.then(void 0,a)};e.prototype.callWhenSettled_=function(a,b){function c(){switch(d.state_){case 1:a(d.result_);break;case 2:b(d.result_);break;default:throw Error("Unexpected state: "+d.state_);}}var d=this;null==this.onSettledCallbacks_?f.asyncExecute(c):this.onSettledCallbacks_.push(c)};e.resolve=c;e.reject=function(a){return new e(function(b,c){c(a)})};e.race=function(a){return new e(function(b,d){for(var e=$jscomp.makeIterator(a),f=e.next();!f.done;f=e.next())c(f.value).callWhenSettled_(b,
2326d)})};e.all=function(a){var b=$jscomp.makeIterator(a),d=b.next();return d.done?c([]):new e(function(a,e){function f(b){return function(c){g[b]=c;h--;0==h&&a(g)}}var g=[],h=0;do g.push(void 0),h++,c(d.value).callWhenSettled_(f(g.length-1),e),d=b.next();while(!d.done)})};return e},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};
2327$jscomp.SymbolClass=function(a,b){this.$jscomp$symbol$id_=a;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:b})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};$jscomp.Symbol=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(c||"")+"_"+b++,c)}var b=0;return a}();
2328$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
2329$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.asyncIterator;a||(a=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1};
2330$jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.generator={};
vendor: 6,294 bytes, lines 2330-2345
2330$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
2331$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
2332$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
2333$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.value,b)};
2334$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0};
2335$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0};
2336$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
2337$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
2338$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
2339$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(a){return{value:a,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
2340$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
2341$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var d=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var e=d.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,e);return this.nextStep_()};
2342$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
2343$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};$jscomp.initSymbolIterator();this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&$jscomp.setPrototypeOf(b,a.prototype);return b};
2344$jscomp.asyncExecutePromiseGenerator=function(a){function b(b){return a.next(b)}function c(b){return a.throw(b)}return new Promise(function(d,e){function f(a){a.done?d(a.value):Promise.resolve(a.value).then(b,c).then(f,e)}f(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
2345$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
2346$jscomp.iteratorFromArray=function(a,b){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");
2347$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};$jscomp.polyfill("Object.entries",function(a){return a?a:function(a){var b=[],d;for(d in a)$jscomp.owns(a,d)&&b.push([d,a[d]]);return b}},"es8","es3");$jscomp.polyfill("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}},"es6","es3");
2348$jscomp.polyfill("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var e=b.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=b[c];if(f===a||Object.is(f,a))return!0}return!1}},"es7","es3");
2349$jscomp.checkStringArgs=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(a,c){return-1!==$jscomp.checkStringArgs(this,a,"includes").indexOf(a,c||0)}},"es6","es3");
2350var NBox=function(a,b,c,d,e){d=void 0===d?"default.php":d;e=void 0===e?{}:e;this._wrapper_identifier="";this._ajaxParams={};this._close=!1;this._regex="";this._controlListener=this._regex_validation=!0;this._input_names=[];this._color=this._header="";this._comparePW=void 0;this._focusElements=[];this._helperkey=this._portal=!1;this._transitionSpeed=.4;this._height=500;this._validation=!1;this._validators={};this.inputConfig={};this.standardConfig={alert:{header:"Achtung",close:!1,draggable:!0,color:"red",
2351regex:"",controlListener:!0,ajax:{buttons:{button1_nolis_box:{title:"OK",value:1,focus:1}}}},confirm:{header:"Achtung",close:!0,draggable:!0,color:"red",regex:"",controlListener:!0,ajax:{buttons:{button1_nolis_box:{title:"OK",value:1,focus:0},button2_nolis_box:{title:"Abbrechen",value:-1,focus:1}}}},prompt:{header:"Eingabeaufforderung",close:!0,draggable:!0,color:"blue",regex:"^.{1,}$",controlListener:!0,input:{prefill:"",class:"input",containerClass:"",id:"prompt-input-nolis-box",name:"prompt-input-nolis-box",
2352placeholder:"Hinweis: Eingabe darf nicht leer sein",validationJavaScript:null},ajax:{buttons:{button1_nolis_box:{title:"OK",value:1,focus:1},button2_nolis_box:{title:"Abbrechen",value:-1,focus:0}}}},password:{header:"Passworteingabe",close:!0,draggable:!0,color:"blue",regex:"^.{1,}$",controlListener:!0,input:{prefill:"",class:"input",id:"password-input-nolis-box",name:"password-input-nolis-box",placeholder:"Hinweis: Passwort darf nicht leer sein"},ajax:{buttons:{button1_nolis_box:{title:"OK",value:1,
2353focus:1},button2_nolis_box:{title:"Abbrechen",value:-1,focus:0}}}},custom:{header:"Custom",close:!0,draggable:!0,color:"blue",controlListener:!0,ajax:{buttons:{button1_nolis_box:{title:"OK",value:1}}}}};this._identifier=b;this._ajaxBasePath=c;this._ajaxFile=d;this._ajax=c+d;this._type=a;"object"!==typeof e?console.error("ajaxParams must be type of Object"):this._ajaxParams=e;jQuery(".overformcontainer").css("z-index","15");this.wrapper=this.preloadContainer();void 0!=this.standardConfig[this._type].input&&
2354this.setInputConfig(this.standardConfig[this._type].input)};NBox.prototype.horizontalMid=function(){return jQuery("body").width()/2-jQuery("#"+this._wrapper_identifier).width()/2};NBox.prototype.verticalMid=function(){var a=jQuery("#"+this._wrapper_identifier+"_infotext")[0].scrollHeight,b=jQuery("#"+this._wrapper_identifier).height();a>this._height&&(b-=a-this._height);return jQuery("body").height()/2-b/2};NBox.prototype.mainHTMLBase=function(){return jQuery.parseHTML('<div class="box-content">\n      <div id="infobox-nolis-box" class="infobox-nolis-box mt-small">\n      </div>\n    </div>')};
2355NBox.prototype.innerHTMLBase=function(){return jQuery.parseHTML('<div class="infobox_in nolis-box-in"></div>')};
2356NBox.prototype.getFAIcon=function(a){var b="fal fa-circle-exclamation";switch(a){case "alert":b="fal fa-exclamation-triangle";break;case "confirm":b="fal fa-circle-question";break;case "prompt":b="fal fa-pen-field";break;case "password":b="fal fa-key fa-fw";break;case "closebutton":return'<i aria-hidden="true" id="nolis-box-kopf-closebutton" role="presentation" class="far fa-times"></i>'}return jQuery.parseHTML('<i aria-hidden="true" id="nolis-box-kopf-icon" role="presentation" class="'+b+'"></i>')};
2357NBox.prototype.getInputConfigByKey=function(a){return this.inputConfig[a]?this.inputConfig[a]:void 0!==this.standardConfig[this._type].input[a]?this.standardConfig[this._type].input[a]:""};
2358NBox.prototype.getStandardInput=function(a){var b="";if("prompt"==a){b=this.getInputConfigByKey("placeholder");var c=this.getInputConfigByKey("class"),d=this.getInputConfigByKey("containerClass"),e=this.getInputConfigByKey("id"),f=this.getInputConfigByKey("prefill"),g=this.getInputConfigByKey("name");a=this.getInputConfigByKey("validationJavaScript");b=this._portal?'<p id="hinweistext-nolis-box" class="text-red" style="margin: 0.9rem 0 0;">Die Eingabe entspricht nicht dem gew\u00fcnschten Format!</p>\n                <div class="inputfield-nolis-box nolis_formular '+
2359d+'" id="inputfield">\n                  <div class="form-item form-item-input">\n                    <input placeholder="'+b+'" type="text" class="'+c+'" id="'+e+'" name="'+g+'" value="'+f+'">\n                  </div>\n                </div>':'<p id="hinweistext-nolis-box" class="text-red" style="margin: 0.9rem 0 0;">Die Eingabe entspricht nicht dem gew\u00fcnschten Format!</p>\n                <div class="inputfield-nolis-box '+d+'" id="inputfield">\n                  <input placeholder="'+b+'" type="text" class="'+
2360c+'" id="'+e+'" name="'+g+'" value="'+f+"\"><div id='validation_status'></div>\n                </div>";null!=a&&a()}else"password"==a&&(a=this.getInputConfigByKey("placeholder"),b=this.getInputConfigByKey("class"),c=this.getInputConfigByKey("id"),d=this.getInputConfigByKey("prefill"),e=this.getInputConfigByKey("name"),b=this._portal?'<div class="inputfield-nolis-box nolis_formular" id="inputfield">\n                  <p id="hinweistext-nolis-box" class="text-red">Das Passwort erf\u00fcllt nicht die Vorraussetzungen!</p>\n                  <div class="form-item form-item-input">\n                  <input placeholder="'+
2361a+'" type="password" class="'+b+'" id="'+c+'" name="'+e+'" value="'+d+'">\n                  </div>\n                </div>':'<div class="inputfield-nolis-box" id="inputfield">\n                  <p id="hinweistext-nolis-box" class="text-red">Das Passwort erf\u00fcllt nicht die Vorraussetzungen!</p>\n                  <input placeholder="'+a+'" type="password" class="'+b+'" id="'+c+'" name="'+e+'" value="'+d+'">\n                </div>');return jQuery.parseHTML(b)};
2362NBox.prototype.getInputValue=function(a,b){if("radio"==b)return jQuery('input[name="'+a+'"]:checked').val();if("checkbox"==b){var c=jQuery('input[name="'+a+'"]:checked'),d=[];c.each(function(a){d.push(c[a].value)});return d}return"select"==b?jQuery('[name="'+a+'"]').find(":selected").val():jQuery('input[name="'+a+'"]').val()};NBox.prototype.getInputType=function(a){return jQuery('[name="'+a+'"]').is("input")?jQuery('[name="'+a+'"]').attr("type"):String(j
2362Query('[name="'+a+'"]').get(0).tagName).toLowerCase()};
2363NBox.prototype.getReturnFromInputs=function(){var a=this,b={};0<this._input_names.length&&this._input_names.forEach(function(c){"radio"==jQuery('input[name="'+c+'"]').attr("type")?void 0!==jQuery('input[name="'+c+'"]:checked')[0]?b[c]=a.getInputValue(c,"radio"):b[c]=void 0:"checkbox"==jQuery('input[name="'+c+'"]').attr("type")?void 0!==jQuery('input[name="'+c+'"]:checked')?0<jQuery('input[name="'+c+'"]:checked').length?b[c]=a.getInputValue(c,"checkbox"):b[c]=void 0:b[c]=void 0:jQuery('[name="'+c+
2364'"]').is("select")?b[c]=a.getInputValue(c,"select"):b[c]=a.getInputValue(c,"input")});return b};NBox.prototype.getCurrentFocus=function(){for(var a=0;a<this._focusElements.length;a++)if(void 0!=this._focusElements[a].focus&&1==this._focusElements[a].focus)return a};NBox.prototype.checkFocusButton=function(a){return 1==this._focusElements[a].isInput?!1:!0};
2365NBox.prototype.getCurrentFocusButton=function(){for(var a=0;a<this._focusElements.length;a++)if(void 0!=this._focusElements[a].focus_button&&1==this._focusElements[a].focus)return a};NBox.prototype.setInputConfig=function(a){this.inputConfig=a};
2366NBox.prototype.setConfig=function(a,b){a=void 0===a?{}:a;b=void 0===b?!1:b;this.setHeader(a.header);this.setAJAX(a.ajaxparams);this.setTransitionSpeed(a.transitionSpeed);this.setCloseButton(a.closebutton);this.setDraggable(a.draggable);this.setColor(a.color);this.setControlListeners(a.controlListener);"password"==this._type&&void 0!=a.comparePW&&(this.setComparePW(a.comparePW),b=!1);b&&this.setRegex(a.regex);void 0!=a.input&&this.setInputConfig(a.input)};
2367NBox.prototype.setCloseButton=function(a){this._close=void 0==a?this.standardConfig[this._type].close:a};NBox.prototype.setControlListeners=function(a){this._controlListener=void 0==a?this.standardConfig[this._type].controlListener:a};NBox.prototype.setHeader=function(a){this._header=void 0==a||""==a?this.standardConfig[this._type].header:a};NBox.prototype.setAJAX=function(a){this._ajaxParams=void 0==a||"object"==typeof obj?this.clone(this.standardConfig[this._type].ajax):a};
2368NBox.prototype.setTransitionSpeed=function(a){this._transitionSpeed=void 0==a?this._transitionSpeed:a};NBox.prototype.setDraggable=function(a){this._draggable=void 0==a?this.standardConfig[this._type].draggable:a};NBox.prototype.setColor=function(a){this._color=void 0==a?this.standardConfig[this._type].color:a};NBox.prototype.setPortal=function(a){this._portal=a};NBox.prototype.setComparePW=function(a){this._comparePW=void 0==a?void 0:a};NBox.prototype.removeErrortext=function(){jQuery(".nbox-custom-error").remove()};
2369NBox.prototype.setButtonListener=function(a,b,c){var d=this,e=!0;jQuery("#"+a).on("click",function(a){"custom"==d._type&&d.removeErrortext();if(!jQuery(this).hasClass("disabled")){!d._validation||1!=b.trigger_validation&&void 0!==b.trigger_validation||(e=d.customValidate());if(void 0!==b.onclick&&"function"===typeof b.onclick)b.onclick(a);(void 0===b.no_resolve||0==b.no_resolve)&&e&&c(b.value)}});if(1==d._close)jQuery("#close_"+d._identifier).on("click",function(a){c(-1)})};
2370NBox.prototype.setKeyListener=function(){var a=this;jQuery(document).on("keyup",function(b){a._helperkey&&a._clickKey(b)});jQuery(document).on("keydown",function(b){"13"!=b.keyCode&&"9"!=b.keyCode||event.preventDefault();a._helperkey=!0});jQuery(document).on("keypress",function(a){"13"!=a.keyCode&&"9"!=a.keyCode||event.preventDefault()})};
2371NBox.prototype._clickKey=function(a){this._helperkey=!1;if(13===a.keyCode)this._focusElements.forEach(function(a){1==a.focus_button&&jQuery("#"+a.id)[0].click()});else if(9===a.keyCode)if(event.preventDefault(),1<this._focusElements.length){a=this.getCurrentFocus();for(var b=!1,c=a,d;!b;)c++,c>=this._focusElements.length&&(c=0),b=(d=this.checkFocusButton(c))&&jQuery("#"+this._focusElements[c].id).hasClass("disabled")?!1:!0;this._focusElements[a].focus=0;if(d){for(d=0;d<this._focusElements.length;d++)0==
2372this._focusElements[d].isInput&&c!=d&&(this._focusElements[d].focus_button=0,jQuery("#"+this._focusElements[d].id).removeClass("like-focus"));this._focusElements[a].focus_button=0;jQuery("#"+this._focusElements[a].id).removeClass("like-focus");this._focusElements[c].focus=1;this._focusElements[c].focus_button=1;jQuery("#"+this._focusElements[c].id).addClass("like-focus")}else this._focusElements[a].focus_button=1,this._focusElements[c].focus=1;jQuery("#"+this._focusElements[c].id)[0].focus()}else 1==
2373this._focusElements.length&&jQuery("#"+this._focusElements[0].id)[0].focus();else if(37==a.keyCode)if(event.preventDefault(),1<this._focusElements.length){a=this.getCurrentFocus();b=!1;for(c=a;!b;)--c,0>c&&(c=this._focusElements.length-1),b=(d=this.checkFocusButton(c))&&jQuery("#"+this._focusElements[c].id).hasClass("disabled")?!1:!0;this._focusElements[a].focus=0;if(d){for(d=0;d<this._focusElements.length;d++)0==this._focusElements[d].isInput&&c!=d&&(this._focusElements[d].focus_button=0,jQuery("#"+
2374this._focusElements[d].id).removeClass("like-focus"));this._focusElements[a].focus_button=0;jQuery("#"+this._focusElements[a].id).removeClass("like-focus");this._focusElements[c].focus=1;this._focusElements[c].focus_button=1;jQuery("#"+this._focusElements[c].id).addClass("like-focus")}else this._focusElements[a].focus_button=1,this._focusElements[c].focus=1;jQuery("#"+this._focusElements[c].id)[0].focus()}else 1==this._focusElements.length&&jQuery("#"+this._focusElements[0].id)[0].focus();else if(39==
2375a.keyCode)if(event.preventDefault(),1<this._focusElements.length){a=this.getCurrentFocus();b=!1;for(c=a;!b;)c+=1,c>=this._focusElements.length&&(c=0),b=(d=this.checkFocusButton(c))&&jQuery("#"+this._focusElements[c].id).hasClass("disabled")?!1:!0;this._focusElements[a].focus=0;if(d){for(d=0;d<this._focusElements.length;d++)0==this._focusElements[d].isInput&&c!=d&&(this._focusElements[d].focus_button=0,jQuery("#"+this._focusElements[d].id).removeClass("like-focus"));this._focusElements[a].focus_button=
23760;jQuery("#"+this._focusElements[a].id).removeClass("like-focus");this._focusElements[c].focus=1;this._focusElements[c].focus_button=1;jQuery("#"+this._focusElements[c].id).addClass("like-focus")}else this._focusElements[a].focus_button=1,this._focusElements[c].focus=1;jQuery("#"+this._focusElements[c].id)[0].focus()}else 1==this._focusElements.length&&jQuery("#"+this._focusElements[0].id)[0].focus()};
2377NBox.prototype.setRegex=function(a){this._regex=void 0==a?this.standardConfig[this._type].regex:a;if(""==this._regex||void 0==this._regex||"prompt"!=this._type&&"password"!=this._type||!this._regex_validation)this._regex_validation||jQuery("#hinweistext-nolis-box").css("visibility","hidden");else{a=this._ajaxParams.buttons;var b=Object.keys(a)[0],c;void 0!=Object.keys(a)[1]&&(c=Object.keys(a)[1]);var d=new RegExp(this._regex);jQuery("#"+b).addClass("disabled");jQuery("#hinweistext-nolis-box").css("visibility",
2378"hidden");var e=this;jQuery('input[name="'+this._input_names[0]+'"]').keyup(function(){if(d.test(this.value)){if(jQuery("#"+b).hasClass("disabled")){jQuery("#"+b).removeClass("disabled");if(1==e._ajaxParams.buttons[Object.keys(e._ajaxParams.buttons)[0]].focus)for(var a=0;a<e._focusElements.length;a++)1!=e._focusElements[a].isInput&&(e._focusElements[a].id==b?(jQuery("#"+e._focusElements[a].id).addClass("like-focus"),e._focusElements[a].focus_button=1):(jQuery("#"+e._focusElements[a].id).removeClass("like-focus"),
2379e._focusElements[a].focus_button=0));jQuery("#hinweistext-nolis-box").css("visibility","hidden")}}else if(!jQuery("#"+b).hasClass("disabled")){jQuery("#"+b).addClass("disabled");if(void 0!=c)for(a=0;a<e._focusElements.length;a++)1!=e._focusElements[a].isInput&&(e._focusElements[a].id==c?(jQuery("#"+e._focusElements[a].id).addClass("like-focus"),e._focusElements[a].focus_button=1):(jQuery("#"+e._focusElements[a].id).removeClass("like-focus"),e._focusElements[a].focus_button=0));jQuery("#hinweistext-nolis-box").css("visibility",
2380"visible")}})}};
2380NBox.prototype.setValidation=function(a){this._validation=!0;this._validators=a};NBox.prototype.toggleRegexValidation=function(a){this._regex_validation=a};NBox.prototype.preloadContainer=function(a){a=void 0===a?"wrapper_"+this._identifier:a;var b=jQuery("<div></div>");b.attr("id",a);b.addClass("nolis-box");b.css("visibility","hidden");this._wrapper_identifier=a;return b[0]};
2381NBox.prototype.makeHeader=function(){var a=this;if(0==jQuery("#kopf_"+this._identifier).length){var b=jQuery("<div></div>");b.addClass("nolis-box-kopf");b.attr("id","kopf_"+this._identifier);this.getFAIcon(this._type);var c=jQuery("<h4></h4>");c=c.text(this._header);if(1==this._close){var d=jQuery("<a></a>");d.attr("id","close_"+this._identifier);d.attr("title","Schlie\u00dfen");d.addClass("nolis-close-a");d.html(this.getFAIcon("closebutton"));d.on("click",function(b){a.destroy()})}b.append(c);1==
2382this._close&&b.append(d);jQuery(this.wrapper).append(b)}};
2383NBox.prototype.makeFooter=function(){if(0==jQuery("#footer_"+this._identifier).length){var a=jQuery("<div></div>");a.addClass("nolis-box-footer");a.attr("id","footer_"+this._identifier);if(this._ajaxParams.hasOwnProperty("buttons")){var b=jQuery("<div></div>");jQuery(b).addClass("box-buttons");jQuery(b).addClass("mt-small");for(var c=$jscomp.makeIterator(Object.entries(this._ajaxParams.buttons)),d=c.next();!d.done;d=c.next()){var e=$jscomp.makeIterator(d.value);d=e.next().value;e=e.next().value;d=
2384jQuery('<button type="button" class="aktionsbox" id="'+d+'">'+e.title+"</button>");b.append(d)}this._ajaxParams.hasOwnProperty("button_container_class")&&"object"==typeof this._ajaxParams.button_container_class&&this._ajaxParams.button_container_class.forEach(function(a){return b.addClass(a)});a.append(b)}jQuery(this.wrapper).append(a)}};
2385NBox.prototype.makeBackground=function(){var a=jQuery("div#"+this._wrapper_identifier),b="",c="";a.hasClass("hideonclick")&&(b=" onclick=\"jQuery('.overformcontainer').hide(); jQuery('.background-area').hide();\"");a.hasClass("hiddenbg")&&(c=' style="opacity:0;"');0<jQuery(".fullscreenSize").length?jQuery(".fullscreenSize").append('<div class="ncb background-area nolis-box-dimmer '+this._identifier+'-background-area"'+b+c+"></div>"):jQuery("body").append('<div id="'+this._wrapper_identifier+'-background" class="ncb background-area nolis-box-dimmer '+
2386this._identifier+'-background-area"'+b+c+"></div>")};NBox.prototype.removeBackground=function(){this.destroyContainer("."+this._identifier+"-background-area");jQuery(".overformcontainer").css("z-index","20")};
2387NBox.prototype.loadContent=function(){var a=this,b,c,d,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return b=a,"custom"!=a._type?(jQuery(a.wrapper).addClass(a._color),a.makeHeader(),c=a.mainHTMLBase(),d=a.innerHTMLBase(),jQuery(d).append('<div id="'+a._wrapper_identifier+'_infotext">'+a._ajaxParams.text+"</div>"),jQuery(c).find(".infobox-nolis-box").html(d),jQuery(c).find(".infobox_in").after(a.getStandardInput(a._type)),jQuery(a.wrapper).find(".nolis-box-kopf").after(c),
2388a.makeFooter(),f.return(!0)):f.yield(jQuery.ajax({url:a._ajax,type:"post",dataType:"html",data:a._ajaxParams}).fail(function(a,b){console.error(a);console.error("Request failed: "+b);return!1}).done(function(a){b.makeHeader();b.wrapper=jQuery(b.wrapper).append(a);b.makeFooter();return!0}),3);2!=f.nextAddress&&(e=f.yieldResult);return f.return(e)})};NBox.prototype.destroy=function(){this.destroyListener();this.destroyContainer("#"+this._wrapper_identifier);this.removeBackground()};
2389NBox.prototype.destroyListener=function(){jQuery(document).off("keyup",this._setKeyListener);jQuery(document).off("keydown",this._setKeyListener2);jQuery(document).off("keypress",this._setKeyListener3)};NBox.prototype.destroyContainer=function(a){jQuery(void 0===a?"":a).remove()};
2390NBox.prototype.createPromise=function(){var a=this._ajaxParams.buttons,b=this;return new Promise(function(c){if("complete"===document.readyState)for(var d=$jscomp.makeIterator(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=$jscomp.makeIterator(e.value);e=f.next().value;f=f.next().value;b.setButtonListener(e,f,c)}else jQuery(window).on("load",function(){for(var d=$jscomp.makeIterator(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=$jscomp.makeIterator(e.value);e=f.next().value;f=f.next().value;
2391b.setButtonListener(e,f,c)}})})};NBox.prototype.setStartFocus=function(){var a=this._ajaxParams.buttons;jQuery(document).ready(function(){for(var b=$jscomp.makeIterator(Object.entries(a)),c=b.next();!c.done;c=b.next()){c=$jscomp.makeIterator(c.value);var d=c.next().value;if(1==c.next().value.focus){jQuery("#"+d).addClass("like-focus");jQuery("#"+d).focus();break}}})};
2392NBox.prototype.addBoxToDOM=function(a,b){b=void 0===b?0:b;0==jQuery(".ncb.background-area").length&&this.makeBackground();0<jQuery(".fullscreenSize").length?jQuery(this.wrapper).appendTo(jQuery(".fullscreenSize")):1==b?jQuery(this.wrapper).appendTo("#"+this._wrapper_identifier+"-background"):jQuery(this.wrapper).appendTo("body");1==this._draggable&&(jQuery(this.wrapper).draggable({handle:"div#kopf_"+this._identifier,containment:"document"}),jQuery("div#kopf_"+this._identifier).addClass("draggable"));
2393"custom"==this._type?this.transitionTop(a):0==b&&this.dragMid();this.setStartFocus();"prompt"!=this._type&&"password"!=this._type||this.focusInput();1==this._controlListener&&this.setKeyListener();jQuery(this.wrapper).css("visibility","visible")};NBox.prototype.focusInput=function(){"prompt"==this._type?jQuery(document).ready(function(){jQuery("#prompt-input-nolis-box").focus()}):"password"==this._type&&jQuery(document).ready(function(){jQuery("#password-input-nolis-box").focus()})};
2394NBox.prototype.readInputNames=function(){var a=this,b=jQuery("#wrapper_"+this._identifier+" :input");b.each(function(c){a._input_names.includes(b[c].name)||"button"==b[c].type||a._input_names.push(b[c].name)})};NBox.prototype.setInputListener=function(){var a=this;this._input_names.forEach(function(b){jQuery("#"+b).on("focus",function(b){for(b=0;b<a._focusElements;b++)a._focusElements[b].focus=a._focusElements[b].id==this.id?1:0})})};
2395NBox.prototype.dragMid=function(){var a=this.verticalMid(),b=this.horizontalMid();jQuery(this.wrapper).css("top",a);jQuery(this.wrapper).css("left",b)};NBox.prototype.transitionTop=function(a){var b=jQuery(".nolis-box");jQuery(this.wrapper).css("left",this.horizontalMid());jQuery(this.wrapper).css("top",0-b.height()-10);b.animate({top:"0px"},1E3*a)};NBox.prototype.hasInputs=function(){return"alert"==this._type||"confirm"==this._type?!1:!0};
2396NBox.prototype.setFocusElements=function(){var a=this,b=0,c=!1;0<this._input_names.length&&(c=!0,this._input_names.forEach(function(c){var d={};d.id=c;d.isInput=1;d.focus=0==b?1:0;a._focusElements[b]=d;b++}));for(var d=$jscomp.makeIterator(Object.entries(this._ajaxParams.buttons)),e=d.next();!e.done;e=d.next()){var f=$jscomp.makeIterator(e.value);e=f.next().value;f=f.next().value;e={id:e,isInput:0};c?(e.focus=0,e.focus_button=1==f.focus?1:0):(e.focus_button=0,1==f.focus?(e.focus=1,e.focus_button=
23971):e.focus=0);this._focusElements[b]=e;b++}};
2398NBox.prototype.checkFocusEmpty=function(){for(var a=Object.keys(this._ajaxParams.buttons)[1],b=$jscomp.makeIterator(Object.entries(this._ajaxParams.buttons)),c=b.next();!c.done;c=b.next()){var d=$jscomp.makeIterator(c.value);c=d.next().value;if(1==d.next().value.focus&&jQuery("#"+c).hasClass("disabled"))for(d=0;d<this._focusElements.length;d++)this._focusElements[d].id==c&&(this._focusElements[d].focus_button=0),this._focusElements[d].id==a&&(this._focusElements[d].focus_button=1,jQuery("#"+a).addClass("like-focus"))}};
2399NBox.prototype.clone=function(a){if("object"==typeof a){var b={},c;for(c in a)b[c]=this.clone(a[c]);return b}return a};NBox.prototype.setErrorText=function(a,b){jQuery('<p class="text-red nbox-custom-error">'+a+"<p>").insertBefore('[name="'+b+'"]')};
2400NBox.prototype.customValidate=function(){var a=this,b=!0;Object.entries(this._validators).forEach(function(c){var d=$jscomp.makeIterator(c);c=d.next().value;d=d.next().value;if("function"===typeof d){d=d(a.getInputValue(c,a.getInputType(c)));var e=jQuery('[name="'+c+'"]'),f=d.msg;d.valid||(b=!1,a.setErrorText(f,c));e.each(function(a){e[a].setCustomValidity(f)})}});return b};
2401NBox.prototype.default=function(a,b){b=void 0===b?0:b;var c=this,d,e,f,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){switch(h.nextAddress){case 1:if("alert"!=c._type&&"confirm"!=c._type&&"prompt"!=c._type&&"password"!=c._type)return h.return(!1);d=c;c._ajaxParams.text=a.replace(/\n/g,"<br/>");c._ajaxParams.type=c._type;return h.yield(c.loadContent(),2);case 2:if(e=h.yieldResult)c.addBoxToDOM(c._transitionSpeed,b),c.readInputNames(),c.setInputListener(),c.setRegex(),c.setFocusElements(),
2402c.checkFocusEmpty(),"password"!=c._type&&"prompt"!=c._type||""==c.getInputConfigByKey("prefill")||(console.log("onchange","jQuery('#'"+c.getInputConfigByKey("id")+").change();"),jQuery("#"+c.getInputConfigByKey("id")).keyup()),jQuery("#"+c._wrapper_identifier+"_infotext").css("overflow-y","auto"),jQuery("#"+c._wrapper_identifier+"_infotext").css("max-height",c._height+"px");else return console.warn("Error occured when moving the Box to the DOM."),h.return(!1);f=c.createPromise();return c.hasInputs()?
2403h.yield(f.then(function(a){var b=jQuery("div#wrapper_"+d._identifier+' input[name="'+d._input_names[0]+'"]').val();if("password"==c._type&&void 0!=c._comparePW&&-1!=a)return d.destroy(),b;d.destroy();return-1==a?a:b}),5):h.yield(f.then(function(a){d.destroy();return a}),6);case 5:g=h.yieldResult;h.jumpTo(4);break;case 6:g=h.yieldResult;case 4:return h.return(g)}})};
2404NBox.prototype.custom=function(){var a=this,b,c,d,e;return $jscomp.asyncExecutePromiseGeneratorProgram(function(f){if(1==f.nextAddress)return b=a,a._ajaxParams.type=a._type,f.yield(a.loadContent(),2);
2404if(3!=f.nextAddress){if(c=f.yieldResult)a.addBoxToDOM(a._transitionSpeed),a.readInputNames();else return console.warn("Error occured when moving the Box to the DOM."),f.return(!1);d=a.createPromise();return f.yield(d.then(function(c){var d={};d.returnValue=c;d.inputValues={};d.inputValues=a.getReturnFromInputs();
2405b.destroy();return d}),3)}e=f.yieldResult;return f.return(e)})};
2406//# sourceMappingURL=NBox.min.js.map
2407
2408
2409var $jscomp$this=this,$jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,c){a.raw=c;return a};$jscomp.arrayIteratorImpl=function(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};
2410$jscomp.makeIterator=function(a){var c="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return c?c.call(a):$jscomp.arrayIterator(a)};$jscomp.arrayFromIterator=function(a){for(var c,d=[];!(c=a.next()).done;)d.push(c.value);return d};$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};
2411$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var d=a[c];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
2412$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,d){if(a==Array.prototype||a==Object.prototype)return a;a[c]=d.value;return a};$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");
2413var $jscomp$lookupPolyfilledValue=function(a,c){var d=$jscomp.propertyToPolyfillSymbol[c];if(null==d)return a[c];d=a[d];return void 0!==d?d:a[c]};$jscomp.polyfill=function(a,c,d,b){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,d,b):$jscomp.polyfillUnisolated(a,c,d,b))};
2414$jscomp.polyfillUnisolated=function(a,c,d,b){d=$jscomp.global;a=a.split(".");for(b=0;b<a.length-1;b++){var e=a[b];e in d||(d[e]={});d=d[e]}a=a[a.length-1];b=d[a];c=c(b);c!=b&&null!=c&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:c})};
2415$jscomp.polyfillIsolated=function(a,c,d,b){var e=a.split(".");a=1===e.length;b=e[0];b=!a&&b in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<e.length-1;f++){var g=e[f];g in b||(b[g]={});b=b[g]}e=e[e.length-1];d=$jscomp.IS_SYMBOL_NATIVE&&"es6"===d?b[e]:null;c=c(d);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,e,{configurable:!0,writable:!0,value:c}):c!==d&&($jscomp.propertyToPolyfillSymbol[e]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(e):$jscomp.POLYFILL_PREFIX+e,e=$jscomp.propertyToPolyfillSymbol[e],
2416$jscomp.defineProperty(b,e,{configurable:!0,writable:!0,value:c})))};$jscomp.FORCE_POLYFILL_PROMISE=!1;
2417$jscomp.polyfill("Promise",function(a){function c(){this.batch_=null}function d(a){return a instanceof e?a:new e(function(b,c){b(a)})}if(a&&!$jscomp.FORCE_POLYFILL_PROMISE)return a;c.prototype.asyncExecute=function(a){if(null==this.batch_){this.batch_=[];var b=this;this.asyncExecuteFunction(function(){b.executeBatch_()})}this.batch_.push(a)};var b=$jscomp.global.setTimeout;c.prototype.asyncExecuteFunction=function(a){b(a,0)};c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=
2418this.batch_;this.batch_=[];for(var b=0;b<a.length;++b){var c=a[b];a[b]=null;try{c()}catch(m){this.asyncThrow_(m)}}}this.batch_=null};c.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var e=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var b=this.createResolveAndReject_();try{a(b.resolve,b.reject)}catch(p){b.reject(p)}};e.prototype.createResolveAndReject_=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=!1;
2419return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};
2419e.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof e)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var b=null!=a;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};e.prototype.resolveToNonPromiseObj_=function(a){var b=void 0;try{b=a.then}catch(p){this.reject_(p);return}"function"==typeof b?
2420this.settleSameAsThenable_(b,a):this.fulfill_(a)};e.prototype.reject_=function(a){this.settle_(2,a)};e.prototype.fulfill_=function(a){this.settle_(1,a)};e.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};e.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=0;a<this.onSettledCallbacks_.length;++a)f.asyncExecute(this.onSettledCallbacks_[a]);
2421this.onSettledCallbacks_=null}};var f=new c;e.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};e.prototype.settleSameAsThenable_=function(a,b){var c=this.createResolveAndReject_();try{a.call(b,c.resolve,c.reject)}catch(m){c.reject(m)}};e.prototype.then=function(a,b){function c(a,b){return"function"==typeof a?function(b){try{d(a(b))}catch(u){f(u)}}:b}var d,f,g=new e(function(a,b){d=a;f=b});this.callWhenSettled_(c(a,d),c(b,f));return g};
2422e.prototype.catch=function(a){return this.then(void 0,a)};e.prototype.callWhenSettled_=function(a,b){function c(){switch(d.state_){case 1:a(d.result_);break;case 2:b(d.result_);break;default:throw Error("Unexpected state: "+d.state_);}}var d=this;null==this.onSettledCallbacks_?f.asyncExecute(c):this.onSettledCallbacks_.push(c)};e.resolve=d;e.reject=function(a){return new e(function(b,c){c(a)})};e.race=function(a){return new e(function(b,c){for(var e=$jscomp.makeIterator(a),f=e.next();!f.done;f=e.next())d(f.value).callWhenSettled_(b,
2423c)})};e.all=function(a){var b=$jscomp.makeIterator(a),c=b.next();return c.done?d([]):new e(function(a,e){function f(b){return function(c){g[b]=c;h--;0==h&&a(g)}}var g=[],h=0;do g.push(void 0),h++,d(c.value).callWhenSettled_(f(g.length-1),e),c=b.next();while(!c.done)})};return e},"es6","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};
2424$jscomp.SymbolClass=function(a,c){this.$jscomp$symbol$id_=a;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:c})};$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};$jscomp.Symbol=function(){function a(d){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(d||"")+"_"+c++,d)}var c=0;return a}();
2425$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
2426$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.asyncIterator;a||(a=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},c={};try{return c.__proto__=a,c.a}catch(d){}return!1};
2427$jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,c){a.__proto__=c;if(a.__proto__!==c)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.generator={};
2427$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
2428$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
2429$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
2430$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,c){this.nextAddress=c;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,c){a=$jscomp.makeIterator(a);var d=a.next();$jscomp.generator.ensureIteratorResultIsObject_(d);if(d.done)this.yieldResult=d.value,this.nextAddress=c;else return this.yieldAllIterator_=a,this.yield(d.value,c)};
2431$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,c){this.catchAddress_=a;void 0!=c&&(this.finallyAddress_=c)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,c){this.nextAddress=a;this.catchAddress_=c||0};
2432$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,c,d){d?this.finallyContexts_[d]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=c||0};
2433$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,c){c=this.finallyContexts_.splice(c||0)[0];if(c=this.abruptCompletion_=this.abruptCompletion_||c){if(c.isException)return this.jumpToErrorHandler_();void 0!=c.jumpTo&&this.finallyAddress_<c.jumpTo?(this.nextAddress=c.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
2434$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var c in a)this.properties_.push(c);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
2435$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
2436$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var c=this.context_.yieldAllIterator_;if(c)return this.yieldAllStep_("return"in c?c["return"]:function(a){return{value:a,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
2437$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
2438$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,c,d){try{var b=a.call(this.context_.yieldAllIterator_,c);$jscomp.generator.ensureIteratorResultIsObject_(b);if(!b.done)return this.context_.stop_(),b;var e=b.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;d.call(this.context_,e);return this.nextStep_()};
2439$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(c){this.context_.yieldResult=void 0,this.context_.throw_(c)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
2440$jscomp.generator.Generator_=function(a){this.next=function(c){return a.next_(c)};this.throw=function(c){return a.throw_(c)};this.return=function(c){return a.return_(c)};$jscomp.initSymbolIterator();this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,c){c=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(c));$jscomp.setPrototypeOf&&$jscomp.setPrototypeOf(c,a.prototype);return c};
2441$jscomp.asyncExecutePromiseGenerator=function(a){function c(b){return a.next(b)}function d(b){return a.throw(b)}return new Promise(function(b,e){function f(a){a.done?b(a.value):Promise.resolve(a.value).then(c,d).then(f,e)}f(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
2442$jscomp.checkStringArgs=function(a,c,d){if(null==a)throw new TypeError("The 'this' value for String.prototype."+d+" must not be null or undefined");if(c instanceof RegExp)throw new TypeError("First argument to String.prototype."+d+" must not be a regular expression");return a+""};
2443$jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:function(a,d){var b=$jscomp.checkStringArgs(this,a,"startsWith");a+="";var c=b.length,f=a.length;d=Math.max(0,Math.min(d|0,b.length));for(var g=0;g<f&&d<c;)if(b[d++]!=a[g++])return!1;return g>=f}},"es6","es3");$jscomp.polyfill("Object.is",function(a){return a?a:function(a,d){return a===d?0!==a||1/a===1/d:a!==a&&d!==d}},"es6","es3");
2444$jscomp.polyfill("Array.prototype.includes",function(a){return a?a:function(a,d){var b=this;b instanceof String&&(b=String(b));var c=b.length;d=d||0;for(0>d&&(d=Math.max(d+c,0));d<c;d++){var f=b[d];if(f===a||Object.is(f,a))return!0}return!1}},"es7","es3");$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(a,d){return-1!==$jscomp.checkStringArgs(this,a,"includes").indexOf(a,d||0)}},"es6","es3");
2445$jscomp.iteratorFromArray=function(a,c){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var d=0,b={next:function(){if(d<a.length){var e=d++;return{value:c(e,a[e]),done:!1}}b.next=function(){return{done:!0,value:void 0}};return b.next()}};b[Symbol.iterator]=function(){return b};return b};$jscomp.polyfill("Array.prototype.entries",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a,d){return[a,d]})}},"es6","es3");
2446$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");
2447$jscomp.polyfill("Object.fromEntries",function(a){return a?a:function(a){var c={};$jscomp.initSymbolIterator();if(!(Symbol.iterator in a))throw new TypeError(""+a+" is not iterable");a=a[Symbol.iterator].call(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(Object(b)!==b)throw new TypeError("iterable for fromEntries should yield objects");c[b[0]]=b[1]}return c}},"es_2019","es3");$jscomp.owns=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)};
2448$jscomp.assign="function"==typeof Object.assign?Object.assign:function(a,c){for(var d=1;d<arguments.length;d++){var b=arguments[d];if(b)for(var e in b)$jscomp.owns(b,e)&&(a[e]=b[e])}return a};$jscomp.polyfill("Object.assign",function(a){return a||$jscomp.assign},"es6","es3");
2449var NAPI={supportedMethods:["GET","POST","PUT","PATCH","DELETE"],contentType:"application/json",baseURL:"",pathname:"",debugLogging:!1,reqTimeout:0,abortHandler:null,_wait4Response:80,_requestQueue:[],_softError:!1,reqeuestCacheTime:0,_inited:!1,_version:"",_currentResponse:{contentType:null,contentTypeO:null,contentCustom:null,data:null,finished:null,aborted:null,tickHandler:null},_abortStatus:{abortID:null,abortAll:!1,abortClb:null},apiURL:function(a){a=void 0===a?!0:a;var c=new URL(this.baseURL);
2450this.pathname.startsWith("/intranet")?c.pathname="/intranet/":c.pathname="";c.pathname+="/api/";a&&this._version.length&&(c.pathname+="v"+this._version+"/");return c.toString()},init:function(a,c,d,b){a=void 0===a?!1:a;c=void 0===c?!1:c;d=void 0===d?!1:d;b=void 0===b?"":b;this.initEnvironment();!0===c?(this.debugLogging=!0,this.setRequestCacheTime(0)):!0===a?(this.debugLogging=!1,this.setRequestCacheTime(10)):!1===d&&(this.debugLogging=!1,this.setRequestCacheTime(30));!0===d&&(this.debugLogging=!0,
2451this.setRequestCacheTime(0));this.debugLogging&&console.log("NAPI initialized with base URL:",this.baseURL);b&&b.length&&(this._version=b);this._inited=!0;return this},initEnvironment:function(){var a=new URL(window.location.href);this.baseURL=a.origin;this.pathname=a.pathname;a=this.baseURL.length-1;this.baseURL.lastIndexOf("/")<a&&(this.baseURL+="/")},setContentType:function(a){this.contentType=a},_tickHandler:function(){var a=[];return{add:function(c){a.push(c);return a.length-1},remove:function(c){a.length&&
2452a.at(c)&&(a=Array.prototype.concat(a.slice(0,c),a.slice(c+1)))},tick:function(c,d){return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){a&&a.length&&a.forEach(function(a,b){"function"===typeof a&&a(c,d)});b.jumpToEnd()})}}},_request:function(a,c,d,b,e,f,g){b=void 0===b?{}:b;e=void 0===e?null:e;f=void 0===f?!1:f;g=void 0===g?null:g;var h=this,p,m,l,n,v,q,t,u,k,w;return $jscomp.asyncExecutePromiseGeneratorProgram(function(r){switch(r.nextAddress){case 1:if(!h._inited)return r.return(null);
2453p=Date.now().toString(36)+Math.random().toString(36).substring(2);"function"===typeof g&&g(p);return r.yield(h._wait4FreeChannel(f,p).catch(function(a){h.debugLogging&&console.warn("Die Anfrage konnte nicht gesendet werden: ",a)}),2);case 2:if(!0!==r.yieldResult)return r.return({code:500,data:{},message:"Couldn`t send request due to blocked stream"});h.abortHandler=new AbortController;h._currentResponse={requestID:p,contentType:null,contentTypeO:null,contentCustom:null,data:null,finished:!1,respTimer:h._wait4Response,
2454aborted:!1,destination:null,tickHandler:h._tickHandler(),reqTimeoutID:null,reqTimeoutFn:function(b){b=void 0===b?!0:b;0>=h.reqTimeout||(clearTimeout(h.reqTimeoutID),b&&(h.reqTimeoutID=setTimeout(function(){console.warn("Request timeout reached for request to ",c," with method ",a);
2454h.abortRequest()},h.reqTimeout)))}};if(!h.supportedMethods.includes(a))throw Error("Unsupported method: "+a);if("string"!==typeof c||"string"!==typeof a||"object"!==typeof d)throw Error("Invalid USE of NOLISManager.API");
2455m=new URL(h.apiURL());l=new Headers;m.pathname+=c;l.append("Nolis-Apiclient","client");l.append("Nolis-Apiallowinterim","function"===typeof e?"true":"false");l.append("Cache-Control","GET"===a&&0<h.reqeuestCacheTime?"max-age="+h.reqeuestCacheTime:"no-cache");n={method:a,signal:h.abortHandler.signal,redirect:"manual",headers:l};if("GET"===a)v=new URLSearchParams("object"===typeof d?d:{data:d}),1>h.reqeuestCacheTime&&!v.has("pseudoParam")&&v.append("pseudoParam",Date.now()),m.search=v.toString(),n.headers.append("Content-Type",
2456h.contentType);else{q=new FormData;if(d instanceof FormData)for(t=$jscomp.makeIterator(d.entries()),u=t.next();!u.done;u=t.next())k=u.value,q.append(k[0],k[1]);else d instanceof Blob?q.append("file",d):d instanceof jQuery||(950<Object.keys(d).length?q.append("dataJSON",JSON.stringify(d)):keys=Object.keys(d).forEach(function(a,b){q.append(a,d[a])}));n.body=q;n.headers.append("enctype","multipart/form-data")}h._currentResponse.destination=m.href;h._currentResponse.reqTimeoutFn();return r.yield(fetch(m.href,
2457n).catch(function(a){h.debugLogging&&console.log("FETCH error: ",a)}),3);case 3:return w=r.yieldResult,h.debugLogging&&w&&console.log("Response status: "+w.status+" for "+a+" "+m),r.yield(h._result(w,b,e),4);case 4:return r.return(r.yieldResult)}})},_result:function(a,c,d){var b=this,e,f,g,h,p,m,l,n,v,q,t,u;return $jscomp.asyncExecutePromiseGeneratorProgram(function(k){switch(k.nextAddress){case 1:if(!0===b._currentResponse.finished)return b._currentResponse.finished=!0,b._currentResponse.respTimer=
2458b._wait4Response,b.abortHandler=null,k.return(Promise.reject({code:500,data:{},message:"Couldnt parse Response (1)"}));if(!(a&&a instanceof Object))return b._currentResponse.finished=!0,b._currentResponse.respTimer=b._wait4Response,b.abortHandler=null,k.return(Promise.reject({code:500,data:{},message:"Couldnt parse Response (2)"}));if(!a.status)return b._currentResponse.finished=!0,b._currentResponse.respTimer=b._wait4Response,b.abortHandler=null,k.return(Promise.reject({code:a.status,data:{},message:"The Server responded with an error"}));
2459b._currentResponse.reqTimeoutFn(!1);if(204==a.status)return b._currentResponse.finished=!0,b._currentResponse.respTimer=b._wait4Response,b.abortHandler=null,k.return({code:a.status,data:null,message:"No Content"});e=!1;f=0;g=1E4;"headers"in a&&null===b._currentResponse.contentType&&(b._currentResponse.contentType=a.headers.get("content-type"),b._currentResponse.contentTypeO=a.headers.get("Nolis-Contenttypeoriginal"),b._currentResponse.contentCustom=a.headers.get("Nolis-Contenttypecustom"),e=void 0===
2460a.headers.get("Nolis-Apifailed")||null===a.headers.get("Nolis-Apifailed")||"false"===a.headers.get("Nolis-Apifailed")?!1:!0,b._currentResponse.contentCustom="string"===typeof b._currentResponse.contentCustom?"true"===b._currentResponse.contentCustom?!0:!1:null,"function"===typeof c&&c(Object.fromEntries(a.headers)),!b._currentResponse.contentTypeO||"string"!==typeof b._currentResponse.contentTypeO||1>b._currentResponse.contentTypeO.length?b._currentResponse.contentTypeO=b._currentResponse.contentType:
2461null!==b._currentResponse.contentType&&void 0!==b._currentResponse.contentType||"string"!==typeof b._currentResponse.contentTypeO||!b._currentResponse.contentTypeO.length||(b._currentResponse.contentType=b._currentResponse.contentTypeO));if(!1===e&&b._currentResponse.contentType&&-1<b._currentResponse.contentType.indexOf("text/event-stream")){k.jumpTo(2);break}b._currentResponse.respTimer=b._wait4Response;return k.yield(b._setResult(a,a.status,!1),4);case 4:h=k.yieldResult;if(!b._currentResponse.tickHandler){k.jumpTo(5);
2462break}return k.yield(b._currentResponse.tickHandler.tick(a,!1),5);case 5:return b._currentResponse.finished=!0,b.abortHandler=null,!0===e&&!1===b._softError?k.return(Promise.reject(h)):k.return(h);case 2:b._currentResponse.finished=!1;p=a.body.getReader();l=m=!1;
2462if(!p)return b._currentResponse.finished=!0,b._currentResponse.respTimer=b._wait4Response,b.abortHandler=null,k.return(Promise.reject({code:500,data:{},message:"Couldnt create stream"}));n={};case 7:return k.setCatchFinallyBlocks(10),k.yield(p.read(),
246312);case 12:return v=k.yieldResult,n.$jscomp$loop$prop$done$5=v.done,q=v.value,n.$jscomp$loop$prop$that$6=b,n.$jscomp$loop$prop$done$5||b.abortHandler&&b.abortHandler.signal.aborted?(b._currentResponse.finished=!0,b.abortHandler=null,b._currentResponse.finished=!0,b._currentResponse.aborted=b.abortHandler&&b.abortHandler.signal.aborted):b._currentResponse.respTimer=b._wait4Response,t=((q instanceof Uint8Array?(new TextDecoder).decode(q):q)||"").trim(),n.$jscomp$loop$prop$chunks$4=t.split(/[\r\n\t]/),
24641==b.debugLogging&&console.log("parsed Value: ",t),1==b.debugLogging&&(console.log("done",n.$jscomp$loop$prop$done$5),console.log("value",q),console.log("value type ",typeof q),console.log("result CHUNKS",n.$jscomp$loop$prop$chunks$4)),k.yield(new Promise(function(c){return function(e,f){return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){return 1==g.nextAddress?c.$jscomp$loop$prop$chunks$4.length?(c.$jscomp$loop$prop$chunks$4.forEach(function(f,g){return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){if(1==
2465h.nextAddress)return h.yield(b._setResult(f,a.status,!0,d,c.$jscomp$loop$prop$done$5),2);g==c.$jscomp$loop$prop$chunks$4.length-1&&e();h.jumpToEnd()})}),g.jumpTo(2)):!0!==c.$jscomp$loop$prop$done$5?(e(),g.jumpTo(2)):g.yield(b._setResult("",a.status,!0,d,c.$jscomp$loop$prop$done$5).then(function(){e()}).catch(function(){f()}),2):c.$jscomp$loop$prop$that$6._currentResponse.tickHandler?g.yield(c.$jscomp$loop$prop$that$6._currentResponse.tickHandler.tick(a,!0),0):g.jumpTo(0)})}}(n)),13);case 13:k.leaveTryBlock(11);
2466break;case 10:k.enterCatchBlock();l=m=!0;b._currentResponse.aborted=!0;b._currentResponse.finished=!0;k.jumpTo(8);break;case 11:if(f++,n={$jscomp$loop$prop$chunks$4:n.$jscomp$loop$prop$chunks$4,$jscomp$loop$prop$done$5:n.$jscomp$loop$prop$done$5,$jscomp$loop$prop$that$6:n.$jscomp$loop$prop$that$6},!1===b._currentResponse.finished&&f<g){k.jumpTo(7);break}case 8:if(!1===m)return k.yield(b._setResult(a,a.status,!1),20);if(!0!==m&&!0!==l){k.jumpTo(0);break}return k.yield(b._setResult(" ",a.status,!0,
2467d),17);case 17:u=k.yieldResult;if(!b._currentResponse.tickHandler){k.jumpTo(18);break}return k.yield(b._currentResponse.tickHandler.tick(a,!0),18);case 18:return b._currentResponse.finished=!0,b._currentResponse.respTimer=b._wait4Response,b.abortHandler=null,k.return(u);case 20:return k.return(k.yieldResult)}})},_setResult:function(a,c,d,b,e){d=void 0===d?!1:d;b=void 0===b?null:b;e=void 0===e?!1:e;var f=this,g,h,p,m;return $jscomp.asyncExecutePromiseGeneratorProgram(function(l){switch(l.nextAddress){case 1:g=
2468{code:c,data:a,message:"OK"};h=-1<f._currentResponse.contentType.indexOf("text/event-stream");if(!f._currentResponse.contentTypeO)return l.return();if(!("string"===typeof a||"bodyUsed"in a&&!a.bodyUsed)){!1===d&&(g.data=f._currentResponse.data);l.jumpTo(2);break}if(-1<f._currentResponse.contentTypeO.indexOf("application/json")){if("string"===typeof a){try{g=JSON.parse(a)}catch(n){}l.jumpTo(11);break}l.setCatchFinallyBlocks(12);return l.yield(a.json(),14)}if(-1<f._currentResponse.contentTypeO.indexOf("application/")||
2469-1<f._currentResponse.contentTypeO.indexOf("image/")||-1<f._currentResponse.contentTypeO.indexOf("audio/")||-1<f._currentResponse.contentTypeO.indexOf("video/")||-1<f._currentResponse.contentTypeO.indexOf("/csv")||-1<f._currentResponse.contentTypeO.indexOf("/calendar")){if("string"===typeof a){g=new Blob([a],{type:f._currentResponse.contentTypeO});l.jumpTo(9);break}return l.yield(a.blob(),10)}if("string"===typeof a){g=a;l.jumpTo(7);break}return l.yield(a.text(),8);case 8:g=l.yieldResult;case 7:g=
2470new NOLISManager.Result({code:a.status,data:g,message:"OK"});f._currentResponse.data=1==h?null===f._currentResponse.data?g.data:f._currentResponse.data+g.data:g;l.jumpTo(4);break;case 10:g=l.yieldResult;case 9:g=new NOLISManager.Result({code:a.status,data:g,message:"OK"});f._currentResponse.data=1==h?null===f._currentResponse.data?g.data:new Blob(Array.prototype.concat(f._currentResponse.data.arrayBuffer(),g),{type:f._currentResponse.data.type}):g;l.jumpTo(4);break;case 14:g=l.yieldResult;l.leaveTryBlock(11);
2471break;case 12:p=l.enterCatchBlock(),f.debugLogging&&window.console&&console.warn("json parse error: "+p,a.text),g={code:500,data:p,message:"Couldnt parse Result"};case 11:g=!1===f._currentResponse.contentCustom?new NOLISManager.Result(g):new NOLISManager.Result({code:a.status,data:g,message:"OK"}),1==h?null===f._currentResponse.data?f._currentResponse.data=g.data:Array.isArray(f._currentResponse.data)?f._currentResponse.data=Array.prototype.concat(f._currentResponse.data,g.data):Object.assign(f._currentResponse.data,
2472g.data):f._currentResponse.data=g,(0==h||1==e)&&"data"in g&&"object"===typeof g.data&&"debugDump"in g.data&&f.debugLogging&&(window.console&&(console.error("Die API hat einen Error-Dump geliefert:"),console.groupCollapsed("Fehlerdump aus API:"),console.warn(g.data.debugDump),console.groupEnd()),"function"===typeof window.NLightbox&&NLightbox.open([{html:g.data.debugDump,width:"70vw",height:"98%",overflow:"auto","max-width":"100vw"}]));case 4:if(!0!==d||"function"!==typeof b){l.jumpTo(2);break}m=b(g,
2473e,f._currentResponse.aborted);if(!(m instanceof Promise)){l.jumpTo(2);break}return l.yield(m,2);case 2:return!1===d?l.return(g):l.return(null)}})},_wait4FreeChannel:function(a,c){var d=this;a=void 0===a?!1:a;c=void 0===c?"":c;var b=this;return new Promise(function(e,f){setTimeout(function(){!1===b._currentResponse.finished&&!0===a&&b.abortRequest
2473();if(!1===b._currentResponse.finished){c.length&&b._requestQueue.push(c);var g=1200,h=setInterval(function(){if(!0===b._abortStatus.abortAll||b._abortStatus.abortID&&
2474b._abortStatus.abortID===c){var a=b._requestQueue.indexOf(c);-1<a?(0===a?b._requestQueue.shift():a===b._requestQueue.length-1?b._requestQueue.pop():b._requestQueue=Array.prototype.concat(b._requestQueue.slice(0,a),b._requestQueue.slice(a+1)),"function"===typeof b._abortStatus.abortClb&&(b._abortStatus.abortID&&b._abortStatus.abortID.length||b._abortStatus.abortAll&&0===b._requestQueue.length)&&b._abortStatus.abortClb(!0)):"function"===typeof b._abortStatus.abortClb&&b._abortStatus.abortClb(!1);clearInterval(h);
2475f(!1)}else!1!==b._currentResponse.finished&&(!b._requestQueue.length||c.length&&c===b._requestQueue[0])?(clearInterval(h),e(!0),b._requestQueue.length&&b._requestQueue.shift()):1>g--?(clearInterval(h),f(!1),b._requestQueue.length&&c===b._requestQueue[0]&&b._requestQueue.shift()):(1==d.debugLogging&&console.log("------ WAITING",g,d._currentResponse.respTimer,b._requestQueue),d._currentResponse&&"respTimer"in d._currentResponse&&null!==d._currentResponse.respTimer&&(d._currentResponse.respTimer--,(1>
2476d._currentResponse.respTimer||void 0===d._currentResponse.respTimer||null===d._currentResponse.respTimer)&&b.abortRequest()))},250)}else e(!0)},2)})},downloadFile:function(a,c,d){c=void 0===c?{}:c;d=void 0===d?{}:d;var b=this,e,f,g,h,p,m,l,n,v,q,t,u,k,w;return $jscomp.asyncExecutePromiseGeneratorProgram(function(r){if(1==r.nextAddress){if(!b._inited)return r.return(!1);e={};f=function(a){return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){e=a;"function"===typeof d&&d(a);b.jumpToEnd()})};
2477return r.yield(b.get(a,c,f).catch(function(a){console.log("error downloading file: ",a)}),2)}g=r.yieldResult;if(h=new NOLISManager.Result(g),h.isOK())if(m=p="",l=h.getData(),"content-disposition"in e&&"content-type"in e&&(n=RegExp('(Content-Disposition:)?\\s*((?<disposition>inline|attachment);?)?\\s*(filename\\s*=\\s*"?)\\s*(?<filename>[\\w\\.\\-\\s]+)"?',"iu"),v=/(Content-Type:)?\s*(?<mime>(\w+)\/(?<dateiendung>\w+))\s*;?\s*((?<charset>charset\s*="?(?<encoding>[\-\w\d]+))\s*"?)?/i,q=e["content-disposition"].match(n),
2478t=e["content-type"].match(v),"object"===typeof q&&"object"===typeof t&&"groups"in q&&"groups"in t&&"filename"in q.groups&&"dateiendung"in t.groups&&(m=q.groups.filename,p=t.groups.dateiendung,m.length&&p.length&&(u=new Blob([l],{type:"application/"+p,name:m}),k=URL.createObjectURL(u),w=jQuery("<a />",{target:"_blank",download:m,href:k,class:"hidden"}),k.length))))return w.get(0).click(),r.return(!0);return r.return(!1)})},get:function(a,c,d,b,e,f){c=void 0===c?{}:c;d=void 0===d?{}:d;b=void 0===b?
2479null:b;e=void 0===e?!1:e;f=void 0===f?null:f;var g=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){return h.return(g._request("GET",a,c,d,b,e,f))})},post:function(a,c,d,b,e,f){c=void 0===c?{}:c;d=void 0===d?{}:d;b=void 0===b?null:b;e=void 0===e?!1:e;f=void 0===f?null:f;var g=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){return h.return(g._request("POST",a,c,d,b,e,f))})},put:function(a,c,d,b,e,f){c=void 0===c?{}:c;d=void 0===d?{}:d;f=void 0===f?null:f;var g=
2480this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){return b.return(g._request("PUT",a,c,d,interimCallbac,abortCurrentk,f))})},patch:function(a,c,d,b,e,f){c=void 0===c?{}:c;d=void 0===d?{}:d;b=void 0===b?null:b;e=void 0===e?!1:e;f=void 0===f?null:f;var g=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){return h.return(g._request("PATCH",a,c,d,b,e,f))})},delete:function(a,c,d,b,e,f){c=void 0===c?{}:c;d=void 0===d?{}:d;b=void 0===b?null:b;e=void 0===e?!1:e;f=void 0===
2481f?null:f;var g=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(h){return h.return(g._request("DELETE",a,c,d,b,e,f))})},setSoftError:function(a){if(!0===a||!1===a)this._softError=a},abortRequest:function(a){a=void 0===a?null:a;var c=this;return new Promise(function(d,b){if(!c._inited||null===c.abortHandler||!0===c._currentResponse.finished)b("No running Request found");else if(a&&a.length&&c._currentResponse&&!c._currentResponse.finished&&c._currentResponse.requestID!==a)0>c._requestQueue.indexOf(a)?
2482b("The Request-ID "+a+" is unknown"):(c._abortStatus.abortID=a,c._abortStatus.abortClb=function(a){(void 0===a?0:a)&&d();b("Failed to abort Request")});else if(!a||!a.length||c._currentResponse.requestID===a)try{c._currentResponse.tickHandler.add(function(){c._currentResponse={requestID:null,contentType:null,contentTypeO:null,contentCustom:null,data:null,finished:!1,aborted:null,tickHandler:null,reqTimeoutID:null,reqTimeoutFn:null};d()}),c.abortHandler.abort("Cancelled")}catch(e){c.debugLogging&&
2483window.console&&console.log("MY EXCEPTION",e),b("Failed aborting Request",e)}})},abortAllRequests:function(){var a=this;return new Promise(function(c,d){return $jscomp.asyncExecutePromiseGeneratorProgram(function(b){if(1==b.nextAddress)return a._inited&&null!==a.abortHandler&&!0!==a._currentResponse.finished?b.yield(a.abortRequest
2483(),3):(d("Keine laufende Anfrage vorhanden"),b.return());0===a._requestQueue.length?c():(a._abortStatus.abortAll=!0,a._abortStatus.abortClb=function(a){(void 0===a?0:a)&&
2484c();d("Anfrage konnte nicht abgebrochen werden")});b.jumpToEnd()})})},buildURL:function(a){if(!this._inited)return null;var c=new URL(this.apiURL());c.pathname+=a;return c.toString()},setDebugLogging:function(a){this.debugLogging=a},setRequestCacheTime:function(a){0>a||(this.reqeuestCacheTime=a)},getClone:function(a,c){c=void 0===c?0:c;if(!this._inited)return null;a=void 0!==a?a:this;if("object"==typeof a){var d={},b;for(b in a){if(0===c)if("_requestQueue"===b){d[b]=[];continue}else if("abortHandler"===
2485b){d[b]=null;continue}else if("_currentResponse"===b){d[b]={contentType:null,contentTypeO:null,contentCustom:null,data:null,finished:null,aborted:null,tickHandler:null};continue}"object"!==typeof a[b]||0!=a[b]instanceof jQuery||Array.isArray(a[b])?Array.isArray(a[b])?d[b]=[].concat($jscomp.arrayFromIterable(a[b])):d[b]=a[b]:d[b]=this.getClone(a[b],++c)}return d}return a}};
2486//# sourceMappingURL=api.min.js.map
2487
2488if('object'===typeof(NAPI) && 'object'===typeof(NOLISManager)) NOLISManager.API=NAPI.init(false, false, false, '1');
2489(function(f){var l={showLabelTopClass:function(){var a=function(){var c=f(this),d=c.parent("div.form-item");if(!d.hasClass("label-always-top")){var e=d.attr("data-style-padding-top");("undefined"==typeof e||"undefinded"!=typeof e&&""!=e)&&d.css("padding-top",e);d.addClass("showlabeltop onfocus");c.attr("data-placeholder")&&c.attr("placeholder",c.attr("data-placeholder"))}},b=function(c){var d=f(this),e=d.parent("div.form-item");if(!e.hasClass("label-always-top")){var g=""==d.val()&&("blur"==c.type||
2490!d.is(":focus")),h=e.attr("data-style-padding-top");"undefined"==typeof h||"undefinded"!=typeof h&&""!=h?e.css("padding-top",h):e.css("padding-top","");e.toggleClass("showlabeltop",!g);e=d.siblings("label");0<d.parents(".form-row").find(".form-item-row-label").length?0<e.length?(e=e.clone(),e.find('span.required-asterisk[style="display: none;"]').remove(),d.attr("placeholder",e.text())):d.attr("placeholder",""):0==d.closest(".nolis_showlabeltopfixed").length&&0<e.length&&d.attr("placeholder","");
2491"blur"==c.type&&d.parent("div.form-item").removeClass("onfocus")}};return function(c){c=f(c);!c.attr("placeholder")||"string"==typeof c.attr("data-placeholder")&&0!=c.attr("data-placeholder").length||c.attr("data-placeholder",c.attr("placeholder"));c.off("focus",a).on("focus",a);c.off("touchstart",a).on("touchstart",a);c.off("ui-formjs-blur blur change",b).on("ui-formjs-blur blur change",b);c.trigger("ui-formjs-blur")}}(),checkLabelLength:function(a){a=f(a);var b=!1;"undefined"!==typeof showHiddenParts&&
24921==showHiddenParts&&(b="none"==a.parent().css("display")?!0:!1,1==b&&a.parent().show());var c=a.parent(),d=a.is(".form-item-container-label")?"margin-top":"padding-top",e=a[0],g=e.style.width,h=e.style.overflow;e.style.width="99999px";e.style.overflow="hidden";var p=f(e).innerHeight();e.style.width=g;e.style.overflow=h;e=parseInt(a.innerHeight());c.css(d,"");c.removeClass("two-rows").removeClass("three-rows").removeClass("four-rows").removeClass("more-rows");a.css("top","");if(e>p){var n=f("form#kita_platz").parent().hasClass("nolis_showlabeltopfixed_top"),
2493u=f("form").parent().hasClass("nolis_showlabeltopfixed_top"),q=c.hasClass("showlabeltop");h=e-p;g=parseInt(c.css(d));if(n){u=parseInt(parseInt(e)/parseInt(p));q="";if(0<u)switch(u){case 1:q="";break;case 2:q="two";break;case 3:q="three";break;case 4:q="four";break;default:q="more"}c.removeClass("two-rows").removeClass("three-rows").removeClass("four-rows").removeClass("more-rows");""!=q&&c.addClass(q+"-rows");(c.hasClass("form-item-textarea")||c.hasClass("form-item-input"))&&c.attr("data-style-padding-top",
2494""+(h+g)+"px");0==b&&(g=0);1<u?0<g?c.css(d,e+g-p+"px"):c.css(d,h+g+"px"):c.css(d,h+g+"px")}else!c.hasClass("form-item-textarea")&&!c.hasClass("form-item-input")||u||q?c.hasClass("form-item-radio")||c.hasClass("form-item-checkbox")||0!=jQuery(".nolis_kontrollseite").length||c.css(d,h+g+"px"):c.attr("data-style-padding-top",""+(h+g)+"px");a.is(".form-item-container-label")&&!c.hasClass(".form-item-canvas")&&0==jQuery(".nolis_kontrollseite").length&&(n?15<=e&&81>e?h+=e/2:81<=e&&108>e?h+=e/3:108<=e&&
2495135>e&&(h+=e/4):a.is(".form-item-container-label")?(h+=10,n=Math.ceil(e/p),h=2==n?h+e/2:3==n?h+e/3:4==n?h+e/4:h+p
2495/2,c.css(d,h+g+"px")):h+=p/2,0==a.closest(".form-item-canvas").length&&a.css("top",-1*h+"px"))}"undefined"!==typeof showHiddenParts&&1==showHiddenParts&&1==b&&a.parent().hide()},textareaAutoresize:function(){var a=function(){var b=f(this);if(b.is("textarea[data-autoresize]")){var c=b.outerHeight()-b.innerHeight();b.css("height","auto").css("height",b[0].scrollHeight+c)}};return function(b){b=
2496f(b);b.off("keyup input focus change ui-formjs-change",a);b.on("keyup input focus change ui-formjs-change",a);b.trigger("ui-formjs-change")}}(),scrollToFixedHeader:function(a,b){b=b||50;var c=f(a||"#head").height()+b;document.addEventListener("invalid",function(d){f(d.target).addClass("validation-scrollToFixedHeader");f("html, body").animate({scrollTop:f(".validation-scrollToFixedHeader").first().offset().top-c},0);setTimeout(function(){f(".validation-scrollToFixedHeader").removeClass("validation-scrollToFixedHeader")},
2497300)},!0)},setPlzOrtFromString:function(a,b,c,d,e,g,h){b=b||"";c=c||"";d=d||"";e=e||"";g=g||"";h=h||"";a=(a||"").split(/ (.*)/);""!=b&&""!=c&&(f("#"+b).val(a[0]),f("#"+c).val(a[1]));""!=d&&""!=e&&(f("#"+d).val(a[0]),f("#"+e).val(a[1]));""!=g&&""!=h&&(f("#"+g).val(a[0]),f("#"+h).val(a[1]))},reInitFormsJS:function(a,b={}){a=f(a);b.hasOwnProperty("removeDomMutationObserver")&&1==b.removeDomMutationObserver&&(t=null);a.is("div.nolis_formular.forms-js-initialized")&&a.is(":visible")?(null!=t&&t.disconnect(),
2498a.removeClass("forms-js-initialized"),f("div.nolis_formular:not(.nolis_formular2)").each(function(){l.initFormsJS(this)})):a.is("div.nolis_formular:not(.forms-js-initialized):not(.nolis_formular2)")&&f("div.nolis_formular:not(.nolis_formular2)").each(function(){l.initFormsJS(this)})},initFormsJS:function(a,b){a=f(a);if(a.is("div.nolis_formular:not(.forms-js-initialized):not(.nolis_formular2)")){a.find("input[type=date]").each(function(){B(this)});a.find("input[type=time]").each(function(){C(this)});
2499a.find("form div.form-item-input input, form div.form-item-textarea textarea").each(function(){l.showLabelTopClass(this);f(this).is("textarea")&&l.textareaAutoresize(this)});var c="",d="",e=!1,g="";a.find("form div.form-item-input label, form div.form-item-textarea label, form div.form-item-select label, form div.form-item span.form-item-container-label, form div.form-row span.form-item-row-label, form div.form-item-feedback-scale label, form div.form-item-canvas span.form-item-container-label").each(function(){"undefined"!==
2500typeof showHiddenParts&&1==showHiddenParts&&(newSec=f(this).parents("section").get(0),newSec!=c&&(e=!0,g="none"==f(this).parents("section").css("display")?!0:!1,1==d&&f(this).parents("section").show()));l.checkLabelLength(this);if("undefined"!==typeof showHiddenParts&&1==showHiddenParts&&e){if(1==d)try{f(c).hide()}catch(h){}c=newSec;d=g;e=!1}});if("undefined"!==typeof showHiddenParts&&1==showHiddenParts&&1==d)try{f(c).hide()}catch(h){}null!=t&&t.observe(a[0],{subtree:!0,childList:!0,characterData:!0,
2501attributes:!0});a.find("form div.form-item input, form div.form-item-textarea textarea, form div.form-item-select select, form form-item-canvas canvas").each(function(h,p){this.addEventListener("invalid",k.onInvalid,!0);listener_event="input";-1!=navigator.userAgent.indexOf("Chrome")&&"date"==jQuery(p).attr("type")&&(listener_event="keyup");this.addEventListener(listener_event,k.onInput,!0);let n=jQuery(p);n.is("input")&&n.is('[type="text"], [type="date"], [type="time"], [type="month"], [type="number"], [type="tel"], [type="url"], [type="week"], [type="datetime-local"], [type="email"], [type="password"]')&&
2502n.blur(function(){n.get(0).checkValidity()&&n.val(jQuery.trim(n.val()))})});f(window).resize(function(){a.find("form div.form-item-input label, form div.form-item-textarea label, form div.form-item-select label, form div.form-item span.form-item-container-label, form div.form-row span.form-item-row-label, form div.form-item-feedback-scale label, form div.form-item-canvas span.form-item-container-label").each(function(){l.checkLabelLength(this)})});a.toggleClass("forms-js-initialized",!0)}}};window.NOLISForms=
2503l;var v=function(){try{var a=document.createElement("input");a.type="date";a.value="_";return""==a.value}catch(b){return!1}}(),w=function(){try{var a=document.createElement("input");a.type="time";a.value="_";return""==a.value}catch(b){return!1}}();window.FormDateInputRefs={count:0};window.FormTimeInputRefs={count:0};var m=function(a,b,c,d){a=a instanceof Element?a:a instanceof f?a[0]:null;b="number"==typeof b?b:0;c="number"==typeof c?c:b;if(a){var e=function(){if(a.setSelectionRange)a.setSelectionRange(b,
2504c);else if(a.createTextRange){var g=a.createTextRange();g.moveStart("character",b);g.moveEnd("character",c);g.select()}};d?e():setTimeout(e,100)}},r=function(a){var b=0,c=0,d;if(a=a instanceof Element?a:a instanceof f?a[0]:null)if("number"==typeof a.selectionStart&&"number"==typeof a.selectionEnd)b=a.selectionStart,c=a.selectionEnd;else if((d=document.selection.createRange())&&d.parentElement()==a){var e=a.value.length;var g=a.value.replace(/\r\n/g,"\n");c=a.createTextRange();c.moveToBookmark(d.getBookmark());
2505a=a.createTextRange();a.collapse(!1);
2505-1<c.compareEndPoints("StartToEnd",a)?b=c=e:(b=-c.moveStart("character",-e),b+=g.slice(0,b).split("\n").length-1,-1<c.compareEndPoints("EndToEnd",a)?c=e:(c=-c.moveEnd("character",-e),c+=g.slice(0,c).split("\n").length-1))}return{start:b,end:c}},x=function(a){el=f(this);v?el.removeClass("hide-content"):(""==el.val()&&(el.val("tt.mm.jjjj"),m(el,0,2)),setTimeout(function(){el.off("mouseup",D).on("mouseup",D)},200))},y=function(a){el=f(this);""!=el.val()||"blur"!=
2506a.type&&el.is(":focus")?v&&el.removeClass("hide-content"):el.addClass("hide-content");if(!v&&(el.off("mouseup",D),/^\d{2}[./-]\d{2}[./-]\d{4,6}$/.test(el.val())||/^\d{4,6}[./-]\d{2}[./-]\d{2}$/.test(el.val())||el.val(""),a=el.data("formDateInputRefId"),0<a&&"object"==typeof FormDateInputRefs[a])){var b="";if(0<el.val().length){var c=el.val().split(".");3==c.length&&(c[0]=c[0].replace(/\D+/g,""),c[1]=c[1].replace(/\D+/g,""),c[2]=c[2].replace(/\D+/g,""),2<c[0].length&&(c[0]=c[0].substr(0,2)),2<c[1].length&&
2507(c[1]=c[1].substr(0,2)),4<c[2].length&&(c[2]=c[2].substr(0,4)),2>c[0].length&&(c[0]="00".substr(0,2-c[0].length)+c[0]),2>c[1].length&&(c[1]="00".substr(0,2-c[1].length)+c[1]),4>c[2].length&&(c[2]="0000".substr(0,4-c[2].length)+c[2]),b=c.reverse().join("-"))}FormDateInputRefs[a].el.val(b)}},D=function(a){el=f(this);setTimeout(function(){""==el.val()&&(el.val("tt.mm.jjjj"),m(el,0,2,!0))},200)},G=function(a){el=f(this);if(47<a.originalEvent.keyCode&&58>a.originalEvent.keyCode||95<a.originalEvent.keyCode&&
2508106>a.originalEvent.keyCode){var b=r(el);b.start!=b.end&&(m(el,b.start,b.start,!0),b.end=b.start);b.start==b.end&&(2==b.end?(m(el,3,3,!0),b.start=b.end=3):5==b.end&&(m(el,6,6,!0),b.start=b.end=6),10<=el.val().length&&(el.val(el.val().slice(0,b.end)+el.val().slice(b.end+1)),m(el,b.end,b.end,!0)));return!0}switch(a.originalEvent.keyCode){case 190:if(2>el.val().replace(/[^.]+/g,"").length)return!0;break;case 46:b=r(el);b.start==b.end?b.start<el.val().length&&"."==el.val().substr(b.start,1)&&(b.start++,
2509b.end=b.start):b.end--;var c=el.val().substring(b.start,b.end).indexOf(".");if(-1==c&&10>b.start){c="m";-1==el.val().substring(0,b.start).indexOf(".")?c="t":-1==el.val().substring(b.end).indexOf(".")&&(c="j");for(var d=el.val().substring(0,b.start),e=0;e<=b.end-b.start;e++)d+=c;d+=el.val().substring(b.end+1);el.val(d);m(el,b.end+1,b.end+1,!0)}break;case 8:b=r(el);b.start==b.end?0<b.start&&"."==el.val().substr(b.start-1,1)&&(b.start--,b.end=b.start):b.start++;c=el.val().substring(b.start,b.end).indexOf(".");
2510if(-1==c&&0<b.end){c="m";-1==el.val().substring(0,b.start).indexOf(".")?c="t":-1==el.val().substring(b.end).indexOf(".")&&(c="j");d=el.val().substring(0,b.start-1);for(e=0;e<=b.end-b.start;e++)d+=c;d+=el.val().substring(b.end);el.val(d);m(el,b.start-1,b.start-1,!0)}break;case 39:case 37:case 16:case 13:case 9:return!0}a.preventDefault();return!1},H=function(a){el=f(this);if(47<a.originalEvent.keyCode&&58>a.originalEvent.keyCode||95<a.originalEvent.keyCode&&106>a.originalEvent.keyCode)a=r(el),a.start==
2511a.end&&a.start<el.val().length&&"."==el.val().substr(a.start,1)&&(a.start++,a.end=a.start,m(el,a.start,a.start,!0))},z=function(a){el=f(this);w?el.removeClass("hide-content"):(""==el.val()&&(el.val("--:--"),m(el,0,2)),setTimeout(function(){el.off("mouseup",E).on("mouseup",E)},200))},A=function(a){el=f(this);""!=el.val()||"blur"!=a.type&&el.is(":focus")?w&&el.removeClass("hide-content"):el.addClass("hide-content");if(!w&&(el.off("mouseup",E),/^\d{2}[:]\d{2}$/.test(el.val())||el.val(""),a=el.data("formTimeInputRefId"),
25120<a&&"object"==typeof FormTimeInputRefs[a])){var b="";if(0<el.val().length){var c=el.val().split(":");2==c.length&&(c[0]=c[0].replace(/\D+/g,""),c[1]=c[1].replace(/\D+/g,""),2<c[0].length&&(c[0]=c[0].substr(0,2)),2<c[1].length&&(c[1]=c[1].substr(0,2)),2>c[0].length&&(c[0]="00".substr(0,2-c[0].length)+c[0]),2>c[1].length&&(c[1]="00".substr(0,2-c[1].length)+c[1]),b=c.join(":"))}FormTimeInputRefs[a].el.val(b)}},E=function(a){el=f(this);setTimeout(function(){""!=el.val()||"blur"!=a.type&&el.is(":focus")||
2513(el.val("--:--"),m(el,0,2,!0))},200)},I=function(a){el=f(this);if(47<a.originalEvent.keyCode&&58>a.originalEvent.keyCode||95<a.originalEvent.keyCode&&106>a.originalEvent.keyCode){var b=r(el);b.start!=b.end&&(m(el,b.start,b.start,!0),b.end=b.start);b.start==b.end&&(2==b.end&&(m(el,3,3,!0),b.start=b.end=3),5<=el.val().length&&(el.val(el.val().slice(0,b.end)+el.val().slice(b.end+1)),m(el,b.end,b.end,!0)));return!0}switch(a.originalEvent.keyCode){case 190:if(1>el.val().replace(/[^:]+/g,"").length)return!0;
2514break;case 46:b=r(el);if(b.start==b.end)return b.start<el.val().length&&":"==el.val().substr(b.start,1)&&(b.start++,b.end=b.start,m(el,b.start,b.start,!0)),!0;b=el.val().substring(b.start,b.end).indexOf(":");if(-1==b)return!0;break;case 8:b=r(el);if(b.start==b.end)return 0<b.start&&":"==el.val().substr(b.start-1,1)&&(b.start--,b.end=b.start,m(el,b.start,b.start,!0)),!0;b=el.val().substring(b.start,b.end).indexOf(":");if(-1==b)return!0;break;case 39:case 37:case 16:case 13:case 9:return!0}a.preventDefault();
2515return!1},J=function(a){el=f(this);if(47<a.originalEvent.keyCode&&58>a.originalEvent.keyCode||95<a.originalEvent.keyCode&&106>a.originalEvent.keyCode)a=r(el),a.start==a.end&&a.start<el.val().length&&":"==el.val().substr(a.start,1)&&(a.start++,a.end=a.start,m(el,a.start,a.start,!0))},B=function(a){a=a instanceof f?a:f(a);if(a.is("input[type=date]"))if(v)""==a.val()&&a.addClass("hide-content"),a.off("focus",x).on("focus",x),a.off("blur change",y).on("blur change",y);else{var b=a.attr("type","text").clone(!0).attr({type:"text",
2516id:a.attr("id")+"_clone","data-origid":a.attr("id"),maxlength:10}).insertBefore(a);a.hide();a.on("change",function(){var c=f(this);/^\d{4,6}[./-]\d{2}[./-]\d{2}$/.test(c.val())&&(c=new Date(c.val()),b.val(("0"+c.getDate()).substr(-2)+"."+("0"+(c.getMonth()+1)).substr(-2)+"."+c.getFullYear()))}).change();FormDateInputRefs.count++;FormDateInputRefs[FormDateInputRefs.count]={el:a,dummy:b};b.data("formDateInputRefId",FormDateInputRefs.count);b.off("focus",x).on("focus",x);b.off("blur change",y).on("blur change",
2517y);b.off("keydown",G).on("keydown",G);b.off("keyup",H).on("keyup",H)}},C=function(a){a=a instanceof f?a:f(a);if(a.is("input[type=time]"))if(w)""==a.val()&&a.addClass("hide-content"),a.off("focus",z).on("focus",z),a.off("blur change",A).on("blur change",A);else{var b=a.attr("type","text").clone(!0).attr({type:"text",id:a.attr("id")+"_clone","data-origid":a.attr("id"),maxlength:5}).insertBefore(a);a.hide();a.on("change",function(){var c=f(this);/^\d{2}[:]\d{2}$/.test(c.val())&&(c=c.val().split(":"),
25182==c.length&&b.val(("0"+c[0]).substr(-2)+":"+("0"+c[1]).substr(-2)))}).change();FormTimeInputRefs.count++;FormTimeInputRefs[FormTimeInputRefs.count]={el:a,dummy:b};b.data("formTimeInputRefId",FormTimeInputRefs.count);b.off("focus",z).on("focus",z);b.off("blur change",A).on("blur change",A);b.off("keydown",I).on("keydown",I);b.off("keyup",J).on("keyup",J)}},k=new function(){this.onInvalid=function(){var a=f(this),b=a.closest("div.form-item"),c=b.closest("div.form-row"),d=f("html").attr("lang");
2518a.addClass("validation-invalid");
2519a.removeClass("validation-valid");b.addClass("validation-invalid");b.removeClass("validation-valid");1==c.length&&(c.addClass("validation-invalid"),c.removeClass("validation-valid"));b="de"==d?"Fehler in der Eingabe":"Wrong input provided";this.validity.badInput&&(b="de"==d?"Fehler in der Eingabe":"Wrong input provided");this.validity.patternMismatch&&(b=a.attr("title")||a.attr("pattern"),b="de"==d?"Die Eingabe entspricht nicht dem geforderten Muster ("+b+").":"The value does not match the specified pattern ("+
2520b+").");this.validity.rangeOverflow&&(b="de"==d?"Die Eingabe ist \u00fcber dem Maximum ("+a.attr("max")+").":"The value is greater than the maximum ("+a.attr("max")+").");this.validity.rangeUnderflow&&(b="de"==d?"Die Eingabe ist unter dem Minimum ("+a.attr("min")+").":"The value is less than the minimum ("+a.attr("min")+").");this.validity.stepMismatch&&(step=a.attr("step"),0==step&&(step=1),el_value=a.val(),1==step?(el_value_up=Math.ceil(el_value),el_value_down=Math.floor(el_value)):(factor_up=1,
2521el_value_up=Math.round(el_value/step+.5*factor_up)*step,factor_down=-1,el_value_down=Math.round(el_value/step+.5*factor_down)*step),b="de"==d?"Die Eingabe "+el_value.toString().replace(".",",")+" ist nicht erlaubt. Die n\u00e4chsten beiden g\u00fcltigen Werte sind "+el_value_down.toString().replace(".",",")+" oder "+el_value_up.toString().replace(".",",")+".":"The value "+el_value+" is not allowed. The next two valid numbers are "+el_value_down+" or "+el_value_up+".");this.validity.tooLong&&(b="de"==
2522d?"Die Eingabe \u00fcberschreitet die Maximall\u00e4nge ("+a.attr("maxlength")+").":"The value exceeds the specified max-length ("+a.attr("maxlength")+").");this.validity.tooShort&&(b="de"==d?"Die Eingabe hat nicht die Mindestl\u00e4nge ("+a.attr("minlength")+").":"The value fails to meet the specified min-length ("+a.attr("minlength")+").");this.validity.typeMismatch&&(b="","de"==d?("email"==a.attr("type")&&(b=" (Beispiel: [email protected])"),"url"==a.attr("type")&&(b=" (Beispiel: https://www.beispiel.de)"),
2523b="Die Eingabe entspricht nicht dem geforderten Format"+b+"."):("email"==a.attr("type")&&(b=" (Example: [email protected])"),"url"==a.attr("type")&&(b=" (Example: https://www.example.com)"),b="The value is not in the required syntax"+b+"."));this.validity.valueMissing&&(b="de"==d?"Eingabe ist erforderlich.":"Value is required");a=f("#"+a.attr("aria-describedby"));d=a.children(".helper-text-aria-live");1==d.length&&(b!=d.text()&&d.text(b),a.removeClass("helper-text-empty"));jQuery("html, body").animate({scrollTop:jQuery(jQuery(".validation-invalid")[0]).offset().top-
2524jQuery(window).height()/2},0)};this.customCheckboxGroupValidation=function(a){if(1<=jQuery('input[type="checkbox"][data-element-id="'+a+'"]:checked').length)return jQuery('input[type="checkbox"][data-element-id="'+a+'"]').each(function(){"required"==jQuery(this).data("required")&&(jQuery(this).removeClass("validation-invalid").addClass("validation-valid").removeAttr("required"),jQuery(this).closest(".form-item-checkbox-container").hasClass("val
2524idation-invalid")&&jQuery(this).closest(".form-item-checkbox-container").addClass("validation-invalid"))}),
2525!0;jQuery('input[type="checkbox"][data-element-id="'+a+'"][data-required="required"]').each(function(){"required"==jQuery(this).data("required")&&(jQuery(this).addClass("validation-invalid").removeClass("validation-valid").attr("required","required"),jQuery(this).closest(".form-item-checkbox-container").hasClass("validation-invalid")&&jQuery(this).closest(".form-item-checkbox-container").addClass("validation-invalid"))});return!1};this.onInput=function(){var a=f(this),b=a.parent("div.form-item"),
2526c=b.closest("div.form-row"),d=jQuery('input[type="checkbox"][data-element-id="'+this.dataset.elementId+'"]').length;0==d&&(d=1);cbGroupValid=null;"checkbox"==this.type&&1<d&&(cbGroupValid=k.customCheckboxGroupValidation(this.dataset.elementId));if(this.validity.valid&&1==d||1<d&&cbGroupValid){a.addClass("validation-valid");a.removeClass("validation-invalid");b.addClass("validation-valid");b.removeClass("validation-invalid");1==c.length&&(c.addClass("validation-valid"),c.removeClass("validation-invalid"));
2527var e=!0;a=a.attr("aria-describedby");"undefined"!==typeof a&&(f('[aria-describedby="'+a+'"]').each(function(){this.validity.valid||(e=!1)}),e&&(a=f("#"+a),a.children(".helper-text-aria-live").empty(),""==a.text()&&a.addClass("helper-text-empty")))}
2527else a.hasClass("validation-valid")||this.checkValidity()}},F=window.MutationObserver||window.WebKitMutationObserver,t=null,K=null;F&&(t=new F(function(a,b){for(b=0;b<a.length;b++){if("childlist"==a[b].type.toLowerCase()||"characterdata"==a[b].type.toLowerCase())for(var c=
25280;c<a[b].addedNodes.length;c++){var d=f(a[b].addedNodes[c]);if(!d.is(".nolis_formular2")){if(d.is("div.nolis_formular form div.form-item-input input, div.nolis_formular form div.form-item-textarea textarea"))l.showLabelTopClass(d),d.is("textarea")&&l.textareaAutoresize(d),d.off("invalid",k.onInvalid),d.on("invalid",k.onInvalid),d.off("input",k.onInput),d.on("input",k.onInput);else if(d.is("div.nolis_formular form div.form-item-select select"))d.off("invalid",k.onInvalid),d.on("invalid",k.onInvalid),
2529d.off("input",k.onInput),d.on("input",k.onInput);else if(d.is("div.nolis_formular form div.form-item-input label, div.nolis_formular form div.form-item-textarea label, div.nolis_formular form div.form-item-select label, div.nolis_formular form div.form-item span.form-item-container-label, div.nolis_formular form div.form-row span.form-item-row-label"))l.checkLabelLength(d);else{var e=d.closest("div.form-item");0<e.length?(e.is("div.nolis_formular form div.form-item-input, div.nolis_formular form div.form-item-textarea")?
2530e.find("input, textarea").each(function(){l.showLabelTopClass(this);f(this).is("textarea")&&l.textareaAutoresize(this);this.removeEventListener("invalid",k.onInvalid,!0);this.addEventListener("invalid",k.onInvalid,!0);this.removeEventListener("input",k.onInput,!0);this.addEventListener("input",k.onInput,!0)}):e.is("div.nolis_formular form div.form-item-select")&&e.find("select").each(function(){this.removeEventListener("invalid",k.onInvalid,!0);this.addEventListener("invalid",k.onInvalid,!0);this.removeEventListener("input",
2531k.onInput,!0);this.addEventListener("input",k.onInput,!0)}
2531),e.is("div.nolis_formular form div.form-item-input, div.nolis_formular form div.form-item-textarea, div.nolis_formular form div.form-item-select")?e.find("label").each(function(){l.checkLabelLength(this)}):e.find("span.form-item-container-label, span.form-item-row-label").each(function(){l.checkLabelLength(this)})):d.find(".form-item").each(function(){var g=f(this);g.is("div.nolis_formular form div.form-item-input, div.nolis_formular form div.form-item-textarea")?
2532g.find("input, textarea").each(function(){l.showLabelTopClass(this);f(this).is("textarea")&&l.textareaAutoresize(this);this.removeEventListener("invalid",k.onInvalid,!0);this.addEventListener("invalid",k.onInvalid,!0);this.removeEventListener("invalid",k.onInput,!0);this.addEventListener("input",k.onInput,!0)}):g.is("div.nolis_formular form div.form-item-select")&&g.find("select").each(function(){this.removeEventListener("invalid",k.onInvalid,!0);this.addEventListener("invalid",k.onInvalid,!0);this.removeEventListener("invalid",
2533k.onInput,!0);this.addEventListener("input",k.onInput,!0)});g.is("div.nolis_formular form div.form-item-input, div.nolis_formular form div.form-item-textarea, div.nolis_formular form div.form-item-select")?g.find("label").each(function(){l.checkLabelLength(this)}):g.find("span.form-item-container-label, span.form-item-row-label").each(function(){l.checkLabelLength(this)})})}d.is("input[type=date]")?B(d):d.find("input[type=date]").each(function(){B(this)});d.is("input[type=time]")?C(d):d.find("input[type=time]").each(function(){C(this)})}}c=
2534f("characterdata"==a[b].type.toLowerCase()?a[b].target.parentElement:a[b].target);"characterdata"==a[b].type.toLowerCase()&&(c.is("div.nolis_formular form div.form-item-textarea textarea")?l.textareaAutoresize(c):c.is("div.nolis_formular form div.form-item-input label, div.nolis_formular form div.form-item-textarea label, div.nolis_formular form div.form-item-select label, div.nolis_formular form div.form-item span.form-item-container-label, div.nolis_formular form div.form-row span.form-item-row-label")&&
2535l.checkLabelLength(c));"attributes"==a[b].type&&"pseudo-data"==a[b].attributeName&&c.trigger("change");"attributes"==a[b].type&&"style"==a[b].attributeName&&(c.is("div.nolis_formular form div.form-item-textarea")?c.find("textarea").trigger("ui-formjs-change"):c.closest("div.nolis_formular")&&(c.closest("div.form-item-textarea")?c.find("textarea").trigger("ui-formjs-change"):c.find("div.nolis_formular form div.form-item-textarea textarea").trigger("ui-formjs-change")),"none"!=window.getComputedStyle(c.get(0)).getPropertyValue("display")&&
2536(c=c.children().find("span.form-item-container-label"),0<c.length&&l.checkLabelLength(c)))}}),K=new F(function(a,b){for(b=0;b<a.length;b++){if("childlist"==a[b].type.toLowerCase()||"characterdata"==a[b].type.toLowerCase())for(var c=0;c<a[b].addedNodes.length;c++)f(a[b].addedNodes[c]).find("div.nolis_formular:not(.forms-js-initialized):not(.nolis_formular2)").each(function(){l.initFormsJS(this)});"attributes"==a[b].type&&"style"==a[b].attributeName&&f(a[b].target).find("div.nolis_formular:not(.forms-js-initialized):not(.nolis_formular2)").each(function(){l.initFormsJS(this)})}}));
2537f(document).ready(function(a){if("undefined"==typeof autoinitForms||1==autoinitForms)f("div.nolis_formular:not(.nolis_formular2)").each(function(){l.initFormsJS(this)}),K.observe(document,{subtree:!0,childList:!0,characterData:!0,attributes:!0})})})(jQuery);
2538
2539jQuery(document).ready(function() {
2540  if('ontouchstart' in window) {
2541    jQuery('body').removeClass('no-touch').addClass('touch');
2542  }
2543  else {
2544    jQuery('body').removeClass('touch').addClass('no-touch');
2545  }
2546  jQuery(':not(tr).nolis-onclick[data-href]').on('click', function() {
2547    window.location = jQuery(this).data('href');
2548  });
2549  jQuery('tr.nolis-onclick[data-href] td:not(.nolis-onclick-skip)').each(function() {
2550    jQuery(this).attr('title', jQuery(this).parent().prop('title'));
2551  });
2552  jQuery('tr.nolis-onclick[data-href]').each(function() {
2553    jQuery(this).prop('title', '');
2554  });
2555  jQuery('tr.nolis-onclick[data-href] td:not(.nolis-onclick-skip)').on('click', function() {
2556    window.location = jQuery(this).parent().data('href');
2557  });
2558  if(1==jQuery('div#nolis_content').length) {
2559    if(jQuery('div#nolis_content').width()<500) {
2560      jQuery('body').addClass('alert-nolis-content-too-small');
2561    }
2562  }
vendor: 33,928 bytes, lines 2563-2640
2563  if(history.length<=1 || jQuery('div.nolis_formular').hasClass('kontrollseite')) {
2564    jQuery("#nolis_content a.zurueck").hide();
2565  }
2566  NOLISManager.String.autolinkTel(0);
2567});
2568
2569window.NConfirm = async function(text, config={}) {
2570  var confirmBox = new NBox('confirm', Date.now(), '');
2571  confirmBox.setPortal(true);
2572  confirmBox.setConfig(config);
2573  jQuery('html, body').css('overflow-y', 'hidden');
2574  var x = await confirmBox.default(text, 1);
2575  jQuery('html, body').css('overflow-y', '');
2576  return x;
2577};
2578
2579window.NAlert = async function(text, config={}) {
2580  var confirmBox = new NBox('alert', Date.now(), '');
2581  confirmBox.setPortal(true);
2582  confirmBox.setConfig(config);
2583  jQuery('html, body').css('overflow-y', 'hidden');
2584  var x = await confirmBox.default(text, 1);
2585  jQuery('html, body').css('overflow-y', '');
2586  return x;
2587};
2588window.NPrompt = async function(text, config={}) {
2589  var confirmBox = new NBox('prompt', Date.now(), '');
2590  confirmBox.setPortal(true);
2591  confirmBox.setConfig(config, true);
2592  jQuery('html, body').css('overflow-y', 'hidden');
2593  var x = await confirmBox.default(text, 1);
2594  jQuery('html, body').css('overflow-y', '');
2595  return x;
2596};
2597
2598window.NPassword = async function(text, config={}) {
2599  var confirmBox = new NBox('password', Date.now(), '');
2600  confirmBox.setPortal(true);
2601  confirmBox.setConfig(config, true);
2602  jQuery('html, body').css('overflow-y', 'hidden');
2603  var x = await confirmBox.default(text, 1);
2604  jQuery('html, body').css('overflow-y', '');
2605  return x;
2606};
2607  jQuery('document').ready(()=>{
2608    let boxes=jQuery('div.nolis_card[data-href]');
2609
2610    boxes.click( function(event){
2611      let t=jQuery(event.target);
2612
2613      if(1>t.parents('.nolis_card.nolis_card_small').length){
2614        if(t.parents('.vcard_button').length || t.parents('.card_item.card_icon').length || t.parents('.unterzeile-item').length){
2615        return true;
2616        }
2617      }
2618
2619      window.open(jQuery(this).data('href'), '_self');
2620    });
2621
2622    boxes.keyup(function(event){
2623      if(13==event.keyCode){
2624        window.open(jQuery(this).data('href'), '_self');
2625      }
2626    });
2627  });
2628/**
2629 * Swiper 11.1.4
2630 * Most modern mobile touch slider and framework with hardware accelerated transitions
2631 * https://swiperjs.com
2632 *
2633 * Copyright 2014-2024 Vladimir Kharlampidi
2634 *
2635 * Released under the MIT License
2636 *
2637 * Released on: May 30, 2024
2638 */
2639
2640var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={}),Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function d(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let a=1;a<arguments.length;a+=1){const i=a<0||arguments.length<=a?void 0:arguments[a];if(null!=i&&(s=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const s=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,a=s.length;t<a;t+=1){const a=s[t],r=Object.getOwnPropertyDescriptor(i,a);void 0!==r&&r.enumerable&&(c(e[a])&&c(i[a])?i[a].__swiper__?e[a]=i[a]:p(e[a],i[a]):!c(e[a])&&c(i[a])?(e[a]={},i[a].__swiper__?e[a]=i[a]:p(e[a],i[a])):e[a]=i[a])}}}var s;return e}function u(e,t,s){e.style.setProperty(t,s)}function m(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function w(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function E(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function x(e,t){t&&e.addEventListener("transitionend",(function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))}))}function S(e,t,s){const a=r();return s?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function T(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let M,C,P;function L(){return M||(M=function(){const e=r(),t=a();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),M}function I(e){return void 0===e&&(e={}),C||(C=function(e){let{userAgent:t}=void 0===e?{}:e;const s=L(),a=r(),i=a.navigator.platform,n=t||a.navigator.userAgent,l={ios:!1,android:!1},o=a.screen.width,d=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let p=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),m=!p&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let f="MacIntel"===i;return!p&&f&&s.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${d}`)>=0&&(p=n.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),f=!1),c&&!h&&(l.os="android",l.android=!0),(p||m||u)&&(l.os="ios",l.ios=!0),l}(e)),C}function A(){return P||(P=function(){const e=r(),t=I();let s=!1;function a(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(a()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,a]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));s=e<16||16===e&&a<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),n=a();return{isSafari:s||n,needPerspectiveFix:s,need3dFix:n||i&&t.ios,isWebView:i}}()),P}var z={on(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;const i=s?"unshift":"push";return e.split(" ").forEach((e=>{a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][i](t)})),a},once(e,t,s){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function i(){a.off(e,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];t.apply(a,r)}return i.__emitterProxy=t,a.on(e,i,s)},onAny(e,t){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const a=t?"unshift":"push";return s.eventsAnyListeners.indexOf(e)<0&&s.eventsAnyListeners[a](e),s},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const s=t.eventsAnyListeners.indexOf(e);return s>=0&&t.eventsAnyListeners.splice(s,1),t},off(e,t){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?s.eventsListeners[e]=[]:s.eventsListeners[e]&&s.eventsListeners[e].forEach(((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&s.eventsListeners[e].splice(i,1)}))})),s):s},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,s,a;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],s=r.slice(1,r.length),a=e):(t=r[0].events,s=r[0].data,a=r[0].context||e),s.unshift(a);return(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(a,[t,...s])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(a,s)}))})),e}};const $=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const k=(e,t,s)=>{t&&!e.classList.contains(s)?e.classList.add(s):!t&&e.classList.contains(s)&&e.classList.remove(s)};const O=(e,t)=>{if(!e||e.destroyed||!e.params)return;const s=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(s){let t=s.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(s.shadowRoot?t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{s.shadowRoot&&(t=s.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},D=(e,t)=>{if(!e.slides[t])return;const s=e.slides[t].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},G=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const s=e.slides.length;if(!s||!t||t<0)return;t=Math.min(t,s);const a="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,r=[s-t];return r.push(...Array.from({length:t}).map(((e,t)=>s+a+t))),void e.slides.forEach(((t,s)=>{r.includes(t.column)&&D(e,s)}))}const r=i+a-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=r+t;a+=1){const t=(a%s+s)%s;(t<i||t>r)&&D(e,t)}else for(let a=Math.max(i-t,0);a<=Math.min(r+t,s-1);a+=1)a!==i&&(a>r||a<i)&&D(e,a)};var H={updateSize:function(){const e=this;let t,s;const a=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:a.clientWidth,s=void 0!==e.params.height&&null!==e.params.height?e.params.height:a.clientHeight,0===t&&e.isHorizontal()||0===s&&e.isVertical()||(t=t-parseInt(b(a,"padding-left")||0,10)-parseInt(b(a,"padding-right")||0,10),s=s-parseInt(b(a,"padding-top")||0,10)-parseInt(b(a,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(s)&&(s=0),Object.assign(e,{width:t,height:s,size:e.isHorizontal()?t:s}))},updateSlides:function(){const e=this;function t(t,s){return parseFloat(t.getPropertyValue(e.getDirectionLabel(s))||0)}const s=e.params,{wrapperEl:a,slidesEl:i,size:r,rtlTranslate:n,wrongRTL:l}=e,o=e.virtual&&s.virtual.enabled,d=o?e.virtual.slides.length:e.slides.length,c=f(i,`.${e.params.slideClass}, swiper-slide`),p=o?e.virtual.slides.length:c.length;let m=[];const h=[],g=[];let v=s.slidesOffsetBefore;"function"==typeof v&&(v=s.slidesOffsetBefore.call(e));let w=s.slidesOffsetAfter;"function"==typeof w&&(w=s.slidesOffsetAfter.call(e));const y=e.snapGrid.length,E=e.slidesGrid.length;let x=s.spaceBetween,T=-v,M=0,C=0;if(void 0===r)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*r:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x,c.forEach((e=>{n?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),s.centeredSlides&&s.cssMode&&(u(a,"--swiper-centered-offset-before",""),u(a,"--swiper-centered-offset-after",""));const P=s.grid&&s.grid.rows>1&&e.grid;let L;P?e.grid.initSlides(c):e.grid&&e.grid.unsetSlides();const I="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let a=0;a<p;a+=1){let i;if(L=0,c[a]&&(i=c[a]),P&&e.grid.updateSlide(a,i,c),!c[a]||"none"!==b(i,"display")){if("auto"===s.slidesPerView){I&&(c[a].style[e.getDirectionLabel("width")]="");const r=getComputedStyle(i),n=i.style.transform,l=i.style.webkitTransform;if(n&&(i.style.transform="none"),l&&(i.style.webkitTransform="none"),s.roundLengths)L=e.isHorizontal()?S(i,"width",!0):S(i,"height",!0);else{const e=t(r,"width"),s=t(r,"padding-left"),a=t(r,"padding-right"),n=t(r,"margin-left"),l=t(r,"margin-right"),o=r.getPropertyValue("box-sizing");if(o&&"border-box"===o)L=e+n+l;else{const{clientWidth:t,offsetWidth:r}=i;L=e+s+a+n+l+(r-t)}}n&&(i.style.transform=n),l&&(i.style.webkitTransform=l),s.roundLengths&&(L=Math.floor(L))}else L=(r-(s.slidesPerView-1)*x)/s.slidesPerView,s.roundLengths&&(L=Math.floor(L)),c[a]&&(c[a].style[e.getDirectionLabel("width")]=`${L}px`);c[a]&&(c[a].swiperSlideSize=L),g.push(L),s.centeredSlides?(T=T+L/2+M/2+x,0===M&&0!==a&&(T=T-r/2-x),0===a&&(T=T-r/2-x),Math.abs(T)<.001&&(T=0),s.roundLengths&&(T=Math.floor(T)),C%s.slidesPerGroup==0&&m.push(T),h.push(T)):(s.roundLengths&&(T=Math.floor(T)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup==0&&m.push(T),h.push(T),T=T+L+x),e.virtualSize+=L+x,M=L,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+w,n&&l&&("slide"===s.effect||"coverflow"===s.effect)&&(a.style.width=`${e.virtualSize+x}px`),s.setWrapperSize&&(a.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),P&&e.grid.updateWrapperSize(L,m),!s.centeredSlides){const t=[];for(let a=0;a<m.length;a+=1){let i=m[a];s.roundLengths&&(i=Math.floor(i)),m[a]<=e.virtualSize-r&&t.push(i)}m=t,Math.floor(e.virtualSize-r)-Math.floor(m[m.length-1])>1&&m.push(e.virtualSize-r)}if(o&&s.loop){const t=g[0]+x;if(s.slidesPerGroup>1){const a=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/s.slidesPerGroup),i=t*s.slidesPerGroup;for(let e=0;e<a;e+=1)m.push(m[m.length-1]+i)}for(let a=0;a<e.virtual.slidesBefore+e.virtual.slidesAfter;a+=1)1===s.slidesPerGroup&&m.push(m[m.length-1]+t),h.push(h[h.length-1]+t),e.virtualSize+=t}if(0===m.length&&(m=[0]),0!==x){const t=e.isHorizontal()&&n?"marginLeft":e.getDirectionLabel("marginRight");c.filter(((e,t)=>!(s.cssMode&&!s.loop)||t!==c.length-1)).forEach((e=>{e.style[t]=`${x}px`}))}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=e-r;m=m.map((e=>e<=0?-v:e>t?t+w:e))}if(s.centerInsufficientSlides){let e=0;g.forEach((t=>{e+=t+(x||0)})),e-=x;const t=(s.slidesOffsetBefore||0)+(s.slidesOffsetAfter||0);if(e+t<r){const s=(r-e-t)/2;m.forEach(((e,t)=>{m[t]=e-s})),h.forEach(((e,t)=>{h[t]=e+s}))}}if(Object.assign(e,{slides:c,snapGrid:m,slidesGrid:h,slidesSizesGrid:g}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){u(a,"--swiper-centered-offset-before",-m[0]+"px"),u(a,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],s=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+s))}if(p!==d&&e.emit("slidesLengthChange"),m.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==E&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(o||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,a=e.el.classList.contains(t);p<=s.maxBackfaceHiddenSlides?a||e.el.classList.add(t):a&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,s=[],a=t.virtual&&t.params.virtual.enabled;let i,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const n=e=>a?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{s.push(e)}));else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length&&!a)break;s.push(n(e))}else s.push(n(t.activeIndex));for(i=0;i<s.length;i+=1)if(void 0!==s[i]){const e=s[i].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,s=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let a=0;a<t.length;a+=1)t[a].swiperSlideOffset=(e.isHorizontal()?t[a].offsetLeft:t[a].offsetTop)-s-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,s=t.params,{slides:a,rtlTranslate:i,snapGrid:r}=t;if(0===a.length)return;void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();let n=-e;i&&(n=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=s.spaceBetween;"string"==typeof l&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:"string"==typeof l&&(l=parseFloat(l));for(let e=0;e<a.length;e+=1){const o=a[e];let d=o.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(d-=a[0].swiperSlideOffset);const c=(n+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),p=(n-r[0]+(s.centeredSlides?t.minTranslate():0)-d)/(o.swiperSlideSize+l),u=-(n-d),m=u+t.slidesSizesGrid[e],h=u>=0&&u<=t.size-t.slidesSizesGrid[e],f=u>=0&&u<t.size-1||m>1&&m<=t.size||u<=0&&m>=t.size;f&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e)),$(o,f,s.slideVisibleClass),$(o,h,s.slideFullyVisibleClass),o.progress=i?-c:c,o.originalProgress=i?-p:p}},updateProgress:function(e){const t=this;if(void 0===e){const s=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*s||0}const s=t.params,a=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:r,isEnd:n,progressLoop:l}=t;const o=r,d=n;if(0===a)i=0,r=!0,n=!0;else{i=(e-t.minTranslate())/a;const s=Math.abs(e-t.minTranslate())<1,l=Math.abs(e-t.maxTranslate())<1;r=s||i<=0,n=l||i>=1,s&&(i=0),l&&(i=1)}if(s.loop){const s=t.getSlideIndexByData(0),a=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[s],r=t.slidesGrid[a],n=t.slidesGrid[t.slidesGrid.length-1],o=Math.abs(e);l=o>=i?(o-i)/n:(o+n-r)/n,l>1&&(l-=1)}Object.assign(t,{progress:i,progressLoop:l,isBeginning:r,isEnd:n}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!d&&t.emit("reachEnd toEdge"),(o&&!r||d&&!n)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){const e=this,{slides:t,params:s,slidesEl:a,activeIndex:i}=e,r=e.virtual&&s.virtual.enabled,n=e.grid&&s.grid&&s.grid.rows>1,l=e=>f(a,`.${s.slideClass}${e}, swiper-slide${e}`)[0];let o,d,c;if(r)if(s.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),o=l(`[data-swiper-slide-index="${t}"]`)}else o=l(`[data-swiper-slide-index="${i}"]`);else n?(o=t.filter((e=>e.column===i))[0],c=t.filter((e=>e.column===i+1))[0],d=t.filter((e=>e.column===i-1))[0]):o=t[i];o&&(n||(c=function(e,t){const s=[];for(;e.nextElementSibling;){const a=e.nextElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c&&(c=t[0]),d=function(e,t){const s=[];for(;e.previousElementSibling;){const a=e.previousElementSibling;t?a.matches(t)&&s.push(a):s.push(a),e=a}return s}(o,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!d&&(d=t[t.length-1]))),t.forEach((e=>{k(e,e===o,s.slideActiveClass),k(e,e===c,s.slideNextClass),k(e,e===d,s.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,s=t.rtlTranslate?t.translate:-t.translate,{snapGrid:a,params:i,activeIndex:r,realIndex:n,snapIndex:l}=t;let o,d=e;const c=e=>{let s=e-t.virtual.slidesBefore;return s<0&&(s=t.virtual.slides.length+s),s>=t.virtual.slides.length&&(s-=t.virtual.slides.length),s};if(void 0===d&&(d=function(e){const{slidesGrid:t,params:s}=e,a=e.rtlTranslate?e.translate:-e.translate;let i;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?a>=t[e]&&a<t[e+1]-(t[e+1]-t[e])/2?i=e:a>=t[e]&&a<t[e+1]&&(i=e+1):a>=t[e]&&(i=e);return s.normalizeSlideIndex&&(i<0||void 0===i)&&(i=0),i}(t)),a.indexOf(s)>=0)o=a.indexOf(s);else{const e=Math.min(i.slidesPerGroupSkip,d);o=e+Math.floor((d-e)/i.slidesPerGroup)}if(o>=a.length&&(o=a.length-1),d===r&&!t.params.loop)return void(o!==l&&(t.snapIndex=o,t.emit("snapIndexChange")));if(d===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=c(d));const p=t.grid&&i.grid&&i.grid.rows>1;let u;if(t.virtual&&i.virtual.enabled&&i.loop)u=c(d);else if(p){const e=t.slides.filter((e=>e.column===d))[0];let s=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(t.slides.indexOf(e),0)),u=Math.floor(s/i.grid.rows)}else if(t.slides[d]){const e=t.slides[d].getAttribute("data-swiper-slide-index");u=e?parseInt(e,10):d}else u=d;Object.assign(t,{previousSnapIndex:l,snapIndex:o,previousRealIndex:n,realIndex:u,previousIndex:r,activeIndex:d}),t.initialized&&G(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(n!==u&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const s=this,a=s.params;let i=e.closest(`.${a.slideClass}, swiper-slide`);!i&&s.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!i&&e.matches&&e.matches(`.${a.slideClass}, swiper-slide`)&&(i=e)}));let r,n=!1;if(i)for(let e=0;e<s.slides.length;e+=1)if(s.slides[e]===i){n=!0,r=e;break}if(!i||!n)return s.clickedSlide=void 0,void(s.clickedIndex=void 0);s.clickedSlide=i,s.virtual&&s.params.virtual.enabled?s.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):s.clickedIndex=r,a.slideToClickedSlide&&void 0!==s.clickedIndex&&s.clickedIndex!==s.activeIndex&&s.slideToClickedSlide()}};var N={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:s,translate:a,wrapperEl:i}=this;if(t.virtualTranslate)return s?-a:a;if(t.cssMode)return a;let r=d(i,e);return r+=this.cssOverflowAdjustment(),s&&(r=-r),r||0},setTranslate:function(e,t){const s=this,{rtlTranslate:a,params:i,wrapperEl:r,progress:n}=s;let l,o=0,d=0;s.isHorizontal()?o=a?-e:e:d=e,i.roundLengths&&(o=Math.floor(o),d=Math.floor(d)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:d,i.cssMode?r[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-o:-d:i.virtualTranslate||(s.isHorizontal()?o-=s.cssOverflowAdjustment():d-=s.cssOverflowAdjustment(),r.style.transform=`translate3d(${o}px, ${d}px, 0px)`);const c=s.maxTranslate()-s.minTranslate();l=0===c?0:(e-s.minTranslate())/c,l!==n&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===s&&(s=!0),void 0===a&&(a=!0);const r=this,{params:n,wrapperEl:l}=r;if(r.animating&&n.preventInteractionOnTransition)return!1;const o=r.minTranslate(),d=r.maxTranslate();let c;if(c=a&&e>o?o:a&&e<d?d:e,r.updateProgress(c),n.cssMode){const e=r.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-c;else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:-c,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(c),s&&(r.emit("beforeTransitionStart",t,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,s&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function X(e){let{swiper:t,runCallbacks:s,direction:a,step:i}=e;const{activeIndex:r,previousIndex:n}=t;let l=a;if(l||(l=r>n?"next":r<n?"prev":"reset"),t.emit(`transition${i}`),s&&r!==n){if("reset"===l)return void t.emit(`slideResetTransition${i}`);t.emit(`slideChangeTransition${i}`),"next"===l?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`)}}var B={slideTo:function(e,t,s,a,i){void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let n=e;n<0&&(n=0);const{params:l,snapGrid:o,slidesGrid:d,previousIndex:c,activeIndex:p,rtlTranslate:u,wrapperEl:h,enabled:f}=r;if(!f&&!a&&!i||r.destroyed||r.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,n);let v=g+Math.floor((n-g)/r.params.slidesPerGroup);v>=o.length&&(v=o.length-1);const w=-o[v];if(l.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*w),s=Math.floor(100*d[e]),a=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=s&&t<a-(a-s)/2?n=e:t>=s&&t<a&&(n=e+1):t>=s&&(n=e)}if(r.initialized&&n!==p){if(!r.allowSlideNext&&(u?w>r.translate&&w>r.minTranslate():w<r.translate&&w<r.minTranslate()))return!1;if(!r.allowSlidePrev&&w>r.translate&&w>r.maxTranslate()&&(p||0)!==n)return!1}let b;if(n!==(c||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(w),b=n>p?"next":n<p?"prev":"reset",u&&-w===r.translate||!u&&w===r.translate)return r.updateActiveIndex(n),l.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==l.effect&&r.setTranslate(w),"reset"!==b&&(r.transitionStart(s,b),r.transitionEnd(s,b)),!1;if(l.cssMode){const e=r.isHorizontal(),s=u?w:-w;if(0===t){const t=r.virtual&&r.params.virtual.enabled;t&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),t&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[e?"scrollLeft":"scrollTop"]=s}))):h[e?"scrollLeft":"scrollTop"]=s,t&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}))}else{if(!r.support.smoothScroll)return m({swiper:r,targetPosition:s,side:e?"left":"top"}),!0;h.scrollTo({[e?"left":"top"]:s,behavior:"smooth"})}return!0}return r.setTransition(t),r.setTranslate(w),r.updateActiveIndex(n),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,a),r.transitionStart(s,b),0===t?r.transitionEnd(s,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,s,a){if(void 0===e&&(e=0),void 0===s&&(s=!0),"string"==typeof e){e=parseInt(e,10)}const i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);const r=i.grid&&i.params.grid&&i.params.grid.rows>1;let n=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)n+=i.virtual.slidesBefore;else{let e;if(r){const t=n*i.params.grid.rows;e=i.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===t))[0].column}else e=i.getSlideIndexByData(n);const t=r?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:s}=i.params;let l=i.params.slidesPerView;"auto"===l?l=i.slidesPerViewDynamic():(l=Math.ceil(parseFloat(i.params.slidesPerView,10)),s&&l%2==0&&(l+=1));let o=t-e<l;if(s&&(o=o||e<Math.ceil(l/2)),a&&s&&"auto"!==i.params.slidesPerView&&!r&&(o=!1),o){const a=s?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:a,slideTo:!0,activeSlideIndex:"next"===a?e+1:e-t+1,slideRealIndex:"next"===a?i.realIndex:void 0})}if(r){const e=n*i.params.grid.rows;n=i.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0].column}else n=i.getSlideIndexByData(n)}return requestAnimationFrame((()=>{i.slideTo(n,t,s,a)})),i},slideNext:function(e,t,s){void 0===t&&(t=!0);const a=this,{enabled:i,params:r,animating:n}=a;if(!i||a.destroyed)return a;void 0===e&&(e=a.params.speed);let l=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(l=Math.max(a.slidesPerViewDynamic("current",!0),1));const o=a.activeIndex<r.slidesPerGroupSkip?1:l,d=a.virtual&&r.virtual.enabled;if(r.loop){if(n&&!d&&r.loopPreventsSliding)return!1;if(a.loopFix({direction:"next"}),a._clientLeft=a.wrapperEl.clientLeft,a.activeIndex===a.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{a.slideTo(a.activeIndex+o,e,t,s)})),!0}return r.rewind&&a.isEnd?a.slideTo(0,e,t,s):a.slideTo(a.activeIndex+o,e,t,s)},slidePrev:function(e,t,s){void 0===t&&(t=!0);const a=this,{params:i,snapGrid:r,slidesGrid:n,rtlTranslate:l,enabled:o,animating:d}=a;if(!o||a.destroyed)return a;void 0===e&&(e=a.params.speed);const c=a.virtual&&i.virtual.enabled;if(i.loop){if(d&&!c&&i.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}function p(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const u=p(l?a.translate:-a.translate),m=r.map((e=>p(e)));let h=r[m.indexOf(u)-1];if(void 0===h&&i.cssMode){let e;r.forEach(((t,s)=>{u>=t&&(e=s)})),void 0!==e&&(h=r[e>0?e-1:e])}let f=0;if(void 0!==h&&(f=n.indexOf(h),f<0&&(f=a.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(f=f-a.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),i.rewind&&a.isBeginning){const i=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(i,e,t,s)}return i.loop&&0===a.activeIndex&&i.cssMode?(requestAnimationFrame((()=>{a.slideTo(f,e,t,s)})),!0):a.slideTo(f,e,t,s)},slideReset:function(e,t,s){void 0===t&&(t=!0);const a=this;if(!a.destroyed)return void 0===e&&(e=a.params.speed),a.slideTo(a.activeIndex,e,t,s)},slideToClosest:function(e,t,s,a){void 0===t&&(t=!0),void 0===a&&(a=.5);const i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let r=i.activeIndex;const n=Math.min(i.params.slidesPerGroupSkip,r),l=n+Math.floor((r-n)/i.params.slidesPerGroup),o=i.rtlTranslate?i.translate:-i.translate;if(o>=i.snapGrid[l]){const e=i.snapGrid[l];o-e>(i.snapGrid[l+1]-e)*a&&(r+=i.params.slidesPerGroup)}else{const e=i.snapGrid[l-1];o-e<=(i.snapGrid[l]-e)*a&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,e,t,s)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:s}=e,a="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let i,r=e.clickedIndex;const n=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-a/2||r>e.slides.length-e.loopedSlides+a/2?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-a?(e.loopFix(),r=e.getSlideIndex(f(s,`${n}[data-swiper-slide-index="${i}"]`)[0]),l((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var Y={loopCreate:function(e){const t=this,{params:s,slidesEl:a}=t;if(!s.loop||t.virtual&&t.params.virtual.enabled)return;const i=()=>{f(a,`.${s.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},r=t.grid&&s.grid&&s.grid.rows>1,n=s.slidesPerGroup*(r?s.grid.rows:1),l=t.slides.length%n!=0,o=r&&t.slides.length%s.grid.rows!=0,d=e=>{for(let a=0;a<e;a+=1){const e=t.isElement?v("swiper-slide",[s.slideBlankClass]):v("div",[s.slideClass,s.slideBlankClass]);t.slidesEl.append(e)}};if(l){if(s.loopAddBlankSlides){d(n-t.slides.length%n),t.recalcSlides(),t.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
2640not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else if(o){if(s.loopAddBlankSlides){d(s.grid.rows-t.slides.length%s.grid.rows),t.recalcSlides(),t.updateSlides()}else g("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else i();t.loopFix({slideRealIndex:e,direction:s.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:s=!0,direction:a,setTranslate:i,activeSlideIndex:r,byController:n,byMousewheel:l}=void 0===e?{}:e;const o=this;if(!o.params.loop)return;o.emit("beforeLoopFix");const{slides:d,allowSlidePrev:c,allowSlideNext:p,slidesEl:u,params:m}=o,{centeredSlides:h}=m;if(o.allowSlidePrev=!0,o.allowSlideNext=!0,o.virtual&&m.virtual.enabled)return s&&(m.centeredSlides||0!==o.snapIndex?m.centeredSlides&&o.snapIndex<m.slidesPerView?o.slideTo(o.virtual.slides.length+o.snapIndex,0,!1,!0):o.snapIndex===o.snapGrid.length-1&&o.slideTo(o.virtual.slidesBefore,0,!1,!0):o.slideTo(o.virtual.slides.length,0,!1,!0)),o.allowSlidePrev=c,o.allowSlideNext=p,void o.emit("loopFix");let f=m.slidesPerView;"auto"===f?f=o.slidesPerViewDynamic():(f=Math.ceil(parseFloat(m.slidesPerView,10)),h&&f%2==0&&(f+=1));const v=m.slidesPerGroupAuto?f:m.slidesPerGroup;let w=v;w%v!=0&&(w+=v-w%v),w+=m.loopAdditionalSlides,o.loopedSlides=w;const b=o.grid&&m.grid&&m.grid.rows>1;d.length<f+w?g("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===m.grid.fill&&g("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const y=[],E=[];let x=o.activeIndex;void 0===r?r=o.getSlideIndex(d.filter((e=>e.classList.contains(m.slideActiveClass)))[0]):x=r;const S="next"===a||!a,T="prev"===a||!a;let M=0,C=0;const P=b?Math.ceil(d.length/m.grid.rows):d.length,L=(b?d[r].column:r)+(h&&void 0===i?-f/2+.5:0);if(L<w){M=Math.max(w-L,v);for(let e=0;e<w-L;e+=1){const t=e-Math.floor(e/P)*P;if(b){const e=P-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&y.push(t)}else y.push(P-t-1)}}else if(L+f>P-w){C=Math.max(L-(P-2*w),v);for(let e=0;e<C;e+=1){const t=e-Math.floor(e/P)*P;b?d.forEach(((e,s)=>{e.column===t&&E.push(s)})):E.push(t)}}if(o.__preventObserver__=!0,requestAnimationFrame((()=>{o.__preventObserver__=!1})),T&&y.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.prepend(d[e]),d[e].swiperLoopMoveDOM=!1})),S&&E.forEach((e=>{d[e].swiperLoopMoveDOM=!0,u.append(d[e]),d[e].swiperLoopMoveDOM=!1})),o.recalcSlides(),"auto"===m.slidesPerView?o.updateSlides():b&&(y.length>0&&T||E.length>0&&S)&&o.slides.forEach(((e,t)=>{o.grid.updateSlide(t,e,o.slides)})),m.watchSlidesProgress&&o.updateSlidesOffset(),s)if(y.length>0&&T){if(void 0===t){const e=o.slidesGrid[x],t=o.slidesGrid[x+M]-e;l?o.setTranslate(o.translate-t):(o.slideTo(x+Math.ceil(M),0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else if(i){const e=b?y.length/m.grid.rows:y.length;o.slideTo(o.activeIndex+e,0,!1,!0),o.touchEventsData.currentTranslate=o.translate}}else if(E.length>0&&S)if(void 0===t){const e=o.slidesGrid[x],t=o.slidesGrid[x-C]-e;l?o.setTranslate(o.translate-t):(o.slideTo(x-C,0,!1,!0),i&&(o.touchEventsData.startTranslate=o.touchEventsData.startTranslate-t,o.touchEventsData.currentTranslate=o.touchEventsData.currentTranslate-t))}else{const e=b?E.length/m.grid.rows:E.length;o.slideTo(o.activeIndex-e,0,!1,!0)}if(o.allowSlidePrev=c,o.allowSlideNext=p,o.controller&&o.controller.control&&!n){const e={slideRealIndex:t,direction:a,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(o.controller.control)?o.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===m.slidesPerView&&s})})):o.controller.control instanceof o.constructor&&o.controller.control.params.loop&&o.controller.control.loopFix({...e,slideTo:o.controller.control.params.slidesPerView===m.slidesPerView&&s})}o.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:s}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const a=[];
vendor: 5,314 bytes, line 2640
2640e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;a[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),a.forEach((e=>{s.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function R(e,t,s){const a=r(),{params:i}=e,n=i.edgeSwipeDetection,l=i.edgeSwipeThreshold;return!n||!(s<=l||s>=a.innerWidth-l)||"prevent"===n&&(t.preventDefault(),!0)}function F(e){const t=this,s=a();let i=e;i.originalEvent&&(i=i.originalEvent);const n=t.touchEventsData;if("pointerdown"===i.type){if(null!==n.pointerId&&n.pointerId!==i.pointerId)return;n.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(n.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void R(t,i,i.targetTouches[0].pageX);const{params:l,touches:d,enabled:c}=t;if(!c)return;if(!l.simulateTouch&&"mouse"===i.pointerType)return;if(t.animating&&l.preventInteractionOnTransition)return;!t.animating&&l.cssMode&&l.loop&&t.loopFix();let p=i.target;if("wrapper"===l.touchEventsTarget&&!t.wrapperEl.contains(p))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(n.isTouched&&n.isMoved)return;const u=!!l.noSwipingClass&&""!==l.noSwipingClass,m=i.composedPath?i.composedPath():i.path;u&&i.target&&i.target.shadowRoot&&m&&(p=m[0]);const h=l.noSwipingSelector?l.noSwipingSelector:`.${l.noSwipingClass}`,f=!(!i.target||!i.target.shadowRoot);if(l.noSwiping&&(f?function(e,t){return void 0===t&&(t=this),function t(s){if(!s||s===a()||s===r())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(e);return i||s.getRootNode?i||t(s.getRootNode().host):null}(t)}(h,p):p.closest(h)))return void(t.allowClick=!0);if(l.swipeHandler&&!p.closest(l.swipeHandler))return;d.currentX=i.pageX,d.currentY=i.pageY;const g=d.currentX,v=d.currentY;if(!R(t,i,g))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),d.startX=g,d.startY=v,n.touchStartTime=o(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,l.threshold>0&&(n.allowThresholdMove=!1);let w=!0;p.matches(n.focusableElements)&&(w=!1,"SELECT"===p.nodeName&&(n.isTouched=!1)),s.activeElement&&s.activeElement.matches(n.focusableElements)&&s.activeElement!==p&&s.activeElement.blur();const b=w&&t.allowTouchMove&&l.touchStartPreventDefault;!l.touchStartForcePreventDefault&&!b||p.isContentEditable||i.preventDefault(),l.freeMode&&l.freeMode.enabled&&t.freeMode&&t.animating&&!l.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function q(e){const t=a(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:l,enabled:d}=s;if(!d)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let c,p=e;if(p.originalEvent&&(p=p.originalEvent),"pointermove"===p.type){if(null!==i.touchId)return;if(p.pointerId!==i.pointerId)return}if("touchmove"===p.type){if(c=[...p.changedTouches].filter((e=>e.identifier===i.touchId))[0],!c||c.identifier!==i.touchId)return}else c=p;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",p));const u=c.pageX,m=c.pageY;if(p.preventedByNestedSwiper)return n.startX=u,void(n.startY=m);if(!s.allowTouchMove)return p.target.matches(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m}),i.touchStartTime=o()));if(r.touchReleaseOnEdges&&!r.loop)if(s.isVertical()){if(m<n.startY&&s.translate<=s.maxTranslate()||m>n.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(u<n.startX&&s.translate<=s.maxTranslate()||u>n.startX&&s.translate>=s.minTranslate())return;if(t.activeElement&&p.target===t.activeElement&&p.target.matches(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);i.allowTouchCallbacks&&s.emit("touchMove",p),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=u,n.currentY=m;const h=n.currentX-n.startX,f=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(h**2+f**2)<s.params.threshold)return;if(void 0===i.isScrolling){let e;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:h*h+f*f>=25&&(e=180*Math.atan2(Math.abs(f),Math.abs(h))/Math.PI,i.isScrolling=s.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",p),void 0===i.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===p.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&p.cancelable&&p.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&p.stopPropagation();let g=s.isHorizontal()?h:f,v=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),n.diff=g,g*=r.touchRatio,l&&(g=-g,v=-v);const w=s.touchesDirection;s.swipeDirection=g>0?"prev":"next",s.touchesDirection=v>0?"prev":"next";const b=s.params.loop&&!r.cssMode,y="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!i.isMoved){if(b&&y&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}
vendor: 2,342 bytes, line 2640
2640});s.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",p)}if((new Date).getTime(),i.isMoved&&i.allowThresholdMove&&w!==s.touchesDirection&&b&&y&&Math.abs(g)>=1)return Object.assign(n,{startX:u,startY:m,currentX:u,currentY:m,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);s.emit("sliderMove",p),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let E=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),g>0?(b&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+g)**x))):g<0&&(b&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]:s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===r.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<s.maxTranslate()&&(E=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-g)**x))),E&&(p.preventedByNestedSwiper=!0),!s.allowSlideNext&&"next"===s.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&"prev"===s.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(g)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,void(n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function 
vendor: 54,892 bytes, line 2640
2640V(e){const t=this,s=t.touchEventsData;let a,i=e;i.originalEvent&&(i=i.originalEvent);if("touchend"===i.type||"touchcancel"===i.type){if(a=[...i.changedTouches].filter((e=>e.identifier===s.touchId))[0],!a||a.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(i.pointerId!==s.pointerId)return;a=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)){if(!(["pointercancel","contextmenu"].includes(i.type)&&(t.browser.isSafari||t.browser.isWebView)))return}s.pointerId=null,s.touchId=null;const{params:r,touches:n,rtlTranslate:d,slidesGrid:c,enabled:p}=t;if(!p)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(s.allowTouchCallbacks&&t.emit("touchEnd",i),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&r.grabCursor&&t.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);r.grabCursor&&s.isMoved&&s.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=o(),m=u-s.touchStartTime;if(t.allowClick){const e=i.path||i.composedPath&&i.composedPath();t.updateClickedSlide(e&&e[0]||i.target,e),t.emit("tap click",i),m<300&&u-s.lastClickTime<300&&t.emit("doubleTap doubleClick",i)}if(s.lastClickTime=o(),l((()=>{t.destroyed||(t.allowClick=!0)})),!s.isTouched||!s.isMoved||!t.swipeDirection||0===n.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=r.followFinger?d?t.translate:-t.translate:-s.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const f=h>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<r.slidesPerGroupSkip?1:r.slidesPerGroup){const t=e<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==c[e+t]?(f||h>=c[e]&&h<c[e+t])&&(g=e,v=c[e+t]-c[e]):(f||h>=c[e])&&(g=e,v=c[c.length-1]-c[c.length-2])}let w=null,b=null;r.rewind&&(t.isBeginning?b=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const y=(h-c[g])/v,E=g<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(m>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?w:g+E):t.slideTo(g)),"prev"===t.swipeDirection&&(y>1-r.longSwipesRatio?t.slideTo(g+E):null!==b&&y<0&&Math.abs(y)>r.longSwipesRatio?t.slideTo(b):t.slideTo(g))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(i.target===t.navigation.nextEl||i.target===t.navigation.prevEl)?i.target===t.navigation.nextEl?t.slideTo(g+E):t.slideTo(g):("next"===t.swipeDirection&&t.slideTo(null!==w?w:g+E),"prev"===t.swipeDirection&&t.slideTo(null!==b?b:g))}}function _(){const e=this,{params:t,el:s}=e;if(s&&0===s.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:i,snapGrid:r}=e,n=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=n&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||l?e.params.loop&&!n?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=i,e.allowSlideNext=a,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function W(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function j(){const e=this,{wrapperEl:t,rtlTranslate:s,enabled:a}=e;if(!a)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(s?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function U(e){const t=this;O(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function K(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Z=(e,t)=>{const s=a(),{params:i,el:r,wrapperEl:n,device:l}=e,o=!!i.nested,d="on"===t?"addEventListener":"removeEventListener",c=t;r&&"string"!=typeof r&&(s[d]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),r[d]("touchstart",e.onTouchStart,{passive:!1}),r[d]("pointerdown",e.onTouchStart,{passive:!1}),s[d]("touchmove",e.onTouchMove,{passive:!1,capture:o}),s[d]("pointermove",e.onTouchMove,{passive:!1,capture:o}),s[d]("touchend",e.onTouchEnd,{passive:!0}),s[d]("pointerup",e.onTouchEnd,{passive:!0}),s[d]("pointercancel",e.onTouchEnd,{passive:!0}),s[d]("touchcancel",e.onTouchEnd,{passive:!0}),s[d]("pointerout",e.onTouchEnd,{passive:!0}),s[d]("pointerleave",e.onTouchEnd,{passive:!0}),s[d]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[d]("click",e.onClick,!0),i.cssMode&&n[d]("scroll",e.onScroll),i.updateOnWindowResize?e[c](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",_,!0):e[c]("observerUpdate",_,!0),r[d]("load",e.onLoad,{capture:!0}))};const Q=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var J={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function ee(e,t){return function(s){void 0===s&&(s={});const a=Object.keys(s)[0],i=s[a];"object"==typeof i&&null!==i?(!0===e[a]&&(e[a]={enabled:!0}),"navigation"===a&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),a in e&&"enabled"in i?("object"!=typeof e[a]||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),p(t,s)):p(t,s)):p(t,s)}}const te={eventsEmitter:z,update:H,translate:N,transition:{setTransition:function(e,t){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${e}ms`,s.wrapperEl.style.transitionDelay=0===e?"0ms":""),s.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;a.cssMode||(a.autoHeight&&s.updateAutoHeight(),X({swiper:s,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const s=this,{params:a}=s;s.animating=!1,a.cssMode||(s.setTransition(0),X({swiper:s,runCallbacks:e,direction:t,step:"End"}))}},slide:B,loop:Y,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const s="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=F.bind(e),e.onTouchMove=q.bind(e),e.onTouchEnd=V.bind(e),e.onDocumentTouchStart=K.bind(e),t.cssMode&&(e.onScroll=j.bind(e)),e.onClick=W.bind(e),e.onLoad=U.bind(e),Z(e,"on")},detachEvents:function(){Z(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:s,params:a,el:i}=e,r=a.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const n=e.getBreakpoint(r,e.params.breakpointsBase,e.el);if(!n||e.currentBreakpoint===n)return;const l=(n in r?r[n]:void 0)||e.originalParams,o=Q(e,a),d=Q(e,l),c=e.params.grabCursor,u=l.grabCursor,m=a.enabled;o&&!d?(i.classList.remove(`${a.containerModifierClass}grid`,`${a.containerModifierClass}grid-column`),e.emitContainerClasses()):!o&&d&&(i.classList.add(`${a.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===a.grid.fill)&&i.classList.add(`${a.containerModifierClass}grid-column`),e.emitContainerClasses()),c&&!u?e.unsetGrabCursor():!c&&u&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===l[t])return;const s=a[t]&&a[t].enabled,i=l[t]&&l[t].enabled;s&&!i&&e[t].disable(),!s&&i&&e[t].enable()}));const h=l.direction&&l.direction!==a.direction,f=a.loop&&(l.slidesPerView!==a.slidesPerView||h),g=a.loop;h&&s&&e.changeDirection(),p(e.params,l);const v=e.params.enabled,w=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!v?e.disable():!m&&v&&e.enable(),e.currentBreakpoint=n,e.emit("_beforeBreakpoint",l),s&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&w?(e.loopCreate(t),e.updateSlides()):g&&!w&&e.loopDestroy()),e.emit("breakpoint",l)},getBreakpoint:function(e,t,s){if(void 0===t&&(t="window"),!e||"container"===t&&!s)return;let a=!1;const i=r(),n="window"===t?i.innerHeight:s.clientHeight,l=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));l.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<l.length;e+=1){const{point:r,value:n}=l[e];"window"===t?i.matchMedia(`(min-width: ${n}px)`).matches&&(a=r):n<=s.clientWidth&&(a=r)}return a||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:s}=e,{slidesOffsetBefore:a}=s;if(a){const t=e.slides.length-1,s=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*a;e.isLocked=e.size>s}else e.isLocked=1===e.snapGrid.length;!0===s.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===s.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:s,rtl:a,el:i,device:r}=e,n=function(e,t){const s=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((a=>{e[a]&&s.push(t+a)})):"string"==typeof e&&s.push(t+e)})),s}(["initialized",s.direction,{"free-mode":e.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:a},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);t.push(...n),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},se={};class ae{constructor(){let e,t;for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];1===i.length&&i[0].constructor&&"Object"===Object.prototype.toString.call(i[0]).slice(8,-1)?t=i[0]:[e,t]=i,t||(t={}),t=p({},t),e&&!t.el&&(t.el=e);const n=a();if(t.el&&"string"==typeof t.el&&n.querySelectorAll(t.el).length>1){const e=[];return n.querySelectorAll(t.el).forEach((s=>{const a=p({},t,{el:s});e.push(new ae(a))})),e}const l=this;l.__swiper__=!0,l.support=L(),l.device=I({userAgent:t.userAgent}),l.browser=A(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],t.modules&&Array.isArray(t.modules)&&l.modules.push(...t.modules);const o={};l.modules.forEach((e=>{e({params:t,swiper:l,extendParams:ee(t,o),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));const d=p({},J,o);return l.params=p({},d,se,t),l.originalParams=p({},l.params),l.passedParams=p({},t),l.params&&l.params.on&&Object.keys(l.params.on).forEach((e=>{l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:s}=this,a=y(f(t,`.${s.slideClass}, swiper-slide`)[0]);return y(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=f(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const s=this;e=Math.min(Math.max(e,0),1);const a=s.minTranslate(),i=(s.maxTranslate()-a)*e+a;s.translateTo(i,void 0===t?0:t),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((s=>{const a=e.getSlideClasses(s);t.push({slideEl:s,classNames:a}),e.emit("_slideClass",s,a)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:s,slides:a,slidesGrid:i,slidesSizesGrid:r,size:n,activeIndex:l}=this;let o=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let e,t=a[l]?Math.ceil(a[l].swiperSlideSize):0;for(let s=l+1;s<a.length;s+=1)a[s]&&!e&&(t+=Math.ceil(a[s].swiperSlideSize),o+=1,t>n&&(e=!0));for(let s=l-1;s>=0;s-=1)a[s]&&!e&&(t+=a[s].swiperSlideSize,o+=1,t>n&&(e=!0))}else if("current"===e)for(let e=l+1;e<a.length;e+=1){(t?i[e]+r[e]-i[l]<n:i[e]-i[l]<n)&&(o+=1)}else for(let e=l-1;e>=0;e-=1){i[l]-i[e]<n&&(o+=1)}return o}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:s}=e;function a(){const t=e.rtlTranslate?-1*e.translate:e.translate,s=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&O(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)a(),s.autoHeight&&e.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const t=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||a()}s.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const s=this,a=s.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(s.el.classList.remove(`${s.params.containerModifierClass}${a}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),s.emit("changeDirection"),t&&s.update()),s}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let s=e||t.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=t,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const a=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let i=(()=>{if(s&&s.shadowRoot&&s.shadowRoot.querySelector){return s.shadowRoot.querySelector(a())}return f(s,a())[0]})();return!i&&t.params.createElements&&(i=v("div",t.params.wrapperClass),s.append(i),f(s,`.${t.params.slideClass}`).forEach((e=>{i.append(e)}))),Object.assign(t,{el:s,wrapperEl:i,slidesEl:t.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:i,hostEl:t.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===b(s,"direction")),wrongRTL:"-webkit-box"===b(i,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach((e=>{e.complete?O(t,e):e.addEventListener("load",(e=>{O(t,e.target)}))})),G(t),t.initialized=!0,G(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const s=this,{params:a,el:i,wrapperEl:r,slides:n}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),a.loop&&s.loopDestroy(),t&&(s.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),r&&r.removeAttribute("style"),n&&n.length&&n.forEach((e=>{e.classList.remove(a.slideVisibleClass,a.slideFullyVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),s.emit("destroy"),Object.keys(s.eventsListeners).forEach((e=>{s.off(e)})),!1!==e&&(s.el&&"string"!=typeof s.el&&(s.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(s)),s.destroyed=!0),null}static extendDefaults(e){p(se,e)}static get extendedDefaults(){return se}static get defaults(){return J}static installModule(e){ae.prototype.__modules__||(ae.prototype.__modules__=[]);const t=ae.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>ae.installModule(e))),ae):(ae.installModule(e),ae)}}function ie(e,t,s,a){return e.params.createElements&&Object.keys(a).forEach((i=>{if(!s[i]&&!0===s.auto){let r=f(e.el,`.${a[i]}`)[0];r||(r=v("div",a[i]),r.className=a[i],e.el.append(r)),s[i]=r,t[i]=r}})),s}function re(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ne(e){const t=this,{params:s,slidesEl:a}=t;s.loop&&t.loopDestroy();const i=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,a.append(t.children[0]),t.innerHTML=""}else a.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i(e[t]);else i(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update()}function le(e){const t=this,{params:s,activeIndex:a,slidesEl:i}=t;s.loop&&t.loopDestroy();let r=a+1;const n=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,i.prepend(t.children[0]),t.innerHTML=""}else i.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&n(e[t]);r=a+e.length}else n(e);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(),t.slideTo(r,0,!1)}function oe(e,t){const s=this,{params:a,activeIndex:i,slidesEl:r}=s;let n=i;a.loop&&(n-=s.loopedSlides,s.loopDestroy(),s.recalcSlides());const l=s.slides.length;if(e<=0)return void s.prependSlide(t);if(e>=l)return void s.appendSlide(t);let o=n>e?n+1:n;const d=[];for(let t=l-1;t>=e;t-=1){const e=s.slides[t];e.remove(),d.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&r.append(t[e]);o=n>e?n+t.length:n}else r.append(t);for(let e=0;e<d.length;e+=1)r.append(d[e]);s.recalcSlides(),a.loop&&s.loopCreate(),a.observer&&!s.isElement||s.update(),a.loop?s.slideTo(o+s.loopedSlides,0,!1):s.slideTo(o,0,!1)}function de(e){const t=this,{params:s,activeIndex:a}=t;let i=a;s.loop&&(i-=t.loopedSlides,t.loopDestroy());let r,n=i;if("object"==typeof e&&"length"in e){for(let s=0;s<e.length;s+=1)r=e[s],t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1);n=Math.max(n,0)}else r=e,t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1),n=Math.max(n,0);t.recalcSlides(),s.loop&&t.loopCreate(),s.observer&&!t.isElement||t.update(),s.loop?t.slideTo(n+t.loopedSlides,0,!1):t.slideTo(n,0,!1)}function ce(){const e=this,t=[];for(let s=0;s<e.slides.length;s+=1)t.push(s);e.removeSlide(t)}function pe(e){const{effect:t,swiper:s,on:a,setTranslate:i,setTransition:r,overwriteParams:n,perspective:l,recreateShadows:o,getEffectParams:d}=e;let c;a("beforeInit",(()=>{if(s.params.effect!==t)return;s.classNames.push(`${s.params.containerModifierClass}${t}`),l&&l()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const e=n?n():{};Object.assign(s.params,e),Object.assign(s.originalParams,e)})),a("setTranslate",(()=>{s.params.effect===t&&i()})),a("setTransition",((e,a)=>{s.params.effect===t&&r(a)})),a("transitionEnd",(()=>{if(s.params.effect===t&&o){if(!d||!d().slideShadows)return;s.slides.forEach((e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((e=>e.remove()))})),o()}})),a("virtualUpdate",(()=>{s.params.effect===t&&(s.slides.length||(c=!0),requestAnimationFrame((()=>{c&&s.slides&&s.slides.length&&(i(),c=!1)})))}))}function ue(e,t){const s=h(t);return s!==t&&(s.style.backfaceVisibility="hidden",s.style["-webkit-backface-visibility"]="hidden"),s}function me(e){let{swiper:t,duration:s,transformElements:a,allSlides:i}=e;const{activeIndex:r}=t;if(t.params.virtualTranslate&&0!==s){let e,s=!1;e=i?a:a.filter((e=>{const s=e.classList.contains("swiper-slide-transform")?(e=>{if(!e.parentElement)return t.slides.filter((t=>t.shadowRoot&&t.shadowRoot===e.parentNode))[0];return e.parentElement})(e):e;return t.getSlideIndex(s)===r})),e.forEach((e=>{x(e,(()=>{if(s)return;if(!t||t.destroyed)return;s=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function he(e,t,s){const a=`swiper-slide-shadow${s?`-${s}`:""}${e?` swiper-slide-shadow-${e}`:""}`,i=h(t);let r=i.querySelector(`.${a.split(" ").join(".")}`);return r||(r=v("div",a.split(" ")),i.append(r)),r}Object.keys(te).forEach((e=>{Object.keys(te[e]).forEach((t=>{ae.prototype[t]=te[e][t]}))})),ae.use([function(e){let{swiper:t,on:s,emit:a}=e;const i=r();let n=null,l=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},d=()=>{t&&!t.destroyed&&t.initialized&&a("orientationchange")};s("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{l=i.requestAnimationFrame((()=>{const{width:s,height:a}=t;let i=s,r=a;e.forEach((e=>{let{contentBoxSize:s,contentRect:a,target:n}=e;n&&n!==t.el||(i=a?a.width:(s[0]||s).inlineSize,r=a?a.height:(s[0]||s).blockSize)})),i===s&&r===a||o()}))})),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",d))})),s("destroy",(()=>{l&&i.cancelAnimationFrame(l),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",d)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=[],l=r(),o=function(e,s){void 0===s&&(s={});const a=new(l.MutationObserver||l.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const s=function(){i("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(s):l.setTimeout(s,0)}));a.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:void 0===s.childList||s.childList,characterData:void 0===s.characterData||s.characterData}),n.push(a)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=E(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),a("destroy",(()=>{n.forEach((e=>{e.disconnect()})),n.splice(0,n.length)}))}]);const fe=[function(e){let t,{swiper:s,extendParams:i,on:r,emit:n}=e;i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const l=a();s.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=l.createElement("div");function d(e,t){const a=s.params.virtual;if(a.cache&&s.virtual.cache[t])return s.virtual.cache[t];let i;return a.renderSlide?(i=a.renderSlide.call(s,e,t),"string"==typeof i&&(o.innerHTML=i,i=o.children[0])):i=s.isElement?v("swiper-slide"):v("div",s.params.slideClass),i.setAttribute("data-swiper-slide-index",t),a.renderSlide||(i.innerHTML=e),a.cache&&(s.virtual.cache[t]=i),i}function c(e,t){const{slidesPerView:a,slidesPerGroup:i,centeredSlides:r,loop:l,initialSlide:o}=s.params;if(t&&!l&&o>0)return;const{addSlidesBefore:c,addSlidesAfter:p}=s.params.virtual,{from:u,to:m,slides:h,slidesGrid:g,offset:v}=s.virtual;s.params.cssMode||s.updateActiveIndex();const w=s.activeIndex||0;let b,y,E;b=s.rtlTranslate?"right":s.isHorizontal()?"left":"top",r?(y=Math.floor(a/2)+i+p,E=Math.floor(a/2)+i+c):(y=a+(i-1)+p,E=(l?a:i)+c);let x=w-E,S=w+y;l||(x=Math.max(x,0),S=Math.min(S,h.length-1));let T=(s.slidesGrid[x]||0)-(s.slidesGrid[0]||0);function M(){s.updateSlides(),s.updateProgress(),s.updateSlidesClasses(),n("virtualUpdate")}if(l&&w>=E?(x-=E,r||(T+=s.slidesGrid[0])):l&&w<E&&(x=-E,r&&(T+=s.slidesGrid[0])),Object.assign(s.virtual,{from:x,to:S,offset:T,slidesGrid:s.slidesGrid,slidesBefore:E,slidesAfter:y}),u===x&&m===S&&!e)return s.slidesGrid!==g&&T!==v&&s.slides.forEach((e=>{e.style[b]=T-Math.abs(s.cssOverflowAdjustment())+"px"})),s.updateProgress(),void n("virtualUpdate");if(s.params.virtual.renderExternal)return s.params.virtual.renderExternal.call(s,{offset:T,from:x,to:S,slides:function(){const e=[];for(let t=x;t<=S;t+=1)e.push(h[t]);return e}()}),void(s.params.virtual.renderExternalUpdate?M():n("virtualUpdate"));const C=[],P=[],L=e=>{let t=e;return e<0?t=h.length+e:t>=h.length&&(t-=h.length),t};if(e)s.slides.filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`))).forEach((e=>{e.remove()}));else for(let e=u;e<=m;e+=1)if(e<x||e>S){const t=L(e);s.slides.filter((e=>e.matches(`.${s.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`))).forEach((e=>{e.remove()}))}const I=l?-h.length:0,A=l?2*h.length:h.length;for(let t=I;t<A;t+=1)if(t>=x&&t<=S){const s=L(t);void 0===m||e?P.push(s):(t>m&&P.push(s),t<u&&C.push(s))}if(P.forEach((e=>{s.slidesEl.append(d(h[e],e))})),l)for(let e=C.length-1;e>=0;e-=1){const t=C[e];s.slidesEl.prepend(d(h[t],t))}else C.sort(((e,t)=>t-e)),C.forEach((e=>{s.slidesEl.prepend(d(h[e],e))}));f(s.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[b]=T-Math.abs(s.cssOverflowAdjustment())+"px"})),M()}r("beforeInit",(()=>{if(!s.params.virtual.enabled)return;let e;if(void 0===s.passedParams.virtual.slides){const t=[...s.slidesEl.children].filter((e=>e.matches(`.${s.params.slideClass}, swiper-slide`)));t&&t.length&&(s.virtual.slides=[...t],e=!0,t.forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t),s.virtual.cache[t]=e,e.remove()})))}e||(s.virtual.slides=s.params.virtual.slides),s.classNames.push(`${s.params.containerModifierClass}virtual`),s.params.watchSlidesProgress=!0,s.originalParams.watchSlidesProgress=!0,c(!1,!0)})),r("setTranslate",(()=>{s.params.virtual.enabled&&(s.params.cssMode&&!s._immediateVirtual?(clearTimeout(t),t=setTimeout((()=>{c()}),100)):c())})),r("init update resize",(()=>{s.params.virtual.enabled&&s.params.cssMode&&u(s.wrapperEl,"--swiper-virtual-size",`${s.virtualSize}px`)})),Object.assign(s.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.push(e[t]);else s.virtual.slides.push(e);c(!0)},prependSlide:function(e){const t=s.activeIndex;let a=t+1,i=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&s.virtual.slides.unshift(e[t]);a=t+e.length,i=e.length}else s.virtual.slides.unshift(e);if(s.params.virtual.cache){const e=s.virtual.cache,t={};Object.keys(e).forEach((s=>{const a=e[s],r=a.getAttribute("data-swiper-slide-index");r&&a.setAttribute("data-swiper-slide-index",parseInt(r,10)+i),t[parseInt(s,10)+i]=a})),s.virtual.cache=t}c(!0),s.slideTo(a,0)},removeSlide:function(e){if(null==e)return;let t=s.activeIndex;if(Array.isArray(e))for(let a=e.length-1;a>=0;a-=1)s.params.virtual.cache&&(delete s.virtual.cache[e[a]],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e[a],1),e[a]<t&&(t-=1),t=Math.max(t,0);else s.params.virtual.cache&&(delete s.virtual.cache[e],Object.keys(s.virtual.cache).forEach((t=>{t>e&&(s.virtual.cache[t-1]=s.virtual.cache[t],s.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete s.virtual.cache[t])}))),s.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);c(!0),s.slideTo(t,0)},removeAllSlides:function(){s.virtual.slides=[],s.params.virtual.cache&&(s.virtual.cache={}),c(!0),s.slideTo(0,0)},update:c})},function(e){let{swiper:t,extendParams:s,on:i,emit:n}=e;const l=a(),o=r();function d(e){if(!t.enabled)return;const{rtlTranslate:s}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const i=a.keyCode||a.charCode,r=t.params.keyboard.pageUpDown,d=r&&33===i,c=r&&34===i,p=37===i,u=39===i,m=38===i,h=40===i;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&h||c))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&p||t.isVertical()&&m||d))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||l.activeElement&&l.activeElement.nodeName&&("input"===l.activeElement.nodeName.toLowerCase()||"textarea"===l.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(d||c||p||u||m||h)){let e=!1;if(E(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===E(t.el,`.${t.params.slideActiveClass}`).length)return;const a=t.el,i=a.clientWidth,r=a.clientHeight,n=o.innerWidth,l=o.innerHeight,d=w(a);s&&(d.left-=a.scrollLeft);const c=[[d.left,d.top],[d.left+i,d.top],[d.left,d.top+r],[d.left+i,d.top+r]];for(let t=0;t<c.length;t+=1){const s=c[t];if(s[0]>=0&&s[0]<=n&&s[1]>=0&&s[1]<=l){if(0===s[0]&&0===s[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((d||c||p||u)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||u)&&!s||(d||p)&&s)&&t.slideNext(),((d||p)&&!s||(c||u)&&s)&&t.slidePrev()):((d||c||m||h)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||h)&&t.slideNext(),(d||m)&&t.slidePrev()),n("keyPress",i)}}function c(){t.keyboard.enabled||(l.addEventListener("keydown",d),t.keyboard.enabled=!0)}function p(){t.keyboard.enabled&&(l.removeEventListener("keydown",d),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&c()})),i("destroy",(()=>{t.keyboard.enabled&&p()})),Object.assign(t.keyboard,{enable:c,disable:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();let d;s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let c,p=o();const u=[];function m(){t.enabled&&(t.mouseEntered=!0)}function h(){t.enabled&&(t.mouseEntered=!1)}function f(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta)&&(!(t.params.mousewheel.thresholdTime&&o()-p<t.params.mousewheel.thresholdTime)&&(e.delta>=6&&o()-p<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),p=(new n.Date).getTime(),!1)))}function g(e){let s=e,a=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const r=t.params.mousewheel;t.params.cssMode&&s.preventDefault();let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget));const p=n&&n.contains(s.target);if(!t.mouseEntered&&!p&&!r.releaseOnEdges)return!0;s.originalEvent&&(s=s.originalEvent);let m=0;const h=t.rtlTranslate?-1:1,g=function(e){let t=0,s=0,a=0,i=0;return"detail"in e&&(s=e.detail),"wheelDelta"in e&&(s=-e.wheelDelta/120),"wheelDeltaY"in e&&(s=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=s,s=0),a=10*t,i=10*s,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=i,i=0),(a||i)&&e.deltaMode&&(1===e.deltaMode?(a*=40,i*=40):(a*=800,i*=800)),a&&!t&&(t=a<1?-1:1),i&&!s&&(s=i<1?-1:1),{spinX:t,spinY:s,pixelX:a,pixelY:i}}(s);if(r.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;m=-g.pixelX*h}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;m=-g.pixelY}else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*h:-g.pixelY;if(0===m)return!0;r.invert&&(m=-m);let v=t.getTranslate()+m*r.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),a=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),a&&t.params.nested&&s.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:o(),delta:Math.abs(m),direction:Math.sign(m)},a=c&&e.time<c.time+500&&e.delta<=c.delta&&e.direction===c.direction;if(!a){c=void 0;let n=t.getTranslate()+m*r.sensitivity;const o=t.isBeginning,p=t.isEnd;if(n>=t.minTranslate()&&(n=t.minTranslate()),n<=t.maxTranslate()&&(n=t.maxTranslate()),t.setTransition(0),t.setTranslate(n),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!o&&t.isBeginning||!p&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(d),d=void 0,u.length>=15&&u.shift();const s=u.length?u[u.length-1]:void 0,a=u[0];if(u.push(e),s&&(e.delta>s.delta||e.direction!==s.direction))u.splice(0);else if(u.length>=15&&e.time-a.time<500&&a.delta-e.delta>=1&&e.delta<=6){const s=m>0?.8:.2;c=e,u.splice(0),d=l((()=>{t.slideToClosest(t.params.speed,!0,void 0,s)}),0)}d||(d=l((()=>{c=e,u.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)}),500))}if(a||i("scroll",s),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),r.releaseOnEdges&&(n===t.minTranslate()||n===t.maxTranslate()))return!0}}else{const s={time:o(),delta:Math.abs(m),direction:Math.sign(m),raw:e};u.length>=2&&u.shift();const a=u.length?u[u.length-1]:void 0;if(u.push(s),a?(s.direction!==a.direction||s.delta>a.delta||s.time>a.time+150)&&f(s):f(s),function(e){const s=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&s.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&s.releaseOnEdges)return!0;return!1}(s))return!0}return s.preventDefault?s.preventDefault():s.returnValue=!1,!1}function v(e){let s=t.el;"container"!==t.params.mousewheel.eventsTarget&&(s=document.querySelector(t.params.mousewheel.eventsTarget)),s[e]("mouseenter",m),s[e]("mouseleave",h),s[e]("wheel",g)}function w(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}a("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&b(),t.params.mousewheel.enabled&&w()})),a("destroy",(()=>{t.params.cssMode&&w(),t.mousewheel.enabled&&b()})),Object.assign(t.mousewheel,{enable:w,disable:b})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;function r(e){let s;return e&&"string"==typeof e&&t.isElement&&(s=t.el.querySelector(e),s)?s:(e&&("string"==typeof e&&(s=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&s&&s.length>1&&1===t.el.querySelectorAll(e).length?s=t.el.querySelector(e):s&&1===s.length&&(s=s[0])),e&&!s?e:s)}function n(e,s){const a=t.params.navigation;(e=T(e)).forEach((e=>{e&&(e.classList[s?"add":"remove"](...a.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=s),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](a.lockClass))}))}function l(){const{nextEl:e,prevEl:s}=t.navigation;if(t.params.loop)return n(s,!1),void n(e,!1);n(s,t.isBeginning&&!t.params.rewind),n(e,t.isEnd&&!t.params.rewind)}function o(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=ie(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let s=r(e.nextEl),a=r(e.prevEl);Object.assign(t.navigation,{nextEl:s,prevEl:a}),s=T(s),a=T(a);const i=(s,a)=>{s&&s.addEventListener("click","next"===a?d:o),!t.enabled&&s&&s.classList.add(...e.lockClass.split(" "))};s.forEach((e=>i(e,"next"))),a.forEach((e=>i(e,"prev")))}function p(){let{nextEl:e,prevEl:s}=t.navigation;e=T(e),s=T(s);const a=(e,s)=>{e.removeEventListener("click","next"===s?d:o),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>a(e,"next"))),s.forEach((e=>a(e,"prev")))}s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},a("init",(()=>{!1===t.params.navigation.enabled?u():(c(),l())})),a("toEdge fromEdge lock unlock",(()=>{l()})),a("destroy",(()=>{p()})),a("enable disable",(()=>{let{nextEl:e,prevEl:s}=t.navigation;e=T(e),s=T(s),t.enabled?l():[...e,...s].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),a("click",((e,s)=>{let{nextEl:a,prevEl:r}=t.navigation;a=T(a),r=T(r);const n=s.target;let l=r.includes(n)||a.includes(n);if(t.isElement&&!l){const e=s.path||s.composedPath&&s.composedPath();e&&(l=e.find((e=>a.includes(e)||r.includes(e))))}if(t.params.navigation.hideOnClick&&!l){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===n||t.pagination.el.contains(n)))return;let e;a.length?e=a[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...a,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const u=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),l()},disable:u,update:l,init:c,destroy:p})},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const r="swiper-pagination";let n;s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let l=0;function o(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function d(e,s){const{bulletActiveClass:a}=t.params.pagination;e&&(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${a}-${s}`),(e=e[("prev"===s?"previous":"next")+"ElementSibling"])&&e.classList.add(`${a}-${s}-${s}`))}function c(e){const s=e.target.closest(re(t.params.pagination.bulletClass));if(!s)return;e.preventDefault();const a=y(s)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===a)return;t.slideToLoop(a)}else t.slideTo(a)}function p(){const e=t.rtl,s=t.params.pagination;if(o())return;let a,r,c=t.pagination.el;c=T(c);const p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,u=t.params.loop?Math.ceil(p/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,a=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(a=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,a=t.activeIndex||0),"bullets"===s.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let o,p,u;if(s.dynamicBullets&&(n=S(i[0],t.isHorizontal()?"width":"height",!0),c.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=n*(s.dynamicMainBullets+4)+"px"})),s.dynamicMainBullets>1&&void 0!==r&&(l+=a-(r||0),l>s.dynamicMainBullets-1?l=s.dynamicMainBullets-1:l<0&&(l=0)),o=Math.max(a-l,0),p=o+(Math.min(i.length,s.dynamicMainBullets)-1),u=(p+o)/2),i.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${s.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),c.length>1)i.forEach((e=>{const i=y(e);i===a?e.classList.add(...s.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),s.dynamicBullets&&(i>=o&&i<=p&&e.classList.add(...`${s.bulletActiveClass}-main`.split(" ")),i===o&&d(e,"prev"),i===p&&d(e,"next"))}));else{const e=i[a];if(e&&e.classList.add(...s.bulletActiveClass.split(" ")),t.isElement&&i.forEach(((e,t)=>{e.setAttribute("part",t===a?"bullet-active":"bullet")})),s.dynamicBullets){const e=i[o],t=i[p];for(let e=o;e<=p;e+=1)i[e]&&i[e].classList.add(...`${s.bulletActiveClass}-main`.split(" "));d(e,"prev"),d(t,"next")}}if(s.dynamicBullets){const a=Math.min(i.length,s.dynamicMainBullets+4),r=(n*a-n)/2-u*n,l=e?"right":"left";i.forEach((e=>{e.style[t.isHorizontal()?l:"top"]=`${r}px`}))}}c.forEach(((e,r)=>{if("fraction"===s.type&&(e.querySelectorAll(re(s.currentClass)).forEach((e=>{e.textContent=s.formatFractionCurrent(a+1)})),e.querySelectorAll(re(s.totalClass)).forEach((e=>{e.textContent=s.formatFractionTotal(u)}))),"progressbar"===s.type){let i;i=s.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(a+1)/u;let n=1,l=1;"horizontal"===i?n=r:l=r,e.querySelectorAll(re(s.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${n}) scaleY(${l})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===s.type&&s.renderCustom?(e.innerHTML=s.renderCustom(t,a+1,u),0===r&&i("paginationRender",e)):(0===r&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass)}))}function u(){const e=t.params.pagination;if(o())return;const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let a=t.pagination.el;a=T(a);let r="";if("bullets"===e.type){let a=t.params.loop?Math.ceil(s/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&a>s&&(a=s);for(let s=0;s<a;s+=1)e.renderBullet?r+=e.renderBullet.call(t,s,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],a.forEach((s=>{"custom"!==e.type&&(s.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...s.querySelectorAll(re(e.bulletClass)))})),"custom"!==e.type&&i("paginationRender",a[0])}function m(){t.params.pagination=ie(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let s;"string"==typeof e.el&&t.isElement&&(s=t.el.querySelector(e.el)),s||"string"!=typeof e.el||(s=[...document.querySelectorAll(e.el)]),s||(s=e.el),s&&0!==s.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(s)&&s.length>1&&(s=[...t.el.querySelectorAll(e.el)],s.length>1&&(s=s.filter((e=>E(e,".swiper")[0]===t.el))[0])),Array.isArray(s)&&1===s.length&&(s=s[0]),Object.assign(t.pagination,{el:s}),s=T(s),s.forEach((s=>{"bullets"===e.type&&e.clickable&&s.classList.add(...(e.clickableClass||"").split(" ")),s.classList.add(e.modifierClass+e.type),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(s.classList.add(`${e.modifierClass}${e.type}-dynamic`),l=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&s.classList.add(e.progressbarOppositeClass),e.clickable&&s.addEventListener("click",c),t.enabled||s.classList.add(e.lockClass)})))}function h(){const e=t.params.pagination;if(o())return;let s=t.pagination.el;s&&(s=T(s),s.forEach((s=>{s.classList.remove(e.hiddenClass),s.classList.remove(e.modifierClass+e.type),s.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(s.classList.remove(...(e.clickableClass||"").split(" ")),s.removeEventListener("click",c))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}a("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:s}=t.pagination;s=T(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),a("init",(()=>{!1===t.params.pagination.enabled?f():(m(),u(),p())})),a("activeIndexChange",(()=>{void 0===t.snapIndex&&p()})),a("snapIndexChange",(()=>{p()})),a("snapGridLengthChange",(()=>{u(),p()})),a("destroy",(()=>{h()})),a("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),a("lock unlock",(()=>{p()})),a("click",((e,s)=>{const a=s.target,r=T(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!a.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&a===t.navigation.nextEl||t.navigation.prevEl&&a===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const f=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),h()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=T(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),m(),u(),p()},disable:f,render:u,update:p,init:m,destroy:h})},function(e){let{swiper:t,extendParams:s,on:i,emit:r}=e;const o=a();let d,c,p,u,m=!1,h=null,f=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:s}=t,{dragEl:a,el:i}=e,r=t.params.scrollbar,n=t.params.loop?t.progressLoop:t.progress;let l=c,o=(p-c)*n;s?(o=-o,o>0?(l=c-o,o=0):-o+c>p&&(l=p+o)):o<0?(l=c+o,o=0):o+c>p&&(l=p-o),t.isHorizontal()?(a.style.transform=`translate3d(${o}px, 0, 0)`,a.style.width=`${l}px`):(a.style.transform=`translate3d(0px, ${o}px, 0)`,a.style.height=`${l}px`),r.hide&&(clearTimeout(h),i.style.opacity=1,h=setTimeout((()=>{i.style.opacity=0,i.style.transitionDuration="400ms"}),1e3))}function b(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:s,el:a}=e;s.style.width="",s.style.height="",p=t.isHorizontal()?a.offsetWidth:a.offsetHeight,u=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),c="auto"===t.params.scrollbar.dragSize?p*u:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?s.style.width=`${c}px`:s.style.height=`${c}px`,a.style.display=u>=1?"none":"",t.params.scrollbar.hide&&(a.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?e.clientX:e.clientY}function E(e){const{scrollbar:s,rtlTranslate:a}=t,{el:i}=s;let r;r=(y(e)-w(i)[t.isHorizontal()?"left":"top"]-(null!==d?d:c/2))/(p-c),r=Math.max(Math.min(r,1),0),a&&(r=1-r);const n=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*r;t.updateProgress(n),t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n,dragEl:l}=a;m=!0,d=e.target===l?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),i.style.transitionDuration="100ms",l.style.transitionDuration="100ms",E(e),clearTimeout(f),n.style.transitionDuration="0ms",s.hide&&(n.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",e)}function S(e){const{scrollbar:s,wrapperEl:a}=t,{el:i,dragEl:n}=s;m&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,E(e),a.style.transitionDuration="0ms",i.style.transitionDuration="0ms",n.style.transitionDuration="0ms",r("scrollbarDragMove",e))}function M(e){const s=t.params.scrollbar,{scrollbar:a,wrapperEl:i}=t,{el:n}=a;m&&(m=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",i.style.transitionDuration=""),s.hide&&(clearTimeout(f),f=l((()=>{n.style.opacity=0,n.style.transitionDuration="400ms"}),1e3)),r("scrollbarDragEnd",e),s.snapOnRelease&&t.slideToClosest())}function C(e){const{scrollbar:s,params:a}=t,i=s.el;if(!i)return;const r=i,n=!!a.passiveListeners&&{passive:!1,capture:!1},l=!!a.passiveListeners&&{passive:!0,capture:!1};if(!r)return;const d="on"===e?"addEventListener":"removeEventListener";r[d]("pointerdown",x,n),o[d]("pointermove",S,n),o[d]("pointerup",M,l)}function P(){const{scrollbar:e,el:s}=t;t.params.scrollbar=ie(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const a=t.params.scrollbar;if(!a.el)return;let i,r;if("string"==typeof a.el&&t.isElement&&(i=t.el.querySelector(a.el)),i||"string"!=typeof a.el)i||(i=a.el);else if(i=o.querySelectorAll(a.el),!i.length)return;t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===s.querySelectorAll(a.el).length&&(i=s.querySelector(a.el)),i.length>0&&(i=i[0]),i.classList.add(t.isHorizontal()?a.horizontalClass:a.verticalClass),i&&(r=i.querySelector(r
vendor: 3,921 bytes, line 2640
2640e(t.params.scrollbar.dragClass)),r||(r=v("div",t.params.scrollbar.dragClass),i.append(r))),Object.assign(e,{el:i,dragEl:r}),a.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&C("on"),i&&i.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))}function L(){const e=t.params.scrollbar,s=t.scrollbar.el;s&&s.classList.remove(...n(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&C("off")}s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},i("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:s}=t.scrollbar;s=T(s),s.forEach((s=>{s.classList.remove(e.horizontalClass,e.verticalClass),s.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.scrollbar.enabled?I():(P(),b(),g())})),i("update resize observerUpdate lock unlock changeDirection",(()=>{b()})),i("setTranslate",(()=>{g()})),i("setTransition",((e,s)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(s)})),i("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...n(t.params.scrollbar.lockClass))})),i("destroy",(()=>{L()}));const I=()=>{t.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...n(t.params.scrollbar.scrollbarDisabledClass)),L()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...n(t.params.scrollbar.scrollbarDisabledClass)),P(),b(),g()},disable:I,updateSize:b,setTranslate:g,init:P,destroy:L})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,s)=>{const{rtl:a}=t,i=a?-1:1,r=e.getAttribute("data-swiper-parallax")||"0";let n=e.getAttribute("data-swiper-parallax-x"),l=e.getAttribute("data-swiper-parallax-y");const o=e.getAttribute("data-swiper-parallax-scale"),d=e.getAttribute("data-swiper-parallax-opacity"),c=e.getAttribute("data-swiper-parallax-rotate");if(n||l?(n=n||"0",l=l||"0"):t.isHorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexOf("%")>=0?parseInt(n,10)*s*i+"%":n*s*i+"px",l=l.indexOf("%")>=0?parseInt(l,10)*s+"%":l*s+"px",null!=d){const t=d-(d-1)*(1-Math.abs(s));e.style.opacity=t}let p=`translate3d(${n}, ${l}, 0px)`;if(null!=o){p+=` scale(${o-(o-1)*(1-Math.abs(s))})`}if(c&&null!=c){p+=` rotate(${c*s*-1}deg)`}e.style.transform=p},n=()=>{const{el:e,slides:s,progress:a,snapGrid:n,isElement:l}=t,o=f(e,i);t.isElement&&o.push(...f(t.hostEl,i)),o.forEach((e=>{r(e,a)})),s.forEach(((e,s)=>{let l=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(l+=Math.ceil(s/2)-a*(n.length-1)),l=Math.min(Math.max(l,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((e=>{r(e,l)}))}))};a("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),a("init",(()=>{t.params.parallax.enabled&&n()})),a("setTranslate",(()=>{t.params.parallax.enabled&&n()})),a("setTransition",((e,s)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:s,hostEl:a}=t,r=[...s.querySelectorAll(i)];t.isElement&&r.push(...a.querySelectorAll(i)),r.forEach((t=>{let s=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.style.transitionDuration=`${s}ms`}))}(s)}))},function(e){let{swiper:t,extendParams:s,on:a,emit:i}=e;const n=r();s({zoom:{enabled:!1,
vendor: 5,821 bytes, line 2640
2640limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let l,o,c=1,p=!1;const u=[],m={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},h={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,b=1;function y(){if(u.length<2)return 1;const e=u[0].pageX,t=u[0].pageY,s=u[1].pageX,a=u[1].pageY;return Math.sqrt((s-e)**2+(a-t)**2)}function x(){const e=t.params.zoom,s=m.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&m.imageEl&&m.imageEl.naturalWidth){const e=m.imageEl.naturalWidth/m.imageEl.offsetWidth;return Math.min(e,s)}return s}function S(e){const s=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(s)||t.slides.filter((t=>t.contains(e.target))).length>0}function T(e){if("mouse"===e.pointerType&&u.splice(0,u.length),!S(e))return;const s=t.params.zoom;if(l=!1,o=!1,u.push(e),!(u.length<2)){if(l=!0,m.scaleStart=y(),!m.slideEl){m.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),m.slideEl||(m.slideEl=t.slides[t.activeIndex]);let a=m.slideEl.querySelector(`.${s.containerClass}`);if(a&&(a=a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=a,m.imageWrapEl=a?E(m.imageEl,`.${s.containerClass}`)[0]:void 0,!m.imageWrapEl)return void(m.imageEl=void 0);m.maxRatio=x()}if(m.imageEl){const[e,t]=function(){if(u.length<2)return{x:null,y:null};const e=m.imageEl.getBoundingClientRect();return[(u[0].pageX+(u[1].pageX-u[0].pageX)/2-e.x-n.scrollX)/c,(u[0].pageY+(u[1].pageY-u[0].pageY)/2-e.y-n.scrollY)/c]}();m.originX=e,m.originY=t,m.imageEl.style.transitionDuration="0ms"}p=!0}}function M(e){if(!S(e))return;const s=t.params.zoom,a=t.zoom,i=u.findIndex((t=>t.pointerId===e.pointerId));i>=0&&(u[i]=e),u.length<2||(o=!0,m.scaleMove=y(),m.imageEl&&(a.scale=m.scaleMove/m.scaleStart*c,a.scale>m.maxRatio&&(a.scale=m.maxRatio-1+(a.scale-m.maxRatio+1)**.5),a.scale<s.minRatio&&(a.scale=s.minRatio+1-(s.minRatio-a.scale+1)**.5),m.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`))}function C(e){if(!S(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const s=t.params.zoom,a=t.zoom,i=u.findIndex((t=>t.pointerId===e.pointerId));i>=0&&u.splice(i,1),l&&o&&(l=!1,o=!1,m.imageEl&&(a.scale=Math.max(Math.min(a.scale,m.maxRatio),s.minRatio),m.imageEl.style.transitionDuration=`${t.params.speed}ms`,m.imageEl.style.transform=`translate3d(0,0,0) scale(${a.scale})`,c=a.scale,p=!1,a.scale>1&&m.slideEl?m.slideEl.classList.add(`${s.zoomedSlideClass}`):a.scale<=1&&m.slideEl&&m.slideEl.classList.remove(`${s.zoomedSlideClass}`),1===a.scale&&(m.originX=0,m.originY=0,m.slideEl=void 0)))}function P(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function L(e){if(!S(e)||!function(e){const s=`.${t.params.zoom.containerClass}`;return!!e.target.matches(s)||[...t.hostEl.querySelectorAll(s)].filter((t=>t.contains(e.target))).length>0}(e))return;const s=t.zoom;if(!m.imageEl)return;if(!h.isTouched||!m.slideEl)return;h.isMoved||(h.width=m.imageEl.offsetWidth||m.imageEl.clientWidth,h.height=m.imageEl.offsetHeight||m.imageEl.clientHeight,h.startX=d(m.imageWrapEl,"x")||0,h.startY=d(m.imageWrapEl,"y")||0,m.slideWidth=m.slideEl.offsetWidth,m.slideHeight=m.slideEl.offsetHeight,m.imageWrapEl.style.transitionDuration="0ms");const a=h.width*s.scale,i=h.height*s.scale;h.minX=Math.min(m.slideWidth/2-a/2,0),h.maxX=-h.minX,h.minY=Math.min(m.slideHeight/2-i/2,0),h.maxY=-h.minY,h.touchesCurrent.x=u.length>0?u[0].pageX:e.pageX,h.touchesCurrent.y=u.length>0?u[0].pageY:e.pageY;if(Math.max(Math.abs(h.touchesCurrent.x-h.touchesStart.x),Math.abs(h.touchesCurrent.y-h.touchesStart.y))>5&&(t.allowClick=!1),!h.isMoved&&!p){if(t.isHorizontal()&&(Math.floor(h.minX)===Math.floor(h.startX)&&h.touchesCurrent.x<h.touchesStart.x||Math.floor(h.maxX)===Math.floor(h.startX)&&h.touchesCurrent.x>h.touchesStart.x))return h.isTouched=!1,void P();if(!t.isHorizontal()&&(Math.floor(h.minY)===Math.floor(h.startY)&&h.touchesCurrent.y<h.touchesStart.y||Math.floor(h.maxY)===Math.floor(h.startY)&&h.touchesCurrent.y>h.touchesStart.y))return h.isTouched=!1,void P()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(v),t.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout((()=>{P()})),h.isMoved=!0;const r=(s.scale-c)/(m.maxRatio-t.params.zoom.minRatio),{originX:n,originY:l}=m;h.currentX=h.touchesCurrent.x-h.touchesStart.x+h.startX+r*(h.width-2*n),h.currentY=h.touchesCurrent.y-h.touchesStart.y+h.startY+r*(h.height-2*l),h.currentX<h.minX&&(h.currentX=h.minX+1-(h.minX-h.currentX+1)**.8),h.currentX>h.maxX&&(h.currentX=h.maxX-1+(h.currentX-h.maxX+1)**.8),h.currentY<h.minY&&(h.currentY=h.minY+1-(h.minY-h.currentY+1)**.8),h.currentY>h.maxY&&(h.currentY=h.maxY-1+(h.currentY-h.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=h.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=h.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(h.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(h.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(h.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(h.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=h.touchesCurrent.x,g.prevPositionY=h.touchesCurrent.y,g.prevTime=Date.now(),m.imageWrapEl.style.transform=`translate3d(${h.currentX}px, ${h.currentY}px,0)`}function I(){const e=t.zoom;m.slideEl&&t.activeIndex!==t.slides.indexOf(m.slideEl)&&(m.imageEl&&(m.imageEl.style.transform="translate3d(0,
26400,0) scale(1)"),m.imageWrapEl&&(m.imageWrapEl.style.transform="translate3d(0,0,0)"),m.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,c=1,m.slideEl=void 0,m.imageEl=void 0,m.imageWrapEl=void 0,m.originX=0,m.originY=0)}function A(e){const s=t.zoom,a=t.params.zoom;if(!m.slideEl){e&&e.target&&(m.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),m.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:m.slideEl=t.slides[t.activeIndex]);let s=m.slideEl.querySelector(`.${a.containerClass}`);s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=s,m.imageWrapEl=s?E(m.imageEl,`.${a.containerClass}`)[0]:void 0}if(!m.imageEl||!m.imageWrapEl)return;let i,r,l,o,d,p,u,g,v,b,y,S,T,M,C,P,L,I;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),m.slideEl.classList.add(`${a.zoomedSlideClass}`),void 0===h.touchesStart.x&&e?(i=e.pageX,r=e.pageY):(i=h.touchesStart.x,r=h.touchesStart.y);const A="number"==typeof e?e:null;1===c&&A&&(i=void 0,r=void 0);const z=x();s.scale=A||z,c=A||z,!e||1===c&&A?(u=0,g=0):(L=m.slideEl.offsetWidth,I=m.slideEl.offsetHeight,l=w(m.slideEl).left+n.scrollX,o=w(m.slideEl).top+n.scrollY,d=l+L/2-i,p=o+I/2-r,v=m.imageEl.offsetWidth||m.imageEl.clientWidth,b=m.imageEl.offsetHeight||m.imageEl.clientHeight,y=v*s.scale,S=b*s.scale,T=Math.min(L/2-y/2,0),M=Math.min(I/2-S/2,0),C=-T,P=-M,u=d*s.scale,g=p*s.scale,u<T&&(u=T),u>C&&(u=C),g<M&&(g=M),g>P&&(g=P)),A&&1===s.scale&&(m.originX=0,m.originY=0),m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform=`translate3d(${u}px, ${g}px,0)`,m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`}function z(){const e=t.zoom,s=t.params.zoom;if(!m.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?m.slideEl=f(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:m.slideEl=t.slides[t.activeIndex];let e=m.slideEl.querySelector(`.${s.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),m.imageEl=e,m.imageWrapEl=e?E(m.imageEl,`.${s.containerClass}`)[0]:void 0}m.imageEl&&m.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,c=1,m.imageWrapEl.style.transitionDuration="300ms",m.imageWrapEl.style.transform="translate3d(0,0,0)",m.imageEl.style.transitionDuration="300ms",m.imageEl.style.transform="translate3d(0,0,0) scale(1)",m.slideEl.classList.remove(`${s.zoomedSlideClass}`),m.slideEl=void 0,m.originX=0,m.originY=0)}function $(e){const s=t.zoom;s.scale&&1!==s.scale?z():A(e)}function k(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function O(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:s,activeListenerWithCapture:a}=k();t.wrapperEl.addEventListener("pointerdown",T,s),t.wrapperEl.addEventListener("pointermove",M,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,C,s)})),t.wrapperEl.addEventListener("pointermove",L,a)}function D(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:s,activeListenerWithCapture:a}=k();t.wrapperEl.removeEventListener("pointerdown",T,s),t.wrapperEl.removeEventListener("pointermove",M,a),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,C,s)})),t.wrapperEl.removeEventListener("pointermove",L,a)}Object.defineProperty(t.zoom,"scale",{get:()=>b,set(e){if(b!==e){const t=m.imageEl,s=m.slideEl;i("zoomChange",e,t,s)}b=e}}),a("init",(()=>{t.params.zoom.enabled&&O()})),a("destroy",(()=>{D()})),a("touchStart",((e,s)=>{t.zoom.enabled&&function(e){const s=t.device;if(!m.imageEl)return;if(h.isTouched)return;s.android&&e.cancelable&&e.preventDefault(),h.isTouched=!0;const a=u.length>0?u[0]:e;h.touchesStart.x=a.pageX,h.touchesStart.y=a.pageY}(s)})),a("touchEnd",((e,s)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!m.imageEl)return;if(!h.isTouched||!h.isMoved)return h.isTouched=!1,void(h.isMoved=!1);h.isTouched=!1,h.isMoved=!1;let s=300,a=300;const i=g.x*s,r=h.currentX+i,n=g.y*a,l=h.currentY+n;0!==g.x&&(s=Math.abs((r-h.currentX)/g.x)),0!==g.y&&(a=Math.abs((l-h.currentY)/g.y
vendor: 4,123 bytes, line 2640
2640));const o=Math.max(s,a);h.currentX=r,h.currentY=l;const d=h.width*e.scale,c=h.height*e.scale;h.minX=Math.min(m.slideWidth/2-d/2,0),h.maxX=-h.minX,h.minY=Math.min(m.slideHeight/2-c/2,0),h.maxY=-h.minY,h.currentX=Math.max(Math.min(h.currentX,h.maxX),h.minX),h.currentY=Math.max(Math.min(h.currentY,h.maxY),h.minY),m.imageWrapEl.style.transitionDuration=`${o}ms`,m.imageWrapEl.style.transform=`translate3d(${h.currentX}px, ${h.currentY}px,0)`}()})),a("doubleTap",((e,s)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&$(s)})),a("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&I()})),a("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&I()})),Object.assign(t.zoom,{enable:O,disable:D,in:A,out:z,toggle:$})},function(e){let{swiper:t,extendParams:s,on:a}=e;function i(e,t){const s=function(){let e,t,s;return(a,i)=>{for(t=-1,e=a.length;e-t>1;)s=e+t>>1,a[s]<=i?t=s:e=s;return e}}();let a,i;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(i=s(this.x,e),a=i-1,(e-this.x[a])*(this.y[i]-this.y[a])/(this.x[i]-this.x[a])+this.y[a]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}s({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},a("beforeInit",(()=>{if("undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)){const e=document.querySelector(t.params.controller.control);if(e&&e.swiper)t.controller.control=e.swiper;else if(e){const s=a=>{t.controller.control=a.detail[0],t.update(),e.removeEventListener("init",s)};e.addEventListener("init",s)}}else t.controller.control=t.params.controller.control})),a("update",(()=>{r()})),a("resize",(()=>{r()})),a("observerUpdate",(()=>{r()})),a("setTranslate",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(s,a)})),a("setTransition",((e,s,a)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(s,a)})),Object.assign(t.controller,{setTranslate:function(e,s){const a=t.controller.control;let r,n;const l=t.constructor;function o(e){if(e.destroyed)return;const s=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(!function(e){t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid)}(e),n=-t.controller.spline.interpolate(-s)),n&&"container"!==t.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(r)&&Number.isFinite(r)||(r=1),n=(s-t.minTranslate())*r+e.minTranslate()),t.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(let e=0;e<a.length;e+=1)a[e]!==s&&a[e]instanceof l&&o(a[e]);else a instanceof l&&s!==a&&o(a)},setTransition:function(e,s){const a=t.constructor,i=t.controller.control;let r;function n(s){s.destroyed||(s.setTransition(e,t),0!==e&&(s.transitionStart(),s.params.autoHeight&&l((()=>{s.updateAutoHeight()})),x(s.wrapperEl,(()=>{i&&s.transitionEnd()}))))}if(Array.isArray(i))for(r=0;r<i.length;r+=1)i[r]!==s&&i[r]instanceof a&&n(i[r]);else i instanceof a&&s!==i&&n(i)}})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let r,n,l=null,o=(new Date).getTime();function d(e){const t=l;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=T(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function p(e){(e=T(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function u(e,t){(e=T(e)).forEach((e=>{e.setAttribute("role",t)}))}
2640function m(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function h(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function f(e){(e=T(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function g(e){(e=T(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function w(e){if(13!==e.keyCode&&32!==e.keyCode)return;const s=t.params.a11y,a=e.target;if(!t.pagination||!t.pagination.el||a!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(re(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=T(t.navigation.prevEl);T(t.navigation.nextEl).includes(a)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?d(s.lastSlideMessage):d(s.nextSlideMessage)),e.includes(a)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?d(s.firstSlideMessage):d(s.prevSlideMessage))}t.pagination&&a.matches(re(t.params.pagination.bulletClass))&&a.click()}}function b(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function E(){return b()&&t.params.pagination.clickable}const x=(e,t,s)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",w)),h(e,s),function(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},S=e=>{n&&n!==e.target&&!n.contains(e.target)&&(r=!0),t.a11y.clicked=!0},M=()=>{r=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},C=e=>{o=(new Date).getTime()},P=e=>{if(t.a11y.clicked)return;if((new Date).getTime()-o<100)return;const s=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!s||!t.slides.includes(s))return;n=s;const a=t.slides.indexOf(s)===t.activeIndex,i=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(s);a||i||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{r||(t.params.loop?t.slideToLoop(parseInt(s.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(s),0),r=!1)})))},L=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&m(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const s=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((a,i)=>{const r=t.params.loop?parseInt(a.getAttribute("data-swiper-slide-index"),10):i;h(a,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,s))}))},I=()=>{const e=t.params.a11y;t.el.append(l);const s=t.el;e.containerRoleDescriptionMessage&&m(s,e.containerRoleDescriptionMessage),e.containerMessage&&h(s,e.containerMessage);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`;var n;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var d;d=r,T(i).forEach((e=>{e.setAttribute("id",d)})),function(e,t){(e=T(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(i,o),L();let{nextEl:c,prevEl:p}=t.navigation?t.navigation:{};if(c=T(c),p=T(p),c&&c.forEach((t=>x(t,r,e.nextSlideMessage))),p&&p.forEach((t=>x(t,r,e.prevSlideMessage))),E()){T(t.pagination.el).forEach((e=>{e.addEventListener("keydown",w)}
vendor: 8,740 bytes, line 2640
2640))}a().addEventListener("visibilitychange",C),t.el.addEventListener("focus",P,!0),t.el.addEventListener("focus",P,!0),t.el.addEventListener("pointerdown",S,!0),t.el.addEventListener("pointerup",M,!0)};i("beforeInit",(()=>{l=v("span",t.params.a11y.notificationClass),l.setAttribute("aria-live","assertive"),l.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{t.params.a11y.enabled&&I()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&L()})),i("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:s}=t.navigation;s&&(t.isBeginning?(f(s),p(s)):(g(s),c(s))),e&&(t.isEnd?(f(e),p(e)):(g(e),c(e)))}()})),i("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;b()&&t.pagination.bullets.forEach((s=>{t.params.pagination.clickable&&(c(s),t.params.pagination.renderBullet||(u(s,"button"),h(s,e.paginationBulletMessage.replace(/\{\{index\}\}/,y(s)+1)))),s.matches(re(t.params.pagination.bulletActiveClass))?s.setAttribute("aria-current","true"):s.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{t.params.a11y.enabled&&function(){l&&l.remove();let{nextEl:e,prevEl:s}=t.navigation?t.navigation:{};e=T(e),s=T(s),e&&e.forEach((e=>e.removeEventListener("keydown",w))),s&&s.forEach((e=>e.removeEventListener("keydown",w))),E()&&T(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",w)}));a().removeEventListener("visibilitychange",C),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",P,!0),t.el.removeEventListener("pointerdown",S,!0),t.el.removeEventListener("pointerup",M,!0))}()}))},function(e){let{swiper:t,extendParams:s,on:a}=e;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,n={};const l=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=e=>{const t=r();let s;s=e?new URL(e):t.location;const a=s.pathname.slice(1).split("/").filter((e=>""!==e)),i=a.length;return{key:a[i-2],value:a[i-1]}},d=(e,s)=>{const a=r();if(!i||!t.params.history.enabled)return;let n;n=t.params.url?new URL(t.params.url):a.location;const o=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${s}"]`):t.slides[s];let d=l(o.getAttribute("data-history"));if(t.params.history.root.length>0){let s=t.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),d=`${s}/${e?`${e}/`:""}${d}`}else n.pathname.includes(e)||(d=`${e?`${e}/`:""}${d}`);t.params.history.keepQuery&&(d+=n.search);const c=a.history.state;c&&c.value===d||(t.params.history.replaceState?a.history.replaceState({value:d},null,d):a.history.pushState({value:d},null,d))},c=(e,s,a)=>{if(s)for(let i=0,r=t.slides.length;i<r;i+=1){const r=t.slides[i];if(l(r.getAttribute("data-history"))===s){const s=t.getSlideIndex(r);t.slideTo(s,e,a)}}else t.slideTo(0,e,a)},p=()=>{n=o(t.params.url),c(t.params.speed,n.value,!1)};a("init",(()=>{t.params.history.enabled&&(()=>{const e=r();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,n=o(t.params.url),n.key||n.value?(c(0,n.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",p)):t.params.history.replaceState||e.addEventListener("popstate",p)}})()})),a("destroy",(()=>{t.params.history.enabled&&(()=>{const e=r();t.params.history.replaceState||e.removeEventListener("popstate",p)})()})),a("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&d(t.params.history.key,t.activeIndex)})),a("slideChange",(()=>{i&&t.params.cssMode&&d(t.params.history.key,t.activeIndex)}))},function(e){let{swiper:t,extendParams:s,emit:i,on:n}=e,l=!1;const o=a(),d=r();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,s){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.filter((e=>e.getAttribute("data-hash")===s))[0];if(!e)return 0;return parseInt(e.getAttribute("data-swiper-slide-index"),10)}return t.getSlideIndex(f(t.slidesEl,`.${t.params.slideClass}[data-hash="${s}"], swiper-slide[data-hash="${s}"]`)[0])}}});const c=()=>{i("hashChange");const e=o.location.hash.replace("#",""),s=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(s?s.getAttribute("data-hash"):"")){const s=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===s||Number.isNaN(s))return;t.slideTo(s)}},p=()=>{if(!l||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],s=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&d.history&&d.history.replaceState?(d.history.replaceState(null,null,`#${s}`||""),i("hashSet")):(o.location.hash=s||"",i("hashSet"))};n("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;l=!0;const e=o.location.hash.replace("#","");if(e){const s=0,a=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(a||0,s,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&d.addEventListener("hashchange",c)})()})),n("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&d.removeEventListener("hashchange",c)})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{l&&p()})),n("slideChange",(()=>{l&&t.params.cssMode&&p()}))},function(e){let t,s,{swiper:i,extendParams:r,on:n,emit:l,params:o}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let d,c,p,u,m,h,f,g,v=o&&o.autoplay?o.autoplay.delay:3e3,w=o&&o.autoplay?o.autoplay.delay:3e3,b=(new Date).getTime();function y(e){i&&!i.destroyed&&i.wrapperEl&&e.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",y),g||e.detail&&e.detail.bySwiperTouchMove||C())}const E=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?c=!0:c&&(w=d,c=!1);const e=i.autoplay.paused?d:b+w-(new Date).getTime();i.autoplay.timeLeft=e,l("autoplayTimeLeft",e,e/v),s=requestAnimationFrame((()=>{E()}))},x=e=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(s),E();let a=void 0===e?i.params.autoplay.delay:e;v=i.params.autoplay.delay,w=i.params.autoplay.delay;const r=(()=>{let e;if(e=i.virtual&&i.params.virtual.enabled?i.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]:i.slides[i.activeIndex],!e)return;return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(a=r,v=r,w=r),d=a;const n=i.params.speed,o=()=>{i&&!i.destroyed&&(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,n,!0,!0),l("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(n,!0,!0),l("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,n,!0,!0),l("autoplay")),i.params.cssMode&&(b=(new Date).getTime(),requestAnimationFrame((()=>{x()}))))};return a>0?(clearTimeout(t),t=setTimeout((()=>{o()}),a)):requestAnimationFrame((()=>{o()})),a},S=()=>{b=(new Date).getTime(),i.autoplay.running=!0,x(),l("autoplayStart")},T=()=>{i.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(s),l("autoplayStop")},M=(e,s)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(t),e||(f=!0);const a=()=>{l("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",y):C()};if(i.autoplay.paused=!0,s)return h&&(d=i.params.autoplay.delay),h=!1,void a();const r=d||i.params.autoplay.delay;d=r-((new Date).getTime()-b),i.isEnd&&d<0&&!i.params.loop||(d<0&&(d=0),a())},C=()=>{i.isEnd&&d<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=(new Date).getTime(),f?(f=!1,x(d)):x(),i.autoplay.paused=!1,l("autoplayResume"))},P=()=>{if(i.destroyed||!i.autoplay.running)return;const e=a();"hidden"===e.visibilityState&&(f=!0,M(!0)),"visible"===e.visibilityState&&C()},L=e=>{"mouse"===e.pointerType&&(f=!0,g=!0,i.animating||i.autoplay.paused||M(!0))},I=e=>{"mouse"===e.pointerType&&(g=!1,i.autoplay.paused&&C())};n("init",(()=>{i.params.autoplay.enabled&&(i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",L),i.el.addEventListener("pointerleave",I)),a().addEventListener("visibilitychange",P),S())})),n("destroy",(()=>{i.el&&"string"!=typeof i.el&&(i.el.removeEventListener("pointerenter",L),i.el.removeEventListener("pointerleave",I)
vendor: 9,531 bytes, line 2640
2640),a().removeEventListener("visibilitychange",P),i.autoplay.running&&T()})),n("_freeModeStaticRelease",(()=>{(u||f)&&C()})),n("_freeModeNoMomentumRelease",(()=>{i.params.autoplay.disableOnInteraction?T():M(!0,!0)})),n("beforeTransitionStart",((e,t,s)=>{!i.destroyed&&i.autoplay.running&&(s||!i.params.autoplay.disableOnInteraction?M(!0,!0):T())})),n("sliderFirstMove",(()=>{!i.destroyed&&i.autoplay.running&&(i.params.autoplay.disableOnInteraction?T():(p=!0,u=!1,f=!1,m=setTimeout((()=>{f=!0,u=!0,M(!0)}),200)))})),n("touchEnd",(()=>{if(!i.destroyed&&i.autoplay.running&&p){if(clearTimeout(m),clearTimeout(t),i.params.autoplay.disableOnInteraction)return u=!1,void(p=!1);u&&i.params.cssMode&&C(),u=!1,p=!1}})),n("slideChange",(()=>{!i.destroyed&&i.autoplay.running&&(h=!0)})),Object.assign(i.autoplay,{start:S,stop:T,pause:M,resume:C})},function(e){let{swiper:t,extendParams:s,on:i}=e;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,n=!1;function l(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const s=e.clickedIndex,a=e.clickedSlide;if(a&&a.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==s)return;let i;i=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):s,t.params.loop?t.slideToLoop(i):t.slideTo(i)}function o(){const{thumbs:e}=t.params;if(r)return!1;r=!0;const s=t.constructor;if(e.swiper instanceof s)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(c(e.swiper)){const a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new s(a),n=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",l),!0}function d(e){const s=t.thumbs.swiper;if(!s||s.destroyed)return;const a="auto"===s.params.slidesPerView?s.slidesPerViewDynamic():s.params.slidesPerView;let i=1;const r=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(i=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),s.slides.forEach((e=>e.classList.remove(r))),s.params.loop||s.params.virtual&&s.params.virtual.enabled)for(let e=0;e<i;e+=1)f(s.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((e=>{e.classList.add(r)}));else for(let e=0;e<i;e+=1)s.slides[t.realIndex+e]&&s.slides[t.realIndex+e].classList.add(r);const n=t.params.thumbs.autoScrollOffset,l=n&&!s.params.loop;if(t.realIndex!==s.realIndex||l){const i=s.activeIndex;let r,o;if(s.params.loop){const e=s.slides.filter((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`))[0];r=s.slides.indexOf(e),o=t.activeIndex>t.previousIndex?"next":"prev"}else r=t.realIndex,o=r>t.previousIndex?"next":"prev";l&&(r+="next"===o?n:-1*n),s.visibleSlidesIndexes&&s.visibleSlidesIndexes.indexOf(r)<0&&(s.params.centeredSlides?r=r>i?r-Math.floor(a/2)+1:r+Math.floor(a/2)-1:r>i&&s.params.slidesPerGroup,s.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const s=a(),i=()=>{const a="string"==typeof e.swiper?s.querySelector(e.swiper):e.swiper;if(a&&a.swiper)e.swiper=a.swiper,o(),d(!0);else if(a){const s=i=>{e.swiper=i.detail[0],a.removeEventListener("init",s),o(),d(!0),e.swiper.update(),t.update()};a.addEventListener("init",s)}return a},r=()=>{if(t.destroyed)return;i()||requestAnimationFrame(r)};requestAnimationFrame(r)}else o(),d(!0)})),i("slideChange update resize observerUpdate",(()=>{d()})),i("setTransition",((e,s)=>{const a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(s)})),i("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()})),Object.assign(t.thumbs,{init:o,update:d})},function(e){let{swiper:t,extendParams:s,emit:a,once:i}=e;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:s}=t;0===e.velocities.length&&e.velocities.push({position:s[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:s[t.isHorizontal()?"currentX":"currentY"],time:o()})},onTouchEnd:function(e){let{currentPos:s}=e;if(t.params.cssMode)return;const{params:r,wrapperEl:n,rtlTranslate:l,snapGrid:d,touchEventsData:c}=t,p=o()-c.touchStartTime;if(s<-t.minTranslate())t.slideTo(t.activeIndex);else if(s>-t.maxTranslate())t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(c.velocities.length>1){const e=c.velocities.pop(),s=c.velocities.pop(),a=e.position-s.position,i=e.time-s.time;t.velocity=a/i,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(i>150||o()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,c.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const s=t.velocity*e;let p=t.translate+s;l&&(p=-p);let u,m=!1;const h=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let f;if(p<t.maxTranslate())r.freeMode.momentumBounce?(p+t.maxTranslate()<-h&&(p=t.maxTranslate()-h),u=t.maxTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.maxTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(p>t.minTranslate())r.freeMode.momentumBounce?(p-t.minTranslate()>h&&(p=t.minTranslate()+h),u=t.minTranslate(),m=!0,c.allowMomentumBounce=!0):p=t.minTranslate(),r.loop&&r.centeredSlides&&(f=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<d.length;t+=1)if(d[t]>-p){e=t;break}p=Math.abs(d[e]-p)<Math.abs(d[e-1]-p)||"next"===t.swipeDirection?d[e]:d[e-1],p=-p}if(f&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=l?Math.abs((-p-t.translate)/t.velocity):Math.abs((p-t.translate)/t.velocity),r.freeMode.sticky){const s=Math.abs((l?-p:p)-t.translate),a=t.slidesSizesGrid[t.activeIndex];e=s<a?r.speed:s<2*a?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&m?(t.updateProgress(u),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating=!0,x(n,(()=>{t&&!t.destroyed&&c.allowMomentumBounce&&(a("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(u),x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(a("_freeModeNoMomentumRelease"),t.updateProgress(p),t.setTransition(e),t.setTranslate(p),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(n,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(p),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&a("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||p>=r.longSwipesMs)&&(a("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,s,a,i,{swiper:r,extendParams:n,on:l}=e;n({grid:{rows:1,fill:"column"}});const o=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};l("init",(()=>{i=r.params.grid&&r.params.grid.rows>1})),l("update",(()=>{const{params:e,el:t}=r,s=e.grid&&e.grid.rows>1;i&&!s?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),a=1,r.emitContainerClasses()):!i&&s&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),i=s})),r.grid={initSlides:e=>{const{slidesPerView:i}=r.params,{rows:n,fill:l}=r.params.grid,o=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;a=Math.floor(o/n),t=Math.floor(o/n)===o/n?o:Math.ceil(o/n)*n,"auto"!==i&&"row"===l&&(t=Math.max(t,i*n)),s=t/n},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,i,n)=>{const{slidesPerGroup:l}=r.params,d=o(),{rows:c,fill:p}=r.params.grid,u=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:n.length;let m,h,f;if("row"===p&&l>1){const s=Math.floor(e/(l*c)),a=e-c*l*s,r=0===s?l:Math.min(Math.ceil((u-s*c*l)/c),l);f=Math.floor(a/r),h=a-f*r+s*l,m=h+f*t/c,i.style.order=m}else"column"===p?(h=Math.floor(e/c),f=e-h*c,(h>a||h===a&&f===c-1)&&(f+=1,f>=c&&(f=0,h+=1))):(f=Math.floor(e/s),h=e-f*s);i.row=f,i.column=h,i.style.height=`calc((100% - ${(c-1)*d}px) / ${c})`,i.style[r.getDirectionLabel("margin-top")]=0!==f?d&&`${d}px`:"",i.swiperSlideGridSet=!0},updateWrapperSize:(e,s)=>{const{centeredSlides:a,roundLengths:i}=r.params,n=o(),{rows:l}=r.params.grid;if(r.virtualSize=(e+n)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-n,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+n}px`),a){const e=[];for(let t=0;t<s.length;t+=1){let a=s[t];i&&(a=Math.floor(a)),s[t]<r.virtualSize+s[0]&&e.push(a)}s.splice(0,s.length),s.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:
vendor: 9,631 bytes, line 2640
2640ne.bind(t),prependSlide:le.bind(t),addSlide:oe.bind(t),removeSlide:de.bind(t),removeAllSlides:ce.bind(t)})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({fadeEffect:{crossFade:!1}}),pe({effect:"fade",swiper:t,on:a,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let s=0;s<e.length;s+=1){const e=t.slides[s];let a=-e.swiperSlideOffset;t.params.virtualTranslate||(a-=t.translate);let i=0;t.isHorizontal()||(i=a,a=0);const r=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),n=ue(0,e);n.style.opacity=r,n.style.transform=`translate3d(${a}px, ${i}px, 0px)`}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`})),me({swiper:t,duration:e,transformElements:s,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(e,t,s)=>{let a=s?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=s?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"left":"top")).split(" ")),e.append(a)),i||(i=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(s?"right":"bottom")).split(" ")),e.append(i)),a&&(a.style.opacity=Math.max(-t,0)),i&&(i.style.opacity=Math.max(t,0))};pe({effect:"cube",swiper:t,on:a,setTranslate:()=>{const{el:e,wrapperEl:s,slides:a,width:r,height:n,rtlTranslate:l,size:o,browser:d}=t,c=t.params.cubeEffect,p=t.isHorizontal(),u=t.virtual&&t.params.virtual.enabled;let m,h=0;c.shadow&&(p?(m=t.wrapperEl.querySelector(".swiper-cube-shadow"),m||(m=v("div","swiper-cube-shadow"),t.wrapperEl.append(m)),m.style.height=`${r}px`):(m=e.querySelector(".swiper-cube-shadow"),m||(m=v("div","swiper-cube-shadow"),e.append(m))));for(let e=0;e<a.length;e+=1){const s=a[e];let r=e;u&&(r=parseInt(s.getAttribute("data-swiper-slide-index"),10));let n=90*r,d=Math.floor(n/360);l&&(n=-n,d=Math.floor(-n/360));const m=Math.max(Math.min(s.progress,1),-1);let f=0,g=0,v=0;r%4==0?(f=4*-d*o,v=0):(r-1)%4==0?(f=0,v=4*-d*o):(r-2)%4==0?(f=o+4*d*o,v=o):(r-3)%4==0&&(f=-o,v=3*o+4*o*d),l&&(f=-f),p||(g=f,f=0);const w=`rotateX(${p?0:-n}deg) rotateY(${p?n:0}deg) translate3d(${f}px, ${g}px, ${v}px)`;m<=1&&m>-1&&(h=90*r+90*m,l&&(h=90*-r-90*m),t.browser&&t.browser.need3dFix&&Math.abs(h)/90%2==1&&(h+=.001)),s.style.transform=w,c.slideShadows&&i(s,m,p)}if(s.style.transformOrigin=`50% 50% -${o/2}px`,s.style["-webkit-transform-origin"]=`50% 50% -${o/2}px`,c.shadow)if(p)m.style.transform=`translate3d(0px, ${r/2+c.shadowOffset}px, ${-r/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${c.shadowScale})`;else{const e=Math.abs(h)-90*Math.floor(Math.abs(h)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),s=c.shadowScale,a=c.shadowScale/t,i=c.shadowOffset;m.style.transform=`scale3d(${s}, 1, ${a}) translate3d(0px, ${n/2+i}px, ${-n/2/a}px) rotateX(-89.99deg)`}const f=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-o/2:0;s.style.transform=`translate3d(0px,0,${f}px) rotateX(${t.isHorizontal()?0:h}deg) rotateY(${t.isHorizontal()?-h:0}deg)`,s.style.setProperty("--swiper-cube-translate-z",`${f}px`)},setTransition:e=>{const{el:s,slides:a}=t;if(a.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=s.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const s=Math.max(Math.min(t.progress,1),-1);i(t,s,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,s)=>{let a=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=he("flip",e,t.isHorizontal()?"left":"top")),i||(i=he("flip",e,t.isHorizontal()?"right":"bottom")),a&&(a.style.opacity=Math.max(-s,0)),i&&(i.style.opacity=Math.max(s,0))};pe({effect:"flip",swiper:t,on:a,setTranslate:()=>{const{slides:e,rtlTranslate:s}=t,a=t.params.flipEffect;for(let r=0;r<e.length;r+=1){const n=e[r];let l=n.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(n.progress,1),-1));const o=n.swiperSlideOffset;let d=-180*l,c=0,p=t.params.cssMode?-o-t.translate:-o,u=0;t.isHorizontal()?s&&(d=-d):(u=p,p=0,c=-d,d=0),t.browser&&t.browser.need3dFix&&(Math.abs(d)/90%2==1&&(d+=.001),Math.abs(c)/90%2==1&&(c+=.001)),n.style.zIndex=-Math.abs(Math.round(l))+e.length,a.slideShadows&&i(n,l);const m=`translate3d(${p}px, ${u}px, 0px) rotateX(${c}deg) rotateY(${d}deg)`;ue(0,n).style.transform=m}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:s})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let s=e.progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(e.progress,1),-1)),i(e,s)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),pe({effect:"coverflow",swiper:t,on:a,setTranslate:()=>{const{width:e,height:s,slides:a,slidesSizesGrid:i}=t,r=t.params.coverflowEffect,n=t.isHorizontal(),l=t.translate,o=n?e/2-l:s/2-l,d=n?r.rotate:-r.rotate,c=r.depth;for(let e=0,s=a.length;e<s;e+=1){const s=a[e],l=i[e],p=(o-s.swiperSlideOffset-l/2)/l,u="function"==typeof r.modifier?r.modifier(p):p*r.modifier;let m=n?d*u:0,h=n?0:d*u,f=-c*Math.abs(u),g=r.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(r.stretch)/100*l);let v=n?0:g*u,w=n?g*u:0,b=1-(1-r.scale)*Math.abs(u);Math.abs(w)<.001&&(w=0),Math.abs(v)<.001&&(v=0),Math.abs(f)<.001&&(f=0),Math.abs(m)<.001&&(m=0),Math.abs(h)<.001&&(h=0),Math.abs(b)<.001&&(b=0),t.browser&&t.browser.need3dFix&&(Math.abs(m)/90%2==1&&(m+=.001),Math.abs(h)/90%2==1&&(h+=.001));const y=`translate3d(${w}px,${v}px,${f}px)  rotateX(${h}deg) rotateY(${m}deg) scale(${b})`;if(ue(0,s).style.transform=y,s.style.zIndex=1-Math.abs(Math.round(u)),r.slideShadows){let e=n?s.querySelector(".swiper-slide-shadow-left"):s.querySelector(".swiper-slide-shadow-top"),t=n?s.querySelector(".swiper-slide-shadow-right"):s.querySelector(".swiper-slide-shadow-bottom");e||(e=he("coverflow",s,n?"left":"top")),t||(t=he("coverflow",s,n?"right":"bottom")),e&&(e.style.opacity=u>0?u:0),t&&(t.style.opacity=-u>0?-u:0)}}},setTransition:e=>{t.slides.map((e=>h(e))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=e=>"string"==typeof e?e:`${e}px`;pe({effect:"creative",swiper:t,on:a,setTranslate:()=>{const{slides:e,wrapperEl:s,slidesSizesGrid:a}=t,r=t.params.creativeEffect,{progressMultiplier:n}=r,l=t.params.centeredSlides;if(l){const e=a[0]/2-t.params.slidesOffsetBefore||0;s.style.transform=`translateX(calc(50% - ${e}px))`}for(let s=0;s<e.length;s+=1){const a=e[s],o=a.progress,d=Math.min(Math.max(a.progress,-r.limitProgress),r.limitProgress);let c=d;l||(c=Math.min(Math.max(a.originalProgress,-r.limitProgress),r.limitProgress));const p=a.swiperSlideOffset,u=[t.params.cssMode?-p-t.translate:-p,0,0],m=[0,0,0];let h=!1;t.isHorizontal()||(u[1]=u[0],u[0]=0);let f={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(f=r.next,h=!0):d>0&&(f=r.prev,h=!0),u.forEach(((e,t)=>{u[t]=`calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))`})),m.forEach(((e,s)=>{let a=f.rotate[s]*Math.abs(d*n);t.browser&&t.browser.need3dFix&&Math.abs(a)/90%2==1&&(a+=.001),m[s]=a})),a.style.zIndex=-Math.abs(Math.round(o))+e.length;const g=u.join(", "),v=`rotateX(${m[0]}deg) rotateY(${m[1]}deg) rotateZ(${m[2]}deg)`,w=c<0?`scale(${1+(1-f.scale)*c*n})`:`scale(${1-(1-f.scale)*c*n})`,b=c<0?1+(1-f.opacity)*c*n:1-(1-f.opacity)*c*n,y=`translate3d(${g}) ${v} ${w}`;if(h&&f.shadow||!h){let e=a.querySelector(".swiper-slide-shadow");if(!e&&f.shadow&&(e=he("creative",a)),e){const t=r.shadowPerProgress?d*(1/r.limitProgress):d;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const E=ue(0,a);E.style.transform=y,E.style.opacity=b,f.origin&&(E.style.transformOrigin=f.origin)}},setTransition:e=>{const s=t.slides.map((e=>h(e)));
2640s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:s,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:s,on:a}=e;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),pe({effect:"cards",swiper:t,on:a,setTranslate:()=>{const{slides:e,activeIndex:s,rtlTranslate:a}=t,i=t.params.cardsEffect,{startTranslate:r,isTouched:n}=t.touchEventsData,l=a?-t.translate:t.translate;for(let o=0;o<e.length;o+=1){const d=e[o],c=d.progress,p=Math.min(Math.max(c,-4),4);let u=d.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(u-=e[0].swiperSlideOffset);let m=t.params.cssMode?-u-t.translate:-u,h=0;const f=-100*Math.abs(p);let g=1,v=-i.perSlideRotate*p,w=i.perSlideOffset-.75*Math.abs(p);const b=t.virtual&&t.params.virtual.enabled?t.virtual.from+o:o,y=(b===s||b===s-1)&&p>0&&p<1&&(n||t.params.cssMode)&&l<r,E=(b===s||b===s+1)&&p<0&&p>-1&&(n||t.params.cssMode)&&l>r;if(y||E){const e=(1-Math.abs((Math.abs(p)-.5)/.5))**.5;v+=-28*p*e,g+=-.5*e,w+=96*e,h=-25*e*Math.abs(p)+"%"}if(m=p<0?`calc(${m}px ${a?"-":"+"} (${w*Math.abs(p)}%))`:p>0?`calc(${m}px ${a?"-":"+"} (-${w*Math.abs(p)}%))`:`${m}px`,!t.isHorizontal()){const e=h;h=m,m=e}const x=p<0?""+(1+(1-g)*p):""+(1-(1-g)*p),S=`\n        translate3d(${m}, ${h}, ${f}px)\n        rotateZ(${i.rotate?a?-v:v:0}deg)\n        scale(${x})\n      `;if(i.slideShadows){let e=d.querySelector(".swiper-slide-shadow");e||(e=he("cards",d)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(c))+e.length;ue(0,d).style.transform=S}},setTransition:e=>{const s=t.slides.map((e=>h(e)));s.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),me({swiper:t,duration:e,transformElements:s})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return ae.use(fe),ae}();
2641var eyeAble_pluginConfig = {"mainIconAlt":2,"license":{"www.sgfintel.de":"67035581f211a248lyqtofdk9"},"customFunctionPosition":{"Bluefilter":"Main","Darkmode":"Main","TabNavi":"Main","ColorCorrection":"Main","HideImages":"Main","LargeCursor":"Main","StopAnimation":"Main"},"topPosition":"15%","rightPosition":"10px","mobileBottomPosition":"15%","mobileRightPosition":"10px","sidePosition":"right","mobileSidePosition":"right","iconSize":"70px","mobileIconSize":"50px","customIconColor":"#000000","customBackgroundColor":"#000000","externalLogoUrl":"","externalToolbarLogoUrl":"","maxMagnification":15,"maxMobileMagnification":3,"blacklistContrast":"","blacklistDarkmode":"","blacklistFontsize":"","forceWhiteBackground":"","disableAllShortcuts":false,"hideIcon":false,"shareLocalStorage":false,"forceInlineColor":false,"sRStartElement":"","sRTextBlock":"","blacklistScreenReader":"","srDictionary":{},"srPhoentic":{}};
2642(function(a){a.fn.NMegamenu=function(k){let h=this,l=a.extend({menuOpenByClick:!1},k);return h.each(function(){let f=a(this).find("ul").first(),d=f.children("li");const e=function(){d.removeClass("hover");d.children("a").each(function(){a(this).parent().hasClass("hasChilds")&&a(this).attr("aria-expanded","false")});f.removeClass("active")},g=function(b){a(b).addClass("hover");a(b).hasClass("hasChilds")&&a(b).children("a").attr("aria-expanded","true");f.addClass("active");a(document).keydown(function(c){"Escape"==c.key&&e()})};l.menuOpenByClick?d.click(function(b){b.preventDefault();a("#megamenu ul ul a").click(function(c){c.stopPropagation()});!a(this).hasClass("hover")&&a(this).hasClass("hasChilds")?g(this):e()}).mouseout(function(){jQuery(document).unbind("keydown")}):d.mouseover(function(){g(this)}).mouseout(function(){jQuery(document).unbind("keydown")});d.mouseleave(function(){e()});d.children("a").keydown(function(b){"Enter"==b.key&&0<a(this).siblings("div").length&&(b.preventDefault(),a(this).key
2642down(function(c){"Enter"==c.key&&(c=a(this).attr("href"),window.location.href=c)}),g(a(this).parent()))});d.children("a").focus(function(){a(this).parent().hasClass("hover")||e()});d.keydown(function(b){"Escape"==b.key&&e()});d.focusin(function(){a(this).siblings().removeClass("hover");a(this).siblings(".hasChilds").children("a").attr("aria-expanded","false")});h.parents(":not(#container)").keyup(function(b){if("Tab"==b.key){b=document.activeElement;let c=f.attr("id");document.getElementById(c).contains(b)||e()}});a("body").hasClass("touch")&&d.children("a").click(function(b){0<a(this).siblings("div").length&&(b.preventDefault(),a(this).click(function(){let c=a(this).attr("href");window.location.href=c}))})})}})(jQuery);
2643(function(c){c.fn.NDropdownmenu=function(d){var b=c.extend({duration:200,toggleSiblings:!0,unfolded:!0},d);this.find("a.responsive").each(function(){var a=c(this);a.attr("aria-controls",a.siblings("ul").first().attr("id"));a.click(function(){a.closest("li").hasClass("current")?(a.siblings("ul").slideUp(b.duration),a.closest("li").removeClass("current").children("a.responsive").attr("title","Untermen\u00fc ausklappen").attr("aria-expanded","false")):(a.siblings("ul").slideDown(b.duration),a.closest("li").addClass("current").children("a.responsive").attr("title","Untermen\u00fc zuklappen").attr("aria-expanded","true"),!0===b.toggleSiblings&&(a.closest("li").siblings().children("ul").slideUp(b.duration),a.closest("li").siblings().removeClass("current").children("a.responsive").attr("title","Untermen\u00fc ausklappen").attr("aria-expanded","false")))})});!0===b.unfolded&&(this.find("li.childActive").addClass("current").children("a.responsive").attr("title","Untermen\u00fc zuklappen").attr("aria-expanded","true"),this.find("li.childActive > ul").show());return this}})(jQuery);
2644(function(a){a.fn.NSticky=function(){var b=this;b.find(".sticky-item-link, .sticky-item-button").on("mouseover focus",function(){a(this).closest(".sticky-item").addClass("sticky-item-hover");a(document).keydown(function(c){27==c.keyCode&&b.find(".sticky-item-hover").removeClass("sticky-item-hover")})}).mouseleave(function(){a(this).closest(".sticky-item").removeClass("sticky-item-hover")}).blur(function(){a(this).closest(".sticky-item").removeClass("sticky-item-hover")});return b}})(jQuery);
2645(function($){$.fn.NToggleButton=function(buttons){const getButtonProperty=function(id){if(typeof id==="string"&&id.length>0){let result=buttons.filter(function(button){return button.id===id});return result.length>0?result[0]:[]}};const setButtonAttribute=function(id,attributes){if(typeof id==="string"&&id.length>0&&typeof attributes==="object")for(let attribute in attributes)$("#"+id).attr(attribute,attributes[attribute])};return this.each(function(){$(this).click(function(){let id=$(this).attr("id");
2646let button=getButtonProperty(id);if($.isEmptyObject(button)===false){if(button.active===false){buttons.forEach(function(button){button.active=false;setButtonAttribute(button.id,button.attribute.inactive)});button.active=true;setButtonAttribute(id,button.attribute.active)}else{button.active=false;setButtonAttribute(id,button.attribute.inactive)}if(typeof button.callback=="function")button.callback()}})})}})(jQuery);
2647NDefaultButton={getToggleSearchButton:function(id,searchfieldId){id=id||"btn_toggle_search";searchfieldId=searchfieldId||"suchfeld";return{id:id,active:false,attribute:{active:{"aria-pressed":"true","aria-label":"Suche schlie\u00dfen","title":"Suche schlie\u00dfen"},inactive:{"aria-pressed":"false","aria-label":"Suche \u00f6ffnen","title":"Suche \u00f6ffnen"}},callback:function(){jQuery("body").removeClass("navigation");jQuery("body").toggleClass("search");if(jQuery("body").hasClass("search"))setTimeout(function(){jQuery("#"+
2648searchfieldId).focus()},400)}}},getToggleNavigationButton:function(id){id=id||"btn_toggle_navigation";return{id:id,active:false,attribute:{active:{"aria-pressed":"true","aria-label":"Navigation schlie\u00dfen","title":"Navigation schlie\u00dfen"},inactive:{"aria-pressed":"false","aria-label":"Navigation \u00f6ffnen","title":"Navigation \u00f6ffnen"}},callback:function(){jQuery("body").removeClass("search");jQuery("body").toggleClass("navigation")}}},getTogglePauseButton:function(type,swiper){let id=
2649"";let active="";let inactive="";switch(type){case 1:id="btn_control_banner";active="Bannerwechsel fortsetzen";inactive="Bannerwechsel pausieren";break;case 2:id="btn_control_news";active="Meldungswechsel fortsetzen";inactive="Meldungswechsel pausieren";break}return{id:id,active:false,attribute:{active:{"title":active,"aria-label":active,"aria-pressed":"true"},inactive:{"title":inactive,"aria-label":inactive,"aria-pressed":"false"}},callback:function(){let button=jQuery("#"+id);if(typeof swiper!==
2650"undefined")if(swiper.autoplay.running===true){button.find("i").toggleClass("fa-play fa-pause");swiper.autoplay.stop()}else{button.find("i").toggleClass("fa-pause fa-play");swiper.autoplay.start()}}}},getToggleGoogleTranslateButton:function(){return{id:"btn_toggle_google_translate",active:false,attribute:{active:{"aria-pressed":"true","aria-label":"\u00dcbersetzungsfunktion schlie\u00dfen","title":"\u00dcbersetzungsfunktion schlie\u00dfen"},inactive:{"aria-pressed":"false","aria-label":"\u00dcbersetzungsfunktion \u00f6ffnen",
2651"title":"\u00dcbersetzungsfunktion \u00f6ffnen"}},callback:function(){jQuery("div#google_translate_element").toggleClass("visible")}}},getToggleContrastButton:function(id){id=id||"btn_toggle_contrast";return{id:id,active:false,attribute:{active:{"aria-pressed":"true","aria-label":"Kontrast deaktivieren","title":"Kontrast deaktivieren"},inactive:{"aria-pressed":"false","aria-label":"Kontrast aktivieren","title":"Kontrast aktivieren"}}}}};
2652(function($) {
2653  
2654  $(document).ready(function() {
2655    NPortal.init();
2656  });
2657
2658  $(window).scroll(function() {
2659    NPortal.scroll();
2660  });
2661
2662  const NPortal = {
2663
2664    isStartpage: false,
2665		scrollPosition: 0,
2666    bannerSlider: undefined,
2667    shortlinkSlider: undefined,
2668
2669    init: function() {
2670      this.isStartpage = $('body').hasClass('startseite1') ? true : false;
2671      this.scroll();
2672			this.events();
2673
2674      if(this.isStartpage === true) {
2675        this.initBannerSlider();
2676        this.initShortlinklider();
2677      }
2678		},
2679
2680    scroll: function() {
2681      this.scrollPosition = $(window).scrollTop();
2682
2683      this.scrollPosition > 0 ? $('body').addClass('scrolled') : $('body').removeClass('scrolled');
2684    },
2685
2686    events: function() {
2687      // Megamenu
2688      $('div#megamenu').NMegamenu();
2689
2690      // Mobilmenu
2691      $('div#mobil_navigation').NDropdownmenu();
2692      
2693      // Sticky
2694      $('div#sticky').NSticky();
2695
2696      // Mobil Navigation, Mobil Suche
2697      $('button.btn-toggle-mobile').NToggleButton([
2698        NDefaultButton.getToggleSearchButton('btn_toggle_search', 'mobil_suchfeld'),
2699        NDefaultButton.getToggleNavigationButton()
2700      ]);
2701
2702      // Schnell gefunden
2703      $('button#btn_toggle_shortlinks').NToggleButton([
2704        {
2705          id: 'btn_toggle_shortlinks',
2706          active: false,
2707          attribute: {
2708            active: {
2709              'aria-pressed': 'true',
2710            },
2711            inactive: {
2712              'aria-pressed': 'false',
2713            }
2714          },
2715          callback: function() {
2716            $('div#startpage_shortlinks').find('div.shortlinks-list').slideToggle();
2717
2718            if(this.active === true) {
2719              $('button#btn_toggle_shortlinks').find('i').toggleClass('fa-chevron-down fa-chevron-up');
2720            }
2721            else {
2722              $('button#btn_toggle_shortlinks').find('i').toggleClass('fa-chevron-up fa-chevron-down');
2723            }
2724          }
2725        }
2726      ]);
2727    },
2728    
2729    initBannerSlider: function() {
2730      let $this = this;
2731
2732      if($('div#banner_slider div.swiper-slide').length > 1) {
2733        $this.bannerSlider = new Swiper('div#banner_slider div.swiper', {
2734          effect: 'fade',
2735          loop: true,
2736          speed: 2000,
2737          autoplay: {
2738            delay: 8000,
2739            disableOnInteraction: false,
2740          }
2741        });
2742      }
2743
2744      $('button#btn_control_banner').NToggleButton([
2745        NDefaultButton.getTogglePauseButton(1, $this.bannerSlider)
2746      ]);
2747    },
2748
2749    initShortlinklider: function() {
2750      if($('div#startpage_shortlink_slider a.swiper-slide').length > 1) {
2751        this.shortlinkSlider = new Swiper('div#startpage_shortlink_slider div.swiper', {
2752          slidesPerView: 2,
2753          spaceBetween: 10,
2754          speed: 2000,
2755          noSwiping: false,
2756          noSwipingClass: 'swiper-slide',
2757          pagination: {
2758            el: 'div#startpage_shortlink_slider div.swiper-pagination',
2759            type: 'bullets',
2760            clickable: true
2761          },
2762          breakpoints: {
2763            371: {
2764              slidesPerView: 3,
2765              spaceBetween: 10,
2766              noSwiping: false,
2767              noSwipingClass: 'swiper-slide'
2768            },
2769            721: { 
2770              slidesPerView: 5,
2771              spaceBetween: 10,
2772              noSwiping: true,
2773              noSwipingClass: 'swiper-slide'
2774            },
2775            841: {
2776              slidesPerView: 5,
2777              spaceBetween: 18,
2778              noSwiping: true,
2779              noSwipingClass: 'swiper-slide'
2780            }
2781          }
2782        });
2783      }
2784    }
2785
2786  }
2787
2788})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.