/* Minification failed. Returning unminified contents.
(128,665-666): run-time error JS1014: Invalid character: `
(128,679-680): run-time error JS1193: Expected ',' or ')': {
(128,686-687): run-time error JS1004: Expected ';': {
(128,696-697): run-time error JS1004: Expected ';': )
(128,697-698): run-time error JS1014: Invalid character: `
(128,698-699): run-time error JS1193: Expected ',' or ')': ;
(128,722-723): run-time error JS1014: Invalid character: `
(128,733-734): run-time error JS1193: Expected ',' or ')': {
(128,735-736): run-time error JS1002: Syntax error: }
(128,740-741): run-time error JS1002: Syntax error: }
(128,744-745): run-time error JS1014: Invalid character: `
(128,768-769): run-time error JS1004: Expected ';': {
(128,837-838): run-time error JS1014: Invalid character: `
(128,839-840): run-time error JS1003: Expected ':': {
(128,841-842): run-time error JS1003: Expected ':': }
(128,843-844): run-time error JS1004: Expected ';': $
(128,850-851): run-time error JS1004: Expected ';': $
(128,882-883): run-time error JS1014: Invalid character: `
(128,883-884): run-time error JS1195: Expected expression: :
(128,942-943): run-time error JS1014: Invalid character: `
(128,944-945): run-time error JS1003: Expected ':': {
(128,946-947): run-time error JS1003: Expected ':': }
(128,947-949): run-time error JS1004: Expected ';': px
(128,949-950): run-time error JS1014: Invalid character: `
(128,987-988): run-time error JS1014: Invalid character: `
(128,989-990): run-time error JS1003: Expected ':': {
(128,991-992): run-time error JS1003: Expected ':': }
(128,992-994): run-time error JS1004: Expected ';': px
(128,994-995): run-time error JS1014: Invalid character: `
(128,1211-1212): run-time error JS1195: Expected expression: )
(128,1213-1214): run-time error JS1195: Expected expression: >
(128,1221-1222): run-time error JS1033: Expected 'catch': )
(128,1233-1234): run-time error JS1002: Syntax error: }
(128,1255-1256): run-time error JS1004: Expected ';': {
(128,1278-1279): run-time error JS1004: Expected ';': {
(128,1310-1311): run-time error JS1004: Expected ';': {
(128,1341-1342): run-time error JS1004: Expected ';': {
(128,1360-1361): run-time error JS1195: Expected expression: >
(128,1413-1414): run-time error JS1195: Expected expression: )
(128,1440-1441): run-time error JS1004: Expected ';': {
(128,1529-1530): run-time error JS1195: Expected expression: >
(128,1567-1568): run-time error JS1195: Expected expression: >
(128,1608-1609): run-time error JS1003: Expected ':': )
(128,1609-1610): run-time error JS1004: Expected ';': )
(128,1637-1638): run-time error JS1004: Expected ';': :
(128,1650-1651): run-time error JS1197: Too many errors. The file might not be a JavaScript file: ,
(128,699-712): run-time error JS1018: 'return' statement outside of function: return void 0
 */
!function(t,o){"function"==typeof define&&define.amd?define(o):"object"==typeof exports?module.exports=o():t.tingle=o()}(this,function(){var o=!1;function t(t){this.opts=function(){for(var t=1;t<arguments.length;t++)for(var o in arguments[t])arguments[t].hasOwnProperty(o)&&(arguments[0][o]=arguments[t][o]);return arguments[0]}({},{onClose:null,onOpen:null,beforeOpen:null,beforeClose:null,stickyFooter:!1,footer:!1,cssClass:[],closeLabel:"Close",closeMethods:["overlay","button","escape"]},t),this.init()}function e(){this.modalBoxFooter&&(this.modalBoxFooter.style.width=this.modalBox.clientWidth+"px",this.modalBoxFooter.style.left=this.modalBox.offsetLeft+"px")}return t.prototype.init=function(){if(!this.modal)return function(){this.modal=document.createElement("div"),this.modal.classList.add("tingle-modal"),0!==this.opts.closeMethods.length&&-1!==this.opts.closeMethods.indexOf("overlay")||this.modal.classList.add("tingle-modal--noOverlayClose");this.modal.style.display="none",this.opts.cssClass.forEach(function(t){"string"==typeof t&&this.modal.classList.add(t)},this),-1!==this.opts.closeMethods.indexOf("button")&&(this.modalCloseBtn=document.createElement("button"),this.modalCloseBtn.type="button",this.modalCloseBtn.classList.add("tingle-modal__close"),this.modalCloseBtnIcon=document.createElement("span"),this.modalCloseBtnIcon.classList.add("tingle-modal__closeIcon"),this.modalCloseBtnIcon.innerHTML='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.3 9.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3L5 6.4l3.3 3.3c.2.2.5.3.7.3.2 0 .5-.1.7-.3.4-.4.4-1 0-1.4L6.4 5l3.3-3.3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L5 3.6 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4L3.6 5 .3 8.3c-.4.4-.4 1 0 1.4z" fill="#000" fill-rule="nonzero"/></svg>',this.modalCloseBtnLabel=document.createElement("span"),this.modalCloseBtnLabel.classList.add("tingle-modal__closeLabel"),this.modalCloseBtnLabel.innerHTML=this.opts.closeLabel,this.modalCloseBtn.appendChild(this.modalCloseBtnIcon),this.modalCloseBtn.appendChild(this.modalCloseBtnLabel));this.modalBox=document.createElement("div"),this.modalBox.classList.add("tingle-modal-box"),this.modalBoxContent=document.createElement("div"),this.modalBoxContent.classList.add("tingle-modal-box__content"),this.modalBox.appendChild(this.modalBoxContent),-1!==this.opts.closeMethods.indexOf("button")&&this.modal.appendChild(this.modalCloseBtn);this.modal.appendChild(this.modalBox)}.call(this),function(){this._events={clickCloseBtn:this.close.bind(this),clickOverlay:function(t){var o=this.modal.offsetWidth-this.modal.clientWidth,e=t.clientX>=this.modal.offsetWidth-15,s=this.modal.scrollHeight!==this.modal.offsetHeight;if("MacIntel"===navigator.platform&&0==o&&e&&s)return;-1!==this.opts.closeMethods.indexOf("overlay")&&!function(t,o){for(;(t=t.parentElement)&&!t.classList.contains(o););return t}(t.target,"tingle-modal")&&t.clientX<this.modal.clientWidth&&this.close()}.bind(this),resize:this.checkOverflow.bind(this),keyboardNav:function(t){-1!==this.opts.closeMethods.indexOf("escape")&&27===t.which&&this.isOpen()&&this.close()}.bind(this)},-1!==this.opts.closeMethods.indexOf("button")&&this.modalCloseBtn.addEventListener("click",this._events.clickCloseBtn);this.modal.addEventListener("mousedown",this._events.clickOverlay),window.addEventListener("resize",this._events.resize),document.addEventListener("keydown",this._events.keyboardNav)}.call(this),document.body.appendChild(this.modal,document.body.firstChild),this.opts.footer&&this.addFooter(),this},t.prototype._busy=function(t){o=t},t.prototype._isBusy=function(){return o},t.prototype.destroy=function(){null!==this.modal&&(this.isOpen()&&this.close(!0),function(){-1!==this.opts.closeMethods.indexOf("button")&&this.modalCloseBtn.removeEventListener("click",this._events.clickCloseBtn);this.modal.removeEventListener("mousedown",this._events.clickOverlay),window.removeEventListener("resize",this._events.resize),document.removeEventListener("keydown",this._events.keyboardNav)}.call(this),this.modal.parentNode.removeChild(this.modal),this.modal=null)},t.prototype.isOpen=function(){return!!this.modal.classList.contains("tingle-modal--visible")},t.prototype.open=function(){if(!this._isBusy()){this._busy(!0);var t=this;return"function"==typeof t.opts.beforeOpen&&t.opts.beforeOpen(),this.modal.style.removeProperty?this.modal.style.removeProperty("display"):this.modal.style.removeAttribute("display"),this._scrollPosition=window.pageYOffset,document.body.classList.add("tingle-enabled"),document.body.style.top=-this._scrollPosition+"px",this.setStickyFooter(this.opts.stickyFooter),this.modal.classList.add("tingle-modal--visible"),"function"==typeof t.opts.onOpen&&t.opts.onOpen.call(t),t._busy(!1),this.checkOverflow(),this}},t.prototype.close=function(t){if(!this._isBusy()){if(this._busy(!0),!1,"function"==typeof this.opts.beforeClose)if(!this.opts.beforeClose.call(this))return void this._busy(!1);document.body.classList.remove("tingle-enabled"),document.body.style.top=null,window.scrollTo({top:this._scrollPosition,behavior:"instant"}),this.modal.classList.remove("tingle-modal--visible");var o=this;o.modal.style.display="none","function"==typeof o.opts.onClose&&o.opts.onClose.call(this),o._busy(!1)}},t.prototype.setContent=function(t){return"string"==typeof t?this.modalBoxContent.innerHTML=t:(this.modalBoxContent.innerHTML="",this.modalBoxContent.appendChild(t)),this.isOpen()&&this.checkOverflow(),this},t.prototype.getContent=function(){return this.modalBoxContent},t.prototype.addFooter=function(){return function(){this.modalBoxFooter=document.createElement("div"),this.modalBoxFooter.classList.add("tingle-modal-box__footer"),this.modalBox.appendChild(this.modalBoxFooter)}.call(this),this},t.prototype.setFooterContent=function(t){return this.modalBoxFooter.innerHTML=t,this},t.prototype.getFooterContent=function(){return this.modalBoxFooter},t.prototype.setStickyFooter=function(t){return this.isOverflow()||(t=!1),t?this.modalBox.contains(this.modalBoxFooter)&&(this.modalBox.removeChild(this.modalBoxFooter),this.modal.appendChild(this.modalBoxFooter),this.modalBoxFooter.classList.add("tingle-modal-box__footer--sticky"),e.call(this),this.modalBoxContent.style["padding-bottom"]=this.modalBoxFooter.clientHeight+20+"px"):this.modalBoxFooter&&(this.modalBox.contains(this.modalBoxFooter)||(this.modal.removeChild(this.modalBoxFooter),this.modalBox.appendChild(this.modalBoxFooter),this.modalBoxFooter.style.width="auto",this.modalBoxFooter.style.left="",this.modalBoxContent.style["padding-bottom"]="",this.modalBoxFooter.classList.remove("tingle-modal-box__footer--sticky"))),this},t.prototype.addFooterBtn=function(t,o,e){var s=document.createElement("button");return s.innerHTML=t,s.addEventListener("click",e),"string"==typeof o&&o.length&&o.split(" ").forEach(function(t){s.classList.add(t)}),this.modalBoxFooter.appendChild(s),s},t.prototype.resize=function(){console.warn("Resize is deprecated and will be removed in version 1.0")},t.prototype.isOverflow=function(){return window.innerHeight<=this.modalBox.clientHeight},t.prototype.checkOverflow=function(){this.modal.classList.contains("tingle-modal--visible")&&(this.isOverflow()?this.modal.classList.add("tingle-modal--overflow"):this.modal.classList.remove("tingle-modal--overflow"),!this.isOverflow()&&this.opts.stickyFooter?this.setStickyFooter(!1):this.isOverflow()&&this.opts.stickyFooter&&(e.call(this),this.setStickyFooter(!0)))},{modal:t}});;
/**!

 @license
 handlebars v4.7.7

Copyright (C) 2011-2019 by Yehuda Katz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

*/
!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.Handlebars=b():a.Handlebars=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){"use strict";function d(){var a=r();return a.compile=function(b,c){return k.compile(b,c,a)},a.precompile=function(b,c){return k.precompile(b,c,a)},a.AST=i["default"],a.Compiler=k.Compiler,a.JavaScriptCompiler=m["default"],a.Parser=j.parser,a.parse=j.parse,a.parseWithoutProcessing=j.parseWithoutProcessing,a}var e=c(1)["default"];b.__esModule=!0;var f=c(2),g=e(f),h=c(45),i=e(h),j=c(46),k=c(51),l=c(52),m=e(l),n=c(49),o=e(n),p=c(44),q=e(p),r=g["default"].create,s=d();s.create=d,q["default"](s),s.Visitor=o["default"],s["default"]=s,b["default"]=s,a.exports=b["default"]},function(a,b){"use strict";b["default"]=function(a){return a&&a.__esModule?a:{"default":a}},b.__esModule=!0},function(a,b,c){"use strict";function d(){var a=new h.HandlebarsEnvironment;return n.extend(a,h),a.SafeString=j["default"],a.Exception=l["default"],a.Utils=n,a.escapeExpression=n.escapeExpression,a.VM=p,a.template=function(b){return p.template(b,a)},a}var e=c(3)["default"],f=c(1)["default"];b.__esModule=!0;var g=c(4),h=e(g),i=c(37),j=f(i),k=c(6),l=f(k),m=c(5),n=e(m),o=c(38),p=e(o),q=c(44),r=f(q),s=d();s.create=d,r["default"](s),s["default"]=s,b["default"]=s,a.exports=b["default"]},function(a,b){"use strict";b["default"]=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b},b.__esModule=!0},function(a,b,c){"use strict";function d(a,b,c){this.helpers=a||{},this.partials=b||{},this.decorators=c||{},i.registerDefaultHelpers(this),j.registerDefaultDecorators(this)}var e=c(1)["default"];b.__esModule=!0,b.HandlebarsEnvironment=d;var f=c(5),g=c(6),h=e(g),i=c(10),j=c(30),k=c(32),l=e(k),m=c(33),n="4.7.7";b.VERSION=n;var o=8;b.COMPILER_REVISION=o;var p=7;b.LAST_COMPATIBLE_COMPILER_REVISION=p;var q={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};b.REVISION_CHANGES=q;var r="[object Object]";d.prototype={constructor:d,logger:l["default"],log:l["default"].log,registerHelper:function(a,b){if(f.toString.call(a)===r){if(b)throw new h["default"]("Arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){if(f.toString.call(a)===r)f.extend(this.partials,a);else{if("undefined"==typeof b)throw new h["default"]('Attempting to register a partial called "'+a+'" as undefined');this.partials[a]=b}},unregisterPartial:function(a){delete this.partials[a]},registerDecorator:function(a,b){if(f.toString.call(a)===r){if(b)throw new h["default"]("Arg not supported with multiple decorators");f.extend(this.decorators,a)}else this.decorators[a]=b},unregisterDecorator:function(a){delete this.decorators[a]},resetLoggedPropertyAccesses:function(){m.resetLoggedProperties()}};var s=l["default"].log;b.log=s,b.createFrame=f.createFrame,b.logger=l["default"]},function(a,b){"use strict";function c(a){return k[a]}function d(a){for(var b=1;b<arguments.length;b++)for(var c in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],c)&&(a[c]=arguments[b][c]);return a}function e(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1}function f(a){if("string"!=typeof a){if(a&&a.toHTML)return a.toHTML();if(null==a)return"";if(!a)return a+"";a=""+a}return m.test(a)?a.replace(l,c):a}function g(a){return!a&&0!==a||!(!p(a)||0!==a.length)}function h(a){var b=d({},a);return b._parent=a,b}function i(a,b){return a.path=b,a}function j(a,b){return(a?a+".":"")+b}b.__esModule=!0,b.extend=d,b.indexOf=e,b.escapeExpression=f,b.isEmpty=g,b.createFrame=h,b.blockParams=i,b.appendContextPath=j;var k={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},l=/[&<>"'`=]/g,m=/[&<>"'`=]/,n=Object.prototype.toString;b.toString=n;var o=function(a){return"function"==typeof a};o(/x/)&&(b.isFunction=o=function(a){return"function"==typeof a&&"[object Function]"===n.call(a)}),b.isFunction=o;var p=Array.isArray||function(a){return!(!a||"object"!=typeof a)&&"[object Array]"===n.call(a)};b.isArray=p},function(a,b,c){"use strict";function d(a,b){var c=b&&b.loc,g=void 0,h=void 0,i=void 0,j=void 0;c&&(g=c.start.line,h=c.end.line,i=c.start.column,j=c.end.column,a+=" - "+g+":"+i);for(var k=Error.prototype.constructor.call(this,a),l=0;l<f.length;l++)this[f[l]]=k[f[l]];Error.captureStackTrace&&Error.captureStackTrace(this,d);try{c&&(this.lineNumber=g,this.endLineNumber=h,e?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:j,enumerable:!0})):(this.column=i,this.endColumn=j))}catch(m){}}var e=c(7)["default"];b.__esModule=!0;var f=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];d.prototype=new Error,b["default"]=d,a.exports=b["default"]},function(a,b,c){a.exports={"default":c(8),__esModule:!0}},function(a,b,c){var d=c(9);a.exports=function(a,b,c){return d.setDesc(a,b,c)}},function(a,b){var c=Object;a.exports={create:c.create,getProto:c.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:c.getOwnPropertyDescriptor,setDesc:c.defineProperty,setDescs:c.defineProperties,getKeys:c.keys,getNames:c.getOwnPropertyNames,getSymbols:c.getOwnPropertySymbols,each:[].forEach}},function(a,b,c){"use strict";function d(a){h["default"](a),j["default"](a),l["default"](a),n["default"](a),p["default"](a),r["default"](a),t["default"](a)}function e(a,b,c){a.helpers[b]&&(a.hooks[b]=a.helpers[b],c||delete a.helpers[b])}var f=c(1)["default"];b.__esModule=!0,b.registerDefaultHelpers=d,b.moveHelperToHooks=e;var g=c(11),h=f(g),i=c(12),j=f(i),k=c(25),l=f(k),m=c(26),n=f(m),o=c(27),p=f(o),q=c(28),r=f(q),s=c(29),t=f(s)},function(a,b,c){"use strict";b.__esModule=!0;var d=c(5);b["default"]=function(a){a.registerHelper("blockHelperMissing",function(b,c){var e=c.inverse,f=c.fn;if(b===!0)return f(this);if(b===!1||null==b)return e(this);if(d.isArray(b))return b.length>0?(c.ids&&(c.ids=[c.name]),a.helpers.each(b,c)):e(this);if(c.data&&c.ids){var g=d.createFrame(c.data);g.contextPath=d.appendContextPath(c.data.contextPath,c.name),c={data:g}}return f(b,c)})},a.exports=b["default"]},function(a,b,c){(function(d){"use strict";var e=c(13)["default"],f=c(1)["default"];b.__esModule=!0;var g=c(5),h=c(6),i=f(h);b["default"]=function(a){a.registerHelper("each",function(a,b){function c(b,c,d){l&&(l.key=b,l.index=c,l.first=0===c,l.last=!!d,m&&(l.contextPath=m+b)),k+=f(a[b],{data:l,blockParams:g.blockParams([a[b],b],[m+b,null])})}if(!b)throw new i["default"]("Must pass iterator to #each");var f=b.fn,h=b.inverse,j=0,k="",l=void 0,m=void 0;if(b.data&&b.ids&&(m=g.appendContextPath(b.data.contextPath,b.ids[0])+"."),g.isFunction(a)&&(a=a.call(this)),b.data&&(l=g.createFrame(b.data)),a&&"object"==typeof a)if(g.isArray(a))for(var n=a.length;j<n;j++)j in a&&c(j,j,j===a.length-1);else if(d.Symbol&&a[d.Symbol.iterator]){for(var o=[],p=a[d.Symbol.iterator](),q=p.next();!q.done;q=p.next())o.push(q.value);a=o;for(var n=a.length;j<n;j++)c(j,j,j===a.length-1)}else!function(){var b=void 0;e(a).forEach(function(a){void 0!==b&&c(b,j-1),b=a,j++}),void 0!==b&&c(b,j-1,!0)}();return 0===j&&(k=h(this)),k})},a.exports=b["default"]}).call(b,function(){return this}())},function(a,b,c){a.exports={"default":c(14),__esModule:!0}},function(a,b,c){c(15),a.exports=c(21).Object.keys},function(a,b,c){var d=c(16);c(18)("keys",function(a){return function(b){return a(d(b))}})},function(a,b,c){var d=c(17);a.exports=function(a){return Object(d(a))}},function(a,b){a.exports=function(a){if(void 0==a)throw TypeError("Can't call method on  "+a);return a}},function(a,b,c){var d=c(19),e=c(21),f=c(24);a.exports=function(a,b){var c=(e.Object||{})[a]||Object[a],g={};g[a]=b(c),d(d.S+d.F*f(function(){c(1)}),"Object",g)}},function(a,b,c){var d=c(20),e=c(21),f=c(22),g="prototype",h=function(a,b,c){var i,j,k,l=a&h.F,m=a&h.G,n=a&h.S,o=a&h.P,p=a&h.B,q=a&h.W,r=m?e:e[b]||(e[b]={}),s=m?d:n?d[b]:(d[b]||{})[g];m&&(c=b);for(i in c)j=!l&&s&&i in s,j&&i in r||(k=j?s[i]:c[i],r[i]=m&&"function"!=typeof s[i]?c[i]:p&&j?f(k,d):q&&s[i]==k?function(a){var b=function(b){return this instanceof a?new a(b):a(b)};return b[g]=a[g],b}(k):o&&"function"==typeof k?f(Function.call,k):k,o&&((r[g]||(r[g]={}))[i]=k))};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,a.exports=h},function(a,b){var c=a.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=c)},function(a,b){var c=a.exports={version:"1.2.6"};"number"==typeof __e&&(__e=c)},function(a,b,c){var d=c(23);a.exports=function(a,b,c){if(d(a),void 0===b)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}}},function(a,b){a.exports=function(a){if("function"!=typeof a)throw TypeError(a+" is not a function!");return a}},function(a,b){a.exports=function(a){try{return!!a()}catch(b){return!0}}},function(a,b,c){"use strict";var d=c(1)["default"];b.__esModule=!0;var e=c(6),f=d(e);b["default"]=function(a){a.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new f["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')})},a.exports=b["default"]},function(a,b,c){"use strict";var d=c(1)["default"];b.__esModule=!0;var e=c(5),f=c(6),g=d(f);b["default"]=function(a){a.registerHelper("if",function(a,b){if(2!=arguments.length)throw new g["default"]("#if requires exactly one argument");return e.isFunction(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||e.isEmpty(a)?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){if(2!=arguments.length)throw new g["default"]("#unless requires exactly one argument");return a.helpers["if"].call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})})},a.exports=b["default"]},function(a,b){"use strict";b.__esModule=!0,b["default"]=function(a){a.registerHelper("log",function(){for(var b=[void 0],c=arguments[arguments.length-1],d=0;d<arguments.length-1;d++)b.push(arguments[d]);var e=1;null!=c.hash.level?e=c.hash.level:c.data&&null!=c.data.level&&(e=c.data.level),b[0]=e,a.log.apply(a,b)})},a.exports=b["default"]},function(a,b){"use strict";b.__esModule=!0,b["default"]=function(a){a.registerHelper("lookup",function(a,b,c){return a?c.lookupProperty(a,b):a})},a.exports=b["default"]},function(a,b,c){"use strict";var d=c(1)["default"];b.__esModule=!0;var e=c(5),f=c(6),g=d(f);b["default"]=function(a){a.registerHelper("with",function(a,b){if(2!=arguments.length)throw new g["default"]("#with requires exactly one argument");e.isFunction(a)&&(a=a.call(this));var c=b.fn;if(e.isEmpty(a))return b.inverse(this);var d=b.data;return b.data&&b.ids&&(d=e.createFrame(b.data),d.contextPath=e.appendContextPath(b.data.contextPath,b.ids[0])),c(a,{data:d,blockParams:e.blockParams([a],[d&&d.contextPath])})})},a.exports=b["default"]},function(a,b,c){"use strict";function d(a){g["default"](a)}var e=c(1)["default"];b.__esModule=!0,b.registerDefaultDecorators=d;var f=c(31),g=e(f)},function(a,b,c){"use strict";b.__esModule=!0;var d=c(5);b["default"]=function(a){a.registerDecorator("inline",function(a,b,c,e){var f=a;return b.partials||(b.partials={},f=function(e,f){var g=c.partials;c.partials=d.extend({},g,b.partials);var h=a(e,f);return c.partials=g,h}),b.partials[e.args[0]]=e.fn,f})},a.exports=b["default"]},function(a,b,c){"use strict";b.__esModule=!0;var d=c(5),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if("string"==typeof a){var b=d.indexOf(e.methodMap,a.toLowerCase());a=b>=0?b:parseInt(a,10)}return a},log:function(a){if(a=e.lookupLevel(a),"undefined"!=typeof console&&e.lookupLevel(e.level)<=a){var b=e.methodMap[a];console[b]||(b="log");for(var c=arguments.length,d=Array(c>1?c-1:0),f=1;f<c;f++)d[f-1]=arguments[f];console[b].apply(console,d)}}};b["default"]=e,a.exports=b["default"]},function(a,b,c){"use strict";function d(a){var b=i(null);b.constructor=!1,b.__defineGetter__=!1,b.__defineSetter__=!1,b.__lookupGetter__=!1;var c=i(null);return c.__proto__=!1,{properties:{whitelist:l.createNewLookupObject(c,a.allowedProtoProperties),defaultValue:a.allowProtoPropertiesByDefault},methods:{whitelist:l.createNewLookupObject(b,a.allowedProtoMethods),defaultValue:a.allowProtoMethodsByDefault}}}function e(a,b,c){return"function"==typeof a?f(b.methods,c):f(b.properties,c)}function f(a,b){return void 0!==a.whitelist[b]?a.whitelist[b]===!0:void 0!==a.defaultValue?a.defaultValue:(g(b),!1)}function g(a){o[a]!==!0&&(o[a]=!0,n.log("error",'Handlebars: Access has been denied to resolve the property "'+a+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}function h(){j(o).forEach(function(a){delete o[a]})}var i=c(34)["default"],j=c(13)["default"],k=c(3)["default"];b.__esModule=!0,b.createProtoAccessControl=d,b.resultIsAllowed=e,b.resetLoggedProperties=h;var l=c(36),m=c(32),n=k(m),o=i(null)},function(a,b,c){a.exports={"default":c(35),__esModule:!0}},function(a,b,c){var d=c(9);a.exports=function(a,b){return d.create(a,b)}},function(a,b,c){"use strict";function d(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];return f.extend.apply(void 0,[e(null)].concat(b))}var e=c(34)["default"];b.__esModule=!0,b.createNewLookupObject=d;var f=c(5)},function(a,b){"use strict";function c(a){this.string=a}b.__esModule=!0,c.prototype.toString=c.prototype.toHTML=function(){return""+this.string},b["default"]=c,a.exports=b["default"]},function(a,b,c){"use strict";function d(a){var b=a&&a[0]||1,c=v.COMPILER_REVISION;if(!(b>=v.LAST_COMPATIBLE_COMPILER_REVISION&&b<=v.COMPILER_REVISION)){if(b<v.LAST_COMPATIBLE_COMPILER_REVISION){var d=v.REVISION_CHANGES[c],e=v.REVISION_CHANGES[b];throw new u["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+d+") or downgrade your runtime to an older version ("+e+").")}throw new u["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+a[1]+").")}}function e(a,b){function c(c,d,e){e.hash&&(d=s.extend({},d,e.hash),e.ids&&(e.ids[0]=!0)),c=b.VM.resolvePartial.call(this,c,d,e);var f=s.extend({},e,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),g=b.VM.invokePartial.call(this,c,d,f);if(null==g&&b.compile&&(e.partials[e.name]=b.compile(c,a.compilerOptions,b),g=e.partials[e.name](d,f)),null!=g){if(e.indent){for(var h=g.split("\n"),i=0,j=h.length;i<j&&(h[i]||i+1!==j);i++)h[i]=e.indent+h[i];g=h.join("\n")}return g}throw new u["default"]("The partial "+e.name+" could not be compiled when running in runtime-only mode")}function d(b){function c(b){return""+a.main(g,b,g.helpers,g.partials,f,i,h)}var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],f=e.data;d._setup(e),!e.partial&&a.useData&&(f=j(b,f));var h=void 0,i=a.useBlockParams?[]:void 0;return a.useDepths&&(h=e.depths?b!=e.depths[0]?[b].concat(e.depths):e.depths:[b]),(c=k(a.main,c,g,e.depths||[],f,i))(b,e)}if(!b)throw new u["default"]("No environment passed to template");if(!a||!a.main)throw new u["default"]("Unknown template object: "+typeof a);a.main.decorator=a.main_d,b.VM.checkRevision(a.compiler);var e=a.compiler&&7===a.compiler[0],g={strict:function(a,b,c){if(!(a&&b in a))throw new u["default"]('"'+b+'" not defined in '+a,{loc:c});return g.lookupProperty(a,b)},lookupProperty:function(a,b){var c=a[b];return null==c?c:Object.prototype.hasOwnProperty.call(a,b)?c:y.resultIsAllowed(c,g.protoAccessControl,b)?c:void 0},lookup:function(a,b){for(var c=a.length,d=0;d<c;d++){var e=a[d]&&g.lookupProperty(a[d],b);if(null!=e)return a[d][b]}},lambda:function(a,b){return"function"==typeof a?a.call(b):a},escapeExpression:s.escapeExpression,invokePartial:c,fn:function(b){var c=a[b];return c.decorator=a[b+"_d"],c},programs:[],program:function(a,b,c,d,e){var g=this.programs[a],h=this.fn(a);return b||e||d||c?g=f(this,a,h,b,c,d,e):g||(g=this.programs[a]=f(this,a,h)),g},data:function(a,b){for(;a&&b--;)a=a._parent;return a},mergeIfNeeded:function(a,b){var c=a||b;return a&&b&&a!==b&&(c=s.extend({},b,a)),c},nullContext:n({}),noop:b.VM.noop,compilerInfo:a.compiler};return d.isTop=!0,d._setup=function(c){if(c.partial)g.protoAccessControl=c.protoAccessControl,g.helpers=c.helpers,g.partials=c.partials,g.decorators=c.decorators,g.hooks=c.hooks;else{var d=s.extend({},b.helpers,c.helpers);l(d,g),g.helpers=d,a.usePartial&&(g.partials=g.mergeIfNeeded(c.partials,b.partials)),(a.usePartial||a.useDecorators)&&(g.decorators=s.extend({},b.decorators,c.decorators)),g.hooks={},g.protoAccessControl=y.createProtoAccessControl(c);var f=c.allowCallsToHelperMissing||e;w.moveHelperToHooks(g,"helperMissing",f),w.moveHelperToHooks(g,"blockHelperMissing",f)}},d._child=function(b,c,d,e){if(a.useBlockParams&&!d)throw new u["default"]("must pass block params");if(a.useDepths&&!e)throw new u["default"]("must pass parent depths");return f(g,b,a[b],c,0,d,e)},d}function f(a,b,c,d,e,f,g){function h(b){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],h=g;return!g||b==g[0]||b===a.nullContext&&null===g[0]||(h=[b].concat(g)),c(a,b,a.helpers,a.partials,e.data||d,f&&[e.blockParams].concat(f),h)}return h=k(c,h,a,g,d,f),h.program=b,h.depth=g?g.length:0,h.blockParams=e||0,h}function g(a,b,c){return a?a.call||c.name||(c.name=a,a=c.partials[a]):a="@partial-block"===c.name?c.data["partial-block"]:c.partials[c.name],a}function h(a,b,c){var d=c.data&&c.data["partial-block"];c.partial=!0,c.ids&&(c.data.contextPath=c.ids[0]||c.data.contextPath);var e=void 0;if(c.fn&&c.fn!==i&&!function(){c.data=v.createFrame(c.data);var a=c.fn;e=c.data["partial-block"]=function(b){var c=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return c.data=v.createFrame(c.data),c.data["partial-block"]=d,a(b,c)},a.partials&&(c.partials=s.extend({},c.partials,a.partials))}(),void 0===a&&e&&(a=e),void 0===a)throw new u["default"]("The partial "+c.name+" could not be found");if(a instanceof Function)return a(b,c)}function i(){return""}function j(a,b){return b&&"root"in b||(b=b?v.createFrame(b):{},b.root=a),b}function k(a,b,c,d,e,f){if(a.decorator){var g={};b=a.decorator(b,g,c,d&&d[0],e,f,d),s.extend(b,g)}return b}function l(a,b){o(a).forEach(function(c){var d=a[c];a[c]=m(d,b)})}function m(a,b){var c=b.lookupProperty;return x.wrapHelper(a,function(a){return s.extend({lookupProperty:c},a)})}var n=c(39)["default"],o=c(13)["default"],p=c(3)["default"],q=c(1)["default"];b.__esModule=!0,b.checkRevision=d,b.template=e,b.wrapProgram=f,b.resolvePartial=g,b.invokePartial=h,b.noop=i;var r=c(5),s=p(r),t=c(6),u=q(t),v=c(4),w=c(10),x=c(43),y=c(33)},function(a,b,c){a.exports={"default":c(40),__esModule:!0}},function(a,b,c){c(41),a.exports=c(21).Object.seal},function(a,b,c){var d=c(42);c(18)("seal",function(a){return function(b){return a&&d(b)?a(b):b}})},function(a,b){a.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a}},function(a,b){"use strict";function c(a,b){if("function"!=typeof a)return a;var c=function(){var c=arguments[arguments.length-1];return arguments[arguments.length-1]=b(c),a.apply(this,arguments)};return c}b.__esModule=!0,b.wrapHelper=c},function(a,b){(function(c){"use strict";b.__esModule=!0,b["default"]=function(a){var b="undefined"!=typeof c?c:window,d=b.Handlebars;a.noConflict=function(){return b.Handlebars===a&&(b.Handlebars=d),a}},a.exports=b["default"]}).call(b,function(){return this}())},function(a,b){"use strict";b.__esModule=!0;var c={helpers:{helperExpression:function(a){return"SubExpression"===a.type||("MustacheStatement"===a.type||"BlockStatement"===a.type)&&!!(a.params&&a.params.length||a.hash)},scopedId:function(a){return/^\.|this\b/.test(a.original)},simpleId:function(a){return 1===a.parts.length&&!c.helpers.scopedId(a)&&!a.depth}}};b["default"]=c,a.exports=b["default"]},function(a,b,c){"use strict";function d(a,b){if("Program"===a.type)return a;i["default"].yy=o,o.locInfo=function(a){return new o.SourceLocation(b&&b.srcName,a)};var c=i["default"].parse(a);return c}function e(a,b){var c=d(a,b),e=new k["default"](b);return e.accept(c)}var f=c(1)["default"],g=c(3)["default"];b.__esModule=!0,b.parseWithoutProcessing=d,b.parse=e;var h=c(47),i=f(h),j=c(48),k=f(j),l=c(50),m=g(l),n=c(5);b.parser=i["default"];var o={};n.extend(o,m)},function(a,b){"use strict";b.__esModule=!0;var c=function(){function a(){this.yy={}}var b={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return f[h-1];case 2:this.$=d.prepareProgram(f[h]);break;case 3:this.$=f[h];break;case 4:this.$=f[h];break;case 5:this.$=f[h];break;case 6:this.$=f[h];break;case 7:this.$=f[h];break;case 8:this.$=f[h];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(f[h]),strip:d.stripFlags(f[h],f[h]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:f[h],value:f[h],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(f[h-2],f[h-1],f[h],this._$);break;case 12:this.$={path:f[h-3],params:f[h-2],hash:f[h-1]};break;case 13:this.$=d.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!1,this._$);break;case 14:this.$=d.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!0,this._$);break;case 15:this.$={open:f[h-5],path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:d.stripFlags(f[h-5],f[h])};break;case 16:this.$={path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:d.stripFlags(f[h-5],f[h])};break;case 17:this.$={path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:d.stripFlags(f[h-5],f[h])};break;case 18:this.$={strip:d.stripFlags(f[h-1],f[h-1]),program:f[h]};break;case 19:var i=d.prepareBlock(f[h-2],f[h-1],f[h],f[h],!1,this._$),j=d.prepareProgram([i],f[h-1].loc);j.chained=!0,this.$={strip:f[h-2].strip,program:j,chain:!0};break;case 20:this.$=f[h];break;case 21:this.$={path:f[h-1],strip:d.stripFlags(f[h-2],f[h])};break;case 22:this.$=d.prepareMustache(f[h-3],f[h-2],f[h-1],f[h-4],d.stripFlags(f[h-4],f[h]),this._$);break;case 23:this.$=d.prepareMustache(f[h-3],f[h-2],f[h-1],f[h-4],d.stripFlags(f[h-4],f[h]),this._$);break;case 24:this.$={type:"PartialStatement",name:f[h-3],params:f[h-2],hash:f[h-1],indent:"",strip:d.stripFlags(f[h-4],f[h]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(f[h-2],f[h-1],f[h],this._$);break;case 26:this.$={path:f[h-3],params:f[h-2],hash:f[h-1],strip:d.stripFlags(f[h-4],f[h])};break;case 27:this.$=f[h];break;case 28:this.$=f[h];break;case 29:this.$={type:"SubExpression",path:f[h-3],params:f[h-2],hash:f[h-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:f[h],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(f[h-2]),value:f[h],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(f[h-1]);break;case 33:this.$=f[h];break;case 34:this.$=f[h];break;case 35:this.$={type:"StringLiteral",value:f[h],original:f[h],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(f[h]),original:Number(f[h]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===f[h],original:"true"===f[h],loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 40:this.$=f[h];break;case 41:this.$=f[h];break;case 42:this.$=d.preparePath(!0,f[h],this._$);break;case 43:this.$=d.preparePath(!1,f[h],this._$);break;case 44:f[h-2].push({part:d.id(f[h]),original:f[h],separator:f[h-1]}),this.$=f[h-2];break;case 45:this.$=[{part:d.id(f[h]),original:f[h]}];break;case 46:this.$=[];break;case 47:f[h-1].push(f[h]);break;case 48:this.$=[];break;case 49:f[h-1].push(f[h]);break;case 50:this.$=[];break;case 51:f[h-1].push(f[h]);break;case 58:this.$=[];break;case 59:f[h-1].push(f[h]);break;case 64:this.$=[];break;case 65:f[h-1].push(f[h]);break;case 70:this.$=[];break;case 71:f[h-1].push(f[h]);break;case 78:this.$=[];break;case 79:f[h-1].push(f[h]);break;case 82:this.$=[];break;case 83:f[h-1].push(f[h]);break;case 86:this.$=[];break;case 87:f[h-1].push(f[h]);break;case 90:this.$=[];break;case 91:f[h-1].push(f[h]);break;case 94:this.$=[];break;case 95:f[h-1].push(f[h]);break;case 98:this.$=[f[h]];break;case 99:f[h-1].push(f[h]);break;case 100:this.$=[f[h]];break;case 101:f[h-1].push(f[h])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{
33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(a,b){throw new Error(a)},parse:function(a){function b(){var a;return a=c.lexer.lex()||1,"number"!=typeof a&&(a=c.symbols_[a]||a),a}var c=this,d=[0],e=[null],f=[],g=this.table,h="",i=0,j=0,k=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var l=this.lexer.yylloc;f.push(l);var m=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var n,o,p,q,r,s,t,u,v,w={};;){if(p=d[d.length-1],this.defaultActions[p]?q=this.defaultActions[p]:(null!==n&&"undefined"!=typeof n||(n=b()),q=g[p]&&g[p][n]),"undefined"==typeof q||!q.length||!q[0]){var x="";if(!k){v=[];for(s in g[p])this.terminals_[s]&&s>2&&v.push("'"+this.terminals_[s]+"'");x=this.lexer.showPosition?"Parse error on line "+(i+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[n]||n)+"'":"Parse error on line "+(i+1)+": Unexpected "+(1==n?"end of input":"'"+(this.terminals_[n]||n)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[n]||n,line:this.lexer.yylineno,loc:l,expected:v})}}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+n);switch(q[0]){case 1:d.push(n),e.push(this.lexer.yytext),f.push(this.lexer.yylloc),d.push(q[1]),n=null,o?(n=o,o=null):(j=this.lexer.yyleng,h=this.lexer.yytext,i=this.lexer.yylineno,l=this.lexer.yylloc,k>0&&k--);break;case 2:if(t=this.productions_[q[1]][1],w.$=e[e.length-t],w._$={first_line:f[f.length-(t||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(t||1)].first_column,last_column:f[f.length-1].last_column},m&&(w._$.range=[f[f.length-(t||1)].range[0],f[f.length-1].range[1]]),r=this.performAction.call(w,h,j,i,this.yy,q[1],e,f),"undefined"!=typeof r)return r;t&&(d=d.slice(0,-1*t*2),e=e.slice(0,-1*t),f=f.slice(0,-1*t)),d.push(this.productions_[q[1]][0]),e.push(w.$),f.push(w._$),u=g[d[d.length-2]][d[d.length-1]],d.push(u);break;case 3:return!0}}return!0}},c=function(){var a={EOF:1,parseError:function(a,b){if(!this.yy.parser)throw new Error(a);this.yy.parser.parseError(a,b)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var b=a.match(/(?:\r\n?|\n).*/g);return b?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=new Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c,d,e;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),g=0;g<f.length&&(c=this._input.match(this.rules[f[g]]),!c||b&&!(c[0].length>b[0].length)||(b=c,d=g,this.options.flex));g++);return b?(e=b[0].match(/(?:\r\n?|\n).*/g),e&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this,this.yy,this,f[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a?a:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return"undefined"!=typeof a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return a.options={},a.performAction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substring(a,b.yyleng-c+a)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(e(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(b.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return b.yytext=e(1,2).replace(/\\"/g,'"'),80;case 32:return b.yytext=e(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();return b.lexer=c,a.prototype=b,b.Parser=a,new a}();b["default"]=c,a.exports=b["default"]},function(a,b,c){"use strict";function d(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"ContentStatement"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"ContentStatement"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"ContentStatement"===d.type&&(c||!d.rightStripped)){var e=d.value;d.value=d.value.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.value!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"ContentStatement"===d.type&&(c||!d.leftStripped)){var e=d.value;return d.value=d.value.replace(c?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.value!==e,d.leftStripped}}var i=c(1)["default"];b.__esModule=!0;var j=c(49),k=i(j);d.prototype=new k["default"],d.prototype.Program=function(a){var b=!this.options.ignoreStandalone,c=!this.isRootSeen;this.isRootSeen=!0;for(var d=a.body,i=0,j=d.length;i<j;i++){var k=d[i],l=this.accept(k);if(l){var m=e(d,i,c),n=f(d,i,c),o=l.openStandalone&&m,p=l.closeStandalone&&n,q=l.inlineStandalone&&m&&n;l.close&&g(d,i,!0),l.open&&h(d,i,!0),b&&q&&(g(d,i),h(d,i)&&"PartialStatement"===k.type&&(k.indent=/([ \t]+$)/.exec(d[i-1].original)[1])),b&&o&&(g((k.program||k.inverse).body),h(d,i)),b&&p&&(g(d,i),h((k.inverse||k.program).body))}}return a},d.prototype.BlockStatement=d.prototype.DecoratorBlock=d.prototype.PartialBlockStatement=function(a){this.accept(a.program),this.accept(a.inverse);var b=a.program||a.inverse,c=a.program&&a.inverse,d=c,i=c;if(c&&c.chained)for(d=c.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var j={open:a.openStrip.open,close:a.closeStrip.close,openStandalone:f(b.body),closeStandalone:e((d||b).body)};if(a.openStrip.close&&g(b.body,null,!0),c){var k=a.inverseStrip;k.open&&h(b.body,null,!0),k.close&&g(d.body,null,!0),a.closeStrip.open&&h(i.body,null,!0),!this.options.ignoreStandalone&&e(b.body)&&f(d.body)&&(h(b.body),g(d.body))}else a.closeStrip.open&&h(b.body,null,!0);return j},d.prototype.Decorator=d.prototype.MustacheStatement=function(a){return a.strip},d.prototype.PartialStatement=d.prototype.CommentStatement=function(a){var b=a.strip||{};return{inlineStandalone:!0,open:b.open,close:b.close}},b["default"]=d,a.exports=b["default"]},function(a,b,c){"use strict";function d(){this.parents=[]}function e(a){this.acceptRequired(a,"path"),this.acceptArray(a.params),this.acceptKey(a,"hash")}function f(a){e.call(this,a),this.acceptKey(a,"program"),this.acceptKey(a,"inverse")}function g(a){this.acceptRequired(a,"name"),this.acceptArray(a.params),this.acceptKey(a,"hash")}var h=c(1)["default"];b.__esModule=!0;var i=c(6),j=h(i);d.prototype={constructor:d,mutating:!1,acceptKey:function(a,b){var c=this.accept(a[b]);if(this.mutating){if(c&&!d.prototype[c.type])throw new j["default"]('Unexpected node type "'+c.type+'" found when accepting '+b+" on "+a.type);a[b]=c}},acceptRequired:function(a,b){if(this.acceptKey(a,b),!a[b])throw new j["default"](a.type+" requires "+b)},acceptArray:function(a){for(var b=0,c=a.length;b<c;b++)this.acceptKey(a,b),a[b]||(a.splice(b,1),b--,c--)},accept:function(a){if(a){if(!this[a.type])throw new j["default"]("Unknown type: "+a.type,a);this.current&&this.parents.unshift(this.current),this.current=a;var b=this[a.type](a);return this.current=this.parents.shift(),!this.mutating||b?b:b!==!1?a:void 0}},Program:function(a){this.acceptArray(a.body)},MustacheStatement:e,Decorator:e,BlockStatement:f,DecoratorBlock:f,PartialStatement:g,PartialBlockStatement:function(a){g.call(this,a),this.acceptKey(a,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:e,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(a){this.acceptArray(a.pairs)},HashPair:function(a){this.acceptRequired(a,"value")}},b["default"]=d,a.exports=b["default"]},function(a,b,c){"use strict";function d(a,b){if(b=b.path?b.path.original:b,a.path.original!==b){var c={loc:a.path.loc};throw new q["default"](a.path.original+" doesn't match "+b,c)}}function e(a,b){this.source=a,this.start={line:b.first_line,column:b.first_column},this.end={line:b.last_line,column:b.last_column}}function f(a){return/^\[.*\]$/.test(a)?a.substring(1,a.length-1):a}function g(a,b){return{open:"~"===a.charAt(2),close:"~"===b.charAt(b.length-3)}}function h(a){return a.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function i(a,b,c){c=this.locInfo(c);for(var d=a?"@":"",e=[],f=0,g=0,h=b.length;g<h;g++){var i=b[g].part,j=b[g].original!==i;if(d+=(b[g].separator||"")+i,j||".."!==i&&"."!==i&&"this"!==i)e.push(i);else{if(e.length>0)throw new q["default"]("Invalid path: "+d,{loc:c});".."===i&&f++}}return{type:"PathExpression",data:a,depth:f,parts:e,original:d,loc:c}}function j(a,b,c,d,e,f){var g=d.charAt(3)||d.charAt(2),h="{"!==g&&"&"!==g,i=/\*/.test(d);return{type:i?"Decorator":"MustacheStatement",path:a,params:b,hash:c,escaped:h,strip:e,loc:this.locInfo(f)}}function k(a,b,c,e){d(a,c),e=this.locInfo(e);var f={type:"Program",body:b,strip:{},loc:e};return{type:"BlockStatement",path:a.path,params:a.params,hash:a.hash,program:f,openStrip:{},inverseStrip:{},closeStrip:{},loc:e}}function l(a,b,c,e,f,g){e&&e.path&&d(a,e);var h=/\*/.test(a.open);b.blockParams=a.blockParams;var i=void 0,j=void 0;if(c){if(h)throw new q["default"]("Unexpected inverse block on decorator",c);c.chain&&(c.program.body[0].closeStrip=e.strip),j=c.strip,i=c.program}return f&&(f=i,i=b,b=f),{type:h?"DecoratorBlock":"BlockStatement",path:a.path,params:a.params,hash:a.hash,program:b,inverse:i,openStrip:a.strip,inverseStrip:j,closeStrip:e&&e.strip,loc:this.locInfo(g)}}function m(a,b){if(!b&&a.length){var c=a[0].loc,d=a[a.length-1].loc;c&&d&&(b={source:c.source,start:{line:c.start.line,column:c.start.column},end:{line:d.end.line,column:d.end.column}})}return{type:"Program",body:a,strip:{},loc:b}}function n(a,b,c,e){return d(a,c),{type:"PartialBlockStatement",name:a.path,params:a.params,hash:a.hash,program:b,openStrip:a.strip,closeStrip:c&&c.strip,loc:this.locInfo(e)}}var o=c(1)["default"];b.__esModule=!0,b.SourceLocation=e,b.id=f,b.stripFlags=g,b.stripComment=h,b.preparePath=i,b.prepareMustache=j,b.prepareRawBlock=k,b.prepareBlock=l,b.prepareProgram=m,b.preparePartialBlock=n;var p=c(6),q=o(p)},function(a,b,c){"use strict";function d(){}function e(a,b,c){if(null==a||"string"!=typeof a&&"Program"!==a.type)throw new l["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);b=b||{},"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var d=c.parse(a,b),e=(new c.Compiler).compile(d,b);return(new c.JavaScriptCompiler).compile(e,b)}function f(a,b,c){function d(){var d=c.parse(a,b),e=(new c.Compiler).compile(d,b),f=(new c.JavaScriptCompiler).compile(e,b,void 0,!0);return c.template(f)}function e(a,b){return f||(f=d()),f.call(this,a,b)}if(void 0===b&&(b={}),null==a||"string"!=typeof a&&"Program"!==a.type)throw new l["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);b=m.extend({},b),"data"in b||(b.data=!0),b.compat&&(b.useDepths=!0);var f=void 0;return e._setup=function(a){return f||(f=d()),f._setup(a)},e._child=function(a,b,c,e){return f||(f=d()),f._child(a,b,c,e)},e}function g(a,b){if(a===b)return!0;if(m.isArray(a)&&m.isArray(b)&&a.length===b.length){for(var c=0;c<a.length;c++)if(!g(a[c],b[c]))return!1;return!0}}function h(a){if(!a.path.parts){var b=a.path;a.path={type:"PathExpression",data:!1,depth:0,parts:[b.original+""],original:b.original+"",loc:b.loc}}}var i=c(34)["default"],j=c(1)["default"];b.__esModule=!0,b.Compiler=d,b.precompile=e,b.compile=f;var k=c(6),l=j(k),m=c(5),n=c(45),o=j(n),p=[].slice;d.prototype={compiler:d,equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;c<b;c++){var d=this.opcodes[c],e=a.opcodes[c];if(d.opcode!==e.opcode||!g(d.args,e.args))return!1}b=this.children.length;for(var c=0;c<b;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,b){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=b,this.stringParams=b.stringParams,this.trackIds=b.trackIds,b.blockParams=b.blockParams||[],b.knownHelpers=m.extend(i(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},b.knownHelpers),this.accept(a)},compileProgram:function(a){var b=new this.compiler,c=b.compile(a,this.options),d=this.guid++;return this.usePartial=this.usePartial||c.usePartial,this.children[d]=c,this.useDepths=this.useDepths||c.useDepths,d},accept:function(a){if(!this[a.type])throw new l["default"]("Unknown type: "+a.type,a);this.sourceNode.unshift(a);var b=this[a.type](a);return this.sourceNode.shift(),b},Program:function(a){this.options.blockParams.unshift(a.blockParams);for(var b=a.body,c=b.length,d=0;d<c;d++)this.accept(b[d]);return this.options.blockParams.shift(),this.isSimple=1===c,this.blockParams=a.blockParams?a.blockParams.length:0,this},BlockStatement:function(a){h(a);var b=a.program,c=a.inverse;b=b&&this.compileProgram(b),c=c&&this.compileProgram(c);var d=this.classifySexpr(a);"helper"===d?this.helperSexpr(a,b,c):"simple"===d?(this.simpleSexpr(a),this.opcode("pushProgram",b),this.opcode("pushProgram",c),this.opcode("emptyHash"),this.opcode("blockValue",a.path.original)):(this.ambiguousSexpr(a,b,c),this.opcode("pushProgram",b),this.opcode("pushProgram",c),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(a){var b=a.program&&this.compileProgram(a.program),c=this.setupFullMustacheParams(a,b,void 0),d=a.path;this.useDecorators=!0,this.opcode("registerDecorator",c.length,d.original)},PartialStatement:function(a){this.usePartial=!0;var b=a.program;b&&(b=this.compileProgram(a.program));var c=a.params;if(c.length>1)throw new l["default"]("Unsupported number of partial arguments: "+c.length,a);c.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):c.push({type:"PathExpression",parts:[],depth:0}));var d=a.name.original,e="SubExpression"===a.name.type;e&&this.accept(a.name),this.setupFullMustacheParams(a,b,void 0,!0);var f=a.indent||"";this.options.preventIndent&&f&&(this.opcode("appendContent",f),f=""),this.opcode("invokePartial",e,d,f),this.opcode("append")},PartialBlockStatement:function(a){this.PartialStatement(a)},MustacheStatement:function(a){this.SubExpression(a),a.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(a){this.DecoratorBlock(a)},ContentStatement:function(a){a.value&&this.opcode("appendContent",a.value)},CommentStatement:function(){},SubExpression:function(a){h(a);var b=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ambiguousSexpr:function(a,b,c){var d=a.path,e=d.parts[0],f=null!=b||null!=c;this.opcode("getContext",d.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",c),d.strict=!0,this.accept(d),this.opcode("invokeAmbiguous",e,f)},simpleSexpr:function(a){var b=a.path;b.strict=!0,this.accept(b),this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){var d=this.setupFullMustacheParams(a,b,c),e=a.path,f=e.parts[0];if(this.options.knownHelpers[f])this.opcode("invokeKnownHelper",d.length,f);else{if(this.options.knownHelpersOnly)throw new l["default"]("You specified knownHelpersOnly, but used the unknown helper "+f,a);e.strict=!0,e.falsy=!0,this.accept(e),this.opcode("invokeHelper",d.length,e.original,o["default"].helpers.simpleId(e))}},PathExpression:function(a){this.addDepth(a.depth),this.opcode("getContext",a.depth);var b=a.parts[0],c=o["default"].helpers.scopedId(a),d=!a.depth&&!c&&this.blockParamIndex(b);d?this.opcode("lookupBlockParam",d,a.parts):b?a.data?(this.options.data=!0,this.opcode("lookupData",a.depth,a.parts,a.strict)):this.opcode("lookupOnContext",a.parts,a.falsy,a.strict,c):this.opcode("pushContext")},StringLiteral:function(a){this.opcode("pushString",a.value)},NumberLiteral:function(a){this.opcode("pushLiteral",a.value)},BooleanLiteral:function(a){this.opcode("pushLiteral",a.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(a){var b=a.pairs,c=0,d=b.length;for(this.opcode("pushHash");c<d;c++)this.pushParam(b[c].value);for(;c--;)this.opcode("assignToHash",b[c].key);this.opcode("popHash")},opcode:function(a){this.opcodes.push({opcode:a,args:p.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(a){a&&(this.useDepths=!0)},classifySexpr:function(a){var b=o["default"].helpers.simpleId(a.path),c=b&&!!this.blockParamIndex(a.path.parts[0]),d=!c&&o["default"].helpers.helperExpression(a),e=!c&&(d||b);if(e&&!d){var f=a.path.parts[0],g=this.options;g.knownHelpers[f]?d=!0:g.knownHelpersOnly&&(e=!1)}return d?"helper":e?"ambiguous":"simple"},pushParams:function(a){for(var b=0,c=a.length;b<c;b++)this.pushParam(a[b])},pushParam:function(a){var b=null!=a.value?a.value:a.original||"";if(this.stringParams)b.replace&&(b=b.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),a.depth&&this.addDepth(a.depth),this.opcode("getContext",a.depth||0),this.opcode("pushStringParam",b,a.type),"SubExpression"===a.type&&this.accept(a);else{if(this.trackIds){var c=void 0;if(!a.parts||o["default"].helpers.scopedId(a)||a.depth||(c=this.blockParamIndex(a.parts[0])),c){var d=a.parts.slice(1).join(".");this.opcode("pushId","BlockParam",c,d)}else b=a.original||b,b.replace&&(b=b.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",a.type,b)}this.accept(a)}},setupFullMustacheParams:function(a,b,c,d){var e=a.params;return this.pushParams(e),this.opcode("pushProgram",b),this.opcode("pushProgram",c),a.hash?this.accept(a.hash):this.opcode("emptyHash",d),e},blockParamIndex:function(a){for(var b=0,c=this.options.blockParams.length;b<c;b++){var d=this.options.blockParams[b],e=d&&m.indexOf(d,a);if(d&&e>=0)return[b,e]}}}},function(a,b,c){"use strict";function d(a){this.value=a}function e(){}function f(a,b,c,d){var e=b.popStack(),f=0,g=c.length;for(a&&g--;f<g;f++)e=b.nameLookup(e,c[f],d);return a?[b.aliasable("container.strict"),"(",e,", ",b.quotedString(c[f]),", ",JSON.stringify(b.source.currentLocation)," )"]:e}var g=c(13)["default"],h=c(1)["default"];b.__esModule=!0;var i=c(4),j=c(6),k=h(j),l=c(5),m=c(53),n=h(m);e.prototype={nameLookup:function(a,b){return this.internalNameLookup(a,b)},depthedLookup:function(a){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(a),")"]},compilerInfo:function(){var a=i.COMPILER_REVISION,b=i.REVISION_CHANGES[a];return[a,b]},appendToBuffer:function(a,b,c){return l.isArray(a)||(a=[a]),a=this.source.wrap(a,b),this.environment.isSimple?["return ",a,";"]:c?["buffer += ",a,";"]:(a.appendToBuffer=!0,a)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(a,b){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",a,",",JSON.stringify(b),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(a,b,c,d){this.environment=a,this.options=b,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!d,this.name=this.environment.name,this.isChild=!!c,this.context=c||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(a,b),this.useDepths=this.useDepths||a.useDepths||a.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||a.useBlockParams;var e=a.opcodes,f=void 0,g=void 0,h=void 0,i=void 0;for(h=0,i=e.length;h<i;h++)f=e[h],this.source.currentLocation=f.loc,g=g||f.loc,this[f.opcode].apply(this,f.args);if(this.source.currentLocation=g,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new k["default"]("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),
this.decorators.push("return fn;"),d?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var j=this.createFunctionContext(d);if(this.isChild)return j;var l={compiler:this.compilerInfo(),main:j};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var m=this.context,n=m.programs,o=m.decorators;for(h=0,i=n.length;h<i;h++)n[h]&&(l[h]=n[h],o[h]&&(l[h+"_d"]=o[h],l.useDecorators=!0));return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),d?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),b.srcName?(l=l.toStringWithSourceMap({file:b.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},preamble:function(){this.lastContext=0,this.source=new n["default"](this.options.srcName),this.decorators=new n["default"](this.options.srcName)},createFunctionContext:function(a){var b=this,c="",d=this.stackVars.concat(this.registers.list);d.length>0&&(c+=", "+d.join(", "));var e=0;g(this.aliases).forEach(function(a){var d=b.aliases[a];d.children&&d.referenceCount>1&&(c+=", alias"+ ++e+"="+a,d.children[0]="alias"+e)}),this.lookupPropertyFunctionIsUsed&&(c+=", "+this.lookupPropertyFunctionVarDeclaration());var f=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&f.push("blockParams"),this.useDepths&&f.push("depths");var h=this.mergeSource(c);return a?(f.push(h),Function.apply(this,f)):this.source.wrap(["function(",f.join(","),") {\n  ",h,"}"])},mergeSource:function(a){var b=this.environment.isSimple,c=!this.forceBuffer,d=void 0,e=void 0,f=void 0,g=void 0;return this.source.each(function(a){a.appendToBuffer?(f?a.prepend("  + "):f=a,g=a):(f&&(e?f.prepend("buffer += "):d=!0,g.add(";"),f=g=void 0),e=!0,b||(c=!1))}),c?f?(f.prepend("return "),g.add(";")):e||this.source.push('return "";'):(a+=", buffer = "+(d?"":this.initializeBuffer()),f?(f.prepend("return buffer + "),g.add(";")):this.source.push("return buffer;")),a&&this.source.prepend("var "+a.substring(2)+(d?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n      lookupProperty = container.lookupProperty || function(parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined\n    }\n    ".trim()},blockValue:function(a){var b=this.aliasable("container.hooks.blockHelperMissing"),c=[this.contextName(0)];this.setupHelperArgs(a,0,c);var d=this.popStack();c.splice(1,0,d),this.push(this.source.functionCall(b,"call",c))},ambiguousBlockValue:function(){var a=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs("",0,b,!0),this.flushInline();var c=this.topStack();b.splice(1,0,c),this.pushSource(["if (!",this.lastHelper,") { ",c," = ",this.source.functionCall(a,"call",b),"}"])},appendContent:function(a){this.pendingContent?a=this.pendingContent+a:this.pendingLocation=this.source.currentLocation,this.pendingContent=a},append:function(){if(this.isInline())this.replaceStack(function(a){return[" != null ? ",a,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var a=this.popStack();this.pushSource(["if (",a," != null) { ",this.appendToBuffer(a,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(a){this.lastContext=a},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(a,b,c,d){var e=0;d||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(a[e++])),this.resolvePath("context",a,e,b,c)},lookupBlockParam:function(a,b){this.useBlockParams=!0,this.push(["blockParams[",a[0],"][",a[1],"]"]),this.resolvePath("context",b,1)},lookupData:function(a,b,c){a?this.pushStackLiteral("container.data(data, "+a+")"):this.pushStackLiteral("data"),this.resolvePath("data",b,0,!0,c)},resolvePath:function(a,b,c,d,e){var g=this;if(this.options.strict||this.options.assumeObjects)return void this.push(f(this.options.strict&&e,this,b,a));for(var h=b.length;c<h;c++)this.replaceStack(function(e){var f=g.nameLookup(e,b[c],a);return d?[" && ",f]:[" != null ? ",f," : ",e]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(a,b){this.pushContext(),this.pushString(b),"SubExpression"!==b&&("string"==typeof a?this.pushString(a):this.pushStackLiteral(a))},emptyHash:function(a){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(a?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var a=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(a.ids)),this.stringParams&&(this.push(this.objectLiteral(a.contexts)),this.push(this.objectLiteral(a.types))),this.push(this.objectLiteral(a.values))},pushString:function(a){this.pushStackLiteral(this.quotedString(a))},pushLiteral:function(a){this.pushStackLiteral(a)},pushProgram:function(a){null!=a?this.pushStackLiteral(this.programExpression(a)):this.pushStackLiteral(null)},registerDecorator:function(a,b){var c=this.nameLookup("decorators",b,"decorator"),d=this.setupHelperArgs(b,a);this.decorators.push(["fn = ",this.decorators.functionCall(c,"",["fn","props","container",d])," || fn;"])},invokeHelper:function(a,b,c){var d=this.popStack(),e=this.setupHelper(a,b),f=[];c&&f.push(e.name),f.push(d),this.options.strict||f.push(this.aliasable("container.hooks.helperMissing"));var g=["(",this.itemsSeparatedBy(f,"||"),")"],h=this.source.functionCall(g,"call",e.callParams);this.push(h)},itemsSeparatedBy:function(a,b){var c=[];c.push(a[0]);for(var d=1;d<a.length;d++)c.push(b,a[d]);return c},invokeKnownHelper:function(a,b){var c=this.setupHelper(a,b);this.push(this.source.functionCall(c.name,"call",c.callParams))},invokeAmbiguous:function(a,b){this.useRegister("helper");var c=this.popStack();this.emptyHash();var d=this.setupHelper(0,a,b),e=this.lastHelper=this.nameLookup("helpers",a,"helper"),f=["(","(helper = ",e," || ",c,")"];this.options.strict||(f[0]="(helper = ",f.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",f,d.paramsInit?["),(",d.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",d.callParams)," : helper))"])},invokePartial:function(a,b,c){var d=[],e=this.setupParams(b,1,d);a&&(b=this.popStack(),delete e.name),c&&(e.indent=JSON.stringify(c)),e.helpers="helpers",e.partials="partials",e.decorators="container.decorators",a?d.unshift(b):d.unshift(this.nameLookup("partials",b,"partial")),this.options.compat&&(e.depths="depths"),e=this.objectLiteral(e),d.push(e),this.push(this.source.functionCall("container.invokePartial","",d))},assignToHash:function(a){var b=this.popStack(),c=void 0,d=void 0,e=void 0;this.trackIds&&(e=this.popStack()),this.stringParams&&(d=this.popStack(),c=this.popStack());var f=this.hash;c&&(f.contexts[a]=c),d&&(f.types[a]=d),e&&(f.ids[a]=e),f.values[a]=b},pushId:function(a,b,c){"BlockParam"===a?this.pushStackLiteral("blockParams["+b[0]+"].path["+b[1]+"]"+(c?" + "+JSON.stringify("."+c):"")):"PathExpression"===a?this.pushString(b):"SubExpression"===a?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:e,compileChildren:function(a,b){for(var c=a.children,d=void 0,e=void 0,f=0,g=c.length;f<g;f++){d=c[f],e=new this.compiler;var h=this.matchExistingProgram(d);if(null==h){this.context.programs.push("");var i=this.context.programs.length;d.index=i,d.name="program"+i,this.context.programs[i]=e.compile(d,b,this.context,!this.precompile),this.context.decorators[i]=e.decorators,this.context.environments[i]=d,this.useDepths=this.useDepths||e.useDepths,this.useBlockParams=this.useBlockParams||e.useBlockParams,d.useDepths=this.useDepths,d.useBlockParams=this.useBlockParams}else d.index=h.index,d.name="program"+h.index,this.useDepths=this.useDepths||h.useDepths,this.useBlockParams=this.useBlockParams||h.useBlockParams}},matchExistingProgram:function(a){for(var b=0,c=this.context.environments.length;b<c;b++){var d=this.context.environments[b];if(d&&d.equals(a))return d}},programExpression:function(a){var b=this.environment.children[a],c=[b.index,"data",b.blockParams];return(this.useBlockParams||this.useDepths)&&c.push("blockParams"),this.useDepths&&c.push("depths"),"container.program("+c.join(", ")+")"},useRegister:function(a){this.registers[a]||(this.registers[a]=!0,this.registers.list.push(a))},push:function(a){return a instanceof d||(a=this.source.wrap(a)),this.inlineStack.push(a),a},pushStackLiteral:function(a){this.push(new d(a))},pushSource:function(a){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),a&&this.source.push(a)},replaceStack:function(a){var b=["("],c=void 0,e=void 0,f=void 0;if(!this.isInline())throw new k["default"]("replaceStack on non-inline");var g=this.popStack(!0);if(g instanceof d)c=[g.value],b=["(",c],f=!0;else{e=!0;var h=this.incrStack();b=["((",this.push(h)," = ",g,")"],c=this.topStack()}var i=a.call(this,c);f||this.popStack(),e&&this.stackSlot--,this.push(b.concat(i,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;this.inlineStack=[];for(var b=0,c=a.length;b<c;b++){var e=a[b];if(e instanceof d)this.compileStack.push(e);else{var f=this.incrStack();this.pushSource([f," = ",e,";"]),this.compileStack.push(f)}}},isInline:function(){return this.inlineStack.length},popStack:function(a){var b=this.isInline(),c=(b?this.inlineStack:this.compileStack).pop();if(!a&&c instanceof d)return c.value;if(!b){if(!this.stackSlot)throw new k["default"]("Invalid stack pop");this.stackSlot--}return c},topStack:function(){var a=this.isInline()?this.inlineStack:this.compileStack,b=a[a.length-1];return b instanceof d?b.value:b},contextName:function(a){return this.useDepths&&a?"depths["+a+"]":"depth"+a},quotedString:function(a){return this.source.quotedString(a)},objectLiteral:function(a){return this.source.objectLiteral(a)},aliasable:function(a){var b=this.aliases[a];return b?(b.referenceCount++,b):(b=this.aliases[a]=this.source.wrap(a),b.aliasable=!0,b.referenceCount=1,b)},setupHelper:function(a,b,c){var d=[],e=this.setupHelperArgs(b,a,d,c),f=this.nameLookup("helpers",b,"helper"),g=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:d,paramsInit:e,name:f,callParams:[g].concat(d)}},setupParams:function(a,b,c){var d={},e=[],f=[],g=[],h=!c,i=void 0;h&&(c=[]),d.name=this.quotedString(a),d.hash=this.popStack(),this.trackIds&&(d.hashIds=this.popStack()),this.stringParams&&(d.hashTypes=this.popStack(),d.hashContexts=this.popStack());var j=this.popStack(),k=this.popStack();(k||j)&&(d.fn=k||"container.noop",d.inverse=j||"container.noop");for(var l=b;l--;)i=this.popStack(),c[l]=i,this.trackIds&&(g[l]=this.popStack()),this.stringParams&&(f[l]=this.popStack(),e[l]=this.popStack());return h&&(d.args=this.source.generateArray(c)),this.trackIds&&(d.ids=this.source.generateArray(g)),this.stringParams&&(d.types=this.source.generateArray(f),d.contexts=this.source.generateArray(e)),this.options.data&&(d.data="data"),this.useBlockParams&&(d.blockParams="blockParams"),d},setupHelperArgs:function(a,b,c,d){var e=this.setupParams(a,b,c);return e.loc=JSON.stringify(this.source.currentLocation),e=this.objectLiteral(e),d?(this.useRegister("options"),c.push("options"),["options=",e]):c?(c.push(e),""):e}},function(){for(var a="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),b=e.RESERVED_WORDS={},c=0,d=a.length;c<d;c++)b[a[c]]=!0}(),e.isValidJavaScriptVariableName=function(a){return!e.RESERVED_WORDS[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(a)},b["default"]=e,a.exports=b["default"]},function(a,b,c){"use strict";function d(a,b,c){if(g.isArray(a)){for(var d=[],e=0,f=a.length;e<f;e++)d.push(b.wrap(a[e],c));return d}return"boolean"==typeof a||"number"==typeof a?a+"":a}function e(a){this.srcFile=a,this.source=[]}var f=c(13)["default"];b.__esModule=!0;var g=c(5),h=void 0;try{}catch(i){}h||(h=function(a,b,c,d){this.src="",d&&this.add(d)},h.prototype={add:function(a){g.isArray(a)&&(a=a.join("")),this.src+=a},prepend:function(a){g.isArray(a)&&(a=a.join("")),this.src=a+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),e.prototype={isEmpty:function(){return!this.source.length},prepend:function(a,b){this.source.unshift(this.wrap(a,b))},push:function(a,b){this.source.push(this.wrap(a,b))},merge:function(){var a=this.empty();return this.each(function(b){a.add(["  ",b,"\n"])}),a},each:function(a){for(var b=0,c=this.source.length;b<c;b++)a(this.source[b])},empty:function(){var a=this.currentLocation||{start:{}};return new h(a.start.line,a.start.column,this.srcFile)},wrap:function(a){var b=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return a instanceof h?a:(a=d(a,this,b),new h(b.start.line,b.start.column,this.srcFile,a))},functionCall:function(a,b,c){return c=this.generateList(c),this.wrap([a,b?"."+b+"(":"(",c,")"])},quotedString:function(a){return'"'+(a+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(a){var b=this,c=[];f(a).forEach(function(e){var f=d(a[e],b);"undefined"!==f&&c.push([b.quotedString(e),":",f])});var e=this.generateList(c);return e.prepend("{"),e.add("}"),e},generateList:function(a){for(var b=this.empty(),c=0,e=a.length;c<e;c++)c&&b.add(","),b.add(d(a[c],this));return b},generateArray:function(a){var b=this.generateList(a);return b.prepend("["),b.add("]"),b}},b["default"]=e,a.exports=b["default"]}])});;
/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(t){var e,n,s,p,r,o,h,f,g,m,y,v,i,a,_,s=((u=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:u)&&u.requirejs||(u?n=u:u={},g={},m={},y={},v={},i=Object.prototype.hasOwnProperty,a=[].slice,_=/\.js$/,h=function(e,t){var n,s,i=c(e),r=i[0],t=t[1];return e=i[1],r&&(n=x(r=l(r,t))),r?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return l(e,s)})):l(e,t):(r=(i=c(e=l(e,t)))[0],e=i[1],r&&(n=x(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},f={require:function(e){return w(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},r=function(e,t,n,s){var i,r,o,a,l,c=[],u=typeof n,d=A(s=s||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,a=0;a<t.length;a+=1)if("require"===(r=(o=h(t[a],d)).f))c[a]=f.require(e);else if("exports"===r)c[a]=f.exports(e),l=!0;else if("module"===r)i=c[a]=f.module(e);else if(b(g,r)||b(m,r)||b(v,r))c[a]=x(r);else{if(!o.p)throw new Error(e+" missing "+r);o.p.load(o.n,w(s,!0),function(t){return function(e){g[t]=e}}(r),{}),c[a]=g[r]}u=n?n.apply(g[e],c):void 0,e&&(i&&i.exports!==p&&i.exports!==g[e]?g[e]=i.exports:u===p&&l||(g[e]=u))}else e&&(g[e]=n)},e=n=o=function(e,t,n,s,i){if("string"==typeof e)return f[e]?f[e](t):x(h(e,A(t)).f);if(!e.splice){if((y=e).deps&&o(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?r(p,e,t,n):setTimeout(function(){r(p,e,t,n)},4),o},o.config=function(e){return o(e)},e._defined=g,(s=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(g,e)||b(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},u.requirejs=e,u.require=n,u.define=s),u.define("almond",function(){}),u.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),u.define("select2/utils",["jquery"],function(r){var s={};function c(e){var t,n=e.prototype,s=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&s.push(t);return s}s.Extend=function(e,t){var n,s={}.hasOwnProperty;function i(){this.constructor=e}for(n in t)s.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},s.Decorate=function(s,i){var e=c(i),t=c(s);function r(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=s.displayName,r.prototype=new function(){this.constructor=r};for(var n=0;n<t.length;n++){var o=t[n];r.prototype[o]=s.prototype[o]}for(var a=0;a<e.length;a++){var l=e[a];r.prototype[l]=function(e){var t=function(){};e in r.prototype&&(t=r.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}(l)}return r};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t)},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var r=n[i];(r=r.substring(0,1).toLowerCase()+r.substring(1))in s||(s[r]={}),i==n.length-1&&(s[r]=e[t]),s=s[r]}delete e[t]}}return e},s.hasScroll=function(e,t){var n=r(t),s=t.style.overflowX,i=t.style.overflowY;return(s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},s.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t||(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n},s.GetData=function(e,t){var n=s.GetUniqueElementId(e);return t?s.__cache[n]&&null!=s.__cache[n][t]?s.__cache[n][t]:r(e).data(t):s.__cache[n]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),t=n.concat(t);e.setAttribute("class",t.join(" "))},s}),u.define("select2/results",["jquery","./utils"],function(d,p){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this)}return p.Extend(s,p.Observable),s.prototype.render=function(){var e=d('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var s=e.results[n],s=this.option(s);t.push(s)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},s.prototype.position=function(e,t){t.find(".select2-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=d(this),t=p.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<s.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},s.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t=document.createElement("li");t.classList.add("select2-results__option"),t.classList.add("select2-results__option--selectable");var n,s={role:"option"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(n in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(s["aria-disabled"]="true",t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--disabled")),null==e.id&&t.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(s.role="group",s["aria-label"]=e.text,t.classList.remove("select2-results__option--selectable"),t.classList.add("select2-results__option--group")),s){var r=s[n];t.setAttribute(n,r)}if(e.children){var o=d(t),a=document.createElement("strong");a.className="select2-results__group",this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],u=this.option(u);l.push(u)}i=d("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});i.append(l),o.append(a),o.append(i)}else this.template(e,t);return p.StoreData(t,"data",e),t},s.prototype.bind=function(t,e){var i=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=i.getHighlightedResults();0!==t.length&&(e=p.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t);s<=0||(e=s-1,0===t.length&&(e=0),(s=n.eq(e)).trigger("mouseenter"),t=i.$results.offset().top,n=s.offset().top,s=i.$results.scrollTop()+(n-t),0===e?i.$results.scrollTop(0):n-t<0&&i.$results.scrollTop(s))}),t.on("results:next",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t)+1;s>=n.length||((e=n.eq(s)).trigger("mouseenter"),t=i.$results.offset().top+i.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=i.$results.scrollTop()+n-t,0===s?i.$results.scrollTop(0):t<n&&i.$results.scrollTop(e))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){i.displayMessage(e)}),d.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=i.$results.height();t?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=d(this),n=p.GetData(this,"data");t.hasClass("select2-results__option--selected")?i.options.get("multiple")?i.trigger("unselect",{originalEvent:e,data:n}):i.trigger("close",{}):i.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=p.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:t,element:d(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e,t,n,s,i=this.getHighlightedResults();0!==i.length&&(e=this.$results.find(".select2-results__option--selectable").index(i),s=this.$results.offset().top,t=i.offset().top,n=this.$results.scrollTop()+(t-s),s=t-s,n-=2*i.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(n))},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),e=n(e,t);null==e?t.style.display="none":"string"==typeof e?t.innerHTML=s(e):d(t).append(e)},s}),u.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),u.define("select2/selection/base",["jquery","../utils","../keys"],function(n,s,i){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return s.Extend(r,s.Observable),r.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=s.GetData(this.$element[0],"old-tabindex")?this._tabindex=s.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},r.prototype.bind=function(e,t){var n=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},r.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},r.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&s.GetData(this,"element").select2("close")})})},r.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},r.prototype.position=function(e,t){t.find(".selection").append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r}),u.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var s=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.attr("aria-controls",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){var t,n;0!==e.length?(n=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(n,t),t.empty().append(e),(n=n.title||n.text)?t.attr("title",n):t.removeAttr("title")):this.clear()},i}),u.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,c){function r(e,t){r.__super__.constructor.apply(this,arguments)}return c.Extend(r,e),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var s=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=i(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",s=0;s<e.length;s++){var i=e[s],r=this.selectionContainer(),o=this.display(i,r),a=n+c.generateChars(4)+"-";i.id?a+=i.id:a+=c.generateChars(4),r.find(".select2-selection__choice__display").append(o).attr("id",a);var l=i.title||i.text;l&&r.attr("title",l);o=this.options.get("translations").get("removeItem"),l=r.find(".select2-selection__choice__remove");l.attr("title",o()),l.attr("aria-label",o()),l.attr("aria-describedby",a),c.StoreData(r[0],"data",i),t.push(r)}this.$selection.find(".select2-selection__rendered").append(t)}},r}),u.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice");t=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",t),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();t=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(t)},e}),u.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,s,a){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var s=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var r={data:s};if(this.trigger("clear",r),r.prevented)this.$element.val(i);else{for(var o=0;o<s.length;o++)if(r={data:s[o]},this.trigger("unselect",r),r.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=s.DELETE&&t.which!=s.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var n,s;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(n=this.$selection.find(".select2-selection__rendered").attr("id"),s=this.options.get("translations").get("removeAllItems"),(e=i('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>')).attr("title",s()),e.attr("aria-label",s()),e.attr("aria-describedby",n),a.StoreData(e[0],"data",t),this.$selection.prepend(e),this.$selection[0].classList.add("select2-selection--clearable"))},e}),u.define("select2/selection/search",["jquery","../utils","../keys"],function(s,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=s('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t());e=e.call(this);return this._transferTabIndex(),e.append(this.$searchContainer),e},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results",r=t.id+"-container";e.call(this,t,n),s.$search.attr("aria-describedby",r),t.on("open",function(){s.$search.attr("aria-controls",i),s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which!==l.BACKSPACE||""!==s.$search.val()||0<(t=s.$selection.find(".select2-selection__choice").last()).length&&(t=a.GetData(t[0],"data"),s.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){s.$search.val()&&e.stopPropagation()});var t=document.documentMode,o=t&&t<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){o?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;o&&"input"===e.type?s.$selection.off("input.search input.searchcheck"):(t=e.which)!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&s.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},e}),u.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("selectionCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(e),t},e}),u.define("select2/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==i.indexOf(e)&&(t=t||{},n=o.Event("select2:"+e,{params:t}),s.$element.trigger(n),-1!==r.indexOf(e)&&(t.prevented=n.isDefaultPrevented()))})},e}),u.define("select2/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){var t;return e in s._cache||(t=n(e),s._cache[e]=t),new s(s._cache[e])},s}),u.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),u.define("select2/data/base",["../utils"],function(n){function s(e,t){s.__super__.constructor.call(this)}return n.Extend(s,n.Observable),s.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},s.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},s.prototype.bind=function(e,t){},s.prototype.destroy=function(){},s.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},s}),u.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(l(e))}))},n.prototype.select=function(i){var e,r=this;if(i.selected=!0,null!=i.element&&"option"===i.element.tagName.toLowerCase())return i.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===t.indexOf(s)&&t.push(s)}r.$element.val(t),r.$element.trigger("input").trigger("change")}):(e=i.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(i){var r=this;if(this.$element.prop("multiple")){if(i.selected=!1,null!=i.element&&"option"===i.element.tagName.toLowerCase())return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===t.indexOf(s)&&t.push(s)}r.$element.val(t),r.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],s=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=l(this),e=s.item(e),null!==(e=s.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);e=this._normalizeItem(e);return e.element=t,a.StoreData(t,"data",e),l(t)},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var s=e.children("option"),i=[],r=0;r<s.length;r++){var o=l(s[r]),o=this.item(o);i.push(o)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),u.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function s(e,t){this._dataToConvert=t.get("data")||[],s.__super__.constructor.call(this,e,t)}return t.Extend(s,e),s.prototype.bind=function(e,t){s.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},s.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n)},s.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),s=n.map(function(){return t.item(c(this)).id}).get(),i=[];for(var r=0;r<e.length;r++){var o,a,l=this._normalizeItem(e[r]);0<=s.indexOf(l.id)?(o=n.filter(function(e){return function(){return c(this).val()==e.id}}(l)),a=this.item(o),a=c.extend(!0,{},l,a),a=this.option(a),o.replaceWith(a)):(a=this.option(l),l.children&&(l=this.convertToOptions(l.children),a.append(l)),i.push(a))}return i},s}),u.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,r){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return r.extend({},e,{q:e.term})},transport:function(e,t,n){e=r.ajax(e);return e.then(t),e.fail(n),e}};return r.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(t,n){var s=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var i=r.extend({type:"GET"},this.ajaxOptions);function e(){var e=i.transport(i,function(e){e=s.processResults(e,t);s.options.get("debug")&&window.console&&console.error&&(e&&e.results&&Array.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),n(e)},function(){"status"in e&&(0===e.status||"0"===e.status)||s.trigger("results:message",{message:"errorLoading"})});s._request=e}"function"==typeof i.url&&(i.url=i.url.call(this.$element,t)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),u.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);i=n.get("insertTag");if(void 0!==i&&(this.insertTag=i),e.call(this,t,n),Array.isArray(s))for(var r=0;r<s.length;r++){var o=s[r],o=this._normalizeItem(o),o=this.option(o);this.$element.append(o)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var r=s[i],o=null!=r.children&&!e({results:r.children},!0);if((r.text||"").toUpperCase()===(c.term||"").toUpperCase()||o)return!n&&(t.data=s,void u(t))}if(n)return!0;var a,l=d.createTag(c);null!=l&&((a=d.option(l)).attr("data-select2-tag","true"),d.addOptions([a]),d.insertTag(s,l)),t.results=s,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){if(null==t.term)return null;t=t.term.trim();return""===t?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),u.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var s=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n=s._normalizeItem(e);s.$element.find("option").filter(function(){return c(this).val()===n.id}).length||((t=s.option(n)).attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([t])),t=n,s.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],r=t.term,o=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};o<r.length;){var l=r[o];-1!==i.indexOf(l)?(l=r.substr(0,o),null!=(l=a(c.extend({},t,{term:l})))?(s(l),r=r.substr(o+1)||"",o=0):o++):o++}return{term:r}},e}),u.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(){s._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var s=this;this._checkIfMaximumSelected(function(){e.call(s,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),u.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),u.define("select2/dropdown/search",["jquery"],function(r){function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("translations").get("search"),e=r('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=e,this.$search=e.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),t.prepend(e),t},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){r(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",i),s.$search.trigger("focus"),window.setTimeout(function(){s.$search.trigger("focus")},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||s.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer[0].classList.remove("select2-search--hide"):s.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),u.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1)}return n},e}),u.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),u.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,o){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),s._bindContainerResultHandlers(t)}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0)},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id,t=this.$container.parents().filter(o.hasScroll);t.each(function(){o.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),t.on(s,function(e){var t=o.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(s+" "+i+" "+r,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(o.hasScroll).off(n),u(window).off(n+" "+s+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),s=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=i.top,r.bottom=i.top+r.height;var o=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-o,e=l>i.bottom+o,a={left:i.left,top:r.bottom},l=this.$dropdownParent;"static"===l.css("position")&&(l=l.offsetParent());i={top:0,left:0};(u.contains(document.body,l[0])||l[0].isConnected)&&(i=l.offset()),a.top-=i.top,a.left-=i.left,t||n||(s="below"),e||!c||t?!c&&e&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(a.top=r.top-i.top-o),null!=s&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+s),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+s)),this.$dropdownContainer.css(a)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),u.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),u.define("select2/dropdown/selectOnClose",["../utils"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}n=this.getHighlightedResults();n.length<1||(null!=(n=s.GetData(n[0],"data")).element&&n.element.selected||null==n.element&&n.selected||this.trigger("select",{data:n}))},e}),u.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),u.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("dropdownCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),t.addClass(e),t},e}),u.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(s){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var n=t.first(),t=s.GetData(n[0],"data").element;if(t&&t.getAttribute&&"true"===t.getAttribute("data-select2-tag"))return void n.trigger("mouseenter")}e.call(this)},e}),u.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,e="Please delete "+t+" character";return 1!=t&&(e+="s"),e},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),u.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(l,r,o,a,c,u,d,p,h,f,g,t,m,y,v,_,b,$,w,x,A,D,S,E,O,C,L,T,q,I,e){function n(){this.reset()}return n.prototype.apply=function(e){var t;null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=r,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L)),e.tags&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=A:(t=f.Decorate(A,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,C)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=o,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],s=0;s<e.language.length;s++){var i=e.language[s];-1===n.indexOf(i)&&n.push(i)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var s=l.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s)}var r=a(n.text).toUpperCase(),o=a(t.term).toUpperCase();return-1<r.indexOf(o)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,s=this.defaults.language,i=t.prop("lang"),t=t.closest("[lang]").prop("lang"),t=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(s),this._resolveLanguage(t));return e.language=t,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],s=[],i=0;i<n.length;i++)s.push(n[i]),"string"==typeof n[i]&&0<n[i].indexOf("-")&&(t=n[i].split("-")[0],s.push(t));return s},n.prototype._processTranslations=function(e,t){for(var n=new g,s=0;s<e.length;s++){var i=new g,r=e[s];if("string"==typeof r)try{i=g.loadPath(r)}catch(e){try{r=this.defaults.amdLanguageBase+r,i=g.loadPath(r)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+r+'" could not be automatically loaded. A fallback will be used instead.')}}else i=l.isPlainObject(r)?new g(r):r;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[l.camelCase(e)]=t;n=f._convertData(n);l.extend(!0,this.defaults,n)},new n}),u.define("select2/options",["jquery","./defaults","./utils"],function(c,n,u){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),u.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),u.StoreData(e[0],"data",u.GetData(e[0],"select2Tags")),u.StoreData(e[0],"tags",!0)),u.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",u.GetData(e[0],"ajaxUrl")),u.StoreData(e[0],"ajax-Url",u.GetData(e[0],"ajaxUrl")));var n={};function s(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var r=e[0].attributes[i].name,o="data-";r.substr(0,o.length)==o&&(r=r.substring(o.length),o=u.GetData(e[0],r),n[r.replace(/-([a-z])/g,s)]=o)}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(n=c.extend(!0,{},e[0].dataset,n));var a,l=c.extend(!0,{},u.GetData(e[0]),n);for(a in l=u._convertData(l))-1<t.indexOf(a)||(c.isPlainObject(this.options[a])?c.extend(this.options[a],l[a]):this.options[a]=l[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),u.define("select2/core",["jquery","./options","./utils","./keys"],function(t,i,r,s){var o=function(e,t){null!=r.GetData(e[0],"select2")&&r.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new i(t,e),o.__super__.constructor.call(this);var n=e.attr("tabindex")||0;r.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");t=this.options.get("dataAdapter");this.dataAdapter=new t(e,this.options);n=this.render();this._placeContainer(n);t=this.options.get("selectionAdapter");this.selection=new t(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,n);t=this.options.get("dropdownAdapter");this.dropdown=new t(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,n);n=this.options.get("resultsAdapter");this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var s=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),r.StoreData(e[0],"select2",this),e.data("select2",this)};return r.Extend(o,r.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+r.generateChars(2):r.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var s=this._resolveWidth(e,"style");return null!=s?s:this._resolveWidth(e,"element")}if("element"==t){s=e.outerWidth(!1);return s<=0?"auto":s+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;e=e.attr("style");if("string"!=typeof e)return null;for(var i=e.split(";"),r=0,o=i.length;r<o;r+=1){var a=i[r].replace(/\s/g,"").match(n);if(null!==a&&1<=a.length)return a[1]}return null},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=r.bind(this._syncAttributes,this),this._syncS=r.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},o.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},o.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===s.indexOf(e)&&n.trigger(e,t)})},o.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},o.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},o.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.UP&&e.altKey?(n.close(e),e.preventDefault()):t===s.ENTER||t===s.TAB?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},o.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in s){var i=s[e],s={prevented:!1,name:e,args:t};if(n.call(this,i,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},o.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},o.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');e=!(e=null==e||0===e.length?[!0]:e)[0];this.$element.prop("disabled",e)},o.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},o.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},o.prototype.destroy=function(){r.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",r.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),r.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),r.StoreData(e[0],"element",this.$element),e},o}),u.define("jquery-mousewheel",["jquery"],function(e){return e}),u.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,r,t,o){var a;return null==i.fn.select2&&(a=["open","close","destroy"],i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new r(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s)}),-1<a.indexOf(t)?this:n}),null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),r}),{define:u.define,require:u.require});function b(e,t){return i.call(e,t)}function l(e,t){var n,s,i,r,o,a,l,c,u,d,p=t&&t.split("/"),h=y.map,f=h&&h["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&_.test(e[t])&&(e[t]=e[t].replace(_,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."===d&&(0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2));e=e.join("/")}if((p||f)&&h){for(c=(n=e.split("/")).length;0<c;--c){if(s=n.slice(0,c).join("/"),p)for(u=p.length;0<u;--u)if(i=h[p.slice(0,u).join("/")],i=i&&i[s]){r=i,o=c;break}if(r)break;!a&&f&&f[s]&&(a=f[s],l=c)}!r&&a&&(r=a,o=l),r&&(n.splice(0,o,r),e=n.join("/"))}return e}function w(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),o.apply(p,e.concat([t,n]))}}function x(e){var t;if(b(m,e)&&(t=m[e],delete m[e],v[e]=!0,r.apply(p,t)),!b(g,e)&&!b(v,e))throw new Error("No "+e);return g[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function A(e){return e?c(e):[]}var u=s.require("jquery.select2");return t.fn.select2.amd=s,u});;
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n="undefined"!=typeof globalThis?globalThis:n||self).LazyLoad=t()}(this,(function(){"use strict";function n(){return n=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},n.apply(this,arguments)}var t="undefined"!=typeof window,e=t&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),i=t&&"IntersectionObserver"in window,o=t&&"classList"in document.createElement("p"),a=t&&window.devicePixelRatio>1,r={elements_selector:".lazy",container:e||t?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},c=function(t){return n({},r,t)},l=function(n,t){var e,i="LazyLoad::Initialized",o=new n(t);try{e=new CustomEvent(i,{detail:{instance:o}})}catch(n){(e=document.createEvent("CustomEvent")).initCustomEvent(i,!1,!1,{instance:o})}window.dispatchEvent(e)},u="src",s="srcset",d="sizes",f="poster",_="llOriginalAttrs",g="data",v="loading",b="loaded",m="applied",p="error",h="native",E="data-",I="ll-status",y=function(n,t){return n.getAttribute(E+t)},k=function(n){return y(n,I)},w=function(n,t){return function(n,t,e){var i="data-ll-status";null!==e?n.setAttribute(i,e):n.removeAttribute(i)}(n,0,t)},A=function(n){return w(n,null)},L=function(n){return null===k(n)},O=function(n){return k(n)===h},x=[v,b,m,p],C=function(n,t,e,i){n&&(void 0===i?void 0===e?n(t):n(t,e):n(t,e,i))},N=function(n,t){o?n.classList.add(t):n.className+=(n.className?" ":"")+t},M=function(n,t){o?n.classList.remove(t):n.className=n.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},z=function(n){return n.llTempImage},T=function(n,t){if(t){var e=t._observer;e&&e.unobserve(n)}},R=function(n,t){n&&(n.loadingCount+=t)},G=function(n,t){n&&(n.toLoadCount=t)},j=function(n){for(var t,e=[],i=0;t=n.children[i];i+=1)"SOURCE"===t.tagName&&e.push(t);return e},D=function(n,t){var e=n.parentNode;e&&"PICTURE"===e.tagName&&j(e).forEach(t)},H=function(n,t){j(n).forEach(t)},V=[u],F=[u,f],B=[u,s,d],J=[g],P=function(n){return!!n[_]},S=function(n){return n[_]},U=function(n){return delete n[_]},$=function(n,t){if(!P(n)){var e={};t.forEach((function(t){e[t]=n.getAttribute(t)})),n[_]=e}},q=function(n,t){if(P(n)){var e=S(n);t.forEach((function(t){!function(n,t,e){e?n.setAttribute(t,e):n.removeAttribute(t)}(n,t,e[t])}))}},K=function(n,t,e){N(n,t.class_applied),w(n,m),e&&(t.unobserve_completed&&T(n,t),C(t.callback_applied,n,e))},Q=function(n,t,e){N(n,t.class_loading),w(n,v),e&&(R(e,1),C(t.callback_loading,n,e))},W=function(n,t,e){e&&n.setAttribute(t,e)},X=function(n,t){W(n,d,y(n,t.data_sizes)),W(n,s,y(n,t.data_srcset)),W(n,u,y(n,t.data_src))},Y={IMG:function(n,t){D(n,(function(n){$(n,B),X(n,t)})),$(n,B),X(n,t)},IFRAME:function(n,t){$(n,V),W(n,u,y(n,t.data_src))},VIDEO:function(n,t){H(n,(function(n){$(n,V),W(n,u,y(n,t.data_src))})),$(n,F),W(n,f,y(n,t.data_poster)),W(n,u,y(n,t.data_src)),n.load()},OBJECT:function(n,t){$(n,J),W(n,g,y(n,t.data_src))}},Z=["IMG","IFRAME","VIDEO","OBJECT"],nn=function(n,t){!t||function(n){return n.loadingCount>0}(t)||function(n){return n.toLoadCount>0}(t)||C(n.callback_finish,t)},tn=function(n,t,e){n.addEventListener(t,e),n.llEvLisnrs[t]=e},en=function(n,t,e){n.removeEventListener(t,e)},on=function(n){return!!n.llEvLisnrs},an=function(n){if(on(n)){var t=n.llEvLisnrs;for(var e in t){var i=t[e];en(n,e,i)}delete n.llEvLisnrs}},rn=function(n,t,e){!function(n){delete n.llTempImage}(n),R(e,-1),function(n){n&&(n.toLoadCount-=1)}(e),M(n,t.class_loading),t.unobserve_completed&&T(n,e)},cn=function(n,t,e){var i=z(n)||n;on(i)||function(n,t,e){on(n)||(n.llEvLisnrs={});var i="VIDEO"===n.tagName?"loadeddata":"load";tn(n,i,t),tn(n,"error",e)}(i,(function(o){!function(n,t,e,i){var o=O(t);rn(t,e,i),N(t,e.class_loaded),w(t,b),C(e.callback_loaded,t,i),o||nn(e,i)}(0,n,t,e),an(i)}),(function(o){!function(n,t,e,i){var o=O(t);rn(t,e,i),N(t,e.class_error),w(t,p),C(e.callback_error,t,i),e.restore_on_error&&q(t,B),o||nn(e,i)}(0,n,t,e),an(i)}))},ln=function(n,t,e){!function(n){return Z.indexOf(n.tagName)>-1}(n)?function(n,t,e){!function(n){n.llTempImage=document.createElement("IMG")}(n),cn(n,t,e),function(n){P(n)||(n[_]={backgroundImage:n.style.backgroundImage})}(n),function(n,t,e){var i=y(n,t.data_bg),o=y(n,t.data_bg_hidpi),r=a&&o?o:i;r&&(n.style.backgroundImage='url("'.concat(r,'")'),z(n).setAttribute(u,r),Q(n,t,e))}(n,t,e),function(n,t,e){var i=y(n,t.data_bg_multi),o=y(n,t.data_bg_multi_hidpi),r=a&&o?o:i;r&&(n.style.backgroundImage=r,K(n,t,e))}(n,t,e),function(n,t,e){var i=y(n,t.data_bg_set);if(i){var o=i.split("|"),a=o.map((function(n){return"image-set(".concat(n,")")}));n.style.backgroundImage=a.join(),""===n.style.backgroundImage&&(a=o.map((function(n){return"-webkit-image-set(".concat(n,")")})),n.style.backgroundImage=a.join()),K(n,t,e)}}(n,t,e)}(n,t,e):function(n,t,e){cn(n,t,e),function(n,t,e){var i=Y[n.tagName];i&&(i(n,t),Q(n,t,e))}(n,t,e)}(n,t,e)},un=function(n){n.removeAttribute(u),n.removeAttribute(s),n.removeAttribute(d)},sn=function(n){D(n,(function(n){q(n,B)})),q(n,B)},dn={IMG:sn,IFRAME:function(n){q(n,V)},VIDEO:function(n){H(n,(function(n){q(n,V)})),q(n,F),n.load()},OBJECT:function(n){q(n,J)}},fn=function(n,t){(function(n){var t=dn[n.tagName];t?t(n):function(n){if(P(n)){var t=S(n);n.style.backgroundImage=t.backgroundImage}}(n)})(n),function(n,t){L(n)||O(n)||(M(n,t.class_entered),M(n,t.class_exited),M(n,t.class_applied),M(n,t.class_loading),M(n,t.class_loaded),M(n,t.class_error))}(n,t),A(n),U(n)},_n=["IMG","IFRAME","VIDEO"],gn=function(n){return n.use_native&&"loading"in HTMLImageElement.prototype},vn=function(n,t,e){n.forEach((function(n){return function(n){return n.isIntersecting||n.intersectionRatio>0}(n)?function(n,t,e,i){var o=function(n){return x.indexOf(k(n))>=0}(n);w(n,"entered"),N(n,e.class_entered),M(n,e.class_exited),function(n,t,e){t.unobserve_entered&&T(n,e)}(n,e,i),C(e.callback_enter,n,t,i),o||ln(n,e,i)}(n.target,n,t,e):function(n,t,e,i){L(n)||(N(n,e.class_exited),function(n,t,e,i){e.cancel_on_exit&&function(n){return k(n)===v}(n)&&"IMG"===n.tagName&&(an(n),function(n){D(n,(function(n){un(n)})),un(n)}(n),sn(n),M(n,e.class_loading),R(i,-1),A(n),C(e.callback_cancel,n,t,i))}(n,t,e,i),C(e.callback_exit,n,t,i))}(n.target,n,t,e)}))},bn=function(n){return Array.prototype.slice.call(n)},mn=function(n){return n.container.querySelectorAll(n.elements_selector)},pn=function(n){return function(n){return k(n)===p}(n)},hn=function(n,t){return function(n){return bn(n).filter(L)}(n||mn(t))},En=function(n,e){var o=c(n);this._settings=o,this.loadingCount=0,function(n,t){i&&!gn(n)&&(t._observer=new IntersectionObserver((function(e){vn(e,n,t)}),function(n){return{root:n.container===document?null:n.container,rootMargin:n.thresholds||n.threshold+"px"}}(n)))}(o,this),function(n,e){t&&(e._onlineHandler=function(){!function(n,t){var e;(e=mn(n),bn(e).filter(pn)).forEach((function(t){M(t,n.class_error),A(t)})),t.update()}(n,e)},window.addEventListener("online",e._onlineHandler))}(o,this),this.update(e)};return En.prototype={update:function(n){var t,o,a=this._settings,r=hn(n,a);G(this,r.length),!e&&i?gn(a)?function(n,t,e){n.forEach((function(n){-1!==_n.indexOf(n.tagName)&&function(n,t,e){n.setAttribute("loading","lazy"),cn(n,t,e),function(n,t){var e=Y[n.tagName];e&&e(n,t)}(n,t),w(n,h)}(n,t,e)})),G(e,0)}(r,a,this):(o=r,function(n){n.disconnect()}(t=this._observer),function(n,t){t.forEach((function(t){n.observe(t)}))}(t,o)):this.loadAll(r)},destroy:function(){this._observer&&this._observer.disconnect(),t&&window.removeEventListener("online",this._onlineHandler),mn(this._settings).forEach((function(n){U(n)})),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(n){var t=this,e=this._settings;hn(n,e).forEach((function(n){T(n,t),ln(n,e,t)}))},restoreAll:function(){var n=this._settings;mn(n).forEach((function(t){fn(t,n)}))}},En.load=function(n,t){var e=c(t);ln(n,e)},En.resetStatus=function(n){A(n)},t&&function(n,t){if(t)if(t.length)for(var e,i=0;e=t[i];i+=1)l(n,e);else l(n,t)}(En,window.lazyLoadOptions),En}));
;
/*!
 * Flickity PACKAGED v2.3.0
 * Touch, responsive, flickable carousels
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * https://flickity.metafizzy.co
 * Copyright 2015-2021 Metafizzy
 */
(function(e,i){if(typeof define=="function"&&define.amd){define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("jquery"))}else{e.jQueryBridget=i(e,e.jQuery)}})(window,function t(e,r){"use strict";var o=Array.prototype.slice;var i=e.console;var u=typeof i=="undefined"?function(){}:function(t){i.error(t)};function n(h,s,c){c=c||r||e.jQuery;if(!c){return}if(!s.prototype.option){s.prototype.option=function(t){if(!c.isPlainObject(t)){return}this.options=c.extend(true,this.options,t)}}c.fn[h]=function(t){if(typeof t=="string"){var e=o.call(arguments,1);return i(this,t,e)}n(this,t);return this};function i(t,r,o){var a;var l="$()."+h+'("'+r+'")';t.each(function(t,e){var i=c.data(e,h);if(!i){u(h+" not initialized. Cannot call methods, i.e. "+l);return}var n=i[r];if(!n||r.charAt(0)=="_"){u(l+" is not a valid method");return}var s=n.apply(i,o);a=a===undefined?s:a});return a!==undefined?a:t}function n(t,n){t.each(function(t,e){var i=c.data(e,h);if(i){i.option(n);i._init()}else{i=new s(e,n);c.data(e,h,i)}})}a(c)}function a(t){if(!t||t&&t.bridget){return}t.bridget=n}a(r||e.jQuery);return n});(function(t,e){if(typeof define=="function"&&define.amd){define("ev-emitter/ev-emitter",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.EvEmitter=e()}})(typeof window!="undefined"?window:this,function(){function t(){}var e=t.prototype;e.on=function(t,e){if(!t||!e){return}var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(n.indexOf(e)==-1){n.push(e)}return this};e.once=function(t,e){if(!t||!e){return}this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||{};n[e]=true;return this};e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length){return}var n=i.indexOf(e);if(n!=-1){i.splice(n,1)}return this};e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length){return}i=i.slice(0);e=e||[];var n=this._onceEvents&&this._onceEvents[t];for(var s=0;s<i.length;s++){var r=i[s];var o=n&&n[r];if(o){this.off(t,r);delete n[r]}r.apply(this,e)}return this};e.allOff=function(){delete this._events;delete this._onceEvents};return t});
/*!
 * getSize v2.0.3
 * measure size of elements
 * MIT license
 */
(function(t,e){if(typeof define=="function"&&define.amd){define("get-size/get-size",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.getSize=e()}})(window,function t(){"use strict";function m(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}var i=typeof console=="undefined"?e:function(t){console.error(t)};var y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var b=y.length;function E(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<b;e++){var i=y[e];t[i]=0}return t}function S(t){var e=getComputedStyle(t);if(!e){i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1")}return e}var n=false;var C;function x(){if(n){return}n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=S(t);C=Math.round(m(i.width))==200;s.isBoxSizeOuter=C;e.removeChild(t)}function s(t){x();if(typeof t=="string"){t=document.querySelector(t)}if(!t||typeof t!="object"||!t.nodeType){return}var e=S(t);if(e.display=="none"){return E()}var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var s=0;s<b;s++){var r=y[s];var o=e[r];var a=parseFloat(o);i[r]=!isNaN(a)?a:0}var l=i.paddingLeft+i.paddingRight;var h=i.paddingTop+i.paddingBottom;var c=i.marginLeft+i.marginRight;var u=i.marginTop+i.marginBottom;var d=i.borderLeftWidth+i.borderRightWidth;var f=i.borderTopWidth+i.borderBottomWidth;var p=n&&C;var v=m(e.width);if(v!==false){i.width=v+(p?0:l+d)}var g=m(e.height);if(g!==false){i.height=g+(p?0:h+f)}i.innerWidth=i.width-(l+d);i.innerHeight=i.height-(h+f);i.outerWidth=i.width+c;i.outerHeight=i.height+u;return i}return s});(function(t,e){"use strict";if(typeof define=="function"&&define.amd){define("desandro-matches-selector/matches-selector",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.matchesSelector=e()}})(window,function t(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches){return"matches"}if(t.matchesSelector){return"matchesSelector"}var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var s=n+"MatchesSelector";if(t[s]){return s}}}();return function t(e,i){return e[n](i)}});(function(e,i){if(typeof define=="function"&&define.amd){define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("desandro-matches-selector"))}else{e.fizzyUIUtils=i(e,e.matchesSelector)}})(window,function t(h,r){var c={};c.extend=function(t,e){for(var i in e){t[i]=e[i]}return t};c.modulo=function(t,e){return(t%e+e)%e};var i=Array.prototype.slice;c.makeArray=function(t){if(Array.isArray(t)){return t}if(t===null||t===undefined){return[]}var e=typeof t=="object"&&typeof t.length=="number";if(e){return i.call(t)}return[t]};c.removeFrom=function(t,e){var i=t.indexOf(e);if(i!=-1){t.splice(i,1)}};c.getParent=function(t,e){while(t.parentNode&&t!=document.body){t=t.parentNode;if(r(t,e)){return t}}};c.getQueryElement=function(t){if(typeof t=="string"){return document.querySelector(t)}return t};c.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};c.filterFindElements=function(t,n){t=c.makeArray(t);var s=[];t.forEach(function(t){if(!(t instanceof HTMLElement)){return}if(!n){s.push(t);return}if(r(t,n)){s.push(t)}var e=t.querySelectorAll(n);for(var i=0;i<e.length;i++){s.push(e[i])}});return s};c.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e];var r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments;var i=this;this[r]=setTimeout(function(){s.apply(i,e);delete i[r]},n)}};c.docReady=function(t){var e=document.readyState;if(e=="complete"||e=="interactive"){setTimeout(t)}else{document.addEventListener("DOMContentLoaded",t)}};c.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=h.console;c.htmlInit=function(a,l){c.docReady(function(){var t=c.toDashed(l);var s="data-"+t;var e=document.querySelectorAll("["+s+"]");var i=document.querySelectorAll(".js-"+t);var n=c.makeArray(e).concat(c.makeArray(i));var r=s+"-options";var o=h.jQuery;n.forEach(function(e){var t=e.getAttribute(s)||e.getAttribute(r);var i;try{i=t&&JSON.parse(t)}catch(t){if(u){u.error("Error parsing "+s+" on "+e.className+": "+t)}return}var n=new a(e,i);if(o){o.data(e,l,n)}})})};return c});(function(e,i){if(typeof define=="function"&&define.amd){define("flickity/js/cell",["get-size/get-size"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("get-size"))}else{e.Flickity=e.Flickity||{};e.Flickity.Cell=i(e,e.getSize)}})(window,function t(e,i){function n(t,e){this.element=t;this.parent=e;this.create()}var s=n.prototype;s.create=function(){this.element.style.position="absolute";this.element.setAttribute("aria-hidden","true");this.x=0;this.shift=0;this.element.style[this.parent.originSide]=0};s.destroy=function(){this.unselect();this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="";this.element.style.transform="";this.element.removeAttribute("aria-hidden")};s.getSize=function(){this.size=i(this.element)};s.setPosition=function(t){this.x=t;this.updateTarget();this.renderPosition(t)};s.updateTarget=s.setDefaultTarget=function(){var t=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign};s.renderPosition=function(t){var e=this.parent.originSide==="left"?1:-1;var i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"};s.select=function(){this.element.classList.add("is-selected");this.element.removeAttribute("aria-hidden")};s.unselect=function(){this.element.classList.remove("is-selected");this.element.setAttribute("aria-hidden","true")};s.wrapShift=function(t){this.shift=t;this.renderPosition(this.x+this.parent.slideableWidth*t)};s.remove=function(){this.element.parentNode.removeChild(this.element)};return n});(function(t,e){if(typeof define=="function"&&define.amd){define("flickity/js/slide",e)}else if(typeof module=="object"&&module.exports){module.exports=e()}else{t.Flickity=t.Flickity||{};t.Flickity.Slide=e()}})(window,function t(){"use strict";function e(t){this.parent=t;this.isOriginLeft=t.originSide=="left";this.cells=[];this.outerWidth=0;this.height=0}var i=e.prototype;i.addCell=function(t){this.cells.push(t);this.outerWidth+=t.size.outerWidth;this.height=Math.max(t.size.outerHeight,this.height);if(this.cells.length==1){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}};i.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft";var e=this.getLastCell();var i=e?e.size[t]:0;var n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign};i.getLastCell=function(){return this.cells[this.cells.length-1]};i.select=function(){this.cells.forEach(function(t){t.select()})};i.unselect=function(){this.cells.forEach(function(t){t.unselect()})};i.getCellElements=function(){return this.cells.map(function(t){return t.element})};return e});(function(e,i){if(typeof define=="function"&&define.amd){define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("fizzy-ui-utils"))}else{e.Flickity=e.Flickity||{};e.Flickity.animatePrototype=i(e,e.fizzyUIUtils)}})(window,function t(e,i){var n={};n.startAnimation=function(){if(this.isAnimating){return}this.isAnimating=true;this.restingFrames=0;this.animate()};n.animate=function(){this.applyDragForce();this.applySelectedAttraction();var t=this.x;this.integratePhysics();this.positionSlider();this.settle(t);if(this.isAnimating){var e=this;requestAnimationFrame(function t(){e.animate()})}};n.positionSlider=function(){var t=this.x;if(this.options.wrapAround&&this.cells.length>1){t=i.modulo(t,this.slideableWidth);t-=this.slideableWidth;this.shiftWrapCells(t)}this.setTranslateX(t,this.isAnimating);this.dispatchScrollEvent()};n.setTranslateX=function(t,e){t+=this.cursorPosition;t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"};n.dispatchScrollEvent=function(){var t=this.slides[0];if(!t){return}var e=-this.x-t.target;var i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])};n.positionSliderAtSelected=function(){if(!this.cells.length){return}this.x=-this.selectedSlide.target;this.velocity=0;this.positionSlider()};n.getPositionValue=function(t){if(this.options.percentPosition){return Math.round(t/this.size.innerWidth*1e4)*.01+"%"}else{return Math.round(t)+"px"}};n.settle=function(t){var e=!this.isPointerDown&&Math.round(this.x*100)==Math.round(t*100);if(e){this.restingFrames++}if(this.restingFrames>2){this.isAnimating=false;delete this.isFreeScrolling;this.positionSlider();this.dispatchEvent("settle",null,[this.selectedIndex])}};n.shiftWrapCells=function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)};n._shiftCells=function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n];var r=e>0?i:0;s.wrapShift(r);e-=s.size.outerWidth}};n._unshiftCells=function(t){if(!t||!t.length){return}for(var e=0;e<t.length;e++){t[e].wrapShift(0)}};n.integratePhysics=function(){this.x+=this.velocity;this.velocity*=this.getFrictionFactor()};n.applyForce=function(t){this.velocity+=t};n.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]};n.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())};n.applyDragForce=function(){if(!this.isDraggable||!this.isPointerDown){return}var t=this.dragX-this.x;var e=t-this.velocity;this.applyForce(e)};n.applySelectedAttraction=function(){var t=this.isDraggable&&this.isPointerDown;if(t||this.isFreeScrolling||!this.slides.length){return}var e=this.selectedSlide.target*-1-this.x;var i=e*this.options.selectedAttraction;this.applyForce(i)};return n});(function(o,a){if(typeof define=="function"&&define.amd){define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,n,s,r){return a(o,t,e,i,n,s,r)})}else if(typeof module=="object"&&module.exports){module.exports=a(o,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"))}else{var t=o.Flickity;o.Flickity=a(o,o.EvEmitter,o.getSize,o.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}})(window,function t(n,e,i,a,s,o,r){var l=n.jQuery;var h=n.getComputedStyle;var c=n.console;function u(t,e){t=a.makeArray(t);while(t.length){e.appendChild(t.shift())}}var d=0;var f={};function p(t,e){var i=a.getQueryElement(t);if(!i){if(c){c.error("Bad element for Flickity: "+(i||t))}return}this.element=i;if(this.element.flickityGUID){var n=f[this.element.flickityGUID];if(n)n.option(e);return n}if(l){this.$element=l(this.element)}this.options=a.extend({},this.constructor.defaults);this.option(e);this._create()}p.defaults={accessibility:true,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:true,percentPosition:true,resize:true,selectedAttraction:.025,setGallerySize:true};p.createMethods=[];var v=p.prototype;a.extend(v,e.prototype);v._create=function(){var t=this.guid=++d;this.element.flickityGUID=t;f[t]=this;this.selectedIndex=0;this.restingFrames=0;this.x=0;this.velocity=0;this.originSide=this.options.rightToLeft?"right":"left";this.viewport=document.createElement("div");this.viewport.className="flickity-viewport";this._createSlider();if(this.options.resize||this.options.watchCSS){n.addEventListener("resize",this)}for(var e in this.options.on){var i=this.options.on[e];this.on(e,i)}p.createMethods.forEach(function(t){this[t]()},this);if(this.options.watchCSS){this.watchCSS()}else{this.activate()}};v.option=function(t){a.extend(this.options,t)};v.activate=function(){if(this.isActive){return}this.isActive=true;this.element.classList.add("flickity-enabled");if(this.options.rightToLeft){this.element.classList.add("flickity-rtl")}this.getSize();var t=this._filterFindCellElements(this.element.children);u(t,this.slider);this.viewport.appendChild(this.slider);this.element.appendChild(this.viewport);this.reloadCells();if(this.options.accessibility){this.element.tabIndex=0;this.element.addEventListener("keydown",this)}this.emitEvent("activate");this.selectInitialIndex();this.isInitActivated=true;this.dispatchEvent("ready")};v._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider";t.style[this.originSide]=0;this.slider=t};v._filterFindCellElements=function(t){return a.filterFindElements(t,this.options.cellSelector)};v.reloadCells=function(){this.cells=this._makeCells(this.slider.children);this.positionCells();this._getWrapShiftCells();this.setGallerySize()};v._makeCells=function(t){var e=this._filterFindCellElements(t);var i=e.map(function(t){return new s(t,this)},this);return i};v.getLastCell=function(){return this.cells[this.cells.length-1]};v.getLastSlide=function(){return this.slides[this.slides.length-1]};v.positionCells=function(){this._sizeCells(this.cells);this._positionCells(0)};v._positionCells=function(t){t=t||0;this.maxCellHeight=t?this.maxCellHeight||0:0;var e=0;if(t>0){var i=this.cells[t-1];e=i.x+i.size.outerWidth}var n=this.cells.length;for(var s=t;s<n;s++){var r=this.cells[s];r.setPosition(e);e+=r.size.outerWidth;this.maxCellHeight=Math.max(r.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e;this.updateSlides();this._containSlides();this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0};v._sizeCells=function(t){t.forEach(function(t){t.getSize()})};v.updateSlides=function(){this.slides=[];if(!this.cells.length){return}var n=new o(this);this.slides.push(n);var t=this.originSide=="left";var s=t?"marginRight":"marginLeft";var r=this._getCanCellFit();this.cells.forEach(function(t,e){if(!n.cells.length){n.addCell(t);return}var i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]);if(r.call(this,e,i)){n.addCell(t)}else{n.updateTarget();n=new o(this);this.slides.push(n);n.addCell(t)}},this);n.updateTarget();this.updateSelectedSlide()};v._getCanCellFit=function(){var t=this.options.groupCells;if(!t){return function(){return false}}else if(typeof t=="number"){var e=parseInt(t,10);return function(t){return t%e!==0}}var i=typeof t=="string"&&t.match(/^(\d+)%$/);var n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}};v._init=v.reposition=function(){this.positionCells();this.positionSliderAtSelected()};v.getSize=function(){this.size=i(this.element);this.setCellAlign();this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};v.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign};v.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}};v._getWrapShiftCells=function(){if(!this.options.wrapAround){return}this._unshiftCells(this.beforeShiftCells);this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition;var e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1);t=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(t,0,1)};v._getGapCells=function(t,e,i){var n=[];while(t>0){var s=this.cells[e];if(!s){break}n.push(s);e+=i;t-=s.size.outerWidth}return n};v._containSlides=function(){if(!this.options.contain||this.options.wrapAround||!this.cells.length){return}var t=this.options.rightToLeft;var e=t?"marginRight":"marginLeft";var i=t?"marginLeft":"marginRight";var n=this.slideableWidth-this.getLastCell().size[i];var s=n<this.size.innerWidth;var r=this.cursorPosition+this.cells[0].size[e];var o=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){if(s){t.target=n*this.cellAlign}else{t.target=Math.max(t.target,r);t.target=Math.min(t.target,o)}},this)};v.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n);if(l&&this.$element){t+=this.options.namespaceJQueryEvents?".flickity":"";var s=t;if(e){var r=new l.Event(e);r.type=t;s=r}this.$element.trigger(s,i)}};v.select=function(t,e,i){if(!this.isActive){return}t=parseInt(t,10);this._wrapSelect(t);if(this.options.wrapAround||e){t=a.modulo(t,this.slides.length)}if(!this.slides[t]){return}var n=this.selectedIndex;this.selectedIndex=t;this.updateSelectedSlide();if(i){this.positionSliderAtSelected()}else{this.startAnimation()}if(this.options.adaptiveHeight){this.setGallerySize()}this.dispatchEvent("select",null,[t]);if(t!=n){this.dispatchEvent("change",null,[t])}this.dispatchEvent("cellSelect")};v._wrapSelect=function(t){var e=this.slides.length;var i=this.options.wrapAround&&e>1;if(!i){return t}var n=a.modulo(t,e);var s=Math.abs(n-this.selectedIndex);var r=Math.abs(n+e-this.selectedIndex);var o=Math.abs(n-e-this.selectedIndex);if(!this.isDragSelect&&r<s){t+=e}else if(!this.isDragSelect&&o<s){t-=e}if(t<0){this.x-=this.slideableWidth}else if(t>=e){this.x+=this.slideableWidth}};v.previous=function(t,e){this.select(this.selectedIndex-1,t,e)};v.next=function(t,e){this.select(this.selectedIndex+1,t,e)};v.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];if(!t){return}this.unselectSelectedSlide();this.selectedSlide=t;t.select();this.selectedCells=t.cells;this.selectedElements=t.getCellElements();this.selectedCell=t.cells[0];this.selectedElement=this.selectedElements[0]};v.unselectSelectedSlide=function(){if(this.selectedSlide){this.selectedSlide.unselect()}};v.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated){this.select(this.selectedIndex,false,true);return}if(t&&typeof t=="string"){var e=this.queryCell(t);if(e){this.selectCell(t,false,true);return}}var i=0;if(t&&this.slides[t]){i=t}this.select(i,false,true)};v.selectCell=function(t,e,i){var n=this.queryCell(t);if(!n){return}var s=this.getCellSlideIndex(n);this.select(s,e,i)};v.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){var i=this.slides[e];var n=i.cells.indexOf(t);if(n!=-1){return e}}};v.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t){return i}}};v.getCells=function(t){t=a.makeArray(t);var i=[];t.forEach(function(t){var e=this.getCell(t);if(e){i.push(e)}},this);return i};v.getCellElements=function(){return this.cells.map(function(t){return t.element})};v.getParentCell=function(t){var e=this.getCell(t);if(e){return e}t=a.getParent(t,".flickity-slider > *");return this.getCell(t)};v.getAdjacentCellElements=function(t,e){if(!t){return this.selectedSlide.getCellElements()}e=e===undefined?this.selectedIndex:e;var i=this.slides.length;if(1+t*2>=i){return this.getCellElements()}var n=[];for(var s=e-t;s<=e+t;s++){var r=this.options.wrapAround?a.modulo(s,i):s;var o=this.slides[r];if(o){n=n.concat(o.getCellElements())}}return n};v.queryCell=function(t){if(typeof t=="number"){return this.cells[t]}if(typeof t=="string"){if(t.match(/^[#.]?[\d/]/)){return}t=this.element.querySelector(t)}return this.getCell(t)};v.uiChange=function(){this.emitEvent("uiChange")};v.childUIPointerDown=function(t){if(t.type!="touchstart"){t.preventDefault()}this.focus()};v.onresize=function(){this.watchCSS();this.resize()};a.debounceMethod(p,"onresize",150);v.resize=function(){if(!this.isActive||this.isAnimating||this.isDragging){return}this.getSize();if(this.options.wrapAround){this.x=a.modulo(this.x,this.slideableWidth)}this.positionCells();this._getWrapShiftCells();this.setGallerySize();this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,false,true)};v.watchCSS=function(){var t=this.options.watchCSS;if(!t){return}var e=h(this.element,":after").content;if(e.indexOf("flickity")!=-1){this.activate()}else{this.deactivate()}};v.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(!this.options.accessibility||e){return}var i=p.keyboardHandlers[t.keyCode];if(i){i.call(this)}};p.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange();this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange();this[t]()}};v.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:true});if(n.pageYOffset!=t){n.scrollTo(n.pageXOffset,t)}};v.deactivate=function(){if(!this.isActive){return}this.element.classList.remove("flickity-enabled");this.element.classList.remove("flickity-rtl");this.unselectSelectedSlide();this.cells.forEach(function(t){t.destroy()});this.element.removeChild(this.viewport);u(this.slider.children,this.element);if(this.options.accessibility){this.element.removeAttribute("tabIndex");this.element.removeEventListener("keydown",this)}this.isActive=false;this.emitEvent("deactivate")};v.destroy=function(){this.deactivate();n.removeEventListener("resize",this);this.allOff();this.emitEvent("destroy");if(l&&this.$element){l.removeData(this.element,"flickity")}delete this.element.flickityGUID;delete f[this.guid]};a.extend(v,r);p.data=function(t){t=a.getQueryElement(t);var e=t&&t.flickityGUID;return e&&f[e]};a.htmlInit(p,"flickity");if(l&&l.bridget){l.bridget("flickity",p)}p.setJQuery=function(t){l=t};p.Cell=s;p.Slide=o;return p});
/*!
 * Unipointer v2.4.0
 * base class for doing one thing with pointer event
 * MIT license
 */
(function(e,i){if(typeof define=="function"&&define.amd){define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("ev-emitter"))}else{e.Unipointer=i(e,e.EvEmitter)}})(window,function t(s,e){function i(){}function n(){}var r=n.prototype=Object.create(e.prototype);r.bindStartEvent=function(t){this._bindStartEvent(t,true)};r.unbindStartEvent=function(t){this._bindStartEvent(t,false)};r._bindStartEvent=function(t,e){e=e===undefined?true:e;var i=e?"addEventListener":"removeEventListener";var n="mousedown";if("ontouchstart"in s){n="touchstart"}else if(s.PointerEvent){n="pointerdown"}t[i](n,this)};r.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};r.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier){return i}}};r.onmousedown=function(t){var e=t.button;if(e&&(e!==0&&e!==1)){return}this._pointerDown(t,t)};r.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])};r.onpointerdown=function(t){this._pointerDown(t,t)};r._pointerDown=function(t,e){if(t.button||this.isPointerDown){return}this.isPointerDown=true;this.pointerIdentifier=e.pointerId!==undefined?e.pointerId:e.identifier;this.pointerDown(t,e)};r.pointerDown=function(t,e){this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])};var o={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};r._bindPostStartEvents=function(t){if(!t){return}var e=o[t.type];e.forEach(function(t){s.addEventListener(t,this)},this);this._boundPointerEvents=e};r._unbindPostStartEvents=function(){if(!this._boundPointerEvents){return}this._boundPointerEvents.forEach(function(t){s.removeEventListener(t,this)},this);delete this._boundPointerEvents};r.onmousemove=function(t){this._pointerMove(t,t)};r.onpointermove=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerMove(t,t)}};r.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerMove(t,e)}};r._pointerMove=function(t,e){this.pointerMove(t,e)};r.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])};r.onmouseup=function(t){this._pointerUp(t,t)};r.onpointerup=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerUp(t,t)}};r.ontouchend=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerUp(t,e)}};r._pointerUp=function(t,e){this._pointerDone();this.pointerUp(t,e)};r.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])};r._pointerDone=function(){this._pointerReset();this._unbindPostStartEvents();this.pointerDone()};r._pointerReset=function(){this.isPointerDown=false;delete this.pointerIdentifier};r.pointerDone=i;r.onpointercancel=function(t){if(t.pointerId==this.pointerIdentifier){this._pointerCancel(t,t)}};r.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);if(e){this._pointerCancel(t,e)}};r._pointerCancel=function(t,e){this._pointerDone();this.pointerCancel(t,e)};r.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])};n.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}};return n});
/*!
 * Unidragger v2.4.0
 * Draggable base class
 * MIT license
 */
(function(e,i){if(typeof define=="function"&&define.amd){define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("unipointer"))}else{e.Unidragger=i(e,e.Unipointer)}})(window,function t(r,e){function i(){}var n=i.prototype=Object.create(e.prototype);n.bindHandles=function(){this._bindHandles(true)};n.unbindHandles=function(){this._bindHandles(false)};n._bindHandles=function(t){t=t===undefined?true:t;var e=t?"addEventListener":"removeEventListener";var i=t?this._touchActionValue:"";for(var n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,t);s[e]("click",this);if(r.PointerEvent){s.style.touchAction=i}}};n._touchActionValue="none";n.pointerDown=function(t,e){var i=this.okayPointerDown(t);if(!i){return}this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};t.preventDefault();this.pointerDownBlur();this._bindPostStartEvents(t);this.emitEvent("pointerDown",[t,e])};var s={TEXTAREA:true,INPUT:true,SELECT:true,OPTION:true};var o={radio:true,checkbox:true,button:true,submit:true,image:true,file:true};n.okayPointerDown=function(t){var e=s[t.target.nodeName];var i=o[t.target.type];var n=!e||i;if(!n){this._pointerReset()}return n};n.pointerDownBlur=function(){var t=document.activeElement;var e=t&&t.blur&&t!=document.body;if(e){t.blur()}};n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]);this._dragMove(t,e,i)};n._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};if(!this.isDragging&&this.hasDragStarted(i)){this._dragStart(t,e)}return i};n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3};n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]);this._dragPointerUp(t,e)};n._dragPointerUp=function(t,e){if(this.isDragging){this._dragEnd(t,e)}else{this._staticClick(t,e)}};n._dragStart=function(t,e){this.isDragging=true;this.isPreventingClicks=true;this.dragStart(t,e)};n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])};n._dragMove=function(t,e,i){if(!this.isDragging){return}this.dragMove(t,e,i)};n.dragMove=function(t,e,i){t.preventDefault();this.emitEvent("dragMove",[t,e,i])};n._dragEnd=function(t,e){this.isDragging=false;setTimeout(function(){delete this.isPreventingClicks}.bind(this));this.dragEnd(t,e)};n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])};n.onclick=function(t){if(this.isPreventingClicks){t.preventDefault()}};n._staticClick=function(t,e){if(this.isIgnoringMouseUp&&t.type=="mouseup"){return}this.staticClick(t,e);if(t.type!="mouseup"){this.isIgnoringMouseUp=true;setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)}};n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])};i.getPointerPoint=e.getPointerPoint;return i});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils"))}else{n.Flickity=s(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)}})(window,function t(n,e,i,a){a.extend(e.defaults,{draggable:">1",dragThreshold:3});e.createMethods.push("_createDrag");var s=e.prototype;a.extend(s,i.prototype);s._touchActionValue="pan-y";s._createDrag=function(){this.on("activate",this.onActivateDrag);this.on("uiChange",this._uiChangeDrag);this.on("deactivate",this.onDeactivateDrag);this.on("cellChange",this.updateDraggable)};s.onActivateDrag=function(){this.handles=[this.viewport];this.bindHandles();this.updateDraggable()};s.onDeactivateDrag=function(){this.unbindHandles();this.element.classList.remove("is-draggable")};s.updateDraggable=function(){if(this.options.draggable==">1"){this.isDraggable=this.slides.length>1}else{this.isDraggable=this.options.draggable}if(this.isDraggable){this.element.classList.add("is-draggable")}else{this.element.classList.remove("is-draggable")}};s.bindDrag=function(){this.options.draggable=true;this.updateDraggable()};s.unbindDrag=function(){this.options.draggable=false;this.updateDraggable()};s._uiChangeDrag=function(){delete this.isFreeScrolling};s.pointerDown=function(t,e){if(!this.isDraggable){this._pointerDownDefault(t,e);return}var i=this.okayPointerDown(t);if(!i){return}this._pointerDownPreventDefault(t);this.pointerDownFocus(t);if(document.activeElement!=this.element){this.pointerDownBlur()}this.dragX=this.x;this.viewport.classList.add("is-pointer-down");this.pointerDownScroll=o();n.addEventListener("scroll",this);this._pointerDownDefault(t,e)};s._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY};this._bindPostStartEvents(t);this.dispatchEvent("pointerDown",t,[e])};var r={INPUT:true,TEXTAREA:true,SELECT:true};s.pointerDownFocus=function(t){var e=r[t.target.nodeName];if(!e){this.focus()}};s._pointerDownPreventDefault=function(t){var e=t.type=="touchstart";var i=t.pointerType=="touch";var n=r[t.target.nodeName];if(!e&&!i&&!n){t.preventDefault()}};s.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold};s.pointerUp=function(t,e){delete this.isTouchScrolling;this.viewport.classList.remove("is-pointer-down");this.dispatchEvent("pointerUp",t,[e]);this._dragPointerUp(t,e)};s.pointerDone=function(){n.removeEventListener("scroll",this);delete this.pointerDownScroll};s.dragStart=function(t,e){if(!this.isDraggable){return}this.dragStartPosition=this.x;this.startAnimation();n.removeEventListener("scroll",this);this.dispatchEvent("dragStart",t,[e])};s.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]);this._dragMove(t,e,i)};s.dragMove=function(t,e,i){if(!this.isDraggable){return}t.preventDefault();this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;if(this.options.wrapAround){i.x%=this.slideableWidth}var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var r=Math.max(-this.slides[0].target,this.dragStartPosition);s=s>r?(s+r)*.5:s;var o=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<o?(s+o)*.5:s}this.dragX=s;this.dragMoveTime=new Date;this.dispatchEvent("dragMove",t,[e,i])};s.dragEnd=function(t,e){if(!this.isDraggable){return}if(this.options.freeScroll){this.isFreeScrolling=true}var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else if(!this.options.freeScroll&&i==this.selectedIndex){i+=this.dragEndBoostSelect()}delete this.previousDragX;this.isDragSelect=this.options.wrapAround;this.select(i);delete this.isDragSelect;this.dispatchEvent("dragEnd",t,[e])};s.dragEndRestingSelect=function(){var t=this.getRestingPosition();var e=Math.abs(this.getSlideDistance(-t,this.selectedIndex));var i=this._getClosestResting(t,e,1);var n=this._getClosestResting(t,e,-1);var s=i.distance<n.distance?i.index:n.index;return s};s._getClosestResting=function(t,e,i){var n=this.selectedIndex;var s=Infinity;var r=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};while(r(e,s)){n+=i;s=e;e=this.getSlideDistance(-t,n);if(e===null){break}e=Math.abs(e)}return{distance:s,index:n-i}};s.getSlideDistance=function(t,e){var i=this.slides.length;var n=this.options.wrapAround&&i>1;var s=n?a.modulo(e,i):e;var r=this.slides[s];if(!r){return null}var o=n?this.slideableWidth*Math.floor(e/i):0;return t-(r.target+o)};s.dragEndBoostSelect=function(){if(this.previousDragX===undefined||!this.dragMoveTime||new Date-this.dragMoveTime>100){return 0}var t=this.getSlideDistance(-this.dragX,this.selectedIndex);var e=this.previousDragX-this.dragX;if(t>0&&e>0){return 1}else if(t<0&&e<0){return-1}return 0};s.staticClick=function(t,e){var i=this.getParentCell(t.target);var n=i&&i.element;var s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])};s.onscroll=function(){var t=o();var e=this.pointerDownScroll.x-t.x;var i=this.pointerDownScroll.y-t.y;if(Math.abs(e)>3||Math.abs(i)>3){this._pointerDone()}};function o(){return{x:n.pageXOffset,y:n.pageYOffset}}return e});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils"))}else{s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}})(window,function t(e,i,n,s){"use strict";var r="http://www.w3.org/2000/svg";function o(t,e){this.direction=t;this.parent=e;this._create()}o.prototype=Object.create(n.prototype);o.prototype._create=function(){this.isEnabled=true;this.isPrevious=this.direction==-1;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button";e.className+=this.isPrevious?" previous":" next";e.setAttribute("type","button");this.disable();e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i);this.parent.on("select",this.update.bind(this));this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};o.prototype.activate=function(){this.bindStartEvent(this.element);this.element.addEventListener("click",this);this.parent.element.appendChild(this.element)};o.prototype.deactivate=function(){this.parent.element.removeChild(this.element);this.unbindStartEvent(this.element);this.element.removeEventListener("click",this)};o.prototype.createSVG=function(){var t=document.createElementNS(r,"svg");t.setAttribute("class","flickity-button-icon");t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(r,"path");var i=a(this.parent.options.arrowShape);e.setAttribute("d",i);e.setAttribute("class","arrow");if(!this.isLeft){e.setAttribute("transform","translate(100, 100) rotate(180) ")}t.appendChild(e);return t};function a(t){if(typeof t=="string"){return t}return"M "+t.x0+",50"+" L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 "+" L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z"}o.prototype.handleEvent=s.handleEvent;o.prototype.onclick=function(){if(!this.isEnabled){return}this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()};o.prototype.enable=function(){if(this.isEnabled){return}this.element.disabled=false;this.isEnabled=true};o.prototype.disable=function(){if(!this.isEnabled){return}this.element.disabled=true;this.isEnabled=false};o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&t.length>1){this.enable();return}var e=t.length?t.length-1:0;var i=this.isPrevious?0:e;var n=this.parent.selectedIndex==i?"disable":"enable";this[n]()};o.prototype.destroy=function(){this.deactivate();this.allOff()};s.extend(i.defaults,{prevNextButtons:true,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}});i.createMethods.push("_createPrevNextButtons");var l=i.prototype;l._createPrevNextButtons=function(){if(!this.options.prevNextButtons){return}this.prevButton=new o(-1,this);this.nextButton=new o(1,this);this.on("activate",this.activatePrevNextButtons)};l.activatePrevNextButtons=function(){this.prevButton.activate();this.nextButton.activate();this.on("deactivate",this.deactivatePrevNextButtons)};l.deactivatePrevNextButtons=function(){this.prevButton.deactivate();this.nextButton.deactivate();this.off("deactivate",this.deactivatePrevNextButtons)};i.PrevNextButton=o;return i});(function(n,s){if(typeof define=="function"&&define.amd){define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils"))}else{s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}})(window,function t(e,i,n,s){function r(t){this.parent=t;this._create()}r.prototype=Object.create(n.prototype);r.prototype._create=function(){this.holder=document.createElement("ol");this.holder.className="flickity-page-dots";this.dots=[];this.handleClick=this.onClick.bind(this);this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))};r.prototype.activate=function(){this.setDots();this.holder.addEventListener("click",this.handleClick);this.bindStartEvent(this.holder);this.parent.element.appendChild(this.holder)};r.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick);this.unbindStartEvent(this.holder);this.parent.element.removeChild(this.holder)};r.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;if(t>0){this.addDots(t)}else if(t<0){this.removeDots(-t)}};r.prototype.addDots=function(t){var e=document.createDocumentFragment();var i=[];var n=this.dots.length;var s=n+t;for(var r=n;r<s;r++){var o=document.createElement("li");o.className="dot";o.setAttribute("aria-label","Page dot "+(r+1));e.appendChild(o);i.push(o)}this.holder.appendChild(e);this.dots=this.dots.concat(i)};r.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)};r.prototype.updateSelected=function(){if(this.selectedDot){this.selectedDot.className="dot";this.selectedDot.removeAttribute("aria-current")}if(!this.dots.length){return}this.selectedDot=this.dots[this.parent.selectedIndex];this.selectedDot.className="dot is-selected";this.selectedDot.setAttribute("aria-current","step")};r.prototype.onTap=r.prototype.onClick=function(t){var e=t.target;if(e.nodeName!="LI"){return}this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)};r.prototype.destroy=function(){this.deactivate();this.allOff()};i.PageDots=r;s.extend(i.defaults,{pageDots:true});i.createMethods.push("_createPageDots");var o=i.prototype;o._createPageDots=function(){if(!this.options.pageDots){return}this.pageDots=new r(this);this.on("activate",this.activatePageDots);this.on("select",this.updateSelectedPageDots);this.on("cellChange",this.updatePageDots);this.on("resize",this.updatePageDots);this.on("deactivate",this.deactivatePageDots)};o.activatePageDots=function(){this.pageDots.activate()};o.updateSelectedPageDots=function(){this.pageDots.updateSelected()};o.updatePageDots=function(){this.pageDots.setDots()};o.deactivatePageDots=function(){this.pageDots.deactivate()};i.PageDots=r;return i});(function(t,n){if(typeof define=="function"&&define.amd){define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,e,i){return n(t,e,i)})}else if(typeof module=="object"&&module.exports){module.exports=n(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity"))}else{n(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}})(window,function t(e,i,n){function s(t){this.parent=t;this.state="stopped";this.onVisibilityChange=this.visibilityChange.bind(this);this.onVisibilityPlay=this.visibilityPlay.bind(this)}s.prototype=Object.create(e.prototype);s.prototype.play=function(){if(this.state=="playing"){return}var t=document.hidden;if(t){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing";document.addEventListener("visibilitychange",this.onVisibilityChange);this.tick()};s.prototype.tick=function(){if(this.state!="playing"){return}var t=this.parent.options.autoPlay;t=typeof t=="number"?t:3e3;var e=this;this.clear();this.timeout=setTimeout(function(){e.parent.next(true);e.tick()},t)};s.prototype.stop=function(){this.state="stopped";this.clear();document.removeEventListener("visibilitychange",this.onVisibilityChange)};s.prototype.clear=function(){clearTimeout(this.timeout)};s.prototype.pause=function(){if(this.state=="playing"){this.state="paused";this.clear()}};s.prototype.unpause=function(){if(this.state=="paused"){this.play()}};s.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()};s.prototype.visibilityPlay=function(){this.play();document.removeEventListener("visibilitychange",this.onVisibilityPlay)};i.extend(n.defaults,{pauseAutoPlayOnHover:true});n.createMethods.push("_createPlayer");var r=n.prototype;r._createPlayer=function(){this.player=new s(this);this.on("activate",this.activatePlayer);this.on("uiChange",this.stopPlayer);this.on("pointerDown",this.stopPlayer);this.on("deactivate",this.deactivatePlayer)};r.activatePlayer=function(){if(!this.options.autoPlay){return}this.player.play();this.element.addEventListener("mouseenter",this)};r.playPlayer=function(){this.player.play()};r.stopPlayer=function(){this.player.stop()};r.pausePlayer=function(){this.player.pause()};r.unpausePlayer=function(){this.player.unpause()};r.deactivatePlayer=function(){this.player.stop();this.element.removeEventListener("mouseenter",this)};r.onmouseenter=function(){if(!this.options.pauseAutoPlayOnHover){return}this.player.pause();this.element.addEventListener("mouseleave",this)};r.onmouseleave=function(){this.player.unpause();this.element.removeEventListener("mouseleave",this)};n.Player=s;return n});(function(i,n){if(typeof define=="function"&&define.amd){define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("./flickity"),require("fizzy-ui-utils"))}else{n(i,i.Flickity,i.fizzyUIUtils)}})(window,function t(e,i,n){function l(t){var e=document.createDocumentFragment();t.forEach(function(t){e.appendChild(t.element)});return e}var s=i.prototype;s.insert=function(t,e){var i=this._makeCells(t);if(!i||!i.length){return}var n=this.cells.length;e=e===undefined?n:e;var s=l(i);var r=e==n;if(r){this.slider.appendChild(s)}else{var o=this.cells[e].element;this.slider.insertBefore(s,o)}if(e===0){this.cells=i.concat(this.cells)}else if(r){this.cells=this.cells.concat(i)}else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i);this.cellChange(e,true)};s.append=function(t){this.insert(t,this.cells.length)};s.prepend=function(t){this.insert(t,0)};s.remove=function(t){var e=this.getCells(t);if(!e||!e.length){return}var i=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i);n.removeFrom(this.cells,t)},this);this.cellChange(i,true)};s.cellSizeChange=function(t){var e=this.getCell(t);if(!e){return}e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)};s.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t);this._getWrapShiftCells();this.setGallerySize();var n=this.getCell(i);if(n){this.selectedIndex=this.getCellSlideIndex(n)}this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex);this.emitEvent("cellChange",[t]);this.select(this.selectedIndex);if(e){this.positionSliderAtSelected()}};return i});(function(i,n){if(typeof define=="function"&&define.amd){define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("./flickity"),require("fizzy-ui-utils"))}else{n(i,i.Flickity,i.fizzyUIUtils)}})(window,function t(e,i,o){"use strict";i.createMethods.push("_createLazyload");var n=i.prototype;n._createLazyload=function(){this.on("select",this.lazyLoad)};n.lazyLoad=function(){var t=this.options.lazyLoad;if(!t){return}var e=typeof t=="number"?t:0;var i=this.getAdjacentCellElements(e);var n=[];i.forEach(function(t){var e=s(t);n=n.concat(e)});n.forEach(function(t){new r(t,this)},this)};function s(t){if(t.nodeName=="IMG"){var e=t.getAttribute("data-flickity-lazyload");var i=t.getAttribute("data-flickity-lazyload-src");var n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n){return[t]}}var s="img[data-flickity-lazyload], "+"img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]";var r=t.querySelectorAll(s);return o.makeArray(r)}function r(t,e){this.img=t;this.flickity=e;this.load()}r.prototype.handleEvent=o.handleEvent;r.prototype.load=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src");var e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t;if(e){this.img.setAttribute("srcset",e)}this.img.removeAttribute("data-flickity-lazyload");this.img.removeAttribute("data-flickity-lazyload-src");this.img.removeAttribute("data-flickity-lazyload-srcset")};r.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")};r.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")};r.prototype.complete=function(t,e){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img);var n=i&&i.element;this.flickity.cellSizeChange(n);this.img.classList.add(e);this.flickity.dispatchEvent("lazyLoad",t,n)};i.LazyLoader=r;return i});
/*!
 * Flickity v2.3.0
 * Touch, responsive, flickable carousels
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * https://flickity.metafizzy.co
 * Copyright 2015-2021 Metafizzy
 */
(function(t,e){if(typeof define=="function"&&define.amd){define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e)}else if(typeof module=="object"&&module.exports){module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload"))}})(window,function t(e){return e});
/*!
 * Flickity asNavFor v2.0.2
 * enable asNavFor for Flickity
 */
(function(t,e){if(typeof define=="function"&&define.amd){define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e)}else if(typeof module=="object"&&module.exports){module.exports=e(require("flickity"),require("fizzy-ui-utils"))}else{t.Flickity=e(t.Flickity,t.fizzyUIUtils)}})(window,function t(n,s){n.createMethods.push("_createAsNavFor");var e=n.prototype;e._createAsNavFor=function(){this.on("activate",this.activateAsNavFor);this.on("deactivate",this.deactivateAsNavFor);this.on("destroy",this.destroyAsNavFor);var e=this.options.asNavFor;if(!e){return}var i=this;setTimeout(function t(){i.setNavCompanion(e)})};e.setNavCompanion=function(t){t=s.getQueryElement(t);var e=n.data(t);if(!e||e==this){return}this.navCompanion=e;var i=this;this.onNavCompanionSelect=function(){i.navCompanionSelect()};e.on("select",this.onNavCompanionSelect);this.on("staticClick",this.onNavStaticClick);this.navCompanionSelect(true)};e.navCompanionSelect=function(t){var e=this.navCompanion&&this.navCompanion.selectedCells;if(!e){return}var i=e[0];var n=this.navCompanion.cells.indexOf(i);var s=n+e.length-1;var r=Math.floor(a(n,s,this.navCompanion.cellAlign));this.selectCell(r,false,t);this.removeNavSelectedElements();if(r>=this.cells.length){return}var o=this.cells.slice(n,s+1);this.navSelectedElements=o.map(function(t){return t.element});this.changeNavSelectedClass("add")};function a(t,e,i){return(e-t)*i+t}e.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})};e.activateAsNavFor=function(){this.navCompanionSelect(true)};e.removeNavSelectedElements=function(){if(!this.navSelectedElements){return}this.changeNavSelectedClass("remove");delete this.navSelectedElements};e.onNavStaticClick=function(t,e,i,n){if(typeof n=="number"){this.navCompanion.selectCell(n)}};e.deactivateAsNavFor=function(){this.removeNavSelectedElements()};e.destroyAsNavFor=function(){if(!this.navCompanion){return}this.navCompanion.off("select",this.onNavCompanionSelect);this.off("staticClick",this.onNavStaticClick);delete this.navCompanion};return n});
/*!
 * imagesLoaded v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(e,i){"use strict";if(typeof define=="function"&&define.amd){define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)})}else if(typeof module=="object"&&module.exports){module.exports=i(e,require("ev-emitter"))}else{e.imagesLoaded=i(e,e.EvEmitter)}})(typeof window!=="undefined"?window:this,function t(e,i){var s=e.jQuery;var r=e.console;function o(t,e){for(var i in e){t[i]=e[i]}return t}var n=Array.prototype.slice;function a(t){if(Array.isArray(t)){return t}var e=typeof t=="object"&&typeof t.length=="number";if(e){return n.call(t)}return[t]}function l(t,e,i){if(!(this instanceof l)){return new l(t,e,i)}var n=t;if(typeof t=="string"){n=document.querySelectorAll(t)}if(!n){r.error("Bad element for imagesLoaded "+(n||t));return}this.elements=a(n);this.options=o({},this.options);if(typeof e=="function"){i=e}else{o(this.options,e)}if(i){this.on("always",i)}this.getImages();if(s){this.jqDeferred=new s.Deferred}setTimeout(this.check.bind(this))}l.prototype=Object.create(i.prototype);l.prototype.options={};l.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};l.prototype.addElementImages=function(t){if(t.nodeName=="IMG"){this.addImage(t)}if(this.options.background===true){this.addElementBackgroundImages(t)}var e=t.nodeType;if(!e||!h[e]){return}var i=t.querySelectorAll("img");for(var n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if(typeof this.options.background=="string"){var r=t.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var o=r[n];this.addElementBackgroundImages(o)}}};var h={1:true,9:true,11:true};l.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(!e){return}var i=/url\((['"])?(.*?)\1\)/gi;var n=i.exec(e.backgroundImage);while(n!==null){var s=n&&n[2];if(s){this.addBackground(s,t)}n=i.exec(e.backgroundImage)}};l.prototype.addImage=function(t){var e=new c(t);this.images.push(e)};l.prototype.addBackground=function(t,e){var i=new u(t,e);this.images.push(i)};l.prototype.check=function(){var n=this;this.progressedCount=0;this.hasAnyBroken=false;if(!this.images.length){this.complete();return}function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.images.forEach(function(t){t.once("progress",e);t.check()})};l.prototype.progress=function(t,e,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;this.emitEvent("progress",[this,t,e]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,t)}if(this.progressedCount==this.images.length){this.complete()}if(this.options.debug&&r){r.log("progress: "+i,t,e)}};l.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=true;this.emitEvent(t,[this]);this.emitEvent("always",[this]);if(this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}};function c(t){this.img=t}c.prototype=Object.create(i.prototype);c.prototype.check=function(){var t=this.getIsImageComplete();if(t){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image;this.proxyImage.addEventListener("load",this);this.proxyImage.addEventListener("error",this);this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.proxyImage.src=this.img.src};c.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth};c.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.img,e])};c.prototype.handleEvent=function(t){var e="on"+t.type;if(this[e]){this[e](t)}};c.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()};c.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()};c.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};function u(t,e){this.url=t;this.element=e;this.img=new Image}u.prototype=Object.create(c.prototype);u.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var t=this.getIsImageComplete();if(t){this.confirm(this.img.naturalWidth!==0,"naturalWidth");this.unbindEvents()}};u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};u.prototype.confirm=function(t,e){this.isLoaded=t;this.emitEvent("progress",[this,this.element,e])};l.makeJQueryPlugin=function(t){t=t||e.jQuery;if(!t){return}s=t;s.fn.imagesLoaded=function(t,e){var i=new l(this,t,e);return i.jqDeferred.promise(s(this))}};l.makeJQueryPlugin();return l});
/*!
 * Flickity imagesLoaded v2.0.0
 * enables imagesLoaded option for Flickity
 */
(function(i,n){if(typeof define=="function"&&define.amd){define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return n(i,t,e)})}else if(typeof module=="object"&&module.exports){module.exports=n(i,require("flickity"),require("imagesloaded"))}else{i.Flickity=n(i,i.Flickity,i.imagesLoaded)}})(window,function t(e,i,s){"use strict";i.createMethods.push("_createImagesLoaded");var n=i.prototype;n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)};n.imagesLoaded=function(){if(!this.options.imagesLoaded){return}var n=this;function t(t,e){var i=n.getParentCell(e.img);n.cellSizeChange(i&&i.element);if(!n.options.freeScroll){n.positionSliderAtSelected()}}s(this.slider).on("progress",t)};return i});;
/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.ScrollMagic=t()}(this,function(){"use strict";function _(){}_.version="2.0.8","undefined"!=typeof window&&window.addEventListener("mousewheel",void 0);var P="data-scrollmagic-pin-spacer";_.Controller=function(e){function t(){var e,t,n;v&&u&&(e=R.type.Array(u)?u:f.slice(0),u=!1,t=d,0!=(n=(d=l.scrollPos())-t)&&(h=0<n?"FORWARD":i),h===i&&e.reverse(),e.forEach(function(e,t){e.update(!0)}))}function r(){n=R.rAF(t)}var n,o,i="REVERSE",s="PAUSED",a=z.defaults,l=this,c=R.extend({},a,e),f=[],u=!1,d=0,h=s,p=!0,g=0,v=!0,m=function(){0<c.refreshInterval&&(o=window.setTimeout(E,c.refreshInterval))},w=function(){return c.vertical?R.get.scrollTop(c.container):R.get.scrollLeft(c.container)},y=function(){return c.vertical?R.get.height(c.container):R.get.width(c.container)},S=this._setScrollPos=function(e){c.vertical?p?window.scrollTo(R.get.scrollLeft(),e):c.container.scrollTop=e:p?window.scrollTo(e,R.get.scrollTop()):c.container.scrollLeft=e},b=function(e){"resize"==e.type&&(g=y(),h=s),!0!==u&&(u=!0,r())},E=function(){if(!p&&g!=y()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}c.container.dispatchEvent(t)}f.forEach(function(e,t){e.refresh()}),m()};this._options=c;function x(e){if(e.length<=1)return e;var t=e.slice(0);return t.sort(function(e,t){return e.scrollOffset()>t.scrollOffset()?1:-1}),t}return this.addScene=function(e){if(R.type.Array(e))e.forEach(function(e,t){l.addScene(e)});else if(e instanceof _.Scene)if(e.controller()!==l)e.addTo(l);else if(!~f.indexOf(e))for(var t in f.push(e),f=x(f),e.on("shift.controller_sort",function(){f=x(f)}),c.globalSceneOptions)e[t]&&e[t].call(e,c.globalSceneOptions[t]);return l},this.removeScene=function(e){var t;return R.type.Array(e)?e.forEach(function(e,t){l.removeScene(e)}):-1<(t=f.indexOf(e))&&(e.off("shift.controller_sort"),f.splice(t,1),e.remove()),l},this.updateScene=function(e,n){return R.type.Array(e)?e.forEach(function(e,t){l.updateScene(e,n)}):n?e.update(!0):!0!==u&&e instanceof _.Scene&&(~(u=u||[]).indexOf(e)||u.push(e),u=x(u),r()),l},this.update=function(e){return b({type:"resize"}),e&&t(),l},this.scrollTo=function(e,t){if(R.type.Number(e))S.call(c.container,e,t);else if(e instanceof _.Scene)e.controller()===l&&l.scrollTo(e.scrollOffset(),t);else if(R.type.Function(e))S=e;else{var n=R.get.elements(e)[0];if(n){for(;n.parentNode.hasAttribute(P);)n=n.parentNode;var r=c.vertical?"top":"left",o=R.get.offset(c.container),i=R.get.offset(n);p||(o[r]-=l.scrollPos()),l.scrollTo(i[r]-o[r],t)}}return l},this.scrollPos=function(e){return arguments.length?(R.type.Function(e)&&(w=e),l):w.call(l)},this.info=function(e){var t={size:g,vertical:c.vertical,scrollPos:d,scrollDirection:h,container:c.container,isDocument:p};return arguments.length?void 0!==t[e]?t[e]:void 0:t},this.loglevel=function(e){return l},this.enabled=function(e){return arguments.length?(v!=e&&(v=!!e,l.updateScene(f,!0)),l):v},this.destroy=function(e){window.clearTimeout(o);for(var t=f.length;t--;)f[t].destroy(e);return c.container.removeEventListener("resize",b),c.container.removeEventListener("scroll",b),R.cAF(n),null},function(){for(var e in c)a.hasOwnProperty(e)||delete c[e];if(c.container=R.get.elements(c.container)[0],!c.container)throw"ScrollMagic.Controller init failed.";(p=c.container===window||c.container===document.body||!document.body.contains(c.container))&&(c.container=window),g=y(),c.container.addEventListener("resize",b),c.container.addEventListener("scroll",b);var t=parseInt(c.refreshInterval,10);c.refreshInterval=R.type.Number(t)?t:a.refreshInterval,m()}(),l};var z={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};_.Controller.addOption=function(e,t){z.defaults[e]=t},_.Controller.extend=function(e){var t=this;_.Controller=function(){return t.apply(this,arguments),this.$super=R.extend({},this),e.apply(this,arguments)||this},R.extend(_.Controller,t),_.Controller.prototype=t.prototype,_.Controller.prototype.constructor=_.Controller},_.Scene=function(e){var n,l,c="BEFORE",f="DURING",u="AFTER",r=D.defaults,d=this,h=R.extend({},r,e),p=c,g=0,a={start:0,end:0},v=0,o=!0,s={};this.on=function(e,o){return R.type.Function(o)&&(e=e.trim().split(" ")).forEach(function(e){var t=e.split("."),n=t[0],r=t[1];"*"!=n&&(s[n]||(s[n]=[]),s[n].push({namespace:r||"",callback:o}))}),d},this.off=function(e,i){return e&&(e=e.trim().split(" ")).forEach(function(e,t){var n=e.split("."),r=n[0],o=n[1]||"";("*"===r?Object.keys(s):[r]).forEach(function(e){for(var t=s[e]||[],n=t.length;n--;){var r=t[n];!r||o!==r.namespace&&"*"!==o||i&&i!=r.callback||t.splice(n,1)}t.length||delete s[e]})}),d},this.trigger=function(e,n){var t,r,o,i;return e&&(t=e.trim().split("."),r=t[0],o=t[1],(i=s[r])&&i.forEach(function(e,t){o&&o!==e.namespace||e.callback.call(d,new _.Event(r,e.namespace,d,n))})),d},d.on("change.internal",function(e){"loglevel"!==e.what&&"tweenChanges"!==e.what&&("triggerElement"===e.what?y():"reverse"===e.what&&d.update())}).on("shift.internal",function(e){t(),d.update()}),this.addTo=function(e){return e instanceof _.Controller&&l!=e&&(l&&l.removeScene(d),l=e,E(),i(!0),y(!0),t(),l.info("container").addEventListener("resize",S),e.addScene(d),d.trigger("add",{controller:l}),d.update()),d},this.enabled=function(e){return arguments.length?(o!=e&&(o=!!e,d.update(!0)),d):o},this.remove=function(){var e;return l&&(l.info("container").removeEventListener("resize",S),e=l,l=void 0,e.removeScene(d),d.trigger("remove")),d},this.destroy=function(e){return d.trigger("destroy",{reset:e}),d.remove(),d.off("*.*"),null},this.update=function(e){var t,n;return l&&(e?l.enabled()&&o?(t=l.info("scrollPos"),n=0<h.duration?(t-a.start)/(a.end-a.start):t>=a.start?1:0,d.trigger("update",{startPos:a.start,endPos:a.end,scrollPos:t}),d.progress(n)):m&&p===f&&T(!0):l.updateScene(d,!1)),d},this.refresh=function(){return i(),y(),d},this.progress=function(e){if(arguments.length){var t,n,r,o=!1,i=p,s=l?l.info("scrollDirection"):"PAUSED",a=h.reverse||g<=e;return 0===h.duration?(o=g!=e,p=0===(g=e<1&&a?0:1)?c:f):e<0&&p!==c&&a?(p=c,o=!(g=0)):0<=e&&e<1&&a?(g=e,p=f,o=!0):1<=e&&p!==u?(g=1,p=u,o=!0):p!==f||a||T(),o&&(t={progress:g,state:p,scrollDirection:s},r=function(e){d.trigger(e,t)},(n=p!=i)&&i!==f&&(r("enter"),r(i===c?"start":"end")),r("progress"),n&&p!==f&&(r(p===c?"start":"end"),r("leave"))),d}return g};var m,w,t=function(){a={start:v+h.offset},l&&h.triggerElement&&(a.start-=l.info("size")*h.triggerHook),a.end=a.start+h.duration},i=function(e){var t;!n||x(t="duration",n.call(d))&&!e&&(d.trigger("change",{what:t,newval:h[t]}),d.trigger("shift",{reason:t}))},y=function(e){var t=0,n=h.triggerElement;if(l&&(n||0<v)){if(n)if(n.parentNode){for(var r=l.info(),o=R.get.offset(r.container),i=r.vertical?"top":"left";n.parentNode.hasAttribute(P);)n=n.parentNode;var s=R.get.offset(n);r.isDocument||(o[i]-=l.scrollPos()),t=s[i]-o[i]}else d.triggerElement(void 0);var a=t!=v;v=t,a&&!e&&d.trigger("shift",{reason:"triggerElementPosition"})}},S=function(e){0<h.triggerHook&&d.trigger("shift",{reason:"containerResize"})},b=R.extend(D.validate,{duration:function(t){var e;if(R.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)&&(e=parseFloat(t)/100,t=function(){return l?l.info("size")*e:0}),R.type.Function(t)){n=t;try{t=parseFloat(n.call(d))}catch(e){t=-1}}if(t=parseFloat(t),!R.type.Number(t)||t<0)throw n=n&&void 0,0;return t}}),E=function(e){(e=arguments.length?[e]:Object.keys(b)).forEach(function(t,e){var n;if(b[t])try{n=b[t](h[t])}catch(e){n=r[t]}finally{h[t]=n}})},x=function(e,t){var n=!1,r=h[e];return h[e]!=t&&(h[e]=t,E(e),n=r!=h[e]),n},z=function(t){d[t]||(d[t]=function(e){return arguments.length?("duration"===t&&(n=void 0),x(t,e)&&(d.trigger("change",{what:t,newval:h[t]}),~D.shifts.indexOf(t)&&d.trigger("shift",{reason:t})),d):h[t]})};this.controller=function(){return l},this.state=function(){return p},this.scrollOffset=function(){return a.start},this.triggerPosition=function(){var e=h.offset;return l&&(h.triggerElement?e+=v:e+=l.info("size")*d.triggerHook()),e},d.on("shift.internal",function(e){var t="duration"===e.reason;(p===u&&t||p===f&&0===h.duration)&&T(),t&&A()}).on("progress.internal",function(e){T()}).on("add.internal",function(e){A()}).on("destroy.internal",function(e){d.removePin(e.reset)});function C(){l&&m&&p===f&&!l.info("isDocument")&&T()}function F(){l&&m&&p===f&&((w.relSize.width||w.relSize.autoFullWidth)&&R.get.width(window)!=R.get.width(w.spacer.parentNode)||w.relSize.height&&R.get.height(window)!=R.get.height(w.spacer.parentNode))&&A()}function L(e){l&&m&&p===f&&!l.info("isDocument")&&(e.preventDefault(),l._setScrollPos(l.info("scrollPos")-((e.wheelDelta||e[l.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-e.detail)))}var T=function(e){var t,n,r,o,i,s;m&&l&&(t=l.info(),n=w.spacer.firstChild,e||p!==f?(r={position:w.inFlow?"relative":"absolute",top:0,left:0},o=R.css(n,"position")!=r.position,w.pushFollowers?0<h.duration&&(p===u&&0===parseFloat(R.css(w.spacer,"padding-top"))||p===c&&0===parseFloat(R.css(w.spacer,"padding-bottom")))&&(o=!0):r[t.vertical?"top":"left"]=h.duration*g,R.css(n,r),o&&A()):("fixed"!=R.css(n,"position")&&(R.css(n,{position:"fixed"}),A()),i=R.get.offset(w.spacer,!0),s=h.reverse||0===h.duration?t.scrollPos-a.start:Math.round(g*h.duration*10)/10,i[t.vertical?"top":"left"]+=s,R.css(w.spacer.firstChild,{top:i.top,left:i.left})))},A=function(){var e,t,n,r,o;m&&l&&w.inFlow&&(e=p===f,t=l.info("vertical"),n=w.spacer.firstChild,r=R.isMarginCollapseType(R.css(w.spacer,"display")),o={},w.relSize.width||w.relSize.autoFullWidth?e?R.css(m,{width:R.get.width(w.spacer)}):R.css(m,{width:"100%"}):(o["min-width"]=R.get.width(t?m:n,!0,!0),o.width=e?o["min-width"]:"auto"),w.relSize.height?e?R.css(m,{height:R.get.height(w.spacer)-(w.pushFollowers?h.duration:0)}):R.css(m,{height:"100%"}):(o["min-height"]=R.get.height(t?n:m,!0,!r),o.height=e?o["min-height"]:"auto"),w.pushFollowers&&(o["padding"+(t?"Top":"Left")]=h.duration*g,o["padding"+(t?"Bottom":"Right")]=h.duration*(1-g)),R.css(w.spacer,o))};this.setPin=function(e,t){if(t=R.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},t),!(e=R.get.elements(e)[0]))return d;if("fixed"===R.css(e,"position"))return d;if(m){if(m===e)return d;d.removePin()}var n=(m=e).parentNode.style.display,r=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];m.parentNode.style.display="none";var o="absolute"!=R.css(m,"position"),i=R.css(m,r.concat(["display"])),s=R.css(m,["width","height"]);m.parentNode.style.display=n,!o&&t.pushFollowers&&(t.pushFollowers=!1);var a,l=m.parentNode.insertBefore(document.createElement("div"),m),c=R.extend(i,{position:o?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});return o||R.extend(c,R.css(m,["width","height"])),R.css(l,c),l.setAttribute(P,""),R.addClass(l,t.spacerClass),w={spacer:l,relSize:{width:"%"===s.width.slice(-1),height:"%"===s.height.slice(-1),autoFullWidth:"auto"===s.width&&o&&R.isMarginCollapseType(i.display)},pushFollowers:t.pushFollowers,inFlow:o},m.___origStyle||(m.___origStyle={},a=m.style,r.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach(function(e){m.___origStyle[e]=a[e]||""})),w.relSize.width&&R.css(l,{width:s.width}),w.relSize.height&&R.css(l,{height:s.height}),l.appendChild(m),R.css(m,{position:o?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(w.relSize.width||w.relSize.autoFullWidth)&&R.css(m,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",C),window.addEventListener("resize",C),window.addEventListener("resize",F),m.addEventListener("mousewheel",L),m.addEventListener("DOMMouseScroll",L),T(),d},this.removePin=function(e){var t,n,r;return m&&(p===f&&T(!0),!e&&l||((t=w.spacer.firstChild).hasAttribute(P)&&(n=w.spacer.style,r={},["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach(function(e){r[e]=n[e]||""}),R.css(t,r)),w.spacer.parentNode.insertBefore(t,w.spacer),w.spacer.parentNode.removeChild(w.spacer),m.parentNode.hasAttribute(P)||(R.css(m,m.___origStyle),delete m.___origStyle)),window.removeEventListener("scroll",C),window.removeEventListener("resize",C),window.removeEventListener("resize",F),m.removeEventListener("mousewheel",L),m.removeEventListener("DOMMouseScroll",L),m=void 0),d};var N,O=[];return d.on("destroy.internal",function(e){d.removeClassToggle(e.reset)}),this.setClassToggle=function(e,t){var n=R.get.elements(e);return 0!==n.length&&R.type.String(t)&&(0<O.length&&d.removeClassToggle(),N=t,O=n,d.on("enter.internal_class leave.internal_class",function(e){var n="enter"===e.type?R.addClass:R.removeClass;O.forEach(function(e,t){n(e,N)})})),d},this.removeClassToggle=function(e){return e&&O.forEach(function(e,t){R.removeClass(e,N)}),d.off("start.internal_class end.internal_class"),N=void 0,O=[],d},function(){for(var e in h)r.hasOwnProperty(e)||delete h[e];for(var t in r)z(t);E()}(),d};var D={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parseFloat(e),!R.type.Number(e))throw 0;return e},triggerElement:function(e){if(e=e||void 0){var t=R.get.elements(e)[0];if(!t||!t.parentNode)throw 0;e=t}return e},triggerHook:function(e){var t={onCenter:.5,onEnter:1,onLeave:0};if(R.type.Number(e))e=Math.max(0,Math.min(parseFloat(e),1));else{if(!(e in t))throw 0;e=t[e]}return e},reverse:function(e){return!!e}},shifts:["duration","offset","triggerHook"]};_.Scene.addOption=function(e,t,n,r){e in D.defaults||(D.defaults[e]=t,D.validate[e]=n,r&&D.shifts.push(e))},_.Scene.extend=function(e){var t=this;_.Scene=function(){return t.apply(this,arguments),this.$super=R.extend({},this),e.apply(this,arguments)||this},R.extend(_.Scene,t),_.Scene.prototype=t.prototype,_.Scene.prototype.constructor=_.Scene},_.Event=function(e,t,n,r){for(var o in r=r||{})this[o]=r[o];return this.type=e,this.target=this.currentTarget=n,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this};var R=_._util=function(s){function a(e){return parseFloat(e)||0}function l(e){return e.currentStyle?e.currentStyle:s.getComputedStyle(e)}function r(e,t,n,r){if((t=t===document?s:t)===s)r=!1;else if(!u.DomElement(t))return 0;e=e[0].toUpperCase()+e.substr(1).toLowerCase();var o,i=(n?t["offset"+e]||t["outer"+e]:t["client"+e]||t["inner"+e])||0;return n&&r&&(o=l(t),i+="Height"===e?a(o.marginTop)+a(o.marginBottom):a(o.marginLeft)+a(o.marginRight)),i}function c(e){return e.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}var e={};e.extend=function(e){for(e=e||{},f=1;f<arguments.length;f++)if(arguments[f])for(var t in arguments[f])arguments[f].hasOwnProperty(t)&&(e[t]=arguments[f][t]);return e},e.isMarginCollapseType=function(e){return!!~["block","flex","list-item","table","-webkit-box"].indexOf(e)};for(var o=0,t=["ms","moz","webkit","o"],n=s.requestAnimationFrame,i=s.cancelAnimationFrame,f=0;!n&&f<4;++f)n=s[t[f]+"RequestAnimationFrame"],i=s[t[f]+"CancelAnimationFrame"]||s[t[f]+"CancelRequestAnimationFrame"];n=n||function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-o)),r=s.setTimeout(function(){e(t+n)},n);return o=t+n,r},i=i||function(e){s.clearTimeout(e)},e.rAF=n.bind(s),e.cAF=i.bind(s);var u=e.type=function(e){return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};u.String=function(e){return"string"===u(e)},u.Function=function(e){return"function"===u(e)},u.Array=function(e){return Array.isArray(e)},u.Number=function(e){return!u.Array(e)&&0<=e-parseFloat(e)+1},u.DomElement=function(e){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?e instanceof HTMLElement||e instanceof SVGElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName};var d=e.get={};return d.elements=function(e){var t=[];if(u.String(e))try{e=document.querySelectorAll(e)}catch(e){return t}if("nodelist"===u(e)||u.Array(e)||e instanceof NodeList)for(var n=0,r=t.length=e.length;n<r;n++){var o=e[n];t[n]=u.DomElement(o)?o:d.elements(o)}else!u.DomElement(e)&&e!==document&&e!==s||(t=[e]);return t},d.scrollTop=function(e){return e&&"number"==typeof e.scrollTop?e.scrollTop:s.pageYOffset||0},d.scrollLeft=function(e){return e&&"number"==typeof e.scrollLeft?e.scrollLeft:s.pageXOffset||0},d.width=function(e,t,n){return r("width",e,t,n)},d.height=function(e,t,n){return r("height",e,t,n)},d.offset=function(e,t){var n,r={top:0,left:0};return e&&e.getBoundingClientRect&&(n=e.getBoundingClientRect(),r.top=n.top,r.left=n.left,t||(r.top+=d.scrollTop(),r.left+=d.scrollLeft())),r},e.addClass=function(e,t){t&&(e.classList?e.classList.add(t):e.className+=" "+t)},e.removeClass=function(e,t){t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},e.css=function(e,t){if(u.String(t))return l(e)[c(t)];if(u.Array(t)){var n={},r=l(e);return t.forEach(function(e,t){n[e]=r[c(e)]}),n}for(var o in t){var i=t[o];i==parseFloat(i)&&(i+="px"),e.style[c(o)]=i}},e}(window||{});return _});;
/*!
 * VERSION: 2.1.2
 * DATE: 2019-03-01
 * UPDATES AND DOCS AT: http://greensock.com
 * 
 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
 *
 * @license Copyright (c) 2008-2019, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c],b):e[c%e.length];delete a.cycle},f=function(a){if("function"==typeof a)return a;var b="object"==typeof a?a:{each:a},c=b.ease,d=b.from||0,e=b.base||0,f={},g=isNaN(d),h=b.axis,i={center:.5,end:1}[d]||0;return function(a,j,k){var l,m,n,o,p,q,r,s,t,u=(k||b).length,v=f[u];if(!v){if(t="auto"===b.grid?0:(b.grid||[1/0])[0],!t){for(r=-(1/0);r<(r=k[t++].getBoundingClientRect().left)&&u>t;);t--}for(v=f[u]=[],l=g?Math.min(t,u)*i-.5:d%t,m=g?u*i/t-.5:d/t|0,r=0,s=1/0,q=0;u>q;q++)n=q%t-l,o=m-(q/t|0),v[q]=p=h?Math.abs("y"===h?o:n):Math.sqrt(n*n+o*o),p>r&&(r=p),s>p&&(s=p);v.max=r-s,v.min=s,v.v=u=b.amount||b.each*(t>u?u:h?"y"===h?u/t:t:Math.max(t,u/t))||0,v.b=0>u?e-u:e}return u=(v[a]-v.min)/v.max,v.b+(c?c.getRatio(u):u)*v.v}},g=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=g.prototype.render},h=1e-8,i=c._internals,j=i.isSelector,k=i.isArray,l=g.prototype=c.to({},.1,{}),m=[];g.version="2.1.2",l.constructor=g,l.kill()._gc=!1,g.killTweensOf=g.killDelayedCallsTo=c.killTweensOf,g.getTweensOf=c.getTweensOf,g.lagSmoothing=c.lagSmoothing,g.ticker=c.ticker,g.render=c.render,g.distribute=f,l.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),c.prototype.invalidate.call(this)},l.updateTo=function(a,b){var d,e=this,f=e.ratio,g=e.vars.immediateRender||a.immediateRender;b&&e._startTime<e._timeline._time&&(e._startTime=e._timeline._time,e._uncache(!1),e._gc?e._enabled(!0,!1):e._timeline.insert(e,e._startTime-e._delay));for(d in a)e.vars[d]=a[d];if(e._initted||g)if(b)e._initted=!1,g&&e.render(0,!0,!0);else if(e._gc&&e._enabled(!0,!1),e._notifyPluginsOfEnabled&&e._firstPT&&c._onPluginEvent("_onDisable",e),e._time/e._duration>.998){var h=e._totalTime;e.render(0,!0,!1),e._initted=!1,e.render(h,!0,!1)}else if(e._initted=!1,e._init(),e._time>0||g)for(var i,j=1/(1-f),k=e._firstPT;k;)i=k.s+k.c,k.c*=j,k.s=i-k.c,k=k._next;return e},l.render=function(a,b,d){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var e,f,g,j,k,l,m,n,o,p=this,q=p._dirty?p.totalDuration():p._totalDuration,r=p._time,s=p._totalTime,t=p._cycle,u=p._duration,v=p._rawPrevTime;if(a>=q-h&&a>=0?(p._totalTime=q,p._cycle=p._repeat,p._yoyo&&0!==(1&p._cycle)?(p._time=0,p.ratio=p._ease._calcEnd?p._ease.getRatio(0):0):(p._time=u,p.ratio=p._ease._calcEnd?p._ease.getRatio(1):1),p._reversed||(e=!0,f="onComplete",d=d||p._timeline.autoRemoveChildren),0===u&&(p._initted||!p.vars.lazy||d)&&(p._startTime===p._timeline._duration&&(a=0),(0>v||0>=a&&a>=-h||v===h&&"isPause"!==p.data)&&v!==a&&(d=!0,v>h&&(f="onReverseComplete")),p._rawPrevTime=n=!b||a||v===a?a:h)):h>a?(p._totalTime=p._time=p._cycle=0,p.ratio=p._ease._calcEnd?p._ease.getRatio(0):0,(0!==s||0===u&&v>0)&&(f="onReverseComplete",e=p._reversed),a>-h?a=0:0>a&&(p._active=!1,0===u&&(p._initted||!p.vars.lazy||d)&&(v>=0&&(d=!0),p._rawPrevTime=n=!b||a||v===a?a:h)),p._initted||(d=!0)):(p._totalTime=p._time=a,0!==p._repeat&&(j=u+p._repeatDelay,p._cycle=p._totalTime/j>>0,0!==p._cycle&&p._cycle===p._totalTime/j&&a>=s&&p._cycle--,p._time=p._totalTime-p._cycle*j,p._yoyo&&0!==(1&p._cycle)&&(p._time=u-p._time,o=p._yoyoEase||p.vars.yoyoEase,o&&(p._yoyoEase||(o!==!0||p._initted?p._yoyoEase=o=o===!0?p._ease:o instanceof Ease?o:Ease.map[o]:(o=p.vars.ease,p._yoyoEase=o=o?o instanceof Ease?o:"function"==typeof o?new Ease(o,p.vars.easeParams):Ease.map[o]||c.defaultEase:c.defaultEase)),p.ratio=o?1-o.getRatio((u-p._time)/u):0)),p._time>u?p._time=u:p._time<0&&(p._time=0)),p._easeType&&!o?(k=p._time/u,l=p._easeType,m=p._easePower,(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===m?k*=k:2===m?k*=k*k:3===m?k*=k*k*k:4===m&&(k*=k*k*k*k),p.ratio=1===l?1-k:2===l?k:p._time/u<.5?k/2:1-k/2):o||(p.ratio=p._ease.getRatio(p._time/u))),r===p._time&&!d&&t===p._cycle)return void(s!==p._totalTime&&p._onUpdate&&(b||p._callback("onUpdate")));if(!p._initted){if(p._init(),!p._initted||p._gc)return;if(!d&&p._firstPT&&(p.vars.lazy!==!1&&p._duration||p.vars.lazy&&!p._duration))return p._time=r,p._totalTime=s,p._rawPrevTime=v,p._cycle=t,i.lazyTweens.push(p),void(p._lazy=[a,b]);!p._time||e||o?e&&this._ease._calcEnd&&!o&&(p.ratio=p._ease.getRatio(0===p._time?0:1)):p.ratio=p._ease.getRatio(p._time/u)}for(p._lazy!==!1&&(p._lazy=!1),p._active||!p._paused&&p._time!==r&&a>=0&&(p._active=!0),0===s&&(2===p._initted&&a>0&&p._init(),p._startAt&&(a>=0?p._startAt.render(a,!0,d):f||(f="_dummyGS")),p.vars.onStart&&(0!==p._totalTime||0===u)&&(b||p._callback("onStart"))),g=p._firstPT;g;)g.f?g.t[g.p](g.c*p.ratio+g.s):g.t[g.p]=g.c*p.ratio+g.s,g=g._next;p._onUpdate&&(0>a&&p._startAt&&p._startTime&&p._startAt.render(a,!0,d),b||(p._totalTime!==s||f)&&p._callback("onUpdate")),p._cycle!==t&&(b||p._gc||p.vars.onRepeat&&p._callback("onRepeat")),f&&(!p._gc||d)&&(0>a&&p._startAt&&!p._onUpdate&&p._startTime&&p._startAt.render(a,!0,d),e&&(p._timeline.autoRemoveChildren&&p._enabled(!1,!1),p._active=!1),!b&&p.vars[f]&&p._callback(f),0===u&&p._rawPrevTime===h&&n!==h&&(p._rawPrevTime=0))},g.to=function(a,b,c){return new g(a,b,c)},g.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new g(a,b,c)},g.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new g(a,b,d)},g.staggerTo=g.allTo=function(a,b,h,i,l,n,o){var p,q,r,s,t=[],u=f(h.stagger||i),v=h.cycle,w=(h.startAt||m).cycle;for(k(a)||("string"==typeof a&&(a=c.selector(a)||a),j(a)&&(a=d(a))),a=a||[],p=a.length-1,r=0;p>=r;r++){q={};for(s in h)q[s]=h[s];if(v&&(e(q,a,r),null!=q.duration&&(b=q.duration,delete q.duration)),w){w=q.startAt={};for(s in h.startAt)w[s]=h.startAt[s];e(q.startAt,a,r)}q.delay=u(r,a[r],a)+(q.delay||0),r===p&&l&&(q.onComplete=function(){h.onComplete&&h.onComplete.apply(h.onCompleteScope||this,arguments),l.apply(o||h.callbackScope||this,n||m)}),t[r]=new g(a[r],b,q)}return t},g.staggerFrom=g.allFrom=function(a,b,c,d,e,f,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,g.staggerTo(a,b,c,d,e,f,h)},g.staggerFromTo=g.allFromTo=function(a,b,c,d,e,f,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,g.staggerTo(a,b,d,e,f,h,i)},g.delayedCall=function(a,b,c,d,e){return new g(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,useFrames:e,overwrite:0})},g.set=function(a,b){return new g(a,0,b)},g.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var n=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(n(f,b)),e=d.length),f=f._next;return d},o=g.getAllTweens=function(b){return n(a._rootTimeline,b).concat(n(a._rootFramesTimeline,b))};g.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=o(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},g.killChildTweensOf=function(a,b){if(null!=a){var e,f,h,l,m,n=i.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),j(a)&&(a=d(a)),k(a))for(l=a.length;--l>-1;)g.killChildTweensOf(a[l],b);else{e=[];for(h in n)for(f=n[h].target.parentNode;f;)f===a&&(e=e.concat(n[h].tweens)),f=f.parentNode;for(m=e.length,l=0;m>l;l++)b&&e[l].totalTime(e[l].totalDuration()),e[l]._enabled(!1,!1)}}};var p=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=o(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return g.pauseAll=function(a,b,c){p(!0,a,b,c)},g.resumeAll=function(a,b,c){p(!1,a,b,c)},g.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||h,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},l.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()},l.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()},l.time=function(a,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var c=this._duration,d=this._cycle,e=d*(c+this._repeatDelay);return a>c&&(a=c),this.totalTime(this._yoyo&&1&d?c-a+e:this._repeat?a+e:a,b)},l.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},l.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},l.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},l.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},l.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},g},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a);var c,d,e=this,f=e.vars;e._labels={},e.autoRemoveChildren=!!f.autoRemoveChildren,e.smoothChildTiming=!!f.smoothChildTiming,e._sortChildren=!0,e._onUpdate=f.onUpdate;for(d in f)c=f[d],i(c)&&-1!==c.join("").indexOf("{self}")&&(f[d]=e._swapSelfInParams(c));i(f.tweens)&&e.add(f.tweens,0,f.align,f.stagger)},e=1e-8,f=c._internals,g=d._internals={},h=f.isSelector,i=f.isArray,j=f.lazyTweens,k=f.lazyRender,l=_gsScope._gsDefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c],b):e[c%e.length];delete a.cycle},o=g.pauseCallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=function(a,b,c,d){var e="immediateRender";return e in b||(b[e]=!(c&&c[e]===!1||d)),b},r=function(a){if("function"==typeof a)return a;var b="object"==typeof a?a:{each:a},c=b.ease,d=b.from||0,e=b.base||0,f={},g=isNaN(d),h=b.axis,i={center:.5,end:1}[d]||0;return function(a,j,k){var l,m,n,o,p,q,r,s,t,u=(k||b).length,v=f[u];if(!v){if(t="auto"===b.grid?0:(b.grid||[1/0])[0],!t){for(r=-(1/0);r<(r=k[t++].getBoundingClientRect().left)&&u>t;);t--}for(v=f[u]=[],l=g?Math.min(t,u)*i-.5:d%t,m=g?u*i/t-.5:d/t|0,r=0,s=1/0,q=0;u>q;q++)n=q%t-l,o=m-(q/t|0),v[q]=p=h?Math.abs("y"===h?o:n):Math.sqrt(n*n+o*o),p>r&&(r=p),s>p&&(s=p);v.max=r-s,v.min=s,v.v=u=b.amount||b.each*(t>u?u:h?"y"===h?u/t:t:Math.max(t,u/t))||0,v.b=0>u?e-u:e}return u=(v[a]-v.min)/v.max,v.b+(c?c.getRatio(u):u)*v.v}},s=d.prototype=new b;return d.version="2.1.2",d.distribute=r,s.constructor=d,s.kill()._gc=s._forcingPlayhead=s._hasPause=!1,s.to=function(a,b,d,e){var f=d.repeat&&l.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},s.from=function(a,b,d,e){return this.add((d.repeat&&l.TweenMax||c).from(a,b,q(this,d)),e)},s.fromTo=function(a,b,d,e,f){var g=e.repeat&&l.TweenMax||c;return e=q(this,e,d),b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},s.staggerTo=function(a,b,e,f,g,i,j,k){var l,o,q=new d({onComplete:i,onCompleteParams:j,callbackScope:k,smoothChildTiming:this.smoothChildTiming}),s=r(e.stagger||f),t=e.startAt,u=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),o=0;o<a.length;o++)l=m(e),t&&(l.startAt=m(t),t.cycle&&n(l.startAt,a,o)),u&&(n(l,a,o),null!=l.duration&&(b=l.duration,delete l.duration)),q.to(a[o],b,l,s(o,a[o],a));return this.add(q,g)},s.staggerFrom=function(a,b,c,d,e,f,g,h){return c.runBackwards=!0,this.staggerTo(a,b,q(this,c),d,e,f,g,h)},s.staggerFromTo=function(a,b,c,d,e,f,g,h,i){return d.startAt=c,this.staggerTo(a,b,q(this,d,c),e,f,g,h,i)},s.call=function(a,b,d,e){return this.add(c.delayedCall(0,a,b,d),e)},s.set=function(a,b,d){return this.add(new c(a,0,q(this,b,null,!0)),d)},d.exportRoot=function(a,b){a=a||{},null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var e,f,g,h,i=new d(a),j=i._timeline;for(null==b&&(b=!0),j._remove(i,!0),i._startTime=0,i._rawPrevTime=i._time=i._totalTime=j._time,g=j._first;g;)h=g._next,b&&g instanceof c&&g.target===g.vars.onComplete||(f=g._startTime-g._delay,0>f&&(e=1),i.add(g,f)),g=h;return j.add(i,0),e&&i.totalDuration(),i},s.add=function(e,f,g,h){var j,k,l,m,n,o,p=this;if("number"!=typeof f&&(f=p._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&i(e)){for(g=g||"normal",h=h||0,j=f,k=e.length,l=0;k>l;l++)i(m=e[l])&&(m=new d({tweens:m})),p.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._startTime+m.totalDuration()/m._timeScale:"start"===g&&(m._startTime-=m.delay())),j+=h;return p._uncache(!0)}if("string"==typeof e)return p.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(p,e,f),(e._time||!e._duration&&e._initted)&&(j=(p.rawTime()-e._startTime)*e._timeScale,(!e._duration||Math.abs(Math.max(0,Math.min(e.totalDuration(),j)))-e._totalTime>1e-5)&&e.render(j,!1,!1)),(p._gc||p._time===p._duration)&&!p._paused&&p._duration<p.duration())for(n=p,o=n.rawTime()>e._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return p},s.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useFrames?a._rootFramesTimeline:a._rootTimeline;return b._startTime=(b._paused?b._pauseTime:c._time)-(b._reversed?b.totalDuration()-b._totalTime:b._totalTime)/b._timeScale,this}if(b instanceof Array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},s._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},s.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},s.insert=s.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},s.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},s.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},s.addPause=function(a,b,d,e){var f=c.delayedCall(0,o,d,e||this);return f.vars.onComplete=f.vars.onReverseComplete=b,f.data="isPause",this._hasPause=!0,this.add(f,a)},s.removeLabel=function(a){return delete this._labels[a],this},s.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},s._parseTimeOrLabel=function(b,c,d,e){var f,g;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&i(e)))for(g=e.length;--g>-1;)e[g]instanceof a&&e[g].timeline===this&&this.remove(e[g]);if(f="number"!=typeof b||c?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-f:0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=f);else{if(g=b.indexOf("="),-1===g)return null==this._labels[b]?d?this._labels[b]=f+c:c:this._labels[b]+c;c=parseInt(b.charAt(g-1)+"1",10)*Number(b.substr(g+1)),b=g>1?this._parseTimeOrLabel(b.substr(0,g-1),0,d):f}return Number(b)+c},s.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},s.stop=function(){return this.paused(!0)},s.gotoAndPlay=function(a,b){return this.play(a,b)},s.gotoAndStop=function(a,b){return this.pause(a,b)},s.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n,o=this,p=o._time,q=o._dirty?o.totalDuration():o._totalDuration,r=o._startTime,s=o._timeScale,t=o._paused;if(p!==o._time&&(a+=o._time-p),a>=q-e&&a>=0)o._totalTime=o._time=q,o._reversed||o._hasPausedChild()||(f=!0,h="onComplete",i=!!o._timeline.autoRemoveChildren,0===o._duration&&(0>=a&&a>=-e||o._rawPrevTime<0||o._rawPrevTime===e)&&o._rawPrevTime!==a&&o._first&&(i=!0,o._rawPrevTime>e&&(h="onReverseComplete"))),o._rawPrevTime=o._duration||!b||a||o._rawPrevTime===a?a:e,a=q+1e-4;else if(e>a)if(o._totalTime=o._time=0,a>-e&&(a=0),(0!==p||0===o._duration&&o._rawPrevTime!==e&&(o._rawPrevTime>0||0>a&&o._rawPrevTime>=0))&&(h="onReverseComplete",f=o._reversed),0>a)o._active=!1,o._timeline.autoRemoveChildren&&o._reversed?(i=f=!0,h="onReverseComplete"):o._rawPrevTime>=0&&o._first&&(i=!0),o._rawPrevTime=a;else{if(o._rawPrevTime=o._duration||!b||a||o._rawPrevTime===a?a:e,0===a&&f)for(d=o._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,o._initted||(i=!0)}else{if(o._hasPause&&!o._forcingPlayhead&&!b){if(a>=p)for(d=o._first;d&&d._startTime<=a&&!l;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===o._rawPrevTime||(l=d),d=d._next;else for(d=o._last;d&&d._startTime>=a&&!l;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(l=d),d=d._prev;l&&(o._time=o._totalTime=a=l._startTime,n=o._startTime+a/o._timeScale)}o._totalTime=o._time=o._rawPrevTime=a}if(o._time!==p&&o._first||c||i||l){if(o._initted||(o._initted=!0),o._active||!o._paused&&o._time!==p&&a>0&&(o._active=!0),0===p&&o.vars.onStart&&(0===o._time&&o._duration||b||o._callback("onStart")),m=o._time,m>=p)for(d=o._first;d&&(g=d._next,m===o._time&&(!o._paused||t));)(d._active||d._startTime<=m&&!d._paused&&!d._gc)&&(l===d&&(o.pause(),o._pauseTime=n),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=o._last;d&&(g=d._prev,m===o._time&&(!o._paused||t));){if(d._active||d._startTime<=p&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endTime()>o._time;)l.render(l._reversed?l.totalDuration()-(a-l._startTime)*l._timeScale:(a-l._startTime)*l._timeScale,b,c),l=l._prev;l=null,o.pause(),o._pauseTime=n}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=g}o._onUpdate&&(b||(j.length&&k(),o._callback("onUpdate"))),h&&(o._gc||(r===o._startTime||s!==o._timeScale)&&(0===o._time||q>=o.totalDuration())&&(f&&(j.length&&k(),o._timeline.autoRemoveChildren&&o._enabled(!1,!1),o._active=!1),!b&&o.vars[h]&&o._callback(h)))}},s._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},s.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime<e||(g instanceof c?b!==!1&&(f[h++]=g):(d!==!1&&(f[h++]=g),a!==!1&&(f=f.concat(g.getChildren(!0,b,d)),h=f.length))),g=g._next;return f},s.getTweensOf=function(a,b){var d,e,f=this._gc,g=[],h=0;for(f&&this._enabled(!0,!0),d=c.getTweensOf(a),e=d.length;--e>-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},s.recent=function(){return this._recent},s._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},s.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},s._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},s.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},s.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},s._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},s.totalTime=function(b,c,d){this._forcingPlayhead=!0;var e=a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},s.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},s.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this,f=e._last,g=999999999999;f;)b=f._prev,f._dirty&&f.totalDuration(),f._startTime>g&&e._sortChildren&&!f._paused&&!e._calculatingDuration?(e._calculatingDuration=1,e.add(f,f._startTime-f._delay),e._calculatingDuration=0):g=f._startTime,f._startTime<0&&!f._paused&&(d-=f._startTime,e._timeline.smoothChildTiming&&(e._startTime+=f._startTime/e._timeScale,e._time-=f._startTime,e._totalTime-=f._startTime,e._rawPrevTime-=f._startTime),e.shiftChildren(-f._startTime,!1,-9999999999),g=0),c=f._startTime+f._totalDuration/f._timeScale,c>d&&(d=c),f=b;e._duration=e._totalDuration=d,e._dirty=!1}return this._totalDuration}return a&&this.totalDuration()?this.timeScale(this._totalDuration/a):this},s.paused=function(b){if(b===!1&&this._paused)for(var c=this._first;c;)c._startTime===this._time&&"isPause"===c.data&&(c._rawPrevTime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},s.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},s.rawTime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(a)-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},e=1e-8,f=b._internals,g=f.lazyTweens,h=f.lazyRender,i=_gsScope._gsDefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="2.1.2",k.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},k.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},k.removePause=function(b){return this.removeCallback(a._internals.pauseCallback,b)},k.tweenTo=function(a,c){c=c||{};var d,e,f,g={ease:j,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},h=c.repeat&&i.TweenMax||b;for(e in c)g[e]=c[e];return g.time=this._parseTimeOrLabel(a),d=Math.abs(Number(g.time)-this._time)/this._timeScale||.001,f=new h(this,d,g),g.onStart=function(){f.target.paused(!0),f.vars.time===f.target.time()||d!==f.duration()||f.isFromTo||f.duration(Math.abs(f.vars.time-f.target.time())/f.target._timeScale).render(f.time(),!0,!0),c.onStart&&c.onStart.apply(c.onStartScope||c.callbackScope||f,c.onStartParams||[])},f},k.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],callbackScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.isFromTo=1,d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o,p=this,q=p._time,r=p._dirty?p.totalDuration():p._totalDuration,s=p._duration,t=p._totalTime,u=p._startTime,v=p._timeScale,w=p._rawPrevTime,x=p._paused,y=p._cycle;if(q!==p._time&&(a+=p._time-q),a>=r-e&&a>=0)p._locked||(p._totalTime=r,p._cycle=p._repeat),p._reversed||p._hasPausedChild()||(f=!0,j="onComplete",k=!!p._timeline.autoRemoveChildren,0===p._duration&&(0>=a&&a>=-e||0>w||w===e)&&w!==a&&p._first&&(k=!0,w>e&&(j="onReverseComplete"))),p._rawPrevTime=p._duration||!b||a||p._rawPrevTime===a?a:e,p._yoyo&&1&p._cycle?p._time=a=0:(p._time=s,a=s+1e-4);else if(e>a)if(p._locked||(p._totalTime=p._cycle=0),p._time=0,a>-e&&(a=0),(0!==q||0===s&&w!==e&&(w>0||0>a&&w>=0)&&!p._locked)&&(j="onReverseComplete",f=p._reversed),0>a)p._active=!1,p._timeline.autoRemoveChildren&&p._reversed?(k=f=!0,j="onReverseComplete"):w>=0&&p._first&&(k=!0),p._rawPrevTime=a;else{if(p._rawPrevTime=s||!b||a||p._rawPrevTime===a?a:e,0===a&&f)for(d=p._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,p._initted||(k=!0)}else if(0===s&&0>w&&(k=!0),p._time=p._rawPrevTime=a,p._locked||(p._totalTime=a,0!==p._repeat&&(l=s+p._repeatDelay,p._cycle=p._totalTime/l>>0,p._cycle&&p._cycle===p._totalTime/l&&a>=t&&p._cycle--,p._time=p._totalTime-p._cycle*l,p._yoyo&&1&p._cycle&&(p._time=s-p._time),p._time>s?(p._time=s,a=s+1e-4):p._time<0?p._time=a=0:a=p._time)),p._hasPause&&!p._forcingPlayhead&&!b){if(a=p._time,a>=q||p._repeat&&y!==p._cycle)for(d=p._first;d&&d._startTime<=a&&!m;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===p._rawPrevTime||(m=d),d=d._next;else for(d=p._last;d&&d._startTime>=a&&!m;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(m=d),d=d._prev;m&&(o=p._startTime+m._startTime/p._timeScale,m._startTime<s&&(p._time=p._rawPrevTime=a=m._startTime,p._totalTime=a+p._cycle*(p._totalDuration+p._repeatDelay)))}if(p._cycle!==y&&!p._locked){var z=p._yoyo&&0!==(1&y),A=z===(p._yoyo&&0!==(1&p._cycle)),B=p._totalTime,C=p._cycle,D=p._rawPrevTime,E=p._time;if(p._totalTime=y*s,p._cycle<y?z=!z:p._totalTime+=s,p._time=q,p._rawPrevTime=0===s?w-1e-4:w,p._cycle=y,p._locked=!0,q=z?0:s,p.render(q,b,0===s),b||p._gc||p.vars.onRepeat&&(p._cycle=C,p._locked=!1,p._callback("onRepeat")),q!==p._time)return;if(A&&(p._cycle=y,p._locked=!0,q=z?s+1e-4:-1e-4,p.render(q,!0,!1)),p._locked=!1,p._paused&&!x)return;p._time=E,p._totalTime=B,p._cycle=C,p._rawPrevTime=D}if(!(p._time!==q&&p._first||c||k||m))return void(t!==p._totalTime&&p._onUpdate&&(b||p._callback("onUpdate")));if(p._initted||(p._initted=!0),p._active||!p._paused&&p._totalTime!==t&&a>0&&(p._active=!0),0===t&&p.vars.onStart&&(0===p._totalTime&&p._totalDuration||b||p._callback("onStart")),n=p._time,n>=q)for(d=p._first;d&&(i=d._next,n===p._time&&(!p._paused||x));)(d._active||d._startTime<=p._time&&!d._paused&&!d._gc)&&(m===d&&(p.pause(),p._pauseTime=o),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=i;else for(d=p._last;d&&(i=d._prev,n===p._time&&(!p._paused||x));){if(d._active||d._startTime<=q&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endTime()>p._time;)m.render(m._reversed?m.totalDuration()-(a-m._startTime)*m._timeScale:(a-m._startTime)*m._timeScale,b,c),m=m._prev;m=null,p.pause(),p._pauseTime=o}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=i}p._onUpdate&&(b||(g.length&&h(),p._callback("onUpdate"))),j&&(p._locked||p._gc||(u===p._startTime||v!==p._timeScale)&&(0===p._time||r>=p.totalDuration())&&(f&&(g.length&&h(),p._timeline.autoRemoveChildren&&p._enabled(!1,!1),p._active=!1),!b&&p.vars[j]&&p._callback(j)))},k.getActive=function(a,b,c){var d,e,f=[],g=this.getChildren(a||null==a,b||null==a,!!c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},k.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].time<a)return b[c].name;return null},k.getLabelsArray=function(){var a,b=[],c=0;for(a in this._labels)b[c++]={time:this._labels[a],name:a};return b.sort(function(a,b){return a.time-b.time}),b},k.invalidate=function(){return this._locked=!1,a.prototype.invalidate.call(this)},k.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()||0},k.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()||0},k.totalDuration=function(b){return arguments.length?-1!==this._repeat&&b?this.timeScale(this.totalDuration()/b):this:(this._dirty&&(a.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},k.time=function(a,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var c=this._duration,d=this._cycle,e=d*(c+this._repeatDelay);return a>c&&(a=c),this.totalTime(this._yoyo&&1&d?c-a+e:this._repeat?a+e:a,b)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+e)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=_gsScope._gsDefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=f[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[0][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n]);
}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length<q+1)throw"invalid Bezier data";for(m in a[0])s.push(m);for(j=s.length;--j>-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autoRotate||c.vars.orientToBezier;this._autoRotate=n?n instanceof Array?n:[["x","y","rotation",n===!0?0:Number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):m(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=o(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(n=this._autoRotate)for(this._initialRotations=[],n[0]instanceof Array||(this._autoRotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialRotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteProps.push(d)}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segCount,n=this._func,o=this._target,p=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b<this._l1&&e>0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&b<this._l1?this._l1=0:e++,this._l2=k[e],this._li=e,this._curSeg=l=this._segments[e],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(c=e,b-=this._l1,e=this._si,b>this._s2&&e<l.length-1){for(j=l.length-1;j>e&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b<this._s1&&e>0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&b<this._s1?this._s1=0:e++,this._s2=l[e],this._si=e}h=(e+(b-this._s1)/(this._s2-this._s1))*this._prec||0}else c=0>b?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autoRotate){var q,r,s,t,u,v,w,x=this._autoRotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?Math.atan2(u-s,t-r)*w+v:this._initialRotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierThrough=l,p.cubicToQuadratic=i,p._autoCSS=!0,p.quadraticToCubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssRegister=function(){var a=f.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,g._overwriteProps.push("rotation")),i._onInitTween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteProps,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autoRotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="2.1.0",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,B=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(a,b){return b.toUpperCase()},F=/(?:Left|Right|Width)/i,G=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,J=/[\s,\(]/i,K=Math.PI/180,L=180/Math.PI,M={},N={style:{}},O=_gsScope.document||{createElement:function(){return N}},P=function(a,b){return b&&O.createElementNS?O.createElementNS(b,a):O.createElement(a)},Q=P("div"),R=P("img"),S=g._internals={_specialProps:i},T=(_gsScope.navigator||{}).userAgent||"",U=function(){var a=T.indexOf("Android"),b=P("a");return m=-1!==T.indexOf("Safari")&&-1===T.indexOf("Chrome")&&(-1===a||parseFloat(T.substr(a+8,2))>3),o=m&&parseFloat(T.substr(T.indexOf("Version/")+8,2))<6,n=-1!==T.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),V=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(a){_gsScope.console&&console.log(a)},X="",Y="",Z=function(a,b){b=b||Q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Y=3===d?"ms":c[d],X="-"+Y.toLowerCase()+"-",Y+a):null},$="undefined"!=typeof window?window:O.defaultView||{getComputedStyle:function(){}},_=function(a){return $.getComputedStyle(a)},aa=g.getStyle=function(a,b,c,d,e){var f;return U||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||_(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):V(a)},ba=S.convertToPixels=function(a,c,d,e,f){if("px"===e||!e&&"lineHeight"!==c)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=Q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"lineHeight"!==c||e)if("%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+aa(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||O.body,-1!==aa(l,"display").indexOf("flex")&&(m.position="absolute"),i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(Q),h=parseFloat(Q[k?"offsetWidth":"offsetHeight"]),l.removeChild(Q),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=ba(a,c,d,e,!0))}else i=_(a).lineHeight,a.style.lineHeight=d,h=parseFloat(_(a).lineHeight),a.style.lineHeight=i;return o&&(h/=100),n?-h:h},ca=S.calculateOffset=function(a,b,c){if("absolute"!==aa(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=aa(a,"margin"+d,c);return a["offset"+d]-(ba(a,b,parseFloat(e),e.replace(w,""))||0)},da=function(a,b){var c,d,e,f={};if(b=b||_(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Ea===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Da===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return U||(f.opacity=V(a)),d=Sa(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Ga&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},ea=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ca(a,g),void 0!==j[g]&&(h=new ta(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},fa={width:["Left","Right"],height:["Top","Bottom"]},ga=["marginLeft","marginRight","marginTop","marginBottom"],ha=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||_(a))[b]||0;if(a.getCTM&&Pa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=fa[b],f=e.length;for(c=c||_(a,null);--f>-1;)d-=parseFloat(aa(a,"padding"+e[f],c,!0))||0,d-=parseFloat(aa(a,"border"+e[f]+"Width",c,!0))||0;return d},ia=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c<d.length;c++)a.push(ia(d[c]));return a.join(",")}return null==f?f="center"===e?"50%":"0":"center"===f&&(f="50%"),("center"===e||isNaN(parseFloat(e))&&-1===(e+"").indexOf("="))&&(e="50%"),a=e+" "+f+(d.length>2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ka=function(a,b){"function"==typeof a&&(a=a(r,q));var c="string"==typeof a&&"="===a.charAt(1);return"string"==typeof a&&"v"===a.charAt(a.length-2)&&(a=(c?a.substr(0,2):0)+window["inner"+("vh"===a.substr(-2)?"Height":"Width")]*(parseFloat(c?a.substr(2):a)/100)),null==a?b:c?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},la=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},ma={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},na=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},oa=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),ma[a])c=ma[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(c[3])),c[0]=na(g+1/3,d,e),c[1]=na(g,d,e),c[2]=na(g-1/3,d,e);else c=a.match(s)||ma.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=ma.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},pa=function(a,b){var c,d,e,f=a.match(qa)||[],g=0,h="";if(!f.length)return a;for(c=0;c<f.length;c++)d=f[c],e=a.substr(g,a.indexOf(d,g)-g),g+=e.length+d.length,d=oa(d,b),3===d.length&&d.push(1),h+=e+(b?"hsla("+d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:"rgba("+d.join(","))+")";return h+a.substr(g)},qa="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(j in ma)qa+="|"+j+"\\b";qa=new RegExp(qa+")","gi"),g.colorStringFilter=function(a){var b,c=a[0]+" "+a[1];qa.test(c)&&(b=-1!==c.indexOf("hsl(")||-1!==c.indexOf("hsla("),a[0]=pa(a[0],b),a[1]=pa(a[1],b)),qa.lastIndex=0},b.defaultStringFilter||(b.defaultStringFilter=g.colorStringFilter);var ra=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(qa)||[""])[0]:"",g=a.split(f).join("").match(u)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;n<o.length;n++)o[n]=e(o[n]);return o.join(",")}if(b=(a.match(qa)||[f])[0],m=a.split(b).join("").match(u)||[],n=m.length,k>n--)for(;++n<k;)m[n]=c?m[(n-1)/2|0]:g[n];return h+m.join(j)+j+b+i+(-1!==a.indexOf("inset")?" inset":"")}:function(a){var b,f,m;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(f=a.replace(I,"|").split("|"),m=0;m<f.length;m++)f[m]=e(f[m]);return f.join(",")}if(b=a.match(u)||[],m=b.length,k>m--)for(;++m<k;)b[m]=c?b[(m-1)/2|0]:g[m];return h+b.join(j)+i}:function(a){return a}},sa=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var i,j=(c+"").split(" ");for(h={},i=0;4>i;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},ta=(S._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=i.r(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod.call(this._tween,h.rotation,this.t,this._tween):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d<c.l;d++)e+=c["xn"+d]+c["xs"+(d+1)];c[f]=e}}else c[f]=c.s+c.xs0;i=i._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),ua=(S._parseToProxy=function(a,b,c,d,e,f){var g,h,i,j,k,l=d,m={},n={},o=c._transform,p=M;for(c._transform=null,M=b,d=k=c.parse(a,b,d,e),M=p,f&&(c._transform=o,l&&(l._prev=null,l._prev&&(l._prev._next=null)));d&&d!==l;){if(d.type<=1&&(h=d.p,n[h]=d.s+d.c,m[h]=d.s,f||(j=new ta(d,"s",h,j,d.r),d.c=0),1===d.type))for(g=d.l;--g>0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new ta(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},S.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ua||f.push(this.n),this.r=j?"function"==typeof j?j:Math.round:j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),va=function(a,b,c,d,e,f){var g=new ua(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},wa=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ua(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&qa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(-1!==(d+c).indexOf("rgb")||-1!==(d+c).indexOf("hsl")?(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" ")):(D=D.join(" ").split(",").join(", ").split(" "),E=E.join(" ").split(",").join(", ").split(" ")),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,qa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m]+"",x=parseFloat(p),x||0===x)h.appendXtra("",x,ja(u,x),u.replace(t,""),G&&-1!==u.indexOf("px")?Math.round:!1,!0);else if(e&&qa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&U,z=u,p=oa(p,C),u=oa(u,C),y=p.length+u.length>6,y&&!U&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(U||(y=!1),C?h.appendXtra(z.substr(0,z.indexOf("hsl"))+(y?"hsla(":"hsl("),p[0],ja(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ja(u[1],p[1]),"%,",!1).appendXtra("",p[2],ja(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(z.substr(0,z.indexOf("rgb"))+(y?"rgba(":"rgb("),p[0],u[0]-p[0],",",Math.round,!0).appendXtra("",p[1],u[1]-p[1],",",Math.round).appendXtra("",p[2],u[2]-p[2],y?",":B,Math.round),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),qa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n<v.length;n++)A=v[n],z=p.indexOf(A,o),h.appendXtra(p.substr(o,z-o),Number(A),ja(w[n],A),"",G&&"px"===p.substr(z+A.length,2)?Math.round:!1,0===n),o=z+A.length;h["xs"+h.l]+=p.substr(o)}else h["xs"+h.l]+=h.l||h["xs"+h.l]?" "+u:u;if(-1!==d.indexOf("=")&&h.data){for(B=h.xs0+h.data.s,m=1;m<h.l;m++)B+=h["xs"+m]+h.data["xn"+m];h.e=B+h["xs"+m]}return h.l||(h.type=-1,h.xs0=h.e),h.xfirst||h},xa=9;for(j=ua.prototype,j.l=j.pr=0;--xa>0;)j["xn"+xa]=0,j["xs"+xa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ua(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var ya=function(a,b){b=b||{},this.p=b.prefix?Z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||ra(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.allowFunc=b.allowFunc,this.pr=b.priority||0},za=S._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;d<f.length;d++)b.prefix=0===d&&b.prefix,b.defaultValue=c[d]||g,e=new ya(f[d],b)},Aa=S._registerPluginProp=function(a){if(!i[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";za(a,{parser:function(a,c,d,e,f,g,j){var k=h.com.greensock.plugins[b];return k?(k._cssRegister(),i[d].parse(a,c,d,e,f,g,j)):(W("Error: "+b+" js file not loaded."),f)}})}};j=ya.prototype,j.parseComplex=function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this.keyword;if(this.multi&&(I.test(c)||I.test(b)?(h=b.replace(I,"|").split("|"),i=c.replace(I,"|").split("|")):m&&(h=[b],i=[c])),i){for(j=i.length>h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return wa(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(aa(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){za(a,{parser:function(a,d,e,f,g,h,i){var j=new ua(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Ba,Ca="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Da=Z("transform"),Ea=X+"transform",Fa=Z("transformOrigin"),Ga=null!==Z("perspective"),Ha=S.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Ga?g.defaultForce3D||"auto":!1},Ia=_gsScope.SVGElement,Ja=function(a,b,c){var d,e=O.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ka=O.documentElement||{},La=function(){var a,b,c,d=p||/Android/i.test(T)&&!_gsScope.chrome;return O.createElementNS&&!d&&(a=Ja("svg",Ka),b=Ja("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Fa]="50% 50%",b.style[Da]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Ga),Ka.removeChild(a)),d}(),Ma=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Ra(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ia(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Qa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Na=function(a){var b,c=P("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(Ka.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Na}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),Ka.removeChild(c),this.style.cssText=f,b},Oa=function(a){try{return a.getBBox()}catch(b){return Na.call(a,!0)}},Pa=function(a){return!(!Ia||!a.getCTM||a.parentNode&&!a.ownerSVGElement||!Oa(a))},Qa=[1,0,0,1,0,0],Ra=function(a,b){var c,d,e,f,g,h,i,j=a._gsTransform||new Ha,k=1e5,l=a.style;if(Da?d=aa(a,Ea,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),j.x||0,j.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,Da&&c&&!a.offsetParent&&(f=l.display,l.display="block",i=a.parentNode,i&&a.offsetParent||(g=1,h=a.nextSibling,Ka.appendChild(a)),d=aa(a,Ea,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?l.display=f:Wa(l,"display"),g&&(h?i.insertBefore(a,h):i?i.appendChild(a):Ka.removeChild(a))),(j.svg||a.getCTM&&Pa(a))&&(c&&-1!==(l[Da]+"").indexOf("matrix")&&(d=l[Da],c=0),e=a.getAttribute("transform"),c&&e&&(e=a.transform.baseVal.consolidate().matrix,d="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")",c=0)),c)return Qa;for(e=(d||"").match(s)||[],xa=e.length;--xa>-1;)f=Number(e[xa]),e[xa]=(g=f-(f|=0))?(g*k+(0>g?-.5:.5)|0)/k+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Sa=S.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ha:new Ha,n=m.scaleX<0,o=2e-5,p=1e5,q=Ga?parseFloat(aa(a,Fa,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Pa(a)),m.svg&&(Ma(a,aa(a,Fa,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Ba=g.useSVGTransformAttr||La),f=Ra(a),f!==Qa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(N),w=Math.sin(N),s=x*v+y*w,t=B*v+C*w,u=F*v+G*w,y=y*v-x*w,C=C*v-B*w,G=G*v-F*w,x=s,B=t,F=u),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),N=Math.atan2(B,C),m.scaleX=(Math.sqrt(x*x+y*y+z*z)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+D*D)*p+.5|0)/p,m.scaleZ=(Math.sqrt(F*F+G*G+H*H)*p+.5|0)/p,x/=m.scaleX,B/=m.scaleY,y/=m.scaleX,C/=m.scaleY,Math.abs(N)>o?(m.skewX=N*L,B=0,"simple"!==m.skewType&&(m.scaleY*=1/Math.cos(N))):m.skewX=0,m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Ga||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Ga&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180)),m.zOrigin=q;for(h in m)m[h]<o&&m[h]>-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Ba&&a.style[Da]?b.delayedCall(.001,function(){Wa(a.style,Da)}):!Ba&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Ta=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),xa=0;4>xa;xa++)z=ga[xa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):ba(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>xa?-d.ieOffsetX:-d.ieOffsetY:2>xa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===xa||2===xa?1:B)))+"px"}}},Ua=S.set3DTransformRatio=S.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Ba&&L||!Ga)return void(B||P||L?(B*=K,x=P*K,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*K),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b)),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Ba&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",L&&Ba?this.t.setAttribute("transform","matrix("+u):A[Da]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Da]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=K,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*K,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*K),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||L))return void(A[Da]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*K,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*K,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||L)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Da]=u};j=Ha.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,
j.scaleX=j.scaleY=j.scaleZ=1,za("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j=i.scale&&"function"==typeof i.scale?i.scale:0;j&&(i.scale=j(r,a));var k,l,m,n,o,p,s,t,u,v=a._gsTransform,w=a.style,x=1e-6,y=Ca.length,z=i,A={},B="transformOrigin",C=Sa(a,e,!0,z.parseTransform),D=z.transform&&("function"==typeof z.transform?z.transform(r,q):z.transform);if(C.skewType=z.skewType||C.skewType||g.defaultSkewType,d._transform=C,"rotationZ"in z&&(z.rotation=z.rotationZ),D&&"string"==typeof D&&Da)l=Q.style,l[Da]=D,l.display="block",l.position="absolute",-1!==D.indexOf("%")&&(l.width=aa(a,"width"),l.height=aa(a,"height")),O.body.appendChild(Q),k=Sa(Q,null,!1),"simple"===C.skewType&&(k.scaleY*=Math.cos(k.skewX*K)),C.svg&&(p=C.xOrigin,s=C.yOrigin,k.x-=C.xOffset,k.y-=C.yOffset,(z.transformOrigin||z.svgOrigin)&&(D={},Ma(a,ia(z.transformOrigin),D,z.svgOrigin,z.smoothOrigin,!0),p=D.xOrigin,s=D.yOrigin,k.x-=D.xOffset-C.xOffset,k.y-=D.yOffset-C.yOffset),(p||s)&&(t=Ra(Q,!0),k.x-=p-(p*t[0]+s*t[2]),k.y-=s-(p*t[1]+s*t[3]))),O.body.removeChild(Q),k.perspective||(k.perspective=C.perspective),null!=z.xPercent&&(k.xPercent=ka(z.xPercent,C.xPercent)),null!=z.yPercent&&(k.yPercent=ka(z.yPercent,C.yPercent));else if("object"==typeof z){if(k={scaleX:ka(null!=z.scaleX?z.scaleX:z.scale,C.scaleX),scaleY:ka(null!=z.scaleY?z.scaleY:z.scale,C.scaleY),scaleZ:ka(z.scaleZ,C.scaleZ),x:ka(z.x,C.x),y:ka(z.y,C.y),z:ka(z.z,C.z),xPercent:ka(z.xPercent,C.xPercent),yPercent:ka(z.yPercent,C.yPercent),perspective:ka(z.transformPerspective,C.perspective)},o=z.directionalRotation,null!=o)if("object"==typeof o)for(l in o)z[l]=o[l];else z.rotation=o;"string"==typeof z.x&&-1!==z.x.indexOf("%")&&(k.x=0,k.xPercent=ka(z.x,C.xPercent)),"string"==typeof z.y&&-1!==z.y.indexOf("%")&&(k.y=0,k.yPercent=ka(z.y,C.yPercent)),k.rotation=la("rotation"in z?z.rotation:"shortRotation"in z?z.shortRotation+"_short":C.rotation,C.rotation,"rotation",A),Ga&&(k.rotationX=la("rotationX"in z?z.rotationX:"shortRotationX"in z?z.shortRotationX+"_short":C.rotationX||0,C.rotationX,"rotationX",A),k.rotationY=la("rotationY"in z?z.rotationY:"shortRotationY"in z?z.shortRotationY+"_short":C.rotationY||0,C.rotationY,"rotationY",A)),k.skewX=la(z.skewX,C.skewX),k.skewY=la(z.skewY,C.skewY)}for(Ga&&null!=z.force3D&&(C.force3D=z.force3D,n=!0),m=C.force3D||C.z||C.rotationX||C.rotationY||k.z||k.rotationX||k.rotationY||k.perspective,m||null==z.scale||(k.scaleZ=1);--y>-1;)u=Ca[y],D=k[u]-C[u],(D>x||-x>D||null!=z[u]||null!=M[u])&&(n=!0,f=new ua(C,u,C[u],D,f),u in A&&(f.e=A[u]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return D="function"==typeof z.transformOrigin?z.transformOrigin(r,q):z.transformOrigin,C.svg&&(D||z.svgOrigin)&&(p=C.xOffset,s=C.yOffset,Ma(a,ia(D),k,z.svgOrigin,z.smoothOrigin),f=va(C,"xOrigin",(v?C:k).xOrigin,k.xOrigin,f,B),f=va(C,"yOrigin",(v?C:k).yOrigin,k.yOrigin,f,B),(p!==C.xOffset||s!==C.yOffset)&&(f=va(C,"xOffset",v?p:C.xOffset,C.xOffset,f,B),f=va(C,"yOffset",v?s:C.yOffset,C.yOffset,f,B)),D="0px 0px"),(D||Ga&&m&&C.zOrigin)&&(Da?(n=!0,u=Fa,D||(D=(aa(a,u,e,!1,"50% 50%")+"").split(" "),D=D[0]+" "+D[1]+" "+C.zOrigin+"px"),D+="",f=new ua(w,u,0,0,f,-1,B),f.b=w[u],f.plugin=h,Ga?(l=C.zOrigin,D=D.split(" "),C.zOrigin=(D.length>2?parseFloat(D[2]):l)||0,f.xs0=f.e=D[0]+" "+(D[1]||"50%")+" 0px",f=new ua(C,"zOrigin",0,0,f,-1,f.n),f.b=l,f.xs0=f.e=C.zOrigin):f.xs0=f.e=D):ia(D+"",C)),n&&(d._transformType=C.svg&&Ba||!m&&3!==this._transformType?2:3),j&&(i.scale=j),f},allowFunc:!0,prefix:!0}),za("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),za("clipPath",{defaultValue:"inset(0px)",prefix:!0,multi:!0,formatter:ra("inset(0px 0px 0px 0px)",!1,!0)}),za("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;j<y.length;j++)this.p.indexOf("border")&&(y[j]=Z(y[j])),m=l=aa(a,y[j],e,!1,"0px"),-1!==m.indexOf(" ")&&(l=m.split(" "),m=l[0],l=l[1]),n=k=i[j],o=parseFloat(m),t=m.substr((o+"").length),u="="===n.charAt(1),u?(p=parseInt(n.charAt(0)+"1",10),n=n.substr(2),p*=parseFloat(n),s=n.substr((p+"").length-(0>p?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=ba(a,"borderLeft",o,t),w=ba(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=ba(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=wa(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:ra("0px 0px 0px 0px",!1,!0)}),za("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return wa(a.style,c,this.format(aa(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:ra("0px 0px",!1,!0)}),za("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||_(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=aa(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),R.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-R.width:a.offsetHeight-R.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ia}),za("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="","co"===a.substr(0,2)?a:ia(-1===a.indexOf(" ")?a+" "+a:a)}}),za("perspective",{defaultValue:"0px",prefix:!0}),za("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),za("transformStyle",{prefix:!0}),za("backfaceVisibility",{prefix:!0}),za("userSelect",{prefix:!0}),za("margin",{parser:sa("marginTop,marginRight,marginBottom,marginLeft")}),za("padding",{parser:sa("paddingTop,paddingRight,paddingBottom,paddingLeft")}),za("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(aa(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),za("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),za("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),za("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=aa(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/ba(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+aa(a,"borderTopStyle",e,!1,"solid")+" "+aa(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(qa)||["#000"])[0]}}),za("borderWidth",{parser:sa("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),za("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ua(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Va=function(a){var b,c=this.t,d=c.filter||aa(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!aa(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};za("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(aa(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===aa(a,"visibility",e)&&0!==b&&(h=0),U?f=new ua(i,"opacity",h,b-h,f):(f=new ua(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Va),j&&(f=new ua(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Wa=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Xa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Wa(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};za("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ua(a,d,0,0,g,2),g.setRatio=Xa,g.pr=-11,c=!0,g.b=o,k=da(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=ea(a,k,da(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Ya=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Fa:i[c].p),Wa(g,c);e&&(Wa(g,Da),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(za("clearProps",{parser:function(a,b,d,e,f){return f=new ua(a,d,0,0,f,2),f.setRatio=Ya,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),xa=j.length;xa--;)Aa(j[xa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=_(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=aa(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=da(a,e),A.cssText=t+";"+b,n=ea(a,n,da(a)).difs,!U&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Da?m&&(l=!0,""===A.zIndex&&(w=aa(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new ua(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Da?Ua:Ta,x.data=this._transform||Sa(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b){if(n=b[g],h=i[g],"function"!=typeof n||h&&h.allowFunc||(n=n(r,q)),h)c=h.parse(a,n,g,this,c,f,b);else{if("--"===g.substr(0,2)){this._tween._propLookup[g]=this._addTween.call(this._tween,a.style,"setProperty",_(a).getPropertyValue(g)+"",n+"",g,!1,g);continue}m=aa(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=oa(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=wa(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=wa(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ha(a,g,e),o="px"):"left"===g||"top"===g?(j=ca(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&(""!==p||"lineHeight"===g)&&(l||0===l)&&j&&(j=ba(a,g,j,o),"%"===p?(j/=ba(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=ba(a,g,1,p):"px"!==p&&(l=ba(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ua(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):W("invalid "+g+" tween value: "+b[g]):(c=new ua(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))}f&&c&&!c.plugin&&(c.plugin=f)}return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=e.r(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next;else for(;e;){if(2!==e.type)if(e.r&&-1!==e.type)if(b=e.r(e.s+e.c),e.type){if(1===e.type){for(d=e.l,c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}}else e.t[e.p]=b+e.xs0;else e.t[e.p]=e.e;else e.setRatio(a);e=e._next}},j._enableTransforms=function(a){this._transform=this._transform||Sa(this._target,e,!0),this._transformType=this._transform.svg&&Ba||!a&&3!==this._transformType?2:3};var Za=function(a){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};j._addLazySet=function(a,b,c){var d=this._firstPT=new ua(a,b,0,0,this._firstPT,2);d.e=c,d.setRatio=Za,d.data=this},j._linkCSSP=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next,d=!0),c?c._next=a:d||null!==this._firstPT||(this._firstPT=a),a._next=b,a._prev=c),a},j._mod=function(a){for(var b=this._firstPT;b;)"function"==typeof a[b.p]&&(b.r=a[b.p]),b=b._next},j._kill=function(b){var c,d,e,f=b;if(b.autoAlpha||b.alpha){f={};for(d in b)f[d]=b[d];f.opacity=1,f.autoAlpha&&(f.visibility=1)}for(b.className&&(c=this._classNamePT)&&(e=c.xfirst,e&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=c._next),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._classNamePT=null),c=this._firstPT;c;)c.plugin&&c.plugin!==d&&c.plugin._kill&&(c.plugin._kill(b),d=c.plugin),c=c._next;return a.prototype._kill.call(this,f)};var $a=function(a,b,c){var d,e,f,g;if(a.slice)for(e=a.length;--e>-1;)$a(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(da(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||$a(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,$a(a,k,m),i.render(c,!0,!0),$a(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=ea(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){var b=1>a?Math.pow(10,(a+"").length-2):1;return function(c){return(Math.round(c/a)*a*b|0)/b}},c=function(a,b){for(;a;)a.f||a.blob||(a.m=b||Math.round),a=a._next},d=a.prototype;d._onInitAllProps=function(){var a,d,e,f,g=this._tween,h=g.vars.roundProps,i={},j=g._propLookup.roundProps;if("object"!=typeof h||h.push)for("string"==typeof h&&(h=h.split(",")),e=h.length;--e>-1;)i[h[e]]=Math.round;else for(f in h)i[f]=b(h[f]);for(f in i)for(a=g._firstPT;a;)d=a._next,a.pg?a.t._mod(i):a.n===f&&(2===a.f&&a.t?c(a.t._firstPT,i[f]):(this._add(a.t,f,a.s,a.c,i[f]),d&&(d._prev=a._prev),a._prev?a._prev._next=d:g._firstPT===a&&(g._firstPT=d),a._next=a._prev=null,g._propLookup[f]=j)),a=d;return!1},d._add=function(a,b,c,d,e){this._addTween(a,b,c,c+d,b,e||Math.round),this._overwriteProps.push(b)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setAttribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addTween(a,"setAttribute",a.getAttribute(e)+"",f+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useRadians===!0?2*Math.PI:360,l=1e-6;for(e in b)"useRadians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parseFloat("function"!=typeof a[e]?a[e]:a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charAt(1)?g+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexOf("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addTween(a,e,g,g+i,e),this._overwriteProps.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e,f=_gsScope.GreenSockGlobals||_gsScope,g=f.com.greensock,h=2*Math.PI,i=Math.PI/2,j=g._class,k=function(b,c){var d=j("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},l=a.register||function(){},m=function(a,b,c,d,e){var f=j("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return l(f,a),f},n=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},o=function(b,c){var d=j("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},p=m("Back",o("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),o("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),o("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),q=j("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),r=q.prototype=new a;return r.constructor=q,r.getRatio=function(a){var b=a+(.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1===a?0:1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},q.ease=new q(.7,.7),r.config=q.config=function(a,b,c){return new q(a,b,c)},b=j("easing.SteppedEase",function(a,b){a=a||1,this._p1=1/a,this._p2=a+(b?0:1),this._p3=b?1:0},!0),r=b.prototype=new a,r.constructor=b,r.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),((this._p2*a|0)+this._p3)*this._p1},r.config=b.config=function(a,c){return new b(a,c)},c=j("easing.ExpoScaleEase",function(a,b,c){this._p1=Math.log(b/a),this._p2=b-a,this._p3=a,this._ease=c},!0),r=c.prototype=new a,r.constructor=c,r.getRatio=function(a){return this._ease&&(a=this._ease.getRatio(a)),(this._p3*Math.exp(this._p1*a)-this._p3)/this._p2},r.config=c.config=function(a,b,d){return new c(a,b,d)},d=j("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),m=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--m>-1;)c=o?Math.random():1/l*m,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:m%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new n(1,1,null),m=l;--m>-1;)g=j[m],h=new n(g.x,g.y,h);this._prev=new n(0,0,0!==h.t?h:h.next)},!0),r=d.prototype=new a,r.constructor=d,r.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},r.config=function(a){return new d(a)},d.ease=new d,m("Bounce",k("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),k("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),k("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),m("Circ",k("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),k("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),k("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),e=function(b,c,d){var e=j("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},m("Elastic",e("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),e("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),e("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),m("Expo",k("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),k("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),k("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),m("Sine",k("SineOut",function(a){return Math.sin(a*i)}),k("SineIn",function(a){return-Math.cos(a*i)+1}),k("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),j("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),l(f.SlowMo,"SlowMo","ease,"),l(d,"RoughEase","ease,"),l(b,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a,f=e[b];if(f)return"undefined"!=typeof module&&module.exports&&(module.exports=f),f;var g,h,i,j,k,l=function(a){var b,c=a.split("."),d=e;for(b=0;b<c.length;b++)d[c[b]]=d=d[c[b]]||{};return d},m=l("com.greensock"),n=1e-8,o=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},p=function(){},q=function(){var a=Object.prototype.toString,b=a.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&a.call(c)===b)}}(),r={},s=function(d,f,g,h){this.sc=r[d]?r[d].sc:[],r[d]=this,this.gsClass=null,this.func=g;var i=[];this.check=function(j){for(var k,m,n,o,p=f.length,q=p;--p>-1;)(k=r[f[p]]||new s(f[p],[])).gsClass?(i[p]=k.gsClass,q--):j&&k.sc.push(this);if(0===q&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=l(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,"undefined"!=typeof module&&module.exports)if(d===b){module.exports=c[b]=o;for(p in c)o[p]=c[p]}else c[b]&&(c[b][n]=o);else"function"==typeof define&&define.amd&&define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});for(p=0;p<this.sc.length;p++)this.sc[p].check()}},this.check(!0)},t=a._gsDefine=function(a,b,c,d){return new s(a,b,c,d)},u=m._class=function(a,b,c){return b=b||function(){},t(a,[],function(){return b},c),b};t.globals=e;var v=[0,0,1,1],w=u("easing.Ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?v.concat(b):v},!0),x=w.map={},y=w.register=function(a,b,c,d){for(var e,f,g,h,i=b.split(","),j=i.length,k=(c||"easeIn,easeOut,easeInOut").split(",");--j>-1;)for(f=i[j],e=d?u("easing."+f,null,!0):m.easing[f]||{},g=k.length;--g>-1;)h=k[g],x[f+"."+h]=x[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(i=w.prototype,i._calcEnd=!1,i.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},g=["Linear","Quad","Cubic","Quart","Quint,Strong"],h=g.length;--h>-1;)i=g[h]+",Power"+h,y(new w(null,null,1,h),i,"easeOut",!0),y(new w(null,null,2,h),i,"easeIn"+(0===h?",easeNone":"")),y(new w(null,null,3,h),i,"easeInOut");x.linear=m.easing.Linear.easeIn,x.swing=m.easing.Quad.easeInOut;var z=u("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});i=z.prototype,i.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],i=0;for(this!==j||k||j.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===i&&f.pr<e&&(i=g+1);h.splice(i,0,{c:b,s:c,up:d,pr:e})},i.removeEventListener=function(a,b){var c,d=this._listeners[a];if(d)for(c=d.length;--c>-1;)if(d[c].c===b)return void d.splice(c,1)},i.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var A=a.requestAnimationFrame,B=a.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},D=C();for(g=["ms","moz","webkit","o"],h=g.length;--h>-1&&!A;)A=a[g[h]+"RequestAnimationFrame"],B=a[g[h]+"CancelAnimationFrame"]||a[g[h]+"CancelRequestAnimationFrame"];u("Ticker",function(a,b){var c,e,f,g,h,i=this,l=C(),m=b!==!1&&A?"auto":!1,o=500,q=33,r="tick",s=function(a){var b,d,j=C()-D;j>o&&(l+=j-q),D+=j,i.time=(D-l)/1e3,b=i.time-h,(!c||b>0||a===!0)&&(i.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&i.dispatchEvent(r)};z.call(i),i.time=i.frame=0,i.tick=function(){s(!0)},i.lagSmoothing=function(a,b){return arguments.length?(o=a||1/n,void(q=Math.min(b,o,0))):1/n>o},i.sleep=function(){null!=f&&(m&&B?B(f):clearTimeout(f),e=p,f=null,i===j&&(k=!1))},i.wake=function(a){null!==f?i.sleep():a?l+=-D+(D=C()):i.frame>10&&(D=C()-o+5),e=0===c?p:m&&A?A:function(a){return setTimeout(a,1e3*(h-i.time)+1|0)},i===j&&(k=!0),s(2)},i.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void i.wake()):c},i.useRAF=function(a){return arguments.length?(i.sleep(),m=a,void i.fps(c)):m},i.fps(a),setTimeout(function(){"auto"===m&&i.frame<5&&"hidden"!==(d||{}).visibilityState&&i.useRAF(!1)},1500)}),i=m.Ticker.prototype=new m.events.EventDispatcher,i.constructor=m.Ticker;var E=u("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=!!b.immediateRender,this.data=b.data,this._reversed=!!b.reversed,Z){k||j.wake();var c=this.vars.useFrames?Y:Z;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});j=E.ticker=new m.Ticker,i=E.prototype,i._dirty=i._gc=i._initted=i._paused=!1,i._totalTime=i._time=0,i._rawPrevTime=-1,i._next=i._last=i._onUpdate=i._timeline=i.timeline=null,i._paused=!1;var F=function(){k&&C()-D>2e3&&("hidden"!==(d||{}).visibilityState||!j.lagSmoothing())&&j.wake();var a=setTimeout(F,2e3);a.unref&&a.unref()};F(),i.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},i.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},i.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},i.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},i.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},i.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},i.render=function(a,b,c){},i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},i.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a<c+this.totalDuration()/this._timeScale-n},i._enabled=function(a,b){return k||j.wake(),this._gc=!a,this._active=this.isActive(),b!==!0&&(a&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!a&&this.timeline&&this._timeline._remove(this,!0)),!1},i._kill=function(a,b){return this._enabled(!1,!1)},i.kill=function(a,b){return this._kill(a,b),this},i._uncache=function(a){for(var b=a?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this},i._swapSelfInParams=function(a){for(var b=a.length,c=a.concat();--b>-1;)"{self}"===a[b]&&(c[b]=this);return c},i._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},i.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=q(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},i.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},i.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0),this):(this._dirty=!1,this._duration)},i.totalDuration=function(a){return this._dirty=!1,arguments.length?this.duration(a):this._totalDuration},i.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(a>this._duration?this._duration:a,b)):this._time},i.totalTime=function(a,b,c){if(k||j.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(K.length&&_(),this.render(a,b,!1),K.length&&_())}return this},i.progress=i.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio;
},i.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},i.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},i.timeScale=function(a){if(!arguments.length)return this._timeScale;var b,c;for(a=a||n,this._timeline&&this._timeline.smoothChildTiming&&(b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime(),this._startTime=c-(c-this._startTime)*this._timeScale/a),this._timeScale=a,c=this.timeline;c&&c.timeline;)c._dirty=!0,c.totalDuration(),c=c.timeline;return this},i.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},i.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(k||a||j.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var G=u("core.SimpleTimeline",function(a){E.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});i=G.prototype=new E,i.constructor=G,i.kill()._gc=!1,i._first=i._last=i._recent=null,i._sortChildren=!1,i.add=i.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=this.rawTime()-(a._timeline.rawTime()-a._pauseTime)),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},i._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},i.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused&&!e._gc)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},i.rawTime=function(){return k||j.wake(),this._totalTime};var H=u("TweenLite",function(b,c,d){if(E.call(this,c,d),this.render=H.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:H.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?X[H.defaultOverwrite]:"number"==typeof i?i>>0:X[i],(h||b instanceof Array||b.push&&q(b))&&"number"!=typeof b[0])for(this._targets=g=o(b),this._propLookup=[],this._siblings=[],e=0;e<g.length;e++)f=g[e],f?"string"!=typeof f?f.length&&f!==a&&f[0]&&(f[0]===a||f[0].nodeType&&f[0].style&&!f.nodeType)?(g.splice(e--,1),this._targets=g=g.concat(o(f))):(this._siblings[e]=aa(f,this,!1),1===i&&this._siblings[e].length>1&&ca(f,this,null,1,this._siblings[e])):(f=g[e--]=H.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=aa(b,this,!1),1===i&&this._siblings.length>1&&ca(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-n,this.render(Math.min(0,-this._delay)))},!0),I=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},J=function(a,b){var c,d={};for(c in a)W[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!T[c]||T[c]&&T[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};i=H.prototype=new E,i.constructor=H,i.kill()._gc=!1,i.ratio=0,i._firstPT=i._targets=i._overwrittenProps=i._startAt=null,i._notifyPluginsOfEnabled=i._lazy=!1,H.version="2.1.2",H.defaultEase=i._ease=new w(null,null,1,1),H.defaultOverwrite="auto",H.ticker=j,H.autoSleep=120,H.lagSmoothing=function(a,b){j.lagSmoothing(a,b)},H.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(H.selector=c,c(b)):(d||(d=a.document),d?d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b):b)};var K=[],L={},M=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/[\+-]=-?[\.\d]/,O=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a&&null!=this.end?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m.call(this._tween,b,this._target||c.t,this._tween):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},P=function(a){return(1e3*a|0)/1e3+""},Q=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(M)||[],f=b.match(M)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:P}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=O,N.test(b)&&(l.end=null),l},R=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=Q(m,n?parseFloat(o.s)+o.c+(o.s+"").replace(/[0-9\-\.]/g,""):d,h||H.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},S=H._internals={isArray:q,isSelector:I,lazyTweens:K,blobDif:Q},T=H._plugins={},U=S.tweenLookup={},V=0,W=S.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},X={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},Y=E._rootFramesTimeline=new G,Z=E._rootTimeline=new G,$=30,_=S.lazyRender=function(){var a,b,c=K.length;for(L={},a=0;c>a;a++)b=K[a],b&&b._lazy!==!1&&(b.render(b._lazy[0],b._lazy[1],!0),b._lazy=!1);K.length=0};Z._startTime=j.time,Y._startTime=j.frame,Z._active=Y._active=!0,setTimeout(_,1),E._updateRoot=H.render=function(){var a,b,c;if(K.length&&_(),Z.render((j.time-Z._startTime)*Z._timeScale,!1,!1),Y.render((j.frame-Y._startTime)*Y._timeScale,!1,!1),K.length&&_(),j.frame>=$){$=j.frame+(parseInt(H.autoSleep,10)||120);for(c in U){for(b=U[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete U[c]}if(c=Z._first,(!c||c._paused)&&H.autoSleep&&!Y._first&&1===j._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||j.sleep()}}},j.addEventListener("tick",E._updateRoot);var aa=function(a,b,c){var d,e,f=a._gsTweenID;if(U[f||(a._gsTweenID=f="t"+V++)]||(U[f]={target:a,tweens:[]}),b&&(d=U[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return U[f].tweens},ba=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=H.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},ca=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+n,l=[],m=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||da(b,0,o),0===da(h,j,o)&&(l[m++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2*n||(l[m++]=h)));for(f=m;--f>-1;)if(h=l[f],i=h._firstPT,2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted&&i){if(2!==d&&!ba(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},da=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*n>f-b?n:(f+=a.totalDuration()/a._timeScale/e)>b+n?0:f-b-n};i._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease,l=this._startAt;if(g.startAt){l&&(l.render(-1,!0),l.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.data="isStart",e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,e.onUpdate=g.onUpdate,e.onUpdateParams=g.onUpdateParams,e.onUpdateScope=g.onUpdateScope||g.callbackScope||this,this._startAt=H.to(this.target||{},0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(l)l.render(-1,!0),l.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)W[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=H.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof w?k:"function"==typeof k?new w(k,g.easeParams):x[k]||H.defaultEase:H.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&H._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},i._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;L[b._gsTweenID]&&_(),this.vars.css||b.style&&b!==a&&b.nodeType&&T.css&&this.vars.autoCSS!==!1&&J(this.vars,b);for(g in this.vars)if(l=this.vars[g],W[g])l&&(l instanceof Array||l.push&&q(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(T[g]&&(j=new T[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=R.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&ca(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[b._gsTweenID]=!0),i)},i.render=function(a,b,c){var d,e,f,g,h=this,i=h._time,j=h._duration,k=h._rawPrevTime;if(a>=j-n&&a>=0)h._totalTime=h._time=j,h.ratio=h._ease._calcEnd?h._ease.getRatio(1):1,h._reversed||(d=!0,e="onComplete",c=c||h._timeline.autoRemoveChildren),0===j&&(h._initted||!h.vars.lazy||c)&&(h._startTime===h._timeline._duration&&(a=0),(0>k||0>=a&&a>=-n||k===n&&"isPause"!==h.data)&&k!==a&&(c=!0,k>n&&(e="onReverseComplete")),h._rawPrevTime=g=!b||a||k===a?a:n);else if(n>a)h._totalTime=h._time=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0,(0!==i||0===j&&k>0)&&(e="onReverseComplete",d=h._reversed),a>-n?a=0:0>a&&(h._active=!1,0===j&&(h._initted||!h.vars.lazy||c)&&(k>=0&&(k!==n||"isPause"!==h.data)&&(c=!0),h._rawPrevTime=g=!b||a||k===a?a:n)),(!h._initted||h._startAt&&h._startAt.progress())&&(c=!0);else if(h._totalTime=h._time=a,h._easeType){var l=a/j,m=h._easeType,o=h._easePower;(1===m||3===m&&l>=.5)&&(l=1-l),3===m&&(l*=2),1===o?l*=l:2===o?l*=l*l:3===o?l*=l*l*l:4===o&&(l*=l*l*l*l),h.ratio=1===m?1-l:2===m?l:.5>a/j?l/2:1-l/2}else h.ratio=h._ease.getRatio(a/j);if(h._time!==i||c){if(!h._initted){if(h._init(),!h._initted||h._gc)return;if(!c&&h._firstPT&&(h.vars.lazy!==!1&&h._duration||h.vars.lazy&&!h._duration))return h._time=h._totalTime=i,h._rawPrevTime=k,K.push(h),void(h._lazy=[a,b]);h._time&&!d?h.ratio=h._ease.getRatio(h._time/j):d&&h._ease._calcEnd&&(h.ratio=h._ease.getRatio(0===h._time?0:1))}for(h._lazy!==!1&&(h._lazy=!1),h._active||!h._paused&&h._time!==i&&a>=0&&(h._active=!0),0===i&&(h._startAt&&(a>=0?h._startAt.render(a,!0,c):e||(e="_dummyGS")),h.vars.onStart&&(0!==h._time||0===j)&&(b||h._callback("onStart"))),f=h._firstPT;f;)f.f?f.t[f.p](f.c*h.ratio+f.s):f.t[f.p]=f.c*h.ratio+f.s,f=f._next;h._onUpdate&&(0>a&&h._startAt&&a!==-1e-4&&h._startAt.render(a,!0,c),b||(h._time!==i||d||c)&&h._callback("onUpdate")),e&&(!h._gc||c)&&(0>a&&h._startAt&&!h._onUpdate&&a!==-1e-4&&h._startAt.render(a,!0,c),d&&(h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!b&&h.vars[e]&&h._callback(e),0===j&&h._rawPrevTime===n&&g!==n&&(h._rawPrevTime=0))}},i._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:H.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline,n=this._firstPT;if((q(b)||I(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(H.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!ba(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&n&&this._enabled(!1,!1)}}return i},i.invalidate=function(){this._notifyPluginsOfEnabled&&H._onPluginEvent("_onDisable",this);var a=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],E.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-n,this.render(a,!1,this.vars.lazy!==!1)),this},i._enabled=function(a,b){if(k||j.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=aa(d[c],this,!0);else this._siblings=aa(this.target,this,!0)}return E.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?H._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},H.to=function(a,b,c){return new H(a,b,c)},H.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new H(a,b,c)},H.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new H(a,b,d)},H.delayedCall=function(a,b,c,d,e){return new H(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},H.set=function(a,b){return new H(a,0,b)},H.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:H.selector(a)||a;var c,d,e,f;if((q(a)||I(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(H.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else if(a._gsTweenID)for(d=aa(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d||[]},H.killTweensOf=H.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=H.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ea=u("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=ea.prototype},!0);if(i=ea.prototype,ea.version="1.19.0",ea.API=2,i._firstPT=null,i._addTween=R,i.setRatio=O,i._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},i._mod=i._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},H._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ea.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===ea.API&&(T[(new a[b])._propName]=a[b]);return!0},t.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=u("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){ea.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new ea(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ea.activate([g]),g},g=a._gsQueue){for(h=0;h<g.length;h++)g[h]();for(i in r)r[i].func||a.console.log("GSAP encountered missing dependency: "+i)}k=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax");;
/*!
 * GSAP 3.9.1
 * https://greensock.com
 * 
 * @license Copyright 2021, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t){return"string"==typeof t}function p(t){return"function"==typeof t}function q(t){return"number"==typeof t}function r(t){return void 0===t}function s(t){return"object"==typeof t}function t(t){return!1!==t}function u(){return"undefined"!=typeof window}function v(t){return p(t)||o(t)}function M(t){return(h=mt(t,ot))&&oe}function N(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function O(t,e){return!e&&console.warn(t)}function P(t,e){return t&&(ot[t]=e)&&h&&(h[t]=e)||ot}function Q(){return 0}function $(t){var e,r,i=t[0];if(s(i)||p(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=ct.length;r--&&!ct[r].targetTest(i););e=ct[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Lt(t[r],e)))||t.splice(r,1);return t}function _(t){return t._gsap||$(xt(t))[0]._gsap}function aa(t,e,i){return(i=t[e])&&p(i)?t[e]():r(i)&&t.getAttribute&&t.getAttribute(e)||i}function ba(t,e){return(t=t.split(",")).forEach(e)||t}function ca(t){return Math.round(1e5*t)/1e5||0}function da(t){return Math.round(1e7*t)/1e7||0}function ea(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function fa(){var t,e,r=ht.length,i=ht.slice(0);for(lt={},t=ht.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function ga(t,e,r,i){ht.length&&fa(),t.render(e,r,i),ht.length&&fa()}function ha(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(at).length<2?e:o(t)?t.trim():t}function ia(t){return t}function ja(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ma(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=s(e[r])?ma(t[r]||(t[r]={}),e[r]):e[r]);return t}function na(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function oa(e){var r=e.parent||I,i=e.keyframes?function _setKeyframeDefaults(i){return function(t,e){for(var r in e)r in t||"duration"===r&&i||"ease"===r||(t[r]=e[r])}}(W(e.keyframes)):ja;if(t(e.inherit))for(;r;)i(e,r.vars.defaults),r=r.parent||r._dp;return e}function ra(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function sa(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function ta(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}function wa(t){return t._repeat?gt(t._tTime,t=t.duration()+t._rDelay)*t:0}function ya(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function za(t){return t._end=da(t._start+(t._tDur/Math.abs(t._ts||t._rts||X)||0))}function Aa(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=da(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),za(t),r._dirty||ta(r,t)),t}function Ba(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=ya(t.rawTime(),e),(!e._dur||Tt(0,e.totalDuration(),r)-e._tTime>X)&&e.render(r,!0)),ta(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-X}}function Ca(t,e,r,i){return e.parent&&sa(e),e._start=da((q(r)?r:r||t!==I?bt(t,r,e):t._time)+e._delay),e._end=da(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function _addLinkedListItem(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),vt(e)||(t._recent=e),i||Ba(t,e),t}function Da(t,e){return(ot.ScrollTrigger||N("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)}function Ea(t,e,r,i){return jt(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==St.frame?(ht.push(t),t._lazy=[e,i],1):void 0:1}function Ja(t,e,r,i){var n=t._repeat,a=da(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:da(a*(n+1)+t._rDelay*n):a,0<s&&!i?Aa(t,t._tTime=t._tDur*s):t.parent&&za(t),r||ta(t.parent,t),t}function Ka(t){return t instanceof Nt?ta(t):Ja(t,t._dur)}function Na(e,r,i){var n,a,s=q(r[1]),o=(s?2:1)+(e<2?0:1),u=r[o];if(s&&(u.duration=r[1]),u.parent=i,e){for(n=u,a=i;a&&!("immediateRender"in n);)n=a.vars.defaults||{},a=t(a.vars.inherit)&&a.parent;u.immediateRender=t(n.immediateRender),e<2?u.runBackwards=1:u.startAt=r[o-1]}return new Jt(r[0],u,r[1+o])}function Oa(t,e){return t||0===t?e(t):e}function Qa(t,e){return o(t)&&(e=st.exec(t))?t.substr(e.index+e[0].length):""}function Ta(t,e){return t&&s(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&s(t[0]))&&!t.nodeType&&t!==i}function Xa(t){return t.sort(function(){return.5-Math.random()})}function Ya(t){if(p(t))return t;var c=s(t)?t:{each:t},_=Rt(c.ease),m=c.from||0,g=parseFloat(c.base)||0,v={},e=0<m&&m<1,y=isNaN(m)||e,b=c.axis,T=m,w=m;return o(m)?T=w={center:.5,edges:.5,end:1}[m]||0:!e&&y&&(T=m[0],w=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,d=(r||c).length,p=v[d];if(!p){if(!(f="auto"===c.grid?0:(c.grid||[1,j])[1])){for(h=-j;h<(h=r[f++].getBoundingClientRect().left)&&f<d;);f--}for(p=v[d]=[],i=y?Math.min(f,d)*T-.5:m%f,n=f===j?0:y?d*w/f-.5:m/f|0,l=j,u=h=0;u<d;u++)a=u%f-i,s=n-(u/f|0),p[u]=o=b?Math.abs("y"===b?s:a):G(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===m&&Xa(p),p.max=h-l,p.min=l,p.v=d=(parseFloat(c.amount)||parseFloat(c.each)*(d<f?d-1:b?"y"===b?d/f:f:Math.max(f,d/f))||0)*("edges"===m?-1:1),p.b=d<0?g-d:g,p.u=Qa(c.amount||c.each)||0,_=_&&d<0?Bt(_):_}return d=(p[t]-p.min)/p.max||0,da(p.b+(_?_(d):d)*p.v)+p.u}}function Za(r){var i=Math.pow(10,((r+"").split(".")[1]||"").length);return function(t){var e=Math.round(parseFloat(t)/r)*r*i;return(e-e%1)/i+(q(t)?0:Qa(t))}}function $a(u,t){var h,l,e=W(u);return!e&&s(u)&&(h=e=u.radius||j,u.values?(u=xt(u.values),(l=!q(u[0]))&&(h*=h)):u=Za(u.increment)),Oa(t,e?p(u)?function(t){return l=u(t),Math.abs(l-t)<=h?l:t}:function(t){for(var e,r,i=parseFloat(l?t.x:t),n=parseFloat(l?t.y:0),a=j,s=0,o=u.length;o--;)(e=l?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<a&&(a=e,s=o);return s=!h||a<=h?u[s]:t,l||s===t||q(t)?s:s+Qa(t)}:Za(u))}function _a(t,e,r,i){return Oa(W(t)?!e:!0===r?!!(r=0):!i,function(){return W(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function db(e,r,t){return Oa(t,function(t){return e[~~r(t)]})}function gb(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?at:tt),s+=t.substr(a,e-a)+_a(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function jb(t,e,r){var i,n,a,s=t.labels,o=j;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function lb(t){return sa(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&Mt(t,"onInterrupt"),t}function qb(t,e,r){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*kt+.5|0}function rb(t,e,r){var i,n,a,s,o,u,h,l,f,d,p=t?q(t)?[t>>16,t>>8&kt,t&kt]:0:Ct.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ct[t])p=Ct[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&kt,p&kt,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&kt,t&kt]}else if("hsl"===t.substr(0,3))if(p=d=t.match(tt),e){if(~t.indexOf("="))return p=t.match(et),r&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,o=p[1]/100,i=2*(u=p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<p.length&&(p[3]*=1),p[0]=qb(s+1/3,i,n),p[1]=qb(s,i,n),p[2]=qb(s-1/3,i,n);else p=t.match(tt)||Ct.transparent;p=p.map(Number)}return e&&!d&&(i=p[0]/kt,n=p[1]/kt,a=p[2]/kt,u=((h=Math.max(i,n,a))+(l=Math.min(i,n,a)))/2,h===l?s=o=0:(f=h-l,o=.5<u?f/(2-h-l):f/(h+l),s=h===i?(n-a)/f+(n<a?6:0):h===n?(a-i)/f+2:(i-n)/f+4,s*=60),p[0]=~~(s+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),r&&p.length<4&&(p[3]=1),p}function sb(t){var r=[],i=[],n=-1;return t.split(Pt).forEach(function(t){var e=t.match(rt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function tb(t,e,r){var i,n,a,s,o="",u=(t+o).match(Pt),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=rb(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=sb(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(Pt,"1").split(rt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(Pt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function wb(t){var e,r=t.join(" ");if(Pt.lastIndex=0,Pt.test(r))return e=At.test(r),t[1]=tb(t[1],e),t[0]=tb(t[0],e,sb(t[1])),!0}function Fb(t){var e=(t+"").split("("),r=zt[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(Et,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:function _valueInParentheses(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)}(t).split(",").map(ha)):zt._CE&&Ft.test(t)?zt._CE("",t):r}function Hb(t,e){for(var r,i=t._first;i;)i instanceof Nt?Hb(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Hb(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Jb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return ba(t,function(t){for(var e in zt[t]=ot[t]=a,zt[n=t.toLowerCase()]=r,a)zt[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=zt[t+"."+e]=a[e]}),a}function Kb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Lb(r,t,e){function Sl(t){return 1===t?1:i*Math.pow(2,-10*t)*K((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/U*(Math.asin(1/i)||0),s="out"===r?Sl:"in"===r?function(t){return 1-Sl(1-t)}:Kb(Sl);return n=U/n,s.config=function(t,e){return Lb(r,t,e)},s}function Mb(e,r){function $l(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?$l:"in"===e?function(t){return 1-$l(1-t)}:Kb($l);return t.config=function(t){return Mb(e,t)},t}var R,I,i,n,a,h,l,f,d,c,m,g,y,b,T,w,x,k,C,A,S,D,z,F,E,B,Y={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},L={duration:.5,overwrite:!1,delay:0},j=1e8,X=1/j,U=2*Math.PI,V=U/4,J=0,G=Math.sqrt,Z=Math.cos,K=Math.sin,H="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},W=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,at=/[^,'"\[\]\s]+/gi,st=/[\d.+\-=]+(?:e[-+]\d*)*/i,ot={},ut={},ht=[],lt={},ft={},dt={},pt=30,ct=[],_t="",mt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},gt=function _animationCycle(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},vt=function _isFromOrFromStart(t){var e=t.data;return"isFromStart"===e||"isStart"===e},yt={_start:0,endTime:Q,totalDuration:Q},bt=function _parsePosition(t,e,r){var i,n,a,s=t.labels,u=t._recent||yt,h=t.duration()>=j?u.endTime(!1):t._dur;return o(e)&&(isNaN(e)||e in s)?(n=e.charAt(0),a="%"===e.substr(-1),i=e.indexOf("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(a?(i<0?u:r).totalDuration()/100:1)):i<0?(e in s||(s[e]=h),s[e]):(n=parseFloat(e.charAt(i-1)+e.substr(i+1)),a&&r&&(n=n/100*(W(r)?r[0]:r).totalDuration()),1<i?_parsePosition(t,e.substr(0,i-1),r)+n:h+n)):null==e?h:+e},Tt=function _clamp(t,e,r){return r<t?t:e<r?e:r},wt=[].slice,xt=function toArray(t,e,r){return!o(t)||r||!n&&Dt()?W(t)?function _flatten(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){return o(t)&&!e||Ta(t,1)?r.push.apply(r,xt(t)):r.push(t)})||r}(t,r):Ta(t)?wt.call(t,0):t?[t]:[]:wt.call((e||a).querySelectorAll(t),0)},Ot=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Oa(n,function(t){return r+((t-e)/a*s||0)})},Mt=function _callback(t,e,r){var i,n,a=t.vars,s=a[e];if(s)return i=a[e+"Params"],n=a.callbackScope||t,r&&ht.length&&fa(),i?s.apply(n,i):s.call(n)},kt=255,Ct={aqua:[0,kt,kt],lime:[0,kt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,kt],navy:[0,0,128],white:[kt,kt,kt],olive:[128,128,0],yellow:[kt,kt,0],orange:[kt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[kt,0,0],pink:[kt,192,203],cyan:[0,kt,kt],transparent:[kt,kt,kt,0]},Pt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ct)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),At=/hsl[a]?\(/,St=(x=Date.now,k=500,C=33,A=x(),S=A,z=D=1e3/240,b={time:0,frame:0,tick:function tick(){Ok(!0)},deltaRatio:function deltaRatio(t){return T/(1e3/(t||60))},wake:function wake(){l&&(!n&&u()&&(i=n=window,a=i.document||{},ot.gsap=oe,(i.gsapVersions||(i.gsapVersions=[])).push(oe.version),M(h||i.GreenSockGlobals||!i.gsap&&i||{}),y=i.requestAnimationFrame),m&&b.sleep(),g=y||function(t){return setTimeout(t,z-1e3*b.time+1|0)},c=1,Ok(2))},sleep:function sleep(){(y?i.cancelAnimationFrame:clearTimeout)(m),c=0,g=Q},lagSmoothing:function lagSmoothing(t,e){k=t||1e8,C=Math.min(e,k,0)},fps:function fps(t){D=1e3/(t||240),z=1e3*b.time+D},add:function add(t){F.indexOf(t)<0&&F.push(t),Dt()},remove:function remove(t,e){~(e=F.indexOf(t))&&F.splice(e,1)&&e<=w&&w--},_listeners:F=[]}),Dt=function _wake(){return!c&&St.wake()},zt={},Ft=/^[\d.\-M][\d.\-,\s]/,Et=/["']/g,Bt=function _invertEase(e){return function(t){return 1-e(1-t)}},Rt=function _parseEase(t,e){return t&&(p(t)?t:zt[t]||Fb(t))||e};function Ok(t){var e,r,i,n,a=x()-S,s=!0===t;if(k<a&&(A+=a-C),(0<(e=(i=(S+=a)-A)-z)||s)&&(n=++b.frame,T=i-1e3*b.time,b.time=i/=1e3,z+=e+(D<=e?4:D-e),r=1),s||(m=g(Ok)),r)for(w=0;w<F.length;w++)F[w](i,T,n,t)}function pm(t){return t<B?E*t*t:t<.7272727272727273?E*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?E*(t-=2.25/2.75)*t+.9375:E*Math.pow(t-2.625/2.75,2)+.984375}ba("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Jb(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})}),zt.Linear.easeNone=zt.none=zt.Linear.easeIn,Jb("Elastic",Lb("in"),Lb("out"),Lb()),E=7.5625,B=1/2.75,Jb("Bounce",function(t){return 1-pm(1-t)},pm),Jb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Jb("Circ",function(t){return-(G(1-t*t)-1)}),Jb("Sine",function(t){return 1===t?1:1-Z(t*V)}),Jb("Back",Mb("in"),Mb("out"),Mb()),zt.SteppedEase=zt.steps=ot.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*Tt(0,.99999999,t)|0)+n)*r}}},L.ease=zt["quad.out"],ba("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return _t+=t+","+t+"Params,"});var It,Lt=function GSCache(t,e){this.id=J++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:aa,this.set=e?e.getSetter:Kt},qt=((It=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},It.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},It.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Ja(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},It.totalTime=function totalTime(t,e){if(Dt(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Aa(this,t),!r._dp||r.parent||Ba(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&Ca(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===X||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ga(this,t,e)),this},It.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+wa(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},It.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},It.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+wa(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},It.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?gt(this._tTime,r)+1:1},It.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-X?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?ya(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-X?0:this._rts,function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent}(this.totalTime(Tt(-this._delay,this._tDur,e),!0)),za(this),this},It.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Dt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==X&&(this._tTime-=X)))),this):this._ps},It.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||Ca(e,this,t-this._delay),this}return this._start},It.endTime=function endTime(e){return this._start+(t(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},It.rawTime=function rawTime(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?ya(e.rawTime(t),this):this._tTime:this._tTime},It.globalTime=function globalTime(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return r},It.repeat=function repeat(t){return arguments.length?(this._repeat=t===1/0?-2:t,Ka(this)):-2===this._repeat?1/0:this._repeat},It.repeatDelay=function repeatDelay(t){if(arguments.length){var e=this._time;return this._rDelay=t,Ka(this),e?this.time(e):this}return this._rDelay},It.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},It.seek=function seek(e,r){return this.totalTime(bt(this,e),t(r))},It.restart=function restart(e,r){return this.play().totalTime(e?-this._delay:0,t(r))},It.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},It.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},It.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},It.resume=function resume(){return this.paused(!1)},It.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-X:0)),this):this._rts<0},It.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-X,this},It.isActive=function isActive(){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)-X))},It.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},It.then=function then(t){var i=this;return new Promise(function(e){function Gn(){var t=i.then;i.then=null,p(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=p(t)?t:ia;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?Gn():i._prom=Gn})},It.kill=function kill(){lb(this)},Animation);function Animation(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,Ja(this,+t.duration,1,1),this.data=t.data,c||St.wake()}ja(qt.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:-X,_prom:0,_ps:!1,_rts:1});var Nt=function(n){function Timeline(e,r){var i;return void 0===e&&(e={}),(i=n.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=t(e.sortChildren),I&&Ca(e.parent||I,_assertThisInitialized(i),r),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Da(_assertThisInitialized(i),e.scrollTrigger),i}_inheritsLoose(Timeline,n);var e=Timeline.prototype;return e.to=function to(t,e,r){return Na(0,arguments,this),this},e.from=function from(t,e,r){return Na(1,arguments,this),this},e.fromTo=function fromTo(t,e,r,i){return Na(2,arguments,this),this},e.set=function set(t,e,r){return e.duration=0,e.parent=this,oa(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Jt(t,e,bt(this,r),1),this},e.call=function call(t,e,r){return Ca(this,Jt.delayedCall(0,t,e),r)},e.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Jt(t,r,bt(this,n)),this},e.staggerFrom=function staggerFrom(e,r,i,n,a,s,o){return i.runBackwards=1,oa(i).immediateRender=t(i.immediateRender),this.staggerTo(e,r,i,n,a,s,o)},e.staggerFromTo=function staggerFromTo(e,r,i,n,a,s,o,u){return n.startAt=i,oa(n).immediateRender=t(n.immediateRender),this.staggerTo(e,r,n,a,s,o,u)},e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d,p,c,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=t<=0?0:da(t),y=this._zTime<0!=t<0&&(this._initted||!g);if(this!==I&&m<v&&0<=t&&(v=m),v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(p=this._yoyo,o=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(i=da(v%o),v===m?(s=this._repeat,i=g):((s=~~(v/o))&&s===v/o&&(i=g,s--),g<i&&(i=g)),d=gt(this._tTime,o),!_&&this._tTime&&d!==s&&(d=s),p&&1&s&&(i=g-i,c=1),s!==d&&!this._lock){var b=p&&1&d,T=b===(p&&1&s);if(s<d&&(b=!b),_=b?0:g,this._lock=1,this.render(_||(c?0:da(s*o)),e,!g)._lock=0,this._tTime=v,!e&&this.parent&&Mt(this,"onRepeat"),this.vars.repeatRefresh&&!c&&(this.invalidate()._lock=1),_&&_!==this._time||u!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,T&&(this._lock=2,_=b?g:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!c&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Hb(this,c)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,da(_),da(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&i&&!e&&(Mt(this,"onStart"),this._tTime!==v))return this;if(_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-X);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-X:X);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-X)._zTime=_<=i?1:-1,this._ts))return this._start=f,za(this),this.render(t,e,r);this._onUpdate&&!e&&Mt(this,"onUpdate",!0),(v===m&&m>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||sa(this,1),e||t<0&&!_||!v&&!_&&m||(Mt(this,v===m&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},e.add=function add(t,e){var r=this;if(q(e)||(e=bt(this,e,t)),!(t instanceof qt)){if(W(t))return t.forEach(function(t){return r.add(t,e)}),this;if(o(t))return this.addLabel(t,e);if(!p(t))return this;t=Jt.delayedCall(0,t)}return this!==t?Ca(this,t,e):this},e.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-j);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Jt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return o(t)?this.removeLabel(t):p(t)?this.killTweensOf(t):(ra(this,t),t===this._recent&&(this._recent=this._last),ta(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=da(St.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),n.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function addLabel(t,e){return this.labels[t]=bt(this,e),this},e.removeLabel=function removeLabel(t){return delete this.labels[t],this},e.addPause=function addPause(t,e,r){var i=Jt.delayedCall(0,e||Q,r);return i.data="isPause",this._hasPause=1,Ca(this,i,bt(this,t))},e.removePause=function removePause(t){var e=this._first;for(t=bt(this,t);e;)e._start===t&&"isPause"===e.data&&sa(e),e=e._next},e.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Qt!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function getTweensOf(t,e){for(var r,i=[],n=xt(t),a=this._first,s=q(e);a;)a instanceof Jt?ea(a._targets,n)&&(s?(!Qt||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=bt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=Jt.to(i,ja({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||X,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Ja(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ja({startAt:{time:bt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),jb(this,bt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),jb(this,bt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+X)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return ta(this)},e.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},e.clear=function clear(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={}),ta(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=j;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ca(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Ja(a,a===I&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(ga(I,ya(t,I)),f=St.frame),St.frame>=pt){pt+=Y.autoSleep||120;var e=I._first;if((!e||!e._ts)&&Y.autoSleep&&St._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||St.sleep()}}},Timeline}(qt);ja(Nt.prototype,{_lock:0,_hasPause:0,_forcing:0});function Tb(t,e,r,i,n,a){var u,h,l,f;if(ft[t]&&!1!==(u=new ft[t]).init(n,u.rawVars?e[t]:function _processVars(t,e,r,i,n){if(p(t)&&(t=Xt(t,n,e,r,i)),!s(t)||t.style&&t.nodeType||W(t)||H(t))return o(t)?Xt(t,n,e,r,i):t;var a,u={};for(a in t)u[a]=Xt(t[a],n,e,r,i);return u}(e[t],i,n,a,r),r,i,a)&&(r._pt=h=new ae(r._pt,n,t,0,1,u.render,u,0,u.priority),r!==d))for(l=r._ptLookup[r._targets.indexOf(n)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function Xb(t,r,e,i){var n,a,s=r.ease||i||"power1.inOut";if(W(r))a=e[t]||(e[t]=[]),r.forEach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parseFloat(t),v:r[n],e:s})}var Qt,Yt=function _addPropTween(t,e,r,i,n,a,s,u,h){p(i)&&(i=i(n||0,t,a));var l,f=t[e],d="get"!==r?r:p(f)?h?t[e.indexOf("set")||!p(t["get"+e.substr(3)])?e:"get"+e.substr(3)](h):t[e]():f,c=p(f)?h?Zt:$t:Gt;if(o(i)&&(~i.indexOf("random(")&&(i=gb(i)),"="===i.charAt(1)&&(!(l=parseFloat(d)+parseFloat(i.substr(2))*("-"===i.charAt(0)?-1:1)+(Qa(d)||0))&&0!==l||(i=l))),d!==i)return isNaN(d*i)||""===i?(f||e in t||N(e,i),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,p,c,_=new ae(this._pt,t,e,0,1,te,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(p=~(i+="").indexOf("random("))&&(i=gb(i)),a&&(a(c=[r,i],t,e),r=c[0],i=c[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-d,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m<i.length?i.substring(m,i.length):"",_.fp=s,(nt.test(i)||p)&&(_.e=0),this._pt=_}.call(this,t,e,d,i,c,u||Y.stringFilter,h)):(l=new ae(this._pt,t,e,+d||0,i-(d||0),"boolean"==typeof f?Wt:Ht,0,c),h&&(l.fp=h),s&&l.modifier(s,this,t),this._pt=l)},jt=function _initTween(e,r){var i,n,a,s,o,u,h,l,f,d,p,c,m,g=e.vars,v=g.ease,y=g.startAt,b=g.immediateRender,T=g.lazy,w=g.onUpdate,x=g.onUpdateParams,O=g.callbackScope,M=g.runBackwards,k=g.yoyoEase,C=g.keyframes,P=g.autoRevert,A=e._dur,S=e._startAt,D=e._targets,z=e.parent,F=z&&"nested"===z.data?z.parent._targets:D,E="auto"===e._overwrite&&!R,B=e.timeline;if(!B||C&&v||(v="none"),e._ease=Rt(v,L.ease),e._yEase=k?Bt(Rt(!0===k?v:k,L.ease)):0,k&&e._yoyo&&!e._repeat&&(k=e._yEase,e._yEase=e._ease,e._ease=k),e._from=!B&&!!g.runBackwards,!B||C&&!g.stagger){if(c=(l=D[0]?_(D[0]).harness:0)&&g[l.prop],i=na(g,ut),S&&sa(S.render(-1,!0)),y)if(sa(e._startAt=Jt.set(D,ja({data:"isStart",overwrite:!1,parent:z,immediateRender:!0,lazy:t(T),startAt:null,delay:0,onUpdate:w,onUpdateParams:x,callbackScope:O,stagger:0},y))),r<0&&!b&&!P&&e._startAt.render(-1,!0),b){if(0<r&&!P&&(e._startAt=0),A&&r<=0)return void(r&&(e._zTime=r))}else!1===P&&(e._startAt=0);else if(M&&A)if(S)P||(e._startAt=0);else if(r&&(b=!1),a=ja({overwrite:!1,data:"isFromStart",lazy:b&&t(T),immediateRender:b,stagger:0,parent:z},i),c&&(a[l.prop]=c),sa(e._startAt=Jt.set(D,a)),r<0&&e._startAt.render(-1,!0),e._zTime=r,b){if(!r)return}else _initTween(e._startAt,X);for(e._pt=0,T=A&&t(T)||T&&!A,n=0;n<D.length;n++){if(h=(o=D[n])._gsap||$(D)[n]._gsap,e._ptLookup[n]=d={},lt[h.id]&&ht.length&&fa(),p=F===D?n:F.indexOf(o),l&&!1!==(f=new l).init(o,c||i,e,p,F)&&(e._pt=s=new ae(e._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=s}),f.priority&&(u=1)),!l||c)for(a in i)ft[a]&&(f=Tb(a,i,e,p,o,F))?f.priority&&(u=1):d[a]=s=Yt.call(e,o,a,"get",i[a],p,F,0,g.stringFilter);e._op&&e._op[n]&&e.kill(o,e._op[n]),E&&e._pt&&(Qt=e,I.killTweensOf(o,d,e.globalTime(r)),m=!e.parent,Qt=0),e._pt&&T&&(lt[h.id]=1)}u&&ne(e),e._onInit&&e._onInit(e)}e._onUpdate=w,e._initted=(!e._op||e._pt)&&!m,C&&r<=0&&B.render(j,!0,!0)},Xt=function _parseFuncOrString(t,e,r,i,n){return p(t)?t.call(e,r,i,n):o(t)&&~t.indexOf("random(")?gb(t):t},Ut=_t+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Vt={};ba(Ut+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Vt[t]=1});var Jt=function(F){function Tween(e,r,i,n){var a;"number"==typeof r&&(i.duration=r,r=i,i=null);var o,u,h,l,f,d,p,c,_=(a=F.call(this,n?r:oa(r))||this).vars,m=_.duration,g=_.delay,y=_.immediateRender,b=_.stagger,T=_.overwrite,w=_.keyframes,x=_.defaults,M=_.scrollTrigger,k=_.yoyoEase,C=r.parent||I,P=(W(e)||H(e)?q(e[0]):"length"in r)?[e]:xt(e);if(a._targets=P.length?$(P):O("GSAP target "+e+" not found. https://greensock.com",!Y.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=T,w||b||v(m)||v(g)){if(r=a.vars,(o=a.timeline=new Nt({data:"nested",defaults:x||{}})).kill(),o.parent=o._dp=_assertThisInitialized(a),o._start=0,b||v(m)||v(g)){if(l=P.length,p=b&&Ya(b),s(b))for(f in b)~Ut.indexOf(f)&&((c=c||{})[f]=b[f]);for(u=0;u<l;u++)(h=na(r,Vt)).stagger=0,k&&(h.yoyoEase=k),c&&mt(h,c),d=P[u],h.duration=+Xt(m,_assertThisInitialized(a),u,d,P),h.delay=(+Xt(g,_assertThisInitialized(a),u,d,P)||0)-a._delay,!b&&1===l&&h.delay&&(a._delay=g=h.delay,a._start+=g,h.delay=0),o.to(d,h,p?p(u,d,P):0),o._ease=zt.none;o.duration()?m=g=0:a.timeline=0}else if(w){oa(ja(o.vars.defaults,{ease:"none"})),o._ease=Rt(w.ease||r.ease||"none");var A,S,D,z=0;if(W(w))w.forEach(function(t){return o.to(P,t,">")});else{for(f in h={},w)"ease"===f||"easeEach"===f||Xb(f,w[f],h,w.easeEach);for(f in h)for(A=h[f].sort(function(t,e){return t.t-e.t}),u=z=0;u<A.length;u++)(D={ease:(S=A[u]).e,duration:(S.t-(u?A[u-1].t:0))/100*m})[f]=S.v,o.to(P,D,z),z+=D.duration;o.duration()<m&&o.to({},{duration:m-o.duration()})}}m||a.duration(m=o.duration())}else a.timeline=0;return!0!==T||R||(Qt=_assertThisInitialized(a),I.killTweensOf(P),Qt=0),Ca(C,_assertThisInitialized(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(y||!m&&!w&&a._start===da(C._time)&&t(y)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==C.data)&&(a._tTime=-X,a.render(Math.max(0,-g))),M&&Da(_assertThisInitialized(a),M),a}_inheritsLoose(Tween,F);var e=Tween.prototype;return e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d=this._time,p=this._tDur,c=this._dur,_=p-X<t&&0<=t?p:t<X?0:t;if(c){if(_!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(i=_,l=this.timeline,this._repeat){if(s=c+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,r);if(i=da(_%s),_===p?(a=this._repeat,i=c):((a=~~(_/s))&&a===_/s&&(i=c,a--),c<i&&(i=c)),(u=this._yoyo&&1&a)&&(f=this._yEase,i=c-i),o=gt(this._tTime,s),i===d&&!r&&this._initted)return this;a!==o&&(l&&this._yEase&&Hb(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(da(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ea(this,t<0?t:i,r,e))return this._tTime=0,this;if(c!==this._dur)return this.render(t,e,r)}if(this._tTime=_,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/c),this._from&&(this.ratio=h=1-h),i&&!d&&!e&&(Mt(this,"onStart"),this._tTime!==_))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-X:l._dur*l._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),Mt(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Mt(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),!t&&c||!(_===this._tDur&&0<this._ts||!_&&this._ts<0)||sa(this,1),e||t<0&&!d||!_&&!d||(Mt(this,_===p?"onComplete":"onReverseComplete",!0),!this._prom||_<p&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&function _parentPlayheadIsBeforeStart(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||_parentPlayheadIsBeforeStart(e))}(t)&&(t._initted||!vt(t))||(t._ts<0||t._dp._ts<0)&&!vt(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=Tt(0,t._tDur,e),a=gt(l,h),t._yoyo&&1&a&&(u=1-u),a!==gt(t._tTime,h)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||i||t._zTime===X||!e&&t._zTime){if(!t._initted&&Ea(t,e,i,r))return;for(s=t._zTime,t._zTime=e||(r?X:0),r=r||e&&!s,t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,n=t._pt;n;)n.r(u,n.d),n=n._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!r&&Mt(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&Mt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&sa(t,1),r||(Mt(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),F.prototype.invalidate.call(this)},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?lb(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Qt&&!0!==Qt.vars.overwrite)._first||lb(this),this.parent&&r!==this.timeline.totalDuration()&&Ja(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,a,s,u,h,l,f=this._targets,d=t?xt(t):f,p=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),lb(this);for(i=this._op=this._op||[],"all"!==e&&(o(e)&&(u={},ba(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?_(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=mt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in n=p[l],"all"===e?(i[l]=e,s=n,a={}):(a=i[l]=i[l]||{},s=e),s)(h=n&&n[u])&&("kill"in h.d&&!0!==h.d.kill(u)||ra(this,h,"_pt"),delete n[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&c&&lb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Na(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Na(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(qt);ja(Jt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ba("staggerTo,staggerFrom,staggerFromTo",function(r){Jt[r]=function(){var t=new Nt,e=wt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function dc(t,e,r){return t.setAttribute(e,r)}function lc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Gt=function _setterPlain(t,e,r){return t[e]=r},$t=function _setterFunc(t,e,r){return t[e](r)},Zt=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},Kt=function _getSetter(t,e){return p(t[e])?$t:r(t[e])&&t.setAttribute?dc:Gt},Ht=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Wt=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},te=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},ee=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},re=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},ie=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?ra(this,i,"_pt"):i.dep||(e=1),i=r;return!e},ne=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ae=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=lc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||Ht,this.d=s||this,this.set=o||Gt,this.pr=u||0,(this._next=t)&&(t._prev=this)}ba(_t+"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 ut[t]=1}),ot.TweenMax=ot.TweenLite=Jt,ot.TimelineLite=ot.TimelineMax=Nt,I=new Nt({sortChildren:!1,defaults:L,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Y.stringFilter=wb;var se={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=p(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:Q,render:ee,add:Yt,kill:ie,modifier:re,rawVars:0},a={targetTest:0,get:0,getSetter:Kt,aliases:{},register:0};if(Dt(),t!==i){if(ft[e])return;ja(i,ja(na(t,n),a)),mt(i.prototype,mt(n,na(t,a))),ft[i.prop=e]=i,t.targetTest&&(ct.push(i),ut[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}P(e,i),t.register&&t.register(oe,i,ae)}(t)})},timeline:function timeline(t){return new Nt(t)},getTweensOf:function getTweensOf(t,e){return I.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,r){o(i)&&(i=xt(i)[0]);var n=_(i||{}).get,a=e?ia:ha;return"native"===e&&(e=""),i?t?a((ft[t]&&ft[t].get||n)(i,t,e,r)):function(t,e,r){return a((ft[t]&&ft[t].get||n)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=xt(r)).length){var n=r.map(function(t){return oe.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=ft[e],o=_(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;d._pt=0,e.init(r,i?t+i:t,d,0,[r]),e.render(1,e),d._pt&&ee(1,d)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},isTweening:function isTweening(t){return 0<I.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Rt(t.ease,L.ease)),ma(L,t||{})},config:function config(t){return ma(Y,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,r=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!ft[t]&&!ot[t]&&O(i+" effect requires "+t+" plugin.")}),dt[i]=function(t,e,r){return n(xt(t),ja(e||{},a),r)},r&&(Nt.prototype[i]=function(t,e,r){return this.add(dt[i](t,s(e)?e:(r=e)&&{},this),r)})},registerEase:function registerEase(t,e){zt[t]=Rt(e)},parseEase:function parseEase(t,e){return arguments.length?Rt(t,e):zt},getById:function getById(t){return I.getById(t)},exportRoot:function exportRoot(e,r){void 0===e&&(e={});var i,n,a=new Nt(e);for(a.smoothChildTiming=t(e.smoothChildTiming),I.remove(a),a._dp=0,a._time=a._tTime=I._time,i=I._first;i;)n=i._next,!r&&!i._dur&&i instanceof Jt&&i.vars.onComplete===i._targets[0]||Ca(a,i,i._start-i._delay),i=n;return Ca(I,a,0),a},utils:{wrap:function wrap(e,t,r){var i=t-e;return W(e)?db(e,wrap(0,e.length),t):Oa(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return W(e)?db(e,wrapYoyo(0,e.length-1),t):Oa(r,function(t){return e+(i<(t=(n+(t-e)%n)%n||0)?n-t:t)})},distribute:Ya,random:_a,snap:$a,normalize:function normalize(t,e,r){return Ot(t,e,0,1,r)},getUnit:Qa,clamp:function clamp(e,r,t){return Oa(t,function(t){return Tt(e,r,t)})},splitColor:rb,toArray:xt,selector:function selector(r){return r=xt(r)[0]||O("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return xt(t,e.querySelectorAll?e:e===r?O("Invalid scope")||a.createElement("div"):r)}},mapRange:Ot,pipe:function pipe(){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 unitize(e,r){return function(t){return e(parseFloat(t))+(r||Qa(t))}},interpolate:function interpolate(e,r,t,i){var n=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!n){var a,s,u,h,l,f=o(e),d={};if(!0===t&&(i=1)&&(t=null),f)e={p:e},r={p:r};else if(W(e)&&!W(r)){for(u=[],h=e.length,l=h-2,s=1;s<h;s++)u.push(interpolate(e[s-1],e[s]));h--,n=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=r}else i||(e=mt(W(e)?[]:{},e));if(!u){for(a in r)Yt.call(d,e,a,"get",r[a]);n=function func(t){return ee(t,d)||(f?e.p:e)}}}return Oa(t,n)},shuffle:Xa},install:M,effects:dt,ticker:St,updateRoot:Nt.updateRoot,plugins:ft,globalTimeline:I,core:{PropTween:ae,globals:P,Tween:Jt,Timeline:Nt,Animation:qt,getCache:_,_removeLinkedListItem:ra,suppressOverwrites:function suppressOverwrites(t){return R=t}}};ba("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return se[t]=Jt[t]}),St.add(Nt.updateRoot),d=se.to({},{duration:0});function pc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function rc(t,n){return{name:t,rawVars:1,init:function init(t,i,e){e._onInit=function(t){var e,r;if(o(i)&&(e={},ba(i,function(t){return e[t]=1}),i=e),n){for(r in e={},i)e[r]=n(i[r]);i=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=pc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,i)}}}}var oe=se.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s;for(a in e)(s=this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],i,n,0,0,a))&&(s.op=a),this._props.push(a)}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},rc("roundProps",Za),rc("modifiers"),rc("snap",$a))||se;Jt.version=Nt.version=oe.version="3.9.1",l=1,u()&&Dt();function ad(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function bd(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)}function cd(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function dd(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function ed(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function fd(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function gd(t,e,r){return t.style[e]=r}function hd(t,e,r){return t.style.setProperty(e,r)}function id(t,e,r){return t._gsap[e]=r}function jd(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function kd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function ld(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function pd(t,e){var r=he.createElementNS?he.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):he.createElement(t);return r.style?r:he.createElement(t)}function qd(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Ie,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&qd(t,Xe(e)||e,1)||""}function td(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(ue=window,he=ue.document,le=he.documentElement,de=pd("div")||{style:{}},pd("div"),Qe=Xe(Qe),Ye=Qe+"Origin",de.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ce=!!Xe("perspective"),fe=1)}function ud(t){var e,r=pd("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(le.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=ud}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),le.removeChild(r),this.style.cssText=a,e}function vd(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function wd(e){var r;try{r=e.getBBox()}catch(t){r=ud.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===ud||(r=ud.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+vd(e,["x","cx","x1"])||0,y:+vd(e,["y","cy","y1"])||0,width:0,height:0}}function xd(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!wd(t))}function yd(t,e){if(e){var r=t.style;e in Fe&&e!==Ye&&(e=Qe),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(Ie,"-$1").toLowerCase())):r.removeAttribute(e)}}function zd(t,e,r,i,n,a){var s=new ae(t._pt,e,r,0,1,a?fd:ed);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function Bd(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=de.style,f=Le.test(e),d="svg"===t.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),c="px"===i,m="%"===i;return i===h||!u||Ue[i]||Ue[h]?u:("px"===h||c||(u=Bd(t,e,r,"px")),o=t.getCTM&&xd(t),!m&&"%"!==h||!Fe[e]&&!~e.indexOf("adius")?(l[f?"width":"height"]=100+(c?h:i),a=~e.indexOf("adius")||"em"===i&&t.appendChild&&!d?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==he&&a.appendChild||(a=he.body),(s=a._gsap)&&m&&s.width&&f&&s.time===St.time?ca(u/s.width*100):(!m&&"%"!==h||(l.position=qd(t,"position")),a===t&&(l.position="static"),a.appendChild(de),n=de[p],a.removeChild(de),l.position="absolute",f&&m&&((s=_(a)).time=St.time,s.width=a[p]),ca(c?n*u/100:n&&u?100/n*u:0))):(n=o?t.getBBox()[f?"width":"height"]:t[p],ca(m?u/n*100:u/100*n)))}function Cd(t,e,r,i){var n;return fe||td(),e in Ne&&"transform"!==e&&~(e=Ne[e]).indexOf(",")&&(e=e.split(",")[0]),Fe[e]&&"transform"!==e?(n=Ze(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:Ke(qd(t,Ye))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=Je[e]&&Je[e](t,e,r)||qd(t,e)||aa(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?Bd(t,e,n,r)+r:n}function Dd(t,e,r,i){if(!r||"none"===r){var n=Xe(e,t,1),a=n&&qd(t,n,1);a&&a!==r?(e=n,r=a):"borderColor"===e&&(r=qd(t,"borderTopColor"))}var s,o,u,h,l,f,d,p,c,_,m,g,v=new ae(this._pt,t.style,e,0,1,te),y=0,b=0;if(v.b=r,v.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=qd(t,e)||i,t.style[e]=r),wb(s=[r,i]),i=s[1],u=(r=s[0]).match(rt)||[],(i.match(rt)||[]).length){for(;o=rt.exec(i);)d=o[0],c=i.substring(y,o.index),l?l=(l+1)%5:"rgba("!==c.substr(-5)&&"hsla("!==c.substr(-5)||(l=1),d!==(f=u[b++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),(g="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),p=parseFloat(d),_=d.substr((p+"").length),y=rt.lastIndex-_.length,_||(_=_||Y.units[e]||m,y===i.length&&(i+=_,v.e+=_)),m!==_&&(h=Bd(t,e,f,_)||0),v._pt={_next:v._pt,p:c||1===b?c:",",s:h,c:g?g*p:p-h,m:l&&l<4||"zIndex"===e?Math.round:0});v.c=y<i.length?i.substring(y,i.length):""}else v.r="display"===e&&"none"===i?fd:ed;return nt.test(i)&&(v.e=0),this._pt=v}function Fd(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=Ve[r]||r,e[1]=Ve[i]||i,e.join(" ")}function Gd(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],Fe[r]&&(i=1,r="transformOrigin"===r?Ye:Qe),yd(a,r);i&&(yd(a,Qe),u&&(u.svg&&a.removeAttribute("transform"),Ze(a,1),u.uncache=1))}}function Kd(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function Ld(t){var e=qd(t,Qe);return Kd(e)?Ge:e.substr(7).match(et).map(ca)}function Md(t,e){var r,i,n,a,s=t._gsap||_(t),o=t.style,u=Ld(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?Ge:u:(u!==Ge||t.offsetParent||t===le||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(a=1,i=t.nextSibling,le.appendChild(t)),u=Ld(t),n?o.display=n:yd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):le.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function Nd(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||Md(t,!0),f=h.xOrigin||0,d=h.yOrigin||0,p=h.xOffset||0,c=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],b=l[5],T=e.split(" "),w=parseFloat(T[0])||0,x=parseFloat(T[1])||0;r?l!==Ge&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*b-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*b-v*y)/o,x=u):(w=(s=wd(t)).x+(~T[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(T[1]||T[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,b=x-d,h.xOffset=p+(y*_+b*g)-y,h.yOffset=c+(y*m+b*v)-b):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[Ye]="0px 0px",a&&(zd(a,h,"xOrigin",f,w),zd(a,h,"yOrigin",d,x),zd(a,h,"xOffset",p,h.xOffset),zd(a,h,"yOffset",c,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function Qd(t,e,r){var i=Qa(e);return ca(parseFloat(e)+parseFloat(Bd(t,"x",r+"px",i)))+i}function Xd(t,e,r,i,n,a){var s,u,h=360,l=o(n),f=parseFloat(n)*(l&&~n.indexOf("rad")?Ee:1),d=a?f*a:f-i,p=i+d+"deg";return l&&("short"===(s=n.split("_")[1])&&(d%=h)!==d%180&&(d+=d<0?h:-h),"cw"===s&&d<0?d=(d+36e9)%h-~~(d/h)*h:"ccw"===s&&0<d&&(d=(d-36e9)%h-~~(d/h)*h)),t._pt=u=new ae(t._pt,e,r,i,d,bd),u.e=p,u.u="deg",t._props.push(r),u}function Yd(t,e){for(var r in e)t[r]=e[r];return t}function Zd(t,e,r){var i,n,a,s,o,u,h,l=Yd({},r._gsap),f=r.style;for(n in l.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),f[Qe]=e,i=Ze(r,1),yd(r,Qe),r.setAttribute("transform",a)):(a=getComputedStyle(r)[Qe],f[Qe]=e,i=Ze(r,1),f[Qe]=a),Fe)(a=l[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Qa(a)!==(h=Qa(s))?Bd(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new ae(t._pt,i,n,o,u-o,ad),t._pt.u=h||0,t._props.push(n));Yd(i,l)}var ue,he,le,fe,de,pe,ce,_e=zt.Power0,me=zt.Power1,ge=zt.Power2,ve=zt.Power3,ye=zt.Power4,be=zt.Linear,Te=zt.Quad,we=zt.Cubic,xe=zt.Quart,Oe=zt.Quint,Me=zt.Strong,ke=zt.Elastic,Ce=zt.Back,Pe=zt.SteppedEase,Ae=zt.Bounce,Se=zt.Sine,De=zt.Expo,ze=zt.Circ,Fe={},Ee=180/Math.PI,Be=Math.PI/180,Re=Math.atan2,Ie=/([A-Z])/g,Le=/(?:left|right|width|margin|padding|x)/i,qe=/[\s,\(]\S/,Ne={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Qe="transform",Ye=Qe+"Origin",je="O,Moz,ms,Ms,Webkit".split(","),Xe=function _checkPropPrefix(t,e,r){var i=(e||de).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(je[n]+t in i););return n<0?null:(3===n?"ms":0<=n?je[n]:"")+t},Ue={deg:1,rad:1,turn:1},Ve={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Je={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new ae(t._pt,e,r,0,0,Gd);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},Ge=[1,0,0,1,0,0],$e={},Ze=function _parseTransform(t,e){var r=t._gsap||new Lt(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,d,p,c,_,m,g,v,y,b,T,w,x,O,M,k,C,P,A,S,D,z,F,E,B=t.style,R=r.scaleX<0,I="deg",L=qd(t,Ye)||"0";return i=n=a=u=h=l=f=d=p=0,s=o=1,r.svg=!(!t.getCTM||!xd(t)),m=Md(t,r.svg),r.svg&&(k=(!r.uncache||"0px 0px"===L)&&!e&&t.getAttribute("data-svg-origin"),Nd(t,k||L,!!k||r.originIsAbsolute,!1!==r.smooth,m)),c=r.xOrigin||0,_=r.yOrigin||0,m!==Ge&&(b=m[0],T=m[1],w=m[2],x=m[3],i=O=m[4],n=M=m[5],6===m.length?(s=Math.sqrt(b*b+T*T),o=Math.sqrt(x*x+w*w),u=b||T?Re(T,b)*Ee:0,(f=w||x?Re(w,x)*Ee+u:0)&&(o*=Math.abs(Math.cos(f*Be))),r.svg&&(i-=c-(c*b+_*w),n-=_-(c*T+_*x))):(E=m[6],z=m[7],A=m[8],S=m[9],D=m[10],F=m[11],i=m[12],n=m[13],a=m[14],h=(g=Re(E,D))*Ee,g&&(k=O*(v=Math.cos(-g))+A*(y=Math.sin(-g)),C=M*v+S*y,P=E*v+D*y,A=O*-y+A*v,S=M*-y+S*v,D=E*-y+D*v,F=z*-y+F*v,O=k,M=C,E=P),l=(g=Re(-w,D))*Ee,g&&(v=Math.cos(-g),F=x*(y=Math.sin(-g))+F*v,b=k=b*v-A*y,T=C=T*v-S*y,w=P=w*v-D*y),u=(g=Re(T,b))*Ee,g&&(k=b*(v=Math.cos(g))+T*(y=Math.sin(g)),C=O*v+M*y,T=T*v-b*y,M=M*v-O*y,b=k,O=C),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=ca(Math.sqrt(b*b+T*T+w*w)),o=ca(Math.sqrt(M*M+E*E)),g=Re(O,M),f=2e-4<Math.abs(g)?g*Ee:0,p=F?1/(F<0?-F:F):0),r.svg&&(k=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Kd(qd(t,Qe)),k&&t.setAttribute("transform",k))),90<Math.abs(f)&&Math.abs(f)<270&&(R?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),r.x=i-((r.xPercent=i&&(r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=ca(s),r.scaleY=ca(o),r.rotation=ca(u)+I,r.rotationX=ca(h)+I,r.rotationY=ca(l)+I,r.skewX=f+I,r.skewY=d+I,r.transformPerspective=p+"px",(r.zOrigin=parseFloat(L.split(" ")[2])||0)&&(B[Ye]=Ke(L)),r.xOffset=r.yOffset=0,r.force3D=Y.force3D,r.renderTransform=r.svg?ir:ce?rr:He,r.uncache=0,r},Ke=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},He=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,rr(t,e)},We="0deg",tr="0px",er=") ",rr=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,d=r.skewY,p=r.scaleX,c=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",b="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==We||h!==We)){var T,w=parseFloat(h)*Be,x=Math.sin(w),O=Math.cos(w);w=parseFloat(l)*Be,T=Math.cos(w),a=Qd(g,a,x*T*-v),s=Qd(g,s,-Math.sin(w)*-v),o=Qd(g,o,O*T*-v+v)}_!==tr&&(y+="perspective("+_+er),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!b&&a===tr&&s===tr&&o===tr||(y+=o!==tr||b?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+er),u!==We&&(y+="rotate("+u+er),h!==We&&(y+="rotateY("+h+er),l!==We&&(y+="rotateX("+l+er),f===We&&d===We||(y+="skew("+f+", "+d+er),1===p&&1===c||(y+="scale("+p+", "+c+er),g.style[Qe]=y||"translate(0, 0)"},ir=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,d=o.rotation,p=o.skewX,c=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,b=o.xOffset,T=o.yOffset,w=o.forceCSS,x=parseFloat(l),O=parseFloat(f);d=parseFloat(d),p=parseFloat(p),(c=parseFloat(c))&&(p+=c=parseFloat(c),d+=c),d||p?(d*=Be,p*=Be,r=Math.cos(d)*_,i=Math.sin(d)*_,n=Math.sin(d-p)*-m,a=Math.cos(d-p)*m,p&&(c*=Be,s=Math.tan(p-c),n*=s=Math.sqrt(1+s*s),a*=s,c&&(s=Math.tan(c),r*=s=Math.sqrt(1+s*s),i*=s)),r=ca(r),i=ca(i),n=ca(n),a=ca(a)):(r=_,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||O&&!~(f+"").indexOf("px"))&&(x=Bd(g,"x",l,"px"),O=Bd(g,"y",f,"px")),(v||y||b||T)&&(x=ca(x+v-(v*r+y*n)+b),O=ca(O+y-(v*i+y*a)+T)),(u||h)&&(s=g.getBBox(),x=ca(x+u/100*s.width),O=ca(O+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+O+")",g.setAttribute("transform",s),w&&(g.style[Qe]=s)};ba("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});Je[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return Cd(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var nr,ar,sr,or={name:"css",register:td,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,r,i,n){var a,s,u,h,l,f,d,p,c,_,m,g,v,y,b,T=this._props,w=t.style,x=r.vars.startAt;for(d in fe||td(),e)if("autoRound"!==d&&(s=e[d],!ft[d]||!Tb(d,e,r,i,t,n)))if(l=typeof s,f=Je[d],"function"===l&&(l=typeof(s=s.call(r,i,t,n))),"string"===l&&~s.indexOf("random(")&&(s=gb(s)),f)f(this,t,d,s,r)&&(b=1);else if("--"===d.substr(0,2))a=(getComputedStyle(t).getPropertyValue(d)+"").trim(),s+="",Pt.lastIndex=0,Pt.test(a)||(p=Qa(a),c=Qa(s)),c?p!==c&&(a=Bd(t,d,a,c)+c):p&&(s+=p),this.add(w,"setProperty",a,s,i,n,0,0,d),T.push(d);else if("undefined"!==l){if(x&&d in x?(a="function"==typeof x[d]?x[d].call(r,i,t,n):x[d],o(a)&&~a.indexOf("random(")&&(a=gb(a)),Qa(a+"")||(a+=Y.units[d]||Qa(Cd(t,d))||""),"="===(a+"").charAt(1)&&(a=Cd(t,d))):a=Cd(t,d),h=parseFloat(a),(_="string"===l&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),u=parseFloat(s),d in Ne&&("autoAlpha"===d&&(1===h&&"hidden"===Cd(t,"visibility")&&u&&(h=0),zd(this,w,"visibility",h?"inherit":"hidden",u?"inherit":"hidden",!u)),"scale"!==d&&"transform"!==d&&~(d=Ne[d]).indexOf(",")&&(d=d.split(",")[0])),m=d in Fe)if(g||((v=t._gsap).renderTransform&&!e.parseTransform||Ze(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new ae(this._pt,w,Qe,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===d)this._pt=new ae(this._pt,v,"scaleY",v.scaleY,(_?_*u:u-v.scaleY)||0),T.push("scaleY",d),d+="X";else{if("transformOrigin"===d){s=Fd(s),v.svg?Nd(t,s,0,y,0,this):((c=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&zd(this,v,"zOrigin",v.zOrigin,c),zd(this,w,d,Ke(a),Ke(s)));continue}if("svgOrigin"===d){Nd(t,s,1,y,0,this);continue}if(d in $e){Xd(this,v,d,h,s,_);continue}if("smoothOrigin"===d){zd(this,v,"smooth",v.smooth,s);continue}if("force3D"===d){v[d]=s;continue}if("transform"===d){Zd(this,s,t);continue}}else d in w||(d=Xe(d)||d);if(m||(u||0===u)&&(h||0===h)&&!qe.test(s)&&d in w)u=u||0,(p=(a+"").substr((h+"").length))!==(c=Qa(s)||(d in Y.units?Y.units[d]:p))&&(h=Bd(t,d,a,c)),this._pt=new ae(this._pt,m?v:w,d,h,_?_*u:u-h,m||"px"!==c&&"zIndex"!==d||!1===e.autoRound?ad:dd),this._pt.u=c||0,p!==c&&"%"!==c&&(this._pt.b=a,this._pt.r=cd);else if(d in w)Dd.call(this,t,d,a,s);else{if(!(d in t)){N(d,s);continue}this.add(t,d,a||t[d],s,i,n)}T.push(d)}b&&ne(this)},get:Cd,aliases:Ne,getSetter:function getSetter(t,e,i){var n=Ne[e];return n&&n.indexOf(",")<0&&(e=n),e in Fe&&e!==Ye&&(t._gsap.x||Cd(t,"x"))?i&&pe===i?"scale"===e?jd:id:(pe=i||{})&&("scale"===e?kd:ld):t.style&&!r(t.style[e])?gd:~e.indexOf("-")?hd:Kt(t,e)},core:{_removeProperty:yd,_getMatrix:Md}};oe.utils.checkPrefix=Xe,sr=ba((nr="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ar="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Fe[t]=1}),ba(ar,function(t){Y.units[t]="deg",$e[t]=1}),Ne[sr[13]]=nr+","+ar,ba("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Ne[e[1]]=sr[e[0]]}),ba("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){Y.units[t]="px"}),oe.registerPlugin(or);var ur=oe.registerPlugin(or)||oe,hr=ur.core.Tween;e.Back=Ce,e.Bounce=Ae,e.CSSPlugin=or,e.Circ=ze,e.Cubic=we,e.Elastic=ke,e.Expo=De,e.Linear=be,e.Power0=_e,e.Power1=me,e.Power2=ge,e.Power3=ve,e.Power4=ye,e.Quad=Te,e.Quart=xe,e.Quint=Oe,e.Sine=Se,e.SteppedEase=Pe,e.Strong=Me,e.TimelineLite=Nt,e.TimelineMax=Nt,e.TweenLite=Jt,e.TweenMax=hr,e.default=ur,e.gsap=ur;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});

;
/*! ScrollMagic v2.0.8 | (c) 2020 Jan Paepke (@janpaepke) | license & info: http://scrollmagic.io */
!function(e,n){var r;"function"==typeof define&&define.amd?define(["ScrollMagic","gsap","TweenMax","TimelineMax"],n):"object"==typeof exports?(r=require("gsap/dist/gsap")||require("gsap"),n(require("scrollmagic"),r,TweenMax||r,TimelineMax||r)):n(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.gsap,e.gsap||e.TweenMax||e.TweenLite,e.gsap||e.TimelineMax||e.TimelineLite)}(this,function(e,n,p,u){"use strict";var g=n&&3<=parseFloat(n.version);e.Scene.addOption("tweenChanges",!1,function(e){return!!e}),e.Scene.extend(function(){var o,i=this;i.on("progress.plugin_gsap",function(){s()}),i.on("destroy.plugin_gsap",function(e){i.removeTween(e.reset)});var s=function(){var e,n;o&&(e=i.progress(),n=i.state(),o.repeat&&-1===o.repeat()?"DURING"===n&&o.paused()?o.play():"DURING"===n||o.paused()||o.pause():e!=o.progress()&&(0===i.duration()?0<e?o.play():o.reverse():i.tweenChanges()&&o.tweenTo?o.tweenTo(e*o.duration()):o.progress(e).pause()))};i.setTween=function(e,n,r){var t,a;1<arguments.length&&(a="number"==typeof arguments[1],g?(a||(r=n),r.hasOwnProperty("duration")||(r.duration=a?n:1)):arguments.length<3&&(r=n,n=1),e=g?p.to(e,r):p.to(e,n,r));try{(t=u&&!g?new u({smoothChildTiming:!0}).add(e):e).pause()}catch(e){return i}return o&&i.removeTween(),o=t,e.repeat&&-1===e.repeat()&&(o.repeat(-1),o.yoyo(e.yoyo())),s(),i},i.removeTween=function(e){return o&&(e&&o.progress(0).pause(),o.kill(),o=void 0),i}})});;
/*!
  * PhotoSwipe 5.3.5 - https://photoswipe.com
  * (c) 2023 Dmytro Semenov
  */
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).PhotoSwipe=i()}(this,(function(){"use strict";function t(t,i,s){const h=document.createElement(i);return t&&(h.className=t),s&&s.appendChild(h),h}function i(t,i){return t.x=i.x,t.y=i.y,void 0!==i.id&&(t.id=i.id),t}function s(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function h(t,i){const s=Math.abs(t.x-i.x),h=Math.abs(t.y-i.y);return Math.sqrt(s*s+h*h)}function e(t,i){return t.x===i.x&&t.y===i.y}function n(t,i,s){return Math.min(Math.max(t,i),s)}function o(t,i,s){let h=`translate3d(${t}px,${i||0}px,0)`;return void 0!==s&&(h+=` scale3d(${s},${s},1)`),h}function r(t,i,s,h){t.style.transform=o(i,s,h)}function a(t,i,s,h){t.style.transition=i?`${i} ${s}ms ${h||"cubic-bezier(.4,0,.22,1)"}`:"none"}function c(t,i,s){t.style.width="number"==typeof i?`${i}px`:i,t.style.height="number"==typeof s?`${s}px`:s}const l="idle",u="loading",d="loaded",p="error";function m(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}let f=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{f=!0}}))}catch(t){}class w{constructor(){this.t=[]}add(t,i,s,h){this.i(t,i,s,h)}remove(t,i,s,h){this.i(t,i,s,h,!0)}removeAll(){this.t.forEach((t=>{this.i(t.target,t.type,t.listener,t.passive,!0,!0)})),this.t=[]}i(t,i,s,h,e,n){if(!t)return;const o=e?"removeEventListener":"addEventListener";i.split(" ").forEach((i=>{if(i){n||(e?this.t=this.t.filter((h=>h.type!==i||h.listener!==s||h.target!==t)):this.t.push({target:t,type:i,listener:s,passive:h}));const r=!!f&&{passive:h||!1};t[o](i,s,r)}}))}}function g(t,i){if(t.getViewportSizeFn){const s=t.getViewportSizeFn(t,i);if(s)return s}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function v(t,i,s,h,e){let n=0;if(i.paddingFn)n=i.paddingFn(s,h,e)[t];else if(i.padding)n=i.padding[t];else{const s="padding"+t[0].toUpperCase()+t.slice(1);i[s]&&(n=i[s])}return Number(n)||0}function y(t,i,s,h){return{x:i.x-v("left",t,i,s,h)-v("right",t,i,s,h),y:i.y-v("top",t,i,s,h)-v("bottom",t,i,s,h)}}class _{constructor(t){this.slide=t,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(t){this.currZoomLevel=t,this.slide.width?(this.o("x"),this.o("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}o(t){const{pswp:i}=this.slide,s=this.slide["x"===t?"width":"height"]*this.currZoomLevel,h=v("x"===t?"left":"top",i.options,i.viewportSize,this.slide.data,this.slide.index),e=this.slide.panAreaSize[t];this.center[t]=Math.round((e-s)/2)+h,this.max[t]=s>e?Math.round(e-s)+h:this.center[t],this.min[t]=s>e?h:this.center[t]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(t,i){return n(i,this.max[t],this.min[t])}}class x{constructor(t,i,s,h){this.pswp=h,this.options=t,this.itemData=i,this.index=s,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,i,s){const h={x:t,y:i};this.elementSize=h,this.panAreaSize=s;const e=s.x/h.x,n=s.y/h.y;this.fit=Math.min(1,e<n?e:n),this.fill=Math.min(1,e>n?e:n),this.vFill=Math.min(1,n),this.initial=this.l(),this.secondary=this.u(),this.max=Math.max(this.initial,this.secondary,this.p()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}m(t){const i=t+"ZoomLevel",s=this.options[i];if(s)return"function"==typeof s?s(this):"fill"===s?this.fill:"fit"===s?this.fit:Number(s)}u(){let t=this.m("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>4e3&&(t=4e3/this.elementSize.x),t)}l(){return this.m("initial")||this.fit}p(){return this.m("max")||Math.max(1,4*this.fit)}}class b{constructor(i,s,h){this.data=i,this.index=s,this.pswp=h,this.isActive=s===h.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!h.opener.isOpen,this.zoomLevels=new x(h.options,i,s,h),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:s}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=t("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new _(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(t){t&&!this.isActive?this.activate():!t&&this.isActive&&this.deactivate()}append(t){this.holderElement=t,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:t}=this;!this.heavyAppended&&t.opener.isOpen&&!t.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(t){const i=this.currentResolution||this.zoomLevels.initial;if(!i)return;const s=Math.round(this.width*i)||this.pswp.viewportSize.x,h=Math.round(this.height*i)||this.pswp.viewportSize.y;(this.sizeChanged(s,h)||t)&&this.content.setDisplayedSize(s,h)}sizeChanged(t,i){return(t!==this.prevDisplayedWidth||i!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=t,this.prevDisplayedHeight=i,!0)}getPlaceholderElement(){return this.content.placeholder?.element}zoomTo(t,i,h,e){const{pswp:o}=this;if(!this.isZoomable()||o.mainScroll.isShifted())return;o.dispatch("beforeZoomTo",{destZoomLevel:t,centerPoint:i,transitionDuration:h}),o.animations.stopAllPan();const r=this.currZoomLevel;e||(t=n(t,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(t),this.pan.x=this.calculateZoomToPanOffset("x",i,r),this.pan.y=this.calculateZoomToPanOffset("y",i,r),s(this.pan);const a=()=>{this.g(t),this.applyCurrentZoomPan()};h?o.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:a,duration:h,easing:o.options.easing}):a()}toggleZoom(t){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,t,this.pswp.options.zoomAnimationDuration)}setZoomLevel(t){this.currZoomLevel=t,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(t,i,s){if(0===this.bounds.max[t]-this.bounds.min[t])return this.bounds.center[t];i||(i=this.pswp.getViewportCenterPoint()),s||(s=this.zoomLevels.initial);const h=this.currZoomLevel/s;return this.bounds.correctPan(t,(this.pan[t]-i[t])*h+i[t])}panTo(t,i){this.pan.x=this.bounds.correctPan("x",t),this.pan.y=this.bounds.correctPan("y",i),this.applyCurrentZoomPan()}isPannable(){return Boolean(this.width)&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return Boolean(this.width)&&this.content.isZoomable()}applyCurrentZoomPan(){this.v(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),i(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}v(t,i,s){s/=this.currentResolution||this.zoomLevels.initial,r(this.container,t,i,s)}calculateSize(){const{pswp:t}=this;i(this.panAreaSize,y(t.options,t.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),t.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const t=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return o(this.pan.x,this.pan.y,t)}g(t){t!==this.currentResolution&&(this.currentResolution=t,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class S{constructor(t){this.gestures=t,this.pswp=t.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&i(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:t,prevP1:i,dragAxis:h}=this.gestures,{currSlide:e}=this.pswp;if("y"===h&&this.pswp.options.closeOnVerticalDrag&&e&&e.currZoomLevel<=e.zoomLevels.fit&&!this.gestures.isMultitouch){const s=e.pan.y+(t.y-i.y);if(!this.pswp.dispatch("verticalDrag",{panY:s}).defaultPrevented){this._("y",s,.6);const t=1-Math.abs(this.S(e.pan.y));this.pswp.applyBgOpacity(t),e.applyCurrentZoomPan()}}else{this.M("x")||(this.M("y"),e&&(s(e.pan),e.applyCurrentZoomPan()))}}end(){const{velocity:t}=this.gestures,{mainScroll:i,currSlide:s}=this.pswp;let h=0;if(this.pswp.animations.stopAll(),i.isShifted()){const s=(i.x-i.getCurrSlideX())/this.pswp.viewportSize.x;t.x<-.5&&s<0||t.x<.1&&s<-.5?(h=1,t.x=Math.min(t.x,0)):(t.x>.5&&s>0||t.x>-.1&&s>.5)&&(h=-1,t.x=Math.max(t.x,0)),i.moveIndexBy(h,!0,t.x)}s&&s.currZoomLevel>s.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this.P("x"),this.P("y"))}P(t){const{velocity:i}=this.gestures,{currSlide:s}=this.pswp;if(!s)return;const{pan:h,bounds:e}=s,o=h[t],r=this.pswp.bgOpacity<1&&"y"===t,a=o+function(t,i){return t*i/(1-i)}(i[t],.995);if(r){const t=this.S(o),i=this.S(a);if(t<0&&i<-.4||t>0&&i>.4)return void this.pswp.close()}const c=e.correctPan(t,a);if(o===c)return;const l=c===a?1:.82,u=this.pswp.bgOpacity,d=c-o;this.pswp.animations.startSpring({name:"panGesture"+t,isPan:!0,start:o,end:c,velocity:i[t],dampingRatio:l,onUpdate:i=>{if(r&&this.pswp.bgOpacity<1){const t=1-(c-i)/d;this.pswp.applyBgOpacity(n(u+(1-u)*t,0,1))}h[t]=Math.floor(i),s.applyCurrentZoomPan()}})}M(t){const{p1:i,dragAxis:s,prevP1:h,isMultitouch:e}=this.gestures,{currSlide:n,mainScroll:o}=this.pswp,r=i[t]-h[t],a=o.x+r;if(!r||!n)return!1;if("x"===t&&!n.isPannable()&&!e)return o.moveTo(a,!0),!0;const{bounds:c}=n,l=n.pan[t]+r;if(this.pswp.options.allowPanToNext&&"x"===s&&"x"===t&&!e){const i=o.getCurrSlideX(),s=o.x-i,h=r>0,e=!h;if(l>c.min[t]&&h){if(c.min[t]<=this.startPan[t])return o.moveTo(a,!0),!0;this._(t,l)}else if(l<c.max[t]&&e){if(this.startPan[t]<=c.max[t])return o.moveTo(a,!0),!0;this._(t,l)}else if(0!==s){if(s>0)return o.moveTo(Math.max(a,i),!0),!0;if(s<0)return o.moveTo(Math.min(a,i),!0),!0}else this._(t,l)}else"y"===t&&(o.isShifted()||c.min.y===c.max.y)||this._(t,l);return!1}S(t){return(t-(this.pswp.currSlide?.bounds.center.y??0))/(this.pswp.viewportSize.y/3)}_(t,i,s){const{currSlide:h}=this.pswp;if(!h)return;const{pan:e,bounds:n}=h;if(n.correctPan(t,i)!==i||s){const h=Math.round(i-e[t]);e[t]+=h*(s||.35)}else e[t]=i}}function z(t,i,s){return t.x=(i.x+s.x)/2,t.y=(i.y+s.y)/2,t}class M{constructor(t){this.gestures=t,this.C={x:0,y:0},this.T={x:0,y:0},this.A={x:0,y:0},this.D=!1,this.I=1}start(){const{currSlide:t}=this.gestures.pswp;t&&(this.I=t.currZoomLevel,i(this.C,t.pan)),this.gestures.pswp.animations.stopAllPan(),this.D=!1}change(){const{p1:t,startP1:i,p2:s,startP2:e,pswp:n}=this.gestures,{currSlide:o}=n;if(!o)return;const r=o.zoomLevels.min,a=o.zoomLevels.max;if(!o.isZoomable()||n.mainScroll.isShifted())return;z(this.T,i,e),z(this.A,t,s);let c=1/h(i,e)*h(t,s)*this.I;if(c>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this.D=!0),c<r)if(n.options.pinchToClose&&!this.D&&this.I<=o.zoomLevels.initial){const t=1-(r-c)/(r/1.2);n.dispatch("pinchClose",{bgOpacity:t}).defaultPrevented||n.applyBgOpacity(t)}else c=r-.15*(r-c);else c>a&&(c=a+.05*(c-a));o.pan.x=this.L("x",c),o.pan.y=this.L("y",c),o.setZoomLevel(c),o.applyCurrentZoomPan()}end(){const{pswp:t}=this.gestures,{currSlide:i}=t;(!i||i.currZoomLevel<i.zoomLevels.initial)&&!this.D&&t.options.pinchToClose?t.close():this.correctZoomPan()}L(t,i){const s=i/this.I;return this.A[t]-(this.T[t]-this.C[t])*s}correctZoomPan(t){const{pswp:s}=this.gestures,{currSlide:h}=s;if(!h?.isZoomable())return;0===this.A.x&&(t=!0);const o=h.currZoomLevel;let r,a=!0;o<h.zoomLevels.initial?r=h.zoomLevels.initial:o>h.zoomLevels.max?r=h.zoomLevels.max:(a=!1,r=o);const c=s.bgOpacity,l=s.bgOpacity<1,u=i({x:0,y:0},h.pan);let d=i({x:0,y:0},u);t&&(this.A.x=0,this.A.y=0,this.T.x=0,this.T.y=0,this.I=o,i(this.C,u)),a&&(d={x:this.L("x",r),y:this.L("y",r)}),h.setZoomLevel(r),d={x:h.bounds.correctPan("x",d.x),y:h.bounds.correctPan("y",d.y)},h.setZoomLevel(o);const p=!e(d,u);if(!p&&!a&&!l)return h.g(r),void h.applyCurrentZoomPan();s.animations.stopAllPan(),s.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:t=>{if(t/=1e3,p||a){if(p&&(h.pan.x=u.x+(d.x-u.x)*t,h.pan.y=u.y+(d.y-u.y)*t),a){const i=o+(r-o)*t;h.setZoomLevel(i)}h.applyCurrentZoomPan()}l&&s.bgOpacity<1&&s.applyBgOpacity(n(c+(1-c)*t,0,1))},onComplete:()=>{h.g(r),h.applyCurrentZoomPan()}})}}function P(t){return!!t.target.closest(".pswp__container")}class C{constructor(t){this.gestures=t}click(t,i){const s=i.target.classList,h=s.contains("pswp__img"),e=s.contains("pswp__item")||s.contains("pswp__zoom-wrap");h?this.k("imageClick",t,i):e&&this.k("bgClick",t,i)}tap(t,i){P(i)&&this.k("tap",t,i)}doubleTap(t,i){P(i)&&this.k("doubleTap",t,i)}k(t,i,s){const{pswp:h}=this.gestures,{currSlide:e}=h,n=t+"Action",o=h.options[n];if(!h.dispatch(n,{point:i,originalEvent:s}).defaultPrevented)if("function"!=typeof o)switch(o){case"close":case"next":h[o]();break;case"zoom":e?.toggleZoom(i);break;case"zoom-or-close":e?.isZoomable()&&e.zoomLevels.secondary!==e.zoomLevels.initial?e.toggleZoom(i):h.options.clickToCloseNonZoomable&&h.close();break;case"toggle-controls":this.gestures.pswp.element?.classList.toggle("pswp--ui-visible")}else o.call(h,i,s)}}class T{constructor(t){this.pswp=t,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this.Z={x:0,y:0},this.B={x:0,y:0},this.F=0,this.O=[],this.R="ontouchstart"in window,this.N=!!window.PointerEvent,this.supportsTouch=this.R||this.N&&navigator.maxTouchPoints>1,this.F=0,this.U=0,this.V=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this.G=null,this.supportsTouch||(t.options.allowPanToNext=!1),this.drag=new S(this),this.zoomLevels=new M(this),this.tapHandler=new C(this),t.on("bindEvents",(()=>{t.events.add(t.scrollWrap,"click",this.$.bind(this)),this.N?this.q("pointer","down","up","cancel"):this.R?(this.q("touch","start","end","cancel"),t.scrollWrap&&(t.scrollWrap.ontouchmove=()=>{},t.scrollWrap.ontouchend=()=>{})):this.q("mouse","down","up")}))}q(t,i,s,h){const{pswp:e}=this,{events:n}=e,o=h?t+h:"";n.add(e.scrollWrap,t+i,this.onPointerDown.bind(this)),n.add(window,t+"move",this.onPointerMove.bind(this)),n.add(window,t+s,this.onPointerUp.bind(this)),o&&n.add(e.scrollWrap,o,this.onPointerUp.bind(this))}onPointerDown(t){const s="mousedown"===t.type||"mouse"===t.pointerType;if(s&&t.button>0)return;const{pswp:h}=this;h.opener.isOpen?h.dispatch("pointerDown",{originalEvent:t}).defaultPrevented||(s&&(h.mouseDetected(),this.H(t)),h.animations.stopAll(),this.K(t,"down"),1===this.F&&(this.dragAxis=null,i(this.startP1,this.p1)),this.F>1?(this.W(),this.isMultitouch=!0):this.isMultitouch=!1):t.preventDefault()}onPointerMove(t){t.preventDefault(),this.F&&(this.K(t,"move"),this.pswp.dispatch("pointerMove",{originalEvent:t}).defaultPrevented||(1!==this.F||this.isDragging?this.F>1&&!this.isZooming&&(this.j(),this.isZooming=!0,this.X(),this.zoomLevels.start(),this.Y(),this.J()):(this.dragAxis||this.tt(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this.W(),this.X(),this.U=Date.now(),this.V=!1,i(this.B,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this.Y(),this.J()))))}j(){this.isDragging&&(this.isDragging=!1,this.V||this.it(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(t){this.F&&(this.K(t,"up"),this.pswp.dispatch("pointerUp",{originalEvent:t}).defaultPrevented||(0===this.F&&(this.Y(),this.isDragging?this.j():this.isZooming||this.isMultitouch||this.st(t)),this.F<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this.F&&(this.dragAxis=null,this.X()))))}J(){(this.isDragging||this.isZooming)&&(this.it(),this.isDragging?e(this.p1,this.prevP1)||this.drag.change():e(this.p1,this.prevP1)&&e(this.p2,this.prevP2)||this.zoomLevels.change(),this.ht(),this.raf=requestAnimationFrame(this.J.bind(this)))}it(t){const s=Date.now(),h=s-this.U;h<50&&!t||(this.velocity.x=this.et("x",h),this.velocity.y=this.et("y",h),this.U=s,i(this.B,this.p1),this.V=!0)}st(t){const{mainScroll:s}=this.pswp;if(s.isShifted())return void s.moveIndexBy(0,!0);if(t.type.indexOf("cancel")>0)return;if("mouseup"===t.type||"mouse"===t.pointerType)return void this.tapHandler.click(this.startP1,t);const e=this.pswp.options.doubleTapAction?300:0;this.G?(this.W(),h(this.Z,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,t)):(i(this.Z,this.startP1),this.G=setTimeout((()=>{this.tapHandler.tap(this.startP1,t),this.W()}),e))}W(){this.G&&(clearTimeout(this.G),this.G=null)}et(t,i){const s=this.p1[t]-this.B[t];return Math.abs(s)>1&&i>5?s/i:0}Y(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}H(t){t.preventDefault()}K(t,s){if(this.N){const h=t,e=this.O.findIndex((t=>t.id===h.pointerId));"up"===s&&e>-1?this.O.splice(e,1):"down"===s&&-1===e?this.O.push(this.nt(h,{x:0,y:0})):e>-1&&this.nt(h,this.O[e]),this.F=this.O.length,this.F>0&&i(this.p1,this.O[0]),this.F>1&&i(this.p2,this.O[1])}else{const i=t;this.F=0,i.type.indexOf("touch")>-1?i.touches&&i.touches.length>0&&(this.nt(i.touches[0],this.p1),this.F++,i.touches.length>1&&(this.nt(i.touches[1],this.p2),this.F++)):(this.nt(t,this.p1),"up"===s?this.F=0:this.F++)}}ht(){i(this.prevP1,this.p1),i(this.prevP2,this.p2)}X(){i(this.startP1,this.p1),i(this.startP2,this.p2),this.ht()}tt(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const t=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==t){const i=t>0?"x":"y";Math.abs(this.p1[i]-this.startP1[i])>=10&&(this.dragAxis=i)}}}nt(t,i){return i.x=t.pageX-this.pswp.offset.x,i.y=t.pageY-this.pswp.offset.y,"pointerId"in t?i.id=t.pointerId:void 0!==t.identifier&&(i.id=t.identifier),i}$(t){this.pswp.mainScroll.isShifted()&&(t.preventDefault(),t.stopPropagation())}}class A{constructor(t){this.pswp=t,this.x=0,this.slideWidth=0,this.ot=0,this.rt=0,this.ct=-1,this.itemHolders=[]}resize(t){const{pswp:i}=this,s=Math.round(i.viewportSize.x+i.viewportSize.x*i.options.spacing),h=s!==this.slideWidth;h&&(this.slideWidth=s,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach(((i,s)=>{h&&r(i.el,(s+this.ct)*this.slideWidth),t&&i.slide&&i.slide.resize()}))}resetPosition(){this.ot=0,this.rt=0,this.slideWidth=0,this.ct=-1}appendHolders(){this.itemHolders=[];for(let i=0;i<3;i++){const s=t("pswp__item","div",this.pswp.container);s.setAttribute("role","group"),s.setAttribute("aria-roledescription","slide"),s.setAttribute("aria-hidden","true"),s.style.display=1===i?"block":"none",this.itemHolders.push({el:s})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(t,i,s){const{pswp:h}=this;let e=h.potentialIndex+t;const n=h.getNumItems();if(h.canLoop()){e=h.getLoopedIndex(e);const i=(t+n)%n;t=i<=n/2?i:i-n}else e<0?e=0:e>=n&&(e=n-1),t=e-h.potentialIndex;h.potentialIndex=e,this.ot-=t,h.animations.stopMainScroll();const o=this.getCurrSlideX();if(i){h.animations.startSpring({isMainScroll:!0,start:this.x,end:o,velocity:s||0,naturalFrequency:30,dampingRatio:1,onUpdate:t=>{this.moveTo(t)},onComplete:()=>{this.updateCurrItem(),h.appendHeavy()}});let t=h.potentialIndex-h.currIndex;if(h.canLoop()){const i=(t+n)%n;t=i<=n/2?i:i-n}Math.abs(t)>1&&this.updateCurrItem()}else this.moveTo(o),this.updateCurrItem();return Boolean(t)}getCurrSlideX(){return this.slideWidth*this.ot}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){const{pswp:t}=this,i=this.rt-this.ot;if(!i)return;this.rt=this.ot,t.currIndex=t.potentialIndex;let s,h=Math.abs(i);h>=3&&(this.ct+=i+(i>0?-3:3),h=3);for(let e=0;e<h;e++)i>0?(s=this.itemHolders.shift(),s&&(this.itemHolders[2]=s,this.ct++,r(s.el,(this.ct+2)*this.slideWidth),t.setContent(s,t.currIndex-h+e+2))):(s=this.itemHolders.pop(),s&&(this.itemHolders.unshift(s),this.ct--,r(s.el,this.ct*this.slideWidth),t.setContent(s,t.currIndex+h-e-2)));Math.abs(this.ct)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),t.animations.stopAllPan(),this.itemHolders.forEach(((t,i)=>{t.slide&&t.slide.setIsActive(1===i)})),t.currSlide=this.itemHolders[1]?.slide,t.contentLoader.updateLazy(i),t.currSlide&&t.currSlide.applyCurrentZoomPan(),t.dispatch("change")}moveTo(t,i){if(!this.pswp.canLoop()&&i){let i=(this.slideWidth*this.ot-t)/this.slideWidth;i+=this.pswp.currIndex;const s=Math.round(t-this.x);(i<0&&s>0||i>=this.pswp.getNumItems()-1&&s<0)&&(t=this.x+.35*s)}this.x=t,this.pswp.container&&r(this.pswp.container,t),this.pswp.dispatch("moveMainScroll",{x:t,dragging:i??!1})}}const D={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},I=(t,i)=>i?t:D[t];class E{constructor(t){this.pswp=t,this.lt=!1,t.on("bindEvents",(()=>{t.options.initialPointerPos||this.ut(),t.events.add(document,"focusin",this.dt.bind(this)),t.events.add(document,"keydown",this.ft.bind(this))}));const i=document.activeElement;t.on("destroy",(()=>{t.options.returnFocus&&i&&this.lt&&i.focus()}))}ut(){!this.lt&&this.pswp.element&&(this.pswp.element.focus(),this.lt=!0)}ft(t){const{pswp:i}=this;if(i.dispatch("keydown",{originalEvent:t}).defaultPrevented)return;if(function(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}(t))return;let s,h,e=!1;const n="key"in t;switch(n?t.key:t.keyCode){case I("Escape",n):i.options.escKey&&(s="close");break;case I("z",n):s="toggleZoom";break;case I("ArrowLeft",n):h="x";break;case I("ArrowUp",n):h="y";break;case I("ArrowRight",n):h="x",e=!0;break;case I("ArrowDown",n):e=!0,h="y";break;case I("Tab",n):this.ut()}if(h){t.preventDefault();const{currSlide:n}=i;i.options.arrowKeys&&"x"===h&&i.getNumItems()>1?s=e?"next":"prev":n&&n.currZoomLevel>n.zoomLevels.fit&&(n.pan[h]+=e?-80:80,n.panTo(n.pan.x,n.pan.y))}s&&(t.preventDefault(),i[s]())}dt(t){const{template:i}=this.pswp;i&&document!==t.target&&i!==t.target&&!i.contains(t.target)&&i.focus()}}const L="cubic-bezier(.4,0,.22,1)";class k{constructor(t){this.props=t;const{target:i,onComplete:s,transform:h,onFinish:e=(()=>{}),duration:n=333,easing:o=L}=t;this.onFinish=e;const r=h?"transform":"opacity",c=t[r]??"";this.wt=i,this.gt=s,this.vt=!1,this.yt=this.yt.bind(this),this._t=setTimeout((()=>{a(i,r,n,o),this._t=setTimeout((()=>{i.addEventListener("transitionend",this.yt,!1),i.addEventListener("transitioncancel",this.yt,!1),this._t=setTimeout((()=>{this.xt()}),n+500),i.style[r]=c}),30)}),0)}yt(t){t.target===this.wt&&this.xt()}xt(){this.vt||(this.vt=!0,this.onFinish(),this.gt&&this.gt())}destroy(){this._t&&clearTimeout(this._t),a(this.wt),this.wt.removeEventListener("transitionend",this.yt,!1),this.wt.removeEventListener("transitioncancel",this.yt,!1),this.vt||this.xt()}}class Z{constructor(t,i,s){this.velocity=1e3*t,this.bt=i||.75,this.St=s||12,this.zt=this.St,this.bt<1&&(this.zt*=Math.sqrt(1-this.bt*this.bt))}easeFrame(t,i){let s,h=0;i/=1e3;const e=Math.E**(-this.bt*this.St*i);if(1===this.bt)s=this.velocity+this.St*t,h=(t+s*i)*e,this.velocity=h*-this.St+s*e;else if(this.bt<1){s=1/this.zt*(this.bt*this.St*t+this.velocity);const n=Math.cos(this.zt*i),o=Math.sin(this.zt*i);h=e*(t*n+s*o),this.velocity=h*-this.St*this.bt+e*(-this.zt*t*o+this.zt*s*n)}return h}}class B{constructor(t){this.props=t,this.Mt=0;const{start:i,end:s,velocity:h,onUpdate:e,onComplete:n,onFinish:o=(()=>{}),dampingRatio:r,naturalFrequency:a}=t;this.onFinish=o;const c=new Z(h,r,a);let l=Date.now(),u=i-s;const d=()=>{this.Mt&&(u=c.easeFrame(u,Date.now()-l),Math.abs(u)<1&&Math.abs(c.velocity)<50?(e(s),n&&n(),this.onFinish()):(l=Date.now(),e(u+s),this.Mt=requestAnimationFrame(d)))};this.Mt=requestAnimationFrame(d)}destroy(){this.Mt>=0&&cancelAnimationFrame(this.Mt),this.Mt=0}}class F{constructor(){this.activeAnimations=[]}startSpring(t){this.Pt(t,!0)}startTransition(t){this.Pt(t)}Pt(t,i){const s=i?new B(t):new k(t);return this.activeAnimations.push(s),s.onFinish=()=>this.stop(s),s}stop(t){t.destroy();const i=this.activeAnimations.indexOf(t);i>-1&&this.activeAnimations.splice(i,1)}stopAll(){this.activeAnimations.forEach((t=>{t.destroy()})),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter((t=>!t.props.isPan||(t.destroy(),!1)))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter((t=>!t.props.isMainScroll||(t.destroy(),!1)))}isPanRunning(){return this.activeAnimations.some((t=>t.props.isPan))}}class O{constructor(t){this.pswp=t,t.events.add(t.element,"wheel",this.Ct.bind(this))}Ct(t){t.preventDefault();const{currSlide:i}=this.pswp;let{deltaX:s,deltaY:h}=t;if(i&&!this.pswp.dispatch("wheel",{originalEvent:t}).defaultPrevented)if(t.ctrlKey||this.pswp.options.wheelToZoom){if(i.isZoomable()){let s=-h;1===t.deltaMode?s*=.05:s*=t.deltaMode?1:.002,s=2**s;const e=i.currZoomLevel*s;i.zoomTo(e,{x:t.clientX,y:t.clientY})}}else i.isPannable()&&(1===t.deltaMode&&(s*=18,h*=18),i.panTo(i.pan.x-s,i.pan.y-h))}}class R{constructor(i,s){const h=s.name||s.className;let e=s.html;if(!1===i.options[h])return;"string"==typeof i.options[h+"SVG"]&&(e=i.options[h+"SVG"]),i.dispatch("uiElementCreate",{data:s});let n="";s.isButton?(n+="pswp__button ",n+=s.className||`pswp__button--${s.name}`):n+=s.className||`pswp__${s.name}`;let o=s.isButton?s.tagName||"button":s.tagName||"div";o=o.toLowerCase();const r=t(n,o);if(s.isButton){"button"===o&&(r.type="button");let{title:t}=s;const{ariaLabel:e}=s;"string"==typeof i.options[h+"Title"]&&(t=i.options[h+"Title"]),t&&(r.title=t);const n=e||t;n&&r.setAttribute("aria-label",n)}r.innerHTML=function(t){if("string"==typeof t)return t;if(!t||!t.isCustomSVG)return"";const i=t;let s='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return s=s.split("%d").join(i.size||32),i.outlineID&&(s+='<use class="pswp__icn-shadow" xlink:href="#'+i.outlineID+'"/>'),s+=i.inner,s+="</svg>",s}(e),s.onInit&&s.onInit(r,i),s.onClick&&(r.onclick=t=>{"string"==typeof s.onClick?i[s.onClick]():"function"==typeof s.onClick&&s.onClick(t,r,i)});const a=s.appendTo||"bar";let c=i.element;"bar"===a?(i.topBar||(i.topBar=t("pswp__top-bar pswp__hide-on-close","div",i.scrollWrap)),c=i.topBar):(r.classList.add("pswp__hide-on-close"),"wrapper"===a&&(c=i.scrollWrap)),c?.appendChild(i.applyFilters("uiElement",r,s))}}function N(t,i,s){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),i.on("change",(()=>{i.options.loop||(t.disabled=s?!(i.currIndex<i.getNumItems()-1):!(i.currIndex>0))}))}const U={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:N},V={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,i)=>{N(t,i,!0)}},G={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},$={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},q={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(t,i)=>{let s,h=null;const e=i=>{var h,e;s!==i&&(s=i,h="active",e=i,t.classList[e?"add":"remove"]("pswp__preloader--"+h))},n=()=>{if(!i.currSlide?.content.isLoading())return e(!1),void(h&&(clearTimeout(h),h=null));h||(h=setTimeout((()=>{e(Boolean(i.currSlide?.content.isLoading())),h=null}),i.options.preloaderDelay))};i.on("change",n),i.on("loadComplete",(t=>{i.currSlide===t.slide&&n()})),i.ui&&(i.ui.updatePreloaderVisibility=n)}},H={name:"counter",order:5,onInit:(t,i)=>{i.on("change",(()=>{t.innerText=i.currIndex+1+i.options.indexIndicatorSep+i.getNumItems()}))}};function K(t,i){t.classList[i?"add":"remove"]("pswp--zoomed-in")}class W{constructor(t){this.pswp=t,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this.Tt=void 0}init(){const{pswp:t}=this;this.isRegistered=!1,this.uiElementsData=[G,U,V,$,q,H],t.dispatch("uiRegister"),this.uiElementsData.sort(((t,i)=>(t.order||0)-(i.order||0))),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach((t=>{this.registerElement(t)})),t.on("change",(()=>{t.element?.classList[1===t.getNumItems()?"add":"remove"]("pswp--one-slide")})),t.on("zoomPanUpdate",(()=>this.At()))}registerElement(t){this.isRegistered?this.items.push(new R(this.pswp,t)):this.uiElementsData.push(t)}At(){const{template:t,currSlide:i,options:s}=this.pswp;if(this.pswp.opener.isClosing||!t||!i)return;let{currZoomLevel:h}=i;if(this.pswp.opener.isOpen||(h=i.zoomLevels.initial),h===this.Tt)return;this.Tt=h;const e=i.zoomLevels.initial-i.zoomLevels.secondary;if(Math.abs(e)<.01||!i.isZoomable())return K(t,!1),void t.classList.remove("pswp--zoom-allowed");t.classList.add("pswp--zoom-allowed");K(t,(h===i.zoomLevels.initial?i.zoomLevels.secondary:i.zoomLevels.initial)<=h),"zoom"!==s.imageClickAction&&"zoom-or-close"!==s.imageClickAction||t.classList.add("pswp--click-to-zoom")}}class j{constructor(t,i){this.type=t,this.defaultPrevented=!1,i&&Object.assign(this,i)}preventDefault(){this.defaultPrevented=!0}}class X{constructor(i,s){if(this.element=t("pswp__img pswp__img--placeholder",i?"img":"div",s),i){const t=this.element;t.decoding="async",t.alt="",t.src=i,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,i){this.element&&("IMG"===this.element.tagName?(c(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=o(0,0,t/250)):c(this.element,t,i))}destroy(){this.element?.parentNode&&this.element.remove(),this.element=null}}class Y{constructor(t,i,s){this.instance=i,this.data=t,this.index=s,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=l,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)}),1e3)}load(i,s){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new X(t,this.slide.container)}this.element&&!s||this.instance.dispatch("contentLoad",{content:this,isLazy:i}).defaultPrevented||(this.isImageContent()?(this.element=t("pswp__img","img"),this.displayedImageWidth&&this.loadImage(i)):(this.element=t("pswp__content","div"),this.element.innerHTML=this.data.html||""),s&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=this.data.src??"",i.alt=this.data.alt??"",this.state=u,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=d,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==d&&this.state!==p||this.removePlaceholder())}onError(){this.state=p,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===u,this)}isError(){return this.state===p}isImageContent(){return"image"===this.type}setDisplayedSize(t,i){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,i),!this.instance.dispatch("contentResize",{content:this,width:t,height:i}).defaultPrevented&&(c(this.element,t,i),this.isImageContent()&&!this.isError()))){const s=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=i,s?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:i,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==p,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,i=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||i>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=i+"px",t.dataset.largestUsedSize=String(i))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){let i=t("pswp__error-msg","div");i.innerText=this.instance.options?.errorMsg??"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=t("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===p)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||m())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!m()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==d&&this.state!==p||this.removePlaceholder()))}}function J(t,i,s){const h=i.createContentFromData(t,s);let e;const{options:n}=i;if(n&&(e=new x(n,t,-1),i.pswp)){const o=y(n,i.pswp.viewportSize||g(n,i.pswp),t,s);e.update(h.width,h.height,o)}return h.lazyLoad(),e&&h.setDisplayedSize(Math.ceil(h.width*e.initial),Math.ceil(h.height*e.initial)),h}class Q{constructor(t){this.pswp=t,this.limit=Math.max(t.options.preload[0]+t.options.preload[1]+1,5),this.Dt=[]}updateLazy(t){const{pswp:i}=this;if(i.dispatch("lazyLoad").defaultPrevented)return;const{preload:s}=i.options,h=void 0===t||t>=0;let e;for(e=0;e<=s[1];e++)this.loadSlideByIndex(i.currIndex+(h?e:-e));for(e=1;e<=s[0];e++)this.loadSlideByIndex(i.currIndex+(h?-e:e))}loadSlideByIndex(t){const i=this.pswp.getLoopedIndex(t);let s=this.getContentByIndex(i);s||(s=function(t,i){const s=i.getItemData(t);if(!i.dispatch("lazyLoadSlide",{index:t,itemData:s}).defaultPrevented)return J(s,i,t)}(i,this.pswp),s&&this.addToCache(s))}getContentBySlide(t){let i=this.getContentByIndex(t.index);return i||(i=this.pswp.createContentFromData(t.data,t.index),this.addToCache(i)),i.setSlide(t),i}addToCache(t){if(this.removeByIndex(t.index),this.Dt.push(t),this.Dt.length>this.limit){const t=this.Dt.findIndex((t=>!t.isAttached&&!t.hasSlide));if(-1!==t){this.Dt.splice(t,1)[0].destroy()}}}removeByIndex(t){const i=this.Dt.findIndex((i=>i.index===t));-1!==i&&this.Dt.splice(i,1)}getContentByIndex(t){return this.Dt.find((i=>i.index===t))}destroy(){this.Dt.forEach((t=>t.destroy())),this.Dt=[]}}const tt=.003;class it{constructor(t){this.pswp=t,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this.It=void 0,this.Et=!1,this.Lt=!1,this.kt=!1,this.Zt=!1,this.Bt=void 0,this.Ft=void 0,this.Ot=void 0,this.Rt=void 0,this.Nt=void 0,this.Ut=this.Ut.bind(this),t.on("firstZoomPan",this.Ut)}open(){this.Ut(),this.Pt()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const t=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this.It=this.pswp.options.hideAnimationDuration,t&&t.currZoomLevel*t.width>=this.pswp.options.maxWidthToAnimate&&(this.It=0),this.Vt(),setTimeout((()=>{this.Pt()}),this.Lt?30:0)}Ut(){if(this.pswp.off("firstZoomPan",this.Ut),!this.isOpening){const t=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this.It=this.pswp.options.showAnimationDuration,t&&t.zoomLevels.initial*t.width>=this.pswp.options.maxWidthToAnimate&&(this.It=0),this.Vt()}}Vt(){const{pswp:t}=this,i=this.pswp.currSlide,{options:s}=t;if("fade"===s.showHideAnimationType?(s.showHideOpacity=!0,this.Nt=void 0):"none"===s.showHideAnimationType?(s.showHideOpacity=!1,this.It=0,this.Nt=void 0):this.isOpening&&t.Gt?this.Nt=t.Gt:this.Nt=this.pswp.getThumbBounds(),this.Bt=i?.getPlaceholderElement(),t.animations.stopAll(),this.Et=Boolean(this.It&&this.It>50),this.$t=Boolean(this.Nt)&&i?.content.usePlaceholder()&&(!this.isClosing||!t.mainScroll.isShifted()),this.$t?this.kt=s.showHideOpacity??!1:(this.kt=!0,this.isOpening&&i&&(i.zoomAndPanToInitial(),i.applyCurrentZoomPan())),this.Zt=!this.kt&&this.pswp.options.bgOpacity>tt,this.Ft=this.kt?t.element:t.bg,!this.Et)return this.It=0,this.$t=!1,this.Zt=!1,this.kt=!0,void(this.isOpening&&(t.element&&(t.element.style.opacity=String(tt)),t.applyBgOpacity(1)));this.$t&&this.Nt&&this.Nt.innerRect?(this.Lt=!0,this.Ot=this.pswp.container,this.Rt=this.pswp.currSlide?.holderElement,t.container&&(t.container.style.overflow="hidden",t.container.style.width=t.viewportSize.x+"px")):this.Lt=!1,this.isOpening?(this.kt?(t.element&&(t.element.style.opacity=String(tt)),t.applyBgOpacity(1)):(this.Zt&&t.bg&&(t.bg.style.opacity=String(tt)),t.element&&(t.element.style.opacity="1")),this.$t&&(this.qt(),this.Bt&&(this.Bt.style.willChange="transform",this.Bt.style.opacity=String(tt)))):this.isClosing&&(t.mainScroll.itemHolders[0]&&(t.mainScroll.itemHolders[0].el.style.display="none"),t.mainScroll.itemHolders[2]&&(t.mainScroll.itemHolders[2].el.style.display="none"),this.Lt&&0!==t.mainScroll.x&&(t.mainScroll.resetPosition(),t.mainScroll.resize()))}Pt(){this.isOpening&&this.Et&&this.Bt&&"IMG"===this.Bt.tagName?new Promise((t=>{let i=!1,s=!0;var h;(h=this.Bt,"decode"in h?h.decode().catch((()=>{})):h.complete?Promise.resolve(h):new Promise(((t,i)=>{h.onload=()=>t(h),h.onerror=i}))).finally((()=>{i=!0,s||t(!0)})),setTimeout((()=>{s=!1,i&&t(!0)}),50),setTimeout(t,250)})).finally((()=>this.Ht())):this.Ht()}Ht(){this.pswp.element?.style.setProperty("--pswp-transition-duration",this.It+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),this.pswp.element?.classList[this.isOpening?"add":"remove"]("pswp--ui-visible"),this.isOpening?(this.Bt&&(this.Bt.style.opacity="1"),this.Kt()):this.isClosing&&this.Wt(),this.Et||this.jt()}jt(){const{pswp:t}=this;this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,t.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),t.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed?t.destroy():this.isOpen&&(this.$t&&t.container&&(t.container.style.overflow="visible",t.container.style.width="100%"),t.currSlide?.applyCurrentZoomPan())}Kt(){const{pswp:t}=this;this.$t&&(this.Lt&&this.Ot&&this.Rt&&(this.Xt(this.Ot,"transform","translate3d(0,0,0)"),this.Xt(this.Rt,"transform","none")),t.currSlide&&(t.currSlide.zoomAndPanToInitial(),this.Xt(t.currSlide.container,"transform",t.currSlide.getCurrentTransform()))),this.Zt&&t.bg&&this.Xt(t.bg,"opacity",String(t.options.bgOpacity)),this.kt&&t.element&&this.Xt(t.element,"opacity","1")}Wt(){const{pswp:t}=this;this.$t&&this.qt(!0),this.Zt&&t.bgOpacity>.01&&t.bg&&this.Xt(t.bg,"opacity","0"),this.kt&&t.element&&this.Xt(t.element,"opacity","0")}qt(t){if(!this.Nt)return;const{pswp:s}=this,{innerRect:h}=this.Nt,{currSlide:e,viewportSize:n}=s;if(this.Lt&&h&&this.Ot&&this.Rt){const i=-n.x+(this.Nt.x-h.x)+h.w,s=-n.y+(this.Nt.y-h.y)+h.h,e=n.x-h.w,a=n.y-h.h;t?(this.Xt(this.Ot,"transform",o(i,s)),this.Xt(this.Rt,"transform",o(e,a))):(r(this.Ot,i,s),r(this.Rt,e,a))}e&&(i(e.pan,h||this.Nt),e.currZoomLevel=this.Nt.w/e.width,t?this.Xt(e.container,"transform",e.getCurrentTransform()):e.applyCurrentZoomPan())}Xt(t,i,s){if(!this.It)return void(t.style[i]=s);const{animations:h}=this.pswp,e={duration:this.It,easing:this.pswp.options.easing,onComplete:()=>{h.activeAnimations.length||this.jt()},target:t};e[i]=s,h.startTransition(e)}}const st={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};return class extends class extends class{constructor(){this.Yt={},this.Jt={},this.pswp=void 0,this.options=void 0}addFilter(t,i,s=100){this.Jt[t]||(this.Jt[t]=[]),this.Jt[t]?.push({fn:i,priority:s}),this.Jt[t]?.sort(((t,i)=>t.priority-i.priority)),this.pswp?.addFilter(t,i,s)}removeFilter(t,i){this.Jt[t]&&(this.Jt[t]=this.Jt[t].filter((t=>t.fn!==i))),this.pswp&&this.pswp.removeFilter(t,i)}applyFilters(t,...i){return this.Jt[t]?.forEach((t=>{i[0]=t.fn.apply(this,i)})),i[0]}on(t,i){this.Yt[t]||(this.Yt[t]=[]),this.Yt[t]?.push(i),this.pswp?.on(t,i)}off(t,i){this.Yt[t]&&(this.Yt[t]=this.Yt[t].filter((t=>i!==t))),this.pswp?.off(t,i)}dispatch(t,i){if(this.pswp)return this.pswp.dispatch(t,i);const s=new j(t,i);return this.Yt[t]?.forEach((t=>{t.call(this,s)})),s}}{getNumItems(){let t=0;const i=this.options?.dataSource;i&&"length"in i?t=i.length:i&&"gallery"in i&&(i.items||(i.items=this.Qt(i.gallery)),i.items&&(t=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:t});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,i){return new Y(t,this,i)}getItemData(t){const i=this.options?.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this.Qt(i.gallery)),s=i.items[t]);let h=s;h instanceof Element&&(h=this.ti(h));const e=this.dispatch("itemData",{itemData:h||{},index:t});return this.applyFilters("itemData",e.itemData,t)}Qt(t){return this.options?.children||this.options?.childSelector?function(t,i,s=document){let h=[];if(t instanceof Element)h=[t];else if(t instanceof NodeList||Array.isArray(t))h=Array.from(t);else{const e="string"==typeof t?t:i;e&&(h=Array.from(s.querySelectorAll(e)))}return h}(this.options.children,this.options.childSelector,t)||[]:[t]}ti(t){const i={element:t},s="A"===t.tagName?t:t.querySelector("a");if(s){i.src=s.dataset.pswpSrc||s.href,s.dataset.pswpSrcset&&(i.srcset=s.dataset.pswpSrcset),i.width=s.dataset.pswpWidth?parseInt(s.dataset.pswpWidth,10):0,i.height=s.dataset.pswpHeight?parseInt(s.dataset.pswpHeight,10):0,i.w=i.width,i.h=i.height,s.dataset.pswpType&&(i.type=s.dataset.pswpType);const h=t.querySelector("img");h&&(i.msrc=h.currentSrc||h.src,i.alt=h.getAttribute("alt")??""),(s.dataset.pswpCropped||s.dataset.cropped)&&(i.thumbCropped=!0)}return this.applyFilters("domItemData",i,t,s)}lazyLoadData(t,i){return J(t,this,i)}}{constructor(t){super(),this.options=this.ii(t||{}),this.offset={x:0,y:0},this.si={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this.hi={},this.Gt=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new w,this.animations=new F,this.mainScroll=new A(this),this.gestures=new T(this),this.opener=new it(this),this.keyboard=new E(this),this.contentLoader=new Q(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this.ei();let t="pswp--open";return this.gestures.supportsTouch&&(t+=" pswp--touch"),this.options.mainClass&&(t+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+t),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new O(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this.hi=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this.hi,slide:void 0}),this.Gt=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",(()=>{const{itemHolders:t}=this.mainScroll;t[0]&&(t[0].el.style.display="block",this.setContent(t[0],this.currIndex-1)),t[2]&&(t[2].el.style.display="block",this.setContent(t[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this.ni.bind(this)),this.events.add(window,"scroll",this.oi.bind(this)),this.dispatch("bindEvents")})),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(t){const i=this.getNumItems();return this.options.loop&&(t>i-1&&(t-=i),t<0&&(t+=i)),n(t,0,i-1)}appendHeavy(){this.mainScroll.itemHolders.forEach((t=>{t.slide?.appendHeavy()}))}goTo(t){this.mainScroll.moveIndexBy(this.getLoopedIndex(t)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...t){this.currSlide?.zoomTo(...t)}toggleZoom(){this.currSlide?.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this.Yt={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),this.element?.remove(),this.mainScroll.itemHolders.forEach((t=>{t.slide?.destroy()})),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(t){this.contentLoader.removeByIndex(t),this.mainScroll.itemHolders.forEach(((i,s)=>{let h=(this.currSlide?.index??0)-1+s;this.canLoop()&&(h=this.getLoopedIndex(h)),h===t&&(this.setContent(i,t,!0),1===s&&(this.currSlide=i.slide,i.slide?.setIsActive(!0)))})),this.dispatch("change")}setContent(t,i,s){if(this.canLoop()&&(i=this.getLoopedIndex(i)),t.slide){if(t.slide.index===i&&!s)return;t.slide.destroy(),t.slide=void 0}if(!this.canLoop()&&(i<0||i>=this.getNumItems()))return;const h=this.getItemData(i);t.slide=new b(h,i,this),i===this.currIndex&&(this.currSlide=t.slide),t.slide.append(t.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(t){if(this.isDestroying)return;const s=g(this.options,this);!t&&e(s,this.si)||(i(this.si,s),this.dispatch("beforeResize"),i(this.viewportSize,this.si),this.oi(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(t){this.bgOpacity=Math.max(t,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){this.hasMouse||(this.hasMouse=!0,this.element?.classList.add("pswp--has_mouse"))}ni(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout((()=>{this.updateSize()}),500)}oi(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(t,i){this.offset.x=t,this.offset.y=i,this.dispatch("updateScrollOffset")}ei(){this.element=t("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=t("pswp__bg","div",this.element),this.scrollWrap=t("pswp__scroll-wrap","section",this.element),this.container=t("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new W(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(t,i,s){const h=s.dispatch("thumbBounds",{index:t,itemData:i,instance:s});if(h.thumbBounds)return h.thumbBounds;const{element:e}=i;let n,o;if(e&&!1!==s.options.thumbSelector){const t=s.options.thumbSelector||"img";o=e.matches(t)?e:e.querySelector(t)}return o=s.applyFilters("thumbEl",o,i,t),o&&(n=i.thumbCropped?function(t,i,s){const h=t.getBoundingClientRect(),e=h.width/i,n=h.height/s,o=e>n?e:n,r=(h.width-i*o)/2,a=(h.height-s*o)/2,c={x:h.left+r,y:h.top+a,w:i*o};return c.innerRect={w:h.width,h:h.height,x:r,y:a},c}(o,i.width||i.w||0,i.height||i.h||0):function(t){const i=t.getBoundingClientRect();return{x:i.left,y:i.top,w:i.width}}(o)),s.applyFilters("thumbBounds",n,i,t)}(this.currIndex,this.currSlide?this.currSlide.data:this.hi,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}ii(t){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(t.showHideAnimationType="none",t.zoomAnimationDuration=0),{...st,...t}}}}));;
/*!
  * PhotoSwipe Lightbox 5.3.5 - https://photoswipe.com
  * (c) 2023 Dmytro Semenov
  */
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).PhotoSwipeLightbox=i()}(this,(function(){"use strict";function t(t,i,s){const h=document.createElement(i);return t&&(h.className=t),s&&s.appendChild(h),h}function i(t,i,s){t.style.width="number"==typeof i?`${i}px`:i,t.style.height="number"==typeof s?`${s}px`:s}const s="idle",h="loading",e="loaded",n="error";function o(t,i,s=document){let h=[];if(t instanceof Element)h=[t];else if(t instanceof NodeList||Array.isArray(t))h=Array.from(t);else{const e="string"==typeof t?t:i;e&&(h=Array.from(s.querySelectorAll(e)))}return h}function r(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}class a{constructor(t,i){this.type=t,this.defaultPrevented=!1,i&&Object.assign(this,i)}preventDefault(){this.defaultPrevented=!0}}class c{constructor(i,s){if(this.element=t("pswp__img pswp__img--placeholder",i?"img":"div",s),i){const t=this.element;t.decoding="async",t.alt="",t.src=i,t.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,s){this.element&&("IMG"===this.element.tagName?(i(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=function(t,i,s){let h=`translate3d(${t}px,${i||0}px,0)`;return void 0!==s&&(h+=` scale3d(${s},${s},1)`),h}(0,0,t/250)):i(this.element,t,s))}destroy(){this.element?.parentNode&&this.element.remove(),this.element=null}}class l{constructor(t,i,h){this.instance=i,this.data=t,this.index=h,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=s,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)}),1e3)}load(i,s){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new c(t,this.slide.container)}this.element&&!s||this.instance.dispatch("contentLoad",{content:this,isLazy:i}).defaultPrevented||(this.isImageContent()?(this.element=t("pswp__img","img"),this.displayedImageWidth&&this.loadImage(i)):(this.element=t("pswp__content","div"),this.element.innerHTML=this.data.html||""),s&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const i=this.element;this.updateSrcsetSizes(),this.data.srcset&&(i.srcset=this.data.srcset),i.src=this.data.src??"",i.alt=this.data.alt??"",this.state=h,i.complete?this.onLoaded():(i.onload=()=>{this.onLoaded()},i.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=e,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==e&&this.state!==n||this.removePlaceholder())}onError(){this.state=n,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===h,this)}isError(){return this.state===n}isImageContent(){return"image"===this.type}setDisplayedSize(t,s){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,s),!this.instance.dispatch("contentResize",{content:this,width:t,height:s}).defaultPrevented&&(i(this.element,t,s),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=s,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:s,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==n,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,i=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||i>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=i+"px",t.dataset.largestUsedSize=String(i))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){let i=t("pswp__error-msg","div");i.innerText=this.instance.options?.errorMsg??"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=t("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===n)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||r())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!r()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==e&&this.state!==n||this.removePlaceholder()))}}function d(t,i,s,h,e){let n=0;if(i.paddingFn)n=i.paddingFn(s,h,e)[t];else if(i.padding)n=i.padding[t];else{const s="padding"+t[0].toUpperCase()+t.slice(1);i[s]&&(n=i[s])}return Number(n)||0}class u{constructor(t,i,s,h){this.pswp=h,this.options=t,this.itemData=i,this.index=s,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,i,s){const h={x:t,y:i};this.elementSize=h,this.panAreaSize=s;const e=s.x/h.x,n=s.y/h.y;this.fit=Math.min(1,e<n?e:n),this.fill=Math.min(1,e>n?e:n),this.vFill=Math.min(1,n),this.initial=this.t(),this.secondary=this.i(),this.max=Math.max(this.initial,this.secondary,this.o()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}l(t){const i=t+"ZoomLevel",s=this.options[i];if(s)return"function"==typeof s?s(this):"fill"===s?this.fill:"fit"===s?this.fit:Number(s)}i(){let t=this.l("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>4e3&&(t=4e3/this.elementSize.x),t)}t(){return this.l("initial")||this.fit}o(){return this.l("max")||Math.max(1,4*this.fit)}}function p(t,i,s){const h=i.createContentFromData(t,s);let e;const{options:n}=i;if(n&&(e=new u(n,t,-1),i.pswp)){const o=i.pswp.viewportSize||function(t,i){if(t.getViewportSizeFn){const s=t.getViewportSizeFn(t,i);if(s)return s}return{x:document.documentElement.clientWidth,y:window.innerHeight}}(n,i.pswp),r=function(t,i,s,h){return{x:i.x-d("left",t,i,s,h)-d("right",t,i,s,h),y:i.y-d("top",t,i,s,h)-d("bottom",t,i,s,h)}}(n,o,t,s);e.update(h.width,h.height,r)}return h.lazyLoad(),e&&h.setDisplayedSize(Math.ceil(h.width*e.initial),Math.ceil(h.height*e.initial)),h}return class extends class extends class{constructor(){this.u={},this.p={},this.pswp=void 0,this.options=void 0}addFilter(t,i,s=100){this.p[t]||(this.p[t]=[]),this.p[t]?.push({fn:i,priority:s}),this.p[t]?.sort(((t,i)=>t.priority-i.priority)),this.pswp?.addFilter(t,i,s)}removeFilter(t,i){this.p[t]&&(this.p[t]=this.p[t].filter((t=>t.fn!==i))),this.pswp&&this.pswp.removeFilter(t,i)}applyFilters(t,...i){return this.p[t]?.forEach((t=>{i[0]=t.fn.apply(this,i)})),i[0]}on(t,i){this.u[t]||(this.u[t]=[]),this.u[t]?.push(i),this.pswp?.on(t,i)}off(t,i){this.u[t]&&(this.u[t]=this.u[t].filter((t=>i!==t))),this.pswp?.off(t,i)}dispatch(t,i){if(this.pswp)return this.pswp.dispatch(t,i);const s=new a(t,i);return this.u[t]?.forEach((t=>{t.call(this,s)})),s}}{getNumItems(){let t=0;const i=this.options?.dataSource;i&&"length"in i?t=i.length:i&&"gallery"in i&&(i.items||(i.items=this.m(i.gallery)),i.items&&(t=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:t});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,i){return new l(t,this,i)}getItemData(t){const i=this.options?.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this.m(i.gallery)),s=i.items[t]);let h=s;h instanceof Element&&(h=this.g(h));const e=this.dispatch("itemData",{itemData:h||{},index:t});return this.applyFilters("itemData",e.itemData,t)}m(t){return this.options?.children||this.options?.childSelector?o(this.options.children,this.options.childSelector,t)||[]:[t]}g(t){const i={element:t},s="A"===t.tagName?t:t.querySelector("a");if(s){i.src=s.dataset.pswpSrc||s.href,s.dataset.pswpSrcset&&(i.srcset=s.dataset.pswpSrcset),i.width=s.dataset.pswpWidth?parseInt(s.dataset.pswpWidth,10):0,i.height=s.dataset.pswpHeight?parseInt(s.dataset.pswpHeight,10):0,i.w=i.width,i.h=i.height,s.dataset.pswpType&&(i.type=s.dataset.pswpType);const h=t.querySelector("img");h&&(i.msrc=h.currentSrc||h.src,i.alt=h.getAttribute("alt")??""),(s.dataset.pswpCropped||s.dataset.cropped)&&(i.thumbCropped=!0)}return this.applyFilters("domItemData",i,t,s)}lazyLoadData(t,i){return p(t,this,i)}}{constructor(t){super(),this.options=t||{},this.v=0,this.shouldOpen=!1,this._=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){o(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.addEventListener("click",this.onThumbnailsClick,!1)}))}onThumbnailsClick(t){if(function(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}(t)||window.pswp||!1===window.navigator.onLine)return;let i={x:t.clientX,y:t.clientY};i.x||i.y||(i=null);let s=this.getClickedIndex(t);s=this.applyFilters("clickedIndex",s,t,this);const h={gallery:t.currentTarget};s>=0&&(t.preventDefault(),this.loadAndOpen(s,h,i))}getClickedIndex(t){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,t);const i=t.target,s=o(this.options.children,this.options.childSelector,t.currentTarget).findIndex((t=>t===i||t.contains(i)));return-1!==s?s:this.options.children||this.options.childSelector?-1:0}loadAndOpen(t,i,s){return!window.pswp&&(this.options.index=t,this.options.initialPointerPos=s,this.shouldOpen=!0,this.preload(t,i),!0)}preload(t,i){const{options:s}=this;i&&(s.dataSource=i);const h=[],e=typeof s.pswpModule;if("function"==typeof(n=s.pswpModule)&&n.prototype&&n.prototype.goTo)h.push(Promise.resolve(s.pswpModule));else{if("string"===e)throw new Error("pswpModule as string is no longer supported");if("function"!==e)throw new Error("pswpModule is not valid");h.push(s.pswpModule())}var n;"function"==typeof s.openPromise&&h.push(s.openPromise()),!1!==s.preloadFirstSlide&&t>=0&&(this._=function(t,i){const s=i.getItemData(t);if(!i.dispatch("lazyLoadSlide",{index:t,itemData:s}).defaultPrevented)return p(s,i,t)}(t,this));const o=++this.v;Promise.all(h).then((t=>{if(this.shouldOpen){const i=t[0];this.I(i,o)}}))}I(t,i){if(i!==this.v&&this.shouldOpen)return;if(this.shouldOpen=!1,window.pswp)return;const s="object"==typeof t?new t.default(this.options):new t(this.options);this.pswp=s,window.pswp=s,Object.keys(this.u).forEach((t=>{this.u[t]?.forEach((i=>{s.on(t,i)}))})),Object.keys(this.p).forEach((t=>{this.p[t]?.forEach((i=>{s.addFilter(t,i.fn,i.priority)}))})),this._&&(s.contentLoader.addToCache(this._),this._=void 0),s.on("destroy",(()=>{this.pswp=void 0,delete window.pswp})),s.init()}destroy(){this.pswp?.destroy(),this.shouldOpen=!1,this.u={},o(this.options.gallery,this.options.gallerySelector).forEach((t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)}))}}}));;
/*!
 * ScrollTrigger 3.9.1
 * https://greensock.com
 * 
 * @license Copyright 2021, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
 */

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self).window=e.window||{})}(this,function(e){"use strict";function H(e){return e}function I(e){return Ve(e)[0]||(rr(e)&&!1!==Re.config().nullTargetWarn?console.warn("Element not found:",e):null)}function J(e){return Math.round(1e5*e)/1e5||0}function K(){return"undefined"!=typeof window}function L(){return Re||K()&&(Re=window.gsap)&&Re.registerPlugin&&Re}function M(e){return!!~i.indexOf(e)}function N(e,r){return~Ue.indexOf(e)&&Ue[Ue.indexOf(e)+1][r]}function O(r,e){var t=e.s,n=e.sc,i=g.indexOf(r),o=n===gr.sc?1:2;return~i||(i=g.push(r)-1),g[i+o]||(g[i+o]=N(r,t)||(M(r)?n:function(e){return arguments.length?r[t]=e:r[t]}))}function P(e){return N(e,"getBoundingClientRect")||(M(e)?function(){return wr.width=ze.innerWidth,wr.height=ze.innerHeight,wr}:function(){return hr(e)})}function S(e,r){var t=r.s,n=r.d2,i=r.d,o=r.a;return(t="scroll"+n)&&(o=N(e,t))?o()-P(e)()[i]:M(e)?(Fe[t]||We[t])-(ze["inner"+n]||We["client"+n]||Fe["client"+n]):e[t]-e["offset"+n]}function T(e,r){for(var t=0;t<f.length;t+=3)r&&!~r.indexOf(f[t+1])||e(f[t],f[t+1],f[t+2])}function V(e){return"function"==typeof e}function W(e){return"number"==typeof e}function X(e){return"object"==typeof e}function Y(e){return V(e)&&e()}function Z(t,n){return function(){var e=Y(t),r=Y(n);return function(){Y(e),Y(r)}}}function $(e,r,t){return e&&e.progress(r?0:1)&&t&&e.pause()}function _(e,r){if(e.enabled){var t=r(e);t&&t.totalTime&&(e.callbackAnimation=t)}}function ua(e){return ze.getComputedStyle(e)}function wa(e,r){for(var t in r)t in e||(e[t]=r[t]);return e}function ya(e,r){var t=r.d2;return e["offset"+t]||e["client"+t]||0}function za(e){var r,t=[],n=e.labels,i=e.duration();for(r in n)t.push(n[r]/i);return t}function Ba(i){var o=Re.utils.snap(i),a=Array.isArray(i)&&i.slice(0).sort(function(e,r){return e-r});return a?function(e,r,t){var n;if(void 0===t&&(t=.001),!r)return o(e);if(0<r){for(e-=t,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=t;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,r,t){void 0===t&&(t=.001);var n=o(e);return!r||Math.abs(n-e)<t||n-e<0==r<0?n:o(r<0?e-i:e+i)}}function Da(r,t,e,n){return e.split(",").forEach(function(e){return r(t,e,n)})}function Ea(e,r,t){return e.addEventListener(r,t,{passive:!0})}function Fa(e,r,t){return e.removeEventListener(r,t)}function Ja(e,r){if(rr(e)){var t=e.indexOf("="),n=~t?(e.charAt(t-1)+1)*parseFloat(e.substr(t+1)):0;~t&&(e.indexOf("%")>t&&(n*=r/100),e=e.substr(0,t-1)),e=n+(e in b?b[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e}function Ka(e,r,t,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,p=i.fontWeight,d=Le.createElement("div"),g=M(t)||"fixed"===N(t,"pinType"),h=-1!==e.indexOf("scroller"),v=g?Fe:t,m=-1!==e.indexOf("start"),b=m?l:c,x="border-color:"+b+";font-size:"+u+";color:"+b+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(x+=(n===gr?y:w)+":"+(o+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=m,d.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),d.style.cssText=x,d.innerText=r||0===r?e+"-"+r:e,v.children[0]?v.insertBefore(d,v.children[0]):v.appendChild(d),d._offset=d["offset"+n.op.d2],E(d,0,n,m),d}function Oa(){return 34<Ze()-Ge&&j()}function Pa(){j(),Ge||A("scrollStart"),Ge=Ze()}function Qa(){return!Xe&&!t&&!Le.fullscreenElement&&a.restart(!0)}function Wa(e){var r,t=Re.ticker.frame,n=[],i=0;if(p!==t||qe){for(z();i<C.length;i+=4)(r=ze.matchMedia(C[i]).matches)!==C[i+3]&&((C[i+3]=r)?n.push(i):z(1,C[i])||V(C[i+2])&&C[i+2]());for(R(),i=0;i<n.length;i++)r=n[i],Qe=C[r],C[r+2]=C[r+1](e);Qe=0,o&&F(0,1),p=t,A("matchMedia")}}function Xa(){return Fa(ee,"scrollEnd",Xa)||F(!0)}function ab(){return g.forEach(function(e){return"function"==typeof e&&(e.rec=0)})}function jb(e,r,t,n){if(e.parentNode!==r){for(var i,o=Q.length,a=r.style,s=e.style;o--;)a[i=Q[o]]=t[i];a.position="absolute"===t.position?"absolute":"relative","inline"===t.display&&(a.display="inline-block"),s[w]=s[y]=a.flexBasis="auto",a.overflow="visible",a.boxSizing="border-box",a[nr]=ya(e,dr)+pr,a[ir]=ya(e,gr)+pr,a[cr]=s[ur]=s.top=s[v]="0",Sr(n),s[nr]=s.maxWidth=t[nr],s[ir]=s.maxHeight=t[ir],s[cr]=t[cr],e.parentNode.insertBefore(r,e),r.appendChild(e)}}function mb(e){for(var r=q.length,t=e.style,n=[],i=0;i<r;i++)n.push(q[i],t[q[i]]);return n.t=e,n}function pb(e,r,t,n,i,o,a,s,l,c,u,f,p){V(e)&&(e=e(s)),rr(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?Ja("0"+e.substr(3),t):0));var d,g,h,v=p?p.time():0;if(p&&p.seek(0),W(e))a&&E(a,t,n,!0);else{V(r)&&(r=r(s));var m,b,x,y,S=e.split(" ");h=I(r)||Fe,(m=hr(h)||{})&&(m.left||m.top)||"none"!==ua(h).display||(y=h.style.display,h.style.display="block",m=hr(h),y?h.style.display=y:h.style.removeProperty("display")),b=Ja(S[0],m[n.d]),x=Ja(S[1]||"0",t),e=m[n.p]-l[n.p]-c+b+i-x,a&&E(a,x,n,t-x<20||a._isStart&&20<x),t-=t-x}if(o){var w=e+t,T=o._isStart;d="scroll"+n.d2,E(o,w,n,T&&20<w||!T&&(u?Math.max(Fe[d],We[d]):o.parentNode[d])<=w+1),u&&(l=hr(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+pr))}return p&&h&&(d=hr(h),p.seek(f),g=hr(h),p._caScrollDist=d[n.p]-g[n.p],e=e/p._caScrollDist*f),p&&p.seek(v),p?e:Math.round(e)}function rb(e,r,t,n){if(e.parentNode!==r){var i,o,a=e.style;if(r===Fe){for(i in e._stOrig=a.cssText,o=ua(e))+i||G.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=t,a.left=n}else a.cssText=e._stOrig;Re.core.getCache(e).uncache=1,r.appendChild(e)}}function sb(l,e){function xf(e,r,t,n,i){var o=xf.tween,a=r.onComplete,s={};return o&&o.kill(),c=Math.round(t),r[p]=e,(r.modifiers=s)[p]=function(e){return(e=J(f()))!==c&&e!==u&&2<Math.abs(e-c)&&2<Math.abs(e-u)?(o.kill(),xf.tween=0):e=t+n*o.ratio+i*o.ratio*o.ratio,u=c,c=J(e)},r.onComplete=function(){xf.tween=0,a&&a.call(o)},o=xf.tween=Re.to(l,r)}var c,u,f=O(l,e),p="_scroll"+e.p2;return l[p]=f,Ea(l,"wheel",function(){return xf.tween&&xf.tween.kill()&&(xf.tween=0)}),xf}var Re,o,ze,Le,We,Fe,i,a,Ve,De,He,s,Xe,je,l,Je,c,u,f,Ke,Ye,t,$e,Qe,p,d,qe=1,Ue=[],g=[],Ze=Date.now,h=Ze(),Ge=0,er=1,rr=function _isString(e){return"string"==typeof e},tr=Math.abs,r="scrollLeft",n="scrollTop",v="left",y="right",w="bottom",nr="width",ir="height",or="Right",ar="Left",sr="Top",lr="Bottom",cr="padding",ur="margin",fr="Width",m="Height",pr="px",dr={s:r,p:v,p2:ar,os:y,os2:or,d:nr,d2:fr,a:"x",sc:function sc(e){return arguments.length?ze.scrollTo(e,gr.sc()):ze.pageXOffset||Le[r]||We[r]||Fe[r]||0}},gr={s:n,p:"top",p2:sr,os:w,os2:lr,d:ir,d2:m,a:"y",op:dr,sc:function sc(e){return arguments.length?ze.scrollTo(dr.sc(),e):ze.pageYOffset||Le[n]||We[n]||Fe[n]||0}},hr=function _getBounds(e,r){var t=r&&"matrix(1, 0, 0, 1, 0, 0)"!==ua(e)[l]&&Re.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return t&&t.progress(0).kill(),n},vr={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},mr={toggleActions:"play",anticipatePin:0},b={top:0,left:0,center:.5,bottom:1,right:1},E=function _positionMarker(e,r,t,n){var i={display:"block"},o=t[n?"os2":"p2"],a=t[n?"p2":"os2"];e._isFlipped=n,i[t.a+"Percent"]=n?-100:0,i[t.a]=n?"1px":0,i["border"+o+fr]=1,i["border"+a+fr]=0,i[t.p]=r+"px",Re.set(e,i)},br=[],xr={},x={},k=[],C=[],A=function _dispatch(e){return x[e]&&x[e].map(function(e){return e()})||k},B=[],R=function _revertRecorded(e){for(var r=0;r<B.length;r+=5)e&&B[r+4]!==e||(B[r].style.cssText=B[r+1],B[r].getBBox&&B[r].setAttribute("transform",B[r+2]||""),B[r+3].uncache=1)},z=function _revertAll(e,r){var t;for(Je=0;Je<br.length;Je++)t=br[Je],r&&t.media!==r||(e?t.kill(1):t.revert());r&&R(r),r||A("revert")},F=function _refreshAll(e,r){if(!Ge||e){d=!0;var t=A("refreshInit");Ke&&ee.sort(),r||z(),br.forEach(function(e){return e.refresh()}),br.forEach(function(e){return"max"===e.vars.end&&e.setPositions(e.start,S(e.scroller,e._dir))}),t.forEach(function(e){return e&&e.render&&e.render(-1)}),ab(),a.pause(),d=!1,A("refresh")}else Ea(ee,"scrollEnd",Xa)},D=0,yr=1,j=function _updateAll(){if(!d){var e=br.length,r=Ze(),t=50<=r-h,n=e&&br[0].scroll();if(yr=n<D?-1:1,D=n,t&&(Ge&&!je&&200<r-Ge&&(Ge=0,A("scrollEnd")),He=h,h=r),yr<0){for(Je=e;0<Je--;)br[Je]&&br[Je].update(0,t);yr=1}else for(Je=0;Je<e;Je++)br[Je]&&br[Je].update(0,t)}},Q=[v,"top",w,y,ur+lr,ur+or,ur+sr,ur+ar,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],q=Q.concat([nr,ir,"boxSizing","max"+fr,"max"+m,"position",ur,cr,cr+sr,cr+or,cr+lr,cr+ar]),U=/([A-Z])/g,Sr=function _setState(e){if(e){var r,t,n=e.t.style,i=e.length,o=0;for((e.t._gsap||Re.core.getCache(e.t)).uncache=1;o<i;o+=2)t=e[o+1],r=e[o],t?n[r]=t:n[r]&&n.removeProperty(r.replace(U,"-$1").toLowerCase())}},wr={left:0,top:0},G=/(?:webkit|moz|length|cssText|inset)/i;dr.op=gr;var ee=(ScrollTrigger.prototype.init=function init(E,k){if(this.progress=this.start=0,this.vars&&this.kill(1),er){var m,n,f,C,A,B,R,z,L,F,D,e,j,J,K,Y,Q,r,q,b,U,Z,x,G,y,w,t,T,ee,re,i,p,te,ne,ie,oe,ae,se=(E=wa(rr(E)||W(E)||E.nodeType?{trigger:E}:E,mr)).onUpdate,le=E.toggleClass,o=E.id,ce=E.onToggle,ue=E.onRefresh,fe=E.scrub,pe=E.trigger,de=E.pin,ge=E.pinSpacing,he=E.invalidateOnRefresh,ve=E.anticipatePin,a=E.onScrubComplete,d=E.onSnapComplete,me=E.once,be=E.snap,xe=E.pinReparent,s=E.pinSpacer,ye=E.containerAnimation,Se=E.fastScrollEnd,we=E.preventOverlaps,Te=E.horizontal||E.containerAnimation&&!1!==E.horizontal?dr:gr,Ee=!fe&&0!==fe,Oe=I(E.scroller||ze),l=Re.core.getCache(Oe),_e=M(Oe),ke="fixed"===("pinType"in E?E.pinType:N(Oe,"pinType")||_e&&"fixed"),Ce=[E.onEnter,E.onLeave,E.onEnterBack,E.onLeaveBack],Me=Ee&&E.toggleActions.split(" "),c="markers"in E?E.markers:mr.markers,Pe=_e?0:parseFloat(ua(Oe)["border"+Te.p2+fr])||0,Ie=this,u=E.onRefreshInit&&function(){return E.onRefreshInit(Ie)},Ae=function _getSizeFunc(e,r,t){var n=t.d,i=t.d2,o=t.a;return(o=N(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(r?ze["inner"+i]:e["client"+i])||0}}(Oe,_e,Te),Ne=function _getOffsetsFunc(e,r){return!r||~Ue.indexOf(e)?P(e):function(){return wr}}(Oe,_e),g=0,Be=O(Oe,Te);if(Ie.media=Qe,Ie._dir=Te,ve*=45,Ie.scroller=Oe,Ie.scroll=ye?ye.time.bind(ye):Be,C=Be(),Ie.vars=E,k=k||E.animation,"refreshPriority"in E&&(Ke=1),l.tweenScroll=l.tweenScroll||{top:sb(Oe,gr),left:sb(Oe,dr)},Ie.tweenTo=m=l.tweenScroll[Te.p],k&&(k.vars.lazy=!1,k._initted||!1!==k.vars.immediateRender&&!1!==E.immediateRender&&k.render(0,!0,!0),Ie.animation=k.pause(),k.scrollTrigger=Ie,(i=W(fe)&&fe)&&(re=Re.to(k,{ease:"power3",duration:i,onComplete:function onComplete(){return a&&a(Ie)}})),T=0,o=o||k.vars.id),br.push(Ie),be&&(X(be)&&!be.push||(be={snapTo:be}),"scrollBehavior"in Fe.style&&Re.set(_e?[Fe,We]:Oe,{scrollBehavior:"auto"}),f=V(be.snapTo)?be.snapTo:"labels"===be.snapTo?function _getClosestLabel(r){return function(e){return Re.utils.snap(za(r),e)}}(k):"labelsDirectional"===be.snapTo?function _getLabelAtDirection(t){return function(e,r){return Ba(za(t))(e,r.direction)}}(k):!1!==be.directional?function(e,r){return Ba(be.snapTo)(e,r.direction)}:Re.utils.snap(be.snapTo),p=be.duration||{min:.1,max:2},p=X(p)?De(p.min,p.max):De(p,p),te=Re.delayedCall(be.delay||i/2||.1,function(){if(Math.abs(Ie.getVelocity())<10&&!je&&g!==Be()){var e=k&&!Ee?k.totalProgress():Ie.progress,r=(e-ee)/(Ze()-He)*1e3||0,t=Re.utils.clamp(-Ie.progress,1-Ie.progress,tr(r/2)*r/.185),n=Ie.progress+(!1===be.inertia?0:t),i=De(0,1,f(n,Ie)),o=Be(),a=Math.round(B+i*j),s=be.onStart,l=be.onInterrupt,c=be.onComplete,u=m.tween;if(o<=R&&B<=o&&a!==o){if(u&&!u._initted&&u.data<=tr(a-o))return;!1===be.inertia&&(t=i-Ie.progress),m(a,{duration:p(tr(.185*Math.max(tr(n-e),tr(i-e))/r/.05||0)),ease:be.ease||"power3",data:tr(a-o),onInterrupt:function onInterrupt(){return te.restart(!0)&&l&&l(Ie)},onComplete:function onComplete(){Ie.update(),g=Be(),T=ee=k&&!Ee?k.totalProgress():Ie.progress,d&&d(Ie),c&&c(Ie)}},o,t*j,a-o-t*j),s&&s(Ie,m.tween)}}else Ie.isActive&&te.restart(!0)}).pause()),o&&(xr[o]=Ie),pe=Ie.trigger=I(pe||de),de=!0===de?pe:I(de),rr(le)&&(le={targets:pe,className:le}),de&&(!1===ge||ge===ur||(ge=!(!ge&&"flex"===ua(de.parentNode).display)&&cr),Ie.pin=de,!1!==E.force3D&&Re.set(de,{force3D:!0}),(n=Re.core.getCache(de)).spacer?J=n.pinState:(s&&((s=I(s))&&!s.nodeType&&(s=s.current||s.nativeElement),n.spacerIsNative=!!s,s&&(n.spacerState=mb(s))),n.spacer=Q=s||Le.createElement("div"),Q.classList.add("pin-spacer"),o&&Q.classList.add("pin-spacer-"+o),n.pinState=J=mb(de)),Ie.spacer=Q=n.spacer,t=ua(de),x=t[ge+Te.os2],q=Re.getProperty(de),b=Re.quickSetter(de,Te.a,pr),jb(de,Q,t),Y=mb(de)),c&&(e=X(c)?wa(c,vr):vr,F=Ka("scroller-start",o,Oe,Te,e,0),D=Ka("scroller-end",o,Oe,Te,e,0,F),r=F["offset"+Te.op.d2],z=Ka("start",o,Oe,Te,e,r,0,ye),L=Ka("end",o,Oe,Te,e,r,0,ye),ye&&(ae=Re.quickSetter([z,L],Te.a,pr)),ke||Ue.length&&!0===N(Oe,"fixedMarkers")||(function _makePositionable(e){var r=ua(e).position;e.style.position="absolute"===r||"fixed"===r?r:"relative"}(_e?Fe:Oe),Re.set([F,D],{force3D:!0}),y=Re.quickSetter(F,Te.a,pr),w=Re.quickSetter(D,Te.a,pr))),ye){var h=ye.vars.onUpdate,v=ye.vars.onUpdateParams;ye.eventCallback("onUpdate",function(){Ie.update(0,0,1),h&&h.apply(v||[])})}Ie.previous=function(){return br[br.indexOf(Ie)-1]},Ie.next=function(){return br[br.indexOf(Ie)+1]},Ie.revert=function(e){var r=!1!==e||!Ie.enabled,t=Xe;r!==Ie.isReverted&&(r&&(Ie.scroll.rec||(Ie.scroll.rec=Be()),ie=Math.max(Be(),Ie.scroll.rec||0),ne=Ie.progress,oe=k&&k.progress()),z&&[z,L,F,D].forEach(function(e){return e.style.display=r?"none":"block"}),r&&(Xe=1),Ie.update(r),Xe=t,de&&(r?function _swapPinOut(e,r,t){Sr(t);var n=e._gsap;if(n.spacerIsNative)Sr(n.spacerState);else if(e.parentNode===r){var i=r.parentNode;i&&(i.insertBefore(e,r),i.removeChild(r))}}(de,Q,J):xe&&Ie.isActive||jb(de,Q,ua(de),G)),Ie.isReverted=r)},Ie.refresh=function(e,r){if(!Xe&&Ie.enabled||r)if(de&&e&&Ge)Ea(ScrollTrigger,"scrollEnd",Xa);else{Xe=1,re&&re.pause(),he&&k&&k.time(-.01,!0).invalidate(),Ie.isReverted||Ie.revert();for(var t,n,i,o,a,s,l,c,u,f,p=Ae(),d=Ne(),g=ye?ye.duration():S(Oe,Te),h=0,v=0,m=E.end,b=E.endTrigger||pe,x=E.start||(0!==E.start&&pe?de?"0 0":"0 100%":0),y=E.pinnedContainer&&I(E.pinnedContainer),w=pe&&Math.max(0,br.indexOf(Ie))||0,T=w;T--;)(s=br[T]).end||s.refresh(0,1)||(Xe=1),!(l=s.pin)||l!==pe&&l!==de||s.isReverted||((f=f||[]).unshift(s),s.revert());for(V(x)&&(x=x(Ie)),B=pb(x,pe,p,Te,Be(),z,F,Ie,d,Pe,ke,g,ye)||(de?-.001:0),V(m)&&(m=m(Ie)),rr(m)&&!m.indexOf("+=")&&(~m.indexOf(" ")?m=(rr(x)?x.split(" ")[0]:"")+m:(h=Ja(m.substr(2),p),m=rr(x)?x:B+h,b=pe)),R=Math.max(B,pb(m||(b?"100% 0":g),b,p,Te,Be()+h,L,D,Ie,d,Pe,ke,g,ye))||-.001,j=R-B||(B-=.01)&&.001,h=0,T=w;T--;)(l=(s=br[T]).pin)&&s.start-s._pinPush<B&&!ye&&(t=s.end-s.start,l!==pe&&l!==y||W(x)||(h+=t*(1-s.progress)),l===de&&(v+=t));if(B+=h,R+=h,Ie._pinPush=v,z&&h&&((t={})[Te.a]="+="+h,y&&(t[Te.p]="-="+Be()),Re.set([z,L],t)),de)t=ua(de),o=Te===gr,i=Be(),U=parseFloat(q(Te.a))+v,!g&&1<R&&((_e?Fe:Oe).style["overflow-"+Te.a]="scroll"),jb(de,Q,t),Y=mb(de),n=hr(de,!0),c=ke&&O(Oe,o?dr:gr)(),ge&&((G=[ge+Te.os2,j+v+pr]).t=Q,(T=ge===cr?ya(de,Te)+j+v:0)&&G.push(Te.d,T+pr),Sr(G),ke&&Be(ie)),ke&&((a={top:n.top+(o?i-B:c)+pr,left:n.left+(o?c:i-B)+pr,boxSizing:"border-box",position:"fixed"})[nr]=a.maxWidth=Math.ceil(n.width)+pr,a[ir]=a.maxHeight=Math.ceil(n.height)+pr,a[ur]=a[ur+sr]=a[ur+or]=a[ur+lr]=a[ur+ar]="0",a[cr]=t[cr],a[cr+sr]=t[cr+sr],a[cr+or]=t[cr+or],a[cr+lr]=t[cr+lr],a[cr+ar]=t[cr+ar],K=function _copyState(e,r,t){for(var n,i=[],o=e.length,a=t?8:0;a<o;a+=2)n=e[a],i.push(n,n in r?r[n]:e[a+1]);return i.t=e.t,i}(J,a,xe)),k?(u=k._initted,Ye(1),k.render(k.duration(),!0,!0),Z=q(Te.a)-U+j+v,j!==Z&&K.splice(K.length-2,2),k.render(0,!0,!0),u||k.invalidate(),Ye(0)):Z=j;else if(pe&&Be()&&!ye)for(n=pe.parentNode;n&&n!==Fe;)n._pinOffset&&(B-=n._pinOffset,R-=n._pinOffset),n=n.parentNode;f&&f.forEach(function(e){return e.revert(!1)}),Ie.start=B,Ie.end=R,C=A=Be(),ye||(C<ie&&Be(ie),Ie.scroll.rec=0),Ie.revert(!1),Xe=0,k&&Ee&&k._initted&&k.progress()!==oe&&k.progress(oe,!0).render(k.time(),!0,!0),ne===Ie.progress&&!ye||(k&&!Ee&&k.totalProgress(ne,!0),Ie.progress=ne,Ie.update(0,0,1)),de&&ge&&(Q._pinOffset=Math.round(Ie.progress*Z)),ue&&ue(Ie)}},Ie.getVelocity=function(){return(Be()-A)/(Ze()-He)*1e3||0},Ie.endAnimation=function(){$(Ie.callbackAnimation),k&&(re?re.progress(1):k.paused()?Ee||$(k,Ie.direction<0,1):$(k,k.reversed()))},Ie.labelToScroll=function(e){return k&&k.labels&&(B||Ie.refresh()||B)+k.labels[e]/k.duration()*j||0},Ie.getTrailing=function(r){var e=br.indexOf(Ie),t=0<Ie.direction?br.slice(0,e).reverse():br.slice(e+1);return rr(r)?t.filter(function(e){return e.vars.preventOverlaps===r}):t},Ie.update=function(e,r,t){if(!ye||t||e){var n,i,o,a,s,l,c,u=Ie.scroll(),f=e?0:(u-B)/j,p=f<0?0:1<f?1:f||0,d=Ie.progress;if(r&&(A=C,C=ye?Be():u,be&&(ee=T,T=k&&!Ee?k.totalProgress():p)),ve&&!p&&de&&!Xe&&!qe&&Ge&&B<u+(u-A)/(Ze()-He)*ve&&(p=1e-4),p!==d&&Ie.enabled){if(a=(s=(n=Ie.isActive=!!p&&p<1)!=(!!d&&d<1))||!!p!=!!d,Ie.direction=d<p?1:-1,Ie.progress=p,a&&!Xe&&(i=p&&!d?0:1===p?1:1===d?2:3,Ee&&(o=!s&&"none"!==Me[i+1]&&Me[i+1]||Me[i],c=k&&("complete"===o||"reset"===o||o in k))),we&&s&&(c||fe||!k)&&(V(we)?we(Ie):Ie.getTrailing(we).forEach(function(e){return e.endAnimation()})),Ee||(!re||Xe||qe?k&&k.totalProgress(p,!!Xe):(re.vars.totalProgress=p,re.invalidate().restart())),de)if(e&&ge&&(Q.style[ge+Te.os2]=x),ke){if(a){if(l=!e&&d<p&&u<R+1&&u+1>=S(Oe,Te),xe)if(e||!n&&!l)rb(de,Q);else{var g=hr(de,!0),h=u-B;rb(de,Fe,g.top+(Te===gr?h:0)+pr,g.left+(Te===gr?0:h)+pr)}Sr(n||l?K:Y),Z!==j&&p<1&&n||b(U+(1!==p||l?0:Z))}}else b(U+Z*p);!be||m.tween||Xe||qe||te.restart(!0),le&&(s||me&&p&&(p<1||!$e))&&Ve(le.targets).forEach(function(e){return e.classList[n||me?"add":"remove"](le.className)}),!se||Ee||e||se(Ie),a&&!Xe?(Ee&&(c&&("complete"===o?k.pause().totalProgress(1):"reset"===o?k.restart(!0).pause():"restart"===o?k.restart(!0):k[o]()),se&&se(Ie)),!s&&$e||(ce&&s&&_(Ie,ce),Ce[i]&&_(Ie,Ce[i]),me&&(1===p?Ie.kill(!1,1):Ce[i]=0),s||Ce[i=1===p?1:3]&&_(Ie,Ce[i])),Se&&!n&&Math.abs(Ie.getVelocity())>(W(Se)?Se:2500)&&($(Ie.callbackAnimation),re?re.progress(1):$(k,!p,1))):Ee&&se&&!Xe&&se(Ie)}if(w){var v=ye?u/ye.duration()*(ye._caScrollDist||0):u;y(v+(F._isFlipped?1:0)),w(v)}ae&&ae(-u/ye.duration()*(ye._caScrollDist||0))}},Ie.enable=function(e,r){Ie.enabled||(Ie.enabled=!0,Ea(Oe,"resize",Qa),Ea(Oe,"scroll",Pa),u&&Ea(ScrollTrigger,"refreshInit",u),!1!==e&&(Ie.progress=ne=0,C=A=g=Be()),!1!==r&&Ie.refresh())},Ie.getTween=function(e){return e&&m?m.tween:re},Ie.setPositions=function(e,r){de&&(U+=e-B,Z+=r-e-j),Ie.start=B=e,Ie.end=R=r,j=r-e,Ie.update()},Ie.disable=function(e,r){if(Ie.enabled&&(!1!==e&&Ie.revert(),Ie.enabled=Ie.isActive=!1,r||re&&re.pause(),ie=0,n&&(n.uncache=1),u&&Fa(ScrollTrigger,"refreshInit",u),te&&(te.pause(),m.tween&&m.tween.kill()&&(m.tween=0)),!_e)){for(var t=br.length;t--;)if(br[t].scroller===Oe&&br[t]!==Ie)return;Fa(Oe,"resize",Qa),Fa(Oe,"scroll",Pa)}},Ie.kill=function(e,r){Ie.disable(e,r),re&&re.kill(),o&&delete xr[o];var t=br.indexOf(Ie);0<=t&&br.splice(t,1),t===Je&&0<yr&&Je--,t=0,br.forEach(function(e){return e.scroller===Ie.scroller&&(t=1)}),t||(Ie.scroll.rec=0),k&&(k.scrollTrigger=null,e&&k.render(-1),r||k.kill()),z&&[z,L,F,D].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),de&&(n&&(n.uncache=1),t=0,br.forEach(function(e){return e.pin===de&&t++}),t||(n.spacer=0))},Ie.enable(!1,!1),k&&k.add&&!j?Re.delayedCall(.01,function(){return B||R||Ie.refresh()})&&(j=.01)&&(B=R=0):Ie.refresh()}else this.update=this.refresh=this.kill=H},ScrollTrigger.register=function register(e){if(!o&&(Re=e||L(),K()&&window.document&&(ze=window,Le=document,We=Le.documentElement,Fe=Le.body),Re&&(Ve=Re.utils.toArray,De=Re.utils.clamp,Ye=Re.core.suppressOverwrites||H,Re.core.globals("ScrollTrigger",ScrollTrigger),Fe))){Ea(ze,"wheel",Pa),i=[ze,Le,We,Fe],Ea(Le,"scroll",Pa);var r,t=Fe.style,n=t.borderTopStyle;t.borderTopStyle="solid",r=hr(Fe),gr.m=Math.round(r.top+gr.sc())||0,dr.m=Math.round(r.left+dr.sc())||0,n?t.borderTopStyle=n:t.removeProperty("border-top-style"),s=setInterval(Oa,200),Re.delayedCall(.5,function(){return qe=0}),Ea(Le,"touchcancel",H),Ea(Fe,"touchstart",H),Da(Ea,Le,"pointerdown,touchstart,mousedown",function(){return je=1}),Da(Ea,Le,"pointerup,touchend,mouseup",function(){return je=0}),l=Re.utils.checkPrefix("transform"),q.push(l),o=Ze(),a=Re.delayedCall(.2,F).pause(),f=[Le,"visibilitychange",function(){var e=ze.innerWidth,r=ze.innerHeight;Le.hidden?(c=e,u=r):c===e&&u===r||Qa()},Le,"DOMContentLoaded",F,ze,"load",function(){return Ge||F()},ze,"resize",Qa],T(Ea)}return o},ScrollTrigger.defaults=function defaults(e){if(e)for(var r in e)mr[r]=e[r];return mr},ScrollTrigger.kill=function kill(){er=0,br.slice(0).forEach(function(e){return e.kill(1)})},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&($e=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(s)||(s=r)&&setInterval(Oa,r),"autoRefreshEvents"in e&&(T(Fa)||T(Ea,e.autoRefreshEvents||"none"),t=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,r){var t=I(e),n=g.indexOf(t),i=M(t);~n&&g.splice(n,i?6:2),r&&(i?Ue.unshift(ze,r,Fe,r,We,r):Ue.unshift(t,r))},ScrollTrigger.matchMedia=function matchMedia(e){var r,t,n,i,o;for(t in e)n=C.indexOf(t),i=e[t],"all"===(Qe=t)?i():(r=ze.matchMedia(t))&&(r.matches&&(o=i()),~n?(C[n+1]=Z(C[n+1],i),C[n+2]=Z(C[n+2],o)):(n=C.length,C.push(t,i,o),r.addListener?r.addListener(Wa):r.addEventListener("change",Wa)),C[n+3]=r.matches),Qe=0;return C},ScrollTrigger.clearMatchMedia=function clearMatchMedia(e){e||(C.length=0),0<=(e=C.indexOf(e))&&C.splice(e,4)},ScrollTrigger.isInViewport=function isInViewport(e,r,t){var n=(rr(e)?I(e):e).getBoundingClientRect(),i=n[t?nr:ir]*r||0;return t?0<n.right-i&&n.left+i<ze.innerWidth:0<n.bottom-i&&n.top+i<ze.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,r,t){rr(e)&&(e=I(e));var n=e.getBoundingClientRect(),i=n[t?nr:ir],o=null==r?i/2:r in b?b[r]*i:~r.indexOf("%")?parseFloat(r)*i/100:parseFloat(r)||0;return t?(n.left+o)/ze.innerWidth:(n.top+o)/ze.innerHeight},ScrollTrigger);function ScrollTrigger(e,r){o||ScrollTrigger.register(Re)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,r)}ee.version="3.9.1",ee.saveStyles=function(e){return e?Ve(e).forEach(function(e){if(e&&e.style){var r=B.indexOf(e);0<=r&&B.splice(r,5),B.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Re.core.getCache(e),Qe)}}):B},ee.revert=function(e,r){return z(!e,r)},ee.create=function(e,r){return new ee(e,r)},ee.refresh=function(e){return e?Qa():(o||ee.register())&&F(!0)},ee.update=j,ee.clearScrollMemory=ab,ee.maxScroll=function(e,r){return S(e,r?dr:gr)},ee.getScrollFunc=function(e,r){return O(I(e),r?dr:gr)},ee.getById=function(e){return xr[e]},ee.getAll=function(){return br.slice(0)},ee.isScrolling=function(){return!!Ge},ee.snapDirectional=Ba,ee.addEventListener=function(e,r){var t=x[e]||(x[e]=[]);~t.indexOf(r)||t.push(r)},ee.removeEventListener=function(e,r){var t=x[e],n=t&&t.indexOf(r);0<=n&&t.splice(n,1)},ee.batch=function(e,r){function Nj(e,r){var t=[],n=[],i=Re.delayedCall(o,function(){r(t,n),t=[],n=[]}).pause();return function(e){t.length||i.restart(!0),t.push(e.trigger),n.push(e),a<=t.length&&i.progress(1)}}var t,n=[],i={},o=r.interval||.016,a=r.batchMax||1e9;for(t in r)i[t]="on"===t.substr(0,2)&&V(r[t])&&"onRefreshInit"!==t?Nj(0,r[t]):r[t];return V(a)&&(a=a(),Ea(ee,"refresh",function(){return a=r.batchMax()})),Ve(e).forEach(function(e){var r={};for(t in i)r[t]=i[t];r.trigger=e,n.push(ee.create(r))}),n},ee.sort=function(e){return br.sort(e||function(e,r){return-1e6*(e.vars.refreshPriority||0)+e.start-(r.start+-1e6*(r.vars.refreshPriority||0))})},L()&&Re.registerPlugin(ee),e.ScrollTrigger=ee,e.default=ee;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}});

;
/*! jQuery & Zepto Lazy v1.7.9 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */
!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;e<t.length;e++){var r=i.filter(function(){return this===t[e]});r.length&&s(!1,r)}},s(),n(a.appendScroll).on("scroll."+l+" resize."+l,u.e))}function c(t){var i=a.defaultImage,o=a.placeholder,u=a.imageBase,l=a.srcsetAttribute,f=a.loaderAttribute,c=a._f||{};t=n(t).filter(function(){var t=n(this),r=m(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(l)||t.attr(f)||c[r]!==e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;s<d;s++){var A=n(t[s]),g=m(t[s]),h=A.attr(a.imageBaseAttribute)||u;g===N&&h&&A.attr(l)&&A.attr(l,b(A.attr(l),h)),c[g]===e||A.attr(f)||A.attr(f,c[g]),g===N&&i&&!A.attr(E)?A.attr(E,i):g===N||!o||A.css(O)&&"none"!==A.css(O)||A.css(O,"url('"+o+"')")}return t}function s(t,e){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var o=e||i,u=!1,l=a.imageBase||"",f=a.srcsetAttribute,c=a.handledName,s=0;s<o.length;s++)if(t||e||A(o[s])){var g=n(o[s]),h=m(o[s]),b=g.attr(a.attribute),v=g.attr(a.imageBaseAttribute)||l,p=g.attr(a.loaderAttribute);g.data(c)||a.visibleOnly&&!g.is(":visible")||!((b||g.attr(f))&&(h===N&&(v+b!==g.attr(E)||g.attr(f)!==g.attr(F))||h!==N&&v+b!==g.css(O))||p)||(u=!0,g.data(c,!0),d(g,h,v,p))}u&&(i=n(i).filter(function(){return!n(this).data(c)}))}function d(t,e,r,i){++z;var o=function(){y("onError",t),p(),o=n.noop};y("beforeLoad",t);var u=a.attribute,l=a.srcsetAttribute,f=a.sizesAttribute,c=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(c);if(i){var g=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),y(T,t),setTimeout(p,1),g=n.noop};t.off(I).one(I,o).one(D,g),y(i,t,function(e){e?(t.off(D),g()):(t.off(I),o())})||t.trigger(I)}else{var h=n(new Image);h.one(I,o).one(D,function(){t.hide(),e===N?t.attr(C,h.attr(C)).attr(F,h.attr(F)).attr(E,h.attr(E)):t.css(O,"url('"+h.attr(E)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(u+" "+l+" "+c+" "+a.imageBaseAttribute),f!==C&&t.removeAttr(f)),t.data(d,!0),y(T,t),h.remove(),p()});var m=(L&&A?A:t.attr(u))||"";h.attr(C,t.attr(f)).attr(F,t.attr(l)).attr(E,m?r+m:null),h.complete&&h.trigger(D)}}function A(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=h()+n>e.top&&-n<e.bottom,o=g()+n>e.left&&-n<e.right;return"vertical"===r?i:"horizontal"===r?o:i&&o}function g(){return w>=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;a<n;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function v(t,e){var n,i=0;return function(o,u){function l(){i=+new Date,e.call(r,o)}var f=+new Date-i;n&&clearTimeout(n),f>t||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l<f;l++)(o[t[l]]===e||n.isFunction(o[t[l]]))&&(o[t[l]]=i);for(var c=0,s=r.length;c<s;c++)u[r[c]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){o=!0})}(window);;
/* axios v0.21.1 | (c) 2020 by Matt Zabriskie */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){var t=new i(e),n=s(i.prototype.request,t);return o.extend(n,i.prototype,t),o.extend(n,t),n}var o=n(2),s=n(3),i=n(4),a=n(22),u=n(10),c=r(u);c.Axios=i,c.create=function(e){return r(a(c.defaults,e))},c.Cancel=n(23),c.CancelToken=n(24),c.isCancel=n(9),c.all=function(e){return Promise.all(e)},c.spread=n(25),c.isAxiosError=n(26),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){return"[object Array]"===R.call(e)}function o(e){return"undefined"==typeof e}function s(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function i(e){return"[object ArrayBuffer]"===R.call(e)}function a(e){return"undefined"!=typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function c(e){return"string"==typeof e}function f(e){return"number"==typeof e}function p(e){return null!==e&&"object"==typeof e}function d(e){if("[object Object]"!==R.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Date]"===R.call(e)}function h(e){return"[object File]"===R.call(e)}function m(e){return"[object Blob]"===R.call(e)}function y(e){return"[object Function]"===R.call(e)}function g(e){return p(e)&&y(e.pipe)}function v(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function x(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function w(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(e,t){if(null!==e&&"undefined"!=typeof e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}function E(){function e(e,n){d(t[n])&&d(e)?t[n]=E(t[n],e):d(e)?t[n]=E({},e):r(e)?t[n]=e.slice():t[n]=e}for(var t={},n=0,o=arguments.length;n<o;n++)b(arguments[n],e);return t}function j(e,t,n){return b(t,function(t,r){n&&"function"==typeof t?e[r]=S(t,n):e[r]=t}),e}function C(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}var S=n(3),R=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:i,isBuffer:s,isFormData:a,isArrayBufferView:u,isString:c,isNumber:f,isObject:p,isPlainObject:d,isUndefined:o,isDate:l,isFile:h,isBlob:m,isFunction:y,isStream:g,isURLSearchParams:v,isStandardBrowserEnv:w,forEach:b,merge:E,extend:j,trim:x,stripBOM:C}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new i,response:new i}}var o=n(2),s=n(5),i=n(6),a=n(7),u=n(22);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=u(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},r.prototype.getUri=function(e){return e=u(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],function(e){r.prototype[e]=function(t,n){return this.request(u(n||{},{method:e,url:t,data:(n||{}).data}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(u(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(2);e.exports=function(e,t,n){if(!t)return e;var s;if(n)s=n(t);else if(o.isURLSearchParams(t))s=t.toString();else{var i=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),i.push(r(t)+"="+r(e))}))}),s=i.join("&")}if(s){var a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(2),s=n(8),i=n(9),a=n(10);e.exports=function(e){r(e),e.headers=e.headers||{},e.data=s(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||a.adapter;return t(e).then(function(t){return r(e),t.data=s(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(r(e),t&&t.response&&(t.response.data=s(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function o(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(12):"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(e=n(12)),e}var s=n(2),i=n(11),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:o(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e)?e:s.isArrayBufferView(e)?e.buffer:s.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):s.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},s.forEach(["delete","get","head"],function(e){u.headers[e]={}}),s.forEach(["post","put","patch"],function(e){u.headers[e]=s.merge(a)}),e.exports=u},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(2),o=n(13),s=n(16),i=n(5),a=n(17),u=n(20),c=n(21),f=n(14);e.exports=function(e){return new Promise(function(t,n){var p=e.data,d=e.headers;r.isFormData(p)&&delete d["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+m)}var y=a(e.baseURL,e.url);if(l.open(e.method.toUpperCase(),i(y,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,l.onreadystatechange=function(){if(l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in l?u(l.getAllResponseHeaders()):null,s=e.responseType&&"text"!==e.responseType?l.response:l.responseText,i={data:s,status:l.status,statusText:l.statusText,headers:r,config:e,request:l};o(t,n,i),l=null}},l.onabort=function(){l&&(n(f("Request aborted",e,"ECONNABORTED",l)),l=null)},l.onerror=function(){n(f("Network Error",e,null,l)),l=null},l.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(f(t,e,"ECONNABORTED",l)),l=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||c(y))&&e.xsrfCookieName?s.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in l&&r.forEach(d,function(e,t){"undefined"==typeof p&&"content-type"===t.toLowerCase()?delete d[t]:l.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),e.responseType)try{l.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){l&&(l.abort(),n(e),l=null)}),p||(p=null),l.send(p)})}},function(e,t,n){"use strict";var r=n(14);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e,t,n,o,s){var i=new Error(e);return r(i,t,n,o,s)}},function(e,t){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,s,i){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";var r=n(18),o=n(19);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,s,i={};return e?(r.forEach(e.split("\n"),function(e){if(s=e.indexOf(":"),t=r.trim(e.substr(0,s)).toLowerCase(),n=r.trim(e.substr(s+1)),t){if(i[t]&&o.indexOf(t)>=0)return;"set-cookie"===t?i[t]=(i[t]?i[t]:[]).concat([n]):i[t]=i[t]?i[t]+", "+n:n}}),i):i}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){function n(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(s[o]=n(void 0,e[o])):s[o]=n(e[o],t[o])}t=t||{};var s={},i=["url","method","data"],a=["headers","auth","proxy","params"],u=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],c=["validateStatus"];r.forEach(i,function(e){r.isUndefined(t[e])||(s[e]=n(void 0,t[e]))}),r.forEach(a,o),r.forEach(u,function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(s[o]=n(void 0,e[o])):s[o]=n(void 0,t[o])}),r.forEach(c,function(r){r in t?s[r]=n(e[r],t[r]):r in e&&(s[r]=n(void 0,e[r]))});var f=i.concat(a).concat(u).concat(c),p=Object.keys(e).concat(Object.keys(t)).filter(function(e){return f.indexOf(e)===-1});return r.forEach(p,o),s}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new o(e),t(n.reason))})}var o=n(23);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){"use strict";e.exports=function(e){return"object"==typeof e&&e.isAxiosError===!0}}])});
//# sourceMappingURL=axios.min.map;
$((()=>{$(".fpa-accordion__label").each((function(){const t=$(this);t.on("toggle",((e,i=null,a=300)=>((t,e=null,i=300)=>{const a=t.data("accordion-content")?$(t.data("accordion-content")):t.parent().find(".fpa-accordion__content"),n=null===e?!t.hasClass("fpa-accordion--open"):e;if(t.data("accordion-open",n),t.toggleClass("fpa-accordion--open",n),a.toggleClass("fpa-accordion--open",n),n?t.data("accordion-text-openned")&&t.textNodes().replaceWith(t.data("accordion-text-openned")):t.data("accordion-text-closed")&&t.textNodes().replaceWith(t.data("accordion-text-closed")),!1!==t.data("accordion-slide"))if(n)if(t.data("accordion-height-range")){const t=a.css("height");a.css("max-height","unset");const e=`${a.height()}px`;t!==e&&(a.css("max-height",a.css("min-height")),a.animate({"max-height":e},{duration:i,complete:()=>{a.css("max-height","unset")}}))}else a.slideDown({duration:i});else t.data("accordion-height-range")?a.css("max-height")!==a.css("min-height")?(a.css("max-height",`${a.height()}px`),a.animate({scrollTop:0,"max-height":a.css("min-height")},{duration:i})):a.animate({scrollTop:0},{duration:i}):a.slideUp({duration:i})})(t,i,a))),t.on("click",(function(){t.data("disabled")||t.trigger("toggle")})),"boolean"==typeof t.data("accordion-open")&&t.trigger("toggle",[t.data("accordion-open"),0]);const e=debounce(200,(()=>{t?t.trigger("toggle",[t.data("accordion-open"),0]):window.removeEventListener("resize",e)}));window.addEventListener("resize",e),e()}))}));class ApiError extends Error{constructor(t){super(t),this.name="ApiError",this.response=t}}const abortErrorName="AbortError";async function loadJson(t,e,i=window.toastApiMessageError){let a=null;try{if(a=await fetch(t,e),200===a.status)return a.json()}catch(t){if("AbortError"===t.name)return null;a=t}throw i&&presentToast("error","Error",!0,i),new ApiError(a)}function timeout(t,e){return new Promise(((i,a)=>{const n=setTimeout((()=>{a(new Error("TIMEOUT"))}),t);e.then((t=>{clearTimeout(n),i(t)})).catch((t=>{clearTimeout(n),a(t)}))}))}function debounce(t,e){let i=0,a=!1,n=null,s=null;return s=function(...o){if(null===a)return;let r=Date.now();if(!(r-i<t))return a=!1,i=r,n&&(o=n,n=void 0),e.call(this,...o);a?n=o:(a=!0,i=r,setTimeout(s.bind(this),Math.max(0,t-(r-i)),o))},s}function createCookie(t,e,i){let a,n;i?(a=new Date,a.setTime(a.getTime()+24*i*60*60*1e3),n=`; expires=${a.toUTCString()}`):n="",document.cookie=`${t}=${e}${n}; path=/`}window.createArticleLoader=function(t={component:".fpa-news-listing",container:".fpa-news-listing__articles",template:"#fpa-news-listing-cards",filters:".fpa-filters"}){if(!$(t.component).length||!$(t.template).length)return;let e=Handlebars.compile($(t.template).html());if(-1===$(t.component).attr("data-api-endpoint").indexOf("mockaroo")){var i=location.protocol+"//"+location.host+$(t.component).attr("data-api-endpoint");$(t.component).attr("data-api-endpoint",i)}let a=!1;const n=[],s=$(t.filters),o=windowUrl.searchParams.get("tags");let r=o?o.split(","):n.map((t=>t)),l=orDefault(windowUrl.searchParams.get("page"),1),c=orDefault(windowUrl.searchParams.get("pagesize"),8);const d=new Pagination(1,null,$("#pagination"),"#filter"),h=$(t.component);if(h.each((function(){const i=$(this),a=orDefault(orDefault(i.data("toast-message-error"),window.toastApiMessageError),null);i.on("fetch",debounce(500,(s=>{const o=i.data("api-endpoint");if(!o)return;const h=new URL(o),p=(t,e,i)=>{h.searchParams.set(t,e,i);(Array.isArray(i)?e&&e.length===i.length&&!e.some((t=>-1!==i.indexOf(t))):e==i)?windowUrl.searchParams.delete(t):windowUrl.searchParams.set(t,orDefault(e,i))};p("page",l,1),p("pagesize",c,8),p("tags",r,n),loadJson(h.href,void 0,a).then((a=>{a&&(i.find(t.container).empty().append(e({results:a.ResultSet})),window.history.pushState({},"",windowUrl),d.totalPages=a.TotalPages,windowUrl.searchParams.has("page")&&(d.currentPage=Math.min(d.totalPages,parseInt(windowUrl.searchParams.get("page"),10))),d.generateHtml(),d.click=async()=>{l=d.currentPage,i.trigger("fetch"),window.history.pushState({},"",windowUrl)},$(".fpa-pagination__next,.fpa-pagination__prev").on("click",(function(){l=d.setPage(l+($(this).hasClass("fpa-pagination__next")?1:-1)),i.trigger("fetch"),window.history.pushState({},"",windowUrl),$("html, body").animate({scrollTop:$("#filter").offset().top},500)})),i.trigger("fetched",a))})).catch((t=>{}))})))})),t.filters){function p(t){t.addClass("active").find('input[type="checkbox"]').prop("checked",!0)}function f(t){t.removeClass("active").find('input[type="checkbox"]').prop("checked",!1)}if(s.find("li").not("li.more").on("click",(function(){const t=$(this);if(0===t.index()){if(t.hasClass("active"))return;return f(s.find("li.active")),p(t),r=[],l=d.setPage(1),void h.trigger("fetch")}const e=$(this).find("label").text().trim();if(t.hasClass("active")){f(t),s.find("li.active").length||p(s.find("li.all-category"));let i=r.indexOf(e);if(-1===i)return;r.splice(i,1),l=d.setPage(1)}else{if(l=d.setPage(1),p(t),f(s.find("li.all-category")),-1!==r.indexOf(e))return;r.push(e)}a||h.trigger("fetch")})),s.find(".filters-btn").on("click",(function(){s.find(".fpa-filter").fadeIn()})),s.find(".btn.clear").on("click",(function(){f(s.find("li")),p(s.find(".all-category")),r=[],s.find(".fpa-filter").fadeOut(),s.find(".filters-btn span").css("opacity",0),h.trigger("fetch")})),s.find(".btn.apply").on("click",(function(){f(s.find(".all-category"));const t=s.find("li.active").not("li.all-category").length;s.find(".filters-btn .badge").text(t),s.find(".fpa-filter").fadeOut(),$(".filters-btn span").css("opacity",1),h.trigger("fetch")})),r.length){p(s.find(r.map((t=>`input[id='${t}']`)).join(",")).parent());const t=s.find("li.active").not("li.all-category").length;s.find(".filters-btn .badge").text(t),$(".filters-btn span").css("opacity",1)}else p(s.find(".all-category"))}$(".fpa-filter ul li:not(:first-child)").hasClass("active")&&$(".fpa-filter ul li:first-child").removeClass("active");window.addEventListener("windowConfiguration",(function(t){a="mobile"===t.detail.target})),h.trigger("fetch")},window.createConstructionLoader=function(t={component:".fpa-construction-update",container:".fpa-construction-update__articles",template:"#fpa-construction-update",filters:".fpa-filters"}){if(!$(t.component).length||!$(t.template).length)return;let e=Handlebars.compile($(t.template).html());if(-1===$(t.component).attr("data-api-endpoint").indexOf("mockaroo")){var i=location.protocol+"//"+location.host+$(t.component).attr("data-api-endpoint");$(t.component).attr("data-api-endpoint",i)}let a=!1;const n=[],s=$(t.filters),o=windowUrl.searchParams.get("stages");let r=o?o.split(","):n.map((t=>t)),l=orDefault(windowUrl.searchParams.get("page"),1),c=orDefault(windowUrl.searchParams.get("pagesize"),8);const d=new Pagination(1,null,$("#pagination"),"#filter"),h=$(t.component);if(h.each((function(){const i=$(this),a=orDefault(orDefault(i.data("toast-message-error"),window.toastApiMessageError),null);i.on("fetch",debounce(500,(s=>{const o=i.data("api-endpoint");if(!o)return;const h=new URL(o),p=(t,e,i)=>{h.searchParams.set(t,e,i);(Array.isArray(i)?e&&e.length===i.length&&!e.some((t=>-1!==i.indexOf(t))):e==i)?windowUrl.searchParams.delete(t):windowUrl.searchParams.set(t,orDefault(e,i))};p("page",l,1),p("pagesize",c,8),p("stages",r,n),loadJson(h.href,void 0,a).then((a=>{a&&(i.find(t.container).empty().append(e({results:a.ResultSet})),window.history.pushState({},"",windowUrl),d.totalPages=a.TotalPages,windowUrl.searchParams.has("page")&&(d.currentPage=Math.min(d.totalPages,parseInt(windowUrl.searchParams.get("page"),10))),d.generateHtml(),d.click=async()=>{l=d.currentPage,i.trigger("fetch"),window.history.pushState({},"",windowUrl)},$(".fpa-pagination__next,.fpa-pagination__prev").on("click",(function(){l=d.setPage(l+($(this).hasClass("fpa-pagination__next")?1:-1)),i.trigger("fetch"),window.history.pushState({},"",windowUrl),$("html, body").animate({scrollTop:$("#filter").offset().top},500)})),i.trigger("fetched",a))})).catch((t=>{}))})))})),t.filters){function p(t){t.addClass("active").find('input[type="checkbox"]').prop("checked",!0)}function f(t){t.removeClass("active").find('input[type="checkbox"]').prop("checked",!1)}if(s.find("li").not("li.more").on("click",(function(){const t=$(this);if(0===t.index()){if(t.hasClass("active"))return;return f(s.find("li.active")),p(t),r=[],l=d.setPage(1),void h.trigger("fetch")}const e=$(this).find("label").text().trim();if(t.hasClass("active")){f(t),s.find("li.active").length||p(s.find("li.all-category"));let i=r.indexOf(e);if(-1===i)return;r.splice(i,1),l=d.setPage(1)}else{if(l=d.setPage(1),p(t),f(s.find("li.all-category")),-1!==r.indexOf(e))return;r.push(e)}a||h.trigger("fetch")})),s.find(".filters-btn").on("click",(function(){s.find(".fpa-filter").fadeIn()})),s.find(".btn.clear").on("click",(function(){f(s.find("li")),p(s.find(".all-category")),r=[],s.find(".fpa-filter").fadeOut(),s.find(".filters-btn span").css("opacity",0),h.trigger("fetch")})),s.find(".btn.apply").on("click",(function(){f(s.find(".all-category"));const t=s.find("li.active").not("li.all-category").length;s.find(".filters-btn .badge").text(t),s.find(".fpa-filter").fadeOut(),$(".filters-btn span").css("opacity",1),h.trigger("fetch")})),r.length){p(s.find(r.map((t=>`input[id='${t}']`)).join(",")).parent());const t=s.find("li.active").not("li.all-category").length;s.find(".filters-btn .badge").text(t),$(".filters-btn span").css("opacity",1)}else p(s.find(".all-category"))}$(".fpa-filter ul li:not(:first-child)").hasClass("active")&&$(".fpa-filter ul li:first-child").removeClass("active");window.addEventListener("windowConfiguration",(function(t){a="mobile"===t.detail.target})),h.trigger("fetch")};let onClickDimmer=[];function dimmer(t,e=!0,i=null){let a=t.data("dimmer-timeout");if(a&&clearTimeout(a),a=0,e)i&&(onClickDimmer.push(i),t.on("click",i)),t.addClass("dimmed"),a=setTimeout((()=>{t.addClass("dimmed__in"),t.data("dimmer-timeout",null)}));else if(t.hasClass("dimmed__in")){for(let e of onClickDimmer)t.off("click",e);onClickDimmer=[],t.removeClass("dimmed__in"),a=setTimeout((()=>{t.removeClass("dimmed"),t.data("dimmer-timeout",null)}),500)}a&&t.data("dimmer-timeout",a)}$((()=>{const t=document.querySelectorAll(".facet__top-row"),e=new IntersectionObserver((t=>{t.forEach((t=>{0!==t.intersectionRatio&&(t.target.classList.add("animated","fadeInDown"),e.unobserve(t.target))}))}));t.forEach((t=>{e.observe(t)}))})),$((()=>{$(".iframe-placeholder").length&&$(".iframe-placeholder p span").on("click",(function(){Cookiebot.renew()}))})),document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll("div.lazyImg"),e=new IntersectionObserver(((t,e)=>{t.forEach((t=>{if(t.isIntersecting){const i=t.target;i.style.backgroundImage=`url(${i.getAttribute("data-src")})`,i.onload=()=>i.classList.add("loaded"),e.unobserve(i)}}))}),{root:null,rootMargin:"100px",threshold:0});t.forEach((t=>e.observe(t)))})),document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll("img.lazyImg"),e=new IntersectionObserver(((t,e)=>{t.forEach((t=>{if(t.isIntersecting){const i=t.target;i.src=i.getAttribute("data-src"),i.onload=()=>{i.classList.remove("loading"),i.classList.add("loaded");const t=i.parentElement.querySelector(".spinner");t&&t.remove()},e.unobserve(i)}}))}),{root:null,rootMargin:"50px",threshold:0});t.forEach((t=>e.observe(t)))})),$((()=>{const t=[],e={};let i=null;const a=function(){let t=window.location.href;$(".fpa-social__social-icon").each((function(){switch($(this).children().attr("alt")){case"Facebook Icon":$(this).attr("href",`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(t)}&t=${encodeURIComponent(t)}`);break;case"LinkedIn Icon":$(this).attr("href",`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(t)}&title=${encodeURIComponent(document.title)}`);break;case"Twitter Icon":$(this).attr("href",`https://twitter.com/intent/tweet?text=${encodeURIComponent(document.title)}%20${encodeURIComponent(t)}`);break}const e=document.getElementById("copy");e.addEventListener("click",(e=>(e=>{let i=document.createElement("input");document.body.appendChild(i),i.value=t,i.select(),document.execCommand("copy"),document.body.removeChild(i),e.target.classList.add("copied"),e.target.setAttribute("data-tooltip","Link copied")})(e))),e.addEventListener("mouseover",(t=>(t=>{t.target.classList.remove("copied"),t.target.setAttribute("data-tooltip","Copy link")})(t)))}))};window.popModal=()=>{if(i&&i.modal.close(),i=t.pop()||null,!i)return;i.modal||(i.modal=new tingle.modal(i.modalConfig));let e="string"==typeof i.contentEl?i.contentEl:i.contentEl.innerHTML;Object.keys(i.data).length&&(e=Handlebars.compile(e)(i.data)),i.modal.setContent(e),i.modal.open(),setTimeout((()=>i.callback(i.modal)))},window.openModal=(n,s={})=>{let o=n.id||null;o||(o=Math.random().toString(36).slice(2));const r=["overlay","escape"];"false"!==s.closeButton&&r.push("button"),"string"==typeof s.cssclasses&&(s.cssclasses=s.cssclasses.split(","));const l=e[o]||(e[o]={callback:null,modal:null,contentEl:n,data:s,modalConfig:{closeMethods:r,cssClass:Array.isArray(s.cssclasses)?s.cssclasses:["modal-global"],footer:!1,onOpen:function(){if(n.dataset.backgroundColor&&(this.modal.style.backgroundColor=n.dataset.backgroundColor),"false"!==n.dataset.urlpersistence){const t=new URL(window.location.href);t.searchParams.set("open-modal",o),window.history.pushState({},"",t)}$(".fpa-selling-gallery__media-modal__header i").on("click",(function(){i.modal.close()})),$(".fpa-100-year-anniversary__modal__header i").on("click",(function(){i.modal.close()})),$(".fpa-selling-gallery__media-modal__header").length>0&&a(),$(".fpa-stock-search-widget__modal__header i").on("click",(function(){i.modal.close()}))},onClose:function(){const t=new URL(window.location.href);t.searchParams.delete("open-modal",o),$(".fpa-testimonial-bg").length&&$(".tingle-modal__close").next(".tingle-modal-box").find("iframe").attr("src"," ");"true"===t.searchParams.get("modal-persist")||(delete e[o],$(".tingle-modal-box__content").empty()),Object.keys(e).length>4&&Object.keys(e).slice(0,2).forEach((t=>{e[t].modal.destroy(),delete e[t]}));const a=[];for(let e of t.searchParams.keys())e.startsWith("modal-")&&a.push(e);a.forEach((e=>t.searchParams.delete(e))),window.history.replaceState({},"",t),i=null,window.popModal(!1)}}}),c=new Promise((e=>{l.callback=e,t.push(l)}));return i||window.popModal(),c},$(".modal-source").on("click",(function(){const t=$(this),e=t.data("modal-content-id");if(!e)return;const i=$(`#${e}`);if(!i.length)return;const a=t.data();for(let e in t.data())"modalContentId"!==e&&e.startsWith("modal")&&(a[e.substring(5,6).toLowerCase()+e.substring(6)]=t.data(e));window.openModal(i[0],a)}));const n=new URL(window.location.href);if(n.searchParams.has("open-modal")){const t=n.searchParams.get("open-modal");if(!t||"fpa-search-widget-residential-advanced"===t)return;const e={};n.searchParams.forEach(((t,i)=>{i.startsWith("modal-")&&(e[dashedToCamel(i.substring(6))]=t)})),window.openModal($(`#${t}`)[0],e)}}));class Pagination{constructor(t,e,i,a,n,s){this.currentPage=t,this.totalPages=e,this.$selector=i,this.scroll=n,this.$scrollSelector=a,this.click=s,this.scrollController=new ScrollMagic.Controller}generateHtml(){if(this.clear(),!this.totalPages)return;const t=[];let e;e=1===this.currentPage||this.currentPage===this.totalPages?3:2,t.push(this.currentPage);for(let i=1;i<=e;i++)this.currentPage-i>1&&t.unshift(this.currentPage-i),this.currentPage+i<this.totalPages&&t.push(this.currentPage+i);this.currentPage-(e+1)>1&&t.unshift(0),this.currentPage>1&&t.unshift(1),this.currentPage+e+1<this.totalPages&&t.push(0),this.currentPage<this.totalPages&&t.push(this.totalPages);var i=$("#pagination, #fpa-sitewide-search-results-pagination, #retail-offers-listing-results-pagination").data("next"),a=$("#pagination, #fpa-sitewide-search-results-pagination, #retail-offers-listing-results-pagination").data("prev");const n=$('<ul class="fpa-pagination__pagination"><li class="prev"><a class="fpa-pagination__prev" href="javascript:void(0)"><i class="fal fa-chevron-left"></i> <span>'+a+"<span></a></li></ul>");t.forEach((t=>{t?n.append(`<li><a class="fpa-pagination__page" data-num="${t}" area-selected="false" href="javascript:void(0)">${t}</a></li>`):n.append('<li class="fpa-pagination__ellipsis">...</li>'),n.find(`.fpa-pagination__page[data-num='${this.currentPage}']`).attr("area-selected","true")})),n.append(`<li class="fpa-pagination__page-mobile">Page ${this.currentPage} of ${this.totalPages}</li>`),this.$selector.length>1||(this.$selector.append(n).find("li:last-child").after('<li class="next"><a class="fpa-pagination__next" href="javascript:void(0)"><span>'+i+'<span> <i class="fal fa-chevron-right"></i></a></li>'),this.updateArrows(),this.bindClick())}setPage(t){return this.currentPage=Math.max(Math.min(t,this.totalPages),1),this.updateArrows(),this.currentPage}updateArrows(){1==this.currentPage&&1!=this.totalPages?($(".next").show(),$(".prev").hide()):this.currentPage>1&&this.currentPage>=this.totalPages?($(".prev").show(),$(".next").hide()):this.currentPage==this.totalPages==1?($(".prev").hide(),$(".next").hide()):($(".prev").show(),$(".next").show())}bindClick(){let t=this;this.$selector.find(".fpa-pagination__page").off("click").on("click",(e=>{e.preventDefault();const i=$(e.currentTarget);i.attr("data-selected")||(t.currentPage=parseInt(i.attr("data-num"),10),t.generateHtml(),t.$scrollSelector&&t.$scrollSelector.length&&$("html, body").animate({scrollTop:$(t.$scrollSelector).offset().top},500),"function"==typeof t.click&&t.click())})),this.$selector.find(".fpa-pagination__next,.fpa-pagination__prev").off("click").on("click",(function(){$(this).hasClass("fpa-pagination__next")?t.currentPage=Math.max(Math.min(t.currentPage+1,t.totalPages),1):t.currentPage=Math.max(Math.min(t.currentPage-1,t.totalPages),1),t.generateHtml()}))}clear(){this.$selector.empty()}scrollTo(t){t.length&&(this.$scrollSelector=t,this.scroll=!0,this.scrollController.scrollTo((()=>{window.scrollTo({top:t,behavior:"smooth"})})))}}function camelToDashed(t){return t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))}function dashedToCamel(t){return t.replace(/-([a-z])/g,(t=>t[1].toUpperCase()))}function numberWithCommas(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}
/*!
 * Chart.js v4.4.6
 * https://www.chartjs.org
 * (c) 2024 Chart.js Contributors
 * Released under the MIT License
 */function track(t,e={}){if(window.dataLayer&&"function"==typeof window.dataLayer.push){const i=e;i.event=t,window.dataLayer.push(i)}}$((()=>{let t=!1,e=0,i=[],a=[],n=null,s=0,o=0,r=0;const l=$(".fpa-global-header"),c=$(".fpa-site-nav"),d=$(".fpa-global-notification");window.addSticky=(e,a=!1,s=!1,o="")=>{e.length&&(i.push({$selector:e,stickyClass:a,isReactive:s}),1!==i.length||t||(t=!0,$(window).on("scroll",f),n=$(`<div class="container-sticky ${o}"></div>`).appendTo($("body").first())),setTimeout((()=>window.resetStickyScroll()),0))},window.removeSticky=t=>{if(!t.length)return;const e=i.findIndex((e=>e.$selector[0]===t[0]));-1!==e&&(i.splice(e,1),setTimeout((()=>window.resetStickyScroll()),0))};let h=!1;const p=t=>{s!==t&&(s=t,h||(h=!0,requestAnimationFrame((()=>{if($(".fpa-site-nav").length){$(".fpa-site-nav").height();$(".fpa-global-header").height()}h=!1}))))};window.resetStickyScroll=debounce(100,(()=>{for(;u(););for(e=0,i.sort(((t,e)=>orDefault(t.$spacer,t.$selector).offset().top>orDefault(e.$spacer,e.$selector).offset().top?1:-1)),p(0),o=window.scrollY;f(!0););}));const f=(t=!1)=>{const h=window.scrollY-o;o=window.scrollY;const f=!0===t?null:h>0;if(!1!==f){const t=i.filter((t=>"none"!==t.$selector.css("display")));if(t.length>a.length){const i=t[a.length],o=i.$selector.offset().top,h=(!a.length||!a.some((t=>!t.isReactive)))&&i.isReactive;d.length&&l.length&&c.length;if(h?window.scrollY+e+s>o+i.$selector.outerHeight(!0):window.scrollY+e+s>o){const t=i.$selector.outerHeight(!0);i.stickyClass&&i.$selector.addClass(i.stickyClass),i.$spacer=$(`<div style="height:${t}px;"></div>`).insertBefore(i.$selector);const l=i.$selector.appendTo(n).outerHeight();return e+=l,h&&(r+=l,p(s-l)),a.push({offset:o+l,stickyHeight:l,$selector:i.$selector,stickyClass:i.stickyClass,$spacer:i.$spacer,isReactive:i.isReactive}),a.sort(((t,e)=>t.$spacer.offset().top-e.$spacer.offset().top)),!0}}}if(a.length>0){const t=a[a.length-1],i=a.filter((t=>t.isReactive));if(!0!==f){$(window).width()<992&&$(".fpa-site-nav").length&&$(".container-sticky").css("opacity",1),$(window).on("resize",(function(){$(window).width()<992&&$(".fpa-site-nav").length&&$(".container-sticky").css("opacity",1)}));const a=d.length&&l.length&&c.length;if(0===window.scrollY&&a)return u(),!0;if(window.scrollY+(e-s)<t.offset)return u(),!0;if(i.length){let t=Math.min(0,s-h);t>5-e&&p(t)}}else $(window).on("resize",(function(){$(window).width()<992&&$(".fpa-site-nav").length&&$(".container-sticky").css("opacity",0)})),$(window).width()<992&&$(".fpa-site-nav").length&&$(".container-sticky").css("opacity",0),i.length&&p(Math.max(-r,s-h))}return!1},u=()=>{if(!a.length)return!1;const{stickyClass:t,stickyHeight:n,$selector:s,$spacer:o,isReactive:l}=a.pop();t&&s.removeClass(t),s.insertAfter(o),o.remove();const c=i.find((t=>t.$selector[0]===s[0]));return c&&(c.$spacer=null),l&&(r=Math.max(0,r-n)),e=Math.max(0,e-n),!!a.length}})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";var t=Object.freeze({__proto__:null,get Colors(){return As},get Decimation(){return Os},get Filler(){return Zs},get Legend(){return io},get SubTitle(){return oo},get Title(){return no},get Tooltip(){return vo}});function e(){}const i=(()=>{let t=0;return()=>t++})();function a(t){return null==t}function n(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function s(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function r(t,e){return o(t)?t:e}function l(t,e){return void 0===t?e:t}const c=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,d=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function h(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function p(t,e,i,a){let o,r,l;if(n(t))if(r=t.length,a)for(o=r-1;o>=0;o--)e.call(i,t[o],o);else for(o=0;o<r;o++)e.call(i,t[o],o);else if(s(t))for(l=Object.keys(t),r=l.length,o=0;o<r;o++)e.call(i,t[l[o]],l[o])}function f(t,e){let i,a,n,s;if(!t||!e||t.length!==e.length)return!1;for(i=0,a=t.length;i<a;++i)if(n=t[i],s=e[i],n.datasetIndex!==s.datasetIndex||n.index!==s.index)return!1;return!0}function u(t){if(n(t))return t.map(u);if(s(t)){const e=Object.create(null),i=Object.keys(t),a=i.length;let n=0;for(;n<a;++n)e[i[n]]=u(t[i[n]]);return e}return t}function g(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function m(t,e,i,a){if(!g(t))return;const n=e[t],o=i[t];s(n)&&s(o)?_(n,o,a):e[t]=u(o)}function _(t,e,i){const a=n(e)?e:[e],o=a.length;if(!s(t))return t;const r=(i=i||{}).merger||m;let l;for(let e=0;e<o;++e){if(l=a[e],!s(l))continue;const n=Object.keys(l);for(let e=0,a=n.length;e<a;++e)r(n[e],t,l,i)}return t}function b(t,e){return _(t,e,{merger:y})}function y(t,e,i){if(!g(t))return;const a=e[t],n=i[t];s(a)&&s(n)?b(a,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=u(n))}const w={"":t=>t,x:t=>t.x,y:t=>t.y};function x(t){const e=t.split("."),i=[];let a="";for(const t of e)a+=t,a.endsWith("\\")?a=a.slice(0,-1)+".":(i.push(a),a="");return i}function v(t,e){const i=w[e]||(w[e]=function(t){const e=x(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function k(t){return t.charAt(0).toUpperCase()+t.slice(1)}const $=t=>void 0!==t,C=t=>"function"==typeof t,S=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function M(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const P=Math.PI,D=2*P,T=D+P,L=Number.POSITIVE_INFINITY,A=P/180,E=P/2,I=P/4,O=2*P/3,z=Math.log10,R=Math.sign;function F(t,e,i){return Math.abs(t-e)<i}function j(t){const e=Math.round(t);t=F(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(z(t))),a=t/i;return(a<=1?1:a<=2?2:a<=5?5:10)*i}function H(t){const e=[],i=Math.sqrt(t);let a;for(a=1;a<i;a++)t%a==0&&(e.push(a),e.push(t/a));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}function B(t){return!isNaN(parseFloat(t))&&isFinite(t)}function N(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}function V(t,e,i){let a,n,s;for(a=0,n=t.length;a<n;a++)s=t[a][i],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function W(t){return t*(P/180)}function U(t){return t*(180/P)}function q(t){if(!o(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Y(t,e){const i=e.x-t.x,a=e.y-t.y,n=Math.sqrt(i*i+a*a);let s=Math.atan2(a,i);return s<-.5*P&&(s+=D),{angle:s,distance:n}}function G(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function X(t,e){return(t-e+T)%D-P}function J(t){return(t%D+D)%D}function K(t,e,i,a){const n=J(t),s=J(e),o=J(i),r=J(s-n),l=J(o-n),c=J(n-s),d=J(n-o);return n===s||n===o||a&&s===o||r>l&&c<d}function Z(t,e,i){return Math.max(e,Math.min(i,t))}function Q(t){return Z(t,-32768,32767)}function tt(t,e,i,a=1e-6){return t>=Math.min(e,i)-a&&t<=Math.max(e,i)+a}function et(t,e,i){i=i||(i=>t[i]<e);let a,n=t.length-1,s=0;for(;n-s>1;)a=s+n>>1,i(a)?s=a:n=a;return{lo:s,hi:n}}const it=(t,e,i,a)=>et(t,i,a?a=>{const n=t[a][e];return n<i||n===i&&t[a+1][e]===i}:a=>t[a][e]<i),at=(t,e,i)=>et(t,i,(a=>t[a][e]>=i));function nt(t,e,i){let a=0,n=t.length;for(;a<n&&t[a]<e;)a++;for(;n>a&&t[n-1]>i;)n--;return a>0||n<t.length?t.slice(a,n):t}const st=["push","pop","shift","splice","unshift"];function ot(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),st.forEach((e=>{const i="_onData"+k(e),a=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const n=a.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[i]&&t[i](...e)})),n}})})))}function rt(t,e){const i=t._chartjs;if(!i)return;const a=i.listeners,n=a.indexOf(e);-1!==n&&a.splice(n,1),a.length>0||(st.forEach((e=>{delete t[e]})),delete t._chartjs)}function lt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const ct="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function dt(t,e){let i=[],a=!1;return function(...n){i=n,a||(a=!0,ct.call(window,(()=>{a=!1,t.apply(e,i)})))}}function ht(t,e){let i;return function(...a){return e?(clearTimeout(i),i=setTimeout(t,e,a)):t.apply(this,a),e}}const pt=t=>"start"===t?"left":"end"===t?"right":"center",ft=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,ut=(t,e,i,a)=>t===(a?"left":"right")?i:"center"===t?(e+i)/2:e;function gt(t,e,i){const a=e.length;let n=0,s=a;if(t._sorted){const{iScale:o,_parsed:r}=t,l=o.axis,{min:c,max:d,minDefined:h,maxDefined:p}=o.getUserBounds();h&&(n=Z(Math.min(it(r,l,c).lo,i?a:it(e,l,o.getPixelForValue(c)).lo),0,a-1)),s=p?Z(Math.max(it(r,o.axis,d,!0).hi+1,i?0:it(e,l,o.getPixelForValue(d),!0).hi+1),n,a)-n:a-n}return{start:n,count:s}}function mt(t){const{xScale:e,yScale:i,_scaleRanges:a}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!a)return t._scaleRanges=n,!0;const s=a.xmin!==e.min||a.xmax!==e.max||a.ymin!==i.min||a.ymax!==i.max;return Object.assign(a,n),s}var _t=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,a){const n=e.listeners[a],s=e.duration;n.forEach((a=>a({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(i-e.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=ct.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,a)=>{if(!i.running||!i.items.length)return;const n=i.items;let s,o=n.length-1,r=!1;for(;o>=0;--o)s=n[o],s._active?(s._total>i.duration&&(i.duration=s._total),s.tick(t),r=!0):(n[o]=n[n.length-1],n.pop());r&&(a.draw(),this._notify(a,i,t,"progress")),n.length||(i.running=!1,this._notify(a,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let a=i.length-1;for(;a>=0;--a)i[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};
/*!
 * @kurkle/color v0.3.2
 * https://github.com/kurkle/color#readme
 * (c) 2023 Jukka Kurkela
 * Released under the MIT License
 */function bt(t){return t+.5|0}const yt=(t,e,i)=>Math.max(Math.min(t,i),e);function wt(t){return yt(bt(2.55*t),0,255)}function xt(t){return yt(bt(255*t),0,255)}function vt(t){return yt(bt(t/2.55)/100,0,1)}function kt(t){return yt(bt(100*t),0,100)}const $t={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ct=[..."0123456789ABCDEF"],St=t=>Ct[15&t],Mt=t=>Ct[(240&t)>>4]+Ct[15&t],Pt=t=>(240&t)>>4==(15&t);const Dt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Tt(t,e,i){const a=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-a*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Lt(t,e,i){const a=(a,n=(a+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[a(5),a(3),a(1)]}function At(t,e,i){const a=Tt(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)a[n]*=1-e-i,a[n]+=e;return a}function Et(t){const e=t.r/255,i=t.g/255,a=t.b/255,n=Math.max(e,i,a),s=Math.min(e,i,a),o=(n+s)/2;let r,l,c;return n!==s&&(c=n-s,l=o>.5?c/(2-n-s):c/(n+s),r=function(t,e,i,a,n){return t===n?(e-i)/a+(e<i?6:0):e===n?(i-t)/a+2:(t-e)/a+4}(e,i,a,c,n),r=60*r+.5),[0|r,l||0,o]}function It(t,e,i,a){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,a)).map(xt)}function Ot(t,e,i){return It(Tt,t,e,i)}function zt(t){return(t%360+360)%360}const Rt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Ft={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let jt;const Ht=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Bt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Nt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Vt(t,e,i){if(t){let a=Et(t);a[e]=Math.max(0,Math.min(a[e]+a[e]*i,0===e?360:1)),a=Ot(a),t.r=a[0],t.g=a[1],t.b=a[2]}}function Wt(t,e){return t?Object.assign(e||{},t):t}function Ut(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=xt(t[3]))):(e=Wt(t,{r:0,g:0,b:0,a:1})).a=xt(e.a),e}function qt(t){return"r"===t.charAt(0)?function(t){const e=Ht.exec(t);let i,a,n,s=255;if(e){if(e[7]!==i){const t=+e[7];s=e[8]?wt(t):yt(255*t,0,255)}return i=+e[1],a=+e[3],n=+e[5],i=255&(e[2]?wt(i):yt(i,0,255)),a=255&(e[4]?wt(a):yt(a,0,255)),n=255&(e[6]?wt(n):yt(n,0,255)),{r:i,g:a,b:n,a:s}}}(t):function(t){const e=Dt.exec(t);let i,a=255;if(!e)return;e[5]!==i&&(a=e[6]?wt(+e[5]):xt(+e[5]));const n=zt(+e[2]),s=+e[3]/100,o=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return It(At,t,e,i)}(n,s,o):"hsv"===e[1]?function(t,e,i){return It(Lt,t,e,i)}(n,s,o):Ot(n,s,o),{r:i[0],g:i[1],b:i[2],a:a}}(t)}class Yt{constructor(t){if(t instanceof Yt)return t;const e=typeof t;let i;var a,n,s;"object"===e?i=Ut(t):"string"===e&&(s=(a=t).length,"#"===a[0]&&(4===s||5===s?n={r:255&17*$t[a[1]],g:255&17*$t[a[2]],b:255&17*$t[a[3]],a:5===s?17*$t[a[4]]:255}:7!==s&&9!==s||(n={r:$t[a[1]]<<4|$t[a[2]],g:$t[a[3]]<<4|$t[a[4]],b:$t[a[5]]<<4|$t[a[6]],a:9===s?$t[a[7]]<<4|$t[a[8]]:255})),i=n||function(t){jt||(jt=function(){const t={},e=Object.keys(Ft),i=Object.keys(Rt);let a,n,s,o,r;for(a=0;a<e.length;a++){for(o=r=e[a],n=0;n<i.length;n++)s=i[n],r=r.replace(s,Rt[s]);s=parseInt(Ft[o],16),t[r]=[s>>16&255,s>>8&255,255&s]}return t}(),jt.transparent=[0,0,0,0]);const e=jt[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||qt(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Wt(this._rgb);return t&&(t.a=vt(t.a)),t}set rgb(t){this._rgb=Ut(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${vt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?function(t){var e=(t=>Pt(t.r)&&Pt(t.g)&&Pt(t.b)&&Pt(t.a))(t)?St:Mt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Et(t),i=e[0],a=kt(e[1]),n=kt(e[2]);return t.a<255?`hsla(${i}, ${a}%, ${n}%, ${vt(t.a)})`:`hsl(${i}, ${a}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,a=t.rgb;let n;const s=e===n?.5:e,o=2*s-1,r=i.a-a.a,l=((o*r==-1?o:(o+r)/(1+o*r))+1)/2;n=1-l,i.r=255&l*i.r+n*a.r+.5,i.g=255&l*i.g+n*a.g+.5,i.b=255&l*i.b+n*a.b+.5,i.a=s*i.a+(1-s)*a.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const a=Nt(vt(t.r)),n=Nt(vt(t.g)),s=Nt(vt(t.b));return{r:xt(Bt(a+i*(Nt(vt(e.r))-a))),g:xt(Bt(n+i*(Nt(vt(e.g))-n))),b:xt(Bt(s+i*(Nt(vt(e.b))-s))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Yt(this.rgb)}alpha(t){return this._rgb.a=xt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=bt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Vt(this._rgb,2,t),this}darken(t){return Vt(this._rgb,2,-t),this}saturate(t){return Vt(this._rgb,1,t),this}desaturate(t){return Vt(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Et(t);i[0]=zt(i[0]+e),i=Ot(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Gt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Xt(t){return Gt(t)?t:new Yt(t)}function Jt(t){return Gt(t)?t:new Yt(t).saturate(.5).darken(.1).hexString()}const Kt=["x","y","borderWidth","radius","tension"],Zt=["color","borderColor","backgroundColor"],Qt=new Map;function te(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let a=Qt.get(i);return a||(a=new Intl.NumberFormat(t,e),Qt.set(i,a)),a}(e,i).format(t)}const ee={values:t=>n(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const a=this.chart.options.locale;let n,s=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),s=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const o=z(Math.abs(s)),r=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),te(t,a,l)},logarithmic(t,e,i){if(0===t)return"0";const a=i[e].significand||t/Math.pow(10,Math.floor(z(t)));return[1,2,3,5,10,15].includes(a)||e>.8*i.length?ee.numeric.call(this,t,e,i):""}};var ie={formatters:ee};const ae=Object.create(null),ne=Object.create(null);function se(t,e){if(!e)return t;const i=e.split(".");for(let e=0,a=i.length;e<a;++e){const a=i[e];t=t[a]||(t[a]=Object.create(null))}return t}function oe(t,e,i){return"string"==typeof e?_(se(t,e),i):_(se(t,""),e)}var re=new class{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Jt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Jt(e.borderColor),this.hoverColor=(t,e)=>Jt(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return oe(this,t,e)}get(t){return se(this,t)}describe(t,e){return oe(ne,t,e)}override(t,e){return oe(ae,t,e)}route(t,e,i,a){const n=se(this,t),o=se(this,i),r="_"+e;Object.defineProperties(n,{[r]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[a];return s(t)?Object.assign({},e,t):l(t,e)},set(t){this[r]=t}}})}apply(t){t.forEach((t=>t(this)))}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Zt},numbers:{type:"number",properties:Kt}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ie.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function le(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ce(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function de(t,e,i){let a;return"string"==typeof t?(a=parseInt(t,10),-1!==t.indexOf("%")&&(a=a/100*e.parentNode[i])):a=t,a}const he=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function pe(t,e){return he(t).getPropertyValue(e)}const fe=["top","right","bottom","left"];function ue(t,e,i){const a={};i=i?"-"+i:"";for(let n=0;n<4;n++){const s=fe[n];a[s]=parseFloat(t[e+"-"+s+i])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}function ge(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:a}=e,n=he(i),s="border-box"===n.boxSizing,o=ue(n,"padding"),r=ue(n,"border","width"),{x:l,y:c,box:d}=function(t,e){const i=t.touches,a=i&&i.length?i[0]:t,{offsetX:n,offsetY:s}=a;let o,r,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(n,s,t.target))o=n,r=s;else{const t=e.getBoundingClientRect();o=a.clientX-t.left,r=a.clientY-t.top,l=!0}return{x:o,y:r,box:l}}(t,i),h=o.left+(d&&r.left),p=o.top+(d&&r.top);let{width:f,height:u}=e;return s&&(f-=o.width+r.width,u-=o.height+r.height),{x:Math.round((l-h)/f*i.width/a),y:Math.round((c-p)/u*i.height/a)}}const me=t=>Math.round(10*t)/10;function _e(t,e,i,a){const n=he(t),s=ue(n,"margin"),o=de(n.maxWidth,t,"clientWidth")||L,r=de(n.maxHeight,t,"clientHeight")||L,l=function(t,e,i){let a,n;if(void 0===e||void 0===i){const s=t&&ce(t);if(s){const t=s.getBoundingClientRect(),o=he(s),r=ue(o,"border","width"),l=ue(o,"padding");e=t.width-l.width-r.width,i=t.height-l.height-r.height,a=de(o.maxWidth,s,"clientWidth"),n=de(o.maxHeight,s,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:a||L,maxHeight:n||L}}(t,e,i);let{width:c,height:d}=l;if("content-box"===n.boxSizing){const t=ue(n,"border","width"),e=ue(n,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-s.width),d=Math.max(0,a?c/a:d-s.height),c=me(Math.min(c,o,l.maxWidth)),d=me(Math.min(d,r,l.maxHeight)),c&&!d&&(d=me(c/2)),(void 0!==e||void 0!==i)&&a&&l.height&&d>l.height&&(d=l.height,c=me(Math.floor(d*a))),{width:c,height:d}}function be(t,e,i){const a=e||1,n=Math.floor(t.height*a),s=Math.floor(t.width*a);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(i||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==a||o.height!==n||o.width!==s)&&(t.currentDevicePixelRatio=a,o.height=n,o.width=s,t.ctx.setTransform(a,0,0,a,0,0),!0)}const ye=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};le()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function we(t,e){const i=pe(t,e),a=i&&i.match(/^(\d+)(\.\d+)?px$/);return a?+a[1]:void 0}function xe(t){return!t||a(t.size)||a(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ve(t,e,i,a,n){let s=e[n];return s||(s=e[n]=t.measureText(n).width,i.push(n)),s>a&&(a=s),a}function ke(t,e,i,a){let s=(a=a||{}).data=a.data||{},o=a.garbageCollect=a.garbageCollect||[];a.font!==e&&(s=a.data={},o=a.garbageCollect=[],a.font=e),t.save(),t.font=e;let r=0;const l=i.length;let c,d,h,p,f;for(c=0;c<l;c++)if(p=i[c],null==p||n(p)){if(n(p))for(d=0,h=p.length;d<h;d++)f=p[d],null==f||n(f)||(r=ve(t,s,o,r,f))}else r=ve(t,s,o,r,p);t.restore();const u=o.length/2;if(u>i.length){for(c=0;c<u;c++)delete s[o[c]];o.splice(0,u)}return r}function $e(t,e,i){const a=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*a)/a+n}function Ce(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Se(t,e,i,a){Me(t,e,i,a,null)}function Me(t,e,i,a,n){let s,o,r,l,c,d,h,p;const f=e.pointStyle,u=e.rotation,g=e.radius;let m=(u||0)*A;if(f&&"object"==typeof f&&(s=f.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(i,a),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),f){default:n?t.ellipse(i,a,n/2,g,0,0,D):t.arc(i,a,g,0,D),t.closePath();break;case"triangle":d=n?n/2:g,t.moveTo(i+Math.sin(m)*d,a-Math.cos(m)*g),m+=O,t.lineTo(i+Math.sin(m)*d,a-Math.cos(m)*g),m+=O,t.lineTo(i+Math.sin(m)*d,a-Math.cos(m)*g),t.closePath();break;case"rectRounded":c=.516*g,l=g-c,o=Math.cos(m+I)*l,h=Math.cos(m+I)*(n?n/2-c:l),r=Math.sin(m+I)*l,p=Math.sin(m+I)*(n?n/2-c:l),t.arc(i-h,a-r,c,m-P,m-E),t.arc(i+p,a-o,c,m-E,m),t.arc(i+h,a+r,c,m,m+E),t.arc(i-p,a+o,c,m+E,m+P),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*g,d=n?n/2:l,t.rect(i-d,a-l,2*d,2*l);break}m+=I;case"rectRot":h=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,r=Math.sin(m)*g,p=Math.sin(m)*(n?n/2:g),t.moveTo(i-h,a-r),t.lineTo(i+p,a-o),t.lineTo(i+h,a+r),t.lineTo(i-p,a+o),t.closePath();break;case"crossRot":m+=I;case"cross":h=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,r=Math.sin(m)*g,p=Math.sin(m)*(n?n/2:g),t.moveTo(i-h,a-r),t.lineTo(i+h,a+r),t.moveTo(i+p,a-o),t.lineTo(i-p,a+o);break;case"star":h=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,r=Math.sin(m)*g,p=Math.sin(m)*(n?n/2:g),t.moveTo(i-h,a-r),t.lineTo(i+h,a+r),t.moveTo(i+p,a-o),t.lineTo(i-p,a+o),m+=I,h=Math.cos(m)*(n?n/2:g),o=Math.cos(m)*g,r=Math.sin(m)*g,p=Math.sin(m)*(n?n/2:g),t.moveTo(i-h,a-r),t.lineTo(i+h,a+r),t.moveTo(i+p,a-o),t.lineTo(i-p,a+o);break;case"line":o=n?n/2:Math.cos(m)*g,r=Math.sin(m)*g,t.moveTo(i-o,a-r),t.lineTo(i+o,a+r);break;case"dash":t.moveTo(i,a),t.lineTo(i+Math.cos(m)*(n?n/2:g),a+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Pe(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function De(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Te(t){t.restore()}function Le(t,e,i,a,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const a=(e.x+i.x)/2;t.lineTo(a,e.y),t.lineTo(a,i.y)}else"after"===n!=!!a?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Ae(t,e,i,a){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(a?e.cp1x:e.cp2x,a?e.cp1y:e.cp2y,a?i.cp2x:i.cp1x,a?i.cp2y:i.cp1y,i.x,i.y)}function Ee(t,e,i,a,n){if(n.strikethrough||n.underline){const s=t.measureText(a),o=e-s.actualBoundingBoxLeft,r=e+s.actualBoundingBoxRight,l=i-s.actualBoundingBoxAscent,c=i+s.actualBoundingBoxDescent,d=n.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(o,d),t.lineTo(r,d),t.stroke()}}function Ie(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Oe(t,e,i,s,o,r={}){const l=n(e)?e:[e],c=r.strokeWidth>0&&""!==r.strokeColor;let d,h;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),a(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,r),d=0;d<l.length;++d)h=l[d],r.backdrop&&Ie(t,r.backdrop),c&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),a(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(h,i,s,r.maxWidth)),t.fillText(h,i,s,r.maxWidth),Ee(t,i,s,h,r),s+=Number(o.lineHeight);t.restore()}function ze(t,e){const{x:i,y:a,w:n,h:s,radius:o}=e;t.arc(i+o.topLeft,a+o.topLeft,o.topLeft,1.5*P,P,!0),t.lineTo(i,a+s-o.bottomLeft),t.arc(i+o.bottomLeft,a+s-o.bottomLeft,o.bottomLeft,P,E,!0),t.lineTo(i+n-o.bottomRight,a+s),t.arc(i+n-o.bottomRight,a+s-o.bottomRight,o.bottomRight,E,0,!0),t.lineTo(i+n,a+o.topRight),t.arc(i+n-o.topRight,a+o.topRight,o.topRight,0,-E,!0),t.lineTo(i+o.topLeft,a)}function Re(t,e=[""],i,a,n=(()=>t[0])){const s=i||t;void 0===a&&(a=Ge("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:a,_getTarget:n,override:i=>Re([i,...t],e,s,a)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,a)=>Ne(i,a,(()=>function(t,e,i,a){let n;for(const s of e)if(n=Ge(He(s,t),i),void 0!==n)return Be(t,n)?qe(i,a,t,n):n}(a,e,t,i))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Xe(t).includes(e),ownKeys:t=>Xe(t),set(t,e,i){const a=t._storage||(t._storage=n());return t[e]=a[e]=i,delete t._keys,!0}})}function Fe(t,e,i,a){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:je(t,a),setContext:e=>Fe(t,e,i,a),override:n=>Fe(t.override(n),e,i,a)};return new Proxy(o,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>Ne(t,e,(()=>function(t,e,i){const{_proxy:a,_context:o,_subProxy:r,_descriptors:l}=t;let c=a[e];return C(c)&&l.isScriptable(e)&&(c=function(t,e,i,a){const{_proxy:n,_context:s,_subProxy:o,_stack:r}=i;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);r.add(t);let l=e(s,o||a);return r.delete(t),Be(t,l)&&(l=qe(n._scopes,n,t,l)),l}(e,c,t,i)),n(c)&&c.length&&(c=function(t,e,i,a){const{_proxy:n,_context:o,_subProxy:r,_descriptors:l}=i;if(void 0!==o.index&&a(t))return e[o.index%e.length];if(s(e[0])){const i=e,a=n._scopes.filter((t=>t!==i));e=[];for(const s of i){const i=qe(a,n,t,s);e.push(Fe(i,o,r&&r[t],l))}}return e}(e,c,t,l.isIndexable)),Be(e,c)&&(c=Fe(c,o,r&&r[e],l)),c}(t,e,i))),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,a)=>(t[i]=a,delete e[i],!0)})}function je(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:a=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:a,isScriptable:C(i)?i:()=>i,isIndexable:C(a)?a:()=>a}}const He=(t,e)=>t?t+k(e):e,Be=(t,e)=>s(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ne(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const a=i();return t[e]=a,a}function Ve(t,e,i){return C(t)?t(e,i):t}const We=(t,e)=>!0===t?e:"string"==typeof t?v(e,t):void 0;function Ue(t,e,i,a,n){for(const s of e){const e=We(i,s);if(e){t.add(e);const s=Ve(e._fallback,i,n);if(void 0!==s&&s!==i&&s!==a)return s}else if(!1===e&&void 0!==a&&i!==a)return null}return!1}function qe(t,e,i,a){const o=e._rootScopes,r=Ve(e._fallback,i,a),l=[...t,...o],c=new Set;c.add(a);let d=Ye(c,l,i,r||i,a);return null!==d&&(void 0===r||r===i||(d=Ye(c,l,r,d,a),null!==d))&&Re(Array.from(c),[""],o,r,(()=>function(t,e,i){const a=t._getTarget();e in a||(a[e]={});const o=a[e];return n(o)&&s(i)?i:o||{}}(e,i,a)))}function Ye(t,e,i,a,n){for(;i;)i=Ue(t,e,i,a,n);return i}function Ge(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function Xe(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Je(t,e,i,a){const{iScale:n}=t,{key:s="r"}=this._parsing,o=new Array(a);let r,l,c,d;for(r=0,l=a;r<l;++r)c=r+i,d=e[c],o[r]={r:n.parse(v(d,s),c)};return o}const Ke=Number.EPSILON||1e-14,Ze=(t,e)=>e<t.length&&!t[e].skip&&t[e],Qe=t=>"x"===t?"y":"x";function ti(t,e,i,a){const n=t.skip?e:t,s=e,o=i.skip?e:i,r=G(s,n),l=G(o,s);let c=r/(r+l),d=l/(r+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=a*c,p=a*d;return{previous:{x:s.x-h*(o.x-n.x),y:s.y-h*(o.y-n.y)},next:{x:s.x+p*(o.x-n.x),y:s.y+p*(o.y-n.y)}}}function ei(t,e="x"){const i=Qe(e),a=t.length,n=Array(a).fill(0),s=Array(a);let o,r,l,c=Ze(t,0);for(o=0;o<a;++o)if(r=l,l=c,c=Ze(t,o+1),l){if(c){const t=c[e]-l[e];n[o]=0!==t?(c[i]-l[i])/t:0}s[o]=r?c?R(n[o-1])!==R(n[o])?0:(n[o-1]+n[o])/2:n[o-1]:n[o]}!function(t,e,i){const a=t.length;let n,s,o,r,l,c=Ze(t,0);for(let d=0;d<a-1;++d)l=c,c=Ze(t,d+1),l&&c&&(F(e[d],0,Ke)?i[d]=i[d+1]=0:(n=i[d]/e[d],s=i[d+1]/e[d],r=Math.pow(n,2)+Math.pow(s,2),r<=9||(o=3/Math.sqrt(r),i[d]=n*o*e[d],i[d+1]=s*o*e[d])))}(t,n,s),function(t,e,i="x"){const a=Qe(i),n=t.length;let s,o,r,l=Ze(t,0);for(let c=0;c<n;++c){if(o=r,r=l,l=Ze(t,c+1),!r)continue;const n=r[i],d=r[a];o&&(s=(n-o[i])/3,r[`cp1${i}`]=n-s,r[`cp1${a}`]=d-s*e[c]),l&&(s=(l[i]-n)/3,r[`cp2${i}`]=n+s,r[`cp2${a}`]=d+s*e[c])}}(t,s,e)}function ii(t,e,i){return Math.max(Math.min(t,i),e)}function ai(t,e,i,a,n){let s,o,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)ei(t,n);else{let i=a?t[t.length-1]:t[0];for(s=0,o=t.length;s<o;++s)r=t[s],l=ti(i,r,t[Math.min(s+1,o-(a?0:1))%o],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,i=r}e.capBezierPoints&&function(t,e){let i,a,n,s,o,r=Pe(t[0],e);for(i=0,a=t.length;i<a;++i)o=s,s=r,r=i<a-1&&Pe(t[i+1],e),s&&(n=t[i],o&&(n.cp1x=ii(n.cp1x,e.left,e.right),n.cp1y=ii(n.cp1y,e.top,e.bottom)),r&&(n.cp2x=ii(n.cp2x,e.left,e.right),n.cp2y=ii(n.cp2y,e.top,e.bottom)))}(t,i)}const ni=t=>0===t||1===t,si=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/i),oi=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/i)+1,ri={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*E),easeOutSine:t=>Math.sin(t*E),easeInOutSine:t=>-.5*(Math.cos(P*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ni(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ni(t)?t:si(t,.075,.3),easeOutElastic:t=>ni(t)?t:oi(t,.075,.3),easeInOutElastic(t){const e=.1125;return ni(t)?t:t<.5?.5*si(2*t,e,.45):.5+.5*oi(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-ri.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*ri.easeInBounce(2*t):.5*ri.easeOutBounce(2*t-1)+.5};function li(t,e,i,a){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function ci(t,e,i,a){return{x:t.x+i*(e.x-t.x),y:"middle"===a?i<.5?t.y:e.y:"after"===a?i<1?t.y:e.y:i>0?e.y:t.y}}function di(t,e,i,a){const n={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},o=li(t,n,i),r=li(n,s,i),l=li(s,e,i),c=li(o,r,i),d=li(r,l,i);return li(c,d,i)}const hi=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,pi=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function fi(t,e){const i=(""+t).match(hi);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const ui=t=>+t||0;function gi(t,e){const i={},a=s(e),n=a?Object.keys(e):e,o=s(t)?a?i=>l(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=ui(o(t));return i}function mi(t){return gi(t,{top:"y",right:"x",bottom:"y",left:"x"})}function _i(t){return gi(t,["topLeft","topRight","bottomLeft","bottomRight"])}function bi(t){const e=mi(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function yi(t,e){t=t||{},e=e||re.font;let i=l(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let a=l(t.style,e.style);a&&!(""+a).match(pi)&&(a=void 0);const n={family:l(t.family,e.family),lineHeight:fi(l(t.lineHeight,e.lineHeight),i),size:i,style:a,weight:l(t.weight,e.weight),string:""};return n.string=xe(n),n}function wi(t,e,i,a){let s,o,r,l=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),l=!1),void 0!==i&&n(r)&&(r=r[i%r.length],l=!1),void 0!==r))return a&&!l&&(a.cacheable=!1),r}function xi(t,e,i){const{min:a,max:n}=t,s=d(e,(n-a)/2),o=(t,e)=>i&&0===t?0:t+e;return{min:o(a,-Math.abs(s)),max:o(n,s)}}function vi(t,e){return Object.assign(Object.create(t),e)}function ki(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function $i(t,e){let i,a;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,a=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=a)}function Ci(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Si(t){return"angle"===t?{between:K,compare:X,normalize:J}:{between:tt,compare:(t,e)=>t-e,normalize:t=>t}}function Mi({start:t,end:e,count:i,loop:a,style:n}){return{start:t%i,end:e%i,loop:a&&(e-t+1)%i==0,style:n}}function Pi(t,e,i){if(!i)return[t];const{property:a,start:n,end:s}=i,o=e.length,{compare:r,between:l,normalize:c}=Si(a),{start:d,end:h,loop:p,style:f}=function(t,e,i){const{property:a,start:n,end:s}=i,{between:o,normalize:r}=Si(a),l=e.length;let c,d,{start:h,end:p,loop:f}=t;if(f){for(h+=l,p+=l,c=0,d=l;c<d&&o(r(e[h%l][a]),n,s);++c)h--,p--;h%=l,p%=l}return p<h&&(p+=l),{start:h,end:p,loop:f,style:t.style}}(t,e,i),u=[];let g,m,_,b=!1,y=null;for(let t=d,i=d;t<=h;++t)m=e[t%o],m.skip||(g=c(m[a]),g!==_&&(b=l(g,n,s),null===y&&(b||l(n,_,g)&&0!==r(n,_))&&(y=0===r(g,n)?t:i),null!==y&&(!b||0===r(s,g)||l(s,_,g))&&(u.push(Mi({start:y,end:t,loop:p,count:o,style:f})),y=null),i=t,_=g));return null!==y&&u.push(Mi({start:y,end:h,loop:p,count:o,style:f})),u}function Di(t,e){const i=[],a=t.segments;for(let n=0;n<a.length;n++){const s=Pi(a[n],t.points,e);s.length&&i.push(...s)}return i}function Ti(t,e){const i=t.points,a=t.options.spanGaps,n=i.length;if(!n)return[];const s=!!t._loop,{start:o,end:r}=function(t,e,i,a){let n=0,s=e-1;if(i&&!a)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(s+=n);s>n&&t[s%e].skip;)s--;return s%=e,{start:n,end:s}}(i,n,s,a);return Li(t,!0===a?[{start:o,end:r,loop:s}]:function(t,e,i,a){const n=t.length,s=[];let o,r=e,l=t[e];for(o=e+1;o<=i;++o){const i=t[o%n];i.skip||i.stop?l.skip||(a=!1,s.push({start:e%n,end:(o-1)%n,loop:a}),e=r=i.stop?o:null):(r=o,l.skip&&(e=o)),l=i}return null!==r&&s.push({start:e%n,end:r%n,loop:a}),s}(i,o,r<o?r+n:r,!!t._fullLoop&&0===o&&r===n-1),i,e)}function Li(t,e,i,a){return a&&a.setContext&&i?function(t,e,i,a){const n=t._chart.getContext(),s=Ai(t.options),{_datasetIndex:o,options:{spanGaps:r}}=t,l=i.length,c=[];let d=s,h=e[0].start,p=h;function f(t,e,a,n){const s=r?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=s;for(;i[e%l].skip;)e+=s;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:a,style:n}),d=n,h=e%l)}}for(const t of e){h=r?h:t.start;let e,s=i[h%l];for(p=h+1;p<=t.end;p++){const r=i[p%l];e=Ai(a.setContext(vi(n,{type:"segment",p0:s,p1:r,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:o}))),Ei(e,d)&&f(h,p-1,t.loop,d),s=r,d=e}h<p-1&&f(h,p-1,t.loop,d)}return c}(t,e,i,a):e}function Ai(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Ei(t,e){if(!e)return!1;const i=[],a=function(t,e){return Gt(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,a)!==JSON.stringify(e,a)}var Ii=Object.freeze({__proto__:null,HALF_PI:E,INFINITY:L,PI:P,PITAU:T,QUARTER_PI:I,RAD_PER_DEG:A,TAU:D,TWO_THIRDS_PI:O,_addGrace:xi,_alignPixel:$e,_alignStartEnd:ft,_angleBetween:K,_angleDiff:X,_arrayUnique:lt,_attachContext:Fe,_bezierCurveTo:Ae,_bezierInterpolation:di,_boundSegment:Pi,_boundSegments:Di,_capitalize:k,_computeSegments:Ti,_createResolver:Re,_decimalPlaces:q,_deprecated:function(t,e,i,a){},_descriptors:je,_elementsEqual:f,_factorize:H,_filterBetween:nt,_getParentNode:ce,_getStartAndCountOfVisiblePoints:gt,_int16Range:Q,_isBetween:tt,_isClickEvent:M,_isDomSupported:le,_isPointInArea:Pe,_limitValue:Z,_longestText:ke,_lookup:et,_lookupByKey:it,_measureText:ve,_merger:m,_mergerIf:y,_normalizeAngle:J,_parseObjectDataRadialScale:Je,_pointInLine:li,_readValueToProps:gi,_rlookupByKey:at,_scaleRangesChanged:mt,_setMinAndMaxByKey:V,_splitKey:x,_steppedInterpolation:ci,_steppedLineTo:Le,_textX:ut,_toLeftRightCenter:pt,_updateBezierControlPoints:ai,addRoundedRectPath:ze,almostEquals:F,almostWhole:N,callback:h,clearCanvas:Ce,clipArea:De,clone:u,color:Xt,createContext:vi,debounce:ht,defined:$,distanceBetweenPoints:G,drawPoint:Se,drawPointLegend:Me,each:p,easingEffects:ri,finiteOrDefault:r,fontString:function(t,e,i){return e+" "+t+"px "+i},formatNumber:te,getAngleFromPoint:Y,getHoverColor:Jt,getMaximumSize:_e,getRelativePosition:ge,getRtlAdapter:ki,getStyle:pe,isArray:n,isFinite:o,isFunction:C,isNullOrUndef:a,isNumber:B,isObject:s,isPatternOrGradient:Gt,listenArrayEvents:ot,log10:z,merge:_,mergeIf:b,niceNum:j,noop:e,overrideTextDirection:$i,readUsedSize:we,renderText:Oe,requestAnimFrame:ct,resolve:wi,resolveObjectKey:v,restoreTextDirection:Ci,retinaScale:be,setsEqual:S,sign:R,splineCurve:ti,splineCurveMonotone:ei,supportsEventListenerOptions:ye,throttled:dt,toDegrees:U,toDimension:d,toFont:yi,toFontString:xe,toLineHeight:fi,toPadding:bi,toPercentage:c,toRadians:W,toTRBL:mi,toTRBLCorners:_i,uid:i,unclipArea:Te,unlistenArrayEvents:rt,valueOrDefault:l});function Oi(t,e,i,a){const{controller:n,data:s,_sorted:o}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&o&&s.length){const t=r._reversePixels?at:it;if(!a)return t(s,e,i);if(n._sharedOptions){const a=s[0],n="function"==typeof a.getRange&&a.getRange(e);if(n){const a=t(s,e,i-n),o=t(s,e,i+n);return{lo:a.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function zi(t,e,i,a,n){const s=t.getSortedVisibleDatasetMetas(),o=i[e];for(let t=0,i=s.length;t<i;++t){const{index:i,data:r}=s[t],{lo:l,hi:c}=Oi(s[t],e,o,n);for(let t=l;t<=c;++t){const e=r[t];e.skip||a(e,i,t)}}}function Ri(t,e,i,a,n){const s=[];return n||t.isPointInArea(e)?(zi(t,i,e,(function(i,o,r){(n||Pe(i,t.chartArea,0))&&i.inRange(e.x,e.y,a)&&s.push({element:i,datasetIndex:o,index:r})}),!0),s):s}function Fi(t,e,i,a,n,s){return s||t.isPointInArea(e)?"r"!==i||a?function(t,e,i,a,n,s){let o=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,a){const n=e?Math.abs(t.x-a.x):0,s=i?Math.abs(t.y-a.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(s,2))}}(i);let l=Number.POSITIVE_INFINITY;return zi(t,i,e,(function(i,c,d){const h=i.inRange(e.x,e.y,n);if(a&&!h)return;const p=i.getCenterPoint(n);if(!s&&!t.isPointInArea(p)&&!h)return;const f=r(e,p);f<l?(o=[{element:i,datasetIndex:c,index:d}],l=f):f===l&&o.push({element:i,datasetIndex:c,index:d})})),o}(t,e,i,a,n,s):function(t,e,i,a){let n=[];return zi(t,i,e,(function(t,i,s){const{startAngle:o,endAngle:r}=t.getProps(["startAngle","endAngle"],a),{angle:l}=Y(t,{x:e.x,y:e.y});K(l,o,r)&&n.push({element:t,datasetIndex:i,index:s})})),n}(t,e,i,n):[]}function ji(t,e,i,a,n){const s=[],o="x"===i?"inXRange":"inYRange";let r=!1;return zi(t,i,e,((t,a,l)=>{t[o]&&t[o](e[i],n)&&(s.push({element:t,datasetIndex:a,index:l}),r=r||t.inRange(e.x,e.y,n))})),a&&!r?[]:s}var Hi={evaluateInteractionItems:zi,modes:{index(t,e,i,a){const n=ge(e,t),s=i.axis||"x",o=i.includeInvisible||!1,r=i.intersect?Ri(t,n,s,a,o):Fi(t,n,s,!1,a,o),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,a){const n=ge(e,t),s=i.axis||"xy",o=i.includeInvisible||!1;let r=i.intersect?Ri(t,n,s,a,o):Fi(t,n,s,!1,a,o);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,a)=>Ri(t,ge(e,t),i.axis||"xy",a,i.includeInvisible||!1),nearest(t,e,i,a){const n=ge(e,t),s=i.axis||"xy",o=i.includeInvisible||!1;return Fi(t,n,s,i.intersect,a,o)},x:(t,e,i,a)=>ji(t,ge(e,t),"x",i.intersect,a),y:(t,e,i,a)=>ji(t,ge(e,t),"y",i.intersect,a)}};const Bi=["left","top","right","bottom"];function Ni(t,e){return t.filter((t=>t.pos===e))}function Vi(t,e){return t.filter((t=>-1===Bi.indexOf(t.pos)&&t.box.axis===e))}function Wi(t,e){return t.sort(((t,i)=>{const a=e?i:t,n=e?t:i;return a.weight===n.weight?a.index-n.index:a.weight-n.weight}))}function Ui(t,e,i,a){return Math.max(t[i],e[i])+Math.max(t[a],e[a])}function qi(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Yi(t,e,i,a){const{pos:n,box:o}=i,r=t.maxPadding;if(!s(n)){i.size&&(t[n]-=i.size);const e=a[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[n]+=i.size}o.getPadding&&qi(r,o.getPadding());const l=Math.max(0,e.outerWidth-Ui(r,t,"left","right")),c=Math.max(0,e.outerHeight-Ui(r,t,"top","bottom")),d=l!==t.w,h=c!==t.h;return t.w=l,t.h=c,i.horizontal?{same:d,other:h}:{same:h,other:d}}function Gi(t,e){const i=e.maxPadding;return function(t){const a={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{a[t]=Math.max(e[t],i[t])})),a}(t?["left","right"]:["top","bottom"])}function Xi(t,e,i,a){const n=[];let s,o,r,l,c,d;for(s=0,o=t.length,c=0;s<o;++s){r=t[s],l=r.box,l.update(r.width||e.w,r.height||e.h,Gi(r.horizontal,e));const{same:o,other:h}=Yi(e,i,r,a);c|=o&&n.length,d=d||h,l.fullSize||n.push(r)}return c&&Xi(n,e,i,a)||d}function Ji(t,e,i,a,n){t.top=i,t.left=e,t.right=e+a,t.bottom=i+n,t.width=a,t.height=n}function Ki(t,e,i,a){const n=i.padding;let{x:s,y:o}=e;for(const r of t){const t=r.box,l=a[r.stack]||{count:1,placed:0,weight:1},c=r.stackWeight/l.weight||1;if(r.horizontal){const a=e.w*c,s=l.size||t.height;$(l.start)&&(o=l.start),t.fullSize?Ji(t,n.left,o,i.outerWidth-n.right-n.left,s):Ji(t,e.left+l.placed,o,a,s),l.start=o,l.placed+=a,o=t.bottom}else{const a=e.h*c,o=l.size||t.width;$(l.start)&&(s=l.start),t.fullSize?Ji(t,s,n.top,o,i.outerHeight-n.bottom-n.top):Ji(t,s,e.top+l.placed,o,a),l.start=s,l.placed+=a,s=t.right}}e.x=s,e.y=o}var Zi={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,a){if(!t)return;const n=bi(t.options.layout.padding),s=Math.max(e-n.width,0),o=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,a,n,s,o,r;for(i=0,a=(t||[]).length;i<a;++i)n=t[i],({position:s,options:{stack:o,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:s,horizontal:n.isHorizontal(),weight:n.weight,stack:o&&s+o,stackWeight:r});return e}(t),i=Wi(e.filter((t=>t.box.fullSize)),!0),a=Wi(Ni(e,"left"),!0),n=Wi(Ni(e,"right")),s=Wi(Ni(e,"top"),!0),o=Wi(Ni(e,"bottom")),r=Vi(e,"x"),l=Vi(e,"y");return{fullSize:i,leftAndTop:a.concat(s),rightAndBottom:n.concat(l).concat(o).concat(r),chartArea:Ni(e,"chartArea"),vertical:a.concat(n).concat(l),horizontal:s.concat(o).concat(r)}}(t.boxes),l=r.vertical,c=r.horizontal;p(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,h=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),f=Object.assign({},n);qi(f,bi(a));const u=Object.assign({maxPadding:f,w:s,h:o,x:n.left,y:n.top},n),g=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:a,stackWeight:n}=i;if(!t||!Bi.includes(a))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=n}return e}(t),{vBoxMaxWidth:a,hBoxMaxHeight:n}=e;let s,o,r;for(s=0,o=t.length;s<o;++s){r=t[s];const{fullSize:o}=r.box,l=i[r.stack],c=l&&r.stackWeight/l.weight;r.horizontal?(r.width=c?c*a:o&&e.availableWidth,r.height=n):(r.width=a,r.height=c?c*n:o&&e.availableHeight)}return i}(l.concat(c),h);Xi(r.fullSize,u,h,g),Xi(l,u,h,g),Xi(c,u,h,g)&&Xi(l,u,h,g),function(t){const e=t.maxPadding;function i(i){const a=Math.max(e[i]-t[i],0);return t[i]+=a,a}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(u),Ki(r.leftAndTop,u,h,g),u.x+=u.w,u.y+=u.h,Ki(r.rightAndBottom,u,h,g),t.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},p(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})}))}};class Qi{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,a){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,a?Math.floor(e/a):i)}}isAttached(t){return!0}updateConfig(t){}}class ta extends Qi{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ea="$chartjs",ia={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},aa=t=>null===t||""===t,na=!!ye&&{passive:!0};function sa(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,na)}function oa(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ra(t,e,i){const a=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||oa(i.addedNodes,a),e=e&&!oa(i.removedNodes,a);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function la(t,e,i){const a=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||oa(i.removedNodes,a),e=e&&!oa(i.addedNodes,a);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const ca=new Map;let da=0;function ha(){const t=window.devicePixelRatio;t!==da&&(da=t,ca.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function pa(t,e,i){const a=t.canvas,n=a&&ce(a);if(!n)return;const s=dt(((t,e)=>{const a=n.clientWidth;i(t,e),a<n.clientWidth&&i()}),window),o=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,a=e.contentRect.height;0===i&&0===a||s(i,a)}));return o.observe(n),function(t,e){ca.size||window.addEventListener("resize",ha),ca.set(t,e)}(t,s),o}function fa(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){ca.delete(t),ca.size||window.removeEventListener("resize",ha)}(t)}function ua(t,e,i){const a=t.canvas,n=dt((e=>{null!==t.ctx&&i(function(t,e){const i=ia[t.type]||t.type,{x:a,y:n}=ge(t,e);return{type:i,chart:e,native:t,x:void 0!==a?a:null,y:void 0!==n?n:null}}(e,t))}),t);return function(t,e,i){t&&t.addEventListener(e,i,na)}(a,e,n),n}class ga extends Qi{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,a=t.getAttribute("height"),n=t.getAttribute("width");if(t[ea]={initial:{height:a,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",aa(n)){const e=we(t,"width");void 0!==e&&(t.width=e)}if(aa(a))if(""===t.style.height)t.height=t.width/(e||2);else{const e=we(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[ea])return!1;const i=e[ea].initial;["height","width"].forEach((t=>{const n=i[t];a(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[ea],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const a=t.$proxies||(t.$proxies={}),n={attach:ra,detach:la,resize:pa}[e]||ua;a[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),a=i[e];a&&(({attach:fa,detach:fa,resize:fa}[e]||sa)(t,e,a),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,a){return _e(t,e,i,a)}isAttached(t){const e=t&&ce(t);return!(!e||!e.isConnected)}}function ma(t){return!le()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ta:ga}var _a=Object.freeze({__proto__:null,BasePlatform:Qi,BasicPlatform:ta,DomPlatform:ga,_detectPlatform:ma});const ba="transparent",ya={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const a=Xt(t||ba),n=a.valid&&Xt(e||ba);return n&&n.valid?n.mix(a,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class wa{constructor(t,e,i,a){const n=e[i];a=wi([t.to,a,n,t.from]);const s=wi([t.from,n,a]);this._active=!0,this._fn=t.fn||ya[t.type||typeof s],this._easing=ri[t.easing]||ri.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=s,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const a=this._target[this._prop],n=i-this._start,s=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=wi([t.to,e,a,t.from]),this._from=wi([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,a=this._prop,n=this._from,s=this._loop,o=this._to;let r;if(this._active=n!==o&&(s||e<i),!this._active)return this._target[a]=o,void this._notify(!0);e<0?this._target[a]=n:(r=e/i%2,r=s&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[a]=this._fn(n,o,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class xa{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!s(t))return;const e=Object.keys(re.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach((a=>{const o=t[a];if(!s(o))return;const r={};for(const t of e)r[t]=o[t];(n(o.properties)&&o.properties||[a]).forEach((t=>{t!==a&&i.has(t)||i.set(t,r)}))}))}_animateOptions(t,e){const i=e.options,a=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!a)return[];const n=this._createAnimations(a,i);return i.$shared&&function(t,e){const i=[],a=Object.keys(e);for(let e=0;e<a.length;e++){const n=t[a[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,a=[],n=t.$animations||(t.$animations={}),s=Object.keys(e),o=Date.now();let r;for(r=s.length-1;r>=0;--r){const l=s[r];if("$"===l.charAt(0))continue;if("options"===l){a.push(...this._animateOptions(t,e));continue}const c=e[l];let d=n[l];const h=i.get(l);if(d){if(h&&d.active()){d.update(h,c,o);continue}d.cancel()}h&&h.duration?(n[l]=d=new wa(h,t,l,c),a.push(d)):t[l]=c}return a}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(_t.add(this._chart,i),!0):void 0}}function va(t,e){const i=t&&t.options||{},a=i.reverse,n=void 0===i.min?e:0,s=void 0===i.max?e:0;return{start:a?s:n,end:a?n:s}}function ka(t,e){const i=[],a=t._getSortedDatasetMetas(e);let n,s;for(n=0,s=a.length;n<s;++n)i.push(a[n].index);return i}function $a(t,e,i,a={}){const n=t.keys,s="single"===a.mode;let r,l,c,d;if(null===e)return;let h=!1;for(r=0,l=n.length;r<l;++r){if(c=+n[r],c===i){if(h=!0,a.all)continue;break}d=t.values[c],o(d)&&(s||0===e||R(e)===R(d))&&(e+=d)}return h||a.all?e:0}function Ca(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Sa(t,e,i){const a=t[e]||(t[e]={});return a[i]||(a[i]={})}function Ma(t,e,i,a){for(const n of e.getMatchingVisibleMetas(a).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function Pa(t,e){const{chart:i,_cachedMeta:a}=t,n=i._stacks||(i._stacks={}),{iScale:s,vScale:o,index:r}=a,l=s.axis,c=o.axis,d=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(s,o,a),h=e.length;let p;for(let t=0;t<h;++t){const i=e[t],{[l]:s,[c]:h}=i;p=(i._stacks||(i._stacks={}))[c]=Sa(n,d,s),p[r]=h,p._top=Ma(p,o,!0,a.type),p._bottom=Ma(p,o,!1,a.type),(p._visualValues||(p._visualValues={}))[r]=h}}function Da(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Ta(t,e){const i=t.controller.index,a=t.vScale&&t.vScale.axis;if(a){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[a]||void 0===e[a][i])return;delete e[a][i],void 0!==e[a]._visualValues&&void 0!==e[a]._visualValues[i]&&delete e[a]._visualValues[i]}}}const La=t=>"reset"===t||"none"===t,Aa=(t,e)=>e?t:Object.assign({},t);class Ea{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ca(t.vScale,t),this.addElements(),this.options.fill&&this.chart.isPluginEnabled("filler")}updateIndex(t){this.index!==t&&Ta(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),a=(t,e,i,a)=>"x"===t?e:"r"===t?a:i,n=e.xAxisID=l(i.xAxisID,Da(t,"x")),s=e.yAxisID=l(i.yAxisID,Da(t,"y")),o=e.rAxisID=l(i.rAxisID,Da(t,"r")),r=e.indexAxis,c=e.iAxisID=a(r,n,s,o),d=e.vAxisID=a(r,s,n,o);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&rt(this._data,this),t._stacked&&Ta(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(s(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:a}=e,n="x"===i.axis?"x":"y",s="x"===a.axis?"x":"y",o=Object.keys(t),r=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],r[l]={[n]:d,[s]:t[d]};return r}(e,t)}else if(i!==e){if(i){rt(i,this);const t=this._cachedMeta;Ta(t),t._parsed=[]}e&&Object.isExtensible(e)&&ot(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let a=!1;this._dataCheck();const n=e._stacked;e._stacked=Ca(e.vScale,e),e.stack!==i.stack&&(a=!0,Ta(e),e.stack=i.stack),this._resyncElements(t),(a||n!==e._stacked)&&(Pa(this,e._parsed),e._stacked=Ca(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:a}=this,{iScale:o,_stacked:r}=i,l=o.axis;let c,d,h,p=0===t&&e===a.length||i._sorted,f=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=a,i._sorted=!0,h=a;else{h=n(a[t])?this.parseArrayData(i,a,t,e):s(a[t])?this.parseObjectData(i,a,t,e):this.parsePrimitiveData(i,a,t,e);const o=()=>null===d[l]||f&&d[l]<f[l];for(c=0;c<e;++c)i._parsed[c+t]=d=h[c],p&&(o()&&(p=!1),f=d);i._sorted=p}r&&Pa(this,h)}parsePrimitiveData(t,e,i,a){const{iScale:n,vScale:s}=t,o=n.axis,r=s.axis,l=n.getLabels(),c=n===s,d=new Array(a);let h,p,f;for(h=0,p=a;h<p;++h)f=h+i,d[h]={[o]:c||n.parse(l[f],f),[r]:s.parse(e[f],f)};return d}parseArrayData(t,e,i,a){const{xScale:n,yScale:s}=t,o=new Array(a);let r,l,c,d;for(r=0,l=a;r<l;++r)c=r+i,d=e[c],o[r]={x:n.parse(d[0],c),y:s.parse(d[1],c)};return o}parseObjectData(t,e,i,a){const{xScale:n,yScale:s}=t,{xAxisKey:o="x",yAxisKey:r="y"}=this._parsing,l=new Array(a);let c,d,h,p;for(c=0,d=a;c<d;++c)h=c+i,p=e[h],l[c]={x:n.parse(v(p,o),h),y:s.parse(v(p,r),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const a=this.chart,n=this._cachedMeta,s=e[t.axis];return $a({keys:ka(a,!0),values:e._stacks[t.axis]._visualValues},s,n.index,{mode:i})}updateRangeFromParsed(t,e,i,a){const n=i[e.axis];let s=null===n?NaN:n;const o=a&&i._stacks[e.axis];a&&o&&(a.values=o,s=$a(a,n,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){const i=this._cachedMeta,a=i._parsed,n=i._sorted&&t===i.iScale,s=a.length,r=this._getOtherScale(t),l=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:ka(i,!0),values:null})(e,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:h}=function(t){const{min:e,max:i,minDefined:a,maxDefined:n}=t.getUserBounds();return{min:a?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let p,f;function u(){f=a[p];const e=f[r.axis];return!o(f[t.axis])||d>e||h<e}for(p=0;p<s&&(u()||(this.updateRangeFromParsed(c,t,f,l),!n));++p);if(n)for(p=s-1;p>=0;--p)if(!u()){this.updateRangeFromParsed(c,t,f,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let a,n,s;for(a=0,n=e.length;a<n;++a)s=e[a][t.axis],o(s)&&i.push(s);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,a=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:a?""+a.getLabelForValue(n[a.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,a,n;return s(t)?(e=t.top,i=t.right,a=t.bottom,n=t.left):e=i=a=n=t,{top:e,right:i,bottom:a,left:n,disabled:!1===t}}(l(this.options.clip,function(t,e,i){if(!1===i)return!1;const a=va(t,i),n=va(e,i);return{top:n.end,right:a.end,bottom:n.start,left:a.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,a=i.data||[],n=e.chartArea,s=[],o=this._drawStart||0,r=this._drawCount||a.length-o,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,n,o,r),c=o;c<o+r;++c){const e=a[c];e.hidden||(e.active&&l?s.push(e):e.draw(t,n))}for(c=0;c<s.length;++c)s[c].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const a=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return vi(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=a.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return vi(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=a,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const a="active"===e,n=this._cachedDataOpts,s=t+"-"+e,o=n[s],r=this.enableOptionSharing&&$(i);if(o)return Aa(o,r);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=a?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),p=Object.keys(re.elements[t]),f=l.resolveNamedOptions(h,p,(()=>this.getContext(i,a,e)),d);return f.$shared&&(f.$shared=r,n[s]=Object.freeze(Aa(f,r))),f}_resolveAnimations(t,e,i){const a=this.chart,n=this._cachedDataOpts,s=`animation-${e}`,o=n[s];if(o)return o;let r;if(!1!==a.options.animation){const a=this.chart.config,n=a.datasetAnimationScopeKeys(this._type,e),s=a.getOptionScopes(this.getDataset(),n);r=a.createResolver(s,this.getContext(t,i,e))}const l=new xa(a,r&&r.animations);return r&&r._cacheable&&(n[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||La(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),a=this._sharedOptions,n=this.getSharedOptions(i),s=this.includeOptions(e,n)||n!==a;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:s}}updateElement(t,e,i,a){La(a)?Object.assign(t,i):this._resolveAnimations(e,a).update(t,i)}updateSharedOptions(t,e,i){t&&!La(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,a){t.active=a;const n=this.getStyle(e,a);this._resolveAnimations(e,i,a).update(t,{options:!a&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const a=i.length,n=e.length,s=Math.min(n,a);s&&this.parse(0,s),n>a?this._insertElements(a,n-a,t):n<a&&this._removeElements(n,a-n)}_insertElements(t,e,i=!0){const a=this._cachedMeta,n=a.data,s=t+e;let o;const r=t=>{for(t.length+=e,o=t.length-1;o>=s;o--)t[o]=t[o-e]};for(r(n),o=t;o<s;++o)n[o]=new this.dataElementType;this._parsing&&r(a._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,a){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const a=i._parsed.splice(t,e);i._stacked&&Ta(i,a)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,a]=t;this[e](i,a)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class Ia{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return B(this.x)&&B(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const a={};return t.forEach((t=>{a[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),a}}function Oa(t,e){const i=t.options.ticks,n=function(t){const e=t.options.offset,i=t._tickSize(),a=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(a,n))}(t),s=Math.min(i.maxTicksLimit||n,n),o=i.major.enabled?function(t){const e=[];let i,a;for(i=0,a=t.length;i<a;i++)t[i].major&&e.push(i);return e}(e):[],r=o.length,l=o[0],c=o[r-1],d=[];if(r>s)return function(t,e,i,a){let n,s=0,o=i[0];for(a=Math.ceil(a),n=0;n<t.length;n++)n===o&&(e.push(t[n]),s++,o=i[s*a])}(e,d,o,r/s),d;const h=function(t,e,i){const a=function(t){const e=t.length;let i,a;if(e<2)return!1;for(a=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==a)return!1;return a}(t),n=e.length/i;if(!a)return Math.max(n,1);const s=H(a);for(let t=0,e=s.length-1;t<e;t++){const e=s[t];if(e>n)return e}return Math.max(n,1)}(o,e,s);if(r>0){let t,i;const n=r>1?Math.round((c-l)/(r-1)):null;for(za(e,d,h,a(n)?0:l-n,l),t=0,i=r-1;t<i;t++)za(e,d,h,o[t],o[t+1]);return za(e,d,h,c,a(n)?e.length:c+n),d}return za(e,d,h),d}function za(t,e,i,a,n){const s=l(a,0),o=Math.min(l(n,t.length),t.length);let r,c,d,h=0;for(i=Math.ceil(i),n&&(r=n-a,i=r/Math.floor(r/i)),d=s;d<0;)h++,d=Math.round(s+h*i);for(c=Math.max(s,0);c<o;c++)c===d&&(e.push(t[c]),h++,d=Math.round(s+h*i))}const Ra=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,Fa=(t,e)=>Math.min(e||t,t);function ja(t,e){const i=[],a=t.length/e,n=t.length;let s=0;for(;s<n;s+=a)i.push(t[Math.floor(s)]);return i}function Ha(t,e,i){const a=t.ticks.length,n=Math.min(e,a-1),s=t._startPixel,o=t._endPixel,r=1e-6;let l,c=t.getPixelForTick(n);if(!(i&&(l=1===a?Math.max(c-s,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(n-1))/2,c+=n<e?l:-l,c<s-r||c>o+r)))return c}function Ba(t){return t.drawTicks?t.tickLength:0}function Na(t,e){if(!t.display)return 0;const i=yi(t.font,e),a=bi(t.padding);return(n(t.text)?t.text.length:1)*i.lineHeight+a.height}function Va(t,e,i){let a=pt(t);return(i&&"right"!==e||!i&&"right"===e)&&(a=(t=>"left"===t?"right":"right"===t?"left":t)(a)),a}class Wa extends Ia{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:a}=this;return t=r(t,Number.POSITIVE_INFINITY),e=r(e,Number.NEGATIVE_INFINITY),i=r(i,Number.POSITIVE_INFINITY),a=r(a,Number.NEGATIVE_INFINITY),{min:r(t,i),max:r(e,a),minDefined:o(t),maxDefined:o(e)}}getMinMax(t){let e,{min:i,max:a,minDefined:n,maxDefined:s}=this.getUserBounds();if(n&&s)return{min:i,max:a};const o=this.getMatchingVisibleMetas();for(let r=0,l=o.length;r<l;++r)e=o[r].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),s||(a=Math.max(a,e.max));return i=s&&i>a?a:i,a=n&&i>a?i:a,{min:r(i,r(a,i)),max:r(a,r(i,a))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){h(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:a,grace:n,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=xi(this,n,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=o<this.ticks.length;this._convertTicksToLabels(r?ja(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=Oa(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){h(this.options.afterUpdate,[this])}beforeSetDimensions(){h(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){h(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),h(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){h(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,a,n;for(i=0,a=t.length;i<a;i++)n=t[i],n.label=h(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){h(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){h(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=Fa(this.ticks.length,t.ticks.maxTicksLimit),a=e.minRotation||0,n=e.maxRotation;let s,o,r,l=a;if(!this._isVisible()||!e.display||a>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=a);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,p=Z(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/i:p/(i-1),d+6>s&&(s=p/(i-(t.offset?.5:1)),o=this.maxHeight-Ba(t.grid)-e.padding-Na(t.title,this.chart.options.font),r=Math.sqrt(d*d+h*h),l=U(Math.min(Math.asin(Z((c.highest.height+6)/s,-1,1)),Math.asin(Z(o/r,-1,1))-Math.asin(Z(h/r,-1,1)))),l=Math.max(a,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){h(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){h(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:a,grid:n}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const s=Na(a,e.options.font);if(o?(t.width=this.maxWidth,t.height=Ba(n)+s):(t.height=this.maxHeight,t.width=Ba(n)+s),i.display&&this.ticks.length){const{first:e,last:a,widest:n,highest:s}=this._getLabelSizes(),r=2*i.padding,l=W(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(o){const e=i.mirror?0:d*n.width+c*s.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:c*n.width+d*s.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,a,d,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,a){const{ticks:{align:n,padding:s},position:o}=this.options,r=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;r?l?(d=a*t.width,h=i*e.height):(d=i*t.height,h=a*e.width):"start"===n?h=e.width:"end"===n?d=t.width:"inner"!==n&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-o+s)*this.width/(this.width-o),0),this.paddingRight=Math.max((h-c+s)*this.width/(this.width-c),0)}else{let i=e.height/2,a=t.height/2;"start"===n?(i=0,a=t.height):"end"===n&&(i=e.height,a=0),this.paddingTop=i+s,this.paddingBottom=a+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){h(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)a(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=ja(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:s,_longestTextCache:o}=this,r=[],l=[],c=Math.floor(e/Fa(e,i));let d,h,f,u,g,m,_,b,y,w,x,v=0,k=0;for(d=0;d<e;d+=c){if(u=t[d].label,g=this._resolveTickFontOptions(d),s.font=m=g.string,_=o[m]=o[m]||{data:{},gc:[]},b=g.lineHeight,y=w=0,a(u)||n(u)){if(n(u))for(h=0,f=u.length;h<f;++h)x=u[h],a(x)||n(x)||(y=ve(s,_.data,_.gc,y,x),w+=b)}else y=ve(s,_.data,_.gc,y,u),w=b;r.push(y),l.push(w),v=Math.max(y,v),k=Math.max(w,k)}!function(t,e){p(t,(t=>{const i=t.gc,a=i.length/2;let n;if(a>e){for(n=0;n<a;++n)delete t.data[i[n]];i.splice(0,a)}}))}(o,e);const $=r.indexOf(v),C=l.indexOf(k),S=t=>({width:r[t]||0,height:l[t]||0});return{first:S(0),last:S(e-1),widest:S($),highest:S(C),widths:r,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Q(this._alignToPixels?$e(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return vi(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=vi(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=W(this.labelRotation),i=Math.abs(Math.cos(e)),a=Math.abs(Math.sin(e)),n=this._getLabelSizes(),s=t.autoSkipPadding||0,o=n?n.widest.width+s:0,r=n?n.highest.height+s:0;return this.isHorizontal()?r*i>o*a?o/i:r/a:r*a<o*i?r/i:o/a}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,a=this.options,{grid:n,position:o,border:r}=a,c=n.offset,d=this.isHorizontal(),h=this.ticks.length+(c?1:0),p=Ba(n),f=[],u=r.setContext(this.getContext()),g=u.display?u.width:0,m=g/2,_=function(t){return $e(i,t,g)};let b,y,w,x,v,k,$,C,S,M,P,D;if("top"===o)b=_(this.bottom),k=this.bottom-p,C=b-m,M=_(t.top)+m,D=t.bottom;else if("bottom"===o)b=_(this.top),M=t.top,D=_(t.bottom)-m,k=b+m,C=this.top+p;else if("left"===o)b=_(this.right),v=this.right-p,$=b-m,S=_(t.left)+m,P=t.right;else if("right"===o)b=_(this.left),S=t.left,P=_(t.right)-m,v=b+m,$=this.left+p;else if("x"===e){if("center"===o)b=_((t.top+t.bottom)/2+.5);else if(s(o)){const t=Object.keys(o)[0],e=o[t];b=_(this.chart.scales[t].getPixelForValue(e))}M=t.top,D=t.bottom,k=b+m,C=k+p}else if("y"===e){if("center"===o)b=_((t.left+t.right)/2);else if(s(o)){const t=Object.keys(o)[0],e=o[t];b=_(this.chart.scales[t].getPixelForValue(e))}v=b-m,$=v-p,S=t.left,P=t.right}const T=l(a.ticks.maxTicksLimit,h),L=Math.max(1,Math.ceil(h/T));for(y=0;y<h;y+=L){const t=this.getContext(y),e=n.setContext(t),a=r.setContext(t),s=e.lineWidth,o=e.color,l=a.dash||[],h=a.dashOffset,p=e.tickWidth,u=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;w=Ha(this,y,c),void 0!==w&&(x=$e(i,w,s),d?v=$=S=P=x:k=C=M=D=x,f.push({tx1:v,ty1:k,tx2:$,ty2:C,x1:S,y1:M,x2:P,y2:D,width:s,color:o,borderDash:l,borderDashOffset:h,tickWidth:p,tickColor:u,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=h,this._borderValue=b,f}_computeLabelItems(t){const e=this.axis,i=this.options,{position:a,ticks:o}=i,r=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:h,mirror:p}=o,f=Ba(i.grid),u=f+h,g=p?-h:u,m=-W(this.labelRotation),_=[];let b,y,w,x,v,k,$,C,S,M,P,D,T="middle";if("top"===a)k=this.bottom-g,$=this._getXAxisLabelAlignment();else if("bottom"===a)k=this.top+g,$=this._getXAxisLabelAlignment();else if("left"===a){const t=this._getYAxisLabelAlignment(f);$=t.textAlign,v=t.x}else if("right"===a){const t=this._getYAxisLabelAlignment(f);$=t.textAlign,v=t.x}else if("x"===e){if("center"===a)k=(t.top+t.bottom)/2+u;else if(s(a)){const t=Object.keys(a)[0],e=a[t];k=this.chart.scales[t].getPixelForValue(e)+u}$=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===a)v=(t.left+t.right)/2-u;else if(s(a)){const t=Object.keys(a)[0],e=a[t];v=this.chart.scales[t].getPixelForValue(e)}$=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===c?T="top":"end"===c&&(T="bottom"));const L=this._getLabelSizes();for(b=0,y=l.length;b<y;++b){w=l[b],x=w.label;const t=o.setContext(this.getContext(b));C=this.getPixelForTick(b)+o.labelOffset,S=this._resolveTickFontOptions(b),M=S.lineHeight,P=n(x)?x.length:1;const e=P/2,i=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,f=$;if(r?(v=C,"inner"===$&&(f=b===y-1?this.options.reverse?"left":"right":0===b?this.options.reverse?"right":"left":"center"),D="top"===a?"near"===d||0!==m?-P*M+M/2:"center"===d?-L.highest.height/2-e*M+M:-L.highest.height+M/2:"near"===d||0!==m?M/2:"center"===d?L.highest.height/2-e*M:L.highest.height-P*M,p&&(D*=-1),0===m||t.showLabelBackdrop||(v+=M/2*Math.sin(m))):(k=C,D=(1-P)*M/2),t.showLabelBackdrop){const e=bi(t.backdropPadding),i=L.heights[b],a=L.widths[b];let n=D-e.top,s=0-e.left;switch(T){case"middle":n-=i/2;break;case"bottom":n-=i}switch($){case"center":s-=a/2;break;case"right":s-=a;break;case"inner":b===y-1?s-=a:b>0&&(s-=a/2)}h={left:s,top:n,width:a+e.width,height:i+e.height,color:t.backdropColor}}_.push({label:x,font:S,textOffset:D,options:{rotation:m,color:i,strokeColor:s,strokeWidth:c,textAlign:f,textBaseline:T,translation:[v,k],backdrop:h}})}return _}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-W(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:a,padding:n}}=this.options,s=t+n,o=this._getLabelSizes().widest.width;let r,l;return"left"===e?a?(l=this.right+n,"near"===i?r="left":"center"===i?(r="center",l+=o/2):(r="right",l+=o)):(l=this.right-s,"near"===i?r="right":"center"===i?(r="center",l-=o/2):(r="left",l=this.left)):"right"===e?a?(l=this.left+n,"near"===i?r="right":"center"===i?(r="center",l-=o/2):(r="left",l-=o)):(l=this.left+s,"near"===i?r="left":"center"===i?(r="center",l+=o/2):(r="right",l=this.right)):r="right",{textAlign:r,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:a,width:n,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,a,n,s),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,s;const o=(t,e,a)=>{a.width&&a.color&&(i.save(),i.lineWidth=a.width,i.strokeStyle=a.color,i.setLineDash(a.borderDash||[]),i.lineDashOffset=a.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,s=a.length;n<s;++n){const t=a[n];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:a}}=this,n=i.setContext(this.getContext()),s=i.display?n.width:0;if(!s)return;const o=a.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let l,c,d,h;this.isHorizontal()?(l=$e(t,this.left,s)-s/2,c=$e(t,this.right,o)+o/2,d=h=r):(d=$e(t,this.top,s)-s/2,h=$e(t,this.bottom,o)+o/2,l=c=r),e.save(),e.lineWidth=n.width,e.strokeStyle=n.color,e.beginPath(),e.moveTo(l,d),e.lineTo(c,h),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&De(e,i);const a=this.getLabelItems(t);for(const t of a){const i=t.options,a=t.font;Oe(e,t.label,0,t.textOffset,a,i)}i&&Te(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:a}}=this;if(!i.display)return;const o=yi(i.font),r=bi(i.padding),l=i.align;let c=o.lineHeight/2;"bottom"===e||"center"===e||s(e)?(c+=r.bottom,n(i.text)&&(c+=o.lineHeight*(i.text.length-1))):c+=r.top;const{titleX:d,titleY:h,maxWidth:p,rotation:f}=function(t,e,i,a){const{top:n,left:o,bottom:r,right:l,chart:c}=t,{chartArea:d,scales:h}=c;let p,f,u,g=0;const m=r-n,_=l-o;if(t.isHorizontal()){if(f=ft(a,o,l),s(i)){const t=Object.keys(i)[0],a=i[t];u=h[t].getPixelForValue(a)+m-e}else u="center"===i?(d.bottom+d.top)/2+m-e:Ra(t,i,e);p=l-o}else{if(s(i)){const t=Object.keys(i)[0],a=i[t];f=h[t].getPixelForValue(a)-_+e}else f="center"===i?(d.left+d.right)/2-_+e:Ra(t,i,e);u=ft(a,r,n),g="left"===i?-E:E}return{titleX:f,titleY:u,maxWidth:p,rotation:g}}(this,c,e,l);Oe(t,i.text,0,0,o,{color:i.color,maxWidth:p,rotation:f,textAlign:Va(l,e,a),textBaseline:"middle",translation:[d,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=l(t.grid&&t.grid.z,-1),a=l(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Wa.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];s[i]!==this.id||t&&s.type!==t||a.push(s)}return a}_resolveTickFontOptions(t){return yi(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ua{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const a=this.items,n=t.id,s=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in a||(a[n]=t,function(t,e,i){const a=_(Object.create(null),[i?re.get(i):{},re.get(e),t.defaults]);re.set(e,a),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const a=i.split("."),n=a.pop(),s=[t].concat(a).join("."),o=e[i].split("."),r=o.pop(),l=o.join(".");re.route(s,n,l,r)}))}(e,t.defaultRoutes),t.descriptors&&re.describe(e,t.descriptors)}(t,s,i),this.override&&re.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,a=this.scope;i in e&&delete e[i],a&&i in re[a]&&(delete re[a][i],this.override&&delete ae[i])}}var qa=new class{constructor(){this.controllers=new Ua(Ea,"datasets",!0),this.elements=new Ua(Ia,"elements"),this.plugins=new Ua(Object,"plugins"),this.scales=new Ua(Wa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const a=i||this._getRegistryForType(e);i||a.isForType(e)||a===this.plugins&&e.id?this._exec(t,a,e):p(e,(e=>{const a=i||this._getRegistryForType(e);this._exec(t,a,e)}))}))}_exec(t,e,i){const a=k(t);h(i["before"+a],[],i),e[t](i),h(i["after"+a],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const a=e.get(t);if(void 0===a)throw new Error('"'+t+'" is not a registered '+i+".");return a}};class Ya{constructor(){this._init=[]}notify(t,e,i,a){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=a?this._descriptors(t).filter(a):this._descriptors(t),s=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,i,a){a=a||{};for(const n of t){const t=n.plugin;if(!1===h(t[i],[e,a,n.options],t)&&a.cancelable)return!1}return!0}invalidate(){a(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,a=l(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],a=Object.keys(qa.plugins.items);for(let t=0;t<a.length;t++)i.push(qa.getPlugin(a[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const a=n[t];-1===i.indexOf(a)&&(i.push(a),e[a.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==a||e?function(t,{plugins:e,localIds:i},a,n){const s=[],o=t.getContext();for(const r of e){const e=r.id,l=Ga(a[e],n);null!==l&&s.push({plugin:r,options:Xa(t.config,{plugin:r,local:i[e]},l,o)})}return s}(t,n,a,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,a=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(a(e,i),t,"stop"),this._notify(a(i,e),t,"start")}}function Ga(t,e){return e||!1!==t?!0===t?{}:t:null}function Xa(t,{plugin:e,local:i},a,n){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(a,s);return i&&e.defaults&&o.push(e.defaults),t.createResolver(o,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ja(t,e){const i=re.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Ka(t){if("x"===t||"y"===t||"r"===t)return t}function Za(t,...e){if(Ka(t))return t;for(const a of e){const e=a.axis||("top"===(i=a.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&Ka(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Qa(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function tn(t){const e=t.options||(t.options={});e.plugins=l(e.plugins,{}),e.scales=function(t,e){const i=ae[t.type]||{scales:{}},a=e.scales||{},n=Ja(t.type,e),o=Object.create(null);return Object.keys(a).forEach((e=>{const r=a[e];if(!s(r))return;if(r._proxy)return;const l=Za(e,r,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return Qa(t,"x",i[0])||Qa(t,"y",i[0])}return{}}(e,t),re.scales[r.type]),c=function(t,e){return t===e?"_index_":"_value_"}(l,n),d=i.scales||{};o[e]=b(Object.create(null),[{axis:l},r,d[l],d[c]])})),t.data.datasets.forEach((i=>{const n=i.type||t.type,s=i.indexAxis||Ja(n,e),r=(ae[n]||{}).scales||{};Object.keys(r).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,s),n=i[e+"AxisID"]||e;o[n]=o[n]||Object.create(null),b(o[n],[{axis:e},a[n],r[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];b(e,[re.scales[e.type],re.scale])})),o}(t,e)}function en(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const an=new Map,nn=new Set;function sn(t,e){let i=an.get(t);return i||(i=e(),an.set(t,i),nn.add(i)),i}const on=(t,e,i)=>{const a=v(e,i);void 0!==a&&t.add(a)};class rn{constructor(t){this._config=function(t){return(t=t||{}).data=en(t.data),tn(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=en(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),tn(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return sn(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return sn(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return sn(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return sn(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let a=i.get(t);return a&&!e||(a=new Map,i.set(t,a)),a}getOptionScopes(t,e,i){const{options:a,type:n}=this,s=this._cachedScopes(t,i),o=s.get(e);if(o)return o;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>on(r,t,e)))),e.forEach((t=>on(r,a,t))),e.forEach((t=>on(r,ae[n]||{},t))),e.forEach((t=>on(r,re,t))),e.forEach((t=>on(r,ne,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),nn.has(e)&&s.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,ae[e]||{},re.datasets[e]||{},{type:e},re,ne]}resolveNamedOptions(t,e,i,a=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=ln(this._resolverCache,t,a);let l=o;(function(t,e){const{isScriptable:i,isIndexable:a}=je(t);for(const s of e){const e=i(s),o=a(s),r=(o||e)&&t[s];if(e&&(C(r)||cn(r))||o&&n(r))return!0}return!1})(o,e)&&(s.$shared=!1,l=Fe(o,i=C(i)?i():i,this.createResolver(t,i,r)));for(const t of e)s[t]=l[t];return s}createResolver(t,e,i=[""],a){const{resolver:n}=ln(this._resolverCache,t,i);return s(e)?Fe(n,e,void 0,a):n}}function ln(t,e,i){let a=t.get(e);a||(a=new Map,t.set(e,a));const n=i.join();let s=a.get(n);return s||(s={resolver:Re(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},a.set(n,s)),s}const cn=t=>s(t)&&Object.getOwnPropertyNames(t).some((e=>C(t[e]))),dn=["top","bottom","left","right","chartArea"];function hn(t,e){return"top"===t||"bottom"===t||-1===dn.indexOf(t)&&"x"===e}function pn(t,e){return function(i,a){return i[t]===a[t]?i[e]-a[e]:i[t]-a[t]}}function fn(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),h(i&&i.onComplete,[t],e)}function un(t){const e=t.chart,i=e.options.animation;h(i&&i.onProgress,[t],e)}function gn(t){return le()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const mn={},_n=t=>{const e=gn(t);return Object.values(mn).filter((t=>t.canvas===e)).pop()};function bn(t,e,i){const a=Object.keys(t);for(const n of a){const a=+n;if(a>=e){const s=t[n];delete t[n],(i>0||a>e)&&(t[a+i]=s)}}}function yn(t,e,i){return t.options.clip?t[i]:e[i]}class wn{static defaults=re;static instances=mn;static overrides=ae;static registry=qa;static version="4.4.6";static getChart=_n;static register(...t){qa.add(...t),xn()}static unregister(...t){qa.remove(...t),xn()}constructor(t,e){const a=this.config=new rn(e),n=gn(t),s=_n(n);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=a.createResolver(a.chartOptionScopes(),this.getContext());this.platform=new(a.platform||ma(n)),this.platform.updateConfig(a);const r=this.platform.acquireContext(n,o.aspectRatio),l=r&&r.canvas,c=l&&l.height,d=l&&l.width;this.id=i(),this.ctx=r,this.canvas=l,this.width=d,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ya,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ht((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],mn[this.id]=this,r&&l&&(_t.listen(this,"complete",fn),_t.listen(this,"progress",un),this._initialize(),this.attached&&this.update())}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return a(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return qa}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():be(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ce(this.canvas,this.ctx),this}stop(){return _t.stop(this),this}resize(t,e){_t.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,a=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(a,t,e,n),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,be(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),h(i.onResize,[this,s],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){p(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,a=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],a=Za(t,i),n="r"===a,s="x"===a;return{options:i,dposition:n?"chartArea":s?"bottom":"left",dtype:n?"radialLinear":s?"category":"linear"}})))),p(n,(e=>{const n=e.options,s=n.id,o=Za(s,n),r=l(n.type,e.dtype);void 0!==n.position&&hn(n.position,o)===hn(e.dposition)||(n.position=e.dposition),a[s]=!0;let c=null;s in i&&i[s].type===r?c=i[s]:(c=new(qa.getScale(r))({id:s,type:r,ctx:this.ctx,chart:this}),i[c.id]=c),c.init(n,t)})),p(a,((t,e)=>{t||delete i[e]})),p(i,(t=>{Zi.configure(this,t,t.options),Zi.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(pn("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,a;for(this._removeUnreferencedMetasets(),i=0,a=e.length;i<a;i++){const a=e[i];let n=this.getDatasetMeta(i);const s=a.type||this.config.type;if(n.type&&n.type!==s&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=s,n.indexAxis=a.indexAxis||Ja(s,this.options),n.order=a.order||0,n.index=i,n.label=""+a.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=qa.getController(s),{datasetElementType:a,dataElementType:o}=re.datasets[s];Object.assign(e,{dataElementType:qa.getElement(o),datasetElementType:a&&qa.getElement(a)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){p(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!a&&-1===n.indexOf(e);e.buildOrUpdateElements(i),s=Math.max(+e.getMaxOverflow(),s)}s=this._minPadding=i.layout.autoPadding?s:0,this._updateLayout(s),a||p(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(pn("z","_idx"));const{_active:o,_lastEvent:r}=this;r?this._eventHandler(r,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){p(this.scales,(t=>{Zi.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);S(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:a,count:n}of e)bn(t,a,"_removeElements"===i?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),a=i(0);for(let t=1;t<e;t++)if(!S(a,i(t)))return;return Array.from(a).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Zi.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],p(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,C(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),a={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",a)&&(i.controller._update(e),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(_t.has(this)?this.attached&&!_t.running(this)&&_t.start(this):(this.draw(),fn({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let a,n;for(a=0,n=e.length;a<n;++a){const n=e[a];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,a=!i.disabled,n=function(t,e){const{xScale:i,yScale:a}=t;return i&&a?{left:yn(i,e,"left"),right:yn(i,e,"right"),top:yn(a,e,"top"),bottom:yn(a,e,"bottom")}:e}(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(a&&De(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),a&&Te(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Pe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,a){const n=Hi.modes[e];return"function"==typeof n?n(this,t,i,a):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let a=i.filter((t=>t&&t._dataset===e)).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(a)),a}getContext(){return this.$context||(this.$context=vi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const a=i?"show":"hide",n=this.getDatasetMeta(t),s=n.controller._resolveAnimations(void 0,a);$(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),s.update(n,{visible:i}),this.update((e=>e.datasetIndex===t?a:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),_t.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Ce(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete mn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,a)=>{e.addEventListener(this,i,a),t[i]=a},a=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};p(this.options.events,(t=>i(t,a)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,a)=>{e.addEventListener(this,i,a),t[i]=a},a=(i,a)=>{t[i]&&(e.removeEventListener(this,i,a),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const o=()=>{a("attach",o),this.attached=!0,this.resize(),i("resize",n),i("detach",s)};s=()=>{this.attached=!1,a("resize",n),this._stop(),this._resize(0,0),i("attach",o)},e.isAttached(this.canvas)?o():s()}unbindEvents(){p(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},p(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const a=i?"set":"remove";let n,s,o,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+a+"DatasetHoverStyle"]()),o=0,r=t.length;o<r;++o){s=t[o];const e=s&&this.getDatasetMeta(s.datasetIndex).controller;e&&e[a+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!f(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const a=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),s=n(e,t),o=i?t:n(t,e);s.length&&this.updateHoverStyle(s,a.mode,!1),o.length&&a.mode&&this.updateHoverStyle(o,a.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},a=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,a))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,a),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:a=[],options:n}=this,s=e,o=this._getActiveElements(t,a,i,s),r=M(t),l=function(t,e,i,a){return i&&"mouseout"!==t.type?a?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,h(n.onHover,[t,o,this],this),r&&h(n.onClick,[t,o,this],this));const c=!f(o,a);return(c||e)&&(this._active=o,this._updateHoverStyles(o,a,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,a){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,a)}}function xn(){return p(wn.instances,(t=>t._plugins.invalidate()))}function vn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class kn{static override(t){Object.assign(kn.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return vn()}parse(){return vn()}format(){return vn()}add(){return vn()}diff(){return vn()}startOf(){return vn()}endOf(){return vn()}}var $n={_date:kn};function Cn(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let a=[];for(let e=0,n=i.length;e<n;e++)a=a.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=lt(a.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let a,n,s,o,r=e._length;const l=()=>{32767!==s&&-32768!==s&&($(o)&&(r=Math.min(r,Math.abs(s-o)||r)),o=s)};for(a=0,n=i.length;a<n;++a)s=e.getPixelForValue(i[a]),l();for(o=void 0,a=0,n=e.ticks.length;a<n;++a)s=e.getPixelForTick(a),l();return r}function Sn(t,e,i,a){return n(t)?function(t,e,i,a){const n=i.parse(t[0],a),s=i.parse(t[1],a),o=Math.min(n,s),r=Math.max(n,s);let l=o,c=r;Math.abs(o)>Math.abs(r)&&(l=r,c=o),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:n,end:s,min:o,max:r}}(t,e,i,a):e[i.axis]=i.parse(t,a),e}function Mn(t,e,i,a){const n=t.iScale,s=t.vScale,o=n.getLabels(),r=n===s,l=[];let c,d,h,p;for(c=i,d=i+a;c<d;++c)p=e[c],h={},h[n.axis]=r||n.parse(o[c],c),l.push(Sn(p,h,s,c));return l}function Pn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Dn(t,e,i,a){let n=e.borderSkipped;const s={};if(!n)return void(t.borderSkipped=s);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:r,reverse:l,top:c,bottom:d}=function(t){let e,i,a,n,s;return t.horizontal?(e=t.base>t.x,i="left",a="right"):(e=t.base<t.y,i="bottom",a="top"),e?(n="end",s="start"):(n="start",s="end"),{start:i,end:a,reverse:e,top:n,bottom:s}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===a?n=c:(i._bottom||0)===a?n=d:(s[Tn(d,o,r,l)]=!0,n=c)),s[Tn(n,o,r,l)]=!0,t.borderSkipped=s}function Tn(t,e,i,a){var n,s,o;return a?(o=i,t=Ln(t=(n=t)===(s=e)?o:n===o?s:n,i,e)):t=Ln(t,e,i),t}function Ln(t,e,i){return"start"===t?e:"end"===t?i:t}function An(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class En extends Ea{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:a}}=t.legend.options;return e.labels.map(((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:a,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,a=this._cachedMeta;if(!1===this._parsing)a._parsed=i;else{let n,o,r=t=>+i[t];if(s(i[t])){const{key:t="value"}=this._parsing;r=e=>+v(i[e],t)}for(n=t,o=t+e;n<o;++n)a._parsed[n]=r(n)}}_getRotation(){return W(this.options.rotation-90)}_getCircumference(){return W(this.options.circumference)}_getRotationExtents(){let t=D,e=-D;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const a=this.chart.getDatasetMeta(i).controller,n=a._getRotation(),s=a._getCircumference();t=Math.min(t,n),e=Math.max(e,n+s)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,a=this._cachedMeta,n=a.data,s=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,o=Math.max((Math.min(i.width,i.height)-s)/2,0),r=Math.min(c(this.options.cutout,o),1),l=this._getRingWeight(this.index),{circumference:h,rotation:p}=this._getRotationExtents(),{ratioX:f,ratioY:u,offsetX:g,offsetY:m}=function(t,e,i){let a=1,n=1,s=0,o=0;if(e<D){const r=t,l=r+e,c=Math.cos(r),d=Math.sin(r),h=Math.cos(l),p=Math.sin(l),f=(t,e,a)=>K(t,r,l,!0)?1:Math.max(e,e*i,a,a*i),u=(t,e,a)=>K(t,r,l,!0)?-1:Math.min(e,e*i,a,a*i),g=f(0,c,h),m=f(E,d,p),_=u(P,c,h),b=u(P+E,d,p);a=(g-_)/2,n=(m-b)/2,s=-(g+_)/2,o=-(m+b)/2}return{ratioX:a,ratioY:n,offsetX:s,offsetY:o}}(p,h,r),_=(i.width-s)/f,b=(i.height-s)/u,y=Math.max(Math.min(_,b)/2,0),w=d(this.options.radius,y),x=(w-Math.max(w*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=m*w,a.total=this.calculateTotal(),this.outerRadius=w-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*l,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,a=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===a._parsed[t]||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*n/D)}updateElements(t,e,i,a){const n="reset"===a,s=this.chart,o=s.chartArea,r=s.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,d=n&&r.animateScale,h=d?0:this.innerRadius,p=d?0:this.outerRadius,{sharedOptions:f,includeOptions:u}=this._getSharedOptions(e,a);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,n);for(g=e;g<e+i;++g){const e=this._circumference(g,n),i=t[g],s={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:p,innerRadius:h};u&&(s.options=f||this.resolveDataElementOptions(g,i.active?"active":a)),m+=e,this.updateElement(i,g,s,a)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,a=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(a+=Math.abs(n))}return a}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?D*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,a=i.data.labels||[],n=te(e._parsed[t],i.options.locale);return{label:a[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let a,n,s,o,r;if(!t)for(a=0,n=i.data.datasets.length;a<n;++a)if(i.isDatasetVisible(a)){s=i.getDatasetMeta(a),t=s.data,o=s.controller;break}if(!t)return 0;for(a=0,n=t.length;a<n;++a)r=o.resolveDataElementOptions(a),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,a=t.length;i<a;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(l(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class In extends Ea{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:a}}=t.legend.options;return e.labels.map(((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:a,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,a=i.data.labels||[],n=te(e._parsed[t].r,i.options.locale);return{label:a[t]||"",value:n}}parseObjectData(t,e,i,a){return Je.bind(this)(t,e,i,a)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(a<e.min&&(e.min=a),a>e.max&&(e.max=a))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,a=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(a/2,0),s=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,e,i,a){const n="reset"===a,s=this.chart,o=s.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,c=r.yCenter,d=r.getIndexAngle(0)-.5*P;let h,p=d;const f=360/this.countVisibleElements();for(h=0;h<e;++h)p+=this._computeAngle(h,a,f);for(h=e;h<e+i;h++){const e=t[h];let i=p,u=p+this._computeAngle(h,a,f),g=s.getDataVisibility(h)?r.getDistanceFromCenterForValue(this.getParsed(h).r):0;p=u,n&&(o.animateScale&&(g=0),o.animateRotate&&(i=u=d));const m={x:l,y:c,innerRadius:0,outerRadius:g,startAngle:i,endAngle:u,options:this.resolveDataElementOptions(h,e.active?"active":a)};this.updateElement(e,h,m,a)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?W(this.resolveDataElementOptions(t,e).angle||i):0}}var On=Object.freeze({__proto__:null,BarController:class extends Ea{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,a){return Mn(t,e,i,a)}parseArrayData(t,e,i,a){return Mn(t,e,i,a)}parseObjectData(t,e,i,a){const{iScale:n,vScale:s}=t,{xAxisKey:o="x",yAxisKey:r="y"}=this._parsing,l="x"===n.axis?o:r,c="x"===s.axis?o:r,d=[];let h,p,f,u;for(h=i,p=i+a;h<p;++h)u=e[h],f={},f[n.axis]=n.parse(v(u,l),h),d.push(Sn(v(u,c),f,s,h));return d}updateRangeFromParsed(t,e,i,a){super.updateRangeFromParsed(t,e,i,a);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:a}=e,n=this.getParsed(t),s=n._custom,o=Pn(s)?"["+s.start+", "+s.end+"]":""+a.getLabelForValue(n[a.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,n){const s="reset"===n,{index:o,_cachedMeta:{vScale:r}}=this,l=r.getBasePixel(),c=r.isHorizontal(),d=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(e,n);for(let f=e;f<e+i;f++){const e=this.getParsed(f),i=s||a(e[r.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),u=this._calculateBarIndexPixels(f,d),g=(e._stacks||{})[r.axis],m={horizontal:c,base:i.base,enableBorderRadius:!g||Pn(e._custom)||o===g._top||o===g._bottom,x:c?i.head:u.center,y:c?u.center:i.head,height:c?u.size:Math.abs(i.size),width:c?Math.abs(i.size):u.size};p&&(m.options=h||this.resolveDataElementOptions(f,t[f].active?"active":n));const _=m.options||t[f].options;Dn(m,_,g,o),An(m,_,d.ratio),this.updateElement(t[f],f,m,n)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),s=i.options.stacked,o=[],r=this._cachedMeta.controller.getParsed(e),l=r&&r[i.axis],c=t=>{const e=t._parsed.find((t=>t[i.axis]===l)),n=e&&e[t.vScale.axis];if(a(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!c(i))&&((!1===s||-1===o.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const a=this._getStacks(t,i),n=void 0!==e?a.indexOf(e):-1;return-1===n?a.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,a=[];let n,s;for(n=0,s=e.data.length;n<s;++n)a.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const o=t.barThickness;return{min:o||Cn(e),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:n},options:{base:s,minBarLength:o}}=this,r=s||0,l=this.getParsed(t),c=l._custom,d=Pn(c);let h,p,f=l[e.axis],u=0,g=i?this.applyStack(e,l,i):f;g!==f&&(u=g-f,g=f),d&&(f=c.barStart,g=c.barEnd-c.barStart,0!==f&&R(f)!==R(c.barEnd)&&(u=0),u+=f);const m=a(s)||d?u:s;let _=e.getPixelForValue(m);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(u+g):_,p=h-_,Math.abs(p)<o){p=function(t,e,i){return 0!==t?R(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(p,e,r)*o,f===r&&(_-=p/2);const t=e.getPixelForDecimal(0),a=e.getPixelForDecimal(1),s=Math.min(t,a),c=Math.max(t,a);_=Math.max(Math.min(_,c),s),h=_+p,i&&!d&&(l._stacks[e.axis]._visualValues[n]=e.getValueForPixel(h)-e.getValueForPixel(_))}if(_===e.getPixelForValue(r)){const t=R(p)*e.getLineWidthForValue(r)/2;_+=t,p-=t}return{size:p,base:_,head:h,center:h+p/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=l(n.maxBarThickness,1/0);let r,c;if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,a){const n=e.pixels,s=n[t];let o=t>0?n[t-1]:null,r=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===o&&(o=s-(null===r?e.end-e.start:r-s)),null===r&&(r=s+s-o);const c=s-(s-Math.min(o,r))/2*l;return{chunk:Math.abs(r-o)/2*l/a,ratio:i.barPercentage,start:c}}(t,e,n,i):function(t,e,i,n){const s=i.barThickness;let o,r;return a(s)?(o=e.min*i.categoryPercentage,r=i.barPercentage):(o=s*n,r=1),{chunk:o/n,ratio:r,start:e.pixels[t]-o/2}}(t,e,n,i),d=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);r=l.start+l.chunk*d+l.chunk/2,c=Math.min(o,l.chunk*l.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),c=Math.min(o,e.min*e.ratio);return{base:r-c/2,head:r+c/2,center:r,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,a=i.length;let n=0;for(;n<a;++n)null===this.getParsed(n)[e.axis]||i[n].hidden||i[n].draw(this._ctx)}},BubbleController:class extends Ea{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,a){const n=super.parsePrimitiveData(t,e,i,a);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,a){const n=super.parseArrayData(t,e,i,a);for(let t=0;t<n.length;t++){const a=e[i+t];n[t]._custom=l(a[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,a){const n=super.parseObjectData(t,e,i,a);for(let t=0;t<n.length;t++){const a=e[i+t];n[t]._custom=l(a&&a.r&&+a.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:a,yScale:n}=e,s=this.getParsed(t),o=a.getLabelForValue(s.x),r=n.getLabelForValue(s.y),l=s._custom;return{label:i[t]||"",value:"("+o+", "+r+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,a){const n="reset"===a,{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,a),c=s.axis,d=o.axis;for(let h=e;h<e+i;h++){const e=t[h],i=!n&&this.getParsed(h),p={},f=p[c]=n?s.getPixelForDecimal(.5):s.getPixelForValue(i[c]),u=p[d]=n?o.getBasePixel():o.getPixelForValue(i[d]);p.skip=isNaN(f)||isNaN(u),l&&(p.options=r||this.resolveDataElementOptions(h,e.active?"active":a),n&&(p.options.radius=0)),this.updateElement(e,h,p,a)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let a=super.resolveDataElementOptions(t,e);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const n=a.radius;return"active"!==e&&(a.radius=0),a.radius+=l(i&&i._custom,n),a}},DoughnutController:En,LineController:class extends Ea{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:a=[],_dataset:n}=e,s=this.chart._animationsDisabled;let{start:o,count:r}=gt(e,a,s);this._drawStart=o,this._drawCount=r,mt(e)&&(o=0,r=a.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=a;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!s,options:l},t),this.updateElements(a,o,r,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,n),p=o.axis,f=r.axis,{spanGaps:u,segment:g}=this.options,m=B(u)?u:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||s||"none"===n,b=e+i,y=t.length;let w=e>0&&this.getParsed(e-1);for(let i=0;i<y;++i){const u=t[i],y=_?u:{};if(i<e||i>=b){y.skip=!0;continue}const x=this.getParsed(i),v=a(x[f]),k=y[p]=o.getPixelForValue(x[p],i),$=y[f]=s||v?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,x,l):x[f],i);y.skip=isNaN(k)||isNaN($)||v,y.stop=i>0&&Math.abs(x[p]-w[p])>m,g&&(y.parsed=x,y.raw=c.data[i]),h&&(y.options=d||this.resolveDataElementOptions(i,u.active?"active":n)),_||this.updateElement(u,i,y,n),w=x}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,a=t.data||[];if(!a.length)return i;const n=a[0].size(this.resolveDataElementOptions(0)),s=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(i,n,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends En{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:In,RadarController:class extends Ea{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,a){return Je.bind(this)(t,e,i,a)}update(t){const e=this._cachedMeta,i=e.dataset,a=e.data||[],n=e.iScale.getLabels();if(i.points=a,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const s={_loop:!0,_fullLoop:n.length===a.length,options:e};this.updateElement(i,void 0,s,t)}this.updateElements(a,0,a.length,t)}updateElements(t,e,i,a){const n=this._cachedMeta.rScale,s="reset"===a;for(let o=e;o<e+i;o++){const e=t[o],i=this.resolveDataElementOptions(o,e.active?"active":a),r=n.getPointPositionForValue(o,this.getParsed(o).r),l=s?n.xCenter:r.x,c=s?n.yCenter:r.y,d={x:l,y:c,angle:r.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(e,o,d,a)}}},ScatterController:class extends Ea{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:a,yScale:n}=e,s=this.getParsed(t),o=a.getLabelForValue(s.x),r=n.getLabelForValue(s.y);return{label:i[t]||"",value:"("+o+", "+r+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,a=this.chart._animationsDisabled;let{start:n,count:s}=gt(e,i,a);if(this._drawStart=n,this._drawCount=s,mt(e)&&(n=0,s=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:n,_dataset:s}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!s._decimated,n.points=i;const o=this.resolveDatasetElementOptions(t);o.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:o},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,n,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r,_stacked:l,_dataset:c}=this._cachedMeta,d=this.resolveDataElementOptions(e,n),h=this.getSharedOptions(d),p=this.includeOptions(n,h),f=o.axis,u=r.axis,{spanGaps:g,segment:m}=this.options,_=B(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===n;let y=e>0&&this.getParsed(e-1);for(let d=e;d<e+i;++d){const e=t[d],i=this.getParsed(d),g=b?e:{},w=a(i[u]),x=g[f]=o.getPixelForValue(i[f],d),v=g[u]=s||w?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,i,l):i[u],d);g.skip=isNaN(x)||isNaN(v)||w,g.stop=d>0&&Math.abs(i[f]-y[f])>_,m&&(g.parsed=i,g.raw=c.data[d]),p&&(g.options=h||this.resolveDataElementOptions(d,e.active?"active":n)),b||this.updateElement(e,d,g,n),y=i}this.updateSharedOptions(h,n,d)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,a=i.options&&i.options.borderWidth||0;if(!e.length)return a;const n=e[0].size(this.resolveDataElementOptions(0)),s=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(a,n,s)/2}}});function zn(t,e,i,a){return{x:i+t*Math.cos(e),y:a+t*Math.sin(e)}}function Rn(t,e,i,a,n,s){const{x:o,y:r,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+a+i-c,0),p=d>0?d+a+i+c:0;let f=0;const u=n-l;if(a){const t=((d>0?d-a:0)+(h>0?h-a:0))/2;f=(u-(0!==t?u*t/(t+a):u))/2}const g=(u-Math.max(.001,u*h-i/P)/h)/2,m=l+g+f,_=n-g-f,{outerStart:b,outerEnd:y,innerStart:w,innerEnd:x}=function(t,e,i,a){const n=gi(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),s=(i-e)/2,o=Math.min(s,a*e/2),r=t=>{const e=(i-Math.min(s,t))*a/2;return Z(t,0,Math.min(s,e))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:Z(n.innerStart,0,o),innerEnd:Z(n.innerEnd,0,o)}}(e,p,h,_-m),v=h-b,k=h-y,$=m+b/v,C=_-y/k,S=p+w,M=p+x,D=m+w/S,T=_-x/M;if(t.beginPath(),s){const e=($+C)/2;if(t.arc(o,r,h,$,e),t.arc(o,r,h,e,C),y>0){const e=zn(k,C,o,r);t.arc(e.x,e.y,y,C,_+E)}const i=zn(M,_,o,r);if(t.lineTo(i.x,i.y),x>0){const e=zn(M,T,o,r);t.arc(e.x,e.y,x,_+E,T+Math.PI)}const a=(_-x/p+(m+w/p))/2;if(t.arc(o,r,p,_-x/p,a,!0),t.arc(o,r,p,a,m+w/p,!0),w>0){const e=zn(S,D,o,r);t.arc(e.x,e.y,w,D+Math.PI,m-E)}const n=zn(v,m,o,r);if(t.lineTo(n.x,n.y),b>0){const e=zn(v,$,o,r);t.arc(e.x,e.y,b,m-E,$)}}else{t.moveTo(o,r);const e=Math.cos($)*h+o,i=Math.sin($)*h+r;t.lineTo(e,i);const a=Math.cos(C)*h+o,n=Math.sin(C)*h+r;t.lineTo(a,n)}t.closePath()}function Fn(t,e,i=e){t.lineCap=l(i.borderCapStyle,e.borderCapStyle),t.setLineDash(l(i.borderDash,e.borderDash)),t.lineDashOffset=l(i.borderDashOffset,e.borderDashOffset),t.lineJoin=l(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=l(i.borderWidth,e.borderWidth),t.strokeStyle=l(i.borderColor,e.borderColor)}function jn(t,e,i){t.lineTo(i.x,i.y)}function Hn(t,e,i={}){const a=t.length,{start:n=0,end:s=a-1}=i,{start:o,end:r}=e,l=Math.max(n,o),c=Math.min(s,r),d=n<o&&s<o||n>r&&s>r;return{count:a,start:l,loop:e.loop,ilen:c<l&&!d?a+c-l:c-l}}function Bn(t,e,i,a){const{points:n,options:s}=e,{count:o,start:r,loop:l,ilen:c}=Hn(n,i,a),d=function(t){return t.stepped?Le:t.tension||"monotone"===t.cubicInterpolationMode?Ae:jn}(s);let h,p,f,{move:u=!0,reverse:g}=a||{};for(h=0;h<=c;++h)p=n[(r+(g?c-h:h))%o],p.skip||(u?(t.moveTo(p.x,p.y),u=!1):d(t,f,p,g,s.stepped),f=p);return l&&(p=n[(r+(g?c:0))%o],d(t,f,p,g,s.stepped)),!!l}function Nn(t,e,i,a){const n=e.points,{count:s,start:o,ilen:r}=Hn(n,i,a),{move:l=!0,reverse:c}=a||{};let d,h,p,f,u,g,m=0,_=0;const b=t=>(o+(c?r-t:t))%s,y=()=>{f!==u&&(t.lineTo(m,u),t.lineTo(m,f),t.lineTo(m,g))};for(l&&(h=n[b(0)],t.moveTo(h.x,h.y)),d=0;d<=r;++d){if(h=n[b(d)],h.skip)continue;const e=h.x,i=h.y,a=0|e;a===p?(i<f?f=i:i>u&&(u=i),m=(_*m+e)/++_):(y(),t.lineTo(e,i),p=a,_=0,f=u=i),g=i}y()}function Vn(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?Bn:Nn}const Wn="function"==typeof Path2D;class Un extends Ia{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const a=i.spanGaps?this._loop:this._fullLoop;ai(this._points,i,t,a,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Ti(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,a=t[e],n=this.points,s=Di(this,{property:e,start:a,end:a});if(!s.length)return;const o=[],r=function(t){return t.stepped?ci:t.tension||"monotone"===t.cubicInterpolationMode?di:li}(i);let l,c;for(l=0,c=s.length;l<c;++l){const{start:c,end:d}=s[l],h=n[c],p=n[d];if(h===p){o.push(h);continue}const f=r(h,p,Math.abs((a-h[e])/(p[e]-h[e])),i.stepped);f[e]=t[e],o.push(f)}return 1===o.length?o[0]:o}pathSegment(t,e,i){return Vn(this)(t,this,e,i)}path(t,e,i){const a=this.segments,n=Vn(this);let s=this._loop;e=e||0,i=i||this.points.length-e;for(const o of a)s&=n(t,this,o,{start:e,end:e+i-1});return!!s}draw(t,e,i,a){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),function(t,e,i,a){Wn&&!e.options.segment?function(t,e,i,a){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,a)&&n.closePath()),Fn(t,e.options),t.stroke(n)}(t,e,i,a):function(t,e,i,a){const{segments:n,options:s}=e,o=Vn(e);for(const r of n)Fn(t,s,r.style),t.beginPath(),o(t,e,r,{start:i,end:i+a-1})&&t.closePath(),t.stroke()}(t,e,i,a)}(t,this,i,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function qn(t,e,i,a){const n=t.options,{[i]:s}=t.getProps([i],a);return Math.abs(e-s)<n.radius+n.hitRadius}function Yn(t,e){const{x:i,y:a,base:n,width:s,height:o}=t.getProps(["x","y","base","width","height"],e);let r,l,c,d,h;return t.horizontal?(h=o/2,r=Math.min(i,n),l=Math.max(i,n),c=a-h,d=a+h):(h=s/2,r=i-h,l=i+h,c=Math.min(a,n),d=Math.max(a,n)),{left:r,top:c,right:l,bottom:d}}function Gn(t,e,i,a){return t?0:Z(e,i,a)}function Xn(t){const e=Yn(t),i=e.right-e.left,a=e.bottom-e.top,n=function(t,e,i){const a=t.options.borderWidth,n=t.borderSkipped,s=mi(a);return{t:Gn(n.top,s.top,0,i),r:Gn(n.right,s.right,0,e),b:Gn(n.bottom,s.bottom,0,i),l:Gn(n.left,s.left,0,e)}}(t,i/2,a/2),o=function(t,e,i){const{enableBorderRadius:a}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,o=_i(n),r=Math.min(e,i),l=t.borderSkipped,c=a||s(n);return{topLeft:Gn(!c||l.top||l.left,o.topLeft,0,r),topRight:Gn(!c||l.top||l.right,o.topRight,0,r),bottomLeft:Gn(!c||l.bottom||l.left,o.bottomLeft,0,r),bottomRight:Gn(!c||l.bottom||l.right,o.bottomRight,0,r)}}(t,i/2,a/2);return{outer:{x:e.left,y:e.top,w:i,h:a,radius:o},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:a-n.t-n.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,o.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(n.b,n.r))}}}}function Jn(t,e,i,a){const n=null===e,s=null===i,o=t&&!(n&&s)&&Yn(t,a);return o&&(n||tt(e,o.left,o.right))&&(s||tt(i,o.top,o.bottom))}function Kn(t,e){t.rect(e.x,e.y,e.w,e.h)}function Zn(t,e,i={}){const a=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,s=(t.x+t.w!==i.x+i.w?e:0)-a,o=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+a,y:t.y+n,w:t.w+s,h:t.h+o,radius:t.radius}}var Qn=Object.freeze({__proto__:null,ArcElement:class extends Ia{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const a=this.getProps(["x","y"],i),{angle:n,distance:s}=Y(a,{x:t,y:e}),{startAngle:o,endAngle:r,innerRadius:c,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),p=(this.options.spacing+this.options.borderWidth)/2,f=l(h,r-o),u=K(n,o,r)&&o!==r,g=f>=D||u,m=tt(s,c+p,d+p);return g&&m}getCenterPoint(t){const{x:e,y:i,startAngle:a,endAngle:n,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:r,spacing:l}=this.options,c=(a+n)/2,d=(s+o+l+r)/2;return{x:e+Math.cos(c)*d,y:i+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,a=(e.offset||0)/4,n=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>D?Math.floor(i/D):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const o=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(o)*a,Math.sin(o)*a);const r=a*(1-Math.sin(Math.min(P,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,a,n){const{fullCircles:s,startAngle:o,circumference:r}=e;let l=e.endAngle;if(s){Rn(t,e,i,a,l,n);for(let e=0;e<s;++e)t.fill();isNaN(r)||(l=o+(r%D||D))}Rn(t,e,i,a,l,n),t.fill()}(t,this,r,n,s),function(t,e,i,a,n){const{fullCircles:s,startAngle:o,circumference:r,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:h,borderDashOffset:p}=l,f="inner"===l.borderAlign;if(!c)return;t.setLineDash(h||[]),t.lineDashOffset=p,f?(t.lineWidth=2*c,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let u=e.endAngle;if(s){Rn(t,e,i,a,u,n);for(let e=0;e<s;++e)t.stroke();isNaN(r)||(u=o+(r%D||D))}f&&function(t,e,i){const{startAngle:a,pixelMargin:n,x:s,y:o,outerRadius:r,innerRadius:l}=e;let c=n/r;t.beginPath(),t.arc(s,o,r,a-c,i+c),l>n?(c=n/l,t.arc(s,o,l,i+c,a-c,!0)):t.arc(s,o,n,i+E,a-E),t.closePath(),t.clip()}(t,e,u),s||(Rn(t,e,i,a,u,n),t.stroke())}(t,this,r,n,s),t.restore()}},BarElement:class extends Ia{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:a}}=this,{inner:n,outer:s}=Xn(this),o=(r=s.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?ze:Kn;var r;t.save(),s.w===n.w&&s.h===n.h||(t.beginPath(),o(t,Zn(s,e,n)),t.clip(),o(t,Zn(n,-e,s)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),o(t,Zn(n,e)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,e,i){return Jn(this,t,e,i)}inXRange(t,e){return Jn(this,t,null,e)}inYRange(t,e){return Jn(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:a,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+a)/2:e,y:n?i:(i+a)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},LineElement:Un,PointElement:class extends Ia{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const a=this.options,{x:n,y:s}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-s,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(t,e){return qn(this,t,"x",e)}inYRange(t,e){return qn(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!Pe(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Se(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});function ts(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function es(t,e,{horizontal:i,minRotation:a}){const n=W(a),s=(i?Math.sin(n):Math.cos(n))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}class is extends Wa{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return a(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:a,max:n}=this;const s=t=>a=e?a:t,o=t=>n=i?n:t;if(t){const t=R(a),e=R(n);t<0&&e<0?o(0):t>0&&e>0&&s(0)}if(a===n){let e=0===n?1:Math.abs(.05*n);o(n+e),t||s(a-e)}this.min=a,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:a}=t;return a?(e=Math.ceil(this.max/a)-Math.floor(this.min/a)+1,e>1e3&&(e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:s,min:o,max:r,precision:l,count:c,maxTicks:d,maxDigits:h,includeBounds:p}=t,f=s||1,u=d-1,{min:g,max:m}=e,_=!a(o),b=!a(r),y=!a(c),w=(m-g)/(h+1);let x,v,k,$,C=j((m-g)/u/f)*f;if(C<1e-14&&!_&&!b)return[{value:g},{value:m}];$=Math.ceil(m/C)-Math.floor(g/C),$>u&&(C=j($*C/u/f)*f),a(l)||(x=Math.pow(10,l),C=Math.ceil(C*x)/x),"ticks"===n?(v=Math.floor(g/C)*C,k=Math.ceil(m/C)*C):(v=g,k=m),_&&b&&s&&N((r-o)/s,C/1e3)?($=Math.round(Math.min((r-o)/C,d)),C=(r-o)/$,v=o,k=r):y?(v=_?o:v,k=b?r:k,$=c-1,C=(k-v)/$):($=(k-v)/C,$=F($,Math.round($),C/1e3)?Math.round($):Math.ceil($));const S=Math.max(q(C),q(v));x=Math.pow(10,a(l)?S:l),v=Math.round(v*x)/x,k=Math.round(k*x)/x;let M=0;for(_&&(p&&v!==o?(i.push({value:o}),v<o&&M++,F(Math.round((v+M*C)*x)/x,o,es(o,w,t))&&M++):v<o&&M++);M<$;++M){const t=Math.round((v+M*C)*x)/x;if(b&&t>r)break;i.push({value:t})}return b&&p&&k!==r?i.length&&F(i[i.length-1].value,r,es(r,w,t))?i[i.length-1].value=r:i.push({value:r}):b&&k!==r||i.push({value:k}),i}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&V(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const a=(i-e)/Math.max(t.length-1,1)/2;e-=a,i+=a}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return te(t,this.chart.options.locale,this.options.ticks.format)}}class as extends is{static id="linear";static defaults={ticks:{callback:ie.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=o(t)?t:0,this.max=o(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=W(this.options.ticks.minRotation),a=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/a))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const ns=t=>Math.floor(z(t)),ss=(t,e)=>Math.pow(10,ns(t)+e);function os(t){return 1==t/Math.pow(10,ns(t))}function rs(t,e,i){const a=Math.pow(10,i),n=Math.floor(t/a);return Math.ceil(e/a)-n}class ls extends Wa{static id="logarithmic";static defaults={ticks:{callback:ie.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=is.prototype.parse.apply(this,[t,e]);if(0!==i)return o(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=o(t)?Math.max(0,t):null,this.max=o(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!o(this._userMin)&&(this.min=t===ss(this.min,0)?ss(this.min,-1):ss(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,a=this.max;const n=e=>i=t?i:e,s=t=>a=e?a:t;i===a&&(i<=0?(n(1),s(10)):(n(ss(i,-1)),s(ss(a,1)))),i<=0&&n(ss(a,-1)),a<=0&&s(ss(i,1)),this.min=i,this.max=a}buildTicks(){const t=this.options,e=function(t,{min:e,max:i}){e=r(t.min,e);const a=[],n=ns(e);let s=function(t,e){let i=ns(e-t);for(;rs(t,e,i)>10;)i++;for(;rs(t,e,i)<10;)i--;return Math.min(i,ns(t))}(e,i),o=s<0?Math.pow(10,Math.abs(s)):1;const l=Math.pow(10,s),c=n>s?Math.pow(10,n):0,d=Math.round((e-c)*o)/o,h=Math.floor((e-c)/l/10)*l*10;let p=Math.floor((d-h)/Math.pow(10,s)),f=r(t.min,Math.round((c+h+p*Math.pow(10,s))*o)/o);for(;f<i;)a.push({value:f,major:os(f),significand:p}),p>=10?p=p<15?15:20:p++,p>=20&&(s++,p=2,o=s>=0?1:o),f=Math.round((c+h+p*Math.pow(10,s))*o)/o;const u=r(t.max,f);return a.push({value:u,major:os(u),significand:p}),a}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&V(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":te(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=z(t),this._valueRange=z(this.max)-z(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(z(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function cs(t){const e=t.ticks;if(e.display&&t.display){const t=bi(e.backdropPadding);return l(e.font&&e.font.size,re.font.size)+t.height}return 0}function ds(t,e,i,a,n){return t===a||t===n?{start:e-i/2,end:e+i/2}:t<a||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function hs(t,e,i,a,n){const s=Math.abs(Math.sin(i)),o=Math.abs(Math.cos(i));let r=0,l=0;a.start<e.l?(r=(e.l-a.start)/s,t.l=Math.min(t.l,e.l-r)):a.end>e.r&&(r=(a.end-e.r)/s,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(l=(e.t-n.start)/o,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function ps(t,e,i){const a=t.drawingArea,{extra:n,additionalAngle:s,padding:o,size:r}=i,l=t.getPointPosition(e,a+n+o,s),c=Math.round(U(J(l.angle+E))),d=function(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}(l.y,r.h,c),h=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(c),p=function(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}(l.x,r.w,h);return{visible:!0,x:l.x,y:d,textAlign:h,left:p,top:d,right:p+r.w,bottom:d+r.h}}function fs(t,e){if(!e)return!0;const{left:i,top:a,right:n,bottom:s}=t;return!(Pe({x:i,y:a},e)||Pe({x:i,y:s},e)||Pe({x:n,y:a},e)||Pe({x:n,y:s},e))}function us(t,e,i){const{left:n,top:s,right:o,bottom:r}=i,{backdropColor:l}=e;if(!a(l)){const i=_i(e.borderRadius),a=bi(e.backdropPadding);t.fillStyle=l;const c=n-a.left,d=s-a.top,h=o-n+a.width,p=r-s+a.height;Object.values(i).some((t=>0!==t))?(t.beginPath(),ze(t,{x:c,y:d,w:h,h:p,radius:i}),t.fill()):t.fillRect(c,d,h,p)}}function gs(t,e,i,a){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,D);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let s=1;s<a;s++)i=t.getPointPosition(s,e),n.lineTo(i.x,i.y)}}class ms extends is{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ie.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=bi(cs(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=o(t)&&!isNaN(t)?t:0,this.max=o(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/cs(this.options))}generateTickLabels(t){is.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=h(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),a=[],s=[],o=t._pointLabels.length,r=t.options.pointLabels,l=r.centerPointLabels?P/o:0;for(let p=0;p<o;p++){const o=r.setContext(t.getPointLabelContext(p));s[p]=o.padding;const f=t.getPointPosition(p,t.drawingArea+s[p],l),u=yi(o.font),g=(c=t.ctx,d=u,h=n(h=t._pointLabels[p])?h:[h],{w:ke(c,d.string,h),h:h.length*d.lineHeight});a[p]=g;const m=J(t.getIndexAngle(p)+l),_=Math.round(U(m));hs(i,e,m,ds(_,f.x,g.w,0,180),ds(_,f.y,g.h,90,270))}var c,d,h;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const a=[],n=t._pointLabels.length,s=t.options,{centerPointLabels:o,display:r}=s.pointLabels,l={extra:cs(s)/2,additionalAngle:o?P/n:0};let c;for(let s=0;s<n;s++){l.padding=i[s],l.size=e[s];const n=ps(t,s,l);a.push(n),"auto"===r&&(n.visible=fs(n,c),n.visible&&(c=n))}return a}(t,a,s)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,a){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,a))}getIndexAngle(t){return J(t*(D/(this._pointLabels.length||1))+W(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(a(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(a(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return vi(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const a=this.getIndexAngle(t)-E+i;return{x:Math.cos(a)*e+this.xCenter,y:Math.sin(a)*e+this.yCenter,angle:a}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:a,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:a,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),gs(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:a,border:n}=e,s=this._pointLabels.length;let o,r,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:a}}=t;for(let n=e-1;n>=0;n--){const e=t._pointLabelItems[n];if(!e.visible)continue;const s=a.setContext(t.getPointLabelContext(n));us(i,s,e);const o=yi(s.font),{x:r,y:l,textAlign:c}=e;Oe(i,t._pointLabels[n],r,l+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),a.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){r=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),o=a.setContext(i),l=n.setContext(i);!function(t,e,i,a,n){const s=t.ctx,o=e.circular,{color:r,lineWidth:l}=e;!o&&!a||!r||!l||i<0||(s.save(),s.strokeStyle=r,s.lineWidth=l,s.setLineDash(n.dash||[]),s.lineDashOffset=n.dashOffset,s.beginPath(),gs(t,i,o,a),s.closePath(),s.stroke(),s.restore())}(this,o,r,s,l)}})),i.display){for(t.save(),o=s-1;o>=0;o--){const a=i.setContext(this.getPointLabelContext(o)),{color:n,lineWidth:s}=a;s&&n&&(t.lineWidth=s,t.strokeStyle=n,t.setLineDash(a.borderDash),t.lineDashOffset=a.borderDashOffset,r=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const a=this.getIndexAngle(0);let n,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((a,o)=>{if(0===o&&this.min>=0&&!e.reverse)return;const r=i.setContext(this.getContext(o)),l=yi(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[o].value),r.showLabelBackdrop){t.font=l.string,s=t.measureText(a.label).width,t.fillStyle=r.backdropColor;const e=bi(r.backdropPadding);t.fillRect(-s/2-e.left,-n-l.size/2-e.top,s+e.width,l.size+e.height)}Oe(t,a.label,0,-n,l,{color:r.color,strokeColor:r.textStrokeColor,strokeWidth:r.textStrokeWidth})})),t.restore()}drawTitle(){}}const _s={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bs=Object.keys(_s);function ys(t,e){return t-e}function ws(t,e){if(a(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:r}=t._parseOpts;let l=e;return"function"==typeof n&&(l=n(l)),o(l)||(l="string"==typeof n?i.parse(l,n):i.parse(l)),null===l?null:(s&&(l="week"!==s||!B(r)&&!0!==r?i.startOf(l,s):i.startOf(l,"isoWeek",r)),+l)}function xs(t,e,i,a){const n=bs.length;for(let s=bs.indexOf(t);s<n-1;++s){const t=_s[bs[s]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=a)return bs[s]}return bs[n-1]}function vs(t,e,i){if(i){if(i.length){const{lo:a,hi:n}=et(i,e);t[i[a]>=e?i[a]:i[n]]=!0}}else t[e]=!0}function ks(t,e,i){const a=[],n={},s=e.length;let o,r;for(o=0;o<s;++o)r=e[o],n[r]=o,a.push({value:r,major:!1});return 0!==s&&i?function(t,e,i,a){const n=t._adapter,s=+n.startOf(e[0].value,a),o=e[e.length-1].value;let r,l;for(r=s;r<=o;r=+n.add(r,1,a))l=i[r],l>=0&&(e[l].major=!0);return e}(t,a,n,i):a}class $s extends Wa{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),a=this._adapter=new $n._date(t.adapters.date);a.init(e),b(i.displayFormats,a.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:ws(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:a,max:n,minDefined:s,maxDefined:r}=this.getUserBounds();function l(t){s||isNaN(t.min)||(a=Math.min(a,t.min)),r||isNaN(t.max)||(n=Math.max(n,t.max))}s&&r||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),a=o(a)&&!isNaN(a)?a:+e.startOf(Date.now(),i),n=o(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(a,n-1),this.max=Math.max(a+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,a="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const n=this.min,s=nt(a,n,this.max);return this._unit=e.unit||(i.autoSkip?xs(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,a,n){for(let s=bs.length-1;s>=bs.indexOf(i);s--){const i=bs[s];if(_s[i].common&&t._adapter.diff(n,a,i)>=e-1)return i}return bs[i?bs.indexOf(i):0]}(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=bs.indexOf(t)+1,i=bs.length;e<i;++e)if(_s[bs[e]].common)return bs[e]}(this._unit):void 0,this.initOffsets(a),t.reverse&&s.reverse(),ks(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,a=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),a=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;a=Z(a,0,s),n=Z(n,0,s),this._offsets={start:a,end:n,factor:1/(a+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,a=this.options,n=a.time,s=n.unit||xs(n.minUnit,e,i,this._getLabelCapacity(e)),o=l(a.ticks.stepSize,1),r="week"===s&&n.isoWeekday,c=B(r)||!0===r,d={};let h,p,f=e;if(c&&(f=+t.startOf(f,"isoWeek",r)),f=+t.startOf(f,c?"day":s),t.diff(i,e,s)>1e5*o)throw new Error(e+" and "+i+" are too far apart with stepSize of "+o+" "+s);const u="data"===a.ticks.source&&this.getDataTimestamps();for(h=f,p=0;h<i;h=+t.add(h,o,s),p++)vs(d,h,u);return h!==i&&"ticks"!==a.bounds&&1!==p||vs(d,h,u),Object.keys(d).sort(ys).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,a=this._unit,n=e||i[a];return this._adapter.format(t,n)}_tickFormatFunction(t,e,i,a){const n=this.options,s=n.ticks.callback;if(s)return h(s,[t,e,i],this);const o=n.time.displayFormats,r=this._unit,l=this._majorUnit,c=r&&o[r],d=l&&o[l],p=i[e],f=l&&d&&p&&p.major;return this._adapter.format(t,a||(f?d:c))}generateTickLabels(t){let e,i,a;for(e=0,i=t.length;e<i;++e)a=t[e],a.label=this._tickFormatFunction(a.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,a=W(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(a),s=Math.sin(a),o=this._resolveTickFontOptions(0).size;return{w:i*n+o*s,h:i*s+o*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,a=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,ks(this,[t],this._majorUnit),a),s=this._getLabelSize(n),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(t=0,e=a.length;t<e;++t)i=i.concat(a[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const a=this.getLabels();for(e=0,i=a.length;e<i;++e)t.push(ws(this,a[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return lt(t.sort(ys))}}function Cs(t,e,i){let a,n,s,o,r=0,l=t.length-1;i?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=it(t,"pos",e)),({pos:a,time:s}=t[r]),({pos:n,time:o}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=it(t,"time",e)),({time:a,pos:s}=t[r]),({time:n,pos:o}=t[l]));const c=n-a;return c?s+(o-s)*(e-a)/c:s}var Ss=Object.freeze({__proto__:null,CategoryScale:class extends Wa{static id="category";static defaults={ticks:{callback:ts}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:a}of e)t[i]===a&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(a(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:Z(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,i,a){const n=t.indexOf(e);return-1===n?((t,e,i,a)=>("string"==typeof e?(i=t.push(e)-1,a.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,a):n!==t.lastIndexOf(e)?i:n}(i,t,l(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:a}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(a=this.getLabels().length-1)),this.min=i,this.max=a}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,a=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)a.push({value:i});return a}getLabelForValue(t){return ts.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:as,LogarithmicScale:ls,RadialLinearScale:ms,TimeScale:$s,TimeSeriesScale:class extends $s{static id="timeseries";static defaults=$s.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Cs(e,this.min),this._tableRange=Cs(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,a=[],n=[];let s,o,r,l,c;for(s=0,o=t.length;s<o;++s)l=t[s],l>=e&&l<=i&&a.push(l);if(a.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(s=0,o=a.length;s<o;++s)c=a[s+1],r=a[s-1],l=a[s],Math.round((c+r)/2)!==l&&n.push({time:l,pos:s/(o-1)});return n}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return i.includes(t)&&i.length||i.splice(0,0,t),i.includes(e)&&1!==i.length||i.push(e),i.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Cs(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Cs(this._table,i*this._tableRange+this._minPos,!0)}}});const Ms=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Ps=Ms.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Ds(t){return Ms[t%Ms.length]}function Ts(t){return Ps[t%Ps.length]}function Ls(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var As={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:a},options:n}=t.config,{elements:s}=n,o=Ls(a)||(r=n)&&(r.borderColor||r.backgroundColor)||s&&Ls(s)||"rgba(0,0,0,0.1)"!==re.borderColor||"rgba(0,0,0,0.1)"!==re.backgroundColor;var r;if(!i.forceOverride&&o)return;const l=function(t){let e=0;return(i,a)=>{const n=t.getDatasetMeta(a).controller;n instanceof En?e=function(t,e){return t.backgroundColor=t.data.map((()=>Ds(e++))),e}(i,e):n instanceof In?e=function(t,e){return t.backgroundColor=t.data.map((()=>Ts(e++))),e}(i,e):n&&(e=function(t,e){return t.borderColor=Ds(e),t.backgroundColor=Ts(e),++e}(i,e))}}(t);a.forEach(l)}};function Es(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Is(t){t.data.datasets.forEach((t=>{Es(t)}))}var Os={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Is(t);const n=t.width;t.data.datasets.forEach(((e,s)=>{const{_data:o,indexAxis:r}=e,l=t.getDatasetMeta(s),c=o||e.data;if("y"===wi([r,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const d=t.scales[l.xAxisID];if("linear"!==d.type&&"time"!==d.type)return;if(t.options.parsing)return;let h,{start:p,count:f}=function(t,e){const i=e.length;let a,n=0;const{iScale:s}=t,{min:o,max:r,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(n=Z(it(e,s.axis,o).lo,0,i-1)),a=c?Z(it(e,s.axis,r).hi+1,n,i)-n:i-n,{start:n,count:a}}(l,c);if(f<=(i.threshold||4*n))Es(e);else{switch(a(o)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":h=function(t,e,i,a,n){const s=n.samples||a;if(s>=i)return t.slice(e,e+i);const o=[],r=(i-2)/(s-2);let l=0;const c=e+i-1;let d,h,p,f,u,g=e;for(o[l++]=t[g],d=0;d<s-2;d++){let a,n=0,s=0;const c=Math.floor((d+1)*r)+1+e,m=Math.min(Math.floor((d+2)*r)+1,i)+e,_=m-c;for(a=c;a<m;a++)n+=t[a].x,s+=t[a].y;n/=_,s/=_;const b=Math.floor(d*r)+1+e,y=Math.min(Math.floor((d+1)*r)+1,i)+e,{x:w,y:x}=t[g];for(p=f=-1,a=b;a<y;a++)f=.5*Math.abs((w-n)*(t[a].y-x)-(w-t[a].x)*(s-x)),f>p&&(p=f,h=t[a],u=a);o[l++]=h,g=u}return o[l++]=t[c],o}(c,p,f,n,i);break;case"min-max":h=function(t,e,i,n){let s,o,r,l,c,d,h,p,f,u,g=0,m=0;const _=[],b=e+i-1,y=t[e].x,w=t[b].x-y;for(s=e;s<e+i;++s){o=t[s],r=(o.x-y)/w*n,l=o.y;const e=0|r;if(e===c)l<f?(f=l,d=s):l>u&&(u=l,h=s),g=(m*g+o.x)/++m;else{const i=s-1;if(!a(d)&&!a(h)){const e=Math.min(d,h),a=Math.max(d,h);e!==p&&e!==i&&_.push({...t[e],x:g}),a!==p&&a!==i&&_.push({...t[a],x:g})}s>0&&i!==p&&_.push(t[i]),_.push(o),c=e,m=0,f=u=l,d=h=p=s}}return _}(c,p,f,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=h}}))},destroy(t){Is(t)}};function zs(t,e,i,a){if(a)return;let n=e[t],s=i[t];return"angle"===t&&(n=J(n),s=J(s)),{property:t,start:n,end:s}}function Rs(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Fs(t,e,i,a){return t&&e?a(t[i],e[i]):t?t[i]:e?e[i]:0}function js(t,e){let i=[],a=!1;return n(t)?(a=!0,i=t):i=function(t,e){const{x:i=null,y:a=null}=t||{},n=e.points,s=[];return e.segments.forEach((({start:t,end:e})=>{e=Rs(t,e,n);const o=n[t],r=n[e];null!==a?(s.push({x:o.x,y:a}),s.push({x:r.x,y:a})):null!==i&&(s.push({x:i,y:o.y}),s.push({x:i,y:r.y}))})),s}(t,e),i.length?new Un({points:i,options:{tension:0},_loop:a,_fullLoop:a}):null}function Hs(t){return t&&!1!==t.fill}function Bs(t,e,i){let a=t[e].fill;const n=[e];let s;if(!i)return a;for(;!1!==a&&-1===n.indexOf(a);){if(!o(a))return a;if(s=t[a],!s)return!1;if(s.visible)return a;n.push(a),a=s.fill}return!1}function Ns(t,e,i){const a=function(t){const e=t.options,i=e.fill;let a=l(i&&i.target,i);return void 0===a&&(a=!!e.backgroundColor),!1!==a&&null!==a&&(!0===a?"origin":a)}(t);if(s(a))return!isNaN(a.value)&&a;let n=parseFloat(a);return o(n)&&Math.floor(n)===n?function(t,e,i,a){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=a)&&i}(a[0],e,n,i):["origin","start","end","stack","shape"].indexOf(a)>=0&&a}function Vs(t,e,i){const a=[];for(let n=0;n<i.length;n++){const s=i[n],{first:o,last:r,point:l}=Ws(s,e,"x");if(!(!l||o&&r))if(o)a.unshift(l);else if(t.push(l),!r)break}t.push(...a)}function Ws(t,e,i){const a=t.interpolate(e,i);if(!a)return{};const n=a[i],s=t.segments,o=t.points;let r=!1,l=!1;for(let t=0;t<s.length;t++){const e=s[t],a=o[e.start][i],c=o[e.end][i];if(tt(n,a,c)){r=n===a,l=n===c;break}}return{first:r,last:l,point:a}}class Us{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:a,y:n,radius:s}=this;return e=e||{start:0,end:D},t.arc(a,n,s,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:a}=this,n=t.angle;return{x:e+Math.cos(n)*a,y:i+Math.sin(n)*a,angle:n}}}function qs(t){const{chart:e,fill:i,line:a}=t;if(o(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:a}=t,n=[],s=a.segments,o=a.points,r=function(t,e){const i=[],a=t.getMatchingVisibleMetas("line");for(let t=0;t<a.length;t++){const n=a[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);r.push(js({x:null,y:e.bottom},a));for(let t=0;t<s.length;t++){const e=s[t];for(let t=e.start;t<=e.end;t++)Vs(n,o[t],r)}return new Un({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,a=e.options,n=e.getLabels().length,o=a.reverse?e.max:e.min,r=function(t,e,i){let a;return a="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:s(t)?t.value:e.getBaseValue(),a}(i,e,o),l=[];if(a.grid.circular){const t=e.getPointPositionForValue(0,o);return new Us({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<n;++t)l.push(e.getPointPositionForValue(t,r));return l}(t):function(t){const{scale:e={},fill:i}=t,a=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:s(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(o(a)){const t=e.isHorizontal();return{x:t?a:null,y:t?null:a}}return null}(t)}(t);return n instanceof Us?n:js(n,a)}function Ys(t,e,i){const a=qs(e),{line:n,scale:s,axis:o}=e,r=n.options,l=r.fill,c=r.backgroundColor,{above:d=c,below:h=c}=l||{};a&&n.points.length&&(De(t,i),function(t,e){const{line:i,target:a,above:n,below:s,area:o,scale:r}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&s!==n&&(Gs(t,a,o.top),Xs(t,{line:i,target:a,color:n,scale:r,property:l}),t.restore(),t.save(),Gs(t,a,o.bottom)),Xs(t,{line:i,target:a,color:s,scale:r,property:l}),t.restore()}(t,{line:n,target:a,above:d,below:h,area:i,scale:s,axis:o}),Te(t))}function Gs(t,e,i){const{segments:a,points:n}=e;let s=!0,o=!1;t.beginPath();for(const r of a){const{start:a,end:l}=r,c=n[a],d=n[Rs(a,l,n)];s?(t.moveTo(c.x,c.y),s=!1):(t.lineTo(c.x,i),t.lineTo(c.x,c.y)),o=!!e.pathSegment(t,r,{move:o}),o?t.closePath():t.lineTo(d.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Xs(t,e){const{line:i,target:a,property:n,color:s,scale:o}=e,r=function(t,e,i){const a=t.segments,n=t.points,s=e.points,o=[];for(const t of a){let{start:a,end:r}=t;r=Rs(a,r,n);const l=zs(i,n[a],n[r],t.loop);if(!e.segments){o.push({source:t,target:l,start:n[a],end:n[r]});continue}const c=Di(e,l);for(const e of c){const a=zs(i,s[e.start],s[e.end],e.loop),r=Pi(t,n,a);for(const t of r)o.push({source:t,target:e,start:{[i]:Fs(l,a,"start",Math.max)},end:{[i]:Fs(l,a,"end",Math.min)}})}}return o}(i,a,n);for(const{source:e,target:l,start:c,end:d}of r){const{style:{backgroundColor:r=s}={}}=e,h=!0!==a;t.save(),t.fillStyle=r,Js(t,o,h&&zs(n,c,d)),t.beginPath();const p=!!i.pathSegment(t,e);let f;if(h){p?t.closePath():Ks(t,a,d,n);const e=!!a.pathSegment(t,l,{move:p,reverse:!0});f=p&&e,f||Ks(t,a,c,n)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function Js(t,e,i){const{top:a,bottom:n}=e.chart.chartArea,{property:s,start:o,end:r}=i||{};"x"===s&&(t.beginPath(),t.rect(o,a,r-o,n-a),t.clip())}function Ks(t,e,i,a){const n=e.interpolate(i,a);n&&t.lineTo(n.x,n.y)}var Zs={id:"filler",afterDatasetsUpdate(t,e,i){const a=(t.data.datasets||[]).length,n=[];let s,o,r,l;for(o=0;o<a;++o)s=t.getDatasetMeta(o),r=s.dataset,l=null,r&&r.options&&r instanceof Un&&(l={visible:t.isDatasetVisible(o),index:o,fill:Ns(r,o,a),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:r}),s.$filler=l,n.push(l);for(o=0;o<a;++o)l=n[o],l&&!1!==l.fill&&(l.fill=Bs(n,o,i.propagate))},beforeDraw(t,e,i){const a="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(s,i.axis),a&&i.fill&&Ys(t.ctx,i,s))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const a=t.getSortedVisibleDatasetMetas();for(let e=a.length-1;e>=0;--e){const i=a[e].$filler;Hs(i)&&Ys(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const a=e.meta.$filler;Hs(a)&&"beforeDatasetDraw"===i.drawTime&&Ys(t.ctx,a,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Qs=(t,e)=>{let{boxHeight:i=e,boxWidth:a=e}=t;return t.usePointStyle&&(i=Math.min(i,e),a=t.pointStyleWidth||Math.min(a,e)),{boxWidth:a,boxHeight:i,itemHeight:Math.max(e,i)}};class to extends Ia{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=h(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,a=yi(i.font),n=a.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:r}=Qs(i,n);let l,c;e.font=a.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(s,n,o,r)+10):(c=this.maxHeight,l=this._fitCols(s,a,o,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,a){const{ctx:n,maxWidth:s,options:{labels:{padding:o}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=a+o;let d=t;n.textAlign="left",n.textBaseline="middle";let h=-1,p=-c;return this.legendItems.forEach(((t,f)=>{const u=i+e/2+n.measureText(t.text).width;(0===f||l[l.length-1]+u+2*o>s)&&(d+=c,l[l.length-(f>0?0:1)]=0,p+=c,h++),r[f]={left:0,top:p,row:h,width:u,height:a},l[l.length-1]+=u+o})),d}_fitCols(t,e,i,a){const{ctx:n,maxHeight:s,options:{labels:{padding:o}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=s-t;let d=o,h=0,p=0,f=0,u=0;return this.legendItems.forEach(((t,s)=>{const{itemWidth:g,itemHeight:m}=function(t,e,i,a,n){const s=function(t,e,i,a){let n=t.text;return n&&"string"!=typeof n&&(n=n.reduce(((t,e)=>t.length>e.length?t:e))),e+i.size/2+a.measureText(n).width}(a,t,e,i),o=function(t,e,i){let a=t;return"string"!=typeof e.text&&(a=eo(e,i)),a}(n,a,e.lineHeight);return{itemWidth:s,itemHeight:o}}(i,e,n,t,a);s>0&&p+m+2*o>c&&(d+=h+o,l.push({width:h,height:p}),f+=h+o,u++,h=p=0),r[s]={left:f,top:p,col:u,width:g,height:m},h=Math.max(h,g),p+=m+o})),d+=h,l.push({width:h,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:a},rtl:n}}=this,s=ki(n,this.left,this.width);if(this.isHorizontal()){let n=0,o=ft(i,this.left+a,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,o=ft(i,this.left+a,this.right-this.lineWidths[n])),r.top+=this.top+t+a,r.left=s.leftForLtr(s.x(o),r.width),o+=r.width+a}else{let n=0,o=ft(i,this.top+t+a,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,o=ft(i,this.top+t+a,this.bottom-this.columnSizes[n].height)),r.top=o,r.left+=this.left+a,r.left=s.leftForLtr(s.x(r.left),r.width),o+=r.height+a}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;De(t,this),this._draw(),Te(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:a}=this,{align:n,labels:s}=t,o=re.color,r=ki(t.rtl,this.left,this.width),c=yi(s.font),{padding:d}=s,h=c.size,p=h/2;let f;this.drawTitle(),a.textAlign=r.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;const{boxWidth:u,boxHeight:g,itemHeight:m}=Qs(s,h),_=this.isHorizontal(),b=this._computeTitleHeight();f=_?{x:ft(n,this.left+d,this.right-i[0]),y:this.top+d+b,line:0}:{x:this.left+d,y:ft(n,this.top+b+d,this.bottom-e[0].height),line:0},$i(this.ctx,t.textDirection);const y=m+d;this.legendItems.forEach(((w,x)=>{a.strokeStyle=w.fontColor,a.fillStyle=w.fontColor;const v=a.measureText(w.text).width,k=r.textAlign(w.textAlign||(w.textAlign=s.textAlign)),$=u+p+v;let C=f.x,S=f.y;if(r.setWidth(this.width),_?x>0&&C+$+d>this.right&&(S=f.y+=y,f.line++,C=f.x=ft(n,this.left+d,this.right-i[f.line])):x>0&&S+y>this.bottom&&(C=f.x=C+e[f.line].width+d,f.line++,S=f.y=ft(n,this.top+b+d,this.bottom-e[f.line].height)),function(t,e,i){if(isNaN(u)||u<=0||isNaN(g)||g<0)return;a.save();const n=l(i.lineWidth,1);if(a.fillStyle=l(i.fillStyle,o),a.lineCap=l(i.lineCap,"butt"),a.lineDashOffset=l(i.lineDashOffset,0),a.lineJoin=l(i.lineJoin,"miter"),a.lineWidth=n,a.strokeStyle=l(i.strokeStyle,o),a.setLineDash(l(i.lineDash,[])),s.usePointStyle){const o={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=r.xPlus(t,u/2);Me(a,o,l,e+p,s.pointStyleWidth&&u)}else{const s=e+Math.max((h-g)/2,0),o=r.leftForLtr(t,u),l=_i(i.borderRadius);a.beginPath(),Object.values(l).some((t=>0!==t))?ze(a,{x:o,y:s,w:u,h:g,radius:l}):a.rect(o,s,u,g),a.fill(),0!==n&&a.stroke()}a.restore()}(r.x(C),S,w),C=ut(k,C+u+p,_?C+$:this.right,t.rtl),function(t,e,i){Oe(a,i.text,t,e+m/2,c,{strikethrough:i.hidden,textAlign:r.textAlign(i.textAlign)})}(r.x(C),S,w),_)f.x+=$+d;else if("string"!=typeof w.text){const t=c.lineHeight;f.y+=eo(w,t)+d}else f.y+=y})),Ci(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=yi(e.font),a=bi(e.padding);if(!e.display)return;const n=ki(t.rtl,this.left,this.width),s=this.ctx,o=e.position,r=i.size/2,l=a.top+r;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=ft(t.align,d,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+ft(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const p=ft(o,d,d+h);s.textAlign=n.textAlign(pt(o)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=i.string,Oe(s,e.text,p,c,i)}_computeTitleHeight(){const t=this.options.title,e=yi(t.font),i=bi(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,a,n;if(tt(t,this.left,this.right)&&tt(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(a=n[i],tt(t,a.left,a.left+a.width)&&tt(e,a.top,a.top+a.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const s=this._hoveredItem,o=(n=i,null!==(a=s)&&null!==n&&a.datasetIndex===n.datasetIndex&&a.index===n.index);s&&!o&&h(e.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!o&&h(e.onHover,[t,i,this],this)}else i&&h(e.onClick,[t,i,this],this);var a,n}}function eo(t,e){return e*(t.text?t.text.length:0)}var io={id:"legend",_element:to,start(t,e,i){const a=t.legend=new to({ctx:t.ctx,options:i,chart:t});Zi.configure(t,a,i),Zi.addBox(t,a)},stop(t){Zi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const a=t.legend;Zi.configure(t,a,i),a.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const a=e.datasetIndex,n=i.chart;n.isDatasetVisible(a)?(n.hide(a),e.hidden=!0):(n.show(a),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:a,textAlign:n,color:s,useBorderRadius:o,borderRadius:r}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(i?0:void 0),c=bi(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:s,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:a||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:o&&(r||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class ao extends Ia{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const a=n(i.text)?i.text.length:1;this._padding=bi(i.padding);const s=a*yi(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:a,right:n,options:s}=this,o=s.align;let r,l,c,d=0;return this.isHorizontal()?(l=ft(o,i,n),c=e+t,r=n-i):("left"===s.position?(l=i+t,c=ft(o,a,e),d=-.5*P):(l=n-t,c=ft(o,e,a),d=.5*P),r=a-e),{titleX:l,titleY:c,maxWidth:r,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=yi(e.font),a=i.lineHeight/2+this._padding.top,{titleX:n,titleY:s,maxWidth:o,rotation:r}=this._drawArgs(a);Oe(t,e.text,0,0,i,{color:e.color,maxWidth:o,rotation:r,textAlign:pt(e.align),textBaseline:"middle",translation:[n,s]})}}var no={id:"title",_element:ao,start(t,e,i){!function(t,e){const i=new ao({ctx:t.ctx,options:e,chart:t});Zi.configure(t,i,e),Zi.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Zi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const a=t.titleBlock;Zi.configure(t,a,i),a.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const so=new WeakMap;var oo={id:"subtitle",start(t,e,i){const a=new ao({ctx:t.ctx,options:i,chart:t});Zi.configure(t,a,i),Zi.addBox(t,a),so.set(t,a)},stop(t){Zi.removeBox(t,so.get(t)),so.delete(t)},beforeUpdate(t,e,i){const a=so.get(t);Zi.configure(t,a,i),a.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ro={average(t){if(!t.length)return!1;let e,i,a=new Set,n=0,s=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();a.add(t.x),n+=t.y,++s}}return 0!==s&&0!==a.size&&{x:[...a].reduce(((t,e)=>t+e))/a.size,y:n/s}},nearest(t,e){if(!t.length)return!1;let i,a,n,s=e.x,o=e.y,r=Number.POSITIVE_INFINITY;for(i=0,a=t.length;i<a;++i){const a=t[i].element;if(a&&a.hasValue()){const t=G(e,a.getCenterPoint());t<r&&(r=t,n=a)}}if(n){const t=n.tooltipPosition();s=t.x,o=t.y}return{x:s,y:o}}};function lo(t,e){return e&&(n(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function co(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function ho(t,e){const{element:i,datasetIndex:a,index:n}=e,s=t.getDatasetMeta(a).controller,{label:o,value:r}=s.getLabelAndValue(n);return{chart:t,label:o,parsed:s.getParsed(n),raw:t.data.datasets[a].data[n],formattedValue:r,dataset:s.getDataset(),dataIndex:n,datasetIndex:a,element:i}}function po(t,e){const i=t.chart.ctx,{body:a,footer:n,title:s}=t,{boxWidth:o,boxHeight:r}=e,l=yi(e.bodyFont),c=yi(e.titleFont),d=yi(e.footerFont),h=s.length,f=n.length,u=a.length,g=bi(e.padding);let m=g.height,_=0,b=a.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b&&(m+=u*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(b-u)*l.lineHeight+(b-1)*e.bodySpacing),f&&(m+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const w=function(t){_=Math.max(_,i.measureText(t).width+y)};return i.save(),i.font=c.string,p(t.title,w),i.font=l.string,p(t.beforeBody.concat(t.afterBody),w),y=e.displayColors?o+2+e.boxPadding:0,p(a,(t=>{p(t.before,w),p(t.lines,w),p(t.after,w)})),y=0,i.font=d.string,p(t.footer,w),i.restore(),_+=g.width,{width:_,height:m}}function fo(t,e,i,a){const{x:n,width:s}=i,{width:o,chartArea:{left:r,right:l}}=t;let c="center";return"center"===a?c=n<=(r+l)/2?"left":"right":n<=s/2?c="left":n>=o-s/2&&(c="right"),function(t,e,i,a){const{x:n,width:s}=a,o=i.caretSize+i.caretPadding;return"left"===t&&n+s+o>e.width||"right"===t&&n-s-o<0||void 0}(c,t,e,i)&&(c="center"),c}function uo(t,e,i){const a=i.yAlign||e.yAlign||function(t,e){const{y:i,height:a}=e;return i<a/2?"top":i>t.height-a/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||fo(t,e,i,a),yAlign:a}}function go(t,e,i,a){const{caretSize:n,caretPadding:s,cornerRadius:o}=t,{xAlign:r,yAlign:l}=i,c=n+s,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:f}=_i(o);let u=function(t,e){let{x:i,width:a}=t;return"right"===e?i-=a:"center"===e&&(i-=a/2),i}(e,r);const g=function(t,e,i){let{y:a,height:n}=t;return"top"===e?a+=i:a-="bottom"===e?n+i:n/2,a}(e,l,c);return"center"===l?"left"===r?u+=c:"right"===r&&(u-=c):"left"===r?u-=Math.max(d,p)+n:"right"===r&&(u+=Math.max(h,f)+n),{x:Z(u,0,a.width-e.width),y:Z(g,0,a.height-e.height)}}function mo(t,e,i){const a=bi(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-a.right:t.x+a.left}function _o(t){return lo([],co(t))}function bo(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const yo={beforeTitle:e,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,a=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(a>0&&e.dataIndex<a)return i[e.dataIndex]}return""},afterTitle:e,beforeBody:e,beforeLabel:e,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return a(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:e,afterBody:e,beforeFooter:e,footer:e,afterFooter:e};function wo(t,e,i,a){const n=t[e].call(i,a);return void 0===n?yo[e].call(i,a):n}class xo extends Ia{static positioners=ro;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),a=i.enabled&&e.options.animation&&i.animations,n=new xa(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(this,vi(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e,a=wo(i,"beforeTitle",this,t),n=wo(i,"title",this,t),s=wo(i,"afterTitle",this,t);let o=[];return o=lo(o,co(a)),o=lo(o,co(n)),o=lo(o,co(s)),o}getBeforeBody(t,e){return _o(wo(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,a=[];return p(t,(t=>{const e={before:[],lines:[],after:[]},n=bo(i,t);lo(e.before,co(wo(n,"beforeLabel",this,t))),lo(e.lines,wo(n,"label",this,t)),lo(e.after,co(wo(n,"afterLabel",this,t))),a.push(e)})),a}getAfterBody(t,e){return _o(wo(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,a=wo(i,"beforeFooter",this,t),n=wo(i,"footer",this,t),s=wo(i,"afterFooter",this,t);let o=[];return o=lo(o,co(a)),o=lo(o,co(n)),o=lo(o,co(s)),o}_createItems(t){const e=this._active,i=this.chart.data,a=[],n=[],s=[];let o,r,l=[];for(o=0,r=e.length;o<r;++o)l.push(ho(this.chart,e[o]));return t.filter&&(l=l.filter(((e,a,n)=>t.filter(e,a,n,i)))),t.itemSort&&(l=l.sort(((e,a)=>t.itemSort(e,a,i)))),p(l,(e=>{const i=bo(t.callbacks,e);a.push(wo(i,"labelColor",this,e)),n.push(wo(i,"labelPointStyle",this,e)),s.push(wo(i,"labelTextColor",this,e))})),this.labelColors=a,this.labelPointStyles=n,this.labelTextColors=s,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),a=this._active;let n,s=[];if(a.length){const t=ro[i.position].call(this,a,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const e=this._size=po(this,i),o=Object.assign({},t,e),r=uo(this.chart,i,o),l=go(i,o,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=s,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,a){const n=this.getCaretPosition(t,i,a);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:a,yAlign:n}=this,{caretSize:s,cornerRadius:o}=i,{topLeft:r,topRight:l,bottomLeft:c,bottomRight:d}=_i(o),{x:h,y:p}=t,{width:f,height:u}=e;let g,m,_,b,y,w;return"center"===n?(y=p+u/2,"left"===a?(g=h,m=g-s,b=y+s,w=y-s):(g=h+f,m=g+s,b=y-s,w=y+s),_=g):(m="left"===a?h+Math.max(r,c)+s:"right"===a?h+f-Math.max(l,d)-s:this.caretX,"top"===n?(b=p,y=b-s,g=m-s,_=m+s):(b=p+u,y=b+s,g=m+s,_=m-s),w=b),{x1:g,x2:m,x3:_,y1:b,y2:y,y3:w}}drawTitle(t,e,i){const a=this.title,n=a.length;let s,o,r;if(n){const l=ki(i.rtl,this.x,this.width);for(t.x=mo(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",s=yi(i.titleFont),o=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string,r=0;r<n;++r)e.fillText(a[r],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o,r+1===n&&(t.y+=i.titleMarginBottom-o)}}_drawColorBox(t,e,i,a,n){const o=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=n,d=yi(n.bodyFont),h=mo(this,"left",n),p=a.x(h),f=l<d.lineHeight?(d.lineHeight-l)/2:0,u=e.y+f;if(n.usePointStyle){const e={radius:Math.min(c,l)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=a.leftForLtr(p,c)+c/2,s=u+l/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,Se(t,e,i,s),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Se(t,e,i,s)}else{t.lineWidth=s(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=a.leftForLtr(p,c),i=a.leftForLtr(a.xPlus(p,1),c-2),r=_i(o.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,ze(t,{x:e,y:u,w:c,h:l,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),ze(t,{x:i,y:u+1,w:c-2,h:l-2,radius:r}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,u,c,l),t.strokeRect(e,u,c,l),t.fillStyle=o.backgroundColor,t.fillRect(i,u+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:a}=this,{bodySpacing:n,bodyAlign:s,displayColors:o,boxHeight:r,boxWidth:l,boxPadding:c}=i,d=yi(i.bodyFont);let h=d.lineHeight,f=0;const u=ki(i.rtl,this.x,this.width),g=function(i){e.fillText(i,u.x(t.x+f),t.y+h/2),t.y+=h+n},m=u.textAlign(s);let _,b,y,w,x,v,k;for(e.textAlign=s,e.textBaseline="middle",e.font=d.string,t.x=mo(this,m,i),e.fillStyle=i.bodyColor,p(this.beforeBody,g),f=o&&"right"!==m?"center"===s?l/2+c:l+2+c:0,w=0,v=a.length;w<v;++w){for(_=a[w],b=this.labelTextColors[w],e.fillStyle=b,p(_.before,g),y=_.lines,o&&y.length&&(this._drawColorBox(e,t,w,u,i),h=Math.max(d.lineHeight,r)),x=0,k=y.length;x<k;++x)g(y[x]),h=d.lineHeight;p(_.after,g)}f=0,h=d.lineHeight,p(this.afterBody,g),t.y-=n}drawFooter(t,e,i){const a=this.footer,n=a.length;let s,o;if(n){const r=ki(i.rtl,this.x,this.width);for(t.x=mo(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",s=yi(i.footerFont),e.fillStyle=i.footerColor,e.font=s.string,o=0;o<n;++o)e.fillText(a[o],r.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+i.footerSpacing}}drawBackground(t,e,i,a){const{xAlign:n,yAlign:s}=this,{x:o,y:r}=t,{width:l,height:c}=i,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:f}=_i(a.cornerRadius);e.fillStyle=a.backgroundColor,e.strokeStyle=a.borderColor,e.lineWidth=a.borderWidth,e.beginPath(),e.moveTo(o+d,r),"top"===s&&this.drawCaret(t,e,i,a),e.lineTo(o+l-h,r),e.quadraticCurveTo(o+l,r,o+l,r+h),"center"===s&&"right"===n&&this.drawCaret(t,e,i,a),e.lineTo(o+l,r+c-f),e.quadraticCurveTo(o+l,r+c,o+l-f,r+c),"bottom"===s&&this.drawCaret(t,e,i,a),e.lineTo(o+p,r+c),e.quadraticCurveTo(o,r+c,o,r+c-p),"center"===s&&"left"===n&&this.drawCaret(t,e,i,a),e.lineTo(o,r+d),e.quadraticCurveTo(o,r,o+d,r),e.closePath(),e.fill(),a.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,a=i&&i.x,n=i&&i.y;if(a||n){const i=ro[t.position].call(this,this._active,this._eventPosition);if(!i)return;const s=this._size=po(this,t),o=Object.assign({},i,this._size),r=uo(e,t,o),l=go(t,o,r,e);a._to===l.x&&n._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=s.width,this.height=s.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const a={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=bi(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,a,e),$i(t,e.textDirection),n.y+=s.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),Ci(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,a=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!f(i,a),s=this._positionChanged(a,e);(n||s)&&(this._active=a,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,n=this._active||[],s=this._getActiveElements(t,n,e,i),o=this._positionChanged(s,t),r=e||!f(s,n)||o;return r&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,a){const n=this.options;if("mouseout"===t.type)return[];if(!a)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const s=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&s.reverse(),s}_positionChanged(t,e){const{caretX:i,caretY:a,options:n}=this,s=ro[n.position].call(this,t,e);return!1!==s&&(i!==s.x||a!==s.y)}}var vo={id:"tooltip",_element:xo,positioners:ro,afterInit(t,e,i){i&&(t.tooltip=new xo({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:yo},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};return wn.register(On,Ss,Qn,t),wn.helpers={...Ii},wn._adapters=$n,wn.Animation=wa,wn.Animations=xa,wn.animator=_t,wn.controllers=qa.controllers.items,wn.DatasetController=Ea,wn.Element=Ia,wn.elements=Qn,wn.Interaction=Hi,wn.layouts=Zi,wn.platforms=_a,wn.Scale=Wa,wn.Ticks=ie,Object.assign(wn,On,Ss,Qn,t,_a),wn.Chart=wn,"undefined"!=typeof window&&(window.Chart=wn),wn})),$((()=>{$("head [data-ga-id]").data("data-ga-id");window.dataLayer=window.dataLayer||[],track("js",new Date),track("config",{page_title:$("title").text(),page_location:window.location.href,site_name:"Fraser's Property",site_type:"Corporate"})}));let addedMapsScript=!1;function executeLazyFunction(t){let e=!($(".fpa-image-and-text").length>1)&&t.getAttribute("data-lazy-class");e&&t.classList.add(...e.split(" ")),e=t.getAttribute("data-lazy-src"),e&&(t.src=e),e=t.getAttribute("data-lazy-function"),e&&window.lazy[e]&&window.lazy[e](t)}window.addMapsScript=()=>{if(addedMapsScript)return;addedMapsScript=!0;const t=document.createElement("script");t.src="/assets/libraries/markerclustererplus.min.js",document.head.appendChild(t);const e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key="+googleApiKey+"&libraries=places&callback=initMaps",e.async=!0,window.mapsReady=!1,window.initMaps=()=>{"undefined"!=typeof MarkerClusterer&&null!==MarkerClusterer?(window.mapsReady=!0,window.dispatchEvent(new CustomEvent("maps",{detail:{}}))):setTimeout((()=>{window.initMaps()}),10)},document.head.appendChild(e)},"undefined"!=typeof Handlebars&&Handlebars.registerHelper({join:function(t,e=","){return t?t.join(e):""},ifmod:function(t,e,i,a){return t%e==0?i:a},ifCond:function(t,e,i){return t===e?i.fn(this):i.inverse(this)},ifelse:function(t,e,i){return t?e:i},ifdiv:function(t,e,i){return t%2?e:i},json:function(t){return JSON.stringify(t).replace(/"/g,"&quot;")},atKey:function(t,e,i=null){return i?t[e][i]:t[e]},atIndex:function(t,e,i=null){return i?t[parseInt(e)][i]:t[parseInt(e)]},formatNumber:function(t){return"number"!=typeof t?t:Number(t).toLocaleString()},switch:function(t,e){return this.switch_value=t,e.fn(this)},case:function(t,e){if(t==this.switch_value)return e.fn(this)}}),Handlebars.registerHelper("slice",(function(t,e,i){return Array.isArray(t)?t.slice(e,i):t})),Handlebars.registerHelper("lte",(function(t,e){return t<=e})),Handlebars.registerHelper("formatDate",(function(t){if(!t)return"";return new Date(t).toLocaleDateString("en-AU",{day:"numeric",month:"long"})})),Handlebars.registerHelper("diffInDays",(function(t,e){if(!t||!e)return 0;const i=new Date(t),a=new Date(e),n=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()),s=Date.UTC(a.getFullYear(),a.getMonth(),a.getDate());return Math.floor((s-n)/864e5)})),Handlebars.registerHelper("now",(function(){return new Date})),Handlebars.registerHelper("and",(function(){return Array.prototype.slice.call(arguments,0,-1).every(Boolean)})),Handlebars.registerHelper("gte",(function(t,e){return t>=e})),Handlebars.registerHelper("not",(function(t){return!t})),Handlebars.registerHelper("concat",(function(){const t=Array.prototype.slice.call(arguments,0,-1);return t.join("")})),Handlebars.registerHelper("join",(function(t,e){return Array.isArray(t)?t.join(e):t})),Handlebars.registerHelper("isEndingSoon",(function(t){return isEndingSoon(t)})),Handlebars.registerHelper("isNew",(function(t){return isNew(t)})),Handlebars.registerHelper("formatDateWithSuffix",(function(t){if(!t)return"";const e=new Date(t),i=e.getDate(),a=e.toLocaleString("en-AU",{month:"long"});return`${i}${(t=>{if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(i)} ${a}`})),jQuery.fn.textNodes=function(){return this.contents().filter((function(){return this.nodeType===Node.TEXT_NODE&&""!==this.nodeValue.trim()}))},window.lazy={};var ll=new LazyLoad({unobserve_entered:!0,callback_enter:executeLazyFunction});function initializeFlickity(t){const e=t.find(".carousel-cell");t.data("flickity")&&(t.flickity("destroy"),t.removeClass("is-single-slide is-single-cell"),e.removeAttr("style"));const i=orDefault(t.data("align"),"left"),a=orDefault(t.data("group"),1),n=orDefault(t.data("contain"),!0),s=orDefault(t.data("buttons"),!1),o=orDefault(t.data("page-dots"),!0),r=orDefault(t.data("wrap-around"),!1),l=!!t.data("autoplay")||!1,c=(t=t.flickity({groupCells:a,cellAlign:i,autoPlay:l,contain:n,pageDots:o,prevNextButtons:s,wrapAround:r,pauseAutoPlayOnHover:!0,imagesLoaded:!0,resize:!0})).data("flickity");return c.pausePlayer(),c.on("dragStart",(()=>c.slider.childNodes.forEach((t=>t.style.pointerEvents="none")))),c.on("dragEnd",(()=>c.slider.childNodes.forEach((t=>t.style.pointerEvents="all")))),c.cells.length<2&&t.addClass("is-single-cell"),c.slides.length<2&&t.addClass("is-single-slide"),c}function loadMap(t,e){if(!$(".fpa-display-centre").length)return;const i=$("#map").data("marker"),a=$("#map").data("placeid");window.addMapsScript();const n=[[t,e]];window.initMaps=function(){!function(t){const e={url:i,size:new google.maps.Size(90,74),origin:new google.maps.Point(0,0)};for(let i=0;i<n.length;i++){const s=n[i],o=new google.maps.Marker({position:{lat:s[0],lng:s[1]},map:t,icon:e});let r;r="undefined"!==a?`https://www.google.com/maps/search/?api=1&query=${s[0]}%2C${s[1]}&query_place_id=${a}`:`https://www.google.com/maps/search/?api=1&query=${s[0]}%2C${s[1]}`,o.addListener("click",(()=>{window.open(r,"_blank")}))}}(new google.maps.Map(document.getElementById("map"),{zoom:17,center:{lat:t,lng:e}}))}}$((t=>{0!==t(".fpa-100-year-anniversary").length&&t(".fpa-100-year-anniversary").each((function(){const e="/assets/images/100-year-timeline",i=t(".imgCurrent"),a=t(".imgPrev"),n=t(".fpa-100-year-anniversary__tabs");let s="intro",o="Pictured in the background: Port Coogee NSW, 2023";i.css("background-image",`url('${e}/${s}/${s}s.jpg')`),t(".fpa-100-year-anniversary__footer-caption").text(o),t(".fpa-100-year-anniversary__timeline button").on("click",(function(){t(this).hasClass("active")||(t(".fpa-100-year-anniversary__footer-caption").hide(),window.scrollTo({top:0,behavior:"smooth"}),s=t(this).data("year"),o=t(this).data("caption"),a.removeClass("fadeOut"),t("[data-year]").each((function(){t(this).removeClass("active")})),t("[data-tab-item]").each((function(){t(this).hasClass("active")&&(a.css("background-image",i.css("background-image")),a.addClass("fadeOut")),t(this).removeClass("active")})),i.css("background-image",`url('${e}/${s}/${s}s.jpg')`),t(".fpa-100-year-anniversary__footer-caption").text(o),setTimeout((()=>{t(".fpa-100-year-anniversary__footer-caption").show(),n.find(`[data-tab-item="${t(this).data("year")}"]`).addClass("active"),t(this).addClass("active")}),200))}))}))})),$((t=>{0!==t(".fpa-animated-herotext").length&&(gsap.registerPlugin(ScrollTrigger),t(".fpa-animated-herotext").each((function(e,i){var a=t(i),n=t(i).find(".fpa-animated-herotext__bg-image");const s=gsap.timeline();var o=gsap.to(n,{duration:3,delay:.5,top:"15%"});const r=new ScrollMagic.Controller;new ScrollMagic.Scene({triggerElement:this,triggerHook:0,duration:"140%"}).setTween(o).setPin(this).addTo(r);function l(){a.find(".fpa-animated-herotext__text:first-child").addClass("active"),a.find(".fpa-animated-herotext__text:nth-child(2)").removeClass("active"),a.find(".fpa-animated-herotext__text:nth-child(3)").removeClass("active")}function c(){a.find(".fpa-animated-herotext__text:first-child").removeClass("active"),a.find(".fpa-animated-herotext__text:nth-child(2)").addClass("active"),a.find(".fpa-animated-herotext__text:nth-child(3)").removeClass("active")}function d(){a.find(".fpa-animated-herotext__text:first-child").removeClass("active"),a.find(".fpa-animated-herotext__text:nth-child(2)").removeClass("active"),a.find(".fpa-animated-herotext__text:nth-child(3)").addClass("active")}const h=a.find(".fpa-animated-herotext__text").length;let p="0%",f="30%",u="30%",g="100%",m="100%",_="140%";2==h?(p="0%",f="60%",u="60%",g="140%",m="140%",_="140%"):1==h&&(p="0%",f="140%",u="140%",g="140%",thidStart="140%",thidEnd="140%"),s.to(a.find(".fpa-animated-herotext__text:first-child"),{duration:"1s",scrollTrigger:{trigger:a,start:p,end:f,scrub:!0,onEnter:l,onEnterBack:l}}),s.to(a.find(".fpa-animated-herotext__text:nth-child(2)"),{duration:"1s",scrollTrigger:{trigger:a,start:u,end:g,scrub:!0,onEnter:c,onEnterBack:c}}),s.to(a.find(".fpa-animated-herotext__text:nth-child(3)"),{duration:"1s",scrollTrigger:{trigger:a,start:m,end:_,onEnter:d,onEnterBack:d}})})))})),$((t=>{0!==t(".fpa-animated-content").length&&(gsap.registerPlugin(ScrollTrigger),window.addEventListener("load",(function(){ScrollTrigger.matchMedia({"(min-width: 992px)":function(){t(".fpa-animated-content.fpa-animated-content--left-image").each((function(e,i){const a=t(i),n=a.find(".fpa-animated-content__image-container.fpa-animated-content__image-container--desktop").offset().top-a.offset().top,s=a.find(".fpa-animated-content__image").width(),o=a.find(".fpa-animated-content__image").height();const r=new ScrollMagic.Controller,l=new ScrollMagic.Scene({triggerElement:this,triggerHook:"onLeave",duration:"80%",offset:-150}).setPin(this).addTo(r);l.on("end",(function(){l.remove(),l.removePin(),a.find(".fpa-animated-content__full-screen-image").css("z-index",0)}));const c=gsap.timeline();c.to(t(this).find(".fpa-animated-content__full-screen-image"),{width:s,height:o,top:n,onComplete:function(){a.addClass("animationComplete")}}),l.setTween(c)})),t(".fpa-animated-content.fpa-animated-content--right-image").each((function(e,i){const a=t(i),n=a.find(".fpa-animated-content__image-container.fpa-animated-content__image-container--desktop").offset().top-a.offset().top,s=a.find(".fpa-animated-content__image").width(),o=a.find(".fpa-animated-content__image").height();const r=new ScrollMagic.Controller,l=new ScrollMagic.Scene({triggerElement:this,triggerHook:"onLeave",duration:"80%",offset:-150}).setPin(this).addTo(r);l.on("end",(function(){l.remove(),l.removePin(),a.find(".fpa-animated-content__full-screen-image").css("z-index",0)}));const c=gsap.timeline();c.to(t(this).find(".fpa-animated-content__full-screen-image"),{transformOrigin:"bottom right",width:s,height:o,top:n,onComplete:function(){a.addClass("animationComplete")}}),l.setTween(c)}))},"(max-width: 991px)":function(){ScrollTrigger.refresh()}})})))})),$((t=>{0!==t(".fpa-birds-eye-video").length&&t(".fpa-birds-eye-video").each((function(e,i){t(this).closest(".container, .container-fluid").each((function(e,i){var a=t(i);function n(){a.find("video").trigger("play"),a.find(".fpa-birds-eye-video__video").addClass("scale")}function s(){a.find("video").trigger("pause"),a.find(".fpa-birds-eye-video__video").removeClass("scale")}var o=gsap.timeline();o.to(a.find(".fpa-birds-eye-video__video"),{duration:2}),gsap.registerPlugin(ScrollTrigger),ScrollTrigger.create({trigger:this,start:"top top",animation:o,end:"bottom 10%",pin:!0,onEnter:n,onEnterBack:n,onLeave:s,onLeaveBack:s})}))}))})),$((t=>{0!==t(".fpa-card-image-panel").length&&t(".fpa-card-image-panel .fpa-card-image-panel__card-link, .fpa-card-image-panel .fpa-card-image-panel__link").on("click",(function(){track("site_body",{text:t(this).find(".h-card-heading").text(),url:t(this).prop("href"),type:"What we do",feature:"Carousel"})}))})),window.initializeCarousel=t=>{if(!t.length)return;let e=t.data("flickity");const i=orDefault(t.data("auto-resize"),!0);let a=t.data("o-group");if(a||(a=t.data("group"),t.data("o-group",a)),e&&(!i||"number"!=typeof a||a<1))return;const n=window.visualViewport?window.visualViewport.width:window.innerWidth,s=Math.min(1,n/desktopWidth),o=Math.round(Math.min(a,Math.max(1,a*s))),r=()=>{if("playing"===e.player.state)return;t.parent().removeClass("animated slideInRightSubtle");$(window).scrollTop()+t.height()+$("header").height()>=t.offset().top-t.height()&&(!$(".fpa-header-carousel").length>0&&t.addClass("animated slideInRightSubtle"),e.playPlayer())};if(!e||e.options.cellGroup!==o){if(t.data("group",o),e=initializeFlickity(t),i){const i=100/(o+.5*s)+"%";t.find(".carousel-cell").css("width",e.cells.length>1?i:"100%")}return e.resize(),t.data("autoplay")&&(r(),$(window).on("scroll",r)),e}},$((()=>{if(0===$(".fpa-carousel").length)return;const t=$(".fpa-carousel");let e=0;const i=debounce(200,(function(){const i=window.visualViewport?window.visualViewport.width:window.innerWidth;i!==e&&(e=i,$.each(t,((t,e)=>{window.initializeCarousel($(e))})))}));window.addEventListener("resize",i),i(),t.on("dragStart.flickity",(function(t,e){document.ontouchmove=function(t){t.preventDefault()}})),t.on("dragEnd.flickity",(function(t,e){document.ontouchmove=function(t){return!0}}));const a=Flickity.prototype.resize;Flickity.prototype.resize=function(){this.isAnimating||a.call(this)}})),$((()=>{if(0===$(".fpa-carousel-components").length)return;const t=$(".fpa-carousel-components__container");$.each(t,((t,e)=>{const i=$(e);window.initializeCarousel(i),function(t){const e=t.data("flickity").slides.length<2;t.toggleClass("is-single-slide",e)}(i),i.find(".flickity-page-dots").wrap('<div class="container fpa-carousel-components__dots"><div class="row"><div class="col"></div></div></div>')}))})),$((()=>{if(0===$(".fpa-carousel-timeline").length)return;const t="fpa-carousel-timeline__selected";$(".fpa-carousel-timeline").each((function(){const e=$(this),i=e.find(".fpa-carousel-timeline__tab"),a=e.find(".fpa-carousel-timeline__entry"),n=e.find(".fpa-carousel"),s=e.find(".fpa-carousel-timeline__pill");e.find(".fpa-carousel-timeline__card a");if(n.on("change.flickity",(function(e,n){const s=a[n].dataset.timelinePhase,o=i.filter(`[data-timeline-phase="${s}"]`).first();o.length&&(o.hasClass(t)||o.trigger("click",!1))})),i.on("click",(function(e,s=!0){const o=$(this);i.removeClass(t),o.addClass(t);const r=o.data("timeline-phase");if(!r)return;const l=a.toArray().findIndex((t=>t.dataset.timelinePhase===r));s&&n.flickity("select",l,!1,!1)})),i.length<2)e.find(".fpa-carousel-timeline__tabs").hide();else{let t=new URL(window.location.href).searchParams.get("timeline-index");null==t&&(t=e.find('.fpa-carousel-timeline__desktop .fpa-carousel-timeline__entry[data-timeline-selected="true"]').parent().index()),t>0?setTimeout((()=>n.flickity("select",t,!1,!1)),0):i.first().trigger("click")}s.on("click",(function(e,i=!1){const a=$(this);$target=a.next(),a.hasClass(t)?(a.removeClass(t),$target.removeClass(t),$target.slideUp({duration:i?0:300})):(a.addClass(t),$target.addClass(t),$target.slideDown({duration:i?0:300}))}));const o=e.find('.fpa-carousel-timeline__mobile .fpa-carousel-timeline__entry[data-timeline-selected="true"]');o.length&&(o.parent().parent().find(".fpa-carousel-timeline__pill").trigger("click",!0),o[0].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})),e.find(".fpa-carousel-timeline__status-legend-item").length<1&&e.find(".fpa-carousel-timeline__status-legend").hide()}))})),$((()=>{if(0===$(".fpa-centre-business-reviews").length)return;$(".fpa-centre-business-reviews__card").each((function(){const t=$(this).data("rating");let e="";for(let i=1;i<=5;i++)i<=t&&(e+='<span class="star">&#9733;</span>');$(this).find(".stars").html(e);const i=$(this).find(".fpa-centre-business-reviews__card-quote span"),a=i.text().trim(),n=window.innerWidth<990?90:115,s=i.text().trim().substring(0,n)+"...";a.length>n?(i.text(s),$(this).find(".more-link").show(),$(this).find(".show-quote").hide()):($(this).find(".more-link").hide(),$(this).find(".show-quote").show())}))})),$((()=>{if(0===$(".fpa-centre-popularity").length)return;const t=$(".fpa-centre-popularity"),e=(new Date).toLocaleString("en-AU",{timeZone:"Australia/Sydney",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),[i,a]=e.split(", "),[n,s,o]=i.split("/"),[r,l,c]=a.split(":"),d=new Date(Date.UTC(o,s-1,n,r,l,c)),h=(new Date).toLocaleString("en-AU",{timeZone:"Australia/Sydney",weekday:"long"}).toLowerCase(),p=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].indexOf(h);let f=[],u=[];const g=window.innerWidth<992;let m=null;t.each((function(){const e=$(this);let i="normal",a=!0;const n=e.data("counter-id");if(!n)return;const s=e.data("off-peak-colour"),o=e.data("peak-colour"),r=e.data(h);function l(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}function c(){let e=new Date(d);e.setFullYear(e.getFullYear()-1);const i=l(new Date(e.getFullYear(),e.getMonth(),1)),a=l(new Date(e.getFullYear(),e.getMonth()+1,0));$.ajax({url:`/api/stores/corporate/gethistoricaldata?from=${i}&to=${a}&counterId=${n}`,method:"GET",success:function(t){f=t;m=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][p],w(d,0)},error:function(e,i,a){t.hide()}})}function _(t){let e=[];t.forEach((t=>{const i=new Date(t.datetime),a=new Intl.DateTimeFormat("en-AU",{timeZone:"Australia/Sydney",hour:"2-digit",hour12:!1}).format(i),n=i.getHours();if(parseInt(a)>=7&&parseInt(a)<=22){const i=t.fields.find((t=>"entries"===t.name));if(i){const t=parseInt(i.value,10);e[n]||(e[n]={sum:0,count:0,hour:parseInt(a)}),e[n].sum+=t,e[n].count+=1,e[n].hour=parseInt(a)}}}));const i=e.filter((t=>null!==t)).sort(((t,e)=>t.hour-e.hour)),a=[];return i.forEach(((t,e)=>{a.push(i[e].sum/i[e].count)})),a}function b(){let t=_(u),a=_(f);if(t.length!==a.length){let e=a.slice(t.length);t=t.concat(e)}const n=new Date,r=new Intl.DateTimeFormat("en-AU",{timeZone:"Australia/Sydney",hour:"2-digit",hour12:!1}).format(n),l=[];[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22].forEach((t=>{r==t?l.push("normal"===i?s:o):l.push("#E4E2E2")})),e.find(".fpa-centre-popularity__off-peak .fpa-centre-popularity__chart-wrapper").empty(),e.find(".fpa-centre-popularity__off-peak .fpa-centre-popularity__chart-wrapper").each((function(){$(this).append('<canvas id="myChart"></canvas>')})),e.find(".fpa-centre-popularity__peak .fpa-centre-popularity__chart-wrapper").empty(),e.find(".fpa-centre-popularity__peak .fpa-centre-popularity__chart-wrapper").each((function(){$(this).append('<canvas id="myChart"></canvas>')}));("normal"===i?e.find(".fpa-centre-popularity__off-peak #myChart"):e.find(".fpa-centre-popularity__peak #myChart")).each((function(){new Chart($(this),{type:"bar",data:{labels:g?["7am ","","","","11am","","","","3pm","","","","7pm","","","10pm"]:["7am","","9am","","11am","","1pm","","3pm","","5pm","","7pm","","","10pm"],datasets:[{data:t,backgroundColor:l}]},options:{maintainAspectRatio:!1,animation:{duration:0},hover:{mode:null},scales:{y:{display:!1,beginAtZero:!0},x:{grid:{display:!1},ticks:{autoSkip:!1,maxRotation:0,minRotation:0,color:"#000"}}},plugins:{legend:{display:!1},tooltip:{enabled:!1}}}})}))}function y(t){const e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];let a=_(u);const n=p,r=$(".fpa-centre-popularity__buton-group");r.empty(),e.forEach(((e,i)=>{const s=document.createElement("div");if(s.classList.add("day-container"),i===n){const t=document.createElement("div");t.textContent="Today",t.classList.add("label-today"),s.append(t)}const o=document.createElement("button");if(o.textContent=e,o.classList.add("day-button"),e===m&&o.classList.add("active"),i===n&&o.classList.add("today"),t){let t=_(f);if(a.length!==t.length){let e=t.slice(a.length);a=a.concat(e)}}s.append(o),r.append(s)}));const l=$(".fpa-centre-popularity__dropdown"),c=$(".fpa-centre-popularity__dropdown-wrapper");l.empty(),e.forEach(((t,e)=>{const i=document.createElement("option");i.value=e,i.textContent=t,e===n&&(i.textContent=t+" (Today)"),t===m&&(i.selected=!0),l.append(i)})),l.on("focus",(()=>{c.addClass("open")})),l.on("blur",(()=>{c.removeClass("open")}));const d=new Date,h=new Intl.DateTimeFormat("en-AU",{timeZone:"Australia/Sydney",hour:"2-digit",hour12:!1}).format(d),b=[];[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22].forEach((e=>{h==e&&t?b.push("normal"===i?s:o):b.push("#E4E2E2")})),$(".fpa-centre-popularity__page-chart-wrapper").empty(),$(".fpa-centre-popularity__page-chart-wrapper").append('<canvas id="page-chart"></canvas>');const y=$(".fpa-centre-popularity #page-chart");new Chart(y,{type:"bar",data:{labels:g?["7am ","","","","11am","","","","3pm","","","","7pm","","","10pm"]:["7am","","9am","","11am","","1pm","","3pm","","5pm","","7pm","","","10pm"],datasets:[{data:a,backgroundColor:b}]},options:{maintainAspectRatio:!1,animation:{duration:0},hover:{mode:null},scales:{y:{display:!1,beginAtZero:!0},x:{grid:{display:!1},ticks:{autoSkip:!1,maxRotation:0,minRotation:0,color:"#000"}}},plugins:{legend:{display:!1},tooltip:{enabled:!1}}}})}function w(e,i){let s=new Date(e);s.setDate(new Date(e).getDate()-i);const o=s.toISOString().split("T")[0],r=s.toISOString().split("T")[0];let l=i<1;a?(a=!1,y(l),b()):$.ajax({url:`https://api.skyfii.com/v1/api/accounts/650/metrics/counters/data?resolution=hourly&from=${o}&to=${r}&key.counterId=${n}`,method:"GET",headers:{Authorization:"Basic "+btoa("lT0a96xcn9MgcOlT:EKoBXdyKptBWNEMZiFU46D56")},success:function(t){u=t,y(l),b()},error:function(e,i,a){t.hide()}})}!function a(){setTimeout((()=>{a()}),9e5);let l=new Date(d);const h=d.toISOString().split("T")[0];l.setDate(new Date(d).getDate()+1);const p=d.toISOString().split("T")[0];$.ajax({url:`https://api.skyfii.com/v1/api/accounts/650/metrics/counters/data?resolution=hourly&from=${h}&to=${p}&key.counterId=${n}`,method:"GET",headers:{Authorization:"Basic "+btoa("lT0a96xcn9MgcOlT:EKoBXdyKptBWNEMZiFU46D56")},success:function(t){const a=_(t);a[a.length-1]>r&&(i="busy",e.find(".fpa-centre-popularity__off-peak").hide(),e.find(".fpa-centre-popularity__peak").show()),u=t,e.find(".fpa-centre-popularity__button").css("background","normal"===i?s:o),g&&(e.find(".fpa-centre-popularity__button").css("background","transparent"),e.find(".fpa-centre-popularity__button span").css("background","normal"===i?s:o)),$(".fpa-store-search-widget").length>0?setTimeout((()=>{c()}),600):c()},error:function(e,i,a){t.hide()}})}(),e.find(".fpa-centre-popularity__button").on("click",(function(){e.find(".fpa-centre-popularity__chart").toggleClass("open"),e.find(".fpa-centre-popularity__button").toggleClass("active"),$(".fpa-retail-mega-menu__tab").removeClass("fpa-retail-mega-menu--openned"),$(".fpa-retail-mega-menu__tab-heading ").removeClass("fpa-retail-mega-menu--openned"),$(".fpa-retail-mega-menu__content ").removeClass("fpa-retail-mega-menu--openned"),dimmer($("body main"),!1),dimmer($("body footer"),!1)})),e.find(".fpa-centre-popularity__close").on("click",(function(){$(this).closest(".fpa-centre-popularity__chart").removeClass("open"),e.find(".fpa-centre-popularity__button").removeClass("active")})),e.find(".fpa-centre-popularity__buton-group").on("click",(t=>{const e=t.target.closest(".day-container")?.querySelector(".day-button"),i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].indexOf(e.textContent),a=(p-i+7)%7;m=e.textContent,w(d,a)})),$(this).find(".fpa-centre-popularity__dropdown").on("change",(t=>{const e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=e[t.target.value],a=e.indexOf(i);m=i,w(d,(p-a+7)%7);$(".fpa-centre-popularity__dropdown").blur()}))}))})),$((()=>{if(!$(".fpa-code-snippet").length)return;function t(){const t=$(this);if(t.data("oneshot")){if(t.data("done"))return;t.data("done",!0)}const e=document.createElement("script");e.type="text/javascript",e.innerHTML=t.html(),e.id="fpa-injected-script",$("body").append(e)}$('.fpa-code-snippet script[data-device="all"]').each(t),window.addEventListener("windowConfiguration",(function(e){$("#fpa-injected-script").remove(),$(`.fpa-code-snippet script[data-device="${e.detail.target}"]`).each(t)}))})),$((t=>{if(0===t(".fpa-image-and-text").length)return;t(".fpa-image-and-text + .fpa-image-and-text, .fpa-animated-content + .fpa-animated-content, .fpa-animated-content + .fpa-image-and-text, .fpa-image-and-text + .fpa-animated-content").before("<div class='line'></div>");(function(){const t=function(){let t=new IntersectionObserver((function(t,i){e(t,i)}),{root:null,rootMargin:"100px",threshold:.5});document.querySelectorAll(".fpa-image-and-text").forEach((e=>{t.observe(e)}))},e=function(t,e){t.forEach((t=>{t.isIntersecting&&(t.target.removeAttribute("data-lazy-class"),t.target.classList.add("animated","delay-200ms","fadeInUp"),e.unobserve(t.target))}))};return{init:function(){t()}}})().init()})),$(window).on("resize scroll",(function(){$(".line").each((function(){$(this).isInViewport()&&$(this).addClass("animateLine")}))})),$.fn.isInViewport=function(){if($(".line").length){var t=$(this).offset().top,e=t+$(this).outerHeight(),i=$(window).scrollTop(),a=i+$(window).height();return t>=i&&e<=a}},window.onload=()=>{loadMap($("#map").data("lattitude"),$("#map").data("longitude"))},$((()=>{$(".fpa-facebook").length&&($(".fpa-facebook__bottom-posts .fpa-facebook__article").each((function(){var t=$(this).find(".fpa-facebook__post-text").html();if(t.length>60){var e='<div class="truncate-text">'+t.substr(0,60)+'<span class="read-more">... read more</span></div>';$(this).find(".fpa-facebook__post-text").html(e)}})),$(".fpa-facebook__right-posts .fpa-facebook__article").each((function(){var t=$(this).find(".fpa-facebook__post-text").html();if(t.length>160){var e='<div class="truncate-text">'+t.substr(0,160)+'<span class="read-more">... read more</span></div>';$(this).find(".fpa-facebook__post-text").html(e)}})))})),$((t=>{if(0===t(".fpa-faqs").length)return;const e=t(".fpa-faqs"),i=t(".fpa-faqs__question");e.find(i).click((function(){return t(this).parent(".fpa-faqs__item").toggleClass("fpa-faqs__item--open"),t(this).next(".fpa-faqs__panel").slideToggle(),!1}))})),$((t=>{if(0===t(".fpa-footer__link-list-header").length)return;t("#toggleMobileNav").on("click",(function(){t("body").toggleClass("mobile-nav-open")}));const e=function(){t(this).toggleClass("open").next().stop(!1,!0).slideToggle(300)};window.addEventListener("windowConfiguration",(function(i){"mobile"===i.detail.target?(t(".fpa-footer__link-list-header").on("click",e).next().stop(!1,!0).slideUp(0),t(".fpa-footer__link").on("keypress",(function(e){"13"===e.code&&t(e.currentTarget).find(".fpa-footer__link-text").click()}))):(t(".fpa-global-nav__secondary-menu").removeAttr("style"),t(".fpa-footer__link-list-header").removeClass("open").off("click",e).next().stop(!1,!0).slideDown(0),t(".fpa-footer__link").off())})),t(".fpa-footer .fpa-footer__link-list-secondary a").on("click",(function(){track("footer",{text:t(this).text(),url:t(this).prop("href"),type:t(this).parents(".fpa-footer__link-list").find(".fpa-footer__link-list-header").text()})}))})),$((t=>{0!==t(".fpa-form").length&&(t(".fpa-form select.form-control").each((function(){t(this).select2({minimumResultsForSearch:1/0}).data("select2").$dropdown.addClass("fpa-dropdown")})),t(".fpa-form.light select.form-control, .fpa-form.dark select.form-control").each((function(){t(this).select2({minimumResultsForSearch:1/0}).data("select2").$dropdown.addClass("fpa-dropdown").addClass("retail-dropdown")})),t('.fpa-form input[type="checkbox"]').after('<span class="checkmark"></span>').parent("label").addClass("checkbox"),t('.fpa-form input[type="radio"]').after('<span class="checkmark"></span>').parent("label").addClass("radio"),t(".fpa-form .form-group").each((function(){var e=t(this).find("[data-val-required]");if(!e.hasClass("not-required")){var i=t(this);e.length>0&&i.addClass("required")}})),t(".fpa-form").on("submit",(function(){t(this)})))})),$((t=>{if(!t(".fpa-global-header").length)return;const e=t(".fpa-global-header"),i=t(".fpa-site-nav"),a=t(".fpa-smp-header"),n=e.data("dropdown-disabled");function s(){a.length>0||n?e.css("position","relative").css("z-index","1115"):e.css("position","fixed").css("z-index","1115")}function o(){return"relative"==e.css("position")}function r(){return o()?0:e.outerHeight()}function l(){return r()+(i?.outerHeight()??0)+(o?0:a?.outerHeight()??0)}function c(a){t(a).parent().hasClass("opened")?(i.addClass("dimmed").addClass("dimmed__in").css("top",e.outerHeight()).css("z-index","999"),t("main").addClass("dimmed").addClass("dimmed__in").css("margin-top",r()),t(".fpa-video-splash").length&&t("main").removeAttr("id")):(t("main").removeClass("dimmed").removeClass("dimmed__in").css("margin-top",r()),i.removeClass("dimmed").removeClass("dimmed__in").css("top",r()),t(".fpa-video-splash").length&&t("main").attr("id","resetMargin"),s())}n&&(e.find(".fpa-global-header__dropdown").removeClass("dropdown-toggle"),e.addClass("fpa-global-header--dropdown-disabled")),t(".fpa-video-splash").length||t("main").not(".resetMargin").css("margin-top",l()),t(window).on("resize",(function(){t(".fpa-video-splash").length||t("main").not(".resetMargin").css("margin-top",l())})),t(".fpa-video-splash").length||e.css("top",0).css("opacity",1),t(".dropdown-toggle").click((function(){i.css("z-index","999"),e.css("z-index","1115"),t(this).next(".fpa-global-header__global-menu").slideToggle("fast",(function(){"mobile"==windowConfig?c(this):function(e){if(t(e).parent().hasClass("opened")){0==t("header").find(".fpa-project-mega-menu--openned").length&&t("main").removeClass("dimmed").removeClass("dimmed__in").css("margin-top",l());const e=t(".fpa-global-header").height();i.removeClass("dimmed").removeClass("dimmed__in").css("top",`${e}px`).css("z-index","1111"),s()}}(this)})),t(this).parent(".fpa-global-header__menu-wrapper").toggleClass("opened")})),t(window).scroll((function(a){!function(){n?t(window).scrollTop()>0?i.addClass("nav-down").css("top",0).css("z-index","1111"):i.removeClass("nav-down").css("top",e.outerHeight()):(i.removeAttr("id"),e.removeAttr("id"),t(window).scrollTop()>400?(i.addClass("nav-down").css("top",0).css("opacity",1).css("z-index","1111"),e.addClass("nav-up").removeClass("nav-down")):(e.removeClass("nav-up").css("opacity",1),i.removeClass("nav-down").css("opacity",1).css("top",e.outerHeight())));"mobile"==windowConfig?t(".fpa-global-header__menu-wrapper.opened").length&&(t(".fpa-global-header__global-menu").slideUp("fast"),t(".fpa-global-header__menu-wrapper").removeClass("opened"),t("main").removeClass("dimmed").removeClass("dimmed__in").css("margin-top",l()),t(".fpa-video-splash").length&&t("main").attr("id","resetMargin"),i.removeClass("dimmed").removeClass("dimmed__in").css("top",r()).css("z-index","1111")):(t(".fpa-global-header__global-menu").slideUp("fast"),t(".fpa-global-header__menu-wrapper").removeClass("opened"))}()}));window.addEventListener("windowConfiguration",(e=>{windowConfig=e.detail.target,s(),"mobile"!=e.detail.target?(t(".fpa-global-header__menu-wrapper").removeClass("opened"),t(".fpa-global-header__global-menu").slideUp("fast"),t("main").removeClass("dimmed").removeClass("dimmed__in").css("margin-top",l()),i.removeClass("dimmed").removeClass("dimmed__in").css("z-index","1111")):t("main").removeClass("dimmed").removeClass("dimmed__in").css("margin-top",l())})),t(document).mouseup((function(a){if(!(t(".fpa-global-header__menu-wrapper.opened").length>0))return;const n=e.find(".fpa-global-header__dropdown.dropdown-toggle");n.is(a.target)||0!==n.has(a.target).length||(t("body").find(".dimmed").removeClass("dimmed__in").removeClass("dimmed"),t(".fpa-video-splash").length&&t("main").attr("id","resetMargin"),t(".fpa-global-header__global-menu").slideUp("fast"),t(".fpa-global-header__menu-wrapper").removeClass("opened"),i.css("top",r()).css("z-index","1111"),s(),t("main").css("margin-top",l()))}))})),$((()=>{if(!$(".fpa-global-notification").length)return;const t=document.cookie.split(";").some((t=>t.trim().startsWith("fpaNotification="))),e=$(".fpa-global-notification");if(t)return void e.remove();e.show(),window.removeSticky(e),window.addSticky(e),$(".fpa-global-notification__close").on("click",(()=>{const t=$(".fpa-global-notification");window.removeSticky(t),createCookie("fpaNotification",!0,7),setTimeout((()=>{t.remove()}))}));const i=$(".fpa-global-header"),a=$(".fpa-site-nav"),n=$(".fpa-global-notification");function s(){return(i.outerHeight()??0)+(a?.outerHeight()??0)}n.length&&i.length&&a.length&&(n.css("top",s()).css("position","fixed"),$(window).on("resize scroll",(function(){a.hasClass("nav-down")?($(".container-sticky ").css("top",a.outerHeight()),n.css("top",a.outerHeight()).css("position","initial")):($(".container-sticky ").css("top","0"),n.css("top",s()).css("position","fixed"))}))),document.querySelectorAll("a[data-hover]").forEach((t=>{const e=document.querySelector("a.fpa-global-notification__message").className;t.addEventListener("mouseenter",(function(){const t=this.getAttribute("data-hover");this.className="fpa-global-notification__message",this.classList.add(t)})),t.addEventListener("mouseleave",(function(){this.className=e}))}))})),$((t=>{if(!t(".fpa-retail-header").length)return;const e="fpa-retail-header--openned";let i=!1;t(".fpa-retail-header__burger-menu-button").on("click",(function(){i=!i;const a=t(".fpa-retail-header__menu-container");i?(t(this).addClass(e),t(".fpa-global-notification").addClass("afixTop"),t(".fpa-retail-header-secondary").addClass("afixTop"),a.fadeIn({duration:300,start:function(){t("body main, body footer, body header, .container-sticky, .fpa-retail-header, .fpa-retail-header__menu-container").addClass(e),t(this).addClass(e),t(this).css({display:"flex"})},complete:function(){a.removeClass("fpa-retail-header__menu-container--closed"),a.css({display:""})}})):(t(".fpa-global-notification").removeClass("afixTop"),t(".fpa-retail-header-secondary").removeClass("afixTop"),t(this).removeClass(e),a.fadeOut({duration:300,start:function(){t(this).css({display:"flex"})},complete:function(){a.css({display:""}),a.addClass("fpa-retail-header__menu-container--closed"),t(`.${e}`).removeClass(e),window.resetStickyScroll()}}))}));window.addEventListener("windowConfiguration",(a=>{const n=t(".fpa-retail-header__menu-container");"desktop"==a.detail.target?(i&&(t(`.${e}`).removeClass(e),n.css({display:""}),i=!1),n.removeClass("fpa-retail-header__menu-container--closed"),window.removeSticky(t(".fpa-retail-header__peak-container")),window.removeSticky(t(".fpa-retail-header-secondary")),window.addSticky(n,"fpa-retail-header__menu-container--sticky")):(n.addClass("fpa-retail-header__menu-container--closed"),window.addSticky(t(".fpa-retail-header__peak-container"),!1,!0),window.removeSticky(n,"fpa-retail-header__menu-container--sticky"))}))})),$((t=>{const e="fpa-retail-mega-menu--openned";let i="",a=null;t(".fpa-retail-mega-menu__tab-heading").each((function(){const n=t(this);n.on("click",(function(){const s=n.parents(".fpa-retail-mega-menu__tab"),o=s.children(".fpa-retail-mega-menu__content");if(!o)return;const r=t(".fpa-centre-popularity__button");if(r.hasClass("active")&&(r.removeClass("active"),t(".fpa-centre-popularity__chart").removeClass("open")),o.hasClass(e))return s.find(".fpa-retail-mega-menu__tab-heading").removeClass(e),o.slideUp({duration:350,complete:function(){t(this).css({display:""}),s.removeClass(e),s.find(`.${e}`).removeClass(e)}}),dimmer(t("body main"),!1),dimmer(t("body footer"),!1),void(a=null);let l=!1;"desktop"==i&&(a&&(a.slideUp({durtion:0,complete:function(){t(this).css({display:""})}}),l=!0),t(`.${e}`).removeClass(e),a=o),o.slideDown({duration:l?0:350,start:function(){if(n.parent().addClass(e),n.addClass(e),o.addClass(e),t("body header, body main").addClass(e),"desktop"==i){const e=()=>{a&&a.parents(".fpa-retail-mega-menu__tab").children(".fpa-retail-mega-menu__tab-heading").trigger("click")};dimmer(t("body main"),!0,e),dimmer(t("body footer"),!0,e)}},complete:function(){t(this).css({display:""})}})}))}));window.addEventListener("windowConfiguration",(n=>{i=n.detail.target,t(`.${e}`).removeClass(e),"mobile"==n.detail.target?(dimmer(t("body main"),!1),dimmer(t("body footer"),!1),a&&(a.slideUp(0),a=null)):(t(".fpa-retail-mega-menu__tab-heading").each((function(){const e=t(this).parents(".fpa-retail-mega-menu__tab").children(".fpa-retail-mega-menu__content");e&&e.slideUp(0)})),a&&(a.slideUp(0),a=null,dimmer(t("body main"),!1),dimmer(t("body footer"),!1)))}))})),$((t=>{const e=t(".fpa-retail-header__search-btn"),i=t(".fpa-retail-header__search-dropdown");let a=!1;function n(e){e?t("body main, body footer").addClass("dimmed").addClass("dimmed__in"):t("body main, body footer").removeClass("dimmed").removeClass("dimmed__in"),dimmer(t("body main"),e),dimmer(t("body footer"),e)}e.on("click",(function(){const e=t(this).closest(".fpa-retail-header__search"),i="fpa-retail-header__search--display",s=t(".fpa-retail-mega-menu__tab-heading.fpa-retail-mega-menu--openned");s.length&&s.trigger("click"),a?(e.removeClass(i),n(!1)):(e.addClass(i),e.find("input:text").focus(),n(!0)),a=!a}));const s=Handlebars.compile(t("#fpa-retail-header-search-error").html()),o=function(e){const i=t(e).parent().find(t(".fpa-retail-header__search-input input[type=text]")).val();if(function(e,i){const a={};a.isInsufficientCharacters=e?.replace(/\s/g,"")?.length<3,i.find(t(".fpa-retail-header__search-input-error-container")).empty();const n=Object.values(a).includes(!0);if(n){const e=s(a);i.find(t(".fpa-retail-header__search-input-error-container")).html(e),t(".fpa-retail-header__search-input input").keyup((function(){(t(this).val().length>=3||0==t(this).val().length)&&i.find(t(".fpa-retail-header__search-input-error-container")).empty()})),t(".fpa-retail-header__search-input input").blur((function(){i.find(t(".fpa-retail-header__search-input-error-container")).empty()}))}return n}(i,t(e).parent()))return;const a=new URL(window.location.href);Array.from(a.searchParams.keys()).forEach((t=>{a.searchParams.delete(t)})),window.history.replaceState({},"",a),a.searchParams.set("q",i);const n=`${t(e).parent().data("search-url")??"https://www.frasersproperty.com.au/Search"}?${a.searchParams.toString()}`;window.location.href=n,track("header",{text:"search",query:i})};function r(t,e){if(t.replace(/\s/g,"").length<3)return void e.find(".error-char-length").show();e.find(".error-char-length").hide();const i=new URL(window.location.href);Array.from(i.searchParams.keys()).forEach((t=>{i.searchParams.delete(t)})),window.history.replaceState({},"",i),i.searchParams.set("q",t);const a=`${e.data("search-url")??"https://www.frasersproperty.com.au/Search"}?${i.searchParams.toString()}`;window.location.href=a,track("header",{text:"search",query:t})}t(".fpa-retail-header__search-input button").on("click",(function(){o(this)})),t(".fpa-retail-header__search-input input[type=text]").on("keyup",(function(t){"Enter"!==t.key&&13!==t.keyCode||o(this)})),i.on("submit",(function(e){e.preventDefault();r(t(this).find("input:text").val(),t(this))})),i.find("input:text").on("keyup",(function(e){if("Enter"===e.key||13===e.keyCode){r(t(this).val(),t(this).closest("form"))}})),t(document).mouseup((function(e){const i=t(".fpa-retail-header__search.fpa-retail-header__search--display");i.is(e.target)||0!==i.has(e.target).length||(t(".fpa-retail-header__search").removeClass("fpa-retail-header__search--display"),a=!1,n(!1))})),i.find("input:text").on("input",(function(){const e=t(this).val();(!e||""===e.trim()||e.replace(/\s/g,"").length>=3)&&t(this).closest("form").find(".error-char-length").hide()}))})),$((()=>{if(0===$(".fpa-header-carousel").length)return;function t(t){const e=t.find(".carousel-cell");if(window.innerWidth>991)return void e.css("min-height","");let i=0;e.css("min-height",""),e.each((function(){const t=$(this).outerHeight();i=Math.max(i,t)})),window.innerWidth<390&&(i=Math.max(i,540)),window.innerWidth>=390&&window.innerWidth<440&&(i=Math.max(i,590)),i>0&&e.css("min-height",i+"px")}const e=$(".fpa-header-carousel__container");$.each(e,((e,i)=>{const a=$(i);a.find(".carousel-cell:first").css("opacity","1"),setTimeout((()=>{window.initializeCarousel(a),function(t){const e=t.data("flickity").slides.length<2;t.toggleClass("is-single-slide",e)}(a),t(a),$(window).on("resize",(()=>{t(a)}));const e=a.data("flickity");e&&e.slides.length>1&&0===a.find(".fpa-header-carousel__dots").length&&a.find(".flickity-page-dots").wrap('<div class="container fpa-header-carousel__dots"><div class="row"><div class="col"></div></div></div>')}),50)}))})),$((t=>{if(!t(".fpa-header").length)return;const e="fpa-header--openned";t(".fpa-header__locale-input .fpa-header__locale-select").select2({width:null,dropdownAutoWidth:!1,templateResult:function(e){return e.id?"0"==e.id?t('<span class="fpa-header__locale-item"><i class="fal fa-globe-asia"></i>Corporate</span>'):t(`<span class="fpa-header__locale-item"><img src="/assets/images/icons/flags/${e.element.value.toLowerCase()}.png"/>${e.text}</span>`):e.text},templateSelection:function(e){if(!e.id)return e.text;if("0"==e.id)return t('<span class="fpa-header__locale-selection"><i class="fal fa-globe-asia"></i>CO</span>');const i=t(`<span class="fpa-header__locale-selection"><img src="/assets/images/icons/flags/${e.element.value.toLowerCase()}.png"/>${e.id.toUpperCase()}</span>`);return e.element.dataset.targetLink&&window.location.replace(e.element.dataset.targetLink),i},minimumResultsForSearch:1e4,dropdownCssClass:"fpa-header__locale-dropdown"});let i=!1;t(".fpa-header__burger-menu-button").on("click",(function(){i=!i;const a=t(".fpa-header__menu-container");i?(t(this).addClass(e),t(".fpa-global-notification").addClass("afixTop"),a.fadeIn({duration:300,start:function(){t("body main, body footer, body header, .container-sticky, .fpa-header, .fpa-header__menu-container").addClass(e),t(this).addClass(e),t(this).css({display:"flex"})},complete:function(){a.removeClass("fpa-header__menu-container--closed"),a.css({display:""})}})):(t(".fpa-global-notification").removeClass("afixTop"),t(this).removeClass(e),a.fadeOut({duration:300,start:function(){t(this).css({display:"flex"})},complete:function(){a.css({display:""}),a.addClass("fpa-header__menu-container--closed"),t(`.${e}`).removeClass(e),window.resetStickyScroll()}}))}));window.addEventListener("windowConfiguration",(a=>{const n=t(".fpa-header__menu-container");"desktop"==a.detail.target?(i&&(t(`.${e}`).removeClass(e),n.css({display:""}),i=!1),n.removeClass("fpa-header__menu-container--closed"),window.removeSticky(t(".fpa-header__peak-container")),window.addSticky(n,"fpa-header__menu-container--sticky")):(n.addClass("fpa-header__menu-container--closed"),window.addSticky(t(".fpa-header__peak-container"),!1,!0),window.removeSticky(n,"fpa-header__menu-container--sticky"))}));const a=Handlebars.compile(t("#fpa-header-search-error").html()),n=function(e){const i=t(e).parent().find(t(".fpa-header__search-input input[type=text]")).val();if(function(e,i){const n={};n.isInsufficientCharacters=e?.replace(/\s/g,"")?.length<3,i.find(t(".fpa-header__search-input-error-container")).empty();const s=Object.values(n).includes(!0);if(s){const e=a(n);i.find(t(".fpa-header__search-input-error-container")).html(e),t(".fpa-header__search-input input").keyup((function(){(t(this).val().length>=3||0==t(this).val().length)&&i.find(t(".fpa-header__search-input-error-container")).empty()})),t(".fpa-header__search-input input").blur((function(){i.find(t(".fpa-header__search-input-error-container")).empty()}))}return s}(i,t(e).parent()))return;const n=new URL(window.location.href);Array.from(n.searchParams.keys()).forEach((t=>{n.searchParams.delete(t)})),window.history.replaceState({},"",n),n.searchParams.set("q",i);const s=`/${t(e).parent().data("search-url")??"search"}?${n.searchParams.toString()}`;window.location.href=s,track("header",{text:"search",query:i})};t(".fpa-header__search-input button").on("click",(function(){n(this)})),t(".fpa-header__search-input input[type=text]").on("keyup",(function(t){"Enter"!==t.key&&13!==t.keyCode||n(this)})),t(".fpa-header__logo a").on("click",(function(){track("header",{text:"logo"})})),t(".fpa-header__action-bar-desktop > a.btn.secondary:first-of-type").on("click",(function(){track("header",{text:"customer login"})})),t(".fpa-header__action-bar-desktop > a.btn.secondary:last-of-type").on("click",(function(){track("header",{text:"phone"})})),t(".fpa-header__main-menu a").on("click",(function(){track("main_menu",{text:t(this).text(),url:t(this).prop("href")})}))})),$((()=>{if(!$(".fpa-hotspot").length)return;let t=null;const e=()=>{const t=$(".fpa-hotspot__fullscreen-btn"),e=t.closest(".hotspot-container").find(".fpa-hotspot-controls");t.find(".fullscreen-icon").show(),t.find(".exit-fullscreen-icon").hide(),e.css("display","none"),t.css({position:"absolute",top:"10px",right:"10px","z-index":"1000"})},i=t=>{const e=t.target;document.querySelectorAll(".fpa-hotspot__hotspot").forEach((i=>{i===e?(i.classList.add("fpa-hotspot__hotspot--selected"),t.stopPropagation()):i.classList.remove("fpa-hotspot__hotspot--selected")}))};document.querySelectorAll(".fpa-hotspot__hotspot").forEach((t=>{t.addEventListener("focus",i),t.addEventListener("mouseenter",i)}));$(".fpa-hotspot").each((function(){$(this).find(".fpa-hotspot__hotspot").each((function(){$(this).find(".fpa-hotspot__button").hover((function(){$(this).next().css("animation","none")}),(function(){$(this).next().removeAttr("style")}))})),$(this).find(".fpa-hotspot__hotspot").each((function(){var t=$(this).find('div.fpa-hotspot__pulse[class*="colour-bg"]').css("background-color");$(this).find('div.fpa-hotspot__pulse[class*="colour-bg"]').prev(".fpa-hotspot__button").css("border-color",t)}))})),$(document).click((function(t){if($(t.target).closest(".fpa-hotspot__hotspot .fpa-hotspot__button").length>0)return!1;$(".fpa-hotspot").find(".fpa-hotspot__hotspot").removeClass("fpa-hotspot__hotspot--selected")})),window.addEventListener("windowConfiguration",(e=>{windowConfig=e.detail.target,"mobile"==e.detail.target?$(".fpa-hotspot").each((function(){$(this).find(".fpa-hotspot__hotspot").each((function(){$(this).data("top")<=40&&$(this).data("left")>25&&$(this).data("left")<78?$(this).removeClass("hotspot--top").addClass("hotspot--bottom"):$(this).data("left")<=25?$(this).removeClass("hotspot--top").addClass("hotspot--right"):$(this).data("left")>=78&&$(this).removeClass("hotspot--top").addClass("hotspot--left")}))})):(document.fullscreenElement&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()),t&&t.isOpen()&&t.close(),$(".hotspot-container").each((function(){const t=$(this);o(t),t.find(".fpa-hotspot-controls").css("display","none");const e=t.find(".fpa-hotspot__fullscreen-btn");e.find(".fullscreen-icon").show(),e.find(".exit-fullscreen-icon").hide(),e.css({position:"absolute",top:"10px",right:"10px","z-index":"1000"})})),$(".fpa-hotspot").each((function(){$(this).find(".fpa-hotspot__hotspot").each((function(){$(this).data("top")<=35&&$(this).data("left")>10&&$(this).data("left")<90?$(this).removeClass("hotspot--top").addClass("hotspot--bottom"):$(this).data("left")<=10?$(this).removeClass("hotspot--top").addClass("hotspot--right"):$(this).data("left")>=90&&$(this).removeClass("hotspot--top").addClass("hotspot--left")}))})))}));let a=4;const n=t=>{const e=t.find(".fpa-hotspot-controls"),i=t.find(".hotspot-wrapper"),n=t.find(".fpa-hotspot__image"),o=t.find(".fpa-hotspot__hotspot");a=4;const r=()=>{n.css("transform",`scale(${a})`),i.css("overflow",a>1?"scroll":"hidden")},l=()=>{o.each((function(){const t=$(this),e=parseFloat(t.attr("data-top")),i=parseFloat(t.attr("data-left"));t.css({top:e*a+"%",left:i*a+"%"})}))};e.find(".zoom-in, .zoom-in-icon").off("click"),e.find(".zoom-out, .zoom-out-icon").off("click"),e.find(".zoom-in, .zoom-in-icon").on("click",(()=>{a<7&&(a+=1,r(),l(),document.fullscreenElement&&i.css({height:"auto","min-height":"100vh"}))})),e.find(".zoom-out, .zoom-out-icon").on("click",(()=>{a>4&&(a-=1,r(),l())})),s(i)},s=t=>{let e=!1,i=0,a=0,n=0,s=0;t.off("mousedown touchstart mousemove touchmove mouseup touchend"),t.on("mousedown touchstart",(function(o){if(0===$(o.target).closest(".fpa-hotspot-controls, .fpa-hotspot__hotspot").length){e=!0;const r="mousedown"===o.type?o.pageX:o.originalEvent.touches[0].pageX,l="mousedown"===o.type?o.pageY:o.originalEvent.touches[0].pageY;i=r-t.offset().left,a=l-t.offset().top,n=t.scrollLeft(),s=t.scrollTop(),t.css("cursor","grabbing")}})),t.on("mousemove touchmove",(function(o){if(!e)return;o.preventDefault();const r="mousemove"===o.type?o.pageX:o.originalEvent.touches[0].pageX,l="mousemove"===o.type?o.pageY:o.originalEvent.touches[0].pageY,c=r-t.offset().left,d=l-t.offset().top,h=2*(c-i),p=2*(d-a);t.scrollLeft(n-h),t.scrollTop(s-p)})),t.on("mouseup touchend",(function(){e=!1,t.css("cursor","grab")}))};$(".hotspot-container").each((function(){const t=$(this);n(t)}));const o=t=>{const e=t.find(".hotspot-wrapper"),i=t.find(".fpa-hotspot__image"),n=t.find(".fpa-hotspot__hotspot");a=1,i.css("transform","scale(1)"),e.css("overflow","hidden"),e.scrollLeft(0).scrollTop(0),n.each((function(){const t=$(this),e=parseFloat(t.attr("data-top")),i=parseFloat(t.attr("data-left"));t.css({top:`${e}%`,left:`${i}%`})})),e.removeAttr("style")};function r(){const t=$(".fpa-hotspot__fullscreen-btn"),e=t.closest(".hotspot-container"),i=e.find(".hotspot-wrapper"),s=e.find(".fpa-hotspot__image"),r=e.find(".fpa-hotspot-controls");document.fullscreenElement?(t.find(".fullscreen-icon").hide(),t.find(".exit-fullscreen-icon").show(),r.css("display","flex"),t.css({position:"fixed",top:"10px",right:"10px","z-index":"9999"}),l(i,s),a=4,c(s,a),d(e.find(".fpa-hotspot__hotspot"),a),i.css({overflow:"scroll",height:"auto","min-height":"100vh"}),n(e)):(t.find(".fullscreen-icon").show(),t.find(".exit-fullscreen-icon").hide(),r.css("display","none"),t.css({position:"absolute",top:"10px",right:"10px","z-index":"1000"}),o(e),n(e))}function l(t,e){t.width()/t.height()>e.width()/e.height()?e.css({height:"100%",width:"auto",maxWidth:"none"}):e.css({width:"100%",height:"auto",maxHeight:"none"})}function c(t,e){t.css("transform",`scale(${e})`),t.closest(".hotspot-wrapper").css("overflow",e>1?"scroll":"hidden")}function d(t,e){t.each((function(){const t=$(this),i=parseFloat(t.attr("data-top")),a=parseFloat(t.attr("data-left"));t.css({top:i*e+"%",left:a*e+"%"})}))}$(".fpa-hotspot__fullscreen-btn").on("click",(function(){const i=$(this).closest(".hotspot-container")[0];if(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document){t||($(i),t=new tingle.modal({cssClass:["hotspot-fullscreen-modal"],closeMethods:["escape"],footer:!1,onClose:()=>{const t=$(".hotspot-container");o(t),e()}}));const s=$(i).clone();t.setContent(s[0]),h(s),t.open();const r=s.find(".fpa-hotspot__fullscreen-btn"),p=s.find(".fpa-hotspot-controls"),f=s.find(".hotspot-wrapper"),u=s.find(".fpa-hotspot__image");return r.find(".fullscreen-icon").hide(),r.find(".exit-fullscreen-icon").show(),p.css("display","flex"),r.css({position:"fixed",top:"10px",right:"10px","z-index":"9999",transform:"none"}),a=4,l(f,u),c(u,a),d(s.find(".fpa-hotspot__hotspot"),a),void n(s)}document.fullscreenElement?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),o($(i))):i.requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():i.msRequestFullscreen&&i.msRequestFullscreen()})),document.addEventListener("fullscreenchange",r),document.addEventListener("webkitfullscreenchange",r),document.addEventListener("mozfullscreenchange",r),document.addEventListener("MSFullscreenChange",r);const h=e=>{e.find(".fpa-hotspot__hotspot").each(((t,e)=>{$(e).on("focus mouseenter",i)})),e.on("click",(function(t){0===$(t.target).closest(".fpa-hotspot__hotspot .fpa-hotspot__button").length&&e.find(".fpa-hotspot__hotspot").removeClass("fpa-hotspot__hotspot--selected")})),e.find(".fpa-hotspot__fullscreen-btn").on("click",(function(){t.close()}))}})),$((t=>{0!==t(".fpa-house-and-land-package-card").length&&t(".fpa-house-and-land-package-card").each((function(){const e=t(this),i=window.initializeCarousel(t(".fpa-stock-search__card__gallery__carousel",this));function a(){const t=parseInt(e.find(".fpa-stock-search__card__lot-name").css("line-height")),i=e.find(".fpa-stock-search__card__lot-name").height();let a;switch(Math.round(i/t)){case 2:a=4;break;case 3:a=3;break;default:a=5}e.find(".fpa-stock-search__card__description").css("-webkit-line-clamp",a.toString())}a(),t(window).on("resize",a),t(".fpa-stock-search__card__gallery__thumbnails-item",this).on("click",(function(){const e=parseInt(t(this).data("index"));i.select(e)}))}))})),$((()=>{if(!$(".fpa-image-gallery").length)return;$(window).on("load",(function(){$(".fpa-image-gallery").each((function(){var t;t=$(this),$(".fpa-image-gallery__image-wrapper",t).each((function(){const t=new Image;t.src=$(this).attr("href"),t.onload=function(){const e=t.width,i=t.height;$(this).attr("data-pswp-width",e),$(this).attr("data-pswp-height",i)}.bind(this)})),$(this).addClass("fpa-image-gallery--loaded"),function(t){let e=new URL(window.location.href).searchParams.get("gallery-tab");return tab=e&&t.find(`div[data-content-id='${e}']`).length?t.find(`div[data-content-id='${e}']`):t.find(".fpa-tabs__option",t).first()}($(this)).trigger("click",[!0]),setTimeout((()=>function(t){const e=new URL(window.location.href);let i=e.searchParams.get("gallery-image");if(null==i)return null;let a=e.searchParams.get("gallery-tab")??t.find(".fpa-tabs__option",t).first().data("content-id");return $(`#${a}`).find(`.fpa-image-gallery__image-wrapper[data-gallery-image='${i}']`)}($(this))?.[0]?.click()),0)}))}));const t="fpa-image-gallery__image-container--last_visible";function e(e,i,a){const n="fpa-image-gallery__image-container--displayed";$(".fpa-image-gallery__grid-col",a).each((function(){const t=$(".fpa-image-gallery__image-container",this),a=(t.length,e*i),s=e*(i+1);t.slice(a,s).addClass(n)}));const s=$(a).find(`.${n}`);$(a).find(".label-container").empty(),$(a).find(`.${t}`).removeClass(t);const o=s.length,r=s.last(),l=$(".fpa-image-gallery__image-container",a).length;if(l-o<=0)return;const c=`<div class='label-container'><p class='view-more-label'>View more</p><p class='view-more-number'>+${l-o}</p></div>`;r.append(c),r.on("click",(function(){window.scrollTo(window.scrollX,window.scrollY+1),$(this).find(".lazyImg").lazy()})),r.addClass(t)}$(".fpa-image-gallery").length&&$(".fpa-image-gallery").each((function(){if(!$(".fpa-tabs__option",this).length)return;const i=$(this);i.find(".fpa-tabs__option").length<2&&i.find(".fpa-tabs__option-row").hide(),i.on("click",".fpa-tabs__option",(function(t,e){if(e)return;const i=$(this).data("content-id"),a=new URL(window.location.href);a.searchParams.set("gallery-tab",i),window.history.pushState({},"",a)})),i.find(".fpa-image-gallery__grid").each((function(i){const a={gallery:$(this)[0],pswpModule:PhotoSwipe,children:"a",mainClass:"fpa-image-gallery__modal",initialZoomLevel:"fit",secondaryZoomLevel:"2.5",tapAction:"close",zoomSVG:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true" fill="#fff">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M208 48a160 160 0 1 1 0 320 160 160 0 1 1 0-320zm0 368c48.8 0 93.7-16.8 129.1-44.9l124 124 17 17L512 478.1l-17-17-124-124C399.2 301.7 416 256.8 416 208C416 93.1 322.9 0 208 0S0 93.1 0 208S93.1 416 208 416zm-24-96h48V296 232h64 24V184H296 232V120l0-24H184v24 64H120 96v48h24 64v64 24z"/></svg>',closeSVG:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" aria-hidden="true" fill="#fff">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M323 137l17-17L306 86.1l-17 17-119 119L51 103l-17-17L.1 120l17 17 119 119L17 375 .1 392 34 425.9l17-17 119-119L289 409l17 17L339.9 392l-17-17-119-119L323 137z"/></svg>'},n=new PhotoSwipeLightbox(a);n.on("uiRegister",(function(){n.pswp.ui.registerElement({name:"download-button",order:10,isButton:!0,tagName:"a",html:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true" fill="#fff">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M280 24V0H232V24 294.1l-95-95-17-17L86.1 216l17 17L239 369l17 17 17-17L409 233l17-17L392 182.1l-17 17-95 95V24zM128.8 304H48 0v48V464v48H48 464h48V464 352 304H464 383.2l-48 48H464V464H48V352H176.8l-48-48zM432 408a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"/></svg>',onInit:(t,e)=>{t.setAttribute("download",""),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"),e.on("change",(()=>{t.href=e.currSlide.data.src}))}})})),n.init();const s=this;let o=0;$(".fpa-image-gallery__image-wrapper",s).each((function(t){$(this).attr("data-gallery-image",t)})),$(this).find(".fpa-image-gallery__image-container a").each((function(){$(this).on("click",(function(){const t=new Image;t.src=$(this).attr("href"),t.onload=function(){const e=t.width,i=t.height;$(this).attr("data-pswp-width",e),$(this).attr("data-pswp-height",i)}.bind(this)}))})),e(3,o,s);const r=t=>{let e=0,i="100%";const a=$(window).height(),n=$(window).width(),s=t.height(),o=t.width(),r=$(".fpa-image-gallery__modal-text").outerHeight(),l=$(".fpa-image-gallery__modal-text").outerWidth(),c=(a-s)/2;c>r?e=0:n>576&&a>576&&(o-l)/2>200?(e=0,i=(o-l)/2*.8+"px"):e=r-c,t.find(".disclaimer").css("bottom",`${e}px`),t.find(".disclaimer").css("width",i)};n.on("contentActivate",(({content:t})=>{const e=new URL(window.location.href);e.searchParams.set("gallery-image",t.index),window.history.pushState({},"",e),$(".fpa-image-gallery__modal-text").remove();const i=t.slide.data.element.getAttribute("data-title"),a=t.slide.data.element.getAttribute("data-subtitle");if(!i&&!a)return;$(".pswp__scroll-wrap").append('<div class="fpa-image-gallery__modal-text"><div class="title"></div><div class="subtitle"></div></div>'),$(".fpa-image-gallery__modal-text > .title").text(i),$(".fpa-image-gallery__modal-text > .subtitle").text(a);const n=t.slide.data.element.nextElementSibling.innerHTML;$(t.slide.container).width(t.displayedImageWidth),$(t.slide.container).height(t.displayedImageHeight),$(t.slide.container).append('<div class="disclaimer"><p class="text-small"></p></div>'),$(t.slide.container).find(".disclaimer .text-small").text(n),r($(t.slide.container))})),n.on("imageSizeChange",(({content:t})=>{const e=$(t.element);e.parent().width(t.displayedImageWidth),e.parent().height(t.displayedImageHeight)})),$(window).on("resize",(function(){$(".pswp__item[aria-hidden=false]").length>0&&r($(".pswp__item[aria-hidden=false] .pswp__zoom-wrap"))})),n.on("close",(()=>{$(".fpa-image-gallery__modal-text").remove();const t=new URL(window.location.href);t.searchParams.delete("gallery-image"),window.history.pushState({},"",t)})),$(this).on("click",`.${t}`,(function(){o++,e(3,o,s)}))}))}))})),$((()=>{$(".fpa-image-slider").length&&$(".fpa-image-slider").each((function(){const t=this;$(".fpa-image-slider__slider",t).on("input change",(e=>{const i=e.target.value;$(".fpa-image-slider__image-container--left",t).css("clip-path",`polygon(0 0, ${i}% 0, ${i}% 100%, 0% 100%)`),$(".fpa-image-slider__thumb",t).css("left",`${i}%`)}));const e=function(t,e){e?$(".fpa-image-slider__selected",t).removeClass("fpa-image-slider__selected--active"):($(".fpa-image-slider__selected",t).addClass("fpa-image-slider__selected--active"),$(t).attr("tabindex",-1).focus()),$(".fpa-image-slider__dropdown",t).css("display",e?"none":"block"),$(".fpa-image-slider__selected-icon-up",t).css("display",e?"none":"block"),$(".fpa-image-slider__selected-icon-down",t).css("display",e?"block":"none")};$(".fpa-image-slider__select",t).on("focusout",(function(){e(this,!0),$(".fpa-image-slider__dropdown",this).data("active",!1)})),$(".fpa-image-slider__select",t).on("click",(function(){const t=$(".fpa-image-slider__dropdown",this).data("active");e(this,t),$(".fpa-image-slider__dropdown",this).data("active",!t)}));const i=function(e){const i=$("img",e).attr("src"),a=$("span",e).text(),n=$(e).data("img-src"),s=$(e).data("img-disclaimer"),o=$(e).parents(".fpa-image-slider__select"),r=o.data("select-for");$(`${r} img`,t).attr("src",n),$(`${r} label`,t).text(s);const l=o.find(".fpa-image-slider__selected");l.find(".fpa-image-slider__select-icon").attr("src",i),l.find(".fpa-image-slider__selected-text").text(a)};$(".fpa-image-slider__dropdown .fpa-image-slider__option",t).on("click",(function(){i(this)})),$(".fpa-image-slider__select",t).each((function(){1===$(this).find(".fpa-image-slider__dropdown .fpa-image-slider__option").length&&$(this).addClass("fpa-image-slider__select--one-option");const t=$(this).find(".fpa-image-slider__dropdown .fpa-image-slider__option").first();i(t)}));const a=()=>{$(".fpa-image-slider__image-container--left",t).css("clip-path","polygon(0 0, 50% 0, 50% 100%, 0% 100%)"),$(".fpa-image-slider__slider",t).val("50"),$(".fpa-image-slider__thumb",t).css("left","50%");const e=$(".fpa-image-slider__slider",t).width();if(0==e)return;const i=100*((e-(e-($(window).width()>768?56:36)))/e),a=i/2,n=100-i/2;$(".fpa-image-slider__slider",t).attr("min",a),$(".fpa-image-slider__slider",t).attr("max",n)};a(),window.addEventListener("resize",a);const n=$(t).parents(".fpa-tabs").length>0;$(".fpa-image-slider__body",t).addClass(n?"container":"")}))})),$((()=>{$(".fpa-instagram").length&&($(".fpa-instagram__bottom-posts .fpa-instagram__article").each((function(){var t=$(this).find(".fpa-instagram__post-text").html();if(t.length>60){var e='<div class="truncate-text">'+t.substr(0,60)+'<span class="read-more">... read more</span></div>';$(this).find(".fpa-instagram__post-text").html(e)}})),$(".fpa-instagram__right-posts .fpa-instagram__article").each((function(){var t=$(this).find(".fpa-instagram__post-text").html();if(t.length>160){var e='<div class="truncate-text">'+t.substr(0,160)+'<span class="read-more">... read more</span></div>';$(this).find(".fpa-instagram__post-text").html(e)}})))})),$((()=>{if(!$(".fpa-local-nav").parents(".container").length)return;window.addEventListener("windowConfiguration",(t=>{window.removeSticky($(".fpa-local-nav").parents(".container")),window.addSticky($(".fpa-local-nav").parents(".container"),"fpa-local-nav--sticky",!1,"fpa-local-nav--sticky-parent"),"desktop"==t.detail.target&&$(".fpa-site-nav").length&&!$(".fpa-global-notification").length&&$(window).on("scroll",(function(){var t=$(".fpa-site-nav").height();$(".container-sticky").css("top",t).css("transform","none")}))}))})),$((()=>{$(".fpa-map-amenities").length&&$(".fpa-map-amenities").each((function(){const t=$(this);if(null==t.data("lat")||null==t.data("long"))return;let e=null,i={},a=null,n=null;const s={lat:t.data("lat"),lng:t.data("long")},o=$(this).data("default-zoom")||15;let r=null;window.addEventListener("maps",(l=>{r=new google.maps.InfoWindow,e=new google.maps.Map(document.getElementById("map"),{center:s,zoom:o,streetViewControl:!1,clickableIcons:!1,maxZoom:15,styles:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}]}),a=new google.maps.Marker({position:new google.maps.LatLng(t.data("lat"),t.data("long")),icon:t.data("marker"),clickable:!1,map:e}),t.data("polygon-path")?.length>2&&new google.maps.Polygon({paths:t.data("polygon-path"),strokeColor:t.data("polygon-stroke"),strokeOpacity:.8,strokeWeight:2,fillColor:t.data("polygon-fill"),fillOpacity:.35}).setMap(e);const c=t.data("amenity"),d=[];for(let t=0;t<c.length;t++){const a=c[t],{lat:n,long:s,icon:o,category:l,label:h,description:p}=a,f={url:o,scaledSize:new google.maps.Size(40,60)},u=new google.maps.Marker({position:new google.maps.LatLng(n,s),icon:f,map:e});u.setVisible(!1),(h||p)&&u.addListener("click",(()=>{$(`.fpa-map-amenities__marker-info[data-marker-id=${t}]`).length>0?r.close():(r.open({anchor:u,map:e}),r.setContent(`<div class="fpa-map-amenities__marker-info" data-marker-id=${t}><div class="title">${h??""}</div><div class="description">${p??""}</div></div>`))})),i[l]?i[l].push({marker:u,popup:r}):i[l]=[{marker:u,popup:r}],d.push(u)}n=new MarkerClusterer(e,d,{styles:[{width:60,height:60,url:t.data("cluster-sm"),textColor:"#fff",textSize:13},{width:66,height:66,url:t.data("cluster-md"),textColor:"#fff",textSize:13},{width:72,height:72,url:t.data("cluster-lg"),textColor:"#fff",textSize:13}],ignoreHidden:!0,gridSize:40,maxZoom:14,zoomOnClick:!1}),n.setCalculator((function(t){var e=t.length;return{text:e,index:e<=5?1:e<=10?2:3}})),google.maps.event.addListener(n,"click",(function(t){const i=t.center_.lng(),a=t.center_.lat();let n=new google.maps.LatLngBounds;const s=t.getMarkers();for(let t=0;t<s.length;t++){const e=s[t];n.extend(e.getPosition())}e.setCenter({lat:a,lng:i}),e.fitBounds(n,10)}))}),!1),$(".fpa-map-amenities__legend-scroll--up").on("click",(function(){$(".fpa-map-amenities__legend").animate({scrollTop:0})})),$(".fpa-map-amenities__legend-scroll--down").on("click",(function(){const t=$(".fpa-map-amenities__legend").prop("scrollHeight"),e=$(".fpa-map-amenities__legend").height();$(".fpa-map-amenities__legend").animate({scrollTop:Math.ceil(t-e)})}));const l=function(){if($(window).width()<992)return $(".fpa-map-amenities__legend-scroll--up").css("display","none"),$(".fpa-map-amenities__legend-scroll--down").css("display","none"),void $(".fpa-map-amenities__legend").css("width","100%");$(".fpa-map-amenities__legend").css("width","auto");const t=$(".fpa-map-amenities__legend").prop("scrollHeight"),e=$(".fpa-map-amenities__legend").height();if(t===e)return;const i=$(".fpa-map-amenities__legend").scrollTop();$(".fpa-map-amenities__legend-scroll--up").css("display",Math.floor(i)>0?"flex":"none"),$(".fpa-map-amenities__legend-scroll--down").css("display",Math.ceil(i+e)<t?"flex":"none")};l(),$(window).on("resize",l),$(".fpa-map-amenities__legend").on("scroll",l),$(".fpa-map-amenities__legend-item",t).mouseover((function(){$(window).width()<992?$(this).removeClass("fpa-map-amenities__legend-item--show"):($(".fpa-map-amenities__legend",t).css("width","100%"),$(this).addClass("fpa-map-amenities__legend-item--show"))})).mouseout((function(){$(this).removeClass("fpa-map-amenities__legend-item--show"),$(window).width()<992||$(".fpa-map-amenities__legend",t).css("width",$(window).width()>992?"auto":"100%")})),$(".fpa-map-amenities__legend-item",t).on("click",(function(){$(this).toggleClass("fpa-map-amenities__legend-item--active");let t=new google.maps.LatLngBounds;t.extend(a.getPosition());let r=!1;$(".fpa-map-amenities__legend-item").each((function(){const e=$("h6",this).text();if(null==i[e])return;let a=$(this).hasClass("fpa-map-amenities__legend-item--active");for(const{marker:n,popup:s}of i[e])n.setVisible(a),a?(t.extend(n.getPosition()),r=!0):s.close()})),r?e.fitBounds(t):(e.setCenter(s),e.setZoom(o)),setTimeout((()=>{n.repaint()}),500)})),window.addMapsScript()}))})),$((t=>{const e="fpa-mega-menu--openned";let i="",a=null;t(".fpa-mega-menu__tab-heading").each((function(){const n=t(this);n.on("click",(function(){const s=n.parents(".fpa-mega-menu__tab"),o=s.children(".fpa-mega-menu__content");if(!o)return;if(o.hasClass(e))return s.find(".fpa-mega-menu__tab-heading").removeClass(e),o.slideUp({duration:350,complete:function(){t(this).css({display:""}),s.removeClass(e),s.find(`.${e}`).removeClass(e)}}),dimmer(t("body main"),!1),dimmer(t("body footer"),!1),void(a=null);let r=!1;"desktop"==i&&(a&&(a.slideUp({durtion:0,complete:function(){t(this).css({display:""})}}),r=!0),t(`.${e}`).removeClass(e),a=o),o.slideDown({duration:r?0:350,start:function(){if(n.parent().addClass(e),n.addClass(e),o.addClass(e),t("body header, body main").addClass(e),"desktop"==i){const e=()=>{a&&a.parents(".fpa-mega-menu__tab").children(".fpa-mega-menu__tab-heading").trigger("click")};dimmer(t("body main"),!0,e),dimmer(t("body footer"),!0,e)}},complete:function(){t(this).css({display:""})}})}))}));window.addEventListener("windowConfiguration",(n=>{i=n.detail.target,t(`.${e}`).removeClass(e),"mobile"==n.detail.target?(dimmer(t("body main"),!1),dimmer(t("body footer"),!1),a&&(a.slideUp(0),a=null)):(t(".fpa-mega-menu__tab-heading").each((function(){const e=t(this).parents(".fpa-mega-menu__tab").children(".fpa-mega-menu__content");e&&e.slideUp(0)})),a&&(a.slideUp(0),a=null,dimmer(t("body main"),!1),dimmer(t("body footer"),!1)))})),t(".fpa-mega-menu__column-item").on("click",(function(){track("mega_menu",{text:t(this).find("h6").text().trim(),url:t(this).prop("href"),department:t(this).parents(".fpa-mega-menu__tab.fpa-mega-menu--openned").find(".fpa-mega-menu__tab-heading.fpa-mega-menu--openned p").text().trim()})}))})),$((()=>{if(!$(".retail-offers-listing").length)return;const t="sf-",e="all",i={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}},a={method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}},n=Handlebars.compile($("#retail-offers-listing-filters-container").html()),s=Handlebars.compile($("#retail-offers-listing-filters").html()),o=Handlebars.compile($("#retail-offers-listing-result-count").html()),r=Handlebars.compile($("#retail-offers-listing-pages").html()),l=Handlebars.compile($("#retail-offers-listing-pills").html());$(".retail-offers-listing").each((function(){const c=$(this),d=c.data("search-filter-endpoint"),h=c.data("search-query-endpoint");let p=null,f=null,u="",g={},m={},_={},b=1,y=!1;const w=async(t=!0,i=!0)=>{c.find(".retail-offers-listing__results__container").empty();const a=[];for(const t in g){const i=[];for(const a in g[t])a!=e&&i.push(a);i.length&&a.push({key:t,options:i})}if(t){c.find(".retail-offers-listing__filters__filter__count").fadeOut({duration:1200});try{const t=await P("all");v(t)}catch(t){window.presentToast("error","Unable to fetch search filters.")}}if(i)try{const t=await D("all",a);k(t)}catch(t){window.presentToast("error","Unable to fetch search results.")}},x=()=>{const t=new URL(window.location.href),i=[];for(let a of Object.keys(g)){const n=_.filters.find((t=>t.key==a));if(!n)continue;const s=Object.keys(g[a]).filter((t=>t!==e));for(let t of s){const e=n.options.find((e=>decodeURIComponent(e.key)===t));if(!e){delete g[a][t];continue}const s={canRemove:"radio"!=n.type,label:orDefault(e.pill,e.name),filterKey:n.key,optionKey:e.key};s.canRemove?i.push(s):i.unshift(s)}const o=`sf-${a}`;if(s.length){const e=s.map((t=>{const e=n.options.find((e=>decodeURIComponent(e.key)===t));return e?e.key:encodeURIComponent(t)}));t.searchParams.set(o,e.join(","))}else t.searchParams.delete(o)}const a=t.toString().replace(/%2526/g,"%26");window.history.replaceState({},"",a),c.find(".retail-offers-listing__results__pills").empty().append(l({pills:i})).find("span i").on("click",(function(){const t=$(this).parent(),e=t.data("filter-key"),i=t.data("option-key");c.find(`input[data-filter-key="${e}"][data-option-key="${i}"]`).prop("checked",!1).trigger("change",["pill"])}))},v=t=>{if(t){for(const e of t.filters){const t=g[e.key]=orDefault(g[e.key],{});for(const i of e.options){const e=decodeURIComponent(i.key);t[e]?i.count?i.checked=!0:(delete t[e],i.checked=!1):i.checked=!1}if(!Object.keys(t).length){const i=e.options[0],a=decodeURIComponent(i.key);i.checked=t[a]=!0}}0==$(".retail-offers-listing__filters").length&&c.find(".retail-offers-listing__body").prepend(n()),y&&(c.find(".retail-offers-listing__radio-button__filters").show(),c.find(".retail-offers-listing__apply").show()),c.find(".retail-offers-listing__filters__options").empty().append(s(t)),c.find(".retail-offers-listing__filters__filter__count").fadeIn({duration:300}),c.find("input[data-filter-key]").on("change",(function(t,i){const a=$(this),n=a.data("filter-key"),s=decodeURIComponent(a.data("option-key")),o=_.filters.find((t=>t.key==n)),r=g[n]=orDefault(g[n],{});switch(o.type){case"radio":g[n]={[s]:!0};break;case"checkbox":if(a.prop("checked")?r[s]=!0:delete r[s],Object.keys(r).length)if(s==e)for(let t of Object.keys(r)){if(t==e)continue;const i=encodeURIComponent(t);c.find(`input[data-filter-key="${n}"][data-option-key="${i}"]`).prop("checked",!1),delete r[t]}else c.find(`input[data-filter-key="${n}"][data-option-key="all"]`).prop("checked",!1),delete r.all;else{const t=o.options[0];r[decodeURIComponent(t.key)]=!0,c.find(`input[data-filter-key="${n}"][data-option-key="${t.key}"]`).prop("checked",!0)}break}if(!y||"pill"===i){x();const t=0==c.find(".retail-offers-listing__filters:visible").length||"desktop"===u;b=1,w(!0,t)}})),_=t,x()}},k=t=>{b=t.page;const e=new URL(window.location.href);return e.searchParams.set("page",b),window.history.replaceState({},"",e),M(t),t},C=t=>{if(!t)return!1;const e=new Date(t);e.setHours(23,59,59,999);const i=(e-new Date)/864e5;return i<=14&&i>=0},S=t=>{if(!t)return!1;const e=new Date(t),i=new Date;e.setHours(0,0,0,0),i.setHours(0,0,0,0);const a=Math.floor((i-e)/864e5);return a>=0&&a<10},M=t=>{const e=c.find(".retail-offers-listing__results__container");e.empty();let i=[];if(t.results?.length){i=t.results.map((t=>({...t,isEndingSoon:C(t.endDate),isNew:S(t.startDate)})));const e=$(".retail-offers-listing__sort-dropdown").val();i=T(i,e);const a=8*(b-1),n=a+8,s=i.slice(a,n);t.totalRows=i.length,t.pageCount=Math.ceil(i.length/8),t.pageSize=8,t.results=s}if(c.find(".retail-offers-listing__results__count").empty().append(o?o({resultsShowCount:t.totalRows,queryString:""}):""),$("#retail-offers-listing-results-pagination").empty(),t.pageCount>1){const a=a=>{b=a;const s=8*(b-1),o=s+8,l=i.slice(s,o),c=new URL(window.location.href);c.searchParams.set("page",b),window.history.pushState({},"",c),$("html, body").animate({scrollTop:$(".retail-offers-listing").offset().top},500),e.empty().append(r?r({results:l,error:l.length>0||"error-zero-result",queryString:""}):"");new Pagination(b,t.pageCount,$("#retail-offers-listing-results-pagination")).generateHtml(),n()},n=()=>{c.find("#retail-offers-listing-results-pagination a[data-num]").click((function(t){t.preventDefault();const e=$(this).data("num");a(e)})),c.find(".fpa-pagination__prev").click((function(t){t.preventDefault(),b>1&&a(b-1)})),c.find(".fpa-pagination__next").click((function(e){e.preventDefault(),b<t.pageCount&&a(b+1)}))};new Pagination(b,t.pageCount,$("#retail-offers-listing-results-pagination")).generateHtml(),n()}e.append(r?r({results:t.results,error:t.results?.length>0||"error-zero-result",queryString:""}):"")},P=t=>{p&&p.abort();let e=p=new AbortController;const n=d.endsWith(".json")?{...a,signal:e.signal}:{...i,signal:e.signal,body:JSON.stringify({query:t})};return loadJson(d,n,null).catch((t=>(e.signal.aborted,null)))},D=(t,e)=>{f&&f.abort();let n=f=new AbortController;const s=h.endsWith(".json")?{...a,signal:n.signal}:{...i,signal:n.signal,body:JSON.stringify({query:t,filters:e,page:b,pageSize:8})};return loadJson(h,s).catch((t=>(n.signal.aborted,null)))},T=(t,e)=>t.sort(((t,i)=>{const a=new Date;switch(a.setHours(0,0,0,0),e){case"recently-added":if(!t.startDate&&!i.startDate)return 0;if(!t.startDate)return 1;if(!i.startDate)return-1;const e=new Date(t.startDate),n=new Date(i.startDate);e.setHours(0,0,0,0),n.setHours(0,0,0,0);const s=e>a,o=n>a,r=e.getTime()===a.getTime(),l=n.getTime()===a.getTime();return s!==o?o?1:-1:r!==l?l?1:-1:n-e;case"ending-soon":if(!t.endDate&&!i.endDate)return 0;const c=t.endDate?new Date(t.endDate):null,d=i.endDate?new Date(i.endDate):null;c&&c.setHours(23,59,59,999),d&&d.setHours(23,59,59,999);const h=c&&c<a,p=d&&d<a;return c&&d?h!==p?h?1:-1:h&&p?d-c:c-d:c||!d||p?d||!c||h?!c&&p?-1:!d&&h?1:0:-1:1;default:return 0}}));$(".retail-offers-listing__sort-dropdown").on("change",(function(){w(!1,!0)})),c.find(".retail-offers-listing__radio-button__filters").off().on("click",(function(){c.find(".retail-offers-listing__filters").fadeIn("slow"),c.find(".retail-offers-listing__mobile-modal-overlay").fadeIn("slow"),c.find(".retail-offers-listing__apply button").off().on("click",L),c.find(".retail-offers-listing__mobile-header a").on("click",(function(){g={},c.find("input[data-filter-key][data-option-key]").prop("checked",!1),v(_)})),c.find(".retail-offers-listing__mobile-header i, .retail-offers-listing__mobile-modal-overlay").on("click",(function(){g=JSON.parse(JSON.stringify(m)),v(_),c.find(".retail-offers-listing__filters").fadeOut({duration:200}),c.find(".retail-offers-listing__mobile-modal-overlay").hide()}))}));const L=function(){c.find(".retail-offers-listing__filters").fadeOut({duration:200}),c.find(".retail-offers-listing__mobile-modal-overlay").hide(),w(!1,!0).then(x)};$(".retail-offers-listing__sort-dropdown").each((function(){$(this).select2({minimumResultsForSearch:1/0,width:"200px"}).data("select2").$dropdown.addClass("sorting-dropdown")})),window.addEventListener("windowConfiguration",(function(t){switch(u=t.detail.target,t.detail.target){case"desktop":y=!1,c.find(".retail-offers-listing__filters").show(),c.find(".retail-offers-listing__apply").hide();break;case"mobile":y=!0,c.find(".retail-offers-listing__apply").show(),c.find(".retail-offers-listing__filters").hide();break}})),(()=>{const e=new URL(window.location.href);for(const i of Array.from(e.searchParams.keys()).filter((e=>e.startsWith(t)))){const a=i.substring(t.length),n=g[a]=orDefault(g[a],{});e.searchParams.get(i).split(",").forEach((t=>{const e=decodeURIComponent(t);n[e]=!0}))}const i=parseInt(e.searchParams.get("page"));isNaN(i)?(b=1,e.searchParams.set("page",b),window.history.replaceState({},"",e)):b=i,w()})()}))})),jQuery(document).ready((t=>{if(0===t("#sample-pagination").length)return;new Pagination(1,10,t("#sample-pagination")).generateHtml()})),$((()=>{$(".fpa-personalization-cards").length&&$(".fpa-personalization-cards").each((function(){const t=$(".fpa-personalization-cards__cards",this);if(t.attr("class").indexOf("colour-bg--")){const e=t.css("background-color");t.find(".fpa-personalization-cards__card").css("background-color",e),t.attr("style","background-color: transparent !important")}$(".fpa-personalization-cards__card",this).each((function(){const t=this;if($(this).find('.fpa-personalization-cards__line[class*="colour-bg"]').length){const e=$(".fpa-personalization-cards__content",t).css("color")??"#3f3b3b",i=$('.fpa-personalization-cards__line[class*="colour-bg"]',t).css("background-color");$(t).hover((function(){$(".fpa-personalization-cards__content",t).css("color",i)}),(function(){$(".fpa-personalization-cards__content",t).css("color",e)}))}})),$("link[href='/assets/corporate/css/project.css']").length?$(".fpa-personalization-cards__card").each((function(){var t=$(this).find('.fpa-personalization-cards__line[class*="colour-bg"]').css("background-color");$(this).hover((function(){$(this).find('div.fpa-personalization-cards__line[class*="colour-bg"]').length&&$(this).css("border-color",t)}),(function(){$(this).css("border-color","")}))})):$(".fpa-personalization-cards__card").each((function(){const t=this;$(t).hover((function(){$(this).find('div.fpa-personalization-cards__line[class*="colour-bg"]').length<1&&$(".fpa-personalization-cards__content",t).css("color","#ed1c24")}),(function(){$(".fpa-personalization-cards__content",t).css("color","#3f3b3b")}))}))}))})),$((()=>{$(".fpa-card-profile-team").length&&($(".fpa-card-profile-team").each((function(){$(".fpa-card-profile-team__cta",this)?.text().length<=0&&($(this).removeClass("modal-source"),$(this).addClass("fpa-card-profile-team--disable-interact"),$(this).removeData("modal-content-id"),$(this).removeAttr("data-modal-content-id"))})),$(".fpa-card-profile-team__contact a").on("click",(function(t){t.stopPropagation()})),$(".fpa-card-profile-team").each((function(){var t=$(this).find(".fpa-card-profile-team__blurb p").text().replace(/ +/g," ").trim().split(" ");if(t.length>=20){var e=t.splice(0,20).join(" ").trim()+"...";$(this).find(".fpa-card-profile-team__blurb p").text(e)}})))})),$((t=>{if(0===t(".fpa-project-footer__link-list-header").length)return;t("#toggleMobileNav").on("click",(function(){t("body").toggleClass("mobile-nav-open")}));const e=function(){t(this).toggleClass("open").next().stop(!1,!0).slideToggle(300)};window.addEventListener("windowConfiguration",(function(i){"mobile"===i.detail.target?(t(".fpa-project-footer__link-list-header").on("click",e).next().stop(!1,!0).slideUp(0),t(".fpa-project-footer__link").on("keypress",(function(e){"13"===e.code&&t(e.currentTarget).find(".fpa-project-footer__link-text").click()}))):(t(".fpa-global-nav__secondary-menu").removeAttr("style"),t(".fpa-project-footer__link-list-header").removeClass("open").off("click",e).next().stop(!1,!0).slideDown(0),t(".fpa-project-footer__link").off())}))})),$((t=>{if(!t(".fpa-site-nav").length)return;const e="fpa-project-mega-menu--openned",i=350;let a="",n=null;const s=t(".fpa-global-header"),o=t(".fpa-site-nav");t(".fpa-video-splash").length||o.css("top",s.outerHeight()).css("opacity",1),t(window).on("scroll",(function(){if("desktop"===a){y();const e=t(".fpa-global-header").hasClass("nav-up")?0:t(".fpa-global-header").height(),i=t(".fpa-site-nav").height();t(".fpa-project-mega-menu__content").css("top",`${e+i}px`),S()}else t(".fpa-project-mega-menu__content").css("top","0")}));var r,l,c=t(".fpa-project-mega-menu__tabs.desktop > .container"),d=t(".fpa-project-mega-menu__overflow-btn"),h=t(".fpa-site-nav__search-btn"),p=!1,f=t(".fpa-project-mega-menu__tabs.desktop > .container > .links"),u=t(".fpa-project-mega-menu__tabs.desktop > .container > .hidden-links"),g=0,m=0,_=[];function b(){const e=t(".fpa-project-mega-menu__tabs button.hidden").length>0?0:t(".fpa-project-mega-menu__tabs.desktop .links + button").outerWidth();var i=0;t(".fpa-project-mega-menu__btn").each((function(){i+=t(this).outerWidth()})),r=c.width()-i-e,l=f.children().length,_[l-1]>r?(f.children().last().prependTo(u),l-=1,b()):r>_[l]&&(u.children().first().appendTo(f),l+=1,b()),l===g?d.addClass("hidden"):d.removeClass("hidden")}function y(){t("body main, body footer").removeClass("dimmed").removeClass("dimmed__in"),dimmer(t("body main"),!1),dimmer(t("body footer"),!1),t(`.${e}`).each((function(){t(this).removeClass(e)})),u.addClass("hidden"),n&&(n.slideUp(0),n=null)}function w(e){e?t("body main, body footer").addClass("dimmed").addClass("dimmed__in"):t("body main, body footer").removeClass("dimmed").removeClass("dimmed__in"),dimmer(t("body main"),e),dimmer(t("body footer"),e)}f.children().each((function(){const e=t(".fpa-project-mega-menu__tab-heading >p, .fpa-project-mega-menu__tab-heading >a",this).text().length,i=Math.ceil(9.5*e+25);m+=i,g+=1,_.push(m)}));let x=!1;t(".fpa-site-nav__project-logo .menu-btn").on("click",(function(){x=!x;const a=t(".fpa-project-mega-menu");if(x)t(this).addClass(e),a.fadeIn({duration:i,start:function(){t(".container-sticky, .fpa-site-nav, .fpa-project-mega-menu").addClass(e),t(this).addClass(e),t(this).css({display:"flex"}),t(".fpa-site-nav.fpa-project-mega-menu--openned").css("top",0),s.css("z-index","999"),o.css("z-index","1000"),t("ul.links").removeClass("back"),a.removeClass("fpa-site-nav--variation")},complete:function(){a.removeClass("fpa-project-mega-menu--closed"),a.css({display:""})}}),t(".menu-btn.fpa-project-mega-menu--openned").on("click",(function(){t("ul.links").removeClass("back"),a.removeClass("fpa-site-nav--variation"),o.css("position","fixed"),t(".fpa-site-nav.nav-down.fpa-project-mega-menu--openned").css("top","0"),t("footer, main").css("height","")})),setTimeout((function(){t(".fpa-project-mega-menu__content").css("height","0")}),300);else{t(this).removeClass(e);const n=t(".fpa-global-header").height();o.css("top",`${n}px`).css("height",""),a.fadeOut({duration:i,start:function(){t(this).css({display:"flex"})},complete:function(){a.css({display:""}),a.addClass("fpa-project-mega-menu--closed"),t(`.${e}`).removeClass(e),t(".fpa-site-nav").removeClass("fpa-site-nav--variation"),window.resetStickyScroll()}})}})),t(".fpa-project-mega-menu__tabs.desktop .fpa-project-mega-menu__tab-heading").each((function(){const s=t(this),o=s.parents(".fpa-project-mega-menu__tab"),r=o.children(".fpa-project-mega-menu__content");o.on("click",(function(){if(!r)return;if(v(),r.hasClass(e))return o.find(".fpa-mega-menu__tab-heading").removeClass(e),r.slideUp({duration:i,complete:function(){t(this).css({display:""}),o.removeClass(e),o.find(`.${e}`).removeClass(e)}}),w(!1),void(n=null);let l=!1;"desktop"==a&&(n&&(n.slideUp({durtion:0,complete:function(){t(this).css({display:""})}}),l=!0),t(`.${e}`).removeClass(e),n=r),r.slideDown({duration:l?0:i,start:function(){s.parent().addClass(e),s.addClass(e),r.addClass(e),w(!0)},complete:function(){t(this).css({display:""})}})}))}));const v=()=>{t(".fpa-project-mega-menu__content").css("top",`${$()}px`)},k=()=>{const e=t(".fpa-global-header").data("dropdown-disabled")&&t(".fpa-site-nav").hasClass("nav-down");return t(".fpa-global-header").hasClass("nav-up")||e?0:t(".fpa-global-header").height()},$=()=>k()+t(".fpa-site-nav").height();t(window).on("resize",(function(){s.hasClass("nav-up")||o.css("top",s.outerHeight()),b(),S()})),t(document).mouseup((function(e){const i=t(".fpa-project-mega-menu__content.fpa-project-mega-menu--openned, .fpa-project-mega-menu__tab.fpa-project-mega-menu--openned, .fpa-project-mega-menu__tab-heading.fpa-project-mega-menu--openned");let a=!0;i.is(e.target)||0!==i.has(e.target).length||(i.removeClass("fpa-project-mega-menu--openned"),a=!1);const n=t(".hidden-links, .fpa-project-mega-menu__overflow-btn").not(".hidden");n.is(e.target)||0!==n.has(e.target).length||(u.addClass("hidden"),a=!1);const s=t(".fpa-site-nav__search.fpa-site-nav__search--display");s.is(e.target)||0!==s.has(e.target).length?a=!0:(t(".fpa-site-nav__search").removeClass("fpa-site-nav__search--display"),p=!1,a=!1),a||w(!1)})),d.on("click",(function(){S(),u.toggleClass("hidden")})),u.on("click",(function(){t(this).find(".fpa-project-mega-menu--openned").length&&u.css("top","-10000px")})),h.on("click",(function(){y(),t(".error-char-length--display").removeClass("error-char-length--display");const e=t(this).parents(".fpa-site-nav__search"),i="fpa-site-nav__search--display";p?e.removeClass(i):(e.addClass(i),t(".fpa-site-nav").css("z-index","1111"),e.find("input:text").focus()),w(!p),p=!p})),t(".fpa-site-nav__search-dropdown input:text").on("input",(function(e){t(".error-char-length.error-char-length--display").length&&t(this).val().length>2&&t(".error-char-length.error-char-length--display").removeClass("error-char-length--display")})),t(".fpa-site-nav__search-dropdown").on("submit",(function(e){e.preventDefault(),t(".error-char-length--display").removeClass("error-char-length--display");const i=t("input[type='text']",this).val();if(i.length<3)return void t(".error-char-length",this).addClass("error-char-length--display");const a=new URL(window.location.href);Array.from(a.searchParams.keys()).forEach((t=>{a.searchParams.delete(t)})),window.history.replaceState({},"",a),a.searchParams.set("q",i);const n=`${t(this).data("search-url")??"https://www.frasersproperty.com.au/Search"}?${a.searchParams.toString()}`;window.location.href=n}));const C=t(".fpa-site-nav");function S(){if(null==d?.offset())return;const e=d?.offset().left+d.outerWidth()-u.outerWidth();u.css("left",e);const i=k()+t(".fpa-site-nav").height()/2+d.outerHeight()/2-1;u.css("top",i)}window.addSticky(t(".fpa-project-mega-menu__peak-container"),!1,!0),window.removeSticky(C,"fpa-project-mega-menu__menu-container--sticky"),t(".fpa-project-mega-menu__tab-heading p").not(".desktop .fpa-project-mega-menu__tab-heading p").each((function(){t(this).on("click",(function(e){t(this).closest(".fpa-project-mega-menu__tab").find(".fpa-project-mega-menu__content").css("height","100%").addClass("fpa-project-mega-menu--openned"),t("ul.links").not(".desktop ul.links").addClass("back").removeClass("goback"),C.addClass("fpa-site-nav--variation"),o.css("top","0").css("position","fixed")})),t(this).parents().find(".fpa-project-mega-menu__columns > button").on("click",(function(){t("ul.links").not(".desktop ul.links").removeClass("back").addClass("goback"),C.removeClass("fpa-site-nav--variation"),t(".fpa-project-mega-menu__content").removeClass("fpa-project-mega-menu--openned"),setTimeout((function(){t(".fpa-project-mega-menu__content").css("height","0")}),300),o.css("position","fixed").css("top","0")}))})),window.addEventListener("windowConfiguration",(i=>{a=i.detail.target,t(`.${e}`).removeClass(e),"mobile"==i.detail.target?t(".fpa-project-mega-menu__content").css("top","0"):(S(),t(".fpa-project-mega-menu__content").css("height","auto"),v()),y(),t(".fpa-site-nav__search--display").removeClass("fpa-site-nav__search--display")})),b()})),$((t=>{0!==t(".fpa-property-highlights").length&&1!==t(".fpa-property-highlights.is-ee").length&&t(".fpa-property-highlights").each((function(e){const i=t(this).find(".fpa-property-highlights__wrapper").find(".fpa-property-highlights__card"),a=i.length,n=100*i.length+"vw",s=new window.ScrollMagic.Controller,o=new window.TimelineMax;if(1===i.length)return void t(this).addClass("fpa-property-highlights--single");2===i.length&&t(this).addClass("fpa-property-highlights--double"),t(this).find(".fpa-property-highlights__wrapper").css("width",n);const r=new window.ScrollMagic.Controller({vertical:!1});o.add([window.TweenMax.to(t(this).find(".fpa-property-highlights__wrapper"),1,{x:`-${100/a*(a-1)}%`})]),new window.ScrollMagic.Scene({triggerElement:this,triggerHook:"onLeave",duration:100*a+"%"}).setPin(this).setTween(o).addTo(s),t(this).find(".fpa-property-highlights__card").each((function(e,i){const a=t(this).find(".container"),n=t(this).find(".fpa-property-highlights__background"),s=new window.TimelineMax;s.fromTo(a,1,{x:0},{x:0},0).fromTo(n,1,{x:0},{x:0},0),new window.ScrollMagic.Scene({triggerElement:e,triggerHook:1,duration:"200%"}).setTween(s).addTo(r)}))}))})),$((()=>{if(!$(".fpa-property-search").length)return;window.addMapsScript();const t="sf-",e="all",i={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}},a=Handlebars.compile($("#fpa-property-search-properties").html()),n=Handlebars.compile($("#fpa-property-search-residential-rent").html()),s=a,o=a,r=$("#fpa-property-search-map-popup").length?Handlebars.compile($("#fpa-property-search-map-popup").html()):null,l=$("#fpa-property-search-map-result-count").length?Handlebars.compile($("#fpa-property-search-map-result-count").html()):null,c=Handlebars.compile($("#fpa-property-search-filters").html()),d=Handlebars.compile($("#fpa-property-search-pills").html());$(".fpa-property-search").each((function(){const h=$(this),p=h.data("residential-filter-count-endpoint"),f=h.data("residential-properties-endpoint"),u=h.data("retail-filter-count-endpoint"),g=h.data("retail-properties-endpoint"),m=h.data("commercial-filter-count-endpoint"),_=h.data("commercial-properties-endpoint"),b=h.data("map-marker-icon"),y=h.data("map-marker-selected-icon"),w=h.data("map-marker-cluster");let x=null,v=null,k="",C={},S={},M={},P=null,D=null,T=[],L=null,A=null,E=null,I=null,O=null,z=null,R={department:"residential","sale-type":"buy",view:"list"},F=!1;const j={list:4,map:1e3};let H=1,B=j[R.view];h.find(Object.keys(R).map((t=>`input[name="${t}"]`)).join(",")).on("change",(function(){const t=$(this),e=t.prop("name"),i=R[e]=t.prop("value");switch(e){case"view":switch("mobile"==k&&K(),i){case"map":B=1e3;break;case"list":B=4;break}break;case"department":(()=>{C={},M={},H=1,h.find(".fpa-property-search__filters__options").empty(),h.find(".fpa-property-search__results__pills").empty(),D||h.find(".fpa-property-search__results__container").empty();const t=new URL(window.location.href);t.search="",window.history.replaceState({},"",t)})();break;case"sale-type":break}const a=new URL(window.location.href);a.searchParams.set(`s-${e}`,i),window.history.replaceState({},"",a),"department"==t.prop("name")&&track("department_filter",{department:R.department,view:R.view}),"sale-type"==t.prop("name")&&track("property_sub_type_filter",{property_sub_type:t.prop("value"),view:R.view}),N()}));const N=()=>{const t=h.find(".fpa-property-search__filters__sale-type"),e=h.find(".fpa-property-search__results__view");if("residential"===R.department&&"rent"===R["sale-type"]&&"map"===R.view){const t=new URL(window.location.href);t.searchParams.delete("s-view"),window.history.replaceState({},"",t),R.view="list",$("input[name=view][value=list]").prop("checked",!0)}switch(h.find(".fpa-property-search__results__container").removeClass("list").removeClass("map").addClass(R.view),R.department){case"residential":switch(t.show(),z=f,R["sale-type"]){case"buy":e.show(),I=a,O=p;break;case"rent":e.hide(),I=n,O=null;break}break;case"retail":t.hide(),e.show(),I=s,O=u,z=g;break;case"commercial":t.hide(),e.show(),I=o,O=m,z=_;break;default:throw new Error(`Unhandled department '${R.department}'.`)}B=j[R.view],H=1,J()},V=()=>{const t=new URL(window.location.href),i=[];for(let a of Object.keys(C)){const n=M.filters.find((t=>t.key.toLowerCase()==a.toLowerCase()));if(!n)continue;const s=Object.keys(C[a]).filter((t=>t!==e));for(let t of s){const e=n.options.find((e=>e.key.toLowerCase()==t.toLowerCase()));if(!e){delete C[a][t];continue}const s={canRemove:"radio"!=n.type,label:orDefault(e.pill,e.name),filterKey:n.key,optionKey:e.key};s.canRemove?i.push(s):i.unshift(s)}const o=`sf-${a}`;s.length?t.searchParams.set(o,s.join(",")):t.searchParams.delete(o)}window.history.replaceState({},"",t),h.find(".fpa-property-search__radio-button__filters").attr("data-has-filters",i.length-1>0?"true":"false").find("span").empty().append(Math.max(0,i.length-1)),h.find(".fpa-property-search__results__pills").empty().append(d({pills:i})).find("span i").on("click",(function(){const t=$(this).parent(),e=t.data("filter-key"),i=t.data("option-key");h.find(`input[data-filter-key="${e}"][data-option-key="${i}"]`).prop("checked",!1).trigger("change")}))},W=t=>{if(t){for(const e of t.filters){const t=Object.keys(C).find((t=>t.toLowerCase()==e.key.toLowerCase())),i=C[t]??{};for(const t of e.options){const e=Object.keys(i).find((e=>e.toLowerCase()===t.key.toLowerCase()));e?t.count?t.checked=!0:(delete i[e],t.checked=!1):t.checked=!1}Object.keys(i).length||(e.options[0].checked=i[e.options[0].key]=!0)}h.find(".fpa-property-search__filters__options").empty().append(c(t)),h.find(".fpa-property-search__filters__filter__count").fadeIn({duration:300}),h.find("input[data-filter-key]").on("change",(function(){$input=$(this);const t=$input.data("filter-key"),i=$input.data("option-key"),a=M.filters.find((e=>e.key==t)),n=C[t]=orDefault(C[t],{});switch("state_name"==$input.prop("name")?track("state_filter",{state:$input.parent().find(".fpa-property-search__filters__filter__name").text().trim(),view:R.view}):"price"==$input.prop("name")?track("price_filter",{price:$input.parent().find(".fpa-property-search__filters__filter__name").text().trim(),view:R.view}):"property_types"==$input.prop("name")?track("property_type_filter",{property_type:$input.parent().find(".fpa-property-search__filters__filter__name").text().trim(),view:R.view}):track("project_status_filter",{project_status:$input.parent().find(".fpa-property-search__filters__filter__name").text().trim(),view:R.view}),a.type){case"radio":C[t]={[i]:!0};break;case"checkbox":if($input.prop("checked")?n[i]=!0:delete n[i],Object.keys(n).length)if(i==e)for(let i of Object.keys(n))i!=e&&(h.find(`input[data-filter-key="${t}"][data-option-key="${i}"]`).prop("checked",!1),delete n[i]);else h.find(`input[data-filter-key="${t}"][data-option-key="all"]`).prop("checked",!1),delete n.all;else n[a.options[0].key]=!0,h.find(`input[data-filter-key="${t}"][data-option-key="${a.options[0].key}"]`).prop("checked",!0);break}V();const s=0==h.find(".fpa-property-search__filters:visible").length||"desktop"===k;H=1,J(!0,s)})),M=t,V()}},U=t=>{if(t){P=t;for(let e of t.results){e.thumbs=[];for(let t=1;t<Math.min(4,e.images.length);++t)e.thumbs.push(orDefault(e.images[t].urlThumb,e.images[t].urlLarge));!e.link||e.link.label&&e.link.url||delete e.link,e.availability.priceMin&&e.availability.priceMax?(e.availability.priceMin=numberWithCommas(e.availability.priceMin),e.availability.priceMax=numberWithCommas(e.availability.priceMax)):(delete e.availability.priceMin,delete e.availability.priceMax),e.images.length&&(e.mapPopupImage=e.images[0].urlThumb?e.images[0].urlThumb:e.images[0].urlLarge),e.thumbLink=e.link&&e.link.url||e.linkCentre||e.linkProject}switch(t.page<H&&(H=t.page),R.view){case"list":q(t);break;case"map":X(t);break}}},q=t=>{G();const e=h.find(".fpa-property-search__results__container");H>1?e.find(".fpa-property-search__results__container__load-more").remove():e.empty(),e.append(I?I({results:t.results,department:R.department,morePages:t.page<t.pageCount}):""),e.find(".fpa-property-search__property__text__cta").on("click",(function(){const t=$(this);track("property_search_result_cta",{department:R.department,text:t.text().trim(),href:t.prop("href"),project_type:t.parent(".fpa-property-search__property__text").find("h3.fpa-property-search__property__text__title").text().trim(),feature:"Search options"})})),h.find(".fpa-property-search__property__images__main__carousel").each(((t,e)=>window.initializeCarousel($(e))))};$(window).on("resize scroll",(function(){h.find(".fpa-property-search__results__container__load-more").isInViewport()&&!F&&(++H,J(!1,!0))})),$.fn.isInViewport=function(){if($(".fpa-property-search__results__container__load-more").length){var t=$(this).offset().top,e=t+$(this).outerHeight(),i=$(window).scrollTop(),a=i+$(window).height();return e>i&&t<a}};const Y=()=>{L&&(L.setMap(null),L=null),A=null,T.forEach((t=>{window.marker=t,google.maps.event.clearListeners(t,"mouseover"),google.maps.event.clearListeners(t,"mouseout"),google.maps.event.clearListeners(t,"click"),window.marker.setMap(null)})),T=[],E&&(E.close(),E=null);const t=h.find(".fpa-property-search__results__container").parent();t.children(".fpa-property-search__map-result-count").remove(),t.children(".fpa-property-search__map-popup").remove()},G=()=>{D&&(Y(),delete D,D=null)},X=t=>{if(!window.mapsReady){if(P!==t)return;return setTimeout((()=>X()),50)}const e=h.find(".fpa-property-search__results__container");if(!e.length)return;D||(D=new google.maps.Map(e[0],{mapTypeControl:"desktop"==k,zoomControl:"desktop"==k,zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT},fullscreenControl:!1,streetViewControl:!1,center:{lat:-27.7674682923694,lng:133.56741524026245},zoom:5,maxZoom:18})),Y(),e.parent().append(l({resultsShowCount:t.results.length,resultsTotalCount:t.totalRows}));const i={url:b,size:new google.maps.Size(26,40),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(13,40),scaledSize:new google.maps.Size(26,40)},a={url:y,size:new google.maps.Size(26,41),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(13,40),scaledSize:new google.maps.Size(26,41)};let n=new google.maps.LatLngBounds;for(let s=0;s<t.results.length;s++){const o=t.results[s];if(!o.location||!o.location.lat||!o.location.lng)continue;const l=new google.maps.LatLng(o.location.lat,o.location.lng),c=new google.maps.Marker({position:l,mapElement:e[0],icon:i,animation:google.maps.Animation.DROP,zIndex:t.results.length-s,optimized:!1,open:!0});google.maps.event.addListener(c,"mouseover",(()=>{c.setOpacity(.8)})),google.maps.event.addListener(c,"mouseover",(()=>{c.setOpacity(1)})),n.extend(l),google.maps.event.addListener(c,"click",(()=>{const t=e.parent(),n=T.filter((t=>t.open));n.length>0&&(E?.close(),t.find(".fpa-property-search__map-popup").remove(),n.forEach((t=>{t.open=!1,t.setIcon(i)}))),(0===n.length&&c===A||c!==A)&&(c.open=!0,c.setIcon(a),A=c,"desktop"===k?(E=new google.maps.InfoWindow({pixelOffset:new google.maps.Size(0,0)}),E.open(D,c),E.setContent(r(o))):(t.find(".fpa-property-search__map-result-count").remove(),t.append(r(o)).find(".fpa-property-search__map-popup")[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})))})),T.push(c)}L=new MarkerClusterer(D,T,{styles:[{width:34,height:34,url:w,textColor:"#fff",textSize:13},{width:40,height:40,url:w,textColor:"#fff",textSize:13}],gridSize:30,maxZoom:14}),google.maps.event.addListener(D,"click",(function(){E?.close(),e.parent().find(".fpa-property-search__map-popup").remove(),T.forEach((t=>{t.open=!1,t.setIcon(i)}))})),D.fitBounds(n,30)},J=(t=!0,a=!0)=>{F=!0;const n=[];for(const t in C){const i=[];for(const a in C[t])a!=e&&i.push(a);i.length&&n.push({key:t,options:i})}n.push({key:"department",options:[R.department]},{key:"saleType",options:[R["sale-type"]]});const s=[];t&&(h.find(".fpa-property-search__filters__filter__count").fadeOut({duration:1200}),s.push((t=>{x&&x.abort();let e=x=new AbortController;return(O?loadJson(O,{...i,signal:e.signal,body:JSON.stringify({filters:t})},null):Promise.resolve({filters:[]})).catch((t=>(e.signal.aborted,null)))})(n).then(W))),a&&s.push((t=>{v&&v.abort();let e=v=new AbortController;return h.find(".fpa-property-search__results__container__load-more").find("img").fadeIn({duration:300}),(z?loadJson(z,{...i,signal:e.signal,body:JSON.stringify({filters:t,page:H,pageSize:B})}):Promise.resolve({results:[]})).catch((t=>(e.signal.aborted,null)))})(n).then(U)),s.length&&Promise.all(s).then((()=>{F=!1}))},K=()=>{h.find(".fpa-property-search__results__view input:checked").parent().hide(),h.find(".fpa-property-search__results__view input:not(:checked)").parent().show()};h.find(".fpa-property-search__radio-button__filters").on("click",(function(){S=C,h.find(".fpa-property-search__filters").fadeIn({duration:200})})),h.find(".fpa-property-search__mobile-header i").on("click",(function(){h.find(".fpa-property-search__filters").fadeOut({duration:200}),C=S,V(),J()})),h.find(".fpa-property-search__filters__apply").on("click",(function(){h.find(".fpa-property-search__filters").fadeOut({duration:200}),J(!1,!0)})),h.find(".fpa-property-search__mobile-header a").on("click",(function(){C={},h.find("input[data-filter-key][data-option-key]").prop("checked",!1),W(M),J(!0,!1)})),r&&l||h.find(".fpa-property-search__results__view").remove(),window.addEventListener("windowConfiguration",(function(t){switch(k=t.detail.target,t.detail.target){case"desktop":h.find(".fpa-property-search__filters").show(),h.find(".fpa-property-search__results__view input").parent().show();break;case"mobile":h.find(".fpa-property-search__filters").hide(),K();break}D&&(G(),X(P))})),(()=>{const e=new URL(window.location.href);for(const t in R){let i=R[t];for(const a of e.searchParams.keys())if(a.toLowerCase()==`s-${t}`.toLowerCase()){i=e.searchParams.get(a)?.toLowerCase();break}R[t]=i}for(let t in R)h.find(`input[name="${t}"][value="${R[t]}"]`).prop("checked",!0);for(const i of Array.from(e.searchParams.keys()).filter((e=>e.startsWith(t)))){const a=i.substring(t.length),n=C[a]=orDefault(C[a],{});for(const t of e.searchParams.get(i).split(","))n[t]=!0}N()})()}))})),$((t=>{0!==t(".fpa-news-related").length&&t(".fpa-news-related .fpa-news-related__article").on("click",(function(){track("site_body",{text:t(this).find(".fpa-news-related__content h5").text().trim(),url:t(this).prop("href"),type:"Related news",feature:"Carousel"})}))})),$((()=>{if(!$(".fpa-search-widget").length)return;const t="all",e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}},i=".fpa-search-widget__residential__advanced__search-button",a=Handlebars.compile($("#fpa-search-widget-filters").html()),n=Handlebars.compile($("#fpa-search-widget-residential-auto-complete-result").html()),s=Handlebars.compile($("#fpa-search-widget-project-list-results").html());$(".fpa-search-widget").each((function(){const o=$(this),r=o.data("residential-filter-count-endpoint"),l=o.data("residential-auto-complete-endpoint"),c=o.data("retail-project-list-endpoint"),d=o.data("commercial-project-list-endpoint"),h=o.data("property-search-url"),p={};let f="",u=null,g={},m=null,_=null,b=null,y={department:"","residential-sale-type":"","retail-property-status":"","commercial-property-status":""};const w={},x=o.find(".fpa-search-widget__residential__browse-states .fpa-search-widget__accordion__label"),v=o.find([".fpa-search-widget__retail__header-row .fpa-search-widget__accordion__label",".fpa-search-widget__commercial__header-row .fpa-search-widget__accordion__label"].join(", ")),k={[i]:null},C=function(t=null){let e=y.department;for(let t in y){y[t]=o.find(`input[name="search-section-${t}"]:checked`).val();const e=o.find(`.fpa-search-widget__section[data-section-key="${t}"][data-section-value="${y[t]}"]`);o.find(`.fpa-search-widget__section[data-section-key="${t}"]:visible`).hide(),e.css("display","flex")}t&&$(t).prop("name").replace("search-section-","");if(e===y.department)switch(y.department){case"residential":break;case"retail":case"commercial":A(),v.trigger("toggle",!0);break}else switch(g={},y.department){case"residential":_=r,b=null;break;case"retail":_=null,b=c,A();break;case"commercial":_=null,b=d,A();break}};for(let t in y)o.find(`input[name="search-section-${t}"]`).on("change",(function(){C(this)}));const S=o.find('input[name="search-residential-properties-query"]');let M="",P=!1;S.select2({multiple:!0,minimumInputLength:2,placeholder:S.prop("placeholder"),dropdownCssClass:"fpa-search-widget__residential__query-dropdown",ajax:{url:l,transport:function(t,i,a){let n=new AbortController;return M=t.data&&t.data.term,loadJson(t.url,{...e,signal:n.signal,body:JSON.stringify({query:M})}).then((t=>{if(!t)return;const e=[];for(let i of t.results){let t={id:i.groupKey,groupName:i.groupName,groupKey:i.groupKey,url:i.url,children:[]};for(let e of i.items)t.children.push({id:e.title,...e});e.push(t)}i({results:e})})).catch((t=>a(t))),n}},templateResult:t=>{const e=$(n(t));return e.hasClass("fpa-search-widget__auto-complete__group")&&e.on("click",(()=>{track("property_search_link",{department:y.department,state:t.groupName})})),e},language:{errorLoading:function(t){return $(n({zeroResults:!0,error:!0,loading:P}))},noResults:function(t){return $(n({zeroResults:!0,loading:P}))},inputTooShort:function(t){return $(n({requiredCharacters:t.minimum-t.input.length}))}}}).on("select2:select",(t=>{t.params.data.url&&(track("property_search_keyword_search",{department:y.department,keyword:M,view:"Search widget"}),window.location.assign(t.params.data.url))}));const D=t=>(p[t]&&p[t].abort(),p[t]=new AbortController),T=debounce(200,(()=>{if(-1===["residential"].indexOf(y.department))return;const i=[{key:"department",options:[y.department]},{key:"saleType",options:[y["sale-type"]]}];for(const e in g){const a=[];for(const i in g[e])i!=t&&a.push(i);a.length&&i.push({key:e,options:a})}let a=D("filterCount");return(_?loadJson(_,{...e,signal:a.signal,body:JSON.stringify({filters:i})}):Promise.resolve({filters:[]})).catch((t=>(a.signal.aborted,null))).then((t=>{L(t)}))})),L=e=>{if(!e)return;if(!u)return void(m=e);let n=Number.MAX_SAFE_INTEGER;for(const i of e.filters){const e=g[i.key]=orDefault(g[i.key],{});for(const a of i.options)e[a.key]?a.count?a.checked=!0:(delete e[a.key],a.checked=!1):a.checked=!1,a.key==t&&a.count<n&&(n=a.count);Object.keys(e).length||(i.options[0].checked=e[i.options[0].key]=!0)}u.find(".fpa-search-widget__filters").empty().append(a(e)),u.find(i).html(k[i].replace("{0}",n)),u.find("input[data-filter-key]").on("change",(function(){$input=$(this);const e=$input.data("filter-key"),i=$input.data("option-key"),a=m.filters.find((t=>t.key==e)),n=g[e]=orDefault(g[e],{});switch("state_name"==[e]?track("state_filter",{state:$input.parent().children(".fpa-search-widget__filters__filter__name").text(),department:y.department,view:"Advanced search"}):"property_types"==[e]?track("property_type_filter",{property_type:$input.parent().children(".fpa-search-widget__filters__filter__name").text(),department:y.department,view:"Advanced search"}):"price"==[e]?track("price_filter",{[e]:$input.parent().children(".fpa-search-widget__filters__filter__name").text(),department:y.department,view:"Advanced search"}):track("project_status_filter",{project_status:$input.parent().children(".fpa-search-widget__filters__filter__name").text(),department:y.department,view:"Advanced search"}),a.type){case"radio":g[e]={[i]:!0};break;case"checkbox":if($input.prop("checked")?n[i]=!0:delete n[i],Object.keys(n).length)if(i==t)for(let i of Object.keys(n))i!=t&&(u.find(`input[data-filter-key="${e}"][data-option-key="${i}"]`).prop("checked",!1),delete n[i]);else u.find(`input[data-filter-key="${e}"][data-option-key="all"]`).prop("checked",!1),delete n.all;else n[a.options[0].key]=!0,u.find(`input[data-filter-key="${e}"][data-option-key="${a.options[0].key}"]`).prop("checked",!0);break}page=1,T()})),m=e},A=debounce(200,(()=>{if(-1===["retail","commercial"].indexOf(y.department))return;const t=y.department,i=y[`${t}-property-status`],a=`${t}:${i}`;if(w[a])return void E(t,null,w[a]);const n=[{key:"department",options:[t]},{key:"propertyStatus",options:[i]}];let s=D("projectList");return(b?loadJson(b,{...e,signal:s.signal,body:JSON.stringify({filters:n})}):Promise.resolve(null)).catch((t=>(s.signal.aborted,null))).then((e=>{E(t,a,e)}))})),E=(t,e,i=null)=>{i&&(e&&(w[e]=i),o.find(`.fpa-search-widget__section[data-section-key="department"][data-section-value="${t}"] .fpa-search-widget__project-list__groups`).empty().append(s(i)))};onResidentialAdvancedModal=t=>{o.find(".fpa-search-widget__dimmer").fadeOut({duration:1200}),u=$(t.modal),$searchButton=u.find(i),k[i]||(k[i]=$searchButton.html(),$searchButton.html(k[i].replace("{0}",""))),$searchButton.on("click",I),u.find(".fpa-search-widget__residential__advanced__clear-button").on("click",(()=>{g={},u.find("input[data-filter-key][data-option-key]:checked").prop("checked",!1),L(m),T()})),u.find(".fpa-search-widget__modal__close").on("click",(()=>{p.filterCount&&p.filterCount.abort(),t.close(),u=null})),L(m),T()};const I=()=>{const e=new URL(h,window.location.href),i=`${y.department}-`;for(let t in y){switch(t){case"department":e.searchParams.set(`s-${t}`,y[t]);continue;case"residential-sale-type":e.searchParams.set("s-sale-type",y[t]);continue}t.startsWith(i)&&e.searchParams.set(`sf-${t.substring(i.length)}`,y[t])}4==$(".fpa-search-widget__filters .fpa-search-widget__filters__option").length?track("property_search_widget_cta",{state:$(".fpa-search-widget__filters__option:first-of-type input:checked").map((function(){return $(this).parent().find("p").text()})).get().join(","),property_type:$(".fpa-search-widget__filters__option:nth-of-type(2) input:checked").map((function(){return $(this).parent().find("p").text()})).get().join(","),price:$(".fpa-search-widget__filters__option:nth-of-type(3) input:checked").map((function(){return $(this).parent().find("p").text()})).get().join(","),project_status:$(".fpa-search-widget__filters__option:last-of-type input:checked").map((function(){return $(this).parent().find("p").text()})).get().join(","),department:y.department,feature:"Advanced search"}):track("property_search_widget_cta",{state:$(".fpa-search-widget__filters__option:first-of-type input:checked").map((function(){return $(this).parent().find("p").text()})).get().join(","),property_type:$(".fpa-search-widget__filters__option:nth-of-type(2) input:checked").map((function(){return $(this).parent().find("p").text()})).get().join(","),project_status:$(".fpa-search-widget__filters__option:last-of-type input:checked").map((function(){return $(this).parent().find("p").text()})).get().join(","),department:y.department,feature:"Advanced search"});for(let i of Object.keys(g)){if(!m.filters.find((t=>t.key==i)))continue;const a=`sf-${i}`,n=Object.keys(g[i]).filter((e=>e!==t));n.length?e.searchParams.set(a,n.join(",")):e.searchParams.delete(a)}window.location.assign(e.href)};o.find(".fpa-search-widget__project-list").on("click",(function(){$(this).hasClass("fpa-accordion--open")||o.find(`.fpa-search-widget__${y.department}__header-row .fpa-search-widget__accordion__label`).trigger("toggle",!0)}));if(window.addEventListener("windowConfiguration",(function(t){switch(f=t.detail.target,t.detail.target){case"desktop":x.trigger("toggle",[!0,0]).data("disabled",!0);break;case"mobile":x.trigger("toggle",[!1,0]).data("disabled",!1);break}o.find(`[data-content-${f}]`).each((function(){const t=$(this);t.html(t.data(`content-${f}`))}))})),o.find(".fpa-search-widget__residential__footer-row__advanced-search").on("click",(t=>{t.preventDefault(),t.stopPropagation(),window.openModal($("#fpa-search-widget-residential-advanced")[0],{closeButton:"false",cssClasses:["fpa-search-widget__modal"]}).then(onResidentialAdvancedModal)})),performance.navigation.type===performance.navigation.TYPE_RELOAD){const t=new URL(window.location.href);t.searchParams.has("open-modal")&&"fpa-search-widget-residential-advanced"===t.searchParams.get("open-modal")&&(t.searchParams.delete("open-modal"),window.history.replaceState({},"",t))}o.on("click",(()=>{o.find(".fpa-search-widget__dimmer").fadeIn({duration:300}),m||T()})),o.find(".fpa-search-widget__dimmer").on("click",(function(t){t.stopPropagation(),$(this).fadeOut({duration:300}),v.trigger("toggle",!1),"mobile"==f&&x.trigger("toggle",!1)})).hide(),o.find(".fpa-search-widget__tab-options__option").on("click",(function(){track("department_filter",{department:$(this).find(".static-bold").data("content"),view:"Search widget"})})),o.find(".fpa-search-widget__section .radio-switch input").on("click",(function(){track("status_filter",{property_status:$(this).parent().find(".static-bold").data("content"),view:"Search widget"})})),o.find("#search-widget-residential-browse-all .fpa-search-widget__flat-button").on("click",(function(){track("state_filter",{state:$(this).text().trim(),view:"Search widget"})})),o.find(".fpa-search-widget__residential__footer-row a, fpa-search-widget__retail__footer-row a, fpa-search-widget__commercial__footer-row a").on("click",(function(){track("property_search_click",{text:$(this).text().trim(),view:"Search widget"})})),$(".fpa-search-widget__project-list").on("click",".fpa-search-widget__project-list__item",(function(){track("property_search_click",{text:$(".fpa-search-widget__project-list__item__title",this).text().trim(),view:"Search widget"})})),C()}))})),$((()=>{if(!$(".fpa-sitewide-search").length)return;const t="sf-",e="all",i={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}},a=Handlebars.compile($("#fpa-sitewide-search-filters-container").html()),n=Handlebars.compile($("#fpa-sitewide-search-filters").html()),s=Handlebars.compile($("#fpa-sitewide-search-result-count").html()),o=Handlebars.compile($("#fpa-sitewide-search-pages").html()),r=Handlebars.compile($("#fpa-sitewide-search-pills").html()),l=Handlebars.compile($("#fpa-sitewide-search-error").html());$(".fpa-sitewide-search").each((function(){const c=$(this),d=c.data("search-filter-endpoint"),h=c.data("search-query-endpoint");let p=null,f=null,u="",g={},m={},_={},b={},y=1,w=!1;const x=()=>{c.find(".fpa-sitewide-search__filters").remove(),c.find(".fpa-pagination__pagination").children().remove(),c.find(".fpa-sitewide-search__results__count").empty(),c.find(".fpa-sitewide-search__results__pills").empty(),c.find(".fpa-sitewide-search__radio-button__filters").hide()},v=function(){const t=$(".fpa-sitewide-search__searchbar-form input[type=text]"),e=t.val();if(M(e,$(t).parent()))return;const i=new URL(window.location.href);i.searchParams.set("q",e),window.history.replaceState({},"",i),y=1,P()};c.find(".fpa-sitewide-search__searchbar-form button").on("click",v),c.find(".fpa-sitewide-search__searchbar-form input[type=text]").on("keyup",(function(t){"Enter"!==t.key&&13!==t.keyCode||v()}));const k=()=>{const t=new URL(window.location.href),i=[];for(let a of Object.keys(g)){const n=_.filters.find((t=>t.key==a));if(!n)continue;const s=Object.keys(g[a]).filter((t=>t!==e));for(let t of s){const e=n.options.find((e=>e.key==t));if(!e){delete g[a][t];continue}const s={canRemove:"radio"!=n.type,label:orDefault(e.pill,e.name),filterKey:n.key,optionKey:e.key};s.canRemove?i.push(s):i.unshift(s)}const o=`sf-${a}`;s.length?t.searchParams.set(o,s.join(",")):t.searchParams.delete(o)}window.history.replaceState({},"",t),c.find(".fpa-sitewide-search__results__pills").empty().append(r({pills:i})).find("span i").on("click",(function(){const t=$(this).parent(),e=t.data("filter-key"),i=t.data("option-key");c.find(`input[data-filter-key="${e}"][data-option-key="${i}"]`).prop("checked",!1).trigger("change",["pill"])}))},C=t=>{if(t){for(const e of t.filters){const t=g[e.key]=orDefault(g[e.key],{});for(const i of e.options)t[i.key]?i.count?i.checked=!0:(delete t[i.key],i.checked=!1):i.checked=!1;Object.keys(t).length||(e.options[0].checked=t[e.options[0].key]=!0)}0==$(".fpa-sitewide-search__filters").length&&c.find(".fpa-sitewide-search__body").prepend(a()),w&&(c.find(".fpa-sitewide-search__radio-button__filters").show(),c.find(".fpa-sitewide-search__apply").show()),c.find(".fpa-sitewide-search__filters__options").empty().append(n(t)),c.find(".fpa-sitewide-search__filters__filter__count").fadeIn({duration:300}),c.find("input[data-filter-key]").on("change",(function(t,i){$input=$(this);const a=$input.data("filter-key"),n=$input.data("option-key"),s=_.filters.find((t=>t.key==a)),o=g[a]=orDefault(g[a],{});switch(track("property_search_option",{[a]:$input.parent().children(".fpa-sitewide-search__filters__filter__name").text().trim(),department:b.department,view:b.view,checked:$input.prop("checked")}),s.type){case"radio":g[a]={[n]:!0};break;case"checkbox":if($input.prop("checked")?o[n]=!0:delete o[n],Object.keys(o).length)if(n==e)for(let t of Object.keys(o))t!=e&&(c.find(`input[data-filter-key="${a}"][data-option-key="${t}"]`).prop("checked",!1),delete o[t]);else c.find(`input[data-filter-key="${a}"][data-option-key="all"]`).prop("checked",!1),delete o.all;else o[s.options[0].key]=!0,c.find(`input[data-filter-key="${a}"][data-option-key="${s.options[0].key}"]`).prop("checked",!0);break}if(!w||"pill"===i){k();const t=0==c.find(".fpa-sitewide-search__filters:visible").length||"desktop"===u;y=1,P(!0,t)}})),_=t,k()}},S=t=>{const e=c.find(".fpa-sitewide-search__results__container");e.empty();const i=c.find(".fpa-sitewide-search__searchbar-form input").val();if(c.find(".fpa-sitewide-search__results__count").empty().append(s?s({resultsShowCount:t.totalRows,queryString:i}):""),$("#fpa-sitewide-search-results-pagination").empty(),t.pageCount>1){const e=t=>{const e=new URL(window.location.href);e.searchParams.set("page",t),window.history.replaceState({},"",e),$("html, body").animate({scrollTop:$(".fpa-sitewide-search__searchbar-form").offset().top},500),P()};new Pagination(t.page,t.pageCount,$("#fpa-sitewide-search-results-pagination")).generateHtml(),c.find("#fpa-sitewide-search-results-pagination a[data-num]").click((function(){var t=$("div.fpa-sitewide-search__results"),i=t.height()+10;t.css("min-height",i),y=$(this).data("num"),e(y)})),c.find(".fpa-pagination__prev").click((function(){var t=$("div.fpa-sitewide-search__results"),i=t.height()+10;t.css("min-height",i),y--,e(y)})),c.find(".fpa-pagination__next").click((function(){var t=$("div.fpa-sitewide-search__results"),i=t.height()+10;t.css("min-height",i),y++,e(y)}))}if(null==t.results||0==t.results.length){x();const t=new URL(window.location.href);t.searchParams.delete("page"),window.history.replaceState({},"",t)}e.append(o?o({results:t.results?.slice(0,t.pageSize),error:t.results?.length>0||"error-zero-result",queryString:i}):"")},M=function(t,e){const i={};i.isInsufficientCharacters=t?.replace(/\s/g,"")?.length<3,e.find($(".fpa-sitewide-search__searchbar-form-error-container")).empty();const a=Object.values(i).includes(!0);if(a){const t=l(i);e.find($(".fpa-sitewide-search__searchbar-form-error-container")).html(t)}return a},P=async(t=!0,a=!0)=>{c.find(".fpa-sitewide-search__results__container").empty();const n=c.find(".fpa-sitewide-search__searchbar-form input").val(),s=[];for(const t in g){const i=[];for(const a in g[t])a!=e&&i.push(a);i.length&&s.push({key:t,options:i})}if(t){c.find(".fpa-sitewide-search__filters__filter__count").fadeOut({duration:1200});try{const t=await(t=>{p&&p.abort();let e=p=new AbortController;return(d?loadJson(d,{...i,signal:e.signal,body:JSON.stringify({query:t})},null):Promise.resolve({filters:[]})).catch((t=>(e.signal.aborted,null)))})(n);C(t)}catch(t){window.presentToast("error","Unable to fetch search filters.")}}if(a)try{const t=await((t,e)=>{f&&f.abort();let a=f=new AbortController;return(h?loadJson(h,{...i,signal:a.signal,body:JSON.stringify({query:t,filters:e,page:y,pageSize:8})}):Promise.resolve({results:[]})).catch((t=>(a.signal.aborted,null)))})(n,s);(t=>{y=t.page;const e=new URL(window.location.href);e.searchParams.set("page",y),window.history.replaceState({},"",e),S(t)})(t)}catch(t){window.presentToast("error","Unable to fetch search results.")}};c.find(".fpa-sitewide-search__radio-button__filters").off().on("click",(function(){c.find(".fpa-sitewide-search__filters").fadeIn("slow"),c.find(".fpa-sitewide-search__mobile-modal-overlay").fadeIn("slow"),c.find(".fpa-sitewide-search__apply button").off().on("click",D),c.find(".fpa-sitewide-search__mobile-header a").on("click",(function(){g={},c.find("input[data-filter-key][data-option-key]").prop("checked",!1),C(_)})),c.find(".fpa-sitewide-search__mobile-header i, .fpa-sitewide-search__mobile-modal-overlay").on("click",(function(){g=JSON.parse(JSON.stringify(m)),C(_),c.find(".fpa-sitewide-search__filters").fadeOut({duration:200}),c.find(".fpa-sitewide-search__mobile-modal-overlay").hide()}))}));const D=function(){c.find(".fpa-sitewide-search__filters").fadeOut({duration:200}),c.find(".fpa-sitewide-search__mobile-modal-overlay").hide(),P(!1,!0).then(k)};window.addEventListener("windowConfiguration",(function(t){switch(u=t.detail.target,t.detail.target){case"desktop":w=!1,c.find(".fpa-sitewide-search__filters").show(),c.find(".fpa-sitewide-search__apply").hide();break;case"mobile":w=!0,c.find(".fpa-sitewide-search__apply").show(),c.find(".fpa-sitewide-search__filters").hide();break}})),(()=>{const e=new URL(window.location.href);for(let t in b)c.find(`input[name="${t}"][value="${b[t]}"]`).prop("checked",!0);const i=e.searchParams.get("q");if(null==i||0==i?.replace(/\s/g,"")?.length)return void x();c.find(".fpa-sitewide-search__searchbar-form input").val(i);for(const i of Array.from(e.searchParams.keys()).filter((e=>e.startsWith(t)))){const a=i.substring(t.length),n=g[a]=orDefault(g[a],{});for(const t of e.searchParams.get(i).split(","))n[t]=!0}const a=parseInt(e.searchParams.get("page"));isNaN(a)?(y=1,e.searchParams.set("page",y),window.history.replaceState({},"",e)):y=a,P()})()}))})),$((()=>{$(".fpa-smp-header").length&&$(".fpa-smp-header").each((function(){const t=$(".fpa-global-notification");t.length>0&&(t.css("margin-top",$(".fpa-smp-header").outerHeight()).css("position","absolute"),$(window).on("resize scroll",(function(){const t=$(".fpa-smp-header").outerHeight();$(".fpa-smp-header").isInViewport()?$(".fpa-global-notification").css("margin-top",t).css("position","absolute"):$(".container-sticky .fpa-global-notification").css("margin-top","0").css("position","relative")})),$.fn.isInViewport=function(){if(t.length>0){var e=$(".fpa-smp-header").offset().top,i=e+$(this).outerHeight(),a=$(window).scrollTop(),n=a+$(window).height();return i>a&&e<n}})}))})),$((()=>{$(".fpa-smp-nav").length&&$(".fpa-smp-nav").each((function(){const t=$(this);function e(e){const i=$(e).scrollLeft(),a=$(e).get(0).scrollWidth,n=$(e).outerWidth();t.find(".fpa-smp-nav__blur--left").css("opacity",i>0?1:0),t.find(".fpa-smp-nav__blur--right").css("opacity",a>Math.ceil(i+n)?1:0)}$(this).find(".fpa-smp-nav__link-list").on("scroll",(function(){e(this)})),$(window).on("resize",e(t.find(".fpa-smp-nav__link-list"))),e(t.find(".fpa-smp-nav__link-list")),$.fn.isInViewport=function(){if($(this).length){let t=$(this).offset().top,e=t+$(this).outerHeight(),i=$(window).scrollTop(),a=i+$(window).outerHeight();return e>i&&t<a}},$(window).on("scroll",(function(){t.find(".fpa-smp-nav__link").each((function(){const t=$(this).attr("href");t.startsWith("#")&&($(t).isInViewport()?$(this).addClass("active"):$(this).removeClass("active"))}))}));t.find(".fpa-smp-nav__ctas a").not(".tertiary").length<=0&&t.find(".fpa-smp-nav__ctas").addClass("fpa-smp-nav__ctas--no-cta");window.addEventListener("windowConfiguration",(e=>{window.removeSticky(t),window.addSticky(t,"fpa-smp-nav--sticky",!1,"fpa-smp-nav__sticky-container")}))}))})),$((t=>{if(0===t(".fpa-social__social-icon").length)return;let e=window.location.href;t(".fpa-social__social-icon").each((function(){switch(t(this).children().attr("alt")){case"Facebook Icon":t(this).attr("href",`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e)}&t=${encodeURIComponent(e)}`);break;case"LinkedIn Icon":t(this).attr("href",`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(e)}&title=${encodeURIComponent(document.title)}`);break;case"Twitter Icon":t(this).attr("href",`https://twitter.com/intent/tweet?text=${encodeURIComponent(document.title)}%20${encodeURIComponent(e)}`);break}const i=document.getElementById("copy");i.addEventListener("click",(t=>(t=>{let i=document.createElement("input");document.body.appendChild(i),i.value=e,i.select(),document.execCommand("copy"),document.body.removeChild(i),t.target.classList.add("copied"),t.target.setAttribute("data-tooltip","Link copied")})(t))),i.addEventListener("mouseover",(t=>(t=>{t.target.classList.remove("copied"),t.target.setAttribute("data-tooltip","Copy link")})(t)))}))})),$((t=>{if(0===t(".facet").length)return;const e=t(".facet__value[data-figure]");const i=new IntersectionObserver((e=>{e.forEach((e=>{0!==e.intersectionRatio&&(!function(e){const i=t(e);i.text(0),i.css("visibility","visible");const a=i.attr("data-figure");t({countNum:i.text()}).animate({countNum:a},{duration:1e3,easing:"linear",step(){i.text(Math.floor(this.countNum))},complete(){i.text(numberWithCommas(this.countNum))}})}(e.target),i.unobserve(e.target))}))}));t.each(e,((e,a)=>{t(a).css("visibility","hidden"),i.observe(a)}))})),$((()=>{if(!$(".fpa-store-search-listing").length)return;const t=$(".fpa-store-search-listing__back-top");t.on("click",(()=>{$([document.documentElement,document.body]).animate({scrollTop:$(".fpa-store-search-widget").offset().top-100},0)})),window.addEventListener("scroll",(function(){window.scrollY>1200?t.show():t.hide()}))})),$((()=>{if(!$(".fpa-store-search-widget").length)return;const t=$(".fpa-store-search-widget");let e=!1,i=[],a=[],n=null,s=null,o=null,r=window.innerWidth<768;function l(){new URLSearchParams(window.location.search).delete("q"),window.history.replaceState({},"",`${window.location.pathname}`),s="",o=null,$(".fpa-store-search-widget__button-group button").each((function(){$(this).removeClass("active")})),$(".retail-search-input input[type=text]").val(""),$(".retail-search-clear-button").hide(),$("#search-result").empty(),$("#search-result").removeClass("active")}$(window).on("resize",(function(){r=window.innerWidth<768}));const c=function(i){const a=$(i).parent().find($(".retail-search-input "+(r?".mobile":".desktop"))).val();if(e){const t=new URLSearchParams(window.location.search);t.set("q",a),window.history.replaceState({},"",window.location.pathname+"?"+t),s=a,h(n,a,o)}else{const e=new URL(window.location.href);Array.from(e.searchParams.keys()).forEach((t=>{e.searchParams.delete(t)})),window.history.replaceState({},"",e),e.searchParams.set("q",a),e.searchParams.set("category",n);const i=`${t.data("redirect-url")??"search"}?${e.searchParams.toString()}`;window.location.href=i}};function d(){$("#search-result").empty(),$("#search-result").removeClass("active"),$("#search-no-results").removeClass("active"),s&&($(".retail-search-input input[type=text]").val(s),$(".retail-search-clear-button").show(),a.length?($("#search-result").addClass("active"),$("#search-result").append(`Showing results for <b>'${s}'</b>`)):($("#search-no-results").addClass("active"),$("#search-no-results div span").text(s))),o&&!a.length&&($("#search-no-results").addClass("active"),$("#search-no-results div span").text(o))}function h(n,s,o){$.get(t.data("retail-search-endpoint"),(function(t){const r=n;let l=t.filter((t=>t.Category===r));"All"===r&&(l=t),a=s?l.filter((t=>{const e=t.StoreName.toLowerCase().includes(s.toLowerCase()),i=(t?.AdditionalStoreSearchKeywords?.split(",").map((t=>t.trim().toLowerCase()))||[]).includes(s.toLowerCase());return e||i})):l,o&&(a=[...new Set(a.filter((t=>t.Subcategory.toLowerCase()===o.toLowerCase())))]),d();const c=[...new Set(a.map((t=>t.StoreName)))],h=[...new Set(a.map((t=>t.StoreName.charAt(0).toUpperCase())))].sort(),p="#ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");if(c.some((t=>/^[^A-Za-z]/.test(t)))&&h.push("#"),i=p.filter((t=>!h.includes(t))),e){a.sort(((t,e)=>t.StoreName.localeCompare(e.StoreName)));const t=a.reduce(((t,e)=>{const i=/^[^A-Za-z]/.test(e.StoreName)?"#":e.StoreName[0].toUpperCase();return t[i]||(t[i]=[]),t[i].push(e),t}),{}),e=$("#listing");e.empty(),$.each(t,(function(t,i){const a=$(`<section class="section" id="select-${"#"===t?"number":t}"><div class="fpa-store-search-listing__heading"><h3>${t}</h3></div></section>`),n=$('<div class="fpa-store-search-listing__group"></div>');i.forEach((t=>{const e=`\n\t\t\t\t\t<div class="fpa-store-search-listing__card">\n\t\t\t\t\t<a href="${t.Url}">\n\t\t\t\t\t<div class="fpa-store-search-listing__card-img">\n\t\t\t\t\t\t<img src="${t.Logo}" alt="${t.StoreName} logo" loading="lazy" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="fpa-store-search-listing__card-content">\n\t\t\t\t\t\t<p class="fpa-store-search-listing__card-title">${t.StoreName}</p>\n\t\t\t\t\t\t${t.Subheading?`<p class="fpa-store-search-listing__card-sub-heading">${t.Subheading}</p>`:""}\n\t\t\t\t\t\t${t.ListingCardShortDescription?`<p class="fpa-store-search-listing__card-description">${t.ListingCardShortDescription}</p>`:""}\n\t\t\t\t\t\t<div class="fpa-store-search-listing__card-label">${t.Subcategory}</div>\n\t\t\t\t\t\t<div class="fpa-store-search-listing__card-address">${t.Location}</div>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t`;n.append(e)})),a.append(n),e.append(a)}))}})).fail((function(){})).done((function(){!function(t){$(".alphabet-list").find(".alphabet-item").each((function(){const e=$(this).data("letter");$(this).toggleClass("disabled",t.includes(e))}))}(i);const t=new URLSearchParams(window.location.search);if(t.has("sl")){const e=t.get("sl"),i=$(`#select-${"#"===e?"number":e}`);$([document.documentElement,document.body]).animate({scrollTop:i.offset().top-100},0)}}))}$(".fpa-store-search-widget__tab").click((function(){$(".fpa-store-search-widget__tab").removeClass("active"),$(".fpa-store-search-widget__tab-content").removeClass("active"),$(this).addClass("active"),$($(this).data("target")).addClass("active"),"#All"!==$(this).data("target")?$("#All").removeClass("active").hide():$("#All").show(),l();const t=$(this).data("target").replace("#","");h(t,s,o),n=t;const e=new URLSearchParams(window.location.search);e.set("category",n),window.history.replaceState({},"",window.location.pathname+"?"+e)})),$(".fpa-store-search-widget__button-group").on("click","button",(function(){const i=$(this).data("value");$(".fpa-store-search-widget__button-group button").not(this).removeClass("active");const a=new URLSearchParams(window.location.search);if(a.delete("subcategory"),window.history.replaceState({},"",window.location.pathname+"?"+a),o===i?(o=null,$(this).removeClass("active"),$(this).blur()):(o=i,e&&$(this).addClass("active"),a.set("category",n),a.set("subcategory",i),window.history.replaceState({},"",window.location.pathname+"?"+a)),e)h(n,s,o);else{const e=new URL(window.location.href);Array.from(e.searchParams.keys()).forEach((t=>{e.searchParams.delete(t)})),window.history.replaceState({},"",e),e.searchParams.set("category",n),e.searchParams.set("subcategory",i);const a=`${t.data("redirect-url")??""}?${e.searchParams.toString()}`;window.location.href=a}})),$(".retail-search-input .retail-search-input-button").on("click",(function(){c(this),$(".retail-search-clear-button").show()})),$(".retail-search-input .retail-search-clear-button").on("click",(function(){$(".retail-search-input input[type=text]").val(""),l(),c(this)})),$(".retail-search-input input[type=text]").on("keyup",(function(t){"Enter"!==t.key&&13!==t.keyCode||(c(this),$(".retail-search-clear-button").show())})),$(".retail-search-input input[type=text]").on("input",(function(){const t=$(this).val();t&&""!==t.trim()||(l(),c(this),$(".retail-search-input-button").show(),$(".retail-search-clear-button").hide())})),$(document).ready((function(){$(".fpa-store-search-listing").length&&(e=!0);const i=$(".fpa-store-search-widget__tab").first().data("target").replace("#","");n=i,$(".suggested-text").append(t.data("suggested-text")),function(i){const a=i?$(".alphabet-list"):$("#All").find(".alphabet-list"),s=[];s.push('<div class="alphabet-item" data-letter="#">#</div>');for(let t=65;t<=90;t++){const e=String.fromCharCode(t);s.push(`<div class="alphabet-item" data-letter="${e}">${e}</div>`)}a.html(s.join("")),a.on("click",".alphabet-item:not(.disabled)",(function(){const i=$(this).text();if(a.find("#letter").text(i),e){const t=$(`#select-${"#"===i?"number":i}`);$([document.documentElement,document.body]).animate({scrollTop:t.offset().top-100},0)}else{const e=new URL(window.location.href);Array.from(e.searchParams.keys()).forEach((t=>{e.searchParams.delete(t)})),window.history.replaceState({},"",e),e.searchParams.set("sl",i),e.searchParams.set("category",n);const a=`${t.data("redirect-url")??""}?${e.searchParams.toString()}`;window.location.href=a}}))}(`#${n}`);const a=$(".fpa-store-search-widget__tab").first();if(a.addClass("active"),$(".fpa-store-search-widget__tab-content").first().addClass("active"),"#All"!==a.data("target")&&$("#All").removeClass("active"),e){const t=new URLSearchParams(window.location.search);if(t.has("category")){const e=t.get("category"),i=t.get("subcategory");n=e,o=i,$(".fpa-store-search-widget__tab").each((function(){$(this).data("target")===`#${e}`?$(this).addClass("active"):$(this).removeClass("active")})),$(".fpa-store-search-widget__tab-content").each((function(){$(this).attr("id")===e?$(this).addClass("active"):$(this).removeClass("active")})),$(".fpa-store-search-widget__tab-content.active .fpa-store-search-widget__button-group button").each((function(){$(this).data("value")===o?$(this).addClass("active"):$(this).removeClass("active")})),"All"!==e&&$("#All").removeClass("active").hide()}t.has("q")&&(s=t.get("q"))}h(n,s,o)}))})),$((()=>{if(!$(".fpa-tabs").length)return;const t="fpa-tabs--openned";$(".fpa-tabs").each((function(){const e=$(this);let i=null,a=null,n=null;e.find(".fpa-tabs__option").each((function(){const s=$(this);s.on("click",(function(o){const r=s.data("content-id");if(!r)return;const l=e.find(`#${r}`);l&&(o.preventDefault(),l.hasClass(t)||(i&&(i.fadeOut({duration:0,complete:function(){$(this).css({display:""})}}),n&&(a.css({backgroundColor:""}),i.css({backgroundColor:""})),a.removeClass(t),i.removeClass(t),a.parent().removeClass(t)),l.fadeIn({duration:0,start:function(){n=e.data("background-colour"),n&&(s.css({backgroundColor:n}),l.css({backgroundColor:n})),s.addClass(t),l.addClass(t),s.parent().addClass(t)},complete:function(){$(this).css({display:""})}}),i&&s[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"}),i=l,a=s,window.dispatchEvent(new Event("resize"))))}))})),e.find(".fpa-tabs__option").first().trigger("click",[!0])}))})),$((()=>{var t=$(".fpa-testimonial-bg");t.length&&t.each((function(){$(this).find(".carousel-cell").each((function(){$(this).find(".fpa-testimonial__img-section__btn-video").on("click",(function(){$(".tingle-modal--visible .tingle-modal__close").on("click",(function(){$(".tingle-modal__close").next(".tingle-modal-box").find("iframe").attr("src"," ")}))}))}))}))})),$((()=>{const t={error:{color:"#ed1c24",icon:"url('/assets/images/icons/exclamation-triangle.svg')"},success:{color:"#43695b",icon:"url('/assets/images/icons/check-circle.svg')"},info:{color:"#425563",icon:"url('/assets/images/icons/info-circle.svg')"},default:{color:"#425563",icon:"url('/assets/images/icons/info-circle.svg')"}};let e=[],i=0;const a=function(t){t[0].classList.add("fadeOutRight"),setTimeout((()=>{-1!==e.indexOf(t)&&0==--i&&(e.forEach((t=>t.remove())),e=[])}),1e3)},n=$("#fpa-toast-message-template").html(),s=Handlebars.compile(n);window.presentToast=(n,o,r=!0,l=null,c=null,d=null)=>{$(".fpa-toast-message__container").length||$("main").append('<div class="fpa-toast-message__container"></div>');const h=s({title:o,body:l,dismissible:r}),p=$(h).appendTo(".fpa-toast-message__container");!function(e,i,a=null,n=null){const{color:s,icon:o}=orDefault(t[i],t.default);$(e).css("border-color",orDefault(a,s)),$(".fpa-toast-message__icon",e).css({"background-color":orDefault(a,s),"background-image":n?`url(${n})`:o})}(p,n,c,d),e.push(p),++i>10&&(e.shift().remove(),--i);const f=3e3+100*((o&&o.length||0)+(l&&l.length||0));setTimeout((()=>a(p)),f),r&&$(".fpa-toast-message__dismiss-wrapper>button",p).on("click",(()=>a(p)))};const o=function(t){const e=$(t).data("toast-title"),i=$(t).data("toast-type"),a=$(t).data("toast-dismissible"),n=orDefault($(t).data("toast-body"),null),s=orDefault($(t).data("toast-color"),null),o=orDefault($(t).data("toast-icon"),null);presentToast(i,e,a,n,s,o)};$(".fpa-toast-message__trigger-page-load").each((function(){o(this)})),$(".fpa-toast-message__trigger-button").on("click",(function(){o(this)}))})),$((()=>{if(!$(".fpa-video-splash").length)return;const t=$(".fpa-global-notification"),e=$(".fpa-global-header").outerHeight()+$(".fpa-site-nav").outerHeight();function i(){$(".fpa-video-splash").each((function(){const t=$(this).data("initial-animation-time")||1;if($(this).isInViewport()){const e=$(this).find(".fpa-video-splash__herotext"),i=$(this).find(".fpa-video-splash__title"),a=$(this).find(".fpa-video-splash__description"),n=$(this).find(".fpa-video-splash__disclaimer"),s=$(this).find(".fpa-video-splash__overlay");setTimeout((function(){$(e).addClass("animateHeroText"),$(e).css("animation-duration",`${t}s`)}),0),setTimeout((function(){$(i).addClass("animationFadeIn"),$(a).addClass("animationFadeIn"),$(n).addClass("animationFadeIn"),$(s).removeClass("hide-overlay").addClass("fadeInDimmer")}),1e3*t)}}))}function a(){const t=$(".fpa-search-widget");t.length>0&&setTimeout((()=>{t.animate({bottom:"0"})}),500);const e=$(".fpa-stock-search-widget");e.length>0&&setTimeout((()=>{e.animate({bottom:"0"})}),500);const i=$(".fpa-stock-search-widget-static");i.length>0&&setTimeout((()=>{i.animate({bottom:"0"})}),500)}$(".fpa-video-splash").length&&$(".fpa-video-splash").each((function(){t.length>0&&t.css("opacity",0).css("height",0);const i=$(this).data("initial-animation-time")||1;!function(t){$(".fpa-stock-search-widget").length>0&&$(t).addClass("has-stock-search-widget");$(".fpa-stock-search-widget-static").length>0&&$(t).addClass("has-stock-search-widget-static");$(".fpa-search-widget").length>0&&$(t).addClass("has-search-widget")}(this),function(t){const e=$(".fpa-stock-search-widget");e.length>0&&e.css("bottom","-130px");const i=$(".fpa-stock-search-widget-static");i.length>0&&i.css("bottom","-130px");const a=$(".fpa-search-widget");a.length>0&&a.css("bottom","-130px");!function(t){$(t).css("z-index","unset")}(t)}(this);const n=$(this).data("unique-id");function s(){$(".fpa-global-header").removeAttr("id").css("top",0).css("opacity",1)}function o(e){$(".fpa-site-nav").removeAttr("id").css("top",e?$(".fpa-global-header").outerHeight():0).css("opacity",1),t.length>0&&t.css("opacity",1).css("height","auto")}if(0==$(this).offset().top){$(".fpa-global-header").attr("id","hideGlobalHeader"),$(".fpa-site-nav").attr("id","hideMeganav"),$("main").attr("id","resetMargin"),$(window).scrollTop()>0&&$(window).scrollTop()<401?(s(),o(!0)):$(window).scrollTop()>400&&(s(),o(!1)),setTimeout((function(){0==$(window).scrollTop()&&(s(),o(!0),$(this).find(".fpa-video-splash__overlay").removeClass("hide-overlay").addClass("fadeInDimmer"),a())}),1e3*i),$(this).find(".fpa-video-splash__herotext").css("margin-top",-e),$(this).find(".container").css("margin-top",e);const t=window.innerHeight-e-$(".fpa-video-splash__disclaimer").outerHeight();$(this).find(".fpa-video-splash__content").css("height",t)}else 0!=$(".fpa-video-splash").offset().top&&(s(),o(!0));$(window).on("resize",(function(){const t=window.innerHeight-e-$(".fpa-video-splash__disclaimer").outerHeight();$(".fpa-video-splash").each((function(){0==$(this).offset().top&&$(this).find(".fpa-video-splash__content").css("height",t)}))}));localStorage.getItem("isReturning")==n?($("body").addClass("returning"),$(".fpa-video-splash").find(".fpa-video-splash__herotext").css("display","none"),$(".fpa-video-splash").find(".fpa-video-splash__title, .fpa-video-splash__description, .fpa-video-splash__disclaimer").addClass("animationFadeIn"),$(".fpa-video-splash").find(".fpa-video-splash__overlay").removeClass("hide-overlay").addClass("fadeInDimmer"),s(),o(!0),a()):localStorage.setItem("isReturning",n)})),$.fn.isInViewport=function(){const t=$(this).offset().top,e=t+$(this).outerHeight(),i=$(window).scrollTop(),a=i+$(window).height();return e>i&&t<a},i(),$(window).on("scroll",(function(){i(),a()}))})),$((()=>{if(0===$(".fpa-selling-contact-cta").length||0===$(".fpa-selling-specs-cta-footer").length)return;let t=!0,e=[];const i=Handlebars.compile($("#fpa-selling-cta-footer-specs").html());function a(){var t=$(".fpa-selling-contact-cta")[0].getBoundingClientRect().bottom;$(window).scrollTop()>t?$(".fpa-selling-specs-cta-footer").css("opacity",1).css("height","auto"):$(".fpa-selling-specs-cta-footer").css("opacity",0).css("height",0)}$(document).ready((function(){$(".fpa-selling-contact-cta").each((function(){e=$(this).data("lot-details"),$(this).on("finishLoading",(function(){t=$(this).data("is-loading"),e=$(this).data("lot-details"),function(){if(!t){const t={lotDetails:e};$(".fpa-selling-specs-cta-footer__spec").empty(),$(".fpa-selling-specs-cta-footer__spec").append(i(t))}}()}))}))})),a(),$(window).scroll(a)})),$((()=>{if(0===$(".fpa-selling-facts-and-inclusions").length)return;let t=!0,e=[],i=[],a=[],n="";const s=Handlebars.compile($("#fpa-selling-facts-and-inclusions").html());function o(){if(!t){const t={lotDetails:e};$(".fpa-selling-facts-and-inclusions").empty(),$(".fpa-selling-facts-and-inclusions").append(s(t));const o=$(".fpa-selling-facts-and-inclusions ul");0!==o.length&&(o.each((function(){$(this)[0].clientHeight>300&&$(this).addClass("overflow")})),"land"==e[0].type&&($(".fpa-selling-facts-and-inclusions").addClass("fpa-selling-facts-and-inclusions--land"),a=$(".fpa-selling-facts-and-inclusions__facts li"),i=function(){const t=$(".fpa-selling-facts-and-inclusions__facts li:nth-child(odd)").toArray(),e=$(".fpa-selling-facts-and-inclusions__facts li:nth-child(even)").toArray();return t.concat(e)}(),r(n)),$(".fpa-selling-facts-and-inclusions__read-more .btn").on("click",(function(){const t=$(this).parent().parent();t.hasClass("extended")?t.removeClass("extended"):t.addClass("extended")})))}}$(window).on("load",(function(){$(".fpa-selling-facts-and-inclusions").each((function(){const i=$(this)[0];e=$(this).data("lot-details"),t=$(this).data("is-loading"),o();new MutationObserver((()=>{t=$(this).data("is-loading"),e=$(this).data("lot-details"),o()})).observe(i,{attributes:!0})}))}));const r=t=>{0!=a.length&&0!=i.length&&("mobile"==t?$(".fpa-selling-facts-and-inclusions__facts").html(a):$(".fpa-selling-facts-and-inclusions__facts").html(i))};window.addEventListener("windowConfiguration",(t=>{n=t.detail.target,r(n)}))})),$((()=>{if(0===$(".fpa-selling-form-header").length)return;let t=!0,e=[];const i=Handlebars.compile($("#fpa-selling-form-header").html());function a(){if(!t){const t={lotDetails:e};$(".fpa-selling-form-header").empty(),$(".fpa-selling-form-header").append(i(t))}}$(window).on("load",(function(){$(".fpa-selling-form-header").each((function(){const i=$(this)[0];e=$(this).data("lot-details"),t=$(this).data("is-loading"),a();new MutationObserver((()=>{t=$(this).data("is-loading"),e=$(this).data("lot-details"),a()})).observe(i,{attributes:!0})}))}))})),$((()=>{let t=null,e=null,i=!0,a=!1,n=null;if(!$(".fpa-selling-gallery").length)return;const s=document.querySelector("#fpa-selling-gallery"),o=Handlebars.compile($("#fpa-selling-gallery-image").html()),r=Handlebars.compile($("#fpa-selling-media-toolbar").html());$(window).on("load",(function(){$(".fpa-selling-gallery").each((function(){a=$(this).data("is-local")||!1,t=$(this).data("gallery-images"),e=$(this).data("gallery-images"),i=$(this).data("is-loading"),a&&(i=!1,t=[{url:"/-/media/EProsper/3173/Living_1-bedroom-apartment_Apt603_Treehouse-1000x565.png",alt:"Living_1 bedroom apartment_Apt603_Treehouse 1000x565",disclaimer:null,caption:null,type:"Gallery"},{url:"/-/media/EProsper/3173/Living_1-bedroom-apartment_Apt603_Treehouse-1000x565.png",alt:"Living_1 bedroom apartment_Apt603_Treehouse 1000x565",disclaimer:"Artists impression",caption:"Big bright living space",type:"Gallery"},{url:"/-/media/EProsper/3173/Winter_Scheme-1.jpg",alt:"Winter_Scheme",disclaimer:"Artist's impression",caption:"Kitchen",type:"Gallery"},{url:"/-/media/EProsper/3173/Treehouse-Room-with-waterplay_Treehouse-1000x565.png",alt:"Girl playing in fountain",disclaimer:"Artists impression",caption:"Kid's fountain",type:"Gallery"},{url:"/-/media/EProsper/3173/Treehouse-Room-with-work-space_Treehouse-1000x565.png",alt:"Treehouse Room with work space_Treehouse 1000x565",disclaimer:"Artists impression",caption:"Ourdoor terrace",type:"Gallery"},{url:"/-/media/EProsper/3173/Rooftop-Sky-Garden_Treehouse_1000x565.png",alt:"Rooftop Sky Garden_Treehouse_1000x565",disclaimer:"Artists impression",caption:"Outdoor courtyard",type:"Gallery"},{url:"/-/media/EProsper/3173/Treehouse-Room-with-seating-area_Treehouse-1000x565.png",alt:"Treehouse Room with seating area_Treehouse 1000x565",disclaimer:"Artists impression",caption:"Meeting space",type:"Gallery"},{url:"/-/media/EProsper/3173/2_Bed_2_bath-1.jpg",alt:"2_Bed_2_bath",disclaimer:"Artist's impression",caption:"Sitting area",type:"Gallery"},{url:"/-/media/EProsper/3173/Macquarie_Centre.jpg",alt:"Macquarie_Centre",disclaimer:"Location shot",caption:"Outdoor ",type:"Gallery"},{url:"/-/media/EProsper/3173/FRASERS_C3-Treehouse_Brochure_Pages1-1.pdf",alt:"Treehouse brochure",disclaimer:null,caption:"Brochures",type:"Brochures"},{url:"https://smlmsdaz.frasersproperty.com.au/-/media/EProsper/3173/Midtown-floorplan-image-example.jpg",alt:"Midtown floorplan image example",disclaimer:"Pricing and availability is subject to change without noticePricing and availability is subject to change without noticePricing and availability is subject to change without noticePricing and availability is subject to change without notice",caption:"Adding a caption in here",type:"Floor plan"},{url:"https://smlmsdaz.frasersproperty.com.au/-/media/EProsper/3173/Midtown-floorplan-image-example.jpg",alt:"Midtown stageplan image example",disclaimer:"Pricing and availability is subject to change without noticePricing and availability is subject to change without noticePricing and availability is subject to change without noticePricing and availability is subject to change without notice",caption:"Adding a caption in here",type:"Stage Plan"},{url:"https://www.youtube.com/embed/eBEn2zxgtQ4?si=XxRhEreCdqk60uCI",alt:"Midtown stageplan image example",disclaimer:"Pricing and availability is subject to change without noticePricing and availability is subject to change without noticePricing and availability is subject to change without noticePricing and availability is subject to change without notice",caption:"Adding a caption in here",type:"Video"}],e=t),t.length>0&&(galleryImagesdFiltered=t.filter((t=>!t.url.includes(".pdf"))));new MutationObserver((()=>{t=$(this).data("gallery-images"),e=$(this).data("gallery-images"),t.length>0&&(t=t.filter((t=>!t.url.includes(".pdf")))),i=$(this).data("is-loading"),c()})).observe(s,{attributes:!0}),c()}))}));const l="fpa-selling-gallery__image-container--last_visible";async function c(){if(!1===i){await function(){t.length>0&&t?.map((e=>{Object.assign(e,{length:t.length})}));const i={images:t};if(e.length>0){const a=e.filter((t=>"Brochures"===t.type)),s=t.filter((t=>"Floor plan"===t.type)),l=t.filter((t=>"Stage Plan"===t.type)),c=e.filter((t=>"Virtual Tour"===t.type)),d=e.filter((t=>"Video"===t.type)),h={mediaItems:[{brochure:a.length?a[0]:null,floorPlan:s.length?s[0]:null,stagePlan:l.length?l[0]:null,virtualTour:c.length?c[0]:null,video:d.length?d[0]:null}]};return d.length&&($(".media-video").show(),d&&(n=d[0].url)),new Promise((t=>{setTimeout((()=>{$(".fpa-selling-gallery__grid-col").empty(),$(".fpa-selling-media-toolbar__container").empty(),t($(".fpa-selling-gallery__grid-col").append(o(i))),t($(".fpa-selling-media-toolbar__container").append(r(h)))}),600)}))}return new Promise((t=>{}))}().then((t=>{t&&$(".fpa-selling-gallery").each((async function(){const t=$(this);await async function(t){return t.prepend('<div class="fpa-gallery-loader"></div>'),new Promise((e=>{$(".fpa-selling-gallery__image-wrapper",t).each((function(){const{naturalHeight:t,naturalWidth:e}=$("img",this)[0];$(this).attr("data-pswp-width",e),$(this).attr("data-pswp-height",t)})),t.find(".fpa-gallery-loader").remove(),e()}))}(t).then((()=>{t.addClass("fpa-selling-gallery--loaded"),t.find(".fpa-selling-gallery__grid").each((function(t){const e={gallery:$(this)[0],pswpModule:PhotoSwipe,children:"a",mainClass:"fpa-selling-gallery__modal",initialZoomLevel:"fit",secondaryZoomLevel:"1.5",tapAction:"close",zoomSVG:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true" fill="#fff">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M208 48a160 160 0 1 1 0 320 160 160 0 1 1 0-320zm0 368c48.8 0 93.7-16.8 129.1-44.9l124 124 17 17L512 478.1l-17-17-124-124C399.2 301.7 416 256.8 416 208C416 93.1 322.9 0 208 0S0 93.1 0 208S93.1 416 208 416zm-24-96h48V296 232h64 24V184H296 232V120l0-24H184v24 64H120 96v48h24 64v64 24z"/></svg>',closeSVG:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" aria-hidden="true" fill="#fff">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M323 137l17-17L306 86.1l-17 17-119 119L51 103l-17-17L.1 120l17 17 119 119L17 375 .1 392 34 425.9l17-17 119-119L289 409l17 17L339.9 392l-17-17-119-119L323 137z"/></svg>'},i=new PhotoSwipeLightbox(e);i.on("uiRegister",(function(){i.pswp.ui.registerElement({name:"download-button",order:10,isButton:!0,tagName:"a",html:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true" fill="#fff">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M280 24V0H232V24 294.1l-95-95-17-17L86.1 216l17 17L239 369l17 17 17-17L409 233l17-17L392 182.1l-17 17-95 95V24zM128.8 304H48 0v48V464v48H48 464h48V464 352 304H464 383.2l-48 48H464V464H48V352H176.8l-48-48zM432 408a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"/></svg>',onInit:(t,e)=>{t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"),e.on("change",(()=>{t.href=e.currSlide.data.src}))}})})),i.on("beforeOpen",(()=>{$(this).find(".fpa-selling-gallery__image-container a").each((function(){const{naturalHeight:t,naturalWidth:e}=$("img",this)[0];$(this).attr("data-pswp-width",e),$(this).attr("data-pswp-height",t)}))})),i.init();$(".fpa-selling-gallery__image-wrapper",this).each((function(t){$(this).attr("data-gallery-image",t)})),$(this).find(".fpa-selling-gallery__image-container a").each((function(){$(this).on("click",(function(){const{naturalHeight:t,naturalWidth:e}=$("img",this)[0];$(this).attr("data-pswp-width",e),$(this).attr("data-pswp-height",t)}))})),function(t,e,i){const a="fpa-selling-gallery__image-container--displayed";$(".fpa-selling-gallery__grid-col",i).each((function(){const i=$(".fpa-selling-gallery__image-container",this),n=t*e,s=t*(e+1);i.slice(n,s).addClass(a)}));const n=$(i).find(`.${a}`);$(i).find(".label-container").empty(),$(i).find(`.${l}`).removeClass(l);const s=n.length,o=n.last(),r=galleryImagesdFiltered.length;if(r-s<=0)return;const c=`<div class='label-container'><p class='view-more-label'>View more</p><p class='view-more-number'><span>+</span>${r-s}</p></div>`;o.find(".fpa-selling-gallery__image-wrapper").append(c),o.addClass(l)}(5,0,this),i.on("contentActivate",(({content:t})=>{$(".fpa-selling-gallery__modal-text").remove();const e=t.slide.data.element.getAttribute("data-subtitle"),i=t.slide.data.element.getAttribute("data-disclaimer");(i||e)&&($(".pswp__scroll-wrap").append('<div class="fpa-selling-gallery__modal-text"><div class="subtitle"></div><em class="disclaimer"></em></div>'),$(".fpa-selling-gallery__modal-text > .subtitle").text(e),$(".fpa-selling-gallery__modal-text > .disclaimer").text(i))})),i.on("close",(()=>{$(".fpa-selling-gallery__modal-text").remove();const t=new URL(window.location.href);t.searchParams.delete("gallery-image"),window.history.pushState({},"",t)}))}))}))}))}))}}$(".lot-listing-video").on("click",(function(){$(".fpa-selling-gallery__media-modal__video").find("iframe").attr("src",n)}))})),$((()=>{if(0===$(".fpa-selling-introduction-container").length)return;let t=!0,e=[];const i=Handlebars.compile($("#fpa-selling-introduction").html());function a(){if(!t){const t={lotDetails:e};$(".fpa-selling-introduction-container").empty(),$(".fpa-selling-introduction-container").append(i(t));const a=$(".fpa-selling-introduction-container");if(0!==a.find(".fpa-wysiwyg").length){const t=a[0].clientHeight,e=$(".fpa-selling-contact-cta");let i=270;0!==e.length&&(i=e[0].clientHeight,parseInt(t)>parseInt(i)&&($(a).addClass("overflow"),$(".fpa-selling-introduction__content").css("max-height",`${parseInt(i)}px`)),$(".fpa-selling-introduction-container__read-more .btn").on("click",(function(){a.hasClass("extended")?($(a).removeClass("extended"),$(".fpa-selling-introduction__content").css("max-height",`${parseInt(i)}px`)):($(a).addClass("extended"),$(".fpa-selling-introduction__content").css("max-height",`${parseInt(i+t)}px`))})))}}}$(window).on("load",(function(){$(".fpa-selling-introduction-container").each((function(){const i=$(this)[0];e=$(this).data("lot-details"),t=$(this).data("is-loading"),a();new MutationObserver((()=>{t=$(this).data("is-loading"),e=$(this).data("lot-details"),a()})).observe(i,{attributes:!0})}))}))})),$((()=>{if(0===$(".fpa-selling-key-features").length)return;let t=!0,e=[];const i=Handlebars.compile($("#fpa-selling-key-features").html());function a(){if(!t){const t={lotDetails:e};$(".fpa-selling-key-features").empty(),$(".fpa-selling-key-features").append(i(t))}}$(window).on("load",(function(){$(".fpa-selling-key-features").each((function(){const i=$(this)[0];e=$(this).data("lot-details"),t=$(this).data("is-loading"),a();new MutationObserver((()=>{t=$(this).data("is-loading"),e=$(this).data("lot-details"),a()})).observe(i,{attributes:!0})}))}))})),$((t=>{t(".fpa-selling-lot").length&&init()}));class lotItemsAPI{constructor(){this.isFetchingResults=!1,this.resultJson=null,this.gallery=[],this.lotDetail=[],this.urlParam=new URLSearchParams(window.location.search),this.searchEndpoint=$(".fpa-selling-lot").data("stock-detail-endpoint"),this.isLocal=this.searchEndpoint?.includes(".json"),this.requestBase={method:this.isLocal?"GET":"POST",headers:{Accept:"application/json","Content-Type":"application/json"}},this.lotId=this.urlParam.get("lot")}init(){this.renderLotItems(),this.urlParam.has("lot")&&$(".fpa-selling-lot").length&&this.lotId}getLotItem(){return this.isLocal?loadJson(this.searchEndpoint,{...this.requestBase},null):loadJson(this.searchEndpoint,{...this.requestBase,body:JSON.stringify({aoids:[this.lotId],collectionFilter:{isActive:"1",releaseTypes:["Release"],collectionTypes:["LotCollection"]}})},null)}async renderLotItems(){this.isFetchingResults=!0;let t=[];await this.getLotItem().then((t=>{this.mapLotData(t),this.handlePropertySpecs(),this.handleIntroduction(),this.handleGallery(),this.handleSellingCta(),this.handleFeatures(),this.handleFactsAndInclusions(),this.handleFormHeader(),this.handleHiddenFields()})),t.length&&Promise.all(t).then((()=>{this.isFetchingResults=!1}))}mapLotData(t){t&&(this.resultJson=t,this.resultJson.forEach((t=>{const e=t.jsonData.heroMediaItems;if(e){const t={url:e.media?.url,alt:e.media?.title,disclaimer:e.jsonData?.disclaimer,caption:e.jsonData?.caption,type:e.media?.crmmediaType};this.gallery.push(t)}t.mediaItems.forEach((t=>{if(t){const e={url:t.media?.url,alt:t.media?.title,disclaimer:t.jsonData?.disclaimer,caption:t.jsonData?.caption,type:t.media?.crmmediaType};this.gallery.push(e)}}));let i=new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",maximumFractionDigits:0});const a={type:this.getPropertyType(t),headline:t.jsonData.headLine,beds:t.stockData.Bedroom,bath:t.stockData.Bathroom,study:"X"===t.stockData.Study?"1":t.stockData.Study,cars:t.stockData.Carspace,landSize:t.stockData.Grossarea,frontage:t.stockData.Frontagearea,price:i.format(t.stockData.Listprice),lotNumber:`${"land"===this.getPropertyType(t)?"Lot":this.getPropertyType(t)} ${t.stockData.Aonr}`,release:t.releases[0].title,description:t.jsonData.longDescription.split("\n"),level:"0004"===t.stockData.Aofunction?t.stockData.Floor:"",address:this.getPropertyAddress(t),internalArea:0===t.stockData.Internalarea?"":parseInt(t.stockData.Internalarea).toFixed(),externalArea:0===t.stockData.Externalarea?"":parseInt(t.stockData.Externalarea).toFixed(),collectionTag1:t.jsonData.collectionNameA,collectionTag2:t.jsonData.collectionNameB,amenities:t.jsonData.amenities,facts:t.jsonData.keyFacts.length>0?t.jsonData.keyFacts:"",inclusions:t.jsonData.inclusion.length>0?t.jsonData.inclusion:""};this.lotDetail.push(a)})))}getPropertyType(t){let e="";switch(t.stockData.Aofunction){case"0001":e="land";break;case"0004":e="Apartment";break;case"0005":e="Property";break;case"0002":e="Property";break}return e}getPropertyAddress(t){let e="";const i=t.stockData.Housenum,a=t.stockData.Street,n=t.stockData.Suburb,s=t.stockData.State;return""!==a?(i&&(e=`${i}`),a&&(e=`${e} ${a}`),n&&(e=`${e}, ${n}`),s&&(e=` ${e}, ${s}`),e):e}handlePropertySpecs(){const t=this;$(".fpa-selling-property-spec__wrapper")&&$(".fpa-selling-property-spec__wrapper").each((function(){$(this).data("lot-details",t.lotDetail),$(this).data("is-loading",!1).attr("data-is-loading",!1)}))}handleIntroduction(){const t=this;$(".fpa-selling-introduction-container")&&$(".fpa-selling-introduction-container").each((function(){$(this).data("lot-details",t.lotDetail),$(this).data("is-loading",!1).attr("data-is-loading",!1)}))}handleFeatures(){const t=this;$(".fpa-selling-key-features")&&$(".fpa-selling-key-features").each((function(){$(this).data("lot-details",t.lotDetail),$(this).data("is-loading",!1).attr("data-is-loading",!1)}))}handleFactsAndInclusions(){const t=this;$(".fpa-selling-facts-and-inclusions")&&$(".fpa-selling-facts-and-inclusions").each((function(){$(this).data("lot-details",t.lotDetail),$(this).data("is-loading",!1).attr("data-is-loading",!1)}))}handleGallery(){const t=this;$(".fpa-selling-gallery")&&$(".fpa-selling-gallery").each((function(){$(this).data("gallery-images",t.gallery),$(this).data("is-loading",!1).attr("data-is-loading",!1)}))}handleSellingCta(){const t=this;$(".fpa-selling-contact-cta")&&$(".fpa-selling-contact-cta").each((function(){$(this).data("lot-details",t.lotDetail),$(this).data("is-loading",!1).attr("data-is-loading",!1),$(this).trigger("finishLoading")}))}handleFormHeader(){const t=this;$(".fpa-selling-form-header")&&$(".fpa-selling-form-header").each((function(){$(this).data("lot-details",t.lotDetail),$(this).data("is-loading",!1).attr("data-is-loading",!1)}))}handleHiddenFields(){if($(".fpa-form").length>0){const t=$(".fpa-form"),e=this,i=t.find("input[type=hidden]");this.resultJson.length>0&&i.each((function(){switch($(this).val()){case"$project$":$(this).val(e.resultJson[0].stockData.Estatename);break;case"$stage$":$(this).val(e.resultJson[0].stockData.Stagename);break;case"$lot$":$(this).val(e.resultJson[0].stockData.Aonr);break;case"$aoid$":$(this).val(e.resultJson[0].stockData.Aoid);break}})),t.find(".fpa-button-group").parent().addClass("fpa-selling-lot__form-button-group"),$(".radio").on("click",(function(){const t=$(this);$(".radio").each((function(){$(this).not(t).removeClass("clicked")})),t.addClass("clicked")}))}}}function init(){(new lotItemsAPI).init()}$((()=>{if(0===$(".fpa-selling-property-spec__wrapper").length)return;let t=!0,e=[];const i=Handlebars.compile($("#fpa-selling-property-specs").html());function a(){if(!t){const t={lotDetails:e};$(".fpa-selling-property-spec__wrapper").empty(),$(".fpa-selling-property-spec__wrapper").append(i(t)),"land"==e[0].type&&$(".fpa-selling-property-spec__wrapper").addClass("fpa-selling-property-spec__wrapper--land")}}$(window).on("load",(function(){$(".fpa-selling-property-spec__wrapper").each((function(){const i=$(this)[0];e=$(this).data("lot-details"),t=$(this).data("is-loading"),a();new MutationObserver((()=>{t=$(this).data("is-loading"),e=$(this).data("lot-details"),a()})).observe(i,{attributes:!0})}))}))})),$((()=>{if(!$(".fpa-stock-search").length)return;const t={method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}},e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}},i=Handlebars.compile($("#fpa-stock-search-properties").html()),a=Handlebars.compile($("#fpa-stock-search-filters").html()),n=Handlebars.compile($("#fpa-stock-search-pills").html());$(".fpa-stock-search").each((function(){const s=$(this);let o=[],r={},l={},c=null;const d=8;let h="list",p=5e6,f=1e5,u=0,g=0,m=0,_=1,b=!1,y=null,w=null,x=null,v=null,k=null,C=[],S=[],M=[],P=[],D=[],T=0,L=0,A=[],E=25e3,I=null,O=null,z=null,R=null,F=0,j=0,H=0,B=0;const N=s.data("stock-search-endpoint"),V=s.data("project-id"),W=t=>{let e="";switch(t.stockData.Aofunction){case"0001":e="Land";break;case"0004":e="Apartment";break;case"0005":e="Townhouse";break;case"0002":e="House";break}return e},U=(t,e,i)=>{let a=l;o=[];var n=new URLSearchParams(window.location.search);let s=[],r=[],c=[],d=[];t&&(f=1e5,p=5e6),n.forEach((function(t,e){var i,n=t.split(",");switch(e){case"propertyType":if(1==n.length&&"All"!==t?o.push({pill:n[0],type:e}):n.length>1&&n.forEach((t=>{o.push({pill:t,type:e})})),""===t||"All"===t)return a;a=a.filter((function(t){return n.includes(t.label)}));break;case"bedrooms":a=(i=n).includes("any")||i.includes("")?a:(i.forEach((t=>{let e=t;"Studio"===e||(e=`${e} ${"1"===e?"Bed":"Beds"}`),o.push({pill:e,type:"bedrooms"})})),a.filter((t=>{const e=parseInt(t.stockData.Bedroom);return i.includes("4")&&e>=4||i.includes(t.stockData.Bedroom)})));break;case"price":a=((t,e)=>{const i=e[0],a=e[1],n=`$${X(i)} - $${X(a)}`;return o.push({pill:n,type:"price"}),t.filter((t=>{const e=t.stockData.Listprice;return e>=i&&e<=a}))})(a,n);break;case"frontage":a=((t,e)=>{const i=e[0],a=e[1],n=`${i}m - ${a}m`;return o.push({pill:n,type:"frontage"}),T=e,t.filter((t=>t.stockData.Frontagearea>=i&&t.stockData.Frontagearea<=a))})(a,n);break;case"landsize":a=((t,e)=>{const i=e[0],a=e[1],n=`${i}m<sup>2</sup>&nbsp;-&nbsp;${a}m<sup>2</sup>`;return o.push({pill:n,type:"landsize"}),L=e,t.filter((t=>t.stockData.Grossarea>=i&&t.stockData.Grossarea<=a))})(a,n);break;case"releases":if(1==n.length&&"All"!==t?o.push({pill:n[0],type:e}):n.length>1&&n.forEach((t=>{o.push({pill:t,type:e})})),""===t||"All"===t)return a;a=a.filter((function(t){return n.includes(t.releases[0].title)}));break;case"collections":if(1==n.length&&"All"!==t?o.push({pill:n[0],type:e}):n.length>1&&n.forEach((t=>{o.push({pill:t,type:e})})),""===t||"All"===t)return a;a=a.filter((function(t){return n.includes(t.jsonData.collectionNameA)||n.includes(t.jsonData.collectionNameB)}));break;case"s":"high"===t&&(a=a.sort(((t,e)=>t.stockData.Listprice>e.stockData.Listprice?-1:1)));break}})),l.forEach((t=>{const e=W(t);if(!d.find((function(t){return t.type===e}))&&""!==e){const t=a.filter((t=>W(t)===e));d.push({type:e,count:t.length})}if(!s.find((function(e){return e.name===t.releases[0].title}))){const e=a.filter((e=>e.releases[0].title===t.releases[0].title));s.push({name:t.releases[0].title,count:e.length})}const i=t.jsonData.collectionNameA;if(!r.find((function(t){return t.name===i}))){const t=a.filter((t=>t.jsonData.collectionNameA===i));r.push({name:i,count:t.length})}const n=t.jsonData.collectionNameB;if(!r.find((function(t){return t.name===n}))){const e=a.filter((t=>t.jsonData.collectionNameB===n));r.push({name:n,count:e.length,item:t})}})),d.length>0&&(C=d),r.length>0&&(r=r.filter((t=>""!==t.name)),A=r),s.length>0&&(S=s),e&&(z=null,R=null),i&&(I=null,O=null),a.forEach((a=>{if(t&&(a.stockData.Listprice>f&&(f=J(a.stockData.Listprice)+E,g=f),a.stockData.Listprice<p&&(p=J(a.stockData.Listprice)-E,u=p)),"0001"==a.stockData.Aofunction&&i&&(I?parseInt(a.stockData.Frontagearea)<I&&(I=parseInt(a.stockData.Frontagearea),H=parseInt(a.stockData.Frontagearea)):(I=parseInt(a.stockData.Frontagearea),H=parseInt(a.stockData.Frontagearea)),O?parseInt(a.stockData.Frontagearea)>O&&(O=parseInt(a.stockData.Frontagearea),B=parseInt(a.stockData.Frontagearea)):(O=parseInt(a.stockData.Frontagearea),B=parseInt(a.stockData.Frontagearea))),"0001"==a.stockData.Aofunction&&e){const t=parseInt(a.stockData.Grossarea);z?parseInt(a.stockData.Grossarea)<z&&(z=10*Math.ceil(t/10)-10,F=10*Math.ceil(t/10)-10):(z=t<10?10:10*Math.ceil(t/10)-10,F=t<10?10:10*Math.ceil(t/10)-10),R?parseInt(a.stockData.Grossarea)>R&&(R=10*Math.ceil(t/10),j=10*Math.ceil(t/10)):(R=10*Math.ceil(t/10),j=10*Math.ceil(t/10))}c.push(a.stockData.Bedroom)})),w=a.filter((t=>"0001"===t.stockData.Aofunction)).length>0,y=a.filter((t=>"0001"===t.stockData.Aofunction)).length>0,x=a.filter((t=>parseInt(t.stockData.Bedroom)>0)).length>0,q(a,t,e,i),c.includes("1")||$('input[name="1"]').prop("disabled",!0),c.includes("2")||$('input[name="2"]').prop("disabled",!0),c.includes("3")||$('input[name="3"]').prop("disabled",!0),c.filter((t=>parseInt(t)>=4)).length||$('input[name="4"]').prop("disabled",!0),c.includes("Studio")||$('input[name="Studio"]').prop("disabled",!0)},q=(t,e,i,r)=>{const l=s.find(".fpa-stock-search__results__container"),h=".fpa-stock-search__header-resutls-number span";$(h).length>0?$(h).text(t.length):$(".fpa-stock-search__header-resutls-number").each((function(e,i){const a=$(i);a.html(a.text().replace("{0}",`<span>${t.length}</span>`))}));const p=$(".fpa-stock-search__filters__mobile-actions .btn-apply"),f=".fpa-stock-search__filters__mobile-actions .btn-apply span.filtered-btn";$(f).length>0?$(f).text(t.length):p.html(p.text().replace("{0}",`<span class="filtered-btn">${t.length}</span>`)),_>1&&l.find(".fpa-stock-search__results__container__load-more").remove(),l.empty();const u=Math.ceil(t.length/d),g=_*d,b=t.filter(((t,e)=>e<g));l.append(c?c({results:b,morePages:_<u}):"");const M=s.find(".fpa-stock-search__results__filters");M.empty(),M.append(a({hasFrontage:w,hasLandSize:y,hasBedrooms:x,hasStudio:v,plus4:k,releases:S,collections:A,types:C,frontage:P,landSize:D})),et(),K(e),(w||y)&&Z(r),y&&Q(i),s.find(".fpa-stock-search__card__gallery__carousel").each(((t,e)=>window.initializeCarousel($(e))));const E=s.find(".fpa-stock-search__filters__pills");E.empty(),E.append(n({pills:o})),$(".fpa-stock-search__filters__pill i").on("click",(function(){const t=$(this).parent().data("pill-item"),e=$(this).parent().data("pill-type");let i=new URLSearchParams(window.location.search),a=i.get(e);a=a.split(",").filter((e=>e!==t.replace(" Beds","").replace(" Bed",""))),0===a.length?i.delete(e):i.set(e,a.join(",")),"price"===e&&(i.delete(e),m=0),"frontage"===e&&(i.delete(e),T=0),"landsize"===e&&(i.delete(e),L=0);var n=`${location.pathname}?${i}`;window.history.replaceState({},"",n),Y(!0,!0,!0)}))};function Y(t,e,a){b=!0;let n=[];$(".fpa-stock-search").addClass("is-loading"),n.push((s.find(".fpa-stock-search__results__container__load-more").find("img").fadeIn({duration:300}),c=i,(N?Promise.resolve({results:l}):Promise.resolve({results:[]})).catch((t=>null))).then(((t,e,i,a)=>{if(!t)return;l=t;let n=[],s=[];for(let e of t){const t=e.releases[0].title;if(e.images=[],e.jsonData.heroMediaItems){e.mainImage=e.jsonData.heroMediaItems.media;const t={url:e.mainImage?.url,alt:e.mainImage?.title,isFloorPlan:"Floor plan"===e.mainImage?.crmmediaType,isStagePlan:"Stage Plan"===e.mainImage?.crmmediaType,disclaimer:e.jsonData.heroMediaItems?.jsonData.disclaimer};e.mainImage?.url?.includes(".pdf")||e.images.push(orDefault(t))}e.thumbs=[];let i=e.mediaItems.filter((t=>"pdf"!==t.media.extension));for(let t=0;t<Math.min(3,i.length);++t)if(null!==i[t].media){const a={url:i[t].media.url,alt:i[t].media.title,isFloorPlan:"Floor plan"===i[t].media.crmmediaType,isStagePlan:"Stage Plan"===i[t].media.crmmediaType,disclaimer:i[t].jsonData.disclaimer};i[t].media?.url?.includes(".pdf")||(e.thumbs.push(orDefault(a)),e.images.push(orDefault(a)))}if(e.imageTag=t,e.label=W(e),!C.find((function(t){return t.type===e.label}))&&""!==e.label){const t=l.filter((t=>W(t)===e.label));C.push({type:e.label,count:t.length})}if(e.stockData.Listprice>f&&(f=J(e.stockData.Listprice)),e.stockData.Listprice<p&&(p=J(e.stockData.Listprice)),!n.find((function(e){return e.name===t}))){const e=l.filter((e=>e.releases[0].title===t));n.push({name:t,count:e.length})}const a=e.jsonData.collectionNameA;if(!s.find((function(t){return t.name===a}))&&""!==a){const t=l.filter((t=>t.jsonData.collectionNameA===a));s.push({name:a,count:t.length})}const o=e.jsonData.collectionNameB;if(!s.find((function(t){return t.name===o}))&&""!==o){const t=l.filter((t=>t.jsonData.collectionNameA===a));s.push({name:o,count:t.length})}}S=n,M=s=s.sort(((t,e)=>t.name>e.name?1:-1)),A=M,v=t.filter((t=>"Studio"===t.stockData.Bedroom)).length,k=t.filter((t=>parseInt(t.stockData.Bedroom)>=4)).length,l=l.sort(((t,e)=>t.stockData.Listprice>e.stockData.Listprice?1:-1)),U(e,i,a)})(r,t,e,a))),n.length&&Promise.all(n).then((()=>{b=!1,$(".fpa-stock-search").removeClass("is-loading"),$(".fpa-stock-search__filters__wrapper").hasClass("fpa-stock-search__filters__wrapper--open")&&$(".fpa-stock-search__filters__item-menu").each((function(){$(this).addClass("fpa-stock-search__filters__item-menu--open").slideDown().siblings()})),o.length?($(".fpa-stock-search__filters__btn .count").empty(),$(".fpa-stock-search__filters__btn .count").append(`<span>${o.length}</span>`)):$(".fpa-stock-search__filters__btn .count").empty()}))}function G(t,e,i){var a=new URLSearchParams(window.location.search);a.set(t,e),i&&(m=0,a.delete("price")),e&&""!==e||a.delete(t);var n=`${location.pathname}?${a}`;window.history.replaceState({},"",n)}const X=t=>t<1e3?t:t>=1e3&&t<1e6?+(t/1e3).toFixed(2)+"K":t>=1e6&&t<1e9?+(t/1e6).toFixed(2)+"M":t>=1e9&&t<1e12?+(t/1e9).toFixed(2)+"B":t>=1e12?+(t/1e12).toFixed(1)+"T":void 0;function J(t){return Math.ceil(t/E)*E}const K=t=>{let e=m;(0===e||t)&&(e=[p,f]);const i=document.querySelectorAll(".fpa-stock-search__filters__price-input input"),a=document.querySelector(".fpa-stock-search__filters__price-input .slider .progress");if(0===i.length)return;let n=new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",maximumSignificantDigits:10});$(".fpa-stock-search__filters__price label")[0].innerText=`${n.format(e[0])}`,$(".fpa-stock-search__filters__price label")[1].innerText=`${n.format(e[1])}`,i[0].min=t?p:u,i[0].max=t?f:g,i[0].value=e[0],i[1].min=t?p:u,i[1].max=t?f:g,i[1].value=e[1];const s=(i[0].value-i[0].min)/(i[0].max-i[0].min)*100,o=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${s}%`,a.style.right=`${o}%`;i.forEach((t=>{t.addEventListener("input",(t=>{$(".fpa-stock-search__filters__price-input input").addClass("hasChanged");let e=E,s=parseInt(i[0].value),o=parseInt(i[1].value);i[0].step=E,i[1].step=E,o-s<e&&(t.target.className.includes("range-min")?i[0].value=o-e:i[1].value=s+e),p=i[0].value,f=i[1].value;const r=(s-i[0].min)/(i[0].max-i[0].min)*100,l=100-(o-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${r}%`,a.style.right=`${l}%`,$(".fpa-stock-search__filters__price label")[0].innerText=`${n.format(p)}`,$(".fpa-stock-search__filters__price label")[1].innerText=`${n.format(f)}`}))}))},Z=t=>{if(!$(".frontage-range-input").length)return;let e=T;0===e&&(e=[I,O]);const i=document.querySelectorAll(".frontage-range-input input"),a=document.querySelector(".fpa-stock-search__filters__frontage-input .progress");$(".fpa-stock-search__filters__frontage label")[0].innerText=`${e[0]}m`,$(".fpa-stock-search__filters__frontage label")[1].innerText=`${e[1]}m`,i[0].min=t?I:H,i[0].max=t?O:B,i[0].value=e[0],i[1].min=t?I:H,i[1].max=t?O:B,i[1].value=e[1];const n=(i[0].value-i[0].min)/(i[0].max-i[0].min)*100,s=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${n}%`,a.style.right=`${s}%`;i.forEach((t=>{t.addEventListener("input",(t=>{$(".fpa-stock-search__filters__frontage-input input").addClass("hasChanged");let e=parseInt(i[0].value),n=parseInt(i[1].value);i[0].step=1,i[1].step=1;const s=(e-i[0].min)/(i[0].max-i[0].min)*100,o=100-(n-i[1].min)/(i[1].max-i[1].min)*100;n-e<1&&(t.target.className.includes("range-min")?i[0].value=n-1:i[1].value=e+1),I=i[0].value,O=i[1].value,a.style.left=`${s}%`,a.style.right=`${o}%`,$(".fpa-stock-search__filters__frontage label")[0].innerText=`${i[0].value}m`,$(".fpa-stock-search__filters__frontage label")[1].innerText=`${i[1].value}m`}))}))},Q=t=>{if(!$(".landsize-range-input").length)return;let e=L;0===e&&(e=[z,R]);const i=document.querySelectorAll(".landsize-range-input input"),a=document.querySelector(".fpa-stock-search__filters__landsize-input .progress");$(".fpa-stock-search__filters__landsize label")[0].innerText=`${e[0]}m`,$(".fpa-stock-search__filters__landsize label")[1].innerText=`${e[1]}m`,i[0].min=t?z:F,i[0].max=t?R:j,i[0].value=e[0],i[1].min=t?z:F,i[1].max=t?R:j,i[1].value=e[1];const n=(i[0].value-i[0].min)/(i[0].max-i[0].min)*100,s=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${n}%`,a.style.right=`${s}%`;i.forEach((t=>{t.addEventListener("input",(t=>{$(".fpa-stock-search__filters__landsize-input input").addClass("hasChanged");let e=parseInt(i[0].value);maxVal=parseInt(i[1].value),i[0].step=10,i[1].step=10;const n=(i[0].value-i[0].min)/(i[0].max-i[0].min)*100,s=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100;maxVal-e<10&&(t.target.className.includes("range-min")?i[0].value=maxVal-10:i[1].value=e+10),z=i[0].value,R=i[1].value,a.style.left=`${n}%`,a.style.right=`${s}%`,$(".fpa-stock-search__filters__landsize label")[0].innerText=`${i[0].value}m`,$(".fpa-stock-search__filters__landsize label")[1].innerText=`${i[1].value}m`}))}))},tt=()=>{$(".fpa-stock-search__header-sort__menu-btn").click((function(t){t.stopPropagation(),$(".fpa-stock-search__header-sort__menu-content").slideToggle(300),$(".fpa-stock-search__header-sort__menu").toggleClass("fpa-stock-search__header-sort__menu--active")})),$(".fpa-stock-search__header-sort").click((function(t){t.stopPropagation(),$(".fpa-stock-search__header-sort__menu-content").slideToggle(300),$(".fpa-stock-search__header-sort__menu").toggleClass("fpa-stock-search__header-sort__menu--active")})),$(".fpa-stock-search__header-sort__menu-content a").click((function(t){t.preventDefault();let e="low";"high"===$(this).data("option")&&(e="high"),$(".fpa-stock-search__header-sort__menu-btn span").text($(this)[0].text),$(".fpa-stock-search__header-sort__menu-content").slideUp(300),$(".fpa-stock-search__header-sort__menu").removeClass("fpa-stock-search__header-sort__menu--active"),G("s",e),Y(!0,!0,!0)})),$(document).click((function(){$(".fpa-stock-search__header-sort__menu-content").slideUp(300),$(".fpa-stock-search__header-sort__menu").removeClass("fpa-stock-search__header-sort__menu--active")})),$(".fpa-stock-search__header-sort__menu").click((function(t){t.stopPropagation()}))},et=()=>{$(".range-input input").unbind("mouseup"),$(".range-input input").unbind("touchend"),$(".frontage-range-input input").unbind("mouseup"),$(".frontage-range-input input").unbind("touchend"),$(".landsize-range-input input").unbind("mouseup"),$(".landsize-range-input input").unbind("touchend"),$(".fpa-stock-search__filters__wrapper").unbind("click"),$(".fpa-stock-search__filters__btn").unbind("click"),$(".btn-clear").unbind("click"),$(".btn-apply").unbind("click"),$(".fpa-stock-search__filters__price-input input").removeClass("hasChanged");$(".fpa-stock-search__header-view label").click((function(){h=$(this).find("input").val(),"list"===h?($(".fpa-stock-search__results__view").hide(),$(".fpa-stock-search__results__container").show()):($(".fpa-stock-search__results__view").show().css("height","auto").css("overflow","visible"),$(".fpa-stock-search__results__container").hide())})),$(".fpa-stock-search__results__view .fpa-stock-search__results__content-wrapper").click((function(){$(this).find("iframe").addClass("clicked")})).mouseleave((function(){$(this).find("iframe").removeClass("clicked")}));const t=$(".fpa-stock-search__filters__btn"),e=$(".fpa-stock-search__filters__mobile-header i");t.click((function(){const t=$(this).parent();t.hasClass("fpa-stock-search__filters__wrapper--open")||(t.addClass("fpa-stock-search__filters__wrapper--open").fadeIn({duration:300}),$(".fpa-stock-search__filters__item-menu").each((function(){$(this).addClass("fpa-stock-search__filters__item-menu--open").slideDown().siblings().addClass("open")})),dimmer($("body"),!0),$(".dimmed").addClass("stocksearch"))})),e.click((function(){const t=$(".fpa-stock-search__filters__wrapper");t.hasClass("fpa-stock-search__filters__wrapper--open")&&(t.removeClass("fpa-stock-search__filters__wrapper--open"),$(".dimmed").removeClass("stocksearch"),dimmer($("body"),!1))}));function i(){if(b)return void setTimeout((()=>{i()}),50);if($(".fpa-stock-search__filters__wrapper").hasClass("fpa-stock-search__filters__wrapper--open")){const t=`${location.pathname}`;window.history.replaceState({},"",t),$(".fpa-stock-search__filters__wrapper").removeClass("fpa-stock-search__filters__wrapper--open"),dimmer($("body"),!1),m=0,T=0,L=0}const t=$(this).closest(".fpa-stock-search__filters__item"),e=t.data("dropdown-name"),a=new URLSearchParams(window.location.search);a.forEach((function(t,i){if(e===i){a.delete(i,t);const e=`${location.pathname}?${a}`;window.history.replaceState({},"",e)}})),"price"===e?m=0:"frontage"===e?T=0:"landsize"===e?L=0:(t.find("input").prop("checked",!1),t.find('input[name="Any"]').prop("checked",!0)),Y(!0,!0,!0)}$(".fpa-stock-search__filters__item-btn").click((function(t){const e=$(this).next(".fpa-stock-search__filters__item-menu");if($(".fpa-stock-search__filters__wrapper").hasClass("fpa-stock-search__filters__wrapper--open")||$(".fpa-stock-search__filters__item-menu").not(e).removeClass("fpa-stock-search__filters__item-menu--open").slideUp().siblings().removeClass("open").removeClass("fpa-stock-search__filters__item-menu--right"),e.hasClass("fpa-stock-search__filters__item-menu--open"))e.removeClass("fpa-stock-search__filters__item-menu--open").slideUp().siblings().removeClass("open");else{const i=$(window).width()-t.clientX;e.addClass("fpa-stock-search__filters__item-menu--open").slideDown().siblings().addClass("open"),i<280&&e.addClass("fpa-stock-search__filters__item-menu--right")}})),$(document).click((function(t){const e=$(".fpa-stock-search__filters__item-btn");$(".fpa-stock-search__filters__wrapper").hasClass("fpa-stock-search__filters__wrapper--open")||$(t.target).closest(".fpa-stock-search__filters__item").length||($(".fpa-stock-search__filters__item-menu").removeClass("fpa-stock-search__filters__item-menu--open").slideUp(),e.removeClass("open"))})),$(".checkbox.fpa-stock-search__filters__filter input").change((function(){const t=$(this).closest(".fpa-stock-search__filters__item-menu"),e=$(this).attr("name");"Any"===e&&$(this).is(":checked")?t.find('input[type="checkbox"]').not(this).prop("checked",!1):"Any"!==e&&$(this).is(":checked")&&t.find('input[name="Any"]').prop("checked",!1);const i=$(this).closest(".fpa-stock-search__filters__item"),a=i.data("dropdown-name");let n=[];i.find("input:checked").each((function(){var t=$(this).val();""!==t&&n.push(t)})),0===i.find("input:checked").length&&(n=[]),G(a,n.join(","),!0),Y(!0,!0,!0),window.scrollTo(0,$(".fpa-stock-search__filters").offset().top-164)})),$(".radio.fpa-property-search__filters__filter input").change((function(){const t=$(this).val();G($(this).closest(".fpa-stock-search__filters__item").data("dropdown-name"),t,"All"===t),Y(!0,!0,!0)})),$(".price-apply").on("click",(function(){if($(".fpa-stock-search__filters__price-input input").hasClass("hasChanged")){G("price",[p,f]),Y(!0,!0,!0)}})),$(".frontage-apply").on("click",(function(){if($(".fpa-stock-search__filters__frontage-input input").hasClass("hasChanged")){G("frontage",[I,O]),Y(!0,!0,!0)}})),$(".landsize-apply").on("click",(function(){if($(".fpa-stock-search__filters__landsize-input input").hasClass("hasChanged")){G("landsize",[z,R]),Y(!0,!0,!0)}})),$(".range-input input").on("touchend",(function(){if($(this).hasClass("hasChanged")){T=0,L=0;G("price",[p,f]),Y(!1,!0,!0)}})),$(".frontage-range-input input").on("touchend",(function(){if($(this).hasClass("hasChanged")){L=0,m=0;G("frontage",[I,O]),Y(!0,!0,!1)}})),$(".landsize-range-input input").on("touchend",(function(){if($(this).hasClass("hasChanged")){T=0,m=0;G("landsize",[z,R]),Y(!0,!1,!0)}})),$(".btn-apply").click((()=>{if($(".fpa-stock-search__filters__wrapper").hasClass("fpa-stock-search__filters__wrapper--open")&&($(".fpa-stock-search__filters__wrapper").removeClass("fpa-stock-search__filters__wrapper--open"),dimmer($("body"),!1)),$(".fpa-stock-search__filters__price-input input").hasClass("hasChanged")){G("price",[p,f])}Y(!0,!0,!0)})),$(".btn-clear").on("click",(function(){i()}));new URLSearchParams(window.location.search).forEach((function(t,e){const i=t.split(",");switch(e){case"propertyType":$(".fpa-stock-search__filters__item").each((function(){"propertyType"===$(this).data("dropdown-name")&&i.forEach((t=>{const e=$(this).find(`input[name="${t}"]`);e.length>0&&e.prop("checked",!0),"All"!==t&&$(this).find('input[name="Any"]').prop("checked",!1)}))}));break;case"bedrooms":$(".fpa-stock-search__filters__item").each((function(){"bedrooms"===$(this).data("dropdown-name")&&i.forEach((t=>{const e=$(this).find(`input[name="${t}"]`);e.length>0&&e.prop("checked",!0),"any"!==t&&$(this).find('input[name="Any"]').prop("checked",!1)}))}));break;case"collections":$(".fpa-stock-search__filters__item").each((function(){"collections"===$(this).data("dropdown-name")&&i.forEach((t=>{const e=$(this).find(`input[name="${t}"]`);e.length>0&&e.prop("checked",!0),"All"!==t&&$(this).find('input[name="Any"]').prop("checked",!1)}))}));break;case"releases":$(".fpa-stock-search__filters__item").each((function(){"releases"===$(this).data("dropdown-name")&&i.forEach((t=>{const e=$(this).find(`input[name="${t}"]`);e.length>0&&e.prop("checked",!0),"All"!==t&&$(this).find('input[name="Any"]').prop("checked",!1)}))}));break;case"s":if("high"===t){const t=$(".fpa-stock-search__header-sort__menu-content a");$(".fpa-stock-search__header-sort__menu-btn span").text(t[1].text)}break;case"price":m=t.split(",");break}})),$(window).on("resize scroll",(function(){s.find(".fpa-stock-search__results__container__load-more").isInViewport()&&!b&&(++_,Y(!0,!0,!0))})),$.fn.isInViewport=function(){if($(".fpa-stock-search__results__container__load-more").length){var t=$(this).offset().top,e=t+$(this).outerHeight(),i=$(window).scrollTop(),a=i+$(window).height();return e>i&&t<a}},$(window).on("resize",(function(){$(".fpa-stock-search__filters__wrapper").hasClass("fpa-stock-search__filters__wrapper--open")&&($(".fpa-stock-search__filters__wrapper").removeClass("fpa-stock-search__filters__wrapper--open"),$(".fpa-stock-search__filters__item-menu").each((function(){$(this).removeClass("fpa-stock-search__filters__item-menu--open").slideDown().siblings().removeClass("open")})),$(".dimmed").removeClass("stocksearch"),dimmer($("body"),!1))}))};N.includes(".json")?loadJson(N,{...t}).then((t=>{r=t,Y(!0,!0,!0)})):loadJson(N,{...e,body:JSON.stringify({aoids:[`${V}`],collectionFilter:{isActive:"1",releaseTypes:["Release"],collectionTypes:["LotCollection"]}})}).then((t=>{r=t,Y(!0,!0,!0)})),tt()}))})),$((()=>{$(".fpa-stock-search-widget-static").length&&$(".fpa-stock-search-widget-static").each((function(){$(".fpa-stock-search-widget-static__tab").on("click",(function(){const t=$(this),e=$(".fpa-stock-search-widget-static__tabs"),i=$(".fpa-stock-search-widget-static__section"),a="fpa-stock-search-widget-static__tab--active";if(!t.hasClass(a)){e.find(".fpa-stock-search-widget-static__tab--active").removeClass(a),t.addClass(a),i.each((function(){$(this).hasClass("hidden")?$(this).removeClass("hidden"):$(this).addClass("hidden")}))}})),$(this).on("click",(()=>{$(this).find(".fpa-stock-search-widget-static__dimmer").fadeIn({duration:300})})),$(this).find(".fpa-stock-search-widget-static__dimmer").on("click",(function(t){t.stopPropagation(),$(this).fadeOut({duration:300})}))}))})),$((()=>{if(!$(".fpa-stock-search-widget").length)return;const t={method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}},e={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"}},i=Handlebars.compile($("#fpa-stock-search-types").html()),a=Handlebars.compile($("#fpa-stock-search-bedrooms").html()),n=Handlebars.compile($("#fpa-stock-search-releases").html()),s=Handlebars.compile($("#fpa-stock-search-collections").html()),o=Handlebars.compile($("#stock-search-widget-modal").html());$(".fpa-stock-search-widget").each((function(){const r=$(this),l=r.data("stock-search-endpoint"),c=r.data("project-id");let d=[],h={},p={},f=5e6,u=1e5,g=0,m=0,_=0,b=!1,y=null,w=null,x=[],v=[],k=[],C=[],S=25e3,M=null,P=null,D=!0,T=0,L=0,A=null,E=null,I=null,O=null,z=0,R=0,F=0,j=0;function H(t,e,i){b=!0;let a=[];a.push((l?Promise.resolve({results:p}):Promise.resolve({results:[]})).catch((t=>null)).then(B(h,t,e,i))),a.length&&Promise.all(a).then((()=>{b=!1}))}const B=(t,e,i,a)=>{if(!t)return;p=t;let n=[],s=[];for(let e of t){const t=e.releases[0].title;e.label=U(e);if(!x.find((function(t){return t.type===e.label}))&&""!==e.label){const t=p.filter((t=>U(t)===e.label));x.push({type:e.label,count:t.length})}e.stockData.Listprice>u&&(u=q(e.stockData.Listprice)),e.stockData.Listprice<f&&(f=q(e.stockData.Listprice));if(!n.find((function(e){return e.name===t}))){const e=p.filter((e=>e.releases[0].title===t));n.push({name:t,count:e.length})}const i=e.jsonData.collectionNameA;if(!s.find((function(t){return t.name===i}))&&""!==i){const t=p.filter((t=>t.jsonData.collectionNameA===i));s.push({name:i,count:t.length})}const a=e.jsonData.collectionNameB;if(!s.find((function(t){return t.name===a}))&&""!==a){const t=p.filter((t=>t.jsonData.collectionNameA===i));s.push({name:a,count:t.length})}}v=n,k=s=s.sort(((t,e)=>t.name>e.name?1:-1)),C=k,y=t.filter((t=>"Studio"===t.stockData.Bedroom)).length,w=t.filter((t=>parseInt(t.stockData.Bedroom)>=4)).length,N(e,i,a)},N=(t,e,i)=>{let a=p;d=[];var n=new URLSearchParams(window.location.search);let s=[],o=[],r=[],l=[];t&&(u=1e5,f=5e6),n.forEach((function(t,e){var i,n=t.split(",");switch(e){case"propertyType":if(""===t||"All"===t)return a;a=a.filter((function(t){return n.includes(t.label)}));break;case"bedrooms":a=(i=n).includes("any")||i.includes("")?a:a.filter((t=>{const e=parseInt(t.stockData.Bedroom);return i.includes("4")&&e>=4||i.includes(t.stockData.Bedroom)}));break;case"price":a=((t,e)=>{const i=e[0],a=e[1];return t.filter((t=>{const e=t.stockData.Listprice;return e>=i&&e<=a}))})(a,n);break;case"frontage":a=((t,e)=>{const i=e[0],a=e[1],n=`${i}m - ${a}m`;return d.push({pill:n,type:"frontage"}),T=e,t.filter((t=>t.stockData.Frontagearea>=i&&t.stockData.Frontagearea<=a))})(a,n);break;case"landsize":a=((t,e)=>{const i=e[0],a=e[1],n=`${i}m - ${a}m`;return d.push({pill:n,type:"landsize"}),L=e,t.filter((t=>t.stockData.Grossarea>=i&&t.stockData.Grossarea<=a))})(a,n);break;case"releases":if(""===t||"All"===t)return a;a=a.filter((function(t){return n.includes(t.releases[0].title)}));break;case"collections":if(""===t||"All"===t)return a;a=a.filter((function(t){return n.includes(t.jsonData.collectionNameA)||n.includes(t.jsonData.collectionNameB)}));break}})),p.forEach((t=>{const e=U(t);if(!l.find((function(t){return t.type===e}))&&""!==e){const t=a.filter((t=>U(t)===e));l.push({type:e,count:t.length})}if(!s.find((function(e){return e.name===t.releases[0].title}))){const e=a.filter((e=>e.releases[0].title===t.releases[0].title));s.push({name:t.releases[0].title,count:e.length})}const i=t.jsonData.collectionNameA;if(!o.find((function(t){return t.name===i}))){const t=a.filter((t=>t.jsonData.collectionNameA===i));o.push({name:i,count:t.length})}const n=t.jsonData.collectionNameB;if(!o.find((function(t){return t.name===n}))){const e=a.filter((t=>t.jsonData.collectionNameB===n));o.push({name:n,count:e.length,item:t})}})),l.length>0&&(x=l),o.length>0&&(o=o.filter((t=>""!==t.name)),C=o),s.length>0&&(v=s),e&&(I=null,O=null),i&&(A=null,E=null),a.forEach((a=>{if(r.push(a.stockData.Bedroom),t&&(a.stockData.Listprice>u&&(u=q(a.stockData.Listprice)+S,m=u),a.stockData.Listprice<f&&(f=q(a.stockData.Listprice)-S,g=f)),"0001"==a.stockData.Aofunction&&i&&(A?parseInt(a.stockData.Frontagearea)<A&&(A=parseInt(a.stockData.Frontagearea),F=parseInt(a.stockData.Frontagearea)):(A=parseInt(a.stockData.Frontagearea),F=parseInt(a.stockData.Frontagearea)),E?parseInt(a.stockData.Frontagearea)>E&&(E=parseInt(a.stockData.Frontagearea),j=parseInt(a.stockData.Frontagearea)):(E=parseInt(a.stockData.Frontagearea),j=parseInt(a.stockData.Frontagearea))),"0001"==a.stockData.Aofunction&&e){const t=parseInt(a.stockData.Grossarea);I?parseInt(a.stockData.Grossarea)<I&&(I=10*Math.ceil(t/10)-10,z=10*Math.ceil(t/10)-10):(I=t<10?10:10*Math.ceil(t/10)-10,z=t<10?10:10*Math.ceil(t/10)-10),O?parseInt(a.stockData.Grossarea)>O&&(O=10*Math.ceil(t/10),R=10*Math.ceil(t/10)):(O=10*Math.ceil(t/10),R=10*Math.ceil(t/10))}})),P=a.filter((t=>"0001"===t.stockData.Aofunction)).length>0,M=a.filter((t=>"0001"===t.stockData.Aofunction)).length>0,D=a.filter((t=>parseInt(t.stockData.Bedroom)>0)).length>0,P&&M?$(".fpa-stock-search-widget__modal__row--land").show():$(".fpa-stock-search-widget__modal__row--land").hide(),D?$(".fpa-stock-search-widget__bedroom-wrapper").show():$(".fpa-stock-search-widget__bedroom-wrapper").hide();const c=$(".widget-search-btn");$(".fpa-stock-search-widget__search .btn span").length>0?$(".fpa-stock-search-widget__search .btn span").text(a.length):$(".fpa-stock-search-widget__search .btn").html($(".fpa-stock-search-widget__search .btn").text().replace("{0}",`<span>${a.length}</span>`)),$(".widget-search-btn span").length>0?$(".widget-search-btn span").text(a.length):c.html(c.text().replace("{0}",`<span>${a.length}</span>`)),V(a,t,e,i),r.includes("1")||$('input[name="1"]').prop("disabled",!0),r.includes("2")||$('input[name="2"]').prop("disabled",!0),r.includes("3")||$('input[name="3"]').prop("disabled",!0),r.filter((t=>parseInt(t)>=4)).length||$('input[name="4"]').prop("disabled",!0),r.includes("Studio")||$('input[name="Studio"]').prop("disabled",!0);const h=[];n.forEach((t=>{h.push(t)})),n.has("propertyType")&&1===h.length||l.forEach((t=>{if(0===t.count){const e=$(".fpa-stock-search__filters__item.propertyType").find(`input[value="${t.type}"]`);e.length>0&&e.each((function(){$(this).prop("disabled",!0)}))}}))},V=(t,e,l,c)=>{const d=r.find(".fpa-stock-search-widget__types-items");d.empty(),d.append(i({types:x}));const h=$(".modal-results-wrppaer");h.empty(),h.append(o({hasBedrooms:D,hasFrontage:P,hasLandSize:M}));const p=$(".fpa-stock-search-widget__modal__container").find(".fpa-stock-search-widget__types-items");p.empty(),p.append(i({types:x}));const f=$(".fpa-stock-search-widget__modal__container").find(".fpa-stock-search-widget__bedrooms");f.empty(),f.append(a({hasStudio:y,plus4:w}));const u=$(".fpa-stock-search-widget__modal__container").find(".fpa-stock-search-widget__releases");u.empty(),u.append(n({releases:v}));const g=$(".fpa-stock-search-widget__modal__container").find(".fpa-stock-search-widget__collections");g.empty(),g.append(s({collections:C})),Z(),Y(e),G(e),(P||M)&&J(c),M&&K(l)};function W(t,e,i){var a=new URLSearchParams(window.location.search);if(a.set(t,e),e&&""!==e||a.delete(t),i&&(_=0,a.delete("price")),a.has("bedrooms")){"any"===a.get("bedrooms")&&a.delete("bedrooms")}var n=`${location.pathname}?${a}`;window.history.replaceState({},"",n)}const U=t=>{let e="";switch(t.stockData.Aofunction){case"0001":e="Land";break;case"0002":e="House";break;case"0004":e="Apartment";break;case"0005":e="Townhouse";break}return e};function q(t){return Math.ceil(t/S)*S}const Y=t=>{let e=_;(0===e||t)&&(e=[f,u]);const i=document.querySelectorAll(".range-input input"),a=document.querySelector(".slider .progress");let n=new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",maximumSignificantDigits:10});$(".fpa-stock-search-widget__price label")[0].innerText=`${n.format(e[0])}`,$(".fpa-stock-search-widget__price label")[1].innerText=`${n.format(e[1])}`,i[0].min=t?f:g,i[0].max=t?u:m,i[0].value=e[0],i[1].min=t?f:g,i[1].max=t?u:m,i[1].value=e[1];const s=(i[0].value-i[0].min)/(i[0].max-i[0].min)*100,o=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${s}%`,a.style.right=`${o}%`;let r=S;i.forEach((t=>{t.addEventListener("input",(t=>{$(".fpa-stock-search-widget__price-input input").addClass("hasChanged");let e=parseInt(i[0].value),s=parseInt(i[1].value);if(e!==f||u!==s){i[0].step=S,i[1].step=S,s-e<r&&("range-min"===t.target.className?i[0].value=s-r:i[1].value=e+r),f=e,u=s;const o=(e-i[0].min)/(i[0].max-i[0].min)*100,l=100-(s-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${o}%`,a.style.right=`${l}%`,$(".fpa-stock-search-widget__price label")[0].innerText=`${n.format(f)}`,$(".fpa-stock-search-widget__price label")[1].innerText=`${n.format(u)}`}}))}))},G=t=>{let e=_;(0===e||t)&&(e=[f,u]);const i=document.querySelectorAll(".fpa-stock-search-widget__modal__container .range-input input"),a=document.querySelector(".fpa-stock-search-widget__modal__container .slider .progress");if(0===i.length)return;let n=new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",maximumSignificantDigits:10});$(".fpa-stock-search-widget__modal__container .fpa-stock-search-widget__price-info label")[0].innerText=`${n.format(e[0])}`,$(".fpa-stock-search-widget__modal__container .fpa-stock-search-widget__price-info label")[1].innerText=`${n.format(e[1])}`,i[0].min=t?f:g,i[0].max=t?u:m,i[0].value=e[0],i[1].min=t?f:g,i[1].max=t?u:m,i[1].value=e[1],i[0].step=S,i[1].step=S;const s=(i[0].value-i[0].min)/(i[0].max-i[0].min)*100,o=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${s}%`,a.style.right=`${o}%`,i.forEach((t=>{t.addEventListener("input",(t=>{$(".fpa-stock-search-widget__price-input input").addClass("hasChanged");let e=S,s=parseInt(i[0].value),o=parseInt(i[1].value);i[0].step=S,i[1].step=S,o-s<e&&(t.target.className.includes("range-min")?i[0].value=o-e:i[1].value=s+e),f=s,u=o;const r=(s-i[0].min)/(i[0].max-i[0].min)*100,l=100-(o-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${r}%`,a.style.right=`${l}%`,$(".fpa-stock-search-widget__modal__container .fpa-stock-search-widget__price-info label")[0].innerText=`${n.format(f)}`,$(".fpa-stock-search-widget__modal__container .fpa-stock-search-widget__price-info label")[1].innerText=`${n.format(u)}`}))}))};function X(t){t.target===document.body&&(H(!1,!0,!0),removeEventListener("click",X))}const J=t=>{if(!$(".frontage-range-input").length)return;let e=T;0===e&&(e=[A,E]);const i=document.querySelectorAll(".frontage-range-input input"),a=document.querySelector(".fpa-stock-search-widget__frontage-input .progress");$(".fpa-stock-search-widget__frontage label")[0].innerText=`${e[0]}m`,$(".fpa-stock-search-widget__frontage label")[1].innerText=`${e[1]}m`,i[0].min=t?A:F,i[0].max=t?E:j,i[0].value=e[0],i[1].min=t?A:F,i[1].max=t?E:j,i[1].value=e[1];const n=(i[0].value-i[0].min)/(i[0].max-i[0].min)*100||0,s=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100||0;a.style.left=`${n}%`,a.style.right=`${s}%`;i.forEach((t=>{$(".fpa-stock-search-widget__frontage-input input").addClass("hasChanged"),t.addEventListener("input",(t=>{let e=parseInt(i[0].value),n=parseInt(i[1].value);i[0].step=1,i[1].step=1,n-e<1&&(t.target.className.includes("range-min")?i[0].value=n-1:i[1].value=e+1),A=e,E=n;const s=(e-i[0].min)/(i[0].max-i[0].min)*100,o=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${s}%`,a.style.right=`${o}%`,$(".fpa-stock-search-widget__frontage label")[0].innerText=`${i[0].value}m`,$(".fpa-stock-search-widget__frontage label")[1].innerText=`${i[1].value}m`}))}))},K=t=>{if(!$(".landsize-range-input").length)return;let e=L;0===e&&(e=[I,O]);const i=document.querySelectorAll(".landsize-range-input input"),a=document.querySelector(".fpa-stock-search-widget__landsize-input .progress");$(".fpa-stock-search-widget__landsize label")[0].innerText=`${e[0]}m`,$(".fpa-stock-search-widget__landsize label")[1].innerText=`${e[1]}m`,i[0].min=t?I:z,i[0].max=t?O:R,i[0].value=e[0],i[1].min=t?I:z,i[1].max=t?O:R,i[1].value=e[1];const n=(i[0].value-i[0].min)/(i[0].max-i[0].min)*100,s=100-(i[1].value-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${n}%`,a.style.right=`${s}%`;i.forEach((t=>{t.addEventListener("input",(t=>{$(".fpa-stock-search-widget__landsize-input input").addClass("hasChanged");let e=parseInt(i[0].value);maxVal=parseInt(i[1].value),i[0].step=10,i[1].step=10,maxVal-e<=10&&(t.target.className.includes("range-min")?i[0].value=maxVal-10:i[1].value=e+10),I=e,O=maxVal;const n=(e-i[0].min)/(i[0].max-i[0].min)*100,s=100-(maxVal-i[1].min)/(i[1].max-i[1].min)*100;a.style.left=`${n}%`,a.style.right=`${s}%`,$(".fpa-stock-search-widget__landsize label")[0].innerText=`${i[0].value}m`,$(".fpa-stock-search-widget__landsize label")[1].innerText=`${i[1].value}m`}))}))},Z=()=>{$(".range-input input").unbind("mouseup"),$(".range-input input").unbind("touchend"),$(".frontage-range-input input").unbind("mouseup"),$(".frontage-range-input input").unbind("touchend"),$(".landsize-range-input input").unbind("mouseup"),$(".landsize-range-input input").unbind("touchend"),$(".fpa-stock-search-widget__price-input input").removeClass("hasChanged"),$(".btn-clear").on("click",(function(){if(""!==window.location.search){const t=`${location.pathname}`;window.history.replaceState({},"",t),_=0,T=0,L=0,H(!0,!0,!0)}})),$(".widget-search-btn").on("click",(function(){Q()})),$(".fpa-stock-search-widget__search button").on("click",(function(){Q()})),$(".range-input input").on("mouseup",(function(){if($(this).hasClass("hasChanged")){T=0,L=0;W("price",[f,u]),H(!1,!0,!0)}})),$(".range-input input").on("touchend",(function(){if($(this).hasClass("hasChanged")){T=0,L=0;W("price",[f,u]),H(!1,!0,!0)}})),$(".frontage-range-input input").on("mouseup",(function(){if($(this).hasClass("hasChanged")){L=0,_=0;W("frontage",[A,E]),H(!0,!0,!1)}})),$(".landsize-range-input input").on("mouseup",(function(){T=0,_=0,W("landsize",[I,O]),H(!0,!1,!0)})),$(".frontage-range-input input").on("touchend",(function(){if($(this).hasClass("hasChanged")){L=0,_=0;W("frontage",[A,E]),H(!0,!0,!1)}})),$(".landsize-range-input input").on("touchend",(function(){T=0,_=0,$(".fpa-stock-search-widget__landsize-input input").addClass("hasChanged");W("landsize",[I,O]),H(!0,!1,!0)})),$(".modal-source").on("click",(function(){b||(H(!1,!0,!0),document.addEventListener("click",X))})),x.length>1?$('#radios input[value="All"]').parent().css("display","flex"):($('#radios input[value="All"]').parent().css("display","none"),$("#radios input").attr("checked","true")),$(".fpa-stock-search-widget__tab").on("click",(function(){const t=$(this),e=$(".fpa-stock-search-widget__tabs"),i=$(".fpa-stock-search-widget__section"),a="fpa-stock-search-widget__tab--active";if(!t.hasClass(a)){e.find(".fpa-stock-search-widget__tab--active").removeClass(a),t.addClass(a),i.each((function(){$(this).hasClass("hidden")?$(this).removeClass("hidden"):$(this).addClass("hidden")}))}})),$(".checkbox.fpa-stock-search__filters__filter input").change((function(){const t=$(this).closest(".fpa-stock-search-widget__modal__row"),e=$(this).attr("name");"Any"===e&&$(this).is(":checked")?t.find('input[type="checkbox"]').not(this).prop("checked",!1):"Any"!==e&&$(this).is(":checked")&&t.find('input[name="Any"]').prop("checked",!1);const i=$(this).closest(".fpa-stock-search__filters__item"),a=i.data("dropdown-name");let n=[];i.find("input:checked").each((function(){var t=$(this).val();""!==t&&"All"!==t&&n.push(t)})),0===i.find("input:checked").length&&(n=[]),_=0,T=0,L=0,W(a,n.join(","),!0),H(!0,!0,!0)})),$(".radio.fpa-property-search__filters__filter input").change((function(){const t=$(this).val();W($(this).closest(".fpa-stock-search__filters__item").data("dropdown-name"),t,"All"===t),H(!0,!0,!0)})),r.on("click",(()=>{r.find(".fpa-stock-search-widget__dimmer").fadeIn({duration:300})})),r.find(".fpa-stock-search-widget__dimmer").on("click",(function(t){t.stopPropagation(),$(this).fadeOut({duration:300})})),$(".fpa-stock-search-widget__modal__header i").on("click",(function(){H(!1,!0,!0)}));new URLSearchParams(window.location.search).forEach((function(t,e){const i=t.split(",");switch(e){case"propertyType":const e=$(".fpa-stock-search__filters__item.propertyType");"propertyType"===e.data("dropdown-name")&&i.forEach((t=>{const i=e.find(`input[value="${t}"]`);i.length>0&&i.each((function(){$(this).prop("checked",!0)}))}));break;case"bedrooms":$(".fpa-stock-search__filters__item").each((function(){"bedrooms"===$(this).data("dropdown-name")&&i.forEach((t=>{const e=$(this).find(`input[name="${t}"]`);e.length>0&&e.prop("checked",!0),"any"!==t&&$(this).find('input[name="Any"]').prop("checked",!1)}))}));break;case"collections":$(".fpa-stock-search__filters__item").each((function(){"collections"===$(this).data("dropdown-name")&&i.forEach((t=>{const e=$(this).find(`input[name="${t}"]`);e.length>0&&e.prop("checked",!0),"All"!==t&&$(this).find('input[name="Any"]').prop("checked",!1)}))}));break;case"releases":$(".fpa-stock-search__filters__item").each((function(){"releases"===$(this).data("dropdown-name")&&i.forEach((t=>{const e=$(this).find(`input[name="${t}"]`);e.length>0&&e.prop("checked",!0),"All"!==t&&$(this).find('input[name="Any"]').prop("checked",!1)}))}));break;case"price":_=t.split(",");break}}))},Q=()=>{const t=r.data("search-listing-url"),e=window.location.search;t&&(window.location.href=t+e)};(()=>{r.data("is-experience-editor");l.includes(".json")?loadJson(l,{...t}).then((t=>{h=t,H(!0,!0,!0)})):loadJson(l,{...e,body:JSON.stringify({aoids:[`${c}`],collectionFilter:{isActive:"1",releaseTypes:["Release"],collectionTypes:["LotCollection"]}})}).then((t=>{h=t,H(!0,!0,!0)}))})()}))})),$((()=>{if(window.createArticleLoader({component:".fpa-blog-listing",container:".fpa-blog-listing__articles",template:"#fpa-blog-listing-cards",filters:".fpa-filters"}),0===$("#fpa-blog-filters-more-button").length)return;const t=Handlebars.compile($("#fpa-blog-filters-more-button").html());function e(){if($(window).width()>=991){var e=$(".fpa-filters ul").outerWidth(),i=250;$(".fpa-filters ul").children("li").each((function(){if((i+=$(this).outerWidth())>e)return $(this).hide(),$(this).nextAll().hide(),$(this).after(t()),!1}))}$("li.more").length&&$("li.more").on("click",(function(){$(this).hide().siblings().fadeIn(),$(this).parent("ul").css("max-height","none")}))}e(),$(window).on("resize",(function(){$("li.more").remove(),e();const t=$(".fpa-filters").find("li.active").not("li.all-category").length;$(".fpa-filters").find(".filters-btn .badge").text(t),$(".filters-btn span").css("opacity",1)}))}));const windowUrl=new URL(window.location.href);$((()=>{window.createConstructionLoader({component:".fpa-construction-update",container:".fpa-construction-update__articles",template:"#fpa-construction-update",filters:".fpa-filters"})})),$((()=>{window.createArticleLoader({component:".fpa-news-listing",container:".fpa-news-listing__articles",template:"#fpa-news-listing-cards",filters:".fpa-filters"})})),$((t=>{if(0===t(".fpa-store-detail").length)return;const e=t(".fpa-store-detail__trading-hours");window.addEventListener("windowConfiguration",(i=>{const a=i.detail.target;"mobile"===a?e.on("click","h5",(function(){t(this).next().find("ul").toggleClass("show"),t(this).find("i").toggleClass("fa-chevron-up fa-chevron-down")})):"desktop"===a&&(e.off("click","h5"),e.find("ul").addClass("show"),e.find("h5 i").removeClass("fa-chevron-down").addClass("fa-chevron-up"))}))}));const desktopBreakpoint=992,desktopWidth=1327;function orDefault(t,e){return null==t?e:t}$((()=>{$("body").addClass("has-loaded");let t="";function e(){const e=window.visualViewport?window.visualViewport.width:window.innerWidth;if(e<992){if("mobile"==t)return}else if("desktop"==t)return;t=e<992?"mobile":"desktop";const i=new CustomEvent("windowConfiguration",{detail:{target:t}});window.dispatchEvent(i)}window.addEventListener("resize",e),e()}));;
