var jnews_ajax_url='/?ajax-request=jnews'
;function _0x202d(){var _0x4a49d7=['dataStorage','send','create_js','parentNode','innerText','GET','currentTime','complete','passive','addEventListener','createElement','replaceWith','prototype','touchstart','left','760257izhsvV','stop','setAttribute','width','set','concat','435180JmZKyz','top','clientHeight','not\x20all','fps','push','isObjectSame','ajax','indexOf','clientWidth','100px','querySelectorAll','duration','position','jnewsDataStorage','documentElement','removeClass','fireEvent','className','boolean','jnewsadmin','fontSize','media','reduce','objKeys','interactive','getParents','join','onreadystatechange','innerWidth','removeAttribute','move','assets','style','fixed','getBoundingClientRect','455598UDhrIG','includes','addClass','15lLWZlX','docReady','post','readyState','20TyzIVC','X-Requested-With','bind','expired','assign','deferasync','function','10px','undefined','div','response','remove','src','setStorage','jnews-','windowHeight','hasClass','callback','100000','url','webkitCancelRequestAnimationFrame','instr','globalBody','winLoad','appendChild','CustomEvent','backgroundColor','setRequestHeader','hasOwnProperty','async','POST','getItem','floor','innerHTML','cancelAnimationFrame','setItem','getElementsByTagName','11px','load_assets','increment','getTime','application/x-www-form-urlencoded','get','now','getNotice','offsetHeight','End','defer','script','getHeight','dispatchEvent','doc','splice','removeEventListener','parse','216184ViYLVr','76040wpDBVp','mozRequestAnimationFrame','au_scripts','expiredStorage','body','supportsPassive','file_version_checker','border','httpBuildQuery','easeInOutQuad','toLowerCase','initCustomEvent','XMLHttpRequest','zIndex','status','jnewsHelper','finish','removeItem','stringify','mark','fpsTable','requestAnimationFrame','classList','offsetWidth','textContent','attachEvent','replace','start','object','has','height','call','eventType','createEvent','style[media]','string','performance','white','win','getStorage','webkitRequestAnimationFrame','isVisible','library','removeEvents','docEl','triggerEvents','forEach','size','msCancelRequestAnimationFrame','passiveOption','addEvents','oRequestAnimationFrame','134025zVHDhD','boot','getText','unwrap','windowWidth','createEventObject','56bxKcJh','getElementById','length','jnewsads','change','animateScroll','scrollTop','10.0.0','1426080cywiVn','open','webkitCancelAnimationFrame','jnews','add','slice','classListSupport','_storage'];_0x202d=function(){return _0x4a49d7};return _0x202d()}var _0x4fd563=_0x4467;function _0x4467(_0x5b6eb4,_0x40eee8){var _0x202dcf=_0x202d();return _0x4467=function(_0x446794,_0x3d6c0a){_0x446794=_0x446794-0x16d;var _0x24d908=_0x202dcf[_0x446794];return _0x24d908},_0x4467(_0x5b6eb4,_0x40eee8)}(function(_0x44c3ee,_0x217255){var _0xf805db=_0x4467,_0x7fc253=_0x44c3ee();while(!![]){try{var _0x5e1072=parseInt(_0xf805db(0x1f2))/0x1+parseInt(_0xf805db(0x21d))/0x2+parseInt(_0xf805db(0x182))/0x3*(-parseInt(_0xf805db(0x1bd))/0x4)+parseInt(_0xf805db(0x200))/0x5+parseInt(_0xf805db(0x17f))/0x6+parseInt(_0xf805db(0x1f8))/0x7*(-parseInt(_0xf805db(0x1be))/0x8)+-parseInt(_0xf805db(0x217))/0x9*(parseInt(_0xf805db(0x186))/0xa);if(_0x5e1072===_0x217255)break;else _0x7fc253.push(_0x7fc253.shift())}catch(_0x12cb71){_0x7fc253.push(_0x7fc253.shift())}}}(_0x202d,0x303ac),(window[_0x4fd563(0x203)]=window[_0x4fd563(0x203)]||{},window.jnews[_0x4fd563(0x1e8)]=window[_0x4fd563(0x203)].library||{},window[_0x4fd563(0x203)][_0x4fd563(0x1e8)]=function(){'use strict';var _0xca69a4=_0x4fd563;var _0x2901f2=this;_0x2901f2[_0xca69a4(0x1e4)]=window,_0x2901f2[_0xca69a4(0x1b9)]=document,_0x2901f2.noop=function(){},_0x2901f2[_0xca69a4(0x19c)]=_0x2901f2.doc.getElementsByTagName('body')[0x0],_0x2901f2[_0xca69a4(0x19c)]=_0x2901f2.globalBody?_0x2901f2[_0xca69a4(0x19c)]:_0x2901f2.doc,_0x2901f2[_0xca69a4(0x1e4)].jnewsDataStorage=_0x2901f2[_0xca69a4(0x1e4)].jnewsDataStorage||{'_storage':new WeakMap(),'put':function(_0x844a70,_0xfec3eb,_0x5de76d){var _0x524e6e=_0xca69a4;this[_0x524e6e(0x207)][_0x524e6e(0x1db)](_0x844a70)||this[_0x524e6e(0x207)][_0x524e6e(0x21b)](_0x844a70,new Map()),this[_0x524e6e(0x207)][_0x524e6e(0x1b0)](_0x844a70)[_0x524e6e(0x21b)](_0xfec3eb,_0x5de76d)},'get':function(_0x19c0d2,_0x534486){var _0x405f55=_0xca69a4;return this[_0x405f55(0x207)][_0x405f55(0x1b0)](_0x19c0d2)[_0x405f55(0x1b0)](_0x534486)},'has':function(_0x589180,_0x50d968){var _0x1dfc6d=_0xca69a4;return this[_0x1dfc6d(0x207)][_0x1dfc6d(0x1db)](_0x589180)&&this[_0x1dfc6d(0x207)][_0x1dfc6d(0x1b0)](_0x589180)[_0x1dfc6d(0x1db)](_0x50d968)},'remove':function(_0x1be065,_0x15ebb2){var _0x40612e=_0xca69a4,_0x110e31=this[_0x40612e(0x207)].get(_0x1be065)['delete'](_0x15ebb2);return 0x0===!this[_0x40612e(0x207)].get(_0x1be065)[_0x40612e(0x1ed)]&&this[_0x40612e(0x207)]['delete'](_0x1be065),_0x110e31}},_0x2901f2[_0xca69a4(0x1f6)]=function(){var _0x558749=_0xca69a4;return _0x2901f2.win[_0x558749(0x178)]||_0x2901f2.docEl[_0x558749(0x226)]||_0x2901f2.globalBody[_0x558749(0x226)]},_0x2901f2[_0xca69a4(0x195)]=function(){var _0x215736=_0xca69a4;return _0x2901f2[_0x215736(0x1e4)].innerHeight||_0x2901f2[_0x215736(0x1ea)][_0x215736(0x21f)]||_0x2901f2[_0x215736(0x19c)][_0x215736(0x21f)]},_0x2901f2.requestAnimationFrame=_0x2901f2[_0xca69a4(0x1e4)][_0xca69a4(0x1d3)]||_0x2901f2[_0xca69a4(0x1e4)][_0xca69a4(0x1e6)]||_0x2901f2[_0xca69a4(0x1e4)][_0xca69a4(0x1bf)]||_0x2901f2[_0xca69a4(0x1e4)].msRequestAnimationFrame||window[_0xca69a4(0x1f1)]||function(_0x387e2c){return setTimeout(_0x387e2c,0x3e8/0x3c)},_0x2901f2[_0xca69a4(0x1a8)]=_0x2901f2[_0xca69a4(0x1e4)][_0xca69a4(0x1a8)]||_0x2901f2[_0xca69a4(0x1e4)][_0xca69a4(0x202)]||_0x2901f2[_0xca69a4(0x1e4)][_0xca69a4(0x19a)]||_0x2901f2[_0xca69a4(0x1e4)].mozCancelAnimationFrame||_0x2901f2.win[_0xca69a4(0x1ee)]||_0x2901f2.win.oCancelRequestAnimationFrame||function(_0x1c5508){clearTimeout(_0x1c5508)},_0x2901f2[_0xca69a4(0x206)]=_0xca69a4(0x1d4)in document[_0xca69a4(0x212)]('_'),_0x2901f2[_0xca69a4(0x196)]=_0x2901f2[_0xca69a4(0x206)]?function(_0x1b9ad5,_0xc27787){return _0x1b9ad5.classList.contains(_0xc27787)}:function(_0x18cc62,_0x36b2c9){var _0x20f8f1=_0xca69a4;return _0x18cc62.className[_0x20f8f1(0x225)](_0x36b2c9)>=0x0},_0x2901f2[_0xca69a4(0x181)]=_0x2901f2[_0xca69a4(0x206)]?function(_0x35f1a5,_0x40ac1b){var _0x3605a5=_0xca69a4;_0x2901f2[_0x3605a5(0x196)](_0x35f1a5,_0x40ac1b)||_0x35f1a5[_0x3605a5(0x1d4)][_0x3605a5(0x204)](_0x40ac1b)}:function(_0x3eb65a,_0x52e309){var _0x12be20=_0xca69a4;_0x2901f2[_0x12be20(0x196)](_0x3eb65a,_0x52e309)||(_0x3eb65a[_0x12be20(0x16d)]+='\x20'+_0x52e309)},_0x2901f2[_0xca69a4(0x22d)]=_0x2901f2.classListSupport?function(_0x2acd36,_0x4f796d){var _0x12c4cb=_0xca69a4;_0x2901f2[_0x12c4cb(0x196)](_0x2acd36,_0x4f796d)&&_0x2acd36[_0x12c4cb(0x1d4)][_0x12c4cb(0x191)](_0x4f796d)}:function(_0x36218b,_0x410015){var _0x2b9f69=_0xca69a4;_0x2901f2.hasClass(_0x36218b,_0x410015)&&(_0x36218b[_0x2b9f69(0x16d)]=_0x36218b.className[_0x2b9f69(0x1d8)](_0x410015,''))},_0x2901f2[_0xca69a4(0x173)]=function(_0x26cb01){var _0x4baaa6=_0xca69a4,_0x331b73=[];for(var _0x296651 in _0x26cb01)Object[_0x4baaa6(0x214)][_0x4baaa6(0x1a2)][_0x4baaa6(0x1dd)](_0x26cb01,_0x296651)&&_0x331b73[_0x4baaa6(0x222)](_0x296651);return _0x331b73},_0x2901f2[_0xca69a4(0x223)]=function(_0x5da82f,_0x264022){var _0x4e07a7=_0xca69a4,_0x3d55ec=!0x0;return JSON[_0x4e07a7(0x1d0)](_0x5da82f)!==JSON.stringify(_0x264022)&&(_0x3d55ec=!0x1),_0x3d55ec},_0x2901f2.extend=function(){var _0x18e624=_0xca69a4;for(var _0x5662f9,_0x30a6f2,_0x27941b,_0x1d8aea=arguments[0x0]||{},_0xb4b205=0x1,_0x185195=arguments[_0x18e624(0x1fa)];_0xb4b205<_0x185195;_0xb4b205++)if(null!==(_0x5662f9=arguments[_0xb4b205])){for(_0x30a6f2 in _0x5662f9)_0x1d8aea!==(_0x27941b=_0x5662f9[_0x30a6f2])&&void 0x0!==_0x27941b&&(_0x1d8aea[_0x30a6f2]=_0x27941b);}return _0x1d8aea},_0x2901f2[_0xca69a4(0x208)]=_0x2901f2.win[_0xca69a4(0x22b)],_0x2901f2[_0xca69a4(0x1e7)]=function(_0x208135){var _0x47c64e=_0xca69a4;return 0x0!==_0x208135[_0x47c64e(0x1d5)]&&0x0!==_0x208135[_0x47c64e(0x1b3)]||_0x208135[_0x47c64e(0x17e)]()[_0x47c64e(0x1fa)]},_0x2901f2[_0xca69a4(0x1b7)]=function(_0x16ed02){var _0xf9de7c=_0xca69a4;return _0x16ed02.offsetHeight||_0x16ed02[_0xf9de7c(0x21f)]||_0x16ed02[_0xf9de7c(0x17e)]()[_0xf9de7c(0x1dc)]},_0x2901f2.getWidth=function(_0x273cd7){var _0x4bd050=_0xca69a4;return _0x273cd7[_0x4bd050(0x1d5)]||_0x273cd7[_0x4bd050(0x226)]||_0x273cd7.getBoundingClientRect()[_0x4bd050(0x21a)]},_0x2901f2[_0xca69a4(0x1c3)]=!0x1;try{var _0x20ba0=Object.defineProperty({},_0xca69a4(0x210),{'get':function(){var _0x529117=_0xca69a4;_0x2901f2[_0x529117(0x1c3)]=!0x0}});_0xca69a4(0x1df)in _0x2901f2[_0xca69a4(0x1b9)]?_0x2901f2.win.addEventListener('test',null,_0x20ba0):'fireEvent'in _0x2901f2[_0xca69a4(0x1b9)]&&_0x2901f2.win[_0xca69a4(0x1d7)]('test',null)}catch(_0x3940ed){}_0x2901f2[_0xca69a4(0x1ef)]=!!_0x2901f2[_0xca69a4(0x1c3)]&&{'passive':!0x0},_0x2901f2[_0xca69a4(0x193)]=function(_0x262b58,_0x38a636){var _0x2b291d=_0xca69a4;_0x262b58=_0x2b291d(0x194)+_0x262b58;var _0x21c347={'expired':Math[_0x2b291d(0x1a6)]((new Date()[_0x2b291d(0x1ae)]()+0x2932e00)/0x3e8)};_0x38a636=Object[_0x2b291d(0x18a)](_0x21c347,_0x38a636),localStorage[_0x2b291d(0x1a9)](_0x262b58,JSON.stringify(_0x38a636))},_0x2901f2[_0xca69a4(0x1e5)]=function(_0x258eb0){var _0x48cbff=_0xca69a4;_0x258eb0=_0x48cbff(0x194)+_0x258eb0;var _0x595abc=localStorage[_0x48cbff(0x1a5)](_0x258eb0);return null!==_0x595abc&&0x0<_0x595abc.length?JSON[_0x48cbff(0x1bc)](localStorage.getItem(_0x258eb0)):{}},_0x2901f2[_0xca69a4(0x1c1)]=function(){var _0x4dafbb=_0xca69a4,_0x33fd1b,_0x5fde05=_0x4dafbb(0x194);for(var _0x1dec34 in localStorage)_0x1dec34.indexOf(_0x5fde05)>-0x1&&_0x4dafbb(0x18e)!==(_0x33fd1b=_0x2901f2.getStorage(_0x1dec34[_0x4dafbb(0x1d8)](_0x5fde05,'')))[_0x4dafbb(0x189)]&&_0x33fd1b[_0x4dafbb(0x189)]<Math.floor(new Date()[_0x4dafbb(0x1ae)]()/0x3e8)&&localStorage[_0x4dafbb(0x1cf)](_0x1dec34);},_0x2901f2[_0xca69a4(0x1f0)]=function(_0x3170b9,_0x57f900,_0x11ed2d){var _0x18cba1=_0xca69a4;for(var _0x2f966c in _0x57f900){var _0x2d00f1=[_0x18cba1(0x215),'touchmove'][_0x18cba1(0x225)](_0x2f966c)>=0x0&&!_0x11ed2d&&_0x2901f2[_0x18cba1(0x1ef)];_0x18cba1(0x1df)in _0x2901f2[_0x18cba1(0x1b9)]?_0x3170b9[_0x18cba1(0x211)](_0x2f966c,_0x57f900[_0x2f966c],_0x2d00f1):_0x18cba1(0x22e)in _0x2901f2.doc&&_0x3170b9[_0x18cba1(0x1d7)]('on'+_0x2f966c,_0x57f900[_0x2f966c])}},_0x2901f2[_0xca69a4(0x1e9)]=function(_0x6a081b,_0x1a9b6e){var _0x38f76c=_0xca69a4;for(var _0x2879a3 in _0x1a9b6e)_0x38f76c(0x1df)in _0x2901f2[_0x38f76c(0x1b9)]?_0x6a081b[_0x38f76c(0x1bb)](_0x2879a3,_0x1a9b6e[_0x2879a3]):_0x38f76c(0x22e)in _0x2901f2[_0x38f76c(0x1b9)]&&_0x6a081b.detachEvent('on'+_0x2879a3,_0x1a9b6e[_0x2879a3]);},_0x2901f2[_0xca69a4(0x1eb)]=function(_0x49033d,_0x4e455c,_0x4b2de6){var _0xc2e848=_0xca69a4,_0x3ddc4a;return _0x4b2de6=_0x4b2de6||{'detail':null},_0xc2e848(0x1df)in _0x2901f2[_0xc2e848(0x1b9)]?(!(_0x3ddc4a=_0x2901f2[_0xc2e848(0x1b9)].createEvent(_0xc2e848(0x19f))||new CustomEvent(_0x4e455c))[_0xc2e848(0x1c9)]||_0x3ddc4a[_0xc2e848(0x1c9)](_0x4e455c,!0x0,!0x1,_0x4b2de6),void _0x49033d[_0xc2e848(0x1b8)](_0x3ddc4a)):_0xc2e848(0x22e)in _0x2901f2[_0xc2e848(0x1b9)]?((_0x3ddc4a=_0x2901f2[_0xc2e848(0x1b9)][_0xc2e848(0x1f7)]())[_0xc2e848(0x1de)]=_0x4e455c,void _0x49033d[_0xc2e848(0x22e)]('on'+_0x3ddc4a[_0xc2e848(0x1de)],_0x3ddc4a)):void 0x0},_0x2901f2[_0xca69a4(0x175)]=function(_0x138107,_0x11ea92){var _0x2d3b62=_0xca69a4;void 0x0===_0x11ea92&&(_0x11ea92=_0x2901f2.doc);for(var _0x440e69=[],_0x53cb91=_0x138107[_0x2d3b62(0x20b)],_0x372a32=!0x1;!_0x372a32;)if(_0x53cb91){var _0x566931=_0x53cb91;_0x566931.querySelectorAll(_0x11ea92)['length']?_0x372a32=!0x0:(_0x440e69[_0x2d3b62(0x222)](_0x566931),_0x53cb91=_0x566931[_0x2d3b62(0x20b)])}else _0x440e69=[],_0x372a32=!0x0;return _0x440e69},_0x2901f2[_0xca69a4(0x1ec)]=function(_0x12fb87,_0x4073b0,_0x356d80){var _0x5aee6e=_0xca69a4;for(var _0x434e9a=0x0,_0x4a260c=_0x12fb87[_0x5aee6e(0x1fa)];_0x434e9a<_0x4a260c;_0x434e9a++)_0x4073b0[_0x5aee6e(0x1dd)](_0x356d80,_0x12fb87[_0x434e9a],_0x434e9a);},_0x2901f2[_0xca69a4(0x1f4)]=function(_0xc5eeec){var _0x4e8a68=_0xca69a4;return _0xc5eeec[_0x4e8a68(0x20c)]||_0xc5eeec[_0x4e8a68(0x1d6)]},_0x2901f2.setText=function(_0x543aa9,_0x310d37){var _0x401a0f=_0xca69a4,_0x4155b0=_0x401a0f(0x1da)==typeof _0x310d37?_0x310d37.innerText||_0x310d37[_0x401a0f(0x1d6)]:_0x310d37;_0x543aa9[_0x401a0f(0x20c)]&&(_0x543aa9[_0x401a0f(0x20c)]=_0x4155b0),_0x543aa9.textContent&&(_0x543aa9.textContent=_0x4155b0)},_0x2901f2[_0xca69a4(0x1c6)]=function(_0x23f5ad){var _0x43d39b=_0xca69a4;return _0x2901f2[_0x43d39b(0x173)](_0x23f5ad)[_0x43d39b(0x172)](function _0x20389d(_0x12da16){var _0x3be17f=_0x43d39b,_0xc562d1=arguments[_0x3be17f(0x1fa)]>0x1&&void 0x0!==arguments[0x1]?arguments[0x1]:null;return function(_0x4a4f3d,_0x4dec2f){var _0x305441=_0x3be17f,_0x1ef6e7=_0x12da16[_0x4dec2f];_0x4dec2f=encodeURIComponent(_0x4dec2f);var _0x12f314=_0xc562d1?''[_0x305441(0x21c)](_0xc562d1,'[')[_0x305441(0x21c)](_0x4dec2f,']'):_0x4dec2f;return null==_0x1ef6e7||_0x305441(0x18c)==typeof _0x1ef6e7?(_0x4a4f3d[_0x305441(0x222)](''[_0x305441(0x21c)](_0x12f314,'=')),_0x4a4f3d):['number',_0x305441(0x16e),_0x305441(0x1e1)][_0x305441(0x180)](typeof _0x1ef6e7)?(_0x4a4f3d[_0x305441(0x222)](''[_0x305441(0x21c)](_0x12f314,'=')[_0x305441(0x21c)](encodeURIComponent(_0x1ef6e7))),_0x4a4f3d):(_0x4a4f3d[_0x305441(0x222)](_0x2901f2[_0x305441(0x173)](_0x1ef6e7)[_0x305441(0x172)](_0x20389d(_0x1ef6e7,_0x12f314),[])[_0x305441(0x176)]('&')),_0x4a4f3d)}}(_0x23f5ad),[])[_0x43d39b(0x176)]('&')},_0x2901f2.get=function(_0x339934,_0x4a5b60,_0x9271b0,_0x33c06c){var _0x57f850=_0xca69a4;return _0x9271b0=_0x57f850(0x18c)==typeof _0x9271b0?_0x9271b0:_0x2901f2.noop,_0x2901f2[_0x57f850(0x224)](_0x57f850(0x20d),_0x339934,_0x4a5b60,_0x9271b0,_0x33c06c)},_0x2901f2[_0xca69a4(0x184)]=function(_0x5155c3,_0x455bf2,_0x4f1274,_0x8ffa32){var _0x88e02b=_0xca69a4;return _0x4f1274=_0x88e02b(0x18c)==typeof _0x4f1274?_0x4f1274:_0x2901f2.noop,_0x2901f2[_0x88e02b(0x224)](_0x88e02b(0x1a4),_0x5155c3,_0x455bf2,_0x4f1274,_0x8ffa32)},_0x2901f2[_0xca69a4(0x224)]=function(_0x445191,_0x1dfddf,_0x48b6ac,_0x4012c1,_0x1214b8){var _0x5b2075=_0xca69a4,_0x1fdb48=new XMLHttpRequest(),_0x43ca53=_0x1dfddf,_0x4beb47=_0x2901f2.httpBuildQuery(_0x48b6ac);if(_0x445191=-0x1!=[_0x5b2075(0x20d),'POST'][_0x5b2075(0x225)](_0x445191)?_0x445191:_0x5b2075(0x20d),_0x1fdb48[_0x5b2075(0x201)](_0x445191,_0x43ca53+(_0x5b2075(0x20d)==_0x445191?'?'+_0x4beb47:''),!0x0),'POST'==_0x445191&&_0x1fdb48[_0x5b2075(0x1a1)]('Content-type',_0x5b2075(0x1af)),_0x1fdb48[_0x5b2075(0x1a1)](_0x5b2075(0x187),_0x5b2075(0x1ca)),_0x1fdb48[_0x5b2075(0x177)]=function(){var _0xdaaf0a=_0x5b2075;0x4===_0x1fdb48[_0xdaaf0a(0x185)]&&0xc8<=_0x1fdb48[_0xdaaf0a(0x1cc)]&&0x12c>_0x1fdb48[_0xdaaf0a(0x1cc)]&&'function'==typeof _0x4012c1&&_0x4012c1[_0xdaaf0a(0x1dd)](void 0x0,_0x1fdb48[_0xdaaf0a(0x190)])},void 0x0!==_0x1214b8&&!_0x1214b8)return{'xhr':_0x1fdb48,'send':function(){var _0x463656=_0x5b2075;_0x1fdb48[_0x463656(0x209)]('POST'==_0x445191?_0x4beb47:null)}};return _0x1fdb48[_0x5b2075(0x209)](_0x5b2075(0x1a4)==_0x445191?_0x4beb47:null),{'xhr':_0x1fdb48}},_0x2901f2.scrollTo=function(_0x2e1ffd,_0x56b6f3,_0x419b3d){var _0x14f7c1=_0xca69a4;function _0x43cf38(_0x5865d4,_0x27e4ac,_0x57cd27){var _0x523224=_0x4467;this[_0x523224(0x1d9)]=this[_0x523224(0x22a)](),this[_0x523224(0x1fc)]=_0x5865d4-this[_0x523224(0x1d9)],this['currentTime']=0x0,this[_0x523224(0x1ad)]=0x14,this['duration']=void 0x0===_0x57cd27?0x1f4:_0x57cd27,this[_0x523224(0x197)]=_0x27e4ac,this[_0x523224(0x1ce)]=!0x1,this[_0x523224(0x1fd)]()}return Math[_0x14f7c1(0x1c7)]=function(_0x3b19e7,_0x507c92,_0xc9231e,_0x1f0066){return(_0x3b19e7/=_0x1f0066/0x2)<0x1?_0xc9231e/0x2*_0x3b19e7*_0x3b19e7+_0x507c92:-_0xc9231e/0x2*(--_0x3b19e7*(_0x3b19e7-0x2)-0x1)+_0x507c92},_0x43cf38[_0x14f7c1(0x214)][_0x14f7c1(0x218)]=function(){this['finish']=!0x0},_0x43cf38.prototype[_0x14f7c1(0x17a)]=function(_0x54890f){var _0x2c5732=_0x14f7c1;_0x2901f2[_0x2c5732(0x1b9)][_0x2c5732(0x22c)][_0x2c5732(0x1fe)]=_0x54890f,_0x2901f2[_0x2c5732(0x19c)][_0x2c5732(0x20b)].scrollTop=_0x54890f,_0x2901f2[_0x2c5732(0x19c)].scrollTop=_0x54890f},_0x43cf38[_0x14f7c1(0x214)][_0x14f7c1(0x22a)]=function(){var _0x195e4a=_0x14f7c1;return _0x2901f2[_0x195e4a(0x1b9)].documentElement[_0x195e4a(0x1fe)]||_0x2901f2[_0x195e4a(0x19c)][_0x195e4a(0x20b)].scrollTop||_0x2901f2[_0x195e4a(0x19c)][_0x195e4a(0x1fe)]},_0x43cf38[_0x14f7c1(0x214)].animateScroll=function(){var _0x32476c=_0x14f7c1;this[_0x32476c(0x20e)]+=this['increment'];var _0x2e0dd3=Math.easeInOutQuad(this['currentTime'],this['start'],this[_0x32476c(0x1fc)],this[_0x32476c(0x229)]);this[_0x32476c(0x17a)](_0x2e0dd3),this[_0x32476c(0x20e)]<this[_0x32476c(0x229)]&&!this[_0x32476c(0x1ce)]?_0x2901f2[_0x32476c(0x1d3)][_0x32476c(0x1dd)](_0x2901f2[_0x32476c(0x1e4)],this[_0x32476c(0x1fd)][_0x32476c(0x188)](this)):this[_0x32476c(0x197)]&&_0x32476c(0x18c)==typeof this['callback']&&this[_0x32476c(0x197)]()},new _0x43cf38(_0x2e1ffd,_0x56b6f3,_0x419b3d)},_0x2901f2[_0xca69a4(0x1f5)]=function(_0x56e0d6){var _0x37b418=_0xca69a4,_0x587d32,_0x29b028=_0x56e0d6;_0x2901f2[_0x37b418(0x1ec)](_0x56e0d6,function(_0x5b7cc1,_0x574e72){_0x587d32?_0x587d32+=_0x5b7cc1:_0x587d32=_0x5b7cc1}),_0x29b028[_0x37b418(0x213)](_0x587d32)},_0x2901f2[_0xca69a4(0x1e2)]={'start':function(_0x28db60){performance.mark(_0x28db60+'Start')},'stop':function(_0x1c7b9c){var _0x25f433=_0xca69a4;performance[_0x25f433(0x1d1)](_0x1c7b9c+'End'),performance.measure(_0x1c7b9c,_0x1c7b9c+'Start',_0x1c7b9c+_0x25f433(0x1b4))}},_0x2901f2.fps=function(){var _0x538108=0x0,_0x2cb724=0x0,_0x38fd9e=0x0;!(function(){var _0x14b0ec=_0x4467,_0x6a3cd=_0x538108=0x0,_0x3a96f6=0x0,_0x9e31e3=0x0,_0x493eea=document[_0x14b0ec(0x1f9)](_0x14b0ec(0x1d2)),_0x518949=function(_0x1de15d){var _0x4b9751=_0x14b0ec;void 0x0===document.getElementsByTagName(_0x4b9751(0x1c2))[0x0]?_0x2901f2[_0x4b9751(0x1d3)].call(_0x2901f2[_0x4b9751(0x1e4)],function(){_0x518949(_0x1de15d)}):document[_0x4b9751(0x1aa)](_0x4b9751(0x1c2))[0x0][_0x4b9751(0x19e)](_0x1de15d)};null===_0x493eea&&((_0x493eea=document[_0x14b0ec(0x212)](_0x14b0ec(0x18f)))[_0x14b0ec(0x17c)].position=_0x14b0ec(0x17d),_0x493eea[_0x14b0ec(0x17c)][_0x14b0ec(0x21e)]='120px',_0x493eea[_0x14b0ec(0x17c)][_0x14b0ec(0x216)]=_0x14b0ec(0x18d),_0x493eea[_0x14b0ec(0x17c)][_0x14b0ec(0x21a)]=_0x14b0ec(0x227),_0x493eea.style.height='20px',_0x493eea[_0x14b0ec(0x17c)][_0x14b0ec(0x1c5)]='1px\x20solid\x20black',_0x493eea.style[_0x14b0ec(0x170)]=_0x14b0ec(0x1ab),_0x493eea[_0x14b0ec(0x17c)][_0x14b0ec(0x1cb)]=_0x14b0ec(0x198),_0x493eea[_0x14b0ec(0x17c)][_0x14b0ec(0x1a0)]=_0x14b0ec(0x1e3),_0x493eea.id=_0x14b0ec(0x1d2),_0x518949(_0x493eea));var _0x16ed64=function(){var _0x2c515f=_0x14b0ec;_0x38fd9e++,_0x2cb724=Date[_0x2c515f(0x1b1)](),(_0x3a96f6=(_0x38fd9e/(_0x9e31e3=(_0x2cb724-_0x538108)/0x3e8))['toPrecision'](0x2))!=_0x6a3cd&&(_0x6a3cd=_0x3a96f6,_0x493eea[_0x2c515f(0x1a7)]=_0x6a3cd+_0x2c515f(0x221)),0x1<_0x9e31e3&&(_0x538108=_0x2cb724,_0x38fd9e=0x0),_0x2901f2.requestAnimationFrame[_0x2c515f(0x1dd)](_0x2901f2[_0x2c515f(0x1e4)],_0x16ed64)};_0x16ed64()}())},_0x2901f2[_0xca69a4(0x19b)]=function(_0x586c78,_0x1133db){var _0x59bc4=_0xca69a4;for(var _0x545fca=0x0;_0x545fca<_0x1133db[_0x59bc4(0x1fa)];_0x545fca++)if(-0x1!==_0x586c78[_0x59bc4(0x1c8)]()[_0x59bc4(0x225)](_0x1133db[_0x545fca].toLowerCase()))return!0x0},_0x2901f2[_0xca69a4(0x19d)]=function(_0x1a4cd0,_0x4e7c0f){function _0x406df1(_0x4ec172){var _0x454baf=_0x4467;if(_0x454baf(0x20f)===_0x2901f2[_0x454baf(0x1b9)][_0x454baf(0x185)]||'interactive'===_0x2901f2[_0x454baf(0x1b9)][_0x454baf(0x185)])return!_0x4ec172||_0x4e7c0f?setTimeout(_0x1a4cd0,_0x4e7c0f||0x1):_0x1a4cd0(_0x4ec172),0x1}_0x406df1()||_0x2901f2.addEvents(_0x2901f2.win,{'load':_0x406df1})},_0x2901f2[_0xca69a4(0x183)]=function(_0x228b52,_0x53d3bf){var _0x1098e7=_0xca69a4;function _0x1d8539(_0x49a504){var _0x3316f6=_0x4467;if('complete'===_0x2901f2[_0x3316f6(0x1b9)].readyState||_0x3316f6(0x174)===_0x2901f2[_0x3316f6(0x1b9)][_0x3316f6(0x185)])return!_0x49a504||_0x53d3bf?setTimeout(_0x228b52,_0x53d3bf||0x1):_0x228b52(_0x49a504),0x1}_0x1d8539()||_0x2901f2[_0x1098e7(0x1f0)](_0x2901f2[_0x1098e7(0x1b9)],{'DOMContentLoaded':_0x1d8539})},_0x2901f2.fireOnce=function(){var _0x5630d4=_0xca69a4;_0x2901f2[_0x5630d4(0x183)](function(){var _0x3766f5=_0x5630d4;_0x2901f2[_0x3766f5(0x17b)]=_0x2901f2[_0x3766f5(0x17b)]||[],_0x2901f2.assets[_0x3766f5(0x1fa)]&&(_0x2901f2[_0x3766f5(0x1f3)](),_0x2901f2[_0x3766f5(0x1ac)]())},0x32)},_0x2901f2.boot=function(){var _0x2aa92a=_0xca69a4;_0x2901f2.length&&_0x2901f2.doc[_0x2aa92a(0x228)](_0x2aa92a(0x1e0))[_0x2aa92a(0x1ec)](function(_0x5379d){var _0x4471b=_0x2aa92a;_0x4471b(0x220)==_0x5379d.getAttribute(_0x4471b(0x171))&&_0x5379d[_0x4471b(0x179)](_0x4471b(0x171))})},_0x2901f2[_0xca69a4(0x20a)]=function(_0x14c9d4,_0x433a58){var _0x5a0f7d=_0xca69a4,_0x256224=_0x2901f2[_0x5a0f7d(0x1b9)].createElement(_0x5a0f7d(0x1b6));switch(_0x256224.setAttribute(_0x5a0f7d(0x192),_0x14c9d4),_0x433a58){case _0x5a0f7d(0x1b5):_0x256224.setAttribute(_0x5a0f7d(0x1b5),!0x0);break;case'async':_0x256224[_0x5a0f7d(0x219)]('async',!0x0);break;case _0x5a0f7d(0x18b):_0x256224[_0x5a0f7d(0x219)]('defer',!0x0),_0x256224.setAttribute('async',!0x0)}_0x2901f2[_0x5a0f7d(0x19c)][_0x5a0f7d(0x19e)](_0x256224)},_0x2901f2[_0xca69a4(0x1ac)]=function(){var _0x25bc0a=_0xca69a4;_0x25bc0a(0x1da)==typeof _0x2901f2.assets&&_0x2901f2.forEach(_0x2901f2[_0x25bc0a(0x17b)][_0x25bc0a(0x205)](0x0),function(_0x474299,_0x24c944){var _0x53ff3c=_0x25bc0a,_0x5faf44='';_0x474299.defer&&(_0x5faf44+=_0x53ff3c(0x1b5)),_0x474299[_0x53ff3c(0x1a3)]&&(_0x5faf44+=_0x53ff3c(0x1a3)),_0x2901f2[_0x53ff3c(0x20a)](_0x474299[_0x53ff3c(0x199)],_0x5faf44);var _0xa9278e=_0x2901f2[_0x53ff3c(0x17b)][_0x53ff3c(0x225)](_0x474299);_0xa9278e>-0x1&&_0x2901f2[_0x53ff3c(0x17b)][_0x53ff3c(0x1ba)](_0xa9278e,0x1)}),_0x2901f2.assets=jnewsoption[_0x25bc0a(0x1c0)]=window[_0x25bc0a(0x1fb)]=[]},_0x2901f2.docReady(function(){var _0xc9af61=_0xca69a4;_0x2901f2[_0xc9af61(0x19c)]=_0x2901f2[_0xc9af61(0x19c)]==_0x2901f2[_0xc9af61(0x1b9)]?_0x2901f2[_0xc9af61(0x1b9)][_0xc9af61(0x1aa)](_0xc9af61(0x1c2))[0x0]:_0x2901f2[_0xc9af61(0x19c)],_0x2901f2[_0xc9af61(0x19c)]=_0x2901f2.globalBody?_0x2901f2[_0xc9af61(0x19c)]:_0x2901f2[_0xc9af61(0x1b9)]}),_0x2901f2.winLoad(function(){var _0x3f3aca=_0xca69a4;_0x2901f2[_0x3f3aca(0x19d)](function(){var _0x2b2457=_0x3f3aca,_0x3502a8=!0x1;if(void 0x0!==window[_0x2b2457(0x16f)]){if(void 0x0!==window[_0x2b2457(0x1c4)]){var _0x4900ab=_0x2901f2[_0x2b2457(0x173)](window[_0x2b2457(0x1c4)]);_0x4900ab.length?_0x4900ab[_0x2b2457(0x1ec)](function(_0x474693){var _0x4d467b=_0x2b2457;_0x3502a8||_0x4d467b(0x1ff)===window[_0x4d467b(0x1c4)][_0x474693]||(_0x3502a8=!0x0)}):_0x3502a8=!0x0}else _0x3502a8=!0x0}_0x3502a8&&(window.jnewsHelper.getMessage(),window[_0x2b2457(0x1cd)][_0x2b2457(0x1b2)]())},0x9c4)})},window[_0x4fd563(0x203)][_0x4fd563(0x1e8)]=new window.jnews[(_0x4fd563(0x1e8))]()))
;/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={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},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.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,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
;var jnews_module_6894_0_67202034614cc={"header_icon":"","first_title":"B\u00e0i vi\u1ebft m\u1edbi c\u1eadp nh\u1eadt","second_title":"","url":"","header_type":"heading_6","header_background":"","header_secondary_background":"","header_text_color":"","header_line_color":"","header_accent_color":"","header_filter_category":"","header_filter_author":"","header_filter_tag":"","header_filter_text":"All","post_type":"post","content_type":"all","number_post":"5","post_offset":"0","unique_content":"disable","include_post":"","exclude_post":"4495","include_category":"","exclude_category":"208","include_author":"","include_tag":"","exclude_tag":"","sort_by":"latest","date_format":"default","date_format_custom":"Y\/m\/d","excerpt_length":"0","excerpt_ellipsis":"","force_normal_image_load":"0","pagination_mode":"disable","pagination_nextprev_showtext":"0","pagination_number_post":"4","pagination_scroll_limit":"0","ads_type":"disable","ads_position":"1","ads_random":"0","ads_image":"","ads_image_tablet":"","ads_image_phone":"","ads_image_link":"","ads_image_alt":"","ads_image_new_tab":"0","google_publisher_id":"","google_slot_id":"","google_desktop":"auto","google_tab":"auto","google_phone":"auto","content":"","ads_bottom_text":"0","boxed":"0","boxed_shadow":"0","el_id":"","el_class":"","scheme":"normal","column_width":"auto","title_color":"","accent_color":"","alt_color":"","excerpt_color":"","css":"","paged":1,"column_class":"jeg_col_1o3","class":"jnews_block_3"}
;var jnews_module_6894_1_67202034638ce={"header_icon":"","first_title":"B\u00e0i vi\u1ebft n\u1ed5i b\u1eadt","second_title":"","url":"","header_type":"heading_6","header_background":"","header_secondary_background":"","header_text_color":"","header_line_color":"","header_accent_color":"","header_filter_category":"","header_filter_author":"","header_filter_tag":"","header_filter_text":"All","post_type":"post","content_type":"all","number_post":"10","post_offset":"0","unique_content":"disable","include_post":"","exclude_post":"4495,3526","include_category":"","exclude_category":"208","include_author":"","include_tag":"","exclude_tag":"","sort_by":"popular_post","show_date":"0","date_format":"default","date_format_custom":"Y\/m\/d","pagination_mode":"disable","pagination_nextprev_showtext":"0","pagination_number_post":"4","pagination_scroll_limit":"0","ads_type":"disable","ads_position":"1","ads_random":"0","ads_image":"","ads_image_tablet":"","ads_image_phone":"","ads_image_link":"","ads_image_alt":"","ads_image_new_tab":"0","google_publisher_id":"","google_slot_id":"","google_desktop":"auto","google_tab":"auto","google_phone":"auto","content":"","ads_bottom_text":"0","boxed":"0","boxed_shadow":"0","show_border":"0","el_id":"","el_class":"","scheme":"normal","column_width":"auto","title_color":"","accent_color":"","alt_color":"","excerpt_color":"","css":"","paged":1,"column_class":"jeg_col_1o3","class":"jnews_block_28"}
;(function () {
   document.addEventListener("DOMContentLoaded", function () {
       var e = "dmca-badge";
       var t = "refurl";
       var n = document.querySelectorAll('a.'+e);
       if (n[0].getAttribute("href").indexOf("refurl") < 0) {
           for (var r = 0; r < n.length; r++) {
               var i = n[r];
               i.href = i.href + (i.href.indexOf("?") === -1 ? "?" : "&") + t + "=" + document.location
           }
       }
   }, false)
}
)()
;var jfla=["view_counter"]
;var kk_star_ratings={"action":"kk-star-ratings","endpoint":"https:\/\/vntime.org\/wp-admin\/admin-ajax.php","nonce":"110a8fb661"}
;/**
 * kk Star Ratings
 * @see https://github.com/kamalkhan/kk-star-ratings
 */
 "use strict";!function(t){if("loading"!=document.readyState)return t();document.addEventListener("DOMContentLoaded",t)}(function(){var t=!1;Array.prototype.forEach.call(document.querySelectorAll(".kk-star-ratings"),function e(n){function r(r){var c={rating:r.getAttribute("data-star")},i=JSON.parse(n.getAttribute("data-payload"));for(var s in i)c["payload["+s+"]"]=i[s];!function(e,n,r){if(!t){t=!0,e=Object.assign({nonce:kk_star_ratings.nonce,action:kk_star_ratings.action},e);var a=[];for(var o in e)a.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o]));var c=new XMLHttpRequest;c.open("POST",kk_star_ratings.endpoint,!0),c.onload=function(){c.status>=200&&c.status<400?n(c.responseText,c):r(c.responseText,c)},c.onloadend=function(){t=!1},c.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8"),c.send(a.join("&"))}}(c,function(t){var r=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild}(t);n.parentNode.replaceChild(r,n),Array.prototype.forEach.call(o,function(t){t.removeEventListener("click",a)}),n=null,e(r)},console.error)}function a(t){t.preventDefault(),r(t.currentTarget)}var o=n.querySelectorAll("[data-star]");Array.prototype.forEach.call(o,function(t){t.addEventListener("click",a)})})});
;var wpdiscuzAjaxObj={"wc_hide_replies_text":"\u1ea8n tr\u1ea3 l\u1eddi","wc_show_replies_text":"Xem tr\u1ea3 l\u1eddi","wc_msg_required_fields":"H\u00e3y \u0111i\u1ec1n \u0111\u1ee7 th\u00f4ng tin cho c\u00e1c tr\u01b0\u1eddng b\u1eaft bu\u1ed9c","wc_invalid_field":"M\u1ed9t s\u1ed1 gi\u00e1 tr\u1ecb tr\u01b0\u1eddng kh\u00f4ng h\u1ee3p l\u1ec7","wc_error_empty_text":"h\u00e3y \u0111i\u1ec1n v\u00e0o tr\u01b0\u1eddng n\u00e0y \u0111\u1ec3 b\u00ecnh lu\u1eadn","wc_error_url_text":"url kh\u00f4ng h\u1ee3p l\u1ec7","wc_error_email_text":"\u0111\u1ecba ch\u1ec9 email kh\u00f4ng h\u1ee3p l\u1ec7","wc_invalid_captcha":"M\u00e3 Captcha kh\u00f4ng h\u1ee3p l\u1ec7","wc_login_to_vote":"B\u1ea1n ph\u1ea3i \u0111\u0103ng nh\u1eadp \u0111\u1ec3 b\u00ecnh ch\u1ecdn.","wc_deny_voting_from_same_ip":"B\u1ea1n kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p b\u00ecnh ch\u1ecdn cho b\u00ecnh lu\u1eadn n\u00e0y","wc_self_vote":"B\u1ea1n kh\u00f4ng th\u1ec3 b\u00ecnh ch\u1ecdn cho b\u00ecnh lu\u1eadn c\u1ee7a m\u00ecnh","wc_vote_only_one_time":"B\u1ea1n \u0111\u00e3 b\u00ecnh ch\u1ecdn cho b\u00ecnh lu\u1eadn n\u00e0y","wc_voting_error":"L\u1ed7i khi \u0111\u00e1nh gi\u00e1","wc_comment_edit_not_possible":"Xin l\u1ed7i, b\u1ea1n kh\u00f4ng th\u1ec3 s\u1eeda b\u00ecnh lu\u1eadn n\u00e0y n\u1eefa","wc_comment_not_updated":"Xin l\u1ed7i, b\u00ecnh lu\u1eadn ch\u01b0a \u0111\u01b0\u1ee3c c\u1eadp nh\u1eadt","wc_comment_not_edited":"B\u1ea1n ch\u01b0a th\u1ef1c hi\u1ec7n b\u1ea5t k\u1ef3 thay \u0111\u1ed5i n\u00e0o","wc_msg_input_min_length":"\u0110\u1ea7u v\u00e0o qu\u00e1 ng\u1eafn","wc_msg_input_max_length":"\u0110\u1ea7u v\u00e0o qu\u00e1 d\u00e0i","wc_spoiler_title":"Ti\u00eau \u0111\u1ec1 Spoiler","wc_cannot_rate_again":"B\u1ea1n kh\u00f4ng th\u1ec3 \u0111\u00e1nh gi\u00e1 l\u1ea1i","wc_not_allowed_to_rate":"B\u1ea1n kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p \u0111\u00e1nh gi\u00e1 \u1edf \u0111\u00e2y","wc_follow_user":"Theo d\u00f5i ng\u01b0\u1eddi n\u00e0y","wc_unfollow_user":"H\u1ee7y theo d\u00f5i ng\u01b0\u1eddi d\u00f9ng n\u00e0y","wc_follow_success":"B\u1ea1n \u0111\u00e3 b\u1eaft \u0111\u1ea7u theo d\u00f5i t\u00e1c gi\u1ea3 c\u1ee7a b\u00ecnh lu\u1eadn n\u00e0y","wc_follow_canceled":"B\u1ea1n \u0111\u00e3 d\u1eebng theo d\u00f5i t\u00e1c gi\u1ea3 c\u1ee7a b\u00ecnh lu\u1eadn n\u00e0y.","wc_follow_email_confirm":"Vui l\u00f2ng ki\u1ec3m tra email c\u1ee7a b\u1ea1n v\u00e0 x\u00e1c nh\u1eadn y\u00eau c\u1ea7u theo d\u00f5i c\u1ee7a ng\u01b0\u1eddi d\u00f9ng.","wc_follow_email_confirm_fail":"R\u1ea5t ti\u1ebfc, ch\u00fang t\u00f4i kh\u00f4ng th\u1ec3 g\u1eedi email x\u00e1c nh\u1eadn.","wc_follow_login_to_follow":"Vui l\u00f2ng \u0111\u0103ng nh\u1eadp \u0111\u1ec3 theo d\u00f5i ng\u01b0\u1eddi d\u00f9ng.","wc_follow_impossible":"Ch\u00fang t\u00f4i r\u1ea5t ti\u1ebfc, nh\u01b0ng b\u1ea1n kh\u00f4ng th\u1ec3 theo d\u00f5i ng\u01b0\u1eddi d\u00f9ng n\u00e0y.","wc_follow_not_added":"Theo d\u00f5i kh\u00f4ng th\u00e0nh c\u00f4ng. Vui l\u00f2ng th\u1eed l\u1ea1i sau.","is_user_logged_in":"","commentListLoadType":"0","commentListUpdateType":"0","commentListUpdateTimer":"60","liveUpdateGuests":"0","wordpressThreadCommentsDepth":"5","wordpressIsPaginate":"","commentTextMaxLength":"0","replyTextMaxLength":"0","commentTextMinLength":"1","replyTextMinLength":"1","storeCommenterData":"100000","socialLoginAgreementCheckbox":"1","enableFbLogin":"0","fbUseOAuth2":"0","enableFbShare":"0","facebookAppID":"","facebookUseOAuth2":"0","enableGoogleLogin":"0","googleClientID":"","googleClientSecret":"","cookiehash":"767498f46ec7b37ef7bb53f531489042","isLoadOnlyParentComments":"0","scrollToComment":"1","commentFormView":"collapsed","enableDropAnimation":"1","isNativeAjaxEnabled":"1","enableBubble":"0","bubbleLiveUpdate":"0","bubbleHintTimeout":"45","bubbleHintHideTimeout":"10","cookieHideBubbleHint":"wpdiscuz_hide_bubble_hint","bubbleHintShowOnce":"1","bubbleHintCookieExpires":"7","bubbleShowNewCommentMessage":"1","bubbleLocation":"content_left","firstLoadWithAjax":"0","wc_copied_to_clipboard":"Sao ch\u00e9p v\u00e0o clipboard!","inlineFeedbackAttractionType":"blink","loadRichEditor":"1","wpDiscuzReCaptchaSK":"6LdBcbUdAAAAAIeHtAgidZflgdB2Vc2ZxdQJyCiU","wpDiscuzReCaptchaTheme":"light","wpDiscuzReCaptchaVersion":"2.0","wc_captcha_show_for_guest":"1","wc_captcha_show_for_members":"0","wpDiscuzIsShowOnSubscribeForm":"0","wmuEnabled":"1","wmuInput":"wmu_files","wmuMaxFileCount":"1","wmuMaxFileSize":"2097152","wmuPostMaxSize":"104857600","wmuIsLightbox":"1","wmuMimeTypes":{"jpg":"image\/jpeg","jpeg":"image\/jpeg","jpe":"image\/jpeg","gif":"image\/gif","png":"image\/png","bmp":"image\/bmp","tiff":"image\/tiff","tif":"image\/tiff","ico":"image\/x-icon"},"wmuPhraseConfirmDelete":"B\u1ea1n c\u00f3 ch\u1eafc ch\u1eafn mu\u1ed1n x\u00f3a \u0111\u00ednh k\u00e8m n\u00e0y kh\u00f4ng?","wmuPhraseNotAllowedFile":"Lo\u1ea1i t\u1ec7p kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p","wmuPhraseMaxFileCount":"S\u1ed1 l\u01b0\u1ee3ng t\u1ec7p \u0111\u01b0\u1ee3c t\u1ea3i l\u00ean t\u1ed1i \u0111a l\u00e0 1","wmuPhraseMaxFileSize":"K\u00edch th\u01b0\u1edbc t\u1ec7p t\u1ea3i l\u00ean t\u1ed1i \u0111a l\u00e0 2MB","wmuPhrasePostMaxSize":"K\u00edch th\u01b0\u1edbc b\u00e0i \u0111\u0103ng t\u1ed1i \u0111a l\u00e0 100MB","wmuPhraseDoingUpload":"Uploading in progress! Please wait.","msgEmptyFile":"File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.","msgPostIdNotExists":"ID b\u00e0i vi\u1ebft kh\u00f4ng t\u1ed3n t\u1ea1i","msgUploadingNotAllowed":"Xin l\u1ed7i, t\u1ea3i l\u00ean kh\u00f4ng \u0111\u01b0\u1ee3c ph\u00e9p cho b\u00e0i \u0111\u0103ng n\u00e0y","msgPermissionDenied":"B\u1ea1n kh\u00f4ng c\u00f3 \u0111\u1ee7 quy\u1ec1n \u0111\u1ec3 th\u1ef1c hi\u1ec7n h\u00e0nh \u0111\u1ed9ng n\u00e0y","wmuKeyImages":"images","wmuSingleImageWidth":"auto","wmuSingleImageHeight":"200","version":"7.6.18","wc_post_id":"6894","isCookiesEnabled":"1","loadLastCommentId":"0","dataFilterCallbacks":[],"phraseFilters":[],"scrollSize":"32","is_email_field_required":"1","url":"https:\/\/vntime.org\/wp-admin\/admin-ajax.php","customAjaxUrl":"https:\/\/vntime.org\/wp-content\/plugins\/wpdiscuz\/utils\/ajax\/wpdiscuz-ajax.php","bubbleUpdateUrl":"https:\/\/vntime.org\/wp-json\/wpdiscuz\/v1\/update","restNonce":"a230a3284d"};var wpdiscuzUCObj={"msgConfirmDeleteComment":"B\u1ea1n c\u00f3 ch\u1eafc l\u00e0 b\u1ea1n mu\u1ed1n xo\u00e1 b\u00ecnh lu\u1eadn n\u00e0y kh\u00f4ng?","msgConfirmCancelSubscription":"\u0110\u00f3ng c\u00e1c li\u00ean k\u1ebft tr\u01b0\u1edbc ti\u1ebfp theo\nB\u1ea1n c\u00f3 ch\u1eafc ch\u1eafn mu\u1ed1n h\u1ee7y \u0111\u0103ng k\u00fd n\u00e0y kh\u00f4ng?","msgConfirmCancelFollow":"B\u1ea1n c\u00f3 ch\u1eafc ch\u1eafn mu\u1ed1n h\u1ee7y theo d\u00f5i kh\u00f4ng?","additionalTab":"0"}
;var wpdiscuzEditorOptions={modules:{toolbar:"",counter:{uniqueID:"",commentmaxcount:0,replymaxcount:0,commentmincount:1,replymincount:1,},},wc_be_the_first_text:"H\u00e3y tr\u1edf th\u00e0nh ng\u01b0\u1eddi \u0111\u1ea7u ti\u00ean b\u00ecnh lu\u1eadn!",wc_comment_join_text:"Tham gia th\u1ea3o lu\u1eadn",theme:'snow',debug:'error'}
;/* Cookie */
(function(factory){var registeredInModuleLoader=false;if(typeof define==='function'&&define.amd){define(factory);registeredInModuleLoader=true}if(typeof exports==='object'){module.exports=factory();registeredInModuleLoader=true}if(!registeredInModuleLoader){var OldCookies=window.Cookies;var api=window.Cookies=factory();api.noConflict=function(){window.Cookies=OldCookies;return api}}}(function(){function extend(){var i=0;var result={};for(;i<arguments.length;i++){var attributes=arguments[i];for(var key in attributes){result[key]=attributes[key]}}return result}function init(converter){function api(key,value,attributes){var result;if(typeof document==='undefined'){return}if(arguments.length>1){attributes=extend({path:'/'},api.defaults,attributes);if(typeof attributes.expires==='number'){var expires=new Date();expires.setMilliseconds(expires.getMilliseconds()+attributes.expires*864e+5);attributes.expires=expires}attributes.expires=attributes.expires?attributes.expires.toUTCString():'';try{result=JSON.stringify(value);if(/^[\{\[]/.test(result)){value=result}}catch(e){}if(!converter.write){value=encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)}else{value=converter.write(value,key)}key=encodeURIComponent(String(key));key=key.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);key=key.replace(/[\(\)]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName]){continue}stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===true){continue}stringifiedAttributes+='='+attributes[attributeName]}return(document.cookie=key+'='+value+stringifiedAttributes)}if(!key){result={}}var cookies=document.cookie?document.cookie.split('; '):[];var rdecode=/(%[0-9A-Z]{2})+/g;var i=0;for(;i<cookies.length;i++){var parts=cookies[i].split('=');var cookie=parts.slice(1).join('=');if(cookie.charAt(0)==='"'){cookie=cookie.slice(1,-1)}try{var name=parts[0].replace(rdecode,decodeURIComponent);cookie=converter.read?converter.read(cookie,name):converter(cookie,name)||cookie.replace(rdecode,decodeURIComponent);if(this.json){try{cookie=JSON.parse(cookie)}catch(e){}}if(key===name){result=cookie;break}if(!key){result[name]=cookie}}catch(e){}}return result}api.set=api;api.get=function(key){return api.call(api,key)};api.getJSON=function(){return api.apply({json:true},[].slice.call(arguments))};api.defaults={};api.remove=function(key,attributes){api(key,'',extend(attributes,{expires:-1}))};api.withConverter=init;return api}return init(function(){})}));
/* Quill */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(48),a=n(49),s=n(50),u=n(51),c=n(52),f=n(11),h=n(29),p=n(30),d=n(28),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";function r(t,e){var n=i(t);if(null==n)throw new s("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function o(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?o(t.parentNode,n):null}function i(t,e){void 0===e&&(e=p.ANY);var n;if("string"==typeof t)n=h[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=h.text;else if("number"==typeof t)t&p.LEVEL&p.BLOCK?n=h.block:t&p.LEVEL&p.INLINE&&(n=h.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null==n?null:e&p.LEVEL&n.scope&&e&p.TYPE&n.scope?n:null}function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map(function(t){return l(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new s("Invalid definition");if("abstract"===n.blotName)throw new s("Cannot register abstract class");if(h[n.blotName||n.attrName]=n,"string"==typeof n.keyName)u[n.keyName]=n;else if(null!=n.className&&(c[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return a(e,t),e}(Error);e.ParchmentError=s;var u={},c={},f={},h={};e.DATA_KEY="__blot";var p;!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(p=e.Scope||(e.Scope={})),e.create=r,e.find=o,e.query=i,e.register=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},i=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!o)return!1;var i;for(i in t);return void 0===i||n.call(t,i)};t.exports=function t(){var e,n,r,l,a,s,u=arguments[0],c=1,f=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=arguments[1]||{},c=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});c<f;++c)if(null!=(e=arguments[c]))for(n in e)r=u[n],l=e[n],u!==l&&(h&&l&&(i(l)||(a=o(l)))?(a?(a=!1,s=r&&o(r)?r:[]):s=r&&i(r)?r:{},u[n]=t(h,s,l)):void 0!==l&&(u[n]=l));return u}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:a(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(2),f=r(c),h=n(4),p=r(h),d=n(0),y=r(d),v=n(14),b=r(v),g=n(5),m=r(g),_=n(8),O=r(_),w=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),s(e,[{key:"attach",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new y.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new p.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=y.default.query(t,y.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=y.default.create(x.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(y.default.Embed);w.scope=y.default.Scope.BLOCK_BLOT;var x=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return l(e,t),s(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(y.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),a(e))},new p.default).insert("\n",a(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(y.default.query(r,y.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),i=o.shift();i.length>0&&(t<this.length()-1||null==this.children.tail?u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var l=this;o.reduce(function(t,e){return l=l.split(t,!0),l.insertAt(0,e),e.length},t+i.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof b.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(y.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[m.default,y.default.Embed,O.default],e.bubbleFormats=a,e.BlockEmbed=w,e.default=x},function(t,e,n){var r=n(54),o=n(12),i=n(2),l=n(20),a=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){(t(r)?e:n).push(r)}),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t},0)},s.prototype.length=function(){return this.reduce(function(t,e){return t+l.length(e)},0)},s.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o<e&&r.hasNext();){var i;o<t?i=r.next(t-o):(i=r.next(e-o),n.push(i)),o+=l.length(i)}return new s(n)},s.prototype.compose=function(t){for(var e=l.iterator(this.ops),n=l.iterator(t.ops),r=new s;e.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var o=Math.min(e.peekLength(),n.peekLength()),i=e.next(o),a=n.next(o);if("number"==typeof a.retain){var u={};"number"==typeof i.retain?u.retain=o:u.insert=i.insert;var c=l.attributes.compose(i.attributes,a.attributes,"number"==typeof i.retain);c&&(u.attributes=c),r.push(u)}else"number"==typeof a.delete&&"number"==typeof i.retain&&r.push(a)}return r.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),i=new s,u=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return u.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}e-=n}}),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&t(r,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<t||!e)&&(t+=o),r+=o):t-=Math.min(o,t-r)}return t},t.exports=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(8),c=r(u),f=n(0),h=r(f),p=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&h.default.query(r,h.default.Scope.BLOT)){var i=this.isolate(t,n);o&&i.wrap(r,o)}else s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t<n?-1:1}}]),e}(h.default.Inline);p.allowedChildren=[p,h.default.Embed,c.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(e=(0,N.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==S.DEFAULTS.theme){if(e.theme=S.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=T.default;var n=(0,N.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach(function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach(function(e){!0===t.modules[e]&&(t.modules[e]={})})});var r=Object.keys(n.modules).concat(Object.keys(e.modules)),o=r.reduce(function(t,e){var n=S.import("modules/"+e);return null==n?P.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t},{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,N.default)(!0,{},S.DEFAULTS,{modules:o},n,e),["bounds","container","scrollingContainer"].forEach(function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),e.modules=Object.keys(e.modules).reduce(function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t},{}),e}function a(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===g.default.sources.USER)return new d.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=t();if(null!=o&&(!0===n&&(n=o.index),null==r?o=u(o,l,e):0!==r&&(o=u(o,n,r,e)),this.setSelection(o,g.default.sources.SILENT)),l.length()>0){var a,s=[g.default.events.TEXT_CHANGE,l,i,e];if((a=this.emitter).emit.apply(a,[g.default.events.EDITOR_CHANGE].concat(s)),e!==g.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,s)}}return l}function s(t,e,n,r,o){var i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":c(n))?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),o=o||g.default.sources.API,[t,e,i,o]}function u(t,e,n,r){if(null==t)return null;var o=void 0,i=void 0;if(e instanceof d.default){var l=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==g.default.sources.USER)}),a=f(l,2);o=a[0],i=a[1]}else{var s=[t.index,t.index+t.length].map(function(t){return t<e||t===e&&r===g.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)}),u=f(s,2);o=u[0],i=u[1]}return new x.Range(o,i-o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(53);var p=n(4),d=r(p),y=n(57),v=r(y),b=n(9),g=r(b),m=n(7),_=r(m),O=n(0),w=r(O),x=n(22),k=r(x),E=n(2),N=r(E),j=n(10),A=r(j),q=n(32),T=r(q),P=(0,A.default)("quill"),S=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),this.options=l(e,r),this.container=this.options.container,null==this.container)return P.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=w.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new v.default(this.scroll),this.selection=new k.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(t){t===g.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;a.call(n,function(){return n.editor.update(null,e,o)},t)});var s=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(s),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return h(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),A.default.level(t)}},{key:"find",value:function(t){return t.__quill||w.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&P.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||P.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?w.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),h(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return a.call(this,function(){var r=n.getSelection(!0),i=new d.default;if(null==r)return i;if(w.default.query(t,w.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,o({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,o({},t,e))}return n.setSelection(r,g.default.sources.SILENT),i},r)}},{key:"formatLine",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatLine(t,e,l)},o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatText(t,e,l)},o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return a.call(this,function(){return o.editor.insertEmbed(e,n,r)},i,e)}},{key:"insertText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,0,n,r,o),c=f(u,4);return t=c[0],l=c[2],o=c[3],a.call(this,function(){return i.editor.insertText(t,e,l)},o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){t=new d.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=s(e,n,r),i=f(o,4);e=i[0],n=i[1],r=i[3],this.selection.setRange(new x.Range(e,n),r),r!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,n=(new d.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){return t=new d.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=g.default.events,S.sources=g.default.sources,S.version="1.3.6",S.imports={delta:d.default,parchment:w.default,"core/module":_.default,"core/theme":T.default},e.expandConfig=l,e.overload=s,e.default=S},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default.Text);e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(58),c=r(u),f=n(10),h=r(f),p=(0,h.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){if(t.__quill&&t.__quill.emitter){var n;(n=t.__quill.emitter).handleDOM.apply(n,e)}})})});var d=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",p.error),t}return l(e,t),a(e,[{key:"emit",value:function(){p.log.apply(p,arguments),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,o=e.handler;(t.target===r||r.contains(t.target))&&o.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(c.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},e.default=d},function(t,e,n){"use strict";function r(t){if(i.indexOf(t)<=i.indexOf(l)){for(var e,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(e=console)[t].apply(e,r)}}function o(t){return i.reduce(function(e,n){return e[n]=r.bind(console,n,t),e},{})}Object.defineProperty(e,"__esModule",{value:!0});var i=["error","warn","log","info"],l="warn";r.level=o.level=function(t){l=t},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,function(t){return t.name})},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){function r(t){return null===t||void 0===t}function o(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=l.call(t),e=l.call(e),u(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}try{var f=a(t),h=a(e)}catch(t){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),i=f.length-1;i>=0;i--)if(f[i]!=h[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!u(t[c],e[c],n))return!1;return typeof t==typeof e}var l=Array.prototype.slice,a=n(55),s=n(56),u=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(4),f=r(c),h=n(0),p=r(h),d=n(3),y=r(d),v=n(5),b=r(v),g=n(8),m=r(g),_=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(b.default);_.blotName="code",_.tagName="CODE";var O=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),s(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new f.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(m.default,this.length()-1),o=a(r,1),i=o[0];null!=i&&i.deleteAt(i.length()-1,1),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,o){if(0!==n&&null!=p.default.query(r,p.default.Scope.BLOCK)&&(r!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+n)){var l=this.newlineIndex(t,!0)+1,a=i-l+1,s=this.isolate(l,a),u=s.next;s.format(r,o),u instanceof e&&u.formatAt(0,t-l+n-a,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(m.default,t),o=a(r,2),i=o[0],l=o[1];i.insertAt(l,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(p.default.create("text","\n")),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=p.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof p.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(y.default);O.blotName="code-block",O.tagName="PRE",O.TAB="  ",e.Code=_,e.default=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"insertInto",value:function(t,n){0===t.children.length?a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(u.default.Embed);c.blotName="break",c.tagName="BR",e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(5),c=function(t){return t&&t.__esModule?t:{default:t}}(u),f=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),a(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return l(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(c.default);f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}Object.defineProperty(e,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(25),u=r(s),c=n(106),f=r(c),h=0,p=function(){function t(e){var n=this;o(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(t){switch(t.keyCode){case u.default.keys.ENTER:n.togglePicker();break;case u.default.keys.ESCAPE:n.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return a(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),i(this.label,"aria-expanded"),i(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n.addEventListener("keydown",function(t){switch(t.keyCode){case u.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case u.default.keys.ESCAPE:e.escape(),t.preventDefault()}}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=f.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout(function(){return t.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":l(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=p},function(t,e,n){"use strict";function r(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(47),l=n(27),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,l){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=l}),o},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,o){t.formatAt(e,o,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],l=[[this,t]];return o instanceof e?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,o){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,o=[],i=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(o.push.apply(o,t.addedNodes),i.push.apply(i,t.removedNodes))}),i.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),o.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var o=r(t);o.next==e&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,e||void 0))})},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),i=n(28),l=n(17),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=a.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(27),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var o=n(12),i=n(2),l={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var o in t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return o(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=l.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},t.exports=l},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function e(n,r,o,i,c){function f(n,o){if(null===n)return null;if(0===o)return n;var y,v;if("object"!=typeof n)return n;if(t(n,a))y=new a;else if(t(n,s))y=new s;else if(t(n,u))y=new u(function(t,e){n.then(function(e){t(f(e,o-1))},function(t){e(f(t,o-1))})});else if(e.__isArray(n))y=[];else if(e.__isRegExp(n))y=new RegExp(n.source,l(n)),n.lastIndex&&(y.lastIndex=n.lastIndex);else if(e.__isDate(n))y=new Date(n.getTime());else{if(d&&Buffer.isBuffer(n))return y=new Buffer(n.length),n.copy(y),y;t(n,Error)?y=Object.create(n):void 0===i?(v=Object.getPrototypeOf(n),y=Object.create(v)):(y=Object.create(i),v=i)}if(r){var b=h.indexOf(n);if(-1!=b)return p[b];h.push(n),p.push(y)}t(n,a)&&n.forEach(function(t,e){var n=f(e,o-1),r=f(t,o-1);y.set(n,r)}),t(n,s)&&n.forEach(function(t){var e=f(t,o-1);y.add(e)});for(var g in n){var m;v&&(m=Object.getOwnPropertyDescriptor(v,g)),m&&null==m.set||(y[g]=f(n[g],o-1))}if(Object.getOwnPropertySymbols)for(var _=Object.getOwnPropertySymbols(n),g=0;g<_.length;g++){var O=_[g],w=Object.getOwnPropertyDescriptor(n,O);(!w||w.enumerable||c)&&(y[O]=f(n[O],o-1),w.enumerable||Object.defineProperty(y,O,{enumerable:!1}))}if(c)for(var x=Object.getOwnPropertyNames(n),g=0;g<x.length;g++){var k=x[g],w=Object.getOwnPropertyDescriptor(n,k);w&&w.enumerable||(y[k]=f(n[k],o-1),Object.defineProperty(y,k,{enumerable:!1}))}return y}"object"==typeof r&&(o=r.depth,i=r.prototype,c=r.includeNonEnumerable,r=r.circular);var h=[],p=[],d="undefined"!=typeof Buffer;return void 0===r&&(r=!0),void 0===o&&(o=1/0),f(n,o)}function n(t){return Object.prototype.toString.call(t)}function r(t){return"object"==typeof t&&"[object Date]"===n(t)}function o(t){return"object"==typeof t&&"[object Array]"===n(t)}function i(t){return"object"==typeof t&&"[object RegExp]"===n(t)}function l(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var a;try{a=Map}catch(t){a=function(){}}var s;try{s=Set}catch(t){s=function(){}}var u;try{u=Promise}catch(t){u=function(){}}return e.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},e.__objToStr=n,e.__isDate=r,e.__isArray=o,e.__isRegExp=i,e.__getRegExpFlags=l,e}();"object"==typeof t&&t.exports&&(t.exports=n)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(0),c=r(u),f=n(21),h=r(f),p=n(12),d=r(p),y=n(9),v=r(y),b=n(10),g=r(b),m=(0,g.default)("quill:selection"),_=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),this.index=e,this.length=n},O=function(){function t(e,n){var r=this;i(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(t,e){t===v.default.events.TEXT_CHANGE&&e.length()>0&&r.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}}),this.update(v.default.sources.SILENT)}return s(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),i=a(o,2),l=i[0],s=i[1];if(null==l)return null;var u=l.position(s,!0),c=a(u,2);r=c[0],s=c[1];var f=document.createRange();if(e>0){f.setStart(r,s);var h=this.scroll.leaf(t+e),p=a(h,2);if(l=p[0],s=p[1],null==l)return null;var d=l.position(s,!0),y=a(d,2);return r=y[0],s=y[1],f.setEnd(r,s),f.getBoundingClientRect()}var v="left",b=void 0;return r instanceof Text?(s<r.data.length?(f.setStart(r,s),f.setEnd(r,s+1)):(f.setStart(r,s-1),f.setEnd(r,s),v="right"),b=f.getBoundingClientRect()):(b=l.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:b.top+b.height,height:b.height,left:b[v],right:b[v],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=a(t,2),r=n[0],o=n[1],i=c.default.find(r,!0),l=i.offset(e.scroll);return 0===o?l:i instanceof c.default.Container?l+i.length():l+i.index(r,o)}),i=Math.min(Math.max.apply(Math,o(r)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(o(r)));return new _(l,i-l)}},{key:"normalizeNative",value:function(t){if(!l(this.root,t.startContainer)||!t.collapsed&&!l(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach(function(t,n){t=Math.min(o-1,t);var i=void 0,l=e.scroll.leaf(t),s=a(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),h=a(f,2);i=h[0],c=h[1],r.push(i,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),i=a(o,1),l=i[0],s=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,r));s=a(u,1)[0]}if(null!=l&&null!=s){var c=t.getBoundingClientRect();n.top<c.top?t.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"==typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,o(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,e=this.lastRange,n=this.getRange(),r=a(n,2),o=r[0],i=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,d.default)(e,this.lastRange)){var l;!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode&&this.cursor.restore();var s=[v.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(e),t];if((l=this.emitter).emit.apply(l,[v.default.events.EDITOR_CHANGE].concat(s)),t!==v.default.sources.SILENT){var u;(u=this.emitter).emit.apply(u,s)}}}}]),t}();e.Range=_,e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=r(a),u=n(3),c=r(u),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(s.default.Container);f.allowedChildren=[c.default,u.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"value",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):n}}]),e}(u.default.Attributor.Style),f=new u.default.Attributor.Class("color","ql-color",{scope:u.default.Scope.INLINE}),h=new c("color","color",{scope:u.default.Scope.INLINE});e.ColorAttributor=c,e.ColorClass=f,e.ColorStyle=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){var n,r=t===D.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},o(n,r,/^$/),o(n,"handler",function(n){var r=n.index;t===D.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(b(o,1)[0]instanceof T.default.Embed)||(t===D.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,S.default.sources.USER):this.quill.setSelection(n.index-1,S.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,S.default.sources.USER):this.quill.setSelection(n.index+n.length+1,S.default.sources.USER),!1)}),n}function u(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=b(n,1),o=r[0],i={};if(0===e.offset){var l=this.quill.getLine(t.index-1),a=b(l,1),s=a[0];if(null!=s&&s.length()>1){var u=o.formats(),c=this.quill.getFormat(t.index-1,1);i=A.default.attributes.diff(u,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,S.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,S.default.sources.USER),this.quill.focus()}}function c(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,i=this.quill.getLine(t.index),l=b(i,1),a=l[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),u=b(s,1),c=u[0];if(c){var f=a.formats(),h=this.quill.getFormat(t.index,1);r=A.default.attributes.diff(f,h)||{},o=c.length()}}this.quill.deleteText(t.index,n,S.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,S.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=A.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,S.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,S.default.sources.USER),this.quill.setSelection(t.index,S.default.sources.SILENT),this.quill.focus()}function h(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return T.default.query(n,T.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],S.default.sources.USER))})}function p(t){return{key:D.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=T.default.query("code-block"),r=e.index,o=e.length,i=this.quill.scroll.descendant(n,r),l=b(i,2),a=l[0],s=l[1];if(null!=a){var u=this.quill.getIndex(a),c=a.newlineIndex(s,!0)+1,f=a.newlineIndex(u+s+o),h=a.domNode.textContent.slice(c,f).split("\n");s=0,h.forEach(function(e,i){t?(a.insertAt(c+s,n.TAB),s+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(a.deleteAt(c+s,n.TAB.length),s-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),s+=e.length+1}),this.quill.update(S.default.sources.USER),this.quill.setSelection(r,o,S.default.sources.SILENT)}}}}function d(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],S.default.sources.USER)}}}function y(t){if("string"==typeof t||"number"==typeof t)return y({key:t});if("object"===(void 0===t?"undefined":v(t))&&(t=(0,_.default)(t,!1)),"string"==typeof t.key)if(null!=D.keys[t.key.toUpperCase()])t.key=D.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[B]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),m=n(21),_=r(m),O=n(12),w=r(O),x=n(2),k=r(x),E=n(4),N=r(E),j=n(20),A=r(j),q=n(0),T=r(q),P=n(6),S=r(P),C=n(10),L=r(C),M=n(7),R=r(M),I=(0,L.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",D=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},h),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},u),r.addBinding({key:e.keys.DELETE},{collapsed:!0},c)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},u),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},c)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},f),r.addBinding({key:e.keys.DELETE},{collapsed:!1},f),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},u),r.listen(),r}return a(e,t),g(e,null,[{key:"match",value:function(t,e){return e=y(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),g(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);if(null==r||null==r.key)return I.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,k.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,o=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==o.length){var i=t.quill.getSelection();if(null!=i&&t.quill.hasFocus()){var l=t.quill.getLine(i.index),a=b(l,2),s=a[0],u=a[1],c=t.quill.getLeaf(i.index),f=b(c,2),h=f[0],p=f[1],d=0===i.length?[h,p]:t.quill.getLeaf(i.index+i.length),y=b(d,2),g=y[0],m=y[1],_=h instanceof T.default.Text?h.value().slice(0,p):"",O=g instanceof T.default.Text?g.value().slice(m):"",x={collapsed:0===i.length,empty:0===i.length&&s.length()<=1,format:t.quill.getFormat(i),offset:u,prefix:_,suffix:O};o.some(function(e){if(null!=e.collapsed&&e.collapsed!==x.collapsed)return!1;if(null!=e.empty&&e.empty!==x.empty)return!1;if(null!=e.offset&&e.offset!==x.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==x.format[t]}))return!1}else if("object"===v(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=x.format[t]:!1===e.format[t]?null==x.format[t]:(0,w.default)(e.format[t],x.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(x.prefix))&&(!(null!=e.suffix&&!e.suffix.test(x.suffix))&&!0!==e.handler.call(t,i,x))})&&n.preventDefault()}}}})}}]),e}(R.default);D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:d("bold"),italic:d("italic"),underline:d("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",S.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",S.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",S.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,S.default.sources.USER)}},"indent code-block":p(!0),"outdent code-block":p(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,S.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new N.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,S.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,S.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,S.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(0,k.default)({},r.formats(),{list:"checked"}),l=(new N.default).retain(t.index).insert("\n",i).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=b(n,2),o=r[0],i=r[1],l=(new N.default).retain(t.index).insert("\n",e.format).retain(o.length()-i-1).retain(1,{header:null});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=b(r,2),i=o[0],l=o[1];if(l>n)return!0;var a=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(t.index," ",S.default.sources.USER),this.quill.history.cutoff();var s=(new N.default).retain(t.index-l).delete(n+1).retain(i.length()-2-l).retain(1,{list:a});this.quill.updateContents(s,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,S.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(new N.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,S.default.sources.USER)}},"embed left":s(D.keys.LEFT,!1),"embed left shift":s(D.keys.LEFT,!0),"embed right":s(D.keys.RIGHT,!1),"embed right shift":s(D.keys.RIGHT,!0)}},e.default=D,e.SHORTKEY=B},function(t,e,n){"use strict";t.exports={align:{"":n(75),center:n(76),right:n(77),justify:n(78)},background:n(79),blockquote:n(80),bold:n(81),clean:n(82),code:n(40),"code-block":n(40),color:n(83),direction:{"":n(84),rtl:n(85)},float:{center:n(86),full:n(87),left:n(88),right:n(89)},formula:n(90),header:{1:n(91),2:n(92)},italic:n(93),image:n(94),indent:{"+1":n(95),"-1":n(96)},link:n(97),list:{ordered:n(98),bullet:n(99),check:n(100)},script:{sub:n(101),super:n(102)},strike:n(103),underline:n(104),video:n(105)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),o=n(29),i=n(30),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach(function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=a},function(t,e,n){"use strict";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),h=n(8),p=r(h),d=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return l(e,t),u(e,null,[{key:"value",value:function(){}}]),u(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,i=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];r=l[0],o=l[1],i=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var s=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof p.default?(r=this.next.domNode,this.next.insertAt(0,s),this.textNode.data=e.CONTENTS):(this.textNode.data=s,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var u=[o,i].map(function(t){return Math.max(0,Math.min(r.data.length,t-1))}),c=a(u,2);return o=c[0],i=c[1],{startNode:r,startOffset:o,endNode:r,endOffset:i}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(f.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\ufeff",e.default=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return o(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(0),c=r(u),f=n(8),h=r(f),p="\ufeff",d=function(t){function e(t){o(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(p),n.rightGuard=document.createTextNode(p),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return l(e,t),a(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(p).join("");if(t===this.leftGuard)if(this.prev instanceof h.default){var o=this.prev.length();this.prev.insertAt(o,r),e={startNode:this.prev.domNode,startOffset:o+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(c.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=p,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}(c.default.Embed);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",i),a=new o.default.Attributor.Class("align","ql-align",i),s=new o.default.Attributor.Style("align","text-align",i);e.AlignAttribute=l,e.AlignClass=a,e.AlignStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=n(24),l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),a=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=l,e.BackgroundStyle=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",i),a=new o.default.Attributor.Class("direction","ql-direction",i),s=new o.default.Attributor.Style("direction","direction",i);e.DirectionAttribute=l,e.DirectionClass=a,e.DirectionStyle=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c={scope:u.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new u.default.Attributor.Class("font","ql-font",c),h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"value",value:function(t){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(u.default.Attributor.Style),p=new h("font","font-family",c);e.FontStyle=p,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=i,e.SizeStyle=l},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(5),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"optimize",value:function(t){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(u.default);c.blotName="bold",c.tagName=["STRONG","B"],e.default=c},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(16),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(t,n){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),i}return i(e,t),l(e,[{key:"buildItem",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t?t.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}(u.default);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(16),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(t,n){r(this,e);var i=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=n[t.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return i(e,t),l(e,[{key:"selectItem",value:function(t,n){a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(u.default);e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var o=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return o(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=e+i+"px"),o.bottom>r.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},f=n(2),h=r(f),p=n(4),d=r(p),y=n(9),v=r(y),b=n(25),g=r(b),m=n(32),_=r(m),O=n(41),w=r(O),x=n(42),k=r(x),E=n(16),N=r(E),j=n(43),A=r(j),q=[!1,"center","right","justify"],T=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],P=[!1,"serif","monospace"],S=["1","2","3",!1],C=["small",!1,"large","huge"],L=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),l=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()})};return t.emitter.listenDOM("click",document.body,l),r}return l(e,t),u(e,[{key:"addModule",value:function(t){var n=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&s(t,q),new k.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&s(t,T,"background"===n?"#ffffff":"#000000"),new w.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?s(t,P):t.classList.contains("ql-header")?s(t,S):t.classList.contains("ql-size")&&s(t,C)),new N.default(t)});var r=function(){n.pickers.forEach(function(t){t.update()})};this.quill.on(v.default.events.EDITOR_CHANGE,r)}}]),e}(_.default);L.DEFAULTS=(0,h.default)(!0,{},_.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new d.default).retain(r.index).delete(r.length).insert({image:n.target.result}),v.default.sources.USER),t.quill.setSelection(r.index+1,v.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var M=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return l(e,t),u(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){g.default.match(e,"enter")?(t.save(),e.preventDefault()):g.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,v.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,v.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=a(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,v.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",v.default.sources.USER),this.quill.setSelection(r+2,v.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(A.default);e.BaseTooltip=M,e.default=L},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(46),i=r(o),l=n(34),a=n(36),s=n(62),u=n(63),c=r(u),f=n(64),h=r(f),p=n(65),d=r(p),y=n(35),v=n(24),b=n(37),g=n(38),m=n(39),_=r(m),O=n(66),w=r(O),x=n(15),k=r(x),E=n(67),N=r(E),j=n(68),A=r(j),q=n(69),T=r(q),P=n(70),S=r(P),C=n(71),L=r(C),M=n(13),R=r(M),I=n(72),B=r(I),D=n(73),U=r(D),F=n(74),H=r(F),K=n(26),z=r(K),Z=n(16),V=r(Z),W=n(41),G=r(W),Y=n(42),X=r(Y),$=n(43),Q=r($),J=n(107),tt=r(J),et=n(108),nt=r(et);i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":l.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":b.FontClass,"formats/size":g.SizeClass,"formats/blockquote":c.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":_.default,"formats/code":M.Code,"formats/italic":w.default,"formats/link":k.default,"formats/script":N.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":S.default,"formats/video":L.default,"formats/list/item":p.ListItem,"modules/formula":B.default,"modules/syntax":U.default,"modules/toolbar":H.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":z.default,"ui/picker":V.default,"ui/icon-picker":X.default,"ui/color-picker":G.default,"ui/tooltip":Q.default},!0),e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),l=n(6),a=r(l),s=n(3),u=r(s),c=n(14),f=r(c),h=n(23),p=r(h),d=n(31),y=r(d),v=n(33),b=r(v),g=n(5),m=r(g),_=n(59),O=r(_),w=n(8),x=r(w),k=n(60),E=r(k),N=n(61),j=r(N),A=n(25),q=r(A);a.default.register({"blots/block":u.default,"blots/block/embed":s.BlockEmbed,"blots/break":f.default,"blots/container":p.default,"blots/cursor":y.default,"blots/embed":b.default,"blots/inline":m.default,"blots/scroll":O.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":j.default,"modules/keyboard":q.default}),i.default.register(u.default,f.default,y.default,m.default,O.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,o=this.find(t),i=o[0],l=o[1],a=t-l,s=this.iterator(i);(r=s())&&a<t+e;){var u=r.length();t>a?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,l),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)e.push(l.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&a(t.parent))},s=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(s),t.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=i.find(t,!1);a(e,!1),e instanceof o.default&&e.children.forEach(function(t){a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(s),u=[].slice.call(this.observer.takeRecords()),l=u.slice();l.length>0;)e.push(l.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)}),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&r(o,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),l=i.create(n,r);o.parent.insertBefore(l,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(e=n[i],t.call(o,e,i,n))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function n(t,e,n){if(t==e)return t?[[v,t]]:[];(n<0||t.length<n)&&(n=null);var o=l(t,e),i=t.substring(0,o);t=t.substring(o),e=e.substring(o),o=a(t,e);var s=t.substring(t.length-o);t=t.substring(0,t.length-o),e=e.substring(0,e.length-o);var c=r(t,e);return i&&c.unshift([v,i]),s&&c.push([v,s]),u(c),null!=n&&(c=f(c,n)),c=h(c)}function r(t,e){var r;if(!t)return[[y,e]];if(!e)return[[d,t]];var i=t.length>e.length?t:e,l=t.length>e.length?e:t,a=i.indexOf(l);if(-1!=a)return r=[[y,i.substring(0,a)],[v,l],[y,i.substring(a+l.length)]],t.length>e.length&&(r[0][0]=r[2][0]=d),r;if(1==l.length)return[[d,t],[y,e]];var u=s(t,e);if(u){var c=u[0],f=u[1],h=u[2],p=u[3],b=u[4],g=n(c,h),m=n(f,p);return g.concat([[v,b]],m)}return o(t,e)}function o(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),l=o,a=2*o,s=new Array(a),u=new Array(a),c=0;c<a;c++)s[c]=-1,u[c]=-1;s[l+1]=0,u[l+1]=0;for(var f=n-r,h=f%2!=0,p=0,v=0,b=0,g=0,m=0;m<o;m++){for(var _=-m+p;_<=m-v;_+=2){var O,w=l+_;O=_==-m||_!=m&&s[w-1]<s[w+1]?s[w+1]:s[w-1]+1;for(var x=O-_;O<n&&x<r&&t.charAt(O)==e.charAt(x);)O++,x++;if(s[w]=O,O>n)v+=2;else if(x>r)p+=2;else if(h){var k=l+f-_;if(k>=0&&k<a&&-1!=u[k]){var E=n-u[k];if(O>=E)return i(t,e,O,x)}}}for(var N=-m+b;N<=m-g;N+=2){var E,k=l+N;E=N==-m||N!=m&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1;for(var j=E-N;E<n&&j<r&&t.charAt(n-E-1)==e.charAt(r-j-1);)E++,j++;if(u[k]=E,E>n)g+=2;else if(j>r)b+=2;else if(!h){var w=l+f-N;if(w>=0&&w<a&&-1!=s[w]){var O=s[w],x=l+O-w;if(E=n-E,O>=E)return i(t,e,O,x)}}}}return[[d,t],[y,e]]}function i(t,e,r,o){var i=t.substring(0,r),l=e.substring(0,o),a=t.substring(r),s=e.substring(o),u=n(i,l),c=n(a,s);return u.concat(c)}function l(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(i,o)==e.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function a(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function s(t,e){function n(t,e,n){for(var r,o,i,s,u=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(u,c+1));){var h=l(t.substring(n),e.substring(c)),p=a(t.substring(0,n),e.substring(0,c));f.length<p+h&&(f=e.substring(c-p,c)+e.substring(c,c+h),r=t.substring(0,n-p),o=t.substring(n+h),i=e.substring(0,c-p),s=e.substring(c+h))}return 2*f.length>=t.length?[r,o,i,s,f]:null}var r=t.length>e.length?t:e,o=t.length>e.length?e:t;if(r.length<4||2*o.length<r.length)return null;var i,s=n(r,o,Math.ceil(r.length/4)),u=n(r,o,Math.ceil(r.length/2));if(!s&&!u)return null;i=u?s&&s[4].length>u[4].length?s:u:s;var c,f,h,p;return t.length>e.length?(c=i[0],f=i[1],h=i[2],p=i[3]):(h=i[0],p=i[1],c=i[2],f=i[3]),[c,f,h,p,i[4]]}function u(t){t.push([v,""]);for(var e,n=0,r=0,o=0,i="",s="";n<t.length;)switch(t[n][0]){case y:o++,s+=t[n][1],n++;break;case d:r++,i+=t[n][1],n++;break;case v:r+o>1?(0!==r&&0!==o&&(e=l(s,i),0!==e&&(n-r-o>0&&t[n-r-o-1][0]==v?t[n-r-o-1][1]+=s.substring(0,e):(t.splice(0,0,[v,s.substring(0,e)]),n++),s=s.substring(e),i=i.substring(e)),0!==(e=a(s,i))&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),i=i.substring(0,i.length-e))),0===r?t.splice(n-o,r+o,[y,s]):0===o?t.splice(n-r,r+o,[d,i]):t.splice(n-r-o,r+o,[d,i],[y,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&t[n-1][0]==v?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,r=0,i="",s=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n<t.length-1;)t[n-1][0]==v&&t[n+1][0]==v&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),c=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),c=!0)),n++;c&&u(t)}function c(t,e){if(0===e)return[v,t];for(var n=0,r=0;r<t.length;r++){var o=t[r];if(o[0]===d||o[0]===v){var i=n+o[1].length;if(e===i)return[r+1,t];if(e<i){t=t.slice();var l=e-n,a=[o[0],o[1].slice(0,l)],s=[o[0],o[1].slice(l)];return t.splice(r,1,a,s),[r+1,t]}n=i}}throw new Error("cursor_pos is out of bounds!")}function f(t,e){var n=c(t,e),r=n[1],o=n[0],i=r[o],l=r[o+1];if(null==i)return t;if(i[0]!==v)return t;if(null!=l&&i[1]+l[1]===l[1]+i[1])return r.splice(o,2,l,i),p(r,o,2);if(null!=l&&0===l[1].indexOf(i[1])){r.splice(o,2,[l[0],i[1]],[0,i[1]]);var a=l[1].slice(i[1].length);return a.length>0&&r.splice(o+2,0,[l[0],a]),p(r,o,3)}return t}function h(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r<t.length;r+=1)t[r-2][0]===v&&function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===d&&n(t[r-1][1])&&t[r][0]===y&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;for(var o=[],r=0;r<t.length;r+=1)t[r][1].length>0&&o.push(t[r]);return o}function p(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var o=t[r],i=t[r+1];o[0]===i[1]&&t.splice(r,2,[o[0],o[1]+i[1]])}return t}var d=-1,y=1,v=0,b=n;b.INSERT=y,b.DELETE=d,b.EQUAL=v,t.exports=b},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=o?n:r,e.supported=n,e.unsupported=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return Object.keys(e).reduce(function(n,r){return null==t[r]?n:(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]],n)},{})}function a(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,N.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,N.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new h.default)}Object.defineProperty(e,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(4),h=r(f),p=n(20),d=r(p),y=n(0),v=r(y),b=n(13),g=r(b),m=n(31),_=r(m),O=n(3),w=r(O),x=n(14),k=r(x),E=n(21),N=r(E),j=n(12),A=r(j),q=n(2),T=r(q),P=/^[ -~]*$/,S=function(){function t(e){i(this,t),this.scroll=e,this.delta=this.getDelta()}return c(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),t=a(t),t.reduce(function(t,o){var i=o.retain||o.delete||o.insert.length||1,l=o.attributes||{};if(null!=o.insert){if("string"==typeof o.insert){var a=o.insert;a.endsWith("\n")&&n&&(n=!1,a=a.slice(0,-1)),t>=r&&!a.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,a);var c=e.scroll.line(t),f=u(c,2),h=f[0],p=f[1],y=(0,T.default)({},(0,O.bubbleFormats)(h));if(h instanceof w.default){var b=h.descendant(v.default.Leaf,p),g=u(b,1),m=g[0];y=(0,T.default)(y,(0,O.bubbleFormats)(m))}l=d.default.attributes.diff(y,l)||{}}else if("object"===s(o.insert)){var _=Object.keys(o.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,o.insert[_])}r+=i}return Object.keys(l).forEach(function(n){e.scroll.formatAt(t,i,n,l[n])}),t+i},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new h.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach(function(e){var i=e.length();if(e instanceof g.default){var a=t-e.offset(n.scroll),s=e.newlineIndex(a+l)-a+1;e.formatAt(a,s,o,r[o])}else e.format(o,r[o]);l-=i})}}),this.scroll.optimize(),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e,o,r[o])}),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new h.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=u(t,1),o=e[0];o instanceof w.default?n.push(o):o instanceof v.default.Leaf&&r.push(o)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(v.default.Leaf,t,e));var o=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,O.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=l((0,O.bubbleFormats)(n),e)}return e});return T.default.apply(T.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new h.default).retain(t).insert(o({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e.length,o,r[o])}),this.update((new h.default).retain(t).insert(e,(0,N.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===w.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof k.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=u(r,2),i=o[0],l=o[1],a=0,s=new h.default;null!=i&&(a=i instanceof g.default?i.newlineIndex(l)-l+1:i.length()-l,s=i.delta().slice(l,l+a-1).insert("\n"));var c=this.getContents(t,e+a),f=c.diff((new h.default).insert(n).concat(s)),p=(new h.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&v.default.find(e[0].target)){var o=v.default.find(e[0].target),i=(0,O.bubbleFormats)(o),l=o.offset(this.scroll),a=e[0].oldValue.replace(_.default.CONTENTS,""),s=(new h.default).insert(a),u=(new h.default).insert(o.value());t=(new h.default).retain(l).concat(s.diff(u,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)},new h.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,A.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=S},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new n,this._eventsCount=0}var i=Object.prototype.hasOwnProperty,l="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(l=!1)),o.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(l?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t,e){var n=l?l+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},o.prototype.emit=function(t,e,n,r,o,i){var a=l?l+t:t;if(!this._events[a])return!1;var s,u,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,o),!0;case 6:return c.fn.call(c.context,e,n,r,o,i),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var h,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,r);break;default:if(!s)for(h=1,s=new Array(f-1);h<f;h++)s[h-1]=arguments[h];c[u].fn.apply(c[u].context,s)}}return!0},o.prototype.on=function(t,e,n){var o=new r(e,n||this),i=l?l+t:t;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.once=function(t,e,n){var o=new r(e,n||this,!0),i=l?l+t:t;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},o.prototype.removeListener=function(t,e,r,o){var i=l?l+t:t;if(!this._events[i])return this;if(!e)return 0==--this._eventsCount?this._events=new n:delete this._events[i],this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||r&&a.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[i]);else{for(var s=0,u=[],c=a.length;s<c;s++)(a[s].fn!==e||o&&!a[s].once||r&&a[s].context!==r)&&u.push(a[s]);u.length?this._events[i]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new n:delete this._events[i]}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=l?l+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new n:delete this._events[e])):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=l,o.EventEmitter=o,void 0!==t&&(t.exports=o)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return t instanceof v.default||t instanceof y.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},f=n(0),h=r(f),p=n(9),d=r(p),y=n(3),v=r(y),b=n(14),g=r(b),m=n(13),_=r(m),O=n(23),w=r(O),x=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.optimize(),r.enable(),r}return l(e,t),u(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),o=s(r,2),i=o[0],l=o[1],a=this.line(t+n),u=s(a,1),f=u[0];if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&i!==f&&l>0){if(i instanceof y.BlockEmbed||f instanceof y.BlockEmbed)return void this.optimize();if(i instanceof _.default){var h=i.newlineIndex(i.length(),!0);if(h>-1&&(i=i.split(h+1))===f)return void this.optimize()}else if(f instanceof _.default){var p=f.newlineIndex(0);p>-1&&f.split(p+1)}var d=f.children.head instanceof g.default?null:f.children.head;i.moveChildren(f,d),i.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==h.default.query(n,h.default.Scope.BLOCK)){var o=h.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var i=h.default.create(n,r);this.appendChild(i)}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===h.default.Scope.INLINE_BLOT){var r=h.default.create(this.statics.defaultChild);r.appendChild(t),t=r}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(a,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,function(e,n,r){a(e)?o.push(e):e instanceof h.default.Container&&(o=o.concat(t(e,n,i))),i-=r}),o}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=d.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,n,t),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,n,t)}}}]),e}(h.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[v.default,y.BlockEmbed,w.default],e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){return"object"===(void 0===e?"undefined":x(e))?Object.keys(e).reduce(function(t,n){return s(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},o({},e,n),r.attributes))},new q.default)}function u(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function c(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var o=t.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function f(t){return 0!==t.childNodes.length&&["block","list-item"].indexOf(u(t).display)>-1}function h(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new q.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,o){var i=h(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce(function(t,e){return e(o,t)},i),i=(o[W]||[]).reduce(function(t,e){return e(o,t)},i)),r.concat(i)},new q.default):new q.default}function p(t,e,n){return s(n,t,!0)}function d(t,e){var n=P.default.Attributor.Attribute.keys(t),r=P.default.Attributor.Class.keys(t),o=P.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach(function(e){var n=P.default.query(e,P.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=Y[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=X[e])||n.attrName!==e&&n.keyName!==e||(n=X[e],i[n.attrName]=n.value(t)||void 0))}),Object.keys(i).length>0&&(e=s(e,i)),e}function y(t,e){var n=P.default.query(t);if(null==n)return e;if(n.prototype instanceof P.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new q.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=s(e,n.blotName,n.formats(t)));return e}function v(t,e){return c(e,"\n")||e.insert("\n"),e}function b(){return new q.default}function g(t,e){var n=P.default.query(t);if(null==n||"list-item"!==n.blotName||!c(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(P.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new q.default).retain(e.length()-1).retain(1,{indent:r}))}function m(t,e){return c(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function _(t,e){if(f(t)&&null!=t.nextElementSibling&&!c(e,"\n\n")){var n=t.offsetHeight+parseFloat(u(t).marginTop)+parseFloat(u(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function O(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===u(t).fontStyle&&(n.italic=!0),r.fontWeight&&(u(t).fontWeight.startsWith("bold")||parseInt(u(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=s(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new q.default).insert("\t").concat(e)),e}function w(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!u(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),N=n(2),j=r(N),A=n(4),q=r(A),T=n(0),P=r(T),S=n(6),C=r(S),L=n(10),M=r(L),R=n(7),I=r(R),B=n(34),D=n(35),U=n(13),F=r(U),H=n(24),K=n(36),z=n(37),Z=n(38),V=(0,M.default)("quill:clipboard"),W="__ql-matcher",G=[[Node.TEXT_NODE,w],[Node.TEXT_NODE,m],["br",v],[Node.ELEMENT_NODE,m],[Node.ELEMENT_NODE,y],[Node.ELEMENT_NODE,_],[Node.ELEMENT_NODE,d],[Node.ELEMENT_NODE,O],["li",g],["b",p.bind(p,"bold")],["i",p.bind(p,"italic")],["style",b]],Y=[B.AlignAttribute,K.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),X=[B.AlignStyle,D.BackgroundStyle,H.ColorStyle,K.DirectionStyle,z.FontStyle,Z.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),$=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],G.concat(r.options.matchers).forEach(function(t){var e=k(t,2),o=e[0],i=e[1];(n.matchVisual||i!==_)&&r.addMatcher(o,i)}),r}return a(e,t),E(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[F.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new q.default).insert(n,o({},F.default.blotName,e[F.default.blotName]))}var r=this.prepareMatching(),i=k(r,2),l=i[0],a=i[1],s=h(this.container,l,a);return c(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new q.default).retain(s.length()-1).delete(1))),V.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,C.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new q.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),C.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new q.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(C.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,C.default.sources.USER),e.quill.setSelection(r.length()-n.length,C.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var o=k(r,2),i=o[0],l=o[1];switch(i){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:e.push(l);break;default:[].forEach.call(t.container.querySelectorAll(i),function(t){t[W]=t[W]||[],t[W].push(l)})}}),[e,n]}}]),e}(I.default);$.DEFAULTS={matchers:[],matchVisual:!0},e.default=$,e.matchAttributor=d,e.matchBlot=y,e.matchNewline=m,e.matchSpacing=_,e.matchText=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function s(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return a(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),f=r(c),h=n(6),p=r(h),d=n(7),y=r(d),v=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(p.default.events.EDITOR_CHANGE,function(t,e,n,o){t!==p.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&o!==p.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return l(e,t),u(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],p.default.sources.USER),this.ignoreChange=!1;var r=s(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(y.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=v,e.getLastChangeIndex=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(u.default.Attributor.Class),f=new c("indent","ql-indent",{scope:u.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(3),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="blockquote",s.tagName="blockquote",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},c=n(0),f=r(c),h=n(3),p=r(h),d=n(23),y=r(d),v=function(t){function e(){return i(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"format",value:function(t,n){t!==b.blotName||n?u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:u(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(p.default);v.blotName="list-item",v.tagName="LI";var b=function(t){function e(t){i(this,e);var n=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),o=f.default.find(e.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return a(e,t),s(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),s(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return o({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(y.default);b.blotName="list",b.scope=f.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[v],e.ListItem=v,e.default=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(39),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(5),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(u.default);c.blotName="script",c.tagName=["SUB","SUP"],e.default=c},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="strike",s.tagName="S",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(5),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="underline",s.tagName="U",e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=n(15),f=["alt","height","width"],h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=n(3),u=n(15),c=function(t){return t&&t.__esModule?t:{default:t}}(u),f=["height","width"],h=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),l(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(33),c=r(u),f=n(6),h=r(f),p=n(7),d=r(p),y=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,null,[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(c.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var v=function(t){function e(){o(this,e);var t=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(y,!0)}}]),e}(d.default);e.FormulaBlot=y,e.default=v},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=n(0),c=r(u),f=n(6),h=r(f),p=n(7),d=r(p),y=n(13),v=r(y),b=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),a(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(v.default);b.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),m=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var l=null;return r.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(l),l=setTimeout(function(){r.highlight(),l=null},r.options.interval)}),r.highlight(),r}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(g,!0),h.default.register(b,!0)}}]),a(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(h.default.sources.SILENT),null!=e&&this.quill.setSelection(e,h.default.sources.SILENT)}}}]),e}(d.default);m.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=b,e.CodeToken=g,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function u(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)s(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?c(n,e,r):s(n,e,r)}}),t.appendChild(n)})}function c(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=n(4),d=r(p),y=n(0),v=r(y),b=n(6),g=r(b),m=n(10),_=r(m),O=n(7),w=r(O),x=(0,_.default)("quill:toolbar"),k=function(t){function e(t,n){i(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var o=document.createElement("div");u(o,r.options.container),t.container.parentNode.insertBefore(o,t.container),r.container=o}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var a;return a=x.error("Container required for toolbar",r.options),l(r,a)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(t){r.addHandler(t,r.options.handlers[t])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(t){r.attach(t)}),r.quill.on(g.default.events.EDITOR_CHANGE,function(t,e){t===g.default.events.SELECTION_CHANGE&&r.update(e)}),r.quill.on(g.default.events.SCROLL_OPTIMIZE,function(){var t=r.quill.selection.getRange(),e=f(t,1),n=e[0];r.update(n)}),r}return a(e,t),h(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void x.warn("ignoring attaching to disabled format",n,t);if(null==v.default.query(n))return void x.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];i=!l.hasAttribute("selected")&&(l.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var a=e.quill.selection.getRange(),s=f(a,1),u=s[0];if(null!=e.handlers[n])e.handlers[n].call(e,i);else if(v.default.query(n).prototype instanceof v.default.Embed){if(!(i=prompt("Enter "+n)))return;e.quill.updateContents((new d.default).retain(u.index).delete(u.length).insert(o({},n,i)),g.default.sources.USER)}else e.quill.format(n,i,g.default.sources.USER);e.update(u)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var r=f(n,2),o=r[0],i=r[1];if("SELECT"===i.tagName){var l=void 0;if(null==t)l=null;else if(null==e[o])l=i.querySelector("option[selected]");else if(!Array.isArray(e[o])){var a=e[o];"string"==typeof a&&(a=a.replace(/\"/g,'\\"')),l=i.querySelector('option[value="'+a+'"]')}null==l?(i.value="",i.selectedIndex=-1):l.selected=!0}else if(null==t)i.classList.remove("ql-active");else if(i.hasAttribute("value")){var s=e[o]===i.getAttribute("value")||null!=e[o]&&e[o].toString()===i.getAttribute("value")||null==e[o]&&!i.getAttribute("value");i.classList.toggle("ql-active",s)}else i.classList.toggle("ql-active",null!=e[o])})}}]),e}(w.default);k.DEFAULTS={},k.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(e){null!=v.default.query(e,v.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,g.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",g.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,g.default.sources.USER),this.quill.format("direction",t,g.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,g.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,g.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,g.default.sources.USER):this.quill.format("list","unchecked",g.default.sources.USER):this.quill.format("list",t,g.default.sources.USER)}}},e.default=k,e.addControls=u},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(2),c=r(u),f=n(9),h=r(f),p=n(44),d=r(p),y=n(22),v=n(26),b=r(v),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(t){function e(t,n){o(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return l(e,t),s(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),b.default)}}]),e}(d.default);m.DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,n,o){if(t===h.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===h.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var l=i[i.length-1],a=r.quill.getIndex(l),s=Math.min(l.length()-1,e.index+e.length-a),u=r.quill.getBounds(new y.Range(a,s));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return l(e,t),s(e,[{key:"listen",value:function(){var t=this;a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(p.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=_,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(2),f=r(c),h=n(9),p=r(h),d=n(44),y=r(d),v=n(15),b=r(v),g=n(22),m=n(26),_=r(m),O=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(t){function e(t,n){o(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=O);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return l(e,t),u(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),_.default),this.tooltip=new x(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}(y.default);w.DEFAULTS=(0,f.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var x=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return l(e,t),u(e,[{key:"listen",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,p.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===p.default.sources.USER){var o=t.quill.scroll.descendant(b.default,e.index),i=a(o,2),l=i[0],s=i[1];if(null!=l){t.linkRange=new g.Range(e.index-s,l.length());var u=b.default.formats(l.domNode);return t.preview.textContent=u,t.preview.setAttribute("href",u),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(d.BaseTooltip);x.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://example.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=w}]).default});
/* wpdEditor */
class wpdEditorCounter{constructor(t,e){this.quill=t,this.options=e,this.commentmaxcount=e.commentmaxcount,this.replymaxcount=e.replymaxcount,this.commentmincount=e.commentmincount,this.replymincount=e.replymincount,this.container=document.getElementById("wpd-editor-char-counter-"+e.uniqueID),this.submit=document.getElementById("wpd-field-submit-"+e.uniqueID),t.on("editor-change",this.update.bind(this)),this.update()}calculate(){let t=this.quill.getText().length,e=this.quill.container.id,i=Array.from(document.querySelectorAll(`#${e} .ql-editor img`));return i.length&&i.forEach(function(e){null!==e.src.match(/https\:\/\/s\.w\.org\/images\/core\/emoji/gi)?t+=e.alt.length:e.classList.contains("wpdem-sticker")?t+=e.alt.length:t+=e.src.length}),t}update(){let t=this.calculate(),e=parseInt(this.quill.container.id.substring(this.quill.container.id.lastIndexOf("-")+1))?this.replymaxcount:this.commentmaxcount;if(e>0&&t>=e&&this.quill.deleteText(e,t),e>0){let i=e-(t-1);this.container.innerText=i>=0?i:0,t+10>e?this.container.classList.add("error"):this.container.classList.remove("error")}else this.container&&this.container.remove()}}Quill.register("modules/counter",wpdEditorCounter);let Link=Quill.import("formats/link");class wpdEditorLink extends Link{static create(t){let e=super.create(t);t=this.sanitize(t),e.setAttribute("href",t);let i=location.protocol+"//"+location.hostname;return(t.startsWith(i)||"#"===t.charAt(0)||"/"===t.charAt(0)&&"/"!==t.charAt(1))&&e.removeAttribute("target"),e}static sanitize(t){let e=super.sanitize(t),i=e.slice(0,e.indexOf(":"));return"#"===e.charAt(0)||"/"===e.charAt(0)||-1!==this.PROTOCOL_WHITELIST.indexOf(i)||(e="http://"+t),e}}Quill.register(wpdEditorLink,!0);class WpdEditor{constructor(){this.editorWraperPrefix="wpd-editor-wraper",this.textEditorContainer="ql-texteditor",this.textEditorPrefix="wc-textarea",this.editorToolbarPrefix="wpd-editor-toolbar",this.sourceCodeButtonName="sourcecode",this.spoiler="spoiler",this.spoilerPromtTitle=wpdiscuzAjaxObj.wc_spoiler_title,this._container="",this._uniqueid="",this.currentEditor=null,this._editors=new Map,this._handlers=new Map,this._initDefaults()}addButtonEventHandler(t,e){this._handlers.set(t,e)}set uniqueid(t){""!==t&&"string"==typeof t?this._uniqueid=t:""===t?this._uniqueid=this._findUniqueId():console.error("Incorrect uniqueid.")}get uniqueid(){return this._uniqueid}set container(t){""!==t&&"string"==typeof t?(this._container=t,this.uniqueid=this._findUniqueId()):console.error("Incorrect uniqueid.")}get container(){return this._container}createEditor(t){if(this.container=t,this._editors.has(this.uniqueid))this.currentEditor=this._editors.get(this.uniqueid);else{let e=`#${this.editorToolbarPrefix}-${this.uniqueid}`;wpdiscuzEditorOptions.modules.toolbar=e,wpdiscuzEditorOptions.modules.counter.uniqueID=this.uniqueid;let i=new Quill(this.container,wpdiscuzEditorOptions);i.on("editor-change",(t,...e)=>{null!==e[0]&&(this.currentEditor=i,this.container=i.container.id)}),i.clipboard.addMatcher("a",(t,e)=>t.getAttribute("href")!==t.innerHTML?e:new(Quill.import("delta"))([{insert:t.innerHTML}])),i.clipboard.addMatcher("img",(t,e)=>{let i=Quill.import("delta"),r=t.getAttribute("src");return new i(/^data:image\/.+;base64/.test(r)?[{insert:""}]:[{insert:r}])}),Array.from(document.querySelectorAll(`${e} button`)).forEach(t=>{t.onclick=()=>{this.currentEditor=i,this.container=i.container.id;let e=t.dataset.wpde_button_name;void 0!==e&&"string"==typeof e&&""!==e.trim()&&this._handlers.has(e)&&this._handlers.get(e)(this.currentEditor,this.uniqueid)}}),this._bindTextEditor(i),this._editors.set(this.uniqueid,i),document.getElementById(`${this.editorWraperPrefix}-${this.uniqueid}`).style.display=""}let r=0;document.getElementsByClassName("wpd-thread-info").length&&(r=parseInt(document.getElementsByClassName("wpd-thread-info")[0].getAttribute("data-comments-count")));let n=r?"wc_comment_join_text":"wc_be_the_first_text";return this.currentEditor.root.setAttribute("data-placeholder",wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzEditorOptions[n],n,jQuery(t))),this.currentEditor}removeEditor(t){this.container=t,this._editors.has(this.uniqueid)&&this._editors.delete(this.uniqueid)}_bindTextEditor(t){let e=`${this.textEditorPrefix}-${this.uniqueid}`,i=document.getElementById(e);i&&(i.style.cssText="display: none;",t.addContainer(this.textEditorContainer).appendChild(i)),this.currentEditor=t}_findUniqueId(){return this.container.substring(this.container.lastIndexOf("-")+1)}_initDefaults(){this.addButtonEventHandler(this.sourceCodeButtonName,t=>{document.getElementById(`${this.textEditorPrefix}-${this.uniqueid}`);let e=document.getElementById("wpd-editor-source-code-wrapper-bg"),i=document.getElementById("wpd-editor-source-code-wrapper"),r=document.getElementById("wpd-editor-source-code"),n=document.getElementById("wpd-editor-uid");e.style.display="block",i.style.display="block",n.value=t.container.id,r.value=t.root.innerHTML}),this.addButtonEventHandler(this.spoiler,t=>{let e=prompt(this.spoilerPromtTitle);if(null===e)return;let i=` [spoiler title="${e}"] `,r=" [/spoiler] ",n=t.getSelection();null===n&&(n={index:t.getLength()-1,length:0}),0===n.length?(t.insertText(n.index,i+r,Quill.sources.USER),t.setSelection(n.index+i.length,Quill.sources.USER)):(t.insertText(n.index,i),t.insertText(n.index+i.length+n.length,r,Quill.sources.USER),t.setSelection(n.index+i.length+n.length+r.length,Quill.sources.USER))})}}
/* Autogrow */
jQuery.fn.autoGrow=function(){return this.each(function(){var createMirror=function(textarea){jQuery(textarea).after('<div class="autogrow-textarea-mirror"></div>');return jQuery(textarea).next(".autogrow-textarea-mirror")[0]};var sendContentToMirror=function(textarea){mirror.innerHTML=String(textarea.value).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />")+".<br/>.";if(jQuery(textarea).height()!=jQuery(mirror).height())jQuery(textarea).height(jQuery(mirror).height())};var growTextarea=function(){sendContentToMirror(this)};var mirror=createMirror(this);mirror.style.display="none";mirror.style.wordWrap="break-word";mirror.style.padding=jQuery(this).css("padding");mirror.style.width=jQuery(this).css("width");mirror.style.fontFamily=jQuery(this).css("font-family");mirror.style.fontSize=jQuery(this).css("font-size");mirror.style.lineHeight=jQuery(this).css("line-height");this.style.overflow="hidden";this.style.minHeight=this.rows+"em";this.onkeydown=growTextarea;sendContentToMirror(this)})};
/* wpDiscuz */
var wpdiscuzLoadRichEditor=parseInt(wpdiscuzAjaxObj.loadRichEditor);if(wpdiscuzLoadRichEditor&&document.querySelector(".wpdiscuz-textarea-wrap"))var wpDiscuzEditor=new WpdEditor;function wpdMessagesOnInit(e,t){wpdiscuzAjaxObj.setCommentMessage(e,t),setTimeout(function(){location.href=location.href.substring(0,location.href.indexOf("wpdiscuzUrlAnchor")-1)},3e3)}wpdiscuzAjaxObj.setCommentMessage=function(e,t,o){var a="wpdiscuz-message-error";if(e instanceof Array)for(var n in e)t instanceof Array?"success"===t[n]?a="wpdiscuz-message-success":"warning"===t[n]&&(a="wpdiscuz-message-warning"):"success"===t?a="wpdiscuz-message-success":"warning"===t&&(a="wpdiscuz-message-warning"),jQuery("<div/>").addClass(a).html(e[n]).prependTo("#wpdiscuz-comment-message").delay(o instanceof Array?o[n]:o||4e3).fadeOut(1e3,function(){jQuery(this).remove()});else"success"===t?a="wpdiscuz-message-success":"warning"===t&&(a="wpdiscuz-message-warning"),jQuery("<div/>").addClass(a).html(e).prependTo("#wpdiscuz-comment-message").delay(o||4e3).fadeOut(1e3,function(){jQuery(this).remove()})},wpdiscuzAjaxObj.applyFilterOnPhrase=function(e,t,o){return wpdiscuzAjaxObj.phraseFilters&&jQuery.each(wpdiscuzAjaxObj.phraseFilters,function(a){"function"==typeof wpdiscuzAjaxObj[wpdiscuzAjaxObj.phraseFilters[a]]&&(e=wpdiscuzAjaxObj[wpdiscuzAjaxObj.phraseFilters[a]](e,t,o))}),e},jQuery(document).ready(function(e){e("body").addClass("wpdiscuz_"+wpdiscuzAjaxObj.version);var t,o=wpdiscuzAjaxObj.is_user_logged_in,a=1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!o,n=1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&o,d=wpdiscuzAjaxObj.wpDiscuzReCaptchaVersion,i=parseInt(wpdiscuzAjaxObj.commentListLoadType),s=parseInt(wpdiscuzAjaxObj.wc_post_id),c=parseInt(wpdiscuzAjaxObj.commentListUpdateType),r=1e3*parseInt(wpdiscuzAjaxObj.commentListUpdateTimer),p=parseInt(wpdiscuzAjaxObj.liveUpdateGuests),l=wpdiscuzAjaxObj.loadLastCommentId,m=l,w=parseInt(wpdiscuzAjaxObj.firstLoadWithAjax);Cookies.get("wpdiscuz_comments_sorting")&&Cookies.remove("wpdiscuz_comments_sorting",{path:""}),Cookies.get("wordpress_last_visit")&&Cookies.remove("wordpress_last_visit",{path:""}),Cookies.get("wpdiscuz_last_visit")&&Cookies.remove("wpdiscuz_last_visit",{path:""});var f=parseInt(wpdiscuzAjaxObj.wordpressIsPaginate),u=wpdiscuzAjaxObj.storeCommenterData,h=parseInt(wpdiscuzAjaxObj.wmuEnabled),b=wpdiscuzAjaxObj.isCookiesEnabled,g=!0,$=wpdiscuzAjaxObj.cookiehash,v=parseInt(wpdiscuzAjaxObj.isLoadOnlyParentComments),y=parseInt(wpdiscuzAjaxObj.enableDropAnimation)?500:0,C=parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled),k=parseInt(wpdiscuzAjaxObj.enableBubble),z=parseInt(wpdiscuzAjaxObj.bubbleLiveUpdate),x=parseInt(wpdiscuzAjaxObj.bubbleHintTimeout),_=parseInt(wpdiscuzAjaxObj.bubbleHintHideTimeout)?parseInt(wpdiscuzAjaxObj.bubbleHintHideTimeout):5,O=parseInt(wpdiscuzAjaxObj.bubbleShowNewCommentMessage),E=wpdiscuzAjaxObj.bubbleLocation,T=wpdiscuzAjaxObj.inlineFeedbackAttractionType,D=parseInt(wpdiscuzAjaxObj.scrollSize),D=D||32,I=[],L=[],M=[],R=!1,F=1,j=e("html").css("scroll-behavior"),S=e("body").css("scroll-behavior");if(e(".wc_social_plugin_wrapper .wp-social-login-provider-list").length?e(".wc_social_plugin_wrapper .wp-social-login-provider-list").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper >  .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .the_champ_login_container").length?e(".wc_social_plugin_wrapper .the_champ_login_container").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper >  .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .social_connect_form").length?e(".wc_social_plugin_wrapper .social_connect_form").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper >  .wpd-secondary-forms-social-content"):e(".wc_social_plugin_wrapper .oneall_social_login_providers").length&&e(".wc_social_plugin_wrapper .oneall_social_login .oneall_social_login_providers").clone().prependTo("#wpdiscuz_hidden_secondary_form > .wpd-form-wrapper >  .wpd-secondary-forms-social-content"),wpdiscuzLoadRichEditor&&e("#wpd-editor-0_0").length&&wpDiscuzEditor.createEditor("#wpd-editor-0_0"),window.addEventListener("beforeunload",function(t){var o=e(".wpd-form").not(":hidden");if(o.length){if(wpdiscuzLoadRichEditor&&document.querySelector(".wpdiscuz-textarea-wrap")){for(var a=0;a<o.length;a++)if("\n"!==wpDiscuzEditor.createEditor(e(o[a]).find(".ql-container").attr("id")).getText()){t.preventDefault(),t.returnValue="";return}}else for(var a=0;a<o.length;a++)if(e(o[a]).find(".wc_comment").val()){t.preventDefault(),t.returnValue="";return}}}),wpdiscuzLoadRichEditor||(e(document).delegate("textarea.wc_comment","input",function(){ef(e(this))}),e.each(e("textarea.wc_comment"),function(){ef(e(this))})),e("body").on("focus","#wpdcom .ql-editor, #wpdcom .wc_comment",function(){e(".wpd-form-foot",e(this).parents(".wpd_comm_form")).slideDown(y)}),e("body").on("focus","#wpdcom textarea",function(){e(this).next(".autogrow-textarea-mirror").length||e(this).autoGrow()}),!o&&U({comment_author:Cookies.get("comment_author_"+$),comment_author_email:Cookies.get("comment_author_email_"+$),comment_author_url:Cookies.get("comment_author_url_"+$)}),e(".wpd-vote-down.wpd-dislike-hidden").remove(),e(".wpd-toolbar-hidden").prev("[id^=wpd-editor-]").css("border-bottom","1px solid #dddddd"),e("body").on("click","#wpd-editor-source-code-wrapper-bg",function(){e(this).hide(),e("#wpd-editor-source-code-wrapper").hide(),e("#wpd-editor-uid").val(""),e("#wpd-editor-source-code").val("")}),wpdiscuzLoadRichEditor&&e("body").on("click","#wpd-insert-source-code",function(){var t=wpDiscuzEditor.createEditor("#"+e("#wpd-editor-uid").val());t.deleteText(0,t.getLength(),Quill.sources.USER);var o=e("#wpd-editor-source-code").val();o.length&&t.clipboard.dangerouslyPasteHTML(0,o,Quill.sources.USER),t.update(),e("#wpd-editor-source-code-wrapper-bg").hide(),e("#wpd-editor-source-code-wrapper").hide(),e("#wpd-editor-uid").val(""),e("#wpd-editor-source-code").val("")}),e("body").on("click",".wpd-reply-button",function(){var t,i,s,c,r=Y(e(this),0);e(this).hasClass("wpdiscuz-clonned")?(wpdiscuzLoadRichEditor?setTimeout(function(){wpDiscuzEditor.createEditor("#wpd-editor-"+r).focus()},y):setTimeout(function(){e("#wc-textarea-"+r).trigger("focus")},y),e("#wpd-secondary-form-wrapper-"+r).slideToggle(y)):(t=e(this),i=Y(t,0),e("#wpdiscuz_form_anchor-"+i).before((s=i,e("#wpdiscuz_hidden_secondary_form").html().replace(/wpdiscuzuniqueid/g,s))),c=e("#wpd-secondary-form-wrapper-"+i),!o&&U({comment_author:Cookies.get("comment_author_"+$),comment_author_email:Cookies.get("comment_author_email_"+$),comment_author_url:Cookies.get("comment_author_url_"+$)}),wpdiscuzLoadRichEditor?setTimeout(function(){wpDiscuzEditor.createEditor("#wpd-editor-"+i).focus()},y):setTimeout(function(){e("#wc-textarea-"+i).trigger("focus")},y),c.slideToggle(y,function(){t.addClass("wpdiscuz-clonned")})),function t(o){if((a||n)&&"2.0"===d){var i=J(o);setTimeout(function(){if(!L[i])try{L[i]=grecaptcha.render("wpdiscuz-recaptcha-"+o,{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(t){e("#wpdiscuz-recaptcha-field-"+o).val("key")},"expired-callback":function(){e("#wpdiscuz-recaptcha-field-"+o).val("")}})}catch(t){console.log(t),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+t.message,"error")}},1e3)}}(r)}),e("body").on("click","#wpdcom [data-wpd-clipboard]",function(){var t=e(this).data("wpd-clipboard");e(this).data("wpd-ismention")&&(t="@"+t);var o=e("<input/>");o.appendTo("body").css({position:"absolute",top:"-10000000px"}).val(t),o.trigger("select"),document.execCommand("copy"),o.remove(),wpdiscuzAjaxObj.setCommentMessage(t+"<br/>"+wpdiscuzAjaxObj.wc_copied_to_clipboard,"success",5e3)}),e("body").on("click",".wpdiscuz-nofollow,.wc_captcha_refresh_img,.wpd-load-more-submit",function(e){e.preventDefault()}),e("body").on("click",".wpd-toggle.wpd_not_clicked",function(){var t=e(this);t.removeClass("wpd_not_clicked");var o,a,n,d,i=Y(e(this),0),s=e(this),c=e(".fas",s);!s.parents(".wpd-comment:not(.wpd-reply)").children(".wpd-reply").length&&v?(o=i,a=t,n=J(o),d=new FormData,d.append("action","wpdShowReplies"),d.append("commentId",n),eh(C,!0,d).done(function(t){a.addClass("wpd_not_clicked"),"object"==typeof t&&t.success&&(e("#wpd-comm-"+o).replaceWith(t.data.comment_list),e("#wpd-comm-"+o+" .wpd-toggle .fas").removeClass("fa-chevron-down").addClass("fa-chevron-up"),e("#wpd-comm-"+o+" .wpd-toggle .wpd-view-replies .wpd-view-replies-text").text(wpdiscuzAjaxObj.wc_hide_replies_text),e("#wpd-comm-"+o+" .wpd-toggle").attr("wpd-tooltip",wpdiscuzAjaxObj.wc_hide_replies_text),eu(t)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,n){console.log(n),a.addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})):e("#wpd-comm-"+i+"> .wpd-reply").slideToggle(700,function(){e(this).is(":hidden")?(c.removeClass("fa-chevron-up"),c.addClass("fa-chevron-down"),s.find(".wpd-view-replies-text").text(wpdiscuzAjaxObj.wc_show_replies_text),s.attr("wpd-tooltip",wpdiscuzAjaxObj.wc_show_replies_text)):(c.removeClass("fa-chevron-down"),c.addClass("fa-chevron-up"),s.find(".wpd-view-replies-text").text(wpdiscuzAjaxObj.wc_hide_replies_text),s.attr("wpd-tooltip",wpdiscuzAjaxObj.wc_hide_replies_text)),t.addClass("wpd_not_clicked")})}),e("body").on("mouseenter",".wpd-new-loaded-comment",function(){e(this).removeClass("wpd-new-loaded-comment")}),e("body").on("click",".wpd-sbs-toggle",function(){e(".wpdiscuz-subscribe-bar").slideToggle(y)}),parseInt(wpdiscuzAjaxObj.wpDiscuzIsShowOnSubscribeForm)&&!o&&wpdiscuzAjaxObj.wpDiscuzReCaptchaSK&&e("#wpdiscuz-subscribe-form").length&&("2.0"===d?(setTimeout(function(){try{grecaptcha.render("wpdiscuz-recaptcha-subscribe-form",{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(t){e("#wpdiscuz-recaptcha-field-subscribe-form").val("key")},"expired-callback":function(){e("#wpdiscuz-recaptcha-field-subscribe-form").val("")}})}catch(t){console.log(t),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+t.message,"error")}},1e3),e("body").on("submit","#wpdiscuz-subscribe-form",function(t){e("#wpdiscuz-recaptcha-field-subscribe-form").val()?e(".wpdiscuz-recaptcha",e(this)).css("border","none"):(e(".wpdiscuz-recaptcha",e(this)).css("border","1px solid red"),et(e(this),""),t.preventDefault())})):"3.0"===d&&e("body").on("click","#wpdiscuz_subscription_button",function(t){var o=e(this).parents("#wpdiscuz-subscribe-form");et(o,""),t.preventDefault();try{grecaptcha.ready(function(){grecaptcha.execute(wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,{action:"wpdiscuz/wpdAddSubscription"}).then(function(e){document.getElementById("wpdiscuz-recaptcha-field-subscribe-form").value=e,o.trigger("submit")},function(e){wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error","error"),console.log(e)})})}catch(a){console.log(a),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+a.message,"error")}})),(a||n)&&"2.0"===d){var H=e(window).width(),P=e("#wpdcom").width();P>=1100&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"65%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"35%"})),P>=940&&P<1100&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"60%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"40%"})),P>=810&&P<940&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"40%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"60%"})),P>=730&&P<810&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.9)","-webkit-transform":"scale(0.9)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"45%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"55%"})),P>=610&&P<730&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.85)","-webkit-transform":"scale(0.85)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({transform:"scale(0.8)","-webkit-transform":"scale(0.8)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"43%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"55%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"30%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"70%"})),H>650&&(P>=510&&P<610&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"center 0","-webkit-transform-origin":"center 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"35%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"63%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({width:"30%",position:"relative",right:"-60px"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({width:"70%"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"})),P>=470&&P<510&&(e("#wpdcom .wpd_main_comm_form .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"center 0","-webkit-transform-origin":"center 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({"transform-origin":"right 0","-webkit-transform-origin":"right 0",transform:"scale(0.77)","-webkit-transform":"scale(0.77)"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-left").css({width:"40%"}),e("#wpdcom .wpd_main_comm_form .wpd-form-col-right").css({width:"60%"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-left").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-secondary-form-wrapper .wpd-form-col-right").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd_main_comm_form .wc-form-footer").css({"margin-left":"0px"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"})),P<470&&(e("#wpdcom .wpd-secondary-form-wrapper .wpd-field-captcha .wpdiscuz-recaptcha").css({margin:"0px auto","transform-origin":"center 0","-webkit-transform-origin":"center 0"}),e("#wpdcom .wpd-form-col-left").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-form-col-right").css({float:"none",width:"100%",display:"block"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-form-footer").css({"margin-left":"0px"}),e("#wpdcom .wpd-secondary-form-wrapper .wc_notification_checkboxes").css({"text-align":"center"}),e("#wpdcom .wpd-secondary-form-wrapper .wc-field-submit").css({"text-align":"center"})))}function q(t,o,a){eh(C||h,!1,o).done(function(o){if(e(a).addClass("wpd_not_clicked"),"object"==typeof o){if(o.success){"collapsed"===wpdiscuzAjaxObj.commentFormView&&e(".wpd-form-foot",t).slideUp(y),o.data.wc_all_comments_count_new=parseInt(o.data.wc_all_comments_count_new),e(".wpd-thread-info").html(o.data.wc_all_comments_count_before_threads_html),e(".wpd-thread-info").attr("data-comments-count",o.data.wc_all_comments_count_new),e("#wpd-bubble-all-comments-count").replaceWith(o.data.wc_all_comments_count_bubble_html);var n,d,i,s,c=y;o.data.is_main?en(o.data.message):(c=y+700,e("#wpd-secondary-form-wrapper-"+o.data.uniqueid).slideToggle(700),1==o.data.is_in_same_container?e("#wpd-secondary-form-wrapper-"+o.data.uniqueid).after(o.data.message):e("#wpd-comm-"+o.data.uniqueid).after(o.data.message)),function e(t){if(!t.data.held_moderate){var o=new FormData;o.append("action","wpdCheckNotificationType"),o.append("comment_id",t.data.new_comment_id),o.append("email",t.data.comment_author_email),o.append("isParent",t.data.is_main),eh(C,!0,o)}}(o),function e(t){if(t.data.redirect>0&&t.data.new_comment_id){var o=new FormData;o.append("action","wpdRedirect"),o.append("commentId",t.data.new_comment_id),eh(C,!0,o).done(function(e){"object"==typeof e&&e.success&&setTimeout(function(){location.href=e.data},2e3)}).fail(function(e,t,o){console.log(o)})}}(o),b&&g?(n=o.data,d=n.comment_author_email,i=n.comment_author,s=n.comment_author_url,null==u?(Cookies.set("comment_author_email_"+$,d),Cookies.set("comment_author_"+$,i),s.length&&Cookies.set("comment_author_url_"+$,s)):(u=parseInt(u),Cookies.set("comment_author_email_"+$,d,{expires:u,path:"/"}),Cookies.set("comment_author_"+$,i,{expires:u,path:"/"}),s.length&&Cookies.set("comment_author_url_"+$,s,{expires:u,path:"/"})),e(".wpd-cookies-checkbox").length&&e(".wpd-cookies-checkbox").prop("checked",!0)):g||e(".wpd-cookies-checkbox").prop("checked",!1),t.get(0).reset(),wpdiscuzLoadRichEditor?wpDiscuzEditor.createEditor("#wpd-editor-"+e(".wpdiscuz_unique_id",t).val()).setContents([{insert:"\n"}]):ef(t.find(".wc_comment")),U(o.data),e(".wmu-preview-wrap",t).remove(),I.length&&(I.forEach(function(e){e.parents(".wpd-field-checkbox").remove()}),I=[]),parseInt(wpdiscuzAjaxObj.scrollToComment)&&setTimeout(function(){eo(),e("html, body").animate({scrollTop:e("#comment-"+o.data.new_comment_id).offset().top-D},1e3,ea)},c),eu(o,t)}else o.data&&(wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[o.data],o.data,t),"error"),eu(o,t))}else wpdiscuzAjaxObj.setCommentMessage(o,"error");e("#wpdiscuz-loading-bar").fadeOut(250),R=!1}).fail(function(t,o,n){console.log(n),e(a).addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}function U(t){e(".wpd_comm_form .wc_name").val(t.comment_author),t.comment_author_email&&0>t.comment_author_email.indexOf("@example.com")&&e(".wpd_comm_form .wc_email").val(t.comment_author_email),t.comment_author_url&&e(".wpd_comm_form .wc_website").val(t.comment_author_url)}function A(t,o){e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-right .wpd_editable_comment").show(),e("#wpd-comm-"+t+" .wpdiscuz-edit-form-wrap").replaceWith(o),e("#wpd-comm-"+t+" > .wpd-comment-wrap .wpd-comment-last-edited").show()}e("body").on("click",".wc_comm_submit.wpd_not_clicked",function(){var t=e(this),i=1,s=e(this).parents("form");if("true"===s.attr("data-uploading")){wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj.wmuPhraseDoingUpload,"wmuPhraseDoingUpload",s),"warning");return}if(s.hasClass("wpd_main_comm_form")||(i=(c=e(this).parents(".wpd-comment"),r=c.attr("class").split(" "),p="",e.each(r,function(e,t){"wpd_comment_level"===Q(t,!1)&&(p=Q(t,!0))}),parseInt(p)+1)),et(s,"#wpd-editor-"+e(".wpdiscuz_unique_id",s).val()),s.on("submit",function(e){e.preventDefault()}),s[0].checkValidity()&&(l=s,m=!0,"2.0"===d&&e("input[name=wc_captcha]",l).length&&!e("input[name=wc_captcha]",l).val().length?(m=!1,e(".wpdiscuz-recaptcha",l).css("border","1px solid red")):"2.0"===d&&e("input[name=wc_captcha]",l).length&&e(".wpdiscuz-recaptcha",l).css("border","none"),m)){R=!0,function t(o){e(".wpd-agreement-checkbox",o).each(function(){e(this).hasClass("wpd_agreement_hide")&&b&&e(this).prop("checked")&&(Cookies.set(e(this).attr("name")+"_"+$,1,{expires:30,path:"/"}),e("input[name="+e(this).attr("name")+"]").each(function(){I.push(e(this))}))})}(s),e(t).removeClass("wpd_not_clicked");var c,r,p,l,m,w=new FormData;if(w.append("action","wpdAddComment"),e(":input",s).each(function(){""!=this.name&&"checkbox"!=this.type&&"radio"!=this.type&&w.append(this.name+"",e(this).val().trim()),("checkbox"==this.type||"radio"==this.type)&&e(this).is(":checked")&&w.append(this.name+"",e(this).val())}),w.append("wpd_comment_depth",i),wpdiscuzAjaxObj.wpdiscuz_zs&&w.append("wpdiscuz_zs",wpdiscuzAjaxObj.wpdiscuz_zs),e(".wpd-cookies-checkbox",s).length?e(".wpd-cookies-checkbox",s).prop("checked")||(g=!1):o&&(g=!1),e("#wpdiscuz-loading-bar").show(),wpdiscuzAjaxObj.wpDiscuzReCaptchaSK&&"3.0"===d&&(1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!wpdiscuzAjaxObj.is_user_logged_in||1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&wpdiscuzAjaxObj.is_user_logged_in))try{grecaptcha.ready(function(){grecaptcha.execute(wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,{action:"wpdiscuz/addComment"}).then(function(e){w.append("g-recaptcha-response",e),q(s,w,t)},function(e){wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error","error"),console.log(e)})})}catch(f){console.log(f),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+f.message,"error"),e("#wpdiscuz-loading-bar").fadeOut(250)}else q(s,w,t)}(function e(t){if((a||n)&&"2.0"===d){var o=J(t);grecaptcha.reset(L[o])}})(e(".wpdiscuz_unique_id",s).val()),e(".wpdiscuz_reset").val("")}),e("body").on("click",".wpd_editable_comment",function(){t&&e(".wpdiscuz-edit-form-wrap").length&&A(Y(e(".wpdiscuz-edit-form-wrap"),0),t);var o=e(this),a=Y(o,0),n=J(a),d=new FormData;d.append("action","wpdEditComment"),d.append("commentId",n),t=e("#wpd-comm-"+a+" > .wpd-comment-wrap .wpd-comment-text").get(0),eh(C,!0,d).done(function(t){if("object"==typeof t){if(t.success){if(e("#wpd-comm-"+a+" > .wpd-comment-wrap .wpd-comment-right .wpd-comment-text").replaceWith(t.data.html),wpdiscuzLoadRichEditor){var n=wpDiscuzEditor.createEditor("#wpd-editor-edit_"+a);n.clipboard.dangerouslyPasteHTML(0,t.data.content),n.update(),e(".wpd-toolbar-hidden").prev("[id^=wpd-editor-]").css("border-bottom","1px solid #dddddd")}else e("#wc-textarea-edit_"+a).val(t.data.content),ef(e("#wc-textarea-edit_"+a));e("#wpd-comm-"+a+" > .wpd-comment-wrap .wpd-comment-right .wpd_editable_comment").hide(),e("#wpd-comm-"+a+" > .wpd-comment-wrap .wpd-comment-last-edited").hide()}else wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[t.data],t.data,o),"error")}else console.log(t);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e("body").on("click",".wc_save_edited_comment",function(){var t=e(this),o=Y(t),a=J(o),n=e("#wpd-comm-"+o+" #wpdiscuz-edit-form");if(et(n,"#wpd-editor-edit_"+o),n.on("submit",function(e){e.preventDefault()}),n[0].checkValidity()){var d=new FormData;d.append("action","wpdSaveEditedComment"),d.append("commentId",a),e(":input",n).each(function(){""!==this.name&&"checkbox"!==this.type&&"radio"!==this.type&&d.append(this.name+"",e(this).val()),("checkbox"===this.type||"radio"===this.type)&&e(this).is(":checked")&&d.append(this.name+"",e(this).val())}),eh(C,!0,d).done(function(n){"object"==typeof n?(n.success?(A(o,n.data.message),n.data.comment_approved_html&&e("#wpd-comm-"+o+" > .wpd-comment-wrap .wpd-comment-subheader").append(n.data.comment_approved_html),n.data.lastEdited&&(e("#wpd-comm-"+o+" > .wpd-comment-wrap .wpd-comment-last-edited").remove(),e(n.data.lastEdited).insertAfter("#wpd-comm-"+o+" > .wpd-comment-wrap .wpd-comment-right .wpd-comment-text")),n.data.twitterShareLink&&e("#wpd-comm-"+o+" > .wpd-comment-wrap .wpd-comment-share .wpd-tooltip-content .wc_tw").attr("href",n.data.twitterShareLink),n.data.whatsappShareLink&&e("#wpd-comm-"+o+" > .wpd-comment-wrap .wpd-comment-share .wpd-tooltip-content .wc_whatsapp").attr("href",n.data.whatsappShareLink),wpdiscuzLoadRichEditor&&wpDiscuzEditor.removeEditor("#wpd-editor-edit_"+o)):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[n.data],n.data,t),"error"),eu(n,a)):wpdiscuzAjaxObj.setCommentMessage(n,"error"),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e("body").on("click",".wc_cancel_edit",function(){var o=Y(e(this));A(o,t),wpdiscuzLoadRichEditor&&wpDiscuzEditor.removeEditor("#wpd-editor-edit_"+o)}),!f&&w&&(F=0,1==w?setTimeout(function(){V(!0)},500):e("body").on("click",".wpd-load-comments",function(){e(this).parent(".wpd-load-more-submit-wrap").remove(),V(!0)})),e("body").on("click",".wpd-load-more-submit",function(){var t=e(this),o="wpd-loaded";t.hasClass(o)&&V(!1,t,o,"wpd-loading")});var W=!1;function B(){var t=document.getElementById("wpdiscuzHasMoreComments"),o=0;t&&(o=t.dataset.is_show_load_more);var a=document.getElementById("wpdcom")?document.getElementById("wpdcom").clientHeight:0,n=e(window).height()+e(window).scrollTop();a&&n&&100*n/a>=80&&!1===W&&1==o&&(W=!0,V(!1,e(".wpd-load-more-submit")))}function V(t,o,a,n){o&&(o.toggleClass(a),o.toggleClass(n));var d=new FormData;d.append("action","wpdLoadMoreComments");var s=e(".wpdiscuz-sort-button-active").attr("data-sorting");s&&d.append("sorting",s),d.append("offset",F),d.append("lastParentId",e(".wpd-load-more-submit").attr("data-lastparentid")),d.append("isFirstLoad",t?1:0);var c=e(".wpdf-active").attr("data-filter-type");d.append("wpdType",c||""),eh(C,!t||1!=w,d).done(function(d){"object"==typeof d&&d.success&&(F++,t&&e(".wpd-comment").remove(),e(".wpdiscuz_single").remove(),e(".wpdiscuz-comment-pagination").before(d.data.comment_list),K(d,t&&2!==i),W=!1,d.data.loadLastCommentId&&(l=d.data.loadLastCommentId),eu(d),t&&N(!1)),e("#wpdiscuz-loading-bar").fadeOut(250),e(".wpd-load-more-submit").blur(),o&&(o.toggleClass(a),o.toggleClass(n))}).fail(function(t,d,i){console.log(i),e("#wpdiscuz-loading-bar").fadeOut(250),e(".wpd-load-more-submit").blur(),o&&(o.toggleClass(a),o.toggleClass(n))})}function K(t,o){var a,n=document.getElementById("wpdiscuzHasMoreComments");if(!1==t.data.is_show_load_more)n&&(n.dataset.is_show_load_more=0),e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").hide();else{if(a=t.data.last_parent_id,e(".wpd-load-more-submit").attr("data-lastparentid",a),2!==i&&e(".wpdiscuz-comment-pagination").show(),n&&(n.dataset.is_show_load_more=1),o&&e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").show(),t.data.comments_left>0){if(!e(".wpd-load-more-submit .wpd-comments-left").length){let d=e("<span>");d.addClass("wpd-comments-left"),e(".wpd-load-more-submit").append(d)}e(".wpd-load-more-submit .wpd-comments-left").text(t.data.comments_left_text)}}eu(t)}function N(t){var o=location.href.match(/#comment\-(\d+)/);if(null!==o){var a=o[1];if(e("#comment-"+a).length)setTimeout(function(){eo(),e("html, body").animate({scrollTop:e("#comment-"+a).parents("[id^=wpd-comm-]").offset().top-D},1e3,ea),t&&G(a)},500);else{var n=new FormData;n.append("action","wpdGetSingleComment"),n.append("commentId",a),eh(C,!0,n).done(function(o){"object"==typeof o&&o.success&&(e("#comment-"+o.data.parentCommentID).length?e("#comment-"+o.data.parentCommentID).parents("[id^=wpd-comm-"+o.data.parentCommentID+"]").replaceWith(o.data.message):e(".wpd-thread-list").prepend(o.data.message),eu(o),eo(),e("html, body").animate({scrollTop:e("#comment-"+a).offset().top-D},1e3,ea),t&&G(a)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}}}function G(t){setTimeout(function(){e("#comment-"+t).siblings(".wpd-secondary-form-wrapper").is(":visible")||e("#comment-"+t).find(".wpd-reply-button").trigger("click")},1100)}function X(e){if(void 0!==e.data.message)for(var t,o=e.data.message,a=0;a<o.length;a++)Z((t=o[a]).comment_parent,t.comment_html)}function Y(e,t){var o="";return(o=t?e.parents(".wpd-main-form-wrapper").attr("id"):e.parents(".wpd-comment").attr("id")).substring(o.lastIndexOf("-")+1)}function J(e){return e.substring(0,e.indexOf("_"))}function Q(e,t){var o="";return t?e.substring(e.indexOf("-")+1):e.substring(0,e.indexOf("-"))}function Z(t,o){if(0==t)en(o);else{var a=Y(e("#comment-"+t),0);e("#wpdiscuz_form_anchor-"+a).after(o)}}function ee(){var t=[];return e(".wpd-comment-right").each(function(){t.push(J(Y(e(this),0)))}),t.join(",")}function et(t,o){var a=t.find(".wpd-required-group");wpdiscuzLoadRichEditor&&t.find(".wc_comment").val(e(o+">.ql-editor").html()),function e(t){if("wpdiscuz-subscribe-form"!=t.attr("id")){var o=t.find(".wc_comment"),a=o.val().trim().replace(/<p><br><\/p>/g,"\n").replace(/<p>(.*?)<\/p>/g,"$1\n");a=(a=(a=(a=a.replace(/<img src=["|']https\:\/\/s\.w\.org\/images\/core\/emoji\/([^"|']+)["|'](.*?)alt=["|']([^"|']+)["|'](.*?)[^>]*>/g," $3 ")).replace(/<img[^>]+alt=["|']([^"|']+)["|'][^>]+src=["|']https\:\/\/s\.w\.org\/images\/core\/emoji\/([^"|']+)["|'][^>]?>/g," $1 ")).replace(/<img\s+([^>]*)class=["|']wpdem\-sticker["|'](.*?)alt=["|']([^"|']+)["|'](.*?)[^>]*>/g," $3 ")).replace(/<img\s+([^>]*)src=["|']([^"|']+)["|'](.*?)[^>]*>/g," $2 "),o.val(a)}}(t),e.each(a,function(){e("input",this).prop("required",!1),0===e("input:checked",this).length?e("input",e(this)).prop("required",!0):e(".wpd-field-invalid",this).remove()})}function eo(){e("html, body").css("scroll-behavior","unset")}function ea(){e("html").css("scroll-behavior",j),e("body").css("scroll-behavior",S)}function en(t){e(".wpd-sticky-comment").last()[0]?e(t).insertAfter(e(".wpd-sticky-comment").last()[0]):e(".wpd-thread-list").prepend(t)}function ed(t){t?t.prop("required")||(t.val()?t.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","inline-block"):t.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","none")):e.each(e(".wc_email"),function(t,o){var a=e(o);a.prop("required")||(a.val()?a.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","inline-block"):a.parents("form").find("[name=wpdiscuz_notification_type]").parent().css("display","none"))})}if(2!==i||f||(e(".wpd-load-more-submit").parents(".wpdiscuz-comment-pagination").hide(),B(),e(window).scroll(function(){B()})),wpdiscuzAjaxObj.setLoadMoreVisibility=K,e("body").on("click",".wpd-vote-up.wpd_not_clicked, .wpd-vote-down.wpd_not_clicked",function(){var t,o=e(this);e(o).removeClass("wpd_not_clicked");var a=Y(o),n=J(a);t=e(this).hasClass("wpd-vote-up")?1:-1;var d=new FormData;d.append("action","wpdVoteOnComment"),d.append("commentId",n),d.append("voteType",t),eh(C,!0,d).done(function(a){if(e(o).addClass("wpd_not_clicked"),"object"==typeof a){if(a.success){if("total"===a.data.buttonsStyle){var d=e("#comment-"+n+" .wpd-comment-footer .wpd-vote-result"),i=a.data.votes;d.text(a.data.votesHumanReadable),d.attr("title",i),d.removeClass("wpd-up wpd-down"),i>0&&d.addClass("wpd-up"),i<0&&d.addClass("wpd-down")}else{var s=e("#comment-"+n+" .wpd-comment-footer .wpd-vote-result-like"),c=e("#comment-"+n+" .wpd-comment-footer .wpd-vote-result-dislike");s.text(a.data.likeCountHumanReadable),s.attr("title",a.data.likeCount),c.text(a.data.dislikeCountHumanReadable),c.attr("title",a.data.dislikeCount),parseInt(a.data.likeCount)>0?s.addClass("wpd-up"):s.removeClass("wpd-up"),0>parseInt(a.data.dislikeCount)?c.addClass("wpd-down"):c.removeClass("wpd-down")}var r=e("#comment-"+n+" .wpd-comment-footer .wpd-vote-up"),p=e("#comment-"+n+" .wpd-comment-footer .wpd-vote-down");r.removeClass("wpd-up"),p.removeClass("wpd-down"),a.data.curUserReaction>0?r.addClass("wpd-up"):a.data.curUserReaction<0&&p.addClass("wpd-down")}else a.data&&wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[a.data],a.data,o),"error");eu(a,n,t)}else console.log(a);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,a,n){console.log(n),e(o).addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e(document).on("click","body",function(t){var o=e(".wpdiscuz-sort-buttons");e(t.target).hasClass("wpdf-sorting")||e(t.target).parent().hasClass("wpdf-sorting")?o.css({display:o.is(":visible")?"none":"flex"}):o.hide()}),e("body").on("click",".wpdiscuz-sort-button:not(.wpdiscuz-sort-button-active)",function(){var t=e(this),o=e(this).attr("data-sorting");if(o){e(".wpd-load-comments").parents(".wpd-load-more-submit-wrap").remove(),e(".wpdiscuz-sort-button.wpdiscuz-sort-button-active").removeClass("wpdiscuz-sort-button-active").appendTo(".wpdiscuz-sort-buttons"),t.addClass("wpdiscuz-sort-button-active").prependTo(".wpdf-sorting");var a=new FormData;a.append("action","wpdSorting"),a.append("sorting",o);var n=e(".wpdf-active").attr("data-filter-type");a.append("wpdType",n||""),eh(C,!0,a).done(function(t){"object"==typeof t&&t.success&&(e("#wpdcom .wpd-comment").remove(),e("#wpdcom .wpd-thread-list").prepend(t.data.message),K(t,!1),F=1),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),window.onhashchange=function(){N(!1)},1!=w&&N(!1),e("body").on("click",".wpdiscuz-readmore",function(){var t=Y(e(this)),o=J(t),a=new FormData;a.append("action","wpdReadMore"),a.append("commentId",o),eh(C,!0,a).done(function(a){"object"==typeof a?(a.success?(e("#comment-"+o+" .wpd-comment-text").replaceWith(" "+a.data.message),e("#wpdiscuz-readmore-"+t).remove()):console.log(a.data),eu(a)):console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e("body").on("change",".wpd-required-group",function(){0!==e("input:checked",this).length?e("input",e(this)).prop("required",!1):e("input",e(this)).prop("required",!0)}),e("body").on("click",".wpdiscuz-spoiler",function(){e(this).next().slideToggle(),e(this).hasClass("wpdiscuz-spoiler-closed")?e(this).parents(".wpdiscuz-spoiler-wrap").find(".fa-plus").removeClass("fa-plus").addClass("fa-minus"):e(this).parents(".wpdiscuz-spoiler-wrap").find(".fa-minus").removeClass("fa-minus").addClass("fa-plus"),e(this).toggleClass("wpdiscuz-spoiler-closed")}),e("body").on("click",".wpd-tools",function(){var t=e(".wpd-tools-actions",e(this));t.is(":visible")||e(this).parents(".wpd-comment-right").attr("id")!==e("[id^=comment-]","#wpdcom").last().attr("id")||e("#comments").css({paddingBottom:"160px"}),t.css({display:t.is(":visible")?"none":"flex"})}),e("body").on("mouseleave",".wpd-comment-right",function(){e(this).find(".wpd-tools-actions").hide(),e("#comments").css({paddingBottom:"0"})}),e("body").on("click",".wpd_stick_btn",function(){var t=Y(e(this),0),o=J(t),a=new FormData;a.append("action","wpdStickComment"),a.append("commentId",o),eh(C,!0,a).done(function(t){"object"==typeof t&&t.success&&location.reload(!0),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e("body").on("click",".wpd_close_btn",function(){var t=Y(e(this),0),o=J(t),a=new FormData;a.append("action","wpdCloseThread"),a.append("commentId",o),eh(C,!0,a).done(function(t){"object"==typeof t&&t.success&&location.reload(!0),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e("body").on("click",".wpd-filter.wpd_not_clicked[data-filter-type]",function(){var t=e(this),o=t.attr("data-filter-type");wpdiscuzAjaxObj.resetActiveFilters(".wpdf-"+o),t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var a=new FormData;a.append("action","wpdLoadMoreComments");var n=e(".wpdiscuz-sort-button-active").attr("data-sorting");n&&a.append("sorting",n),a.append("lastParentId",0),a.append("offset",0),F=1,a.append("wpdType",t.hasClass("wpdf-active")?"":o),a.append("isFirstLoad",1),e(this).hasClass("wpdf-inline")?e(this).hasClass("wpdf-active")?e(".wpd-comment-info-bar").hide():e(".wpd-comment-info-bar").css("display","flex"):e(".wpd-comment-info-bar").hide(),eh(C,!1,a).done(function(o){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof o&&o.success&&(t.toggleClass("wpdf-active"),e(".wpd-load-comments").remove(),e(".wpd-comment").remove(),e(".wpd-thread-list").prepend(o.data.comment_list),K(o),l=o.data.loadLastCommentId,e(".wpd-load-more-submit").blur(),eu(o)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e("body").on("click",".wpdf-reacted.wpd_not_clicked",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var o=new FormData;o.append("action","wpdMostReactedComment"),eh(C,!1,o).done(function(o){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof o&&o.success&&(e("#comment-"+o.data.parentCommentID).length?e("#comment-"+o.data.parentCommentID).parents("[id^=wpd-comm-"+o.data.parentCommentID+"]").replaceWith(o.data.message):e("#comment-"+o.data.commentId).length||e(".wpd-thread-list").prepend(o.data.message),eu(o),eo(),e("html, body").animate({scrollTop:e("#comment-"+o.data.commentId).offset().top-D},1e3,ea))}).fail(function(o,a,n){console.log(n),e(".fas",t).removeClass("fa-pulse fa-spinner")})}),e("body").on("click",".wpdf-hottest.wpd_not_clicked",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var o=new FormData;o.append("action","wpdHottestThread"),eh(C,!1,o).done(function(o){t.addClass("wpd_not_clicked"),e(".fas",t).removeClass("fa-pulse fa-spinner"),"object"==typeof o&&o.success&&(e("#comment-"+o.data.commentId).length?e("#comment-"+o.data.commentId).parents("[id^=wpd-comm-"+o.data.commentId+"]").replaceWith(o.data.message):e(".wpd-thread-list").prepend(o.data.message),eu(o),eo(),e("html, body").animate({scrollTop:e("#comment-"+o.data.commentId).offset().top-D},1e3,ea))}).fail(function(o,a,n){console.log(n),e(".fas",t).removeClass("fa-pulse fa-spinner")})}),e("body").on("click",".wpd-filter-view-all",function(){e(".wpdf-inline.wpdf-active.wpd_not_clicked").trigger("click")}),e("body").on("click",".wpd-follow-link.wpd_not_clicked",function(){var t=e(this);t.removeClass("wpd_not_clicked"),e(".fas",t).addClass("fa-pulse fa-spinner");var o=Y(t,0),a=J(o),n=new FormData;n.append("action","wpdFollowUser"),n.append("commentId",a),eh(C,!0,n).done(function(o){t.addClass("wpd_not_clicked"),"object"==typeof o?o.success?(wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[o.data.code],o.data.code,t),"success"),t.removeClass("wpd-follow-active"),o.data.followTip&&t.attr("wpd-tooltip",o.data.followTip),o.data.followClass&&t.addClass(o.data.followClass),eu(o)):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[o.data],o.data,t),"error"):console.log(o),e(".fas",t).removeClass("fa-pulse fa-spinner"),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(o,a,n){console.log(n),e(".fas",t).removeClass("fa-pulse fa-spinner"),e("#wpdiscuz-loading-bar").fadeOut(250)})}),ed(),e("body").on("keyup",".wc_email",function(){ed(e(this))}),k&&e("#wpdcom").length){if(e("#wpd-bubble-wrapper").hover(function(){e(this).addClass("wpd-bubble-hover")},function(){e(this).removeClass("wpd-bubble-hover")}),x&&!Cookies.get(wpdiscuzAjaxObj.cookieHideBubbleHint)&&setTimeout(function(){e("#wpd-bubble-wrapper").addClass("wpd-bubble-hover");let t=wpdiscuzAjaxObj.bubbleHintShowOnce?"/":location.href;wpdiscuzAjaxObj.bubbleHintCookieExpires&&parseInt(wpdiscuzAjaxObj.bubbleHintCookieExpires,10),Cookies.set(wpdiscuzAjaxObj.cookieHideBubbleHint,"1",{expires:parseInt(wpdiscuzAjaxObj.bubbleHintCookieExpires,10),path:t}),setTimeout(function(){e("#wpd-bubble-wrapper").removeClass("wpd-bubble-hover")},1e3*_)},1e3*x),"content_left"===E){if(e(".entry-content").length){var ei=Math.min(e(".entry-content").offset().left,e("#wpdcom").offset().left)-120,es=ei>25?ei:25;e("#wpd-bubble-wrapper").css({left:es+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else if(e(".post-entry").length){var ei=Math.min(e(".post-entry").offset().left,e("#wpdcom").offset().left)-120,es=ei>25?ei:25;e("#wpd-bubble-wrapper").css({left:es+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else if(e(".container").length){var ei=Math.min(e(".container").offset().left,e("#wpdcom").offset().left)-120,es=ei>25?ei:25;e("#wpd-bubble-wrapper").css({left:es+"px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-content")}else e("#wpd-bubble-wrapper").css({left:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-corner")}else"left_corner"===E?(e("#wpd-bubble-wrapper").css({left:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-left-corner")):"right_corner"===E&&(e("#wpd-bubble-wrapper").css({right:"25px"}),e("#wpd-bubble-wrapper").addClass("wpd-right-corner"));e("#wpd-bubble-wrapper").show(),e("body").on("click","#wpd-bubble-add-message-close",function(t){t.preventDefault(),t.stopPropagation(),e("#wpd-bubble-wrapper").removeClass("wpd-bubble-hover")}),e("body").on("click","#wpd-bubble",function(){eo(),e("#tab-title-reviews").length&&e("#tab-title-reviews a").trigger("click"),e("html, body").animate({scrollTop:e("#wpdcom").offset().top-(D+28)},1e3,function(){ea(),e("#wpd-bubble-wrapper").removeClass("wpd-bubble-hover"),wpdiscuzLoadRichEditor?e("#wpd-editor-0_0").length&&wpDiscuzEditor.createEditor("#wpd-editor-0_0").focus():e("#wc-textarea-0_0").length&&e("#wc-textarea-0_0").trigger("focus")})}),e("body").on("click","#wpd-bubble-comment-close",function(t){t.preventDefault(),e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added")}),e("body").on("click","#wpd-bubble-comment-reply-link a",function(){var t=e(this).attr("href");setTimeout(function(){e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added"),N(!0);var o=t.match(/#comment\-(\d+)/);M=M.filter(function(e){return e!=o[1]}),e("#wpd-bubble-count .wpd-new-comments-count").text(M.length),0==M.length&&e("#wpd-bubble-count").removeClass("wpd-new-comments")},100)}),e("body").on("click","#wpd-bubble-count",function(){if(M.length){var t=new FormData;t.append("action","wpdBubbleUpdate"),t.append("newCommentIds",M.join()),eh(C,!0,t).done(function(t){"object"==typeof t&&t.success&&(t.data.message=t.data.message.filter(function(t){if(!e("#comment-"+t.comment_id).length)return t}),X(t),e("#wpd-bubble-count").removeClass("wpd-new-comments"),e("#wpd-bubble-count .wpd-new-comments-count").text("0"),M=[],e(".wpd-new-loaded-comment").length&&(eo(),e("html, body").animate({scrollTop:e(e(".wpd-new-loaded-comment")[0]).offset().top-(D+28)},1e3,ea)),eu(t)),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(e,t,o){console.log(o)})}})}function ec(){e.ajax({type:"GET",url:wpdiscuzAjaxObj.bubbleUpdateUrl,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",wpdiscuzAjaxObj.restNonce)},data:{postId:s,lastId:m,visibleCommentIds:ee()}}).done(function(t){if(!R){if("object"==typeof t){if(t.commentIDsToRemove.forEach(function(t){e("[id^=wpd-comm-"+t+"]").remove()}),t.ids.length){if(c){var o;(o=new FormData).append("action","wpdUpdateAutomatically"),o.append("loadLastCommentId",l),o.append("visibleCommentIds",ee()),eh(C,!1,o).done(function(t){!R&&"object"==typeof t&&t.success&&(X(t),t.data.wc_all_comments_count_new=parseInt(t.data.wc_all_comments_count_new),e(".wpd-thread-info").html(t.data.wc_all_comments_count_before_threads_html),e(".wpd-thread-info").attr("data-comments-count",t.data.wc_all_comments_count_new),e("#wpd-bubble-all-comments-count").replaceWith(t.data.wc_all_comments_count_bubble_html),l=t.data.loadLastCommentId)}).fail(function(e,t,o){console.log(o)})}t.ids=t.ids.filter(function(t){if(!e("#comment-"+t).length)return t});var a=5e3;m=parseInt(t.ids[t.ids.length-1]),M=M.concat(t.ids),O&&t.commentText&&(e("#wpd-bubble-author-avatar").html(t.avatar),e("#wpd-bubble-author-name").html(t.authorName),e("#wpd-bubble-comment-date span").html(t.commentDate),e("#wpd-bubble-comment-text").html(t.commentText),e("#wpd-bubble-comment-reply-link a").attr("href",t.commentLink),e("#wpd-bubble-notification-message").show(),a=1e4);var n=parseInt(e(".wpd-new-comments-count").text());n+=t.ids.length,e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added"),e("#wpd-bubble-wrapper").addClass("wpd-new-comment-added"),setTimeout(function(){e("#wpd-bubble-notification-message").hide(),e("#wpd-bubble-wrapper").removeClass("wpd-new-comment-added")},a),e(".wpd-new-comments-count").text(n),e("#wpd-bubble-count").addClass("wpd-new-comments")}t.all_comments_count=parseInt(t.all_comments_count),e("#wpd-bubble-all-comments-count").replaceWith(t.all_comments_count_bubble_html),e(".wpd-reviews-tab").length||(e(".wpd-thread-info").html(t.all_comments_count_before_threads_html),e(".wpd-thread-info").attr("data-comments-count",t.all_comments_count))}else console.log(t)}setTimeout(ec,r)}).fail(function(e,t,o){console.log(o),setTimeout(ec,r)})}if((k&&z||c)&&(o||!o&&p)&&setTimeout(ec,r),e(".wpd-inline-form-wrapper").length){var er=new FormData;er.append("action","wpdGetInlineCommentForm"),eh(C,!1,er).done(function(t){"object"==typeof t?t.success?(e(".wpd-inline-form-wrapper").append(t.data),e.each(e("[name=_wpd_inline_nonce]"),function(){var t=e(this).attr("id"),o=e(this).parents(".wpd-inline-shortcode").attr("id");e(this).attr("id",t+"-"+o.substring(o.lastIndexOf("-")+1))}),e(".wpd-inline-opened").addClass("wpd-active"),e(".wpd-inline-opened").find(".wpd-inline-form-wrapper").show(),e(".wpd-inline-opened").find(".wpd-inline-icon").addClass("wpd-open"),e(".wpd-inline-opened").find(".wpd-inline-icon").removeClass("wpd-ignored"),ew()):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[t.data]),t.data,"error"):console.log(t)}).fail(function(e,t,o){console.log(o)})}function ep(t){if(e(t).hasClass("wpd-inline-shortcode"))var o=e(t).attr("id");else var o=e(t).parents(".wpd-inline-shortcode").attr("id");return o.substring(o.lastIndexOf("-")+1)}function el(){e(".wpd-inline-form-wrapper").hide(),e(".wpd-inline-shortcode").removeClass("wpd-active"),e(".wpd-inline-icon").removeClass("wpd-open")}function em(){e.each(e(".wpd-inline-shortcode:not(.wpd-inline-opened) .wpd-inline-icon"),function(){var t=e(this),o=t.offset().top-window.pageYOffset;t.parents(".wpd-inline-shortcode").find(".wpd-inline-form").length&&o>0&&o<300&&("blink"===T?(t.addClass("wpd-blink"),setTimeout(function(){t.removeClass("wpd-blink")},3e3)):(t.parents(".wpd-inline-shortcode").addClass("wpd-active"),t.siblings(".wpd-inline-form-wrapper").show(),t.addClass("wpd-open"),ew(t.siblings(".wpd-inline-form-wrapper"))))})}function ew(t){if(t){if(t.offset().left<=10){t.css("left",Math.ceil(parseInt(t.css("left"))-t.offset().left+10));var o=Math.ceil(t.siblings(".wpd-inline-icon.wpd-open").offset().left-t.offset().left+2);o<3&&(o=3),document.styleSheets[0].addRule("#"+t.parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+o+"px;")}else if(t.offset().left+t.width()>document.body.clientWidth-10){t.css("left",Math.ceil(parseInt(t.css("left"))+(document.body.clientWidth-(t.offset().left+t.width()))-10));var o=Math.ceil(t.siblings(".wpd-inline-icon.wpd-open").offset().left-t.offset().left+2);o>t.width()-3&&(o=t.width()-3),document.styleSheets[0].addRule("#"+t.parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+o+"px;")}}else e.each(e(".wpd-inline-form-wrapper:visible"),function(){if(e(this).offset().left<=10){e(this).css("left",Math.ceil(parseInt(e(this).css("left"))-e(this).offset().left+10));var t=Math.ceil(e(this).siblings(".wpd-inline-icon.wpd-open").offset().left-e(this).offset().left+2);t<3&&(t=3),document.styleSheets[0].addRule("#"+e(this).parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+t+"px;")}else if(e(this).offset().left+e(this).width()>document.body.clientWidth-10){e(this).css("left",Math.ceil(parseInt(e(this).css("left"))+(document.body.clientWidth-(e(this).offset().left+e(this).width()))-10));var t=Math.ceil(e(this).siblings(".wpd-inline-icon.wpd-open").offset().left-e(this).offset().left+2);t>e(this).width()-3&&(t=e(this).width()-3),document.styleSheets[0].addRule("#"+e(this).parents(".wpd-inline-shortcode").attr("id")+" .wpd-inline-form-wrapper::before","left: "+t+"px;")}})}function ef(t){var o,a=0;if(t.parents(".wpd_main_comm_form").length)a=parseInt(wpdiscuzAjaxObj.commentTextMaxLength),o=t.parents(".wpd_main_comm_form");else if(t.parents(".wpd-secondary-form-wrapper").length)a=parseInt(wpdiscuzAjaxObj.replyTextMaxLength),o=t.parents(".wpd-secondary-form-wrapper");else if(t.parents("#wpdiscuz-edit-form").length){var n=Y(t);a=parseInt(n.substring(n.lastIndexOf("_")+1))?parseInt(wpdiscuzAjaxObj.replyTextMaxLength):parseInt(wpdiscuzAjaxObj.commentTextMaxLength),o=t.parents("#wpdiscuz-edit-form")}if(a&&o){var d=t.val().length,i=e(".wpd-editor-char-counter",o),s=a-d;i.html(s),s<=10?i.addClass("error"):i.removeClass("error")}}function eu(t,o,a,n){t.data.callbackFunctions&&e.each(t.data.callbackFunctions,function(e){"function"==typeof wpdiscuzAjaxObj[t.data.callbackFunctions[e]]?wpdiscuzAjaxObj[t.data.callbackFunctions[e]](t,o,a,n):"function"==typeof window[t.data.callbackFunctions[e]]?window[t.data.callbackFunctions[e]](t,o,a,n):console.log(t.data.callbackFunctions[e]+" is not a function")})}function eh(t,o,a){o&&e("#wpdiscuz-loading-bar").show(),a.append("postId",s);var n=a.get("action");wpdiscuzAjaxObj.dataFilterCallbacks&&wpdiscuzAjaxObj.dataFilterCallbacks[n]&&e.each(wpdiscuzAjaxObj.dataFilterCallbacks[n],function(e){"function"==typeof wpdiscuzAjaxObj[wpdiscuzAjaxObj.dataFilterCallbacks[n][e]]&&(a=wpdiscuzAjaxObj[wpdiscuzAjaxObj.dataFilterCallbacks[n][e]](a,t,o))});var d=t?wpdiscuzAjaxObj.url:wpdiscuzAjaxObj.customAjaxUrl;return e.ajax({type:"POST",url:d,data:a,contentType:!1,processData:!1})}e(document).on("click","body",function(t){if(e(t.target).hasClass("wpd-inline-form-close")||e(t.target).parents(".wpd-inline-form-close").length)t.preventDefault(),e(t.target).parents(".wpd-inline-form-wrapper").hide(),e(t.target).parents(".wpd-inline-shortcode").removeClass("wpd-active"),e(t.target).parents(".wpd-inline-form-wrapper").siblings(".wpd-inline-icon").removeClass("wpd-open");else if(!e(t.target).hasClass("wpd-inline-form-wrapper")&&!e(t.target).parents(".wpd-inline-form-wrapper").length){el();var o="";e(t.target).hasClass("wpd-inline-icon")?o=e(t.target):e(t.target).parents(".wpd-inline-icon").length&&(o=e(t.target).parents(".wpd-inline-icon")),o.length&&o.parents(".wpd-inline-shortcode").find(".wpd-inline-form").length&&(o.parents(".wpd-inline-shortcode").addClass("wpd-active"),o.siblings(".wpd-inline-form-wrapper").show(),o.addClass("wpd-open"),o.removeClass("wpd-ignored"),ew(o.siblings(".wpd-inline-form-wrapper")))}(!e(t.target).hasClass("wpd-last-inline-comments-wrapper")&&!e(t.target).parents(".wpd-last-inline-comments-wrapper").length||e(t.target).parents(".wpd-last-inline-comments-wrapper").length&&e(t.target).hasClass("wpd-load-inline-comment"))&&e(".wpd-last-inline-comments-wrapper").remove()}),e("body").on("click",".wpd-inline-submit.wpd_not_clicked",function(t){t.preventDefault();var o=e(this),a=e(this).parents(".wpd_inline_comm_form");if(a[0].checkValidity()){e(this).removeClass("wpd_not_clicked");var n=new FormData;n.append("action","wpdAddInlineComment"),n.append("inline_form_id",ep(a)),e.each(e("input, textarea",a),function(t,o){"checkbox"===this.type?e(this).is(":checked")&&n.append(e(o).attr("name"),e(o).val()):n.append(e(o).attr("name"),e(o).val())}),eh(C,!0,n).done(function(t){if(o.addClass("wpd_not_clicked"),"object"==typeof t){if(t.success){a[0].reset(),el();var n=parseInt(t.data.newCount),d=o.parents(".wpd-inline-icon-wrapper").find(".wpd-inline-icon-count");d.text(n),n?d.addClass("wpd-has-comments"):d.removeClass("wpd-has-comments"),t.data.allCommentsCountNew=parseInt(t.data.allCommentsCountNew),e(".wpd-thread-info").html(t.data.allCommentsCountBeforeThreadsHtml),e(".wpd-thread-info").attr("data-comments-count",t.data.allCommentsCountNew),e("#wpd-bubble-all-comments-count").replaceWith(t.data.allCommentsCountBubbleHtml),t.data.message&&en(t.data.message),wpdiscuzAjaxObj.setCommentMessage(t.data.notification,"success")}else t.data&&wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[t.data],t.data,o),"error")}else wpdiscuzAjaxObj.setCommentMessage(t,"error");e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e("body").on("keydown",".wpd-form",function(t){t.ctrlKey&&13==t.keyCode&&e(this).find(".wc_comm_submit").trigger("click")}),e("body").on("keydown","#wpdiscuz-edit-form",function(t){t.ctrlKey&&13==t.keyCode&&e(this).find(".wc_save_edited_comment").trigger("click")}),e("body").on("keydown",".wpd-inline-comment-content",function(t){t.ctrlKey&&13==t.keyCode&&e(this).parents(".wpd_inline_comm_form").find(".wpd-inline-submit.wpd_not_clicked").trigger("click")}),e("body").on("click",".wpd-inline-icon-count.wpd-has-comments",function(){var t=e(this),o=new FormData;o.append("action","wpdGetLastInlineComments"),o.append("inline_form_id",ep(t)),eh(C,!0,o).done(function(o){"object"==typeof o?o.success?e(o.data).insertAfter(t):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[o.data],o.data,t),"error"):console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}),e("body").on("click",".wpd-view-all-inline-comments",function(t){t.preventDefault(),e(this).parents(".wpd-last-inline-comments-wrapper").remove(),e(".wpdf-inline").hasClass("wpdf-active")||e(".wpdf-inline").trigger("click"),eo(),e("html, body").animate({scrollTop:e(".wpdf-inline").offset().top-D},1e3,ea)}),e("body").on("click",".wpd-feedback-content-link",function(t){t.preventDefault();var o=e(this).data("feedback-content-id");eo(),e("html, body").animate({scrollTop:e("#wpd-inline-"+o).offset().top-(D+6)},1e3,function(){ea(),e("#wpd-inline-"+o).addClass("wpd-active")})}),("scroll_open"===T||"blink"===T)&&(em(),e(window).on("scroll",em)),e("body").on("click","#wpd-post-rating.wpd-not-rated .wpd-rate-starts svg",function(){var t=new FormData,o=e(this).index();o>=0&&o<5&&(t.append("action","wpdUserRate"),t.append("rating",o+1),eh(C,!0,t).done(function(t){"object"==typeof t?(t.success?location.reload(!0):wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[t.data],t.data),"error"),eu(t)):console.log(t),e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)}))}),e("body").on("submit","#wpdiscuz-subscribe-form",function(t){t.preventDefault();var o=e(this);let a=e("#wpdiscuz_subscription_button",o);if(o[0].checkValidity()&&(n=o,i=!0,"2.0"===d&&e("input[name=wpdiscuz_recaptcha_subscribe_form]",n).length&&!e("input[name=wpdiscuz_recaptcha_subscribe_form]",n).val().length?(i=!1,e(".wpdiscuz-recaptcha",n).css("border","1px solid red")):"2.0"===d&&e("input[name=wpdiscuz_recaptcha_subscribe_form]",n).length&&e(".wpdiscuz-recaptcha",n).css("border","none"),i)&&a.hasClass("wpd_not_clicked")){a.removeClass("wpd_not_clicked");var n,i,s=new FormData;s.append("action","wpdAddSubscription"),e("*",o).each(function(){""!=this.name&&"checkbox"!=this.type&&"radio"!=this.type&&s.append(this.name+"",e(this).val()),("checkbox"==this.type||"radio"==this.type)&&e(this).is(":checked")&&s.append(this.name+"",e(this).val())}),eh(C,!0,s).done(function(t){"object"==typeof t?t.success?(wpdiscuzAjaxObj.setCommentMessage(t.data,"success"),setTimeout(function(){location.reload(!0)},3e3)):wpdiscuzAjaxObj.setCommentMessage(t.data,"error"):wpdiscuzAjaxObj.setCommentMessage(t,"error"),e("#wpdiscuz-loading-bar").fadeOut(250),R=!1,a.addClass("wpd_not_clicked")}).fail(function(t,o,n){console.log(n),a.addClass("wpd_not_clicked"),e("#wpdiscuz-loading-bar").fadeOut(250)})}}),e("body").on("click",".wpd-unsubscribe",function(t){t.preventDefault();var o=new FormData;o.append("action","wpdUnsubscribe"),o.append("sid",e(this).data("sid")),o.append("skey",e(this).data("skey")),eh(C,!0,o).done(function(t){"object"==typeof t?t.success?(wpdiscuzAjaxObj.setCommentMessage(t.data,"success"),setTimeout(function(){location.reload(!0)},3e3)):wpdiscuzAjaxObj.setCommentMessage(t.data,"error"):console.log(t),e("#wpdiscuz-loading-bar").fadeOut(250),R=!1}).fail(function(t,o,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)})}),wpdiscuzAjaxObj.resetActiveFilters=function(t){e(".wpd-filter.wpdf-active"+(t?":not("+t+")":"")).removeClass("wpdf-active")},wpdiscuzAjaxObj.getAjaxObj=eh});var onloadCallback=function(){if(document.getElementById("wpdiscuz-recaptcha-0_0")&&"2.0"===wpdiscuzAjaxObj.wpDiscuzReCaptchaVersion&&(1==wpdiscuzAjaxObj.wc_captcha_show_for_guest&&!wpdiscuzAjaxObj.is_user_logged_in||1==wpdiscuzAjaxObj.wc_captcha_show_for_members&&wpdiscuzAjaxObj.is_user_logged_in))try{grecaptcha.render("wpdiscuz-recaptcha-0_0",{sitekey:wpdiscuzAjaxObj.wpDiscuzReCaptchaSK,theme:wpdiscuzAjaxObj.wpDiscuzReCaptchaTheme,callback:function(e){jQuery("#wpdiscuz-recaptcha-field-0_0").val("key")},"expired-callback":function(){jQuery("#wpdiscuz-recaptcha-field-0_0").val("")}})}catch(e){console.log(e),wpdiscuzAjaxObj.setCommentMessage("reCaptcha Error: "+e.message,"error")}};
/* Colorbox */
!function(t,e,i){var o,n,r,h,a,s,l,c,d,g,f,u,p,m,w,v,y,x,b,T,C,H,k,W,E,I,M,L,R,S,K,P,B,O={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),o=t(this).data("cbox-iframe-attrs");return"object"==typeof o&&t.each(o,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},_="colorbox",j="cbox",D=j+"Element",F=j+"_open",N=j+"_load",z=j+"_complete",A=j+"_cleanup",q=j+"_closed",U=j+"_purge",$=t("<a/>"),G="div",Q=0,J={};function V(i,o,n){var r=e.createElement(i);return o&&(r.id=j+o),n&&(r.style.cssText=n),t(r)}function X(){return i.innerHeight?i.innerHeight:t(i).height()}function Y(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var o;return void 0===this.cache[e]&&(void 0!==(o=t(this.el).attr("data-cbox-"+e))?this.cache[e]=o:void 0!==i[e]?this.cache[e]=i[e]:void 0!==O[e]&&(this.cache[e]=O[e])),this.cache[e]},this.get=function(t){var e=this.value(t);return"function"==typeof e?e.call(this.el,this):e}}function Z(t){var e=d.length,i=(I+t)%e;return i<0?e+i:i}function tt(t,e){return Math.round((/%/.test(t)?("x"===e?g.width():X())/100:1)*parseInt(t,10))}function et(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function it(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function ot(t){"contains"in n[0]&&!n[0].contains(t.target)&&t.target!==o[0]&&(t.stopPropagation(),n.trigger("focus"))}function nt(t){nt.str!==t&&(n.add(o).removeClass(nt.str).addClass(t),nt.str=t)}function rt(i){t(e).trigger(i),$.triggerHandler(i)}var ht=function(){var t,e,i=j+"Slideshow_",o="click."+j;function r(){clearTimeout(e)}function h(){(C.get("loop")||d[I+1])&&(r(),e=setTimeout(P.next,C.get("slideshowSpeed")))}function a(){v.html(C.get("slideshowStop")).off(o).one(o,s),$.on(z,h).on(N,r),n.removeClass(i+"off").addClass(i+"on")}function s(){r(),$.off(z,h).off(N,r),v.html(C.get("slideshowStart")).off(o).one(o,function(){P.next(),a()}),n.removeClass(i+"on").addClass(i+"off")}function l(){t=!1,v.hide(),r(),$.off(z,h).off(N,r),n.removeClass(i+"off "+i+"on")}return function(){t?C.get("slideshow")||($.off(A,l),l()):C.get("slideshow")&&d[1]&&(t=!0,$.one(A,l),C.get("slideshowAuto")?a():s(),v.show())}}();function at(r){var g,w;if(!S){if(g=t(r).data(_),C=new Y(r,g),w=C.get("rel"),I=0,w&&!1!==w&&"nofollow"!==w?(d=t("."+D).filter(function(){return new Y(this,t.data(this,_)).get("rel")===w}),-1===(I=d.index(C.el))&&(d=d.add(C.el),I=d.length-1)):d=t(C.el),!L){L=R=!0,nt(C.get("className")),n.css({visibility:"hidden",display:"block",opacity:""}),f=V(G,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),h.css({width:"",height:""}).append(f),H=a.height()+c.height()+h.outerHeight(!0)-h.height(),k=s.width()+l.width()+h.outerWidth(!0)-h.width(),W=f.outerHeight(!0),E=f.outerWidth(!0);var v=tt(C.get("initialWidth"),"x"),y=tt(C.get("initialHeight"),"y"),x=C.get("maxWidth"),B=C.get("maxHeight");C.w=Math.max((!1!==x?Math.min(v,tt(x,"x")):v)-E-k,0),C.h=Math.max((!1!==B?Math.min(y,tt(B,"y")):y)-W-H,0),f.css({width:"",height:C.h}),P.position(),rt(F),C.get("onOpen"),T.add(m).hide(),n.trigger("focus"),C.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",ot,!0),$.one(q,function(){e.removeEventListener("focus",ot,!0)})),C.get("returnFocus")&&$.one(q,function(){t(C.el).trigger("focus")})}var O=parseFloat(C.get("opacity"));o.css({opacity:O==O?O:"",cursor:C.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),C.get("closeButton")?b.html(C.get("close")).appendTo(h):b.appendTo("<div/>"),function(){var e,o,n,r=P.prep,h=++Q;R=!0,M=!1,rt(U),rt(N),C.get("onLoad"),C.h=C.get("height")?tt(C.get("height"),"y")-W-H:C.get("innerHeight")&&tt(C.get("innerHeight"),"y"),C.w=C.get("width")?tt(C.get("width"),"x")-E-k:C.get("innerWidth")&&tt(C.get("innerWidth"),"x"),C.mw=C.w,C.mh=C.h,C.get("maxWidth")&&(C.mw=tt(C.get("maxWidth"),"x")-E-k,C.mw=C.w&&C.w<C.mw?C.w:C.mw);C.get("maxHeight")&&(C.mh=tt(C.get("maxHeight"),"y")-W-H,C.mh=C.h&&C.h<C.mh?C.h:C.mh);if(e=C.get("href"),K=setTimeout(function(){p.show()},100),C.get("inline")){var a=t(e).eq(0);n=t("<div>").hide().insertBefore(a),$.one(U,function(){n.replaceWith(a)}),r(a)}else C.get("iframe")?r(" "):C.get("html")?r(C.get("html")):et(C,e)?(e=it(C,e),M=C.get("createImg"),t(M).addClass(j+"Photo").on("error."+j,function(){r(V(G,"Error").html(C.get("imgError")))}).one("load",function(){h===Q&&setTimeout(function(){var e;C.get("retinaImage")&&i.devicePixelRatio>1&&(M.height=M.height/i.devicePixelRatio,M.width=M.width/i.devicePixelRatio),C.get("scalePhotos")&&(o=function(){M.height-=M.height*e,M.width-=M.width*e},C.mw&&M.width>C.mw&&(e=(M.width-C.mw)/M.width,o()),C.mh&&M.height>C.mh&&(e=(M.height-C.mh)/M.height,o())),C.h&&(M.style.marginTop=Math.max(C.mh-M.height,0)/2+"px"),d[1]&&(C.get("loop")||d[I+1])&&(M.style.cursor="pointer",t(M).on("click."+j,function(){P.next()})),M.style.width=M.width+"px",M.style.height=M.height+"px",r(M)},1)}),M.src=e):e&&u.load(e,C.get("data"),function(e,i){h===Q&&r("error"===i?V(G,"Error").html(C.get("xhrError")):t(this).contents())})}()}}function st(){n||(B=!1,g=t(i),n=V(G).attr({id:_,class:!1===t.support.opacity?j+"IE":"",role:"dialog",tabindex:"-1"}).hide(),o=V(G,"Overlay").hide(),p=t([V(G,"LoadingOverlay")[0],V(G,"LoadingGraphic")[0]]),r=V(G,"Wrapper"),h=V(G,"Content").append(m=V(G,"Title"),w=V(G,"Current"),x=t('<button type="button"/>').attr({id:j+"Previous"}),y=t('<button type="button"/>').attr({id:j+"Next"}),v=t('<button type="button"/>').attr({id:j+"Slideshow"}),p),b=t('<button type="button"/>').attr({id:j+"Close"}),r.append(V(G).append(V(G,"TopLeft"),a=V(G,"TopCenter"),V(G,"TopRight")),V(G,!1,"clear:left").append(s=V(G,"MiddleLeft"),h,l=V(G,"MiddleRight")),V(G,!1,"clear:left").append(V(G,"BottomLeft"),c=V(G,"BottomCenter"),V(G,"BottomRight"))).find("div div").css({float:"left"}),u=V(G,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),T=y.add(x).add(w).add(v)),e.body&&!n.parent().length&&t(e.body).append(o,n.append(r,u))}function lt(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),at(this))}return!!n&&(B||(B=!0,y.on("click",function(){P.next()}),x.on("click",function(){P.prev()}),b.on("click",function(){P.close()}),o.on("click",function(){C.get("overlayClose")&&P.close()}),t(e).on("keydown."+j,function(t){var e=t.keyCode;L&&C.get("escKey")&&27===e&&(t.preventDefault(),P.close()),L&&C.get("arrowKey")&&d[1]&&!t.altKey&&(37===e?(t.preventDefault(),x.trigger("click")):39===e&&(t.preventDefault(),y.trigger("click")))}),"function"==typeof t.fn.on?t(e).on("click."+j,"."+D,i):t("."+D).live("click."+j,i)),!0)}t[_]||(t(st),(P=t.fn[_]=t[_]=function(e,i){var o=this;return e=e||{},"function"==typeof o&&(o=t("<a/>"),e.open=!0),o[0]?(st(),lt()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,_)||{};t.data(this,_,t.extend(i,e))}).addClass(D),new Y(o[0],e).get("open")&&at(o[0])),o):o}).position=function(e,i){var o,d,f,u=0,p=0,m=n.offset();function w(){a[0].style.width=c[0].style.width=h[0].style.width=parseInt(n[0].style.width,10)-k+"px",h[0].style.height=s[0].style.height=l[0].style.height=parseInt(n[0].style.height,10)-H+"px"}if(g.off("resize."+j),n.css({top:-9e4,left:-9e4}),d=g.scrollTop(),f=g.scrollLeft(),C.get("fixed")?(m.top-=d,m.left-=f,n.css({position:"fixed"})):(u=d,p=f,n.css({position:"absolute"})),!1!==C.get("right")?p+=Math.max(g.width()-C.w-E-k-tt(C.get("right"),"x"),0):!1!==C.get("left")?p+=tt(C.get("left"),"x"):p+=Math.round(Math.max(g.width()-C.w-E-k,0)/2),!1!==C.get("bottom")?u+=Math.max(X()-C.h-W-H-tt(C.get("bottom"),"y"),0):!1!==C.get("top")?u+=tt(C.get("top"),"y"):u+=Math.round(Math.max(X()-C.h-W-H,0)/2),n.css({top:m.top,left:m.left,visibility:"visible"}),r[0].style.width=r[0].style.height="9999px",o={width:C.w+E+k,height:C.h+W+H,top:u,left:p},e){var v=0;t.each(o,function(t){o[t]===J[t]||(v=e)}),e=v}J=o,e||n.css(o),n.dequeue().animate(o,{duration:e||0,complete:function(){w(),R=!1,r[0].style.width=C.w+E+k+"px",r[0].style.height=C.h+W+H+"px",C.get("reposition")&&setTimeout(function(){g.on("resize."+j,P.position)},1),"function"==typeof i&&i()},step:w})},P.resize=function(t){var e;L&&((t=t||{}).width&&(C.w=tt(t.width,"x")-E-k),t.innerWidth&&(C.w=tt(t.innerWidth,"x")),f.css({width:C.w}),t.height&&(C.h=tt(t.height,"y")-W-H),t.innerHeight&&(C.h=tt(t.innerHeight,"y")),t.innerHeight||t.height||(e=f.scrollTop(),f.css({height:"auto"}),C.h=f.height()),f.css({height:C.h}),e&&f.scrollTop(e),P.position("none"===C.get("transition")?0:C.get("speed")))},P.prep=function(i){if(L){var o,r="none"===C.get("transition")?0:C.get("speed");f.remove(),(f=V(G,"LoadedContent").append(i)).hide().appendTo(u.show()).css({width:(C.w=C.w||f.width(),C.w=C.mw&&C.mw<C.w?C.mw:C.w,C.w),overflow:C.get("scrolling")?"auto":"hidden"}).css({height:(C.h=C.h||f.height(),C.h=C.mh&&C.mh<C.h?C.mh:C.h,C.h)}).prependTo(h),u.hide(),t(M).css({float:"none"}),nt(C.get("className")),o=function(){var i,o,h=d.length;function a(){!1===t.support.opacity&&n[0].style.removeAttribute("filter")}L&&(o=function(){clearTimeout(K),p.hide(),rt(z),C.get("onComplete")},m.html(C.get("title")).show(),f.show(),h>1?("string"==typeof C.get("current")&&w.html(C.get("current").replace("{current}",I+1).replace("{total}",h)).show(),y[C.get("loop")||I<h-1?"show":"hide"]().html(C.get("next")),x[C.get("loop")||I?"show":"hide"]().html(C.get("previous")),ht(),C.get("preloading")&&t.each([Z(-1),Z(1)],function(){var i=d[this],o=new Y(i,t.data(i,_)),n=o.get("href");n&&et(o,n)&&(n=it(o,n),e.createElement("img").src=n)})):T.hide(),C.get("iframe")?(i=C.get("createIframe"),C.get("scrolling")||(i.scrolling="no"),t(i).attr({src:C.get("href"),class:j+"Iframe"}).one("load",o).appendTo(f),$.one(U,function(){i.src="//about:blank"}),C.get("fastIframe")&&t(i).trigger("load")):o(),"fade"===C.get("transition")?n.fadeTo(r,1,a):a())},"fade"===C.get("transition")?n.fadeTo(r,0,function(){P.position(0,o)}):P.position(r,o)}},P.next=function(){!R&&d[1]&&(C.get("loop")||d[I+1])&&(I=Z(1),at(d[I]))},P.prev=function(){!R&&d[1]&&(C.get("loop")||I)&&(I=Z(-1),at(d[I]))},P.close=function(){L&&!S&&(S=!0,L=!1,rt(A),C.get("onCleanup"),g.off("."+j),o.fadeTo(C.get("fadeOut")||0,0),n.stop().fadeTo(C.get("fadeOut")||0,0,function(){n.hide(),o.hide(),rt(U),f.remove(),setTimeout(function(){S=!1,rt(q),C.get("onClosed")},1)}))},P.remove=function(){n&&(n.stop(),t[_].close(),n.stop(!1,!0).remove(),o.remove(),S=!1,n=null,t("."+D).removeData(_).removeClass(D),t(e).off("click."+j).off("keydown."+j))},P.element=function(){return t(C.el)},P.settings=O)}(jQuery,document,window);
/* Media Uploader */
jQuery(document).ready(function(e){if(e("body").on("click","#wpdcom .wmu-upload-wrap",function(){e(".wpd-form-foot",e(this).parents(".wpd_comm_form")).slideDown(parseInt(wpdiscuzAjaxObj.enableDropAnimation)?500:0)}),e("body").on("change",".wmu-add-files",function(){var a=e(this),t=a.parents(".wpd_comm_form"),r=a[0].files?a[0].files:[];r.length&&function a(t,r,o){r.attr("data-uploading","true");var d=new FormData;d.append("action","wmuUploadFiles"),d.append("wmuAttachmentsData",e(".wmu-attachments-data",r).val()),d.append("uniqueId",r.find(".wpdiscuz_unique_id").val());var m=0;e.each(o,function(e,a){m+=a.size,d.append(wpdiscuzAjaxObj.wmuInput+"["+e+"]",a)}),m>parseInt(wpdiscuzAjaxObj.wmuMaxFileSize)?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj.wmuPhraseMaxFileSize,"wmuPhraseMaxFileSize",t),"error",3e3):m>parseInt(wpdiscuzAjaxObj.wmuPostMaxSize)?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj.wmuPhrasePostMaxSize,"wmuPhrasePostMaxSize",t),"error",3e3):wpdiscuzAjaxObj.getAjaxObj(!0,!0,d).done(function(a){var t,o;a.success?(e(".wmu-attached-data-info",r).remove(),e(".wmu-add-files",r).after(a.data.attachmentsHtml),a.data.tooltip&&e(".wmu-upload-wrap",r).attr("wpd-tooltip",a.data.tooltip),t=r,o=a,e.each(o.data.previewsData,function(a,r){e(".wmu-action-wrap .wmu-"+a+"-tab",t).html(""),e.each(r,function(r,o){var d=o.id,m="",i=o.fullname,n=o.shortname;a==wpdiscuzAjaxObj.wmuKeyImages?(m=o.url,n=""):a==wpdiscuzAjaxObj.wmuKeyVideos?m=wpdiscuzAjaxObj.wmuIconVideo:a==wpdiscuzAjaxObj.wmuKeyFiles&&(m=wpdiscuzAjaxObj.wmuIconFile);var s='<div class="wmu-preview [PREVIEW_TYPE_CLASS]" title="[PREVIEW_TITLE]" data-wmu-type="[PREVIEW_TYPE]" data-wmu-attachment="[PREVIEW_ID]"><div class="wmu-preview-remove"><img class="wmu-preview-img" src="[PREVIEW_ICON]"><div class="wmu-file-name">[PREVIEW_FILENAME]</div><div class="wmu-delete">&nbsp;</div></div></div>';s=(s=(s=(s=(s=(s=s.replace("[PREVIEW_TYPE_CLASS]","wmu-preview-"+a)).replace("[PREVIEW_TITLE]",i)).replace("[PREVIEW_TYPE]",a)).replace("[PREVIEW_ID]",d)).replace("[PREVIEW_ICON]",m)).replace("[PREVIEW_FILENAME]",n),e(".wmu-action-wrap .wmu-"+a+"-tab",t).removeClass("wmu-hide").append(s)})}),a.data.errors&&(wpdiscuzAjaxObj.setCommentMessage(a.data.errors,"error",3e3),console.log(a.data.errors))):a.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[a.data.errorCode],a.data.errorCode,r),"error",3e3):a.data.error&&wpdiscuzAjaxObj.setCommentMessage(a.data.error,"error",3e3),e("#wpdiscuz-loading-bar").fadeOut(250),r.attr("data-uploading","false")}).fail(function(a,t,o){console.log(o),e("#wpdiscuz-loading-bar").fadeOut(250),r.attr("data-uploading","false")})}(a,t,r)}),e("body").on("click",".wmu-attachment-delete",function(a){if(confirm(wpdiscuzAjaxObj.wmuPhraseConfirmDelete)){var t=e(this),r=t.data("wmu-attachment"),o=new FormData;o.append("action","wmuDeleteAttachment"),o.append("attachmentId",r),wpdiscuzAjaxObj.getAjaxObj(!0,!0,o).done(function(a){if(a.success){var r=t.parents(".wmu-comment-attachments");t.parent(".wmu-attachment").remove(),e(".wmu-attached-images *",r).length||e(".wmu-attached-images",r).remove(),e(".wmu-attached-videos *",r).length||e(".wmu-attached-videos",r).remove(),e(".wmu-attached-files *",r).length||e(".wmu-attached-files",r).remove()}else a.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[a.data.errorCode],a.data.errorCode,r),"error",3e3):a.data.error&&wpdiscuzAjaxObj.setCommentMessage(a.data.error,"error",3e3);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,r){console.log(r),e("#wpdiscuz-loading-bar").fadeOut(250)})}else console.log("canceled")}),e("body").on("click",".wmu-preview",function(){var a=e(this),t=a.parents(".wpd_comm_form");a.data("wmu-type");var r=a.data("wmu-attachment"),o=new FormData;o.append("action","wmuRemoveAttachmentPreview"),o.append("attachmentId",r),o.append("wmuAttachmentsData",e(".wmu-attachments-data",t).val()),o.append("uniqueId",t.find(".wpdiscuz_unique_id").val()),wpdiscuzAjaxObj.getAjaxObj(!0,!0,o).done(function(r){if(r.success){a.remove();var o=e(".wmu-tabs",t);e.each(o,function(a,t){e(".wmu-preview",t).length?e(t).removeClass("wmu-hide"):e(t).addClass("wmu-hide")}),e(".wmu-attached-data-info",t).remove(),e(".wmu-add-files",t).after(r.data.attachmentsHtml),r.data.tooltip&&e(".wmu-upload-wrap",t).attr("wpd-tooltip",r.data.tooltip)}else r.data.errorCode?wpdiscuzAjaxObj.setCommentMessage(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzAjaxObj[r.data.errorCode],r.data.errorCode,t),"error",3e3):r.data.error&&wpdiscuzAjaxObj.setCommentMessage(r.data.error,"error",3e3);e("#wpdiscuz-loading-bar").fadeOut(250)}).fail(function(a,t,r){console.log(r),e("#wpdiscuz-loading-bar").fadeOut(250)})}),parseInt(wpdiscuzAjaxObj.wmuIsLightbox)){function a(){e(".wmu-lightbox").colorbox({maxHeight:"95%",maxWidth:"95%",rel:"wmu-lightbox",fixed:!0})}a(),wpdiscuzAjaxObj.wmuAddLightBox=a}wpdiscuzAjaxObj.wmuHideAll=function(a,t){"object"==typeof a?a.success?(e(".wmu-tabs",t).addClass("wmu-hide"),e(".wmu-preview",t).remove(),e(".wmu-attached-data-info",t).remove()):console.log(a.data):console.log(a)}});
/* Lity */
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(e,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(e,require("jquery")):e.lity=t(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=e.document,i=t(e),r=t.Deferred,o=t("html"),a=[],l="aria-hidden",s="lity-"+l,d='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',c={esc:!0,handler:null,handlers:{image:C,inline:function(e,n){var i,r,o;try{i=t(e)}catch(e){return!1}if(!i.length)return!1;return r=t('<i style="display:none !important"/>'),o=i.hasClass("lity-hide"),n.element().one("lity:remove",function(){r.before(i).remove(),o&&!i.closest(".lity-content").length&&i.addClass("lity-hide")}),i.removeClass("lity-hide").after(r)},youtube:function(e){var n=f.exec(e);if(!n)return!1;return k(x(e,w("https://www.youtube"+(n[2]||"")+".com/embed/"+n[4],t.extend({autoplay:1},b(n[5]||"")))))},vimeo:function(e){var n=y.exec(e);if(!n)return!1;return k(x(e,w("https://player.vimeo.com/video/"+n[3],t.extend({autoplay:1},b(n[4]||"")))))},googlemaps:function(e){var t=v.exec(e);if(!t)return!1;return k(x(e,w("https://www.google."+t[3]+"/maps?"+t[6],{output:t[6].indexOf("layer=c")>0?"svembed":"embed"})))},facebookvideo:function(e){var n=p.exec(e);if(!n)return!1;0!==e.indexOf("http")&&(e="https:"+e);return k(x(e,w("https://www.facebook.com/plugins/video.php?href="+e,t.extend({autoplay:1},b(n[4]||"")))))},iframe:k},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},u=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,f=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,y=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,v=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,p=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,m=function(){var e=n.createElement("div"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return t[i];return!1}();function h(e){var t=r();return m&&e.length?(e.one(m,t.resolve),setTimeout(t.resolve,500)):t.resolve(),t.promise()}function g(e,n,i){if(1===arguments.length)return t.extend({},e);if("string"==typeof n){if(void 0===i)return void 0===e[n]?null:e[n];e[n]=i}else t.extend(e,n);return this}function b(e){for(var t,n=decodeURI(e.split("#")[0]).split("&"),i={},r=0,o=n.length;r<o;r++)n[r]&&(i[(t=n[r].split("="))[0]]=t[1]);return i}function w(e,n){return e+(e.indexOf("?")>-1?"&":"?")+t.param(n)}function x(e,t){var n=e.indexOf("#");return-1===n?t:(n>0&&(e=e.substr(n)),t+e)}function C(e,n){var i=n.opener()&&n.opener().data("lity-desc")||"Image with no description",o=t('<img src="'+e+'" alt="'+i+'"/>'),a=r(),l=function(){var e;a.reject((e="Failed loading image",t('<span class="lity-error"/>').append(e)))};return o.on("load",function(){if(0===this.naturalWidth)return l();a.resolve(o)}).on("error",l),a.promise()}function k(e){return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen src="'+e+'"/></div>'}function E(){return n.documentElement.clientHeight?.9*n.documentElement.clientHeight:Math.round(.9*i.height())}function j(e){var t,i,r,o=z();o&&(27===e.keyCode&&o.options("esc")&&o.close(),9===e.keyCode&&(t=e,i=o.element().find(d),r=i.index(n.activeElement),t.shiftKey&&r<=0?(i.get(i.length-1).focus(),t.preventDefault()):t.shiftKey||r!==i.length-1||(i.get(0).focus(),t.preventDefault())))}function D(){t.each(a,function(e,t){t.resize()})}function z(){return 0===a.length?null:a[0]}function T(e,d,u,f){var y,v,p,m,b,w,x,C,k,z,T,O=this,q=!1,W=!1;d=t.extend({},c,d),v=t(d.template),O.element=function(){return v},O.opener=function(){return u},O.options=t.proxy(g,O,d),O.handlers=t.proxy(g,O,d.handlers),O.resize=function(){q&&!W&&p.css("max-height",E()+"px").trigger("lity:resize",[O])},O.close=function(){if(q&&!W){var e;W=!0,(e=O).element().attr(l,"true"),1===a.length&&(o.removeClass("lity-active"),i.off({resize:D,keydown:j})),((a=t.grep(a,function(t){return e!==t})).length?a[0].element():t(".lity-hidden")).removeClass("lity-hidden").each(function(){var e=t(this),n=e.data(s);n?e.attr(l,n):e.removeAttr(l),e.removeData(s)});var d=r();if(f&&(n.activeElement===v[0]||t.contains(v[0],n.activeElement)))try{f.focus()}catch(e){}return p.trigger("lity:close",[O]),v.removeClass("lity-opened").addClass("lity-closed"),h(p.add(v)).always(function(){p.trigger("lity:remove",[O]),v.remove(),v=void 0,d.resolve()}),d.promise()}},m=e,b=O,w=d.handlers,x=d.handler,k="inline",z=t.extend({},w),x&&z[x]?(C=z[x](m,b),k=x):(t.each(["inline","iframe"],function(e,t){delete z[t],z[t]=w[t]}),t.each(z,function(e,t){return!t||!(!t.test||t.test(m,b))||(!1!==(C=t(m,b))?(k=e,!1):void 0)})),y={handler:k,content:C||""},v.attr(l,"false").addClass("lity-loading lity-opened lity-"+y.handler).appendTo("body").focus().on("click","[data-lity-close]",function(e){t(e.target).is("[data-lity-close]")&&O.close()}).trigger("lity:open",[O]),T=O,1===a.unshift(T)&&(o.addClass("lity-active"),i.on({resize:D,keydown:j})),t("body > *").not(T.element()).addClass("lity-hidden").each(function(){var e=t(this);void 0===e.data(s)&&e.data(s,e.attr(l)||null)}).attr(l,"true"),t.when(y.content).always(function(e){p=t(e).css("max-height",E()+"px"),v.find(".lity-loader").each(function(){var e=t(this);h(e).always(function(){e.remove()})}),v.removeClass("lity-loading").find(".lity-content").empty().append(p),q=!0,p.trigger("lity:ready",[O])})}function O(e,i,r){e.preventDefault?(e.preventDefault(),e=(r=t(this)).data("lity-target")||r.attr("rel")||r.attr("src")):r=t(r);var o=new T(e,t.extend({},r.data("lity-options")||r.data("lity"),i),r,n.activeElement);if(!e.preventDefault)return o}return C.test=function(e){return u.test(e)},O.version="2.2.2",O.options=t.proxy(g,O,c),O.handlers=t.proxy(g,O,c.handlers),O.current=z,t(n).on("click.lity","[data-wpd-lity]",O),O});
/* My Content and Settings */
jQuery(document).ready(function(e){var n=0,t=parseInt(wpdiscuzAjaxObj.isNativeAjaxEnabled),d=parseInt(wpdiscuzUCObj.additionalTab);e("body").on("click",".wpd-info,.wpd-page-link,.wpd-delete-content,.wpd-user-email-delete-links",function(e){e.preventDefault()}),e("body").on("click",".wpd-info.wpd-not-clicked",function(n){var a=e(this);a.removeClass("wpd-not-clicked");var o,i,s,l,c=new FormData;return c.append("action","wpdGetInfo"),o=a,i=c,l=(s=e(".fas",o)).attr("class"),s.removeClass(),s.addClass("fas fa-pulse fa-spinner"),wpdiscuzAjaxObj.getAjaxObj(t||d,!1,i).done(function(n){o.addClass("wpd-not-clicked"),s.removeClass(),s.addClass(l),n&&(e("#wpdUserContentInfo").html(n),e("#wpdUserContentInfo ul.wpd-list .wpd-list-item:first-child").addClass("wpd-active"),e("#wpdUserContentInfo div.wpd-content .wpd-content-item:first-child").addClass("wpd-active"),e("#wpdUserContentInfo").is(":visible")||e("#wpdUserContentInfoAnchor").trigger("click"))}),!1}),e("body").on("click",".wpd-list-item",function(){var n=e("input.wpd-rel",this).val();e("#wpdUserContentInfo .wpd-list-item").removeClass("wpd-active"),e("#wpdUserContentInfo .wpd-content-item").removeClass("wpd-active");var a=e(this);if(e("#wpdUserContentInfo #"+n).text().length)a.addClass("wpd-active"),e("#wpdUserContentInfo #"+n).addClass("wpd-active");else{var o=new FormData;o.append("action",a.attr("data-action")),o.append("page",0),e("#wpdUserContentInfo #"+n).addClass("wpd-active"),e("#wpdUserContentInfo #"+n).css("text-align","center"),wpdiscuzAjaxObj.getAjaxObj(t||d,!0,o).done(function(t){t&&(e("#wpdUserContentInfo #"+n).css("text-align",""),a.addClass("wpd-active"),e("#wpdUserContentInfo #"+n).html(t)),e("#wpdiscuz-loading-bar").hide()})}}),e("body").on("click",".wpd-page-link.wpd-not-clicked",function(n){var a=e(this);a.removeClass("wpd-not-clicked");var o=a.data("wpd-page"),i=e(".wpd-active .wpd-pagination .wpd-action").val(),s=new FormData;s.append("action",i),s.append("page",o),wpdiscuzAjaxObj.getAjaxObj(t||d,!0,s).done(function(n){a.addClass("wpd-not-clicked"),n&&e(".wpd-content-item.wpd-active").html(n),e("#wpdiscuz-loading-bar").hide()})}),e("body").on("click",".wpd-delete-content.wpd-not-clicked",function(){var a=e(this),o=parseInt(a.data("wpd-content-id"));if(!isNaN(o)){var i=a.data("wpd-delete-action");if("wpdDeleteComment"===i&&!confirm(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzUCObj.msgConfirmDeleteComment,"wc_confirm_comment_delete",a)))return!1;if("wpdCancelSubscription"===i&&!confirm(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzUCObj.msgConfirmCancelSubscription,"wc_confirm_cancel_subscription",a)))return!1;if("wpdCancelFollow"===i&&!confirm(wpdiscuzAjaxObj.applyFilterOnPhrase(wpdiscuzUCObj.msgConfirmCancelFollow,"wc_confirm_cancel_follow",a)))return!1;var s=e("i",a),l=s.attr("class"),c=e(".wpd-wrapper .wpd-page-number").val(),p=e(".wpd-content-item.wpd-active").children(".wpd-item").length;a.removeClass("wpd-not-clicked"),s.removeClass().addClass("fas fa-pulse fa-spinner"),1===p&&c>0&&(c-=1);var r=new FormData;r.append("id",o),r.append("page",c),r.append("action",i),wpdiscuzAjaxObj.getAjaxObj(t||d,!1,r).done(function(t){a.addClass("wpd-not-clicked"),s.removeClass().addClass(l),e(".wpd-content-item.wpd-active").html(t),n=1})}}),e("body").on("click","[data-lity-close]",function(t){e(t.target).is("[data-lity-close]")&&n&&window.location.reload(!0)}),e("body").on("click",".wpd-user-email-delete-links.wpd-not-clicked",function(){var n=e(this);n.removeClass("wpd-not-clicked"),e(".wpd-loading",n).addClass("wpd-show");var a=new FormData;a.append("action","wpdEmailDeleteLinks"),wpdiscuzAjaxObj.getAjaxObj(t||d,!1,a).done(function(t){n.addClass("wpd-not-clicked"),e("[data-lity-close]",window.parent.document).trigger("click")})}),e("body").on("click",".wpd-user-settings-button.wpd-not-clicked",function(){var n=e(this);n.removeClass("wpd-not-clicked");var a=n.data("wpd-delete-action");if("deleteCookies"!==a){n.find(".wpd-loading").addClass("wpd-show");var o=new FormData;o.append("action","wpdGuestAction"),o.append("guestAction",a),wpdiscuzAjaxObj.getAjaxObj(t||d,!1,o).done(function(t){n.addClass("wpd-not-clicked"),n.find(".wpd-loading").removeClass("wpd-show");try{var d=e.parseJSON(t);n.after(d.message);var a=n.next(".wpd-guest-action-message");a.fadeIn(100).fadeOut(7e3,function(){a.remove(),1===parseInt(d.code)&&(n.parent().remove(),e(".wpd-delete-all-comments").length||e(".wpd-delete-all-subscriptions").length||e(".wpd-delete-all-cookies").parent().addClass("wpd-show"))})}catch(o){console.log(o)}})}else(function e(){for(var n=document.cookie.split(";"),t=0;t<n.length;t++){var d=n[t],a=d.indexOf("="),o=a>-1?d.substr(0,a):d;Cookies.remove(o.trim())}location.reload(!0)})()})});
/* Social */
function wpcShareCommentFB(e,s){FB.ui({method:"share",href:e,quote:s},function(e){})}(!parseInt(wpdiscuzAjaxObj.fbUseOAuth2)&&parseInt(wpdiscuzAjaxObj.enableFbLogin)||parseInt(wpdiscuzAjaxObj.enableFbShare))&&wpdiscuzAjaxObj.facebookAppID&&(function(e,s,n){var a,o=e.getElementsByTagName(s)[0];!e.getElementById(n)&&((a=e.createElement(s)).id=n,a.src="//connect.facebook.net/en_US/sdk.js",o.parentNode.insertBefore(a,o))}(document,"script","facebook-jssdk"),window.fbAsyncInit=function(){FB.init({appId:wpdiscuzAjaxObj.facebookAppID,cookie:!0,xfbml:!0,version:"v7.0"})}),jQuery(document).ready(function(e){(s=Cookies.get("wpdiscuz_social_login_message"))&&"undefined"!==s&&(Cookies.remove("wpdiscuz_social_login_message"),wpdiscuzAjaxObj.setCommentMessage(decodeURIComponent(s.replace(/\+/g,"%20")),"error")),Cookies.get("wpdiscuz_scroll_to_comments")&&(Cookies.remove("wpdiscuz_scroll_to_comments",{path:"/"}),e("html, body").animate({scrollTop:e("#comments").offset().top-32},1e3)),e("body").on("click",".wpd-comment-share .fa-facebook-f",function(){if(1==wpdiscuzAjaxObj.enableFbShare){var s=e(this).parents(".wpd-comment").find(".wpd-comment-right").attr("id"),n=window.location.href;-1!==n.indexOf("#")&&(n=n.substring(0,n.indexOf("#"))),wpcShareCommentFB(n+="#"+s,e(this).parents(".wpd-comment-right").find(".wpd-comment-text").text())}});var s,n="";function a(e,s){var n,a="";t(s,1),Cookies.set("wpdiscuz_scroll_to_comments",1,{path:"/"}),"facebook"===e&&0==wpdiscuzAjaxObj.facebookUseOAuth2?FB.getLoginStatus(function(t){"connected"===t.status?o(e,n=t.authResponse.accessToken,a=t.authResponse.userID,s):FB.login(function(t){"connected"===t.status&&o(e,n=t.authResponse.accessToken,a=t.authResponse.userID,s)},{scope:"public_profile,email"})}):o(e,n,a,s)}function o(s,n,a,o){return e.ajax({type:"POST",url:wpdiscuzAjaxObj.url,data:{action:"wpd_social_login",provider:s,token:n,userID:a,postID:wpdiscuzAjaxObj.wc_post_id}}).done(function(s){(function s(n,a){try{var o=e.parseJSON(n),i=o.code,r=o.message,c=o.url;200===parseInt(i)?location.assign(c):wpdiscuzAjaxObj.setCommentMessage(r,"error")}catch(d){console.log(d)}t(a,0)})(s,o)}),""}function t(e,s){1===s?e.find(".wpdiscuz-social-login-spinner").show():e.find(".wpdiscuz-social-login-spinner").hide()}e("body").on("click","#wpdcom .wpd-social-login .wpdiscuz-login-button",function(){var s,o,t,i,r=e(this).parents(".wpd-social-login");t=n=(s=e(this),o="",s.hasClass("wpdsn-fb")&&(o="facebook"),s.hasClass("wpdsn-insta")&&(o="instagram"),s.hasClass("wpdsn-gg")&&(o="google"),s.hasClass("wpdsn-ds")&&(o="disqus"),s.hasClass("wpdsn-wp")&&(o="wordpress"),s.hasClass("wpdsn-tw")&&(o="twitter"),s.hasClass("wpdsn-vk")&&(o="vk"),s.hasClass("wpdsn-ok")&&(o="ok"),s.hasClass("wpdsn-linked")&&(o="linkedin"),s.hasClass("wpdsn-yandex")&&(o="yandex"),s.hasClass("wpdsn-mailru")&&(o="mailru"),s.hasClass("wpdsn-weixin")&&(o="wechat"),s.hasClass("wpdsn-weibo")&&(o="weibo"),s.hasClass("wpdsn-qq")&&(o="qq"),s.hasClass("wpdsn-baidu")&&(o="baidu"),s.hasClass("wpdsn-telegram")&&(o="telegram"),o),i=r,1!=parseInt(wpdiscuzAjaxObj.socialLoginAgreementCheckbox)||1==Cookies.get("socialLoginAgreementConfirmed")?a(t,i):i.parents(".wpd-form-wrap, .wpd-form").find(".wpd-social-login-agreement").first().slideDown(700)}),e("body").on("click","#wpdcom .wpd-agreement-buttons-right .wpd-agreement-button",function(){var s=e(this).parents(".wpd-form-wrap, .wpd-form").find(".wpd-social-login-agreement").slideUp(700);e(this).hasClass("wpd-agreement-button-agree")&&(wpdiscuzAjaxObj.isCookiesEnabled&&Cookies.set("socialLoginAgreementConfirmed",1,{expires:30,path:"/"}),a(n,s))});var i=function e(){var s,n="",a=/[#\?\&]tgAuthResult=([A-Za-z0-9\-_=]*)$/;try{if(s=(n=location.hash.toString()).match(a)){location.hash=n.replace(a,"");var o=s[1]||"",t=(o=o.replace(/-/g,"+").replace(/_/g,"/")).length%4;return t>1&&(o+=Array(5-t).join("=")),JSON.parse(window.atob(o))}}catch(i){console.log(i)}return!1}();i&&(e("#wpdiscuz-loading-bar").show(),e.ajax({type:"POST",url:wpdiscuzAjaxObj.url,data:{action:"wpd_login_callback",provider:"telegram",user:i}}).done(function(s){console.log(s),s.success?location.reload(!0):(wpdiscuzAjaxObj.setCommentMessage(s.data,"error"),e("#wpdiscuz-loading-bar").fadeOut(250))}).fail(function(s,n,a){console.log(a),e("#wpdiscuz-loading-bar").fadeOut(250)}))});
;(function(){var w=window,C='___grecaptcha_cfg',cfg=w[C]=w[C]||{},N='grecaptcha';var gr=w[N]=w[N]||{};gr.ready=gr.ready||function(f){(cfg.fns=cfg.fns||[]).push(f)};w.__recaptcha_api='https://www.google.com/recaptcha/api2/';(cfg.render=cfg.render||[]).push('onload');(cfg.onload=cfg.onload||[]).push('onloadCallback');w.__google_recaptcha_client=!0;var d=document,po=d.createElement('script');po.type='text/javascript';po.async=!0;po.charset='utf-8';po.src='https://www.gstatic.com/recaptcha/releases/-ZG7BC9TxCVEbzIO2m429usb/recaptcha__en.js';po.crossOrigin='anonymous';po.integrity='sha384-gaZtYaI7oJHEOo1YO6VuoCE4iZ5fMV9mYHP0BHf+r2ttABnpWWCIkgI6ItNW4ZdO';var e=d.querySelector('script[nonce]'),n=e&&(e.nonce||e.getAttribute('nonce'));if(n){po.setAttribute('nonce',n)}var s=d.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s)})()
;/*! This file is auto-generated */
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);
;/*! This file is auto-generated */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&e(jQuery)}(function(f){"use strict";function u(e){return"function"==typeof e}var i,r,v={interval:100,sensitivity:6,timeout:0},s=0,a=function(e){i=e.pageX,r=e.pageY},p=function(e,t,n,o){if(Math.sqrt((n.pX-i)*(n.pX-i)+(n.pY-r)*(n.pY-r))<o.sensitivity)return t.off(n.event,a),delete n.timeoutId,n.isActive=!0,e.pageX=i,e.pageY=r,delete n.pX,delete n.pY,o.over.apply(t[0],[e]);n.pX=i,n.pY=r,n.timeoutId=setTimeout(function(){p(e,t,n,o)},o.interval)};f.fn.hoverIntent=function(e,t,n){function o(e){var u=f.extend({},e),r=f(this),v=((t=r.data("hoverIntent"))||r.data("hoverIntent",t={}),t[i]),t=(v||(t[i]=v={id:i}),v.timeoutId&&(v.timeoutId=clearTimeout(v.timeoutId)),v.event="mousemove.hoverIntent.hoverIntent"+i);"mouseenter"===e.type?v.isActive||(v.pX=u.pageX,v.pY=u.pageY,r.off(t,a).on(t,a),v.timeoutId=setTimeout(function(){p(u,r,v,d)},d.interval)):v.isActive&&(r.off(t,a),v.timeoutId=setTimeout(function(){var e,t,n,o,i;e=u,t=r,n=v,o=d.out,(i=t.data("hoverIntent"))&&delete i[n.id],o.apply(t[0],[e])},d.timeout))}var i=s++,d=f.extend({},v);f.isPlainObject(e)?(d=f.extend(d,e),u(d.out)||(d.out=d.over)):d=u(t)?f.extend(d,{over:e,out:t,selector:n}):f.extend(d,{over:e,out:e,selector:t});return this.on({"mouseenter.hoverIntent":o,"mouseleave.hoverIntent":o},d.selector)}});
;/*! This file is auto-generated */
/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
;var jnewsoption={"login_reload":"https:\/\/vntime.org\/go88-nhatvip-co-the-danh-bai-va-dung-len-ngoi-vuong-la-ai.html","popup_script":"magnific","single_gallery":"","ismobile":"","isie":"","sidefeed_ajax":"","language":"vi","module_prefix":"jnews_module_ajax_","live_search":"1","postid":"6894","isblog":"1","admin_bar":"0","follow_video":"","follow_position":"top_right","rtl":"0","gif":"","lang":{"invalid_recaptcha":"Invalid Recaptcha!","empty_username":"Please enter your username!","empty_email":"Please enter your email!","empty_password":"Please enter your password!"},"recaptcha":"0","site_slug":"\/","site_domain":"vntime.org","zoom_button":"0"}
;!function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t){e.exports=jQuery},function(e,t,n){n(2),n(3),n(4),n(6),n(7),n(8),n(9),n(10),n(11),n(12),n(13),n(14),n(15),n(16),n(17),n(18),n(19),n(20),n(21),n(22),n(23),n(24),n(25),n(26),n(27),n(28),n(29),n(30),n(31),n(32),n(33),n(34),n(35),n(36),n(37)},function(e,t,n){var i,o,a,s,r,l,c,d,u,h,f,i,p,i,m,g,i,v,i,m,_,i,m,y,i,m,w,i,m,b,i,m,j,i,m,x,i,o;!function(a,s){i=[n(0)],void 0!==(o=function(e){return s(a,e)}.apply(t,i))&&(e.exports=o)}(window,function(e,t){"use strict";function n(n,a,r){function l(e,t,i){var o,a="$()."+n+'("'+t+'")';return e.each(function(e,l){var c=r.data(l,n);if(!c)return void s(n+" not initialized. Cannot call methods, i.e. "+a);var d=c[t];if(!d||"_"==t.charAt(0))return void s(a+" is not a valid method");var u=d.apply(c,i);o=void 0===o?u:o}),void 0!==o?o:e}function c(e,t){e.each(function(e,i){var o=r.data(i,n);o?(o.option(t),o._init()):(o=new a(i,t),r.data(i,n,o))})}(r=r||t||e.jQuery)&&(a.prototype.option||(a.prototype.option=function(e){r.isPlainObject(e)&&(this.options=r.extend(!0,this.options,e))}),r.fn[n]=function(e){if("string"==typeof e){return l(this,e,o.call(arguments,1))}return c(this,e),this},i(r))}function i(e){!e||e&&e.bridget||(e.bridget=n)}var o=Array.prototype.slice,a=e.console,s=void 0===a?function(){}:function(e){a.error(e)};return i(t||e.jQuery),n}),function(e,t){s=t,r={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},a="function"==typeof s?s.call(r.exports,n,r.exports,r):s,r.loaded=!0,void 0===a&&(a=r.exports)}("undefined"!=typeof window&&window,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},i=n[e]=n[e]||[];return-1==i.indexOf(t)&&i.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var i=n.indexOf(t);return-1!=i&&n.splice(i,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var i=this._onceEvents&&this._onceEvents[e],o=0;o<n.length;o++){var a=n[o];i&&i[a]&&(this.off(e,a),delete i[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){c=t,d={id:"get-size/get-size",exports:{},loaded:!1},l="function"==typeof c?c.call(d.exports,n,d.exports,d):c,d.loaded=!0,void 0===l&&(l=d.exports)}(window,function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}function n(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<c;t++){e[l[t]]=0}return e}function i(e){var t=getComputedStyle(e);return t||r("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function o(){if(!d){d=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var o=i(t);s=200==Math.round(e(o.width)),a.isBoxSizeOuter=s,n.removeChild(t)}}function a(t){if(o(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var a=i(t);if("none"==a.display)return n();var r={};r.width=t.offsetWidth,r.height=t.offsetHeight;for(var d=r.isBorderBox="border-box"==a.boxSizing,u=0;u<c;u++){var h=l[u],f=a[h],p=parseFloat(f);r[h]=isNaN(p)?0:p}var m=r.paddingLeft+r.paddingRight,g=r.paddingTop+r.paddingBottom,v=r.marginLeft+r.marginRight,_=r.marginTop+r.marginBottom,y=r.borderLeftWidth+r.borderRightWidth,w=r.borderTopWidth+r.borderBottomWidth,b=d&&s,j=e(a.width);!1!==j&&(r.width=j+(b?0:m+y));var x=e(a.height);return!1!==x&&(r.height=x+(b?0:g+w)),r.innerWidth=r.width-(m+y),r.innerHeight=r.height-(g+w),r.outerWidth=r.width+v,r.outerHeight=r.height+_,r}}var s,r="undefined"==typeof console?t:function(e){console.error(e)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=l.length,d=!1;return a}),function(e,t){"use strict";h=t,f={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},u="function"==typeof h?h.call(f.exports,n,f.exports,f):h,f.loaded=!0,void 0===u&&(u=f.exports)}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var i=t[n],o=i+"MatchesSelector";if(e[o])return o}}();return function(t,n){return t[e](n)}}),function(e,n){i=[u],p=function(t){return n(e,t)}.apply(t,i)}(window,function(e,t){var n={};n.extend=function(e,t){for(var n in t)e[n]=t[n];return e},n.modulo=function(e,t){return(e%t+t)%t};var i=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null===e||void 0===e?[]:"object"==typeof e&&"number"==typeof e.length?i.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,i){e=n.makeArray(e);var o=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!i)return void o.push(e);t(e,i)&&o.push(e);for(var n=e.querySelectorAll(i),a=0;a<n.length;a++)o.push(n[a])}}),o},n.debounceMethod=function(e,t,n){n=n||100;var i=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];clearTimeout(e);var t=arguments,a=this;this[o]=setTimeout(function(){i.apply(a,t),delete a[o]},n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()};var o=e.console;return n.htmlInit=function(t,i){n.docReady(function(){var a=n.toDashed(i),s="data-"+a,r=document.querySelectorAll("["+s+"]"),l=document.querySelectorAll(".js-"+a),c=n.makeArray(r).concat(n.makeArray(l)),d=s+"-options",u=e.jQuery;c.forEach(function(e){var n,a=e.getAttribute(s)||e.getAttribute(d);try{n=a&&JSON.parse(a)}catch(t){return void(o&&o.error("Error parsing "+s+" on "+e.className+": "+t))}var r=new t(e,n);u&&u.data(e,i,r)})})},n}),function(e,n){i=[a,l],m=n,g="function"==typeof m?m.apply(t,i):m}(window,function(e,t){"use strict";function n(e){for(var t in e)return!1;return null,!0}function i(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var o=document.documentElement.style,a="string"==typeof o.transition?"transition":"WebkitTransition",s="string"==typeof o.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[a],l={transform:s,transition:a,transitionDuration:a+"Duration",transitionProperty:a+"Property",transitionDelay:a+"Delay"},c=i.prototype=Object.create(e.prototype);c.constructor=i,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.getSize=function(){this.size=t(this.element)},c.css=function(e){var t=this.element.style;for(var n in e){t[l[n]||n]=e[n]}},c.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),i=e[t?"left":"right"],o=e[n?"top":"bottom"],a=parseFloat(i),s=parseFloat(o),r=this.layout.size;-1!=i.indexOf("%")&&(a=a/100*r.width),-1!=o.indexOf("%")&&(s=s/100*r.height),a=isNaN(a)?0:a,s=isNaN(s)?0:s,a-=t?r.paddingLeft:r.paddingRight,s-=n?r.paddingTop:r.paddingBottom,this.position.x=a,this.position.y=s},c.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=n?"paddingLeft":"paddingRight",a=n?"left":"right",s=n?"right":"left",r=this.position.x+e[o];t[a]=this.getXValue(r),t[s]="";var l=i?"paddingTop":"paddingBottom",c=i?"top":"bottom",d=i?"bottom":"top",u=this.position.y+e[l];t[c]=this.getYValue(u),t[d]="",this.css(t),this.emitEvent("layout",[this])},c.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},c.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},c._transitionTo=function(e,t){this.getPosition();var n=this.position.x,i=this.position.y,o=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),o&&!this.isTransitioning)return void this.layoutPosition();var a=e-n,s=t-i,r={};r.transform=this.getTranslate(a,s),this.transition({to:r,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},c.getTranslate=function(e,t){var n=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop");return e=n?e:-e,t=i?t:-t,"translate3d("+e+"px, "+t+"px, 0)"},c.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},c._nonTransition=function(e){this.css(e.to),e.isCleaning&&this._removeStyles(e.to);for(var t in e.onTransitionEnd)e.onTransitionEnd[t].call(this)},c.transition=function(e){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(e);var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0};var d="opacity,"+function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}(s);c.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:d,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1)}},c.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},c.onotransitionend=function(e){this.ontransitionend(e)};var u={"-webkit-transform":"transform"};c.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,i=u[e.propertyName]||e.propertyName;if(delete t.ingProperties[i],n(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[i]),i in t.onEnd){t.onEnd[i].call(this),delete t.onEnd[i]}this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},c._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var h={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(h)},c.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){return a&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},c.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i}),function(e,n){"use strict";i=[a,l,p,g],v=function(t,i,o,a){return n(e,t,i,o,a)}.apply(t,i)}(window,function(e,t,n,i,o){"use strict";function a(e,t){var n=i.getQueryElement(e);if(!n)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(n||e)));this.element=n,c&&(this.$element=c(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(t);var o=++u;this.element.outlayerGUID=o,h[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}function s(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}function r(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],i=t&&t[2];return n.length?(n=parseFloat(n))*(p[i]||1):0}var l=e.console,c=e.jQuery,d=function(){},u=0,h={};a.namespace="outlayer",a.Item=o,a.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=a.prototype;i.extend(f,t.prototype),f.option=function(e){i.extend(this.options,e)},f._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},a.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,i=[],o=0;o<t.length;o++){var a=t[o],s=new n(a,this);i.push(s)}return i},f._filterFindItemElements=function(e){return i.filterFindElements(e,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(e){return e.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(e,t){var i,o=this.options[e];o?("string"==typeof o?i=this.element.querySelector(o):o instanceof HTMLElement&&(i=o),this[e]=i?n(i)[t]:o):this[e]=0},f.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},f._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},f._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach(function(e){var i=this._getItemLayoutPosition(e);i.item=e,i.isInstant=t||e.isLayoutInstant,n.push(i)},this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},f.updateStagger=function(){var e=this.options.stagger;return null===e||void 0===e?void(this.stagger=0):(this.stagger=r(e),this.stagger)},f._positionItem=function(e,t,n,i,o){i?e.goTo(t,n):(e.stagger(o*this.stagger),e.moveTo(t,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},f._emitCompleteOnItems=function(e,t){function n(){o.dispatchEvent(e+"Complete",null,[t])}function i(){++s==a&&n()}var o=this,a=t.length;if(!t||!a)return void n();var s=0;t.forEach(function(t){t.once(e,i)})},f.dispatchEvent=function(e,t,n){var i=t?[t].concat(n):n;if(this.emitEvent(e,i),c)if(this.$element=this.$element||c(this.element),t){var o=c.Event(t);o.type=e,this.$element.trigger(o,n)}else this.$element.trigger(e,n)},f.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},f.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},f.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},f.unstamp=function(e){(e=this._find(e))&&e.forEach(function(e){i.removeFrom(this.stamps,e),this.unignore(e)},this)},f._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=i.makeArray(e)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(e){var t=e.getBoundingClientRect(),i=this._boundingRect,o=n(e);return{left:t.left-i.left-o.marginLeft,top:t.top-i.top-o.marginTop,right:i.right-t.right-o.marginRight,bottom:i.bottom-t.bottom-o.marginBottom}},f.handleEvent=i.handleEvent,f.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},i.debounceMethod(a,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},f.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},f.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,n){e.stagger(n*t),e.reveal()})}},f.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,n){e.stagger(n*t),e.hide()})}},f.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},f.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},f.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},f.getItems=function(e){e=i.makeArray(e);var t=[];return e.forEach(function(e){var n=this.getItem(e);n&&t.push(n)},this),t},f.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(e){e.remove(),i.removeFrom(this.items,e)},this)},f.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach(function(e){e.destroy()}),this.unbindResize();var t=this.element.outlayerGUID;delete h[t],delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},a.data=function(e){e=i.getQueryElement(e);var t=e&&e.outlayerGUID;return t&&h[t]},a.create=function(e,t){var n=s(a);return n.defaults=i.extend({},a.defaults),i.extend(n.defaults,t),n.compatOptions=i.extend({},a.compatOptions),n.namespace=e,n.data=a.data,n.Item=s(o),i.htmlInit(n,e),c&&c.bridget&&c.bridget(e,n),n};var p={ms:1,s:1e3};return a.Item=o,a}),function(e,n){i=[v],m=n,_="function"==typeof m?m.apply(t,i):m}(window,function(e){"use strict";function t(){e.Item.apply(this,arguments)}var n=t.prototype=Object.create(e.Item.prototype),i=n._create;n._create=function(){this.id=this.layout.itemGUID++,i.call(this),this.sortData={}},n.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var e=this.layout.options.getSortData,t=this.layout._sorters;for(var n in e){var i=t[n];this.sortData[n]=i(this.element,this)}}};var o=n.destroy;return n.destroy=function(){o.apply(this,arguments),this.css({display:""})},t}),function(e,n){i=[l,v],m=n,y="function"==typeof m?m.apply(t,i):m}(window,function(e,t){"use strict";function n(e){this.isotope=e,e&&(this.options=e.options[this.namespace],this.element=e.element,this.items=e.filteredItems,this.size=e.size)}var i=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(e){i[e]=function(){return t.prototype[e].apply(this.isotope,arguments)}}),i.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},i._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.getRowHeight=function(){this.getSegmentSize("row","Height")},i.getSegmentSize=function(e,t){var n=e+t,i="outer"+t;if(this._getMeasurement(n,i),!this[n]){var o=this.getFirstItemSize();this[n]=o&&o[i]||this.isotope.size["inner"+t]}},i.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},i.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(e,t){function o(){n.apply(this,arguments)}return o.prototype=Object.create(i),o.prototype.constructor=o,t&&(o.options=t),o.prototype.namespace=e,n.modes[e]=o,o},n}),function(e,n){i=[v,l],m=n,w="function"==typeof m?m.apply(t,i):m}(window,function(e,t){var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var i=n.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,a=o/i,s=i-o%i,r=s&&s<1?"round":"floor";a=Math[r](a),this.cols=Math.max(a,1)},i.getContainerWidth=function(){var e=this._getOption("fitWidth"),n=e?this.element.parentNode:this.element,i=t(n);this.containerWidth=i&&i.innerWidth},i._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=t&&t<1?"round":"ceil",i=Math[n](e.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",a=this[o](i,e),s={x:this.columnWidth*a.col,y:a.y},r=a.y+e.size.outerHeight,l=i+a.col,c=a.col;c<l;c++)this.colYs[c]=r;return s},i._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},i._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,i=0;i<n;i++)t[i]=this._getColGroupY(i,e);return t},i._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},i._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var i=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=i?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},i._manageStamp=function(e){var n=t(e),i=this._getElementOffset(e),o=this._getOption("originLeft"),a=o?i.left:i.right,s=a+n.outerWidth,r=Math.floor(a/this.columnWidth);r=Math.max(0,r);var l=Math.floor(s/this.columnWidth);l-=s%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var c=this._getOption("originTop"),d=(c?i.top:i.bottom)+n.outerHeight,u=r;u<=l;u++)this.colYs[u]=Math.max(d,this.colYs[u])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},i._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n}),function(e,n){i=[y,w],m=n,b="function"==typeof m?m.apply(t,i):m}(window,function(e,t){"use strict";var n=e.create("masonry"),i=n.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var a in t.prototype)o[a]||(i[a]=t.prototype[a]);var s=i.measureColumns;i.measureColumns=function(){this.items=this.isotope.filteredItems,s.call(this)};var r=i._getOption;return i._getOption=function(e){return"fitWidth"==e?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:r.apply(this.isotope,arguments)},n}),function(e,n){i=[y],m=n,j="function"==typeof m?m.apply(t,i):m}(window,function(e){"use strict";var t=e.create("fitRows"),n=t.prototype;return n._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},n._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth+this.gutter,n=this.isotope.size.innerWidth+this.gutter;0!==this.x&&t+this.x>n&&(this.x=0,this.y=this.maxY);var i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight),this.x+=t,i},n._getContainerSize=function(){return{height:this.maxY}},t}),function(e,n){i=[y],m=n,x="function"==typeof m?m.apply(t,i):m}(window,function(e){"use strict";var t=e.create("vertical",{horizontalAlignment:0}),n=t.prototype;return n._resetLayout=function(){this.y=0},n._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment,n=this.y;return this.y+=e.size.outerHeight,{x:t,y:n}},n._getContainerSize=function(){return{height:this.y}},t}),function(n,a){i=[v,l,u,p,_,y,b,j,x],void 0!==(o=function(e,t,i,o,s,r){return a(n,e,t,i,o,s,r)}.apply(t,i))&&(e.exports=o)}(window,function(e,t,n,i,o,a,s){function r(e,t){return function(n,i){for(var o=0;o<e.length;o++){var a=e[o],s=n.sortData[a],r=i.sortData[a];if(s>r||s<r){var l=void 0!==t[a]?t[a]:t,c=l?1:-1;return(s>r?1:-1)*c}}return 0}}var l=e.jQuery,c=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},d=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=a,d.LayoutMode=s;var u=d.prototype;u._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var e in s.modes)this._initLayoutMode(e)},u.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},u._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),n=0;n<e.length;n++){e[n].id=this.itemGUID++}return this._updateItemsSortData(e),e},u._initLayoutMode=function(e){var t=s.modes[e],n=this.options[e]||{};this.options[e]=t.options?o.extend(t.options,n):n,this.modes[e]=new t(this)},u.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},u._layout=function(){var e=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,e),this._isLayoutInited=!0},u.arrange=function(e){this.option(e),this._getIsInstant();var t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},u._init=u.arrange,u._hideReveal=function(e){this.reveal(e.needReveal),this.hide(e.needHide)},u._getIsInstant=function(){var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;return this._isInstant=t,t},u._bindArrangeComplete=function(){function e(){t&&n&&i&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}var t,n,i,o=this;this.once("layoutComplete",function(){t=!0,e()}),this.once("hideComplete",function(){n=!0,e()}),this.once("revealComplete",function(){i=!0,e()})},u._filter=function(e){var t=this.options.filter;t=t||"*";for(var n=[],i=[],o=[],a=this._getFilterTest(t),s=0;s<e.length;s++){var r=e[s];if(!r.isIgnored){var l=a(r);l&&n.push(r),l&&r.isHidden?i.push(r):l||r.isHidden||o.push(r)}}return{matches:n,needReveal:i,needHide:o}},u._getFilterTest=function(e){return l&&this.options.isJQueryFiltering?function(t){return l(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return i(t.element,e)}},u.updateSortData=function(e){var t;e?(e=o.makeArray(e),t=this.getItems(e)):t=this.items,this._getSorters(),this._updateItemsSortData(t)},u._getSorters=function(){var e=this.options.getSortData;for(var t in e){var n=e[t];this._sorters[t]=h(n)}},u._updateItemsSortData=function(e){for(var t=e&&e.length,n=0;t&&n<t;n++){e[n].updateSortData()}};var h=function(){function e(e){if("string"!=typeof e)return e;var n=c(e).split(" "),i=n[0],o=i.match(/^\[(.+)\]$/),a=o&&o[1],s=t(a,i),r=d.sortDataParsers[n[1]];return e=r?function(e){return e&&r(s(e))}:function(e){return e&&s(e)}}function t(e,t){return e?function(t){return t.getAttribute(e)}:function(e){var n=e.querySelector(t);return n&&n.textContent}}return e}();d.sortDataParsers={parseInt:function(e){return parseInt(e,10)},parseFloat:function(e){return parseFloat(e)}},u._sort=function(){if(this.options.sortBy){var e=o.makeArray(this.options.sortBy);this._getIsSameSortBy(e)||(this.sortHistory=e.concat(this.sortHistory));var t=r(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(t)}},u._getIsSameSortBy=function(e){for(var t=0;t<e.length;t++)if(e[t]!=this.sortHistory[t])return!1;return!0},u._mode=function(){var e=this.options.layoutMode,t=this.modes[e];if(!t)throw new Error("No layout mode: "+e);return t.options=this.options[e],t},u._resetLayout=function(){t.prototype._resetLayout.call(this),this._mode()._resetLayout()},u._getItemLayoutPosition=function(e){return this._mode()._getItemLayoutPosition(e)},u._manageStamp=function(e){this._mode()._manageStamp(e)},u._getContainerSize=function(){return this._mode()._getContainerSize()},u.needsResizeLayout=function(){return this._mode().needsResizeLayout()},u.appended=function(e){var t=this.addItems(e);if(t.length){var n=this._filterRevealAdded(t);this.filteredItems=this.filteredItems.concat(n)}},u.prepended=function(e){var t=this._itemize(e);if(t.length){this._resetLayout(),this._manageStamps();var n=this._filterRevealAdded(t);this.layoutItems(this.filteredItems),this.filteredItems=n.concat(this.filteredItems),this.items=t.concat(this.items)}},u._filterRevealAdded=function(e){var t=this._filter(e);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},u.insert=function(e){var t=this.addItems(e);if(t.length){var n,i,o=t.length;for(n=0;n<o;n++)i=t[n],this.element.appendChild(i.element);var a=this._filter(t).matches;for(n=0;n<o;n++)t[n].isLayoutInstant=!0;for(this.arrange(),n=0;n<o;n++)delete t[n].isLayoutInstant;this.reveal(a)}};var f=u.remove;return u.remove=function(e){e=o.makeArray(e);var t=this.getItems(e);f.call(this,e);for(var n=t&&t.length,i=0;n&&i<n;i++){var a=t[i];o.removeFrom(this.filteredItems,a)}},u.shuffle=function(){for(var e=0;e<this.items.length;e++){this.items[e].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},u._noTransition=function(e,t){var n=this.options.transitionDuration;this.options.transitionDuration=0;var i=e.apply(this,t);return this.options.transitionDuration=n,i},u.getFilteredItemElements=function(){return this.filteredItems.map(function(e){return e.element})},d})},function(e,t){!function(t,n){var i=function(e,t){"use strict";if(t.getElementsByClassName){var n,i=t.documentElement,o=e.Date,a=e.HTMLPictureElement,s=e.addEventListener,r=e.setTimeout,l=e.requestAnimationFrame||r,c=e.requestIdleCallback,d=/^picture$/i,u=["load","error","lazyincluded","_lazyloaded"],h={},f=Array.prototype.forEach,p=function(e,t){return h[t]||(h[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),h[t].test(e.getAttribute("class")||"")&&h[t]},m=function(e,t){p(e,t)||e.setAttribute("class",(e.getAttribute("class")||"").trim()+" "+t)},g=function(e,t){var n;(n=p(e,t))&&e.setAttribute("class",(e.getAttribute("class")||"").replace(n," "))},v=function(e,t,n){var i=n?"addEventListener":"removeEventListener";n&&v(e,t),u.forEach(function(n){e[i](n,t)})},_=function(e,n,i,o,a){var s=t.createEvent("CustomEvent");return s.initCustomEvent(n,!o,!a,i||{}),e.dispatchEvent(s),s},y=function(t,i){var o;!a&&(o=e.picturefill||n.pf)?o({reevaluate:!0,elements:[t]}):i&&i.src&&(t.src=i.src)},w=function(e,t){return(getComputedStyle(e,null)||{})[t]},b=function(e,t,i){for(i=i||e.offsetWidth;i<n.minSize&&t&&!e._lazysizesWidth;)i=t.offsetWidth,t=t.parentNode;return i},j=function(){var e,n,i=[],o=[],a=function(){var t=i;for(i=o,e=!0,n=!1;t.length;)t.shift()();e=!1},s=function(o,s){e&&!s?o.apply(this,arguments):(i.push(o),n||(n=!0,(t.hidden?r:l)(a)))};return s._lsFlush=a,s}(),x=function(e,t){return t?function(){j(e)}:function(){var t=this,n=arguments;j(function(){e.apply(t,n)})}},C=function(e){var t,n=0,i=66,a=function(){t=!1,n=o.now(),e()},s=c?function(){c(a,{timeout:i}),66!==i&&(i=66)}:x(function(){r(a)},!0);return function(e){var a;(e=!0===e)&&(i=44),t||(t=!0,a=125-(o.now()-n),a<0&&(a=0),e||a<9&&c?s():r(s,a))}},k=function(e){var t,n,i=function(){t=null,e()},a=function(){var e=o.now()-n;e<99?r(a,99-e):(c||i)(i)};return function(){n=o.now(),t||(t=r(a,99))}},T=function(){function a(e){return!!e.complete&&(void 0===e.naturalWidth||0!==e.naturalWidth)}var l,c,u,h,b,T,z,E,I,L,B,A,M,P,D,O,H=/^img$/i,N=/^iframe$/i,W="onscroll"in e&&!/glebot/.test(navigator.userAgent),q=0,R=0,F=-1,$=function(e){R--,e&&e.target&&v(e.target,$),(!e||R<0||!e.target)&&(R=0)},Y=function(e,n){var o,a=e,s="hidden"==w(t.body,"visibility")||"hidden"!=w(e,"visibility");for(L-=n,M+=n,B-=n,A+=n;s&&(a=a.offsetParent)&&a!=t.body&&a!=i;)(s=(w(a,"opacity")||1)>0)&&"visible"!=w(a,"overflow")&&(o=a.getBoundingClientRect(),s=A>o.left&&B<o.right&&M>o.top-1&&L<o.bottom+1);return s},Q=function(){var e,o,a,s,r,d,h,f,p;if((b=n.loadMode)&&R<8&&(e=l.length)){o=0,F++,null==D&&("expand"in n||(n.expand=i.clientHeight>500&&i.clientWidth>500?500:370),P=n.expand,D=P*n.expFactor),q<D&&R<1&&F>2&&b>2&&!t.hidden?(q=D,F=0):q=b>1&&F>1&&R<6?P:0;for(;o<e;o++)if(l[o]&&!l[o]._lazyRace)if(W)if((f=l[o].getAttribute("data-expand"))&&(d=1*f)||(d=q),p!==d&&(E=innerWidth+d*O,I=innerHeight+d,h=-1*d,p=d),a=l[o].getBoundingClientRect(),(M=a.bottom)>=h&&(L=a.top)<=I&&(A=a.right)>=h*O&&(B=a.left)<=E&&(M||A||B||L)&&(u&&R<3&&!f&&(b<3||F<4)||Y(l[o],d))){if(ee(l[o]),r=!0,R>9)break}else!r&&u&&!s&&R<4&&F<4&&b>2&&(c[0]||n.preloadAfterLoad)&&(c[0]||!f&&(M||A||B||L||"auto"!=l[o].getAttribute(n.sizesAttr)))&&(s=c[0]||l[o]);else ee(l[o]);s&&!r&&ee(s)}G()},U=C(Q),X=function(e){m(e,n.loadedClass),g(e,n.loadingClass),g(e,n.afterLoadedClass)},V=function(e){m(e.target,n.afterLoadedClass),G()},G=function(){if(z.length>0)for(var e,t,i=n.animateExpand,o=0,a=0;a<z.length;a++){var s=z[a],r=s.getAttribute("data-animate");r&&(i=r),e=z[a].getBoundingClientRect(),t!==i&&(E=innerWidth+i*O,I=innerHeight+i,o=-1*i,t=i),(M=e.bottom)>=o&&(L=e.top)<=I&&(A=e.right)>=o*O&&(B=e.left)<=E&&(M||A||B||L)&&p(s,n.afterLoadedClass)&&X(s)}},Z=function(e,t){try{e.contentWindow.location.replace(t)}catch(n){e.src=t}},J=function(e){var t,i,o=e.getAttribute(n.srcsetAttr);(t=n.customMedia[e.getAttribute("data-media")||e.getAttribute("media")])&&e.setAttribute("media",t),o&&e.setAttribute("srcset",o),t&&(i=e.parentNode,i.insertBefore(e.cloneNode(),e),i.removeChild(e))},K=x(function(e,t,i,o,s){var l,c,u,p,w,b;(w=_(e,"lazybeforeunveil",t)).defaultPrevented||(o&&(i?m(e,n.autosizesClass):e.setAttribute("sizes",o)),c=e.getAttribute(n.srcsetAttr),l=e.getAttribute(n.srcAttr),s&&(u=e.parentNode,p=u&&d.test(u.nodeName||"")),b=t.firesLoad||"src"in e&&(c||l||p),w={target:e},b&&(v(e,$,!0),clearTimeout(h),h=r($,2500),m(e,n.loadingClass),v(e,V,!0)),p&&f.call(u.getElementsByTagName("source"),J),c?e.setAttribute("srcset",c):l&&!p&&(N.test(e.nodeName)?Z(e,l):e.src=l),(c||p)&&y(e,{src:l})),e._lazyRace&&delete e._lazyRace,g(e,n.lazyClass),j(function(){b&&!a(e)||(b?$(w):R--)},!0)}),ee=function(e){var t,i=H.test(e.nodeName),o=i&&(e.getAttribute(n.sizesAttr)||e.getAttribute("sizes")),a="auto"==o;(!a&&u||!i||!e.src&&!e.srcset||e.complete||p(e,n.errorClass))&&(t=_(e,"lazyunveilread").detail,a&&S.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,R++,K(e,t,a,o,i))},te=function(){if(!u){if(o.now()-T<999)return void r(te,999);var e=k(function(){n.loadMode=3,U()});u=!0,n.loadMode=3,U(),s("scroll",function(){3==n.loadMode&&(n.loadMode=2),e()},!0)}};return{_:function(){T=o.now(),l=t.getElementsByClassName(n.lazyClass),z=t.getElementsByClassName(n.afterLoadedClass),c=t.getElementsByClassName(n.lazyClass+" "+n.preloadClass),O=n.hFac,s("scroll",U,!0),s("resize",U,!0),e.MutationObserver?new MutationObserver(U).observe(i,{childList:!0,subtree:!0,attributes:!0}):(i.addEventListener("DOMNodeInserted",U,!0),i.addEventListener("DOMAttrModified",U,!0),setInterval(U,999)),s("hashchange",U,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){t.addEventListener(e,U,!0)}),/d$|^c/.test(t.readyState)?te():(s("load",te),t.addEventListener("DOMContentLoaded",U),r(te,2e4)),l.length?(Q(),j._lsFlush()):U()},checkElems:U,unveil:ee}}(),S=function(){var e,i=x(function(e,t,n,i){var o,a,s;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),d.test(t.nodeName||""))for(o=t.getElementsByTagName("source"),a=0,s=o.length;a<s;a++)o[a].setAttribute("sizes",i);n.detail.dataAttr||y(e,n.detail)}),o=function(e,t,n){var o,a=e.parentNode;a&&(n=b(e,a,n),o=_(e,"lazybeforesizes",{width:n,dataAttr:!!t}),o.defaultPrevented||(n=o.detail.width)&&n!==e._lazysizesWidth&&i(e,a,o,n))},a=function(){var t,n=e.length;if(n)for(t=0;t<n;t++)o(e[t])},r=k(a);return{_:function(){e=t.getElementsByClassName(n.autosizesClass),s("resize",r)},checkElems:r,updateElem:o}}(),z=function(){z.i||(z.i=!0,S._(),T._())};return function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",afterLoadedClass:"afterloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,animateExpand:0};n=e.lazySizesConfig||e.lazysizesConfig||{};for(t in i)t in n||(n[t]=i[t]);e.lazySizesConfig=n,r(function(){n.init&&z()})}(),{cfg:n,autoSizer:S,loader:T,init:z,uP:y,aC:m,rC:g,hC:p,fire:_,gW:b,rAF:j}}}(t,t.document);t.lazySizes=i,"object"==typeof e&&e.exports&&(e.exports=i)}(window)},function(e,t,n){!function(t,i){"use strict";var o=function(){i(t.lazySizes),t.removeEventListener("lazyunveilread",o,!0)};i=i.bind(null,t,t.document),"object"==typeof e&&e.exports?i(n(5)):t.lazySizes?o():t.addEventListener("lazyunveilread",o,!0)}(window,function(e,t,n){"use strict";if(e.addEventListener){var i=/\s+/g,o=/\s*\|\s+|\s+\|\s*/g,a=/^(.+?)(?:\s+\[\s*(.+?)\s*\])?$/,s=/\(|\)|'/,r={contain:1,cover:1},l=function(e){var t=n.gW(e,e.parentNode);return(!e._lazysizesWidth||t>e._lazysizesWidth)&&(e._lazysizesWidth=t),e._lazysizesWidth},c=function(e){var t;return t=(getComputedStyle(e)||{getPropertyValue:function(){}}).getPropertyValue("background-size"),!r[t]&&r[e.style.backgroundSize]&&(t=e.style.backgroundSize),t},d=function(e,n,s){var r=t.createElement("picture"),l=n.getAttribute(lazySizesConfig.sizesAttr),c=n.getAttribute("data-ratio"),d=n.getAttribute("data-optimumx");n._lazybgset&&n._lazybgset.parentNode==n&&n.removeChild(n._lazybgset),Object.defineProperty(s,"_lazybgset",{value:n,writable:!0}),Object.defineProperty(n,"_lazybgset",{value:r,writable:!0}),e=e.replace(i," ").split(o),r.style.display="none",s.className=lazySizesConfig.lazyClass,1!=e.length||l||(l="auto"),e.forEach(function(e){var n=t.createElement("source");l&&"auto"!=l&&n.setAttribute("sizes",l),e.match(a)&&(n.setAttribute(lazySizesConfig.srcsetAttr,RegExp.$1),RegExp.$2&&n.setAttribute("media",lazySizesConfig.customMedia[RegExp.$2]||RegExp.$2)),r.appendChild(n)}),l&&(s.setAttribute(lazySizesConfig.sizesAttr,l),n.removeAttribute(lazySizesConfig.sizesAttr),n.removeAttribute("sizes")),d&&s.setAttribute("data-optimumx",d),c&&s.setAttribute("data-ratio",c),r.appendChild(s),n.appendChild(r)},u=function(e){if(e.target._lazybgset){var t=e.target,i=t._lazybgset,o=t.currentSrc||t.src;o&&(i.style.backgroundImage="url("+(s.test(o)?JSON.stringify(o):o)+")"),t._lazybgsetLoading&&(n.fire(i,"_lazyloaded",{},!1,!0),delete t._lazybgsetLoading)}};addEventListener("lazybeforeunveil",function(e){var i,o,a;!e.defaultPrevented&&(i=e.target.getAttribute("data-bgset"))&&(a=e.target,o=t.createElement("img"),o.alt="",o._lazybgsetLoading=!0,e.detail.firesLoad=!0,d(i,a,o),setTimeout(function(){n.loader.unveil(o),n.rAF(function(){n.fire(o,"_lazyloaded",{},!0,!0),o.complete&&u({target:o})})}))}),t.addEventListener("load",u,!0),e.addEventListener("lazybeforesizes",function(e){if(e.detail.instance==n&&e.target._lazybgset&&e.detail.dataAttr){var t=e.target._lazybgset,i=c(t);r[i]&&(e.target._lazysizesParentFit=i,n.rAF(function(){e.target.setAttribute("data-parent-fit",i),e.target._lazysizesParentFit&&delete e.target._lazysizesParentFit}))}},!0),t.documentElement.addEventListener("lazybeforesizes",function(e){!e.defaultPrevented&&e.target._lazybgset&&e.detail.instance==n&&(e.detail.width=l(e.target._lazybgset))})}})},function(e,t){e.exports=lazySizes},function(e,t){!function(){"use strict";window.jnews=window.jnews||{},window.jnews.tns=window.jnews.tns||{};var e=function(){function e(){for(var e,t,n,i=arguments[0]||{},o=1,a=arguments.length;o<a;o++)if(null!==(e=arguments[o]))for(t in e)n=e[t],i!==n&&void 0!==n&&(i[t]=n);return i}function t(e){return["true","false"].indexOf(e)>=0?JSON.parse(e):e}function n(e,t,n,i){if(i)try{e.setItem(t,n)}catch(e){}return n}function i(){var e=window.tnsId;return window.tnsId=e?e+1:1,"tns"+window.tnsId}function o(){var e=document,t=e.body;return t||(t=e.createElement("body"),t.fake=!0),t}function a(e){var t="";return e.fake&&(t=O.style.overflow,e.style.background="",e.style.overflow=O.style.overflow="hidden",O.appendChild(e)),t}function s(e,t){e.fake&&(e.remove(),O.style.overflow=t,O.offsetHeight)}function r(){var e=document,t=o(),n=a(t),i=e.createElement("div"),r=!1;t.appendChild(i);try{for(var l,c="(10px * 10)",d=["calc"+c,"-moz-calc"+c,"-webkit-calc"+c],u=0;u<3;u++)if(l=d[u],i.style.width=l,100===i.offsetWidth){r=l.replace(c,"");break}}catch(e){}return t.fake?s(t,n):i.remove(),r}function l(){var e=document,t=o(),n=a(t),i=e.createElement("div"),r=e.createElement("div"),l="",c=!1;i.className="tns-t-subp2",r.className="tns-t-ct";for(var d=0;d<70;d++)l+="<div></div>";return r.innerHTML=l,i.appendChild(r),t.appendChild(i),c=Math.abs(i.getBoundingClientRect().left-r.children[67].getBoundingClientRect().left)<2,t.fake?s(t,n):i.remove(),c}function c(){if(window.matchMedia||window.msMatchMedia)return!0;var e,t=document,n=o(),i=a(n),r=t.createElement("div"),l=t.createElement("style"),c="@media all and (min-width:1px){.tns-mq-test{position:absolute}}";return l.type="text/css",r.className="tns-mq-test",n.appendChild(l),n.appendChild(r),l.styleSheet?l.styleSheet.cssText=c:l.appendChild(t.createTextNode(c)),e=window.getComputedStyle?window.getComputedStyle(r).position:r.currentStyle.position,n.fake?s(n,i):r.remove(),"absolute"===e}function d(e,t){var n=document.createElement("style");return e&&n.setAttribute("media",e),t&&n.setAttribute("nonce",t),document.querySelector("head").appendChild(n),n.sheet?n.sheet:n.styleSheet}function u(e,t,n,i){"insertRule"in e?e.insertRule(t+"{"+n+"}",i):e.addRule(t,n,i)}function h(e,t){"deleteRule"in e?e.deleteRule(t):e.removeRule(t)}function f(e){return("insertRule"in e?e.cssRules:e.rules).length}function p(e,t){return Math.atan2(e,t)*(180/Math.PI)}function m(e,t){var n=!1,i=Math.abs(90-Math.abs(e));return i>=90-t?n="horizontal":i<=t&&(n="vertical"),n}function g(e,t,n){for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i)}function v(e,t){return e.hasAttribute(t)}function _(e,t){return e.getAttribute(t)}function y(e){return void 0!==e.item}function w(e,t){if(e=y(e)||e instanceof Array?e:[e],"[object Object]"===Object.prototype.toString.call(t))for(var n=e.length;n--;)for(var i in t)e[n].setAttribute(i,t[i])}function b(e,t){e=y(e)||e instanceof Array?e:[e],t=t instanceof Array?t:[t];for(var n=t.length,i=e.length;i--;)for(var o=n;o--;)e[i].removeAttribute(t[o])}function j(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function x(e,t){"none"!==e.style.display&&(e.style.display="none")}function C(e,t){"none"===e.style.display&&(e.style.display="")}function k(e){return"none"!==window.getComputedStyle(e).display}function T(e){if("string"==typeof e){var t=[e],n=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach(function(i){"ms"===i&&"transform"!==e||t.push(i+n)}),e=t}for(var i=document.createElement("fakeelement"),o=(e.length,0);o<e.length;o++){var a=e[o];if(void 0!==i.style[a])return a}return!1}function S(e){if(!e)return!1;if(!window.getComputedStyle)return!1;var t,n=document,i=o(),r=a(i),l=n.createElement("p"),c=e.length>9?"-"+e.slice(0,-9).toLowerCase()+"-":"";return c+="transform",i.insertBefore(l,null),l.style[e]="translate3d(1px,1px,1px)",t=window.getComputedStyle(l).getPropertyValue(c),i.fake?s(i,r):l.remove(),void 0!==t&&t.length>0&&"none"!==t}function z(e,t){var n=!1;return/^Webkit/.test(e)?n="webkit"+t+"End":/^O/.test(e)?n="o"+t+"End":e&&(n=t.toLowerCase()+"end"),n}function E(e,t,n){for(var i in t){var o=["touchstart","touchmove"].indexOf(i)>=0&&!n&&$;e.addEventListener(i,t[i],o)}}function I(e,t){for(var n in t){var i=["touchstart","touchmove"].indexOf(n)>=0&&$;e.removeEventListener(n,t[n],i)}}function L(){return{topics:{},on:function(e,t){this.topics[e]=this.topics[e]||[],this.topics[e].push(t)},off:function(e,t){if(this.topics[e])for(var n=0;n<this.topics[e].length;n++)if(this.topics[e][n]===t){this.topics[e].splice(n,1);break}},emit:function(e,t){t.type=e,this.topics[e]&&this.topics[e].forEach(function(n){n(t,e)})}}}function B(e,t,n,i,o,a,s){function r(){a-=l,d+=u,e.style[t]=n+d+c+i,a>0?setTimeout(r,l):s()}var l=Math.min(a,10),c=o.indexOf("%")>=0?"%":"px",o=o.replace(c,""),d=Number(e.style[t].replace(n,"").replace(i,"").replace(c,"")),u=(o-d)/a*l;setTimeout(r,l)}var A=window,M=A.requestAnimationFrame||A.webkitRequestAnimationFrame||A.mozRequestAnimationFrame||A.msRequestAnimationFrame||function(e){return setTimeout(e,16)},P=window,D=P.cancelAnimationFrame||P.mozCancelAnimationFrame||function(e){clearTimeout(e)},O=document.documentElement,H="classList"in document.createElement("_"),N=H?function(e,t){return e.classList.contains(t)}:function(e,t){return e.className.indexOf(t)>=0},W=H?function(e,t){N(e,t)||e.classList.add(t)}:function(e,t){N(e,t)||(e.className+=" "+t)},q=H?function(e,t){N(e,t)&&e.classList.remove(t)}:function(e,t){N(e,t)&&(e.className=e.className.replace(t,""))},R=!1;try{var F=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",null,F)}catch(e){}var $=!!R&&{passive:!0};"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var Y=function(o){function a(e){for(var t in e)tn||("slideBy"===t&&(e[t]="page"),"edgePadding"===t&&(e[t]=!1),"autoHeight"===t&&(e[t]=!1)),"responsive"===t&&a(e[t])}function s(e){e&&(qn=$n=Yn=Qn=Dn=Un=Gn=Zn=!1)}function y(){for(var e=tn?ui-ni:ui;e<0;)e+=yn;return e%yn+1}function A(e){return e=e?Math.max(0,Math.min(Nn?yn-1:yn-An,e)):0,tn?e+ni:e}function P(e){for(null==e&&(e=ui),tn&&(e-=ni);e<0;)e+=yn;return Math.floor(e%yn)}function O(){var e,t=P();return e=Oi?t:Sn||Tn?Math.ceil((t+1)*oo/yn-1):Math.floor(t/An),!Nn&&tn&&ui===pi&&(e=oo-1),e}function H(){if(Tn||Sn&&!Pn)return yn-1;var e=Sn?"fixedWidth":"items",t=[];if((Sn||o[e]<yn)&&t.push(o[e]),Kt)for(var n in Kt){var i=Kt[n][e];i&&(Sn||i<yn)&&t.push(i)}return t.length||t.push(0),Math.ceil(Sn?Pn/Math.min.apply(null,t):Math.max.apply(null,t))}function R(){return At.innerWidth||Bt.documentElement.clientWidth||Bt.body.clientWidth}function F(e){return"top"===e?"afterbegin":"beforeend"}function $(e){if(null!=e){var t,n,i=Bt.createElement("div");return e.appendChild(i),t=i.getBoundingClientRect(),n=t.right-t.left,i.remove(),n||$(e.parentNode)}}function Q(){var e=zn?2*zn-En:0;return $(gn)-e}function U(e){if(o[e])return!0;if(Kt)for(var t in Kt)if(Kt[t][e])return!0;return!1}function X(e,t){if(null==t&&(t=wn),"items"===e&&Sn)return Math.floor((In+En)/(Sn+En))||1;var n=o[e];if(Kt)for(var i in Kt)t>=parseInt(i)&&e in Kt[i]&&(n=Kt[i][e]);return"slideBy"===e&&"page"===n&&(n=X("items")),tn||"slideBy"!==e&&"items"!==e||(n=Math.floor(n)),n}function V(e){return Nt?Nt+"("+100*e+"% / "+ii+")":100*e/ii+"%"}function G(e,t,n,i,o){var a="";if(void 0!==e){var s=e;t&&(s-=t),a=hn?"margin: 0 "+s+"px 0 "+e+"px;":"margin: "+e+"px 0 "+s+"px 0;"}else if(t&&!n){var r="-"+t+"px",l=hn?r+" 0 0":"0 "+r+" 0";a="margin: 0 "+l+";"}return!tn&&o&&$t&&i&&(a+=te(i)),a}function Z(e,t,n){return e?(e+t)*ii+"px":Nt?Nt+"("+100*ii+"% / "+n+")":100*ii/n+"%"}function J(e,t,n){var i;if(e)i=e+t+"px";else{tn||(n=Math.floor(n));var o=tn?ii:n;i=Nt?Nt+"(100% / "+o+")":100/o+"%"}return i="width:"+i,"inner"!==en?i+";":i+" !important;"}function K(e){var t="";if(!1!==e){t=(hn?"padding-":"margin-")+(hn?"right":"bottom")+": "+e+"px;"}return t}function ee(e,t){var n=e.substring(0,e.length-t).toLowerCase();return n&&(n="-"+n+"-"),n}function te(e){return ee($t,18)+"transition-duration:"+e/1e3+"s;"}function ne(e){return ee(Qt,17)+"animation-duration:"+e/1e3+"s;"}function ie(){if(U("autoHeight")||Tn||!hn){var e=mn.querySelectorAll("img");g(e,function(e){var t=e.src;Kn||(t&&t.indexOf("data:image")<0?(e.src="",E(e,Yi),W(e,"loading"),e.src=t):ke(e))}),M(function(){Ie(j(e),function(){Cn=!0})}),U("autoHeight")&&(e=ze(ui,Math.min(ui+An-1,ii-1))),Kn?oe():M(function(){Ie(j(e),oe)})}else tn&&Ve(),se(),re()}function oe(){if(Tn&&yn>1){var e=Nn?ui:yn-1;!function t(){var n=_n[e].getBoundingClientRect().left,i=_n[(e||1)-1].getBoundingClientRect().right;Math.abs(n-i)<=1?ae():setTimeout(function(){t()},16)}()}else ae()}function ae(){hn&&!Tn||(Pe(),Tn?(ai=Ue(),ki&&(Ti=ue()),pi=di(),s(xi||Ti)):zt()),tn&&Ve(),se(),re()}function se(){if(De(),fn.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+we()+"</span>  of "+yn+"</div>"),kn=fn.querySelector(".tns-liveregion .current"),Hi){var e=Un?"stop":"start";yo?w(yo,{"data-action":e}):o.autoplayButtonOutput&&(fn.insertAdjacentHTML(F(o.autoplayPosition),'<button type="button" data-action="'+e+'">'+bo[0]+e+bo[1]+Vn[0]+"</button>"),yo=fn.querySelector("[data-action]")),yo&&E(yo,{click:ut}),Un&&(rt(),Gn&&E(mn,Ii),Zn&&E(mn,Li))}if(Di){if(no)w(no,{"aria-label":"Carousel Pagination"}),to=no.children,g(to,function(e,t){w(e,{"data-nav":t,tabindex:"-1","aria-label":uo+(t+1),"aria-controls":ji})});else{for(var t="",n=Oi?"":'style="display:none"',i=0;i<yn;i++)t+='<button type="button" data-nav="'+i+'" tabindex="-1" aria-controls="'+ji+'" '+n+' aria-label="'+uo+(i+1)+'"></button>';t='<div class="tns-nav" aria-label="Carousel Pagination">'+t+"</div>",fn.insertAdjacentHTML(F(o.navPosition),t),no=fn.querySelector(".tns-nav"),to=no.children}if(It(),$t){var a=$t.substring(0,$t.length-18).toLowerCase(),s="transition: all "+On/1e3+"s";a&&(s="-"+a+"-"+s),u(Jn,"[aria-controls^="+ji+"-item]",s,f(Jn))}w(to[ro],{"aria-label":uo+(ro+1)+ho}),b(to[ro],"tabindex"),W(to[ro],co),E(no,Ei)}Pi&&(Vi||Zi&&Ji||(fn.insertAdjacentHTML(F(o.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="'+ji+'">'+Rn[0]+'</button><button type="button" data-controls="next" tabindex="-1" aria-controls="'+ji+'">'+Rn[1]+"</button></div>"),Vi=fn.querySelector(".tns-controls")),Zi&&Ji||(Zi=Vi.children[0],Ji=Vi.children[1]),o.controlsContainer&&w(Vi,{"aria-label":"Carousel Navigation",tabindex:"0"}),(o.controlsContainer||o.prevButton&&o.nextButton)&&w([Zi,Ji],{"aria-controls":ji,tabindex:"-1"}),(o.controlsContainer||o.prevButton&&o.nextButton)&&(w(Zi,{"data-controls":"prev"}),w(Ji,{"data-controls":"next"})),Ui=We(Zi),Xi=We(Ji),Fe(),Vi?E(Vi,zi):(E(Zi,zi),E(Ji,zi))),fe()}function re(){if(tn&&Xt){var e={};e[Xt]=et,E(mn,e)}Yn&&E(mn,Ai,o.preventScrollOnTouch),Qn&&E(mn,Mi),Dn&&E(Bt,Bi),"inner"===en?wi.on("outerResized",function(){de(),wi.emit("innerLoaded",Lt())}):(Kt||Sn||Tn||Wn||!hn)&&E(At,{resize:ce}),Wn&&("outer"===en?wi.on("innerLoaded",Ee):xi||Ee()),je(),xi?ve():Ti&&me(),wi.on("indexChanged",Le),"inner"===en&&wi.emit("innerLoaded",Lt()),"function"==typeof yi&&yi(Lt()),bn=!0}function le(){if(Jn.disabled=!0,Jn.ownerNode&&Jn.ownerNode.remove(),I(At,{resize:ce}),Dn&&I(Bt,Bi),Vi&&I(Vi,zi),no&&I(no,Ei),I(mn,Ii),I(mn,Li),yo&&I(yo,{click:ut}),Un&&clearInterval(fo),tn&&Xt){var e={};e[Xt]=et,I(mn,e)}Yn&&I(mn,Ai),Qn&&I(mn,Mi);var t=[vn,Gi,Ki,eo,io,wo];Zt.forEach(function(e,n){var i="container"===e?fn:o[e];if("object"==typeof i&&i){var a=!!i.previousElementSibling&&i.previousElementSibling,s=i.parentNode;i.outerHTML=t[n],o[e]=a?a.nextElementSibling:s.firstElementChild}}),Zt=sn=rn=ln=cn=hn=fn=pn=mn=gn=vn=_n=yn=un=wn=Tn=Sn=zn=En=In=An=Mn=Pn=Dn=On=Hn=Nn=Wn=Jn=Kn=jn=ti=ni=ii=oi=ai=si=ri=li=ci=di=ui=hi=fi=pi=xn=gi=vi=_i=yi=wi=bi=ji=xi=Ci=ki=Ti=Si=zi=Ei=Ii=Li=Bi=Ai=Mi=Pi=Di=Oi=Hi=Ni=Wi=qi=Ri=$i=Yi=Cn=qn=Rn=Vi=Gi=Zi=Ji=Ui=Xi=$n=no=io=to=oo=ao=so=ro=lo=co=uo=ho=Un=Xn=_o=Vn=Gn=yo=wo=Zn=bo=fo=po=mo=go=vo=To=So=jo=xo=Co=zo=ko=Eo=Yn=Qn=null;for(var n in this)"rebuild"!==n&&(this[n]=null);bn=!1}function ce(e){M(function(){de(yt(e))})}function de(e){if(bn){"outer"===en&&wi.emit("outerResized",Lt(e)),wn=R();var t,n=un,i=!1;Kt&&(he(),(t=n!==un)&&wi.emit("newBreakpointStart",Lt(e)));var a,r,l=An,c=xi,d=Ti,p=Dn,m=qn,g=$n,v=Yn,_=Qn,y=Un,w=Gn,b=Zn,j=ui;if(t){var k=Sn,T=Wn,S=Rn,z=Ln,L=Bn,B=Vn;if(!qt)var M=En,P=zn}if(Dn=X("arrowKeys"),qn=X("controls"),$n=X("nav"),Yn=X("touch"),Ln=X("center"),Bn=X("centerSlideCount"),Qn=X("mouseDrag"),Un=X("autoplay"),Gn=X("autoplayHoverPause"),Zn=X("autoplayResetOnVisibility"),t&&(xi=X("disable"),Sn=X("fixedWidth"),On=X("speed"),Wn=X("autoHeight"),Rn=X("controlsText"),Vn=X("autoplayText"),Xn=X("autoplayTimeout"),qt||(zn=X("edgePadding"),En=X("gutter"))),s(xi),In=Q(),hn&&!Tn||xi||(Pe(),hn||(zt(),i=!0)),(Sn||Tn)&&(ai=Ue(),pi=di()),(t||Sn)&&(An=X("items"),Mn=X("slideBy"),(r=An!==l)&&(Sn||Tn||(pi=di()),Io())),t&&xi!==c&&(xi?ve():_e()),ki&&(t||Sn||Tn)&&(Ti=ue())!==d&&(Ti?(Ge(Xe(A(0))),me()):(ge(),i=!0)),s(xi||Ti),Un||(Gn=Zn=!1),Dn!==p&&(Dn?E(Bt,Bi):I(Bt,Bi)),qn!==m&&(qn?Vi?C(Vi):(Zi&&C(Zi),Ji&&C(Ji)):Vi?x(Vi):(Zi&&x(Zi),Ji&&x(Ji))),$n!==g&&($n?(C(no),It()):x(no)),Yn!==v&&(Yn?E(mn,Ai,o.preventScrollOnTouch):I(mn,Ai)),Qn!==_&&(Qn?E(mn,Mi):I(mn,Mi)),Un!==y&&(Un?(yo&&C(yo),po||go||rt()):(yo&&x(yo),po&&lt())),Gn!==w&&(Gn?E(mn,Ii):I(mn,Ii)),Zn!==b&&(Zn?E(Bt,Li):I(Bt,Li)),t){if(Sn===k&&Ln===z&&Bn===L||(i=!0),Wn!==T&&(Wn||(pn.style.height="")),qn&&Rn!==S&&(Zi.innerHTML=Rn[0],Ji.innerHTML=Rn[1]),yo&&Vn!==B){var D=Un?1:0,O=yo.innerHTML,H=O.length-B[D].length;O.substring(H)===B[D]&&(yo.innerHTML=O.substring(0,H)+Vn[D])}}else Ln&&(Sn||Tn)&&(i=!0);if((r||Sn&&!Tn)&&(oo=Et(),It()),a=ui!==j,a?(wi.emit("indexChanged",Lt()),i=!0):r?a||Le():(Sn||Tn)&&(je(),De(),ye()),r&&!tn&&Oe(),!xi&&!Ti){if(t&&!qt&&(zn===P&&En===M||(pn.style.cssText=G(zn,En,Sn,On,Wn)),hn)){tn&&(mn.style.width=Z(Sn,En,An));var N=J(Sn,En,An)+K(En);h(Jn,f(Jn)-1),u(Jn,"#"+ji+" > .tns-item",N,f(Jn))}Wn&&Ee(),i&&(Ve(),hi=ui)}t&&wi.emit("newBreakpointEnd",Lt(e))}}function ue(){if(!Sn&&!Tn){return yn<=(Ln?An-(An-1)/2:An)}var e=Sn?(Sn+En)*yn:jn[yn],t=zn?In+2*zn:In+En;return Ln&&(t-=Sn?(In-Sn)/2:(In-(jn[ui+1]-jn[ui]-En))/2),e<=t}function he(){un=0;for(var e in Kt)e=parseInt(e),wn>=e&&(un=e)}function fe(){!Un&&yo&&x(yo),!$n&&no&&x(no),qn||(Vi?x(Vi):(Zi&&x(Zi),Ji&&x(Ji)))}function pe(){Un&&yo&&C(yo),$n&&no&&C(no),qn&&(Vi?C(Vi):(Zi&&C(Zi),Ji&&C(Ji)))}function me(){if(!Si){if(zn&&(pn.style.margin="0px"),ni)for(var e="tns-transparent",t=ni;t--;)tn&&W(_n[t],e),W(_n[ii-t-1],e);fe(),Si=!0}}function ge(){if(Si){if(zn&&qt&&(pn.style.margin=""),ni)for(var e="tns-transparent",t=ni;t--;)tn&&q(_n[t],e),q(_n[ii-t-1],e);pe(),Si=!1}}function ve(){if(!Ci){if(Jn.disabled=!0,mn.className=mn.className.replace(bi.substring(1),""),b(mn,["style"]),Nn)for(var e=ni;e--;)tn&&x(_n[e]),x(_n[ii-e-1]);if(hn&&tn||b(pn,["style"]),!tn)for(var t=ui,n=ui+yn;t<n;t++){var i=_n[t];b(i,["style"]),q(i,sn),q(i,cn)}fe(),Ci=!0}}function _e(){if(Ci){if(Jn.disabled=!1,mn.className+=bi,Ve(),Nn)for(var e=ni;e--;)tn&&C(_n[e]),C(_n[ii-e-1]);if(!tn)for(var t=ui,n=ui+yn;t<n;t++){var i=_n[t],o=t<ui+An?sn:cn;i.style.left=100*(t-ui)/An+"%",W(i,o)}pe(),Ci=!1}}function ye(){var e=we();kn.innerHTML!==e&&(kn.innerHTML=e)}function we(){var e=be(),t=e[0]+1,n=e[1]+1;return t===n?t+"":t+" to "+n}function be(e){null==e&&(e=Xe());var t,n,i,o=ui;if(Ln||zn?(Tn||Sn)&&(n=-(parseFloat(e)+zn),i=n+In+2*zn):Tn&&(n=jn[ui],i=n+In),Tn)jn.forEach(function(e,a){a<ii&&((Ln||zn)&&e<=n+.5&&(o=a),i-e>=.5&&(t=a))});else{if(Sn){var a=Sn+En;Ln||zn?(o=Math.floor(n/a),t=Math.ceil(i/a-1)):t=o+Math.ceil(In/a)-1}else if(Ln||zn){var s=An-1;if(Ln?(o-=s/2,t=ui+s/2):t=ui+s,zn){var r=zn*An/In;o-=r,t+=r}o=Math.floor(o),t=Math.ceil(t)}else t=o+An-1;o=Math.max(o,0),t=Math.min(t,ii-1)}return[o,t]}function je(){if(Kn&&!xi){var e=be();e.push(ei),ze.apply(null,e).forEach(function(e){if(!N(e,$i)){var t={};t[Xt]=function(e){e.stopPropagation()},E(e,t),E(e,Yi),e.src=_(e,"data-src");var n=_(e,"data-srcset");n&&(e.srcset=n),W(e,"loading")}})}}function xe(e){ke(wt(e))}function Ce(e){Te(wt(e))}function ke(e){W(e,"loaded"),Se(e)}function Te(e){W(e,"failed"),Se(e)}function Se(e){W(e,$i),q(e,"loading"),I(e,Yi)}function ze(e,t,n){var i=[];for(n||(n="img");e<=t;)g(_n[e].querySelectorAll(n),function(e){i.push(e)}),e++;return i}function Ee(){var e=ze.apply(null,be());M(function(){Ie(e,Me)})}function Ie(e,t){return Cn?t():(e.forEach(function(t,n){!Kn&&t.complete&&Se(t),N(t,$i)&&e.splice(n,1)}),e.length?void M(function(){Ie(e,t)}):t())}function Le(){je(),De(),ye(),Fe(),He()}function Be(){tn&&Wn&&(dn.style[$t]=On/1e3+"s")}function Ae(e,t){for(var n=[],i=e,o=Math.min(e+t,ii);i<o;i++)n.push(_n[i].offsetHeight);return Math.max.apply(null,n)}function Me(){var e=Wn?Ae(ui,An):Ae(ni,yn),t=dn||pn;t.style.height!==e&&(t.style.height=e+"px")}function Pe(){jn=[0];var e=hn?"left":"top",t=hn?"right":"bottom",n=_n[0].getBoundingClientRect()[e];g(_n,function(i,o){o&&jn.push(i.getBoundingClientRect()[e]-n),o===ii-1&&jn.push(i.getBoundingClientRect()[t]-n)})}function De(){var e,t,n=be(),i=n[0],o=n[1];if(Ln&&Bn){var a=o-i+1,s=a/2,r=a<Bn?a:Bn;r>1&&(s-=r/2),s=Math.floor(s),e=i+s,t=e+r-1}g(_n,function(n,a){a>=i&&a<=o?v(n,"aria-hidden")&&(b(n,["aria-hidden","tabindex"]),W(n,qi)):v(n,"aria-hidden")||(w(n,{"aria-hidden":"true",tabindex:"-1"}),q(n,qi)),e&&t&&(a>=e&&a<=t?W(n,Ri):q(n,Ri))})}function Oe(){for(var e=ui+Math.min(yn,An),t=ii;t--;){var n=_n[t];t>=ui&&t<e?(W(n,"tns-moving"),n.style.left=100*(t-ui)/An+"%",W(n,sn),q(n,cn)):n.style.left&&(n.style.left="",W(n,cn),q(n,sn)),q(n,rn)}setTimeout(function(){g(_n,function(e){q(e,"tns-moving")})},300)}function He(){if($n&&(ro=so>=0?so:O(),so=-1,ro!==lo)){var e=to[lo],t=to[ro];w(e,{tabindex:"-1","aria-label":uo+(lo+1)}),q(e,co),w(t,{"aria-label":uo+(ro+1)+ho}),b(t,"tabindex"),W(t,co),lo=ro}}function Ne(e){return e.nodeName.toLowerCase()}function We(e){return"button"===Ne(e)}function qe(e){return"true"===e.getAttribute("aria-disabled")}function Re(e,t,n){e?t.disabled=n:t.setAttribute("aria-disabled",n.toString())}function Fe(){if(qn&&!Hn&&!Nn){var e=Ui?Zi.disabled:qe(Zi),t=Xi?Ji.disabled:qe(Ji),n=ui<=fi,i=!Hn&&ui>=pi;n&&!e&&Re(Ui,Zi,!0),!n&&e&&Re(Ui,Zi,!1),i&&!t&&Re(Xi,Ji,!0),!i&&t&&Re(Xi,Ji,!1)}}function $e(e,t){$t&&(e.style[$t]=t)}function Ye(){return Sn?(Sn+En)*ii:jn[ii]}function Qe(e){null==e&&(e=ui);var t=zn?En:0;return Tn?(In-t-(jn[e+1]-jn[e]-En))/2:Sn?(In-Sn)/2:(An-1)/2}function Ue(){var e=zn?En:0,t=In+e-Ye();return Ln&&!Nn&&(t=Sn?-(Sn+En)*(ii-1)-Qe():Qe(ii-1)-jn[ii-1]),t>0&&(t=0),t}function Xe(e){null==e&&(e=ui);var t;if(hn&&!Tn)if(Sn)t=-(Sn+En)*e,Ln&&(t+=Qe());else{var n=Rt?ii:An;Ln&&(e-=Qe()),t=100*-e/n}else t=-jn[e],Ln&&Tn&&(t+=Qe());return oi&&(t=Math.max(t,ai)),t+=!hn||Tn||Sn?"px":"%"}function Ve(e){$e(mn,"0s"),Ge(e)}function Ge(e){null==e&&(e=Xe()),"rtl"===Fn&&"-"===e.charAt(0)&&(e=e.substr(1)),mn.style[ri]=li+e+ci}function Ze(e,t,n,i){var o=e+An;Nn||(o=Math.min(o,ii));for(var a=e;a<o;a++){var s=_n[a];i||(s.style.left=100*(a-ui)/An+"%"),ln&&Yt&&(s.style[Yt]=s.style[Ut]=ln*(a-e)/1e3+"s"),q(s,t),W(s,n),i&&ti.push(s)}}function Je(e,t){si&&Io(),(ui!==hi||t)&&(wi.emit("indexChanged",Lt()),wi.emit("transitionStart",Lt()),Wn&&Ee(),po&&e&&["click","keydown"].indexOf(e.type)>=0&&lt(),_i=!0,Lo())}function Ke(e){return e.toLowerCase().replace(/-/g,"")}function et(e){if(tn||_i){if(wi.emit("transitionEnd",Lt(e)),!tn&&ti.length>0)for(var t=0;t<ti.length;t++){var n=ti[t];n.style.left="",Ut&&Yt&&(n.style[Ut]="",n.style[Yt]=""),q(n,rn),W(n,cn)}if(!e||!tn&&e.target.parentNode===mn||e.target===mn&&Ke(e.propertyName)===Ke(ri)){if(!si){var i=ui;Io(),ui!==i&&(wi.emit("indexChanged",Lt()),Ve())}"inner"===en&&wi.emit("innerLoaded",Lt()),_i=!1,hi=ui}}}function tt(e,t){if(!Ti)if("prev"===e)nt(t,-1);else if("next"===e)nt(t,1);else{if(_i){if(mi)return;et()}var n=P(),i=0;if("first"===e?i=-n:"last"===e?i=tn?yn-An-n:yn-1-n:("number"!=typeof e&&(e=parseInt(e)),isNaN(e)||(t||(e=Math.max(0,Math.min(yn-1,e))),i=e-n)),!tn&&i&&Math.abs(i)<An){var o=i>0?1:-1;i+=ui+i-yn>=fi?yn*o:2*yn*o*-1}ui+=i,tn&&Nn&&(ui<fi&&(ui+=yn),ui>pi&&(ui-=yn)),P(ui)!==P(hi)&&Je(t)}}function nt(e,t){if(_i){if(mi)return;et()}var n;if(!t){e=yt(e);for(var i=wt(e);i!==Vi&&[Zi,Ji].indexOf(i)<0;)i=i.parentNode;var o=[Zi,Ji].indexOf(i);o>=0&&(n=!0,t=0===o?-1:1)}if(Hn){if(ui===fi&&-1===t)return void tt("last",e);if(ui===pi&&1===t)return void tt("first",e)}t&&(ui+=Mn*t,Tn&&(ui=Math.floor(ui)),Je(n||e&&"keydown"===e.type?e:null))}function it(e){if(_i){if(mi)return;et()}e=yt(e);for(var t,n=wt(e);n!==no&&!v(n,"data-nav");)n=n.parentNode;if(v(n,"data-nav")){var t=so=Number(_(n,"data-nav")),i=Sn||Tn?t*yn/oo:t*An;tt(Oi?t:Math.min(Math.ceil(i),yn-1),e),ro===t&&(po&&lt(),so=-1)}}function ot(){fo=setInterval(function(){nt(null,_o)},Xn),po=!0}function at(){clearInterval(fo),po=!1}function st(e,t){w(yo,{"data-action":e}),yo.innerHTML=bo[0]+e+bo[1]+t}function rt(){ot(),yo&&st("stop",Vn[1])}function lt(){at(),yo&&st("start",Vn[0])}function ct(){Un&&!po&&(rt(),go=!1)}function dt(){po&&(lt(),go=!0)}function ut(){po?(lt(),go=!0):(rt(),go=!1)}function ht(){Bt.hidden?po&&(at(),vo=!0):vo&&(ot(),vo=!1)}function ft(){po&&(at(),mo=!0)}function pt(){mo&&(ot(),mo=!1)}function mt(e){e=yt(e);var t=[Mt.LEFT,Mt.RIGHT].indexOf(e.keyCode);t>=0&&nt(e,0===t?-1:1)}function gt(e){e=yt(e);var t=[Mt.LEFT,Mt.RIGHT].indexOf(e.keyCode);t>=0&&(0===t?Zi.disabled||nt(e,-1):Ji.disabled||nt(e,1))}function vt(e){e.focus()}function _t(e){e=yt(e);var t=Bt.activeElement;if(v(t,"data-nav")){var n=[Mt.LEFT,Mt.RIGHT,Mt.ENTER,Mt.SPACE].indexOf(e.keyCode),i=Number(_(t,"data-nav"));n>=0&&(0===n?i>0&&vt(to[i-1]):1===n?i<oo-1&&vt(to[i+1]):(so=i,tt(i,e)))}}function yt(e){return e=e||At.event,bt(e)?e.changedTouches[0]:e}function wt(e){return e.target||At.event.srcElement}function bt(e){return e.type.indexOf("touch")>=0}function jt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xt(){return m(p(So.y-To.y,So.x-To.x),gi)===o.axis}function Ct(e){if(_i){if(mi)return;et()}Un&&po&&at(),zo=!0,ko&&(D(ko),ko=null);var t=yt(e);wi.emit(bt(e)?"touchStart":"dragStart",Lt(e)),!bt(e)&&["img","a"].indexOf(Ne(wt(e)))>=0&&jt(e),So.x=To.x=t.clientX,So.y=To.y=t.clientY,tn&&(jo=parseFloat(mn.style[ri].replace(li,"")),$e(mn,"0s"))}function kt(e){if(zo){var t=yt(e);So.x=t.clientX,So.y=t.clientY,tn?ko||(ko=M(function(){Tt(e)})):("?"===vi&&(vi=xt()),vi&&(Qi=!0)),("boolean"!=typeof e.cancelable||e.cancelable)&&Qi&&e.preventDefault()}}function Tt(e){if(!vi)return void(zo=!1);if(D(ko),zo&&(ko=M(function(){Tt(e)})),"?"===vi&&(vi=xt()),vi){!Qi&&bt(e)&&(Qi=!0);try{e.type&&wi.emit(bt(e)?"touchMove":"dragMove",Lt(e))}catch(e){}var t=jo,n=Eo(So,To);if(!hn||Sn||Tn)t+=n,t+="px";else{t+=Rt?n*An*100/((In+En)*ii):100*n/(In+En),t+="%"}mn.style[ri]=li+t+ci}}function St(e){if(zo){ko&&(D(ko),ko=null),tn&&$e(mn,""),zo=!1;var t=yt(e);So.x=t.clientX,So.y=t.clientY;var n=Eo(So,To);if(Math.abs(n)){if(!bt(e)){var i=wt(e);E(i,{click:function e(t){jt(t),I(i,{click:e})}})}tn?ko=M(function(){if(hn&&!Tn){var t=-n*An/(In+En);t=n>0?Math.floor(t):Math.ceil(t),ui+="rtl"===Fn?-1*t:t}else{var i=-(jo+n);if(i<=0)ui=fi;else if(i>=jn[ii-1])ui=pi;else for(var o=0;o<ii&&i>=jn[o];)ui=o,i>jn[o]&&n<0&&(ui+=1),o++}Je(e,n),wi.emit(bt(e)?"touchEnd":"dragEnd",Lt(e))}):vi&&nt(e,n>0?-1:1)}}"auto"===o.preventScrollOnTouch&&(Qi=!1),gi&&(vi="?"),Un&&!po&&ot()}function zt(){(dn||pn).style.height=jn[ui+An]-jn[ui]+"px"}function Et(){var e=Sn?(Sn+En)*yn/In:yn/An;return Math.min(Math.ceil(e),yn)}function It(){if($n&&!Oi&&oo!==ao){var e=ao,t=oo,n=C;for(ao>oo&&(e=oo,t=ao,n=x);e<t;)n(to[e]),e++;ao=oo}}function Lt(e){return{container:mn,slideItems:_n,navContainer:no,navItems:to,controlsContainer:Vi,hasControls:Pi,prevButton:Zi,nextButton:Ji,items:An,slideBy:Mn,cloneCount:ni,slideCount:yn,slideCountNew:ii,index:ui,indexCached:hi,displayIndex:y(),navCurrentIndex:ro,navCurrentIndexCached:lo,pages:oo,pagesCached:ao,sheet:Jn,isOn:bn,event:e||{}}}o=e({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,centerSlideCount:1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0,textDirection:"ltr",nonce:!1},o||{});var Bt=document,At=window,Mt={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},Pt={},Dt=o.useLocalStorage;if(Dt){var Ot=navigator.userAgent,Ht=new Date;try{Pt=At.localStorage,Pt?(Pt.setItem(Ht,Ht),Dt=Pt.getItem(Ht)==Ht,Pt.removeItem(Ht)):Dt=!1,Dt||(Pt={})}catch(e){Dt=!1}Dt&&(Pt.tnsApp&&Pt.tnsApp!==Ot&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(e){Pt.removeItem(e)}),localStorage.tnsApp=Ot)}var Nt=Pt.tC?t(Pt.tC):n(Pt,"tC",r(),Dt),Wt=Pt.tPL?t(Pt.tPL):n(Pt,"tPL",l(),Dt),qt=Pt.tMQ?t(Pt.tMQ):n(Pt,"tMQ",c(),Dt),Rt=Pt.tTf?t(Pt.tTf):n(Pt,"tTf",T("transform"),Dt),Ft=Pt.t3D?t(Pt.t3D):n(Pt,"t3D",S(Rt),Dt),$t=Pt.tTDu?t(Pt.tTDu):n(Pt,"tTDu",T("transitionDuration"),Dt),Yt=Pt.tTDe?t(Pt.tTDe):n(Pt,"tTDe",T("transitionDelay"),Dt),Qt=Pt.tADu?t(Pt.tADu):n(Pt,"tADu",T("animationDuration"),Dt),Ut=Pt.tADe?t(Pt.tADe):n(Pt,"tADe",T("animationDelay"),Dt),Xt=Pt.tTE?t(Pt.tTE):n(Pt,"tTE",z($t,"Transition"),Dt),Vt=Pt.tAE?t(Pt.tAE):n(Pt,"tAE",z(Qt,"Animation"),Dt),Gt=At.console&&"function"==typeof At.console.warn,Zt=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],Jt={};if(Zt.forEach(function(e){if("string"==typeof o[e]){var t=o[e],n=Bt.querySelector(t);if(Jt[e]=t,!n||!n.nodeName)return void(Gt&&console.warn("Can't find",o[e]));o[e]=n}}),o.container.children.length<1)return void(Gt&&console.warn("No slides found in",o.container));var Kt=o.responsive,en=o.nested,tn="carousel"===o.mode;if(Kt){0 in Kt&&(o=e(o,Kt[0]),delete Kt[0]);var nn={};for(var on in Kt){var an=Kt[on];an="number"==typeof an?{items:an}:an,nn[on]=an}Kt=nn,nn=null}if(tn||a(o),!tn){o.axis="horizontal",o.slideBy="page",o.edgePadding=!1;var sn=o.animateIn,rn=o.animateOut,ln=o.animateDelay,cn=o.animateNormal}var dn,un,hn="horizontal"===o.axis,fn=Bt.createElement("div"),pn=Bt.createElement("div"),mn=o.container,gn=mn.parentNode,vn=mn.outerHTML,_n=mn.children,yn=_n.length,wn=R(),bn=!1;Kt&&he(),tn&&(mn.className+=" tns-vpfix");var jn,xn,Cn,kn,Tn=X("autoWidth"),Sn=X("fixedWidth"),zn=X("edgePadding"),En=X("gutter"),In=Q(),Ln=X("center"),Bn=X("centerSlideCount"),An=Tn?1:Math.floor(X("items")),Mn=X("slideBy"),Pn=o.viewportMax||o.fixedWidthViewportWidth,Dn=X("arrowKeys"),On=X("speed"),Hn=o.rewind,Nn=!Hn&&o.loop,Wn=X("autoHeight"),qn=X("controls"),Rn=X("controlsText"),Fn=X("textDirection"),$n=X("nav"),Yn=X("touch"),Qn=X("mouseDrag"),Un=X("autoplay"),Xn=X("autoplayTimeout"),Vn=X("autoplayText"),Gn=X("autoplayHoverPause"),Zn=X("autoplayResetOnVisibility"),Jn=d(null,X("nonce")),Kn=o.lazyload,ei=o.lazyloadSelector,ti=[],ni=Nn?function(){var e=H(),t=tn?Math.ceil((5*e-yn)/2):4*e-yn;return t=Math.max(e,t),U("edgePadding")?t+1:t}():0,ii=tn?yn+2*ni:yn+ni,oi=!(!Sn&&!Tn||Nn),ai=Sn?Ue():null,si=!tn||!Nn,ri=hn?"left":"top",li="",ci="",di=function(){return Sn?function(){return Ln&&!Nn?yn-1:Math.ceil(-ai/(Sn+En))}:Tn?function(){for(var e=0;e<ii;e++)if(jn[e]>=-ai)return e}:function(){return Ln&&tn&&!Nn?yn-1:Nn||tn?Math.max(0,ii-Math.ceil(An)):ii-1}}(),ui=A(X("startIndex")),hi=ui,fi=(y(),0),pi=Tn?null:di(),mi=o.preventActionWhenRunning,gi=o.swipeAngle,vi=!gi||"?",_i=!1,yi=o.onInit,wi=new L,bi=" tns-slider tns-"+o.mode,ji=mn.id||i(),xi=X("disable"),Ci=!1,ki=o.freezable,Ti=!(!ki||Tn)&&ue(),Si=!1,zi={click:nt,keydown:gt},Ei={click:it,keydown:_t},Ii={mouseover:ft,mouseout:pt},Li={visibilitychange:ht},Bi={keydown:mt},Ai={touchstart:Ct,touchmove:kt,touchend:St,touchcancel:St},Mi={mousedown:Ct,mousemove:kt,mouseup:St,mouseleave:St},Pi=U("controls"),Di=U("nav"),Oi=!!Tn||o.navAsThumbnails,Hi=U("autoplay"),Ni=U("touch"),Wi=U("mouseDrag"),qi="tns-slide-active",Ri="tns-slide-center",Fi="tns-slide-cloned",$i="tns-complete",Yi={load:xe,error:Ce},Qi="force"===o.preventScrollOnTouch;if(Pi)var Ui,Xi,Vi=o.controlsContainer,Gi=o.controlsContainer?o.controlsContainer.outerHTML:"",Zi=o.prevButton,Ji=o.nextButton,Ki=o.prevButton?o.prevButton.outerHTML:"",eo=o.nextButton?o.nextButton.outerHTML:"";if(Di)var to,no=o.navContainer,io=o.navContainer?o.navContainer.outerHTML:"",oo=Tn?yn:Et(),ao=0,so=-1,ro=O(),lo=ro,co="tns-nav-active",uo="Carousel Page ",ho=" (Current Slide)";if(Hi)var fo,po,mo,go,vo,_o="forward"===o.autoplayDirection?1:-1,yo=o.autoplayButton,wo=o.autoplayButton?o.autoplayButton.outerHTML:"",bo=["<span class='tns-visually-hidden'>"," animation</span>"];if(Ni||Wi)var jo,xo,Co,ko,To={},So={},zo=!1,Eo=hn?function(e,t){return e.x-t.x}:function(e,t){return e.y-t.y};Tn||s(xi||Ti),Rt&&(ri=Rt,li="translate",Ft?(li+=hn?"3d(":"3d(0px, ",ci=hn?", 0px, 0px)":", 0px)"):(li+=hn?"X(":"Y(",ci=")")),tn&&(mn.className=mn.className.replace("tns-vpfix","")),function(){if(U("gutter"),fn.className="tns-outer",pn.className="tns-inner",fn.id=ji+"-ow",pn.id=ji+"-iw",""===mn.id&&(mn.id=ji),bi+=Wt||Tn?" tns-subpixel":" tns-no-subpixel",bi+=Nt?" tns-calc":" tns-no-calc",Tn&&(bi+=" tns-autowidth"),bi+=" tns-"+o.axis,mn.className+=bi,tn?(dn=Bt.createElement("div"),dn.id=ji+"-mw",dn.className="tns-ovh",fn.appendChild(dn),dn.appendChild(pn)):fn.appendChild(pn),Wn&&((dn||pn).className+=" tns-ah"),gn.insertBefore(fn,mn),pn.appendChild(mn),g(_n,function(e,t){W(e,"tns-item"),e.id||(e.id=ji+"-item"+t),!tn&&cn&&W(e,cn),w(e,{"aria-hidden":"true",tabindex:"-1"})}),ni){for(var e=Bt.createDocumentFragment(),t=Bt.createDocumentFragment(),n=ni;n--;){var i=n%yn,a=_n[i].cloneNode(!0);if(W(a,Fi),b(a,"id"),t.insertBefore(a,t.firstChild),tn){var s=_n[yn-1-i].cloneNode(!0);W(s,Fi),b(s,"id"),e.appendChild(s)}}mn.insertBefore(e,mn.firstChild),mn.appendChild(t),_n=mn.children}}(),function(){if(!tn)for(var e=ui,t=ui+Math.min(yn,An);e<t;e++){var n=_n[e];n.style.left=100*(e-ui)/An+"%",W(n,sn),q(n,cn)}if(hn&&(Wt||Tn?(u(Jn,"#"+ji+" > .tns-item","font-size:"+At.getComputedStyle(_n[0]).fontSize+";",f(Jn)),u(Jn,"#"+ji,"font-size:0;",f(Jn))):tn&&g(_n,function(e,t){e.style.marginLeft=V(t)})),qt){if($t){var i=dn&&o.autoHeight?te(o.speed):"";u(Jn,"#"+ji+"-mw",i,f(Jn))}i=G(o.edgePadding,o.gutter,o.fixedWidth,o.speed,o.autoHeight),u(Jn,"#"+ji+"-iw",i,f(Jn)),tn&&(i=hn&&!Tn?"width:"+Z(o.fixedWidth,o.gutter,o.items)+";":"",$t&&(i+=te(On)),u(Jn,"#"+ji,i,f(Jn))),i=hn&&!Tn?J(o.fixedWidth,o.gutter,o.items):"",o.gutter&&(i+=K(o.gutter)),tn||($t&&(i+=te(On)),Qt&&(i+=ne(On))),i&&u(Jn,"#"+ji+" > .tns-item",i,f(Jn))}else{Be(),pn.style.cssText=G(zn,En,Sn,Wn),tn&&hn&&!Tn&&(mn.style.width=Z(Sn,En,An));var i=hn&&!Tn?J(Sn,En,An):"";En&&(i+=K(En)),i&&u(Jn,"#"+ji+" > .tns-item",i,f(Jn))}if(Kt&&qt)for(var a in Kt){a=parseInt(a);var s=Kt[a],i="",r="",l="",c="",d="",h=Tn?null:X("items",a),p=X("fixedWidth",a),m=X("speed",a),v=X("edgePadding",a),_=X("autoHeight",a),y=X("gutter",a);$t&&dn&&X("autoHeight",a)&&"speed"in s&&(r="#"+ji+"-mw{"+te(m)+"}"),("edgePadding"in s||"gutter"in s)&&(l="#"+ji+"-iw{"+G(v,y,p,m,_)+"}"),tn&&hn&&!Tn&&("fixedWidth"in s||"items"in s||Sn&&"gutter"in s)&&(c="width:"+Z(p,y,h)+";"),$t&&"speed"in s&&(c+=te(m)),c&&(c="#"+ji+"{"+c+"}"),("fixedWidth"in s||Sn&&"gutter"in s||!tn&&"items"in s)&&(d+=J(p,y,h)),"gutter"in s&&(d+=K(y)),!tn&&"speed"in s&&($t&&(d+=te(m)),Qt&&(d+=ne(m))),d&&(d="#"+ji+" > .tns-item{"+d+"}"),(i=r+l+c+d)&&Jn.insertRule("@media (min-width: "+a/16+"em) {"+i+"}",Jn.cssRules.length)}}(),ie();var Io=function(){return Nn?tn?function(){var e=fi,t=pi;e+=Mn,t-=Mn,zn?(e+=1,t-=1):Sn&&(In+En)%(Sn+En)&&(t-=1),ni&&(ui>t?ui-=yn:ui<e&&(ui+=yn))}:function(){if(ui>pi)for(;ui>=fi+yn;)ui-=yn;else if(ui<fi)for(;ui<=pi-yn;)ui+=yn}:function(){ui=Math.max(fi,Math.min(pi,ui))}}(),Lo=function(){return tn?function(){$e(mn,""),$t||!On?(Ge(),On&&k(mn)||et()):B(mn,ri,li,ci,Xe(),On,et),hn||zt()}:function(){ti=[];var e={};e[Xt]=e[Vt]=et,I(_n[hi],e),E(_n[ui],e),Ze(hi,sn,rn,!0),Ze(ui,cn,sn),Xt&&Vt&&On&&k(mn)||et()}}();return{version:"2.9.3",getInfo:Lt,events:wi,goTo:tt,play:ct,pause:dt,isOn:bn,updateSliderHeight:Me,refresh:ie,destroy:le,rebuild:function(){return Y(e(o,Jt))}}};return Y}();window.jnews.tns=e}()},function(e,t){var n;!function(){"use strict";window.jnews=window.jnews||{},window.jnews.tns=window.jnews.tns||{},"function"==typeof n&&"function"!=typeof jnews.tns&&(window.jnews.tns=n),"function"!=typeof n&&"function"==typeof jnews.tns&&(n=jnews.tns)}()},function(e,t){!function(e,t){"use strict";var n="object"==typeof jnews&&"object"==typeof jnews.library,i=!!n&&jnews.library,o=function(){var n={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},o=function(){var t=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return t&&e("html").css("cursor","pointer").on("click",e.noop),t}(),a=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),s=function(){return!!t.PointerEvent}(),r=function(e,t,i){var o,a=n.menuClass;t.cssArrows&&(a+=" "+n.menuArrowClass),o=i?"addClass":"removeClass",e[o](a)},l=function(t,i){return t.find("li."+i.pathClass).slice(0,i.pathLevels).addClass(i.hoverClass+" "+n.bcClass).filter(function(){return e(this).children(i.popUpSelector).hide().show().length}).removeClass(i.pathClass)},c=function(e,t){var i=t?"addClass":"removeClass";e.children("a")[i](n.anchorClass)},d=function(e){var t=e[0].style.msTouchAction,n=e[0].style.touchAction;n=n||t,n="pan-y"===n?"auto":"pan-y",e[0].style.msTouchAction=n,e[0].style.touchAction=n},u=function(e){return e.closest("."+n.menuClass)},h=function(e){return u(e).data("sfOptions")},f=function(){var t=e(this),n=h(t);clearTimeout(n.sfTimer),t.siblings().superfish("hide").end().superfish("show")},p=function(t){t.retainPath=e.inArray(this[0],t.$path)>-1,this.superfish("hide"),this.parents("."+t.hoverClass).length||(t.onIdle.call(u(this)),t.$path.length&&e.proxy(f,t.$path)())},m=function(){var t=e(this),n=h(t);o?e.proxy(p,t,n)():(clearTimeout(n.sfTimer),n.sfTimer=setTimeout(e.proxy(p,t,n),n.delay))},g=function(t){var n=e(this),i=h(n),o=n.siblings(t.data.popUpSelector);if(!1===i.onHandleTouch.call(o))return this;o.length>0&&o.is(":hidden")&&(n.one("click.superfish",!1),"MSPointerDown"===t.type||"pointerdown"===t.type?n.trigger("focus"):e.proxy(f,n.parent("li"))())},v=function(t,n){var i="li:has("+n.popUpSelector+")";e.fn.hoverIntent&&!n.disableHI?t.hoverIntent(f,m,i):t.on("mouseenter.superfish",i,f).on("mouseleave.superfish",i,m);var r="MSPointerDown.superfish";s&&(r="pointerdown.superfish"),o||(r+=" touchend.superfish"),a&&(r+=" mousedown.superfish"),t.on("focusin.superfish","li",f).on("focusout.superfish","li",m).on(r,"a",n,g)};return{hide:function(t){if(this.length){var n=this,i=h(n);if(!i)return this;var o=!0===i.retainPath?i.$path:"",a=n.find("li."+i.hoverClass).add(this).not(o).removeClass(i.hoverClass).children(i.popUpSelector),s=i.speedOut;if(t){var r="object"==typeof jnews&&"object"==typeof jnews.library,l=!!r&&jnews.library;l&&l.forEach(a,function(e,t){e.style.display=0}),s=0}if(i.retainPath=!1,!1===i.onBeforeHide.call(a))return this;"slide"===i.animationType?a.stop(!0,!0).fadeOut(i.animationOut,function(){var t=e(this);i.onHide.call(t)}):"fade"===i.animationType?a.stop(!0,!0).fadeOut(i.animationOut,function(){var t=e(this);i.onHide.call(t)}):"animateTransform"===i.animationType?a.stop(!0,!0).hide(0,function(){var t=e(this);i.onHide.call(t)}):"none"===i.animationType?a.stop(!0,!0).hide(0,function(){var t=e(this);i.onShow.call(t)}):a.stop(!0,!0).animate(i.animationOut,s,function(){var t=e(this);i.onHide.call(t)})}return this},show:function(){var t=h(this);if(!t)return this;var n=this.addClass(t.hoverClass),i=n.children(t.popUpSelector);return!1===t.onBeforeShow.call(i)?this:("slide"===t.animationType?i.stop(!0,!0).slideDown(t.speed,function(){var n=e(this);t.onShow.call(n)}):"fade"===t.animationType?i.stop(!0,!0).fadeIn(t.speed,function(){var n=e(this);t.onShow.call(n)}):"animateTransform"===t.animationType?i.stop(!0,!0).css({display:"block",transform:"translate(0, -10px)",opacity:0}).transition({opacity:1,y:0},t.speed,"ease",function(){var n=e(this);t.onShow.call(n)}):"none"===t.animationType?i.stop(!0,!0).show(0,function(){var n=e(this);t.onShow.call(n)}):i.stop(!0,!0).animate(t.animation,t.speed,function(){t.onShow.call(i)}),this)},destroy:function(){return this.each(function(){var t,i=e(this),o=i.data("sfOptions");if(!o)return!1;t=i.find(o.popUpSelector).parent("li"),clearTimeout(o.sfTimer),r(i,o),c(t),d(i),i.off(".superfish").off(".hoverIntent"),t.children(o.popUpSelector).attr("style",function(e,t){return t.replace(/display[^;]+;?/g,"")}),o.$path.removeClass(o.hoverClass+" "+n.bcClass).addClass(o.pathClass),i.find("."+o.hoverClass).removeClass(o.hoverClass),o.onDestroy.call(i),i.removeData("sfOptions")})},init:function(t){return this.each(function(){var o=this;i&&i.requestAnimationFrame.call(i.win,function(){var i=e(o);if(i.data("sfOptions"))return!1;var a=e.extend({},e.fn.superfish.defaults,t),s=i.find(a.popUpSelector).parent("li");a.$path=l(i,a),i.data("sfOptions",a),r(i,a,!0),c(s,!0),d(i),v(i,a),s.not("."+n.bcClass).superfish("hide",!0),a.onInit.call(o)})})}}}();e.fn.superfish=function(t,n){return o[t]?o[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?e.error("Method "+t+" does not exist on jQuery.fn.superfish"):o.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animationType:"animate",animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window)},function(e,t){!function(e){"use strict";e.fn.theiaStickySidebar=function(t){function n(t,n){return!0===t.initialized||!(e("body").width()<t.minWidth)&&(i(t,n),!0)}function i(t,n){t.initialized=!0,e("head").append(e('<style>.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>')),n.each(function(){function n(){o.fixedScrollTop=0,o.sidebar.css({"min-height":"1px"}),o.stickySidebar.css({position:"static",width:""})}function i(t){var n=t.height();return t.children().each(function(){n=Math.max(n,e(this).height())}),n}var o={};o.sidebar=e(this),o.options=t||{},o.container=e(o.options.containerSelector),0==o.container.size()&&(o.container=o.sidebar.parent()),o.sidebar.parents().css("-webkit-transform","none"),o.sidebar.css({position:"relative",overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),o.stickySidebar=o.sidebar.find(".theiaStickySidebar"),0==o.stickySidebar.length&&(o.sidebar.find("script").remove(),o.stickySidebar=e("<div>").addClass("theiaStickySidebar"),e(o.sidebar.children(t.wrap)).each(function(n,i){e(i).is(t.exclude)||o.stickySidebar.append(i)}),o.sidebar.append(e("<div>").addClass("jegStickyHolder").append(o.stickySidebar))),o.marginTop=parseInt(o.sidebar.css("margin-top")),o.marginBottom=parseInt(o.sidebar.css("margin-bottom")),o.paddingTop=parseInt(o.sidebar.css("padding-top")),o.paddingBottom=parseInt(o.sidebar.css("padding-bottom"));var s=o.stickySidebar.offset().top,r=o.stickySidebar.outerHeight();o.stickySidebar.css("padding-top",1),o.stickySidebar.css("padding-bottom",1),s-=o.stickySidebar.offset().top,r=o.stickySidebar.outerHeight()-r-s,0==s?(o.stickySidebar.css("padding-top",0),o.stickySidebarPaddingTop=0):o.stickySidebarPaddingTop=1,0==r?(o.stickySidebar.css("padding-bottom",0),o.stickySidebarPaddingBottom=0):o.stickySidebarPaddingBottom=1,o.previousScrollTop=null,o.fixedScrollTop=0,n(),o.onScroll=function(o){if(t.active){if(!o.stickySidebar.is(":visible"))return;if(e("body").width()<o.options.minWidth)return void n();if(o.sidebar.outerWidth(!0)+50>o.container.width())return void n();var a=e(document).scrollTop(),s="static";if(a>=o.container.offset().top+(o.paddingTop+o.marginTop-o.options.additionalMarginTop)){var r,l=o.paddingTop+o.marginTop+t.additionalMarginTop,c=o.paddingBottom+o.marginBottom+t.additionalMarginBottom,d=o.container.offset().top,u=o.container.offset().top+i(o.container),h=0+t.additionalMarginTop;r=o.stickySidebar.outerHeight()+l+c<e(window).height()?h+o.stickySidebar.outerHeight():e(window).height()-o.marginBottom-o.paddingBottom-t.additionalMarginBottom;var f=d-a+o.paddingTop+o.marginTop,p=u-a-o.paddingBottom-o.marginBottom,m=o.stickySidebar.offset().top-a,g=o.previousScrollTop-a;"fixed"==o.stickySidebar.css("position")&&"modern"==o.options.sidebarBehavior&&(m+=g),"legacy"==o.options.sidebarBehavior&&(m=r-o.stickySidebar.outerHeight(),m=Math.max(m,r-o.stickySidebar.outerHeight())),m=g>0?Math.min(m,h):Math.max(m,r-o.stickySidebar.outerHeight()),m=Math.max(m,f),m=Math.min(m,p-o.stickySidebar.outerHeight());var v=o.container.height()==o.stickySidebar.outerHeight();s=(v||m!=h)&&(v||m!=r-o.stickySidebar.outerHeight())?a+m-o.sidebar.offset().top-o.paddingTop<=t.additionalMarginTop?"static":"absolute":"fixed"}}else s="static";if("fixed"==s)o.stickySidebar.css({position:"fixed",width:o.sidebar.width(),top:m,left:o.sidebar.offset().left+parseInt(o.sidebar.css("padding-left"))});else if("absolute"==s){var _={};"absolute"!=o.stickySidebar.css("position")&&(_.position="absolute",_.top=a+m-o.sidebar.offset().top-o.stickySidebarPaddingTop-o.stickySidebarPaddingBottom),_.width=o.sidebar.width(),_.left="",o.stickySidebar.css(_)}else"static"==s&&n();"static"!=s&&1==o.options.updateSidebarHeight&&o.sidebar.css({"min-height":o.stickySidebar.outerHeight()+o.stickySidebar.offset().top-o.sidebar.offset().top+o.paddingBottom}),o.previousScrollTop=a},o.onScroll(o),e(document).scroll(function(e){return function(){e.onScroll(e)}}(o)),e(window).resize(function(e){return function(){e.stickySidebar.css({position:"static"}),e.onScroll(e)}}(o)),e(window).bind("jnews_additional_sticky_margin",function(e,n){t.additionalMarginTop=n+a,o.options.additionalMarginTop=n+a})})}var o={containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,sidebarBehavior:"modern",wrap:"",exclude:".elementor-element-overlay, .ui-resizable-handle",active:!0};t=e.extend(o,t),t.additionalMarginTop=parseInt(t.additionalMarginTop)||0,t.additionalMarginBottom=parseInt(t.additionalMarginBottom)||0;var a=t.additionalMarginTop;!function(t,i){n(t,i)||(console.log("TST: Body width smaller than options.minWidth. Init is delayed."),e(document).scroll(function(t,i){return function(o){n(t,i)&&e(this).unbind(o)}}(t,i)),e(window).resize(function(t,i){return function(o){n(t,i)&&e(this).unbind(o)}}(t,i)))}(t,this),e(this).bind("theiaStickySidebarDeactivate",function(){t.active=!1}),e(this).bind("theiaStickySidebarActivate",function(){t.active=!0})}}(jQuery)},function(e,t){!function(){"use strict";function e(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=e.Adapter.extend({},e.defaults,i),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,t+=1}var t=0,n={};e.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},e.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(e){var t=[];for(var i in n)t.push(n[i]);for(var o=0,a=t.length;o<a;o++)t[o][e]()},e.destroyAll=function(){e.invokeAll("destroy")},e.disableAll=function(){e.invokeAll("disable")},e.enableAll=function(){e.Context.refreshAll();for(var t in n)n[t].enabled=!0;return this},e.refreshAll=function(){e.Context.refreshAll()},e.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},e.viewportWidth=function(){return document.documentElement.clientWidth},e.adapters=[],e.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},e.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=e}(),function(){"use strict";function e(e){window.setTimeout(e,1e3/60)}function t(e){this.element=e,this.Adapter=o.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,i[e.waypointContextKey]=this,n+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new t(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,i={},o=window.Waypoint,a=window.onload;t.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},t.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical),n=this.element==this.element.window;e&&t&&!n&&(this.adapter.off(".waypoints"),delete i[this.key])},t.prototype.createThrottledResizeHandler=function(){function e(){t.handleResize(),t.didResize=!1}var t=this;this.adapter.on("resize.waypoints",function(){t.didResize||(t.didResize=!0,o.requestAnimationFrame(e))})},t.prototype.createThrottledScrollHandler=function(){function e(){t.handleScroll(),t.didScroll=!1}var t=this;this.adapter.on("scroll.waypoints",function(){t.didScroll&&!o.isTouch||(t.didScroll=!0,o.requestAnimationFrame(e))})},t.prototype.handleResize=function(){o.Context.refreshAll()},t.prototype.handleScroll=function(){var e={},t={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in t){var i=t[n],o=i.newScroll>i.oldScroll,a=o?i.forward:i.backward;for(var s in this.waypoints[n]){var r=this.waypoints[n][s];if(null!==r.triggerPoint){var l=i.oldScroll<r.triggerPoint,c=i.newScroll>=r.triggerPoint,d=l&&c,u=!l&&!c;(d||u)&&(r.queueTrigger(a),e[r.group.id]=r.group)}}}for(var h in e)e[h].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},t.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},t.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},t.prototype.destroy=function(){var e=[];for(var t in this.waypoints)for(var n in this.waypoints[t])e.push(this.waypoints[t][n]);for(var i=0,o=e.length;i<o;i++)e[i].destroy()},t.prototype.refresh=function(){var e,t=this.element==this.element.window,n=t?void 0:this.adapter.offset(),i={};this.handleScroll(),e={horizontal:{contextOffset:t?0:n.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:n.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var a in e){var s=e[a];for(var r in this.waypoints[a]){var l,c,d,u,h,f=this.waypoints[a][r],p=f.options.offset,m=f.triggerPoint,g=0,v=null==m;f.element!==f.element.window&&(g=f.adapter.offset()[s.offsetProp]),"function"==typeof p?p=p.apply(f):"string"==typeof p&&(p=parseFloat(p),f.options.offset.indexOf("%")>-1&&(p=Math.ceil(s.contextDimension*p/100))),l=s.contextScroll-s.contextOffset,f.triggerPoint=Math.floor(g+l-p),c=m<s.oldScroll,d=f.triggerPoint>=s.oldScroll,u=c&&d,h=!c&&!d,!v&&u?(f.queueTrigger(s.backward),i[f.group.id]=f.group):!v&&h?(f.queueTrigger(s.forward),i[f.group.id]=f.group):v&&s.oldScroll>=f.triggerPoint&&(f.queueTrigger(s.forward),i[f.group.id]=f.group)}}return o.requestAnimationFrame(function(){for(var e in i)i[e].flushTriggers()}),this},t.findOrCreateByElement=function(e){return t.findByElement(e)||new t(e)},t.refreshAll=function(){for(var e in i)i[e].refresh()},t.findByElement=function(e){return i[e.waypointContextKey]},window.onload=function(){a&&a(),t.refreshAll()},o.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},o.Context=t}(),function(){"use strict";function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}function n(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},o=window.Waypoint;n.prototype.add=function(e){this.waypoints.push(e)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],o="up"===n||"left"===n;i.sort(o?t:e);for(var a=0,s=i.length;a<s;a+=1){var r=i[a];(r.options.continuous||a===i.length-1)&&r.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(t){this.waypoints.sort(e);var n=o.Adapter.inArray(t,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},n.prototype.previous=function(t){this.waypoints.sort(e);var n=o.Adapter.inArray(t,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},n.prototype.remove=function(e){var t=o.Adapter.inArray(e,this.waypoints);t>-1&&this.waypoints.splice(t,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(e){return i[e.axis][e.name]||new n(e)},o.Group=n}(),function(){"use strict";function e(e){this.$element=t(e)}var t=window.jQuery,n=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,n){e.prototype[n]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,e)}}),t.each(["extend","inArray","isEmptyObject"],function(n,i){e[i]=t[i]}),n.adapters.push({name:"jquery",Adapter:e}),n.Adapter=e}(),function(){"use strict";function e(e){return function(){var n=[],i=arguments[0];return e.isFunction(arguments[0])&&(i=e.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var o=e.extend({},i,{element:this});"string"==typeof o.context&&(o.context=e(this).closest(o.context)[0]),n.push(new t(o))}),n}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}()},function(e,t,n){var i,o,a;!function(s){"use strict";o=[n(0)],i=s,void 0!==(a="function"==typeof i?i.apply(t,o):i)&&(e.exports=a)}(function(e){"use strict";function t(t){return!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function n(t){return e.isFunction(t)||e.isPlainObject(t)?t:{top:t,left:t}}var i=e.scrollTo=function(t,n,i){return e(window).scrollTo(t,n,i)};return i.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(o,a,s){"object"==typeof a&&(s=a,a=0),"function"==typeof s&&(s={onAfter:s}),"max"===o&&(o=9e9),s=e.extend({},i.defaults,s),a=a||s.duration;var r=s.queue&&s.axis.length>1;return r&&(a/=2),s.offset=n(s.offset),s.over=n(s.over),this.each(function(){function l(t){var n=e.extend({},s,{queue:!0,duration:a,complete:t&&function(){t.call(u,f,s)}});h.animate(p,n)}if(null!==o){var c,d=t(this),u=d?this.contentWindow||window:this,h=e(u),f=o,p={};switch(typeof f){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(f)){f=n(f);break}f=d?e(f):e(f,u);case"object":if(0===f.length)return;(f.is||f.style)&&(c=(f=e(f)).offset())}var m=e.isFunction(s.offset)&&s.offset(u,f)||s.offset;e.each(s.axis.split(""),function(e,t){var n="x"===t?"Left":"Top",o=n.toLowerCase(),a="scroll"+n,g=h[a](),v=i.max(u,t);if(c)p[a]=c[o]+(d?0:g-h.offset()[o]),s.margin&&(p[a]-=parseInt(f.css("margin"+n),10)||0,p[a]-=parseInt(f.css("border"+n+"Width"),10)||0),p[a]+=m[o]||0,s.over[o]&&(p[a]+=f["x"===t?"width":"height"]()*s.over[o]);else{var _=f[o];p[a]=_.slice&&"%"===_.slice(-1)?parseFloat(_)/100*v:_}s.limit&&/^\d+$/.test(p[a])&&(p[a]=p[a]<=0?0:Math.min(p[a],v)),!e&&s.axis.length>1&&(g===p[a]?p={}:r&&(l(s.onAfterFirst),p={}))}),l(s.onAfter)}})},i.max=function(n,i){var o="x"===i?"Width":"Height",a="scroll"+o;if(!t(n))return n[a]-e(n)[o.toLowerCase()]();var s="client"+o,r=n.ownerDocument||n.document,l=r.documentElement,c=r.body;return Math.max(l[a],c[a])-Math.min(l[s],c[s])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var n=this.get(t);if(t.options.interrupt&&t._last&&t._last!==n)return e(t.elem).stop();var i=Math.round(t.now);n!==i&&(e(t.elem)[t.prop](i),t._last=this.get(t))}},i})},function(e,t){!function(e){var t=e(window),n=t.height();t.resize(function(){n=t.height()}),e.fn.parallax=function(i,o,a){function s(){var a=t.scrollTop();c.each(function(){var t=e(this),s=t.offset().top;s+r(t)<a||s>a+n||c.css("backgroundPosition",i+" "+Math.round((l-a)*o)+"px")})}var r,l,c=e(this);c.each(function(){l=c.offset().top}),r=a?function(e){return e.outerHeight(!0)}:function(e){return e.height()},(arguments.length<1||null===i)&&(i="50%"),(arguments.length<2||null===o)&&(o=.1),(arguments.length<3||null===a)&&(a=!0),t.bind("scroll",s).resize(s),s()}}(jQuery)},function(e,t,n){var i,o,a;!function(s){o=[n(0)],i=s,void 0!==(a="function"==typeof i?i.apply(t,o):i)&&(e.exports=a)}(function(e){function t(t,n){var a=this;a.options=e.extend({},o,n),a.navigation=e(t),a.document=e(document),a.window=e(window),""==a.options.parent&&(this.options.parent=this.navigation.parent()),a.nav_open=!1,a.parent_full_width=0,a.radCoef=180/Math.PI,a.sTouch={x:0,y:0},a.cTouch={x:0,y:0},a.sTime=0,a.nav_position=0,a.percent_open=0,a.nav_moving=!1,i&&(a.jnewsLibrary=i,a.init())}var n="object"==typeof jnews&&"object"==typeof jnews.library,i=!!n&&jnews.library,o={parent:"",toggle_icon_class:"okayNav__menu-toggle",toggle_icon_content:"<span /><span /><span />",align_right:!0,swipe_enabled:!0,threshold:50,resize_delay:10,beforeOpen:function(){},afterOpen:function(){},beforeClose:function(){},afterClose:function(){},itemHidden:function(){},itemDisplayed:function(){}};t.prototype={init:function(){var t=this;e("body").addClass("okayNav-loaded"),t.navigation.addClass("okayNav loaded").children("ul").addClass("okayNav__nav--visible"),t.options.align_right?t.navigation.append('<ul class="okayNav__nav--invisible transition-enabled nav-right" />').append('<a href="#" class="'+t.options.toggle_icon_class+' okay-invisible">'+t.options.toggle_icon_content+"</a>"):t.navigation.prepend('<ul class="okayNav__nav--invisible transition-enabled nav-left" />').prepend('<a href="#" class="'+t.options.toggle_icon_class+' okay-invisible">'+t.options.toggle_icon_content+"</a>"),t.nav_visible=t.navigation.children(".okayNav__nav--visible"),t.nav_invisible=t.navigation.children(".okayNav__nav--invisible"),t.toggle_icon=t.navigation.children("."+t.options.toggle_icon_class),t.toggle_icon_width=t.toggle_icon.outerWidth(!0),t.default_width=t.getChildrenWidth(t.navigation),t.parent_full_width=e(t.options.parent).outerWidth(!0),t.last_visible_child_width=0,t.initEvents(),t.nav_visible.contents().filter(function(){return this.nodeType=Node.TEXT_NODE&&!1===/\S/.test(this.nodeValue)}).remove(),1==t.options.swipe_enabled&&t.initSwipeEvents()},initEvents:function(){var t=this;t.options.parent.on("click.okayNav",function(n){var i=e(n.target);!0===t.nav_open&&0==i.closest(".okayNav").length&&t.closeInvisibleNav(),i.hasClass(t.options.toggle_icon_class)&&(n.preventDefault(),t.toggleInvisibleNav())}),e(document).on("mouseup.okayNav",function(n){e(n.target);!e(n.target).parents(".okayNav").length>0&&t.closeInvisibleNav()});var n=t._debounce(function(){t.recalcNav()},t.options.recalc_delay);t.window.on("load.okayNav ready.okayNav resize.okayNav",n),e(document).on("ready.okayNav",n),n()},initSwipeEvents:function(){var t=this;t.document.on("touchstart.okayNav",function(n){if(t.nav_invisible.removeClass("transition-enabled"),1==n.originalEvent.touches.length){var i=n.originalEvent.touches[0];(i.pageX<25&&0==t.options.align_right||i.pageX>e(t.options.parent).outerWidth(!0)-25&&1==t.options.align_right||!0===t.nav_open)&&(t.sTouch.x=t.cTouch.x=i.pageX,t.sTouch.y=t.cTouch.y=i.pageY,t.sTime=Date.now())}}).on("touchmove.okayNav",function(e){var n=e.originalEvent.touches[0];t._triggerMove(n.pageX,n.pageY),t.nav_moving=!0}).on("touchend.okayNav",function(e){t.sTouch={x:0,y:0},t.cTouch={x:0,y:0},t.sTime=0,t.percent_open>100-t.options.threshold?(t.nav_position=0,t.closeInvisibleNav()):1==t.nav_moving&&(t.nav_position=t.nav_invisible.width(),t.openInvisibleNav()),t.nav_moving=!1,t.nav_invisible.addClass("transition-enabled")})},_getDirection:function(e){return this.options.align_right?e>0?-1:1:e<0?-1:1},_triggerMove:function(e,t){var n=this;n.cTouch.x=e,n.cTouch.y=t;var i=Date.now(),o=n.cTouch.x-n.sTouch.x,a=n.cTouch.y-n.sTouch.y,s=a*a,r=Math.sqrt(o*o+s),l=Math.sqrt(s),c=Math.asin(Math.sin(l/r))*n.radCoef;n.sTime;if(n.sTouch.x=e,n.sTouch.y=t,c<20){var d=n._getDirection(o),u=n.nav_position+d*r,h=n.nav_invisible.width(),f=0;u<0?f=-u:u>h&&(f=h-u);var p=h-(n.nav_position+d*r+f),m=p/h*100;n.nav_position+=d*r+f,n.percent_open=m}},getParent:function(){return this.options.parent},getVisibleNav:function(){return this.nav_visible},getInvisibleNav:function(){return this.nav_invisible},getNavToggleIcon:function(){return this.toggle_icon},_debounce:function(e,t,n){var i,o=this;return function(){var t=this,a=arguments,s=function(){i&&o.jnewsLibrary.cancelAnimationFrame.call(o.jnewsLibrary.win,i),n||e.apply(t,a)},r=n&&!i;i&&o.jnewsLibrary.cancelAnimationFrame.call(o.jnewsLibrary.win,i),i=o.jnewsLibrary.requestAnimationFrame.call(o.jnewsLibrary.win,s),r&&e.apply(t,a)}},openInvisibleNav:function(){var e=this;e.options.enable_swipe||e.options.beforeOpen.call(),e.toggle_icon.addClass("icon--active"),e.nav_invisible.addClass("nav-open"),e.nav_open=!0,e.options.afterOpen.call()},closeInvisibleNav:function(){var e=this;e.options.enable_swipe||e.options.beforeClose.call(),e.toggle_icon.removeClass("icon--active"),e.nav_invisible.removeClass("nav-open"),e.nav_open=!1,e.options.afterClose.call()},toggleInvisibleNav:function(){var e=this;e.nav_open?e.closeInvisibleNav():e.openInvisibleNav()},getChildrenWidth:function(t){for(var n=0,i=e(t).children(),o=0;o<i.length;o++)n+=e(i[o]).outerWidth(!0);return n},getVisibleItemCount:function(){return e("li",this.nav_visible).length},getHiddenItemCount:function(){return e("li",this.nav_invisible).length},recalcNav:function(){var t=this,n=e(t.options.parent).outerWidth(!0),i=t.getChildrenWidth(t.options.parent),o=t.navigation.outerWidth(!0),a=t.getVisibleItemCount(),s=t.nav_visible.outerWidth(!0)+t.toggle_icon_width,r=i+t.last_visible_child_width+t.toggle_icon_width;if(n>i-o+t.default_width)return t._expandAllItems(),void t.toggle_icon.addClass("okay-invisible");a>0&&o<=s&&n<=r&&t._collapseNavItem(),n>r+t.toggle_icon_width+15&&t._expandNavItem(),0==t.getHiddenItemCount()?t.toggle_icon.addClass("okay-invisible"):t.toggle_icon.removeClass("okay-invisible")},_collapseNavItem:function(){var t=this,n=e("li:last-child",t.nav_visible);t.last_visible_child_width=n.outerWidth(!0),t.document.trigger("okayNav:collapseItem",n),n.detach().prependTo(t.nav_invisible),t.options.itemHidden.call(),t.jnewsLibrary.requestAnimationFrame.call(t.jnewsLibrary.win,function(){t.recalcNav()})},_expandNavItem:function(){var t=this,n=e("li:first-child",t.nav_invisible);t.document.trigger("okayNav:expandItem",n),n.detach().appendTo(t.nav_visible),t.options.itemDisplayed.call()},_expandAllItems:function(){var t=this;e("li",t.nav_invisible).detach().appendTo(t.nav_visible),t.options.itemDisplayed.call()},_collapseAllItems:function(){var t=this;e("li",t.nav_visible).detach().appendTo(t.nav_invisible),t.options.itemHidden.call()},destroy:function(){var t=this;e("li",t.nav_invisible).appendTo(t.nav_visible),t.nav_invisible.remove(),t.nav_visible.removeClass("okayNav__nav--visible"),t.toggle_icon.remove(),t.document.unbind(".okayNav"),t.window.unbind(".okayNav")}},e.fn.okayNav=function(n){var o=arguments;if(void 0===n||"object"==typeof n)return this.each(function(){var o=this;i&&i.requestAnimationFrame.call(i.win,function(){e.data(o,"plugin_okayNav")||e.data(o,"plugin_okayNav",new t(o,n))})});if("string"==typeof n&&"_"!==n[0]&&"init"!==n){var a;return this.each(function(){var s=this;i&&i.requestAnimationFrame.call(i.win,function(){var i=e.data(s,"plugin_okayNav");i instanceof t&&"function"==typeof i[n]&&(a=i[n].apply(i,Array.prototype.slice.call(o,1))),"destroy"===n&&e.data(s,"plugin_okayNav",null)})}),void 0!==a?a:this}}})},function(e,t,n){var i,o,a;!function(s){o=[n(0)],i=s,void 0!==(a="function"==typeof i?i.apply(t,o):i)&&(e.exports=a)}(function(e){function t(t){var s=t||window.event,r=l.call(arguments,1),c=0,u=0,h=0,f=0,p=0,m=0;if(t=e.event.fix(s),t.type="mousewheel","detail"in s&&(h=-1*s.detail),"wheelDelta"in s&&(h=s.wheelDelta),"wheelDeltaY"in s&&(h=s.wheelDeltaY),"wheelDeltaX"in s&&(u=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(u=-1*h,h=0),c=0===h?u:h,"deltaY"in s&&(h=-1*s.deltaY,c=h),"deltaX"in s&&(u=s.deltaX,0===h&&(c=-1*u)),0!==h||0!==u){if(1===s.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,h*=g,u*=g}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,h*=v,u*=v}if(f=Math.max(Math.abs(h),Math.abs(u)),(!a||f<a)&&(a=f,i(s,f)&&(a/=40)),i(s,f)&&(c/=40,u/=40,h/=40),c=Math[c>=1?"floor":"ceil"](c/a),u=Math[u>=1?"floor":"ceil"](u/a),h=Math[h>=1?"floor":"ceil"](h/a),d.settings.normalizeOffset&&this.getBoundingClientRect){var _=this.getBoundingClientRect();p=t.clientX-_.left,m=t.clientY-_.top}return t.deltaX=u,t.deltaY=h,t.deltaFactor=a,t.offsetX=p,t.offsetY=m,t.deltaMode=0,r.unshift(t,c,u,h),o&&clearTimeout(o),o=setTimeout(n,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function n(){a=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,a,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=s.length;c;)e.event.fixHooks[s[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=r.length;n;)this.addEventListener(r[--n],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=r.length;n;)this.removeEventListener(r[--n],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})})},function(e,t,n){var i,o,a;!function(s){o=[n(0)],i=s,void 0!==(a="function"==typeof i?i.apply(t,o):i)&&(e.exports=a)}(function(e){e.fn.jScrollPane=function(t){function n(t,n){function i(n){var s,l,d,u,h,m,g,v,_=!1,y=!1;if(W=n,l=0,d=0,void 0===q)h=t.scrollTop(),m=t.scrollLeft(),t.css({overflow:"hidden",padding:"0"}),R=t.innerWidth()+_e,F=t.innerHeight(),t.width(R),q=e('<div class="jspPane"></div>').css("padding",ve).append(t.children()),$=e('<div class="jspContainer"></div>').css({width:R+"px",height:F+"px"}).append(q).appendTo(t);else{if(t.css("width",""),$.css({width:"auto",height:"auto"}),q.css("position","static"),g=t.innerWidth()+_e,v=t.innerHeight(),q.css("position","absolute"),_=W.stickToBottom&&S(),y=W.stickToRight&&z(),u=g!==R||v!==F,R=g,F=v,$.css({width:R+"px",height:F+"px"}),!u&&ye==Y&&q.outerHeight()==Q)return void t.width(R);ye=Y,q.css("width",""),t.width(R),$.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}q.css("overflow","auto"),Y=n.contentWidth?n.contentWidth:q[0].scrollWidth,Q=q[0].scrollHeight,q.css("overflow",""),U=Y/R,X=Q/F,V=X>1||W.alwaysShowVScroll,G=U>1||W.alwaysShowHScroll,G||V?(t.addClass("jspScrollable"),s=W.maintainPosition&&(K||ne),s&&(l=k(),d=T()),a(),r(),c(),(W.stickToBottom||W.stickToRight)&&(x(y?Y-R:l,!1),j(_?Q-F:d,!1)),B(),E(),H(),W.enableKeyboardNavigation&&M(),W.clickOnTrack&&f(),D(),W.hijackInternalLinks&&O()):(t.removeClass("jspScrollable"),q.css({top:"0",left:"0",width:$.width()-_e}),I(),A(),P(),p()),W.resizeSensor||!W.autoReinitialise||ge?W.resizeSensor||W.autoReinitialise||!ge||clearInterval(ge):ge=setInterval(function(){i(W)},W.autoReinitialiseDelay),W.resizeSensor&&!Te&&(o(q,ze),o(t,ze),o(t.parent(),ze),window.addEventListener("resize",ze),Te=!0),h&&t.scrollTop(0)&&j(h,!1),m&&t.scrollLeft(0)&&x(m,!1),t.trigger("jsp-initialised",[G||V])}function o(e,t){var n,i,o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),r=document.createElement("div"),l=document.createElement("div");o.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;",a.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;",r.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: scroll; z-index: -1; visibility: hidden;",s.style.cssText="position: absolute; left: 0; top: 0;",l.style.cssText="position: absolute; left: 0; top: 0; width: 200%; height: 200%;";var c=function(){s.style.width=a.offsetWidth+10+"px",s.style.height=a.offsetHeight+10+"px",a.scrollLeft=a.scrollWidth,a.scrollTop=a.scrollHeight,r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,n=e.width(),i=e.height()},d=function(){(e.width()>n||e.height()>i)&&t.apply(this,[]),c()},u=function(){(e.width()<n||e.height()<i)&&t.apply(this,[]),c()};a.addEventListener("scroll",d.bind(this)),r.addEventListener("scroll",u.bind(this)),a.appendChild(s),r.appendChild(l),o.appendChild(a),o.appendChild(r),e.append(o),"static"===window.getComputedStyle(e[0],null).getPropertyValue("position")&&(e[0].style.position="relative"),c()}function a(){V&&($.append(e('<div class="jspVerticalBar"></div>').append(e('<div class="jspCap jspCapTop"></div>'),e('<div class="jspTrack"></div>').append(e('<div class="jspDrag"></div>').append(e('<div class="jspDragTop"></div>'),e('<div class="jspDragBottom"></div>'))),e('<div class="jspCap jspCapBottom"></div>'))),ie=$.find(">.jspVerticalBar"),oe=ie.find(">.jspTrack"),Z=oe.find(">.jspDrag"),W.showArrows&&(le=e('<a class="jspArrow jspArrowUp"></a>').on("mousedown.jsp",u(0,-1)).on("click.jsp",L),ce=e('<a class="jspArrow jspArrowDown"></a>').on("mousedown.jsp",u(0,1)).on("click.jsp",L),W.arrowScrollOnHover&&(le.on("mouseover.jsp",u(0,-1,le)),ce.on("mouseover.jsp",u(0,1,ce))),d(oe,W.verticalArrowPositions,le,ce)),se=F,$.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){se-=e(this).outerHeight()}),Z.on("mouseenter",function(){Z.addClass("jspHover")}).on("mouseleave",function(){Z.removeClass("jspHover")}).on("mousedown.jsp",function(t){e("html").on("dragstart.jsp selectstart.jsp",L),Z.addClass("jspActive");var n=t.pageY-Z.position().top;return e("html").on("mousemove.jsp",function(e){g(e.pageY-n,!1)}).on("mouseup.jsp mouseleave.jsp",m),!1}),s())}function s(){oe.height(se+"px"),K=0,ae=W.verticalGutter+oe.outerWidth();try{0===ie.position().left&&q.css("margin-left",ae+"px")}catch(e){}}function r(){G&&($.append(e('<div class="jspHorizontalBar"></div>').append(e('<div class="jspCap jspCapLeft"></div>'),e('<div class="jspTrack"></div>').append(e('<div class="jspDrag"></div>').append(e('<div class="jspDragLeft"></div>'),e('<div class="jspDragRight"></div>'))),e('<div class="jspCap jspCapRight"></div>'))),de=$.find(">.jspHorizontalBar"),ue=de.find(">.jspTrack"),ee=ue.find(">.jspDrag"),W.showArrows&&(pe=e('<a class="jspArrow jspArrowLeft"></a>').on("mousedown.jsp",u(-1,0)).on("click.jsp",L),me=e('<a class="jspArrow jspArrowRight"></a>').on("mousedown.jsp",u(1,0)).on("click.jsp",L),W.arrowScrollOnHover&&(pe.on("mouseover.jsp",u(-1,0,pe)),me.on("mouseover.jsp",u(1,0,me))),d(ue,W.horizontalArrowPositions,pe,me)),ee.on("mouseenter",function(){ee.addClass("jspHover")}).on("mouseleave",function(){ee.removeClass("jspHover")}).on("mousedown.jsp",function(t){e("html").on("dragstart.jsp selectstart.jsp",L),ee.addClass("jspActive");var n=t.pageX-ee.position().left;return e("html").on("mousemove.jsp",function(e){_(e.pageX-n,!1)}).on("mouseup.jsp mouseleave.jsp",m),!1}),he=$.innerWidth(),l())}function l(){$.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){he-=e(this).outerWidth()}),ue.width(he+"px"),ne=0}function c(){if(G&&V){var t=ue.outerHeight(),n=oe.outerWidth();se-=t,e(de).find(">.jspCap:visible,>.jspArrow").each(function(){he+=e(this).outerWidth()}),he-=n,F-=n,R-=t,ue.parent().append(e('<div class="jspCorner"></div>').css("width",t+"px")),s(),l()}G&&q.width($.outerWidth()-_e+"px"),Q=q.outerHeight(),X=Q/F,G&&(fe=Math.ceil(1/U*he),fe>W.horizontalDragMaxWidth?fe=W.horizontalDragMaxWidth:fe<W.horizontalDragMinWidth&&(fe=W.horizontalDragMinWidth),ee.css("width",fe+"px"),te=he-fe,y(ne)),V&&(re=Math.ceil(1/X*se),re>W.verticalDragMaxHeight?re=W.verticalDragMaxHeight:re<W.verticalDragMinHeight&&(re=W.verticalDragMinHeight),Z.css("height",re+"px"),J=se-re,v(K))}function d(e,t,n,i){var o,a="before",s="after";"os"==t&&(t=/Mac/.test(navigator.platform)?"after":"split"),t==a?s=t:t==s&&(a=t,o=n,n=i,i=o),e[a](n)[s](i)}function u(e,t,n){return function(){return h(e,t,this,n),this.blur(),!1}}function h(t,n,i,o){i=e(i).addClass("jspActive");var a,s,r=!0,l=function(){0!==t&&we.scrollByX(t*W.arrowButtonSpeed),0!==n&&we.scrollByY(n*W.arrowButtonSpeed),s=setTimeout(l,r?W.initialDelay:W.arrowRepeatFreq),r=!1};l(),a=o?"mouseout.jsp":"mouseup.jsp",o=o||e("html"),o.on(a,function(){i.removeClass("jspActive"),s&&clearTimeout(s),s=null,o.off(a)})}function f(){p(),V&&oe.on("mousedown.jsp",function(t){if(void 0===t.originalTarget||t.originalTarget==t.currentTarget){var n,i=e(this),o=i.offset(),a=t.pageY-o.top-K,s=!0,r=function(){var e=i.offset(),o=t.pageY-e.top-re/2,c=F*W.scrollPagePercent,d=J*c/(Q-F);if(a<0)K-d>o?we.scrollByY(-c):g(o);else{if(!(a>0))return void l();K+d<o?we.scrollByY(c):g(o)}n=setTimeout(r,s?W.initialDelay:W.trackClickRepeatFreq),s=!1},l=function(){n&&clearTimeout(n),n=null,e(document).off("mouseup.jsp",l)};return r(),e(document).on("mouseup.jsp",l),!1}}),G&&ue.on("mousedown.jsp",function(t){if(void 0===t.originalTarget||t.originalTarget==t.currentTarget){var n,i=e(this),o=i.offset(),a=t.pageX-o.left-ne,s=!0,r=function(){var e=i.offset(),o=t.pageX-e.left-fe/2,c=R*W.scrollPagePercent,d=te*c/(Y-R);if(a<0)ne-d>o?we.scrollByX(-c):_(o);else{if(!(a>0))return void l();ne+d<o?we.scrollByX(c):_(o)}n=setTimeout(r,s?W.initialDelay:W.trackClickRepeatFreq),s=!1},l=function(){n&&clearTimeout(n),n=null,e(document).off("mouseup.jsp",l)};return r(),e(document).on("mouseup.jsp",l),!1}})}function p(){ue&&ue.off("mousedown.jsp"),oe&&oe.off("mousedown.jsp")}function m(){e("html").off("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),Z&&Z.removeClass("jspActive"),ee&&ee.removeClass("jspActive")}function g(n,i){if(V){n<0?n=0:n>J&&(n=J);var o=new e.Event("jsp-will-scroll-y");if(t.trigger(o,[n]),!o.isDefaultPrevented()){var a=n||0,s=0===a,r=a==J,l=n/J,c=-l*(Q-F);void 0===i&&(i=W.animateScroll),i?we.animate(Z,"top",n,v,function(){t.trigger("jsp-user-scroll-y",[-c,s,r])}):(Z.css("top",n+"px"),v(n),t.trigger("jsp-user-scroll-y",[-c,s,r]))}}}function v(e){void 0===e&&(e=Z.position().top),$.scrollTop(0),K=e||0;var n=0===K,i=K==J,o=e/J,a=-o*(Q-F);be==n&&xe==i||(be=n,xe=i,t.trigger("jsp-arrow-change",[be,xe,je,Ce])),w(n,i),q.css("top",a+"px"),t.trigger("jsp-scroll-y",[-a,n,i]).trigger("scroll")}function _(n,i){if(G){n<0?n=0:n>te&&(n=te);var o=new e.Event("jsp-will-scroll-x");if(t.trigger(o,[n]),!o.isDefaultPrevented()){var a=n||0,s=0===a,r=a==te,l=n/te,c=-l*(Y-R);void 0===i&&(i=W.animateScroll),i?we.animate(ee,"left",n,y,function(){t.trigger("jsp-user-scroll-x",[-c,s,r])}):(ee.css("left",n+"px"),y(n),t.trigger("jsp-user-scroll-x",[-c,s,r]))}}}function y(e){void 0===e&&(e=ee.position().left),$.scrollTop(0),ne=e||0;var n=0===ne,i=ne==te,o=e/te,a=-o*(Y-R);je==n&&Ce==i||(je=n,Ce=i,t.trigger("jsp-arrow-change",[be,xe,je,Ce])),b(n,i),q.css("left",a+"px"),t.trigger("jsp-scroll-x",[-a,n,i]).trigger("scroll")}function w(e,t){W.showArrows&&(le[e?"addClass":"removeClass"]("jspDisabled"),ce[t?"addClass":"removeClass"]("jspDisabled"))}function b(e,t){W.showArrows&&(pe[e?"addClass":"removeClass"]("jspDisabled"),me[t?"addClass":"removeClass"]("jspDisabled"))}function j(e,t){g(e/(Q-F)*J,t)}function x(e,t){_(e/(Y-R)*te,t)}function C(t,n,i){var o,a,s,r,l,c,d,u,h,f=0,p=0;try{o=e(t)}catch(e){return}for(a=o.outerHeight(),s=o.outerWidth(),$.scrollTop(0),$.scrollLeft(0);!o.is(".jspPane");)if(f+=o.position().top,p+=o.position().left,o=o.offsetParent(),/^body|html$/i.test(o[0].nodeName))return;r=T(),c=r+F,f<r||n?u=f-W.horizontalGutter:f+a>c&&(u=f-F+a+W.horizontalGutter),isNaN(u)||j(u,i),l=k(),d=l+R,p<l||n?h=p-W.horizontalGutter:p+s>d&&(h=p-R+s+W.horizontalGutter),isNaN(h)||x(h,i)}function k(){return-q.position().left}function T(){return-q.position().top}function S(){var e=Q-F;return 1!=W.maintainPosition||e>=20&&e-T()<10}function z(){var e=Y-R;return 1!=W.maintainPosition||e>=20&&e-k()<10}function E(){$.off(Se).on(Se,function(e,t,n,i){ne||(ne=0),K||(K=0);var o=ne,a=K,s=e.deltaFactor||W.mouseWheelSpeed;return we.scrollBy(n*s,-i*s,!1),o==ne&&a==K})}function I(){$.off(Se)}function L(){return!1}function B(){q.find(":input,a").off("focus.jsp").on("focus.jsp",function(e){C(e.target,!1)})}function A(){q.find(":input,a").off("focus.jsp")}function M(){function n(){var e=ne,t=K;switch(i){case 40:we.scrollByY(W.keyboardSpeed,!1);break;case 38:we.scrollByY(-W.keyboardSpeed,!1);break;case 34:case 32:we.scrollByY(F*W.scrollPagePercent,!1);break;case 33:we.scrollByY(-F*W.scrollPagePercent,!1);break;case 39:we.scrollByX(W.keyboardSpeed,!1);break;case 37:we.scrollByX(-W.keyboardSpeed,!1)}return o=e!=ne||t!=K}var i,o,a=[];G&&a.push(de[0]),V&&a.push(ie[0]),q.on("focus.jsp",function(){t.focus()}),t.attr("tabindex",0).off("keydown.jsp keypress.jsp").on("keydown.jsp",function(t){if(t.target===this||a.length&&e(t.target).closest(a).length){var s=ne,r=K;switch(t.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:i=t.keyCode,n();break;case 35:j(Q-F),i=null;break;case 36:j(0),i=null}return!(o=t.keyCode==i&&s!=ne||r!=K)}}).on("keypress.jsp",function(t){if(t.keyCode==i&&n(),t.target===this||a.length&&e(t.target).closest(a).length)return!o}),W.hideFocus?(t.css("outline","none"),"hideFocus"in $[0]&&t.attr("hideFocus",!0)):(t.css("outline",""),"hideFocus"in $[0]&&t.attr("hideFocus",!1))}function P(){t.attr("tabindex","-1").removeAttr("tabindex").off("keydown.jsp keypress.jsp"),q.off(".jsp")}function D(){if(location.hash&&location.hash.length>1){var t,n,i=escape(location.hash.substr(1));try{t=e("#"+i+', a[name="'+i+'"]')}catch(e){return}t.length&&q.find(i)&&(0===$.scrollTop()?n=setInterval(function(){$.scrollTop()>0&&(C(t,!0),e(document).scrollTop($.position().top),clearInterval(n))},50):(C(t,!0),e(document).scrollTop($.position().top)))}}function O(){e(document.body).data("jspHijack")||(e(document.body).data("jspHijack",!0),e(document.body).delegate('a[href*="#"]',"click",function(t){var n,i,o,a,s,r,l=this.href.substr(0,this.href.indexOf("#")),c=location.href;if(-1!==location.href.indexOf("#")&&(c=location.href.substr(0,location.href.indexOf("#"))),l===c){n=escape(this.href.substr(this.href.indexOf("#")+1));try{i=e("#"+n+', a[name="'+n+'"]')}catch(e){return}i.length&&(o=i.closest(".jspScrollable"),a=o.data("jsp"),a.scrollToElement(i,!0),o[0].scrollIntoView&&(s=e(window).scrollTop(),((r=i.offset().top)<s||r>s+e(window).height())&&o[0].scrollIntoView()),t.preventDefault())}}))}function H(){var e,t,n,i,o,a=!1;$.off("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").on("touchstart.jsp",function(s){var r=s.originalEvent.touches[0];e=k(),t=T(),n=r.pageX,i=r.pageY,o=!1,a=!0}).on("touchmove.jsp",function(s){if(a){var r=s.originalEvent.touches[0],l=ne,c=K;return we.scrollTo(e+n-r.pageX,t+i-r.pageY),o=o||Math.abs(n-r.pageX)>5||Math.abs(i-r.pageY)>5,l==ne&&c==K}}).on("touchend.jsp",function(e){a=!1}).on("click.jsp-touchclick",function(e){if(o)return o=!1,!1})}function N(){var e=T(),n=k();t.removeClass("jspScrollable").off(".jsp"),q.off(".jsp"),t.replaceWith(ke.append(q.children())),ke.scrollTop(e),ke.scrollLeft(n),ge&&clearInterval(ge)}var W,q,R,F,$,Y,Q,U,X,V,G,Z,J,K,ee,te,ne,ie,oe,ae,se,re,le,ce,de,ue,he,fe,pe,me,ge,ve,_e,ye,we=this,be=!0,je=!0,xe=!1,Ce=!1,ke=t.clone(!1,!1).empty(),Te=!1,Se=e.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp",ze=function(){W.resizeSensorDelay>0?setTimeout(function(){i(W)},W.resizeSensorDelay):i(W)};"border-box"===t.css("box-sizing")?(ve=0,_e=0):(ve=t.css("paddingTop")+" "+t.css("paddingRight")+" "+t.css("paddingBottom")+" "+t.css("paddingLeft"),_e=(parseInt(t.css("paddingLeft"),10)||0)+(parseInt(t.css("paddingRight"),10)||0)),e.extend(we,{reinitialise:function(t){t=e.extend({},W,t),i(t)},scrollToElement:function(e,t,n){C(e,t,n)},scrollTo:function(e,t,n){x(e,n),j(t,n)},scrollToX:function(e,t){x(e,t)},scrollToY:function(e,t){j(e,t)},scrollToPercentX:function(e,t){x(e*(Y-R),t)},scrollToPercentY:function(e,t){j(e*(Q-F),t)},scrollBy:function(e,t,n){we.scrollByX(e,n),we.scrollByY(t,n)},scrollByX:function(e,t){_((k()+Math[e<0?"floor":"ceil"](e))/(Y-R)*te,t)},scrollByY:function(e,t){g((T()+Math[e<0?"floor":"ceil"](e))/(Q-F)*J,t)},positionDragX:function(e,t){_(e,t)},positionDragY:function(e,t){g(e,t)},animate:function(e,t,n,i,o){var a={};a[t]=n,e.animate(a,{duration:W.animateDuration,easing:W.animateEase,queue:!1,step:i,complete:o})},getContentPositionX:function(){return k()},getContentPositionY:function(){return T()},getContentWidth:function(){return Y},getContentHeight:function(){return Q},getPercentScrolledX:function(){return k()/(Y-R)},getPercentScrolledY:function(){return T()/(Q-F)},getIsScrollableH:function(){return G},getIsScrollableV:function(){return V},getContentPane:function(){return q},scrollToBottom:function(e){g(J,e)},hijackInternalLinks:e.noop,destroy:function(){N()}}),i(n)}return t=e.extend({},e.fn.jScrollPane.defaults,t),e.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){t[this]=t[this]||t.speed}),this.each(function(){var i=e(this),o=i.data("jsp");o?o.reinitialise(t):(e("script",i).filter('[type="text/javascript"],:not([type])').remove(),o=new n(i,t),i.data("jsp",o))})},e.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:void 0,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:3,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8,alwaysShowVScroll:!1,alwaysShowHScroll:!1,resizeSensor:!1,resizeSensorDelay:0}})},function(e,t){!function(t,n,i){function o(e,t){return typeof e===t}function a(e){var t=S.className,n=C._config.classPrefix||"";if(z&&(t=t.baseVal),C._config.enableJSClass){var i=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(i,"$1"+n+"js$2")}C._config.enableClasses&&(t+=" "+n+e.join(" "+n),z?S.className.baseVal=t:S.className=t)}function s(e,t){if("object"==typeof e)for(var n in e)L(e,n)&&s(n,e[n]);else{e=e.toLowerCase();var i=e.split("."),o=C[i[0]];if(2==i.length&&(o=o[i[1]]),void 0!==o)return C;t="function"==typeof t?t():t,1==i.length?C[i[0]]=t:(!C[i[0]]||C[i[0]]instanceof Boolean||(C[i[0]]=new Boolean(C[i[0]])),C[i[0]][i[1]]=t),a([(t&&0!=t?"":"no-")+i.join("-")]),C._trigger(e,t)}return C}function r(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):z?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function l(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function c(e,t){return!!~(""+e).indexOf(t)}function d(){var e=n.body;return e||(e=r(z?"svg":"body"),e.fake=!0),e}function u(e,t,i,o){var a,s,l,c,u="modernizr",h=r("div"),f=d();if(parseInt(i,10))for(;i--;)l=r("div"),l.id=o?o[i]:u+(i+1),h.appendChild(l);return a=r("style"),a.type="text/css",a.id="s"+u,(f.fake?f:h).appendChild(a),f.appendChild(h),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(n.createTextNode(e)),h.id=u,f.fake&&(f.style.background="",f.style.overflow="hidden",c=S.style.overflow,S.style.overflow="hidden",S.appendChild(f)),s=t(h,e),f.fake?(f.parentNode.removeChild(f),S.style.overflow=c,S.offsetHeight):h.parentNode.removeChild(h),!!s}function h(e,t){return function(){return e.apply(t,arguments)}}function f(e,t,n){var i;for(var a in e)if(e[a]in t)return!1===n?e[a]:(i=t[e[a]],o(i,"function")?h(i,n||t):i);return!1}function p(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function m(e,n,i){var o;if("getComputedStyle"in t){o=getComputedStyle.call(t,e,n);var a=t.console;if(null!==o)i&&(o=o.getPropertyValue(i));else if(a){var s=a.error?"error":"log";a[s].call(a,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&e.currentStyle&&e.currentStyle[i];return o}function g(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(p(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var a=[];o--;)a.push("("+p(e[o])+":"+n+")");return a=a.join(" or "),u("@supports ("+a+") { #modernizr { position: absolute; } }",function(e){return"absolute"==m(e,null,"position")})}return i}function v(e,t,n,a){function s(){u&&(delete Q.style,delete Q.modElem)}if(a=!o(a,"undefined")&&a,!o(n,"undefined")){var d=g(e,n);if(!o(d,"undefined"))return d}for(var u,h,f,p,m,v=["modernizr","tspan","samp"];!Q.style&&v.length;)u=!0,Q.modElem=r(v.shift()),Q.style=Q.modElem.style;for(f=e.length,h=0;f>h;h++)if(p=e[h],m=Q.style[p],c(p,"-")&&(p=l(p)),Q.style[p]!==i){if(a||o(n,"undefined"))return s(),"pfx"!=t||p;try{Q.style[p]=n}catch(e){}if(Q.style[p]!=m)return s(),"pfx"!=t||p}return s(),!1}function _(e,t,n,i,a){var s=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+F.join(s+" ")+s).split(" ");return o(t,"string")||o(t,"undefined")?v(r,t,i,a):(r=(e+" "+I.join(s+" ")+s).split(" "),f(r,t,n))}function y(e,t){var n=e.deleteDatabase(t);n.onsuccess=function(){s("indexeddb.deletedatabase",!0)},n.onerror=function(){s("indexeddb.deletedatabase",!1)}}function w(e,t,n){return _(e,i,i,t,n)}var b=[],j=[],x={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){j.push({name:e,fn:t,options:n})},addAsyncTest:function(e){j.push({name:null,fn:e})}},C=function(){};C.prototype=x,C=new C,C.addTest("applicationcache","applicationCache"in t),C.addTest("geolocation","geolocation"in navigator),C.addTest("history",function(){var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")||"file:"===location.protocol)&&(t.history&&"pushState"in t.history)}),C.addTest("postmessage","postMessage"in t),C.addTest("svg",!!n.createElementNS&&!!n.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var k=!1;try{k="WebSocket"in t&&2===t.WebSocket.CLOSING}catch(e){}C.addTest("websockets",k),C.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}),C.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}),C.addTest("websqldatabase","openDatabase"in t),C.addTest("webworkers","Worker"in t);var T=x._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];x._prefixes=T;var S=n.documentElement,z="svg"===S.nodeName.toLowerCase();z||function(t,n){function i(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",i.insertBefore(n.lastChild,i.firstChild)}function o(){var e=y.elements;return"string"==typeof e?e.split(" "):e}function a(e,t){var n=y.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),y.elements=n+" "+e,d(t)}function s(e){var t=_[e[g]];return t||(t={},v++,e[g]=v,_[v]=t),t}function r(e,t,i){if(t||(t=n),h)return t.createElement(e);i||(i=s(t));var o;return o=i.cache[e]?i.cache[e].cloneNode():m.test(e)?(i.cache[e]=i.createElem(e)).cloneNode():i.createElem(e),!o.canHaveChildren||p.test(e)||o.tagUrn?o:i.frag.appendChild(o)}function l(e,t){if(e||(e=n),h)return e.createDocumentFragment();t=t||s(e);for(var i=t.frag.cloneNode(),a=0,r=o(),l=r.length;l>a;a++)i.createElement(r[a]);return i}function c(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?r(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+o().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function d(e){e||(e=n);var t=s(e);return!y.shivCSS||u||t.hasCSS||(t.hasCSS=!!i(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),h||c(e,t),e}var u,h,f=t.html5||{},p=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,m=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g="_html5shiv",v=0,_={};!function(){try{var e=n.createElement("a");e.innerHTML="<xyz></xyz>",u="hidden"in e,h=1==e.childNodes.length||function(){n.createElement("a");var e=n.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){u=!0,h=!0}}();var y={elements:f.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==f.shivCSS,supportsUnknownElements:h,shivMethods:!1!==f.shivMethods,type:"default",shivDocument:d,createElement:r,createDocumentFragment:l,addElements:a};t.html5=y,d(n),"object"==typeof e&&e.exports&&(e.exports=y)}(void 0!==t?t:this,n);var E="Moz O ms Webkit",I=x._config.usePrefixes?E.toLowerCase().split(" "):[];x._domPrefixes=I;var L;!function(){var e={}.hasOwnProperty;L=o(e,"undefined")||o(e.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),x._l={},x.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),C.hasOwnProperty(e)&&setTimeout(function(){C._trigger(e,C[e])},0)},x._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e]}},C._q.push(function(){x.addTest=s});var B=function(){function e(e,n){var o;return!!e&&(n&&"string"!=typeof n||(n=r(n||"div")),e="on"+e,o=e in n,!o&&t&&(n.setAttribute||(n=r("div")),n.setAttribute(e,""),o="function"==typeof n[e],n[e]!==i&&(n[e]=i),n.removeAttribute(e)),o)}var t=!("onblur"in n.documentElement);return e}();x.hasEvent=B,C.addTest("hashchange",function(){return!1!==B("hashchange",t)&&(n.documentMode===i||n.documentMode>7)}),C.addTest("audio",function(){var e=r("audio"),t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t),t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return t}),C.addTest("canvas",function(){var e=r("canvas");return!(!e.getContext||!e.getContext("2d"))}),C.addTest("canvastext",function(){return!1!==C.canvas&&"function"==typeof r("canvas").getContext("2d").fillText}),C.addTest("video",function(){var e=r("video"),t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(e){}return t}),C.addTest("webgl",function(){var e=r("canvas"),n="probablySupportsContext"in e?"probablySupportsContext":"supportsContext";return n in e?e[n]("webgl")||e[n]("experimental-webgl"):"WebGLRenderingContext"in t}),C.addTest("cssgradients",function(){for(var e,t="background-image:",n="",i=0,o=T.length-1;o>i;i++)e=0===i?"to ":"",n+=t+T[i]+"linear-gradient("+e+"left top, #9f9, white);";C._config.usePrefixes&&(n+=t+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));");var a=r("a"),s=a.style;return s.cssText=n,(""+s.backgroundImage).indexOf("gradient")>-1}),C.addTest("multiplebgs",function(){var e=r("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)}),C.addTest("opacity",function(){var e=r("a").style;return e.cssText=T.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),C.addTest("rgba",function(){var e=r("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}),C.addTest("inlinesvg",function(){var e=r("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)});var A=r("input"),M="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),P={};C.input=function(e){for(var n=0,i=e.length;i>n;n++)P[e[n]]=!!(e[n]in A);return P.list&&(P.list=!(!r("datalist")||!t.HTMLDataListElement)),P}(M);var D="search tel url email datetime date month week time datetime-local number range color".split(" "),O={};C.inputtypes=function(e){for(var t,o,a,s=e.length,r=0;s>r;r++)A.setAttribute("type",t=e[r]),a="text"!==A.type&&"style"in A,a&&(A.value="1)",A.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(t)&&A.style.WebkitAppearance!==i?(S.appendChild(A),o=n.defaultView,a=o.getComputedStyle&&"textfield"!==o.getComputedStyle(A,null).WebkitAppearance&&0!==A.offsetHeight,S.removeChild(A)):/^(search|tel)$/.test(t)||(a=/^(url|email)$/.test(t)?A.checkValidity&&!1===A.checkValidity():"1)"!=A.value)),O[e[r]]=!!a;return O}(D),C.addTest("hsla",function(){var e=r("a").style;return e.cssText="background-color:hsla(120,40%,100%,.5)",c(e.backgroundColor,"rgba")||c(e.backgroundColor,"hsla")});var H="CSS"in t&&"supports"in t.CSS,N="supportsCSS"in t;C.addTest("supports",H||N);var W={}.toString;C.addTest("svgclippaths",function(){return!!n.createElementNS&&/SVGClipPath/.test(W.call(n.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),C.addTest("smil",function(){return!!n.createElementNS&&/SVGAnimate/.test(W.call(n.createElementNS("http://www.w3.org/2000/svg","animate")))});var q=function(){var e=t.matchMedia||t.msMatchMedia;return e?function(t){var n=e(t);return n&&n.matches||!1}:function(e){var n=!1;return u("@media "+e+" { #modernizr { position: absolute; } }",function(e){n="absolute"==(t.getComputedStyle?t.getComputedStyle(e,null):e.currentStyle).position}),n}}();x.mq=q;var R=x.testStyles=u;!function(){var e=navigator.userAgent,t=e.match(/w(eb)?osbrowser/gi),n=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;return t||n}()?R('@font-face {font-family:"font";src:url("https://")}',function(e,t){var i=n.getElementById("smodernizr"),o=i.sheet||i.styleSheet,a=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"",s=/src/i.test(a)&&0===a.indexOf(t.split(" ")[0]);C.addTest("fontface",s)}):C.addTest("fontface",!1),R('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){C.addTest("generatedcontent",e.offsetHeight>=6)});var F=x._config.usePrefixes?E.split(" "):[];x._cssomPrefixes=F;var $=function(e){var n,o=T.length,a=t.CSSRule;if(void 0===a)return i;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in a)return"@"+e;for(var s=0;o>s;s++){var r=T[s];if(r.toUpperCase()+"_"+n in a)return"@-"+r.toLowerCase()+"-"+e}return!1};x.atRule=$;var Y={elem:r("modernizr")};C._q.push(function(){delete Y.elem});var Q={style:Y.elem.style};C._q.unshift(function(){delete Q.style});var U=x.testProp=function(e,t,n){return v([e],i,t,n)};C.addTest("textshadow",U("textShadow","1px 1px")),x.testAllProps=_;var X=x.prefixed=function(e,t,n){return 0===e.indexOf("@")?$(e):(-1!=e.indexOf("-")&&(e=l(e)),t?_(e,t,n):_(e,"pfx"))};C.addAsyncTest(function(){var e;try{e=X("indexedDB",t)}catch(e){}if(e){var n="modernizr-"+Math.random(),i=e.open(n);i.onerror=function(){i.error&&"InvalidStateError"===i.error.name?s("indexeddb",!1):(s("indexeddb",!0),y(e,n))},i.onsuccess=function(){s("indexeddb",!0),y(e,n)}}else s("indexeddb",!1)}),x.testAllProps=w,C.addTest("cssanimations",w("animationName","a",!0)),C.addTest("backgroundsize",w("backgroundSize","100%",!0)),C.addTest("borderimage",w("borderImage","url() 1",!0)),C.addTest("borderradius",w("borderRadius","0px",!0)),function(){C.addTest("csscolumns",function(){var e=!1,t=w("columnCount");try{(e=!!t)&&(e=new Boolean(e))}catch(e){}return e});for(var e,t,n=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],i=0;i<n.length;i++)e=n[i].toLowerCase(),t=w("column"+n[i]),("breakbefore"===e||"breakafter"===e||"breakinside"==e)&&(t=t||w(n[i])),C.addTest("csscolumns."+e,t)}(),C.addTest("boxshadow",w("boxShadow","1px 1px",!0)),C.addTest("flexbox",w("flexBasis","1px",!0)),C.addTest("cssreflections",w("boxReflect","above",!0)),C.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&w("transform","scale(1)",!0)}),C.addTest("csstransforms3d",function(){var e=!!w("perspective","1px",!0),t=C._config.usePrefixes;if(e&&(!t||"webkitPerspective"in S.style)){var n;C.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",R("#modernizr{width:0;height:0}"+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),C.addTest("csstransitions",w("transition","all",!0)),function(){var e,t,n,i,a,s,r;for(var l in j)if(j.hasOwnProperty(l)){if(e=[],t=j[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(i=o(t.fn,"function")?t.fn():t.fn,a=0;a<e.length;a++)s=e[a],r=s.split("."),1===r.length?C[r[0]]=i:(!C[r[0]]||C[r[0]]instanceof Boolean||(C[r[0]]=new Boolean(C[r[0]])),C[r[0]][r[1]]=i),b.push((i?"":"no-")+r.join("-"))}}(),a(b),delete x.addTest,delete x.addAsyncTest;for(var V=0;V<C._q.length;V++)C._q[V]();t.Modernizr=C}(window,document)},function(e,t){!function(e,t){"use strict";var n=function(e,t,n){var i;return function(){function o(){n||e.apply(a,s),i=null}var a=this,s=arguments;i?clearTimeout(i):n&&e.apply(a,s),i=setTimeout(o,t||50)}};jQuery.fn[t]=function(e){return e?this.bind("resize",n(e)):this.trigger(t)}}(jQuery,"smartresize")},function(e,t){(function(){var e,t,n,i,o,a=function(e,t){return function(){return e.apply(t,arguments)}},s={}.hasOwnProperty,r=function(e,t){function n(){this.constructor=e}for(var i in t)s.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};i=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,i,o,a,s;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:this.escapeExpression(e.label),title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),a=e.childNodes,s=[],i=0,o=a.length;i<o;i++)n=a[i],s.push(this.add_option(n,t,e.disabled));return s},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===n?n:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e.prototype.escapeExpression=function(e){var t,n;return null==e||!1===e?"":/[\&\<\>\"\'\`]/.test(e)?(t={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},n=/&(?!\w+;)|[\<\>\"\'\`]/g,e.replace(n,function(e){return t[e]||"&amp;"})):e},e}(),i.select_to_array=function(e){var t,n,o,a,s;for(n=new i,s=e.childNodes,o=0,a=s.length;o<a;o++)t=s[o],n.add_node(t);return n.parsed},t=function(){function e(t,n){this.form_field=t,this.options=null!=n?n:{},this.label_click_handler=a(this.label_click_handler,this),e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){var e=this;return this.click_test_action=function(t){return e.test_active_click(t)},this.activate_action=function(t){return e.activate_field(t)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+e.group_label+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},e.prototype.input_blur=function(e){var t=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return t.blur_test()},100)},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,n,i,o,a,s,r;for(t="",o=0,r=this.results_data,a=0,s=r.length;a<s&&(n=r[a],i="",i=n.group?this.result_add_group(n):this.result_add_option(n),""!==i&&(o++,t+=i),(null!=e?e.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(o>=this.max_shown_results));a++);return t},e.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.push(e.classes),n=document.createElement("li"),n.className=t.join(" "),n.style.cssText=e.style,n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.search_text,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&e.active_options>0?(t=[],t.push("group-result"),e.classes&&t.push(e.classes),n=document.createElement("li"),n.className=t.join(" "),n.innerHTML=e.search_text,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,n,i,o;for(i=this.results_data,o=[],t=0,n=i.length;t<n;t++)e=i[t],e.selected?o.push(e.selected=!1):o.push(void 0);return o},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(){var e,t,n,i,o,a,s,r,l,c,d,u;for(this.no_results_clear(),o=0,s=this.get_search_text(),e=s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=this.get_search_regex(e),t=this.get_highlight_regex(e),u=this.results_data,c=0,d=u.length;c<d;c++)n=u[c],n.search_match=!1,a=null,this.include_option_in_results(n)&&(n.group&&(n.group_match=!1,n.active_options=0),null!=n.group_array_index&&this.results_data[n.group_array_index]&&(a=this.results_data[n.group_array_index],0===a.active_options&&a.search_match&&(o+=1),a.active_options+=1),n.search_text=n.group?n.label:n.html,n.group&&!this.group_search||(n.search_match=this.search_string_match(n.search_text,i),n.search_match&&!n.group&&(o+=1),n.search_match?(s.length&&(r=n.search_text.search(t),l=n.search_text.substr(0,r+s.length)+"</em>"+n.search_text.substr(r+s.length),n.search_text=l.substr(0,r)+"<em>"+l.substr(r)),null!=a&&(a.group_match=!0)):null!=n.group_array_index&&this.results_data[n.group_array_index].search_match&&(n.search_match=!0)));return this.result_clear_highlight(),o<1&&s.length?(this.update_results_content(""),this.no_results(s)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,n;return t=this.search_contains?"":"^",n=this.case_sensitive_search?"":"i",new RegExp(t+e,n)},e.prototype.get_highlight_regex=function(e){var t,n;return t=this.search_contains?"":"\\b",n=this.case_sensitive_search?"":"i",new RegExp(t+e,n)},e.prototype.search_string_match=function(e,t){var n,i,o,a;if(t.test(e))return!0;if(this.enable_split_word_search&&(e.indexOf(" ")>=0||0===e.indexOf("["))&&(i=e.replace(/\[|\]/g,"").split(" "),i.length))for(o=0,a=i.length;o<a;o++)if(n=i[o],t.test(n))return!0},e.prototype.choices_count=function(){var e,t,n,i;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,i=this.form_field.options,t=0,n=i.length;t<n;t++)e=i[t],e.selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keydown_checker=function(e){var t,n;switch(t=null!=(n=e.which)?n:e.keyCode,this.search_field_scale(),8!==t&&this.pending_backstroke&&this.clear_backstroke(),t){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.keyup_checker=function(e){var t,n;switch(t=null!=(n=e.which)?n:e.keyCode,this.search_field_scale(),t){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(e){var t=this;if(!this.is_disabled)return setTimeout(function(){return t.results_search()},50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected)&&(!(!this.display_disabled_options&&e.disabled)&&!e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:(t=document.createElement("div"),t.appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n  <span>'+this.default_text+'</span>\n  <div><b></b></div>\n</a>\n<div class="chosen-drop">\n  <div class="chosen-search">\n    <input class="chosen-search-input" type="text" autocomplete="off" />\n  </div>\n  <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n  <li class="search-field">\n    <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n  </li>\n</ul>\n<div class="chosen-drop">\n  <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_no_results_html=function(e){return'<li class="no-results">\n  '+this.results_none_found+" <span>"+e+"</span>\n</li>"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),e=jQuery,e.fn.extend({chosen:function(i){return t.browser_is_supported()?this.each(function(t){var o,a;if(o=e(this),a=o.data("chosen"),"destroy"===i)return void(a instanceof n&&a.destroy());a instanceof n||o.data("chosen",new n(this,i))}):this}}),n=function(t){function n(){return o=n.__super__.constructor.apply(this,arguments)}return r(n,t),n.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},n.prototype.set_up_html=function(){var t,n;return t=["chosen-container"],t.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),n={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(n.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",n),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){var e=this;return this.container.bind("touchstart.chosen",function(t){e.container_mousedown(t)}),this.container.bind("touchend.chosen",function(t){e.container_mouseup(t)}),this.container.bind("mousedown.chosen",function(t){e.container_mousedown(t)}),this.container.bind("mouseup.chosen",function(t){e.container_mouseup(t)}),this.container.bind("mouseenter.chosen",function(t){e.mouse_enter(t)}),this.container.bind("mouseleave.chosen",function(t){e.mouse_leave(t)}),this.search_results.bind("mouseup.chosen",function(t){e.search_results_mouseup(t)}),this.search_results.bind("mouseover.chosen",function(t){e.search_results_mouseover(t)}),this.search_results.bind("mouseout.chosen",function(t){e.search_results_mouseout(t)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(t){e.search_results_mousewheel(t)}),this.search_results.bind("touchstart.chosen",function(t){e.search_results_touchstart(t)}),this.search_results.bind("touchmove.chosen",function(t){e.search_results_touchmove(t)}),this.search_results.bind("touchend.chosen",function(t){e.search_results_touchend(t)}),this.form_field_jq.bind("chosen:updated.chosen",function(t){e.results_update_field(t)}),this.form_field_jq.bind("chosen:activate.chosen",function(t){e.activate_field(t)}),this.form_field_jq.bind("chosen:open.chosen",function(t){e.container_mousedown(t)}),this.form_field_jq.bind("chosen:close.chosen",function(t){e.close_field(t)}),this.search_field.bind("blur.chosen",function(t){e.input_blur(t)}),this.search_field.bind("keyup.chosen",function(t){e.keyup_checker(t)}),this.search_field.bind("keydown.chosen",function(t){e.keydown_checker(t)}),this.search_field.bind("focus.chosen",function(t){e.input_focus(t)}),this.search_field.bind("cut.chosen",function(t){e.clipboard_event_checker(t)}),this.search_field.bind("paste.chosen",function(t){e.clipboard_event_checker(t)}),this.is_multiple?this.search_choices.bind("click.chosen",function(t){e.choices_click(t)}):this.container.bind("click.chosen",function(e){e.preventDefault()})},n.prototype.destroy=function(){return e(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.unbind("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_field)},n.prototype.container_mousedown=function(t){var n;if(!this.is_disabled)return!t||"mousedown"!==(n=t.type)&&"touchstart"!==n||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},n.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},n.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},n.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return e(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},n.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(t){var n;return n=e(t.target).closest(".chosen-container"),n.length&&this.container[0]===n[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(e){var t,n,i,o,a;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),i=parseInt(this.search_results.css("maxHeight"),10),a=this.search_results.scrollTop(),o=i+a,n=this.result_highlight.position().top+this.search_results.scrollTop(),(t=n+this.result_highlight.outerHeight())>=o)return this.search_results.scrollTop(t-i>0?t-i:0);if(n<a)return this.search_results.scrollTop(n)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},n.prototype.update_results_content=function(e){return this.search_results.html(e)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},n.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.bind("click.chosen",this.label_click_handler)},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first(),n.length)return this.result_highlight=n,this.result_select(t),this.search_field.focus()},n.prototype.search_results_mouseover=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(n)},n.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result"))return this.result_clear_highlight()},n.prototype.choice_build=function(t){var n,i,o=this;return n=e("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?n.addClass("search-choice-disabled"):(i=e("<a />",{class:"search-choice-close","data-option-array-index":t.array_index}),i.bind("click.chosen",function(e){return o.choice_destroy_link_click(e)}),n.append(i)),this.search_container.before(n)},n.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},n.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),n=this.results_data[t[0].getAttribute("data-option-array-index")],n.selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)||(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},n.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_field_value=function(){return this.search_field.val()},n.prototype.get_search_text=function(){return this.escape_html(e.trim(this.get_search_field_value()))},n.prototype.escape_html=function(t){return e("<div/>").text(t).html()},n.prototype.winnow_results_set_highlight=function(){var e,t;if(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),null!=(e=t.length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},n.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result"),e.length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last(),e.length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.search_field_scale=function(){var t,n,i,o,a,s,r,l;if(this.is_multiple){for(o={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},a=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"],r=0,l=a.length;r<l;r++)i=a[r],o[i]=this.search_field.css(i);return n=e("<div />").css(o),n.text(this.get_search_field_value()),e("body").append(n),s=n.width()+25,n.remove(),t=this.container.outerWidth(),s=Math.min(t-10,s),this.search_field.width(s)}},n.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},n}(t)}).call(this)},function(e,t){!function(e){var t,n,i,o,a,s,r=function(){},l=!!window.jQuery,c=e(window),d=function(e,n){t.ev.on("mfp"+e+".mfp",n)},u=function(t,n,i,o){var a=document.createElement("div");return a.className="mfp-"+t,i&&(a.innerHTML=i),o?n&&n.appendChild(a):(a=e(a),n&&a.appendTo(n)),a},h=function(n,i){t.ev.triggerHandler("mfp"+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},f=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},p=function(){e.magnificPopup.instance||(t=new r,t.init(),e.magnificPopup.instance=t)},m=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};r.prototype={constructor:r,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=m(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var o;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var s,r=n.items;for(o=0;o<r.length;o++)if(s=r[o],s.parsed&&(s=s.el[0]),s===n.el[0]){t.index=o;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],a="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=u("bg").on("click.mfp",function(){t.close()}),t.wrap=u("wrap").attr("tabindex",-1).on("click.mfp",function(e){t._checkIfClose(e.target)&&t.close()}),t.container=u("container",t.wrap)),t.contentContainer=u("content"),t.st.preloader&&(t.preloader=u("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var p=l[o];p=p.charAt(0).toUpperCase()+p.slice(1),t["init"+p].call(t)}h("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(d("MarkupParse",function(e,t,n,i){n.close_replaceWith=f(i.type)}),a+=" mfp-close-btn-in"):t.wrap.append(f())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:c.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup.mfp",function(e){27===e.keyCode&&t.close()}),c.on("resize.mfp",function(){t.updateSize()}),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var m=t.wH=c.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(m)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var _=t.st.mainClass;return t.isIE7&&(_+=" mfp-ie7"),_&&t._addClassToMFP(_),t.updateItemHTML(),h("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),i.on("focusin.mfp",t._onFocusIn)},16),t.isOpen=!0,t.updateSize(m),h("Open"),n},close:function(){t.isOpen&&(h("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){h("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}i.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,h("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||c.height();t.fixedContentPos||t.wrap.css("height",t.wH),h("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(h("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var a=!!t.st[i]&&t.st[i].markup;h("FirstMarkupParse",a),t.currTemplate[i]=!a||e(a)}o&&o!==n.type&&t.container.removeClass("mfp-"+o+"-holder");var s=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(s,i),n.preloaded=!0,h("Change",n),o=n.type,t.container.prepend(t.contentContainer),h("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(f()):t.content=e:t.content="",h("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,o=t.items[n];if(o.tagName?o={el:e(o)}:(i=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,s=0;s<a.length;s++)if(o.el.hasClass("mfp-"+a[s])){i=a[s];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=i||t.st.type||"inline",o.index=n,o.parsed=!0,t.items[n]=o,h("ElementParse",o),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var o="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(o).on(o,i)):(n.isObj=!1,n.delegate?e.off(o).on(o,n.delegate,i):(n.items=e,e.off(o).on(o,i)))},_openClick:function(n,i,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(c.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),o.el=e(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),t.open(o)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var o={status:e,text:i};h("UpdateStatus",o),e=o.status,i=o.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var i=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(i&&o)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(o&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||c.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,i){var o;i.data&&(n=e.extend(i.data,n)),h("MarkupParse",[t,n,i]),e.each(n,function(n,i){if(void 0===i||!1===i)return!0;if(o=n.split("_"),o.length>1){var a=t.find(".mfp-"+o[0]);if(a.length>0){var s=o[1];"replaceWith"===s?a[0]!==i[0]&&a.replaceWith(i):"img"===s?a.is("img")?a.attr("src",i):a.replaceWith(e("<img>").attr("src",i).attr("class",a.attr("class"))):a.attr(o[1],i)}}else t.find(".mfp-"+n).html(i)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:r.prototype,modules:[],open:function(t,n){return p(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){p();var i=e(this);if("string"==typeof n)if("open"===n){var o,a=l?i.data("magnificPopup"):i[0].magnificPopup,s=parseInt(arguments[1],10)||0;a.items?o=a.items[s]:(o=i,a.delegate&&(o=o.find(a.delegate)),o=o.eq(s)),t._openClick({mfpEl:o},i,a)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),l?i.data("magnificPopup",n):i[0].magnificPopup=n,t.addGroup(i,n);return i};var g,v,_,y=function(){_&&(v.after(_.addClass(g)).detach(),_=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),d("Close.inline",function(){y()})},getInline:function(n,i){if(y(),n.src){var o=t.st.inline,a=e(n.src);if(a.length){var s=a[0].parentNode;s&&s.tagName&&(v||(g=o.hiddenClass,v=u(g),g="mfp-"+g),_=a.after(v).detach().removeClass(g)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return n.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(i,{},n),i}}});var w,b=function(){w&&e(document.body).removeClass(w)},j=function(){b(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),w=t.st.ajax.cursor,d("Close.ajax",j),d("BeforeChange.ajax",j)},getAjax:function(n){w&&e(document.body).addClass(w),t.updateStatus("loading");var i=e.extend({url:n.src,success:function(i,o,a){var s={data:i,xhr:a};h("ParseAjax",s),t.appendContent(e(s.data),"ajax"),n.finished=!0,b(),t._setFocus(),setTimeout(function(){t.wrap.addClass("mfp-ready")},16),t.updateStatus("ready"),h("AjaxContentAdded")},error:function(){b(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(i),""}}});var x,C=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=t.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(t,n);if(n.el)return n.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,i=".image";t.types.push("image"),d("Open"+i,function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)}),d("Close"+i,function(){n.cursor&&e(document.body).removeClass(n.cursor),c.off("resize.mfp")}),d("Resize"+i,t.resizeImage),t.isLowIE&&d("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,h("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,i=e.img[0],o=function(a){x&&clearInterval(x),x=setInterval(function(){if(i.naturalWidth>0)return void t._onImageHasSize(e);n>200&&clearInterval(x),n++,3===n?o(10):40===n?o(50):100===n&&o(500)},a)};o(1)},getImage:function(n,i){var o=0,a=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,h("ImageLoadComplete")):(o++,o<200?setTimeout(a,100):s()))},s=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",r.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},r=t.st.image,l=i.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",n.el&&n.el.find("img").length&&(c.alt=n.el.find("img").attr("alt")),n.img=e(c).on("load.mfploader",a).on("error.mfploader",s),c.src=n.src,l.is("img")&&(n.img=n.img.clone()),c=n.img[0],c.naturalWidth>0?n.hasSize=!0:c.width||(n.hasSize=!1)}return t._parseMarkup(i,{title:C(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(i.addClass("mfp-loading"),t.updateStatus("error",r.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),t.updateStatus("ready")),i):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),t.findImageSize(n)),i)}}});var k,T=function(){return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,i=".zoom";if(n.enabled&&t.supportsTransition){var o,a,s=n.duration,r=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=i,t.css(o),t},l=function(){t.content.css("visibility","visible")};d("BuildControls"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void l();a=r(e),a.css(t._getOffset()),t.wrap.append(a),o=setTimeout(function(){a.css(t._getOffset(!0)),o=setTimeout(function(){l(),setTimeout(function(){a.remove(),e=a=null,h("ZoomAnimationEnded")},16)},s)},16)}}),d("BeforeClose"+i,function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=s,!e){if(!(e=t._getItemToZoom()))return;a=r(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout(function(){a.css(t._getOffset())},16)}}),d("Close"+i,function(){t._allowZoom()&&(l(),a&&a.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var i;i=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var o=i.offset(),a=parseInt(i.css("padding-top"),10),s=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var r={width:i.width(),height:(l?i.innerHeight():i[0].offsetHeight)-s-a};return T()?r["-moz-transform"]=r.transform="translate("+o.left+"px,"+o.top+"px)":(r.left=o.left,r.top=o.top),r}}});var S=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),d("BeforeChange",function(e,t,n){t!==n&&("iframe"===t?S():"iframe"===n&&S(!0))}),d("Close.iframe",function(){S()})},getIframe:function(n,i){var o=n.src,a=t.st.iframe;e.each(a.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var s={};return a.srcAction&&(s[a.srcAction]=o),t._parseMarkup(i,s,n),t.updateStatus("ready"),i}}});var z=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},E=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;a+=" mfp-gallery",d("Open"+o,function(){n.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",function(){if(t.items.length>1)return t.next(),!1}),i.on("keydown"+o,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),d("UpdateStatus"+o,function(e,n){n.text&&(n.text=E(n.text,t.currItem.index,t.items.length))}),d("MarkupParse"+o,function(e,i,o,a){var s=t.items.length;o.counter=s>1?E(n.tCounter,a.index,s):""}),d("BuildControls"+o,function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var i=n.arrowMarkup,o=t.arrowLeft=e(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),a=t.arrowRight=e(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.on("click",function(){t.prev()}),a.on("click",function(){t.next()}),t.container.append(o.add(a))}}),d("Change"+o,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),d("Close"+o,function(){i.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0,t.index=z(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=z(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,i=Math.min(n[0],t.items.length),o=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=z(n),!t.items[n].preloaded){var i=t.items[n];i.parsed||(i=t.parseEl(n)),h("LazyLoad",i),"image"===i.type&&(i.img=e('<img class="mfp-img" />').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,h("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;n=isNaN(n)?n():n,n>1&&(d("ImageHasSize.retina",function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})}),d("ElementParse.retina",function(t,i){i.src=e.replaceSrc(i,n)}))}}}}),p()}(jQuery)},function(e,t){!function(e){"use strict";e.fn.jnewsgif=function(t){var n={};return t=t?e.extend(n,t):e.extend(n),e(this).each(function(){var t=e(this),n=["ff-container","ff-responsive"];t.addClass("ff-setup ff-image");var i=e('<div class="ff-overlay"><div class="ff-control">GIF</div></div>').insertBefore(t),o=e("<canvas />",{class:"ff-canvas"}).attr({width:0,height:0}).insertBefore(t);t.add(i).add(o).wrapAll(e("<div />",{class:n.join(" ")+" "+t[0].classList})),i.on("click",function(){var t=e(this),n=e(t).siblings("canvas");e(n).hasClass("ff-canvas-active")?(e(t).removeClass("ff-container-active"),e(n).removeClass("ff-canvas-active").addClass("ff-canvas-ready")):(e(t).addClass("ff-container-active"),e(n).removeClass("ff-canvas-ready").addClass("ff-canvas-active"))}),t.imagesLoaded().progress(function(t,n){var i=e(n.img).siblings("canvas"),o="transitionend webkitTransitionEnd oTransitionEnd otransitionend",a=e(n.img).width(),s=e(n.img).height();i.attr({width:a,height:s}),i[0].getContext("2d").drawImage(e(n.img).get(0),0,0,a,s),i.addClass("ff-canvas-ready").on(o,function(){e(this).off(o),e(n.img).addClass("ff-image-ready")})})})}}(jQuery)},function(e,t){!function(){"use strict";window.jnews=window.jnews||{},window.jnews.owlslider=window.jnews.owlslider||{};var e=function(){var e="object"==typeof jnews&&"object"==typeof jnews.library,t="function"==typeof jnews.tns;return function(n){if(e){var i=jnews.library;n=i.extend({container:".jeg_slider_type_1",items:5,responsive:{0:{items:4,sliderBy:4},768:{items:6,sliderBy:6},1024:{items:7,sliderBy:7}},gutter:10,controls:!0,autoplay:!0,mouseDrag:!0,speed:500,autoplayTimeout:5e3,textDirection:"ltr",navAsThumbnails:!0,navContainer:".jeg_slider_thumbnail"},n||{});({init:function(){var e=this;e.options=n,e.$slider=e.query(e.options.container),e.wrapper=i.getParents(e.$slider,".jeg_slider_wrapper"),e.wrapper=e.wrapper.length?e.wrapper[e.wrapper.length-1]:i.doc,e.$thumbnail=e.wrapper.querySelector(e.options.navContainer),e.options.hover=e.$slider.dataset.hoverAction,e.options.autoplay=e.$slider.dataset.autoplay,e.options.autoplayTimeout=e.$slider.dataset.delay,t&&(i.hasClass(e.$slider,"jeg_tns_active")||(e.mainSlider=jnews.tns({container:e.$slider,items:1,autoplay:e.options.autoplay,speed:e.options.speed,autoplayTimeout:e.options.autoplayTimeout,nav:!1,controls:!0,controlsText:["",""],rewind:!1,mouseDrag:e.options.mouseDrag,lazyload:!0,lazyloadSelector:".jeg_slide_item .owl-lazy",textDirection:e.options.textDirection,onInit:function(e){void 0!==e.nextButton&&i.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&i.addClass(e.prevButton,"tns-prev")}}),void 0!==e.mainSlider&&(i.addClass(e.$slider,"jeg_tns_active"),i.dataStorage.put(e.$slider,"tiny-slider",e.mainSlider),e.mainSlider.events.on("indexChanged",function(t){e.currentThumbnail(t)}),e.mainSlider.events.on("dragStart",e.stopPropagationDrag))),i.hasClass(e.$thumbnail,"jeg_tns_active")||(e.thumbnailSlider=jnews.tns({container:e.$thumbnail,nav:!1,controls:!1,loop:!1,items:e.options.items,gutter:e.options.gutter,mouseDrag:e.options.mouseDrag,textDirection:e.options.textDirection,lazyload:!0,freezable:!0,lazyloadSelector:".jeg_slide_thumbnail_item .owl-lazy",responsive:e.options.responsive,onInit:function(t){void 0!==t.nextButton&&i.addClass(t.nextButton,"tns-next"),void 0!==t.prevButton&&i.addClass(t.prevButton,"tns-prev"),e.setCurrentThumbnail(t)}}),void 0!==e.thumbnailSlider&&(e.thumbnailSlider.events.on("dragStart",e.stopPropagationDrag),i.addClass(e.$thumbnail,"jeg_tns_active"),i.dataStorage.put(e.$thumbnail,"tiny-slider",e.thumbnailSlider))))},query:function(e){return"string"==typeof e&&(e=i.doc.querySelector(e)),e},stopPropagationDrag:function(e){e.event.preventDefault(),e.event.stopPropagation()},setCurrentThumbnail:function(e){var t=this,n=e.index;e.slideItems[n].classList.add("current"),"object"==typeof e.slideItems&&e.slideItems&&(t.in_drag=!1,i.objKeys(e.slideItems).forEach(function(n){var i=e.slideItems[n],o=function(e){var i="mouseover"===e.type&&!t.in_drag,o="click"===e.type&&!t.in_drag;o&&e.preventDefault(),(i||o)&&t.mainSlider.goTo(n)};i.addEventListener("mousedown",function(){t.in_drag=!0}),i.addEventListener("mouseup",function(){t.in_drag=!1}),i.addEventListener("mouseleave",function(){t.in_drag=!1}),t.options.hover&&i.addEventListener("mouseover",o),i.addEventListener("click",o)}))},currentThumbnail:function(e){var t=this.mainSlider.getInfo(),n=this.thumbnailSlider.getInfo(),i=t.displayIndex,o=t.indexCached;n.slideItems[o-1].classList.remove("current"),this.thumbnailSlider.goTo(i-1),n.slideItems[i-1].classList.add("current")}}).init()}}}();window.jnews.owlslider=e}()},function(e,t){!function(e){"use strict";e.fn.jsticky=function(t){var n={item_offset:".jeg_header",wrapper:".jeg_navbar_wrapper",state_class:".jeg_sticky_nav",mode:"scroll",use_translate3d:!0,onScrollDown:!1,onScrollUp:!1,onStickyRemoved:!1,broadcast_position:!1};return t=t?e.extend(n,t):e.extend(n),e(this).each(function(){var n,i=1==jnewsoption.admin_bar?32:0,o=0,a=0,s=0,r=e(this),l=r.outerHeight(),c=0,d=0,u=0,h=function(){1==jnewsoption.admin_bar&&(e(window).width()<=782&&e(window).width()>600?i=46:e(window).width()<=600&&(i=0)),n=e(".sticky_blankspace").offset().top};h();var f=function(){if("normal"!==t.mode){if(d=e(this).scrollTop(),u=Math.abs(d-a),r.hasClass(t.state_class)||r.addClass("notransition"),d>a){if("scroll"===t.mode){if(d<n+l)return}else if(d<n-i)return;r.addClass(t.state_class),"scroll"===t.mode?(c=s-u)<-l&&(c=-l):"pinned"===t.mode&&u>5&&d>l+i&&(c=-l),"function"==typeof t.onScrollDown&&t.onScrollDown()}else d>n-i?(r.removeClass("notransition"),"scroll"===t.mode&&(c=s+u),("pinned"===t.mode&&u>5||c>0)&&(c=0,r.removeClass("notransition"))):(r.removeClass(t.state_class),c=0,"function"==typeof t.onStickyRemoved&&t.onStickyRemoved()),"function"==typeof t.onScrollUp&&t.onScrollUp();o=d<n-i?0:c+i,r.hasClass(t.state_class)?t.use_translate3d?r.css({"-webkit-transform":"translate3d(0px, "+o+"px, 0px)",transform:"translate3d(0px, "+o+"px, 0px)"}):r.css({top:o+"px"}):t.use_translate3d?r.css({"-webkit-transform":"",transform:""}):r.css({top:""}),t.broadcast_position&&e(window).trigger("jnews_additional_sticky_margin",l+o),s=c,a=d}};e(window).on("scroll",f),e(window).on("load resize",function(){setTimeout(h,200)}),e(document).on("ready",h)})}}(jQuery)},function(e,t,n){var i,o,a;!function(s,r){o=[n(0)],i=r,void 0!==(a="function"==typeof i?i.apply(t,o):i)&&(e.exports=a)}(0,function(e){function t(e){if(e in d.style)return e;for(var t=["Moz","Webkit","O","ms"],n=e.charAt(0).toUpperCase()+e.substr(1),i=0;i<t.length;++i){var o=t[i]+n;if(o in d.style)return o}}function n(e){return"string"==typeof e&&this.parse(e),this}function i(e,t,n){!0===t?e.queue(n):t?e.queue(t,n):e.each(function(){n.call(this)})}function o(t){var n=[];return e.each(t,function(t){t=e.camelCase(t),t=e.transit.propertyMap[t]||e.cssProps[t]||t,t=r(t),u[t]&&(t=r(u[t])),-1===e.inArray(t,n)&&n.push(t)}),n}function a(t,n,i,a){var s=o(t);e.cssEase[i]&&(i=e.cssEase[i]);var r=c(n)+" "+i;parseInt(a,10)>0&&(r+=" "+c(a));var l=[];return e.each(s,function(e,t){l.push(t+" "+r)}),l.join(", ")}function s(t,n){n||(e.cssNumber[t]=!0),e.transit.propertyMap[t]=u.transform,e.cssHooks[t]={get:function(n){return e(n).css("transit:transform").get(t)},set:function(n,i){var o=e(n).css("transit:transform");o.setFromString(t,i),e(n).css({"transit:transform":o})}}}function r(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function l(e,t){return"string"!=typeof e||e.match(/^[\-0-9\.]+$/)?""+e+t:e}function c(t){var n=t;return"string"!=typeof n||n.match(/^[\-0-9\.]+/)||(n=e.fx.speeds[n]||e.fx.speeds._default),l(n,"ms")}e.transit={version:"0.9.12",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1};var d=document.createElement("div"),u={},h=navigator.userAgent.toLowerCase().indexOf("chrome")>-1;u.transition=t("transition"),u.transitionDelay=t("transitionDelay"),u.transform=t("transform"),u.transformOrigin=t("transformOrigin"),u.filter=t("Filter"),u.transform3d=function(){return d.style[u.transform]="",d.style[u.transform]="rotateY(90deg)",""!==d.style[u.transform]}();var f={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"},p=u.transitionEnd=f[u.transition]||null;for(var m in u)u.hasOwnProperty(m)&&void 0===e.support[m]&&(e.support[m]=u[m]);return d=null,e.cssEase={_default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},e.cssHooks["transit:transform"]={get:function(t){return e(t).data("transform")||new n},set:function(t,i){var o=i;o instanceof n||(o=new n(o)),"WebkitTransform"!==u.transform||h?t.style[u.transform]=o.toString():t.style[u.transform]=o.toString(!0),e(t).data("transform",o)}},e.cssHooks.transform={set:e.cssHooks["transit:transform"].set},e.cssHooks.filter={get:function(e){return e.style[u.filter]},set:function(e,t){e.style[u.filter]=t}},e.fn.jquery<"1.8"&&(e.cssHooks.transformOrigin={get:function(e){return e.style[u.transformOrigin]},set:function(e,t){e.style[u.transformOrigin]=t}},e.cssHooks.transition={get:function(e){return e.style[u.transition]},set:function(e,t){e.style[u.transition]=t}}),s("scale"),s("scaleX"),s("scaleY"),s("translate"),s("rotate"),s("rotateX"),s("rotateY"),s("rotate3d"),s("perspective"),s("skewX"),s("skewY"),s("x",!0),s("y",!0),n.prototype={setFromString:function(e,t){var i="string"==typeof t?t.split(","):t.constructor===Array?t:[t];i.unshift(e),n.prototype.set.apply(this,i)},set:function(e){var t=Array.prototype.slice.apply(arguments,[1]);this.setter[e]?this.setter[e].apply(this,t):this[e]=t.join(",")},get:function(e){return this.getter[e]?this.getter[e].apply(this):this[e]||0},setter:{rotate:function(e){this.rotate=l(e,"deg")},rotateX:function(e){this.rotateX=l(e,"deg")},rotateY:function(e){this.rotateY=l(e,"deg")},scale:function(e,t){void 0===t&&(t=e),this.scale=e+","+t},skewX:function(e){this.skewX=l(e,"deg")},skewY:function(e){this.skewY=l(e,"deg")},perspective:function(e){this.perspective=l(e,"px")},x:function(e){this.set("translate",e,null)},y:function(e){this.set("translate",null,e)},translate:function(e,t){void 0===this._translateX&&(this._translateX=0),void 0===this._translateY&&(this._translateY=0),null!==e&&void 0!==e&&(this._translateX=l(e,"px")),null!==t&&void 0!==t&&(this._translateY=l(t,"px")),this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var e=(this.scale||"1,1").split(",");return e[0]&&(e[0]=parseFloat(e[0])),e[1]&&(e[1]=parseFloat(e[1])),e[0]===e[1]?e[0]:e},rotate3d:function(){for(var e=(this.rotate3d||"0,0,0,0deg").split(","),t=0;t<=3;++t)e[t]&&(e[t]=parseFloat(e[t]));return e[3]&&(e[3]=l(e[3],"deg")),e}},parse:function(e){var t=this;e.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(e,n,i){t.setFromString(n,i)})},toString:function(e){var t=[];for(var n in this)if(this.hasOwnProperty(n)){if(!u.transform3d&&("rotateX"===n||"rotateY"===n||"perspective"===n||"transformOrigin"===n))continue;"_"!==n[0]&&(e&&"scale"===n?t.push(n+"3d("+this[n]+",1)"):e&&"translate"===n?t.push(n+"3d("+this[n]+",0)"):t.push(n+"("+this[n]+")"))}return t.join(" ")}},e.fn.transition=e.fn.transit=function(t,n,o,s){var r=this,l=0,d=!0,h=e.extend(!0,{},t);"function"==typeof n&&(s=n,n=void 0),"object"==typeof n&&(o=n.easing,l=n.delay||0,d=void 0===n.queue||n.queue,s=n.complete,n=n.duration),"function"==typeof o&&(s=o,o=void 0),void 0!==h.easing&&(o=h.easing,delete h.easing),void 0!==h.duration&&(n=h.duration,delete h.duration),void 0!==h.complete&&(s=h.complete,delete h.complete),void 0!==h.queue&&(d=h.queue,delete h.queue),void 0!==h.delay&&(l=h.delay,delete h.delay),void 0===n&&(n=e.fx.speeds._default),void 0===o&&(o=e.cssEase._default),n=c(n);var f=a(h,n,o,l),m=e.transit.enabled&&u.transition,g=m?parseInt(n,10)+parseInt(l,10):0;if(0===g){return i(r,d,function(e){r.css(h),s&&s.apply(r),e&&e()}),r}var v={},_=function(t){var n=!1,i=function(){n&&r.unbind(p,i),g>0&&r.each(function(){this.style[u.transition]=v[this]||null}),"function"==typeof s&&s.apply(r),"function"==typeof t&&t()};g>0&&p&&e.transit.useTransitionEnd?(n=!0,r.bind(p,i)):window.setTimeout(i,g),r.each(function(){g>0&&(this.style[u.transition]=f),e(this).css(h)})};return i(r,d,function(e){this.offsetWidth,_(e)}),this},e.transit.getTransitionValue=a,e})},function(e,t){!function(){"use strict";window.jnews=window.jnews||{},window.jnews.vidplaylist=window.jnews.vidplaylist||{};var e=function(){var e="object"==typeof jnews&&"object"==typeof jnews.library,t="function"==typeof jnews.tns;if(t&&e){var n=jnews.library;return function(e){e=n.extend({container:".jeg_video_playlist",textDirection:"ltr",controlsText:["",""],nav:!1,loop:!1,controls:!0,items:8,gutter:0,autoHeight:!0,responsive:{0:{items:2},480:{items:3},568:{items:4},768:{items:7},1024:{items:8}}},e||{});var t=function(e){this.construct(e)};t.prototype.construct=function(e){var t=this;if(t.options=e,t.tempOptions=t.options,t.element="string"==typeof t.options.container?n.globalBody.querySelectorAll(t.options.container):t.options.container,t.element.length)return void n.forEach(t.element,function(e,i){t.tempOptions.container=e,t.construct(t.tempOptions);var o=n.extend({},e.dataset,t);n.dataStorage.put(e,"jeg.vidplaylist",o)});var i=n.extend({},t.element.dataset,t);n.dataStorage.put(t.element,"jeg.vidplaylist",i),t.unique=t.element.dataset.unique,t.data=window[t.unique],t.init()},t.prototype.init=function(){var e=this;e.playlist=e.element.querySelector(".jeg_video_playlist_list_inner_wrapper"),e.playlist_item=e.playlist.getElementsByClassName("jeg_video_playlist_item_wrapper"),n.hasClass(e.element,"jeg_vertical_playlist")?e.vertical_playlist():e.horizontal_playlist(),e.video=e.element.getElementsByTagName("video"),e.video.length&&"function"==typeof e.video.mediaelementplayer&&e.video.mediaelementplayer(),e.bind_click(),e.autoload_video()},t.prototype.autoload_video=function(){n.forEach(n.globalBody.getElementsByClassName("jeg_video_playlist"),function(e,t){n.hasClass(e,"loaded")||new Waypoint({element:e,handler:function(){if(!n.hasClass(e,"loaded")){var t=this.element,i=t.querySelector(".jeg_video_container"),o=i.children[0].getAttribute("src"),a=e.querySelector(".jeg_preview_slider_loader");i.innerHTML='<iframe src="'+o+'" allowfullscreen="" height="500" width="700"></iframe>',a.parentNode.removeChild(a),n.addClass(t,"loaded")}},offset:"100%"})})},t.prototype.horizontal_playlist=function(){var e=this,t=n.getWidth(e.element),i=Math.floor(t/160),o=i-1,a=n.hasClass(e.element,"jeg_dark_playlist")?"":10;if(void 0!==e.playlist){var s=n.extend(e.tempOptions,{container:e.playlist,textDirection:e.tempOptions.textDirection,controlsText:["",""],nav:!1,loop:!1,controls:!0,items:i,gutter:a,autoHeight:!0,mouseDrag:!0,responsive:{0:{items:2},480:{items:3},568:{items:4},768:{items:o},1024:{items:i}}});if(!n.hasClass(s.container,"jeg_tns_active")){var r=jnews.tns(s);void 0!==r&&(r.events.on("dragStart",function(e){e.event.preventDefault(),e.event.stopPropagation()}),n.addClass(s.container,"jeg_tns_active"),n.dataStorage.put(s.container,"tiny-slider",r))}}},t.prototype.vertical_playlist=function(){var e=this;e.playlist.style.display="block";var t=jQuery(e.playlist).jScrollPane(),i=t.data("jsp");e.vertical_resize=function(t){var i=e.element.querySelector(".jeg_video_playlist_current"),o=e.element.querySelector(".jeg_video_playlist_video_content"),a=e.playlist,s=n.getHeight(o),r=n.windowWidth();if(n.hasClass(e.element,"jeg_col_12")&&r>768||(n.hasClass(e.element,"jeg_col_9")||n.hasClass(e.element,"jeg_col_9"))&&r>1024)s=n.getHeight(o)-n.getHeight(i);else{for(var l=e.playlist_item,c=0,d=0;d<3;d++)l.length&&void 0!==l[d]&&(c+=n.getHeight(l[d]));s=c}a.style.height=s+"px",t.reinitialise()};var o={resize:function(){e.vertical_resize(i)}.bind(e),load:function(){setTimeout(function(){e.vertical_resize(i)},200)}.bind(e)};n.addEvents(n.win,o),e.vertical_resize(i)},t.prototype.load_content=function(e,t){var i=e.parentNode,o=n.getParents(i,".jeg_video_playlist_wrapper");o=o.length?o[o.length-1]:n.doc;var a=o.querySelector(".jeg_video_holder"),s=o.querySelector(".jeg_video_playlist_current_info"),r=a.querySelector(".jeg_preview_slider_loader");r.parentNode.removeChild(r);var l=n.doc.createElement("div");l.innerHTML=t.tag;var c=l.querySelector("div.jeg_video_container");a.appendChild(c),"mediaplayer"===t.type&&a.querySelector("video").mediaelementplayer({success:function(e){e.play()}});var d=e.querySelector(".jeg_video_playlist_title"),u="<a href='"+e.getAttribute("href")+"'>"+(d.innerText||d.textContent)+"</a>";a.style.height="auto",s.querySelector("h2").innerHTML=u;var h=s.querySelector("span");if(h){var f=e.querySelector(".jeg_video_playlist_category");h.innerText&&(h.innerText=f.innerText||f.textContent),h.textContent&&(h.textContent=f.innerText||f.textContent)}},t.prototype.bind_click=function(){var e=this;n.forEach(e.playlist_item,function(t,i){n.addEvents(t,{click:function(i){i.preventDefault();var o=t.querySelector("a.jeg_video_playlist_item").dataset.id,a=t.parentNode,s=n.getParents(a,".jeg_video_playlist_wrapper");s=s.length?s[s.length-1]:n.doc;var r=s.querySelector(".jeg_video_holder");return n.forEach(s.querySelectorAll("a.jeg_video_playlist_item"),function(e,t){n.removeClass(e,"active")}),n.addClass(t.querySelector("a.jeg_video_playlist_item"),"active"),r.style.height=n.getHeight(r),r.innerHTML="<div class='jeg_preview_slider_loader'><div class='jeg_preview_slider_loader_circle'></div></div>",e.load_content(t.querySelector("a.jeg_video_playlist_item"),e.data[o]),!1}})})},new t(e)}}t||console.warn("Tiny Slider could not be found"),e||console.warn("JNews Library could not be found")}();window.jnews.vidplaylist=e}()},function(e,t){!function(e){"use strict";function t(t){return e(this).each(function(){var n=e(this),i=e.extend({},o.DEFAULTS,n.data(),"object"==typeof t&&t),a=n.data("jeg.module");a||n.data("jeg.module",a=new o(this,i))})}var n="object"==typeof jnews&&"object"==typeof jnews.library,i=!!n&&jnews.library,o=function(t,n){if(i){var o=this;o.element=e(t),o.options=n,o.xhr=null,o.xhr_cache=[],o.lock_action=!1,o.unique=o.element.data("unique"),o.data={filter:0,filter_type:"all",current_page:1,attribute:window[o.unique]||{}},o.ajax_mode=o.data.attribute.pagination_mode,o.header=o.element.find(".jeg_block_heading"),o.container=o.element.find(".jeg_block_container"),o.nav_block=o.element.find(".jeg_block_navigation"),o.ad_code=o.element.find(".jeg_ad_code").val(),o.nav_next=null,o.nav_prev=null,o.module_overlay=o.container.find(".module-overlay"),o.load_more_block=o.nav_block.find(".jeg_block_loadmore"),"nextprev"===o.ajax_mode&&(o.nav_next=o.nav_block.find(".next"),o.nav_prev=o.nav_block.find(".prev"),o.nav_next.on("click",e.proxy(o.click_next,o)),o.nav_prev.on("click",e.proxy(o.click_prev,o))),"loadmore"!==o.ajax_mode&&"scrollload"!==o.ajax_mode||(o.nav_next=o.load_more_block.find("a"),o.nav_next.on("click",e.proxy(o.load_more,o))),"scrollload"===o.ajax_mode&&(o.load_limit=o.data.attribute.pagination_scroll_limit,o.load_scroll()),o.masonry_init(),o.init(),o.element.trigger("jnews_module_init",[o])}};o.DEFAULTS={},o.prototype.init=function(){var e=this;e.subcat=e.header.find(".jeg_subcat"),e.subcat.length&&e.subcat.okayNav({swipe_enabled:!1,threshold:80,toggle_icon_content:"<span></span><span></span><span></span>"}),e.assign_header()},o.prototype.load_scroll=function(){var e=this;e.nav_next.hasClass("disabled")||(e.load_limit>e.data.current_page||0==e.load_limit)&&e.nav_next.waypoint(function(){e.data.current_page=e.data.current_page+1,e.request_ajax("scroll"),this.destroy()},{offset:"100%",context:window})},o.prototype.click_next=function(t){var n=this,i=n.nav_next;t.preventDefault(),e(i).hasClass("disabled")||n.lock_action||(n.data.current_page=n.data.current_page+1,n.request_ajax("next"))},o.prototype.click_prev=function(t){var n=this,i=n.nav_prev;t.preventDefault(),e(i).hasClass("disabled")||n.lock_action||(n.data.current_page=n.data.current_page-1,n.request_ajax("prev"))},o.prototype.load_more=function(t){var n=this,i=n.nav_next;t.preventDefault(),e(i).hasClass("disabled")||n.lock_action||(n.data.current_page=n.data.current_page+1,n.request_ajax("more"))},o.prototype.assign_header=function(){var t=this;e(t.header).on("click",".subclass-filter",e.proxy(t.subclass_click,t))},o.prototype.subclass_click=function(t){var n=this,i=t.target;t.preventDefault(),n.lock_action||(this.header.find(".subclass-filter").removeClass("current"),e(i).addClass("current"),n.data.filter=e(i).data("id"),n.data.filter_type=e(i).data("type"),n.data.current_page=1,n.request_ajax("subclass"))},o.prototype.request_ajax=function(t){var n=this;n.lock_action=!0;var i=jnewsoption.module_prefix+n.data.attribute.class,o={action:i,module:!0,data:n.data},a=n.cache_get(o);a?(n.before_ajax_request(t,!1),setTimeout(function(){n.load_ajax(t,o,a),n.element.trigger("jnews_module_ajax")},100)):(n.before_ajax_request(t,!0),n.xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:o,success:function(e){n.load_ajax(t,o,e),n.cache_save(o,e),n.element.trigger("jnews_module_ajax")}}))},o.prototype.cache_get=function(e){for(var t=this,n=JSON.stringify(e),i=0;i<t.xhr_cache.length;i++)if(t.xhr_cache[i].param==n)return t.cache_prepare(t.xhr_cache[i].result);return!1},o.prototype.cache_prepare=function(t){t.content="<div>"+t.content+"</div>";var n=e(t.content);return n.find("img").each(function(){var t=e(this).data("src");e(this).attr("src",t).removeClass("lazyload").addClass("lazyloaded")}),t.content=n.html(),t},o.prototype.cache_save=function(e,t){var n=this,i=JSON.stringify(e);n.xhr_cache.push({param:i,result:t})},o.prototype.load_ajax=function(e,t,n){var i=this;switch(i.lock_action=!1,i.ajax_mode){case"loadmore":i.load_ajax_load_more(n,e);break;case"scrollload":i.load_scroll_more(n,e);break;case"nextprev":default:i.load_ajax_next_prev(n,e)}jnews.like&&jnews.like.init(),jnews.share&&jnews.share.init()},o.prototype.before_ajax_request=function(e,t){var n=this;n.element.removeClass("loaded next prev more scroll subclass").addClass("loading"),"next"!==e&&"prev"!==e&&"subclass"!==e||!t||n.module_overlay.show(),"more"!==e&&"scroll"!==e||n.load_more_block.find("a").text(n.load_more_block.find("a").data("loading")).addClass("active")},o.prototype.after_ajax_request=function(e){var t=this;t.element.removeClass("loading").addClass("loaded").addClass(e),"next"!==e&&"prev"!==e&&"subclass"!==e||t.module_overlay.hide(),"more"!==e&&"scroll"!==e||(t.load_more_block.find("a").text(t.load_more_block.find("a").data("load")).removeClass("active"),void 0!==t.load_more_block.find("a").data("icon")&&t.load_more_block.find("a").html(t.load_more_block.find("a").html()+' <i class="fa '+t.load_more_block.find("a").data("icon")+'"></i>'))},o.prototype.replace_content=function(t){var n=this;n.container.children().each(function(){e(this).hasClass("module-overlay")||e(this).remove()}),n.container.prepend(t)},o.prototype.load_ajax_next_prev=function(t,n){var i=this;i.replace_content(t.content),null!==i.nav_next&&(t.next?i.nav_next.removeClass("disabled"):i.nav_next.addClass("disabled")),null!==i.nav_prev&&(t.prev?i.nav_prev.removeClass("disabled"):i.nav_prev.addClass("disabled")),t.next||t.prev?null!==i.nav_prev&&i.nav_next.parent().removeClass("inactive"):null!==i.nav_next&&i.nav_next.parent().addClass("inactive"),i.after_ajax_request(n),i.masonry_init(),e(window).trigger("resize")},o.prototype.load_ajax_load_more=function(t,n){var i=this,o=e(t.content),a=0;o.each(function(){if(e(this).hasClass("jeg_ad_module")&&i.ad_code&&e(this).find(".ads-wrapper").html(i.ad_code),e(this).hasClass("jeg_post"))e(this).addClass("jeg_ajax_loaded anim_"+a);else{e(this).find(".jeg_post").each(function(){e(this).addClass("jeg_ajax_loaded anim_"+a),a++})}a++}),i.container.find(".jeg_post").removeClass("jeg_ajax_loaded"),i.container.find(".jeg_ad_module").removeClass("jeg_ajax_loaded"),1==i.data.current_page?i.replace_content(o):i.element.find(".jeg_load_more_flag").append(o),t.next?i.nav_next.removeClass("disabled"):i.nav_next.addClass("disabled"),i.after_ajax_request(n),i.masonry_load_more(o),e(window).trigger("resize")},o.prototype.load_scroll_more=function(t,n){var i=this,o=e(t.content),a=0;o.each(function(){if(e(this).hasClass("jeg_post"))e(this).addClass("jeg_ajax_loaded anim_"+a);else{e(this).find(".jeg_post").each(function(){e(this).addClass("jeg_ajax_loaded anim_"+a),a++})}a++}),i.container.find(".jeg_post").removeClass("jeg_ajax_loaded"),i.container.find(".jeg_ad_module").removeClass("jeg_ajax_loaded"),1==i.data.current_page?i.container.html("").html(o):i.element.find(".jeg_load_more_flag").append(o),t.next?i.nav_next.removeClass("disabled"):i.nav_next.addClass("disabled"),i.after_ajax_request(n),i.masonry_load_more(o),e(window).trigger("resize"),setTimeout(function(){i.load_scroll()},500)},o.prototype.masonry_load_more=function(e){var t=this;t.container.find(".jeg_posts_masonry").length&&setTimeout(function(){t.masonry.isotope("appended",e)},150)},o.prototype.masonry_init=function(){var t=this;t.container.find(".jeg_posts_masonry").length&&(setTimeout(function(){t.masonry=t.container.find(".jeg_posts_masonry .jeg_posts").isotope({itemSelector:".jeg_post",layoutMode:"masonry"}),t.masonry.imagesLoaded().progress(function(){t.masonry.isotope("layout")})},150),e(window).on("resize",function(){setTimeout(function(){t.masonry.isotope("layout")},1e3)}))};var a=e.fn.jmodule;e.fn.jmodule=t,e.fn.jmodule.Constructor=o,e.fn.jmodule.noConflict=function(){return e.fn.jmodule=a,this},e(".jeg_module_hook").jmodule()}(jQuery)},function(e,t){!function(){"use strict";window.jnews=window.jnews||{},window.jnews.slider=window.jnews.slider||{};var e=function(){var e="object"==typeof jnews&&"object"==typeof jnews.library,t="function"==typeof jnews.tns;if(t&&e)var n=jnews.library,i=function(e,t){var i=t.getElementsByClassName("tns-controls button");if(i.length){var o=e.getElementsByClassName("thumbnail-container");if(o.length){var a=o[0].getBoundingClientRect().height;n.forEach(i,function(e,t){var n=e.getBoundingClientRect().height,i=.5*a-.5*n;e.style.top=i+"px"})}}},o=function(e){var t,o,a=function(e){var o,a,s,r,l,c={container:e.container,nav:!0,controls:!0,loop:!0,mouseDrag:!1,items:1,autoplay:!1,autoplayTimeout:5e3,textDirection:"ltr",controlsText:["prev","next"],edgePadding:0,gutter:0,lazyload:!1,lazyloadSelector:"img",responsive:!1,mode:"carousel",animateOut:"tns-fadeOut",speed:300,onInit:!1};return l="undefined"!=typeof jnewsoption?1==jnewsoption.rtl:"undefined"!=typeof jnewsgutenbergoption&&1==jnewsgutenbergoption.rtl,n.hasClass(c.container,"jeg_slider_type_1")?(t=1,c={container:e.container,textDirection:l?"rtl":"ltr"}):(c.autoplay=c.container.dataset.autoplay,c.autoplayTimeout=c.container.dataset.delay,c.textDirection=l?"rtl":"ltr",n.hasClass(c.container,"jeg_slider_type_2")?(t=2,c.controls=!1,c.mouseDrag=!0,c):n.hasClass(c.container,"jeg_slider_type_3")?(t=3,o=n.getParents(c.container,".jeg_slider_wrapper"),o=o.length?o[o.length-1]:n.doc,c.items=c.container.dataset.items,a=c.items,s=c.items<3?c.items:3,r=c.items<2?c.items:2,n.hasClass(o,"jeg_col_2o3")?a>3&&1024==n.windowWidth()&&(a=3):n.hasClass(o,"jeg_col_1o3")&&(s=1,n.windowWidth()>=1024&&(a=1)),c.nav=!1,c.controlsText=["",""],c.mouseDrag=!0,c.edgePadding=35,c.gutter=5,c.lazyload=!0,c.lazyloadSelector=".jeg_slide_item .owl-lazy",c.responsive={0:{items:1},568:{items:r},768:{items:s},1024:{items:a}},c):n.hasClass(c.container,"jeg_slider_type_4")?(t=4,c.mode="gallery",c.controlsText=["",""],c.mouseDrag=!0,c.speed=1e3,c):n.hasClass(c.container,"jeg_slider_type_5")?(t=5,c.nav=!1,c.controlsText=["",""],c.mouseDrag=!0,c):n.hasClass(c.container,"jeg_slider_type_6")?(t=6,c.nav=!1,c.controlsText=[c.container.dataset.navPrev,c.container.dataset.navNext],c.mouseDrag=!0,c):n.hasClass(c.container,"jeg_slider_type_7")?(t=7,c.nav=!1,c.controls=!1,c.mode="gallery",c.speed=500,c):n.hasClass(c.container,"jeg_slider_type_8")?(t=8,o=n.getParents(c.container,".jeg_slider_wrapper"),o=o.length?o[o.length-1]:n.doc,c.items=c.container.dataset.items,a=c.items,s=c.items<3?c.items:3,r=c.items<2?c.items:2,n.hasClass(o,"jeg_col_2o3")?a>3&&1024==n.windowWidth()&&(a=3):n.hasClass(o,"jeg_col_1o3")&&(s=1,n.windowWidth()>=1024&&(a=1)),c.nav=!1,c.controls=!0,c.controlsText=["",""],c.mouseDrag=!0,c.edgePadding=30,c.responsive={0:{items:1},568:{items:r},768:{items:s},1024:{items:a,edgePadding:a>1?50:30}},c.onInit=function(){i(c.container,o)},c):n.hasClass(c.container,"jeg_slider_type_9")?(t=9,c.nav=!1,c.controls=!1,c.mode="gallery",c):c)}(e);if(e=n.extend(a,e||{}),t)if(1!==t){if(!n.hasClass(e.container,"jeg_tns_active")){var s=jnews.tns(e);if(void 0!==s)switch(s.events.on("dragStart",function(e){e.event.preventDefault(),e.event.stopPropagation()}),n.addClass(e.container,"jeg_tns_active"),n.dataStorage.put(e.container,"tiny-slider",s),t){case 7:n.forEach(e.container.querySelectorAll(".jeg_block_nav a"),function(e,t){n.addEvents(e,{click:function(e){e.preventDefault(),n.hasClass(this,"next")?s.goTo("next"):s.goTo("prev")}})});break;case 8:var r=n.getParents(e.container,".jeg_slider_wrapper");r=r.length?r[r.length-1]:n.doc,n.addEvents(n.win,{resize:function(){o&&n.cancelAnimationFrame.call(n.win,o),o=n.requestAnimationFrame.call(n.win,function(){i(e.container,r)})}});break;case 9:var l=n.getParents(e.container,".jeg_slider_wrapper");l=l.length?l[l.length-1]:n.doc,n.forEach(l.querySelectorAll(".jeg_slider_type_9_thumb article"),function(e,t){n.addEvents(e,{click:function(e){e.preventDefault();var t=this.dataset.index;s.goTo(t)}})})}}}else jnews.owlslider(e)};else t||console.warn("Tiny Slider could not be found"),e||console.warn("JNews Library could not be found");return o}();window.jnews.slider=e}()},function(e,t){!function(){"use strict";window.jnews=window.jnews||{},window.jnews.overlayslider=window.jnews.overlayslider||{};var e=function(){var e="object"==typeof jnews&&"object"==typeof jnews.library,t="function"==typeof jnews.tns;if(e&&t)var n=jnews.library,i=function(e){e=n.extend({container:".jeg_overlay_slider",responsive:{0:{items:1},380:{items:2},768:{items:3},1024:{items:4,loop:!0}},gutter:10,nav:!1,controls:!1,controlsText:["",""],mouseDrag:!0,textDirection:"ltr"},e||{});var t=function(e){this.construct(e),n.triggerEvents(n.win,"remove_overlayslider_events")};return t.prototype.init=function(){var e=this,t=e.header,i=!1;e.options.fullscreen=e.element.dataset.fullscreen,e.options.shownav=e.element.dataset.nav,e.resize_wrapper=function(){o&&n.cancelAnimationFrame.call(n.win,o);var o=n.requestAnimationFrame.call(n.win,function(){(null==e.header||i)&&(i=!0,e.header=n.doc.createElement("div")),t=n.isVisible(e.header)?e.header:e.container.querySelector(".jeg_navbar_mobile_wrapper"),i&&(t=e.header),n.windowWidth()>e.options.breakpoint?e.element.style.height=n.windowHeight()-n.getHeight(t)+"px":e.element.setAttribute("style",""),e.resize_wrapper_fix()})},e.resize_wrapper_fix=function(){t&&(e.element.style.height=null,n.cancelAnimationFrame.call(n.win,t));var t=n.requestAnimationFrame.call(n.win,function(){if(e.slider_wrapper){(null==e.header||i)&&(i=!0,e.header=n.doc.createElement("div"));var t=n.isVisible(e.header)?e.header:e.container.querySelector(".jeg_navbar_mobile_wrapper");if(i&&(t=e.header),n.windowWidth()>767)e.slider_wrapper.style.height=n.getHeight(e.element)+n.getHeight(t)+"px",e.element.style.height=n.getHeight(e.slider_wrapper)-n.getHeight(t)+"px";else{var o=n.windowHeight(),a=o>414?.45*o:o;e.slider_wrapper.style.height=a+"px",e.element.style.height=a-n.getHeight(t)+"px"}}})},e.options.fullscreen?(e.resize_wrapper(),n.addEvents(n.win,{resize:e.resize_wrapper,load:e.resize_wrapper})):(e.resize_wrapper_fix(),n.addEvents(n.win,{resize:e.resize_wrapper_fix,load:e.resize_wrapper_fix})),e.do_slider(),e.bind_click()},t.prototype.construct=function(e){var t=this;if(t.container=n.globalBody,t.options=n.extend({textDirection:"ltr",fullscreen:!1,breakpoint:1024},e||{}),t.tempOptions=t.options,t.element="string"==typeof t.options.container?t.container.querySelectorAll(t.options.container):t.options.container,t.element.length)return void n.forEach(t.element,function(e,n){t.options.container=e,t.tempOptions=t.options,t.construct(t.options)});t.header=t.container.querySelector(".jeg_header"),t.loader=t.element.querySelector(".jeg_overlay_slider_loader"),t.slider_wrapper=t.element.querySelector(".jeg_overlay_slider_wrapper"),t.slider_bottom=t.element.querySelector(".jeg_overlay_slider_bottom"),t.slider_bg=t.element.getElementsByClassName("jeg_overlay_slider_bg"),t.caption_container=t.element.getElementsByClassName("jeg_overlay_caption_container"),t.activeid=0,t.previd=0,t.init()},t.prototype.do_slider=function(){var e=this,t=n.extend(e.tempOptions||{},{container:e.slider_bottom,controls:e.options.shownav,responsive:{0:{items:1},380:{items:2},768:{items:3},1024:{items:4,loop:!0}},gutter:10,mouseDrag:!0});n.hasClass(t.container,"jeg_tns_active")||(e.slider_bottom=jnews.tns(t),void 0!==e.slider_bottom&&(e.slider_bottom.events.on("indexChanged",function(t){n.addClass(e.element.querySelector('.jeg_overlay_slider_item_wrapper[data-id="'+e.activeid+'"]'),"active")}),e.slider_bottom.events.on("dragStart",function(e){e.event.preventDefault(),e.event.stopPropagation()}),n.addClass(t.container,"jeg_tns_active"),n.dataStorage.put(t.container,"tiny-slider",e.slider_bottom)))},t.prototype.bind_click=function(){var e=this;n.forEach(e.element.getElementsByClassName("jeg_overlay_slider_item_wrapper"),function(t,n){t.addEventListener("click",function(t){t.preventDefault();var n=this,i=n.dataset.id;e.previd=e.activeid,e.activeid=i,e.change_active(n),e.load_background_text(i)})})},t.prototype.change_active=function(e){var t=this;n.forEach(t.element.getElementsByClassName("jeg_overlay_slider_item_wrapper"),function(e,t){n.removeClass(e,"active")}),n.addClass(e,"active")},t.prototype.load_background_text=function(e){var t=this;n.addClass(t.loader,"jeg_slider_fadein"),n.removeClass(t.loader,"jeg_slider_fadeout");var i=t.slider_bg[t.previd],o=t.slider_bg[e],a=o.dataset.bg,s=t.caption_container[t.previd],r=t.caption_container[e];if(n.addClass(s,"jeg_slider_fadeout"),n.removeClass(s,"jeg_slider_fadein"),n.hasClass(o,"loaded"))t.change_active_background(i,o,r);else{var l=new Image;n.addEvents(l,{load:function(){e===t.activeid&&(o.style.backgroundImage="url("+a+")",n.addClass(o,"loaded"),t.change_active_background(i,o,r))}}),l.setAttribute("src",a)}},t.prototype.change_active_background=function(e,t,i){var o=this;n.addClass(o.loader,"jeg_slider_fadeout"),n.removeClass(o.loader,"jeg_slider_fadein"),n.forEach(o.slider_bg,function(e,t){n.removeClass(e,"active")}),n.addClass(e,"jeg_slider_fadeout"),n.removeClass(e,"jeg_slider_fadein"),n.addClass(t,"active"),n.addClass(t,"jeg_slider_fadein"),n.removeClass(t,"jeg_slider_fadeout"),n.addClass(i,"jeg_slider_fadein"),n.removeClass(i,"jeg_slider_fadeout")},new t(e)};else t||console.warn("Tiny Slider could not be found"),e||console.warn("JNews Library could not be found");return i}();window.jnews.overlayslider=e}()},function(e,t){!function(){"use strict";window.jnews=window.jnews||{},window.jnews.carousel=window.jnews.carousel||{};var e=function(){var e="object"==typeof jnews&&"object"==typeof jnews.library,t="function"==typeof jnews.tns;if(t&&e)var n=jnews.library,i=function(e){var t=e.container;if(!n.hasClass(t,"jeg_tns_active")){var i=t.getElementsByClassName("jeg_carousel_post");if(i.length){e.container=i[0];var o,a=function(e){var i={textDirection:"ltr",container:e.container,controls:!1,gutter:20,controlsText:["",""],nav:!1,loop:!0,items:3,autoplay:!1,autoplayTimeout:3e3,animateOut:"tns-fadeOut",autoHeight:!0,mouseDrag:!0,responsive:!1,edgePadding:0,lazyload:!1,lazyloadSelector:"img",mode:"carousel",speed:300,onInit:!1},a=!1;return i.items=void 0===i.container.dataset.items?3:parseInt(i.container.dataset.items),i.controls=void 0===i.container.dataset.nav?i.controls:i.container.dataset.nav,i.autoplay=void 0===i.container.dataset.autoplay?i.autoplay:i.container.dataset.autoplay,i.autoplayTimeout=void 0===i.container.dataset.delay?i.autoplayTimeout:parseInt(i.container.dataset.delay),i.gutter=void 0===i.container.dataset.margin?i.gutter:parseInt(i.container.dataset.margin),"undefined"!=typeof jnewsoption&&(a=1==jnewsoption.rtl),"undefined"!=typeof jnewsgutenbergoption&&(a=1==jnewsgutenbergoption.rtl),i.textDirection=a?"rtl":"ltr",n.hasClass(t,"jeg_postblock_carousel_1")?(o=1,n.hasClass(t,"jeg_col_12")&&(i.items=void 0===i.container.dataset.items?5:parseInt(i.container.dataset.items)),i.controlsPosition="bottom",i.responsive={0:{items:1},321:{items:2,gutter:i.gutter>15?15:i.gutter},568:{items:3,gutter:i.gutter>15?15:i.gutter},1024:{items:i.items}},i):n.hasClass(t,"jeg_postblock_carousel_2")?(o=2,i.items=void 0===i.container.dataset.items?3:parseInt(i.container.dataset.items),i.autoHeight=!1,i.responsive={0:{items:1},568:{items:2},768:{items:i.items>3?3:i.items},1024:{items:i.items}},i):n.hasClass(t,"jeg_postblock_carousel_3")?(o=3,n.hasClass(t,"jeg_col_12")?(i.items=void 0===i.container.dataset.items?3:parseInt(i.container.dataset.items),i.responsive={0:{items:1},568:{items:2},768:{items:i.items>3?3:i.items},1024:{items:i.items}}):n.hasClass(t,"jeg_col_6")||n.hasClass(t,"jeg_col_7")||n.hasClass(t,"jeg_col_8")?(i.items=void 0===i.container.dataset.items?2:parseInt(i.container.dataset.items),i.responsive={0:{items:1},568:{items:2},1024:{items:i.items>2?2:i.items}}):(i.items=1,i.responsive={0:{items:1},568:{items:2},1024:{items:i.items}}),i):i}(e);if(e=n.extend(a,e||{}),o&&!n.hasClass(e.container,"jeg_tns_active")){var s=jnews.tns(e);return void 0!==s&&(s.events.on("dragStart",function(e){e.event.preventDefault(),e.event.stopPropagation()}),n.addClass(e.container,"jeg_tns_active"),n.dataStorage.put(e.container,"tiny-slider",s)),s}}}};else t||console.warn("Tiny Slider could not be found"),e||console.warn("JNews Library could not be found");return i}();window.jnews.carousel=e}()},function(e,t){!function(){"use strict";window.jnews=window.jnews||{},window.jnews.hero=window.jnews.hero||{};var e="object"==typeof jnews&&"object"==typeof jnews.library,t="function"==typeof jnews.tns,n=!1;window.jnews.hero={action:function(){var e=this;n&&e.jnewsLibrary.cancelAnimationFrame.call(e.jnewsLibrary.win,n),n=e.jnewsLibrary.requestAnimationFrame.call(e.jnewsLibrary.win,function(){e.dispatch(),e.heroSlider(e.container)})},init:function(t){var n=this;if(n.jnewsLibrary=!!e&&jnews.library,n.jnewsLibrary){n.container=void 0===t?n.jnewsLibrary.globalBody:t;var i={resize:n.action.bind(this)};n.jnewsLibrary.winLoad(n.action.bind(this)),n.jnewsLibrary.docReady(n.action.bind(this)),n.jnewsLibrary.addEvents(n.jnewsLibrary.win,i)}},dispatch:function(){var e=this;e.jnewsLibrary.forEach(e.container.getElementsByClassName("jeg_heroblock"),function(t,n){var i=t,o=i.getElementsByClassName("jeg_heroblock_wrapper"),a=i.getElementsByClassName("jeg_heroblock_scroller"),s=i.getElementsByClassName("jeg_post"),r=i.dataset.margin;e.jnewsLibrary.windowWidth()>667?(o.length>0&&e.jnewsLibrary.forEach(o,function(e,t){e.style.marginLeft="-"+r+"px",e.style.marginBottom="-"+r+"px",e.style.marginRight=0,e.style.marginTop=0}),s.length>0&&e.jnewsLibrary.forEach(s,function(e,t){e.style.padding="0 0 "+r+"px "+r+"px "})):a.length>0&&(r>5&&(r=5),e.jnewsLibrary.hasClass(i,"tiny-slider")||e.jnewsLibrary.forEach(a,function(e,t){e.style.marginLeft="-"+r+"px"}),o.length>0&&e.jnewsLibrary.forEach(o,function(e,t){e.style.marginLeft=0,e.style.marginBottom=0,e.style.marginRight=0}),s.length>0&&e.jnewsLibrary.forEach(s,function(t,n){e.jnewsLibrary.getParents(t,".jeg_heroblock_scroller").length>0?e.jnewsLibrary.hasClass(i,"tiny-slider")?e.jnewsLibrary.hasClass(i,"jeg_heroblock_1")&&e.jnewsLibrary.hasClass(t,"jeg_hero_item_4")||e.jnewsLibrary.hasClass(i,"jeg_heroblock_2")&&(e.jnewsLibrary.hasClass(t,"jeg_hero_item_3")||e.jnewsLibrary.hasClass(t,"jeg_hero_item_5"))||e.jnewsLibrary.hasClass(i,"jeg_heroblock_3")&&(e.jnewsLibrary.hasClass(t,"jeg_hero_item_3")||e.jnewsLibrary.hasClass(t,"jeg_hero_item_4"))||e.jnewsLibrary.hasClass(i,"jeg_heroblock_4")&&e.jnewsLibrary.hasClass(t,"jeg_hero_item_3")?(t.style.paddingLeft=r+"px",t.style.paddingBottom=r+"px"):(t.style.paddingLeft=0,t.style.paddingBottom=r+"px"):(t.style.paddingLeft=r+"px",t.style.paddingBottom=0):(t.style.paddingLeft=0,t.style.paddingBottom=r+"px")}))})},heroSlider:function(e){if(t){var n=this,i=e.querySelectorAll(".jeg_heroblock.tiny-slider");i.length>0&&n.jnewsLibrary.forEach(i,function(e,t){var i=e,o=i.dataset.autoplay,a=i.dataset.delay,s=!1;s="undefined"!=typeof jnewsoption?1==jnewsoption.rtl:"undefined"!=typeof jnewsgutenbergoption&&1==jnewsgutenbergoption.rtl,i=i.querySelectorAll(".jeg_hero_wrapper:not(.jeg_tns_active)"),n.jnewsLibrary.forEach(i,function(e,t){if(!n.jnewsLibrary.hasClass(e,"jeg_tns_active")){var i=jnews.tns({container:e,textDirection:s?"rtl":"ltr",items:1,controlsText:["",""],controls:!0,nav:!1,loop:!0,autoplay:o,autoplayTimeout:a,mouseDrag:!0,onInit:function(e){void 0!==e.nextButton&&n.jnewsLibrary.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&n.jnewsLibrary.addClass(e.prevButton,"tns-prev")}});void 0!==i&&(i.events.on("dragStart",function(e){e.event.preventDefault(),e.event.stopPropagation()}),n.jnewsLibrary.addClass(e,"jeg_tns_active"),n.jnewsLibrary.dataStorage.put(e,"tiny-slider",i))}})})}}}}()},function(e,t){!function(){"use strict";window.jnews=window.jnews||{},window.jnews.ticker=window.jnews.ticker||{};var e=function(){function e(){for(var e,t,n,i=arguments[0]||{},o=1,a=arguments.length;o<a;o++)if(null!==(e=arguments[o]))for(t in e)n=e[t],i!==n&&void 0!==n&&(i[t]=n);return i}var t=window,n=document;return function(i){function o(){f.querySelector(".jeg_news_ticker_control").addEventListener("click",function(e){var t="";e.target.classList.contains("jeg_news_ticker_next")&&(t="next"),e.target.classList.contains("jeg_news_ticker_prev")&&(t="prev"),""!==t&&a(t)}),p.forEach(function(e,t){e.addEventListener("mouseover",function(){clearTimeout(y)}),e.addEventListener("mouseout",function(){s()})})}function a(e){l(),c(e),d(e),s()}function s(){i.autoplay&&r()}function r(){window.clearTimeout(y),y=window.setTimeout(function(){a("next")},i.delay)}function l(){if(null!==g){var e=p[g];x.forEach(function(t,n){e.classList.remove(t)})}}function c(e){var t=p[m],n=p[v];g=v,"next"===e?(null!==v&&(n.classList.remove(w,x[0],x[1]),n.classList.add(x[3])),t.classList.add(w,x[0])):(null!==v&&(n.classList.remove(w,x[0],x[1]),n.classList.add(x[2])),t.classList.add(w,x[1]))}function d(e){v=m,"next"===e?m++:m--,m>=_&&(m=0),m<0&&(m=_-1)}i=e({container:".jeg_news_ticker",autoplay:!0,delay:3e3,animation:"vertical",item:".jeg_news_ticker_item",classes:{active_class:"jeg_news_ticker_active"}},i||{});var u=t.console&&"function"==typeof t.console.warn,h={};if(["container","item"].forEach(function(e){if("string"==typeof i[e]){var t=i[e],o="item"===e&&i.container&&i.container.nodeName?i.container.querySelectorAll(t):n.querySelector(t);if(h[e]=t,!o||!(o.nodeName||"object"==typeof o&&o.length))return void(u&&console.warn("Can't find",i[e]));i[e]=o}}),i.container.children.length<1)return void(u&&console.warn("No item found in",i.container));var f=i.container,p=i.item,m=0,g=null,v=null,_=0,y=null,w="jeg_news_ticker_active",b=["fadeInLeft","fadeInRight","fadeOutLeft","fadeOutRight"],j=["fadeInUp","fadeInDown","fadeOutDown","fadeOutUp"],x=null;!function(){i.animation=f.dataset.animation,i.autoplay=f.dataset.autoplay,i.delay=f.dataset.delay,_=p.length,_>1?("horizontal"===i.animation?x=b:"vertical"===i.animation&&(x=j),o(),s(),a("next")):p[0].classList.add(w)}()}}();window.jnews.ticker=e}()},function(e,t){!function(e){"use strict";function t(t){return e(t).parents(".elementor-background-video-container")}function n(){jnews.body_inject?(jnews.body_inject.find("img").attr("data-pin-no-hover",!0),jnews.body_inject.find(".article-content img, .featured img, .thumbnail-container img").removeAttr("data-pin-no-hover")):(e("img").attr("data-pin-no-hover",!0),e(".article-content img, .featured img, .thumbnail-container img").removeAttr("data-pin-no-hover"))}function i(){var t=jnews.body_inject?jnews.body_inject.find(".jeg_fs_container"):e(".jeg_fs_container"),n=t.find(".jeg_fs_content"),i=t.find(".jeg_featured_bg"),o=t.find(".jeg_fs_scroll"),a=function(){var t=jnews.body_inject?jnews.body_inject.find(".jeg_header"):e(".jeg_header"),o=jnews.body_inject?jnews.body_inject.find(".jeg_navbar_mobile"):e(".jeg_navbar_mobile");if(n.length>0){var a=t.is(":visible")?t.outerHeight():o.outerHeight(),s=e(window).height();e(n).css({height:s-a+"px"}),e(i).css({height:s+"px"})}},s=jnews.body_inject?jnews.body_inject.find(".jeg_parallax .jeg_featured_img"):e(".jeg_parallax .jeg_featured_img");s.length&&s.each(function(){e(this).parallax("50%",.15)}),o.on("click",function(){var t=jnews.body_inject?jnews.body_inject.find(".jeg_scroll_flag").offset().top:e(".jeg_scroll_flag").offset().top;e("html, body").animate({scrollTop:t},800)});var r=function(){var n=e(window).scrollTop(),i=t.outerHeight(),a=1-n/i;if((jnews.body_inject?jnews.body_inject:e("body")).hasClass("jeg_single_tpl_5")){var s=1-n/i*.2;t.find(".entry-header .container").css({opacity:a,"-webkit-transform":"scale("+s+")",transform:"scale("+s+")"})}else t.find(".entry-header .container").css({opacity:a});o.css("opacity",a-.2)};"object"==typeof jnews.library&&(jnews.library.winLoad(a),jnews.library.winLoad(r)),e(window).on("resize",a),e(document).on("ready",a),e(window).on("scroll resize",r)}function o(){var t=jnews.body_inject?jnews.body_inject.find("a[href*=\\#]:not([href=\\#])"):e("a[href*=\\#]:not([href=\\#])");t.length&&t.each(function(t,n){var i=e(n);if(void 0!==i.data("vc-container")||i.hasClass("bp-primary-action")||i.hasClass("jeg_popuplink"))return!1;i.on("click",function(t){var n=e(this).attr("href");if(n=n.split("#"),n.length>1){n=n[1];var i=jnews.body_inject?jnews.body_inject.find("#"+n):e("#"+n);0!==i.length&&e("html, body").animate({scrollTop:i.offset().top},600)}})})}function a(){var t=jnews.body_inject?jnews.body_inject.find(".jscroll-to-top"):e(".jscroll-to-top"),n=function(){e(window).scrollTop()>400?t.addClass("show"):t.removeClass("show")};t.on("click",function(){return e("html, body").animate({scrollTop:0},600),!1}),e(window).width()>1024?("object"==typeof jnews.library&&jnews.library.winLoad(n),e(window).on("scroll",n)):e(window).off("scroll",n)}function s(){if("object"==typeof jnews.library){var e=function(){var e=jnews.library.globalBody.querySelectorAll(".ads-parallax-inner");e.length&&g.forEach(e,function(e,t){var n=e.querySelector(".ads-parallax");if("object"==typeof n&&null!==n){var i=jnews.library.getWidth(e),o=jnews.library.getHeight(n);n.style.width=i+"px",n.style.marginTop="-"+o/2+"px"}})};jnews.library.addEvents(jnews.library.win,{load:e,resize:e})}}function r(){e.ajaxSetup({data:{lang:jnewsoption.language}})}function l(){var t=jnews.body_inject?jnews.body_inject.find(".jnews-cookie-law-policy"):e(".jnews-cookie-law-policy"),n=e.now(),i=void 0===jnewsoption.site_slug?"/":jnewsoption.site_slug,o=void 0===jnewsoption.site_domain?window.location.hostname:jnewsoption.site_domain;if(t.length>0){var a=function(e,t){var a=n+24*t*60*60*1e3,s=new Date;s.setTime(a),s.toUTCString(),document.cookie=e+"="+(a||"")+";expires="+s+";path="+i+";domain="+o},s=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null}("jnews_cookie_law");s?parseInt(s)<n&&t.fadeIn("slow"):t.fadeIn("slow"),t.find(".btn-cookie").on("click",function(t){t.preventDefault();var n=e(this);a("jnews_cookie_law",n.data("expire")),n.parent().fadeOut()})}}function c(t){var n=jnews.body_inject?jnews.body_inject.find(".jeg_progress_container"):e(".jeg_progress_container");if(n.length>0){var i=!1,o=e(window),a=t.height(),s=.85*o.height();e(window).scroll(function(){i=!0}),e(window).on("resize",function(){a=t.height(),s=.85*o.height(),r()}),void 0!==window.progressTimer&&clearInterval(window.progressTimer),window.progressTimer=setInterval(function(){i&&(i=!1,r())},150);var r=function(){var e=o.scrollTop(),i=t.offset().top,r=s-i+e,l=0;s>a+i?n.find(".progress-bar").width(0):(r>a?a<e-i+.2*s?(n.find(".progress-bar").css("transition","none"),n.find(".progress-bar").width(0)):(n.find(".progress-bar").css("transition","none"),n.find(".progress-bar").width("100%"),l=100):r>0&&(l=r/a*100),n.find(".progress-bar").width(l+"%"),n.find(".progress-bar").css("transition","all .12s ease-in"))}}}function d(){if(!((e(".jeg_double_sidebar").length>1||e(".jeg_double_right_sidebar").length>1)&&e(window).width()<992)){var t=e(".jeg_sticky_sidebar");t.theiaStickySidebar({additionalMarginTop:20}),window.addEventListener("resize",function(){window.innerWidth>=992?t.trigger("theiaStickySidebarActivate"):t.trigger("theiaStickySidebarDeactivate")})}}function u(){var t=jnews.body_inject?jnews.body_inject.find(".jnews_author_box_container"):e(".jnews_author_box_container");t.length&&t.each(function(){var t=e(this);t.hasClass("author-truncate")&&t.on("click",function(){e(this).removeClass("author-truncate")})})}function h(){var t="object"==typeof jnews&&"object"==typeof jnews.library,h=!!t&&jnews.library,f=jnews.body_inject?jnews.body_inject:e("body"),m=f.find(".jeg_tabpost_widget"),g=f.find(".jeg_review_search"),v=f.find(".jeg_reviewbars"),_=h&&"undefined"!==h.globalBody,y=!(!_||"function"!=typeof jnews.slider)&&h.globalBody.querySelectorAll(".jeg_slider_wrapper .jeg_slider"),w=!(!_||"function"!=typeof jnews.tns)&&h.globalBody.getElementsByClassName("featured_gallery"),b=!(!_||"function"!=typeof jnews.carousel)&&h.globalBody.getElementsByClassName("jeg_postblock_carousel"),j=!(!_||"function"!=typeof jnews.overlayslider)&&h.globalBody.getElementsByClassName("jeg_overlay_slider"),x=!(!_||"function"!=typeof jnews.ticker)&&h.globalBody.getElementsByClassName("jeg_news_ticker"),C=!(!_||"function"!=typeof jnews.vidplaylist)&&h.globalBody.getElementsByClassName("jeg_video_playlist");if(m.length&&m.jtabs(),y&&y.length&&h.forEach(y,function(e,t){h.requestAnimationFrame.call(h.win,function(){jnews.slider({container:e,onInit:function(e){void 0!==e.nextButton&&h.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&h.addClass(e.prevButton,"tns-prev")}})})}),w&&w.length&&h.forEach(w,function(e,t){if(!h.hasClass(e,"jeg_tns_active")){var n=jnews.tns({container:e,textDirection:1==jnewsoption.rtl?"rtl":"ltr",controls:!0,controlsText:["",""],nav:!0,items:1,mouseDrag:!0,autoplay:!1,autoplayTimeout:3e3,loop:!1,onInit:function(e){void 0!==e.nextButton&&h.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&h.addClass(e.prevButton,"tns-prev")}});void 0!==n&&(n.events.on("dragStart",function(e){e.event.preventDefault(),e.event.stopPropagation()}),h.addClass(e,"jeg_tns_active"),h.dataStorage.put(e,"tiny-slider",n))}}),b&&b.length&&h.forEach(b,function(e,t){h.requestAnimationFrame.call(h.win,function(){jnews.carousel({container:e,textDirection:1==jnewsoption.rtl?"rtl":"ltr",onInit:function(e){void 0!==e.nextButton&&h.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&h.addClass(e.prevButton,"tns-prev")}})})}),j&&j.length&&jnews.overlayslider({container:j[0],textDirection:1==jnewsoption.rtl?"rtl":"ltr",onInit:function(e){void 0!==e.nextButton&&h.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&h.addClass(e.prevButton,"tns-prev")}}),x&&x.length&&h.forEach(x,function(e,t){jnews.ticker({container:e})}),C&&C.length&&h.forEach(C,function(e,t){jnews.vidplaylist({container:e,textDirection:1==jnewsoption.rtl?"rtl":"ltr",onInit:function(e){void 0!==e.nextButton&&h.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&h.addClass(e.prevButton,"tns-prev")}})}),jnews.hero&&jnews.hero.init(),i(),e(window).width()>768&&(d(),f.find(".share-float").theiaStickySidebar({additionalMarginTop:20,updateSidebarHeight:!1}),f.find(".jeg_parallax_bg").parallax("50%",.1)),v.length&&v.jskill(),a(),o(),s(),f.find('select:visible:not(.woocommerce select):not(select.form-control-solid):not(.drts select):not([class^="wpforms"])').chosen({disable_search_threshold:10}),e.do_media_render(f),n(),window.onYouTubeIframeAPIReady=function(){var t=f.find(".jeg_blocklink .jeg_videobg");t.length&&t.each(function(){e(this).jvideo_background()})},jnewsoption.gif){f.find('.content-inner img[src$=".gif"]').jnewsgif()}p(h.globalBody),e.facebook_page_widget(),e.twitter_widget(),e.google_plus_widget(),e.pinterest_widget(),e(document).ajaxComplete(function(){e.google_plus_widget(),e.twitter_widget(),e.facebook_page_widget()}),r(),l(),g.length&&g.ajax_review_search(),c(f.find(".entry-content")),e(document).on("jnews-autoload-change-id",function(e,t){c(f.find(".post-autoload[data-id="+t+"]").find(".entry-content"))}),u()}function f(t,o){var a="object"==typeof jnews&&"object"==typeof jnews.library,s=!!a&&jnews.library;n(),i(),e.do_media_render(o),e(window).width()>768&&(e(o).find(".jeg_sticky_sidebar").theiaStickySidebar({additionalMarginTop:20}),e(o).find(".share-float").theiaStickySidebar({additionalMarginTop:20,updateSidebarHeight:!1}),e(o).find(".jeg_parallax_bg").parallax("50%",.1)),e(o).find("select:visible").chosen({disable_search_threshold:10}),s&&"undefined"!==s.globalBody&&s.forEach(o,function(e,t){if("function"==typeof jnews.carousel){var n=e.getElementsByClassName("jeg_postblock_carousel");n.length&&s.forEach(n,function(e,t){jnews.carousel({container:e,textDirection:1==jnewsoption.rtl?"rtl":"ltr",onInit:function(e){void 0!==e.nextButton&&s.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&s.addClass(e.prevButton,"tns-prev")}})})}if("function"==typeof jnews.tns){var i=e.getElementsByClassName("featured_gallery");i.length&&s.forEach(i,function(e,t){if(!s.hasClass(e,"jeg_tns_active")){var n=jnews.tns({container:e,textDirection:1==jnewsoption.rtl?"rtl":"ltr",controls:!0,controlsText:["",""],nav:!0,items:1,mouseDrag:!0,autoplay:!1,autoplayTimeout:3e3,loop:!1,onInit:function(e){void 0!==e.nextButton&&s.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&s.addClass(e.prevButton,"tns-prev")}});void 0!==n&&(n.events.on("dragStart",function(e){e.event.preventDefault(),e.event.stopPropagation()}),s.addClass(e,"jeg_tns_active"),s.dataStorage.put(e,"tiny-slider",n))}})}if("function"==typeof jnews.vidplaylist){var a=e.getElementsByClassName("jeg_video_playlist");a.length&&(s.forEach(a,function(e,t){jnews.vidplaylist({container:e,textDirection:1==jnewsoption.rtl?"rtl":"ltr",onInit:function(e){void 0!==e.nextButton&&s.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&s.addClass(e.prevButton,"tns-prev")}})}),setTimeout(function(){window.dispatchEvent(new Event("resize"))},500))}if("function"==typeof jnews.slider){var r=e.querySelectorAll(".jeg_slider_wrapper .jeg_slider");r.length&&s.forEach(r,function(e,t){jnews.slider({container:e,onInit:function(e){void 0!==e.nextButton&&s.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&s.addClass(e.prevButton,"tns-prev")}})})}"function"==typeof jnews.splitpost&&jnews.splitpost(e),s.forEach(o,function(e,t){p(e)})}),e(o).find('.content-inner img[src$=".gif"]').jnewsgif();var r=e(o).find(".jeg_reviewbars");r.length&&r.jskill();var l=e(o).find(".jeg_tabpost_widget");l.length&&l.jtabs(),e(o).find(".jeg_module_hook").jmodule(),jnews.widget.popular.init(o),jnews.popup.init(o),jnews.comment.init(o),jnews.mobile.truncate(),e.facebook_page_widget(),e.twitter_widget(),e.google_plus_widget(),e.pinterest_widget()}function p(e){if(g){var t=e.getElementsByClassName("jeg_preview_slider");t.length&&(g.forEach(t,function(e,t){var n=e,i=window[n.dataset.selector];jnews.jpreviewslider(n,i)}),setTimeout(function(){g.triggerEvents(g.win,"resize")},500))}}window.jnews=window.jnews||{},void 0===jnews.body_inject&&(window.jnews.body_inject=e("body")),e.youtube_parser=function(e){var t=/^.*(?:(?:youtu.be\/)|(?:v\/)|(?:\/u\/\w\/)|(?:embed\/)|(?:watch\?))\??&?v?=?([^#\&\?]*).*/,n=e.match(t);if(n&&11===n[1].length)return n[1];window.alert("Url Incorrect")},e.vimeo_parser=function(e){var t=/(?:(http|https)\:\/\/)(?:(?:www|player)\.)?vimeo\.com(?:\/(?:video\/(\d+)(?:$|\/))|(?:\/(\d+)(?:$|\/)))/,n=e.match(t);if(n)return n=n[2]||n[3];window.alert("not a vimeo url")},e.dailymotion_parser=function(e){var t=/(?:dailymotion\.com(?:\/video|\/hub)|dai\.ly)\/([0-9a-z]+)(?:[\-_0-9a-zA-Z]+#video=([a-z0-9]+))?/,n=e.match(t);if(n)return n[2]?n[2]:n[1];window.alert("not a dailymotion url")},e.type_video_youtube=function(t,n,i){var o=e.youtube_parser(e(t).attr("data-src")),a="",s="";i?(a+=!0===n?"autoplay=1&":"",a+=!0===i?"loop=1&playlist="+o:"",s='<iframe width="700" height="500" src="//www.youtube.com/v/'+o+"?version=3&"+a+'showinfo=0&theme=light&autohide=1&rel=0&wmode=opaque" frameborder="0" allowfullscreen></iframe>'):(a+=!0===n?"autoplay=1&":"",s='<iframe width="700" height="500" src="//www.youtube.com/embed/'+o+"?"+a+'showinfo=0&theme=light&autohide=1&rel=0&wmode=opaque" frameborder="0" allowfullscreen></iframe>'),e(".jeg_video_container",t).append(s)},e.type_video_vimeo=function(t,n,i){var o=e.vimeo_parser(e(t).attr("data-src")),a="";a+=!0===n?"autoplay=1&":"",a+=!0===i?"loop=1&":"";var s='<iframe src="//player.vimeo.com/video/'+o+"?"+a+'title=0&byline=0&portrait=0" width="700" height="500" frameborder="0" mozallowfullscreen webkitallowfullscreen allowfullscreen></iframe>';e(".jeg_video_container",t).append(s)},e.type_video_dailymotion=function(t,n){var i=e.dailymotion_parser(e(t).attr("data-src")),o="";o+=!0===n?"autoplay=1&":"";var a='<iframe src="//www.dailymotion.com/embed/video/'+i+"?"+o+'ui-start-screen-info=0&ui-theme=light&queue-autoplay-next=0&queue-enable=0&sharing-enable=0&ui-logo=0" width="700" height="500" frameborder="0" mozallowfullscreen webkitallowfullscreen allowfullscreen></iframe>';e(".jeg_video_container",t).append(a)},e.type_soundcloud=function(t){var n=e(t).attr("data-src"),i='<iframe src="https://w.soundcloud.com/player/?url='+encodeURIComponent(n)+'" width="700" height="500" frameborder="0"></iframe>';e(".jeg_video_container",t).append(i)},e.type_audio=function(t){var n="",i="";""!==e(t).data("mp3")&&(n="<source type='audio/mpeg' src='"+e(t).data("mp3")+"' />"),""!==e(t).data("ogg")&&(i="<source type='audio/ogg' src='"+e(t).data("ogg")+"' />");var o="<audio preload='none' style='width: 100%; visibility: hidden;' controls='controls'>"+n+i+"</audio>";e(t).append(o);var a={};"undefined"!=typeof _wpmejsSettings&&(a=_wpmejsSettings),a.success=function(e){var t,n;"flash"===e.pluginType&&(t=e.attributes.autoplay&&"false"!==e.attributes.autoplay,n=e.attributes.loop&&"false"!==e.attributes.loop,t&&e.addEventListener("canplay",function(){e.play()},!1),n&&e.addEventListener("ended",function(){e.play()},!1))},e(t).find("audio").mediaelementplayer(a)},e.type_video_html5=function(t,n,i,o){var a=e(t).data("cover");i.pauseOtherPlayers=!1;var s="",r="",l="";""!==e(t).data("mp4")&&(s="<source type='video/mp4' src='"+e(t).data("mp4")+"' />"),""!==e(t).data("webm")&&(r="<source type='video/webm' src='"+e(t).data("webm")+"' />"),""!==e(t).data("ogg")&&(l="<source type='video/ogg' src='"+e(t).data("ogg")+"' />");var c=n?"preload='auto'":"preload='none'",d="<object width='100%' height='100%' type='application/x-shockwave-flash' data='/public/mediaelementjs/flashmediaelement.swf'><param name='movie' value='/public/mediaelementjs/flashmediaelement.swf' /><param name='flashvars' value='controls=true&file="+e(t).data("mp4")+"' /><img src='"+a+"' alt='No video playback capabilities' title='No video playback capabilities' /></object>",u="<video id='player' style='width:100%;height:100%;' width='100%' height='100%' poster='"+a+"' controls='controls' "+c+">"+s+r+l+d+"</video>";e(o,t).append(u),n&&(i.success=function(e){"flash"===e.pluginType?e.addEventListener("canplay",function(){e.play()},!1):e.play()}),e(t).find("video").mediaelementplayer(i)},e.do_media_render=function(n){e(n).find("[data-type='youtube']").length&&e(n).find("[data-type='youtube']").each(function(){var t=e(this).data("autoplay"),n=e(this).data("repeat");e.type_video_youtube(e(this),t,n)}),e(n).find("[data-type='vimeo']").length&&e(n).find("[data-type='vimeo']").each(function(){var t=e(this).data("autoplay"),n=e(this).data("repeat");e.type_video_vimeo(e(this),t,n)}),e(n).find("[data-type='dailymotion']").length&&e(n).find("[data-type='dailymotion']").each(function(){var t=e(this).data("autoplay");e.type_video_dailymotion(e(this),t)}),e(n).find("[data-type='soundcloud']").length&&e(n).find("[data-type='soundcloud']").each(function(){e.type_soundcloud(e(this))}),e(n).find("[data-type='audio']").length&&e(n).find("[data-type='audio']").each(function(){e.type_audio(e(this))}),e(n).find("video").length&&e(n).find("video").each(function(){t(this)||e(this).mediaelementplayer()})},e.fn.jtabs=function(){e(this).each(function(){var t=e(this),n=e(".jeg_tabpost_nav li.active",t),i=function(n){var i=e(n).data("tab-content");e(".jeg_tabpost_nav li.active",t).removeClass("active"),e(n).addClass("active"),e(".jeg_tabpost_item.active",t).removeClass("active"),e('.jeg_tabpost_item[id="'+i+'"]',t).addClass("active")};if(n.length)i(n);else{var o=e(".jeg_tabpost_nav li",t).first();i(o)}e(".jeg_tabpost_nav li",t).on("click",function(){e(this).hasClass("active")||i(this)})})},e.fn.jskill=function(){return e(this).each(function(){var t=e(this);t.waypoint(function(n){var i=t.find("li"),o=t.data("scoretype");t.addClass("show"),i.each(function(t){var n=e(this).find(".barbg"),i=e(this).find(".reviewscore"),a=n.attr("data-width");window.setTimeout(function(){i.prop("Counter",0).animate({Counter:a},{duration:600,easing:"swing",step:function(t){var i="";i="point"===o?Math.ceil(.1*t):Math.ceil(t)+"%",e(this).text(i),n.css("width",t+"%")}})},250*t)}),this.destroy()},{offset:"80%",context:window})})},e.fn.jvideo_background=function(){function t(e){var t=n(e.parents(".jeg_block_container"),"zoom");e.css({height:t[0],width:t[1],left:t[2]+"px",top:t[3]+"px","max-width":"inherit"})}function n(t,n){var i,o,a,s,r=9/16,l=e(t).height(),c=e(t).width(),d=l/c,u=function(){return o=c,i=c*r,s=(c-o)/2,a=(l-i)/2,[i,o,s,a]},h=function(){return o=l/r,i=l,s=(c-o)/2,a=(l-i)/2,[i,o,s,a]};return"fit"===n?d>r?u():h():"zoom"===n?d>r?h():u():"fitNoUpscale"===n?9>l||16>c?e.new_get_image_container_size(img,t,"fit"):function(){return o=16,i=9,s=(c-o)/2,a=(l-i)/2,[i,o,s,a]}():void 0}e(this).each(function(){var n=e(this),i=n.parent(".jeg_videowrapper"),o=n.get(0),a=n.data("youtubeid");new YT.Player(o,{width:"100%",height:"100%",videoId:a,playerVars:{playlist:a,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),t(i),jQuery(window).on("resize",function(){t(i)})})},e.fn.ajax_review_search=function(){return e(this).each(function(){var t=this,n=e(t).find('input[name="action"]'),i=e(t).find('input[name="page"]'),o=e(t).find('select[name="category"]'),a=e(t).find(".search_keyword"),s=e(t).find('select[name="sort"]'),r=e(t).find(".jeg_review_search_result_holder"),l=e(t).find(".module-overlay"),c=e(t).find(".review-search-form"),d=e(t).data("id"),u=window[d],h=null,f=null,p=function(){e(i).val(1)},m=function(){e(l).stop().fadeIn(),u.action=e(n).val(),u.keyword=e(a).val(),u.category=e(o).val(),u.sort=e(s).val(),u.page=e(i).val(),null!==f&&f.abort(),f=e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:u,success:function(t){e(r).html(t),e(l).stop().fadeOut()}})},g=function(){h&&clearTimeout(h),h=setTimeout(function(){m()},250)},v=function(){p(),g()};e(a).on("input",function(){(e(a).val().length>2||0==e(a).val().length)&&v()}),e(o).on("change",function(){v()}),e(s).on("change",function(){v()}),e(t).on("click",".jeg_navigation a",function(t){t.preventDefault(),e(i).val(e(this).data("id")),g()}),e(c).on("submit",function(e){e.preventDefault(),v()})})},e.facebook_page_widget=function(){e(".fb-page").length&&(e("#facebook-jssdk").length?"undefined"!=typeof FB&&FB.XFBML.parse():e(".fb-page").waypoint({handler:function(){var t="&appId="+e(".fb-page").attr("data-id");!function(e,n,i){var o,a=e.getElementsByTagName(n)[0];e.getElementById(i)||(o=e.createElement(n),o.id=i,o.src="//connect.facebook.net/"+jnewsoption.language+"/sdk.js#xfbml=1&version=v2.8"+t,a.parentNode.insertBefore(o,a))}(document,"script","facebook-jssdk")},offset:"100%"}))},e.twitter_widget=function(){var t=jnews.body_inject?jnews.body_inject.find(".twitter-timeline"):e(".twitter-timeline"),n=!1;t.length&&t.waypoint({handler:function(){n||(!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//platform.twitter.com/widgets.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)}(),n=!0)},offset:"100%"})},e.google_plus_widget=function(){var t=jnews.body_inject?jnews.body_inject.find(".jeg_google_plus_widget"):e(".jeg_google_plus_widget"),n=!1;t.length&&(t.waypoint({handler:function(){n||(!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//apis.google.com/js/platform.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)}(),n=!0)},offset:"100%"}),t.each(function(){var t=e(this).width(),n=e(this).find("div").attr("data-width");("true"===e(this).find("div").attr("data-fit")||t<n)&&e(this).find("div").attr("data-width",t)}))},e.pinterest_widget=function(){var t=jnews.body_inject?jnews.body_inject.find(".jeg_pinterest_widget"):e(".jeg_pinterest_widget"),n=!1;t.length&&t.waypoint({handler:function(){n||(!function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//assets.pinterest.com/js/pinit.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)}(),n=!0)},offset:"100%"})},e(document).on("ready",h),e(window).load(function(){if(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0){var e=document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)}else window.dispatchEvent(new Event("resize"))}),e(document).on("jnews-ajax-load",f);var m="object"==typeof jnews&&"object"==typeof jnews.library,g=!!m&&jnews.library;g&&g.addEvents(g.doc,{jnews_after_split_content_ajax:function(e){if(e.detail&&e.detail.data){var t=e.detail.data;g.forEach(t,function(e,t){p(e)})}}})}(jQuery),function(e){"use strict";window.jnews=window.jnews||{};var t="object"==typeof jnews&&"object"==typeof jnews.library,n=!!t&&jnews.library;void 0===jnews.body_inject&&(window.jnews.body_inject=e("body")),window.jnews.menu={newsfeed_xhr:null,search_length_word:3,search_timeout:null,search_xhr:null,init:function(i){var o=this;o.isJNewsLibrary=t,o.jnewsLibrary=!!o.isJNewsLibrary&&n,void 0===i&&(i=jnews.body_inject?jnews.body_inject:e("body")),i.find(".jeg_menu").each(function(){var t=this;t=e(t);var n=t.attr("data-animation");"slide"===n?t.superfish({animationType:n,popUpSelector:"ul,.sub-menu",speed:150,animationOut:100,onShow:function(){e(this).find(".jeg_newsfeed").length&&o.mega_menu_init(this,o)}}):"animateTransform"===n?t.superfish({animationType:n,popUpSelector:"ul,.sub-menu",disableHI:!0,speed:200,delay:0,onShow:function(){e(this).find(".jeg_newsfeed").length&&o.mega_menu_init(this,o)}}):"none"===n?t.superfish({animationType:n,popUpSelector:"ul,.sub-menu",delay:0,disableHI:!0,animation:{opacity:"show"},speed:1,onShow:function(){e(this).find(".jeg_newsfeed").length&&o.mega_menu_init(this,o)}}):t.superfish({popUpSelector:"ul,.sub-menu",delay:250,speed:"fast",animation:{opacity:"show"},onShow:function(){e(this).find(".jeg_newsfeed").length&&o.mega_menu_init(this,o)}})}),o.search(i),o.meganav(i)},meganav:function(t){var n=t.find(".jeg_meganav_bar");n.find(".current_title").on("click",function(){n.toggleClass("nav-open")}),e(document).mouseup(function(t){n.hasClass("nav-open")&&!e(t.target).parents(".jeg_meganav_bar").length>0&&n.removeClass("nav-open")})},search:function(e){var t=this;t.search_toggle(e),t.live_search(e)},search_toggle:function(t){t.find(".jeg_search_toggle").on("click",function(t){t.preventDefault();var n=e(this).parent(".jeg_search_wrapper"),i=e(this).parents(".jeg_container, .jeg_container_full"),o=n.hasClass("jeg_search_fullwidth_expand")?"hide_navbar_items":"";i.toggleClass("jeg_search_expanded "+o),e("i.fa",e(this)).toggleClass("fa-close fa-search"),e(".jeg_search_input",n).focus()})},live_search:function(t){var n=this;jnewsoption.live_search&&(t.find(".jeg_search_wrapper .jeg_search_input").each(function(){var t=null,i=e(this),o=e(this).parents(".jeg_search_wrapper");e(this).on("keyup",function(){if(!e(o).hasClass("jeg_search_modal_expand")){var a=e(this).val();a.trim().length>=n.search_length_word&&a!==t?(t=a,n.do_live_search(a,i)):a.trim().length<n.search_length_word&&n.hide_live_search()}})}),t.find(".search-all-button").on("click",function(t){t.preventDefault();var n=e(this).parents(".jeg_search_wrapper");e(n).find("form").submit()}))},do_live_search:function(t,n){var i=this;clearTimeout(i.search_timeout),i.search_timeout=setTimeout(function(){null!==i.search_xhr&&i.search_xhr.abort(),i.loading_search(n),i.search_xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:{s:t,action:"jnews_ajax_live_search"},success:e.proxy(i.load_search,i,n)})},200)},loading_search:function(t){var n=e(t).parents(".jeg_search_wrapper");e(n).find(".jeg_search_button .fa").removeClass("fa-search").addClass("fa-spinner fa-spin")},remove_loading_search:function(t){var n=e(t).parents(".jeg_search_wrapper");e(n).find(".jeg_search_button .fa").removeClass("fa-spinner fa-spin").addClass("fa-search")},load_search:function(t,n){var i=this,o=e(t).parents(".jeg_search_wrapper");""===n?(e(o).find(".search-result-wrapper").html(""),i.search_no_data(o)):(e(o).find(".search-result-wrapper").html("").append(n),i.search_data_exist(o)),i.remove_loading_search(t)},search_no_data:function(t){e(t).find(".jeg_search_result").removeClass("jeg_search_hide"),e(t).find(".jeg_search_result").removeClass("with_result").addClass("no_result")},search_data_exist:function(t){e(t).find(".jeg_search_result").removeClass("jeg_search_hide"),e(t).find(".jeg_search_result").addClass("with_result").removeClass("no_result")},hide_live_search:function(){e(".jeg_search_result").addClass("jeg_search_hide")},sticky_menu:function(t){void 0===t&&(t=jnews.body_inject?jnews.body_inject:e("body"));var n=t.find(".jeg_stickybar");if(n.length){n.jsticky({item_offset:".jeg_header",mode:n.data("mode"),state_class:"jeg_sticky_nav",wrapper:".jeg_stickybar",broadcast_position:!0})}},mega_menu_init:function(t,n){var i=e(t).parents(".jeg_megamenu");if(i.hasClass("ajaxload")&&!i.hasClass("loaded")){var o=i.data("category"),a="jnews_build_mega_category_1",s=i.data("number"),r="";i.hasClass("category_2")&&(a="jnews_build_mega_category_2",r=i.data("tags")),null!==n.newsfeed_xhr&&n.newsfeed_xhr.abort(),n.newsfeed_xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:{cat_id:o,action:a,number:s,tags:r},success:function(e){i.find(".jeg_newsfeed .newsfeed_overlay").remove(),i.find(".jeg_newsfeed").append(e),n.create_menu_carousel(t),n.attach_mouseenter_subcategory(t,n),i.addClass("loaded")}})}else n.create_menu_carousel(t),n.attach_mouseenter_subcategory(t,n)},create_menu_carousel_content:function(e){var t=this,n=e.getElementsByClassName("newsfeed_carousel");if(n.length){var i=4,o=t.jnewsLibrary.getParents(e,".jeg_megamenu");o=o.length?o[o.length-1]:t.jnewsLibrary.doc,o=o.dataset.itemRow,t.jnewsLibrary.forEach(n,function(n,a){if(i="default"===o?t.jnewsLibrary.hasClass(n,"with_subcat")?t.jnewsLibrary.getParents(e,".jeg_header.full").length?5:3:t.jnewsLibrary.getParents(e,".jeg_header.full").length?6:4:o,!t.jnewsLibrary.hasClass(n,"jeg_tns_active")){var s=jnews.tns({container:n,textDirection:1==jnewsoption.rtl?"rtl":"ltr",controls:!0,controlsText:["",""],nav:!1,loop:!1,gutter:20,items:i,mouseDrag:!0,controlsPosition:"bottom",loop:!0,onInit:function(e){void 0!==e.nextButton&&t.jnewsLibrary.addClass(e.nextButton,"tns-next"),void 0!==e.prevButton&&t.jnewsLibrary.addClass(e.prevButton,"tns-prev")}});void 0!==s&&(s.events.on("dragStart",function(e){e.event.preventDefault(),e.event.stopPropagation()}),t.jnewsLibrary.addClass(n,"jeg_tns_active"),t.jnewsLibrary.dataStorage.put(n,"tiny-slider",s))}var r=e.getElementsByClassName("jeg_newsfeed_list");r.length&&t.jnewsLibrary.addClass(r[0],"loaded")})}},create_menu_carousel:function(e){var t=this;t.jnewsLibrary&&(e.length?t.jnewsLibrary.forEach(e,function(e,n){t.create_menu_carousel_content(e)}):t.create_menu_carousel_content(e))},attach_mouseenter_subcategory:function(t,n){e(t).find(".jeg_newsfeed_subcat li").on("mouseenter",function(){n.menu_load_newsfeed(this,n)})},menu_loaded:function(e){e.addClass("loaded"),e.height("auto")},menu_load_newsfeed:function(t,n){if(!e(t).hasClass("active")){var i=e(t).parents(".jeg_newsfeed"),o=e(i).find(".jeg_newsfeed_list"),a=e(o).height();o.height(a);var s=e(t).data("cat-id"),r=o.find(".jeg_newsfeed_container[data-cat-id='"+s+"']");if(r.length)o.removeClass("loaded"),o.find(".jeg_newsfeed_container").removeClass("active").hide(),o.find(".jeg_newsfeed_container[data-cat-id='"+s+"']").fadeIn(function(){n.menu_loaded(o)});else{null!==n.newsfeed_xhr&&n.newsfeed_xhr.abort();var l=e(t).parents(".jeg_megamenu"),c=e(l).data("number"),d="jnews_mega_category_1";e(l).hasClass("category_2")&&(d="jnews_mega_category_2"),o.removeClass("loaded"),n.newsfeed_xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:{cat_id:s,action:d,number:c},success:function(e){o.find(".jeg_newsfeed_container").hide(),o.append(e),r=o.find(".jeg_newsfeed_container[data-cat-id='"+s+"']"),n.create_menu_carousel(r),n.menu_loaded(o)}})}e(t).addClass("active").siblings().removeClass("active")}}},jnews.menu.init(),jnews.menu.sticky_menu(),window.jnews.loginregister={xhr:null,captcha:[],validateCaptcha:!1,show_popup:function(t){var n=this;t.length>0&&t.magnificPopup({type:"inline",removalDelay:500,midClick:!0,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-zoom-out",jnews.body_inject.removeClass("jeg_show_menu")},change:function(){var t=this.content.find(".g-recaptcha"),i=this.content.find("form").data("type"),o=t.data("sitekey");this.content.find(".form-message p").remove(),n.validateCaptcha=!1,1==jnewsoption.recaptcha&&t.length&&(t.hasClass("loaded")?grecaptcha.reset(n.captcha[i]):(n.captcha[i]=grecaptcha.render(t.get(0),{sitekey:o,callback:n.validateResponse.bind(n)}),e(t).addClass("loaded")))}}})},validateResponse:function(e){""!==e&&(this.validateCaptcha=!0)},init:function(){var t=jnews.body_inject?jnews.body_inject.find(".jeg_popuplink"):e(".jeg_popuplink");this.show_popup(t);var n=jnews.body_inject?jnews.body_inject.find(".jeg_popuplink_parent a"):e(".jeg_popuplink_parent a");this.show_popup(n)},validateForm:function(t){var n=e(t).find(".form-message"),i=e(t).data("type");if("register"===i){if(""===e(t).find('[name="email"]').val())return n.html("<p class='alert alert-error'>"+jnewsoption.lang.empty_email+"</p>"),!1}if("login"===i||"register"===i){if(""===e(t).find('[name="username"]').val())return n.html("<p class='alert alert-error'>"+jnewsoption.lang.empty_username+"</p>"),!1}if("login"===i){if(""===e(t).find('[name="password"]').val())return n.html("<p class='alert alert-error'>"+jnewsoption.lang.empty_password+"</p>"),!1}if("forgot"===i){if(""===e(t).find('[name="user_login"]').val())return n.html("<p class='alert alert-error'>"+jnewsoption.lang.empty_username+"</p>"),!1}return!(1==jnewsoption.recaptcha&&!this.validateCaptcha)||(n.html("<p class='alert alert-error'>"+jnewsoption.lang.invalid_recaptcha+"</p>"),!1)},hook_form:function(){var t=this;e(".jeg_popupform.jeg_popup_account > form").each(function(){var n=this,i=e(n),o=i.find(".button"),a=i.find(".form-message");i.on("submit",function(s){s.preventDefault(),t.validateForm(n)&&(a.html(""),o.val(o.data("process")),null!==t.xhr&&t.xhr.abort(),t.xhr=e.post(jnews_ajax_url,{action:"jnews_refresh_nonce",refresh_action_nonce:"jnews_nonce"}).always(function(n){n.jnews_nonce&&(i.find('input[name="jnews_nonce"]').val(n.jnews_nonce),t.xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:i.serialize(),success:function(e){if(1===e.response&&(a.html("<p class='alert alert-success'>"+e.string+"</p>"),1===e.refresh&&(window.location=jnewsoption.login_reload)),0==e.response){var n=i.data("type");o.val(o.data("string")),a.html("<p class='alert alert-error'>"+e.string+"</p>"),t.show_popup(a.find(".jeg_popuplink")),"undefined"!=typeof grecaptcha&&grecaptcha.reset(t.captcha[n])}o.val(o.data("string")),i.trigger("reset")}}))}))})})}},window.jnews.mobile={init:function(){this.navmobile=jnews.body_inject?jnews.body_inject.find(".jeg_navbar_mobile"):e(".jeg_navbar_mobile"),this.mobilemenu=jnews.body_inject?jnews.body_inject.find(".jeg_mobile_menu"):e(".jeg_mobile_menu"),this.menu(),this.search(),this.truncate()},truncate:function(){e(".content-inner.mobile-truncate").on("click",function(){e(this).removeClass("mobile-truncate"),e(this).trigger("resize")})},show_menu:function(e){e.preventDefault(),jnews.body_inject.toggleClass("jeg_show_menu")},hide_menu:function(e){e.preventDefault(),jnews.body_inject.removeClass("jeg_show_menu")},menu:function(){var t=this;t.mobilemenu.superfish(),e(".jeg_mobile_toggle").off("click",t.show_menu).on("click",t.show_menu),e(".jeg_menu_close").off("click",t.hide_menu).on("click",t.hide_menu),e(document).mouseup(function(t){jnews.body_inject.hasClass("jeg_show_menu")&&!e(t.target).parents(".jeg_mobile_wrapper").length>0&&jnews.body_inject.removeClass("jeg_show_menu")}),t.navmobile.jsticky({mode:t.navmobile.data("mode"),item_offset:".jeg_navbar_mobile",state_class:"jeg_sticky_nav",wrapper:".jeg_navbar_mobile_wrapper",use_translate3d:!0,broadcast_position:!1})},search:function(){e(".jeg_mobile_search").on("click",function(t){t.preventDefault(),e("body").toggleClass("jeg_search_expanded"),e("i.fa",e(this)).toggleClass("fa-close fa-search"),e(".jeg_navbar_mobile_wrapper .jeg_search_input").val("").focus()})}},jnews.mobile.init(),window.jnews.first_load_caller={init:function(){jnews.first_load?jnews.first_load.init():n.requestAnimationFrame.call(n.win,function(){this.init()}.bind(this))}},jnews.first_load_caller.init(),window.jnews.deprecated={init:function(t){void 0===t&&(t=jnews.body_inject?jnews.body_inject:e("body"));var n=t.find("[class*=google-plus].removed, [class*=google_plus].removed, [class*=googleplus].removed ");n.length&&n.off("click.share click").on("click",function(e){e.preventDefault}).on("click",function(){return!1})}},jnews.deprecated.init(),window.jnews.widget={},window.jnews.widget.popular={init:function(t){void 0===t&&(t=jnews.body_inject?jnews.body_inject:e("body"));var n=t.find(".widget_jnews_popular .socialshare_list a");n.length&&n.on("click",function(t){var n=e(this);t.preventDefault();var i=n.attr("href");window.open(i,"","height=570,width=750")})}},jnews.widget.popular.init(),window.jnews.popup={popupcontainer:null,container:null,init:function(t){var n=this;n.isJNewsLibrary="object"==typeof jnews&&"object"==typeof jnews.library,n.jnewsLibrary=!!n.isJNewsLibrary&&jnews.library,n.jnewsLibrary&&(n.globalBody=jnews.body_inject?jnews.body_inject:e("body"),n.container=void 0===t?n.globalBody:t,"photoswipe"===jnewsoption.popup_script?(n.popupcontainer=n.globalBody.find(".pswp"),n.popupcontainer=n.popupcontainer.get(0),n.popup_photoswipe()):"magnific"===jnewsoption.popup_script&&n.popup_magnific())},expand_photoswipe:function(e,t){var n=this,i={index:t,history:!1,focus:!1,showAnimationDuration:0,hideAnimationDuration:0,barsSize:{top:44,bottom:0}};new PhotoSwipe(n.popupcontainer,PhotoSwipeUI_Default,e,i).init()},expand_single_featured:function(t){var n=this,i=e(t),o=i.find("img"),a=[{src:i.attr("href"),w:parseInt(o.data("full-width"),10),h:parseInt(o.data("full-height"),10),title:o.attr("alt")}];n.expand_photoswipe(a,0)},expand_featured_gallery:function(e){var t=this,n=t.jnewsLibrary.getParents(e,".featured_gallery");n=n.length?n[n.length-1]:t.jnewsLibrary.doc;var i=t.jnewsLibrary.dataStorage.get(n,"tiny-slider"),o=i.getInfo(),a=o.index,s=[];t.jnewsLibrary.forEach(n.getElementsByTagName("a"),function(e,n){var i=e.getElementsByTagName("img");if(i.length){i=i[0];var o=e.getElementsByClassName("thumbnail-container");if(o.length)if(o=o[0],t.jnewsLibrary.hasClass(o,"thumbnail-background")){var a=e.querySelectorAll(".thumbnail-container > div");o.length&&(a=a[0],s[n]={src:e.getAttribute("href"),w:parseInt(a.dataset.fullWidth,10),h:parseInt(a.dataset.fullHeight,10),title:a.getAttribute("alt")})}else s[n]={src:e.getAttribute("href"),w:parseInt(i.dataset.fullWidth,10),h:parseInt(i.dataset.fullHeight,10),title:i.getAttribute("alt")}}});var r={index:a,history:!1,focus:!1,showAnimationDuration:0,hideAnimationDuration:0},l=new PhotoSwipe(t.popupcontainer,PhotoSwipeUI_Default,s,r);l.listen("afterChange",function(){var e=l.getCurrentIndex();i.goTo(e)}),l.init()},expand_wp_gallery:function(t){var n=this,i=e(t),o=i.parents(".gallery"),a=i.parents("figure"),s=a.index("figure"),r=[];o.find("a").each(function(t){var n=e(this),i=n.find("img"),o=n.parents(".gallery-item").find(".wp-caption-text").text();r[t]={src:n.attr("href"),w:parseInt(i.data("full-width"),10),h:parseInt(i.data("full-height"),10),title:o}}),n.expand_photoswipe(r,s)},expand_single_image_caption:function(t){var n=this,i=e(t),o=i.parent(),a=o.find("a").attr("href"),s=o.find(".wp-caption-text").text();i.addClass("load-image");var r=new Image;r.onload=function(){i.removeClass("load-image");var e=[{src:a,w:parseInt(r.width,10),h:parseInt(r.height,10),title:s}];n.expand_photoswipe(e,0)},r.src=a},expand_single_image:function(t){var n=this,i=e(t),o=i.find("img");i.addClass("load-image");var a=new Image;a.onload=function(){i.removeClass("load-image");var e=[{src:i.attr("href"),w:parseInt(a.width,10),h:parseInt(a.height,10),title:o.attr("alt")}];n.expand_photoswipe(e,0)},a.src=i.attr("href")},popup_photoswipe:function(){var t=this;t.container.find(".jeg_featured.featured_image a:not(.wp-caption-text a)").on("click",function(e){e.preventDefault(),t.expand_single_featured(this)}),t.container.find(".featured_gallery a").on("click",function(e){e.preventDefault(),t.expand_featured_gallery(this)}),t.container.find(".content-inner .gallery").find("a[href$='.gif'], a[href$='.jpg'], a[href$='.png'], a[href$='.bmp']").on("click",function(e){e.preventDefault(),t.expand_wp_gallery(this)}),t.container.find(".content-inner figure.wp-caption").find("a[href$='.gif'], a[href$='.jpg'], a[href$='.png'], a[href$='.bmp']").find("img").each(function(){e(this).parent().on("click",function(e){e.preventDefault(),t.expand_single_image_caption(this)})}),t.container.find(".content-inner").find("a[href$='.gif'], a[href$='.jpg'], a[href$='.png'], a[href$='.bmp']").find("img[class*='align']").each(function(){e(this).parent().on("click",function(e){e.preventDefault(),t.expand_single_image(this)})})},expand_magnific:function(t){e(t).magnificPopup({gallery:{enabled:!0},type:"image",closeOnContentClick:!0,closeBtnInside:!1,fixedContentPos:!0,mainClass:"mfp-no-margins mfp-with-zoom",image:{verticalFit:!0,titleSrc:function(e){return"FIGURE"===e.el.parent().prop("tagName")?e.el.parent().find("figcaption").text():e.el.parents(".gallery-item").find(".wp-caption-text").length?e.el.parents(".gallery-item").find(".wp-caption-text").text():e.el.find("img").attr("alt")}}})},expand_magnific_gallery:function(e){this.expand_magnific(e)},popup_magnitif_single_gallery:function(t){var n=this,i=[];n.container.find(t).each(function(){var t=e(this);"IMG"===t.prop("tagName")?i.push(t.parent().get(0)):i.push(t.get(0))}),n.expand_magnific(i),n.expand_magnific_gallery(".featured_gallery a")},popup_magnitif_normal:function(t){var n=this;n.container.find(t).each(function(){var t=e(this);"IMG"===t.prop("tagName")?n.expand_magnific(t.parent().get(0)):n.expand_magnific(t.get(0))}),n.expand_magnific_gallery(".featured_gallery a")},popup_magnific:function(){var e=this,t=".content-inner figure.wp-caption > a > img,.content-inner a[href$='.gif'] > img[class*='wp-image'],.content-inner a[href$='.jpg'] > img[class*='wp-image'],.content-inner a[href$='.png'] > img[class*='wp-image'],.content-inner a[href$='.bmp'] > img[class*='wp-image'],.content-inner a[href$='.gif'] > img[class*='align'],.content-inner a[href$='.jpg'] > img[class*='align'],.content-inner a[href$='.png'] > img[class*='align'],.content-inner a[href$='.bmp'] > img[class*='align'],.jeg_featured.featured_image a:not(.wp-caption-text a),.content-inner .gallery a";"1"===jnewsoption.single_gallery?e.popup_magnitif_single_gallery(t):e.popup_magnitif_normal(t)}},jnews.popup.init(),window.jnews.comment={container:null,init:function(t){var n=this;n.container=void 0===t?jnews.body_inject?jnews.body_inject:e("body"):t,this.create(n.container);var i=n.container.find(".ajax_comment_button");i.length&&i.on("click",function(){var t=e(this),i=t.data("id"),o=t.data("post-type"),a=t.data("loading");t.find("span").text(a),e.ajax({url:jnews_ajax_url,type:"post",dataType:"html",data:{action:"jnews_ajax_comment",post_id:i,post_type:o},success:function(e){t.after(e).remove(),n.create(n.container)}})})},create:function(){var t=jnews.body_inject?jnews.body_inject.find("#comments"):e("#comments");if(t.length){var n=t.attr("data-type"),i=t.attr("data-id");if("disqus"==n)e("#disqus-script").length?DISQUS.reset({reload:!0}):(e("#disqus-script").remove(),function(){var e=document.createElement("script");e.id="disqus-script",e.type="text/javascript",e.async=!0,e.src="//"+i+".disqus.com/embed.js",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)}());else if("facebook"==n)if(e("#facebook-jssdk").length)"undefined"!=typeof FB&&FB.XFBML.parse();else if("facebook"==n){var o=i?"&appId="+i:"";!function(e,t,n){var i,a=e.getElementsByTagName(t)[0];e.getElementById(n)||(i=e.createElement(t),i.id=n,i.src="//connect.facebook.net/"+jnewsoption.language+"/sdk.js#xfbml=1&version=v2.8"+o,a.parentNode.insertBefore(i,a))}(document,"script","facebook-jssdk")}}}},jnews.comment.init(),window.jnews.ajax_analytic={update:function(e,t){this.google_analytics(window.location.pathname,document.title),this.track_jnews(t)},get_nonce:function(e){},google_analytics:function(e,t){"undefined"==typeof pageTracker&&"undefined"==typeof _gaq&&"undefined"==typeof ga&&"undefined"==typeof __gaTracker&&"undefined"==typeof gaplusu||("undefined"!=typeof pageTracker&&null!==pageTracker&&pageTracker._trackPageview(e),"undefined"!=typeof _gaq&&null!==_gaq&&(void 0!==t&&null!==t&&_gaq.push(["_set","title",t]),_gaq.push(["_trackPageview",e])),"undefined"!=typeof ga&&null!==ga&&(void 0!==t&&null!==t&&ga("set","title",t),ga("send","pageview",e)),"undefined"!=typeof __gaTracker&&null!==__gaTracker&&__gaTracker("send","pageview",e),"undefined"!=typeof gaplusu&&null!==gaplusu&&(void 0!==t&&null!==t&&gaplusu("set","title",t),gaplusu("send","pageview",e)))},track_jnews:function(e){jfla.indexOf("view_counter")>-1&&jnews.first_load.do_ajax({action:"jnews_first_load_action",load_action:["view_counter"],jnews_id:e})}},window.jnews.menu_drop={init:function(){var t=this;t.menu_drop=jnews.body_inject?jnews.body_inject.find(".menu-item-has-children"):e(".menu-item-has-children"),t.menu_drop.length&&e(window).width()<=1024&&this.newEvent()},newEvent:function(){this.menu_drop.on("click",function(){e(this).hasClass("sfHover")?(e(this).removeClass("sfHover"),e(this).find(".sub-menu").attr("style","display: none")):e(this).find(".sub-menu").attr("style","display: block")})}},jnews.menu_drop.init(),window.jnews.edit_account={init:function(){this.changeHandler(),this.submitForm()},changeHandler:function(){var t=jnews.body_inject?jnews.body_inject.find("#fname"):e("#fname"),n=jnews.body_inject?jnews.body_inject.find("#lname"):e("#lname");(t.length||n.length)&&(t.on("change",function(t){var n=this.value,i=e("#lname").val(),o=e("#dname");o.append("<option>"+n+"</option>"),o.append("<option>"+n+" "+i+"</option>"),o.append("<option>"+i+" "+n+"</option>"),o.chosen("destroy").chosen()}),n.on("change",function(t){var n=e("#fname").val(),i=this.value,o=e("#dname");o.append("<option>"+i+"</option>"),o.append("<option>"+n+" "+i+"</option>"),o.append("<option>"+i+" "+n+"</option>"),o.chosen("destroy").chosen()}))},submitForm:function(){var t=jnews.body_inject.find(".jeg_account_right form");t.submit(function(n){if("false"===t.attr("onsubmit"))return e(window).scrollTop(0),!1})}},jnews.edit_account.init()}(jQuery)},function(e,t){!function(e){"use strict";window.jnews.ajax_cart_detail=window.jnews.ajax_cart_detail||{},window.jnews.cart=window.jnews.cart||{},window.jnews.ajax_cart_detail={init:function(){var t=this;e(document).bind("added_to_cart removed_from_cart wc_fragments_refreshed",function(){t.ajaxCart()})},ajaxCart:function(){var t={action:"jnews_ajax_cart_detail"};e.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:t,success:function(t){e(".cartlink").html(t)}})}},window.jnews.cart={init:function(t){void 0===t&&(t=e("body")),t.find(".jeg_cart").each(function(){e(this).hover(function(){e(this).addClass("open")},function(){e(this).removeClass("open")})})}},e(document).on("ready",function(){jnews.cart.init(),jnews.ajax_cart_detail.init()})}(jQuery)},function(e,t){!function(e){"use strict";window.jnews.floating_video=window.jnews.floating_video||{},window.jnews.floating_video={container:null,element:null,wrapper:null,videoBottom:null,closeButton:null,closed:!1,ww:null,following:!1,position:"bottom_right",sidebar:null,offset:null,width:null,left:null,init:function(t){this.container=void 0!==t?t:e("body"),this.element=e(this.container).find(".jeg_featured.featured_video"),this.element.length&&(this.following=this.element.attr("data-following"),this.position=this.element.attr("data-position"),"1"===this.following&&(this.wrapper=e(this.element).find(".jeg_featured_video_wrapper"),this.closeButton=e(this.element).find(".floating_close"),this.resize(),e(window).on("scroll",this.scroll.bind(this)),e(window).on("ready resize",this.resize.bind(this)),e(this.closeButton).on("click",this.close.bind(this))))},unbind:function(){e(window).off("scroll",this.scroll.bind(this)),e(window).off("ready resize",this.resize.bind(this)),e(this.closeButton).off("click",this.close.bind(this))},close:function(){this.closed=!0,this.element.removeClass("floating")},resize:function(){this.element.length&&(this.videoBottom=this.element.outerHeight()+this.element.offset().top,this.ww=e(window).width(),this.sidebar=e(".jeg_sidebar")),this.sidebar.length>0&&(this.offset=this.sidebar.offset(),this.width=this.sidebar.width(),this.left=parseInt(this.sidebar.css("padding-left"))+parseInt(this.sidebar.css("margin-left")))},scroll:function(){if(!this.closed&&"1"===this.following){e(window).scrollTop()>this.videoBottom?(this.element.addClass("floating"),"sidebar"===this.position&&this.sidebar.length>0&&this.wrapper.width(this.width+20).css({top:100,left:this.offset.left+this.left-10})):(this.element.removeClass("floating"),this.wrapper.removeAttr("style"))}}},e(document).on("jnews-ajax-load",function(e,t){jnews.floating_video.init(t)}),e(document).on("ready",function(){jnews.floating_video.init()})}(jQuery)},function(e,t){!function(e){"use strict";window.jnews.zoom=window.jnews.zoom||{},window.jnews.zoom={init:function(){var t=this,n=jnews.library;t.window=e("window"),t.container=e("body"),t.refresh=!1,t.is_enable=void 0!==jnewsoption.zoom_button?jnewsoption.zoom_button:0,t.is_rtl=void 0!==jnewsoption.zoom_button?parseInt(jnewsoption.rtl):0,t.transform_origin=t.is_rtl?"top right":"0 0",t.zoomContainer=t.container.find(".jeg_meta_zoom"),(t.is_enable&&t.zoomContainer.length>0||t.zoomContainer.length>0)&&(t.zoomOut=t.zoomContainer.find(".zoom-out"),t.zoomReset=t.zoomContainer.find(".zoom-reset"),t.zoomIn=t.zoomContainer.find(".zoom-in"),t.zoomInStep=t.zoomContainer.attr("data-in-step"),t.zoomOutStep=10-t.zoomContainer.attr("data-out-step"),t.zoomLevel=1,t.progressBar=t.zoomContainer.find(".zoom-bar"),t.zoomEvent(),null!==t.getZoomCookie("zoom_position")&&t.updateZoomCookie(t.getZoomCookie("zoom_position")),t.container.find(".content-inner").each(function(e,i){i.querySelectorAll("img").forEach(function(e){n.addEvents(e,{load:function(){window.jnews.zoom.setSizeContent(t.getZoomCookie("zoom_position"),!1)}})})}))},setSizeContent:function(t,n){var i=this,o=t,a=i.container.find(".content-inner");1!=t?i.container.addClass("jnews_zoom_activated"):i.container.removeClass("jnews_zoom_activated"),a.length>0&&a.each(function(t,n){var i=e(n),a=void 0===i.parents(".jeg_inner_content").width()?i.parents(".jeg_custom_content_wrapper").width():i.parents(".jeg_inner_content").width(),s=i.parents(".entry-content"),r=i.parents(".with-share"),l=r.children(".jeg_share_button.share-float"),c=parseInt(i.css("marginLeft").replace("px","")),d=parseInt(i.css("marginRight").replace("px","")),u=i.height(),h=i[0].getBoundingClientRect().height,f=h>u?u:h,p=h>u?h:u,m=o>=1?p:f;m+="absolute"===l.css("position")?0:l.outerHeight(!0);var g=m-m/o,v=r.length>0?c+d:0,_=o>=1?a/o-v:a/o-2*v;_=1==o?"":_,s.length>0?(s.css({height:parseInt(m)+"px"}),i.css({width:_}),i.find(" > *").css({maxWidth:_})):(i.css({marginBottom:g+30}),i.css({width:_}),i.find(" > *").css({maxWidth:_}))}),n&&setTimeout(function(){i.setSizeContent(t,!1)},150)},resetZoom:function(){var t=this;t.zoomLevel=1,t.updateProgressBar(1),document.cookie="zoom_position="+t.zoomLevel+"; path=/;",t.setSizeContent(t.zoomLevel,!0);var n=t.container.find(".content-inner"),i=n.parents(".entry-content");n.length>0&&n.each(function(o,a){t.refresh=!0;var s=e(a);s.find(" > *").css({maxWidth:""}),s.css({"-ms-zoom":"","-ms-transform":"","-ms-transform-origin":"","-moz-transform":"","-moz-transform-origin":"","-o-transform":"","-o-transform-origin":"","-webkit-transform":"","-webkit-transform-origin":"",overflow:"",width:""}).trigger("containerchange"),i.length>0?i.css({height:""}):n.css({marginBottom:""})})},updateZoomCookie:function(t){var n=this;n.updateProgressBar(t);var i=n.container.find(".content-inner"),o="scale("+t+")",a=t,s=n.transform_origin,r="hidden";1==t&&(o="",a="",s="",r=""),i.length&&i.each(function(t,i){n.refresh=!0,e(i).css({"-ms-zoom":a,"-ms-transform":o,"-ms-transform-origin":s,"-moz-transform":o,"-moz-transform-origin":s,"-o-transform":o,"-o-transform-origin":s,"-webkit-transform":o,"-webkit-transform-origin":s,overflow:r}).trigger("containerchange")}),n.setSizeContent(t,!0)},updateZoom:function(t){var n=this;n.zoomLevel+=t,n.zoomLevel=n.zoomLevel>1+n.zoomInStep/10?1+n.zoomInStep/10:n.zoomLevel,n.zoomLevel=n.zoomLevel<n.zoomOutStep/10?n.zoomOutStep/10:n.zoomLevel,n.updateProgressBar(n.zoomLevel),document.cookie="zoom_position="+n.zoomLevel+"; path=/;";var i="scale("+n.zoomLevel+")",o=n.zoomLevel,a=n.transform_origin,s="hidden";1==n.zoomLevel&&(i="",o="",a="",s="");var r=n.container.find(".content-inner");if(r.length&&r.each(function(t,r){n.refresh=!0,e(r).css({"-ms-zoom":o,"-ms-transform":i,"-ms-transform-origin":a,"-moz-transform":i,"-moz-transform-origin":a,"-o-transform":i,"-o-transform-origin":a,"-webkit-transform":i,"-webkit-transform-origin":a,overflow:s}).trigger("containerchange")}),"object"==typeof jnews&&"object"==typeof jnews.library){var l=jnews.library.globalBody.querySelectorAll(".jeg_preview_slider");l.length&&jnews.library.forEach(l,function(e,t){if(jnews.library.dataStorage.has(e,"jeg.previewslider")){var n=jnews.library.dataStorage.get(e,"jeg.previewslider");"normal"===n.mode?n.resize_normal():"fullscreen"===n.mode&&n.resize_fullscreen()}})}n.setSizeContent(n.zoomLevel,!0)},getZoomCookie:function(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:1},updateProgressBar:function(t){var n=this,i=e(n.progressBar),o=100*(t-.8)/.5+0,a=o+"%";o<=100?i.width(a):o>100&&i.width("100%")},zoomEvent:function(){var t=this,n=t.container.find(".content-inner");t.width=e(window).width(),t.height=e(window).height(),t.zoomOut.on("click",function(){t.updateZoom(-.1)}),t.zoomIn.on("click",function(){t.updateZoom(.1)}),t.zoomReset.on("click",function(){t.resetZoom()}),n.length&&n.each(function(n,i){var o=(t.getZoomCookie("zoom_position"),e(i));o.off("containerchange DOMSubtreeModified changed.owl.carousel refreshed.owl.carousel").on("containerchange DOMSubtreeModified changed.owl.carousel refreshed.owl.carousel",function(n){var i=e(this),a=i.parents(".post-autoload").length?i.parents(".post-autoload").data("id"):0,s=i;if(a){s=t.container.find('.post-autoload[data-id="'+a+'"]').find(".content-inner")}if(t.refresh){t.refresh=!1;var r=s.find(".owl-carousel");setTimeout(function(){r.each(function(t,n){e(n).data("owl.carousel").onResize(),o.trigger("contaianerchange")})},1500)}setTimeout(function(){var n=e(this),i=t.getZoomCookie("zoom_position"),o=n.parents(".entry-content"),a=n.parents(".post-autoload").length?n.parents(".post-autoload").data("id"):0,s=n;if(a){s=t.container.find('.post-autoload[data-id="'+a+'"]').find(".content-inner")}var r=s.height(),l=s[0].getBoundingClientRect().height,c=l>r?r:l,d=l>r?l:r,u=i>=1?d:c,h=o.children(".jeg_share_button.share-float");u+="absolute"===h.css("position")?0:h.outerHeight(!0),o.length>0&&o.css({height:parseInt(u)+"px"})}.bind(this),1e3)})}),e(window).on("resize",function(){t.updateZoomCookie(t.getZoomCookie("zoom_position"))})}},e(document).on("jnews-ajax-load",function(e,t){jnews.zoom.init()}),e(document).on("ready",function(){jnews.zoom.init()})}(jQuery)},function(e,t){!function(e){"use strict";window.jnews.popuppost=window.jnews.popuppost||{},window.jnews.popuppost={container:null,content:null,element:null,init:function(t){var n=this;if(n.container=void 0===t?e("body"):t,n.element=n.container.find(".jeg_popup_post"),n.element.length>0){var i=e(n.element).parents(".post-wrap");n.content=e(i).find(".entry-content"),n.element.find(".jeg_popup_close").on("click",function(e){e.preventDefault(),n.element.removeClass("active").addClass("closed")}),e(window).width()>1024?("object"==typeof jnews&&"object"==typeof jnews.library&&jnews.library.winLoad(n.dispatch.bind(n)),e(window).on("scroll resize",e.proxy(n.dispatch,n))):e(window).off("scroll resize",e.proxy(n.dispatch,n))}},dispatch:function(){var t=this,n=t.element.hasClass("closed"),i=e(window).scrollTop(),o=.5*e(window).height();i>Math.abs(t.content.offset().top+t.content.outerHeight()-o)&&!n?t.element.addClass("active"):t.element.removeClass("active")}},e(document).on("jnews-ajax-load",function(e,t){jnews.popuppost.init(t)}),e(document).on("ready",function(){jnews.popuppost.init()})}(jQuery)},function(e,t){!function(e){"use strict";function t(){var t=e(".sidecontent_postwrapper");if(t.length){t.jScrollPane({mouseWheelSpeed:50});var n=t.data("jsp"),i=1==jnewsoption.admin_bar?32:0,o=function(){e(window).width()>1024?t.css("height",e(window).height()-e(".jeg_side_heading").outerHeight()-i):(e("#jeg_sidecontent").css("height",e(window).height()-e(".jeg_navbar_mobile_wrapper").outerHeight()),t.css("height",e(window).height()-e(".jeg_side_heading").outerHeight()-e(".jeg_navbar_mobile_wrapper").outerHeight())),n.reinitialise()};"object"==typeof jnews&&"object"==typeof jnews.library&&jnews.library.winLoad(o),e(window).on("resize",o)}}function n(){var n=e("#jeg_sidecontent");if(n.length){var i,o,a,s=e(".jeg_header.full").outerHeight()||0,r=e(".jeg_stickybar"),l=0,c=0;t();var d=function(){c=e(window).scrollTop(),l=1==jnewsoption.admin_bar?32:0,r.length&&(i=r.css("-webkit-transform")||r.css("-moz-transform")||r.css("-ms-transform")||r.css("-o-transform")||r.css("transform"),o=i.replace(/[^0-9\-.,]/g,"").split(","),a=o[13]||o[5]),c>s?(n.addClass("fixed"),e(".jeg_header").hasClass("full")&&a>0&&r.length&&(l+=r.outerHeight())):(n.removeClass("fixed"),l=s+l),n.css({top:l})};e(window).width()>1024?("object"==typeof jnews&&"object"==typeof jnews.library&&jnews.library.winLoad(d),e(window).on("scroll",d)):e(window).off("scroll",d)}}window.jnews.sidefeed=window.jnews.sidefeed||{},window.jnews.sidefeed={init:function(){var t=this;t.container=e("#jeg_sidecontent"),t.container.length&&(t.variable=window.side_feed,t.xhr=null,t.xhr_cache=[],t.lock_action=!1,t.current_post_id=jnewsoption.postid,t.min_prev_sidefeed=5,t.post_xhr=null,t.post_xhr_cache=[],t.tab=t.container.find(".jeg_side_tabs > li"),t.menu=t.container.find(".jeg_filter_menu a"),t.loadbutton=t.container.find(".sidefeed_loadmore button"),t.sidefeed=t.container.find(".jeg_sidefeed"),t.overlay_loader=t.container.find(".jeg_sidefeed_overlay"),t.sectionwrap=e(".post-wrapper"),t.postoverlay=e(".post-ajax-overlay"),t.bind_autoload(),t.bind_tab(),t.bind_menu(),t.bind_load_button(),jnewsoption.sidefeed_ajax&&t.bind_ajax())},load_first_item:function(){var t=this,n=t.sidefeed.find(".jeg_post").first();n&&e(n).find("a.ajax").trigger("click")},load_ajax:function(t,n,i){var o=this;"append"===t?e(o.sidefeed).append(i.content):"replace"===t&&o.sidefeed.html(i.content),o.after_ajax_request(t,n,i)},cache_get:function(e){for(var t=this,n=JSON.stringify(e),i=0;i<t.xhr_cache.length;i++)if(t.xhr_cache[i].param==n)return t.xhr_cache[i].result;return!1},cache_save:function(e,t){var n=this,i=JSON.stringify(e);n.xhr_cache.push({param:i,result:t})},before_ajax_request:function(t){var n=this;"append"===t?n.loadbutton.addClass("btn-loading").text(e(n.loadbutton).data("loading")):"replace"===t&&n.overlay_loader.show(),n.lock_action=!0},after_ajax_request:function(t,n,i){var o=this;o.loadbutton.removeClass("btn-end").text(e(o.loadbutton).data("loadmore")),i.next?o.loadbutton.text(e(o.loadbutton).data("loadmore")):o.loadbutton.addClass("btn-end").text(e(o.loadbutton).data("end")),"append"===t?o.loadbutton.removeClass("loading"):"replace"===t&&(o.overlay_loader.hide(),o.load_first_item(),o.active_state_feed(o.current_post_id)),o.lock_action=!1,o.cache_save(n,i),o.reinitialize_view()},load_content:function(t){var n=this;n.before_ajax_request(t);var i={action:"jnews_newsfeed_load",data:n.variable},o=n.cache_get(i);n.xhr&&n.xhr.abort(),o?n.load_ajax(t,i,o):n.xhr=e.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:i,success:e.proxy(n.load_ajax,n,t,i)})},bind_autoload:function(){var t=this;e(document).on("jnews-autoload-change-id",function(e,n){t.current_post_id=n,t.active_state_feed(n)})},bind_tab:function(){var t=this;t.tab.on("click",function(n){n.preventDefault(),t.lock_action||(t.tab.removeClass("active"),e(this).addClass("active"),t.variable.sort_by=e(this).data("sort"),t.variable.paged=1,t.load_content("replace"))})},bind_menu:function(){var t=this;t.menu.on("click",function(n){n.preventDefault(),t.lock_action||(t.menu.removeClass("active"),e(this).addClass("active"),t.variable.include_category=e(this).data("id"),t.variable.paged=1,t.load_content("replace"))})},bind_load_button:function(){var e=this;e.loadbutton.on("click",function(t){t.preventDefault(),e.lock_action||e.loadbutton.hasClass("btn-end")||(e.variable.paged=e.variable.paged+1,e.load_content("append"))})},bind_ajax:function(){var t=this;jnewsoption.isblog&&window.history&&window.history.pushState&&t.ajax_dispatch(),window.history.pushState&&!jnewsoption.ismobile&&e(window).on("popstate",e.proxy(t.popstate,t))},popstate:function(e){var t=this;if(void 0!==e.originalEvent){var n=e.originalEvent.state,i=location.href;"sidefeed"===n.type&&(t.current_post_id=n.postid,t.active_state_feed(t.current_post_id),t.do_request(i,!0))}},ajax_dispatch:function(){var t=this;t.sidefeed.on("click","a.ajax",function(n){n.preventDefault();var i=e(this).parents(".jeg_post"),o=e(i).data("id"),a=e(this).attr("href");o==t.current_post_id||(e("body").removeClass("menu-active").removeClass("push-content-right"),t.current_post_id=o,t.set_side_active(i),t.do_request(a,!1))})},do_request:function(t,n){var i=this;i.postoverlay.fadeIn(500,function(){e(document).trigger("jnews-sidefeed-ajax-begin"),i.sectionwrap.height(e(window).height()),i.sectionwrap.find(".post-wrap").remove(),e("html, body").scrollTop(0),i.fetch_content(t,i.current_post_id,n)})},active_state_feed:function(e){var t=this;t.sidefeed.find(".jeg_post").removeClass("active");var n=t.sidefeed.find(".jeg_post[data-id="+e+"]").addClass("active");t.load_sidefeed_content(n),t.scroll_to_view(n)},load_sidefeed_content:function(e){for(var t=this,n=0;n<t.min_prev_sidefeed;n++)e.length&&(e=e.next());0===e.length&&t.try_load_sidefeed_content()},try_load_sidefeed_content:function(){this.loadbutton.trigger("click")},close_curtain:function(){var e=this;e.postoverlay.fadeOut(500),e.sectionwrap.css({height:"auto"})},fetch_content:function(t,n,i){var o=this;null!==o.post_xhr&&o.post_xhr.abort(),o.post_xhr=e.ajax({url:t,type:"get",dataType:"html",success:function(e){i||window.history.pushState({postid:n,type:"sidefeed"},"",t),jnews.ajax_analytic.update(t,n),o.set_meta_data(e),o.setup_content(e,n)},timeout:function(){window.location=t}})},set_side_active:function(t){var n=this;n.sidefeed.find(".jeg_post").removeClass("active"),e(t).addClass("active"),n.load_sidefeed_content(t),n.scroll_to_view(t)},reinitialize_view:function(){e(".sidecontent_postwrapper").data("jsp").reinitialise(),setTimeout(function(){window.dispatchEvent(new Event("resize"))},500)},scroll_to_view:function(t){if(e(t).length){var n=e(".sidecontent_postwrapper"),i=n.data("jsp"),o=e(t).position().top,a=n.height(),s=e(".jspPane").position().top,r=o+s,l=e(t).height();if(r<0||r>a-l){var c=0;c=r<0?o-20:o-a+l+50,i.scrollTo(0,c)}}},set_meta_data:function(t){var n=e(t).filter("title").text(),i=e(t).filter("meta[name=keyword]").attr("content"),o=e(t).filter("meta[name=description]").attr("content");e("meta[name=description]").attr("content",o),e("meta[name=keyword]").attr("content",i),document.title=n},setup_content:function(t,n){var i=this,o=e(t).find(".post-wrap");i.sectionwrap.append(o);var a=e(t).find("#post-body-class").attr("class");e("body").attr("class",a),i.close_curtain(),e(document).trigger("jnews-sidefeed-ajax",[n]),e(document).trigger("jnews-ajax-load",[o])}},e(document).on("ready",function(){n(),jnews.sidefeed.init()})}(jQuery)},function(e,t){!function(e){function t(t){if(t.is(":checked")){i.addClass("jnews-dark-mode"),i.trigger("tinymce-add-dm");for(var n=0;n<4;n++)_[n].find(".jeg_logo_img").attr({src:h[n],srcset:f[n]}),_[n].find(".footer_logo img").each(function(t,i){e(i).attr({src:g[n][t],srcset:v[n][t],"data-srcset":v[n][t]})});document.cookie="darkmode = true;path = "+o+";domain = "+a}else if(!t.is(":checked")){i.removeClass("jnews-dark-mode"),i.trigger("tinymce-remove-dm");for(var n=0;n<4;n++)_[n].find(".jeg_logo_img").attr({src:d[n],srcset:u[n]}),_[n].find(".footer_logo img").each(function(t,i){e(i).attr({src:p[n][t],srcset:m[n][t],"data-srcset":m[n][t]})});document.cookie="darkmode = false;path = "+o+";domain = "+a}}const n=e(".jeg_dark_mode_toggle"),i=e("body");for(var o=void 0===jnewsoption.site_slug?"/":jnewsoption.site_slug,a=void 0===jnewsoption.site_domain?window.location.hostname:jnewsoption.site_domain,s=window.location,r=new URL(s),l=r.searchParams.get("vc_editable"),c=r.searchParams.get("elementor-preview"),d=[],u=[],h=[],f=[],p=[],m=[],g=[],v=[],_=[e(".jeg_header_wrapper"),e(".jeg_header_sticky"),e(".jeg_navbar_mobile_wrapper"),e(".jeg_about")],y=function(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}("darkmode"),w=(new Date).getHours(),b=i.hasClass("jeg_full_dark"),j=0;j<4;j++)d[j]=_[j].find("img.jeg_logo_img").attr("data-light-src"),u[j]=_[j].find("img.jeg_logo_img").attr("data-light-srcset"),h[j]=_[j].find("img.jeg_logo_img").attr("data-dark-src"),f[j]=_[j].find("img.jeg_logo_img").attr("data-dark-srcset"),_[j].find(".footer_logo img").each(function(t,n){p[j]=void 0===p[j]?[]:p[j],m[j]=void 0===m[j]?[]:m[j],g[j]=void 0===g[j]?[]:g[j],v[j]=void 0===v[j]?[]:v[j],p[j][t]=e(n).attr("data-light-src"),m[j][t]=e(n).attr("data-light-srcset"),g[j][t]=e(n).attr("data-dark-src"),v[j][t]=e(n).attr("data-dark-srcset")});if(i.hasClass("jeg_toggle_dark")&&(n.on("change",function(){null===l&&null===c&&t(e(this))}),n.click(function(){e(this).is(":checked")?n.each(function(){e(this).prop("checked",!0).trigger("change")}):e(this).is(":checked")||n.each(function(){e(this).prop("checked",!1).trigger("change")})})),i.hasClass("jeg_timed_dark"))if(w>=18||w<=6){i.addClass("jnews-dark-mode"),i.trigger("tinymce-add-dm");for(var j=0;j<4;j++)_[j].find(".jeg_logo_img").attr({src:h[j],srcset:f[j]}),_[j].find(".footer_logo img").each(function(t,n){e(n).attr({src:g[j][t],srcset:v[j][t],"data-srcset":v[j][t]})});document.cookie="darkmode = true;path = "+o+";domain = "+a}else{i.removeClass("jnews-dark-mode"),i.trigger("tinymce-remove-dm");for(var j=0;j<4;j++)_[j].find(".jeg_logo_img").attr({src:d[j],srcset:u[j]}),_[j].find(".footer_logo img").each(function(t,n){e(n).attr({src:p[j][t],srcset:m[j][t],"data-srcset":m[j][t]})});document.cookie="darkmode = false;path = "+o+";domain = "+a}"true"===y?(n.prop("checked",!0).trigger("change"),document.cookie="darkmode = true;path = "+o+";domain = "+a):"false"===y&&(n.prop("checked",!1).trigger("change"),document.cookie="darkmode = false;path = "+o+";domain = "+a),e(document).on("tinymce-editor-init",function(t,n){i.on("tinymce-add-dm",function(){e(n.getBody()).addClass("jnews-dark-mode")}),i.on("tinymce-remove-dm",function(){e(n.getBody()).removeClass("jnews-dark-mode")}),b?i.trigger("tinymce-add-dm"):"true"===y?i.trigger("tinymce-add-dm"):i.trigger("tinymce-remove-dm")}.bind(i).bind(y))}(jQuery)}]);
;!function(a){"use strict";window.jnews.like=window.jnews.like||{},window.jnews.like={init:function(e){var i=this;i.container=void 0===e?a("body"):e,i.container.find(".jeg_meta_like > a").off("click").on("click",(function(e){e.preventDefault(),a(this).hasClass("clicked")||(i.element=i.container.find(".jeg_meta_like > a[data-id="+a(this).attr("data-id")+"][data-type="+a(this).attr("data-type")+"]"),i.parent=i.element.parent(),i.like=i.parent.find(".like"),i.dislike=i.parent.find(".dislike"),i.ajax_request())}))},ajax_request:function(){var e=this;e.parent.addClass("clicked").find(".fa").addClass("fa-pulse"),a.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:{post_id:e.element.attr("data-id"),type:e.element.attr("data-type"),action:"like_handler"}}).done((function(i){if(-1===i.response){var t=window.jnews.loginregister;a("#jeg_loginform form").find("h3").html(i.message),a.magnificPopup.open({removalDelay:500,midClick:!0,mainClass:"mfp-zoom-out",type:"inline",items:{src:"#jeg_loginform"},callbacks:{beforeOpen:function(){this.st.mainClass="mfp-zoom-out",a("body").removeClass("jeg_show_menu")},change:function(){var e=this.content.find(".g-recaptcha"),i=this.content.find("form").data("type"),n=e.data("sitekey");this.content.find(".form-message p").remove(),t.validateCaptcha=!1,1==jnewsoption.recaptcha&&e.length&&(e.hasClass("loaded")?grecaptcha.reset(t.captcha[i]):(t.captcha[i]=grecaptcha.render(e.get(0),{sitekey:n,callback:t.validateResponse.bind(t)}),a(e).addClass("loaded")))}}})}else 1===i.value&&(e.like.html("<i class='fa fa-thumbs-up'></i> <span>"+i.like+"</span>"),e.dislike.html("<i class='fa fa-thumbs-o-down fa-flip-horizontal'></i> <span>"+i.dislike+"</span>")),-1===i.value&&(e.like.html("<i class='fa fa-thumbs-o-up'></i> <span>"+i.like+"</span>"),e.dislike.html("<i class='fa fa-thumbs-down fa-flip-horizontal'></i> <span>"+i.dislike+"</span>")),0===i.value&&(e.like.html("<i class='fa fa-thumbs-o-up'></i> <span>"+i.like+"</span>"),e.dislike.html("<i class='fa fa-thumbs-o-down fa-flip-horizontal'></i> <span>"+i.dislike+"</span>"))})).fail((function(a,e,i){"error"===e?alert(i.toString()):"timeout"===e&&alert("Execution Timeout")})).always((function(a,i,t){e.element.attr("data-message",a.message),e.parent.removeClass("clicked").find(".fa").removeClass("fa-pulse")}))}},a(document).on("ready jnews-ajax-load",(function(a,e){jnews.like.init()}))}(jQuery)
;!function(e){"use strict";window.jnews.weather=window.jnews.weather||{},window.jnews.weather={init:function(t){let a=this;a.container=void 0===t?e("body"):t,a.topbarWeather(),a.widgetWeather()},topbarWeather:function(){let e=this;e.container.find(".jeg_top_weather").length&&(e.element=e.container.find(".jeg_top_weather"),e.topbarWeatherHover(),e.topbarWeatherCarousel(),e.topbarTempClick())},topbarTempClick:function(){this.element.on("click",".jeg_weather_temp",(function(){let t=e(this),a=t.find(".jeg_weather_value"),n=t.find(".jeg_weather_unit"),i=n.attr("data-unit");t.find(".jeg_weather_degrees").length&&(n=t.find(".jeg_weather_degrees"),i=n.attr("data-unit")),"f"===i?(a.text(a.attr("data-temp-c")),n.attr("data-unit","c"),t.find(".jeg_weather_unit").text("°c")):(a.text(a.attr("data-temp-f")),n.attr("data-unit","f"),t.find(".jeg_weather_unit").text("°f"))}))},topbarWeatherHover:function(){this.element.hoverIntent({over:function(){e(this).find(".jeg_weather_item").fadeIn()},out:function(){e(this).find(".jeg_weather_item").fadeOut()},timeout:300})},topbarWeatherCarousel:function(){let e=this;if(e.autoplay=e.element.find(".jeg_weather_item_carousel").attr("data-autoplay"),e.autoplayDelay=e.element.find(".jeg_weather_item_carousel").attr("data-auto-delay"),e.autoplayHover=e.element.find(".jeg_weather_item_carousel").attr("data-auto-hover"),e.element.find(".jeg_weather_item_carousel").length){var t=!!("object"==typeof jnews&&"object"==typeof jnews.library)&&jnews.library;t&&"function"==typeof jnews.tns&&t.forEach(e.element.find(".jeg_weather_item_carousel"),(function(a,n){if(!t.hasClass(a,"jeg_tns_active")){var i=jnews.tns({container:a,items:3,rewind:!0,nav:!1,controls:!1,mouseDrag:!0,controlsText:["",""],autoplay:"1"===e.autoplay,autoplayTimeout:parseInt(e.autoplayDelay),autoplayHoverPause:"1"===e.autoplayHover});void 0!==i&&(i.events.on("dragStart",(function(e){e.event.preventDefault(),e.event.stopPropagation()})),t.addClass(a,"jeg_tns_active"),t.dataStorage.put(a,"tiny-slider",i))}}))}},convertTemperature:function(e,t){let a={};return"f"===e?(a.unit="c",a.value=5*(t-32)/9,a.value=Math.floor(a.value)):(a.unit="f",a.value=9*t/5+32,a.value=Math.floor(a.value)),a},widgetWeather:function(){let e=this;e.container.find(".jeg_weather_widget").length&&(e.element=e.container.find(".jeg_weather_widget"),e.widgetTempClick())},widgetTempClick:function(){this.element.on("click",".jeg_weather_temp",(function(){e(this).find(".jeg_weather_value").each((function(){let t=e(this),a=t.parent().find(".jeg_weather_unit");"f"===a.attr("data-unit")?(t.text(t.attr("data-temp-c")),a.attr("data-unit","c"),a.text("c")):(t.text(t.attr("data-temp-f")),a.attr("data-unit","f"),a.text("f"))}))}))}},e(document).on("jnews-ajax-load",(function(){jnews.weather.init()})),"object"==typeof jnews&&"object"==typeof jnews.library&&jnews.library.winLoad((function(){jnews.library.requestAnimationFrame.call(jnews.library.win,(function(){jnews.weather.init()}))}))}(jQuery)
;!function(){"use strict";window.jnews=window.jnews||{},window.jnews.first_load=window.jnews.first_load||{},window.jnews.first_load=function(){var e=this,t=jnews.library,n="object"==typeof jnews&&"object"==typeof jnews.library;e.data=null,e.run_ajax=!0,e.run_loginregister=!0,e.clear=function(){e.run_ajax=!0,e.run_loginregister=!0,e.data=null},e.init=function(){n&&(t.globalBody.querySelectorAll(".jeg_popup_account").length&&jnews.loginregister&&e.run_loginregister&&(e.run_loginregister=!1,jnews.loginregister.init(),jnews.loginregister.hook_form()),jfla.length&&e.run_ajax&&(e.run_ajax=!1,e.do_ajax({action:"jnews_first_load_action",jnews_id:jnewsoption.postid,load_action:jfla})))},e.update_counter=function(){if(n){var o={total_view:t.globalBody.querySelectorAll(".jeg_share_stats .jeg_views_count .counts"),total_share:t.globalBody.querySelectorAll(".jeg_share_stats .jeg_share_count .counts"),total_comment:t.globalBody.querySelectorAll(".jeg_meta_comment a span")};t.forEach(Object.entries(e.data.counter),(function([e,n]){o[e].length&&t.forEach(o[e],(function(e,o){t.setText(e,n)}))}))}},e.do_ajax=function(o){if(n){var a=new XMLHttpRequest;a.onreadystatechange=function(){XMLHttpRequest.DONE===a.readyState&&200==a.status&&(e.data=JSON.parse(a.responseText),e.data.counter&&"object"==typeof e.data.counter&&e.update_counter())},a.open("POST",jnews_ajax_url,!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.send(t.httpBuildQuery(o))}}},window.jnews.first_load=new window.jnews.first_load,jnews.first_load.init()}()
;