// source --> https://morgezi.com/wp-includes/js/utils.min.js?ver=6.9.4 
/*! This file is auto-generated */
window.wpCookies={each:function(e,t,n){var i,s;if(!e)return 0;if(n=n||e,void 0!==e.length){for(i=0,s=e.length;i<s;i++)if(!1===t.call(n,e[i],i,e))return 0}else for(i in e)if(e.hasOwnProperty(i)&&!1===t.call(n,e[i],i,e))return 0;return 1},getHash:function(e){var t,e=this.get(e);return e&&this.each(e.split("&"),function(e){e=e.split("="),(t=t||{})[e[0]]=e[1]}),t},setHash:function(e,t,n,i,s,r){var o="";this.each(t,function(e,t){o+=(o?"&":"")+t+"="+e}),this.set(e,o,n,i,s,r)},get:function(e){var t,n,i=document.cookie,e=e+"=";if(i){if(-1===(n=i.indexOf("; "+e))){if(0!==(n=i.indexOf(e)))return null}else n+=2;return-1===(t=i.indexOf(";",n))&&(t=i.length),decodeURIComponent(i.substring(n+e.length,t))}},set:function(e,t,n,i,s,r){var o=new Date;n="object"==typeof n&&n.toGMTString?n.toGMTString():parseInt(n,10)?(o.setTime(o.getTime()+1e3*parseInt(n,10)),o.toGMTString()):"",document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+n:"")+(i?"; path="+i:"")+(s?"; domain="+s:"")+(r?"; secure":"")},remove:function(e,t,n,i){this.set(e,"",-1e3,t,n,i)}},window.getUserSetting=function(e,t){var n=getAllUserSettings();return n.hasOwnProperty(e)?n[e]:void 0!==t?t:""},window.setUserSetting=function(e,t,n){var i,s,r,o;return"object"==typeof userSettings&&(i=userSettings.uid,s=wpCookies.getHash("wp-settings-"+i),r=userSettings.url,o=!!userSettings.secure,e=e.toString().replace(/[^A-Za-z0-9_-]/g,""),t="number"==typeof t?parseInt(t,10):t.toString().replace(/[^A-Za-z0-9_-]/g,""),s=s||{},n?delete s[e]:s[e]=t,wpCookies.setHash("wp-settings-"+i,s,31536e3,r,"",o),wpCookies.set("wp-settings-time-"+i,userSettings.time,31536e3,r,"",o),e)},window.deleteUserSetting=function(e){return setUserSetting(e,"",1)},window.getAllUserSettings=function(){return"object"==typeof userSettings&&wpCookies.getHash("wp-settings-"+userSettings.uid)||{}};
// source --> https://morgezi.com/wp-includes/js/tinymce/tinymce.min.js?ver=49110-20250317 
// 4.9.11 (2020-07-13)
!function(V){"use strict";var o=function(){},H=function(n,r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(r.apply(null,e))}},q=function(e){return function(){return e}},$=function(e){return e};function d(r){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.concat(e);return r.apply(null,n)}}var e,t,n,r,i,a,u,s,c,l,f,m,g,p,h,v,y=function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return!n.apply(null,e)}},b=q(!1),C=q(!0),x=function(){return w},w=(e=function(e){return e.isNone()},r={fold:function(e,t){return e()},is:b,isSome:b,isNone:C,getOr:n=function(e){return e},getOrThunk:t=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:q(null),getOrUndefined:q(undefined),or:n,orThunk:t,map:x,each:o,bind:x,exists:b,forall:C,filter:x,equals:e,equals_:e,toArray:function(){return[]},toString:q("none()")},Object.freeze&&Object.freeze(r),r),N=function(n){var e=q(n),t=function(){return o},r=function(e){return e(n)},o={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:C,isNone:b,getOr:e,getOrThunk:e,getOrDie:e,getOrNull:e,getOrUndefined:e,or:t,orThunk:t,map:function(e){return N(e(n))},each:function(e){e(n)},bind:r,exists:r,forall:r,filter:function(e){return e(n)?o:w},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(b,function(e){return t(n,e)})}};return o},_={some:N,none:x,from:function(e){return null===e||e===undefined?w:N(e)}},E=function(t){return function(e){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(e)===t}},S=E("string"),T=E("object"),k=E("array"),A=E("null"),R=E("boolean"),D=E("function"),O=E("number"),B=Array.prototype.slice,P=Array.prototype.indexOf,I=Array.prototype.push,L=function(e,t){return P.call(e,t)},F=function(e,t){return-1<L(e,t)},M=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1},W=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r},z=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)},K=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o];(t(a,o)?n:r).push(a)}return{pass:n,fail:r}},U=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n},j=function(e,t,n){return z(e,function(e){n=t(n,e)}),n},X=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n))return _.some(o)}return _.none()},Y=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return _.some(n);return _.none()},G=function(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!k(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);I.apply(t,e[n])}return t}(W(e,t))},J=function(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0},Q=function(e,t){return U(e,function(e){return!F(t,e)})},Z=function(e){return 0===e.length?_.none():_.some(e[0])},ee=function(e){return 0===e.length?_.none():_.some(e[e.length-1])},te=D(Array.from)?Array.from:function(e){return B.call(e)},ne="undefined"!=typeof V.window?V.window:Function("return this;")(),re=function(e,t){return function(e,t){for(var n=t!==undefined&&null!==t?t:ne,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];return n}(e.split("."),t)},oe={getOrDie:function(e,t){var n=re(e,t);if(n===undefined||null===n)throw new Error(e+" not available on this browser");return n}},ie=function(){return oe.getOrDie("URL")},ae={createObjectURL:function(e){return ie().createObjectURL(e)},revokeObjectURL:function(e){ie().revokeObjectURL(e)}},ue=V.navigator,se=ue.userAgent,ce=function(e){return"matchMedia"in V.window&&V.matchMedia(e).matches};m=/Android/.test(se),a=(a=!(i=/WebKit/.test(se))&&/MSIE/gi.test(se)&&/Explorer/gi.test(ue.appName))&&/MSIE (\w+)\./.exec(se)[1],u=-1!==se.indexOf("Trident/")&&(-1!==se.indexOf("rv:")||-1!==ue.appName.indexOf("Netscape"))&&11,s=-1!==se.indexOf("Edge/")&&!a&&!u&&12,a=a||u||s,c=!i&&!u&&/Gecko/.test(se),l=-1!==se.indexOf("Mac"),f=/(iPad|iPhone)/.test(se),g="FormData"in V.window&&"FileReader"in V.window&&"URL"in V.window&&!!ae.createObjectURL,p=ce("only screen and (max-device-width: 480px)")&&(m||f),h=ce("only screen and (min-width: 800px)")&&(m||f),v=-1!==se.indexOf("Windows Phone"),s&&(i=!1);var le,fe={opera:!1,webkit:i,ie:a,gecko:c,mac:l,iOS:f,android:m,contentEditable:!f||g||534<=parseInt(se.match(/AppleWebKit\/(\d*)/)[1],10),transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!==a,range:V.window.getSelection&&"Range"in V.window,documentMode:a&&!s?V.document.documentMode||7:10,fileApi:g,ceFalse:!1===a||8<a,cacheSuffix:null,container:null,overrideViewPort:null,experimentalShadowDom:!1,canHaveCSP:!1===a||11<a,desktop:!p&&!h,windowsPhone:v},de=window.Promise?window.Promise:function(){function r(e,t){return function(){e.apply(t,arguments)}}var e=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(e,r(o,this),r(u,this))},t=i.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)};function a(r){var o=this;null!==this._state?t(function(){var e=o._state?r.onFulfilled:r.onRejected;if(null!==e){var t;try{t=e(o._value)}catch(n){return void r.reject(n)}r.resolve(t)}else(o._state?r.resolve:r.reject)(o._value)}):this._deferreds.push(r)}function o(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void l(r(t,e),r(o,this),r(u,this))}this._state=!0,this._value=e,s.call(this)}catch(n){u.call(this,n)}}function u(e){this._state=!1,this._value=e,s.call(this)}function s(){for(var e=0,t=this._deferreds.length;e<t;e++)a.call(this,this._deferreds[e]);this._deferreds=null}function c(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function l(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(o){if(r)return;r=!0,n(o)}}return i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(n,r){var o=this;return new i(function(e,t){a.call(o,new c(n,r,e,t))})},i.all=function(){var s=Array.prototype.slice.call(1===arguments.length&&e(arguments[0])?arguments[0]:arguments);return new i(function(o,i){if(0===s.length)return o([]);var a=s.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},i)}s[t]=e,0==--a&&o(s)}catch(r){i(r)}}for(var e=0;e<s.length;e++)u(e,s[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i}(),me=function(e,t){return"number"!=typeof t&&(t=0),setTimeout(e,t)},ge=function(e,t){return"number"!=typeof t&&(t=1),setInterval(e,t)},pe=function(t,n){var r,e;return(e=function(){var e=arguments;clearTimeout(r),r=me(function(){t.apply(this,e)},n)}).stop=function(){clearTimeout(r)},e},he={requestAnimationFrame:function(e,t){le?le.then(e):le=new de(function(e){t||(t=V.document.body),function(e,t){var n,r=V.window.requestAnimationFrame,o=["ms","moz","webkit"];for(n=0;n<o.length&&!r;n++)r=V.window[o[n]+"RequestAnimationFrame"];r||(r=function(e){V.window.setTimeout(e,0)}),r(e,t)}(e,t)}).then(e)},setTimeout:me,setInterval:ge,setEditorTimeout:function(e,t,n){return me(function(){e.removed||t()},n)},setEditorInterval:function(e,t,n){var r;return r=ge(function(){e.removed?clearInterval(r):t()},n)},debounce:pe,throttle:pe,clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)}},ve=/^(?:mouse|contextmenu)|click/,ye={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1},be=function(){return!1},Ce=function(){return!0},xe=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},we=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},Ne=function(e,t){var n,r,o=t||{};for(n in e)ye[n]||(o[n]=e[n]);if(o.target||(o.target=o.srcElement||V.document),fe.experimentalShadowDom&&(o.target=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&0<n.length)return n[0]}return t}(e,o.target)),e&&ve.test(e.type)&&e.pageX===undefined&&e.clientX!==undefined){var i=o.target.ownerDocument||V.document,a=i.documentElement,u=i.body;o.pageX=e.clientX+(a&&a.scrollLeft||u&&u.scrollLeft||0)-(a&&a.clientLeft||u&&u.clientLeft||0),o.pageY=e.clientY+(a&&a.scrollTop||u&&u.scrollTop||0)-(a&&a.clientTop||u&&u.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=Ce,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=Ce,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},!(o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=Ce,o.stopPropagation()})==((r=o).isDefaultPrevented===Ce||r.isDefaultPrevented===be)&&(o.isDefaultPrevented=be,o.isPropagationStopped=be,o.isImmediatePropagationStopped=be),"undefined"==typeof o.metaKey&&(o.metaKey=!1),o},Ee=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)t(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){n.domLoaded||(n.domLoaded=!0,t(o))},u=function(){i()&&(we(r,"readystatechange",u),a())},s=function(){try{r.documentElement.doScroll("left")}catch(e){return void he.setTimeout(s)}a()};!r.addEventListener||fe.ie&&fe.ie<11?(xe(r,"readystatechange",u),r.documentElement.doScroll&&e.self===e.top&&s()):i()?a():xe(e,"DOMContentLoaded",a),xe(e,"load",a)}},Se=function(){var m,g,p,h,v,y=this,b={};g="mce-data-"+(+new Date).toString(32),h="onmouseenter"in V.document.documentElement,p="onfocusin"in V.document.documentElement,v={mouseenter:"mouseover",mouseleave:"mouseout"},m=1,y.domLoaded=!1,y.events=b;var C=function(e,t){var n,r,o,i,a=b[t];if(n=a&&a[e.type])for(r=0,o=n.length;r<o;r++)if((i=n[r])&&!1===i.func.call(i.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return};y.bind=function(e,t,n,r){var o,i,a,u,s,c,l,f=V.window,d=function(e){C(Ne(e||f.event),o)};if(e&&3!==e.nodeType&&8!==e.nodeType){for(e[g]?o=e[g]:(o=m++,e[g]=o,b[o]={}),r=r||e,a=(t=t.split(" ")).length;a--;)c=d,s=l=!1,"DOMContentLoaded"===(u=t[a])&&(u="ready"),y.domLoaded&&"ready"===u&&"complete"===e.readyState?n.call(r,Ne({type:u})):(h||(s=v[u])&&(c=function(e){var t,n;if(t=e.currentTarget,(n=e.relatedTarget)&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=Ne(e||f.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,C(e,o))}),p||"focusin"!==u&&"focusout"!==u||(l=!0,s="focusin"===u?"focus":"blur",c=function(e){(e=Ne(e||f.event)).type="focus"===e.type?"focusin":"focusout",C(e,o)}),(i=b[o][u])?"ready"===u&&y.domLoaded?n({type:u}):i.push({func:n,scope:r}):(b[o][u]=i=[{func:n,scope:r}],i.fakeName=s,i.capture=l,i.nativeHandler=c,"ready"===u?Ee(e,c,y):xe(e,s||u,c,l)));return e=i=0,n}},y.unbind=function(e,t,n){var r,o,i,a,u,s;if(!e||3===e.nodeType||8===e.nodeType)return y;if(r=e[g]){if(s=b[r],t){for(i=(t=t.split(" ")).length;i--;)if(o=s[u=t[i]]){if(n)for(a=o.length;a--;)if(o[a].func===n){var c=o.nativeHandler,l=o.fakeName,f=o.capture;(o=o.slice(0,a).concat(o.slice(a+1))).nativeHandler=c,o.fakeName=l,o.capture=f,s[u]=o}n&&0!==o.length||(delete s[u],we(e,o.fakeName||u,o.nativeHandler,o.capture))}}else{for(u in s)o=s[u],we(e,o.fakeName||u,o.nativeHandler,o.capture);s={}}for(u in s)return y;delete b[r];try{delete e[g]}catch(d){e[g]=null}}return y},y.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return y;for((n=Ne(null,n)).type=t,n.target=e;(r=e[g])&&C(n,r),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!n.isPropagationStopped(););return y},y.clean=function(e){var t,n,r=y.unbind;if(!e||3===e.nodeType||8===e.nodeType)return y;if(e[g]&&r(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(r(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[g]&&r(e);return y},y.destroy=function(){b={}},y.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1}};Se.Event=new Se,Se.Event.bind(V.window,"ready",function(){});var Te,ke,_e,Ae,Re,De,Oe,Be,Pe,Ie,Le,Fe,Me,ze,Ue,je,Ve,He,qe="sizzle"+-new Date,$e=V.window.document,We=0,Ke=0,Xe=Tt(),Ye=Tt(),Ge=Tt(),Je=function(e,t){return e===t&&(Le=!0),0},Qe=typeof undefined,Ze={}.hasOwnProperty,et=[],tt=et.pop,nt=et.push,rt=et.push,ot=et.slice,it=et.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},at="[\\x20\\t\\r\\n\\f]",ut="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st="\\["+at+"*("+ut+")(?:"+at+"*([*^$|!~]?=)"+at+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ut+"))|)"+at+"*\\]",ct=":("+ut+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",lt=new RegExp("^"+at+"+|((?:^|[^\\\\])(?:\\\\.)*)"+at+"+$","g"),ft=new RegExp("^"+at+"*,"+at+"*"),dt=new RegExp("^"+at+"*([>+~]|"+at+")"+at+"*"),mt=new RegExp("="+at+"*([^\\]'\"]*?)"+at+"*\\]","g"),gt=new RegExp(ct),pt=new RegExp("^"+ut+"$"),ht={ID:new RegExp("^#("+ut+")"),CLASS:new RegExp("^\\.("+ut+")"),TAG:new RegExp("^("+ut+"|[*])"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+ct),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+at+"*(even|odd|(([+-]|)(\\d*)n|)"+at+"*(?:([+-]|)"+at+"*(\\d+)|))"+at+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+at+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+at+"*((?:-\\d)?\\d*)"+at+"*\\)|)(?=[^-]|$)","i")},vt=/^(?:input|select|textarea|button)$/i,yt=/^h\d$/i,bt=/^[^{]+\{\s*\[native \w/,Ct=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xt=/[+~]/,wt=/'|\\/g,Nt=new RegExp("\\\\([\\da-f]{1,6}"+at+"?|("+at+")|.)","ig"),Et=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{rt.apply(et=ot.call($e.childNodes),$e.childNodes),et[$e.childNodes.length].nodeType}catch(iE){rt={apply:et.length?function(e,t){nt.apply(e,ot.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var St=function(e,t,n,r){var o,i,a,u,s,c,l,f,d,m;if((t?t.ownerDocument||t:$e)!==Me&&Fe(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=(t=t||Me).nodeType)&&9!==u)return[];if(Ue&&!r){if(o=Ct.exec(e))if(a=o[1]){if(9===u){if(!(i=t.getElementById(a))||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&He(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return rt.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&ke.getElementsByClassName)return rt.apply(n,t.getElementsByClassName(a)),n}if(ke.qsa&&(!je||!je.test(e))){if(f=l=qe,d=t,m=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(c=De(e),(l=t.getAttribute("id"))?f=l.replace(wt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",s=c.length;s--;)c[s]=f+Pt(c[s]);d=xt.test(e)&&Ot(t.parentNode)||t,m=c.join(",")}if(m)try{return rt.apply(n,d.querySelectorAll(m)),n}catch(g){}finally{l||t.removeAttribute("id")}}}return Be(e.replace(lt,"$1"),t,n,r)};function Tt(){var r=[];return function e(t,n){return r.push(t+" ")>_e.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function kt(e){return e[qe]=!0,e}function _t(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function At(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function Rt(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function Dt(a){return kt(function(i){return i=+i,kt(function(e,t){for(var n,r=a([],e.length,i),o=r.length;o--;)e[n=r[o]]&&(e[n]=!(t[n]=e[n]))})})}function Ot(e){return e&&typeof e.getElementsByTagName!==Qe&&e}for(Te in ke=St.support={},Re=St.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},Fe=St.setDocument=function(e){var t,s=e?e.ownerDocument||e:$e,n=s.defaultView;return s!==Me&&9===s.nodeType&&s.documentElement?(ze=(Me=s).documentElement,Ue=!Re(s),n&&n!==function(e){try{return e.top}catch(t){}return null}(n)&&(n.addEventListener?n.addEventListener("unload",function(){Fe()},!1):n.attachEvent&&n.attachEvent("onunload",function(){Fe()})),ke.attributes=!0,ke.getElementsByTagName=!0,ke.getElementsByClassName=bt.test(s.getElementsByClassName),ke.getById=!0,_e.find.ID=function(e,t){if(typeof t.getElementById!==Qe&&Ue){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},_e.filter.ID=function(e){var t=e.replace(Nt,Et);return function(e){return e.getAttribute("id")===t}},_e.find.TAG=ke.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==Qe)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},_e.find.CLASS=ke.getElementsByClassName&&function(e,t){if(Ue)return t.getElementsByClassName(e)},Ve=[],je=[],ke.disconnectedMatch=!0,je=je.length&&new RegExp(je.join("|")),Ve=Ve.length&&new RegExp(Ve.join("|")),t=bt.test(ze.compareDocumentPosition),He=t||bt.test(ze.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Je=t?function(e,t){if(e===t)return Le=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!ke.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument===$e&&He($e,e)?-1:t===s||t.ownerDocument===$e&&He($e,t)?1:Ie?it.call(Ie,e)-it.call(Ie,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Le=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],u=[t];if(!o||!i)return e===s?-1:t===s?1:o?-1:i?1:Ie?it.call(Ie,e)-it.call(Ie,t):0;if(o===i)return _t(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?_t(a[r],u[r]):a[r]===$e?-1:u[r]===$e?1:0},s):Me},St.matches=function(e,t){return St(e,null,null,t)},St.matchesSelector=function(e,t){if((e.ownerDocument||e)!==Me&&Fe(e),t=t.replace(mt,"='$1']"),ke.matchesSelector&&Ue&&(!Ve||!Ve.test(t))&&(!je||!je.test(t)))try{var n=(void 0).call(e,t);if(n||ke.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(iE){}return 0<St(t,Me,null,[e]).length},St.contains=function(e,t){return(e.ownerDocument||e)!==Me&&Fe(e),He(e,t)},St.attr=function(e,t){(e.ownerDocument||e)!==Me&&Fe(e);var n=_e.attrHandle[t.toLowerCase()],r=n&&Ze.call(_e.attrHandle,t.toLowerCase())?n(e,t,!Ue):undefined;return r!==undefined?r:ke.attributes||!Ue?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},St.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},St.uniqueSort=function(e){var t,n=[],r=0,o=0;if(Le=!ke.detectDuplicates,Ie=!ke.sortStable&&e.slice(0),e.sort(Je),Le){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return Ie=null,e},Ae=St.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=Ae(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=Ae(t);return n},(_e=St.selectors={cacheLength:50,createPseudo:kt,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Nt,Et),e[3]=(e[3]||e[4]||e[5]||"").replace(Nt,Et),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||St.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&St.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ht.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&gt.test(n)&&(t=De(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Nt,Et).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Xe[e+" "];return t||(t=new RegExp("(^|"+at+")"+e+"("+at+"|$)"))&&Xe(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==Qe&&e.getAttribute("class")||"")})},ATTR:function(n,r,o){return function(e){var t=St.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===o:"!="===r?t!==o:"^="===r?o&&0===t.indexOf(o):"*="===r?o&&-1<t.indexOf(o):"$="===r?o&&t.slice(-o.length)===o:"~="===r?-1<(" "+t+" ").indexOf(o):"|="===r&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(m,e,t,g,p){var h="nth"!==m.slice(0,3),v="last"!==m.slice(-4),y="of-type"===e;return 1===g&&0===p?function(e){return!!e.parentNode}:function(e,t,n){var r,o,i,a,u,s,c=h!==v?"nextSibling":"previousSibling",l=e.parentNode,f=y&&e.nodeName.toLowerCase(),d=!n&&!y;if(l){if(h){for(;c;){for(i=e;i=i[c];)if(y?i.nodeName.toLowerCase()===f:1===i.nodeType)return!1;s=c="only"===m&&!s&&"nextSibling"}return!0}if(s=[v?l.firstChild:l.lastChild],v&&d){for(u=(r=(o=l[qe]||(l[qe]={}))[m]||[])[0]===We&&r[1],a=r[0]===We&&r[2],i=u&&l.childNodes[u];i=++u&&i&&i[c]||(a=u=0)||s.pop();)if(1===i.nodeType&&++a&&i===e){o[m]=[We,u,a];break}}else if(d&&(r=(e[qe]||(e[qe]={}))[m])&&r[0]===We)a=r[1];else for(;(i=++u&&i&&i[c]||(a=u=0)||s.pop())&&((y?i.nodeName.toLowerCase()!==f:1!==i.nodeType)||!++a||(d&&((i[qe]||(i[qe]={}))[m]=[We,a]),i!==e)););return(a-=p)===g||a%g==0&&0<=a/g}}},PSEUDO:function(e,i){var t,a=_e.pseudos[e]||_e.setFilters[e.toLowerCase()]||St.error("unsupported pseudo: "+e);return a[qe]?a(i):1<a.length?(t=[e,e,"",i],_e.setFilters.hasOwnProperty(e.toLowerCase())?kt(function(e,t){for(var n,r=a(e,i),o=r.length;o--;)e[n=it.call(e,r[o])]=!(t[n]=r[o])}):function(e){return a(e,0,t)}):a}},pseudos:{not:kt(function(e){var r=[],o=[],u=Oe(e.replace(lt,"$1"));return u[qe]?kt(function(e,t,n,r){for(var o,i=u(e,null,r,[]),a=e.length;a--;)(o=i[a])&&(e[a]=!(t[a]=o))}):function(e,t,n){return r[0]=e,u(r,null,n,o),!o.pop()}}),has:kt(function(t){return function(e){return 0<St(t,e).length}}),contains:kt(function(t){return t=t.replace(Nt,Et),function(e){return-1<(e.textContent||e.innerText||Ae(e)).indexOf(t)}}),lang:kt(function(n){return pt.test(n||"")||St.error("unsupported lang: "+n),n=n.replace(Nt,Et).toLowerCase(),function(e){var t;do{if(t=Ue?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=V.window.location&&V.window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===ze},focus:function(e){return e===Me.activeElement&&(!Me.hasFocus||Me.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!_e.pseudos.empty(e)},header:function(e){return yt.test(e.nodeName)},input:function(e){return vt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Dt(function(){return[0]}),last:Dt(function(e,t){return[t-1]}),eq:Dt(function(e,t,n){return[n<0?n+t:n]}),even:Dt(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Dt(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Dt(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:Dt(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=_e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_e.pseudos[Te]=At(Te);for(Te in{submit:!0,reset:!0})_e.pseudos[Te]=Rt(Te);function Bt(){}function Pt(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function It(a,e,t){var u=e.dir,s=t&&"parentNode"===u,c=Ke++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||s)return a(e,t,n)}:function(e,t,n){var r,o,i=[We,c];if(n){for(;e=e[u];)if((1===e.nodeType||s)&&a(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||s){if((r=(o=e[qe]||(e[qe]={}))[u])&&r[0]===We&&r[1]===c)return i[2]=r[2];if((o[u]=i)[2]=a(e,t,n))return!0}}}function Lt(o){return 1<o.length?function(e,t,n){for(var r=o.length;r--;)if(!o[r](e,t,n))return!1;return!0}:o[0]}function Ft(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,c=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(u)));return a}function Mt(m,g,p,h,v,e){return h&&!h[qe]&&(h=Mt(h)),v&&!v[qe]&&(v=Mt(v,e)),kt(function(e,t,n,r){var o,i,a,u=[],s=[],c=t.length,l=e||function(e,t,n){for(var r=0,o=t.length;r<o;r++)St(e,t[r],n);return n}(g||"*",n.nodeType?[n]:n,[]),f=!m||!e&&g?l:Ft(l,u,m,n,r),d=p?v||(e?m:c||h)?[]:t:f;if(p&&p(f,d,n,r),h)for(o=Ft(d,s),h(o,[],n,r),i=o.length;i--;)(a=o[i])&&(d[s[i]]=!(f[s[i]]=a));if(e){if(v||m){if(v){for(o=[],i=d.length;i--;)(a=d[i])&&o.push(f[i]=a);v(null,d=[],o,r)}for(i=d.length;i--;)(a=d[i])&&-1<(o=v?it.call(e,a):u[i])&&(e[o]=!(t[o]=a))}}else d=Ft(d===t?d.splice(c,d.length):d),v?v(null,t,d,r):rt.apply(t,d)})}function zt(e){for(var r,t,n,o=e.length,i=_e.relative[e[0].type],a=i||_e.relative[" "],u=i?1:0,s=It(function(e){return e===r},a,!0),c=It(function(e){return-1<it.call(r,e)},a,!0),l=[function(e,t,n){return!i&&(n||t!==Pe)||((r=t).nodeType?s(e,t,n):c(e,t,n))}];u<o;u++)if(t=_e.relative[e[u].type])l=[It(Lt(l),t)];else{if((t=_e.filter[e[u].type].apply(null,e[u].matches))[qe]){for(n=++u;n<o&&!_e.relative[e[n].type];n++);return Mt(1<u&&Lt(l),1<u&&Pt(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(lt,"$1"),t,u<n&&zt(e.slice(u,n)),n<o&&zt(e=e.slice(n)),n<o&&Pt(e))}l.push(t)}return Lt(l)}Bt.prototype=_e.filters=_e.pseudos,_e.setFilters=new Bt,De=St.tokenize=function(e,t){var n,r,o,i,a,u,s,c=Ye[e+" "];if(c)return t?0:c.slice(0);for(a=e,u=[],s=_e.preFilter;a;){for(i in n&&!(r=ft.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=dt.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(lt," ")}),a=a.slice(n.length)),_e.filter)!(r=ht[i].exec(a))||s[i]&&!(r=s[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?St.error(e):Ye(e,u).slice(0)},Oe=St.compile=function(e,t){var n,h,v,y,b,r,o=[],i=[],a=Ge[e+" "];if(!a){for(t||(t=De(e)),n=t.length;n--;)(a=zt(t[n]))[qe]?o.push(a):i.push(a);(a=Ge(e,(h=i,y=0<(v=o).length,b=0<h.length,r=function(e,t,n,r,o){var i,a,u,s=0,c="0",l=e&&[],f=[],d=Pe,m=e||b&&_e.find.TAG("*",o),g=We+=null==d?1:Math.random()||.1,p=m.length;for(o&&(Pe=t!==Me&&t);c!==p&&null!=(i=m[c]);c++){if(b&&i){for(a=0;u=h[a++];)if(u(i,t,n)){r.push(i);break}o&&(We=g)}y&&((i=!u&&i)&&s--,e&&l.push(i))}if(s+=c,y&&c!==s){for(a=0;u=v[a++];)u(l,f,t,n);if(e){if(0<s)for(;c--;)l[c]||f[c]||(f[c]=tt.call(r));f=Ft(f)}rt.apply(r,f),o&&!e&&0<f.length&&1<s+v.length&&St.uniqueSort(r)}return o&&(We=g,Pe=d),l},y?kt(r):r))).selector=e}return a},Be=St.select=function(e,t,n,r){var o,i,a,u,s,c="function"==typeof e&&e,l=!r&&De(e=c.selector||e);if(n=n||[],1===l.length){if(2<(i=l[0]=l[0].slice(0)).length&&"ID"===(a=i[0]).type&&ke.getById&&9===t.nodeType&&Ue&&_e.relative[i[1].type]){if(!(t=(_e.find.ID(a.matches[0].replace(Nt,Et),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=ht.needsContext.test(e)?0:i.length;o--&&(a=i[o],!_e.relative[u=a.type]);)if((s=_e.find[u])&&(r=s(a.matches[0].replace(Nt,Et),xt.test(i[0].type)&&Ot(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&Pt(i)))return rt.apply(n,r),n;break}}return(c||Oe(e,l))(r,t,!Ue,n,xt.test(e)&&Ot(t.parentNode)||t),n},ke.sortStable=qe.split("").sort(Je).join("")===qe,ke.detectDuplicates=!!Le,Fe(),ke.sortDetached=!0;var Ut=Array.isArray,jt=function(e,t,n){var r,o;if(!e)return 0;if(n=n||e,e.length!==undefined){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return 0}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return 0;return 1},Vt=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},Ht={isArray:Ut,toArray:function(e){var t,n,r=e;if(!Ut(e))for(r=[],t=0,n=e.length;t<n;t++)r[t]=e[t];return r},each:jt,map:function(n,r){var o=[];return jt(n,function(e,t){o.push(r(e,t,n))}),o},filter:function(n,r){var o=[];return jt(n,function(e,t){r&&!r(e,t,n)||o.push(e)}),o},indexOf:function(e,t){var n,r;if(e)for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},reduce:function(e,t,n,r){var o=0;for(arguments.length<3&&(n=e[0]);o<e.length;o++)n=t.call(r,n,e[o],o);return n},findIndex:Vt,find:function(e,t,n){var r=Vt(e,t,n);return-1!==r?e[r]:undefined},last:function(e){return e[e.length-1]}},qt=/^\s*|\s*$/g,$t=function(e){return null===e||e===undefined?"":(""+e).replace(qt,"")},Wt=function(e,t){return t?!("array"!==t||!Ht.isArray(e))||typeof e===t:e!==undefined},Kt=function(e,n,r,o){o=o||this,e&&(r&&(e=e[r]),Ht.each(e,function(e,t){if(!1===n.call(o,e,t,r))return!1;Kt(e,n,r,o)}))},Xt={trim:$t,isArray:Ht.isArray,is:Wt,toArray:Ht.toArray,makeMap:function(e,t,n){var r;for(t=t||",","string"==typeof(e=e||[])&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},each:Ht.each,map:Ht.map,grep:Ht.filter,inArray:Ht.indexOf,hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},extend:function(e,t){for(var n,r,o,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u,s=arguments;for(n=1,r=s.length;n<r;n++)for(o in t=s[n])t.hasOwnProperty(o)&&(u=t[o])!==undefined&&(e[o]=u);return e},create:function(e,t,n){var r,o,i,a,u,s=this,c=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),i=e[3].match(/(^|\.)(\w+)$/i)[2],!(o=s.createNS(e[3].replace(/\.\w+$/,""),n))[i]){if("static"===e[2])return o[i]=t,void(this.onCreate&&this.onCreate(e[2],e[3],o[i]));t[i]||(t[i]=function(){},c=1),o[i]=t[i],s.extend(o[i].prototype,t),e[5]&&(r=s.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],u=o[i],o[i]=c?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],u.apply(this,arguments)},o[i].prototype[i]=o[i],s.each(r,function(e,t){o[i].prototype[t]=r[t]}),s.each(t,function(e,t){r[t]?o[i].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==i&&(o[i].prototype[t]=e)})),s.each(t["static"],function(e,t){o[i][t]=e})}},walk:Kt,createNS:function(e,t){var n,r;for(t=t||V.window,e=e.split("."),n=0;n<e.length;n++)t[r=e[n]]||(t[r]={}),t=t[r];return t},resolve:function(e,t){var n,r;for(t=t||V.window,n=0,r=(e=e.split(".")).length;n<r&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||Wt(e,"array")?e:Ht.map(e.split(t||","),$t)},_addCacheSuffix:function(e){var t=fe.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},Yt=V.document,Gt=Array.prototype.push,Jt=Array.prototype.slice,Qt=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Zt=Se.Event,en=Xt.makeMap("children,contents,next,prev"),tn=function(e){return void 0!==e},nn=function(e){return"string"==typeof e},rn=function(e,t){var n,r,o;for(o=(t=t||Yt).createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return n},on=function(e,t,n,r){var o;if(nn(t))t=rn(t,bn(e[0]));else if(t.length&&!t.nodeType){if(t=gn.makeArray(t),r)for(o=t.length-1;0<=o;o--)on(e,t[o],n,r);else for(o=0;o<t.length;o++)on(e,t[o],n,r);return e}if(t.nodeType)for(o=e.length;o--;)n.call(e[o],t);return e},an=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},un=function(e,t,n){var r,o;return t=gn(t)[0],e.each(function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e)),o.appendChild(e)}),e},sn=Xt.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),cn=Xt.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),ln={"for":"htmlFor","class":"className",readonly:"readOnly"},fn={"float":"cssFloat"},dn={},mn={},gn=function(e,t){return new gn.fn.init(e,t)},pn=/^\s*|\s*$/g,hn=function(e){return null===e||e===undefined?"":(""+e).replace(pn,"")},vn=function(e,t){var n,r,o,i;if(e)if((n=e.length)===undefined){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n&&(i=e[o],!1!==t.call(i,o,i));o++);return e},yn=function(e,n){var r=[];return vn(e,function(e,t){n(t,e)&&r.push(t)}),r},bn=function(e){return e?9===e.nodeType?e:e.ownerDocument:Yt};gn.fn=gn.prototype={constructor:gn,selector:"",context:null,length:0,init:function(e,t){var n,r,o=this;if(!e)return o;if(e.nodeType)return o.context=o[0]=e,o.length=1,o;if(t&&t.nodeType)o.context=t;else{if(t)return gn(e).attr(t);o.context=t=V.document}if(nn(e)){if(!(n="<"===(o.selector=e).charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Qt.exec(e)))return gn(t).find(e);if(n[1])for(r=rn(e,bn(t)).firstChild;r;)Gt.call(o,r),r=r.nextSibling;else{if(!(r=bn(t).getElementById(n[2])))return o;if(r.id!==n[2])return o.find(e);o.length=1,o[0]=r}}else this.add(e,!1);return o},toArray:function(){return Xt.toArray(this)},add:function(e,t){var n,r,o=this;if(nn(e))return o.add(gn(e));if(!1!==t)for(n=gn.unique(o.toArray().concat(gn.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else Gt.apply(o,gn.makeArray(e));return o},attr:function(t,n){var e,r=this;if("object"==typeof t)vn(t,function(e,t){r.attr(e,t)});else{if(!tn(n)){if(r[0]&&1===r[0].nodeType){if((e=dn[t])&&e.get)return e.get(r[0],t);if(cn[t])return r.prop(t)?t:undefined;null===(n=r[0].getAttribute(t,2))&&(n=undefined)}return n}this.each(function(){var e;if(1===this.nodeType){if((e=dn[t])&&e.set)return void e.set(this,n);null===n?this.removeAttribute(t,2):this.setAttribute(t,n,2)}})}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=ln[e]||e))vn(e,function(e,t){n.prop(e,t)});else{if(!tn(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each(function(){1===this.nodeType&&(this[e]=t)})}return n},css:function(n,r){var e,o,i=this,t=function(e){return e.replace(/-(\D)/g,function(e,t){return t.toUpperCase()})},a=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e})};if("object"==typeof n)vn(n,function(e,t){i.css(e,t)});else if(tn(r))n=t(n),"number"!=typeof r||sn[n]||(r=r.toString()+"px"),i.each(function(){var e=this.style;if((o=mn[n])&&o.set)o.set(this,r);else{try{this.style[fn[n]||n]=r}catch(t){}null!==r&&""!==r||(e.removeProperty?e.removeProperty(a(n)):e.removeAttribute(n))}});else{if(e=i[0],(o=mn[n])&&o.get)return o.get(e);if(!e.ownerDocument.defaultView)return e.currentStyle?e.currentStyle[t(n)]:"";try{return e.ownerDocument.defaultView.getComputedStyle(e,null).getPropertyValue(a(n))}catch(u){return undefined}}return i},remove:function(){for(var e,t=this.length;t--;)e=this[t],Zt.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this.length;t--;)for(e=this[t];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t,n=this;if(tn(e)){t=n.length;try{for(;t--;)n[t].innerHTML=e}catch(r){gn(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(tn(e)){for(t=n.length;t--;)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return on(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)})},prepend:function(){return on(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)},!0)},before:function(){return this[0]&&this[0].parentNode?on(this,arguments,function(e){this.parentNode.insertBefore(e,this)}):this},after:function(){return this[0]&&this[0].parentNode?on(this,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):this},appendTo:function(e){return gn(e).append(this),this},prependTo:function(e){return gn(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return un(this,e)},wrapAll:function(e){return un(this,e,!0)},wrapInner:function(e){return this.each(function(){gn(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){gn(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),gn(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(o,i){var e=this;return"string"!=typeof o||(-1!==o.indexOf(" ")?vn(o.split(" "),function(){e.toggleClass(this,i)}):e.each(function(e,t){var n,r;(r=an(t,o))!==i&&(n=t.className,r?t.className=hn((" "+n+" ").replace(" "+o+" "," ")):t.className+=n?" "+o:o)})),e},hasClass:function(e){return an(this[0],e)},each:function(e){return vn(this,e)},on:function(e,t){return this.each(function(){Zt.bind(this,e,t)})},off:function(e,t){return this.each(function(){Zt.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?Zt.fire(this,e.type,e):Zt.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new gn(Jt.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)gn.find(e,this[t],r);return gn(r)},filter:function(n){return gn("function"==typeof n?yn(this.toArray(),function(e,t){return n(t,e)}):gn.filter(n,this.toArray()))},closest:function(n){var r=[];return n instanceof gn&&(n=n[0]),this.each(function(e,t){for(;t;){if("string"==typeof n&&gn(t).is(n)){r.push(t);break}if(t===n){r.push(t);break}t=t.parentNode}}),gn(r)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):((t=this[0])&&(r=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(i=(o=t.getBoundingClientRect()).left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:Gt,sort:[].sort,splice:[].splice},Xt.extend(gn,{extend:Xt.extend,makeArray:function(e){return(t=e)&&t===t.window||e.nodeType?[e]:Xt.toArray(e);var t},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:Xt.isArray,each:vn,trim:hn,grep:yn,find:St,expr:St.selectors,unique:St.uniqueSort,text:St.getText,contains:St.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?gn.find.matchesSelector(t[0],e)?[t[0]]:[]:gn.find.matches(e,t)}});var Cn=function(e,t,n){var r=[],o=e[t];for("string"!=typeof n&&n instanceof gn&&(n=n[0]);o&&9!==o.nodeType;){if(n!==undefined){if(o===n)break;if("string"==typeof n&&gn(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},xn=function(e,t,n,r){var o=[];for(r instanceof gn&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(r!==undefined){if(e===r)break;if("string"==typeof r&&gn(e).is(r))break}o.push(e)}return o},wn=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};vn({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Cn(e,"parentNode")},next:function(e){return wn(e,"nextSibling",1)},prev:function(e){return wn(e,"previousSibling",1)},children:function(e){return xn(e.firstChild,"nextSibling",1)},contents:function(e){return Xt.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,r){gn.fn[e]=function(t){var n=[];return this.each(function(){var e=r.call(n,this,t,n);e&&(gn.isArray(e)?n.push.apply(n,e):n.push(e))}),1<this.length&&(en[e]||(n=gn.unique(n)),0===e.indexOf("parents")&&(n=n.reverse())),n=gn(n),t?n.filter(t):n}}),vn({parentsUntil:function(e,t){return Cn(e,"parentNode",t)},nextUntil:function(e,t){return xn(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return xn(e,"previousSibling",1,t).slice(1)}},function(r,o){gn.fn[r]=function(t,e){var n=[];return this.each(function(){var e=o.call(n,this,t,n);e&&(gn.isArray(e)?n.push.apply(n,e):n.push(e))}),1<this.length&&(n=gn.unique(n),0!==r.indexOf("parents")&&"prevUntil"!==r||(n=n.reverse())),n=gn(n),e?n.filter(e):n}}),gn.fn.is=function(e){return!!e&&0<this.filter(e).length},gn.fn.init.prototype=gn.fn,gn.overrideDefaults=function(n){var r,o=function(e,t){return r=r||n(),0===arguments.length&&(e=r.element),t||(t=r.context),new o.fn.init(e,t)};return gn.extend(o,this),o};var Nn=function(n,r,e){vn(e,function(e,t){n[e]=n[e]||{},n[e][r]=t})};fe.ie&&fe.ie<8&&(Nn(dn,"get",{maxlength:function(e){var t=e.maxLength;return 2147483647===t?undefined:t},size:function(e){var t=e.size;return 20===t?undefined:t},"class":function(e){return e.className},style:function(e){var t=e.style.cssText;return 0===t.length?undefined:t}}),Nn(dn,"set",{"class":function(e,t){e.className=t},style:function(e,t){e.style.cssText=t}})),fe.ie&&fe.ie<9&&(fn["float"]="styleFloat",Nn(mn,"set",{opacity:function(e,t){var n=e.style;null===t||""===t?n.removeAttribute("filter"):(n.zoom=1,n.filter="alpha(opacity="+100*t+")")}})),gn.attrHooks=dn,gn.cssHooks=mn;var En,Sn,Tn,kn,_n,An,Rn,Dn=function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}return undefined}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Bn(r(1),r(2))},On=function(){return Bn(0,0)},Bn=function(e,t){return{major:e,minor:t}},Pn={nu:Bn,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?On():Dn(e,n)},unknown:On},In="Firefox",Ln=function(e,t){return function(){return t===e}},Fn=function(e){var t=e.current;return{current:t,version:e.version,isEdge:Ln("Edge",t),isChrome:Ln("Chrome",t),isIE:Ln("IE",t),isOpera:Ln("Opera",t),isFirefox:Ln(In,t),isSafari:Ln("Safari",t)}},Mn={unknown:function(){return Fn({current:undefined,version:Pn.unknown()})},nu:Fn,edge:q("Edge"),chrome:q("Chrome"),ie:q("IE"),opera:q("Opera"),firefox:q(In),safari:q("Safari")},zn="Windows",Un="Android",jn="Solaris",Vn="FreeBSD",Hn=function(e,t){return function(){return t===e}},qn=function(e){var t=e.current;return{current:t,version:e.version,isWindows:Hn(zn,t),isiOS:Hn("iOS",t),isAndroid:Hn(Un,t),isOSX:Hn("OSX",t),isLinux:Hn("Linux",t),isSolaris:Hn(jn,t),isFreeBSD:Hn(Vn,t)}},$n={unknown:function(){return qn({current:undefined,version:Pn.unknown()})},nu:qn,windows:q(zn),ios:q("iOS"),android:q(Un),linux:q("Linux"),osx:q("OSX"),solaris:q(jn),freebsd:q(Vn)},Wn=function(e,t){var n=String(t).toLowerCase();return X(e,function(e){return e.search(n)})},Kn=function(e,n){return Wn(e,n).map(function(e){var t=Pn.detect(e.versionRegexes,n);return{current:e.name,version:t}})},Xn=function(e,n){return Wn(e,n).map(function(e){var t=Pn.detect(e.versionRegexes,n);return{current:e.name,version:t}})},Yn=function(e,t){return-1!==e.indexOf(t)},Gn=function(e){return e.replace(/^\s+|\s+$/g,"")},Jn=function(e){return e.replace(/\s+$/g,"")},Qn=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Zn=function(t){return function(e){return Yn(e,t)}},er=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Yn(e,"edge/")&&Yn(e,"chrome")&&Yn(e,"safari")&&Yn(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Qn],search:function(e){return Yn(e,"chrome")&&!Yn(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Yn(e,"msie")||Yn(e,"trident")}},{name:"Opera",versionRegexes:[Qn,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Zn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Zn("firefox")},{name:"Safari",versionRegexes:[Qn,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Yn(e,"safari")||Yn(e,"mobile/"))&&Yn(e,"applewebkit")}}],tr=[{name:"Windows",search:Zn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Yn(e,"iphone")||Yn(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Zn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Zn("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Zn("linux"),versionRegexes:[]},{name:"Solaris",search:Zn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Zn("freebsd"),versionRegexes:[]}],nr={browsers:q(er),oses:q(tr)},rr=function(e){var t,n,r,o,i,a,u,s,c,l,f,d=nr.browsers(),m=nr.oses(),g=Kn(d,e).fold(Mn.unknown,Mn.nu),p=Xn(m,e).fold($n.unknown,$n.nu);return{browser:g,os:p,deviceType:(n=g,r=e,o=(t=p).isiOS()&&!0===/ipad/i.test(r),i=t.isiOS()&&!o,a=t.isAndroid()&&3===t.version.major,u=t.isAndroid()&&4===t.version.major,s=o||a||u&&!0===/mobile/i.test(r),c=t.isiOS()||t.isAndroid(),l=c&&!s,f=n.isSafari()&&t.isiOS()&&!1===/safari/i.test(r),{isiPad:q(o),isiPhone:q(i),isTablet:q(s),isPhone:q(l),isTouch:q(c),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:q(f)})}},or={detect:(En=function(){var e=V.navigator.userAgent;return rr(e)},Tn=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tn||(Tn=!0,Sn=En.apply(null,e)),Sn})},ir=function(e){if(null===e||e===undefined)throw new Error("Node cannot be null or undefined");return{dom:q(e)}},ar={fromHtml:function(e,t){var n=(t||V.document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw V.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return ir(n.childNodes[0])},fromTag:function(e,t){var n=(t||V.document).createElement(e);return ir(n)},fromText:function(e,t){var n=(t||V.document).createTextNode(e);return ir(n)},fromDom:ir,fromPoint:function(e,t,n){var r=e.dom();return _.from(r.elementFromPoint(t,n)).map(ir)}},ur=(V.Node.ATTRIBUTE_NODE,V.Node.CDATA_SECTION_NODE,V.Node.COMMENT_NODE,V.Node.DOCUMENT_NODE),sr=(V.Node.DOCUMENT_TYPE_NODE,V.Node.DOCUMENT_FRAGMENT_NODE,V.Node.ELEMENT_NODE),cr=V.Node.TEXT_NODE,lr=(V.Node.PROCESSING_INSTRUCTION_NODE,V.Node.ENTITY_REFERENCE_NODE,V.Node.ENTITY_NODE,V.Node.NOTATION_NODE,function(e){return e.dom().nodeName.toLowerCase()}),fr=function(t){return function(e){return e.dom().nodeType===t}},dr=fr(sr),mr=fr(cr),gr=Object.keys,pr=Object.hasOwnProperty,hr=function(e,t){for(var n=gr(e),r=0,o=n.length;r<o;r++){var i=n[r];t(e[i],i)}},vr=function(e,r){var o={};return hr(e,function(e,t){var n=r(e,t);o[n.k]=n.v}),o},yr=function(e,n){var r={},o={};return hr(e,function(e,t){(n(e,t)?r:o)[t]=e}),{t:r,f:o}},br=function(e,t){return pr.call(e,t)},Cr=function(e){return e.style!==undefined&&D(e.style.getPropertyValue)},xr=function(e,t,n){if(!(S(n)||R(n)||O(n)))throw V.console.error("Invalid call to Attr.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")},wr=function(e,t,n){xr(e.dom(),t,n)},Nr=function(e,t){var n=e.dom();hr(t,function(e,t){xr(n,t,e)})},Er=function(e,t){var n=e.dom().getAttribute(t);return null===n?undefined:n},Sr=function(e,t){e.dom().removeAttribute(t)},Tr=function(e,t){var n=e.dom();hr(t,function(e,t){!function(e,t,n){if(!S(n))throw V.console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);Cr(e)&&e.style.setProperty(t,n)}(n,t,e)})},kr=function(e,t){var n,r,o=e.dom(),i=V.window.getComputedStyle(o).getPropertyValue(t),a=""!==i||(r=mr(n=e)?n.dom().parentNode:n.dom())!==undefined&&null!==r&&r.ownerDocument.body.contains(r)?i:_r(o,t);return null===a?undefined:a},_r=function(e,t){return Cr(e)?e.style.getPropertyValue(t):""},Ar=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(t.length!==n.length)throw new Error('Wrong number of arguments to struct. Expected "['+t.length+']", got '+n.length+" arguments");var r={};return z(t,function(e,t){r[e]=q(n[t])}),r}},Rr=function(e,t){for(var n=[],r=function(e){return n.push(e),t(e)},o=t(e);(o=o.bind(r)).isSome(););return n},Dr=function(){return oe.getOrDie("Node")},Or=function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)},Br=function(e,t){return Or(e,t,Dr().DOCUMENT_POSITION_CONTAINED_BY)},Pr=sr,Ir=ur,Lr=function(e,t){var n=e.dom();if(n.nodeType!==Pr)return!1;var r=n;if(r.matches!==undefined)return r.matches(t);if(r.msMatchesSelector!==undefined)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==undefined)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==undefined)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Fr=function(e){return e.nodeType!==Pr&&e.nodeType!==Ir||0===e.childElementCount},Mr=function(e,t){return e.dom()===t.dom()},zr=or.detect().browser.isIE()?function(e,t){return Br(e.dom(),t.dom())}:function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},Ur=function(e){return ar.fromDom(e.dom().ownerDocument)},jr=function(e){return ar.fromDom(e.dom().ownerDocument.defaultView)},Vr=function(e){return _.from(e.dom().parentNode).map(ar.fromDom)},Hr=function(e){return _.from(e.dom().previousSibling).map(ar.fromDom)},qr=function(e){return _.from(e.dom().nextSibling).map(ar.fromDom)},$r=function(e){return t=Rr(e,Hr),(n=B.call(t,0)).reverse(),n;var t,n},Wr=function(e){return Rr(e,qr)},Kr=function(e){return W(e.dom().childNodes,ar.fromDom)},Xr=function(e,t){var n=e.dom().childNodes;return _.from(n[t]).map(ar.fromDom)},Yr=function(e){return Xr(e,0)},Gr=function(e){return Xr(e,e.dom().childNodes.length-1)},Jr=(Ar("element","offset"),or.detect().browser),Qr=function(e){return X(e,dr)},Zr={getPos:function(e,t,n){var r,o,i,a=0,u=0,s=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===kr(ar.fromDom(e),"position"))return{x:a=(o=t.getBoundingClientRect()).left+(s.documentElement.scrollLeft||e.scrollLeft)-s.documentElement.clientLeft,y:u=o.top+(s.documentElement.scrollTop||e.scrollTop)-s.documentElement.clientTop};for(r=t;r&&r!==n&&r.nodeType;)a+=r.offsetLeft||0,u+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!==n&&r.nodeType;)a-=r.scrollLeft||0,u-=r.scrollTop||0,r=r.parentNode;u+=(i=ar.fromDom(t),Jr.isFirefox()&&"table"===lr(i)?Qr(Kr(i)).filter(function(e){return"caption"===lr(e)}).bind(function(o){return Qr(Wr(o)).map(function(e){var t=e.dom().offsetTop,n=o.dom().offsetTop,r=o.dom().offsetHeight;return t<=n?-r:0})}).getOr(0):0)}return{x:a,y:u}}},eo={},to={exports:eo};kn=undefined,_n=eo,An=to,Rn=undefined,function(e){"object"==typeof _n&&void 0!==An?An.exports=e():"function"==typeof kn&&kn.amd?kn([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=e()}(function(){return function i(a,u,s){function c(t,e){if(!u[t]){if(!a[t]){var n="function"==typeof Rn&&Rn;if(!e&&n)return n(t,!0);if(l)return l(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=u[t]={exports:{}};a[t][0].call(o.exports,function(e){return c(a[t][1][e]||e)},o,o.exports,i,a,u,s)}return u[t].exports}for(var l="function"==typeof Rn&&Rn,e=0;e<s.length;e++)c(s[e]);return c}({1:[function(e,t,n){var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(iE){try{return r.call(null,e,0)}catch(iE){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(iE){r=a}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(iE){o=u}}();var c,l=[],f=!1,d=-1;function m(){f&&c&&(f=!1,c.length?l=c.concat(l):d=-1,l.length&&g())}function g(){if(!f){var e=s(m);f=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,f=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(iE){try{return o.call(null,e)}catch(iE){return o.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||f||s(g)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],2:[function(e,f,t){(function(n){!function(e){var t=setTimeout;function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function o(n,r){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,i._immediateFn(function(){var e=1===n._state?r.onFulfilled:r.onRejected;if(null!==e){var t;try{t=e(n._value)}catch(iE){return void u(r.promise,iE)}a(r.promise,t)}else(1===n._state?a:u)(r.promise,n._value)})):n._deferreds.push(r)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void l((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,s(e)}catch(iE){u(e,iE)}var r,o}function u(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,a(t,e))},function(e){n||(n=!0,u(t,e))})}catch(r){if(n)return;n=!0,u(t,r)}}i.prototype["catch"]=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return o(this,new c(e,t,n)),n},i.all=function(e){var s=Array.prototype.slice.call(e);return new i(function(o,i){if(0===s.length)return o([]);var a=s.length;function u(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){u(t,e)},i)}s[t]=e,0==--a&&o(s)}catch(r){i(r)}}for(var e=0;e<s.length;e++)u(e,s[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){for(var n=0,r=o.length;n<r;n++)o[n].then(e,t)})},i._immediateFn="function"==typeof n?function(e){n(e)}:function(e){t(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==f&&f.exports?f.exports=i:e.Promise||(e.Promise=i)}(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(s,e,c){(function(e,t){var r=s("process/browser.js").nextTick,n=Function.prototype.apply,o=Array.prototype.slice,i={},a=0;function u(e,t){this._id=e,this._clearFn=t}c.setTimeout=function(){return new u(n.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new u(n.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},c.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},c._unrefActive=c.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},c.setImmediate="function"==typeof e?e:function(e){var t=a++,n=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,r(function(){i[t]&&(n?e.apply(null,n):e.call(null),c.clearImmediate(t))}),t},c.clearImmediate="function"==typeof t?t:function(e){delete i[e]}}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),o="undefined"!=typeof window?window:Function("return this;")();t.exports={boltExport:o.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)});var no=to.exports.boltExport,ro=function(e){var n=_.none(),t=[],r=function(e){o()?a(e):t.push(e)},o=function(){return n.isSome()},i=function(e){z(e,a)},a=function(t){n.each(function(e){V.setTimeout(function(){t(e)},0)})};return e(function(e){n=_.some(e),i(t),t=[]}),{get:r,map:function(n){return ro(function(t){r(function(e){t(n(e))})})},isReady:o}},oo={nu:ro,pure:function(t){return ro(function(e){e(t)})}},io=function(e){V.setTimeout(function(){throw e},0)},ao=function(n){var e=function(e){n().then(e,io)};return{map:function(e){return ao(function(){return n().then(e)})},bind:function(t){return ao(function(){return n().then(function(e){return t(e).toPromise()})})},anonBind:function(e){return ao(function(){return n().then(function(){return e.toPromise()})})},toLazy:function(){return oo.nu(e)},toCached:function(){var e=null;return ao(function(){return null===e&&(e=n()),e})},toPromise:n,get:e}},uo={nu:function(e){return ao(function(){return new no(e)})},pure:function(e){return ao(function(){return no.resolve(e)})}},so=function(a,e){return e(function(r){var o=[],i=0;0===a.length?r([]):z(a,function(e,t){var n;e.get((n=t,function(e){o[n]=e,++i>=a.length&&r(o)}))})})},co=function(e){return so(e,uo.nu)},lo=function(n){return{is:function(e){return n===e},isValue:C,isError:b,getOr:q(n),getOrThunk:q(n),getOrDie:q(n),or:function(e){return lo(n)},orThunk:function(e){return lo(n)},fold:function(e,t){return t(n)},map:function(e){return lo(e(n))},mapError:function(e){return lo(n)},each:function(e){e(n)},bind:function(e){return e(n)},exists:function(e){return e(n)},forall:function(e){return e(n)},toOption:function(){return _.some(n)}}},fo=function(n){return{is:b,isValue:b,isError:C,getOr:$,getOrThunk:function(e){return e()},getOrDie:function(){return e=String(n),function(){throw new Error(e)}();var e},or:function(e){return e},orThunk:function(e){return e()},fold:function(e,t){return e(n)},map:function(e){return fo(n)},mapError:function(e){return fo(e(n))},each:o,bind:function(e){return fo(n)},exists:b,forall:C,toOption:_.none}},mo={value:lo,error:fo,fromOption:function(e,t){return e.fold(function(){return fo(t)},lo)}};function go(e,u){var t=e,n=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==u){if(o=e[n])return o;for(i=e.parentNode;i&&i!==u;i=i.parentNode)if(o=i[n])return o}}};this.current=function(){return t},this.next=function(e){return t=n(t,"firstChild","nextSibling",e)},this.prev=function(e){return t=n(t,"lastChild","previousSibling",e)},this.prev2=function(e){return t=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],u&&o===u)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if((i=e.parentNode)&&i!==u)return i}}(t,"lastChild","previousSibling",e)}}var po,ho,vo,yo=function(t){var n;return function(e){return(n=n||function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n}(t,q(!0))).hasOwnProperty(lr(e))}},bo=yo(["h1","h2","h3","h4","h5","h6"]),Co=yo(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),xo=function(e){return dr(e)&&!Co(e)},wo=function(e){return dr(e)&&"br"===lr(e)},No=yo(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),Eo=yo(["ul","ol","dl"]),So=yo(["li","dd","dt"]),To=yo(["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"]),ko=yo(["thead","tbody","tfoot"]),_o=yo(["td","th"]),Ao=yo(["pre","script","textarea","style"]),Ro=function(t){return function(e){return!!e&&e.nodeType===t}},Do=Ro(1),Oo=function(e){var r=e.toLowerCase().split(" ");return function(e){var t,n;if(e&&e.nodeType)for(n=e.nodeName.toLowerCase(),t=0;t<r.length;t++)if(n===r[t])return!0;return!1}},Bo=function(t){return function(e){if(Do(e)){if(e.contentEditable===t)return!0;if(e.getAttribute("data-mce-contenteditable")===t)return!0}return!1}},Po=Ro(3),Io=Ro(8),Lo=Ro(9),Fo=Ro(11),Mo=Oo("br"),zo=Bo("true"),Uo=Bo("false"),jo={isText:Po,isElement:Do,isComment:Io,isDocument:Lo,isDocumentFragment:Fo,isBr:Mo,isContentEditableTrue:zo,isContentEditableFalse:Uo,isRestrictedNode:function(e){return!!e&&!Object.getPrototypeOf(e)},matchNodeNames:Oo,hasPropValue:function(t,n){return function(e){return Do(e)&&e[t]===n}},hasAttribute:function(t,e){return function(e){return Do(e)&&e.hasAttribute(t)}},hasAttributeValue:function(t,n){return function(e){return Do(e)&&e.getAttribute(t)===n}},matchStyleValues:function(r,e){var o=e.toLowerCase().split(" ");return function(e){var t;if(Do(e))for(t=0;t<o.length;t++){var n=e.ownerDocument.defaultView.getComputedStyle(e,null);if((n?n.getPropertyValue(r):null)===o[t])return!0}return!1}},isBogus:function(e){return Do(e)&&e.hasAttribute("data-mce-bogus")},isBogusAll:function(e){return Do(e)&&"all"===e.getAttribute("data-mce-bogus")},isTable:function(e){return Do(e)&&"TABLE"===e.tagName}},Vo=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Ho=function(e,t){var n,r=t.childNodes;if(!jo.isElement(t)||!Vo(t)){for(n=r.length-1;0<=n;n--)Ho(e,r[n]);if(!1===jo.isDocument(t)){if(jo.isText(t)&&0<t.nodeValue.length){var o=Xt.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||0<o)return;if(0===o&&(a=(i=t).previousSibling&&"SPAN"===i.previousSibling.nodeName,u=i.nextSibling&&"SPAN"===i.nextSibling.nodeName,a&&u))return}else if(jo.isElement(t)&&(1===(r=t.childNodes).length&&Vo(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||To(ar.fromDom(t))))return;e.remove(t)}var i,a,u;return t}},qo={trimNode:Ho},$o=Xt.makeMap,Wo=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ko=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xo=/[<>&\"\']/g,Yo=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Go={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};ho={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},vo={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};var Jo=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),ho[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}};po=Jo("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var Qo=function(e,t){return e.replace(t?Wo:Ko,function(e){return ho[e]||e})},Zo=function(e,t){return e.replace(t?Wo:Ko,function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":ho[e]||"&#"+e.charCodeAt(0)+";"})},ei=function(e,t,n){return n=n||po,e.replace(t?Wo:Ko,function(e){return ho[e]||n[e]||e})},ti={encodeRaw:Qo,encodeAllRaw:function(e){return(""+e).replace(Xo,function(e){return ho[e]||e})},encodeNumeric:Zo,encodeNamed:ei,getEncodeFunc:function(e,t){var n=Jo(t)||po,r=$o(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?Wo:Ko,function(e){return ho[e]!==undefined?ho[e]:n[e]!==undefined?n[e]:1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"})}:r.named?t?function(e,t){return ei(e,t,n)}:ei:r.numeric?Zo:Qo},decode:function(e){return e.replace(Yo,function(e,t){return t?65535<(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):Go[t]||String.fromCharCode(t):vo[e]||po[e]||(n=e,(r=ar.fromTag("div").dom()).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},ni={},ri={},oi=Xt.makeMap,ii=Xt.each,ai=Xt.extend,ui=Xt.explode,si=Xt.inArray,ci=function(e,t){return(e=Xt.trim(e))?e.split(t||" "):[]},li=function(e){var u,t,n,r,o,i,s={},a=function(e,t,n){var r,o,i,a=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};for(t=t||"","string"==typeof(n=n||[])&&(n=ci(n)),r=(e=ci(e)).length;r--;)i={attributes:a(o=ci([u,t].join(" "))),attributesOrder:o,children:a(n,ri)},s[e[r]]=i},c=function(e,t){var n,r,o,i;for(n=(e=ci(e)).length,t=ci(t);n--;)for(r=s[e[n]],o=0,i=t.length;o<i;o++)r.attributes[t[o]]={},r.attributesOrder.push(t[o])};return ni[e]?ni[e]:(u="id accesskey class dir lang style tabindex title role",t="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",n="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(u+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",t+=" article aside details dialog figure main header footer hgroup section nav",n+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(u+=" xml:lang",n=[n,i="acronym applet basefont big font strike tt"].join(" "),ii(ci(i),function(e){a(e,"",n)}),t=[t,o="center dir isindex noframes"].join(" "),r=[t,n].join(" "),ii(ci(o),function(e){a(e,"",r)})),r=r||[t,n].join(" "),a("html","manifest","head body"),a("head","","base command link meta noscript script style title"),a("title hr noscript br"),a("base","href target"),a("link","href rel media hreflang type sizes hreflang"),a("meta","name http-equiv content charset"),a("style","media type scoped"),a("script","src async defer type charset"),a("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",r),a("address dt dd div caption","",r),a("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",n),a("blockquote","cite",r),a("ol","reversed start type","li"),a("ul","","li"),a("li","value",r),a("dl","","dt dd"),a("a","href target rel media hreflang type",n),a("q","cite",n),a("ins del","cite datetime",r),a("img","src sizes srcset alt usemap ismap width height"),a("iframe","src name width height",r),a("embed","src type width height"),a("object","data type typemustmatch name usemap form width height",[r,"param"].join(" ")),a("param","name value"),a("map","name",[r,"area"].join(" ")),a("area","alt coords shape href target rel media hreflang type"),a("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),a("colgroup","span","col"),a("col","span"),a("tbody thead tfoot","","tr"),a("tr","","td th"),a("td","colspan rowspan headers",r),a("th","colspan rowspan headers scope abbr",r),a("form","accept-charset action autocomplete enctype method name novalidate target",r),a("fieldset","disabled form name",[r,"legend"].join(" ")),a("label","form for",n),a("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),a("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?r:n),a("select","disabled form multiple name required size","option optgroup"),a("optgroup","disabled label","option"),a("option","disabled label selected value"),a("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),a("menu","type label",[r,"li"].join(" ")),a("noscript","",r),"html4"!==e&&(a("wbr"),a("ruby","",[n,"rt rp"].join(" ")),a("figcaption","",r),a("mark rt rp summary bdi","",n),a("canvas","width height",r),a("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[r,"track source"].join(" ")),a("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[r,"track source"].join(" ")),a("picture","","img source"),a("source","src srcset type media sizes"),a("track","kind src srclang label default"),a("datalist","",[n,"option"].join(" ")),a("article section nav aside main header footer","",r),a("hgroup","","h1 h2 h3 h4 h5 h6"),a("figure","",[r,"figcaption"].join(" ")),a("time","datetime",n),a("dialog","open",r),a("command","type label icon disabled checked radiogroup command"),a("output","for form name",n),a("progress","value max",n),a("meter","value min max low high optimum",n),a("details","open",[r,"summary"].join(" ")),a("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(c("script","language xml:space"),c("style","xml:space"),c("object","declare classid code codebase codetype archive standby align border hspace vspace"),c("embed","align name hspace vspace"),c("param","valuetype type"),c("a","charset name rev shape coords"),c("br","clear"),c("applet","codebase archive code object alt name width height align hspace vspace"),c("img","name longdesc align border hspace vspace"),c("iframe","longdesc frameborder marginwidth marginheight scrolling align"),c("font basefont","size color face"),c("input","usemap align"),c("select","onchange"),c("textarea"),c("h1 h2 h3 h4 h5 h6 div p legend caption","align"),c("ul","type compact"),c("li","type"),c("ol dl menu dir","compact"),c("pre","width xml:space"),c("hr","align noshade size width"),c("isindex","prompt"),c("table","summary width frame rules cellspacing cellpadding align bgcolor"),c("col","width align char charoff valign"),c("colgroup","width align char charoff valign"),c("thead","align char charoff valign"),c("tr","align char charoff valign bgcolor"),c("th","axis align char charoff valign nowrap bgcolor width height"),c("form","accept"),c("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),c("tfoot","align char charoff valign"),c("tbody","align char charoff valign"),c("area","nohref"),c("body","background bgcolor text link vlink alink")),"html4"!==e&&(c("input button select textarea","autofocus"),c("input textarea","placeholder"),c("a","download"),c("link script img","crossorigin"),c("iframe","sandbox seamless allowfullscreen")),ii(ci("a form meter progress dfn"),function(e){s[e]&&delete s[e].children[e]}),delete s.caption.children.table,delete s.script,ni[e]=s)},fi=function(e,n){var r;return e&&(r={},"string"==typeof e&&(e={"*":e}),ii(e,function(e,t){r[t]=r[t.toUpperCase()]="map"===n?oi(e,/[, ]/):ui(e,/[, ]/)})),r};function di(i){var e,t,n,r,o,a,u,s,c,l,f,d,m,N={},g={},E=[],p={},h={},v=function(e,t,n){var r=i[e];return r?r=oi(r,/[, ]/,oi(r.toUpperCase(),/[, ]/)):(r=ni[e])||(r=oi(t," ",oi(t.toUpperCase()," ")),r=ai(r,n),ni[e]=r),r};n=li((i=i||{}).schema),!1===i.verify_html&&(i.valid_elements="*[*]"),e=fi(i.valid_styles),t=fi(i.invalid_styles,"map"),s=fi(i.valid_classes,"map"),r=v("whitespace_elements","pre script noscript style textarea video audio iframe object code"),o=v("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),a=v("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),u=v("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),l=v("non_empty_elements","td th iframe video audio object script pre code",a),f=v("move_caret_before_on_enter_elements","table",l),d=v("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),c=v("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",d),m=v("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),ii((i.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),function(e){h[e]=new RegExp("</"+e+"[^>]*>","gi")});var S=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},y=function(e){var t,n,r,o,i,a,u,s,c,l,f,d,m,g,p,h,v,y,b,C=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,x=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,w=/[*?+]/;if(e)for(e=ci(e,","),N["@"]&&(h=N["@"].attributes,v=N["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(i=C.exec(e[t])){if(g=i[1],c=i[2],p=i[3],s=i[5],a={attributes:d={},attributesOrder:m=[]},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),h){for(y in h)d[y]=h[y];m.push.apply(m,v)}if(s)for(r=0,o=(s=ci(s,"|")).length;r<o;r++)if(i=x.exec(s[r])){if(u={},f=i[1],l=i[2].replace(/[\\:]:/g,":"),g=i[3],b=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(l),u.required=!0),"-"===f){delete d[l],m.splice(si(m,l),1);continue}g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:l,value:b}),u.defaultValue=b),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:l,value:b}),u.forcedValue=b),"<"===g&&(u.validValues=oi(b,"?"))),w.test(l)?(a.attributePatterns=a.attributePatterns||[],u.pattern=S(l),a.attributePatterns.push(u)):(d[l]||m.push(l),d[l]=u)}h||"@"!==c||(h=d,v=m),p&&(a.outputName=c,N[p]=a),w.test(c)?(a.pattern=S(c),E.push(a)):N[c]=a}},b=function(e){N={},E=[],y(e),ii(n,function(e,t){g[t]=e.children})},C=function(e){var a=/^(~)?(.+)$/;e&&(ni.text_block_elements=ni.block_elements=null,ii(ci(e,","),function(e){var t=a.exec(e),n="~"===t[1],r=n?"span":"div",o=t[2];if(g[o]=g[r],p[o]=r,n||(c[o.toUpperCase()]={},c[o]={}),!N[o]){var i=N[r];delete(i=ai({},i)).removeEmptyAttrs,delete i.removeEmpty,N[o]=i}ii(g,function(e,t){e[r]&&(g[t]=e=ai({},g[t]),e[o]=e[r])})}))},x=function(e){var o=/^([+\-]?)(\w+)\[([^\]]+)\]$/;ni[i.schema]=null,e&&ii(ci(e,","),function(e){var t,n,r=o.exec(e);r&&(n=r[1],t=n?g[r[2]]:g[r[2]]={"#comment":{}},t=g[r[2]],ii(ci(r[3],"|"),function(e){"-"===n?delete t[e]:t[e]={}}))})},w=function(e){var t,n=N[e];if(n)return n;for(t=E.length;t--;)if((n=E[t]).pattern.test(e))return n};return i.valid_elements?b(i.valid_elements):(ii(n,function(e,t){N[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},g[t]=e.children}),"html5"!==i.schema&&ii(ci("strong/b em/i"),function(e){e=ci(e,"/"),N[e[1]].outputName=e[0]}),ii(ci("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){N[e]&&(N[e].removeEmpty=!0)}),ii(ci("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){N[e].paddEmpty=!0}),ii(ci("span"),function(e){N[e].removeEmptyAttrs=!0})),C(i.custom_elements),x(i.valid_children),y(i.extended_valid_elements),x("+ol[ul|ol],+ul[ul|ol]"),ii({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(e,t){N[t]&&(N[t].parentsRequired=ci(e))}),i.invalid_elements&&ii(ui(i.invalid_elements),function(e){N[e]&&delete N[e]}),w("span")||y("span[!data-mce-type|*]"),{children:g,elements:N,getValidStyles:function(){return e},getValidClasses:function(){return s},getBlockElements:function(){return c},getInvalidStyles:function(){return t},getShortEndedElements:function(){return a},getTextBlockElements:function(){return d},getTextInlineElements:function(){return m},getBoolAttrs:function(){return u},getElementRule:w,getSelfClosingElements:function(){return o},getNonEmptyElements:function(){return l},getMoveCaretBeforeOnEnterElements:function(){return f},getWhiteSpaceElements:function(){return r},getSpecialElements:function(){return h},isValidChild:function(e,t){var n=g[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,o=w(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:function(){return p},addValidElements:y,setValidElements:b,addCustomElements:C,addValidChildren:x}}var mi=function(e,t,n,r){var o=function(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e};return"#"+o(t)+o(n)+o(r)};function gi(b,e){var C,t,c,l,x=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,w=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,N=/\s*([^:]+):\s*([^;]+);?/g,E=/\s+$/,S={},T="\ufeff";for(b=b||{},e&&(c=e.getValidStyles(),l=e.getInvalidStyles()),t=("\\\" \\' \\; \\: ; : "+T).split(" "),C=0;C<t.length;C++)S[t[C]]=T+C,S[T+C]=t[C];return{toHex:function(e){return e.replace(x,mi)},parse:function(e){var t,n,r,o,i,a,u,s,c={},l=b.url_converter,f=b.url_converter_scope||this,d=function(e,t,n){var r,o,i,a;if((r=c[e+"-top"+t])&&(o=c[e+"-right"+t])&&(i=c[e+"-bottom"+t])&&(a=c[e+"-left"+t])){var u=[r,o,i,a];for(C=u.length-1;C--&&u[C]===u[C+1];);-1<C&&n||(c[e+t]=-1===C?u[0]:u.join(" "),delete c[e+"-top"+t],delete c[e+"-right"+t],delete c[e+"-bottom"+t],delete c[e+"-left"+t])}},m=function(e){var t,n=c[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return!1;return c[e]=n[0],!0}},g=function(e){return o=!0,S[e]},p=function(e,t){return o&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return S[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},h=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},v=function(e){return e.replace(/\\[0-9a-f]+/gi,h)},y=function(e,t,n,r,o,i){if(o=o||i)return"'"+(o=p(o)).replace(/\'/g,"\\'")+"'";if(t=p(t||n||r),!b.allow_script_urls){var a=t.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(a))return"";if(!b.allow_svg_data_urls&&/^data:image\/svg/i.test(a))return""}return l&&(t=l.call(f,t,"style")),"url('"+t.replace(/\'/g,"\\'")+"')"};if(e){for(e=(e=e.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,g).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,g)});t=N.exec(e);)if(N.lastIndex=t.index+t[0].length,n=t[1].replace(E,"").toLowerCase(),r=t[2].replace(E,""),n&&r){if(n=v(n),r=v(r),-1!==n.indexOf(T)||-1!==n.indexOf('"'))continue;if(!b.allow_script_urls&&("behavior"===n||/expression\s*\(|\/\*|\*\//.test(r)))continue;"font-weight"===n&&"700"===r?r="bold":"color"!==n&&"background-color"!==n||(r=r.toLowerCase()),r=(r=r.replace(x,mi)).replace(w,y),c[n]=o?p(r,!0):r}d("border","",!0),d("border","-width"),d("border","-color"),d("border","-style"),d("padding",""),d("margin",""),i="border",u="border-style",s="border-color",m(a="border-width")&&m(u)&&m(s)&&(c[i]=c[a]+" "+c[u]+" "+c[s],delete c[a],delete c[u],delete c[s]),"medium none"===c.border&&delete c.border,"none"===c["border-image"]&&delete c["border-image"]}return c},serialize:function(i,e){var t,n,r,o,a,u="",s=function(e){var t,n,r,o;if(t=c[e])for(n=0,r=t.length;n<r;n++)e=t[n],(o=i[e])&&(u+=(0<u.length?" ":"")+e+": "+o+";")};if(e&&c)s("*"),s(e);else for(t in i)!(n=i[t])||l&&(r=t,o=e,a=void 0,(a=l["*"])&&a[r]||(a=l[o])&&a[r])||(u+=(0<u.length?" ":"")+t+": "+n+";");return u}}}var pi,hi=Xt.each,vi=Xt.grep,yi=fe.ie,bi=/^([a-z0-9],?)+$/i,Ci=/^[ \t\r\n]*$/,xi=function(n,r,o){var e={},i=r.keep_values,t={set:function(e,t,n){r.url_converter&&(t=r.url_converter.call(r.url_converter_scope||o(),t,n,e[0])),e.attr("data-mce-"+n,t).attr(n,t)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}};return e={style:{set:function(e,t){null===t||"object"!=typeof t?(i&&e.attr("data-mce-style",t),e.attr("style",t)):e.css(t)},get:function(e){var t=e.attr("data-mce-style")||e.attr("style");return t=n.serialize(n.parse(t),e[0].nodeName)}}},i&&(e.href=e.src=t),e},wi=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Ni=function(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o};function Ei(a,u){var s,c=this;void 0===u&&(u={});var r={},i=V.window,o={},t=0,e=function(m,g){void 0===g&&(g={});var p,h=0,v={};p=g.maxLoadTime||5e3;var y=function(e){m.getElementsByTagName("head")[0].appendChild(e)},n=function(e,t,n){var o,r,i,a,u=function(){for(var e=a.passed,t=e.length;t--;)e[t]();a.status=2,a.passed=[],a.failed=[]},s=function(){for(var e=a.failed,t=e.length;t--;)e[t]();a.status=3,a.passed=[],a.failed=[]},c=function(e,t){e()||((new Date).getTime()-i<p?he.setTimeout(t):s())},l=function(){c(function(){for(var e,t,n=m.styleSheets,r=n.length;r--;)if((t=(e=n[r]).ownerNode?e.ownerNode:e.owningElement)&&t.id===o.id)return u(),!0},l)},f=function(){c(function(){try{var e=r.sheet.cssRules;return u(),!!e}catch(t){}},f)};if(e=Xt._addCacheSuffix(e),v[e]?a=v[e]:(a={passed:[],failed:[]},v[e]=a),t&&a.passed.push(t),n&&a.failed.push(n),1!==a.status)if(2!==a.status)if(3!==a.status){if(a.status=1,(o=m.createElement("link")).rel="stylesheet",o.type="text/css",o.id="u"+h++,o.async=!1,o.defer=!1,i=(new Date).getTime(),g.contentCssCors&&(o.crossOrigin="anonymous"),"onload"in o&&!((d=V.navigator.userAgent.match(/WebKit\/(\d*)/))&&parseInt(d[1],10)<536))o.onload=l,o.onerror=s;else{if(0<V.navigator.userAgent.indexOf("Firefox"))return(r=m.createElement("style")).textContent='@import "'+e+'"',f(),void y(r);l()}var d;y(o),o.href=e}else s();else u()},t=function(t){return uo.nu(function(e){n(t,H(e,q(mo.value(t))),H(e,q(mo.error(t))))})},o=function(e){return e.fold($,$)};return{load:n,loadAll:function(e,n,r){co(W(e,t)).get(function(e){var t=K(e,function(e){return e.isValue()});0<t.fail.length?r(t.fail.map(o)):n(t.pass.map(o))})}}}(a,{contentCssCors:u.contentCssCors}),l=[],f=u.schema?u.schema:di({}),d=gi({url_converter:u.url_converter,url_converter_scope:u.url_converter_scope},u.schema),m=u.ownEvents?new Se(u.proxy):Se.Event,n=f.getBlockElements(),g=gn.overrideDefaults(function(){return{context:a,element:j.getRoot()}}),p=function(e){if(e&&a&&"string"==typeof e){var t=a.getElementById(e);return t&&t.id!==e?a.getElementsByName(e)[1]:t}return e},h=function(e){return"string"==typeof e&&(e=p(e)),g(e)},v=function(e,t,n){var r,o,i=h(e);return i.length&&(o=(r=s[t])&&r.get?r.get(i,t):i.attr(t)),void 0===o&&(o=n||""),o},y=function(e){var t=p(e);return t?t.attributes:[]},b=function(e,t,n){var r,o;""===n&&(n=null);var i=h(e);r=i.attr(t),i.length&&((o=s[t])&&o.set?o.set(i,n,t):i.attr(t,n),r!==n&&u.onSetAttrib&&u.onSetAttrib({attrElm:i,attrName:t,attrValue:n}))},C=function(){return u.root_element||a.body},x=function(e,t){return Zr.getPos(a.body,p(e),t)},w=function(e,t,n){var r=h(e);return n?r.css(t):("float"===(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}))&&(t=fe.ie&&fe.ie<12?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:undefined)},N=function(e){var t,n;return e=p(e),t=w(e,"width"),n=w(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},E=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(bi.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;0<=n;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return 0<St(t,i[0].ownerDocument||i[0],null,i).length},S=function(e,t,n,r){var o,i=[],a=p(e);for(r=r===undefined,n=n||("BODY"!==C().nodeName?C().parentNode:null),Xt.is(t,"string")&&(t="*"===(o=t)?function(e){return 1===e.nodeType}:function(e){return E(e,o)});a&&a!==n&&a.nodeType&&9!==a.nodeType;){if(!t||"function"==typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},T=function(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return E(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null},k=function(e,n,r){var o,t="string"==typeof e?p(e):e;if(!t)return!1;if(Xt.isArray(t)&&(t.length||0===t.length))return o=[],hi(t,function(e,t){e&&("string"==typeof e&&(e=p(e)),o.push(n.call(r,e,t)))}),o;var i=r||c;return n.call(i,t)},_=function(e,t){h(e).each(function(e,n){hi(t,function(e,t){b(n,t,e)})})},A=function(e,r){var t=h(e);yi?t.each(function(e,t){if(!1!==t.canHaveHTML){for(;t.firstChild;)t.removeChild(t.firstChild);try{t.innerHTML="<br>"+r,t.removeChild(t.firstChild)}catch(n){gn("<div></div>").html("<br>"+r).contents().slice(1).appendTo(t)}return r}}):t.html(r)},R=function(e,n,r,o,i){return k(e,function(e){var t="string"==typeof n?a.createElement(n):n;return _(t,r),o&&("string"!=typeof o&&o.nodeType?t.appendChild(o):"string"==typeof o&&A(t,o)),i?t:e.appendChild(t)})},D=function(e,t,n){return R(a.createElement(e),e,t,n,!0)},O=ti.decode,B=ti.encodeAllRaw,P=function(e,t){var n=h(e);return t?n.each(function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}).remove():n.remove(),1<n.length?n.toArray():n[0]},I=function(e,t,n){h(e).toggleClass(t,n).each(function(){""===this.className&&gn(this).attr("class",null)})},L=function(t,e,n){return k(e,function(e){return Xt.is(e,"array")&&(t=t.cloneNode(!0)),n&&hi(vi(e.childNodes),function(e){t.appendChild(e)}),e.parentNode.replaceChild(t,e)})},F=function(){return a.createRange()},M=function(e,t,n,r){if(Xt.isArray(e)){for(var o=e.length;o--;)e[o]=M(e[o],t,n,r);return e}return!u.collect||e!==a&&e!==i||l.push([e,t,n,r]),m.bind(e,t,n,r||j)},z=function(e,t,n){var r;if(Xt.isArray(e)){for(r=e.length;r--;)e[r]=z(e[r],t,n);return e}if(l&&(e===a||e===i))for(r=l.length;r--;){var o=l[r];e!==o[0]||t&&t!==o[1]||n&&n!==o[2]||m.unbind(o[0],o[1],o[2])}return m.unbind(e,t,n)},U=function(e){if(e&&jo.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},j={doc:a,settings:u,win:i,files:o,stdMode:!0,boxModel:!0,styleSheetLoader:e,boundEvents:l,styles:d,schema:f,events:m,isBlock:function(e){if("string"==typeof e)return!!n[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!n[e.nodeName])}return!1},$:g,$$:h,root:null,clone:function(t,e){if(!yi||1!==t.nodeType||e)return t.cloneNode(e);if(!e){var n=a.createElement(t.nodeName);return hi(y(t),function(e){b(n,e.nodeName,v(t,e.nodeName))}),n}return null},getRoot:C,getViewPort:function(e){var t=e||i,n=t.document.documentElement;return{x:t.pageXOffset||n.scrollLeft,y:t.pageYOffset||n.scrollTop,w:t.innerWidth||n.clientWidth,h:t.innerHeight||n.clientHeight}},getRect:function(e){var t,n;return e=p(e),t=x(e),n=N(e),{x:t.x,y:t.y,w:n.w,h:n.h}},getSize:N,getParent:function(e,t,n){var r=S(e,t,n,!1);return r&&0<r.length?r[0]:null},getParents:S,get:p,getNext:function(e,t){return T(e,t,"nextSibling")},getPrev:function(e,t){return T(e,t,"previousSibling")},select:function(e,t){return St(e,p(t)||u.root_element||a,[])},is:E,add:R,create:D,createHTML:function(e,t,n){var r,o="";for(r in o+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!=typeof t[r]&&(o+=" "+r+'="'+B(t[r])+'"');return void 0!==n?o+">"+n+"</"+e+">":o+" />"},createFragment:function(e){var t,n=a.createElement("div"),r=a.createDocumentFragment();for(r.appendChild(n),e&&(n.innerHTML=e);t=n.firstChild;)r.appendChild(t);return r.removeChild(n),r},remove:P,setStyle:function(e,t,n){var r=h(e).css(t,n);u.update_styles&&wi(d,r)},getStyle:w,setStyles:function(e,t){var n=h(e).css(t);u.update_styles&&wi(d,n)},removeAllAttribs:function(e){return k(e,function(e){var t,n=e.attributes;for(t=n.length-1;0<=t;t--)e.removeAttributeNode(n.item(t))})},setAttrib:b,setAttribs:_,getAttrib:v,getPos:x,parseStyle:function(e){return d.parse(e)},serializeStyle:function(e,t){return d.serialize(e,t)},addStyle:function(e){var t,n;if(j!==Ei.DOM&&a===V.document){if(r[e])return;r[e]=!0}(n=a.getElementById("mceDefaultStyles"))||((n=a.createElement("style")).id="mceDefaultStyles",n.type="text/css",(t=a.getElementsByTagName("head")[0]).firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(a.createTextNode(e))},loadCSS:function(e){var n;j===Ei.DOM||a!==V.document?(e||(e=""),n=a.getElementsByTagName("head")[0],hi(e.split(","),function(e){var t;e=Xt._addCacheSuffix(e),o[e]||(o[e]=!0,t=D("link",{rel:"stylesheet",href:e}),n.appendChild(t))})):Ei.DOM.loadCSS(e)},addClass:function(e,t){h(e).addClass(t)},removeClass:function(e,t){I(e,t,!1)},hasClass:function(e,t){return h(e).hasClass(t)},toggleClass:I,show:function(e){h(e).show()},hide:function(e){h(e).hide()},isHidden:function(e){return"none"===h(e).css("display")},uniqueId:function(e){return(e||"mce_")+t++},setHTML:A,getOuterHTML:function(e){var t="string"==typeof e?p(e):e;return jo.isElement(t)?t.outerHTML:gn("<div></div>").append(gn(t).clone()).html()},setOuterHTML:function(e,t){h(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}P(gn(this).html(t),!0)})},decode:O,encode:B,insertAfter:function(e,t){var r=p(t);return k(e,function(e){var t,n;return t=r.parentNode,(n=r.nextSibling)?t.insertBefore(e,n):t.appendChild(e),e})},replace:L,rename:function(t,e){var n;return t.nodeName!==e.toUpperCase()&&(n=D(e),hi(y(t),function(e){b(n,e.nodeName,v(t,e.nodeName))}),L(n,t,!0)),n||t},findCommonAncestor:function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},toHex:function(e){return d.toHex(Xt.trim(e))},run:k,getAttribs:y,isEmpty:function(e,t){var n,r,o,i,a,u,s=0;if(e=e.firstChild){a=new go(e,e.parentNode),t=t||(f?f.getNonEmptyElements():null),i=f?f.getWhiteSpaceElements():{};do{if(o=e.nodeType,jo.isElement(e)){var c=e.getAttribute("data-mce-bogus");if(c){e=a.next("all"===c);continue}if(u=e.nodeName.toLowerCase(),t&&t[u]){if("br"===u){s++,e=a.next();continue}return!1}for(n=(r=y(e)).length;n--;)if("name"===(u=r[n].nodeName)||"data-mce-bookmark"===u)return!1}if(8===o)return!1;if(3===o&&!Ci.test(e.nodeValue))return!1;if(3===o&&e.parentNode&&i[e.parentNode.nodeName]&&Ci.test(e.nodeValue))return!1;e=a.next()}while(e)}return s<=1},createRng:F,nodeIndex:Ni,split:function(e,t,n){var r,o,i,a=F();if(e&&t)return a.setStart(e.parentNode,Ni(e)),a.setEnd(t.parentNode,Ni(t)),r=a.extractContents(),(a=F()).setStart(t.parentNode,Ni(t)+1),a.setEnd(e.parentNode,Ni(e)+1),o=a.extractContents(),(i=e.parentNode).insertBefore(qo.trimNode(j,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(qo.trimNode(j,o),e),P(e),n||t},bind:M,unbind:z,fire:function(e,t,n){return m.fire(e,t,n)},getContentEditable:U,getContentEditableParent:function(e){for(var t=C(),n=null;e&&e!==t&&null===(n=U(e));e=e.parentNode);return n},destroy:function(){if(l)for(var e=l.length;e--;){var t=l[e];m.unbind(t[0],t[1],t[2])}St.setDocument&&St.setDocument()},isChildOf:function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}};return s=xi(d,u,function(){return j}),j}(pi=Ei||(Ei={})).DOM=pi(V.document),pi.nodeIndex=Ni;var Si=Ei,Ti=Si.DOM,ki=Xt.each,_i=Xt.grep,Ai=function(e){return"function"==typeof e},Ri=function(){var l={},o=[],i={},a=[],f=0;this.isDone=function(e){return 2===l[e]},this.markDone=function(e){l[e]=2},this.add=this.load=function(e,t,n,r){l[e]===undefined&&(o.push(e),l[e]=0),t&&(i[e]||(i[e]=[]),i[e].push({success:t,failure:r,scope:n||this}))},this.remove=function(e){delete l[e],delete i[e]},this.loadQueue=function(e,t,n){this.loadScripts(o,e,t,n)},this.loadScripts=function(n,e,t,r){var u,s=[],c=function(t,e){ki(i[e],function(e){Ai(e[t])&&e[t].call(e.scope)}),i[e]=undefined};a.push({success:e,failure:r,scope:t||this}),(u=function(){var e=_i(n);if(n.length=0,ki(e,function(e){var t,n,r,o,i,a;2!==l[e]?3!==l[e]?1!==l[e]&&(l[e]=1,f++,t=e,n=function(){l[e]=2,f--,c("success",e),u()},r=function(){l[e]=3,f--,s.push(e),c("failure",e),u()},i=(a=Ti).uniqueId(),(o=V.document.createElement("script")).id=i,o.type="text/javascript",o.src=Xt._addCacheSuffix(t),o.onload=function(){a.remove(i),o&&(o.onreadystatechange=o.onload=o=null),n()},o.onerror=function(){Ai(r)?r():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+t)},(V.document.getElementsByTagName("head")[0]||V.document.body).appendChild(o)):c("failure",e):c("success",e)}),!f){var t=a.slice(0);a.length=0,ki(t,function(e){0===s.length?Ai(e.success)&&e.success.call(e.scope):Ai(e.failure)&&e.failure.call(e.scope,s)})}})()}};Ri.ScriptLoader=new Ri;var Di,Oi=Xt.each;function Bi(){var r=this,o=[],a={},u={},i=[],s=function(e){var t;return u[e]&&(t=u[e].dependencies),t||[]},c=function(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},l=function(e,n,t,r){var o=s(e);Oi(o,function(e){var t=c(n,e);f(t.resource,t,undefined,undefined)}),t&&(r?t.call(r):t.call(Ri))},f=function(e,t,n,r,o){if(!a[e]){var i="string"==typeof t?t:t.prefix+t.resource+t.suffix;0!==i.indexOf("/")&&-1===i.indexOf("://")&&(i=Bi.baseURL+"/"+i),a[e]=i.substring(0,i.lastIndexOf("/")),u[e]?l(e,t,n,r):Ri.ScriptLoader.add(i,function(){return l(e,t,n,r)},r,o)}};return{items:o,urls:a,lookup:u,_listeners:i,get:function(e){return u[e]?u[e].instance:undefined},dependencies:s,requireLangPack:function(e,t){var n=Bi.language;if(n&&!1!==Bi.languageLoad){if(t)if(-1!==(t=","+t+",").indexOf(","+n.substr(0,2)+","))n=n.substr(0,2);else if(-1===t.indexOf(","+n+","))return;Ri.ScriptLoader.add(a[e]+"/langs/"+n+".js")}},add:function(t,e,n){o.push(e),u[t]={instance:e,dependencies:n};var r=K(i,function(e){return e.name===t});return i=r.fail,Oi(r.pass,function(e){e.callback()}),e},remove:function(e){delete a[e],delete u[e]},createUrl:c,addComponents:function(e,t){var n=r.urls[e];Oi(t,function(e){Ri.ScriptLoader.add(n+"/"+e)})},load:f,waitFor:function(e,t){u.hasOwnProperty(e)?t():i.push({name:e,callback:t})}}}(Di=Bi||(Bi={})).PluginManager=Di(),Di.ThemeManager=Di();var Pi=function(t,n){Vr(t).each(function(e){e.dom().insertBefore(n.dom(),t.dom())})},Ii=function(e,t){qr(e).fold(function(){Vr(e).each(function(e){Fi(e,t)})},function(e){Pi(e,t)})},Li=function(t,n){Yr(t).fold(function(){Fi(t,n)},function(e){t.dom().insertBefore(n.dom(),e.dom())})},Fi=function(e,t){e.dom().appendChild(t.dom())},Mi=function(t,e){z(e,function(e){Fi(t,e)})},zi=function(e){e.dom().textContent="",z(Kr(e),function(e){Ui(e)})},Ui=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},ji=function(e){var t,n=Kr(e);0<n.length&&(t=e,z(n,function(e){Pi(t,e)})),Ui(e)},Vi=function(n,r){var o=null;return{cancel:function(){null!==o&&(V.clearTimeout(o),o=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null===o&&(o=V.setTimeout(function(){n.apply(null,e),o=null},r))}}},Hi=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return Hi(n())}}},qi=function(e,t){var n=Er(e,t);return n===undefined||""===n?[]:n.split(" ")},$i=function(e){return e.dom().classList!==undefined},Wi=function(e,t){return o=t,i=qi(n=e,r="class").concat([o]),wr(n,r,i.join(" ")),!0;var n,r,o,i},Ki=function(e,t){return o=t,0<(i=U(qi(n=e,r="class"),function(e){return e!==o})).length?wr(n,r,i.join(" ")):Sr(n,r),!1;var n,r,o,i},Xi=function(e,t){$i(e)?e.dom().classList.add(t):Wi(e,t)},Yi=function(e){0===($i(e)?e.dom().classList:qi(e,"class")).length&&Sr(e,"class")},Gi=function(e,t){return $i(e)&&e.dom().classList.contains(t)},Ji=function(e,t){var n=[];return z(Kr(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(Ji(e,t))}),n},Qi=function(e,t){return n=t,o=(r=e)===undefined?V.document:r.dom(),Fr(o)?[]:W(o.querySelectorAll(n),ar.fromDom);var n,r,o};function Zi(e,t,n,r,o){return e(n,r)?_.some(n):D(o)&&o(n)?_.none():t(n,r,o)}var ea,ta=function(e,t,n){for(var r=e.dom(),o=D(n)?n:q(!1);r.parentNode;){r=r.parentNode;var i=ar.fromDom(r);if(t(i))return _.some(i);if(o(i))break}return _.none()},na=function(e,t,n){return Zi(function(e,t){return t(e)},ta,e,t,n)},ra=function(e,t,n){return ta(e,function(e){return Lr(e,t)},n)},oa=function(e,t){return n=t,o=(r=e)===undefined?V.document:r.dom(),Fr(o)?_.none():_.from(o.querySelector(n)).map(ar.fromDom);var n,r,o},ia=function(e,t,n){return Zi(Lr,ra,e,t,n)},aa=q("mce-annotation"),ua=q("data-mce-annotation"),sa=q("data-mce-annotation-uid"),ca=function(r,e){var t=r.selection.getRng(),n=ar.fromDom(t.startContainer),o=ar.fromDom(r.getBody()),i=e.fold(function(){return"."+aa()},function(e){return"["+ua()+'="'+e+'"]'}),a=Xr(n,t.startOffset).getOr(n),u=ia(a,i,function(e){return Mr(e,o)}),s=function(e,t){return n=t,(r=e.dom())&&r.hasAttribute&&r.hasAttribute(n)?_.some(Er(e,t)):_.none();var n,r};return u.bind(function(e){return s(e,""+sa()).bind(function(n){return s(e,""+ua()).map(function(e){var t=la(r,n);return{uid:n,name:e,elements:t}})})})},la=function(e,t){var n=ar.fromDom(e.getBody());return Qi(n,"["+sa()+'="'+t+'"]')},fa=function(i,e){var n,r,o,a=Hi({}),c=function(e,t){u(e,function(e){return t(e),e})},u=function(e,t){var n=a.get(),r=t(n.hasOwnProperty(e)?n[e]:{listeners:[],previous:Hi(_.none())});n[e]=r,a.set(n)},t=(n=function(){var e,t,n,r=a.get(),o=(e=gr(r),(n=B.call(e,0)).sort(t),n);z(o,function(e){u(e,function(u){var s=u.previous.get();return ca(i,_.some(e)).fold(function(){var t;s.isSome()&&(c(t=e,function(e){z(e.listeners,function(e){return e(!1,t)})}),u.previous.set(_.none()))},function(e){var t,n,r,o=e.uid,i=e.name,a=e.elements;s.is(o)||(n=o,r=a,c(t=i,function(e){z(e.listeners,function(e){return e(!0,t,{uid:n,nodes:W(r,function(e){return e.dom()})})})}),u.previous.set(_.some(o)))}),{previous:u.previous,listeners:u.listeners}})})},r=30,o=null,{cancel:function(){null!==o&&(V.clearTimeout(o),o=null)},throttle:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null!==o&&V.clearTimeout(o),o=V.setTimeout(function(){n.apply(null,e),o=null},r)}});return i.on("remove",function(){t.cancel()}),i.on("nodeChange",function(){t.throttle()}),{addListener:function(e,t){u(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})}}},da=function(e,n){e.on("init",function(){e.serializer.addNodeFilter("span",function(e){z(e,function(t){var e;(e=t,_.from(e.attributes.map[ua()]).bind(n.lookup)).each(function(e){!1===e.persistent&&t.unwrap()})})})})},ma=function(){return(ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ga=0,pa=function(e,t){return ar.fromDom(e.dom().cloneNode(t))},ha=function(e){return pa(e,!1)},va=function(e){return pa(e,!0)},ya=function(e,t){var n,r,o=Ur(e).dom(),i=ar.fromDom(o.createDocumentFragment()),a=(n=t,(r=(o||V.document).createElement("div")).innerHTML=n,Kr(ar.fromDom(r)));Mi(i,a),zi(e),Fi(e,i)},ba="\ufeff",Ca=function(e){return e===ba},xa=ba,wa=function(e){return e.replace(new RegExp(ba,"g"),"")},Na=jo.isElement,Ea=jo.isText,Sa=function(e){return Ea(e)&&(e=e.parentNode),Na(e)&&e.hasAttribute("data-mce-caret")},Ta=function(e){return Ea(e)&&Ca(e.data)},ka=function(e){return Sa(e)||Ta(e)},_a=function(e){return e.firstChild!==e.lastChild||!jo.isBr(e.firstChild)},Aa=function(e){var t=e.container();return!(!e||!jo.isText(t))&&(t.data.charAt(e.offset())===xa||e.isAtStart()&&Ta(t.previousSibling))},Ra=function(e){var t=e.container();return!(!e||!jo.isText(t))&&(t.data.charAt(e.offset()-1)===xa||e.isAtEnd()&&Ta(t.nextSibling))},Da=function(e,t,n){var r,o,i;return(r=t.ownerDocument.createElement(e)).setAttribute("data-mce-caret",n?"before":"after"),r.setAttribute("data-mce-bogus","all"),r.appendChild(((i=V.document.createElement("br")).setAttribute("data-mce-bogus","1"),i)),o=t.parentNode,n?o.insertBefore(r,t):t.nextSibling?o.insertBefore(r,t.nextSibling):o.appendChild(r),r},Oa=function(e){return Ea(e)&&e.data[0]===xa},Ba=function(e){return Ea(e)&&e.data[e.data.length-1]===xa},Pa=function(e){return e&&e.hasAttribute("data-mce-caret")?(t=e.getElementsByTagName("br"),n=t[t.length-1],jo.isBogus(n)&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n},Ia=jo.isContentEditableTrue,La=jo.isContentEditableFalse,Fa=jo.isBr,Ma=jo.isText,za=jo.matchNodeNames("script style textarea"),Ua=jo.matchNodeNames("img input textarea hr iframe video audio object"),ja=jo.matchNodeNames("table"),Va=ka,Ha=function(e){return!Va(e)&&(Ma(e)?!za(e.parentNode):Ua(e)||Fa(e)||ja(e)||qa(e))},qa=function(e){return!1===(t=e,jo.isElement(t)&&"true"===t.getAttribute("unselectable"))&&La(e);var t},$a=function(e,t){return Ha(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(qa(e))return!1;if(Ia(e))return!0}return!0}(e,t)},Wa=Math.round,Ka=function(e){return e?{left:Wa(e.left),top:Wa(e.top),bottom:Wa(e.bottom),right:Wa(e.right),width:Wa(e.width),height:Wa(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Xa=function(e,t){return e=Ka(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Ya=function(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2},Ga=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&Ya(t.top-e.bottom,e,t)},Ja=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&Ya(t.bottom-e.top,e,t)},Qa=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Za=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},eu=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},tu=new RegExp("[\u0300-\u036f\u0483-\u0487\u0488-\u0489\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962-\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2-\u09e3\u0a01-\u0a02\u0a3c\u0a41-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a70-\u0a71\u0a75\u0a81-\u0a82\u0abc\u0ac1-\u0ac5\u0ac7-\u0ac8\u0acd\u0ae2-\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62-\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c62-\u0c63\u0c81\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc-\u0ccd\u0cd5-\u0cd6\u0ce2-\u0ce3\u0d01\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62-\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039-\u103a\u103d-\u103e\u1058-\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17b4-\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193b\u1a17-\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1abe\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80-\u1b81\u1ba2-\u1ba5\u1ba8-\u1ba9\u1bab-\u1bad\u1be6\u1be8-\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8-\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u200c-\u200d\u20d0-\u20dc\u20dd-\u20e0\u20e1\u20e2-\u20e4\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u302e-\u302f\u3099-\u309a\ua66f\ua670-\ua672\ua674-\ua67d\ua69e-\ua69f\ua6f0-\ua6f1\ua802\ua806\ua80b\ua825-\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31-\uaa32\uaa35-\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7-\uaab8\uaabe-\uaabf\uaac1\uaaec-\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\uff9e-\uff9f]"),nu=function(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&tu.test(e)},ru=function(e,t,n){return e.isSome()&&t.isSome()?_.some(n(e.getOrDie(),t.getOrDie())):_.none()},ou=[].slice,iu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ou.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},au=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ou.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},uu=jo.isElement,su=Ha,cu=jo.matchStyleValues("display","block table"),lu=jo.matchStyleValues("float","left right"),fu=iu(uu,su,y(lu)),du=y(jo.matchStyleValues("white-space","pre pre-line pre-wrap")),mu=jo.isText,gu=jo.isBr,pu=Si.nodeIndex,hu=eu,vu=function(e){return"createRange"in e?e.createRange():Si.DOM.createRng()},yu=function(e){return e&&/[\r\n\t ]/.test(e)},bu=function(e){return!!e.setStart&&!!e.setEnd},Cu=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(yu(e.toString())&&du(n.parentNode)&&jo.isText(n)&&(t=n.data,yu(t[r-1])||yu(t[r+1])))},xu=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},wu=function(e){var t,n,r,o,i,a,u,s;return t=0<(n=e.getClientRects()).length?Ka(n[0]):Ka(e.getBoundingClientRect()),!bu(e)&&gu(e)&&xu(t)?(i=(r=e).ownerDocument,a=vu(i),u=i.createTextNode("\xa0"),(s=r.parentNode).insertBefore(u,r),a.setStart(u,0),a.setEnd(u,1),o=Ka(a.getBoundingClientRect()),s.removeChild(u),o):xu(t)&&bu(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&jo.isText(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),wu(i)}return null}(e):t},Nu=function(e,t){var n=Xa(e,t);return n.width=1,n.right=n.left+1,n},Eu=function(e){var t,n,r=[],o=function(e){var t,n;0!==e.height&&(0<r.length&&(t=e,n=r[r.length-1],t.left===n.left&&t.top===n.top&&t.bottom===n.bottom&&t.right===n.right)||r.push(e))},i=function(e,t){var n=vu(e.ownerDocument);if(t<e.data.length){if(nu(e.data[t]))return r;if(nu(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!Cu(n)))return o(Nu(wu(n),!1)),r}0<t&&(n.setStart(e,t-1),n.setEnd(e,t),Cu(n)||o(Nu(wu(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),Cu(n)||o(Nu(wu(n),!0)))};if(mu(e.container()))return i(e.container(),e.offset()),r;if(uu(e.container()))if(e.isAtEnd())n=hu(e.container(),e.offset()),mu(n)&&i(n,n.data.length),fu(n)&&!gu(n)&&o(Nu(wu(n),!1));else{if(n=hu(e.container(),e.offset()),mu(n)&&i(n,0),fu(n)&&e.isAtEnd())return o(Nu(wu(n),!1)),r;t=hu(e.container(),e.offset()-1),fu(t)&&!gu(t)&&(cu(t)||cu(n)||!fu(n))&&o(Nu(wu(t),!1)),fu(n)&&o(Nu(wu(n),!0))}return r};function Su(t,n,e){var r=function(){return e||(e=Eu(Su(t,n))),e};return{container:q(t),offset:q(n),toRange:function(){var e;return(e=vu(t.ownerDocument)).setStart(t,n),e.setEnd(t,n),e},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return mu(t),0===n},isAtEnd:function(){return mu(t)?n>=t.data.length:n>=t.childNodes.length},isEqual:function(e){return e&&t===e.container()&&n===e.offset()},getNode:function(e){return hu(t,e?n-1:n)}}}(ea=Su||(Su={})).fromRangeStart=function(e){return ea(e.startContainer,e.startOffset)},ea.fromRangeEnd=function(e){return ea(e.endContainer,e.endOffset)},ea.after=function(e){return ea(e.parentNode,pu(e)+1)},ea.before=function(e){return ea(e.parentNode,pu(e))},ea.isAbove=function(e,t){return ru(Z(t.getClientRects()),ee(e.getClientRects()),Ga).getOr(!1)},ea.isBelow=function(e,t){return ru(ee(t.getClientRects()),Z(e.getClientRects()),Ja).getOr(!1)},ea.isAtStart=function(e){return!!e&&e.isAtStart()},ea.isAtEnd=function(e){return!!e&&e.isAtEnd()},ea.isTextPosition=function(e){return!!e&&jo.isText(e.container())},ea.isElementPosition=function(e){return!1===ea.isTextPosition(e)};var Tu,ku,_u=Su,Au=jo.isText,Ru=jo.isBogus,Du=Si.nodeIndex,Ou=function(e){var t=e.parentNode;return Ru(t)?Ou(t):t},Bu=function(e){return e?Ht.reduce(e.childNodes,function(e,t){return Ru(t)&&"BR"!==t.nodeName?e=e.concat(Bu(t)):e.push(t),e},[]):[]},Pu=function(t){return function(e){return t===e}},Iu=function(e){var t,r,n,o;return(Au(e)?"text()":e.nodeName.toLowerCase())+"["+(r=Bu(Ou(t=e)),n=Ht.findIndex(r,Pu(t),t),r=r.slice(0,n+1),o=Ht.reduce(r,function(e,t,n){return Au(t)&&Au(r[n-1])&&e++,e},0),r=Ht.filter(r,jo.matchNodeNames(t.nodeName)),(n=Ht.findIndex(r,Pu(t),t))-o)+"]"},Lu=function(e,t){var n,r,o,i,a,u=[];return n=t.container(),r=t.offset(),Au(n)?o=function(e,t){for(;(e=e.previousSibling)&&Au(e);)t+=e.data.length;return t}(n,r):(r>=(i=n.childNodes).length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(Iu(n)),a=function(e,t,n){var r=[];for(t=t.parentNode;!(t===e||n&&n(t));t=t.parentNode)r.push(t);return r}(e,n),a=Ht.filter(a,y(jo.isBogus)),(u=u.concat(Ht.map(a,function(e){return Iu(e)}))).reverse().join("/")+","+o},Fu=function(e,t){var n,r,o;return t?(t=(n=t.split(","))[0].split("/"),o=1<n.length?n[1]:"before",(r=Ht.reduce(t,function(e,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),n=e,r=t[1],o=parseInt(t[2],10),i=Bu(n),i=Ht.filter(i,function(e,t){return!Au(e)||!Au(i[t-1])}),(i=Ht.filter(i,jo.matchNodeNames(r)))[o]):null;var n,r,o,i},e))?Au(r)?function(e,t){for(var n,r=e,o=0;Au(r);){if(n=r.data.length,o<=t&&t<=o+n){e=r,t-=o;break}if(!Au(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return Au(e)&&t>e.data.length&&(t=e.data.length),_u(e,t)}(r,parseInt(o,10)):(o="after"===o?Du(r)+1:Du(r),_u(r.parentNode,o)):null):null},Mu=function(e,t){jo.isText(t)&&0===t.data.length&&e.remove(t)},zu=function(e,t,n){var r,o,i,a,u,s,c;jo.isDocumentFragment(n)?(i=e,a=t,u=n,s=_.from(u.firstChild),c=_.from(u.lastChild),a.insertNode(u),s.each(function(e){return Mu(i,e.previousSibling)}),c.each(function(e){return Mu(i,e.nextSibling)})):(r=e,o=n,t.insertNode(o),Mu(r,o.previousSibling),Mu(r,o.nextSibling))},Uu=jo.isContentEditableFalse,ju=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],s=[],c=0,l=e.getRoot();for(jo.isText(a)?s.push(n?function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&jo.isText(r);r=r.previousSibling)o+=e(r.data).length;return o}(t,a,u):u):(u>=(i=a.childNodes).length&&i.length&&(c=1,u=Math.max(0,i.length-1)),s.push(e.nodeIndex(i[u],n)+c));a&&a!==l;a=a.parentNode)s.push(e.nodeIndex(a,n));return s},Vu=function(e,t,n){var r=0;return Xt.each(e.select(t),function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++}),r},Hu=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],jo.isElement(n)&&"TR"===n.nodeName&&(n=(o=n.childNodes)[Math.min(t?r:r-1,o.length-1)])&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r))},qu=function(e){return Hu(e,!0),Hu(e,!1),e},$u=function(e,t){var n;if(jo.isElement(e)&&(e=eu(e,t),Uu(e)))return e;if(ka(e)){if(jo.isText(e)&&Sa(e)&&(e=e.parentNode),n=e.previousSibling,Uu(n))return n;if(n=e.nextSibling,Uu(n))return n}},Wu=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Uu(r)||"IMG"===o)return{name:o,index:Vu(n.dom,o,r)};var a,u,s,c,l,f,d,m=$u((a=i).startContainer,a.startOffset)||$u(a.endContainer,a.endOffset);return m?{name:o=m.tagName,index:Vu(n.dom,o,m)}:(u=e,c=t,l=i,f=(s=n).dom,(d={}).start=ju(f,u,c,l,!0),s.isCollapsed()||(d.end=ju(f,u,c,l,!1)),d)},Ku=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},Xu=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:Vu(n,u,a)};var s=qu(r.cloneRange());if(!i){s.collapse(!1);var c=Ku(n,o+"_end",t);zu(n,s,c)}(r=qu(r)).collapse(!0);var l=Ku(n,o+"_start",t);return zu(n,r,l),e.moveToBookmark({id:o,keep:1}),{id:o}},Yu={getBookmark:function(e,t,n){return 2===t?Wu(wa,n,e):3===t?(o=(r=e).getRng(),{start:Lu(r.dom.getRoot(),_u.fromRangeStart(o)),end:Lu(r.dom.getRoot(),_u.fromRangeEnd(o))}):t?{rng:e.getRng()}:Xu(e,!1);var r,o},getUndoBookmark:d(Wu,$,!0),getPersistentBookmark:Xu},Gu="_mce_caret",Ju=function(e){return jo.isElement(e)&&e.id===Gu},Qu=function(e,t){for(;t&&t!==e;){if(t.id===Gu)return t;t=t.parentNode}return null},Zu=jo.isElement,es=jo.isText,ts=function(e){var t=e.parentNode;t&&t.removeChild(e)},ns=function(e,t){0===t.length?ts(e):e.nodeValue=t},rs=function(e){var t=wa(e);return{count:e.length-t.length,text:t}},os=function(e,t){return us(e),t},is=function(e,t){var n,r,o,i=t.container(),a=(n=te(i.childNodes),r=e,o=L(n,r),-1===o?_.none():_.some(o)).map(function(e){return e<t.offset()?_u(i,t.offset()-1):t}).getOr(t);return us(e),a},as=function(e,t){return es(e)&&t.container()===e?(r=t,o=rs((n=e).data.substr(0,r.offset())),i=rs(n.data.substr(r.offset())),0<(a=o.text+i.text).length?(ns(n,a),_u(n,r.offset()-o.count)):r):os(e,t);var n,r,o,i,a},us=function(e){if(Zu(e)&&ka(e)&&(_a(e)?e.removeAttribute("data-mce-caret"):ts(e)),es(e)){var t=wa(function(e){try{return e.nodeValue}catch(t){return""}}(e));ns(e,t)}},ss={removeAndReposition:function(e,t){return _u.isTextPosition(t)?as(e,t):(n=e,(r=t).container()===n.parentNode?is(n,r):os(n,r));var n,r},remove:us},cs=or.detect().browser,ls=jo.isContentEditableFalse,fs=function(e,t,n){var r,o,i,a,u,s=Xa(t.getBoundingClientRect(),n);return"BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,i=e.scrollTop||r.scrollTop):(u=e.getBoundingClientRect(),o=e.scrollLeft-u.left,i=e.scrollTop-u.top),s.left+=o,s.right+=o,s.top+=i,s.bottom+=i,s.width=1,0<(a=t.offsetWidth-t.clientWidth)&&(n&&(a*=-1),s.left+=a,s.right+=a),s},ds=function(a,u,e){var t,s,c=Hi(_.none()),l=function(){!function(e){var t,n,r,o,i;for(t=gn("*[contentEditable=false]",e),o=0;o<t.length;o++)r=(n=t[o]).previousSibling,Ba(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(i.length-1,1)),r=n.nextSibling,Oa(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(0,1))}(a),s&&(ss.remove(s),s=null),c.get().each(function(e){gn(e.caret).remove(),c.set(_.none())}),clearInterval(t)},f=function(){t=he.setInterval(function(){e()?gn("div.mce-visual-caret",a).toggleClass("mce-visual-caret-hidden"):gn("div.mce-visual-caret",a).addClass("mce-visual-caret-hidden")},500)};return{show:function(t,e){var n,r,o;if(l(),o=e,jo.isElement(o)&&/^(TD|TH)$/i.test(o.tagName))return null;if(!u(e))return s=function(e,t){var n,r,o;if(r=e.ownerDocument.createTextNode(xa),o=e.parentNode,t){if(n=e.previousSibling,Ea(n)){if(ka(n))return n;if(Ba(n))return n.splitText(n.data.length-1)}o.insertBefore(r,e)}else{if(n=e.nextSibling,Ea(n)){if(ka(n))return n;if(Oa(n))return n.splitText(1),n}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r}(e,t),r=e.ownerDocument.createRange(),ls(s.nextSibling)?(r.setStart(s,0),r.setEnd(s,0)):(r.setStart(s,1),r.setEnd(s,1)),r;s=Da("p",e,t),n=fs(a,e,t),gn(s).css("top",n.top);var i=gn('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(n).appendTo(a)[0];return c.set(_.some({caret:i,element:e,before:t})),c.get().each(function(e){t&&gn(e.caret).addClass("mce-visual-caret-before")}),f(),(r=e.ownerDocument.createRange()).setStart(s,0),r.setEnd(s,0),r},hide:l,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){c.get().each(function(e){var t=fs(a,e.element,e.before);gn(e.caret).css(t)})},destroy:function(){return he.clearInterval(t)}}},ms=function(){return cs.isIE()||cs.isEdge()||cs.isFirefox()},gs=function(e){return ls(e)||jo.isTable(e)&&ms()},ps=jo.isContentEditableFalse,hs=jo.matchStyleValues("display","block table table-cell table-caption list-item"),vs=ka,ys=Sa,bs=jo.isElement,Cs=Ha,xs=function(e){return 0<e},ws=function(e){return e<0},Ns=function(e,t){for(var n;n=e(t);)if(!ys(n))return n;return null},Es=function(e,t,n,r,o){var i=new go(e,r);if(ws(t)){if((ps(e)||ys(e))&&n(e=Ns(i.prev,!0)))return e;for(;e=Ns(i.prev,o);)if(n(e))return e}if(xs(t)){if((ps(e)||ys(e))&&n(e=Ns(i.next,!0)))return e;for(;e=Ns(i.next,o);)if(n(e))return e}return null},Ss=function(e,t){for(;e&&e!==t;){if(hs(e))return e;e=e.parentNode}return null},Ts=function(e,t,n){return Ss(e.container(),n)===Ss(t.container(),n)},ks=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),bs(n)?n.childNodes[r+e]:null):null},_s=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},As=function(e,t,n){var r,o,i,a;for(o=e?"previousSibling":"nextSibling";n&&n!==t;){if(r=n[o],vs(r)&&(r=r[o]),ps(r)){if(a=n,Ss(r,i=t)===Ss(a,i))return r;break}if(Cs(r))break;n=n.parentNode}return null},Rs=d(_s,!0),Ds=d(_s,!1),Os=function(e,t,n){var r,o,i,a,u=d(As,!0,t),s=d(As,!1,t);if(o=n.startContainer,i=n.startOffset,Sa(o)){if(bs(o)||(o=o.parentNode),"before"===(a=o.getAttribute("data-mce-caret"))&&(r=o.nextSibling,gs(r)))return Rs(r);if("after"===a&&(r=o.previousSibling,gs(r)))return Ds(r)}if(!n.collapsed)return n;if(jo.isText(o)){if(vs(o)){if(1===e){if(r=s(o))return Rs(r);if(r=u(o))return Ds(r)}if(-1===e){if(r=u(o))return Ds(r);if(r=s(o))return Rs(r)}return n}if(Ba(o)&&i>=o.data.length-1)return 1===e&&(r=s(o))?Rs(r):n;if(Oa(o)&&i<=1)return-1===e&&(r=u(o))?Ds(r):n;if(i===o.data.length)return(r=s(o))?Rs(r):n;if(0===i)return(r=u(o))?Ds(r):n}return n},Bs=function(e,t){return _.from(ks(e?0:-1,t)).filter(ps)},Ps=function(e,t,n){var r=Os(e,t,n);return-1===e?Su.fromRangeStart(r):Su.fromRangeEnd(r)},Is=function(e){return _.from(e.getNode()).map(ar.fromDom)},Ls=function(e,t){for(;t=e(t);)if(t.isVisible())return t;return t},Fs=function(e,t){var n=Ts(e,t);return!(n||!jo.isBr(e.getNode()))||n};(ku=Tu||(Tu={}))[ku.Backwards=-1]="Backwards",ku[ku.Forwards=1]="Forwards";var Ms,zs,Us,js=jo.isContentEditableFalse,Vs=jo.isText,Hs=jo.isElement,qs=jo.isBr,$s=Ha,Ws=function(e){return Ua(e)||!!qa(t=e)&&!0!==j(te(t.getElementsByTagName("*")),function(e,t){return e||Ia(t)},!1);var t},Ks=$a,Xs=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Ys=function(e,t){if(xs(e)){if($s(t.previousSibling)&&!Vs(t.previousSibling))return _u.before(t);if(Vs(t))return _u(t,0)}if(ws(e)){if($s(t.nextSibling)&&!Vs(t.nextSibling))return _u.after(t);if(Vs(t))return _u(t,t.data.length)}return ws(e)?qs(t)?_u.before(t):_u.after(t):_u.before(t)},Gs=function(e,t,n){var r,o,i,a,u;if(!Hs(n)||!t)return null;if(t.isEqual(_u.after(n))&&n.lastChild){if(u=_u.after(n.lastChild),ws(e)&&$s(n.lastChild)&&Hs(n.lastChild))return qs(n.lastChild)?_u.before(n.lastChild):u}else u=t;var s,c,l,f=u.container(),d=u.offset();if(Vs(f)){if(ws(e)&&0<d)return _u(f,--d);if(xs(e)&&d<f.length)return _u(f,++d);r=f}else{if(ws(e)&&0<d&&(o=Xs(f,d-1),$s(o)))return!Ws(o)&&(i=Es(o,e,Ks,o))?Vs(i)?_u(i,i.data.length):_u.after(i):Vs(o)?_u(o,o.data.length):_u.before(o);if(xs(e)&&d<f.childNodes.length&&(o=Xs(f,d),$s(o)))return qs(o)?(s=n,(l=(c=o).nextSibling)&&$s(l)?Vs(l)?_u(l,0):_u.before(l):Gs(Tu.Forwards,_u.after(c),s)):!Ws(o)&&(i=Es(o,e,Ks,o))?Vs(i)?_u(i,0):_u.before(i):Vs(o)?_u(o,0):_u.after(o);r=o||u.getNode()}return(xs(e)&&u.isAtEnd()||ws(e)&&u.isAtStart())&&(r=Es(r,e,q(!0),n,!0),Ks(r,n))?Ys(e,r):(o=Es(r,e,Ks,n),!(a=Ht.last(U(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(f,n),js)))||o&&a.contains(o)?o?Ys(e,o):null:u=xs(e)?_u.after(a):_u.before(a))},Js=function(t){return{next:function(e){return Gs(Tu.Forwards,e,t)},prev:function(e){return Gs(Tu.Backwards,e,t)}}},Qs=function(e){return _u.isTextPosition(e)?0===e.offset():Ha(e.getNode())},Zs=function(e){if(_u.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Ha(e.getNode(!0))},ec=function(e,t){return!_u.isTextPosition(e)&&!_u.isTextPosition(t)&&e.getNode()===t.getNode(!0)},tc=function(e,t,n){return e?!ec(t,n)&&(r=t,!(!_u.isTextPosition(r)&&jo.isBr(r.getNode())))&&Zs(t)&&Qs(n):!ec(n,t)&&Qs(t)&&Zs(n);var r},nc=function(e,t,n){var r=Js(t);return _.from(e?r.next(n):r.prev(n))},rc=function(t,n,r){return nc(t,n,r).bind(function(e){return Ts(r,e,n)&&tc(t,r,e)?nc(t,n,e):_.some(e)})},oc=function(t,n,e,r){return rc(t,n,e).bind(function(e){return r(e)?oc(t,n,e,r):_.some(e)})},ic=function(e,t){var n,r,o,i,a,u=e?t.firstChild:t.lastChild;return jo.isText(u)?_.some(_u(u,e?0:u.data.length)):u?Ha(u)?_.some(e?_u.before(u):(a=u,jo.isBr(a)?_u.before(a):_u.after(a))):(r=t,o=u,i=(n=e)?_u.before(o):_u.after(o),nc(n,r,i)):_.none()},ac=d(nc,!0),uc=d(nc,!1),sc={fromPosition:nc,nextPosition:ac,prevPosition:uc,navigate:rc,navigateIgnore:oc,positionIn:ic,firstPositionIn:d(ic,!0),lastPositionIn:d(ic,!1)},cc=function(e,t){return jo.isElement(t)&&e.isBlock(t)&&!t.innerHTML&&!fe.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},lc=function(e,t){return sc.lastPositionIn(e).fold(function(){return!1},function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0})},fc=function(e,t,n){return!(!1!==t.hasChildNodes()||!Qu(e,t)||(o=n,i=(r=t).ownerDocument.createTextNode(xa),r.appendChild(i),o.setStart(i,0),o.setEnd(i,0),0));var r,o,i},dc=function(e,t,n,r){var o,i,a,u,s=n[t?"start":"end"],c=e.getRoot();if(s){for(a=s[0],i=c,o=s.length-1;1<=o;o--){if(u=i.childNodes,fc(c,i,r))return!0;if(s[o]>u.length-1)return!!fc(c,i,r)||lc(i,r);i=u[s[o]]}3===i.nodeType&&(a=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},mc=function(e){return jo.isText(e)&&0<e.data.length},gc=function(e,t,n){var r,o,i,a,u,s,c=e.get(n.id+"_"+t),l=n.keep;if(c){if(r=c.parentNode,"start"===t?l?c.hasChildNodes()?(r=c.firstChild,o=1):mc(c.nextSibling)?(r=c.nextSibling,o=0):mc(c.previousSibling)?(r=c.previousSibling,o=c.previousSibling.data.length):(r=c.parentNode,o=e.nodeIndex(c)+1):o=e.nodeIndex(c):l?c.hasChildNodes()?(r=c.firstChild,o=1):mc(c.previousSibling)?(r=c.previousSibling,o=c.previousSibling.data.length):(r=c.parentNode,o=e.nodeIndex(c)):o=e.nodeIndex(c),u=r,s=o,!l){for(a=c.previousSibling,i=c.nextSibling,Xt.each(Xt.grep(c.childNodes),function(e){jo.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});c=e.get(n.id+"_"+t);)e.remove(c,!0);a&&i&&a.nodeType===i.nodeType&&jo.isText(a)&&!fe.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),u=a,s=o)}return _.some(_u(u,s))}return _.none()},pc=function(e,t){var n,r,o,i,a,u,s,c,l,f,d,m,g,p,h,v,y=e.dom;if(t){if(v=t,Xt.isArray(v.start))return p=t,h=(g=y).createRng(),dc(g,!0,p,h)&&dc(g,!1,p,h)?_.some(h):_.none();if("string"==typeof t.start)return _.some((f=t,d=(l=y).createRng(),m=Fu(l.getRoot(),f.start),d.setStart(m.container(),m.offset()),m=Fu(l.getRoot(),f.end),d.setEnd(m.container(),m.offset()),d));if(t.hasOwnProperty("id"))return s=gc(o=y,"start",i=t),c=gc(o,"end",i),ru(s,(u=s,(a=c).isSome()?a:u),function(e,t){var n=o.createRng();return n.setStart(cc(o,e.container()),e.offset()),n.setEnd(cc(o,t.container()),t.offset()),n});if(t.hasOwnProperty("name"))return n=y,r=t,_.from(n.select(r.name)[r.index]).map(function(e){var t=n.createRng();return t.selectNode(e),t});if(t.hasOwnProperty("rng"))return _.some(t.rng)}return _.none()},hc=function(e,t,n){return Yu.getBookmark(e,t,n)},vc=function(t,e){pc(t,e).each(function(e){t.setRng(e)})},yc=function(e){return jo.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},bc=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Cc=function(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)},xc=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},wc={isInlineBlock:bc,moveStart:function(e,t,n){var r,o,i,a=n.startOffset,u=n.startContainer;if((n.startContainer!==n.endContainer||!bc(n.startContainer.childNodes[n.startOffset]))&&1===u.nodeType)for(a<(i=u.childNodes).length?r=new go(u=i[a],e.getParent(u,e.isBlock)):(r=new go(u=i[i.length-1],e.getParent(u,e.isBlock))).next(!0),o=r.current();o;o=r.next())if(3===o.nodeType&&!Cc(o))return n.setStart(o,0),void t.setRng(n)},getNonWhiteSpaceSibling:function(e,t,n){if(e)for(t=t?"nextSibling":"previousSibling",e=n?e:e[t];e;e=e[t])if(1===e.nodeType||!Cc(e))return e},isTextBlock:function(e,t){return t.nodeType&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},isValid:function(e,t,n){return e.schema.isValidChild(t,n)},isWhiteSpaceNode:Cc,replaceVars:function(e,n){return"string"!=typeof e?e=e(n):n&&(e=e.replace(/%(\w+)/g,function(e,t){return n[t]||e})),e},isEq:function(e,t){return t=t||"",e=""+((e=e||"").nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},normalizeStyleValue:xc,getStyle:function(e,t,n){return xc(e,e.getStyle(t,n),n)},getTextDecoration:function(t,e){var n;return t.getParent(e,function(e){return(n=t.getStyle(e,"text-decoration"))&&"none"!==n}),n},getParents:function(e,t,n){return e.getParents(t,n,e.getRoot())}},Nc=yc,Ec=wc.getParents,Sc=wc.isWhiteSpaceNode,Tc=wc.isTextBlock,kc=function(e,t){for(void 0===t&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)(e=e.childNodes[t])&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}},_c=function(e,t){for(var n=t;n;){if(1===n.nodeType&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},Ac=function(e,t,n,r){var o,i,a=n.nodeValue;return void 0===r&&(r=e?a.length:0),e?(o=a.lastIndexOf(" ",r),-1!==(o=(i=a.lastIndexOf("\xa0",r))<o?o:i)&&!t&&(o<r||!e)&&o<=a.length&&o++):(o=a.indexOf(" ",r),i=a.indexOf("\xa0",r),o=-1!==o&&(-1===i||o<i)?o:i),o},Rc=function(e,t,n,r,o,i){var a,u,s,c;if(3===n.nodeType){if(-1!==(s=Ac(o,i,n,r)))return{container:n,offset:s};c=n}for(a=new go(n,e.getParent(n,e.isBlock)||t);u=a[o?"prev":"next"]();)if(3!==u.nodeType||Nc(u.parentNode)){if(e.isBlock(u)||wc.isEq(u,"BR"))break}else if(-1!==(s=Ac(o,i,c=u)))return{container:u,offset:s};if(c)return{container:c,offset:r=o?0:c.length}},Dc=function(e,t,n,r,o){var i,a,u,s;for(3===r.nodeType&&0===r.nodeValue.length&&r[o]&&(r=r[o]),i=Ec(e,r),a=0;a<i.length;a++)for(u=0;u<t.length;u++)if(!("collapsed"in(s=t[u])&&s.collapsed!==n.collapsed)&&e.is(i[a],s.selector))return i[a];return r},Oc=function(t,e,n,r){var o,i=t.dom,a=i.getRoot();if(e[0].wrapper||(o=i.getParent(n,e[0].block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(3===n.nodeType?n.parentNode:n,function(e){return e!==a&&Tc(t,e)},u)}if(o&&e[0].wrapper&&(o=Ec(i,o,"ul,ol").reverse()[0]||o),!o)for(o=n;o[r]&&!i.isBlock(o[r])&&(o=o[r],!wc.isEq(o,"br")););return o||n},Bc=function(e,t,n,r,o,i,a){var u,s,c,l,f,d;if(u=s=a?n:o,l=a?"previousSibling":"nextSibling",f=e.getRoot(),3===u.nodeType&&!Sc(u)&&(a?0<r:i<u.nodeValue.length))return u;for(;;){if(!t[0].block_expand&&e.isBlock(s))return s;for(c=s[l];c;c=c[l])if(!Nc(c)&&!Sc(c)&&("BR"!==(d=c).nodeName||!d.getAttribute("data-mce-bogus")||d.nextSibling))return s;if(s===f||s.parentNode===f){u=s;break}s=s.parentNode}return u},Pc=function(e,t,n,r){var o,i=t.startContainer,a=t.startOffset,u=t.endContainer,s=t.endOffset,c=e.dom;return 1===i.nodeType&&i.hasChildNodes()&&3===(i=eu(i,a)).nodeType&&(a=0),1===u.nodeType&&u.hasChildNodes()&&3===(u=eu(u,t.collapsed?s:s-1)).nodeType&&(s=u.nodeValue.length),i=_c(c,i),u=_c(c,u),(Nc(i.parentNode)||Nc(i))&&(i=Nc(i)?i:i.parentNode,3===(i=t.collapsed?i.previousSibling||i:i.nextSibling||i).nodeType&&(a=t.collapsed?i.length:0)),(Nc(u.parentNode)||Nc(u))&&(u=Nc(u)?u:u.parentNode,3===(u=t.collapsed?u.nextSibling||u:u.previousSibling||u).nodeType&&(s=t.collapsed?0:u.length)),t.collapsed&&((o=Rc(c,e.getBody(),i,a,!0,r))&&(i=o.container,a=o.offset),(o=Rc(c,e.getBody(),u,s,!1,r))&&(u=o.container,s=o.offset)),n[0].inline&&(u=r?u:function(e,t){var n=kc(e,t);if(n.node){for(;n.node&&0===n.offset&&n.node.previousSibling;)n=kc(n.node.previousSibling);n.node&&0<n.offset&&3===n.node.nodeType&&" "===n.node.nodeValue.charAt(n.offset-1)&&1<n.offset&&(e=n.node).splitText(n.offset-1)}return e}(u,s)),(n[0].inline||n[0].block_expand)&&(n[0].inline&&3===i.nodeType&&0!==a||(i=Bc(c,n,i,a,u,s,!0)),n[0].inline&&3===u.nodeType&&s!==u.nodeValue.length||(u=Bc(c,n,i,a,u,s,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(i=Dc(c,n,t,i,"previousSibling"),u=Dc(c,n,t,u,"nextSibling")),(n[0].block||n[0].selector)&&(i=Oc(e,n,i,"previousSibling"),u=Oc(e,n,u,"nextSibling"),n[0].block&&(c.isBlock(i)||(i=Bc(c,n,i,a,u,s,!0)),c.isBlock(u)||(u=Bc(c,n,i,a,u,s,!1)))),1===i.nodeType&&(a=c.nodeIndex(i),i=i.parentNode),1===u.nodeType&&(s=c.nodeIndex(u)+1,u=u.parentNode),{startContainer:i,startOffset:a,endContainer:u,endOffset:s}},Ic=Xt.each,Lc=function(e,t,o){var n,r,i,a,u,s,c,l=t.startContainer,f=t.startOffset,d=t.endContainer,m=t.endOffset;if(0<(c=e.select("td[data-mce-selected],th[data-mce-selected]")).length)Ic(c,function(e){o([e])});else{var g,p,h,v=function(e){var t;return 3===(t=e[0]).nodeType&&t===l&&f>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===m&&0<e.length&&t===d&&3===t.nodeType&&e.splice(e.length-1,1),e},y=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},b=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},C=function(e,t,n){var r=n?"nextSibling":"previousSibling";for(u=(a=e).parentNode;a&&a!==t;a=u)u=a.parentNode,(s=y(a===e?a:a[r],r)).length&&(n||s.reverse(),o(v(s)))};if(1===l.nodeType&&l.hasChildNodes()&&(l=l.childNodes[f]),1===d.nodeType&&d.hasChildNodes()&&(p=m,h=(g=d).childNodes,--p>h.length-1?p=h.length-1:p<0&&(p=0),d=h[p]||g),l===d)return o(v([l]));for(n=e.findCommonAncestor(l,d),a=l;a;a=a.parentNode){if(a===d)return C(l,n,!0);if(a===n)break}for(a=d;a;a=a.parentNode){if(a===l)return C(d,n);if(a===n)break}r=b(l,n)||l,i=b(d,n)||d,C(l,r,!0),(s=y(r===l?r:r.nextSibling,"nextSibling",i===d?i.nextSibling:i)).length&&o(v(s)),C(d,i)}},Fc=(Ms=mr,zs="text",{get:function(e){if(!Ms(e))throw new Error("Can only get "+zs+" value of a "+zs+" node");return Us(e).getOr("")},getOption:Us=function(e){return Ms(e)?_.from(e.dom().nodeValue):_.none()},set:function(e,t){if(!Ms(e))throw new Error("Can only set raw "+zs+" value of a "+zs+" node");e.dom().nodeValue=t}}),Mc=function(e){return Fc.get(e)},zc=function(r,o,i,a){return Vr(o).fold(function(){return"skipping"},function(e){return"br"===a||mr(n=o)&&"\ufeff"===Mc(n)?"valid":dr(t=o)&&Gi(t,aa())?"existing":Ju(o)?"caret":wc.isValid(r,i,a)&&wc.isValid(r,lr(e),i)?"valid":"invalid-child";var t,n})},Uc=function(e,t,n,r){var o,i,a=t.uid,u=void 0===a?(o="mce-annotation",i=(new Date).getTime(),o+"_"+Math.floor(1e9*Math.random())+ ++ga+String(i)):a,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["uid"]),c=ar.fromTag("span",e);Xi(c,aa()),wr(c,""+sa(),u),wr(c,""+ua(),n);var l,f=r(u,s),d=f.attributes,m=void 0===d?{}:d,g=f.classes,p=void 0===g?[]:g;return Nr(c,m),l=c,z(p,function(e){Xi(l,e)}),c},jc=function(i,e,t,n,r){var a=[],u=Uc(i.getDoc(),r,t,n),s=Hi(_.none()),c=function(){s.set(_.none())},l=function(e){z(e,o)},o=function(e){var t,n;switch(zc(i,e,"span",lr(e))){case"invalid-child":c();var r=Kr(e);l(r),c();break;case"valid":var o=s.get().getOrThunk(function(){var e=ha(u);return a.push(e),s.set(_.some(e)),e});Pi(t=e,n=o),Fi(n,t)}};return Lc(i.dom,e,function(e){var t;c(),t=W(e,ar.fromDom),l(t)}),a},Vc=function(s,c,l,f){s.undoManager.transact(function(){var e,t,n,r,o=s.selection.getRng();if(o.collapsed&&(r=Pc(e=s,t=o,[{inline:!0}],3===(n=t).startContainer.nodeType&&n.startContainer.nodeValue.length>=n.startOffset&&"\xa0"===n.startContainer.nodeValue[n.startOffset]),t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),e.selection.setRng(t)),s.selection.getRng().collapsed){var i=Uc(s.getDoc(),f,c,l.decorate);ya(i,"\xa0"),s.selection.getRng().insertNode(i.dom()),s.selection.select(i.dom())}else{var a=Yu.getPersistentBookmark(s.selection,!1),u=s.selection.getRng();jc(s,u,c,l.decorate,f),s.selection.moveToBookmark(a)}})};function Hc(s){var n,r=(n={},{register:function(e,t){n[e]={name:e,settings:t}},lookup:function(e){return n.hasOwnProperty(e)?_.from(n[e]).map(function(e){return e.settings}):_.none()}});da(s,r);var o=fa(s);return{register:function(e,t){r.register(e,t)},annotate:function(t,n){r.lookup(t).each(function(e){Vc(s,t,e,n)})},annotationChanged:function(e,t){o.addListener(e,t)},remove:function(e){ca(s,_.some(e)).each(function(e){var t=e.elements;z(t,ji)})},getAll:function(e){var t,n,r,o,i,a,u=(t=s,n=e,r=ar.fromDom(t.getBody()),o=Qi(r,"["+ua()+'="'+n+'"]'),i={},z(o,function(e){var t=Er(e,sa()),n=i.hasOwnProperty(t)?i[t]:[];i[t]=n.concat([e])}),i);return a=function(e){return W(e,function(e){return e.dom()})},vr(u,function(e,t){return{k:t,v:a(e,t)}})}}}var qc=function(e){return Xt.grep(e.childNodes,function(e){return"LI"===e.nodeName})},$c=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&("\xa0"===(t=e.firstChild).data||jo.isBr(t));var t},Wc=function(e){return 0<e.length&&(!(t=e[e.length-1]).firstChild||$c(t))?e.slice(0,-1):e;var t},Kc=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},Xc=function(e,t){var n=_u.after(e),r=Js(t).prev(n);return r?r.toRange():null},Yc=function(t,e,n){var r,o,i,a,u=t.parentNode;return Xt.each(e,function(e){u.insertBefore(e,t)}),r=t,o=n,i=_u.before(r),(a=Js(o).next(i))?a.toRange():null},Gc=function(e,t){var n,r,o,i,a,u,s=t.firstChild,c=t.lastChild;return s&&"meta"===s.name&&(s=s.next),c&&"mce_marker"===c.attr("id")&&(c=c.prev),r=c,u=(n=e).getNonEmptyElements(),r&&(r.isEmpty(u)||(o=r,n.getBlockElements()[o.name]&&(a=o).firstChild&&a.firstChild===a.lastChild&&("br"===(i=o.firstChild).name||"\xa0"===i.value)))&&(c=c.prev),!(!s||s!==c||"ul"!==s.name&&"ol"!==s.name)},Jc=function(e,o,i,t){var n,r,a,u,s,c,l,f,d,m,g,p,h,v,y,b,C,x,w,N=(n=o,r=t,c=e.serialize(r),l=n.createFragment(c),u=(a=l).firstChild,s=a.lastChild,u&&"META"===u.nodeName&&u.parentNode.removeChild(u),s&&"mce_marker"===s.id&&s.parentNode.removeChild(s),a),E=Kc(o,i.startContainer),S=Wc(qc(N.firstChild)),T=o.getRoot(),k=function(e){var t=_u.fromRangeStart(i),n=Js(o.getRoot()),r=1===e?n.prev(t):n.next(t);return!r||Kc(o,r.getNode())!==E};return k(1)?Yc(E,S,T):k(2)?(f=E,d=S,m=T,o.insertAfter(d.reverse(),f),Xc(d[0],m)):(p=S,h=T,v=g=E,b=(y=i).cloneRange(),C=y.cloneRange(),b.setStartBefore(v),C.setEndAfter(v),x=[b.cloneContents(),C.cloneContents()],(w=g.parentNode).insertBefore(x[0],g),Xt.each(p,function(e){w.insertBefore(e,g)}),w.insertBefore(x[1],g),w.removeChild(g),Xc(p[p.length-1],h))},Qc=function(e,t){return!!Kc(e,t)},Zc=Xt.each,el=function(o){this.compare=function(e,t){if(e.nodeName!==t.nodeName)return!1;var n=function(n){var r={};return Zc(o.getAttribs(n),function(e){var t=e.nodeName.toLowerCase();0!==t.indexOf("_")&&"style"!==t&&0!==t.indexOf("data-")&&(r[t]=o.getAttrib(n,t))}),r},r=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(void 0===(n=t[r]))return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return!(!r(n(e),n(t))||!r(o.parseStyle(o.getAttrib(e,"style")),o.parseStyle(o.getAttrib(t,"style")))||yc(e)||yc(t))}},tl=function(e){var t=Qi(e,"br"),n=U(function(e){for(var t=[],n=e.dom();n;)t.push(ar.fromDom(n)),n=n.lastChild;return t}(e).slice(-1),wo);t.length===n.length&&z(n,Ui)},nl=function(e){zi(e),Fi(e,ar.fromHtml('<br data-mce-bogus="1">'))},rl=function(n){Gr(n).each(function(t){Hr(t).each(function(e){Co(n)&&wo(t)&&Co(e)&&Ui(t)})})},ol=Xt.makeMap;function il(e){var u,s,c,l,f,d=[];return u=(e=e||{}).indent,s=ol(e.indent_before||""),c=ol(e.indent_after||""),l=ti.getEncodeFunc(e.entity_encoding||"raw",e.entities),f="html"===e.element_format,{start:function(e,t,n){var r,o,i,a;if(u&&s[e]&&0<d.length&&0<(a=d[d.length-1]).length&&"\n"!==a&&d.push("\n"),d.push("<",e),t)for(r=0,o=t.length;r<o;r++)i=t[r],d.push(" ",i.name,'="',l(i.value,!0),'"');d[d.length]=!n||f?">":" />",n&&u&&c[e]&&0<d.length&&0<(a=d[d.length-1]).length&&"\n"!==a&&d.push("\n")},end:function(e){var t;d.push("</",e,">"),u&&c[e]&&0<d.length&&0<(t=d[d.length-1]).length&&"\n"!==t&&d.push("\n")},text:function(e,t){0<e.length&&(d[d.length]=t?e:l(e))},cdata:function(e){d.push("<![CDATA[",e,"]]>")},comment:function(e){d.push("\x3c!--",e,"--\x3e")},pi:function(e,t){t?d.push("<?",e," ",l(t),"?>"):d.push("<?",e,"?>"),u&&d.push("\n")},doctype:function(e){d.push("<!DOCTYPE",e,">",u?"\n":"")},reset:function(){d.length=0},getContent:function(){return d.join("").replace(/\n$/,"")}}}function al(t,g){void 0===g&&(g=di());var p=il(t);return(t=t||{}).validate=!("validate"in t)||t.validate,{serialize:function(e){var f,d;d=t.validate,f={3:function(e){p.text(e.value,e.raw)},8:function(e){p.comment(e.value)},7:function(e){p.pi(e.name,e.value)},10:function(e){p.doctype(e.value)},4:function(e){p.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;m(e),e=e.next;);}},p.reset();var m=function(e){var t,n,r,o,i,a,u,s,c,l=f[e.type];if(l)l(e);else{if(t=e.name,n=e.shortEnded,r=e.attributes,d&&r&&1<r.length&&((a=[]).map={},c=g.getElementRule(e.name))){for(u=0,s=c.attributesOrder.length;u<s;u++)(o=c.attributesOrder[u])in r.map&&(i=r.map[o],a.map[o]=i,a.push({name:o,value:i}));for(u=0,s=r.length;u<s;u++)(o=r[u].name)in a.map||(i=r.map[o],a.map[o]=i,a.push({name:o,value:i}));r=a}if(p.start(e.name,r,n),!n){if(e=e.firstChild)for(;m(e),e=e.next;);p.end(t)}}};return 1!==e.type||t.inner?f[11](e):m(e),p.getContent()}}}var ul,sl=function(a){var u=_u.fromRangeStart(a),s=_u.fromRangeEnd(a),c=a.commonAncestorContainer;return sc.fromPosition(!1,c,s).map(function(e){return!Ts(u,s,c)&&Ts(u,e,c)?(t=u.container(),n=u.offset(),r=e.container(),o=e.offset(),(i=V.document.createRange()).setStart(t,n),i.setEnd(r,o),i):a;var t,n,r,o,i}).getOr(a)},cl=function(e){return e.collapsed?e:sl(e)},ll=jo.matchNodeNames("td th"),fl=function(e,t){var n,r,o=e.selection.getRng(),i=o.startContainer,a=o.startOffset;o.collapsed&&(n=i,r=a,jo.isText(n)&&"\xa0"===n.nodeValue[r-1])&&jo.isText(i)&&(i.insertData(a-1," "),i.deleteData(a,1),o.setStart(i,a),o.setEnd(i,a),e.selection.setRng(o)),e.selection.setContent(t)},dl=function(e,t,n){var r,o,i,a,u,s,c,l,f,d,m,g=e.selection,p=e.dom;if(/^ | $/.test(t)&&(t=function(e,t){var n,r;n=e.startContainer,r=e.startOffset;var o=function(e){return n[e]&&3===n[e].nodeType};return 3===n.nodeType&&(0<r?t=t.replace(/^&nbsp;/," "):o("previousSibling")||(t=t.replace(/^ /,"&nbsp;")),r<n.length?t=t.replace(/&nbsp;(<br>|)$/," "):o("nextSibling")||(t=t.replace(/(&nbsp;| )(<br>|)$/,"&nbsp;"))),t}(g.getRng(),t)),r=e.parser,m=n.merge,o=al({validate:e.settings.validate},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;&#x200B;</span>',s={content:t,format:"html",selection:!0,paste:n.paste},(s=e.fire("BeforeSetContent",s)).isDefaultPrevented())e.fire("SetContent",{content:s.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=s.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d);var h,v,y,b,C,x,w=(l=g.getRng()).startContainer||(l.parentElement?l.parentElement():null),N=e.getBody();w===N&&g.isCollapsed()&&p.isBlock(N.firstChild)&&(h=e,(v=N.firstChild)&&!h.schema.getShortEndedElements()[v.nodeName])&&p.isEmpty(N.firstChild)&&((l=p.createRng()).setStart(N.firstChild,0),l.setEnd(N.firstChild,0),g.setRng(l)),g.isCollapsed()||(e.selection.setRng(cl(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),y=e.selection.getRng(),b=t,C=y.startContainer,x=y.startOffset,3===C.nodeType&&y.collapsed&&("\xa0"===C.data[x]?(C.deleteData(x,1),/[\u00a0| ]$/.test(b)||(b+=" ")):"\xa0"===C.data[x-1]&&(C.deleteData(x-1,1),/[\u00a0| ]$/.test(b)||(b=" "+b))),t=b);var E,S,T,k={context:(i=g.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(u=r.parse(t,k),!0===n.paste&&Gc(e.schema,u)&&Qc(p,i))return l=Jc(o,p,e.selection.getRng(),u),e.selection.setRng(l),void e.fire("SetContent",s);if(function(e){for(var t=e;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(u),"mce_marker"===(f=u.lastChild).attr("id"))for(f=(c=f).prev;f;f=f.walk(!0))if(3===f.type||!p.isBlock(f.name)){e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(c,f,"br"===f.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),k.invalid){for(fl(e,d),i=g.getNode(),a=e.getBody(),9===i.nodeType?i=f=a:f=i;f!==a;)f=(i=f).parentNode;t=i===a?a.innerHTML:p.getOuterHTML(i),t=o.serialize(r.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return o.serialize(u)}))),i===a?p.setHTML(a,t):p.setOuterHTML(i,t)}else!function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):fl(e,t)}}(e,t=o.serialize(u),i);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new el(r);Xt.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}}(e,m),function(n,e){var t,r,o,i,a,u=n.dom,s=n.selection;if(e){if(n.selection.scrollIntoView(e),t=function(e){for(var t=n.getBody();e&&e!==t;e=e.parentNode)if("false"===n.dom.getContentEditable(e))return e;return null}(e))return u.remove(e),s.select(t);var c=u.createRng();(i=e.previousSibling)&&3===i.nodeType?(c.setStart(i,i.nodeValue.length),fe.ie||(a=e.nextSibling)&&3===a.nodeType&&(i.appendData(a.data),a.parentNode.removeChild(a))):(c.setStartBefore(e),c.setEndBefore(e)),r=u.getParent(e,u.isBlock),u.remove(e),r&&u.isEmpty(r)&&(n.$(r).empty(),c.setStart(r,0),c.setEnd(r,0),ll(r)||r.getAttribute("data-mce-fragment")||!(o=function(e){var t=_u.fromRangeStart(e);if(t=Js(n.getBody()).next(t))return t.toRange()}(c))?u.add(r,u.create("br",{"data-mce-bogus":"1"})):(c=o,u.remove(r))),s.setRng(c)}}(e,p.get("mce_marker")),E=e.getBody(),Xt.each(E.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")}),S=e.dom,T=e.selection.getStart(),_.from(S.getParent(T,"td,th")).map(ar.fromDom).each(rl),e.fire("SetContent",s),e.addVisual()}},ml=function(e,t){var n,r,o="string"!=typeof(n=t)?(r=Xt.extend({paste:n.paste,data:{paste:n.paste}},n),{content:n.content,details:r}):{content:n,details:{}};dl(e,o.content,o.details)},gl=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,pl=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var o=e.getParam(t,"","hash");return o.hasOwnProperty(e.id)?o[e.id]:n}return r},hl=function(e){return e.getParam("iframe_attrs",{})},vl=function(e){return e.getParam("doctype","<!DOCTYPE html>")},yl=function(e){return e.getParam("document_base_url","")},bl=function(e){return pl(e,"body_id","tinymce")},Cl=function(e){return pl(e,"body_class","")},xl=function(e){return e.getParam("content_security_policy","")},wl=function(e){return e.getParam("br_in_pre",!0)},Nl=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":t},El=function(e){return e.getParam("forced_root_block_attrs",{})},Sl=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Tl=function(e){return e.getParam("no_newline_selector","")},kl=function(e){return e.getParam("keep_styles",!0)},_l=function(e){return e.getParam("end_container_on_empty_block",!1)},Al=function(e){return Xt.explode(e.getParam("font_size_style_values",""))},Rl=function(e){return Xt.explode(e.getParam("font_size_classes",""))},Dl=function(e){return e.getParam("images_dataimg_filter",q(!0),"function")},Ol=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Bl=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Pl=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Il=function(e){return e.getParam("images_upload_url","","string")},Ll=function(e){return e.getParam("images_upload_base_path","","string")},Fl=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Ml=function(e){return e.getParam("images_upload_handler",null,"function")},zl=function(e){return e.getParam("content_css_cors",!1,"boolean")},Ul=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},jl=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?Ta(n)?jo.isText(n.nextSibling)?_u(n.nextSibling,0):_u.after(n):Aa(t)?_u(n,r+1):t:Ta(n)?jo.isText(n.previousSibling)?_u(n.previousSibling,n.previousSibling.data.length):_u.before(n):Ra(t)?_u(n,r-1):t},Vl={isInlineTarget:function(e,t){return Lr(ar.fromDom(t),Ul(e))},findRootInline:function(e,t,n){var r,o,i,a=(r=e,o=t,i=n,U(Si.DOM.getParents(i.container(),"*",o),r));return _.from(a[a.length-1])},isRtl:function(e){return"rtl"===Si.DOM.getStyle(e,"direction",!0)||(t=e.textContent,gl.test(t));var t},isAtZwsp:function(e){return Aa(e)||Ra(e)},normalizePosition:jl,normalizeForwards:d(jl,!0),normalizeBackwards:d(jl,!1),hasSameParentBlock:function(e,t,n){var r=Ss(t,e),o=Ss(n,e);return r&&r===o}},Hl=function(e,t){return zr(e,t)?na(t,function(e){return No(e)||So(e)},(n=e,function(e){return Mr(n,ar.fromDom(e.dom().parentNode))})):_.none();var n},ql=function(e){var t,n,r;e.dom.isEmpty(e.getBody())&&(e.setContent(""),n=(t=e).getBody(),r=n.firstChild&&t.dom.isBlock(n.firstChild)?n.firstChild:n,t.selection.setCursorLocation(r,0))},$l=function(i,a,u){return ru(sc.firstPositionIn(u),sc.lastPositionIn(u),function(e,t){var n=Vl.normalizePosition(!0,e),r=Vl.normalizePosition(!1,t),o=Vl.normalizePosition(!1,a);return i?sc.nextPosition(u,o).map(function(e){return e.isEqual(r)&&a.isEqual(n)}).getOr(!1):sc.prevPosition(u,o).map(function(e){return e.isEqual(n)&&a.isEqual(r)}).getOr(!1)}).getOr(!0)},Wl=function(e,t){var n,r,o,i=ar.fromDom(e),a=ar.fromDom(t);return n=a,r="pre,code",o=d(Mr,i),ra(n,r,o).isSome()},Kl=function(e,t){return Ha(t)&&!1===(r=e,o=t,jo.isText(o)&&/^[ \t\r\n]*$/.test(o.data)&&!1===Wl(r,o))||(n=t,jo.isElement(n)&&"A"===n.nodeName&&n.hasAttribute("name"))||Xl(t);var n,r,o},Xl=jo.hasAttribute("data-mce-bookmark"),Yl=jo.hasAttribute("data-mce-bogus"),Gl=jo.hasAttributeValue("data-mce-bogus","all"),Jl=function(e){return function(e){var t,n,r=0;if(Kl(e,e))return!1;if(!(n=e.firstChild))return!0;t=new go(n,e);do{if(Gl(n))n=t.next(!0);else if(Yl(n))n=t.next();else if(jo.isBr(n))r++,n=t.next();else{if(Kl(e,n))return!1;n=t.next()}}while(n);return r<=1}(e.dom())},Ql=Ar("block","position"),Zl=Ar("from","to"),ef=function(e,t){var n=ar.fromDom(e),r=ar.fromDom(t.container());return Hl(n,r).map(function(e){return Ql(e,t)})},tf=function(o,i,e){var t=ef(o,_u.fromRangeStart(e)),n=t.bind(function(e){return sc.fromPosition(i,o,e.position()).bind(function(e){return ef(o,e).map(function(e){return t=o,n=i,r=e,jo.isBr(r.position().getNode())&&!1===Jl(r.block())?sc.positionIn(!1,r.block().dom()).bind(function(e){return e.isEqual(r.position())?sc.fromPosition(n,t,e).bind(function(e){return ef(t,e)}):_.some(r)}).getOr(r):r;var t,n,r})})});return ru(t,n,Zl).filter(function(e){return!1===Mr((r=e).from().block(),r.to().block())&&Vr((n=e).from().block()).bind(function(t){return Vr(n.to().block()).filter(function(e){return Mr(t,e)})}).isSome()&&(t=e,!1===jo.isContentEditableFalse(t.from().block().dom())&&!1===jo.isContentEditableFalse(t.to().block().dom()));var t,n,r})},nf=function(e,t,n){return n.collapsed?tf(e,t,n):_.none()},rf=function(e,t,n){return zr(t,e)?function(e,t){for(var n=D(t)?t:b,r=e.dom(),o=[];null!==r.parentNode&&r.parentNode!==undefined;){var i=r.parentNode,a=ar.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o}(e,function(e){return n(e)||Mr(e,t)}).slice(0,-1):[]},of=function(e,t){return rf(e,t,q(!1))},af=of,uf=function(e,t){return[e].concat(of(e,t))},sf=function(e){var t,n=(t=Kr(e),Y(t,Co).fold(function(){return t},function(e){return t.slice(0,e)}));return z(n,Ui),n},cf=function(e,t){var n=uf(t,e);return X(n.reverse(),Jl).each(Ui)},lf=function(e,t,n,r){if(Jl(n))return nl(n),sc.firstPositionIn(n.dom());0===U($r(r),function(e){return!Jl(e)}).length&&Jl(t)&&Pi(r,ar.fromTag("br"));var o=sc.prevPosition(n.dom(),_u.before(r.dom()));return z(sf(t),function(e){Pi(r,e)}),cf(e,t),o},ff=function(e,t,n){if(Jl(n))return Ui(n),Jl(t)&&nl(t),sc.firstPositionIn(t.dom());var r=sc.lastPositionIn(n.dom());return z(sf(t),function(e){Fi(n,e)}),cf(e,t),r},df=function(e,t){return zr(t,e)?(n=uf(e,t),_.from(n[n.length-1])):_.none();var n},mf=function(e,t){sc.positionIn(e,t.dom()).map(function(e){return e.getNode()}).map(ar.fromDom).filter(wo).each(Ui)},gf=function(e,t,n){return mf(!0,t),mf(!1,n),df(t,n).fold(d(ff,e,t,n),d(lf,e,t,n))},pf=function(e,t,n,r){return t?gf(e,r,n):gf(e,n,r)},hf=function(t,n){var e,r=ar.fromDom(t.getBody());return(e=nf(r.dom(),n,t.selection.getRng()).bind(function(e){return pf(r,n,e.from().block(),e.to().block())})).each(function(e){t.selection.setRng(e.toRange())}),e.isSome()},vf=function(e,t){var n=ar.fromDom(t),r=d(Mr,e);return ta(n,_o,r).isSome()},yf=function(e,t){var n,r,o=sc.prevPosition(e.dom(),_u.fromRangeStart(t)).isNone(),i=sc.nextPosition(e.dom(),_u.fromRangeEnd(t)).isNone();return!(vf(n=e,(r=t).startContainer)||vf(n,r.endContainer))&&o&&i},bf=function(e){var n,r,o,t,i=ar.fromDom(e.getBody()),a=e.selection.getRng();return yf(i,a)?((t=e).setContent(""),t.selection.setCursorLocation(),!0):(n=i,r=e.selection,o=r.getRng(),ru(Hl(n,ar.fromDom(o.startContainer)),Hl(n,ar.fromDom(o.endContainer)),function(e,t){return!1===Mr(e,t)&&(o.deleteContents(),pf(n,!0,e,t).each(function(e){r.setRng(e.toRange())}),!0)}).getOr(!1))},Cf=function(e,t){return!e.selection.isCollapsed()&&bf(e)},xf=function(a){if(!k(a))throw new Error("cases must be an array");if(0===a.length)throw new Error("there must be at least one case");var u=[],n={};return z(a,function(e,r){var t=gr(e);if(1!==t.length)throw new Error("one and only one name per case");var o=t[0],i=e[o];if(n[o]!==undefined)throw new Error("duplicate key detected:"+o);if("cata"===o)throw new Error("cannot have a case named cata (sorry)");if(!k(i))throw new Error("case arguments must be an array");u.push(o),n[o]=function(){var e=arguments.length;if(e!==i.length)throw new Error("Wrong number of arguments to case "+o+". Expected "+i.length+" ("+i+"), got "+e);for(var n=new Array(e),t=0;t<n.length;t++)n[t]=arguments[t];return{fold:function(){if(arguments.length!==a.length)throw new Error("Wrong number of arguments to fold. Expected "+a.length+", got "+arguments.length);return arguments[r].apply(null,n)},match:function(e){var t=gr(e);if(u.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+u.join(",")+"\nActual: "+t.join(","));if(!J(u,function(e){return F(t,e)}))throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+u.join(", "));return e[o].apply(null,n)},log:function(e){V.console.log(e,{constructors:u,constructor:o,params:n})}}}}),n},wf=function(e){return Is(e).exists(wo)},Nf=function(e,t,n){var r=U(uf(ar.fromDom(n.container()),t),Co),o=Z(r).getOr(t);return sc.fromPosition(e,o.dom(),n).filter(wf)},Ef=function(e,t){return Is(t).exists(wo)||Nf(!0,e,t).isSome()},Sf=function(e,t){return(n=t,_.from(n.getNode(!0)).map(ar.fromDom)).exists(wo)||Nf(!1,e,t).isSome();var n},Tf=d(Nf,!1),kf=d(Nf,!0),_f=(ul="\xa0",function(e){return ul===e}),Af=function(e){return/^[\r\n\t ]$/.test(e)},Rf=function(e){return!Af(e)&&!_f(e)},Df=function(n,r,o){return _.from(o.container()).filter(jo.isText).exists(function(e){var t=n?0:-1;return r(e.data.charAt(o.offset()+t))})},Of=d(Df,!0,Af),Bf=d(Df,!1,Af),Pf=function(e){var t=e.container();return jo.isText(t)&&0===t.data.length},If=function(e,t){var n=ks(e,t);return jo.isContentEditableFalse(n)&&!jo.isBogusAll(n)},Lf=d(If,0),Ff=d(If,-1),Mf=function(e,t){return jo.isTable(ks(e,t))},zf=d(Mf,0),Uf=d(Mf,-1),jf=xf([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),Vf=function(e,t,n,r){var o=r.getNode(!1===t);return Hl(ar.fromDom(e),ar.fromDom(n.getNode())).map(function(e){return Jl(e)?jf.remove(e.dom()):jf.moveToElement(o)}).orThunk(function(){return _.some(jf.moveToElement(o))})},Hf=function(u,s,c){return sc.fromPosition(s,u,c).bind(function(e){return a=e.getNode(),_o(ar.fromDom(a))||So(ar.fromDom(a))?_.none():(t=u,o=e,i=function(e){return xo(ar.fromDom(e))&&!Ts(r,o,t)},Bs(!(n=s),r=c).fold(function(){return Bs(n,o).fold(q(!1),i)},i)?_.none():s&&jo.isContentEditableFalse(e.getNode())?Vf(u,s,c,e):!1===s&&jo.isContentEditableFalse(e.getNode(!0))?Vf(u,s,c,e):s&&Ff(c)?_.some(jf.moveToPosition(e)):!1===s&&Lf(c)?_.some(jf.moveToPosition(e)):_.none());var t,n,r,o,i,a})},qf=function(r,e,o){return i=e,a=o.getNode(!1===i),u=i?"after":"before",jo.isElement(a)&&a.getAttribute("data-mce-caret")===u?(t=e,n=o.getNode(!1===e),t&&jo.isContentEditableFalse(n.nextSibling)?_.some(jf.moveToElement(n.nextSibling)):!1===t&&jo.isContentEditableFalse(n.previousSibling)?_.some(jf.moveToElement(n.previousSibling)):_.none()).fold(function(){return Hf(r,e,o)},_.some):Hf(r,e,o).bind(function(e){return t=r,n=o,e.fold(function(e){return _.some(jf.remove(e))},function(e){return _.some(jf.moveToElement(e))},function(e){return Ts(n,e,t)?_.none():_.some(jf.moveToPosition(e))});var t,n});var t,n,i,a,u},$f=function(e,t,n){if(0!==n){var r,o,i,a=e.data.slice(t,t+n),u=t+n>=e.data.length,s=0===t;e.replaceData(t,n,(o=s,i=u,j((r=a).split(""),function(e,t){return-1!==" \f\n\r\t\x0B".indexOf(t)||"\xa0"===t?e.previousCharIsSpace||""===e.str&&o||e.str.length===r.length-1&&i?{previousCharIsSpace:!1,str:e.str+"\xa0"}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}},{previousCharIsSpace:!1,str:""}).str))}},Wf=function(e,t){var n,r=e.data.slice(t),o=r.length-(n=r,n.replace(/^\s+/g,"")).length;return $f(e,t,o)},Kf=function(e,t){return r=e,o=(n=t).container(),i=n.offset(),!1===_u.isTextPosition(n)&&o===r.parentNode&&i>_u.before(r).offset()?_u(t.container(),t.offset()-1):t;var n,r,o,i},Xf=function(e){return Ha(e.previousSibling)?_.some((t=e.previousSibling,jo.isText(t)?_u(t,t.data.length):_u.after(t))):e.previousSibling?sc.lastPositionIn(e.previousSibling):_.none();var t},Yf=function(e){return Ha(e.nextSibling)?_.some((t=e.nextSibling,jo.isText(t)?_u(t,0):_u.before(t))):e.nextSibling?sc.firstPositionIn(e.nextSibling):_.none();var t},Gf=function(r,o){return Xf(o).orThunk(function(){return Yf(o)}).orThunk(function(){return e=r,t=o,n=_u.before(t.previousSibling?t.previousSibling:t.parentNode),sc.prevPosition(e,n).fold(function(){return sc.nextPosition(e,_u.after(t))},_.some);var e,t,n})},Jf=function(n,r){return Yf(r).orThunk(function(){return Xf(r)}).orThunk(function(){return e=n,t=r,sc.nextPosition(e,_u.after(t)).fold(function(){return sc.prevPosition(e,_u.before(t))},_.some);var e,t})},Qf=function(e,t,n){return(r=e,o=t,i=n,r?Jf(o,i):Gf(o,i)).map(d(Kf,n));var r,o,i},Zf=function(t,n,e){e.fold(function(){t.focus()},function(e){t.selection.setRng(e.toRange(),n)})},ed=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(lr(t))},td=function(e){if(Jl(e)){var t=ar.fromHtml('<br data-mce-bogus="1">');return zi(e),Fi(e,t),_.some(_u.before(t.dom()))}return _.none()},nd=function(e,t,l){var n,r,o,i,a=Hr(e).filter(mr),u=qr(e).filter(mr);return Ui(e),(n=a,r=u,o=t,i=function(e,t,n){var r,o,i,a,u=e.dom(),s=t.dom(),c=u.data.length;return o=s,i=l,a=Jn((r=u).data).length,r.appendData(o.data),Ui(ar.fromDom(o)),i&&Wf(r,a),n.container()===s?_u(u,c):n},n.isSome()&&r.isSome()&&o.isSome()?_.some(i(n.getOrDie(),r.getOrDie(),o.getOrDie())):_.none()).orThunk(function(){return l&&(a.each(function(e){return t=e.dom(),n=e.dom().length,r=t.data.slice(0,n),o=r.length-Jn(r).length,$f(t,n-o,o);var t,n,r,o}),u.each(function(e){return Wf(e.dom(),0)})),t})},rd=function(t,n,e,r){void 0===r&&(r=!0);var o,i,a=Qf(n,t.getBody(),e.dom()),u=ta(e,d(ed,t),(o=t.getBody(),function(e){return e.dom()===o})),s=nd(e,a,(i=e,br(t.schema.getTextInlineElements(),lr(i))));t.dom.isEmpty(t.getBody())?(t.setContent(""),t.selection.setCursorLocation()):u.bind(td).fold(function(){r&&Zf(t,n,s)},function(e){r&&Zf(t,n,_.some(e))})},od=function(a,u){var e,t,n,r,o,i;return(e=a.getBody(),t=u,n=a.selection.getRng(),r=Os(t?1:-1,e,n),o=_u.fromRangeStart(r),i=ar.fromDom(e),!1===t&&Ff(o)?_.some(jf.remove(o.getNode(!0))):t&&Lf(o)?_.some(jf.remove(o.getNode())):!1===t&&Lf(o)&&Sf(i,o)?Tf(i,o).map(function(e){return jf.remove(e.getNode())}):t&&Ff(o)&&Ef(i,o)?kf(i,o).map(function(e){return jf.remove(e.getNode())}):qf(e,t,o)).map(function(e){return e.fold((o=a,i=u,function(e){return o._selectionOverrides.hideFakeCaret(),rd(o,i,ar.fromDom(e)),!0}),(n=a,r=u,function(e){var t=r?_u.before(e):_u.after(e);return n.selection.setRng(t.toRange()),!0}),(t=a,function(e){return t.selection.setRng(e.toRange()),!0}));var t,n,r,o,i}).getOr(!1)},id=function(e,t){var n,r=e.selection.getNode();return!!jo.isContentEditableFalse(r)&&(n=ar.fromDom(e.getBody()),z(Qi(n,".mce-offscreen-selection"),Ui),rd(e,t,ar.fromDom(e.selection.getNode())),ql(e),!0)},ad=function(e,t){return e.selection.isCollapsed()?od(e,t):id(e,t)},ud=function(e){var t,n=function(e,t){for(;t&&t!==e;){if(jo.isContentEditableTrue(t)||jo.isContentEditableFalse(t))return t;t=t.parentNode}return null}(e.getBody(),e.selection.getNode());return jo.isContentEditableTrue(n)&&e.dom.isBlock(n)&&e.dom.isEmpty(n)&&(t=e.dom.create("br",{"data-mce-bogus":"1"}),e.dom.setHTML(n,""),n.appendChild(t),e.selection.setRng(_u.before(t).toRange())),!0},sd=jo.isText,cd=function(e){return sd(e)&&e.data[0]===xa},ld=function(e){return sd(e)&&e.data[e.data.length-1]===xa},fd=function(e){return e.ownerDocument.createTextNode(xa)},dd=function(e,t){return e?function(e){if(sd(e.previousSibling))return ld(e.previousSibling)||e.previousSibling.appendData(xa),e.previousSibling;if(sd(e))return cd(e)||e.insertData(0,xa),e;var t=fd(e);return e.parentNode.insertBefore(t,e),t}(t):function(e){if(sd(e.nextSibling))return cd(e.nextSibling)||e.nextSibling.insertData(0,xa),e.nextSibling;if(sd(e))return ld(e)||e.appendData(xa),e;var t=fd(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t}(t)},md=d(dd,!0),gd=d(dd,!1),pd=function(e,t){return jo.isText(e.container())?dd(t,e.container()):dd(t,e.getNode())},hd=function(e,t){var n=t.get();return n&&e.container()===n&&Ta(n)},vd=function(n,e){return e.fold(function(e){ss.remove(n.get());var t=md(e);return n.set(t),_.some(_u(t,t.length-1))},function(e){return sc.firstPositionIn(e).map(function(e){if(hd(e,n))return _u(n.get(),1);ss.remove(n.get());var t=pd(e,!0);return n.set(t),_u(t,1)})},function(e){return sc.lastPositionIn(e).map(function(e){if(hd(e,n))return _u(n.get(),n.get().length-1);ss.remove(n.get());var t=pd(e,!1);return n.set(t),_u(t,t.length-1)})},function(e){ss.remove(n.get());var t=gd(e);return n.set(t),_.some(_u(t,1))})},yd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return _.none()},bd=xf([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Cd=function(e,t){var n=Ss(t,e);return n||e},xd=function(e,t,n){var r=Vl.normalizeForwards(n),o=Cd(t,r.container());return Vl.findRootInline(e,o,r).fold(function(){return sc.nextPosition(o,r).bind(d(Vl.findRootInline,e,o)).map(function(e){return bd.before(e)})},_.none)},wd=function(e,t){return null===Qu(e,t)},Nd=function(e,t,n){return Vl.findRootInline(e,t,n).filter(d(wd,t))},Ed=function(e,t,n){var r=Vl.normalizeBackwards(n);return Nd(e,t,r).bind(function(e){return sc.prevPosition(e,r).isNone()?_.some(bd.start(e)):_.none()})},Sd=function(e,t,n){var r=Vl.normalizeForwards(n);return Nd(e,t,r).bind(function(e){return sc.nextPosition(e,r).isNone()?_.some(bd.end(e)):_.none()})},Td=function(e,t,n){var r=Vl.normalizeBackwards(n),o=Cd(t,r.container());return Vl.findRootInline(e,o,r).fold(function(){return sc.prevPosition(o,r).bind(d(Vl.findRootInline,e,o)).map(function(e){return bd.after(e)})},_.none)},kd=function(e){return!1===Vl.isRtl(Ad(e))},_d=function(e,t,n){return yd([xd,Ed,Sd,Td],[e,t,n]).filter(kd)},Ad=function(e){return e.fold($,$,$,$)},Rd=function(e){return e.fold(q("before"),q("start"),q("end"),q("after"))},Dd=function(e){return e.fold(bd.before,bd.before,bd.after,bd.after)},Od=function(n,e,r,t,o,i){return ru(Vl.findRootInline(e,r,t),Vl.findRootInline(e,r,o),function(e,t){return e!==t&&Vl.hasSameParentBlock(r,e,t)?bd.after(n?e:t):i}).getOr(i)},Bd=function(e,r){return e.fold(q(!0),function(e){return n=r,!(Rd(t=e)===Rd(n)&&Ad(t)===Ad(n));var t,n})},Pd=function(e,t){return e?t.fold(H(_.some,bd.start),_.none,H(_.some,bd.after),_.none):t.fold(_.none,H(_.some,bd.before),_.none,H(_.some,bd.end))},Id=function(a,u,s,c){var e=Vl.normalizePosition(a,c),l=_d(u,s,e);return _d(u,s,e).bind(d(Pd,a)).orThunk(function(){return t=a,n=u,r=s,o=l,e=c,i=Vl.normalizePosition(t,e),sc.fromPosition(t,r,i).map(d(Vl.normalizePosition,t)).fold(function(){return o.map(Dd)},function(e){return _d(n,r,e).map(d(Od,t,n,r,i,e)).filter(d(Bd,o))}).filter(kd);var t,n,r,o,e,i})},Ld=_d,Fd=Id,Md=(d(Id,!1),d(Id,!0),Dd),zd=function(e){return e.fold(bd.start,bd.start,bd.end,bd.end)},Ud=function(e){return D(e.selection.getSel().modify)},jd=function(e,t,n){var r=e?1:-1;return t.setRng(_u(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},Vd=function(e,t){var n=t.selection.getRng(),r=e?_u.fromRangeEnd(n):_u.fromRangeStart(n);return!!Ud(t)&&(e&&Aa(r)?jd(!0,t.selection,r):!(e||!Ra(r))&&jd(!1,t.selection,r))},Hd=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},qd=function(e){return!1!==e.settings.inline_boundaries},$d=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},Wd=function(t,e,n){return vd(e,n).map(function(e){return Hd(t,e),n})},Kd=function(e,t,n){return function(){return!!qd(t)&&Vd(e,t)}},Xd={move:function(a,u,s){return function(){return!!qd(a)&&(t=a,n=u,e=s,r=t.getBody(),o=_u.fromRangeStart(t.selection.getRng()),i=d(Vl.isInlineTarget,t),Fd(e,i,r,o).bind(function(e){return Wd(t,n,e)})).isSome();var t,n,e,r,o,i}},moveNextWord:d(Kd,!0),movePrevWord:d(Kd,!1),setupSelectedState:function(a){var u=Hi(null),s=d(Vl.isInlineTarget,a);return a.on("NodeChange",function(e){var t,n,r,o,i;qd(a)&&(t=s,n=a.dom,r=e.parents,o=U(n.select('*[data-mce-selected="inline-boundary"]'),t),i=U(r,t),z(Q(o,i),d($d,!1)),z(Q(i,o),d($d,!0)),function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=_u.fromRangeStart(e.selection.getRng());_u.isTextPosition(n)&&!1===Vl.isAtZwsp(n)&&(Hd(e,ss.removeAndReposition(t.get(),n)),t.set(null))}}(a,u),function(n,r,o,e){if(r.selection.isCollapsed()){var t=U(e,n);z(t,function(e){var t=_u.fromRangeStart(r.selection.getRng());Ld(n,r.getBody(),t).bind(function(e){return Wd(r,o,e)})})}}(s,a,u,e.parents))}),u},setCaretPosition:Hd},Yd=function(t,n){return function(e){return vd(n,e).map(function(e){return Xd.setCaretPosition(t,e),!0}).getOr(!1)}},Gd=function(r,o,i,a){var u=r.getBody(),s=d(Vl.isInlineTarget,r);r.undoManager.ignore(function(){var e,t,n;r.selection.setRng((e=i,t=a,(n=V.document.createRange()).setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n)),r.execCommand("Delete"),Ld(s,u,_u.fromRangeStart(r.selection.getRng())).map(zd).map(Yd(r,o))}),r.nodeChanged()},Jd=function(n,r,i,o){var e,t,a=(e=n.getBody(),t=o.container(),Ss(t,e)||e),u=d(Vl.isInlineTarget,n),s=Ld(u,a,o);return s.bind(function(e){return i?e.fold(q(_.some(zd(e))),_.none,q(_.some(Md(e))),_.none):e.fold(_.none,q(_.some(Md(e))),_.none,q(_.some(zd(e))))}).map(Yd(n,r)).getOrThunk(function(){var t=sc.navigate(i,a,o),e=t.bind(function(e){return Ld(u,a,e)});return s.isSome()&&e.isSome()?Vl.findRootInline(u,a,o).map(function(e){return o=e,!!ru(sc.firstPositionIn(o),sc.lastPositionIn(o),function(e,t){var n=Vl.normalizePosition(!0,e),r=Vl.normalizePosition(!1,t);return sc.nextPosition(o,n).map(function(e){return e.isEqual(r)}).getOr(!0)}).getOr(!0)&&(rd(n,i,ar.fromDom(e)),!0);var o}).getOr(!1):e.bind(function(e){return t.map(function(e){return i?Gd(n,r,o,e):Gd(n,r,e,o),!0})}).getOr(!1)})},Qd=function(e,t,n){if(e.selection.isCollapsed()&&!1!==e.settings.inline_boundaries){var r=_u.fromRangeStart(e.selection.getRng());return Jd(e,t,n,r)}return!1},Zd=Ar("start","end"),em=Ar("rng","table","cells"),tm=xf([{removeTable:["element"]},{emptyCells:["cells"]}]),nm=function(e,t){return ia(ar.fromDom(e),"td,th",t)},rm=function(e,t){return ra(e,"table",t)},om=function(e){return!1===Mr(e.start(),e.end())},im=function(e,n){return rm(e.start(),n).bind(function(t){return rm(e.end(),n).bind(function(e){return Mr(t,e)?_.some(t):_.none()})})},am=function(e){return Qi(e,"td,th")},um=function(r,e){var t=nm(e.startContainer,r),n=nm(e.endContainer,r);return e.collapsed?_.none():ru(t,n,Zd).fold(function(){return t.fold(function(){return n.bind(function(t){return rm(t,r).bind(function(e){return Z(am(e)).map(function(e){return Zd(e,t)})})})},function(t){return rm(t,r).bind(function(e){return ee(am(e)).map(function(e){return Zd(t,e)})})})},function(e){return sm(r,e)?_.none():(n=r,rm((t=e).start(),n).bind(function(e){return ee(am(e)).map(function(e){return Zd(t.start(),e)})}));var t,n})},sm=function(e,t){return im(t,e).isSome()},cm=function(e,t){var n,r,o,i,a=d(Mr,e);return(n=t,r=a,o=nm(n.startContainer,r),i=nm(n.endContainer,r),ru(o,i,Zd).filter(om).filter(function(e){return sm(r,e)}).orThunk(function(){return um(r,n)})).bind(function(e){return im(t=e,a).map(function(e){return em(t,e,am(e))});var t})},lm=function(e,t){return Y(e,function(e){return Mr(e,t)})},fm=function(n){return(r=n,ru(lm(r.cells(),r.rng().start()),lm(r.cells(),r.rng().end()),function(e,t){return r.cells().slice(e,t+1)})).map(function(e){var t=n.cells();return e.length===t.length?tm.removeTable(n.table()):tm.emptyCells(e)});var r},dm=function(e,t){return cm(e,t).bind(fm)},mm=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},gm=mm,pm=function(e){return G(e,function(e){var t=Za(e);return t?[ar.fromDom(t)]:[]})},hm=function(e){return 1<mm(e).length},vm=function(e){return U(pm(e),_o)},ym=function(e){return Qi(e,"td[data-mce-selected],th[data-mce-selected]")},bm=function(e,t){var n=ym(t),r=vm(e);return 0<n.length?n:r},Cm=bm,xm=function(e){return bm(gm(e.selection.getSel()),ar.fromDom(e.getBody()))},wm=function(e,t){return z(t,nl),e.selection.setCursorLocation(t[0].dom(),0),!0},Nm=function(e,t){return rd(e,!1,t),!0},Em=function(n,e,r,t){return Tm(e,t).fold(function(){return t=n,dm(e,r).map(function(e){return e.fold(d(Nm,t),d(wm,t))});var t},function(e){return km(n,e)}).getOr(!1)},Sm=function(e,t){return X(uf(t,e),_o)},Tm=function(e,t){return X(uf(t,e),function(e){return"caption"===lr(e)})},km=function(e,t){return nl(t),e.selection.setCursorLocation(t.dom(),0),_.some(!0)},_m=function(u,s,c,l,f){return sc.navigate(c,u.getBody(),f).bind(function(e){return r=l,o=c,i=f,a=e,sc.firstPositionIn(r.dom()).bind(function(t){return sc.lastPositionIn(r.dom()).map(function(e){return o?i.isEqual(t)&&a.isEqual(e):i.isEqual(e)&&a.isEqual(t)})}).getOr(!0)?km(u,l):(t=l,n=e,Tm(s,ar.fromDom(n.getNode())).map(function(e){return!1===Mr(e,t)}));var t,n,r,o,i,a}).or(_.some(!0))},Am=function(a,u,s,e){var c=_u.fromRangeStart(a.selection.getRng());return Sm(s,e).bind(function(e){return Jl(e)?km(a,e):(t=a,n=s,r=u,o=e,i=c,sc.navigate(r,t.getBody(),i).bind(function(e){return Sm(n,ar.fromDom(e.getNode())).map(function(e){return!1===Mr(e,o)})}));var t,n,r,o,i})},Rm=function(a,u,e){var s=ar.fromDom(a.getBody());return Tm(s,e).fold(function(){return Am(a,u,s,e)},function(e){return t=a,n=u,r=s,o=e,i=_u.fromRangeStart(t.selection.getRng()),Jl(o)?km(t,o):_m(t,r,n,o,i);var t,n,r,o,i}).getOr(!1)},Dm=function(e,t){var n,r,o,i,a,u=ar.fromDom(e.selection.getStart(!0)),s=xm(e);return e.selection.isCollapsed()&&0===s.length?Rm(e,t,u):(n=e,r=u,o=ar.fromDom(n.getBody()),i=n.selection.getRng(),0!==(a=xm(n)).length?wm(n,a):Em(n,o,i,r))},Om=wc.isEq,Bm=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++)if(!1===r[o].inherit&&e.dom.is(t,r[o].selector))return!0;return!1},Pm=function(t,e,n,r){var o=t.dom.getRoot();return e!==o&&(e=t.dom.getParent(e,function(e){return!!Bm(t,e,n)||e.parentNode===o||!!Fm(t,e,n,r,!0)}),Fm(t,e,n,r))},Im=function(e,t,n){return!!Om(t,n.inline)||!!Om(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)},Lm=function(e,t,n,r,o,i){var a,u,s,c=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(c)if("undefined"==typeof c.length){for(a in c)if(c.hasOwnProperty(a)){if(u="attributes"===r?e.getAttrib(t,a):wc.getStyle(e,t,a),o&&!u&&!n.exact)return;if((!o||n.exact)&&!Om(u,wc.normalizeStyleValue(e,wc.replaceVars(c[a],i),a)))return}}else for(s=0;s<c.length;s++)if("attributes"===r?e.getAttrib(t,c[s]):wc.getStyle(e,t,c[s]))return n;return n},Fm=function(e,t,n,r,o){var i,a,u,s,c=e.formatter.get(n),l=e.dom;if(c&&t)for(a=0;a<c.length;a++)if(i=c[a],Im(e.dom,t,i)&&Lm(l,t,i,"attributes",o,r)&&Lm(l,t,i,"styles",o,r)){if(s=i.classes)for(u=0;u<s.length;u++)if(!e.dom.hasClass(t,s[u]))return;return i}},Mm={matchNode:Fm,matchName:Im,match:function(e,t,n,r){var o;return r?Pm(e,r,t,n):(r=e.selection.getNode(),!!Pm(e,r,t,n)||!((o=e.selection.getStart())===r||!Pm(e,o,t,n)))},matchAll:function(r,o,i){var e,a=[],u={};return e=r.selection.getStart(),r.dom.getParent(e,function(e){var t,n;for(t=0;t<o.length;t++)n=o[t],!u[n]&&Fm(r,e,n,i)&&(u[n]=!0,a.push(n))},r.dom.getRoot()),a},canApply:function(e,t){var n,r,o,i,a,u=e.formatter.get(t),s=e.dom;if(u)for(n=e.selection.getStart(),r=wc.getParents(s,n),i=u.length-1;0<=i;i--){if(!(a=u[i].selector)||u[i].defaultBlock)return!0;for(o=r.length-1;0<=o;o--)if(s.is(r[o],a))return!0}return!1},matchesUnInheritedFormatSelector:Bm},zm=function(e,t){return e.splitText(t)},Um=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&jo.isText(t)?0<n&&n<t.nodeValue.length&&(t=(r=zm(t,n)).previousSibling,n<o?(t=r=zm(r,o-=n).previousSibling,o=r.nodeValue.length,n=0):o=0):(jo.isText(t)&&0<n&&n<t.nodeValue.length&&(t=zm(t,n),n=0),jo.isText(r)&&0<o&&o<r.nodeValue.length&&(o=(r=zm(r,o).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},jm=xa,Vm="_mce_caret",Hm=function(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==jm||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length},qm=function(e){var t;if(e)for(e=(t=new go(e,e)).current();e;e=t.next())if(3===e.nodeType)return e;return null},$m=function(e){var t=ar.fromTag("span");return Nr(t,{id:Vm,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Fi(t,ar.fromText(jm)),t},Wm=function(e,t,n){void 0===n&&(n=!0);var r,o=e.dom,i=e.selection;if(Hm(t))rd(e,!1,ar.fromDom(t),n);else{var a=i.getRng(),u=o.getParent(t,o.isBlock),s=((r=qm(t))&&r.nodeValue.charAt(0)===jm&&r.deleteData(0,1),r);a.startContainer===s&&0<a.startOffset&&a.setStart(s,a.startOffset-1),a.endContainer===s&&0<a.endOffset&&a.setEnd(s,a.endOffset-1),o.remove(t,!0),u&&o.isEmpty(u)&&nl(ar.fromDom(u)),i.setRng(a)}},Km=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)Wm(e,t,n);else if(!(t=Qu(e.getBody(),o.getStart())))for(;t=r.get(Vm);)Wm(e,t,!1)},Xm=function(e,t,n){var r=e.dom,o=r.getParent(n,d(wc.isTextBlock,e));o&&r.isEmpty(o)?n.parentNode.replaceChild(t,n):(tl(ar.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},Ym=function(e,t){return e.appendChild(t),t},Gm=function(e,t){var n,r,o=(n=function(e,t){return Ym(e,t.cloneNode(!1))},r=t,function(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n)}(e,function(e){r=n(r,e)}),r);return Ym(o,o.ownerDocument.createTextNode(jm))},Jm=function(i){i.on("mouseup keydown",function(e){var t,n,r,o;t=i,n=e.keyCode,r=t.selection,o=t.getBody(),Km(t,null,!1),8!==n&&46!==n||!r.isCollapsed()||r.getStart().innerHTML!==jm||Km(t,Qu(o,r.getStart())),37!==n&&39!==n||Km(t,Qu(o,r.getStart()))})},Qm=function(e,t){return e.schema.getTextInlineElements().hasOwnProperty(lr(t))&&!Ju(t.dom())&&!jo.isBogus(t.dom())},Zm=function(e){return 1===Kr(e).length},eg=function(e,t,n,r){var o,i,a,u,s=d(Qm,t),c=W(U(r,s),function(e){return e.dom()});if(0===c.length)rd(t,e,n);else{var l=(o=n.dom(),i=c,a=$m(!1),u=Gm(i,a.dom()),Pi(ar.fromDom(o),a),Ui(ar.fromDom(o)),_u(u,0));t.selection.setRng(l.toRange())}},tg=function(r,o){var t,e=ar.fromDom(r.getBody()),n=ar.fromDom(r.selection.getStart()),i=U((t=uf(n,e),Y(t,Co).fold(q(t),function(e){return t.slice(0,e)})),Zm);return ee(i).map(function(e){var t,n=_u.fromRangeStart(r.selection.getRng());return!(!$l(o,n,e.dom())||Ju((t=e).dom())&&Hm(t.dom())||(eg(o,r,e,i),0))}).getOr(!1)},ng=function(e,t){return!!e.selection.isCollapsed()&&tg(e,t)},rg=function(e){for(var t=0,n=0,r=e;r&&r.nodeType;)t+=r.offsetLeft||0,n+=r.offsetTop||0,r=r.offsetParent;return{x:t,y:n}},og=function(e,t,n){var r,o,i,a,u,s=e.dom,c=s.getRoot(),l=0;if(u={elm:t,alignToTop:n},e.fire("scrollIntoView",u),!u.isDefaultPrevented()&&jo.isElement(t)){if(!1===n&&(l=t.offsetHeight),"BODY"!==c.nodeName){var f=e.selection.getScrollContainer();if(f)return r=rg(t).y-rg(f).y+l,a=f.clientHeight,void((r<(i=f.scrollTop)||i+a<r+25)&&(f.scrollTop=r<i?r:r-a+25))}o=s.getViewPort(e.getWin()),r=s.getPos(t).y+l,i=o.y,a=o.h,(r<o.y||i+a<r+25)&&e.getWin().scrollTo(0,r<i?r:r-a+25)}},ig=function(d,e){Z(Su.fromRangeStart(e).getClientRects()).each(function(e){var t,n,r,o,i,a,u,s,c,l=function(e){if(e.inline)return e.getBody().getBoundingClientRect();var t=e.getWin();return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight}}(d),f={x:(i=t=l,a=n=e,a.left>i.left&&a.right<i.right?0:a.left<i.left?a.left-i.left:a.right-i.right),y:(r=t,o=n,o.top>r.top&&o.bottom<r.bottom?0:o.top<r.top?o.top-r.top:o.bottom-r.bottom)};s=0!==f.x?0<f.x?f.x+4:f.x-4:0,c=0!==f.y?0<f.y?f.y+4:f.y-4:0,(u=d).inline?(u.getBody().scrollLeft+=s,u.getBody().scrollTop+=c):u.getWin().scrollBy(s,c)})},ag=jo.isContentEditableTrue,ug=jo.isContentEditableFalse,sg=function(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)},cg=function(e,t){var n,r;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:((r=(n=t).ownerDocument.createRange()).selectNode(n),r)},lg=function(e,t,n){var r=Os(1,e.getBody(),t),o=_u.fromRangeStart(r),i=o.getNode();if(ug(i))return sg(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(ug(a))return sg(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),function(e){return ug(e)||ag(e)});return ug(u)?sg(1,e,u,!1,n):null},fg=function(e,t,n){if(!t||!t.collapsed)return t;var r=lg(e,t,n);return r||t},dg=function(e,t){e.selection.setRng(t),ig(e,e.selection.getRng())},mg=function(e,t,n,r,o,i){var a,u,s=sg(r,e,i.getNode(!o),o,!0);if(t.collapsed){var c=t.cloneRange();o?c.setEnd(s.startContainer,s.startOffset):c.setStart(s.endContainer,s.endOffset),c.deleteContents()}else t.deleteContents();return e.selection.setRng(s),a=e.dom,u=n,jo.isText(u)&&0===u.data.length&&a.remove(u),!0},gg=function(e,t){return function(e,t){var n=e.selection.getRng();if(!jo.isText(n.commonAncestorContainer))return!1;var r=t?Tu.Forwards:Tu.Backwards,o=Js(e.getBody()),i=d(Ls,o.next),a=d(Ls,o.prev),u=t?i:a,s=t?Lf:Ff,c=Ps(r,e.getBody(),n),l=Vl.normalizePosition(t,u(c));if(!l)return!1;if(s(l))return mg(e,n,c.getNode(),r,t,l);var f=u(l);return!!(f&&s(f)&&Fs(l,f))&&mg(e,n,c.getNode(),r,t,f)}(e,t)},pg=function(e,t){e.getDoc().execCommand(t,!1,null)},hg=function(e){ad(e,!1)||gg(e,!1)||Qd(e,!1)||hf(e,!1)||Dm(e)||Cf(e,!1)||ng(e,!1)||(pg(e,"Delete"),ql(e))},vg=function(e){ad(e,!0)||gg(e,!0)||Qd(e,!0)||hf(e,!0)||Dm(e)||Cf(e,!0)||ng(e,!0)||pg(e,"ForwardDelete")},yg=function(o,t,e){var n=function(e){return t=o,n=e.dom(),r=_r(n,t),_.from(r).filter(function(e){return 0<e.length});var t,n,r};return na(ar.fromDom(e),function(e){return n(e).isSome()},function(e){return Mr(ar.fromDom(t),e)}).bind(n)},bg=function(o){return function(r,e){return _.from(e).map(ar.fromDom).filter(dr).bind(function(e){return yg(o,r,e.dom()).or((t=o,n=e.dom(),_.from(Si.DOM.getStyle(n,t,!0))));var t,n}).getOr("")}},Cg={getFontSize:bg("font-size"),getFontFamily:H(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},bg("font-family")),toPt:function(e,t){return/[0-9.]+px$/.test(e)?(n=72*parseInt(e,10)/96,r=t||0,o=Math.pow(10,r),Math.round(n*o)/o+"pt"):e;var n,r,o}},xg=function(e){return sc.firstPositionIn(e.getBody()).map(function(e){var t=e.container();return jo.isText(t)?t.parentNode:t})},wg=function(o){return _.from(o.selection.getRng()).bind(function(e){var t,n,r=o.getBody();return n=r,(t=e).startContainer===n&&0===t.startOffset?_.none():_.from(o.selection.getStart(!0))})},Ng=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(1<=n&&n<=7){var r=Al(e),o=Rl(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},Eg=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},Sg=function(e,t,n){return null!==function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(e,t,n)},Tg=function(e,t,n){return Sg(e,t,function(e){return e.nodeName===n})},kg=function(e){return e&&"TABLE"===e.nodeName},_g=function(e,t,n){for(var r=new go(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(jo.isBr(t))return!0},Ag=function(e,t,n,r,o){var i,a,u,s,c,l,f=e.getRoot(),d=e.schema.getNonEmptyElements();if(u=e.getParent(o.parentNode,e.isBlock)||f,r&&jo.isBr(o)&&t&&e.isEmpty(u))return _.some(Su(o.parentNode,e.nodeIndex(o)));for(i=new go(o,u);s=i[r?"prev":"next"]();){if("false"===e.getContentEditableParent(s)||(l=f,ka(c=s)&&!1===Sg(c,l,Ju)))return _.none();if(jo.isText(s)&&0<s.nodeValue.length)return!1===Tg(s,f,"A")?_.some(Su(s,r?s.nodeValue.length:0)):_.none();if(e.isBlock(s)||d[s.nodeName.toLowerCase()])return _.none();a=s}return n&&a?_.some(Su(a,0)):_.none()},Rg=function(e,t,n,r){var o,i,a,u,s,c,l,f,d,m,g=e.getRoot(),p=!1;if(o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"],l=jo.isElement(o)&&i===o.childNodes.length,s=e.schema.getNonEmptyElements(),c=n,ka(o))return _.none();if(jo.isElement(o)&&i>o.childNodes.length-1&&(c=!1),jo.isDocument(o)&&(o=g,i=0),o===g){if(c&&(u=o.childNodes[0<i?i-1:0])){if(ka(u))return _.none();if(s[u.nodeName]||kg(u))return _.none()}if(o.hasChildNodes()){if(i=Math.min(!c&&0<i?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=jo.isText(o)&&l?o.data.length:0,!t&&o===g.lastChild&&kg(o))return _.none();if(function(e,t){for(;t&&t!==e;){if(jo.isContentEditableFalse(t))return!0;t=t.parentNode}return!1}(g,o)||ka(o))return _.none();if(o.hasChildNodes()&&!1===kg(o)){a=new go(u=o,g);do{if(jo.isContentEditableFalse(u)||ka(u)){p=!1;break}if(jo.isText(u)&&0<u.nodeValue.length){i=c?0:u.nodeValue.length,o=u,p=!0;break}if(s[u.nodeName.toLowerCase()]&&(!(f=u)||!/^(TD|TH|CAPTION)$/.test(f.nodeName))){i=e.nodeIndex(u),o=u.parentNode,c||i++,p=!0;break}}while(u=c?a.next():a.prev())}}}return t&&(jo.isText(o)&&0===i&&Ag(e,l,t,!0,o).each(function(e){o=e.container(),i=e.offset(),p=!0}),jo.isElement(o)&&((u=o.childNodes[i])||(u=o.childNodes[i-1]),!u||!jo.isBr(u)||(m="A",(d=u).previousSibling&&d.previousSibling.nodeName===m)||_g(e,u,!1)||_g(e,u,!0)||Ag(e,l,t,!0,u).each(function(e){o=e.container(),i=e.offset(),p=!0}))),c&&!t&&jo.isText(o)&&i===o.nodeValue.length&&Ag(e,l,t,!1,o).each(function(e){o=e.container(),i=e.offset(),p=!0}),p?_.some(Su(o,i)):_.none()},Dg=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=Su.fromRangeStart(t);return Rg(e,n,!0,r).each(function(e){n&&Su.isAbove(o,e)||r.setStart(e.container(),e.offset())}),n||Rg(e,n,!1,r).each(function(e){r.setEnd(e.container(),e.offset())}),n&&r.collapse(!0),Eg(t,r)?_.none():_.some(r)},Og=function(e,t,n){var r=e.create("span",{},"&nbsp;");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},Bg=function(e,t,n,r){var o=e.createRng();r?(o.setStartBefore(n),o.setEndBefore(n)):(o.setStartAfter(n),o.setEndAfter(n)),t.setRng(o)},Pg=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();Dg(i,a).each(function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)});var u=a.startOffset,s=a.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var c=u>s.childNodes.length-1;s=s.childNodes[Math.min(u,s.childNodes.length-1)]||s,u=c&&3===s.nodeType?s.nodeValue.length:0}var l=i.getParent(s,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",m=t&&t.ctrlKey;"LI"!==d||m||(l=f),s&&3===s.nodeType&&u>=s.nodeValue.length&&(function(e,t,n){for(var r,o=new go(t,n),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||0<r.length)return!0}(e.schema,s,l)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),zu(i,a,n),Og(i,o,n),Bg(i,o,n,r),e.undoManager.add()},Ig=function(e,t){var n=ar.fromTag("br");Pi(ar.fromDom(t),n),e.undoManager.add()},Lg=function(e,t){Fg(e.getBody(),t)||Ii(ar.fromDom(t),ar.fromTag("br"));var n=ar.fromTag("br");Ii(ar.fromDom(t),n),Og(e.dom,e.selection,n.dom()),Bg(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},Fg=function(e,t){return n=_u.after(t),!!jo.isBr(n.getNode())||sc.nextPosition(e,_u.after(t)).map(function(e){return jo.isBr(e.getNode())}).getOr(!1);var n},Mg=function(e){return e&&"A"===e.nodeName&&"href"in e},zg=function(e){return e.fold(q(!1),Mg,Mg,q(!1))},Ug=function(e,t){t.fold(o,d(Ig,e),d(Lg,e),o)},jg=function(e,t){var n,r,o,i=(n=e,r=d(Vl.isInlineTarget,n),o=_u.fromRangeStart(n.selection.getRng()),Ld(r,n.getBody(),o).filter(zg));i.isSome()?i.each(d(Ug,e)):Pg(e,t)},Vg={create:Ar("start","soffset","finish","foffset")},Hg=xf([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),qg=(Hg.before,Hg.on,Hg.after,function(e){return e.fold($,$,$)}),$g=xf([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Wg={domRange:$g.domRange,relative:$g.relative,exact:$g.exact,exactFromRange:function(e){return $g.exact(e.start(),e.soffset(),e.finish(),e.foffset())},getWin:function(e){var t=e.match({domRange:function(e){return ar.fromDom(e.startContainer)},relative:function(e,t){return qg(e)},exact:function(e,t,n,r){return e}});return jr(t)},range:Vg.create},Kg=or.detect().browser,Xg=function(e,t){var n=mr(t)?Mc(t).length:Kr(t).length+1;return n<e?n:e<0?0:e},Yg=function(e){return Wg.range(e.start(),Xg(e.soffset(),e.start()),e.finish(),Xg(e.foffset(),e.finish()))},Gg=function(e,t){return!jo.isRestrictedNode(t.dom())&&(zr(e,t)||Mr(e,t))},Jg=function(t){return function(e){return Gg(t,e.start())&&Gg(t,e.finish())}},Qg=function(e){return!0===e.inline||Kg.isIE()},Zg=function(e){return Wg.range(ar.fromDom(e.startContainer),e.startOffset,ar.fromDom(e.endContainer),e.endOffset)},ep=function(e){var t=e.getSelection();return(t&&0!==t.rangeCount?_.from(t.getRangeAt(0)):_.none()).map(Zg)},tp=function(e){var t=jr(e);return ep(t.dom()).filter(Jg(e))},np=function(e,t){return _.from(t).filter(Jg(e)).map(Yg)},rp=function(e){var t=V.document.createRange();try{return t.setStart(e.start().dom(),e.soffset()),t.setEnd(e.finish().dom(),e.foffset()),_.some(t)}catch(n){return _.none()}},op=function(e){return(e.bookmark?e.bookmark:_.none()).bind(d(np,ar.fromDom(e.getBody()))).bind(rp)},ip=function(e){var t=Qg(e)?tp(ar.fromDom(e.getBody())):_.none();e.bookmark=t.isSome()?t:e.bookmark},ap=function(t){op(t).each(function(e){t.selection.setRng(e)})},up=op,sp=function(e){return Eo(e)||So(e)},cp=function(e){return U(W(e.selection.getSelectedBlocks(),ar.fromDom),function(e){return!sp(e)&&!Vr(e).map(sp).getOr(!1)})},lp=function(e,t){var n=e.settings,r=e.dom,o=e.selection,i=e.formatter,a=/[a-z%]+$/i.exec(n.indentation)[0],u=parseInt(n.indentation,10),s=e.getParam("indent_use_margin",!1);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||n.forced_root_block||r.getParent(o.getNode(),r.isBlock)||i.apply("div"),z(cp(e),function(e){!function(e,t,n,r,o,i){if("false"!==e.getContentEditable(i)){var a=n?"margin":"padding";if(a="TABLE"===i.nodeName?"margin":a,a+="rtl"===e.getStyle(i,"direction",!0)?"Right":"Left","outdent"===t){var u=Math.max(0,parseInt(i.style[a]||0,10)-r);e.setStyle(i,a,u?u+o:"")}else u=parseInt(i.style[a]||0,10)+r+o,e.setStyle(i,a,u)}}(r,t,s,u,a,e.dom())})},fp=Xt.each,dp=Xt.extend,mp=Xt.map,gp=Xt.inArray;function pp(s){var o,i,a,t,c={state:{},exec:{},value:{}},n=s.settings;s.on("PreInit",function(){o=s.dom,i=s.selection,n=s.settings,a=s.formatter});var r=function(e){var t;if(!s.quirks.isHidden()&&!s.removed){if(e=e.toLowerCase(),t=c.state[e])return t(e);try{return s.getDoc().queryCommandState(e)}catch(n){}return!1}},e=function(e,n){n=n||"exec",fp(e,function(t,e){fp(e.toLowerCase().split(","),function(e){c[n][e]=t})})},u=function(e,t,n){e=e.toLowerCase(),c.value[e]=function(){return t.call(n||s)}};dp(this,{execCommand:function(t,n,r,e){var o,i,a=!1;if(!s.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(t)||e&&e.skip_focus?ap(s):s.focus(),(e=s.fire("BeforeExecCommand",{command:t,ui:n,value:r})).isDefaultPrevented())return!1;if(i=t.toLowerCase(),o=c.exec[i])return o(i,n,r),s.fire("ExecCommand",{command:t,ui:n,value:r}),!0;if(fp(s.plugins,function(e){if(e.execCommand&&e.execCommand(t,n,r))return s.fire("ExecCommand",{command:t,ui:n,value:r}),!(a=!0)}),a)return a;if(s.theme&&s.theme.execCommand&&s.theme.execCommand(t,n,r))return s.fire("ExecCommand",{command:t,ui:n,value:r}),!0;try{a=s.getDoc().execCommand(t,n,r)}catch(u){}return!!a&&(s.fire("ExecCommand",{command:t,ui:n,value:r}),!0)}},queryCommandState:r,queryCommandValue:function(e){var t;if(!s.quirks.isHidden()&&!s.removed){if(e=e.toLowerCase(),t=c.value[e])return t(e);try{return s.getDoc().queryCommandValue(e)}catch(n){}}},queryCommandSupported:function(e){if(e=e.toLowerCase(),c.exec[e])return!0;try{return s.getDoc().queryCommandSupported(e)}catch(t){}return!1},addCommands:e,addCommand:function(e,o,i){e=e.toLowerCase(),c.exec[e]=function(e,t,n,r){return o.call(i||s,t,n,r)}},addQueryStateHandler:function(e,t,n){e=e.toLowerCase(),c.state[e]=function(){return t.call(n||s)}},addQueryValueHandler:u,hasCustomCommand:function(e){return e=e.toLowerCase(),!!c.exec[e]}});var l=function(e,t,n){return t===undefined&&(t=!1),n===undefined&&(n=null),s.getDoc().execCommand(e,t,n)},f=function(e){return a.match(e)},d=function(e,t){a.toggle(e,t?{value:t}:undefined),s.nodeChanged()},m=function(e){t=i.getBookmark(e)},g=function(){i.moveToBookmark(t)};e({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){s.undoManager.add()},"Cut,Copy,Paste":function(e){var t,n=s.getDoc();try{l(e)}catch(o){t=!0}if("paste"!==e||n.queryCommandEnabled(e)||(t=!0),t||!n.queryCommandSupported(e)){var r=s.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");fe.mac&&(r=r.replace(/Ctrl\+/g,"\u2318+")),s.notificationManager.open({text:r,type:"error"})}},unlink:function(){if(i.isCollapsed()){var e=s.dom.getParent(s.selection.getStart(),"a");e&&s.dom.remove(e,!0)}else a.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(e){var t=e.substring(7);"full"===t&&(t="justify"),fp("left,center,right,justify".split(","),function(e){t!==e&&a.remove("align"+e)}),"none"!==t&&d("align"+t)},"InsertUnorderedList,InsertOrderedList":function(e){var t,n;l(e),(t=o.getParent(i.getNode(),"ol,ul"))&&(n=t.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(n.nodeName)&&(m(),o.split(n,t),g()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){d(e)},"ForeColor,HiliteColor":function(e,t,n){d(e,n)},FontName:function(e,t,n){var r,o;o=n,(r=s).formatter.toggle("fontname",{value:Ng(r,o)}),r.nodeChanged()},FontSize:function(e,t,n){var r,o;o=n,(r=s).formatter.toggle("fontsize",{value:Ng(r,o)}),r.nodeChanged()},RemoveFormat:function(e){a.remove(e)},mceBlockQuote:function(){d("blockquote")},FormatBlock:function(e,t,n){return d(n||"p")},mceCleanup:function(){var e=i.getBookmark();s.setContent(s.getContent()),i.moveToBookmark(e)},mceRemoveNode:function(e,t,n){var r=n||i.getNode();r!==s.getBody()&&(m(),s.dom.remove(r,!0),g())},mceSelectNodeDepth:function(e,t,n){var r=0;o.getParent(i.getNode(),function(e){if(1===e.nodeType&&r++===n)return i.select(e),!1},s.getBody())},mceSelectNode:function(e,t,n){i.select(n)},mceInsertContent:function(e,t,n){ml(s,n)},mceInsertRawHTML:function(e,t,n){i.setContent("tiny_mce_marker");var r=s.getContent();s.setContent(r.replace(/tiny_mce_marker/g,function(){return n}))},mceToggleFormat:function(e,t,n){d(n)},mceSetContent:function(e,t,n){s.setContent(n)},"Indent,Outdent":function(e){lp(s,e)},mceRepaint:function(){},InsertHorizontalRule:function(){s.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){s.hasVisual=!s.hasVisual,s.addVisual()},mceReplaceContent:function(e,t,n){s.execCommand("mceInsertContent",!1,n.replace(/\{\$selection\}/g,i.getContent({format:"text"})))},mceInsertLink:function(e,t,n){var r;"string"==typeof n&&(n={href:n}),r=o.getParent(i.getNode(),"a"),n.href=n.href.replace(" ","%20"),r&&n.href||a.remove("link"),n.href&&a.apply("link",n,r)},selectAll:function(){var e=o.getParent(i.getStart(),jo.isContentEditableTrue);if(e){var t=o.createRng();t.selectNodeContents(e),i.setRng(t)}},"delete":function(){hg(s)},forwardDelete:function(){vg(s)},mceNewDocument:function(){s.setContent("")},InsertLineBreak:function(e,t,n){return jg(s,n),!0}});var p=function(n){return function(){var e=i.isCollapsed()?[o.getParent(i.getNode(),o.isBlock)]:i.getSelectedBlocks(),t=mp(e,function(e){return!!a.matchNode(e,n)});return-1!==gp(t,!0)}};e({JustifyLeft:p("alignleft"),JustifyCenter:p("aligncenter"),JustifyRight:p("alignright"),JustifyFull:p("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return f(e)},mceBlockQuote:function(){return f("blockquote")},Outdent:function(){var e;if(n.inline_styles){if((e=o.getParent(i.getStart(),o.isBlock))&&0<parseInt(e.style.paddingLeft,10))return!0;if((e=o.getParent(i.getEnd(),o.isBlock))&&0<parseInt(e.style.paddingLeft,10))return!0}return r("InsertUnorderedList")||r("InsertOrderedList")||!n.inline_styles&&!!o.getParent(i.getNode(),"BLOCKQUOTE")},"InsertUnorderedList,InsertOrderedList":function(e){var t=o.getParent(i.getNode(),"ul,ol");return t&&("insertunorderedlist"===e&&"UL"===t.tagName||"insertorderedlist"===e&&"OL"===t.tagName)}},"state"),e({Undo:function(){s.undoManager.undo()},Redo:function(){s.undoManager.redo()}}),u("FontName",function(){return wg(t=s).fold(function(){return xg(t).map(function(e){return Cg.getFontFamily(t.getBody(),e)}).getOr("")},function(e){return Cg.getFontFamily(t.getBody(),e)});var t},this),u("FontSize",function(){return wg(t=s).fold(function(){return xg(t).map(function(e){return Cg.getFontSize(t.getBody(),e)}).getOr("")},function(e){return Cg.getFontSize(t.getBody(),e)});var t},this)}var hp=Xt.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend"," "),vp=function(a){var u,s,c=this,l={},f=function(){return!1},d=function(){return!0};u=(a=a||{}).scope||c,s=a.toggleEvent||f;var r=function(e,t,n,r){var o,i,a;if(!1===t&&(t=f),t)for(t={func:t},r&&Xt.extend(t,r),a=(i=e.toLowerCase().split(" ")).length;a--;)e=i[a],(o=l[e])||(o=l[e]=[],s(e,!0)),n?o.unshift(t):o.push(t);return c},m=function(e,t){var n,r,o,i,a;if(e)for(n=(i=e.toLowerCase().split(" ")).length;n--;){if(e=i[n],r=l[e],!e){for(o in l)s(o,!1),delete l[o];return c}if(r){if(t)for(a=r.length;a--;)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),l[e]=r);else r.length=0;r.length||(s(e,!1),delete l[e])}}else{for(e in l)s(e,!1);l={}}return c};c.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),(t=t||{}).type=e,t.target||(t.target=u),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=d},t.stopPropagation=function(){t.isPropagationStopped=d},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=d},t.isDefaultPrevented=f,t.isPropagationStopped=f,t.isImmediatePropagationStopped=f),a.beforeFire&&a.beforeFire(t),n=l[e])for(r=0,o=n.length;r<o;r++){if((i=n[r]).once&&m(e,i.func),t.isImmediatePropagationStopped())return t.stopPropagation(),t;if(!1===i.func.call(u,t))return t.preventDefault(),t}return t},c.on=r,c.off=m,c.once=function(e,t,n){return r(e,t,n,{once:!0})},c.has=function(e){return e=e.toLowerCase(),!(!l[e]||0===l[e].length)}};vp.isNative=function(e){return!!hp[e.toLowerCase()]};var yp,bp=function(n){return n._eventDispatcher||(n._eventDispatcher=new vp({scope:n,toggleEvent:function(e,t){vp.isNative(e)&&n.toggleNativeEvent&&n.toggleNativeEvent(e,t)}})),n._eventDispatcher},Cp={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;if(t=bp(this).fire(e,t,n),!1!==n&&this.parent)for(var r=this.parent();r&&!t.isPropagationStopped();)r.fire(e,t,!1),r=r.parent();return t},on:function(e,t,n){return bp(this).on(e,t,n)},off:function(e,t){return bp(this).off(e,t)},once:function(e,t){return bp(this).once(e,t)},hasEventListeners:function(e){return bp(this).has(e)}},xp=function(e,t){return e.fire("PreProcess",t)},wp=function(e,t){return e.fire("PostProcess",t)},Np=function(e){return e.fire("remove")},Ep=function(e){return e.fire("detach")},Sp=function(e,t){return e.fire("SwitchMode",{mode:t})},Tp=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},kp=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},_p=function(e,t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},Ap=function(e,t,n){var r,o;Gi(e,t)&&!1===n?(o=t,$i(r=e)?r.dom().classList.remove(o):Ki(r,o),Yi(r)):n&&Xi(e,t)},Rp=function(e,t){Ap(ar.fromDom(e.getBody()),"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e.readonly=!0,e.getBody().contentEditable="false"):(e.readonly=!1,e.getBody().contentEditable="true",_p(e,"StyleWithCSS",!1),_p(e,"enableInlineTableEditing",!1),_p(e,"enableObjectResizing",!1),e.focus(),e.nodeChanged())},Dp=function(e){return e.readonly?"readonly":"design"},Op=Si.DOM,Bp=function(e,t){return"selectionchange"===t?e.getDoc():!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=Op.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},Pp=function(e,t,n){var r;(r=e).hidden||r.readonly?!0===e.readonly&&n.preventDefault():e.fire(t,n)},Ip=function(i,a){var e,t;if(i.delegates||(i.delegates={}),!i.delegates[a]&&!i.removed)if(e=Bp(i,a),i.settings.event_root){if(yp||(yp={},i.editorManager.on("removeEditor",function(){var e;if(!i.editorManager.activeEditor&&yp){for(e in yp)i.dom.unbind(Bp(i,e));yp=null}})),yp[a])return;t=function(e){for(var t=e.target,n=i.editorManager.get(),r=n.length;r--;){var o=n[r].getBody();(o===t||Op.isChildOf(t,o))&&Pp(n[r],a,e)}},yp[a]=t,Op.bind(e,a,t)}else t=function(e){Pp(i,a,e)},Op.bind(e,a,t),i.delegates[a]=t},Lp={bindPendingEventDelegates:function(){var t=this;Xt.each(t._pendingNativeEvents,function(e){Ip(t,e)})},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?Ip(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(Bp(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this,n=t.getBody(),r=t.dom;if(t.delegates){for(e in t.delegates)t.dom.unbind(Bp(t,e),e,t.delegates[e]);delete t.delegates}!t.inline&&n&&r&&(n.onload=null,r.unbind(t.getWin()),r.unbind(t.getDoc())),r&&(r.unbind(n),r.unbind(t.getContainer()))}},Fp=Lp=Xt.extend({},Cp,Lp),Mp=Ar("sections","settings"),zp=or.detect().deviceType.isTouch(),Up=["lists","autolink","autosave"],jp={theme:"mobile"},Vp=function(e){var t=k(e)?e.join(" "):e,n=W(S(t)?t.split(" "):[],Gn);return U(n,function(e){return 0<e.length})},Hp=function(e,t){return e.sections().hasOwnProperty(t)},qp=function(e,t,n,r){var o,i=Vp(n.forced_plugins),a=Vp(r.plugins),u=e&&Hp(t,"mobile")?U(a,d(F,Up)):a,s=(o=u,[].concat(Vp(i)).concat(Vp(o)));return Xt.extend(r,{plugins:s.join(" ")})},$p=function(e,t,n,r){var o,i,a,u,s,c,l,f,d,m,g,p,h=(o=["mobile"],i=yr(r,function(e,t){return F(o,t)}),Mp(i.t,i.f)),v=Xt.extend(t,n,h.settings(),(m=e,p=(g=h).settings().inline,m&&Hp(g,"mobile")&&!p?(c="mobile",l=jp,f=h.sections(),d=f.hasOwnProperty(c)?f[c]:{},Xt.extend({},l,d)):{}),{validate:!0,content_editable:h.settings().inline,external_plugins:(a=n,u=h.settings(),s=u.external_plugins?u.external_plugins:{},a&&a.external_plugins?Xt.extend({},a.external_plugins,s):s)});return qp(e,h,n,v)},Wp=function(e,t,n){return _.from(t.settings[n]).filter(e)},Kp=function(e,t,n,r){var o,i,a,u=t in e.settings?e.settings[t]:n;return"hash"===r?(a={},"string"==typeof(i=u)?z(0<i.indexOf("=")?i.split(/[;,](?![^=;,]*(?:[;,]|$))/):i.split(","),function(e){var t=e.split("=");1<t.length?a[Xt.trim(t[0])]=Xt.trim(t[1]):a[Xt.trim(t[0])]=Xt.trim(t)}):a=i,a):"string"===r?Wp(S,e,t).getOr(n):"number"===r?Wp(O,e,t).getOr(n):"boolean"===r?Wp(R,e,t).getOr(n):"object"===r?Wp(T,e,t).getOr(n):"array"===r?Wp(k,e,t).getOr(n):"string[]"===r?Wp((o=S,function(e){return k(e)&&J(e,o)}),e,t).getOr(n):"function"===r?Wp(D,e,t).getOr(n):u},Xp=Xt.each,Yp=Xt.explode,Gp={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},Jp=Xt.makeMap("alt,ctrl,shift,meta,access");function Qp(i){var a={},r=[],u=function(e){var t,n,r={};for(n in Xp(Yp(e,"+"),function(e){e in Jp?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=Gp[e]||e.toUpperCase().charCodeAt(0))}),t=[r.keyCode],Jp)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,fe.mac?r.ctrl=!0:r.shift=!0),r.meta&&(fe.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},s=function(e,t,n,r){var o;return(o=Xt.map(Yp(e,">"),u))[o.length-1]=Xt.extend(o[o.length-1],{func:n,scope:r||i}),Xt.extend(o[0],{desc:i.translate(t),subpatterns:o.slice(1)})},o=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},c=function(e){return e.func?e.func.call(e.scope):null};i.on("keyup keypress keydown",function(t){var e,n;((n=t).altKey||n.ctrlKey||n.metaKey||"keydown"===(e=t).type&&112<=e.keyCode&&e.keyCode<=123)&&!t.isDefaultPrevented()&&(Xp(a,function(e){if(o(t,e))return r=e.subpatterns.slice(0),"keydown"===t.type&&c(e),!0}),o(t,r[0])&&(1===r.length&&"keydown"===t.type&&c(r[0]),r.shift()))}),this.add=function(e,n,r,o){var t;return"string"==typeof(t=r)?r=function(){i.execCommand(t,!1,null)}:Xt.isArray(t)&&(r=function(){i.execCommand(t[0],t[1],t[2])}),Xp(Yp(Xt.trim(e.toLowerCase())),function(e){var t=s(e,n,r,o);a[t.id]=t}),!0},this.remove=function(e){var t=s(e);return!!a[t.id]&&(delete a[t.id],!0)}}var Zp=function(e){var t=Ur(e).dom();return e.dom()===t.activeElement},eh=function(t){return(e=Ur(t),n=e!==undefined?e.dom():V.document,_.from(n.activeElement).map(ar.fromDom)).filter(function(e){return t.dom().contains(e.dom())});var e,n},th=function(t,e){return(n=e,n.collapsed?_.from(eu(n.startContainer,n.startOffset)).map(ar.fromDom):_.none()).bind(function(e){return ko(e)?_.some(e):!1===zr(t,e)?_.some(t):_.none()});var n},nh=function(t,e){th(ar.fromDom(t.getBody()),e).bind(function(e){return sc.firstPositionIn(e.dom())}).fold(function(){t.selection.normalize()},function(e){return t.selection.setRng(e.toRange())})},rh=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},oh=function(e){var t,n=e.getBody();return n&&(t=ar.fromDom(n),Zp(t)||eh(t).isSome())},ih=function(e){return e.inline?oh(e):(t=e).iframeElement&&Zp(ar.fromDom(t.iframeElement));var t},ah=function(e){return e.editorManager.setActive(e)},uh=function(e,t){e.removed||(t?ah(e):function(t){var e=t.selection,n=t.settings.content_editable,r=t.getBody(),o=e.getRng();t.quirks.refreshContentEditable();var i,a,u=(i=t,a=e.getNode(),i.dom.getParent(a,function(e){return"true"===i.dom.getContentEditable(e)}));if(t.$.contains(r,u))return rh(u),nh(t,o),ah(t);t.bookmark!==undefined&&!1===ih(t)&&up(t).each(function(e){t.selection.setRng(e),o=e}),n||(fe.opera||rh(r),t.getWin().focus()),(fe.gecko||n)&&(rh(r),nh(t,o)),ah(t)}(e))},sh=ih,ch=function(e,t){return t.dom()[e]},lh=function(e,t){return parseInt(kr(t,e),10)},fh=d(ch,"clientWidth"),dh=d(ch,"clientHeight"),mh=d(lh,"margin-top"),gh=d(lh,"margin-left"),ph=function(e,t,n){var r,o,i,a,u,s,c,l,f,d,m,g=ar.fromDom(e.getBody()),p=e.inline?g:(r=g,ar.fromDom(r.dom().ownerDocument.documentElement)),h=(o=e.inline,a=t,u=n,s=(i=p).dom().getBoundingClientRect(),{x:a-(o?s.left+i.dom().clientLeft+gh(i):0),y:u-(o?s.top+i.dom().clientTop+mh(i):0)});return l=h.x,f=h.y,d=fh(c=p),m=dh(c),0<=l&&0<=f&&l<=d&&f<=m},hh=function(e){var t,n=e.inline?e.getBody():e.getContentAreaContainer();return(t=n,_.from(t).map(ar.fromDom)).map(function(e){return zr(Ur(e),e)}).getOr(!1)};function vh(n){var t,o=[],i=function(){var e,t=n.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():{open:e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")},close:e,reposition:e,getArgs:e}},a=function(){0<o.length&&i().reposition(o)},u=function(t){Y(o,function(e){return e===t}).each(function(e){o.splice(e,1)})},r=function(r){if(!n.removed&&hh(n))return X(o,function(e){return t=i().getArgs(e),n=r,!(t.type!==n.type||t.text!==n.text||t.progressBar||t.timeout||n.progressBar||n.timeout);var t,n}).getOrThunk(function(){n.editorManager.setActive(n);var e,t=i().open(r,function(){u(t),a()});return e=t,o.push(e),a(),t})};return(t=n).on("SkinLoaded",function(){var e=t.settings.service_message;e&&r({text:e,type:"warning",timeout:0,icon:""})}),t.on("ResizeEditor ResizeWindow",function(){he.requestAnimationFrame(a)}),t.on("remove",function(){z(o.slice(),function(e){i().close(e)})}),{open:r,close:function(){_.from(o[0]).each(function(e){i().close(e),u(e),a()})},getNotifications:function(){return o}}}function yh(r){var o=[],i=function(){var e,t=r.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():{open:e=function(){throw new Error("Theme did not provide a WindowManager implementation.")},alert:e,confirm:e,close:e,getParams:e,setParams:e}},a=function(e,t){return function(){return t?t.apply(e,arguments):undefined}},u=function(e){var t;o.push(e),t=e,r.fire("OpenWindow",{win:t})},s=function(n){Y(o,function(e){return e===n}).each(function(e){var t;o.splice(e,1),t=n,r.fire("CloseWindow",{win:t}),0===o.length&&r.focus()})},e=function(){return _.from(o[o.length-1])};return r.on("remove",function(){z(o.slice(0),function(e){i().close(e)})}),{windows:o,open:function(e,t){r.editorManager.setActive(r),ip(r);var n=i().open(e,t,s);return u(n),n},alert:function(e,t,n){var r=i().alert(e,a(n||this,t),s);u(r)},confirm:function(e,t,n){var r=i().confirm(e,a(n||this,t),s);u(r)},close:function(){e().each(function(e){i().close(e),s(e)})},getParams:function(){return e().map(i().getParams).getOr(null)},setParams:function(t){e().each(function(e){i().setParams(e,t)})},getWindows:function(){return o}}}var bh={},Ch="en",xh={setCode:function(e){e&&(Ch=e,this.rtl=!!this.data[e]&&"rtl"===this.data[e]._dir)},getCode:function(){return Ch},rtl:!1,add:function(e,t){var n=bh[e];for(var r in n||(bh[e]=n={}),t)n[r]=t[r];this.setCode(e)},translate:function(e){var t=bh[Ch]||{},n=function(e){return Xt.is(e,"function")?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||Xt.is(e,"undefined")},o=function(e){return e=n(e),Xt.hasOwn(t,e)?n(t[e]):e};if(r(e))return"";if(Xt.is(e,"object")&&Xt.hasOwn(e,"raw"))return n(e.raw);if(Xt.is(e,"array")){var i=e.slice(1);e=o(e[0]).replace(/\{([0-9]+)\}/g,function(e,t){return Xt.hasOwn(i,t)?n(i[t]):e})}return o(e).replace(/{context:\w+}$/,"")},data:bh},wh=Bi.PluginManager,Nh=function(e,t){var n=function(e,t){for(var n in wh.urls)if(wh.urls[n]+"/plugin"+t+".js"===e)return n;return null}(t,e.suffix);return n?xh.translate(["Failed to load plugin: {0} from url {1}",n,t]):xh.translate(["Failed to load plugin url: {0}",t])},Eh=function(e,t){e.notificationManager.open({type:"error",text:t})},Sh=function(e,t){e._skinLoaded?Eh(e,t):e.on("SkinLoaded",function(){Eh(e,t)})},Th=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=V.window.console;r&&(r.error?r.error.apply(r,arguments):r.log.apply(r,arguments))},kh={pluginLoadError:function(e,t){Sh(e,Nh(e,t))},pluginInitError:function(e,t,n){var r=xh.translate(["Failed to initialize plugin: {0}",t]);Th(r,n),Sh(e,r)},uploadError:function(e,t){Sh(e,xh.translate(["Failed to upload image: {0}",t]))},displayError:Sh,initError:Th},_h=Bi.PluginManager,Ah=Bi.ThemeManager;function Rh(){return new(oe.getOrDie("XMLHttpRequest"))}function Dh(u,s){var r={},n=function(e,r,o,t){var i,n;(i=Rh()).open("POST",s.url),i.withCredentials=s.credentials,i.upload.onprogress=function(e){t(e.loaded/e.total*100)},i.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+i.status)},i.onload=function(){var e,t,n;i.status<200||300<=i.status?o("HTTP Error: "+i.status):(e=JSON.parse(i.responseText))&&"string"==typeof e.location?r((t=s.basePath,n=e.location,t?t.replace(/\/$/,"")+"/"+n.replace(/^\//,""):n)):o("Invalid JSON: "+i.responseText)},(n=new V.FormData).append("file",e.blob(),e.filename()),i.send(n)},c=function(e,t){return{url:t,blobInfo:e,status:!0}},l=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},f=function(e,t){Xt.each(r[e],function(e){e(t)}),delete r[e]},o=function(e,n){return e=Xt.grep(e,function(e){return!u.isUploaded(e.blobUri())}),de.all(Xt.map(e,function(e){return u.isPending(e.blobUri())?(t=e.blobUri(),new de(function(e){r[t]=r[t]||[],r[t].push(e)})):(o=e,i=s.handler,a=n,u.markPending(o.blobUri()),new de(function(t){var n;try{var r=function(){n&&n.close()};i(o,function(e){r(),u.markUploaded(o.blobUri(),e),f(o.blobUri(),c(o,e)),t(c(o,e))},function(e){r(),u.removeFailed(o.blobUri()),f(o.blobUri(),l(o,e)),t(l(o,e))},function(e){e<0||100<e||(n||(n=a()),n.progressBar.value(e))})}catch(e){t(l(o,e.message))}}));var o,i,a,t}))};return!1===D(s.handler)&&(s.handler=n),{upload:function(e,t){return s.url||s.handler!==n?o(e,t):new de(function(e){e([])})}}}var Oh=function(e){return oe.getOrDie("atob")(e)},Bh=function(e){var t,n,r=decodeURIComponent(e).split(",");return(n=/data:([^;]+)/.exec(r[0]))&&(t=n[1]),{type:t,data:r[1]}},Ph=function(a){return new de(function(e){var t,n,r,o,i=Bh(a);try{t=Oh(i.data)}catch(iE){return void e(new V.Blob([]))}for(o=t.length,n=new(oe.getOrDie("Uint8Array"))(o),r=0;r<n.length;r++)n[r]=t.charCodeAt(r);e(new V.Blob([n],{type:i.type}))})},Ih=function(e){return 0===e.indexOf("blob:")?(i=e,new de(function(e,t){var n=function(){t("Cannot convert "+i+" to Blob. Resource might not exist or is inaccessible.")};try{var r=Rh();r.open("GET",i,!0),r.responseType="blob",r.onload=function(){200===this.status?e(this.response):n()},r.onerror=n,r.send()}catch(o){n()}})):0===e.indexOf("data:")?Ph(e):null;var i},Lh=function(n){return new de(function(e){var t=new(oe.getOrDie("FileReader"));t.onloadend=function(){e(t.result)},t.readAsDataURL(n)})},Fh=Bh,Mh=0,zh=function(e){return(e||"blobid")+Mh++},Uh=function(n,r,o,t){var i,a;0!==r.src.indexOf("blob:")?(i=Fh(r.src).data,(a=n.findFirst(function(e){return e.base64()===i}))?o({image:r,blobInfo:a}):Ih(r.src).then(function(e){a=n.create(zh(),e,i),n.add(a),o({image:r,blobInfo:a})},function(e){t(e)})):(a=n.getByUri(r.src))?o({image:r,blobInfo:a}):Ih(r.src).then(function(t){Lh(t).then(function(e){i=Fh(e).data,a=n.create(zh(),t,i),n.add(a),o({image:r,blobInfo:a})})},function(e){t(e)})},jh=function(e){return e?te(e.getElementsByTagName("img")):[]},Vh=0,Hh={uuid:function(e){return e+Vh+++(t=function(){return Math.round(4294967295*Math.random()).toString(36)},"s"+(new Date).getTime().toString(36)+t()+t()+t());var t}};function qh(u){var n,o,t,e,i,r,a,s,c,l=(n=[],o=function(e){var t,n,r;if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return t=e.id||Hh.uuid("blobid"),n=e.name||t,{id:q(t),name:q(n),filename:q(n+"."+(r=e.blob.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"}[r.toLowerCase()]||"dat")),blob:q(e.blob),base64:q(e.base64),blobUri:q(e.blobUri||ae.createObjectURL(e.blob)),uri:q(e.uri)}},{create:function(e,t,n,r){if(S(e))return o({id:e,name:r,blob:t,base64:n});if(T(e))return o(e);throw new Error("Unknown input type")},add:function(e){t(e.id())||n.push(e)},get:t=function(t){return e(function(e){return e.id()===t})},getByUri:function(t){return e(function(e){return e.blobUri()===t})},findFirst:e=function(e){return U(n,e)[0]},removeByUri:function(t){n=U(n,function(e){return e.blobUri()!==t||(ae.revokeObjectURL(e.blobUri()),!1)})},destroy:function(){z(n,function(e){ae.revokeObjectURL(e.blobUri())}),n=[]}}),f=(a={},s=function(e,t){return{status:e,resultUri:t}},{hasBlobUri:c=function(e){return e in a},getResultUri:function(e){var t=a[e];return t?t.resultUri:null},isPending:function(e){return!!c(e)&&1===a[e].status},isUploaded:function(e){return!!c(e)&&2===a[e].status},markPending:function(e){a[e]=s(1,null)},markUploaded:function(e,t){a[e]=s(2,t)},removeFailed:function(e){delete a[e]},destroy:function(){a={}}}),d=[],m=function(t){return function(e){return u.selection?t(e):[]}},g=function(e,t,n){for(var r=0;-1!==(r=e.indexOf(t,r))&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1),-1!==r;);return e},p=function(e,t,n){return e=g(e,'src="'+t+'"','src="'+n+'"'),e=g(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"')},h=function(t,n){z(u.undoManager.data,function(e){"fragmented"===e.type?e.fragments=W(e.fragments,function(e){return p(e,t,n)}):e.content=p(e.content,t,n)})},v=function(){return u.notificationManager.open({text:u.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},y=function(e,t){l.removeByUri(e.src),h(e.src,t),u.$(e).attr({src:Bl(u)?t+"?"+(new Date).getTime():t,"data-mce-src":u.convertURL(t,"src")})},b=function(n){return i||(i=Dh(f,{url:Il(u),basePath:Ll(u),credentials:Fl(u),handler:Ml(u)})),w().then(m(function(r){var e;return e=W(r,function(e){return e.blobInfo}),i.upload(e,v).then(m(function(e){var t=W(e,function(e,t){var n=r[t].image;return e.status&&Pl(u)?y(n,e.url):e.error&&kh.uploadError(u,e.error),{element:n,status:e.status}});return n&&n(t),t}))}))},C=function(e){if(Ol(u))return b(e)},x=function(t){return!1!==J(d,function(e){return e(t)})&&(0!==t.getAttribute("src").indexOf("data:")||Dl(u)(t))},w=function(){var o,i,a;return r||(o=f,i=l,a={},r={findAll:function(e,n){var t;n||(n=q(!0)),t=U(jh(e),function(e){var t=e.src;return!!fe.fileApi&&!e.hasAttribute("data-mce-bogus")&&!e.hasAttribute("data-mce-placeholder")&&!(!t||t===fe.transparentSrc)&&(0===t.indexOf("blob:")?!o.isUploaded(t)&&n(e):0===t.indexOf("data:")&&n(e))});var r=W(t,function(n){if(a[n.src])return new de(function(t){a[n.src].then(function(e){if("string"==typeof e)return e;t({image:n,blobInfo:e.blobInfo})})});var e=new de(function(e,t){Uh(i,n,e,t)}).then(function(e){return delete a[e.image.src],e})["catch"](function(e){return delete a[n.src],e});return a[n.src]=e});return de.all(r)}}),r.findAll(u.getBody(),x).then(m(function(e){return e=U(e,function(e){return"string"!=typeof e||(kh.displayError(u,e),!1)}),z(e,function(e){h(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),e}))},N=function(e){return e.replace(/src="(blob:[^"]+)"/g,function(e,n){var t=f.getResultUri(n);if(t)return'src="'+t+'"';var r=l.getByUri(n);return r||(r=j(u.editorManager.get(),function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)},null)),r?'src="data:'+r.blob().type+";base64,"+r.base64()+'"':e})};return u.on("setContent",function(){Ol(u)?C():w()}),u.on("RawSaveContent",function(e){e.content=N(e.content)}),u.on("getContent",function(e){e.source_view||"raw"===e.format||(e.content=N(e.content))}),u.on("PostRender",function(){u.parser.addNodeFilter("img",function(e){z(e,function(e){var t=e.attr("src");if(!l.getByUri(t)){var n=f.getResultUri(t);n&&e.attr("src",n)}})})}),{blobCache:l,addFilter:function(e){d.push(e)},uploadImages:b,uploadImagesAuto:C,scanForImages:w,destroy:function(){l.destroy(),f.destroy(),r=i=null}}}var $h=function(e,t){return e.hasOwnProperty(t.nodeName)},Wh=function(e,t){if(jo.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||$h(e,t.nextSibling)))return!0}return!1},Kh=function(e){var t,n,r,o,i,a,u,s,c,l,f,d=e.settings,m=e.dom,g=e.selection,p=e.schema,h=p.getBlockElements(),v=g.getStart(),y=e.getBody();if(f=d.forced_root_block,v&&jo.isElement(v)&&f&&(l=y.nodeName.toLowerCase(),p.isValidChild(l,f.toLowerCase())&&(b=h,C=y,x=v,!M(af(ar.fromDom(x),ar.fromDom(C)),function(e){return $h(b,e.dom())})))){var b,C,x,w,N;for(n=(t=g.getRng()).startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,c=sh(e),v=y.firstChild;v;)if(w=h,N=v,jo.isText(N)||jo.isElement(N)&&!$h(w,N)&&!yc(N)){if(Wh(h,v)){v=(u=v).nextSibling,m.remove(u);continue}a||(a=m.create(f,e.settings.forced_root_block_attrs),v.parentNode.insertBefore(a,v),s=!0),v=(u=v).nextSibling,a.appendChild(u)}else a=null,v=v.nextSibling;s&&c&&(t.setStart(n,r),t.setEnd(o,i),g.setRng(t),e.nodeChanged())}},Xh=function(e){e.settings.forced_root_block&&e.on("NodeChange",d(Kh,e))},Yh=function(t){return Yr(t).fold(q([t]),function(e){return[t].concat(Yh(e))})},Gh=function(t){return Gr(t).fold(q([t]),function(e){return"br"===lr(e)?Hr(e).map(function(e){return[t].concat(Gh(e))}).getOr([]):[t].concat(Gh(e))})},Jh=function(o,e){return ru((i=e,a=i.startContainer,u=i.startOffset,jo.isText(a)?0===u?_.some(ar.fromDom(a)):_.none():_.from(a.childNodes[u]).map(ar.fromDom)),(t=e,n=t.endContainer,r=t.endOffset,jo.isText(n)?r===n.data.length?_.some(ar.fromDom(n)):_.none():_.from(n.childNodes[r-1]).map(ar.fromDom)),function(e,t){var n=X(Yh(o),d(Mr,e)),r=X(Gh(o),d(Mr,t));return n.isSome()&&r.isSome()}).getOr(!1);var t,n,r,i,a,u},Qh=function(e,t,n,r){var o=n,i=new go(n,o),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==Xt.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n));if(fe.ie&&fe.ie<11&&e.isBlock(n)&&e.isEmpty(n))return void(r?t.setStart(n,0):t.setEnd(n,0))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},Zh=function(e){var t=e.selection.getSel();return t&&0<t.rangeCount};function ev(i){var r,o=[];"onselectionchange"in i.getDoc()||i.on("NodeChange Click MouseUp KeyUp Focus",function(e){var t,n;n={startContainer:(t=i.selection.getRng()).startContainer,startOffset:t.startOffset,endContainer:t.endContainer,endOffset:t.endOffset},"nodechange"!==e.type&&Eg(n,r)||i.fire("SelectionChange"),r=n}),i.on("contextmenu",function(){i.fire("SelectionChange")}),i.on("SelectionChange",function(){var e=i.selection.getStart(!0);!e||!fe.range&&i.selection.isCollapsed()||Zh(i)&&!function(e){var t,n;if((n=i.$(e).parentsUntil(i.getBody()).add(e)).length===o.length){for(t=n.length;0<=t&&n[t]===o[t];t--);if(-1===t)return o=n,!0}return o=n,!1}(e)&&i.dom.isChildOf(e,i.getBody())&&i.nodeChanged({selectionChange:!0})}),i.on("MouseUp",function(e){!e.isDefaultPrevented()&&Zh(i)&&("IMG"===i.selection.getNode().nodeName?he.setEditorTimeout(i,function(){i.nodeChanged()}):i.nodeChanged())}),this.nodeChanged=function(e){var t,n,r,o=i.selection;i.initialized&&o&&!i.settings.disable_nodechange&&!i.readonly&&(r=i.getBody(),(t=o.getStart(!0)||r).ownerDocument===i.getDoc()&&i.dom.isChildOf(t,r)||(t=r),n=[],i.dom.getParent(t,function(e){if(e===r)return!0;n.push(e)}),(e=e||{}).element=t,e.parents=n,i.fire("NodeChange",e))}}var tv,nv,rv={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return fe.mac?e.metaKey:e.ctrlKey&&!e.altKey}},ov=function(e){return j(e,function(e,t){return e.concat(function(t){var e=function(e){return W(e,function(e){return(e=Ka(e)).node=t,e})};if(jo.isElement(t))return e(t.getClientRects());if(jo.isText(t)){var n=t.ownerDocument.createRange();return n.setStart(t,0),n.setEnd(t,t.data.length),e(n.getClientRects())}}(t))},[])};(nv=tv||(tv={}))[nv.Up=-1]="Up",nv[nv.Down=1]="Down";var iv=function(o,i,a,e,u,t){var n,s,c=0,l=[],r=function(e){var t,n,r;for(r=ov([e]),-1===o&&(r=r.reverse()),t=0;t<r.length;t++)if(n=r[t],!a(n,s)){if(0<l.length&&i(n,Ht.last(l))&&c++,n.line=c,u(n))return!0;l.push(n)}};return(s=Ht.last(t.getClientRects()))&&(r(n=t.getNode()),function(e,t,n,r){for(;r=Es(r,e,$a,t);)if(n(r))return}(o,e,r,n)),l},av=d(iv,tv.Up,Ga,Ja),uv=d(iv,tv.Down,Ja,Ga),sv=function(n){return function(e){return t=n,e.line>t;var t}},cv=function(n){return function(e){return t=n,e.line===t;var t}},lv=jo.isContentEditableFalse,fv=Es,dv=function(e,t){return Math.abs(e.left-t)},mv=function(e,t){return Math.abs(e.right-t)},gv=function(e,t){return e>=t.left&&e<=t.right},pv=function(e,o){return Ht.reduce(e,function(e,t){var n,r;return n=Math.min(dv(e,o),mv(e,o)),r=Math.min(dv(t,o),mv(t,o)),gv(o,t)?t:gv(o,e)?e:r===n&&lv(t.node)?t:r<n?t:e})},hv=function(e,t,n,r){for(;r=fv(r,e,$a,t);)if(n(r))return},vv=function(e,t,n){var r,o,i,a,u,s,c,l=ov(U(te(e.getElementsByTagName("*")),gs)),f=U(l,function(e){return n>=e.top&&n<=e.bottom});return(r=pv(f,t))&&(r=pv((a=e,c=function(t,e){var n;return n=U(ov([e]),function(e){return!t(e,u)}),s=s.concat(n),0===n.length},(s=[]).push(u=r),hv(tv.Up,a,d(c,Ga),u.node),hv(tv.Down,a,d(c,Ja),u.node),s),t))&&gs(r.node)?(i=t,{node:(o=r).node,before:dv(o,i)<mv(o,i)}):null},yv=function(t,n,e){if(e.collapsed)return!1;if(fe.ie&&fe.ie<=11&&e.startOffset===e.endOffset-1&&e.startContainer===e.endContainer){var r=e.startContainer.childNodes[e.startOffset];if(jo.isElement(r))return M(r.getClientRects(),function(e){return Qa(e,t,n)})}return M(e.getClientRects(),function(e){return Qa(e,t,n)})},bv=function(e){var t,n,r,o;return o=e.getBoundingClientRect(),n=(t=e.ownerDocument).documentElement,r=t.defaultView,{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}},Cv=function(e,t){return n=(u=e).inline?bv(u.getBody()):{left:0,top:0},a=(i=e).getBody(),r=i.inline?{left:a.scrollLeft,top:a.scrollTop}:{left:0,top:0},{pageX:(o=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=bv(e.getContentAreaContainer()),r=(i=(o=e).getBody(),a=o.getDoc().documentElement,u={left:i.scrollLeft,top:i.scrollTop},s={left:i.scrollLeft||a.scrollLeft,top:i.scrollTop||a.scrollTop},o.inline?u:s);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}var o,i,a,u,s;return{left:t.pageX,top:t.pageY}}(e,t)).left-n.left+r.left,pageY:o.top-n.top+r.top};var n,r,o,i,a,u},xv=jo.isContentEditableFalse,wv=jo.isContentEditableTrue,Nv=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Ev=function(u,s){return function(e){if(0===e.button){var t=X(s.dom.getParents(e.target),au(xv,wv)).getOr(null);if(i=s.getBody(),xv(a=t)&&a!==i){var n=s.dom.getPos(t),r=s.getBody(),o=s.getDoc().documentElement;u.element=t,u.screenX=e.screenX,u.screenY=e.screenY,u.maxX=(s.inline?r.scrollWidth:o.offsetWidth)-2,u.maxY=(s.inline?r.scrollHeight:o.offsetHeight)-2,u.relX=e.pageX-n.x,u.relY=e.pageY-n.y,u.width=t.offsetWidth,u.height=t.offsetHeight,u.ghost=function(e,t,n,r){var o=t.cloneNode(!0);e.dom.setStyles(o,{width:n,height:r}),e.dom.setAttrib(o,"data-mce-selected",null);var i=e.dom.create("div",{"class":"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(o,{margin:0,boxSizing:"border-box"}),i.appendChild(o),i}(s,t,u.width,u.height)}}var i,a}},Sv=function(l,f){return function(e){if(l.dragging&&(s=(i=f).selection,c=s.getSel().getRangeAt(0).startContainer,a=3===c.nodeType?c.parentNode:c,u=l.element,a!==u&&!i.dom.isChildOf(a,u)&&!xv(a))){var t=(r=l.element,(o=r.cloneNode(!0)).removeAttribute("data-mce-selected"),o),n=f.fire("drop",{targetClone:t,clientX:e.clientX,clientY:e.clientY});n.isDefaultPrevented()||(t=n.targetClone,f.undoManager.transact(function(){Nv(l.element),f.insertContent(f.dom.getOuterHTML(t)),f._selectionOverrides.hideFakeCaret()}))}var r,o,i,a,u,s,c;Tv(l)}},Tv=function(e){e.dragging=!1,e.element=null,Nv(e.ghost)},kv=function(e){var t,n,r,o,i,a,p,h,v,u,s,c={};t=Si.DOM,a=V.document,n=Ev(c,e),p=c,h=e,v=he.throttle(function(e,t){h._selectionOverrides.hideFakeCaret(),h.selection.placeCaretAt(e,t)},0),r=function(e){var t,n,r,o,i,a,u,s,c,l,f,d,m=Math.max(Math.abs(e.screenX-p.screenX),Math.abs(e.screenY-p.screenY));if(p.element&&!p.dragging&&10<m){if(h.fire("dragstart",{target:p.element}).isDefaultPrevented())return;p.dragging=!0,h.focus()}if(p.dragging){var g=(f=p,{pageX:(d=Cv(h,e)).pageX-f.relX,pageY:d.pageY+5});c=p.ghost,l=h.getBody(),c.parentNode!==l&&l.appendChild(c),t=p.ghost,n=g,r=p.width,o=p.height,i=p.maxX,a=p.maxY,s=u=0,t.style.left=n.pageX+"px",t.style.top=n.pageY+"px",n.pageX+r>i&&(u=n.pageX+r-i),n.pageY+o>a&&(s=n.pageY+o-a),t.style.width=r-u+"px",t.style.height=o-s+"px",v(e.clientX,e.clientY)}},o=Sv(c,e),u=c,i=function(){u.dragging&&s.fire("dragend"),Tv(u)},(s=e).on("mousedown",n),e.on("mousemove",r),e.on("mouseup",o),t.bind(a,"mousemove",r),t.bind(a,"mouseup",i),e.on("remove",function(){t.unbind(a,"mousemove",r),t.unbind(a,"mouseup",i)})},_v=function(e){var n;kv(e),(n=e).on("drop",function(e){var t="undefined"!=typeof e.clientX?n.getDoc().elementFromPoint(e.clientX,e.clientY):null;(xv(t)||xv(n.dom.getContentEditableParent(t)))&&e.preventDefault()})},Av=function(t){var e=Vi(function(){if(!t.removed&&t.selection.getRng().collapsed){var e=fg(t,t.selection.getRng(),!1);t.selection.setRng(e)}},0);t.on("focus",function(){e.throttle()}),t.on("blur",function(){e.cancel()})},Rv=jo.isContentEditableTrue,Dv=jo.isContentEditableFalse,Ov=function(e,t){for(var n=e.getBody();t&&t!==n;){if(Rv(t)||Dv(t))return t;t=t.parentNode}return null},Bv=function(g){var p,e,t,a=g.getBody(),o=ds(g.getBody(),function(e){return g.dom.isBlock(e)},function(){return sh(g)}),h="sel-"+g.dom.uniqueId(),u=function(e){e&&g.selection.setRng(e)},s=function(){return g.selection.getRng()},v=function(e,t,n,r){return void 0===r&&(r=!0),g.fire("ShowCaret",{target:t,direction:e,before:n}).isDefaultPrevented()?null:(r&&g.selection.scrollIntoView(t,-1===e),o.show(n,t))},y=function(e,t){return t=Os(e,a,t),-1===e?_u.fromRangeStart(t):_u.fromRangeEnd(t)},n=function(e){return ka(e)||Oa(e)||Ba(e)},b=function(e){return n(e.startContainer)||n(e.endContainer)},c=function(e){var t=g.schema.getShortEndedElements(),n=g.dom.createRng(),r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset;return br(t,r.nodeName.toLowerCase())?0===o?n.setStartBefore(r):n.setStartAfter(r):n.setStart(r,o),br(t,i.nodeName.toLowerCase())?0===a?n.setEndBefore(i):n.setEndAfter(i):n.setEnd(i,a),n},l=function(e,t){var n,r,o,i,a,u,s,c,l,f,d=g.$,m=g.dom;if(!e)return null;if(e.collapsed){if(!b(e))if(!1===t){if(c=y(-1,e),gs(c.getNode(!0)))return v(-1,c.getNode(!0),!1,!1);if(gs(c.getNode()))return v(-1,c.getNode(),!c.isAtEnd(),!1)}else{if(c=y(1,e),gs(c.getNode()))return v(1,c.getNode(),!c.isAtEnd(),!1);if(gs(c.getNode(!0)))return v(1,c.getNode(!0),!1,!1)}return null}return i=e.startContainer,a=e.startOffset,u=e.endOffset,3===i.nodeType&&0===a&&Dv(i.parentNode)&&(i=i.parentNode,a=m.nodeIndex(i),i=i.parentNode),1!==i.nodeType?null:(u===a+1&&i===e.endContainer&&(n=i.childNodes[a]),Dv(n)?(l=f=n.cloneNode(!0),(s=g.fire("ObjectSelected",{target:n,targetClone:l})).isDefaultPrevented()?null:(r=oa(ar.fromDom(g.getBody()),"#"+h).fold(function(){return d([])},function(e){return d([e.dom()])}),l=s.targetClone,0===r.length&&(r=d('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",h)).appendTo(g.getBody()),e=g.dom.createRng(),l===f&&fe.ie?(r.empty().append('<p style="font-size: 0" data-mce-bogus="all">\xa0</p>').append(l),e.setStartAfter(r[0].firstChild.firstChild),e.setEndAfter(l)):(r.empty().append("\xa0").append(l).append("\xa0"),e.setStart(r[0].firstChild,1),e.setEnd(r[0].lastChild,0)),r.css({top:m.getPos(n,g.getBody()).y}),r[0].focus(),(o=g.selection.getSel()).removeAllRanges(),o.addRange(e),z(Qi(ar.fromDom(g.getBody()),"*[data-mce-selected]"),function(e){Sr(e,"data-mce-selected")}),n.setAttribute("data-mce-selected","1"),p=n,C(),e)):null)},f=function(){p&&(p.removeAttribute("data-mce-selected"),oa(ar.fromDom(g.getBody()),"#"+h).each(Ui),p=null),oa(ar.fromDom(g.getBody()),"#"+h).each(Ui),p=null},C=function(){o.hide()};return fe.ceFalse&&(function(){g.on("mouseup",function(e){var t=s();t.collapsed&&ph(g,e.clientX,e.clientY)&&u(lg(g,t,!1))}),g.on("click",function(e){var t;(t=Ov(g,e.target))&&(Dv(t)&&(e.preventDefault(),g.focus()),Rv(t)&&g.dom.isChildOf(t,g.selection.getNode())&&f())}),g.on("blur NewBlock",function(){f()}),g.on("ResizeWindow FullscreenStateChanged",function(){return o.reposition()});var n,r,i=function(e,t){var n,r,o=g.dom.getParent(e,g.dom.isBlock),i=g.dom.getParent(t,g.dom.isBlock);return!(!o||!g.dom.isChildOf(o,i)||!1!==Dv(Ov(g,o)))||o&&(n=o,r=i,!(g.dom.getParent(n,g.dom.isBlock)===g.dom.getParent(r,g.dom.isBlock)))&&function(e){var t=Js(e);if(!e.firstChild)return!1;var n=_u.before(e.firstChild),r=t.next(n);return r&&!Lf(r)&&!Ff(r)}(o)};r=!1,(n=g).on("touchstart",function(){r=!1}),n.on("touchmove",function(){r=!0}),n.on("touchend",function(e){var t=Ov(n,e.target);Dv(t)&&(r||(e.preventDefault(),l(cg(n,t))))}),g.on("mousedown",function(e){var t,n=e.target;if((n===a||"HTML"===n.nodeName||g.dom.isChildOf(n,a))&&!1!==ph(g,e.clientX,e.clientY))if(t=Ov(g,n))Dv(t)?(e.preventDefault(),l(cg(g,t))):(f(),Rv(t)&&e.shiftKey||yv(e.clientX,e.clientY,g.selection.getRng())||(C(),g.selection.placeCaretAt(e.clientX,e.clientY)));else if(!1===gs(n)){f(),C();var r=vv(a,e.clientX,e.clientY);if(r&&!i(e.target,r.node)){e.preventDefault();var o=v(1,r.node,r.before,!1);g.getBody().focus(),u(o)}}}),g.on("keypress",function(e){rv.modifierPressed(e)||(e.keyCode,Dv(g.selection.getNode())&&e.preventDefault())}),g.on("getSelectionRange",function(e){var t=e.range;if(p){if(!p.parentNode)return void(p=null);(t=t.cloneRange()).selectNode(p),e.range=t}}),g.on("setSelectionRange",function(e){e.range=c(e.range);var t=l(e.range,e.forward);t&&(e.range=t)}),g.on("AfterSetSelectionRange",function(e){var t,n=e.range;b(n)||"mcepastebin"===n.startContainer.parentNode.id||C(),t=n.startContainer.parentNode,g.dom.hasClass(t,"mce-offscreen-selection")||f()}),g.on("copy",function(e){var t,n=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!fe.ie){var r=(t=g.dom.get(h))?t.getElementsByTagName("*")[0]:t;r&&(e.preventDefault(),n.clearData(),n.setData("text/html",r.outerHTML),n.setData("text/plain",r.outerText))}}),_v(g),Av(g)}(),e=g.contentStyles,t=".mce-content-body",e.push(o.getCss()),e.push(t+" .mce-offscreen-selection {position: absolute;left: -9999999999px;max-width: 1000000px;}"+t+" *[contentEditable=false] {cursor: default;}"+t+" *[contentEditable=true] {cursor: text;}")),{showCaret:v,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&(Pa(e),u(s()),g.selection.scrollIntoView(e[0]))},hideFakeCaret:C,destroy:function(){o.destroy(),p=null}}},Pv=function(e){for(var t=e;/<!--|--!?>/g.test(t);)t=t.replace(/<!--|--!?>/g,"");return t},Iv=function(e,t,n){var r,o,i,a,u=1;for(a=e.getShortEndedElements(),(i=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])u--;else if(!o[1]){if(o[2]in a)continue;u++}if(0===u)break}return r},Lv=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null};function Fv(z,U){void 0===U&&(U=di());var e=function(){};!1!==(z=z||{}).fix_self_closing&&(z.fix_self_closing=!0);var j=z.comment?z.comment:e,V=z.cdata?z.cdata:e,H=z.text?z.text:e,q=z.start?z.start:e,$=z.end?z.end:e,W=z.pi?z.pi:e,K=z.doctype?z.doctype:e;return{parse:function(e){var t,n,r,d,o,i,a,m,u,s,g,c,p,l,f,h,v,y,b,C,x,w,N,E,S,T,k,_,A,R=0,D=[],O=0,B=ti.decode,P=Xt.makeMap("src,href,data,background,formaction,poster,xlink:href"),I=/((java|vb)script|mhtml):/i,L=function(e){var t,n;for(t=D.length;t--&&D[t].name!==e;);if(0<=t){for(n=D.length-1;t<=n;n--)(e=D[n]).valid&&$(e.name);D.length=t}},F=function(e,t,n,r,o){var i,a,u,s,c;if(n=(t=t.toLowerCase())in g?t:B(n||r||o||""),p&&!m&&0==(0===(u=t).indexOf("data-")||0===u.indexOf("aria-"))){if(!(i=y[t])&&b){for(a=b.length;a--&&!(i=b[a]).pattern.test(t););-1===a&&(i=null)}if(!i)return;if(i.validValues&&!(n in i.validValues))return}if(P[t]&&!z.allow_script_urls){var l=n.replace(/[\s\u0000-\u001F]+/g,"");try{l=decodeURIComponent(l)}catch(f){l=unescape(l)}if(I.test(l))return;if(c=l,!(s=z).allow_html_data_urls&&(/^data:image\//i.test(c)?!1===s.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(c):/^data:/i.test(c)))return}m&&(t in P||0===t.indexOf("on"))||(d.map[t]=n,d.push({name:t,value:n}))};for(S=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),T=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,s=U.getShortEndedElements(),E=z.self_closing_elements||U.getSelfClosingElements(),g=U.getBoolAttrs(),p=z.validate,u=z.remove_internals,A=z.fix_self_closing,k=U.getSpecialElements(),N=e+">";t=S.exec(N);){if(R<t.index&&H(B(e.substr(R,t.index-R))),n=t[6])":"===(n=n.toLowerCase()).charAt(0)&&(n=n.substr(1)),L(n);else if(n=t[7]){if(t.index+t[0].length>e.length){H(B(e.substr(t.index))),R=t.index+t[0].length;continue}":"===(n=n.toLowerCase()).charAt(0)&&(n=n.substr(1)),c=n in s,A&&E[n]&&0<D.length&&D[D.length-1].name===n&&L(n);var M=Lv(T,t[8]);if(null!==M){if("all"===M){R=Iv(U,e,S.lastIndex),S.lastIndex=R;continue}f=!1}if(!p||(l=U.getElementRule(n))){if(f=!0,p&&(y=l.attributes,b=l.attributePatterns),(v=t[8])?((m=-1!==v.indexOf("data-mce-type"))&&u&&(f=!1),(d=[]).map={},v.replace(T,F)):(d=[]).map={},p&&!m){if(C=l.attributesRequired,x=l.attributesDefault,w=l.attributesForced,l.removeEmptyAttrs&&!d.length&&(f=!1),w)for(o=w.length;o--;)a=(h=w[o]).name,"{$uid}"===(_=h.value)&&(_="mce_"+O++),d.map[a]=_,d.push({name:a,value:_});if(x)for(o=x.length;o--;)(a=(h=x[o]).name)in d.map||("{$uid}"===(_=h.value)&&(_="mce_"+O++),d.map[a]=_,d.push({name:a,value:_}));if(C){for(o=C.length;o--&&!(C[o]in d.map););-1===o&&(f=!1)}if(h=d.map["data-mce-bogus"]){if("all"===h){R=Iv(U,e,S.lastIndex),S.lastIndex=R;continue}f=!1}}f&&q(n,d,c)}else f=!1;if(r=k[n]){r.lastIndex=R=t.index+t[0].length,(t=r.exec(e))?(f&&(i=e.substr(R,t.index-R)),R=t.index+t[0].length):(i=e.substr(R),R=e.length),f&&(0<i.length&&H(i,!0),$(n)),S.lastIndex=R;continue}c||(v&&v.indexOf("/")===v.length-1?f&&$(n):D.push({name:n,valid:f}))}else(n=t[1])?(">"===n.charAt(0)&&(n=" "+n),z.allow_conditional_comments||"[if"!==n.substr(0,3).toLowerCase()||(n=" "+n),j(n)):(n=t[2])?V(Pv(n)):(n=t[3])?K(n):(n=t[4])&&W(n,t[5]);R=t.index+t[0].length}for(R<e.length&&H(B(e.substr(R))),o=D.length-1;0<=o;o--)(n=D[o]).valid&&$(n.name)}}}(Fv||(Fv={})).findEndTag=Iv;var Mv=Fv,zv=function(e,t){var n,r,o,i,a,u,s,c,l=t,f=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,d=e.schema;for(u=e.getTempAttrs(),s=l,c=new RegExp(["\\s?("+u.join("|")+')="[^"]+"'].join("|"),"gi"),l=s.replace(c,""),a=d.getShortEndedElements();i=f.exec(l);)r=f.lastIndex,o=i[0].length,n=a[i[1]]?r:Mv.findEndTag(d,l,r),l=l.substring(0,r-o)+l.substring(n),f.lastIndex=r-o;return wa(l)},Uv={trimExternal:zv,trimInternal:zv},jv=0,Vv=2,Hv=1,qv=function(g,p){var e=g.length+p.length+2,h=new Array(e),v=new Array(e),c=function(e,t,n,r,o){var i=l(e,t,n,r);if(null===i||i.start===t&&i.diag===t-r||i.end===e&&i.diag===e-n)for(var a=e,u=n;a<t||u<r;)a<t&&u<r&&g[a]===p[u]?(o.push([0,g[a]]),++a,++u):r-n<t-e?(o.push([2,g[a]]),++a):(o.push([1,p[u]]),++u);else{c(e,i.start,n,i.start-i.diag,o);for(var s=i.start;s<i.end;++s)o.push([0,g[s]]);c(i.end,t,i.end-i.diag,r,o)}},y=function(e,t,n,r){for(var o=e;o-t<r&&o<n&&g[o]===p[o-t];)++o;return{start:e,end:o,diag:t}},l=function(e,t,n,r){var o=t-e,i=r-n;if(0===o||0===i)return null;var a,u,s,c,l,f=o-i,d=i+o,m=(d%2==0?d:d+1)/2;for(h[1+m]=e,v[1+m]=t+1,a=0;a<=m;++a){for(u=-a;u<=a;u+=2){for(s=u+m,u===-a||u!==a&&h[s-1]<h[s+1]?h[s]=h[s+1]:h[s]=h[s-1]+1,l=(c=h[s])-e+n-u;c<t&&l<r&&g[c]===p[l];)h[s]=++c,++l;if(f%2!=0&&f-a<=u&&u<=f+a&&v[s-f]<=h[s])return y(v[s-f],u+e-n,t,r)}for(u=f-a;u<=f+a;u+=2){for(s=u+m-f,u===f-a||u!==f+a&&v[s+1]<=v[s-1]?v[s]=v[s+1]-1:v[s]=v[s-1],l=(c=v[s]-1)-e+n-u;e<=c&&n<=l&&g[c]===p[l];)v[s]=c--,l--;if(f%2==0&&-a<=u&&u<=a&&v[s]<=h[s+f])return y(v[s],u+e-n,t,r)}}},t=[];return c(0,g.length,0,p.length,t),t},$v=function(e){return jo.isElement(e)?e.outerHTML:jo.isText(e)?ti.encodeRaw(e.data,!1):jo.isComment(e)?"\x3c!--"+e.data+"--\x3e":""},Wv=function(e,t,n){var r=function(e){var t,n,r;for(r=V.document.createElement("div"),t=V.document.createDocumentFragment(),e&&(r.innerHTML=e);n=r.firstChild;)t.appendChild(n);return t}(t);if(e.hasChildNodes()&&n<e.childNodes.length){var o=e.childNodes[n];o.parentNode.insertBefore(r,o)}else e.appendChild(r)},Kv=function(e){return U(W(te(e.childNodes),$v),function(e){return 0<e.length})},Xv=function(e,t){var n,r,o,i=W(te(t.childNodes),$v);return n=qv(i,e),r=t,o=0,z(n,function(e){e[0]===jv?o++:e[0]===Hv?(Wv(r,e[1],o),o++):e[0]===Vv&&function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}}(r,o)}),t},Yv=Hi(_.none()),Gv=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},Jv=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},Qv=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},Zv=function(e){var t=ar.fromTag("body",Yv.get().getOrThunk(function(){var e=V.document.implementation.createHTMLDocument("undo");return Yv.set(_.some(e)),e}));return ya(t,Qv(e)),z(Qi(t,"*[data-mce-bogus]"),ji),t.dom().innerHTML},ey=function(n){var e,t,r;return e=Kv(n.getBody()),-1!==(t=(r=G(e,function(e){var t=Uv.trimInternal(n.serializer,e);return 0<t.length?[t]:[]})).join("")).indexOf("</iframe>")?Gv(r):Jv(t)},ty=function(e,t,n){"fragmented"===t.type?Xv(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},ny=function(e,t){return!(!e||!t)&&(r=t,Qv(e)===Qv(r)||(n=t,Zv(e)===Zv(n)));var n,r};function ry(u){var s,r,o=this,c=0,l=[],t=0,f=function(){return 0===t},i=function(e){f()&&(o.typing=e)},d=function(e){u.setDirty(e)},a=function(e){i(!1),o.add({},e)},n=function(){o.typing&&(i(!1),o.add())};return u.on("init",function(){o.add()}),u.on("BeforeExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&(n(),o.beforeChange())}),u.on("ExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&a(e)}),u.on("ObjectResizeStart Cut",function(){o.beforeChange()}),u.on("SaveContent ObjectResized blur",a),u.on("DragEnd",a),u.on("KeyUp",function(e){var t=e.keyCode;e.isDefaultPrevented()||((33<=t&&t<=36||37<=t&&t<=40||45===t||e.ctrlKey)&&(a(),u.nodeChanged()),46!==t&&8!==t||u.nodeChanged(),r&&o.typing&&!1===ny(ey(u),l[0])&&(!1===u.isDirty()&&(d(!0),u.fire("change",{level:l[0],lastLevel:null})),u.fire("TypingUndo"),r=!1,u.nodeChanged()))}),u.on("KeyDown",function(e){var t=e.keyCode;if(!e.isDefaultPrevented())if(33<=t&&t<=36||37<=t&&t<=40||45===t)o.typing&&a(e);else{var n=e.ctrlKey&&!e.altKey||e.metaKey;!(t<16||20<t)||224===t||91===t||o.typing||n||(o.beforeChange(),i(!0),o.add({},e),r=!0)}}),u.on("MouseDown",function(e){o.typing&&a(e)}),u.on("input",function(e){var t;e.inputType&&("insertReplacementText"===e.inputType||"insertText"===(t=e).inputType&&null===t.data)&&a(e)}),u.addShortcut("meta+z","","Undo"),u.addShortcut("meta+y,meta+shift+z","","Redo"),u.on("AddUndo Undo Redo ClearUndos",function(e){e.isDefaultPrevented()||u.nodeChanged()}),o={data:l,typing:!1,beforeChange:function(){f()&&(s=Yu.getUndoBookmark(u.selection))},add:function(e,t){var n,r,o,i=u.settings;if(o=ey(u),e=e||{},e=Xt.extend(e,o),!1===f()||u.removed)return null;if(r=l[c],u.fire("BeforeAddUndo",{level:e,lastLevel:r,originalEvent:t}).isDefaultPrevented())return null;if(r&&ny(r,e))return null;if(l[c]&&(l[c].beforeBookmark=s),i.custom_undo_redo_levels&&l.length>i.custom_undo_redo_levels){for(n=0;n<l.length-1;n++)l[n]=l[n+1];l.length--,c=l.length}e.bookmark=Yu.getUndoBookmark(u.selection),c<l.length-1&&(l.length=c+1),l.push(e),c=l.length-1;var a={level:e,lastLevel:r,originalEvent:t};return u.fire("AddUndo",a),0<c&&(d(!0),u.fire("change",a)),e},undo:function(){var e;return o.typing&&(o.add(),o.typing=!1,i(!1)),0<c&&(e=l[--c],ty(u,e,!0),d(!0),u.fire("undo",{level:e})),e},redo:function(){var e;return c<l.length-1&&(e=l[++c],ty(u,e,!1),d(!0),u.fire("redo",{level:e})),e},clear:function(){l=[],c=0,o.typing=!1,o.data=l,u.fire("ClearUndos")},hasUndo:function(){return 0<c||o.typing&&l[0]&&!ny(ey(u),l[0])},hasRedo:function(){return c<l.length-1&&!o.typing},transact:function(e){return n(),o.beforeChange(),o.ignore(e),o.add()},ignore:function(e){try{t++,e()}finally{t--}},extra:function(e,t){var n,r;o.transact(e)&&(r=l[c].bookmark,n=l[c-1],ty(u,n,!0),o.transact(t)&&(l[c-1].beforeBookmark=r))}}}var oy,iy,ay={},uy=Ht.filter,sy=Ht.each;iy=function(e){var t,n,r=e.selection.getRng();t=jo.matchNodeNames("pre"),r.collapsed||(n=e.selection.getSelectedBlocks(),sy(uy(uy(n,t),function(e){return t(e.previousSibling)&&-1!==Ht.indexOf(n,e.previousSibling)}),function(e){var t,n;t=e.previousSibling,gn(n=e).remove(),gn(t).append("<br><br>").append(n.childNodes)}))},ay[oy="pre"]||(ay[oy]=[]),ay[oy].push(iy);var cy=function(e,t){sy(ay[e],function(e){e(t)})},ly=/^(src|href|style)$/,fy=Xt.each,dy=wc.isEq,my=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},gy=function(e,t,n){var r,o,i;return r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],jo.isElement(r)&&(i=r.childNodes.length-1,!n&&o&&o--,r=r.childNodes[i<o?i:o]),jo.isText(r)&&n&&o>=r.nodeValue.length&&(r=new go(r,e.getBody()).next()||r),jo.isText(r)&&!n&&0===o&&(r=new go(r,e.getBody()).prev()||r),r},py=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},hy=function(e,t,n,r,o){var i=ar.fromDom(t),a=ar.fromDom(e.create(r,o)),u=n?Wr(i):$r(i);return Mi(a,u),n?(Pi(i,a),Li(a,i)):(Ii(i,a),Fi(a,i)),a.dom()},vy=function(e,t,n,r){return!(t=wc.getNonWhiteSpaceSibling(t,n,r))||"BR"===t.nodeName||e.isBlock(t)},yy=function(e,n,r,o,i){var t,a,u,s,c,l,f,d,m,g,p,h,v,y,b=e.dom;if(c=b,!(dy(l=o,(f=n).inline)||dy(l,f.block)||(f.selector?jo.isElement(l)&&c.is(l,f.selector):void 0)||(s=o,n.links&&"A"===s.tagName)))return!1;if("all"!==n.remove)for(fy(n.styles,function(e,t){e=wc.normalizeStyleValue(b,wc.replaceVars(e,r),t),"number"==typeof t&&(t=e,i=0),(n.remove_similar||!i||dy(wc.getStyle(b,i,t),e))&&b.setStyle(o,t,""),u=1}),u&&""===b.getAttrib(o,"style")&&(o.removeAttribute("style"),o.removeAttribute("data-mce-style")),fy(n.attributes,function(e,t){var n;if(e=wc.replaceVars(e,r),"number"==typeof t&&(t=e,i=0),!i||dy(b.getAttrib(i,t),e)){if("class"===t&&(e=b.getAttrib(o,t))&&(n="",fy(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(n+=(n?" ":"")+e)}),n))return void b.setAttrib(o,t,n);"class"===t&&o.removeAttribute("className"),ly.test(t)&&o.removeAttribute("data-mce-"+t),o.removeAttribute(t)}}),fy(n.classes,function(e){e=wc.replaceVars(e,r),i&&!b.hasClass(i,e)||b.removeClass(o,e)}),a=b.getAttribs(o),t=0;t<a.length;t++){var C=a[t].nodeName;if(0!==C.indexOf("_")&&0!==C.indexOf("data-"))return!1}return"none"!==n.remove?(d=e,g=n,h=(m=o).parentNode,v=d.dom,y=d.settings.forced_root_block,g.block&&(y?h===v.getRoot()&&(g.list_block&&dy(m,g.list_block)||fy(Xt.grep(m.childNodes),function(e){wc.isValid(d,y,e.nodeName.toLowerCase())?p?p.appendChild(e):(p=py(v,e,y),v.setAttribs(p,d.settings.forced_root_block_attrs)):p=0})):v.isBlock(m)&&!v.isBlock(h)&&(vy(v,m,!1)||vy(v,m.firstChild,!0,1)||m.insertBefore(v.create("br"),m.firstChild),vy(v,m,!0)||vy(v,m.lastChild,!1,1)||m.appendChild(v.create("br")))),g.selector&&g.inline&&!dy(g.inline,m)||v.remove(m,1),!0):void 0},by=yy,Cy=function(s,c,l,e,f){var t,n,d=s.formatter.get(c),m=d[0],a=!0,u=s.dom,r=s.selection,i=function(e){var n,t,r,o,i,a,u=(n=s,t=e,r=c,o=l,i=f,fy(wc.getParents(n.dom,t.parentNode).reverse(),function(e){var t;a||"_start"===e.id||"_end"===e.id||(t=Mm.matchNode(n,e,r,o,i))&&!1!==t.split&&(a=e)}),a);return function(e,t,n,r,o,i,a,u){var s,c,l,f,d,m,g=e.dom;if(n){for(m=n.parentNode,s=r.parentNode;s&&s!==m;s=s.parentNode){for(c=g.clone(s,!1),d=0;d<t.length;d++)if(yy(e,t[d],u,c,c)){c=0;break}c&&(l&&c.appendChild(l),f||(f=c),l=c)}!i||a.mixed&&g.isBlock(n)||(r=g.split(n,r)),l&&(o.parentNode.insertBefore(l,o),f.appendChild(o))}return r}(s,d,u,e,e,!0,m,l)},g=function(e){var t,n,r,o,i;if(jo.isElement(e)&&u.getContentEditable(e)&&(o=a,a="true"===u.getContentEditable(e),i=!0),t=Xt.grep(e.childNodes),a&&!i)for(n=0,r=d.length;n<r&&!yy(s,d[n],l,e,e);n++);if(m.deep&&t.length){for(n=0,r=t.length;n<r;n++)g(t[n]);i&&(a=o)}},p=function(e){var t,n=u.get(e?"_start":"_end"),r=n[e?"firstChild":"lastChild"];return yc(t=r)&&jo.isElement(t)&&("_start"===t.id||"_end"===t.id)&&(r=r[e?"firstChild":"lastChild"]),jo.isText(r)&&0===r.data.length&&(r=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),u.remove(n,!0),r},o=function(e){var t,n,r=e.commonAncestorContainer;if(e=Pc(s,e,d,!0),m.split){if(e=Um(e),(t=gy(s,e,!0))!==(n=gy(s,e))){if(/^(TR|TH|TD)$/.test(t.nodeName)&&t.firstChild&&(t="TR"===t.nodeName?t.firstChild.firstChild||t:t.firstChild||t),r&&/^T(HEAD|BODY|FOOT|R)$/.test(r.nodeName)&&/^(TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n=n.firstChild||n),my(u,t,n)){var o=_.from(t.firstChild).getOr(t);return i(hy(u,o,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void p(!0)}if(my(u,n,t))return o=_.from(n.lastChild).getOr(n),i(hy(u,o,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void p(!1);t=py(u,t,"span",{id:"_start","data-mce-type":"bookmark"}),n=py(u,n,"span",{id:"_end","data-mce-type":"bookmark"}),i(t),i(n),t=p(!0),n=p()}else t=n=i(t);e.startContainer=t.parentNode?t.parentNode:t,e.startOffset=u.nodeIndex(t),e.endContainer=n.parentNode?n.parentNode:n,e.endOffset=u.nodeIndex(n)+1}Lc(u,e,function(e){fy(e,function(e){g(e),jo.isElement(e)&&"underline"===s.dom.getStyle(e,"text-decoration")&&e.parentNode&&"underline"===wc.getTextDecoration(u,e.parentNode)&&yy(s,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,e)})})};if(e)e.nodeType?((n=u.createRng()).setStartBefore(e),n.setEndAfter(e),o(n)):o(e);else if("false"!==u.getContentEditable(r.getNode()))r.isCollapsed()&&m.inline&&!u.select("td[data-mce-selected],th[data-mce-selected]").length?function(e,t,n,r){var o,i,a,u,s,c,l,f=e.dom,d=e.selection,m=[],g=d.getRng();for(o=g.startContainer,i=g.startOffset,3===(s=o).nodeType&&(i!==o.nodeValue.length&&(u=!0),s=s.parentNode);s;){if(Mm.matchNode(e,s,t,n,r)){c=s;break}s.nextSibling&&(u=!0),m.push(s),s=s.parentNode}if(c)if(u){a=d.getBookmark(),g.collapse(!0);var p=Pc(e,g,e.formatter.get(t),!0);p=Um(p),e.formatter.remove(t,n,p),d.moveToBookmark(a)}else{l=Qu(e.getBody(),c);var h=$m(!1).dom(),v=Gm(m,h);Xm(e,h,l||c),Wm(e,l,!1),d.setCursorLocation(v,1),f.isEmpty(c)&&f.remove(c)}}(s,c,l,f):(t=Yu.getPersistentBookmark(s.selection,!0),o(r.getRng()),r.moveToBookmark(t),m.inline&&Mm.match(s,c,l,r.getStart())&&wc.moveStart(u,r,r.getRng()),s.nodeChanged());else{e=r.getNode();for(var h=0,v=d.length;h<v&&(!d[h].ceFalseOverride||!yy(s,d[h],l,e,e));h++);}},xy=Xt.each,wy=function(e){return e&&1===e.nodeType&&!yc(e)&&!Ju(e)&&!jo.isBogus(e)},Ny=function(e,t){var n;for(n=e;n;n=n[t]){if(3===n.nodeType&&0!==n.nodeValue.length)return e;if(1===n.nodeType&&!yc(n))return n}return e},Ey=function(e,t,n){var r,o,i=new el(e);if(t&&n&&(t=Ny(t,"previousSibling"),n=Ny(n,"nextSibling"),i.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)r=(o=r).nextSibling,t.appendChild(o);return e.remove(n),Xt.each(Xt.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n},Sy=function(e,t,n){xy(e.childNodes,function(e){wy(e)&&(t(e)&&n(e),e.hasChildNodes()&&Sy(e,t,n))})},Ty=function(n,e){return d(function(e,t){return!(!t||!wc.getStyle(n,t,e))},e)},ky=function(r,e,t){return d(function(e,t,n){r.setStyle(n,e,t),""===n.getAttribute("style")&&n.removeAttribute("style"),_y(r,n)},e,t)},_y=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},Ay=function(e,t){var n;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(n=wc.getTextDecoration(e,t.parentNode),e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null))},Ry=function(n,e,r,o){xy(e,function(t){xy(n.dom.select(t.inline,o),function(e){wy(e)&&by(n,t,r,e,t.exact?e:null)}),function(r,e,t){if(e.clear_child_styles){var n=e.links?"*:not(a)":"*";xy(r.select(n,t),function(n){wy(n)&&xy(e.styles,function(e,t){r.setStyle(n,t,"")})})}}(n.dom,t,o)})},Dy=function(e,t,n,r){(t.styles.color||t.styles.textDecoration)&&(Xt.walk(r,d(Ay,e),"childNodes"),Ay(e,r))},Oy=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Sy(r,Ty(e,"fontSize"),ky(e,"backgroundColor",wc.replaceVars(t.styles.backgroundColor,n)))},By=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(Sy(r,Ty(e,"fontSize"),ky(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Py=function(e,t,n,r){r&&!1!==t.merge_siblings&&(r=Ey(e,wc.getNonWhiteSpaceSibling(r),r),r=Ey(e,r,wc.getNonWhiteSpaceSibling(r,!0)))},Iy=function(t,n,r,o,i){Mm.matchNode(t,i.parentNode,r,o)&&by(t,n,o,i)||n.merge_with_parents&&t.dom.getParent(i.parentNode,function(e){if(Mm.matchNode(t,e,r,o))return by(t,n,o,i),!0})},Ly=Xt.each,Fy=function(g,p,h,r){var e,t,v=g.formatter.get(p),y=v[0],o=!r&&g.selection.isCollapsed(),i=g.dom,n=g.selection,b=function(n,e){if(e=e||y,n){if(e.onformat&&e.onformat(n,e,h,r),Ly(e.styles,function(e,t){i.setStyle(n,t,wc.replaceVars(e,h))}),e.styles){var t=i.getAttrib(n,"style");t&&n.setAttribute("data-mce-style",t)}Ly(e.attributes,function(e,t){i.setAttrib(n,t,wc.replaceVars(e,h))}),Ly(e.classes,function(e){e=wc.replaceVars(e,h),i.hasClass(n,e)||i.addClass(n,e)})}},C=function(e,t){var n=!1;return!!y.selector&&(Ly(e,function(e){if(!("collapsed"in e&&e.collapsed!==o))return i.is(t,e.selector)&&!Ju(t)?(b(t,e),!(n=!0)):void 0}),n)},a=function(s,e,t,c){var l,f,d=[],m=!0;l=y.inline||y.block,f=s.create(l),b(f),Lc(s,e,function(e){var a,u=function(e){var t,n,r,o;if(o=m,t=e.nodeName.toLowerCase(),n=e.parentNode.nodeName.toLowerCase(),1===e.nodeType&&s.getContentEditable(e)&&(o=m,m="true"===s.getContentEditable(e),r=!0),wc.isEq(t,"br"))return a=0,void(y.block&&s.remove(e));if(y.wrapper&&Mm.matchNode(g,e,p,h))a=0;else{if(m&&!r&&y.block&&!y.wrapper&&wc.isTextBlock(g,t)&&wc.isValid(g,n,l))return e=s.rename(e,l),b(e),d.push(e),void(a=0);if(y.selector){var i=C(v,e);if(!y.inline||i)return void(a=0)}!m||r||!wc.isValid(g,l,t)||!wc.isValid(g,n,l)||!c&&3===e.nodeType&&1===e.nodeValue.length&&65279===e.nodeValue.charCodeAt(0)||Ju(e)||y.inline&&s.isBlock(e)?(a=0,Ly(Xt.grep(e.childNodes),u),r&&(m=o),a=0):(a||(a=s.clone(f,!1),e.parentNode.insertBefore(a,e),d.push(a)),a.appendChild(e))}};Ly(e,u)}),!0===y.links&&Ly(d,function(e){var t=function(e){"A"===e.nodeName&&b(e,y),Ly(Xt.grep(e.childNodes),t)};t(e)}),Ly(d,function(e){var t,n,r,o,i,a=function(e){var n=!1;return Ly(e.childNodes,function(e){if((t=e)&&1===t.nodeType&&!yc(t)&&!Ju(t)&&!jo.isBogus(t))return n=e,!1;var t}),n};n=0,Ly(e.childNodes,function(e){wc.isWhiteSpaceNode(e)||yc(e)||n++}),t=n,!(1<d.length)&&s.isBlock(e)||0!==t?(y.inline||y.wrapper)&&(y.exact||1!==t||((o=a(r=e))&&!yc(o)&&Mm.matchName(s,o,y)&&(i=s.clone(o,!1),b(i),s.replace(i,r,!0),s.remove(o,1)),e=i||r),Ry(g,v,h,e),Iy(g,y,p,h,e),Oy(s,y,h,e),By(s,y,h,e),Py(s,y,h,e)):s.remove(e,1)})};if("false"!==i.getContentEditable(n.getNode())){if(y){if(r)r.nodeType?C(v,r)||((t=i.createRng()).setStartBefore(r),t.setEndAfter(r),a(i,Pc(g,t,v),0,!0)):a(i,r,0,!0);else if(o&&y.inline&&!i.select("td[data-mce-selected],th[data-mce-selected]").length)!function(e,t,n){var r,o,i,a,u,s,c=e.selection;a=(r=c.getRng(!0)).startOffset,s=r.startContainer.nodeValue,(o=Qu(e.getBody(),c.getStart()))&&(i=qm(o));var l,f,d=/[^\s\u00a0\u00ad\u200b\ufeff]/;s&&0<a&&a<s.length&&d.test(s.charAt(a))&&d.test(s.charAt(a-1))?(u=c.getBookmark(),r.collapse(!0),r=Pc(e,r,e.formatter.get(t)),r=Um(r),e.formatter.apply(t,n,r),c.moveToBookmark(u)):(o&&i.nodeValue===jm||(l=e.getDoc(),f=$m(!0).dom(),i=(o=l.importNode(f,!0)).firstChild,r.insertNode(o),a=1),e.formatter.apply(t,n,o),c.setCursorLocation(i,a))}(g,p,h);else{var u=g.selection.getNode();g.settings.forced_root_block||!v[0].defaultBlock||i.getParent(u,i.isBlock)||Fy(g,v[0].defaultBlock),g.selection.setRng(cl(g.selection.getRng())),e=Yu.getPersistentBookmark(g.selection,!0),a(i,Pc(g,n.getRng(),v)),y.styles&&Dy(i,y,h,u),n.moveToBookmark(e),wc.moveStart(i,n,n.getRng()),g.nodeChanged()}cy(p,g)}}else{r=n.getNode();for(var s=0,c=v.length;s<c;s++)if(v[s].ceFalseOverride&&i.is(r,v[s].selector))return void b(r,v[s])}},My={applyFormat:Fy},zy=Xt.each,Uy=function(e,t,n,r,o){var i,a,u,s,c,l,f,d;null===t.get()&&(a=e,u={},(i=t).set({}),a.on("NodeChange",function(n){var r=wc.getParents(a.dom,n.element),o={};r=Xt.grep(r,function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")}),zy(i.get(),function(e,n){zy(r,function(t){return a.formatter.matchNode(t,n,{},e.similar)?(u[n]||(zy(e,function(e){e(!0,{node:t,format:n,parents:r})}),u[n]=e),o[n]=e,!1):!Mm.matchesUnInheritedFormatSelector(a,t,n)&&void 0})}),zy(u,function(e,t){o[t]||(delete u[t],zy(e,function(e){e(!1,{node:n.element,format:t,parents:r})}))})})),c=n,l=r,f=o,d=(s=t).get(),zy(c.split(","),function(e){d[e]||(d[e]=[],d[e].similar=f),d[e].push(l)}),s.set(d)},jy={get:function(r){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{"float":"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{"float":"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(n,e,t){Xt.each(t,function(e,t){r.setAttrib(n,t,e)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return Xt.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(e){t[e]={block:e,remove:"all"}}),t}},Vy=Xt.each,Hy=Si.DOM,qy=function(e,t){var n,o,r,m=t&&t.schema||di({}),g=function(e){var t,n,r;return o="string"==typeof e?{name:e,classes:[],attrs:{}}:e,t=Hy.create(o.name),n=t,(r=o).classes.length&&Hy.addClass(n,r.classes.join(" ")),Hy.setAttribs(n,r.attrs),t},p=function(n,e,t){var r,o,i,a,u,s,c,l,f=0<e.length&&e[0],d=f&&f.name;if(u=d,s="string"!=typeof(a=n)?a.nodeName.toLowerCase():a,c=m.getElementRule(s),i=!(!(l=c&&c.parentsRequired)||!l.length)&&(u&&-1!==Xt.inArray(l,u)?u:l[0]))d===i?(o=e[0],e=e.slice(1)):o=i;else if(f)o=e[0],e=e.slice(1);else if(!t)return n;return o&&(r=g(o)).appendChild(n),t&&(r||(r=Hy.create("div")).appendChild(n),Xt.each(t,function(e){var t=g(e);r.insertBefore(t,n)})),p(r,e,o&&o.siblings)};return e&&e.length?(o=e[0],n=g(o),(r=Hy.create("div")).appendChild(p(n,e.slice(1),o.siblings)),r):""},$y=function(e){var t,a={classes:[],attrs:{}};return"*"!==(e=a.selector=Xt.trim(e))&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(e,t,n,r,o){switch(t){case"#":a.attrs.id=n;break;case".":a.classes.push(n);break;case":":-1!==Xt.inArray("checked disabled enabled read-only required".split(" "),n)&&(a.attrs[n]=n)}if("["===r){var i=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);i&&(a.attrs[i[1]]=i[2])}return""})),a.name=t||"div",a},Wy=function(e){return e&&"string"==typeof e?(e=(e=e.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Xt.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=Xt.map(e.split(/(?:~\+|~|\+)/),$y),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]},Ky=function(n,e){var t,r,o,i,a,u,s="";if(!1===(u=n.settings.preview_styles))return"";"string"!=typeof u&&(u="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");var c=function(e){return e.replace(/%(\w+)/g,"")};if("string"==typeof e){if(!(e=n.formatter.get(e)))return;e=e[0]}return"preview"in e&&!1===(u=e.preview)?"":(t=e.block||e.inline||"span",(i=Wy(e.selector)).length?(i[0].name||(i[0].name=t),t=e.selector,r=qy(i,n)):r=qy([t],n),o=Hy.select(t,r)[0]||r.firstChild,Vy(e.styles,function(e,t){(e=c(e))&&Hy.setStyle(o,t,e)}),Vy(e.attributes,function(e,t){(e=c(e))&&Hy.setAttrib(o,t,e)}),Vy(e.classes,function(e){e=c(e),Hy.hasClass(o,e)||Hy.addClass(o,e)}),n.fire("PreviewFormats"),Hy.setStyles(r,{position:"absolute",left:-65535}),n.getBody().appendChild(r),a=Hy.getStyle(n.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,Vy(u.split(" "),function(e){var t=Hy.getStyle(o,e,!0);if(!("background-color"===e&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(t)&&(t=Hy.getStyle(n.getBody(),e,!0),"#ffffff"===Hy.toHex(t).toLowerCase())||"color"===e&&"#000000"===Hy.toHex(t).toLowerCase())){if("font-size"===e&&/em|%$/.test(t)){if(0===a)return;t=parseFloat(t)/(/%$/.test(t)?100:1)*a+"px"}"border"===e&&t&&(s+="padding:0 2px;"),s+=e+":"+t+";"}}),n.fire("AfterPreviewFormats"),Hy.remove(r),s)},Xy=function(e,t,n,r,o){var i=t.get(n);!Mm.match(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?My.applyFormat(e,n,r,o):Cy(e,n,r,o)},Yy=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])};function Gy(e){var t,n,r,o=(t=e,n={},(r=function(e,t){e&&("string"!=typeof e?Xt.each(e,function(e,t){r(t,e)}):(t=t.length?t:[t],Xt.each(t,function(e){"undefined"==typeof e.deep&&(e.deep=!e.selector),"undefined"==typeof e.split&&(e.split=!e.selector||e.inline),"undefined"==typeof e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),n[e]=t))})(jy.get(t.dom)),r(t.settings.formats),{get:function(e){return e?n[e]:n},register:r,unregister:function(e){return e&&n[e]&&delete n[e],n}}),i=Hi(null);return Yy(e),Jm(e),{get:o.get,register:o.register,unregister:o.unregister,apply:d(My.applyFormat,e),remove:d(Cy,e),toggle:d(Xy,e,o),match:d(Mm.match,e),matchAll:d(Mm.matchAll,e),matchNode:d(Mm.matchNode,e),canApply:d(Mm.canApply,e),formatChanged:d(Uy,e,i),getCssText:d(Ky,e)}}var Jy,Qy=Object.prototype.hasOwnProperty,Zy=(Jy=function(e,t){return t},function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},r=0;r<e.length;r++){var o=e[r];for(var i in o)Qy.call(o,i)&&(n[i]=Jy(n[i],o[i]))}return n}),eb={register:function(t,s,c){t.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)(n=e[r]).attr("tabindex",n.attributes.map["data-mce-tabindex"]),n.attr(t,null)}),t.addAttributeFilter("src,href,style",function(e,t){for(var n,r,o=e.length,i="data-mce-"+t,a=s.url_converter,u=s.url_converter_scope;o--;)(r=(n=e[o]).attributes.map[i])!==undefined?(n.attr(t,0<r.length?r:null),n.attr(i,null)):(r=n.attributes.map[t],"style"===t?r=c.serializeStyle(c.parseStyle(r),n.name):a&&(r=a.call(u,r,t,n.name)),n.attr(t,0<r.length?r:null))}),t.addAttributeFilter("class",function(e){for(var t,n,r=e.length;r--;)(n=(t=e[r]).attr("class"))&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",0<n.length?n:null))}),t.addAttributeFilter("data-mce-type",function(e,t,n){for(var r,o=e.length;o--;)"bookmark"!==(r=e[o]).attributes.map["data-mce-type"]||n.cleanup||(_.from(r.firstChild).exists(function(e){return!Ca(e.value)})?r.unwrap():r.remove())}),t.addNodeFilter("noscript",function(e){for(var t,n=e.length;n--;)(t=e[n].firstChild)&&(t.value=ti.decode(t.value))}),t.addNodeFilter("script,style",function(e,t){for(var n,r,o,i=e.length,a=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};i--;)r=(n=e[i]).firstChild?n.firstChild.value:"","script"===t?((o=n.attr("type"))&&n.attr("type","mce-no/type"===o?null:o.replace(/^mce\-/,"")),"xhtml"===s.element_format&&0<r.length&&(n.firstChild.value="// <![CDATA[\n"+a(r)+"\n// ]]>")):"xhtml"===s.element_format&&0<r.length&&(n.firstChild.value="\x3c!--\n"+a(r)+"\n--\x3e")}),t.addNodeFilter("#comment",function(e){for(var t,n=e.length;n--;)0===(t=e[n]).value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))}),t.addNodeFilter("xml:namespace,input",function(e,t){for(var n,r=e.length;r--;)7===(n=e[r]).type?n.remove():1===n.type&&("input"!==t||"type"in n.attributes.map||n.attr("type","text"))}),t.addAttributeFilter("data-mce-type",function(e){z(e,function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(t.schema.getNonEmptyElements())?e.remove():e.unwrap())})}),t.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})},trimTrailingBr:function(e){var t,n,r=function(e){return e&&"br"===e.name};r(t=e.lastChild)&&r(n=t.prev)&&(t.remove(),n.remove())}},tb={process:function(e,t,n){return f=n,(l=e)&&l.hasEventListeners("PreProcess")&&!f.no_events?(o=t,i=n,c=(r=e).dom,o=o.cloneNode(!0),(a=V.document.implementation).createHTMLDocument&&(u=a.createHTMLDocument(""),Xt.each("BODY"===o.nodeName?o.childNodes:[o],function(e){u.body.appendChild(u.importNode(e,!0))}),o="BODY"!==o.nodeName?u.body.firstChild:u.body,s=c.doc,c.doc=u),xp(r,Zy(i,{node:o})),s&&(c.doc=s),o):t;var r,o,i,a,u,s,c,l,f}},nb=function(e,a,u){e.addNodeFilter("font",function(e){z(e,function(e){var t,n=a.parse(e.attr("style")),r=e.attr("color"),o=e.attr("face"),i=e.attr("size");r&&(n.color=r),o&&(n["font-family"]=o),i&&(n["font-size"]=u[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",a.serialize(n)),t=e,z(["color","face","size"],function(e){t.attr(e,null)})})})},rb=function(e,t){var n,r=gi();t.convert_fonts_to_spans&&nb(e,r,Xt.explode(t.font_size_legacy_values)),n=r,e.addNodeFilter("strike",function(e){z(e,function(e){var t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))})})},ob={register:function(e,t){t.inline_styles&&rb(e,t)}},ib=/^[ \t\r\n]*$/,ab={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},ub=function(e,t,n){var r,o,i=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[i])return e[i];if(e!==t){if(r=e[a])return r;for(o=e.parent;o&&o!==t;o=o.parent)if(r=o[a])return r}},sb=function(){function a(e,t){this.name=e,1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}return a.create=function(e,t){var n,r;if(n=new a(e,ab[e]||1),t)for(r in t)n.attr(r,t[r]);return n},a.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},a.prototype.attr=function(e,t){var n,r;if("string"!=typeof e){for(r in e)this.attr(r,e[r]);return this}if(n=this.attributes){if(t!==undefined){if(null===t){if(e in n.map)for(delete n.map[e],r=n.length;r--;)if(n[r].name===e)return n=n.splice(r,1),this;return this}if(e in n.map){for(r=n.length;r--;)if(n[r].name===e){n[r].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,this}return n.map[e]}},a.prototype.clone=function(){var e,t,n,r,o,i=new a(this.name,this.type);if(n=this.attributes){for((o=[]).map={},e=0,t=n.length;e<t;e++)"id"!==(r=n[e]).name&&(o[o.length]={name:r.name,value:r.value},o.map[r.name]=r.value);i.attributes=o}return i.value=this.value,i.shortEnded=this.shortEnded,i},a.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},a.prototype.unwrap=function(){var e,t;for(e=this.firstChild;e;)t=e.next,this.insert(e,this,!0),e=t;this.remove()},a.prototype.remove=function(){var e=this.parent,t=this.next,n=this.prev;return e&&(e.firstChild===this?(e.firstChild=t)&&(t.prev=null):n.next=t,e.lastChild===this?(e.lastChild=n)&&(n.next=null):t.prev=n,this.parent=this.next=this.prev=null),this},a.prototype.append=function(e){var t;return e.parent&&e.remove(),(t=this.lastChild)?((t.next=e).prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},a.prototype.insert=function(e,t,n){var r;return e.parent&&e.remove(),r=t.parent||this,n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,(e.next=t).prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,(e.prev=t).next=e),e.parent=r,e},a.prototype.getAll=function(e){var t,n=[];for(t=this.firstChild;t;t=ub(t,this))t.name===e&&n.push(t);return n},a.prototype.empty=function(){var e,t,n;if(this.firstChild){for(e=[],n=this.firstChild;n;n=ub(n,this))e.push(n);for(t=e.length;t--;)(n=e[t]).parent=n.firstChild=n.lastChild=n.next=n.prev=null}return this.firstChild=this.lastChild=null,this},a.prototype.isEmpty=function(e,t,n){var r,o,i=this.firstChild;if(t=t||{},i)do{if(1===i.type){if(i.attributes.map["data-mce-bogus"])continue;if(e[i.name])return!1;for(r=i.attributes.length;r--;)if("name"===(o=i.attributes[r].name)||0===o.indexOf("data-mce-bookmark"))return!1}if(8===i.type)return!1;if(3===i.type&&!ib.test(i.value))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&ib.test(i.value))return!1;if(n&&n(i))return!1}while(i=ub(i,this));return!0},a.prototype.walk=function(e){return ub(this,null,e)},a}(),cb=function(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new sb("br",1)).shortEnded=!0:r.empty().append(new sb("#text",3)).value="\xa0"},lb=function(e){return fb(e,"#text")&&"\xa0"===e.firstChild.value},fb=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},db=function(r,e,t,n){return n.isEmpty(e,t,function(e){return t=e,(n=r.getElementRule(t.name))&&n.paddEmpty;var t,n})},mb=function(e,t){return e&&(t[e.name]||"br"===e.name)},gb=function(e,p){var h=e.schema;p.remove_trailing_brs&&e.addNodeFilter("br",function(e,t,n){var r,o,i,a,u,s,c,l,f=e.length,d=Xt.extend({},h.getBlockElements()),m=h.getNonEmptyElements(),g=h.getWhiteSpaceElements();for(d.body=1,r=0;r<f;r++)if(i=(o=e[r]).parent,d[o.parent.name]&&o===i.lastChild){for(u=o.prev;u;){if("span"!==(s=u.name)||"bookmark"!==u.attr("data-mce-type")){if("br"!==s)break;if("br"===s){o=null;break}}u=u.prev}o&&(o.remove(),db(h,m,g,i)&&(c=h.getElementRule(i.name))&&(c.removeEmpty?i.remove():c.paddEmpty&&cb(p,n,d,i)))}else{for(a=o;i&&i.firstChild===a&&i.lastChild===a&&!d[(a=i).name];)i=i.parent;a===i&&!0!==p.padd_empty_with_br&&((l=new sb("#text",3)).value="\xa0",o.replace(l))}}),e.addAttributeFilter("href",function(e){var t,n,r,o=e.length;if(!p.allow_unsafe_link_target)for(;o--;)"a"===(t=e[o]).name&&"_blank"===t.attr("target")&&t.attr("rel",(n=t.attr("rel"),r=n?Xt.trim(n):"",/\b(noopener)\b/g.test(r)?r:r.split(" ").filter(function(e){return 0<e.length}).concat(["noopener"]).sort().join(" ")))}),p.allow_html_in_named_anchor||e.addAttributeFilter("id,name",function(e){for(var t,n,r,o,i=e.length;i--;)if("a"===(o=e[i]).name&&o.firstChild&&!o.attr("href"))for(r=o.parent,t=o.lastChild;n=t.prev,r.insert(t,o),t=n;);}),p.fix_list_elements&&e.addNodeFilter("ul,ol",function(e){for(var t,n,r=e.length;r--;)if("ul"===(n=(t=e[r]).parent).name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new sb("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}}),p.validate&&h.getValidClasses()&&e.addAttributeFilter("class",function(e){for(var t,n,r,o,i,a,u,s=e.length,c=h.getValidClasses();s--;){for(n=(t=e[s]).attr("class").split(" "),i="",r=0;r<n.length;r++)o=n[r],u=!1,(a=c["*"])&&a[o]&&(u=!0),a=c[t.name],!u&&a&&a[o]&&(u=!0),u&&(i&&(i+=" "),i+=o);i.length||(i=null),t.attr("class",i)}})},pb=Xt.makeMap,hb=Xt.each,vb=Xt.explode,yb=Xt.extend;function bb(T,k){void 0===k&&(k=di());var _={},A=[],R={},D={};(T=T||{}).validate=!("validate"in T)||T.validate,T.root_name=T.root_name||"body";var O=function(e){var t,n,r;(n=e.name)in _&&((r=R[n])?r.push(e):R[n]=[e]),t=A.length;for(;t--;)(n=A[t].name)in e.attributes.map&&((r=D[n])?r.push(e):D[n]=[e]);return e},e={schema:k,addAttributeFilter:function(e,n){hb(vb(e),function(e){var t;for(t=0;t<A.length;t++)if(A[t].name===e)return void A[t].callbacks.push(n);A.push({name:e,callbacks:[n]})})},getAttributeFilters:function(){return[].concat(A)},addNodeFilter:function(e,n){hb(vb(e),function(e){var t=_[e];t||(_[e]=t=[]),t.push(n)})},getNodeFilters:function(){var e=[];for(var t in _)_.hasOwnProperty(t)&&e.push({name:t,callbacks:_[t]});return e},filterNode:O,parse:function(e,a){var t,n,r,o,i,u,s,c,l,f,d,m=[];a=a||{},R={},D={},l=yb(pb("script,style,head,html,body,title,meta,param"),k.getBlockElements());var g=k.getNonEmptyElements(),p=k.children,h=T.validate,v="forced_root_block"in a?a.forced_root_block:T.forced_root_block,y=k.getWhiteSpaceElements(),b=/^[ \t\r\n]+/,C=/[ \t\r\n]+$/,x=/[ \t\r\n]+/g,w=/^[ \t\r\n]+$/;f=y.hasOwnProperty(a.context)||y.hasOwnProperty(T.root_name);var N=function(e,t){var n,r=new sb(e,t);return e in _&&((n=R[e])?n.push(r):R[e]=[r]),r},E=function(e){var t,n,r,o,i=k.getBlockElements();for(t=e.prev;t&&3===t.type;){if(0<(r=t.value.replace(C,"")).length)return void(t.value=r);if(n=t.next){if(3===n.type&&n.value.length){t=t.prev;continue}if(!i[n.name]&&"script"!==n.name&&"style"!==n.name){t=t.prev;continue}}o=t.prev,t.remove(),t=o}};t=Mv({validate:h,allow_script_urls:T.allow_script_urls,allow_conditional_comments:T.allow_conditional_comments,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n}(k.getSelfClosingElements()),cdata:function(e){d.append(N("#cdata",4)).value=e},text:function(e,t){var n;f||(e=e.replace(x," "),mb(d.lastChild,l)&&(e=e.replace(b,""))),0!==e.length&&((n=N("#text",3)).raw=!!t,d.append(n).value=e)},comment:function(e){d.append(N("#comment",8)).value=e},pi:function(e,t){d.append(N(e,7)).value=t,E(d)},doctype:function(e){d.append(N("#doctype",10)).value=e,E(d)},start:function(e,t,n){var r,o,i,a,u;if(i=h?k.getElementRule(e):{}){for((r=N(i.outputName||e,1)).attributes=t,r.shortEnded=n,d.append(r),(u=p[d.name])&&p[r.name]&&!u[r.name]&&m.push(r),o=A.length;o--;)(a=A[o].name)in t.map&&((s=D[a])?s.push(r):D[a]=[r]);l[e]&&E(r),n||(d=r),!f&&y[e]&&(f=!0)}},end:function(e){var t,n,r,o,i;if(n=h?k.getElementRule(e):{}){if(l[e]&&!f){if((t=d.firstChild)&&3===t.type)if(0<(r=t.value.replace(b,"")).length)t.value=r,t=t.next;else for(o=t.next,t.remove(),t=o;t&&3===t.type;)r=t.value,o=t.next,(0===r.length||w.test(r))&&(t.remove(),t=o),t=o;if((t=d.lastChild)&&3===t.type)if(0<(r=t.value.replace(C,"")).length)t.value=r,t=t.prev;else for(o=t.prev,t.remove(),t=o;t&&3===t.type;)r=t.value,o=t.prev,(0===r.length||w.test(r))&&(t.remove(),t=o),t=o}if(f&&y[e]&&(f=!1),n.removeEmpty&&db(k,g,y,d)&&!d.attributes.map.name&&!d.attr("id"))return i=d.parent,l[d.name]?d.empty().remove():d.unwrap(),void(d=i);n.paddEmpty&&(lb(d)||db(k,g,y,d))&&cb(T,a,l,d),d=d.parent}}},k);var S=d=new sb(a.context||T.root_name,11);if(t.parse(e),h&&m.length&&(a.context?a.invalid=!0:function(e){var t,n,r,o,i,a,u,s,c,l,f,d,m,g,p,h;for(d=pb("tr,td,th,tbody,thead,tfoot,table"),l=k.getNonEmptyElements(),f=k.getWhiteSpaceElements(),m=k.getTextBlockElements(),g=k.getSpecialElements(),t=0;t<e.length;t++)if((n=e[t]).parent&&!n.fixed)if(m[n.name]&&"li"===n.parent.name){for(p=n.next;p&&m[p.name];)p.name="li",p.fixed=!0,n.parent.insert(p,n.parent),p=p.next;n.unwrap(n)}else{for(o=[n],r=n.parent;r&&!k.isValidChild(r.name,n.name)&&!d[r.name];r=r.parent)o.push(r);if(r&&1<o.length){for(o.reverse(),i=a=O(o[0].clone()),c=0;c<o.length-1;c++){for(k.isValidChild(a.name,o[c].name)?(u=O(o[c].clone()),a.append(u)):u=a,s=o[c].firstChild;s&&s!==o[c+1];)h=s.next,u.append(s),s=h;a=u}db(k,l,f,i)?r.insert(n,o[0],!0):(r.insert(i,o[0],!0),r.insert(n,i)),r=o[0],(db(k,l,f,r)||fb(r,"br"))&&r.empty().remove()}else if(n.parent){if("li"===n.name){if((p=n.prev)&&("ul"===p.name||"ul"===p.name)){p.append(n);continue}if((p=n.next)&&("ul"===p.name||"ul"===p.name)){p.insert(n,p.firstChild,!0);continue}n.wrap(O(new sb("ul",1)));continue}k.isValidChild(n.parent.name,"div")&&k.isValidChild("div",n.name)?n.wrap(O(new sb("div",1))):g[n.name]?n.empty().remove():n.unwrap()}}}(m)),v&&("body"===S.name||a.isRootContent)&&function(){var e,t,n=S.firstChild,r=function(e){e&&((n=e.firstChild)&&3===n.type&&(n.value=n.value.replace(b,"")),(n=e.lastChild)&&3===n.type&&(n.value=n.value.replace(C,"")))};if(k.isValidChild(S.name,v.toLowerCase())){for(;n;)e=n.next,3===n.type||1===n.type&&"p"!==n.name&&!l[n.name]&&!n.attr("data-mce-type")?(t||((t=N(v,1)).attr(T.forced_root_block_attrs),S.insert(t,n)),t.append(n)):(r(t),t=null),n=e;r(t)}}(),!a.invalid){for(c in R){for(s=_[c],i=(n=R[c]).length;i--;)n[i].parent||n.splice(i,1);for(r=0,o=s.length;r<o;r++)s[r](n,c,a)}for(r=0,o=A.length;r<o;r++)if((s=A[r]).name in D){for(i=(n=D[s.name]).length;i--;)n[i].parent||n.splice(i,1);for(i=0,u=s.callbacks.length;i<u;i++)s.callbacks[i](n,s.name,a)}}return S}};return gb(e,T),ob.register(e,T),e}var Cb=function(e,t,n){-1===Xt.inArray(t,n)&&(e.addAttributeFilter(n,function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),t.push(n))},xb=function(e,t,n){var r=wa(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||Ao(ar.fromDom(t))?r:Xt.trim(r)},wb=function(e,t,n){var r=n.selection?Zy({forced_root_block:!1},n):n,o=e.parse(t,r);return eb.trimTrailingBr(o),o},Nb=function(e,t,n,r,o){var i,a,u,s,c=(i=r,al(t,n).serialize(i));return a=e,s=c,!(u=o).no_events&&a?wp(a,Zy(u,{content:s})).content:s};function Eb(e,t){var a,u,s,c,l,n,r=(a=e,n=["data-mce-selected"],s=(u=t)&&u.dom?u.dom:Si.DOM,c=u&&u.schema?u.schema:di(a),a.entity_encoding=a.entity_encoding||"named",a.remove_trailing_brs=!("remove_trailing_brs"in a)||a.remove_trailing_brs,l=bb(a,c),eb.register(l,a,s),{schema:c,addNodeFilter:l.addNodeFilter,addAttributeFilter:l.addAttributeFilter,serialize:function(e,t){var n=Zy({format:"html"},t||{}),r=tb.process(u,e,n),o=xb(s,r,n),i=wb(l,o,n);return"tree"===n.format?i:Nb(u,a,c,i,n)},addRules:function(e){c.addValidElements(e)},setRules:function(e){c.setValidElements(e)},addTempAttr:d(Cb,l,n),getTempAttrs:function(){return n}});return{schema:r.schema,addNodeFilter:r.addNodeFilter,addAttributeFilter:r.addAttributeFilter,serialize:r.serialize,addRules:r.addRules,setRules:r.setRules,addTempAttr:r.addTempAttr,getTempAttrs:r.getTempAttrs}}function Sb(e){return{getBookmark:d(hc,e),moveToBookmark:d(vc,e)}}(Sb||(Sb={})).isBookmarkNode=yc;var Tb,kb,_b=Sb,Ab=jo.isContentEditableFalse,Rb=jo.isContentEditableTrue,Db=function(r,a){var u,s,c,l,f,d,m,g,p,h,v,y,i,b,C,x,w,N=a.dom,E=Xt.each,S=a.getDoc(),T=V.document,k=Math.abs,_=Math.round,A=a.getBody();l={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var e=".mce-content-body";a.contentStyles.push(e+" div.mce-resizehandle {position: absolute;border: 1px solid black;box-sizing: content-box;background: #FFF;width: 7px;height: 7px;z-index: 10000}"+e+" .mce-resizehandle:hover {background: #000}"+e+" img[data-mce-selected],"+e+" hr[data-mce-selected] {outline: 1px solid black;resize: none}"+e+" .mce-clonedresizable {position: absolute;"+(fe.gecko?"":"outline: 1px dashed black;")+"opacity: .5;filter: alpha(opacity=50);z-index: 10000}"+e+" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}");var R=function(e){return e&&("IMG"===e.nodeName||a.dom.is(e,"figure.image"))},n=function(e){var t,n,r=e.target;t=e,n=a.selection.getRng(),!R(t.target)||yv(t.clientX,t.clientY,n)||e.isDefaultPrevented()||a.selection.select(r)},D=function(e){return a.dom.is(e,"figure.image")?e.querySelector("img"):e},O=function(e){var t=a.settings.object_resizing;return!1!==t&&!fe.iOS&&("string"!=typeof t&&(t="table,img,figure.image,div"),"false"!==e.getAttribute("data-mce-resize")&&e!==a.getBody()&&Lr(ar.fromDom(e),t))},B=function(e){var t,n,r,o;t=e.screenX-d,n=e.screenY-m,b=t*f[2]+h,C=n*f[3]+v,b=b<5?5:b,C=C<5?5:C,(R(u)&&!1!==a.settings.resize_img_proportional?!rv.modifierPressed(e):rv.modifierPressed(e)||R(u)&&f[2]*f[3]!=0)&&(k(t)>k(n)?(C=_(b*y),b=_(C/y)):(b=_(C/y),C=_(b*y))),N.setStyles(D(s),{width:b,height:C}),r=0<(r=f.startPos.x+t)?r:0,o=0<(o=f.startPos.y+n)?o:0,N.setStyles(c,{left:r,top:o,display:"block"}),c.innerHTML=b+" &times; "+C,f[2]<0&&s.clientWidth<=b&&N.setStyle(s,"left",g+(h-b)),f[3]<0&&s.clientHeight<=C&&N.setStyle(s,"top",p+(v-C)),(t=A.scrollWidth-x)+(n=A.scrollHeight-w)!=0&&N.setStyles(c,{left:r-t,top:o-n}),i||(Tp(a,u,h,v),i=!0)},P=function(){i=!1;var e=function(e,t){t&&(u.style[e]||!a.schema.isValid(u.nodeName.toLowerCase(),e)?N.setStyle(D(u),e,t):N.setAttrib(D(u),e,t))};e("width",b),e("height",C),N.unbind(S,"mousemove",B),N.unbind(S,"mouseup",P),T!==S&&(N.unbind(T,"mousemove",B),N.unbind(T,"mouseup",P)),N.remove(s),N.remove(c),o(u),kp(a,u,b,C),N.setAttrib(u,"style",N.getAttrib(u,"style")),a.nodeChanged()},o=function(e){var t,r,o,n,i;I(),M(),t=N.getPos(e,A),g=t.x,p=t.y,i=e.getBoundingClientRect(),r=i.width||i.right-i.left,o=i.height||i.bottom-i.top,u!==e&&(u=e,b=C=0),n=a.fire("ObjectSelected",{target:e}),O(e)&&!n.isDefaultPrevented()?E(l,function(n,e){var t;(t=N.get("mceResizeHandle"+e))&&N.remove(t),t=N.add(A,"div",{id:"mceResizeHandle"+e,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:!0,style:"cursor:"+e+"-resize; margin:0; padding:0"}),11===fe.ie&&(t.contentEditable=!1),N.bind(t,"mousedown",function(e){var t;e.stopImmediatePropagation(),e.preventDefault(),d=(t=e).screenX,m=t.screenY,h=D(u).clientWidth,v=D(u).clientHeight,y=v/h,(f=n).startPos={x:r*n[0]+g,y:o*n[1]+p},x=A.scrollWidth,w=A.scrollHeight,s=u.cloneNode(!0),N.addClass(s,"mce-clonedresizable"),N.setAttrib(s,"data-mce-bogus","all"),s.contentEditable=!1,s.unSelectabe=!0,N.setStyles(s,{left:g,top:p,margin:0}),s.removeAttribute("data-mce-selected"),A.appendChild(s),N.bind(S,"mousemove",B),N.bind(S,"mouseup",P),T!==S&&(N.bind(T,"mousemove",B),N.bind(T,"mouseup",P)),c=N.add(A,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},h+" &times; "+v)}),n.elm=t,N.setStyles(t,{left:r*n[0]+g-t.offsetWidth/2,top:o*n[1]+p-t.offsetHeight/2})}):I(),u.setAttribute("data-mce-selected","1")},I=function(){var e,t;for(e in M(),u&&u.removeAttribute("data-mce-selected"),l)(t=N.get("mceResizeHandle"+e))&&(N.unbind(t),N.remove(t))},L=function(e){var t,n=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};i||a.removed||(E(N.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),t="mousedown"===e.type?e.target:r.getNode(),n(t=N.$(t).closest("table,img,figure.image,hr")[0],A)&&(z(),n(r.getStart(!0),t)&&n(r.getEnd(!0),t))?o(t):I())},F=function(e){return Ab(function(e,t){for(;t&&t!==e;){if(Rb(t)||Ab(t))return t;t=t.parentNode}return null}(a.getBody(),e))},M=function(){for(var e in l){var t=l[e];t.elm&&(N.unbind(t.elm),delete t.elm)}},z=function(){try{a.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};return a.on("init",function(){z(),fe.ie&&11<=fe.ie&&(a.on("mousedown click",function(e){var t=e.target,n=t.nodeName;i||!/^(TABLE|IMG|HR)$/.test(n)||F(t)||(2!==e.button&&a.selection.select(t,"TABLE"===n),"mousedown"===e.type&&a.nodeChanged())}),a.dom.bind(A,"mscontrolselect",function(e){var t=function(e){he.setEditorTimeout(a,function(){a.selection.select(e)})};if(F(e.target))return e.preventDefault(),void t(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target))}));var t=he.throttle(function(e){a.composing||L(e)});a.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",t),a.on("keyup compositionend",function(e){u&&"TABLE"===u.nodeName&&t(e)}),a.on("hide blur",I),a.on("contextmenu",n)}),a.on("remove",M),{isResizable:O,showResizeRect:o,hideResizeRect:I,updateResizeRect:L,destroy:function(){u=s=null}}},Ob=function(e){return jo.isContentEditableTrue(e)||jo.isContentEditableFalse(e)},Bb=function(e,t,n){var r,o,i,a,u,s=n;if(s.caretPositionFromPoint)(o=s.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(s.body.createTextRange){r=s.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(c){r=function(e,n,t){var r,o,i;if(r=t.elementFromPoint(e,n),o=t.body.createTextRange(),r&&"HTML"!==r.tagName||(r=t.body),o.moveToElementText(r),0<(i=(i=Xt.toArray(o.getClientRects())).sort(function(e,t){return(e=Math.abs(Math.max(e.top-n,e.bottom-n)))-(t=Math.abs(Math.max(t.top-n,t.bottom-n)))})).length){n=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,n),o.collapse(!0),o}catch(a){}}return null}(e,t,n)}return i=r,a=n.body,u=i&&i.parentElement?i.parentElement():null,jo.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(u,a,Ob))?null:i}return r},Pb=function(n,e){return W(e,function(e){var t=n.fire("GetSelectionRange",{range:e});return t.range!==e?t.range:e})},Ib=function(e,t){var n=(t||V.document).createDocumentFragment();return z(e,function(e){n.appendChild(e.dom())}),ar.fromDom(n)},Lb=Ar("element","width","rows"),Fb=Ar("element","cells"),Mb=Ar("x","y"),zb=function(e,t){var n=parseInt(Er(e,t),10);return isNaN(n)?1:n},Ub=function(e){return j(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)},jb=function(e,t){for(var n=e.rows(),r=0;r<n.length;r++)for(var o=n[r].cells(),i=0;i<o.length;i++)if(Mr(o[i],t))return _.some(Mb(i,r));return _.none()},Vb=function(e,t,n,r,o){for(var i=[],a=e.rows(),u=n;u<=o;u++){var s=a[u].cells(),c=t<r?s.slice(t,r+1):s.slice(r,t+1);i.push(Fb(a[u].element(),c))}return i},Hb=function(e){var o=Lb(ha(e),0,[]);return z(Qi(e,"tr"),function(n,r){z(Qi(n,"td,th"),function(e,t){!function(e,t,n,r,o){for(var i=zb(o,"rowspan"),a=zb(o,"colspan"),u=e.rows(),s=n;s<n+i;s++){u[s]||(u[s]=Fb(va(r),[]));for(var c=t;c<t+a;c++)u[s].cells()[c]=s===n&&c===t?o:ha(o)}}(o,function(e,t,n){for(;r=t,o=n,i=void 0,((i=e.rows())[o]?i[o].cells():[])[r];)t++;var r,o,i;return t}(o,t,r),r,n,e)})}),Lb(o.element(),Ub(o.rows()),o.rows())},qb=function(e){return n=W((t=e).rows(),function(e){var t=W(e.cells(),function(e){var t=va(e);return Sr(t,"colspan"),Sr(t,"rowspan"),t}),n=ha(e.element());return Mi(n,t),n}),r=ha(t.element()),o=ar.fromTag("tbody"),Mi(o,n),Fi(r,o),r;var t,n,r,o},$b=function(l,e,t){return jb(l,e).bind(function(c){return jb(l,t).map(function(e){return t=l,r=e,o=(n=c).x(),i=n.y(),a=r.x(),u=r.y(),s=i<u?Vb(t,o,i,a,u):Vb(t,o,u,a,i),Lb(t.element(),Ub(s),s);var t,n,r,o,i,a,u,s})})},Wb=function(n,t){return X(n,function(e){return"li"===lr(e)&&Jh(e,t)}).fold(q([]),function(e){return(t=n,X(t,function(e){return"ul"===lr(e)||"ol"===lr(e)})).map(function(e){return[ar.fromTag("li"),ar.fromTag(lr(e))]}).getOr([]);var t})},Kb=function(e,t){var n,r=ar.fromDom(t.commonAncestorContainer),o=uf(r,e),i=U(o,function(e){return xo(e)||bo(e)}),a=Wb(o,t),u=i.concat(a.length?a:So(n=r)?Vr(n).filter(Eo).fold(q([]),function(e){return[n,e]}):Eo(n)?[n]:[]);return W(u,ha)},Xb=function(){return Ib([])},Yb=function(e,t){return n=ar.fromDom(t.cloneContents()),r=Kb(e,t),o=j(r,function(e,t){return Fi(t,e),t},n),0<r.length?Ib([o]):o;var n,r,o},Gb=function(e,o){return(t=e,n=o[0],ra(n,"table",d(Mr,t))).bind(function(e){var t=o[0],n=o[o.length-1],r=Hb(e);return $b(r,t,n).map(function(e){return Ib([qb(e)])})}).getOrThunk(Xb);var t,n},Jb=function(e,t){var n,r,o=Cm(t,e);return 0<o.length?Gb(e,o):(n=e,0<(r=t).length&&r[0].collapsed?Xb():Yb(n,r[0]))},Qb=function(e,t){if(void 0===t&&(t={}),t.get=!0,t.format=t.format||"html",t.selection=!0,(t=e.fire("BeforeGetContent",t)).isDefaultPrevented())return e.fire("GetContent",t),t.content;if("text"===t.format)return c=e,_.from(c.selection.getRng()).map(function(e){var t=c.dom.add(c.getBody(),"div",{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),n=wa(t.innerText);return c.dom.remove(t),n}).getOr("");t.getInner=!0;var n,r,o,i,a,u,s,c,l=(r=t,i=(n=e).selection.getRng(),a=n.dom.create("body"),u=n.selection.getSel(),s=Pb(n,gm(u)),(o=r.contextual?Jb(ar.fromDom(n.getBody()),s).dom():i.cloneContents())&&a.appendChild(o),n.selection.serializer.serialize(a,r));return"tree"===t.format?l:(t.content=e.selection.isCollapsed()?"":l,e.fire("GetContent",t),t.content)},Zb=function(e,t,n){var r,o,i,a,u=(r=t,ma(ma({format:"html"},n),{set:!0,selection:!0,content:r})),s=e.selection.getRng(),c=e.getDoc();if(u.no_events||!(u=e.fire("BeforeSetContent",u)).isDefaultPrevented()){if(t=function(e,t){if("raw"!==t.format){var n=e.parser.parse(t.content,ma({isRootContent:!0,forced_root_block:!1},t));return al({validate:e.validate},e.schema).serialize(n)}return t.content}(e,u),s.insertNode){t+='<span id="__caret">_</span>',s.startContainer===c&&s.endContainer===c?c.body.innerHTML=t:(s.deleteContents(),0===c.body.childNodes.length?c.body.innerHTML=t:s.createContextualFragment?s.insertNode(s.createContextualFragment(t)):(i=c.createDocumentFragment(),a=c.createElement("div"),i.appendChild(a),a.outerHTML=t,s.insertNode(i))),o=e.dom.get("__caret"),(s=c.createRange()).setStartBefore(o),s.setEndBefore(o),e.selection.setRng(s),e.dom.remove("__caret");try{e.selection.setRng(s)}catch(f){}}else{var l=s;l.item&&(c.execCommand("Delete",!1,null),l=e.selection.getRng()),/^\s+/.test(t)?(l.pasteHTML('<span id="__mce_tmp">_</span>'+t),e.dom.remove("__mce_tmp")):l.pasteHTML(t)}u.no_events||e.fire("SetContent",u)}else e.fire("SetContent",u)},eC=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return _.from(i).map(ar.fromDom).map(function(e){return r&&t.collapsed?e:Xr(e,o(e,a)).getOr(e)}).bind(function(e){return dr(e)?_.some(e):Vr(e)}).map(function(e){return e.dom()}).getOr(e)},tC=function(e,t,n){return eC(e,t,!0,n,function(e,t){return Math.min(e.dom().childNodes.length,t)})},nC=function(e,t,n){return eC(e,t,!1,n,function(e,t){return 0<t?t-1:t})},rC=function(e,t){for(var n=e;e&&jo.isText(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n},oC=Xt.each,iC=function(e){return!!e.select},aC=function(e){return!(!e||!e.ownerDocument)&&zr(ar.fromDom(e.ownerDocument),ar.fromDom(e))},uC=function(u,s,e,c){var n,t,l,f,a,r=function(e,t){return Zb(c,e,t)},o=function(e){var t=m();t.collapse(!!e),i(t)},d=function(){return s.getSelection?s.getSelection():s.document.selection},m=function(){var e,t,n,r,o=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}};if(!s)return null;if(null==(r=s.document))return null;if(c.bookmark!==undefined&&!1===sh(c)){var i=up(c);if(i.isSome())return i.map(function(e){return Pb(c,[e])[0]}).getOr(r.createRange())}try{(e=d())&&!jo.isRestrictedNode(e.anchorNode)&&(t=0<e.rangeCount?e.getRangeAt(0):e.createRange?e.createRange():r.createRange())}catch(a){}return(t=Pb(c,[t])[0])||(t=r.createRange?r.createRange():r.body.createTextRange()),t.setStart&&9===t.startContainer.nodeType&&t.collapsed&&(n=u.getRoot(),t.setStart(n,0),t.setEnd(n,0)),l&&f&&(0===o(t.START_TO_START,t,l)&&0===o(t.END_TO_END,t,l)?t=f:f=l=null),t},i=function(e,t){var n,r;if((o=e)&&(iC(o)||aC(o.startContainer)&&aC(o.endContainer))){var o,i=iC(e)?e:null;if(i){f=null;try{i.select()}catch(a){}}else{if(n=d(),e=c.fire("SetSelectionRange",{range:e,forward:t}).range,n){f=e;try{n.removeAllRanges(),n.addRange(e)}catch(a){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),l=0<n.rangeCount?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||fe.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(r=e.startContainer.childNodes[e.startOffset])&&"IMG"===r.tagName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),n.anchorNode===e.startContainer&&n.focusNode===e.endContainer||n.setBaseAndExtent(r,0,r,1)),c.fire("AfterSetSelectionRange",{range:e,forward:t})}}},g=function(){var e,t,n=d();return!(n&&n.anchorNode&&n.focusNode)||((e=u.createRng()).setStart(n.anchorNode,n.anchorOffset),e.collapse(!0),(t=u.createRng()).setStart(n.focusNode,n.focusOffset),t.collapse(!0),e.compareBoundaryPoints(e.START_TO_START,t)<=0)},p={bookmarkManager:null,controlSelection:null,dom:u,win:s,serializer:e,editor:c,collapse:o,setCursorLocation:function(e,t){var n=u.createRng();e?(n.setStart(e,t),n.setEnd(e,t),i(n),o(!1)):(Qh(u,n,c.getBody(),!0),i(n))},getContent:function(e){return Qb(c,e)},setContent:r,getBookmark:function(e,t){return n.getBookmark(e,t)},moveToBookmark:function(e){return n.moveToBookmark(e)},select:function(e,t){var r,n,o;return(r=u,n=e,o=t,_.from(n).map(function(e){var t=r.nodeIndex(e),n=r.createRng();return n.setStart(e.parentNode,t),n.setEnd(e.parentNode,t+1),o&&(Qh(r,n,e,!0),Qh(r,n,e,!1)),n})).each(i),e},isCollapsed:function(){var e=m(),t=d();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:g,setNode:function(e){return r(u.getOuterHTML(e)),e},getNode:function(){return e=c.getBody(),(t=m())?(r=t.startContainer,o=t.endContainer,i=t.startOffset,a=t.endOffset,n=t.commonAncestorContainer,!t.collapsed&&(r===o&&a-i<2&&r.hasChildNodes()&&(n=r.childNodes[i]),3===r.nodeType&&3===o.nodeType&&(r=r.length===i?rC(r.nextSibling,!0):r.parentNode,o=0===a?rC(o.previousSibling,!1):o.parentNode,r&&r===o))?r:n&&3===n.nodeType?n.parentNode:n):e;var e,t,n,r,o,i,a},getSel:d,setRng:i,getRng:m,getStart:function(e){return tC(c.getBody(),m(),e)},getEnd:function(e){return nC(c.getBody(),m(),e)},getSelectedBlocks:function(e,t){return function(e,t,n,r){var o,i,a=[];if(i=e.getRoot(),n=e.getParent(n||tC(i,t,t.collapsed),e.isBlock),r=e.getParent(r||nC(i,t,t.collapsed),e.isBlock),n&&n!==i&&a.push(n),n&&r&&n!==r)for(var u=new go(o=n,i);(o=u.next())&&o!==r;)e.isBlock(o)&&a.push(o);return r&&n!==r&&r!==i&&a.push(r),a}(u,m(),e,t)},normalize:function(){var e=m(),t=d();if(!hm(t)&&Zh(c)){var n=Dg(u,e);return n.each(function(e){i(e,g())}),n.getOr(e)}return e},selectorChanged:function(e,t){var i;return a||(a={},i={},c.on("NodeChange",function(e){var n=e.element,r=u.getParents(n,null,u.getRoot()),o={};oC(a,function(e,n){oC(r,function(t){if(u.is(t,n))return i[n]||(oC(e,function(e){e(!0,{node:t,selector:n,parents:r})}),i[n]=e),o[n]=e,!1})}),oC(i,function(e,t){o[t]||(delete i[t],oC(e,function(e){e(!1,{node:n,selector:t,parents:r})}))})})),a[e]||(a[e]=[]),a[e].push(t),p},getScrollContainer:function(){for(var e,t=u.getRoot();t&&"BODY"!==t.nodeName;){if(t.scrollHeight>t.clientHeight){e=t;break}t=t.parentNode}return e},scrollIntoView:function(e,t){return og(c,e,t)},placeCaretAt:function(e,t){return i(Bb(e,t,c.getDoc()))},getBoundingClientRect:function(){var e=m();return e.collapsed?_u.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){s=l=f=null,t.destroy()}};return n=_b(p),t=Db(p,c),p.bookmarkManager=n,p.controlSelection=t,p};(kb=Tb||(Tb={}))[kb.Br=0]="Br",kb[kb.Block=1]="Block",kb[kb.Wrap=2]="Wrap",kb[kb.Eol=3]="Eol";var sC=function(e,t){return e===Tu.Backwards?t.reverse():t},cC=function(e,t,n,r){for(var o,i,a,u,s,c,l=Js(n),f=r,d=[];f&&(s=l,c=f,o=t===Tu.Forwards?s.next(c):s.prev(c));){if(jo.isBr(o.getNode(!1)))return t===Tu.Forwards?{positions:sC(t,d).concat([o]),breakType:Tb.Br,breakAt:_.some(o)}:{positions:sC(t,d),breakType:Tb.Br,breakAt:_.some(o)};if(o.isVisible()){if(e(f,o)){var m=(i=t,a=f,u=o,jo.isBr(u.getNode(i===Tu.Forwards))?Tb.Br:!1===Ts(a,u)?Tb.Block:Tb.Wrap);return{positions:sC(t,d),breakType:m,breakAt:_.some(o)}}d.push(o),f=o}else f=o}return{positions:sC(t,d),breakType:Tb.Eol,breakAt:_.none()}},lC=function(n,r,o,e){return r(o,e).breakAt.map(function(e){var t=r(o,e).positions;return n===Tu.Backwards?t.concat(e):[e].concat(t)}).getOr([])},fC=function(e,i){return j(e,function(e,o){return e.fold(function(){return _.some(o)},function(r){return ru(Z(r.getClientRects()),Z(o.getClientRects()),function(e,t){var n=Math.abs(i-e.left);return Math.abs(i-t.left)<=n?o:r}).or(e)})},_.none())},dC=function(t,e){return Z(e.getClientRects()).bind(function(e){return fC(t,e.left)})},mC=d(cC,Su.isAbove,-1),gC=d(cC,Su.isBelow,1),pC=d(lC,-1,mC),hC=d(lC,1,gC),vC=jo.isContentEditableFalse,yC=Za,bC=function(e,t,n,r){var o=e===Tu.Forwards,i=o?Lf:Ff;if(!r.collapsed){var a=yC(r);if(vC(a))return sg(e,t,a,e===Tu.Backwards,!0)}var u=Sa(r.startContainer),s=Ps(e,t.getBody(),r);if(i(s))return cg(t,s.getNode(!o));var c=Vl.normalizePosition(o,n(s));if(!c)return u?r:null;if(i(c))return sg(e,t,c.getNode(!o),o,!0);var l=n(c);return l&&i(l)&&Fs(c,l)?sg(e,t,l.getNode(!o),o,!0):u?fg(t,c.toRange(),!0):null},CC=function(e,t,n,r){var o,i,a,u,s,c,l,f,d;if(d=yC(r),o=Ps(e,t.getBody(),r),i=n(t.getBody(),sv(1),o),a=U(i,cv(1)),s=Ht.last(o.getClientRects()),(Lf(o)||zf(o))&&(d=o.getNode()),(Ff(o)||Uf(o))&&(d=o.getNode(!0)),!s)return null;if(c=s.left,(u=pv(a,c))&&vC(u.node))return l=Math.abs(c-u.left),f=Math.abs(c-u.right),sg(e,t,u.node,l<f,!0);if(d){var m=function(e,t,n,r){var o,i,a,u,s,c,l=Js(t),f=[],d=0,m=function(e){return Ht.last(e.getClientRects())};1===e?(o=l.next,i=Ja,a=Ga,u=_u.after(r)):(o=l.prev,i=Ga,a=Ja,u=_u.before(r)),c=m(u);do{if(u.isVisible()&&!a(s=m(u),c)){if(0<f.length&&i(s,Ht.last(f))&&d++,(s=Ka(s)).position=u,s.line=d,n(s))return f;f.push(s)}}while(u=o(u));return f}(e,t.getBody(),sv(1),d);if(u=pv(U(m,cv(1)),c))return fg(t,u.position.toRange(),!0);if(u=Ht.last(U(m,cv(0))))return fg(t,u.position.toRange(),!0)}},xC=function(e,t,n){var r,o,i,a,u=Js(e.getBody()),s=d(Ls,u.next),c=d(Ls,u.prev);if(n.collapsed&&e.settings.forced_root_block){if(!(r=e.dom.getParent(n.startContainer,"PRE")))return;(1===t?s(_u.fromRangeStart(n)):c(_u.fromRangeStart(n)))||(a=(i=e).dom.create(Nl(i)),(!fe.ie||11<=fe.ie)&&(a.innerHTML='<br data-mce-bogus="1">'),o=a,1===t?e.$(r).after(o):e.$(r).before(o),e.selection.select(o,!0),e.selection.collapse())}},wC=function(l,f){return function(){var e,t,n,r,o,i,a,u,s,c=(t=f,r=Js((e=l).getBody()),o=d(Ls,r.next),i=d(Ls,r.prev),a=t?Tu.Forwards:Tu.Backwards,u=t?o:i,s=e.selection.getRng(),(n=bC(a,e,u,s))?n:(n=xC(e,a,s))||null);return!!c&&(dg(l,c),!0)}},NC=function(u,s){return function(){var e,t,n,r,o,i,a=(r=(t=s)?1:-1,o=t?uv:av,i=(e=u).selection.getRng(),(n=CC(r,e,o,i))?n:(n=xC(e,r,i))||null);return!!a&&(dg(u,a),!0)}},EC=function(r,o){return function(){var t,e=o?_u.fromRangeEnd(r.selection.getRng()):_u.fromRangeStart(r.selection.getRng()),n=o?gC(r.getBody(),e):mC(r.getBody(),e);return(o?ee(n.positions):Z(n.positions)).filter((t=o,function(e){return t?Ff(e):Lf(e)})).fold(q(!1),function(e){return r.selection.setRng(e.toRange()),!0})}},SC=function(e,t,n,r,o){var i,a,u,s,c=Qi(ar.fromDom(n),"td,th,caption").map(function(e){return e.dom()}),l=U((i=e,G(c,function(e){var t,n,r=(t=Ka(e.getBoundingClientRect()),n=-1,{left:t.left-n,top:t.top-n,right:t.right+2*n,bottom:t.bottom+2*n,width:t.width+n,height:t.height+n});return[{x:r.left,y:i(r),cell:e},{x:r.right,y:i(r),cell:e}]})),function(e){return t(e,o)});return(a=l,u=r,s=o,j(a,function(e,r){return e.fold(function(){return _.some(r)},function(e){var t=Math.sqrt(Math.abs(e.x-u)+Math.abs(e.y-s)),n=Math.sqrt(Math.abs(r.x-u)+Math.abs(r.y-s));return _.some(n<t?r:e)})},_.none())).map(function(e){return e.cell})},TC=d(SC,function(e){return e.bottom},function(e,t){return e.y<t}),kC=d(SC,function(e){return e.top},function(e,t){return e.y>t}),_C=function(t,n){return Z(n.getClientRects()).bind(function(e){return TC(t,e.left,e.top)}).bind(function(e){return dC((t=e,sc.lastPositionIn(t).map(function(e){return mC(t,e).positions.concat(e)}).getOr([])),n);var t})},AC=function(t,n){return ee(n.getClientRects()).bind(function(e){return kC(t,e.left,e.top)}).bind(function(e){return dC((t=e,sc.firstPositionIn(t).map(function(e){return[e].concat(gC(t,e).positions)}).getOr([])),n);var t})},RC=function(e,t,n){var r,o,i,a,u=e(t,n);return(a=u).breakType===Tb.Wrap&&0===a.positions.length||!jo.isBr(n.getNode())&&(i=u).breakType===Tb.Br&&1===i.positions.length?(r=e,o=t,!u.breakAt.map(function(e){return r(o,e).breakAt.isSome()}).getOr(!1)):u.breakAt.isNone()},DC=d(RC,mC),OC=d(RC,gC),BC=function(e,t,n,r){var o,i,a,u,s=e.selection.getRng(),c=t?1:-1;if(ms()&&(o=t,i=s,a=n,u=_u.fromRangeStart(i),sc.positionIn(!o,a).map(function(e){return e.isEqual(u)}).getOr(!1))){var l=sg(c,e,n,!t,!0);return dg(e,l),!0}return!1},PC=function(e,t){var n=t.getNode(e);return jo.isElement(n)&&"TABLE"===n.nodeName?_.some(n):_.none()},IC=function(u,s,c){var e=PC(!!s,c),t=!1===s;e.fold(function(){return dg(u,c.toRange())},function(a){return sc.positionIn(t,u.getBody()).filter(function(e){return e.isEqual(c)}).fold(function(){return dg(u,c.toRange())},function(e){return n=s,o=a,t=c,void((i=Nl(r=u))?r.undoManager.transact(function(){var e=ar.fromTag(i);Nr(e,El(r)),Fi(e,ar.fromTag("br")),n?Ii(ar.fromDom(o),e):Pi(ar.fromDom(o),e);var t=r.dom.createRng();t.setStart(e.dom(),0),t.setEnd(e.dom(),0),dg(r,t)}):dg(r,t.toRange()));var n,r,o,t,i})})},LC=function(e,t,n,r){var o,i,a,u,s,c,l=e.selection.getRng(),f=_u.fromRangeStart(l),d=e.getBody();if(!t&&DC(r,f)){var m=(u=d,_C(s=n,c=f).orThunk(function(){return Z(c.getClientRects()).bind(function(e){return fC(pC(u,_u.before(s)),e.left)})}).getOr(_u.before(s)));return IC(e,t,m),!0}return!(!t||!OC(r,f))&&(o=d,m=AC(i=n,a=f).orThunk(function(){return Z(a.getClientRects()).bind(function(e){return fC(hC(o,_u.after(i)),e.left)})}).getOr(_u.after(i)),IC(e,t,m),!0)},FC=function(t,n){return function(){return _.from(t.dom.getParent(t.selection.getNode(),"td,th")).bind(function(e){return _.from(t.dom.getParent(e,"table")).map(function(e){return BC(t,n,e)})}).getOr(!1)}},MC=function(n,r){return function(){return _.from(n.dom.getParent(n.selection.getNode(),"td,th")).bind(function(t){return _.from(n.dom.getParent(t,"table")).map(function(e){return LC(n,r,e,t)})}).getOr(!1)}},zC=function(e){return F(["figcaption"],lr(e))},UC=function(e){var t=V.document.createRange();return t.setStartBefore(e.dom()),t.setEndBefore(e.dom()),t},jC=function(e,t,n){n?Fi(e,t):Li(e,t)},VC=function(e,t,n,r){return""===t?(l=e,f=r,d=ar.fromTag("br"),jC(l,d,f),UC(d)):(o=e,i=r,a=t,u=n,s=ar.fromTag(a),c=ar.fromTag("br"),Nr(s,u),Fi(s,c),jC(o,s,i),UC(c));var o,i,a,u,s,c,l,f,d},HC=function(e,t,n){return t?(o=e.dom(),gC(o,n).breakAt.isNone()):(r=e.dom(),mC(r,n).breakAt.isNone());var r,o},qC=function(t,n){var e,r,o,i=ar.fromDom(t.getBody()),a=_u.fromRangeStart(t.selection.getRng()),u=Nl(t),s=El(t);return(e=a,r=i,o=d(Mr,r),na(ar.fromDom(e.container()),Co,o).filter(zC)).exists(function(){if(HC(i,n,a)){var e=VC(i,u,s,n);return t.selection.setRng(e),!0}return!1})},$C=function(e,t){return function(){return!!e.selection.isCollapsed()&&qC(e,t)}},WC=function(e,r){return G(W(e,function(e){return Zy({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:o},e)}),function(e){return t=e,(n=r).keyCode===t.keyCode&&n.shiftKey===t.shiftKey&&n.altKey===t.altKey&&n.ctrlKey===t.ctrlKey&&n.metaKey===t.metaKey?[e]:[];var t,n})},KC=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}},XC=function(e,t){return X(WC(e,t),function(e){return e.action()})},YC=function(i,a){i.on("keydown",function(e){var t,n,r,o;!1===e.isDefaultPrevented()&&(t=i,n=a,r=e,o=or.detect().os,XC([{keyCode:rv.RIGHT,action:wC(t,!0)},{keyCode:rv.LEFT,action:wC(t,!1)},{keyCode:rv.UP,action:NC(t,!1)},{keyCode:rv.DOWN,action:NC(t,!0)},{keyCode:rv.RIGHT,action:FC(t,!0)},{keyCode:rv.LEFT,action:FC(t,!1)},{keyCode:rv.UP,action:MC(t,!1)},{keyCode:rv.DOWN,action:MC(t,!0)},{keyCode:rv.RIGHT,action:Xd.move(t,n,!0)},{keyCode:rv.LEFT,action:Xd.move(t,n,!1)},{keyCode:rv.RIGHT,ctrlKey:!o.isOSX(),altKey:o.isOSX(),action:Xd.moveNextWord(t,n)},{keyCode:rv.LEFT,ctrlKey:!o.isOSX(),altKey:o.isOSX(),action:Xd.movePrevWord(t,n)},{keyCode:rv.UP,action:$C(t,!1)},{keyCode:rv.DOWN,action:$C(t,!0)}],r).each(function(e){r.preventDefault()}))})},GC=function(o,i){o.on("keydown",function(e){var t,n,r;!1===e.isDefaultPrevented()&&(t=o,n=i,r=e,XC([{keyCode:rv.BACKSPACE,action:KC(ad,t,!1)},{keyCode:rv.DELETE,action:KC(ad,t,!0)},{keyCode:rv.BACKSPACE,action:KC(gg,t,!1)},{keyCode:rv.DELETE,action:KC(gg,t,!0)},{keyCode:rv.BACKSPACE,action:KC(Qd,t,n,!1)},{keyCode:rv.DELETE,action:KC(Qd,t,n,!0)},{keyCode:rv.BACKSPACE,action:KC(Dm,t,!1)},{keyCode:rv.DELETE,action:KC(Dm,t,!0)},{keyCode:rv.BACKSPACE,action:KC(Cf,t,!1)},{keyCode:rv.DELETE,action:KC(Cf,t,!0)},{keyCode:rv.BACKSPACE,action:KC(hf,t,!1)},{keyCode:rv.DELETE,action:KC(hf,t,!0)},{keyCode:rv.BACKSPACE,action:KC(ng,t,!1)},{keyCode:rv.DELETE,action:KC(ng,t,!0)}],r).each(function(e){r.preventDefault()}))}),o.on("keyup",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=o,n=e,XC([{keyCode:rv.BACKSPACE,action:KC(ud,t)},{keyCode:rv.DELETE,action:KC(ud,t)}],n))})},JC=function(e){return _.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},QC=function(e,t){var n,r,o,i=t,a=e.dom,u=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var s=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}}(t.firstChild);s&&/^(UL|OL|DL)$/.test(s.nodeName)&&t.insertBefore(a.doc.createTextNode("\xa0"),t.firstChild)}if(o=a.createRng(),t.normalize(),t.hasChildNodes()){for(n=new go(t,t);r=n.current();){if(jo.isText(r)){o.setStart(r,0),o.setEnd(r,0);break}if(u[r.nodeName.toLowerCase()]){o.setStartBefore(r),o.setEndBefore(r);break}i=r,r=n.next()}r||(o.setStart(i,0),o.setEnd(i,0))}else jo.isBr(t)?t.nextSibling&&a.isBlock(t.nextSibling)?(o.setStartBefore(t),o.setEndBefore(t)):(o.setStartAfter(t),o.setEndAfter(t)):(o.setStart(t,0),o.setEnd(t,0));e.selection.setRng(o),a.remove(void 0),e.selection.scrollIntoView(t)}},ZC=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},ex=JC,tx=function(e){return JC(e).fold(q(""),function(e){return e.nodeName.toUpperCase()})},nx=function(e){return JC(e).filter(function(e){return So(ar.fromDom(e))}).isSome()},rx=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},ox=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},ix=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},ax=function(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!jo.isElement(r);)r=r[n?"nextSibling":"previousSibling"];return r===t},ux=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){var u;ox(u=n)&&ox(u.parentNode)&&(o="LI");var s,c,l=o?t(o):i.create("BR");if(ax(n,r,!0)&&ax(n,r,!1))rx(n,"LI")?i.insertAfter(l,ix(n)):i.replace(l,n);else if(ax(n,r,!0))rx(n,"LI")?(i.insertAfter(l,ix(n)),l.appendChild(i.doc.createTextNode(" ")),l.appendChild(n)):n.parentNode.insertBefore(l,n);else if(ax(n,r,!1))i.insertAfter(l,ix(n));else{n=ix(n);var f=a.cloneRange();f.setStartAfter(r),f.setEndAfter(n);var d=f.extractContents();"LI"===o&&(c="LI",(s=d).firstChild&&s.firstChild.nodeName===c)?(l=d.firstChild,i.insertAfter(d,n)):(i.insertAfter(d,n),i.insertAfter(l,n))}i.remove(r),QC(e,l)}},sx=function(e){e.innerHTML='<br data-mce-bogus="1">'},cx=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},lx=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},fx=function(e,t,n){return!1===jo.isText(t)?n:e?1===n&&t.data.charAt(n-1)===xa?0:n:n===t.data.length-1&&t.data.charAt(n)===xa?t.data.length:n},dx=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},mx=function(o,i,e){_.from(e.style).map(o.dom.parseStyle).each(function(e){var t=function(e){var t={},n=e.dom();if(Cr(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t}(ar.fromDom(i)),n=ma(ma({},t),e);o.dom.setStyles(i,n)});var t=_.from(e["class"]).map(function(e){return e.split(/\s+/)}),n=_.from(i.className).map(function(e){return U(e.split(/\s+/),function(e){return""!==e})});ru(t,n,function(t,e){var n=U(e,function(e){return!F(t,e)}),r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,u=i.length;a<u;a++,o++)r[o]=i[a];return r}(t,n);o.dom.setAttrib(i,"class",r.join(" "))});var r=["style","class"],a=yr(e,function(e,t){return!F(r,t)}).t;o.dom.setAttribs(i,a)},gx=function(e,t){var n=Nl(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=El(e);mx(e,t,r)}},px=function(a,e){var t,u,s,i,c,n,r,o,l,f,d,m,g,p,h,v,y,b,C,x=a.dom,w=a.schema,N=w.getNonEmptyElements(),E=a.selection.getRng(),S=function(e){var t,n,r,o=s,i=w.getTextInlineElements();if(r=t=e||"TABLE"===f||"HR"===f?x.create(e||m):c.cloneNode(!1),!1===kl(a))x.setAttrib(t,"style",null),x.setAttrib(t,"class",null);else do{if(i[o.nodeName]){if(Ju(o)||yc(o))continue;n=o.cloneNode(!1),x.setAttrib(n,"id",""),t.hasChildNodes()?n.appendChild(t.firstChild):r=n,t.appendChild(n)}}while((o=o.parentNode)&&o!==u);return gx(a,t),sx(r),t},T=function(e){var t,n,r,o;if(o=fx(e,s,i),jo.isText(s)&&(e?0<o:o<s.nodeValue.length))return!1;if(s.parentNode===c&&g&&!e)return!0;if(e&&jo.isElement(s)&&s===c.firstChild)return!0;if(cx(s,"TABLE")||cx(s,"HR"))return g&&!e||!g&&e;for(t=new go(s,c),jo.isText(s)&&(e&&0===o?t.prev():e||o!==s.nodeValue.length||t.next());n=t.current();){if(jo.isElement(n)){if(!n.getAttribute("data-mce-bogus")&&(r=n.nodeName.toLowerCase(),N[r]&&"br"!==r))return!1}else if(jo.isText(n)&&!/^[ \t\r\n]*$/.test(n.nodeValue))return!1;e?t.prev():t.next()}return!0},k=function(){r=/^(H[1-6]|PRE|FIGURE)$/.test(f)&&"HGROUP"!==d?S(m):S(),_l(a)&&lx(x,l)&&x.isEmpty(c)?r=x.split(l,c):x.insertAfter(r,c),QC(a,r)};Dg(x,E).each(function(e){E.setStart(e.startContainer,e.startOffset),E.setEnd(e.endContainer,e.endOffset)}),s=E.startContainer,i=E.startOffset,m=Nl(a),n=e.shiftKey,jo.isElement(s)&&s.hasChildNodes()&&(g=i>s.childNodes.length-1,s=s.childNodes[Math.min(i,s.childNodes.length-1)]||s,i=g&&jo.isText(s)?s.nodeValue.length:0),(u=dx(x,s))&&((m&&!n||!m&&n)&&(s=function(e,t,n,r,o){var i,a,u,s,c,l,f,d=t||"P",m=e.dom,g=dx(m,r);if(!(a=m.getParent(r,m.isBlock))||!lx(m,a)){if(l=(a=a||g)===e.getBody()||(f=a)&&/^(TD|TH|CAPTION)$/.test(f.nodeName)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=m.create(d),gx(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(s=r;s.parentNode!==a;)s=s.parentNode;for(;s&&!m.isBlock(s);)s=(u=s).previousSibling;if(u&&e.schema.isValidChild(l,d.toLowerCase())){for(i=m.create(d),gx(e,i),u.parentNode.insertBefore(i,u),s=u;s&&!m.isBlock(s);)c=s.nextSibling,i.appendChild(s),s=c;n.setStart(r,o),n.setEnd(r,o)}}return r}(a,m,E,s,i)),c=x.getParent(s,x.isBlock),l=c?x.getParent(c.parentNode,x.isBlock):null,f=c?c.nodeName.toUpperCase():"","LI"!==(d=l?l.nodeName.toUpperCase():"")||e.ctrlKey||(l=(c=l).parentNode,f=d),/^(LI|DT|DD)$/.test(f)&&x.isEmpty(c)?ux(a,S,l,c,m):m&&c===a.getBody()||(m=m||"P",Sa(c)?(r=Pa(c),x.isEmpty(c)&&sx(c),gx(a,r),QC(a,r)):T()?k():T(!0)?(r=c.parentNode.insertBefore(S(),c),QC(a,cx(c,"HR")?r:c)):((t=(b=E,C=b.cloneRange(),C.setStart(b.startContainer,fx(!0,b.startContainer,b.startOffset)),C.setEnd(b.endContainer,fx(!1,b.endContainer,b.endOffset)),C).cloneRange()).setEndAfter(c),o=t.extractContents(),y=o,z(Ji(ar.fromDom(y),mr),function(e){var t=e.dom();t.nodeValue=wa(t.nodeValue)}),function(e){for(;jo.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(o),r=o.firstChild,x.insertAfter(o,c),function(e,t,n){var r,o=n,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;jo.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)!(o=i[r]).hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):(a=e,(u=o)&&"A"===u.nodeName&&a.isEmpty(u)&&e.remove(o));var a,u}}(x,N,r),p=x,(h=c).normalize(),(v=h.lastChild)&&!/^(left|right)$/gi.test(p.getStyle(v,"float",!0))||p.add(h,"br"),x.isEmpty(c)&&sx(c),r.normalize(),x.isEmpty(r)?(x.remove(r),k()):(gx(a,r),QC(a,r))),x.setAttrib(r,"id",""),a.fire("NewBlock",{newBlock:r})))},hx=function(e,t){return ex(e).filter(function(e){return 0<t.length&&Lr(ar.fromDom(e),t)}).isSome()},vx=function(e){return hx(e,Sl(e))},yx=function(e){return hx(e,Tl(e))},bx=xf([{br:[]},{block:[]},{none:[]}]),Cx=function(e,t){return yx(e)},xx=function(n){return function(e,t){return""===Nl(e)===n}},wx=function(n){return function(e,t){return nx(e)===n}},Nx=function(n,r){return function(e,t){return tx(e)===n.toUpperCase()===r}},Ex=function(e){return Nx("pre",e)},Sx=function(n){return function(e,t){return wl(e)===n}},Tx=function(e,t){return vx(e)},kx=function(e,t){return t},_x=function(e){var t=Nl(e),n=ZC(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},Ax=function(e,t){return function(n,r){return j(e,function(e,t){return e&&t(n,r)},!0)?_.some(t):_.none()}},Rx=function(e,t){return yd([Ax([Cx],bx.none()),Ax([Nx("summary",!0)],bx.br()),Ax([Ex(!0),Sx(!1),kx],bx.br()),Ax([Ex(!0),Sx(!1)],bx.block()),Ax([Ex(!0),Sx(!0),kx],bx.block()),Ax([Ex(!0),Sx(!0)],bx.br()),Ax([wx(!0),kx],bx.br()),Ax([wx(!0)],bx.block()),Ax([xx(!0),kx,_x],bx.block()),Ax([xx(!0)],bx.br()),Ax([Tx],bx.br()),Ax([xx(!1),kx],bx.br()),Ax([_x],bx.block())],[e,t.shiftKey]).getOr(bx.none())},Dx=function(e,t){Rx(e,t).fold(function(){jg(e,t)},function(){px(e,t)},o)},Ox=function(o){o.on("keydown",function(e){var t,n,r;e.keyCode===rv.ENTER&&(t=o,(n=e).isDefaultPrevented()||(n.preventDefault(),(r=t.undoManager).typing&&(r.typing=!1,r.add()),t.undoManager.transact(function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),Dx(t,n)})))})},Bx=function(n,r){var e=r.container(),t=r.offset();return jo.isText(e)?(e.insertData(t,n),_.some(Su(e,t+n.length))):Is(r).map(function(e){var t=ar.fromText(n);return r.isAtEnd()?Ii(e,t):Pi(e,t),Su(t.dom(),n.length)})},Px=d(Bx,"\xa0"),Ix=d(Bx," "),Lx=function(e,t,n){return sc.navigateIgnore(e,t,n,Pf)},Fx=function(e,t){return X(uf(ar.fromDom(t.container()),e),Co)},Mx=function(e,n,r){return Lx(e,n.dom(),r).forall(function(t){return Fx(n,r).fold(function(){return!1===Ts(t,r,n.dom())},function(e){return!1===Ts(t,r,n.dom())&&zr(e,ar.fromDom(t.container()))})})},zx=function(t,n,r){return Fx(n,r).fold(function(){return Lx(t,n.dom(),r).forall(function(e){return!1===Ts(e,r,n.dom())})},function(e){return Lx(t,e.dom(),r).isNone()})},Ux=d(zx,!1),jx=d(zx,!0),Vx=d(Mx,!1),Hx=d(Mx,!0),qx=function(e){return Su.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},$x=function(e,t){var n=U(uf(ar.fromDom(t.container()),e),Co);return Z(n).getOr(e)},Wx=function(e,t){return qx(t)?Bf(t):Bf(t)||sc.prevPosition($x(e,t).dom(),t).exists(Bf)},Kx=function(e,t){return qx(t)?Of(t):Of(t)||sc.nextPosition($x(e,t).dom(),t).exists(Of)},Xx=function(e){return Is(e).bind(function(e){return na(e,dr)}).exists(function(e){return t=kr(e,"white-space"),F(["pre","pre-wrap"],t);var t})},Yx=function(e,t){return o=e,i=t,sc.prevPosition(o.dom(),i).isNone()||(n=e,r=t,sc.nextPosition(n.dom(),r).isNone())||Ux(e,t)||jx(e,t)||Sf(e,t)||Ef(e,t);var n,r,o,i},Gx=function(e,t){var n,r,o,i=(r=(n=t).container(),o=n.offset(),jo.isText(r)&&o<r.data.length?Su(r,o+1):n);return!Xx(i)&&(jx(e,i)||Hx(e,i)||Ef(e,i)||Kx(e,i))},Jx=function(e,t){return n=e,!Xx(r=t)&&(Ux(n,r)||Vx(n,r)||Sf(n,r)||Wx(n,r))||Gx(e,t);var n,r},Qx=function(e,t){return _f(e.charAt(t))},Zx=function(e){var t=e.container();return jo.isText(t)&&Yn(t.data,"\xa0")},ew=function(e){var n,t=e.data,r=(n=t.split(""),W(n,function(e,t){return _f(e)&&0<t&&t<n.length-1&&Rf(n[t-1])&&Rf(n[t+1])?" ":e}).join(""));return r!==t&&(e.data=r,!0)},tw=function(l,e){return _.some(e).filter(Zx).bind(function(e){var t,n,r,o,i,a,u,s,c=e.container();return i=l,u=(a=c).data,s=Su(a,0),Qx(u,0)&&!Jx(i,s)&&(a.data=" "+u.slice(1),1)||ew(c)||(t=l,r=(n=c).data,o=Su(n,r.length-1),Qx(r,r.length-1)&&!Jx(t,o)&&(n.data=r.slice(0,-1)+" ",1))?_.some(e):_.none()})},nw=function(t){var e=ar.fromDom(t.getBody());t.selection.isCollapsed()&&tw(e,Su.fromRangeStart(t.selection.getRng())).each(function(e){t.selection.setRng(e.toRange())})},rw=function(r,o){return function(e){return t=r,!Xx(n=e)&&(Yx(t,n)||Wx(t,n)||Kx(t,n))?Px(o):Ix(o);var t,n}},ow=function(e){var t,n,r=_u.fromRangeStart(e.selection.getRng()),o=ar.fromDom(e.getBody());if(e.selection.isCollapsed()){var i=d(Vl.isInlineTarget,e),a=_u.fromRangeStart(e.selection.getRng());return Ld(i,e.getBody(),a).bind((n=o,function(e){return e.fold(function(e){return sc.prevPosition(n.dom(),_u.before(e))},function(e){return sc.firstPositionIn(e)},function(e){return sc.lastPositionIn(e)},function(e){return sc.nextPosition(n.dom(),_u.after(e))})})).bind(rw(o,r)).exists((t=e,function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}))}return!1},iw=function(r){r.on("keydown",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=r,n=e,XC([{keyCode:rv.SPACEBAR,action:KC(ow,t)}],n).each(function(e){n.preventDefault()}))})},aw=function(e,t){var n;t.hasAttribute("data-mce-caret")&&(Pa(t),(n=e).selection.setRng(n.selection.getRng()),e.selection.scrollIntoView(t))},uw=function(e,t){var n,r=(n=e,oa(ar.fromDom(n.getBody()),"*[data-mce-caret]").fold(q(null),function(e){return e.dom()}));if(r)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void aw(e,r)):void(_a(r)&&(aw(e,r),e.undoManager.add()))},sw=function(e){e.on("keyup compositionstart",d(uw,e))},cw=or.detect().browser,lw=function(t){var e,n;e=t,n=Vi(function(){e.composing||nw(e)},0),cw.isIE()&&(e.on("keypress",function(e){n.throttle()}),e.on("remove",function(e){n.cancel()})),t.on("input",function(e){!1===e.isComposing&&nw(t)})},fw=function(r){r.on("keydown",function(e){var t,n;!1===e.isDefaultPrevented()&&(t=r,n=e,XC([{keyCode:rv.END,action:EC(t,!0)},{keyCode:rv.HOME,action:EC(t,!1)}],n).each(function(e){n.preventDefault()}))})},dw=function(e){var t=Xd.setupSelectedState(e);sw(e),YC(e,t),GC(e,t),Ox(e),iw(e),lw(e),fw(e)};function mw(u){var s,n,r,o=Xt.each,c=rv.BACKSPACE,l=rv.DELETE,f=u.dom,d=u.selection,e=u.settings,t=u.parser,i=fe.gecko,a=fe.ie,m=fe.webkit,g="data:text/mce-internal,",p=a?"Text":"URL",h=function(e,t){try{u.getDoc().execCommand(e,!1,t)}catch(n){}},v=function(e){return e.isDefaultPrevented()},y=function(){u.shortcuts.add("meta+a",null,"SelectAll")},b=function(){u.on("keydown",function(e){if(!v(e)&&e.keyCode===c&&d.isCollapsed()&&0===d.getRng().startOffset){var t=d.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})},C=function(){u.inline||(u.contentStyles.push("body {min-height: 150px}"),u.on("click",function(e){var t;if("HTML"===e.target.nodeName){if(11<fe.ie)return void u.getBody().focus();t=u.selection.getRng(),u.getBody().focus(),u.selection.setRng(t),u.selection.normalize(),u.nodeChanged()}}))};return u.on("keydown",function(e){var t,n,r,o,i;if(!v(e)&&e.keyCode===rv.BACKSPACE&&(n=(t=d.getRng()).startContainer,r=t.startOffset,o=f.getRoot(),i=n,t.collapsed&&0===r)){for(;i&&i.parentNode&&i.parentNode.firstChild===i&&i.parentNode!==o;)i=i.parentNode;"BLOCKQUOTE"===i.tagName&&(u.formatter.toggle("blockquote",null,i),(t=f.createRng()).setStart(n,0),t.setEnd(n,0),d.setRng(t))}}),s=function(e){var t=f.create("body"),n=e.cloneContents();return t.appendChild(n),d.serializer.serialize(t,{format:"html"})},u.on("keydown",function(e){var t,n,r,o,i,a=e.keyCode;if(!v(e)&&(a===l||a===c)){if(t=u.selection.isCollapsed(),n=u.getBody(),t&&!f.isEmpty(n))return;if(!t&&(r=u.selection.getRng(),o=s(r),(i=f.createRng()).selectNode(u.getBody()),o!==s(i)))return;e.preventDefault(),u.setContent(""),n.firstChild&&f.isBlock(n.firstChild)?u.selection.setCursorLocation(n.firstChild,0):u.selection.setCursorLocation(n,0),u.nodeChanged()}}),fe.windowsPhone||u.on("keyup focusin mouseup",function(e){rv.modifierPressed(e)||d.normalize()},!0),m&&(u.settings.content_editable||f.bind(u.getDoc(),"mousedown mouseup",function(e){var t;if(e.target===u.getDoc().documentElement)if(t=d.getRng(),u.getBody().focus(),"mousedown"===e.type){if(ka(t.startContainer))return;d.placeCaretAt(e.clientX,e.clientY)}else d.setRng(t)}),u.on("click",function(e){var t=e.target;/^(IMG|HR)$/.test(t.nodeName)&&"false"!==f.getContentEditableParent(t)&&(e.preventDefault(),u.selection.select(t),u.nodeChanged()),"A"===t.nodeName&&f.hasClass(t,"mce-item-anchor")&&(e.preventDefault(),d.select(t))}),e.forced_root_block&&u.on("init",function(){h("DefaultParagraphSeparator",e.forced_root_block)}),u.on("init",function(){u.dom.bind(u.getBody(),"submit",function(e){e.preventDefault()})}),b(),t.addNodeFilter("br",function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}),fe.iOS?(u.inline||u.on("keydown",function(){V.document.activeElement===V.document.body&&u.getWin().focus()}),C(),u.on("click",function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),u.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")):y()),11<=fe.ie&&(C(),b()),fe.ie&&(y(),h("AutoUrlDetect",!1),u.on("dragstart",function(e){var t,n,r;(t=e).dataTransfer&&(u.selection.isCollapsed()&&"IMG"===t.target.tagName&&d.select(t.target),0<(n=u.selection.getContent()).length&&(r=g+escape(u.id)+","+escape(n),t.dataTransfer.setData(p,r)))}),u.on("drop",function(e){if(!v(e)){var t=(i=e).dataTransfer&&(a=i.dataTransfer.getData(p))&&0<=a.indexOf(g)?(a=a.substr(g.length).split(","),{id:unescape(a[0]),html:unescape(a[1])}):null;if(t&&t.id!==u.id){e.preventDefault();var n=Bb(e.x,e.y,u.getDoc());d.setRng(n),r=t.html,o=!0,u.queryCommandSupported("mceInsertClipboardContent")?u.execCommand("mceInsertClipboardContent",!1,{content:r,internal:o}):u.execCommand("mceInsertContent",!1,r)}}var r,o,i,a})),i&&(u.on("keydown",function(e){if(!v(e)&&e.keyCode===c){if(!u.getBody().getElementsByTagName("hr").length)return;if(d.isCollapsed()&&0===d.getRng().startOffset){var t=d.getNode(),n=t.previousSibling;if("HR"===t.nodeName)return f.remove(t),void e.preventDefault();n&&n.nodeName&&"hr"===n.nodeName.toLowerCase()&&(f.remove(n),e.preventDefault())}}}),V.Range.prototype.getClientRects||u.on("mousedown",function(e){if(!v(e)&&"HTML"===e.target.nodeName){var t=u.getBody();t.blur(),he.setEditorTimeout(u,function(){t.focus()})}}),n=function(){var e=f.getAttribs(d.getStart().cloneNode(!1));return function(){var t=d.getStart();t!==u.getBody()&&(f.setAttrib(t,"style",null),o(e,function(e){t.setAttributeNode(e.cloneNode(!0))}))}},r=function(){return!d.isCollapsed()&&f.getParent(d.getStart(),f.isBlock)!==f.getParent(d.getEnd(),f.isBlock)},u.on("keypress",function(e){var t;if(!v(e)&&(8===e.keyCode||46===e.keyCode)&&r())return t=n(),u.getDoc().execCommand("delete",!1,null),t(),e.preventDefault(),!1}),f.bind(u.getDoc(),"cut",function(e){var t;!v(e)&&r()&&(t=n(),he.setEditorTimeout(u,function(){t()}))}),e.readonly||u.on("BeforeExecCommand MouseDown",function(){h("StyleWithCSS",!1),h("enableInlineTableEditing",!1),e.object_resizing||h("enableObjectResizing",!1)}),u.on("SetContent ExecCommand",function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||o(f.select("a"),function(e){var t=e.parentNode,n=f.getRoot();if(t.lastChild===e){for(;t&&!f.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}f.add(t,"br",{"data-mce-bogus":1})}})}),u.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"),fe.mac&&u.on("keydown",function(e){!rv.metaKeyPressed(e)||e.shiftKey||37!==e.keyCode&&39!==e.keyCode||(e.preventDefault(),u.selection.getSel().modify("move",37===e.keyCode?"backward":"forward","lineboundary"))}),b()),{refreshContentEditable:function(){},isHidden:function(){var e;return!i||u.removed?0:!(e=u.selection.getSel())||!e.rangeCount||0===e.rangeCount}}}var gw=function(e){return jo.isElement(e)&&No(ar.fromDom(e))},pw=function(t){t.on("click",function(e){3<=e.detail&&function(e){var t=e.selection.getRng(),n=Su.fromRangeStart(t),r=Su.fromRangeEnd(t);if(Su.isElementPosition(n)){var o=n.container();gw(o)&&sc.firstPositionIn(o).each(function(e){return t.setStart(e.container(),e.offset())})}Su.isElementPosition(r)&&(o=n.container(),gw(o)&&sc.lastPositionIn(o).each(function(e){return t.setEnd(e.container(),e.offset())})),e.selection.setRng(cl(t))}(t)})},hw=function(e){var t,n;(t=e).on("click",function(e){t.dom.getParent(e.target,"details")&&e.preventDefault()}),(n=e).parser.addNodeFilter("details",function(e){z(e,function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")})}),n.serializer.addNodeFilter("details",function(e){z(e,function(e){var t=e.attr("data-mce-open");e.attr("open",S(t)?t:null),e.attr("data-mce-open",null)})})},vw=Si.DOM,yw=function(e){var t;e.bindPendingEventDelegates(),e.initialized=!0,e.fire("init"),e.focus(!0),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&he.setEditorTimeout(t,function(){var e;(e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus)).destroyed||e.focus()},100)},bw=function(t,e){var n,r,u,o,i,a,s,c,l,f=t.settings,d=t.getElement(),m=t.getDoc();f.inline||(t.getElement().style.visibility=t.orgVisibility),e||f.content_editable||(m.open(),m.write(t.iframeHTML),m.close()),f.content_editable&&(t.on("remove",function(){var e=this.getBody();vw.removeClass(e,"mce-content-body"),vw.removeClass(e,"mce-edit-focus"),vw.setAttrib(e,"contentEditable",null)}),vw.addClass(d,"mce-content-body"),t.contentDocument=m=f.content_document||V.document,t.contentWindow=f.content_window||V.window,t.bodyElement=d,f.content_document=f.content_window=null,f.root_name=d.nodeName.toLowerCase()),(n=t.getBody()).disabled=!0,t.readonly=f.readonly,t.readonly||(t.inline&&"static"===vw.getStyle(n,"position",!0)&&(n.style.position="relative"),n.contentEditable=t.getParam("content_editable_state",!0)),n.disabled=!1,t.editorUpload=qh(t),t.schema=di(f),t.dom=Si(m,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:f.force_hex_style_colors,class_filter:f.class_filter,update_styles:!0,root_element:t.inline?t.getBody():null,collect:f.content_editable,schema:t.schema,contentCssCors:zl(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=((o=bb((u=t).settings,u.schema)).addAttributeFilter("src,href,style,tabindex",function(e,t){for(var n,r,o,i=e.length,a=u.dom;i--;)if(r=(n=e[i]).attr(t),o="data-mce-"+t,!n.attributes.map[o]){if(0===r.indexOf("data:")||0===r.indexOf("blob:"))continue;"style"===t?((r=a.serializeStyle(a.parseStyle(r),n.name)).length||(r=null),n.attr(o,r),n.attr(t,r)):"tabindex"===t?(n.attr(o,r),n.attr(t,null)):n.attr(o,u.convertURL(r,t,n.name))}}),o.addNodeFilter("script",function(e){for(var t,n,r=e.length;r--;)0!==(n=(t=e[r]).attr("type")||"no/type").indexOf("mce-")&&t.attr("type","mce-"+n)}),o.addNodeFilter("#cdata",function(e){for(var t,n=e.length;n--;)(t=e[n]).type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"}),o.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(e){for(var t,n=e.length,r=u.schema.getNonEmptyElements();n--;)(t=e[n]).isEmpty(r)&&0===t.getAll("br").length&&(t.append(new sb("br",1)).shortEnded=!0)}),o),t.serializer=Eb(f,t),t.selection=uC(t.dom,t.getWin(),t.serializer,t),t.annotator=Hc(t),t.formatter=Gy(t),t.undoManager=ry(t),t._nodeChangeDispatcher=new ev(t),t._selectionOverrides=Bv(t),hw(t),pw(t),dw(t),Xh(t),t.fire("PreInit"),f.browser_spellcheck||f.gecko_spellcheck||(m.body.spellcheck=!1,vw.setAttrib(n,"spellcheck","false")),t.quirks=mw(t),t.fire("PostRender"),f.directionality&&(n.dir=f.directionality),f.nowrap&&(n.style.whiteSpace="nowrap"),f.protect&&t.on("BeforeSetContent",function(t){Xt.each(f.protect,function(e){t.content=t.content.replace(e,function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"})})}),t.on("SetContent",function(){t.addVisual(t.getBody())}),t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),t.on("compositionstart compositionend",function(e){t.composing="compositionstart"===e.type}),0<t.contentStyles.length&&(r="",Xt.each(t.contentStyles,function(e){r+=e+"\r\n"}),t.dom.addStyle(r)),(i=t,i.inline?vw.styleSheetLoader:i.dom.styleSheetLoader).loadAll(t.contentCSS,function(e){yw(t)},function(e){yw(t)}),f.content_style&&(a=t,s=f.content_style,c=ar.fromDom(a.getDoc().head),l=ar.fromTag("style"),wr(l,"type","text/css"),Fi(l,ar.fromText(s)),Fi(c,l))},Cw=Si.DOM,xw=function(e,t){var n,r,o,i,a,u,s,c=e.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),l=(n=e.id,r=c,o=t.height,i=hl(e),s=ar.fromTag("iframe"),Nr(s,i),Nr(s,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:r}),Tr(s,{width:"100%",height:(a=o,u="number"==typeof a?a+"px":a,u||""),display:"block"}),s).dom();l.onload=function(){l.onload=null,e.fire("load")};var f,d,m,g,p=function(e,t){if(V.document.domain!==V.window.location.hostname&&fe.ie&&fe.ie<12){var n=Hh.uuid("mce");e[n]=function(){bw(e)};var r='javascript:(function(){document.open();document.domain="'+V.document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return Cw.setAttrib(t,"src",r),!0}return!1}(e,l);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=l,e.iframeHTML=(g=vl(f=e)+"<html><head>",yl(f)!==f.documentBaseUrl&&(g+='<base href="'+f.documentBaseURI.getURI()+'" />'),g+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',d=bl(f),m=Cl(f),xl(f)&&(g+='<meta http-equiv="Content-Security-Policy" content="'+xl(f)+'" />'),g+='</head><body id="'+d+'" class="mce-content-body '+m+'" data-id="'+f.id+'"><br></body></html>'),Cw.add(t.iframeContainer,l),p},ww=function(e,t){var n=xw(e,t);t.editorContainer&&(Cw.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=Cw.isHidden(t.editorContainer)),e.getElement().style.display="none",Cw.setAttrib(e.id,"aria-hidden","true"),n||bw(e)},Nw=Si.DOM,Ew=function(t,n,e){var r=_h.get(e),o=_h.urls[e]||t.documentBaseUrl.replace(/\/$/,"");if(e=Xt.trim(e),r&&-1===Xt.inArray(n,e)){if(Xt.each(_h.dependencies(e),function(e){Ew(t,n,e)}),t.plugins[e])return;try{var i=new r(t,o,t.$);(t.plugins[e]=i).init&&(i.init(t,o),n.push(e))}catch(iE){kh.pluginInitError(t,e,iE)}}},Sw=function(e){return e.replace(/^\-/,"")},Tw=function(e){return{editorContainer:e,iframeContainer:e}},kw=function(e){var t,n,r=e.getElement();return e.inline?Tw(null):(t=r,n=Nw.create("div"),Nw.insertAfter(n,t),Tw(n))},_w=function(e){var t,n,r,o,i,a,u,s,c,l,f,d=e.settings,m=e.getElement();return e.orgDisplay=m.style.display,S(d.theme)?(l=(o=e).settings,f=o.getElement(),i=l.width||Nw.getStyle(f,"width")||"100%",a=l.height||Nw.getStyle(f,"height")||f.offsetHeight,u=l.min_height||100,(s=/^[0-9\.]+(|px)$/i).test(""+i)&&(i=Math.max(parseInt(i,10),100)),s.test(""+a)&&(a=Math.max(parseInt(a,10),u)),c=o.theme.renderUI({targetNode:f,width:i,height:a,deltaWidth:l.delta_width,deltaHeight:l.delta_height}),l.content_editable||(a=(c.iframeHeight||a)+("number"==typeof a?c.deltaHeight||0:""))<u&&(a=u),c.height=a,c):D(d.theme)?(r=(t=e).getElement(),(n=t.settings.theme(t,r)).editorContainer.nodeType&&(n.editorContainer.id=n.editorContainer.id||t.id+"_parent"),n.iframeContainer&&n.iframeContainer.nodeType&&(n.iframeContainer.id=n.iframeContainer.id||t.id+"_iframecontainer"),n.height=n.iframeHeight?n.iframeHeight:r.offsetHeight,n):kw(e)},Aw=function(t){var e,n,r,o,i,a,u=t.settings,s=t.getElement();return t.rtl=u.rtl_ui||t.editorManager.i18n.rtl,t.editorManager.i18n.setCode(u.language),u.aria_label=u.aria_label||Nw.getAttrib(s,"aria-label",t.getLang("aria.rich_text_area")),t.fire("ScriptsLoaded"),o=(n=t).settings.theme,S(o)?(n.settings.theme=Sw(o),r=Ah.get(o),n.theme=new r(n,Ah.urls[o]),n.theme.init&&n.theme.init(n,Ah.urls[o]||n.documentBaseUrl.replace(/\/$/,""),n.$)):n.theme={},i=t,a=[],Xt.each(i.settings.plugins.split(/[ ,]/),function(e){Ew(i,a,Sw(e))}),e=_w(t),t.editorContainer=e.editorContainer?e.editorContainer:null,u.content_css&&Xt.each(Xt.explode(u.content_css),function(e){t.contentCSS.push(t.documentBaseURI.toAbsolute(e))}),u.content_editable?bw(t):ww(t,e)},Rw=Si.DOM,Dw=function(e){return"-"===e.charAt(0)},Ow=function(i,a){var u=Ri.ScriptLoader;!function(e,t,n,r){var o=t.settings,i=o.theme;if(S(i)){if(!Dw(i)&&!Ah.urls.hasOwnProperty(i)){var a=o.theme_url;a?Ah.load(i,t.documentBaseURI.toAbsolute(a)):Ah.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue(function(){Ah.waitFor(i,r)})}else r()}(u,i,a,function(){var e,t,n,r,o;e=u,(n=(t=i).settings).language&&"en"!==n.language&&!n.language_url&&(n.language_url=t.editorManager.baseURL+"/langs/"+n.language+".js"),n.language_url&&!t.editorManager.i18n.data[n.language]&&e.add(n.language_url),r=i.settings,o=a,Xt.isArray(r.plugins)&&(r.plugins=r.plugins.join(" ")),Xt.each(r.external_plugins,function(e,t){_h.load(t,e),r.plugins+=" "+t}),Xt.each(r.plugins.split(/[ ,]/),function(e){if((e=Xt.trim(e))&&!_h.urls[e])if(Dw(e)){e=e.substr(1,e.length);var t=_h.dependencies(e);Xt.each(t,function(e){var t={prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"};e=_h.createUrl(t,e),_h.load(e.resource,e)})}else _h.load(e,{prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"})}),u.loadQueue(function(){i.removed||Aw(i)},i,function(e){kh.pluginLoadError(i,e[0]),i.removed||Aw(i)})})},Bw=function(t){var e=t.settings,n=t.id,r=function(){Rw.unbind(V.window,"ready",r),t.render()};if(Se.Event.domLoaded){if(t.getElement()&&fe.contentEditable){e.inline?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var o=t.getElement().form||Rw.getParent(n,"form");o&&(t.formElement=o,e.hidden_input&&!/TEXTAREA|INPUT/i.test(t.getElement().nodeName)&&(Rw.insertAfter(Rw.create("input",{type:"hidden",name:n}),n),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},Rw.bind(o,"submit reset",t.formEventDelegate),t.on("reset",function(){t.setContent(t.startContent,{format:"raw"})}),!e.submit_patch||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return t.editorManager.triggerSave(),t.setDirty(!1),o._mceOldSubmit(o)})),t.windowManager=yh(t),t.notificationManager=vh(t),"xml"===e.encoding&&t.on("GetContent",function(e){e.save&&(e.content=Rw.encode(e.content))}),e.add_form_submit_trigger&&t.on("submit",function(){t.initialized&&t.save()}),e.add_unload_trigger&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),t.editorManager.add(t),Ow(t,t.suffix)}}else Rw.bind(V.window,"ready",r)},Pw=function(e,t,n){var r=e.sidebars?e.sidebars:[];r.push({name:t,settings:n}),e.sidebars=r},Iw=Xt.each,Lw=Xt.trim,Fw="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),Mw={ftp:21,http:80,https:443,mailto:25},zw=function(r,e){var t,n,o=this;if(r=Lw(r),t=(e=o.settings=e||{}).base_uri,/^([\w\-]+):([^\/]{2})/i.test(r)||/^\s*#/.test(r))o.source=r;else{var i=0===r.indexOf("//");0!==r.indexOf("/")||i||(r=(t&&t.protocol||"http")+"://mce_host"+r),/^[\w\-]*:?\/\//.test(r)||(n=e.base_uri?e.base_uri.path:new zw(V.document.location.href).directory,""==e.base_uri.protocol?r="//mce_host"+o.toAbsPath(n,r):(r=/([^#?]*)([#?]?.*)/.exec(r),r=(t&&t.protocol||"http")+"://mce_host"+o.toAbsPath(n,r[1])+r[2])),r=r.replace(/@@/g,"(mce_at)"),r=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(r),Iw(Fw,function(e,t){var n=r[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[e]=n}),t&&(o.protocol||(o.protocol=t.protocol),o.userInfo||(o.userInfo=t.userInfo),o.port||"mce_host"!==o.host||(o.port=t.port),o.host&&"mce_host"!==o.host||(o.host=t.host),o.source=""),i&&(o.protocol="")}};zw.prototype={setPath:function(e){e=/^(.*?)\/?(\w+)?$/.exec(e),this.path=e[0],this.directory=e[1],this.file=e[2],this.source="",this.getURI()},toRelative:function(e){var t;if("./"===e)return e;if("mce_host"!==(e=new zw(e,{base_uri:this})).host&&this.host!==e.host&&e.host||this.port!==e.port||this.protocol!==e.protocol&&""!==e.protocol)return e.getURI();var n=this.getURI(),r=e.getURI();return n===r||"/"===n.charAt(n.length-1)&&n.substr(0,n.length-1)===r?n:(t=this.toRelPath(this.path,e.path),e.query&&(t+="?"+e.query),e.anchor&&(t+="#"+e.anchor),t)},toAbsolute:function(e,t){return(e=new zw(e,{base_uri:this})).getURI(t&&this.isSameOrigin(e))},isSameOrigin:function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=Mw[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},toRelPath:function(e,t){var n,r,o,i=0,a="";if(e=(e=e.substring(0,e.lastIndexOf("/"))).split("/"),n=t.split("/"),e.length>=n.length)for(r=0,o=e.length;r<o;r++)if(r>=n.length||e[r]!==n[r]){i=r+1;break}if(e.length<n.length)for(r=0,o=n.length;r<o;r++)if(r>=e.length||e[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=e.length-(i-1);r<o;r++)a+="../";for(r=i-1,o=n.length;r<o;r++)a+=r!==i-1?"/"+n[r]:n[r];return a},toAbsPath:function(e,t){var n,r,o,i=0,a=[];for(r=/\/$/.test(t)?"/":"",e=e.split("/"),t=t.split("/"),Iw(e,function(e){e&&a.push(e)}),e=a,n=t.length-1,a=[];0<=n;n--)0!==t[n].length&&"."!==t[n]&&(".."!==t[n]?0<i?i--:a.push(t[n]):i++);return 0!==(o=(n=e.length-i)<=0?a.reverse().join("/"):e.slice(0,n).join("/")+"/"+a.reverse().join("/")).indexOf("/")&&(o="/"+o),r&&o.lastIndexOf("/")!==o.length-1&&(o+=r),o},getURI:function(e){var t,n=this;return n.source&&!e||(t="",e||(n.protocol?t+=n.protocol+"://":t+="//",n.userInfo&&(t+=n.userInfo+"@"),n.host&&(t+=n.host),n.port&&(t+=":"+n.port)),n.path&&(t+=n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),n.source=t),n.source}},zw.parseDataUri=function(e){var t,n;return e=decodeURIComponent(e).split(","),(n=/data:([^;]+)/.exec(e[0]))&&(t=n[1]),{type:t,data:e[1]}},zw.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t};var Uw=function(e,t,n){var r,o,i,a,u;if(t.format=t.format?t.format:"html",t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=Xt.trim(Uv.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=wa(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);i=(o=e).serializer.serialize(n,t),a=Nl(o),u=new RegExp("^(<"+a+"[^>]*>(&nbsp;|&#160;|\\s|\xa0|<br \\/>|)<\\/"+a+">[\r\n]*|<br \\/>[\r\n]*)$"),r=i.replace(u,"")}return"text"===t.format||Ao(ar.fromDom(n))?t.content=r:t.content=Xt.trim(r),t.no_events||e.fire("GetContent",t),t.content},jw=function(e,t){t(e),e.firstChild&&jw(e.firstChild,t),e.next&&jw(e.next,t)},Vw=function(e,t,n){var r=function(e,n,t){var r={},o={},i=[];for(var a in t.firstChild&&jw(t.firstChild,function(t){z(e,function(e){e.name===t.name&&(r[e.name]?r[e.name].nodes.push(t):r[e.name]={filter:e,nodes:[t]})}),z(n,function(e){"string"==typeof t.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(t):o[e.name]={filter:e,nodes:[t]})})}),r)r.hasOwnProperty(a)&&i.push(r[a]);for(var a in o)o.hasOwnProperty(a)&&i.push(o[a]);return i}(e,t,n);z(r,function(t){z(t.filter.callbacks,function(e){e(t.nodes,t.filter.name,{})})})},Hw=function(e){return e instanceof sb},qw=function(e,t){var r;e.dom.setHTML(e.getBody(),t),sh(r=e)&&sc.firstPositionIn(r.getBody()).each(function(e){var t=e.getNode(),n=jo.isTable(t)?sc.firstPositionIn(t).getOr(e):e;r.selection.setRng(n.toRange())})},$w=function(u,s,c){return void 0===c&&(c={}),c.format=c.format?c.format:"html",c.set=!0,c.content=Hw(s)?"":s,Hw(s)||c.no_events||(u.fire("BeforeSetContent",c),s=c.content),_.from(u.getBody()).fold(q(s),function(e){return Hw(s)?function(e,t,n,r){Vw(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=al({validate:e.validate},e.schema).serialize(n);return r.content=Ao(ar.fromDom(t))?o:Xt.trim(o),qw(e,r.content),r.no_events||e.fire("SetContent",r),n}(u,e,s,c):(t=u,n=e,o=c,0===(r=s).length||/^\s+$/.test(r)?(a='<br data-mce-bogus="1">',"TABLE"===n.nodeName?r="<tr><td>"+a+"</td></tr>":/^(UL|OL)$/.test(n.nodeName)&&(r="<li>"+a+"</li>"),(i=Nl(t))&&t.schema.isValidChild(n.nodeName.toLowerCase(),i.toLowerCase())?(r=a,r=t.dom.createHTML(i,t.settings.forced_root_block_attrs,r)):r||(r='<br data-mce-bogus="1">'),qw(t,r),t.fire("SetContent",o)):("raw"!==o.format&&(r=al({validate:t.validate},t.schema).serialize(t.parser.parse(r,{isRootContent:!0,insert:!0}))),o.content=Ao(ar.fromDom(n))?r:Xt.trim(r),qw(t,o.content),o.no_events||t.fire("SetContent",o)),o.content);var t,n,r,o,i,a})},Ww=Si.DOM,Kw=function(e){return _.from(e).each(function(e){return e.destroy()})},Xw=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&Ww.remove(o.nextSibling),Np(e),e.editorManager.remove(e),!e.inline&&r&&(i=e,Ww.setStyle(i.id,"display",i.orgDisplay)),Ep(e),Ww.remove(e.getContainer()),Kw(t),Kw(n),e.destroy()}var i},Yw=function(e,t){var n,r,o,i=e.selection,a=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),Kw(i),Kw(a)),(r=(n=e).formElement)&&(r._mceOldSubmit&&(r.submit=r._mceOldSubmit,r._mceOldSubmit=null),Ww.unbind(r,"submit reset",n.formEventDelegate)),(o=e).contentAreaContainer=o.formElement=o.container=o.editorContainer=null,o.bodyElement=o.contentDocument=o.contentWindow=null,o.iframeElement=o.targetElm=null,o.selection&&(o.selection=o.selection.win=o.selection.dom=o.selection.dom.doc=null),e.destroyed=!0):e.remove())},Gw=Si.DOM,Jw=Xt.extend,Qw=Xt.each,Zw=Xt.resolve,eN=fe.ie,tN=function(e,t,n){var r,o,i,a,u,s,c,l=this,f=l.documentBaseUrl=n.documentBaseURL,d=n.baseURI;r=l,o=e,i=f,a=n.defaultSettings,u=t,c={id:o,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:i,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,render_ui:!0,indentation:"40px",inline_styles:!0,convert_fonts_to_spans:!0,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:(s=r).convertURL,url_converter_scope:s,ie7_compat:!0},t=$p(zp,c,a,u),l.settings=t,Bi.language=t.language||"en",Bi.languageLoad=t.language_load,Bi.baseURL=n.baseURL,l.id=e,l.setDirty(!1),l.plugins={},l.documentBaseURI=new zw(t.document_base_url,{base_uri:d}),l.baseURI=d,l.contentCSS=[],l.contentStyles=[],l.shortcuts=new Qp(l),l.loadedCSS={},l.editorCommands=new pp(l),l.suffix=n.suffix,l.editorManager=n,l.inline=t.inline,l.buttons={},l.menuItems={},t.cache_suffix&&(fe.cacheSuffix=t.cache_suffix.replace(/^[\?\&]+/,"")),!1===t.override_viewport&&(fe.overrideViewPort=!1),n.fire("SetupEditor",{editor:l}),l.execCallback("setup",l),l.$=gn.overrideDefaults(function(){return{context:l.inline?l.getBody():l.getDoc(),element:l.getBody()}})};Jw(tN.prototype={render:function(){Bw(this)},focus:function(e){uh(this,e)},hasFocus:function(){return sh(this)},execCallback:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this.settings[e];if(o)return this.callbackLookup&&(r=this.callbackLookup[e])&&(o=r.func,r=r.scope),"string"==typeof o&&(r=(r=o.replace(/\.\w+$/,""))?Zw(r):0,o=Zw(o),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:o,scope:r}),o.apply(r||this,Array.prototype.slice.call(arguments,1))},translate:function(e){if(e&&Xt.is(e,"string")){var n=this.settings.language||"en",r=this.editorManager.i18n;e=r.data[n+"."+e]||e.replace(/\{\#([^\}]+)\}/g,function(e,t){return r.data[n+"."+t]||"{#"+t+"}"})}return this.editorManager.translate(e)},getLang:function(e,t){return this.editorManager.i18n.data[(this.settings.language||"en")+"."+e]||(t!==undefined?t:"{#"+e+"}")},getParam:function(e,t,n){return Kp(this,e,t,n)},nodeChanged:function(e){this._nodeChangeDispatcher.nodeChanged(e)},addButton:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),t.stateSelector&&"undefined"==typeof t.active&&(t.active=!1),t.text||t.icon||(t.icon=e),t.tooltip=t.tooltip||t.title,n.buttons[e]=t},addSidebar:function(e,t){return Pw(this,e,t)},addMenuItem:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),n.menuItems[e]=t},addContextToolbar:function(e,t){var n,r=this;r.contextToolbars=r.contextToolbars||[],"string"==typeof e&&(n=e,e=function(e){return r.dom.is(e,n)}),r.contextToolbars.push({id:Hh.uuid("mcet"),predicate:e,items:t})},addCommand:function(e,t,n){this.editorCommands.addCommand(e,t,n)},addQueryStateHandler:function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},addQueryValueHandler:function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},addShortcut:function(e,t,n,r){this.shortcuts.add(e,t,n,r)},execCommand:function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},queryCommandState:function(e){return this.editorCommands.queryCommandState(e)},queryCommandValue:function(e){return this.editorCommands.queryCommandValue(e)},queryCommandSupported:function(e){return this.editorCommands.queryCommandSupported(e)},show:function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable=!0:(Gw.show(this.getContainer()),Gw.hide(this.id)),this.load(),this.fire("show"))},hide:function(){var e=this,t=e.getDoc();e.hidden||(eN&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable=!1,e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(Gw.hide(e.getContainer()),Gw.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},isHidden:function(){return!!this.hidden},setProgressState:function(e,t){this.fire("ProgressState",{state:e,time:t})},load:function(e){var t,n=this.getElement();return this.removed?"":n?((e=e||{}).load=!0,t=this.setContent(n.value!==undefined?n.value:n.innerHTML,e),e.element=n,e.no_events||this.fire("LoadContent",e),e.element=n=null,t):void 0},save:function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return(e=e||{}).save=!0,e.element=o,e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,/TEXTAREA|INPUT/i.test(o.nodeName)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=Gw.getParent(r.id,"form"))&&Qw(n.elements,function(e){if(e.name===r.id)return e.value=t,!1})),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},setContent:function(e,t){return $w(this,e,t)},getContent:function(e){return t=this,void 0===(n=e)&&(n={}),_.from(t.getBody()).fold(q("tree"===n.format?new sb("body",11):""),function(e){return Uw(t,n,e)});var t,n},insertContent:function(e,t){t&&(e=Jw({content:e},t)),this.execCommand("mceInsertContent",!1,e)},isDirty:function(){return!this.isNotDirty},setDirty:function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},setMode:function(e){var t,n;(n=e)!==Dp(t=this)&&(t.initialized?Rp(t,"readonly"===n):t.on("init",function(){Rp(t,"readonly"===n)}),Sp(t,n))},getContainer:function(){return this.container||(this.container=Gw.get(this.editorContainer||this.id+"_parent")),this.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return this.targetElm||(this.targetElm=Gw.get(this.id)),this.targetElm},getWin:function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},getDoc:function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},getBody:function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},convertURL:function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):e=this.documentBaseURI.toAbsolute(e,r.remove_script_host)},addVisual:function(e){var n,r=this,o=r.settings,i=r.dom;e=e||r.getBody(),r.hasVisual===undefined&&(r.hasVisual=o.visual),Qw(i.select("table,a",e),function(e){var t;switch(e.nodeName){case"TABLE":return n=o.visual_table_class||"mce-item-table",void((t=i.getAttrib(e,"border"))&&"0"!==t||!r.hasVisual?i.removeClass(e,n):i.addClass(e,n));case"A":return void(i.getAttrib(e,"href")||(t=i.getAttrib(e,"name")||e.id,n=o.visual_anchor_class||"mce-item-anchor",t&&r.hasVisual?i.addClass(e,n):i.removeClass(e,n)))}}),r.fire("VisualAid",{element:e,hasVisual:r.hasVisual})},remove:function(){Xw(this)},destroy:function(e){Yw(this,e)},uploadImages:function(e){return this.editorUpload.uploadImages(e)},_scanForImages:function(){return this.editorUpload.scanForImages()}},Fp);var nN,rN,oN,iN={isEditorUIElement:function(e){return-1!==e.className.toString().indexOf("mce-")}},aN=function(n,e){var t,r;or.detect().browser.isIE()?(r=n).on("focusout",function(){ip(r)}):(t=e,n.on("mouseup touchend",function(e){t.throttle()})),n.on("keyup nodechange",function(e){var t;"nodechange"===(t=e).type&&t.selectionChange||ip(n)})},uN=function(e){var t,n,r,o=Vi(function(){ip(e)},0);e.inline&&(t=e,n=o,r=function(){n.throttle()},Si.DOM.bind(V.document,"mouseup",r),t.on("remove",function(){Si.DOM.unbind(V.document,"mouseup",r)})),e.on("init",function(){aN(e,o)}),e.on("remove",function(){o.cancel()})},sN=Si.DOM,cN=function(e){return iN.isEditorUIElement(e)},lN=function(t,e){var n=t?t.settings.custom_ui_selector:"";return null!==sN.getParent(e,function(e){return cN(e)||!!n&&t.dom.is(e,n)})},fN=function(r,e){var t=e.editor;uN(t),t.on("focusin",function(){var e=r.focusedEditor;e!==this&&(e&&e.fire("blur",{focusedEditor:this}),r.setActive(this),(r.focusedEditor=this).fire("focus",{blurredEditor:e}),this.focus(!0))}),t.on("focusout",function(){var t=this;he.setEditorTimeout(t,function(){var e=r.focusedEditor;lN(t,function(){try{return V.document.activeElement}catch(e){return V.document.body}}())||e!==t||(t.fire("blur",{focusedEditor:null}),r.focusedEditor=null)})}),nN||(nN=function(e){var t,n=r.activeEditor;t=e.target,n&&t.ownerDocument===V.document&&(t===V.document.body||lN(n,t)||r.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),r.focusedEditor=null))},sN.bind(V.document,"focusin",nN))},dN=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(sN.unbind(V.document,"focusin",nN),nN=null)},mN=function(e){e.on("AddEditor",d(fN,e)),e.on("RemoveEditor",d(dN,e))},gN=Si.DOM,pN=Xt.explode,hN=Xt.each,vN=Xt.extend,yN=0,bN=!1,CN=[],xN=[],wN=function(t){var n=t.type;hN(oN.get(),function(e){switch(n){case"scroll":e.fire("ScrollWindow",t);break;case"resize":e.fire("ResizeWindow",t)}})},NN=function(e){e!==bN&&(e?gn(window).on("resize scroll",wN):gn(window).off("resize scroll",wN),bN=e)},EN=function(t){var e=xN;delete CN[t.id];for(var n=0;n<CN.length;n++)if(CN[n]===t){CN.splice(n,1);break}return xN=U(xN,function(e){return t!==e}),oN.activeEditor===t&&(oN.activeEditor=0<xN.length?xN[0]:null),oN.focusedEditor===t&&(oN.focusedEditor=null),e.length!==xN.length};vN(oN={defaultSettings:{},$:gn,majorVersion:"4",minorVersion:"9.11",releaseDate:"2020-07-13",editors:CN,i18n:xh,activeEditor:null,settings:{},setup:function(){var e,t,n="";t=zw.getDocumentBaseUrl(V.document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var r=window.tinymce||window.tinyMCEPreInit;if(r)e=r.base||r.baseURL,n=r.suffix;else{for(var o=V.document.getElementsByTagName("script"),i=0;i<o.length;i++){var a;if(""!==(a=o[i].src||"")){var u=a.substring(a.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(a)){-1!==u.indexOf(".min")&&(n=".min"),e=a.substring(0,a.lastIndexOf("/"));break}}}!e&&V.document.currentScript&&(-1!==(a=V.document.currentScript.src).indexOf(".min")&&(n=".min"),e=a.substring(0,a.lastIndexOf("/")))}this.baseURL=new zw(t).toAbsolute(e),this.documentBaseURL=t,this.baseURI=new zw(this.baseURL),this.suffix=n,mN(this)},overrideDefaults:function(e){var t,n;(t=e.base_url)&&(this.baseURL=new zw(this.documentBaseURL).toAbsolute(t.replace(/\/+$/,"")),this.baseURI=new zw(this.baseURL)),n=e.suffix,e.suffix&&(this.suffix=n);var r=(this.defaultSettings=e).plugin_base_urls;for(var o in r)Bi.PluginManager.urls[o]=r[o]},init:function(r){var n,u,s=this;u=Xt.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option tbody tfoot thead tr script noscript style textarea video audio iframe object menu"," ");var c=function(e){var t=e.id;return t||(t=(t=e.name)&&!gN.get(t)?e.name:gN.uniqueId(),e.setAttribute("id",t)),t},l=function(e,t){return t.constructor===RegExp?t.test(e.className):gN.hasClass(e,t)},f=function(e){n=e},e=function(){var o,i=0,a=[],n=function(e,t,n){var r=new tN(e,t,s);a.push(r),r.on("init",function(){++i===o.length&&f(a)}),r.targetElm=r.targetElm||n,r.render()};gN.unbind(window,"ready",e),function(e){var t=r[e];t&&t.apply(s,Array.prototype.slice.call(arguments,2))}("onpageload"),o=gn.unique(function(t){var e,n=[];if(fe.ie&&fe.ie<11)return kh.initError("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(t.types)return hN(t.types,function(e){n=n.concat(gN.select(e.selector))}),n;if(t.selector)return gN.select(t.selector);if(t.target)return[t.target];switch(t.mode){case"exact":0<(e=t.elements||"").length&&hN(pN(e),function(t){var e;(e=gN.get(t))?n.push(e):hN(V.document.forms,function(e){hN(e.elements,function(e){e.name===t&&(t="mce_editor_"+yN++,gN.setAttrib(e,"id",t),n.push(e))})})});break;case"textareas":case"specific_textareas":hN(gN.select("textarea"),function(e){t.editor_deselector&&l(e,t.editor_deselector)||t.editor_selector&&!l(e,t.editor_selector)||n.push(e)})}return n}(r)),r.types?hN(r.types,function(t){Xt.each(o,function(e){return!gN.is(e,t.selector)||(n(c(e),vN({},r,t),e),!1)})}):(Xt.each(o,function(e){var t;(t=s.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(EN(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null)}),0===(o=Xt.grep(o,function(e){return!s.get(e.id)})).length?f([]):hN(o,function(e){var t;t=e,r.inline&&t.tagName.toLowerCase()in u?kh.initError("Could not initialize inline editor on invalid inline target element",e):n(c(e),r,e)}))};return s.settings=r,gN.bind(window,"ready",e),new de(function(t){n?t(n):f=function(e){t(e)}})},get:function(t){return 0===arguments.length?xN.slice(0):S(t)?X(xN,function(e){return e.id===t}).getOr(null):O(t)&&xN[t]?xN[t]:null},add:function(e){var t=this;return CN[e.id]===e||(null===t.get(e.id)&&("length"!==e.id&&(CN[e.id]=e),CN.push(e),xN.push(e)),NN(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),rN||(rN=function(){t.fire("BeforeUnload")},gN.bind(window,"beforeunload",rN))),e},createEditor:function(e,t){return this.add(new tN(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!S(e))return n=e,A(r.get(n.id))?null:(EN(n)&&r.fire("RemoveEditor",{editor:n}),0===xN.length&&gN.unbind(window,"beforeunload",rN),n.remove(),NN(0<xN.length),n);hN(gN.select(e),function(e){(n=r.get(e.id))&&r.remove(n)})}else for(t=xN.length-1;0<=t;t--)r.remove(xN[t])},execCommand:function(e,t,n){var r=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new tN(n,this.settings,this).render(),!0;case"mceRemoveEditor":return r&&r.remove(),!0;case"mceToggleEditor":return r?r.isHidden()?r.show():r.hide():this.execCommand("mceAddEditor",0,n),!0}return!!this.activeEditor&&this.activeEditor.execCommand(e,t,n)},triggerSave:function(){hN(xN,function(e){e.save()})},addI18n:function(e,t){xh.add(e,t)},translate:function(e){return xh.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e}},Cp),oN.setup();var SN,TN=oN;function kN(n){return{walk:function(e,t){return Lc(n,e,t)},split:Um,normalize:function(t){return Dg(n,t).fold(q(!1),function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0})}}}(SN=kN||(kN={})).compareRanges=Eg,SN.getCaretRangeFromPoint=Bb,SN.getSelectedNode=Za,SN.getNode=eu;var _N,AN,RN=kN,DN=Math.min,ON=Math.max,BN=Math.round,PN=function(e,t,n){var r,o,i,a,u,s;return r=t.x,o=t.y,i=e.w,a=e.h,u=t.w,s=t.h,"b"===(n=(n||"").split(""))[0]&&(o+=s),"r"===n[1]&&(r+=u),"c"===n[0]&&(o+=BN(s/2)),"c"===n[1]&&(r+=BN(u/2)),"b"===n[3]&&(o-=a),"r"===n[4]&&(r-=i),"c"===n[3]&&(o-=BN(a/2)),"c"===n[4]&&(r-=BN(i/2)),IN(r,o,i,a)},IN=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},LN={inflate:function(e,t,n){return IN(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:PN,findBestRelativePosition:function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if((o=PN(e,t,r[i])).x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},intersect:function(e,t){var n,r,o,i;return n=ON(e.x,t.x),r=ON(e.y,t.y),o=DN(e.x+e.w,t.x+t.w),i=DN(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:IN(n,r,o-n,i-r)},clamp:function(e,t,n){var r,o,i,a,u,s,c,l,f,d;return u=e.x,s=e.y,c=e.x+e.w,l=e.y+e.h,f=t.x+t.w,d=t.y+t.h,r=ON(0,t.x-u),o=ON(0,t.y-s),i=ON(0,c-f),a=ON(0,l-d),u+=r,s+=o,n&&(c+=r,l+=o,u-=i,s-=a),IN(u,s,(c-=i)-u,(l-=a)-s)},create:IN,fromClientRect:function(e){return IN(e.left,e.top,e.width,e.height)}},FN={},MN={add:function(e,t){FN[e.toLowerCase()]=t},has:function(e){return!!FN[e.toLowerCase()]},get:function(e){var t=e.toLowerCase(),n=FN.hasOwnProperty(t)?FN[t]:null;if(null===n)throw new Error("Could not find module for type: "+e);return n},create:function(e,t){var n;if("string"==typeof e?(t=t||{}).type=e:e=(t=e).type,e=e.toLowerCase(),!(n=FN[e]))throw new Error("Could not find control by type: "+e);return(n=new n(t)).type=e,n}},zN=Xt.each,UN=Xt.extend,jN=function(){};jN.extend=_N=function(n){var e,t,r,o=this.prototype,i=function(){var e,t,n;if(!AN&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)},a=function(){return this},u=function(n,r){return function(){var e,t=this._super;return this._super=o[n],e=r.apply(this,arguments),this._super=t,e}};for(t in AN=!0,e=new this,AN=!1,n.Mixins&&(zN(n.Mixins,function(e){for(var t in e)"init"!==t&&(n[t]=e[t])}),o.Mixins&&(n.Mixins=o.Mixins.concat(n.Mixins))),n.Methods&&zN(n.Methods.split(","),function(e){n[e]=a}),n.Properties&&zN(n.Properties.split(","),function(e){var t="_"+e;n[e]=function(e){return e!==undefined?(this[t]=e,this):this[t]}}),n.Statics&&zN(n.Statics,function(e,t){i[t]=e}),n.Defaults&&o.Defaults&&(n.Defaults=UN({},o.Defaults,n.Defaults)),n)"function"==typeof(r=n[t])&&o[t]?e[t]=u(t,r):e[t]=r;return i.prototype=e,(i.constructor=i).extend=_N,i};var VN=Math.min,HN=Math.max,qN=Math.round,$N=function(e,n){var r,o,t,i;if(n=n||'"',null===e)return"null";if("string"==(t=typeof e))return o="\bb\tt\nn\ff\rr\"\"''\\\\",n+e.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(e,t){return'"'===n&&"'"===e?e:(r=o.indexOf(t))+1?"\\"+o.charAt(r+1):(e=t.charCodeAt().toString(16),"\\u"+"0000".substring(e.length)+e)})+n;if("object"===t){if(e.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(e)){for(r=0,o="[";r<e.length;r++)o+=(0<r?",":"")+$N(e[r],n);return o+"]"}for(i in o="{",e)e.hasOwnProperty(i)&&(o+="function"!=typeof e[i]?(1<o.length?","+n:n)+i+n+":"+$N(e[i],n):"");return o+"}"}return""+e},WN={serialize:$N,parse:function(e){try{return JSON.parse(e)}catch(t){}}},KN={callbacks:{},count:0,send:function(t){var n=this,r=Si.DOM,o=t.count!==undefined?t.count:n.count,i="tinymce_jsonp_"+o;n.callbacks[o]=function(e){r.remove(i),delete n.callbacks[o],t.callback(e)},r.add(r.doc.body,"script",{id:i,src:t.url,type:"text/javascript"}),n.count++}},XN={send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||1e4<n++?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,1e4<n?"TIMED_OUT":"GENERAL",t,e),t=null):setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",XN.fire("beforeInitialize",{settings:e}),t=Rh()){if(t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&Xt.each(e.requestheaders,function(e){t.setRequestHeader(e.key,e.value)}),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=XN.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return r();setTimeout(r,10)}}};Xt.extend(XN,Cp);var YN,GN,JN,QN,ZN=Xt.extend,eE=function(e){this.settings=ZN({},e),this.count=0};eE.sendRPC=function(e){return(new eE).send(e)},eE.prototype={send:function(n){var r=n.error,o=n.success;(n=ZN(this.settings,n)).success=function(e,t){void 0===(e=WN.parse(e))&&(e={error:"JSON Parse error."}),e.error?r.call(n.error_scope||n.scope,e.error,t):o.call(n.success_scope||n.scope,e.result)},n.error=function(e,t){r&&r.call(n.error_scope||n.scope,e,t)},n.data=WN.serialize({id:n.id||"c"+this.count++,method:n.method,params:n.params}),n.content_type="application/json",XN.send(n)}};try{YN=V.window.localStorage}catch(iE){GN={},JN=[],QN={getItem:function(e){var t=GN[e];return t||null},setItem:function(e,t){JN.push(e),GN[e]=String(t)},key:function(e){return JN[e]},removeItem:function(t){JN=JN.filter(function(e){return e===t}),delete GN[t]},clear:function(){JN=[],GN={}},length:0},Object.defineProperty(QN,"length",{get:function(){return JN.length},configurable:!1,enumerable:!1}),YN=QN}var tE,nE=TN,rE={geom:{Rect:LN},util:{Promise:de,Delay:he,Tools:Xt,VK:rv,URI:zw,Class:jN,EventDispatcher:vp,Observable:Cp,I18n:xh,XHR:XN,JSON:WN,JSONRequest:eE,JSONP:KN,LocalStorage:YN,Color:function(e){var n={},u=0,s=0,c=0,t=function(e){var t;return"object"==typeof e?"r"in e?(u=e.r,s=e.g,c=e.b):"v"in e&&function(e,t,n){var r,o,i,a;if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,n=parseInt(n,10)/100,t=HN(0,VN(t,1)),n=HN(0,VN(n,1)),0!==t){switch(r=e/60,i=(o=n*t)*(1-Math.abs(r%2-1)),a=n-o,Math.floor(r)){case 0:u=o,s=i,c=0;break;case 1:u=i,s=o,c=0;break;case 2:u=0,s=o,c=i;break;case 3:u=0,s=i,c=o;break;case 4:u=i,s=0,c=o;break;case 5:u=o,s=0,c=i;break;default:u=s=c=0}u=qN(255*(u+a)),s=qN(255*(s+a)),c=qN(255*(c+a))}else u=s=c=qN(255*n)}(e.h,e.s,e.v):(t=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(u=parseInt(t[1],10),s=parseInt(t[2],10),c=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(u=parseInt(t[1],16),s=parseInt(t[2],16),c=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(u=parseInt(t[1]+t[1],16),s=parseInt(t[2]+t[2],16),c=parseInt(t[3]+t[3],16)),u=u<0?0:255<u?255:u,s=s<0?0:255<s?255:s,c=c<0?0:255<c?255:c,n};return e&&t(e),n.toRgb=function(){return{r:u,g:s,b:c}},n.toHsv=function(){return e=u,t=s,n=c,o=0,(i=VN(e/=255,VN(t/=255,n/=255)))===(a=HN(e,HN(t,n)))?{h:0,s:0,v:100*(o=i)}:(r=(a-i)/a,{h:qN(60*((e===i?3:n===i?1:5)-(e===i?t-n:n===i?e-t:n-e)/((o=a)-i))),s:qN(100*r),v:qN(100*o)});var e,t,n,r,o,i,a},n.toHex=function(){var e=function(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e};return"#"+e(u)+e(s)+e(c)},n.parse=t,n}},dom:{EventUtils:Se,Sizzle:St,DomQuery:gn,TreeWalker:go,DOMUtils:Si,ScriptLoader:Ri,RangeUtils:RN,Serializer:Eb,ControlSelection:Db,BookmarkManager:_b,Selection:uC,Event:Se.Event},html:{Styles:gi,Entities:ti,Node:sb,Schema:di,SaxParser:Mv,DomParser:bb,Writer:il,Serializer:al},ui:{Factory:MN},Env:fe,AddOnManager:Bi,Annotator:Hc,Formatter:Gy,UndoManager:ry,EditorCommands:pp,WindowManager:yh,NotificationManager:vh,EditorObservable:Fp,Shortcuts:Qp,Editor:tN,FocusManager:iN,EditorManager:TN,DOM:Si.DOM,ScriptLoader:Ri.ScriptLoader,PluginManager:Bi.PluginManager,ThemeManager:Bi.ThemeManager,trim:Xt.trim,isArray:Xt.isArray,is:Xt.is,toArray:Xt.toArray,makeMap:Xt.makeMap,each:Xt.each,map:Xt.map,grep:Xt.grep,inArray:Xt.inArray,extend:Xt.extend,create:Xt.create,walk:Xt.walk,createNS:Xt.createNS,resolve:Xt.resolve,explode:Xt.explode,_addCacheSuffix:Xt._addCacheSuffix,isOpera:fe.opera,isWebKit:fe.webkit,isIE:fe.ie,isGecko:fe.gecko,isMac:fe.mac},oE=nE=Xt.extend(nE,rE);tE=oE,window.tinymce=tE,window.tinyMCE=tE,function(e){if("object"==typeof module)try{module.exports=e}catch(t){}}(oE)}(window);
// source --> https://morgezi.com/wp-includes/js/tinymce/plugins/compat3x/plugin.min.js?ver=49110-20250317 
!function(u){var t;function l(){}function f(e){!t&&window&&window.console&&(t=!0,console.log("Deprecated TinyMCE API call: "+e))}function i(i,a,d,s){i=i||this;var c=[];a?(this.add=function(o,r,e){function t(e){var t=[];if("string"==typeof d&&(d=d.split(" ")),d&&"function"!=typeof d)for(var n=0;n<d.length;n++)t.push(e[d[n]]);("function"!=typeof d||(t=d(a,e,i)))&&(d||(t=[e]),t.unshift(s||i),!1===o.apply(r||s||i,t)&&e.stopImmediatePropagation())}f("<target>.on"+a+".add(..)"),i.on(a,t,e);var n={original:o,patched:t};return c.push(n),t},this.addToTop=function(e,t){this.add(e,t,!0)},this.remove=function(n){return c.forEach(function(e,t){if(e.original===n)return c.splice(t,1),i.off(a,e.patched)}),i.off(a,n)},this.dispatch=function(){return i.fire(a),!0}):this.add=this.addToTop=this.remove=this.dispatch=l}function n(s){function e(e,t){u.each(e.split(" "),function(e){s["on"+e]=new i(s,e,t)})}function n(e,t,n){return[t.level,n]}function o(n){return function(e,t){if(!t.selection&&!n||t.selection==n)return[t]}}if(!s.controlManager){s.controlManager={buttons:{},setDisabled:function(e,t){f("controlManager.setDisabled(..)"),this.buttons[e]&&this.buttons[e].disabled(t)},setActive:function(e,t){f("controlManager.setActive(..)"),this.buttons[e]&&this.buttons[e].active(t)},onAdd:new i,onPostRender:new i,add:function(e){return e},createButton:r,createColorSplitButton:r,createControl:r,createDropMenu:r,createListBox:r,createMenuButton:r,createSeparator:r,createSplitButton:r,createToolbar:r,createToolbarGroup:r,destroy:l,get:l,setControlType:r},e("PreInit BeforeRenderUI PostRender Load Init Remove Activate Deactivate","editor"),e("Click MouseUp MouseDown DblClick KeyDown KeyUp KeyPress ContextMenu Paste Submit Reset"),e("BeforeExecCommand ExecCommand","command ui value args"),e("PreProcess PostProcess LoadContent SaveContent Change"),e("BeforeSetContent BeforeGetContent SetContent GetContent",o(!1)),e("SetProgressState","state time"),e("VisualAid","element hasVisual"),e("Undo Redo",n),e("NodeChange",function(e,t){return[s.controlManager,t.element,s.selection.isCollapsed(),t]});var c=s.addButton;s.addButton=function(e,t){var n,o,r,i;function a(){if(s.controlManager.buttons[e]=this,n)return n.apply(this,arguments)}for(var d in t)"onpostrender"===d.toLowerCase()&&(n=t[d],t.onPostRender=a);return n||(t.onPostRender=a),t.title&&(t.title=(o=t.title,r=[s.settings.language||"en",o].join("."),i=u.i18n.translate(r),r!==i?i:u.i18n.translate(o))),c.call(this,e,t)},s.on("init",function(){var e=s.undoManager,t=s.selection;e.onUndo=new i(s,"Undo",n,null,e),e.onRedo=new i(s,"Redo",n,null,e),e.onBeforeAdd=new i(s,"BeforeAddUndo",null,e),e.onAdd=new i(s,"AddUndo",null,e),t.onBeforeGetContent=new i(s,"BeforeGetContent",o(!0),t),t.onGetContent=new i(s,"GetContent",o(!0),t),t.onBeforeSetContent=new i(s,"BeforeSetContent",o(!0),t),t.onSetContent=new i(s,"SetContent",o(!0),t)}),s.on("BeforeRenderUI",function(){var e=s.windowManager;e.onOpen=new i,e.onClose=new i,e.createInstance=function(e,t,n,o,r,i){return f("windowManager.createInstance(..)"),new(u.resolve(e))(t,n,o,r,i)}})}function r(){var t={};function n(){return r()}return f("editor.controlManager.*"),u.each("add addMenu addSeparator collapse createMenu destroy displayColor expand focus getLength hasMenus hideMenu isActive isCollapsed isDisabled isRendered isSelected mark postRender remove removeAll renderHTML renderMenu renderNode renderTo select selectByIndex setActive setAriaProperty setColor setDisabled setSelected setState showMenu update".split(" "),function(e){t[e]=n}),t}}u.util.Dispatcher=i,u.onBeforeUnload=new i(u,"BeforeUnload"),u.onAddEditor=new i(u,"AddEditor","editor"),u.onRemoveEditor=new i(u,"RemoveEditor","editor"),u.util.Cookie={get:l,getHash:l,remove:l,set:l,setHash:l},u.on("SetupEditor",function(e){n(e.editor)}),u.PluginManager.add("compat3x",n),u.addI18n=function(n,e){var r=u.util.I18n,t=u.each;"string"!=typeof n||-1!==n.indexOf(".")?u.is(n,"string")?t(e,function(e,t){r.data[n+"."+t]=e}):t(n,function(e,o){t(e,function(e,n){t(e,function(e,t){"common"===n?r.data[o+"."+t]=e:r.data[o+"."+n+"."+t]=e})})}):r.add(n,e)}}(tinymce);
// source --> //morgezi.com/wp-content/plugins/revslider/public/js/libs/tptools.js?ver=6.7.35 
!function(){"use strict";if(window._tpt??={},_tpt.loadingScripts??={},void 0!==_tpt.checkResources)return;function t(t,e){if(0===t.length)return 0;const r=t[t.length-1]-e;return t.length/(r/1e3)}var e,r,n;_tpt.dpr=Math.max(1,Math.min(2,window.devicePixelRatio||1)),_tpt.hop=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),void 0!==window.RVS&&void 0!==window.tpGS&&(_tpt.gsap=window.tpGS.gsap),_tpt.regResource=function(t){_tpt.R[t.id]??={},_tpt.R[t.id].status??=0,void 0!==t.url&&(_tpt.R[t.id].url=t.url),void 0!==t.fonts&&(_tpt.R[t.id].fonts=t.fonts),void 0!==t.css&&(_tpt.R[t.id].css=t.css),void 0!==t.fontfamily&&(_tpt.R[t.id].fontfamily=t.fontfamily),void 0!==t.fonticon&&(_tpt.R[t.id].fonticon=t.fonticon)},_tpt.acc={announcer:{_el:null,_styleId:"tpt-sr-announcer-style",init(){return this._el||(this._el=document.getElementById("sr-announcer"),this._el||(this._el=document.createElement("div"),this._el.id="sr-announcer",this._el.setAttribute("role","status"),this._el.setAttribute("aria-live","polite"),this._el.setAttribute("aria-atomic","true"),document.body.appendChild(this._el))),this._el},update({customText:t,moduleName:e,slideIndex:r,totalSlides:n,slideTitle:i}){this.init();let s="";if(t&&"auto"!==String(t).toLowerCase()&&t.length>0&&"undefined"!==t)s=t;else{s=`${e?`${e}: `:""}Slide ${r} of ${n}${i?` – ${i}`:""}`}this._el.textContent="",setTimeout((()=>{this._el.textContent=s}),50)}}},_tpt.checkResources=async function(t,e){const r=[];return t.forEach((t=>{const e=_tpt.R[t];void 0!==e&&2!==e.status&&("DOM"===t?(_tpt.R[t].status=1,r.push(_tpt.waitForDOM(t))):void 0!==e.fonticon?(r.push(_tpt.loadCSS(e.url,t)),e.woff2&&r.push(_tpt.loadWoff2(e.woff2,t))):void 0!==e.url?r.push(_tpt.loadScript(e.url,t,e.test,e.listen)):e.fonts||e.css&&r.push(_tpt.loadCSS(e.css,t)))})),e?await Promise.allSettled(r):await Promise.all(r)},_tpt.waitForDOM=async function(){return new Promise((t=>{"interactive"===document.readyState||"complete"===document.readyState?(_tpt.R.DOM.status=2,t()):document.addEventListener("DOMContentLoaded",(()=>{_tpt.R.DOM.status=2,t()}))}))},_tpt.loadScript=function(t,e){return new Promise((async(r,n)=>{_tpt.R[e].status=1,"string"==typeof t&&(t=[t]);for(const i of t)if(_tpt.loadingScripts[i])try{if(await _tpt.loadingScripts[i],2===_tpt.R[e].status)return void r()}catch(t){console.error(t)}else{_tpt.loadingScripts[i]=new Promise(((t,r)=>{const n=document.createElement("script");n.src=i,n.onload=()=>{_tpt.R[e].status=2,t()},n.onerror=()=>{_tpt.R[e].status=3;const t=new Error(`Failed to load script: ${i}`);r(t)},document.head.appendChild(n)}));try{if(await _tpt.loadingScripts[i],2===_tpt.R[e].status)return void r()}catch(t){return console.error(t),void n(t)}}n(new Error("Unable to load scripts."))}))},_tpt.loadWoff2=async function(t,e){return _tpt.R[e].status=1,new Promise(((r,n)=>{const i=document.createElement("style");i.type="text/css",i.classList.add("sr7-inline-css"),i.textContent=`\n\t\t\t\t@font-face {\n\t\t\t\t\tfont-family: ${_tpt.R[e].fontfamily};\n\t\t\t\t\tsrc: url("${t}") format("woff2");\n\t\t\t\t}\n\t\t\t`,i.onload=()=>{_tpt.R[e].status=2,r()},i.onerror=()=>{_tpt.R[e].status=3,n(new Error(`Failed to load font: ${t}`))},document.head.appendChild(i)}))},_tpt.restAPI=async function(t,e){_tpt.restAPILoad(t).then((e=>{"function"==typeof t.callBack&&t.callBack(e)})).catch((r=>{if(!e)throw r;console.log(r),"function"==typeof t.callBack&&t.callBack(r)}))},_tpt.restApiIdCut=function(t){if(null==t)return;const e=(t=t.replace("SR7_","")).lastIndexOf("_");if(-1===e)return t;const r=t.substring(e+1);return Number.isFinite(parseInt(r))?t.substring(0,e):t},_tpt.urlProtocol=function(t,e){return"/"==(""+t)[0]&&"/"==(""+t)[1]?(e?"https:":window.location.protocol)+t:(""+t).includes("://")?(e||t.includes("https")?"https:":window.location.protocol)+"//"+t.split("://").slice(1).join("://"):t},_tpt.restAPILoad=async function(t){var e=_tpt.urlProtocol(t.url||window.SR7.E.resturl),r=t.method||"GET";return e+="get_full_slider_object"==t.action?"sliderrevolution/sliders/":"get_stream_data"==t.action?"sliderrevolution/sliders/stream/":"get_modal_settings"==t.action?"sliderrevolution/sliders/modal/":"",e+=(null==t.id?t.alias??"":_tpt.restApiIdCut(t.id))+(e.includes("?")?"&srengine="+(6==t.version?6:7):"?srengine="+(6==t.version?6:7)),null==t.id&&t.forcealias&&void 0!==t.alias&&(e+=e.includes("?")?"&alias=true":"?alias=true"),"get_stream_data"==t.action&&SR7.E?.wpml?.lang&&(e+=(e.includes("?")?"&srlang=":"?srlang=")+SR7.E.wpml.lang),"get_full_slider_object"==t.action&&void 0!==t.slideid&&(e+=(e.includes("?")?"&slideid":"?slideid")+"="+t.slideid),t.raw&&(e+=(e.includes("?")?"&raw":"?raw")+"=true"),new Promise(((t,n)=>{const i=new XMLHttpRequest;i.open(r,e,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.onload=()=>{200===i.status?t(i.response):n(i.statusText)},i.onerror=()=>n(i.statusText),i.send()}))},_tpt.measureAverageFrameRate=(e,r,n=30)=>new Promise((i=>{let s=[],o=[],a=0;const u=performance.now(),l=()=>{if(SR7?.M[r]?.states?.inViewPort){if(s.push(performance.now()),s.length%45==0){let e=t(s.slice(-45),s[s.length-45]);o.push(e),o.length>3&&o.shift(),e<n&&a++}performance.now()-u<e?requestAnimationFrame(l):i({averageFPS:t(s,u),lowFrameRateCount:a})}else i({averageFPS:t(s,u),lowFrameRateCount:a})};requestAnimationFrame(l)})),_tpt.fixResponse=t=>{if("object"==typeof t)return t;let e=0,r=!1,n=!1,i=-1,s=[];for(let o=0;o<t.length;o++){let a=t[o];if(n)n=!1;else if("\\"!==a){if('"'===a&&(r=!r),!r)if("{"===a)0===e&&(i=o),e++;else if("}"===a&&(e--,0===e&&-1!==i)){let e=t.substring(i,o+1);i=-1;try{let t=JSON.parse(e);s.push(t)}catch(t){}}}else n=!0}for(let t of s)if(t&&!0===t.success)return t;return s.length>0?s[0]:t},_tpt.ajax=async function(t){_tpt.ajaxLoad(t).then((e=>{"function"==typeof t.callBack&&t.callBack(e)})).catch((t=>{throw t}))},_tpt.ajaxLoad=async function(t,e=5){var r=t.url||window.SR7.E.ajaxurl,n=t.method||"POST",i={action:"get_full_slider_object"==t.action&&!0!==t.backend||"get_stream_data"==t.action||"get_modal_data"==t.action?"revslider_ajax_call_front":"rs_ajax_action",client_action:t.action,data:t.data,version:7,nonce:window.SR7.E.backend?window.SR7.E.nonce:void 0};return"get_full_slider_object_v7"==t.action&&(r+=r.includes("?")?"&srengine=6":"?srengine=6"),new Promise(((s,o)=>{const a=new XMLHttpRequest;a.open(n,r,!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.onload=()=>{200===a.status?s(a.response):o(a.statusText)},a.onerror=()=>{e>0&&0==a.status?setTimeout((()=>{_tpt.ajaxLoad(t,e-1).then(s).catch(o)}),750):o(a.statusText)};const u=_tpt.objectToParams(i);a.send(u)}))},_tpt.svgCache??={},_tpt.getSVG=async function(t,e,r){t=(t=(t=_tpt.urlProtocol(t)).replace("/public/assets/assets/svg/","/public/assets/svg/")).replace("/public/assets/assets/sources/","/public/assets/sources/");try{const n=await _tpt.loadSVG(t);"function"==typeof e&&e(n,r)}catch(t){throw t}},_tpt.loadSVG=async function(t){return t=(t=(t=_tpt.urlProtocol(t)).replace("/public/assets/assets/svg/","/public/assets/svg/")).replace("/public/assets/assets/sources/","/public/assets/sources/"),_tpt.svgCache[t]?Promise.resolve(_tpt.svgCache[t]):new Promise(((e,r)=>{var n=new XMLHttpRequest;n.overrideMimeType("image/svg+xml"),n.open("GET",t,!0),n.onload=()=>{if(4==n.readyState&&"200"==n.status){var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.innerHTML=n.responseText,_tpt.svgCache[t]=i,e(i)}else r(n.statusText)},n.onerror=()=>r(n.statusText),n.send(null)}))},_tpt.createNS=t=>{var e;for(e in t.n=document.createElementNS("http://www.w3.org/2000/svg",t.n),t.v)t.n.setAttributeNS(null,e.replace(/[A-Z]/g,(function(t,e,r,n){return"-"+t.toLowerCase()})),t.v[e]);for(e in void 0!==t.c&&t.n.setAttribute("class",t.c),void 0!==t.id&&(t.n.id=t.id),void 0!==t.t&&(t.n.textContent=t.t),t.s)t.s.hasOwnProperty(e)&&(t.n.style[e]=t.s[e]);return t.n},_tpt.getJSON=async function(t){_tpt.loadJSON(t).then((e=>{"function"==typeof t.callBack&&t.callBack(e)})).catch((t=>{throw t}))},_tpt.loadJSON=async function(t){return new Promise(((e,r)=>{var n=new XMLHttpRequest;n.overrideMimeType("application/json"),n.open("GET",t.url,!0),n.onload=()=>{4==n.readyState&&"200"==n.status?e(n.responseText):r(n.statusText)},n.send(null)}))},_tpt.objectToParams=function(t,e=new URLSearchParams,r=""){for(const n in t)if(_tpt.hop(t,n)){const i=t[n],s=r?`${r}[${n}]`:n;"object"==typeof i?_tpt.objectToParams(i,e,s):e.append(s,i)}return e.toString()},_tpt.sortPoints=function(t,e){return _tpt.hop(t,"x")?t.x<e.x?-1:t.x>e.x?1:0:t.p<e.p?-1:t.p>e.p?1:0},_tpt.isSet=t=>"inherit"!==t&&null!=t,_tpt.lineBreaks=(t,e)=>"#srfshcd#"==t.slice(0,9)?t.replace("#srfshcd#",""):"full"==e||"content"==e?t.split("\n").join("<br>").replace(/\n/g,"<br/>"):t.replace("\n",""),_tpt.trim=t=>null!=t&&"string"==typeof t?t.trim():t,_tpt.iOSVersion=!!(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))&&navigator.userAgent.match(/OS 4_\d like Mac OS X/i),_tpt.isiPhone=/iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,_tpt.isIOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&void 0!==navigator.standalone,_tpt.setIsChrome8889=navigator.userAgent.indexOf("Chrome/88")>=0||navigator.userAgent.indexOf("Chrome/89")>=0,_tpt.is_mobile=function(){var t=["android","webos","iphone","ipad","blackberry","Android","webos","iPod","iPhone","iPad","Blackberry","BlackBerry"],e=!1;if(void 0!==window.orientation)e=!0;else for(var r in t)_tpt.hop(t,r)&&(e=!!(e||navigator.userAgent.split(t[r]).length>1)||e);return e&&document.body&&-1===document.body.className.indexOf("rs-ISM")&&(document.body.className+=" rs-ISM"),e}(),_tpt.browser=(r=navigator.userAgent,n=r.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(r)||[],"IE"):"Chrome"===n[1]&&null!=(e=r.match(/\b(OPR|Edge)\/(\d+)/))?e[1].replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=r.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),n[0])),_tpt.isWebkit=function(){const t=/(webkit)[ \/]([\w.]+)/.exec(navigator.userAgent.toLowerCase());return t&&t[1]&&"webkit"===t[1]}(),_tpt.browserVersion=function(){var t,e=navigator.appName,r=navigator.userAgent,n=r.match(/(edge|opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return n&&null!=(t=r.match(/version\/([\.\d]+)/i))&&(n[2]=t[1]),(n=n?[n[1],n[2]]:[e,navigator.appVersion,"-?"])[1]}(),_tpt.isSafari11="safari"===_tpt.trim(_tpt.browser.toLowerCase())&&parseFloat(_tpt.browserVersion)>=11,_tpt.is_android=function(){var t=["android","Android"],e=!1;for(var r in t)_tpt.hop(t,r)&&(e=!!(e||navigator.userAgent.split(t[r]).length>1)||e);return e}(),_tpt.is_mozilla=navigator.userAgent.includes("Firefox"),_tpt.normalizeWheel=t=>{let e=0;return"deltaY"in t||"deltaX"in t?e=0!=t.deltaY&&-0!=t.deltaY||!(t.deltaX<0||t.deltaX>0)?t.deltaY:t.deltaX:("detail"in t&&(e=t.detail),"wheelDelta"in t&&(e=-t.wheelDelta/120),"wheelDeltaY"in t&&(e=-t.wheelDeltaY/120)),e=_tpt.is_mozilla?10*e:e,(e>300||e<-300)&&(e/=10),e},_tpt.extend=function(t,e){for(var r in void 0===t&&(t={}),e)_tpt.hop(e,r)&&("object"==typeof e[r]&&null!==e[r]?Array.isArray(e[r])?t[r]=e[r].slice():t[r]=_tpt.extend(t[r],e[r]):t[r]=e[r]);return t},_tpt.removeEmptyTags=t=>{t.forEach((t=>{""!==t.innerHTML.trim()&&(""!==t.textContent||0!=t.children?.length)||(""+t.className).includes("sr")||(""+t.className).includes("rev")||t.remove()}))},_tpt.gA=function(t,e,r){return void 0===t?void 0:t.hasAttribute&&t.hasAttribute("data-"+e)&&void 0!==t.getAttribute("data-"+e)&&null!==t.getAttribute("data-"+e)?t.getAttribute("data-"+e):void 0!==r?r:void 0},_tpt.sA=function(t,e,r){t&&t.setAttribute&&t.setAttribute("data-"+e,r)},_tpt.rA=function(t,e){t&&t.removeAttribute&&t.removeAttribute("data-"+e)},_tpt.posToNum=function(t,e){return(""+t).includes("%")?e*parseFloat(t)/100:(""+t).includes("px")?parseInt(t):(""+t).includes("auto")?0:t},_tpt.DNTMtoArr=function(t,e="auto",r,n){return r??=e,[1==n?r:"object"==typeof t?"object"==typeof t.d?t.d?.v??r:t.d??r:t??r,"object"==typeof t?"object"==typeof t.d?t.d?.v??e:t.d??e:t??e,"object"==typeof t?"object"==typeof t.n?t.n?.v??e:t.n??e:t??e,"object"==typeof t?"object"==typeof t.t?t.t?.v??e:t.t??e:t??e,"object"==typeof t?"object"==typeof t.m?t.m?.v??e:t.m??e:t??e]};class i extends Event{constructor(t,e){super(t),Object.assign(this,e)}}function s(t,e,r){var n=document.createElement("canvas"),i=n.getContext("2d");if(n.width=100,n.height=200,0===t.length)i.fillStyle=r;else{for(var s=i.createLinearGradient(0,0,100,0),o=0;o<t.length;o++)s.addColorStop(t[o].stop/100,t[o].color);i.fillStyle=s}i.fillRect(0,0,100,200);var a=i.getImageData(0,0,100,2).data,u="";for(o=0;o<e.length;o++){var l=Math.ceil(e[o]),p=4*(0!==l?l-1:l);u+="rgba("+a[p]+","+a[p+1]+","+a[p+2]+","+a[p+3]/255+")",u+=" "+l+(e.length-1===o?"%":"%,")}return n.remove(),u}function o(t,e,r,n){for(var i="",s=_tpt.gsap.utils.mapRange(0,n.length-1,0,t.length-1),o=0;o<n.length;o++){var a=Math.round(s(o));i+=t[a].color,i+=" "+t[a].stop+(n.length-1===o?"%":"%,")}return i}function a(t){var e=/rgb([\s\S]*?)%/g,r=[],n=[],i=[];do{(o=e.exec(t))&&r.push(o[0])}while(o);for(var s=0;s<r.length;s++){var o=r[s],a=(t=/rgb([\s\S]*?)\)/.exec(o),/\)([\s\S]*?)%/.exec(o));t[0]&&(t=t[0]),a[1]&&(a=a[1]),i.push(parseFloat(a)),n.push({color:t,stop:parseFloat(a)})}return 0===n.length&&(n.push({color:t,stop:0}),i.push(0),n.push({color:t,stop:100}),i.push(100)),{points:n,stops:i}}_tpt.tEvtSimple=t=>_tpt.is_mobile?"mouseenter"==t?"touchstart":"mouseleave"==t?"mouseleave":"mousemove"==t?"touchmove":t:t,_tpt.tEvt=t=>Array.isArray(t)?t.map((t=>_tpt.tEvtSimple(t))):_tpt.tEvtSimple(t),_tpt.event={listeners:{},timestamps:{},getId:()=>Math.random().toString(36).substr(2,10),trigger:(t,e,r={})=>{if("dom"==t)document.dispatchEvent(new i(e,r));else{const n=new CustomEvent(e,{detail:r});t.dispatchEvent(n)}},listen:(t,e,r,n,i)=>{_tpt.is_mobile&&"mouseleave"===e&&(e+=" touchend");const s=e.split(" "),o=[];return s.forEach((e=>{const s=_tpt.event.getId(),a=t=>{void 0!==_tpt.event.timestamps[t.target.id]&&_tpt.event.timestamps[t.target.id]>t.timeStamp||(_tpt.event.timestamps[t.target.id]=t.timeStamp,r(t,n))};_tpt.event.listeners[t.id]||(_tpt.event.listeners[t.id]=[]),_tpt.event.listeners[t.id].push({id:s,eventType:e,eventListener:a}),t.addEventListener(e,a,i?{passive:!1}:{passive:!0}),o.push(s)})),o},hasListener:t=>void 0!==_tpt.event.listeners[t.id]&&_tpt.event.listeners[t.id].length>0,rm:(t,e)=>{if(!_tpt.event.listeners[t.id])return;const r=_tpt.event.listeners[t.id].findIndex((t=>t.id==e));if(-1===r)return;const{eventType:n,eventListener:i}=_tpt.event.listeners[t.id][r];return t.removeEventListener(n,i),_tpt.event.listeners[t.id].splice(r,1),"removed"},rmAll:t=>{_tpt.event.listeners[t.id]&&(_tpt.event.listeners[t.id].forEach((e=>{t.removeEventListener(e.eventType,e.eventListener)})),delete _tpt.event.listeners[t.id])}},_tpt.keyBoard={reg:(t,e,r,n)=>{_tpt.event.keyboardTargets??={},_tpt.event.keyboardTargets[e]||(_tpt.event.keyboardTargets[e]={id:t,callback:r,keys:n},_tpt.keyBoard.isListening||(_tpt.keyBoard.isListening=!0,_tpt.event.listen(document,"keydown",(function(t,e){if("INPUT"===document.activeElement.tagName)t.preventDefault();else for(let r in _tpt.event.keyboardTargets)_tpt.hop(_tpt.event.keyboardTargets,r)&&_tpt.event.keyboardTargets[r].keys.includes(t.key)&&_tpt.event.keyboardTargets[r].callback(t,e)}),{id:t,cid:e,keys:n})))},rm:t=>{delete _tpt.event.keyboardTargets[t]},rmAll:()=>{_tpt.event.listen.rm(document,"keydown"),delete _tpt.event.keyboardTargets}},_tpt.strSetToObj=function(t){if(null==t)return{};var e={};return t.split(";").forEach((t=>{var r=t.split(":");void 0!==r[0]&&""!==r[0]&&(e[r[0]]=r[1])})),e},_tpt.padMarArr=function(t){let e;t=Array.isArray(t)?t:[t];var r=!1;for(e=0;e<t.length;e++)Array.isArray(t[e])&&(r=!0);for(r||(t=[t]),t.length<5&&t.unshift(["auto","auto","auto","auto"]),e=0;e<5;e++)t[e]=void 0===t[e]?["auto","auto","auto","auto"]:Array.isArray(t[e])?t[e]:[t[e]],2==t[e].length?t[e]=[t[e][0],t[e][1],t[e][0],t[e][1]]:3==t[e].length?t[e]=[t[e][0],t[e][1],t[e][2],t[e][1]]:t[e].length<4&&(t[e]=_tpt.fillArray(t[e],4));return[...t]},_tpt.explodeData=function(t){t=t.split(";");var e,r,n={};for(r in t)void 0!==(e=t[r].split(":"))[0]&&""!==e[0]&&(n[e[0]]=e[1]);return n},_tpt.isNumeric=t=>!isNaN(parseFloat(t))&&isFinite(t),_tpt.getHighestAttribute=function(t,e,r=0){if(null==t||null==e)return r;for(var n in t)_tpt.hop(t,n)&&void 0!==t[n]&&void 0!==t[n][e]&&t[n][e]>r&&(r=t[n][e]++);return r},_tpt.findIndex=function(t,e,r){if(void 0!==r)return t.findIndex((t=>void 0!==t&&t[e]===r));for(let r=0;r<t.length;r++)if(""+t[r]==""+e)return r;return-1},_tpt.unitize=(t,e="px")=>parseFloat(t)==t?-1==e?t:t+e:-1==e?parseInt(t):t,_tpt.divSize=t=>{if("#"==(""+t)[0]){let e=t.split("#")[1].split("/");return 100/parseInt(e[1])*e[0]+"%"}return t},_tpt.mText=(t="",e="")=>t.trim()+(""!==t&&""!==e?" ":"")+e.trim(),_tpt.defNum=(t,e)=>null==t||isNaN(parseFloat(t))?e:parseFloat(t),_tpt.gradient={SSGCache:[],getSSGColors:(t,e,r)=>{if(r=void 0===r?"fading":r,-1===t.indexOf("gradient")&&-1===e.indexOf("gradient"))return{from:t,to:e};for(var n={from:t,to:e},i=0;i<_tpt.gradient.SSGCache.length;i++){if(_tpt.gradient.SSGCache[i].from===t&&_tpt.gradient.SSGCache[i].to===e&&_tpt.gradient.SSGCache[i].type===r)return{from:_tpt.gradient.SSGCache[i].rFrom,to:_tpt.gradient.SSGCache[i].rTo};if(_tpt.gradient.SSGCache[i].from===e&&_tpt.gradient.SSGCache[i].to===t&&_tpt.gradient.SSGCache[i].type===r)return{from:_tpt.gradient.SSGCache[i].rTo,to:_tpt.gradient.SSGCache[i].rFrom}}var u=a(t),l=a(e);if(u.stops.length===l.stops.length&&-1!==t.indexOf("gradient")&&-1!==e.indexOf("gradient"))return{from:t,to:e};var p,c,h=u.stops;for(i=0;i<l.stops.length;i++)-1===h.indexOf(l.stops[i])&&h.push(l.stops[i]);if(h.sort((function(t,e){return t-e})),-1!==t.indexOf("gradient(")){var d=-1!==t.indexOf("deg,")?t.indexOf("deg,")+4:-1!==t.indexOf("at center,")?t.indexOf("at center,")+10:t.indexOf("gradient(")+9;p=t.substring(0,d),-1===e.indexOf("gradient(")&&(c=t.substring(0,d))}if(-1!==e.indexOf("gradient(")){d=-1!==e.indexOf("deg,")?e.indexOf("deg,")+4:-1!==e.indexOf("at center,")?e.indexOf("at center,")+10:e.indexOf("gradient(")+9;c=e.substring(0,d),-1===t.indexOf("gradient(")&&(p=e.substring(0,d))}return"fading"===r?(u.stops.length,l.stops.length,p+=s(u.points,h,t),c+=s(l.points,h,e)):"sliding"===r&&(u.stops.length>l.stops.length?c+=o(l.points,0,0,u.points):p+=o(u.points,0,0,l.points)),p+=")",c+=")","sliding"===r&&(u.stops.length>l.stops.length?p=t:c=e),n.rFrom=p,n.rTo=c,n.tyep=r,_tpt.gradient.SSGCache.push(n),{from:p,to:c}},getSVGReference:t=>{if(void 0===t)return t;let e=_tpt.gradient.process(_tpt.gradient.convert(t));if("solid"==e.type)return e.string;if(void 0===_tpt.gradient.SVG)_tpt.gradient.SVG=_tpt.createNS({n:"svg",id:"tp_svg_gradients",s:{width:"100%",height:"100%",opacity:0,pointerEvents:"none"}}),_tpt.gradient.SVG.style.visibility="hidden",_tpt.gradient.SVG.style.position="absolute",_tpt.gradient.SVG.style.top="0px",_tpt.gradient.SVG.style.left="0px",_tpt.gradient.SVG.style.width="0px",_tpt.gradient.SVG.style.height="0px",_tpt.gradient.SVG.style.pointerEvents="none",_tpt.gradient.SVG.setAttribute("viewBox","0 0 1 1"),_tpt.gradient.SVG.setAttribute("preserveAspectRatio","none"),document.body.appendChild(_tpt.gradient.SVG),_tpt.gradient.svgReferences={},_tpt.gradient.svgNode={},_tpt.gradient.svgRefIndex=0;else if(_tpt.gradient.svgReferences[e.string])return _tpt.gradient.svgReferences[e.string];let r="radial"===e.type?0:e.angle*_tpt.DEG2RAD,n=_tpt.createNS({id:`tp_svg_gradient_${_tpt.gradient.svgRefIndex}`,n:`${e.type}Gradient`,v:"radial"===e.type?void 0:{gradientUnits:"userSpaceOnUse",x1:`${Math.round(50+50*Math.sin(r))}%`,y1:`${Math.round(50+50*Math.cos(r))}%`,x2:`${Math.round(50+50*Math.sin(r+Math.PI))}%`,y2:`${Math.round(50+50*Math.cos(r+Math.PI))}%`}});for(const t of e.colors){const[e,r,i,s]=_tpt.gsap.utils.splitColor(t.rgba);n.appendChild(_tpt.createNS({n:"stop",v:{offset:`${t.p}%`,stopColor:_tpt.getHexColor([e,r,i]),stopOpacity:s??1}}))}return _tpt.gradient.SVG.appendChild(n),_tpt.gradient.svgReferences[e.string]="url(#tp_svg_gradient_"+_tpt.gradient.svgRefIndex+")",_tpt.gradient.svgNode[_tpt.gradient.svgRefIndex]=n,_tpt.gradient.svgRefIndex++,_tpt.gradient.svgReferences[e.string]},getSVGDef:(t="")=>{let e=t.replace("url(#tp_svg_gradient_","").replace(")","");return _tpt.gradient.svgNode[e]??""},getColorStops:(t,e)=>{if(!t.includes("gradient"))return e?[]:t;const r=/(rgba?\((\d+),\s*(\d+),\s*(\d+)(,\s*([\d.]+))?\)|#[0-9a-fA-F]{6})(\s*(\d+%)|)/gi,n=t.match(/(linear|radial)-gradient\(([^,]+),/),i=n&&n[1]?`${n[1]}`:null;let s=null;if("linear"===i){const t=n[2].trim();switch(t){case"right":s=270;break;case"left":s=90;break;case"top":s=0;break;case"bottom":s=180;break;default:s=parseInt(t)||180}}let o,a,u=[],l=null;for(;null!==(a=r.exec(t));){const t=a[1].startsWith("#")?a[1]:null;let e=a[7]?parseInt(a[7]):null;const r=t?_tpt.gradient.hexToRgba(t):`rgba(${a[2]},${a[3]},${a[4]},${a[6]||"1"})`;r===l&&e===o||(u.push({rgba:r,p:e}),o=e,l=r),u.some((t=>null===t.p))&&u.forEach(((t,e)=>{null===t.p&&(t.p=100/(u.length-1)*e||0)}))}return{colors:u,type:i,angle:s}},hexToRgba:t=>`rgba(${parseInt(t.substring(1,3),16)},${parseInt(t.substring(3,5),16)},${parseInt(t.substring(5,7),16)},1)`,convert:t=>{let e={};if(null==t)return t;if("string"==typeof t){if("transparent"==t)return{orig:"transparent",type:"solid",string:"transparent"};if(t.includes("&")||t.includes("{")&&t.includes('"'))if(e=JSON.parse(t.replaceAll("&",'"')),e.orig??={...e.colors},delete e.colors,"string"==typeof e.orig){if(e.orig.includes("grad")){let{angle:t,colors:r,type:n}=_tpt.gradient.getColorStops(e.orig,!0);e.orig=r,e.angle=t,e.type=n}}else{Array.isArray(e.orig)||"object"!=typeof e.orig||(e.orig=Object.values(e.orig));for(let t in e.orig)e.orig[t]={rgba:e.orig[t]?.rgba??e.orig[t]?.rgbaColor??`rgba(${e.orig[t]?.r??0}, ${e.orig[t]?.g??0}, ${e.orig[t]?.b??0}, ${e.orig[t]?.a??0})`,p:e.orig[t]?.p??e.orig[t]?.position??0,align:e.orig[t]?.align??void 0};e.orig=u(e.orig)}else{if(!t.includes("gradient"))return t.includes("{")&&t.includes('"')&&t.includes("orig")&&(t=JSON.parse(t).orig),{type:"solid",orig:t,string:_tpt.gradient.getString({type:"solid",orig:t})};{let{angle:r,colors:n,type:i}=_tpt.gradient.getColorStops(t,!0);e={orig:n,type:i,angle:r,strength:100,easing:"none"}}}}else"object"==typeof t&&(e={...t},e.orig??={...e.colors},delete e.colors);return e.angle=180===e.angle||void 0===e.angle?180.1:e.angle,e.strength=e.strength||100,e.easing=e.easing||"none",e.string=_tpt.gradient.getString(e),Array.isArray(e.orig)||"object"!=typeof e.orig||(e.orig=Object.values(e.orig),e.orig=u(e.orig)),e},getString:(t,e=!1)=>{if("string"==typeof t.orig){if("transparent"==t.orig)return"transparent";const e=window[null==window._tpt?.gsap?"tpGS":"_tpt"].gsap.utils.splitColor(t.orig)||[0,0,0,1];return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]??1})`}let r=t.colors||t.orig;const n=e&&(180==t.angle||180.1==t.angle);let i,s,o,a="";return"linear"===t.type?a+="linear-gradient("+(n?"":t.angle+"deg"):"radial"===t.type&&(a+="radial-gradient(circle"),a+=r.map(((t,r)=>(t.rgba=_tpt.gradient.toRGBA(t.rgba),e&&void 0!==o&&t.rgba==o.rgba&&o.p==t.p?"":(o={p:t.p,rgba:t.rgba},s=`${0===r&&n?"":","}${t.rgba} ${t.p}%`,s!==i?i=s:s="",s)))).join(""),a+=")",a},process:(t,e)=>("object"!=typeof t||(void 0!==t.easing&&"none"!==t.easing&&(t.colors=_tpt.gradient.ease(t),t.string=_tpt.gradient.getString(t),e=!1),t.colors??=t.orig,Array.isArray(t.colors)||"object"!=typeof t.colors||(t.colors=Object.values(t.colors)),t.string=e||null==t.string?_tpt.gradient.getString(t):t.string),t),ease:t=>{let{strength:e,orig:r,easing:n}=t;if(e=.01*parseInt(e,10)*15,n=t.easing.split("."),n.length<2)return{...t.orig};if(r.sort(_tpt.sortPoints),n=_tpt.gradient.easing[n[0]][n[1]],null==n)return{...t.orig};let i=r.length-1,s=[];for(let t=0;t<i;t++)s[s.length]=r[t],_tpt.gradient.insertPoints(r[t],r[t+1],s,n,e);return s[s.length]=r[i],s},calcPoints:(t,e,r)=>{const n=r*Math.PI/180*-1,i=e/2,s=t/2,o={k:{x:s-Math.tan(n)*i,y:0},j:{x:s+Math.tan(n)*(e-i),y:e},ky:{x:t,y:i+(t-s)/Math.tan(n)},jy:{x:0,y:i-s/Math.tan(n)}};let a={},u={};return[[o.k.x,o.j.x,o.k,o.j],[o.ky.y,o.jy.y,o.ky,o.jy],[o.k.x,o.ky.y,o.k,o.ky],[o.ky.y,o.j.x,o.ky,o.j],[o.j.x,o.jy.y,o.j,o.jy],[o.k.x,o.jy.y,o.k,o.jy]].forEach((([r,n,i,s])=>{_tpt.inBounds(r,0,t)&&_tpt.inBounds(n,0,e)&&(a=i,u=s)})),r>90&&r<315?{tx:a.x,ty:a.y,bx:u.x,by:u.y}:{tx:u.x,ty:u.y,bx:a.x,by:a.y}},getLinear:(t,e,r,n)=>{n=n*_tpt.DEG2RAD+Math.PI/2;for(var i,s,o,a,u=e/2,p=r/2,h=Math.sqrt(u*u+p*p),d={x1:Math.cos(n)*h+u,y1:Math.sin(n)*h+p,x2:u,y2:p},f=[l({x:0,y:0},n),l({x:e,y:0},n),l({x:e,y:r},n),l({x:0,y:r},n)],g=[],_=0;_<f.length;_++)g.push(c(f[_],d));if(SR7.F.dist(u,p,g[0].x,g[0].y)>SR7.F.dist(u,p,g[1].x,g[1].y)?(i=g[0].x,s=g[0].y):(i=g[1].x,s=g[1].y),SR7.F.dist(u,p,g[2].x,g[2].y)>SR7.F.dist(u,p,g[3].x,g[3].y)?(o=g[2].x,a=g[2].y):(o=g[3].x,a=g[3].y),Math.round(100*Math.atan2(p-s,u-i))/100===Math.round(n%(2*Math.PI)*100)/100){var m=i,D=s;i=o,s=a,o=m,a=D}return t.createLinearGradient(Math.round(i),Math.round(s),Math.round(o),Math.round(a))},insertPoints:(t,e,r,n,i)=>{let s=_tpt.gradient.RGBAToObj(t),o=_tpt.gradient.RGBAToObj(e);var a=t.p,u=e.p;if(!(a>u)){for(var l,p,c,h=[],d=0;d<i;d++)(p=parseFloat(n(d,0,1,i).toFixed(2))*(u-a)+a)>a&&p<u&&(h[h.length]=p);var f,g,_=h.length,m=parseFloat(((u-a)/(_+1)).toFixed(2)),D=parseFloat(m+a);for(d=0;d<_;d++)(c=h[d])!==t.p&&(f=_tpt.sanitizeAlpha(s.a),g=_tpt.sanitizeAlpha(o.a),l={p:D,rgba:_tpt.gradient.toRGBA({r:s.r!==o.r?Math.round(_tpt.distColor(c,a,u,s.r,o.r)):s.r,g:s.g!==o.g?Math.round(_tpt.distColor(c,a,u,s.g,o.g)):s.g,b:s.b!==o.b?Math.round(_tpt.distColor(c,a,u,s.b,o.b)):s.b,a:f!==g?_tpt.sanitizeAlpha(_tpt.distAlpha(c,a,u,s.a,o.a)):f})},D+=m,D=parseFloat(D.toFixed(2)),r[r.length]=l)}},transToColor:t=>{if(null==t)return;if(String(t).indexOf("gradient")>=0)return t;let e=_tpt.gradient.toRGBA(t).replace("rgb(","rgba(").split(",");return e[0]+","+e[1]+","+e[2].replace(")","")+",0)"},RGBAToObj:t=>{if("object"==typeof t){if(void 0!==t.r)return{...t};if(void 0!==t.rgba)return p(t.rgba)}else if("string"==typeof t)return p(t)},toRGBA:t=>{if("object"==typeof t)return void 0!==t.rgba&&"string"==typeof t.rgba?t.rgba:"rgba("+t.r+","+t.g+","+t.b+","+(t.a??1)+")";var e=window[null==_tpt.gsap?"tpGS":"_tpt"].gsap.utils.splitColor(t);return"rgba("+e[0]+","+e[1]+","+e[2]+","+(e[3]??1)+")"},easing:{quint:{easeout:function(t,e,r,n){return r*((t=t/n-1)*t*t*t*t+1)+e},easein:function(t,e,r,n){return r*(t/=n)*t*t*t*t+e},easeinout:function(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t*t*t+e:r/2*((t-=2)*t*t*t*t+2)+e}},quad:{easein:function(t,e,r,n){return r*(t/=n)*t+e},easeout:function(t,e,r,n){return-r*(t/=n)*(t-2)+e},easeinout:function(t,e,r,n){return(t/=n/2)<1?r/2*t*t+e:-r/2*(--t*(t-2)-1)+e}},quart:{easein:function(t,e,r,n){return r*(t/=n)*t*t*t+e},easeout:function(t,e,r,n){return-r*((t=t/n-1)*t*t*t-1)+e},easeinout:function(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t*t+e:-r/2*((t-=2)*t*t*t-2)+e}},cubic:{easein:function(t,e,r,n){return r*(t/=n)*t*t+e},easeout:function(t,e,r,n){return r*((t=t/n-1)*t*t+1)+e},easeinout:function(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t+e:r/2*((t-=2)*t*t+2)+e}},circ:{easein:function(t,e,r,n){return-r*(Math.sqrt(1-(t/=n)*t)-1)+e},easeout:function(t,e,r,n){return r*Math.sqrt(1-(t=t/n-1)*t)+e},easeinout:function(t,e,r,n){return(t/=n/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+e:r/2*(Math.sqrt(1-(t-=2)*t)+1)+e}},sine:{easein:function(t,e,r,n){return-r*Math.cos(t/n*(Math.PI/2))+r+e},easeout:function(t,e,r,n){return r*Math.sin(t/n*(Math.PI/2))+e},easeinout:function(t,e,r,n){return-r/2*(Math.cos(Math.PI*t/n)-1)+e}},expo:{easein:function(t,e,r,n){return 0===t?e:r*Math.pow(2,10*(t/n-1))+e},easeout:function(t,e,r,n){return t===n?e+r:r*(1-Math.pow(2,-10*t/n))+e},easeinout:function(t,e,r,n){return 0===t?e:t===n?e+r:(t/=n/2)<1?r/2*Math.pow(2,10*(t-1))+e:r/2*(2-Math.pow(2,-10*--t))+e}},bounce:{easeout:function(t,e,r,n){return(t/=n)<1/2.75?r*(7.5625*t*t)+e:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+e:r*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easein:function(t,e,r,n){return r-RSColor.easing.bounce.easeout(n-t,0,r,n)+e},easeinout:function(t,e,r,n){return t<n/2?.5*RSColor.easing.bounce.easein(2*t,0,r,n)+e:.5*RSColor.easing.bounce.easeout(2*t-n,0,r,n)+.5*r+e}}}},window.tpGS&&null==window.tpGS?.getSSGColors&&(window.tpGS.getSSGColors=_tpt.gradient.getSSGColors);const u=t=>t.filter(((e,r)=>r===t.length-1||(e.rgba!==t[r+1].rgba||e.p!==t[r+1].p))),l=(t,e)=>{var r=e+Math.PI/2;return{x1:t.x,y1:t.y,x2:t.x+100*Math.cos(r),y2:t.y+100*Math.sin(r)}},p=t=>{let e=_tpt.gsap.utils.splitColor(t);return{r:e[0],g:e[1],b:e[2],a:e[3]??1}};function c(t,e){var r=t.y2-t.y1,n=t.x1-t.x2,i=r*t.x1+n*t.y1,s=e.y2-e.y1,o=e.x1-e.x2,a=s*e.x1+o*e.y1,u=r*o-s*n;return 0!==u&&{x:Math.round((o*i-n*a)/u*100)/100,y:Math.round((r*a-s*i)/u*100)/100}}_tpt.distAlpha=(t,e,r,n,i)=>Math.max(Math.min(Math.abs(parseFloat(((t-e)/(r-e)*(i-n)).toFixed(2))+parseFloat(n)),1),0),_tpt.distColor=(t,e,r,n,i)=>Math.max(Math.min(Math.round(Math.abs((t-e)/(r-e)*(i-n)+n)),255),0),_tpt.sanitizeAlpha=t=>parseFloat(Math.max(Math.min(parseFloat(t),1),0).toFixed(2).replace(/\.?0*$/,"")),_tpt.inBounds=(t,e,r)=>t>=e&&t<=r,_tpt.parseColor=(t,e)=>((t=_tpt.gsap.utils.splitColor(t)).length<=3&&(t[3]=1),e?t:t.map(((t,e)=>e<3?t/255:t))),_tpt.getHexColor=t=>`#${t.slice(0,3).map((t=>`00${t.toString(16)}`.slice(-2))).join("")}`,_tpt.checkFontLoaded=function(t,e="normal",r="normal",n){return t=t.replace(/^"(.*)"$/,"$1"),new Promise(((i,s)=>{_tpt.ongoingTests??={};let o=`${t}-${e}-${r}`;_tpt.ongoingTests[o]||(_tpt.ongoingTests[o]=new Promise(((i,s)=>{if(1==(_tpt.R?.fonts?.[t]??0))return void i();let o,a=t.includes("Material Icons")||t.includes("FontAwesome"),u="Material Icons"==t?"wb_incandescent":"FontAwesome"==t||"Pe-icon-7-stroke"==t?"":"BESbswy",l=document.createElement(a?"i":"span"),p=!1,c=()=>{p||(clearInterval(o),p=!0)};l.style.fontFamily="sans-serif",l.style.fontWeight=e,l.style.fontStyle=r,l.textContent=u,_tpt.fontTester||(_tpt.fontTester=document.createElement("sr7-fonttest-wrap"),_tpt.fontTester.setAttribute("aria-hidden","true"),document.body.appendChild(_tpt.fontTester)),_tpt.fontTester.appendChild(l);let h=l.offsetWidth,d=l.offsetHeight;if(l.style.fontFamily=`'${t}', sans-serif`,"FontAwesome"==t?l.classList.add("fa-power-off"):"Pe-icon-7-stroke"==t&&l.classList.add("pe-7s-album"),h!==l.offsetWidth||d!==l.offsetHeight)return _tpt.R.fonts??={},_tpt.R.fonts[t]=1,c(),void i();o=setInterval((()=>{l.offsetWidth===h&&l.offsetHeight===d||(_tpt.R.fonts??={},_tpt.R.fonts[t]=1,c(),i())}),19),setTimeout((()=>{c(),i()}),n)}))),_tpt.ongoingTests[o].then(i,s)}))},_tpt.fontFamily=function(t,e){return null==t?"none":e?t.split(",")[0].replaceAll("+","-"):t.split(",")[0].replaceAll(" ","+")},_tpt.registerFont=function(t={}){_tpt.R.fonts??={},_tpt.R.fonts.required??={};var e=_tpt.fontFamily(t.family);if(_tpt.R.fonts.required[e]??={name:e,orig:t.family,italic:{},normal:{}},t.link&&(_tpt.R.fonts.required[e].link=t.link),t.url&&(_tpt.R.fonts.required[e].url??={url:t.url})&&(_tpt.R.fonts.required[e].url.state??=0),void 0!==t.weight){t.weight=Array.isArray(t.weight)?t.weight:[t.weight];for(var r=0;r<t.weight.length;r++)"auto"!==t.weight[r]&&(_tpt.R.fonts.required[e][t.italic?"italic":"normal"][t.weight[r]]??=0)}},_tpt.waitFonts=async function(t,e,r){try{let r=[];for(let e in t)t.hasOwnProperty(e)&&r.push(_tpt.loadFonts(e));await Promise.all(r),await new Promise((t=>t())),document.body.offsetHeight,"function"==typeof e&&e()}catch(t){console.log(`Error while waiting for fonts to load: ${t}`)}},_tpt.fixGoogleFontNames=function(t){return(t=t.replaceAll("'","")).split("+").map((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})).join("+")},_tpt.capitalize=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),_tpt.updateFontStatus=function(t){for(let e in _tpt.R.fonts.required)if(_tpt.hop(_tpt.R.fonts.required,e))for(let r of["normal","italic"])for(let n in _tpt.R.fonts.required[e][r])_tpt.hop(_tpt.R.fonts.required[e][r],n)&&_tpt.R.fonts.required[e][r][n]===t&&(_tpt.R.fonts.required[e][r][n]=2)},_tpt.getLoadedFontFaces=function(){var t={};for(let e of document.fonts){let r=e.family.replace(/['"]+/g,"");t[r]=t[r]||{italic:[],normal:[]};let n=e.weight,i="italic"===e.style?"italic":"normal";t[r][i].includes(n)||t[r][i].push(n)}return t},_tpt.getExistingGoogleFonts=function(){for(var t={},e=document.getElementsByTagName("link"),r=0;r<e.length;r++){let n=e[r].href.split("?");if(n[0]==(SR7.E.fontBaseUrl??"https://fonts.googleapis.com/css2").replace("?family=","")){let e=n[1].split("&");for(let r in e){let n=e[r].split("family=");if(null==e[r]||null==e[r]||null==n[1]||null==n[1])continue;let i=n[1].split(":"),s=n[1].split("@");if(null==i||null==i||null==i[0]||null==i[0])continue;if(null==s||null==s||null==s[1]||null==s[1])continue;i=i[0],t[i]??={italic:[],normal:[]};let o=s[1].split(";");for(let e=0;e<o.length;e++){let r=o[e].split(","),n=1==r[0]||"1"==r[0]||1==r[1]||"1"==r[1];for(let e=0;e<r.length;e++)r[e]>1&&t[i][n?"italic":"normal"].push(parseInt(r[e]))}}}}return t=_tpt.extend(t,_tpt.getLoadedFontFaces())},_tpt.isWeightInRange=(t,e)=>(t=parseInt(t),e.some((e=>{if("string"==typeof e&&e.includes(" ")){let[r,n]=e.split(" ").map(Number);return t>=r&&t<=n}return t==parseInt(e)}))),_tpt.loadFonts=async function(t){if(!window.SR7?.E?.ignoreGoogleFont&&null!=_tpt.R.fonts){var e,r,n,i,s,o="",a=Math.round(1e3*Math.random()+500),u=[];for(i in _tpt.R.fonts??={},_tpt.R.fonts.domFonts??=_tpt.getExistingGoogleFonts(),_tpt.R.fonts.required){if(!_tpt.hop(_tpt.R.fonts.required,i))continue;let t=(e=_tpt.R.fonts.required[i]).name.toLowerCase();if(t.includes("arial")||t.includes("palatino+linotype")||t.includes("times+new+roman")||t.includes("georgia")||t.includes("tahoma")||t.includes("trebuchet+ms")||t.includes("verdana")||t.includes("courier")||t.includes("courier+new")||t.includes("impact")||t.includes("comic+sans+ms"))continue;let l=i.replaceAll("'",""),p=_tpt.R?.fonts?.customFonts?.[i]??_tpt.R?.fonts?.customFonts?.[l]??!1;if(void 0!==e.url||p)e.url??={},0==e.url.state&&(p&&("string"==typeof p?e.url.url=p:e.url=p),u.push({font:i,url:e.url})),e.url.state=1;else{for(s of(r="",["normal","italic"]))for(n in e[s])if(_tpt.hop(e[s],n)&&0==e[s][n]){e[s][n]=a,n=parseInt(n),e.name=_tpt.fixGoogleFontNames(e.name);let t=e.name.toLowerCase();if(t.includes("arial")||t.includes("palatino+linotype")||t.includes("times+new+roman")||t.includes("georgia")||t.includes("tahoma")||t.includes("trebuchet+ms")||t.includes("verdana")||t.includes("courier")||t.includes("courier+new")||t.includes("impact")||t.includes("comic+sans+ms"))continue;if(""==e.name)continue;if(_tpt.isWeightInRange(n,_tpt.R?.fonts?.domFonts?.[e.orig]?.[s]??[]))continue;if(_tpt.isWeightInRange(n,_tpt.R?.fonts?.domFonts?.[e.name]?.[s]??[]))continue;""!==r?r+=";":r=(""!==o?"&":"")+"family="+e.name+":ital,wght@",r+=("normal"==s?0:1)+","+n}""!==r&&" "!==r&&"&family=:ital,wght@0,400"!==r&&(o+=r)}}if(""!==o&&" "!==o){o=(o=(SR7.E.fontBaseUrl??"https://fonts.googleapis.com/css2")+"?"+o+"&display=swap").replace("?family=?family=","?family=");var l=document.createElement("link");l.rel="stylesheet",l.href=o,l.onload=function(t,e){for(i in _tpt.R.fonts.required)if(_tpt.hop(_tpt.R.fonts.required,i))for(s of["normal","italic"])for(n in _tpt.R.fonts.required[i][s])_tpt.hop(_tpt.R.fonts.required[i][s],n)&&_tpt.R.fonts.required[i][s][n]===t&&(_tpt.R.fonts.required[i][s][n]=2);"function"==typeof e&&e()}(a,t),l.onerror=function(){_tpt.skipFontTrys=!0},document.getElementsByTagName("head")[0].appendChild(l)}else 0===u.length&&"function"==typeof t&&t();if(u.length>0)for(let t in u)(u[t].url?.url??"").endsWith(".css")?_tpt.loadCSS(u[t].url.url,u[t].font,!0):(_tpt.R[u[t].font]??={},_tpt.loadFontFace(u[t].url.url,u[t].font))}},_tpt.compareURL=function(t,e){return!(!t||!e)&&(t==e||(t=_tpt.urlProtocol(t),e=_tpt.urlProtocol(e),(t=_tpt.normalizeUrl(t))==(e=_tpt.normalizeUrl(e))))},_tpt.registerImage=function(t,e=0,r,n,i,s=!0){if(t){t=_tpt.urlProtocol(t),_tpt.R.images??={busy:!1,queue:{},all:Array(5e3),alllen:0,nextId:0,indexMap:{}};var o=_tpt.normalizeNURL(_tpt.normalizeUrl(t)),a=_tpt.findIndex(_tpt.R.images.all,"nurl",o);if(a=-1==a?_tpt.R.images.alllen++:a,!_tpt.R.images.all[a]){const e=_tpt.R.images.nextId++;_tpt.R.images.all[a]={id:e,url:t,nurl:o,nurlshort:o.split("?")[0],crossOrigin:s,callBacks:{},state:"pending",params:i},_tpt.R.images.indexMap[e]=a}"loaded"===_tpt.R.images.all[a].state||"cached"===_tpt.R.images.all[a].state?"function"==typeof r&&r(_tpt.R.images.all[a]):(_tpt.R.images.all[a].prio=e,_tpt.R.images.all[a].callBacks[n]=r),_tpt.updateImageQueue()}},_tpt.updateImageQueue=function(){if(_tpt.R.images.busy)return void setTimeout(_tpt.updateImageQueue,5);_tpt.R.images.busy=!0,_tpt.R.images.all.sort(((t,e)=>t.prio-e.prio)),_tpt.R.images.all.forEach(((t,e)=>{t&&(_tpt.R.images.indexMap[t.id]=e)}));let t=0;for(let e=0;e<5;e++)if(void 0===_tpt.R.images.queue[e])for(let r=t;r<_tpt.R.images.alllen;r++)if("pending"===_tpt.R.images.all[r].state){_tpt.R.images.queue[e]=_tpt.R.images.all[r].id,_tpt.R.images.all[r].state="inqueue",t=r;break}_tpt.processImageQueue(),_tpt.R.images.busy=!1},_tpt.processImageCallbacks=function(t,e){for(var r in _tpt.R.images.all[t].callBacks)_tpt.hop(_tpt.R.images.all[t].callBacks,r)&&"function"==typeof _tpt.R.images.all[t].callBacks[r]&&_tpt.R.images.all[t].callBacks[r](_tpt.R.images.all[t]);_tpt.R.images.queue[e]=void 0,_tpt.updateImageQueue()},_tpt.processImageQueue=function(){for(let t=0;t<5;t++)if(void 0!==_tpt.R.images.queue[t]){let e=_tpt.R.images.indexMap[_tpt.R.images.queue[t]];"inqueue"===_tpt.R.images.all[e].state&&(_tpt.R.images.all[e].state="loading",this.tryLoadImage(_tpt.R.images.all[e].id,t))}},_tpt.normalizeUrl=function(t){return"/"==(t=t.toLowerCase())[t.length-1]&&(t=t.slice(0,-1)),"http://"==t.slice(0,7)?t=t.slice(7):"https://"==t.slice(0,8)&&(t=t.slice(8)),t},_tpt.normalizeNURL=t=>_tpt.normalizeUrl(t).replaceAll("%20"," ").replaceAll("%E2%80%AF"," ").replaceAll("%e2%80%af"," ").replaceAll(" ","%20").replaceAll(/\s/g,"%20"),_tpt.findRequestedImage=function(t){let e=_tpt.normalizeNURL(_tpt.normalizeUrl(t)),r=_tpt.findIndex(_tpt.R.images.all,"nurl",e);if(-1!==r)return r;if(r=_tpt.findIndex(_tpt.R.images.all,"nurlshort",e.split("?")[0]),-1!==r)return r;if(r=_tpt.findIndex(_tpt.R.images.all,"nurl",e.replace(window.location.hostname,"")),-1!==r)return r;if(r=_tpt.findIndex(_tpt.R.images.all,"nurl",decodeURIComponent(e)),-1!==r)return r;let n=_tpt.normalizeUrl(function(){let t=window.location.href;return t.substring(0,t.lastIndexOf("/"))+"/"}())+"/";if(e=e.replace(n,""),r=_tpt.findIndex(_tpt.R.images.all,"nurl",e),-1!==r)return r;let i=decodeURIComponent(e);return r=_tpt.findIndex(_tpt.R.images.all,"nurl",i),-1!==r?r:(r=_tpt.findIndex(_tpt.R.images.all,"nurl",_tpt.normalizeNURL(i)),-1!==r?r:(e="./"+e,_tpt.findIndex(_tpt.R.images.all,"nurl",e)))},_tpt.tryLoadImage=function(t,e,r=!1){let n=_tpt.R.images.indexMap[t],i=_tpt.R.images.all[n],s=r?!i.crossOrigin:i.crossOrigin;_tpt.loadSingleImage(i.url,e,s).then((t=>{let r=_tpt.R.images.indexMap[i.id];_tpt.R.images.all[r].state=t.status,_tpt.R.images.all[r].image=t.image,_tpt.R.images.all[r].width=t.image.width,_tpt.R.images.all[r].height=t.image.height,_tpt.processImageCallbacks(r,e)})).catch((n=>{if(r){const r=_tpt.R.images.indexMap[t];_tpt.R.images.all[r].state=n.status,_tpt.processImageCallbacks(r,e),console.log("Image Error: "+_tpt.R.images.all[r].url+" could not be loaded")}else this.tryLoadImage(t,e,!0)}))},_tpt.allM=function(){var t="";for(var e in window.SR7.M)_tpt.hop(window.SR7.M,e)&&(t+=e+",");return t.slice(0,-1)},_tpt.getMSize=function(t){return delete window.SR7.M[t].c,console.log("Reference C has been deleted for Messuring. Reload Page after !!"),_tpt.getObjectSize(window.SR7.M[t])+"kb"},_tpt.getObjectSize=function(t){return(new TextEncoder).encode("string"==typeof t?t:JSON.stringify(t)).length/1024},_tpt.loadSingleImage=async function(t,e,r=!0){let n=e;return new Promise(((e,i)=>{let s=new Image;r&&(s.crossOrigin="anonymous"),s.src=t,s.onload=()=>{e({image:s,queueIndex:n,status:"loaded"})},s.onerror=()=>{i({url:t,queueIndex:n,status:"error"})},s.complete&&e({image:s,queueIndex:n,status:"cached"})}))},_tpt.isImageURL=t=>{if("string"!=typeof t)return!1;const e=t.split(".").pop().toLowerCase();return["jpg","jpeg","png","gif","bmp","svg","webp"].includes(e)},_tpt.getShader=function(t,e,r){return new Promise((async(n,i)=>{if(_tpt.R.shaders??={},_tpt.R.shaders[t]??={},_tpt.R.shaders[t][e])n(_tpt.R.shaders[t][e]);else try{let s=await fetch(r);if(!s.ok)return void i(`HTTP error! Status: ${s.status}`);let o=await s.text();_tpt.R.shaders[t][e]=o,n(o)}catch(t){i(t)}}))},_tpt.injectCssJs=(t="",e="",r,n)=>{if(""!==t){let e,r=!1;void 0!==n&&(e=document.getElementById(n),r=null!=e),r||(e=document.createElement("style"),e.classList.add("sr7-inline-css"),void 0!==n&&(e.id=n)),e.innerHTML=(e.innerHTML??"")+t,r||document.getElementsByTagName("head")[0].appendChild(e)}if(""!==e){const t=document.createElement("script");t.innerHTML=e,r.appendChild(t)}},_tpt.extndArray=(t,e)=>(t||(t=[]),e||(e=[]),Array.isArray(t)||(t=[t]),Array.isArray(e)||(e=[e]),Array.from(new Set(t.concat(e)))),_tpt.extndArrWithObj=(t=[],e={},r="src",n="")=>{let i;return t.forEach((t=>{let s=Object.keys(t).filter((t=>t!==r&&t!==n)),o=Object.keys(e).filter((t=>t!==r&&t!==n));if(s.length===o.length){if(s.every((r=>t[r]===e[r]))){let s=_tpt.compareParameters(t[r],e[r]),o=""==n||_tpt.compareParameters(t[n],e[n]);!s&&o?(t[r]=_tpt.extndArray(e[r],t[r]),i=!0):""!==n&&s&&(t[n]=_tpt.extndArray(e[n],t[n]),i=!0)}}})),i||t.push(e),t},_tpt.tf=t=>"false"!=t&&0!=t&&("true"==t||1==t||t),_tpt.findNested=(t,e,r)=>{if(null==t)return null;if(e in t&&(!r||r in t[e]))return t[e];for(let n in t)if(_tpt.hop(t,n)&&"object"==typeof t[n]){let i=_tpt.findNested(t[n],e,r);if(i)return i}return null},_tpt.closest=function(t,e){return t&&(e(t)?t:_tpt.closest(t.parentNode,e))},_tpt.closestNode=function(t,e){return _tpt.closest(t,(function(t){return t.nodeName===e}))},_tpt.closestClass=function(t,e){return _tpt.closest(t,(function(t){return(" "+t.className+" ").indexOf(" "+e+" ")>=0}))},_tpt.compareParameters=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)||(t=[t]),Array.isArray(e)||(e=[e]),t.length!==e.length)return!1;t.sort(),e.sort();for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},_tpt.countSubStr=(t="",e="",r=!1)=>{if(0===e.length)return t.length+1;let n=0,i=0;const s=r?1:e.length;for(;i=t.indexOf(e,i),i>=0;)n++,i+=s;return n},_tpt.getRatio=t=>{if(void 0===t||1===t||"number"==typeof t)return t;if("string"==typeof t&&t.includes(":")){const[e,r]=t.split(":");return parseFloat(e)/parseFloat(r)}return 1},_tpt.compareComputedStyles=t=>{var e=t[0];for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];t.every((function(t){return t[r]===n}))||(console.log("Mismatch property:",r),t.forEach((function(t,e){console.log("Element",e,"value:",t[r])})))}},_tpt.cookie={set:(t,e,r)=>{const n=new Date;n.setTime(n.getTime()+60*r*60*1e3);const i=`expires=${n.toUTCString()}`;document.cookie=`${t}=${e};${i};path=/`},get:t=>{const e=`${t}=`,r=document.cookie.split(";").find((t=>t.trim().startsWith(e))),n=r?decodeURIComponent(r.substring(e.length+1)):"";return"true"===n||"false"!==n&&n}},_tpt.displayDeprecationWarnings=t=>{if(t&&t.warnings){console.group("Deprecation Alert: Functions listed below are deprecated and will be removed in Version 7.0.0. Please update accordingly.");for(const[e,r]of Object.entries(t.warnings))r?console.info(`"${e}" is deprecated. Use "${r}" instead.`):console.info(`"${e}" is deprecated.`);console.groupEnd()}},_tpt.viewPortObserverManager={observers:{},inViewPortObserver:new IntersectionObserver((function(t){t.forEach((t=>{t.target.observParams&&t.target.observParams.obj&&(t.target.observParams.obj.states=t.target.observParams.obj.states||{},t.target.observParams.obj.states.inViewPort=t.isIntersecting)}))}),{rootMargin:"0px"}),getObserver:function(t="-100px"){if(t=""==t?"-100px":t,t=-1*parseInt(t)+"px",this.observers[t])return this.observers[t];t=`${t} 0px ${t} 0px`;var e=new IntersectionObserver((function(t){for(var e=0;e<t.length;e++){var r=t[e];r.isIntersecting?(r.target.observParams.obj&&(r.target.observParams.obj.states??={},r.target.observParams.obj.states.boundingClientRect=r.boundingClientRect,r.target.observParams.obj.states.inViewPort=r.isIntersecting,_tpt.scrollObserver.run(r.target)),void 0!==r.target.observParams&&(void 0!==r.target.observParams.callBack&&r.target.observParams.callBack(r.target,r.intersectionRatio),void 0!==r.target.observParams.toggleCall&&r.target.observParams.toggleCall(r.target.id,r.intersectionRatio,"scroll"),r.target.observParams.runonce&&delete r.target.observParams.callBack)):r.target.observParams&&(r.target.observParams.obj.states??={},r.target.observParams.obj.states.inViewPort=!!r.target.observParams?.obj?.settings?.fixed||r.isIntersecting,r.target.observParams?.toggleCall?.(r.target.id,r.intersectionRatio,"scroll"))}}),{rootMargin:t});return this.observers[t]=e,e}},_tpt.observeModule=function(t,e="-100px"){_tpt.viewPortObserverManager.getObserver(e).observe(t)},_tpt.scrollObserver={observe:t=>{_tpt.scrollObserver.entries||(_tpt.scrollObserver.entries=[],_tpt.is_mobile?(_tpt.gsap.ticker.fps(150),_tpt.gsap.ticker.add((()=>{_tpt.scrollObserver.run()}))):document.addEventListener("scroll",(function(t){void 0===_tpt.scrollObserver.RaF&&(_tpt.scrollObserver.RaF=requestAnimationFrame((function(){_tpt.scrollObserver.run()})))}),{passive:!0})),-1==_tpt.scrollObserver.entries.indexOf(t)&&_tpt.scrollObserver.entries.push(t),_tpt.scrollObserver.run(t)},kill:t=>{_tpt.scrollObserver.entries=_tpt.scrollObserver.entries.filter((e=>e!==t))},run:(t,e)=>{if(_tpt.scrollObserver.RaF&&(_tpt.scrollObserver.RaF=cancelAnimationFrame(_tpt.scrollObserver.RaF)),window.scrollY!=_tpt.scrollObserver.y||e)if(_tpt.scrollObserver.y=window.scrollY,null==t){for(let t in _tpt.scrollObserver.entries)if(_tpt.hop(_tpt.scrollObserver.entries,t)){if(!1!==(_tpt.scrollObserver?.entries?.[t]?.observSR7Globals??!1))for(let e in _tpt.scrollObserver.entries[t].observSR7Globals)_tpt.hop(_tpt.scrollObserver.entries[t].observSR7Globals,e)&&_tpt.scrollObserver.entries[t].observSR7Globals[e].callback(_tpt.scrollObserver.entries[t].observSR7Globals[e].params);0!=(_tpt.scrollObserver?.entries?.[t]?.observParams?.obj?.states?.inViewPort??!1)&&_tpt.scrollObserver.process(_tpt.scrollObserver.entries[t])}}else if(!1!==(t?.observParams?.obj?.states?.inViewPort??!1)&&_tpt.scrollObserver.process(t),t.observSR7Globals)for(let e in t.observSR7Globals)_tpt.hop(t.observSR7Globals,e)&&t.observSR7Globals[e].callback(t.observSR7Globals[e].params)},process:t=>{const e=t.observParams.obj;let r="false"!==(""+e.settings?.mod?.use??!1)||"false"!==(""+e.settings?.sbt?.use??!1);if(null!=e.dims.module&&(e.c.moduleListeners?.scroll||r)&&(e.dims.moduleRect=t.getBoundingClientRect(),e.settings)){if(r){if(delete e.scrollProcSA,e.settings.fixed)e.scrollProc=1-Math.min(1,Math.max(0,window.scrollY/_tpt.winH));else{let t=e.dims.moduleRect.height>=_tpt.winH||e.c.module.offsetTop>e.dims.moduleRect.height/2;e.scrollProcSA=t?Math.max(-1,Math.min(1,1-(e.dims.moduleRect.top-_tpt.winH)/(_tpt.winH+e.dims.moduleRect.height)*-2)):Math.max(-1,Math.min(1,e.dims.moduleRect.top/(e.dims.moduleRect.height||e.dims.module.h))),(e.settings?.rOFV??1)&&e.dims.moduleRect.height<_tpt.winH?e.scrollProc=e.dims.moduleRect.top>=0&&e.dims.moduleRect.bottom<=_tpt.winH?0:e.dims.moduleRect.top<0?e.dims.moduleRect.top/e.dims.moduleRect.height:(e.dims.moduleRect.bottom-_tpt.winH)/e.dims.moduleRect.height:(t=!1,e.scrollProc=t?Math.max(-1,Math.min(1,1-(e.dims.moduleRect.top-_tpt.winH)/(_tpt.winH+e.dims.moduleRect.height)*-2)):Math.max(-1,Math.min(1,e.dims.moduleRect.top/(e.dims.moduleRect.height||e.dims.module.h))))}e.scrollProc=e.scrollProc||0,e.scrollProcSA??=e.scrollProc}void 0!==t.observParams.scrollCallback&&t.observParams.scrollCallback(t.id)}}},_tpt.resizeObserver={id:0,targets:{},timer:1e3,inited:!1,observe:function(t,e,r){return"function"==typeof t&&(e??=100,_tpt.resizeObserver.targets[_tpt.resizeObserver.id++]={callBack:t,delay:e,id:r},_tpt.resizeObserver.process(),_tpt.resizeObserver.id)},remove:function(t){delete _tpt.targets[t]},process:function(){1!=_tpt.resizeObserver.observed&&(_tpt.resizeObserver.observed=!0,window.addEventListener("resize",(function(){_tpt.resizeObserver.execute()})))},execute:function(){_tpt.getWinDim(!0);var t=new Date;for(var e in t-_tpt.resizeObserver.timer>=1e3&&(_tpt.resizeObserver.timer=t),_tpt.resizeObserver.targets)_tpt.hop(_tpt.resizeObserver.targets,e)&&(clearTimeout(_tpt.resizeObserver.targets[e].timer),t-_tpt.resizeObserver.timer>=_tpt.resizeObserver.targets[e].delay?_tpt.resizeObserver.targets[e].callBack(_tpt.resizeObserver.targets[e].id):function(t){_tpt.resizeObserver.targets[t].timer=setTimeout((()=>{_tpt.resizeObserver.targets[t].callBack(_tpt.resizeObserver.targets[t].id)}),_tpt.resizeObserver.targets[t].delay)}(e))}},_tpt.orientationObserver={id:0,targets:{},inited:!1,lastZoomLevel:1,checkZoomLevel:()=>{if("visualViewport"in window){return window.visualViewport.scale}return 1},observe:function(t,e,r){return!(!_tpt.is_mobile||"function"!=typeof t)&&(_tpt.orientationObserver.targets[_tpt.orientationObserver.id++]={callBack:t,delay:e,id:r},_tpt.orientationObserver.process(),_tpt.orientationObserver.id)},remove:function(t){delete _tpt.orientationObserver.targets[t]},process:function(){_tpt.orientationObserver.inited||(_tpt.orientationObserver.inited=!0,window.addEventListener("orientationchange",(function(){_tpt.orientationObserver.event="orientation",_tpt.orientationObserver.execute()})))},execute:function(){var t=new Date;for(var e in t-_tpt.resizeObserver.timer>=1e3&&(_tpt.resizeObserver.timer=t),_tpt.orientationObserver.targets)_tpt.hop(_tpt.orientationObserver.targets,e)&&(clearTimeout(_tpt.orientationObserver.targets[e].timer),t-_tpt.orientationObserver.timer>=_tpt.orientationObserver.targets[e].delay?_tpt.orientationObserver.targets[e].callBack(_tpt.orientationObserver.targets[e].id):function(t){_tpt.orientationObserver.targets[t].timer=setTimeout((()=>{_tpt.orientationObserver.targets[t].callBack(_tpt.orientationObserver.targets[t].id)}),_tpt.orientationObserver.targets[t].delay)}(e))}},_tpt.focusObserver={id:0,targets:{},timer:1e3,inited:!1,observe:function(t,e,r){return"function"==typeof t&&(e??=100,_tpt.focusObserver.targets[_tpt.focusObserver.id++]={callBack:t,delay:e,id:r},_tpt.focusObserver.process(),_tpt.focusObserver.id)},remove:function(t){delete _tpt.targets[t]},process:function(){1!=_tpt.focusObserver.observed&&(_tpt.focusObserver.observed=!0,window.addEventListener("blur",(function(){_tpt.focusObserver.execute("blur")})),window.addEventListener("focus",(function(){_tpt.focusObserver.execute("focus")})))},execute:function(t){var e=new Date;for(var r in e-_tpt.focusObserver.timer>=1e3&&(_tpt.focusObserver.timer=e),_tpt.focusObserver.targets)_tpt.hop(_tpt.focusObserver.targets,r)&&(clearTimeout(_tpt.focusObserver.targets[r].timer),e-_tpt.focusObserver.timer>=_tpt.focusObserver.targets[r].delay?_tpt.focusObserver.targets[r].callBack(t,_tpt.focusObserver.targets[r].id):function(e){_tpt.focusObserver.targets[e].timer=setTimeout((()=>{_tpt.focusObserver.targets[e].callBack(t,_tpt.focusObserver.targets[e].id)}),_tpt.focusObserver.targets[e].delay)}(r))}},_tpt.wrapObserver={targets:[],init:function(t){var e=0,r=0,n=i.bind(_tpt.wrapObserver);function i(){if(r++,requestAnimationFrame(n),!(r-e<30)){e=r;for(var i=0;i<_tpt.wrapObserver.targets.length;i++)if(_tpt.hop(_tpt.wrapObserver.targets,i)){var s=_tpt.wrapObserver.targets[i],o=s.elem.getBoundingClientRect();s.lw===o.width&&s.lh===o.height||0===o.width||(s.callback&&(s.callback.pause(),s.callback.kill(),s.callback=null),s.callback=_tpt.gsap.to({},{duration:.2,onComplete:t.bind(window,s.elem,s.id)})),s.lw=o.width,s.lh=o.height}}}i()},observe:function(t,e){if(""!==(t=t.getBoundingClientRect?t:t[0].getBoundingClientRect?t[0]:"")){var r=t.getBoundingClientRect();_tpt.wrapObserver.targets.push({elem:t,id:e,lw:r.width,lh:r.height})}}},_tpt.userInteracted=!1,_tpt.setUserInteractionFlag=()=>{_tpt.userInteracted=!0,document.removeEventListener("click",_tpt.setUserInteractionFlag),document.removeEventListener("keydown",_tpt.setUserInteractionFlag),document.removeEventListener("touchstart",_tpt.setUserInteractionFlag)},document.addEventListener("click",_tpt.setUserInteractionFlag),document.addEventListener("keydown",_tpt.setUserInteractionFlag),document.addEventListener("touchstart",_tpt.setUserInteractionFlag),_tpt.R??={},_tpt.R.tptools=_tpt.extend?_tpt.extend(_tpt.R.tptools,{status:2,version:"6.7.16"}):{status:2,version:"6.7.16"}}(),(()=>{"use strict";function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
/*!
 * GSAP 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var r,n,i,s,o,a,u,l,p,c,h,d,f,g,_,m={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},D={duration:.5,overwrite:!1,delay:0},v=1e8,y=1e-8,x=2*Math.PI,b=x/4,w=0,C=Math.sqrt,F=Math.cos,E=Math.sin,T=function(t){return"string"==typeof t},S=function(t){return"function"==typeof t},M=function(t){return"number"==typeof t},A=function(t){return void 0===t},R=function(t){return"object"==typeof t},O=function(t){return!1!==t},P=function(){return"undefined"!=typeof window},k=function(t){return S(t)||T(t)},B="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},L=Array.isArray,N=/(?:-?\.?\d|\.)+/gi,I=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,z=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,X=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,j=/[+-]=-?[.\d]+/,Y=/[^,'"\[\]\s]+/gi,q=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,G={},V={},H=function(t){return(V=xt(t,G))&&xr},$=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},U=function(t,e){return!e&&console.warn(t)},W=function(t,e){return t&&(G[t]=e)&&V&&(V[t]=e)||G},Q=function(){return 0},Z={suppressEvents:!0,isStart:!0,kill:!1},J={suppressEvents:!0,kill:!1},K={suppressEvents:!0},tt={},et=[],rt={},nt={},it={},st=30,ot=[],at="",ut=function(t){var e,r,n=t[0];if(R(n)||S(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ot.length;r--&&!ot[r].targetTest(n););e=ot[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Be(t[r],e)))||t.splice(r,1);return t},lt=function(t){return t._gsap||ut(Jt(t))[0]._gsap},pt=function(t,e,r){return(r=t[e])&&S(r)?t[e]():A(r)&&t.getAttribute&&t.getAttribute(e)||r},ct=function(t,e){return(t=t.split(",")).forEach(e)||t},ht=function(t){return Math.round(1e5*t)/1e5||0},dt=function(t){return Math.round(1e7*t)/1e7||0},ft=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},gt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},_t=function(){var t,e,r=et.length,n=et.slice(0);for(rt={},et.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},mt=function(t,e,r,i){et.length&&!n&&_t(),t.render(e,r,i||n&&e<0&&(t._initted||t._startAt)),et.length&&!n&&_t()},Dt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Y).length<2?e:T(t)?t.trim():t},vt=function(t){return t},yt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},xt=function(t,e){for(var r in e)t[r]=e[r];return t},bt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=R(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},wt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Ct=function(t){var e,r=t.parent||s,n=t.keyframes?(e=L(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):yt;if(O(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ft=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var s,o=t[n];if(i)for(s=e[i];o&&o[i]>s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Et=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,s=e._next;i?i._next=s:t[r]===e&&(t[r]=s),s?s._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},Tt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},St=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Mt=function(t,e,r,i){return t._startAt&&(n?t._startAt.revert(J):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},At=function t(e){return!e||e._ts&&t(e.parent)},Rt=function(t){return t._repeat?Ot(t._tTime,t=t.duration()+t._rDelay)*t:0},Ot=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},Pt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},kt=function(t){return t._end=dt(t._start+(t._tDur/Math.abs(t._ts||t._rts||y)||0))},Bt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=dt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),kt(t),r._dirty||St(r,t)),t},Lt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=Pt(t.rawTime(),e),(!e._dur||Ut(0,e.totalDuration(),r)-e._tTime>y)&&e.render(r,!0)),St(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},Nt=function(t,e,r,n){return e.parent&&Tt(e),e._start=dt((M(r)?r:r||t!==s?Vt(t,r,e):t._time)+e._delay),e._end=dt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ft(t,e,"_first","_last",t._sort?"_start":0),jt(e)||(t._recent=e),n||Lt(t,e),t._ts<0&&Bt(t,t._tTime),t},It=function(t,e){return(G.ScrollTrigger||$("scrollTrigger",e))&&G.ScrollTrigger.create(e,t)},zt=function(t,e,r,i,s){return qe(t,e,s),t._initted?!r&&t._pt&&!n&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&p!==be.frame?(et.push(t),t._lazy=[s,i],1):void 0:1},Xt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},jt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Yt=function(t,e,r,n){var i=t._repeat,s=dt(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:dt(s*(i+1)+t._rDelay*i):s,o>0&&!n&&Bt(t,t._tTime=t._tDur*o),t.parent&&kt(t),r||St(t.parent,t),t},qt=function(t){return t instanceof Ne?St(t):Yt(t,t._dur)},Gt={_start:0,endTime:Q,totalDuration:Q},Vt=function t(e,r,n){var i,s,o,a=e.labels,u=e._recent||Gt,l=e.duration()>=v?u.endTime(!1):e._dur;return T(r)&&(isNaN(r)||r in a)?(s=r.charAt(0),o="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(i<0?u:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=l),a[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(s=s/100*(L(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},Ht=function(t,e,r){var n,i,s=M(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=r,t){for(n=a,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=O(i.vars.inherit)&&i.parent;a.immediateRender=O(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new Ue(e[0],a,e[o+1])},$t=function(t,e){return t||0===t?e(t):e},Ut=function(t,e,r){return r<t?t:r>e?e:r},Wt=function(t,e){return T(t)&&(e=q.exec(t))?e[1]:""},Qt=[].slice,Zt=function(t,e){return t&&R(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&R(t[0]))&&!t.nodeType&&t!==o},Jt=function(t,e,r){return i&&!e&&i.selector?i.selector(t):!T(t)||r||!a&&we()?L(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return T(t)&&!e||Zt(t,1)?(n=r).push.apply(n,Jt(t)):r.push(t)}))||r}(t,r):Zt(t)?Qt.call(t,0):t?[t]:[]:Qt.call((e||u).querySelectorAll(t),0)},Kt=function(t){return t=Jt(t)[0]||U("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return Jt(e,r.querySelectorAll?r:r===t?U("Invalid scope")||u.createElement("div"):t)}},te=function(t){return t.sort((function(){return.5-Math.random()}))},ee=function(t){if(S(t))return t;var e=R(t)?t:{each:t},r=Ae(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,u=e.axis,l=n,p=n;return T(n)?l=p={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(l=n[0],p=n[1]),function(t,o,c){var h,d,f,g,_,m,D,y,x,b=(c||e).length,w=s[b];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,v])[1])){for(D=-v;D<(D=c[x++].getBoundingClientRect().left)&&x<b;);x<b&&x--}for(w=s[b]=[],h=a?Math.min(x,b)*l-.5:n%x,d=x===v?0:a?b*p/x-.5:n/x|0,D=0,y=v,m=0;m<b;m++)f=m%x-h,g=d-(m/x|0),w[m]=_=u?Math.abs("y"===u?g:f):C(f*f+g*g),_>D&&(D=_),_<y&&(y=_);"random"===n&&te(w),w.max=D-y,w.min=y,w.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(x>b?b-1:u?"y"===u?b/x:x:Math.max(x,b/x))||0)*("edges"===n?-1:1),w.b=b<0?i-b:i,w.u=Wt(e.amount||e.each)||0,r=r&&b<0?Se(r):r}return b=(w[t]-w.min)/w.max||0,dt(w.b+(r?r(b):b)*w.v)+w.u}},re=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=dt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(M(r)?0:Wt(r))}},ne=function(t,e){var r,n,i=L(t);return!i&&R(t)&&(r=i=t.radius||v,t.values?(t=Jt(t.values),(n=!M(t[0]))&&(r*=r)):t=re(t.increment)),$t(e,i?S(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),u=v,l=0,p=t.length;p--;)(i=n?(i=t[p].x-o)*i+(s=t[p].y-a)*s:Math.abs(t[p]-o))<u&&(u=i,l=p);return l=!r||u<=r?t[l]:e,n||l===e||M(e)?l:l+Wt(e)}:re(t))},ie=function(t,e,r,n){return $t(L(t)?!e:!0===r?!!(r=0):!n,(function(){return L(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n}))},se=function(t,e,r){return $t(r,(function(r){return t[~~e(r)]}))},oe=function(t){for(var e,r,n,i,s=0,o="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?Y:N),o+=t.substr(s,e-s)+ie(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return o+t.substr(s,t.length-s)},ae=function(t,e,r,n,i){var s=e-t,o=n-r;return $t(i,(function(e){return r+((e-t)/s*o||0)}))},ue=function(t,e,r){var n,i,s,o=t.labels,a=v;for(n in o)(i=o[n]-e)<0==!!r&&i&&a>(i=Math.abs(i))&&(s=n,a=i);return s},le=function(t,e,r){var n,s,o,a=t.vars,u=a[e],l=i,p=t._ctx;if(u)return n=a[e+"Params"],s=a.callbackScope||t,r&&et.length&&_t(),p&&(i=p),o=n?u.apply(s,n):u.call(s),i=l,o},pe=function(t){return Tt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!n),t.progress()<1&&le(t,"onInterrupt"),t},ce=[],he=function(t){if(t)if(t=!t.name&&t.default||t,P()||t.headless){var e=t.name,r=S(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:Q,render:nr,add:je,kill:sr,modifier:ir,rawVars:0},s={targetTest:0,get:0,getSetter:Ke,aliases:{},register:0};if(we(),t!==n){if(nt[e])return;yt(n,yt(wt(t,i),s)),xt(n.prototype,xt(i,wt(t,s))),nt[n.prop=e]=n,t.targetTest&&(ot.push(n),tt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}W(e,n),t.register&&t.register(xr,n,ur)}else ce.push(t)},de=255,fe={aqua:[0,de,de],lime:[0,de,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,de],navy:[0,0,128],white:[de,de,de],olive:[128,128,0],yellow:[de,de,0],orange:[de,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[de,0,0],pink:[de,192,203],cyan:[0,de,de],transparent:[de,de,de,0]},ge=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*de+.5|0},_e=function(t,e,r){var n,i,s,o,a,u,l,p,c,h,d=t?M(t)?[t>>16,t>>8&de,t&de]:0:fe.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),fe[t])d=fe[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&de,d&de,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&de,t&de]}else if("hsl"===t.substr(0,3))if(d=h=t.match(N),e){if(~t.indexOf("="))return d=t.match(I),r&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,a=+d[1]/100,n=2*(u=+d[2]/100)-(i=u<=.5?u*(a+1):u+a-u*a),d.length>3&&(d[3]*=1),d[0]=ge(o+1/3,n,i),d[1]=ge(o,n,i),d[2]=ge(o-1/3,n,i);else d=t.match(N)||fe.transparent;d=d.map(Number)}return e&&!h&&(n=d[0]/de,i=d[1]/de,s=d[2]/de,u=((l=Math.max(n,i,s))+(p=Math.min(n,i,s)))/2,l===p?o=a=0:(c=l-p,a=u>.5?c/(2-l-p):c/(l+p),o=l===n?(i-s)/c+(i<s?6:0):l===i?(s-n)/c+2:(n-i)/c+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*a+.5),d[2]=~~(100*u+.5)),r&&d.length<4&&(d[3]=1),d},me=function(t){var e=[],r=[],n=-1;return t.split(ve).forEach((function(t){var i=t.match(z)||[];e.push.apply(e,i),r.push(n+=i.length+1)})),e.c=r,e},De=function(t,e,r){var n,i,s,o,a="",u=(t+a).match(ve),l=e?"hsla(":"rgba(",p=0;if(!u)return t;if(u=u.map((function(t){return(t=_e(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),r&&(s=me(t),(n=r.c).join(a)!==s.c.join(a)))for(o=(i=t.replace(ve,"1").split(z)).length-1;p<o;p++)a+=i[p]+(~n.indexOf(p)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(o=(i=t.split(ve)).length-1;p<o;p++)a+=i[p]+u[p];return a+i[o]},ve=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in fe)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),ye=/hsl[a]?\(/,xe=function(t){var e,r=t.join(" ");if(ve.lastIndex=0,ve.test(r))return e=ye.test(r),t[1]=De(t[1],e),t[0]=De(t[0],e,me(t[1])),!0},be=function(){var t,e,r,n,i,s,p=Date.now,c=500,d=33,f=p(),g=f,_=1e3/240,m=_,D=[],v=function r(o){var a,u,l,h,v=p()-g,y=!0===o;if((v>c||v<0)&&(f+=v-d),((a=(l=(g+=v)-f)-m)>0||y)&&(h=++n.frame,i=l-1e3*n.time,n.time=l/=1e3,m+=a+(a>=_?4:_-a),u=1),y||(t=e(r)),u)for(s=0;s<D.length;s++)D[s](l,i,h,o)};return n={time:0,frame:0,tick:function(){v(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){l&&(!a&&P()&&(o=a=window,u=o.document||{},G.gsap=xr,(o.gsapVersions||(o.gsapVersions=[])).push(xr.version),H(V||o.GreenSockGlobals||!o.gsap&&o||{}),ce.forEach(he)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,m-1e3*n.time+1|0)},h=1,v(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),h=0,e=Q},lagSmoothing:function(t,e){c=t||1/0,d=Math.min(e||33,c)},fps:function(t){_=1e3/(t||240),m=1e3*n.time+_},add:function(t,e,r){var i=e?function(e,r,s,o){t(e,r,s,o),n.remove(i)}:t;return n.remove(t),D[r?"unshift":"push"](i),we(),i},remove:function(t,e){~(e=D.indexOf(t))&&D.splice(e,1)&&s>=e&&s--},_listeners:D}}(),we=function(){return!h&&be.wake()},Ce={},Fe=/^[\d.\-M][\d.\-,\s]/,Ee=/["']/g,Te=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,u=s.length;a<u;a++)r=s[a],e=a!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[o]=isNaN(n)?n.replace(Ee,"").trim():+n,o=r.substr(e+1).trim();return i},Se=function(t){return function(e){return 1-t(1-e)}},Me=function t(e,r){for(var n,i=e._first;i;)i instanceof Ne?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},Ae=function(t,e){return t&&(S(t)?t:Ce[t]||function(t){var e,r,n,i,s=(t+"").split("("),o=Ce[s[0]];return o&&s.length>1&&o.config?o.config.apply(null,~t.indexOf("{")?[Te(s[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i<n?e.indexOf(")",n+1):n)).split(",").map(Dt)):Ce._CE&&Fe.test(t)?Ce._CE("",t):o}(t))||e},Re=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return ct(t,(function(t){for(var e in Ce[t]=G[t]=s,Ce[i=t.toLowerCase()]=r,s)Ce[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ce[t+"."+e]=s[e]})),s},Oe=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Pe=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),o=s/x*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*E((t-o)*s)+1},u="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Oe(a);return s=x/s,u.config=function(r,n){return t(e,r,n)},u},ke=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Oe(n);return i.config=function(r){return t(e,r)},i};ct("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;Re(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},(function(t){return 1-Math.pow(1-t,r)}),(function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),Ce.Linear.easeNone=Ce.none=Ce.Linear.easeIn,Re("Elastic",Pe("in"),Pe("out"),Pe()),d=7.5625,g=1/(f=2.75),Re("Bounce",(function(t){return 1-_(1-t)}),_=function(t){return t<g?d*t*t:t<.7272727272727273?d*Math.pow(t-1.5/f,2)+.75:t<.9090909090909092?d*(t-=2.25/f)*t+.9375:d*Math.pow(t-2.625/f,2)+.984375}),Re("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Re("Circ",(function(t){return-(C(1-t*t)-1)})),Re("Sine",(function(t){return 1===t?1:1-F(t*b)})),Re("Back",ke("in"),ke("out"),ke()),Ce.SteppedEase=Ce.steps=G.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*Ut(0,.99999999,t)|0)+i)*r}}},D.ease=Ce["quad.out"],ct("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return at+=t+","+t+"Params,"}));var Be=function(t,e){this.id=w++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:pt,this.set=e?e.getSetter:Ke},Le=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Yt(this,+t.duration,1,1),this.data=t.data,i&&(this._ctx=i,i.data.push(this)),h||be.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Yt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(we(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Bt(this,t),!r._dp||r.parent||Lt(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Nt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===y||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),mt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Rt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Rt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Ot(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?Pt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Ut(-Math.abs(this._delay),this._tDur,r),!1!==e),kt(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(we(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==y&&(this._tTime-=y)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Nt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(O(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Pt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=K);var e=n;return n=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),n=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,qt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,qt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Vt(this,t),O(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,O(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-y))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=S(t)?t:vt,i=function(){var t=e.then;e.then=null,S(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){pe(this)},t}();yt(Le.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ne=function(r){function i(e,n){var i;return void 0===e&&(e={}),(i=r.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=O(e.sortChildren),s&&Nt(e.parent||s,t(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&It(t(i),e.scrollTrigger),i}e(i,r);var o=i.prototype;return o.to=function(t,e,r){return Ht(0,arguments,this),this},o.from=function(t,e,r){return Ht(1,arguments,this),this},o.fromTo=function(t,e,r,n){return Ht(2,arguments,this),this},o.set=function(t,e,r){return e.duration=0,e.parent=this,Ct(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Ue(t,e,Vt(this,r),1),this},o.call=function(t,e,r){return Nt(this,Ue.delayedCall(0,t,e),r)},o.staggerTo=function(t,e,r,n,i,s,o){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=o,r.parent=this,new Ue(t,r,Vt(this,i)),this},o.staggerFrom=function(t,e,r,n,i,s,o){return r.runBackwards=1,Ct(r).immediateRender=O(r.immediateRender),this.staggerTo(t,e,r,n,i,s,o)},o.staggerFromTo=function(t,e,r,n,i,s,o,a){return n.startAt=r,Ct(n).immediateRender=O(n.immediateRender),this.staggerTo(t,e,n,i,s,o,a)},o.render=function(t,e,r){var i,o,a,u,l,p,c,h,d,f,g,_,m=this._time,D=this._dirty?this.totalDuration():this._tDur,v=this._dur,x=t<=0?0:dt(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==s&&x>D&&t>=0&&(x=D),x!==this._tTime||r||b){if(m!==this._time&&v&&(x+=this._time-m,t+=this._time-m),i=x,d=this._start,p=!(h=this._ts),b&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(g=this._yoyo,l=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,r);if(i=dt(x%l),x===D?(u=this._repeat,i=v):((u=~~(x/l))&&u===x/l&&(i=v,u--),i>v&&(i=v)),f=Ot(this._tTime,l),!m&&this._tTime&&f!==u&&this._tTime-f*l-this._dur<=0&&(f=u),g&&1&u&&(i=v-i,_=1),u!==f&&!this._lock){var w=g&&1&f,C=w===(g&&1&u);if(u<f&&(w=!w),m=w?0:x%v?v:x,this._lock=1,this.render(m||(_?0:dt(u*l)),e,!v)._lock=0,this._tTime=x,!e&&this.parent&&le(this,"onRepeat"),this.vars.repeatRefresh&&!_&&(this.invalidate()._lock=1),m&&m!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,D=this._tDur,C&&(this._lock=2,m=w?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!_&&this.invalidate()),this._lock=0,!this._ts&&!p)return this;Me(this,_)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,dt(m),dt(i)),c&&(x-=i-(i=c._start))),this._tTime=x,this._time=i,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&i&&!e&&!u&&(le(this,"onStart"),this._tTime!==x))return this;if(i>=m&&t>=0)for(o=this._first;o;){if(a=o._next,(o._act||i>=o._start)&&o._ts&&c!==o){if(o.parent!==this)return this.render(t,e,r);if(o.render(o._ts>0?(i-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(i-o._start)*o._ts,e,r),i!==this._time||!this._ts&&!p){c=0,a&&(x+=this._zTime=-1e-8);break}}o=a}else{o=this._last;for(var F=t<0?t:i;o;){if(a=o._prev,(o._act||F<=o._end)&&o._ts&&c!==o){if(o.parent!==this)return this.render(t,e,r);if(o.render(o._ts>0?(F-o._start)*o._ts:(o._dirty?o.totalDuration():o._tDur)+(F-o._start)*o._ts,e,r||n&&(o._initted||o._startAt)),i!==this._time||!this._ts&&!p){c=0,a&&(x+=this._zTime=F?-1e-8:y);break}}o=a}}if(c&&!e&&(this.pause(),c.render(i>=m?0:-1e-8)._zTime=i>=m?1:-1,this._ts))return this._start=d,kt(this),this.render(t,e,r);this._onUpdate&&!e&&le(this,"onUpdate",!0),(x===D&&this._tTime>=this.totalDuration()||!x&&m)&&(d!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!v)&&(x===D&&this._ts>0||!x&&this._ts<0)&&Tt(this,1),e||t<0&&!m||!x&&!m&&D||(le(this,x===D&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(x<D&&this.timeScale()>0)&&this._prom())))}return this},o.add=function(t,e){var r=this;if(M(e)||(e=Vt(this,e,t)),!(t instanceof Le)){if(L(t))return t.forEach((function(t){return r.add(t,e)})),this;if(T(t))return this.addLabel(t,e);if(!S(t))return this;t=Ue.delayedCall(0,t)}return this!==t?Nt(this,t,e):this},o.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-v);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof Ue?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},o.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},o.remove=function(t){return T(t)?this.removeLabel(t):S(t)?this.killTweensOf(t):(Et(this,t),t===this._recent&&(this._recent=this._last),St(this))},o.totalTime=function(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=dt(be.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),r.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},o.addLabel=function(t,e){return this.labels[t]=Vt(this,e),this},o.removeLabel=function(t){return delete this.labels[t],this},o.addPause=function(t,e,r){var n=Ue.delayedCall(0,e||Q,r);return n.data="isPause",this._hasPause=1,Nt(this,n,Vt(this,t))},o.removePause=function(t){var e=this._first;for(t=Vt(this,t);e;)e._start===t&&"isPause"===e.data&&Tt(e),e=e._next},o.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)Ie!==n[i]&&n[i].kill(t,e);return this},o.getTweensOf=function(t,e){for(var r,n=[],i=Jt(t),s=this._first,o=M(e);s;)s instanceof Ue?gt(s._targets,i)&&(o?(!Ie||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(r=s.getTweensOf(i,e)).length&&n.push.apply(n,r),s=s._next;return n},o.tweenTo=function(t,e){e=e||{};var r,n=this,i=Vt(n,t),s=e,o=s.startAt,a=s.onStart,u=s.onStartParams,l=s.immediateRender,p=Ue.to(n,yt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||y,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());p._dur!==t&&Yt(p,t,0,1).render(p._time,!0,!0),r=1}a&&a.apply(p,u||[])}},e));return l?p.render(0):p},o.tweenFromTo=function(t,e,r){return this.tweenTo(e,yt({startAt:{time:Vt(this,t)}},r))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),ue(this,Vt(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),ue(this,Vt(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+y)},o.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return St(this)},o.invalidate=function(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return r.prototype.invalidate.call(this,t)},o.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),St(this)},o.totalDuration=function(t){var e,r,n,i=0,o=this,a=o._last,u=v;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){for(n=o.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>u&&o._sort&&a._ts&&!o._lock?(o._lock=1,Nt(o,a,r-a._delay,1)._lock=0):u=r,r<0&&a._ts&&(i-=r,(!n&&!o._dp||n&&n.smoothChildTiming)&&(o._start+=r/o._ts,o._time-=r,o._tTime-=r),o.shiftChildren(-r,!1,-1/0),u=0),a._end>i&&a._ts&&(i=a._end),a=e;Yt(o,o===s&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},i.updateRoot=function(t){if(s._ts&&(mt(s,Pt(t,s)),p=be.frame),be.frame>=st){st+=m.autoSleep||120;var e=s._first;if((!e||!e._ts)&&m.autoSleep&&be._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||be.sleep()}}},i}(Le);yt(Ne.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ie,ze,Xe=function(t,e,r,n,i,s,o){var a,u,l,p,c,h,d,f,g=new ur(this._pt,t,e,0,1,rr,null,i),_=0,m=0;for(g.b=r,g.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=oe(n)),s&&(s(f=[r,n],t,e),r=f[0],n=f[1]),u=r.match(X)||[];a=X.exec(n);)p=a[0],c=n.substring(_,a.index),l?l=(l+1)%5:"rgba("===c.substr(-5)&&(l=1),p!==u[m++]&&(h=parseFloat(u[m-1])||0,g._pt={_next:g._pt,p:c||1===m?c:",",s:h,c:"="===p.charAt(1)?ft(h,p)-h:parseFloat(p)-h,m:l&&l<4?Math.round:0},_=X.lastIndex);return g.c=_<n.length?n.substring(_,n.length):"",g.fp=o,(j.test(n)||d)&&(g.e=0),this._pt=g,g},je=function(t,e,r,n,i,s,o,a,u,l){S(n)&&(n=n(i||0,t,s));var p,c=t[e],h="get"!==r?r:S(c)?u?t[e.indexOf("set")||!S(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():c,d=S(c)?u?Ze:Qe:We;if(T(n)&&(~n.indexOf("random(")&&(n=oe(n)),"="===n.charAt(1)&&((p=ft(h,n)+(Wt(h)||0))||0===p)&&(n=p)),!l||h!==n||ze)return isNaN(h*n)||""===n?(!c&&!(e in t)&&$(e,n),Xe.call(this,t,e,h,n,d,a||m.stringFilter,u)):(p=new ur(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof c?er:tr,0,d),u&&(p.fp=u),o&&p.modifier(o,this,t),this._pt=p)},Ye=function(t,e,r,n,i,s){var o,a,u,l;if(nt[t]&&!1!==(o=new nt[t]).init(i,o.rawVars?e[t]:function(t,e,r,n,i){if(S(t)&&(t=Ve(t,i,e,r,n)),!R(t)||t.style&&t.nodeType||L(t)||B(t))return T(t)?Ve(t,i,e,r,n):t;var s,o={};for(s in t)o[s]=Ve(t[s],i,e,r,n);return o}(e[t],n,i,s,r),r,n,s)&&(r._pt=a=new ur(r._pt,i,t,0,1,o.render,o,0,o.priority),r!==c))for(u=r._ptLookup[r._targets.indexOf(i)],l=o._props.length;l--;)u[o._props[l]]=a;return o},qe=function t(e,i,o){var a,u,l,p,c,h,d,f,g,_,m,x,b,w=e.vars,C=w.ease,F=w.startAt,E=w.immediateRender,T=w.lazy,S=w.onUpdate,M=w.runBackwards,A=w.yoyoEase,R=w.keyframes,P=w.autoRevert,k=e._dur,B=e._startAt,L=e._targets,N=e.parent,I=N&&"nested"===N.data?N.vars.targets:L,z="auto"===e._overwrite&&!r,X=e.timeline;if(X&&(!R||!C)&&(C="none"),e._ease=Ae(C,D.ease),e._yEase=A?Se(Ae(!0===A?C:A,D.ease)):0,A&&e._yoyo&&!e._repeat&&(A=e._yEase,e._yEase=e._ease,e._ease=A),e._from=!X&&!!w.runBackwards,!X||R&&!w.stagger){if(x=(f=L[0]?lt(L[0]).harness:0)&&w[f.prop],a=wt(w,tt),B&&(B._zTime<0&&B.progress(1),i<0&&M&&E&&!P?B.render(-1,!0):B.revert(M&&k?J:Z),B._lazy=0),F){if(Tt(e._startAt=Ue.set(L,yt({data:"isStart",overwrite:!1,parent:N,immediateRender:!0,lazy:!B&&O(T),startAt:null,delay:0,onUpdate:S&&function(){return le(e,"onUpdate")},stagger:0},F))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(n||!E&&!P)&&e._startAt.revert(J),E&&k&&i<=0&&o<=0)return void(i&&(e._zTime=i))}else if(M&&k&&!B)if(i&&(E=!1),l=yt({overwrite:!1,data:"isFromStart",lazy:E&&!B&&O(T),immediateRender:E,stagger:0,parent:N},a),x&&(l[f.prop]=x),Tt(e._startAt=Ue.set(L,l)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(n?e._startAt.revert(J):e._startAt.render(-1,!0)),e._zTime=i,E){if(!i)return}else t(e._startAt,y,y);for(e._pt=e._ptCache=0,T=k&&O(T)||T&&!k,u=0;u<L.length;u++){if(d=(c=L[u])._gsap||ut(L)[u]._gsap,e._ptLookup[u]=_={},rt[d.id]&&et.length&&_t(),m=I===L?u:I.indexOf(c),f&&!1!==(g=new f).init(c,x||a,e,m,I)&&(e._pt=p=new ur(e._pt,c,g.name,0,1,g.render,g,0,g.priority),g._props.forEach((function(t){_[t]=p})),g.priority&&(h=1)),!f||x)for(l in a)nt[l]&&(g=Ye(l,a,e,m,c,I))?g.priority&&(h=1):_[l]=p=je.call(e,c,l,"get",a[l],m,I,0,w.stringFilter);e._op&&e._op[u]&&e.kill(c,e._op[u]),z&&e._pt&&(Ie=e,s.killTweensOf(c,_,e.globalTime(i)),b=!e.parent,Ie=0),e._pt&&T&&(rt[d.id]=1)}h&&ar(e),e._onInit&&e._onInit(e)}e._onUpdate=S,e._initted=(!e._op||e._pt)&&!b,R&&i<=0&&X.render(v,!0,!0)},Ge=function(t,e,r,n){var i,s,o=e.ease||n||"power1.inOut";if(L(e))s=r[t]||(r[t]=[]),e.forEach((function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:o})}));else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:o})},Ve=function(t,e,r,n,i){return S(t)?t.call(e,r,n,i):T(t)&&~t.indexOf("random(")?oe(t):t},He=at+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",$e={};ct(He+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return $e[t]=1}));var Ue=function(i){function o(e,n,o,a){var u;"number"==typeof n&&(o.duration=n,n=o,o=null);var l,p,c,h,d,f,g,_,D=(u=i.call(this,a?n:Ct(n))||this).vars,v=D.duration,y=D.delay,x=D.immediateRender,b=D.stagger,w=D.overwrite,C=D.keyframes,F=D.defaults,E=D.scrollTrigger,T=D.yoyoEase,S=n.parent||s,A=(L(e)||B(e)?M(e[0]):"length"in n)?[e]:Jt(e);if(u._targets=A.length?ut(A):U("GSAP target "+e+" not found. https://gsap.com",!m.nullTargetWarn)||[],u._ptLookup=[],u._overwrite=w,C||b||k(v)||k(y)){if(n=u.vars,(l=u.timeline=new Ne({data:"nested",defaults:F||{},targets:S&&"nested"===S.data?S.vars.targets:A})).kill(),l.parent=l._dp=t(u),l._start=0,b||k(v)||k(y)){if(h=A.length,g=b&&ee(b),R(b))for(d in b)~He.indexOf(d)&&(_||(_={}),_[d]=b[d]);for(p=0;p<h;p++)(c=wt(n,$e)).stagger=0,T&&(c.yoyoEase=T),_&&xt(c,_),f=A[p],c.duration=+Ve(v,t(u),p,f,A),c.delay=(+Ve(y,t(u),p,f,A)||0)-u._delay,!b&&1===h&&c.delay&&(u._delay=y=c.delay,u._start+=y,c.delay=0),l.to(f,c,g?g(p,f,A):0),l._ease=Ce.none;l.duration()?v=y=0:u.timeline=0}else if(C){Ct(yt(l.vars.defaults,{ease:"none"})),l._ease=Ae(C.ease||n.ease||"none");var P,N,I,z=0;if(L(C))C.forEach((function(t){return l.to(A,t,">")})),l.duration();else{for(d in c={},C)"ease"===d||"easeEach"===d||Ge(d,C[d],c,C.easeEach);for(d in c)for(P=c[d].sort((function(t,e){return t.t-e.t})),z=0,p=0;p<P.length;p++)(I={ease:(N=P[p]).e,duration:(N.t-(p?P[p-1].t:0))/100*v})[d]=N.v,l.to(A,I,z),z+=I.duration;l.duration()<v&&l.to({},{duration:v-l.duration()})}}v||u.duration(v=l.duration())}else u.timeline=0;return!0!==w||r||(Ie=t(u),s.killTweensOf(A),Ie=0),Nt(S,t(u),o),n.reversed&&u.reverse(),n.paused&&u.paused(!0),(x||!v&&!C&&u._start===dt(S._time)&&O(x)&&At(t(u))&&"nested"!==S.data)&&(u._tTime=-1e-8,u.render(Math.max(0,-y)||0)),E&&It(t(u),E),u}e(o,i);var a=o.prototype;return a.render=function(t,e,r){var i,s,o,a,u,l,p,c,h,d=this._time,f=this._tDur,g=this._dur,_=t<0,m=t>f-y&&!_?f:t<y?0:t;if(g){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==_){if(i=m,c=this.timeline,this._repeat){if(a=g+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*a+t,e,r);if(i=dt(m%a),m===f?(o=this._repeat,i=g):((o=~~(m/a))&&o===dt(m/a)&&(i=g,o--),i>g&&(i=g)),(l=this._yoyo&&1&o)&&(h=this._yEase,i=g-i),u=Ot(this._tTime,a),i===d&&!r&&this._initted&&o===u)return this._tTime=m,this;o!==u&&(c&&this._yEase&&Me(c,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==a&&this._initted&&(this._lock=r=1,this.render(dt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(zt(this,_?t:i,r,e,m))return this._tTime=0,this;if(!(d===this._time||r&&this.vars.repeatRefresh&&o!==u))return this;if(g!==this._dur)return this.render(t,e,r)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=p=(h||this._ease)(i/g),this._from&&(this.ratio=p=1-p),i&&!d&&!e&&!o&&(le(this,"onStart"),this._tTime!==m))return this;for(s=this._pt;s;)s.r(p,s.d),s=s._next;c&&c.render(t<0?t:c._dur*c._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Mt(this,t,0,r),le(this,"onUpdate")),this._repeat&&o!==u&&this.vars.onRepeat&&!e&&this.parent&&le(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(_&&!this._onUpdate&&Mt(this,t,0,!0),(t||!g)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Tt(this,1),e||_&&!d||!(m||d||l)||(le(this,m===f?"onComplete":"onReverseComplete",!0),this._prom&&!(m<f&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,i){var s,o,a,u=t.ratio,l=e<0||!e&&(!t._start&&Xt(t)&&(t._initted||!jt(t))||(t._ts<0||t._dp._ts<0)&&!jt(t))?0:1,p=t._rDelay,c=0;if(p&&t._repeat&&(c=Ut(0,t._tDur,e),o=Ot(c,p),t._yoyo&&1&o&&(l=1-l),o!==Ot(t._tTime,p)&&(u=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==u||n||i||t._zTime===y||!e&&t._zTime){if(!t._initted&&zt(t,e,i,r,c))return;for(a=t._zTime,t._zTime=e||(r?y:0),r||(r=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,s=t._pt;s;)s.r(l,s.d),s=s._next;e<0&&Mt(t,e,0,!0),t._onUpdate&&!r&&le(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&le(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Tt(t,1),r||n||(le(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},a.targets=function(){return this._targets},a.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),i.prototype.invalidate.call(this,t)},a.resetTo=function(t,e,r,n,i){h||be.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||qe(this,s),function(t,e,r,n,i,s,o,a){var u,l,p,c,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],p=t._ptLookup,c=t._targets.length;c--;){if((u=p[c][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return ze=1,t.vars[e]="+=0",qe(t,o),ze=0,a?U(e+" not eligible for reset"):1;h.push(u)}for(c=h.length;c--;)(u=(l=h[c])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,l.e&&(l.e=ht(r)+Wt(l.e)),l.b&&(l.b=u.s+Wt(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(Bt(this,0),this.parent||Ft(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?pe(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ie&&!0!==Ie.vars.overwrite)._first||pe(this),this.parent&&r!==this.timeline.totalDuration()&&Yt(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,o,a,u,l,p=this._targets,c=t?Jt(t):p,h=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(p,c))return"all"===e&&(this._pt=0),pe(this);for(n=this._op=this._op||[],"all"!==e&&(T(e)&&(a={},ct(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var r,n,i,s,o=t[0]?lt(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in r=xt({},e),a)if(n in r)for(i=(s=a[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(p,e)),l=p.length;l--;)if(~c.indexOf(p[l]))for(a in i=h[l],"all"===e?(n[l]=e,o=i,s={}):(s=n[l]=n[l]||{},o=e),o)(u=i&&i[a])&&("kill"in u.d&&!0!==u.d.kill(a)||Et(this,u,"_pt"),delete i[a]),"all"!==s&&(s[a]=1);return this._initted&&!this._pt&&d&&pe(this),this},o.to=function(t,e){return new o(t,e,arguments[2])},o.from=function(t,e){return Ht(1,arguments)},o.delayedCall=function(t,e,r,n){return new o(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},o.fromTo=function(t,e,r){return Ht(2,arguments)},o.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new o(t,e)},o.killTweensOf=function(t,e,r){return s.killTweensOf(t,e,r)},o}(Le);yt(Ue.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ct("staggerTo,staggerFrom,staggerFromTo",(function(t){Ue[t]=function(){var e=new Ne,r=Qt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var We=function(t,e,r){return t[e]=r},Qe=function(t,e,r){return t[e](r)},Ze=function(t,e,r,n){return t[e](n.fp,r)},Je=function(t,e,r){return t.setAttribute(e,r)},Ke=function(t,e){return S(t[e])?Qe:A(t[e])&&t.setAttribute?Je:We},tr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},er=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},rr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},nr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},ir=function(t,e,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(t,e,r),s=i},sr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Et(this,n,"_pt"):n.dep||(e=1),n=r;return!e},or=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},ar=function(t){for(var e,r,n,i,s=t._pt;s;){for(e=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:i)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:i=s,s=e}t._pt=n},ur=function(){function t(t,e,r,n,i,s,o,a,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||tr,this.d=o||this,this.set=a||We,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=or,this.m=t,this.mt=r,this.tween=e},t}();ct(at+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return tt[t]=1})),G.TweenMax=G.TweenLite=Ue,G.TimelineLite=G.TimelineMax=Ne,s=new Ne({sortChildren:!1,defaults:D,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),m.stringFilter=xe;var lr=[],pr={},cr=[],hr=0,dr=0,fr=function(t){return(pr[t]||cr).map((function(t){return t()}))},gr=function(){var t=Date.now(),e=[];t-hr>2&&(fr("matchMediaInit"),lr.forEach((function(t){var r,n,i,s,a=t.queries,u=t.conditions;for(n in a)(r=o.matchMedia(a[n]).matches)&&(i=1),r!==u[n]&&(u[n]=r,s=1);s&&(t.revert(),i&&e.push(t))})),fr("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),hr=t,fr("matchMedia"))},_r=function(){function t(t,e){this.selector=e&&Kt(e),this.data=[],this._r=[],this.isReverted=!1,this.id=dr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){S(t)&&(r=e,e=t,t=S);var n=this,s=function(){var t,s=i,o=n.selector;return s&&s!==n&&s.data.push(n),r&&(n.selector=Kt(r)),i=n,t=e.apply(n,arguments),S(t)&&n._r.push(t),i=s,n.selector=o,n.isReverted=!1,t};return n.last=s,t===S?s(n,(function(t){return n.add(null,t)})):t?n[t]=s:s},e.ignore=function(t){var e=i;i=null,t(this),i=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof Ue&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return n.splice(n.indexOf(t),1)})));for(n.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=r.data.length;i--;)(e=r.data[i])instanceof Ne?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Ue)&&e.revert&&e.revert(t);r._r.forEach((function(e){return e(t,r)})),r.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var n=lr.length;n--;)lr[n].id===this.id&&lr.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),mr=function(){function t(t){this.contexts=[],this.scope=t,i&&i.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){R(t)||(t={matches:t});var n,s,a,u=new _r(0,r||this.scope),l=u.conditions={};for(s in i&&!u.selector&&(u.selector=i.selector),this.contexts.push(u),e=u.add("onMatch",e),u.queries=t,t)"all"===s?a=1:(n=o.matchMedia(t[s]))&&(lr.indexOf(u)<0&&lr.push(u),(l[s]=n.matches)&&(a=1),n.addListener?n.addListener(gr):n.addEventListener("change",gr));return a&&e(u,(function(t){return u.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Dr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach((function(t){return he(t)}))},timeline:function(t){return new Ne(t)},getTweensOf:function(t,e){return s.getTweensOf(t,e)},getProperty:function(t,e,r,n){T(t)&&(t=Jt(t)[0]);var i=lt(t||{}).get,s=r?vt:Dt;return"native"===r&&(r=""),t?e?s((nt[e]&&nt[e].get||i)(t,e,r,n)):function(e,r,n){return s((nt[e]&&nt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=Jt(t)).length>1){var n=t.map((function(t){return xr.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=nt[e],o=lt(t),a=o.harness&&(o.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;c._pt=0,n.init(t,r?e+r:e,c,0,[t]),n.render(1,n),c._pt&&nr(1,c)}:o.set(t,a);return s?u:function(e){return u(t,a,r?e+r:e,o,1)}},quickTo:function(t,e,r){var n,i=xr.to(t,xt(((n={})[e]="+=0.1",n.paused=!0,n),r||{})),s=function(t,r,n){return i.resetTo(e,t,r,n)};return s.tween=i,s},isTweening:function(t){return s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ae(t.ease,D.ease)),bt(D,t||{})},config:function(t){return bt(m,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!nt[t]&&!G[t]&&U(e+" effect requires "+t+" plugin.")})),it[e]=function(t,e,n){return r(Jt(t),yt(e||{},i),n)},s&&(Ne.prototype[e]=function(t,r,n){return this.add(it[e](t,R(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Ce[t]=Ae(e)},parseEase:function(t,e){return arguments.length?Ae(t,e):Ce},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new Ne(t);for(i.smoothChildTiming=O(t.smoothChildTiming),s.remove(i),i._dp=0,i._time=i._tTime=s._time,r=s._first;r;)n=r._next,!e&&!r._dur&&r instanceof Ue&&r.vars.onComplete===r._targets[0]||Nt(i,r,r._start-r._delay),r=n;return Nt(s,i,0),i},context:function(t,e){return t?new _r(t,e):i},matchMedia:function(t){return new mr(t)},matchMediaRefresh:function(){return lr.forEach((function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()}))||gr()},addEventListener:function(t,e){var r=pr[t]||(pr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=pr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return L(e)?se(e,t(0,e.length),r):$t(n,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return L(e)?se(e,t(0,e.length-1),r):$t(n,(function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)}))},distribute:ee,random:ie,snap:ne,normalize:function(t,e,r){return ae(t,e,0,1,r)},getUnit:Wt,clamp:function(t,e,r){return $t(r,(function(r){return Ut(t,e,r)}))},splitColor:_e,toArray:Jt,selector:Kt,mapRange:ae,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||Wt(r))}},interpolate:function t(e,r,n,i){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var o,a,u,l,p,c=T(e),h={};if(!0===n&&(i=1)&&(n=null),c)e={p:e},r={p:r};else if(L(e)&&!L(r)){for(u=[],l=e.length,p=l-2,a=1;a<l;a++)u.push(t(e[a-1],e[a]));l--,s=function(t){t*=l;var e=Math.min(p,~~t);return u[e](t-e)},n=r}else i||(e=xt(L(e)?[]:{},e));if(!u){for(o in r)je.call(h,e,o,"get",r[o]);s=function(t){return nr(t,h)||(c?e.p:e)}}}return $t(n,s)},shuffle:te},install:H,effects:it,ticker:be,updateRoot:Ne.updateRoot,plugins:nt,globalTimeline:s,core:{PropTween:ur,globals:W,Tween:Ue,Timeline:Ne,Animation:Le,getCache:lt,_removeLinkedListItem:Et,reverting:function(){return n},context:function(t){return t&&i&&(i.data.push(t),t._ctx=i),i},suppressOverwrites:function(t){return r=t}}};ct("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Dr[t]=Ue[t]})),be.add(Ne.updateRoot),c=Dr.to({},{duration:0});var vr=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},yr=function(t,e){return{name:t,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(T(r)&&(n={},ct(r,(function(t){return n[t]=1})),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=vr(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},xr=Dr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,o,a;for(s in this.tween=r,e)a=t.getAttribute(s)||"",(o=this.add(t,"setAttribute",(a||0)+"",e[s],n,i,0,0,s)).op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)n?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},yr("roundProps",re),yr("modifiers"),yr("snap",ne))||Dr;Ue.version=Ne.version=xr.version="3.12.5",l=1,P()&&we(),Ce.Power0,Ce.Power1,Ce.Power2,Ce.Power3,Ce.Power4,Ce.Linear,Ce.Quad,Ce.Cubic,Ce.Quart,Ce.Quint,Ce.Strong,Ce.Elastic,Ce.Back,Ce.SteppedEase,Ce.Bounce,Ce.Sine,Ce.Expo,Ce.Circ;var br,wr,Cr,Fr,Er,Tr,Sr,Mr,Ar={},Rr=180/Math.PI,Or=Math.PI/180,Pr=Math.atan2,kr=/([A-Z])/g,Br=/(left|right|width|margin|padding|x)/i,Lr=/[\s,\(]\S/,Nr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ir=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},zr=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Xr=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},jr=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},Yr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},qr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Gr=function(t,e,r){return t.style[e]=r},Vr=function(t,e,r){return t.style.setProperty(e,r)},Hr=function(t,e,r){return t._gsap[e]=r},$r=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Ur=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},Wr=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},Qr="transform",Zr=Qr+"Origin",Jr=function t(e,r){var n=this,i=this.target,s=i.style,o=i._gsap;if(e in Ar&&s){if(this.tfm=this.tfm||{},"transform"===e)return Nr.transform.split(",").forEach((function(e){return t.call(n,e,r)}));if(~(e=Nr[e]||e).indexOf(",")?e.split(",").forEach((function(t){return n.tfm[t]=mn(i,t)})):this.tfm[e]=o.x?o[e]:mn(i,e),e===Zr&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(Qr)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Zr,r,"")),e=Qr}(s||r)&&this.props.push(e,r,s[e])},Kr=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},tn=function(){var t,e,r=this.props,n=this.target,i=n.style,s=n._gsap;for(t=0;t<r.length;t+=3)r[t+1]?n[r[t]]=r[t+2]:r[t+2]?i[r[t]]=r[t+2]:i.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(kr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=Sr())&&t.isStart||i[Qr]||(Kr(i),s.zOrigin&&i[Zr]&&(i[Zr]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},en=function(t,e){var r={target:t,props:[],revert:tn,save:Jr};return t._gsap||xr.core.getCache(t),e&&e.split(",").forEach((function(t){return r.save(t)})),r},rn=function(t,e){var r=wr.createElementNS?wr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):wr.createElement(t);return r&&r.style?r:wr.createElement(t)},nn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(kr,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,on(r)||r,1)||""},sn="O,Moz,ms,Ms,Webkit".split(","),on=function(t,e,r){var n=(e||Er).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(sn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?sn[i]:"")+t},an=function(){"undefined"!=typeof window&&window.document&&(br=window,wr=br.document,Cr=wr.documentElement,Er=rn("div")||{style:{}},rn("div"),Qr=on(Qr),Zr=Qr+"Origin",Er.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Mr=!!on("perspective"),Sr=xr.core.reverting,Fr=1)},un=function t(e){var r,n=rn("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,s=this.nextSibling,o=this.style.cssText;if(Cr.appendChild(n),n.appendChild(this),this.style.display="block",e)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(r=this._gsapBBox());return i&&(s?i.insertBefore(this,s):i.appendChild(this)),Cr.removeChild(n),this.style.cssText=o,r},ln=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},pn=function(t){var e;try{e=t.getBBox()}catch(r){e=un.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===un||(e=un.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+ln(t,["x","cx","x1"])||0,y:+ln(t,["y","cy","y1"])||0,width:0,height:0}},cn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!pn(t))},hn=function(t,e){if(e){var r,n=t.style;e in Ar&&e!==Zr&&(e=Qr),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(kr,"-$1").toLowerCase())):n.removeAttribute(e)}},dn=function(t,e,r,n,i,s){var o=new ur(t._pt,e,r,0,1,s?qr:Yr);return t._pt=o,o.b=n,o.e=i,t._props.push(r),o},fn={deg:1,rad:1,turn:1},gn={grid:1,flex:1},_n=function t(e,r,n,i){var s,o,a,u,l=parseFloat(n)||0,p=(n+"").trim().substr((l+"").length)||"px",c=Er.style,h=Br.test(r),d="svg"===e.tagName.toLowerCase(),f=(d?"client":"offset")+(h?"Width":"Height"),g=100,_="px"===i,m="%"===i;if(i===p||!l||fn[i]||fn[p])return l;if("px"!==p&&!_&&(l=t(e,r,n,"px")),u=e.getCTM&&cn(e),(m||"%"===p)&&(Ar[r]||~r.indexOf("adius")))return s=u?e.getBBox()[h?"width":"height"]:e[f],ht(m?l/s*g:l/100*s);if(c[h?"width":"height"]=g+(_?p:i),o=~r.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==wr&&o.appendChild||(o=wr.body),(a=o._gsap)&&m&&a.width&&h&&a.time===be.time&&!a.uncache)return ht(l/a.width*g);if(!m||"height"!==r&&"width"!==r)(m||"%"===p)&&!gn[nn(o,"display")]&&(c.position=nn(e,"position")),o===e&&(c.position="static"),o.appendChild(Er),s=Er[f],o.removeChild(Er),c.position="absolute";else{var D=e.style[r];e.style[r]=g+i,s=e[f],D?e.style[r]=D:hn(e,r)}return h&&m&&((a=lt(o)).time=be.time,a.width=o[f]),ht(_?s*l/g:s&&l?g/s*l:0)},mn=function(t,e,r,n){var i;return Fr||an(),e in Nr&&"transform"!==e&&~(e=Nr[e]).indexOf(",")&&(e=e.split(",")[0]),Ar[e]&&"transform"!==e?(i=Sn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Mn(nn(t,Zr))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=xn[e]&&xn[e](t,e,r)||nn(t,e)||pt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?_n(t,e,i,r)+r:i},Dn=function(t,e,r,n){if(!r||"none"===r){var i=on(e,t,1),s=i&&nn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=nn(t,"borderTopColor"))}var o,a,u,l,p,c,h,d,f,g,_,D=new ur(this._pt,t.style,e,0,1,rr),v=0,y=0;if(D.b=r,D.e=n,r+="","auto"==(n+="")&&(c=t.style[e],t.style[e]=n,n=nn(t,e)||n,c?t.style[e]=c:hn(t,e)),xe(o=[r,n]),n=o[1],u=(r=o[0]).match(z)||[],(n.match(z)||[]).length){for(;a=z.exec(n);)h=a[0],f=n.substring(v,a.index),p?p=(p+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(p=1),h!==(c=u[y++]||"")&&(l=parseFloat(c)||0,_=c.substr((l+"").length),"="===h.charAt(1)&&(h=ft(l,h)+_),d=parseFloat(h),g=h.substr((d+"").length),v=z.lastIndex-g.length,g||(g=g||m.units[e]||_,v===n.length&&(n+=g,D.e+=g)),_!==g&&(l=_n(t,e,c,g)||0),D._pt={_next:D._pt,p:f||1===y?f:",",s:l,c:d-l,m:p&&p<4||"zIndex"===e?Math.round:0});D.c=v<n.length?n.substring(v,n.length):""}else D.r="display"===e&&"none"===n?qr:Yr;return j.test(n)&&(D.e=0),this._pt=D,D},vn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},yn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,o=s.style,a=e.u,u=s._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(i=(a=a.split(",")).length;--i>-1;)r=a[i],Ar[r]&&(n=1,r="transformOrigin"===r?Zr:Qr),hn(s,r);n&&(hn(s,Qr),u&&(u.svg&&s.removeAttribute("transform"),Sn(s,1),u.uncache=1,Kr(o)))}},xn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new ur(t._pt,e,r,0,0,yn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},bn=[1,0,0,1,0,0],wn={},Cn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Fn=function(t){var e=nn(t,Qr);return Cn(e)?bn:e.substr(7).match(I).map(ht)},En=function(t,e){var r,n,i,s,o=t._gsap||lt(t),a=t.style,u=Fn(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?bn:u:(u!==bn||t.offsetParent||t===Cr||o.svg||(i=a.display,a.display="block",(r=t.parentNode)&&t.offsetParent||(s=1,n=t.nextElementSibling,Cr.appendChild(t)),u=Fn(t),i?a.display=i:hn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Cr.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Tn=function(t,e,r,n,i,s){var o,a,u,l=t._gsap,p=i||En(t,!0),c=l.xOrigin||0,h=l.yOrigin||0,d=l.xOffset||0,f=l.yOffset||0,g=p[0],_=p[1],m=p[2],D=p[3],v=p[4],y=p[5],x=e.split(" "),b=parseFloat(x[0])||0,w=parseFloat(x[1])||0;r?p!==bn&&(a=g*D-_*m)&&(u=b*(-_/a)+w*(g/a)-(g*y-_*v)/a,b=b*(D/a)+w*(-m/a)+(m*y-D*v)/a,w=u):(b=(o=pn(t)).x+(~x[0].indexOf("%")?b/100*o.width:b),w=o.y+(~(x[1]||x[0]).indexOf("%")?w/100*o.height:w)),n||!1!==n&&l.smooth?(v=b-c,y=w-h,l.xOffset=d+(v*g+y*m)-v,l.yOffset=f+(v*_+y*D)-y):l.xOffset=l.yOffset=0,l.xOrigin=b,l.yOrigin=w,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[Zr]="0px 0px",s&&(dn(s,l,"xOrigin",c,b),dn(s,l,"yOrigin",h,w),dn(s,l,"xOffset",d,l.xOffset),dn(s,l,"yOffset",f,l.yOffset)),t.setAttribute("data-svg-origin",b+" "+w)},Sn=function(t,e){var r=t._gsap||new Be(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,o,a,u,l,p,c,h,d,f,g,_,D,v,y,x,b,w,C,F,E,T,S,M,A,R,O,P,k,B,L=t.style,N=r.scaleX<0,I="px",z="deg",X=getComputedStyle(t),j=nn(t,Zr)||"0";return n=i=s=u=l=p=c=h=d=0,o=a=1,r.svg=!(!t.getCTM||!cn(t)),X.translate&&("none"===X.translate&&"none"===X.scale&&"none"===X.rotate||(L[Qr]=("none"!==X.translate?"translate3d("+(X.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==X.rotate?"rotate("+X.rotate+") ":"")+("none"!==X.scale?"scale("+X.scale.split(" ").join(",")+") ":"")+("none"!==X[Qr]?X[Qr]:"")),L.scale=L.rotate=L.translate="none"),_=En(t,r.svg),r.svg&&(r.uncache?(S=t.getBBox(),j=r.xOrigin-S.x+"px "+(r.yOrigin-S.y)+"px",T=""):T=!e&&t.getAttribute("data-svg-origin"),Tn(t,T||j,!!T||r.originIsAbsolute,!1!==r.smooth,_)),f=r.xOrigin||0,g=r.yOrigin||0,_!==bn&&(x=_[0],b=_[1],w=_[2],C=_[3],n=F=_[4],i=E=_[5],6===_.length?(o=Math.sqrt(x*x+b*b),a=Math.sqrt(C*C+w*w),u=x||b?Pr(b,x)*Rr:0,(c=w||C?Pr(w,C)*Rr+u:0)&&(a*=Math.abs(Math.cos(c*Or))),r.svg&&(n-=f-(f*x+g*w),i-=g-(f*b+g*C))):(B=_[6],P=_[7],A=_[8],R=_[9],O=_[10],k=_[11],n=_[12],i=_[13],s=_[14],l=(D=Pr(B,O))*Rr,D&&(T=F*(v=Math.cos(-D))+A*(y=Math.sin(-D)),S=E*v+R*y,M=B*v+O*y,A=F*-y+A*v,R=E*-y+R*v,O=B*-y+O*v,k=P*-y+k*v,F=T,E=S,B=M),p=(D=Pr(-w,O))*Rr,D&&(v=Math.cos(-D),k=C*(y=Math.sin(-D))+k*v,x=T=x*v-A*y,b=S=b*v-R*y,w=M=w*v-O*y),u=(D=Pr(b,x))*Rr,D&&(T=x*(v=Math.cos(D))+b*(y=Math.sin(D)),S=F*v+E*y,b=b*v-x*y,E=E*v-F*y,x=T,F=S),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,p=180-p),o=ht(Math.sqrt(x*x+b*b+w*w)),a=ht(Math.sqrt(E*E+B*B)),D=Pr(F,E),c=Math.abs(D)>2e-4?D*Rr:0,d=k?1/(k<0?-k:k):0),r.svg&&(T=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Cn(nn(t,Qr)),T&&t.setAttribute("transform",T))),Math.abs(c)>90&&Math.abs(c)<270&&(N?(o*=-1,c+=u<=0?180:-180,u+=u<=0?180:-180):(a*=-1,c+=c<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+I,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+I,r.z=s+I,r.scaleX=ht(o),r.scaleY=ht(a),r.rotation=ht(u)+z,r.rotationX=ht(l)+z,r.rotationY=ht(p)+z,r.skewX=c+z,r.skewY=h+z,r.transformPerspective=d+I,(r.zOrigin=parseFloat(j.split(" ")[2])||!e&&r.zOrigin||0)&&(L[Zr]=Mn(j)),r.xOffset=r.yOffset=0,r.force3D=m.force3D,r.renderTransform=r.svg?Ln:Mr?Bn:Rn,r.uncache=0,r},Mn=function(t){return(t=t.split(" "))[0]+" "+t[1]},An=function(t,e,r){var n=Wt(e);return ht(parseFloat(e)+parseFloat(_n(t,"x",r+"px",n)))+n},Rn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Bn(t,e)},On="0deg",Pn="0px",kn=") ",Bn=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,o=r.y,a=r.z,u=r.rotation,l=r.rotationY,p=r.rotationX,c=r.skewX,h=r.skewY,d=r.scaleX,f=r.scaleY,g=r.transformPerspective,_=r.force3D,m=r.target,D=r.zOrigin,v="",y="auto"===_&&t&&1!==t||!0===_;if(D&&(p!==On||l!==On)){var x,b=parseFloat(l)*Or,w=Math.sin(b),C=Math.cos(b);b=parseFloat(p)*Or,x=Math.cos(b),s=An(m,s,w*x*-D),o=An(m,o,-Math.sin(b)*-D),a=An(m,a,C*x*-D+D)}g!==Pn&&(v+="perspective("+g+kn),(n||i)&&(v+="translate("+n+"%, "+i+"%) "),(y||s!==Pn||o!==Pn||a!==Pn)&&(v+=a!==Pn||y?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+kn),u!==On&&(v+="rotate("+u+kn),l!==On&&(v+="rotateY("+l+kn),p!==On&&(v+="rotateX("+p+kn),c===On&&h===On||(v+="skew("+c+", "+h+kn),1===d&&1===f||(v+="scale("+d+", "+f+kn),m.style[Qr]=v||"translate(0, 0)"},Ln=function(t,e){var r,n,i,s,o,a=e||this,u=a.xPercent,l=a.yPercent,p=a.x,c=a.y,h=a.rotation,d=a.skewX,f=a.skewY,g=a.scaleX,_=a.scaleY,m=a.target,D=a.xOrigin,v=a.yOrigin,y=a.xOffset,x=a.yOffset,b=a.forceCSS,w=parseFloat(p),C=parseFloat(c);h=parseFloat(h),d=parseFloat(d),(f=parseFloat(f))&&(d+=f=parseFloat(f),h+=f),h||d?(h*=Or,d*=Or,r=Math.cos(h)*g,n=Math.sin(h)*g,i=Math.sin(h-d)*-_,s=Math.cos(h-d)*_,d&&(f*=Or,o=Math.tan(d-f),i*=o=Math.sqrt(1+o*o),s*=o,f&&(o=Math.tan(f),r*=o=Math.sqrt(1+o*o),n*=o)),r=ht(r),n=ht(n),i=ht(i),s=ht(s)):(r=g,s=_,n=i=0),(w&&!~(p+"").indexOf("px")||C&&!~(c+"").indexOf("px"))&&(w=_n(m,"x",p,"px"),C=_n(m,"y",c,"px")),(D||v||y||x)&&(w=ht(w+D-(D*r+v*i)+y),C=ht(C+v-(D*n+v*s)+x)),(u||l)&&(o=m.getBBox(),w=ht(w+u/100*o.width),C=ht(C+l/100*o.height)),o="matrix("+r+","+n+","+i+","+s+","+w+","+C+")",m.setAttribute("transform",o),b&&(m.style[Qr]=o)},Nn=function(t,e,r,n,i){var s,o,a=360,u=T(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Rr:1)-n,p=n+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=a)!=l%180&&(l+=l<0?a:-360),"cw"===s&&l<0?l=(l+36e9)%a-~~(l/a)*a:"ccw"===s&&l>0&&(l=(l-36e9)%a-~~(l/a)*a)),t._pt=o=new ur(t._pt,e,r,n,l,zr),o.e=p,o.u="deg",t._props.push(r),o},In=function(t,e){for(var r in e)t[r]=e[r];return t},zn=function(t,e,r){var n,i,s,o,a,u,l,p=In({},r._gsap),c=r.style;for(i in p.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),c[Qr]=e,n=Sn(r,1),hn(r,Qr),r.setAttribute("transform",s)):(s=getComputedStyle(r)[Qr],c[Qr]=e,n=Sn(r,1),c[Qr]=s),Ar)(s=p[i])!==(o=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=Wt(s)!==(l=Wt(o))?_n(r,i,s,l):parseFloat(s),u=parseFloat(o),t._pt=new ur(t._pt,n,i,a,u-a,Ir),t._pt.u=l||0,t._props.push(i));In(n,p)};ct("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",i="Bottom",s="Left",o=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map((function(r){return e<2?t+r:"border"+r+t}));xn[e>1?"border"+t:t]=function(t,e,r,n,i){var s,a;if(arguments.length<4)return s=o.map((function(e){return mn(t,e,r)})),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach((function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,a,i)}}));var Xn,jn,Yn={name:"css",register:an,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,o,a,u,l,p,c,h,d,f,g,_,D,v,y,x,b,w,C,F,E=this._props,S=t.style,M=r.vars.startAt;for(c in Fr||an(),this.styles=this.styles||en(t),x=this.styles.props,this.tween=r,e)if("autoRound"!==c&&(o=e[c],!nt[c]||!Ye(c,e,r,n,t,i)))if(l=typeof o,p=xn[c],"function"===l&&(l=typeof(o=o.call(r,n,t,i))),"string"===l&&~o.indexOf("random(")&&(o=oe(o)),p)p(this,t,c,o,r)&&(y=1);else if("--"===c.substr(0,2))s=(getComputedStyle(t).getPropertyValue(c)+"").trim(),o+="",ve.lastIndex=0,ve.test(s)||(h=Wt(s),d=Wt(o)),d?h!==d&&(s=_n(t,c,s,d)+d):h&&(o+=h),this.add(S,"setProperty",s,o,n,i,0,0,c),E.push(c),x.push(c,0,S[c]);else if("undefined"!==l){if(M&&c in M?(s="function"==typeof M[c]?M[c].call(r,n,t,i):M[c],T(s)&&~s.indexOf("random(")&&(s=oe(s)),Wt(s+"")||"auto"===s||(s+=m.units[c]||Wt(mn(t,c))||""),"="===(s+"").charAt(1)&&(s=mn(t,c))):s=mn(t,c),u=parseFloat(s),(f="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),c in Nr&&("autoAlpha"===c&&(1===u&&"hidden"===mn(t,"visibility")&&a&&(u=0),x.push("visibility",0,S.visibility),dn(this,S,"visibility",u?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==c&&"transform"!==c&&~(c=Nr[c]).indexOf(",")&&(c=c.split(",")[0])),g=c in Ar)if(this.styles.save(c),_||((D=t._gsap).renderTransform&&!e.parseTransform||Sn(t,e.parseTransform),v=!1!==e.smoothOrigin&&D.smooth,(_=this._pt=new ur(this._pt,S,Qr,0,1,D.renderTransform,D,0,-1)).dep=1),"scale"===c)this._pt=new ur(this._pt,D,"scaleY",D.scaleY,(f?ft(D.scaleY,f+a):a)-D.scaleY||0,Ir),this._pt.u=0,E.push("scaleY",c),c+="X";else{if("transformOrigin"===c){x.push(Zr,0,S[Zr]),w=void 0,C=void 0,F=void 0,C=(w=(b=o).split(" "))[0],F=w[1]||"50%","top"!==C&&"bottom"!==C&&"left"!==F&&"right"!==F||(b=C,C=F,F=b),w[0]=vn[C]||C,w[1]=vn[F]||F,o=w.join(" "),D.svg?Tn(t,o,0,v,0,this):((d=parseFloat(o.split(" ")[2])||0)!==D.zOrigin&&dn(this,D,"zOrigin",D.zOrigin,d),dn(this,S,c,Mn(s),Mn(o)));continue}if("svgOrigin"===c){Tn(t,o,1,v,0,this);continue}if(c in wn){Nn(this,D,c,u,f?ft(u,f+o):o);continue}if("smoothOrigin"===c){dn(this,D,"smooth",D.smooth,o);continue}if("force3D"===c){D[c]=o;continue}if("transform"===c){zn(this,o,t);continue}}else c in S||(c=on(c)||c);if(g||(a||0===a)&&(u||0===u)&&!Lr.test(o)&&c in S)a||(a=0),(h=(s+"").substr((u+"").length))!==(d=Wt(o)||(c in m.units?m.units[c]:h))&&(u=_n(t,c,s,d)),this._pt=new ur(this._pt,g?D:S,c,u,(f?ft(u,f+a):a)-u,g||"px"!==d&&"zIndex"!==c||!1===e.autoRound?Ir:jr),this._pt.u=d||0,h!==d&&"%"!==d&&(this._pt.b=s,this._pt.r=Xr);else if(c in S)Dn.call(this,t,c,s,f?f+o:o);else if(c in t)this.add(t,c,s||t[c],f?f+o:o,n,i);else if("parseTransform"!==c){$(c,o);continue}g||(c in S?x.push(c,0,S[c]):x.push(c,1,s||t[c])),E.push(c)}y&&ar(this)},render:function(t,e){if(e.tween._time||!Sr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:mn,aliases:Nr,getSetter:function(t,e,r){var n=Nr[e];return n&&n.indexOf(",")<0&&(e=n),e in Ar&&e!==Zr&&(t._gsap.x||mn(t,"x"))?r&&Tr===r?"scale"===e?$r:Hr:(Tr=r||{})&&("scale"===e?Ur:Wr):t.style&&!A(t.style[e])?Gr:~e.indexOf("-")?Vr:Ke(t,e)},core:{_removeProperty:hn,_getMatrix:En}};xr.utils.checkPrefix=on,xr.core.getStyleSaver=en,jn=ct("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Xn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Ar[t]=1})),ct(Xn,(function(t){m.units[t]="deg",wn[t]=1})),Nr[jn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Xn,ct("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Nr[e[1]]=jn[e[0]]})),ct("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){m.units[t]="px"})),xr.registerPlugin(Yn);var qn=xr.registerPlugin(Yn)||xr,Gn=qn.core.Tween,Vn=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function Hn(t){var e=t.nodeType,r="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)r+=Hn(t)}else if(3===e||4===e)return t.nodeValue;return r}
/*!
 * SplitText: 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var $n,Un,Wn,Qn,Zn,Jn,Kn=/(?:\r|\n|\t\t)/g,ti=/(?:\s\s+)/g,ei=String.fromCharCode(160),ri=function(t){$n=document,Un=window,(Qn=Qn||t||Un.gsap||console.warn("Please gsap.registerPlugin(SplitText)"))&&(Jn=Qn.utils.toArray,Zn=Qn.core.context||function(){},Wn=1)},ni=function(t){return Un.getComputedStyle(t)},ii=function(t){return"absolute"===t.position||!0===t.absolute},si=function(t,e){for(var r,n=e.length;--n>-1;)if(r=e[n],t.substr(0,r.length)===r)return r.length},oi=function(t,e){void 0===t&&(t="");var r=~t.indexOf("++"),n=1;return r&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(r?n++:"")+"'>":">")}},ai=function t(e,r,n){var i=e.nodeType;if(1===i||9===i||11===i)for(e=e.firstChild;e;e=e.nextSibling)t(e,r,n);else 3!==i&&4!==i||(e.nodeValue=e.nodeValue.split(r).join(n))},ui=function(t,e){for(var r=e.length;--r>-1;)t.push(e[r])},li=function(t,e,r){for(var n;t&&t!==e;){if(n=t._next||t.nextSibling)return n.textContent.charAt(0)===r;t=t.parentNode||t._parent}},pi=function t(e){var r,n,i=Jn(e.childNodes),s=i.length;for(r=0;r<s;r++)(n=i[r])._isSplit?t(n):r&&n.previousSibling&&3===n.previousSibling.nodeType?(n.previousSibling.nodeValue+=3===n.nodeType?n.nodeValue:n.firstChild.nodeValue,e.removeChild(n)):3!==n.nodeType&&(e.insertBefore(n.firstChild,n),e.removeChild(n))},ci=function(t,e){return parseFloat(e[t])||0},hi=function(t,e,r,n,i,s,o){var a,u,l,p,c,h,d,f,g,_,m,D,v=ni(t),y=ci("paddingLeft",v),x=-999,b=ci("borderBottomWidth",v)+ci("borderTopWidth",v),w=ci("borderLeftWidth",v)+ci("borderRightWidth",v),C=ci("paddingTop",v)+ci("paddingBottom",v),F=ci("paddingLeft",v)+ci("paddingRight",v),E=ci("fontSize",v)*(e.lineThreshold||.2),T=v.textAlign,S=[],M=[],A=[],R=e.wordDelimiter||" ",O=e.tag?e.tag:e.span?"span":"div",P=e.type||e.split||"chars,words,lines",k=i&&~P.indexOf("lines")?[]:null,B=~P.indexOf("words"),L=~P.indexOf("chars"),N=ii(e),I=e.linesClass,z=~(I||"").indexOf("++"),X=[],j="flex"===v.display,Y=t.style.display;for(z&&(I=I.split("++").join("")),j&&(t.style.display="block"),l=(u=t.getElementsByTagName("*")).length,c=[],a=0;a<l;a++)c[a]=u[a];if(k||N)for(a=0;a<l;a++)((h=(p=c[a]).parentNode===t)||N||L&&!B)&&(D=p.offsetTop,k&&h&&Math.abs(D-x)>E&&("BR"!==p.nodeName||0===a)&&(d=[],k.push(d),x=D),N&&(p._x=p.offsetLeft,p._y=D,p._w=p.offsetWidth,p._h=p.offsetHeight),k&&((p._isSplit&&h||!L&&h||B&&h||!B&&p.parentNode.parentNode===t&&!p.parentNode._isSplit)&&(d.push(p),p._x-=y,li(p,t,R)&&(p._wordEnd=!0)),"BR"===p.nodeName&&(p.nextSibling&&"BR"===p.nextSibling.nodeName||0===a)&&k.push([])));for(a=0;a<l;a++)if(h=(p=c[a]).parentNode===t,"BR"!==p.nodeName)if(N&&(g=p.style,B||h||(p._x+=p.parentNode._x,p._y+=p.parentNode._y),g.left=p._x+"px",g.top=p._y+"px",g.position="absolute",g.display="block",g.width=p._w+1+"px",g.height=p._h+"px"),!B&&L)if(p._isSplit)for(p._next=u=p.nextSibling,p.parentNode.appendChild(p);u&&3===u.nodeType&&" "===u.textContent;)p._next=u.nextSibling,p.parentNode.appendChild(u),u=u.nextSibling;else p.parentNode._isSplit?(p._parent=p.parentNode,!p.previousSibling&&p.firstChild&&(p.firstChild._isFirst=!0),p.nextSibling&&" "===p.nextSibling.textContent&&!p.nextSibling.nextSibling&&X.push(p.nextSibling),p._next=p.nextSibling&&p.nextSibling._isFirst?null:p.nextSibling,p.parentNode.removeChild(p),c.splice(a--,1),l--):h||(D=!p.nextSibling&&li(p.parentNode,t,R),p.parentNode._parent&&p.parentNode._parent.appendChild(p),D&&p.parentNode.appendChild($n.createTextNode(" ")),"span"===O&&(p.style.display="inline"),S.push(p));else p.parentNode._isSplit&&!p._isSplit&&""!==p.innerHTML?M.push(p):L&&!p._isSplit&&("span"===O&&(p.style.display="inline"),S.push(p));else k||N?(p.parentNode&&p.parentNode.removeChild(p),c.splice(a--,1),l--):B||t.appendChild(p);for(a=X.length;--a>-1;)X[a].parentNode.removeChild(X[a]);if(k){for(N&&(_=$n.createElement(O),t.appendChild(_),m=_.offsetWidth+"px",D=_.offsetParent===t?0:t.offsetLeft,t.removeChild(_)),g=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(f=" "===R&&(!N||!B&&!L),a=0;a<k.length;a++){for(d=k[a],(_=$n.createElement(O)).style.cssText="display:block;text-align:"+T+";position:"+(N?"absolute;":"relative;"),I&&(_.className=I+(z?a+1:"")),A.push(_),l=d.length,u=0;u<l;u++)"BR"!==d[u].nodeName&&(p=d[u],_.appendChild(p),f&&p._wordEnd&&_.appendChild($n.createTextNode(" ")),N&&(0===u&&(_.style.top=p._y+"px",_.style.left=y+D+"px"),p.style.top="0px",D&&(p.style.left=p._x-D+"px")));0===l?_.innerHTML="&nbsp;":B||L||(pi(_),ai(_,String.fromCharCode(160)," ")),N&&(_.style.width=m,_.style.height=p._h+"px"),t.appendChild(_)}t.style.cssText=g}N&&(o>t.clientHeight&&(t.style.height=o-C+"px",t.clientHeight<o&&(t.style.height=o+b+"px")),s>t.clientWidth&&(t.style.width=s-F+"px",t.clientWidth<s&&(t.style.width=s+w+"px"))),j&&(Y?t.style.display=Y:t.style.removeProperty("display")),ui(r,S),B&&ui(n,M),ui(i,A)},di=function(t,e,r,n){var i,s,o,a,u,l,p,c,h=e.tag?e.tag:e.span?"span":"div",d=~(e.type||e.split||"chars,words,lines").indexOf("chars"),f=ii(e),g=e.wordDelimiter||" ",_=function(t){return t===g||t===ei&&" "===g},m=" "!==g?"":f?"&#173; ":" ",D="</"+h+">",v=1,y=e.specialChars?"function"==typeof e.specialChars?e.specialChars:si:null,x=$n.createElement("div"),b=t.parentNode;for(b.insertBefore(x,t),x.textContent=t.nodeValue,b.removeChild(t),p=-1!==(i=Hn(t=x)).indexOf("<"),!1!==e.reduceWhiteSpace&&(i=i.replace(ti," ").replace(Kn,"")),p&&(i=i.split("<").join("{{LT}}")),u=i.length,s=(" "===i.charAt(0)?m:"")+r(),o=0;o<u;o++)if(l=i.charAt(o),y&&(c=y(i.substr(o),e.specialChars)))l=i.substr(o,c||1),s+=d&&" "!==l?n()+l+"</"+h+">":l,o+=c-1;else if(_(l)&&!_(i.charAt(o-1))&&o){for(s+=v?D:"",v=0;_(i.charAt(o+1));)s+=m,o++;o===u-1?s+=m:")"!==i.charAt(o+1)&&(s+=m+r(),v=1)}else"{"===l&&"{{LT}}"===i.substr(o,6)?(s+=d?n()+"{{LT}}</"+h+">":"{{LT}}",o+=5):l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||i.charCodeAt(o+1)>=65024&&i.charCodeAt(o+1)<=65039?(a=((i.substr(o,12).split(Vn)||[])[1]||"").length||2,s+=d&&" "!==l?n()+i.substr(o,a)+"</"+h+">":i.substr(o,a),o+=a-1):s+=d&&" "!==l?n()+l+"</"+h+">":l;t.outerHTML=s+(v?D:""),p&&ai(b,"{{LT}}","<")},fi=function t(e,r,n,i){var s,o,a=Jn(e.childNodes),u=a.length,l=ii(r);if(3!==e.nodeType||u>1){for(r.absolute=!1,s=0;s<u;s++)(o=a[s])._next=o._isFirst=o._parent=o._wordEnd=null,(3!==o.nodeType||/\S+/.test(o.nodeValue))&&(l&&3!==o.nodeType&&"inline"===ni(o).display&&(o.style.display="inline-block",o.style.position="relative"),o._isSplit=!0,t(o,r,n,i));return r.absolute=l,void(e._isSplit=!0)}di(e,r,n,i)},gi=function(){function t(t,e){Wn||ri(),this.elements=Jn(t),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},Zn(this),this.split(e)}var e=t.prototype;return e.split=function(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e,r,n,i=this.elements.length,s=t.tag?t.tag:t.span?"span":"div",o=oi(t.wordsClass,s),a=oi(t.charsClass,s);--i>-1;)n=this.elements[i],this._originals[i]={html:n.innerHTML,style:n.getAttribute("style")},e=n.clientHeight,r=n.clientWidth,fi(n,t,o,a),hi(n,t,this.chars,this.words,this.lines,r,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach((function(e,r){e.innerHTML=t[r].html,e.setAttribute("style",t[r].style)})),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},t.create=function(e,r){return new t(e,r)},t}();gi.version="3.12.5",gi.register=ri;
/*!
 * paths 3.12.5
 * https://gsap.com
 *
 * Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var _i=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,mi=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Di=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,vi=/(^[#\.][a-z]|[a-y][a-z])/i,yi=Math.PI/180,xi=180/Math.PI,bi=Math.sin,wi=Math.cos,Ci=Math.abs,Fi=Math.sqrt,Ei=Math.atan2,Ti=1e8,Si=function(t){return"string"==typeof t},Mi=function(t){return"number"==typeof t},Ai={},Ri={},Oi=1e5,Pi=function(t){return Math.round((t+Ti)%1*Oi)/Oi||(t<0?0:1)},ki=function(t){return Math.round(t*Oi)/Oi||0},Bi=function(t){return Math.round(1e10*t)/1e10||0},Li=function(t,e,r,n){var i=t[e],s=1===n?6:$i(i,r,n);if((s||!n)&&s+r+2<i.length)return t.splice(e,0,i.slice(0,r+s+2)),i.splice(0,r+s),1},Ni=function(t,e,r){var n=t.length,i=~~(r*n);if(t[i]>e){for(;--i&&t[i]>e;);i<0&&(i=0)}else for(;t[++i]<e&&i<n;);return i<n?i:n-1},Ii=function(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e},zi=function(t,e){var r=t.length,n=t[r-1]||[],i=n.length;r&&e[0]===n[i-2]&&e[1]===n[i-1]&&(e=n.concat(e.slice(2)),r--),t[r]=e};function Xi(t){var e,r=(t=Si(t)&&vi.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return r&&(t=t.getAttribute("d"))?(r._gsPath||(r._gsPath={}),(e=r._gsPath[t])&&!e._dirty?e:r._gsPath[t]=Ji(t)):t?Si(t)?Ji(t):Mi(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function ji(t){var e,r=0;for(t.reverse();r<t.length;r+=2)e=t[r],t[r]=t[r+1],t[r+1]=e;t.reversed=!t.reversed}var Yi={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function qi(t,e,r){var n,i=t[e],s=t[e+2],o=t[e+4];return i+=(s-i)*r,i+=((s+=(o-s)*r)-i)*r,n=s+(o+(t[e+6]-o)*r-s)*r-i,i=t[e+1],i+=((s=t[e+3])-i)*r,i+=((s+=((o=t[e+5])-s)*r)-i)*r,ki(Ei(s+(o+(t[e+7]-o)*r-s)*r-i,n)*xi)}function Gi(t,e,r){r=void 0===r?1:Bi(r)||0,e=Bi(e)||0;var n=Math.max(0,~~(Ci(r-e)-1e-8)),i=function(t){for(var e=[],r=0;r<t.length;r++)e[r]=Ii(t[r],t[r].slice(0));return Ii(t,e)}(t);if(e>r&&(e=1-e,r=1-r,function(t,e){var r=t.length;for(t.reverse();r--;)t[r].reversed||ji(t[r])}(i),i.totalLength=0),e<0||r<0){var s=Math.abs(~~Math.min(e,r))+1;e+=s,r+=s}i.totalLength||Hi(i);var o,a,u,l,p,c,h,d,f=r>1,g=Ui(i,e,Ai,!0),_=Ui(i,r,Ri),m=_.segment,D=g.segment,v=_.segIndex,y=g.segIndex,x=_.i,b=g.i,w=y===v,C=x===b&&w;if(f||n){for(o=v<y||w&&x<b||C&&_.t<g.t,Li(i,y,b,g.t)&&(y++,o||(v++,C?(_.t=(_.t-g.t)/(1-g.t),x=0):w&&(x-=b))),Math.abs(1-(r-e))<1e-5?v=y-1:!_.t&&v?v--:Li(i,v,x,_.t)&&o&&y++,1===g.t&&(y=(y+1)%i.length),p=[],h=1+(c=i.length)*n,d=y,h+=(c-y+v)%c,l=0;l<h;l++)zi(p,i[d++%c]);i=p}else if(u=1===_.t?6:$i(m,x,_.t),e!==r)for(a=$i(D,b,C?g.t/_.t:g.t),w&&(u+=a),m.splice(x+u+2),(a||b)&&D.splice(0,b+a),l=i.length;l--;)(l<y||l>v)&&i.splice(l,1);else m.angle=qi(m,x+u,0),g=m[x+=u],_=m[x+1],m.length=m.totalLength=0,m.totalPoints=i.totalPoints=8,m.push(g,_,g,_,g,_,g,_);return i.totalLength=0,i}function Vi(t,e,r){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var n,i,s,o,a,u,l,p,c,h,d,f,g,_,m,D,v,y=~~t.resolution||12,x=1/y,b=r?e+6*r+1:t.length,w=t[e],C=t[e+1],F=e?e/6*y:0,E=t.samples,T=t.lookup,S=(e?t.minLength:Ti)||Ti,M=E[F+r*y-1],A=e?E[F-1]:0;for(E.length=T.length=0,i=e+2;i<b;i+=6){if(s=t[i+4]-w,o=t[i+2]-w,a=t[i]-w,p=t[i+5]-C,c=t[i+3]-C,h=t[i+1]-C,u=l=d=f=0,Ci(s)<.01&&Ci(p)<.01&&Ci(a)+Ci(h)<.01)t.length>8&&(t.splice(i,6),i-=6,b-=6);else for(n=1;n<=y;n++)u=l-(l=((_=x*n)*_*s+3*(g=1-_)*(_*o+g*a))*_),d=f-(f=(_*_*p+3*g*(_*c+g*h))*_),(D=Fi(d*d+u*u))<S&&(S=D),A+=D,E[F++]=A;w+=s,C+=p}if(M)for(M-=A;F<E.length;F++)E[F]+=M;if(E.length&&S){if(t.totalLength=v=E[E.length-1]||0,t.minLength=S,v/S<9999)for(D=m=0,n=0;n<v;n+=S)T[D++]=E[m]<n?++m:m}else t.totalLength=E[0]=0;return e?A-E[e/2-1]:A}function Hi(t,e){var r,n,i;for(i=r=n=0;i<t.length;i++)t[i].resolution=~~e||12,n+=t[i].length,r+=Vi(t[i]);return t.totalPoints=n,t.totalLength=r,t}function $i(t,e,r){if(r<=0||r>=1)return 0;var n=t[e],i=t[e+1],s=t[e+2],o=t[e+3],a=t[e+4],u=t[e+5],l=n+(s-n)*r,p=s+(a-s)*r,c=i+(o-i)*r,h=o+(u-o)*r,d=l+(p-l)*r,f=c+(h-c)*r,g=a+(t[e+6]-a)*r,_=u+(t[e+7]-u)*r;return p+=(g-p)*r,h+=(_-h)*r,t.splice(e+2,4,ki(l),ki(c),ki(d),ki(f),ki(d+(p-d)*r),ki(f+(h-f)*r),ki(p),ki(h),ki(g),ki(_)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function Ui(t,e,r,n){r=r||{},t.totalLength||Hi(t),(e<0||e>1)&&(e=Pi(e));var i,s,o,a,u,l,p,c=0,h=t[0];if(e)if(1===e)p=1,l=(h=t[c=t.length-1]).length-8;else{if(t.length>1){for(o=t.totalLength*e,u=l=0;(u+=t[l++].totalLength)<o;)c=l;e=(o-(a=u-(h=t[c]).totalLength))/(u-a)||0}i=h.samples,s=h.resolution,o=h.totalLength*e,a=(l=h.lookup.length?h.lookup[~~(o/h.minLength)]||0:Ni(i,o,e))?i[l-1]:0,(u=i[l])<o&&(a=u,u=i[++l]),p=1/s*((o-a)/(u-a)+l%s),l=6*~~(l/s),n&&1===p&&(l+6<h.length?(l+=6,p=0):c+1<t.length&&(l=p=0,h=t[++c]))}else p=l=c=0,h=t[0];return r.t=p,r.i=l,r.path=t,r.segment=h,r.segIndex=c,r}function Wi(t,e,r,n){var i,s,o,a,u,l,p,c,h,d=t[0],f=n||{};if((e<0||e>1)&&(e=Pi(e)),d.lookup||Hi(t),t.length>1){for(o=t.totalLength*e,u=l=0;(u+=t[l++].totalLength)<o;)d=t[l];e=(o-(a=u-d.totalLength))/(u-a)||0}return i=d.samples,s=d.resolution,o=d.totalLength*e,a=(l=d.lookup.length?d.lookup[e<1?~~(o/d.minLength):d.lookup.length-1]||0:Ni(i,o,e))?i[l-1]:0,(u=i[l])<o&&(a=u,u=i[++l]),h=1-(p=1/s*((o-a)/(u-a)+l%s)||0),c=d[l=6*~~(l/s)],f.x=ki((p*p*(d[l+6]-c)+3*h*(p*(d[l+4]-c)+h*(d[l+2]-c)))*p+c),f.y=ki((p*p*(d[l+7]-(c=d[l+1]))+3*h*(p*(d[l+5]-c)+h*(d[l+3]-c)))*p+c),r&&(f.angle=d.totalLength?qi(d,l,p>=1?1-1e-9:p||1e-9):d.angle||0),f}function Qi(t,e,r,n,i,s,o){for(var a,u,l,p,c,h=t.length;--h>-1;)for(u=(a=t[h]).length,l=0;l<u;l+=2)p=a[l],c=a[l+1],a[l]=p*e+c*n+s,a[l+1]=p*r+c*i+o;return t._dirty=1,t}function Zi(t,e,r,n,i,s,o,a,u){if(t!==a||e!==u){r=Ci(r),n=Ci(n);var l=i%360*yi,p=wi(l),c=bi(l),h=Math.PI,d=2*h,f=(t-a)/2,g=(e-u)/2,_=p*f+c*g,m=-c*f+p*g,D=_*_,v=m*m,y=D/(r*r)+v/(n*n);y>1&&(r=Fi(y)*r,n=Fi(y)*n);var x=r*r,b=n*n,w=(x*b-x*v-b*D)/(x*v+b*D);w<0&&(w=0);var C=(s===o?-1:1)*Fi(w),F=C*(r*m/n),E=C*(-n*_/r),T=(t+a)/2+(p*F-c*E),S=(e+u)/2+(c*F+p*E),M=(_-F)/r,A=(m-E)/n,R=(-_-F)/r,O=(-m-E)/n,P=M*M+A*A,k=(A<0?-1:1)*Math.acos(M/Fi(P)),B=(M*O-A*R<0?-1:1)*Math.acos((M*R+A*O)/Fi(P*(R*R+O*O)));isNaN(B)&&(B=h),!o&&B>0?B-=d:o&&B<0&&(B+=d),k%=d,B%=d;var L,N=Math.ceil(Ci(B)/(d/4)),I=[],z=B/N,X=4/3*bi(z/2)/(1+wi(z/2)),j=p*r,Y=c*r,q=c*-n,G=p*n;for(L=0;L<N;L++)_=wi(i=k+L*z),m=bi(i),M=wi(i+=z),A=bi(i),I.push(_-X*m,m+X*_,M+X*A,A-X*M,M,A);for(L=0;L<I.length;L+=2)_=I[L],m=I[L+1],I[L]=_*j+m*q+T,I[L+1]=_*Y+m*G+S;return I[L-2]=a,I[L-1]=u,I}}function Ji(t){var e,r,n,i,s,o,a,u,l,p,c,h,d,f,g,_=(t+"").replace(Di,(function(t){var e=+t;return e<1e-4&&e>-1e-4?0:e})).match(_i)||[],m=[],D=0,v=0,y=2/3,x=_.length,b=0,w="ERROR: malformed path: "+t,C=function(t,e,r,n){p=(r-t)/3,c=(n-e)/3,a.push(t+p,e+c,r-p,n-c,r,n)};if(!t||!isNaN(_[0])||isNaN(_[1]))return console.log(w),m;for(e=0;e<x;e++)if(d=s,isNaN(_[e])?o=(s=_[e].toUpperCase())!==_[e]:e--,n=+_[e+1],i=+_[e+2],o&&(n+=D,i+=v),e||(u=n,l=i),"M"===s)a&&(a.length<8?m.length-=1:b+=a.length),D=u=n,v=l=i,a=[n,i],m.push(a),e+=2,s="L";else if("C"===s)a||(a=[0,0]),o||(D=v=0),a.push(n,i,D+1*_[e+3],v+1*_[e+4],D+=1*_[e+5],v+=1*_[e+6]),e+=6;else if("S"===s)p=D,c=v,"C"!==d&&"S"!==d||(p+=D-a[a.length-4],c+=v-a[a.length-3]),o||(D=v=0),a.push(p,c,n,i,D+=1*_[e+3],v+=1*_[e+4]),e+=4;else if("Q"===s)p=D+(n-D)*y,c=v+(i-v)*y,o||(D=v=0),D+=1*_[e+3],v+=1*_[e+4],a.push(p,c,D+(n-D)*y,v+(i-v)*y,D,v),e+=4;else if("T"===s)p=D-a[a.length-4],c=v-a[a.length-3],a.push(D+p,v+c,n+(D+1.5*p-n)*y,i+(v+1.5*c-i)*y,D=n,v=i),e+=2;else if("H"===s)C(D,v,D=n,v),e+=1;else if("V"===s)C(D,v,D,v=n+(o?v-D:0)),e+=1;else if("L"===s||"Z"===s)"Z"===s&&(n=u,i=l,a.closed=!0),("L"===s||Ci(D-n)>.5||Ci(v-i)>.5)&&(C(D,v,n,i),"L"===s&&(e+=2)),D=n,v=i;else if("A"===s){if(f=_[e+4],g=_[e+5],p=_[e+6],c=_[e+7],r=7,f.length>1&&(f.length<3?(c=p,p=g,r--):(c=g,p=f.substr(2),r-=2),g=f.charAt(1),f=f.charAt(0)),h=Zi(D,v,+_[e+1],+_[e+2],+_[e+3],+f,+g,(o?D:0)+1*p,(o?v:0)+1*c),e+=r,h)for(r=0;r<h.length;r++)a.push(h[r]);D=a[a.length-2],v=a[a.length-1]}else console.log(w);return(e=a.length)<6?(m.pop(),e=0):a[0]===a[e-2]&&a[1]===a[e-1]&&(a.closed=!0),m.totalPoints=b+e,m}function Ki(t,e){void 0===e&&(e=1);for(var r=t[0],n=0,i=[r,n],s=2;s<t.length;s+=2)i.push(r,n,t[s],n=(t[s]-r)*e/2,r=t[s],-n);return i}function ts(t,e){Ci(t[0]-t[2])<1e-4&&Ci(t[1]-t[3])<1e-4&&(t=t.slice(2));var r,n,i,s,o,a,u,l,p,c,h,d,f,g,_=t.length-2,m=+t[0],D=+t[1],v=+t[2],y=+t[3],x=[m,D,m,D],b=v-m,w=y-D,C=Math.abs(t[_]-m)<.001&&Math.abs(t[_+1]-D)<.001;for(C&&(t.push(v,y),v=m,y=D,m=t[_-2],D=t[_-1],t.unshift(m,D),_+=4),e=e||0===e?+e:1,i=2;i<_;i+=2)r=m,n=D,m=v,D=y,v=+t[i+2],y=+t[i+3],m===v&&D===y||(s=b,o=w,b=v-m,w=y-D,l=((a=Fi(s*s+o*o))+(u=Fi(b*b+w*w)))*e*.25/Fi(Math.pow(b/u+s/a,2)+Math.pow(w/u+o/a,2)),h=m-((p=m-(m-r)*(a?l/a:0))+(((c=m+(v-m)*(u?l/u:0))-p)*(3*a/(a+u)+.5)/4||0)),g=D-((d=D-(D-n)*(a?l/a:0))+(((f=D+(y-D)*(u?l/u:0))-d)*(3*a/(a+u)+.5)/4||0)),m===r&&D===n||x.push(ki(p+h),ki(d+g),ki(m),ki(D),ki(c+h),ki(f+g)));return m!==v||D!==y||x.length<4?x.push(ki(v),ki(y),ki(v),ki(y)):x.length-=2,2===x.length?x.push(m,D,m,D,m,D):C&&(x.splice(0,6),x.length=x.length-6),x}function es(t){Mi(t[0])&&(t=[t]);var e,r,n,i,s="",o=t.length;for(r=0;r<o;r++){for(i=t[r],s+="M"+ki(i[0])+","+ki(i[1])+" C",e=i.length,n=2;n<e;n++)s+=ki(i[n++])+","+ki(i[n++])+" "+ki(i[n++])+","+ki(i[n++])+" "+ki(i[n++])+","+ki(i[n])+" ";i.closed&&(s+="z")}return s}
/*!
 * CustomEase 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var rs,ns,is=function(){return rs||"undefined"!=typeof window&&(rs=window.gsap)&&rs.registerPlugin&&rs},ss=function(){(rs=is())?(rs.registerEase("_CE",ps.create),ns=1):console.warn("Please gsap.registerPlugin(CustomEase)")},os=function(t){return~~(1e3*t+(t<0?-.5:.5))/1e3},as=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,us=/[cLlsSaAhHvVtTqQ]/g,ls=function t(e,r,n,i,s,o,a,u,l,p,c){var h,d=(e+n)/2,f=(r+i)/2,g=(n+s)/2,_=(i+o)/2,m=(s+a)/2,D=(o+u)/2,v=(d+g)/2,y=(f+_)/2,x=(g+m)/2,b=(_+D)/2,w=(v+x)/2,C=(y+b)/2,F=a-e,E=u-r,T=Math.abs((n-a)*E-(i-u)*F),S=Math.abs((s-a)*E-(o-u)*F);return p||(p=[{x:e,y:r},{x:a,y:u}],c=1),p.splice(c||p.length-1,0,{x:w,y:C}),(T+S)*(T+S)>l*(F*F+E*E)&&(h=p.length,t(e,r,d,f,v,y,w,C,l,p,c),t(w,C,x,b,m,D,a,u,l,p,c+1+(p.length-h))),p},ps=function(){function t(t,e,r){ns||ss(),this.id=t,this.setData(e,r)}var e=t.prototype;return e.setData=function(t,e){e=e||{};var r,n,i,s,o,a,u,l,p,c=(t=t||"0,0,1,1").match(as),h=1,d=[],f=[],g=e.precision||1,_=g<=1;if(this.data=t,(us.test(t)||~t.indexOf("M")&&t.indexOf("C")<0)&&(c=Ji(t)[0]),4===(r=c.length))c.unshift(0,0),c.push(1,1),r=8;else if((r-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[r-2]||function(t,e,r){r||0===r||(r=Math.max(+t[t.length-1],+t[1]));var n,i=-1*+t[0],s=-r,o=t.length,a=1/(+t[o-2]+i),u=-e||(Math.abs(+t[o-1]-+t[1])<.01*(+t[o-2]-+t[0])?function(t){var e,r=t.length,n=1e20;for(e=1;e<r;e+=6)+t[e]<n&&(n=+t[e]);return n}(t)+s:+t[o-1]+s);for(u=u?1/u:-a,n=0;n<o;n+=2)t[n]=(+t[n]+i)*a,t[n+1]=(+t[n+1]+s)*u}(c,e.height,e.originY),this.segment=c,s=2;s<r;s+=6)n={x:+c[s-2],y:+c[s-1]},i={x:+c[s+4],y:+c[s+5]},d.push(n,i),ls(n.x,n.y,+c[s],+c[s+1],+c[s+2],+c[s+3],i.x,i.y,1/(2e5*g),d,d.length-1);for(r=d.length,s=0;s<r;s++)u=d[s],l=d[s-1]||u,(u.x>l.x||l.y!==u.y&&l.x===u.x||u===l)&&u.x<=1?(l.cx=u.x-l.x,l.cy=u.y-l.y,l.n=u,l.nx=u.x,_&&s>1&&Math.abs(l.cy/l.cx-d[s-2].cy/d[s-2].cx)>2&&(_=0),l.cx<h&&(l.cx?h=l.cx:(l.cx=.001,s===r-1&&(l.x-=.001,h=Math.min(h,.001),_=0)))):(d.splice(s--,1),r--);if(o=1/(r=1/h+1|0),a=0,u=d[0],_){for(s=0;s<r;s++)p=s*o,u.nx<p&&(u=d[++a]),n=u.y+(p-u.x)/u.cx*u.cy,f[s]={x:p,cx:o,y:n,cy:0,nx:9},s&&(f[s-1].cy=n-f[s-1].y);f[r-1].cy=d[d.length-1].y-n}else{for(s=0;s<r;s++)u.nx<s*o&&(u=d[++a]),f[s]=u;a<d.length-1&&(f[s-1]=d[d.length-2])}return this.ease=function(t){var e=f[t*r|0]||f[r-1];return e.nx<t&&(e=e.n),e.y+(t-e.x)/e.cx*e.cy},this.ease.custom=this,this.id&&rs&&rs.registerEase(this.id,this.ease),this},e.getSVGData=function(e){return t.getSVGData(this,e)},t.create=function(e,r,n){return new t(e,r,n).ease},t.register=function(t){rs=t,ss()},t.get=function(t){return rs.parseEase(t)},t.getSVGData=function(e,r){var n,i,s,o,a,u,l,p,c,h,d=(r=r||{}).width||100,f=r.height||100,g=r.x||0,_=(r.y||0)+f,m=rs.utils.toArray(r.path)[0];if(r.invert&&(f=-f,_=0),"string"==typeof e&&(e=rs.parseEase(e)),e.custom&&(e=e.custom),e instanceof t)n=es(Qi([e.segment],d,0,0,-f,g,_));else{for(n=[g,_],o=1/(l=Math.max(5,200*(r.precision||1))),p=5/(l+=2),c=os(g+o*d),i=((h=os(_+e(o)*-f))-_)/(c-g),s=2;s<l;s++)a=os(g+s*o*d),u=os(_+e(s*o)*-f),(Math.abs((u-h)/(a-c)-i)>p||s===l-1)&&(n.push(c,h),i=(u-h)/(a-c)),c=a,h=u;n="M"+n.join(",")}return m&&m.setAttribute("d",n),n},t}();is()&&rs.registerPlugin(ps),ps.version="3.12.5";
/*!
 * DrawSVGPlugin 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var cs,hs,ds,fs,gs,_s,ms,Ds,vs=function(){return"undefined"!=typeof window},ys=function(){return cs||vs()&&(cs=window.gsap)&&cs.registerPlugin&&cs},xs=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,bs={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},ws=function(t){return Math.round(1e4*t)/1e4},Cs=function(t){return parseFloat(t)||0},Fs=function(t,e){var r=Cs(t);return~t.indexOf("%")?r/100*e:r},Es=function(t,e){return Cs(t.getAttribute(e))},Ts=Math.sqrt,Ss=function(t,e,r,n,i,s){return Ts(Math.pow((Cs(r)-Cs(t))*i,2)+Math.pow((Cs(n)-Cs(e))*s,2))},Ms=function(t){return console.warn(t)},As=function(t){return"non-scaling-stroke"===t.getAttribute("vector-effect")},Rs=function(t){if(!(t=hs(t)[0]))return 0;var e,r,n,i,s,o,a,u=t.tagName.toLowerCase(),l=t.style,p=1,c=1;As(t)&&(c=t.getScreenCTM(),p=Ts(c.a*c.a+c.b*c.b),c=Ts(c.d*c.d+c.c*c.c));try{r=t.getBBox()}catch(t){Ms("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var h=r||{x:0,y:0,width:0,height:0},d=h.x,f=h.y,g=h.width,_=h.height;if(r&&(g||_)||!bs[u]||(g=Es(t,bs[u][0]),_=Es(t,bs[u][1]),"rect"!==u&&"line"!==u&&(g*=2,_*=2),"line"===u&&(d=Es(t,"x1"),f=Es(t,"y1"),g=Math.abs(g-d),_=Math.abs(_-f))),"path"===u)i=l.strokeDasharray,l.strokeDasharray="none",e=t.getTotalLength()||0,ws(p)!==ws(c)&&!_s&&(_s=1)&&Ms("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(p+c)/2,l.strokeDasharray=i;else if("rect"===u)e=2*g*p+2*_*c;else if("line"===u)e=Ss(d,f,d+g,f+_,p,c);else if("polyline"===u||"polygon"===u)for(n=t.getAttribute("points").match(xs)||[],"polygon"===u&&n.push(n[0],n[1]),e=0,s=2;s<n.length;s+=2)e+=Ss(n[s-2],n[s-1],n[s],n[s+1],p,c)||0;else"circle"!==u&&"ellipse"!==u||(o=g/2*p,a=_/2*c,e=Math.PI*(3*(o+a)-Ts((3*o+a)*(o+3*a))));return e||0},Os=function(t,e){if(!(t=hs(t)[0]))return[0,0];e||(e=Rs(t)+1);var r=ds.getComputedStyle(t),n=r.strokeDasharray||"",i=Cs(r.strokeDashoffset),s=n.indexOf(",");return s<0&&(s=n.indexOf(" ")),(n=s<0?e:Cs(n.substr(0,s)))>e&&(n=e),[-i||0,n-i||0]},Ps=function(){vs()&&(document,ds=window,gs=cs=ys(),hs=cs.utils.toArray,ms=cs.core.getStyleSaver,Ds=cs.core.reverting||function(){},fs=-1!==((ds.navigator||{}).userAgent||"").indexOf("Edge"))},ks={version:"3.12.5",name:"drawSVG",register:function(t){cs=t,Ps()},init:function(t,e,r,n,i){if(!t.getBBox)return!1;gs||Ps();var s,o,a,u=Rs(t);return this.styles=ms&&ms(t,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=r,this._style=t.style,this._target=t,e+""=="true"?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",o=function(t,e,r){var n,i,s=t.indexOf(" ");return s<0?(n=void 0!==r?r+"":t,i=t):(n=t.substr(0,s),i=t.substr(s+1)),(n=Fs(n,e))>(i=Fs(i,e))?[i,n]:[n,i]}(e,u,(s=Os(t,u))[0]),this._length=ws(u),this._dash=ws(s[1]-s[0]),this._offset=ws(-s[0]),this._dashPT=this.add(this,"_dash",this._dash,ws(o[1]-o[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,ws(-o[0]),0,0,0,0,0,1),fs&&(a=ds.getComputedStyle(t)).strokeLinecap!==a.strokeLinejoin&&(o=Cs(a.strokeMiterlimit),this.add(t.style,"strokeMiterlimit",o,o+.01)),this._live=As(t)||~(e+"").indexOf("live"),this._nowrap=~(e+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function(t,e){if(e.tween._time||!Ds()){var r,n,i,s,o=e._pt,a=e._style;if(o){for(e._live&&(r=Rs(e._target))!==e._length&&(n=r/e._length,e._length=r,e._offsetPT&&(e._offsetPT.s*=n,e._offsetPT.c*=n),e._dashPT?(e._dashPT.s*=n,e._dashPT.c*=n):e._dash*=n);o;)o.r(t,o.d),o=o._next;i=e._dash||t&&1!==t&&1e-4||0,r=e._length-i+.1,s=e._offset,i&&s&&i+Math.abs(s%e._length)>e._length-.2&&(s+=s<0?.1:-.1)&&(r+=.1),a.strokeDashoffset=i?s:s+.001,a.strokeDasharray=r<.2?"none":i?i+"px,"+(e._nowrap?999999:r)+"px":"0px, 999999px"}}else e.styles.revert()},getLength:Rs,getPosition:Os};ys()&&cs.registerPlugin(ks);
/*!
 * CustomBounce 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Bs,Ls,Ns,Is=function(){return Bs||"undefined"!=typeof window&&(Bs=window.gsap)&&Bs.registerPlugin&&Bs},zs=function(t){Bs=Is(),(Ns=Bs&&Bs.parseEase("_CE"))?(Ls=1,Bs.parseEase("bounce").config=function(t){return"object"==typeof t?js("",t):js("bounce("+t+")",{strength:+t})}):t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},Xs=function(t){var e,r=t.length,n=1/t[r-2];for(e=2;e<r;e+=2)t[e]=~~(t[e]*n*1e3)/1e3;t[r-2]=1},js=function(t,e){Ls||zs(1),e=e||{};var r,n,i,s,o,a,u,l=Math.min(.999,e.strength||.7),p=l,c=(e.squash||0)/100,h=c,d=1/.03,f=.2,g=1,_=.1,m=[0,0,.07,0,.1,1,.1,1],D=[0,0,0,0,.1,0,.1,0];for(o=0;o<200&&(a=_+(f*=p*((p+1)/2)),s=1-(g*=l*l),n=(i=_+.49*f)+.8*(i-(r=_+g/d)),c&&(_+=c,r+=c,i+=c,n+=c,a+=c,u=c/h,D.push(_-c,0,_-c,u,_-c/2,u,_,u,_,0,_,0,_,-.6*u,_+(a-_)/6,0,a,0),m.push(_-c,1,_,1,_,1),c*=l*l),m.push(_,1,r,s,i,s,n,s,a,1,a,1),l*=.95,d=g/(a-n),_=a,!(s>.999));o++);if(e.endAtStart&&"false"!==e.endAtStart){if(i=-.1,m.unshift(i,1,i,1,-.07,0),h)for(i-=c=2.5*h,m.unshift(i,1,i,1,i,1),D.splice(0,6),D.unshift(i,0,i,0,i,1,i+c/2,1,i+c,1,i+c,0,i+c,0,i+c,-.6,i+c+.033,0),o=0;o<D.length;o+=2)D[o]-=i;for(o=0;o<m.length;o+=2)m[o]-=i,m[o+1]=1-m[o+1]}return c&&(Xs(D),D[2]="C"+D[2],Ns(e.squashID||t+"-squash","M"+D.join(","))),Xs(m),m[2]="C"+m[2],Ns(t,"M"+m.join(","))},Ys=function(){function t(t,e){this.ease=js(t,e)}return t.create=function(t,e){return js(t,e)},t.register=function(t){Bs=t,zs()},t}();Is()&&Bs.registerPlugin(Ys),Ys.version="3.12.5";
/*!
 * CustomWiggle 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var qs,Gs,Vs,Hs=function(){return qs||"undefined"!=typeof window&&(qs=window.gsap)&&qs.registerPlugin&&qs},$s={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},Us=function(t){return t},Ws=function(t){if(!Gs)if(qs=Hs(),Vs=qs&&qs.parseEase("_CE")){for(var e in $s)$s[e]=Vs("",$s[e]);Gs=1,Zs("wiggle").config=function(t){return"object"==typeof t?Zs("",t):Zs("wiggle("+t+")",{wiggles:+t})}}else t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},Qs=function(t,e){return"function"!=typeof t&&(t=qs.parseEase(t)||Vs("",t)),t.custom||!e?t:function(e){return 1-t(e)}},Zs=function(t,e){Gs||Ws(1);var r,n,i,s,o,a,u,l,p,c=0|((e=e||{}).wiggles||10),h=1/c,d=h/2,f="anticipate"===e.type,g=$s[e.type]||$s.easeOut,_=Us;if(f&&(_=g,g=$s.easeOut),e.timingEase&&(_=Qs(e.timingEase)),e.amplitudeEase&&(g=Qs(e.amplitudeEase,!0)),l=[0,0,(a=_(d))/4,0,a/2,u=f?-g(d):g(d),a,u],"random"===e.type){for(l.length=4,r=_(h),n=2*Math.random()-1,p=2;p<c;p++)d=r,u=n,r=_(h*p),n=2*Math.random()-1,i=Math.atan2(n-l[l.length-3],r-l[l.length-4]),s=Math.cos(i)*h,o=Math.sin(i)*h,l.push(d-s,u-o,d,u,d+s,u+o);l.push(r,0,1,0)}else{for(p=1;p<c;p++)l.push(_(d+h/2),u),d+=h,u=(u>0?-1:1)*g(p*h),a=_(d),l.push(_(d-h/2),u,a,u);l.push(_(d+h/4),u,_(d+h/4),0,1,0)}for(p=l.length;--p>-1;)l[p]=~~(1e3*l[p])/1e3;return l[2]="C"+l[2],Vs(t,"M"+l.join(","))},Js=function(){function t(t,e){this.ease=Zs(t,e)}return t.create=function(t,e){return Zs(t,e)},t.register=function(t){qs=t,Ws()},t}();Hs()&&qs.registerPlugin(Js),Js.version="3.12.5";
/*!
 * matrix 3.12.5
 * https://gsap.com
 *
 * Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Ks,to,eo,ro,no,io,so,oo,ao,uo="transform",lo=uo+"Origin",po=function(t){var e=t.ownerDocument||t;!(uo in t.style)&&"msTransform"in t.style&&(lo=(uo="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(to=window,so=new Do,e){Ks=e,eo=e.documentElement,ro=e.body,(oo=Ks.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var r=e.createElement("div"),n=e.createElement("div"),i=e&&(e.body||e.firstElementChild);i&&i.appendChild&&(i.appendChild(r),r.appendChild(n),r.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),ao=n.offsetParent!==r,i.removeChild(r))}return e},co=[],ho=[],fo=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},go=function t(e){return"fixed"===to.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},_o=function t(e,r){if(e.parentNode&&(Ks||po(e))){var n=fo(e),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?r?"rect":"g":"div",o=2!==r?0:100,a=3===r?100:0,u="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=Ks.createElementNS?Ks.createElementNS(i.replace(/^https/,"http"),s):Ks.createElement(s);return r&&(n?(io||(io=t(e)),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+a+")"),io.appendChild(l)):(no||((no=t(e)).style.cssText=u),l.style.cssText=u+"width:0.1px;height:0.1px;top:"+a+"px;left:"+o+"px",no.appendChild(l))),l}throw"Need document and parent."},mo=function(t,e,r,n,i,s,o){return t.a=e,t.b=r,t.c=n,t.d=i,t.e=s,t.f=o,t},Do=function(){function t(t,e,r,n,i,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===s&&(s=0),mo(this,t,e,r,n,i,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,r=this.c,n=this.d,i=this.e,s=this.f,o=t*n-e*r||1e-10;return mo(this,n/o,-e/o,-r/o,t/o,(r*s-n*i)/o,-(t*s-e*i)/o)},e.multiply=function(t){var e=this.a,r=this.b,n=this.c,i=this.d,s=this.e,o=this.f,a=t.a,u=t.c,l=t.b,p=t.d,c=t.e,h=t.f;return mo(this,a*e+l*n,a*r+l*i,u*e+p*n,u*r+p*i,s+c*e+h*n,o+c*r+h*i)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,r=this.b,n=this.c,i=this.d,s=this.e,o=this.f;return e===t.a&&r===t.b&&n===t.c&&i===t.d&&s===t.e&&o===t.f},e.apply=function(t,e){void 0===e&&(e={});var r=t.x,n=t.y,i=this.a,s=this.b,o=this.c,a=this.d,u=this.e,l=this.f;return e.x=r*i+n*o+u||0,e.y=r*s+n*a+l||0,e},t}();function vo(t,e,r,n){if(!t||!t.parentNode||(Ks||po(t)).documentElement===t)return new Do;var i=function(t){for(var e,r;t&&t!==ro;)(r=t._gsap)&&r.uncache&&r.get(t,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),e?e.push(r):e=[r]),t=t.parentNode;return e}(t),s=fo(t)?co:ho,o=function(t,e){var r,n,i,s,o,a,u=fo(t),l=t===u,p=u?co:ho,c=t.parentNode;if(t===to)return t;if(p.length||p.push(_o(t,1),_o(t,2),_o(t,3)),r=u?io:no,u)l?(i=function(t){var e,r=t.getCTM();return r||(e=t.style[uo],t.style[uo]="none",t.appendChild(oo),r=oo.getCTM(),t.removeChild(oo),e?t.style[uo]=e:t.style.removeProperty(uo.replace(/([A-Z])/g,"-$1").toLowerCase())),r||so.clone()}(t),s=-i.e/i.a,o=-i.f/i.d,n=so):t.getBBox?(i=t.getBBox(),n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?function(t){for(var e=new Do,r=0;r<t.numberOfItems;r++)e.multiply(t.getItem(r).matrix);return e}(n):n.getItem(0).matrix:so,s=n.a*i.x+n.c*i.y,o=n.b*i.x+n.d*i.y):(n=new Do,s=o=0),e&&"g"===t.tagName.toLowerCase()&&(s=o=0),(l?u:c).appendChild(r),r.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+s)+","+(n.f+o)+")");else{if(s=o=0,ao)for(n=t.offsetParent,i=t;i&&(i=i.parentNode)&&i!==n&&i.parentNode;)(to.getComputedStyle(i)[uo]+"").length>4&&(s=i.offsetLeft,o=i.offsetTop,i=0);if("absolute"!==(a=to.getComputedStyle(t)).position&&"fixed"!==a.position)for(n=t.offsetParent;c&&c!==n;)s+=c.scrollLeft||0,o+=c.scrollTop||0,c=c.parentNode;(i=r.style).top=t.offsetTop-o+"px",i.left=t.offsetLeft-s+"px",i[uo]=a[uo],i[lo]=a[lo],i.position="fixed"===a.position?"fixed":"absolute",t.parentNode.appendChild(r)}return r}(t,r),a=s[0].getBoundingClientRect(),u=s[1].getBoundingClientRect(),l=s[2].getBoundingClientRect(),p=o.parentNode,c=!n&&go(t),h=new Do((u.left-a.left)/100,(u.top-a.top)/100,(l.left-a.left)/100,(l.top-a.top)/100,a.left+(c?0:to.pageXOffset||Ks.scrollLeft||eo.scrollLeft||ro.scrollLeft||0),a.top+(c?0:to.pageYOffset||Ks.scrollTop||eo.scrollTop||ro.scrollTop||0));if(p.removeChild(o),i)for(a=i.length;a--;)(u=i[a]).scaleX=u.scaleY=0,u.renderTransform(1,u);return e?h.inverse():h}
/*!
 * MotionPathPlugin 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var yo,xo,bo,wo,Co,Fo,Eo="x,translateX,left,marginLeft,xPercent".split(","),To="y,translateY,top,marginTop,yPercent".split(","),So=Math.PI/180,Mo=function(t,e,r,n){for(var i=e.length,s=2===n?0:n,o=0;o<i;o++)t[s]=parseFloat(e[o][r]),2===n&&(t[s+1]=0),s+=2;return t},Ao=function(t,e,r){return parseFloat(t._gsap.get(t,e,r||"px"))||0},Ro=function(t){var e,r=t[0],n=t[1];for(e=2;e<t.length;e+=2)r=t[e]+=r,n=t[e+1]+=n},Oo=function(t,e,r,n,i,s,o,a,u){return"cubic"===o.type?e=[e]:(!1!==o.fromCurrent&&e.unshift(Ao(r,n,a),i?Ao(r,i,u):0),o.relative&&Ro(e),e=[(i?ts:Ki)(e,o.curviness)]),e=s(No(e,r,o)),Io(t,r,n,e,"x",a),i&&Io(t,r,i,e,"y",u),Hi(e,o.resolution||(0===o.curviness?20:12))},Po=function(t){return t},ko=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,Bo=function(t,e,r){var n,i=vo(t),s=0,o=0;return"svg"===(t.tagName+"").toLowerCase()?(n=t.viewBox.baseVal).width||(n={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):n=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(s=e.push?e[0]*(n?n.width:t.offsetWidth||0):e.x,o=e.push?e[1]*(n?n.height:t.offsetHeight||0):e.y),r.apply(s||o?i.apply({x:s,y:o}):{x:i.e,y:i.f})},Lo=function(t,e,r,n){var i,s=vo(t.parentNode,!0,!0),o=s.clone().multiply(vo(e)),a=Bo(t,r,s),u=Bo(e,n,s),l=u.x,p=u.y;return o.e=o.f=0,"auto"===n&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(i=e.getAttribute("d").match(ko)||[],l+=(i=o.apply({x:+i[0],y:+i[1]})).x,p+=i.y),i&&(l-=(i=o.apply(e.getBBox())).x,p-=i.y),o.e=l-a.x,o.f=p-a.y,o},No=function(t,e,r){var n,i,s,o=r.align,a=r.matrix,u=r.offsetX,l=r.offsetY,p=r.alignOrigin,c=t[0][0],h=t[0][1],d=Ao(e,"x"),f=Ao(e,"y");return t&&t.length?(o&&("self"===o||(n=wo(o)[0]||e)===e?Qi(t,1,0,0,1,d-c,f-h):(p&&!1!==p[2]?yo.set(e,{transformOrigin:100*p[0]+"% "+100*p[1]+"%"}):p=[Ao(e,"xPercent")/-100,Ao(e,"yPercent")/-100],s=(i=Lo(e,n,p,"auto")).apply({x:c,y:h}),Qi(t,i.a,i.b,i.c,i.d,d+i.e-(s.x-i.e),f+i.f-(s.y-i.f)))),a?Qi(t,a.a,a.b,a.c,a.d,a.e,a.f):(u||l)&&Qi(t,1,0,0,1,u||0,l||0),t):Xi("M0,0L0,0")},Io=function(t,e,r,n,i,s){var o=e._gsap,a=o.harness,u=a&&a.aliases&&a.aliases[r],l=u&&u.indexOf(",")<0?u:r,p=t._pt=new xo(t._pt,e,l,0,0,Po,0,o.set(e,l,t));p.u=bo(o.get(e,l,s))||0,p.path=n,p.pp=i,t._props.push(l)},zo={version:"3.12.5",name:"motionPath",register:function(t,e,r){bo=(yo=t).utils.getUnit,wo=yo.utils.toArray,Co=yo.core.getStyleSaver,Fo=yo.core.reverting||function(){},xo=r},init:function(t,e,r){if(!yo)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,i,s,o,a=[],u=e,l=u.path,p=u.autoRotate,c=u.unitX,h=u.unitY,d=u.x,f=u.y,g=l[0],_=(s=e.start,o="end"in e?e.end:1,function(t){return s||1!==o?Gi(t,s,o):t});if(this.rawPaths=a,this.target=t,this.tween=r,this.styles=Co&&Co(t,"transform"),(this.rotate=p||0===p)&&(this.rOffset=parseFloat(p)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=bo(t._gsap.get(t,this.rProp))||0),Array.isArray(l)&&!("closed"in l)&&"number"!=typeof g){for(i in g)!d&&~Eo.indexOf(i)?d=i:!f&&~To.indexOf(i)&&(f=i);for(i in d&&f?a.push(Oo(this,Mo(Mo([],l,d,0),l,f,1),t,d,f,_,e,c||bo(l[0][d]),h||bo(l[0][f]))):d=f=0,g)i!==d&&i!==f&&a.push(Oo(this,Mo([],l,i,2),t,i,0,_,e,bo(l[0][i])))}else Hi(n=_(No(Xi(e.path),t,e)),e.resolution),a.push(n),Io(this,t,e.x||"x",n,"x",e.unitX||"px"),Io(this,t,e.y||"y",n,"y",e.unitY||"px")},render:function(t,e){var r=e.rawPaths,n=r.length,i=e._pt;if(e.tween._time||!Fo()){for(t>1?t=1:t<0&&(t=0);n--;)Wi(r[n],t,!n&&e.rotate,r[n]);for(;i;)i.set(i.t,i.p,i.path[i.pp]+i.u,i.d,t),i=i._next;e.rotate&&e.rSet(e.target,e.rProp,r[0].angle*(e.radians?So:1)+e.rOffset+e.ru,e,t)}else e.styles.revert()},getLength:function(t){return Hi(Xi(t)).totalLength},sliceRawPath:Gi,getRawPath:Xi,pointsToSegment:ts,stringToRawPath:Ji,rawPathToString:es,transformRawPath:Qi,getGlobalMatrix:vo,getPositionOnPath:Wi,cacheRawPathMeasurements:Hi,convertToPath:function(t,e){return wo(t).map((function(t){return function(t,e){var r,n,i,s,o,a,u,l,p,c,h,d,f,g,_,m,D,v,y,x,b,w,C=t.tagName.toLowerCase(),F=.552284749831;return"path"!==C&&t.getBBox?(a=function(t,e){var r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),i=[].slice.call(t.attributes),s=i.length;for(e=","+e+",";--s>-1;)r=i[s].nodeName.toLowerCase(),e.indexOf(","+r+",")<0&&n.setAttributeNS(null,r,i[s].nodeValue);return n}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),w=function(t,e){for(var r=e?e.split(","):[],n={},i=r.length;--i>-1;)n[r[i]]=+t.getAttribute(r[i])||0;return n}(t,Yi[C]),"rect"===C?(s=w.rx,o=w.ry||s,n=w.x,i=w.y,c=w.width-2*s,h=w.height-2*o,r=s||o?"M"+(m=(g=(f=n+s)+c)+s)+","+(v=i+o)+" V"+(y=v+h)+" C"+[m,x=y+o*F,_=g+s*F,b=y+o,g,b,g-(g-f)/3,b,f+(g-f)/3,b,f,b,d=n+s*(1-F),b,n,x,n,y,n,y-(y-v)/3,n,v+(y-v)/3,n,v,n,D=i+o*(1-F),d,i,f,i,f+(g-f)/3,i,g-(g-f)/3,i,g,i,_,i,m,D,m,v].join(",")+"z":"M"+(n+c)+","+i+" v"+h+" h"+-c+" v"+-h+" h"+c+"z"):"circle"===C||"ellipse"===C?("circle"===C?l=(s=o=w.r)*F:(s=w.rx,l=(o=w.ry)*F),r="M"+((n=w.cx)+s)+","+(i=w.cy)+" C"+[n+s,i+l,n+(u=s*F),i+o,n,i+o,n-u,i+o,n-s,i+l,n-s,i,n-s,i-l,n-u,i-o,n,i-o,n+u,i-o,n+s,i-l,n+s,i].join(",")+"z"):"line"===C?r="M"+w.x1+","+w.y1+" L"+w.x2+","+w.y2:"polyline"!==C&&"polygon"!==C||(r="M"+(n=(p=(t.getAttribute("points")+"").match(mi)||[]).shift())+","+(i=p.shift())+" L"+p.join(","),"polygon"===C&&(r+=","+n+","+i+"z")),a.setAttribute("d",es(a._gsRawPath=Ji(r))),e&&t.parentNode&&(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t)),a):t}(t,!1!==e)}))},convertCoordinates:function(t,e,r){var n=vo(e,!0,!0).multiply(vo(t));return r?n.apply(r):n},getAlignMatrix:Lo,getRelativePosition:function(t,e,r,n){var i=Lo(t,e,r,n);return{x:i.e,y:i.f}},arrayToRawPath:function(t,e){var r=Mo(Mo([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&Ro(r),["cubic"===e.type?r:ts(r,e.curviness)]}};function Xo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(yo||"undefined"!=typeof window&&(yo=window.gsap)&&yo.registerPlugin&&yo)&&yo.registerPlugin(zo);
/*!
 * Draggable 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */
var jo,Yo,qo,Go,Vo,Ho,$o,Uo,Wo,Qo,Zo,Jo,Ko,ta,ea,ra,na,ia,sa,oa,aa,ua,la=0,pa=function(){return"undefined"!=typeof window},ca=function(){return jo||pa()&&(jo=window.gsap)&&jo.registerPlugin&&jo},ha=function(t){return"function"==typeof t},da=function(t){return"object"==typeof t},fa=function(t){return void 0===t},ga=function(){return!1},_a="transform",ma="transformOrigin",Da=function(t){return Math.round(1e4*t)/1e4},va=Array.isArray,ya=function(t,e){var r=qo.createElementNS?qo.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):qo.createElement(t);return r.style?r:qo.createElement(t)},xa=180/Math.PI,ba=1e20,wa=new Do,Ca=Date.now||function(){return(new Date).getTime()},Fa=[],Ea={},Ta=0,Sa=/^(?:a|input|textarea|button|select)$/i,Ma=0,Aa={},Ra={},Oa=function(t,e){var r,n={};for(r in t)n[r]=e?t[r]*e:t[r];return n},Pa=function t(e,r){for(var n,i=e.length;i--;)r?e[i].style.touchAction=r:e[i].style.removeProperty("touch-action"),(n=e[i].children)&&n.length&&t(n,r)},ka=function(){return Fa.forEach((function(t){return t()}))},Ba=function(){return!Fa.length&&jo.ticker.remove(ka)},La=function(t){for(var e=Fa.length;e--;)Fa[e]===t&&Fa.splice(e,1);jo.to(Ba,{overwrite:!0,delay:15,duration:0,onComplete:Ba,data:"_draggable"})},Na=function(t,e,r,n){if(t.addEventListener){var i=Ko[e];n=n||(Zo?{passive:!1}:null),t.addEventListener(i||e,r,n),i&&e!==i&&t.addEventListener(e,r,n)}},Ia=function(t,e,r,n){if(t.removeEventListener){var i=Ko[e];t.removeEventListener(i||e,r,n),i&&e!==i&&t.removeEventListener(e,r,n)}},za=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},Xa=function t(e){ta=e.touches&&la<e.touches.length,Ia(e.target,"touchend",t)},ja=function(t){ta=t.touches&&la<t.touches.length,Na(t.target,"touchend",Xa)},Ya=function(t){return Yo.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},qa=function(t){return Yo.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},Ga=function t(e,r){Na(e,"scroll",r),Ha(e.parentNode)||t(e.parentNode,r)},Va=function t(e,r){Ia(e,"scroll",r),Ha(e.parentNode)||t(e.parentNode,r)},Ha=function(t){return!(t&&t!==Go&&9!==t.nodeType&&t!==qo.body&&t!==Yo&&t.nodeType&&t.parentNode)},$a=function(t,e){var r="x"===e?"Width":"Height",n="scroll"+r,i="client"+r;return Math.max(0,Ha(t)?Math.max(Go[n],Vo[n])-(Yo["inner"+r]||Go[i]||Vo[i]):t[n]-t[i])},Ua=function t(e,r){var n=$a(e,"x"),i=$a(e,"y");Ha(e)?e=Ra:t(e.parentNode,r),e._gsMaxScrollX=n,e._gsMaxScrollY=i,r||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},Wa=function(t,e,r){var n=t.style;n&&(fa(n[e])&&(e=Wo(e,t)||e),null==r?n.removeProperty&&n.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):n[e]=r)},Qa=function(t){return Yo.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Za={},Ja=function(t){if(t===Yo)return Za.left=Za.top=0,Za.width=Za.right=Go.clientWidth||t.innerWidth||Vo.clientWidth||0,Za.height=Za.bottom=(t.innerHeight||0)-20<Go.clientHeight?Go.clientHeight:t.innerHeight||Vo.clientHeight||0,Za;var e=t.ownerDocument||qo,r=fa(t.pageX)?t.nodeType||fa(t.left)||fa(t.top)?Qo(t)[0].getBoundingClientRect():t:{left:t.pageX-qa(e),top:t.pageY-Ya(e),right:t.pageX-qa(e)+1,bottom:t.pageY-Ya(e)+1};return fa(r.right)&&!fa(r.width)?(r.right=r.left+r.width,r.bottom=r.top+r.height):fa(r.width)&&(r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}),r},Ka=function(t,e,r){var n,i=t.vars,s=i[r],o=t._listeners[e];return ha(s)&&(n=s.apply(i.callbackScope||t,i[r+"Params"]||[t.pointerEvent])),o&&!1===t.dispatchEvent(e)&&(n=!1),n},tu=function(t,e){var r,n,i,s=Qo(t)[0];return s.nodeType||s===Yo?ru(s,e):fa(t.left)?{left:n=t.min||t.minX||t.minRotation||0,top:r=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-n,height:(t.max||t.maxY||0)-r}:(i={x:0,y:0},{left:t.left-i.x,top:t.top-i.y,width:t.width,height:t.height})},eu={},ru=function(t,e){e=Qo(e)[0];var r,n,i,s,o,a,u,l,p,c,h,d,f,g=t.getBBox&&t.ownerSVGElement,_=t.ownerDocument||qo;if(t===Yo)i=Ya(_),n=(r=qa(_))+(_.documentElement.clientWidth||t.innerWidth||_.body.clientWidth||0),s=i+((t.innerHeight||0)-20<_.documentElement.clientHeight?_.documentElement.clientHeight:t.innerHeight||_.body.clientHeight||0);else{if(e===Yo||fa(e))return t.getBoundingClientRect();r=i=0,g?(h=(c=t.getBBox()).width,d=c.height):(t.viewBox&&(c=t.viewBox.baseVal)&&(r=c.x||0,i=c.y||0,h=c.width,d=c.height),h||(c="border-box"===(f=Qa(t)).boxSizing,h=(parseFloat(f.width)||t.clientWidth||0)+(c?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),d=(parseFloat(f.height)||t.clientHeight||0)+(c?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),n=h,s=d}return t===e?{left:r,top:i,width:n-r,height:s-i}:(a=(o=vo(e,!0).multiply(vo(t))).apply({x:r,y:i}),u=o.apply({x:n,y:i}),l=o.apply({x:n,y:s}),p=o.apply({x:r,y:s}),{left:r=Math.min(a.x,u.x,l.x,p.x),top:i=Math.min(a.y,u.y,l.y,p.y),width:Math.max(a.x,u.x,l.x,p.x)-r,height:Math.max(a.y,u.y,l.y,p.y)-i})},nu=function(t,e,r,n,i,s){var o,a,u,l={};if(e)if(1!==i&&e instanceof Array){if(l.end=o=[],u=e.length,da(e[0]))for(a=0;a<u;a++)o[a]=Oa(e[a],i);else for(a=0;a<u;a++)o[a]=e[a]*i;r+=1.1,n-=1.1}else ha(e)?l.end=function(r){var n,s,o=e.call(t,r);if(1!==i)if(da(o)){for(s in n={},o)n[s]=o[s]*i;o=n}else o*=i;return o}:l.end=e;return(r||0===r)&&(l.max=r),(n||0===n)&&(l.min=n),s&&(l.velocity=0),l},iu=function t(e){var r;return!(!e||!e.getAttribute||e===Vo)&&(!("true"!==(r=e.getAttribute("data-clickable"))&&("false"===r||!Sa.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||t(e.parentNode))},su=function(t,e){for(var r,n=t.length;n--;)(r=t[n]).ondragstart=r.onselectstart=e?null:ga,jo.set(r,{lazy:!0,userSelect:e?"text":"none"})},ou=function t(e){return"fixed"===Qa(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},au=function(t,e){t=jo.utils.toArray(t)[0],e=e||{};var r,n,i,s,o,a,u=document.createElement("div"),l=u.style,p=t.firstChild,c=0,h=0,d=t.scrollTop,f=t.scrollLeft,g=t.scrollWidth,_=t.scrollHeight,m=0,D=0,v=0;aa&&!1!==e.force3D?(o="translate3d(",a="px,0px)"):_a&&(o="translate(",a="px)"),this.scrollTop=function(t,e){if(!arguments.length)return-this.top();this.top(-t,e)},this.scrollLeft=function(t,e){if(!arguments.length)return-this.left();this.left(-t,e)},this.left=function(r,n){if(!arguments.length)return-(t.scrollLeft+h);var i=t.scrollLeft-f,s=h;if((i>2||i<-2)&&!n)return f=t.scrollLeft,jo.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-f),void(e.onKill&&e.onKill());(r=-r)<0?(h=r-.5|0,r=0):r>D?(h=r-D|0,r=D):h=0,(h||s)&&(this._skip||(l[_a]=o+-h+"px,"+-c+a),h+m>=0&&(l.paddingRight=h+m+"px")),t.scrollLeft=0|r,f=t.scrollLeft},this.top=function(r,n){if(!arguments.length)return-(t.scrollTop+c);var i=t.scrollTop-d,s=c;if((i>2||i<-2)&&!n)return d=t.scrollTop,jo.killTweensOf(this,{top:1,scrollTop:1}),this.top(-d),void(e.onKill&&e.onKill());(r=-r)<0?(c=r-.5|0,r=0):r>v?(c=r-v|0,r=v):c=0,(c||s)&&(this._skip||(l[_a]=o+-h+"px,"+-c+a)),t.scrollTop=0|r,d=t.scrollTop},this.maxScrollTop=function(){return v},this.maxScrollLeft=function(){return D},this.disable=function(){for(p=u.firstChild;p;)s=p.nextSibling,t.appendChild(p),p=s;t===u.parentNode&&t.removeChild(u)},this.enable=function(){if((p=t.firstChild)!==u){for(;p;)s=p.nextSibling,u.appendChild(p),p=s;t.appendChild(u),this.calibrate()}},this.calibrate=function(e){var s,o,a,p=t.clientWidth===r;d=t.scrollTop,f=t.scrollLeft,p&&t.clientHeight===n&&u.offsetHeight===i&&g===t.scrollWidth&&_===t.scrollHeight&&!e||((c||h)&&(o=this.left(),a=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),s=Qa(t),p&&!e||(l.display="block",l.width="auto",l.paddingRight="0px",(m=Math.max(0,t.scrollWidth-t.clientWidth))&&(m+=parseFloat(s.paddingLeft)+(ua?parseFloat(s.paddingRight):0))),l.display="inline-block",l.position="relative",l.overflow="visible",l.verticalAlign="top",l.boxSizing="content-box",l.width="100%",l.paddingRight=m+"px",ua&&(l.paddingBottom=s.paddingBottom),r=t.clientWidth,n=t.clientHeight,g=t.scrollWidth,_=t.scrollHeight,D=t.scrollWidth-r,v=t.scrollHeight-n,i=u.offsetHeight,l.display="block",(o||a)&&(this.left(o),this.top(a)))},this.content=u,this.element=t,this._skip=!1,this.enable()},uu=function(t){if(pa()&&document.body){var e=window&&window.navigator;Yo=window,qo=document,Go=qo.documentElement,Vo=qo.body,Ho=ya("div"),ia=!!window.PointerEvent,($o=ya("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",na="grab"===$o.style.cursor?"grab":"move",ea=e&&-1!==e.userAgent.toLowerCase().indexOf("android"),Jo="ontouchstart"in Go&&"orientation"in Yo||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),n=ya("div"),s=(i=ya("div")).style,o=Vo,s.display="inline-block",s.position="relative",n.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",n.appendChild(i),o.appendChild(n),r=i.offsetHeight+18>n.scrollHeight,o.removeChild(n),ua=r,Ko=function(t){for(var e=t.split(","),r=(("onpointerdown"in Ho?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Ho?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(",")),n={},i=4;--i>-1;)n[e[i]]=r[i],n[r[i]]=e[i];try{Go.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){Zo=1}}))}catch(t){}return n}("touchstart,touchmove,touchend,touchcancel"),Na(qo,"touchcancel",ga),Na(Yo,"touchmove",ga),Vo&&Vo.addEventListener("touchstart",ga),Na(qo,"contextmenu",(function(){for(var t in Ea)Ea[t].isPressed&&Ea[t].endDrag()})),jo=Uo=ca()}var r,n,i,s,o;jo?(ra=jo.plugins.inertia,sa=jo.core.context||function(){},Wo=jo.utils.checkPrefix,_a=Wo(_a),ma=Wo(ma),Qo=jo.utils.toArray,oa=jo.core.getStyleSaver,aa=!!Wo("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},lu=function(t){var e,r;function n(e,r){var i;i=t.call(this)||this,Uo||uu(1),e=Qo(e)[0],i.styles=oa&&oa(e,"transform,left,top"),ra||(ra=jo.plugins.inertia),i.vars=r=Oa(r||{}),i.target=e,i.x=i.y=i.rotation=0,i.dragResistance=parseFloat(r.dragResistance)||0,i.edgeResistance=isNaN(r.edgeResistance)?1:parseFloat(r.edgeResistance)||0,i.lockAxis=r.lockAxis,i.autoScroll=r.autoScroll||0,i.lockedAxis=null,i.allowEventDefault=!!r.allowEventDefault,jo.getProperty(e,"x");var s,o,a,u,l,p,c,h,d,f,g,_,m,D,v,y,x,b,w,C,F,E,T,S,M,A,R,O,P,k,B,L,N,I=(r.type||"x,y").toLowerCase(),z=~I.indexOf("x")||~I.indexOf("y"),X=-1!==I.indexOf("rotation"),j=X?"rotation":z?"x":"left",Y=z?"y":"top",q=!(!~I.indexOf("x")&&!~I.indexOf("left")&&"scroll"!==I),G=!(!~I.indexOf("y")&&!~I.indexOf("top")&&"scroll"!==I),V=r.minimumMovement||2,H=Xo(i),$=Qo(r.trigger||r.handle||e),U={},W=0,Q=!1,Z=r.autoScrollMarginTop||40,J=r.autoScrollMarginRight||40,K=r.autoScrollMarginBottom||40,tt=r.autoScrollMarginLeft||40,et=r.clickableTest||iu,rt=0,nt=e._gsap||jo.core.getCache(e),it=ou(e),st=function(t,r){return parseFloat(nt.get(e,t,r))},ot=e.ownerDocument||qo,at=function(t){return za(t),t.stopImmediatePropagation&&t.stopImmediatePropagation(),!1},ut=function t(r){if(H.autoScroll&&H.isDragging&&(Q||x)){var n,i,s,a,u,l,p,c,d=e,f=15*H.autoScroll;for(Q=!1,Ra.scrollTop=null!=Yo.pageYOffset?Yo.pageYOffset:null!=ot.documentElement.scrollTop?ot.documentElement.scrollTop:ot.body.scrollTop,Ra.scrollLeft=null!=Yo.pageXOffset?Yo.pageXOffset:null!=ot.documentElement.scrollLeft?ot.documentElement.scrollLeft:ot.body.scrollLeft,a=H.pointerX-Ra.scrollLeft,u=H.pointerY-Ra.scrollTop;d&&!i;)n=(i=Ha(d.parentNode))?Ra:d.parentNode,s=i?{bottom:Math.max(Go.clientHeight,Yo.innerHeight||0),right:Math.max(Go.clientWidth,Yo.innerWidth||0),left:0,top:0}:n.getBoundingClientRect(),l=p=0,G&&((c=n._gsMaxScrollY-n.scrollTop)<0?p=c:u>s.bottom-K&&c?(Q=!0,p=Math.min(c,f*(1-Math.max(0,s.bottom-u)/K)|0)):u<s.top+Z&&n.scrollTop&&(Q=!0,p=-Math.min(n.scrollTop,f*(1-Math.max(0,u-s.top)/Z)|0)),p&&(n.scrollTop+=p)),q&&((c=n._gsMaxScrollX-n.scrollLeft)<0?l=c:a>s.right-J&&c?(Q=!0,l=Math.min(c,f*(1-Math.max(0,s.right-a)/J)|0)):a<s.left+tt&&n.scrollLeft&&(Q=!0,l=-Math.min(n.scrollLeft,f*(1-Math.max(0,a-s.left)/tt)|0)),l&&(n.scrollLeft+=l)),i&&(l||p)&&(Yo.scrollTo(n.scrollLeft,n.scrollTop),xt(H.pointerX+l,H.pointerY+p)),d=n}if(x){var g=H.x,_=H.y;X?(H.deltaX=g-parseFloat(nt.rotation),H.rotation=g,nt.rotation=g+"deg",nt.renderTransform(1,nt)):o?(G&&(H.deltaY=_-o.top(),o.top(_)),q&&(H.deltaX=g-o.left(),o.left(g))):z?(G&&(H.deltaY=_-parseFloat(nt.y),nt.y=_+"px"),q&&(H.deltaX=g-parseFloat(nt.x),nt.x=g+"px"),nt.renderTransform(1,nt)):(G&&(H.deltaY=_-parseFloat(e.style.top||0),e.style.top=_+"px"),q&&(H.deltaX=g-parseFloat(e.style.left||0),e.style.left=g+"px")),!h||r||O||(O=!0,!1===Ka(H,"drag","onDrag")&&(q&&(H.x-=H.deltaX),G&&(H.y-=H.deltaY),t(!0)),O=!1)}x=!1},lt=function(t,r){var n,i,s=H.x,a=H.y;e._gsap||(nt=jo.core.getCache(e)),nt.uncache&&jo.getProperty(e,"x"),z?(H.x=parseFloat(nt.x),H.y=parseFloat(nt.y)):X?H.x=H.rotation=parseFloat(nt.rotation):o?(H.y=o.top(),H.x=o.left()):(H.y=parseFloat(e.style.top||(i=Qa(e))&&i.top)||0,H.x=parseFloat(e.style.left||(i||{}).left)||0),(w||C||F)&&!r&&(H.isDragging||H.isThrowing)&&(F&&(Aa.x=H.x,Aa.y=H.y,(n=F(Aa)).x!==H.x&&(H.x=n.x,x=!0),n.y!==H.y&&(H.y=n.y,x=!0)),w&&(n=w(H.x))!==H.x&&(H.x=n,X&&(H.rotation=n),x=!0),C&&((n=C(H.y))!==H.y&&(H.y=n),x=!0)),x&&ut(!0),t||(H.deltaX=H.x-s,H.deltaY=H.y-a,Ka(H,"throwupdate","onThrowUpdate"))},pt=function(t,e,r,n){return null==e&&(e=-ba),null==r&&(r=ba),ha(t)?function(i){var s=H.isPressed?1-H.edgeResistance:1;return t.call(H,(i>r?r+(i-r)*s:i<e?e+(i-e)*s:i)*n)*n}:va(t)?function(n){for(var i,s,o=t.length,a=0,u=ba;--o>-1;)(s=(i=t[o])-n)<0&&(s=-s),s<u&&i>=e&&i<=r&&(a=o,u=s);return t[a]}:isNaN(t)?function(t){return t}:function(){return t*n}},ct=function(){var t,n,i,s;c=!1,o?(o.calibrate(),H.minX=g=-o.maxScrollLeft(),H.minY=m=-o.maxScrollTop(),H.maxX=f=H.maxY=_=0,c=!0):r.bounds&&(t=tu(r.bounds,e.parentNode),X?(H.minX=g=t.left,H.maxX=f=t.left+t.width,H.minY=m=H.maxY=_=0):fa(r.bounds.maxX)&&fa(r.bounds.maxY)?(n=tu(e,e.parentNode),H.minX=g=Math.round(st(j,"px")+t.left-n.left),H.minY=m=Math.round(st(Y,"px")+t.top-n.top),H.maxX=f=Math.round(g+(t.width-n.width)),H.maxY=_=Math.round(m+(t.height-n.height))):(t=r.bounds,H.minX=g=t.minX,H.minY=m=t.minY,H.maxX=f=t.maxX,H.maxY=_=t.maxY),g>f&&(H.minX=f,H.maxX=f=g,g=H.minX),m>_&&(H.minY=_,H.maxY=_=m,m=H.minY),X&&(H.minRotation=g,H.maxRotation=f),c=!0),r.liveSnap&&(i=!0===r.liveSnap?r.snap||{}:r.liveSnap,s=va(i)||ha(i),X?(w=pt(s?i:i.rotation,g,f,1),C=null):i.points?F=function(t,e,r,n,i,s,o){return s=s&&s<ba?s*s:ba,ha(t)?function(a){var u,l,p,c=H.isPressed?1-H.edgeResistance:1,h=a.x,d=a.y;return a.x=h=h>r?r+(h-r)*c:h<e?e+(h-e)*c:h,a.y=d=d>i?i+(d-i)*c:d<n?n+(d-n)*c:d,(u=t.call(H,a))!==a&&(a.x=u.x,a.y=u.y),1!==o&&(a.x*=o,a.y*=o),s<ba&&(l=a.x-h)*l+(p=a.y-d)*p>s&&(a.x=h,a.y=d),a}:va(t)?function(e){for(var r,n,i,o,a=t.length,u=0,l=ba;--a>-1;)(o=(r=(i=t[a]).x-e.x)*r+(n=i.y-e.y)*n)<l&&(u=a,l=o);return l<=s?t[u]:e}:function(t){return t}}(s?i:i.points,g,f,m,_,i.radius,o?-1:1):(q&&(w=pt(s?i:i.x||i.left||i.scrollLeft,g,f,o?-1:1)),G&&(C=pt(s?i:i.y||i.top||i.scrollTop,m,_,o?-1:1))))},ht=function(){H.isThrowing=!1,Ka(H,"throwcomplete","onThrowComplete")},dt=function(){H.isThrowing=!1},ft=function(t,n){var i,s,a,u;t&&ra?(!0===t&&(i=r.snap||r.liveSnap||{},s=va(i)||ha(i),t={resistance:(r.throwResistance||r.resistance||1e3)/(X?10:1)},X?t.rotation=nu(H,s?i:i.rotation,f,g,1,n):(q&&(t[j]=nu(H,s?i:i.points||i.x||i.left,f,g,o?-1:1,n||"x"===H.lockedAxis)),G&&(t[Y]=nu(H,s?i:i.points||i.y||i.top,_,m,o?-1:1,n||"y"===H.lockedAxis)),(i.points||va(i)&&da(i[0]))&&(t.linkedProps=j+","+Y,t.radius=i.radius))),H.isThrowing=!0,u=isNaN(r.overshootTolerance)?1===r.edgeResistance?0:1-H.edgeResistance+.2:r.overshootTolerance,t.duration||(t.duration={max:Math.max(r.minDuration||0,"maxDuration"in r?r.maxDuration:2),min:isNaN(r.minDuration)?0===u||da(t)&&t.resistance>1e3?0:.5:r.minDuration,overshoot:u}),H.tween=a=jo.to(o||e,{inertia:t,data:"_draggable",inherit:!1,onComplete:ht,onInterrupt:dt,onUpdate:r.fastMode?Ka:lt,onUpdateParams:r.fastMode?[H,"onthrowupdate","onThrowUpdate"]:i&&i.radius?[!1,!0]:[]}),r.fastMode||(o&&(o._skip=!0),a.render(1e9,!0,!0),lt(!0,!0),H.endX=H.x,H.endY=H.y,X&&(H.endRotation=H.x),a.play(0),lt(!0,!0),o&&(o._skip=!1))):c&&H.applyBounds()},gt=function(t){var r,n=S;S=vo(e.parentNode,!0),t&&H.isPressed&&!S.equals(n||new Do)&&(r=n.inverse().apply({x:a,y:u}),S.apply(r,r),a=r.x,u=r.y),S.equals(wa)&&(S=null)},_t=function(){var t,r,n,i=1-H.edgeResistance,s=it?qa(ot):0,h=it?Ya(ot):0;z&&(nt.x=st(j,"px")+"px",nt.y=st(Y,"px")+"px",nt.renderTransform()),gt(!1),eu.x=H.pointerX-s,eu.y=H.pointerY-h,S&&S.apply(eu,eu),a=eu.x,u=eu.y,x&&(xt(H.pointerX,H.pointerY),ut(!0)),L=vo(e),o?(ct(),p=o.top(),l=o.left()):(mt()?(lt(!0,!0),ct()):H.applyBounds(),X?(t=e.ownerSVGElement?[nt.xOrigin-e.getBBox().x,nt.yOrigin-e.getBBox().y]:(Qa(e)[ma]||"0 0").split(" "),y=H.rotationOrigin=vo(e).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),lt(!0,!0),r=H.pointerX-y.x-s,n=y.y-H.pointerY+h,l=H.x,p=H.y=Math.atan2(n,r)*xa):(p=st(Y,"px"),l=st(j,"px"))),c&&i&&(l>f?l=f+(l-f)/i:l<g&&(l=g-(g-l)/i),X||(p>_?p=_+(p-_)/i:p<m&&(p=m-(m-p)/i))),H.startX=l=Da(l),H.startY=p=Da(p)},mt=function(){return H.tween&&H.tween.isActive()},Dt=function(){!$o.parentNode||mt()||H.isDragging||$o.parentNode.removeChild($o)},vt=function(t,i){var l;if(!s||H.isPressed||!t||!("mousedown"!==t.type&&"pointerdown"!==t.type||i)&&Ca()-rt<30&&Ko[H.pointerEvent.type])B&&t&&s&&za(t);else{if(M=mt(),N=!1,H.pointerEvent=t,Ko[t.type]?(T=~t.type.indexOf("touch")?t.currentTarget||t.target:ot,Na(T,"touchend",bt),Na(T,"touchmove",yt),Na(T,"touchcancel",bt),Na(ot,"touchstart",ja)):(T=null,Na(ot,"mousemove",yt)),R=null,ia&&T||(Na(ot,"mouseup",bt),t&&t.target&&Na(t.target,"mouseup",bt)),E=et.call(H,t.target)&&!1===r.dragClickables&&!i)return Na(t.target,"change",bt),Ka(H,"pressInit","onPressInit"),Ka(H,"press","onPress"),su($,!0),void(B=!1);var p;if(A=!(!T||q===G||!1===H.vars.allowNativeTouchScrolling||H.vars.allowContextMenu&&t&&(t.ctrlKey||t.which>2))&&(q?"y":"x"),(B=!A&&!H.allowEventDefault)&&(za(t),Na(Yo,"touchforcechange",za)),t.changedTouches?(t=D=t.changedTouches[0],v=t.identifier):t.pointerId?v=t.pointerId:D=v=null,la++,p=ut,Fa.push(p),1===Fa.length&&jo.ticker.add(ka),u=H.pointerY=t.pageY,a=H.pointerX=t.pageX,Ka(H,"pressInit","onPressInit"),(A||H.autoScroll)&&Ua(e.parentNode),!e.parentNode||!H.autoScroll||o||X||!e.parentNode._gsMaxScrollX||$o.parentNode||e.getBBox||($o.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild($o)),_t(),H.tween&&H.tween.kill(),H.isThrowing=!1,jo.killTweensOf(o||e,U,!0),o&&jo.killTweensOf(e,{scrollTo:1},!0),H.tween=H.lockedAxis=null,(r.zIndexBoost||!X&&!o&&!1!==r.zIndexBoost)&&(e.style.zIndex=n.zIndex++),H.isPressed=!0,h=!(!r.onDrag&&!H._listeners.drag),d=!(!r.onMove&&!H._listeners.move),!1!==r.cursor||r.activeCursor)for(l=$.length;--l>-1;)jo.set($[l],{cursor:r.activeCursor||r.cursor||("grab"===na?"grabbing":na)});Ka(H,"press","onPress")}},yt=function(t){var r,n,i,o,l,p,c=t;if(s&&!ta&&H.isPressed&&t){if(H.pointerEvent=t,r=t.changedTouches){if((t=r[0])!==D&&t.identifier!==v){for(o=r.length;--o>-1&&(t=r[o]).identifier!==v&&t.target!==e;);if(o<0)return}}else if(t.pointerId&&v&&t.pointerId!==v)return;T&&A&&!R&&(eu.x=t.pageX-(it?qa(ot):0),eu.y=t.pageY-(it?Ya(ot):0),S&&S.apply(eu,eu),n=eu.x,i=eu.y,((l=Math.abs(n-a))!==(p=Math.abs(i-u))&&(l>V||p>V)||ea&&A===R)&&(R=l>p&&q?"x":"y",A&&R!==A&&Na(Yo,"touchforcechange",za),!1!==H.vars.lockAxisOnTouchScroll&&q&&G&&(H.lockedAxis="x"===R?"y":"x",ha(H.vars.onLockAxis)&&H.vars.onLockAxis.call(H,c)),ea&&A===R))?bt(c):(H.allowEventDefault||A&&(!R||A===R)||!1===c.cancelable?B&&(B=!1):(za(c),B=!0),H.autoScroll&&(Q=!0),xt(t.pageX,t.pageY,d))}else B&&t&&s&&za(t)},xt=function(t,e,r){var n,i,s,o,h,d,D=1-H.dragResistance,v=1-H.edgeResistance,b=H.pointerX,E=H.pointerY,T=p,M=H.x,A=H.y,R=H.endX,O=H.endY,P=H.endRotation,k=x;H.pointerX=t,H.pointerY=e,it&&(t-=qa(ot),e-=Ya(ot)),X?(o=Math.atan2(y.y-e,t-y.x)*xa,(h=H.y-o)>180?(p-=360,H.y=o):h<-180&&(p+=360,H.y=o),H.x!==l||Math.abs(p-o)>V?(H.y=o,s=l+(p-o)*D):s=l):(S&&(d=t*S.a+e*S.c+S.e,e=t*S.b+e*S.d+S.f,t=d),(i=e-u)<V&&i>-V&&(i=0),(n=t-a)<V&&n>-V&&(n=0),(H.lockAxis||H.lockedAxis)&&(n||i)&&((d=H.lockedAxis)||(H.lockedAxis=d=q&&Math.abs(n)>Math.abs(i)?"y":G?"x":null,d&&ha(H.vars.onLockAxis)&&H.vars.onLockAxis.call(H,H.pointerEvent)),"y"===d?i=0:"x"===d&&(n=0)),s=Da(l+n*D),o=Da(p+i*D)),(w||C||F)&&(H.x!==s||H.y!==o&&!X)&&(F&&(Aa.x=s,Aa.y=o,d=F(Aa),s=Da(d.x),o=Da(d.y)),w&&(s=Da(w(s))),C&&(o=Da(C(o)))),c&&(s>f?s=f+Math.round((s-f)*v):s<g&&(s=g+Math.round((s-g)*v)),X||(o>_?o=Math.round(_+(o-_)*v):o<m&&(o=Math.round(m+(o-m)*v)))),(H.x!==s||H.y!==o&&!X)&&(X?(H.endRotation=H.x=H.endX=s,x=!0):(G&&(H.y=H.endY=o,x=!0),q&&(H.x=H.endX=s,x=!0)),r&&!1===Ka(H,"move","onMove")?(H.pointerX=b,H.pointerY=E,p=T,H.x=M,H.y=A,H.endX=R,H.endY=O,H.endRotation=P,x=k):!H.isDragging&&H.isPressed&&(H.isDragging=N=!0,Ka(H,"dragstart","onDragStart")))},bt=function t(n,i){if(s&&H.isPressed&&(!n||null==v||i||!(n.pointerId&&n.pointerId!==v&&n.target!==e||n.changedTouches&&!function(t,e){for(var r=t.length;r--;)if(t[r].identifier===e)return!0}(n.changedTouches,v)))){H.isPressed=!1;var o,a,u,l,p,c=n,h=H.isDragging,d=H.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2),f=jo.delayedCall(.001,Dt);if(T?(Ia(T,"touchend",t),Ia(T,"touchmove",yt),Ia(T,"touchcancel",t),Ia(ot,"touchstart",ja)):Ia(ot,"mousemove",yt),Ia(Yo,"touchforcechange",za),ia&&T||(Ia(ot,"mouseup",t),n&&n.target&&Ia(n.target,"mouseup",t)),x=!1,h&&(W=Ma=Ca(),H.isDragging=!1),La(ut),E&&!d)return n&&(Ia(n.target,"change",t),H.pointerEvent=c),su($,!1),Ka(H,"release","onRelease"),Ka(H,"click","onClick"),void(E=!1);for(a=$.length;--a>-1;)Wa($[a],"cursor",r.cursor||(!1!==r.cursor?na:null));if(la--,n){if((o=n.changedTouches)&&(n=o[0])!==D&&n.identifier!==v){for(a=o.length;--a>-1&&(n=o[a]).identifier!==v&&n.target!==e;);if(a<0&&!i)return}H.pointerEvent=c,H.pointerX=n.pageX,H.pointerY=n.pageY}return d&&c?(za(c),B=!0,Ka(H,"release","onRelease")):c&&!h?(B=!1,M&&(r.snap||r.bounds)&&ft(r.inertia||r.throwProps),Ka(H,"release","onRelease"),ea&&"touchmove"===c.type||-1!==c.type.indexOf("cancel")||(Ka(H,"click","onClick"),Ca()-rt<300&&Ka(H,"doubleclick","onDoubleClick"),l=c.target||e,rt=Ca(),p=function(){rt===P||!H.enabled()||H.isPressed||c.defaultPrevented||(l.click?l.click():ot.createEvent&&((u=ot.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,Yo,1,H.pointerEvent.screenX,H.pointerEvent.screenY,H.pointerX,H.pointerY,!1,!1,!1,!1,0,null),l.dispatchEvent(u)))},ea||c.defaultPrevented||jo.delayedCall(.05,p))):(ft(r.inertia||r.throwProps),H.allowEventDefault||!c||!1===r.dragClickables&&et.call(H,c.target)||!h||A&&(!R||A!==R)||!1===c.cancelable?B=!1:(B=!0,za(c)),Ka(H,"release","onRelease")),mt()&&f.duration(H.tween.duration()),h&&Ka(H,"dragend","onDragEnd"),!0}B&&n&&s&&za(n)},wt=function(t){if(t&&H.isDragging&&!o){var r=t.target||e.parentNode,n=r.scrollLeft-r._gsScrollX,i=r.scrollTop-r._gsScrollY;(n||i)&&(S?(a-=n*S.a+i*S.c,u-=i*S.d+n*S.b):(a-=n,u-=i),r._gsScrollX+=n,r._gsScrollY+=i,xt(H.pointerX,H.pointerY))}},Ct=function(t){var e=Ca(),r=e-rt<100,n=e-W<50,i=r&&P===rt,s=H.pointerEvent&&H.pointerEvent.defaultPrevented,o=r&&k===rt,a=t.isTrusted||null==t.isTrusted&&r&&i;if((i||n&&!1!==H.vars.suppressClickOnDrag)&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),r&&(!H.pointerEvent||!H.pointerEvent.defaultPrevented)&&(!i||a&&!o))return a&&i&&(k=rt),void(P=rt);(H.isPressed||n||r)&&(a&&t.detail&&r&&!s||za(t)),r||n||N||(t&&t.target&&(H.pointerEvent=t),Ka(H,"click","onClick"))},Ft=function(t){return S?{x:t.x*S.a+t.y*S.c+S.e,y:t.x*S.b+t.y*S.d+S.f}:{x:t.x,y:t.y}};return(b=n.get(e))&&b.kill(),i.startDrag=function(t,r){var n,i,s,o;vt(t||H.pointerEvent,!0),r&&!H.hitTest(t||H.pointerEvent)&&(n=Ja(t||H.pointerEvent),i=Ja(e),s=Ft({x:n.left+n.width/2,y:n.top+n.height/2}),o=Ft({x:i.left+i.width/2,y:i.top+i.height/2}),a-=s.x-o.x,u-=s.y-o.y),H.isDragging||(H.isDragging=N=!0,Ka(H,"dragstart","onDragStart"))},i.drag=yt,i.endDrag=function(t){return bt(t||H.pointerEvent,!0)},i.timeSinceDrag=function(){return H.isDragging?0:(Ca()-W)/1e3},i.timeSinceClick=function(){return(Ca()-rt)/1e3},i.hitTest=function(t,e){return n.hitTest(H.target,t,e)},i.getDirection=function(t,r){var n,i,s,o,a,u,c="velocity"===t&&ra?t:da(t)&&!X?"element":"start";return"element"===c&&(a=Ja(H.target),u=Ja(t)),n="start"===c?H.x-l:"velocity"===c?ra.getVelocity(e,j):a.left+a.width/2-(u.left+u.width/2),X?n<0?"counter-clockwise":"clockwise":(r=r||2,i="start"===c?H.y-p:"velocity"===c?ra.getVelocity(e,Y):a.top+a.height/2-(u.top+u.height/2),o=(s=Math.abs(n/i))<1/r?"":n<0?"left":"right",s<r&&(""!==o&&(o+="-"),o+=i<0?"up":"down"),o)},i.applyBounds=function(t,n){var i,s,o,a,u,l;if(t&&r.bounds!==t)return r.bounds=t,H.update(!0,n);if(lt(!0),ct(),c&&!mt()){if(i=H.x,s=H.y,i>f?i=f:i<g&&(i=g),s>_?s=_:s<m&&(s=m),(H.x!==i||H.y!==s)&&(o=!0,H.x=H.endX=i,X?H.endRotation=i:H.y=H.endY=s,x=!0,ut(!0),H.autoScroll&&!H.isDragging))for(Ua(e.parentNode),a=e,Ra.scrollTop=null!=Yo.pageYOffset?Yo.pageYOffset:null!=ot.documentElement.scrollTop?ot.documentElement.scrollTop:ot.body.scrollTop,Ra.scrollLeft=null!=Yo.pageXOffset?Yo.pageXOffset:null!=ot.documentElement.scrollLeft?ot.documentElement.scrollLeft:ot.body.scrollLeft;a&&!l;)u=(l=Ha(a.parentNode))?Ra:a.parentNode,G&&u.scrollTop>u._gsMaxScrollY&&(u.scrollTop=u._gsMaxScrollY),q&&u.scrollLeft>u._gsMaxScrollX&&(u.scrollLeft=u._gsMaxScrollX),a=u;H.isThrowing&&(o||H.endX>f||H.endX<g||H.endY>_||H.endY<m)&&ft(r.inertia||r.throwProps,o)}return H},i.update=function(t,r,n){if(r&&H.isPressed){var i=vo(e),s=L.apply({x:H.x-l,y:H.y-p}),o=vo(e.parentNode,!0);o.apply({x:i.e-s.x,y:i.f-s.y},s),H.x-=s.x-o.e,H.y-=s.y-o.f,ut(!0),_t()}var a=H.x,u=H.y;return gt(!r),t?H.applyBounds():(x&&n&&ut(!0),lt(!0)),r&&(xt(H.pointerX,H.pointerY),x&&ut(!0)),H.isPressed&&!r&&(q&&Math.abs(a-H.x)>.01||G&&Math.abs(u-H.y)>.01&&!X)&&_t(),H.autoScroll&&(Ua(e.parentNode,H.isDragging),Q=H.isDragging,ut(!0),Va(e,wt),Ga(e,wt)),H},i.enable=function(t){var n,i,a,u={lazy:!0};if(!1!==r.cursor&&(u.cursor=r.cursor||na),jo.utils.checkPrefix("touchCallout")&&(u.touchCallout="none"),"soft"!==t){for(Pa($,q===G?"none":r.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||r.allowEventDefault?"manipulation":q?"pan-y":"pan-x"),i=$.length;--i>-1;)a=$[i],ia||Na(a,"mousedown",vt),Na(a,"touchstart",vt),Na(a,"click",Ct,!0),jo.set(a,u),a.getBBox&&a.ownerSVGElement&&q!==G&&jo.set(a.ownerSVGElement,{touchAction:r.allowNativeTouchScrolling||r.allowEventDefault?"manipulation":q?"pan-y":"pan-x"}),r.allowContextMenu||Na(a,"contextmenu",at);su($,!1)}return Ga(e,wt),s=!0,ra&&"soft"!==t&&ra.track(o||e,z?"x,y":X?"rotation":"top,left"),e._gsDragID=n="d"+Ta++,Ea[n]=H,o&&(o.enable(),o.element._gsDragID=n),(r.bounds||X)&&_t(),r.bounds&&H.applyBounds(),H},i.disable=function(t){for(var r,n=H.isDragging,i=$.length;--i>-1;)Wa($[i],"cursor",null);if("soft"!==t){for(Pa($,null),i=$.length;--i>-1;)r=$[i],Wa(r,"touchCallout",null),Ia(r,"mousedown",vt),Ia(r,"touchstart",vt),Ia(r,"click",Ct,!0),Ia(r,"contextmenu",at);su($,!0),T&&(Ia(T,"touchcancel",bt),Ia(T,"touchend",bt),Ia(T,"touchmove",yt)),Ia(ot,"mouseup",bt),Ia(ot,"mousemove",yt)}return Va(e,wt),s=!1,ra&&"soft"!==t&&(ra.untrack(o||e,z?"x,y":X?"rotation":"top,left"),H.tween&&H.tween.kill()),o&&o.disable(),La(ut),H.isDragging=H.isPressed=E=!1,n&&Ka(H,"dragend","onDragEnd"),H},i.enabled=function(t,e){return arguments.length?t?H.enable(e):H.disable(e):s},i.kill=function(){return H.isThrowing=!1,H.tween&&H.tween.kill(),H.disable(),jo.set($,{clearProps:"userSelect"}),delete Ea[e._gsDragID],H},i.revert=function(){this.kill(),this.styles&&this.styles.revert()},~I.indexOf("scroll")&&(o=i.scrollProxy=new au(e,function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}({onKill:function(){H.isPressed&&bt(null)}},r)),e.style.overflowY=G&&!Jo?"auto":"hidden",e.style.overflowX=q&&!Jo?"auto":"hidden",e=o.content),X?U.rotation=1:(q&&(U[j]=1),G&&(U[Y]=1)),nt.force3D=!("force3D"in r)||r.force3D,sa(Xo(i)),i.enable(),i}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.register=function(t){jo=t,uu()},n.create=function(t,e){return Uo||uu(!0),Qo(t).map((function(t){return new n(t,e)}))},n.get=function(t){return Ea[(Qo(t)[0]||{})._gsDragID]},n.timeSinceDrag=function(){return(Ca()-Ma)/1e3},n.hitTest=function(t,e,r){if(t===e)return!1;var n,i,s,o=Ja(t),a=Ja(e),u=o.top,l=o.left,p=o.right,c=o.bottom,h=o.width,d=o.height,f=a.left>p||a.right<l||a.top>c||a.bottom<u;return f||!r?!f:(s=-1!==(r+"").indexOf("%"),r=parseFloat(r)||0,(n={left:Math.max(l,a.left),top:Math.max(u,a.top)}).width=Math.min(p,a.right)-n.left,n.height=Math.min(c,a.bottom)-n.top,!(n.width<0||n.height<0)&&(s?(r*=.01,(i=n.width*n.height)>=h*d*r||i>=a.width*a.height*r):n.width>r&&n.height>r))},n}(function(){function t(t){this._listeners={},this.target=t||this}var e=t.prototype;return e.addEventListener=function(t,e){var r=this._listeners[t]||(this._listeners[t]=[]);~r.indexOf(e)||r.push(e)},e.removeEventListener=function(t,e){var r=this._listeners[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},e.dispatchEvent=function(t){var e,r=this;return(this._listeners[t]||[]).forEach((function(n){return!1===n.call(r,{type:t,target:r.target})&&(e=!1)})),e},t}());!function(t,e){for(var r in e)r in t||(t[r]=e[r])}(lu.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),lu.zIndex=1e3,lu.version="3.12.5",ca()&&jo.registerPlugin(lu);
/*!
 * VelocityTracker: 3.12.5
 * https://gsap.com
 *
 * Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var pu,cu,hu,du,fu,gu,_u,mu,Du=function(){return pu||"undefined"!=typeof window&&(pu=window.gsap)},vu={},yu=function(t){return mu(t).id},xu=function(t){return vu[yu("string"==typeof t?hu(t)[0]:t)]},bu=function(t){var e,r=fu;if(t-_u>=.05)for(_u=t;r;)((e=r.g(r.t,r.p))!==r.v1||t-r.t1>.2)&&(r.v2=r.v1,r.v1=e,r.t2=r.t1,r.t1=t),r=r._next},wu={deg:360,rad:2*Math.PI},Cu=function(){(pu=Du())&&(hu=pu.utils.toArray,du=pu.utils.getUnit,mu=pu.core.getCache,gu=pu.ticker,cu=1)},Fu=function(t,e,r,n){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=wu[r||du(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=gu.time,n&&(this._next=n,n._prev=this)},Eu=function(){function t(t,e){cu||Cu(),this.target=hu(t)[0],vu[yu(this.target)]=this,this._props={},e&&this.add(e)}t.register=function(t){pu=t,Cu()};var e=t.prototype;return e.get=function(t,e){var r,n,i,s=this._props[t]||console.warn("Not tracking "+t+" velocity.");return r=parseFloat(e?s.v1:s.g(s.t,s.p))-parseFloat(s.v2),(n=s.rCap)&&(r%=n)!=r%(n/2)&&(r=r<0?r+n:r-n),i=r/((e?s.t1:gu.time)-s.t2),Math.round(1e4*i)/1e4},e.getAll=function(){var t,e={},r=this._props;for(t in r)e[t]=this.get(t);return e},e.isTracking=function(t){return t in this._props},e.add=function(t,e){t in this._props||(fu||(gu.add(bu),_u=gu.time),fu=this._props[t]=new Fu(this.target,t,e,fu))},e.remove=function(t){var e,r,n=this._props[t];n&&(e=n._prev,r=n._next,e&&(e._next=r),r?r._prev=e:fu===n&&(gu.remove(bu),fu=0),delete this._props[t])},e.kill=function(t){for(var e in this._props)this.remove(e);t||delete vu[yu(this.target)]},t.track=function(e,r,n){cu||Cu();for(var i,s,o=[],a=hu(e),u=r.split(","),l=(n||"").split(","),p=a.length;p--;){for(i=xu(a[p])||new t(a[p]),s=u.length;s--;)i.add(u[s],l[s]||l[0]);o.push(i)}return o},t.untrack=function(t,e){var r=(e||"").split(",");hu(t).forEach((function(t){var e=xu(t);e&&(r.length?r.forEach((function(t){return e.remove(t)})):e.kill(1))}))},t.isTracking=function(t,e){var r=xu(t);return r&&r.isTracking(e)},t.getVelocity=function(t,e){var r=xu(t);return r&&r.isTracking(e)?r.get(e):console.warn("Not tracking velocity of "+e)},t}();Eu.getByTarget=xu,Du()&&pu.registerPlugin(Eu);
/*!
 * InertiaPlugin 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Tu,Su,Mu,Au,Ru,Ou,Pu,ku,Bu,Lu,Nu,Iu,zu,Xu,ju,Yu=Eu.getByTarget,qu=function(){return Tu||"undefined"!=typeof window&&(Tu=window.gsap)&&Tu.registerPlugin&&Tu},Gu=function(t){return"number"==typeof t},Vu=function(t){return"object"==typeof t},Hu=function(t){return"function"==typeof t},$u=Array.isArray,Uu=function(t){return t},Wu=1e10,Qu=function(t,e,r){for(var n in e)n in t||n===r||(t[n]=e[n]);return t},Zu=function t(e){var r,n,i={};for(r in e)i[r]=Vu(n=e[r])&&!$u(n)?t(n):n;return i},Ju=function(t,e,r,n,i){var s,o,a,u,l=e.length,p=0,c=Wu;if(Vu(t)){for(;l--;){for(a in s=e[l],o=0,t)o+=(u=s[a]-t[a])*u;o<c&&(p=l,c=o)}if((i||Wu)<Wu&&i<Math.sqrt(c))return t}else for(;l--;)(o=(s=e[l])-t)<0&&(o=-o),o<c&&s>=n&&s<=r&&(p=l,c=o);return e[p]},Ku=function(t,e,r,n,i,s,o){if("auto"===t.end)return t;var a,u,l=t.end;if(r=isNaN(r)?Wu:r,n=isNaN(n)?-1e10:n,Vu(e)){if(a=e.calculated?e:(Hu(l)?l(e,o):Ju(e,l,r,n,s))||e,!e.calculated){for(u in a)e[u]=a[u];e.calculated=!0}a=a[i]}else a=Hu(l)?l(e,o):$u(l)?Ju(e,l,r,n,s):parseFloat(l);return a>r?a=r:a<n&&(a=n),{max:a,min:a,unitFactor:t.unitFactor}},tl=function(t,e,r){return isNaN(t[e])?r:+t[e]},el=function(t,e){return.05*e*t/Lu},rl=function(t,e,r){return Math.abs((e-t)*Lu/r/.05)},nl={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},il=function(t,e,r,n){if(e.linkedProps){var i,s,o,a,u,l,p=e.linkedProps.split(","),c={};for(i=0;i<p.length;i++)(o=e[s=p[i]])&&(a=Gu(o.velocity)?o.velocity:(u=u||Yu(t))&&u.isTracking(s)?u.get(s):0,l=Math.abs(a/tl(o,"resistance",n)),c[s]=parseFloat(r(t,s))+el(a,l));return c}},sl=function(){(Tu=qu())&&(Mu=Tu.parseEase,Au=Tu.utils.toArray,Pu=Tu.utils.getUnit,Bu=Tu.core.getCache,Nu=Tu.utils.clamp,zu=Tu.core.getStyleSaver,Xu=Tu.core.reverting||function(){},Ru=Mu("power3"),Lu=Ru(.05),ku=Tu.core.PropTween,Tu.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),Ou=Tu.config(),Tu.registerPlugin(Eu),Su=1)},ol={version:"3.12.5",name:"inertia",register:function(t){Tu=t,sl()},init:function(t,e,r,n,i){Su||sl();var s=Yu(t);if("auto"===e){if(!s)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=s.getAll()}this.styles=zu&&"object"==typeof t.style&&zu(t),this.target=t,this.tween=r,Iu=e;var o,a,u,l,p,c,h,d,f,g=t._gsap,_=g.get,m=e.duration,D=Vu(m),v=e.preventOvershoot||D&&0===m.overshoot,y=tl(e,"resistance",Ou.resistance),x=Gu(m)?m:function(t,e,r,n,i,s){if(void 0===r&&(r=10),void 0===n&&(n=.2),void 0===i&&(i=1),void 0===s&&(s=0),"string"==typeof t&&(t=Au(t)[0]),!t)return 0;var o,a,u,l,p,c,h,d,f,g,_=0,m=Wu,D=e.inertia||e,v=Bu(t).get,y=tl(D,"resistance",Ou.resistance);for(o in g=il(t,D,v,y),D)nl[o]||(a=D[o],Vu(a)||((d=d||Yu(t))&&d.isTracking(o)?a=Gu(a)?{velocity:a}:{velocity:d.get(o)}:(l=+a||0,u=Math.abs(l/y))),Vu(a)&&(l=Gu(a.velocity)?a.velocity:(d=d||Yu(t))&&d.isTracking(o)?d.get(o):0,u=Nu(n,r,Math.abs(l/tl(a,"resistance",y))),c=(p=parseFloat(v(t,o))||0)+el(l,u),"end"in a&&(a=Ku(a,g&&o in g?g:c,a.max,a.min,o,D.radius,l),s&&(Iu===e&&(Iu=D=Zu(e)),D[o]=Qu(a,D[o],"end"))),"max"in a&&c>+a.max+1e-10?(f=a.unitFactor||Ou.unitFactors[o]||1,(h=p>a.max&&a.min!==a.max||l*f>-15&&l*f<45?n+.1*(r-n):rl(p,a.max,l))+i<m&&(m=h+i)):"min"in a&&c<+a.min-1e-10&&(f=a.unitFactor||Ou.unitFactors[o]||1,(h=p<a.min&&a.min!==a.max||l*f>-45&&l*f<15?n+.1*(r-n):rl(p,a.min,l))+i<m&&(m=h+i)),h>_&&(_=h)),u>_&&(_=u));return _>m&&(_=m),_>r?r:_<n?n:_}(t,e,D&&m.max||10,D&&m.min||.2,D&&"overshoot"in m?+m.overshoot:v?0:1,!0);for(o in e=Iu,Iu=0,f=il(t,e,_,y),e)nl[o]||(a=e[o],Hu(a)&&(a=a(n,t,i)),Gu(a)?p=a:Vu(a)&&!isNaN(a.velocity)?p=+a.velocity:s&&s.isTracking(o)?p=s.get(o):console.warn("ERROR: No velocity was defined for "+t+" property: "+o),c=el(p,x),d=0,u=_(t,o),l=Pu(u),u=parseFloat(u),Vu(a)&&(h=u+c,"end"in a&&(a=Ku(a,f&&o in f?f:h,a.max,a.min,o,e.radius,p)),"max"in a&&+a.max<h?v||a.preventOvershoot?c=a.max-u:d=a.max-u-c:"min"in a&&+a.min>h&&(v||a.preventOvershoot?c=a.min-u:d=a.min-u-c)),this._props.push(o),this.styles&&this.styles.save(o),this._pt=new ku(this._pt,t,o,u,0,Uu,0,g.set(t,o,this)),this._pt.u=l||0,this._pt.c1=c,this._pt.c2=d);return r.duration(x),1},render:function(t,e){var r,n=e._pt;if((t=Ru(e.tween._time/e.tween._dur))||!Xu())for(;n;)n.set(n.t,n.p,(r=n.s+n.c1*t+n.c2*t*t,Math.round(1e4*r)/1e4+n.u),n.d,t),n=n._next;else e.styles.revert()}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach((function(t){return ol[t]=Eu[t]})),qu()&&Tu.registerPlugin(ol),qn.registerPlugin(Ue,Gn,Ne,Ne,Yn,gi,ks,ps,Ys,Js,zo,lu,ol),window._tpt??={};var al=ju=window.punchgs=window.tpGS=_tpt;for(var ul in _tpt.gsap=qn,_tpt.TweenLite=Ue,_tpt.TweenMax=Gn,_tpt.TimelineLite=Ne,_tpt.TimelineMax=Ne,_tpt.CSSPlugin=Yn,_tpt.SplitText=gi,_tpt.motionPath=zo,_tpt.CustomEase=ps,_tpt.CustomBounce=Ys,_tpt.CustomWiggle=Js,_tpt.DrawSVGPlugin=ks,_tpt.draggable=lu,_tpt.Inertia=ol,_tpt.RAD2DEG=180/Math.PI,_tpt.DEG2RAD=Math.PI/180,_tpt.gsap.config({nullTargetWarn:!1}),
/*!FallBack for old and new Eases*/
_tpt.eases=_tpt.gsap.parseEase(),_tpt.eases)_tpt.eases.hasOwnProperty(ul)&&void 0===al[ul]&&(al[ul]=_tpt.eases[ul]
/*! FallBack for Essential Grid */);void 0!==ju&&void 0!==ju.TweenLite&&void 0===ju.TweenLite.lagSmoothing&&(ju.TweenLite.lagSmoothing=function(){}),_tpt.CustomEase.create("late","M0,0,C0,0,0.474,0.078,0.724,0.26,0.969,0.438,1,1,1,1"),_tpt.CustomEase.create("late2","M0,0 C0,0 0.738,-0.06 0.868,0.22 1,0.506 1,1 1,1 "),_tpt.CustomEase.create("late3","M0,0,C0,0,0.682,0.157,0.812,0.438,0.944,0.724,1,1,1,1"),_tpt.SFXBounceLite=_tpt.CustomBounce.create("SFXBounceLite",{strength:.3,squash:1,squashID:"SFXBounceLite-squash"}),_tpt.SFXBounceSolid=_tpt.CustomBounce.create("SFXBounceSolid",{strength:.5,squash:2,squashID:"SFXBounceSolid-squash"}),_tpt.SFXBounceStrong=_tpt.CustomBounce.create("SFXBounceStrong",{strength:.7,squash:3,squashID:"SFXBounceStrong-squash"}),_tpt.SFXBounceExtrem=_tpt.CustomBounce.create("SFXBounceExtrem",{strength:.9,squash:4,squashID:"SFXBounceExtrem-squash"}),_tpt.BounceLite=_tpt.CustomBounce.create("BounceLite",{strength:.3}),_tpt.BounceSolid=_tpt.CustomBounce.create("BounceSolid",{strength:.5}),_tpt.BounceStrong=_tpt.CustomBounce.create("BounceStrong",{strength:.7}),_tpt.BounceExtrem=_tpt.CustomBounce.create("BounceExtrem",{strength:.9}),_tpt.R=_tpt.R||{},_tpt.R.tpgsap=_tpt.extend?_tpt.extend(_tpt.R.tpgsap,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("tpGSAPReady"))})();
// source --> //morgezi.com/wp-content/plugins/revslider/public/js/sr7.js?ver=6.7.35 
/*!
╔══════════════════════════════════════════════════════════════════════════════╗
║                                                                              ║
║  PLUGIN:      SLIDER REVOLUTION 7.0                                          ║
║  MODULE:      MAIN PAGE MODULE											   ║
║  VERSION:     1.0.0                                                          ║
║  DATE:        2023-01-03                                                     ║
║  AUTHOR:      Krisztian H. & Sahil P.                                        ║
║  COMPANY:     ThemePunch OHG.                                                ║
║                                                                              ║
╠══════════════════════════════════════════════════════════════════════════════╣
║                                                                              ║
║  UPDATES & DOCS:  https://www.themepunch.com/support-center                  ║
║  GET LICENSE:    https://www.themepunch.com/links/slider_revolution_wordpre  ║
║                               ss_regular_license                             ║
║                                                                              ║
╠══════════════════════════════════════════════════════════════════════════════╣
║                                                                              ║
║  LICENSE:                                                                    ║
║  Copyright (c) 2023, ThemePunch. All rights reserved.                        ║
║  This work is subject to the terms at:                                       ║
║  https://www.themepunch.com/links/slider_revolution_wordpress_regular_licen  ║
║                               se (Regular / Extended)                        ║
║                                                                              ║
╚══════════════════════════════════════════════════════════════════════════════╝
*/
!function(){"use strict";window.SR7??={},window._tpt??={},SR7.F??={},SR7.G??={},SR7.G.breakPoints??=[1600,1240,1024,778,480],SR7.version="Slider Revolution 7.0.0",SR7.F.init=function(){if(void 0===_tpt.removeEmptyTags)return setTimeout(SR7.F.init,49);if(SR7.initialised)return SR7.E.elementorBackend&&_tpt.checkResources(["DOM","sr7min","module","tpgsap","canvas","draw","save","csssr7"]).then((()=>{SR7.F.module.collect()})),void(window.vc_js&&_tpt.checkResources(["DOM","sr7min","module","tpgsap","canvas","draw","save","csssr7"]).then((()=>{let e=333;const t=setInterval((()=>{(document.querySelector(".vc_rev_slider")||e--<0)&&(SR7.F.module.collect(),clearInterval(t))}),100)})));const e=document.getElementsByClassName("rs-p-wp-fix");Array.from(e).forEach((e=>{null!==e.parentNode&&void 0!==e.parentNode&&(_tpt.removeEmptyTags(e.querySelectorAll("span")),_tpt.removeEmptyTags(e.parentNode.querySelectorAll('p:not([role="status"])')))}));let t=!0;for(let e in SR7.PMH){if(!_tpt.hop(SR7.PMH,e))continue;t=!0===SR7.PMH[e].state,SR7.PMH[e].cn>99&&SR7.PMH[e].fn()}if(t&&(SR7.devMode||2===_tpt.R?.module?.status)){SR7.initialised=!0,_tpt.regResource({id:"DOM"});for(let e of SR7.E.modules)SR7.E.resources[e]??=SR7.E.plugin_url+"public/js/"+e+".js";for(let e of SR7.E.libs)SR7.E.resources[e]??=SR7.E.plugin_url+"public/js/libs/"+e.toLowerCase()+".js";for(let e of SR7.E.css)SR7.E.resources[e]??=SR7.E.plugin_url+"public/css/"+e.replace("css","sr7.")+".css";SR7.E.resources.csssr7=SR7.E.plugin_url+"public/css/sr7.css";for(let e in SR7.E.resources)_tpt.hop(SR7.E.resources,e)&&("css"==SR7.E.resources[e].slice(-3)?_tpt.regResource({id:e,css:SR7.E.resources[e]}):_tpt.regResource({id:e,url:SR7.E.resources[e]}));2!==_tpt.R?.csssr7?.status&&"1"===getComputedStyle(document.body).getPropertyValue("--sr-7-css-loaded")&&(_tpt.R.csssr7={status:2}),_tpt.checkResources(["DOM","sr7min","module","tpgsap","canvas","draw","save","csssr7"]).then((()=>{SR7.F.module.collect()}))}else setTimeout(SR7.F.init,19)},SR7.F.regAddonResources=e=>{for(let t in e)if(_tpt.hop(e,t)){let s=t.replace("revslider-","").replace("-addon","");SR7.E.resources[s]=e[t],"css"==SR7.E.resources[s].slice(-3)?_tpt.regResource({id:s,css:SR7.E.resources[t]}):_tpt.regResource({id:s,url:SR7.E.resources[t]})}},SR7.F.modal={register:e=>{let{alias:t,id:s,speed:i,bg:a,pS:r,h:o,v:l}=e;if(s??=SR7.F.module.getIdByAlias(t),void 0!==s&&void 0!==SR7.M[s]&&SR7.M?.[s]?.c?.module?.dataset?.modal){let e=_tpt.strSetToObj(SR7.M?.[s]?.c?.module?.dataset?.modal??"");void 0!==e.bg&&(a=e.bg),void 0!==e.sp&&(i=parseInt(e.sp)/1e3),e.pS,e.h,e.v}SR7.F.modal.modals??={},SR7.F.modal.modals[t]={id:s,alias:t,speed:i,bg:a,pS:r,h:o,v:l},SR7.M[s]&&(SR7.M[s].modalRegistered=!0)},build:()=>{document.querySelector("sr7-modals")||(SR7.F.modal.wrap=document.createElement("sr7-modals"),SR7.F.modal.wrap.innerHTML="<sr7-modal-underlay></sr7-modal-underlay>",SR7.F.modal.cover=SR7.F.modal.wrap.getElementsByTagName("sr7-modal-underlay")[0],SR7.F.modal.cover.style.opacity=0,SR7.F.modal.cover.style.zIndex=0,document.body.appendChild(SR7.F.modal.wrap),SR7.F.modal.wrap.addEventListener("click",(e=>{"SR7-MODAL-UNDERLAY"!=e.target.tagName&&"SR7-MODALS"!=e.target.tagName||SR7.F.modal.close()})))},updatePos:()=>{let e=SR7.F.module.getIdByAlias(SR7.F.modal.requested),t=SR7.M?.[e]??void 0,s=SR7.F.modal.modals[SR7.F.modal.requested],i=t?.c?.module?.style??void 0;if(null==i)return;i.display="block",i.opacity=1,i.position="absolute";let a=SR7.gV?.({v:t.settings.size.width,id:e,u:0})??t.settings.size.width[0]??"100%";i.width="center"!==s.h?"auto":t.settings.size.fullWidth?"100%":a+"px",i.left="center"!=s.h||t.settings.size.fullWidth?"right"!==s.h?"0px":"auto":"50%",i.right="right"==s.h?"0px":"auto";let r="center"!=s.h||t.settings.size.fullWidth?"0px":"-50%";if(t.dims.module.h<_tpt.winH)return i.transform="middle"==s.v?"translate("+r+", -50%)":"translate("+r+", 0px)",void("center"!=s.h||t.settings.size.fullWidth?i.inset="middle"==s.v?"50% 0px auto":"top"==s.v?"0px 0px auto 0px":"auto 0px 0px 0px":i.inset="middle"==s.v?"50% 50% auto 50%":"top"==s.v?"0px 50% auto 50%":"auto 50% 0px 50%");i.top="0px",i.transform="translate("+r+", 0px)"},underlay:e=>{let t=SR7.M?.[SR7.F.module.getIdByAlias(SR7.F.modal.requested)]??void 0,s=SR7.F.modal?.modals?.[SR7.F.modal.requested],i=t?.c?.module??void 0,a=SR7.F.modal.wrap.style,r=document.body.style;if("show"==e){SR7.F.modal.wrap.style;return SR7.F.modal.cover.style.backgroundColor=s.bg,SR7.F.modal.cover.style.pointerEvents="transparent"==s.bg?"none":"auto",SR7.F.modal.fadeOutAnimation&&SR7.F.modal.fadeOutAnimation.isActive()&&SR7.F.modal.fadeOutAnimation.kill(),a.pointerEvents="transparent"==s.bg?"none":"auto",a.display="block",a.position=SR7.F.modal?.sbt?"absolute":"fixed",a.top=0,a.left=0,a.width="100%",a.height=SR7.F.modal?.sbt?t.dims.moduleRect.height+"px":"100%",a.zIndex=999999,SR7.F.modal.lastDocStyle={width:document.body.style.width,height:document.body.style.height,overflow:document.body.style.overflow,sx:window.scrollX,sy:window.scrollY},r.width="100%",r.height="100%",s.pS||(r.overflow=SR7.F.modal?.sbt?"hidden scroll":"hidden"),SR7.F.modal.updatePos(),void _tpt.gsap.to(SR7.F.modal.cover,s.speed,{opacity:1,ease:"power3.out"})}SR7.F.modal.fadeOutAnimation=_tpt.gsap.to(i?[i,SR7.F.modal.cover]:SR7.F.modal.cover,s.speed,{opacity:0,ease:"power3.out",onComplete:function(){SR7.F.modal.sbt=!1,a.display="none",i.style.display="none",r.height=SR7.F.modal.lastDocStyle.height,r.overflow=SR7.F.modal.lastDocStyle.overflow,r.width=SR7.F.modal.lastDocStyle.width,window.scrollTo(SR7.F.modal.lastDocStyle.sx,SR7.F.modal.lastDocStyle.sy)}})},create:(e,t,s)=>{null==t&&((t=document.createElement("sr7-module")).innerHTML="<sr7-adjuster></sr7-adjuster><sr7-content></sr7-content>"),t.id=s,t.dataset.alias??=e.alias??e.settings?.alias??"",t.dataset.id=e.id,SR7.M??={},SR7.M[s]??={};let i=SR7.M[s];return i.settings??={size:{}},i.c??={},i.c.module??=t,i.c.content??=t.getElementsByTagName("sr7-content")[0],i.c.adjuster??=t.getElementsByTagName("sr7-adjuster")[0],i.dims??={},i.dims.content??={},i.dims.CFC??={},i.dims.module??={},i.states??={inViewPort:!0},i.useAsModal=!0,SR7.F.modal.wrap.appendChild(t),SR7.JSON??={},SR7.JSON[t.id]=e,SR7.F.module.register(t,t.id,!1),t},updateContainers:(e,t)=>{let s=SR7.M[e];s.c??={},s.c.module??=t,s.c.content??=t.getElementsByTagName("sr7-content")[0],s.c.adjuster??=t.getElementsByTagName("sr7-adjuster")[0]},loaded:(e,t,s,i)=>{SR7.F.modal.updateContainers(e,SR7.M[e].c.module),SR7.M[e].useAsModal=!0,SR7.M[e].modalRegistered=!1,SR7.M[e].states??={},SR7.M[e].states.inViewPort=!0;const a=function(t){t.id==e&&SR7.M[t.id]?.settings?.sbt?.use&&(window.dispatchEvent(new Event("resize")),document.removeEventListener("sr.slide.changeRequest",a))};document.addEventListener("sr.slide.changeRequest",a),_tpt.event.trigger("dom","sr.module.loaded",{result:i,id:e,slide:String(t).replace("#","")}),_tpt.event.trigger("dom","sr.modal.loaded",{id:e,alias:s}),_tpt.event.trigger("dom","sr.modal.open",{id:e,alias:s,slide:t})},load:(e,t)=>{let s=SR7.F.module?.getIdByAlias(e),i=e;void 0===SR7?.JSON?.[s]&&void 0===SR7.JSON?.[e]?_tpt.restAPI({action:"get_full_slider_object",version:7,id:s,alias:e,forcealias:null==s,callBack:e=>{if("object"!=typeof e)try{e=JSON.parse(e)}catch(t){e=_tpt.fixResponse(e)}const{success:a,alias:r}=e;if(a){SR7.F.regAddonResources(e.addOns??{});let a=SR7.M?.[s]??SR7.F?.module?.get(SR7.F.module.getIdByAlias(r??i));s??=a?.id??"SR7_"+e.id+"_"+SR7.F?.module?.getNextSuffx(e.id)??1,a=SR7.F.modal.create(e,a?.c?.module,s),SR7.F.modal.requested=r??e.settings?.alias??SR7.F.modal.requested,requestAnimationFrame((function(){SR7.F.modal.loaded(s,t,i,e)}))}else console.log(r+" Could not be Loaded from DB")}}):(SR7.F.modal.wrap.appendChild(SR7.M[s].c.module),SR7.F.modal.loaded(s,t,e,SR7.JSON[s]))},open:(e,t=0)=>{null!=e&&_tpt.checkResources(["DOM","sr7min","module","tpgsap","canvas","draw"]).then((()=>{let s=SR7.F?.module?.getIdByAlias(e);if(!SR7?.M?.[s]?.c?.module||SR7.M?.[s]?.useAsModal||SR7.M?.[s].c.module?.dataset?.modal){if(SR7.F.modal.build(),SR7.F.modal.requested=e,SR7.F.modal.visible=!0,!(SR7.M?.[s]&&SR7.M[s].slides&&SR7.F.modal.modals?.[e]&&SR7.M[s]?.settings))return SR7.F.modal.load(e,t);SR7.F.modal.wrap.contains(SR7.M[s].c.module)||SR7.F.modal.wrap.appendChild(SR7.M[s].c.module),SR7.M[s].useAsModal=!0,SR7.F.modal.underlay("show"),_tpt.gsap.set(SR7.F.modal.wrap,{scrollTop:0}),_tpt.event.trigger("dom","sr.modal.open",{id:s,alias:e,slide:t}),SR7.M[s].states??={},SR7.M[s].states.inViewPort=!0,SR7.F.resetGlobalLayers(s),SR7.F.requestSlide({id:s,slide:t}),SR7.M?.[s]?.settings?.sbt?.use&&window.dispatchEvent(new Event("resize"))}else console.warn("Attempt to open a Slider Module ("+e+") as a Modal detected.\n\nPlease note:\n- You cannot use a Slider Module as a Modal on the same page where the Module is already added as a non-Modal element.\n- To use the Slider Module as a Modal:\n  A) Ensure it is not already present on the page as a non-Modal element allowing the Slider Module to be loaded on demand as a Modal.\n  B) (OR) Modify the Page Module Settings to set 'Pop Up' to true.")}))},close:()=>{SR7.F.modal.visible=!1,void 0!==SR7.F.modal.requested&&("carousel"!==SR7.M[SR7.F.module.getIdByAlias(SR7.F.modal.requested)].settings.type&&SR7.F.closeSlide(SR7.F.module.getIdByAlias(SR7.F.modal.requested)),SR7.F.modal.underlay("hide"),_tpt.event.trigger("dom","sr.modal.close",{id:SR7.F.module.getIdByAlias(SR7.F.modal.requested),alias:SR7.F.modal.requested}))},trigger:(e,t,s)=>{if(null==s)return!1;let i=_tpt.strSetToObj(s);if(null==i)return!1;void 0!==i.sp&&(i.sp=parseInt(i.sp)/1e3);let a=!0;return void 0!==i.co?a=""+_tpt.cookie.get(t.dataset.alias+"_modal_one_time")!="true":"true"==_tpt.cookie.get(t.dataset.alias+"_modal_one_time")&&_tpt.cookie.set(t.dataset.alias+"_modal_one_time",!1,10),a&&(SR7.F.modal.modals??={},SR7.F.modal.modals[e]={alias:e,speed:i.sp,bg:i.bg,pS:i.pS,v:i.v,h:i.h},void 0!==i.t&&(void 0!==i.co&&_tpt.cookie.set(t.dataset.alias+"_modal_one_time",!0,i.co),setTimeout((function(){SR7.F.modal.open(e)}),parseInt(i.t))),void 0===i.so&&void 0===i.s||(_tpt.scrollObserver.observe(window),window.observSR7Globals??={},i.so=void 0!==i.s?i.s:i.so,window.observSR7Globals[e]={params:{alias:e,element:i.so.includes("#")?document.querySelector(i.so)??void 0:void 0,co:i.co,offset:parseInt(i.so??0)},callback:e=>{let{alias:s,element:i,offset:a,co:r}=e;null!=window.observSR7Globals[s]&&(void 0!==i?i.getBoundingClientRect().top<=_tpt.winH/2:a<=_tpt.scrollObserver.y)&&(void 0!==r&&_tpt.cookie.set(t.dataset.alias+"_modal_one_time",!0,r),SR7.F.modal.open(s),delete window.observSR7Globals[s])}},_tpt.scrollObserver.run(window))),void 0!==i.e&&document.addEventListener(i.e,(function(t){SR7.F.modal.open(e,parseInt(t?.detail?.slide||1)-1)})),"t"==i.ha&&void 0!==t&&(window.location.hash=="#"+t.dataset.alias&&setTimeout((function(){SR7.F.modal.open(e)}),500),window.addEventListener("hashchange",(function(){window.location.hash==i.ha&&SR7.F.modal.open(e)}))),!0}};class e{constructor(e){return this.element=document.getElementById(e),this}bind(e,t){return this.element.addEventListener(e,t),this}unbind(e,t){return this.element.removeEventListener(e,t),this}on(e,t){return this.element.addEventListener(e,t),this}off(e,t){return this.element.removeEventListener(e,t),this}one(e,t){const s=i=>{t(i),this.element.removeEventListener(e,s)};return this.element.addEventListener(e,s),this}find(e){return Array.from(this.element.querySelectorAll(e))}wrap(){console.log("jQuery is not supported")}revgetparallaxproc(){return SR7.M[this.element.id].scrollProc}revaddcallback(e){SR7.M[this.element.id].c.callBacks??=[],SR7.M[this.element.id].c.callBacks.push(e)}getRSVersion(){return SR7.version}scroll(e,t=400,s="power3.out"){SR7.F.scrollToId({id:this.element.id,offset:e,action:"scrollunder",anchor:this.element.id,speed:t,ease:s})}redraw(){SR7.F.updateModuleDims(this.element.id,!0,!0)}removeSlide(e){let t=SR7.M[this.element.id].slideOrder.indexOf(e),s=this.element.id;SR7.M[s].slideOrder.splice(t,1),SR7.M[s].slides[e]?.slide?.slideshow?.hfn||SR7.M[s].navLen--,SR7.M[s].len--,SR7.M[s].current.id==e&&SR7.F.requestSlide({id:s,slide:"+1"}),SR7.M[s].c.slides[e].remove(),delete SR7.M[s].slides[e],delete SR7.M[s].c.slides[e];for(let t of["bullets","thumbs","tabs"])if(SR7.M[s].c.nav?.[t]?.elements){let i=0;for(let a of SR7.M[s].c.nav[t].elements){if(a.dataset.key==e){a.remove();break}i++}SR7.M[s].c.nav[t].elements.splice(i,1)}SR7.F.navigation.update(s)}modal(){}start(){SR7.F.runModule(this.element.id)}playScene(e,t){let{skey:s,id:i,lkey:a}=SR7.F.getLayer(e),r=SR7.M?.[i]?.slides?.[s]?.layers?.[a].tl?.[t];return!!r&&(SR7.F.animateLayers({id:i,skey:s,layers:[a],scene:t,caller:"action"}),{id:i,skey:s,layers:[a],scene:t,caller:"action"})}goToFrame(e){if(null!=e&&null!=e.layerid&&null!=e.frame)return this.playScene(e.layerid,e.frame)}pause(){SR7.slideShow.pause(this.element.id)}forcedPause(){SR7.slideShow.pause(this.element.id,!0)}resume(){SR7.slideShow.resume(this.element.id)}nextSlide(){SR7.F.requestSlide({id:this.element.id,slide:"+1"})}prevSlide(){SR7.F.requestSlide({id:this.element.id,slide:"-1"})}currentSlide(){let e=SR7.M[this.element.id];return{index:e.slideOrder.indexOf(e.current.id),key:e.current.id,order:e.slideOrder.indexOf(e.current.id)+1}}maxSlide(){return SR7.M[this.element.id].len}lastSlide(){return SR7.M[this.element.id].navLen}showSlide(e){let t=SR7.M[this.element.id];SR7.F.requestSlide({id:this.element.id,slide:"first"==e?"#"+t.slideOrder[0]:"last"==e?"#"+t.slideOrder[t.len-1]:"random"==e?Math.round(Math.random()*t.len+1):"#"+(Array.isArray(e)?e[0]:e)})}kill(){SR7.slideShow.pause(this.element.id),_tpt.event.rmAll(this.element),SR7.M[this.element.id].c.module.remove()}}SR7.revapi=e,e.init=function(t){let s=(SR7.M[t].c.module.dataset.id??SR7.M[t].settings.dbid)||(t.includes("SR7_")?t.split("_")[1]:t);return window["revapi"+s]=new e(t),window["revapi"+s].id=t,window["revapi"+s]},SR7.shouldBeInited&&SR7.F.init()}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},void 0!==SR7.F.animateLayers)return;SR7.F.animateLayers=async function(e){let{id:t,skey:s,layers:i,scene:a,caller:r,update:l,subcaller:n,timeto:d,reset:c,ffw:p}=e;const h=SR7.M[t],u=h.slides?.[s]?.slide?.global;if(a??="in",i??=h.c.PO[s],h.c.tl=h.c.tl??{},h.c.tl[s]??={},"update"!==r&&(h.c.tl[s][a]={TL:_tpt.gsap.timeline()}),"action"!==r&&"update"!==r&&!u&&"action"!==n&&("carousel"!==h.settings.type||"all"!==h.settings.carousel.showAllLayers))for(let e in h.c.tl[s])_tpt.hop(h.c.tl[s],e)&&e!=a&&(h.c.tl[s][e]?.TL?.pause(),h.c.tl[s][e].loops&&h.c.tl[s][e]?.loops?.pause());for(let e of i){let{layer:i,c:o}=SR7.F.getLayer({id:t,skey:s,lkey:e});if(null!=o&&("carousel"!=h.settings.type||"update"!=r||"all"!=h.settings.carousel.showAllLayers&&!i.viOC)){if(u){if("out"==a&&!o.animState?.scene)continue;if(o.animState?.scene==a)continue;if(o.gpos=_tpt.inRange(Math.max(0,SR7.M[t].current.index)+1,i.sStart,i.sEnd),"in"==a&&"out"==o.gpos)continue;if("action"!==r&&"parent"!==r&&"out"==a&&"in"==o.gpos)continue;if("action"!==r&&"parent"!==r&&"in"==o.gpos&&"in"==a&&("in"==(o.animState?.scene??"")||"default"!==(o?.animState?.caller??"default")))continue}if("action"==r&&o?.animState?.scene&&o?.tl?.[o?.animState?.scene]&&o.tl[o.animState.scene].TL&&o.tl[o.animState.scene].TL.pause(),c&&"parent"==r&&"action"==n&&"in"==a){for(let e in o.tl)if(_tpt.hop(o.tl,e)&&e!=a)for(let t in o.tl[e])_tpt.hop(o.tl[e],t)&&o.tl[e][t]?.pause(0);o.fxc&&(o.fxitl&&(o.fxitl.pause(0),o.fxotl.pause(1)),o.el.classList.remove("sr7-fx-hidden"))}if("action"===r||"parent"===r||"in"!=a||!SR7.F.inActionEnv(t,s,e)){if("action"==r&&"container"==i.type&&("in"==a||"out"==a)){let i=SR7.F.triggeredChildren(t,s,e),o=SR7.F.getLayer({id:t,skey:s,lkey:e})?.c;null!=c&&1!=c&&!0===o.animState.everCalled||await SR7.F.animateLayers({id:t,skey:s,reset:c,layers:i,scene:a,caller:"parent",subcaller:r}),o.animState.everCalled=!0}if(i?.tl?.[a]||"out"==a&&"slidebg"==i.subtype){let n=void 0!==l&&o.tl?.[a]?.[l]?.progress?o.tl[a][l].progress():0;o.sbt=(h.settings?.sbt?.use??!1)&&"in"==a&&((h.settings?.sbt?.layers??!1)||(i.mod?.s?.ut??!1));let{tl:u,loops:m}=await SR7.F.processFrame({sbt:o.sbt,id:t,c:o,layer:i,reset:c,timeline:i.tl,scene:a,skey:s,lkey:e,caller:r,update:l});if(p&&void 0!==d)return u.time(d);void 0!==l&&0!==n&&u.progress(n),o.sbt&&u.pause(),h.c.tl[s][a].TL.add(u,0),"update"!==r&&void 0!==m&&(h.c.tl[s][a].loops??=_tpt.gsap.timeline(),h.c.tl[s][a].loops.add(m,0)),o.sbt&&(h.sbt??={},h.sbt[s]??={},h.sbt[s][e]={tl:u,so:i.mod?.s?.so??0},_tpt.gsap.to(u,{duration:.01,time:_tpt.gsap.utils.clamp(0,u.duration(),h.sbt.__time)}),m&&(h.sbt[s][e+"_loop"]??={},h.sbt[s][e+"_loop"]={tl:m}))}}}}"update"!=r&&(u||h.c.tl[s][a].TL.eventCallback("onComplete",o.sceneCompleted,[{id:t,scene:a,caller:r,skey:s}]),u||h.c.tl[s][a].TL.eventCallback("onStart",o.sceneStarted,[{id:t,scene:a,caller:r,skey:s}]),!u&&h.slides[s]?.slide?.loop?.u&&h.c.tl[s][a].TL.eventCallback("onUpdate",o.sceneUpdated,[{id:t,scene:a,caller:r,skey:s}]))},SR7.F.processFrame=async function(r){const{timeline:l,scene:n,id:d,layer:c,c:p,caller:h,update:u,skey:m,reset:g,sbt:f}=r,v=l[n],y=_tpt.gsap.timeline();let S;p.tl[n]??={};let b=!1;void 0!==p.mod&&(p.mod.animElem=p.mod.mask?p.el:p.parallax?p.parallax:p.loop?p.loop:p.mask?p.mask:"column"==p.subtype?p.con:p.el);let R=p.loop?"target":p.mask?"mask":"content";if(void 0!==v)for(let r of SR7.D.TLTargetsProcess){if(null==v[r])continue;if(void 0!==u&&r!==u)continue;if("parent"==h&&"loop"==r)continue;p.cache.tl??={},p.cache.tl[r]??="filter"==r?{}:SR7.F.getEmptyAnimObj(1);const l=_tpt.gsap.timeline(),g=void 0!==p.mod&&(!p.parallax||p.mod.mask)&&(p.mod.animElem!==p.el&&"mask"==r||p.mod.animElem==p.el&&"content"==r);for(let u in v[r]){if(!_tpt.hop(v[r],u))continue;if("pers"==u||"orig"==u||"type"==u)continue;let y="filter"==r?["filter"]:"all"==u?SR7.D.animAttr.filter((function(e){return!v[r].hasOwnProperty(e)&&!v[r].hasOwnProperty(SR7.D.animAttrTrans[e])})):"scale"==u?["scaleX","scaleY","skewX","skewY"]:"motionpath"==u?["x","y","z"]:u,S=SR7.F.usePerspective(v[r][u],SR7.M[d].settings.general,v?.content?.pers??"600px");(v.pan||v.filter||v.loop)&&r==R&&(S??=v?.content?.pers??"600px");for(let R in v[r][u]){if("out"==n&&!p.animState?.scene)continue;if("in"==n&&("action"==h||"parent"==h)&&p.animState?.scene&&"out"!=p.animState.scene&&0==R)continue;if("in"==n&&"action"!=h&&"w"==(""+v[r][u][0].t)[0])continue;"in"==n&&0==R&&SR7.F.modify.process(d,"scroll",p.lkey);const w=v[r][u][R],x=SR7.D.splits.indexOf(r)>=0;0==R&&"in"==n&&v[r][u][1]?.t&&parseInt(w?.t)>parseInt(v[r][u][1].t)&&(w.t=v[r][u][1].t),p.splitText??=SR7.F.splitText(c,p);let F={ease:w.e,duration:w.d/1e3,id:p.el.id+"_"+n+"_"+r+"_"+R,immediateRender:"in"===n&&0==R};""+R!="0"&&x&&(F.stagger="center"===w.dir||"edges"===w.dir?SR7.F.offsetStagger({each:(w.delay??5)/100,offset:(w.delay??5)/200,from:w.dir}):SR7.F.offsetStagger({each:(w.delay??5)/100,from:"start"!=w.dir&&"end"!=w.dir||-1!=SR7.dirVal(d,SR7.gV({v:1==R?v[r].all[0].x:w.x,id:d,s:"scale"})).d?w.dir??"start":"start"==w.dir?"end":"end"==w.dir?"start":w.dir??"start"}));let _="words"==r||"lines"==r||"chars"==r?p.splitText[r]:"loop"==r?p.loop:"content"==r&&"image"==p.subtype&&p.colbg?[p.el,p.colbg]:"mask"==r?"column"==p.subtype?[p.mask,p.colbgMask]:p.mask:"row"==p.subtype&&(p.mask||p.loop||"clip"==r&&p.con)?p.con:"column"==p.subtype&&(p.mask||p.loop)?[p.con,p.colbg]:p.el,M=parseInt((""+w.t).replace("w",""))/1e3||0;if("loop"==r&&"filter"==u||"filter"==r||x){if(p.filters??={},(w.fu||void 0!==(p.filters?.simple?.used??void 0))&&("filter"==r&&p.mod?.scroll?.uf&&(p.filters.simple=SR7.F.getFilterStyle(p.mod.scroll,"",p.filters?.simple?.used??void 0)),p.filters.simple=SR7.F.getFilterStyle(w.fu?w:{b:0,r:100,g:0},"",p.filters?.simple?.used??void 0),F.filter=p.filters.simple.filter),(!x&&w.bu||void 0!==(p.filters?.backdrop?.used??void 0))&&(p.filters.backdrop=SR7.F.getFilterStyle(w.bu?w:{b:0,r:100,g:0,s:0,i:0},"b",p.filters?.backdrop?.used??void 0),_tpt.isSafari11||_tpt.isIOS?F["-webkit-backdrop-filter"]=p.filters.backdrop.filter:F.backdropFilter=p.filters.backdrop.filter,S=F.transformPerspective??=v?.content?.pers??"600px"),!x&&null==F.filter&&null==F.backdropFilter&&null==F["-webkit-backdrop-filter"]){l.add(_tpt.gsap.to(_,{}),"out"===n?0:M);continue}"filter"==r&&p.mod?.scroll?.uf&&(_=p.mask?p.mask:p.el,F=SR7.F.modify.get(d,_,F,p,n,R,r,"filter"))}if("clip"==r){if("inherit"==w.c)continue;F["clip-path"]=F["-webkit-clip-path"]=SR7.F.clipEffect(v[r].orig,v[r].type,w.c,w.cb),p.clipPath=!0}else if("pan"==r&&void 0!==c.bg.image){const e=SR7.F.pan.getStep({canvas:p.canvas,x:parseInt(v.pan.all[R].x??0),y:parseInt(v.pan.all[R].y),scale:parseInt(v.pan.all[R].sX)/100,rotate:parseInt(v.pan.all[R].rZ),pos:c.bg.image.pos});void 0!==e&&(F.x=e.x,F.y=e.y,F.scale=e.scale,F.rZ=e.rZ,0==R&&(p.canvas.pan={x:F.x,y:F.y,rZ:F.rZ,scale:F.scale}),_=p.canvas.pan,SR7.M[d].c.pans??={},SR7.M[d].c.pans[p.skey]??=[],SR7.M[d].c.pans[p.skey].includes(p.lkey)||SR7.M[d].c.pans[p.skey].push(p.lkey))}else if("filter"!==r){if("motionpath"!==u||null==w.anchors?(y.includes("x")&&void 0!==w.x&&(F.x=e(d,w,x,p,n,r,"x")),y.includes("y")&&void 0!==w.y&&(F.y=e(d,w,x,p,n,r,"y"))):F.motionPath={type:"thru",curviness:parseInt(w.curv)||2,path:w.anchors,fromCurrent:!1,autoRotate:w.aR??!1,alignOrigin:[.5,.5]},g&&(F.tx=F.x?.()??0,F.ty=F.y?.()??0,y.push("tx"),y.push("ty"),F=SR7.F.modify.get(d,_,F,p,n,R,r,"xy")),y.includes("z")&&void 0!==w.z?F.z=w.z:delete F.z,"mask"==r?(F.overflow=w.oflow??(0==R&&null==v[r][u][1]?.oflow||(1==R&&null==v[r][u][0]?.oflow?"visible":"hidden")),void 0!==c.tr&&(F.rotationX=()=>c.tr?.rX??0,F.rotationY=()=>c.tr?.rY??0,F.rotationZ=()=>c.tr?.rZ??0),p.mod?.scroll?.ut&&(F=SR7.F.modify.get(d,_,F,p,n,R,r,"transform"))):(y.includes("rotationX")&&(void 0!==w.rX||"in"==n&&0==R)&&(F.rotationX=t(d,SR7.F.getSpecialValue(w.rX??0,0,SR7.M[d].lastChangeDir),x)),y.includes("rotationY")&&(void 0!==w.rY||"in"==n&&0==R)&&(F.rotationY=t(d,SR7.F.getSpecialValue(w.rY??0,0,SR7.M[d].lastChangeDir),x)),y.includes("rotationZ")&&(void 0!==w.rZ||"in"==n&&0==R)&&(F.rotationZ=t(d,SR7.F.getSpecialValue(w.rZ??0,0,SR7.M[d].lastChangeDir),x))),_tpt.isSafari11||_tpt.isIOS||void 0===p.ptype||void 0===p.borderW&&void 0===p.borderH||(F.force3D=!0),(void 0!==S||"mask"==r&&(p.mod?.scroll?.ut||p.mod?.mouse?.d3))&&(F.transformPerspective=S??600),(y.includes("scaleX")||y.includes("scaleY")||y.includes("skewX")||y.includes("skewY"))&&(x?(F.scaleX=a(d,s(w.sX||w.scaleX),"scale",s(w.skY||w.skewY)),F.scaleY=a(d,s(w.sY||w.scaleY),"scale",s(w.skY||w.skewY)),F.skewX=a(d,s(w.skX||w.skewX),"skew"),F.skewY=a(d,s(w.skY||w.skewY),"skew")):F=i(F,{sX:w.sX??p.cache.tl[r].scaleX,sY:w.sY??p.cache.tl[r].scaleY,skX:w.skX??p.cache.tl[r].skewX,skY:w.skY??p.cache.tl[r].skewY})),y.includes("opacity")){let e="content"==r&&(p.mod?.scroll?.uf??!1)&&(p.mod?.scroll?.f??0)>0;F[e?"tf":"opacity"]="mask"==r&&c.tr?c.tr.o:x&&"in"==n&&0==R&&"inherit"==w.o?v?.content?.all?.[0]?.o??1:w.o,e&&(F=SR7.F.modify.get(d,_,F,p,n,R,r,"opacity"))}if("content"==r||x){if(!x&&void 0!==w.bgcol){const{gradient:e,bg:t}=0===R&&"in"===n?SR7.F.getBGAnimColor(p.cache?.color?.bg,w.bgcol):SR7.F.getBGAnimColor(w.bgcol,p.cache?.color?.bg??"transparent");e?F.background=t.to:F.backgroundColor=t.to,p.cache??={},p.cache.color??={},p.cache.color.bg=t.to,p.cache.color.bgfrom=n+"_"+r+"_"+R}if(void 0!==w.col)F.color=w.col,x||(p.cache.color.c=w.col,p.cache.color.from=n+"_"+r+"_"+R);else if("action"!=h&&1!=R||"in"!=n||!x&&"idle"===(p?.cache?.color?.from??"idle")){if(!x&&"action"==h&&"in"==n&&"idle"!==(p?.cache?.color?.bgfrom??"idle")){const{gradient:e,bg:t}=SR7.F.getBGAnimColor(c.bg.color,p.cache.color.bg);e?p.cache.color.bg=F.background=t.to:F.backgroundColor=t.to,p.cache.color.bg=t.to,p.cache.color.bgfrom="idle"}}else F.color=()=>SR7.gV({v:c.color,id:d}),x||(p.cache.color.c=F.color,p.cache.color.from="idle")}if("loop"!==r){F.display=(e,t)=>"row"==e.subtype&&t.con&&t.mask?t.conDisplay:"chars"==r||"words"==r?"inline-block":"column"==e.subtype&&(t.mask||t.loop)&&"table-cell"==t.display?"block":t.display,p.mask&&"column"==p.subtype&&_==p.mask&&"table-cell"==F.display&&(F.display="block"),F.visibility=x&&"in"==n?"inherit":"in"==n&&0==R?f||"container"==c.type?"visible":"hidden":"in"==n&&1==R&&SR7.M[d].sbt&&SR7.M[d].settings.migrated&&"hidden"==(p.par?.el?.style?.visibility??"visible")&&"inherit"==p.visibility?"visible":()=>p.visibility,0==R&&"in"==n&&"action"!==h&&"parent"!==h&&(F.x="inherit"==F.x||"function"==typeof F.x&&"inherit"==F.x()?0:F.x,F.y="inherit"==F.y||"function"==typeof F.y&&"inherit"==F.y()?0:F.y),"mask"==r&&(p.cache.tl[r].overflow=F.overflow);for(let e of y)"function"!=typeof F[e]||"inherit"!=F[e]()&&null!=F[e]()||void 0===p.cache.tl?.[r]?.[e]?"inherit"==F[e]||null==F[e]?void 0!==p.cache.tl[r][e]&&(F[e]=p.cache.tl[r][e]):"scaleX"==e&&F.skewX?p.cache.tl[r][e]=w.sX??p.cache.tl[r].scaleX:"scaleY"==e&&F.skewY?p.cache.tl[r][e]=w.sY??p.cache.tl[r].scaleY:p.cache.tl[r][e]=F[e]:F[e]=p.cache.tl[r][e],"inherit"==F[e]&&"visibility"!==e&&delete F[e]}}"in"==n&&1==R&&(p.tl.inFrameShift=M),"action"==h&&"in"==n&&R>0&&(M-=p.tl.inFrameShift),void 0!==p.fxc&&"content"==r&&"c"==(w.fx??"")[0]&&(l.add(SR7.F.getFXCoverAnim(p,w,n,R),"out"===n?0:M),"out"!==n&&p.el.classList.add("sr7-fx-hidden")),!p.backFace&&("clip"==r||"function"==typeof F.rotationX&&Math.abs(F.rotationX?.())>90||Math.abs(F.rotationX)>90||"function"==typeof F.rotationY&&Math.abs(F.rotationY?.())>90||Math.abs(F.rotationY)>90||p.filters?.backdrop?.used&&_tpt.is_mozilla)&&(p.backFace=!0,p.el.style.backfaceVisibility="visible","clip"==r&&p.el.classList.add("sr7-withclip")),b=!0;let k="d"==w.pE||null==w.pE?c.pE||"d":w.pE;if(void 0!==w.rep||1==(p.repeat?.[p.repeat.cur]?.state??0))void 0!==w.rep&&("s"!=w.rep.s&&"se"!=w.rep.s||(p.repeat??={},p.repeat[r+"_"+R+"_"+u]?.tl?.kill(),p.repeat[p.repeat.cur=r+"_"+R+"_"+u]={state:1,at:M,tl:_tpt.gsap.timeline()},p.repeat[p.repeat.cur].tl.eventCallback("onStart",o.frameRepeatStart,[{id:d,skey:m,c:p,scene:n,layer:c,target:r,caller:h,frame:R,sbt:f,pE:k}]),l.add(p.repeat[p.repeat.cur].tl,M)),"e"!=w.rep.s&&"se"!=w.rep.s||(p.repeat[p.repeat.cur].state=2,p.repeat[p.repeat.cur].c=w.rep.c,p.repeat[p.repeat.cur].tl.repeat(w.rep.r??-1),p.repeat[p.repeat.cur].tl.vars.repeatRefresh=w.rep.sh??!0,p.repeat[p.repeat.cur].tl.yoyo(w.rep.y??!1))),void 0!==p.repeat&&(p.repeat[p.repeat.cur].tl.to(_,F,M-p.repeat[p.repeat.cur].at),p.repeat[p.repeat.cur].c&&p.repeat[p.repeat.cur].tl.eventCallback("onRepeat",o.frameRepeat,[{id:d,skey:m,c:p,scene:n,layer:c,target:r,caller:h,frame:R,sbt:f,pE:k}]));else{if(0==R&&"in"===n)void 0!==F.opacity&&(F.opacity=parseFloat(F.opacity)),l.set(_,F,0),l.set(_,F,M),p.animState.frame=0;else{void 0!==F.opacity&&(F.opacity=parseFloat(F.opacity)),1==R&&"in"==n&&0==p.animState.frame&&0==F.duration&&(F.duration=.0075);let e=_tpt.gsap.to(_,F);e.eventCallback("onStart",o.frameStarted,[{id:d,c:p,scene:n,layer:c,target:r,caller:h,frame:R,sbt:f,pE:k}]),f&&e.eventCallback("onUpdate",o.frameUpdated,[{id:d,c:p,scene:n,layer:c,target:r,caller:h,frame:R,sbt:f,pE:k}]),e.eventCallback("onComplete",o.framesCompleted,[{id:d,c:p,scene:n,layer:c,target:r,caller:h,frame:R,sbt:f,pE:k}]),l.add(e,"out"===n?0:M)}"pan"!=r||p.tl.in.pan||"carousel"!=SR7.M[d].settings.type||(l.progress(0),l.paused(!0),requestAnimationFrame((()=>{l.render(0,!1,!0)})))}void 0!==F.modifiers&&(p.mod.coreTween??={},void 0!==F.modifiers.filter&&(p.mod.coreTween.filter??={},p.mod.coreTween.filter[n]=r),void 0!==F.modifiers.x&&(p.mod.coreTween.xy??={},p.mod.coreTween.xy[n]=r),void 0!==F.modifiers.opacity&&(p.mod.coreTween.opacity??={},p.mod.coreTween.opacity[n]=r))}l.eventCallback("onStart",o.layerStarted,[{id:d,c:p,scene:n,layer:c,target:r,caller:h,sbt:f,tl:l}]),l.eventCallback("onUpdate",o.layerUpdated,[{id:d,c:p,scene:n,layer:c,target:r,caller:h,sbt:f,tl:l}]),l.eventCallback("onComplete",o.layerCompleted,[{id:d,c:p,scene:n,layer:c,target:r,caller:h,sbt:f,tl:l}])}"loop"==r?(S??=_tpt.gsap.timeline(),S.add(l,0)):"pan"===r||"pan"==r&&"update"==h||y.add(l,0),p.tl[n][r]=l,p.tl[n].TL=y}if(null==u||"bg"==u)if("out"==n&&"slidebg"==c.subtype)SR7.M[d].c.leavingBG=p;else if(v.bg)if(p.el.style.display=p.display,p.el.style.visibility=p.visibility,b=!0,"slidebg"==c.subtype){if("in"!==n)return;if(void 0!==p.mod&&(p.mod.animElemXY??=p.mask?p.mask:p.el,_tpt.scrollObserver.run(SR7.M[d].c.module,!0),SR7.F.modify.process(d,"scroll")),void 0!==SR7.M[d].c.leavingBG){let e=SR7.M[d].c.leavingBG;e.tl[n]&&(e.tl[n].bg&&e.tl[n].bg.kill(),SR7.M[d].c.tl[e.skey].out.TL.add(e.tl[n].bg=SR7.F.animateBG({timeline:l,c:e,id:d,scene:"out"}),0))}p.tl.in.bg&&p.tl.in.bg.kill(),y.add(p.tl.in.bg=SR7.F.animateBG(r),0),void 0!==SR7.M[d].c.leavingBG&&SR7.M[d].c.leavingBG.temp.TL.totalDuration()<p.temp.TL.totalDuration()&&SR7.M[d].c.leavingBG.temp.TL.duration(p.temp.TL.totalDuration())}else"in"!=n&&"out"!=n||(p.tl[n].bg&&p.tl[n].bg.kill(),y.add(p.tl[n].bg=SR7.F.animateBG(r),0));return b&&(p.animState.scene=n,p.animState.caller=h||"default"),{tl:y,loops:S}},SR7.F.processHover=(e,t)=>{let{c:s,layer:a,id:r}=e;if(void 0!==(s?.cache?.hover??void 0)&&(s.cache?.hover?.requested??"none")==t)return;if(!s.animState.entered||(s.animState?.runningFrames?.length??0)>0)return;let o=parseInt(a.hov.frame.d)/1e3??300;if(o=0==o?.001:o,s.tl_hover&&s.tl_hover.progress&&s.tl_hover.progress()>0){if("idle"==t)return!0!==s.tl_hover.reversed()&&s.tl_hover.reverse(),void(s.cache.hover.requested=t);if("hover"==t)return 1==s.tl_hover.reversed()&&s.tl_hover.play(),void(s.cache.hover.requested=t)}s.cache.hover??={},s.cache.hover.requested=t,s.tl_hover=_tpt.gsap.timeline({data:{id:s.el.id+"_hover"}});const l=a.hov.frame,n=a.hov.radius,d="hover"==t?a.hov.zIndex:a.zIndex,c="hover"==t?a.hov.deco:a?.content?.deco,p="column"==a.subtype&&s.colbg?"colbg":"row"==a.subtype&&s.con?"con":"el";let h={ease:a.hov.frame.e,duration:o};void 0!==l.x&&(h.x=l.x),void 0!==l.y&&(h.y=l.y),void 0!==l.z&&(h.z=l.z),(void 0!==l.rX||void 0!==l.rotationX)&&(h.rotationX=l.rX??l.rotationX??0),(void 0!==l.rY||void 0!==l.rotationY)&&(h.rotationY=l.rY??l.rotationY??0),(void 0!==l.rZ||void 0!==l.rotationZ)&&(h.rotationZ=l.rZ??l.rotationZ??0),void 0!==d&&"auto"!==d&&(h.zIndex=d),"text"==a.type&&void 0!==c&&(h.textDecoration=c);let u,m=s.perspective=SR7.F.usePerspective(l,SR7.M[r].settings.general,600,!0);if(void 0!==m&&s.tl_hover.set(s.el,{transformPerspective:m??600}),h=i(h,l),s.svg&&!a.content?.oC&&void 0!==a.hov.svg&&(void 0!==a.hov.svg.c&&s.tl_hover.to(s.svgPaths.length>0?s.svgPaths:s.el,{ease:h.ease,duration:h.duration,fill:a.hov.svg.c},0),void 0!==a.hov?.svg?.stroke?.c&&"transparent"!==a.hov?.svg?.stroke?.c&&s.tl_hover.to(s.svg,{ease:h.ease,duration:h.duration,stroke:a.hov?.svg?.stroke.c,strokeWidth:parseInt(a.hov?.svg?.stroke.w)+"px",strokeDashoffset:a.hov?.svg?.stroke.o,strokeDasharray:a.hov?.svg?.stroke.d},0)),h.opacity=l.o||l.opacity,a.hov.color?.bg){let{gradient:e,bg:t}=SR7.F.getBGAnimColor(a.hov.color.bg,s.cache?.color?.bg??"transparent",a.hov.color.gAnim);void 0!==s.colbg?(e&&s.tl_hover.set(s.colbg,{background:t.from}),s.tl_hover.to(s.colbg,{ease:h.ease,duration:h.duration,["background"+(e?"":"Color")]:t.to},0)):(t?.from&&-1!==t.from.indexOf("180deg")&&-1!==t.to.indexOf("180deg")&&2===t.from.split("deg").length&&2===t.to.split("deg").length&&(t.from=t.from.replace("180deg,",""),t.to=t.to.replace("180deg,","")),t?.from&&(e&&s.tl_hover.set(s.el,{background:t.from}),!e&&"transparent"==t.from&&s.tl_hover.set(s.el,{background:_tpt.gradient.transToColor(t.to)})),t?.to&&(h["background"+(e?"":"Color")]=t.to))}if(a.hov.color.c!==(s.cache?.color?.c??void 0)&&(h.color=a.hov.color.c),JSON.stringify(a.hov.border)!==JSON.stringify(a.border??{})){const e=a.hov.border;u={duration:h.duration,ease:h.ease,borderColor:e.c??"transparent",borderStyle:null==e.s?"none":"string"==typeof e.s?e.s:SR7.gV({v:e.s??"none",id:r})};for(let t=0;t<4;t++)u[SR7.D.BWID[t]]=_tpt.unitize(SR7.gV({v:e?.w?.[SR7.D.DS[t]]??0??"0px",id:r,f:a.fluid?.tr,m:"round"}))}if(JSON.stringify(a.hov.radius)!==JSON.stringify(a.radius??{})){u??={duration:h.duration,ease:h.ease};for(let e=0;e<4;e++)u[SR7.D.BRAD[e]]=_tpt.unitize(n?.[SR7.D.DS[e]]??"0px")}void 0!==u&&s.tl_hover.to(s[p],u,0);let g="column"==s.subtype&&s.mask?[s.colbg,s.con]:"image"==s.subtype&&s.mask&&s.colbg?[s.el,s.colbg]:s.el,f=s.mask?"column"==s.subtype?[s.mask,s.colbgMask]:s.mask:void 0;if(SR7.F.useFilter(a.hov.filter)||s.filters?.simple?.filter){let e=SR7.F.getFilterStyle(a.hov.filter,"",s.filters?.simple?.used??void 0),i=SR7.F.getFilterStyle(s.filters?.simple?.filter??"","",e.used);h.filter=e.filter,"hover"==t&&""!==h.filter&&_tpt.gsap.set(g,{filter:i.filter})}if("hover"==t)for(let e of SR7.D.animAttr)"inherit"!=h[e]&&null!=h[e]&&h[e]!=s.cache.tl.content[e]||delete h[e];s.tl_hover.to(g,h,0),f&&s.tl_hover.eventCallback("hover"==t?"onStart":"onComplete",(e=>{_tpt.gsap.set(e.mask,{overflow:e.oflow})}),[{mask:f,oflow:"hover"==t?a.hov?.m?"hidden":"visible":s.cache?.tl?.mask?.overflow}]),s.tl_hover.eventCallback("onReverseComplete",(e=>{e.cache=void 0,e.tl=void 0,e.mask&&_tpt.gsap.set(e.mask,{overflow:e.oflow})}),[{cache:s.cache.hover,tl:s.tl_hover,mask:f,oflow:s.cache?.tl?.mask?.overflow}])};const e=(e,t,s,i,a,r,o)=>s?s=>SR7.cVal(SR7.gV({v:t[o],id:e,s:"scale"}),e,i,SR7.gV({v:t[o+"Re"],id:e,s:"scale"}),t.off,o,i.splitText[r][s],a,s):()=>SR7.cVal(SR7.gV({v:t[o],id:e,s:"scale"}),e,i,SR7.gV({v:t[o+"Re"],id:e,s:"scale"}),t.off,o,!1,a),t=(e,t,s)=>s?s=>SR7.F.getOffset(t,void 0,SR7.M[e].lastChangeDir,s):()=>SR7.F.getOffset(t,void 0,void 0,0),s=e=>"inherit"==e?void 0:e,i=(e,t)=>{let i=s(t.sX??t.scaleX),a=s(t.sY??t.scaleY),r=s(t.skX??t.skewX),o=s(t.skY??t.skewY);return void 0===r&&void 0===o||(void 0!==r&&(a=parseFloat(a??1)*Math.cos((r=parseFloat(r))*_tpt.DEG2RAD)),void 0!==o&&(i=parseFloat(i??1)*Math.cos((o=parseFloat(o))*_tpt.DEG2RAD))),void 0===r&&void 0===o||(e.skewX=_tpt.unitize(r??0,"deg"),e.skewY=_tpt.unitize(o??0,"deg")),void 0===i&&void 0===a||(e.scaleX=i??1,e.scaleY=a??1),e},a=(e,t,s,i)=>a=>{let r=SR7.F.getOffset(t,void 0,SR7.M[e].lastChangeDir,a);if("skew"==s)return _tpt.unitize(r??0,"deg");let o=SR7.F.getOffset(i,void 0,SR7.M[e].lastChangeDir,a);return null==o?r:parseFloat(r||1)*Math.cos(parseFloat(o)*_tpt.DEG2RAD)},r=(e,t,s,i)=>{let a=(i||e.e/1e3<=t.time())&&e.e/1e3>t.time()?1e3*(e.e/1e3-t.time()):0;(i||e.e/1e3<=t.time())&&(-1==e.r||s<e.r)&&setTimeout((()=>{t.time(e.s/1e3)}),a)};SR7.F.updateVisibility=e=>{"column"==e.subtype&&e.target.style.visibilty!==e.el.style.visibility&&(e.target.style.visibility=e.visibility),e.parallax&&e.parallax.style.visibility!==e.el.style.visibilty&&(e.parallax.style.visibility=e.visibility),e.mask&&e.mask.style.visibility!==e.el.style.visibilty&&(e.mask.style.visibility=e.visibility),e.loop&&e.loop.style.visibility!==e.el.style.visibilty&&(e.loop.style.visibility=e.visibility),e.addonWrap&&e.addonWrap.style.visibility!==e.el.style.visibilty&&(e.addonWrap.style.visibility=e.visibility)};const o={sceneStarted:e=>{let{id:t,skey:s,scene:i}=e;"in"==i&&(SR7.M[t].states.sceneInProgress=!0),SR7.M[t].slides[s].slide?.loop?.u&&(SR7.M[t].c.tl[s].loop=0),void 0!==SR7.M[t].c.pans&&SR7.F.pan.observe(t)},sceneUpdated:e=>{let{id:t,skey:s,scene:i}=e;"in"==i&&void 0!==SR7.M[t].c.tl[s].loop&&r(SR7.M[t].slides[s].slide?.loop,SR7.M[t].c.tl[s][i].TL,SR7.M[t].c.tl[s].loop++)},sceneCompleted:function(e){let{id:t,skey:s,scene:i,caller:a}=e;"in"==i&&SR7.F.slideDelayFinished(t),"in"==i&&void 0!==SR7.M[t].c.tl[s].loop?r(SR7.M[t].slides[s].slide?.loop,SR7.M[t].c.tl[s][i].TL,SR7.M[t].c.tl[s].loop++,!0):"out"==i&&"action"!==a&&"parent"!==a&&!0!==SR7.M[t].zOrder.managed&&SR7.F.hideLeavingSlide(t,s)},layerStarted:function(e){let{scene:t,c:s,sbt:i,id:a,frame:r}=e;"out"!==t&&(s.state="animated"),"in"==t&&s.repeat&&SR7.F.updateVisibility(s),i&&!SR7.M[a].sbt.__time&&SR7.F.sbt.process(a)},layerUpdated:async function(e){let{id:t,scene:s,c:i,target:a,sbt:r}=e;r&&!SR7.M[t].sbt.done&&SR7.M[t].sbt?.[SR7.M[t].current.id]?.[i.lkey]&&!SR7.M[t].sbt[SR7.M[t].current.id][i.lkey].tl.paused()&&SR7.M[t].sbt[SR7.M[t].current.id][i.lkey].tl.time()>=SR7.M[t].sbt.__time&&SR7.M[t].sbt[SR7.M[t].current.id][i.lkey].tl.pause(),i.animState?.flagged&&0==i.animState?.frame&&"default"==i.animState?.caller&&"in"==i.animState?.scene||(i.animState.flagged=!0,"in"==s&&"pan"==a&&i.canvas.drawImg(),i.announce?.update&&await SR7.F.triggerLayerEvent(e,"update"))},layerCompleted:function(e){let{scene:t,layer:s,c:i,target:a,caller:r}=e;if("out"==t&&"content"==a&&(SR7.F.manageLayerListeners(i,s,!1),i.state="removed",void 0!==(i.cache?.hover?.requested??void 0)&&(i.cache.hover.requested="idle")),"out"==t)for(let e in i.repeat)_tpt.hop(i.repeat,e)&&"cur"!==e&&i.repeat[e].tl.kill();"out"==t&&(i.el.style.pointerEvents="none",i[i.LME]?.style&&(i[i.LME].style.pointerEvents="none"),i[i.LME].style.visibility="hidden",i.el.style.visibility="hidden"),i.animState.runningFrames=[],delete i.animState.flagged},frameRepeatStart:async function(e){e.caller="repeat",e.animState={scene:e.scene,frame:1},await SR7.F.triggerLayerEvent(e,"framestarted")},frameRepeat:async function(e){let{id:t,c:s,scene:i,skey:a}=e,r=SR7.F.triggeredChildren(t,a,s.lkey);e.c.animState.frame=e.frame,"in"==i&&r&&r.length>0&&await SR7.F.animateLayers({id:t,skey:a,layers:r,scene:i,caller:"parent",ffw:!0,timeto:s.repeat[s.repeat.cur].at}),e.caller="repeat",e.animState={scene:e.scene,frame:1},await SR7.F.triggerLayerEvent(e,"framerepeated")},frameStarted:async function(e){let{id:t,c:s,scene:i,layer:a,target:r,frame:o,caller:n,pE:d,sbt:c}=e;o=parseInt(o),"hover"==s.cache?.hover?.requested&&s.tl_hover&&(s.tl_hover.kill(!0),s.cache.hover.requested="idle",delete s.tl_hover),s.animState.frame=o,s.animState.scene=i,s.animState.entered="in"===i&&s.animState.entered;let p=i+"_"+r+"_"+o;-1==s.animState.runningFrames.indexOf(p)&&s.animState.runningFrames.push(p),"in"==i&&"content"==r&&1==o&&"update"!==n&&SR7.F.manageLayerListeners(s,a,!0),s.el.style.pointerEvents="out"==i||"in"==i&&(0==o||1==o)?"none":s.listeners.hasAny?"auto":"n"==d?"none":"i"==d?"inherit":s.pE,s[s.LME]?.style?.pointerEvents&&(s[s.LME].style.pointerEvents=s.el.style.pointerEvents),SR7.F.updateVisibility(s),await l(s,t,o,i,n);let h="in"==i&&"update"!==n&&"enterstage"!==s.lastEventCalled&&(c&&!s.animState.stageState||1==o)?"enterstage":"out"==i&&"update"!==n?"leavestage":"framestarted";s.animState.stageState=!0,this._dur&&(e.duration=this._dur),this._start&&(e.start=this._start),this.vars?.ease&&(e.ease=this.vars.ease),await SR7.F.triggerLayerEvent(e,h)},frameUpdated:async function(e){let{scene:t,frame:s,pE:i,c:a,interrupt:r}=e;r||"in"!=t||1!=s||(a.el.style.pointerEvents="n"==i?"none":a.listeners.hasAny?"auto":a.pE,a[a.LME]?.style?.pointerEvents&&(a[a.LME].style.pointerEvents=a.el.style.pointerEvents))},framesCompleted:async function(e){let{id:t,scene:s,frame:i,pE:a,c:r,caller:o,target:l,layer:n,interrupt:d}=e;d||"in"!=s||1!=i||(r.el.style.pointerEvents="n"==a?"none":r.listeners.hasAny?"auto":r.pE,r[r.LME]?.style?.pointerEvents&&(r[r.LME].style.pointerEvents=r.el.style.pointerEvents));const c=s+"_"+l+"_"+i;let p;if(r.animState.runningFrames=r.animState.runningFrames.filter((e=>e!==c)),d||"in"!=s||"animateBG"!=o||"slidebg"!=r.subtype?"out"==s&&"animateBG"==o&&"slidebg"==r.subtype?p="leftstage":(p=1==r.animState.frame&&"update"!==o&&"in"==s&&0==r.animState.runningFrames.length?"enteredstage":"out"==s&&"update"!==o?"leftstage":"frameended","enteredstage"==p&&(r.animState.entered=!0)):(SR7.F.triggerSlideEvent(t,"afterChange",["onafterswap","onchange"]),p="enteredstage"),p&&(r.animState.stageState="leftstage"!=p,await SR7.F.triggerLayerEvent(e,p)),!d&&"in"==s&&"animateBG"==o&&r.media&&"slidebg"===r.subtype&&"html5"!==r.media.player.options.type)r.media.play(),SR7.M[t].globalMuted&&r.media.mute();else if("out"==s&&0==i&&r.media){let e=r.media.player.options;"1sttime"==e.autoPlay&&(e.autoPlay=!1),"no1sttime"==e.autoPlay&&(e.autoPlay=!0),r.media.pause(),e.rewind&&r.media.rewind()}"out"==s&&r?.tl?.in?.pan&&r.tl.in.pan.pause()}};SR7.F.hideLeavingSlide=(e,t)=>{if(null==e||null==t||-1==t)return;const s=SR7.M[e];"carousel"!=s.settings.type&&(s.c.slides[t].style.display="none",s.c.slides[t].style.visibilty="hidden",s.c.slides[t].style.pointerEvents="none",s.zOrder={},SR7.F.slideDelayFinished(e))},SR7.F.slideDelayFinished=e=>{clearTimeout(SR7.M[e].states.waitingForNextCallTimer),delete SR7.M[e].states.waitingForNextCallTimer,SR7.M[e].states.sceneInProgress&&(SR7.M[e].states.sceneInProgress=!1,SR7.M[e].states.waitingForNextCall&&SR7.F.requestSlide(SR7.M[e].states.waitingForNextCall))},SR7.F.getRandomSlidetransition=(e,t=0)=>{if(t>10)return null;const s=Object.keys(e).filter((e=>"in"!==e&&"out"!==e&&"icon"!==e));if(0===s.length)return null;const i=e[s[Math.floor(Math.random()*s.length)]];return i.title?i:i.title||"object"!=typeof i?SR7.F.getRandomSlidetransition(e,t+1):SR7.F.getRandomSlidetransition(i,t+1)},SR7.F.animateBG=function(e){const{timeline:t,scene:s,id:i,c:a,layer:r}=e,o=SR7.M[i];n(s,a),u(a,s,a.canvas.width,a.canvas.height),d(a);let l=c(o,t);l.d=parseInt(l.d),l=p(l,s),l=h(l,s);let m=a.temp=g(a,l,s,i,o);return f(m,l,s,o),v(s,l,m,a,o),l=SR7.D.transitions?.[l.tr]?.updateAnim?SR7.D.transitions[l.tr].updateAnim(l,m):l,l[s].e??=l.e??"power2.inOut",m.fdf=m.col*m.row<2||null==l.f?"start":l?.dir??l.f,l.d3=y(l.d3,m.d,m.sdir),l[s].mo=SR7.D.transitions.motionFilter.init(a.aCanvas,l[s].mo),SR7.D.transitions.buildTimeline(i,a,m,l,r),m.TL},SR7.D.transitions={...SR7.D.transitions,buildTimeline:(e,t,s,i,a)=>{if(null!=i.tr&&SR7.D.transitions[i.tr]?.buildTimeline)s.TL=SR7.D.transitions[i.tr].buildTimeline(e,t,s,i,a),SR7.D.transitions?.[i.tr]?.extendTimeLine&&s.TL.add(SR7.D.transitions[i.tr].extendTimeLine(s,i,t),0);else{let r="oppslidebased"==s.fdf?1==s.sdir?"end":"start":"slidebased"==s.fdf?1==s.sdir?"start":"end":"nodelay"===s.fdf?"start":s.fdf;if("in"===s.scene){let a=i.in;for(let e=0;e<s.amnt;e++)s.boxes[e]={x:SR7.F.getOffset(a.x||0,a.m?s.slot.ow:t.canvas.width,s.sdir,e),y:SR7.F.getOffset(a.y||0,a.m?s.slot.oh:t.canvas.height,s.sdir,e),o:SR7.F.getSpecialValue(a.o||0,e,s.sdir),sx:SR7.F.getSpecialValue(0==a.sx?0:a.sx||1,e,s.sdir),sy:SR7.F.getSpecialValue(0==a.sy?0:a.sy||1,e,s.sdir),r:0!==a.r?SR7.F.getSpecialValue(a.r||0,e,s.sdir):0};s.TL.to(s.boxes,s.d/1e3,{delay:s.delay,o:1,sx:1,sy:1,r:0,x:0,y:0,ease:i.e,stagger:{amount:"nodelay"==s.fdf?0:s.sd,grid:[s.col,s.row],from:r}}),void 0!==i.d3&&s.TL.add(SR7.D.transitions.d3.cubeTL(i.d3,t,s,"in",SR7.M[e].dims),0),i.filter?.u&&s.TL.add(SR7.D.transitions.filter.extendTimeLine(s,i,t),0)}else{for(let e=0;e<s.amnt;e++)s.boxes[e]={x:0,y:0,o:1,sx:1,sy:1,r:0};let a=i.out;s.TL.to(s.boxes,s.d/1e3,{o:function(e){return SR7.F.getSpecialValue(0==a.o?0:a.o||1,e,s.sdir)},sx:function(e){return SR7.F.getSpecialValue(0==a.sx?0:a.sx||1,e,s.sdir)},sy:function(e){return SR7.F.getSpecialValue(0==a.sy?0:a.sy||1,e,s.sdir)},r:0!==a.r&&void 0!==a.r?function(e){return SR7.F.getSpecialValue(a.r||0,e,s.sdir)}:0,x:function(e){return SR7.F.getOffset(a.x||0,a.m?s.slot.ow:t.aCanvas.width,s.sdir,e)*(a.reversed?-1:1)},y:function(e){return SR7.F.getOffset(a.y||0,a.m?s.slot.oh:t.aCanvas.height,s.sdir,e)*(a.reversed?-1:1)},ease:a.e,stagger:{amount:"nodelay"===s.fdf?0:s.sd,grid:[s.col,s.row],from:r}},void 0!==a.outdelay?a.outdelay:0),void 0!==i.d3&&s.TL.add(SR7.D.transitions.d3.cubeTL(i.d3,t,s,"out",SR7.M[e].dims),0)}SR7.D.transitions?.[i.tr]?.extendTimeLine&&s.TL.add(SR7.D.transitions[i.tr].extendTimeLine(s,i,t),0),s.TL.eventCallback("onUpdate",SR7.D.transitions.default.updateAnim,[e,t,s,i,a])}s.TL.eventCallback("onStart",(async function(e){e.c.TSS=Date.now(),"in"==e.scene?await SR7.F.triggerLayerEvent(e,"enterstage"):"out"==e.scene&&await SR7.F.triggerLayerEvent(e,"leavestage"),o.frameStarted(e),SR7.D.transitions.default.start(e.c,e.id,e.scene)}),[{c:t,caller:"animateBG",frame:0,pE:i[s.scene].pE,scene:s.scene,layer:a,id:s.id}]),s.TL.eventCallback("onComplete",(e=>SR7.D.transitions.handleCallback(e,s)),[{c:t,caller:"animateBG",frame:0,scene:s.scene,layer:a,id:s.id}]),s.TL.eventCallback("onInterrupt",(e=>SR7.D.transitions.handleCallback(e,s,"onInterrupt",!0)),[{c:t,caller:"animateBG",frame:0,scene:s.scene,layer:a,id:s.id}])},handleCallback:async(e,t,s="onComplete",i=!1)=>{let a=Date.now(),r=a-(e.c?.TSS??a-50)<20?5:0;r||SR7.D.transitions.default.complete(e.c,e.id,e.scene,i),setTimeout((()=>{"html5"===e.c.media?.player.options.type&&e.c.media.stopCanvas(),e.interrupt=i,SR7.F.slideDelayFinished(e.id),o.framesCompleted(e),r&&SR7.D.transitions.default.complete(e.c,e.id,e.scene,i),t[`${s}Callback`]&&t[`${s}Callback`](t,e.c,e.id)}),r)},setDimensions:(e,t)=>{let s="random"==t.col?Math.round(10*Math.random()+3):Math.max(1,Math.min(t.col??1,e.aCanvas.width-10)),i="random"==t.row?Math.round(10*Math.random()+3):Math.max(1,Math.min(t.row??1,e.aCanvas.height-10)),a={s:{},c:{},ow:Math.ceil(e.aCanvas.width/s),oh:Math.ceil(e.aCanvas.height/i)};return a.dx=0-a.ow/2,a.dy=0-a.oh/2,i=Math.ceil(e.aCanvas.height/a.oh)||1,{col:s,row:i,slot:a,width:e.canvas.width,height:e.canvas.height}},default:{updateAnim:(e,t,s,i,a)=>{SR7.E.backend&&(t.media&&("html5"==t.media.player.options.type&&SR7.editing.timelinepos&&t.media.goto(SR7.editing.timelinepos,!0),s.TL.duration()<SR7.editing.timelinepos?t.media.player.container.style.visibility="visible":t.media.player.container.style.visibility="hidden"),t.aCanvas.ctx.clearRect(0,0,t.aCanvas.width,t.aCanvas.height));let r=i[s.scene];if(t.aCanvas&&(s.height!==t.canvas.height||s.width!==t.canvas.width)){t.aCanvas.updateDim();let o=s.TL.progress();s.TL.clear(),s={...s,...SR7.D.transitions.setDimensions(t,r)},SR7.E.backend&&(t.aCanvas.canvas.width=s.width,t.aCanvas.canvas.height=s.height),SR7.D.transitions.buildTimeline(e,t,s,i,a),s.TL.progress(o)}let o=0;const l={};if(null!=t.aCanvas){if((r.mo??0)>0?SR7.D.transitions.motionFilter.render(t.aCanvas,r.moo):t.aCanvas.ctx.clearRect(0,0,t.aCanvas.width,t.aCanvas.height),s.bg&&(t.aCanvas.ctx.fillStyle=s.bg,t.aCanvas.ctx.fillRect(0,0,t.aCanvas.width,t.aCanvas.height)),i.filter?.u&&SR7.D.transitions.filter.update(i,t.aCanvas.ctx,t.aCanvas.canvasFilter),t.canvas.canvas.width>0&&t.canvas.canvas.height>0)for(let e=0;e<s.col;e++){s.slot.sx=s.slot.ow*e,s.slot.tw=s.slot.ow*(e+.5),s.slot.c.wd=Math.min(0,t.aCanvas.width-(s.slot.tw+s.slot.dx+s.slot.ow)),s.slot.dw=s.slot.sw=s.slot.ow+s.slot.c.wd;for(let a=0;a<s.row;a++)t.aCanvas.ctx.save(),l.r=-Math.PI/180*s.boxes[o].r,l.csx=0!==r.r?Math.cos(l.r)*s.boxes[o].sx:s.boxes[o].sx,l.csy=0!==r.r?Math.cos(l.r)*s.boxes[o].sy:s.boxes[o].sy,l.ssx=0!==r.r?Math.sin(l.r)*s.boxes[o].sx:0,l.ssy=0!==r.r?Math.sin(l.r)*-s.boxes[o].sy:0,s.slot.sy=s.slot.oh*a,s.slot.th=s.slot.oh*(a+.5),SR7.D.transitions?.[i.tr]?.beforeDraw&&SR7.D.transitions[i.tr].beforeDraw(t.aCanvas.ctx,s,o),r.m&&(t.aCanvas.ctx.beginPath(),t.aCanvas.ctx.rect(s.slot.ow*e,s.slot.oh*a,s.slot.ow,s.slot.oh),t.aCanvas.ctx.clip()),t.aCanvas.ctx.transform(l.csx,l.ssx,l.ssy,l.csy,s.slot.tw+s.boxes[o].x,s.slot.th+s.boxes[o].y),t.aCanvas.ctx.globalAlpha=Math.max(0,s.boxes[o].o),s.slot.c.hd=t.aCanvas.height-(s.slot.th+s.slot.dy+s.slot.oh),s.slot.c.hd=s.slot.c.hd<0?s.slot.c.hd:0,s.slot.dh=s.slot.sh=s.slot.oh+s.slot.c.hd,s.slot.sw>1&&s.slot.sh>1&&t.aCanvas.ctx.drawImage(t.canvas.canvas,s.slot.sx,s.slot.sy,s.slot.sw,s.slot.sh,s.slot.dx,s.slot.dy,s.slot.dw,s.slot.dh),t.aCanvas.ctx.restore(),SR7.D.transitions?.[i.tr]?.afterDraw&&SR7.D.transitions[i.tr].afterDraw(t.canvas.canvas,t.aCanvas.ctx,s,o,l),o++}void 0!==i.d3&&i.d3.su&&SR7.D.transitions.d3.ticker(i.d3,s,t)}},start:(e,t,s)=>{const i=SR7.M[t];i.c.slideBGStates[e.skey]="animating",null==e.mod&&(e.el.style.opacity=1),e.canvas.canvas.style.visibility="hidden",e.canvas.canvas.style.opacity=0,e.el.style.visibility="visible","out"==s&&"out"==i.zOrder.use&&i.zOrder.managed&&SR7.F.swapSlidezIndex(t,e.skey),SR7.E.backend&&"out"===s||SR7.F.manageLayerListeners(e,i.slides[e.skey].layers[e.lkey],"in"==s)},complete:(e,t,s,i)=>{const a=SR7.M[t];null==e.mod&&(e.el.style.opacity=1),SR7.D.transitions.motionFilter.complete(e,e.aCanvas),SR7.E.backend&&"out"===s||(e.canvas.canvas.style.visibility="visible"),e.canvas.canvas.style.opacity=1,a.c.slideBGStates[e.skey]=s,SR7.E.backend||(void 0!==e.aCanvas&&e.aCanvas.canvas.remove(),e.aCanvas=void 0,i||SR7.E.backend||(a.zOrder.managed&&a.zOrder.use==s&&SR7.F.swapSlidezIndex(t),"out"==s&&SR7.F.hideLeavingSlide(t,e.skey)))}},motionFilter:{init:function(e,t){return void 0!==t&&parseFloat(t)>0&&(t=parseFloat(t),e.fmShadow=void 0===e.fmShadow?document.createElement("canvas"):e.fmShadow,e.fmCtx=e.fmShadow.getContext("2d"),e.fmShadow.width=e.ctx.canvas.width,e.fmShadow.height=e.ctx.canvas.height,e.fmCtx.globalAlpha=tpGS.gsap.utils.mapRange(100,0,40,0,t)/100,e.fmCtx.clearRect(0,0,e.ctx.canvas.width,e.ctx.canvas.height)),t},render:function(e,t){"partial"===t&&(e.fmCtx.globalCompositeOperation="source-over"),0!=e.canvas.width&&0!=e.canvas.height&&(e.fmCtx.drawImage(e.canvas,0,0,e.canvas.width,e.canvas.height),e.ctx.drawImage(e.fmCtx.canvas,0,0,e.canvas.width,e.canvas.height),"partial"===t&&(e.fmCtx.globalCompositeOperation="source-atop"),"partial"!==t&&"full"!==t||(e.fmCtx.fillStyle="rgba(255, 255, 255, 0.1)",e.fmCtx.fillRect(0,0,e.canvas.width,e.canvas.height)))},complete:function(e){e.fmShadow&&e.fmShadow.remove()}},filter:{update:function(e,t,s){if(null==e.filter.tl)return;let i=e.filter;var a=void 0!==s||void 0!==i.tl.blur?" blur("+(void 0!==s?s:0+i.tl.blur!==void 0?i.tl.blur:0)+"px)":"";t.canvas.style.filter=void 0===i.tl.filter?""+a:i.tl.filter+a},extendTimeLine:function(e,t,s){let i=t.filter;if(null!=i){var a=void 0!==i.g&&"0%"!==i.g&&0!==i.g?(""===a?"":" ")+"grayscale(_g_%)":"";return a+=void 0!==i.h&&"100%"!==i.h&&100!==i.h?(""===a?"":" ")+"brightness(_h_%)":"",a+=void 0!==i.s&&"0px"!==i.s&&0!==i.s?(""===a?"":" ")+"sepia(_s_%)":"",a+=void 0!==i.c&&100!==i.c?(""===a?"":" ")+"contrast(_c_%)":"",""!==(a+=void 0!==i.i&&0!==i.i?(""===a?"":" ")+"invert(_i_%)":"")&&(i.tl={filter:a.replace("_g_",parseFloat(i.g)).replace("_h_",parseFloat(i.h)).replace("_s_",parseFloat(i.s)).replace("_c_",parseFloat(i.c)).replace("_i_",parseFloat(i.i))}),void 0!==i.b&&"0px"!==i.b&&0!==i.b&&(void 0===i.tl?i.tl={blur:parseFloat(i.b)}:i.tl.blur=parseFloat(i.b)),void 0!==i.tl?(s.canvasFilter=!0,tpGS.gsap.to(i.tl,e.d/1e3,void 0===i.tl.filter?{blur:0}:void 0===i.tl.blur?{filter:a.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:i.e}:{blur:0,filter:a.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:i.e})):void 0}}},slidingoverlay:{getBasic:function(e){return{attr:["x","y"],[e]:"in"==e?{m:!0,o:-1,_xy:20,_gxys:10,_gxye:-10,zIndex:20,e:"power1.inOut"}:{m:!0,reversed:!1,_xy:-100,o:0,zIndex:10,e:"power1.inOut"}}},updateAnim:function(e,t){var s=void 0!==e.in.x&&0!==e.in.x&&"0%"!==e.in.x?"x":"y";e.in["g"+s+"s"]=SR7.F.getOffset(e.in[s],e.in._gxys,t.sdir,1)+"%",e.in["g"+s+"e"]=SR7.F.getOffset(e.in[s],e.in._gxye,t.sdir,1)+"%","out"==t.scene?e.out[s]=SR7.F.getOffset(e.in[s],e.out._xy,t.sdir,1)+"%":e.in[s]=SR7.F.getOffset(e.in[s],e.in._xy,t.sdir,1)+"%";var i=parseInt(e.in[s])>=0;return e.in.d="x"===s?i?"left":"right":i?"up":"down",e},beforeDraw:function(e,t,s){void 0!==t.boxes[s].d&&(t.boxes[s]._dxs="right"===t.boxes[s].d?0+t.boxes[s].mw:"left"===t.boxes[s].d?0-t.boxes[s].mw:0,t.boxes[s]._dys="down"===t.boxes[s].d?0+t.boxes[s].mh:"up"===t.boxes[s].d?0-t.boxes[s].mh:0,t.boxes[s]._xs="left"===t.boxes[s].d?0-t.boxes[s].mw:0,t.boxes[s]._ys="up"===t.boxes[s].d?0-t.boxes[s].mh:0,t.boxes[s]._xe="right"===t.boxes[s].d?t.slot.ow+t.boxes[s].mw:"left"===t.boxes[s].d?t.slot.ow-t.boxes[s].mw:t.slot.ow,t.boxes[s]._ye="down"===t.boxes[s].d?t.slot.oh+t.boxes[s].mh:"up"===t.boxes[s].d?t.slot.oh-t.boxes[s].mh:t.slot.oh,e.beginPath(),e.rect("left"===t.boxes[s].d?Math.max(0,t.boxes[s]._xs):"right"===t.boxes[s].d?Math.min(0,t.boxes[s]._xs):0,"up"===t.boxes[s].d?Math.max(0,t.boxes[s]._ys):"down"===t.boxes[s].d?Math.min(0,t.boxes[s]._ys):0,"left"===t.boxes[s].d?Math.max(t.slot.ow,t.boxes[s]._xe):"right"===t.boxes[s].d?Math.min(t.slot.ow,t.boxes[s]._xe):t.boxes[s]._xe,"up"===t.boxes[s].d?Math.max(t.slot.oh,t.boxes[s]._ye):"down"===t.boxes[s].d?Math.min(t.slot.oh,t.boxes[s]._ye):t.boxes[s]._ye),e.clip())},afterDraw:function(e,t,s,i,a){void 0!==s.boxes[i].d&&(t.save(),t.beginPath(),t.rect(Math.max(0,s.boxes[i]._dxs),Math.max(0,s.boxes[i]._dys),s.boxes[i]._xe,s.boxes[i]._ye),t.clip(),t.save(),t.transform(a.csx,a.ssx,a.ssy,a.csy,.5*s.slot.ow+s.boxes[i].x+s.boxes[i].sgx,.5*s.slot.oh+s.boxes[i].y+s.boxes[i].sgy),t.drawImage(e,0,0,s.slot.ow,s.slot.oh,s.boxes[i].sgx-s.slot.ow/2,s.boxes[i].sgy-s.slot.oh/2,s.slot.ow,s.slot.oh),t.restore(),t.fillStyle="rgba(0,0,0,0.6)",t.fillRect(s.boxes[i].gx,s.boxes[i].gy,s.slot.ow,s.slot.oh),t.restore())},extendTimeLine:function(e,t){if("in"!==e.scene)return;const s=t[e.scene];return void 0!==s.gxe||void 0!==s.gye?(_tpt.extend(e.boxes[0],{d:s.d,gx:void 0===s.gxs?0:2*SR7.F.getOffset(s.gxs,e.width,e.sdir,0),gy:void 0===s.gys?0:2*SR7.F.getOffset(s.gys,e.height,e.sdir,0),sgx:void 0===s.gxs?0:SR7.F.getOffset(s.gxs,e.width,e.sdir,0),sgy:void 0===s.gys?0:SR7.F.getOffset(s.gys,e.height,e.sdir,0),mw:0-e.width,mh:0-e.height}),_tpt.gsap.to(e.boxes,e.d/1e3,{gx:void 0===s.gxe?0:2*SR7.F.getOffset(s.gxe,e.width,e.sdir,0),gy:void 0===s.gye?0:2*SR7.F.getOffset(s.gye,e.height,e.sdir,0),sgx:void 0===s.gxe?0:2*SR7.F.getOffset(s.gxe,e.width,e.sdir,0),sgy:void 0===s.gye?0:2*SR7.F.getOffset(s.gye,e.height,e.sdir,0),mw:e.width,mh:e.height,ease:s.e})):void 0}},d3:{ticker:function(e,t,s){if(void 0!==e.helper){var i=e.smi*("in"===t.scene?e.helper.oo:e.helper.o),a=e.sma*("in"===t.scene?e.helper.oo:e.helper.o);if(e.gradient="vertical"===e.d?"in"===t.scene?s.aCanvas.ctx.createLinearGradient(0,0,0,s.aCanvas.height):s.aCanvas.ctx.createLinearGradient(0,s.aCanvas.height,0,0):"in"===t.scene?s.aCanvas.ctx.createLinearGradient(0,0,s.aCanvas.width,0):s.aCanvas.ctx.createLinearGradient(s.aCanvas.width,0,0,0),e.gradient.addColorStop(0,"rgba("+e.sc+","+i+")"),e.gradient.addColorStop(e.sl,"rgba("+e.sc+","+a+")"),s.aCanvas.ctx.fillStyle=e.gradient,s.aCanvas.ctx.fillRect(0,0,s.aCanvas.width,s.aCanvas.height),void 0!==s.cube&&s.cube.ctx){var r=void 0!==e.roomhelper&&!1!==e.roomhelper&&(90-e.roomhelper.r)/90;i=!1!==r?r:e.smi*e.helper.o,a=!1!==r?r:e.sma*e.helper.o,s.cube.ctx.clearRect(0,0,s.cube.ctx.canvas.width,s.cube.ctx.canvas.height),e.gradientW=!1!==r?"vertical"===e.d?e.t<0&&1===e.sdir||e.t>0&&-1===e.sdir?s.aCanvas.ctx.createRadialGradient(0,s.cube.ctx.canvas.width/2,0,0,0,2*s.cube.ctx.canvas.width):s.aCanvas.ctx.createRadialGradient(s.cube.ctx.canvas.width,0,0,0,0,2*s.cube.ctx.canvas.width):e.t>0&&1===e.sdir||e.t<0&&-1===e.sdir?s.aCanvas.ctx.createRadialGradient(s.cube.ctx.canvas.width/2,s.cube.ctx.canvas.height,0,s.cube.ctx.canvas.width/2,s.cube.ctx.canvas.height,s.cube.ctx.canvas.width):s.aCanvas.ctx.createRadialGradient(s.cube.ctx.canvas.width/2,.2*s.cube.ctx.canvas.height,0,s.cube.ctx.canvas.width/2,.2*s.cube.ctx.canvas.height,s.cube.ctx.canvas.width):"vertical"===e.d?s.aCanvas.ctx.createLinearGradient(0,0,0,s.cube.ctx.canvas.height):s.aCanvas.ctx.createLinearGradient(0,0,s.cube.ctx.canvas.width,0),e.gradientW.addColorStop(0,"rgba("+e.sc+","+(!1!==r?"a"===e.DIR?a:0:"a"===e.DIR?0:a)+")"),e.gradientW.addColorStop(1,"rgba("+e.sc+","+(!1!==r?"a"===e.DIR?0:a:"a"===e.DIR?a:0)+")"),s.cube.ctx.fillStyle=e.gradientW,s.cube.ctx.fillRect(0,0,s.cube.ctx.canvas.width,s.cube.ctx.canvas.height)}}},setWall:function(e,t,s,i,a,r){return e.TL=_tpt.gsap.timeline(),e.TL.add(_tpt.gsap.to(e.c,.2,{display:"block"}),0),"rotationX"===s?(e.ctx.canvas.width=i.w,e.ctx.canvas.height=i.w,e.TL.add(_tpt.gsap.set(e.w,{backgroundColor:a,width:i.w,height:i.w,transformOrigin:"50% 50% -"+i.w/2+"px",x:0,y:t>0?-(i.w-i.h):0,rotationX:t>0?-90:90,rotationY:0}),0)):(e.ctx.canvas.width=r?i.w:i.h,e.ctx.canvas.height=i.h,e.TL.add(_tpt.gsap.set(e.w,{backgroundColor:a,width:r?i.w:i.h,height:i.h,transformOrigin:"50% 50% -"+(r?i.w:i.h)/2+"px",x:t<0?i.w-i.h:0,y:0,rotationX:0,rotationY:t>0?-90:90}),0)),e.TL},buildCube:function(e,t,s){e.cube={c:document.createElement("div"),w:document.createElement("canvas")},e.cube.ctx=e.cube.w.getContext("2d");for(let t of["c","w"])e.cube[t].style.position="absolute",e.cube[t].style.webkitBackfaceVisibility="hidden",e.cube[t].style.backfaceVisibility="hidden",e.cube[t].style.left="0px",e.cube[t].style.top="0px",e.cube[t].style.zIndex=0;e.cube.c.style.transformStyle="preserve-3d",_tpt.gsap.set(e.cube.c,{width:s.module.w,height:s.module.h}),_tpt.gsap.set(e.cube.w,{width:s.module.w,height:s.module.h,backgroundColor:"#ccc"}),e.cube.c.appendChild(e.cube.w),e.el.appendChild(e.cube.c)},cubeTL:function(e,t,s,i,a){if("none"!=(e?.f??"none")){t.el.style.transformStyle="preserve-3d",t.el.style.overflow="visible";var r=_tpt.gsap.timeline(),o="incube"===e.f?1:-1,l="incube"===e.f||"cube"===e.f,n="fly"===e.f?-30:90,d="turn"!==e.f&&!1!==e.t&&s.notFirstIn,c=-1*e.z,p={},h={z:d?0:c,ease:"power1.inOut"},u={ease:e.e},m=[t.aCanvas.canvas],g=l?"50% 50% ":"20% 20% ",f="rotationX",v="rotationY",y="y",S="height",b=e.fd;if("vertical"!==e.d?(f="rotationY",v="rotationX",y="x",S="width",e.DIR=1===e.sdir?"b":"a"):e.DIR=1===e.sdir?"a":"b",t.aCanvas.canvas.style.backfaceVisibility="hidden",t.aCanvas.canvas.style.webkitBackfaceVisibility="hidden","turn"===e.f?(n="vertical"===e.d?-120:120,g="vertical"===e.d?1===e.sdir?"in"===i?"0% 0% 0%":"0% 100% 0%":"in"===i?"0% 100% 0%":"0% 0% 0%":1===e.sdir?"in"===i?"0% 0% 0%":"100% 0% 0%":"in"===i?"100% 0% 0%":"0% 0% 0%",h.z=0,u.ease="out"===i?"power3.out":u.ease,b="out"===i?b/2:b):g+=o*a.module[S[0]]/2+"px",u[f]=0,u[y]=0,"in"===i?p[f]=n*e.sdir:u[f]=-n*e.sdir,"fly"===e.f){var R=void 0===e.fz?20*Math.random()-10:parseInt(e.fz);"in"===i?(p[y]=t.aCanvas[S]/1.6*(void 0===e.fdi?1.5:parseFloat(e.fdi))*e.sdir,p.rotateZ=e.sdir*R*-.5,u.rotateZ=0):(u[y]=t.aCanvas[S]/1.6*(void 0===e.fdo?2:parseFloat(e.fdo))*e.sdir*-1,u.rotateZ=e.sdir*R)}if(t.el.style.perspective=d?"2500px":"1500px",d){var w={z:c*("fly"===e.f?1.5:3),ease:"power1.inOut"},x={z:0,ease:"power1.inOut"};w[v]=-1*e.t,x[v]=0,e.roomhelper={r:0},r.add(tpGS.gsap.set(t.mask,{perspective:1200,transformStyle:"preserve-3d",transformOrigin:g}),0),r.add(_tpt.gsap.to(t.el,3*e.md,w),0),r.add(_tpt.gsap.to(t.el,3*e.md,x),b-e.md),r.add(_tpt.gsap.to(e.roomhelper,3*e.md,{r:Math.abs(e.t)}),0),r.add(_tpt.gsap.to(e.roomhelper,3*e.md,{r:0}),b-e.md),"in"===i&&1!==o&&l&&(void 0===t.cube&&SR7.D.transitions.d3.buildCube(t,s,a),r.add(SR7.D.transitions.d3.setWall(t.cube,w[v],v,a.module,e.c),0),m.push(t.cube.c))}else e.roomhelper=!1,r.add(tpGS.gsap.set(t.mask,{perspective:"none",transformStyle:"none",transformOrigin:"50% 50%"}),0),l&&!0!==s.notFirstIn&&(void 0===t.cube&&SR7.D.transitions.d3.buildCube(t,s,a),r.add(SR7.D.transitions.d3.setWall(t.cube,p[f],f,a.module,e.c,!0),0),r.add(_tpt.gsap.fromTo(t.cube.w,4*e.md,{opacity:0},{opacity:1}),0),m.push(t.cube.c));return e.helper={o:0,oo:1},r.add(_tpt.gsap.to(e.helper,b,{o:1,oo:0,ease:e.e}),e.md),r.add(_tpt.gsap.set(m,_tpt.extend(_tpt.extend({},p),{force3D:!0,transformOrigin:g})),0),"turn"!==e.f&&r.add(_tpt.gsap.to(m,3*e.md,h),0),r.add(_tpt.gsap.to(m,b,u),e.md),"turn"!==e.f&&r.add(_tpt.gsap.to(m,3*e.md,{z:0,ease:"power1.inOut"}),b-e.md),"out"===i&&1!==o&&r.add(_tpt.gsap.to(m,2*e.md,{opacity:0}),e.dur-2*e.md),r}}}};const l=async function(e,t,s,i,a){if(e.media&&(1===s&&"in"===i||"animateBG"===a)&&("slidebg"!==e.subtype||"carousel"!==SR7.M[t].settings.type)){let s=e.media.player.options;e.media.player.frameStart=(new Date).getTime();let r=SR7.M[t];if((e.skey==SR7.M[t].current.id||e.global&&"in"===e.gpos)&&"false"!==s.autoPlay&&!1!==s.autoPlay&&"no1sttime"!==s.autoPlay?("slidebg"===e.subtype&&"html5"!==e.media.player.options.type||(SR7.E.backend&&"animation"==SR7.editing.modi?e.media.pause():e.media.play(),SR7.M[t].globalMuted&&e.media.mute()),s.pauseTimer&&SR7.slideShow.pause(t)):"carousel"==r.settings.type&&"in"===i&&("all"===r.settings.carousel.showAllLayers||"individual"===r.settings.carousel.showAllLayers&&r.slides[e.skey].layers[e.lkey].viOC)&&(e.media.player.options.cOC&&"false"!==String(s.autoPlay)&&"no1sttime"!==s.autoPlay?(r.videoDontInterrupt??={},r.videoDontInterrupt[e.media.player.containerId]=!0,e.media.play()):(r.videoPlayInFocus??={},r.videoPlayInFocus[e.media.player.containerId]=e.media.player)),"out"===i&&"animateBG"===a&&e.media.pause(),SR7.E.backend)return;s.nextSlide&&!e.media.hasEvent("finished")&&e.media.addEvent("finished",((e,t)=>{SR7.F.requestSlide({id:t.id,slide:"+1"})}),{id:t,c:e}),!s.stopAllMedia&&!s.pauseTimer||e.media.hasEvent("playing")||e.media.addEvent("playing",((t,i)=>{s.stopAllMedia&&!e.media.player.pauseRequested&&e.media.stopPlayingMedias(!1),s.pauseTimer&&SR7.slideShow.pause(i.id)}),{id:t,c:e,o:s}),s.pauseTimer&&!e.media.hasEvent("paused")&&e.media.addEvent("paused",((e,t)=>{t.o.pauseTimer&&SR7.slideShow.resume(t.id)}),{id:t,c:e,o:s})}},n=(e,t)=>{"in"==e&&(t.canvas.canvas.style.visibility="hidden"),t.canvas.canvas.style.background="transparent"},d=e=>e.media&&"html5"==e.media.player.options.type&&e.media.startCanvas(e.canvas),c=(e,t)=>-1==e.prev.index&&e.settings.fs?.as?_tpt.extend({},e.settings.fs.a):_tpt.extend({},t.in.bg.all[1]),p=(e,t)=>{if("in"!==t||null==e.rnd||0==_tpt.tf(e.rnd)||null==SR7.E.transtable)return e;const s=SR7.F.getRandomSlidetransition(SR7.E.transtable);return s?SR7.D.getBGAnim(s):e},h=(e,t)=>(Array.isArray(e.addOns)&&0===e.addOns.length&&(e.addOns={}),SR7.D.transitions?.[e.tr]?.getBasic&&(e=_tpt.extend(SR7.D.transitions[e.tr].getBasic(t),e)),e[t]??={},e),u=e=>{e.aCanvas??=new SR7.F.canvas({wrap:e.el,ctx:"2d",create:!0}),e.aCanvas.canvas.classList.add("sr7-a-canvas"),e.aCanvas.canvas.style.background="transparent"},m=e=>"default"==e.d||"d"==e.d?1e3:"random"==e.d?Math.round(1e3*Math.random()+300):_tpt.defNum(e.d,1e3),g=(e,t,s,i,a)=>{let r=SR7.D.transitions.setDimensions(e,t[s]);return{...r,id:i,scene:s,TL:_tpt.gsap.timeline(),sdir:a.lastChangeDir,d:m(t),sd:parseFloat(t.sd||75)/1e3,delay:0,amnt:r.col*r.row,boxes:Array(r.amnt)}},f=(e,t,s,i)=>{-1!==i.prev.index&&"in"==s&&void 0!==t.p&&"none"!==t.p&&(e.bg="dark"===t.p?"#000":"light"===t.p?"#fff":void 0,e.delay=e.d/1e3)},v=(e,t,s,i,a)=>{s.notFirstIn=-1!=a.prev.index,"out"==e?a.zOrder={cache:{skey:i.skey,ms:s.d,animated:1!==(t[e].o??1)||0!==(t[e].x??0)||0!==(t[e].y??0)}}:-1===a.prev.id||null!=a.zOrder.cache&&("forceinout"===t.o||"outin"!=t.o&&!a.zOrder.cache.animated)||(a.zOrder.managed="0"==t?.out?.o||"outin"==t.o||0!==s.delay||1===(t[e].o??1)&&0===(t[e].x??0)&&0===(t[e].y??0),a.zOrder.use=0!==s.delay?"out":(a.zOrder?.cache?.ms??1e3)<(s.d??1e3)?"in":"out")},y=(e,t,s)=>null==e?void 0:{...e,dur:.001*t,fd:7e-4*t,md:15e-5*t,sdir:s,t:void 0!==e.t&&0!==e.t&&e.t,su:_tpt.tf(e.su),smi:_tpt.tf(e.su)?parseFloat(e?.smi||0):void 0,sl:_tpt.tf(e.su)?parseFloat(e?.sl||1):void 0,sma:_tpt.tf(e.su)?parseFloat(e?.sma||.5):void 0,sc:_tpt.tf(e.su)?_tpt.gsap.utils.splitColor(e?.sc??"0,0,0").join(","):void 0};_tpt.R??={},_tpt.R.animate=_tpt.extend?_tpt.extend(_tpt.R.animate,{status:2,version:"1.0"}):{status:2,version:"1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F=SR7.F||{},void 0!==SR7.F.dist)return;SR7.F.dist=function(e,t,s,i){return Math.sqrt(Math.pow(e-s,2)+Math.pow(t-i,2))},SR7.F.cSort=function(e,t){return e-t},SR7.F.canvas=function(e){e.wrap&&(e.width=null==e.width||0==e.width?e.wrap.clientWidth:e.width,e.height=null==e.height||0==e.height?e.wrap.clientHeight:e.height);var t=e.canvas??document.createElement("canvas");this.ctx=t.getContext(e.ctx||"2d"),this.wrap=e.wrap,"100%"==e.width?(t.width=this.width=1e3,t.style.width="100%"):(t.width=this.width=e.width*_tpt.dpr,t.style.width=e.width+"px"),"100%"==e.height?(t.height=this.height=1e3,t.style.height="100%"):(t.height=this.height=e.height*_tpt.dpr,t.style.height=e.height+"px"),void 0!==e.overlay&&(this.overlay=SR7.F.addOverlay(e.overlay.type,e.overlay.size,e.overlay.cA,e.overlay.cB),e.wrap.appendChild(this.overlay)),void 0!==e.wrap&&e.wrap.appendChild(t),e.position&&(t.style.position=e.position),"absolute"===e.position&&(t.style.top=0,t.style.left=0),this.color=e?.color??void 0,void 0!==e.size&&(this.size=e.size),void 0!==e.pos&&(this.pos=e.pos),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.sizeVal&&(this.sizeVal=e.sizeVal),e.create&&void 0!==e.wrap&&(t.style.zIndex=1,t.style.position="absolute",t.style.top="0px",t.style.left="0px",this.wrap=e.wrap,e.wrap.children[0]?e.wrap.insertBefore(t,e.wrap.children[0]):e.wrap.appendChild(t)),this.canvas=t},SR7.F.canvas.prototype.updateDim=function(){this.wrap&&(this.canvas.width=this.width=this.wrap.clientWidth*_tpt.dpr,this.canvas.height=this.height=this.wrap.clientHeight*_tpt.dpr,this.canvas.style.width=this.wrap.clientWidth+"px",this.canvas.style.height=this.wrap.clientHeight+"px")},SR7.F.canvas.prototype.checkPreDraw=function(){let e={pre:!0,core:!0,post:!0};if(void 0!==this.preDraw)for(let t of this.preDraw)e.pre&&(e=t(this,e));return e},SR7.F.canvas.prototype.checkPostDraw=function(){if(void 0!==this.afterDraw)for(let e of this.afterDraw)r.pre&&(r=e(this,r))},SR7.F.canvas.prototype.drawImg=function(e,t=_tpt.dpr,s){if(!this.image&&null==e)return;this.cacheAltSrc=e;let i="high"==this.stretch&&this?.image?.naturalWidth?this?.image?.naturalWidth??0:this.wrap?.clientWidth||this.requestedWidth||this.image?.naturalWidth||0,a="high"==this.stretch&&this?.image?.naturalWidth?this?.image?.naturalHeight??0:this.wrap?.clientHeight||this.requestedHeight||this.image?.naturalHeight||0;var r,o,l,n;"high"==this.stretch&&1!==t&&(i=(this.wrap?.clientWidth||this.requestedWidth||this.image?.naturalWidth||0)*t,a=(this.wrap?.clientHeight||this.requestedHeight||this.image?.naturalHeight||0)*t),(s||this.cacheW!==i||this.cacheH!==a)&&(this.cacheW=i,this.cacheH=a,this.width=this.canvas.width=i*t,this.height=this.canvas.height=a*t,this.canvas.style.width=i+"px",this.canvas.style.height=a+"px",this.ctx.scale(t,t));var d=l=e?.videoWidth??this.image?.naturalWidth??this.width,c=n=e?.videoHeight??this.image?.naturalHeight??this.height,p=r=i,h=o=a,u=0,m=0,g=0,f=0,v=this.width/this.height,y=d/c;if(void 0!==this.pan)return this.ctx.clearRect(g,f,p,h),this.ctx.save(),this.ctx.transform(Math.cos(this.pan.rZ)*this.pan.scale,Math.sin(this.pan.rZ)*this.pan.scale,Math.sin(this.pan.rZ)*-this.pan.scale,Math.cos(this.pan.rZ)*this.pan.scale,this.pan.x,this.pan.y),v<y?p=this.image.width*(h/this.image.height):h=this.image.height*(p/this.image.width),this.ctx.drawImage(this.image,0,0,p,h),void this.ctx.restore();let S=this.checkPreDraw();var b,R,w;S.core&&(this.repeat&&"no-repeat"!==this.repeat&&"cover"!==this.size&&(R=(b=this.pattern()).pox,w=b.poy),"cover"===this.size?(v>y?c=d/v:d=c*v,u=(l-d)*parseFloat(this.pos.x)/100,m=(n-c)*parseFloat(this.pos.y)/100):"auto"===this.size?(h=c,g=(r-(p=d))*parseFloat(this.pos.x)/100,f=(o-h)*parseFloat(this.pos.y)/100):"percentage"===this.size?(h=(p=i*parseFloat(this.sizeVal)/100)/d*c,g=(r-p)*parseFloat(this.pos.x)/100,f=(o-h)*parseFloat(this.pos.y)/100):(y>v?h=p/y:p=h*y,g=(r-p)*parseFloat(this.pos.x)/100,f=(o-h)*parseFloat(this.pos.y)/100),this.repeat&&"no-repeat"!==this.repeat&&"cover"!==this.size?(this.ctx.fillStyle=b.pattern,this.ctx.fillRect(0,0,r+R,o+w)):(this.ctx.clearRect(g,f,p,h),this.stretch?this.ctx.drawImage(e??this.image,0,0,this.image.width,this.image.height,g,f,p,h):this.ctx.drawImage(e??this.image,u,m,d,c,g,f,p,h)));S.post&&this.checkPostDraw()},SR7.F.canvas.prototype.pattern=function(){var e,t,s=this.image.naturalWidth,i=this.image.naturalHeight,a=this.wrap.clientWidth,r=this.wrap.clientHeight,o=(this.width,this.height,s/i),l=s,n=i;(s>a||i>r)&&"auto"!==this.size&&"percentage"!==this.size?s>=i?(l=a,n=a/o):(n=r,l=r*o):"percentage"===this.size&&(l=l*parseFloat(this.sizeVal)/100,n=n*parseFloat(this.sizeVal)/100),(t=this.pc=this.pc??document.createElement("canvas")).width=l,t.height=n,t.getContext("2d").drawImage(this.image,0,0,l,n);var d=(2*(Math.floor(Math.abs(a/t.width)/2)+1.5)*t.width-a)*parseFloat(this.pos.x)/100,c=(2*(Math.floor(Math.abs(r/t.height)/2)+1.5)*t.height-r)*parseFloat(this.pos.y)/100;return"repeat-x"===this.repeat?c=(t.height-r)*parseFloat(this.pos.y)/100:"repeat-y"===this.repeat&&(d=(t.width-a)*parseFloat(this.pos.x)/100),this.ctx.translate(-d,-c),e=this.ctx.createPattern(this.pc,this.repeat),this.ctx.translate(0,0),{pattern:e,pc:t,pox:d,poy:c}},SR7.F.canvas.prototype.drawColored=function(e,t){let s=this.checkPreDraw();if(s.core){if(this.width=this.canvas.width=e||this.wrap.clientWidth*_tpt.dpr,this.height=this.canvas.height=t||this.wrap.clientHeight*_tpt.dpr,0==this.width||0==this.height)return;this.canvas.style.width=this.wrap.clientWidth+"px",this.canvas.style.height=this.wrap.clientHeight+"px",this.fill()}s.post&&this.checkPostDraw()},SR7.F.canvas.prototype.fill=function(){this.ctx.fillStyle=this.fillColor(),this.ctx.fillRect(0,0,this.width,this.height)},SR7.F.canvas.prototype.fillColor=function(){if(this.color.colors||(this.color=_tpt.gradient.process(this.color)),"solid"!==this.color.type){let t="radial"===this.color.type?this.getRadialGrad():this.getLinearGrad();for(var e in this.color.colors)t.addColorStop(this.color.colors[e].p/100,this.color.colors[e].rgba);return t}return this.color.string},SR7.F.canvas.prototype.getLinearGrad=function(){return _tpt.gradient.getLinear(this.ctx,this.width,this.height,this.color.angle??180)},SR7.F.canvas.prototype.getRadialGrad=function(){return this.ctx.createRadialGradient(this.width/2,this.height/2,0,this.width/2,this.height/2,Math.max(this.width,this.height)/2)},SR7.F.addOverlay=(t,s,i,a)=>{let r=document.createElement("sr7-overlay");return r.style.backgroundImage=e(t,s,i,a),r};const e=(e=1,t=1,s="rgba(0,0,0,0)",i="rgba(0,0,0,1)")=>{if("none"===e)return;let a={0:s,1:i},r={none:[[0]],1:[[1,0],[0,0]],2:[[1,0,0],[0,0,0],[0,0,0]],3:[[1,0,0,0],[0,0,0,0],[0,0,0,0]],4:[[1],[0]],5:[[1],[0],[0]],6:[[1],[0],[0],[0]],7:[[1,0]],8:[[1,0,0]],9:[[1,0,0,0]],10:[[1,0,0,0,0],[0,1,0,1,0],[0,0,0,0,0],[0,1,0,1,0],[0,0,0,0,1]],11:[[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0]],12:[[1,0,0],[0,1,0],[0,0,1]],13:[[0,0,1],[0,1,0],[1,0,0]],14:[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,0]],15:[[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0],[0,1,0,0,0],[1,0,0,0,0]],16:[[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1]]},o=void 0===r[e]?r[2]:r[e],l=document.createElement("canvas"),n=l.getContext("2d");l.width=o[0].length*t,l.height=o.length*t;for(var d=0;d<o.length;d++)for(var c=0;c<o[d].length;c++)"transparent"!=a[o[d][c]]&&(n.fillStyle=a[o[d][c]],n.fillRect(c*t,d*t,t,t));return"url("+l.toDataURL()+")"};_tpt.R=_tpt.R||{},_tpt.R.canvas=_tpt.extend?_tpt.extend(_tpt.R.canvas,{status:2,version:"1.0"}):{status:2,version:"1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},void 0!==SR7.gVal)return;function e(t,s,i,a){if(0===s.length)for(let e=0;e<i.length;e++)t[i[e]]=a[e];else{const r=s.shift();t.hasOwnProperty(r)||(t[r]={}),e(t[r],s,i,a)}}function t(e,t){void 0!==t.hash&&history.pushState(null,null,t.hash),_tpt.isSafari11||(tpGS.gsap.set("html",{scrollBehavior:t.sbHtml}),tpGS.gsap.set("body",{scrollBehavior:t.sbBody})),SR7.M[e].c.scrollToObj=null}SR7.gVal=(e,t,s=1,i=!1,a,r,o,l,n)=>SR7.gV({v:e,id:t,u:s,f:i,m:a,a:r,debug:o,c:l,s:n}),SR7.gV=function(e){if(null==e?.v)return;let t,s,i=SR7.M[e.id],{v:a,u:r=1,f:o=!1,m:l,a:n,debug:d,c:c=i.LEV,s:p}=e,h=6,u=1;if(Array.isArray(a)){h=0;let e=c;for(;!i.settings.uSize[e]&&e>0;)e--;let s=a[e];if("#a"==s||null==s||!0!==i.settings.uSize[e]&&!0!==n){let s,r;for(r=e;r>=h;r--)if(i.settings.uSize[r]&&"#a"!=a[r]&&void 0!==a[r]&&""!==a[r]&&null!==a[r]){s=r;break}if(null==s)for(r=e;r<=5;r++)if(i.settings.uSize[r]&&"#a"!=a[r]&&void 0!==a[r]&&""!==a[r]&&null!==a[r]){s=r;break}if(void 0!==s){if(0==h&&0==e&&(u=parseFloat(i.settings.size.width[0])/parseFloat(i.settings.size.width[s])),"scale"==p)if(i.slideRatios){let e=parseInt(i.settings.size.height[c],0)*(!1!==i.slideRatios[i.current.id]?i.slideRatios[i.current.id]:parseFloat(i.settings.size.width[s])/parseFloat(i.settings.size.height[s])),t=parseInt(i.settings.size.height[s],0)*(!1!==i.slideRatios[i.current.id]?i.slideRatios[i.current.id]:parseFloat(i.settings.size.width[s])/parseFloat(i.settings.size.height[s]));u=e/t,d&&console.log(u,e,t)}else u=parseFloat(i.settings.size.width[c])/parseFloat(i.settings.size.width[s]);t=a[s]}}t??=s}else t=a;let m=_tpt.gsap.utils.getUnit(t);if((s=Number.isFinite(parseFloat(t)))&&"%"!==m)if(1!==u&&(t=parseFloat(t)*u),1==o){t=parseFloat(t)*(h>c&&(0!=c||i.settings.size.fullWidth&&!i.useHMP)?1:i.MP??1),"round"==l||"ceil"==l?t=Math[l](t):"floor"==l&&(t=t>0?Math.floor(t):Math.ceil(t))}else"forceround"==l&&(t=Math.round(parseFloat(t)));return s?0==r||null==r?parseFloat(t):parseFloat(t)+(1==r?m:r):t},SR7.dirVal=function(e,t){let s=1;return(""+t).includes("(")&&(t=t.slice(1).slice(0,-1),s=SR7.M[e].lastChangeDir),{v:t,d:s}},SR7.F.getParOffsets=(e,t={})=>(t.width??=parseInt(e.cw),t.height??=parseInt(e.ch),t.left=(t.left??0)+parseInt(e?.left??0),t.top=(t.top??0)+parseInt(e?.top??0),void 0!==e.par&&(t=SR7.F.getParOffsets(e.par,t)),t),SR7.F.getParRowMP=e=>{let t={x:0,y:0};for(;e&&"SR7-SLIDE"!==e.tagName;)"SR7-ROW"===e.tagName&&(t.x+=parseFloat(e.style.paddingLeft||0),t.y+=parseFloat(e.style.paddingTop||0),t.x+=parseFloat(e.style.marginLeft||0),t.y+=parseFloat(e.style.marginTop||0)),e=e.parentElement;return t},SR7.F.getOffsetTop=e=>{let t=e.offsetTop,s=e.offsetParent;for(;null!==s;)t+=s.offsetTop,s=s.offsetParent;return t},SR7.cVal=function(e,t,s,i,a,r,o=!1,l,n){let d=(""+e).includes("%"),{v:c,d:p}=!1!==o?{v:SR7.F.getOffset(e,void 0,SR7.M[t].lastChangeDir,n),d:1}:SR7.dirVal(t,(""+e).includes("{")||(""+e).includes("[")?SR7.F.getOffset(e,void 0,void 0,0):e);p="in"!==l&&"out"!==l?1:p;let h=c;if(SR7.D.DA.indexOf(c)>=0){i??=null==s.ptype?1:"zone"==s.ptype?2:0,i=4==(i=!("zone"!=s.ptype&&null!=s.ptype||null!=i&&1!=i)?2:i)&&"column"==s.ptype?"100%"===s.par.w?2:1:i;let e="center"!==c&&"middle"!==c&&0==i?{left:0,top:0,width:"zone"==s.ptype?s.ciw:s.cw,height:s.ch}:SR7.F.getParOffsets(s),o=1==i||("center"==c||"middle"==c)&&0==i?s.par.el?SR7.F.getParOffsets(s.par):{width:s.par.cw,height:s.par.ch,left:s.par?.left??s.par?.x,top:s.par?.top??s.par?.y}:{width:SR7.M[t].dims.content.w,height:SR7.M[t].dims.content.h,left:SR7.M[t].dims.content.x,top:SR7.M[t].dims.content.y},l="center"===c||"middle"===c||null!=a&&0!=a?{left:s.target.offsetLeft,top:s.target.offsetTop}:{left:0,top:0};if(e.width+=s.borderH??0,e.height+=s.borderV??0,"zone"==s.ptype&&(e.height+=s.rpt??0+s.rpb??0,e.width+=s.rptl??0+s.rptr??0),!s.par.el&&SR7.M[t]?.c?.autoParents?.[s.skey]?.includes(s.lkey)&&SR7.M[t]?.firstRendering&&s.el.classList[1==SR7.M[t].firstRendering[s.skey]?"add":"remove"]("sr7-hiddenAutoContainer"),"center"==c||"middle"==c)h="y"==r?i<2?0-e.height/2+o.height/2-l.top:0-e.top-e.height/2+o.height/2:i<2?0-e.width/2+o.width/2-l.left+o.left:0-e.left-e.width/2+o.width/2;else{let a="left"==c||"right"==c?Math.abs(Math.round(parseFloat(s?.mod?.animElemXY?._gsap?.x??s?.mod?.animElem?._gsap?.x??0))):"bottom"==c||"top"==c?Math.abs(Math.round(parseFloat(s?.mod?.animElemXY?._gsap?.y??s?.mod?.animElem?._gsap?.y??0))):0;a+=0==a?0:10,(1==p&&"bottom"==c||-1==p&&"top"==c)&&(h=0==i?e.height:1==i?o.height-(e.top-o.top):SR7.M[t].dims.content.h-e.top),(1==p&&"top"==c||-1==p&&"bottom"==c)&&(h=0==i?0-e.height:1==i?0-(e.top-o.top+e.height):0-(e.top+e.height)),(1==p&&"right"==c||-1==p&&"left"==c)&&(h=0==i?e.width:1==i?(o.left??0)-e.left+o.width:"column"==s.par?.subtype?o.width-e.left:o.width-e.left+l.left-(o?.left??0)),(1==p&&"left"==c||-1==p&&"right"==c)&&(h=0==i?0-e.width:1==i?0-(e.left-(o.left??0)+("row"==s.subtype?SR7.M[t].dims.content.w:e.width)):0-(e.left+("row"==s.subtype?SR7.M[t].dims.content.w:e.width))),h=h>0?h+a:h-a}return h}return d?(i??=null==s.ptype||""+s.ptype=="-1"||"zone"==s.ptype?0:1,null==i||0==i?h=p*parseInt(c)/100*("x"===r?"zone"==s.ptype?s.ciw:o?o.offsetWidth:0==s.cw?s.el?.offsetWidth??s.cw:s.cw:o?o.offsetHeight:0==s.ch?s.el?.offsetHeight??s.ch:s.ch):1==i?h=p*parseInt(c)/100*("x"===r?o?s.cw:s.par.cw:o?s.ch:s.par.ch):2==i&&(h=p*parseInt(c)/100*("x"===r?SR7.M[t].dims.content.cw:SR7.M[t].dims.content.ch)),h):c},SR7.F.getEmptyAnimObj=e=>1==e?{x:0,y:0,z:0,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,opacity:1}:{x:0,y:0,z:0,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,opacity:1,blur:0,graysacle:0,brightness:100},SR7.F.checkWrap=(e,t)=>{if(null==e)return!1;let s=!1;for(let i in e)s&&_tpt.hop(e,i)||(s=void 0!==e[i][t]);return s},SR7.F.checkMargin=e=>{let t,s,i=!1;if(e)for(t of SR7.D.DS)if(!i)for(s=0;s<5;s++)i=i||0!==e[t][s]&&void 0!==e[t][s];return i},SR7.F.splitText=(e,t)=>{let s;for(let t in e.tl)for(let i of["words","lines","chars"])!_tpt.hop(e.tl,t)||null!=s&&s[i+"Class"]||void 0===(e.tl[t]?.[i]??void 0)||(s??={},s[i+"Class"]="sr7_splitted_"+i);return void 0!==s&&(s.wordsClass??="sr7_splitted_words_noanim",s.type=Object.keys(s).join(",").replaceAll("Class","")),null!=s&&new _tpt.SplitText(t.el,s)},_tpt.inRange=(e,t,s)=>e>=(t<s?t:s)&&e<=(t>s?t:s)?"in":"out",SR7.F.startOnAction=(e,t,s)=>"zone"!==SR7.M[e].slides[t].layers[s].type&&(void 0!==SR7.M[e].slides[t].layers[s].tl.in&&"w"==(""+(SR7.M[e].slides[t].layers[s].tl.in?.content?.all?.[0]?.t??""))[0]||0==SR7.M[e].slides[t].layers[s].tl.in?.content?.all?.length),SR7.F.triggeredChildren=(e,t,s,i=[])=>{let a=SR7.M[e].slides[t].layers;if("container"==a[s].type)for(let r in a){if(r==s||i.indexOf(r)>=0||!_tpt.hop(a,r))continue;let o=a[r];o.pid==s&&(i.push(r),"container"==o.type&&!0!==SR7.F.startOnAction(e,t,r)&&(i=SR7.F.triggeredChildren(e,t,r,i)))}return i},SR7.F.inActionEnv=(e,t,s,i=!1)=>(null==e||null==s||null==t||(i=i||SR7.F.startOnAction(e,t,s))||-1===SR7.M[e].slides[t].layers[s].pid||(i=SR7.F.inActionEnv(e,t,SR7.M[e].slides[t].layers[s].pid,i)),i),SR7.F.getOffset=(e,t,s,i)=>{let a=e;if("left"==e||"right"==e||"top"==e||"bottom"==e)return a;if(null==a)return;const r=(""+a).includes("%");return a=SR7.F.getSpecialValue(a,i,s),0==a||void 0===a?0:r?null==t?a:t*(parseFloat(a)/100):parseFloat(a)},SR7.F.getSpecialValue=(e,t,s,i)=>{let a=e;if(null!=a)return parseFloat(a)==a?parseFloat(a,0):(""+a).includes("{")?(a=a.slice(1,-1).split(","),_tpt.gsap.utils.random(parseFloat(a[0]),parseFloat(a.length>1?a[1]:0-a[0]))):(""+a).includes("[")?(a=_tpt.gsap.utils.wrap(a.slice(1,-1).split(","),t),(""+a).includes("(")?parseFloat(a.slice(1,-1))*s+(i?"%":""):a):((""+a).includes("(")?parseFloat(a.slice(1,-1))*s:parseFloat(a))+(i?"%":"")},SR7.F.getSpikePath=(e={l:"none",lw:10,r:"none",rw:10})=>"polygon("+SR7.F.getClipPaths(e.l,0,parseFloat(e.lw))+","+SR7.F.getClipPaths(e.r,100,100-parseFloat(e.rw),!0)+")",SR7.F.usePerspective=function(e,t,s=600,i){let a;if(i)(_tpt.isSet(e.z)&&"0deg"!==e.z||_tpt.isSet(e.rX)&&"0deg"!==e.rX||_tpt.isSet(e.rY)&&"0deg"!==e.rY)&&(a="global"==t.perspectiveType?t.perspective??600:"isometric"==t.perspectiveType?"none":s);else for(let i in e)void 0===a&&_tpt.hop(e,i)&&(_tpt.isSet(e[i].z)&&"0deg"!==e[i].z||_tpt.isSet(e[i].rX)&&"0deg"!==e[i].rX||_tpt.isSet(e[i].rY)&&"0deg"!==e[i].rY)&&(a="global"==t.perspectiveType?t.perspective??600:"isometric"==t.perspectiveType?"none":s);return"none"==a?void 0:a},SR7.F.getClipPaths=(e,t,s,i)=>{var a;switch(e){case"none":a=t+"% 100%,"+t+"% 0%";break;case"top":a=s+"% 100%,"+t+"% 0%";break;case"middle":a=s+"% 100%,"+t+"% 50%,"+s+"% 0%";break;case"bottom":a=t+"% 100%,"+s+"% 0%";break;case"two":a=s+"% 100%,"+t+"% 75%,"+s+"% 50%,"+t+"% 25%,"+s+"% 0%";break;case"three":a=t+"% 100%,"+s+"% 75%,"+t+"% 50%,"+s+"% 25%,"+t+"% 0%";break;case"four":a=t+"% 100%,"+s+"% 87.5%,"+t+"% 75%,"+s+"% 62.5%,"+t+"% 50%,"+s+"% 37.5%,"+t+"% 25%,"+s+"% 12.5%,"+t+"% 0%";break;case"five":a=t+"% 100%,"+s+"% 90%,"+t+"% 80%,"+s+"% 70%,"+t+"% 60%,"+s+"% 50%,"+t+"% 40%,"+s+"% 30%,"+t+"% 20%,"+s+"% 10%,"+t+"% 0%"}if(i){var r=a.split(",");for(s in a="",r)_tpt.hop(r,s)&&(a+=r[r.length-1-s]+(s<r.length-1?",":""))}return a},SR7.F.clipEffect=(e,t,s,i=100)=>{t="r"==t||null==t,s=parseInt(s,0),i=100-parseInt(i,0);const a=Math.round(s/2);switch(e){case"invh":return"polygon(0% 0%, 0% 100%, "+s+"% 100%, "+s+"% 0%, 100% 0%, 100% 100%, "+i+"% 100%, "+i+"% 0%, 0% 0%)";case"invv":return"polygon(100% 0%, 0% 0%, 0% "+s+"%, 100% "+s+"%, 100% 100%, 0% 100%, 0% "+i+"%, 100% "+i+"%, 100% 0%)";case"cv":return t?"polygon("+(50-a)+"% 0%, "+(50+a)+"% 0%, "+(50+a)+"% 100%, "+(50-a)+"% 100%)":"circle("+s+"% at 50% 50%)";case"ch":case"cliph":return t?"polygon(0% "+(50-a)+"%, 0% "+(50+a)+"%, 100% "+(50+a)+"%, 100% "+(50-a)+"%)":"circle("+s+"% at 50% 50%)";case"l":return t?"polygon(0% 0%, "+s+"% 0%, "+s+"% 100%, 0% 100%)":"circle("+s+"% at 0% 50%)";case"r":return t?"polygon("+(100-s)+"% 0%, 100% 0%, 100% 100%, "+(100-s)+"% 100%)":"circle("+s+"% at 100% 50%)";case"t":return t?"polygon(0% 0%, 100% 0%, 100% "+s+"%, 0% "+s+"%)":"circle("+s+"% at 50% 0%)";case"b":return t?"polygon(0% 100%, 100% 100%, 100% "+(100-s)+"%, 0% "+(100-s)+"%)":"circle("+s+"% at 50% 100%)";case"lt":return t?"polygon(0% 0%,"+2*s+"% 0%, 0% "+2*s+"%)":"circle("+s+"% at 0% 0%)";case"lb":return t?"polygon(0% "+(100-2*s)+"%, 0% 100%,"+2*s+"% 100%)":"circle("+s+"% at 0% 100%)";case"rt":return t?"polygon("+(100-2*s)+"% 0%, 100% 0%, 100% "+2*s+"%)":"circle("+s+"% at 100% 0%)";case"rb":return t?"polygon("+(100-2*s)+"% 100%, 100% 100%, 100% "+(100-2*s)+"%)":"circle("+s+"% at 100% 100%)";case"clr":return t?"polygon(0% 0%, 0% "+s+"%, "+(100-s)+"% 100%, 100% 100%, 100% "+(100-s)+"%, "+s+"% 0%)":"circle("+s+"% at 50% 50%)";case"crl":return t?"polygon(0% "+(100-s)+"%, 0% 100%, "+s+"% 100%, 100% "+s+"%, 100% 0%, "+(100-s)+"% 0%)":"circle("+s+"% at 50% 50%)"}return""},SR7.F.getCSSTransform=(e={})=>{var t=[];let s=!1;const i=e=>"inherit"==e?void 0:e;let a,r;void 0!==(a=i(e.z))&&0!==a?(s=!0,t.push("translate3d("+_tpt.unitize(i(e.x)??0)+","+_tpt.unitize(i(e.y)??0)+","+_tpt.unitize(i(e.z)??0)+")")):void 0!==(a=i(e.x))&&void 0!==(r=i(e.y))&&t.push("translate("+_tpt.unitize(a)+","+_tpt.unitize(r)+")"),void 0!==(a=i(e.rotate))||void 0!==(a=i(e.rotationZ))?t.push("rotate("+_tpt.unitize(a,"deg")+")"):void 0!==(a=i(e.rotationY))&&(s=!0,t.push("rotateY("+_tpt.unitize(a,"deg")+")")),void 0!==(a=i(e.rotationX))&&(s=!0,t.push("rotateX("+_tpt.unitize(a,"deg")+")")),a=i(e.scaleX),r=i(e.scaleY);let o=i(e.skewX),l=i(e.skewY);return void 0===o&&void 0===l||(void 0!==o&&(r=parseFloat(r??1)*Math.cos((o=parseFloat(o))*_tpt.DEG2RAD)),void 0!==l&&(a=parseFloat(a??1)*Math.cos((l=parseFloat(l))*_tpt.DEG2RAD))),void 0===o&&void 0===l||t.push("skew("+_tpt.unitize(o??0,"deg")+","+_tpt.unitize(l??0,"deg")+")"),void 0===a&&void 0===r||t.push("scale("+(a??1)+","+(r??1)+")"),s&&t.unshift("perspective("+_tpt.unitize(i(e.perspective)??600)+")"),t.join(" ")},SR7.F.offsetStagger=function(e){var t=_tpt.gsap.utils.distribute(e);return function(s,i,a){return t(s,i,a)+(s<=a.length/2?0:e.offset||0)}},SR7.F.useFilter=e=>void 0!==e&&(void 0!==e.r&&100!==parseInt(e.r)||void 0!==e.g&&0!==parseInt(e.g)||void 0!==e.b&&0!==parseInt(e.b)),SR7.F.getFilterStyle=(e,t,s={})=>{const i=Object.keys(SR7.D.dFV),a={...s},r=i.filter((i=>s[i]||"string"==typeof e&&e.includes(i)&&e.split(i+"(")[1].split(")")[0]!==parseInt(SR7.D.dFV[i])||void 0!==e[t+SR7.D.dFVC[i]]&&parseInt(e[t+SR7.D.dFVC[i]])!==parseInt(SR7.D.dFV[i])?(a[i]=!0,!0):(a[i]=!1,!1)));if(0===r.length)return{filter:"none",changedFilters:a};let o=r.map((s=>`${s}(${"string"==typeof e&&e.includes(s)?parseInt(e.split(s+"(")[1].split(")")[0])||parseInt(SR7.D.dFV[s]):parseInt(e[t+SR7.D.dFVC[s]]||SR7.D.dFV[s])}${"blur"===s?"px":"%"})`)).join(" ");const l={};return r.map((s=>{if(!a[s])return;const i="string"==typeof e&&e.includes(s)?parseInt(e.split(s+"(")[1].split(")")[0])||parseInt(SR7.D.dFV[s]):parseInt(e[t+SR7.D.dFVC[s]]||SR7.D.dFV[s]);l[s]=i})),{filter:o,filters:l,used:a}},SR7.F.getBGAnimColor=(e={type:"solid",orig:"transparent",string:"transparent"},t,s)=>{if(null==e||null==t)return{};let i="object"==typeof t?t.string:t,a="object"==typeof e?e.string:e,r=i.includes("gradient");return a.includes("gradient")||r?{gradient:!0,bg:_tpt.gradient.getSSGColors(i,a,s||"fading")}:{gradient:!1,bg:{to:a,from:i}}},SR7.F.cache=(t,s,i,a)=>{e(t,s.split("."),i,a)},SR7.F.getAccelerationPermission=()=>{DeviceMotionEvent.requestPermission().then((function(e){if("granted"==e)for(var t in SR7.M)_tpt.hop(SR7.M,t)&&(SR7.M[t].c.modulesNeedOrientationListener=!1,SR7.F.removeIOSPermissionWait(),SR7.F.addDeviceOrientationListener(t))}))},SR7.F.addDeviceOrientationListener=e=>{const t=SR7.M[e],s=t.c.mod;window.addEventListener("deviceorientation",(function(e){t.c.modulesNeedOrientationListener&&(t.c.modulesNeedOrientationListener=!1,SR7.F.removeIOSPermissionWait()),s.eventData=e}))},SR7.F.removeIOSPermissionWait=()=>{document.querySelectorAll(".iospermaccwait").forEach((function(e){e.classList.add("permanenthidden")}))},SR7.F.calculateVisiblePercentage=e=>{const t=window.pageYOffset||document.documentElement.scrollTop,s=Math.max(e.top+t,t),i=Math.min(e.bottom+t,t+_tpt.winH);if(i<=s)return 0;return(i-s)/e.height},SR7.F.scrollTo=(e,t,s=1,i="power2.out",a)=>{if(!SR7.M[e].useAsModal){let e={_y:window.pageYOffset!==document.documentElement.scrollTop?0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop:window.pageYOffset};return tpGS.gsap.fromTo(e,s,{_y:Math.max(document.body.scrollTop,document.documentElement.scrollTop),ease:i},{_y:t,onUpdate:function(){document.documentElement.scrollTop=e._y,document.body.scrollTop=e._y},onComplete:a})}},SR7.F.scrollToId=e=>{SR7.M[e.id].c.scrollToObj=e,_tpt.isSafari11||(SR7.M[e.id].c.scrollToObj.sbHtml=_tpt.gsap.getProperty("html","scrollBehavior"),SR7.M[e.id].c.scrollToObj.sbBody=_tpt.gsap.getProperty("body","scrollBehavior"),_tpt.gsap.set("html,body",{scrollBehavior:"auto"})),SR7.F.calcScrollToId(e.id)},SR7.F.getContsHeights=(e="",t=_tpt.winH)=>{if(""==e)return 0;const s=e.split(",");let i=0;return s.forEach((e=>{let s=_tpt.posToNum(e,t);if(s==e&&function(e){try{document.querySelector(e)}catch(e){return!1}return!0}(e)){document.querySelectorAll(e.trim()).forEach((e=>{i+=e.offsetHeight}))}else i+=s})),i},SR7.F.calcScrollToId=e=>{const s=SR7.M[e],i=s.c.scrollToObj;var a=i.tween&&i.tween.progress?i.tween.progress():0;i.tween&&i.tween.kill&&i.tween.kill(),void 0!==i.startScrollPos&&null!==i.startScrollPos||(i.startScrollPos=s.useAsModal?SR7.F.modal.wrap.scrollTop:Math.max(document.body.scrollTop,document.documentElement.scrollTop));const r=void 0===i.anchor?s.dims.reduceHeight-(parseInt(i.offset,0)||0)||0:0-(parseInt(i.offset,0)||0),o=null==i.anchor?s.c.module:document.getElementById("#"==i.anchor[0]?i.anchor:i.anchor.replace("#",""))||document.getElementById("#"==i.anchor[0]?i.anchor:i.anchor.replace("#","").toUpperCase()),l={_y:s.useAsModal?SR7.F.modal.wrap.scrollTop:window.pageYOffset!==document.documentElement.scrollTop?0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop:window.pageYOffset},n=(null!=o?SR7.F.getOffsetTop(o):0)+(null==i.anchor?s.settings.tlScroll?.fixed?s.dims.module.h+s.fullScreenOffsetResult:void 0!==s.dims.sbt?s.dims.sbt:s.dims.content.h:0),d=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),c=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let p=Math.min(n-r,d-c-1);if(p<0)return t(e,i);i.tween=tpGS.gsap.fromTo(l,parseInt(i.speed)/1e3,{_y:i.startScrollPos},{_y:p,ease:i.ease,onUpdate:function(){s.useAsModal?SR7.F.modal.wrap.scrollTop=l._y:(document.documentElement.scrollTop=l._y,document.body.scrollTop=l._y)},onComplete:function(){t(e,i)}}),i.tween.progress(a)},SR7.F.getFeed=(e,t,i="src",a,r,o)=>{let l=e.settings.source.type,n=e.stream[t-1];if(null==n)return;0==i.indexOf("event_")&&"event_id"!==i&&(i=(i=i.replace("event_location_","")).replace("event_",""));let d="featured_image_url_"==i.slice(0,19)?_tpt.urlProtocol(n.img_urls[i.replace("featured_image_url_","")]?.url??n.img_urls?.full?.url,!1)??"":("thumb"==i||"image"==i)&&"instagram"==l||"thumb"==i&&"facebook"==l?_tpt.urlProtocol(n.thumb??"","flickr"==l||"youtube"==l):"media"==i||("instagram"==l||"facebook"==l)&&("thumb"==i||"image"==i||"thumbnail"==i)||"image"==i&&"html5"!==l&&"youtube"!==l&&"vimeo"!==l?_tpt.urlProtocol(n.media??"","flickr"==l||"youtube"==l):"image"==i||"thumbnail"==i||"thumb"==i?_tpt.urlProtocol(n.thumb??"","flickr"==l||"youtube"==l):"meta"==i?s(n.meta,a)??"":"title"==i||"instagram"==l&&"content"==i?s(n.title,"title",a,r)??"":"content"==i||"youtube"==l&&"excerpt"==i||"woo"==l&&"excerpt"==i&&""==(n.excerpt??"")?s(n.content,"content",a,r)??"":"excerpt"!=i||"youtube"===l&&void 0===n.excerpt?"description"==i?s(n.description,"description",a,r):"wc_star_rating"==i?(n.wc_star_rating??"").replaceAll("rs-starring","sr-starring"):"catlistr"==i||"catlist_raw"==i||"catlistraw"==i?n.catlistraw??n.catlist_raw??n.catlistr??"":void 0!==n["event_location_"+i]?n["event_location_"+i]:void 0!==n["event_"+i]?n["event_"+i]:void 0!==n[i]?n[i]:"postid"==i||"event_id"==i?n.id??"":"link"==i?n.link??"":"author_name"==i?n.author??n.author_name??"":"author_avatar"==i?n.avatar??n.author_avatar??"":"author_website"==i?n.website??n.author_website??"":"author_postpage"==i?n.postpage??n.author_postpage??"":"date"==i||"date_published"==i?n.publish??"":"date_modified"==i?n.modified??"":"wc_categories"==i?n.catlist??"":"wc_tags"==i?n.taglist??"":"retweet_count"==i?n.retweet??"":"favorite_count"==i?n.favorite??"":"ncomments"==i||"num_comments"==i||"numcomments"==i?n.num_comments??n.numcomments??n.ncomments??"":void 0:s(n.excerpt,"excerpt",a,r)??"";return d||""==d?d:o};let s=(e,t,s,i)=>null==s||null==i?e?.[t]??e:e?.[s]?.[i]??e?.[t]??e;SR7.F.updateDynamicMetas=(e,t,s)=>s.replace(/\{\{([^}]+)\}\}/g,(function(s,i){let[a,r,o]=i.split(":"),l=SR7.F.getFeed(SR7.M[e],t,a,r,o);if(l&&r)switch(r){case"words":l=l.split(" ").slice(0,o).join(" ");break;case"chars":l=l.slice(0,o)}return null==l?s:l})),SR7.F.getCurSlideIndDigit=(e,t)=>{var s=void 0!==t&&SR7.M[e].slideOrder.indexOf(t)+1||SR7.M[e].current.index+1;return(s<10&&SR7.M[e].len>9?"0":"")+s},SR7.F.updateBasicMetas=(e,t,s)=>{if(null!=t)return-1!==t.el.innerHTML.indexOf("{{total_slide_count}}")&&(t.el.innerHTML=t.el.innerHTML.replace("{{total_slide_count}}",SR7.M[e].len)),t.el.innerHTML.indexOf("{{current_slide_index}}")>=0&&(SR7.M[e].slides[s].slide.global?(SR7.M[e].metas??={},SR7.M[e].metas.csi??=[],t.el.innerHTML=t.el.innerHTML.replace("{{current_slide_index}}","<cusli>"+SR7.F.getCurSlideIndDigit(e)+"</cusli>"),SR7.M[e].metas.csi.push(t.el.getElementsByTagName("CUSLI")[0])):t.el.innerHTML=t.el.innerHTML.replace("{{current_slide_index}}",SR7.F.getCurSlideIndDigit(e,s))),!0;if(void 0!==SR7.M[e].metas&&void 0!==SR7.M[e].metas.csi)for(let t in SR7.M[e].metas.csi)SR7.M[e].metas.csi[t].innerHTML=SR7.F.getCurSlideIndDigit(e)},_tpt.R??={},_tpt.R.srtools=_tpt.extend?_tpt.extend(_tpt.R.srtools,{status:2,version:"6.7.16"}):{status:2,version:"6.7.16"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},void 0!==SR7.D.contentOBJ)return;SR7.D.streamTypes??=["flickr","facebook","instagram","twitter","vimeo","youtube","woo","post"],SR7.D.bgTypes??=["transparent","color","image","video"],SR7.D.BRAD=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],SR7.D.BWID=["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],SR7.D.DL=["Top","Right","Bottom","Left"],SR7.D.DLs=["top","right","bottom","left"],SR7.D.DS=["t","r","b","l"],SR7.D.DA=["bottom","top","left","right","center","middle"],SR7.D.spacings=["margin","padding"],SR7.D.olevels={largedesktop:0,desktop:1,notebook:2,tablet:3,mobile:4,nobreak:5},SR7.D.tagLib={text:"SR7-TXT",button:"SR7-BTN",row:"SR7-ROW",column:"SR7-COL",group:"SR7-GRP",shape:"SR7-SHP",image:"SR7-IMG",svg:"SR7-SVG",zone:"SR7-ZONE",linebreak:"SR7-LINEBRK"},SR7.D.dFV={blur:"0px",brightness:"100%",grayscale:"0%",sepia:"0%",invert:"0%"},SR7.D.dFVC={blur:"b",brightness:"r",grayscale:"g",sepia:"s",invert:"i"},SR7.D.splits=["words","chars","lines"],SR7.D.TLTargets=["words","lines","chars","content","mask","filter","clip","loop","pan"],SR7.D.TLTargetsProcess=["clip","mask","words","lines","chars","content","filter","loop","pan"],SR7.D.animAttr=["x","y","z","opacity","scaleX","scaleY","skewX","skewY","rotate","rotationX","rotationY","rotationZ"],SR7.D.animAttrTrans={x:"x",y:"y",z:"z",opacity:"o",scaleX:"sX",scaleY:"sY",skewX:"skX",skewY:"skY",rotate:"rZ",rotationZ:"rZ",rotationX:"rX",rotationY:"rY"},SR7.D.subsets={"cyrillic-ext":{start:1120,end:1327},cyrillic:{start:1024,end:1279},"greek-ext":{start:7936,end:8191},greek:{start:880,end:1023},vietnamese:{start:258,end:423},"latin-ext":{start:256,end:591},latin:{start:0,end:255}},SR7.D.modulStreamOBJ={post:{excerptLimit:55,maxPosts:30,fetchType:"cat_tag",category:"",sortBy:"ID",types:"post",list:"",sortDirection:"DESC",subType:"post"},woo:{excerptLimit:55,maxProducts:30,featuredOnly:!1,inStockOnly:!1,category:"",sortBy:"ID",types:"product",sortDirection:"DESC",regPriceFrom:"",regPriceTo:"",salePriceFrom:"",salePriceTo:""},instagram:{count:8,hashTag:"",transient:1200,type:"user",userId:"",token_source:"account",connect_with:""},facebook:{album:"",appId:"",appSecret:"",count:8,transient:1200,typeSource:"timeline",token_source:"account",connect_with:"",page_id:""},flickr:{apiKey:"",count:8,galleryURL:"",groupURL:"",photoSet:"",transient:1200,type:"publicphotos",userURL:""},twitter:{accessSecret:"",accessToken:"",consumerKey:"",consumerSecret:"",count:8,excludeReplies:!1,imageOnly:!1,includeRetweets:!1,transient:1200,userId:""},vimeo:{albumId:"",channelName:"",count:8,transient:1200,groupName:"",typeSource:"user",userName:""},youtube:{api:"",channelId:"",count:8,playList:"",transient:1200,typeSource:"channel"}},SR7.D.fixSR6IDs=(e,t)=>{if(!SR7.E.v6v7ids)return e;return t?SR7.E.v6v7ids?.s?.[parseInt(e)||9999999]??e:SR7.E.v6v7ids?.n?.[parseInt(e)||9999999]??e},SR7.D.contentOBJ=function(e,t){t=null==t?"color"==e?"#ffffff":{}:t;var s="image"==e?{ratio:t.ratio??1,src:t.src??"",lib:t.lib??"",lib_id:t.lib_id??"",lib_size:t.lib_size??"full",fromStream:t.fromStream??!1,streamType:t.streamType??"gallery",pos:{x:t.pos?.x??"50%",y:t.pos?.y??"50%"},repeat:t.repeat??"no-repeat",size:t.size??"cover",sizeVal:t.sizeVal??"100%",seo:t.seo??!1}:"color"==e?t:"text"==e?{text:t.text??"",ph:t.ph??"",deco:t.deco??"none",trans:t.trans??"none"}:"svg"==e?{oC:t.oC??!1,color:t.color??["#fff","#fff","#fff","#fff","#fff"],all:t.all??!1,stroke:{c:t.stroke?.c??"transparent",d:t.stroke?.d??0,o:t.stroke?.o??0,w:t.stroke?.w??0},src:t.src??""}:"video"==e||"audio"==e?{src:t.src??"",crossOrigin:t.crossOrigin??!1,afterTransition:t.afterTransition??!1,controls:t.controls??"xl",autoPlay:t.autoPlay??!0,pauseTimer:t.pauseTimer??!0,start:t.start??"00:00",end:t.end??"00:00",nextSlide:t.nextSlide??!0,stopAllMedia:t.stopAllMedia??!0,loop:t.loop??!0,preload:t.preload??"auto",preloadWait:t.preloadWait??"0",rewind:t.rewind??!0,volume:t.volume??"100"}:{};return"video"==e&&(s=_tpt.extend(s,{poster:{src:t.poster?.src??"",lib:t.poster?.lib??"",lib_id:t.poster?.lib_id??"",lib_size:t.poster?.lib_size??"",size:t.poster?.size??"cover",fromStream:t.poster?.fromStream??!1,showOnPause:t.poster?.showOnPause??!1,insteadVideo:t.poster?.insteadVideo??!1,noOnMobile:t.poster?.noOnMobile??!1},fromStream:t.fromStream??!1,streamType:t.streamType??"gallery",type:t.type??"html5",cover:t.cover??!0,noInteract:t.noInteract??!1,aFullScreen:t.aFullScreen??!0,args:t.args??"",fullWidth:t.fullWidth??!1,mute:t.mute??!0,ratio:t.ratio??"16:9",inline:t.inline??!0,speed:t.speed??1,pauseOnSwap:t.pauseOnSwap??!1,cOC:t.cOC??!1})),s},SR7.D.convertBGPosObj=function(e,t="50%",s="50%"){var i={x:"50%",y:"50%"};if(null==e)return i;if("percentage"==e)return{x:parseInt(t)+"%",y:parseInt(s)+"%"};var a=(""+e).split(" ");return"center"==a[0]&&"center"==a[1]||("left"==a[0]&&(i.x="0%"),"right"==a[0]&&(i.x="100%"),"top"==a[1]&&(i.y="0%"),"bottom"==a[1]&&(i.y="100%")),i},SR7.D.carouselSettings=(e,t)=>{if(void 0===e)return{};let s=e?.showAllLayers??"false";return s="true"==String(s)?"all":s,{type:e.type??e.orientation??"h",align:e.align??("h"===(e.orientation??"h")?e.horizontal??"center":e.vertical??"center"),maxV:Math.max("3d"==e.spin?3:1,e.maxV??e.maxItems??3),justify:e.justify??!1,scale:e.scale??!1,minS:e.minS??e.scaleDown??50,vScale:e.vScale??e.varyScale??!1,oScale:e.oScale??e.offsetScale??!1,space:e.space??0,rotation:e.rotation??!1,maxR:e.maxR??e.maxRotation??0,varR:e.varR??e.varyRotate??!1,opacity:e.opacity??e.fadeOut??!0,maxO:e.maxO??e.maxOpacity??100,varO:e.varO??e.varyFade??!1,spin:e.spin??"off",spinA:parseInt(e.spinA??e.spinAngle??0),snap:e.snap??!0,infinity:e.infinity??!1,skewX:e.skewX??0,skewY:e.skewY??0,ease:e.ease??"power3.inOut",dur:e.dur??e.speed??800,overshoot:e.overshoot??!1,stretch:e?.stretch??!1,showAllLayers:s,jMWidth:e.jMWidth||(e?.justifyMaxWidth??!1),bR:e.bR??e?.borderRadius??0,pNV:e.pNV??e?.prevNextVis??"50px",pT:e.pT??e?.paddingTop??0,pB:e.pB??e?.paddingBottom??0}},SR7.D.moduleObj=function(e,t={}){var s=SR7.M[e].migrate?SR7.migrate.moduleObj(t):t,i={id:s.id??"",migrated:s.migrated??!1,addOns:s.addOns??{},uSize:s.uSize??[!1,!0,!1,!1,!1],level:s.level??4,title:s.title??"",alias:s.alias??"",dbid:s.dbid??"",deepLinks:s.deepLinks,type:s.type??"slider",fonts:s.fonts??{},prem:s.prem??!1,class:s.class??"",wClass:s.wClass??"",fixed:s.fixed??!1,mobileURLJumpFix:s.mobileURLJumpFix??!0,wpml:s.wpml??!1,lazyLoad:s.lazyLoad??"none",uS:s.uS??!1,vPort:s.vPort??"-100px",acc:{use:s.acc?.use??!1,live:s.acc?.live??!1},fs:{as:s.fs?.as??!1,a:s.fs?.a??void 0},source:{type:s.source?.type??"gallery"},imgs:s.imgs??[],hasYT:s.hasYT??!1,size:{fullWidth:s.size?.fullWidth??!0,fullHeight:s.size?.fullHeight??!1,fullHeightOffset:","==(s.size?.fullHeightOffset??"")?"":s.size?.fullHeightOffset??"",contentFH:s.size?.contentFH??!1,width:s.size?.width??[1600,1240,1024,778,480],height:s.size?.height??["#a","auto","#a","#a","#a"],cachedHeight:s.size?.cachedHeight??["#a","auto","#a","#a","#a"],minHeight:s.size?.minHeight??[0,0,0,0,0],maxHeight:s.size?.maxHeight??[0,0,0,0,0],upscaling:s.size?.upscaling??!1,respectRatio:s.size?.respectRatio??!1,keepBPHeight:s.size?.keepBPHeight??!1,maxWidth:s.size?.maxWidth??!1,overflow:s.size?.overflow??"false"},snap:{adjust:s.snap?.adjust??"none",snap:s.snap?.snap??!1,helpLines:s.snap?.helpLines??!1,gap:s.snap?.gap??20},default:{fluid:{tx:s.default?.fluid?.tx??!0,tr:s.default?.fluid?.tr??!0,sp:s.default?.fluid?.sp??!0,alien:s.default?.fluid?.alien??!0},len:s.default?.len??9e3},codes:{css:s.codes?.css??"",js:s.codes?.js??""},carousel:SR7.D.carouselSettings(s.carousel),pLoader:{color:s.pLoader?.color??"#ffffff",type:s.pLoader?.type??"off"},slideshow:{auto:s.slideshow?.auto??!0,sOH:s.slideshow?.sOH??!1,loop:s.slideshow?.loop??-1,stopAt:s.slideshow?.stopAt??-1,shuffle:s.slideshow?.shuffle??!1,initDelay:s.slideshow?.initDelay??0,waitApi:s.slideshow?.waitApi??!1,firstSlide:s.slideshow?.firstSlide??"auto"},general:{icache:s.general?.icache??"default",dpr:s.general?.dpr??"dpr",observeWrap:s.general?.observeWrap??!1,disableOnMobile:s.general?.disableOnMobile??!1,autoPlayVideoMobile:s.general?.autoPlayVideoMobile??!0,disablePanMobile:s.general?.disablePanMobile??!1,perspective:s.general?.perspective??600,perspectiveType:s.general?.perspectiveType??"global",outputFilter:s.general?.outputFilter??"none",fallbackURL:s.general?.fallbackURL??"",fallbackType:s.general?.fallbackType??"off"},browser:{nextOnFocus:s.browser?.nextOnFocus??!1,noFocusListener:s.browser?.noFocusListener??!1,freezeOnBlur:s.browser?.freezeOnBlur??!1,mISB:s.browser?.mISB??!1,useURLDeeplink:s.browser?.useURLDeeplink??!1},modal:{bC:s.modal?.bC??"",h:s.modal?.h??"center",v:s.modal?.v??"middle",cover:s.modal?.cover??!0,pS:s.modal?.pS??!1,bg:s.modal?.bg??"rgba(0,0,0,0.5)",sp:s.modal?.sp??1e3},shdw:s.shdw??!1,bg:{color:s.bg?.color??"transparent",image:SR7.D.contentOBJ("image",s.bg?.image??{})},mod:{use:s.mod?.use??!1,dOM:s.mod?.dOM??!1,d3:s.mod?.d3??!1,d3z:s.mod?.d3z??65,d3d:s.mod?.d3d??15,d3s:s.mod?.d3s??3,d3e:s.mod?.d3e??"power3.out",t:s.mod?.t??"scroll",om:s.mod?.om??1,sm:s.mod?.sm??1,dir:s.mod?.dir??"same"},rOFV:s.mod?.rOFV??!0,nav:{acc:{hidden:s.nav?.acc?.hidden??!0,pressed:s.nav?.acc?.pressed??"unset",next:s.nav?.acc?.next??"Next Slide",prev:s.nav?.acc?.prev??"Previous Slide",tab:s.nav?.acc?.tab??"Tab",thumb:s.nav?.acc?.thumb??"Thumbnail",bullet:s.nav?.acc?.bullet??"Bullet"},nd:s.nav?.nd??1e3,m:{use:s.nav?.m?.use??"off",r:s.nav?.m?.r??"default",t:s.nav?.m?.t??"html",st:s.nav?.m?.st??50,v:s.nav?.m?.v??50,cd:s.nav?.m?.cd??1500},s:{use:s.nav?.s?.use??!1,desk:s.nav?.s?.desk??!1,mobC:s.nav?.s?.mobC??!0,deskC:s.nav?.s?.deskC??!0,bV:s.nav?.s?.bV??!1,d:s.nav?.s?.d??"horizontal",t:s.nav?.s?.t??1},k:{use:s.nav?.k?.use??"off"},p:{w:s.nav?.p?.w??300,h:s.nav?.p?.h??200}}};if(void 0!==SR7.M[e]&&void 0!==SR7.M[e].imgList)for(let t in SR7.M[e].imgList)_tpt.hop(SR7.M[e].imgList,t)&&_tpt.compareURL(SR7.M[e].imgList[t].old,i?.bg?.image?.src)&&(i.bg.image.src=SR7.M[e].imgList[t].new);(SR7.E.backend||s.nav?.arrows?.set)&&(i.nav??={},i.nav.arrows??={set:s.nav?.arrows?.set??!1,def:s.nav?.arrows?.def??void 0,cst:s.nav?.arrows?.cst??void 0,key:s.nav?.arrows?.key??"",t:s.nav?.arrows?.t??1e3,m:s.nav?.arrows?.m??"hslide",css:s.nav?.arrows?.css??"",html:s.nav?.arrows?.html??"",ps:s.nav?.arrows?.ps??"default",on:s.nav?.arrows?.on??!0,s:parseInt(s.nav?.arrows?.s??1e3),dIn:s.nav?.arrows?.dIn??["#a",1e3,"#a","#a","#a"],dOut:s.nav?.arrows?.dOut??["#a",1200,"#a","#a","#a"],show:s.nav?.arrows?.show??[!0,!0,!0,!0,!0],l:{a:s.nav?.arrows?.l?.a??"slider",anim:s.nav?.arrows?.l?.anim??"fade",x:s.nav?.arrows?.l?.x??["#a",0,"#a","#a","#a"],y:s.nav?.arrows?.l?.y??["#a",0,"#a","#a","#a"],v:s.nav?.arrows?.l?.v??["#a","center","#a","#a","#a"],h:s.nav?.arrows?.l?.h??["#a","left","#a","#a","#a"]},r:{a:s.nav?.arrows?.r?.a??"slider",anim:s.nav?.arrows?.r?.anim??"fade",x:s.nav?.arrows?.r?.x??["#a",0,"#a","#a","#a"],y:s.nav?.arrows?.r?.y??["#a",0,"#a","#a","#a"],v:s.nav?.arrows?.r?.v??["#a","center","#a","#a","#a"],h:s.nav?.arrows?.r?.h??["#a","right","#a","#a","#a"]}},i.fonts.RevIcon=!0,SR7.R??={},SR7.R.nav=!0),(SR7.E.backend||s.nav?.bullets?.set)&&(i.nav??={},i.nav.bullets={set:s.nav?.bullets?.set??!1,def:s.nav?.bullets?.def??void 0,cst:s.nav?.bullets?.cst??void 0,key:s.nav?.bullets?.key??"",t:s.nav?.bullets?.t??3e3,css:s.nav?.bullets?.css??"",html:s.nav?.bullets?.html??"",on:s.nav?.bullets?.on??!0,d:s.nav?.bullets?.d??"horizontal",ps:s.nav?.arrows?.ps??"default",s:parseInt(s.nav?.bullets?.s??1e3),dIn:s.nav?.bullets?.dIn??["#a",1e3,"#a","#a","#a"],dOut:s.nav?.bullets?.dOut??["#a",1200,"#a","#a","#a"],show:s.nav?.bullets?.show??[!0,!0,!0,!0,!0],g:s.nav?.bullets?.g??5,a:s.nav?.bullets?.a??"slider",anim:s.nav?.bullets?.anim??"fade",x:s.nav?.bullets?.x??["#a",0,"#a","#a","#a"],y:s.nav?.bullets?.y??["#a",0,"#a","#a","#a"],v:s.nav?.bullets?.v??["#a","bottom","#a","#a","#a"],h:s.nav?.bullets?.h??["#a","center","#a","#a","#a"]},i.fonts.RevIcon=!0,SR7.R??={},SR7.R.nav=!0),(SR7.E.backend||s.nav?.scrubber?.set)&&(i.nav??={},i.nav.scrubber={set:s.nav?.scrubber?.set??!1,def:s.nav?.scrubber?.def??void 0,cst:s.nav?.scrubber?.cst??void 0,key:s.nav?.scrubber?.key??"",t:s.nav?.scrubber?.t??5e3,css:s.nav?.scrubber?.css??"",html:s.nav?.scrubber?.html??"",on:s.nav?.scrubber?.on??!0,d:s.nav?.scrubber?.d??"horizontal",ps:s.nav?.arrows?.ps??"default",s:parseInt(s.nav?.scrubber?.s??1e3),dIn:s.nav?.scrubber?.dIn??["#a",1e3,"#a","#a","#a"],dOut:s.nav?.scrubber?.dOut??["#a",1200,"#a","#a","#a"],show:s.nav?.scrubber?.show??[!0,!0,!0,!0,!0],g:s.nav?.scrubber?.g??5,a:s.nav?.scrubber?.a??"slider",anim:s.nav?.scrubber?.anim??"fade",x:s.nav?.scrubber?.x??["#a",0,"#a","#a","#a"],y:s.nav?.scrubber?.y??["#a",0,"#a","#a","#a"],v:s.nav?.scrubber?.v??["#a","bottom","#a","#a","#a"],h:s.nav?.scrubber?.h??["#a","center","#a","#a","#a"],io:s.nav?.scrubber?.io??"inner",size:{w:s.nav?.scrubber?.size?.w??["#a",100,"#a","#a","#a"],h:s.nav?.scrubber?.size?.h??["#a",50,"#a","#a","#a"]},wr:{c:s.nav?.scrubber?.wr?.c??"transparent",p:s.nav?.scrubber?.wr?.p??["#a",5,"#a","#a","#a"],s:s.nav?.scrubber?.wr?.s??!1,mx:s.nav?.scrubber?.wr?.mx??["#a",0,"#a","#a","#a"],my:s.nav?.scrubber?.wr?.my??["#a",0,"#a","#a","#a"]},ts:parseFloat(s.nav?.scrubber?.ts??100),hs:parseFloat(s.nav?.scrubber?.hs??100),ho:s.nav?.scrubber?.ho??!1,tn:s.nav?.scrubber?.tn??!1,hp:s.nav?.scrubber?.hp??!1,pa:s.nav?.scrubber?.pa??"left",sc:parseFloat(s.nav?.scrubber?.sc??100),f:s.nav?.scrubber?.f??!0,asc:s.nav?.scrubber?.asc??!1,tr:parseInt(s.nav?.scrubber?.tr??0),sp:s.nav?.scrubber?.sp??!1,ha:s.nav?.scrubber?.ha??!0,tp:s.nav?.scrubber?.tp??"dots",ms:parseFloat(s.nav?.scrubber?.ms??60),to:parseFloat(s.nav?.scrubber?.to??0),sk:parseFloat(s.nav?.scrubber?.sk??0),cor:s.nav?.scrubber?.cor??!1},i.fonts.RevIcon=!0,SR7.R??={},SR7.R.nav=!0);for(let e of["thumbs","tabs"])(SR7.E.backend||s.nav?.[e]?.set)&&(i.nav??={},i.nav[e]={set:s.nav?.[e]?.set??!1,def:s.nav?.[e]?.def??void 0,cst:s.nav?.[e]?.cst??void 0,key:s.nav?.[e]?.key??"",t:s.nav?.[e]?.t??("tabs"==e?4e3:2e3),css:s.nav?.[e]?.css??"",html:s.nav?.[e]?.html??"",on:s.nav?.[e]?.on??!0,d:s.nav?.[e]?.d??"horizontal",ps:s.nav?.arrows?.ps??"default",s:parseInt(s.nav?.[e]?.s??1e3),dIn:s.nav?.[e]?.dIn??["#a",1e3,"#a","#a","#a"],dOut:s.nav?.[e]?.dOut??["#a",1200,"#a","#a","#a"],ddim:s.nav?.[e]?.ddim??{w:100,h:50},io:s.nav?.[e]?.io??"inner",show:s.nav?.[e]?.show??[!0,!0,!0,!0,!0],g:s.nav?.[e]?.g??5,a:s.nav?.[e]?.a??"slider",anim:s.nav?.[e]?.anim??"fade",x:s.nav?.[e]?.x??["#a",0,"#a","#a","#a"],y:s.nav?.[e]?.y??["#a",0,"#a","#a","#a"],v:s.nav?.[e]?.v??["#a","bottom","#a","#a","#a"],h:s.nav?.[e]?.h??["#a","center","#a","#a","#a"],m:s.nav?.[e]?.m??["#a",5,"#a","#a","#a"],size:{w:s.nav?.[e]?.size?.w??["#a",100,"#a","#a","#a"],h:s.nav?.[e]?.size?.h??["#a",50,"#a","#a","#a"],nw:s.nav?.[e]?.size?.nw??100,nh:s.nav?.[e]?.size?.nh??50,mw:s.nav?.[e]?.size?.mw??50,t:0},wr:{c:s.nav?.[e]?.wr?.c??"transparent",p:s.nav?.[e]?.wr?.p??["#a",5,"#a","#a","#a"],s:s.nav?.[e]?.wr?.s??!1,mx:s.nav?.[e]?.wr?.mx??["#a",0,"#a","#a","#a"],my:s.nav?.[e]?.wr?.my??["#a",0,"#a","#a","#a"]}},i.fonts.RevIcon=!0,SR7.R??={},SR7.R.nav=!0);(SR7.E.backend||s.sbt?.use)&&(i.sbt={use:s.sbt?.use??!1,a:s.sbt?.a??"travel",f:s.sbt?.f??!1,fStart:parseInt(s.sbt?.fStart??2e3),fEnd:parseInt(s.sbt?.fEnd??4e3),layers:s.sbt?.layers??!1,e:s.sbt?.e??"none",s:s.sbt?.s??500,pull:s.sbt?.pull??!1,nL:s.sbt?.nL??!1}),(SR7.E.backend||s.pbar?.set)&&(i.pbar={set:!0,a:s.pbar?.a??"slider",t:s.pbar?.t??"horizontal",s:s.pbar?.s??"5px",r:s.pbar?.r??10,v:s.pbar?.v??"bottom",h:s.pbar?.h??"left",x:s.pbar?.x??0,y:s.pbar?.y??0,c:s.pbar?.c??"rgba(255,255,255,0.5)",bg:s.pbar?.bg??"transparent",base:s.pbar?.base??"slide",g:s.pbar?.g??!1,gs:s.pbar?.gs??0,gc:s.pbar?.gc??"rgba(255,255,255,0.5)",rev:s.pbar?.rev??"reset",vis:s.pbar?.vis??[!0,!0,!0,!0,!0]}),(SR7.E.backend||"none"!==(s.bg?.overlay?.type??"none"))&&(i.bg.overlay={type:s.bg?.overlay?.type??"none",size:s.bg?.overlay?.size??1,cA:s.bg?.overlay?.cA??"transparent",cB:s.bg?.overlay?.cB??"#000000"});for(var a=0;a<5;a++)for(var r of["t","b","l","r"])for(var o of["p","m"])(SR7.E.backend||s.size?.[o]?.[r]?.[a])&&(i.size[o]??={})&&(i.size[o][r]??=Array(5))&&(i.size[o][r][a]??=parseInt(s.size?.[o]?.[r]?.[a]??0)),!SR7.E.backend&&s.size?.[o]?.[r]?.[a]&&(i.size[o]??={})&&(i.size[o][r]??=Array(5))&&(i.size[o][r][a]=parseInt(s?.size?.[o]?.[r]?.[a]??0));for(var l in s.source??={},SR7.D.streamTypes)void 0===s.source[SR7.D.streamTypes[l]]&&i.source.type!=SR7.D.streamTypes[l]||(i.source[SR7.D.streamTypes[l]]=_tpt.extend(SR7.D.modulStreamOBJ[SR7.D.streamTypes[l]],s.source[SR7.D.streamTypes[l]]));return i},SR7.D.hasActionLike=(e,t,s,i,a="a")=>{if(!SR7.M[e].slides[t].slide?.actions)return!1;const r=String(s),o=SR7.M[e].slides[t].slide?.actions.filter((e=>e.src.some((e=>String(e)===r))&&e[a]==i));return o.length>0&&o[0]},SR7.D.slideObj=function(e,t,s){var i=SR7.M[e].migrate?SR7.migrate.slideObj(t):t??{},a=i.global?{addOns:i.addOns??{},id:i.id,version:i.version??"7.0.0",title:i.title??"",parentId:i.parentId??null,language:i.language??"default",oflow:i.oflow??!1,global:!0,respVP:i.respVP??!0,pos:i.pos??"front",actions:i.actions??[],fullHeight:i.fullHeight??!1}:{addOns:i.addOns??{},id:i.id,version:i.version??"7.0.0",actions:i.actions??[],title:i.title??"",parentId:i.parentId??null,language:i.language??"default",order:i.order??s,thumb:{src:i.thumb?.src??"",srcId:i.thumb?.srcId??"",admin:i.thumb?.admin??"",adminId:i.thumb?.adminId??"",dimension:i.thumb?.dimension??"orig",default:i.thumb?.default??void 0},acc:{label:i.acc?.label??"unset",hidden:i.acc?.hidden??"true",live:i.acc?.live??"auto",role:i.acc?.role??"presentation",roledep:i.acc?.roledep??"slide"},description:i.description??"",attr:{class:i.attr?.class??"",data:i.attr?.data??"",id:i.attr?.id??"",a:i.attr?.a??"",aO:i.attr?.aO??"",t:i.attr?.t??"",tO:i.attr?.tO??"",deepLink:i.attr?.deepLink??"",attr:i.attr?.attr??""},publish:{from:i.publish?.from??"",to:i.publish?.to??"",state:""==(i.publish?.state??"")?"published":i.publish?.state,sch:i.publish?.sch??!0},slideshow:{stop:i.slideshow?.stop??!1,len:i.slideshow?.len??"default",hal:i.slideshow?.hal??0,hom:i.slideshow?.hom??!1,hfn:i.slideshow?.hfn??!1},loop:{u:i.loop?.u??!1,r:i.loop?.r??-1,s:i.loop?.s??0,e:i.loop?.e??99999}};if(i.nav){a.nav??={};for(let e of["tabs","thumbs","arrows","bullets"])(i.nav?.[e]||i.nav?.[e])&&(a.nav[e]=i.nav?.[e])}let r=SR7.E.backend;if(r||void 0!==i.params)for(var o in i.params)r=r||""!==i.params[o].v;return r&&(a.params=SR7.D.slideInfoParams(i.params)),{slide:a}},SR7.D.slideInfoParams=function(e){for(var t={},s=0;s<10;s++)""!==(e?.[s]?.v??"")&&(t[s]=void 0!==e&&void 0!==e[s]?{v:e[s].v??"",l:e[s].l??10}:{v:"",l:10});return t},SR7.D.slideTimelineObject=function(e){return{name:e?.name??"",repeat:e?.repeat??0,length:e?.length??0,triggeredBy:e?.triggeredBy??"",triggeredParam:e?.triggeredParam??""}};SR7.D.layerObjects=function(e){let t,{dLEN:s,id:i,slide:a,sid:r,msource:o,snow:l}=e,n={m:0,top:-1,middle:-1,bottom:-1},d=0,c=SR7.M[i].migrate?SR7.migrate.layerListUpdate({layers:a.layers,isStatic:a.global,snow:l,params:a.params,newIDs:n,msource:o,sid:r}):{},p={top:!1,middle:!1,bottom:!1};for(t in a.layers)if(_tpt.hop(a.layers,t)){if(c[n[t]||t]=SR7.D.layerObject({dLEN:s,id:i,obj:a.layers[t],layertype:null,newIDs:n,sid:r,msource:o,global:a.global}),!SR7.E.backend)continue;if(d=Math.max(d,c[n[t]||t].id),!a.global&&"zone"==c[t].subtype){let e=c[t].pos.v[0];e="mid"==e?"middle":e,c[t].alias=e.toUpperCase()+" ROWS",p[e]=!0}}if(SR7.E.backend&&!a.global)for(let e in p)_tpt.hop(p,e)&&!p[e]&&(c[++d]=SR7.D.layerObject({dLEN:s,id:i,obj:{alias:e.toUpperCase()+" ROWS",type:"container",subtype:"zone",rTo:"slide",vA:e,id:d,zIndex:"top"==e?40:"middle"==e?4:3},layertype:null,newIDs:n,sid:r,msource:o,global:a.global}));return SR7.M[i].migrate&&(c=SR7.migrate.fixPos(c)),c},SR7.D.layerObject=function(e){let{dLEN:t,id:s,obj:i,layertype:a="",newIDs:r,sid:o,msource:l,global:n,ISEMPTY:d,usedAddons:c}=e;const p=d&&c;var h=s&&SR7.M[s].migrate?SR7.migrate.LayerObj({dLEN:t,o:i,newIDs:r,sid:o,msource:l,global:n}):i??{};let u;a=h.type??a;let m=h.subtype??"";"image"==a&&"100% 100%"==h.content?.size&&(h.content.size="cover");var g={addOns:h.addOns??{},rTo:h.rTo??"",listen:h.listen,fluid:{tx:h.fluid?.tx??!1,tr:h.fluid?.tr??!1,sp:h.fluid?.sp??!1},id:h.id??"",alias:h.alias??"",type:"image"==a||"video"==a?"shape":a,subtype:"image"==a?"image":"video"==a||"video"==m?"video":h.subtype??"",content:"image"==a?{}:SR7.D.contentOBJ(a,h.content),mF:h.mF??"none",blend:h.blend??"normal",tag:h.tag??"sr7-layer",href:"a"==h.tag?h.href??void 0:void 0,target:"a"==h.tag?Array.isArray(h.target)?h.target[0]:h.target??void 0:void 0,rel:"a"==h.tag?h.rel??void 0:void 0,libSrc:h.libSrc??"",runtime:h.runtime??{},size:{w:h.size?.w??["#a","auto","#a","#a","#a"],h:h.size?.h??["#a","auto","#a","#a","#a"],maxW:h.size?.maxW??["none","none","none","none","none"],maxH:h.size?.maxH??["none","none","none","none","none"],minW:h.size?.minW??["#a","auto","#a","#a","#a"],minH:h.size?.minH??["#a","auto","#a","#a","#a"],cMode:h.size?.cMode??"custom",sProp:h.size?.sProp??!1},pos:{x:h.pos?.x??["#a",0,"#a","#a","#a"],y:h.pos?.y??["#a",0,"#a","#a","#a"],h:h.pos?.h??["left","left","left","left","left"],v:h.pos?.v??["top","top","top","top","top"],pos:"row"==h.subtype||"column"==h.subtype?"relative":h.pos?.pos??void 0,float:h.pos?.float??"none",clear:h.pos?.clear??"none"},pid:Number(h.pid??-1),pE:h.pE??"auto",uS:h.uS??"default",zIndex:Number(h.zIndex??5),order:h.order??5,style:h.style??"",display:h.display??["#a","block","#a","#a","#a"],vA:h.vA??["top","top","top","top","top"],oflow:h.oflow??"visible",cursor:h.cursor??"cursor",bg:{color:h.bg?.color??"transparent",bClip:h.bg?.bClip??"none",tFCol:h.bg?.tFCol??"none",image:""!==(h.bg?.image?.src??"")||h.bg?.image?.fromStream?SR7.D.contentOBJ("image",h.bg?.image??{}):"image"==a?SR7.D.contentOBJ("image",h.content):void 0,video:""!==(h.bg?.video?.src??"")||h.bg?.video?.fromStream?SR7.D.contentOBJ("video",h.bg?.video??{}):"video"==a?SR7.D.contentOBJ("video",h.content):void 0},attr:{},acc:{hidden:h.acc?.hidden??"true",label:h.acc?.label??"",labeledby:h.acc?.labeledby??"",role:h.acc?.role??("image"==a?"img":"video"==a?"video":"button"==m||"button"==a?"button":"presentation"),haspopup:h.acc?.haspopup??"false"},tl:{}};if("slidebg"!==g.subtype&&"shape"==g.type&&(""==(g.bg?.video?.src??"")&&""!==(g.bg?.image?.src??"")&&(!g.subtype||"image"==g.subtype||"video"==g.subtype||g.subtype?.length<6)?g.subtype="image":"shape"==g.type&&""!==(g.bg?.video?.src??"")&&(!g.subtype||"image"==g.subtype||"video"==g.subtype||g.subtype?.length<6)&&(g.subtype="video"),"cover"!=g.size.cMode&&"cover-proportional"!=g.size.cMode||(g.size.cMode="custom",g.size.w=["#a","100%","#a","#a","#a"],g.size.h=["#a","100%","#a","#a","#a"])),"column"==g.subtype&&(g.size.col=h.size.col??"1/3"),SR7.E.backend&&(g.rTo="slidebg"==h.subtype?"slide":""==g.rTo?"row"==h.subtype?"slide":"cfc":g.rTo),(SR7.E.backend||void 0!==h.vis)&&(g.vis=h.vis),(SR7.E.backend||void 0!==h.viSH)&&(g.viSH=h.viSH),(SR7.E.backend||void 0!==h.viOC)&&(g.viOC=h.viOC),SR7.E.backend&&"fullinset"!==g.size.cMode){let e;for(e in g.pos.x)g.pos.x[e]="auto"==g.pos.x[e]?0:g.pos.x[e];for(e in g.pos.y)g.pos.y[e]="auto"==g.pos.y[e]?0:g.pos.y[e]}for(var f of(void 0!==h.break&&(g.break=h.break),void 0!==h.sStart&&(g.sStart=h.sStart),void 0!==h.sEnd&&(g.sEnd=h.sEnd),void 0!==h.sZ&&(g.sZ=h.sZ),["p","m"]))for(u of["t","b","l","r"]){let e=!1;for(var v=0;v<5;v++)(SR7.E.backend||h[f]?.[u])&&(g[f]??={})&&(g[f][u]??=Array(5))&&(g[f][u][v]=0==h[f]?.[u]?.[v]?0:h[f]?.[u]?.[v]||"#a"),"#a"!==g?.[f]?.[u]?.[v]&&(e=!0);e||!SR7.E.backend&&!h[f]?.[u]||(g[f][u][1]="#a"==g[f][u][1]?0:void 0!==g[f][u][1]?g[f][u][1]:0)}h.tr?.rX&&(g.tr=g.tr||{})&&(g.tr.rX=h.tr?.rX||0),h.tr?.rY&&(g.tr=g.tr||{})&&(g.tr.rY=h.tr?.rY||0),h.tr?.rZ&&(g.tr=g.tr||{})&&(g.tr.rZ=h.tr?.rZ||0),h.tr?.o&&(g.tr=g.tr||{})&&(g.tr.o=h.tr?.o||0),g.tr&&(g.tr.fix=h.tr?.fix||"d"),(SR7.E.backend||h.mod?.s?.u||h.mod?.s?.ut||h.mod?.s?.uf)&&(g.mod??={mask:h.mod?.mask??!1},g.mod.s={u:h.mod?.s?.u??!1,x:h.mod?.s?.x??0,y:h.mod?.s?.y??20,s:h.mod?.s?.s??0,e:h.mod?.s?.e??"power3.out",ut:h.mod?.s?.ut??!1,so:h.mod?.s?.so??0,rX:h.mod?.s?.rX??0,rY:h.mod?.s?.rY??0,rZ:h.mod?.s?.rZ??0,sc:h.mod?.s?.sc??1,uf:h.mod?.s?.uf??!1,b:h.mod?.s?.b??0,g:h.mod?.s?.g??1,f:h.mod?.s?.f??1,d:h.mod?.s?.d??"b",t:h.mod?.s?.t??0}),(SR7.E.backend||h.mod?.m?.u||h.mod?.m?.aBG)&&(g.mod??={mask:h.mod?.mask??!1},g.mod.m={u:h.mod?.m?.u??!1,aBG:h.mod?.m?.aBG??!1,x:h.mod?.m?.x??20,y:h.mod?.m?.y??20,s:h.mod?.m?.s??0,e:h.mod?.m?.e??"power3.out",o:h.mod?.m?.o??"c"}),void 0!==h.px&&(g.px={...h.px}),(SR7.E.backend||"none"!==(h.overlay?.type??"none"))&&(g.overlay={type:h.overlay?.type??"none",size:h.overlay?.size??1,cA:h.overlay?.cA??"transparent",cB:h.overlay?.cB??"#000000"}),SR7.E.backend&&(g.size.oW=h.size?.oW||0),SR7.E.backend&&(g.size.oH=h.size?.oH||0),SR7.E.backend&&(g.size.aRatio=h.size?.aRatio||["#a","auto","#a","#a","#a"]),h.attr??={},(SR7.E.backend||""!==(h.attr?.a||""))&&(g.attr.a=h.attr?.a||""),(SR7.E.backend||""!==(h.attr?.aO||""))&&(g.attr.aO=h.attr?.aO||"ml"),(SR7.E.backend||""!==(h.attr?.id||""))&&(g.attr.id=h.attr?.id||""),(SR7.E.backend||""!==(h.attr?.class||""))&&(g.attr.class=h.attr?.class||""),(SR7.E.backend||""!==(h.attr?.rel||""))&&(g.attr.rel=h.attr?.rel||""),(SR7.E.backend||""!==(h.attr?.tabIndex||""))&&(g.attr.tabIndex=h.attr?.tabIndex||0),(SR7.E.backend||""!==(h.attr?.t||""))&&(g.attr.t=h.attr?.t||""),(SR7.E.backend||""!==(h.attr?.tO||""))&&(g.attr.tO=h.attr?.tO||"ml"),(SR7.E.backend||""!==(h.attr?.wrapClass||""))&&(g.attr.wrapClass=h.attr?.wrapClass||""),(SR7.E.backend||""!==(h.attr?.wrapId||""))&&(g.attr.wrapId=h.attr?.wrapId||""),(SR7.E.backend||""!==(h.attr?.iClass||""))&&(g.attr.iClass=h.attr?.iClass||"");let y=h.hov??={};if(!1!==(h.hov.u??!1)&&(g.hov={u:y.u,m:y.m??!1,deco:y.deco??"none",zIndex:y.zIndex??"auto",color:{c:y.color.c??"#ffffff",bg:y.color.bg??"transparent",gAnim:y.color.gAnim??"fading"},border:{c:y.border.c??"transparent",s:y.border.s??"none",w:{t:y.border.w?.t??0,r:y.border.w?.r??0,b:y.border.w?.b??0,l:y.border.w?.l??0}},radius:{t:y.radius?.t??0,r:y.radius?.r??0,b:y.radius?.b??0,l:y.radius?.l??0},frame:{o:y.frame.o??1,oX:y.frame.oX??"50%",oY:y.frame.oY??"50%",oZ:y.frame.oZ??"50%",x:y.frame.x??0,y:y.frame.y??0,z:y.frame.z??0,rZ:y.frame.rZ??0,rX:y.frame.rX??0,rY:y.frame.rY??0,sX:y.frame.sX??1,sY:y.frame.sY??1,skX:y.frame.skX??1,skY:y.frame.skY??1,d:y.frame.d??300,e:y.frame.e??"power3.inOut"},filter:{g:y.filter?.g??0,r:y.filter?.r??100,b:y.filter?.b??0},svg:{c:y.svg?.c??"#ffffff",stroke:{c:y.svg?.stroke?.c??"transparent",d:y.svg?.stroke?.d??0,o:y.svg?.stroke?.o??0,w:y.svg?.stroke?.w??0}}}),"text"!=a&&"container"!=a||(g.tA=h.tA??["left","left","left","left","left"]),"text"!=a&&"row"!=g.subType&&"column"!=g.subType||(g.ws=h.ws??("container"==g.type?["normal","normal","normal","normal","normal"]:["full","full","full","full","full"])),""===(h.codes?.css??"")&&""===(h.codes?.hovercss??"")||(g.codes={css:h.codes?.css??"",hovercss:h.codes?.hovercss??""}),(SR7.E.backend||h.bShdw?.use)&&(g.bShdw={use:h.bShdw?.use??!1,on:"content",h:h.bShdw?.h??[0,0,0,0,0],v:h.bShdw?.v??[0,0,0,0,0],blur:h.bShdw?.blur??[0,0,0,0,0],spread:h.bShdw?.spread??[0,0,0,0,0],color:h.bShdw?.color??"rgba(0,0,0,0.25)"}),SR7.E.backend||void 0!==h.border&&void 0!==h.border.s){var S=SR7.E.backend;if(h.border??={},h.border.s??=["none","none","none","none","none"],!S)for(var b=0;b<5;b++)S=S||"none"!==h.border.s[b];for(u of(g.border={s:h.border.s,c:h.border?.c??"transparent"},SR7.D.DS))(SR7.E.backend||h.border?.w?.[u])&&(g.border.w=g.border.w||{})&&(g.border.w[u]=h.border?.w?.[u]||0)}if(SR7.E.backend||void 0!==h.radius)for(u of SR7.D.DS)(SR7.E.backend||h.radius?.[u])&&(g.radius??={})&&(g.radius[u]=h.radius?.[u]||0);for(var R in"text"==a&&((SR7.E.backend||h.tShdw?.use)&&(g.tShdw={use:h.tShdw?.use??!1,h:h.tShdw?.h??[0,0,0,0,0],v:h.tShdw?.v??[0,0,0,0,0],blur:h.tShdw?.blur??[0,0,0,0,0],color:h.tShdw?.color??"rgba(0,0,0,0.25)"}),(SR7.E.backend||h.tStroke?.use)&&(g.tStroke={use:h.tStroke?.use??!1,w:h.tStroke?.w??[1,1,1,1,1],c:h.tStroke?.c??"rgba(0,0,0,0.25)"}),g.color=h.color??["#a","#ffffff","#a","#a","#a"],g.font={family:h.font?.family??"Roboto",style:h.font?.style??!1,size:h.font?.size??["#a","20","#a","#a","#a"],weight:h.font?.weight??["#a","400","#a","#a","#a"],ls:h.font?.ls??["#a","0","#a","#a","#a"]},(g.font?.family??"").includes(" ")&&(g.font.family="'"+g.font.family+"'"),(SR7.E.backend||1==(h.tog?.u??!1))&&(g.tog={t:h?.tog?.t??"",u:h?.tog?.u??!1,h:h?.tog?.h??!1,i:h?.tog?.i??!1}),SR7.M[s].migrate&&SR7.D.collectModulFont(g.font,s,g.content.text)),"text"!=a&&"container"!=a||(g.lh=h.lh??["#a","25","#a","#a","#a"]),(SR7.E.backend||h.spike?.use)&&(g.spike={use:h.spike?.use??!1,l:h.spike?.l??"none",r:h.spike?.r??"none",lw:h.spike?.lw??10,rw:h.spike?.rw??10}),h.tl)if(_tpt.hop(h.tl,R))for(var w in g.tl[R]??={},h.tl[R])_tpt.hop(h.tl[R],w)&&(g.tl[R]??={},"bg"==w&&"in"==R?g.tl.in.bg={ex:!0,all:[{},SR7.D.getBGAnim(h.tl.in.bg?.all?.[1]?h.tl.in.bg.all[1]:h.tl.in.bg)]}:g.tl[R][w]=SR7.D.layerTLObject(h.tl[R][w],w));if("text"==g.type&&(SR7.M[s].icons??={},(SR7.M[s].settings?.fonts?.FontAwesome||g.content.text.includes("<i")&&(g.content.text.includes('class="fa-')||g.content.text.includes("class='fa-")))&&(SR7.M[s].settings.fonts.FontAwesome=!0),(SR7.M[s].settings?.fonts?.PeIcon||g.content.text.includes("<i")&&(g.content.text.includes('class="pe-7')||g.content.text.includes("class='pe-7")))&&(SR7.M[s].settings.fonts.PeIcon=!0),(SR7.M[s].settings?.fonts?.Materialicons||g.content.text.includes("material-icons"))&&(SR7.M[s].settings.fonts.Materialicons=!0)),void 0!==SR7.M[s]&&void 0!==SR7.M[s].imgList)for(let e in SR7.M[s].imgList)_tpt.hop(SR7.M[s].imgList,e)&&(_tpt.compareURL(SR7.M[s].imgList[e].old,g.content?.src)&&(g.content.src=SR7.M[s].imgList[e].new),_tpt.compareURL(SR7.M[s].imgList[e].old,g?.content?.image?.src)&&(g.content.image.src=SR7.M[s].imgList[e].new),_tpt.compareURL(SR7.M[s].imgList[e].old,g.bg?.src)&&(g.bg.src=SR7.M[s].imgList[e].new),_tpt.compareURL(SR7.M[s].imgList[e].old,g.bg?.image?.src)&&(g.bg.image.src=SR7.M[s].imgList[e].new));if(("video"==g.subtype||g.bg.video||"audio"==g.type)&&(SR7.R??={},SR7.R.media=!0),"text"!=g.type&&"button"!=g.type||((g.attr?.iClass??"").includes("sr7-btn")||(g.attr?.iClass??"").includes("sr7-scroll-btn")||(g.attr?.iClass??"").includes("sr7-brg")||(g.text?.content??"").includes("sr7-btn")||(g.text?.content??"").includes("sr7-scroll-btn")||(g.text?.content??"").includes("sr7-brg"))&&(SR7.R??={},SR7.R.cssbtns=!0),p)for(let e in SR7.A)_tpt.hop(SR7.A,e)&&SR7.A[e]?.getLayerBasics&&c.includes(e)&&(g.addOns??={},g.addOns[e]=SR7.A[e].getLayerBasics({},"compare"));return g},SR7.D.registerModuleFonts=function(e){for(var t in SR7.M[e].settings.fonts)if(_tpt.hop(SR7.M[e].settings.fonts,t)){var s=SR7.M[e].settings.fonts[t];if(_tpt.R.fonts?.customs?.[t])_tpt.registerFont({family:_tpt.R.fonts.customs[t].family??s.name??_tpt.fontFamily(t,!0),url:_tpt.R.fonts.customs[t]});else if("FontAwesome"==t)_tpt.registerFont({family:"FontAwesome",url:SR7.E.plugin_url+"public/css/fonts/font-awesome/css/font-awesome.css"});else if("Materialicons"==t)_tpt.registerFont({family:"Materialicons",url:SR7.E.plugin_url+"public/css/fonts/material/material-icons.css"});else if("PeIcon"==t)_tpt.registerFont({family:"Pe-icon-7-stroke",url:SR7.E.plugin_url+"public/css/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css"});else if("RevIcon"==t)_tpt.registerFont({family:"revicons",url:SR7.E.plugin_url+"public/css/fonts/revicons/css/revicons.css"});else for(var i of["italic","normal"])if(null!=s[i])for(var a in s[i])_tpt.hop(s[i],a)&&_tpt.registerFont({family:s.name??_tpt.fontFamily(t,!0),url:s.url,italic:"italic"==i,weight:a})}},SR7.D.checkSubsets=function(e=""){const t={};for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);for(const e in SR7.D.subsets)i>=SR7.D.subsets[e].start&&i<=SR7.D.subsets[e].end&&(t[e]=!0)}return t},SR7.D.collectModulFont=function(e,t,s){let i="undefined"!=typeof RVS&&(((e,t)=>{if(window.RVS?.LIB?.FONTS)for(var s in RVS.LIB.FONTS)if(RVS.LIB.FONTS[s].label==e&&(t||"googlefont"==RVS.LIB.FONTS[s].type))return RVS.LIB.FONTS[s]})(e.family,!0)??void 0);if(window?.RVS?.LIB?.FONTS&&void 0===_tpt?.R?.fonts?.customs&&_tpt.fontFamily&&(_tpt.R??={},_tpt.R.fonts??={},_tpt.R.fonts.customs=RVS.LIB.FONTS.filter((e=>"custom"===e.type)),_tpt.R.fonts.customs.length>0))for(let e in _tpt.R.fonts.customs)_tpt.R.fonts.customs[e].family=_tpt.fontFamily(_tpt.R.fonts.customs[e].label).replaceAll("'","");if(null==SR7.M[t])return;SR7.M[t].settings.fonts??={};let a=_tpt.fontFamily(e.family);a=a.replace("''","'"),SR7.M[t].settings.fonts[a]??={name:e.family},i?.url&&(SR7.M[t].settings.fonts[a].url=i?.url),SR7.M[t].settings.fonts[a][e.style?"italic":"normal"]??={},SR7.M[t].settings.fonts[a].subset=SR7.D.checkSubsets(s);let r=a.replaceAll("'","");(_tpt.R.fonts?.customs?.length??0)>0&&_tpt.R.fonts.customs.filter((e=>e.family===r)).length>0&&(SR7.M[t].settings.fonts[a].custom=!0);for(var o=0;o<5;o++)"auto"!==e.weight[o]&&(SR7.M[t].settings.fonts[a][e.style?"italic":"normal"][e.weight[o]]=!0)},SR7.D.collectModulFonts=function(e){for(var t in SR7.M[e].settings.fonts={},SR7.M[e].slides)if(_tpt.hop(SR7.M[e].slides,t))for(var s in SR7.M[e].slides[t].layers)_tpt.hop(SR7.M[e].slides[t].layers,s)&&"text"===SR7.M[e].slides[t].layers[s].type&&SR7.D.collectModulFont(SR7.M[e].slides[t].layers[s].font,e,SR7.M[e].slides[t].layers[s].content.text)},SR7.D.layerTLObject=function(e={},t){var s="filter"==t||"mask"==t?{}:"clip"==t?{orig:e?.orig??"l",type:e?.type??"r"}:{pers:e.pers??600,orig:{x:e?.orig?.x??"50%",y:e?.orig?.y??"50%",z:e?.orig?.z??"0"}};for(var i in e)if(_tpt.hop(e,i)&&"orig"!=i&&"type"!=i&&"pers"!=i){s[i]=SR7.backend?Array(e[i].length):[];for(var a=0;a<e[i].length;a++)s[i].push(SR7.D.getKeyFrame(e[i][a],t,i))}return s},SR7.D.getKeyFrame=function(e={},t="content",s="all"){var i={t:e?.t??300,d:e?.d??300,f:e?.f??300,e:e?.e??"power3.inOut"};if("content"==t&&(i.pE=e.pE??"d"),void 0!==e.addOns)for(var a in i.addOns={},e.addOns)_tpt.hop(e.addOns,a)&&(i.addOns[a]=e.addOns[a]);return null!=e.x&&(i.x=e.x??0),null!=e.y&&(i.y=e.y??0),void 0!==e.anchors&&(i.anchors=e.anchors),void 0!==e.curv&&(i.curv=e.curv),null!=e[s]&&(i[s]=e[s]),void 0!==e.rep&&(i.rep={s:e.rep.s,r:e.rep.r??-1,sh:e.rep.sh??!1,y:e.rep.y??!1,c:e.rep.c??!1}),"mask"!==t&&"filter"!==t&&"clip"!==t&&(null!=e.z&&(i.z=e.z),null!=e.sX&&(i.sX=e.sX),null!=e.sY&&(i.sY=e.sY),null!=e.skX&&(i.skX=e.skX),null!=e.skY&&(i.skY=e.skY),null!=e.o&&(i.o=e.o),null!=e.rX&&(i.rX=e.rX??0),null!=e.rY&&(i.rY=e.rY),null!=e.rZ&&(i.rZ=e.rZ),null!=e.fb&&(i.fb=e.fb),null!=e.fgs&&(i.fgs=e.fgs),null!=e.fbr&&(i.fbr=e.fbr),void 0!==e.bgcol&&(i.bgcol=e.bgcol),void 0!==e.col&&(i.col=e.col)),"content"==t&&void 0!==e.fx&&(i.fx=e.fx,i.fxc=e.fxc??"#ffffff",i.fxe=e.fxe??i.e,i.fxs=e.fxs??i.t),"mask"==t&&void 0!==e.oflow&&(i.oflow=e.oflow),("filter"==t||"loop"==t&&"filter"==s)&&(null!=e.fu&&(i.fu=e.fu),i.fu&&(null!=e.b&&(i.b=e.b),null!=e.g&&(i.g=e.g),null!=e.r&&(i.r=e.r)),null!=e.bu&&(i.bu=e.bu),void 0!==i.bu&&(null!=e.bb&&(i.bb=e.bb),null!=e.bg&&(i.bg=e.bg),null!=e.br&&(i.br=e.br),null!=e.bs&&(i.bs=e.bs),null!=e.bi&&(i.bi=e.bi)),void 0!==e.repeat&&(i.repeat=e.repeat)),SR7.D.splits.indexOf(t)>=0&&(void 0!==e.fu&&(i.fu=e.fu),e.fu&&(null!=e.b&&(i.b=e.b),null!=e.g&&(i.g=e.g),null!=e.r&&(i.r=e.r)),i.dir=e.dir??"start",i.delay=e.delay??5),"clip"==t&&(void 0!==e.c&&(i.c=e.c),void 0!==e.cb&&(i.cb=e.cb)),"filter"!==t&&"clip"!==t&&"loop"!==t&&(void 0!==e.xRe&&(i.xRe=parseInt(e.xRe)),void 0!==e.yRe&&(i.yRe=parseInt(e.yRe)),i.off=e.off??0),"loop"==t&&e.aR&&(i.aR=e.aR),i},SR7.D.getBGAnim=function(t={}){null==t&&(t={});var s={};if("7.0"==t.v?((SR7.E.backend||void 0!==t.d)&&(s.d=parseInt(t.d??1e3)),(SR7.E.backend||void 0!==t.sd)&&(s.sd=t.sd??75),(SR7.E.backend||void 0!==t.tr)&&(s.tr=t.tr??"basic"),s.e=t.e??t?.in?.e??"power2.inOut",s.dir=t.dir??"default"):(s.d=t?.ms??t?.speed??1e3,s.sd=parseInt(s.d)/parseInt(t?.d??15)*10,(SR7.E.backend||void 0!==t.e)&&(s.tr=t.e??"basic"),s.e=t?.in?.e??"power2.inOut",s.dir=t.f??"default"),s.t=0,s.rnd=t.preset||t.main?(t.preset??"").toLowerCase().startsWith("rnd")||(t.main??"").toLowerCase().includes("random"):"true"==String(t.random)||"true"==String(t.rnd),s.rnd||"true"==s.rnd)return s.rnd=!0,s.rndmain=t.rndmain??t.rndmain??"",s;s.temp={t:t?.temp?.t??t.title??"",p:t?.temp?.p??t.preset??"",m:t?.temp?.m??t.main??"",g:t?.temp?.g??t.group??""},s.addOns=t?.addOns??t.addOns??{},(SR7.E.backend||void 0!==t.o)&&(s.o=t.o??"inout"),(SR7.E.backend||void 0!==t.f)&&(s.f=t.f??"start"),(SR7.E.backend||void 0!==t.s)&&(s.s=t.s??1e3),(SR7.E.backend||void 0!==t.p)&&(s.p=t.p??"none"),(SR7.E.backend||void 0!==t.eng)&&(s.eng=t.eng??"animateCore"),(SR7.E.backend||void 0!==t.adpr)&&(s.adpr=t.adpr??!0),(SR7.E.backend||void 0!==t.d3)&&(t.d3??={},s.d3??={},(SR7.E.backend||void 0!==t.d3.f)&&(s.d3.f=t.d3.f??"none"),(SR7.E.backend||void 0!==t.d3.d)&&(s.d3.d=t.d3.d??"horizontal"),(SR7.E.backend||void 0!==t.d3.z)&&(s.d3.z=t.d3.z??300),(SR7.E.backend||void 0!==t.d3.t)&&(s.d3.t=t.d3.t??0),(SR7.E.backend||void 0!==t.d3.c)&&(s.d3.c=t.d3.c??"#ccc"),(SR7.E.backend||void 0!==t.d3.e)&&(s.d3.e=t.d3.e??"power2.inOut"),(SR7.E.backend||void 0!==t.d3.fdi)&&(s.d3.fdi=t.d3.fdi??1.5),(SR7.E.backend||void 0!==t.d3.fdo)&&(s.d3.fdo=t.d3.fdo??2),(SR7.E.backend||void 0!==t.d3.fz)&&(s.d3.fz=t.d3.fz??0),(SR7.E.backend||void 0!==t.d3.su)&&(s.d3.su=t.d3.su??!1),(SR7.E.backend||void 0!==t.d3.smi)&&(s.d3.smi=t.d3.smi??0),(SR7.E.backend||void 0!==t.d3.sma)&&(s.d3.sma=t.d3.sma??.5),(SR7.E.backend||void 0!==t.d3.sc)&&(s.d3.sc=t.d3.sc??"#000"),(SR7.E.backend||void 0!==t.d3.sl)&&(s.d3.sl=t.d3.sl??1)),(SR7.E.backend||void 0!==t.filter)&&(t.filter??={},s.filter??={},(SR7.E.backend||void 0!==t.filter.u)&&(s.filter.u=t.filter.u??!1),(SR7.E.backend||void 0!==t.filter.e)&&(s.filter.e=t.filter.e??"default"),(SR7.E.backend||void 0!==t.filter.b)&&(s.filter.b=t.filter.b??0),(SR7.E.backend||void 0!==t.filter.g)&&(s.filter.g=t.filter.g??0),(SR7.E.backend||void 0!==t.filter.h)&&(s.filter.h=t.filter.h??100),(SR7.E.backend||void 0!==t.filter.s)&&(s.filter.s=t.filter.s??0),(SR7.E.backend||void 0!==t.filter.c)&&(s.filter.c=t.filter.c??100),(SR7.E.backend||void 0!==t.filter.i)&&(s.filter.i=t.filter.i??0));for(let i of["in","out"])t[i]??={},"in"!=i&&"out"!=i||!SR7.E.backend&&void 0===t[i]||(s[i]??={},"in"==i?((SR7.E.backend||void 0!==t.in.mo)&&(s.in.mo=t.in.mo??80),(SR7.E.backend||void 0!==t.in.mou)&&(s.in.mou=t.in.mou??!1),(SR7.E.backend||void 0!==t.in.moo)&&(s.in.moo=t.in.moo??!1)):(SR7.E.backend||void 0!==t.out.a)&&(s.out.a=_tpt.tf(t[i].a??!0)),"out"==i&&1==t.out.a?((SR7.E.backend||void 0!==t.in.o)&&(s.out.o=t.in.o??1),(SR7.E.backend||void 0!==t.in.x)&&(s.out.x=e(t.in.x??0)),(SR7.E.backend||void 0!==t.in.y)&&(s.out.y=e(t.in.y??0)),(SR7.E.backend||void 0!==t.in.r)&&(s.out.r=t.in.r??0),(SR7.E.backend||void 0!==t.in.sx)&&(s.out.sx=t.in.sx??1),(SR7.E.backend||void 0!==t.in.sy)&&(s.out.sy=t.in.sy??1),(SR7.E.backend||void 0!==t.in.m)&&(s.out.m=t.in.m??!1),SR7.E.backend&&(s.out.e=e(t.in.e??"power2.inOut")),(SR7.E.backend||void 0!==t.in.row)&&(s.out.row=t.in.row??1),(SR7.E.backend||void 0!==t.in.col)&&(s.out.col=t.in.col??1)):((SR7.E.backend||void 0!==t[i].o)&&(s[i].o=t[i].o??1),(SR7.E.backend||void 0!==t[i].x)&&(s[i].x=t[i].x??0),(SR7.E.backend||void 0!==t[i].y)&&(s[i].y=t[i].y??0),(SR7.E.backend||void 0!==t[i].r)&&(s[i].r=t[i].r??0),(SR7.E.backend||void 0!==t[i].sx)&&(s[i].sx=t[i].sx??1),(SR7.E.backend||void 0!==t[i].sy)&&(s[i].sy=t[i].sy??1),(SR7.E.backend||void 0!==t[i].m)&&(s[i].m=t[i].m??!1),"in"!==i&&(SR7.E.backend||void 0!==t[i].e)&&(s[i].e=t[i].e??"power2.inOut"),(SR7.E.backend||void 0!==t[i].row)&&(s[i].row=t[i].row??1),(SR7.E.backend||void 0!==t[i].col)&&(s[i].col=t[i].col??1)));return(SR7.E.backend||void 0!==t.addOns)&&(s.addOns=t.addOns??SR7.D.getBGAnim_Addons()),s.v=t.v??"7.0",s.a=t.a??"BG Animation",s},SR7.D.getBGAnim_Addons=function(){return{}};const e=function(e){if(String(e).endsWith(".out"))return e.replace(/\.out$/,".in");if(String(e).endsWith(".in"))return e.replace(/\.in$/,".out");if(String(e).endsWith(".Out"))return e.replace(/\.Out$/,".In");if(String(e).endsWith(".In"))return e.replace(/\.In$/,".Out");if(String(e).includes("{"))return e;if(String(e).includes("[")){e=(e=e.replaceAll("[","").replaceAll("]","")).split(",");let t="[";return e.forEach((function(e){const s=(""+e).includes("%"),i=(""+e).includes("px");e.includes("(")?(e=e.replaceAll("(","").replaceAll(")",""),t+="("+-1*parseFloat(e)+(s?"%":i?"px":"")+")"):t+=-1*parseInt(e)+(s?"%":i?"px":""),t+=","})),t=t.slice(0,-1)+"]",t}let t=String(e).includes("(");if(t&&(e=e.replaceAll("(","").replaceAll(")","")),!isNaN(parseFloat(e))){const s=(""+e).includes("%"),i=(""+e).includes("px");e=parseFloat(e);let a=-parseFloat(e)+(s?"%":"")+(i?"px":"");return t?"("+a+")":a}return e};_tpt.R??={},_tpt.R.defaults=_tpt.extend?_tpt.extend(_tpt.R.defaults,{status:2,version:"1.0"}):{status:2,version:"1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F=SR7.F||{},void 0!==SR7.F.drawBG)return;SR7.F.drawBG=function(e,t,s,i="canvas",a){if(null==e||null==e)return{};let{c:r,skey:o}=SR7.F.getLayer?SR7.F.getLayer(e.id):{c:void 0,skey:void 0},l=null==t.image;if(s&&(e.style.background="",e.style.backgroundImage="",e.style.backgroundColor=""),(l||""==(t.image.src??""))&&(t.color??="#000000",l=!0),t.color)if("canvas"===i&&l)"canvas"==i&&(null!=r&&null!=r.canvas||(r??={},r.canvas=new SR7.F.canvas({wrap:e,color:t.color,ctx:"2d",overlay:t.overlay})),r.canvas.drawColored());else if("object"==typeof t.color&&(t.color=_tpt.gradient.process(t.color,!0)),s&&!r?.bgByCSS){let s=("object"==typeof t.color?t.color.string:t.color)+("none"!==(t.bClip??"none")?" "+t.bClip:"");"true"==String(e.dataset.needColorBg)&&(e.parentNode.getElementsByTagName("SR7-COL-BG")[0].style.background=s),e.style.background=s}var n;if(!l)if("bg"===i)e.style.backgroundImage="url('"+_tpt.urlProtocol(t.image.src.replaceAll(" ","%e2%80%af"))+"')"+(e.style.backgroundImage.indexOf("gradient")>=0?","+e.style.backgroundImage:""),_tpt.gsap.set(e,{backgroundPosition:(t.image?.pos?.x??0)+" "+(t.image?.pos?.y??0),backgroundSize:"percentage"==t.image.size?parseInt(t.image.sizeVal??100)+"%":"pixel"==t.image.size?parseInt(t.image.sizeVal??100)+"px":t.image.size,backgroundRepeat:t.image.repeat});else if("element"===i){var d=document.createElement("sr-container");e.insertBefore(d,e.children[0]),d.style.backgroundImage="url('"+_tpt.urlProtocol(t.image.src.replaceAll(" ","%e2%80%af"))+"')"+ +(d.style.backgroundImage.indexOf("gradient")>=0?","+d.style.backgroundImage:""),_tpt.gsap.set(d,{width:"100%",height:"100%",position:"absolute",top:0,left:0,backgroundPosition:t.image.pos.x+" "+t.image.pos.y,backgroundSize:"percentage"==t.image.size?parseInt(t.image.sizeVal??100)+"%":"pixel"==t.image.size?parseInt(t.image.sizeVal??100)+"px":t.image.size,backgroundRepeat:t.image.repeat})}else"canvas"===i&&""!==t.image.src&&(e.style.overflow="hidden",null==r||null==r.canvas||null==r.canvas.image?(r??={},r.canvas??=new SR7.F.canvas({wrap:e,ctx:"2d",create:!0,overlay:t.overlay,size:t.image.size,pos:t.image.pos,repeat:t.image.repeat,sizeVal:t.image.sizeVal}),n=new Promise((s=>{_tpt.registerImage(t.image.src,1,(function(e){requestAnimationFrame((function(){try{r.canvas.image=e.image,r.canvas.drawImg()}catch(e){console.log(e)}s()}))}),e.id+"_"+Math.round(1e5*Math.random()),void 0,t.image.crossOrigin)}))):r.canvas.drawImg());return{canvas:r?.canvas?.canvas??void 0,promise:n,c:r}},SR7.F.attrId=e=>""==e||null==e?void 0:e,SR7.F.drawRawLayers=function(e,t,s){if(null==t||-1==t)return;let i=SR7.M[e],a=i.slides[t].layers,r=i.c?.PO?.[t];if(null!=r&&null!=i.zones[t]){i.zones[t].cache=i.zones[t].all;for(let i in r)_tpt.hop(r,i)&&void 0!==a[r[i]]&&SR7.F.drawRawLayer(SR7.F.attrId(a[r[i]].attr?.id)??e+"-"+t+"-"+a[r[i]].id,s,t);requestAnimationFrame((function(){SR7.F.getZoneHeights(e,t)!==i.zones[t].cache&&SR7.F.updateModuleDims(e,!0)}))}};const e=(e,t,s)=>{const i=parseFloat(e),a="none"!==s?parseFloat(s):NaN,r="none"!==t?parseFloat(t):NaN;return isNaN(i)?e:!isNaN(a)&&i<a?s:!isNaN(r)&&i>r?t:e},t=(e,t,s,i,a,r)=>t!==(s=_tpt.divSize(SR7.gV({v:s,id:i,f:a,m:"round",s:"scale"})))?(r.style[e]=s&&"none"!==s?s:"",s):t,s=(t,s,i,a,r,o)=>String(t).includes("%")?e(parseFloat(o),a,r)*parseFloat(t)/100/s*i:isNaN(parseFloat(t))?"auto":e(parseFloat(t),a,r)/s*i;SR7.F.drawRawLayer=function(r,o,l,n){var{layer:d,el:c,c:p,id:h,skey:u,lkey:m}=SR7.F.getLayer(r);if("hover"==p.cache?.hover?.requested)return;var g=SR7.M[h],f=[];let v,y;p.LME=p.addonWrap?"addonWrap":p.parallax?"parallax":p.loop?"loop":p.mask?"mask":"el",p.target??="column"!==d.subtype?p[p.LME]:c,SR7.E.backend&&(p.editVals??={con:{},el:{},row:{},column:{}}),p.useAsImage="image"==d.subtype||"text"!==d.type&&"column"!==d.subtype&&"row"!==d.subtype&&"video"!==d.subtype&&"slidebg"!==d.subtype&&""!==d?.bg?.image?.src&&d?.bg?.image?.src?.length>3,p.minMaxCon??="row"!=d.subtype&&"column"!=d.subtype||!p.con?p.target:p.con;const S=_tpt.tf(d.fluid?.tr??void 0);let b=_tpt.divSize(SR7.gV({v:d.size.w,id:h,f:S,m:"round",s:"scale"})),R=_tpt.divSize(SR7.gV({v:d.size.h,id:h,f:S,s:"scale"}));if("auto"==b&&"auto"==R&&p.image)if(p.imgHeight&&p.imgWidth){R=p.imgHeight*g.MP,b=p.imgWidth*g.MP;let e=(p.par?.cw??0)-((p.par?._pLeft??0)+(p.par?._pRight??0)),t=(p.par?.ch??0)-((p.par?._pTop??0)+(p.par?._pBottom??0));b>e&&e>0?(b=e,R=p.imgHeight/p.imgWidth*b):R>t&&t>0&&(R=t,b=p.imgWidth/p.imgHeight*R)}else p.aspectRatio<1?(b="auto",R="100%"):(b="100%",R="auto");p.display=SR7.gV({v:d.display,id:h});let w=!("prepare"!=o&&"animated"===p.state&&"idle"!=(p.cache?.color?.from??"idle")||p.global&&"in"==p.gpos&&"idle"!==(p.cache?.color?.from??"idle")&&void 0!==(p.cache?.color?.c??void 0)),x=!("prepare"!=o&&"animated"===p.state||p.global&&"in"==p.gpos&&"idle"!==(p.cache?.color?.bgfrom??"idle")&&void 0!==(p.cache?.color?.bg??void 0));if("text"==d.type&&(c.style.fontFamily=d.font.family.replaceAll("'",""),("default"==d.uS&&g.settings.uS||"true"==String(d.uS))&&(c.style.userSelect="text"),""==c.style.fontFamily&&(c.style.fontFamily="'"+d.font.family.replaceAll("'","")+"'"),"none"!==(d.bg.tFCol??"none")&&(c.style.webkitTextFillColor=d.bg.tFCol),c.style.fontSize=SR7.gV({v:d.font.size,id:h,u:"px",f:d.fluid.tx,m:"round",s:"scale",a:!0}),c.style.fontWeight=SR7.gV({v:d.font.weight,id:h,u:0}),w&&(c.style.color=SR7.gV({v:d.color,id:h}),SR7.F.cache(p.cache,"color",["c","from"],[c.style.color,"idle"])),c.style.textTransform=d.content.trans,c.style.textDecoration=d.content.deco,c.style.letterSpacing=SR7.gV({v:d.font.ls,id:h,u:"px",f:d.fluid.tx,s:"scale"}),void 0!==d.tShdw&&d.tShdw.use&&(c.style.textShadow=SR7.gV({v:d.tShdw.h,id:h,u:"px",f:d.fluid.tx})+" "+SR7.gV({v:d.tShdw.v,id:h,u:"px",f:d.fluid.tx})+" "+SR7.gV({v:d.tShdw.blur,id:h,u:"px",f:d.fluid.tx})+" "+d.tShdw.color),void 0!==d.tStroke&&d.tStroke.use&&(c.style.webkitTextStroke=SR7.gV({v:d.tStroke.w,id:h,u:"px",f:d.fluid.tx})+" "+d.tStroke.c),p.metas??=SR7.F.updateBasicMetas(h,p,u),d.font.style&&(c.style.fontStyle="italic"),p.fontStr=`${c.style.fontStyle} ${c.style.fontWeight} ${c.style.fontSize} '${c.style.fontFamily}'`,!0!==p.waitOnFont&&(p.waitOnFont=!0,f.push(_tpt.checkFontLoaded(c.style.fontFamily,c.style.fontWeight,c.style.fontStyle,175)),c.innerHTML.includes('class="material-icons')&&f.push(_tpt.checkFontLoaded("Material Icons",c.style.fontWeight,c.style.fontStyle,375)),c.innerHTML.includes('<i class="fa-')&&f.push(_tpt.checkFontLoaded("FontAwesome",c.style.fontWeight,c.style.fontStyle,175)),c.innerHTML.includes('<i class="pe-7s-')&&f.push(_tpt.checkFontLoaded("Pe-icon-7-stroke",c.style.fontWeight,c.style.fontStyle,175)))),"container"==d.type||"text"==d.type){c.style.lineHeight=SR7.gV({v:d.lh,id:h,u:"px",f:d.fluid.tx,m:"round",s:"scale"}),c.style.textAlign=SR7.gV({v:d.tA,id:h,u:0});let e=SR7.gV({v:d.ws,id:h});e="full"===e?"normal":e,p.maw=t("maxWidth",p.maw,d.size.maxW,h,S,p.minMaxCon),e="normal"==e&&p.maw&&"none"!==p.maw?"normal":"normal"===e&&"auto"===b&&("column"!==p.ptype&&"group"!==p.ptype||"relative"!==d.pos.pos)||"content"==e?"nowrap":e,void 0!==e&&(c.style.whiteSpace=e)}void 0!==d.bShdw&&d.bShdw.use&&(p["row"==d.subtype?p.mask?"target":p.con?"con":"el":"column"==d.subtype&&p.colbg?"colbg":"el"].style.boxShadow=SR7.gV({v:d.bShdw.h,id:h,u:"px",f:d.fluid.tx,s:"scale"})+" "+SR7.gV({v:d.bShdw.v,id:h,u:"px",f:d.fluid.tx,s:"scale"})+" "+SR7.gV({v:d.bShdw.blur,id:h,u:"px",f:d.fluid.tx,s:"scale"})+" "+SR7.gV({v:d.bShdw.spread,id:h,u:"px",f:d.fluid.tx,s:"scale"})+" "+d.bShdw.color),"group"==d.subtype&&(c.style.lineHeight="0px");let F,_=d.radius&&("video"==d.type||"video"==d.subtype);if((void 0!==p.oflow||_)&&(p[p.mask?"mask":"el"].style.overflow=_||p.useAsImage&&d.image?.style?"hidden":p.oflow),"column"==d.subtype||"row"==d.subtype)for("column"==d.subtype?(d.break??=g.slides[u].layers[d.pid].break,"1/1"!==d.size.col&&(null==d.break||d.break>g.LEV)?(b=d.size.col.split("/"),b=100/parseInt(b[1])*b[0]+"%",p.display="table-cell"):(b="100%",p.display="block")):p.con?(p.conDisplay=null==d.break||d.break>g.LEV?"table":"block","row"==d.subtype&&p.mask&&(b="100%")):(p.display=null==d.break||d.break>g.LEV?"table":"block",b="100%"),v=0;v<4;v++)p.el.style["padding"+SR7.D.DL[v]]=parseInt(SR7.gV({v:d.m?.[SR7.D.DS[v]]??0,id:h,u:0,f:d.fluid.sp,m:"round"}))+parseInt("row"!=d.subtype||1!=v&&3!=v||"slide"===d.rTo||"carousel"===g.settings.type&&!g.settings.carousel.stretch&&!g.slides[u].slide.global?0:p.con["margin"+SR7.D.DL[v]]=g.dims.CFC.x)+"px",p["rp"+SR7.D.DS[v]]=parseInt(p.el.style["padding"+SR7.D.DL[v]]),p[p.con?"con":"el"].style["padding"+SR7.D.DL[v]]=SR7.gV({v:d.p?.[SR7.D.DS[v]]??0,id:h,u:0,f:d.fluid.sp,m:"round"})+"px","container"==p.type&&(p["_p"+SR7.D.DL[v]]=parseInt(p.el.style["padding"+SR7.D.DL[v]])),p.colbg&&(p.colbg.style[SR7.D.DL[v].toLowerCase()]=p.el.style["padding"+SR7.D.DL[v]],p.colbgMask&&(p.colbgMask.style[SR7.D.DL[v].toLowerCase()]="0px")),p.editVals&&(p.editVals[d.subtype]["padding"+SR7.D.DL[v]]=SR7.gV({v:d.p?.[SR7.D.DS[v]]??0,id:h,u:0,f:d.fluid.sp,m:"round"})+"px",p.editVals[d.subtype]["margin"+SR7.D.DL[v]]=SR7.gV({v:d.m?.[SR7.D.DS[v]]??0,id:h,u:0,f:d.fluid.sp,m:"round"})+"px");else{let e;for(y of SR7.D.spacings)if("absolute"!=d.pos.pos&&"fullinset"!=d.size.cMode||"margin"!=y)for(v=0;v<4;v++)p["padding"!==y?p.LME:"el"].style[y+SR7.D.DL[v]]=e=(void 0!==d[y[0]]&&void 0!==d[y[0]][SR7.D.DS[v]]?SR7.gV({v:d[y[0]][SR7.D.DS[v]],id:h,u:0,f:d.fluid.sp,m:"round",s:"padding"==y?"scale":"inherit"}):0)+"px","0px"!==e&&(F=!0),p.editVals&&(p.editVals.el[y+SR7.D.DL[v]]=e)}"absolute"==d.pos.pos&&"fullinset"==d.size.cMode?(p.target.style.width="auto",p.target.style.height="auto"):(p.imgtype=p.useAsImage?p.imgHeight>p.imgWidth?"portrait":p.imgHeight<p.imgWidth?"landscape":void 0:void 0,p.aspectRatio??=p.media&&p.media?.player?.aspectRatio?p.media.player.aspectRatio:p.canvas?.canvas?.image?p.canvas.canvas.naturalWidth/p.canvas.canvas.naturalHeight:void 0,p.mih=t("minHeight",p.mih,d.size.minH,h,S,p.minMaxCon),p.miw=t("minWidth",p.miw,d.size.minW,h,S,p.minMaxCon),p.mah=t("maxHeight",p.mah,d.size.maxH,h,S,p.minMaxCon),p.maw=t("maxWidth",p.maw,d.size.maxW,h,S,p.minMaxCon),p.w="auto"!==b?b:"shape"==d.type&&p.useAsImage&&p.imgHeight?((t,i)=>"auto"==i?e(t.imgWidth,t.maw,t.miw):s(i,t.imgHeight,t.imgWidth,t.mah,t.mih,t.par?.rch??t.par?.ch))(p,R):"absolute"==d.pos.pos&&"text"!==d.type&&"group"!==d.subtype?p.useAsImage?"landscape"==p.imgtype?"100%":"auto":"100%":"auto",p.h="fullheight"==d.size.cMode||"cover"==d.size.cMode||"cover-proportional"==d.size.cMode?"100%":"auto"==R&&"shape"==d.type&&p.useAsImage&&p.imgHeight?((t,i)=>"auto"==i?e(t.imgHeight,t.mah,t.mih):s(i,t.imgWidth,t.imgHeight,t.maw,t.miw,t.par?.rcw??t.par?.cw))(p,b):R,p.h="-1"==String(p.h)?"auto":p.h,p.target.style.width=-1==d.pid&&"slide"!==d.rTo?"auto"==p.w?"none"!=p.maw&&p.maw?p.maw:"auto":_tpt.posToNum(_tpt.unitize(p.w),g.dims.CFC?.[l]?.w??g.dims.CFC.w)+"px":_tpt.unitize(p.w),p.target.style.height=-1==d.pid&&"slide"==d.rTo&&"100%"==R&&g.settings.fixed&&g.settings.size.fullHeight?_tpt.winH+"px":-1==d.pid&&"slide"!==d.rTo&&"auto"!==p.h?_tpt.posToNum(_tpt.unitize(p.h),g.dims.CFC.h)+"px":"auto"!==p.h&&-1==d.pid&&"slide"==d.rTo?_tpt.posToNum(_tpt.unitize(p.h),g.fHVCarousel?g.dims.CFC.h:g.dims.content.h)+"px":_tpt.unitize(p.h,"px"),p.mask&&(p.loop||p.parallax)&&"absolute"==p.target.style.position&&(p.mask.style.height="100%",p.mask.style.width="100%"),"bg"==p.imageType&&p.image?.style&&(p.image.style.backgroundSize=p.w+" "+p.h)),-1!==d.pid&&(p.target.style.cssFloat=SR7.gV({v:d.pos.float,id:h}),"none"!==p.target.style.cssFloat&&"group"==p.par?.subtype&&p.par.el.classList.add("sr7-clear"),p.target.style.clear=SR7.gV({v:d.pos.clear,id:h}));let M="column"==d.subtype&&p.colbgMask?"colbgMask":"column"==d.subtype&&p.colbg?"colbg":"row"==d.subtype&&p.con?"con":"el";if(d.border){for(p[M].style.borderStyle=SR7.gV({v:d.border.s,id:h}),v=0;v<4;v++)p[M].style[SR7.D.BWID[v]]=_tpt.unitize(SR7.gV({v:d.border?.w?.[SR7.D.DS[v]]??0??"0px",id:h,f:S,m:"round"}));p.borderH??=parseInt(p[M].style.borderLeftWidth)+parseInt(p[M].style.borderRightWidth),p.borderV??=parseInt(p[M].style.borderTopWidth)+parseInt(p[M].style.borderBottomWidth)}if("prepare"==o){if("container"==d.type&&"auto"==p.target.style.height&&"done"!==(g.c?.autoParents?.[u]??!1)&&(g.c.autoParents??={},g.c.autoParents[u]??=[],-1==g.c.autoParents[u].indexOf(m)&&g.c.autoParents[u].push(m)),d.border&&(p[M].style.borderColor=d.border.c),p.target.style.zIndex="zone"==d.subtype?d.zIndex&&-1!==d.zIndex?d.zIndex:(g?.zoneIndexes?.[d.id]??100)+1:d.zIndex+("slidebg"==d.subtype?0:1),d.spike&&!SR7.E.backend&&(p.el.style.clipPath=SR7.F.getSpikePath(d.spike)),"normal"!==(d.blend??"normal")&&(p.target.style.mixBlendMode=d.blend),void 0!==d.radius)for(v=0;v<4;v++)void 0!==d.radius[SR7.D.DS[v]]&&(p[M].style[SR7.D.BRAD[v]]=_tpt.unitize(d.radius[SR7.D.DS[v]]));if(p.target.style.position=d.pos.pos,void 0!==p.mask&&void 0!==d.tr&&"slidebg"!==d.subtype&&(p.mask.style.transform="perspective(600px) rotate("+_tpt.unitize(d.tr.rZ??0,"deg")+") rotateY("+_tpt.unitize(d.tr.rY??0,"deg")+") rotateX("+_tpt.unitize(d.tr.rX??0,"deg")+")",p.mask.style.opacity=d.tr.o??1),d.cursor&&(p.target.style.cursor=d.cursor),p.state??="prepared",p.addonWrap&&p.parallax&&(p.parallax.style.visibility="inherit",p.parallax.style.display="block"),(p.addonWrap||p.loop||p.parallax)&&p.mask&&(p.mask.style.visibility="inherit",p.mask.style.display="block"),p.addonWrap&&p.loop&&(p.loop.style.visibility="inherit",p.loop.style.display="block"),"container"==d.type||"text"==d.type||"relative"==d.pos.pos){let e="container"!==d.type&&-1!==d.pid&&"relative"==d.pos.pos;c.style.verticalAlign=e?p.mask&&"shape"==p.type?"top":"inherit":SR7.gV({v:d.vA,id:h,u:0}),p.mask&&(p.mask.style.verticalAlign=e&&"shape"==p.type?"inherit":c.style.verticalAlign)}}p.transferOrigins?.target&&p.el.style.transformOrigin!==p.transferOrigins.target&&(p.el.style.transformOrigin=p.transferOrigins.target.split(" ").slice(0,2).join(" ")),p.loop&&p.transferOrigins?.loop&&p.loop.style.transformOrigin!==p.transferOrigins.loop&&_tpt.gsap.set(p.loop,{transformOrigin:p.transferOrigins.loop}),(d?.vis?.[g.LEV]??1)||"relative"!=d.pos.pos&&"inline-block"!=p.display||(p.display="none"),p.visibility=d?.vis?.[g.LEV]??1?-1!==d.pid&&"zone"!==p.ptype?"inherit":"visible":"hidden","update"!=o||"animated"!=p.state&&"zone"!=p.subtype||(p.target.style.visibility=p.visibility),p.target.style.display=p.display,"container"==d.type&&(SR7.gV({v:d.vis,id:h})??1?p.target.className.includes("sr-force-hidden")&&p.target.classList.remove("sr-force-hidden"):p.target.classList.add("sr-force-hidden")),"linebreak"==p.type&&(p.target.style.clear="both"),"prepare"==o&&"transparent"==(d?.bg?.color??"")&&d?.codes?.css&&(d.codes.css.includes("background")||d.codes.css.includes("background-color"))&&(p.bgByCSS=!0),"el"!==p.LME&&"column"!==d.subtype&&(c.style.width="absolute"==d.pos.pos&&"fullinset"==d.size.cMode&&p.mask||(""+p.target.style.width).includes("%")?"100%":p.target.style.width,c.style.height="absolute"==d.pos.pos&&("fullinset"==d.size.cMode||p.media&&("video"==p.type||"video"==p.subtype)&&"auto"==p.h)&&p.mask||(""+p.target.style.height).includes("%")?"100%":p.target.style.height,c.style.display="block",c.style.visibility="inherit",p.prepared?"animated"==p.state&&(p[p.LME].style.visibility=p.visibility):p[p.LME].style.visibility="hidden",p.conDisplay&&(p[p.LME].style.width="100%")),p.useAsImage?null==p.image?d.bg?.image?.seo||"fullinset"!=d.size.cMode&&!p.w?(p.image="pending",p.imageType="img","relative"==d.pos.pos||"auto"==b&&"auto"==R?f.push(a({layer:d,el:c,c:p,id:h,skey:u})):a({layer:d,el:c,c:p,id:h,skey:u})):(p.image="done",p.imageType="bg",f.push(SR7.F.drawBG(c,{image:d.bg.image,color:d?.bg?.color,overlay:"slidebg"==p.subtype&&g.settings?.bg?.overlay?.type&&!d.bg.overlay?.type?g.settings.bg.overlay:void 0},!0,d.tl&&d.tl.in&&d.tl.in.bg?"canvas":"bg").promise),F&&(p.bgClip="content-box"),"relative"==d.pos.pos||"auto"==b||"auto"==R?f.push(a({layer:d,el:c,c:p,id:h,skey:u},!1)):a({layer:d,el:c,c:p,id:h,skey:u},!1)):d.tl&&d.tl.in&&d.tl.in.bg&&("slidebg"==p.subtype&&g.settings?.bg?.overlay?.type&&!d.bg.overlay?.type&&(d.bg.overlay=g.settings.bg.overlay),f.push(SR7.F.drawBG("row"==d.subtype&&p.con?p.con:"column"==d.subtype&&p.colbg?p.colbg:p.el,d.bg,!0,"canvas").promise)):"video"==d.type||"audio"==d.type||""!==(d.bg?.video?.src??"")?(p.mediaSettings="video"==d.type||"audio"==d.type?d.content:d.bg.video,p.dOverlay||"none"===(d?.overlay?.type??"none")||(p.dOverlay=SR7.F.addOverlay(d.overlay.type,d.overlay.size,d.overlay.cA,d.overlay.cB),p.el.appendChild(p.dOverlay)),p.mediaPosterAdded||(""!==p.mediaSettings?.poster?.src?!p.mediaPoster||"video"!=d.type&&"video"!=d.subtype?"audio"!==d.type&&f.push(SR7.F.drawBG(p.el,{image:{src:p.mediaSettings.poster.src,size:"cover",pos:{x:"50%",y:"50%"}}},!0,"canvas").promise):f.push(SR7.F.drawBG(p.mediaPoster,{image:{src:p.mediaSettings.poster.src,size:d?.bg?.video?.cover??1?"cover":"contain",pos:{x:"50%",y:"50%"}}},!0,"bg").promise):"slidebg"==p.subtype&&f.push(SR7.F.drawBG(p.mediaPoster?p.mediaPoster:p.el,{color:"transparent"},!0,"canvas").promise)),p.mediaPosterAdded=!0,null!=p.media||n?void 0===p.media||void 0===p.media.updateSize||n||p.media.updateSize(c.style.width,c.style.height,p.mediaSettings.cover??1?"cover":"contain"):(_tpt.is_mobile&&!0===(p.mediaSettings.poster?.insteadVideo??!1)?p.mediaContainer.remove():(p.media=new SR7.videoPlayer(p.mediaContainer,p.el,_tpt.extend({type:"audio"==d.type?"audio":p.mediaSettings.type,subtype:d.subtype,width:c.style.width,height:c.style.height,inline:"slidebg"==d.subtype||p.mediaSettings.inline,target:p.target},p.mediaSettings)),void 0!==g.states.globalMute&&(p.media.player.options.mute="mute"==g.states.globalMute),f.push(p.media.add())),"relative"==d.pos.pos&&(p.mediaContainer.style.position="relative"))):d.tl&&d.tl.in&&d.tl.in.bg?("slidebg"==p.subtype&&g.settings?.bg?.overlay?.type&&!d.bg.overlay?.type&&(d.bg.overlay=g.settings.bg.overlay),f.push(SR7.F.drawBG("row"==d.subtype&&p.con?p.con:"column"==d.subtype&&p.colbg?p.colbg:p.el,d.bg,!0,"canvas").promise)):(f.push(SR7.F.drawBG("row"==d.subtype&&p.con?p.con:"column"==d.subtype&&p.colbg?p.colbg:p.el,d.bg,x,"bg").promise),null==d.bg.image&&x&&SR7.F.cache(p.cache,"color",["bg"],[d.bg.color])),"svg"==d.type&&null==p.svg&&(p.svg="loading",_tpt.getSVG(d.content.src,(function(e){if(void 0===e||null==e||""==e)return void(p.svg="failed");c.innerHTML=e.innerHTML,p.svg=c.getElementsByTagName("svg")[0],p.svg.innerHTML=p.svg.innerHTML.replaceAll("#SVGID_1_","#SVGID_1_"+p.el.id);let t=p.svg.getElementById("SVGID_1_");t&&(t.id="SVGID_1_"+p.el.id),i(p.svg),SR7.F.positionLayer(r,l),SR7.F.drawSVG(h,d.content,p)})));for(let e in d.addOns)_tpt.hop(d.addOns,e)&&SR7.A?.[e]?.drawLayer&&SR7.A[e].drawLayer(r,o);if(SR7.F.positionLayer(r,l),p.prepared||(g.c.reposLayers??=[],g.c.reposLayers.push(r)),p.prepared="group"!==d.subtype||!n,"update"==o&&"slidebg"!==p.subtype){let e=p.tl[p.animState.scene]?.TL?.time?.();void 0!==e&&p.tl[p.animState.scene].TL.invalidate().render(e,!0,!0)}return f};const i=e=>{const t="svg_"+Math.random().toString(36).substr(2,9)+"_";e.querySelectorAll("[id]").forEach((s=>{const i=s.id,a=t+i;s.id=a,e.querySelectorAll("*").forEach((e=>{["fill","stroke","clip-path","mask","filter","style"].forEach((t=>{if(e.hasAttribute(t)){const s=e.getAttribute(t);if(s?.includes(`url(#${i})`)){const r=s.replace(`url(#${i})`,`url(#${a})`);e.setAttribute(t,r)}}})),["xlink:href","href"].forEach((t=>{if(e.hasAttribute(t)){e.getAttribute(t)===`#${i}`&&e.setAttribute(t,`#${a}`)}}))}))}))};SR7.F.drawSVG=(e,t,s)=>{if(s.svg&&(s.svgPaths??=s.el.querySelectorAll(0==t.all?"path":"path, circle, ellipse, line, polygon, polyline, rect"),!0!==t.oC)){let i=SR7.gV({v:t.color,id:e});s.svgPaths.forEach((function(e){e.style.fill=i})),0==s.svgPaths.length&&(s.el.style.fill=i),void 0!==t.stroke.c&&"transparent"!==t.stroke.c&&(s.svg.style.stroke=t.stroke.c,void 0!==t.stroke.w&&(s.svg.style.strokeWidth=parseInt(t.stroke.w)+"px"),void 0!==t.stroke.o&&(s.svg.style.strokeDashoffset=t.stroke.o),void 0!==t.stroke.d&&(s.svg.style.strokeDasharray=t.stroke.d))}},SR7.F.reposLayers=e=>{if(void 0!==SR7.M[e].c.reposLayers&&SR7.M[e].c.reposLayers.length>0)for(let t of SR7.M[e].c.reposLayers)SR7.F.positionLayer(t);delete SR7.M[e].c.reposLayers,SR7.F.reposContainers(e,SR7.M[e].current.id)},SR7.F.reposContainers=(e,t)=>{if(null==t||-1==t)return;let s=SR7.M[e],i=s.slides[t].layers,a=s.c?.PO?.[t];if(null==a||null==s.zones[t])return;s.zones[t].cache=s.zones[t].all;let r=!1;for(let s in a)if(_tpt.hop(a,s)&&void 0!==i[a[s]]&&"zone"==i[a[s]].subtype){let{c:o}=SR7.F.getLayer({lkey:a[s],skey:t,id:e});o.el.offsetHeight!==o.ch&&void 0!==o.ch&&(r=!0,SR7.F.drawRawLayer(SR7.F.attrId(i[a[s]].attr?.id)??e+"-"+t+"-"+i[a[s]].id,"prepare",t))}r&&requestAnimationFrame((function(){SR7.F.getZoneHeights(e,t)!==s.zones[t].cache&&SR7.F.updateModuleDims(e,!0)}))},SR7.F.positionLayer=function(e,t){var{layer:s,c:i,id:a,skey:r}=e.layer&&e.c&&e.id&&e.skey?e:SR7.F.getLayer(e);t??=r;const o=SR7.M[a];if(i.par=-1!==s.pid?SR7.F.getLayer({id:a,skey:r,lkey:s.pid}).c:"slide"!==s.rTo&&"zone"!==s.subtype?o.dims.CFC?.[t]??o.dims.CFC:"carousel"==o.settings.type?"v"!=o.settings.carousel.type||o.slides[r].slide.global||"slide"!=s.rTo?o.dims.CFC?.[t+"_slide"]??o.dims.CFC?.[t]??o.dims.CFC:o.dims.CFC?.[t+"_full"]??o.dims.CFC:o.settings.fixed&&o.settings.size.fullHeight&&"slide"==s.rTo?{cw:_tpt.winW,ch:_tpt.winH}:o.dims.content,null==i.par)return;let l=i.aspectRatio??1.77777777,n="column"!=s.subtype&&"row"!=s.subtype||!i.con?i.el.offsetWidth-(s.subtype,0):i.con.offsetWidth,d=(i.image||i.media)&&0!==i.cw&&"auto"==i.h?n/l:"column"!=s.subtype&&"row"!=s.subtype||!i.con?i.el.offsetHeight-(s.subtype,0):i.con.offsetHeight,c=!!(0==n&&d>0&&i.image&&"bg"==i.imageType)&&d*l;if(c&&(n=c),"absolute"==s.pos.pos&&"fullinset"==s.size.cMode)i.top=i[i.LME].style.top=SR7.gV({v:s.m.t,id:a,u:0,f:s.fluid.sp,m:"round"})+"px",i.bottom=i[i.LME].style.bottom=SR7.gV({v:s.m.b,id:a,u:0,f:s.fluid.sp,m:"round"})+"px",i.left=i[i.LME].style.left=SR7.gV({v:s.m.l,id:a,u:0,f:s.fluid.sp,m:"round"})+"px",i.right=i[i.LME].style.right=SR7.gV({v:s.m.r,id:a,u:0,f:s.fluid.sp,m:"round"})+"px";else if("absolute"==s.pos.pos&&"row"!==s.subtype&&"column"!==s.subtype){void 0===i.par.el||null!=i.par.cw&&null!=i.par.ch||(i.par.cw=_tpt.posToNum(i.par.w,i.par.el.offsetWidth-("group"==i.ptype?i.par.borderH??i.par.borderH:0)),i.par.ch=_tpt.posToNum(i.par.h,i.par.el.offsetHeight-("group"==i.ptype?i.par.borderV??i.par.borderV:0))),i.par.cw??=i.par.w,i.par.ch??=i.par.h,i.cw="auto"==i.w?n:_tpt.posToNum(i.w,i.par.cw),i.cw=void 0!==i.maw&&"none"!==i.maw&&parseInt(i.maw)<i.cw?parseInt(i.maw):void 0!==i.miw&&"none"!==i.miw&&parseInt(i.miw)>i.cw?parseInt(i.miw):i.cw,i.ch="auto"==i.h?i.useAsImage&&"auto"==i.h&&void 0!==i.image?i.imgHeight*(i.cw/i.imgWidth):d:_tpt.posToNum(i.h,i.par.ch);let e=SR7.gV({v:s.pos.h,id:a}),t=SR7.gV({v:s.pos.v,id:a});i.ox=(i.ignoreParXY?0:i.par.x??0)+("left"==e?0:"right"==e?i.par.cw-i.cw:(i.par.cw-i.cw)/2),i.oy=(i.ignoreParXY?0:i.par.y??0)+("top"==t?0:"bottom"==t?i.par.ch-i.ch:(i.par.ch-i.ch)/2),"group"!=s.subtype||"auto"!=i.w||"right"!=e||"slide"!=s.rTo&&void 0===i.par.el?(void 0!==i.right&&(i.right=i[i.LME].style.right="auto"),i.left=i[i.LME].style.left=i.ox+("right"==e?-1:1)*_tpt.posToNum(SR7.gV({v:s.pos.x,id:a,s:"scale"}),i.par.cw)*(s.fluid?.sp?o.MP:1)+"px"):(i.right=i[i.LME].style.right=_tpt.posToNum(SR7.gV({v:s.pos.x,id:a,s:"scale"}),i.par.cw)*(s.fluid.sp?o.MP:1)+"px",i.left=i[i.LME].style.left="auto"),i.top=i[i.LME].style.top=i.oy+("bottom"==t?-1:1)*_tpt.posToNum(SR7.gV({v:s.pos.y,id:a,s:"scale"}),i.par.ch)*(s.fluid?.sp?o.MP:1)+"px","bg"==i.imageType&&"shape"!==s.type&&(i.el.style.backgroundPosition=e+" "+t)}else i.left=i.el.offsetLeft,i.top=i.el.offsetTop;i.cPos={left:parseInt(i.left)||i.left,top:parseInt(i.top)||i.top},i.cw=n-("group"==i.subtype?i.borderH??0:0),i.ch=d-("group"==i.subtype?i.borderV??0:0),"container"==i.type&&(i.rcw=i.cw-((i._pLeft??0)+(i._pRight??0)+(i.borderH??0)),i.rch=i.ch-((i._pTop??0)+(i._pBottom??0)+(i.borderV??0))),(i.image||i.media)&&0!==i.cw&&"auto"==i.h&&(i.target.style.height=i.cw/l+"px",(i.image||i.media)&&(i.el.style.height=i.cw/l+"px")),i.image&&c&&(i.el.style.width=c+"px"),"column"!=s.subtype||0!==i.cw&&0!=i.ch||void 0===i.par?"row"==s.subtype&&(i.ciw="slide"!==s.rTo?o.dims.CFC?.[t]?.w??o.dims.CFC.w:i.cw):(i.cw=0==i.cw?_tpt.posToNum(i.w,i.par.cw):i.cw,i.ch=0==i.ch?_tpt.posToNum(i.h,i.par.ch):i.ch),SR7.E.backend&&SR7.editor?.elements?.ghost?.build?.(i),0==i.ch&&"auto"==i.h&&"shape"==i.type&&i.global&&(!i.tryReposition||i.tryReposition<3)&&(i.tryReposition??=0,setTimeout((function(){SR7.F.positionLayer(e,t),i.tryReposition++}),19))};let a=(e,t)=>{let{el:s,c:i,src:a,layer:r,skey:o}=e;return new Promise((l=>{if(!a&&!r.bg?.image?.src)return l();_tpt.registerImage(a||r.bg?.image?.src,0,(function(a){if("error"==a.state)SR7.F.positionLayer(e,o),l();else{if(null==a.image)return void l();i.image=a.image?.used?a.image?.cloneNode():a.image,a.image.used=!0,i.imgWidth=a.width,i.imgHeight=a.height,i.aspectRatio=i.imgWidth/i.imgHeight,t?(s.appendChild(i.image),i.image.style.width="100%",i.image.style.height="auto",SR7.F.positionLayer(e,o)):SR7.F.positionLayer(e,o),i.bgClip&&(i.el.style.backgroundClip="content-box"),l()}}),"load_img_in_layer_"+s.id)}))};_tpt.R=_tpt.R||{},_tpt.R.draw=_tpt.extend?_tpt.extend(_tpt.R.draw,{status:2,version:"1.0"}):{status:2,version:"1.0"}}(),function(){"use strict";window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},_tpt.idRegistry??={};const tags=["div","a","p","span","sr7-layer","h1","h2","h3","h4","h5","h6","ul","ol","li","label","img","video","audio","iframe","sr7-txt","sr7-video","sr7-audio","sr7-poster","sr7-img","sr7-shape","sr7-button","sr7-bg","sr7-col","sr7-col-bg","sr7-col-bg-mask","sr7-row","sr7-row-con","sr7-col-con","sr7-media","sr7-poster","sr7-ao","sr7-ao-in","sr7-px","sr7-mask","sr7-fxc","sr7-loop","sr7-3dwrap","sr7-3dwrap-bg","sr7-3dwrap-layers"];function openUrlOrScroll(e,t,s){if("#"==e?.link||String(e.link).toLowerCase().includes("mailto:")||String(e.link).toLowerCase().includes("tel:"))return e.link;let i=new URL(window.location.href),a=i.hostname,r=i.pathname.endsWith("/")?i.pathname:i.pathname+"/",o="";switch(e.http){case"auto":default:o=window.location.protocol;break;case"keep":o="";break;case"http":o="http:";break;case"https":o="https:"}let l=e.link&&e.link.indexOf("://")>-1?e.link.split("://")[0]:"";e.link=e.link&&e.link.replace(l+"://","").replace(l+"//","").replace("//","");let n,d,c=e.link;""==c||null==c?c=void 0:c.startsWith("#")?c=window.location.href.split("#")[0]+c:!c.startsWith("/")&&o?c=o+"//"+c:c.startsWith("/")||o?o&&(c=o+"//"+e.link):c="https://"+c;try{n=null==c||""==c?new URL(window.location.href):c.startsWith("/")&&"/"!==c[2]?new URL(c,window.location.href):new URL(c)}catch(e){console.log(e)}try{d=n.pathname.endsWith("/")?n.pathname:n.pathname+"/"}catch(e){console.log(e)}if(s||a!=n.hostname||r!=d){if(s)return n?.href;e.anchor&&(n.hash=e.anchor),window.open(n.href,e.target)}else SR7.F.scrollToId({id:t,offset:e.offset??0,action:e.a,anchor:e.anchor,speed:e.s??1e3,ease:e.e})}void 0===SR7.F.getLayer&&(SR7.F.getLKey=(e,t,s)=>SR7.F.attrId(SR7.M[e].slides[t].layers[s].attr?.id)?SR7.M[e].slides[t].layers[s].attr?.id:e+"-"+t+"-"+s,SR7.F.getLayer=function(e){if(!e)return{id:void 0,skey:void 0,el:void 0,lkey:void 0,layer:void 0};let t,s,i,a,r,o;const l=typeof e;if("object"!==l||void 0!==e.lid){e="object"==l?e.lid:e;for(const l in SR7.M)!t&&_tpt.hop(SR7.M,l)&&SR7.M[l].c.layers&&SR7.M[l].c.layers[SR7.lToK[e]]&&(o=SR7.M[l].c.layers[SR7.lToK[e]],t=o.el,a=o.skey,r=o.lkey,s=SR7.M[l].slides[a].layers[r],i=l)}else{const{id:l,skey:n,lkey:d}=e;s=SR7.M[l]?.slides?.[n]?.layers?.[d]??{},o=SR7.M[l]?.c.layers?.[SR7.lToK[SR7.F.attrId(s.attr?.id)??`${l}-${n}-${d}`]]??void 0,t=o?.el??void 0,a=n,r=d,i=l}return{id:i,skey:a,el:t,lkey:r,layer:s,c:o}},SR7.F.getCarouselLayers=(e,t,s)=>{const i=SR7.M[e],a=[];if(-1!=t&&null!=i.slides[t]){for(let r in i.slides[t].layers){if(!_tpt.hop(i.slides[t].layers,r))continue;let o="slidebg"==i.slides[t].layers[r].subtype||i.slides[t].layers[r].viOC;if("visible"==s&&o||"outfocus"==s&&!o)a.push(r);else if("infocus"==s){let s=i.c.layers[SR7.lToK[`${e}-${t}-${r}`]];void 0!==s&&"in"!==(s.animState?.scene??"")&&a.push(r)}}return a}},SR7.F.getSlideBG=(e,t)=>{let s,i=SR7.M[e].slides[t]?.layers??void 0;if(null!=i){for(let e in i)!s&&_tpt.hop(i,e)&&"slidebg"==i[e].subtype&&(s=i[e]);return s}},SR7.F.resetGlobalLayers=function(e){const t=SR7.M[e];if(t?.slides)for(let s of t.staticSlides)for(let i in t.slides[s].layers){let{c:t}=SR7.F.getLayer({id:e,skey:s,lkey:i});t&&(t.animState={runningFrames:[]},delete t.gpos,delete t.lastEventCalled,delete t.state,t.cache={},t.prepared=!1)}},SR7.F.layerAddonWraps=(e,t)=>{if(!t)return;let s;for(let i in t.addOns){if(!_tpt.hop(t.addOns,i)||!SR7.A?.[i]?.getLayerWraps)continue;const a=SR7.A?.[i]?.getLayerWraps(e,t)??void 0;null!=a&&(s??={},s.wrap??={},s.wrap.class=(null==s.wrap.class?"":s.wrap.class+" ")+a.wrap.class,s.wrap.use=s.wrap.use||a.wrap.use,!1!==(a.innerWrap?.use??!1)&&(s.innerWrap??={},s.innerWrap.class=(null==(s.innerWrap?.class??void 0)?"":s.innerWrap.class+" ")+(a.innerWrap?.class??""),s.innerWrap.use=s.innerWrap.use||(a.innerWrap?.use??!1)))}return s},SR7.F.prepareLayerAddon=async(e,t,s,i)=>{if(null==SR7.A||!t)return;let a=[];for(let r in SR7.A){if(!_tpt.hop(SR7.A,r)||!SR7.A?.[r]?.prepareLayer)continue;const o=await(SR7.A?.[r]?.prepareLayer(e,t,s,i))??void 0;null!=o&&(Array.isArray(o)?a.push(...o):a.push(o))}return a},SR7.F.prepareLayer=async(e,t,s,i,a,r,o,l,n,d,c)=>{let p=SR7.M[e];const h=(!t?.vis||t.vis?.[p.LEV])&&("c"==(t.tl?.in?.content?.all?.[1]?.fx??!1)[0]||"c"==(t.tl?.out?.content?.all?.[0]?.fx??!1)[0]);let u=e+"-"+s+"-"+t.id,m=0==String(t.attr?.id??"").length?u:t.attr.id,g=SR7.D.hasActionLike(e,s,i,"link");const f=`${_tpt.mText(t.attr?.class??"")} ${"row"==t.subtype&&"slide"!==t.rTo?"sr7-galign":""} ${t.attr?.iClass??""} ${"video"!=t.type&&"video"!=t.subtype||g||!t.content?.noInteract?"":"nointeraction"}`;let v,y=p.c.layers;y[m]&&(m=t.attr.id+="_DBL_"+Math.round(9999*Math.random())),"slidebg"==t.subtype&&(p.c.slideBGs[s]={lid:m,lkey:i}),"slidebg"==t.subtype&&p.migrate?(v=document.getElementById(e+"-"+s+"-slidebg"),null!==v&&(v.id=m)):v=document.getElementById(m),g=!1!==g&&"a"==g.ltype&&g,void 0!==t.tag&&(t.tag=-1==tags.indexOf(t.tag)?"sr7-layer":t.tag);const S=g?"a":"slidebg"==t.subtype?"sr7-bg":"column"==t.subtype?"sr7-col":"sr7-layer"==t.tag||null==t.tag?SR7.D.tagLib[""!==t.subtype&&void 0!==t.subtype?t.subtype:t.type]:t.tag;v&&v.tagName.toLowerCase()!==S.toLowerCase()&&(v.parentElement.removeChild(v),v=void 0),t.codes?.css&&t.codes.css,"container"!==t.type&&v?(v.parentElement.removeChild(v),v.className=_tpt.mText(v.className,f),l.fragment.appendChild(v),"text"==t.type&&p.fromStream&&null==v.getAttribute("srscsrc")&&(v.innerHTML=SR7.F.updateDynamicMetas(e,o.slide.order,_tpt.lineBreaks(t.content.text,SR7.gV({v:t.ws,id:e}))))):(v=l.add({tag:S,class:f,id:m}),"text"==t.type&&(f.includes("sr7-brg")||(t.content.text=_tpt.lineBreaks(t.content.text,SR7.gV({v:t.ws,id:e}))),v.innerHTML=p.fromStream?SR7.F.updateDynamicMetas(e,o.slide.order,t.content.text):t.content.text)),p.hasTouchSwipe&&(SR7.D.hasActionLike(e,s,i,"simulate")||SR7.D.hasActionLike(e,s,i,"click"))&&(v.dataset.clickable="true"),g&&(g?.shrlink?_tpt.checkResources(["sharing"]).then((()=>{SR7.A?.sharing?.postProcessLayer&&SR7.A.sharing.postProcessLayer(e,t,y[m],s)})):(v.href=p.fromStream?SR7.F.updateDynamicMetas(e,o.slide.order,g.link):openUrlOrScroll(g,e,!0),v.target=g.target,"nofollow"==g.flw&&(v.rel="nofollow"),"_blank"==g.target&&(v.rel=(v.rel??"")+(void 0!==v.rel&&v.rel.length>0?" ":"")+"noopener"))),t.viSH&&(p.c.viSH??={},p.c.viSH.el??=[],p.c.viSH.el.push(m)),!v.className.includes("sr7-layer")&&v.classList.add("sr7-layer"),y[m]={el:v,mid:e,skey:s,lkey:i,oflow:t.oflow,cache:{},tl:{},listeners:{hover:!1!==(t.hov?.u??!1),action:void 0!==t.listen&&t.listen.length>0&&_tpt.tEvt(t.listen),aCache:{}},type:t.type,subtype:t.subtype,animState:{runningFrames:[]},ignoreParXY:"carousel"==p.settings.type&&"v"==p.settings?.carousel?.type&&"slide"==t.rTo},SR7.lToK[u]=m,u!==m&&(SR7.lToK[m]=m),"row"==t.subtype&&(p.zoneIndexes[t.pid]=null==p.zoneIndexes[t.pid]||p.zoneIndexes[t.pid]<t.zIndex?t.zIndex:p.zoneIndexes[t.pid]),t.pE=y[m].pE="default"==t.uS&&p.settings.uS||"true"==String(t.uS)?"auto":"none"==t.pE||"text"!==t.type&&p.settings.fixed&&!y[m].listeners.hover&&!y[m].listeners.action&&"auto"==t.pE?"none":t.pE,"none"==y[m].pE&&(v.style.pointerEvents="none"),p.settings?.acc?.use&&"false"==String(t?.acc?.hidden??"true")?(v.setAttribute("aria-hidden",!1),v.setAttribute("tabindex",0),"unset"!==String(t?.acc?.label).toLowerCase()&&String(t?.acc?.label).length>0&&v.setAttribute("aria-label",t?.acc?.label),"unset"!==String(t?.acc?.role).toLowerCase()&&String(t?.acc?.role).length>0&&v.setAttribute("role",t?.acc?.role),"unset"!==String(t?.acc?.haspopup).toLowerCase()&&String(t?.acc?.haspopup).length>0&&v.setAttribute("aria-haspopup",t?.acc?.haspopup),"unset"!==String(t?.acc?.labeledby).toLowerCase()&&String(t?.acc?.labeledby).length>0&&v.setAttribute("aria-labeledby",t?.acc?.labeledby)):v.setAttribute("aria-hidden",!0),t.content?.fromStream&&p.stream&&(t.content.src=SR7.F.getFeed(p,o.slide.order,"media"),t.content.src&&-1===t.content.src.indexOf("video_dashinit.mp4")||(t.content.src=SR7.F.getFeed(p,o.slide.order,"thumb")),t.content.crossOrigin="youtube"!==(SR7.M.settings?.source?.type??""),t.content?.poster?.fromStream&&(t.content.poster.src=SR7.F.getFeed(p,o.slide.order,"thumb"))),t.bg?.image?.fromStream&&p.stream&&(t.bg.image.crossOrigin="youtube"!==(SR7.M.settings?.source?.type??""),t.bg.image.src=SR7.F.getFeed(p,o.slide.order,"image",void 0,void 0,t.bg.image.src)),t.bg?.video?.fromStream&&p.stream&&(t.bg.video.src=SR7.F.getFeed(p,o.slide.order,"media"),t.bg.video.poster.fromStream&&(t.bg.video.poster.src=SR7.F.getFeed(p,o.slide.order,"thumb"))),"video"!=t.type&&"audio"!=t.type&&""===(t.bg?.video?.src??"")||(v.appendChild(y[m].mediaContainer=l.add({tag:"sr7-media",class:"sr7-media",id:m+("audio"==t.type?"_audio":"_video")})),"audio"===t.type||""===(t.bg?.video?.poster?.src??"")&&""===(t.content?.poster?.src??"")||v.appendChild(y[m].mediaPoster=l.add({tag:"sr7-poster",class:"sr7-poster",id:m+"_poster"}))),o.slide.global&&(y[m].global=!0,t.sStart=parseInt(t.sStart??1),t.sEnd=parseInt(t.sEnd??p.len)||p.len,void 0!==t.sZ&&"default"!==t.sZ&&t.sZ!==o.slide.pos&&-1==t.pid&&d.push(m)),y[m].addOns=SR7.F.layerAddonWraps(e,t);let b,R=await SR7.F.prepareLayerAddon(e,t,m,s);void 0!==R&&a.push(...R);let w=SR7.F.checkWrap(t.tl,"mask")||(t.hov?.m??!1);!w&&h&&(w=h,y[m].maskForFx=!0);let x=""!==(t?.attr?.wrapClass??"")||""!==(t?.attr?.wrapId??"")||"slidebg"==t.subtype;if("image"==t.subtype&&!x){for(let e=0;e<SR7.D.DL.length;e++)if(t.p?.[SR7.D.DS[e]])for(let s of t.p[SR7.D.DS[e]])v.dataset.needColorBg=v.dataset.needColorBg||parseInt(s)>0;x=x||"true"==String(v.dataset.needColorBg)}let F,_,M,k=SR7.F.checkWrap(t.tl,"loop");y[m].transferOrigins={target:t.tl?.in?.content?.orig?(t.tl.in.content.orig.x??"50%")+" "+(t.tl.in.content.orig.y??"50%")+" "+(_tpt.unitize(t.tl.in.content.orig.z)??"50%"):void 0,loop:k&&(t.tl?.in?.loop?.orig?(t.tl.in.loop.orig.x??"50%")+" "+(t.tl.in.loop.orig.y??"50%")+" "+(_tpt.unitize(t.tl.in.loop.orig.z)??"50%"):void 0)},y[m].mod=SR7.F.modify.prepare(t.mod,e),y[m].mod&&(p.c.mod??={},p.c.mod[s]??=[],p.c.mod[s].push(m),w=w||(t.mod?.mask??!1)),(void 0!==t.tr&&(void 0!==t.tr.rX&&0!==parseInt(t.tr.rX)||void 0!==t.tr.rY&&0!==parseInt(t.tr.rY)||void 0!==t.tr.rZ&&0!==parseInt(t.tr.rZ)||void 0!==t.tr.o&&1!==t.tr.o)||w||x)&&(F=y[m].mask=l.add({tag:"sr7-mask",class:t.attr.wrapClass??"",id:t.attr.wrapId??""}),w&&!y[m].maskForFx?y[m].oflow="hidden":x&&(y[m].oflow="visible"),w=!0,h&&(y[m].fxc=l.add({tag:"sr7-fxc"}),y[m].mask.append(y[m].fxc))),"true"==String(v.dataset.needColorBg)&&F.appendChild(y[m].colbg=l.add({tag:"sr7-col-bg",class:"sr7-img-col-bg"})),k&&(_=y[m].loop=l.add({tag:"sr7-loop"})),"container"==t.type?b=k||w||SR7.F.checkMargin(t.m):"text"==t.type&&!1!==(t.tog?.u??!1)&&(y[m].listeners.toggle=!0,y[m].tog={state:!1,toggled:t.tog.i?t.content.text:_tpt.lineBreaks(t.tog.t,SR7.gV({v:t.ws,id:e}))},t.tog.i&&(v.innerHTML=_tpt.lineBreaks(t.tog.t,SR7.gV({v:t.ws,id:e}))));const C=y[m].addonWrap=y[m].addOns?.wrap?.use?l.add({tag:"sr7-ao",class:y[m].addOns.wrap.class}):void 0,L=y[m].addonInnerWrap=y[m].addOns?.innerWrap?.use?l.add({tag:"sr7-ao-in",class:y[m].addOns.innerWrap.class}):void 0;let E=(t?.mod?.s?.u||t?.mod?.m?.u)&&!t.mod.mask;if(E&&(M=y[m].parallax=l.add({tag:"sr7-px"})),"row"==t.subtype&&("slide"!==t.rTo||E||k||w||b)||"column"==t.subtype&&(E||k||w||b)){const e=y[m].con=l.add({tag:"sr7-"+("row"==t.subtype?"row":"col")+"-con"}),s=y[m].el;s.appendChild(C||(L||(E?M:k?_:w?F:e))),C&&C.appendChild(L||(E?M:k?_:w?F:e)),L&&L.appendChild(E?M:k?_:w?F:e),E&&M.appendChild(k?_:w?F:e),k&&_.appendChild(w?F:e),w&&F.appendChild(e),"column"==t.subtype&&(y[m].colbg=l.add({tag:"sr7-col-bg"}),w?(y[m].colbgMask=l.add({tag:"sr7-col-bg-mask"}),y[m].colbgMask.appendChild(y[m].colbg),E?M.appendChild(y[m].colbgMask):s.appendChild(y[m].colbgMask)):E?M.appendChild(y[m].colbg):s.appendChild(y[m].colbg))}else(C||E||k||w)&&(v.parentNode.insertBefore(C||(L||(E?M:k?_:F)),v),C&&C.appendChild(L||(E?M:k?_:w?F:v)),L&&L.appendChild(E?M:k?_:w?F:v),E&&M.appendChild(k?_:w?F:v),k&&_.appendChild(w?F:v),w&&F.appendChild(v));void 0!==S&&"SR7"!==S.slice(0,3)&&(v.dataset.type=t.type,void 0!==t.subtype&&""!==t.subtype&&(v.dataset.subtype=t.subtype));var O=SR7.F.drawRawLayer(m,"prepare",s,r);if(O.length>0)for(let e in O)_tpt.hop(O,e)&&void 0!==O[e]&&a.push(O[e]);return"zone"==t.subtype?(p.zones[s].zones??={},p.zones[s].zones[m]=0):"slidebg"==t.subtype&&p.settings.mod?.d3&&(c={el:y[m].parallax?y[m].parallax:y[m].loop?y[m].loop:y[m].mask?y[m].mask:y[m].el,use:t.mod?.m?.u??!1}),p.settings.mod?.d3&&t.mod?.m?.aBG&&(p.c.d3tobg??={},p.c.d3tobg[s]??=[],p.c.d3tobg[s].push(y[m])),"none"!==(t.mF??"none")&&(a.push(_tpt.checkResources(["cssfilters"])),v.classList.add(t.mF)),"none"==t.pE&&M&&(M.style.pointerEvents="none"),"none"==t.pE&&_&&(_.style.pointerEvents="none"),{globalLowLayers:d,buildLayers:l,promises:a,d3tobg:c}},SR7.F.prepareLayers=async(e,t,s)=>{const i=SR7.M[e],a=i.slides[t];if(i?.layersPrepared?.[t])return;let r,o=[],{layers:l}=a,n=_tpt.collector(),d=SR7.F.setLayerProcOrder(e,t);i.hasTouchSwipe??="carousel"==i.settings.type||_tpt.is_mobile||"off"!==String(i.settings.nav?.s?.use)&&"false"!==String(i.settings.nav?.s?.use)&&i.settings.nav?.s?.desk,i.c.layers??={},SR7.lToK??={},i.c.slideBGs??={};let c=i.c.layers,p=[];i.zoneIndexes??={};for(let i in d){if(!_tpt.hop(d,i)||null==l[d[i]])continue;({globalLowLayers:p,buildLayers:n,promises:o,d3tobg:r}=await SR7.F.prepareLayer(e,l[d[i]],t,d[i],o,s,a,n,"",p,r));const h=l[d[i]].id;if("-1"===String(l[h].pid))continue;const u=c[SR7.F.getLKey(e,t,h)],m=c[SR7.F.getLKey(e,t,l[h].pid)];m[null==m.con?"el":"con"].appendChild("column"==l[h].subtype||"row"==l[h].subtype?u.el:u.addonWrap?u.addonWrap:u.parallax?u.parallax:u.loop?u.loop:u.mask?u.mask:u.el),u.ptype=m.subtype}if(i.settings.mod?.d3){if(i.c.d3??={},i.c.d3[t]??={},i.c.d3[t].layers=_tpt.addContainer({tag:"sr7-3dwrap",class:"sr7-3dwrap-layers"}),n.append(i.c.d3[t].layers),r){let e=_tpt.addContainer({tag:"sr7-3dwrap",class:"sr7-3dwrap-bg"+(r.use?"":"-no-3d")});if(e.appendChild(r.el),i.c.d3tobg?.[t]?.length>0)for(let s of i.c.d3tobg[t])e.appendChild(s.addonWrap?s.addonWrap:s.addonInnerWrap?s.addonInnerWrap:s.parallax?s.parallax:s.loop?s.loop:s.mask?s.mask:s.con?s.con:s.el);n.append(e),r.use&&(i.c.d3[t].bg=e),i.c.slides[t].appendChild(e)}i.c.slides[t].appendChild(i.c.d3[t].layers)}else n.append(i.c.slides[t]);for(let s in d){if(!_tpt.hop(d,s))continue;const i=l[d[s]],a=SR7.F.attrId(i.attr?.id)??e+"-"+t+"-"+i.id;for(let s in i.addOns)_tpt.hop(i.addOns,s)&&SR7.A?.[s]?.postProcessLayer&&SR7.A[s].postProcessLayer(e,i,c[a],t)}if(i.layersPrepared??={},i.layersPrepared[t]=!0,a.slide.global)for(const e of p)i.c.slides[t+"_2"].appendChild("column"==c[e].subtype||"row"==c[e].subtype?c[e].el:c[e].addonWrap?c[e].addonWrap:c[e].parallax?c[e].parallax:c[e].loop?c[e].loop:c[e].mask?c[e].mask:c[e].el);return _tpt.injectCssJs("",void 0,void 0,e+"_"+t+"_layerstyles"),_tpt.R.fonts&&!SR7.M[e].c.waitingOnFont&&(_tpt.waitFonts(_tpt.R.fonts.required,(function(){SR7.F.updateModuleDims(e,!0,!0)}),e),SR7.M[e].c.waitingOnFont=!0),Promise.all(o)},SR7.F.getSlideBGSource=(e,t)=>{const{bg:s}=SR7.M[e].slides[t].layers[SR7.M[e].c.slideBGs[t].lkey];return s?.image?.src??s?.video?.poster?.src??void 0},SR7.F.setLayerProcOrder=(e,t)=>{if(void 0===t||-1===t)return;const s=SR7.M[e];s.c.PO??={};const i=s.slides[t],{layers:a}=i,r=s.c.PO[t]??=[],o={};Object.keys(a).forEach((e=>{const t=a[e],s=String(t.pid);o[s]||(o[s]=[]),o[s].push(t)}));const l=e=>{const t=o[e]??[];t.sort(((e,t)=>(void 0!==e.order?e.order:e.zIndex)-(void 0!==t.order?t.order:t.zIndex)));for(const e of t)if(r.push(e.id),"container"===e.type&&o[e.id]){o[e.id].sort(((e,t)=>{if("relative"===e.pos.pos&&"relative"!==t.pos.pos)return-1;if("relative"!==e.pos.pos&&"relative"===t.pos.pos)return 1;return(void 0!==e.order?e.order:e.zIndex)-(void 0!==t.order?t.order:t.zIndex)})),l(e.id)}};return l("-1"),r},SR7.F.layerListener=(e,t,s,i,a,r)=>{if(void 0!==s&&!1!==s){let s;for(let o of t)s=_tpt.tEvt(o),e.listeners[s]??=_tpt.event.listen(e.el,s,SR7.F.layerMouse,e,r),a&&(e.listeners.callbacks??={},e.listeners.callbacks[s]??={},e.listeners.callbacks[s][i]=a)}else{let s;for(let i of t)s=_tpt.tEvt(i),_tpt.event.rm(e.el,e.listeners[s]),delete e.listeners[s]}return _tpt.event.hasListener(e.el)},SR7.F.manageLayerListeners=(e,t,s,i,a,r)=>{e.listeners.hover&&(e.listeners.hasAny=SR7.F.layerListener(e,_tpt.is_mobile?["touchstart","touchend","touchmove"]:["mousemove","mouseleave","mouseenter"],s)),e.listeners.toggle&&(e.listeners.hasAny=SR7.F.layerListener(e,["click"],s)),void 0!==t&&void 0!==e.listeners.action&&!1!==e.listeners.action&&(e.listeners.hasAny=SR7.F.layerListener(e,_tpt.tEvt(t.listen),s)),void 0!==i&&!1!==e.listeners[i]&&(e.listeners.hasAny=SR7.F.layerListener(e,a,s,i,r)),void 0===e.media||"slidebg"===e.subtype||t?.content?.noInteract||t.bg?.video?.noInteract||(e.media.player.options.controls??"").includes("s")&&!e.media.player.options.canHide||(e.listeners.hasAny=SR7.F.layerListener(e,["click"],s))},SR7.F.layerMouse=(e,t)=>{let s=_tpt.tEvt(e.type);if("mouseenter"==s||"touchstart"==s||"mousemove"==s||"touchmove"==s?t.listeners.hover&&SR7.F.processHover(SR7.F.getLayer(t.el.id),"hover"):"mouseleave"==s||"touchend"==s?t.listeners.hover&&SR7.F.processHover(SR7.F.getLayer(t.el.id),"idle"):"click"==s&&(t.listeners.toggle&&SR7.F.toggleLayer(SR7.F.getLayer(t.el.id)),void 0===t.media||(t.media.player.options.controls??"").includes("s")&&!t.media.isHidden()||t.media.toggle()),"touchend"===s){let t=e.touches[0]||e.changedTouches[0];e.target!==document.elementFromPoint(t.clientX,t.clientY)&&(s="mouseleave")}if(t.listeners.action&&t.listeners.action.indexOf(s)>=0&&SR7.F.processActions(s,t),t.listeners.callbacks?.[s])for(let i in t.listeners.callbacks[s])_tpt.hop(t.listeners.callbacks[s],i)&&t.listeners.callbacks[s][i](t.mid,e,t)},SR7.F.processActions=(e,t)=>{const{id:s,skey:i}=SR7.F.getLayer(t.el.id),a=String(t.lkey);let r=_tpt.tEvt(e);const o=_tpt.tEvt("mouseleave"==r||"touchend"==r?"mouseenter":"mouseenter"==r||"touchstart"==r?"mouseleave":"click");if(t.delayedAction??={},null!=SR7.M[s].slides[i].slide.actions){if(t.listeners.aCache[r]??=SR7.M[s].slides[i].slide.actions.filter((e=>e.src.some((e=>String(e)===a))&&_tpt.tEvt(e.evt)==r)),t.delayedAction[o])for(let e of t.delayedAction[o])void 0!==e&&void 0!==e.kill&&e.kill();t.delayedAction[o]=[],t.delayedAction[r]=[];for(let e in t.listeners.aCache[r])if(_tpt.hop(t.listeners.aCache[r],e)){let a=t.listeners.aCache[r][e];if(!SR7.F.shouldUpdate(t,a.rd,a.a))continue;if(!t.animState?.stageState)continue;a.a.includes("mute")&&_tpt.isIOS?SR7.F.actionCall(s,i,a,t.el):t.delayedAction[r].push(_tpt.gsap.delayedCall(parseInt(a.d??0)/1e3,SR7.F.actionCall,[s,i,a,t.el]))}}},SR7.F.updateAllTogglePrgLayers=e=>{requestAnimationFrame((function(){let t=SR7.M[e];for(let s in t.slides)if(_tpt.hop(t.slides,s)&&null!=(t.slides?.[s]?.slide?.actions??void 0)&&0!=t.slides[s].slide.actions.length)for(let i of t.slides[s].slide.actions)if("togglePrg"==i.a)for(let a of i.src){let i=SR7.F.getLayer({skey:s,lkey:a,id:e});i.c&&i.layer&&SR7.F.toggleLayer(i,"paused"==(t.slideShow?.state??"playing"))}}))},SR7.F.actionCall=(id,skey,action,el)=>{const M=SR7.M[id];switch(M.states.actions??={},M.states.debounceTimers??=new Map,action.a){case"playScene":if(null==action.target)return;for(let e of action.target){let[t,s]=String(e).includes(":")?String(e).split(":"):[skey,e];M.states.debounceTimers.has(t+"_"+s)&&clearTimeout(M.states.debounceTimers.get(t+"_"+s)),M.states.debounceTimers.set(t+"_"+s,setTimeout((()=>{SR7.F.animateLayers({id:id,skey:t,layers:[s],scene:action.sc,reset:action.rec,caller:"action"}),M.states.debounceTimers.delete(t+"_"+s)}),19))}break;case"toggleScenes":if(action.target)for(let e of action.target){let[t,s]=String(e).includes(":")?String(e).split(":"):[skey,e];M.states.debounceTimers.has(t+"_"+s)&&clearTimeout(M.states.debounceTimers.get(t+"_"+s)),M.states.debounceTimers.set(t+"_"+s,setTimeout((()=>{M.states.actions[skey]??={},SR7.F.shouldUpdate(M.states.actions[skey],31,s)&&SR7.F.animateLayers({id:id,skey:t,layers:[s],scene:(M.c.layers[SR7.lToK[id+"-"+t+"-"+s]]?.animState?.scene??"")==action.scn?action.scm:action.scn,reset:action.rec,caller:"action"}),M.states.debounceTimers.delete(t+"_"+s)}),19))}break;case"callSlide":SR7.F.requestSlide({id:id,slide:"first"==action.target?"#"+M.navSlideOrder[0]:"last"==action.target?"#"+M.navSlideOrder[M.len-1]:"random"==action.target?Math.round(Math.random()*M.navLen+1):"#"+(Array.isArray(action.target)?action.target[0]:action.target)});break;case"pause":SR7.slideShow.pause(id);break;case"resume":SR7.slideShow.resume(id);break;case"togglePrg":SR7.slideShow["paused"==(M.slideShow?.state??"nothing")?"resume":"pause"](id);break;case"prev":SR7.F.requestSlide({id:id,slide:"-1"});break;case"next":SR7.F.requestSlide({id:id,slide:"+1"});break;case"toggleClass":for(let e of action.target){let t=M.c.layers[SR7.lToK[id+"-"+skey+"-"+e]].el;t.classList[t.className.includes(action.class)?"remove":"add"](action.class)}break;case"simulate":if(SR7.M[id].c?.swipeAble&&SR7.M[id].c.swipeAble.length)for(let e of SR7.M[id].c.swipeAble)e.disable();for(let e of action.target)M.c.layers[SR7.lToK[id+"-"+skey+"-"+e]??SR7.lToK[id+"-"+e]].el.dispatchEvent(new Event(action.typ,{bubbles:!0}));if(SR7.M[id].c?.swipeAble&&SR7.M[id].c.swipeAble.length)for(let e of SR7.M[id].c.swipeAble)e.enable();break;case"menu":case"link":("a"!==action.ltype||""!==action.anchor&&void 0!==action.anchor)&&openUrlOrScroll(action,id);break;case"callback":eval(action.target);break;case"scroll":SR7.F.scrollToId({id:id,offset:action.offset,action:action.a,anchor:action.target,speed:action.s??1e3,ease:action.e});break;case"scrollbelow":SR7.F.scrollToId({id:id,offset:action.offset,action:action.a,speed:action.s??1e3,ease:action.e});break;case"getAccelerationPermission":_tpt.getAccelerationPermission(id);break;case"open_modal":String(action.msl).includes("rs-")&&SR7?.D?.fixSR6IDs&&(action.msl="#"+SR7.D.fixSR6IDs(action.msl.replace("rs-",""))),SR7.F.modal.open(action.target,action.msl??0);break;case"close_modal":SR7.F.modal.close();break;case"mute_video":case"unmute_video":case"toggle_mute_video":for(let e of action.target){let[t,s]=String(e).includes(":")?String(e).split(":"):[skey,e];if("backgroundvideo"==s&&(s=SR7.F.getSlideBG(id,t).id),M.c.layers[SR7.lToK[id+"-"+t+"-"+s]].media){let e=M.c.layers[SR7.lToK[id+"-"+t+"-"+s]].media,i="audio"==e?.player?.options?.type,a="mute_video"==action.a?"mute":"unmute_video"==action.a||(null==e.player.muted?e.player.player.muted:e.player.muted)||i&&e.player.player.paused?"unmute":"mute";i&&"unmute"==a&&e.play(),e[a]()}}break;case"toggle_global_mute_video":M.states.globalMute=M.states.globalMute&&"unmute"!=M.states.globalMute?"unmute":"mute",Object.values(M.c.layers).filter((e=>e.media)).forEach((e=>{const t=e.media;t.isPlaying()?t[M.states.globalMute]():t.player.options.mute="mute"==M.states.globalMute}));break;case"toggle_video":case"stop_video":case"start_video":for(let e of action.target){let[t,s]=String(e).includes(":")?String(e).split(":"):[skey,e];if("backgroundvideo"==s&&(s=SR7.F.getSlideBG(id,t).id),M.c.layers[SR7.lToK[id+"-"+t+"-"+s]].media){let e=M.c.layers[SR7.lToK[id+"-"+t+"-"+s]].media.player.lastPlayerState;e="start_video"==action.a?"play":"stop_video"==action.a||1==e?"pause":"play",M.c.layers[SR7.lToK[id+"-"+t+"-"+s]].media[e]()}}break;case"exitfullscreen":case"togglefullscreen":case"gofullscreen":SR7.F.module.fullScreen(id,"gofullscreen"==action.a||"togglefullscreen"==action.a&&!M.states.inFullscreen);break;default:for(let e of action.target){e=""+e;let[t,s]=String(e).includes(":")?String(e).split(":"):[skey,e];_tpt.event.trigger("dom","sr.layer.action",{id:id,action:action,scene:action.sc,skey:t,lkey:s,eventtype:action.a})}}},SR7.F.shouldUpdate=(e,t=0,s)=>{if(!t||0==t)return!0;t=parseInt(t),e.timeStamps??={};const i=(new Date).getTime(),a=e.timeStamps[s]?i-e.timeStamps[s]:t+100;return a>t&&(e.timeStamps[s]=i),a>t},SR7.F.toggleLayer=(e,t)=>{let{c:s,skey:i}=e;null!=s.tog&&(s.tog.default??=s.el.innerHTML,s.el.innerHTML=!0===t?s.tog.default:!1===t?s.tog.toggled:s.tog.state?s.tog.default:s.tog.toggled,s.tog.state=1==t||!1!==t&&!s.tog.state,SR7.F.positionLayer(e,i))},SR7.F.showHideLayersOnHover=(e,t)=>{let s="hide"==t||"mouseleave"==t.type?"add":"remove";SR7.M[e].c.viSH.el.forEach((t=>{SR7.M[e].c.layers[SR7.lToK[t]].el.classList[s]("sr7--hidden")}))},_tpt.R??={},_tpt.R.layer=_tpt.extend?_tpt.extend(_tpt.R.layer,{status:2,version:"1.0"}):{status:2,version:"1.0"})}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},!SR7.loadVideoAPI){SR7.loadVideoAPI=e=>new Promise(((t,s)=>{if("html5"===e||"audio"===e)return void t();const i={youtube:{globalObjectName:"YT",playerObjectName:"Player",scriptSrc:"https://www.youtube.com/iframe_api"},vimeo:{globalObjectName:"Vimeo",playerObjectName:"Player",scriptSrc:"https://player.vimeo.com/api/player.js"}}[e];if(!i)return void s(new Error('Invalid API name. Please use "youtube" or "vimeo"'));const a=()=>window[i.globalObjectName]&&window[i.globalObjectName][i.playerObjectName],r=Array.from(document.getElementsByTagName("script")).find((e=>e.src===i.scriptSrc));if(a())t();else{if(r){const e=setInterval((()=>{a()&&(t(),clearInterval(e))}),50);return}{const r=document.createElement("script");r.src=i.scriptSrc,r.onload=()=>{const e=setInterval((()=>{a()&&(t(),clearInterval(e))}),50)},r.onerror=()=>s(new Error(`Failed to load ${e} API`)),document.head.appendChild(r)}}}));class e{states={unstarted:-1,ended:0,playing:1,paused:2,buffering:3,cued:4};constructor(e,t,s){let{id:i,skey:a,lkey:r}=SR7.F.getLayer(t.id);this.el=t,this.id=i,this.skey=a,this.container=e,this.containerId=e.id,this.options=s,this.player=null,this.aspectRatio=_tpt.getRatio(this.options.ratio),this.options.loop=s.loop||!1,this.options.start=parseInt(this.convertSec(s.start)),this.options.end=parseInt(this.convertSec(s.end)),this.state=null,this.type=s.type,this.requestedAction=null,this.listeners={},this.options.canHide=!_tpt.is_mobile&&1==(this.options.poster?.showOnPause??void 0)||_tpt.is_mobile&&!0!==(this.options.poster?.noOnMobile??!1)&&1==(this.options.poster?.showOnPause??void 0)}convertSec(e){return""==e?0:null==e?-1:_tpt.isNumeric(e)?e:e.split(":").length>1?60*parseInt(e.split(":")[0],0)+parseInt(e.split(":")[1],0):e}async waitForContainer(e){let t=0;return new Promise(((s,i)=>{let a=document.getElementById(e);if(a)return void s(a);const r=setInterval((()=>{let a=document.getElementById(e);a?(clearInterval(r),s(a)):t>=100&&(clearInterval(r),i(new Error("Container element not found within the timeout period."))),t+=19}),19)}))}showHide(){if(null==this.lastPlayerState)this.options.canHide&&_tpt.gsap.set(this.container,{opacity:0,pointerEvents:"none"}),this.hidden=!0;else if(this.lastPlayerState==this.states.playing){if(this.pauseBy=null,this.container.style.opacity<1){let e=(new Date).getTime()-(this.frameStart??0);_tpt.gsap.to(this.container,e<500?0:.5,{opacity:1,pointerEvents:(this.options.controls??"").includes("s")?"auto":"none"}),this.hidden=!1}}else this.lastPlayerState!=this.states.paused&&this.lastPlayerState!=this.states.ended||this.options.canHide&&"scroll"!==this.pauseBy&&(_tpt.gsap.to(this.container,.5,{opacity:0,pointerEvents:"none"}),this.hidden=!0);"none"==this.options.controls&&this.canvas&&(this.canvas.wrap.style.pointerEvents="none")}isHidden(){return this.hidden}isPlaying(){return this.lastPlayerState==this.states.playing}toggle(){this.player&&(this.lastPlayerState==this.states.playing?this.pause():this.play())}hasEvent(e){return this.listeners[e]}removeEvent(e){this.listeners[e]&&delete this.listeners[e]}playingList(e,t){null!=t&&(SR7.M[t.id].videosPlaying??={},"add"===e?SR7.M[t.id].videosPlaying[t.containerId]=t:"remove"==e&&delete SR7.M[t.id].videosPlaying[t.containerId])}stopPlayingMedias(){if(null!=SR7.M[this.id].videosPlaying)for(let e in SR7.M[this.id].videosPlaying)_tpt.hop(SR7.M[this.id].videosPlaying,e)&&e!==this.containerId&&SR7.M[this.id].videosPlaying[e].pause()}dispatch(e,t){if(!this.listeners)return;const s=this.listeners[e];s&&s.callback(t,s.params)}async ensureReadyAndExecute(e,t,s){this.requestedAction=t;let i=this.requestedAction;this.playerReady?this.readyEventWaitAdded&&this.removeEvent("ready"):await new Promise((e=>{this.readyEventWaitAdded=!0,this.readyListenerID=this.addEvent("ready",e)})),i===this.requestedAction&&e.call(this,s)}}class t extends e{async add(){await SR7.loadVideoAPI("youtube");try{await this.waitForContainer(this.containerId)}catch(e){return void console.error(e)}this.player=new YT.Player(this.containerId,{host:SR7.E.ytnc?"https://www.youtube-nocookie.com":"https://www.youtube.com",height:_tpt.unitize(this.options.height,"px"),width:_tpt.unitize(this.options.width,"px"),videoId:this.options.src,playerVars:{origin:window.location.origin,playsinline:this.options.inline,enablejsapi:1,controls:(this.options.controls??"").includes("s")?1:0,showinfo:0,modestbranding:1,wmode:"opaque",muted:this.options.mute,html5:1,start:this.options.start,end:this.options.end,loop:this.options.loop?1:0,rel:0},events:{onReady:e=>{this.playerReady=!0,this.player.setVolume(this.options.volume),this.updateSize(this.options.width,this.options.height),this.dispatch("ready",e)}}}),this.addEvent(),this.container=document.getElementById(this.containerId),this.container.style.borderRadius=this.container.parentElement.style?.borderRadius,this.muted=this.options.mute,this.showHide()}rewind(e){this.player&&this.player.seekTo&&(this.player.seekTo(this.options.start,!0),"pause"!=this.requestedAction&&"pause"!=e||this.pause())}remove(){this.player&&(this.player.destroy(),this.player=null)}mute(){this.player&&(this.player.mute(),this.player.muted=this.muted=!0)}unmute(){this.player&&(this.player.unMute(),this.player.muted=this.muted=!1)}async play(){this.player&&await this.ensureReadyAndExecute((async()=>{this.player.playVideo(),await new Promise((e=>setTimeout(e,1e3))),1!==this.player.getPlayerState()&&(this.player.mute(),this.player.playVideo())}),"play")}pause(e){this.player&&(this.pauseBy=e,this.ensureReadyAndExecute((()=>{this.player.pauseVideo()}),"pause"))}updateSize(e,t){this.options.cover?(this.aspectRatio<=this.el.clientWidth/this.el.clientHeight?(t=(e=this.el.clientWidth)/this.aspectRatio)<this.el.clientHeight&&(t=this.el.clientHeight):(e=(t=this.el.clientHeight)*this.aspectRatio)<this.el.clientWidth&&(e=this.el.clientWidth),void 0!==e&&0!==e&&e!==this.container.width&&(this.container.style.width=this.container.width=_tpt.unitize(e,"px")),void 0!==t&&0!==t&&t!==this.container.height&&(this.container.style.height=this.container.height=_tpt.unitize(t,"px")),t>this.el.clientHeight?this.container.style.transform="translateX(0px) translateY("+_tpt.unitize((this.el.clientHeight-t)/2,"px")+")":e>this.el.clientWidth?(this.container.style.transform="translateY(0px) translateX("+_tpt.unitize((this.el.clientWidth-e)/2,"px")+")",this.container.style.maxWidth="none"):this.container.style.transform="translateY(0px) translateX(0px)"):(void 0!==e&&0!==e&&e!==this.container.width&&(this.container.width=_tpt.unitize(e,"px")),void 0!==t&&0!==t&&t!==this.container.height&&(this.container.height=_tpt.unitize(t,"px")))}addEvent(e,t,s){let i;return this.stateChangeListenerAdded||(this.lastPlayerState=null,this.player.addEventListener("onError",(e=>{console.group("SR7 YT Embeding Issue"),console.log(e),console.groupEnd("SR7 YT Embeding Issue")})),i=this.player.addEventListener("onStateChange",(e=>{switch(0!==this.options.end&&this.player.getCurrentTime()>=this.options.end?e.data=this.states.ended:0!==this.options.start&&e.data==this.states.playing&&this.player.getCurrentTime()<this.options.start&&this.rewind(),"false"!==this.options.autoPlay&&!1!==this.options.autoPlay&&"no1sttime"!==this.options.autoPlay&&!this.muteFallBack&&"play"==this.requestedAction&&this.playerReady&&this.lastPlayerState===this.states.unstarted&&e.data!==this.states.playing?(this.player.mute(),this.player.playVideo(),this.muteFallBack=!0,this.requestedAction="play"):e.data===this.states.ended&&(this.options.loop?(this.rewind(),this.player.playVideo(),this.requestedAction="play"):(this.options.rewind&&this.rewind(),this.player.pauseVideo(),this.requestedAction="pause")),this.muted&&this.player.mute(),e.data){case this.states.paused:this.playingList("remove",this),this.dispatch("paused",e),this.state="paused",SR7.F.triggerMediaEvent(this,"update");break;case this.states.playing:this.playingList("add",this),this.dispatch("playing",e),this.state="playing",SR7.F.triggerMediaEvent(this,"update");break;case this.states.ended:this.playingList("remove",this),-1!==this.lastPlayerState?(this.dispatch("finished",e),this.state="ended"):this.state="paused",SR7.F.triggerMediaEvent(this,"update")}this.lastPlayerState=e.data,this.showHide()})),this.stateChangeListenerAdded=!0),void 0!==e&&(this.listeners[e]={callback:t,params:s}),i}}class s extends e{async add(){await SR7.loadVideoAPI("vimeo"),this.options.args=this.options.args??"";try{await this.waitForContainer(this.containerId)}catch(e){return void console.error(e)}let e={height:_tpt.unitize(this.options.height,"px"),width:_tpt.unitize(this.options.width,"px"),id:this.options.src,controls:!!(this.options.controls??"").includes("s"),autoplay:this.options.autoPlay,loop:this.options.loop,muted:this.options.mute,playsinline:this.options.inline,responsive:!1,title:!(!this.options.args.includes("title=true")&&!this.options.args.includes("title=1"))||!this.options.args.includes("title=false")&&!this.options.args.includes("title=0")&&void 0};(this.options.args.includes("transparent=false")||this.options.args.includes("transparent=0"))&&(e.transparent=!1),(this.options.args.includes("transcript=false")||this.options.args.includes("transcript=0"))&&(e.transcript=!1);let t=this.options.args.includes("quality=144p")?"144p":this.options.args.includes("quality=240p")?"240p":this.options.args.includes("quality=360p")?"360p":this.options.args.includes("quality=540p")?"540p":this.options.args.includes("quality=720p")?"720p":this.options.args.includes("quality=1080p")?"1080p":this.options.args.includes("quality=2k")?"2k":this.options.args.includes("quality=4k")?"4k":void 0,s=!(!this.options.args.includes("portrait=true")&&!this.options.args.includes("portrait=1"))||!this.options.args.includes("portrait=false")&&!this.options.args.includes("portrait=0")&&void 0,i=!(!this.options.args.includes("dnt=true")&&!this.options.args.includes("dnt=1"))||!this.options.args.includes("dnt=false")&&!this.options.args.includes("dnt=0")&&void 0;t&&(e.quality=t),s&&(e.portrait=s),i&&(e.dnt=i),e.pip=!(!this.options.args.includes("pip=true")&&!this.options.args.includes("pip=1")),this.player=new Vimeo.Player(this.containerId,e),this.pauseRequested=!1,this.player.setCurrentTime(this.options.start),this.player.ready().then((()=>{this.iframe=this.container.getElementsByTagName("IFRAME"),null!==this.iframe&&(this.iframe=this.iframe[0]),this.playerReady=!0,this.updateSize(this.options.width,this.options.height),this.iframe.style.opacity=1,this.iframe.style.borderRadius=this.iframe.parentElement.parentElement.style?.borderRadius,this.options.mute&&this.player.setVolume(0),this.dispatch("ready")})),this.muted=this.options.mute,this.addEvent(),this.showHide(),this.rewind("pause"),this.muteFallBack=!1}rewind(e){this.player&&(this.player.setCurrentTime(this.options.start),"pause"==e&&this.pause())}remove(){this.player&&this.player.unload().then((()=>{this.player=null}))}mute(){if(!this.player)return;let e=this,t=this.player;this.player.getVolume().then((function(s){e.player.muted=!0,e.lastVolume=0==s?1:s,t.setVolume(0),e.muted=!0})).catch((function(e){console.error("Error getting volume:",e)}))}unmute(){if(!this.player)return;let e=this;e.lastVolume=null==e.lastVolume||0==e.lastVolume?1:e.lastVolume,this.player.setVolume(e.lastVolume).catch((function(e){console.error("Error setting volume:",e)})),e.muted=!1,e.player.muted=!1}updateSize(e,t){this.player&&this.playerReady&&(this.options.cover?(this.aspectRatio<=this.el.clientWidth/this.el.clientHeight?t=(e=this.container.clientWidth)/this.aspectRatio:e=(t=this.container.clientHeight)*this.aspectRatio,void 0!==e&&0!==e&&e!==this.iframe.width&&(this.iframe.style.width=this.iframe.width=_tpt.unitize(e,"px")),void 0!==t&&0!==t&&t!==this.iframe.height&&(this.iframe.style.height=this.iframe.height=_tpt.unitize(t,"px")),t>this.container.clientHeight?this.iframe.style.transform="translateX(0px) translateY("+_tpt.unitize((this.container.clientHeight-t)/2,"px")+")":e>this.container.clientWidth&&(this.iframe.style.transform="translateY(0px) translateX("+_tpt.unitize((this.container.clientWidth-e)/2,"px")+")")):(void 0!==e&&0!==e&&e!==this.iframe.width&&(this.iframe.width=_tpt.unitize(e,"px")),void 0!==t&&0!==t&&t!==this.iframe.height&&(this.iframe.height=_tpt.unitize(t,"px"))))}async play(){this.player&&(this.pauseRequested=!1,this.ensureReadyAndExecute((async()=>{try{if(!_tpt.userInteracted&&this.options.autoPlay&&this.player.setVolume(0),await this.player.play(),this.pauseRequested)return void this.pause();this.lastPlayerState=this.states.playing}catch(e){if("NotAllowedError"===e.name)this.muteFallBack=!0,this.player.setVolume(0),"false"!==this.options.autoPlay&&!1!==this.options.autoPlay&&"no1sttime"!==this.options.autoPlay&&this.play();else if("AbortError"===e.name)console.log("Play was interrupted."),this.lastPlayerState=this.states.paused;else{if("PlayInterrupted"!==e.name)throw e;console.log("Play was interrupted by a pause request.")}}}),"play"))}async pause(e){this.pauseRequested=!0,this.player&&(this.pauseBy=e,this.ensureReadyAndExecute((async()=>{try{if(await this.player.getPaused())return;await this.player.pause(),this.lastPlayerState=this.states.paused}catch(e){if("NotAllowedError"===e.name)this.player.setVolume(0),this.pause();else{if("AbortError"!==e.name)throw e;console.log("Pause was interrupted."),this.lastPlayerState=this.states.paused}}}),"pause"))}addEvent(e,t,s){let i;return this.stateChangeListenerAdded||(this.lastPlayerState=null,this.player.on("play",(()=>{this.lastPlayerState=this.states.playing,this.playingList("add",this),this.dispatch("playing"),this.showHide(),this.state="playing",SR7.F.triggerMediaEvent(this,"update")})),this.player.on("pause",(()=>{this.lastPlayerState=this.states.paused,this.playingList("remove",this),this.dispatch("paused"),this.showHide(),this.state="paused",SR7.F.triggerMediaEvent(this,"update")})),this.player.on("ended",(()=>{this.lastPlayerState=this.states.ended,this.playingList("remove",this),this.dispatch("finished"),this.showHide(),this.state="finished",SR7.F.triggerMediaEvent(this,"update")})),i=this.player.on("timeupdate",(e=>{0!==this.options.end&&e.seconds>=this.options.end?this.options.loop?(this.rewind(),this.play()):(this.options.rewind&&this.rewind(),this.pause(),this.dispatch("finished")):0!==this.options.start&&e.seconds<this.options.start&&this.rewind(),this.muted&&!this.isMuted&&(this.player.setVolume(0),this.isMuted=!0),this.dispatch("timeupdate",e),this.lastPlayerState=this.getState(),this.showHide()})),this.stateChangeListenerAdded=!0),void 0!==e&&(this.listeners[e]={callback:t,params:s}),i}}class i extends e{constructor(e,t,s){super(e,t,s),this.player=null}async add(){try{await this.waitForContainer(this.containerId)}catch(e){return void console.error(e)}const e=document.createElement("audio"==this.options.type?"audio":"video");e.setAttribute("id",this.containerId+"_html5"),e.className="sr7-html5-video",e.setAttribute("src",_tpt.urlProtocol(this.options.src)),e.setAttribute("preload","metadata"),e.setAttribute("playsInline","metadata"),(this.options.controls??"").includes("s")&&e.setAttribute("controls",""),"audio"==this.options.type&&void 0!==this.options.controls&&(this.options.controls=this.options.controls.replace("xl","")),("audio"==this.options.type&&""==this.options.controls||null==this.options.controls)&&this.el.classList.add("sr7-hidden-audio"),1==this.options.mute&&e.setAttribute("muted",""),1==this.options.loop&&e.setAttribute("loop",""),this.container.appendChild(e),this.player=e,this.container.style.width="100%",this.player.style.width="100%",this.container.style.height="auto"==this.options.target.style.height?"auto":"100%",this.player.style.height="auto"==this.options.target.style.height?"auto":"100%",this.player.style.borderRadius=this.container.parentElement.style?.borderRadius,this.playerReady=!0,this.options.volume=this.options.volume??1,this.options.volume=this.options.volume>1?this.options.volume/100:this.options.volume,this.player.volume=this.options.volume,this.dispatch("ready"),this.addEvent(),this.showHide(),this.updateSize(this.options.width,this.options.height,this.options.cover??1?"cover":"contain"),this.rewind("pause"),this.largeControls()}rewind(e){this.player&&(this.player.currentTime=this.options.start,"pause"!=this.requestedAction&&"pause"!=e||this.pause())}drawCanvas(){!0===this.toCanvas&&null!=this.canvas&&(this.canvas.image&&this.canvas.drawImg(this.player),requestAnimationFrame(this.drawCanvas.bind(this)))}startCanvas(e){this.hideCanvas&&(this.hideCanvas.kill(),this.hideCanvas=null),this.canvas=e,this.toCanvas=!0,this.drawCanvas(),this.container.style.visibility="hidden"}resumeCanvas(){this.toCanvas=!0,this.drawCanvas()}pauseCanvas(){this.toCanvas=!1}stopCanvas(){this.hideCanvas=_tpt.gsap.fromTo(this.container,.3,{opacity:0,visibility:"hidden"},{opacity:1,visibility:"visible"}),this.hideCanvas.eventCallback("onComplete",(e=>{e.toCanvas=!1,delete e.canvas,this.hideCanvas=null}),[this]),this.container.style.visibility="visible"}largeControls(){if((this.options.controls??"").includes("xl")){if(null==this.lrgbutton){const e=_tpt.collector();this.lrgbutton=e.add({tag:"sr7-lrg-ctrl"}),this.lrgPlay=e.add({tag:"sr7-lrg-play"}),this.lrgPause=e.add({tag:"sr7-lrg-pause"}),this.lrgbutton.appendChild(this.lrgPlay),this.lrgbutton.appendChild(this.lrgPause),this.container.parentNode.appendChild(this.lrgbutton)}this.lastPlayerState==this.states.playing?(this.lrgbutton.classList.remove("playing"),this.lrgbutton.classList.add("paused")):(this.lrgbutton.classList.add("playing"),this.lrgbutton.classList.remove("paused"))}}getState(){return this.player?this.player.ended?this.states.ended:this.player.paused?this.states.paused:this.player.playing?this.states.playing:this.states.unstarted:null}remove(){this.player&&(this.player.pause(),this.player.src="",this.player.load(),this.player=null)}mute(){this.player&&(this.player.muted=!0,this.muted=!0)}unmute(){this.player&&(this.player.muted=!1,0==this.player.volume&&(this.player.volume=1),this.muted=!1)}play(){this.player&&((!_tpt.userInteracted&&this.options.autoPlay||this.options.mute)&&(this.player.muted=!0),this.ensureReadyAndExecute((()=>{this.player.play().catch((e=>{"NotAllowedError"===e.name&&(this.player.muted=!0,this.player.play())}))}),"play"))}pause(e){this.player&&(this.pauseBy=e,this.ensureReadyAndExecute((()=>{this.player.pause()}),"pause"))}updateSize(e,t,s){this.player&&(this.player.arCalculated||void 0===this.player.videoHeight||0===this.player.videoHeight||(this.aspectRatio=this.player.videoWidth/this.player.videoHeight,this.player.arCalculated=!0),"cover"!==s&&"contain"!==s||(this.player.style.objectFit=s),this.el.classList["auto"==this.el?.style?.height?"add":"remove"]("sr7_miah"))}addEvent(e,t,s){this.stateChangeListenerAdded||(this.lastPlayerState=null,this.player.addEventListener("play",(e=>{this.lastPlayerState=this.states.playing,this.playingList("add",this),this.dispatch("playing",e),this.showHide(),this.largeControls(),this.state="playing",SR7.F.triggerMediaEvent(this,"update")})),this.player.addEventListener("pause",(e=>{this.lastPlayerState=this.states.paused,this.playingList("remove",this),this.dispatch("paused",e),this.showHide(),this.largeControls(),this.state="paused",SR7.F.triggerMediaEvent(this,"update")})),this.player.addEventListener("ended",(e=>{this.lastPlayerState=this.states.ended,this.playingList("remove",this),this.dispatch("finished",e),this.showHide(),this.largeControls(),this.state="finished",SR7.F.triggerMediaEvent(this,"update")})),this.player.addEventListener("timeupdate",(e=>{this.player.currentTime>=this.options.end&&0!==this.options.end?this.options.loop?(this.rewind(),this.play()):(this.options.rewind&&this.rewind(),this.pause(),this.dispatch("finished")):this.player.currentTime<this.options.start&&0!==this.options.start&&this.rewind(),this.muted&&(this.player.muted=!0),this.dispatch("timeupdate",e)})),this.stateChangeListenerAdded=!0),void 0!==e&&(this.listeners[e]={callback:t,params:s})}}SR7.videoPlayer=class{constructor(e,a,r){switch("slidebg"==r.subtype&&"html5"!==r.type&&(r.autoPlay=!1,r.poster.showOnPause=!0),r.type){case"youtube":this.player=new t(e,a,r);break;case"vimeo":this.player=new s(e,a,r);break;case"html5":case"audio":this.player=new i(e,a,r);break;default:throw new Error(`Invalid video type. Please use "youtube", "vimeo", or "html5". Received: ${r.type}`)}}add(){return this.player.add()}remove(){this.player.remove()}rewind(){this.player.rewind()}play(){let{c:e}=SR7.F.getLayer(this?.player?.el?.id);this.pauseBy=null,"slidebg"==e?.subtype&&String(SR7.M[e.mid].current.id)!==String(e.skey)||this.player.play()}pause(e){this.pauseBy=e,this.player.pause()}mute(){this.player.mute()}unmute(){this.player.unmute()}updateSize(e,t){this.player.updateSize(e,t)}isPlaying(){return this.player.isPlaying()}isHidden(){return this.player.isHidden()}update(e){return this.remove(),this.player.options=e,this.add()}hasEvent(e){return this.player.hasEvent(e)}addEvent(e,t,s){this.player.addEvent(e,t,s)}isReady(){return this.player.isReady()}toggle(){this.player.toggle()}stopPlayingMedias(){this.player.stopPlayingMedias()}startCanvas(e){this.player.startCanvas&&this.player.startCanvas(e)}stopCanvas(){this.player.stopCanvas&&this.player.stopCanvas()}drawCanvas(){this.player.drawCanvas()&&this.player.drawCanvas()}},_tpt.R??={},_tpt.R.media=_tpt.extend?_tpt.extend(_tpt.R.media,{status:2,version:"1.0"}):{status:2,version:"1.0"}}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},SR7.E??={},void 0!==SR7.F.modify)return;SR7.F.getFXCoverAnim=(e,t,s,i)=>{if("out"==s&&("hidden"==e.el.style.visibility||e.el.className.includes("sr7-fx-hidden")))return;let a=_tpt.gsap.timeline();e.fxitl=_tpt.gsap.timeline(),e.fxotl=_tpt.gsap.timeline();let r=o("in",t.fx,t.fxe,t.fxc),l=o("out",t.fx);return e.fxitl.eventCallback("onStart",(e=>{e.mask.style.overflow="hidden",e.el.classList["in"==s&&i<2?"add":"remove"]("sr7-fx-hidden")}),[e,s,i]),e.fxitl.eventCallback("onComplete",(e=>{e.maskForFx&&(e.mask.style.overflow="visible"),e.el.classList["in"==s&&i<2||"out"==s?"remove":"add"]("sr7-fx-hidden")}),[e,s,i]),e.fxitl.add(_tpt.gsap.fromTo(e.fxc,t.fxs/2e3,r,{scaleX:1,scaleY:1}),0),e.fxotl.add(_tpt.gsap.to(e.fxc,t.fxs/2e3,l),0),a.add(e.fxitl,0),a.add(e.fxotl,t.fxs/2e3),a},SR7.F.pan={getBox:function(e,t,s){let i=e.width/_tpt.dpr,a=e.height/_tpt.dpr,r=a*t,o=i*t;if(null==e.image)return;i/a<e.image.width/e.image.height?o=e.image.width*(r/e.image.height):r=e.image.height*(o/e.image.width);let l={l:(0-("center"==s.x?.5:"left"==s.x?0:"right"==s.x?1:parseInt(s.x)/100||0))*Math.abs(i-o),t:(0-("center"==s.y?.5:"top"==s.y?0:"bottom"==s.y?1:parseInt(s.y)/100||0))*Math.abs(a-r),w:o,h:r};return l.r=l.l+o,l.b=l.t+r,l},getStep:function(e){const{canvas:t,x:s,y:i,scale:a,rotate:r,pos:o}=e,l=SR7.F.pan.getBox(t,a,o);if(null==l)return;const n={rZ:Math.PI/180*r,scale:a,x:parseFloat(s)+l.l,y:parseFloat(i)+l.t,w:l.w,h:l.h},d=l.r-l.l,c=l.b-l.t;return n.x=n.x>0?0:d+n.x<t.width/_tpt.dpr?t.width/_tpt.dpr-d:n.x,n.y=n.y>0?0:c+n.y<t.height/_tpt.dpr?t.height/_tpt.dpr-c:n.y,n},observe:e=>{if(void 0!==SR7.M[e].c.pans.observing)return;let t=document.documentElement.clientHeight,s=document.documentElement.clientWidth;_tpt.resizeObserver.observe((e=>{const i=document.documentElement.clientHeight,a=document.documentElement.clientWidth;(!_tpt.is_mobile||Math.abs(t-i)>30||Math.abs(s-a)>0)&&SR7.F.pan.refresh(e,SR7.M[e].current.id),t=i,s=a}),19,e),SR7.M[e].c.pans.observing=!0},refresh:(e,t)=>{SR7.M[e].c.pans?.[t]&&requestAnimationFrame((function(){for(let s of SR7.M[e].c.pans[t])SR7.F.animateLayers({id:e,skey:t,layers:[s],scene:"in",caller:"update",update:"pan"})}))}},SR7.F.modify={prepare:e=>{if(null!=e&&("false"!=String(e.s?.u??!1)||"false"!=String(e.s?.uf??!1)||"false"!=String(e.m?.u??!1)))return{mx:0,my:0,sx:0,sy:0,srx:0,sry:0,srz:0,ssc:1,sg:0,sb:0,sr:100,sf:100,mask:e.mask,mouse:e?.m??{},scroll:e?.s??{}}},get:(r,o,l,n,d,c,p,h)=>{if(l.modifiers??={},"opacity"==h)l.modifiers.opacity=i(n),"in"==d&&0==c&&(n.mod.animElemOpacity=o,n.el.tf=l.tf);else if("xy"==h)"in"==d&&0==c&&(n.mod.animElemXY=o,o.tx=l.x?.()??0,o.ty=l.y?.()??0,o.tx="inherit"==o.tx?0:o.tx,o.ty="inherit"==o.ty?0:o.ty),l.modifiers.x=e(n,"x"),l.modifiers.y=e(n,"y");else if("filter"==h){n.mod.animElemFilter=o;const{blur:e,grayscale:t,brightness:s}=n.filters.simple.filters;n.filters.simple.used.blur&&(l.tb=e),n.filters.simple.used.grayscale&&(l.tg=t),n.filters.simple.used.brightness&&(l.tr=s),"in"==d&&0==c&&(o.tb=l.tb??0,o.tg=l.tg??0,o.tr=l.tr??100),l.modifiers.filter=a(n.filters.simple,n)}else"transform"==h&&(n.mod.animElemTransform=o,"in"==d&&0==c&&(o.rx=l.rotationX??0,o.ry=l.rotationY??0,o.rz=l.rotationZ??0),l.modifiers.rotationX=t(n,"x"),l.modifiers.rotationY=t(n,"y"),l.modifiers.rotation=t(n,"z"),l.modifiers.scaleX=s(n),l.modifiers.scaleY=s(n));return l},handleListeners:e=>{const t=SR7.M[e];if(!t.settings.mod?.use||null==t.c.mod||_tpt.is_mobile&&t.settings.mod?.dOM)return;let s=!1,i=!1;for(let e in t.c.mod[t.current.id]){if(s&&i)continue;const a=t.c.layers[SR7.lToK[t.c.mod[t.current.id][e]]];s=s||""+(a.mod.mouse?.u??!1)!="false",i=i||""+(a.mod.scroll?.u??!1)!="false"}for(let e in t.staticSlides)if(_tpt.hop(t.staticSlides,e)&&""!=t.staticSlides[e]&&(!s||!i))for(let a in t.c.mod[t.staticSlides[e]]){const r=t.c.layers[SR7.lToK[t.c.mod[t.staticSlides[e]][a]]];s=s||""+(r.mod.mouse?.u??!1)!="false",i=i||""+(r.mod.scroll?.u??!1)!="false"}if(s)SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.modify??={},SR7.M[e].c.moduleListeners.modify.enter??=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchstart":"mouseenter",SR7.F.module.listeners.updateMouseCoordinates),SR7.M[e].c.moduleListeners.modify.coord??=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchmove":"mousemove",SR7.F.module.listeners.updateMouseCoordinates),SR7.M[e].c.moduleListeners.modify.process??=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchmove":"mousemove",(function(e,t){SR7.F.modify.process(e,"mouse",void 0,t)})),_tpt.is_mobile&&(SR7.M[e].c.moduleListeners.modify.processTouch??=SR7.F.module.listeners.reg(e,"touchstart",(function(e,t){SR7.F.modify.process(e,"touch",void 0,t)})));else for(let t of["enter","coord","process","processTouch"])SR7.M[e].c?.moduleListeners?.modify?.[t]&&(SR7.F.module.listeners.del(e,"enter"==t?_tpt.is_mobile?"touchstart":"mouseenter":_tpt.is_mobile?"touchmove":"mousemove",SR7.M[e].c.moduleListeners.modify[t]),delete SR7.M[e].c.moduleListeners.modify[t]);i?(SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.modify??={},SR7.M[e].c.moduleListeners.modify.scroll??=SR7.F.module.listeners.reg(e,"scroll",(function(e,s){"carousel"==t.settings.type?SR7.F.modify.processAll(e,"scroll"):SR7.F.modify.process(e,"scroll")}))):SR7.M[e].c?.moduleListeners?.modify?.scroll&&(SR7.F.module.listeners.del(e,"scroll",SR7.M[e].c.moduleListeners.modify.scroll),delete SR7.M[e].c.moduleListeners.modify.scroll)},processAll:(e,t)=>{for(let s in SR7.M[e].slideOrder)(SR7.M[e].slides[SR7.M[e].slideOrder[s]].slide.visible||SR7.M[e].slideOrder[s]==SR7.M[e].current.id)&&SR7.F.modify.process(e,t,void 0,void 0,SR7.M[e].slideOrder[s])},process:(e,t,s,i,a)=>{SR7.F.modify.pOS(e,t,s,a??SR7.M[e].current.id);for(let i of SR7.M[e].staticSlides)SR7.F.modify.pOS(e,t,s,i)},pOS:(e,t,s,i)=>{const a=SR7.M[e];if(!a.settings.mod?.use||null==a.c.mod||null==a.c.mod[i]||_tpt.is_mobile&&a.settings.mod?.dOM)return;const o=a.c.d3?.[i]&&(a.settings.mod?.d3??!1);if(o){const t=Math.round((a.mouse?.cDY??0)*a.settings.mod.d3d/a.dims.module.h),s=-Math.round((a.mouse?.cDX??0)*a.settings.mod.d3d/a.dims.module.w);_tpt.gsap.to([a.c.d3[i].layers,a.c.d3[i].bg],a.settings.mod.d3s,{rotateX:t,rotateY:s,z:r(e,Math.abs(t)+Math.abs(s)/2),ease:a.settings.mod.d3e,overwrite:"auto"})}for(let e in a.c.mod[i]){if(void 0!==s&&s!==e)continue;const r=a.c.layers[SR7.lToK[a.c.mod[i][e]]];if(r.mod.use3d=o,("mouse"==t||"touch"==t)&&""+(r.mod.mouse?.u??!1)!="false"){let e,s;if(null==r.mod.animElemXY&&"slidebg"==r.subtype&&(r.mod.animElemXY=r.px?r.px:r.mask?r.mask:r.el),"mousedrag"===a.settings.mod.t){let t,i=a.settings.mod.sm,r=a.settings.mod.om;"opposite"===a.settings.mod.dir&&(t=i,i=r,r=i),e=(a.c.carousel.src.lpX-(a.c.carousel.src.s.realDragging?a.c.carousel.src.pX:0))*Math.max(1,i)/10,s=(a.c.carousel.src.lpY-a.c.carousel.src.pY)*Math.max(1,r)/10,"same"===a.settings.mod.dir?"h"===a.settings.carousel.type?s=0:"v"===a.settings.carousel.type&&(e=0):"opposite"===a.settings.mod.dir&&("h"===a.settings.carousel.type?(s=e,e=0):"v"===a.settings.carousel.type&&(e=s,s=0))}else{let i="touch"==t?"F":"";e=(a.mouse[r.mod.mouse.o+"DX"+i]??0)*r.mod.mouse.x/(o?"slidebg"!==r.subtype?200:155:100),s=(a.mouse[r.mod.mouse.o+"DY"+i]??0)*r.mod.mouse.y/(o?"slidebg"!==r.subtype?200:80:100)}r.mod.tlM=_tpt.gsap.to(r.mod,r.mod.mouse.s,{mx:e,my:s,ease:r.mod.mouse.e,overwrite:"auto"}),r.mod.tlM.eventCallback("onUpdate",SR7.F.modify.tlupdate,[r,"xy"])}if("scroll"==t){let e={ease:"power3.out",overwrite:"auto"};if("false"!==(r.mod.scroll?.u??"false")&&(e.sx=Math.round(a.scrollProc*(-r.mod.scroll.x/100*a.dims.module.h)*10)/10||0,e.sy=Math.round(a.scrollProc*(-r.mod.scroll.y/100*a.dims.module.h)*10)/10||0),r.mod.scroll.uf||r.mod.scroll.ut){const t=r.mod.scroll.t/2;let s=a.scrollProc;s=s>t?Math.min(1,(s-t)/(1-t)):s<-t?Math.max(-1,(s+t)/(1-t)):0,r.mod.scroll.uf&&(null==r.mod.animElemFilter&&(r.mod.animElemFilter=r.mask?r.mask:r.el,r.filters??={},r.filters.simple=SR7.F.getFilterStyle(r.mod.scroll,"",r.filters?.simple?.used??void 0)),e.sg=0==r.mod.scroll.g?0:Math.round(Math.abs(s)*r.mod.scroll.g),e.sb=0==r.mod.scroll.b?0:Math.round(Math.abs(s)*r.mod.scroll.b),e.sr=100==r.mod.scroll.r?100:Math.round((1-Math.abs(s))*r.mod.scroll.r),e.sf="off"==r.mod.scroll.f?100:1-Math.abs(s)-Math.abs(s)*((r.mod.scroll.f-100)/100)),r.mod.scroll.ut&&(e.srx=0==r.mod.scroll.rX?0:Math.round(s*r.mod.scroll.rX),e.sry=0==r.mod.scroll.rY?0:Math.round(s*r.mod.scroll.rY),e.srz=0==r.mod.scroll.rZ?0:Math.round(s*r.mod.scroll.rZ),e.ssc=1==r.mod.scroll.sc?1:1+Math.abs(s)*r.mod.scroll.sc)}r.mod.tlS=_tpt.gsap.to(r.mod,r.mod.scroll.s||.001,e),r.mod.tlS.eventCallback("onUpdate",SR7.F.modify.tlupdate,[r,"xy,filter,opacity,rotate"])}}},tlupdate:(r,o)=>{if(o.includes("xy")&&!SR7.F.modify.isTweening(r,"xy")&&(r.mod.animElemXY||r.mod.animElem)&&_tpt.gsap.set(r.mod.animElemXY||r.mod.animElem,{x:e(r,"x")(),y:e(r,"y")()}),o.includes("rotate")&&r.mod.scroll?.ut&&_tpt.gsap.set(r.mask,{rotationX:t(r,"x")(),rotationY:t(r,"y")(),rotationZ:t(r,"z")(),scaleX:s(r)(),scaleY:s(r)()}),o.includes("filter")&&r.mod.animElemFilter&&!SR7.F.modify.isTweening(r,"filter")){let e=void 0===r.filters?"":a(r.filters.simple,r)();_tpt.gsap.set(r.mod.animElemFilter,{filter:""===e?"none":e})}!o.includes("opacity")||"slidebg"!=r.subtype&&!r.mod.animElemOpacity||"slidebg"!=r.subtype&&SR7.F.modify.isTweening(r,"opacity")||_tpt.gsap.set(r.el,{opacity:"slidebg"==r.subtype?Math.min(1,parseFloat(r.mod.sf)||1):i(r)})},isTweening:(e,t)=>{let s=!1;if(null==(e.mod?.coreTween?.[t]??void 0))return!1;for(let i in e.mod.coreTween[t])!s&&_tpt.hop(e.mod.coreTween[t],i)&&(s=e.tl?.[i]?.[e.mod.coreTween[t][i]]?.isActive()??!1);return s}},SR7.F.sbt={init:e=>{SR7.M[e].c.moduleListeners??={},SR7.M[e].c.moduleListeners.sbt??={},null==SR7.M[e].c.moduleListeners.sbt.scroll&&(SR7.M[e].c.moduleListeners.sbt.scroll=SR7.F.module.listeners.reg(e,"scroll",(function(e,t){SR7.F.sbt.process(e,"scroll")}),!0),SR7.F.sbt.process(e,"init"),requestAnimationFrame((()=>{_tpt.scrollObserver.process(SR7.M[e].c.module,!0)})))},process:(e,t,s)=>{const i=SR7.M[e];if(i.settings.sbt?.f){const t=i.dims.content.h<_tpt.winH,s=_tpt.winH-i.dims.content.h-parseInt(i.dims.reduceHeight??0),a=i.settings.sbt.a??"top";if(i.useAsModal&&(SR7.F.module.box(e),SR7.F.modal.sbt=!0,SR7.F.modal.underlay("show"),i.c.module.style.transform="none"),i.sbt.__runTime??=0,(i.dims.moduleRect.top<0||i.dims.moduleRect.top+i.dims.content.h<_tpt.winH&&"travel"==a||i.dims.moduleRect.top+i.dims.content.h<=_tpt.winH&&"bottom"==a)&&i.dims.moduleRect.bottom-i.dims.content.h-("bottom"==a?s:0)>(i.dims.content.h>_tpt.winH?s:0)&&i.dims.moduleRect.top<_tpt.winH){!0!==i.sbtFreeze&&(i.c.content.style.position="fixed",i.c.content.style.top="0px",i.settings.size.fullWidth&&(i.c.content.style.left="0px"),i.c.content.style.bottom="auto",i.sbtFreeze=!0);const e=i.dims.sbt-(i.dims.content.h+(t?-s:s));let r=t?"travel"==a?parseInt(i.dims.reduceHeight??0)+s+(i.dims.moduleRect.top-s)/e*s:"bottom"==a?_tpt.winH-i.dims.content.h-parseInt(i.dims.reduceHeight??0):0:0-i.dims.moduleRect.top/e*s;_tpt.gsap.set(i.c.content,{y:r})}else!1!==i.sbtFreeze&&(i.c.content.style.position="absolute",i.sbtFreeze=!1,i.dims.moduleRect.top>=0?(i.c.content.style.top="0px",i.settings.size.fullWidth&&(i.c.content.style.left=i.dims.content.shiftx+i.dims.content.mwshiftx+"px"),i.c.content.style.bottom="auto",_tpt.gsap.set(i.c.content,{y:0})):(i.c.content.style.top="auto",i.c.content.style.bottom="0px",i.settings.size.fullWidth&&(i.c.content.style.left=i.dims.content.shiftx+i.dims.content.mwshiftx+"px"),_tpt.gsap.set(i.c.content,{y:0})))}let a;if(a=i.settings.sbt?.f&&i.settings.sbt.nL?i.dims.moduleRect.top>=(i.dims.reduceHeight??0)&&i.dims.moduleRect.top<=_tpt.winH?i.sbt.__slen*(1-i.dims.moduleRect.top/_tpt.winH)/1e3:i.dims.moduleRect.top<=(i.dims.reduceHeight??0)&&i.dims.moduleRect.bottom>=i.dims.module.h?(i.sbt.__slen+i.sbt.__mlen*(Math.abs(i.dims.moduleRect.top)/(i.dims.moduleRect.height-i.dims.module.h)))/1e3:i.dims.moduleRect.top>_tpt.winH?0:(parseInt(i.settings.sbt.fEnd??0)+i.sbt.__elen*(1-i.dims.moduleRect.bottom/i.dims.content.h))/1e3:_tpt.gsap.utils.mapRange(1,-1,0,i.sbt.__len/1e3,i.scrollProcSA),i.sbt.__time??=a,"scroll"==t){if(i.sbt.done=!0,i.sbt.__time=a,-1==(i.current?.id??-1))return;SR7.F.updateSBTTimes(e,i.sbt.__time)}}},SR7.F.updateSBTTimes=function(e,t){const s=SR7.M[e];for(var i in s.sbt[s.current.id])_tpt.hop(s.sbt[s.current.id],i)&&(s.sbt[s.current.id][i].tl.paused()||s.sbt[s.current.id][i].tl.pause(),_tpt.gsap.to(s.sbt[s.current.id][i].tl,{duration:s.settings.sbt.s,time:_tpt.gsap.utils.clamp(s.sbt[s.current.id][i].so,s.sbt[s.current.id][i].tl.duration(),t)}))};const e=(e,t)=>()=>parseFloat(e.mod.animElem["t"+t]??0)+(e.mod?.["m"+t]??0)+(e.mod?.["s"+t]??0)+"px",t=(e,t)=>()=>parseFloat(e.mod.animElem["r"+t]??0)+(e.mod?.["sr"+t]??0)+(e.mod?.["mr"+t]??0)+"deg",s=e=>()=>parseFloat(e.mod?.ssc??1),i=e=>()=>parseFloat(e.el.tf??0)*(e.mod?.sf??0),a=(e,t)=>()=>(e.used?.blur?"blur("+(parseInt(t.el.tb??0)+parseInt(t.mod?.sb??0))+"px) ":"")+(e.used?.grayscale?"grayscale("+(parseInt(t.el.tg??0)+parseInt(t.mod?.sg??0))+"%) ":"")+(e.used?.brightness?"brightness("+parseInt(t.el.tr??100)+"%)":""),r=(e,t)=>(s,i)=>parseInt(SR7.M[e].settings.mod.d3z??65)*(i.className.includes("-bg")?-t/5:1)+"px";let o=(e,t,s,i)=>{let a="in"==e?"cright"==t?{transformOrigin:"0% 50%",scaleX:0,scaleY:1}:"cleft"==t?{transformOrigin:"100% 50%",scaleX:0,scaleY:1}:"cbottom"==t?{transformOrigin:"50% 0%",scaleX:1,scaleY:0}:{transformOrigin:"50% 100%",scaleX:1,scaleY:0}:"cleft"==t?{transformOrigin:"0% 50%",scaleX:0,scaleY:1}:"cright"==t?{transformOrigin:"100% 50%",scaleX:0,scaleY:1}:"ctop"==t?{transformOrigin:"50% 0%",scaleX:1,scaleY:0}:{transformOrigin:"50% 100%",scaleX:1,scaleY:0};return a.ease=s,a.backgroundColor=i,a};_tpt.R??={},_tpt.R.modifiers=_tpt.extend?_tpt.extend(_tpt.R.modifiers,{status:2,version:"1.0"}):{status:2,version:"1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},void 0!==SR7.F.navigation)return;SR7.F.navigation={init:e=>{SR7.F.navigation.create(e),a(e),_tpt.resizeObserver.observe((e=>{SR7.F.navigation.showHide(e)}),19,e)},update:e=>{const t=SR7.M[e];t.c.nav&&"hero"!=t.settings.type&&(t.settings.nav?.arrows?.set&&h(e),t.settings.nav?.bullets?.set&&n(e),t.settings.nav?.tabs?.set&&d(e,"tabs"),t.settings.nav?.thumbs?.set&&d(e,"thumbs"),t.settings.nav?.scrubber?.set&&c(e,"scrubber"))},select:(e,t)=>{const s=SR7.M[e];if("hero"!=s.settings.type){for(let e of["bullets","tabs","thumbs","scrubber"]){let i=0;if(s.settings?.nav?.[e]?.set)for(let a of s.c?.nav?.[e]?.elements)a.classList[a.dataset.key==t?"add":"remove"]("selected"),null!==a.getAttribute("aria-pressed")&&a.setAttribute("aria-pressed",a.dataset.key==t?"true":"false"),"scrubber"==e&&a.dataset.key==t&&s.c.nav?.scrubber?.srScrubber&&!s.c.nav.scrubber.srScrubber.dragging&&s.c.nav.scrubber.srScrubber.goTo(i),i++}SR7.F.navigation.refreshContent(e)}},refreshContent:(e,t)=>{const s=SR7.M[e];if(!s.c?.nav||!s.settings?.nav||!s.settings.nav?.arrows?.set)return;let i=s.c.nav.arrows;for(let t of["left","right"]){let a=s.slides?.[s.slideOrder[SR7.F.requestSlide({id:e,slide:i[t].dataset.dir,force:!1,getter:!0})]]?.slide;a&&(f(i[t+"_dcs"],a),void 0!==i[t+"_img_live"]&&v(e,a,i[t+"_img_live"],i[t+"_img_tmp"],s.settings.nav.arrows.m??"hslide",t))}},remove:(e,t)=>{const s=SR7.M[e],i=s?.c?.nav,a=s?.settings?.nav;i&&a&&["bullets","tabs","thumbs"].forEach((e=>{if(!a[e]?.set)return;let s=i[e].elements.findIndex((e=>e.dataset.key==t));-1!==s&&(i[e].elements[s].remove(),i[e].elements.splice(s,1))}))},showHide:(e,t,i)=>{i=i||"touchstart"==t||"mouseenter"==t;const a=SR7.M[e],r=a.c?.nav??!1;if(!r||!a.settings?.nav)return;let o=t;if(t=null==t?SR7.M[e].states.overModule?1:0:"mouseenter"==t||"touchstart"==t?1:0,r.dCalls)for(let e of r.dCalls)void 0!==e&&void 0!==e.kill&&e.kill();r.dCalls=[];let l=!1;["arrows","bullets","tabs","thumbs","scrubber"].forEach((n=>{if(!a.settings.nav?.[n]?.set)return;let d=a.settings.nav[n];t=d?.on?1:t,i=!d?.on&&i;let c="arrows"==n?[r[n].left,r[n].right]:r[n].wrap;if(0==(d?.show?.[a.LEV]??!0))_tpt.gsap.set(c,{display:"none"}),r[n+"visible"]=!1;else{if(0==r[n+"visible"]&&(null==o?_tpt.gsap.set(c,{display:"block",opacity:1}):_tpt.gsap.set(c,{display:"block"}),r[n+"visible"]=!0,l=!0),null==o)return;"arrows"==n?(1==t&&0==i&&!0!==r[n].animated&&(r.dCalls.push(s(e,0,r[n].left,0,d.l.anim,r[n].pos_left,!0)),r.dCalls.push(s(e,0,r[n].right,0,d.r.anim,r[n].pos_right,!0)),r[n].animated=!0),r.dCalls.push(s(e,d,r[n].left,t,d.l.anim,r[n].pos_left,i)),r.dCalls.push(s(e,d,r[n].right,t,d.r.anim,r[n].pos_right,i))):(1==t&&0==i&&!0!==r[n].animated&&(r.dCalls.push(s(e,0,r[n].wrap,0,d.anim,r[n].pos,!0)),r[n].animated=!0),r.dCalls.push(s(e,d,r[n].wrap,t,d.anim,r[n].pos,i)))}})),l&&requestAnimationFrame((function(){SR7.F.navigation.update(e)}))},create:(s,a=["arrows","bullets","tabs","thumbs","scrubber"])=>{const r=SR7.M[s];for(let o of a)if(r.settings.nav?.[o]?.set){r.c.nav??={},r.c.nav[o]??={};let a=r.c.nav[o],n=r.settings.nav[o],d=_tpt.collector();if("arrows"==o)for(let e of["left","right"]){const t=a[e]=d.add({tag:"sr7-arrow",datas:{dir:"left"==e?"-1":"+1"},class:"sr7-"+e+"arrow sr7-arrows "+n.key});r.settings.acc?.use&&"true"!==String(r.settings.nav?.acc?.hidden)?(t.setAttribute("aria-label","left"==e?r.settings.nav?.acc?.next??"Next":r.settings.nav?.acc?.prev??"Previous"),t.setAttribute("role","button"),t.setAttribute("tabindex",0)):t.setAttribute("aria-hidden",!0),t.innerHTML=m(n.html),a[e+"_dcs"]=t.getElementsByTagName("sr7-navdc"),n.html.includes("sr7-nav-img")&&(a[e+"_img"]=t.getElementsByClassName("sr7-nav-img"),null!==a[e+"_img"]&&void 0!==a[e+"_img"]?(a[e+"_img"]=a[e+"_img"][0],a[e+"_img_live"]=d.add({tag:"sr7-nav-img-live"}),a[e+"_img_tmp"]=d.add({tag:"sr7-nav-img-tmp"}),a[e+"_img"].appendChild(a[e+"_img_tmp"]),a[e+"_img"].appendChild(a[e+"_img_live"])):delete a[e+"_img"]),t.style.opacity=0,d.fragment.appendChild(a[e]),i(s,t,"arrow")}else if("bullets"==o){a.wrap=d.add({tag:"sr7-bullets",class:"sr7-bullets "+n.key+" sr7-nd"+SR7.gV({v:n.d,id:s,u:0})[0]+" sr7-nph"+SR7.gV({v:n.h,id:s,u:0})[0]+" sr7-npv"+SR7.gV({v:n.v,id:s,u:0})[0]}),a.wrap.style.opacity=0,d.fragment.appendChild(a.wrap),a.elements=[];let e=1;for(let t of r.slideOrder){if(r.slides[t]?.slide?.slideshow?.hfn)continue;let o=d.add({tag:"sr7-bullet",class:"sr7-bullet",datas:{key:t}});r.settings.acc?.use&&"true"!==String(r.settings.nav?.acc?.hidden)?(o.setAttribute("aria-label",(r.settings.nav?.acc?.bullet??"Bullet")+" "+e),o.setAttribute("role","button"),o.setAttribute("tabindex",0),"unset"!==String(r.settings.nav?.acc?.pressed??"unset")&&o.setAttribute("aria-pressed","false")):o.setAttribute("aria-hidden",!0),e++,o.innerHTML=g(n.html,r.slides[t].slide);let l=o.getElementsByClassName("sr7-bullimg");null!=l&&v(s,r.slides[t].slide,l[0]),i(s,o),a.wrap.appendChild(o),a.elements.push(o)}}else if("tabs"==o||"thumbs"==o){const e="tabs"==o?"sr7-tab":"sr7-thumb";a.wrap=d.add({tag:"sr7-"+o,class:"sr7-"+o+" "+n.key+" sr7-nd"+SR7.gV({v:n.d,id:s,u:0})[0]+" sr7-nph"+SR7.gV({v:n.h,id:s,u:0})[0]+" sr7-npv"+SR7.gV({v:n.v,id:s,u:0})[0]}),a.mask=d.add({tag:"sr7-tt-mask",class:"sr7-"+o+"-mask"}),a.iwrap=d.add({tag:"sr7-"+o+"-wrap",class:"sr7-ntiw"}),a.wrap.appendChild(a.mask),a.mask.appendChild(a.iwrap),a.wrap.style.opacity=0,a.wrap.style.paddingTop=a.wrap.style.paddingBottom=a.wrap.style.paddingLeft=a.wrap.style.paddingRight=(SR7.gV({v:n.wr.p,id:s,u:0})??0)+"px",SR7.F.drawBG(a.wrap,{color:n.wr.c},!0,"bg"),a.elements=[];let t=1;for(let l of r.slideOrder){if(r.slides[l]?.slide?.slideshow?.hfn)continue;let c=d.add({tag:e,class:e,datas:{key:l}});r.settings.acc?.use&&"true"!==String(r.settings.nav?.acc?.hidden)?(c.setAttribute("aria-label",(r.settings.nav?.acc?.[o]??o)+" "+t),c.setAttribute("role",r.settings.nav?.acc?.role??"button"),c.setAttribute("tabindex",0),"unset"!==String(r.settings.nav?.acc?.pressed??"unset")&&c.setAttribute("aria-pressed","false")):c.setAttribute("aria-hidden",!0),c.innerHTML=g(n.html,r.slides[l].slide),t++;let p=c.getElementsByClassName("tabs"==o?"sr7-tab-img":"sr7-thumb-img");null!=p&&v(s,r.slides[l].slide,p[0]),i(s,c),a.iwrap.appendChild(c),a.elements.push(c)}}else if("scrubber"==o){const i=SR7.gV({v:n.h,id:s,u:0}),l=SR7.gV({v:n.v,id:s,u:0}),c="horizontal"==SR7.gV({v:n.d,id:s,u:0});a.wrap=d.add({tag:"sr7-"+o,class:"sr7-"+o+" "+n.key+" sr7-nd"+SR7.gV({v:n.d,id:s,u:0})[0]+" sr7-nph"+SR7.gV({v:n.h,id:s,u:0})[0]+" sr7-npv"+SR7.gV({v:n.v,id:s,u:0})[0]}),a.iWrap=d.add({tag:"sr7-"+o+"-wrap",class:"sr7-"+o+"-wrap"}),a.handle=d.add({tag:"sr7-"+o+"-handle",class:"sr7-"+o+"-handle"}),a.svg=new t({id:s,tp:n.tp,d:c}),a.iWrap.appendChild(a.svg.svg),a.svg.svg.style.position="absolute",c&&n.ha&&(a.rightHandleArrow=d.add({tag:"sr7-"+o+"-hra",class:"sr7-"+o+"-hra sr7-"+o+"-ha"}),a.leftHandleArrow=d.add({tag:"sr7-"+o+"-hla",class:"sr7-"+o+"-hla sr7-"+o+"-ha"}),a.handle.appendChild(a.rightHandleArrow),a.handle.appendChild(a.leftHandleArrow)),a.wrap.appendChild(a.iWrap),a.iWrap.appendChild(a.handle),a.wrap.style.opacity=0,a.wrap.style.paddingTop=a.wrap.style.paddingBottom=a.wrap.style.paddingLeft=a.wrap.style.paddingRight=(SR7.gV({v:n.wr.p,id:s,u:0})??0)+"px",SR7.F.drawBG(a.wrap,{color:n.wr.c},!0,"bg"),a.elemsWrap=d.add({tag:"sr7-"+o+"-thumbwrap",class:"sr7-"+o+"-thumbwrap"}),a.elements=[];for(let e of r.slideOrder){if(r.slides[e]?.slide?.slideshow?.hfn)continue;let t=d.add({tag:"sr7-"+o+"-thumb",class:"sr7-"+o+"-thumb",datas:{key:e}});if(t.innerHTML=g(n.html,r.slides[e].slide),n.tn){let i=t.getElementsByClassName("sr7-scrubber-img");null!=i&&v(s,r.slides[e].slide,i[0])}a.elemsWrap.appendChild(t),a.elements.push(t)}if(a.handle.appendChild(a.elemsWrap),d.fragment.appendChild(a.wrap),n.hp&&r.settings.slideshow.auto){const e="left"===n.pa&&c?"0% 50%":"left"!==n.pa||c?"center"===n.pa?"50% 50%":c?"100% 50%":"50% 100%":"50% 0%";a.progress=d.add({tag:"sr7-"+o+"-progress",class:"sr7-"+o+"-progress"}),a.handle.appendChild(a.progress),a.progTween=_tpt.gsap.fromTo(a.progress,{scaleX:c?0:1,scaleY:c?1:0,transformOrigin:e},{scaleX:1,scaleY:1}),a.progTween.pause()}if(a.hoverTween=_tpt.gsap.timeline(),100!=n.sc){const e=("left"===i?"0%":"center"===i?"50%":"100%")+" "+("top"===l?"0%":"center"===l?"50%":"100%");a.hoverTween.fromTo(a.iWrap,{transformOrigin:e,scaleX:c?1:n.sc/100,scaleY:c?n.sc/100:1},{duration:.2,scaleX:1,scaleY:1},0)}if(0!==n.to&&a.hoverTween.fromTo(a.elemsWrap,{opacity:0},{duration:.2,opacity:1},0),c&&n.ha){const t=e(n,!0,"left"),s=e(n,!0,"right");a.hoverTween.fromTo(a.leftHandleArrow,t.from,t.to,.2).fromTo(a.rightHandleArrow,s.from,s.to,.2)}a.hoverTween.pause()}l({css:n.css??"",key:n.key,within:r.c.module.id,id:s,cst:r.settings.nav[o].cst,def:r.settings.nav[o].def});for(let e in r.slides)void 0!==r.slides[e]?.slide?.nav?.[o]&&l({css:n.css??"",key:n.key,within:r.c.module.id,id:s,navkey:r.settings.nav[o].key,cst:r.settings.nav[o].cst,def:r.settings.nav[o].def,scst:r.slides[e].slide.nav[o],sid:e});d.append("o"==n.io?r.c.module:r.c.content)}o(s),requestAnimationFrame((function(){SR7.F.navigation.update(s),SR7.M[s].states.overModule??=SR7.M[s].c.module.matches(":hover"),SR7.M[s].states.overModule?SR7.F.navigation.showHide(s,"mouseenter"):SR7.F.navigation.showHide(s,"mouseleave",!0)}))}};const e=function(e,t,s){const i={scale:t?0:1,opacity:t?0:1,rotation:t?180:-180,x:t?"left"===s?e.tr:-e.tr:0},a={scale:t?1:0,opacity:t?1:0,rotation:0,x:t?0:"left"===s?e.tr:-e.tr};return e.asc||(delete i.scale,delete a.scale),e.sp||(delete i.rotation,delete a.rotation),0===e.tr&&(delete i.x,delete a.x),e.f||(delete i.opacity,delete a.opacity),a.duration=.2,{from:i,to:a}},t=function(e){const t="http://www.w3.org/2000/svg";this.s=e,this.svg=document.createElementNS(t,"svg"),this.svg.style.display="block",this.rect=document.createElementNS(t,"rect"),this.pattern=document.createElementNS(t,"pattern"),this.pattern.setAttributeNS(null,"patternUnits","userSpaceOnUse"),this.pattern.setAttributeNS(null,"id",this.s.id+"-pattern"),"dots"===e.tp?(this.circle=document.createElementNS(t,"circle"),this.circle.setAttributeNS(null,"class","pattern-color"),this.pattern.appendChild(this.circle)):"vlines"!==this.s.tp&&"hlines"!==this.s.tp||(this.circle=document.createElementNS(t,"rect"),this.circle.setAttributeNS(null,"class","pattern-color"),this.pattern.appendChild(this.circle)),this.svg.appendChild(this.pattern),this.svg.appendChild(this.rect),this.rect.setAttributeNS(null,"fill","url(#"+this.s.id+"-pattern")};t.prototype.resize=function(){if(this.s.d?(this.dw=this.w,this.dh=this.h):(this.dw=this.h,this.dh=this.w),this.svg.style.width=this.w+"px",this.svg.style.height=this.h+"px",this.rect.setAttributeNS(null,"width",this.w),this.rect.setAttributeNS(null,"height",this.h),this.pattern.setAttributeNS(null,"width",this.dh),this.pattern.setAttributeNS(null,"height",this.dh),"dots"===this.s.tp)this.circle.setAttributeNS(null,"cx",this.dh/2),this.circle.setAttributeNS(null,"cy",this.dh/2),this.circle.setAttributeNS(null,"r",1);else if("vlines"===this.s.tp||"hlines"===this.s.tp){var e="vlines"===this.s.tp?1:this.dh/4,t="vlines"===this.s.tp?this.dh/4:1;this.circle.setAttributeNS(null,"x",(this.dh-e)/2),this.circle.setAttributeNS(null,"y",(this.dh-t)/2),this.circle.setAttributeNS(null,"width",e),this.circle.setAttributeNS(null,"height",t)}};const s=(e,t,s,i,a,r,o)=>_tpt.gsap.delayedCall(o?0:SR7.gV({v:t[1==i?"dIn":"dOut"],id:e,u:0})/1e3,(function(e,t,s,i,a){void 0!==e.anim&&e.anim.kill();let r=Math.max(.01,1==i?t*(1-e.style.opacity):t*e.style.opacity),o=((e="fade",t=1,s={x:0,y:0})=>{let i=1==t?{opacity:1,pointerEvents:"auto",ease:"power3.inOut"}:{opacity:0,ease:"power3.inOut"};return"left"!=e&&"right"!=e||(i.x=1==t?s.x:"left"==e?s.x-50:"right"==e?s.x+50:s.x),"top"!=e&&"bottom"!=e||(i.y=1==t?s.y:"top"==e?s.y-50:"bottom"==e?s.y+50:s.y),"zoomin"==e?i.scaleX=i.scaleY=1==t?1:.5:"zoomout"==e&&(i.scaleX=i.scaleY=1==t?1:1.2),i})(s,i,a);i||(o.onCompleteParams=[e],o.onComplete=e=>{e.style.pointerEvents="none"}),e.anim=_tpt.gsap.to(e,r,o)}),[s,t.s/1e3,a,i,r]),i=(e,t,s,i)=>{t.addEventListener(_tpt.is_mobile?"touchend":"click",(function(i){this.moved||(s?SR7.F.requestSlide({id:e,slide:this.dataset.dir}):SR7.F.requestSlide({id:e,slide:"#"+this.dataset.key})),_tpt.is_mobile&&requestAnimationFrame((function(){t.classList.remove("sr7-touchhover")}))})),_tpt.is_mobile&&t.addEventListener("touchmove",(function(e){(Math.abs(e.touches[0].clientX-this.startX)>5||Math.abs(e.touches[0].clientY-this.startY)>5)&&(this.moved=!0)}))},a=e=>{const t=SR7.M[e];if(void 0===SR7.M[e].states.touchListener){t.settings?.nav?.scrubber?.set&&r(e),SR7.M[e].c.module.querySelectorAll(_tpt.is_mobile?".sr7-bullet, .sr7-tab, .sr7-thumb, .sr7-rightarrow, .sr7-leftarrow":".sr7-arrows, .sr7-bullets, .sr7-bullet, .sr7-tab, .sr7-thumb, .sr7-thumbs, .sr7-tabs, .sr7-rightarrow, .sr7-leftarrow").forEach((function(e){e.addEventListener(_tpt.is_mobile?"touchstart":"mouseenter",(function(e){this.classList.add("sr7-touchhover"),_tpt.is_mobile&&(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY,this.moved=!1)})),e.addEventListener("mouseleave",(function(e){var t=this;requestAnimationFrame((function(){t.classList.remove("sr7-touchhover")}))}))})),SR7.M[e].states.touchListener=!0}},r=function(e){const t=SR7.M[e];let s=SR7.M[e].c.module.querySelector(100===t.settings.nav.scrubber.sc?".sr7-scrubber-handle":".sr7-scrubber");s.addEventListener(_tpt.is_mobile?"touchstart":"mouseenter",(function(s){this.classList.add("sr7-touchhover"),t.c.nav?.scrubber?.hoverTween&&t.c.nav.scrubber.hoverTween.play(),t.c.nav.scrubber.progTween?.progress&&t.c.nav.scrubber.progTween.progress(1),SR7.slideShow.pause(e)})),s.addEventListener(_tpt.is_mobile?"touchend":"mouseleave",(function(s){var i=this;requestAnimationFrame((function(){t.c.nav?.scrubber?.srScrubber?.dragging||(i.classList.remove("sr7-touchhover"),t.c.nav?.scrubber?.hoverTween&&(t.c.nav.scrubber.hoverTween.reverse(),SR7.slideShow.resume(e)))}))}))},o=e=>{void 0===SR7.M[e].states.navSHListener&&(SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchstart touchend":"mouseenter mouseleave",(function(e,t){SR7.F.navigation.showHide(e,t.type)})),SR7.M[e].states.navSHListener=!0)},l=e=>{let{within:t,key:s,scst:i,sid:a,navkey:r}=e,o=new RegExp(`\\.(${s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}[^,{]*)(?=,|{)`,"g"),l=SR7.F.navCSS(e);_tpt.injectCssJs(l.replace(o,`#${t+(r&&a&&i?'[data-current="'+a+'"]':"")} .$1`),void 0,void 0,e.id+"_navigationstyles"+(e.sid?"_"+e.sid:""))};SR7.F.navCSS=e=>{let{css:t,cst:s={},def:i={},scst:a}=e,r=""+t;const o=r.match(/##(.*?)##/g);if(o)for(let e=0;e<o.length;e++){const t=o[e].slice(2,-2);a&&a.hasOwnProperty(t)?r=r.replaceAll(o[e],a[t]):s.hasOwnProperty(t)&&s[t+"-def"]?r=r.replaceAll(o[e],s[t]):i.hasOwnProperty(t)&&(r=r.replaceAll(o[e],i[t].data))}return r};const n=e=>{const t=SR7.M[e],s=t.settings.nav.bullets,i=t.c.nav.bullets;if(!i.elements.length)return;const a={w:i.elements[0].offsetWidth,h:i.elements[0].offsetHeight},r={w:0,h:0},o="horizontal"==SR7.gV({v:s.d,id:e,u:0});for(let e of i.elements)e.style.top=o?"0px":r.h+"px",e.style.left=o?r.w+"px":"0px",r.w=o?r.w+a.w+(s.g??0):a.w,r.h=o?a.h:r.h+a.h+(s.g??0);r.w=r.w-(o?s.g??0:0),r.h=r.h-(o?0:s.g??0),i.wrap.style.width=r.w+"px",i.wrap.style.height=r.h+"px",i.pos=u(e,i.wrap,s,r,o)},d=(e,t)=>{const s=SR7.M[e],i=s.settings.nav[t];if(!s.c.nav||!s.c.nav[t])return;const a=s.c.nav[t];let r;if(0==i.size.t){let e=Math.max(0,Math.min(1,(_tpt.winW-480)/500)),t=Math.max(i.size.nw*e,i.size.mw);r={w:t,h:t/i.size.nw*i.size.nh}}else r={w:SR7.gV({v:i.size.w,id:e,u:0,a:!0}),h:SR7.gV({v:i.size.h,id:e,u:0})};const o={w:0,h:0},l={w:0,h:0},n=2*SR7.gV({v:i.wr.mx,id:e,u:0}),d=2*SR7.gV({v:i.wr.my,id:e,u:0}),c="horizontal"==SR7.gV({v:i.d,id:e,u:0}),p=SR7.gV({v:i.wr.p,id:e,u:0}),h="o"!=i.io||c?s.dims.content.h:s.dims.module.h,m={w:s.dims.content.w-2*p,h:h-2*p};let g=Math.min(SR7.gV({v:i.m,id:e,u:0}),s.len);g=Math.min(g,c?Math.ceil(s.dims.content.w/(r.w+i.g)):Math.round(h/(r.h+i.g)));let f=1;for(let e of a.elements)e.style.top=c?"0px":o.h+"px",e.style.width=r.w+"px",e.style.height=r.h+"px",f<=g&&(l.w=c?l.w+r.w+(f==g?0:i.g??0):r.w,l.h=c?r.h:l.h+r.h+(f==g?0:i.g??0)),f++;if(l.w+=c?0:n,l.h+=c?d:0,o.w=c?i.wr.s?m.w:Math.min(l.w,m.w):l.w,o.h=c?l.h:i.wr.s?m.h:Math.min(l.h,m.h),l.w=c?Math.min(o.w+n,r.w*g+((g-1)*i.g??0)+n):l.w,l.h=c?l.h:Math.min(o.h+d,r.h*g+((g-1)*i.g??0)+d),i.wr.s){let t=SR7.gV({v:i.h,id:e,u:0}),s=SR7.gV({v:i.v,id:e,u:0});a.mask.style.left=c?"left"==t?parseInt(SR7.gV({v:i.x,id:e,u:0}))+p+"px":"right"==t?"":"50%":"",a.mask.style.right=c&&"right"==t?parseInt(SR7.gV({v:i.y,id:e,u:0}))+p+"px":"",a.mask.style.top=c||"top"==s?p+"px":"bottom"==s?"":"50%",a.mask.style.bottom=c||"bottom"!=s?"":p+"px",a.mask.style.transform="translate("+(c&&"center"==t?"-50%":"0px")+","+(c||"center"!=s?"0px":"-50%")+")"}if(a.mask.style.width=l.w+"px",a.mask.style.height=l.h+"px",a.mask.style.padding=.5*d+"px "+.5*n+"px",a.wrap.style.width=o.w+"px",a.wrap.style.height=o.h+"px",a.pos=u(e,a.wrap,i,o,c,p),l.w-=n,l.h-=d,s.settings.nav?.[t]?.set&&s.c?.nav?.[t]?.srcr){var v=s.c.nav[t].srcr.s;let e=!v.everbuild;v.everbuild=!0,v.width!==r.w&&(v.width=r.w,e=!0),v.height!==r.h&&(v.height=r.h,e=!0),v.space!==i.g&&(v.space=i.g,e=!0),v.type!==(c?"h":"v")&&(v.type=c?"h":"v",e=!0),v.wrapWidth!==l.w&&(v.wrapWidth=l.w,e=!0),v.wrapHeight!==l.h&&(v.wrapHeight=l.h,e=!0),e&&s.c.nav[t].srcr.rebuild()}else s.settings.nav?.[t]?.set&&(s.c.nav[t].srcr=new srCarousel({trigger:s.c.nav[t].wrap,wrap:s.c.nav[t].iwrap,slides:s.c.nav[t].elements,width:r.w,height:r.h,space:i.g,maxV:s.navLen,infinity:!1,spin:"off",spinA:0,align:"left",type:c?"h":"v",sightSnap:!0,dur:.3,ignoreOpacity:!0,wrapWidth:l.w,wrapHeight:l.h}))},c=(e,t)=>{const s=SR7.M[e],i=s.settings.nav[t],a=s.c.nav[t],r={w:SR7.gV({v:i.size.w,id:e,u:0,a:!0}),h:SR7.gV({v:i.size.h,id:e,u:0})},o={w:400,h:50},l="horizontal"==SR7.gV({v:i.d,id:e,u:0}),n=SR7.gV({v:i.wr.p,id:e,u:0}),d=SR7.gV({v:i.h,id:e,u:0}),c=SR7.gV({v:i.v,id:e,u:0});let h=s.navLen,m=r.h*i.hs/100;if(!l){const e=r.w;r.w=r.h,r.h=e,m=r.w*i.hs/100}o.w=Math.min(s.dims.module.w,l?Math.max(s.dims.module.w*i.ms/100,r.w*h+((h-1)*i.g??0)):r.w),o.h=Math.min(s.dims.module.h,l?r.h:Math.max(s.dims.module.h*i.ms/100,r.h*h+((h-1)*i.g??0))),a.handle.style.width=r.w+"px",a.handle.style.height=r.h+"px",100!==i.hs&&l?(a.handle.style.height=m+"px",a.handle.style.top=-(m-r.h)/2+"px",i.ho&&a.hoverTween.fromTo(a.handle,{height:r.h,top:0},{top:"bottom"===c?(r.h-m)/2:0,height:m,duration:.2},0)):100!==i.hs&&(a.handle.style.width=m+"px",a.handle.style.left=-(m-r.h)/2+"px",i.ho&&a.hoverTween.fromTo(a.handle,{left:0,width:r.w},{left:"right"===d?(r.w-m)/2:0,width:m,duration:.2},0));for(let e=0;e<s.navLen;e++){var g=a.elements[e];g.style.width=l?"100%":100*i.ts/100+"%",g.style.height=l?100*i.ts/100+"%":"100%",g.style.position="absolute",g.style.display="block",_tpt.gsap.set(g,{xPercent:l?0:"left"===d?i.to:-i.to,yPercent:l?"top"===c?i.to:-i.to:0})}let f=o.w,v=o.h;o.w=l?i.wr.s?s.dims.module.w-2*n:Math.min(o.w,s.dims.module.w-2*n):r.w,o.h=l?r.h:i.wr.s?s.dims.module.h-2*n:Math.min(o.h,s.dims.module.h-2*n),a.wrap.style.width=a.iWrap.style.width=o.w+"px",a.wrap.style.height=a.iWrap.style.height=o.h+"px",a.svg&&(a.svg.w=o.w,a.svg.h=o.h,a.svg.resize()),i.wr.s&&(f=o.w,v=o.h),o.w+=2*n,o.h+=2*n,a.pos=u(e,a.wrap,i,o,l,n),s.settings.nav?.[t]?.set&&s.c?.nav?.[t]?.srScrubber?(a.srScrubber.s.d=l,a.srScrubber.s.ww=f,a.srScrubber.s.wh=v,a.srScrubber.s.w=r.w,a.srScrubber.s.h=r.h,a.srScrubber.s.padding=n,a.srScrubber.s.space=i.g,a.srScrubber.resize()):s.settings.nav?.[t]?.set&&(s.c.nav[t].srScrubber=new p({elems:a.elements,handle:a.handle,d:l,ww:f,wh:v,w:r.w,h:r.h,padding:n,space:i.g,sk:i.sk,cor:i.cor,changeSlide:function(t){("carousel"!==s.settings.type||s.settings.carousel.justify)&&SR7.F.requestSlide({id:e,slide:"#"+a.elements[t].dataset.key})},changeProgress:function(e,t){"carousel"===s.settings.type&&!s.settings.carousel.justify&&s.c.carousel?.src&&s.c.carousel.src.rebuild({p:e,targetIndex:t})},onInteract:function(){s.c.nav.scrubber.progTween?.progress&&s.c.nav.scrubber.progTween.progress(1)},onIdle:function(){SR7.slideShow.resume(e),a.wrap.classList.remove("sr7-touchhover"),s.c.nav.scrubber?.hoverTween&&s.c.nav.scrubber.hoverTween.reverse()}}))},p=function(e){this.s=e,this.setDefaults(),this.len=e.elems.length,this.dl=e.elems.length-1,this.hl=(this.s[this.wdim]-this.s[this.dim])/this.dl,this.updateScrubber=this.update.bind(this);const t=this;this.draggable=_tpt.draggable.create(e.handle,{type:e.d?"x":"y",inertia:!0,cursor:"grab",activeCursor:"grabbing",bounds:e.d?{minX:0,maxX:e.ww-e.w}:{minY:0,maxY:e.wh-e.h},throwResistance:1e4,edgeResistance:.8,minDuration:.1,maxDuration:1.5,onPress:function(){t.dragging=!0,e.onInteract&&e.onInteract()},onDrag:this.updateScrubber,onThrowUpdate:this.updateScrubber,onClick:function(){t.dragging=!1,e.onIdle&&e.onIdle()},onThrowComplete:function(){t.dragging=!1,e.onIdle&&e.onIdle()},snap:{[e.d?"x":"y"]:function(e){return Math.round(e/t.hl)*t.hl}},zIndexBoost:!1,allowContextMenu:!0})[0],this.clampIndex=_tpt.gsap.utils.clamp(0,this.len-1),this.lerpHandler=this.lerp.bind(this),this.v=this.lv=0};p.prototype.setDefaults=function(){this.s.d?(this.tr="x",this.dim="w",this.wdim="ww"):(this.tr="y",this.dim="h",this.wdim="wh")},p.prototype.resize=function(){this.hl=(this.s[this.wdim]-this.s[this.dim])/this.dl,this.draggable.applyBounds({minX:0,maxX:this.s[this.wdim]-this.s[this.dim],minY:0,maxY:this.s[this.wdim]-this.s[this.dim]}),_tpt.gsap.set(this.s.handle,{[this.tr]:this.hl*this.lastIndex})},p.prototype.update=function(){var e=this.hl;const t=this;let s=this.draggable[this.tr]/e,i=-this.draggable[this.tr]%e/e,a=this.clampIndex(Math.round(this.draggable[this.tr]/e));s<=-1?i=1:s>=this.len&&(i=-1),a!==this.lastIndex&&(_tpt.gsap.to(this.s.elems,{opacity:0}),_tpt.gsap.to(this.s.elems[a],{opacity:1}),t.s.cor&&t.draggable.isPressed||(this.lastIndex=a),this.s.changeSlide&&(this.scDelay&&this.scDelay.pause&&this.scDelay.pause(),this.scDelay=_tpt.gsap.delayedCall(.2,(function(){t.s.cor&&t.draggable.isPressed||t.s.changeSlide(a)})))),this.v=this.draggable[this.tr],this.tick||0===this.s.sk||(this.tick=requestAnimationFrame(this.lerpHandler)),this.s.changeProgress&&this.s.changeProgress(i,this.clampIndex(Math.floor((this.draggable[this.tr]-this.draggable[this.tr]%e)/e)))},p.prototype.lerp=function(){this.tick=cancelAnimationFrame(this.tick),this.tick||(this.tick=requestAnimationFrame(this.lerpHandler));let e=this.v-this.lv;this.lv+=.2*e,_tpt.gsap.set(this.s.elems,{[this.s.d?"skewX":"skewY"]:this.s.sk*Math.max(-1,Math.min(1,e/100)),[this.tr]:-e/2})},p.prototype.rebuild=function(e){let{p:t,targetIndex:s}=e;this.lv=-t*this.hl+this.hl*s,_tpt.gsap.set(this.s.handle,{[this.tr]:-t*this.hl+this.hl*s})},p.prototype.goTo=function(e){const t=this;this.lv=this.hl*e,_tpt.gsap.to(this.s.handle,{[this.tr]:this.hl*e,onUpdate:function(){t.updateThumbs()}})},p.prototype.updateThumbs=function(){let e=parseFloat(this.s.handle._gsap[this.tr]),t=this.clampIndex(Math.round(e/this.hl));t!==this.lastIndex&&(_tpt.gsap.to(this.s.elems,{opacity:0}),_tpt.gsap.to(this.s.elems[t],{opacity:1}))};const h=e=>{const t=SR7.M[e];if(null!=t.c.nav)for(let s of["left","right"])t.c.nav.arrows["pos_"+s]=u(e,t.c.nav.arrows[s],t.settings.nav.arrows[s[0]],{w:t.c.nav.arrows[s].offsetWidth,h:t.c.nav.arrows[s].offsetHeight})},u=(e,t,s,i,a,r)=>{const o=SR7.M[e];let l="o"==s.io&&o.settings.size.fullWidth?o.dims?.moduleRect?.x??0:0,n=(o.dims.content.h-o.dims.CFC.h)/2,d={left:s.wr?.s&&a?"o"===s.io?-l:0:"left"==SR7.gV({v:s.h,id:e,u:0})?"grid"==s.a?parseInt(o.dims.CFC.x)+"px":0-l+"px":"right"==SR7.gV({v:s.h,id:e,u:0})?"auto":"50%",right:s.wr?.s&&a?0:"right"==SR7.gV({v:s.h,id:e,u:0})?"grid"==s.a?o.dims.content.w-(parseInt(o.dims.CFC.x)+parseInt(o.dims.CFC.w))+"px":0-l+"px":"auto",top:s.wr?.s&&!a?0:"top"==SR7.gV({v:s.v,id:e,u:0})?("grid"==s.a?n:0)+"px":"bottom"==SR7.gV({v:s.v,id:e,u:0})?"auto":"50%",bottom:s.wr?.s&&!a?0:"bottom"==SR7.gV({v:s.v,id:e,u:0})?("grid"==s.a?n:0)+"px":"auto",x:s.wr?.s&&a?0:"center"==SR7.gV({v:s.h,id:e,u:0})?parseInt(SR7.gV({v:s.x,id:e,u:0}))-i.w/2-(r??0):"right"==SR7.gV({v:s.h,id:e,u:0})?0-parseInt(SR7.gV({v:s.x,id:e,u:0})):parseInt(SR7.gV({v:s.x,id:e,u:0})),y:s.wr?.s&&!a?0:"center"==SR7.gV({v:s.v,id:e,u:0})?parseInt(SR7.gV({v:s.y,id:e,u:0}))-i.h/2-(r??0):"bottom"==SR7.gV({v:s.v,id:e,u:0})?0-parseInt(SR7.gV({v:s.y,id:e,u:0})):parseInt(SR7.gV({v:s.y,id:e,u:0}))};return _tpt.gsap.set(t,d),d},m=(e,t)=>{e=e.replaceAll("{{title}}",'<sr7-navdc data-type="title"></sr7-navdc>').replaceAll("{{description}}",'<sr7-navdc data-type="description"></sr7-navdc>');for(let t=0;t<10;t++)e=e.replaceAll("{{params"+t+"}}",'<sr7-navdc data-type="params" data-index="'+t+'" ></sr7-navdc>');return e},g=(e,t)=>{e=e.replaceAll("{{title}}",t.title).replaceAll("{{description}}",t.description);let s,i=new DOMParser;for(let a=1;a<=10;a++)s=i.parseFromString(t?.params?.[a-1]?.v??"","text/html"),e=e.replaceAll("{{param"+a+"}}",String(s.body.textContent||"").substr(0,parseInt(t.params?.[a-1]?.l??500)));return e},f=(e,t)=>{for(let s of e)s.textContent=void 0!==s.dataset.index?t.params?.[s.dataset.index]?.v??"":t?.[s.dataset.type]??""},v=(e,t,s,i,a,r)=>{let o=t?.thumb?.src??"",l=SR7.F.getSlideBG(e,t.id)?.bg;o=""!=o||l?o:t?.thumb?.admin??"",o=""==o||"#"==o[o.length-1]||o.includes("://server.local/")&&!window.location.hostname.startsWith("server.local")?l:{image:{src:o,size:"cover",repeat:"no-repeat",pos:{x:"center",y:"center"}}},o=0==(o?.image?.src??!1)?0==(o?.video?.poster?.src??!1)?o:{image:{src:o?.video.poster.src,size:"cover",repeat:"no-repeat",pos:{x:"center",y:"center"}}}:o,o=null==o?{image:{src:o,size:"cover",repeat:"no-repeat",pos:{x:"center",y:"center"}}}:o,o.slidebg=l,o?.image?.src?_tpt.registerImage(o.image.src,0,(function(e){if("error"==e.state)return console.log("Fall back to Slide Image instead of Thumbnail"),y(s,i,o.slidebg,a,r);y(s,i,o,a,r)}),"load_nav_thumbnail_"+Math.round(1e4*Math.random()),void 0,"youtube"!==(SR7.M[e].settings?.source?.type??"")):y(s,i,o,a,r)},y=(e,t,s,i="",a)=>{if(""==i)void 0!==e&&SR7.F.drawBG(e,s,void 0,"bg"),void 0!==t&&SR7.F.drawBG(t,s,void 0,"bg");else{if("simple"==i||"fade"==i)return void _tpt.gsap.fromTo(e,.4,{opacity:0},{opacity:1,onStart:function(){SR7.F.drawBG(e,s,void 0,"bg")},onComplete:function(){SR7.F.drawBG(t,s,void 0,"bg")}});if("hslide"==i){let i=e.parentNode.style.overflow;e.parentNode.style.overflow="hidden",_tpt.gsap.fromTo(t,.4,{opacity:1,x:"0%"},{opacity:1,x:"left"==a?"100%":"-100%"}),_tpt.gsap.fromTo(e,.4,{opacity:1,x:"left"==a?"-100%":"100%"},{opacity:1,x:"0%",onStart:function(){t.style.opacity=1,SR7.F.drawBG(e,s,void 0,"bg")},onComplete:function(){t.style.opacity=0,SR7.F.drawBG(t,s,void 0,"bg"),e.parentNode.style.overflow=i}})}}};_tpt.R??={},_tpt.R.navigation=_tpt.extend?_tpt.extend(_tpt.R.navigation,{status:2,version:"1.0"}):{status:2,version:"1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},SR7.D??={},void 0!==SR7.F.prepareSlides)return;const e=(e,t,s,i)=>{const a=`${t}STR${s+1}`;e.slides[a]=_tpt.extend({},SR7.M[i].slides[t]),e.slides[a].slide.order=s+1,e.slides[a].slide.id=a},t=async(t,s,i)=>new Promise((async a=>{if(null==s?.sourceSlideId||null==s?.sourceModuleId)return void a(!1);let r,o=SR7.E?.v6v7ids?.n?.[s?.sourceSlideId];for(let e in SR7.JSON)if(!r&&String(SR7.JSON[e]?.id)===String(s?.sourceModuleId))if(SR7.JSON[e]?.slides?.[s?.sourceSlideId])r=e;else for(let t in SR7.JSON[e]?.slides)String(SR7.JSON[e]?.slides[t]?.slide?.id)===String(s?.sourceSlideId)||String(SR7.JSON[e]?.slides[t]?.id)===String(s?.sourceSlideId)?r=e:String(SR7.JSON[e]?.slides[t]?.slide?.id)!==String(o)&&String(SR7.JSON[e]?.slides[t]?.id)!==String(o)||(r=e,s.sourceSlideId=o);void 0!==r&&void 0===SR7.M[r]&&(SR7.M[r]={},SR7.M[r].c={},await SR7.F.prepareModule({id:s?.sourceModuleId,result:SR7.JSON[r],onlyPrepare:!0})),void 0===r?(r=s?.sourceModuleId,_tpt.restAPI({action:"get_full_slider_object",version:s?.sourceModuleEngine??7,id:r,callBack:async l=>{try{l="object"!=typeof l?JSON.parse(l):l}catch(e){l=_tpt.fixResponse(l)}!1===l.success?a(!1):(SR7.F.regAddonResources(l.addOns??{}),SR7.JSON??={},SR7.JSON[r]=l,SR7.M[r]={},SR7.M[r].c={},await SR7.F.prepareModule({id:r,result:l,onlyPrepare:!0}),void 0===SR7.M[r].slides[s?.sourceSlideId]&&(null==o&&(o=l?.v6v7ids?.n?.[s?.sourceSlideId]),void 0!==o&&(s.sourceSlideId=o)),e(t,s?.sourceSlideId,i,r),a(!0))}})):(e(t,s?.sourceSlideId,i,r),a(!0))})),s=s=>{const i=SR7.M[s];return(e=>{const t=SR7.M[e];return new Promise((s=>{if(void 0!==t.stream&&Object.keys(t.stream).length>0)s();else{let i="wp-gallery"==t.settings.source.type?t.settings.source.sourceids:t.settings?.dbid??"";i=""==i?t.c?.module?.dataset?.id??e.replace("SR7_","").split("_")[0]:i,_tpt.restAPI({action:"get_stream_data",id:i,callBack:e=>{if("object"!=typeof e)try{e=JSON.parse(e)}catch(t){e=_tpt.fixResponse(e)}0==e.success?console.log("Feed could not be Loaded"):(delete e.success,t.stream=e.data),s()}})}}))})(s).then((async()=>{const a=Object.entries(i.slides).filter((([e,{slide:t}])=>_tpt.hop(i.slides,e)&&!t.global));if(i.slideTMP=a.map((([e,{slide:t}])=>({key:e,order:t.order-1}))),null==i.stream||0==Object.keys(i.stream).length){let e=i.settings.source.type.charAt(0).toUpperCase()+i.settings.source.type.slice(1);return void SR7.F.errorSlide({id:s,subtitle:e+" reports: Please check the settings"})}const r=Object.keys(i.stream).length;if(0==r)return;const{length:o}=i.slideTMP;let l=0;SR7.JSON??={};for(let a=0;a<r;a++){await t(i,i.stream[a],a)||e(i,i.slideTMP[l++%o].key,a,s)}for(let e of i.slideTMP){i.c.slides[e.key]&&i.c.slides[e.key].parentNode.removeChild(i.c.slides[e.key]);let t=document.getElementById(s+"-"+e.key);t&&t.parentNode.removeChild(t),delete i.slides[e.key]}i.fromStream=!0}))};SR7.F.errorSlide=({id:e,title:t="There is nothing to show here!",subtitle:s="Instagram reports: Please check the settings",icon:i='<i class="fa-warning"></i>',bg:a="#ffffff"})=>{const r=SR7.M[e];r.migrate=void 0,r.settings.type="hero",r.settings.nav=void 0,r.slides={error:{slide:{id:"error",version:"7.0.0",order:1},layers:{1:{id:1,content:{text:s},pos:{y:["21px","21px","17px","12px","7px"],h:["center"],v:["middle"],pos:"absolute"},tl:{in:{content:{all:[{pE:"d",sX:.9,sY:.9,o:0},{t:370,d:850,f:850,pE:"d",sX:1,sY:1,o:1}]}},out:{content:{all:[{t:0,d:300,f:300,pE:"n",o:0}]}}},tA:["center"],color:["#000000"],font:{family:"'Arial, Helvetica, sans-serif'",size:["#a",20,16,12,7],weight:["200","200","200","200","200"],ls:[0,0,0,0,0]},lh:["#a",20,16,12,7],type:"text"},2:{id:2,content:{text:t},pos:{y:["-20px","-20px","-16px","-12px","-7px"],h:["center"],v:["middle"],pos:"absolute"},tl:{in:{content:{all:[{pE:"d",sX:.9,sY:.9,o:0},{t:200,d:1e3,f:1e3,pE:"d",sX:1,sY:1,o:1}]}},out:{content:{all:[{t:0,d:300,f:300,pE:"n",o:0}]}}},tA:["center"],color:["#000000"],font:{family:"'Arial, Helvetica, sans-serif'",size:["30px","30px","24px","18px","11px"],weight:["200","200","200","200","200"],ls:[0,0,0,0,0]},lh:["30px","30px","24px","18px","11px"],type:"text"},3:{id:3,content:{text:i},pos:{y:["-70px","-70px","-57px","-43px","-26px"],h:["center"],v:["middle"],pos:"absolute"},tl:{in:{content:{all:[{pE:"d",sX:.9,sY:.9,o:0},{t:0,d:1040,f:1040,pE:"d",sX:1,sY:1,o:1}]}},out:{content:{all:[{t:0,d:300,f:300,pE:"n",o:0}]}}},tA:["center"],color:["#000000"],font:{family:"'Arial, Helvetica, sans-serif'",size:["50px","50px","41px","31px","19px"],weight:[400,400,400,400,400],ls:[0,0,0,0,0]},lh:["50px","50px","41px","31px","19px"],type:"text"},4:{id:4,subtype:"slidebg",size:{cMode:"cover"},bg:{color:a},tl:{in:{bg:{ms:1e3,rnd:!1,temp:{t:"*opacity* Fade In",p:"fade",m:"basic",g:"fade"},in:{o:0},out:{a:!1}}}},type:"shape"}}}},r.slides.error=_tpt.extend(r.slides.error,SR7.D.slideObj(e,r.slides.error.slide,1)),r.slides.error.layers=_tpt.extend(r.slides.error.layers,SR7.D.layerObjects({id:e,slide:r.slides.error,sid:"error",msource:"gallery"}))},SR7.F.prepareSlide=(e,t,s,a)=>{const r=SR7.M[e];r.zones[t]??={};let o=r.slides[t].slide?.attr?.id??"";if(o=""==o?e+"-"+t:o,r.c.slides[t]=document.getElementById(o),r.fromStream&&!r.slides[t].slide.global){r.slides[t].slide.title=SR7.F.getFeed(r,r.slides[t].slide.order,"title"),r.slides[t].slide.thumb.src=SR7.F.getFeed(r,r.slides[t].slide.order,"thumb",void 0,void 0,r.slides[t].slide.thumb?.default?.image?.src);for(let s=0;s<=r.slides[t].slide?.actions?.length;s++)r.slides[t]?.slide?.actions?.[s]?.link&&(r.slides[t].slide.actions[s]=_tpt.extend({},r.slides[t].slide.actions[s]),r.slides[t].slide.actions[s].link?.includes("{{")&&(r.slides[t].slide.actions[s].link=SR7.F.updateDynamicMetas(e,r.slides[t].slide.order,r.slides[t].slide.actions[s].link)));for(let s=0;s<=10;s++)void 0!==(r.slides[t]?.slide?.params?.[s]??void 0)&&(r.slides[t].slide.params[s].v=SR7.F.updateDynamicMetas(e,r.slides[t].slide.order,r.slides[t].slide.params[s].v).trim().replaceAll("<br>","").replace(/  +/g," "))}null==r.c.slides[t]&&(s??=_tpt.collector(),r.c.slides[t]=s.add({tag:"sr7-slide",id:e+"-"+t,class:r.slides[t].slide.global?"sr7-staticslide":"",datas:{key:t}})),!r.slides[t].slide.global&&r.settings.acc?.use&&("unset"!==String(r.slides[t].slide.acc.label).toLowerCase()&&""!==String(r.slides[t].slide.acc.label).toLowerCase()&&r.c.slides[t].setAttribute("aria-label","auto"==String(r.slides[t].slide.acc.label).toLowerCase()?""==r.slides[t].slide.title?"Slide "+r.slides[t].slide.order:r.slides[t].slide.title:r.slides[t].slide.acc.label),r.c.slides[t].setAttribute("aria-hidden","false"==String(r.slides[t].slide.acc.hidden)?"false":"true"),"unset"!==String(r.slides[t].slide.acc.role).toLowerCase()&&(r.c.slides[t].setAttribute("aria-roledescription",r.slides[t].slide.acc.roledep??"slide"),r.c.slides[t].setAttribute("aria-role",r.slides[t].slide.acc.role??"presentation")));for(let s in r.slides[t].slide.addOns){if(!_tpt.hop(r.slides[t].slide.addOns,s))continue;SR7.A?.[s]?.prepareSlide&&SR7.A[s].prepareSlide(e,t)}return r.slides[t].slide.global?(a+=(""==a?"":",")+t,r.c.slides[t].classList.add("sr7-staticslide"),r.c.slides[t].classList.add("back"==r.slides[t].slide.pos?"sr7-staticslide-low":"sr7-staticslide-high"),r.c.slides[t].style.pointerEvents="none",r.staticDiffLayers&&(s??=_tpt.collector(),r.c.slides[t+"_2"]=s.add({tag:"sr7-slide",id:e+"-"+t+"_2",class:"sr7-staticslide "+("back"==r.slides[t].slide.pos?"sr7-staticslide-high":"sr7-staticslide-low"),datas:{key:t+"_2"}}),a+=(""==a?"":",")+t+"_2",r.slides[t+"_2"]={slide:{global:!0},layers:{}})):void 0!==r.slides[t].slide.order?r.slideOrder[r.slides[t].slide.order-1]=t:r.slideOrder.push(t),r.settings.mod.d3&&_tpt.gsap.set(r.c.slides[t],{perspective:1600,transformStyle:"preserve-3d"}),"carousel"==r.settings.type&&"v"==r.settings.carousel.type&&(r.c.slides[t].style.overflow="hidden"),i(r.slides[t].slide.actions),{missingSlides:s,staticSlides:a}},SR7.F.prepareSlides=async function(e){const t=SR7.M[e];t.slides??={},t.c.slides??={},t.zones??={};let i,a,r="";if("gallery"!==t.settings.source.type&&await s(e),"hero"==t.settings.type){t.slideOrder=Array(1);let s=999999,o="";for(a in t.slides)_tpt.hop(t.slides,a)&&(void 0!==t.slides[a].slide.order&&s>t.slides[a].slide.order&&(s=t.slides[a].slide.order,o=a),t.slides[a].slide.global?({missingSlides:i,staticSlides:r}=SR7.F.prepareSlide(e,a,i,r)):""==o&&(o=a));({missingSlides:i,staticSlides:r}=SR7.F.prepareSlide(e,o,i,r))}else for(a in t.slideOrder=Array(Object.keys(t.slides).length),t.slides)_tpt.hop(t.slides,a)&&({missingSlides:i,staticSlides:r}=SR7.F.prepareSlide(e,a,i,r));if(i&&(t.c.adjuster??=t.c.module.getElementsByTagName("sr7-adjuster")[0],t.c.content??=t.c.module.getElementsByTagName("sr7-content")[0],t.c.carousel??=t.c.module.getElementsByTagName("sr7-carousel")[0],i.append("carousel"==t.settings.type?t.c.carousel:t.c.content)),t.slideOrder=t.slideOrder.filter(Boolean),t.slideOrder=t.settings.slideshow.shuffle?_tpt.gsap.utils.shuffle(t.slideOrder):t.slideOrder,t.staticSlides=r.split(","),"carousel"==t.settings.type)for(let e in t.staticSlides)_tpt.hop(t.staticSlides,e)&&t.staticSlides[e]&&t.slides[t.staticSlides[e]].slide.respVP&&t.c.content.appendChild(t.c.slides[t.staticSlides[e]]);t.prev??={},t.current??={},t.next??={};for(let e of["index","slide","id"])t.current[e]=t.prev[e]=t.next[e]=-1;for(var o in t.navSlideOrder=[],t.slideOrder)t.slides[t.slideOrder[o]]?.slide?.slideshow?.hfn||t.navSlideOrder.push(t.slideOrder[o]);t.len=t.slideOrder.length,t.navLen=t.navSlideOrder.length};const i=e=>{if(null!=e)for(let t in e)if(_tpt.hop(e,t)&&"open_modal"==e[t].a){let s=e[t].target;if(SR7.F?.modal?.prepared?.[s])continue;SR7.F.modal.prepared??={},SR7.F.modal.prepared[s]=!0;let i=SR7.F.module.getIdByAlias(s);if(void 0!==i&&void 0!==SR7.M[i].c.module){let e=_tpt.strSetToObj(SR7.M?.[i]?.c?.module?.dataset?.modal??"");SR7.F.modal.register({id:i,alias:s,speed:parseInt(e.sp??1e3)/1e3,bg:e.bg??"transparent",pS:e.pS,v:e.v??"middle",h:e.h??"center"})}else _tpt.restAPI({action:"get_modal_settings",version:7,id:i,alias:s,forcealias:null==i,callBack:e=>{if("object"!=typeof e)try{e=JSON.parse(e)}catch(t){e=_tpt.fixResponse(e)}0==e.success?console.log(s+" Could not be Loaded from DB"):(e.sp=""==e.sp?"1000":e.sp,e.v6v7ids&&(SR7.E.v6v7ids=_tpt.extend(SR7.E.v6v7ids,e.v6v7ids)),e.trans&&(SR7.E.transtable=_tpt.extend(SR7.E.transtable,e.trans)),e.navs&&(SR7.NAV=_tpt.extend(SR7.NAV,obj.p)),SR7.F.modal.register({id:e.id,alias:s,speed:parseInt(e.sp??1e3)/1e3,bg:e.bg??"transpaent",pS:e.pS,v:e.v??"middle",h:e.h??"center"}))}})}};SR7.F.getSlideARatios=e=>{const t=SR7.M[e];if(void 0===t.slideRatios)for(let e in t.c.slides)if(_tpt.hop(t.slides,e))for(let s in t.slides[e].layers)t.slideRatios??={},_tpt.hop(t.slides[e].layers,s)&&"slidebg"==t.slides[e].layers[s].subtype&&(t.slideRatios[e]=""!=(t.slides[e].layers[s].bg?.image?.src??"")&&_tpt.getRatio((t.slides[e].layers[s].bg?.image?.ratio??void 0)||(t.slides[e].layers[s].bg?.video?.ratio??void 0)||1))};document.addEventListener("sr.slide.changeRequest",(async function(e){const t=SR7.M[e.id];if(null==t||null==t||0==t.states.inViewPort){void 0!==t.c.module.observParams&&(t.c.module.observParams.callBack=function(t){_tpt.event.trigger("dom","sr.slide.changeRequest",{id:t.id,inlayers:e.inlayers,outlayers:e.outlayers})},t.c.module.observParams.runonce=!0,t.c.module.observParams.obj=t);let s=t.settings?.vPort??"100px";return s=Array.isArray(s)?s[0]:s,void _tpt.observeModule(t.c.module,s)}SR7.F.triggerSlideEvent(e.id,"beforeChange",["onbeforeswap"]),await SR7.F.drawSlide({id:e.id,slideid:t.next.id,type:"process",global:!0,render:!0,callback:e.callback,inlayers:e.inlayers,outlayers:e.outlayers})})),SR7.F.closeSlide=async e=>{const t=SR7.M[e];-1!=t.current.id&&(await SR7.F.animateLayers({id:e,skey:t.current.id,scene:"out"}),t.current={id:-1,slide:-1,index:-1})};const a=async(e,t)=>new Promise((s=>{Object.keys(SR7.M[e].slides[t]?.layers).length>0||SR7.M[e].slides[t]?.slide?.global||0==Object.keys(SR7.M[e].slides[t]?.slide).length?s():_tpt.restAPI({action:"get_full_slider_object",version:7,id:SR7.M[e].c.module.dataset.id??e,slideid:t,callBack:t=>{if("object"!=typeof t)try{t=JSON.parse(t)}catch(e){t=_tpt.fixResponse(t)}if(t.success){for(let s in t.slides){let i=t.slides[s].slide.id;Object.keys(SR7.M[e].slides[i]?.layers).length>0||(SR7.M[e].slides[i].layers=_tpt.extend(SR7.M[e].slides[i].layers,SR7.D.layerObjects({id:e,slide:t.slides[s],sid:i,msource:SR7.M[e].settings.source?.type??"gallery"})))}s()}}})}));SR7.F.preLoadSiblings=(e,t)=>{let s=SR7.M[e],i=s.slideOrder[t];i&&("preparing"==s.prepareMap[i]||s.prepareMap[i]||(s.prepareMap[i]="preparing",a(e,i).then((async()=>{await SR7.F.prepareLayers(e,i,!0).then((()=>{s.prepareMap[i]=!0}))}))))},SR7.F.drawSlide=async e=>{await a(e.id,e.slideid).then((async()=>{var t;0==SR7.M[e.id].c.content.offsetWidth&&await(t=SR7.M[e.id].c.content,new Promise((e=>{!function s(){t.offsetWidth>0?requestAnimationFrame((()=>e())):requestAnimationFrame(s)}()}))),await SR7.F.drawSlideProc(e)}))},SR7.F.drawSlideProc=async e=>{let{id:t,slideid:s,type:i,global:a,render:r,callback:o,inlayers:l,outlayers:n,keepSlideVisible:d}=e;const c=SR7.M[t];if(null!=SR7.M[t].slides[s]){if(SR7.preLoader.state(t)&&SR7.preLoader.state(t,c.c.slides[s])||SR7.preLoader.show(t,c.c.slides[s]),c.prepareMap??={},"preparing"==c.prepareMap[s])return setTimeout((async function(){await SR7.F.drawSlideProc(e)}),19);if(null==c.prepareMap[s]&&(c.prepareMap[s]="preparing"),await SR7.F.prepareLayers(t,s),c.fpsChecked||(_tpt.measureAverageFrameRate(4e3,t).then((e=>{c.averageFPS=e.averageFPS,c.lowFrameRateCount=e.lowFrameRateCount,c.averageFPS<30&&_tpt.event.trigger("dom","sr7.lowfps",{id:t,fps:e.averageFPS})})),c.fpsChecked=!0),c.prepareMap[s]=!0,SR7.preLoader.hide(t),SR7.preLoader.hide(t,c.c.slides[s]),"process"==i){let e=c.navLen-1;if(c.lastChangeDir=void 0!==c.current.index&&-1!==c.current.index?c.current.index<c.next.index&&c.next.index!==e||c.current.index==e&&0==c.next.index?1:c.current.index>c.next.index||0==c.current.index&&c.next.index==e?-1:1:1,!0!==d&&-1!==c.current.id&&c.current.id!==c.next.id&&await SR7.F.animateLayers({id:t,skey:c.current.id,scene:"out",layers:n}),!0!==d){for(let e of["index","slide","id"])c.prev[e]=c.current[e],c.current[e]=c.next[e],c.next[e]=-1;c.settings.acc?.use&&c.slides[c.current.id]?.slide?.acc?.label&&"auto"==String(c.slides[c.current.id]?.slide?.acc?.hidden).toLowerCase()&&(c.c.slides[c.current.id].setAttribute("aria-hidden","false"),c.c.slides[c.prev.id].setAttribute("aria-hidden","true")),c.settings.acc?.live&&"unset"!==String(c.slides[c.current.id]?.slide?.acc?.live??"unset").toLowerCase()&&_tpt.acc.announcer.update({customText:c.slides[c.current.id]?.slide?.acc?.live??void 0,moduleName:c.settings.alias,slideIndex:c.current.index,totalSlides:c.navLen,slideTitle:c.slides[c.current.id]?.slide?.title??"Slide "+(c.current.index+1)})}c.navLen>1&&c.slides[c.prev.id]?.slide.slideshow.hal&&((e,t)=>{const s=SR7.M[e];if(s.hideAfterLoop??={},s.hideAfterLoop[t]??=0,s.hideAfterLoop[t]++,s.hideAfterLoop[t]>=parseInt(s.slides[t].slide.slideshow.hal)){void 0!==SR7.F.navigation&&SR7.F.navigation.remove(e,t);let i=s.navSlideOrder.findIndex((e=>e==t));-1!==i&&s.navSlideOrder.splice(i,1),i=s.slideOrder.findIndex((e=>e==t)),-1!==i&&s.slideOrder.splice(i,1),s.current.index=s.navSlideOrder.findIndex((e=>e==s.current.id))}})(t,c.prev.id),!0!==d&&SR7.F.navigation&&SR7.F.navigation.select(t,c.current.id),c.settings.fixed||c.slides[s].slide.global||(c.c.slides[s].style.pointerEvents=c.settings.mod.d3?"none":"auto")}if(c.c.slides[s].style.visibility="visible",c.c.slides[s].style.display="block",a)for(let e in c.staticSlides)_tpt.hop(c.staticSlides,e)&&""!=c.staticSlides[e]&&await SR7.F.prepareLayers(t,c.staticSlides[e]).then((async()=>{c.c.slides[c.staticSlides[e]].style.display="block",c.c.slides[c.staticSlides[e]].style.visibility="visible",await SR7.F.drawRawLayers(t,c.staticSlides[e],"prepare"),await SR7.F.animateLayers({id:t,skey:c.staticSlides[e],scene:"out"}),await SR7.F.animateLayers({id:t,skey:c.staticSlides[e],scene:"in"})}));if(!0!==d&&SR7.F.modify.handleListeners(t),SR7.F.updateBasicMetas(t),SR7.F.drawRawLayers(t,s,"prepare"),r&&(c.firstRendering??={},c.firstRendering[s]??=!0,SR7.F.animateLayers({id:t,skey:s,layers:l})),"carousel"==c.settings.type){let i=c.c.layers?.[c.c.slideBGs[c.current.id]?.lid],a=c.c.layers?.[c.c.slideBGs[c.prev.id]?.lid];if(e.skipPan||(i?.tl?.in?.pan&&SR7.F.pan.refresh(t,c.current.id),a?.tl?.in?.pan&&a.tl.in.pan.timeScale(-3)),a?.media){let e=a.media.player.options;"1sttime"==e.autoPlay&&(e.autoPlay=!1),"no1sttime"==e.autoPlay&&(e.autoPlay=!0),a.media.pause(),e.rewind&&a.media.rewind()}for(let e in c.videosPlaying)_tpt.hop(c.videosPlaying,e)&&(c.videosPlaying[e].skey===c.current.id||c.videoDontInterrupt?.[e]||c.videosPlaying[e].pause());if(s==c.current.id)for(let e in c.videoPlayInFocus){if(!_tpt.hop(c.videoPlayInFocus,e))continue;const t=c.videoPlayInFocus[e];t.skey==c.current.id&&"false"!==String(t.options.autoPlay)&&"no1sttime"!==t.options.autoPlay&&t.play(),"no1sttime"!==t.options.autoPlay&&"1sttime"!==t.options.autoPlay||(t.carouselFirstFocus?t.options.autoPlay="no1sttime"===t.options.autoPlay:t.carouselFirstFocus=!0)}i?.media&&i.media.play(),SR7.F.modify?.processAll&&SR7.F.modify.processAll(t,"scroll")}if(requestAnimationFrame((function(){"carousel"!==c.settings.type&&(c.zones[s]?.all||!c.zones[s]?.all&&c.dims.lastZoneDefined)&&(((c.zones[s]?.all??0)<(c.dims.lastZoneHeight??0)||(c.zones[s]?.all??0)>(c.dims.lastHeight??0))&&SR7.F.updateModuleDims(t,!0),c.dims.lastHeight=c.dims.content.h,c.dims.lastZoneHeight=c.zones[s].all),c.dims.lastZoneDefined=void 0!==c.zones[s]?.all,"all"!==c.settings.carousel.showAllLayers&&s!=SR7.M[t].current.id||SR7.F.reposLayers(t),SR7.M[t].c.autoParents?.[s]&&requestAnimationFrame((async function(){c.firstRendering[s]=!1;for(let e of SR7.M[t].c.autoParents[s])("carousel"==c.settings.type&&"all"===c.settings.carousel.showAllLayers||"individual"===c.settings.carousel.showAllLayers&&SR7.M[t].slides[s].layers[e].viOC||s==SR7.M[t].current.id)&&await SR7.F.animateLayers({id:t,skey:s,layers:[e],scene:"in",caller:"update",update:"content"})}))})),"process"==i&&(c.zOrder.managed||SR7.F.swapSlidezIndex(t),"hero"!==c.settings.type&&c.len>1&&SR7.slideShow.start(t),requestAnimationFrame((()=>{_tpt.scrollObserver.run(c.c.module)})),void 0!==c.c.viSH&&(c.c.viSH.me??=SR7.F.module.listeners.reg(t,_tpt.is_mobile?"touchstart":"mouseenter",SR7.F.showHideLayersOnHover),c.c.viSH.ml??=SR7.F.module.listeners.reg(t,_tpt.is_mobile?"touchend":"mouseleave",SR7.F.showHideLayersOnHover),c.states.overModule||SR7.F.showHideLayersOnHover(t,"hide"))),"function"==typeof o&&o(t),c.c.module.dataset.current=c.current.id,"carousel"!==c.settings.type&&requestAnimationFrame((()=>{SR7.F.preLoadSiblings(t,c.current.index+1,!0),SR7.F.preLoadSiblings(t,c.current.index-1>=0?c.current.index-1:c.navLen-1,!0)})),!0===c.settings.browser.useURLDeeplink){const e=c.slides[c.current.id].slide.attr.deepLink;e&&window.location.hash!==e&&(window.location.hash=e)}}},SR7.F.swapSlidezIndex=(e,t)=>{const s=SR7.M[e];for(let e in s.c.slides)_tpt.hop(s.c.slides,e)&&!s.slides[e].slide.global&&e!==t&&e!==s.current.id&&e!==s.prev.id&&(s.c.slides[e].style.zIndex=1);void 0!==t&&void 0!==s.c.slides[t]?(s.c.slides[t].style.zIndex=5,void 0!==s.c.slides[s.current.id]&&(s.c.slides[s.current.id].style.zIndex=2)):(void 0!==s.c.slides[s.prev.id]&&(s.c.slides[s.prev.id].style.zIndex=2),void 0!==s.c.slides[s.current.id]&&(s.c.slides[s.current.id].style.zIndex=5))},SR7.F.requestSlide=function(e){let{id:t,slide:s,force:i=!1,getter:a,indicator:r}=e;var o=SR7.M[t];if("carousel"!==o.settings.type&&parseInt(o.settings?.nav?.nd??0)>0&&o.states.sceneInProgress)return o.states.waitingForNextCall=e,void(o.states.waitingForNextCallTimer||(o.states.waitingForNextCallTimer=setTimeout((()=>{SR7.F.slideDelayFinished(t)}),parseInt(o.settings.nav.nd))));delete o.states.waitingForNextCall;let l=!0;if(void 0!==s){if(s="#"==String(s)[0]&&-1==_tpt.findIndex(o.slideOrder,s.replace("#",""))?parseInt(s)>50?0:s.replace("#",""):s,"#"!==String(s)[0]){let e=o.navSlideOrder.indexOf(o.slideOrder[-1!==o.next.index?o.next.index:o.current.index]);e=-1==e?o.navSlideOrder.indexOf(o.slideOrder[o.lastNavRequested]):e,s="#"+o.navSlideOrder[_tpt.gsap.utils.wrap(0,o.navLen,"+"==(""+s)[0]||"-"==(""+s)[0]?parseInt(e)+parseInt(s):parseInt(s))]}o.required="#undefined"==s?0:_tpt.findIndex(o.slideOrder,s.replace("#","")),l=-1!==o.navSlideOrder.indexOf(o.slideOrder[o.required]),l&&(o.lastNavRequested=o.required,o.navRequired=o.navSlideOrder.indexOf(o.slideOrder[o.required]))}if(a)return o.required;if(!e.skipNav&&l&&(o.c.nav?.thumbs?.srcr&&o.c.nav.thumbs.srcr.goTo(o.navRequired??o.required),o.c.nav?.tabs?.srcr&&o.c.nav.tabs.srcr.goTo(o.navRequired??o.required)),"carousel"!=o.settings.type||"carousel"===r){if(-1==o.next.index&&-1!==o.required)o.next.index=o.required,o.required=-1,o.next.id=o.slideOrder[o.next.index],o.next.slide=o.c.slides[o.next.id];else if(!i)return;if(o.current.id!=o.next.id)_tpt.event.trigger("dom","sr.slide.changeRequest",e);else for(let e of["index","slide","id"])o.next[e]=-1}else o.c.carousel?.src&&o.c.carousel.src.goTo(o.required)},SR7.F.requestSlideFocus=(e,t)=>{const s=SR7.M[e];if(null==s)return;let i="all"==(s.settings?.carousel?.showAllLayers??!1);SR7.F.requestSlide({id:e,slide:"#"+t,indicator:s.settings.type,inlayers:i?[]:SR7.F.getCarouselLayers(e,t,"infocus"),outlayers:i?[]:SR7.F.getCarouselLayers(e,s.current.id,"outfocus"),skipNav:!0,render:!i})},SR7.F.redrawBG=async(e,t,s)=>{await SR7.F.drawSlide({id:e,slideid:t,skipPan:!0,type:"draw",global:!1,inlayers:SR7.F.getCarouselLayers(e,t,"visible"),render:s,callback:function(){"carousel"===SR7.M[e].settings.type&&SR7.F.showCarouselSlide(e,t)}})},SR7.F.nborSlide=(e,t)=>{const s=SR7.M[e];return s.current.index-1==t||s.current.index==t-1||0==s.current.index&&t==s.len-1||0==t&&s.current.index==s.len-1},SR7.slideShow={build:e=>{const t=SR7.M[e],s=t.settings.pbar,i=t.slideShow={t:0,d:0};return t.useProgressBar=void 0!==s&&s.set,void 0!==t.settings.slideshow.stopAt&&t.settings.slideshow.stopAt>=0&&(i.stopAt=parseInt(t.settings.slideshow.stopAt)),void 0!==t.settings.slideshow.loop&&t.settings.slideshow.loop>=0&&(i.loop=parseInt(t.settings.slideshow.loop)-1,i.stopAt=i.stopAt||t.navLen),!_tpt.is_mobile&&t.settings.slideshow.auto&&t.settings.slideshow.sOH&&(i.listenEnter=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchstart":"mouseenter",SR7.slideShow.pauseOnHover),i.listenLeave=SR7.F.module.listeners.reg(e,_tpt.is_mobile?"touchstart":"mouseleave",SR7.slideShow.resumeOnLeave)),null==i.loop&&i.stopAt>=0&&(i.loop=0),t.useProgressBar?(i.c=_tpt.collector().add({tag:"canvas",class:"sr7-pbar",id:e+"-pbar"}),i.ctx=i.c.getContext("2d"),i.parts="slide"==s.base?1:t.navLen,i.gap=parseInt("slide"==s.base?0:s.g?s.gs:0),s.s=parseInt(s.s),t.c.content.appendChild(i.c),SR7.slideShow.resize(e),"cw"==s.t||"ccw"==s.t?i.r=parseInt(s.r):(i.totalSize="horizontal"===s.t?i.w:i.h,i.partSize=(i.totalSize-(i.parts-1)*i.gap)/i.parts,i._={w:parseInt("horizontal"==s.t?i.partSize:s.s),h:parseInt("horizontal"==s.t?s.s:i.partSize),x:0,y:0,gw:"horizontal"==s.t?i.gap:s.s,gh:"horizontal"==s.t?s.s:i.gap,k:"horizontal"==s.t?"x":"y"}),i.rtl="horizontal"==s.t?"right"==s.h:"vertical"==s.t&&"bottom"==s.v,i.tween=_tpt.gsap.fromTo(i,9,{t:0},{t:100,ease:"none"}),i.tween.pause(),i.tween.eventCallback("onUpdate",SR7.slideShow["cw"==s.t||"ccw"==s.t?"drawCircle":"drawBar"],[e]),i.tween.eventCallback("onComplete",(e=>{SR7.F.requestSlide({id:e,slide:"+1"}),SR7.F.triggerSlideEvent(e,"ended")}),[e]),t.settings.pbar.s=parseInt(t.settings.pbar.s),_tpt.resizeObserver.observe((e=>{SR7.slideShow.resize(e)}),19,e),i):(i.tween=_tpt.gsap.fromTo(i,9,{t:0},{t:100,ease:"none"}),i.tween.eventCallback("onComplete",(e=>{SR7.F.requestSlide({id:e,slide:"+1"}),SR7.F.triggerSlideEvent(e,"ended")}),[e]),void i.tween.eventCallback("onUpdate",(function(){t?.c?.nav?.scrubber?.progTween&&!t?.c?.nav?.scrubber?.srScrubber?.dragging&&t.c.nav.scrubber.progTween.progress(this.progress())}),[e]))},fastForward:e=>{const t=SR7.M[e],s=t.settings.pbar,i=t.slideShow;i.FF={Sindex:i.Sindex,Reverse:t.current.index<i.Sindex,extra:0!=i.tween.progress()&&t.current.index<i.Sindex,t:100*i.tween.progress()||(i.Sindex<t.current.index?0:100)},i.tweenFF=_tpt.gsap.to(i,{duration:i.tween.progress()>0?(i.FF.Reverse?i.tween.progress():1-i.tween.progress())/10:.1,ease:"none"}),i.tween&&(i.tween.progress(0),i.tween.pause()),i.tweenFF.eventCallback("onUpdate",SR7.slideShow["cw"==s.t||"ccw"==s.t?"drawCircle":"drawBar"],[e,!0]),i.tweenFF.eventCallback("onComplete",((e,t,s)=>{t.FF.Sindex<s.current.index?t.FF.Sindex++:t.FF.Sindex>s.current.index&&t.FF.Sindex--,t.FF.Reverse&&(t.tweenFF.invalidate(),t.FF.t=100),t.FF.Sindex!==s.current.index||t.FF.extra?t.tweenFF.play(0):SR7.slideShow.play(e),t.FF.extra=!1,t.tweenFF.duration(.1)}),[e,i,t])},nullTimer:e=>{const t=SR7.M[e],s=t.slideShow;t.useProgressBar=!1,t.settings.slideshow.auto=!1,void 0!==s&&void 0!==s.c&&_tpt.gsap.to(s.c,.5,{opacity:0,onComplete:()=>{s.c.remove()}})},pauseOnHover:(e,t)=>{SR7.M[e].slideShow.sOH=!0,SR7.slideShow.pause(e,t)},resumeOnLeave:(e,t)=>{SR7.M[e].slideShow.sOH=!1,SR7.slideShow.resume(e)},pause:(e,t)=>{null!=SR7.M[e].slideShow&&null!=SR7.M[e].slideShow.tween&&(!0===t&&(SR7.M[e].states.forcedPause=!0),SR7.M[e].slideShow.tween.pause(),SR7.M[e].slideShow.state="paused",SR7.F.updateAllTogglePrgLayers(e),SR7.F.triggerSlideEvent(e,"pause",["onpause"]))},resume:e=>{null!=SR7.M[e].slideShow&&null!=SR7.M[e].slideShow.tween&&(delete SR7.M[e].states.forcedPause,delete SR7.M[e].slideShow.state,SR7.M[e].slideShow.tween.play(),SR7.F.updateAllTogglePrgLayers(e),SR7.F.triggerSlideEvent(e,"resume",["onresume"]))},getLen:e=>{const t=SR7.M[e];return parseInt("default"==(t.slides[t.current?.id??-1]?.slide?.slideshow?.len??"default")?t.settings.default.len??9e3:t.slides[t.current.id??-1].slide.slideshow.len??9e3)},start:e=>{const t=SR7.M[e],s=t.settings.slideshow.auto?t.slideShow||SR7.slideShow.build(e):void 0;if(!t.settings.slideshow.auto||void 0!==s&&0==s.loop&&s.stopAt-1==t.current.index)return SR7.slideShow.nullTimer(e),void _tpt.event.trigger("dom","sr.module.finished",{id:e});void 0!==s&&s.loop>=0&&t.current.index==t.len-1&&s.loop--,t.useProgressBar?(SR7.slideShow.resize(e),"animate"==t.settings.pbar.rev&&("paused"==SR7.M[e].slideShow.state||1!==s.tween.progress()&&0!==s.tween.progress()||t.current.index<s.Sindex||t.current.index>s.Sindex+1)?SR7.slideShow.fastForward(e):SR7.slideShow.play(e)):SR7.slideShow.play(e)},play:(e,t=0)=>{const s=SR7.M[e],i=s.slideShow;i.Sindex=s.current.index,i.d=SR7.slideShow.getLen(e),i.tween.duration(i.d/1e3),SR7.F.updateAllTogglePrgLayers(e),"paused"==SR7.M[e].slideShow.state?(i.tween.play(0),requestAnimationFrame((function(){i.tween.pause()}))):i.tween.play(t)},resize:e=>{const t=SR7.M[e];if(!t.settings.slideshow.auto||!t.useProgressBar)return;const s=t.settings.pbar,i=t.slideShow;i.w=parseInt("horizontal"==s.t?"grid"==s.a?t.dims.CFC.w:t.dims.content.w:"vertical"==s.t?parseInt(s.s):2*parseInt(s.r)),i.h=parseInt("horizontal"==s.t?parseInt(s.s):"vertical"==s.t?"grid"==s.a?t.dims.CFC.h:t.dims.content.h:2*parseInt(s.r)),i.c.style.width=i.w+"px",i.c.style.height=i.h+"px",i.c.width=i.w*window.devicePixelRatio,i.c.height=i.h*window.devicePixelRatio,i.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),i.resized=!0,SR7.gV({v:s.vis,id:e})?(i.c.style.visibility="visible",i.c.style.top="vertical"!==s.t?"top"==s.v?parseInt(s.y??0)+("grid"==s.a?t.dims.CFC.y:0)+"px":(("grid"==s.a?t.dims.CFC.y+t.dims.CFC.h:t.dims.content.h)-parseInt(s.y??0)-("cw"==s.t||"ccw"==s.t?2*parseInt(s.r):parseInt(s.s)))/("bottom"==s.v?1:2)+"px":"grid"==s.a?t.dims.CFC.y+"px":"0px",i.c.style.left=("horizontal"!==s.t?"left"==s.h?parseInt(s.x??0)+("grid"==s.a?t.dims.CFC.x:0):(("grid"==s.a?t.dims.CFC.x+t.dims.CFC.w:t.dims.content.w)+("right"==s.h?-1:1)*parseInt(s.x??0)-("cw"==s.t||"ccw"==s.t?2*parseInt(s.r):parseInt(s.s)))/("right"==s.h?1:2):"grid"==s.a?t.dims.CFC.x:0)+"px","cw"!=s.t&&"ccw"!=s.t&&(i.totalSize="horizontal"===s.t?i.w:i.h,i.partSize=(i.totalSize-(i.parts-1)*i.gap)/i.parts,null!=i._&&(i._.w=parseInt("horizontal"==s.t?i.partSize:s.s),i._.h=parseInt("horizontal"==s.t?s.s:i.partSize),SR7.slideShow["cw"==s.t||"ccw"==s.t?"drawCircle":"drawBar"](e)))):i.c.style.visibility="hidden"},drawCircle:(e,t)=>{const s=SR7.M[e],i=s.slideShow;if(!t&&void 0!==i.tweenFF&&i.tweenFF.isActive())return;const a=s.settings.pbar,r=t?i.FF.Sindex:i.Sindex,o=(t?i.FF.t:i.t)/100;s?.c?.nav?.scrubber?.progTween&&!s?.c?.nav?.scrubber?.srScrubber?.dragging&&s.c.nav.scrubber.progTween.progress(o);let l="slide"==a.base?360*o:360/i.parts*o;"slide"!==a.base&&(l+=360/i.parts*r),"ccw"==a.t&&(l=360-l),i.r-parseInt(a.s)<=0&&(a.s=a.r/4),i.ctx.lineCap="round",i.ctx.clearRect(0,0,2*a.r,2*a.r),i.ctx.beginPath(),i.ctx.arc(i.r,i.r,a.r-a.s,Math.PI/180*270,Math.PI/180*630),i.ctx.strokeStyle=a.bg,i.ctx.lineWidth=a.s-1,i.ctx.stroke(),i.ctx.beginPath(),i.ctx.strokeStyle=a.c,i.ctx.lineWidth=a.s,i.ctx.arc(i.r,i.r,a.r-a.s,Math.PI/180*270,Math.PI/180*(270+l),"cw"!==a.t),i.ctx.stroke()},drawBar:(e,t)=>{const s=SR7.M[e],i=s.slideShow;if(!t&&void 0!==i.tweenFF&&i.tweenFF.isActive())return;const a=s.settings.pbar,r=t?i.FF.Sindex:i.Sindex;i.ctx.clearRect(0,0,i.c.width,i.c.height);const o=(t?i.FF.t:i.t)/100,l=i.partSize*o;s?.c?.nav?.scrubber?.progTween&&!s?.c?.nav?.scrubber?.srScrubber?.dragging&&s.c.nav.scrubber.progTween.progress(o),i._.pw="horizontal"==a.t?l:a.s,i._.ph="horizontal"==a.t?a.s:l;for(let e=0;e<i.parts;e++)i._[i._.k]=i.rtl?i.totalSize-(e+1)*(i.partSize+i.gap)+i.gap:e*(i.partSize+i.gap),i.ctx.fillStyle=e<r&&1!==i.parts||e===r&&100===i.t?a.c:a.bg,i.ctx.fillRect(i._.x,i._.y,i._.w,i._.h),e!==r&&1!=i.parts||(i._[i._.k]=i.rtl?i._[i._.k]+i.partSize-l:i._[i._.k],i.ctx.fillStyle=a.c,i.ctx.fillRect(i._.x,i._.y,i._.pw,i._.ph));if(i.gap>0){i.ctx.fillStyle=a.gc;for(let e=1;e<i.parts;e++)i._[i._.k]=i.rtl?i.totalSize-e*(i.partSize+i.gap):e*i.partSize+(e-1)*i.gap,"transparent"==a.gc?i.ctx.clearRect(i._.x,i._.y,i._.gw,i._.gh):i.ctx.fillRect(i._.x,i._.y,i._.gw,i._.gh)}}},_tpt.R??={},_tpt.R.slide=_tpt.extend?_tpt.extend(_tpt.R.slide,{status:2,version:"1.0"}):{status:2,version:"1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F=SR7.F||{},void 0!==SR7.F.initCarousel)return;SR7.F.initCarousel=function(s,i){var a=SR7.M[s];if("carousel"===a.settings.type){void 0===a.c.carousel&&(a.c.carousel={});var r=a.c.carousel;r.slides=[];for(var o=0;o<a.len;o++)r.slides.push(a.c.slides[a.slideOrder[o]]);var l=SR7.F.setCarouselSlideDims(s),n={startIndex:"#"==String(i)[0]&&-1!==_tpt.findIndex(a.slideOrder,i.replace("#",""))?_tpt.findIndex(a.slideOrder,i.replace("#","")):i,mID:s,slides:r.slides,trigger:a.c.module,wrap:a.c.carousel,width:l.width,height:l.height,syncO:!0,length:SR7.slideShow.getLen(s),slideChange:function(e){SR7.F.requestSlideFocus(s,a.slideOrder[e])},snappingTo:function(e){a.c.nav?.thumbs?.srcr&&a.c.nav.thumbs.srcr.goTo(a.c.nav.thumbs.srcr.getRealIndex(a.c.nav.thumbs.srcr.wrapIndex(e))),a.c.nav?.tabs?.srcr&&a.c.nav.tabs.srcr.goTo(a.c.nav.tabs.srcr.getRealIndex(a.c.nav.tabs.srcr.wrapIndex(e)))},slideVisible:function(e,t){var i=r.slides[e].dataset.key;a.slides[i].slide.visible=!0,t&&a.checkCarouselDone&&SR7.F.redrawBG(s,i)},slideHidden:function(e){var t=r.slides[e].dataset.key;a.slides[t].slide.visible=!1},onInteract:function(){SR7.slideShow.pause(s)},onIdle:function(){SR7.M[s]?.slideShow?.sOH||SR7.slideShow.resume(s)},exclude:["SR7-THUMBS","SR7-TABS","SR7-SCRUBBER"],callRebuild:function(e,t){!a.c.nav?.scrubber?.srScrubber?.rebuild||a.c.nav.scrubber.srScrubber.dragging||a.settings.carousel.justify||a.c.nav.scrubber.srScrubber.rebuild({p:e,targetIndex:t})}};"mousedrag"===a.settings.mod.t&&(n.mouseDrag=!0,n.processMod=function(){for(var e in a.slideOrder)a.slides[a.slideOrder[e]].slide.visible&&SR7.F.modify.pOS(s,"mouse",void 0,a.slideOrder[e])}),("false"==String(a.settings.nav?.s?.mobC)&&_tpt.is_mobile||"false"==String(a.settings.nav?.s?.deskC)&&!_tpt.is_mobile)&&(n.ignoreDrag=!0),n=e(_tpt.extend(n,a.settings.carousel,{length:SR7.slideShow.getLen(s)})),r.src=new t(n),_tpt.resizeObserver.observe((e=>{SR7.F.rebuildCarousel(e)}),19,s)}};let e=e=>(e.minS=parseFloat(e.minS??100)/100,e.maxR=parseFloat(e.maxR??0),e.maxO=parseFloat(e.maxO)/100,e.ease=e.ease.replace(".inOut",".out").replace(".in",".out"),e.dur=Math.min(parseInt(e.dur??800),e.length)/1e3,e);function t(e){this.proxy=document.createElement("div"),this.follower=document.createElement("div"),this.slides=e.slides,this.ignoreDrag=e.ignoreDrag,this.arr=[],this.s=e,this.len=e.slides.length,this.last=this.len-1,this.lerp=.1,this.pX=this.lpX=this.pY=this.lpY=0,this.setDefaults(),this.setType(),this.lastMouseEvent;var t=this;!0!==this.ignoreDrag&&(this.draggable=_tpt.draggable.create(this.proxy,{trigger:e.trigger,type:"h"==this.type?"x":"y",inertia:!0,cursor:"grab",activeCursor:"grabbing",throwResistance:this.s.snap?8e3:500,edgeResistance:.8,dragClickables:!1,clickableTest:e=>{if("true"==String(e?.dataset?.clickable))return!0},onPress:function(e){t.lastMouseEvent="press";if(t.onDragDone=!1,t.s.exclude)for(var s=0;s<t.s.exclude.length;s++)_tpt.closestNode(e.target,t.s.exclude[s])&&this.endDrag();_tpt.gsap.to(t,{lerp:.1}),t.s.onInteract&&t.s.onInteract()},onClick:function(e){if(t.lastMouseEvent="click",_tpt.is_mobile&&("SR7-TABS"==this.vars.trigger.tagName||"SR7-THUMBS"==this.vars.trigger.tagName))for(var s=e.target;s&&s!==document;){if("SR7-TAB"===s.tagName||"SR7-THUMB"===s.tagName){s.click();break}s=s.parentNode}},onDragStart:function(){t.lpX=t.pX=this.pointerX,t.lpY=t.pY=this.pointerY,t.direction=this.getDirection(),t.tick||(t.tick=window.requestAnimationFrame(t.lerpHandler)),t.dragging=!0,t.s.lastDirection=this.getDirection(),t.s.realDragging=!0,t.s.dragTime=(new Date).getTime(),t.beforeDragFocused=t.focused},onDragEnd:function(){t.s.realDragging=!1,t.s.dragTimeDiff=(new Date).getTime()-t.s.dragTime},onDrag:function(e){if(t.lastMouseEvent="drag",0===e.pressure)return t.draggable.endDrag();t.onDragDone=!0,t.pX=this.pointerX,t.pY=this.pointerY,t.s.dragTimeDiff=(new Date).getTime()-t.s.dragTime,t.s.lastDirection!==this.getDirection()&&(t.s.directionChanged=!0),t.s.lastDirection=this.getDirection(),SR7.A?.mousetrap&&(SR7.A.mousetrap.processOnSlide(t.s.trigger.id,{type:"dragmove",clientX:t.pX,clientY:t.pY},!0),SR7.A.mousetrap.processOnLayer(t.s.trigger.id,{type:"dragmove",clientX:t.pX,clientY:t.pY}))},onRelease:function(e){!t.onDragDone&&t.s.onIdle&&t.s.onIdle()},snap:{[this.tr]:e=>{let s=t.s.trigger.id;return(!this.forceScroll||!SR7.M[s])&&this.snap.bind(this)(e)}},zIndexBoost:!1,allowContextMenu:!0})[0]),_tpt.gsap.set([this.proxy,this.follower],{[this.tr]:"+=0"}),this.lerpHandler=this.updateSlides.bind(this),this.tick=window.requestAnimationFrame(t.lerpHandler),this.rebuild({targetIndex:e.startIndex}),delete e.startIndex}SR7.F.hideCarouselSlides=function(e){const t=SR7.M[e];for(var s=0;s<t.len;s++){let e=t.slideOrder[s];_tpt.gsap.set(t.c.slides[e],{opacity:0})}},SR7.F.showCarouselSlide=function(e,t){const s=SR7.M[e];for(var i=0;i<s.len;i++){let e=s.c.carousel.src.arr[i],a=e.elem.dataset.key;a===t&&requestAnimationFrame((function(){_tpt.gsap.to(e,{syncedO:1,duration:1,onUpdate:function(e,t){_tpt.gsap.set(s.c.slides[e],{opacity:void 0===t.opacity?t.syncedO:Math.min(t.syncedO,t.opacity)})},onUpdateParams:[a,e]})}))}},SR7.F.rebuildCarousel=function(e,t=!0,s=!0){var i=SR7.M[e];if(i?.c?.carousel?.src){var a=i.c.carousel.src.s,r=SR7.F.setCarouselSlideDims(e);a.width=r.width,a.height=r.height;var o=i.dims.module.w,l=i.dims.content.h;a.justify||("h"===a.type&&(o=Math.min(o,a.width*a.maxV+a.space*Math.max(a.maxV-2,0))),"v"===a.type&&(l=Math.min(l,a.height*a.maxV+a.space*Math.max(a.maxV-2,0)))),a.wrapWidth=o,a.wrapHeight=l,_tpt.gsap.set(i.c.carousel,{width:o,height:l,left:"center"===a.align?(i.dims.module.w-o)/2-("left"!=(i.dims.outNav?.align??"left")||i.settings.size.fullWidth?0:(i.dims.outNav?.w??0)/2):"end"===a.align?i.dims.module.w-o:0,top:"center"===a.align?(i.dims.content.h-l)/2:"end"===a.align?i.dims.content.h-l:0}),s&&i.c.carousel.src.rebuild()}if(t)for(var n in i.slides)i.slides[n].slide.visible&&SR7.F.redrawBG(e,n)},SR7.F.carSlideChange=function(e,t){var s=SR7.M[e];"carousel"===s.settings.type&&(void 0!==s.c.carousel&&s.c.carousel.src.goTo(s.next.index))},SR7.F.setCarouselSlideDims=e=>{var t=SR7.M[e],s=[],i=[];if(t.settings.carousel.justify)for(var a in t.slides)t.slides[a].slide.global||(s.push(t.settings.carousel.jMWidth?Math.min(t.dims.CFC[a].w,t.dims.module.w):t.dims.CFC[a].w),i.push(t.settings.carousel.jMWidth?Math.min(t.dims.CFC[a].h,t.dims.content.h):t.dims.CFC[a].h));return{width:t.settings.carousel.justify?s:t.settings.carousel.stretch?t.dims.module.w:t.dims.CFC.w,height:t.settings.carousel.justify?i:"v"===t.settings.carousel.type?t.dims.CFC.ch:t.dims.content.h}},window.srCarousel=t,t.prototype.setDefaults=function(){var e=this.s;this.s.wrap=this.s.wrap??this.s.trigger,this.s.trigger=this.s.trigger??this.s.wrap,void 0===this.wrapWPreset&&(this.wrapWPreset=void 0!==e.wrapWidth),void 0===this.wrapHPreset&&(this.wrapHPreset=void 0!==e.wrapHeight),this.s.wrapWidth=this.wrapWPreset?e.wrapWidth:this.s.wrap.offsetWidth,this.s.wrapHeight=this.wrapHPreset?e.wrapHeight:this.s.wrap.offsetHeight,this.s.type=this.type=e.type??"h",this.s.align=this.s.sightSnap?"left":this.s.align??"left",this.s.maxV=Math.max("3d"==this.s.spin?3:1,parseInt(this.s.maxV??3)),this.s.justify=this.s.justify??!1,this.s.minS=this.s.scale?this.s.minS??1:1,this.s.vScale=this.s.vScale??!1,this.s.oScale=this.s.oScale??!1,this.s.space=parseFloat(this.s.space??0),this.s.maxR=this.s.rotation?this.s.maxR??0:0,this.s.varR=this.s.varR??!1,this.s.maxO=this.s.opacity?1==this.s.maxV&&1!==this.s.maxO?0:this.s.opacity?this.s.maxO??1:1:1,this.s.varO=this.s.varO??!1,this.s.spin=this.s.spin??"off",this.s.spinA=parseInt(this.s.spinA??0),this.s.wrapPerspective=this.s.wrapPerspective??1200,this.s.snap=this.s.snap??!0,this.s.infinity=this.s.infinity??!0,this.s.skewX=parseFloat(this.s.skewX??0),this.s.skewY=parseFloat(this.s.skewY??0),this.s.dur=this.s.dur??.8,this.s[this.dim]&&this.s.space<-this.s[this.dim]?this.space=.8*this.s.space:this.space=this.s.space,this.s.align=this.s.align&&"center"!==this.s.align?"left"===this.s.align||"top"===this.s.align||"start"===this.s.align?"start":"end":"center",!0!==this.s.justify&&this.s.maxV>this.len&&(this.s.maxV=this.len%2?this.len:this.len+1)},t.prototype.setType=function(e){void 0===e&&(e=this.type),"h"===e?(this.tr="x",this.dim="width",this.wrapDim="wrapWidth"):(this.tr="y",this.dim="height",this.wrapDim="wrapHeight")},t.prototype.rebuild=function(e={}){var t,s=e.p??0;if(this.setDefaults(),e.type&&(this.type=type,this.setType()),this.draggable&&void 0!==this.totalWidth&&(this.totalWidth>this.s[this.wrapDim]?this.draggable.enable():this.draggable.disable()),_tpt.gsap.killTweensOf([this.proxy,this.follower],this.tr),void 0!==this.closest&&void 0===e.targetIndex||(this.closest=this.focused=e.targetIndex??0),this.lastFocused=this.focused,"center"===this.s.align?this.offset=(this.s[this.wrapDim]-(void 0===this.s[this.dim]?this.slides[0]["h"===this.type?"offsetWidth":"offsetHeight"]:"object"==typeof this.s[this.dim]?this.s[this.dim][0]:this.s[this.dim]))/2:"end"===this.s.align?this.offset=this.s[this.wrapDim]-(void 0===this.s[this.dim]?this.slides[0]["h"===this.type?"offsetWidth":"offsetHeight"]:"object"==typeof this.s[this.dim]?this.s[this.dim][0]:this.s[this.dim]):this.offset=0,this.built){for(r=0;r<this.len;r++)for(var i=0;i<this.len;i++)if(this.slides[r]===this.arr[i].elem){var a=this.arr[r];this.arr[r]=this.arr[i],this.arr[i]=a}}else for(var r=0;r<this.len;r++)this.arr.push({elem:this.slides[r],index:1,syncedO:this.s.syncO?0:void 0});if(this.positionSlides(this.focused,s),"off"!==this.s.spin){var o=this.arr[0][this.dim]/2;this.s.spinA=Math.max(Math.min(this.s.spinA,360/this.len),-360/this.len);var l=o/Math.sin(this.s.spinA/2*Math.PI/180);this.spinR=(Math.sqrt(l*l-o*o)+this.space)*Math.sign(this.s.spinA),"2d"===this.s.spin&&"h"===this.s.type?this.spinR+=(this.s.spinA<=0?0:1)*this.s.wrapHeight:"2d"===this.s.spin&&(this.spinR+=(this.s.spinA<=0?0:1)*this.s.wrapWidth)}(0===this.s.maxR&&"3d"!==this.s.spin||_tpt.gsap.set(this.s.slides[0].parentNode,{perspective:this.s.wrapPerspective}),this.s.infinity)||("center"===this.s.align?t=(this.s[this.wrapDim]-this.arr[this.last][this.dim])/2:"end"===this.s.align&&(t=this.s[this.wrapDim]-this.arr[this.last][this.dim]),this.s.sightSnap?this.minTr=this.s[this.wrapDim]-this.totalWidth+this.space:"start"===this.s.align?this.minTr=this.arr[this.last][this.dim]-this.totalWidth:this.minTr=this.s[this.wrapDim]-this.totalWidth-("end"===this.s.align?0:t),void 0===s&&(this.draggable.applyBounds({minX:this.minTr>=0?this.minTr:0,maxX:this.minTr>=0?this.s[this.wrapDim]:0}),this.draggable.update()),this.minTr>0?_tpt.gsap.set([this.proxy,this.follower],{[this.tr]:this.proxyShift}):this.s.sightSnap&&(this.positionSlides(0,s),_tpt.gsap.set([this.proxy,this.follower],{[this.tr]:0})));this.s.sightSnap||_tpt.gsap.set([this.proxy,this.follower],{[this.tr]:-this.proxyShift}),this.s.bR&&_tpt.gsap.set(this.s.slides,{borderRadius:this.s.bR,overflow:"hidden"}),this.built=!0,this.setRange(),this.s.infinity&&this.swapSlides(),this.getClosest(),this.updateSlides()},t.prototype.positionSlides=function(e,t){var s=this.totalWidth=this.offset,i=(t??0)*(this.arr[e]?.width??0);s+=i;for(var a=e;a<this.len;a++)for(var r=0;r<this.len;r++)this.slides[a]===this.arr[r].elem&&(this.arr[r][this.dim]=void 0===this.s[this.dim]?"h"===this.s.type?this.slides[a].offsetWidth:this.slides[a].offsetHeight:"object"==typeof this.s[this.dim]?this.s[this.dim][a]:this.s[this.dim],_tpt.gsap.set(this.slides[a],{[this.tr]:this.totalWidth,position:"absolute",left:0,top:0,x:0,y:0}),this.arr[r].pos=this.totalWidth+i,this.arr[r][this.tr]=this.totalWidth+i,_tpt.gsap.set(this.arr[r].elem,{[this.tr]:this.totalWidth+i}),this.totalWidth+=this.arr[r][this.dim]+(r===this.last?0:this.space));this.proxyShift=0;for(a=e-1;a>=0;a--)for(r=0;r<this.len;r++)this.slides[a]===this.arr[r].elem&&(_tpt.gsap.set(this.slides[a],{[this.tr]:s,position:"absolute",left:0,top:0,x:0,y:0}),this.arr[r][this.dim]=void 0===this.s[this.dim]?"h"===this.s.type?this.slides[a].offsetWidth:this.slides[a].offsetHeight:"object"==typeof this.s[this.dim]?this.s[this.dim][a]:this.s[this.dim],s-=this.arr[r][this.dim]+this.space,this.arr[r].pos=s,this.arr[r][this.tr]=s,_tpt.gsap.set(this.arr[r].elem,{[this.tr]:s}),this.totalWidth+=this.arr[r][this.dim]+this.space,this.proxyShift+=this.arr[r][this.dim]+this.space)},t.prototype.updateSlides=function(){this.tick=window.requestAnimationFrame(this.lerpHandler);var e=parseFloat(this.proxy._gsap[this.tr]),t=parseFloat(this.follower._gsap[this.tr]),s=t+(e-t)*this.lerp,i=s-t;_tpt.gsap.set(this.follower,{[this.tr]:s}),this.s.mouseDrag&&(this.s.realDragging?this.lpX+=(this.pX-this.lpX)*this.lerp:this.lpX=2*(t-s),this.lpY+=(this.pY-this.lpY)*this.lerp,this.s.processMod&&this.s.processMod()),!this.dragging&&(!this.tween||!this.tween.isActive())&&!this.waitTweenInit&&Math.abs(t-e)<.03&&Math.abs(i)<.03&&(t=e,_tpt.gsap.set(this.follower,{[this.tr]:e}),i=0,this.tick=window.cancelAnimationFrame(this.tick)),this.dx=i;for(var a=0;a<this.arr.length;a++)this.arr[a][this.tr]+=i,_tpt.gsap.set(this.arr[a].elem,{[this.tr]:this.arr[a][this.tr]});0!==this.s.skewX&&_tpt.gsap.set(this.s.slides,{skewX:this.s.skewX*Math.max(-1,Math.min(1,i/100))}),0!==this.s.skewY&&_tpt.gsap.set(this.s.slides,{skewY:this.s.skewY*Math.max(-1,Math.min(1,i/100))}),this.getClosest(),this.s.infinity&&this.swapSlides(),this.applyDE()},t.prototype.applyDE=function(){this.lastSlideProgress??=1,this.tempAlign??=this.s.align;let e=this.offset;"v"!==this.s.type||this.s.infinity||this.s.justify||(e=this.offset+(this.s[this.wrapDim]-this.s[this.dim]-this.offset)*(1-this.lastSlideProgress));for(var t=0;t<this.len;t++){var s={},i=parseFloat(this.arr[t][this.tr])-e,a=this.arr[t].sign=0===Math.sign(i)?1:Math.sign(i);this.arr[t].p=Math.abs(i)/(this.arr[t][this.dim]+this.space);var r=this.arr[t].ap=this.arr[t].p;"v"!==this.s.type||this.s.infinity||t!==this.last||(r<=("left"===this.dir?.9:.1)&&!this.vertAlignBottom?(tpGS.gsap.to(this,{lastSlideProgress:0,duration:.2}),this.vertAlignDefault=!1,this.vertAlignBottom=!0,this.tempAlign="end",this.setRange("end")):r>("left"===this.dir?.9:.1)&&!this.vertAlignDefault&&(tpGS.gsap.to(this,{lastSlideProgress:1,duration:.2}),this.vertAlignDefault=!0,this.vertAlignBottom=!1,this.tempAlign=this.s.align,this.setRange(this.s.align)));var o=this.arr[t].vp=this.arr[t].ap/Math.ceil(this.pDiv)*("center"===this.tempAlign?1:"start"===this.tempAlign?a:-a);if("off"!==this.s.spin){if(null==this.tr)continue;s[this.tr]=e,"2d"===this.s.spin?(s.rotation=this.s.spinA*r*("h"===this.s.type?a:-a),"h"===this.s.type?s.transformOrigin="center "+this.spinR+"px 0":s.transformOrigin=this.spinR+"px center 0"):("h"===this.s.type?s.rotationY=this.s.spinA*r*-a:s.rotationX=this.s.spinA*r*a,s.transformOrigin="center center "+this.spinR+"px")}else if(0===this.s.minS||this.s.justify){if(null==this.tr)continue;s[this.tr]=this.arr[t][this.tr]}else{r=Math.min(1,r);var l=1-(this.s.vScale?o:r)*(1-this.s.minS);l=Math.max(0,l);var n=this.s.oScale?this.arr[t].sign*(this.arr[t][this.dim]+this.space-(this.arr[t][this.dim]+this.space)*l)/2*this.arr[t].ap:this.arr[t].sign*(this.arr[t][this.dim]-this.arr[t][this.dim]*l)/2*this.arr[t].ap;s[this.tr]=this.arr[t][this.tr]-n,s.scale=l}this.s.syncO||(s.opacity=1),this.s.justify||(r=Math.min(1,r),0!==this.s.maxR&&(s.rotationY=this.s.maxR*(this.s.varR?o:r)*-a),s.opacity=1+(this.s.maxO-1)*(this.s.varO?o:r),o>this.edgeRatio?s.opacity=this.oRange(o):o<0?s.opacity=this.oRangeMin(o):1===this.s.maxO&&(s.opacity=1)),this.arr[t].opacity=s.opacity,this.s.syncO&&s.opacity>this.arr[t].syncedO&&(s.opacity=this.arr[t].syncedO),s.opacity<=0?(this.s.slideHidden&&(void 0===this.arr[t].visible||this.arr[t].visible)&&this.s.slideHidden(this.getRealIndex(t)),this.arr[t].visible=!1):(!this.s.slideVisible||!1!==this.arr[t].visible&&void 0!==this.arr[t].visible||this.s.slideVisible(this.getRealIndex(t),void 0!==this.arr[t].visible),this.arr[t].visible=!0),s.zIndex=100-5*Math.round(this.arr[t].ap),t===this.closest&&this.s.callRebuild&&this.s.callRebuild(this.arr[t].p*this.arr[t].sign,this.getRealIndex(t)),this.s.ignoreOpacity&&delete s.opacity,_tpt.gsap.set(this.arr[t].elem,s)}},t.prototype.getRealIndex=function(e){for(var t=0;t<this.len;t++)if(this.slides[t]===this.arr[e].elem)return t},t.prototype.getArrIndex=function(e){for(var t=0;t<this.len;t++)if(this.slides[e]===this.arr[t].elem)return t},t.prototype.setRange=function(e){e??=this.s.align,this.pDiv="center"===e?this.s.maxV/2:this.s.maxV,this.edgeRatio=Math.floor(this.pDiv-("center"===e?0:1))/Math.ceil(this.pDiv),1===this.s.maxV&&(this.edgeRatio=1),this.oEdge=1===this.s.maxO?1:this.s.varO?1+(this.s.maxO-1)*this.edgeRatio:this.s.maxO,this.oEdge=1===this.s.maxV?this.s.maxO:this.oEdge,this.oRange=this.s.maxV>1?_tpt.gsap.utils.mapRange(this.edgeRatio,1,this.oEdge,0):_tpt.gsap.utils.mapRange(1,1.1,this.oEdge,0),this.oRangeMin=_tpt.gsap.utils.mapRange(-1/this.s.maxV,-1.1/this.s.maxV,1,0),this.wrapIndex=this.s.infinity?_tpt.gsap.utils.wrap(0,this.len):_tpt.gsap.utils.clamp(0,this.len-1)},t.prototype.swapSlides=function(){for(var e,t=!0;t;){let i=this.arr[0][this.tr]>=0||void 0!==this.arr[0].p&&this.arr[0].p<=this.s.maxV/2&&!(this.arr[this.last].p<=this.s.maxV/2)&&parseFloat(this.arr[this.last][this.tr])>=this.s[this.wrapDim],a=this.arr[this.last][this.tr]+this.arr[this.last][this.dim]<=this.s[this.wrapDim]||void 0!==this.arr[this.last].p&&this.arr[this.last].p<=this.s.maxV/2&&!(this.arr[0].p<=this.s.maxV/2)&&parseFloat(this.arr[0][this.tr])+this.arr[0][this.dim]<=0;if(i&&!a){this.arr[this.last][this.tr]=-this.arr[this.last][this.dim]+this.arr[0][this.tr]-this.space;var s=this.arr.pop();this.arr.unshift(s),s===e&&(t=!1),e=s,_tpt.gsap.set(this.arr[0].elem,{[this.tr]:this.arr[0][this.tr]})}else if(a&&!i){this.arr[0][this.tr]=this.arr[this.last][this.tr]+this.arr[this.last][this.dim]+this.space;s=this.arr.shift();this.arr.push(s),s===e&&(t=!1),e=s,_tpt.gsap.set(this.arr[this.arr.length-1].elem,{[this.tr]:this.arr[this.arr.length-1][this.tr]})}else t=!1}},t.prototype.snap=function(e){_tpt.gsap.killTweensOf([this.proxy,this.follower],this.tr),this.tween&&this.tween.pause&&this.tween.pause(),Math.abs(t)<3&&(t=0);var t="v"===this.s.type?e-this.draggable.endY:e-this.draggable.endX;this.s.snap&&(e=this.newPos(e)),t=this.draggable[this.tr]-e,this.s.infinity||"v"!==this.s.type?this.s.infinity||(e>=0?e=0:e<=this.minTr&&(e=this.minTr)):e<=this.s[this.wrapDim]-this.totalWidth?e=this.s[this.wrapDim]-this.totalWidth:e>=0&&(e=0);var s=this;if(this.s.overshoot){_tpt.gsap.to(this,{duration:this.s.snap?.3:.5,lerp:.8});var i=Math.min(0===this.draggable.deltaX?Math.abs(t)/20:Math.abs(this.draggable.deltaX)/2,this.s[this.wrapDim]/4)*Math.sign(t),a=Math.abs(i/100);a=Math.min(Math.max(a/10,.6*this.s.dur),this.s.dur),this.tween=_tpt.gsap.timeline({onComplete:function(){s.dragging=!1,s.s.onIdle&&s.s.onIdle(),s.waitingDragEnd&&(s.s.slideChange&&s.s.slideChange(s.focused),s.waitingDragEnd=!1),s.s.mID&&SR7.F.updateModuleDims(s.s.mID,"height")}}),this.tween.to(this.proxy,{[this.tr]:e-i,duration:a,ease:"power2.out"}).to(this.proxy,{[this.tr]:e,duration:Math.min(2*a,.6),ease:this.s.ease},"overshoot").to(this,{duration:Math.min(2*a,.6),lerp:1},"overshoot")}else if(this.s.dragTimeDiff>130&&!this.s.directionChanged){let e=this.focused;if(this.focused==this.beforeDragFocused){let t="h"==this.s.type?this.draggable.startX-this.draggable.endX:this.draggable.startY-this.draggable.endY,s=Math.abs(t)/this.arr[this.focused].width;if(Math.abs(s)>.1){e+=this.dist<0?1:-1,e>this.arr.length-1&&(e=this.s.infinity?0:this.arr.length-1),e<0&&(e=this.s.infinity?this.arr.length-1:0)}}s.dragging=!1,s.goTo(e,!0,this.focused!==this.beforeDragFocused)}else a=Math.abs(t/100),a=Math.min(Math.max(a/10,.6*this.s.dur),this.s.dur),this.tween&&this.tween.kill&&this.tween.kill(),this.tween=_tpt.gsap.timeline({onComplete:function(){s.dragging=!1,s.s.onIdle&&s.s.onIdle(),s.waitingDragEnd&&(s.s.slideChange&&s.s.slideChange(s.focused),s.waitingDragEnd=!1),s.s.mID&&SR7.F.updateModuleDims(s.s.mID,"height")}}),this.tween.to(this.proxy,{[this.tr]:e,ease:this.s.ease,duration:a,onComplete:function(){s.dragging=!1,s.s.mID&&SR7.F.updateModuleDims(s.s.mID,"height")}},0),this.tween.to(this,{lerp:1,duration:a},0);return e},t.prototype.goTo=function(e,t,s){if(this.dragging&&!0!==t)return;this.lastRequestedIndex!==e&&_tpt.gsap.killTweensOf([this.proxy,this.follower],this.tr),this.waitTweenInit=!0;let i=parseFloat(this.proxy._gsap[this.tr]),a=this;this.getClosest();var r=this.newPos(i,e,this.getDir(this.focused,e),void 0,s);s&&(r+=parseFloat(this.follower._gsap[this.tr])-parseFloat(this.proxy._gsap[this.tr]));let o=this.s.dur+(this.steps>=2?(this.steps-1)*this.s.dur/10:0);a.s.slideChange&&a.s.slideChange(e),clearTimeout(this.tweenRequest),this.tweenRequest=setTimeout((()=>{this.lastRequestedIndex=e,this.tween=_tpt.gsap.timeline({onComplete:function(){a.s.onIdle&&a.s.onIdle(),a.s.mID&&SR7.F.updateModuleDims(a.s.mID,"height")},onStart:function(){a.waitTweenInit=!1}}).to(this.proxy,{[this.tr]:r,ease:this.s.ease,duration:o},0).to(this,{lerp:1,duration:o},0).to({},{duration:.3*o,onComplete:function(){}},0),this.tick||(this.tick=window.requestAnimationFrame(this.lerpHandler))}),(this.s?.mID?SR7.slideShow.getLen(this.s.mID):9e3)/(1e3*this.s.dur)<1.2?0:50)},t.prototype.getDir=function(e,t){var s=t-e,i="right",a=0,r=0;if(this.s.infinity){for(var o=e;o!=t;)r+=1,o=++o>=this.len?0:o;for(o=e;o!=t;)a+=1,o=--o<0?this.last:o;i=r<=a?"left":"right"}else i=t-e>=0?"left":"right",r=Math.abs(t-e),0===s&&(i="right",!0);return this.steps=r<=a?r:a,i},t.prototype.newPos=function(e,t,s,i){this.getClosest(),void 0===s&&(s=this.draggable.getDirection()),s="v"==this.s.type&&s.includes("up")?"left":"v"==this.s.type&&s.includes("down")?"right":s.includes("left")?"left":"right",this.dir=s;let a=parseFloat(this.follower._gsap[this.tr])-parseFloat(this.arr[this.closest][this.tr]);if("center"!==this.s.align&&"end"!==this.s.align||(a+=this.offset),this.s.sightSnap&&void 0!==t)return this.checkSightSnap(t);if(this.focused===t)return parseFloat(this.proxy._gsap[this.tr])-(this.arr[this.getArrIndex(t)][this.tr]-this.offset);for(var r=this.closest,o=0;!(++o>100);){var l;if("right"===s?(l=this.wrapIndex(r),r--):l=this.wrapIndex(r+1),r=this.wrapIndex(r),"press"!==this.lastMouseEvent&&("center"===this.s.align?a+=(this.arr[r][this.dim]+this.space+this.arr[l][this.dim]+this.space)/2*("left"===s?-1:1):"end"===this.s.align?a+=(this.arr[l][this.dim]+this.space)*("left"===s?-1:1):a+=(this.arr[r][this.dim]+this.space)*("left"===s?-1:1)),"left"===s&&void 0!==t&&(r=this.wrapIndex(r+1)),void 0===t&&("left"===s&&e>a||"right"===s&&e<a)||void 0!==r&&this.arr[r].elem===this.slides[t]){this.s.snappingTo&&void 0===t&&!0!==i&&("left"===s&&this.s.snappingTo(this.getRealIndex(this.wrapIndex(r+1))),"right"===s&&this.s.snappingTo(this.getRealIndex(this.wrapIndex(l-1))));break}"left"===s&&void 0===t&&r++}return e=a,this.s.infinity||"v"!==this.s.type||e<=this.s[this.wrapDim]-this.totalWidth&&(e=this.s[this.wrapDim]-this.totalWidth),e},t.prototype.checkSightSnap=function(e){const t=parseFloat(this.follower._gsap[this.tr])-this.arr[this.closest][this.tr],s=this.getArrIndex(e),i=this.wrapIndex(s-1),a=this.wrapIndex(s+1),r=this.arr[this.closest][this.tr],o=(this.arr[i][this.tr]+this.arr[i][this.dim])/this.arr[i][this.dim]>=.75,l=(this.s[this.wrapDim]-(this.arr[s][this.tr]+this.arr[a][this.dim]))/this.arr[a][this.dim]>=.75,n=this.arr[this.wrapIndex(s)][this.tr],d=this.arr[i][this.dim],c=this.s[this.wrapDim];return(c-this.space)/d<2&&!this.s.infinity?0===s?(this.lastAlign="left",this.lastTi=s,0):s==a||this.lastTi==s&&"left"==this.lastAlign||this.lastFocused>=s?(this.lastAlign="right",this.lastTi=s,c-(2*d+this.space)-(i*this.space+i*d)):this.lastTi==s&&"right"==this.lastAlign||this.lastFocused<s?(this.lastAlign="left",this.lastTi=s,0-(s*this.space+s*d)):void 0:o&&l?t:o?l?t:t+c-(n+this.arr[this.wrapIndex(s)][this.dim]+(s!==a||a!==this.last||this.s.infinity?this.arr[a][this.dim]+this.space:0))+r:t-n+(s!==i||0!==s||this.s.infinity?this.space+d:0)+r},t.prototype.getClosest=function(){for(var e=1/0,t=this,s=0;s<this.arr.length;s++){var i;i="center"===this.s.align?(this.arr[s][this.tr]+this.arr[s][this.dim]/2-this.s[this.wrapDim]/2)%this.totalWidth:"end"===this.s.align?(this.arr[s][this.tr]+this.arr[s][this.dim]-this.s[this.wrapDim])%this.totalWidth:this.arr[s][this.tr]%this.totalWidth,Math.abs(i)<Math.abs(e)&&(e=i,this.closest=s,this.dist=i)}"center"===this.s.align?this.offset=(this.s[this.wrapDim]-this.arr[this.closest][this.dim])/2:"end"===this.s.align&&(this.offset=this.s[this.wrapDim]-this.arr[this.closest][this.dim]),this.lastFocused=this.focused;for(s=0;s<this.len;s++)this.arr[this.closest].elem===this.s.slides[s]&&(this.focused=s);this.focused!==this.lastFocused&&(this.waitingDragEnd=!0,this.s.slideChange&&this.dragging&&(this.scDelay&&this.scDelay.pause&&this.scDelay.pause(),this.scDelay=_tpt.gsap.delayedCall(.2,(function(){t.waitingDragEnd=!1,t.s.slideChange(t.focused)}))))},_tpt.R=_tpt.R||{},_tpt.R.carousel=_tpt.extend?_tpt.extend(_tpt.R.carousel,{status:2,version:"1.0"}):{status:2,version:"1.0"}}(),function(){"use strict";if(window.SR7??={},window._tpt??={},SR7.F??={},void 0!==SR7.F.module)return;document.addEventListener("sr.module.loaded",(function(e){SR7.F.prepareModule(e)})),SR7.F.prepareModule=e=>new Promise((async(t,s)=>{let i,a,r=e.id,o=SR7.M[r];try{a="object"!=typeof e.result?JSON.parse(e.result):e.result}catch(e){a="object"!=typeof e.result?_tpt.fixResponse(e.result):e.result}null==a.settings&&(o.migrate=!0);let l=["defaults"];o.migrate&&(a.slider_params.title=a.title,a.slider_params.alias=a.alias,l.push("migration"),a.slider_params.codes?.javascript.includes("var snowsettings")&&(a.slider_params.addOns??={},a.slider_params.addOns["revslider-snow-addon"]??={enable:!0}),l=[...l,...SR7.F.preLoadAddonsToMigrate(a.slider_params?.addOns??{})]),_tpt.checkResources(l).then((()=>{if(a?.slider_params&&(a.slider_params.dbid=a.id),o.migrate&&(SR7.migrate.collectNav(a.navs),SR7.migrate.collectTransition(a.trans)),o.migrate&&a?.slider_params&&(a.slider_params=SR7.migrate.snowConvert(a.slider_params)),o.settings=_tpt.extend(o.settings,SR7.D.moduleObj(r,a?.slider_params??a?.settings??{})),void 0!==o.cacheSize?.fullWidth&&(o.settings.size.fullWidth=o.cacheSize.fullWidth),void 0!==o.cacheSize?.fullHeight&&(o.settings.size.fullHeight=o.cacheSize.fullHeight),o.settings.general?.fallbackURL&&(_tpt.is_mobile&&"mobile"===o.settings.general?.fallbackType||("ie8"===o.settings.general?.fallbackType||_tpt.is_mobile&&"mobile-ie8"===o.settings.general?.fallbackType)&&"IE"===_tpt.browser&&(-1!==_tpt.browserVersion.indexOf("MSIE 8")||-1!==_tpt.browserVersion.indexOf("MSIE 7")))){let e=document.createElement("img");return e.src=o.settings.general.fallbackURL,e.style.width="100%",e.style.height="auto",void o.c.bgcanvas.appendChild(e)}let s;e.onlyPrepare||SR7.preLoader.state(r)&&SR7.preLoader.state(r,o.c.module)||SR7.preLoader.show(r,o.c.module),void 0!==o.c?.module?.dataset?.source&&(o.settings.source??={},o.settings.source.type=o.c.module.dataset.source,o.settings.source.sourceids=o.c.module.dataset.sourceids),e.onlyPrepare||"carousel"!=o.settings.type||null!=o.c.carousel||(o.c.carousel=document.createElement("sr7-carousel"),o.c.content.appendChild(o.c.carousel)),o.slides??={};let l=a?.slides??{},n=1;for(i in l){s=o.migrate?SR7.D.fixSR6IDs(l[i].id):l[i].slide.id,o.slides[s]=_tpt.extend(o.slides[s],SR7.D.slideObj(r,o.migrate?l[i]:l[i].slide,n++));let e="default"==(o.slides[s]?.slide?.slideshow?.len??"default")?o.settings?.default?.len??9e3:o.slides[s]?.slide?.slideshow?.len??9e3;o.slides[s].layers=_tpt.extend(o.slides[s].layers,SR7.D.layerObjects({dLEN:e,id:r,slide:l[i],sid:s,msource:o.settings.source?.type??"gallery",snow:o.migrate&&null!=a.static_slide&&void 0!==a.static_slide.id?void 0:a.slider_params?.addOns?.["revslider-snow-addon"]})),o.migrate&&(o.slides[s].layers=SR7.migrate.fixParallax(o.slides[s].layers,a?.slider_params??a?.settings??{}))}for(s in o.migrate&&null!=a.static_slide&&void 0!==a.static_slide.id&&(s=SR7.D.fixSR6IDs(a.static_slide.id,!0),a.static_slide.global=!0,o.slides[s]=_tpt.extend(o.slides[s],SR7.D.slideObj(r,a.static_slide)),o.slides[s].layers=_tpt.extend(o.slides[s].layers,SR7.D.layerObjects({id:r,slide:a.static_slide,sid:s,snow:a.slider_params?.addOns?.["revslider-snow-addon"],msource:o.settings.source?.type??"gallery"})),o.migrate&&(o.slides[s].layers=SR7.migrate.fixParallax(o.slides[s].layers,a?.slider_params??a?.settings??{}))),o.staticDiffLayers=!1,o.slides)if(!o.staticDiffLayers&&o.slides[s].slide.global)for(let e in o.slides[s].layers)(!o.staticDiffLayers||_tpt.hop(o.slides[s].layers,e)&&void 0!==o.slides[s].layers[e].sZ&&"default"!==o.slides[s].layers[e].sZ&&o.slides[s].layers[e].sZ!==o.slides[s].slide.pos)&&(o.staticDiffLayers=!0);if(o.migrate){let e=SR7.D.fixSR6IDs(a.static_slide?.id??void 0,!0);for(let t in l)s=SR7.D.fixSR6IDs(l[t].id),o.slides[s].slide.actions=SR7.migrate.fixActions(r,s,e);e&&(o.slides[e].slide.actions=SR7.migrate.fixActions(r,e,e))}if(e.onlyPrepare)return void t();SR7.D.registerModuleFonts(r),_tpt.loadFonts(),o.c?.bgcanvas||_tpt.bgStyle(r),"forceTrue"==o.settings?.size?.overflow&&o.c.module.classList.add("sr7-overflow-force"),o.fHVCarousel=o.settings.size.fullHeight&&"carousel"==o.settings.type&&"v"==o.settings.carousel.type;let d=["slide","layer","draw","animate","modifiers","srtools","csslp","carousel"];(o.settings?.codes?.js??"").includes("jQuery")&&(console.info("%cDeprecation Notice:%cjQuery functions are deprecated and no longer supported in %cSlider Revolution 6.5+. \n%cPlease refer to our documentation for alternatives and further guidance: https://www.sliderrevolution.com/manual/","color: #ee4433; font-size: 12px; font-weight: bold;","color: #aaa; font-size: 12px; ","color: #ff9800; font-size: 12px;font-weight: bold;","color: #aaa; font-size: 12px; "),_tpt.regResource({id:"jQuery",url:"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"}),null==window.jQuery&&d.push("jQuery")),o.useAsModal&&!o.modalRegistered&&(SR7.F.modal.register({id:r,alias:o.alias,speed:parseInt(o.settings.modal?.sp??1e3)/1e3,bg:o.settings.modal?.bg??"transpaent",pS:o.settings.modal?.pS,v:o.settings.modal?.v??"middle",h:o.settings.modal?.h??"center"}),SR7.F.modal.underlay("show")),_tpt.checkResources(d).then((()=>{o.migrate&&SR7.migrate.orderGroups(o),_tpt.injectCssJs(o.settings.codes?.css??"",o.settings.codes?.js??"",o.c.module,r+"_modulestyles"),SR7.F.updateModuleDims(r,!1),_tpt.resizeObserver.observe((e=>{SR7.F.updateModuleDims(e,!0,!0)}),19,r),_tpt.orientationObserver.observe((e=>{o.c.bgcanvas&&(o.c.bgcanvas.style.maxWidth="100%"),SR7.F.orientationChanged(e,3)}),400,r),o.settings.wClass?.length>0&&o.c.module.parentNode.classList.add(o.settings.wClass),_tpt.is_mobile&&(_tpt.cacheRotation=window.screen.orientation.angle,document.addEventListener("gesturestart",(function(){_tpt.cachezoom=_tpt.getMobileZoom()})),document.addEventListener("gestureend",(function(){o.c.bgcanvas&&(o.c.bgcanvas.style.maxWidth="100%"),SR7.F.orientationChanged(r,3)}),!1)),window.removeEventListener("resize",o.earlyResizerFunction),delete o.earlyResizerFunction,_tpt.checkResources(SR7.F.getRequiredResources(r)).then((()=>{o.J&&(o.J.trigger("revolution.slide.onloaded"),o.J.trigger("sr.module.ready")),_tpt.event.trigger("dom","sr.module.ready",{id:r}),SR7.F.prepareSlides(r).then((()=>{let t;if(""!==window.location.hash){o.deepLinked=window.location.hash.replace("#","");for(let e in o.slides)o.slides[e].slide?.attr?.deepLink==o.deepLinked&&(t="#"+e)}else e?.slide&&o.navSlideOrder.includes(e.slide)?t=o.navSlideOrder.indexOf(e.slide):(t=o.settings?.slideshow?.firstSlide??void 0,t="auto"==t?void 0:parseInt(t)-1);SR7.M[r].settings.slideshow?.waitApi||SR7.F.runModule(r,t)})),o.earlyResizerFunction&&(window.removeEventListener("resize",o.earlyResizerFunction),delete o.earlyResizerFunction)}))})).catch((function(e){throw e})),t()}))})),SR7.F.orientationChanged=(e,t)=>{requestAnimationFrame((()=>{_tpt.cachezoom!=_tpt.getMobileZoom()&&window.screen.orientation.angle===_tpt.cacheRotation||(document.documentElement.scrollLeft=0,document.body.scrollLeft=0,_tpt.cacheRotation=window.screen.orientation.angle),_tpt.getWinDim(),SR7.F.updateModuleDims(e,!0,!0,!0),SR7.F.reposLayers(e),--t>0?SR7.F.orientationChanged(e,t):(_tpt.screenHeightWithUrlBar=window.innerHeight,SR7.F.updateModuleDims(e,!0,!0),SR7.M[e].c.bgcanvas&&(SR7.M[e].c.bgcanvas.style.maxWidth="none"))}))},SR7.F.runModule=(e,t)=>{SR7.F.updateModuleDims(e,!0,!0),SR7.F.module.run(e,t),SR7.F.module.listeners.init(e),SR7.M[e].c.module.observParams.toggleCall=SR7.F.module.toggle,SR7.F.initCarousel(e,t)},SR7.F.triggerSlideEvent=(e,t="",s)=>{let i=SR7.M[e];_tpt.event.trigger("dom","sr.slide"+(""!==t?"."+t:""),{id:e,current:i.current,next:i.next,previous:i.prev}),_tpt.event.trigger(i.c.module,"sr.slide"+(""!==t?"."+t:""),{id:e,current:i.current,next:i.next,previous:i.prev})},SR7.F.triggerMediaEvent=(e,t)=>{_tpt.event.trigger("dom","sr.media."+t,{mediatype:e.type,player:e.player,options:e.options,layer:e.el,id:e.id,layerid:e.el.id,skey:e.skey,state:e.state})},SR7.F.focusBlurCheck=(e,t)=>{let s=SR7.M[t];"blur"==e?s.settings.browser.freezeOnBlur&&SR7.M[t].states.inViewPort&&(s.states??={},s.states.stateBeforeFL=s.slideShow?.state,"paused"!==s.slideShow?.state&&SR7.F.module.pause(t,"blur"),_tpt.event.trigger("dom","sr.slide.tabblured",{id:t})):"focus"==e&&s.settings.browser.freezeOnBlur&&SR7.M[t].states.inViewPort&&("paused"!==s.states?.stateBeforeFL&&SR7.F.module.resume(t,"focus"),s.states??={},s.states.stateBeforeFL=s.slideShow?.state,_tpt.event.trigger("dom","sr.slide.tabfocused",{id:t}))},SR7.F.triggerLayerEvent=async(e,t)=>{let s={id:e.id,eventtype:t,caller:e.caller,scene:e.animState?.scene??e.c.animState.scene,frame:e.animState?.frame??e.c.animState.frame,c:e.c,layer:e.c.el,layerid:e.c.el.id,layertype:e.layer?.type??"",layersettings:e.layer};e.action&&(s.action=e.action),e.ease&&(s.ease=e.ease),e.start&&(s.start=e.start),e.duration&&(s.duration=e.duration),e.c.lastEventCalled=t,_tpt.event.trigger("dom","sr.layer.action",s),_tpt.event.trigger(SR7.M[e.id].c.module,"sr.layer.action",s)},SR7.F.preLoadAddonsToMigrate=e=>{let t=[];if(void 0!==e)for(let s in e)_tpt.hop(e,s)&&0!=e[s]&&"false"!=(""+e[s]?.enable??!1)&&(s=s.replace("revslider-","").replace("-addon",""),void 0!==SR7.E.resources[s]&&t.push(s),void 0!==SR7.E.resources["css"+s]&&t.push("css"+s));return t},SR7.F.initAddons=e=>{const t=[],s=SR7.M[e];if(null!=s.settings.addOns){for(let i in s.settings.addOns)if(_tpt.hop(s.settings.addOns,i)&&SR7.A?.[i]?.init){let s=SR7.A[i].init(e);Array.isArray(s)?t.push(...s):s||t.push(s)}return t}},SR7.F.module={get:e=>{let t,s=document.getElementsByTagName("sr7-module");for(var i in s)""+(s[i].dataset?.id??"")!=e&&""+(s[i].dataset?.alias??"")!=e&&""+s[i].id!=e||(t=s[i]);return t},getNextSuffx:e=>{let t=1,s=SR7.M["SR7_"+e+"_"+t];for(;void 0!==s;)t++,s=SR7.M["SR7_"+e+"_"+t];return t},collect:()=>{SR7.M=SR7.M||{};let e=document.getElementsByTagName("sr7-module");for(var t in e)_tpt.hop(e,t)&&SR7.F.module.register(e[t],e[t].id,!SR7.F.modal.trigger(e[t].dataset?.alias??void 0,e[t],e[t].dataset?.modal??void 0)&&"viewport");_tpt.displayDeprecationWarnings&&_tpt.displayDeprecationWarnings(window.SR7?.E?.php)},register:(e,t,s="viewport")=>{const i=SR7.M[t]??={};i.c??={module:e},i.c.slideBGStates??={},i.zOrder??={},i.alias=e.dataset.alias,i.dims??={},i.dims.CFC??={},i.dims.module??={},i.dims.content??={x:0,y:0},SR7.preLoader.state(t)&&SR7.preLoader.state(t,i.c.module)||SR7.preLoader.show(t,i.c.module),i.LEV=_tpt.getResponsiveLevel(SR7.G.breakPoints,t);const a=i.c.module.getElementsByTagName("image_lists");if(void 0!==a[0]){const e=a[0].getElementsByTagName("img");if(void 0!==e[0]){i.imgList=Array();for(let t in e)if(_tpt.hop(e,t)){let s=e[t].dataset.src||e[t].getAttribute("src")||e[t].getAttribute("data -src");s&&i.imgList.push({old:atob(e[t].dataset.dbsrc),new:s})}}a[0].remove()}i.settings?.fixed?(i.states.inViewPort=!0,SR7.F.module.init(i.c.module),i.c.module.observParams={obj:i}):i.c.module.observParams="viewport"==s?{callBack:SR7.F.module.init,runonce:!0,obj:i}:{obj:i};let r=i.settings?.vPort??"-100px";r=Array.isArray(r)?r[0]:r,String(r).includes("&#039;,")&&(r=r.split("&#039;,")[0]),i.settings?.sbt?.use&&(r="-200px"),String(r).includes("px")&&parseInt(r)>i.settings?.size?.height?.[i.LEV]&&(r=i.settings.size.height[i.LEV]-10+"px"),_tpt.observeModule(i.c.module,r),SR7.revapi.init(e.id)},getIdByAlias:e=>{for(let t in SR7.M)if(_tpt.hop(SR7.M,t)&&(SR7.M[t].alias==e||(SR7.M[t]?.settings?.alias??"")==e))return t},init:e=>{const t=SR7.M[e.id];t?.states?.inited||(SR7.revapi.init(e.id),window.gM=t,t.alias=_tpt.gA(e,"alias",e.id),t.states.inited=!0,SR7.JSON??={},void 0!==SR7.JSON[e.id]?"string"==typeof SR7.JSON[e.id]&&".json"==SR7.JSON[e.id].slice(-5).toLowerCase()?_tpt.getJSON({url:SR7.JSON[e.id],callBack:t=>{if("object"!=typeof t)try{t=JSON.parse(t)}catch(e){t=_tpt.fixResponse(t)}_tpt.event.trigger("dom","sr.module.loaded",{result:t,id:e.id})}}):_tpt.event.trigger("dom","sr.module.loaded",{result:SR7.JSON[e.id],id:e.id}):_tpt.restAPI({action:"get_full_slider_object",version:7,id:t.c.module.dataset.id??e.id,callBack:s=>{if("object"!=typeof s)try{s=JSON.parse(s)}catch(e){s=_tpt.fixResponse(s)}0==s.success?console.log(t.alias+" Could not be Loaded from DB"):(SR7.F.regAddonResources(s.addOns??{}),_tpt.event.trigger("dom","sr.module.loaded",{result:s,id:e.id}))}}))},run:(e,t)=>{const s=SR7.M[e];let i=SR7.F.initAddons(e);"carousel"===s.settings.type&&SR7.F.hideCarouselSlides(e),_tpt.checkResources(i).then((()=>{SR7.F.requestSlide({id:e,slide:t??0,callback:SR7.F.module.checkCarousel,indicator:s.settings.type}),_tpt.getWinDim(),"hero"!==s.settings.type&&SR7.F.navigation&&SR7.F.navigation.init(e),s.settings?.sbt?.use&&SR7.F.sbt.init(e),"off"!==String(s.settings.nav?.m?.use)&&"false"!==String(s.settings.nav?.m?.use)&&(SR7.F.module.wheelModules?-1===SR7.F.module.wheelModules.indexOf(e)&&SR7.F.module.wheelModules.push(e):(SR7.F.module.wheelModules=[e],window.addEventListener("wheel",SR7.F.module.listeners.wheel,{passive:!1}))),"carousel"!==s.settings.type&&"off"!==String(s.settings.nav?.s?.use)&&"false"!==String(s.settings.nav?.s?.use)&&(_tpt.is_mobile||s.settings.nav?.s?.desk)&&SR7.F.module.listeners.touchSwipe(e),"off"!==(s.settings.nav?.k?.use??"off")&&_tpt.keyBoard.reg(e,"navListener",SR7.F.module.listeners.keyboard,["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"])}))},checkCarousel:async e=>{const t=SR7.M[e];if("carousel"===t.settings.type){const s=[];for(let i in t.slides)_tpt.hop(t.slides,i)&&(_tpt.getWinDim(),s.push(new Promise((s=>{setTimeout((async()=>{await SR7.F.redrawBG(e,i,!0),"all"===t.settings.carousel.showAllLayers&&setTimeout((()=>{SR7.F.drawSlide({id:e,slideid:i,keepSlideVisible:!0,type:"process",global:!0,render:!0,callback:()=>SR7.F.showCarouselSlide(e,i)})}),0),s()}),0)}))));await Promise.all(s)}t.checkCarouselDone=!0},toggle:(e,t,s)=>{SR7.M[e].states.inViewPort?SR7.M[e].states?.forcedPause||SR7.F.module.resume(e,s):SR7.F.module.pause(e,s);for(let t in SR7.M[e].settings.addOns)_tpt.hop(SR7.M[e].settings.addOns,t)&&SR7.A?.[t]?.toggle&&SR7.A[t].toggle(e,t)},pause:(e,t)=>{const s=SR7.M[e];if(null!=s.c.tl){SR7.slideShow.pause(e),s.c.tl.cachePlayed=[];for(let e in s.c.tl[s.current.id]){if(!_tpt.hop(s.c.tl[s.current.id],e)||null==s.c.tl[s.current.id][e])continue;let t=s.c.tl[s.current.id][e];for(let i in t)_tpt.hop(t,i)&&t[i].isActive()&&(s.c.tl.cachePlayed.push({scenes:e,tl:i}),t[i].pause())}if(["scroll","blur"].includes(t)&&!s.settings.browser.mISB){s.videosPlayingCache??={};for(let e in s.videosPlaying)_tpt.hop(s.videosPlaying,e)&&("carousel"===s.settings.type&&s.videosPlaying[e]?.skey===s.current.id||(s.videosPlayingCache[e]=s.videosPlaying[e],s.videosPlaying[e].pause("scroll")))}}},resume:(e,t)=>{const s=SR7.M[e],i=s.c?.tl?.cachePlayed??void 0;if(SR7.slideShow.resume(e),i)for(let e in i)s.c.tl[s.current.id][i[e].scenes][i[e].tl].resume();if(["scroll","focus"].includes(t)&&!s.settings.browser.mISB)for(let e in s.videosPlayingCache)_tpt.hop(s.videosPlayingCache,e)&&("carousel"===s.settings.type&&s.videosPlaying[e]?.skey===s.current.id||(s.videosPlayingCache[e].play(),delete s.videosPlayingCache[e]))},size:t=>{const s=SR7.M[t];if(e(t,s,"t"),e(t,s,"b"),s.c.module.style.height=(s.dims.sbt??s.dims.module.h)+"px",s.c.adjuster.style.height=s.dims.module.h+"px",s.c.content.style.height=s.dims.content.h+"px",s.c.content.style.width=s.dims.content.w+"px",s.c.content.style.left=1==s.sbtFreeze?"0px":s.dims.content.mwshiftx+s.dims.content.shiftx+"px",null==s.dims.sbt&&(s.c.content.style.top=s.dims.content.shifty+"px"),s.slideRatios&&"v"!==(s.settings?.carousel?.type??""))for(let e in s.slideRatios)_tpt.hop(s.slideRatios,e)&&!s.slides[e].slide.global&&(s.c.slides[e].style.width=Math.ceil(s.settings.carousel.jMWidth?Math.min(s.dims.CFC[e].w,s.dims.module.w):s.dims.CFC[e].w)+"px");else if("carousel"===s.settings.type)for(let e in s.c.slides)s.slides[e].slide.global?s.slides[e].slide.fullHeight&&(s.c.slides[e].style.height=s.dims.module.h+"px",s.c.slides[e].style.top=0-(s.dims.carousel?.pT??0)+"px"):(s.c.slides[e].style.width=("v"===s.settings.carousel.type||s.settings.carousel.stretch?s.dims.module.w:s.dims.CFC.w)+"px","v"===s.settings.carousel.type&&(s.c.slides[e].style.height=parseInt(s.settings.size.height[s.LEV])+"px"))},box:e=>{SR7.M[e].dims.moduleRect=SR7.M[e].c.module.getBoundingClientRect()},fullScreen:(e,t)=>{requestAnimationFrame((function(){const s=SR7.M[e];t&&!s.states.inFullscreen?s.c.module.classList.add("sr7-fullscreen"):!t&&s.states.inFullscreen&&s.c.module.classList.remove("sr7-fullscreen"),s.states.cachedFullheight??=s.settings.size.fullHeight,s.states.inFullscreen=t,s.settings.size.fullHeight=!!t||s.states.cachedFullheight,_tpt.resizeObserver.execute(),_tpt.scrollObserver.run(s.c.module)}))},isFirstSlide:e=>0==SR7.M[e].current.index,isLastSlide:e=>SR7.M[e].current.index===(void 0!==SR7.M[e].navSlideOrder?SR7.M[e].navLen-1:SR7.M[e].len-1),listeners:{init:e=>{const t=SR7.M[e];(t.settings.mod?.use||t.settings.sbt?.use)&&_tpt.scrollObserver.observe(t.c.module),t.c.module.observParams.scrollCallback=e=>{t.settings.mod?.use&&SR7.F.callBackHandler(e,"parallax","start"),t.settings.sbt?.use&&SR7.F.callBackHandler(e,"sbt","start"),t.c?.moduleListeners?.scroll&&SR7.F.module.listeners.callBacks(e,t.c.moduleListeners.scroll)},t.settings?.browser?.freezeOnBlur&&_tpt.focusObserver.observe(((e,t)=>{SR7.F.focusBlurCheck(e,t)}),0,e)},callBacks:(e,t)=>{for(let s in t)_tpt.hop(t,s)&&t[s](e)},keyboard:(e,t)=>{const s=SR7.M[t.id];void 0!==s.states.navKeyDown&&(new Date).getTime()-s.states.navKeyDown<500||("horizontal"==s.settings.nav.k.use&&39==e.keyCode||"vertical"==s.settings.nav.k.use&&40==e.keyCode?SR7.F.requestSlide({id:t.id,slide:"+1"}):("horizontal"==s.settings.nav.k.use&&37==e.keyCode||"vertical"==s.settings.nav.k.use&&38==e.keyCode)&&SR7.F.requestSlide({id:t.id,slide:"-1"}),s.states.navKeyDown=(new Date).getTime())},mouse:(e,t)=>{const s=SR7.M[t.id];if("mouseenter"==e.type||"touchstart"==e.type?s.states.overModule=!0:"mouseleave"==e.type||"touchend"==e.type?s.states.overModule=!1:"mousemove"==e.type||"touchmove"==e.type?s.states.overModule=!0:e.type,s.c?.moduleListeners?.[e.type])for(let i in s.c.moduleListeners[e.type])_tpt.hop(s.c.moduleListeners[e.type],i)&&s.c.moduleListeners[e.type][i](t.id,e)},touchSwipe:e=>{let t={...SR7.M[e].settings.nav.s};t.t=parseInt(t.t??1),_tpt.is_touch??="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,_tpt.is_touch&&t.t>1?SR7.F.module.listeners.touchSwipeMulti(e,t):SR7.F.module.listeners.touchSwipeSimple(e,t)},touchSwipeMulti:(e,t)=>{let s=0,i=0,a=0,r=0,o=!1,l=!1;function n(n){if(!o)return;let d;if(o=!1,d=Math.abs(r-i)>Math.abs(a-s)?r<i?"up":"down":a<s?"left":"right",l||"vertical"===t.d&&("up"===d&&SR7.F.module.isLastSlide(e)||"down"===d&&SR7.F.module.isFirstSlide(e)))return SR7.F.scrollTo(e,"up"===d?SR7.M[e].c.module.offsetTop+SR7.M[e].dims.module.h:document.documentElement.scrollTop-(window.innerHeight-SR7.M[e].c.module.getBoundingClientRect().top));"horizontal"===t.d&&"left"===d||"vertical"===t.d&&"up"===d?SR7.F.requestSlide({id:e,slide:"+1"}):("horizontal"===t.d&&"right"===d||"vertical"===t.d&&"down"===d)&&SR7.F.requestSlide({id:e,slide:"-1"})}SR7.M[e].c.module.addEventListener("touchstart",(function(e){if(null===e.target.closest(".sr7-tabs, .sr7-thumbs"))if(e.touches.length===t.t){const a=e.touches[0];s=a.pageX,i=a.pageY,o=!0,!_tpt.is_mobile&&t.bV&&e.preventDefault()}else o=!1;else o=!1}),{passive:!1}),SR7.M[e].c.module.addEventListener("touchmove",(function(n){if(!o||n.touches.length!==t.t)return void(o=!1);const d=n.touches[0];a=d.pageX,r=d.pageY;let c=Math.abs(r-i)>Math.abs(a-s)?"vertical":"horizontal";c===t.d&&(n.preventDefault(),l="vertical"===c&&(r<i&&SR7.M[e].current.index===SR7.M[e].navLen||r>i&&0===SR7.M[e].current.index))}),{passive:!1}),SR7.M[e].c.module.addEventListener("touchend",n,{passive:!1}),SR7.M[e].c.module.addEventListener("touchcancel",n,{passive:!1})},touchSwipeSimple:(e,t)=>{SR7.M[e].c.swipeProxy=document.createElement("div"),SR7.M[e].c.swipeAble=_tpt.draggable.create(SR7.M[e].c.swipeProxy,{trigger:SR7.M[e].c.module,type:"horizontal"===t.d?"x":"y",cursor:"pointer",lockAxis:!0,allowContextMenu:_tpt.is_mobile&&!t.bV,allowEventDefault:!t.bV,onPress:function(s){null!==s.target.closest(".sr7-tabs, .sr7-thumbs")&&(SR7.M[e].c.swipeAble[0].endDrag(),SR7.M[e].c.swipeAble[0].disable()),t.pressX=s.pageX,t.pressY=s.pageY},onDragStart:function(){t.forceScroll="up"===this.getDirection()&&SR7.M[e].current.index==SR7.M[e].navLen||"down"===this.getDirection()&&0===SR7.M[e].current.index},onDragEnd:function(s){var i=this.getDirection();if(Math.abs(s.pageY-t.pressY)>Math.abs(s.pageX-t.pressX)){if("right"===i||"left"===i)return}else if(Math.abs(s.pageY-t.pressY)>Math.abs(s.pageX-t.pressX)&&("up"===i||"down"===i))return;return t.forceScroll||"vertical"==t.d&&"up"==i&&SR7.F.module.isLastSlide(e)||"vertical"==t.d&&"down"==i&&SR7.F.module.isFirstSlide(e)?SR7.F.scrollTo(e,"up"===i?SR7.M[e].c.module.offsetTop+SR7.M[e].dims.module.h:document.documentElement.scrollTop-(window.innerHeight-SR7.M[e].c.module.getBoundingClientRect().top)):(_tpt.is_mobile&&(SR7.M[e].settings.nav?.nd??0)>200&&(SR7.M[e].settings.nav.nd=50),"horizontal"==t.d&&"left"==i||"vertical"==t.d&&"up"==i?(SR7.F.requestSlide({id:e,slide:"+1"}),!1):"horizontal"==t.d&&"right"==i||"vertical"==t.d&&"down"==i?(SR7.F.requestSlide({id:e,slide:"-1"}),!1):void 0)}})},wheel:function(e){if(SR7.F.module.wheelModules??=[],!SR7.F.module.wheelModules.length)return;let t=document.elementFromPoint(e.x,e.y);for(let s of SR7.F.module.wheelModules){let i=SR7.M[s];if(!t.closest(`#${i.c.module.id}`))continue;let a=_tpt.normalizeWheel(e),r=i.settings.nav.m,o=r.v/100,l=window.pageYOffset||document.documentElement.scrollTop,n=SR7.F.module["reverse"==r.r?"isLastSlide":"isFirstSlide"](s),d=SR7.F.module["reverse"!==r.r?"isLastSlide":"isFirstSlide"](s);i.dims.moduleRect=SR7.M[s].c.module.getBoundingClientRect();let c=SR7.F.calculateVisiblePercentage(i.dims.moduleRect),p=a<0?-1:1,h=!1,u=!1;if(r.cd??=parseInt(r.cd??1500),!(o-c<=r.st/100)||c>=o||i.dims.moduleRect.top>=0&&-1===p||i.dims.moduleRect.top<=0&&1===p||(u=!0,i.mScrollTween||(i.mScrollTween=SR7.F.scrollTo(s,l+i.dims.moduleRect.top+(p*("reverse"==r.r?-1:1)==1?i.dims.moduleRect.height-_tpt.winH:0),_tpt.isWebkit?1:.7,"power2.out",(function(){SR7.M[s].dims.moduleRect=SR7.M[s].c.module.getBoundingClientRect(),SR7.M[s].mScrollTween.kill(),delete SR7.M[s].mScrollTween})))),Math.abs(c-o)<.1||c>=o||Math.abs(c-o)>=.1&&c<o&&(p*("reverse"==r.r?-1:1)==1&&Math.abs(_tpt.winH-i.dims.moduleRect.top-i.dims.moduleRect.height)/i.dims.moduleRect.height<.1||p*("reverse"==r.r?-1:1)==-1&&Math.abs(i.dims.moduleRect.top)/i.dims.moduleRect.height<.1)){let t="reverse"===r.r&&p<0||"reverse"!==r.r&&p>0?"reverse"!==r.r?0:1:"reverse"!==r.r?1:0;return"carousel"===i.settings.nav.m.use||0===t&&!d||1===t&&!n?(t=0==t?"reverse"==r.r?"-1":"+1":"reverse"==r.r?"+1":"-1",!0!==i.wheelAction&&(SR7.F.requestSlide({id:s,slide:t}),i.wheelAction=!0,setTimeout((function(){i.wheelAction=!1}),r.cd))):!0!==i.wheelAction&&(h=!0),h?(i.mScrollTween&&(SR7.M[s].dims.moduleRect=SR7.M[s].c.module.getBoundingClientRect(),SR7.M[s].mScrollTween.kill(),delete SR7.M[s].mScrollTween),!0):(e.preventDefault(),!1)}u&&e.preventDefault()}},updateMouseCoordinates:(e,t,s)=>{const i=SR7.M[e];let a,r;if(t.type.includes("touch")){if(void 0===t.touches[0])return;a=t.touches[0].clientX,r=t.touches[0].clientY}else a=t.clientX,r=t.clientY;void 0!==i.mouse.enterX&&void 0!==i.mouse.enterY&&"mouseenter"!==t.type&&"touchstart"!==t.type||(SR7.F.module.box(e),i.mouse.enterX=a-i.dims.moduleRect.left,i.mouse.enterY=r-i.dims.moduleRect.top),"mousemove"!==t.type&&"touchmove"!==t.type&&"dragmove"!==t.type||(i.mouse.x=a,i.mouse.y=r,i.mouse.relX=a-("dragmove"==t.type||i.settings.size.fullWidth?0:i.dims.moduleRect.left+i.dims.content.mwshiftx),i.mouse.relY=r-("dragmove"==t.type?_tpt.scrollObserver.y+i.dims.moduleRect.top:i.dims.moduleRect.top),i.mouse.eDX=i.mouse.enterX-i.mouse.relX,i.mouse.eDY=i.mouse.enterY-i.mouse.relY,i.mouse.cDX=i.dims.module.w/2-i.mouse.relX,i.mouse.cDY=i.dims.module.h/2-i.mouse.relY),"touchstart"!=t.type&&"touchend"!=t.type||(i.mouse.relX=a-(i.settings.size.fullWidth?0:i.dims.moduleRect.left+i.dims.content.mwshiftx),i.mouse.relY=r-i.dims.moduleRect.top,i.mouse.eDXF=i.mouse.cDXF=i.dims.module.w/2-i.mouse.relX,i.mouse.eDYF=i.mouse.cDYF=i.dims.module.h/2-i.mouse.relY)},reg:(e,t,s,i)=>{const a=SR7.M[e];a.mouse??={},t=t.split(" ");let r=Math.round(1e6*Math.random());for(let e in t)void 0!==(a.c.moduleListeners?.[t[e]]?.[r]??void 0)&&r++;for(let o in t)0==(a.c.moduleListeners?.[t[o]]??!1)&&_tpt.event.listen(a.c.module,t[o],SR7.F.module.listeners.mouse,{id:e},i),a.c.moduleListeners??={},a.c.moduleListeners[t[o]]??={},a.c.moduleListeners[t[o]][r]=s;return r},del:(e,t,s)=>{SR7.M[e]?.c?.moduleListeners?.[t]?.[s]&&delete SR7.M[e].c.moduleListeners[t][s]}}},SR7.F.getRequiredResources=function(e){const t=Array(50),s=SR7.M[e];let i=0;if(SR7.R?.nav&&(t[i++]="navigation",t[i++]="cssnav"),t[i++]="media",t[i++]="cssmedia",SR7.R?.cssbtns&&(t[i++]="cssbtns"),void 0!==s.settings.addOns)for(let e in s.settings.addOns)_tpt.hop(s.settings.addOns,e)&&0!=s.settings.addOns[e]&&(void 0!==SR7.E.resources[e]&&(t[i++]=e),void 0!==SR7.E.resources["css"+e]&&(t[i++]="css"+e));for(let e in SR7.E.gAddons)_tpt.hop(SR7.E.gAddons,e)&&(void 0!==SR7.E.resources[e]&&(t[i++]=e,s.settings.addOns??={},s.settings.addOns[e]={u:!0}),void 0!==SR7.E.resources["css"+e]&&(t[i++]="css"+e));return t},SR7.F.getNewId=async function(e,t,s){return new Promise(((i,a)=>{"slide"==e&&void 0!==t?i(t):"module"==e&&void 0!==s?i(s):"slide"==e&&null==s?a(null):_tpt.ajax({action:"get_"+e+"id",data:{module:s},callBack:e=>i(e),errorHandler:e=>a(e)})}))},SR7.F.getGlobalZoneHeights=e=>{SR7.M[e].zones??={},SR7.M[e].zones.globals??={},SR7.M[e].zones.globals.all=0;for(let t in SR7.M[e].staticSlides)_tpt.hop(SR7.M[e].staticSlides,t)&&(SR7.M[e].zones.globals.all=Math.max(SR7.M[e].zones.globals.all||0,SR7.F.getZoneHeights(e,SR7.M[e].staticSlides[t])||0));return SR7.M[e].zones.globals.all||0},SR7.F.getZoneHeights=function(e,t){let s=SR7.M[e];if((null!=t||null!=s.current)&&-1!=s.current.id&&(t??=s.current.id,s.zones[t]&&null!=s.zones[t].zones)){s.zones[t].all=0;for(let e in s.zones[t].zones)s.zones[t].zones[e]=s.c.layers[SR7.lToK[e]].el.offsetHeight,s.zones[t].all+=s.zones[t].zones[e];return s.zones[t].all}},SR7.F.getONavs=e=>{const t=SR7.M[e];t.dims.outNav={w:0,h:0,x:0,y:0,align:"left"};for(let s of["tabs","thumbs","scrubber"])if(t.settings.nav?.[s]?.set){let i=t.settings.nav?.[s];if("i"==i.io||0==(i?.show?.[t.LEV]??!0))continue;let a=2*SR7.gV({v:i.wr.p,id:e,u:0});"vertical"==SR7.gV({v:i.d,id:e,u:0})?(t.dims.outNav.w=Math.max(t.dims.outNav.w,SR7.gV({v:i.size.w,id:e,u:0,a:!0})+a),t.dims.outNav.x="left"==SR7.gV({v:i.h,id:e,u:0})?t.dims.outNav.w:-t.dims.outNav.w/2,t.dims.outNav.align="left"==SR7.gV({v:i.h,id:e,u:0})?"left":"right"):(t.dims.outNav.h=Math.max(t.dims.outNav.h,SR7.gV({v:i.size.h,id:e,u:0})+a),t.dims.outNav.y="top"==SR7.gV({v:i.v,id:e,u:0})?t.dims.outNav.h:0,t.dims.outNav.align="top"==SR7.gV({v:i.v,id:e,u:0})?"top":"bottom")}};const e=(e,t,s)=>{let i=SR7.gV({v:t.settings.size.m?.[s]??0,id:e,u:0});(t.dims.margins?.[s]??0)!==i&&(t.c.module.style["margin"+("t"==s?"Top":"Bottom")]=i+"px",t.dims.margins??={},t.dims.margins[s]=i),t.offsetPrepared&&t.c.bgcanvas&&(t.c.bgcanvas.style.visibility="visible",delete t.offsetPrepared)};SR7.F.updateModuleDims=function(e,t,s,i){null==_tpt.winWAll&&_tpt.getWinDim();let a=SR7.M[e],r="carousel"===a.settings.type;a.dims.module.w=a.settings.size.fullWidth?_tpt.winW:a.c.module.offsetWidth,a.LEV=_tpt.getResponsiveLevel(SR7.G.breakPoints,e),SR7.F.getONavs(e),a.dims.cache??=[],a.dims.cache.push({w:_tpt.winW,h:_tpt.winH}),a.dims.cache.length>10&&a.dims.cache.shift();let o=SR7.gV({v:a.settings.size.width,id:e,u:0}),l=parseInt(SR7.gV({v:a.settings.size.height,id:e,u:0}));if(!a.settings.size.fullWidth&&0==a.dims.module.w&&0==a.dims.module.h){try{"flex"==getComputedStyle(a.c?.module?.parentNode?.parentNode)?.display&&(a.c.module.parentNode.style.width="100%"),a.dims.module.w=o,a.dims.module.h=l}catch(e){}console.log(a.alias," set to auto width but its parents element Dimension is 0px. Please check parrent element ! ")}a.dims.reduceHeight=a.settings.size.fullHeight&&!a.states.inFullscreen&&SR7.F.getContsHeights(a.settings.size.fullHeightOffset,a.dims.module.h)||0,a.dims.padding={t:SR7.gV({v:a.settings.size.p?.t??0,id:e,u:0}),b:SR7.gV({v:a.settings.size.p?.b??0,id:e,u:0}),l:SR7.gV({v:a.settings.size.p?.l??0,id:e,u:0}),r:SR7.gV({v:a.settings.size.p?.r??0,id:e,u:0})},a.dims.CFC.w=Math.min(o,a.dims.module.w-a.dims.outNav.w)||0,a.MP=r&&a.settings.carousel.justify?1:Math.min(1,a.dims.CFC.w/o),a.useHMP=(!a.settings.sbt?.use&&a.settings.size.fullHeight&&_tpt.winH<l||(a.settings.sbt?.use??!1)&&_tpt.winW<o)&&a.LEV<3,a.useHMP?(a.settings.sbt?.use||(a.MP=Math.min(a.MP,Math.max(_tpt.is_mobile?320:640,_tpt.winH-a.dims.reduceHeight)/l)),a.dims.CFC.w=Math.min(o*a.MP,a.dims.module.w-a.dims.outNav.w)||0):a.useHMP=!0,a.dims.zones=Math.max(SR7.F.getGlobalZoneHeights(e)||0,SR7.F.getZoneHeights(e)||0);let n=SR7.gV({v:a.settings.size.minHeight,id:e,u:0});n="none"==n?0:n;let d=_tpt.is_mobile&&a.settings.size.fullHeight&&_tpt.is_mobile&&a.settings.mobileURLJumpFix?Math.max(l,Math.max(a.dims.zones,_tpt.screenHeightWithUrlBar)):a.settings.size.respectRatio?l/o*a.dims.module.w:SR7.gV({v:a.settings.size.maxHeight,id:e,u:0});a.dims.module.h=a.settings.size.respectRatio?l/o*a.dims.module.w:Math.max(a.dims.zones,Math.max(a.settings.size.fullHeight?_tpt.is_mobile&&a.settings.mobileURLJumpFix?_tpt.screenHeightWithUrlBar:_tpt.winH:0,Math.max(l,n)*(a.settings.size.keepBPHeight?1:a.MP))),d>0&&(a.dims.module.h=Math.min(d,a.dims.module.h)),a.useAsModal&&(a.dims.module.h<_tpt.winH?(a.c.module.style.inset="50% 0px auto",a.c.module.style.transform="translate(0px, -50%)"):(a.c.module.style.inset="auto",a.c.module.style.transform="translate(0px, 0px)")),r&&(a.dims.carousel={pT:parseInt(a.settings.carousel.pT??0)*a.MP,pB:parseInt(a.settings.carousel.pB??0)*a.MP},a.settings.size.fullHeight||"v"!==a.settings.carousel.type||(a.dims.module.pNV=_tpt.posToNum(a.settings.carousel.pNV,a.dims.module.h),a.dims.module.h+=a.dims.module.pNV)),a.dims.CFC.h=Math.max(a.dims.zones,Math.max(l,n)*(a.settings.size.keepBPHeight?1:a.MP)),a.dims.module.h-=a.dims.reduceHeight,a.dims.content.h=a.dims.module.h,a.settings.size.fullWidth&&SR7.F.module.box(e);let c=(a.settings.size.fullWidth?_tpt.winWAll:a.dims.module.w)-(null==a.settings.size.p?0:a.dims.padding.l+a.dims.padding.r)-a.dims.outNav.w;if(a.dims.content.w=a.settings.size.fullWidth?c:Math.min(parseInt(_tpt.posToNum(a.settings.size.maxWidth,_tpt.winWAll))||_tpt.winWAll,c),a.dims.content.mwshiftx=(c-a.dims.content.w)/2,a.dims.module.h+=(null==a.settings.size.p?0:a.dims.padding.t+a.dims.padding.b)+a.dims.outNav.h+(r?a.dims.carousel.pT+a.dims.carousel.pB:0),a.dims.content.shiftx=a.dims.outNav.x<0?0-(a.settings.size.fullWidth?a.dims.moduleRect.left??0:0):a.settings.size.fullWidth?-(a.dims.moduleRect.left??0)+a.dims.padding.l+a.dims.outNav.x:a.dims.padding.l+a.dims.outNav.x,a.dims.content.shifty=a.dims.padding.t+a.dims.outNav.y+(r?a.dims.carousel.pT:0),a.dims.CFC.x=Math.max(0,(a.dims.content.w-a.dims.CFC.w)/2),a.dims.CFC.y=Math.max(0,(a.dims.content.h-a.dims.CFC.h)/2),a.dims.content.cw=a.dims.content.w,a.dims.content.ch=a.dims.content.h,a.dims.CFC.cw=a.dims.CFC.w,a.dims.CFC.ch=a.dims.CFC.h,a.settings.sbt?.use&&(a.sbt??={},a.sbt.__len=SR7.slideShow.getLen(e),a.sbt.__slen=parseInt(a.settings.sbt.fStart??0),a.sbt.__elen=a.sbt.__len-parseInt(a.settings.sbt.fEnd??a.sbt.__len),a.sbt.__mlen=a.sbt.__len-(a.sbt.__slen+a.sbt.__elen),a.settings.sbt?.f&&(a.dims.sbt=Math.max(2*a.dims.module.h,a.sbt.__len/3))),r){a.dims.CFC.ch=a.dims.CFC.h="v"===a.settings.carousel.type?Math.min(a.dims.module.h,parseFloat(a.settings.size.height[a.LEV])):Math.min(a.dims.content.h,a.dims.module.h),a.settings.carousel.justify&&SR7.F.getSlideARatios(e);for(let e in a.c.slides)_tpt.hop(a.c.slides,e)&&(a.dims.CFC[e]??={},a.dims.content[e]??={},a.dims.CFC[e].cw=a.dims.CFC[e].w=a.slides[e].slide.global?a.settings.carousel.justify?a.dims.content.w:a.dims.CFC.w:"v"===a.settings.carousel.type?a.dims.CFC.w:a.settings.carousel.justify?a.dims.module.h*a.slideRatios[e]||a.dims.CFC.w:a.settings.carousel.stretch?a.dims.module.w:a.dims.CFC.w,a.dims.CFC[e].cw=a.dims.CFC[e].w=Math.min(a.dims.CFC[e].cw,a.dims.module.w),a.dims.CFC[e].ch=a.dims.CFC[e].h=a.slides[e].slide.global?a.dims.CFC.h+(a.settings.carousel.justify?0:a.dims.carousel.pT+a.dims.carousel.pB):(a.slides[e].slide.fullHeight,a.dims.CFC.h),a.slides[e].slide.global&&!a.settings.carousel.justify&&(a.dims.CFC[e].x=a.dims.CFC.x,a.dims.CFC[e+"_slide"]??={},a.dims.CFC[e+"_slide"].cw=a.dims.CFC[e+"_slide"].w=a.dims.module.w,a.dims.CFC[e+"_slide"].ch=a.dims.CFC[e+"_slide"].h=a.dims.CFC[e].ch,a.dims.CFC[e+"_slide"].x=0),"v"==a.settings?.carousel?.type?(a.dims.CFC[e].x=a.dims.CFC.x,a.dims.CFC[e].y=0,a.dims.CFC[e+"_full"]??={},a.dims.CFC[e+"_full"].cw=a.dims.CFC[e+"_full"].w=a.dims.content.w,a.dims.CFC[e+"_full"].ch=a.dims.CFC.h=a.dims.CFC[e].ch,a.dims.CFC[e+"_full"].x=a.dims.content.x):a.slides[e].slide.global&&a.settings.size.fullHeight&&(a.dims.CFC[e].x=0,a.dims.CFC[e].y=0))}!function(e){const t=SR7.M[e];null==t.c.bgOverlay&&t.settings.bg?.overlay?.type&&(null==t.c.bgcanvas&&_tpt.bgStyle(e,void 0,!1,!0,!0),t.c.bgOverlay=SR7.F.addOverlay(t.settings.bg.overlay.type,t.settings.bg.overlay.size,t.settings.bg.overlay.cA,t.settings.bg.overlay.cB),t.c.bgcanvas.appendChild(t.c.bgOverlay));if(null==t.c.bgcanvas)return;t.c.bgcanvas.dataset.pos??=t.c.bgcanvas.closest("SR7-CONTENT")?"content":"module",t.c.bgcanvas.style.width=t.settings.size.fullWidth?_tpt.winW+"px":t.dims.content.w+(t.dims.outNav?.w??0)+"px",t.c.bgcanvas.style.height=("carousel"==t.settings.type?t.dims.module.h:t.dims.content.h+parseInt((t.dims.padding.t??0)+parseInt(t.dims.padding.b??0))+parseInt(t.dims.outNav?.h??0))+"px",t.c.bgcanvas.style.left=t.settings.sbt?.use&&t.settings.sbt?.f||"content"==t.c.bgcanvas.dataset.pos?"0px":(t.settings.size.fullWidth?t.dims.content.mwshiftx+t.dims.content.shiftx:0)+(t.dims.padding?.l??0)-("left"==(t.dims.outNav?.align??"left")&&t.settings.size.fullWidth?t.dims.outNav?.w??0:0)+"px",t.settings.size.fullWidth||0===t.dims.padding.t||(t.c.bgcanvas.style.top=0-t.dims.padding.t+"px")}(e),a.useAsModal&&SR7.F.modal.visible&&SR7.F.modal.requested==a.alias&&(SR7.F.modal.updatePos(),SR7.F?.modal?.sbt&&(SR7.F.modal.wrap.style.height=a.dims.moduleRect.height+"px")),t&&(_tpt.is_mobile&&a.dims.lastHeight&&a.dims.content.Ccw==a.dims.content.w&&a.dims.content.Cch==a.dims.content.h&&a.dims.CFC.Ccw==a.dims.CFC.w&&a.dims.CFC.Cch==a.dims.CFC.h||(a.dims.content.Ccw=a.dims.content.w,a.dims.content.Cch=a.dims.content.h,a.dims.CFC.Ccw=a.dims.CFC.w,a.dims.CFC.Cch=a.dims.CFC.h,i||cancelAnimationFrame(a.updateModuleDimsrAF),a.updateModuleDimsrAF=requestAnimationFrame((function(){if("hero"!==a.settings.type&&SR7.F?.navigation?.update&&SR7.F.navigation.update(e),SR7.F.module.size(e),-1!=(a.current?.id??-1)){if(!(function(e){if(e.length<10)return!1;let t=e.slice(-10),s=[];for(let e=0;e<t.length;e++)s.some((s=>s.w===t[e].w&&s.h===t[e].h))||s.push(t[e]);return 2===s.length}(a.dims.cache)&&(_tpt.getWinDim(),!0!==s&&_tpt.winW>=a.dims.module.w))){_tpt.scrollObserver.run(a.c.module,!0),SR7.F.drawRawLayers(e,a.current.id,"update");for(let t in a.staticSlides)_tpt.hop(a.staticSlides,t)&&""!=a.staticSlides[t]&&SR7.F.drawRawLayers(e,a.staticSlides[t],"update");r&&requestAnimationFrame((()=>{SR7.F.rebuildCarousel(e,"height"!==t,"height"!==t)})),_tpt.getWinDim(),a.dims.cache[a.dims.cache.length-1].w===_tpt.winW&&a.dims.cache[a.dims.cache.length-1].h===_tpt.winH||SR7.F.updateModuleDims(e,!0)}}else r&&a.dims.oldWinW!==_tpt.winW&&(requestAnimationFrame((()=>{SR7.F.rebuildCarousel(e,!1)})),a.dims.oldWinW=_tpt.winW)}))))},SR7.F.callBackHandler=(e,t,s)=>{if(SR7.M[e].c.callBacks)for(let i of SR7.M[e].c.callBacks)i.inmodule==t&&i.atposition==s&&void 0!==i.callback&&i.callback.call()},_tpt.R??={},_tpt.R.module=_tpt.extend?_tpt.extend(_tpt.R.module,{status:2,version:"1.0"}):{status:2,version:"1.0"}}();
// source --> https://morgezi.com/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.7.0-wc.10.4.4 
/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();