phcthemes_admin_panel_pack 5.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/smarty/core.js +28154 -0
  3. data/app/assets/javascripts/smarty/core.min.js +2 -0
  4. data/app/assets/javascripts/smarty/core.sow_builder.js +84 -0
  5. data/app/assets/javascripts/smarty/core.sow_builder.min.js +1 -0
  6. data/app/assets/javascripts/smarty/phcthemes_admin_panel_pack_smarty.js +3 -0
  7. data/app/assets/javascripts/smarty/vendor.chartjs.js +20776 -0
  8. data/app/assets/javascripts/smarty/vendor.chartjs.min.js +1 -0
  9. data/app/assets/javascripts/smarty/vendor.cocoen.js +1 -0
  10. data/app/assets/javascripts/smarty/vendor.cocoen.min.js +1 -0
  11. data/app/assets/javascripts/smarty/vendor.colorpicker.js +3 -0
  12. data/app/assets/javascripts/smarty/vendor.colorpicker.min.js +1 -0
  13. data/app/assets/javascripts/smarty/vendor.datatables.js +42928 -0
  14. data/app/assets/javascripts/smarty/vendor.datatables.min.js +1 -0
  15. data/app/assets/javascripts/smarty/vendor.datepicker.js +2039 -0
  16. data/app/assets/javascripts/smarty/vendor.datepicker.min.js +1 -0
  17. data/app/assets/javascripts/smarty/vendor.daterangepicker.js +1578 -0
  18. data/app/assets/javascripts/smarty/vendor.daterangepicker.min.js +1 -0
  19. data/app/assets/javascripts/smarty/vendor.easypie.js +364 -0
  20. data/app/assets/javascripts/smarty/vendor.easypie.min.js +1 -0
  21. data/app/assets/javascripts/smarty/vendor.fancybox.js +5632 -0
  22. data/app/assets/javascripts/smarty/vendor.fancybox.min.js +1 -0
  23. data/app/assets/javascripts/smarty/vendor.flickity.js +4597 -0
  24. data/app/assets/javascripts/smarty/vendor.flickity.min.js +1 -0
  25. data/app/assets/javascripts/smarty/vendor.flot.js +11921 -0
  26. data/app/assets/javascripts/smarty/vendor.flot.min.js +1 -0
  27. data/app/assets/javascripts/smarty/vendor.fullcalendar.js +14597 -0
  28. data/app/assets/javascripts/smarty/vendor.fullcalendar.min.js +1 -0
  29. data/app/assets/javascripts/smarty/vendor.leaflet.js +6 -0
  30. data/app/assets/javascripts/smarty/vendor.leaflet.min.js +1 -0
  31. data/app/assets/javascripts/smarty/vendor.markdowneditor.js +7 -0
  32. data/app/assets/javascripts/smarty/vendor.markdowneditor.min.js +1 -0
  33. data/app/assets/javascripts/smarty/vendor.mediumeditor.js +7893 -0
  34. data/app/assets/javascripts/smarty/vendor.mediumeditor.min.js +1 -0
  35. data/app/assets/javascripts/smarty/vendor.pdfmake.js +79493 -0
  36. data/app/assets/javascripts/smarty/vendor.pdfmake.min.js +1 -0
  37. data/app/assets/javascripts/smarty/vendor.photoswipe.js +4595 -0
  38. data/app/assets/javascripts/smarty/vendor.photoswipe.min.js +1 -0
  39. data/app/assets/javascripts/smarty/vendor.prismjs.js +7219 -0
  40. data/app/assets/javascripts/smarty/vendor.prismjs.min.js +1 -0
  41. data/app/assets/javascripts/smarty/vendor.quilleditor.js +11562 -0
  42. data/app/assets/javascripts/smarty/vendor.quilleditor.min.js +1 -0
  43. data/app/assets/javascripts/smarty/vendor.sparkline.js +3068 -0
  44. data/app/assets/javascripts/smarty/vendor.sparkline.min.js +1 -0
  45. data/app/assets/javascripts/smarty/vendor.summernoteeditor.js +10235 -0
  46. data/app/assets/javascripts/smarty/vendor.summernoteeditor.min.js +1 -0
  47. data/app/assets/javascripts/smarty/vendor.swiper.js +9899 -0
  48. data/app/assets/javascripts/smarty/vendor.swiper.min.js +1 -0
  49. data/app/assets/javascripts/smarty/vendor_bundle.js +30514 -0
  50. data/app/assets/javascripts/smarty/vendor_bundle.min.js +2 -0
  51. data/app/assets/stylesheets/smarty/default/phcthemes_admin_panel_pack_smarty.scss +7 -0
  52. data/app/assets/stylesheets/smarty/theme/css/core.css +20170 -0
  53. data/app/assets/stylesheets/smarty/theme/css/core.min.css +2 -0
  54. data/app/assets/stylesheets/smarty/theme/css/vendor.chartjs.css +55 -0
  55. data/app/assets/stylesheets/smarty/theme/css/vendor.chartjs.min.css +1 -0
  56. data/app/assets/stylesheets/smarty/theme/css/vendor.cocoen.css +59 -0
  57. data/app/assets/stylesheets/smarty/theme/css/vendor.cocoen.min.css +1 -0
  58. data/app/assets/stylesheets/smarty/theme/css/vendor.colorpicker.css +1196 -0
  59. data/app/assets/stylesheets/smarty/theme/css/vendor.colorpicker.min.css +1 -0
  60. data/app/assets/stylesheets/smarty/theme/css/vendor.datatables.css +1258 -0
  61. data/app/assets/stylesheets/smarty/theme/css/vendor.datatables.min.css +1 -0
  62. data/app/assets/stylesheets/smarty/theme/css/vendor.datepicker.css +173 -0
  63. data/app/assets/stylesheets/smarty/theme/css/vendor.datepicker.min.css +1 -0
  64. data/app/assets/stylesheets/smarty/theme/css/vendor.daterangepicker.css +545 -0
  65. data/app/assets/stylesheets/smarty/theme/css/vendor.daterangepicker.min.css +1 -0
  66. data/app/assets/stylesheets/smarty/theme/css/vendor.fancybox.css +927 -0
  67. data/app/assets/stylesheets/smarty/theme/css/vendor.fancybox.min.css +1 -0
  68. data/app/assets/stylesheets/smarty/theme/css/vendor.flickity.css +263 -0
  69. data/app/assets/stylesheets/smarty/theme/css/vendor.flickity.min.css +1 -0
  70. data/app/assets/stylesheets/smarty/theme/css/vendor.flot.css +17 -0
  71. data/app/assets/stylesheets/smarty/theme/css/vendor.flot.min.css +1 -0
  72. data/app/assets/stylesheets/smarty/theme/css/vendor.fullcalendar.css +1685 -0
  73. data/app/assets/stylesheets/smarty/theme/css/vendor.fullcalendar.min.css +1 -0
  74. data/app/assets/stylesheets/smarty/theme/css/vendor.leaflet.css +653 -0
  75. data/app/assets/stylesheets/smarty/theme/css/vendor.leaflet.min.css +1 -0
  76. data/app/assets/stylesheets/smarty/theme/css/vendor.markdowneditor.css +7 -0
  77. data/app/assets/stylesheets/smarty/theme/css/vendor.markdowneditor.min.css +1 -0
  78. data/app/assets/stylesheets/smarty/theme/css/vendor.mediumeditor.css +308 -0
  79. data/app/assets/stylesheets/smarty/theme/css/vendor.mediumeditor.min.css +1 -0
  80. data/app/assets/stylesheets/smarty/theme/css/vendor.photoswipe.css +436 -0
  81. data/app/assets/stylesheets/smarty/theme/css/vendor.photoswipe.min.css +1 -0
  82. data/app/assets/stylesheets/smarty/theme/css/vendor.prismjs.css +364 -0
  83. data/app/assets/stylesheets/smarty/theme/css/vendor.prismjs.min.css +1 -0
  84. data/app/assets/stylesheets/smarty/theme/css/vendor.quilleditor.css +953 -0
  85. data/app/assets/stylesheets/smarty/theme/css/vendor.quilleditor.min.css +1 -0
  86. data/app/assets/stylesheets/smarty/theme/css/vendor.summernoteeditor.css +710 -0
  87. data/app/assets/stylesheets/smarty/theme/css/vendor.summernoteeditor.min.css +1 -0
  88. data/app/assets/stylesheets/smarty/theme/css/vendor.swiper.css +762 -0
  89. data/app/assets/stylesheets/smarty/theme/css/vendor.swiper.min.css +1 -0
  90. data/app/assets/stylesheets/smarty/theme/css/vendor_bundle.css +168 -0
  91. data/app/assets/stylesheets/smarty/theme/css/vendor_bundle.min.css +2 -0
  92. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.eot +0 -0
  93. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.svg +250 -0
  94. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.ttf +0 -0
  95. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.woff +0 -0
  96. data/app/assets/stylesheets/smarty/theme/fonts/flaticon/Flaticon.woff2 +0 -0
  97. data/app/assets/stylesheets/smarty/theme/fonts/summernote.eot +0 -0
  98. data/app/assets/stylesheets/smarty/theme/fonts/summernote.hash +1 -0
  99. data/app/assets/stylesheets/smarty/theme/fonts/summernote.ttf +0 -0
  100. data/app/assets/stylesheets/smarty/theme/fonts/summernote.woff +0 -0
  101. data/app/assets/stylesheets/smarty/theme/fonts/summernote.woff2 +0 -0
  102. data/app/assets/stylesheets/smarty/theme/images/credit_card/2co.svg +1 -0
  103. data/app/assets/stylesheets/smarty/theme/images/credit_card/amazon.svg +1 -0
  104. data/app/assets/stylesheets/smarty/theme/images/credit_card/amazon_pay_logo.svg +1 -0
  105. data/app/assets/stylesheets/smarty/theme/images/credit_card/american_express.svg +1 -0
  106. data/app/assets/stylesheets/smarty/theme/images/credit_card/apple_pay.svg +1 -0
  107. data/app/assets/stylesheets/smarty/theme/images/credit_card/bitcoin.svg +1 -0
  108. data/app/assets/stylesheets/smarty/theme/images/credit_card/dinners_club.svg +1 -0
  109. data/app/assets/stylesheets/smarty/theme/images/credit_card/discover.svg +1 -0
  110. data/app/assets/stylesheets/smarty/theme/images/credit_card/ebay.svg +1 -0
  111. data/app/assets/stylesheets/smarty/theme/images/credit_card/jcb.svg +1 -0
  112. data/app/assets/stylesheets/smarty/theme/images/credit_card/mastercard.svg +1 -0
  113. data/app/assets/stylesheets/smarty/theme/images/credit_card/paypal.svg +1 -0
  114. data/app/assets/stylesheets/smarty/theme/images/credit_card/paypal_logo.svg +1 -0
  115. data/app/assets/stylesheets/smarty/theme/images/credit_card/shopify.svg +1 -0
  116. data/app/assets/stylesheets/smarty/theme/images/credit_card/skrill.svg +1 -0
  117. data/app/assets/stylesheets/smarty/theme/images/credit_card/switch.svg +1 -0
  118. data/app/assets/stylesheets/smarty/theme/images/credit_card/visa.svg +1 -0
  119. data/app/assets/stylesheets/smarty/theme/images/credit_card/western_union.svg +1 -0
  120. data/app/assets/stylesheets/smarty/theme/images/flags.png +0 -0
  121. data/app/assets/stylesheets/smarty/theme/images/logo/logo_dark.svg +2 -0
  122. data/app/assets/stylesheets/smarty/theme/images/logo/logo_light.svg +2 -0
  123. data/app/assets/stylesheets/smarty/theme/images/logo/logo_sm.svg +1 -0
  124. data/app/assets/stylesheets/smarty/theme/images/manifest/icon_192x192.png +0 -0
  125. data/app/assets/stylesheets/smarty/theme/images/manifest/icon_512x512.png +0 -0
  126. data/app/assets/stylesheets/smarty/theme/images/manifest/manifest.json +20 -0
  127. data/app/assets/stylesheets/smarty/theme/images/masks/shape-line-lense.svg +1 -0
  128. data/lib/phcthemes_admin_panel_pack/version.rb +1 -1
  129. metadata +128 -2
@@ -0,0 +1,2 @@
1
+ /*! Core v5.0.0 */
2
+ !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(e,t){"use strict";var o=[],a=Object.getPrototypeOf,r=o.slice,n=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},i=o.push,s=o.indexOf,l={},c=l.toString,d=l.hasOwnProperty,u=d.toString,f=u.call(Object),p={},h=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,o){var a,r,n=(o=o||m).createElement("script");if(n.text=e,t)for(a in v)(r=t[a]||t.getAttribute&&t.getAttribute(a))&&n.setAttribute(a,r);o.head.appendChild(n).parentNode.removeChild(n)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var j="3.6.0",b=function(e,t){return new b.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,o=_(e);return!h(e)&&!g(e)&&("array"===o||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:j,constructor:b,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,(function(t,o){return e.call(t,o,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(b.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(b.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,o=+e+(e<0?t:0);return this.pushStack(o>=0&&o<t?[this[o]]:[])},end:function(){return this.prevObject||this.constructor()},push:i,sort:o.sort,splice:o.splice},b.extend=b.fn.extend=function(){var e,t,o,a,r,n,i=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof i&&(c=i,i=arguments[s]||{},s++),"object"==typeof i||h(i)||(i={}),s===l&&(i=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)a=e[t],"__proto__"!==t&&i!==a&&(c&&a&&(b.isPlainObject(a)||(r=Array.isArray(a)))?(o=i[t],n=r&&!Array.isArray(o)?[]:r||b.isPlainObject(o)?o:{},r=!1,i[t]=b.extend(c,n,a)):void 0!==a&&(i[t]=a));return i},b.extend({expando:"jQuery"+(j+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,o;return!(!e||"[object Object]"!==c.call(e))&&(!(t=a(e))||"function"==typeof(o=d.call(t,"constructor")&&t.constructor)&&u.call(o)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,o){y(e,{nonce:t&&t.nonce},o)},each:function(e,t){var o,a=0;if(S(e))for(o=e.length;a<o&&!1!==t.call(e[a],a,e[a]);a++);else for(a in e)if(!1===t.call(e[a],a,e[a]))break;return e},makeArray:function(e,t){var o=t||[];return null!=e&&(S(Object(e))?b.merge(o,"string"==typeof e?[e]:e):i.call(o,e)),o},inArray:function(e,t,o){return null==t?-1:s.call(t,e,o)},merge:function(e,t){for(var o=+t.length,a=0,r=e.length;a<o;a++)e[r++]=t[a];return e.length=r,e},grep:function(e,t,o){for(var a=[],r=0,n=e.length,i=!o;r<n;r++)!t(e[r],r)!==i&&a.push(e[r]);return a},map:function(e,t,o){var a,r,i=0,s=[];if(S(e))for(a=e.length;i<a;i++)null!=(r=t(e[i],i,o))&&s.push(r);else for(i in e)null!=(r=t(e[i],i,o))&&s.push(r);return n(s)},guid:1,support:p}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=o[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var x=function(e){var t,o,a,r,n,i,s,l,c,d,u,f,p,h,g,m,v,y,_,j="sizzle"+1*new Date,b=e.document,S=0,x=0,w=le(),O=le(),W=le(),Q=le(),C=function(e,t){return e===t&&(u=!0),0},k={}.hasOwnProperty,T=[],A=T.pop,L=T.push,D=T.push,E=T.slice,N=function(e,t){for(var o=0,a=e.length;o<a;o++)if(e[o]===t)return o;return-1},q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\[[\\x20\\t\\r\\n\\f]*("+z+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+I+"*\\]",R=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",F=new RegExp(I+"+","g"),H=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),M=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),$=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),P=new RegExp(I+"|>"),U=new RegExp(R),G=new RegExp("^"+z+"$"),J={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+q+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},V=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),oe=function(e,t){var o="0x"+e.slice(1)-65536;return t||(o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320))},ae=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){f()},ie=je((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(T=E.call(b.childNodes),b.childNodes),T[b.childNodes.length].nodeType}catch(e){D={apply:T.length?function(e,t){L.apply(e,E.call(t))}:function(e,t){for(var o=e.length,a=0;e[o++]=t[a++];);e.length=o-1}}}function se(e,t,a,r){var n,s,c,d,u,h,v,y=t&&t.ownerDocument,b=t?t.nodeType:9;if(a=a||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return a;if(!r&&(f(t),t=t||p,g)){if(11!==b&&(u=Z.exec(e)))if(n=u[1]){if(9===b){if(!(c=t.getElementById(n)))return a;if(c.id===n)return a.push(c),a}else if(y&&(c=y.getElementById(n))&&_(t,c)&&c.id===n)return a.push(c),a}else{if(u[2])return D.apply(a,t.getElementsByTagName(e)),a;if((n=u[3])&&o.getElementsByClassName&&t.getElementsByClassName)return D.apply(a,t.getElementsByClassName(n)),a}if(o.qsa&&!Q[e+" "]&&(!m||!m.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===b&&(P.test(e)||$.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&o.scope||((d=t.getAttribute("id"))?d=d.replace(ae,re):t.setAttribute("id",d=j)),s=(h=i(e)).length;s--;)h[s]=(d?"#"+d:":scope")+" "+_e(h[s]);v=h.join(",")}try{return D.apply(a,y.querySelectorAll(v)),a}catch(t){Q(e,!0)}finally{d===j&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,a,r)}function le(){var e=[];return function t(o,r){return e.push(o+" ")>a.cacheLength&&delete t[e.shift()],t[o+" "]=r}}function ce(e){return e[j]=!0,e}function de(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var o=e.split("|"),r=o.length;r--;)a.attrHandle[o[r]]=t}function fe(e,t){var o=t&&e,a=o&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(a)return a;if(o)for(;o=o.nextSibling;)if(o===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var o=t.nodeName.toLowerCase();return("input"===o||"button"===o)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(o,a){for(var r,n=e([],o.length,t),i=n.length;i--;)o[r=n[i]]&&(o[r]=!(a[r]=o[r]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in o=se.support={},n=se.isXML=function(e){var t=e&&e.namespaceURI,o=e&&(e.ownerDocument||e).documentElement;return!V.test(t||o&&o.nodeName||"HTML")},f=se.setDocument=function(e){var t,r,i=e?e.ownerDocument||e:b;return i!=p&&9===i.nodeType&&i.documentElement?(h=(p=i).documentElement,g=!n(p),b!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ne,!1):r.attachEvent&&r.attachEvent("onunload",ne)),o.scope=de((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),o.attributes=de((function(e){return e.className="i",!e.getAttribute("className")})),o.getElementsByTagName=de((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),o.getElementsByClassName=Y.test(p.getElementsByClassName),o.getById=de((function(e){return h.appendChild(e).id=j,!p.getElementsByName||!p.getElementsByName(j).length})),o.getById?(a.filter.ID=function(e){var t=e.replace(te,oe);return function(e){return e.getAttribute("id")===t}},a.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var o=t.getElementById(e);return o?[o]:[]}}):(a.filter.ID=function(e){var t=e.replace(te,oe);return function(e){var o=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return o&&o.value===t}},a.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var o,a,r,n=t.getElementById(e);if(n){if((o=n.getAttributeNode("id"))&&o.value===e)return[n];for(r=t.getElementsByName(e),a=0;n=r[a++];)if((o=n.getAttributeNode("id"))&&o.value===e)return[n]}return[]}}),a.find.TAG=o.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):o.qsa?t.querySelectorAll(e):void 0}:function(e,t){var o,a=[],r=0,n=t.getElementsByTagName(e);if("*"===e){for(;o=n[r++];)1===o.nodeType&&a.push(o);return a}return n},a.find.CLASS=o.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(o.qsa=Y.test(p.querySelectorAll))&&(de((function(e){var t;h.appendChild(e).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+q+")"),e.querySelectorAll("[id~="+j+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),de((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(o.matchesSelector=Y.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&de((function(e){o.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",R)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Y.test(h.compareDocumentPosition),_=t||Y.test(h.contains)?function(e,t){var o=9===e.nodeType?e.documentElement:e,a=t&&t.parentNode;return e===a||!(!a||1!==a.nodeType||!(o.contains?o.contains(a):e.compareDocumentPosition&&16&e.compareDocumentPosition(a)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return u=!0,0;var a=!e.compareDocumentPosition-!t.compareDocumentPosition;return a||(1&(a=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!o.sortDetached&&t.compareDocumentPosition(e)===a?e==p||e.ownerDocument==b&&_(b,e)?-1:t==p||t.ownerDocument==b&&_(b,t)?1:d?N(d,e)-N(d,t):0:4&a?-1:1)}:function(e,t){if(e===t)return u=!0,0;var o,a=0,r=e.parentNode,n=t.parentNode,i=[e],s=[t];if(!r||!n)return e==p?-1:t==p?1:r?-1:n?1:d?N(d,e)-N(d,t):0;if(r===n)return fe(e,t);for(o=e;o=o.parentNode;)i.unshift(o);for(o=t;o=o.parentNode;)s.unshift(o);for(;i[a]===s[a];)a++;return a?fe(i[a],s[a]):i[a]==b?-1:s[a]==b?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),o.matchesSelector&&g&&!Q[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var a=y.call(e,t);if(a||o.disconnectedMatch||e.document&&11!==e.document.nodeType)return a}catch(e){Q(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&f(e),_(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&f(e);var r=a.attrHandle[t.toLowerCase()],n=r&&k.call(a.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==n?n:o.attributes||!g?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},se.escape=function(e){return(e+"").replace(ae,re)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,a=[],r=0,n=0;if(u=!o.detectDuplicates,d=!o.sortStable&&e.slice(0),e.sort(C),u){for(;t=e[n++];)t===e[n]&&(r=a.push(n));for(;r--;)e.splice(a[r],1)}return d=null,e},r=se.getText=function(e){var t,o="",a=0,n=e.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)o+=r(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[a++];)o+=r(t);return o},a=se.selectors={cacheLength:50,createPseudo:ce,match:J,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(te,oe),e[3]=(e[3]||e[4]||e[5]||"").replace(te,oe),"~="===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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,o=!e[6]&&e[2];return J.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":o&&U.test(o)&&(t=i(o,!0))&&(t=o.indexOf(")",o.length-t)-o.length)&&(e[0]=e[0].slice(0,t),e[2]=o.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,oe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+I+"|$)"))&&w(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,o){return function(a){var r=se.attr(a,e);return null==r?"!="===t:!t||(r+="","="===t?r===o:"!="===t?r!==o:"^="===t?o&&0===r.indexOf(o):"*="===t?o&&r.indexOf(o)>-1:"$="===t?o&&r.slice(-o.length)===o:"~="===t?(" "+r.replace(F," ")+" ").indexOf(o)>-1:"|="===t&&(r===o||r.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,o,a,r){var n="nth"!==e.slice(0,3),i="last"!==e.slice(-4),s="of-type"===t;return 1===a&&0===r?function(e){return!!e.parentNode}:function(t,o,l){var c,d,u,f,p,h,g=n!==i?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,_=!1;if(m){if(n){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[i?m.firstChild:m.lastChild],i&&y){for(_=(p=(c=(d=(u=(f=m)[j]||(f[j]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(_=p=0)||h.pop();)if(1===f.nodeType&&++_&&f===t){d[e]=[S,p,_];break}}else if(y&&(_=p=(c=(d=(u=(f=t)[j]||(f[j]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===_)for(;(f=++p&&f&&f[g]||(_=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++_||(y&&((d=(u=f[j]||(f[j]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]=[S,_]),f!==t)););return(_-=r)===a||_%a==0&&_/a>=0}}},PSEUDO:function(e,t){var o,r=a.pseudos[e]||a.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[j]?r(t):r.length>1?(o=[e,e,"",t],a.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,o){for(var a,n=r(e,t),i=n.length;i--;)e[a=N(e,n[i])]=!(o[a]=n[i])})):function(e){return r(e,0,o)}):r}},pseudos:{not:ce((function(e){var t=[],o=[],a=s(e.replace(H,"$1"));return a[j]?ce((function(e,t,o,r){for(var n,i=a(e,null,r,[]),s=e.length;s--;)(n=i[s])&&(e[s]=!(t[s]=n))})):function(e,r,n){return t[0]=e,a(t,null,n,o),t[0]=null,!o.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,oe),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:ce((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,oe).toLowerCase(),function(t){var o;do{if(o=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(o=o.toLowerCase())===e||0===o.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var o=e.location&&e.location.hash;return o&&o.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!a.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,o){return[o<0?o+t:o]})),even:me((function(e,t){for(var o=0;o<t;o+=2)e.push(o);return e})),odd:me((function(e,t){for(var o=1;o<t;o+=2)e.push(o);return e})),lt:me((function(e,t,o){for(var a=o<0?o+t:o>t?t:o;--a>=0;)e.push(a);return e})),gt:me((function(e,t,o){for(var a=o<0?o+t:o;++a<t;)e.push(a);return e}))}},a.pseudos.nth=a.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})a.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})a.pseudos[t]=he(t);function ye(){}function _e(e){for(var t=0,o=e.length,a="";t<o;t++)a+=e[t].value;return a}function je(e,t,o){var a=t.dir,r=t.next,n=r||a,i=o&&"parentNode"===n,s=x++;return t.first?function(t,o,r){for(;t=t[a];)if(1===t.nodeType||i)return e(t,o,r);return!1}:function(t,o,l){var c,d,u,f=[S,s];if(l){for(;t=t[a];)if((1===t.nodeType||i)&&e(t,o,l))return!0}else for(;t=t[a];)if(1===t.nodeType||i)if(d=(u=t[j]||(t[j]={}))[t.uniqueID]||(u[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[a]||t;else{if((c=d[n])&&c[0]===S&&c[1]===s)return f[2]=c[2];if(d[n]=f,f[2]=e(t,o,l))return!0}return!1}}function be(e){return e.length>1?function(t,o,a){for(var r=e.length;r--;)if(!e[r](t,o,a))return!1;return!0}:e[0]}function Se(e,t,o,a,r){for(var n,i=[],s=0,l=e.length,c=null!=t;s<l;s++)(n=e[s])&&(o&&!o(n,a,r)||(i.push(n),c&&t.push(s)));return i}function xe(e,t,o,a,r,n){return a&&!a[j]&&(a=xe(a)),r&&!r[j]&&(r=xe(r,n)),ce((function(n,i,s,l){var c,d,u,f=[],p=[],h=i.length,g=n||function(e,t,o){for(var a=0,r=t.length;a<r;a++)se(e,t[a],o);return o}(t||"*",s.nodeType?[s]:s,[]),m=!e||!n&&t?g:Se(g,f,e,s,l),v=o?r||(n?e:h||a)?[]:i:m;if(o&&o(m,v,s,l),a)for(c=Se(v,p),a(c,[],s,l),d=c.length;d--;)(u=c[d])&&(v[p[d]]=!(m[p[d]]=u));if(n){if(r||e){if(r){for(c=[],d=v.length;d--;)(u=v[d])&&c.push(m[d]=u);r(null,v=[],c,l)}for(d=v.length;d--;)(u=v[d])&&(c=r?N(n,u):f[d])>-1&&(n[c]=!(i[c]=u))}}else v=Se(v===i?v.splice(h,v.length):v),r?r(null,i,v,l):D.apply(i,v)}))}function we(e){for(var t,o,r,n=e.length,i=a.relative[e[0].type],s=i||a.relative[" "],l=i?1:0,d=je((function(e){return e===t}),s,!0),u=je((function(e){return N(t,e)>-1}),s,!0),f=[function(e,o,a){var r=!i&&(a||o!==c)||((t=o).nodeType?d(e,o,a):u(e,o,a));return t=null,r}];l<n;l++)if(o=a.relative[e[l].type])f=[je(be(f),o)];else{if((o=a.filter[e[l].type].apply(null,e[l].matches))[j]){for(r=++l;r<n&&!a.relative[e[r].type];r++);return xe(l>1&&be(f),l>1&&_e(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),o,l<r&&we(e.slice(l,r)),r<n&&we(e=e.slice(r)),r<n&&_e(e))}f.push(o)}return be(f)}return ye.prototype=a.filters=a.pseudos,a.setFilters=new ye,i=se.tokenize=function(e,t){var o,r,n,i,s,l,c,d=O[e+" "];if(d)return t?0:d.slice(0);for(s=e,l=[],c=a.preFilter;s;){for(i in o&&!(r=M.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(n=[])),o=!1,(r=$.exec(s))&&(o=r.shift(),n.push({value:o,type:r[0].replace(H," ")}),s=s.slice(o.length)),a.filter)!(r=J[i].exec(s))||c[i]&&!(r=c[i](r))||(o=r.shift(),n.push({value:o,type:i,matches:r}),s=s.slice(o.length));if(!o)break}return t?s.length:s?se.error(e):O(e,l).slice(0)},s=se.compile=function(e,t){var o,r=[],n=[],s=W[e+" "];if(!s){for(t||(t=i(e)),o=t.length;o--;)(s=we(t[o]))[j]?r.push(s):n.push(s);s=W(e,function(e,t){var o=t.length>0,r=e.length>0,n=function(n,i,s,l,d){var u,h,m,v=0,y="0",_=n&&[],j=[],b=c,x=n||r&&a.find.TAG("*",d),w=S+=null==b?1:Math.random()||.1,O=x.length;for(d&&(c=i==p||i||d);y!==O&&null!=(u=x[y]);y++){if(r&&u){for(h=0,i||u.ownerDocument==p||(f(u),s=!g);m=e[h++];)if(m(u,i||p,s)){l.push(u);break}d&&(S=w)}o&&((u=!m&&u)&&v--,n&&_.push(u))}if(v+=y,o&&y!==v){for(h=0;m=t[h++];)m(_,j,i,s);if(n){if(v>0)for(;y--;)_[y]||j[y]||(j[y]=A.call(l));j=Se(j)}D.apply(l,j),d&&!n&&j.length>0&&v+t.length>1&&se.uniqueSort(l)}return d&&(S=w,c=b),_};return o?ce(n):n}(n,r)),s.selector=e}return s},l=se.select=function(e,t,o,r){var n,l,c,d,u,f="function"==typeof e&&e,p=!r&&i(e=f.selector||e);if(o=o||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&a.relative[l[1].type]){if(!(t=(a.find.ID(c.matches[0].replace(te,oe),t)||[])[0]))return o;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(n=J.needsContext.test(e)?0:l.length;n--&&(c=l[n],!a.relative[d=c.type]);)if((u=a.find[d])&&(r=u(c.matches[0].replace(te,oe),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(n,1),!(e=r.length&&_e(l)))return D.apply(o,r),o;break}}return(f||s(e,p))(r,t,!g,o,!t||ee.test(e)&&ve(t.parentNode)||t),o},o.sortStable=j.split("").sort(C).join("")===j,o.detectDuplicates=!!u,f(),o.sortDetached=de((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),de((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,o){if(!o)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),o.attributes&&de((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,o){if(!o&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((function(e){return null==e.getAttribute("disabled")}))||ue(q,(function(e,t,o){var a;if(!o)return!0===e[t]?t.toLowerCase():(a=e.getAttributeNode(t))&&a.specified?a.value:null})),se}(e);b.find=x,b.expr=x.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=x.uniqueSort,b.text=x.getText,b.isXMLDoc=x.isXML,b.contains=x.contains,b.escapeSelector=x.escape;var w=function(e,t,o){for(var a=[],r=void 0!==o;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&b(e).is(o))break;a.push(e)}return a},O=function(e,t){for(var o=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&o.push(e);return o},W=b.expr.match.needsContext;function Q(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,t,o){return h(t)?b.grep(e,(function(e,a){return!!t.call(e,a,e)!==o})):t.nodeType?b.grep(e,(function(e){return e===t!==o})):"string"!=typeof t?b.grep(e,(function(e){return s.call(t,e)>-1!==o})):b.filter(t,e,o)}b.filter=function(e,t,o){var a=t[0];return o&&(e=":not("+e+")"),1===t.length&&1===a.nodeType?b.find.matchesSelector(a,e)?[a]:[]:b.find.matches(e,b.grep(t,(function(e){return 1===e.nodeType})))},b.fn.extend({find:function(e){var t,o,a=this.length,r=this;if("string"!=typeof e)return this.pushStack(b(e).filter((function(){for(t=0;t<a;t++)if(b.contains(r[t],this))return!0})));for(o=this.pushStack([]),t=0;t<a;t++)b.find(e,r[t],o);return a>1?b.uniqueSort(o):o},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&W.test(e)?b(e):e||[],!1).length}});var T,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,o){var a,r;if(!e)return this;if(o=o||T,"string"==typeof e){if(!(a="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!a[1]&&t)return!t||t.jquery?(t||o).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),C.test(a[1])&&b.isPlainObject(t))for(a in t)h(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}return(r=m.getElementById(a[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==o.ready?o.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,T=b(m);var L=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function E(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),o=t.length;return this.filter((function(){for(var e=0;e<o;e++)if(b.contains(this,t[e]))return!0}))},closest:function(e,t){var o,a=0,r=this.length,n=[],i="string"!=typeof e&&b(e);if(!W.test(e))for(;a<r;a++)for(o=this[a];o&&o!==t;o=o.parentNode)if(o.nodeType<11&&(i?i.index(o)>-1:1===o.nodeType&&b.find.matchesSelector(o,e))){n.push(o);break}return this.pushStack(n.length>1?b.uniqueSort(n):n)},index:function(e){return e?"string"==typeof e?s.call(b(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return w(e,"parentNode")},parentsUntil:function(e,t,o){return w(e,"parentNode",o)},next:function(e){return E(e,"nextSibling")},prev:function(e){return E(e,"previousSibling")},nextAll:function(e){return w(e,"nextSibling")},prevAll:function(e){return w(e,"previousSibling")},nextUntil:function(e,t,o){return w(e,"nextSibling",o)},prevUntil:function(e,t,o){return w(e,"previousSibling",o)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(Q(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},(function(e,t){b.fn[e]=function(o,a){var r=b.map(this,t,o);return"Until"!==e.slice(-5)&&(a=o),a&&"string"==typeof a&&(r=b.filter(a,r)),this.length>1&&(D[e]||b.uniqueSort(r),L.test(e)&&r.reverse()),this.pushStack(r)}}));var N=/[^\x20\t\r\n\f]+/g;function q(e){return e}function I(e){throw e}function z(e,t,o,a){var r;try{e&&h(r=e.promise)?r.call(e).done(t).fail(o):e&&h(r=e.then)?r.call(e,t,o):t.apply(void 0,[e].slice(a))}catch(e){o.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(N)||[],(function(e,o){t[o]=!0})),t}(e):b.extend({},e);var t,o,a,r,n=[],i=[],s=-1,l=function(){for(r=r||e.once,a=t=!0;i.length;s=-1)for(o=i.shift();++s<n.length;)!1===n[s].apply(o[0],o[1])&&e.stopOnFalse&&(s=n.length,o=!1);e.memory||(o=!1),t=!1,r&&(n=o?[]:"")},c={add:function(){return n&&(o&&!t&&(s=n.length-1,i.push(o)),function t(o){b.each(o,(function(o,a){h(a)?e.unique&&c.has(a)||n.push(a):a&&a.length&&"string"!==_(a)&&t(a)}))}(arguments),o&&!t&&l()),this},remove:function(){return b.each(arguments,(function(e,t){for(var o;(o=b.inArray(t,n,o))>-1;)n.splice(o,1),o<=s&&s--})),this},has:function(e){return e?b.inArray(e,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return r=i=[],n=o="",this},disabled:function(){return!n},lock:function(){return r=i=[],o||t||(n=o=""),this},locked:function(){return!!r},fireWith:function(e,o){return r||(o=[e,(o=o||[]).slice?o.slice():o],i.push(o),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!a}};return c},b.extend({Deferred:function(t){var o=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],a="pending",r={state:function(){return a},always:function(){return n.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return b.Deferred((function(t){b.each(o,(function(o,a){var r=h(e[a[4]])&&e[a[4]];n[a[1]]((function(){var e=r&&r.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[a[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(t,a,r){var n=0;function i(t,o,a,r){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t<n)){if((e=a.apply(s,l))===o.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,h(c)?r?c.call(e,i(n,o,q,r),i(n,o,I,r)):(n++,c.call(e,i(n,o,q,r),i(n,o,I,r),i(n,o,q,o.notifyWith))):(a!==q&&(s=void 0,l=[e]),(r||o.resolveWith)(s,l))}},d=r?c:function(){try{c()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,d.stackTrace),t+1>=n&&(a!==I&&(s=void 0,l=[e]),o.rejectWith(s,l))}};t?d():(b.Deferred.getStackHook&&(d.stackTrace=b.Deferred.getStackHook()),e.setTimeout(d))}}return b.Deferred((function(e){o[0][3].add(i(0,e,h(r)?r:q,e.notifyWith)),o[1][3].add(i(0,e,h(t)?t:q)),o[2][3].add(i(0,e,h(a)?a:I))})).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},n={};return b.each(o,(function(e,t){var i=t[2],s=t[5];r[t[1]]=i.add,s&&i.add((function(){a=s}),o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),i.add(t[3].fire),n[t[0]]=function(){return n[t[0]+"With"](this===n?void 0:this,arguments),this},n[t[0]+"With"]=i.fireWith})),r.promise(n),t&&t.call(n,n),n},when:function(e){var t=arguments.length,o=t,a=Array(o),n=r.call(arguments),i=b.Deferred(),s=function(e){return function(o){a[e]=this,n[e]=arguments.length>1?r.call(arguments):o,--t||i.resolveWith(a,n)}};if(t<=1&&(z(e,i.done(s(o)).resolve,i.reject,!t),"pending"===i.state()||h(n[o]&&n[o].then)))return i.then();for(;o--;)z(n[o],s(o),i.reject);return i.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,o){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,o)},b.readyException=function(t){e.setTimeout((function(){throw t}))};var R=b.Deferred();function F(){m.removeEventListener("DOMContentLoaded",F),e.removeEventListener("load",F),b.ready()}b.fn.ready=function(e){return R.then(e).catch((function(e){b.readyException(e)})),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||R.resolveWith(m,[b]))}}),b.ready.then=R.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(b.ready):(m.addEventListener("DOMContentLoaded",F),e.addEventListener("load",F));var H=function(e,t,o,a,r,n,i){var s=0,l=e.length,c=null==o;if("object"===_(o))for(s in r=!0,o)H(e,t,s,o[s],!0,n,i);else if(void 0!==a&&(r=!0,h(a)||(i=!0),c&&(i?(t.call(e,a),t=null):(c=t,t=function(e,t,o){return c.call(b(e),o)})),t))for(;s<l;s++)t(e[s],o,i?a:a.call(e[s],s,t(e[s],o)));return r?e:c?t.call(e):l?t(e[0],o):n},M=/^-ms-/,$=/-([a-z])/g;function P(e,t){return t.toUpperCase()}function U(e){return e.replace(M,"ms-").replace($,P)}var G=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=b.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},G(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,o){var a,r=this.cache(e);if("string"==typeof t)r[U(t)]=o;else for(a in t)r[U(a)]=t[a];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,o){return void 0===t||t&&"string"==typeof t&&void 0===o?this.get(e,t):(this.set(e,t,o),void 0!==o?o:t)},remove:function(e,t){var o,a=e[this.expando];if(void 0!==a){if(void 0!==t){o=(t=Array.isArray(t)?t.map(U):(t=U(t))in a?[t]:t.match(N)||[]).length;for(;o--;)delete a[t[o]]}(void 0===t||b.isEmptyObject(a))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var V=new J,X=new J,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function Z(e,t,o){var a;if(void 0===o&&1===e.nodeType)if(a="data-"+t.replace(Y,"-$&").toLowerCase(),"string"==typeof(o=e.getAttribute(a))){try{o=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:K.test(e)?JSON.parse(e):e)}(o)}catch(e){}X.set(e,t,o)}else o=void 0;return o}b.extend({hasData:function(e){return X.hasData(e)||V.hasData(e)},data:function(e,t,o){return X.access(e,t,o)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,o){return V.access(e,t,o)},_removeData:function(e,t){V.remove(e,t)}}),b.fn.extend({data:function(e,t){var o,a,r,n=this[0],i=n&&n.attributes;if(void 0===e){if(this.length&&(r=X.get(n),1===n.nodeType&&!V.get(n,"hasDataAttrs"))){for(o=i.length;o--;)i[o]&&0===(a=i[o].name).indexOf("data-")&&(a=U(a.slice(5)),Z(n,a,r[a]));V.set(n,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){X.set(this,e)})):H(this,(function(t){var o;if(n&&void 0===t)return void 0!==(o=X.get(n,e))||void 0!==(o=Z(n,e))?o:void 0;this.each((function(){X.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),b.extend({queue:function(e,t,o){var a;if(e)return t=(t||"fx")+"queue",a=V.get(e,t),o&&(!a||Array.isArray(o)?a=V.access(e,t,b.makeArray(o)):a.push(o)),a||[]},dequeue:function(e,t){t=t||"fx";var o=b.queue(e,t),a=o.length,r=o.shift(),n=b._queueHooks(e,t);"inprogress"===r&&(r=o.shift(),a--),r&&("fx"===t&&o.unshift("inprogress"),delete n.stop,r.call(e,(function(){b.dequeue(e,t)}),n)),!a&&n&&n.empty.fire()},_queueHooks:function(e,t){var o=t+"queueHooks";return V.get(e,o)||V.access(e,o,{empty:b.Callbacks("once memory").add((function(){V.remove(e,[t+"queue",o])}))})}}),b.fn.extend({queue:function(e,t){var o=2;return"string"!=typeof e&&(t=e,e="fx",o--),arguments.length<o?b.queue(this[0],e):void 0===t?this:this.each((function(){var o=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==o[0]&&b.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){b.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var o,a=1,r=b.Deferred(),n=this,i=this.length,s=function(){--a||r.resolveWith(n,[n])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";i--;)(o=V.get(n[i],e+"queueHooks"))&&o.empty&&(a++,o.empty.add(s));return s(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ae=m.documentElement,re=function(e){return b.contains(e.ownerDocument,e)},ne={composed:!0};ae.getRootNode&&(re=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(ne)===e.ownerDocument});var ie=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&re(e)&&"none"===b.css(e,"display")};function se(e,t,o,a){var r,n,i=20,s=a?function(){return a.cur()}:function(){return b.css(e,t,"")},l=s(),c=o&&o[3]||(b.cssNumber[t]?"":"px"),d=e.nodeType&&(b.cssNumber[t]||"px"!==c&&+l)&&te.exec(b.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;i--;)b.style(e,t,d+c),(1-n)*(1-(n=s()/l||.5))<=0&&(i=0),d/=n;d*=2,b.style(e,t,d+c),o=o||[]}return o&&(d=+d||+l||0,r=o[1]?d+(o[1]+1)*o[2]:+o[2],a&&(a.unit=c,a.start=d,a.end=r)),r}var le={};function ce(e){var t,o=e.ownerDocument,a=e.nodeName,r=le[a];return r||(t=o.body.appendChild(o.createElement(a)),r=b.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),le[a]=r,r)}function de(e,t){for(var o,a,r=[],n=0,i=e.length;n<i;n++)(a=e[n]).style&&(o=a.style.display,t?("none"===o&&(r[n]=V.get(a,"display")||null,r[n]||(a.style.display="")),""===a.style.display&&ie(a)&&(r[n]=ce(a))):"none"!==o&&(r[n]="none",V.set(a,"display",o)));for(n=0;n<i;n++)null!=r[n]&&(e[n].style.display=r[n]);return e}b.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ie(this)?b(this).show():b(this).hide()}))}});var ue,fe,pe=/^(?:checkbox|radio)$/i,he=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;ue=m.createDocumentFragment().appendChild(m.createElement("div")),(fe=m.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ue.appendChild(fe),p.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="<option></option>",p.option=!!ue.lastChild;var me={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 ve(e,t){var o;return o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&Q(e,t)?b.merge([e],o):o}function ye(e,t){for(var o=0,a=e.length;o<a;o++)V.set(e[o],"globalEval",!t||V.get(t[o],"globalEval"))}me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td,p.option||(me.optgroup=me.option=[1,"<select multiple='multiple'>","</select>"]);var _e=/<|&#?\w+;/;function je(e,t,o,a,r){for(var n,i,s,l,c,d,u=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((n=e[p])||0===n)if("object"===_(n))b.merge(f,n.nodeType?[n]:n);else if(_e.test(n)){for(i=i||u.appendChild(t.createElement("div")),s=(he.exec(n)||["",""])[1].toLowerCase(),l=me[s]||me._default,i.innerHTML=l[1]+b.htmlPrefilter(n)+l[2],d=l[0];d--;)i=i.lastChild;b.merge(f,i.childNodes),(i=u.firstChild).textContent=""}else f.push(t.createTextNode(n));for(u.textContent="",p=0;n=f[p++];)if(a&&b.inArray(n,a)>-1)r&&r.push(n);else if(c=re(n),i=ve(u.appendChild(n),"script"),c&&ye(i),o)for(d=0;n=i[d++];)ge.test(n.type||"")&&o.push(n);return u}var be=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function xe(){return!1}function we(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Oe(e,t,o,a,r,n){var i,s;if("object"==typeof t){for(s in"string"!=typeof o&&(a=a||o,o=void 0),t)Oe(e,s,o,a,t[s],n);return e}if(null==a&&null==r?(r=o,a=o=void 0):null==r&&("string"==typeof o?(r=a,a=void 0):(r=a,a=o,o=void 0)),!1===r)r=xe;else if(!r)return e;return 1===n&&(i=r,r=function(e){return b().off(e),i.apply(this,arguments)},r.guid=i.guid||(i.guid=b.guid++)),e.each((function(){b.event.add(this,t,r,a,o)}))}function We(e,t,o){o?(V.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var a,n,i=V.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=r.call(arguments),V.set(this,t,i),a=o(this,t),this[t](),i!==(n=V.get(this,t))||a?V.set(this,t,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else i.length&&(V.set(this,t,{value:b.event.trigger(b.extend(i[0],b.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===V.get(e,t)&&b.event.add(e,t,Se)}b.event={global:{},add:function(e,t,o,a,r){var n,i,s,l,c,d,u,f,p,h,g,m=V.get(e);if(G(e))for(o.handler&&(o=(n=o).handler,r=n.selector),r&&b.find.matchesSelector(ae,r),o.guid||(o.guid=b.guid++),(l=m.events)||(l=m.events=Object.create(null)),(i=m.handle)||(i=m.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(N)||[""]).length;c--;)p=g=(s=be.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(u=b.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=b.event.special[p]||{},d=b.extend({type:p,origType:g,data:a,handler:o,guid:o.guid,selector:r,needsContext:r&&b.expr.match.needsContext.test(r),namespace:h.join(".")},n),(f=l[p])||((f=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,a,h,i)||e.addEventListener&&e.addEventListener(p,i)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=o.guid)),r?f.splice(f.delegateCount++,0,d):f.push(d),b.event.global[p]=!0)},remove:function(e,t,o,a,r){var n,i,s,l,c,d,u,f,p,h,g,m=V.hasData(e)&&V.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(N)||[""]).length;c--;)if(p=g=(s=be.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(u=b.event.special[p]||{},f=l[p=(a?u.delegateType:u.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=n=f.length;n--;)d=f[n],!r&&g!==d.origType||o&&o.guid!==d.guid||s&&!s.test(d.namespace)||a&&a!==d.selector&&("**"!==a||!d.selector)||(f.splice(n,1),d.selector&&f.delegateCount--,u.remove&&u.remove.call(e,d));i&&!f.length&&(u.teardown&&!1!==u.teardown.call(e,h,m.handle)||b.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)b.event.remove(e,p+t[c],o,a,!0);b.isEmptyObject(l)&&V.remove(e,"handle events")}},dispatch:function(e){var t,o,a,r,n,i,s=new Array(arguments.length),l=b.event.fix(e),c=(V.get(this,"events")||Object.create(null))[l.type]||[],d=b.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(i=b.event.handlers.call(this,l,c),t=0;(r=i[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,o=0;(n=r.handlers[o++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==n.namespace&&!l.rnamespace.test(n.namespace)||(l.handleObj=n,l.data=n.data,void 0!==(a=((b.event.special[n.origType]||{}).handle||n.handler).apply(r.elem,s))&&!1===(l.result=a)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var o,a,r,n,i,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(n=[],i={},o=0;o<l;o++)void 0===i[r=(a=t[o]).selector+" "]&&(i[r]=a.needsContext?b(r,this).index(c)>-1:b.find(r,this,null,[c]).length),i[r]&&n.push(a);n.length&&s.push({elem:c,handlers:n})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:h(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&Q(t,"input")&&We(t,"click",Se),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&Q(t,"input")&&We(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&Q(t,"input")&&V.get(t,"click")||Q(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,o){e.removeEventListener&&e.removeEventListener(t,o)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:xe,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&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.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},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},(function(e,t){b.event.special[e]={setup:function(){return We(this,e,we),!1},trigger:function(){return We(this,e),!0},_default:function(){return!0},delegateType:t}})),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var o,a=this,r=e.relatedTarget,n=e.handleObj;return r&&(r===a||b.contains(a,r))||(e.type=n.origType,o=n.handler.apply(this,arguments),e.type=t),o}}})),b.fn.extend({on:function(e,t,o,a){return Oe(this,e,t,o,a)},one:function(e,t,o,a){return Oe(this,e,t,o,a,1)},off:function(e,t,o){var a,r;if(e&&e.preventDefault&&e.handleObj)return a=e.handleObj,b(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(o=t,t=void 0),!1===o&&(o=xe),this.each((function(){b.event.remove(this,e,o,t)}))}});var Qe=/<script|<style|<link/i,Ce=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Te(e,t){return Q(e,"table")&&Q(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function De(e,t){var o,a,r,n,i,s;if(1===t.nodeType){if(V.hasData(e)&&(s=V.get(e).events))for(r in V.remove(t,"handle events"),s)for(o=0,a=s[r].length;o<a;o++)b.event.add(t,r,s[r][o]);X.hasData(e)&&(n=X.access(e),i=b.extend({},n),X.set(t,i))}}function Ee(e,t){var o=t.nodeName.toLowerCase();"input"===o&&pe.test(e.type)?t.checked=e.checked:"input"!==o&&"textarea"!==o||(t.defaultValue=e.defaultValue)}function Ne(e,t,o,a){t=n(t);var r,i,s,l,c,d,u=0,f=e.length,g=f-1,m=t[0],v=h(m);if(v||f>1&&"string"==typeof m&&!p.checkClone&&Ce.test(m))return e.each((function(r){var n=e.eq(r);v&&(t[0]=m.call(this,r,n.html())),Ne(n,t,o,a)}));if(f&&(i=(r=je(t,e[0].ownerDocument,!1,e,a)).firstChild,1===r.childNodes.length&&(r=i),i||a)){for(l=(s=b.map(ve(r,"script"),Ae)).length;u<f;u++)c=r,u!==g&&(c=b.clone(c,!0,!0),l&&b.merge(s,ve(c,"script"))),o.call(e[u],c,u);if(l)for(d=s[s.length-1].ownerDocument,b.map(s,Le),u=0;u<l;u++)c=s[u],ge.test(c.type||"")&&!V.access(c,"globalEval")&&b.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?b._evalUrl&&!c.noModule&&b._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):y(c.textContent.replace(ke,""),c,d))}return e}function qe(e,t,o){for(var a,r=t?b.filter(t,e):e,n=0;null!=(a=r[n]);n++)o||1!==a.nodeType||b.cleanData(ve(a)),a.parentNode&&(o&&re(a)&&ye(ve(a,"script")),a.parentNode.removeChild(a));return e}b.extend({htmlPrefilter:function(e){return e},clone:function(e,t,o){var a,r,n,i,s=e.cloneNode(!0),l=re(e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(i=ve(s),a=0,r=(n=ve(e)).length;a<r;a++)Ee(n[a],i[a]);if(t)if(o)for(n=n||ve(e),i=i||ve(s),a=0,r=n.length;a<r;a++)De(n[a],i[a]);else De(e,s);return(i=ve(s,"script")).length>0&&ye(i,!l&&ve(e,"script")),s},cleanData:function(e){for(var t,o,a,r=b.event.special,n=0;void 0!==(o=e[n]);n++)if(G(o)){if(t=o[V.expando]){if(t.events)for(a in t.events)r[a]?b.event.remove(o,a):b.removeEvent(o,a,t.handle);o[V.expando]=void 0}o[X.expando]&&(o[X.expando]=void 0)}}}),b.fn.extend({detach:function(e){return qe(this,e,!0)},remove:function(e){return qe(this,e)},text:function(e){return H(this,(function(e){return void 0===e?b.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 Ne(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Te(this,e).appendChild(e)}))},prepend:function(){return Ne(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Te(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ne(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ne(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&&(b.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return b.clone(this,e,t)}))},html:function(e){return H(this,(function(e){var t=this[0]||{},o=0,a=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Qe.test(e)&&!me[(he.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;o<a;o++)1===(t=this[o]||{}).nodeType&&(b.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ne(this,arguments,(function(t){var o=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(ve(this)),o&&o.replaceChild(t,this))}),e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){b.fn[e]=function(e){for(var o,a=[],r=b(e),n=r.length-1,s=0;s<=n;s++)o=s===n?this:this.clone(!0),b(r[s])[t](o),i.apply(a,o.get());return this.pushStack(a)}}));var Ie=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),ze=function(t){var o=t.ownerDocument.defaultView;return o&&o.opener||(o=e),o.getComputedStyle(t)},Be=function(e,t,o){var a,r,n={};for(r in t)n[r]=e.style[r],e.style[r]=t[r];for(r in a=o.call(e),t)e.style[r]=n[r];return a},Re=new RegExp(oe.join("|"),"i");function Fe(e,t,o){var a,r,n,i,s=e.style;return(o=o||ze(e))&&(""!==(i=o.getPropertyValue(t)||o[t])||re(e)||(i=b.style(e,t)),!p.pixelBoxStyles()&&Ie.test(i)&&Re.test(t)&&(a=s.width,r=s.minWidth,n=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=o.width,s.width=a,s.minWidth=r,s.maxWidth=n)),void 0!==i?i+"":i}function He(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(c).appendChild(d);var t=e.getComputedStyle(d);a="1%"!==t.top,l=12===o(t.marginLeft),d.style.right="60%",i=36===o(t.right),r=36===o(t.width),d.style.position="absolute",n=12===o(d.offsetWidth/3),ae.removeChild(c),d=null}}function o(e){return Math.round(parseFloat(e))}var a,r,n,i,s,l,c=m.createElement("div"),d=m.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===d.style.backgroundClip,b.extend(p,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),i},pixelPosition:function(){return t(),a},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),n},reliableTrDimensions:function(){var t,o,a,r;return null==s&&(t=m.createElement("table"),o=m.createElement("tr"),a=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",o.style.cssText="border:1px solid",o.style.height="1px",a.style.height="9px",a.style.display="block",ae.appendChild(t).appendChild(o).appendChild(a),r=e.getComputedStyle(o),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===o.offsetHeight,ae.removeChild(t)),s}}))}();var Me=["Webkit","Moz","ms"],$e=m.createElement("div").style,Pe={};function Ue(e){var t=b.cssProps[e]||Pe[e];return t||(e in $e?e:Pe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),o=Me.length;o--;)if((e=Me[o]+t)in $e)return e}(e)||e)}var Ge=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"};function Ke(e,t,o){var a=te.exec(t);return a?Math.max(0,a[2]-(o||0))+(a[3]||"px"):t}function Ye(e,t,o,a,r,n){var i="width"===t?1:0,s=0,l=0;if(o===(a?"border":"content"))return 0;for(;i<4;i+=2)"margin"===o&&(l+=b.css(e,o+oe[i],!0,r)),a?("content"===o&&(l-=b.css(e,"padding"+oe[i],!0,r)),"margin"!==o&&(l-=b.css(e,"border"+oe[i]+"Width",!0,r))):(l+=b.css(e,"padding"+oe[i],!0,r),"padding"!==o?l+=b.css(e,"border"+oe[i]+"Width",!0,r):s+=b.css(e,"border"+oe[i]+"Width",!0,r));return!a&&n>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-n-l-s-.5))||0),l}function Ze(e,t,o){var a=ze(e),r=(!p.boxSizingReliable()||o)&&"border-box"===b.css(e,"boxSizing",!1,a),n=r,i=Fe(e,t,a),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ie.test(i)){if(!o)return i;i="auto"}return(!p.boxSizingReliable()&&r||!p.reliableTrDimensions()&&Q(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===b.css(e,"display",!1,a))&&e.getClientRects().length&&(r="border-box"===b.css(e,"boxSizing",!1,a),(n=s in e)&&(i=e[s])),(i=parseFloat(i)||0)+Ye(e,t,o||(r?"border":"content"),n,a,i)+"px"}function et(e,t,o,a,r){return new et.prototype.init(e,t,o,a,r)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var o=Fe(e,"opacity");return""===o?"1":o}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,o,a){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,n,i,s=U(t),l=Je.test(t),c=e.style;if(l||(t=Ue(s)),i=b.cssHooks[t]||b.cssHooks[s],void 0===o)return i&&"get"in i&&void 0!==(r=i.get(e,!1,a))?r:c[t];"string"===(n=typeof o)&&(r=te.exec(o))&&r[1]&&(o=se(e,t,r),n="number"),null!=o&&o==o&&("number"!==n||l||(o+=r&&r[3]||(b.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==o||0!==t.indexOf("background")||(c[t]="inherit"),i&&"set"in i&&void 0===(o=i.set(e,o,a))||(l?c.setProperty(t,o):c[t]=o))}},css:function(e,t,o,a){var r,n,i,s=U(t);return Je.test(t)||(t=Ue(s)),(i=b.cssHooks[t]||b.cssHooks[s])&&"get"in i&&(r=i.get(e,!0,o)),void 0===r&&(r=Fe(e,t,a)),"normal"===r&&t in Xe&&(r=Xe[t]),""===o||o?(n=parseFloat(r),!0===o||isFinite(n)?n||0:r):r}}),b.each(["height","width"],(function(e,t){b.cssHooks[t]={get:function(e,o,a){if(o)return!Ge.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,a):Be(e,Ve,(function(){return Ze(e,t,a)}))},set:function(e,o,a){var r,n=ze(e),i=!p.scrollboxSize()&&"absolute"===n.position,s=(i||a)&&"border-box"===b.css(e,"boxSizing",!1,n),l=a?Ye(e,t,a,s,n):0;return s&&i&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(n[t])-Ye(e,t,"border",!1,n)-.5)),l&&(r=te.exec(o))&&"px"!==(r[3]||"px")&&(e.style[t]=o,o=b.css(e,t)),Ke(0,o,l)}}})),b.cssHooks.marginLeft=He(p.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Fe(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),b.each({margin:"",padding:"",border:"Width"},(function(e,t){b.cssHooks[e+t]={expand:function(o){for(var a=0,r={},n="string"==typeof o?o.split(" "):[o];a<4;a++)r[e+oe[a]+t]=n[a]||n[a-2]||n[0];return r}},"margin"!==e&&(b.cssHooks[e+t].set=Ke)})),b.fn.extend({css:function(e,t){return H(this,(function(e,t,o){var a,r,n={},i=0;if(Array.isArray(t)){for(a=ze(e),r=t.length;i<r;i++)n[t[i]]=b.css(e,t[i],!1,a);return n}return void 0!==o?b.style(e,t,o):b.css(e,t)}),e,t,arguments.length>1)}}),b.Tween=et,et.prototype={constructor:et,init:function(e,t,o,a,r,n){this.elem=e,this.prop=o,this.easing=r||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=n||(b.cssNumber[o]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,o=et.propHooks[this.prop];return this.options.duration?this.pos=t=b.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),o&&o.set?o.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.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=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[Ue(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=et.prototype.init,b.fx.step={};var tt,ot,at=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function nt(){ot&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,b.fx.interval),b.fx.tick())}function it(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function st(e,t){var o,a=0,r={height:e};for(t=t?1:0;a<4;a+=2-t)r["margin"+(o=oe[a])]=r["padding"+o]=e;return t&&(r.opacity=r.width=e),r}function lt(e,t,o){for(var a,r=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),n=0,i=r.length;n<i;n++)if(a=r[n].call(o,t,e))return a}function ct(e,t,o){var a,r,n=0,i=ct.prefilters.length,s=b.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=tt||it(),o=Math.max(0,c.startTime+c.duration-t),a=1-(o/c.duration||0),n=0,i=c.tweens.length;n<i;n++)c.tweens[n].run(a);return s.notifyWith(e,[c,a,o]),a<1&&i?o:(i||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},o),originalProperties:t,originalOptions:o,startTime:tt||it(),duration:o.duration,tweens:[],createTween:function(t,o){var a=b.Tween(e,c.opts,t,o,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(a),a},stop:function(t){var o=0,a=t?c.tweens.length:0;if(r)return this;for(r=!0;o<a;o++)c.tweens[o].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),d=c.props;for(!function(e,t){var o,a,r,n,i;for(o in e)if(r=t[a=U(o)],n=e[o],Array.isArray(n)&&(r=n[1],n=e[o]=n[0]),o!==a&&(e[a]=n,delete e[o]),(i=b.cssHooks[a])&&"expand"in i)for(o in n=i.expand(n),delete e[a],n)o in e||(e[o]=n[o],t[o]=r);else t[a]=r}(d,c.opts.specialEasing);n<i;n++)if(a=ct.prefilters[n].call(c,e,d,c.opts))return h(a.stop)&&(b._queueHooks(c.elem,c.opts.queue).stop=a.stop.bind(a)),a;return b.map(d,lt,c),h(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),b.fx.timer(b.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}b.Animation=b.extend(ct,{tweeners:{"*":[function(e,t){var o=this.createTween(e,t);return se(o.elem,e,te.exec(t),o),o}]},tweener:function(e,t){h(e)?(t=e,e=["*"]):e=e.match(N);for(var o,a=0,r=e.length;a<r;a++)o=e[a],ct.tweeners[o]=ct.tweeners[o]||[],ct.tweeners[o].unshift(t)},prefilters:[function(e,t,o){var a,r,n,i,s,l,c,d,u="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&ie(e),m=V.get(e,"fxshow");for(a in o.queue||(null==(i=b._queueHooks(e,"fx")).unqueued&&(i.unqueued=0,s=i.empty.fire,i.empty.fire=function(){i.unqueued||s()}),i.unqueued++,f.always((function(){f.always((function(){i.unqueued--,b.queue(e,"fx").length||i.empty.fire()}))}))),t)if(r=t[a],at.test(r)){if(delete t[a],n=n||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[a])continue;g=!0}p[a]=m&&m[a]||b.style(e,a)}if((l=!b.isEmptyObject(t))||!b.isEmptyObject(p))for(a in u&&1===e.nodeType&&(o.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=V.get(e,"display")),"none"===(d=b.css(e,"display"))&&(c?d=c:(de([e],!0),c=e.style.display||c,d=b.css(e,"display"),de([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===b.css(e,"float")&&(l||(f.done((function(){h.display=c})),null==c&&(d=h.display,c="none"===d?"":d)),h.display="inline-block")),o.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=o.overflow[0],h.overflowX=o.overflow[1],h.overflowY=o.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=V.access(e,"fxshow",{display:c}),n&&(m.hidden=!g),g&&de([e],!0),f.done((function(){for(a in g||de([e]),V.remove(e,"fxshow"),p)b.style(e,a,p[a])}))),l=lt(g?m[a]:0,a,f),a in m||(m[a]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ct.prefilters.unshift(e):ct.prefilters.push(e)}}),b.speed=function(e,t,o){var a=e&&"object"==typeof e?b.extend({},e):{complete:o||!o&&t||h(e)&&e,duration:e,easing:o&&t||t&&!h(t)&&t};return b.fx.off?a.duration=0:"number"!=typeof a.duration&&(a.duration in b.fx.speeds?a.duration=b.fx.speeds[a.duration]:a.duration=b.fx.speeds._default),null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){h(a.old)&&a.old.call(this),a.queue&&b.dequeue(this,a.queue)},a},b.fn.extend({fadeTo:function(e,t,o,a){return this.filter(ie).css("opacity",0).show().end().animate({opacity:t},e,o,a)},animate:function(e,t,o,a){var r=b.isEmptyObject(e),n=b.speed(t,o,a),i=function(){var t=ct(this,b.extend({},e),n);(r||V.get(this,"finish"))&&t.stop(!0)};return i.finish=i,r||!1===n.queue?this.each(i):this.queue(n.queue,i)},stop:function(e,t,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof e&&(o=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",n=b.timers,i=V.get(this);if(r)i[r]&&i[r].stop&&a(i[r]);else for(r in i)i[r]&&i[r].stop&&rt.test(r)&&a(i[r]);for(r=n.length;r--;)n[r].elem!==this||null!=e&&n[r].queue!==e||(n[r].anim.stop(o),t=!1,n.splice(r,1));!t&&o||b.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,o=V.get(this),a=o[e+"queue"],r=o[e+"queueHooks"],n=b.timers,i=a?a.length:0;for(o.finish=!0,b.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=n.length;t--;)n[t].elem===this&&n[t].queue===e&&(n[t].anim.stop(!0),n.splice(t,1));for(t=0;t<i;t++)a[t]&&a[t].finish&&a[t].finish.call(this);delete o.finish}))}}),b.each(["toggle","show","hide"],(function(e,t){var o=b.fn[t];b.fn[t]=function(e,a,r){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(st(t,!0),e,a,r)}})),b.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){b.fn[e]=function(e,o,a){return this.animate(t,e,o,a)}})),b.timers=[],b.fx.tick=function(){var e,t=0,o=b.timers;for(tt=Date.now();t<o.length;t++)(e=o[t])()||o[t]!==e||o.splice(t--,1);o.length||b.fx.stop(),tt=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){ot||(ot=!0,nt())},b.fx.stop=function(){ot=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,o){return t=b.fx&&b.fx.speeds[t]||t,o=o||"fx",this.queue(o,(function(o,a){var r=e.setTimeout(o,t);a.stop=function(){e.clearTimeout(r)}}))},function(){var e=m.createElement("input"),t=m.createElement("select").appendChild(m.createElement("option"));e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=t.selected,(e=m.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}();var dt,ut=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return H(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){b.removeAttr(this,e)}))}}),b.extend({attr:function(e,t,o){var a,r,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return void 0===e.getAttribute?b.prop(e,t,o):(1===n&&b.isXMLDoc(e)||(r=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?dt:void 0)),void 0!==o?null===o?void b.removeAttr(e,t):r&&"set"in r&&void 0!==(a=r.set(e,o,t))?a:(e.setAttribute(t,o+""),o):r&&"get"in r&&null!==(a=r.get(e,t))?a:null==(a=b.find.attr(e,t))?void 0:a)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&Q(e,"input")){var o=e.value;return e.setAttribute("type",t),o&&(e.value=o),t}}}},removeAttr:function(e,t){var o,a=0,r=t&&t.match(N);if(r&&1===e.nodeType)for(;o=r[a++];)e.removeAttribute(o)}}),dt={set:function(e,t,o){return!1===t?b.removeAttr(e,o):e.setAttribute(o,o),o}},b.each(b.expr.match.bool.source.match(/\w+/g),(function(e,t){var o=ut[t]||b.find.attr;ut[t]=function(e,t,a){var r,n,i=t.toLowerCase();return a||(n=ut[i],ut[i]=r,r=null!=o(e,t,a)?i:null,ut[i]=n),r}}));var ft=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function ht(e){return(e.match(N)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(N)||[]}b.fn.extend({prop:function(e,t){return H(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[b.propFix[e]||e]}))}}),b.extend({prop:function(e,t,o){var a,r,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&b.isXMLDoc(e)||(t=b.propFix[t]||t,r=b.propHooks[t]),void 0!==o?r&&"set"in r&&void 0!==(a=r.set(e,o,t))?a:e[t]=o:r&&"get"in r&&null!==(a=r.get(e,t))?a:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(b.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)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){b.propFix[this.toLowerCase()]=this})),b.fn.extend({addClass:function(e){var t,o,a,r,n,i,s,l=0;if(h(e))return this.each((function(t){b(this).addClass(e.call(this,t,gt(this)))}));if((t=mt(e)).length)for(;o=this[l++];)if(r=gt(o),a=1===o.nodeType&&" "+ht(r)+" "){for(i=0;n=t[i++];)a.indexOf(" "+n+" ")<0&&(a+=n+" ");r!==(s=ht(a))&&o.setAttribute("class",s)}return this},removeClass:function(e){var t,o,a,r,n,i,s,l=0;if(h(e))return this.each((function(t){b(this).removeClass(e.call(this,t,gt(this)))}));if(!arguments.length)return this.attr("class","");if((t=mt(e)).length)for(;o=this[l++];)if(r=gt(o),a=1===o.nodeType&&" "+ht(r)+" "){for(i=0;n=t[i++];)for(;a.indexOf(" "+n+" ")>-1;)a=a.replace(" "+n+" "," ");r!==(s=ht(a))&&o.setAttribute("class",s)}return this},toggleClass:function(e,t){var o=typeof e,a="string"===o||Array.isArray(e);return"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):h(e)?this.each((function(o){b(this).toggleClass(e.call(this,o,gt(this),t),t)})):this.each((function(){var t,r,n,i;if(a)for(r=0,n=b(this),i=mt(e);t=i[r++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==e&&"boolean"!==o||((t=gt(this))&&V.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":V.get(this,"__className__")||""))}))},hasClass:function(e){var t,o,a=0;for(t=" "+e+" ";o=this[a++];)if(1===o.nodeType&&(" "+ht(gt(o))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;b.fn.extend({val:function(e){var t,o,a,r=this[0];return arguments.length?(a=h(e),this.each((function(o){var r;1===this.nodeType&&(null==(r=a?e.call(this,o,b(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=b.map(r,(function(e){return null==e?"":e+""}))),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=b.valHooks[r.type]||b.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(o=t.get(r,"value"))?o:"string"==typeof(o=r.value)?o.replace(vt,""):null==o?"":o:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:ht(b.text(e))}},select:{get:function(e){var t,o,a,r=e.options,n=e.selectedIndex,i="select-one"===e.type,s=i?null:[],l=i?n+1:r.length;for(a=n<0?l:i?n:0;a<l;a++)if(((o=r[a]).selected||a===n)&&!o.disabled&&(!o.parentNode.disabled||!Q(o.parentNode,"optgroup"))){if(t=b(o).val(),i)return t;s.push(t)}return s},set:function(e,t){for(var o,a,r=e.options,n=b.makeArray(t),i=r.length;i--;)((a=r[i]).selected=b.inArray(b.valHooks.option.get(a),n)>-1)&&(o=!0);return o||(e.selectedIndex=-1),n}}}}),b.each(["radio","checkbox"],(function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},p.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),p.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,o,a,r){var n,i,s,l,c,u,f,p,v=[a||m],y=d.call(t,"type")?t.type:t,_=d.call(t,"namespace")?t.namespace.split("."):[];if(i=p=s=a=a||m,3!==a.nodeType&&8!==a.nodeType&&!yt.test(y+b.event.triggered)&&(y.indexOf(".")>-1&&(_=y.split("."),y=_.shift(),_.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[b.expando]?t:new b.Event(y,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=_.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=a),o=null==o?[t]:b.makeArray(o,[t]),f=b.event.special[y]||{},r||!f.trigger||!1!==f.trigger.apply(a,o))){if(!r&&!f.noBubble&&!g(a)){for(l=f.delegateType||y,yt.test(l+y)||(i=i.parentNode);i;i=i.parentNode)v.push(i),s=i;s===(a.ownerDocument||m)&&v.push(s.defaultView||s.parentWindow||e)}for(n=0;(i=v[n++])&&!t.isPropagationStopped();)p=i,t.type=n>1?l:f.bindType||y,(u=(V.get(i,"events")||Object.create(null))[t.type]&&V.get(i,"handle"))&&u.apply(i,o),(u=c&&i[c])&&u.apply&&G(i)&&(t.result=u.apply(i,o),!1===t.result&&t.preventDefault());return t.type=y,r||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(v.pop(),o)||!G(a)||c&&h(a[y])&&!g(a)&&((s=a[c])&&(a[c]=null),b.event.triggered=y,t.isPropagationStopped()&&p.addEventListener(y,_t),a[y](),t.isPropagationStopped()&&p.removeEventListener(y,_t),b.event.triggered=void 0,s&&(a[c]=s)),t.result}},simulate:function(e,t,o){var a=b.extend(new b.Event,o,{type:e,isSimulated:!0});b.event.trigger(a,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each((function(){b.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var o=this[0];if(o)return b.event.trigger(e,t,o,!0)}}),p.focusin||b.each({focus:"focusin",blur:"focusout"},(function(e,t){var o=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var a=this.ownerDocument||this.document||this,r=V.access(a,t);r||a.addEventListener(e,o,!0),V.access(a,t,(r||0)+1)},teardown:function(){var a=this.ownerDocument||this.document||this,r=V.access(a,t)-1;r?V.access(a,t,r):(a.removeEventListener(e,o,!0),V.remove(a,t))}}}));var jt=e.location,bt={guid:Date.now()},St=/\?/;b.parseXML=function(t){var o,a;if(!t||"string"!=typeof t)return null;try{o=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return a=o&&o.getElementsByTagName("parsererror")[0],o&&!a||b.error("Invalid XML: "+(a?b.map(a.childNodes,(function(e){return e.textContent})).join("\n"):t)),o};var xt=/\[\]$/,wt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Wt=/^(?:input|select|textarea|keygen)/i;function Qt(e,t,o,a){var r;if(Array.isArray(t))b.each(t,(function(t,r){o||xt.test(e)?a(e,r):Qt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,o,a)}));else if(o||"object"!==_(t))a(e,t);else for(r in t)Qt(e+"["+r+"]",t[r],o,a)}b.param=function(e,t){var o,a=[],r=function(e,t){var o=h(t)?t():t;a[a.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==o?"":o)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,(function(){r(this.name,this.value)}));else for(o in e)Qt(o,e[o],t,r);return a.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Wt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var o=b(this).val();return null==o?null:Array.isArray(o)?b.map(o,(function(e){return{name:t.name,value:e.replace(wt,"\r\n")}})):{name:t.name,value:o.replace(wt,"\r\n")}})).get()}});var Ct=/%20/g,kt=/#.*$/,Tt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Dt=/^\/\//,Et={},Nt={},qt="*/".concat("*"),It=m.createElement("a");function zt(e){return function(t,o){"string"!=typeof t&&(o=t,t="*");var a,r=0,n=t.toLowerCase().match(N)||[];if(h(o))for(;a=n[r++];)"+"===a[0]?(a=a.slice(1)||"*",(e[a]=e[a]||[]).unshift(o)):(e[a]=e[a]||[]).push(o)}}function Bt(e,t,o,a){var r={},n=e===Nt;function i(s){var l;return r[s]=!0,b.each(e[s]||[],(function(e,s){var c=s(t,o,a);return"string"!=typeof c||n||r[c]?n?!(l=c):void 0:(t.dataTypes.unshift(c),i(c),!1)})),l}return i(t.dataTypes[0])||!r["*"]&&i("*")}function Rt(e,t){var o,a,r=b.ajaxSettings.flatOptions||{};for(o in t)void 0!==t[o]&&((r[o]?e:a||(a={}))[o]=t[o]);return a&&b.extend(!0,e,a),e}It.href=jt.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(jt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,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":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Rt(Rt(e,b.ajaxSettings),t):Rt(b.ajaxSettings,e)},ajaxPrefilter:zt(Et),ajaxTransport:zt(Nt),ajax:function(t,o){"object"==typeof t&&(o=t,t=void 0),o=o||{};var a,r,n,i,s,l,c,d,u,f,p=b.ajaxSetup({},o),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?b(h):b.event,v=b.Deferred(),y=b.Callbacks("once memory"),_=p.statusCode||{},j={},S={},x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(c){if(!i)for(i={};t=At.exec(n);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?n:null},setRequestHeader:function(e,t){return null==c&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,j[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)w.always(e[w.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||x;return a&&a.abort(t),O(0,t),this}};if(v.promise(w),p.url=((t||p.url||jt.href)+"").replace(Dt,jt.protocol+"//"),p.type=o.method||o.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(N)||[""],null==p.crossDomain){l=m.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=It.protocol+"//"+It.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=b.param(p.data,p.traditional)),Bt(Et,p,o,w),c)return w;for(u in(d=b.event&&p.global)&&0==b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Lt.test(p.type),r=p.url.replace(kt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ct,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(St.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Tt,"$1"),f=(St.test(r)?"&":"?")+"_="+bt.guid+++f),p.url=r+f),p.ifModified&&(b.lastModified[r]&&w.setRequestHeader("If-Modified-Since",b.lastModified[r]),b.etag[r]&&w.setRequestHeader("If-None-Match",b.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||o.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+qt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(h,w,p)||c))return w.abort();if(x="abort",y.add(p.complete),w.done(p.success),w.fail(p.error),a=Bt(Nt,p,o,w)){if(w.readyState=1,d&&g.trigger("ajaxSend",[w,p]),c)return w;p.async&&p.timeout>0&&(s=e.setTimeout((function(){w.abort("timeout")}),p.timeout));try{c=!1,a.send(j,O)}catch(e){if(c)throw e;O(-1,e)}}else O(-1,"No Transport");function O(t,o,i,l){var u,f,m,j,S,x=o;c||(c=!0,s&&e.clearTimeout(s),a=void 0,n=l||"",w.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(j=function(e,t,o){for(var a,r,n,i,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader("Content-Type"));if(a)for(r in s)if(s[r]&&s[r].test(a)){l.unshift(r);break}if(l[0]in o)n=l[0];else{for(r in o){if(!l[0]||e.converters[r+" "+l[0]]){n=r;break}i||(i=r)}n=n||i}if(n)return n!==l[0]&&l.unshift(n),o[n]}(p,w,i)),!u&&b.inArray("script",p.dataTypes)>-1&&b.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),j=function(e,t,o,a){var r,n,i,s,l,c={},d=e.dataTypes.slice();if(d[1])for(i in e.converters)c[i.toLowerCase()]=e.converters[i];for(n=d.shift();n;)if(e.responseFields[n]&&(o[e.responseFields[n]]=t),!l&&a&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=n,n=d.shift())if("*"===n)n=l;else if("*"!==l&&l!==n){if(!(i=c[l+" "+n]||c["* "+n]))for(r in c)if((s=r.split(" "))[1]===n&&(i=c[l+" "+s[0]]||c["* "+s[0]])){!0===i?i=c[r]:!0!==c[r]&&(n=s[0],d.unshift(s[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(e){return{state:"parsererror",error:i?e:"No conversion from "+l+" to "+n}}}return{state:"success",data:t}}(p,j,w,u),u?(p.ifModified&&((S=w.getResponseHeader("Last-Modified"))&&(b.lastModified[r]=S),(S=w.getResponseHeader("etag"))&&(b.etag[r]=S)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=j.state,f=j.data,u=!(m=j.error))):(m=x,!t&&x||(x="error",t<0&&(t=0))),w.status=t,w.statusText=(o||x)+"",u?v.resolveWith(h,[f,x,w]):v.rejectWith(h,[w,x,m]),w.statusCode(_),_=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[w,p,u?f:m]),y.fireWith(h,[w,x]),d&&(g.trigger("ajaxComplete",[w,p]),--b.active||b.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,o){return b.get(e,t,o,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],(function(e,t){b[t]=function(e,o,a,r){return h(o)&&(r=r||a,a=o,o=void 0),b.ajax(b.extend({url:e,type:t,dataType:r,data:o,success:a},b.isPlainObject(e)&&e))}})),b.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),b._evalUrl=function(e,t,o){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t,o)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return h(e)?this.each((function(t){b(this).wrapInner(e.call(this,t))})):this.each((function(){var t=b(this),o=t.contents();o.length?o.wrapAll(e):t.append(e)}))},wrap:function(e){var t=h(e);return this.each((function(o){b(this).wrapAll(t?e.call(this,o):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){b(this).replaceWith(this.childNodes)})),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ft={0:200,1223:204},Ht=b.ajaxSettings.xhr();p.cors=!!Ht&&"withCredentials"in Ht,p.ajax=Ht=!!Ht,b.ajaxTransport((function(t){var o,a;if(p.cors||Ht&&!t.crossDomain)return{send:function(r,n){var i,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)s[i]=t.xhrFields[i];for(i in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(i,r[i]);o=function(e){return function(){o&&(o=a=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?n(0,"error"):n(s.status,s.statusText):n(Ft[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=o(),a=s.onerror=s.ontimeout=o("error"),void 0!==s.onabort?s.onabort=a:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){o&&a()}))},o=o("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}})),b.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),b.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 b.globalEval(e),e}}}),b.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),b.ajaxTransport("script",(function(e){var t,o;if(e.crossDomain||e.scriptAttrs)return{send:function(a,r){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",o=function(e){t.remove(),o=null,e&&r("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){o&&o()}}}));var Mt,$t=[],Pt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||b.expando+"_"+bt.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",(function(t,o,a){var r,n,i,s=!1!==t.jsonp&&(Pt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Pt,"$1"+r):!1!==t.jsonp&&(t.url+=(St.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return i||b.error(r+" was not called"),i[0]},t.dataTypes[0]="json",n=e[r],e[r]=function(){i=arguments},a.always((function(){void 0===n?b(e).removeProp(r):e[r]=n,t[r]&&(t.jsonpCallback=o.jsonpCallback,$t.push(r)),i&&h(n)&&n(i[0]),i=n=void 0})),"script"})),p.createHTMLDocument=((Mt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Mt.childNodes.length),b.parseHTML=function(e,t,o){return"string"!=typeof e?[]:("boolean"==typeof t&&(o=t,t=!1),t||(p.createHTMLDocument?((a=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(a)):t=m),n=!o&&[],(r=C.exec(e))?[t.createElement(r[1])]:(r=je([e],t,n),n&&n.length&&b(n).remove(),b.merge([],r.childNodes)));var a,r,n},b.fn.load=function(e,t,o){var a,r,n,i=this,s=e.indexOf(" ");return s>-1&&(a=ht(e.slice(s)),e=e.slice(0,s)),h(t)?(o=t,t=void 0):t&&"object"==typeof t&&(r="POST"),i.length>0&&b.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){n=arguments,i.html(a?b("<div>").append(b.parseHTML(e)).find(a):e)})).always(o&&function(e,t){i.each((function(){o.apply(this,n||[e.responseText,t,e])}))}),this},b.expr.pseudos.animated=function(e){return b.grep(b.timers,(function(t){return e===t.elem})).length},b.offset={setOffset:function(e,t,o){var a,r,n,i,s,l,c=b.css(e,"position"),d=b(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),n=b.css(e,"top"),l=b.css(e,"left"),("absolute"===c||"fixed"===c)&&(n+l).indexOf("auto")>-1?(i=(a=d.position()).top,r=a.left):(i=parseFloat(n)||0,r=parseFloat(l)||0),h(t)&&(t=t.call(e,o,b.extend({},s))),null!=t.top&&(u.top=t.top-s.top+i),null!=t.left&&(u.left=t.left-s.left+r),"using"in t?t.using.call(e,u):d.css(u)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){b.offset.setOffset(this,e,t)}));var t,o,a=this[0];return a?a.getClientRects().length?(t=a.getBoundingClientRect(),o=a.ownerDocument.defaultView,{top:t.top+o.pageYOffset,left:t.left+o.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,o,a=this[0],r={top:0,left:0};if("fixed"===b.css(a,"position"))t=a.getBoundingClientRect();else{for(t=this.offset(),o=a.ownerDocument,e=a.offsetParent||o.documentElement;e&&(e===o.body||e===o.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==a&&1===e.nodeType&&((r=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),r.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-b.css(a,"marginTop",!0),left:t.left-r.left-b.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||ae}))}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var o="pageYOffset"===t;b.fn[e]=function(a){return H(this,(function(e,a,r){var n;if(g(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===r)return n?n[t]:e[a];n?n.scrollTo(o?n.pageXOffset:r,o?r:n.pageYOffset):e[a]=r}),e,a,arguments.length)}})),b.each(["top","left"],(function(e,t){b.cssHooks[t]=He(p.pixelPosition,(function(e,o){if(o)return o=Fe(e,t),Ie.test(o)?b(e).position()[t]+"px":o}))})),b.each({Height:"height",Width:"width"},(function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},(function(o,a){b.fn[a]=function(r,n){var i=arguments.length&&(o||"boolean"!=typeof r),s=o||(!0===r||!0===n?"margin":"border");return H(this,(function(t,o,r){var n;return g(t)?0===a.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+e],n["scroll"+e],t.body["offset"+e],n["offset"+e],n["client"+e])):void 0===r?b.css(t,o,s):b.style(t,o,r,s)}),t,i?r:void 0,i)}}))})),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){b.fn[t]=function(e){return this.on(t,e)}})),b.fn.extend({bind:function(e,t,o){return this.on(e,null,t,o)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,o,a){return this.on(t,e,o,a)},undelegate:function(e,t,o){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",o)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.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,t){b.fn[t]=function(e,o){return arguments.length>0?this.on(t,null,e,o):this.trigger(t)}}));var Ut=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;b.proxy=function(e,t){var o,a,n;if("string"==typeof t&&(o=e[t],t=e,e=o),h(e))return a=r.call(arguments,2),n=function(){return e.apply(t||this,a.concat(r.call(arguments)))},n.guid=e.guid=e.guid||b.guid++,n},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=Q,b.isFunction=h,b.isWindow=g,b.camelCase=U,b.type=_,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},b.trim=function(e){return null==e?"":(e+"").replace(Ut,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return b}));var Gt=e.jQuery,Jt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Jt),t&&e.jQuery===b&&(e.jQuery=Gt),b},void 0===t&&(e.jQuery=e.$=b),b})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var o=e.Cookies,a=e.Cookies=t();a.noConflict=function(){return e.Cookies=o,a}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)e[a]=o[a]}return e}var t=function t(o,a){function r(t,r,n){if("undefined"!=typeof document){"number"==typeof(n=e({},a,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in n)n[s]&&(i+="; "+s,!0!==n[s]&&(i+="="+n[s].split(";")[0]));return document.cookie=t+"="+o.write(r,t)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],a={},r=0;r<t.length;r++){var n=t[r].split("="),i=n.slice(1).join("=");try{var s=decodeURIComponent(n[0]);if(a[s]=o.read(i,s),e===s)break}catch(e){}}return e?a[e]:a}},remove:function(t,o){r(t,"",e({},o,{expires:-1}))},withAttributes:function(o){return t(this.converter,e({},this.attributes,o))},withConverter:function(o){return t(e({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(a)},converter:{value:Object.freeze(o)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t})),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){if(null==this)throw new TypeError("Array.prototype.forEach called on null or undefined");var o,a,r=Object(this),n=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(o=t),a=0;a<n;){var i;a in r&&(i=r[a],e.call(o,i,a,r)),a++}}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(e){"use strict";e.SOW={init:function(){e(document).ready((function(){!0===e.SOW.config.sow__debug_enable&&(e.SOW.helper.consoleLog("++++++++++++++++++++++++++++++"),e.SOW.helper.consoleLog("+ SOW Controller : 1.1.0","color: #ff0000; font-size: 13px;"),e.SOW.helper.consoleLog("++++++++++++++++++++++++++++++")),e.SOW.globals.js_location=e.SOW.helper.jsLocation(),e.SOW.globals.css_location=e.SOW.helper.cssLocation(),e.SOW.onresize(),e.fn.modal?e.SOW.reinit():e.SOW.helper.loadScript([e.SOW.globals.js_location+"vendor_bundle.min.js"],!1,!0).done((function(){e.SOW.helper.consoleLog("Vendor Bunde: Dynamically loaded!"),e.SOW.reinit()}))}))},globals:{direction:e("body").css("direction"),width:e(window).width(),height:e(window).height(),is_modern_browser:"querySelector"in document&&"localStorage"in window&&"addEventListener"in window,is_mobile:e(window).width()<993,is_admin:!!e("body").hasClass("layout-admin"),ajax_container:"body",page_first_load:!0,js_location:"",css_location:"",cookie_secure:"SameSite=None; secure",breakpoints:{sm:576,md:768,lg:992,xl:1200},elBody:e("body"),elHeader:e("#header").length>0?e("#header"):null,elAside:e("#aside-main").length>0?e("#aside-main"):null},core:{},vendor:{},helper:{},custom:{},onresize:function(){jQuery(window).resize((function(){window.afterResizeApp&&clearTimeout(window.afterResizeApp),window.afterResizeApp=setTimeout((function(){e.SOW.globals.width=jQuery(window).width(),e.SOW.globals.height=jQuery(window).height(),e.SOW.globals.is_mobile=e(window).width()<993}),150)}))},reinit:function(t){e.SOW.globals.ajax_container=e.SOW.helper.check_var(t)||"body",e(e.SOW.globals.ajax_container+" .toast").toast("show"),e(e.SOW.globals.ajax_container+" [data-bs-toggle=tooltip],"+e.SOW.globals.ajax_container+" [data-tooltip]").tooltip("dispose").tooltip({container:"body"==e.SOW.globals.ajax_container?"html":e.SOW.globals.ajax_container}).on("focus",(function(){e(this).blur()}));[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map((function(e){return new bootstrap.Popover(e)}));for(var o in e(e.SOW.globals.ajax_container+" .carousel").carousel("dispose").carousel({direction:"ltr"==e.SOW.globals.direction?"right":"left"}),e.SOW.config.autoinit)!1===e.SOW.globals.page_first_load&&!1===e.SOW.config.autoinit[o][3]||e.SOW.helper.executeFunctionByName(e.SOW.config.autoinit[o][0],window,e.SOW.config.autoinit[o][1],e.SOW.config.autoinit[o][2]);"function"==typeof global_callback&&e.SOW.helper.executeFunctionByName("global_callback",window,e.SOW.globals.ajax_container),!0===e.SOW.globals.page_first_load&&jQuery("#page_preload").fadeOut(1e3,(function(){jQuery(this).remove()})),e.SOW.globals.page_first_load=!1,e.SOW.globals.ajax_container="body"}},e.SOW.init()}(jQuery),function(e){"use strict";jQuery.SOW.config={sow__debug_enable:!1,sow__icon_loading:"fi fi-circle-spin fi-spin",sow__icon_check:"fi fi-check",sow__icon_close:"fi fi-close"}}(),function(e){"use strict";e.SOW.helper={config:{},collection:e(),init:function(e,t){},__selector:function(t){var o=t=e.SOW.helper.check_var(t)||"",a=t&&e(t).length>0?e(t):e();if("html"!=e.SOW.globals.ajax_container&&"body"!=e.SOW.globals.ajax_container&&""!=e.SOW.globals.ajax_container){if(t.indexOf(",")>-1)t=t.split(",").join(", "+e.SOW.globals.ajax_container+" ");t=e.SOW.globals.ajax_container+" "+t}return[t,a,o]},check_var:function(e){return void 0!==e?e:null},is_numeric:function(e){return"number"==typeof e||"string"==typeof e&&(""!=(e=""+e.replace(/\s/g,""))&&("."!==e.slice(-1)&&(!isNaN(parseFloat(e))&&isFinite(e))))},loadScript:function(t,o,a){return!0===o?e.SOW.helper.__loadScriptAsync(t,a):e.SOW.helper.__loadScriptOrdered(t,a)},__loadScriptOrdered:function(e,t){var o=jQuery.Deferred();return function a(r){r<e.length?jQuery.ajax({url:e[r],dataType:"script",cache:!1!==t,success:function(){a(r+1)}}):o.resolve()}(0),o},__loadScriptAsync:function(t,o){var a=e.map(t,(function(t){return!1!==o?e.SOW.helper.getScriptCached(t):e.getScript(t)}));return a.push(e.Deferred((function(t){e(t.resolve)}))),e.when.apply(e,a)},getScriptCached:function(t,o){return o=e.extend(o||{},{dataType:"script",cache:!0,url:t}),jQuery.ajax(o)},loadCSS:function(e,t){if("remove"===t)jQuery('head link[href="'+e+'"]').remove();else if("prepend"===t){if(jQuery('head link[href="'+e+'"]').length>0)return;jQuery("head").prepend('<link rel="stylesheet" href="'+e+'">')}else{if(jQuery('head link[href="'+e+'"]').length>0)return;jQuery("head").append('<link rel="stylesheet" href="'+e+'">')}},loadingSpinner:function(t,o,a,r){t=void 0!==t?t:"show",o=null===o?e.SOW.globals.elBody:o,r=void 0!==r?r:null;var n="overlay-dark overlay-opacity-2",i="text-muted";if("icon"==(a=void 0!==a?a:"icon")&&""!=r&&(i=r),"overlay"==a&&""!=r){var s=r.split(":");void 0!==s[0]&&("dark"==s[0]?n="overlay-dark overlay-opacity-2":"light"==s[0]&&(n="overlay-light overlay-opacity-7")),i=void 0!==s[1]?s[1]:i}if("show"===t){if(jQuery("#js_loading_icon").length>0)return void jQuery("#js_loading_icon").remove();var l='<div id="js_loading_icon" class="position-absolute absolute-full '+n+' z-index-9999 text-center"><i class="'+e.SOW.config.sow__icon_loading+" fs-3 "+i+' valign-middle"></i></div>',c='<div id="js_loading_icon" class="position-fixed fixed-bottom w-100 mb-3 z-index-9999 text-center shadow-none"><span class="bg-white d-inline-block px-4 py-1 rounded shadow-lg"><i class="'+e.SOW.config.sow__icon_loading+" fs-3 "+i+'"></i></span></div>',d="overlay"==a?l:c;(o="object"==typeof(o="overlay"==a?o:"body")?o:jQuery(o)).prepend(d)}else jQuery("#js_loading_icon").remove()},executeFunctionByName:function(e,t){t="undefined"!=typeof window?t||window:t||global;for(var o=Array.prototype.slice.call(arguments,2),a=e.split("."),r=a.pop(),n=0;n<a.length;n++)t=t[a[n]];return t[r].apply(t,o)},overlay:function(t){"show"===t?(jQuery("body").append('<div id="overlay-default"></div>'),jQuery("body").addClass("overflow-hidden")):"hide"===t?(jQuery("#overlay-default").unbind().remove(),jQuery("body").removeClass("overflow-hidden")):jQuery("#overlay-default").length>0?e.SOW.helper.__overlay_hide():e.SOW.helper.__overlay_show()},__overlay_show:function(){jQuery("body").append('<div id="overlay-default"></div>'),jQuery("body").addClass("overflow-hidden")},__overlay_hide:function(){jQuery("#overlay-default").unbind().remove(),jQuery("body").removeClass("overflow-hidden")},randomStr:function(e,t){switch(t){case"L":var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";break;case"N":o="0123456789";break;default:o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"}for(var a="",r=o.length,n=0;n<e;n++)a+=o.charAt(Math.floor(Math.random()*r));return a},byte2size:function(e,t,o){o=void 0!==o&&o;if(e<1)return 0+(!1===o)?"B":"";t=(t=void 0!==t?t:2)<0?0:t;var a=Math.floor(Math.log(e)/Math.log(1024)),r=!1===o?" "+["B","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"][a]:0;return parseFloat((e/Math.pow(1024,a)).toFixed(t))+r},byte2kb:function(e){if(e<1)return e;e/=1024;return Math.round(100*e)/100},scrollAnimate:function(t,o,a,r){if(t=void 0!==t?t:"",a=void 0!==a?a:"false",r=void 0!==r?r:400,(o=void 0!==o?o:0)<1&&(e.SOW.globals.elBody.hasClass("header-hide")?o=15:(e.SOW.globals.elBody.hasClass("header-fixed")||e.SOW.globals.elBody.hasClass("header-sticky"))&&(o=e.SOW.globals.elHeader.outerHeight()+15)),"#"!=t&&"#!"!=t&&"javascript:;"!=t)if("#top"==t)jQuery("html, body").animate({scrollTop:e.SOW.globals.elBody.offset().top},r,(function(){"true"==a&&(window.location.hash=t)}));else{if(!jQuery(t).offset())return;jQuery("html, body").animate({scrollTop:jQuery(t).offset().top-parseInt(o)},r,(function(){"true"==a&&(window.location.hash=t)}))}},removeUrlHash:function(e){return e.indexOf("#")>-1?e.replace(/#.*$/,""):e},playSound:function(e){var t=document.createElement("audio");t.setAttribute("src",e),t.setAttribute("autoplay","autoplay"),t.addEventListener("load",(function(){t.play()}),!0)},time_from_ms:function(e,t){var o,a,r,n,i,s,l;switch(l=parseInt(Math.floor(e/1e3)),s=parseInt(Math.floor(l/60)),i=parseInt(Math.floor(s/60)),o=parseInt(Math.floor(i/24)),n=parseInt(l%60),r=parseInt(s%60),a=parseInt(i%24),t){case"s":return l;case"m":return s;case"h":return i;case"d":return o;default:return{d:o,h:a,m:r,s:n}}},get_browser:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("chrome")>-1?"chrome":e.indexOf("safari")>-1?"safari":e.indexOf("mozilla")>-1?"mozilla":e.indexOf("edge")>-1?"edge":"n/a"},params_parse:function(e){if(""!=e&&e.length>2)e=(e=(e=(e="["+e+"]").replace(/'/g,'"')).replace(/ /g,"")).replace(/]\[/g,"],["),e=JSON.parse(e);return e},currencyFormat:function(e,t){if("object"!=typeof t)t=[2,",","."];return e.toFixed(t[0]).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1:repl:").replace(".",t[2]).replace(/:repl:/g,t[1])},jsLocation:function(){return e.SOW.helper.scriptLocation("js")},cssLocation:function(){return e.SOW.helper.scriptLocation("css")},scriptLocation:function(e){let t,o="js"==e?"script[src]":'link[rel="stylesheet"]',a=document.querySelectorAll(o);for(let o=0;o<a.length&&(t="js"==e?a[o].src:a[o].href,-1===t.indexOf("core"))&&-1===t.indexOf("vendor")&&-1===t.indexOf("bundle")&&-1===t.indexOf("theme");o++)t=null;t||(t="js"==e?a[a.length-1].src:a[a.length-1].href),t||(t="js"==e?"assets/js/":"assets/css/");let r=t.split("/"),n=r[r.length-1];return t.replace(n,"")},vendorLogicPaths:function(t){if(!t)return r;var o=""!=e.SOW.globals.js_location?e.SOW.globals.js_location:e.SOW.helper.jsLocation(),a=""!=e.SOW.globals.js_location?e.SOW.globals.css_location:e.SOW.helper.cssLocation(),r=[];if(r.path_js="",r.path_css="",e.SOW.config["vendor:external_css"])for(var n in e.SOW.config["vendor:external_css"])for(var i=0;i<e.SOW.config["vendor:external_css"][n].length;i++)if(!0===e.SOW.config["vendor:external_css"][n].includes(t)){r.path_css=a+n+"."+t+".min.css",e.SOW.helper.loadCSS(r.path_css);break}if(e.SOW.config["vendor:external_js"])for(var n in e.SOW.config["vendor:external_js"])for(i=0;i<e.SOW.config["vendor:external_js"][n].length;i++)if(!0===e.SOW.config["vendor:external_js"][n].includes(t)){r.path_js=o+n+"."+t+".min.js";break}return r},videoEmbedFromUrl:function(e,t){if(e.match(/(.mp4)/)||e.match(/(.webm)/)){e.replace(".webm",".mp4");var o=e.replace(".mp4",".webm");return'<div class="embed-responsive embed-responsive-16by9"><video preload="auto" '+(t?"autoplay":null)+' controls="controls" poster="'+e.replace(".mp4",".jpg").replace(".webm",".jpg")+'"><source src="'+o+'" type="video/webm;"><source src="'+o+'" type="video/mp4;"></video></div>'}if(null===(r=null))var a=e.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i),r=a?"https://www.youtube.com/embed/"+a[4]+"?autoplay="+t||"1":null;if(null===r){var n=e.match(/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/);r=n?"https://player.vimeo.com/video/"+n[2]+"?autoplay="+t||"1":null}return r?'<div class="embed-responsive embed-responsive-16by9"><iframe class="embed-responsive-item" src="'+r+'" allow="autoplay; encrypted-media" width="560" height="315"></iframe></div>':null},strhash:function(e){e.length%32>0&&(e+=Array(33-e.length%32).join("z"));var t,o,a="",r=[];t=c=o=l=0;var n=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","1","2","3","4","5","6","7","8","9"];for(t=0;t<e.length;t++){var i=e.charCodeAt(t);r[c++]=i<127?255&i:127}var s=Math.ceil(r.length/32);for(t=0;t<r.length;t++)if(c+=r[t],++o==s||t==r.length-1){var l;a+=(l=Math.floor(c/o))<32?"0":l>126?"z":n[Math.floor((l-32)/2.76)];var c=o=0}return a},jsonParse:function(e){if(""==e||"object"==typeof e)return e;try{var t=JSON.parse(e)}catch(o){t=e}return void 0===t||t.length<1?null:t},serializeArray:function(e){if(jQuery())return jQuery(e).serializeArray();e="object"==typeof e?e:document.querySelector(e);var t=[];return Array.prototype.slice.call(e.elements).forEach((function(e){!e.name||e.disabled||["file","reset","submit","button"].indexOf(e.type)>-1||("select-multiple"!==e.type?["checkbox","radio"].indexOf(e.type)>-1&&!e.checked||t.push({name:e.name,value:e.value}):Array.prototype.slice.call(e.options).forEach((function(o){o.selected&&t.push({name:e.name,value:o.value})})))})),t},compareArray:function(e,t){const o=t.slice().sort();return e.length===t.length&&e.slice().sort().every((function(e,t){return e===o[t]}))},consoleLogReinit:function(t,o){e.SOW.helper.consoleLog("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"),e.SOW.helper.consoleLog(t,"color: #6dbb30; font-weight: bold; font-size:14px;"),e.SOW.helper.consoleLog("Ajax Reinit For: "+o),e.SOW.helper.consoleLog(window.location.href),e.SOW.helper.consoleLog("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")},consoleLog:function(t,o){if(!0===e.SOW.config.sow__debug_enable)if(void 0===o||"object"==typeof o)"object"!=typeof o?console.log(t):console.log(t,o);else{t="%c"+t;console.log(t,o)}}}}(jQuery),function(e){"use strict";window._headerID="#header",window.lastScrollTop=0,e.SOW.core.header={config:{},collection:e(),init:function(t,o){e.SOW.globals.elHeader&&(e.SOW.globals.elBody.hasClass("header-sticky")?e.SOW.core.header.header_sticky():e.SOW.globals.elBody.hasClass("header-scroll-reveal")&&e.SOW.core.header.header_scroll_reveal(),e.SOW.core.header.horizontal_nav(),e.SOW.core.header.header_toggle(),e.SOW.core.header.header_onepagenav(),e.SOW.helper.consoleLog("Init : SOW Header"))},header_sticky:function(){if(!(e.SOW.globals.elBody.hasClass("layout-admin")||e.SOW.globals.elHeader.length<1)){var t=e.SOW.globals.elHeader.outerHeight()||0,o=0;if(e.SOW.globals.elBody.hasClass("layout-boxed")&&(o=t/2||0),e.SOW.globals.elBody.addClass("header-fixed"),e.SOW.globals.elBody.hasClass("layout-admin aside-sticky")?jQuery("#middle").css({"padding-top":t+o+parseInt(jQuery("#middle").css("padding-top"))}):(jQuery("#js_header_spacer").remove(),jQuery(window._headerID).after('<div id="js_header_spacer" style="height:'+(t+o)+'px">\x3c!-- spacer added by header js --\x3e</div>')),e.SOW.globals.elBody.hasClass("header-over")&&jQuery(this).scrollTop()>0&&e.SOW.globals.elBody.addClass("user-scrolled-down"),e.SOW.globals.elBody.hasClass("header-over")||!(jQuery("#top_bar").length<1)){var a,r=jQuery("#top_bar").length,n=r>0?jQuery("#top_bar").outerHeight():0,i=!1;if(jQuery(window).scroll((function(e){a=!0})),r>0&&jQuery("#top_bar").hasClass("js-ignore"))i=!0;setInterval((function(){a&&(e.SOW.core.header.header_sticky__hasScrolled(t,5,r,n,i),a=!1)}),100),e.SOW.core.header.header_sticky__hasScrolled(t,5,r,n,i)}}},header_sticky__hasScrolled:function(t,o,a,r,n){var i=document.scrollingElement.scrollTop;if(i<1?e.SOW.globals.elBody.removeClass("user-scrolled-down"):e.SOW.globals.elBody.addClass("user-scrolled-down"),a>0&&!1===n){if(Math.abs(window.lastScrollTop-i)<=o)return;i>window.lastScrollTop&&i>t?e.SOW.globals.elHeader.css({"margin-top":"-"+r+"px"}):i+jQuery(window).height()<jQuery(document).height()&&e.SOW.globals.elHeader.css({"margin-top":""}),window.lastScrollTop=i}},header_scroll_reveal:function(){if(e.SOW.globals.elHeader.length>0){var t,o=e.SOW.globals.elHeader.outerHeight()||0,a=0;e.SOW.globals.elBody.hasClass("layout-boxed")&&(a=o/2||0),jQuery("#js_header_spacer").remove(),jQuery(window._headerID).after('<div id="js_header_spacer" style="height:'+(o+a)+'px">\x3c!-- spacer added by header js --\x3e</div>'),e.SOW.globals.elBody.addClass("header-fixed"),jQuery("body>"+window._headerID).addClass("header-fixed"),e.SOW.globals.elBody.hasClass("header-over")&&jQuery(this).scrollTop()>0?(e.SOW.globals.elBody.addClass("user-scrolled-down"),jQuery(window._headerID).addClass("header-down"),jQuery(this).scrollTop()):e.SOW.globals.elBody.addClass("header-is-on-top"),jQuery(window).scroll((function(e){t=!0})),setInterval((function(){t&&(e.SOW.core.header.header_scroll_reveal__hasScrolled(o,5),t=!1)}),100)}},header_scroll_reveal__hasScrolled:function(t,o){var a=document.scrollingElement.scrollTop;a<1?e.SOW.globals.elBody.addClass("header-is-on-top").removeClass("user-scrolled-down"):e.SOW.globals.elBody.addClass("user-scrolled-down"),Math.abs(window.lastScrollTop-a)<=o||(a>window.lastScrollTop&&a>t?(e.SOW.globals.elHeader.removeClass("header-down").addClass("header-up"),e.SOW.globals.elBody.removeClass("header-is-on-top")):a+jQuery(window).height()<jQuery(document).height()&&e.SOW.globals.elHeader.removeClass("header-up").addClass("header-down"),window.lastScrollTop=a)},horizontal_nav:function(){var t,o=document.querySelectorAll(".navbar-horizontal"),a=document.querySelector("form.sow-search");o&&window.setTimeout((function(){o.forEach((function(o){if(o.classList.contains("js-navbar-horizontal"))return;o.classList.add("js-navbar-horizontal");var r=0;let n=o.querySelector(".navbar-toggler-horizontal"),i=n.classList.contains("nav-horizontal-open-click")?"click":"mouseover";n.classList.contains("position-absolute")||n.classList.contains("position-fixed")||n.classList.add("position-relative"),n.addEventListener(i,(function(t){if(!1===e.SOW.globals.is_mobile&&(a&&a.classList.add("z-index-1"),o.querySelector(".navbar-toggler-horizontal").classList.add("z-index-9999"),o.querySelector(".nav-horizontal").classList.add("d-block"),document.body.classList.add("overflow-hidden"),r<1)){let e=o.querySelector(".nav-horizontal-container");r=e.offsetWidth||e.width,l()}})),o.querySelector(".navbar-toggler-horizontal").addEventListener("click",(function(t){!1===e.SOW.globals.is_mobile&&(t.preventDefault(),t.stopPropagation())}));let s=o.querySelector(".nav-horizontal-overlay");if(s){s.classList.add("z-index-99");let e="click"==i?"click":"mouseover";s.addEventListener(e,(function(e){document.body.classList.remove("overflow-hidden"),o.querySelector(".nav-horizontal").classList.remove("d-block"),a&&a.classList.remove("z-index-1"),o.querySelector(".navbar-toggler-horizontal").classList.remove("z-index-9999")}))}function l(){if(!1===e.SOW.globals.is_mobile){let e=(o.offsetWidth||style.width)-r;o.querySelectorAll(".dropdown-mega>.dropdown-menu").forEach((function(t){t.style.minWidth=e+"px"}))}}window.addEventListener("resize",(function(){!1===e.SOW.globals.is_mobile?(t&&clearTimeout(t),t=setTimeout((function(){l()}),500)):document.body.classList.remove("overflow-hidden")}))}))}),170)},header_toggle:function(){document.querySelector(".btn-header-toggle")&&jQuery(".btn-header-toggle").on("click",(function(t){t.preventDefault();var o=!!e.SOW.globals.elBody.hasClass("header-hide"),a=jQuery("#js_header_spacer").length>0,r=e.SOW.globals.elHeader.outerHeight()||0,n="";r<1||(!0===a&&(jQuery("#wrapper_content").addClass("js-animation-enable"),n=", #wrapper_content"),jQuery("#header"+n).addClass("transition-all-ease-250"),!1===o?jQuery("#header"+n).animate({"margin-top":-r+"px"},50,(function(t){e.SOW.globals.elBody.addClass("header-hide"),setTimeout((function(){e.SOW.globals.elBody.addClass("btn-header-toggle-show")}),600)})):jQuery("#header"+n).animate({"margin-top":"0"},0,(function(t){e.SOW.globals.elBody.removeClass("header-hide btn-header-toggle-show"),!0===a&&setTimeout((function(){jQuery("#wrapper_content").removeClass("js-animation-enable")}),600)})))}))},header_onepagenav:function(){jQuery(".navbar-collapse").each((function(){var t=jQuery(this);jQuery(".scroll-to, .js-ajax",t).on("click",(function(){!0===e.SOW.globals.is_mobile&&t.collapse("hide")}))}))},header_destroy:function(){e.SOW.globals.elHeader.removeClass("header-down header-up"),e.SOW.globals.elBody.removeClass("header-hide header-over header-fixed header-is-on-top user-scrolled-down"),e.SOW.globals.elHeader.css({"margin-top":""}),jQuery("#top_bar").removeClass("hide-by-scroll"),jQuery("#js_header_spacer").remove(),jQuery(window).off("scroll")}}}(jQuery),function(e){"use strict";var t="SOW Search Suggest";window._relatedFirstLoad="",e.SOW.core.search_suggest={config:{enable:!0,method:"",container:"#sow-search-container",input_min_length:2,input_delay:100,related_kw:"",related_url:"",related_action:"related_get",suggest_url:"",suggest_action:"suggest_get",contentType:"",dataType:"",forceStringify:!1},collection:e(),init:function(o,a){var r=e.SOW.helper.__selector(o),n=e.SOW.helper.check_var(a);if(this.selector=r[0],this.collection=r[1],this.selector_orig=r[2],this.config=null!==n?e.extend({},this.config,n):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : "+t),e.SOW.core.search_suggest.sow_suggest_toggler(),this.selector?this.collection.each((function(){e.SOW.core.search_suggest.process(e(this))})):(e.SOW.core.search_suggest.process(e("form.js-ajax-search")),this.collection)},process:function(t){t.each((function(){var t=jQuery(this),o=t.attr("method")||"",a=t.data("autosuggest")||"",r=t.data("mode")||"html",n=t.data("json-max-results")||10,i=t.data("json-related-title")||"Popular",s=t.data("json-related-item-icon")||"fi fi-star-empty",l=t.data("json-suggest-title")||"Search Suggestion",c=t.data("json-suggest-noresult")||"No results for",d=t.data("json-suggest-item-icon")||"fi fi-search",u=t.data("json-suggest-min-score")||0,f=t.data("json-highlight-term")||"true",p=t.data("container")||"",h=t.data("related-keywords")||"",g=t.data("related-url")||"",m=t.data("suggest-url")||"",v=t.data("suggest-action")||"",y=t.data("related-action")||"",_=t.data("contentType")||"",j=t.data("theme-class")||"primary",b=t.data("dataType")||"",S=t.data("input-min-length")||0,x=t.data("input-delay")||0;if((""!=a||!1!==e.SOW.core.search_suggest.config.enable)&&"on"==a){if(""==p)p=e.SOW.core.search_suggest.config.container;if(S<1)S=e.SOW.core.search_suggest.config.input_min_length;if(x<50)x=e.SOW.core.search_suggest.config.input_delay;if(""==h)h=e.SOW.core.search_suggest.config.related_kw;if(""==g)g=e.SOW.core.search_suggest.config.related_url;if(""==y)y=e.SOW.core.search_suggest.config.related_action;if(""==m)m=e.SOW.core.search_suggest.config.suggest_url;if(""==v)v=e.SOW.core.search_suggest.config.suggest_action;if(""!=e.SOW.core.search_suggest.config.method)o=e.SOW.core.search_suggest.config.method;window._lastSearch=null,""!=g||""!=m?(window.suggestionIsAlreadyFocused=!1,jQuery(".sow-search-backdrop",t).addClass("hide").on("click",(function(o){e.SOW.core.search_suggest.__suggest_hide(t)})),jQuery(document).keyup((function(o){27===o.keyCode&&e.SOW.core.search_suggest.__suggest_hide(t,p)})),jQuery("input.form-control-sow-search",t).focus((function(a){jQuery(p+" .sow-search-content").html().length<3&&(jQuery(".sow-search-loader").removeClass("hide"),window.afterSearchKeyUp&&clearTimeout(window.afterSearchKeyUp),window.afterSearchKeyUp=setTimeout((function(){var t={ajax:"true",action:y,related_keywords:h};!0===e.SOW.core.search_suggest.config.forceStringify?e.SOW.helper.consoleLog("JSON Related Sent: "+JSON.stringify(t)):e.SOW.helper.consoleLog("Related Sent: "+JSON.stringify(t)),e.SOW.helper.consoleLog("Url Request: "+g,"color: #cccccc;"),e.SOW.helper.consoleLog("Mode: "+r,"color: #cccccc;"),e.SOW.helper.consoleLog("------------------------------------------------------------","color: #cccccc;"),jQuery.ajax({url:g,data:!0===e.SOW.core.search_suggest.config.forceStringify?JSON.stringify(t):t,type:o,cache:"json"!=r,contentType:_||"application/x-www-form-urlencoded; charset=UTF-8",dataType:b||null,headers:"",crossDomain:"",error:function(t,o,a){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"),jQuery(".sow-search-loader").addClass("hide")},success:function(t){if("json"===r)t=e.SOW.core.search_suggest.process_json(t,h,n,i,c,f,s,u,j);jQuery(p+" .sow-search-content").html(t),window._relatedFirstLoad=t,jQuery(".sow-search-loader").addClass("hide")}})}),50)),e.SOW.core.search_suggest.__suggest_show(t,p)})),jQuery("input.form-control-sow-search",t).on("keyup change",(function(a){var i=jQuery(this).val()||"";e.SOW.core.search_suggest.__suggest_show(t,p),i.length>=Number(S)&&window._lastSearch!=i?(jQuery(".sow-search-loader").removeClass("hide"),window.afterSearchKeyUp&&clearTimeout(window.afterSearchKeyUp),window.afterSearchKeyUp=setTimeout((function(){window._lastSearch=i;var t={ajax:"true",action:v,user_keywords:i};!0===e.SOW.core.search_suggest.config.forceStringify?e.SOW.helper.consoleLog("JSON Suggest Sent: "+JSON.stringify(t)):e.SOW.helper.consoleLog("Related Suggest: "+JSON.stringify(t)),e.SOW.helper.consoleLog("Url Request: "+g,"color: #cccccc;"),e.SOW.helper.consoleLog("Mode: "+r,"color: #cccccc;"),e.SOW.helper.consoleLog("------------------------------------------------------------","color: #cccccc;"),jQuery.ajax({url:m,data:!0===e.SOW.core.search_suggest.config.forceStringify?JSON.stringify(t):t,type:o,cache:"json"!=r,contentType:_||"application/x-www-form-urlencoded; charset=UTF-8",dataType:b||null,headers:"",crossDomain:"",error:function(t,o,a){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"),jQuery(".sow-search-loader").addClass("hide")},success:function(t){if("json"===r)t=e.SOW.core.search_suggest.process_json(t,i,n,l,c,f,d,u,j);jQuery(p+" .sow-search-content").html(t),jQuery(".sow-search-loader").addClass("hide")}})}),Number(x))):""!=window._relatedFirstLoad&&""==i&&jQuery(p+" .sow-search-content").html(window._relatedFirstLoad)}))):e.SOW.helper.consoleLog("Search Suggest Error: No related and/or suggest url provided!")}}))},__suggest_show:function(e,t){!1===window.suggestionIsAlreadyFocused&&(e.removeClass("hide"),jQuery(".sow-search-backdrop",e).removeClass("hide"),jQuery(t).removeClass("hide"),window.suggestionIsAlreadyFocused=!0)},__suggest_hide:function(t,o){!0===window.suggestionIsAlreadyFocused&&(e.SOW.globals.elBody.removeClass("overflow-hidden"),jQuery(".sow-search-backdrop",t).addClass("hide"),jQuery(".sow-search-container",t).addClass("hide"),jQuery(".sow-search-over",t).addClass("hide"),jQuery("input.form-control-sow-search",t).blur(),t.removeClass("sow-search-mobile"),jQuery(".sow-search-over").addClass("hide"),window.suggestionIsAlreadyFocused=!1)},sow_suggest_toggler:function(){var t=this.selector_orig;jQuery(".btn-sow-search-toggler:not(.btn-sow-search-togglified)").addClass("btn-sow-search-togglified").on("click",(function(o){o.preventDefault();var a=jQuery(this).data("target")||t;jQuery(a).toggleClass("sow-search-mobile"),jQuery(a+".sow-search-over").toggleClass("hide"),jQuery(a).hasClass("sow-search-mobile")?(jQuery(a+" input.form-control-sow-search").focus(),e.SOW.globals.elBody.addClass("overflow-hidden"),jQuery(a+".sow-search-over").removeClass("hide")):(jQuery(a+" input.form-control-sow-search").blur(),e.SOW.globals.elBody.removeClass("overflow-hidden"),jQuery(a+".sow-search-over").addClass("hide").removeClass("sow-search-mobile"))}))},process_json:function(o,a,r,n,i,s,l,c,d){if("function"!=typeof fuzzy)return e.SOW.helper.consoleLog(" ERROR : "+t+" : Require fuzzy.js Vendor for JSON search mode!","color: #ff0000; font-weight: bold;"),'<h3 class="fs-5 p-4 pb--3 m-0 text-danger">'+t+' Error</h3><hr><p class="px-3">data-mode="json" <br> You enabled JSON search mode but fuzzy.js Vendor could not be found!</p><hr><p class="px-3"> Add fuzzy.js Vendor or switch to data-mode="html"</p>';try{var u=JSON.parse(o)}catch(e){u=o}o=null;var f='<h3 class="fs-5 p-4 m-0 text-'+d+'">'+n+'</h3><ul class="list-unstyled list-suggestion">';if(""!=a){var p=[],h=0;fuzzy.analyzeSubTerms=!0;for(var g=0;g<u.length;g++)p[g]=fuzzy(u[g].label,a),p[g].url=u[g].url;p.sort(fuzzy.matchComparator);for(g=0;g<p.length&&g<r;g++){var m=p[g],v=m.term,y=m.score,_=m.highlightedTerm,j=1==s?_:v;y>=c&&(h++,f+='<li class="list-item" data-score="'+y+'"><a href="'+m.url+'"><i class="'+l+'"></i> '+j+"</a></li>")}h<1&&(f+='<li class="list-item text-muted px-4 pb-4">'+i+' <i>"'+a+'"</i></li>')}else{for(p=[],g=0;g<u.length;g++)p[g]=u[g].label;for(g=0;g<p.length&&g<r;g++)f+='<li class="list-item"><a href="'+u[g].url+'"><i class="'+l+'"></i> '+u[g].label+"</a></li>"}return f+="</ul>"}}}(jQuery),function(e){"use strict";var t=void 0;e.SOW.core.lazyload={config:{rootMargin:"0px",threshold:.1,load:function(t){if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var o=t.children,a=void 0,r=0;r<=o.length-1;r++)(a=o[r].getAttribute("data-src"))&&(o[r].src=a);t.load()}t.getAttribute("data-src")&&(t.src=t.getAttribute("data-src")),t.getAttribute("data-srcset")&&t.setAttribute("srcset",t.getAttribute("data-srcset")),!0===e.SOW.globals.is_mobile&&t.getAttribute("data-background-image-xs")?t.style.backgroundImage="url('"+t.getAttribute("data-background-image-xs")+"')":t.getAttribute("data-background-image")&&(t.style.backgroundImage="url('"+t.getAttribute("data-background-image")+"')"),t.getAttribute("data-lazy-toggle-class")&&jQuery(t).addClass(t.getAttribute("data-lazy-toggle-class")),jQuery(t).removeAttr("data-lazy-toggle-class data-background-image data-srcset data-src")}},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Lazyload"),this.selector?(e.SOW.core.lazyload.process(this.selector).observe(),this.collection):(e.SOW.core.lazyload.process(".lazy").observe(),jQuery(".lazy"))},process:function(o){var a=e.SOW.core.lazyload.config.load;if(window.IntersectionObserver)t=new IntersectionObserver(e.SOW.core.lazyload.onIntersection(a),{rootMargin:e.SOW.core.lazyload.config.rootMargin,threshold:e.SOW.core.lazyload.config.threshold});else{for(var r=e.SOW.core.lazyload.getElements(o),n=0;n<r.length;n++)a(r[n]),e.SOW.core.lazyload.markLoaded(r[n]);e.SOW.helper.consoleLog("Lazyload: This browser does not support IntersectionObserver()"),e.SOW.helper.consoleLog("Images loaded without lazyloading!"),e.SOW.helper.consoleLog("To enable, download this polyfill and include before any other js script: https://www.npmjs.com/package/intersection-observer")}return{observe:function(){for(var r=e.SOW.core.lazyload.getElements(o),n=0;n<r.length;++n)e.SOW.core.lazyload.isLoaded(r[n])||(t?t.observe(r[n]):(a(r[n]),e.SOW.core.lazyload.markLoaded(r[n])))},__observer:t}},markLoaded:function(e){e.setAttribute("data-loaded",!0)},isLoaded:function(e){return"true"===e.getAttribute("data-loaded")},onIntersection:function(t){return function(t,o){t.forEach((function(t){(t.intersectionRatio>0||t.isIntersecting)&&(o&&o.unobserve(t.target),e.SOW.core.lazyload.isLoaded(t.target)||(e.SOW.core.lazyload.config.load(t.target),e.SOW.core.lazyload.markLoaded(t.target)))}))}},getElements:function(e){return e instanceof Element?[e]:e instanceof NodeList?e:document.querySelectorAll(e)}}}(jQuery),function(e){"use strict";var t="SOW Ajax Navigation";window.sow_ajax_links_last_href=null,window.sow_ajax_links_curr_href=null,e.SOW.core.ajax_navigation={config:{enable:!0,method:"GET",contentType:"",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"},target_container:"#middle",update_url:!0,show_loading_icon:!0,callback_function:"",callback_before_push:!1,parser_extract_enable:!0,parser_force_push2target:!1,parser_extract_element:"#middle, #page_js_files",autoscroll_to_content:!0,container2_element:"",container2_class:"",page_404:"404.html",onpopstate_reload:!0,custom_function_call:"",AjaxGarbage:"",AjaxOtherGarbage:".datepicker, .popover, .daterangepicker, .modal, .modal-backdrop, .note-popover, #dropdown_toggle_overlay, .tooltip"},collection:e(),init:function(o,a){if("file://"!=window.location.origin)if(!0===e.SOW.core.ajax_navigation.config.enable){var r=e.SOW.helper.__selector(o),n=e.SOW.helper.check_var(a);if(this.selector=r[0],this.collection=r[1],this.selector_orig=r[2],this.config=null!==n?e.extend({},this.config,n):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : "+t),e.SOW.core.ajax_navigation.__historyPopState(),this.selector?this.collection.each((function(){e.SOW.core.ajax_navigation.ajax_navigation(e(this))})):(e.SOW.core.ajax_navigation.ajax_navigation(e("a.js-ajax")),this.collection)}else e.SOW.helper.consoleLog("Disabled : "+t,"color: #ff0000;")},ajax_navigation:function(t,o){this.selector;var a=this.selector_orig;!0===e.SOW.core.ajax_navigation.config.enable?t.on("click",(function(t){t.preventDefault(),jQuery(this).hasClass("dropdown-item")||t.stopPropagation();var r=jQuery(this),n=r.attr("href")||"#",i=r.attr("data-href")||"",s=(r.attr("title"),r.attr("data-ajax-autoscroll-to-content")||""),l=r.data("ajax-callback-function")||"",c=r.attr("data-ajax-callback-before-push")||"",d=r.data("ajax-method")||"",u=r.attr("data-ajax-update-url")||"",f=r.attr("data-ajax-show-loading-icon")||"",p=r.data("ajax-container2-element")||"",h=r.data("ajax-container2-class")||"",g=r.data("ajax-parser-extract-element")||"",m=r.data("ajax-target-container")||"";""!=i&&(n=i);var v=""!=n&&"#"!=n&&"#!"!=n&&"javascript:;"!=n&&"void(0)"!=n;if(!0===v&&!1===e.SOW.globals.is_mobile&&"object"==typeof e.SOW.core.dropdown&&e.SOW.core.dropdown.forceCloseDropdown(r),!r.hasClass("nav-link")&&"object"==typeof e.SOW.core.nav_deep){n=e.SOW.helper.removeUrlHash(n);(y=jQuery(a+'.nav-link[href="'+n+'"]')).length>0&&(e.SOW.core.nav_deep.nav_deep_open(y),e.SOW.core.nav_deep.nav_deep_close_all(y));var y=null}if(""==s)s=e.SOW.core.ajax_navigation.config.autoscroll_to_content;if(""==l)l=e.SOW.core.ajax_navigation.config.callback_function;if(""==c)c=e.SOW.core.ajax_navigation.config.callback_before_push;if(""==d)d=e.SOW.core.ajax_navigation.config.method;if(""==u)u=e.SOW.core.ajax_navigation.config.update_url;if(""==f)f=e.SOW.core.ajax_navigation.config.show_loading_icon;if(""==p)p=e.SOW.core.ajax_navigation.config.container2_element;if(""==h)h=e.SOW.core.ajax_navigation.config.container2_class;if(""==g&&!0===e.SOW.core.ajax_navigation.config.parser_extract_enable)g=e.SOW.core.ajax_navigation.config.parser_extract_element;if(""!=m&&m!=g&&(g=""),""==m)m=e.SOW.core.ajax_navigation.config.target_container;if(""!=m)if(!0===v){if(window.sow_ajax_links_last_href!=n){window.sow_ajax_links_last_href=n,e.SOW.core.ajax_navigation.__cleanAjaxGarbage();var _=new Object;return _._t=r,_._href=n,_._scrollToContent=s,_._callback=l,_._callbackBeforePush=c,_._method=d,_._updateURL=u,_._showLoadingIcon=f,_._container2El=p,_._container2Class=h,_._contentResponseExtract=g,_._target=m,e.SOW.core.ajax_navigation.__ajaxLinkProcess(_,o)}}else e.SOW.helper.consoleLog("Ajax request: no valid link!");else e.SOW.helper.consoleLog("Ajax request: data-ajax-container missing!")})):t.off("click")},__ajaxLinkProcess:function(t,o){if(!0===e.SOW.core.ajax_navigation.config.enable){var a=t._t,r=t._href,n=t._scrollToContent,i=t._callback,s=t._callbackBeforePush,l=t._method,c=t._updateURL,d=t._showLoadingIcon,u=t._container2El,f=t._container2Class,p=t._contentResponseExtract,h=t._target;t=null,s=(s=s+"").toLowerCase(),c=(c=c+"").toLowerCase(),d=(d=d+"").toLowerCase(),n=(n=n+"").toLowerCase();return jQuery.ajax({url:r,data:e.SOW.core.ajax_navigation.config.data_params,type:l,contentType:e.SOW.core.ajax_navigation.config.contentType,dataType:e.SOW.core.ajax_navigation.config.dataType,headers:e.SOW.core.ajax_navigation.config.headers,crossDomain:e.SOW.core.ajax_navigation.config.crossDomain,beforeSend:function(){"true"==d&&e.SOW.helper.loadingSpinner("show",h),a.addClass("disabled"),!0===e.SOW.globals.is_mobile&&e.SOW.globals.elBody.hasClass("layout-admin")&&jQuery("#aside-main").hasClass("js-aside-show")&&jQuery(".btn-sidebar-toggle").trigger("click")},error:function(t,o,a){e.SOW.core.ajax_navigation.page_404(p,h)||(e.SOW.helper.loadingSpinner("hide"),"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"))},success:function(t){e.SOW.core.ajax_navigation.__cleanAjaxGarbage();var l="";if("false"==s){if(""==p||!1===e.SOW.core.ajax_navigation.config.parser_extract_enable){var d=new Array,g=new Array,m=jQuery("<div>"+t+"</div>");jQuery("script[src]",m).each((function(){d.push(e(this).attr("src"))})),jQuery("script[src]",m).remove(),jQuery("script",m).each((function(){g.push(e(this))})),jQuery("script",m).remove();var v=m.find("title").html()||m.find("meta-title").html(),y=m.find("meta[name=description]").attr("content")||m.find("meta-description").html(),_=m.find("link[rel=canonical]").attr("href")||m.find("meta-canonical").html(),j=m.find("meta[name=robots]").attr("content")||m.find("meta-robots").html();if(jQuery("link[rel=canonical], meta[name=robots]").remove(),v&&(document.title=v),y&&document.querySelector('meta[name="description"]').setAttribute("content",y),_&&jQuery("head").append('<link rel="canonical" href="'+_+'">'),j&&jQuery("head").append('<meta name="robots" content="'+j+'">'),jQuery("meta-title, meta-description, meta-canonical, meta-robots",m).remove(),""==(b=m.html())&&!0===e.SOW.core.ajax_navigation.config.parser_force_push2target)var b=t;jQuery(h).empty().append(b),e.SOW.core.ajax_navigation.html_parsed__apply_scripts(d,g);m=null;if("true"==c)l=b}else{if("object"!=typeof(x=e.SOW.core.ajax_navigation.html_parse(p,t)))l="";else{l=x.html_content;var S=x.meta_title}l||!0!==e.SOW.core.ajax_navigation.config.parser_force_push2target||(l=t),jQuery(h).empty().append(l),e.SOW.core.ajax_navigation.html_parsed__apply_scripts(x.scripts_src,x.scripts_inline);var x=null}if("true"==c&&window.sow_ajax_links_curr_href!=r){(Q=new Object)._href=r,Q._callback=i,Q._callbackBeforePush=s,Q._contentResponseExtract=p,Q._updateURL=c,Q._container2El=u,Q._container2Class=f,Q._scrollToContent=n,Q._target=h,Q._html=""!=l?l:"";var w=JSON.stringify(Q);e.SOW.core.ajax_navigation.__historyPushState(r,S,w)}if("true"==n&&"function"==typeof e.SOW.helper.scrollAnimate){var O=jQuery(h);e.SOW.helper.scrollAnimate(O,0,!1,200)}if(""!=u){var W=1==n?200:60;jQuery(u).removeClass(f),setTimeout((function(){""!=f&&jQuery(u).addClass(f)}),W)}""!=e.SOW.core.ajax_navigation.config.custom_function_call&&"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(e.SOW.core.ajax_navigation.config.custom_function_call,window,a,h,this.selector),"true"!==o&&e.SOW.core.ajax_navigation.reinit_call(h)}"true"==s&&""==i&&e.SOW.helper.consoleLog('data-ajax-callback-function="" -BUT- data-ajax-callback-before-push="true"'),""!=i&&"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(i,window,a,l||t,h),e.SOW.helper.loadingSpinner("hide"),a.removeClass("disabled"),jQuery(h).hasClass("js-ajax")&&jQuery(h).attr("data-ajax-url",r);t=null;var Q=null;w=null,l=null;window.sow_ajax_links_last_href=null,"true"==c&&window.sow_ajax_links_curr_href!=r&&(window.sow_ajax_links_curr_href=r),e.SOW.globals.elBody.removeClass("overflow-hidden")}}),!0}},html_parse:function(t,o){if(!o)return null;t||((a=new Object).meta_title=null,a.meta_description=null,a.html_content=o);var a,r=jQuery("<div>"+o+"</div>"),n="",i=r.find("title").html()||r.find("meta-title").html(),s=r.find("meta[name=description]").attr("content")||r.find("meta-description").html(),l=r.find(t),c=new Array,d=new Array;return l?(l.each((function(){jQuery("script[src]",this).each((function(){c.push(e(this).attr("src"))})),jQuery("script[src]",this).remove(),jQuery("script",this).each((function(){d.push(e(this))})),jQuery("script",this).remove(),n+=e(this).html()})),(a=new Object).meta_title=i,a.meta_description=s,a.html_content=n,a.scripts_src=c,a.scripts_inline=d,""!=i&&(document.title=i),""!=s&&document.querySelector('meta[name="description"]').setAttribute("content",s),a):null},html_parsed__apply_scripts:function(t,o){return e.SOW.helper.loadScript(t,!1,!0).done((function(){if(jQuery("#js_ajax_navigation_appended_scripts").remove(),o.length>0)for(var t in e.SOW.globals.elBody.append('<div id="js_ajax_navigation_appended_scripts"></div>'),o)jQuery("#js_ajax_navigation_appended_scripts").append(o[t])})),!0},reinit_call:function(o){e.SOW.helper.consoleLogReinit(t,o),e.SOW.reinit(o)},page_404:function(t,o){return""==e.SOW.core.ajax_navigation.config.page_404?null:(jQuery.ajax({url:e.SOW.core.ajax_navigation.config.page_404,data:{ajax:"true"},type:"GET",contentType:"",dataType:"",headers:"",crossDomain:"",beforeSend:function(){e.SOW.helper.loadingSpinner("show",o)},error:function(t,o,a){e.SOW.helper.loadingSpinner("hide")},success:function(a){var r=e.SOW.core.ajax_navigation.html_parse(t,a);a=null;if("object"!=typeof r)var n="";else{n=r.html_content;document.title=r.meta_title,e.SOW.core.ajax_navigation.__historyPushState(e.SOW.core.ajax_navigation.config.page_404,document.title,n)}n||!0!==e.SOW.core.ajax_navigation.config.parser_force_push2target||(n=a),jQuery(o).empty().html(n),e.SOW.helper.loadingSpinner("hide"),e.SOW.core.ajax_navigation.html_parsed__apply_scripts(r.scripts_src,r.scripts_inline);r=null;e.SOW.core.ajax_navigation.reinit_call(o)}}),!0)},__initFor:function(t){if(t){return e.SOW.core.ajax_navigation.ajax_navigation(jQuery(t+" "+this.selector_orig),!0)}},__selector:function(){return this.selector_orig},__cleanAjaxGarbage:function(){jQuery(e.SOW.core.ajax_navigation.config.AjaxOtherGarbage).remove(),e.SOW.globals.elBody.removeClass("overflow-hidden modal-open"),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.destroy(),""!=e.SOW.core.ajax_navigation.config.AjaxGarbage&&jQuery(e.SOW.core.ajax_navigation.config.AjaxGarbage).remove()},__historyPushState:function(t,o,a){""!=t&&"#"!=t&&"#!"!=t&&"javascript:;"!=t&&"void(0)"!=t&&(void 0!==history.pushState?(window.history.pushState({html:a,pageTitle:o},"",t),e.SOW.helper.consoleLog("SOW Ajax : history.pushState : "+t)):window.location=t)},__historyPopState:function(){this.selector;var t=this.selector_orig;"function"!=typeof window.onpopstate&&(window.onpopstate=function(o){if(o.state){void 0!==o.state.pageTitle&&(document.title=o.state.pageTitle);var a=JSON.parse(o.state.html),r=""!=a._target?a._target:"#middle";if(jQuery(r).empty().html(a._html),""==a._href)return void e.SOW.helper.consoleLog("SOW Ajax : history.pushState : Err : Missing Back Link! Displayed the page from history, no real request to the server reload!");if(!(n=jQuery(t+'[href="'+a._href+'"]').first()))var n=jQuery(t+'[href="'+a._href+'"]').first();if(!n)return e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0),void(""==a._html&&location.reload(!0));!0===e.SOW.core.ajax_navigation.config.onpopstate_reload&&(a._t=n,a._updateURL=!1,a._scrollToContent=!1,e.SOW.core.ajax_navigation.__ajaxLinkProcess(a),e.SOW.helper.consoleLog("SOW Ajax : onpopstate : Content request sent to the server!")),"object"==typeof e.SOW.core.nav_deep&&(e.SOW.core.nav_deep.nav_deep_open(n),e.SOW.core.nav_deep.nav_deep_close_all(n))}else{if(window.location.href.indexOf("#")>-1)return;location.reload(!0)}})}}}(jQuery),function(e){"use strict";var t="SOW Ajax Content";e.SOW.core.ajax_content={config:{method:"GET",contentType:"",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"},callback_function:"",callback_before_push:!1},collection:e(),init:function(o,a){var r=e.SOW.helper.__selector(o),n=e.SOW.helper.check_var(a);if(this.selector=r[0],this.collection=r[1],this.selector_orig=r[2],this.config=null!==n?e.extend({},this.config,n):this.config,!(jQuery(this.selector).length<1||jQuery(this.selector_orig).last().hasClass("js-ajaxified")))return e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.core.ajax_content.ajax_content(e(this))})):(e.SOW.core.ajax_content.ajax_content(e(".js-ajax")),this.collection)},ajax_content:function(t){if(!(t.hasClass(".js-ajaxified")||t.length<1)){t.addClass("js-ajaxified");var o=t.attr("id")||"",a=t.data("ajax-url")||"",r=t.data("ajax-callback-function")||e.SOW.core.ajax_content.config.callback_function,n=t.data("ajax-callback-before-push")||e.SOW.core.ajax_content.config.callback_before_push,i=t.data("ajax-method")||e.SOW.core.ajax_content.config.method,s=t.data("ajax-btn-reload")||"",l=t.data("ajax-target-container")||"";if(""==o&&(o="rand_"+e.SOW.helper.randomStr(8),t.attr("id",o)),jQuery(s).length>0)""==(jQuery(s).attr("data-ajax-container")||"")&&jQuery(s).attr("data-ajax-container","#"+o).addClass("btn-js-ajax-content-reloader");if(""==l||"self"==l||"_self"==l)l="#"+o;e.SOW.core.ajax_content.__ajaxDivProcess(o,a,l,i,null,r,n),e.SOW.core.ajax_content.btn_reload_bind()}},btn_reload_bind:function(){jQuery(".btn-js-ajax-content-reloader:not(.btn-js-ajaxified)").addClass("btn-js-ajaxified").on("click",(function(t){t.preventDefault();var o=jQuery(this),a=jQuery(this).data("ajax-container")||"";if(""!=a){var r=jQuery(a),n=r.attr("id")||"",i=r.attr("data-ajax-url")||"",s=r.data("ajax-callback-function")||e.SOW.core.ajax_content.config.callback_function,l=r.data("ajax-callback-before-push")||e.SOW.core.ajax_content.config.callback_before_push,c=r.data("ajax-method")||e.SOW.core.ajax_content.config.method,d=r.data("ajax-target-container")||a;e.SOW.core.ajax_content.__ajaxDivProcess(n,i,d,c,o,s,l)}}))},__ajaxDivProcess:function(o,a,r,n,i,s,l){this.selector,l=(l=l+"").toLowerCase();return jQuery.ajax({url:a,type:n,data:e.SOW.core.ajax_content.config.data_params,contentType:e.SOW.core.ajax_content.config.contentType,dataType:e.SOW.core.ajax_content.config.dataType,headers:e.SOW.core.ajax_content.config.headers,crossDomain:e.SOW.core.ajax_content.config.crossDomain,beforeSend:function(){i&&(jQuery(r).addClass("overlay-light overlay-opacity-6 overlay-over"),e.SOW.helper.loadingSpinner("show",r),i.addClass("disabled active").prop("disabled",!0))},error:function(t,a,r){e.SOW.helper.loadingSpinner("hide"),"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"),e.SOW.helper.consoleLog("----------------------------"),e.SOW.helper.consoleLog("--- AJAX REQUEST ERROR ----"),e.SOW.helper.consoleLog("DIV|section ID: "+o),e.SOW.helper.consoleLog("1. XMLHttpRequest:"),e.SOW.helper.consoleLog(t),e.SOW.helper.consoleLog("2. textStatus:"),e.SOW.helper.consoleLog(a),e.SOW.helper.consoleLog("3. errorThrown:"),e.SOW.helper.consoleLog(r),e.SOW.helper.consoleLog("----------------------------")},success:function(a){"false"==l&&jQuery(r).empty().html(a),""!=s&&"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(s,window,o,r,a),"true"==l&&""==s&&e.SOW.helper.consoleLog('data-ajax-callback-function="" -BUT- data-ajax-callback-before-push="true"'),setTimeout((function(){e.SOW.helper.loadingSpinner("hide"),jQuery(r).removeClass("overlay-light overlay-opacity-6 overlay-over"),i&&i.removeClass("disabled active").prop("disabled",!1),"false"==l&&(e.SOW.helper.consoleLogReinit(t,r),e.SOW.reinit(r))}),300)}}),!0}}}(jQuery),function(e){"use strict";var t="SOW Ajax Form";e.SOW.core.ajax_form={config:{method:"GET",contentType:"",dataType:"",headers:"",crossDomain:""},collection:e(),init:function(o,a){var r=e.SOW.helper.__selector(o),n=e.SOW.helper.check_var(a);if(this.selector=r[0],this.collection=r[1],this.config=null!==n?e.extend({},this.config,n):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.core.ajax_form.process(e(this))})):(e.SOW.core.ajax_form.process(e("form.js-ajax")),this.collection)},process:function(o){this.selector,this.selector_orig;o.submit((function(a){var r=o,n=r.attr("id")||"",i=r.attr("action")||"",s=r.attr("data-ajax-callback-function")||"",l=r.attr("method")||e.SOW.core.ajax_form.config.method,c=r.attr("data-ajax-update-url")||"false",d=r.attr("data-ajax-append-response")||"",u=r.attr("data-error-scroll-up")||"false",f=r.attr("data-ajax-show-loading-icon")||"true",p=r.data("ajax-contentType")||"",h=r.data("ajax-dataType")||"",g=r.data("ajax-container")||"",m=r.data("error-toast-text")||"",v=r.data("error-toast-delay")||0,y=r.data("error-toast-position")||"top-right",_=r.data("success-toast-text")||"",j=r.attr("data-ajax-control-alerts")||"false",b=r.attr("data-ajax-control-alert-succes")||"",S=r.attr("data-ajax-control-alert-unexpected")||"",x=r.attr("data-ajax-control-alert-mandaroty")||"",w=r.data("ajax-inline-alert-succes")||"",O=r.data("ajax-inline-alert-error")||"",W=r.data("modal-autoclose-on-success")||"false",Q=r.data("modal-autoclose-on-success-delay")||0;""==w&&""==O||"#middle"==g&&(g="");u+="",c+="";if(""==n){n="js_"+e.SOW.helper.randomStr(10);r.attr("id",n)}window.ajax_form_stop=!1;var C=document.getElementById(n);if(r.hasClass("bs-validate")){if(jQuery(".bs-validate-info").addClass("hide hide-force"),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.destroy(),!1===C.checkValidity()){if(""!=m)if("object"==typeof e.SOW.core.toast){if(Number(v)<1)v=4e3;e.SOW.core.toast.show("danger","",m,y,Number(v),!0)}else alert(m);else{jQuery(".bs-validate-info",r).removeClass("hide hide-force");var k=jQuery(".bs-validate-info",r).data("error-alert-delay")||3e3;setTimeout((function(){jQuery(".bs-validate-info",r).addClass("hide hide-force")}),Number(k))}if(""!=O&&(jQuery(w).addClass("hide hide-force"),jQuery(O).removeClass("hide hide-force")),jQuery(".form-control:invalid",r).first().focus(),"function"==typeof e.SOW.helper.scrollAnimate&&"true"==u&&!jQuery(".modal").hasClass("show")){var T=jQuery("input:invalid, select:invalid, textarea:invalid",r);e.SOW.helper.scrollAnimate(T,0,!1,200)}a.preventDefault(),a.stopPropagation(),window.ajax_form_stop=!0}if(r.addClass("was-validated"),!0===window.ajax_form_stop)return}else!1===C.checkValidity()&&(a.preventDefault(),a.stopPropagation(),window.ajax_form_stop=!0);if(!0!==window.ajax_form_stop){if(a.preventDefault(),""==i)return e.SOW.helper.consoleLog("Ajax request: form action missing!"),void("object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"));if("post"==l.toLowerCase())var A=new FormData(this),L=!1,D=!1;else L=!0,D=p||e.SOW.core.ajax_form.config.contentType,A=r.serializeArray();jQuery.ajax({url:i,data:A,type:l,dataType:h||e.SOW.core.ajax_form.config.dataType,headers:e.SOW.core.ajax_form.config.headers,crossDomain:e.SOW.core.ajax_form.config.crossDomain,contentType:D,processData:L,cache:!1,beforeSend:function(){"true"==f&&e.SOW.helper.loadingSpinner("show",r),jQuery(this).attr("disabled",!0).addClass("disabled")},error:function(t,o,a){e.SOW.helper.loadingSpinner("hide"),"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!",y,0,!0):alert("[404] Unexpected internal error!"),""!=O&&(jQuery(w).addClass("hide hide-force"),jQuery(O).removeClass("hide hide-force")),jQuery(this).attr("disabled",!1).removeClass("disabled")},success:function(o){e.SOW.helper.loadingSpinner("hide"),e.SOW.helper.consoleLog(o),jQuery(this).attr("disabled",!1).removeClass("disabled");var a=!1;if(j+""=="true"){a=!0;if(jQuery(b).addClass("hide hide-force"),jQuery(S).addClass("hide hide-force"),jQuery(x).addClass("hide hide-force"),"{:success:}"==o){jQuery(b).removeClass("hide hide-force");a=!1,o=""}else"{:err:required:}"==o?jQuery(x).removeClass("hide hide-force"):"{:err:unexpected:}"==o&&jQuery(S).removeClass("hide hide-force");if(!0===a)return!0===e.SOW.config.sow__debug_enable?jQuery(g).empty().html(o):jQuery(g).empty().html("Server Error!"),void r.removeClass("was-validated")}if(""==s?(jQuery("input:not([type=hidden])",r).val(""),jQuery("textarea:not(.hide)",r).val(""),""!=g&&jQuery(g).empty().html(o),r.removeClass("was-validated")):"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(s,window,r,o),"true"==c&&"object"===e.SOW.core.ajax_navigation&&e.SOW.core.ajax_navigation.__historyPushState(i,"",o),""!=g&&"function"==typeof e.SOW.helper.scrollAnimate&&"true"==u){var n=jQuery(g||w);n.length&&e.SOW.helper.scrollAnimate(n,0,!1,200)}""!=w&&(jQuery(w).removeClass("hide hide-force"),jQuery(O).addClass("hide hide-force")),W+""=="true"&&setTimeout((function(){jQuery("#sow_ajax_modal").modal("hide")}),Number(Q)),"object"==typeof e.SOW.core.toast&&""!=_&&e.SOW.core.toast.show("success","",_,y,1500,!0),""!=d&&setTimeout((function(){jQuery(d).empty().append(o),e.SOW.helper.consoleLogReinit(t,d),e.SOW.reinit(d)}),Number(Q)+100)}})}}))}}}(jQuery),function(e){"use strict";window.ajax_select_chain_process=null,e.SOW.core.ajax_select={config:{method:"GET",contentType:"",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"},callback_function:""},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Ajax Select"),this.selector?this.collection.each((function(){e.SOW.core.ajax_select.process(e(this))})):(e.SOW.core.ajax_select.process(e("select.js-ajax")),this.collection)},process:function(t){var o=t.data("form-target")||"";if(""==o){var a=t.data("ajax-url-self-populate")||"";if(""!=a){var r=t.data("ajax-method")||e.SOW.core.ajax_select.config.method,n=t.data("ajax-params")||"",i=t.data("ajax-callback-function")||e.SOW.core.ajax_select.config.callback_function,s=e.SOW.core.ajax_select.config.data_params;if(""!=n)for(var l=e.SOW.helper.params_parse(n),c=0;c<l.length;++c)s[l[c][0]]=l[c][1];e.SOW.core.ajax_select.ajax_process(a,r,s,t,"",":on_load:",t,i,"self")}t.not(".js-ajaxified").addClass("js-ajaxified").on("change",(function(){var t=jQuery(this),o=t.val()||"",a=jQuery("option:selected",t).text()||"",r=t.data("ajax-callback-function")||e.SOW.core.ajax_select.config.callback_function,n=t.data("ajax-target")||"";if(""!=n){var i=jQuery(n),s=i.data("ajax-url")||"",l=i.data("ajax-method")||e.SOW.core.ajax_select.config.method,c=i.data("ajax-params")||"",d=e.SOW.core.ajax_select.config.data_params;if(""!=s){if(""!=c)for(var u=e.SOW.helper.params_parse(c),f=0;f<u.length;++f)d[u[f][0]]=u[f][1];d.value=o,e.SOW.core.ajax_select.ajax_process(s,l,d,i,o,a,t,r,"target")}}t.children("option").each((function(){var e=jQuery(this).data("show-container")||"";""!=e&&jQuery(e).addClass("d-none hide hide-force")}));var p=t.find(":selected").data("show-container")||"";""!=p&&jQuery(p).removeClass("d-none hide hide-force")}))}else t.not(".js-ajaxified").addClass("js-ajaxified").on("change",(function(){var a=t.data("ajax-method")||e.SOW.core.ajax_select.config.method,r=t.data("ajax-url")||"",n=t.data("ajax-params")||"",i=t.val()||"",s=e.SOW.core.ajax_select.config.data_params;if(s.value=i,""!=r){if(""==i)return jQuery("input[type=text], input[type=number], input[type=tel], textarea",o).val(""),jQuery("input[type=checkbox]",o).prop("checked",!1),jQuery("select",o).val(0),void("object"==typeof e.SOW.vendor.bootstrap_select&&t.hasClass("bs-select")&&e.SOW.vendor.bootstrap_select.refresh(t));if(""!=n)for(var l=e.SOW.helper.params_parse(n),c=0;c<l.length;++c)s[l[c][0]]=l[c][1];jQuery.ajax({url:r,type:a,data:s,contentType:e.SOW.core.ajax_select.config.contentType,dataType:e.SOW.core.ajax_select.config.dataType,headers:e.SOW.core.ajax_select.config.headers,crossDomain:e.SOW.core.ajax_select.config.crossDomain,beforeSend:function(){e.SOW.helper.consoleLog(r),e.SOW.helper.consoleLog(a,s),e.SOW.helper.consoleLog("----------------------------")},error:function(t,o,a){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!")},success:function(t){try{t=JSON.parse(t)}catch(e){}if("object"!=typeof t)return e.SOW.helper.consoleLog("----------------------------"),e.SOW.helper.consoleLog("Select Form Populate : Not JSON! Aborting..."),void e.SOW.helper.consoleLog("----------------------------");for(var a=0;a<t.length;a++)for(var r in t[a]){if((n=e(o+" #"+r)).length<1)var n=e(o+" ."+r);n.length<1||"file"!=n.attr("type")&&("checkbox"==n.attr("type")||"radio"==n.attr("type")?t[a][r]>0||1==t[a][r]?n.prop("checked",!0):n.prop("checked",!1):n.is("input")||n.is("textarea")?n.val(t[a][r]):n.is("select")&&(n.val(t[a][r]),"object"==typeof e.SOW.vendor.bootstrap_select&&e.SOW.vendor.bootstrap_select.refresh(n)))}}})}}))},ajax_process:function(t,o,a,r,n,i,s,l,c){jQuery.ajax({url:t,type:o,data:a,contentType:e.SOW.core.ajax_select.config.contentType,dataType:e.SOW.core.ajax_select.config.dataType,headers:e.SOW.core.ajax_select.config.headers,crossDomain:e.SOW.core.ajax_select.config.crossDomain,beforeSend:function(){e.SOW.helper.consoleLog(t),e.SOW.helper.consoleLog(o,a),e.SOW.helper.consoleLog("----------------------------")},error:function(t,o,a){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!")},success:function(t){var o=n,a=i,d=null,u="";r.removeAttr("disabled");try{var f=JSON.parse(t)}catch(o){f=t;e.SOW.helper.consoleLog(t)}t=null;if(r.find("option").remove(),f.length>0){for(var p=0;p<f.length;p++)if(void 0!==f[p].label&&(void 0===f[p].value&&(f[p].value=""),""!=f[p].label||""!=f[p].value)){var h=new Option(f[p].label,f[p].value);if(jQuery(h).html(f[p].label),void 0!==f[p].selected&&1==f[p].selected){jQuery(h).attr("selected","selected");u=f[p].value}if(void 0!==f[p].show_container&&(jQuery(h).attr("data-show-container",f[p].show_container),u==f[p].value&&jQuery(f[p].show_container).removeClass("d-none hide hide-force")),r.append(h),f[p].selected&&!0===f[p].selected&&"self"===c)d=!0}}else r.prop("disabled",!0).attr("disabled","");"object"==typeof e.SOW.vendor.bootstrap_select&&e.SOW.vendor.bootstrap_select.refresh(r),setTimeout((function(){if(""!=l&&void 0!==l&&e.SOW.core.ajax_select.ajax_callback(l,s,o,a),null!==r&&r.not(".js-callbackified").addClass("js-callbackified").on("change",(function(){var t=jQuery(this),o=t.val()||"",a=t.find("option:selected").text()||"",r=t.data("ajax-callback-function")||e.SOW.core.ajax_select.config.callback_function;""!=r&&void 0!==r&&e.SOW.core.ajax_select.ajax_callback(r,t,o,a)})),!0===d&&r.data("ajax-target")){var t=r.data("ajax-target")||"",n=jQuery(t),i=n.data("ajax-url")||"",c=n.data("ajax-method")||e.SOW.core.ajax_select.config.method,f=n.data("ajax-params")||"",p=e.SOW.core.ajax_select.config.data_params;if(""==i)return;if(""!=f)for(var h=e.SOW.helper.params_parse(f),g=0;g<h.length;++g)p[h[g][0]]=h[g][1];p.value=u,e.SOW.core.ajax_select.ajax_process(i,c,p,n,"","",r,l,"target")}}),100)}})},ajax_callback:function(t,o,a,r){""!=t&&"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(t,window,o,a,r)}}}(jQuery),function(e){"use strict";var t="SOW Ajax Modal";e.SOW.core.ajax_modal={config:{method:"GET",contentType:"",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"},modal_container:"#sow_ajax_modal",modal_size:"modal-md",modal_centered:"false",callback_function:""},collection:e(),init:function(o,a){var r=e.SOW.helper.__selector(o),n=e.SOW.helper.check_var(a);if(this.selector=r[0],this.collection=r[1],this.selector_orig=r[2],this.config=null!==n?e.extend({},this.config,n):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : "+t),e.SOW.core.ajax_modal.ajax_modal_template(),this.selector?this.collection.each((function(){e.SOW.core.ajax_modal.ajax_modal(e(this))})):(e.SOW.core.ajax_modal.ajax_modal(e(".js-ajax-modal")),e(".js-ajax-modal"))},ajax_modal:function(t){this.selector,this.selector_orig;var o=this.config.modal_container,a=(this.config.modal_size,this.config.callback_function),r=(this.config.method,this.config.modal_centered,t.attr("href")||""),n=t.data("href")||"";""!=n&&(r=n),""!=r&&(t.not(".js-modalified").addClass("js-modalified").on("click",(function(t){t.preventDefault();var r=jQuery(this),n=r.attr("href")||"",i=r.data("href")||"",s=r.attr("data-ajax-modal-type")||"",l=r.data("ajax-modal-container")||o,c=r.data("ajax-modal-callback-function")||a,d=r.data("ajax-modal-size")||d,u=r.data("ajax-modal-backdrop")||"",f=r.data("ajax-modal-centered")||f,p=r.data("ajax-modal-method")||p;""!=i&&(n=i),""!=n&&"#"!=n&&"javascript:;"!=n&&(r.hasClass("js-ignore")||(jQuery(l+" .modal-content").empty(),jQuery(".dropdown-menu:not(.dropdown-menu-hover)").parent().find('a[data-bs-toggle="dropdown"][aria-expanded="true"]').attr("aria-expanded","false").dropdown("hide"),e.SOW.core.ajax_modal.modalAjaxShow(n,l,d,f,u,c,p,s)))})),e.SOW.core.ajax_modal.ajax_modal_onLoad())},modalAjaxShow:function(o,a,r,n,i,s,l,c){r=void 0!==r?r:this.config.modal_size,n=void 0!==n?n:this.config.modal_centered,i=void 0!==i?i:"",s=void 0!==s?s:"";if(e.SOW.core.ajax_modal.ajax_modal_template(),"#"!=o&&""!=o){if(""==a)a=this.config.modal_container;if(""==r)r=this.config.modal_size;if(jQuery(".modal-dialog",a).removeClass("modal-dialog-centered modal-sm modal-lg modal-xl modal-full"),""!=r&&jQuery(".modal-dialog",a).addClass(r),1==n&&jQuery(".modal-dialog",a).addClass("modal-dialog-centered"),""!=i)var d="static",u=!1;else d="dynamic",u=!0;if(jQuery(".modal-backdrop").remove(),c.toLowerCase()+""=="video"){d="dynamic";var f=e.SOW.helper.videoEmbedFromUrl(o,1);if(null===f)return"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!"),!1;var p='<div class="text-center p-6 fs-1 text-muted '+e.SOW.config.sow__icon_loading+'"></div>',h=document.querySelector(a);return h.querySelector(".modal-content").innerHTML=p,new bootstrap.Modal(h,{backdrop:d,keyboard:u}).show(),setTimeout((function(){jQuery(a).find(".modal-content").html(f).addClass("rounded-xl bg-dark shadow-primary-xs border border-dark border-3").prepend('<button type="button" style="margin-top:-18px;margin-right:-15px;width:34px;height:34px;" class="border-0 d-flex align-items-center justify-content-center pointer position-absolute top-0 end-0 text-white bg-dark rounded-circle z-index-100" data-bs-dismiss="modal" aria-label="Close"><span class="fi fi-close fs-6" aria-hidden="true"></span></button>'),jQuery("iframe",a).attr("src",jQuery("iframe",a).data("autoplay-src")).addClass("rounded-xl")}),450),jQuery(a).on("hidden.bs.modal",(function(e){jQuery(a).remove(),document.body.removeAttribute("data-bs-overflow"),document.body.style.overflow="",document.body.style.paddingRight=""})),!1}jQuery.ajax({url:o,type:l,data:e.SOW.core.ajax_modal.config.data_params,contentType:e.SOW.core.ajax_modal.config.contentType,dataType:e.SOW.core.ajax_modal.config.dataType,headers:e.SOW.core.ajax_modal.config.headers,crossDomain:e.SOW.core.ajax_modal.config.crossDomain,beforeSend:function(){var t='<div class="text-center p-6 fs--30 text-muted '+e.SOW.config.sow__icon_loading+'"></div>',o=document.querySelector(a);o.querySelector(".modal-content").innerHTML=t,new bootstrap.Modal(o,{backdrop:d,keyboard:u}).show()},error:function(t,o,a){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!")},success:function(o){jQuery(a).find(".modal-content").html(o),setTimeout((function(){""!=s&&"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(s,window,a),e.SOW.helper.consoleLogReinit(t,a),e.SOW.reinit(a),jQuery("input:visible:enabled:first",a).focus()}),450)}})}},ajax_modal_template:function(){if(!(jQuery(this.config.modal_container).length>0)){var t='<div class="modal fade" id="'+this.config.modal_container.replace("#","")+'" role="dialog" tabindex="-1" aria-hidden="true"><div class="modal-dialog '+this.config.modal_size+'" role="document"><div class="modal-content">\x3c!-- content added by ajax --\x3e</div></div></div>';e.SOW.globals.elBody.append(t),e(this.config.modal_container).modal("handleUpdate")}},createFromThinAir:function(t,o,a,r,n){t||e.SOW.helper.consoleLog("SOW Ajax Modal : [createFromThinAir()] : No url provided!"),this.selector_orig||(this.selector_orig=".js-ajax-modal"),o||(o="modal-md"),a||(a="false"),r||(r=""),n||(n="");var i=this.selector_orig.replace(".","");return e.SOW.globals.elBody.append('<a id="ajax_modal_create_tmp" href="'+t+'" class="hide '+i+'"></a>'),jQuery("#ajax_modal_create_tmp").attr("data-ajax-modal-size",o).attr("data-ajax-modal-centered",a).attr("data-ajax-modal-backdrop",r).attr("data-ajax-callback-function",n),e.SOW.core.ajax_modal.init(this.selector_orig),jQuery("#ajax_modal_create_tmp").trigger("click"),setTimeout((function(){jQuery("#ajax_modal_create_tmp").off().remove()}),350),!0},ajax_modal_onLoad:function(){jQuery(".js-ajax-modal.js-onload"+this.selector).not(".js-loadmodalified").addClass("js-loadmodalified").each((function(){var e=jQuery(this),t=jQuery(this).attr("data-ajax-modal-delay")||3e3,o=e.attr("id")||"";if(""!=o&&"1"==Cookies.get(o,{path:"/"}))return;setTimeout((function(){e.trigger("click")}),Number(t))}))},attach:function(t,o){var a="string"==typeof t?jquery(t):t,r="number"==typeof o?o:200;return a.hasClass("js-modalified")&&a.off().removeClass("js-modalified"),a.addClass("js-ajax-modal"),e.SOW.core.ajax_modal.ajax_modal(a),setTimeout((function(){a.trigger("click")}),r),!0},__selector:function(){return this.selector_orig}}}(jQuery),function(e){"use strict";e.SOW.core.ajax_confirm={config:{method:"GET",contentType:"",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"},confirm_container:"#sow_ajax_confirm",confirm_size:"",confirm_centered:!1,confirm_type:"",confirm_mode:"regular",confirm_title:"Please Confirm",confirm_body:"Are you sure?",btn_class_yes:"btn-sm btn-primary",btn_class_no:"btn-sm btn-light",btn_text_yes:"Confirm",btn_text_no:"Cancel",btn_icon_yes:"fi fi-check",btn_icon_no:"fi fi-close",callback_function:""},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.selector_orig=a[2],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Ajax Confirm"),e.SOW.core.ajax_confirm.ajax_confirm_template(),this.selector?this.collection.each((function(){e.SOW.core.ajax_confirm.ajax_confirm(e(this))})):(e.SOW.core.ajax_confirm.ajax_confirm(e("a.js-ajax-confirm")),this.collection)},ajax_confirm:function(t){this.selector,this.selector_orig;var o=this.config.confirm_container,a=this.config.confirm_size,r=this.config.confirm_centered,n=this.config.callback_function,i=this.config.method,s=this.config.confirm_mode,l=this.config.confirm_type,c=this.config.confirm_title,d=this.config.confirm_body,u=this.config.btn_class_yes,f=this.config.btn_class_no,p=this.config.btn_text_yes,h=this.config.btn_text_no,g=this.config.btn_icon_yes,m=this.config.btn_icon_no,v=t.attr("href")||"",y=t.data("href")||"";if(""!=y&&(v=y),""!=v)return t.attr("data-href",v),t.attr("href","#"),t.not(".js-ajaxconfirmified").addClass("js-ajaxconfirmified").on("click",(function(t){t.preventDefault();var v=jQuery(this),y=v.data("href")||"#",_=v.data("ajax-confirm-container")||o,j=v.data("ajax-confirm-size")||a,b=v.data("ajax-confirm-centered")||r,S=v.data("ajax-confirm-callback-function")||n,x=v.data("ajax-confirm-type")||l,w=v.data("ajax-confirm-mode")||s,O=v.data("ajax-confirm-method")||i,W=v.data("ajax-confirm-success-target")||"",Q=v.data("ajax-confirm-success-target-action")||"",C=v.data("ajax-confirm-success-target-class")||"",k=v.data("ajax-confirm-title")||c,T=v.data("ajax-confirm-body")||d,A=v.data("ajax-confirm-btn-yes-text")||p,L=v.data("ajax-confirm-btn-yes-class")||u,D=v.data("ajax-confirm-btn-yes-icon")||g,E=v.data("ajax-confirm-btn-no-text")||h,N=v.data("ajax-confirm-btn-no-class")||f,q=v.data("ajax-confirm-btn-no-icon")||m;if(!v.hasClass("js-ignore")){if(e.SOW.core.ajax_confirm.ajax_confirm_template(),jQuery(".dropdown-menu:not(.dropdown-menu-hover)").parent().find('a[data-bs-toggle="dropdown"][aria-expanded="true"]').attr("aria-expanded","false").dropdown("hide"),jQuery(".modal-dialog",_).removeClass("modal-sm, modal-md, modal-lg, modal-xlg, modal-full bg-primary-soft bg-secondary-soft bg-success-soft bg-warning-soft bg-danger-soft bg-pink-soft bg-indigo-soft bg-purple-soft").addClass(j),jQuery(".modal-header",_).removeClass("bg-primary-soft bg-secondary-soft bg-success-soft bg-warning-soft bg-danger-soft bg-info-soft bg-pink-soft bg-indigo-soft bg-purple-soft"),""!=x&&jQuery(".modal-header",_).addClass("bg-"+x+"-soft"),b+""=="true"?jQuery(".modal-dialog",_).addClass("modal-dialog-centered"):jQuery(".modal-dialog",_).removeClass("modal-dialog-centered"),jQuery(".btn-confirm-yes",_).attr("class","").attr("class","btn btn-confirm-yes"),jQuery(".btn-confirm-no",_).attr("class","").attr("class","btn btn-confirm-no"),jQuery(".btn-confirm-yes>i",_).remove(),jQuery(".btn-confirm-no>i",_).remove(),jQuery(_+" .modal-footer").removeClass("hide"),D.length>1)A='<i class="'+D+'"></i> '+A;if(q.length>1)E='<i class="'+q+'"></i> '+E;jQuery(".btn-confirm-yes",_).attr("href",y).html(A).addClass(L),jQuery(".btn-confirm-no",_).html(E).addClass(N),jQuery(".modal-title",_).html(k),jQuery(".modal-body",_).html(T),jQuery(_).modal("show"),"ajax"==w?jQuery(".btn-confirm-yes",_).unbind("click").on("click",(function(t){t.preventDefault(),jQuery.ajax({url:y,type:O,data:e.SOW.core.ajax_confirm.config.data_params,contentType:e.SOW.core.ajax_confirm.config.contentType,dataType:e.SOW.core.ajax_confirm.config.dataType,headers:e.SOW.core.ajax_confirm.config.headers,crossDomain:e.SOW.core.ajax_confirm.config.crossDomain,beforeSend:function(){e.SOW.helper.loadingSpinner("show",_+" .modal-content"),jQuery(".btn-confirm-yes",_).addClass("disabled").prop("disabled",!0)},error:function(t,o,a){e.SOW.helper.loadingSpinner("hide"),jQuery(".btn-confirm-yes",_).removeClass("disabled").prop("disabled",!1),"object"==typeof e.SOW.core.toast?(e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","top-center",0,!0),jQuery(_).modal("hide")):alert("[404] Unexpected internal error!")},success:function(t){e.SOW.helper.loadingSpinner("hide"),jQuery(_+" .modal-footer").addClass("hide"),jQuery(_+" .modal-content .modal-body").html('<div class="js-modal-confirm-ok py-5 fs-1 text-center animate-bouncein"><i class="'+e.SOW.config.sow__icon_check+' text-muted"></i></div>'),jQuery(".btn-confirm-yes",_).removeClass("disabled").prop("disabled",!1),setTimeout((function(){jQuery(_).modal("hide")}),500),""!=S&&"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(S,window,v,t),""!=W&&("remove"==Q?jQuery(W).remove():"addClass"==Q?jQuery(W).addClass(C):"removeClass"==Q?jQuery(W).removeClass(C):"toggleClass"==Q&&jQuery(W).toggleClass(C))}})})):(""!=S&&"function"==typeof e.SOW.helper.executeFunctionByName&&jQuery(".btn-confirm-yes",_).unbind("click").on("click",(function(t){t.preventDefault(),e.SOW.helper.executeFunctionByName(S,window,v)})),jQuery(".btn-confirm-yes",_).unbind("click").on("click",(function(e){jQuery(_).modal("hide")})))}})),!0},ajax_confirm_template:function(){jQuery(this.config.confirm_container).remove(),jQuery(".modal-backdrop").remove();var t='<div class="modal fade" id="'+this.config.confirm_container.replace("#","")+'" role="dialog" tabindex="-1" aria-labelledby="modal-title-confirm" aria-hidden="true"><div class="modal-dialog '+this.config.confirm_size+'" role="document"><div class="modal-content"><div class="modal-header border-0"><h5 id="modal-title-confirm" class="modal-title" style="font-size:18px">'+this.config.confirm_title+'</h5><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div><div class="modal-body p-3">'+this.config.confirm_body+'</div><div class="modal-footer border-top-0"><a href="#" class="btn py-3 btn-confirm-yes '+this.config.btn_class_yes+'">'+this.config.btn_text_yes+'</a><a href="#" class="btn py-3 btn-confirm-no '+this.config.btn_class_no+'" data-bs-dismiss="modal">'+this.config.btn_text_no+"</a></div></div></div></div>";e.SOW.globals.elBody.append(t),e(this.config.confirm_container).modal("handleUpdate"),t=null},__selector:function(){return this.selector_orig}}}(jQuery),function(e){"use strict";window.fileInventory={},window.filesLastBulk=[],window.filesSizeBulk=0,window.browser_hasIssues=!1,e.SOW.core.file_upload={config:{toast_pos:"bottom-center",toast_delay:2e3,browsers_with_issues:["safari"]},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config;var n=e.SOW.helper.get_browser();return-1!==this.config.browsers_with_issues.indexOf(n)&&(window.browser_hasIssues=!0),this.selector?(e.SOW.core.file_upload.file_upload__init(this.selector),null):(e.SOW.core.file_upload.file_upload__init('input[type="file"].custom-file-input, input[type="file"].form-control'),this.collection)},file_upload__init:function(t){jQuery(t).each((function(){var t=jQuery(this),o=t.attr("multiple")||!1,a=t.attr("name")||"",r=t.data("file-ajax-delete-enable")||!1,n=t.data("file-ajax-reorder-enable")||!1,i=e.SOW.helper.randomStr(4,"N");t.attr("data-js-advanced-identifier",i),window.fileInventory[i]=[],!1!==o&&-1===a.indexOf("[]")&&t.attr("name",a+"[]"),0!=r&&(0!=o&&e.SOW.core.file_upload.file_upload__preview_delbtn_bind_multiple(t,!0),0==o&&e.SOW.core.file_upload.file_upload__preview_delbtn_bind_single(t,!0)),0!=n&&e.SOW.core.file_upload.file_upload__preview__reorder_bind(t,!0)})),jQuery(t).not(".js-advancified").addClass("js-advancified").on("change",(function(t){var o=jQuery(this),a=o.data("js-advanced-identifier")||"",r=o.attr("multiple")||!1,n=!1===r?o.get(0).files[0].name.replace("C:\\fakepath\\"," "):"",i=o.next(".custom-file-label").attr("data-orig")||"",s=o.data("file-ext")||"",l=o.data("file-exist-err-msg")||"File already exist: ",c=o.data("file-ext-err-msg")||"Allowed: ",d=o.data("file-size-err-item-msg")||"File too large! ",u=o.data("file-size-err-total-msg")||"Total size exceeded!",f=o.data("file-size-err-total-msg")||"selected",p=o.data("file-size-err-max-msg")||"Maximum allowed files:",h=o.data("file-toast-position")||"bottom-center",g=o.data("file-max-size-kb-per-file")||0,m=o.data("file-max-size-kb-total")||0,v=o.data("file-max-total-files")||0,y=o.data("file-btn-clear")||"a.js-advanced-form-input-clone-clear",_=o.data("file-btn-submit")||"button.js-advanced-form-input-clone-submit",j=o.data("file-preview-container")||"",b=o.data("file-preview-img-height")||120,S=o.data("file-preview-show-info"),x=(S=o.data("file-preview-show-info")||!1,o.data("file-preview-list-type")||"box"),w=o.data("file-preview-class")||"",O=o.data("file-preview-img-cover")||!1,W=o.data("file-ajax-reorder-enable")||!1,Q=o.data("file-ajax-delete-enable")||!1,C=o.data("file-ajax-upload-enable")||!1;"list"==x&&(O=!0),o.attr("data-orig-name",jQuery(this).attr("name")),""==i&&(i=o.next(".custom-file-label").html()||"Choose file",o.next(".custom-file-label").attr("data-orig",i)),s&&(s=(s=s.toLowerCase()).split(",").map((function(e){return e.trim()}))),!0!==window.browser_hasIssues&&!1!==r||(window.fileInventory[a]=[],1!=C&&(jQuery(".js-file-input-item",j).remove(),jQuery(y).addClass("hide"))),!1===r?o.next(".custom-file-label").text(n):o.next(".custom-file-label").text(o.get(0).files.length+" "+f);var k=o.attr("name")||o.data("orig-name"),T=o.clone(!0).off(),A="bulkNo_"+e.SOW.helper.randomStr(8),L=o.get(0).files.length,D=0;!1!==r&&o.next(".custom-file-label").html(i);for(var E=0;E<L;++E){var N=o.get(0).files[E],q=N.name.substring(N.name.lastIndexOf(".")+1,N.name.length)||null,I=e.SOW.helper.byte2kb(N.size),z="rand_"+e.SOW.helper.randomStr(3),B=N.name+":"+N.size+":"+a;if(window.filesLastBulk.push(z),q&&(q=q.toLowerCase()),v>0){var R=jQuery(".js-file-input-item",j).length;if(parseInt(R)>=v){var F=p+" "+v;return"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","",F,h,6e3,!0):alert(F),void e.SOW.core.file_upload.file_upload__del_bulk(o,A,y,_,j,k,a)}}if(m>0){var H=D+window.filesSizeBulk;if(parseInt(H)>parseInt(m)){F=u+" <hr>("+m+"kb)";return"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("danger","",F,h,6e3,!0),void e.SOW.core.file_upload.file_upload__del_bulk(o,A,y,_,j,k,a)}}if(g>0&&parseInt(I)>parseInt(g)){F=d+" <hr>"+N.name+"<br>("+I+"kb / "+g+"Kb)";return"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("danger","",F,h,6e3,!0),void e.SOW.core.file_upload.file_upload__del_bulk(o,A,y,_,j,k,a)}if(D+=I,""!=s&&-1===s.indexOf(q)){F=c+" "+s.join(", ");return"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","",F,h,4500,!0):alert(F),void e.SOW.core.file_upload.file_upload__del_bulk(o,A,y,_,j,k,a)}if(-1!==window.fileInventory[a].indexOf(B))return"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("danger","",l+"<br> "+N.name,h,4500,!0),void e.SOW.core.file_upload.file_upload__del_bulk(o,A,y,_,j,k,a);if(window.fileInventory[a].push(B),""!=j){var M=e.SOW.core.file_upload.file_upload__preview_tpl(N,q,z,A,b,S,w,C,Q,O,x,r);jQuery(j).append(M),!0===C&&(0!=Q&&(0!=r&&e.SOW.core.file_upload.file_upload__preview_delbtn_bind_multiple(o,!1),0==r&&e.SOW.core.file_upload.file_upload__preview_delbtn_bind_single(o,!1)),!0===W&&e.SOW.core.file_upload.file_upload__preview__reorder_bind(o,!1)),"gif"!=q&&"png"!=q&&"jpg"!=q&&"jpeg"!=q||e.SOW.core.file_upload.file_upload__preview_img_render("#"+z,N,O,x)}}if(e.SOW.core.file_upload.file_upload__btn_clear_bind(y,_,o,j,k,a),!0!==window.browser_hasIssues){if(T.removeAttr("class name data-orig-name aria-describedby data-file-ajax-upload-url data-file-ajax-upload-params data-file-ajax-delete-params data-file-ajax-callback-function data-file-ajax-toast-success-txt data-file-ajax-toast-error-txt data-file-ajax-upload-enable data-file-ajax-reorder-enable data-file-ajax-reorder-url data-js-advanced-identifier data-js-file-input-clone js-advanced-identifier data-file-ext data-file-max-size-kb-per-file data-file-max-size-kb-total data-file-max-total-files data-file-ext-err-msg data-file-exist-err-msg data-file-size-err-item-msg data-file-size-err-total-msg data-file-size-err-max-msg data-file-toast-position data-file-preview-container data-file-preview-img-height data-file-preview-show-info data-file-btn-clear data-file-preview-class data-file-preview-img-cover file-preview-list-type data-file-ajax-progressbar-custom data-file-ajax-progressbar-disable"),T.attr("id",A).attr("name",k),!1!==r&&o.val("").removeAttr("name").attr("data-orig-name",k),jQuery("#js_advanced_form_identifier_"+a).length<1){var $=o.next();o.parents("label").length>0?$=o.parents("label"):o.parents("div.custom-file").length>0&&($=o.parents("div.custom-file"),o.parents("div.input-group").length>0&&($=o.parents("div.input-group"))),o.parent("form").length>0&&($=o),$.after('<div id="js_advanced_form_identifier_'+a+'" class="viewport-out opacity-0" style="width:50px;height:50px;"></div>')}jQuery("#js_advanced_form_identifier_"+a).append(T),window.filesLastBulk=[],window.filesSizeBulk+=D}!0===C&&(o.addClass("disabled").prop("disabled",!0),o.parents(".btn").addClass("disabled active"),setTimeout((function(){o.removeClass("disabled").prop("disabled",!1),o.parents(".btn").removeClass("disabled active"),e.SOW.core.file_upload.file_upload__ajax_upload(a,A)}),350))}))},file_upload__reset:function(e,t,o,a,r,n){jQuery(".js-file-input-item",a).remove(),jQuery(t).addClass("hide"),jQuery(o).addClass("hide"),e.val("").attr("name",r).removeAttr("data-orig-name").prop("disabled",!1),jQuery("#js_advanced_form_identifier_"+n).remove();var i=e.next(".custom-file-label").attr("data-orig")||"Choose file";e.next(".custom-file-label").html(i),window.fileInventory[n]=[],window.filesLastBulk=[]},file_upload__clear:function(e){jQuery('input[type="file"][data-js-advanced-identifier="'+e+'"]').val("").prop("disabled",!1)},file_upload__preview_tpl:function(t,o,a,r,n,i,s,l,c,d,u,f){var p="auto"==n||"100%"==n?n:120,h="";if("number"!=typeof n)if("list"===u)n=50;else n=p,h="img-fluid";if("list"==u&&n<50)n=50;var g="number"!=typeof n?"100%":n+"px";if(!0===d)var m="width: "+g+"; height: "+g+";";else m="min-width: "+g+"; min-height: "+g+"; width: auto; height: auto;";var v='<i class="'+e.SOW.config.sow__icon_loading+' fs--30"></i>';if(""==s)s="list"==u?"show-hover-container shadow-md mb-2 rounded":"show-hover-container shadow-md m-2 rounded";var y='<span class="js-advanced-form-default-preview absolute-full d-flex align-items-center justify-content-center opacity-6 '+("list"==u?"fs--20":"fs--30")+" "+e.SOW.config.sow__icon_loading+'"></span>',_=e.SOW.helper.byte2size(t.size),j=!1;if("gif"==o||"png"==o||"jpg"==o||"jpeg"==o||"jpeg"==o){j=!0;y+='<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="" class="hide animate-bouncein js-file-input-preview mw-100 '+h+'" height="'+n+'">'}else if(""!=o){var b=n<80?"fs--20":"fs--30";y='<span class="absolute-full d-flex align-items-center justify-content-center '+(b="list"==u?"fs--18":b)+' opacity-6 text-uppercase text-truncate">'+o+"</span>"}var S="ltr"==e.SOW.globals.direction?"left-0":"right-0",x="ltr"==e.SOW.globals.direction?"right-0":"left-0";if("list"==u){var w='<div data-id="0" data-file-name="'+t.name+'" data-file-size="'+t.size+'" id="'+a+'" class="js-file-input-item '+r+" d-flex clearfix position-relative "+s+'">';return 0!=c&&(w+='<a href="#" data-item-id="'+a+'" data-id="0" data-file-name="'+t.name+'" class="js-file-item-del position-absolute absolute-top show-hover-item '+x+' z-index-2"><span class="d-inline-block btn btn-sm bg-danger text-white" style="padding:4px 10px;margin:1px;"><i class="'+e.SOW.config.sow__icon_close+' m-0"></i></span></a>'),w+='<div class="position-relative d-inline-block bg-cover" style="width:'+n+"px; min-width:"+n+"px; height:"+n+'px">'+y+"</div>",w+='<div class="flex-fill d-flex min-w-0 align-items-center" style="padding-left:15px;padding-right:15px;">',w+='<span class="text-truncate d-block line-height-1">'+t.name,0!=i&&(w+='<br><span style="font-size:12px;" class="d-block pt-1">'+_+"</span>"),w+="</span>",w+="</div>",!0===l&&(w+='<span class="hide hide-force js-file-input-preview-ajax-uploading absolute-full d-flex align-items-center justify-content-center overlay-light overlay-opacity-8 z-index-2" style="padding-left:15px;padding-right:15px;">'+v+"</span>"),w+="</div>"}w='<span data-id="0" data-file-name="'+t.name+'" data-file-size="'+t.size+'" id="'+a+'" class="js-file-input-item '+r+" d-inline-block position-relative overflow-hidden text-center "+s+'" style="'+m+'">';return w+=!1!==d?"":y,!1!==j&&0==i||(w+='<span class="js-file-input-preview-header text-white position-absolute w-100 top-0 left-0 right-0 clearfix overlay-dark overlay-opacity-2"><span class="text-truncate d-block" style="font-size:12px;padding-left:5px;padding-right:5px;">'+t.name+"</span></span>"),0!=i&&(w+='<span class="js-file-input-preview-footer text-white position-absolute w-100 bottom-0 left-0 right-0 clearfix overlay-dark overlay-opacity-2"><span class="js-file-input-file-info-size text-truncate d-block" style="font-size:12px;padding-left:5px;padding-right:5px;">'+_+"</span></span>"),!0===l&&(0!=c&&0!=f&&(w+='<a href="#" data-item-id="'+a+'" data-id="0" data-file-name="'+t.name+'" class="js-file-item-del position-absolute absolute-top show-hover-item '+S+' z-index-2"><span class="d-inline-block btn btn-sm bg-danger text-white" style="font-size:12px;padding:4px 8px;margin:1px;"><i class="'+e.SOW.config.sow__icon_close+' m-0"></i></span></a>'),w+='<span class="hide hide-force js-file-input-preview-ajax-uploading absolute-full d-flex align-items-center justify-content-center overlay-light overlay-opacity-8 z-index-3">'+v+"</span>"),w+="</span>"},file_upload__preview_img_render:function(e,t,o,a){var r=new FileReader;r.onload=function(t){(jQuery(e+" .js-advanced-form-default-preview").remove(),!1!==o)?jQuery("list"==a?e+">.bg-cover":e).css("background-image","url("+t.target.result+")").addClass("bg-cover").removeClass("hide"):jQuery(e+" img.js-file-input-preview").attr("src",t.target.result).removeClass("hide")},r.readAsDataURL(t)},file_upload__del_bulk:function(t,o,a,r,n,i,s){for(var l=0;l<window.filesLastBulk.length;++l){jQuery("#"+o).remove(),jQuery("."+o).remove(),jQuery(".js-file-input-item",n).length<1&&e.SOW.core.file_upload.file_upload__reset(t,a,r,n,i,s)}e.SOW.core.file_upload.file_upload__clear(s),window.fileInventory[s]=[]},file_upload__preview_delbtn_bind_multiple:function(t,o){var a=t.attr("data-js-advanced-identifier")||"",r=t.attr("data-file-preview-container")||"",n=t.attr("data-file-ajax-delete-enable")||!1,i=t.attr("data-file-ajax-delete-url")||t.attr("data-file-ajax-upload-url"),s=t.attr("data-file-ajax-delete-params")||"",l=t.attr("data-file-ajax-delete-toast-txt")||"Successfully Deleted!",c=t.attr("data-file-ajax-delete-toast-position")||e.SOW.core.file_upload.config.toast_pos,d=t.attr("multiple")||!1,u=t.attr("data-file-preview-img-height")||"120";if(""!=r&&0!=d)if(""!=i&&0!=n){!0===o&&jQuery(r+" .js-file-input-item").each((function(){var t=jQuery(this),o="rand_"+e.SOW.helper.randomStr(3);t.attr("id",o),jQuery("img",t).attr("height",u),jQuery("a.js-file-item-del",t).attr("data-item-id",o)}));var f=r+" a.js-file-item-del";e.SOW.core.file_upload.file_upload__preview_item_del_ajax(a,f,s,i,l,c)}else jQuery(r+" a.js-file-item-del").remove()},file_upload__preview_delbtn_bind_single:function(t,o){var a=t.attr("data-js-advanced-identifier")||"",r=t.attr("data-file-preview-container")||"",n=t.attr("data-file-ajax-delete-enable")||!1,i=t.attr("data-file-ajax-delete-url")||t.attr("data-file-ajax-upload-url"),s=t.attr("data-file-ajax-delete-params")||"",l=t.attr("data-file-ajax-delete-toast-txt")||"Successfully Deleted!",c=t.attr("data-file-ajax-delete-toast-position")||e.SOW.core.file_upload.config.toast_pos,d=t.attr("data-file-btn-clear")||"",u=t.attr("data-file-btn-submit")||"";if(0==(t.attr("multiple")||!1)&&""!=d&&""!=i&&0!=n){jQuery(d).addClass("js-file-item-del");var f=jQuery(r+" .js-file-input-item"),p=(f.attr("data-file-name"),f.attr("id")||"");if(!(f.length<1)&&(t.prop("disabled",!0),""==p&&(p="rand_"+e.SOW.helper.randomStr(3),f.attr("id",p)),jQuery(d).attr("data-item-id",p),e.SOW.core.file_upload.file_upload__preview_item_del_ajax(a,d,s,i,l,c),!0===o)){var h=t.attr("name")||t.data("orig-name");e.SOW.core.file_upload.file_upload__btn_clear_bind(d,u,t,r,h,a)}}},file_upload__preview_item_del_ajax:function(t,o,a,r,n,i){jQuery(o).not(".js-advancified").addClass("js-advancified").on("click",(function(o){o.preventDefault();var s=jQuery(this).attr("data-item-id")||"";if(""!=s){var l=e("#"+s),c=l.attr("data-file-name")||"",d=l.attr("data-file-size")||0,u=l.attr("data-id")||0;if(""==c&&""==s)return e.SOW.helper.consoleLog("Delete request not sent!"),void e.SOW.helper.consoleLog("Please provide: data-id -OR- data-file-name ");var f=new FormData;f.append("action","delete_file"),f.append("ajax","true");for(var p=e.SOW.helper.params_parse(a),h=0;h<p.length;++h)f.append(p[h][0],p[h][1]);f.append("file_name",c),f.append("file_id",u),f.append("__info","`file_id` = internal/database file id. 0 = not provided!"),e.ajax({url:r,cache:!1,contentType:!1,processData:!1,data:f,type:"POST",headers:"",crossDomain:"",beforeSend:function(){},success:function(o){if(window.ddimgCache="",e.SOW.helper.consoleLog(o),""!=s&&jQuery("#"+s).remove(),""!=d){var a=c+":"+d+":"+t;for(var r in window.fileInventory[t])if(window.fileInventory[t][r]==a){window.fileInventory[t].splice(r,1);break}}"object"==typeof e.SOW.core.toast&&""!=n&&e.SOW.core.toast.show("success","",n,i,e.SOW.core.file_upload.config.toast_delay,!0)},error:function(t){e.SOW.helper.consoleLog(t),"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","","404 Server Error!",e.SOW.core.file_upload.config.toast_pos,e.SOW.core.file_upload.config.toast_delay,!0):alert("404 Server Error!")}})}}))},file_upload__preview__reorder_bind:function(t,o){var a=0;if("object"==typeof e.SOW.vendor.sortable){if("function"!=typeof Sortable){a=1300;if(!e.SOW.config.autoinit.sortable)return!1;var r=e.SOW.config.autoinit.sortable[1],n=e.SOW.config.autoinit.sortable[2],i=r.replace(".","");jQuery("#middle").append('<span class="hide '+i+'"></span>'),e.SOW.vendor.sortable.init(r,n)}t.attr("data-js-advanced-identifier");var s=t.attr("name")||t.attr("data-orig-name"),l=t.attr("data-file-preview-container")||"",c=t.attr("data-file-ajax-reorder-url")||t.attr("data-file-ajax-upload-url"),d=t.attr("data-file-ajax-reorder-params")||"",u=t.attr("data-file-ajax-reorder-toast-success")||"",f=t.attr("data-file-ajax-reorder-toast-position")||"",p=t.attr("data-file-ajax-reorder-enable")||!1;""!=l&&(""!=c&&0!=p?(jQuery(">:not(.js-file-input-item)",l).addClass("js-ignore"),jQuery(l).attr("data-ajax-update-url",c),jQuery(l).attr("data-ajax-update-params",d),jQuery(l).attr("data-ajax-update-identifier",s.replace("[]","")),""!=u&&jQuery(l).attr("data-update-toast-success",u),""!=f&&jQuery(l).attr("data-update-toast-position",f),setTimeout((function(){e.SOW.vendor.sortable.process(e(l))}),a)):jQuery(l+" .js-file-input-item").removeAttr("draggable"))}else e.SOW.helper.consoleLog("Ajax Image Reorder : Require Sortablejs Vendor!")},file_upload__btn_clear_bind:function(t,o,a,r,n,i){jQuery(t).removeClass("hide").on("click",(function(s){s.preventDefault(),jQuery(this).removeAttr("data-item-id data-id data-file-name"),e.SOW.core.file_upload.file_upload__reset(a,t,o,r,n,i)})),jQuery(o).removeClass("hide")},file_upload__ajax_upload:function(t,o){if(""!=o||""!=t){var a=[],r=jQuery('input[type="file"][data-js-advanced-identifier="'+t+'"]'),n=r.data("file-ajax-upload-url")||"",i=r.data("file-ajax-upload-params")||"",s=r.data("file-ajax-toast-success-txt")||"",l=r.data("file-ajax-toast-error-txt")||"",c=(r.data("file-btn-clear"),r.attr("name")||r.data("orig-name")),d=r.data("file-ajax-callback-function")||"",u=r.attr("multiple")||!1,f=r.data("file-preview-container")||"",p=(r.data("file-ajax-reorder-enable"),r.data("file-ajax-progressbar-disable")||!1),h=r.data("file-toast-position")||e.SOW.core.file_upload.config.toast_pos;if(""==n&&r.parents("form").length>0&&(n=r.parents("form").attr("action")),""!=n){if(""!=o){if(!0===window.browser_hasIssues)var g=jQuery('input[type="file"][data-js-advanced-identifier="'+t+'"]');else g=jQuery('input[type="file"]#'+o);for(var m=0;m<g.get(0).files.length;++m)a.push(g.get(0).files[m])}else{if(!0===window.browser_hasIssues)g=jQuery('input[type="file"][data-js-advanced-identifier="'+t+'"]');else g=jQuery("#js_advanced_form_identifier_"+t+'>input[type="file"]');g.each((function(){for(var e=jQuery(this).get(0).files,t=0;t<e.length;++t)a.push(e[t])}))}if(a.length<1)e.SOW.helper.consoleLog("Ajax Image Upload Status : No file found to upload!");else{var v=new FormData,y=e.SOW.helper.params_parse(i);for(m=0;m<y.length;++m)v.append(y[m][0],y[m][1]);v.append("ajax","true");for(m=0;m<a.length;++m)v.append(c,a[m]);e.ajax({url:n,cache:!1,contentType:!1,processData:!1,data:v,type:"POST",enctype:"multipart/form-data",headers:"",crossDomain:"",beforeSend:function(){jQuery(".js-file-input-item."+o+" .js-file-input-preview-ajax-uploading").removeClass("hide hide-force"),r.addClass("disabled").prop("disabled",!0),r.parents(".btn").addClass("disabled active"),r.parent().find(".js-file-input-ajax-loader").removeClass("hide hide-force"),e.SOW.core.file_upload.file_upload__ajax_upload_progressbar_init(r)},success:function(t){window.ddimgCache="",e.SOW.helper.consoleLog(t),r.removeClass("disabled").prop("disabled",!1),r.parents(".btn").removeClass("disabled active"),r.parent().find(".js-file-input-ajax-loader").addClass("hide hide-force"),jQuery(".js-file-input-item."+o+" .js-file-input-preview-ajax-uploading i").replaceWith('<i class="'+e.SOW.config.sow__icon_check+' text-success d-inline-block text-center bg-success-soft rounded-circle opacity-8 animate-bouncein" style="font-size:20px;padding-top:5px;width:40px;height:40px;"></i>'),setTimeout((function(){jQuery(".js-file-input-item."+o+" .js-file-input-preview-ajax-uploading").fadeOut(200,(function(){jQuery(this).remove()}))}),e.SOW.core.file_upload.config.toast_delay),"object"==typeof e.SOW.core.toast&&""!=s&&e.SOW.core.toast.show("success","",s,h,e.SOW.core.file_upload.config.toast_delay,!0),""!=d&&"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(d,window,t,r),e.SOW.core.file_upload.file_upload__ajax_upload_progressbar_destroy(r,!1),!1===u&&r.prop("disabled",!0);try{var a=JSON.parse(t)}catch(e){a=""}if(""!=a){if(void 0!==a.file_list)for(var n in a.file_list)jQuery(f+' .js-file-input-item[data-file-name="'+n+'"]').attr("data-id",a.file_list[n]);e.SOW.core.file_upload.file_upload__preview__reorder_bind(jQuery(f),!0)}},error:function(t){e.SOW.helper.consoleLog(t),r.removeClass("disabled").prop("disabled",!1),r.parents(".btn").removeClass("disabled active"),r.parent().find(".js-file-input-ajax-loader").addClass("hide hide-force"),jQuery(".js-file-input-item."+o+" .js-file-input-preview-ajax-uploading i").replaceWith('<i title="Ajax upload error!" class="'+e.SOW.config.sow__icon_close+' text-success d-inline-block text-center bg-danger-soft rounded-circle opacity-8 animate-bouncein" style="font-size:20px;padding-top:5px;width:40px;height:40px;"></i>'),"object"==typeof e.SOW.core.toast&&""!=l&&e.SOW.core.toast.show("danger","",l,h,e.SOW.core.file_upload.config.toast_delay,!0),e.SOW.core.file_upload.file_upload__ajax_upload_progressbar_destroy(r,!1)},xhr:function(){var o=new XMLHttpRequest;return o.upload.addEventListener("progress",(function(o){if(o.lengthComputable&&0==p){var a=o.loaded/o.total;a=Math.round(100*a);e(".js_file_input_progress__"+t+" .js-file-input-upload-percent").text(a+"%"),e(".js_file_input_progress__"+t+" .progress-bar").css("width",a+"%"),e(".js_file_input_progress__"+t+" .progress-bar").attr("aria-valuenow",a),a>=100&&(e(".js_file_input_progress__"+t+" .js-file-input-upload-percent.js-file-input-upload-percent-dynamic").prepend('<i class="'+e.SOW.config.sow__icon_check+' animate-bouncein" style="font-size:10px"></i> &nbsp; '),e(".js_file_input_progress__"+t+", .js_file_input_progress__"+t+" .js-file-input-upload-percent:not(.js-file-input-upload-percent-dynamic) .group-icon").addClass("active"))}}),!1),o}})}}else e.SOW.helper.consoleLog("Ajax Image Upload Status : [data-file-ajax-upload-url] : Missing -or- Empty!")}else e.SOW.helper.consoleLog("Ajax Image Upload Status : Identifiers missing!")},file_upload__ajax_upload_progressbar_init:function(e){if(!(e.length<1)){var t=e.data("js-advanced-identifier")||"",o=e.data("file-ajax-progressbar-custom")||"",a=e.data("file-ajax-progressbar-disable")||!1,r=e.next();if(""!=t&&0==a){if(jQuery(o).length>0){var n=jQuery(o);return n.hasClass("js_file_input_progress__"+t)||n.addClass("js_file_input_progress__"+t),jQuery(".progress-bar",n).css("width","0%"),jQuery(".progress-bar",n).css("width","0%"),jQuery(".js-file-input-upload-percent",n).text("0%"),void n.removeClass("hide hide-force")}e.parents("label").length>0?r=e.parents("label"):e.parents("div.custom-file").length>0&&(r=e.parents("div.custom-file")),jQuery(".js_file_input_progress__"+t).remove();var i='<span class="js_file_input_progress__'+t+' animate-bouncein transition-all-ease-500 position-absolute w-100 bottom-0 left-0 right-0" style="margin-bottom:-5px;heitgh:3px;"><span class="progress rounded" style="height:3px"><span class="progress-bar bg-success" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></span></span><i class="js-file-input-upload-percent js-file-input-upload-percent-dynamic float-start z-index-2 text-dark" style="font-size:11px; margin-bottom:-20px;">0%</i></span>';r.append(i)}}},file_upload__ajax_upload_progressbar_destroy:function(e,t){if(!(e.length<1)){var o=e.data("js-advanced-identifier")||"";""!=o&&setTimeout((function(){jQuery(".js_file_input_progress__"+o).not(".js-ignore").fadeOut(800,(function(){!0===t&&jQuery(this).remove()}))}),1e3)}},file_upload__destroy:function(t){t=void 0===t?"":t;jQuery(t+" "+e.SOW.core.file_upload.config.selector_advanced_file).each((function(){var t=jQuery(this),o=t.attr("name")||t.data("orig-name");t.removeClass("js-advancified"),e.SOW.core.file_upload.file_upload__ajax_upload_progressbar_destroy(t,!0),t.val("").attr("name",o).removeAttr("data-orig-name");var a=t.next(".custom-file-label").attr("data-orig")||"Choose file";t.next(".custom-file-label").html(a);var r=t.clone().off("change");t.replaceWith(r),jQuery("div>.js-file-input-item:first-child").parent().empty()})),window.fileInventory={},window.filesLastBulk=[],window.filesSizeBulk=0}}}(jQuery),function(e){"use strict";e.SOW.core.toast={config:{animation:"fade"},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Toast"),this.selector?this.collection.each((function(){e.SOW.core.toast.toast_on_load(e(this))})):(e.SOW.core.toast.toast_on_load(".toast-on-load"),this.collection)},show:function(t,o,a,r,n,i){o=void 0!==o?o:"",i=void 0!==i&&i;if("error"==(t=void 0!==t?t:""))t="danger";else if("default"==t)t="";if(""==(a=void 0!==a?a:"")&&""!=o)a=o,o="";if("top-right"==(r=void 0!==r?r:"top-left")||"top-end"==r)var s="fixed-top end-0",l="wrapper_toast_tr",c="mt-3 me-4";else if("bottom-right"==r||"bottom-end"==r)s="fixed-bottom end-0",l="wrapper_toast_br",c="mb-3 me-4";else if("top-left"==r||"top-start"==r)s="fixed-top start-0",l="wrapper_toast_tl",c="mt-3 ms-4";else if("bottom-left"==r||"bottom-start"==r)s="fixed-bottom start-0",l="wrapper_toast_bl",c="mb-3 ms-4";if("top-center"==r)s="fixed-top mx-auto",l="wrapper_toast_tc",c="mt-3";if("bottom-center"==r)s="fixed-bottom mx-auto",l="wrapper_toast_bc",c="mb-3";var d=""!=t?'<i class="float-start rounded-circle bg-'+t+'" style="width:15px;height:15px;margin-top:3px"></i>':"",u=(n=void 0!==n?n:0)>0?' data-delay="'+n+'" data-autohide="true"':' data-autohide="false" ';if(n>0)var f="",p='<div style="margin-top:-1px"><div class="progress bg-transparent" style="height:1px"><div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 100%; background-color: #121212; opacity:0.2"></div></div></div>';else f='<button type="button" style="'+(""==o?" font-size:10px; margin-top:-1px; ":"")+'" class="close float-end" data-bs-dismiss="toast" aria-label="Close"><span class="fi fi-close" style="font-size:16px" aria-hidden="true"></span></button>',p="";jQuery("#"+l).length<1&&e.SOW.globals.elBody.append('<div id="'+l+'" style="max-width:330px;max-height:75vh;z-index:9999;" class="w-100 scrollable-vertical rounded '+s+'"></div>');var h=!0===i&&""!=t?"border-0 bg-"+t:"bg-white",g='<div class="toast bg-gradient borer-0 js-toast '+e.SOW.core.toast.config.animation+" "+h+" "+c+'" role="alert" aria-live="polite" aria-atomic="true" '+u+">";if(""!=o)g=g+'<div class="toast-header px-3'+(!0===i&&""!=t?" bg-transparent overlay-dark overlay-opacity-1 text-white":"")+'"><div class="w-100 text-truncate">'+(d=!0===i?"":d)+"<strong>"+o+'</strong></div><div class="text-align-end" style="width:180px">'+f+"</div></div>";if(""==o){if(!0!==i||"success-soft"!=t&&"danger-soft"!=t&&"info-soft"!=t&&"warning-soft"!=t&&"primary-soft"!=t&&"pink-soft"!=t&&"indigo-soft"!=t)m=!0===i&&""!=t?"text-white":"text-"+t;else var m="";a='<div class="'+m+'">'+a+"</div>"}else a=!0===i&&""!=t?'<div class="text-white" style="padding-top:5px; padding-bottom:10px;">'+a+"</div>":a;g=g+p+'<div class="toast-body p-3">'+(""==o?f:"")+a+"</div></div>";jQuery("#"+l).prepend(g),jQuery("#"+l+" .js-toast:not(.hide)").toast("show"),n>0&&jQuery("#"+l+" .js-toast:not(.hide):first-child .progress>.progress-bar").filter(":not(:animated)").stop().animate({width:"100%"},0).stop().animate({width:"0%"},n),setTimeout((function(){jQuery("#"+l+" .js-toast.hide").remove()}),n+1500)},toast_on_load:function(t){t.each((function(){var t=jQuery(this),o=t.data("toast-type")||"",a=t.data("toast-title")||"",r=t.data("toast-body")||"",n=t.data("toast-delay")||0,i=t.data("toast-pos")||"top-right",s=t.data("toast-fill")||!0;s=1==s,e.SOW.core.toast.show(o,a,r,i,n,s),t.remove()}))},destroy:function(){jQuery("#wrapper_toast_tr, #wrapper_toast_br, wrapper_toast_tl, #wrapper_toast_bl, #wrapper_toast_tc, #wrapper_toast_bc").remove()}}}(jQuery),function(e){"use strict";e.SOW.core.dropdown_click_ignore={config:{},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Dropdown Click Ignore"),e.SOW.core.dropdown_click_ignore.stop_dd_empty_link(e(".dropdown-menu a")),e.SOW.core.dropdown_click_ignore.stopPropagationOnHoverEnbaled(),this.selector?this.collection.each((function(){e.SOW.core.dropdown_click_ignore.process(e(this))})):(e.SOW.core.dropdown_click_ignore.process(e(".dropdown-menu.dropdown-click-ignore")),e(".dropdown-menu.dropdown-click-ignore"))},process:function(e){jQuery("form",e).length>0?jQuery(".dropdown-click-ignore",e).on("click",(function(e){e.stopPropagation()})):e.on("click",(function(e){e.stopPropagation()}))},stop_dd_empty_link:function(e){e.not('[data-bs-toggle="collapse"]').on("click",(function(e){var t=jQuery(this);"#"!=(jQuery(this).attr("href")||"#")||t.hasClass("js-ignore")||e.preventDefault()}))},stopPropagationOnHoverEnbaled:function(){if(!0===e.SOW.globals.is_mobile)return null;jQuery('a[data-bs-toggle="dropdown"]').not("js-stoppropag").addClass("js-stoppropag").on("click",(function(e){var t=jQuery(this),o=t.attr("href")||"";if(!0===(""!=o&&"#"!=o&&"#!"!=o&&"javascript:;"!=o&&"void(0)"!=o))return!1;t.next().closest(".dropdown-menu").hasClass("dropdown-menu-hover")&&(e.preventDefault(),e.stopPropagation())}))}}}(jQuery),function(e){"use strict";e.SOW.core.dropdown={config:{},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.core.dropdown.onClickUpdateText(),!1===e.SOW.globals.is_mobile&&jQuery('#header a[data-bs-toggle="dropdown"]').not(".js-ignore-close").on("click",(function(t){var o=jQuery(this),a=o.attr("href")||"#";!1===(""!=a&&"#"!=a&&"#!"!=a&&"javascript:;"!=a&&"void(0)"!=a)&&o.next().closest(".dropdown-menu").hasClass("dropdown-menu-hover")&&(e.SOW.core.dropdown.forceCloseDropdown(o),t.preventDefault(),t.stopPropagation())})),!(jQuery(this.selector).length<1))return"object"!=typeof e.SOW.core.dropdown_click_ignore&&e.SOW.helper.consoleLog("[sow.dropdown] Missing [sow.dropdown_click_ignore]"),e.SOW.helper.consoleLog("Init : SOW Dropdown"),e.SOW.core.dropdown.process(this.collection),this.collection},process:function(t){t.parent().find('.dropdown>a[data-bs-toggle="dropdown"]').on("click",(function(t){var o=jQuery(this);this.collection=o,!0===e.SOW.globals.is_mobile&&(o.parent(".dropdown").hasClass("show")?(e.SOW.core.dropdown.__ddBSControl(o,"hide"),o.parent(".dropdown").find('.dropdown-menu .dropdown>a[data-bs-toggle="dropdown"]').each((function(t){e.SOW.core.dropdown.__ddBSControl(jQuery(this),"hide")}))):(e.SOW.core.dropdown.__ddBSControl(o,"show"),o.parent(".dropdown").parent().find('.dropdown.show>a[data-bs-toggle="dropdown"]').not(this).each((function(){e.SOW.core.dropdown.__ddBSControl(jQuery(this),"hide")}))),t.stopPropagation())}))},__ddBSControl:function(e,t){"show"==t?(e.attr("aria-expanded","true").parent(".dropdown").addClass("show"),e.next(".dropdown-menu").addClass("show")):(e.attr("aria-expanded","false").parent(".dropdown").removeClass("show"),e.next(".dropdown-menu").removeClass("show"))},onClickUpdateText:function(){return jQuery(".dropdown-menu-click-update a.dropdown-item, .dropdown-menu-click-update a.dropdown-link").not(".js-dropdown-triggerified").addClass("js-dropdown-triggerified").on("click",(function(e){var t=jQuery(this),o=t.parents(".dropdown-menu-click-update");jQuery("a.dropdown-item, a.dropdown-link",o).removeClass("active"),t.addClass("active");var a=o.parent().find('[data-bs-toggle="dropdown"]');if(a){var r=jQuery(".js-trigger-text",t).text();r&&jQuery(".js-trigger-text",a).text(r)}setTimeout((function(){!o.hasClass("dropdown-click-ignore")&&o.hasClass("show")&&o.dropdown("hide");var e=o.attr("data-dropdown-callback")||"";""!=e&&"function"==typeof window[e]&&window[e](t.attr("href"))}),0),e.preventDefault()})),!0},forceCloseDropdown:function(e){if("object"!=typeof e)return null;if(e.hasClass("js-ignore")||e.hasClass("js-ignore-close"))return null;if(!e.hasClass("dropdown-link")&&!e.hasClass("dropdown-item")&&!e.hasClass("dropdown-menu"))return null;if(!(t=e.hasClass("dropdown-menu")?e:null))var t=e.parents(".dropdown-menu")||null;if(!t)return null;t.hasClass("show")||t.dropdown("hide"),t.addClass("hide-force"),setTimeout((function(){t.removeClass("hide-force")}),300)}}}(jQuery),function(e){"use strict";var t="SOW Dropdown Ajax",o={};window.ddimgCache="",e.SOW.core.dropdown_ajax={config:{loading_icon:"fi fi-circle-spin fi-spin",clearCacheInterval:6e4,tpl_start:'<ul class="list-unstyled m-0 p-0">',tpl_end:"</ul>",tpl_ItemStart:'<li class="dropdown-item">',tpl_ItemStartWChilds:'<li class="dropdown-item dropdown">',tpl_ItemEnd:"</li>",tpl_Child_Start:'<ul class="dropdown-menu dropdown-menu-hover dropdown-menu-block-md shadow-lg b-0 m-0">',tpl_Divider:'<li class="dropdown-divider"></li>'},collection:e(),init:function(o,a){var r=e.SOW.helper.__selector(o),n=e.SOW.helper.check_var(a);if(this.selector=r[0],this.collection=r[1],this.selector_orig=r[2],this.config=null!==n?e.extend({},this.config,n):this.config,e.SOW.core.dropdown_ajax.ddImageSwitcher(),!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : "+t),e.SOW.core.dropdown_ajax.process(this.collection),this.collection},process:function(o){if(""!=o.data("dropdown-ajax-source")){if(!0===e.SOW.globals.is_mobile)var a="click";else{a="click mouseover";if(o.next().closest(".dropdown-menu").hasClass("dropdown-menu-hover"))a="mouseover"}e.SOW.core.dropdown_ajax.repopulateFromCache(),o.on(a,(function(o){var r=jQuery(this),n=r.data("dropdown-ajax-source")||"",i=r.data("dropdown-ajax-mode")||"html",s=r.data("dropdown-ajax-refresh-interval")||e.SOW.core.dropdown_ajax.config.clearCacheInterval,l=r.data("dropdown-ajax-reload-always")||!1,c=r.data("dropdown-ajax-loadicon")||e.SOW.core.dropdown_ajax.config.loading_icon,d=r.next().closest(".dropdown-menu")||"",u=r.attr("data-dropdown-ajax-cache")||"false",f=d.attr("id")||"",p=r.data("dropdown-ajax-method")||"GET",h=r.data("dropdown-ajax-contentType")||"",g=r.data("dropdown-ajax-dataType")||"";if(""!=n&&""!=d){if(""==f){f="rand_"+e.SOW.helper.randomStr(8);d.attr("id",f)}if(u+""=="true"&&r.hasClass("js-cached"))if(!1===e.SOW.core.dropdown_ajax.validateCache(n))return;"mouseover"==a&&!1===e.SOW.globals.is_mobile&&(l=!1),0==l&&s>0&&e.SOW.core.dropdown_ajax.process_clearCacheInterval(r,f,s),0==l&&r.hasClass("js-dropdownified")||(d.addClass("js-dropdownified"),jQuery.ajax({url:n,data:"json"===i?{}:{ajax:"true"},type:p,contentType:h||"application/x-www-form-urlencoded; charset=UTF-8",dataType:g||null,headers:"",crossDomain:"",beforeSend:function(){d.html('<div class="js-dd-ajax-loader text-center rounded p-3"><i class="'+c+' h5 text-gray-400"></i></div>')},error:function(t,o,a){"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0)},success:function(o){if(r.addClass("js-dropdownified"),"json"===i)o=e.SOW.core.dropdown_ajax.process_json(o);if(d.html(o),u+""=="true"&&e.SOW.core.dropdown_ajax.addToCache(n,o),"object"==typeof e.SOW.core.dropdown&&e.SOW.core.dropdown.process(d),"object"==typeof e.SOW.core.dropdown_click_ignore){var a=e("a",d);e.SOW.core.dropdown_click_ignore.stop_dd_empty_link(a)}if("object"==typeof e.SOW.core.ajax_navigation&&e.SOW.core.ajax_navigation.__initFor("#"+f),e.SOW.helper.consoleLog("[#"+f+"] Dropdown Ajax Content Loaded! "+n,"color: #999999;"),"html"==i){var s="#"+f;e.SOW.helper.consoleLogReinit(t,s),e.SOW.reinit(s)}}}))}}))}},process_json:function(t){try{var o=JSON.parse(t)}catch(e){o=t}var a="";return a+=e.SOW.core.dropdown_ajax.config.tpl_start,a+=e.SOW.core.dropdown_ajax.process_json_build_tree(o),a+=e.SOW.core.dropdown_ajax.config.tpl_end},process_json_build_tree:function(t){var o="";if(void 0===t)return o;for(var a=0;a<t.length;a++)if(void 0===t[a].divider||!0!==t[a].divider)if(void 0!==t[a].text&&t[a].text.length>0)o+=e.SOW.core.dropdown_ajax.config.tpl_ItemStart+t[a].text+e.SOW.core.dropdown_ajax.config.tpl_ItemEnd;else{var r=void 0!==t[a].childs&&t[a].childs.length>0;o+=!0===r?e.SOW.core.dropdown_ajax.config.tpl_ItemStartWChilds:e.SOW.core.dropdown_ajax.config.tpl_ItemStart;var n=!0===r?' data-bs-toggle="dropdown"':"",i=void 0!==t[a].class&&""!=t[a].class?" "+t[a].class:"";i+=void 0!==t[a].active&&1==t[a].active?" active":"",i+=void 0!==t[a].disabled&&1==t[a].disabled?" disabled":"";var s=void 0!==t[a].icon&&""!=t[a].icon?'<i class="'+t[a].icon+'"></i>':"",l=void 0!==t[a].target&&""!=t[a].target?' target="'+t[a].target+'"':"";o+='<a href="'+t[a].url+'" class="dropdown-link'+i+'"'+n+l+">"+s+t[a].label+"</a>",!0===r&&(o+=e.SOW.core.dropdown_ajax.config.tpl_Child_Start,o+=e.SOW.core.dropdown_ajax.process_json_build_tree(t[a].childs),o+=e.SOW.core.dropdown_ajax.config.tpl_end),o+=e.SOW.core.dropdown_ajax.config.tpl_ItemEnd}else o+=e.SOW.core.dropdown_ajax.config.tpl_Divider;return o},process_clearCacheInterval:function(e,t,a){var r=(new Date).getTime();void 0===o[t]?o[t]=r:r-o[t]>a&&(o[t]=r,e.removeClass("js-dropdownified"))},addToCache:function(t,o){if(!(jQuery('body[data-dropdown-ajax-cache-ignore="true"]').length>0)){var a=localStorage.getItem("cachedDropdowns"),r=a?JSON.parse(a):{},n=e.SOW.helper.strhash(t),i=(new Date).getTime();return r[n]={url:t,html:o,timestamp:i},localStorage.setItem("cachedDropdowns",JSON.stringify(r)),!0}localStorage.removeItem("cachedDropdowns")},repopulateFromCache:function(){if(!(jQuery('body[data-dropdown-ajax-cache-ignore="true"]').length>0)){var e=localStorage.getItem("cachedDropdowns");if(!e)return!1;var t=JSON.parse(e);for(var o in t)jQuery('[data-dropdown-ajax-source="'+t[o].url+'"]').addClass("js-cached").next().closest(".dropdown-menu").html(t[o].html);return!0}},validateCache:function(t){var o=localStorage.getItem("cachedDropdowns");if(!o)return!0;var a=JSON.parse(o),r=e.SOW.helper.strhash(t);return(new Date).getTime()-a[r].timestamp>1800&&(a[r]={},delete a[r],localStorage.setItem("cachedDropdowns",JSON.stringify(a)),!0)},ddImageSwitcher:function(){var t="";window.ddimgCache="",document.querySelectorAll(".dropdown-image-list").forEach((function(o){if(o.classList.contains("js-ddimg"))return null;o.addEventListener("click",(function(o){o.preventDefault();var a=o.currentTarget;if(!a.classList.contains("js-ddimg")){a.classList.add("js-ddimg");var r=a.querySelector(".dropdown-image-container")||"",n=a.nextElementSibling||"",i=n.querySelector(".dropdown-ajax-container")||"",s=n.getAttribute("data-ddimg-ajax-populate-url")||"",l=n.getAttribute("data-ddimg-ajax-populate-params")||"",c=n.getAttribute("data-ddimg-ajax-populate-method")||"GET",d=n.getAttribute("data-ddimg-ajax-populate-class")||"float-start w--80 h--80 m-1 p-0 rounded overflow-hidden overlay-dark-hover overlay-opacity-3",u=n.getAttribute("data-ddimg-ajax-update-url")||"",f=n.getAttribute("data-ddimg-ajax-update-params")||"",p=n.getAttribute("data-ddimg-ajax-update-method")||c,h=n.getAttribute("data-ddimg-toast-success")||"Successfully Updated!",g=n.getAttribute("data-ddimg-toast-position")||"top-center",m=n.getAttribute("data-ddimg-cache")||"true",v=n.getAttribute("data-ddimg-noimg-text")||"No Images!",y=["fi","fi-circle-spin","fi-spin","fs--30","text-muted","h--80","d-middle"],_=["fs--25","transition-none","fi","fi-orbit","fi-spin","overlay-light","overlay-opacity-4","text-white"],j={ajax:"true"},b=s+c;if(""!=l)for(var S=e.SOW.helper.params_parse(l),x=0;x<S.length;++x)j[S[x][0]]=S[x][1],b+=S[x][1];m+""=="true"&&b==window.ddimgCache?(i.innerHTML=t,w()):(window.ddimgCache=b,jQuery.ajax({url:s,type:c,data:j,beforeSend:function(){y.forEach((function(e){i.classList.add(e),i.style.height="80px",i.style.fontSize="30px"}))},error:function(e,t,o){},success:function(o){o=e.SOW.helper.jsonParse(o);if(y.forEach((function(e){i.classList.remove(e)})),t="",o.length<1)return window.ddimgCache="",void(i.innerHTML='<span class="p-2 text-muted">'+v+"</span>");for(var a=0;a<o.length;a++)t+='<a href="#!" class="dropdown-image-item d-block bg-cover '+d+'" style="width:80px;height:80px;background-image:url('+o[a].img_src+')" data-img-src="'+o[a].img_src+'" data-img-id="'+(o[a].img_id||0)+'"></a>';i.innerHTML=t,w()}})),n.querySelectorAll(".dropdown-image-reset").forEach((function(e){e.style.width="80px",e.style.height="80px",e.addEventListener("click",(function(e){e.preventDefault();var t=e.currentTarget.getAttribute("data-img-id")||0;r.style.backgroundImage="",O("",t)}))}))}function w(){n.querySelectorAll(".dropdown-image-item").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault();var t=e.currentTarget,o=t.getAttribute("data-img-src")||"",a=t.getAttribute("data-img-id")||0;return r.style.backgroundImage="url('"+o+"')",O(o,a),null}))}))}function O(t,o){if(a.querySelector(".dropdown-ddimg-img-id")&&a.querySelector(".dropdown-ddimg-img-id").setAttribute("value",o),a.querySelector(".dropdown-ddimg-img-src")&&a.querySelector(".dropdown-ddimg-img-src").setAttribute("value",t),""==u)return null;var n={ajax:"true",img_src:t,img_id:o};if(""!=f)for(var i=e.SOW.helper.params_parse(f),s=0;s<i.length;++s)n[i[s][0]]=i[s][1];jQuery.ajax({url:u,type:p,data:n,beforeSend:function(){_.forEach((function(e){r.classList.add(e)}))},error:function(e,t,o){},success:function(t){_.forEach((function(e){r.classList.remove(e)})),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("success","",h,g,1500,!0)}})}}))}))}}}(jQuery),function(e){"use strict";window.sowCountInterval=null,window.sowCountBtnList={},e.SOW.core.count_animate={config:{count_duration:1500,easing:"easeInOutExpo"},collection:e(),init:function(t,o){var a="[data-toggle=count]",r=e.SOW.helper.check_var(o);if(this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.core.count_animate.btn_process(a,"[data-count-target]"),!(e(a).length<1)){e.SOW.helper.consoleLog("Init : SOW Count Animate"),e.SOW.core.count_animate.process(e(a));var n=!1;return e(window).scroll((function(){n=!0})),window.sowCountInterval=setInterval((function(){n&&(n=!1,e.SOW.core.count_animate.process(e(a)))}),250),e(a)}null!==window.sowCountInterval&&(clearInterval(window.sowCountInterval),window.sowCountInterval=null,e(a).stop(!0,!0))},process:function(t){e.SOW.core.count_animate.custom_easing();var o=jQuery(window).scrollTop()||0,a=(e.SOW.globals.height||0)+o;t.not(".js-count-completed").each((function(t){var o=jQuery(this),r=o.offset().top||0;a>r&&e.SOW.core.count_animate.animate(o)}))},animate:function(t){var o=t.attr("data-count-from")||0,a=t.attr("data-count-to")||0,r=t.attr("data-count-duration")||e.SOW.core.count_animate.count_duration,n=t.data("count-callback")||"",i=t.data("count-decimals")||"",s=t.data("count-oncomplete")||"";o!=a&&jQuery({sowCount:o}).animate({sowCount:a},{duration:Number(r),easing:e.SOW.core.count_animate.easing,queue:!0,step:function(e){var o=a.substr(0,a.indexOf("."))?parseFloat(e).toFixed(2):Math.floor(e);if(i)o=parseFloat(o).toFixed(i);t.text(o)},start:function(){t.addClass("js-count-completed")},complete:function(){""!=n&&"function"==typeof e.SOW.helper.executeFunctionByName&&e.SOW.helper.executeFunctionByName(n,window,t),"object"==typeof s&&s.target&&("show"==s.action.toLowerCase()?jQuery(s.target).removeClass("hide hide-force"):"hide"==s.action.toLowerCase()&&jQuery(s.target).addClass("hide hide-force"),s.class&&jQuery(s.target).addClass(s.class))},done:function(e){e.stop(!0,!0)}})},btn_process:function(t,o){jQuery(o).length<1||(e.SOW.core.count_animate.custom_easing(),window.sowCountBtnList={},jQuery(o).each((function(){var t=jQuery(this),o=t.is("a")||t.is("button")?"click":"change";t.on(o,(function(t){var o=jQuery(this),a=o.attr("href")||null,r=o.data("count-target")||null;o.data("count-math");r&&(a&&t.preventDefault(),jQuery(r).stop(!0,!0),o.toggleClass("active"),e.SOW.core.count_animate.btn_process_math(o),e.SOW.core.count_animate.btn_process_toggle(r))}))})))},btn_process_math:function(t){var o=t.data("count-target")||"",a=jQuery(o),r=t.data("count-math")||"0",n=(r=Number(r),t.is("select")),i=t.attr("type");if(n){var s=t.find(":selected").data("count-math")||0;l=a.attr("data-count-to")||0,u=s}else{var l=a.attr("data-count-last-math")||0,c=(l=Number(l),a.attr("data-count-base-to")||""),d=a.attr("data-count-to")||0;d=Number(d);if(""==c){c=d,l=d;a.attr("data-count-base-to",d)}if("radio"==i)var u=t.hasClass("active")||t.is(":checked")?Number(c)+r:Number(l)-r;else u=t.hasClass("active")||t.is(":checked")?Number(l)+r:Number(l)-r}a.attr("data-toggle","count"),a.attr("data-count-last-math",u),a.attr("data-count-from",l),a.attr("data-count-to",u),e.SOW.core.count_animate.animate(a)},btn_process_toggle:function(t){jQuery(t).each((function(t){var o=jQuery(this),a=o.data("count-toggle")||"",r=o.attr("id")||"";""==r&&(r="rand_"+e.SOW.helper.randomStr(3),o.attr("id",r)),"object"==typeof a&&(a[1]||(a[1]={from:a[0].to,to:a[0].from,duration:a[0].duration}),1===window.sowCountBtnList[r]?(o.attr("data-toggle","count"),o.attr("data-count-from","0"!=a[1].from?a[1].to:a[0].from),o.attr("data-count-to",a[0].to),o.attr("data-count-duration",a[0].duration),window.sowCountBtnList[r]=0):(o.attr("data-toggle","count"),o.attr("data-count-from",a[1].from),o.attr("data-count-to",a[1].to),o.attr("data-count-duration",a[1].duration),window.sowCountBtnList[r]=1),e.SOW.core.count_animate.animate(o))}))},custom_easing:function(){e.extend(e.easing,{easeInOutExpo:function(e,t,o,a,r){return 0==t?o:t==r?o+a:(t/=r/2)<1?a/2*Math.pow(2,10*(t-1))+o:a/2*(2-Math.pow(2,-10*--t))+o},easeOutExpo:function(e,t,o,a,r){return t==r?o+a:a*(1-Math.pow(2,-10*t/r))+o}})}}}(jQuery),function(e){"use strict";e.SOW.core.btn_toggle={config:{method:"GET",contentType:"",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"}},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Btn Toggle"),this.selector?this.collection.each((function(){e.SOW.core.btn_toggle.process(e(this))})):(e.SOW.core.btn_toggle.process(e(".btn-toggle")),this.collection)},process:function(t){t.not(".js-togglified").addClass("js-togglified").on("click",(function(t){var o=jQuery(this),a=o.data("target")||o.data("bs-target")||"",r=o.data("toggle-target")||"",n=o.data("target-2")||o.data("bs-target-2")||"",i=o.data("toast-success-message")||"",s=o.data("toast-success-type")||"success",l=o.data("toast-success-position")||"top-center",c=o.data("toggle-temporized")||0,d=o.data("toggle-container-class")||"",u=o.data("toggle-container-class-2")||"",f=o.data("toggle-ajax-url-on")||"",p=o.data("toggle-ajax-url-off")||"",h=o.data("toggle-ajax-method")||e.SOW.core.btn_toggle.config.method,g=o.data("toggle-body-class")||"";if(!o.hasClass("disabled")){if(""==p&&""!=f&&o.hasClass("active"))return null;if(o.toggleClass("active"),""==a&&""!=r&&(a=r),""!=a&&""!=d&&(jQuery(a).toggleClass(d),t.preventDefault()),""!=n&&""!=d&&jQuery(n).toggleClass(u),""!=g&&(e.SOW.globals.elBody.toggleClass(g),t.preventDefault()),c>0&&setTimeout((function(){""!=a&&""!=d&&jQuery(a).removeClass(d),""!=n&&""!=u&&jQuery(n).removeClass(u),""!=g&&e.SOW.globals.elBody.removeClass(g),o.removeClass("active disabled")}),Number(c)),""==p&&""==f)return null;t.preventDefault();var m=o.hasClass("active")?f:p;jQuery.ajax({url:m,type:h,data:e.SOW.core.btn_toggle.config.data_params,contentType:e.SOW.core.btn_toggle.config.contentType,dataType:e.SOW.core.btn_toggle.config.dataType,headers:e.SOW.core.btn_toggle.config.headers,crossDomain:e.SOW.core.btn_toggle.config.crossDomain,beforeSend:function(){e.SOW.helper.consoleLog("SOW Btn Toggle [Ajax][Request Sent]: "+m)},error:function(t,o,a){"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0):alert("[404] Unexpected internal error!")},success:function(t){e.SOW.helper.consoleLog("SOW Btn Toggle [Ajax][Server Response]: "+t),""==p&&""!=f&&o.addClass("disabled"),""!=i&&"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show(s,"",i,l,c>0?3500:1500,!0)}})}}))}}}(jQuery),function(e){"use strict";window.firstLoad=!0,e.SOW.core.nav_deep={config:{speed:200},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.core.nav_deep.process_tabs(),!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Nav Deep"),window.firstLoad&&(window.firstLoad=!1,e.SOW.core.nav_deep.asideScrollToActiveLink(this.selector)),this.selector?this.collection.each((function(){e.SOW.core.nav_deep.process(e(this))})):(e.SOW.core.nav_deep.process(e(".nav-deep")),this.collection)},process:function(t){t.not(".js-ajaxified").addClass("js-ajaxified").each((function(){var t=jQuery(this).hasClass("js-ignore");e(".nav-link",jQuery(this)).on("click",(function(o){var a=jQuery(this),r=a.attr("href")||"#";""==(a.attr("target")||"")&&(a.parent(".nav-item").hasClass("active")?e.SOW.core.nav_deep.nav_deep_close(a):e.SOW.core.nav_deep.nav_deep_open(a),t||e.SOW.core.nav_deep.nav_deep_close_all(a),"#"!=r&&"#!"!=r||o.preventDefault())}))}))},nav_deep_open:function(e){e.next("ul").slideDown(this.config.speed,(function(t){e.parent(".nav-item").addClass("active"),jQuery(this).css({display:""})}))},nav_deep_close:function(e){e.next("ul").slideUp(this.config.speed,(function(t){e.parent(".nav-item").removeClass("active"),jQuery(this).css({display:""})}))},nav_deep_close_all:function(e){e.parent(".nav-item").parent().find(".nav-item.active").not(e.parent(".nav-item")).find("ul.nav").slideUp(this.config.speed,(function(e){jQuery(this).parent(".nav-item.active").removeClass("active").next().find("ul.nav").css({display:""})})),e.next().find("ul.nav").length<1&&e.parent(".nav-item").addClass("active"),setTimeout((function(){e.parent(".nav-item").parent().find(".nav-item.active").not(e.parent(".nav-item")).removeClass("active")}),this.config.speed+30)},asideScrollToActiveLink:function(t){if(!(jQuery("aside "+t+" .nav-item.active").length<1)){var o=jQuery("aside "+t+" .nav-item.active").offset(),a=jQuery("aside .scrollable-vertical").offset();if(a&&o){var r=o.top-a.top-Math.round(e.SOW.globals.height/8);o.top<e.SOW.globals.height||jQuery("aside .scrollable-vertical:not(.js-ignore)").animate({scrollTop:r},0)}}},process_tabs:function(){jQuery("a.nav-link-remember").on("click",(function(e){localStorage.setItem("activeNavTab",jQuery(e.target).attr("href"))}));var e=localStorage.getItem("activeNavTab");e&&jQuery('a.nav-link-remember[href="'+e+'"]').tab("show")}}}(jQuery),function(e){"use strict";var t="SOW Form Validate";e.SOW.core.form_validate={config:{},collection:e(),init:function(o,a){var r=e.SOW.helper.__selector(o),n=e.SOW.helper.check_var(a);if(this.selector=r[0],this.collection=r[1],this.config=null!==n?e.extend({},this.config,n):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : "+t),this.selector?this.collection.each((function(){e.SOW.core.form_validate.form_validate(e(this))})):(e.SOW.core.form_validate.form_validate(e("form.bs-validate")),this.collection)},form_validate:function(o){var a=this.selector;jQuery(a).hasClass(".js-ajax")&&"object"==typeof e.SOW.core.ajax_form?e.SOW.helper.consoleLog("Ajax Form Detected! "+t+" Skipped!"):o.submit((function(t){var o=jQuery(this),a=o.attr("id")||"",r=o.attr("data-error-scroll-up")||"false",n=o.data("error-toast-text")||"",i=o.data("error-toast-delay")||0,s=o.data("error-toast-position")||"top-right";if(""==a){a="js_"+e.SOW.helper.randomStr(10);o.attr("id",a)}if("object"!=typeof e.SOW.core.ajax_form||!o.hasClass("js-ajax")){var l=document.getElementById(a);if(jQuery(".bs-validate-info",o).addClass("hide hide-force"),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.destroy(),l.checkValidity())jQuery(".btn-bs-validate").attr("disabled",!0),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.destroy();else{if(""!=n)if("object"==typeof e.SOW.core.toast){if(Number(i)<1)i=4e3;e.SOW.core.toast.show("danger","",n,s,Number(i),!0)}else alert(n);else{jQuery(".bs-validate-info",o).removeClass("hide hide-force");var c=jQuery(".bs-validate-info",o).data("error-alert-delay")||3e3;setTimeout((function(){jQuery(".bs-validate-info",o).addClass("hide hide-force")}),Number(c))}if(jQuery(".form-control:invalid",o).first().focus(),"function"==typeof e.SOW.helper.scrollAnimate&&r+""=="true"&&!jQuery(".modal").hasClass("show")){var d=jQuery("input:invalid, select:invalid, textarea:invalid",o);e.SOW.helper.scrollAnimate(d,0,!1,200)}t.preventDefault(),t.stopPropagation()}o.addClass("was-validated")}}))}}}(jQuery),function(e){"use strict";var t="SOW Form Advanced";e.SOW.core.form_advanced={config:{selector_advanced_bulk:"a.js-form-advanced-bulk",advanced_bulk_selected_require:!1,toast_pos:"bottom-center",toast_delay:2e3,toast_msg_noitems:"No Items Selected!",selector_advanced_numeric_limit:"input.js-form-advanced-limit",selector_advanced_char_count_down:"input.js-form-advanced-char-count-down, textarea.js-form-advanced-char-count-down",selector_advanced_char_count_up:"input.js-form-advanced-char-count-up, textarea.js-form-advanced-char-count-up",selector_advanced_type_toggle:".btn-password-type-toggle"},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);return this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,e.SOW.core.form_advanced.form_advanced_bulk(this.config.selector_advanced_bulk),e.SOW.core.form_advanced.form_advanced_numeric_limit(this.config.selector_advanced_numeric_limit),e.SOW.core.form_advanced.form_advanced_char_count_down(this.config.selector_advanced_char_count_down),e.SOW.core.form_advanced.form_advanced_char_count_up(this.config.selector_advanced_char_count_up),e.SOW.core.form_advanced.form_advanced_type_toggle(this.config.selector_advanced_type_toggle),e.SOW.core.form_advanced.formAdvancedTableVariants(),e.SOW.core.form_advanced.formatCreditCard(),e.SOW.core.form_advanced.formAdvancedList(),e.SOW.core.form_advanced.formAdvancedReset(),e.SOW.core.form_advanced.formAdvancedRequired(),null},form_advanced_bulk:function(o){jQuery(o).length>0&&e.SOW.helper.consoleLog("Init : "+t),jQuery(o).not(".js-form-advancified").addClass("js-form-advancified").on("click",(function(o){o.preventDefault();var a=jQuery(this),r=a.data("js-form-advanced-bulk-container-items")||"table tbody",n=a.data("js-form-advanced-bulk-required-selected")||e.SOW.core.form_advanced.config.advanced_bulk_selected_require,i=a.data("js-form-advanced-bulk-required-txt-error")||e.SOW.core.form_advanced.config.toast_msg_noitems,s=a.data("js-form-advanced-bulk-required-txt-position")||e.SOW.core.form_advanced.config.toast_pos,l=a.data("js-form-advanced-bulk-required-custom-modal")||"",c=a.data("js-form-advanced-bulk-required-custom-modal-content-ajax")||"",d=a.data("js-form-advanced-bulk-required-modal-type")||"secondary",u=a.data("js-form-advanced-bulk-required-modal-size")||"modal-md",f=a.data("js-form-advanced-bulk-required-modal-backdrop")||"",p=a.data("js-form-advanced-bulk-required-modal-txt-title")||"Please Confirm",h=a.data("js-form-advanced-bulk-required-modal-txt-subtitle")||"-",g=a.data("js-form-advanced-bulk-required-modal-txt-body-txt")||"Are you sure?",m=a.data("js-form-advanced-bulk-required-modal-txt-body-info")||"",v=a.data("js-form-advanced-bulk-required-modal-btn-text-yes")||"Submit",y=a.data("js-form-advanced-bulk-required-modal-btn-text-no")||"Cancel",_=a.data("js-form-advanced-bulk-required-modal-btn-icon-yes")||e.SOW.config.sow__icon_check,j=a.data("js-form-advanced-bulk-required-modal-btn-icon-no")||e.SOW.config.sow__icon_close,b=a.attr("data-js-form-advanced-form-id")||"",S=a.data("js-form-advanced-bulk-submit-without-confirmation")||"false",x=a.data("js-form-advanced-bulk-hidden-action-id")||"#action",w=a.data("js-form-advanced-bulk-hidden-action-value")||"",O=jQuery(r+" input:checked").length;if(1==n&&Number(O)<1)return"object"==typeof e.SOW.core.toast?(e.SOW.core.toast.destroy(),e.SOW.core.toast.show("danger","",i,s,e.SOW.core.form_advanced.config.toast_delay,!0)):alert(i),void o.stopPropagation();if(""!=w&&jQuery(x).val(w),"false"==S){if(_.length>1)v='<i class="'+_+'"></i> '+v;if(j.length>1)y='<i class="'+j+'"></i> '+y;p=p.replace("{{no_selected}}",O),g=g.replace("{{no_selected}}",O),m=m.replace("{{no_selected}}",O),h=h.replace("{{no_selected}}",O);g=""!=m?g+'<span class="d-block d-block small mt-1">'+m+"</span>":g;if(""!=l)return""!=l&&e.SOW.core.form_advanced.form_advanced_bulk_counter_update(O),jQuery(l).modal("show"),void(""!=c&&jQuery(l).find(".modal-content").load(c,(function(){e.SOW.core.form_advanced.form_advanced_bulk_counter_update(O)})));var W='<div class="modal fade" id="js_advanced_form_bulk_modal_confirm" role="dialog" tabindex="-1" aria-labelledby="modal-title-confirm" aria-hidden="true" data-backdrop="'+f+'"><div class="modal-dialog '+u+'" role="document"><div class="modal-content"><div class="modal-header border-0 bg-'+d+'-soft"><h5 id="modal-title-confirm" class="modal-title font-light line-height-1">'+p+'<small class="d-block mt-1" style="font-size:13px">'+h+'</small></h5><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div><div class="modal-body p-lg-4">'+g+'</div><div class="modal-footer border-0"><button type="submit" class="btn btn-js-advanced-form-bulk-confirm-yes btn-'+d+'">'+v+'</button><a href="#" class="btn btn-js-advanced-form-bulk-confirm-no btn-light" data-bs-dismiss="modal">'+y+"</a></div></div></div></div>",Q="#js_advanced_form_bulk_modal_confirm .modal-body";if("custom"==d)W='<div class="modal fade show" id="js_advanced_form_bulk_modal_confirm" role="dialog" tabindex="-1" aria-labelledby="modal-title-confirm" aria-hidden="true" data-backdrop="'+f+'"><div class="modal-dialog '+u+'" role="document"><div class="modal-content"></div></div></div>',Q="#js_advanced_form_bulk_modal_confirm .modal-content";jQuery("#js_advanced_form_bulk_modal_confirm").remove(),jQuery(b).append(W),jQuery("#js_advanced_form_bulk_modal_confirm").modal("handleUpdate").modal("show"),jQuery(".modal-backdrop").length<1?(e.SOW.globals.elBody.append('<div class="modal-backdrop fade show"></div>'),jQuery("#js_advanced_form_bulk_modal_confirm").on("hidden.bs.modal",(function(e){jQuery(".modal-backdrop").remove()}))):(jQuery(".modal-backdrop").addClass("show"),jQuery("#js_advanced_form_bulk_modal_confirm").on("hidden.bs.modal",(function(e){jQuery(".modal-backdrop").removeClass("show")}))),""!=c&&(jQuery(Q).empty().append('<div class="py-4 text-center animate-bouncein"><i class="'+e.SOW.config.sow__icon_loading+' fs-1 text-muted"></i></div>'),jQuery(Q).load(c,(function(){e.SOW.core.form_advanced.form_advanced_bulk_counter_update(O),"custom"==d&&setTimeout((function(){e.SOW.helper.consoleLogReinit(t,Q),e.SOW.reinit(Q)}),200)})))}else jQuery(b).unbind().submit()}))},form_advanced_bulk_counter_update:function(e){jQuery(".js-form-advanced-selected-items").html(e)},form_advanced_numeric_limit:function(t){var o=null;document.querySelectorAll(t).forEach((function(t){t.addEventListener("keyup",(function(a){var r=a.target.getAttribute("min")||"",n=a.target.getAttribute("max")||"";o&&clearInterval(o),""==r||""!=a.target.value?(""!=r&&Number(a.target.value)<Number(r)&&(a.target.value=r),""!=n&&Number(a.target.value)>Number(n)&&(a.target.value=n,e.SOW.core.form_advanced.form_advanced_simple_alert(jQuery(t)))):o=setInterval((function(){""==a.target.value&&(a.target.value=r)}),5e3)}))}))},form_advanced_char_count_down:function(t){jQuery(t).length<1||jQuery(t).keyup((function(t){var o=jQuery(this),a=o.val(),r=a.length,n=o.attr("maxlength")||0,i=o.data("output-target")||".char-left";if(!(n<1&&""!=i))if(r>=n)o.val(a.substring(0,n-1)),jQuery(i).html("0"),e.SOW.core.form_advanced.form_advanced_simple_alert(o);else{var s=n-r;jQuery(i).html(s)}}))},form_advanced_char_count_up:function(t){jQuery(t).length<1||jQuery(t).keyup((function(){var t=jQuery(this),o=t.val(),a=o.length||0,r=t.attr("maxlength")||0,n=t.data("output-target")||".char-count";jQuery(n).html(a),a>=r&&r>0&&(t.val(o.substring(0,r)),e.SOW.core.form_advanced.form_advanced_simple_alert(t))}))},form_advanced_simple_alert:function(e){e.next(".js-form-advanced-limit-info").removeClass("hide"),e.prev(".js-form-advanced-limit-info").removeClass("hide"),setTimeout((function(){e.next(".js-form-advanced-limit-info").addClass("hide"),e.prev(".js-form-advanced-limit-info").addClass("hide")}),3e3)},form_advanced_type_toggle:function(e){jQuery(e).length<1||jQuery(e).not(".js-form_advanced_type_toggle").addClass("js-form_advanced_type_toggle").on("click",(function(e){e.preventDefault();var t=jQuery(this).data("target")||jQuery(this).data("bs-target")||"";""!=t&&(jQuery(this).toggleClass("active"),"password"==jQuery(t).attr("type")?jQuery(t).attr("type","text"):jQuery(t).attr("type","password"))}))},formAdvancedList:function(){jQuery(".form-advanced-list").each((function(){var o=jQuery(this),a=jQuery(".form-advanced-list-reveal",o).length,r=o.parents("form.bs-validate"),n=r||o.parents("form"),i=(r.length,o.attr("data-form-advanced-list-hidden-required")||"false"),s=o.attr("data-form-advanced-list-hidden-disable")||"false",l=o.attr("data-form-advanced-list-hidden-disable-class")||"";"true"==i&&a>0&&("true"==s&&(jQuery(".form-advanced-list-reveal-item [disabled]",o).not(".js-form-advanced-list-ignore").addClass("js-form-advanced-disabled"),jQuery(".form-advanced-list-reveal-item:hidden [disabled]",o).addClass("js-form-advanced-disabled").not(".js-form-advanced-list-ignore").prop("disabled",!1)),""!=l&&(jQuery(".form-advanced-list-reveal-item "+l,o).not(".js-form-advanced-list-ignore").addClass("js-form-advanced-disabled-class"),jQuery(".form-advanced-list-reveal-item:hidden "+l,o).addClass("js-form-advanced-disabled-class").not(".js-form-advanced-list-ignore").prop("disabled",!1)),jQuery(".form-advanced-list-reveal-item [required]",o).addClass("js-form-advanced-required"),jQuery(".form-advanced-list-reveal-item:hidden [required]",o).addClass("js-form-advanced-required").prop("required",!1)),jQuery(".form-advanced-list-reveal",o).on("change",(function(){var a=jQuery(this),r=a.data("form-advanced-target")||"",c=jQuery(r)||"",d=a.data("form-advanced-ajax-url")||"",u=a.attr("data-form-advanced-ajax-icon")||"true";jQuery(".form-advanced-list-reveal-item",o).addClass("hide hide-force"),""!=c&&(c.removeClass("hide hide-force"),""==d||c.hasClass("js-ajaxified")||(1==u&&c.empty().append('<div class="py-4 text-center animate-bouncein"><i class="'+e.SOW.config.sow__icon_loading+' fs--40 text-muted"></i></div>'),jQuery(c).load(d,(function(){setTimeout((function(){var a=c.attr("id");e.SOW.helper.consoleLogReinit(t,a),jQuery(".form-advanced-list-reveal-item [required]",o).addClass("js-form-advanced-required"),jQuery(".form-advanced-list-reveal-item:hidden [required]",o).addClass("js-form-advanced-required").prop("required",!1),""!=l&&(jQuery(".form-advanced-list-reveal-item:visible "+l,o).not(".js-form-advanced-list-ignore").prop("disabled",!1),jQuery(".js-form-advanced-disabled-class:hidden"+l,c).not(".js-form-advanced-list-ignore").prop("disabled",!0)),jQuery(".form-advanced-list-reveal-item:hidden [required]",o).prop("required",!1),jQuery(".js-form-advanced-required:visible",c).prop("required",!0),e.SOW.reinit(c.attr("id"))}),400)})).addClass("js-ajaxified"))),""!=c&&"true"==i&&(s+""=="true"&&(jQuery(".form-advanced-list-reveal-item:hidden [disabled]",o).not(".js-form-advanced-list-ignore").prop("disabled",!1),jQuery(".js-form-advanced-disabled:visible",c).not(".js-form-advanced-list-ignore").prop("disabled",!0)),""!=l&&(jQuery(".form-advanced-list-reveal-item:visible "+l,o).not(".js-form-advanced-list-ignore").prop("disabled",!1),jQuery(".js-form-advanced-disabled-class:hidden"+l,c).not(".js-form-advanced-list-ignore").prop("disabled",!0)),jQuery(".form-advanced-list-reveal-item:hidden [required]",o).prop("required",!1),jQuery(".js-form-advanced-required:visible",c).prop("required",!0)),jQuery(".bs-validate-info").addClass("hide hide-force"),n.removeClass("was-validated")}))}))},formAdvancedReset:function(){jQuery("a.form-advanced-reset, button.form-advanced-reset").not(".js-advancified").addClass("js-advancified").each((function(e){var t=jQuery(this),o=t.data("target-reset")||t.attr("href"),a=t.data("exclude-reset")||"";if(""==o)return null;jQuery(o+" input").on("change",(function(){t.not(a).removeClass("hide hide-force")})),jQuery(o+" textarea").on("change",(function(){t.not(a).removeClass("hide hide-force")})),t.on("click",(function(e){e.preventDefault(),jQuery(o+" input").each((function(e){var t=jQuery(this),o=t.attr("type").toLowerCase();"checkbox"!=o&&"radio"!=o&&t.not(a).val("")})),jQuery(o+" textarea").not(a).val(""),jQuery(o+" input[type=checkbox]").not(a).prop("checked",!1),jQuery(o+" input[type=radio]").not(a).prop("checked",!1),t.hasClass("js-ignore")||t.addClass("hide hide-force")}))}))},formAdvancedRequired:function(){jQuery("div.js-form-advanced-required").not(".js-advancrequirefied").addClass("js-advancrequirefied").each((function(t){var o=jQuery(this),a=o.attr("id")||"";if(""==a)return null;jQuery("[required]",o).each((function(){jQuery(this).addClass("js-required-hidden")})),o.is(":hidden")&&jQuery(".js-required-hidden",o).prop("required",!1),jQuery('input[data-target="#'+a+'"], a[href="#'+a+'"], .js-form-advanced-required-toggler').on("click",(function(t){e.SOW.core.form_advanced.__switchFormAdvancedRequired()})),jQuery("select.js-form-advanced-required-toggler").on("change",(function(t){e.SOW.core.form_advanced.__switchFormAdvancedRequired()}))}))},__switchFormAdvancedRequired:function(){window.setTimeout((function(){jQuery("div.js-form-advanced-required").each((function(){var e=jQuery(this);e.is(":hidden")?jQuery(".js-required-hidden",e).prop("required",!1):jQuery(".js-required-hidden",e).prop("required",!0)}))}),450)},formAdvancedTableVariants:function(){jQuery("div.js-form-advanced-table").not(".js-advtablified").addClass("js-advtablified").each((function(t){var o=jQuery(this),a=o.attr("id")||"",r=o.data("table-column-insert-before")||"tr>td:first-child",n=o.data("table-column-insert-element")||'<input type="text" class="form-control form-control-sm" value="">',i=o.data("table-column-delete-button")||'<span class="btn-table-column-delete fi fi-close small cursor-pointer px-1 d-inline-block"></span>',s=o.data("table-column-limit")||0,l=o.data("table-row-limit")||0,c=o.data("table-row-method")||"append";if(""==a){a="js_"+e.SOW.helper.randomStr(10);o.attr("id",a)}var d=jQuery("table>tbody>tr:first-child",o).clone();if(d.addClass("js-cloned").removeClass("js-ignore hide hide-force"),jQuery("table>tbody>tr:first-child",o).hasClass("hide")&&jQuery("table>tbody>tr:first-child",o).remove(),jQuery("input, textarea",d).val("").removeClass("js-tangepickified js-rangepickified js-bselectified js-datepickified js-advancified"),jQuery("a.btn-table-clone",d).removeClass("btn-table-clone btn-primary btn-danger btn-secondary").addClass("btn-table-clone-remove btn-light").attr("aria-expanded","true"),jQuery("input.custom-file-input",d).length>0){var u=jQuery("input.custom-file-input",d).attr("data-file-preview-container"),f=jQuery("input.custom-file-input",d).attr("data-file-btn-clear");jQuery(u,d).empty(),jQuery(f,d).addClass("hide"),jQuery("input.custom-file-input",d).prop("disabled",!1)}function p(){jQuery("table>tbody>tr>td a.btn-table-clone-remove",o).off().on("click",(function(e){e.preventDefault(),jQuery(this).parents("tr").remove(),Number(l)>0&&jQuery("table>tbody>tr",o).length<Number(l)&&jQuery(".btn-table-clone",o).removeClass("disabled").prop("disabled",!1)})),jQuery("table>tbody>tr>td .btn-table-clone-remove-confirm",o).off().on("click",(function(e){e.preventDefault(),jQuery(this).parent().find("div").removeClass("hide hide-force")})),jQuery("table>tbody>tr>td .btn-table-clone-remove-cancel",o).off().on("click",(function(e){e.preventDefault(),jQuery(this).parents("td").find("div").addClass("hide hide-force")}))}jQuery("a.btn-table-clone",o).on("click",(function(t){t.preventDefault();var r="clone_"+e.SOW.helper.randomStr(6);if(d.attr("id",r),jQuery("input.custom-file-input",d).length>0){var n=(n=jQuery("input.custom-file-input",d).attr("data-file-preview-container")).replace(".",""),i=(i=jQuery("input.custom-file-input",d).attr("data-file-btn-clear")).replace(".","");jQuery("input.custom-file-input",d).attr("data-file-preview-container","."+n+"_"+r),jQuery("input.custom-file-input",d).attr("data-file-btn-clear","."+i+"_"+r),jQuery("."+n,d).removeClass(n).addClass(n+"_"+r),jQuery("."+i,d).removeClass(i).addClass(i+"_"+r)}"append"==c?d.clone().appendTo("#"+a+" table>tbody"):d.clone().prependTo("#"+a+" table>tbody"),p(),o.removeClass("js-advancrequirefied"),e.SOW.reinit("#"+r),Number(l)>0&&jQuery("table>tbody>tr",o).length>=Number(l)&&jQuery(".btn-table-clone",o).addClass("disabled").prop("disabled",!0)})),jQuery(".js-form-advanced-table-column-add button",o).on("click",(function(t){t.preventDefault();var a=jQuery(this).parents(".js-form-advanced-table-column-add"),l=(l=jQuery("input",a).val()||"").trim(),c=(c=jQuery("input",a).attr("name")||"").trim();if(jQuery("input",a).removeClass("is-invalid"),""==l)return jQuery("input",a).addClass("is-invalid"),void window.setTimeout((function(){jQuery("input",a).removeClass("is-invalid")}),1e3);c=(c=""==c?l:c+"["+l+"]").toLowerCase();var u="js_"+e.SOW.helper.randomStr(6),f=l.replace(/^./,l[0].toUpperCase());if(jQuery('tbody [name="'+c+'[]"]',o).length>0)return jQuery("input",a).val(""),null;var p='<th data-id="'+u+'" class="js-table-option">'+i+f+"</th>";jQuery("thead th"+r,o).before(p);var h=jQuery("<div>"+n+"</div>");h.find("*").attr("name",c+"[]");var g='<td class="js-table-option '+u+'">'+h.html()+"</td>";jQuery("tbody tr>td"+r,o).before(g),jQuery("td"+r,d).before(g),jQuery("thead th[data-id="+u+"] .btn-table-column-delete",o).on("click",(function(e){e.preventDefault();var t=jQuery(this).parents("th").data("id");jQuery("."+t,d).remove(),jQuery("."+t,o).remove(),jQuery("th[data-id="+t+"]",o).remove(),Number(s)>0&&jQuery("thead th.js-table-option",o).length<Number(s)&&(jQuery(".js-form-advanced-table-column-add button",o).removeClass("disabled").prop("disabled",!1),jQuery(".js-form-advanced-table-column-add input",o).prop("disabled",!1))})),o.removeClass("js-advancrequirefied"),e.SOW.reinit("td."+u),jQuery("input",a).val(""),Number(s)>0&&jQuery("thead th.js-table-option",o).length>=Number(s)&&(jQuery(".js-form-advanced-table-column-add button",o).addClass("disabled").prop("disabled",!0),jQuery(".js-form-advanced-table-column-add input",o).prop("disabled",!0))})),jQuery("thead th.js-table-option",o).each((function(){var e=jQuery(this);e.prepend(i),jQuery(".btn-table-column-delete",e).on("click",(function(e){e.preventDefault();var t=jQuery(this).parents("th").data("id");jQuery("."+t,d).remove(),jQuery("."+t,o).remove(),jQuery("th[data-id="+t+"]",o).remove(),Number(s)>0&&jQuery("thead th.js-table-option",o).length<Number(s)&&(jQuery(".js-form-advanced-table-column-add button",o).removeClass("disabled").prop("disabled",!1),jQuery(".js-form-advanced-table-column-add input",o).prop("disabled",!1))}))})),p()}))},formatCreditCard:function(){jQuery("input.cc-format.cc-number").keyup((function(){var t=jQuery(this),o=t.val()||"",a=t.data("card-type")||"",r=e.SOW.core.form_advanced.formatCardNumber(o);if(t.val(r),""!=a){var n=(n=e.SOW.core.form_advanced.detectCardType(o))?n.name:"";jQuery(a).val(n)}})),jQuery("input.cc-format.cc-expire").keyup((function(e){jQuery(this).val();var t=e.keyCode;-1===[8].indexOf(t)&&(e.target.value=e.target.value.replace(/^([1-9]\/|[2-9])$/g,"0$1/").replace(/^(0[1-9]|1[0-2])$/g,"$1/").replace(/^([0-1])([3-9])$/g,"0$1/$2").replace(/^(0?[1-9]|1[0-2])([0-9]{2})$/g,"$1/$2").replace(/^([0]+)\/|[0]+$/g,"0").replace(/[^\d\/]|^[\/]*$/g,"").replace(/\/\//g,"/"))}))},formatCardNumber:function(e){for(var t=e.replace(/\s+/g,"").replace(/[^0-9]/gi,"").match(/\d{4,16}/g),o=t&&t[0]||"",a=[],r=0,n=o.length;r<n;r+=4)a.push(o.substring(r,r+4));return a.length?a.join(" "):e},detectCardType:function(e){var t,o,a,r,n,i=[{name:"amex",pattern:/^3[47]/,valid_length:[15]},{name:"diners",pattern:/^30[0-5]/,valid_length:[14]},{name:"diners",pattern:/^36/,valid_length:[14]},{name:"jcb",pattern:/^35(2[89]|[3-8][0-9])/,valid_length:[16]},{name:"laser",pattern:/^(6304|670[69]|6771)/,valid_length:[16,17,18,19]},{name:"visa",pattern:/^(4026|417500|4508|4844|491(3|7))/,valid_length:[16]},{name:"visa",pattern:/^4/,valid_length:[16]},{name:"mastercard",pattern:/^5[1-5]/,valid_length:[16]},{name:"maestro",pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,valid_length:[12,13,14,15,16,17,18,19]},{name:"discover",pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,valid_length:[16]}],s={},l=[].indexOf||function(e){for(var t=0,o=this.length;t<o;t++)if(t in this&&this[t]===e)return t;return-1};null==s.accept&&(s.accept=function(){var e,t,o;for(o=[],e=0,t=i.length;e<t;e++)r=i[e],o.push(r.name);return o}());for(var c=s.accept,d=0,u=c.length;d<u;d++)n=c[d],l.call(function(){for(var e=[],t=0,o=i.length;t<o;t++)r=i[t],e.push(r.name);return e}(),n);for(a=function(){var e,t,o,a=[];for(e=0,t=i.length;e<t;e++)o=(r=i[e]).name,l.call(s.accept,o)>=0&&a.push(r);return a}(),t=0,o=a.length;t<o;t++)if(n=a[t],e.match(n.pattern))return n;return null}}}(jQuery),function(e){"use strict";var t=[];e.SOW.core.checkall={collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t);if(this.selector=a[0],this.collection=a[1],!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Check All"),e.SOW.core.checkall.process(this.selector),null},process:function(e){document.querySelectorAll(e).forEach((function(e){if(e.classList.contains("js-init-checkall"))return;e.classList.add("js-init-checkall");let o=e.getAttribute("data-checkall-container");o&&document.querySelector(o)&&-1===t.indexOf(o)&&t.push(o)}));for(let e in t){let o=document.querySelector(t[e]);if(!o)continue;let a=document.querySelectorAll('[data-checkall-container="'+t[e]+'"]'),r=o.querySelectorAll('[type="checkbox"]:not(.js-ignore):not(:disabled)');function n(){let e=o.querySelectorAll('[type="checkbox"]:checked:not(.js-ignore):not(:disabled)').length;a.forEach((function(t){e<1?(t.indeterminate=!1,t.checked=!1):e<r.length?(t.checked=!1,t.indeterminate=!0):(t.checked=!0,t.indeterminate=!1)}))}r.forEach((function(e){e.addEventListener("click",(function(e){n()}))})),a.forEach((function(e){e.addEventListener("click",(function(e){e.target.checked?r.forEach((function(e){e.disabled||(e.checked=!0)})):r.forEach((function(e){e.disabled||(e.checked=!1)})),n()}))})),n()}}}}(jQuery),function(e){"use strict";e.SOW.core.checkgroup={collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t);if(this.selector=a[0],this.collection=a[1],!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Check Group"),e.SOW.core.checkgroup.process(this.collection),null},process:function(t){t.not(".js-checkgroup").addClass("js-checkgroup").each((function(){var t=jQuery(this),o=t.attr("data-checkgroup-checkbox-unique")||t.attr("data-checkgroup-checkbox-single")||"false",a=t.attr("data-checkgroup-ajax-url")||"",r=t.attr("data-checkgroup-ajax-method")||"GET",n=t.attr("data-checkgroup-ajax-params")||"",i=t.attr("data-checkgroup-ajax-toast-success")||"",s=t.attr("data-checkgroup-ajax-toast-position")||"top-center",l={ajax:"true"};if(""!=n)for(var c=e.SOW.helper.params_parse(n),d=0;d<c.length;++d)l[c[d][0]]=c[d][1];jQuery("input[type=checkbox], input[type=radio]",t).each((function(){jQuery(this).on("click",(function(){if(o+""=="true"&&jQuery("input[type=checkbox]",t).not(this).prop("checked",!1),""!=a){var n=[],c=0;jQuery("input[type=checkbox], input[type=radio]",t).each((function(){var t=jQuery(this).attr("data-params")||"",o={};if(""!=t)for(var a=e.SOW.helper.params_parse(t),r=0;r<a.length;++r)o[a[r][0]]=a[r][1];n[c++]={name:jQuery(this).attr("name")||"",value:jQuery(this).val()||"",active:jQuery(this).is(":checked")?1:0,params:o}})),l.items=n,!0===e.SOW.config.sow__debug_enable&&console.log(r,l),e.SOW.core.checkgroup.ajaxRequest(a,r,l,i,s)}}))}))}))},ajaxRequest:function(t,o,a,r,n){jQuery.ajax({url:t,type:o||"GET",data:a,debug:!1,success:function(t){!0===e.SOW.config.sow__debug_enable&&console.log(t),r&&"object"==typeof e.SOW.core.toast&&(e.SOW.core.toast.destroy(),e.SOW.core.toast.show("success","",r,n,1500,!0))}})}}}(jQuery),function(e){"use strict";e.SOW.core.gdpr={config:{cookie_name:"__gdpr",cookie_expire:365,cookie_path:"/"},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW GDPR"),this.selector?(e.SOW.core.gdpr.process(this.selector),this.collection):(e.SOW.core.gdpr.process("#gdpr"),this.collection)},process:function(t){var o=Cookies.get(e.SOW.core.gdpr.config.cookie_name,{path:e.SOW.core.gdpr.config.cookie_path});if("#del:gdpr"==window.location.hash){e.SOW.helper.consoleLog(e.SOW.core.gdpr.config.cookie_name+": Hash Request"),e.SOW.core.gdpr.destroy();o=null}if(null!=o)return e.SOW.helper.consoleLog(e.SOW.core.gdpr.config.cookie_name+": Refresh"),Cookies.set(e.SOW.core.gdpr.config.cookie_name,o,{expires:e.SOW.core.gdpr.config.cookie_expire,path:e.SOW.core.gdpr.config.cookie_path}),void jQuery(t).remove();e.SOW.helper.consoleLog(e.SOW.core.gdpr.config.cookie_name+": Shown"),jQuery(t).removeClass("hide hide-force"),jQuery(" a.btn-cookie-accept:not(.js-gdprified)").addClass("js-gdprified").on("click",(function(o){o.preventDefault(),Cookies.set(e.SOW.core.gdpr.config.cookie_name,0,{expires:e.SOW.core.gdpr.config.cookie_expire,path:e.SOW.core.gdpr.config.cookie_path}),jQuery(t).remove(),e.SOW.helper.consoleLog(e.SOW.core.gdpr.config.cookie_name+": Accepted. Delete cookie by hash: #del:gdpr (developing purpose)")})),jQuery(".btn-cookie-extend:not(.js-gdprified)").addClass("js-gdprified").on("click",(function(t){t.preventDefault();var o=jQuery(this).data("cookie-level")||0;e.SOW.core.gdpr.extend(o)})),jQuery(" a.close:not(.js-gdprified)").addClass("js-gdprified").on("click",(function(e){e.preventDefault(),jQuery(t).addClass("hide hide-force")}))},extend:function(t){return e.SOW.core.gdpr.destroy(),e.SOW.helper.consoleLog(e.SOW.core.gdpr.config.cookie_name+": Level: "+t),Cookies.set(e.SOW.core.gdpr.config.cookie_name,t,{expires:e.SOW.core.gdpr.config.cookie_expire,path:e.SOW.core.gdpr.config.cookie_path}),!0},destroy:function(){return Cookies.remove(e.SOW.core.gdpr.config.cookie_name,{path:""}),Cookies.remove(e.SOW.core.gdpr.config.cookie_name,{path:"/"}),Cookies.remove(e.SOW.core.gdpr.config.cookie_name,{path:e.SOW.core.gdpr.config.cookie_path}),e.SOW.helper.consoleLog(e.SOW.core.gdpr.config.cookie_name+" : Cookie Deleted"),!0}}}(jQuery),function(e){"use strict";e.SOW.core.sidebar={config:{},collection:e(),init:function(t,o){if(!(jQuery("aside").length<1))return e.SOW.helper.consoleLog("Init : SOW Sidebar"),e.SOW.core.sidebar.sidebar_toggle(),e.SOW.core.sidebar.sidebar_minify(),e.SOW.core.sidebar.sidebar_extended(),this.collection},sidebar_toggle:function(){jQuery(".btn-sidebar-toggle").on("click",(function(t){t.preventDefault();var o=jQuery(this).attr("href")||"";""!=o&&"#"!=o&&(jQuery(o).toggleClass("js-aside-show"),e.SOW.helper.overlay("toggle"),jQuery(this).toggleClass("active"),jQuery("#overlay-default").unbind().on("click",(function(t){e.SOW.helper.overlay("hide"),jQuery(o).removeClass("js-aside-show"),jQuery(".btn-sidebar-toggle").removeClass("active")})))})),!0===e.SOW.globals.is_mobile&&jQuery("nav.nav-link-click-close a.nav-link").on("click",(function(){var t=jQuery(this).attr("href");"#"!=t&&"#!"!=t&&"javascript:;"!=t&&(e.SOW.helper.overlay("hide"),jQuery("aside").removeClass("js-aside-show"),jQuery(".btn-sidebar-toggle").removeClass("active"))}))},sidebar_minify:function(){jQuery(".btn-aside-minify").on("click",(function(t){t.preventDefault();var o=jQuery(this).attr("href")||"";""!=o&&"#"!=o&&"#!"!=o&&"javascript:;"!=o&&e.SOW.globals.elBody.toggleClass("aside-min")}))},sidebar_extended:function(){jQuery(".btn-aside-item-extended-close").unbind().on("click",(function(e){e.preventDefault(),jQuery(this).parent().closest(".nav-item.active").removeClass("active")}))},sidebar_dispose:function(){jQuery(".btn-sidebar-toggle").unbind("click"),jQuery(".btn-sidebar-toggle-minify").unbind("click"),jQuery(".btn-aside-item-extended-close").unbind("click"),jQuery(".nav-deep .nav-link").unbind("click")}}}(jQuery),function(e){"use strict";e.SOW.core.scroll_to={config:{speed:400,s2t_enable:!0,s2t_class:"btn-secondary",s2t_position:"end",s2t_mob_minH:1200,s2t_dsk_minH:2300},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!0===e.SOW.core.scroll_to.config.s2t_enable&&e.SOW.core.scroll_to.scrollToTop(),!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Scroll To"),this.selector?this.collection.each((function(){e.SOW.core.scroll_to.process(e(this))})):(e.SOW.core.scroll_to.process(e(".scroll-to")),this.collection)},process:function(t){var o=this.config.speed;t.not(".js-scrolltoified").addClass("js-scrolltoified").on("click",(function(t){t.preventDefault();var a=jQuery(this),r=a.attr("href")||"",n=a.data("offset")||0,i=a.data("toggle")||"",s=(a.attr("aria-expanded"),a.data("update-hash")||"false"),l=a.data("speed")||o,c=a.data("delay")||0;"collapse"==i&&(c=c>0?c:300),"function"==typeof e.SOW.helper.scrollAnimate&&setTimeout((function(){a.hasClass("collapsed")||e.SOW.helper.scrollAnimate(r,n,s,l)}),Number(c))}))},scrollToTop:function(){null!==window.sowScrollToInterval&&(clearInterval(window.sowScrollToInterval),window.sowScrollToInterval=null,jQuery("#btnScrollTo").remove());var t=!0===e.SOW.globals.is_mobile?e.SOW.core.scroll_to.config.s2t_mob_minH:e.SOW.core.scroll_to.config.s2t_dsk_minH;if(!(e(document).height()<t)){var o=e.SOW.globals.elBody.data("s2t-position")||e.SOW.core.scroll_to.config.s2t_position,a=e.SOW.globals.elBody.data("s2t-class")||e.SOW.core.scroll_to.config.s2t_class,r=e.SOW.globals.elBody.data("s2t-disable")||"false";if(r+""!="true"&&(!e.SOW.globals.elBody.hasClass("layout-admin")||r+""=="false")){var n=!1;if(e.SOW.globals.elBody.hasClass("layout-admin")&&jQuery("#footer").length>0){var i=0,s=!1,l=0,c=jQuery("#footer").outerHeight();if(c<200)n=!0,i=e("#footer").offset().top,l=c+15+Number(e.SOW.globals.elBody.css("padding").replace("px","")||0)+Number(e.SOW.globals.elBody.css("margin").replace("px","")||0)}e.SOW.globals.elBody.append('<a aria-label="Scroll page to top" href="#" id="btnScrollTo" class="btn '+a+" position-fixed z-index-99 "+o+'-0 bottom-0 m-2" style="display:none"><i class="m-0 fi fi-arrow-up"></i></a>'),jQuery("#btnScrollTo").off().on("click",(function(t){t.preventDefault(),e.SOW.helper.scrollAnimate("body",0,!1,500)}));var d=t/2;window.isVisibleBtnScrollTo=!1;var u=!1,f=0;e(window).scroll((function(){u=!0,f=e(this).scrollTop()})),window.sowScrollToInterval=setInterval((function(){u&&(u=!1,f>d?!1===window.isVisibleBtnScrollTo&&(window.isVisibleBtnScrollTo=!0,jQuery("#btnScrollTo").fadeIn(400)):!0===window.isVisibleBtnScrollTo&&(window.isVisibleBtnScrollTo=!1,jQuery("#btnScrollTo").fadeOut(200)),!0===n&&(f+e.SOW.globals.height>i?!1===s&&(jQuery("#btnScrollTo").addClass("transition-all-ease-250").attr("style","margin-bottom: "+l+"px !important"),s=!0):!0===s&&(jQuery("#btnScrollTo").css({"margin-bottom":""}),s=!1)))}),500)}}}}}(jQuery),function(e){"use strict";e.SOW.core.search_inline={config:{},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return jQuery.extend(jQuery.expr[":"],{containsIN:function(e,t,o,a){return(e.textContent||e.innerText||"").toLowerCase().indexOf((o[3]||"").toLowerCase())>=0}}),e.SOW.helper.consoleLog("Init : SOW Inline Search"),this.selector?this.collection.each((function(){e.SOW.core.search_inline.process(e(this))})):(e.SOW.core.search_inline.process(e("input.iqs-input")),this.collection)},process:function(e){if(!e.hasClass("iqs-init")){e.addClass("iqs-init");var t=e.data("container")||".iqs-container";e.keyup((function(){var e=jQuery.trim(this.value);""==e?jQuery(t+" .iqs-item").removeClass("hide hide-force"):(jQuery(t+" .iqs-item").addClass("hide hide-force"),jQuery(t+" .iqs-item :containsIN("+e+")").closest(".iqs-item").removeClass("hide hide-force"))}))}}}}(jQuery),function(e){"use strict";e.SOW.core.input_suggest={config:{},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Input Suggest"),this.selector?this.collection.each((function(){e.SOW.core.input_suggest.process(e(this))})):(e.SOW.core.input_suggest.process(e("input.input-suggest")),this.collection)},process:function(t){if(!t.hasClass("is-init")){t.addClass("is-init");var o=t.attr("id")||"",a=t.data("input-suggest-name")||t.attr("name"),r=t.data("input-suggest-max-items")||0,n=(r=Number(r),t.data("input-suggest-ajax-url")||""),i=t.data("input-suggest-ajax-method")||"GET",s=t.data("input-suggest-ajax-action")||"",l=t.data("input-suggest-ajax-limit")||"10",c=t.data("input-suggest-mode")||"text",d=t.data("input-suggest-typing-delay")||"100",u=t.data("input-suggest-typing-min-char")||"3",f=t.data("input-suggest-append-container")||"",p=t.attr("data-input-suggest-append-stip-tags")||"true";if(""!=n){if(""==o){o="js_"+e.SOW.helper.randomStr(5);t.attr("id",o)}if("parent:group"==f){t.closest(".input-suggest-group").find(".input-suggest-container").addClass("res_"+o);f=".res_"+o}"append"==c||"self"==c?(t.on("keyup change",(function(a){window.afterSearchKeyUp&&clearTimeout(window.afterSearchKeyUp),window.afterSearchKeyUp=setTimeout((function(){var a=(a=t.val()).trim();""==s&&(s="input_search"),a.length>=Number(u)?(jQuery("#dd_"+o+">div").empty().append('<div class="text-center"><i class="fi fi-circle-spin fi-spin text-muted fs--30"></i></div>'),e.SOW.core.input_suggest.__suggestAjax(n,i,l,s,a,o,t,c,f,r,p)):jQuery("#dd_"+o+">div").empty()}),Number(d))})),"append"==c&&e.SOW.core.input_suggest.__suggestAppendedRemove(f)):t.on("click",(function(t){var d=jQuery(this);""==s&&(s="input_suggest"),jQuery("#dd_"+o).length<1?e.SOW.core.input_suggest.__suggestAjax(n,i,l,s,a,o,d,c,f,r,p):""==d.val()&&jQuery("#dd_"+o+" .iqs-item").removeClass("hide hide-force")}))}}},__suggestAjax:function(t,o,a,r,n,i,s,l,c,d,u){var f={ajax:"true",action:r,key:n,limit:a},p=s.data("name")||s.attr("name");jQuery.ajax({url:t,data:f,type:o,cache:!1,contentType:"application/x-www-form-urlencoded; charset=UTF-8",dataType:null,headers:"",crossDomain:"",error:function(o,a,r){e.SOW.helper.consoleLog("Input search suggest Error!"),e.SOW.helper.consoleLog("URL: "+t),e.SOW.helper.consoleLog(f)},success:function(o){e.SOW.helper.consoleLog("Input search suggest Request!"),e.SOW.helper.consoleLog("URL: "+t),e.SOW.helper.consoleLog(f);var a=e.SOW.core.input_suggest.__suggestJsonParse(o);if(null!==a&&(e.SOW.core.input_suggest.__suggestTPL(s,i),jQuery("#dd_"+i+">div").empty(),!(a.length<1))){for(var r=0;r<a.length;r++)"append"==l||"self"==l?("self"==l&&(a[r].url="#!",a[r].id=""),1==a[r].disabled?jQuery("#dd_"+i+">div").append('<div class="dropdown-item p-2 text-muted">'+a[r].label+"</div>"):jQuery("#dd_"+i+">div").append('<a href="'+a[r].url+'" data-id="'+a[r].id+'" class="dropdown-item px-2"><span>'+a[r].label+"</span></a>")):jQuery("#dd_"+i+">div").append('<a href="#!" class="iqs-item dropdown-item px-2"><span>'+a[r]+"</span></a>");"dropdown"!=s.attr("data-bs-toggle")&&(s.attr("data-bs-toggle","dropdown"),s.dropdown("show")),"text"==l&&"object"==typeof e.SOW.core.search_inline&&(s.attr("data-container","#dd_"+i+">div"),s.addClass("iqs-input"),e.SOW.core.search_inline.init("input.iqs-input")),jQuery("#dd_"+i+" a.dropdown-item").off().on("click",(function(t){t.preventDefault();var o=jQuery(this),a=u+""=="true"?o.text():o.html(),r=o.attr("href")||"#",n=o.data("id")||"0",i=o.data("disabled")||!1;if("append"==l){if(e.SOW.core.input_suggest.__suggestAppend(a,r,n,i,p,c),d>0){var f=jQuery(">div",c).length;Number(f)>=d&&s.prop("disabled",!0)}}else s.val(a)}))}}})},__suggestJsonParse:function(e){if(""==e)return e;try{var t=JSON.parse(e)}catch(o){t=e}return void 0===t||t.length<1||void 0===t[0].label&&void 0===t[0].length?null:t},__suggestTPL:function(e,t){var o=e;return jQuery("#dd_"+t).length<1&&(e.parents("label").length>0?(e.parents("label").addClass("dropdown"),o=e.parents("label")):e.parent("form").length>0?(e.parent("form").addClass("dropdown"),o=e):e.parents(".input-group").length>0?(e.parents(".input-group").addClass("dropdown"),o=e):e.parents(".form-label-group").length>0?(e.parents(".form-label-group").addClass("dropdown"),o=e.next("label")):e.wrap('<div class="dropdown"></div>'),o.after('<div id="dd_'+t+'" class="dropdown-menu p-1 w-100"><div style="max-height:200px" class="scrollable-vertical"></div></div>')),o},__suggestAppend:function(t,o,a,r,n,i){var s='<div class="p-1 clearfix"><a href="#!" class="item-suggest-append-remove fi fi-close fs--16 float-start text-decoration-none"></a>';s+=""!=o&&"#"!=o&&"#!"!=o?'<a href="'+o+'" target="_blank" class="text-decoration-none">'+t+"</a>":"<span>"+t+"</span>",s+='<input type="hidden" name="'+(n=""==n?"item[]":n)+'" value="'+a+'"></div>',jQuery(i).append(s),e.SOW.core.input_suggest.__suggestAppendedRemove(i)},__suggestAppendedRemove:function(e){""!=e&&jQuery(e+" a.item-suggest-append-remove").off().on("click",(function(t){t.preventDefault(),jQuery(this).parent().remove();var o=jQuery(e).parent().find("input.is-init");o.length>0?o.prop("disabled",!1):jQuery("input.is-init").prop("disabled",!1)}))}}}(jQuery),function(e){"use strict";e.SOW.core.timer_autohide={config:{},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Timer Autohide"),this.selector?this.collection.each((function(){e.SOW.core.timer_autohide.process(e(this))})):(e.SOW.core.timer_autohide.process(e(".autohide")),this.collection)},process:function(e){var t=e.data("timer-autohide")||0;t<1||setTimeout((function(){e.fadeOut(100,(function(){}))}),Number(t))}}}(jQuery),function(e){"use strict";window.timeleft=[],window._timerInterval=[],e.SOW.core.timer_countdown={config:{},collection:e(),init:function(t,o){var a=e.SOW.helper.__selector(t),r=e.SOW.helper.check_var(o);if(this.selector=a[0],this.collection=a[1],this.config=null!==r?e.extend({},this.config,r):this.config,!(jQuery(this.selector).length<1))return e.SOW.helper.consoleLog("Init : SOW Timer Countdown"),this.selector?this.collection.each((function(){e.SOW.core.timer_countdown.process(e(this))})):(e.SOW.core.timer_countdown.process(e(".timer-countdown")),this.collection)},process:function(t){var o=t.data("timer-countdown-from")||"",a=!!t.hasClass("timer-countdown-inline"),r=t.attr("id")||"";if(""!=o){t.removeClass("hide hide-force");var n="rand_"+e.SOW.helper.randomStr(8);if(""==r){r=n;t.attr("id",n)}if("number"==typeof o)window.timeleft[r]=o>1e3?Math.round(o/1e3):Math.round(o);else{o=o.trim();var i=new Date,s=new Date(o),l=(s.getTimezoneOffset(),s.getTime()),c=l-i;window.timeleft[r]=Math.round(c/1e3)}window.timeleft[r]<1||(e.SOW.core.timer_countdown.timer_compute(t,r,a,!1),window._timerInterval[r]=setInterval((function(){e.SOW.core.timer_countdown.timer_compute(t,r,a,!0)}),1e3))}},timer_compute:function(t,o,a,r){var n=t.attr("id");if(jQuery("#"+n).length<1)e.SOW.core.timer_countdown.timer_compute_stop(o);else{if(window.timeleft[o]<0){e.SOW.core.timer_countdown.timer_compute_stop(o);var i=t.data("timer-countdown-callback-function")||"",s=t.data("timer-countdown-end-hide-self")||!1,l=t.data("timer-countdown-end-hide-target")||"";if(1==s&&t.addClass("hide hide-force"),""!=l&&jQuery(l).addClass("hide hide-force"),""!=i&&!0===r){o=t.attr("id")||"";e.SOW.helper.executeFunctionByName(i,window,o)}return!1}var c=new Date(null);c.setSeconds(window.timeleft[o]);var d=c.toISOString().substr(11,8),u=e.SOW.helper.time_from_ms(1e3*window.timeleft[o],"d");if(u>0){var f=d.substr(0,2);d=Number(f)+24*u+d.substr(2,8)}window.timeleft[o]=Math.round(window.timeleft[o]-1),!0===a?e.SOW.core.timer_countdown.timer2html(t,d):t.html(d)}},timer_compute_stop:function(e){return e&&clearInterval(window._timerInterval[e]),!0},timer2html:function(e,t){if("00:00:00"!=t){var o=t.split(":"),a=0,r=0,n=0;o[0]>=24&&(r=Math.floor(o[0]/24),a=Math.floor(o[0]%24)),r>=365&&(n=Math.floor(r/365)),jQuery(".s",e).text(o[2]),jQuery(".m",e).text(o[1]),jQuery(".h",e).text(a),jQuery(".d",e).text(r),jQuery(".y",e).text(n)}}}}(jQuery),function(e){"use strict";e.SOW.core.gfont={init:function(t,o){if(t){var a=document.querySelectorAll(t);a&&(e.SOW.core.gfont.process(a),e.SOW.helper.consoleLog("Init : SOW Google Font"))}},process:function(e){"object"==typeof e&&e.forEach((function(e){if(e.classList.contains("js-init-gfont"))return;e.classList.add("js-init-gfont");let t=e.getAttribute("data-gfont"),o=e.getAttribute("data-wght")||"300;400;500",a=e.getAttribute("data-display")||"swap";if(!t)return;let r=t.replace(/ /g,"+"),n=t.replace(/ /g,"_").toLowerCase(),i=Math.random().toString(36).substring(7),s="https://fonts.googleapis.com/css2?family="+r+":wght@"+o+"&display="+a,l=document.getElementById(n);if(l){let t=l.getAttribute("data-class");return void e.classList.add(t)}let c=document.getElementsByTagName("head")[0];c.insertAdjacentHTML("beforeend",'<link id="'+n+'" data-class="gfont_'+i+'" href="'+s+'" rel="stylesheet">'),c.insertAdjacentHTML("beforeend",'<style type="text/css">.gfont_'+i+"{font-family: '"+t+"',sans-serif!important;}</style>"),e.classList.add("gfont_"+i)}))}}}(jQuery),function(e){"use strict";var t="SOW Utils",o=[],a={};window.barcodeInterval=null,window.barcodeLast="",e.SOW.core.utils={config:{selector__initialFromString:".sow-util-initials",selector__timeAgo:".sow-util-timeago",selector__cookie:".sow-util-cookie",selector__slideshow:".sow-util-slideshow",selector__cloner:".sow-util-cloner",selector__action:".sow-util-action",selector__form:".sow-util-form",selector__formLiveMonitor:".sow-util-form-live-monitor",selector__liveReload:".sow-util-live-reload",method:"GET",contentType:"",dataType:"",headers:"",crossDomain:"",data_params:{ajax:"true"},lang__timeAgo:{seconds:"less than a minute ago",minute:"about a minute ago",minutes:"%d minutes ago",hour:"about an hour ago",hours:"about %d hours ago",day:"a day ago",days:"%d days ago",month:"about a month ago",months:"%d months ago",year:"about a year ago",years:"%d years ago"}},init:function(t,o){var a=e.SOW.helper.__selector(t);return this.selector=a[0],e.SOW.core.utils.initialsFromString(this.selector+" "+e.SOW.core.utils.config.selector__initialFromString),e.SOW.core.utils.timeAgo(this.selector+" "+e.SOW.core.utils.config.selector__timeAgo),e.SOW.core.utils.cookieUtil(this.selector+" "+e.SOW.core.utils.config.selector__cookie),e.SOW.core.utils.slideshow(this.selector+" "+e.SOW.core.utils.config.selector__slideshow),e.SOW.core.utils.cloner(this.selector+" "+e.SOW.core.utils.config.selector__cloner),e.SOW.core.utils.UtilAction(this.selector+" "+e.SOW.core.utils.config.selector__action),e.SOW.core.utils.UtilForm(this.selector+" "+e.SOW.core.utils.config.selector__form),e.SOW.core.utils.UtilFormLiveMonitor(this.selector+" "+e.SOW.core.utils.config.selector__formLiveMonitor),e.SOW.core.utils.UtilLiveReload(this.selector+" "+e.SOW.core.utils.config.selector__liveReload),null},initialsFromString:function(t){var o=jQuery(t),a=!1;o.length<1||(o.not(".js-sowformstringified").addClass("js-sowformstringified").each((function(e){var t=jQuery(this),o=t.data("initials")||"",r=jQuery(this).attr("data-assign-color")||"false";if(""==o)return!1;if(r+""=="true"){for(var n=0,i=0;i<o.length;i++)n=o.charCodeAt(i)+((n<<5)-n);var s=n%360;t.removeClass("bg-light").css({background:"hsl("+s+", 70%, 90%)"})}var l=o.match(/\b\w/g)||[];l=((l.shift()||"")+(l.pop()||"")).toUpperCase(),t.text(l).removeAttr("data-initials data-assign-color"),a=!0})),!0===a&&e.SOW.helper.consoleLog("Init : SOW Utils : Initials From String"))},timeAgo:function(t){var a=jQuery(t);if(!(a.length<1)){var r=jQuery("span.sow-util-timeago-lang").data("lang")||"";"object"==typeof r&&(e.SOW.core.utils.config.lang__timeAgo=r),"object"==typeof sow_util_timeago_lang&&(e.SOW.core.utils.config.lang__timeAgo=sow_util_timeago_lang),a.not(".js-sowtimeagofied").addClass("js-sowtimeagofied").each((function(t){var a=jQuery(this),r=a.data("time")||a.attr("datetime"),n=a.attr("data-live")||"false",i=a.data("lang")||"",s=a.attr("id")||"";if(r){if("object"==typeof i&&(e.SOW.core.utils.config.lang__timeAgo=i),""==s){s="rand_"+e.SOW.helper.randomStr(3,"N");a.attr("id",s)}e.SOW.core.utils.timeAgoLooper(a,s),n+""=="true"&&(o[s]=setInterval((function(){e.SOW.core.utils.timeAgoLooper(a,s)}),6e4))}}))}},timeAgoLooper:function(t,a){var r=t.data("time")||t.attr("datetime"),n=e.SOW.core.utils.config.lang__timeAgo,i=function(e,t){return n[e]&&n[e].replace(/%d/i,Math.abs(Math.round(t)))};"string"==typeof r&&(r=(r=(r=(r=(r=r.replace(/\.\d+/,"")).replace(/-/,"/").replace(/-/,"/")).replace(/T/," ").replace(/Z/," UTC")).replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2")).replace(/([\+\-]\d\d)$/," $100"));r=new Date(1e3*r||r);var s=.001*((new Date).getTime()-r)>>0,l=s/60,c=l/60,d=c/24,u=d/365,f=s<45&&i("seconds",s)||s<90&&i("minute",1)||l<45&&i("minutes",l)||l<90&&i("hour",1)||c<24&&i("hours",c)||c<42&&i("day",1)||d<30&&i("days",d)||d<45&&i("month",1)||d<365&&i("months",d/30)||u<1.5&&i("year",1)||i("years",u);t.text(f),void 0!==o[a]&&(d>3||u>1)&&clearInterval(o[a])},cookieUtil:function(t){var o=jQuery(t);o.length<1||o.not(".js-sowcookiefied").addClass("js-sowcookiefied").on("click",(function(t){t.preventDefault();var o=jQuery(this),a=o.data("cookie-set")||"",r=o.data("cookie-del")||"",n=o.data("cookie-toggle")||"",i=o.data("cookie-val")||"1",s=o.data("cookie-expire")||"7",l=o.data("cookie-path")||"/",c=o.data("toast-msg-set")||"",d=o.data("toast-msg-del")||"",u=o.data("toast-msg-pos")||"top-center",f=o.data("toast-msg-type-set")||"success",p=o.data("toast-msg-type-del")||"success",h="",g="";if(""!=a)Cookies.set(a,i,{expires:s,path:l}),h=c,g=f;else if(""!=r)Cookies.remove(r,{path:l}),h=d,g=p;else if(""!=n){Cookies.get(n,{path:l})?(Cookies.remove(n,{path:l}),h=d,g=p):(Cookies.set(n,i,{expires:s,path:l}),h=c,g=f)}""!=h&&"object"==typeof e.SOW.core.toast&&(e.SOW.core.toast.destroy(),e.SOW.core.toast.show(g,"",h,u,1500,!0))}))},slideshow:function(t){var o=jQuery(t),r=!1;o.length<1||(o.each((function(){var t=jQuery(this),o=t.data("sow-slideshow")||"",n=t.data("sow-slideshow-xs")||"",i=t.data("sow-slideshow-interval")||4e3,s=t.data("sow-slideshow-fade-delay")||1500,l="sow_"+e.SOW.helper.randomStr(3,"L");if(!0===e.SOW.globals.is_mobile&&n.length>10&&(o=n),o.length<10)return!1;t.removeAttr("data-sow-slideshow"),t.prepend('<div id="'+l+'" class="sow-slideshow absolute-full z-index-0"></div>');var c=o.split(",");a[l]={},a[l].current=0,a[l].itemsCount=0,a[l].timeOutInstance;for(var d=0;d<c.length;d++){var u=0===d?"sow-slideshow-current":"",f=0===d?"":"display:none;",p=new Image;p.src=c[d],p.onload=function(e){},p.onerror=function(e){},jQuery("#"+l).prepend('<span class="sow-slideshow-item sow-slideshow-item-'+d+" absolute-full bg-cover "+u+'" style="z-index:0;'+f+"background-image:url("+p.src+')"></span>'),a[l].itemsCount++}if(c.length<2)return!1;function h(){a[l].timeOutInstance=setTimeout((function(){var e=a[l].current+1;e>=a[l].itemsCount&&(e=0),jQuery("#"+l+" span.sow-slideshow-item-"+a[l].current).fadeOut(s),jQuery("#"+l+" span.sow-slideshow-item-"+e).fadeIn(s),a[l].current=e,h()}),i)}function g(){document.hidden||document.mozHidden||document.webkitHidden||document.msHidden?clearTimeout(a[l].timeOutInstance):a[l].timeOutInstance=setTimeout(h,i)}h(),document.addEventListener("visibilitychange",g,!1),document.addEventListener("mozvisibilitychange",g,!1),document.addEventListener("webkitvisibilitychange",g,!1),document.addEventListener("msvisibilitychange",g,!1),r=!0})),!0===r&&e.SOW.helper.consoleLog("Init : SOW Utils : Slideshow"))},cloner:function(t){var o=jQuery(t);o.length<1||(o.not(".js-sowclonified").addClass("js-sowclonified").on("click",(function(o){o.preventDefault();var a=jQuery(this),r=a.data("clone-target")||"",n=a.data("clone-destination")||"",i=a.data("clone-limit")||0,s=a.data("clone-method")||"append",l=a.attr("data-clone-sortable")||"false";if(""==r||""==n)return null;var c=jQuery(r).clone();c.addClass("js-cloned js-cloned-fresh");var d=jQuery(".js-cloned",n).length;i=Number(i);"prepend"==s?jQuery(n).prepend(c):jQuery(n).append(c),jQuery(".js-cloned-fresh input[type=text], .js-cloned-fresh input[type=email], .js-cloned-fresh input[type=number], .js-cloned-fresh textarea",n).not(".js-ignore").not(".js-clean-ignore").val(""),jQuery(".js-cloned-fresh [data-cloned-replace-class]",n).each((function(){var e=jQuery(this);e.removeAttr("class").attr("class",e.data("cloned-replace-class")).removeAttr("data-cloned-replace-class")})),jQuery(".js-cloned-fresh [data-cloned-replace-name]",n).each((function(){var e=jQuery(this),t=(t=e.data("cloned-replace-name")||"item[$][]").replace("[$]","["+Number(d)+"]");e.removeAttr("name").attr("name",t).removeAttr("data-cloned-replace-name")})),jQuery(".js-cloned-fresh [data-cloned-replace-attribute-name]",n).each((function(){var e=jQuery(this),t=e.data("cloned-replace-attribute-name")||"",o=(o=e.data("cloned-replace-attribute-value")||"").replace("[$]","["+Number(d)+"]");e.removeAttr(t).attr(t,o).removeAttr("data-cloned-replace-attribute-name, data-cloned-replace-attribute-value")})),jQuery(".js-cloned-fresh "+t+", .js-cloned-fresh .btn-clone-remove").removeClass("sow-util-cloner").on("click",(function(e){e.preventDefault(),jQuery(this).parents(".js-cloned").remove(),a.removeClass("disabled").prop("disabled",!1)})),jQuery(".js-cloned-fresh",n).removeClass("js-cloned-fresh"),l+""=="true"&&"object"==typeof e.SOW.vendor.sortable&&e.SOW.vendor.sortable.init(n,null),e.SOW.reinit(n),i>0&&d>=Number(i-1)&&a.addClass("disabled").prop("disabled",!0)})),jQuery(".js-cloned").not(".js-clonedbounded").addClass("js-clonedbounded").each((function(){jQuery("a[data-clone-target]",jQuery(this)).on("click",(function(e){e.preventDefault();var t=jQuery(this).data("clone-target")||"";""!=t&&(jQuery(this).parents(".js-cloned").remove(),jQuery(".sow-util-cloner",t).removeClass("disabled").prop("disabled",!1),jQuery('a[data-clone-destination="'+t+'"]').removeClass("disabled").prop("disabled",!1))}))})),o.each((function(){var e=jQuery(this),t=e.data("clone-limit")||0,o=(t=Number(t),e.data("clone-destination")||""),a=jQuery(".js-cloned",o).length;t>0&&a>=t&&e.addClass("disabled").prop("disabled",!0)})))},UtilAction:function(o){var a=jQuery(o);a.length<1||a.hasClass("js-sowutilified")||a.not(".js-sowutilified").addClass("js-sowutilified").on("click",(function(o){var a=jQuery(this),r=a.attr("data-ajax-show-loading-icon")||"true",n=a.attr("data-util-self-ignore")||"false",i=a.data("util-target-hide")||"",s=a.data("util-target-show")||"",l=a.data("util-target-class-add")||"",c=a.data("util-target-class-add-val")||"",d=a.data("util-target-class-remove")||"",u=a.data("util-target-class-remove-val")||"",f=a.data("util-target-class-toggle")||"",p=a.data("util-target-class-toggle-val")||"",h=a.data("util-target-input")||"",g=a.data("util-target-input-val")||"",m=a.data("util-target-placeholder")||"",v=a.data("util-target-placeholder-val")||"",y=a.data("util-target-readonly-on")||"",_=a.data("util-target-readonly-off")||"",j=a.data("util-target-readonly-toggle")||"",b=a.data("util-target-disable-on")||"",S=a.data("util-target-disable-off")||"",x=a.data("util-target-disable-toggle")||"",w=a.data("util-target-remove")||"",O=a.data("util-group-active")||"",W=a.data("util-group-active-class")||"active",Q=a.data("util-target-focus")||"",C=a.data("util-toast-msg")||"",k=a.data("util-toast-position")||"top-center",T=a.data("util-toast-type")||"success",A=a.data("util-toast-timeout")||2500,L=a.data("util-ajax-request")||"",D=a.data("util-ajax-method")||e.SOW.core.utils.config.method,E=a.data("util-ajax-params")||"",N=a.data("util-ajax-append-response")||"",q=a.data("util-ajax-toast-success")||"Sucessfully Updated!",I=a.data("util-ajax-toast-position")||"top-center",z=a.data("util-ajax-toast-timeout")||2500;if(a.attr("href")&&o.preventDefault(),a&&(o.preventDefault(),jQuery("input",a).is(":checked")?jQuery("input",a).removeAttr("checked"):jQuery("input",a).attr("checked",!0)),n+""!="true"&&""==p&&a.toggleClass("active"),""!=i&&jQuery(i).addClass("hide hide-force"),""!=s&&jQuery(s).removeClass("hide hide-force"),""!=g&&jQuery(h||a).val(g),""!=v&&jQuery(m||a).val(v),""!=u&&jQuery(d||a).removeClass(u),""!=c&&jQuery(l||a).addClass(c),""!=p&&jQuery(f||a).toggleClass(p),""!=w&&jQuery(w).remove(),""!=O){var B=a.hasClass(W)?"active":"inactive";jQuery(O).removeClass(W),"active"==B&&a.addClass(W)}if(""!=y&&jQuery(y).addClass("readonly").attr("readonly",!0).prop("readonly",!0),""!=_&&jQuery(_).removeClass("readonly").removeAttr("readonly").prop("readonly",!1),""!=j&&(jQuery(j).attr("readonly"),jQuery(j).removeClass("readonly").removeAttr("readonly").prop("readonly",!1)),""!=b&&jQuery(b).addClass("disabled").attr("disabled",!0).prop("disabled",!0),""!=S&&jQuery(S).removeClass("disabled").removeAttr("disabled").prop("disabled",!1),""!=x&&(jQuery(x).attr("disabled"),jQuery(x).removeClass("disabled").removeAttr("disabled").prop("disabled",!1)),""!=Q&&setTimeout((function(){jQuery(Q).focus()}),400),""==L&&""!=C&&"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show(T,"",C,k,Number(A),!0),""!=L){var R=e.SOW.core.utils.config.data_params;if(""!=E)for(var F=e.SOW.helper.params_parse(E),H=0;H<F.length;++H)R[F[H][0]]=F[H][1];jQuery.ajax({url:L,type:D,data:R,beforeSend:function(){"true"==r&&e.SOW.helper.loadingSpinner("show",a),e.SOW.helper.consoleLog("SOW Util : [Ajax][Request Sent]: "+L)},error:function(t,o,a){e.SOW.helper.loadingSpinner("hide"),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0)},success:function(o){e.SOW.helper.loadingSpinner("hide"),e.SOW.helper.consoleLog("SOW Util : [Ajax][Server Response]: "+o),""!=N&&""!=o&&(jQuery(N).empty().append(o),e.SOW.helper.consoleLogReinit(t,N),e.SOW.reinit(N)),""!=q&&"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("success","",q,I,Number(z),!0)}})}}))},UtilForm:function(t){var o=jQuery(t);o.length<1||o.hasClass("js-sowformutilified")||o.not(".js-sowformutilified").addClass("js-sowformutilified").each((function(t){var o=jQuery(this),a=o.attr("data-util-form-action")||"#",r=o.attr("data-util-form-method")||"post",n=o.attr("data-util-form-toast-success")||"",i=o.attr("data-util-form-toast-error")||"Unexpected Internal error!",s=o.attr("data-util-form-toast-position")||"top-right",l=o.attr("data-util-form-loading-icon")||"true",c=o.attr("data-util-form-dataType")||"",d=o.attr("data-util-form-contentType")||"",u=o.attr("data-util-form-params")||"";jQuery(".sow-util-form-submit",o).on("click",(function(t){if(t.preventDefault(),jQuery("input.sow-util-tmp",o).remove(),""!=u)for(var f=e.SOW.helper.params_parse(u),p=0;p<f.length;++p)o.append('<input type="text" class="hide hide-force sow-util-tmp" name="'+f[p][0]+'" value="'+f[p][1]+'">');var h=jQuery("input, select, textarea",o).serializeArray();if("post"==r.toLowerCase()){var g=!1,m=!1,v=new FormData;for(var y in h)v.append(h[y].name,h[y].value)}else g=!0,m=d||e.SOW.core.utils.config.contentType,v=jQuery("input, select, textarea",o).serialize();jQuery.ajax({url:a,data:v,type:r,dataType:c||e.SOW.core.utils.config.dataType,headers:e.SOW.core.utils.config.headers,crossDomain:e.SOW.core.utils.config.crossDomain,contentType:m,processData:g,cache:!1,beforeSend:function(){"true"==l&&e.SOW.helper.loadingSpinner("show",o),jQuery(".sow-util-loader",o).removeClass("hide hide-force")},error:function(t,a,r){!0===e.SOW.config.sow__debug_enable&&(e.SOW.helper.consoleLog("----------------------------"),e.SOW.helper.consoleLog("--- AJAX REQUEST ERROR ----"),e.SOW.helper.consoleLog("1. XMLHttpRequest:"),e.SOW.helper.consoleLog(t),e.SOW.helper.consoleLog("2. textStatus:"),e.SOW.helper.consoleLog(a),e.SOW.helper.consoleLog("3. errorThrown:"),e.SOW.helper.consoleLog(r),e.SOW.helper.consoleLog("----------------------------")),e.SOW.helper.loadingSpinner("hide"),jQuery(".sow-util-loader",o).addClass("hide hide-force"),jQuery("input.sow-util-tmp",o).remove(),"object"==typeof e.SOW.core.toast?e.SOW.core.toast.show("danger","404 Error",i,s,0,!0):alert("[404] Unexpected internal error!")},success:function(t){e.SOW.helper.loadingSpinner("hide"),jQuery(".sow-util-loader",o).addClass("hide hide-force"),jQuery("input.sow-util-tmp",o).remove(),e.SOW.helper.consoleLog(t),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("success","",n,s,1500,!0),o.parent().find('a[data-toggle="dropdown"]').trigger("click"),jQuery("input, select, textarea",o).each((function(){var e=jQuery(this).attr("data-util-update"),t=jQuery(this).val();e&&jQuery(e).html(t)}))}})}))}))},UtilFormLiveMonitor:function(o){var a=jQuery(o);a.length<1||a.hasClass("js-sowlfutilified")||a.not(".js-sowlfutilified").addClass("js-sowlfutilified").each((function(o){var a=jQuery(this),r=this,n=a.attr("data-ajax-show-loading-icon")||"true",i=(a.attr("data-util-live-monitor"),a.attr("data-util-live-monitor-elements")||"*"),s=a.attr("data-util-live-monitor-append-response")||"",l=a.attr("data-util-live-monitor-user-delay")||1e3,c=a.attr("data-util-live-ajax-url")||"",d=a.attr("data-util-live-ajax-method")||"POST",u=a.attr("data-util-live-ajax-params")||"",f=a.data("util-live-toast-msg")||"",p=a.data("util-live-toast-position")||"top-center",h=a.data("util-live-toast-type")||"success",g=a.data("util-live-toast-timeout")||2500;""!=c&&("*"==i&&(i="input, select, textarea"),jQuery(i,a).not(".js-sowlfutilified").addClass("js-sowlfutilified").on("change",(function(o){var i=jQuery(this),m=i.parents("form");if(!i.hasClass("js-ignore")){if(window.afterLiveFormChange&&clearTimeout(window.afterLiveFormChange),jQuery("input.js-append").remove(),a.append('<input class="js-append" type="hidden" name="ajax" value="true">'),""!=u)for(var v=e.SOW.helper.params_parse(u),y=0;y<v.length;++y)a.append('<input class="js-append" type="hidden" name="'+v[y][0]+'" value="'+v[y][1]+'">');window.afterLiveFormChange=setTimeout((function(){if("post"==d.toLowerCase())var o=new FormData(r),i=!1,l=!1;else i=!0,l="",o=a.serializeArray();jQuery.ajax({url:c,type:d,data:o,contentType:l,processData:i,beforeSend:function(){"true"==n&&e.SOW.helper.loadingSpinner("show",a),jQuery("button[type=submit]",m).addClass("disabled").prop("disabled",!0)},error:function(t,o,a){jQuery("button[type=submit]",m).removeClass("disabled").prop("disabled",!1),jQuery("input.js-append").remove(),e.SOW.helper.loadingSpinner("hide"),"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show("danger","404 Error","Unexpected Internal error!","bottom-center",0,!0)},success:function(o){jQuery("button[type=submit]",m).removeClass("disabled").prop("disabled",!1),jQuery("input.js-append").remove(),e.SOW.helper.loadingSpinner("hide"),""!=s&&""!=o&&(jQuery(s).empty().append(o),e.SOW.helper.consoleLogReinit(t,s),e.SOW.reinit(s)),""!=f&&"object"==typeof e.SOW.core.toast&&e.SOW.core.toast.show(h,"",f,p,Number(g),!0)}})}),Number(l))}})))}))},UtilLiveReload:function(o){let a=document.querySelectorAll(o);a&&a.forEach((function(o){if(o.classList.contains("js-sowrutilified"))return null;o.classList.add("js-sowrutilified");var a=o.getAttribute("data-util-live-reload-target")||"",r=o.tagName.toLowerCase(),n=o.getAttribute("type")||"",i="change";""!=a&&("input"==r?(i="keyup","radio"!=n&&"checkbox"!=n||(i="click")):"textarea"==r?i="keyup":"select"==r?i="change":"a"!=r&&"button"!=r||(i="click"),o.addEventListener(i,(function(o){!function(o){var a=document.querySelector(o);if("object"!=typeof a)return;var r=a.getAttribute("data-reload-ajax-url")||"",n=a.getAttribute("data-reload-ajax-method")||"GET",i=a.getAttribute("data-reload-ajax-params")||"",s=a.getAttribute("data-reload-ajax-delay")||1e3,l=a.getAttribute("data-ajax-show-loading-icon")||"true",c={ajax:"true"};if(""!=i)for(var d=e.SOW.helper.params_parse(i),u=0;u<d.length;++u)c[d[u][0]]=d[u][1];window.afterFormChange&&clearTimeout(window.afterFormChange);window.afterFormChange=setTimeout((function(){jQuery.ajax({url:r,type:n,data:c,beforeSend:function(){"true"==l&&e.SOW.helper.loadingSpinner("show")},error:function(t,o,a){e.SOW.helper.loadingSpinner("hide")},success:function(a){e.SOW.helper.loadingSpinner("hide"),jQuery(o).empty().append(a),jQuery(".sow-util-form-live-monitor").removeClass("js-sowlfutilified"),e.SOW.core.utils.UtilFormLiveMonitor(".sow-util-form-live-monitor"),e.SOW.helper.consoleLogReinit(t,o),e.SOW.reinit(o)}})}),Number(s))}(a)})))}))}}}(jQuery),function(e){"use strict";var t=function e(t,a){var r=o(t,a),n=t.length;if(e.analyzeSubTerms)for(var i=1;i<n&&i<e.analyzeSubTermDepth;i++){var s=t.substring(i),l=o(s,a);l.score>r.score&&(l.term=t,l.highlightedTerm=t.substring(0,i)+l.highlightedTerm,r=l)}return r},o=function(e,o){for(var a=0,r=e.length,n=o.length,i="",s=0,l=-2,c=0;c<n&&s<r;c++)for(var d=o.charAt(c).toLowerCase();s<r;s++){var u=e.charAt(s);if(d===u.toLowerCase()){a++,l+1===s&&(a+=2),i+=t.highlighting.before+u+t.highlighting.after,l=s,s++;break}i+=u}return i+=e.substring(s,e.length),{score:a,term:e,query:o,highlightedTerm:i}};if(t.matchComparator=function(e,t){return t.score-e.score!=0?t.score-e.score:e.term.length-t.term.length},t.analyzeSubTerms=!1,t.analyzeSubTermDepth=10,t.highlighting={before:"<em>",after:"</em>"},"undefined"!=typeof module&&module.exports)module.exports=t;else if("function"==typeof define)define((function(){return t}));else{var a=e.fuzzy;t.noConflict=function(){return e.fuzzy=a,t},e.fuzzy=t}}(this),$.SOW.config.sow__debug_enable=!0,void 0===$.SOW.config.autoinit&&($.SOW.config.autoinit={}),$.SOW.config.autoinit.sow_header=["$.SOW.core.header.init","null",null,!1],$.SOW.config.autoinit.sow_search_suggest=["$.SOW.core.search_suggest.init","form.js-ajax-search",null,!1],$.SOW.config.autoinit.sow_lazyload=["$.SOW.core.lazyload.init",".lazy",null,!0],$.SOW.config.autoinit.sow_ajax_navigation=["$.SOW.core.ajax_navigation.init","a.js-ajax",{enable:!0,target_container:"#middle",parser_extract_enable:!0,parser_force_push2target:!1,parser_extract_element:"#middle, #page_js_files",page_404:"404.html",container2_element:"img.js-ajax-loaded-animate",container2_class:"animate-bouncein",data_params:{ajax:"true"},update_url:!0,show_loading_icon:!0,method:"GET",autoscroll_to_content:!0,callback_function:"",callback_before_push:!1,onpopstate_reload:!0,custom_function_call:"",contentType:"",dataType:"",headers:"",crossDomain:"",ajaxGarbage:""},!0],$.SOW.config.autoinit.sow_ajax_content=["$.SOW.core.ajax_content.init","div.js-ajax, section.js-ajax",null,!0],$.SOW.config.autoinit.sow_ajax_form=["$.SOW.core.ajax_form.init","form.js-ajax",null,!0],$.SOW.config.autoinit.sow_ajax_select=["$.SOW.core.ajax_select.init","select.js-ajax",null,!0],$.SOW.config.autoinit.sow_ajax_modal=["$.SOW.core.ajax_modal.init",".js-ajax-modal",{size:"modal-md"},!0],$.SOW.config.autoinit.sow_ajax_confirm=["$.SOW.core.ajax_confirm.init",".js-ajax-confirm",null,!0],$.SOW.config.autoinit.sow_file_upload=["$.SOW.core.file_upload.init",'input[type="file"].custom-file-input, input[type="file"].form-control',null,!0],$.SOW.config.autoinit.sow_toast=["$.SOW.core.toast.init","div.toast-on-load",null,!0],$.SOW.config.autoinit.sow_dropdown_click_ignore=["$.SOW.core.dropdown_click_ignore.init",".dropdown-menu.dropdown-click-ignore",null,!0],$.SOW.config.autoinit.sow_dropdown=["$.SOW.core.dropdown.init",".dropdown-menu.dropdown-menu-hover",null,!0],$.SOW.config.autoinit.sow_dropdown_ajax=["$.SOW.core.dropdown_ajax.init",'a[data-bs-toggle="dropdown"]',{loading_icon:"fi fi-circle-spin fi-spin",clearCacheInterval:18e5,tpl_start:'<ul class="list-unstyled m-0 p-0">',tpl_end:"</ul>",tpl_ItemStart:'<li class="dropdown-item">',tpl_ItemStartWChilds:'<li class="dropdown-item dropdown">',tpl_ItemEnd:"</li>",tpl_Child_Start:'<ul class="dropdown-menu dropdown-menu-hover dropdown-menu-block-md shadow-lg b-0 m-0">',tpl_Divider:'<li class="dropdown-divider"></li>'},!0],$.SOW.config.autoinit.sow_count_animate=["$.SOW.core.count_animate.init","null",null,!0],$.SOW.config.autoinit.sow_btn_toggle=["$.SOW.core.btn_toggle.init",".btn-toggle",null,!0],$.SOW.config.autoinit.sow_nav_deep=["$.SOW.core.nav_deep.init",".nav-deep",{speed:150},!0],$.SOW.config.autoinit.sow_form_validate=["$.SOW.core.form_validate.init","form.bs-validate",null,!0],$.SOW.config.autoinit.sow_form_advanced=["$.SOW.core.form_advanced.init","null",null,!0],$.SOW.config.autoinit.sow_checkall=["$.SOW.core.checkall.init","input[data-checkall-container]",null,!0],$.SOW.config.autoinit.sow_checkgroup=["$.SOW.core.checkgroup.init","div.checkgroup",null,!0],$.SOW.config.autoinit.sow_gdpr=["$.SOW.core.gdpr.init","#gdpr",{cookie_name:"__gdpr"},!1],$.SOW.config.autoinit.sow_sidebar=["$.SOW.core.sidebar.init","null",null,!1],$.SOW.config.autoinit.sow_scroll_to=["$.SOW.core.scroll_to.init","a.scroll-to",{speed:400,s2t_enable:!0,s2t_class:"btn-secondary",s2t_position:"end",s2t_mob_minH:1200,s2t_dsk_minH:2300},!0],$.SOW.config.autoinit.sow_search_inline=["$.SOW.core.search_inline.init","input.iqs-input",null,!0],$.SOW.config.autoinit.sow_input_suggest=["$.SOW.core.input_suggest.init","input.input-suggest",null,!0],$.SOW.config.autoinit.sow_timer_autohide=["$.SOW.core.timer_autohide.init",".timer-autohide",null,!0],$.SOW.config.autoinit.sow_timer_countdown=["$.SOW.core.timer_countdown.init",".timer-countdown",null,!0],$.SOW.config.autoinit.sow_gfont=["$.SOW.core.gfont.init","[data-gfont]",null,!0],$.SOW.config.autoinit.sow_utils=["$.SOW.core.utils.init","",{selector__initialFromString:".sow-util-initials",selector__timeAgo:".sow-util-timeago",selector__cookie:".sow-util-cookie",selector__slideshow:".sow-util-slideshow",selector__cloner:".sow-util-cloner",selector__action:".sow-util-action",selector__form:".sow-util-form",selector__formLiveMonitor:".sow-util-form-live-monitor",selector__liveReload:".sow-util-live-reload",lang__timeAgo:{seconds:"less than a minute ago",minute:"about a minute ago",minutes:"%d minutes ago",hour:"about an hour ago",hours:"about %d hours ago",day:"a day ago",days:"%d days ago",month:"about a month ago",months:"%d months ago",year:"about a year ago",years:"%d years ago"}},!0];