text: !function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/js/",r(r.s=165)}([function(t,e,r){"use strict";function n(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function i(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(r){void 0===t[r]?t[r]=e[r]:n(e[r])&&n(t[r])&&Object.keys(e[r]).length>0&&i(t[r],e[r])}))}r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return s}));var o="undefined"!=typeof document?document:{},a={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};i(o,a);var s="undefined"!=typeof window?window:{};i(s,{document:a,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}})},function(t,e,r){var n=r(4),i=r(16).f,o=r(19),a=r(17),s=r(88),l=r(118),c=r(59);t.exports=function(t,e){var r,u,h,p,f,d=t.target,g=t.global,v=t.stat;if(r=g?n:v?n[d]||s(d,{}):(n[d]||{}).prototype)for(u in e){if(p=e[u],h=t.noTargetGet?(f=i(r,u))&&f.value:r[u],!c(g?u:d+(v?".":"#")+u,t.forced)&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(r,u,p,t)}}},function(t,e,r){"use strict";(function(t){var n=r(0),i=r(6);const o=function(){const e=n.b.navigator.platform,r=n.b.navigator.userAgent,o={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!n.b.cordova&&!n.b.phonegap),phonegap:!(!n.b.cordova&&!n.b.phonegap),electron:!1,nwjs:!1},a=n.b.screen.width,s=n.b.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=r.indexOf("MSIE ")>=0||r.indexOf("Trident/")>=0,f=r.indexOf("Edge/")>=0,d=r.indexOf("Gecko/")>=0&&r.indexOf("Firefox/")>=0,g="Win32"===e,v=r.toLowerCase().indexOf("electron")>=0,m="undefined"!=typeof nw&&void 0!==t&&void 0!==t.versions&&void 0!==t.versions.nw;let y="MacIntel"===e;!c&&y&&i.a.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768"].indexOf(`${a}x${s}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),y=!1),o.ie=p,o.edge=f,o.firefox=d,l&&!g&&(o.os="android",o.osVersion=l[2],o.android=!0,o.androidChrome=r.toLowerCase().indexOf("chrome")>=0),(c||h||u)&&(o.os="ios",o.ios=!0),h&&!u&&(o.osVersion=h[2].replace(/_/g,"."),o.iphone=!0),c&&(o.osVersion=c[2].replace(/_/g,"."),o.ipad=!0),u&&(o.osVersion=u[3]?u[3].replace(/_/g,"."):null,o.ipod=!0),o.ios&&o.osVersion&&r.indexOf("Version/")>=0&&"10"===o.osVersion.split(".")[0]&&(o.osVersion=r.toLowerCase().split("version/")[1].split(" ")[0]),o.webView=!(!(h||c||u)||!r.match(/.*AppleWebKit(?!.*Safari)/i)&&!n.b.navigator.standalone)||n.b.matchMedia&&n.b.matchMedia("(display-mode: standalone)").matches,o.webview=o.webView,o.standalone=o.webView,o.desktop=!(o.ios||o.android)||v||m,o.desktop&&(o.electron=v,o.nwjs=m,o.macos=y,o.windows=g,o.macos&&(o.os="macos"),o.windows&&(o.os="windows")),o.pixelRatio=n.b.devicePixelRatio||1;return o.prefersColorScheme=function(){let t;return n.b.matchMedia&&n.b.matchMedia("(prefers-color-scheme: light)").matches&&(t="light"),n.b.matchMedia&&n.b.matchMedia("(prefers-color-scheme: dark)").matches&&(t="dark"),t},o}();e.a=o}).call(this,r(391))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r(114))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){"use strict";var n=r(0);const i={touch:!!("ontouchstart"in n.b||n.b.DocumentTouch&&n.a instanceof n.b.DocumentTouch),pointerEvents:!!n.b.PointerEvent&&"maxTouchPoints"in n.b.navigator&&n.b.navigator.maxTouchPoints>=0,observer:"MutationObserver"in n.b||"WebkitMutationObserver"in n.b,passiveListener:function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get(){t=!0}});n.b.addEventListener("testPassiveListener",null,e)}catch(t){}return t}(),gestures:"ongesturestart"in n.b,intersectionObserver:"IntersectionObserver"in n.b};e.a=i},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){var n=r(3);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(4),i=r(90),o=r(14),a=r(55),s=r(94),l=r(120),c=i("wks"),u=n.Symbol,h=l?u:u&&u.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(u,t)?c[t]=u[t]:c[t]=h("Symbol."+t)),c[t]}},function(t,e,r){var n=r(29),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){"use strict";var n,i=r(112),o=r(8),a=r(4),s=r(5),l=r(14),c=r(65),u=r(19),h=r(17),p=r(12).f,f=r(33),d=r(48),g=r(9),v=r(55),m=a.Int8Array,y=m&&m.prototype,_=a.Uint8ClampedArray,b=_&&_.prototype,x=m&&f(m),w=y&&f(y),C=Object.prototype,E=C.isPrototypeOf,S=g("toStringTag"),T=v("TYPED_ARRAY_TAG"),k=i&&!!d&&"Opera"!==c(a.opera),R=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P=function(t){return s(t)&&l(O,c(t))};for(n in O)a[n]||(k=!1);if((!k||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},k))for(n in O)a[n]&&d(a[n],x);if((!k||!w||w===C)&&(w=x.prototype,k))for(n in O)a[n]&&d(a[n].prototype,w);if(k&&f(b)!==w&&d(b,w),o&&!l(w,S))for(n in R=!0,p(w,S,{get:function(){return s(this)?this[T]:void 0}}),O)a[n]&&u(a[n],T,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:k,TYPED_ARRAY_TAG:R&&T,aTypedArray:function(t){if(P(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(d){if(E.call(x,t))return t}else for(var e in O)if(l(O,n)){var r=a[e];if(r&&(t===r||E.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r){if(o){if(r)for(var n in O){var i=a[n];i&&l(i.prototype,t)&&delete i.prototype[t]}w[t]&&!r||h(w,t,r?e:k&&y[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,i;if(o){if(d){if(r)for(n in O)(i=a[n])&&l(i,t)&&delete i[t];if(x[t]&&!r)return;try{return h(x,t,r?e:k&&m[t]||e)}catch(t){}}for(n in O)!(i=a[n])||i[t]&&!r||h(i,t,e)}},isView:function(t){var e=c(t);return"DataView"===e||l(O,e)},isTypedArray:P,TypedArray:x,TypedArrayPrototype:w}},function(t,e,r){var n=r(8),i=r(115),o=r(7),a=r(31),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(18);t.exports=function(t){return Object(n(t))}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(41),i=r(54),o=r(13),a=r(10),s=r(61),l=[].push,c=function(t){var e=1==t,r=2==t,c=3==t,u=4==t,h=6==t,p=5==t||h;return function(f,d,g,v){for(var m,y,_=o(f),b=i(_),x=n(d,g,3),w=a(b.length),C=0,E=v||s,S=e?E(f,w):r?E(f,0):void 0;w>C;C++)if((p||C in b)&&(y=x(m=b[C],C,_),t))if(e)S[C]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return C;case 2:l.call(S,m)}else if(u)return!1;return h?-1:c||u?u:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(t,e,r){var n=r(8),i=r(68),o=r(39),a=r(24),s=r(31),l=r(14),c=r(115),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(t){}if(l(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,r){var n=r(4),i=r(19),o=r(14),a=r(88),s=r(89),l=r(20),c=l.get,u=l.enforce,h=String(String).split("String");(t.exports=function(t,e,r,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof e||o(r,"name")||i(r,"name",e),u(r).source=h.join("string"==typeof e?e:"")),t!==n?(l?!p&&t[e]&&(c=!0):delete t[e],c?t[e]=r:i(t,e,r)):c?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(8),i=r(12),o=r(39);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n,i,o,a=r(117),s=r(4),l=r(5),c=r(19),u=r(14),h=r(69),p=r(56),f=s.WeakMap;if(a){var d=new f,g=d.get,v=d.has,m=d.set;n=function(t,e){return m.call(d,t,e),e},i=function(t){return g.call(d,t)||{}},o=function(t){return v.call(d,t)}}else{var y=h("state");p[y]=!0,n=function(t,e){return c(t,y,e),e},i=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!l(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(57),i=r(14),o=r(123),a=r(12).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){var n=r(8),i=r(3),o=r(14),a=Object.defineProperty,s={},l=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var r=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,u=o(e,0)?e[0]:l,h=o(e,1)?e[1]:void 0;return s[t]=!!r&&!i((function(){if(c&&!n)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:l}):t[1]=1,r.call(t,u,h)}))}},function(t,e,r){var n=r(54),i=r(18);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(18),i=/"/g;t.exports=function(t,e,r,o){var a=String(n(t)),s="<"+e;return""!==r&&(s+=" "+r+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+a+"</"+e+">"}},function(t,e,r){var n=r(3);t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(57),i=r(4),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){let t7ctx;t7ctx="undefined"!=typeof window?window:void 0!==global?global:void 0;const Template7Context=t7ctx,Template7Utils={quoteSingleRexExp:new RegExp("'","g"),quoteDoubleRexExp:new RegExp('"',"g"),isFunction:t=>"function"==typeof t,escape:(t="")=>t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),helperToSlices(t){const{quoteDoubleRexExp:e,quoteSingleRexExp:r}=Template7Utils,n=t.replace(/[{}#}]/g,"").trim().split(" "),i=[];let o,a,s;for(a=0;a<n.length;a+=1){let t,l,c=n[a];if(0===a)i.push(c);else if(0===c.indexOf('"')||0===c.indexOf("'"))if(t=0===c.indexOf('"')?e:r,l=0===c.indexOf('"')?'"':"'",2===c.match(t).length)i.push(c);else{for(o=0,s=a+1;s<n.length;s+=1)if(c+=" "+n[s],n[s].indexOf(l)>=0){o=s,i.push(c);break}o&&(a=o)}else if(c.indexOf("=")>0){const u=c.split("="),h=u[0];let p=u[1];if(t||(t=0===p.indexOf('"')?e:r,l=0===p.indexOf('"')?'"':"'"),2!==p.match(t).length){for(o=0,s=a+1;s<n.length;s+=1)if(p+=" "+n[s],n[s].indexOf(l)>=0){o=s;break}o&&(a=o)}const f=[h,p.replace(t,"")];i.push(f)}else i.push(c)}return i},stringToBlocks(t){const e=[];let r,n;if(!t)return[];const i=t.split(/({{[^{^}]*}})/);for(r=0;r<i.length;r+=1){let t=i[r];if(""!==t)if(t.indexOf("{{")<0)e.push({type:"plain",content:t});else{if(t.indexOf("{/")>=0)continue;if(t=t.replace(/{{([#/])*([ ])*/,"{{$1").replace(/([ ])*}}/,"}}"),t.indexOf("{#")<0&&t.indexOf(" ")<0&&t.indexOf("else")<0){e.push({type:"variable",contextName:t.replace(/[{}]/g,"")});continue}const o=Template7Utils.helperToSlices(t);let a=o[0];const s=">"===a,l=[],c={};for(n=1;n<o.length;n+=1){const t=o[n];Array.isArray(t)?c[t[0]]="false"!==t[1]&&t[1]:l.push(t)}if(t.indexOf("{#")>=0){let t,o="",s="",u=0,h=!1,p=!1,f=0;for(n=r+1;n<i.length;n+=1)if(i[n].indexOf("{{#")>=0&&(f+=1),i[n].indexOf("{{/")>=0&&(f-=1),i[n].indexOf("{{#"+a)>=0)o+=i[n],p&&(s+=i[n]),u+=1;else if(i[n].indexOf("{{/"+a)>=0){if(!(u>0)){t=n,h=!0;break}u-=1,o+=i[n],p&&(s+=i[n])}else i[n].indexOf("else")>=0&&0===f?p=!0:(p||(o+=i[n]),p&&(s+=i[n]));h&&(t&&(r=t),"raw"===a?e.push({type:"plain",content:o}):e.push({type:"helper",helperName:a,contextName:l,content:o,inverseContent:s,hash:c}))}else t.indexOf(" ")>0&&(s&&(a="_partial",l[0]&&(0===l[0].indexOf("[")?l[0]=l[0].replace(/[[\]]/g,""):l[0]=`"${l[0].replace(/"|'/g,"")}"`)),e.push({type:"helper",helperName:a,contextName:l,hash:c}))}}return e},parseJsVariable:(t,e,r)=>t.split(/([+ \-*/^()&=|<>!%:?])/g).reduce((t,n)=>{if(!n)return t;if(n.indexOf(e)<0)return t.push(n),t;if(!r)return t.push(JSON.stringify("")),t;let i=r;return n.indexOf(e+".")>=0&&n.split(e+".")[1].split(".").forEach(t=>{i=t in i?i[t]:void 0}),("string"==typeof i||Array.isArray(i)||i.constructor&&i.constructor===Object)&&(i=JSON.stringify(i)),void 0===i&&(i="undefined"),t.push(i),t},[]).join(""),parseJsParents:(t,e)=>t.split(/([+ \-*^()&=|<>!%:?])/g).reduce((t,r)=>{if(!r)return t;if(r.indexOf("../")<0)return t.push(r),t;if(!e||0===e.length)return t.push(JSON.stringify("")),t;const n=r.split("../").length-1;let i=n>e.length?e[e.length-1]:e[n-1];return r.replace(/..\//g,"").split(".").forEach(t=>{i=void 0!==i[t]?i[t]:"undefined"}),!1===i||!0===i?(t.push(JSON.stringify(i)),t):null===i||"undefined"===i?(t.push(JSON.stringify("")),t):(t.push(JSON.stringify(i)),t)},[]).join(""),getCompileVar(t,e,r="data_1"){let n,i,o=e,a=0;0===t.indexOf("../")?(a=t.split("../").length-1,i=o.split("_")[1]-a,o="ctx_"+(i>=1?i:1),n=t.split("../")[a].split(".")):0===t.indexOf("@global")?(o="Template7.global",n=t.split("@global.")[1].split(".")):0===t.indexOf("@root")?(o="root",n=t.split("@root.")[1].split(".")):n=t.split(".");for(let t=0;t<n.length;t+=1){const s=n[t];if(0===s.indexOf("@")){let e=r.split("_")[1];a>0&&(e=i),t>0?o+=`[(data_${e} && data_${e}.${s.replace("@","")})]`:o=`(data_${e} && data_${e}.${s.replace("@","")})`}else(Number.isFinite?Number.isFinite(s):Template7Context.isFinite(s))?o+=`[${s}]`:"this"===s||s.indexOf("this.")>=0||s.indexOf("this[")>=0||s.indexOf("this(")>=0?o=s.replace("this",e):o+="."+s}return o},getCompiledArguments(t,e,r){const n=[];for(let i=0;i<t.length;i+=1)/^['"]/.test(t[i])||/^(true|false|\d+)$/.test(t[i])?n.push(t[i]):n.push(Template7Utils.getCompileVar(t[i],e,r));return n.join(", ")}},Template7Helpers={_partial(t,e){const r=this,n=Template7Class.partials[t];return!n||n&&!n.template?"":(n.compiled||(n.compiled=new Template7Class(n.template).compile()),Object.keys(e.hash).forEach(t=>{r[t]=e.hash[t]}),n.compiled(r,e.data,e.root))},escape(t){if(null==t)return"";if("string"!=typeof t)throw new Error('Template7: Passed context to "escape" helper should be a string');return Template7Utils.escape(t)},if(t,e){let r=t;return Template7Utils.isFunction(r)&&(r=r.call(this)),r?e.fn(this,e.data):e.inverse(this,e.data)},unless(t,e){let r=t;return Template7Utils.isFunction(r)&&(r=r.call(this)),r?e.inverse(this,e.data):e.fn(this,e.data)},each(t,e){let r=t,n="",i=0;if(Template7Utils.isFunction(r)&&(r=r.call(this)),Array.isArray(r)){for(e.hash.reverse&&(r=r.reverse()),i=0;i<r.length;i+=1)n+=e.fn(r[i],{first:0===i,last:i===r.length-1,index:i});e.hash.reverse&&(r=r.reverse())}else for(const t in r)i+=1,n+=e.fn(r[t],{key:t});return i>0?n:e.inverse(this)},with(t,e){let r=t;return Template7Utils.isFunction(r)&&(r=t.call(this)),e.fn(r)},join(t,e){let r=t;return Template7Utils.isFunction(r)&&(r=r.call(this)),r.join(e.hash.delimiter||e.hash.delimeter)},js(expression,options){const data=options.data;let func,execute=expression;return"index first last key".split(" ").forEach(t=>{if(void 0!==data[t]){const e=new RegExp("this.@"+t,"g"),r=new RegExp("@"+t,"g");execute=execute.replace(e,JSON.stringify(data[t])).replace(r,JSON.stringify(data[t]))}}),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?`(function(){${execute}})`:`(function(){return (${execute})})`,eval(func).call(this)},js_if(expression,options){const data=options.data;let func,execute=expression;"index first last key".split(" ").forEach(t=>{if(void 0!==data[t]){const e=new RegExp("this.@"+t,"g"),r=new RegExp("@"+t,"g");execute=execute.replace(e,JSON.stringify(data[t])).replace(r,JSON.stringify(data[t]))}}),options.root&&execute.indexOf("@root")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@root",options.root)),execute.indexOf("@global")>=0&&(execute=Template7Utils.parseJsVariable(execute,"@global",Template7Context.Template7.global)),execute.indexOf("../")>=0&&(execute=Template7Utils.parseJsParents(execute,options.parents)),func=execute.indexOf("return")>=0?`(function(){${execute}})`:`(function(){return (${execute})})`;const condition=eval(func).call(this);return condition?options.fn(this,options.data):options.inverse(this,options.data)}};Template7Helpers.js_compare=Template7Helpers.js_if;const Template7Options={},Template7Partials={};class Template7Class{constructor(t){this.template=t}compile(template=this.template,depth=1){const t=this;if(t.compiled)return t.compiled;if("string"!=typeof template)throw new Error("Template7: Template must be a string");const{stringToBlocks:stringToBlocks,getCompileVar:getCompileVar,getCompiledArguments:getCompiledArguments}=Template7Utils,blocks=stringToBlocks(template),ctx="ctx_"+depth,data="data_"+depth;if(0===blocks.length)return function(){return""};function getCompileFn(e,r){return e.content?t.compile(e.content,r):function(){return""}}function getCompileInverse(e,r){return e.inverseContent?t.compile(e.inverseContent,r):function(){return""}}let resultString="",i;for(resultString+=1===depth?`(function (${ctx}, ${data}, root) {\n`:`(function (${ctx}, ${data}) {\n`,1===depth&&(resultString+="function isArray(arr){return Array.isArray(arr);}\n",resultString+="function isFunction(func){return (typeof func === 'function');}\n",resultString+='function c(val, ctx) {if (typeof val !== "undefined" && val !== null) {if (isFunction(val)) {return val.call(ctx);} else return val;} else return "";}\n',resultString+="root = root || ctx_1 || {};\n"),resultString+="var r = '';\n",i=0;i<blocks.length;i+=1){const t=blocks[i];if("plain"===t.type){resultString+=`r +='${t.content.replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/'/g,"\\'")}';`;continue}let e,r;if("variable"===t.type&&(e=getCompileVar(t.contextName,ctx,data),resultString+=`r += c(${e}, ${ctx});`),"helper"===t.type){let n,i;if("ctx_1"!==ctx){const t=ctx.split("_")[1];let e="ctx_"+(t-1);for(let r=t-2;r>=1;r-=1)e+=", ctx_"+r;n=`[${e}]`}else n=`[${ctx}]`;if(0===t.helperName.indexOf("[")&&(t.helperName=getCompileVar(t.helperName.replace(/[[\]]/g,""),ctx,data),i=!0),i||t.helperName in Template7Helpers)r=getCompiledArguments(t.contextName,ctx,data),resultString+=`r += (Template7Helpers${i?`[${t.helperName}]`:"."+t.helperName}).call(${ctx}, ${r&&r+", "}{hash:${JSON.stringify(t.hash)}, data: ${data} || {}, fn: ${getCompileFn(t,depth+1)}, inverse: ${getCompileInverse(t,depth+1)}, root: root, parents: ${n}});`;else{if(t.contextName.length>0)throw new Error(`Template7: Missing helper: "${t.helperName}"`);e=getCompileVar(t.helperName,ctx,data),resultString+=`if (${e}) {`,resultString+=`if (isArray(${e})) {`,resultString+=`r += (Template7Helpers.each).call(${ctx}, ${e}, {hash:${JSON.stringify(t.hash)}, data: ${data} || {}, fn: ${getCompileFn(t,depth+1)}, inverse: ${getCompileInverse(t,depth+1)}, root: root, parents: ${n}});`,resultString+="}else {",resultString+=`r += (Template7Helpers.with).call(${ctx}, ${e}, {hash:${JSON.stringify(t.hash)}, data: ${data} || {}, fn: ${getCompileFn(t,depth+1)}, inverse: ${getCompileInverse(t,depth+1)}, root: root, parents: ${n}});`,resultString+="}}"}}}return resultString+="\nreturn r;})",1===depth?(t.compiled=eval(resultString),t.compiled):resultString}static get options(){return Template7Options}static get partials(){return Template7Partials}static get helpers(){return Template7Helpers}}function Template7(...t){const[e,r]=t;if(2===t.length){let t=new Template7Class(e);const n=t.compile()(r);return t=null,n}return new Template7Class(e)}Template7.registerHelper=function(t,e){Template7Class.helpers[t]=e},Template7.unregisterHelper=function(t){Template7Class.helpers[t]=void 0,delete Template7Class.helpers[t]},Template7.registerPartial=function(t,e){Template7Class.partials[t]={template:e}},Template7.unregisterPartial=function(t){Template7Class.partials[t]&&(Template7Class.partials[t]=void 0,delete Template7Class.partials[t])},Template7.compile=function(t,e){return new Template7Class(t,e).compile()},Template7.options=Template7Class.options,Template7.helpers=Template7Class.helpers,Template7.partials=Template7Class.partials,__webpack_exports__.a=Template7}).call(this,__webpack_require__(114))},function(t,e,r){var n=r(5);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=!1},function(t,e,r){var n=r(14),i=r(13),o=r(69),a=r(98),s=o("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},function(t,e,r){var n=r(12).f,i=r(14),o=r(9)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){var n,i=r(7),o=r(95),a=r(92),s=r(56),l=r(121),c=r(87),u=r(69),h=u("IE_PROTO"),p=function(){},f=function(t){return"<script>"+t+"<\/script>"},d=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;d=n?function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=c("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete d.prototype[a[r]];return d()};s[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p.prototype=i(t),r=new p,p.prototype=null,r[h]=t):r=d(),void 0===e?r:o(r,e)}},function(t,e,r){"use strict";var n=r(3);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(7),i=r(22),o=r(9)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},function(t,e,r){"use strict";var n=r(1),i=r(4),o=r(8),a=r(113),s=r(11),l=r(86),c=r(43),u=r(39),h=r(19),p=r(10),f=r(150),d=r(151),g=r(31),v=r(14),m=r(65),y=r(5),_=r(35),b=r(48),x=r(44).f,w=r(152),C=r(15).forEach,E=r(50),S=r(12),T=r(16),k=r(20),R=r(83),O=k.get,P=k.set,A=S.f,M=T.f,L=Math.round,I=i.RangeError,F=l.ArrayBuffer,D=l.DataView,j=s.NATIVE_ARRAY_BUFFER_VIEWS,N=s.TYPED_ARRAY_TAG,$=s.TypedArray,B=s.TypedArrayPrototype,G=s.aTypedArrayConstructor,U=s.isTypedArray,z=function(t,e){for(var r=0,n=e.length,i=new(G(t))(n);n>r;)i[r]=e[r++];return i},W=function(t,e){A(t,e,{get:function(){return O(this)[e]}})},q=function(t){var e;return t instanceof F||"ArrayBuffer"==(e=m(t))||"SharedArrayBuffer"==e},H=function(t,e){return U(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},X=function(t,e){return H(t,e=g(e,!0))?u(2,t[e]):M(t,e)},V=function(t,e,r){return!(H(t,e=g(e,!0))&&y(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?A(t,e,r):(t[e]=r.value,t)};o?(j||(T.f=X,S.f=V,W(B,"buffer"),W(B,"byteOffset"),W(B,"byteLength"),W(B,"length")),n({target:"Object",stat:!0,forced:!j},{getOwnPropertyDescriptor:X,defineProperty:V}),t.exports=function(t,e,r){var o=t.match(/\d+$/)[0]/8,s=t+(r?"Clamped":"")+"Array",l="get"+t,u="set"+t,g=i[s],v=g,m=v&&v.prototype,S={},T=function(t,e){A(t,e,{get:function(){return function(t,e){var r=O(t);return r.view[l](e*o+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var i=O(t);r&&(n=(n=L(n))<0?0:n>255?255:255&n),i.view[u](e*o+i.byteOffset,n,!0)}(this,e,t)},enumerable:!0})};j?a&&(v=e((function(t,e,r,n){return c(t,v,s),R(y(e)?q(e)?void 0!==n?new g(e,d(r,o),n):void 0!==r?new g(e,d(r,o)):new g(e):U(e)?z(v,e):w.call(v,e):new g(f(e)),t,v)})),b&&b(v,$),C(x(g),(function(t){t in v||h(v,t,g[t])})),v.prototype=m):(v=e((function(t,e,r,n){c(t,v,s);var i,a,l,u=0,h=0;if(y(e)){if(!q(e))return U(e)?z(v,e):w.call(v,e);i=e,h=d(r,o);var g=e.byteLength;if(void 0===n){if(g%o)throw I("Wrong length");if((a=g-h)<0)throw I("Wrong length")}else if((a=p(n)*o)+h>g)throw I("Wrong length");l=a/o}else l=f(e),i=new F(a=l*o);for(P(t,{buffer:i,byteOffset:h,byteLength:a,length:l,view:new D(i)});u<l;)T(t,u++)})),b&&b(v,$),m=v.prototype=_(B)),m.constructor!==v&&h(m,"constructor",v),N&&h(m,N,s),S[s]=v,n({global:!0,forced:v!=g,sham:!j},S),"BYTES_PER_ELEMENT"in v||h(v,"BYTES_PER_ELEMENT",o),"BYTES_PER_ELEMENT"in m||h(m,"BYTES_PER_ELEMENT",o),E(s)}):t.exports=function(){}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(29),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},function(t,e,r){var n=r(22);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(9),i=r(35),o=r(12),a=n("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=r(119),i=r(92).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(27);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(56),i=r(5),o=r(14),a=r(12).f,s=r(55),l=r(62),c=s("meta"),u=0,h=Object.isExtensible||function(){return!0},p=function(t){a(t,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,c)){if(!h(t))return"F";if(!e)return"E";p(t)}return t[c].objectID},getWeakData:function(t,e){if(!o(t,c)){if(!h(t))return!0;if(!e)return!1;p(t)}return t[c].weakData},onFreeze:function(t){return l&&f.REQUIRED&&h(t)&&!o(t,c)&&p(t),t}};n[c]=!0},function(t,e,r){"use strict";var n=r(31),i=r(12),o=r(39);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},function(t,e,r){var n=r(7),i=r(128);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},function(t,e,r){var n=r(7),i=r(96),o=r(10),a=r(41),s=r(64),l=r(126),c=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,u,h){var p,f,d,g,v,m,y,_=a(e,r,u?2:1);if(h)p=t;else{if("function"!=typeof(f=s(t)))throw TypeError("Target is not iterable");if(i(f)){for(d=0,g=o(t.length);g>d;d++)if((v=u?_(n(y=t[d])[0],y[1]):_(t[d]))&&v instanceof c)return v;return new c(!1)}p=f.call(t)}for(m=p.next;!(y=m.call(p)).done;)if("object"==typeof(v=l(p,_,y.value,u))&&v&&v instanceof c)return v;return new c(!1)}).stop=function(t){return new c(!0,t)}},function(t,e,r){"use strict";var n=r(28),i=r(12),o=r(9),a=r(8),s=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(18),i="["+r(82)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(o,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:s(1),end:s(2),trim:s(3)}},function(t,e,r){var n=r(17);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},function(t,e,r){"use strict";t.exports=i,t.exports.default=i;var n=r(392);function i(t,e){if(!(this instanceof i))return new i(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function o(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function a(t,e){s(t,0,t.children.length,e,t)}function s(t,e,r,n,i){i||(i=g(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o,a=e;a<r;a++)o=t.children[a],l(i,t.leaf?n(o):o);return i}function l(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function c(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function p(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function d(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,r,i,o){for(var a,s=[e,r];s.length;)(r=s.pop())-(e=s.pop())<=i||(a=e+Math.ceil((r-e)/i/2)*i,n(t,a,e,r,o),s.push(e,a,a,r))}i.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,r=[],n=this.toBBox;if(!d(t,e))return r;for(var i,o,a,s,l=[];e;){for(i=0,o=e.children.length;i<o;i++)a=e.children[i],d(t,s=e.leaf?n(a):a)&&(e.leaf?r.push(a):f(t,s)?this._all(a,r):l.push(a));e=l.pop()}return r},collides:function(t){var e=this.data,r=this.toBBox;if(!d(t,e))return!1;for(var n,i,o,a,s=[];e;){for(n=0,i=e.children.length;n<i;n++)if(o=e.children[n],d(t,a=e.leaf?r(o):o)){if(e.leaf||f(t,a))return!0;s.push(o)}e=s.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(t,e){if(!t)return this;for(var r,n,i,a,s=this.data,l=this.toBBox(t),c=[],u=[];s||c.length;){if(s||(s=c.pop(),n=c[c.length-1],r=u.pop(),a=!0),s.leaf&&-1!==(i=o(t,s.children,e)))return s.children.splice(i,1),c.push(s),this._condense(c),this;a||s.leaf||!f(s,l)?n?(r++,s=n.children[r],a=!1):s=null:(c.push(s),u.push(r),r=0,n=s,s=s.children[0])}return this},toBBox:function(t){return t},compareMinX:c,compareMinY:u,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},_build:function(t,e,r,n){var i,o=r-e+1,s=this._maxEntries;if(o<=s)return a(i=g(t.slice(e,r+1)),this.toBBox),i;n||(n=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,n-1))),(i=g([])).leaf=!1,i.height=n;var l,c,u,h,p=Math.ceil(o/s),f=p*Math.ceil(Math.sqrt(s));for(v(t,e,r,f,this.compareMinX),l=e;l<=r;l+=f)for(v(t,l,u=Math.min(l+f-1,r),p,this.compareMinY),c=l;c<=u;c+=p)h=Math.min(c+p-1,u),i.children.push(this._build(t,c,h,n-1));return a(i,this.toBBox),i},_chooseSubtree:function(t,e,r,n){for(var i,o,a,s,l,c,u,p,f,d;n.push(e),!e.leaf&&n.length-1!==r;){for(u=p=1/0,i=0,o=e.children.length;i<o;i++)l=h(a=e.children[i]),f=t,d=a,(c=(Math.max(d.maxX,f.maxX)-Math.min(d.minX,f.minX))*(Math.max(d.maxY,f.maxY)-Math.min(d.minY,f.minY))-l)<p?(p=c,u=l<u?l:u,s=a):c===p&&l<u&&(u=l,s=a);e=s||e.children[0]}return e},_insert:function(t,e,r){var n=this.toBBox,i=r?t:n(t),o=[],a=this._chooseSubtree(i,this.data,e,o);for(a.children.push(t),l(a,i);e>=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(i,o,e)},_split:function(t,e){var r=t[e],n=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,n);var o=this._chooseSplitIndex(r,i,n),s=g(r.children.splice(o,r.children.length-o));s.height=r.height,s.leaf=r.leaf,a(r,this.toBBox),a(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(r,s)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,r){var n,i,o,a,l,c,u,p,f,d,g,v,m,y;for(c=u=1/0,n=e;n<=r-e;n++)i=s(t,0,n,this.toBBox),o=s(t,n,r,this.toBBox),f=i,d=o,g=void 0,v=void 0,m=void 0,y=void 0,g=Math.max(f.minX,d.minX),v=Math.max(f.minY,d.minY),m=Math.min(f.maxX,d.maxX),y=Math.min(f.maxY,d.maxY),a=Math.max(0,m-g)*Math.max(0,y-v),l=h(i)+h(o),a<c?(c=a,p=n,u=l<u?l:u):a===c&&l<u&&(u=l,p=n);return p},_chooseSplitAxis:function(t,e,r){var n=t.leaf?this.compareMinX:c,i=t.leaf?this.compareMinY:u;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,i)&&t.children.sort(n)},_allDistMargin:function(t,e,r,n){t.children.sort(n);var i,o,a=this.toBBox,c=s(t,0,e,a),u=s(t,r-e,r,a),h=p(c)+p(u);for(i=e;i<r-e;i++)o=t.children[i],l(c,t.leaf?a(o):o),h+=p(c);for(i=r-e-1;i>=e;i--)o=t.children[i],l(u,t.leaf?a(o):o),h+=p(u);return h},_adjustParentBBoxes:function(t,e,r){for(var n=r;n>=0;n--)l(e[n],t)},_condense:function(t){for(var e,r=t.length-1;r>=0;r--)0===t[r].children.length?r>0?(e=t[r-1].children).splice(e.indexOf(t[r]),1):this.clear():a(t[r],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,e,r){var n=r(3),i=r(27),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e){t.exports={}},function(t,e,r){var n=r(4);t.exports=n},function(t,e,r){var n=r(24),i=r(10),o=r(40),a=function(t){return function(e,r,a){var s,l=n(e),c=i(l.length),u=o(a,c);if(t&&r!=r){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(3),i=/#|\.prototype\./,o=function(t,e){var r=s[a(t)];return r==c||r!=l&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},function(t,e,r){var n=r(119),i=r(92);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(5),i=r(45),o=r(9)("species");t.exports=function(t,e){var r;return i(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(3);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e){t.exports={}},function(t,e,r){var n=r(65),i=r(63),o=r(9)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e,r){var n=r(97),i=r(27),o=r(9)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:a?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,r){var n=r(3),i=r(9),o=r(99),a=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){"use strict";var n=r(7);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(90),i=r(55),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,r){"use strict";var n=r(32),i=r(4),o=r(3);t.exports=n||!o((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}))},function(t,e,r){var n=r(9)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},t(o)}catch(t){}return r}},function(t,e,r){var n=r(28);t.exports=n("navigator","userAgent")||""},function(t,e,r){var n=r(22),i=r(13),o=r(54),a=r(10),s=function(t){return function(e,r,s,l){n(r);var c=i(e),u=o(c),h=a(c.length),p=t?h-1:0,f=t?-1:1;if(s<2)for(;;){if(p in u){l=u[p],p+=f;break}if(p+=f,t?p<0:h<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:h>p;p+=f)p in u&&(l=r(l,u[p],p,c));return l}};t.exports={left:s(!1),right:s(!0)}},function(t,e,r){"use strict";var n=r(24),i=r(42),o=r(63),a=r(20),s=r(101),l=a.set,c=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){l(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,r){var n=r(29),i=r(18),o=function(t){return function(e,r){var o,a,s=String(i(e)),l=n(r),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,r){var n=r(5),i=r(27),o=r(9)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,r){"use strict";r(105);var n=r(17),i=r(3),o=r(9),a=r(78),s=r(19),l=o("species"),c=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u="$0"==="a".replace(/./,"$0"),h=o("replace"),p=!!/./[h]&&""===/./[h]("a","$0"),f=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,h){var d=o(t),g=!i((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),v=g&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return e=!0,null},r[d](""),!e}));if(!g||!v||"replace"===t&&(!c||!u||p)||"split"===t&&!f){var m=/./[d],y=r(d,""[t],(function(t,e,r,n,i){return e.exec===a?g&&!i?{done:!0,value:m.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),_=y[0],b=y[1];n(String.prototype,t,_),n(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}h&&s(RegExp.prototype[d],"sham",!0)}},function(t,e,r){"use strict";var n,i,o=r(67),a=r(79),s=RegExp.prototype.exec,l=String.prototype.replace,c=s,u=(n=/a/,i=/b*/g,s.call(n,"a"),s.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),h=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(u||p||h)&&(c=function(t){var e,r,n,i,a=this,c=h&&a.sticky,f=o.call(a),d=a.source,g=0,v=t;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),v=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(d="(?: "+d+")",v=" "+v,g++),r=new RegExp("^(?:"+d+")",f)),p&&(r=new RegExp("^"+d+"$(?!\\s)",f)),u&&(e=a.lastIndex),n=s.call(c?r:a,v),c?n?(n.input=n.input.slice(g),n[0]=n[0].slice(g),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:u&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),p&&n&&n.length>1&&l.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=c},function(t,e,r){"use strict";var n=r(3);function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,r){"use strict";var n=r(75).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},function(t,e,r){var n=r(27),i=r(78);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var o=r.call(t,e);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(t,e,r){var n=r(5),i=r(48);t.exports=function(t,e,r){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},function(t,e){var r=Math.expm1,n=Math.exp;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:r},function(t,e,r){"use strict";var n=r(1),i=r(4),o=r(59),a=r(17),s=r(46),l=r(49),c=r(43),u=r(5),h=r(3),p=r(71),f=r(34),d=r(83);t.exports=function(t,e,r){var g=-1!==t.indexOf("Map"),v=-1!==t.indexOf("Weak"),m=g?"set":"add",y=i[t],_=y&&y.prototype,b=y,x={},w=function(t){var e=_[t];a(_,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(o(t,"function"!=typeof y||!(v||_.forEach&&!h((function(){(new y).entries().next()})))))b=r.getConstructor(e,t,g,m),s.REQUIRED=!0;else if(o(t,!0)){var C=new b,E=C[m](v?{}:-0,1)!=C,S=h((function(){C.has(1)})),T=p((function(t){new y(t)})),k=!v&&h((function(){for(var t=new y,e=5;e--;)t[m](e,e);return!t.has(-0)}));T||((b=e((function(e,r){c(e,b,t);var n=d(new y,e,b);return null!=r&&l(r,n[m],n,g),n}))).prototype=_,_.constructor=b),(S||k)&&(w("delete"),w("has"),g&&w("get")),(k||E)&&w(m),v&&_.clear&&delete _.clear}return x[t]=b,n({global:!0,forced:b!=y},x),f(b,t),v||r.setStrong(b,t,g),b}},function(t,e,r){"use strict";var n=r(4),i=r(8),o=r(112),a=r(19),s=r(52),l=r(3),c=r(43),u=r(29),h=r(10),p=r(150),f=r(329),d=r(33),g=r(48),v=r(44).f,m=r(12).f,y=r(100),_=r(34),b=r(20),x=b.get,w=b.set,C=n.ArrayBuffer,E=C,S=n.DataView,T=S&&S.prototype,k=Object.prototype,R=n.RangeError,O=f.pack,P=f.unpack,A=function(t){return[255&t]},M=function(t){return[255&t,t>>8&255]},L=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},I=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},F=function(t){return O(t,23,4)},D=function(t){return O(t,52,8)},j=function(t,e){m(t.prototype,e,{get:function(){return x(this)[e]}})},N=function(t,e,r,n){var i=p(r),o=x(t);if(i+e>o.byteLength)throw R("Wrong index");var a=x(o.buffer).bytes,s=i+o.byteOffset,l=a.slice(s,s+e);return n?l:l.reverse()},$=function(t,e,r,n,i,o){var a=p(r),s=x(t);if(a+e>s.byteLength)throw R("Wrong index");for(var l=x(s.buffer).bytes,c=a+s.byteOffset,u=n(+i),h=0;h<e;h++)l[c+h]=u[o?h:e-h-1]};if(o){if(!l((function(){C(1)}))||!l((function(){new C(-1)}))||l((function(){return new C,new C(1.5),new C(NaN),"ArrayBuffer"!=C.name}))){for(var B,G=(E=function(t){return c(this,E),new C(p(t))}).prototype=C.prototype,U=v(C),z=0;U.length>z;)(B=U[z++])in E||a(E,B,C[B]);G.constructor=E}g&&d(T)!==k&&g(T,k);var W=new S(new E(2)),q=T.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||s(T,{setInt8:function(t,e){q.call(this,t,e<<24>>24)},setUint8:function(t,e){q.call(this,t,e<<24>>24)}},{unsafe:!0})}else E=function(t){c(this,E,"ArrayBuffer");var e=p(t);w(this,{bytes:y.call(new Array(e),0),byteLength:e}),i||(this.byteLength=e)},S=function(t,e,r){c(this,S,"DataView"),c(t,E,"DataView");var n=x(t).byteLength,o=u(e);if(o<0||o>n)throw R("Wrong offset");if(o+(r=void 0===r?n-o:h(r))>n)throw R("Wrong length");w(this,{buffer:t,byteLength:r,byteOffset:o}),i||(this.buffer=t,this.byteLength=r,this.byteOffset=o)},i&&(j(E,"byteLength"),j(S,"buffer"),j(S,"byteLength"),j(S,"byteOffset")),s(S.prototype,{getInt8:function(t){return N(this,1,t)[0]<<24>>24},getUint8:function(t){return N(this,1,t)[0]},getInt16:function(t){var e=N(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=N(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return I(N(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return I(N(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return P(N(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return P(N(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){$(this,1,t,A,e)},setUint8:function(t,e){$(this,1,t,A,e)},setInt16:function(t,e){$(this,2,t,M,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){$(this,2,t,M,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){$(this,4,t,L,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){$(this,4,t,L,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){$(this,4,t,F,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){$(this,8,t,D,e,arguments.length>2?arguments[2]:void 0)}});_(E,"ArrayBuffer"),_(S,"DataView"),t.exports={ArrayBuffer:E,DataView:S}},function(t,e,r){var n=r(4),i=r(5),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,r){var n=r(4),i=r(19);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(116),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(32),i=r(116);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(28),i=r(44),o=r(93),a=r(7);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(3);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,r){var n=r(8),i=r(12),o=r(7),a=r(60);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=n.length,l=0;s>l;)i.f(t,r=n[l++],e[r]);return t}},function(t,e,r){var n=r(9),i=r(63),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,r){var n={};n[r(9)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){var n=r(3);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n,i,o=r(4),a=r(72),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(n=c.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},function(t,e,r){"use strict";var n=r(13),i=r(40),o=r(10);t.exports=function(t){for(var e=n(this),r=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),l=a>2?arguments[2]:void 0,c=void 0===l?r:i(l,r);c>s;)e[s++]=t;return e}},function(t,e,r){"use strict";var n=r(1),i=r(102),o=r(33),a=r(48),s=r(34),l=r(19),c=r(17),u=r(9),h=r(32),p=r(63),f=r(135),d=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,v=u("iterator"),m=function(){return this};t.exports=function(t,e,r,u,f,y,_){i(r,e,u);var b,x,w,C=function(t){if(t===f&&R)return R;if(!g&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},E=e+" Iterator",S=!1,T=t.prototype,k=T[v]||T["@@iterator"]||f&&T[f],R=!g&&k||C(f),O="Array"==e&&T.entries||k;if(O&&(b=o(O.call(new t)),d!==Object.prototype&&b.next&&(h||o(b)===d||(a?a(b,d):"function"!=typeof b[v]&&l(b,v,m)),s(b,E,!0,!0),h&&(p[E]=m))),"values"==f&&k&&"values"!==k.name&&(S=!0,R=function(){return k.call(this)}),h&&!_||T[v]===R||l(T,v,R),p[e]=R,f)if(x={values:C("values"),keys:y?R:C("keys"),entries:C("entries")},_)for(w in x)(g||S||!(w in T))&&c(T,w,x[w]);else n({target:e,proto:!0,forced:g||S},x);return x}},function(t,e,r){"use strict";var n=r(135).IteratorPrototype,i=r(35),o=r(39),a=r(34),s=r(63),l=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),a(t,c,!1,!0),s[c]=l,t}},function(t,e,r){var n=r(76);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,r){var n=r(9)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,r){"use strict";var n=r(1),i=r(78);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,r){var n=r(10),i=r(107),o=r(18),a=Math.ceil,s=function(t){return function(e,r,s){var l,c,u=String(o(e)),h=u.length,p=void 0===s?" ":String(s),f=n(r);return f<=h||""==p?u:(l=f-h,(c=i.call(p,a(l/p.length))).length>l&&(c=c.slice(0,l)),t?u+c:c+u)}};t.exports={start:s(!1),end:s(!0)}},function(t,e,r){"use strict";var n=r(29),i=r(18);t.exports="".repeat||function(t){var e=String(i(this)),r="",o=n(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(r+=e);return r}},function(t,e,r){var n=r(3),i=r(82);t.exports=function(t){return n((function(){return!!i[t]()||"​᠎"!="​᠎"[t]()||i[t].name!==t}))}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,r){var n,i,o,a=r(4),s=r(3),l=r(27),c=r(41),u=r(121),h=r(87),p=r(144),f=a.location,d=a.setImmediate,g=a.clearImmediate,v=a.process,m=a.MessageChannel,y=a.Dispatch,_=0,b={},x=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},w=function(t){return function(){x(t)}},C=function(t){x(t.data)},E=function(t){a.postMessage(t+"",f.protocol+"//"+f.host)};d&&g||(d=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return b[++_]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(_),_},g=function(t){delete b[t]},"process"==l(v)?n=function(t){v.nextTick(w(t))}:y&&y.now?n=function(t){y.now(w(t))}:m&&!p?(o=(i=new m).port2,i.port1.onmessage=C,n=c(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(E)||"file:"===f.protocol?n="onreadystatechange"in h("script")?function(t){u.appendChild(h("script")).onreadystatechange=function(){u.removeChild(this),x(t)}}:function(t){setTimeout(w(t),0)}:(n=E,a.addEventListener("message",C,!1))),t.exports={set:d,clear:g}},function(t,e,r){"use strict";var n=r(22),i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,r){var n=r(4),i=r(3),o=r(71),a=r(11).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;t.exports=!a||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(8),i=r(3),o=r(87);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(4),i=r(88),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,r){var n=r(4),i=r(89),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,r){var n=r(14),i=r(91),o=r(16),a=r(12);t.exports=function(t,e){for(var r=i(e),s=a.f,l=o.f,c=0;c<r.length;c++){var u=r[c];n(t,u)||s(t,u,l(e,u))}}},function(t,e,r){var n=r(14),i=r(24),o=r(58).indexOf,a=r(56);t.exports=function(t,e){var r,s=i(t),l=0,c=[];for(r in s)!n(a,r)&&n(s,r)&&c.push(r);for(;e.length>l;)n(s,r=e[l++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){var n=r(94);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(28);t.exports=n("document","documentElement")},function(t,e,r){var n=r(24),i=r(44).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e,r){var n=r(9);e.f=n},function(t,e,r){"use strict";var n=r(8),i=r(3),o=r(60),a=r(93),s=r(68),l=r(13),c=r(54),u=Object.assign,h=Object.defineProperty;t.exports=!u||i((function(){if(n&&1!==u({b:1},u(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=u({},t)[r]||"abcdefghijklmnopqrst"!=o(u({},e)).join("")}))?function(t,e){for(var r=l(t),i=arguments.length,u=1,h=a.f,p=s.f;i>u;)for(var f,d=c(arguments[u++]),g=h?o(d).concat(h(d)):o(d),v=g.length,m=0;v>m;)f=g[m++],n&&!p.call(d,f)||(r[f]=d[f]);return r}:u},function(t,e,r){var n=r(8),i=r(60),o=r(24),a=r(68).f,s=function(t){return function(e){for(var r,s=o(e),l=i(s),c=l.length,u=0,h=[];c>u;)r=l[u++],n&&!a.call(s,r)||h.push(t?[r,s[r]]:s[r]);return h}};t.exports={entries:s(!0),values:s(!1)}},function(t,e,r){var n=r(7);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){"use strict";var n=r(22),i=r(5),o=[].slice,a={},s=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=o.call(arguments,1),a=function(){var n=r.concat(o.call(arguments));return this instanceof a?s(e,n.length,n):e.apply(t,n)};return i(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,r){"use strict";var n=r(41),i=r(13),o=r(126),a=r(96),s=r(10),l=r(47),c=r(64);t.exports=function(t){var e,r,u,h,p,f,d=i(t),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,y=void 0!==m,_=c(d),b=0;if(y&&(m=n(m,v>2?arguments[2]:void 0,2)),null==_||g==Array&&a(_))for(r=new g(e=s(d.length));e>b;b++)f=y?m(d[b],b):d[b],l(r,b,f);else for(p=(h=_.call(d)).next,r=new g;!(u=p.call(h)).done;b++)f=y?o(h,m,[u.value,b],!0):u.value,l(r,b,f);return r.length=b,r}},function(t,e,r){"use strict";var n=r(13),i=r(40),o=r(10),a=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),s=o(r.length),l=i(t,s),c=i(e,s),u=arguments.length>2?arguments[2]:void 0,h=a((void 0===u?s:i(u,s))-c,s-l),p=1;for(c<l&&l<c+h&&(p=-1,c+=h-1,l+=h-1);h-- >0;)c in r?r[l]=r[c]:delete r[l],l+=p,c+=p;return r}},function(t,e,r){"use strict";var n=r(45),i=r(10),o=r(41),a=function(t,e,r,s,l,c,u,h){for(var p,f=l,d=0,g=!!u&&o(u,h,3);d<s;){if(d in r){if(p=g?g(r[d],d,e):r[d],c>0&&n(p))f=a(t,e,p,i(p.length),f,c-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[f]=p}f++}d++}return f};t.exports=a},function(t,e,r){"use strict";var n=r(15).forEach,i=r(36),o=r(23),a=i("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n=r(24),i=r(29),o=r(10),a=r(36),s=r(23),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,h=a("lastIndexOf"),p=s("indexOf",{ACCESSORS:!0,1:0}),f=u||!h||!p;t.exports=f?function(t){if(u)return c.apply(this,arguments)||0;var e=n(this),r=o(e.length),a=r-1;for(arguments.length>1&&(a=l(a,i(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:c},function(t,e,r){"use strict";var n,i,o,a=r(33),s=r(19),l=r(14),c=r(9),u=r(32),h=c("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):p=!0),null==n&&(n={}),u||l(n,h)||s(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},function(t,e,r){var n=r(72);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(t,e,r){"use strict";var n=r(75).charAt,i=r(20),o=r(101),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){var n=r(4),i=r(51).trim,o=r(82),a=n.parseInt,s=/^[+-]?0[Xx]/,l=8!==a(o+"08")||22!==a(o+"0x16");t.exports=l?function(t,e){var r=i(String(t));return a(r,e>>>0||(s.test(r)?16:10))}:a},function(t,e,r){var n=r(4),i=r(51).trim,o=r(82),a=n.parseFloat,s=1/a(o+"-0")!=-1/0;t.exports=s?function(t){var e=i(String(t)),r=a(e);return 0===r&&"-"==e.charAt(0)?-0:r}:a},function(t,e,r){var n=r(5),i=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},function(t,e,r){var n=r(27);t.exports=function(t){if("number"!=typeof t&&"Number"!=n(t))throw TypeError("Incorrect invocation");return+t}},function(t,e){var r=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:r(1+t)}},function(t,e,r){var n=r(4);t.exports=n.Promise},function(t,e,r){var n=r(72);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){var n,i,o,a,s,l,c,u,h=r(4),p=r(16).f,f=r(27),d=r(110).set,g=r(144),v=h.MutationObserver||h.WebKitMutationObserver,m=h.process,y=h.Promise,_="process"==f(m),b=p(h,"queueMicrotask"),x=b&&b.value;x||(n=function(){var t,e;for(_&&(t=m.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},_?a=function(){m.nextTick(n)}:v&&!g?(s=!0,l=document.createTextNode(""),new v(n).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),u=c.then,a=function(){u.call(c,n)}):a=function(){d.call(h,n)}),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,r){var n=r(7),i=r(5),o=r(111);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var n=r(12).f,i=r(35),o=r(52),a=r(41),s=r(43),l=r(49),c=r(101),u=r(50),h=r(8),p=r(46).fastKey,f=r(20),d=f.set,g=f.getterFor;t.exports={getConstructor:function(t,e,r,c){var u=t((function(t,n){s(t,u,e),d(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=n&&l(n,t[c],t,r)})),f=g(e),v=function(t,e,r){var n,i,o=f(t),a=m(t,e);return a?a.value=r:(o.last=a={index:i=p(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),h?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},m=function(t,e){var r,n=f(t),i=p(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(u.prototype,{clear:function(){for(var t=f(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,h?t.size=0:this.size=0},delete:function(t){var e=f(this),r=m(this,t);if(r){var n=r.next,i=r.previous;delete e.index[r.index],r.removed=!0,i&&(i.next=n),n&&(n.previous=i),e.first==r&&(e.first=n),e.last==r&&(e.last=i),h?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=f(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),o(u.prototype,r?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return v(this,0===t?0:t,e)}}:{add:function(t){return v(this,t=0===t?0:t,t)}}),h&&n(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(t,e,r){var n=e+" Iterator",i=g(e),o=g(n);c(t,e,(function(t,e){d(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),u(e)}}},function(t,e,r){"use strict";var n=r(52),i=r(46).getWeakData,o=r(7),a=r(5),s=r(43),l=r(49),c=r(15),u=r(14),h=r(20),p=h.set,f=h.getterFor,d=c.find,g=c.findIndex,v=0,m=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},_=function(t,e){return d(t.entries,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var r=_(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,r,c){var h=t((function(t,n){s(t,h,e),p(t,{type:e,id:v++,frozen:void 0}),null!=n&&l(n,t[c],t,r)})),d=f(e),g=function(t,e,r){var n=d(t),a=i(o(e),!0);return!0===a?m(n).set(e,r):a[n.id]=r,t};return n(h.prototype,{delete:function(t){var e=d(this);if(!a(t))return!1;var r=i(t);return!0===r?m(e).delete(t):r&&u(r,e.id)&&delete r[e.id]},has:function(t){var e=d(this);if(!a(t))return!1;var r=i(t);return!0===r?m(e).has(t):r&&u(r,e.id)}}),n(h.prototype,r?{get:function(t){var e=d(this);if(a(t)){var r=i(t);return!0===r?m(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),h}}},function(t,e,r){var n=r(29),i=r(10);t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw RangeError("Wrong length or index");return r}},function(t,e,r){var n=r(334);t.exports=function(t,e){var r=n(t);if(r%e)throw RangeError("Wrong offset");return r}},function(t,e,r){var n=r(13),i=r(10),o=r(64),a=r(96),s=r(41),l=r(11).aTypedArrayConstructor;t.exports=function(t){var e,r,c,u,h,p,f=n(t),d=arguments.length,g=d>1?arguments[1]:void 0,v=void 0!==g,m=o(f);if(null!=m&&!a(m))for(p=(h=m.call(f)).next,f=[];!(u=p.call(h)).done;)f.push(u.value);for(v&&d>2&&(g=s(g,arguments[2],2)),r=i(f.length),c=new(l(this))(r),e=0;r>e;e++)c[e]=v?g(f[e],e):f[e];return c}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){var n=r(3),i=r(9),o=r(32),a=i("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(t,e,r){"use strict";r(74);var n=r(1),i=r(28),o=r(154),a=r(17),s=r(52),l=r(34),c=r(102),u=r(20),h=r(43),p=r(14),f=r(41),d=r(65),g=r(7),v=r(5),m=r(35),y=r(39),_=r(389),b=r(64),x=r(9),w=i("fetch"),C=i("Headers"),E=x("iterator"),S=u.set,T=u.getterFor("URLSearchParams"),k=u.getterFor("URLSearchParamsIterator"),R=/\+/g,O=Array(4),P=function(t){return O[t-1]||(O[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},A=function(t){try{return decodeURIComponent(t)}catch(e){return t}},M=function(t){var e=t.replace(R," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(P(r--),A);return e}},L=/[!'()~]|%20/g,I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(t){return I[t]},D=function(t){return encodeURIComponent(t).replace(L,F)},j=function(t,e){if(e)for(var r,n,i=e.split("&"),o=0;o<i.length;)(r=i[o++]).length&&(n=r.split("="),t.push({key:M(n.shift()),value:M(n.join("="))}))},N=function(t){this.entries.length=0,j(this.entries,t)},$=function(t,e){if(t<e)throw TypeError("Not enough arguments")},B=c((function(t,e){S(this,{type:"URLSearchParamsIterator",iterator:_(T(t).entries),kind:e})}),"Iterator",(function(){var t=k(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),G=function(){h(this,G,"URLSearchParams");var t,e,r,n,i,o,a,s,l,c=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(S(u,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:N}),void 0!==c)if(v(c))if("function"==typeof(t=b(c)))for(r=(e=t.call(c)).next;!(n=r.call(e)).done;){if((a=(o=(i=_(g(n.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}else for(l in c)p(c,l)&&f.push({key:l,value:c[l]+""});else j(f,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},U=G.prototype;s(U,{append:function(t,e){$(arguments.length,2);var r=T(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){$(arguments.length,1);for(var e=T(this),r=e.entries,n=t+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;e.updateURL()},get:function(t){$(arguments.length,1);for(var e=T(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){$(arguments.length,1);for(var e=T(this).entries,r=t+"",n=[],i=0;i<e.length;i++)e[i].key===r&&n.push(e[i].value);return n},has:function(t){$(arguments.length,1);for(var e=T(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){$(arguments.length,1);for(var r,n=T(this),i=n.entries,o=!1,a=t+"",s=e+"",l=0;l<i.length;l++)(r=i[l]).key===a&&(o?i.splice(l--,1):(o=!0,r.value=s));o||i.push({key:a,value:s}),n.updateURL()},sort:function(){var t,e,r,n=T(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(t=o[r],e=0;e<r;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===r&&i.push(t)}n.updateURL()},forEach:function(t){for(var e,r=T(this).entries,n=f(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)n((e=r[i++]).value,e.key,this)},keys:function(){return new B(this,"keys")},values:function(){return new B(this,"values")},entries:function(){return new B(this,"entries")}},{enumerable:!0}),a(U,E,U.entries),a(U,"toString",(function(){for(var t,e=T(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(D(t.key)+"="+D(t.value));return r.join("&")}),{enumerable:!0}),l(G,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:G}),o||"function"!=typeof w||"function"!=typeof C||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,i=[t];return arguments.length>1&&(v(e=arguments[1])&&(r=e.body,"URLSearchParams"===d(r)&&((n=e.headers?new C(e.headers):new C).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=m(e,{body:y(0,String(r)),headers:y(0,n)}))),i.push(e)),w.apply(this,i)}}),t.exports={URLSearchParams:G,getState:T}},,,,,,,,,,function(t,e,r){r(166),t.exports=r(394)},function(t,e,r){"use strict";r.r(e),r.d(e,"Headers",(function(){return f})),r.d(e,"Request",(function(){return b})),r.d(e,"Response",(function(){return w})),r.d(e,"DOMException",(function(){return E})),r.d(e,"fetch",(function(){return S}));var n="URLSearchParams"in self,i="Symbol"in self&&"iterator"in Symbol,o="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in self,s="ArrayBuffer"in self;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&l.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function g(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function v(t){var e=new FileReader,r=g(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&o&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var t,e,r,n=d(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=g(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(t,e){t=u(t),e=h(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},f.prototype.delete=function(t){delete this.map[u(t)]},f.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},f.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},f.prototype.set=function(t,e){this.map[u(t)]=h(e)},f.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},f.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),p(t)},f.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),p(t)},f.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),p(t)},i&&(f.prototype[Symbol.iterator]=f.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(t,e){var r,n,i=(e=e||{}).body;if(t instanceof b){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new f(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new f(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),_.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function x(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function w(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var C=[301,302,303,307,308];w.redirect=function(t,e){if(-1===C.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})};var E=self.DOMException;try{new E}catch(t){(E=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function S(t,e){return new Promise((function(r,n){var i=new b(t,e);if(i.signal&&i.signal.aborted)return n(new E("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new w(i,n))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new E("Aborted","AbortError"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),i.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",s)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}S.polyfill=!0,self.fetch||(self.fetch=S,self.Headers=f,self.Request=b,self.Response=w)},function(t,e,r){r(168),r(381);var n=r(57);t.exports=n},function(t,e,r){r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(206),r(207),r(208),r(209),r(210),r(211),r(212),r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(232),r(233),r(234),r(235),r(236),r(237),r(238),r(239),r(240),r(241),r(74),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(137),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(272),r(105),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(301),r(302),r(303),r(304),r(305),r(306),r(307),r(308),r(309),r(310),r(311),r(312),r(313),r(315),r(316),r(318),r(319),r(320),r(322),r(323),r(324),r(325),r(326),r(327),r(328),r(330),r(331),r(332),r(333),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(358),r(359),r(360),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(370),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380);var n=r(57);t.exports=n},function(t,e,r){"use strict";var n=r(1),i=r(4),o=r(28),a=r(32),s=r(8),l=r(94),c=r(120),u=r(3),h=r(14),p=r(45),f=r(5),d=r(7),g=r(13),v=r(24),m=r(31),y=r(39),_=r(35),b=r(60),x=r(44),w=r(122),C=r(93),E=r(16),S=r(12),T=r(68),k=r(19),R=r(17),O=r(90),P=r(69),A=r(56),M=r(55),L=r(9),I=r(123),F=r(21),D=r(34),j=r(20),N=r(15).forEach,$=P("hidden"),B=L("toPrimitive"),G=j.set,U=j.getterFor("Symbol"),z=Object.prototype,W=i.Symbol,q=o("JSON","stringify"),H=E.f,X=S.f,V=w.f,Y=T.f,K=O("symbols"),Z=O("op-symbols"),J=O("string-to-symbol-registry"),Q=O("symbol-to-string-registry"),tt=O("wks"),et=i.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=s&&u((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=H(z,e);n&&delete z[e],X(t,e,r),n&&t!==z&&X(z,e,n)}:X,it=function(t,e){var r=K[t]=_(W.prototype);return G(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},ot=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof W},at=function(t,e,r){t===z&&at(Z,e,r),d(t);var n=m(e,!0);return d(r),h(K,n)?(r.enumerable?(h(t,$)&&t[$][n]&&(t[$][n]=!1),r=_(r,{enumerable:y(0,!1)})):(h(t,$)||X(t,$,y(1,{})),t[$][n]=!0),nt(t,n,r)):X(t,n,r)},st=function(t,e){d(t);var r=v(e),n=b(r).concat(ht(r));return N(n,(function(e){s&&!lt.call(r,e)||at(t,e,r[e])})),t},lt=function(t){var e=m(t,!0),r=Y.call(this,e);return!(this===z&&h(K,e)&&!h(Z,e))&&(!(r||!h(this,e)||!h(K,e)||h(this,$)&&this[$][e])||r)},ct=function(t,e){var r=v(t),n=m(e,!0);if(r!==z||!h(K,n)||h(Z,n)){var i=H(r,n);return!i||!h(K,n)||h(r,$)&&r[$][n]||(i.enumerable=!0),i}},ut=function(t){var e=V(v(t)),r=[];return N(e,(function(t){h(K,t)||h(A,t)||r.push(t)})),r},ht=function(t){var e=t===z,r=V(e?Z:v(t)),n=[];return N(r,(function(t){!h(K,t)||e&&!h(z,t)||n.push(K[t])})),n};(l||(R((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=M(t),r=function(t){this===z&&r.call(Z,t),h(this,$)&&h(this[$],e)&&(this[$][e]=!1),nt(this,e,y(1,t))};return s&&rt&&nt(z,e,{configurable:!0,set:r}),it(e,t)}).prototype,"toString",(function(){return U(this).tag})),R(W,"withoutSetter",(function(t){return it(M(t),t)})),T.f=lt,S.f=at,E.f=ct,x.f=w.f=ut,C.f=ht,I.f=function(t){return it(L(t),t)},s&&(X(W.prototype,"description",{configurable:!0,get:function(){return U(this).description}}),a||R(z,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),N(b(tt),(function(t){F(t)})),n({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=String(t);if(h(J,e))return J[e];var r=W(e);return J[e]=r,Q[r]=e,r},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(h(Q,t))return Q[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(t,e){return void 0===e?_(t):st(_(t),e)},defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:ct}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ut,getOwnPropertySymbols:ht}),n({target:"Object",stat:!0,forced:u((function(){C.f(1)}))},{getOwnPropertySymbols:function(t){return C.f(g(t))}}),q)&&n({target:"JSON",stat:!0,forced:!l||u((function(){var t=W();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}))},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(f(e)||void 0!==t)&&!ot(t))return p(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ot(e))return e}),i[1]=e,q.apply(null,i)}});W.prototype[B]||k(W.prototype,B,W.prototype.valueOf),D(W,"Symbol"),A[$]=!0},function(t,e,r){r(21)("asyncIterator")},function(t,e,r){"use strict";var n=r(1),i=r(8),o=r(4),a=r(14),s=r(5),l=r(12).f,c=r(118),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new u(t):void 0===t?u():u(t);return""===t&&(h[e]=!0),e};c(p,u);var f=p.prototype=u.prototype;f.constructor=p;var d=f.toString,g="Symbol(test)"==String(u("test")),v=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var r=g?e.slice(7,-1):e.replace(v,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},function(t,e,r){r(21)("hasInstance")},function(t,e,r){r(21)("isConcatSpreadable")},function(t,e,r){r(21)("iterator")},function(t,e,r){r(21)("match")},function(t,e,r){r(21)("matchAll")},function(t,e,r){r(21)("replace")},function(t,e,r){r(21)("search")},function(t,e,r){r(21)("species")},function(t,e,r){r(21)("split")},function(t,e,r){r(21)("toPrimitive")},function(t,e,r){r(21)("toStringTag")},function(t,e,r){r(21)("unscopables")},function(t,e,r){var n=r(1),i=r(124);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,r){r(1)({target:"Object",stat:!0,sham:!r(8)},{create:r(35)})},function(t,e,r){var n=r(1),i=r(8);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:r(12).f})},function(t,e,r){var n=r(1),i=r(8);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:r(95)})},function(t,e,r){var n=r(1),i=r(125).entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,r){var n=r(1),i=r(62),o=r(3),a=r(5),s=r(46).onFreeze,l=Object.freeze;n({target:"Object",stat:!0,forced:o((function(){l(1)})),sham:!i},{freeze:function(t){return l&&a(t)?l(s(t)):t}})},function(t,e,r){var n=r(1),i=r(49),o=r(47);n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,r){o(e,t,r)}),void 0,!0),e}})},function(t,e,r){var n=r(1),i=r(3),o=r(24),a=r(16).f,s=r(8),l=i((function(){a(1)}));n({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},function(t,e,r){var n=r(1),i=r(8),o=r(91),a=r(24),s=r(16),l=r(47);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),i=s.f,c=o(n),u={},h=0;c.length>h;)void 0!==(r=i(n,e=c[h++]))&&l(u,e,r);return u}})},function(t,e,r){var n=r(1),i=r(3),o=r(122).f;n({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},function(t,e,r){var n=r(1),i=r(3),o=r(13),a=r(33),s=r(98);n({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},function(t,e,r){r(1)({target:"Object",stat:!0},{is:r(127)})},function(t,e,r){var n=r(1),i=r(3),o=r(5),a=Object.isExtensible;n({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isExtensible:function(t){return!!o(t)&&(!a||a(t))}})},function(t,e,r){var n=r(1),i=r(3),o=r(5),a=Object.isFrozen;n({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isFrozen:function(t){return!o(t)||!!a&&a(t)}})},function(t,e,r){var n=r(1),i=r(3),o=r(5),a=Object.isSealed;n({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isSealed:function(t){return!o(t)||!!a&&a(t)}})},function(t,e,r){var n=r(1),i=r(13),o=r(60);n({target:"Object",stat:!0,forced:r(3)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},function(t,e,r){var n=r(1),i=r(5),o=r(46).onFreeze,a=r(62),s=r(3),l=Object.preventExtensions;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{preventExtensions:function(t){return l&&i(t)?l(o(t)):t}})},function(t,e,r){var n=r(1),i=r(5),o=r(46).onFreeze,a=r(62),s=r(3),l=Object.seal;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{seal:function(t){return l&&i(t)?l(o(t)):t}})},function(t,e,r){r(1)({target:"Object",stat:!0},{setPrototypeOf:r(48)})},function(t,e,r){var n=r(1),i=r(125).values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,r){var n=r(97),i=r(17),o=r(205);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,r){"use strict";var n=r(97),i=r(65);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,r){"use strict";var n=r(1),i=r(8),o=r(70),a=r(13),s=r(22),l=r(12);i&&n({target:"Object",proto:!0,forced:o},{__defineGetter__:function(t,e){l.f(a(this),t,{get:s(e),enumerable:!0,configurable:!0})}})},function(t,e,r){"use strict";var n=r(1),i=r(8),o=r(70),a=r(13),s=r(22),l=r(12);i&&n({target:"Object",proto:!0,forced:o},{__defineSetter__:function(t,e){l.f(a(this),t,{set:s(e),enumerable:!0,configurable:!0})}})},function(t,e,r){"use strict";var n=r(1),i=r(8),o=r(70),a=r(13),s=r(31),l=r(33),c=r(16).f;i&&n({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(t){var e,r=a(this),n=s(t,!0);do{if(e=c(r,n))return e.get}while(r=l(r))}})},function(t,e,r){"use strict";var n=r(1),i=r(8),o=r(70),a=r(13),s=r(31),l=r(33),c=r(16).f;i&&n({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(t){var e,r=a(this),n=s(t,!0);do{if(e=c(r,n))return e.set}while(r=l(r))}})},function(t,e,r){r(1)({target:"Function",proto:!0},{bind:r(129)})},function(t,e,r){var n=r(8),i=r(12).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;n&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(5),i=r(12),o=r(33),a=r(9)("hasInstance"),s=Function.prototype;a in s||i.f(s,a,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,r){r(1)({global:!0},{globalThis:r(4)})},function(t,e,r){var n=r(1),i=r(130);n({target:"Array",stat:!0,forced:!r(71)((function(t){Array.from(t)}))},{from:i})},function(t,e,r){r(1)({target:"Array",stat:!0},{isArray:r(45)})},function(t,e,r){"use strict";var n=r(1),i=r(3),o=r(47);n({target:"Array",stat:!0,forced:i((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)o(r,t,arguments[t++]);return r.length=e,r}})},function(t,e,r){"use strict";var n=r(1),i=r(3),o=r(45),a=r(5),s=r(13),l=r(10),c=r(47),u=r(61),h=r(66),p=r(9),f=r(99),d=p("isConcatSpreadable"),g=f>=51||!i((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),v=h("concat"),m=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!g||!v},{concat:function(t){var e,r,n,i,o,a=s(this),h=u(a,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(m(o=-1===e?a:arguments[e])){if(p+(i=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,p++)r in o&&c(h,p,o[r])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(h,p++,o)}return h.length=p,h}})},function(t,e,r){var n=r(1),i=r(131),o=r(42);n({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},function(t,e,r){"use strict";var n=r(1),i=r(15).every,o=r(36),a=r(23),s=o("every"),l=a("every");n({target:"Array",proto:!0,forced:!s||!l},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(1),i=r(100),o=r(42);n({target:"Array",proto:!0},{fill:i}),o("fill")},function(t,e,r){"use strict";var n=r(1),i=r(15).filter,o=r(66),a=r(23),s=o("filter"),l=a("filter");n({target:"Array",proto:!0,forced:!s||!l},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(1),i=r(15).find,o=r(42),a=r(23),s=!0,l=a("find");"find"in[]&&Array(1).find((function(){s=!1})),n({target:"Array",proto:!0,forced:s||!l},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(t,e,r){"use strict";var n=r(1),i=r(15).findIndex,o=r(42),a=r(23),s=!0,l=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),n({target:"Array",proto:!0,forced:s||!l},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(t,e,r){"use strict";var n=r(1),i=r(132),o=r(13),a=r(10),s=r(29),l=r(61);n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),r=a(e.length),n=l(e,0);return n.length=i(n,e,e,r,0,void 0===t?1:s(t)),n}})},function(t,e,r){"use strict";var n=r(1),i=r(132),o=r(13),a=r(10),s=r(22),l=r(61);n({target:"Array",proto:!0},{flatMap:function(t){var e,r=o(this),n=a(r.length);return s(t),(e=l(r,0)).length=i(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,r){"use strict";var n=r(1),i=r(133);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,r){"use strict";var n=r(1),i=r(58).includes,o=r(42);n({target:"Array",proto:!0,forced:!r(23)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,r){"use strict";var n=r(1),i=r(58).indexOf,o=r(36),a=r(23),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(t){return l?s.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(1),i=r(54),o=r(24),a=r(36),s=[].join,l=i!=Object,c=a("join",",");n({target:"Array",proto:!0,forced:l||!c},{join:function(t){return s.call(o(this),void 0===t?",":t)}})},function(t,e,r){var n=r(1),i=r(134);n({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,r){"use strict";var n=r(1),i=r(15).map,o=r(66),a=r(23),s=o("map"),l=a("map");n({target:"Array",proto:!0,forced:!s||!l},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(1),i=r(73).left,o=r(36),a=r(23),s=o("reduce"),l=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!l},{reduce:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(1),i=r(73).right,o=r(36),a=r(23),s=o("reduceRight"),l=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!l},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(1),i=r(45),o=[].reverse,a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},function(t,e,r){"use strict";var n=r(1),i=r(5),o=r(45),a=r(40),s=r(10),l=r(24),c=r(47),u=r(9),h=r(66),p=r(23),f=h("slice"),d=p("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),v=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!f||!d},{slice:function(t,e){var r,n,u,h=l(this),p=s(h.length),f=a(t,p),d=a(void 0===e?p:e,p);if(o(h)&&("function"!=typeof(r=h.constructor)||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[g])&&(r=void 0):r=void 0,r===Array||void 0===r))return v.call(h,f,d);for(n=new(void 0===r?Array:r)(m(d-f,0)),u=0;f<d;f++,u++)f in h&&c(n,u,h[f]);return n.length=u,n}})},function(t,e,r){"use strict";var n=r(1),i=r(15).some,o=r(36),a=r(23),s=o("some"),l=a("some");n({target:"Array",proto:!0,forced:!s||!l},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(1),i=r(22),o=r(13),a=r(3),s=r(36),l=[],c=l.sort,u=a((function(){l.sort(void 0)})),h=a((function(){l.sort(null)})),p=s("sort");n({target:"Array",proto:!0,forced:u||!h||!p},{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},function(t,e,r){"use strict";var n=r(1),i=r(40),o=r(29),a=r(10),s=r(13),l=r(61),c=r(47),u=r(66),h=r(23),p=u("splice"),f=h("splice",{ACCESSORS:!0,0:0,1:2}),d=Math.max,g=Math.min;n({target:"Array",proto:!0,forced:!p||!f},{splice:function(t,e){var r,n,u,h,p,f,v=s(this),m=a(v.length),y=i(t,m),_=arguments.length;if(0===_?r=n=0:1===_?(r=0,n=m-y):(r=_-2,n=g(d(o(e),0),m-y)),m+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(v,n),h=0;h<n;h++)(p=y+h)in v&&c(u,h,v[p]);if(u.length=n,r<n){for(h=y;h<m-n;h++)f=h+r,(p=h+n)in v?v[f]=v[p]:delete v[f];for(h=m;h>m-n+r;h--)delete v[h-1]}else if(r>n)for(h=m-n;h>y;h--)f=h+r-1,(p=h+n-1)in v?v[f]=v[p]:delete v[f];for(h=0;h<r;h++)v[h+y]=arguments[h+2];return v.length=m-n+r,u}})},function(t,e,r){r(50)("Array")},function(t,e,r){r(42)("flat")},function(t,e,r){r(42)("flatMap")},function(t,e,r){var n=r(1),i=r(40),o=String.fromCharCode,a=String.fromCodePoint;n({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){var n=r(1),i=r(24),o=r(10);n({target:"String",stat:!0},{raw:function(t){for(var e=i(t.raw),r=o(e.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(e[s++])),s<n&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,r){"use strict";var n=r(1),i=r(75).codeAt;n({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,r){"use strict";var n,i=r(1),o=r(16).f,a=r(10),s=r(103),l=r(18),c=r(104),u=r(32),h="".endsWith,p=Math.min,f=c("endsWith");i({target:"String",proto:!0,forced:!!(u||f||(n=o(String.prototype,"endsWith"),!n||n.writable))&&!f},{endsWith:function(t){var e=String(l(this));s(t);var r=arguments.length>1?arguments[1]:void 0,n=a(e.length),i=void 0===r?n:p(a(r),n),o=String(t);return h?h.call(e,o,i):e.slice(i-o.length,i)===o}})},function(t,e,r){"use strict";var n=r(1),i=r(103),o=r(18);n({target:"String",proto:!0,forced:!r(104)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(77),i=r(7),o=r(10),a=r(18),s=r(80),l=r(81);n("match",1,(function(t,e,r){return[function(e){var r=a(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var a=i(t),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;for(var h,p=[],f=0;null!==(h=l(a,c));){var d=String(h[0]);p[f]=d,""===d&&(a.lastIndex=s(c,o(a.lastIndex),u)),f++}return 0===f?null:p}]}))},function(t,e,r){"use strict";var n=r(1),i=r(102),o=r(18),a=r(10),s=r(22),l=r(7),c=r(27),u=r(76),h=r(67),p=r(19),f=r(3),d=r(9),g=r(37),v=r(80),m=r(20),y=r(32),_=d("matchAll"),b=m.set,x=m.getterFor("RegExp String Iterator"),w=RegExp.prototype,C=w.exec,E="".matchAll,S=!!E&&!f((function(){"a".matchAll(/./)})),T=i((function(t,e,r,n){b(this,{type:"RegExp String Iterator",regexp:t,string:e,global:r,unicode:n,done:!1})}),"RegExp String",(function(){var t=x(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,r=t.string,n=function(t,e){var r,n=t.exec;if("function"==typeof n){if("object"!=typeof(r=n.call(t,e)))throw TypeError("Incorrect exec result");return r}return C.call(t,e)}(e,r);return null===n?{value:void 0,done:t.done=!0}:t.global?(""==String(n[0])&&(e.lastIndex=v(r,a(e.lastIndex),t.unicode)),{value:n,done:!1}):(t.done=!0,{value:n,done:!1})})),k=function(t){var e,r,n,i,o,s,c=l(this),u=String(t);return e=g(c,RegExp),void 0===(r=c.flags)&&c instanceof RegExp&&!("flags"in w)&&(r=h.call(c)),n=void 0===r?"":String(r),i=new e(e===RegExp?c.source:c,n),o=!!~n.indexOf("g"),s=!!~n.indexOf("u"),i.lastIndex=a(c.lastIndex),new T(i,u,o,s)};n({target:"String",proto:!0,forced:S},{matchAll:function(t){var e,r,n,i=o(this);if(null!=t){if(u(t)&&!~String(o("flags"in w?t.flags:h.call(t))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(S)return E.apply(i,arguments);if(void 0===(r=t[_])&&y&&"RegExp"==c(t)&&(r=k),null!=r)return s(r).call(t,i)}else if(S)return E.apply(i,arguments);return e=String(i),n=new RegExp(t,"g"),y?k.call(n,e):n[_](e)}}),y||_ in w||p(w,_,k)},function(t,e,r){"use strict";var n=r(1),i=r(106).end;n({target:"String",proto:!0,forced:r(136)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(1),i=r(106).start;n({target:"String",proto:!0,forced:r(136)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(1)({target:"String",proto:!0},{repeat:r(107)})},function(t,e,r){"use strict";var n=r(77),i=r(7),o=r(13),a=r(10),s=r(29),l=r(18),c=r(80),u=r(81),h=Math.max,p=Math.min,f=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,r,n){var v=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=n.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(r,n){var i=l(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!v&&m||"string"==typeof n&&-1===n.indexOf(y)){var o=r(e,t,this,n);if(o.done)return o.value}var l=i(t),f=String(this),d="function"==typeof n;d||(n=String(n));var g=l.global;if(g){var b=l.unicode;l.lastIndex=0}for(var x=[];;){var w=u(l,f);if(null===w)break;if(x.push(w),!g)break;""===String(w[0])&&(l.lastIndex=c(f,a(l.lastIndex),b))}for(var C,E="",S=0,T=0;T<x.length;T++){w=x[T];for(var k=String(w[0]),R=h(p(s(w.index),f.length),0),O=[],P=1;P<w.length;P++)O.push(void 0===(C=w[P])?C:String(C));var A=w.groups;if(d){var M=[k].concat(O,R,f);void 0!==A&&M.push(A);var L=String(n.apply(void 0,M))}else L=_(k,f,R,O,A,n);R>=S&&(E+=f.slice(S,R)+L,S=R+k.length)}return E+f.slice(S)}];function _(t,r,n,i,a,s){var l=n+t.length,c=i.length,u=g;return void 0!==a&&(a=o(a),u=d),e.call(s,u,(function(e,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return e;if(u>c){var h=f(u/10);return 0===h?e:h<=c?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):e}s=i[u-1]}return void 0===s?"":s}))}}))},function(t,e,r){"use strict";var n=r(77),i=r(7),o=r(18),a=r(127),s=r(81);n("search",1,(function(t,e,r){return[function(e){var r=o(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=i(t),l=String(this),c=o.lastIndex;a(c,0)||(o.lastIndex=0);var u=s(o,l);return a(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},function(t,e,r){"use strict";var n=r(77),i=r(76),o=r(7),a=r(18),s=r(37),l=r(80),c=r(10),u=r(81),h=r(78),p=r(3),f=[].push,d=Math.min,g=!p((function(){return!RegExp(4294967295,"y")}));n("split",2,(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(a(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!i(t))return e.call(n,t,o);for(var s,l,c,u=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=new RegExp(t.source,p+"g");(s=h.call(g,n))&&!((l=g.lastIndex)>d&&(u.push(n.slice(d,s.index)),s.length>1&&s.index<n.length&&f.apply(u,s.slice(1)),c=s[0].length,d=l,u.length>=o));)g.lastIndex===s.index&&g.lastIndex++;return d===n.length?!c&&g.test("")||u.push(""):u.push(n.slice(d)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=a(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,r):n.call(String(i),e,r)},function(t,i){var a=r(n,t,this,i,n!==e);if(a.done)return a.value;var h=o(t),p=String(this),f=s(h,RegExp),v=h.unicode,m=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(g?"y":"g"),y=new f(g?h:"^(?:"+h.source+")",m),_=void 0===i?4294967295:i>>>0;if(0===_)return[];if(0===p.length)return null===u(y,p)?[p]:[];for(var b=0,x=0,w=[];x<p.length;){y.lastIndex=g?x:0;var C,E=u(y,g?p:p.slice(x));if(null===E||(C=d(c(y.lastIndex+(g?0:x)),p.length))===b)x=l(p,x,v);else{if(w.push(p.slice(b,x)),w.length===_)return w;for(var S=1;S<=E.length-1;S++)if(w.push(E[S]),w.length===_)return w;x=b=C}}return w.push(p.slice(b)),w}]}),!g)},function(t,e,r){"use strict";var n,i=r(1),o=r(16).f,a=r(10),s=r(103),l=r(18),c=r(104),u=r(32),h="".startsWith,p=Math.min,f=c("startsWith");i({target:"String",proto:!0,forced:!!(u||f||(n=o(String.prototype,"startsWith"),!n||n.writable))&&!f},{startsWith:function(t){var e=String(l(this));s(t);var r=a(p(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return h?h.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){"use strict";var n=r(1),i=r(51).trim;n({target:"String",proto:!0,forced:r(108)("trim")},{trim:function(){return i(this)}})},function(t,e,r){"use strict";var n=r(1),i=r(51).start,o=r(108)("trimStart"),a=o?function(){return i(this)}:"".trimStart;n({target:"String",proto:!0,forced:o},{trimStart:a,trimLeft:a})},function(t,e,r){"use strict";var n=r(1),i=r(51).end,o=r(108)("trimEnd"),a=o?function(){return i(this)}:"".trimEnd;n({target:"String",proto:!0,forced:o},{trimEnd:a,trimRight:a})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("big")},{big:function(){return i(this,"big","","")}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("blink")},{blink:function(){return i(this,"blink","","")}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("bold")},{bold:function(){return i(this,"b","","")}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("italics")},{italics:function(){return i(this,"i","","")}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("link")},{link:function(t){return i(this,"a","href",t)}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("small")},{small:function(){return i(this,"small","","")}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("strike")},{strike:function(){return i(this,"strike","","")}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("sub")},{sub:function(){return i(this,"sub","","")}})},function(t,e,r){"use strict";var n=r(1),i=r(25);n({target:"String",proto:!0,forced:r(26)("sup")},{sup:function(){return i(this,"sup","","")}})},function(t,e,r){var n=r(8),i=r(4),o=r(59),a=r(83),s=r(12).f,l=r(44).f,c=r(76),u=r(67),h=r(79),p=r(17),f=r(3),d=r(20).set,g=r(50),v=r(9)("match"),m=i.RegExp,y=m.prototype,_=/a/g,b=/a/g,x=new m(_)!==_,w=h.UNSUPPORTED_Y;if(n&&o("RegExp",!x||w||f((function(){return b[v]=!1,m(_)!=_||m(b)==b||"/a/i"!=m(_,"i")})))){for(var C=function(t,e){var r,n=this instanceof C,i=c(t),o=void 0===e;if(!n&&i&&t.constructor===C&&o)return t;x?i&&!o&&(t=t.source):t instanceof C&&(o&&(e=u.call(t)),t=t.source),w&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var s=a(x?new m(t,e):m(t,e),n?this:y,C);return w&&r&&d(s,{sticky:r}),s},E=function(t){t in C||s(C,t,{configurable:!0,get:function(){return m[t]},set:function(e){m[t]=e}})},S=l(m),T=0;S.length>T;)E(S[T++]);y.constructor=C,C.prototype=y,p(i,"RegExp",C)}g("RegExp")},function(t,e,r){var n=r(8),i=r(12),o=r(67),a=r(79).UNSUPPORTED_Y;n&&("g"!=/./g.flags||a)&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},function(t,e,r){var n=r(8),i=r(79).UNSUPPORTED_Y,o=r(12).f,a=r(20).get,s=RegExp.prototype;n&&i&&o(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},function(t,e,r){"use strict";r(105);var n,i,o=r(1),a=r(5),s=(n=!1,(i=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&n),l=/./.test;o({target:"RegExp",proto:!0,forced:!s},{test:function(t){if("function"!=typeof this.exec)return l.call(this,t);var e=this.exec(t);if(null!==e&&!a(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}})},function(t,e,r){"use strict";var n=r(17),i=r(7),o=r(3),a=r(67),s=RegExp.prototype,l=s.toString,c=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),u="toString"!=l.name;(c||u)&&n(RegExp.prototype,"toString",(function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in s)?a.call(t):r)}),{unsafe:!0})},function(t,e,r){var n=r(1),i=r(138);n({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,r){var n=r(1),i=r(139);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,r){"use strict";var n=r(8),i=r(4),o=r(59),a=r(17),s=r(14),l=r(27),c=r(83),u=r(31),h=r(3),p=r(35),f=r(44).f,d=r(16).f,g=r(12).f,v=r(51).trim,m=i.Number,y=m.prototype,_="Number"==l(p(y)),b=function(t){var e,r,n,i,o,a,s,l,c=u(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=v(c)).charCodeAt(0))||45===e){if(88===(r=c.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>i)return NaN;return parseInt(o,n)}return+c};if(o("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var x,w=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof w&&(_?h((function(){y.valueOf.call(r)})):"Number"!=l(r))?c(new m(b(e)),r,w):b(e)},C=n?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;C.length>E;E++)s(m,x=C[E])&&!s(w,x)&&g(w,x,d(m,x));w.prototype=y,y.constructor=w,a(i,"Number",w)}},function(t,e,r){r(1)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,r){r(1)({target:"Number",stat:!0},{isFinite:r(282)})},function(t,e,r){var n=r(4).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},function(t,e,r){r(1)({target:"Number",stat:!0},{isInteger:r(140)})},function(t,e,r){r(1)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(1),i=r(140),o=Math.abs;n({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,r){r(1)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,r){r(1)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){var n=r(1),i=r(139);n({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(t,e,r){var n=r(1),i=r(138);n({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(t,e,r){"use strict";var n=r(1),i=r(29),o=r(141),a=r(107),s=r(3),l=1..toFixed,c=Math.floor,u=function(t,e,r){return 0===e?r:e%2==1?u(t,e-1,r*t):u(t*t,e/2,r)};n({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}))},{toFixed:function(t){var e,r,n,s,l=o(this),h=i(t),p=[0,0,0,0,0,0],f="",d="0",g=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*p[r],p[r]=n%1e7,n=c(n/1e7)},v=function(t){for(var e=6,r=0;--e>=0;)r+=p[e],p[e]=c(r/t),r=r%t*1e7},m=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==p[t]){var r=String(p[t]);e=""===e?r:e+a.call("0",7-r.length)+r}return e};if(h<0||h>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(f="-",l=-l),l>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(l*u(2,69,1))-69)<0?l*u(2,-e,1):l/u(2,e,1),r*=4503599627370496,(e=52-e)>0){for(g(0,r),n=h;n>=7;)g(1e7,0),n-=7;for(g(u(10,n,1),0),n=e-1;n>=23;)v(1<<23),n-=23;v(1<<n),g(1,1),v(2),d=m()}else g(0,r),g(1<<-e,0),d=m()+a.call("0",h);return d=h>0?f+((s=d.length)<=h?"0."+a.call("0",h-s)+d:d.slice(0,s-h)+"."+d.slice(s-h)):f+d}})},function(t,e,r){"use strict";var n=r(1),i=r(3),o=r(141),a=1..toPrecision;n({target:"Number",proto:!0,forced:i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(o(this)):a.call(o(this),t)}})},function(t,e,r){var n=r(1),i=r(142),o=Math.acosh,a=Math.log,s=Math.sqrt,l=Math.LN2;n({target:"Math",stat:!0,forced:!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+l:i(t-1+s(t-1)*s(t+1))}})},function(t,e,r){var n=r(1),i=Math.asinh,o=Math.log,a=Math.sqrt;n({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):o(e+a(e*e+1)):e}})},function(t,e,r){var n=r(1),i=Math.atanh,o=Math.log;n({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:o((1+t)/(1-t))/2}})},function(t,e,r){var n=r(1),i=r(109),o=Math.abs,a=Math.pow;n({target:"Math",stat:!0},{cbrt:function(t){return i(t=+t)*a(o(t),1/3)}})},function(t,e,r){var n=r(1),i=Math.floor,o=Math.log,a=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-i(o(t+.5)*a):32}})},function(t,e,r){var n=r(1),i=r(84),o=Math.cosh,a=Math.abs,s=Math.E;n({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(t){var e=i(a(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t,e,r){var n=r(1),i=r(84);n({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(t,e,r){r(1)({target:"Math",stat:!0},{fround:r(300)})},function(t,e,r){var n=r(109),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),l=o(2,127)*(2-s),c=o(2,-126);t.exports=Math.fround||function(t){var e,r,o=i(t),u=n(t);return o<c?u*(o/c/s+1/a-1/a)*c*s:(r=(e=(1+s/a)*o)-(e-o))>l||r!=r?u*(1/0):u*r}},function(t,e,r){var n=r(1),i=Math.hypot,o=Math.abs,a=Math.sqrt;n({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var r,n,i=0,s=0,l=arguments.length,c=0;s<l;)c<(r=o(arguments[s++]))?(i=i*(n=c/r)*n+1,c=r):i+=r>0?(n=r/c)*n:r;return c===1/0?1/0:c*a(i)}})},function(t,e,r){var n=r(1),i=r(3),o=Math.imul;n({target:"Math",stat:!0,forced:i((function(){return-5!=o(4294967295,5)||2!=o.length}))},{imul:function(t,e){var r=+t,n=+e,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(t,e,r){var n=r(1),i=Math.log,o=Math.LOG10E;n({target:"Math",stat:!0},{log10:function(t){return i(t)*o}})},function(t,e,r){r(1)({target:"Math",stat:!0},{log1p:r(142)})},function(t,e,r){var n=r(1),i=Math.log,o=Math.LN2;n({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},function(t,e,r){r(1)({target:"Math",stat:!0},{sign:r(109)})},function(t,e,r){var n=r(1),i=r(3),o=r(84),a=Math.abs,s=Math.exp,l=Math.E;n({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(o(t)-o(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},function(t,e,r){var n=r(1),i=r(84),o=Math.exp;n({target:"Math",stat:!0},{tanh:function(t){var e=i(t=+t),r=i(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},function(t,e,r){r(34)(Math,"Math",!0)},function(t,e,r){var n=r(1),i=Math.ceil,o=Math.floor;n({target:"Math",stat:!0},{trunc:function(t){return(t>0?o:i)(t)}})},function(t,e,r){r(1)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";var n=r(1),i=r(3),o=r(13),a=r(31);n({target:"Date",proto:!0,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=o(this),r=a(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},function(t,e,r){var n=r(1),i=r(314);n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(t,e,r){"use strict";var n=r(3),i=r(106).start,o=Math.abs,a=Date.prototype,s=a.getTime,l=a.toISOString;t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!n((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+i(o(t),r?6:4,0)+"-"+i(this.getUTCMonth()+1,2,0)+"-"+i(this.getUTCDate(),2,0)+"T"+i(this.getUTCHours(),2,0)+":"+i(this.getUTCMinutes(),2,0)+":"+i(this.getUTCSeconds(),2,0)+"."+i(e,3,0)+"Z"}:l},function(t,e,r){var n=r(17),i=Date.prototype,o=i.toString,a=i.getTime;new Date(NaN)+""!="Invalid Date"&&n(i,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,r){var n=r(19),i=r(317),o=r(9)("toPrimitive"),a=Date.prototype;o in a||n(a,o,i)},function(t,e,r){"use strict";var n=r(7),i=r(31);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(n(this),"number"!==t)}},function(t,e,r){var n=r(1),i=r(28),o=r(3),a=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,u=function(t,e,r){var n=r.charAt(e-1),i=r.charAt(e+1);return l.test(t)&&!c.test(i)||c.test(t)&&!l.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},h=o((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&n({target:"JSON",stat:!0,forced:h},{stringify:function(t,e,r){var n=a.apply(null,arguments);return"string"==typeof n?n.replace(s,u):n}})},function(t,e,r){var n=r(4);r(34)(n.JSON,"JSON",!0)},function(t,e,r){"use strict";var n,i,o,a,s=r(1),l=r(32),c=r(4),u=r(28),h=r(143),p=r(17),f=r(52),d=r(34),g=r(50),v=r(5),m=r(22),y=r(43),_=r(27),b=r(89),x=r(49),w=r(71),C=r(37),E=r(110).set,S=r(145),T=r(146),k=r(321),R=r(111),O=r(147),P=r(20),A=r(59),M=r(9),L=r(99),I=M("species"),F="Promise",D=P.get,j=P.set,N=P.getterFor(F),$=h,B=c.TypeError,G=c.document,U=c.process,z=u("fetch"),W=R.f,q=W,H="process"==_(U),X=!!(G&&G.createEvent&&c.dispatchEvent),V=A(F,(function(){if(!(b($)!==String($))){if(66===L)return!0;if(!H&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!$.prototype.finally)return!0;if(L>=51&&/native code/.test($))return!1;var t=$.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[I]=e,!(t.then((function(){}))instanceof e)})),Y=V||!w((function(t){$.all(t).catch((function(){}))})),K=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},Z=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;S((function(){for(var i=e.value,o=1==e.state,a=0;n.length>a;){var s,l,c,u=n[a++],h=o?u.ok:u.fail,p=u.resolve,f=u.reject,d=u.domain;try{h?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===h?s=i:(d&&d.enter(),s=h(i),d&&(d.exit(),c=!0)),s===u.promise?f(B("Promise-chain cycle")):(l=K(s))?l.call(s,p,f):p(s)):f(i)}catch(t){d&&!c&&d.exit(),f(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&Q(t,e)}))}},J=function(t,e,r){var n,i;X?((n=G.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},(i=c["on"+t])?i(n):"unhandledrejection"===t&&k("Unhandled promise rejection",r)},Q=function(t,e){E.call(c,(function(){var r,n=e.value;if(tt(e)&&(r=O((function(){H?U.emit("unhandledRejection",n,t):J("unhandledrejection",t,n)})),e.rejection=H||tt(e)?2:1,r.error))throw r.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){E.call(c,(function(){H?U.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},rt=function(t,e,r,n){return function(i){t(e,r,i,n)}},nt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,Z(t,e,!0))},it=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw B("Promise can't be resolved itself");var i=K(r);i?S((function(){var n={done:!1};try{i.call(r,rt(it,t,n,e),rt(nt,t,n,e))}catch(r){nt(t,n,r,e)}})):(e.value=r,e.state=1,Z(t,e,!1))}catch(r){nt(t,{done:!1},r,e)}}};V&&($=function(t){y(this,$,F),m(t),n.call(this);var e=D(this);try{t(rt(it,this,e),rt(nt,this,e))}catch(t){nt(this,e,t)}},(n=function(t){j(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f($.prototype,{then:function(t,e){var r=N(this),n=W(C(this,$));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=H?U.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Z(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=D(t);this.promise=t,this.resolve=rt(it,t,e),this.reject=rt(nt,t,e)},R.f=W=function(t){return t===$||t===o?new i(t):q(t)},l||"function"!=typeof h||(a=h.prototype.then,p(h.prototype,"then",(function(t,e){var r=this;return new $((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof z&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T($,z.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:V},{Promise:$}),d($,F,!1,!0),g(F),o=u(F),s({target:F,stat:!0,forced:V},{reject:function(t){var e=W(this);return e.reject.call(void 0,t),e.promise}}),s({target:F,stat:!0,forced:l||V},{resolve:function(t){return T(l&&this===o?$:this,t)}}),s({target:F,stat:!0,forced:Y},{all:function(t){var e=this,r=W(e),n=r.resolve,i=r.reject,o=O((function(){var r=m(e.resolve),o=[],a=0,s=1;x(t,(function(t){var l=a++,c=!1;o.push(void 0),s++,r.call(e,t).then((function(t){c||(c=!0,o[l]=t,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=W(e),n=r.reject,i=O((function(){var i=m(e.resolve);x(t,(function(t){i.call(e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(t,e,r){var n=r(4);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e,r){"use strict";var n=r(1),i=r(22),o=r(111),a=r(147),s=r(49);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,l=r.reject,c=a((function(){var r=i(e.resolve),o=[],a=0,l=1;s(t,(function(t){var i=a++,s=!1;o.push(void 0),l++,r.call(e,t).then((function(t){s||(s=!0,o[i]={status:"fulfilled",value:t},--l||n(o))}),(function(t){s||(s=!0,o[i]={status:"rejected",reason:t},--l||n(o))}))})),--l||n(o)}));return c.error&&l(c.value),r.promise}})},function(t,e,r){"use strict";var n=r(1),i=r(32),o=r(143),a=r(3),s=r(28),l=r(37),c=r(146),u=r(17);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=l(this,s("Promise")),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then((function(){return r}))}:t,r?function(r){return c(e,t()).then((function(){throw r}))}:t)}}),i||"function"!=typeof o||o.prototype.finally||u(o.prototype,"finally",s("Promise").prototype.finally)},function(t,e,r){"use strict";var n=r(85),i=r(148);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,r){"use strict";var n=r(85),i=r(148);t.exports=n("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,r){"use strict";var n,i=r(4),o=r(52),a=r(46),s=r(85),l=r(149),c=r(5),u=r(20).enforce,h=r(117),p=!i.ActiveXObject&&"ActiveXObject"in i,f=Object.isExtensible,d=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=s("WeakMap",d,l);if(h&&p){n=l.getConstructor(d,"WeakMap",!0),a.REQUIRED=!0;var v=g.prototype,m=v.delete,y=v.has,_=v.get,b=v.set;o(v,{delete:function(t){if(c(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),m.call(this,t)||e.frozen.delete(t)}return m.call(this,t)},has:function(t){if(c(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(c(t)&&!f(t)){var e=u(this);return e.frozen||(e.frozen=new n),y.call(this,t)?_.call(this,t):e.frozen.get(t)}return _.call(this,t)},set:function(t,e){if(c(t)&&!f(t)){var r=u(this);r.frozen||(r.frozen=new n),y.call(this,t)?b.call(this,t,e):r.frozen.set(t,e)}else b.call(this,t,e);return this}})}},function(t,e,r){"use strict";r(85)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(149))},function(t,e,r){"use strict";var n=r(1),i=r(4),o=r(86),a=r(50),s=o.ArrayBuffer;n({global:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),a("ArrayBuffer")},function(t,e){var r=Math.abs,n=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;t.exports={pack:function(t,e,s){var l,c,u,h=new Array(s),p=8*s-e-1,f=(1<<p)-1,d=f>>1,g=23===e?n(2,-24)-n(2,-77):0,v=t<0||0===t&&1/t<0?1:0,m=0;for((t=r(t))!=t||t===1/0?(c=t!=t?1:0,l=f):(l=i(o(t)/a),t*(u=n(2,-l))<1&&(l--,u*=2),(t+=l+d>=1?g/u:g*n(2,1-d))*u>=2&&(l++,u/=2),l+d>=f?(c=0,l=f):l+d>=1?(c=(t*u-1)*n(2,e),l+=d):(c=t*n(2,d-1)*n(2,e),l=0));e>=8;h[m++]=255&c,c/=256,e-=8);for(l=l<<e|c,p+=e;p>0;h[m++]=255&l,l/=256,p-=8);return h[--m]|=128*v,h},unpack:function(t,e){var r,i=t.length,o=8*i-e-1,a=(1<<o)-1,s=a>>1,l=o-7,c=i-1,u=t[c--],h=127&u;for(u>>=7;l>0;h=256*h+t[c],c--,l-=8);for(r=h&(1<<-l)-1,h>>=-l,l+=e;l>0;r=256*r+t[c],c--,l-=8);if(0===h)h=1-s;else{if(h===a)return r?NaN:u?-1/0:1/0;r+=n(2,e),h-=s}return(u?-1:1)*r*n(2,h-e)}}},function(t,e,r){var n=r(1),i=r(11);n({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(t,e,r){"use strict";var n=r(1),i=r(3),o=r(86),a=r(7),s=r(40),l=r(10),c=r(37),u=o.ArrayBuffer,h=o.DataView,p=u.prototype.slice;n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(void 0!==p&&void 0===e)return p.call(a(this),t);for(var r=a(this).byteLength,n=s(t,r),i=s(void 0===e?r:e,r),o=new(c(this,u))(l(i-n)),f=new h(this),d=new h(o),g=0;n<i;)d.setUint8(g++,f.getUint8(n++));return o}})},function(t,e,r){var n=r(1),i=r(86);n({global:!0,forced:!r(112)},{DataView:i.DataView})},function(t,e,r){r(38)("Int8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){var n=r(29);t.exports=function(t){var e=n(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},function(t,e,r){r(38)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(38)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0)},function(t,e,r){r(38)("Int16",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(38)("Uint16",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(38)("Int32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(38)("Uint32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(38)("Float32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(38)("Float64",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){"use strict";var n=r(113);(0,r(11).exportTypedArrayStaticMethod)("from",r(152),n)},function(t,e,r){"use strict";var n=r(11),i=r(113),o=n.aTypedArrayConstructor;(0,n.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,r=new(o(this))(e);e>t;)r[t]=arguments[t++];return r}),i)},function(t,e,r){"use strict";var n=r(11),i=r(131),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(t,e){return i.call(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=r(15).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=r(100),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",(function(t){return i.apply(o(this),arguments)}))},function(t,e,r){"use strict";var n=r(11),i=r(15).filter,o=r(37),a=n.aTypedArray,s=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("filter",(function(t){for(var e=i(a(this),t,arguments.length>1?arguments[1]:void 0),r=o(this,this.constructor),n=0,l=e.length,c=new(s(r))(l);l>n;)c[n]=e[n++];return c}))},function(t,e,r){"use strict";var n=r(11),i=r(15).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=r(15).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=r(15).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=r(58).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=r(58).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(4),i=r(11),o=r(74),a=r(9)("iterator"),s=n.Uint8Array,l=o.values,c=o.keys,u=o.entries,h=i.aTypedArray,p=i.exportTypedArrayMethod,f=s&&s.prototype[a],d=!!f&&("values"==f.name||null==f.name),g=function(){return l.call(h(this))};p("entries",(function(){return u.call(h(this))})),p("keys",(function(){return c.call(h(this))})),p("values",g,!d),p(a,g,!d)},function(t,e,r){"use strict";var n=r(11),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=[].join;o("join",(function(t){return a.apply(i(this),arguments)}))},function(t,e,r){"use strict";var n=r(11),i=r(134),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){return i.apply(o(this),arguments)}))},function(t,e,r){"use strict";var n=r(11),i=r(15).map,o=r(37),a=n.aTypedArray,s=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(s(o(t,t.constructor)))(e)}))}))},function(t,e,r){"use strict";var n=r(11),i=r(73).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){return i(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=r(73).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){return i(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var t,e=i(this).length,r=a(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this}))},function(t,e,r){"use strict";var n=r(11),i=r(10),o=r(151),a=r(13),s=r(3),l=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",(function(t){l(this);var e=o(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=a(t),s=i(n.length),c=0;if(s+e>r)throw RangeError("Wrong length");for(;c<s;)this[e+c]=n[c++]}),s((function(){new Int8Array(1).set({})})))},function(t,e,r){"use strict";var n=r(11),i=r(37),o=r(3),a=n.aTypedArray,s=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod,c=[].slice;l("slice",(function(t,e){for(var r=c.call(a(this),t,e),n=i(this,this.constructor),o=0,l=r.length,u=new(s(n))(l);l>o;)u[o]=r[o++];return u}),o((function(){new Int8Array(1).slice()})))},function(t,e,r){"use strict";var n=r(11),i=r(15).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(11),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=[].sort;o("sort",(function(t){return a.call(i(this),t)}))},function(t,e,r){"use strict";var n=r(11),i=r(10),o=r(40),a=r(37),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(t,e){var r=s(this),n=r.length,l=o(t,n);return new(a(r,r.constructor))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,i((void 0===e?n:o(e,n))-l))}))},function(t,e,r){"use strict";var n=r(4),i=r(11),o=r(3),a=n.Int8Array,s=i.aTypedArray,l=i.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,h=!!a&&o((function(){c.call(new a(1))}));l("toLocaleString",(function(){return c.apply(h?u.call(s(this)):s(this),arguments)}),o((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!o((function(){a.prototype.toLocaleString.call([1,2])})))},function(t,e,r){"use strict";var n=r(11).exportTypedArrayMethod,i=r(3),o=r(4).Uint8Array,a=o&&o.prototype||{},s=[].toString,l=[].join;i((function(){s.call({})}))&&(s=function(){return l.call(this)});var c=a.toString!=s;n("toString",s,c)},function(t,e,r){var n=r(1),i=r(28),o=r(22),a=r(7),s=r(3),l=i("Reflect","apply"),c=Function.apply;n({target:"Reflect",stat:!0,forced:!s((function(){l((function(){}))}))},{apply:function(t,e,r){return o(t),a(r),l?l(t,e,r):c.call(t,e,r)}})},function(t,e,r){var n=r(1),i=r(28),o=r(22),a=r(7),s=r(5),l=r(35),c=r(129),u=r(3),h=i("Reflect","construct"),p=u((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),f=!u((function(){h((function(){}))})),d=p||f;n({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(f&&!p)return h(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}var i=r.prototype,u=l(s(i)?i:Object.prototype),d=Function.apply.call(t,u,e);return s(d)?d:u}})},function(t,e,r){var n=r(1),i=r(8),o=r(7),a=r(31),s=r(12);n({target:"Reflect",stat:!0,forced:r(3)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,r){o(t);var n=a(e,!0);o(r);try{return s.f(t,n,r),!0}catch(t){return!1}}})},function(t,e,r){var n=r(1),i=r(7),o=r(16).f;n({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){var n=r(1),i=r(5),o=r(7),a=r(14),s=r(16),l=r(33);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,c,u=arguments.length<3?e:arguments[2];return o(e)===u?e[r]:(n=s.f(e,r))?a(n,"value")?n.value:void 0===n.get?void 0:n.get.call(u):i(c=l(e))?t(c,r,u):void 0}})},function(t,e,r){var n=r(1),i=r(8),o=r(7),a=r(16);n({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return a.f(o(t),e)}})},function(t,e,r){var n=r(1),i=r(7),o=r(33);n({target:"Reflect",stat:!0,sham:!r(98)},{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,r){r(1)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,r){var n=r(1),i=r(7),o=Object.isExtensible;n({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,r){r(1)({target:"Reflect",stat:!0},{ownKeys:r(91)})},function(t,e,r){var n=r(1),i=r(28),o=r(7);n({target:"Reflect",stat:!0,sham:!r(62)},{preventExtensions:function(t){o(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,r){var n=r(1),i=r(7),o=r(5),a=r(14),s=r(3),l=r(12),c=r(16),u=r(33),h=r(39);n({target:"Reflect",stat:!0,forced:s((function(){var t=l.f({},"a",{configurable:!0});return!1!==Reflect.set(u(t),"a",1,t)}))},{set:function t(e,r,n){var s,p,f=arguments.length<4?e:arguments[3],d=c.f(i(e),r);if(!d){if(o(p=u(e)))return t(p,r,n,f);d=h(0)}if(a(d,"value")){if(!1===d.writable||!o(f))return!1;if(s=c.f(f,r)){if(s.get||s.set||!1===s.writable)return!1;s.value=n,l.f(f,r,s)}else l.f(f,r,h(0,n));return!0}return void 0!==d.set&&(d.set.call(f,n),!0)}})},function(t,e,r){var n=r(1),i=r(7),o=r(128),a=r(48);a&&n({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),o(e);try{return a(t,e),!0}catch(t){return!1}}})},function(t,e,r){r(382),r(383),r(384),r(385),r(386),r(387),r(390),r(155);var n=r(57);t.exports=n},function(t,e,r){var n=r(4),i=r(153),o=r(133),a=r(19);for(var s in i){var l=n[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(t){c.forEach=o}}},function(t,e,r){var n=r(4),i=r(153),o=r(74),a=r(19),s=r(9),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var h in i){var p=n[h],f=p&&p.prototype;if(f){if(f[l]!==u)try{a(f,l,u)}catch(t){f[l]=u}if(f[c]||a(f,c,h),i[h])for(var d in o)if(f[d]!==o[d])try{a(f,d,o[d])}catch(t){f[d]=o[d]}}}},function(t,e,r){var n=r(1),i=r(4),o=r(110);n({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,r){var n=r(1),i=r(4),o=r(145),a=r(27),s=i.process,l="process"==a(s);n({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=l&&s.domain;o(e?e.bind(t):t)}})},function(t,e,r){var n=r(1),i=r(4),o=r(72),a=[].slice,s=function(t){return function(e,r){var n=arguments.length>2,i=n?a.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};n({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(t,e,r){"use strict";r(137);var n,i=r(1),o=r(8),a=r(154),s=r(4),l=r(95),c=r(17),u=r(43),h=r(14),p=r(124),f=r(130),d=r(75).codeAt,g=r(388),v=r(34),m=r(155),y=r(20),_=s.URL,b=m.URLSearchParams,x=m.getState,w=y.set,C=y.getterFor("URL"),E=Math.floor,S=Math.pow,T=/[A-Za-z]/,k=/[\d+-.A-Za-z]/,R=/\d/,O=/^(0x|0X)/,P=/^[0-7]+$/,A=/^\d+$/,M=/^[\dA-Fa-f]+$/,L=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,I=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\u0009\u000A\u000D]/g,j=function(t,e){var r,n,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=$(e.slice(1,-1))))return"Invalid host";t.host=r}else if(X(t)){if(e=g(e),L.test(e))return"Invalid host";if(null===(r=N(e)))return"Invalid host";t.host=r}else{if(I.test(e))return"Invalid host";for(r="",n=f(e),i=0;i<n.length;i++)r+=q(n[i],G);t.host=r}},N=function(t){var e,r,n,i,o,a,s,l=t.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(e=l.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(i=l[n]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=O.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?A:8==o?P:M).test(i))return t;a=parseInt(i,o)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=S(256,5-e))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*S(256,3-n);return s},$=function(t){var e,r,n,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,p=function(){return t.charAt(h)};if(":"==p()){if(":"!=t.charAt(1))return;h+=2,u=++c}for(;p();){if(8==c)return;if(":"!=p()){for(e=r=0;r<4&&M.test(p());)e=16*e+parseInt(p(),16),h++,r++;if("."==p()){if(0==r)return;if(h-=r,c>6)return;for(n=0;p();){if(i=null,n>0){if(!("."==p()&&n<4))return;h++}if(!R.test(p()))return;for(;R.test(p());){if(o=parseInt(p(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}l[c]=256*l[c]+i,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(h++,!p())return}else if(p())return;l[c++]=e}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l},B=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=E(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,i=0,o=0;o<8;o++)0!==t[o]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(e=n,r=i),e}(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},G={},U=p({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),z=p({},U,{"#":1,"?":1,"{":1,"}":1}),W=p({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),q=function(t,e){var r=d(t,0);return r>32&&r<127&&!h(e,t)?t:encodeURIComponent(t)},H={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(t){return h(H,t.scheme)},V=function(t){return""!=t.username||""!=t.password},Y=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},K=function(t,e){var r;return 2==t.length&&T.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},Z=function(t){var e;return t.length>1&&K(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},J=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&K(e[0],!0)||e.pop()},Q=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},rt={},nt={},it={},ot={},at={},st={},lt={},ct={},ut={},ht={},pt={},ft={},dt={},gt={},vt={},mt={},yt={},_t={},bt={},xt=function(t,e,r,i){var o,a,s,l,c,u=r||tt,p=0,d="",g=!1,v=!1,m=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(F,"")),e=e.replace(D,""),o=f(e);p<=o.length;){switch(a=o[p],u){case tt:if(!a||!T.test(a)){if(r)return"Invalid scheme";u=rt;continue}d+=a.toLowerCase(),u=et;break;case et:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";d="",u=rt,p=0;continue}if(r&&(X(t)!=h(H,d)||"file"==d&&(V(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=d,r)return void(X(t)&&H[t.scheme]==t.port&&(t.port=null));d="","file"==t.scheme?u=ft:X(t)&&i&&i.scheme==t.scheme?u=nt:X(t)?u=st:"/"==o[p+1]?(u=it,p++):(t.cannotBeABaseURL=!0,t.path.push(""),u=yt)}break;case rt:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,u=bt;break}u="file"==i.scheme?ft:ot;continue;case nt:if("/"!=a||"/"!=o[p+1]){u=ot;continue}u=lt,p++;break;case it:if("/"==a){u=ct;break}u=mt;continue;case ot:if(t.scheme=i.scheme,a==n)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&X(t))u=at;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",u=_t;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),u=mt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=bt}break;case at:if(!X(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,u=mt;continue}u=ct}else u=lt;break;case st:if(u=lt,"/"!=a||"/"!=d.charAt(p+1))continue;p++;break;case lt:if("/"!=a&&"\\"!=a){u=ct;continue}break;case ct:if("@"==a){g&&(d="%40"+d),g=!0,s=f(d);for(var y=0;y<s.length;y++){var _=s[y];if(":"!=_||m){var b=q(_,W);m?t.password+=b:t.username+=b}else m=!0}d=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&X(t)){if(g&&""==d)return"Invalid authority";p-=f(d).length+1,d="",u=ut}else d+=a;break;case ut:case ht:if(r&&"file"==t.scheme){u=gt;continue}if(":"!=a||v){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&X(t)){if(X(t)&&""==d)return"Invalid host";if(r&&""==d&&(V(t)||null!==t.port))return;if(l=j(t,d))return l;if(d="",u=vt,r)return;continue}"["==a?v=!0:"]"==a&&(v=!1),d+=a}else{if(""==d)return"Invalid host";if(l=j(t,d))return l;if(d="",u=pt,r==ht)return}break;case pt:if(!R.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&X(t)||r){if(""!=d){var x=parseInt(d,10);if(x>65535)return"Invalid port";t.port=X(t)&&x===H[t.scheme]?null:x,d=""}if(r)return;u=vt;continue}return"Invalid port"}d+=a;break;case ft:if(t.scheme="file","/"==a||"\\"==a)u=dt;else{if(!i||"file"!=i.scheme){u=mt;continue}if(a==n)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",u=_t;else{if("#"!=a){Z(o.slice(p).join(""))||(t.host=i.host,t.path=i.path.slice(),J(t)),u=mt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=bt}}break;case dt:if("/"==a||"\\"==a){u=gt;break}i&&"file"==i.scheme&&!Z(o.slice(p).join(""))&&(K(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),u=mt;continue;case gt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&K(d))u=mt;else if(""==d){if(t.host="",r)return;u=vt}else{if(l=j(t,d))return l;if("localhost"==t.host&&(t.host=""),r)return;d="",u=vt}continue}d+=a;break;case vt:if(X(t)){if(u=mt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(u=mt,"/"!=a))continue}else t.fragment="",u=bt;else t.query="",u=_t;break;case mt:if(a==n||"/"==a||"\\"==a&&X(t)||!r&&("?"==a||"#"==a)){if(".."===(c=(c=d).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(J(t),"/"==a||"\\"==a&&X(t)||t.path.push("")):Q(d)?"/"==a||"\\"==a&&X(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&K(d)&&(t.host&&(t.host=""),d=d.charAt(0)+":"),t.path.push(d)),d="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",u=_t):"#"==a&&(t.fragment="",u=bt)}else d+=q(a,z);break;case yt:"?"==a?(t.query="",u=_t):"#"==a?(t.fragment="",u=bt):a!=n&&(t.path[0]+=q(a,G));break;case _t:r||"#"!=a?a!=n&&("'"==a&&X(t)?t.query+="%27":t.query+="#"==a?"%23":q(a,G)):(t.fragment="",u=bt);break;case bt:a!=n&&(t.fragment+=q(a,U))}p++}},wt=function(t){var e,r,n=u(this,wt,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),s=w(n,{type:"URL"});if(void 0!==i)if(i instanceof wt)e=C(i);else if(r=xt(e={},String(i)))throw TypeError(r);if(r=xt(s,a,null,e))throw TypeError(r);var l=s.searchParams=new b,c=x(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},o||(n.href=Et.call(n),n.origin=St.call(n),n.protocol=Tt.call(n),n.username=kt.call(n),n.password=Rt.call(n),n.host=Ot.call(n),n.hostname=Pt.call(n),n.port=At.call(n),n.pathname=Mt.call(n),n.search=Lt.call(n),n.searchParams=It.call(n),n.hash=Ft.call(n))},Ct=wt.prototype,Et=function(){var t=C(this),e=t.scheme,r=t.username,n=t.password,i=t.host,o=t.port,a=t.path,s=t.query,l=t.fragment,c=e+":";return null!==i?(c+="//",V(t)&&(c+=r+(n?":"+n:"")+"@"),c+=B(i),null!==o&&(c+=":"+o)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},St=function(){var t=C(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&X(t)?e+"://"+B(t.host)+(null!==r?":"+r:""):"null"},Tt=function(){return C(this).scheme+":"},kt=function(){return C(this).username},Rt=function(){return C(this).password},Ot=function(){var t=C(this),e=t.host,r=t.port;return null===e?"":null===r?B(e):B(e)+":"+r},Pt=function(){var t=C(this).host;return null===t?"":B(t)},At=function(){var t=C(this).port;return null===t?"":String(t)},Mt=function(){var t=C(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Lt=function(){var t=C(this).query;return t?"?"+t:""},It=function(){return C(this).searchParams},Ft=function(){var t=C(this).fragment;return t?"#"+t:""},Dt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&l(Ct,{href:Dt(Et,(function(t){var e=C(this),r=String(t),n=xt(e,r);if(n)throw TypeError(n);x(e.searchParams).updateSearchParams(e.query)})),origin:Dt(St),protocol:Dt(Tt,(function(t){var e=C(this);xt(e,String(t)+":",tt)})),username:Dt(kt,(function(t){var e=C(this),r=f(String(t));if(!Y(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=q(r[n],W)}})),password:Dt(Rt,(function(t){var e=C(this),r=f(String(t));if(!Y(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=q(r[n],W)}})),host:Dt(Ot,(function(t){var e=C(this);e.cannotBeABaseURL||xt(e,String(t),ut)})),hostname:Dt(Pt,(function(t){var e=C(this);e.cannotBeABaseURL||xt(e,String(t),ht)})),port:Dt(At,(function(t){var e=C(this);Y(e)||(""==(t=String(t))?e.port=null:xt(e,t,pt))})),pathname:Dt(Mt,(function(t){var e=C(this);e.cannotBeABaseURL||(e.path=[],xt(e,t+"",vt))})),search:Dt(Lt,(function(t){var e=C(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",xt(e,t,_t)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Dt(It),hash:Dt(Ft,(function(t){var e=C(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",xt(e,t,bt)):e.fragment=null}))}),c(Ct,"toJSON",(function(){return Et.call(this)}),{enumerable:!0}),c(Ct,"toString",(function(){return Et.call(this)}),{enumerable:!0}),_){var jt=_.createObjectURL,Nt=_.revokeObjectURL;jt&&c(wt,"createObjectURL",(function(t){return jt.apply(_,arguments)})),Nt&&c(wt,"revokeObjectURL",(function(t){return Nt.apply(_,arguments)}))}v(wt,"URL"),i({global:!0,forced:!a,sham:!o},{URL:wt})},function(t,e,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,l=function(t){return t+22+75*(t<26)},c=function(t,e,r){var n=0;for(t=r?a(t/700):t>>1,t+=a(t/e);t>455;n+=36)t=a(t/35);return a(n+36*t/(t+38))},u=function(t){var e,r,n=[],i=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e}(t)).length,u=128,h=0,p=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(s(r));var f=n.length,d=f;for(f&&n.push("-");d<i;){var g=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=u&&r<g&&(g=r);var v=d+1;if(g-u>a((2147483647-h)/v))throw RangeError(o);for(h+=(g-u)*v,u=g,e=0;e<t.length;e++){if((r=t[e])<u&&++h>2147483647)throw RangeError(o);if(r==u){for(var m=h,y=36;;y+=36){var _=y<=p?1:y>=p+26?26:y-p;if(m<_)break;var b=m-_,x=36-_;n.push(s(l(_+b%x))),m=a(b/x)}n.push(s(l(m))),p=c(h,v,d==f),h=0,++d}}++h,++u}return n.join("")};t.exports=function(t){var e,r,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)r=a[e],o.push(n.test(r)?"xn--"+u(r):r);return o.join(".")}},function(t,e,r){var n=r(7),i=r(64);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){"use strict";r(1)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l,c=[],u=!1,h=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&f())}function f(){if(!u){var t=s(p);u=!0;for(var e=c.length;e;){for(l=c,c=[];++h<e;)l&&l[h].run();h=-1,e=c.length}l=null,u=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||u||s(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){t.exports=function(){"use strict";function t(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function e(t,e){return t<e?-1:t>e?1:0}return function(r,n,i,o,a){!function e(r,n,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),p=Math.max(i,Math.floor(n-l*u/s+h)),f=Math.min(o,Math.floor(n+(s-l)*u/s+h));e(r,n,p,f,a)}var d=r[n],g=i,v=o;for(t(r,i,n),a(r[o],d)>0&&t(r,i,o);g<v;){for(t(r,g,v),g++,v--;a(r[g],d)<0;)g++;for(;a(r[v],d)>0;)v--}0===a(r[i],d)?t(r,i,v):(v++,t(r,v,o)),v<=n&&(i=v+1),n<=v&&(o=v-1)}}(r,n,i||0,o||r.length-1,a||e)}}()},function(t,e,r){},function(t,e,r){"use strict";r.r(e);r(167);var n=r(30),i=r(0);class o{constructor(t){const e=this;for(let r=0;r<t.length;r+=1)e[r]=t[r];return e.length=t.length,this}}function a(t,e){const r=[];let n=0;if(t&&!e&&t instanceof o)return t;if(t)if("string"==typeof t){let o,a;const s=t.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){let t="div";for(0===s.indexOf("<li")&&(t="ul"),0===s.indexOf("<tr")&&(t="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(t="tr"),0===s.indexOf("<tbody")&&(t="table"),0===s.indexOf("<option")&&(t="select"),a=i.a.createElement(t),a.innerHTML=s,n=0;n<a.childNodes.length;n+=1)r.push(a.childNodes[n])}else for(o=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||i.a).querySelectorAll(t.trim()):[i.a.getElementById(t.trim().split("#")[1])],n=0;n<o.length;n+=1)o[n]&&r.push(o[n])}else if(t.nodeType||t===i.b||t===i.a)r.push(t);else if(t.length>0&&t[0].nodeType)for(n=0;n<t.length;n+=1)r.push(t[n]);return new o(r)}function s(t){const e=[];for(let r=0;r<t.length;r+=1)-1===e.indexOf(t[r])&&e.push(t[r]);return e}function l(t){return i.b.requestAnimationFrame?i.b.requestAnimationFrame(t):i.b.webkitRequestAnimationFrame?i.b.webkitRequestAnimationFrame(t):i.b.setTimeout(t,1e3/60)}a.fn=o.prototype,a.Class=o,a.Dom7=o;var c=Object.freeze({addClass:function(t){if(void 0===t)return this;const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.add(e[t]);return this},removeClass:function(t){const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.remove(e[t]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){const e=t.split(" ");for(let t=0;t<e.length;t+=1)for(let r=0;r<this.length;r+=1)void 0!==this[r]&&void 0!==this[r].classList&&this[r].classList.toggle(e[t]);return this},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r].setAttribute(t,e);else for(const e in t)this[r][e]=t[e],this[r].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},prop:function(t,e){if(1!==arguments.length||"string"!=typeof t){for(let r=0;r<this.length;r+=1)if(2===arguments.length)this[r][t]=e;else for(const e in t)this[r][e]=t[e];return this}if(this[0])return this[0][t]},data:function(t,e){let r;if(void 0!==e){for(let n=0;n<this.length;n+=1)r=this[n],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[t]=e;return this}if(r=this[0],r){if(r.dom7ElementDataStorage&&t in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[t];const e=r.getAttribute("data-"+t);return e||void 0}},removeData:function(t){for(let e=0;e<this.length;e+=1){const r=this[e];r.dom7ElementDataStorage&&r.dom7ElementDataStorage[t]&&(r.dom7ElementDataStorage[t]=null,delete r.dom7ElementDataStorage[t])}},dataset:function(){const t=this[0];if(!t)return;const e={};if(t.dataset)for(const r in t.dataset)e[r]=t.dataset[r];else for(let n=0;n<t.attributes.length;n+=1){const i=t.attributes[n];i.name.indexOf("data-")>=0&&(e[(r=i.name.split("data-")[1],r.toLowerCase().replace(/-(.)/g,(t,e)=>e.toUpperCase()))]=i.value)}var r;for(const t in e)"false"===e[t]?e[t]=!1:"true"===e[t]?e[t]=!0:parseFloat(e[t])===1*e[t]&&(e[t]*=1);return e},val:function(t){const e=this;if(void 0!==t){for(let r=0;r<e.length;r+=1){const n=e[r];if(Array.isArray(t)&&n.multiple&&"select"===n.nodeName.toLowerCase())for(let e=0;e<n.options.length;e+=1)n.options[e].selected=t.indexOf(n.options[e].value)>=0;else n.value=t}return e}if(e[0]){if(e[0].multiple&&"select"===e[0].nodeName.toLowerCase()){const t=[];for(let r=0;r<e[0].selectedOptions.length;r+=1)t.push(e[0].selectedOptions[r].value);return t}return e[0].value}},transform:function(t){for(let e=0;e<this.length;e+=1){const r=this[e].style;r.webkitTransform=t,r.transform=t}return this},transition:function(t){"string"!=typeof t&&(t+="ms");for(let e=0;e<this.length;e+=1){const r=this[e].style;r.webkitTransitionDuration=t,r.transitionDuration=t}return this},on:function(...t){let[e,r,n,i]=t;function o(t){const e=t.target;if(!e)return;const i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),a(e).is(r))n.apply(e,i);else{const t=a(e).parents();for(let e=0;e<t.length;e+=1)a(t[e]).is(r)&&n.apply(t[e],i)}}function s(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),n.apply(this,e)}"function"==typeof t[1]&&([e,n,i]=t,r=void 0),i||(i=!1);const l=e.split(" ");let c;for(let t=0;t<this.length;t+=1){const e=this[t];if(r)for(c=0;c<l.length;c+=1){const t=l[c];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:n,proxyListener:o}),e.addEventListener(t,o,i)}else for(c=0;c<l.length;c+=1){const t=l[c];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:n,proxyListener:s}),e.addEventListener(t,s,i)}}return this},off:function(...t){let[e,r,n,i]=t;"function"==typeof t[1]&&([e,n,i]=t,r=void 0),i||(i=!1);const o=e.split(" ");for(let t=0;t<o.length;t+=1){const e=o[t];for(let t=0;t<this.length;t+=1){const o=this[t];let a;if(!r&&o.dom7Listeners?a=o.dom7Listeners[e]:r&&o.dom7LiveListeners&&(a=o.dom7LiveListeners[e]),a&&a.length)for(let t=a.length-1;t>=0;t-=1){const r=a[t];n&&r.listener===n||n&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===n?(o.removeEventListener(e,r.proxyListener,i),a.splice(t,1)):n||(o.removeEventListener(e,r.proxyListener,i),a.splice(t,1))}}}return this},once:function(...t){const e=this;let[r,n,i,o]=t;function a(...t){i.apply(this,t),e.off(r,n,a,o),a.dom7proxy&&delete a.dom7proxy}return"function"==typeof t[1]&&([r,i,o]=t,n=void 0),a.dom7proxy=i,e.on(r,n,a,o)},trigger:function(...t){const e=t[0].split(" "),r=t[1];for(let n=0;n<e.length;n+=1){const o=e[n];for(let e=0;e<this.length;e+=1){const n=this[e];let a;try{a=new i.b.CustomEvent(o,{detail:r,bubbles:!0,cancelable:!0})}catch(t){a=i.a.createEvent("Event"),a.initEvent(o,!0,!0),a.detail=r}n.dom7EventData=t.filter((t,e)=>e>0),n.dispatchEvent(a),n.dom7EventData=[],delete n.dom7EventData}}return this},transitionEnd:function(t){const e=["webkitTransitionEnd","transitionend"],r=this;let n;function i(o){if(o.target===this)for(t.call(this,o),n=0;n<e.length;n+=1)r.off(e[n],i)}if(t)for(n=0;n<e.length;n+=1)r.on(e[n],i);return this},animationEnd:function(t){const e=["webkitAnimationEnd","animationend"],r=this;let n;function i(o){if(o.target===this)for(t.call(this,o),n=0;n<e.length;n+=1)r.off(e[n],i)}if(t)for(n=0;n<e.length;n+=1)r.on(e[n],i);return this},width:function(){return this[0]===i.b?i.b.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},height:function(){return this[0]===i.b?i.b.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const t=this[0],e=t.getBoundingClientRect(),r=i.a.body,n=t.clientTop||r.clientTop||0,o=t.clientLeft||r.clientLeft||0,a=t===i.b?i.b.scrollY:t.scrollTop,s=t===i.b?i.b.scrollX:t.scrollLeft;return{top:e.top+a-n,left:e.left+s-o}}return null},hide:function(){for(let t=0;t<this.length;t+=1)this[t].style.display="none";return this},show:function(){for(let t=0;t<this.length;t+=1){const e=this[t];"none"===e.style.display&&(e.style.display=""),"none"===i.b.getComputedStyle(e,null).getPropertyValue("display")&&(e.style.display="block")}return this},styles:function(){return this[0]?i.b.getComputedStyle(this[0],null):{}},css:function(t,e){let r;if(1===arguments.length){if("string"!=typeof t){for(r=0;r<this.length;r+=1)for(let e in t)this[r].style[e]=t[e];return this}if(this[0])return i.b.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this},toArray:function(){const t=[];for(let e=0;e<this.length;e+=1)t.push(this[e]);return t},each:function(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},forEach:function(t){if(!t)return this;for(let e=0;e<this.length;e+=1)if(!1===t.call(this[e],this[e],e))return this;return this},filter:function(t){const e=[],r=this;for(let n=0;n<r.length;n+=1)t.call(r[n],n,r[n])&&e.push(r[n]);return new o(e)},map:function(t){const e=[],r=this;for(let n=0;n<r.length;n+=1)e.push(t.call(r[n],n,r[n]));return new o(e)},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=this[0];let r,n;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(r=a(t),n=0;n<r.length;n+=1)if(r[n]===e)return!0;return!1}if(t===i.a)return e===i.a;if(t===i.b)return e===i.b;if(t.nodeType||t instanceof o){for(r=t.nodeType?[t]:t,n=0;n<r.length;n+=1)if(r[n]===e)return!0;return!1}return!1},indexOf:function(t){for(let e=0;e<this.length;e+=1)if(this[e]===t)return e;return-1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;let r;return t>e-1?new o([]):t<0?(r=e+t,new o(r<0?[]:[this[r]])):new o([this[t]])},append:function(...t){let e;for(let r=0;r<t.length;r+=1){e=t[r];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const r=i.a.createElement("div");for(r.innerHTML=e;r.firstChild;)this[t].appendChild(r.firstChild)}else if(e instanceof o)for(let r=0;r<e.length;r+=1)this[t].appendChild(e[r]);else this[t].appendChild(e)}return this},appendTo:function(t){return a(t).append(this),this},prepend:function(t){let e,r;for(e=0;e<this.length;e+=1)if("string"==typeof t){const n=i.a.createElement("div");for(n.innerHTML=t,r=n.childNodes.length-1;r>=0;r-=1)this[e].insertBefore(n.childNodes[r],this[e].childNodes[0])}else if(t instanceof o)for(r=0;r<t.length;r+=1)this[e].insertBefore(t[r],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},prependTo:function(t){return a(t).prepend(this),this},insertBefore:function(t){const e=a(t);for(let t=0;t<this.length;t+=1)if(1===e.length)e[0].parentNode.insertBefore(this[t],e[0]);else if(e.length>1)for(let r=0;r<e.length;r+=1)e[r].parentNode.insertBefore(this[t].cloneNode(!0),e[r])},insertAfter:function(t){const e=a(t);for(let t=0;t<this.length;t+=1)if(1===e.length)e[0].parentNode.insertBefore(this[t],e[0].nextSibling);else if(e.length>1)for(let r=0;r<e.length;r+=1)e[r].parentNode.insertBefore(this[t].cloneNode(!0),e[r].nextSibling)},next:function(t){return this.length>0?t?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(t)?new o([this[0].nextElementSibling]):new o([]):this[0].nextElementSibling?new o([this[0].nextElementSibling]):new o([]):new o([])},nextAll:function(t){const e=[];let r=this[0];if(!r)return new o([]);for(;r.nextElementSibling;){const n=r.nextElementSibling;t?a(n).is(t)&&e.push(n):e.push(n),r=n}return new o(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&a(e.previousElementSibling).is(t)?new o([e.previousElementSibling]):new o([]):e.previousElementSibling?new o([e.previousElementSibling]):new o([])}return new o([])},prevAll:function(t){const e=[];let r=this[0];if(!r)return new o([]);for(;r.previousElementSibling;){const n=r.previousElementSibling;t?a(n).is(t)&&e.push(n):e.push(n),r=n}return new o(e)},siblings:function(t){return this.nextAll(t).add(this.prevAll(t))},parent:function(t){const e=[];for(let r=0;r<this.length;r+=1)null!==this[r].parentNode&&(t?a(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return a(s(e))},parents:function(t){const e=[];for(let r=0;r<this.length;r+=1){let n=this[r].parentNode;for(;n;)t?a(n).is(t)&&e.push(n):e.push(n),n=n.parentNode}return a(s(e))},closest:function(t){let e=this;return void 0===t?new o([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let r=0;r<this.length;r+=1){const n=this[r].querySelectorAll(t);for(let t=0;t<n.length;t+=1)e.push(n[t])}return new o(e)},children:function(t){const e=[];for(let r=0;r<this.length;r+=1){const n=this[r].childNodes;for(let r=0;r<n.length;r+=1)t?1===n[r].nodeType&&a(n[r]).is(t)&&e.push(n[r]):1===n[r].nodeType&&e.push(n[r])}return new o(s(e))},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},detach:function(){return this.remove()},add:function(...t){const e=this;let r,n;for(r=0;r<t.length;r+=1){const i=a(t[r]);for(n=0;n<i.length;n+=1)e[e.length]=i[n],e.length+=1}return e},empty:function(){for(let t=0;t<this.length;t+=1){const e=this[t];if(1===e.nodeType){for(let t=0;t<e.childNodes.length;t+=1)e.childNodes[t].parentNode&&e.childNodes[t].parentNode.removeChild(e.childNodes[t]);e.textContent=""}}return this}});var u=Object.freeze({scrollTo:function(...t){let[e,r,n,i,o]=t;return 4===t.length&&"function"==typeof i&&(o=i,[e,r,n,o,i]=t),void 0===i&&(i="swing"),this.each((function(){const t=this;let a,s,c,u,h,p,f,d,g=r>0||0===r,v=e>0||0===e;if(void 0===i&&(i="swing"),g&&(a=t.scrollTop,n||(t.scrollTop=r)),v&&(s=t.scrollLeft,n||(t.scrollLeft=e)),!n)return;g&&(c=t.scrollHeight-t.offsetHeight,h=Math.max(Math.min(r,c),0)),v&&(u=t.scrollWidth-t.offsetWidth,p=Math.max(Math.min(e,u),0));let m=null;g&&h===a&&(g=!1),v&&p===s&&(v=!1),l((function e(r=(new Date).getTime()){null===m&&(m=r);const c=Math.max(Math.min((r-m)/n,1),0),u="linear"===i?c:.5-Math.cos(c*Math.PI)/2;let y;g&&(f=a+u*(h-a)),v&&(d=s+u*(p-s)),g&&h>a&&f>=h&&(t.scrollTop=h,y=!0),g&&h<a&&f<=h&&(t.scrollTop=h,y=!0),v&&p>s&&d>=p&&(t.scrollLeft=p,y=!0),v&&p<s&&d<=p&&(t.scrollLeft=p,y=!0),y?o&&o():(g&&(t.scrollTop=f),v&&(t.scrollLeft=d),l(e))}))}))},scrollTop:function(...t){let[e,r,n,i]=t;3===t.length&&"function"==typeof n&&([e,r,i,n]=t);const o=this;return void 0===e?o.length>0?o[0].scrollTop:null:o.scrollTo(void 0,e,r,n,i)},scrollLeft:function(...t){let[e,r,n,i]=t;3===t.length&&"function"==typeof n&&([e,r,i,n]=t);const o=this;return void 0===e?o.length>0?o[0].scrollLeft:null:o.scrollTo(e,void 0,r,n,i)}});var h=Object.freeze({animate:function(t,e){const r=this,n={props:Object.assign({},t),params:Object.assign({duration:300,easing:"swing"},e),elements:r,animating:!1,que:[],easingProgress:(t,e)=>"swing"===t?.5-Math.cos(e*Math.PI)/2:"function"==typeof t?t(e):e,stop(){var t;n.frameId&&(t=n.frameId,i.b.cancelAnimationFrame?i.b.cancelAnimationFrame(t):i.b.webkitCancelAnimationFrame?i.b.webkitCancelAnimationFrame(t):i.b.clearTimeout(t)),n.animating=!1,n.elements.each((t,e)=>{delete e.dom7AnimateInstance}),n.que=[]},done(t){if(n.animating=!1,n.elements.each((t,e)=>{delete e.dom7AnimateInstance}),t&&t(r),n.que.length>0){const t=n.que.shift();n.animate(t[0],t[1])}},animate(t,e){if(n.animating)return n.que.push([t,e]),n;const o=[];n.elements.each((e,r)=>{let a,s,l,c,u;r.dom7AnimateInstance||(n.elements[e].dom7AnimateInstance=n),o[e]={container:r},Object.keys(t).forEach(n=>{a=i.b.getComputedStyle(r,null).getPropertyValue(n).replace(",","."),s=parseFloat(a),l=a.replace(s,""),c=parseFloat(t[n]),u=t[n]+l,o[e][n]={initialFullValue:a,initialValue:s,unit:l,finalValue:c,finalFullValue:u,currentValue:s}})});let a,s,c=null,u=0,h=0,p=!1;return n.animating=!0,n.frameId=l((function i(){let f,d;a=(new Date).getTime(),p||(p=!0,e.begin&&e.begin(r)),null===c&&(c=a),e.progress&&e.progress(r,Math.max(Math.min((a-c)/e.duration,1),0),c+e.duration-a<0?0:c+e.duration-a,c),o.forEach(r=>{const i=r;s||i.done||Object.keys(t).forEach(r=>{if(s||i.done)return;f=Math.max(Math.min((a-c)/e.duration,1),0),d=n.easingProgress(e.easing,f);const{initialValue:l,finalValue:p,unit:g}=i[r];i[r].currentValue=l+d*(p-l);const v=i[r].currentValue;(p>l&&v>=p||p<l&&v<=p)&&(i.container.style[r]=p+g,h+=1,h===Object.keys(t).length&&(i.done=!0,u+=1),u===o.length&&(s=!0)),s?n.done(e.complete):i.container.style[r]=v+g})}),s||(n.frameId=l(i))})),n}};if(0===n.elements.length)return r;let o;for(let t=0;t<n.elements.length;t+=1)n.elements[t].dom7AnimateInstance?o=n.elements[t].dom7AnimateInstance:n.elements[t].dom7AnimateInstance=n;return o||(o=n),"stop"===t?o.stop():o.animate(n.props,n.params),r},stop:function(){const t=this;for(let e=0;e<t.length;e+=1)t[e].dom7AnimateInstance&&t[e].dom7AnimateInstance.stop()}});const p="resize scroll".split(" ");function f(t,...e){if(void 0===e[0]){for(let e=0;e<this.length;e+=1)p.indexOf(t)<0&&(t in this[e]?this[e][t]():a(this[e]).trigger(t));return this}return this.on(t,...e)}[c,u,h,Object.freeze({click:function(...t){return f.bind(this)("click",...t)},blur:function(...t){return f.bind(this)("blur",...t)},focus:function(...t){return f.bind(this)("focus",...t)},focusin:function(...t){return f.bind(this)("focusin",...t)},focusout:function(...t){return f.bind(this)("focusout",...t)},keyup:function(...t){return f.bind(this)("keyup",...t)},keydown:function(...t){return f.bind(this)("keydown",...t)},keypress:function(...t){return f.bind(this)("keypress",...t)},submit:function(...t){return f.bind(this)("submit",...t)},change:function(...t){return f.bind(this)("change",...t)},mousedown:function(...t){return f.bind(this)("mousedown",...t)},mousemove:function(...t){return f.bind(this)("mousemove",...t)},mouseup:function(...t){return f.bind(this)("mouseup",...t)},mouseenter:function(...t){return f.bind(this)("mouseenter",...t)},mouseleave:function(...t){return f.bind(this)("mouseleave",...t)},mouseout:function(...t){return f.bind(this)("mouseout",...t)},mouseover:function(...t){return f.bind(this)("mouseover",...t)},touchstart:function(...t){return f.bind(this)("touchstart",...t)},touchend:function(...t){return f.bind(this)("touchend",...t)},touchmove:function(...t){return f.bind(this)("touchmove",...t)},resize:function(...t){return f.bind(this)("resize",...t)},scroll:function(...t){return f.bind(this)("scroll",...t)}})].forEach(t=>{Object.keys(t).forEach(e=>{a.fn[e]=t[e]})});var d=a;const g=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],v={};for(let t=0;t<g.length;t+=1){const e=g[t].letters;for(let r=0;r<e.length;r+=1)v[e[r]]=g[t].base}let m=1;const y={uniqueNumber:()=>(m+=1,m),id(t="xxxxxxxxxx",e="0123456789abcdef"){const r=e.length;return t.replace(/x/g,()=>e[Math.floor(Math.random()*r)])},mdPreloaderContent:'\n    <span class="preloader-inner">\n      <span class="preloader-inner-gap"></span>\n      <span class="preloader-inner-left">\n          <span class="preloader-inner-half-circle"></span>\n      </span>\n      <span class="preloader-inner-right">\n          <span class="preloader-inner-half-circle"></span>\n      </span>\n    </span>\n  '.trim(),iosPreloaderContent:`\n    <span class="preloader-inner">\n      ${[0,1,2,3,4,5,6,7,8,9,10,11].map(()=>'<span class="preloader-inner-line"></span>').join("")}\n    </span>\n  `.trim(),auroraPreloaderContent:'\n    <span class="preloader-inner">\n      <span class="preloader-inner-circle"></span>\n    </span>\n  ',eventNameToColonCase(t){let e;return t.split("").map((t,r)=>t.match(/[A-Z]/)&&0!==r&&!e?(e=!0,":"+t.toLowerCase()):t.toLowerCase()).join("")},deleteProps(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:(t,e=0)=>setTimeout(t,e),nextFrame:t=>y.requestAnimationFrame(()=>{y.requestAnimationFrame(t)}),now:()=>Date.now(),requestAnimationFrame:t=>i.b.requestAnimationFrame(t),cancelAnimationFrame:t=>i.b.cancelAnimationFrame(t),removeDiacritics:t=>t.replace(/[^\u0000-\u007E]/g,t=>v[t]||t),parseUrlQuery(t){const e={};let r,n,o,a,s=t||i.b.location.href;if("string"==typeof s&&s.length)for(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"",n=s.split("&").filter(t=>""!==t),a=n.length,r=0;r<a;r+=1)o=n[r].replace(/#\S+/g,"").split("="),e[decodeURIComponent(o[0])]=void 0===o[1]?void 0:decodeURIComponent(o.slice(1).join("="))||"";return e},getTranslate(t,e="x"){let r,n,o;const a=i.b.getComputedStyle(t,null);return i.b.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(t=>t.replace(",",".")).join(", ")),o=new i.b.WebKitCSSMatrix("none"===n?"":n)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===e&&(n=i.b.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===e&&(n=i.b.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0},serializeObject(t,e=[]){if("string"==typeof t)return t;const r=[];let n;function i(t){if(e.length>0){let r="";for(let t=0;t<e.length;t+=1)r+=0===t?e[t]:`[${encodeURIComponent(e[t])}]`;return`${r}[${encodeURIComponent(t)}]`}return encodeURIComponent(t)}function o(t){return encodeURIComponent(t)}return Object.keys(t).forEach(a=>{let s;if(Array.isArray(t[a])){s=[];for(let r=0;r<t[a].length;r+=1)Array.isArray(t[a][r])||"object"!=typeof t[a][r]?s.push(`${i(a)}[]=${o(t[a][r])}`):(n=e.slice(),n.push(a),n.push(String(r)),s.push(y.serializeObject(t[a][r],n)));s.length>0&&r.push(s.join("&"))}else null===t[a]||""===t[a]?r.push(i(a)+"="):"object"==typeof t[a]?(n=e.slice(),n.push(a),s=y.serializeObject(t[a],n),""!==s&&r.push(s)):void 0!==t[a]&&""!==t[a]?r.push(`${i(a)}=${o(t[a])}`):""===t[a]&&r.push(i(a))}),r.join("&")},isObject:t=>"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object,merge(...t){const e=t[0];t.splice(0,1);const r=t;for(let n=0;n<r.length;n+=1){const r=t[n];if(null!=r){const t=Object.keys(Object(r));for(let n=0,i=t.length;n<i;n+=1){const i=t[n],o=Object.getOwnPropertyDescriptor(r,i);void 0!==o&&o.enumerable&&(e[i]=r[i])}}}return e},extend(...t){let e,r,n=!0;"boolean"==typeof t[0]?(n=t[0],e=t[1],t.splice(0,2),r=t):(e=t[0],t.splice(0,1),r=t);for(let i=0;i<r.length;i+=1){const r=t[i];if(null!=r){const t=Object.keys(Object(r));for(let i=0,o=t.length;i<o;i+=1){const o=t[i],a=Object.getOwnPropertyDescriptor(r,o);void 0!==a&&a.enumerable&&(n?y.isObject(e[o])&&y.isObject(r[o])?y.extend(e[o],r[o]):!y.isObject(e[o])&&y.isObject(r[o])?(e[o]={},y.extend(e[o],r[o])):e[o]=r[o]:e[o]=r[o])}}}return e},colorHexToRgb(t){const e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(t,e,r,n)=>e+e+r+r+n+n),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?r.slice(1).map(t=>parseInt(t,16)):null},colorRgbToHex:(t,e,r)=>"#"+[t,e,r].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join(""),colorRgbToHsl(t,e,r){t/=255,e/=255,r/=255;const n=Math.max(t,e,r),i=Math.min(t,e,r),o=n-i;let a;0===o?a=0:n===t?a=(e-r)/o%6:n===e?a=(r-t)/o+2:n===r&&(a=(t-e)/o+4);const s=(i+n)/2;return a<0&&(a=6+a),[60*a,0===o?0:o/(1-Math.abs(2*s-1)),s]},colorHslToRgb(t,e,r){const n=(1-Math.abs(2*r-1))*e,i=t/60,o=n*(1-Math.abs(i%2-1));let a;Number.isNaN(t)||void 0===t?a=[0,0,0]:i<=1?a=[n,o,0]:i<=2?a=[o,n,0]:i<=3?a=[0,n,o]:i<=4?a=[0,o,n]:i<=5?a=[o,0,n]:i<=6&&(a=[n,0,o]);const s=r-n/2;return a.map(t=>Math.max(0,Math.min(255,Math.round(255*(t+s)))))},colorHsbToHsl(t,e,r){const n={h:t,s:0,l:0},i=e,o=r;return n.l=(2-i)*o/2,n.s=n.l&&n.l<1?i*o/(n.l<.5?2*n.l:2-2*n.l):n.s,[n.h,n.s,n.l]},colorHslToHsb(t,e,r){const n={h:t,s:0,b:0},i=r,o=e*(i<.5?i:1-i);return n.b=i+o,n.s=i>0?2*o/n.b:n.s,[n.h,n.s,n.b]},colorThemeCSSProperties(...t){let e,r;if(1===t.length?(e=t[0],r=y.colorHexToRgb(e)):3===t.length&&(r=t,e=y.colorRgbToHex(...r)),!r)return{};const n=y.colorRgbToHsl(...r),i=[n[0],n[1],Math.max(0,n[2]-.08)],o=[n[0],n[1],Math.max(0,n[2]+.08)],a=y.colorRgbToHex(...y.colorHslToRgb(...i)),s=y.colorRgbToHex(...y.colorHslToRgb(...o));return{"--f7-theme-color":e,"--f7-theme-color-rgb":r.join(", "),"--f7-theme-color-shade":a,"--f7-theme-color-tint":s}}};var _=y,b=r(2);var x=class{constructor(t=[]){this.eventsParents=t,this.eventsListeners={}}on(t,e,r){const n=this;if("function"!=typeof e)return n;const i=r?"unshift":"push";return t.split(" ").forEach(t=>{n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][i](e)}),n}once(t,e,r){const n=this;if("function"!=typeof e)return n;function i(...r){n.off(t,i),i.f7proxy&&delete i.f7proxy,e.apply(n,r)}return i.f7proxy=e,n.on(t,i,r)}off(t,e){const r=this;return r.eventsListeners?(t.split(" ").forEach(t=>{void 0===e?r.eventsListeners[t]=[]:r.eventsListeners[t]&&r.eventsListeners[t].forEach((n,i)=>{(n===e||n.f7proxy&&n.f7proxy===e)&&r.eventsListeners[t].splice(i,1)})}),r):r}emit(...t){const e=this;if(!e.eventsListeners)return e;let r,n,i,o;"string"==typeof t[0]||Array.isArray(t[0])?(r=t[0],n=t.slice(1,t.length),i=e,o=e.eventsParents):(r=t[0].events,n=t[0].data,i=t[0].context||e,o=t[0].local?[]:t[0].parents||e.eventsParents);const a=Array.isArray(r)?r:r.split(" "),s=a.map(t=>t.replace("local::","")),l=a.filter(t=>t.indexOf("local::")<0);return s.forEach(t=>{if(e.eventsListeners&&e.eventsListeners[t]){const r=[];e.eventsListeners[t].forEach(t=>{r.push(t)}),r.forEach(t=>{t.apply(i,n)})}}),o&&o.length>0&&o.forEach(t=>{t.emit(l,...n)}),e}};var w=class extends x{constructor(t={},e=[]){super(e);const r=this;r.params=t,r.params&&r.params.on&&Object.keys(r.params.on).forEach(t=>{r.on(t,r.params.on[t])})}useModuleParams(t,e){if(t.params){const r={};Object.keys(t.params).forEach(t=>{void 0!==e[t]&&(r[t]=_.extend({},e[t]))}),_.extend(e,t.params),Object.keys(r).forEach(t=>{_.extend(e[t],r[t])})}}useModulesParams(t){const e=this;e.modules&&Object.keys(e.modules).forEach(r=>{const n=e.modules[r];n.params&&_.extend(t,n.params)})}useModule(t="",e={}){const r=this;if(!r.modules)return;const n="string"==typeof t?r.modules[t]:t;n&&(n.instance&&Object.keys(n.instance).forEach(t=>{const e=n.instance[t];r[t]="function"==typeof e?e.bind(r):e}),n.on&&r.on&&Object.keys(n.on).forEach(t=>{r.on(t,n.on[t])}),n.vnode&&(r.vnodeHooks||(r.vnodeHooks={}),Object.keys(n.vnode).forEach(t=>{Object.keys(n.vnode[t]).forEach(e=>{const i=n.vnode[t][e];r.vnodeHooks[e]||(r.vnodeHooks[e]={}),r.vnodeHooks[e][t]||(r.vnodeHooks[e][t]=[]),r.vnodeHooks[e][t].push(i.bind(r))})})),n.create&&n.create.bind(r)(e))}useModules(t={}){const e=this;e.modules&&Object.keys(e.modules).forEach(r=>{const n=t[r]||{};e.useModule(r,n)})}static set components(t){this.use&&this.use(t)}static installModule(t,...e){const r=this;r.prototype.modules||(r.prototype.modules={});const n=t.name||`${Object.keys(r.prototype.modules).length}_${_.now()}`;return r.prototype.modules[n]=t,t.proto&&Object.keys(t.proto).forEach(e=>{r.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(e=>{r[e]=t.static[e]}),t.install&&t.install.apply(r,e),r}static use(t,...e){const r=this;return Array.isArray(t)?(t.forEach(t=>r.installModule(t)),r):r.installModule(t,...e)}},C=function(t={}){const{defaultSelector:e,constructor:r,domProp:n,app:i,addMethods:o}=t,a={create:(...t)=>i?new r(i,...t):new r(...t),get(t=e){if(t instanceof r)return t;const i=d(t);return 0!==i.length?i[0][n]:void 0},destroy(t){const e=a.get(t);if(e&&e.destroy)return e.destroy()}};return o&&Array.isArray(o)&&o.forEach(t=>{a[t]=(r=e,...n)=>{const i=a.get(r);if(i&&i[t])return i[t](...n)}}),a};const E=[];var S=function(t){const e=this;return new Promise((r,n)=>{const o=e.instance;let a,s,l;if(t){if("string"==typeof t){const e=t.match(/([a-z0-9-]*)/i);if(t.indexOf(".")<0&&e&&e[0].length===t.length){if(!o||o&&!o.params.lazyModulesPath)return void n(new Error('Framework7: "lazyModulesPath" app parameter must be specified to fetch module by name'));a=`${o.params.lazyModulesPath}/${t}.js`}else a=t}else"function"==typeof t?l=t:s=t;if(l){const t=l(e,!1);if(!t)return void n(new Error("Framework7: Can't find Framework7 component in specified component function"));if(e.prototype.modules&&e.prototype.modules[t.name])return void r();c(t),r()}if(s){const t=s;if(!t)return void n(new Error("Framework7: Can't find Framework7 component in specified component"));if(e.prototype.modules&&e.prototype.modules[t.name])return void r();c(t),r()}if(a){if(E.indexOf(a)>=0)return void r();E.push(a);const t=new Promise((t,r)=>{e.request.get(a,n=>{const o="f7_component_loader_callback_"+_.id(),s=i.a.createElement("script");s.innerHTML=`window.${o} = function (Framework7, Framework7AutoInstallComponent) {return ${n.trim()}}`,d("head").append(s);const l=i.b[o];delete i.b[o],d(s).remove();const u=l(e,!1);u?(e.prototype.modules&&e.prototype.modules[u.name]||c(u),t()):r(new Error(`Framework7: Can't find Framework7 component in ${a} file`))},(t,e)=>{r(t,e)})}),s=new Promise(t=>{e.request.get(a.replace(".js",o.rtl?".rtl.css":".css"),e=>{const r=i.a.createElement("style");r.innerHTML=e,d("head").append(r),t()},()=>{t()})});Promise.all([t,s]).then(()=>{r()}).catch(t=>{n(t)})}}else n(new Error("Framework7: Lazy module must be specified"));function c(t){e.use(t),o&&(o.useModuleParams(t,o.params),o.useModule(t))}})};class T extends w{constructor(t){if(super(t),T.instance)throw new Error("Framework7 is already initialized and can't be initialized more than once");const e=_.extend({},t),r=this;T.instance=r;const n={version:"1.0.0",id:"io.framework7.testapp",root:"body",theme:"auto",language:i.b.navigator.language,routes:[],name:"Framework7",lazyModulesPath:null,initOnDeviceReady:!0,init:!0,autoDarkTheme:!1,iosTranslucentBars:!0,iosTranslucentModals:!0,component:void 0,componentUrl:void 0};r.useModulesParams(n),r.params=_.extend(n,t);const o=d(r.params.root);_.extend(r,{id:r.params.id,name:r.params.name,version:r.params.version,routes:r.params.routes,language:r.params.language,root:o,rtl:"rtl"===o.css("direction"),theme:"auto"===r.params.theme?b.a.ios?"ios":b.a.desktop&&b.a.electron?"aurora":"md":r.params.theme,passedParams:e,online:i.b.navigator.onLine}),r.root&&r.root[0]&&(r.root[0].f7=r),r.useModules(),r.initData();const a="(prefers-color-scheme: dark)",s="(prefers-color-scheme: light)";return r.mq={},i.b.matchMedia&&(r.mq.dark=i.b.matchMedia(a),r.mq.light=i.b.matchMedia(s)),r.colorSchemeListener=function({matches:t,media:e}){if(!t)return;const n=i.a.querySelector("html");e===a?(n.classList.add("theme-dark"),r.darkTheme=!0,r.emit("darkThemeChange",!0)):e===s&&(n.classList.remove("theme-dark"),r.darkTheme=!1,r.emit("darkThemeChange",!1))},r.params.init&&(b.a.cordova&&r.params.initOnDeviceReady?d(i.a).on("deviceready",()=>{r.init()}):r.init()),r}initData(){const t=this;t.data={},t.params.data&&"function"==typeof t.params.data?_.extend(t.data,t.params.data.bind(t)()):t.params.data&&_.extend(t.data,t.params.data),t.methods={},t.params.methods&&Object.keys(t.params.methods).forEach(e=>{"function"==typeof t.params.methods[e]?t.methods[e]=t.params.methods[e].bind(t):t.methods[e]=t.params.methods[e]})}enableAutoDarkTheme(){if(!i.b.matchMedia)return;const t=this,e=i.a.querySelector("html");t.mq.dark&&t.mq.light&&(t.mq.dark.addListener(t.colorSchemeListener),t.mq.light.addListener(t.colorSchemeListener)),t.mq.dark&&t.mq.dark.matches?(e.classList.add("theme-dark"),t.darkTheme=!0,t.emit("darkThemeChange",!0)):t.mq.light&&t.mq.light.matches&&(e.classList.remove("theme-dark"),t.darkTheme=!1,t.emit("darkThemeChange",!1))}disableAutoDarkTheme(){if(!i.b.matchMedia)return;this.mq.dark&&this.mq.dark.removeListener(this.colorSchemeListener),this.mq.light&&this.mq.light.removeListener(this.colorSchemeListener)}initAppComponent(t){const e=this;e.router.componentLoader(e.params.component,e.params.componentUrl,{componentOptions:{el:e.root[0],root:!0}},r=>{e.root=d(r),e.root[0].f7=e,e.rootComponent=r.f7Component,t&&t()},()=>{})}_init(){const t=this;return t.initialized||(t.root.addClass("framework7-initializing"),t.rtl&&d("html").attr("dir","rtl"),t.params.autoDarkTheme&&t.enableAutoDarkTheme(),i.b.addEventListener("offline",()=>{t.online=!1,t.emit("offline"),t.emit("connection",!1)}),i.b.addEventListener("online",()=>{t.online=!0,t.emit("online"),t.emit("connection",!0)}),t.root.addClass("framework7-root"),d("html").removeClass("ios md aurora").addClass(t.theme),t.params.iosTranslucentBars&&"ios"===t.theme&&b.a.ios&&d("html").addClass("ios-translucent-bars"),t.params.iosTranslucentModals&&"ios"===t.theme&&b.a.ios&&d("html").addClass("ios-translucent-modals"),_.nextFrame(()=>{t.root.removeClass("framework7-initializing")}),t.initialized=!0,t.emit("init")),t}init(){const t=this;t.params.component||t.params.componentUrl?t.initAppComponent(()=>{t._init()}):t._init()}loadModule(...t){return T.loadModule(...t)}loadModules(...t){return T.loadModules(...t)}getVnodeHooks(t,e){return this.vnodeHooks&&this.vnodeHooks[t]&&this.vnodeHooks[t][e]||[]}get $(){return d}get t7(){return n.a}static get Dom7(){return d}static get $(){return d}static get Template7(){return n.a}static get Class(){return w}static get Events(){return x}}T.ModalMethods=function(t={}){const{defaultSelector:e,constructor:r,app:n}=t;return _.extend(C({defaultSelector:e,constructor:r,app:n,domProp:"f7Modal"}),{open(t,e,i){let o=d(t);if(o.length>1&&i){const t=d(i).parents(".page");t.length&&o.each((e,r)=>{const n=d(r);n.parents(t)[0]===t[0]&&(o=n)})}if(o.length>1&&(o=o.eq(o.length-1)),!o.length)return;let a=o[0].f7Modal;if(!a){const t=o.dataset();a=new r(n,{el:o,...t})}return a.open(e)},close(t=e,i,o){let a=d(t);if(!a.length)return;if(a.length>1){let t;if(o){const e=d(o);e.length&&(t=e.parents(a))}a=t&&t.length>0?t:a.eq(a.length-1)}let s=a[0].f7Modal;if(!s){const t=a.dataset();s=new r(n,{el:a,...t})}return s.close(i)}})},T.ConstructorMethods=C,T.loadModule=S,T.loadModules=function(t){return Promise.all(t.map(t=>T.loadModule(t)))};var k=T;const R={};let O=0;function P(t){const e=_.extend({},R);"beforeCreate beforeOpen beforeSend error complete success statusCode".split(" ").forEach(t=>{delete e[t]});const r=_.extend({url:i.b.location.toString(),method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},e),n=_.extend({},r,t);let o;function a(t,...e){let r,i;return R[t]&&(r=R[t](...e)),n[t]&&(i=n[t](...e)),"boolean"!=typeof r&&(r=!0),"boolean"!=typeof i&&(i=!0),r&&i}if(o=a("beforeCreate",n),!1===o)return;n.type&&(n.method=n.type);let s=n.url.indexOf("?")>=0?"&":"?";const l=n.method.toUpperCase();if(("GET"===l||"HEAD"===l||"OPTIONS"===l||"DELETE"===l)&&n.data){let t;t="string"==typeof n.data?n.data.indexOf("?")>=0?n.data.split("?")[1]:n.data:_.serializeObject(n.data),t.length&&(n.url+=s+t,"?"===s&&(s="&"))}if("json"===n.dataType&&n.url.indexOf("callback=")>=0){const t="f7jsonp_"+(Date.now()+(O+=1));let e;const r=n.url.split("callback=");let o=`${r[0]}callback=${t}`;if(r[1].indexOf("&")>=0){const t=r[1].split("&").filter(t=>t.indexOf("=")>0).join("&");t.length>0&&(o+="&"+t)}let s=i.a.createElement("script");return s.type="text/javascript",s.onerror=function(){clearTimeout(e),a("error",null,"scripterror","scripterror"),a("complete",null,"scripterror")},s.src=o,i.b[t]=function(r){clearTimeout(e),a("success",r),s.parentNode.removeChild(s),s=null,delete i.b[t]},i.a.querySelector("head").appendChild(s),void(n.timeout>0&&(e=setTimeout(()=>{s.parentNode.removeChild(s),s=null,a("error",null,"timeout","timeout")},n.timeout)))}"GET"!==l&&"HEAD"!==l&&"OPTIONS"!==l&&"DELETE"!==l||!1===n.cache&&(n.url+=`${s}_nocache${Date.now()}`);const c=new XMLHttpRequest;if(c.requestUrl=n.url,c.requestParameters=n,o=a("beforeOpen",c,n),!1===o)return c;c.open(l,n.url,n.async,n.user,n.password);let u=null;if(("POST"===l||"PUT"===l||"PATCH"===l)&&n.data)if(n.processData){if([ArrayBuffer,Blob,Document,FormData].indexOf(n.data.constructor)>=0)u=n.data;else{const t="---------------------------"+Date.now().toString(16);"multipart/form-data"===n.contentType?c.setRequestHeader("Content-Type","multipart/form-data; boundary="+t):c.setRequestHeader("Content-Type",n.contentType),u="";let e=_.serializeObject(n.data);if("multipart/form-data"===n.contentType){e=e.split("&");const r=[];for(let t=0;t<e.length;t+=1)r.push(`Content-Disposition: form-data; name="${e[t].split("=")[0]}"\r\n\r\n${e[t].split("=")[1]}\r\n`);u=`--${t}\r\n${r.join(`--${t}\r\n`)}--${t}--\r\n`}else u="application/json"===n.contentType?JSON.stringify(n.data):e}}else u=n.data,c.setRequestHeader("Content-Type",n.contentType);return"json"!==n.dataType||n.headers&&n.headers.Accept||c.setRequestHeader("Accept","application/json"),n.headers&&Object.keys(n.headers).forEach(t=>{void 0!==n.headers[t]&&c.setRequestHeader(t,n.headers[t])}),void 0===n.crossDomain&&(n.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(n.url)&&RegExp.$2!==i.b.location.host),n.crossDomain||c.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.xhrFields&&_.extend(c,n.xhrFields),c.onload=function(){if(c.status>=200&&c.status<300||0===c.status){let t;if("json"===n.dataType){let e;try{t=JSON.parse(c.responseText)}catch(t){e=!0}e?a("error",c,"parseerror","parseerror"):a("success",t,c.status,c)}else t="text"===c.responseType||""===c.responseType?c.responseText:c.response,a("success",t,c.status,c)}else a("error",c,c.status,c.statusText);n.statusCode&&(R.statusCode&&R.statusCode[c.status]&&R.statusCode[c.status](c),n.statusCode[c.status]&&n.statusCode[c.status](c)),a("complete",c,c.status)},c.onerror=function(){a("error",c,c.status,c.status),a("complete",c,"error")},n.timeout>0&&(c.timeout=n.timeout,c.ontimeout=()=>{a("error",c,"timeout","timeout"),a("complete",c,"timeout")}),o=a("beforeSend",c,n),!1===o||c.send(u),c}function A(t,...e){let[r,n,i,o,a]=[];"function"==typeof e[1]?[r,i,o,a]=e:[r,n,i,o,a]=e,[i,o].forEach(t=>{"string"==typeof t&&(a=t,t===i?i=void 0:o=void 0)}),a=a||("json"===t||"postJSON"===t?"json":void 0);const s={url:r,method:"post"===t||"postJSON"===t?"POST":"GET",data:n,success:i,error:o,dataType:a};return"postJSON"===t&&_.extend(s,{contentType:"application/json",processData:!1,crossDomain:!0,data:"string"==typeof n?n:JSON.stringify(n)}),P(s)}function M(t,...e){const[r,n,i]=e;return new Promise((e,o)=>{A(t,r,n,(t,r,n)=>{e({data:t,status:r,xhr:n})},(t,e,r)=>{o({xhr:t,status:e,message:r})},i)})}Object.assign(P,{get:(...t)=>A("get",...t),post:(...t)=>A("post",...t),json:(...t)=>A("json",...t),getJSON:(...t)=>A("json",...t),postJSON:(...t)=>A("postJSON",...t)}),P.promise=function(t){return new Promise((e,r)=>{P(Object.assign(t,{success(t,r,n){e({data:t,status:r,xhr:n})},error(t,e,n){r({xhr:t,status:e,message:n})}}))})},Object.assign(P.promise,{get:(...t)=>M("get",...t),post:(...t)=>M("post",...t),json:(...t)=>M("json",...t),getJSON:(...t)=>M("json",...t),postJSON:(...t)=>M("postJSON",...t)}),P.setup=function(t){t.type&&!t.method&&_.extend(t,{method:t.type}),_.extend(R,t)};var L=P,I=r(6),F={name:"device",proto:{device:b.a},static:{device:b.a},on:{init(){const t=[],e=i.a.querySelector("html"),r=i.a.querySelector('meta[name="apple-mobile-web-app-status-bar-style"]');e&&(b.a.standalone&&b.a.ios&&r&&"black-translucent"===r.content&&t.push("device-full-viewport"),t.push("device-pixel-ratio-"+Math.floor(b.a.pixelRatio)),b.a.os&&!b.a.desktop?t.push("device-"+b.a.os):b.a.desktop&&(t.push("device-desktop"),b.a.os&&t.push("device-"+b.a.os)),(b.a.cordova||b.a.phonegap)&&t.push("device-cordova"),t.forEach(t=>{e.classList.add(t)}))}}},D={name:"support",proto:{support:I.a},static:{support:I.a}},j={name:"utils",proto:{utils:_},static:{utils:_}},N={name:"resize",instance:{getSize(){if(!this.root[0])return{width:0,height:0,left:0,top:0};const t=this.root.offset(),[e,r,n,i]=[this.root[0].offsetWidth,this.root[0].offsetHeight,t.left,t.top];return this.width=e,this.height=r,this.left=n,this.top=i,{width:e,height:r,left:n,top:i}}},on:{init(){const t=this;t.getSize(),i.b.addEventListener("resize",()=>{t.emit("resize")},!1),i.b.addEventListener("orientationchange",()=>{t.emit("orientationchange")})},orientationchange(){this.device.ipad&&(i.a.body.scrollLeft=0,setTimeout(()=>{i.a.body.scrollLeft=0},0))},resize(){this.getSize()}}},$={name:"request",proto:{request:L},static:{request:L}};var B={name:"touch",params:{touch:{touchClicksDistanceThreshold:5,disableContextMenu:!1,tapHold:!1,tapHoldDelay:750,tapHoldPreventClicks:!0,activeState:!0,activeStateElements:"a, button, label, span, .actions-button, .stepper-button, .stepper-button-plus, .stepper-button-minus, .card-expandable, .menu-item, .link, .item-link, .accordion-item-toggle",activeStateOnMouseMove:!1,mdTouchRipple:!0,iosTouchRipple:!1,auroraTouchRipple:!1,touchRippleElements:".ripple, .link, .item-link, .list-button, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell:not(.input-cell), .notification-close-button, .stepper-button, .stepper-button-minus, .stepper-button-plus, .menu-item-content, .list.accordion-list .accordion-item-toggle"}},instance:{touchEvents:{start:I.a.touch?"touchstart":I.a.pointerEvents?"pointerdown":"mousedown",move:I.a.touch?"touchmove":I.a.pointerEvents?"pointermove":"mousemove",end:I.a.touch?"touchend":I.a.pointerEvents?"pointerup":"mouseup"}},on:{init:function(){const t=this,e=t.params.touch,r=e[t.theme+"TouchRipple"];let n,o,a,s,l,c,u,h,p,f,g,v;function m(t){const r=d(t),n=r.parents(e.activeStateElements);if(r.closest(".no-active-state").length)return null;let i;if(r.is(e.activeStateElements)&&(i=r),n.length>0&&(i=i?i.add(n):n),i&&i.length>1){const t=[];let e;for(let r=0;r<i.length;r+=1)e||(t.push(i[r]),(i.eq(r).hasClass("prevent-active-state-propagation")||i.eq(r).hasClass("no-active-state-propagation"))&&(e=!0));i=d(t)}return i||r}function y(t){return t.parents(".page-content").length>0}function _(){h&&h.addClass("active-state")}function x(){h&&(h.removeClass("active-state"),h=null)}function w(e,r,n){e&&(f=t.touchRipple.create(e,r,n))}function C(){f&&(f.remove(),f=void 0,g=void 0)}function E(t){if(g=function(t){const r=e.touchRippleElements,n=d(t);if(n.is(r))return!n.hasClass("no-ripple")&&n;if(n.parents(r).length>0){const t=n.parents(r).eq(0);return!t.hasClass("no-ripple")&&t}return!1}(t),!g||0===g.length)return void(g=void 0);y(g)?(clearTimeout(v),v=setTimeout(()=>{C(),w(g,n,o)},80)):(C(),w(g,n,o))}function S(){clearTimeout(v),C()}function T(){f||!g||s?C():(clearTimeout(v),w(g,n,o),setTimeout(C,0))}function k(){d(".active-state").removeClass("active-state"),r&&T()}function R(e,r){t.emit({events:e,data:[r]})}function O(t){R("touchstart touchstart:active",t)}function P(t){R("touchmove touchmove:active",t)}function A(t){R("touchend touchend:active",t)}function M(t){R("touchstart:passive",t)}function L(t){R("touchmove:passive",t)}function F(t){R("touchend:passive",t)}function D(t){R(`${t.type} ${t.type}:active`,t)}function j(t){R(t.type+":passive",t)}b.a.ios&&b.a.webView&&i.b.addEventListener("touchstart",()=>{});const N=!!I.a.passiveListener&&{passive:!0},$=!I.a.passiveListener||{passive:!0,capture:!0},B=!!I.a.passiveListener&&{passive:!1},G=!I.a.passiveListener||{passive:!1,capture:!0};i.a.addEventListener("click",(function(t){R("click",t)}),!0),I.a.passiveListener?(i.a.addEventListener(t.touchEvents.start,O,G),i.a.addEventListener(t.touchEvents.move,P,B),i.a.addEventListener(t.touchEvents.end,A,B),i.a.addEventListener(t.touchEvents.start,M,$),i.a.addEventListener(t.touchEvents.move,L,N),i.a.addEventListener(t.touchEvents.end,F,N),I.a.touch&&I.a.gestures&&(i.a.addEventListener("gesturestart",D,B),i.a.addEventListener("gesturechange",D,B),i.a.addEventListener("gestureend",D,B),i.a.addEventListener("gesturestart",j,N),i.a.addEventListener("gesturechange",j,N),i.a.addEventListener("gestureend",j,N))):(i.a.addEventListener(t.touchEvents.start,t=>{O(t),M(t)},!0),i.a.addEventListener(t.touchEvents.move,t=>{P(t),L(t)},!1),i.a.addEventListener(t.touchEvents.end,t=>{A(t),F(t)},!1),I.a.touch&&I.a.gestures&&(i.a.addEventListener("gesturestart",t=>{D(t),j(t)},!1),i.a.addEventListener("gesturechange",t=>{D(t),j(t)},!1),i.a.addEventListener("gestureend",t=>{D(t),j(t)},!1))),I.a.touch?(t.on("click",(function(t){const r=t&&t.detail&&"f7Overswipe"===t.detail;let n=u;return a&&t.target!==a&&(n=!r),e.tapHold&&e.tapHoldPreventClicks&&l&&(n=!0),n&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault()),e.tapHold&&(c=setTimeout(()=>{l=!1},b.a.ios||b.a.androidChrome?100:400)),u=!1,a=null,!n})),t.on("touchstart",(function(i){return s=!1,l=!1,u=!1,i.targetTouches.length>1?(h&&x(),!0):(i.touches.length>1&&h&&x(),e.tapHold&&(c&&clearTimeout(c),c=setTimeout(()=>{i&&i.touches&&i.touches.length>1||(l=!0,i.preventDefault(),u=!0,d(i.target).trigger("taphold",i),t.emit("taphold",i))},e.tapHoldDelay)),a=i.target,n=i.targetTouches[0].pageX,o=i.targetTouches[0].pageY,e.activeState&&(h=m(a),h&&!y(h)?_():h&&(p=setTimeout(_,80))),r&&E(a),!0)})),t.on("touchmove",(function(t){let i,a;if("touchmove"===t.type&&(i=t.targetTouches[0],a=e.touchClicksDistanceThreshold),a&&i){const t=i.pageX,e=i.pageY;(Math.abs(t-n)>a||Math.abs(e-o)>a)&&(s=!0)}else s=!0;s&&(u=!0,e.tapHold&&clearTimeout(c),e.activeState&&(clearTimeout(p),x()),r&&S())})),t.on("touchend",(function(t){return clearTimeout(p),clearTimeout(c),i.a.activeElement===t.target?(e.activeState&&x(),r&&T(),!0):(e.activeState&&(_(),setTimeout(x,0)),r&&T(),!(e.tapHoldPreventClicks&&l||u)||(t.cancelable&&t.preventDefault(),u=!0,!1))})),i.a.addEventListener("touchcancel",(function(){a=null,clearTimeout(p),clearTimeout(c),e.activeState&&x(),r&&T()}),{passive:!0})):e.activeState&&(t.on("touchstart",(function(t){const e=m(t.target);e&&(e.addClass("active-state"),"which"in t&&3===t.which&&setTimeout(()=>{d(".active-state").removeClass("active-state")},0)),r&&(n=t.pageX,o=t.pageY,E(t.target,t.pageX,t.pageY))})),t.on("touchmove",(function(){e.activeStateOnMouseMove||d(".active-state").removeClass("active-state"),r&&S()})),t.on("touchend",k),i.a.addEventListener("pointercancel",k,{passive:!0})),i.a.addEventListener("contextmenu",t=>{e.disableContextMenu&&(b.a.ios||b.a.android||b.a.cordova)&&t.preventDefault(),r&&(h&&x(),T())})}}};function G(t,e){void 0===e&&(e={});for(var r=function(t){for(var e=[],r=0;r<t.length;){var n=t[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)e.push({type:"CHAR",index:r,value:t[r++]});else{var i=1,o="";if("?"===t[s=r+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<t.length;)if("\\"!==t[s]){if(")"===t[s]){if(0===--i){s++;break}}else if("("===t[s]&&(i++,"?"!==t[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);o+=t[s++]}else o+=t[s++]+t[s++];if(i)throw new TypeError("Unbalanced pattern at "+r);if(!o)throw new TypeError("Missing pattern at "+r);e.push({type:"PATTERN",index:r,value:o}),r=s}else{for(var a="",s=r+1;s<t.length;){var l=t.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=t[s++]}if(!a)throw new TypeError("Missing parameter name at "+r);e.push({type:"NAME",index:r,value:a}),r=s}else e.push({type:"CLOSE",index:r,value:t[r++]});else e.push({type:"OPEN",index:r,value:t[r++]});else e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});else e.push({type:"MODIFIER",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}(t),n=e.prefixes,i=void 0===n?"./":n,o="[^"+z(e.delimiter||"/#?")+"]+?",a=[],s=0,l=0,c="",u=function(t){if(l<r.length&&r[l].type===t)return r[l++].value},h=function(t){var e=u(t);if(void 0!==e)return e;var n=r[l],i=n.type,o=n.index;throw new TypeError("Unexpected "+i+" at "+o+", expected "+t)},p=function(){for(var t,e="";t=u("CHAR")||u("ESCAPED_CHAR");)e+=t;return e};l<r.length;){var f=u("CHAR"),d=u("NAME"),g=u("PATTERN");if(d||g){var v=f||"";-1===i.indexOf(v)&&(c+=v,v=""),c&&(a.push(c),c=""),a.push({name:d||s++,prefix:v,suffix:"",pattern:g||o,modifier:u("MODIFIER")||""})}else{var m=f||u("ESCAPED_CHAR");if(m)c+=m;else if(c&&(a.push(c),c=""),u("OPEN")){v=p();var y=u("NAME")||"",_=u("PATTERN")||"",b=p();h("CLOSE"),a.push({name:y||(_?s++:""),pattern:y&&!_?o:_,prefix:v,suffix:b,modifier:u("MODIFIER")||""})}else h("END")}}return a}function U(t,e){return function(t,e){void 0===e&&(e={});var r=W(e),n=e.encode,i=void 0===n?function(t){return t}:n,o=e.validate,a=void 0===o||o,s=t.map((function(t){if("object"==typeof t)return new RegExp("^(?:"+t.pattern+")$",r)}));return function(e){for(var r="",n=0;n<t.length;n++){var o=t[n];if("string"!=typeof o){var l=e?e[o.name]:void 0,c="?"===o.modifier||"*"===o.modifier,u="*"===o.modifier||"+"===o.modifier;if(Array.isArray(l)){if(!u)throw new TypeError('Expected "'+o.name+'" to not repeat, but got an array');if(0===l.length){if(c)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var h=0;h<l.length;h++){var p=i(l[h],o);if(a&&!s[n].test(p))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but got "'+p+'"');r+=o.prefix+p+o.suffix}}else if("string"!=typeof l&&"number"!=typeof l){if(!c){var f=u?"an array":"a string";throw new TypeError('Expected "'+o.name+'" to be '+f)}}else{p=i(String(l),o);if(a&&!s[n].test(p))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but got "'+p+'"');r+=o.prefix+p+o.suffix}}else r+=o}return r}}(G(t,e),e)}function z(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function W(t){return t&&t.sensitive?"":"i"}function q(t,e,r){return function(t,e,r){void 0===r&&(r={});for(var n=r.strict,i=void 0!==n&&n,o=r.start,a=void 0===o||o,s=r.end,l=void 0===s||s,c=r.encode,u=void 0===c?function(t){return t}:c,h="["+z(r.endsWith||"")+"]|$",p="["+z(r.delimiter||"/#?")+"]",f=a?"^":"",d=0,g=t;d<g.length;d++){var v=g[d];if("string"==typeof v)f+=z(u(v));else{var m=z(u(v.prefix)),y=z(u(v.suffix));if(v.pattern)if(e&&e.push(v),m||y)if("+"===v.modifier||"*"===v.modifier){var _="*"===v.modifier?"?":"";f+="(?:"+m+"((?:"+v.pattern+")(?:"+y+m+"(?:"+v.pattern+"))*)"+y+")"+_}else f+="(?:"+m+"("+v.pattern+")"+y+")"+v.modifier;else f+="("+v.pattern+")"+v.modifier;else f+="(?:"+m+y+")"+v.modifier}}if(l)i||(f+=p+"?"),f+=r.endsWith?"(?="+h+")":"$";else{var b=t[t.length-1],x="string"==typeof b?p.indexOf(b[b.length-1])>-1:void 0===b;i||(f+="(?:"+p+"(?="+h+"))?"),x||(f+="(?="+p+"|"+h+")")}return new RegExp(f,W(r))}(G(t,r),e,r)}function H(t,e,r){return t instanceof RegExp?function(t,e){if(!e)return t;var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:"",suffix:"",modifier:"",pattern:""});return t}(t,e):Array.isArray(t)?function(t,e,r){var n=t.map((function(t){return H(t,e,r).source}));return new RegExp("(?:"+n.join("|")+")",W(r))}(t,e,r):q(t,e,r)}const X={queue:[],clearQueue(){if(0===X.queue.length)return;X.queue.shift()()},routerQueue:[],clearRouterQueue(){if(0===X.routerQueue.length)return;const t=X.routerQueue.pop(),{router:e,stateUrl:r,action:n}=t;let i=e.params.animate;!1===e.params.pushStateAnimate&&(i=!1),"back"===n&&e.back({animate:i,pushState:!1}),"load"===n&&e.navigate(r,{animate:i,pushState:!1})},handle(t){if(X.blockPopstate)return;let e=t.state;X.previousState=X.state,X.state=e,X.allowChange=!0,X.clearQueue(),e=X.state,e||(e={}),this.views.forEach(t=>{const r=t.router;let n=e[t.id];if(!n&&t.params.pushState&&(n={url:t.router.history[0]}),!n)return;const i=n.url||void 0;let o=r.params.animate;!1===r.params.pushStateAnimate&&(o=!1),i!==r.url&&(r.history.indexOf(i)>=0?r.allowPageChange?r.back({animate:o,pushState:!1}):X.routerQueue.push({action:"back",router:r}):r.allowPageChange?r.navigate(i,{animate:o,pushState:!1}):X.routerQueue.unshift({action:"load",stateUrl:i,router:r}))})},initViewState(t,e){const r=_.extend({},X.state||{},{[t]:e});X.state=r,i.b.history.replaceState(r,"")},push(t,e,r){if(!X.allowChange)return void X.queue.push(()=>{X.push(t,e,r)});X.previousState=X.state;const n=_.extend({},X.previousState||{},{[t]:e});X.state=n,i.b.history.pushState(n,"",r)},replace(t,e,r){if(!X.allowChange)return void X.queue.push(()=>{X.replace(t,e,r)});X.previousState=X.state;const n=_.extend({},X.previousState||{},{[t]:e});X.state=n,i.b.history.replaceState(n,"",r)},go(t){X.allowChange=!1,i.b.history.go(t)},back(){X.allowChange=!1,i.b.history.back()},allowChange:!0,previousState:{},state:i.b.history.state,blockPopstate:!0,init(t){d(i.b).on("load",()=>{setTimeout(()=>{X.blockPopstate=!1},0)}),i.a.readyState&&"complete"===i.a.readyState&&(X.blockPopstate=!1),d(i.b).on("popstate",X.handle.bind(t))}};var V=X;var Y=function(t){const e=t,{$el:r,$navbarsEl:n,app:i,params:o}=e;let a=!1,s=!1;const l={};let c,u,h,p,f,g,v,m,y=[],x=[],w=!0,C=[],E=[];const S=o[i.theme+"SwipeBackAnimateShadow"],T=o[i.theme+"SwipeBackAnimateOpacity"],k=o[i.theme+"SwipeBackActiveArea"],R=o[i.theme+"SwipeBackThreshold"],O=i.rtl?"right center":"left center",P=i.rtl?"calc(100% - var(--f7-navbar-large-title-padding-left) - var(--f7-safe-area-left)) center":"calc(var(--f7-navbar-large-title-padding-left) + var(--f7-safe-area-left)) center";function A({progress:t,reset:e,transition:r}={}){const n=["overflow","transform","transform-origin","opacity"];for(let i=0;i<m.length;i+=1){const o=m[i];if(o&&o.el){!0===r&&o.el.classList.add("navbar-page-transitioning"),!1===r&&o.el.classList.remove("navbar-page-transitioning"),!o.className||o.classNameSet||e||(o.el.classList.add(o.className),o.classNameSet=!0),o.className&&e&&o.el.classList.remove(o.className);for(let r=0;r<n.length;r+=1){const i=n[r];o[i]&&(e?o.el.style[i]="":"function"==typeof o[i]?o.el.style[i]=o[i](t):o.el.style[i]=o[i])}}}}function M(t){const r=o[i.theme+"SwipeBack"];!w||!r||a||i.swipeout&&i.swipeout.el||!e.allowPageChange||d(t.target).closest(".range-slider, .calendar-months").length>0||d(t.target).closest(".page-master, .page-master-detail").length>0&&o.masterDetailBreakpoint>0&&i.width>=o.masterDetailBreakpoint||(s=!1,a=!0,c=void 0,l.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,l.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,p=_.now(),f=e.dynamicNavbar)}function L(t){if(!a)return;const p="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,_="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY;if(void 0===c&&(c=!!(c||Math.abs(_-l.y)>Math.abs(p-l.x))||p<l.x&&!i.rtl||p>l.x&&i.rtl),c||t.f7PreventSwipeBack||i.preventSwipeBack)return void(a=!1);if(!s){let e=!1;const s=d(t.target),c=s.closest(".swipeout");c.length>0&&(!i.rtl&&c.find(".swipeout-actions-left").length>0&&(e=!0),i.rtl&&c.find(".swipeout-actions-right").length>0&&(e=!0)),y=s.closest(".page"),(y.hasClass("no-swipeback")||s.closest(".no-swipeback, .card-opened").length>0)&&(e=!0),x=r.find(".page-previous:not(.stacked)"),x.length>1&&(x=x.eq(x.length-1));let h=l.x-r.offset().left>k;if(u=r.width(),h=i.rtl?l.x<r.offset().left-r[0].scrollLeft+(u-k):l.x-r.offset().left>k,h&&(e=!0),0!==x.length&&0!==y.length||(e=!0),e)return void(a=!1);S&&(g=y.find(".page-shadow-effect"),0===g.length&&(g=d('<div class="page-shadow-effect"></div>'),y.append(g))),T&&(v=x.find(".page-opacity-effect"),0===v.length&&(v=d('<div class="page-opacity-effect"></div>'),x.append(v))),f&&(C=n.find(".navbar-current:not(.stacked)"),E=n.find(".navbar-previous:not(.stacked)"),E.length>1&&(E=E.eq(E.length-1)),m=function(){const t=[],e=i.rtl?-1:1,r=C.hasClass("navbar-transparent")&&!C.hasClass("navbar-large")&&!C.hasClass("navbar-transparent-visible"),n=C.hasClass("navbar-large"),a=C.hasClass("navbar-large-collapsed"),s=C.hasClass("navbar-large-transparent")||C.hasClass("navbar-large")&&C.hasClass("navbar-transparent"),l=E.hasClass("navbar-transparent")&&!E.hasClass("navbar-large")&&!E.hasClass("navbar-transparent-visible"),c=E.hasClass("navbar-large"),u=E.hasClass("navbar-large-collapsed"),h=E.hasClass("navbar-large-transparent")||E.hasClass("navbar-large")&&E.hasClass("navbar-transparent"),p=n&&!a,f=c&&!u,g=C.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg"),v=E.find(".left, .title, .right, .subnavbar, .fading, .title-large, .navbar-bg");let m,y;return o.iosAnimateNavbarBackIcon&&(m=C.hasClass("sliding")||C.find(".navbar-inner.sliding").length?C.find(".left").find(".back .icon + span").eq(0):C.find(".left.sliding").find(".back .icon + span").eq(0),y=E.hasClass("sliding")||E.find(".navbar-inner.sliding").length?E.find(".left").find(".back .icon + span").eq(0):E.find(".left.sliding").find(".back .icon + span").eq(0),m.length&&v.each((t,e)=>{d(e).hasClass("title")&&(e.f7NavbarLeftOffset+=m.prev(".icon")[0].offsetWidth)})),g.each((i,l)=>{const c=d(l),u=c.hasClass("subnavbar"),h=c.hasClass("left"),g=c.hasClass("title"),v=c.hasClass("navbar-bg");if((g||v)&&r)return;if(!p&&c.hasClass(".title-large"))return;const y={el:l};if(p){if(g)return;if(c.hasClass("title-large"))return t.indexOf(y)<0&&t.push(y),y.overflow="visible",void c.find(".title-large-text").each((r,n)=>{t.push({el:n,transform:t=>`translateX(${100*t*e}%)`})})}if(f&&(p||c.hasClass("title-large")&&(t.indexOf(y)<0&&t.push(y),y.opacity=0),h))return t.indexOf(y)<0&&t.push(y),y.opacity=t=>1-t**.33,void c.find(".back span").each((e,r)=>{t.push({el:r,"transform-origin":O,transform:t=>`translateX(calc(${t} * (var(--f7-navbarTitleLargeOffset) - var(--f7-navbarLeftTextOffset)))) translateY(calc(${t} * (var(--f7-navbar-large-title-height) - var(--f7-navbar-large-title-padding-vertical) / 2))) scale(${1+1*t})`})});if(v)return t.indexOf(y)<0&&t.push(y),p||f||(a?(s&&(y.className="ios-swipeback-navbar-bg-large"),y.transform=t=>`translateX(${100*t*e}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):y.transform=t=>`translateX(${100*t*e}%)`),!p&&f&&(y.className="ios-swipeback-navbar-bg-large",y.transform=t=>`translateX(${100*t*e}%) translateY(calc(-1 * ${1-t} * var(--f7-navbar-large-title-height)))`),p&&f&&(y.transform=t=>`translateX(${100*t*e}%)`),void(p&&!f&&(y.transform=t=>`translateX(${100*t*e}%) translateY(calc(-${t} * var(--f7-navbar-large-title-height)))`));if(c.hasClass("title-large"))return;const _=c.hasClass("sliding")||c.parents(".navbar-inner.sliding").length;if(t.indexOf(y)<0&&t.push(y),(!u||u&&!_)&&(y.opacity=t=>1-t**.33),_){let e=y;if(h&&m.length&&o.iosAnimateNavbarBackIcon){const r={el:m[0]};e=r,t.push(r)}e.transform=t=>{let r=t*e.el.f7NavbarRightOffset;return 1===b.a.pixelRatio&&(r=Math.round(r)),u&&n?`translate3d(${r}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${r}px,0,0)`}}}),v.each((r,n)=>{const i=d(n),a=i.hasClass("subnavbar"),s=i.hasClass("left"),g=i.hasClass("title"),v=i.hasClass("navbar-bg");if((g||v)&&l)return;const m={el:n};if(f){if(g)return;if(t.indexOf(m)<0&&t.push(m),i.hasClass("title-large"))return m.opacity=1,m.overflow="visible",void i.find(".title-large-text").each((e,r)=>{t.push({el:r,"transform-origin":P,opacity:t=>t**3,transform:t=>`translateX(calc(${1-t} * (var(--f7-navbarLeftTextOffset) - var(--f7-navbarTitleLargeOffset)))) translateY(calc(${t-1} * var(--f7-navbar-large-title-height) + ${1-t} * var(--f7-navbar-large-title-padding-vertical))) scale(${.5+.5*t})`})})}if(v)return t.indexOf(m)<0&&t.push(m),p||f||(u?(h&&(m.className="ios-swipeback-navbar-bg-large"),m.transform=t=>`translateX(${(100*t-100)*e}%) translateY(calc(-1 * var(--f7-navbar-large-title-height)))`):m.transform=t=>`translateX(${(100*t-100)*e}%)`),!p&&f&&(m.transform=t=>`translateX(${(100*t-100)*e}%) translateY(calc(-1 * ${1-t} * var(--f7-navbar-large-title-height)))`),p&&!f&&(m.className="ios-swipeback-navbar-bg-large",m.transform=t=>`translateX(${(100*t-100)*e}%) translateY(calc(-${t} * var(--f7-navbar-large-title-height)))`),void(p&&f&&(m.transform=t=>`translateX(${(100*t-100)*e}%)`));if(i.hasClass("title-large"))return;const _=i.hasClass("sliding")||E.children(".navbar-inner.sliding").length;if(t.indexOf(m)<0&&t.push(m),(!a||a&&!_)&&(m.opacity=t=>t**3),_){let e=m;if(s&&y.length&&o.iosAnimateNavbarBackIcon){const r={el:y[0]};e=r,t.push(r)}e.transform=t=>{let r=e.el.f7NavbarLeftOffset*(1-t);return 1===b.a.pixelRatio&&(r=Math.round(r)),a&&c?`translate3d(${r}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`:`translate3d(${r}px,0,0)`}}}),t}()),d(".sheet.modal-in").length>0&&i.sheet&&i.sheet.close(d(".sheet.modal-in"))}t.f7PreventSwipePanel=!0,s=!0,i.preventSwipePanelBySwipeBack=!0,t.preventDefault();const w=i.rtl?-1:1;h=(p-l.x-R)*w,h<0&&(h=0);const M=Math.min(Math.max(h/u,0),1),L={percentage:M,progress:M,currentPageEl:y[0],previousPageEl:x[0],currentNavbarEl:C[0],previousNavbarEl:E[0]};r.trigger("swipeback:move",L),e.emit("swipebackMove",L);let I=h*w,F=(h/5-u/5)*w;i.rtl?(I=Math.max(I,-u),F=Math.max(F,0)):(I=Math.min(I,u),F=Math.min(F,0)),1===b.a.pixelRatio&&(I=Math.round(I),F=Math.round(F)),e.swipeBackActive=!0,d([y[0],x[0]]).addClass("page-swipeback-active"),y.transform(`translate3d(${I}px,0,0)`),S&&(g[0].style.opacity=1-1*M),"ios"===i.theme&&x.transform(`translate3d(${F}px,0,0)`),T&&(v[0].style.opacity=1-1*M),f&&A({progress:M})}function F(){if(i.preventSwipePanelBySwipeBack=!1,!a||!s)return a=!1,void(s=!1);if(a=!1,s=!1,e.swipeBackActive=!1,d([y[0],x[0]]).removeClass("page-swipeback-active"),0===h)return d([y[0],x[0]]).transform(""),g&&g.length>0&&g.remove(),v&&v.length>0&&v.remove(),void(f&&A({reset:!0}));const t=_.now()-p;let n=!1;(t<300&&h>10||t>=300&&h>u/2)&&(y.removeClass("page-current").addClass("page-next"+("ios"!==i.theme?" page-next-on-right":"")),x.removeClass("page-previous").addClass("page-current").removeAttr("aria-hidden"),g&&(g[0].style.opacity=""),v&&(v[0].style.opacity=""),f&&(e.setNavbarPosition(C,"next"),e.setNavbarPosition(E,"current",!1)),n=!0),d([y[0],x[0]]).addClass("page-transitioning page-transitioning-swipeback").transform(""),f&&A({progress:n?1:0,transition:!0}),w=!1,e.allowPageChange=!1;const l={currentPageEl:y[0],previousPageEl:x[0],currentNavbarEl:C[0],previousNavbarEl:E[0]};n?(e.currentRoute=x[0].f7Page.route,e.currentPage=x[0],e.pageCallback("beforeOut",y,C,"current","next",{route:y[0].f7Page.route,swipeBack:!0}),e.pageCallback("beforeIn",x,E,"previous","current",{route:x[0].f7Page.route,swipeBack:!0},y[0]),r.trigger("swipeback:beforechange",l),e.emit("swipebackBeforeChange",l)):(r.trigger("swipeback:beforereset",l),e.emit("swipebackBeforeReset",l)),y.transitionEnd(()=>{d([y[0],x[0]]).removeClass("page-transitioning page-transitioning-swipeback"),f&&A({reset:!0,transition:!1}),w=!0,e.allowPageChange=!0,n?(1===e.history.length&&e.history.unshift(e.url),e.history.pop(),e.saveHistory(),o.pushState&&V.back(),e.pageCallback("afterOut",y,C,"current","next",{route:y[0].f7Page.route,swipeBack:!0}),e.pageCallback("afterIn",x,E,"previous","current",{route:x[0].f7Page.route,swipeBack:!0}),o.stackPages&&e.initialPages.indexOf(y[0])>=0?(y.addClass("stacked"),f&&C.addClass("stacked")):(e.pageCallback("beforeRemove",y,C,"next",{swipeBack:!0}),e.removePage(y),f&&e.removeNavbar(C)),r.trigger("swipeback:afterchange",l),e.emit("swipebackAfterChange",l),e.emit("routeChanged",e.currentRoute,e.previousRoute,e),o.preloadPreviousPage&&e.back(e.history[e.history.length-2],{preload:!0})):(r.trigger("swipeback:afterreset",l),e.emit("swipebackAfterReset",l)),g&&g.length>0&&g.remove(),v&&v.length>0&&v.remove()})}!function(){const t=!("touchstart"!==i.touchEvents.start||!I.a.passiveListener)&&{passive:!0,capture:!1};r.on(i.touchEvents.start,M,t),i.on("touchmove:active",L),i.on("touchend:passive",F)}(),e.on("routerDestroy",(function(){const t=!("touchstart"!==i.touchEvents.start||!I.a.passiveListener)&&{passive:!0,capture:!1};r.off(i.touchEvents.start,M,t),i.off("touchmove:active",L),i.off("touchend:passive",F)}))},K=function(t,e,r){const n=this,i=e.route.redirect;if(r.initial&&n.params.pushState&&(r.replaceState=!0,r.history=!0),"function"==typeof i){n.allowPageChange=!1;const o=i.call(n,e,(function(e,i={}){n.allowPageChange=!0,n[t](e,_.extend({},r,i))}),(function(){n.allowPageChange=!0}));return o&&"string"==typeof o?(n.allowPageChange=!0,n[t](o,r)):n}return n[t](i,r)};function Z(t,e,r,n,i,o,a){const s=[];Array.isArray(r)?s.push(...r):r&&"function"==typeof r&&s.push(r),e&&(Array.isArray(e)?s.push(...e):s.push(e)),function e(){if(0===s.length)return void o();s.shift().call(t,n,i,()=>{e()},()=>{a()})}()}var J=function(t,e,r,n){const i=this;function o(){t&&t.route&&(i.params.routesBeforeEnter||t.route.beforeEnter)?(i.allowPageChange=!1,Z(i,i.params.routesBeforeEnter,t.route.beforeEnter,t,e,()=>{i.allowPageChange=!0,r()},()=>{n()})):r()}e&&e.route&&(i.params.routesBeforeLeave||e.route.beforeLeave)?(i.allowPageChange=!1,Z(i,i.params.routesBeforeLeave,e.route.beforeLeave,t,e,()=>{i.allowPageChange=!0,o()},()=>{n()})):o()},Q=function(t,e){if(!t.view)throw new Error(`Framework7: it is not allowed to use router methods on global app router. Use router methods only on related View, e.g. app.views.main.router.${e}(...)`)},tt=function(t,e,r,n){function i(t){t.then(t=>{r({component:t.default||t._default||t})}).catch(t=>{throw n(),new Error(t)})}if(e instanceof Promise)return void i(e);const o=e.call(t);o instanceof Promise?i(o):r({component:o})};class et extends w{constructor(t,e){super({},[void 0===e?t:e]);const r=this;r.isAppRouter=void 0===e,r.isAppRouter?_.extend(!1,r,{app:t,params:t.params.view,routes:t.routes||[],cache:t.cache}):_.extend(!1,r,{app:t,view:e,viewId:e.id,params:e.params,routes:e.routes,$el:e.$el,el:e.el,$navbarsEl:e.$navbarsEl,navbarsEl:e.navbarsEl,history:e.history,scrollHistory:e.scrollHistory,cache:t.cache,dynamicNavbar:"ios"===t.theme&&e.params.iosDynamicNavbar,initialPages:[],initialNavbars:[]}),r.useModules(),r.tempDom=i.a.createElement("div"),r.allowPageChange=!0;let n={},o={};return Object.defineProperty(r,"currentRoute",{enumerable:!0,configurable:!0,set(t={}){o=_.extend({},n),n=t,n&&(r.url=n.url,r.emit("routeChange",t,o,r))},get:()=>n}),Object.defineProperty(r,"previousRoute",{enumerable:!0,configurable:!0,get:()=>o,set(t){o=t}}),r}animatableNavElements(t,e,r,n,i){const o=this,a=o.dynamicNavbar,s=o.params.iosAnimateNavbarBackIcon;let l,c;function u(t,e){const r=t.hasClass("sliding")||e.hasClass("sliding"),n=t.hasClass("subnavbar"),i=!r||!n,o=t.find(".back .icon");let a;return r&&s&&t.hasClass("left")&&o.length>0&&o.next("span").length&&(t=o.next("span"),a=!0),{$el:t,isIconLabel:a,leftOffset:t[0].f7NavbarLeftOffset,rightOffset:t[0].f7NavbarRightOffset,isSliding:r,isSubnavbar:n,needsOpacityTransition:i}}return a&&(l=[],c=[],t.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((e,o)=>{const a=d(o);a.hasClass("left")&&n&&"forward"===i||a.hasClass("title")&&r||l.push(u(a,t.children(".navbar-inner")))}),e.hasClass("navbar-master")&&o.params.masterDetailBreakpoint>0&&o.app.width>=o.params.masterDetailBreakpoint||e.children(".navbar-inner").children(".left, .right, .title, .subnavbar").each((t,o)=>{const a=d(o);a.hasClass("left")&&r&&!n&&"forward"===i||a.hasClass("left")&&r&&"backward"===i||a.hasClass("title")&&n||c.push(u(a,e.children(".navbar-inner")))}),[c,l].forEach(t=>{t.forEach(e=>{const r=e,{isSliding:n,$el:i}=e,o=t===c?l:c;n&&i.hasClass("title")&&o&&o.forEach(t=>{if(t.isIconLabel){const e=t.$el[0];r.leftOffset+=e&&e.offsetLeft||0}})})})),{newNavEls:l,oldNavEls:c}}animate(t,e,r,n,i,o,a){const s=this;if(s.params.animateCustom)return void s.params.animateCustom.apply(s,[t,e,r,n,i,a]);const l=s.dynamicNavbar,c="ios"===s.app.theme;if(o){const c=`router-transition-custom router-transition-${o}-${i}`,u=()=>{s.$el.removeClass(c),l&&s.$navbarsEl.length&&(n&&s.$navbarsEl.prepend(n),r&&s.$navbarsEl.prepend(r)),a&&a()};return("forward"===i?e:t).animationEnd(u),l&&(n&&e&&(s.setNavbarPosition(n,""),n.removeClass("navbar-next navbar-previous navbar-current"),e.prepend(n)),r&&t&&(s.setNavbarPosition(r,""),r.removeClass("navbar-next navbar-previous navbar-current"),t.prepend(r))),void s.$el.addClass(c)}const u=`router-transition-${i} router-transition`;let h,p,f,d,g,v;if(c&&l){s.params.masterDetailBreakpoint>0&&s.app.width>=s.params.masterDetailBreakpoint&&(r.hasClass("navbar-master")&&n.hasClass("navbar-master-detail")||r.hasClass("navbar-master-detail")&&n.hasClass("navbar-master"))||(g=r&&r.hasClass("navbar-large"),v=n&&n.hasClass("navbar-large"),f=g&&!r.hasClass("navbar-large-collapsed"),d=v&&!n.hasClass("navbar-large-collapsed"));const t=s.animatableNavElements(n,r,d,f,i);h=t.newNavEls,p=t.oldNavEls}function m(t){c&&l&&(1===t&&(d&&(n.addClass("router-navbar-transition-to-large"),r.addClass("router-navbar-transition-to-large")),f&&(n.addClass("router-navbar-transition-from-large"),r.addClass("router-navbar-transition-from-large"))),h.forEach(e=>{const r=e.$el,n="forward"===i?e.rightOffset:e.leftOffset;e.isSliding&&(e.isSubnavbar&&v?r[0].style.setProperty("transform",`translate3d(${n*(1-t)}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`,"important"):r.transform(`translate3d(${n*(1-t)}px,0,0)`))}),p.forEach(e=>{const r=e.$el,n="forward"===i?e.leftOffset:e.rightOffset;e.isSliding&&(e.isSubnavbar&&g?r.transform(`translate3d(${n*t}px, calc(-1 * var(--f7-navbar-large-collapse-progress) * var(--f7-navbar-large-title-height)), 0)`):r.transform(`translate3d(${n*t}px,0,0)`))}))}("forward"===i?e:t).animationEnd(()=>{s.dynamicNavbar&&(n&&(n.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),n.addClass("navbar-no-title-large-transition"),_.nextFrame(()=>{n.removeClass("navbar-no-title-large-transition")})),r&&r.removeClass("router-navbar-transition-to-large router-navbar-transition-from-large"),n.hasClass("sliding")||n.children(".navbar-inner.sliding").length?n.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):n.find(".sliding").transform(""),r.hasClass("sliding")||r.children(".navbar-inner.sliding").length?r.find(".title, .left, .right, .left .icon, .subnavbar").transform(""):r.find(".sliding").transform("")),s.$el.removeClass(u),a&&a()}),l?(m(0),_.nextFrame(()=>{m(1),s.$el.addClass(u)})):s.$el.addClass(u)}removeModal(t){this.removeEl(t)}removeTabContent(t){d(t).html("")}removeNavbar(t){this.removeEl(t)}removePage(t){const e=d(t),r=e&&e[0]&&e[0].f7Page;r&&r.route&&r.route.route&&r.route.route.keepAlive?e.remove():this.removeEl(t)}removeEl(t){if(!t)return;const e=this,r=d(t);0!==r.length&&(r.find(".tab").each((t,e)=>{d(e).children().each((t,e)=>{e.f7Component&&(d(e).trigger("tab:beforeremove"),e.f7Component.$destroy())})}),r[0].f7Component&&r[0].f7Component.$destroy&&r[0].f7Component.$destroy(),e.params.removeElements&&(e.params.removeElementsWithTimeout?setTimeout(()=>{r.remove()},e.params.removeElementsTimeout):r.remove()))}getPageEl(t){const e=this;if("string"==typeof t)e.tempDom.innerHTML=t;else{if(d(t).hasClass("page"))return t;e.tempDom.innerHTML="",d(e.tempDom).append(t)}return e.findElement(".page",e.tempDom)}findElement(t,e,r){const n=this.view,i=this.app,o=d(e);let a=t;r&&(a+=":not(.stacked)");let s=o.find(a).filter((t,e)=>0===d(e).parents(".popup, .dialog, .popover, .actions-modal, .sheet-modal, .login-screen, .page").length);return s.length>1&&("string"==typeof n.selector&&(s=o.find(`${n.selector} ${a}`)),s.length>1&&(s=o.find(`.${i.params.viewMainClass} ${a}`))),1===s.length?s:(r||(s=this.findElement(a,o,!0)),s&&1===s.length?s:s&&s.length>1?d(s[0]):void 0)}flattenRoutes(t=this.routes){const e=this;let r=[];return t.forEach(t=>{let n=!1;if("tabs"in t&&t.tabs){const i=t.tabs.map(e=>{const r=_.extend({},t,{path:`${t.path}/${e.path}`.replace("///","/").replace("//","/"),parentPath:t.path,tab:e});return delete r.tabs,delete r.routes,r});n=!0,r=r.concat(e.flattenRoutes(i))}if("detailRoutes"in t){const n=t.detailRoutes.map(e=>{const r=_.extend({},e);return r.masterRoute=t,r.masterRoutePath=t.path,r});r=r.concat(t,e.flattenRoutes(n))}if("routes"in t){const i=t.routes.map(e=>{const r=_.extend({},e);return r.path=`${t.path}/${r.path}`.replace("///","/").replace("//","/"),r});r=n?r.concat(e.flattenRoutes(i)):r.concat(t,e.flattenRoutes(i))}"routes"in t||"tabs"in t&&t.tabs||"detailRoutes"in t||r.push(t)}),r}parseRouteUrl(t){if(!t)return{};const e=_.parseUrlQuery(t),r=t.split("#")[1],n=t.split("#")[0].split("?")[0];return{query:e,hash:r,params:{},url:t,path:n}}generateUrl(t={}){if("string"==typeof t)return t;const{name:e,path:r,params:n,query:i}=t;if(!e&&!r)throw new Error('Framework7: "name" or "path" parameter is required');const o=e?this.findRouteByKey("name",e):this.findRouteByKey("path",r);if(!o)throw e?new Error(`Framework7: route with name "${e}" not found`):new Error(`Framework7: route with path "${r}" not found`);const a=this.constructRouteUrl(o,{params:n,query:i});if(!a)throw new Error(`Framework7: can't construct URL for route with name "${e}"`);return a}constructRouteUrl(t,{params:e,query:r}={}){const{path:n}=t,i=U(n);let o;try{o=i(e||{})}catch(t){throw new Error(`Framework7: error constructing route URL from passed params:\nRoute: ${n}\n${t.toString()}`)}return r&&(o+="string"==typeof r?"?"+r:"?"+_.serializeObject(r)),o}findTabRoute(t){const e=d(t),r=this.currentRoute.route.parentPath,n=e.attr("id");let i;return this.flattenRoutes(this.routes).forEach(t=>{t.parentPath===r&&t.tab&&t.tab.id===n&&(i=t)}),i}findRouteByKey(t,e){const r=this.routes;let n;return this.flattenRoutes(r).forEach(r=>{n||r[t]===e&&(n=r)}),n}findMatchingRoute(t){if(!t)return;const e=this.routes,r=this.flattenRoutes(e),{path:n,query:i,hash:o,params:a}=this.parseRouteUrl(t);let s;return r.forEach(e=>{if(s)return;const r=[],l=[e.path];let c;if(e.alias&&("string"==typeof e.alias?l.push(e.alias):Array.isArray(e.alias)&&e.alias.forEach(t=>{l.push(t)})),l.forEach(t=>{c||(c=H(t,r).exec(n))}),c){let l;r.forEach((t,e)=>{if("number"==typeof t.name)return;const r=c[e+1];a[t.name]=null==r?r:decodeURIComponent(r)}),e.parentPath&&(l=n.split("/").slice(0,e.parentPath.split("/").length-1).join("/")),s={query:i,hash:o,params:a,url:t,path:n,parentPath:l,route:e,name:e.name}}}),s}replaceRequestUrlParams(t="",e={}){let r=t;return"string"==typeof r&&r.indexOf("{{")>=0&&e&&e.route&&e.route.params&&Object.keys(e.route.params).length&&Object.keys(e.route.params).forEach(t=>{const n=new RegExp(`{{${t}}}`,"g");r=r.replace(n,e.route.params[t]||"")}),r}removeFromXhrCache(t){const e=this.cache.xhr;let r=!1;for(let n=0;n<e.length;n+=1)e[n].url===t&&(r=n);!1!==r&&e.splice(r,1)}xhrRequest(t,e){const r=this,n=r.params,{ignoreCache:i}=e;let o=t,a=o.indexOf("?")>=0;return n.passRouteQueryToRequest&&e&&e.route&&e.route.query&&Object.keys(e.route.query).length&&(o+=`${a?"&":"?"}${_.serializeObject(e.route.query)}`,a=!0),n.passRouteParamsToRequest&&e&&e.route&&e.route.params&&Object.keys(e.route.params).length&&(o+=`${a?"&":"?"}${_.serializeObject(e.route.params)}`,a=!0),o.indexOf("{{")>=0&&(o=r.replaceRequestUrlParams(o,e)),n.xhrCacheIgnoreGetParameters&&o.indexOf("?")>=0&&(o=o.split("?")[0]),new Promise((t,a)=>{if(n.xhrCache&&!i&&o.indexOf("nocache")<0&&n.xhrCacheIgnore.indexOf(o)<0)for(let e=0;e<r.cache.xhr.length;e+=1){const i=r.cache.xhr[e];if(i.url===o&&_.now()-i.time<n.xhrCacheDuration)return void t(i.content)}r.xhr=r.app.request({url:o,method:"GET",beforeSend(t){r.emit("routerAjaxStart",t,e)},complete(i,s){r.emit("routerAjaxComplete",i),"error"!==s&&"timeout"!==s&&i.status>=200&&i.status<300||0===i.status?(n.xhrCache&&""!==i.responseText&&(r.removeFromXhrCache(o),r.cache.xhr.push({url:o,time:_.now(),content:i.responseText})),r.emit("routerAjaxSuccess",i,e),t(i.responseText)):(r.emit("routerAjaxError",i,e),a(i))},error(t){r.emit("routerAjaxError",t,e),a(t)}})})}setNavbarPosition(t,e,r){t.removeClass("navbar-previous navbar-current navbar-next"),e&&t.addClass("navbar-"+e),!1===r?t.removeAttr("aria-hidden"):!0===r&&t.attr("aria-hidden","true"),t.trigger("navbar:position",{position:e}),this.emit("navbarPosition",t[0],e)}setPagePosition(t,e,r){t.removeClass("page-previous page-current page-next"),t.addClass("page-"+e),!1===r?t.removeAttr("aria-hidden"):!0===r&&t.attr("aria-hidden","true"),t.trigger("page:position",{position:e}),this.emit("pagePosition",t[0],e)}removeThemeElements(t){const e=this.app.theme;let r;"ios"===e?r=".md-only, .aurora-only, .if-md, .if-aurora, .if-not-ios, .not-ios":"md"===e?r=".ios-only, .aurora-only, .if-ios, .if-aurora, .if-not-md, .not-md":"aurora"===e&&(r=".ios-only, .md-only, .if-ios, .if-md, .if-not-aurora, .not-aurora"),d(t).find(r).remove()}getPageData(t,e,r,n,i={},o){const a=d(t).eq(0),s=d(e).eq(0),l=a[0].f7Page||{};let c,u;if(("next"===r&&"current"===n||"current"===r&&"previous"===n)&&(c="forward"),("current"===r&&"next"===n||"previous"===r&&"current"===n)&&(c="backward"),l&&!l.fromPage){const t=d(o);t.length&&(u=t[0].f7Page)}u=l.pageFrom||u,u&&u.pageFrom&&(u.pageFrom=null);const h={app:this.app,view:this.view,router:this,$el:a,el:a[0],$pageEl:a,pageEl:a[0],$navbarEl:s,navbarEl:s[0],name:a.attr("data-name"),position:r,from:r,to:n,direction:c,route:l.route?l.route:i,pageFrom:u};return a[0].f7Page=h,h}pageCallback(t,e,r,n,i,o={},a){if(!e)return;const s=this,l=d(e);if(!l.length)return;const c=d(r),{route:u}=o,h=s.params.restoreScrollTopOnBack&&!(s.params.masterDetailBreakpoint>0&&l.hasClass("page-master")&&s.app.width>=s.params.masterDetailBreakpoint),p=l[0].f7Page&&l[0].f7Page.route&&l[0].f7Page.route.route&&l[0].f7Page.route.route.keepAlive;"beforeRemove"===t&&p&&(t="beforeUnmount");const f="page"+(t[0].toUpperCase()+t.slice(1,t.length)),g="page:"+t.toLowerCase();let v={};v="beforeRemove"===t&&l[0].f7Page?_.extend(l[0].f7Page,{from:n,to:i,position:n}):s.getPageData(l[0],c[0],n,i,u,a),v.swipeBack=!!o.swipeBack;const{on:m={},once:y={}}=o.route?o.route.route:{};function b(){l[0].f7RouteEventsAttached||(l[0].f7RouteEventsAttached=!0,m&&Object.keys(m).length>0&&(l[0].f7RouteEventsOn=m,Object.keys(m).forEach(t=>{m[t]=m[t].bind(s),l.on(_.eventNameToColonCase(t),m[t])})),y&&Object.keys(y).length>0&&(l[0].f7RouteEventsOnce=y,Object.keys(y).forEach(t=>{y[t]=y[t].bind(s),l.once(_.eventNameToColonCase(t),y[t])})))}if(o.on&&_.extend(m,o.on),o.once&&_.extend(y,o.once),"mounted"===t&&b(),"init"===t){if(h&&("previous"===n||!n)&&"current"===i&&s.scrollHistory[v.route.url]&&!l.hasClass("no-restore-scroll")){let t=l.find(".page-content");t.length>0&&(t=t.filter((t,e)=>0===d(e).parents(".tab:not(.tab-active)").length&&!d(e).is(".tab:not(.tab-active)"))),t.scrollTop(s.scrollHistory[v.route.url])}if(b(),l[0].f7PageInitialized)return l.trigger("page:reinit",v),void s.emit("pageReinit",v);l[0].f7PageInitialized=!0}if(h&&"beforeOut"===t&&"current"===n&&"previous"===i){let t=l.find(".page-content");t.length>0&&(t=t.filter((t,e)=>0===d(e).parents(".tab:not(.tab-active)").length&&!d(e).is(".tab:not(.tab-active)"))),s.scrollHistory[v.route.url]=t.scrollTop()}h&&"beforeOut"===t&&"current"===n&&"next"===i&&delete s.scrollHistory[v.route.url],l.trigger(g,v),s.emit(f,v),"beforeRemove"!==t&&"beforeUnmount"!==t||(l[0].f7RouteEventsAttached&&(l[0].f7RouteEventsOn&&Object.keys(l[0].f7RouteEventsOn).forEach(t=>{l.off(_.eventNameToColonCase(t),l[0].f7RouteEventsOn[t])}),l[0].f7RouteEventsOnce&&Object.keys(l[0].f7RouteEventsOnce).forEach(t=>{l.off(_.eventNameToColonCase(t),l[0].f7RouteEventsOnce[t])}),l[0].f7RouteEventsAttached=null,l[0].f7RouteEventsOn=null,l[0].f7RouteEventsOnce=null,delete l[0].f7RouteEventsAttached,delete l[0].f7RouteEventsOn,delete l[0].f7RouteEventsOnce),p||(l[0].f7Page&&l[0].f7Page.navbarEl&&delete l[0].f7Page.navbarEl.f7Page,l[0].f7Page=null))}saveHistory(){const t=this;t.view.history=t.history,t.params.pushState&&(i.b.localStorage[`f7router-${t.view.id}-history`]=JSON.stringify(t.history))}restoreHistory(){const t=this;t.params.pushState&&i.b.localStorage[`f7router-${t.view.id}-history`]&&(t.history=JSON.parse(i.b.localStorage[`f7router-${t.view.id}-history`]),t.view.history=t.history)}clearHistory(){this.history=[],this.view&&(this.view.history=[]),this.saveHistory()}updateCurrentUrl(t){const e=this;Q(e,"updateCurrentUrl"),e.history.length?e.history[e.history.length-1]=t:e.history.push(t);const{query:r,hash:n,params:i,url:o,path:a}=e.parseRouteUrl(t);if(e.currentRoute&&_.extend(e.currentRoute,{query:r,hash:n,params:i,url:o,path:a}),e.params.pushState){const r=e.params.pushStateRoot||"";V.replace(e.view.id,{url:t},r+e.params.pushStateSeparator+t)}e.saveHistory(),e.emit("routeUrlUpdate",e.currentRoute,e)}init(){const t=this,{app:e,view:r}=t;(r&&t.params.iosSwipeBack&&"ios"===e.theme||r&&t.params.mdSwipeBack&&"md"===e.theme||r&&t.params.auroraSwipeBack&&"aurora"===e.theme)&&Y(t);let n,o=t.params.url,a=i.a.location.href.split(i.a.location.origin)[1];const{pushState:s,pushStateOnLoad:l,pushStateSeparator:c,pushStateAnimateOnLoad:u}=t.params;let h,{pushStateRoot:p}=t.params;if(i.b.cordova&&s&&!c&&!p&&i.a.location.pathname.indexOf("index.html")&&(console.warn("Framework7: wrong or not complete pushState configuration, trying to guess pushStateRoot"),p=i.a.location.pathname.split("index.html")[0]),s&&l?(p&&a.indexOf(p)>=0&&(a=a.split(p)[1],""===a&&(a="/")),o=c.length>0&&a.indexOf(c)>=0?a.split(c)[1]:a,t.restoreHistory(),t.history.indexOf(o)>=0?t.history=t.history.slice(0,t.history.indexOf(o)+1):t.params.url===o?t.history=[o]:V.state&&V.state[r.id]&&V.state[r.id].url===t.history[t.history.length-1]?o=t.history[t.history.length-1]:t.history=[a.split(c)[0]||"/",o],t.history.length>1?n=!0:t.history=[],t.saveHistory()):(o||(o=a),i.a.location.search&&o.indexOf("?")<0&&(o+=i.a.location.search),i.a.location.hash&&o.indexOf("#")<0&&(o+=i.a.location.hash)),t.history.length>1?(h=t.findMatchingRoute(t.history[0]),h||(h=_.extend(t.parseRouteUrl(t.history[0]),{route:{url:t.history[0],path:t.history[0].split("?")[0]}}))):(h=t.findMatchingRoute(o),h||(h=_.extend(t.parseRouteUrl(o),{route:{url:o,path:o.split("?")[0]}}))),t.params.stackPages&&t.$el.children(".page").each((e,r)=>{const n=d(r);t.initialPages.push(n[0]),t.dynamicNavbar&&n.children(".navbar").length>0&&t.initialNavbars.push(n.children(".navbar")[0])}),0===t.$el.children(".page:not(.stacked)").length&&o&&t.params.loadInitialPage)t.navigate(o,{initial:!0,reloadCurrent:!0,pushState:!1});else if(t.$el.children(".page:not(.stacked)").length){let a;t.currentRoute=h,t.$el.children(".page:not(.stacked)").each((e,n)=>{const o=d(n);let s;t.setPagePosition(o,"current"),t.dynamicNavbar&&(s=o.children(".navbar"),s.length>0?(t.$navbarsEl.parents(i.a).length||t.$el.prepend(t.$navbarsEl),t.setNavbarPosition(s,"current"),t.$navbarsEl.append(s),s.children(".title-large").length&&s.addClass("navbar-large"),o.children(".navbar").remove()):(t.$navbarsEl.addClass("navbar-hidden"),s.children(".title-large").length&&t.$navbarsEl.addClass("navbar-hidden navbar-large-hidden"))),t.currentRoute&&t.currentRoute.route&&t.currentRoute.route.master&&t.params.masterDetailBreakpoint>0&&(o.addClass("page-master"),o.trigger("page:role",{role:"master"}),s&&s.length&&s.addClass("navbar-master"),r.checkMasterDetailBreakpoint());const l={route:t.currentRoute};t.currentRoute&&t.currentRoute.route&&t.currentRoute.route.options&&_.extend(l,t.currentRoute.route.options),t.currentPageEl=o[0],t.dynamicNavbar&&s.length&&(t.currentNavbarEl=s[0]),t.removeThemeElements(o),t.dynamicNavbar&&s.length&&t.removeThemeElements(s),l.route.route.tab&&(a=!0,t.tabLoad(l.route.route.tab,_.extend({},l))),t.pageCallback("init",o,s,"current",void 0,l)}),n&&t.navigate(o,{initial:!0,pushState:!1,history:!1,animate:u,once:{pageAfterIn(){(t.params.preloadPreviousPage||t.params[e.theme+"SwipeBack"])&&t.history.length>2&&t.back({preload:!0})}}}),n||a||(t.history.push(o),t.saveHistory())}!(o&&s&&l)||V.state&&V.state[r.id]||V.initViewState(r.id,{url:o}),t.emit("local::init routerInit",t)}destroy(){let t=this;t.emit("local::destroy routerDestroy",t),Object.keys(t).forEach(e=>{t[e]=null,delete t[e]}),t=null}}et.prototype.forward=function(t,e={}){const r=this,n=d(t),o=r.app,a=r.view,s=_.extend(!1,{animate:r.params.animate,pushState:!0,replaceState:!1,history:!0,reloadCurrent:r.params.reloadPages,reloadPrevious:!1,reloadAll:!1,clearPreviousHistory:!1,reloadDetail:r.params.reloadDetail,on:{}},e),l=r.params.masterDetailBreakpoint>0,c=l&&s.route&&s.route.route&&!0===s.route.route.master;let u,h,p,f=r.currentRoute.modal;if(f||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(t=>{r.currentRoute&&r.currentRoute.route&&r.currentRoute.route[t]&&(f=!0,p=t)}),f){const t=r.currentRoute.modal||r.currentRoute.route.modalInstance||o[p].get(),e=r.history[r.history.length-2];let n=r.findMatchingRoute(e);!n&&e&&(n={url:e,path:e.split("?")[0],query:_.parseUrlQuery(e),route:{path:e.split("?")[0],url:e}}),r.modalRemove(t)}const g=r.dynamicNavbar,v=r.$el,m=n,y=s.reloadPrevious||s.reloadCurrent||s.reloadAll;let b,x,w,C;if(r.allowPageChange=!1,0===m.length)return r.allowPageChange=!0,r;m.length&&r.removeThemeElements(m),g&&(w=m.children(".navbar"),x=r.$navbarsEl,0===w.length&&m[0]&&m[0].f7Page&&(w=m[0].f7Page.$navbarEl)),s.route&&s.route.route&&s.route.route.keepAlive&&!s.route.route.keepAliveData&&(s.route.route.keepAliveData={pageEl:n[0]});const E=v.children(".page:not(.stacked)").filter((t,e)=>e!==m[0]);let S,T,k,R;if(g&&(S=x.children(".navbar:not(.stacked)").filter((t,e)=>e!==w[0])),s.reloadPrevious&&E.length<2)return r.allowPageChange=!0,r;if(l&&!s.reloadAll){for(let t=0;t<E.length;t+=1)u||!E[t].classList.contains("page-master")||(u=E[t]);if(T=!c&&u,T&&u)for(let t=0;t<E.length;t+=1)E[t].classList.contains("page-master-detail")&&(h=E[t]);k=T&&s.reloadDetail&&o.width>=r.params.masterDetailBreakpoint&&u}T&&(R=!h||k||s.reloadAll||s.reloadCurrent);let O="next";if(s.reloadCurrent||s.reloadAll||k?O="current":s.reloadPrevious&&(O="previous"),m.removeClass("page-previous page-current page-next").addClass(`page-${O}${c?" page-master":""}${T?" page-master-detail":""}${R?" page-master-detail-root":""}`).removeClass("stacked").trigger("page:unstack").trigger("page:position",{position:O}),r.emit("pageUnstack",m[0]),r.emit("pagePosition",m[0],O),(c||T)&&(m.trigger("page:role",{role:c?"master":"detail",root:!!R}),r.emit("pageRole",m[0],{role:c?"master":"detail",detailRoot:!!R})),g&&w.length&&(w.removeClass("navbar-previous navbar-current navbar-next").addClass(`navbar-${O}${c?" navbar-master":""}${T?" navbar-master-detail":""}${R?" navbar-master-detail-root":""}`).removeClass("stacked"),w.trigger("navbar:position",{position:O}),r.emit("navbarPosition",w[0],O),(c||T)&&r.emit("navbarRole",w[0],{role:c?"master":"detail",detailRoot:!!R})),s.reloadCurrent||k)b=E.eq(E.length-1),g&&(C=d(o.navbar.getElByPage(b)));else if(s.reloadPrevious)b=E.eq(E.length-2),g&&(C=d(o.navbar.getElByPage(b)));else if(s.reloadAll)b=E.filter((t,e)=>e!==m[0]),g&&(C=S.filter((t,e)=>e!==w[0]));else{let t=[],e=[];if(E.length>1){let n=0;for(n=0;n<E.length-1;n+=1){if(u&&E[n]===u){E.eq(n).addClass("page-master-stacked"),E.eq(n).trigger("page:masterstack"),r.emit("pageMasterStack",E[n]),g&&(d(o.navbar.getElByPage(u)).addClass("navbar-master-stacked"),r.emit("navbarMasterStack",o.navbar.getElByPage(u)));continue}const i=o.navbar.getElByPage(E.eq(n));r.params.stackPages?(E.eq(n).addClass("stacked"),E.eq(n).trigger("page:stack"),r.emit("pageStack",E[n]),g&&d(i).addClass("stacked")):(t.push(E[n]),r.pageCallback("beforeRemove",E[n],S&&S[n],"previous",void 0,s),r.removePage(E[n]),g&&i&&(e.push(i),r.removeNavbar(i)))}}b=v.children(".page:not(.stacked)").filter((e,r)=>r!==m[0]&&t.indexOf(r)<0),g&&(C=x.children(".navbar:not(.stacked)").filter((t,r)=>r!==w[0]&&e.indexOf(e)<0)),t=[],e=[]}if(T&&!s.reloadAll&&((b.length>1||k)&&(b=b.filter((t,e)=>!e.classList.contains("page-master"))),C&&(C.length>1||k)&&(C=C.filter((t,e)=>!e.classList.contains("navbar-master")))),r.params.pushState&&(s.pushState||s.replaceState)&&!s.reloadPrevious){const t=r.params.pushStateRoot||"";V[s.reloadCurrent||k&&h||s.reloadAll||s.replaceState?"replace":"push"](a.id,{url:s.route.url},t+r.params.pushStateSeparator+s.route.url)}s.reloadPrevious||(r.currentPageEl=m[0],g&&w.length?r.currentNavbarEl=w[0]:delete r.currentNavbarEl,r.currentRoute=s.route);const P=s.route.url;s.history&&(((s.reloadCurrent||k&&h)&&r.history.length)>0||s.replaceState?r.history[r.history.length-(s.reloadPrevious?2:1)]=P:s.reloadPrevious?r.history[r.history.length-2]=P:s.reloadAll?r.history=[P]:r.history.push(P)),r.saveHistory();const A=m.parents(i.a).length>0,M=m[0].f7Component;if(s.reloadPrevious?(M&&!A?M.$mount(t=>{d(t).insertBefore(b)}):m.insertBefore(b),g&&w.length&&(w.find(".title-large").length&&w.addClass("navbar-large"),C.length?w.insertBefore(C):(r.$navbarsEl.parents(i.a).length||r.$el.prepend(r.$navbarsEl),x.append(w)))):(b.next(".page")[0]!==m[0]&&(M&&!A?M.$mount(t=>{v.append(t)}):v.append(m[0])),g&&w.length&&(w.find(".title-large").length&&w.addClass("navbar-large"),r.$navbarsEl.parents(i.a).length||r.$el.prepend(r.$navbarsEl),x.append(w[0]))),A?s.route&&s.route.route&&s.route.route.keepAlive&&!m[0].f7PageMounted&&(m[0].f7PageMounted=!0,r.pageCallback("mounted",m,w,O,y?O:"current",s,b)):r.pageCallback("mounted",m,w,O,y?O:"current",s,b),(s.reloadCurrent||k)&&b.length>0?r.params.stackPages&&r.initialPages.indexOf(b[0])>=0?(b.addClass("stacked"),b.trigger("page:stack"),r.emit("pageStack",b[0]),g&&C.addClass("stacked")):(r.pageCallback("beforeOut",b,C,"current",void 0,s),r.pageCallback("afterOut",b,C,"current",void 0,s),r.pageCallback("beforeRemove",b,C,"current",void 0,s),r.removePage(b),g&&C&&C.length&&r.removeNavbar(C)):s.reloadAll?b.each((t,e)=>{const n=d(e),i=d(o.navbar.getElByPage(n));r.params.stackPages&&r.initialPages.indexOf(n[0])>=0?(n.addClass("stacked"),n.trigger("page:stack"),r.emit("pageStack",n[0]),g&&i.addClass("stacked")):(n.hasClass("page-current")&&(r.pageCallback("beforeOut",b,C,"current",void 0,s),r.pageCallback("afterOut",b,C,"current",void 0,s)),r.pageCallback("beforeRemove",n,C&&C.eq(t),"previous",void 0,s),r.removePage(n),g&&i.length&&r.removeNavbar(i))}):s.reloadPrevious&&(r.params.stackPages&&r.initialPages.indexOf(b[0])>=0?(b.addClass("stacked"),b.trigger("page:stack"),r.emit("pageStack",b[0]),g&&C.addClass("stacked")):(r.pageCallback("beforeRemove",b,C,"previous",void 0,s),r.removePage(b),g&&C&&C.length&&r.removeNavbar(C))),s.route.route.tab&&r.tabLoad(s.route.route.tab,_.extend({},s,{history:!1,pushState:!1})),l&&a.checkMasterDetailBreakpoint(),r.pageCallback("init",m,w,O,y?O:"current",s,b),s.reloadCurrent||s.reloadAll||k)return r.allowPageChange=!0,r.pageCallback("beforeIn",m,w,O,"current",s),m.removeAttr("aria-hidden"),g&&w&&w.removeAttr("aria-hidden"),r.pageCallback("afterIn",m,w,O,"current",s),s.reloadCurrent&&s.clearPreviousHistory&&r.clearPreviousHistory(),k&&(r.setPagePosition(d(u),"previous"),u.f7Page&&u.f7Page.navbarEl&&r.setNavbarPosition(d(u.f7Page.navbarEl),"previous")),r;if(s.reloadPrevious)return r.allowPageChange=!0,r;function L(){r.setPagePosition(m,"current",!1),r.setPagePosition(b,"previous",!b.hasClass("page-master")),g&&(r.setNavbarPosition(w,"current",!1),r.setNavbarPosition(C,"previous",!C.hasClass("navbar-master"))),r.allowPageChange=!0,r.pageCallback("afterOut",b,C,"current","previous",s),r.pageCallback("afterIn",m,w,"next","current",s);let t=(r.params.preloadPreviousPage||r.params[o.theme+"SwipeBack"])&&!c;t||(m.hasClass("smart-select-page")||m.hasClass("photo-browser-page")||m.hasClass("autocomplete-page")||m.hasClass("color-picker-page"))&&(t=!0),t||(r.params.stackPages?(b.addClass("stacked"),b.trigger("page:stack"),r.emit("pageStack",b[0]),g&&C.addClass("stacked")):m.attr("data-name")&&"smart-select-page"===m.attr("data-name")||(r.pageCallback("beforeRemove",b,C,"previous",void 0,s),r.removePage(b),g&&C.length&&r.removeNavbar(C))),s.clearPreviousHistory&&r.clearPreviousHistory(),r.emit("routeChanged",r.currentRoute,r.previousRoute,r),r.params.pushState&&V.clearRouterQueue()}function I(){r.setPagePosition(b,"current",!1),r.setPagePosition(m,"next",!1),g&&(r.setNavbarPosition(C,"current",!1),r.setNavbarPosition(w,"next",!1))}if(r.pageCallback("beforeOut",b,C,"current","previous",s),r.pageCallback("beforeIn",m,w,"next","current",s),!s.animate||c&&o.width>=r.params.masterDetailBreakpoint)L();else{const t=r.params[r.app.theme+"PageLoadDelay"];let e=r.params.transition;s.transition&&(e=s.transition),!e&&r.currentRoute&&r.currentRoute.route&&(e=r.currentRoute.route.transition),!e&&r.currentRoute&&r.currentRoute.route.options&&(e=r.currentRoute.route.options.transition),e&&(m[0].f7PageTransition=e),t?setTimeout(()=>{I(),r.animate(b,m,C,w,"forward",e,()=>{L()})},t):(I(),r.animate(b,m,C,w,"forward",e,()=>{L()}))}return r},et.prototype.load=function(t={},e={},r){const n=this;if(!n.allowPageChange&&!r)return n;const i=t,o=e,{url:a,content:s,el:l,pageName:c,template:u,templateUrl:h,component:p,componentUrl:f}=i;if(!o.reloadCurrent&&o.route&&o.route.route&&o.route.route.parentPath&&n.currentRoute.route&&n.currentRoute.route.parentPath===o.route.route.parentPath){if(o.route.url===n.url)return n.allowPageChange=!0,!1;let t=Object.keys(o.route.params).length===Object.keys(n.currentRoute.params).length;if(t&&Object.keys(o.route.params).forEach(e=>{e in n.currentRoute.params&&n.currentRoute.params[e]===o.route.params[e]||(t=!1)}),t)return!!o.route.route.tab&&n.tabLoad(o.route.route.tab,o);if(!t&&o.route.route.tab&&n.currentRoute.route.tab&&n.currentRoute.parentPath===o.route.parentPath)return n.tabLoad(o.route.route.tab,o)}if(o.route&&o.route.url&&n.url===o.route.url&&!o.reloadCurrent&&!o.reloadPrevious&&!n.params.allowDuplicateUrls)return n.allowPageChange=!0,!1;function d(t,e){return n.forward(t,_.extend(o,e))}function g(){return n.allowPageChange=!0,n}if(!o.route&&a&&(o.route=n.parseRouteUrl(a),_.extend(o.route,{route:{url:a,path:a}})),(a||h||f||p)&&(n.allowPageChange=!1),s)n.forward(n.getPageEl(s),o);else if(u||h)try{n.pageTemplateLoader(u,h,o,d,g)}catch(t){throw n.allowPageChange=!0,t}else if(l)n.forward(n.getPageEl(l),o);else if(c)n.forward(n.$el.children(`.page[data-name="${c}"]`).eq(0),o);else if(p||f)try{n.pageComponentLoader(n.el,p,f,o,d,g)}catch(t){throw n.allowPageChange=!0,t}else a&&(n.xhr&&(n.xhr.abort(),n.xhr=!1),n.xhrRequest(a,o).then(t=>{n.forward(n.getPageEl(t),o)}).catch(()=>{n.allowPageChange=!0}));return n},et.prototype.navigate=function(t,e={}){const r=this;if(r.swipeBackActive)return r;let n,i,o,a,s,l,c;if("string"==typeof t?n=t:(n=t.url,i=t.route,o=t.name,a=t.path,s=t.query,l=t.params),o||a)return n=r.generateUrl({path:a,name:o,params:l,query:s}),n?r.navigate(n,e):r;const u=r.app;if(Q(r,"navigate"),"#"===n||""===n)return r;let h=n.replace("./","");if("/"!==h[0]&&0!==h.indexOf("#")){const t=r.currentRoute.parentPath||r.currentRoute.path;h=((t?t+"/":"/")+h).replace("///","/").replace("//","/")}if(c=i?_.extend(r.parseRouteUrl(h),{route:_.extend({},i)}):r.findMatchingRoute(h),!c)return r;if(c.route&&c.route.viewName){const n=c.route.viewName,i=u.views[n];if(!i)throw new Error(`Framework7: There is no View with "${n}" name that was specified in this route`);if(i!==r.view)return i.router.navigate(t,e)}if(c.route.redirect)return K.call(r,"navigate",c,e);const p={};function f(){let t=!1;function e(t,e){r.allowPageChange=!1;let n=!1;e&&e.context&&(c.context?c.context=_.extend({},c.context,e.context):c.context=e.context,p.route.context=c.context),"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(i=>{if(t[i]){n=!0;const o=_.extend({},c,{route:t});r.allowPageChange=!0,r.modalLoad(i,o,_.extend(p,e))}}),n||r.load(t,_.extend(p,e),!0)}function n(){r.allowPageChange=!0}"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(e=>{c.route[e]&&!t&&(t=!0,r.modalLoad(e,c,p))}),c.route.keepAlive&&c.route.keepAliveData&&(r.load({el:c.route.keepAliveData.pageEl},p,!1),t=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach(e=>{c.route[e]&&!t&&(t=!0,r.load({[e]:c.route[e]},p,!1))}),t||(c.route.async&&(r.allowPageChange=!1,c.route.async.call(r,p.route,r.currentRoute,e,n)),c.route.asyncComponent&&tt(r,c.route.asyncComponent,e,n))}function d(){r.allowPageChange=!0}if(c.route.options?_.extend(p,c.route.options,e):_.extend(p,e),p.route=c,p&&p.context&&(c.context=p.context,p.route.context=p.context),r.params.masterDetailBreakpoint>0&&c.route.masterRoute){let n=!0,i=!1;if(r.currentRoute&&r.currentRoute.route&&(!r.currentRoute.route.master||r.currentRoute.route!==c.route.masterRoute&&r.currentRoute.route.path!==c.route.masterRoute.path||(n=!1),!r.currentRoute.route.masterRoute||r.currentRoute.route.masterRoute!==c.route.masterRoute&&r.currentRoute.route.masterRoute.path!==c.route.masterRoute.path||(n=!1,i=!0)),n||i&&e.reloadAll)return r.navigate({path:c.route.masterRoute.path,params:c.params||{}},{animate:!1,reloadAll:e.reloadAll,reloadCurrent:e.reloadCurrent,reloadPrevious:e.reloadPrevious,pushState:!e.initial,history:!e.initial,once:{pageAfterIn(){r.navigate(t,_.extend({},e,{animate:!1,reloadAll:!1,reloadCurrent:!1,reloadPrevious:!1,history:!e.initial,pushState:!e.initial}))}}}),r}return J.call(r,c,r.currentRoute,()=>{c.route.modules?u.loadModules(Array.isArray(c.route.modules)?c.route.modules:[c.route.modules]).then(()=>{f()}).catch(()=>{d()}):f()},()=>{d()}),r},et.prototype.refreshPage=function(){return Q(this,"refreshPage"),this.navigate(this.currentRoute.url,{ignoreCache:!0,reloadCurrent:!0})},et.prototype.tabLoad=function(t,e={}){const r=this,n=_.extend({animate:r.params.animate,pushState:!0,history:!0,parentPageEl:null,preload:!1,on:{}},e);let i,o;n.route&&(n.preload||n.route===r.currentRoute||(o=r.previousRoute,r.currentRoute=n.route),n.preload?(i=n.route,o=r.currentRoute):(i=r.currentRoute,o||(o=r.previousRoute)),r.params.pushState&&n.pushState&&!n.reloadPrevious&&V.replace(r.view.id,{url:n.route.url},(r.params.pushStateRoot||"")+r.params.pushStateSeparator+n.route.url),n.history&&(r.history[Math.max(r.history.length-1,0)]=n.route.url,r.saveHistory()));const a=d(n.parentPageEl||r.currentPageEl);let s;s=a.length&&a.find("#"+t.id).length?a.find("#"+t.id).eq(0):r.view.selector?`${r.view.selector} #${t.id}`:"#"+t.id;const l=r.app.tab.show({tabEl:s,animate:n.animate,tabRoute:n.route}),{$newTabEl:c,$oldTabEl:u,animated:h,onTabsChanged:p}=l;if(c&&c.parents(".page").length>0&&n.route){const t=c.parents(".page")[0].f7Page;t&&n.route&&(t.route=n.route)}if(c[0].f7RouterTabLoaded)return u&&u.length?(h?p(()=>{r.emit("routeChanged",r.currentRoute,r.previousRoute,r)}):r.emit("routeChanged",r.currentRoute,r.previousRoute,r),r):r;function f(e,n){const{url:i,content:o,el:a,template:s,templateUrl:l,component:f,componentUrl:g}=e;function v(e){r.allowPageChange=!0,e&&("string"==typeof e?c.html(e):(c.html(""),e.f7Component?e.f7Component.$mount(t=>{c.append(t)}):c.append(e)),c[0].f7RouterTabLoaded=!0,function(e){r.removeThemeElements(c);let n=c;"string"!=typeof e&&(n=d(e)),n.trigger("tab:init tab:mounted",t),r.emit("tabInit tabMounted",c[0],t),u&&u.length&&(h?p(()=>{r.emit("routeChanged",r.currentRoute,r.previousRoute,r),r.params.unloadTabContent&&r.tabRemove(u,c,t)}):(r.emit("routeChanged",r.currentRoute,r.previousRoute,r),r.params.unloadTabContent&&r.tabRemove(u,c,t)))}(e))}function m(){return r.allowPageChange=!0,r}if(o)v(o);else if(s||l)try{r.tabTemplateLoader(s,l,n,v,m)}catch(t){throw r.allowPageChange=!0,t}else if(a)v(a);else if(f||g)try{r.tabComponentLoader(c[0],f,g,n,v,m)}catch(t){throw r.allowPageChange=!0,t}else i&&(r.xhr&&(r.xhr.abort(),r.xhr=!1),r.xhrRequest(i,n).then(t=>{v(t)}).catch(()=>{r.allowPageChange=!0}))}let g;function v(t,e){f(t,_.extend(n,e))}function m(){r.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach(e=>{t[e]&&(g=!0,f({[e]:t[e]},n))}),t.async?t.async.call(r,i,o,v,m):t.asyncComponent?tt(r,t.asyncComponent,v,m):g||(r.allowPageChange=!0),r},et.prototype.tabRemove=function(t,e,r){let n;t[0]&&(t[0].f7RouterTabLoaded=!1,delete t[0].f7RouterTabLoaded),t.children().each((t,e)=>{e.f7Component&&(n=!0,d(e).trigger("tab:beforeremove",r),e.f7Component.$destroy())}),n||t.trigger("tab:beforeremove",r),this.emit("tabBeforeRemove",t[0],e[0],r),this.removeTabContent(t[0],r)},et.prototype.modalLoad=function(t,e,r={}){const n=this,i=n.app,o="panel"===t,a=o?"panel":"modal",s=_.extend({animate:n.params.animate,pushState:!0,history:!0,on:{}},r),l=_.extend({},e.route[t]),c=e.route;function u(){const r=i[t].create(l);c.modalInstance=r;const u=r.el;function h(){r.close()}r.on(a+"Open",()=>{u||(n.removeThemeElements(r.el),r.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,r),n.emit(`${o?"":"modalInit"} ${t}Init ${t}Mounted`,r.el,e,r)),n.once("swipeBackMove",h)}),r.on(a+"Close",()=>{n.off("swipeBackMove",h),r.closeByRouter||n.back()}),r.on(a+"Closed",()=>{r.$el.trigger(t.toLowerCase()+":beforeremove",e,r),r.emit(`${o?"":"modalBeforeRemove "}${t}BeforeRemove`,r.el,e,r);const i=r.el.f7Component;i&&i.$destroy(),_.nextTick(()=>{(i||l.component)&&n.removeModal(r.el),r.destroy(),delete r.route,delete c.modalInstance})}),s.route&&(n.params.pushState&&s.pushState&&V.push(n.view.id,{url:s.route.url,modal:t},(n.params.pushStateRoot||"")+n.params.pushStateSeparator+s.route.url),s.route!==n.currentRoute&&(r.route=_.extend(s.route,{modal:r}),n.currentRoute=r.route),s.history&&(n.history.push(s.route.url),n.saveHistory())),u&&(n.removeThemeElements(r.el),r.$el.trigger(`${t.toLowerCase()}:init ${t.toLowerCase()}:mounted`,e,r),n.emit(`${a}Init ${t}Init ${t}Mounted`,r.el,e,r)),r.open()}function h(t,e){const{url:r,content:o,template:a,templateUrl:s,component:c,componentUrl:h}=t;function p(t){t&&("string"==typeof t?l.content=t:t.f7Component?t.f7Component.$mount(t=>{l.el=t,i.root.append(t)}):l.el=t,u())}function f(){return n.allowPageChange=!0,n}if(o)p(o);else if(a||s)try{n.modalTemplateLoader(a,s,e,p,f)}catch(t){throw n.allowPageChange=!0,t}else if(c||h)try{n.modalComponentLoader(i.root[0],c,h,e,p,f)}catch(t){throw n.allowPageChange=!0,t}else r?(n.xhr&&(n.xhr.abort(),n.xhr=!1),n.xhrRequest(r,e).then(t=>{l.content=t,u()}).catch(()=>{n.allowPageChange=!0})):u()}let p;function f(t,e){h(t,_.extend(s,e))}function d(){n.allowPageChange=!0}return"url content component el componentUrl template templateUrl".split(" ").forEach(t=>{l[t]&&!p&&(p=!0,h({[t]:l[t]},s))}),p||"actions"!==t||u(),l.async&&l.async.call(n,s.route,n.currentRoute,f,d),l.asyncComponent&&tt(n,l.asyncComponent,f,d),n},et.prototype.modalRemove=function(t){_.extend(t,{closeByRouter:!0}),t.close()},et.prototype.backward=function(t,e){const r=this,n=d(t),o=r.app,a=r.view,s=_.extend({animate:r.params.animate,pushState:!0,replaceState:!1},e),l=r.params.masterDetailBreakpoint>0,c=l&&s.route&&s.route.route&&!0===s.route.route.master;let u,h;const p=r.dynamicNavbar,f=n,g=r.$el.children(".page-current"),v=l&&g.hasClass("page-master");let m,y,x,w,C,E;if(f.length&&r.removeThemeElements(f),p&&(y=f.children(".navbar"),m=r.$navbarsEl,0===y.length&&f[0]&&f[0].f7Page&&(y=f[0].f7Page.$navbarEl),x=m.find(".navbar-current")),r.allowPageChange=!1,0===f.length||0===g.length)return r.allowPageChange=!0,r;if(r.removeThemeElements(f),s.route&&s.route.route&&s.route.route.keepAlive&&!s.route.route.keepAliveData&&(s.route.route.keepAliveData={pageEl:n[0]}),l){const t=r.$el.children(".page:not(.stacked)").filter((t,e)=>e!==f[0]);for(let e=0;e<t.length;e+=1)u||!t[e].classList.contains("page-master")||(u=t[e]);w=!c&&u&&r.history.indexOf(s.route.url)>r.history.indexOf(u.f7Page.route.url),!w&&!c&&u&&u.f7Page&&s.route.route.masterRoute&&(w=s.route.route.masterRoute.path===u.f7Page.route.route.path)}if(w&&u&&u.f7Page&&(C=r.history.indexOf(s.route.url)-r.history.indexOf(u.f7Page.route.url)==1),f.addClass(`page-previous${c?" page-master":""}${w?" page-master-detail":""}${C?" page-master-detail-root":""}`).removeClass("stacked").removeAttr("aria-hidden").trigger("page:unstack").trigger("page:position",{position:"previous"}),r.emit("pageUnstack",f[0]),r.emit("pagePosition",f[0],"previous"),(c||w)&&(f.trigger("page:role",{role:c?"master":"detail",root:!!C}),r.emit("pageRole",f[0],{role:c?"master":"detail",detailRoot:!!C})),p&&y.length>0&&(y.addClass(`navbar-previous${c?" navbar-master":""}${w?" navbar-master-detail":""}${C?" navbar-master-detail-root":""}`).removeClass("stacked").removeAttr("aria-hidden"),y.trigger("navbar:position",{position:"previous"}),r.emit("navbarPosition",y[0],"previous"),(c||C)&&r.emit("navbarRole",y[0],{role:c?"master":"detail",detailRoot:!!C})),s.force&&(g.prev(".page-previous:not(.stacked)").length>0||0===g.prev(".page-previous").length))if(r.history.indexOf(s.route.url)>=0?(E=r.history.length-r.history.indexOf(s.route.url)-1,r.history=r.history.slice(0,r.history.indexOf(s.route.url)+2),a.history=r.history):r.history[[r.history.length-2]]?r.history[r.history.length-2]=s.route.url:r.history.unshift(r.url),E&&r.params.stackPages)g.prevAll(".page-previous").each((t,e)=>{const n=d(e);let i;p&&(i=d(o.navbar.getElByPage(n))),n[0]!==f[0]&&n.index()>f.index()&&(r.initialPages.indexOf(n[0])>=0?(n.addClass("stacked"),n.trigger("page:stack"),r.emit("pageStack",n[0]),p&&i.addClass("stacked")):(r.pageCallback("beforeRemove",n,i,"previous",void 0,s),n[0]===u&&(h=!0),r.removePage(n),p&&i.length>0&&r.removeNavbar(i)))});else{const t=g.prev(".page-previous:not(.stacked)");let e;p&&(e=d(o.navbar.getElByPage(t))),r.params.stackPages&&r.initialPages.indexOf(t[0])>=0?(t.addClass("stacked"),t.trigger("page:stack"),r.emit("pageStack",t[0]),e.addClass("stacked")):t.length>0&&(r.pageCallback("beforeRemove",t,e,"previous",void 0,s),t[0]===u&&(h=!0),r.removePage(t),p&&e.length&&r.removeNavbar(e))}const S=f.parents(i.a).length>0,T=f[0].f7Component;function k(){0===f.next(g).length&&(!S&&T?T.$mount(t=>{d(t).insertBefore(g)}):f.insertBefore(g)),p&&y.length&&(y.find(".title-large").length&&y.addClass("navbar-large"),y.insertBefore(x),x.length>0?y.insertBefore(x):(r.$navbarsEl.parents(i.a).length||r.$el.prepend(r.$navbarsEl),m.append(y))),S?s.route&&s.route.route&&s.route.route.keepAlive&&!f[0].f7PageMounted&&(f[0].f7PageMounted=!0,r.pageCallback("mounted",f,y,"previous","current",s,g)):r.pageCallback("mounted",f,y,"previous","current",s,g)}if(s.preload){k(),s.route.route.tab&&r.tabLoad(s.route.route.tab,_.extend({},s,{history:!1,pushState:!1,preload:!0})),c&&(f.removeClass("page-master-stacked").trigger("page:masterunstack"),r.emit("pageMasterUnstack",f[0]),p&&(d(o.navbar.getElByPage(f)).removeClass("navbar-master-stacked"),r.emit("navbarMasterUnstack",o.navbar.getElByPage(f)))),r.pageCallback("init",f,y,"previous","current",s,g);const t=f.prevAll(".page-previous:not(.stacked):not(.page-master)");return t.length>0&&t.each((t,e)=>{const n=d(e);let i;p&&(i=d(o.navbar.getElByPage(n))),r.params.stackPages&&r.initialPages.indexOf(e)>=0?(n.addClass("stacked"),n.trigger("page:stack"),r.emit("pageStack",n[0]),p&&i.addClass("stacked")):(r.pageCallback("beforeRemove",n,i,"previous",void 0),r.removePage(n),p&&i.length&&r.removeNavbar(i))}),r.allowPageChange=!0,r}if(!(b.a.ie||b.a.edge||b.a.firefox&&!b.a.ios)&&r.params.pushState&&s.pushState)if(s.replaceState){const t=r.params.pushStateRoot||"";V.replace(a.id,{url:s.route.url},t+r.params.pushStateSeparator+s.route.url)}else E?V.go(-E):V.back();if(s.replaceState?r.history[r.history.length-1]=s.route.url:(1===r.history.length&&r.history.unshift(r.url),r.history.pop()),r.saveHistory(),r.currentPageEl=f[0],p&&y.length?r.currentNavbarEl=y[0]:delete r.currentNavbarEl,r.currentRoute=s.route,(b.a.ie||b.a.edge||b.a.firefox&&!b.a.ios)&&r.params.pushState&&s.pushState)if(s.replaceState){const t=r.params.pushStateRoot||"";V.replace(a.id,{url:s.route.url},t+r.params.pushStateSeparator+s.route.url)}else E?V.go(-E):V.back();function R(){r.setPagePosition(f,"current",!1),r.setPagePosition(g,"next",!0),p&&(r.setNavbarPosition(y,"current",!1),r.setNavbarPosition(x,"next",!0)),r.pageCallback("afterOut",g,x,"current","next",s),r.pageCallback("afterIn",f,y,"previous","current",s),r.params.stackPages&&r.initialPages.indexOf(g[0])>=0?(g.addClass("stacked"),g.trigger("page:stack"),r.emit("pageStack",g[0]),p&&x.addClass("stacked")):(r.pageCallback("beforeRemove",g,x,"next",void 0,s),r.removePage(g),p&&x.length&&r.removeNavbar(x)),r.allowPageChange=!0,r.emit("routeChanged",r.currentRoute,r.previousRoute,r);(r.params.preloadPreviousPage||r.params[o.theme+"SwipeBack"])&&r.history[r.history.length-2]&&!c&&r.back(r.history[r.history.length-2],{preload:!0}),r.params.pushState&&V.clearRouterQueue()}if(k(),s.route.route.tab&&r.tabLoad(s.route.route.tab,_.extend({},s,{history:!1,pushState:!1})),l&&(v||h)&&a.checkMasterDetailBreakpoint(!1),r.pageCallback("init",f,y,"previous","current",s,g),r.pageCallback("beforeOut",g,x,"current","next",s),r.pageCallback("beforeIn",f,y,"previous","current",s),!s.animate||v&&o.width>=r.params.masterDetailBreakpoint)R();else{let t=r.params.transition;g[0]&&g[0].f7PageTransition&&(t=g[0].f7PageTransition,delete g[0].f7PageTransition),s.transition&&(t=s.transition),!t&&r.previousRoute&&r.previousRoute.route&&(t=r.previousRoute.route.transition),!t&&r.previousRoute&&r.previousRoute.route&&r.previousRoute.route.options&&(t=r.previousRoute.route.options.transition),r.setPagePosition(g,"current"),r.setPagePosition(f,"previous",!1),p&&(r.setNavbarPosition(x,"current"),r.setNavbarPosition(y,"previous",!1)),r.animate(g,f,x,y,"backward",t,()=>{R()})}return r},et.prototype.loadBack=function(t,e,r){const n=this;if(!n.allowPageChange&&!r)return n;const i=t,o=e,{url:a,content:s,el:l,pageName:c,template:u,templateUrl:h,component:p,componentUrl:f}=i;if(o.route.url&&n.url===o.route.url&&!o.reloadCurrent&&!o.reloadPrevious&&!n.params.allowDuplicateUrls)return!1;function d(t,e){return n.backward(t,_.extend(o,e))}function g(){return n.allowPageChange=!0,n}if(!o.route&&a&&(o.route=n.parseRouteUrl(a)),(a||h||f)&&(n.allowPageChange=!1),s)n.backward(n.getPageEl(s),o);else if(u||h)try{n.pageTemplateLoader(u,h,o,d,g)}catch(t){throw n.allowPageChange=!0,t}else if(l)n.backward(n.getPageEl(l),o);else if(c)n.backward(n.$el.children(`.page[data-name="${c}"]`).eq(0),o);else if(p||f)try{n.pageComponentLoader(n.el,p,f,o,d,g)}catch(t){throw n.allowPageChange=!0,t}else a&&(n.xhr&&(n.xhr.abort(),n.xhr=!1),n.xhrRequest(a,o).then(t=>{n.backward(n.getPageEl(t),o)}).catch(()=>{n.allowPageChange=!0}));return n},et.prototype.back=function(...t){const e=this;if(e.swipeBackActive)return e;let r,n,i;"object"==typeof t[0]?n=t[0]||{}:(r=t[0],n=t[1]||{});const{name:o,params:a,query:s}=n;if(o)return r=e.generateUrl({name:o,params:a,query:s}),r?e.back(r,_.extend({},n,{name:null,params:null,query:null})):e;const l=e.app;Q(e,"back");let c,u=e.currentRoute.modal;if(u||"popup popover sheet loginScreen actions customModal panel".split(" ").forEach(t=>{e.currentRoute.route[t]&&(u=!0,c=t)}),u){const t=e.currentRoute.modal||e.currentRoute.route.modalInstance||l[c].get(),i=e.history[e.history.length-2];let o;if(t&&t.$el){const r=t.$el.prevAll(".modal-in");if(r.length&&r[0].f7Modal){const t=r[0];e.$el.parents(t).length||(o=t.f7Modal.route)}}if(o||(o=e.findMatchingRoute(i)),!o&&i&&(o={url:i,path:i.split("?")[0],query:_.parseUrlQuery(i),route:{path:i.split("?")[0],url:i}}),!(r&&0!==r.replace(/[# ]/g,"").trim().length||o&&t))return e;const a=n.force&&o&&r;if(o&&t){const i=b.a.ie||b.a.edge||b.a.firefox&&!b.a.ios,s=e.params.pushState&&!1!==n.pushState;s&&!i&&V.back(),e.currentRoute=o,e.history.pop(),e.saveHistory(),s&&i&&V.back(),e.modalRemove(t),a&&e.navigate(r,{reloadCurrent:!0})}else t&&(e.modalRemove(t),r&&e.navigate(r,{reloadCurrent:!0}));return e}let h,p=e.$el.children(".page-current").prevAll(".page-previous:not(.page-master)").eq(0);if(e.params.masterDetailBreakpoint>0){const t=[];e.$el.children(".page").each((e,r)=>{t.push(r.className)});const r=e.$el.children(".page-current").prevAll(".page-master").eq(0);if(r.length){const t=e.history[e.history.length-2],i=e.findMatchingRoute(t);i&&r[0].f7Page&&i.route===r[0].f7Page.route.route&&(p=r,n.preload||(h=l.width>=e.params.masterDetailBreakpoint))}}if(!n.force&&p.length&&!h){if(e.params.pushState&&p[0].f7Page&&e.history[e.history.length-2]!==p[0].f7Page.route.url)return e.back(e.history[e.history.length-2],_.extend(n,{force:!0})),e;const t=p[0].f7Page.route;return J.call(e,t,e.currentRoute,()=>{e.loadBack({el:p},_.extend(n,{route:t}))},()=>{}),e}if("#"===r&&(r=void 0),r&&"/"!==r[0]&&0!==r.indexOf("#")&&(r=((e.path||"/")+r).replace("//","/")),!r&&e.history.length>1&&(r=e.history[e.history.length-2]),h&&!n.force&&e.history[e.history.length-3])return e.back(e.history[e.history.length-3],_.extend({},n||{},{force:!0,animate:!1}));if(h&&!n.force)return e;if(i=e.findMatchingRoute(r),i||r&&(i={url:r,path:r.split("?")[0],query:_.parseUrlQuery(r),route:{path:r.split("?")[0],url:r}}),!i)return e;if(i.route.redirect)return K.call(e,"back",i,n);const f={};let d;if(i.route.options?_.extend(f,i.route.options,n):_.extend(f,n),f.route=i,f&&f.context&&(i.context=f.context,f.route.context=f.context),f.force&&e.params.stackPages&&(e.$el.children(".page-previous.stacked").each((t,r)=>{r.f7Page&&r.f7Page.route&&r.f7Page.route.url===i.url&&(d=!0,e.loadBack({el:r},f))}),d))return e;function g(){let t=!1;function r(t,r){e.allowPageChange=!1,r&&r.context&&(i.context?i.context=_.extend({},i.context,r.context):i.context=r.context,f.route.context=i.context),e.loadBack(t,_.extend(f,r),!0)}function n(){e.allowPageChange=!0}i.route.keepAlive&&i.route.keepAliveData&&(e.loadBack({el:i.route.keepAliveData.pageEl},f),t=!0),"url content component pageName el componentUrl template templateUrl".split(" ").forEach(r=>{i.route[r]&&!t&&(t=!0,e.loadBack({[r]:i.route[r]},f))}),t||(i.route.async&&(e.allowPageChange=!1,i.route.async.call(e,i,e.currentRoute,r,n)),i.route.asyncComponent&&tt(e,i.route.asyncComponent,r,n))}function v(){e.allowPageChange=!0}return f.preload?g():J.call(e,i,e.currentRoute,()=>{i.route.modules?l.loadModules(Array.isArray(i.route.modules)?i.route.modules:[i.route.modules]).then(()=>{g()}).catch(()=>{v()}):g()},()=>{v()}),e},et.prototype.clearPreviousHistory=function(){Q(this,"clearPreviousHistory");const t=this.history[this.history.length-1];!function(t){Q(t,"clearPreviousPages");const e=t.app,r=t.dynamicNavbar;t.$el.children(".page").filter((e,r)=>!(!t.currentRoute||!t.currentRoute.modal&&!t.currentRoute.panel)||r!==t.currentPageEl).each((n,i)=>{const o=d(i),a=d(e.navbar.getElByPage(o));t.params.stackPages&&t.initialPages.indexOf(o[0])>=0?(o.addClass("stacked"),r&&a.addClass("stacked")):(t.pageCallback("beforeRemove",o,a,"previous",void 0,{}),t.removePage(o),r&&a.length&&t.removeNavbar(a))})}(this),this.history=[t],this.view.history=[t],this.saveHistory()};var rt=et,nt={name:"router",static:{Router:rt},instance:{cache:{xhr:[],templates:[],components:[]}},create(){const t=this;t.app?t.params.router&&(t.router=new rt(t.app,t)):t.router=new rt(t)}};var it=function(t){const e=t.app;if(t.resizableInitialized)return;_.extend(t,{resizable:!0,resizableWidth:null,resizableInitialized:!0});const r=d("html"),{$el:n}=t;if(!n)return;let i,o,a;const s={};let l,c,u,h;function p(t){if(!t)return null;if(t.indexOf("%")>=0||t.indexOf("vw")>=0)return parseInt(t,10)/100*e.width;const r=parseInt(t,10);return Number.isNaN(r)?null:r}function f(e){if(!(t.resizable&&n.hasClass("view-resizable")&&n.hasClass("view-master-detail")))return;s.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,s.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,a=!1,o=!0;const r=n.children(".page-master");u=p(r.css("min-width")),h=p(r.css("max-width"))}function g(p){if(!o)return;p.f7PreventSwipePanel=!0;const f="touchmove"===p.type?p.targetTouches[0].pageX:p.pageX;a||(c=i[0].offsetLeft+i[0].offsetWidth,n.addClass("view-resizing"),r.css("cursor","col-resize")),a=!0,p.preventDefault(),l=f-s.x;let d=c+l;u&&!Number.isNaN(u)&&(d=Math.max(d,u)),h&&!Number.isNaN(h)&&(d=Math.min(d,h)),d=Math.min(Math.max(d,0),e.width),t.resizableWidth=d,r[0].style.setProperty("--f7-page-master-width",d+"px"),n.trigger("view:resize",d),t.emit("local::resize viewResize",t,d)}function v(){if(d("html").css("cursor",""),!o||!a)return o=!1,void(a=!1);o=!1,a=!1,r[0].style.setProperty("--f7-page-master-width",t.resizableWidth+"px"),n.removeClass("view-resizing")}function m(){t.resizableWidth&&(u=p(i.css("min-width")),h=p(i.css("max-width")),u&&!Number.isNaN(u)&&t.resizableWidth<u&&(t.resizableWidth=Math.max(t.resizableWidth,u)),h&&!Number.isNaN(h)&&t.resizableWidth>h&&(t.resizableWidth=Math.min(t.resizableWidth,h)),t.resizableWidth=Math.min(Math.max(t.resizableWidth,0),e.width),r[0].style.setProperty("--f7-page-master-width",t.resizableWidth+"px"))}i=t.$el.children(".view-resize-handler"),i.length||(t.$el.append('<div class="view-resize-handler"></div>'),i=t.$el.children(".view-resize-handler")),t.$resizeHandlerEl=i,n.addClass("view-resizable");const y=!!I.a.passiveListener&&{passive:!0};t.$el.on(e.touchEvents.start,".view-resize-handler",f,y),e.on("touchmove:active",g),e.on("touchend:passive",v),e.on("resize",m),t.on("beforeOpen",m),t.once("viewDestroy",()=>{n.removeClass("view-resizable"),t.$resizeHandlerEl.remove(),t.$el.off(e.touchEvents.start,".view-resize-handler",f,y),e.off("touchmove:active",g),e.off("touchend:passive",v),e.off("resize",m),t.off("beforeOpen",m)})};class ot extends w{constructor(t,e,r={}){super(r,[t]);const n=t,i=d(e),o=this;if(0===i.length){let t="Framework7: can't create a View instance because ";throw t+="string"==typeof e?`the selector "${e}" didn't match any element`:"el must be an HTMLElement or Dom7 object",new Error(t)}let a,s,l;return o.params=_.extend({routes:[],routesAdd:[]},n.params.view,r),o.params.routes.length>0?o.routes=o.params.routes:o.routes=[].concat(n.routes,o.params.routesAdd),a="string"==typeof e?e:(i.attr("id")?"#"+i.attr("id"):"")+(i.attr("class")?"."+i.attr("class").replace(/ /g,".").replace(".active",""):""),"ios"===n.theme&&o.params.iosDynamicNavbar&&(s=i.children(".navbars").eq(0),0===s.length&&(s=d('<div class="navbars"></div>'))),_.extend(!1,o,{app:n,$el:i,el:i[0],name:o.params.name,main:o.params.main||i.hasClass("view-main"),$navbarsEl:s,navbarsEl:s?s[0]:void 0,selector:a,history:[],scrollHistory:{}}),i[0].f7View=o,o.useModules(),n.views.push(o),o.main&&(n.views.main=o),o.name&&(n.views[o.name]=o),o.index=n.views.indexOf(o),l=o.name?"view_"+o.name:o.main?"view_main":"view_"+o.index,o.id=l,n.initialized?o.init():n.on("init",()=>{o.init()}),o}destroy(){let t=this;const e=t.app;t.$el.trigger("view:beforedestroy"),t.emit("local::beforeDestroy viewBeforeDestroy",t),e.off("resize",t.checkMasterDetailBreakpoint),t.main?(e.views.main=null,delete e.views.main):t.name&&(e.views[t.name]=null,delete e.views[t.name]),t.$el[0].f7View=null,delete t.$el[0].f7View,e.views.splice(e.views.indexOf(t),1),t.params.router&&t.router&&t.router.destroy(),t.emit("local::destroy viewDestroy",t),Object.keys(t).forEach(e=>{t[e]=null,delete t[e]}),t=null}checkMasterDetailBreakpoint(t){const e=this,r=e.app,n=e.$el.hasClass("view-master-detail"),i=r.width>=e.params.masterDetailBreakpoint&&e.$el.children(".page-master").length;void 0===t&&i||!0===t?(e.$el.addClass("view-master-detail"),n||(e.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",e),e.$el.trigger("view:masterDetailBreakpoint"))):(e.$el.removeClass("view-master-detail"),n&&(e.emit("local::masterDetailBreakpoint viewMasterDetailBreakpoint",e),e.$el.trigger("view:masterDetailBreakpoint")))}initMasterDetail(){const t=this,e=t.app;t.checkMasterDetailBreakpoint=t.checkMasterDetailBreakpoint.bind(t),t.checkMasterDetailBreakpoint(),t.params.masterDetailResizable&&it(t),e.on("resize",t.checkMasterDetailBreakpoint)}init(){const t=this;t.params.router&&(t.params.masterDetailBreakpoint>0&&t.initMasterDetail(),t.router.init(),t.$el.trigger("view:init"),t.emit("local::init viewInit",t))}}ot.use(nt);var at=ot;var st={name:"clicks",params:{clicks:{externalLinks:".external"}},on:{init(){!function(t){t.on("click",(function(e){const r=d(e.target),n=r.closest("a"),o=n.length>0,a=o&&n.attr("href");if(o&&(n.is(t.params.clicks.externalLinks)||a&&a.indexOf("javascript:")>=0)){const t=n.attr("target");return void(a&&i.b.cordova&&i.b.cordova.InAppBrowser&&("_system"===t||"_blank"===t)&&(e.preventDefault(),i.b.cordova.InAppBrowser.open(a,t)))}Object.keys(t.modules).forEach(n=>{const i=t.modules[n].clicks;i&&(e.preventF7Router||Object.keys(i).forEach(n=>{const o=r.closest(n).eq(0);o.length>0&&i[n].call(t,o,o.dataset(),e)}))});let s={};if(o&&(e.preventDefault(),s=n.dataset()),e.preventF7Router)return;if(n.hasClass("prevent-router")||n.hasClass("router-prevent"))return;if(a&&a.length>0&&"#"!==a[0]||n.hasClass("back")){let e;if(s.view&&"current"===s.view?e=t.views.current:s.view?e=d(s.view)[0].f7View:(e=r.parents(".view")[0]&&r.parents(".view")[0].f7View,!n.hasClass("back")&&e&&e.params.linksView&&("string"==typeof e.params.linksView?e=d(e.params.linksView)[0].f7View:e.params.linksView instanceof at&&(e=e.params.linksView))),e||t.views.main&&(e=t.views.main),!e||!e.router)return;if(s.context&&"string"==typeof s.context)try{s.context=JSON.parse(s.context)}catch(t){}n[0].f7RouteProps&&(s.props=n[0].f7RouteProps),n.hasClass("back")?e.router.back(a,s):e.router.navigate(a,s)}}))}(this)}}},lt={name:"routerTemplateLoader",proto:{templateLoader(t,e,r,i,o){const a=this;function s(t){let e,s;try{if(s=r.context||{},"function"==typeof s)s=s.call(a);else if("string"==typeof s)try{s=JSON.parse(s)}catch(t){throw o(),t}e="function"==typeof t?t(s):n.a.compile(t)(_.extend({},s||{},{$app:a.app,$root:_.extend({},a.app.data,a.app.methods),$route:r.route,$f7route:r.route,$router:a,$f7router:a,$theme:{ios:"ios"===a.app.theme,md:"md"===a.app.theme,aurora:"aurora"===a.app.theme}}))}catch(t){throw o(),t}i(e,{context:s})}e?(a.xhr&&(a.xhr.abort(),a.xhr=!1),a.xhrRequest(e,r).then(t=>{s(t)}).catch(()=>{o()})):s(t)},modalTemplateLoader(t,e,r,n,i){return this.templateLoader(t,e,r,t=>{n(t)},i)},tabTemplateLoader(t,e,r,n,i){return this.templateLoader(t,e,r,t=>{n(t)},i)},pageTemplateLoader(t,e,r,n,i){const o=this;return o.templateLoader(t,e,r,(t,e={})=>{n(o.getPageEl(t),e)},i)}}},ct={name:"routerComponentLoader",proto:{componentLoader(t,e,r={},n,i){const o=this,{app:a}=o,s="string"==typeof t?t:e,l=o.replaceRequestUrlParams(s,r);function c(t){let e=r.context||{};if("function"==typeof e)e=e.call(o);else if("string"==typeof e)try{e=JSON.parse(e)}catch(t){throw i(t),t}const s=_.merge({},e,{$route:r.route,$f7route:r.route,$router:o,$f7router:o,$theme:{ios:"ios"===a.theme,md:"md"===a.theme,aurora:"aurora"===a.theme}});r.componentOptions&&r.componentOptions.el&&(t.el=r.componentOptions.el),r.componentOptions&&r.componentOptions.root&&(t.root=r.componentOptions.root),a.component.create(t,s).then(t=>{n(t.el)}).catch(t=>{throw i(t),new Error(t)})}let u;l&&o.params.componentCache&&o.cache.components.forEach(t=>{t.url===l&&(u=t.component)}),l&&u?c(u):l&&!u?(o.xhr&&(o.xhr.abort(),o.xhr=!1),o.xhrRequest(s,r).then(t=>{const e=a.component.parse(t);o.params.componentCache&&o.cache.components.push({url:l,component:e}),c(e)}).catch(t=>{throw i(),t})):c(t)},modalComponentLoader(t,e,r,n,i,o){this.componentLoader(e,r,n,t=>{i(t)},o)},tabComponentLoader(t,e,r,n,i,o){this.componentLoader(e,r,n,t=>{i(t)},o)},pageComponentLoader(t,e,r,n,i,o){this.componentLoader(e,r,n,(t,e={})=>{i(t,e)},o)}}};function ut(t,e,r,n,i){return{sel:t,data:e,children:r,text:n,elm:i,key:void 0===e?void 0:e.key}}var ht=ut,pt=Array.isArray;function ft(t){return"string"==typeof t||"number"==typeof t}function dt(t,e,r){var n,i,o,a={};if(void 0!==r?(a=e,pt(r)?n=r:ft(r)?i=r:r&&r.sel&&(n=[r])):void 0!==e&&(pt(e)?n=e:ft(e)?i=e:e&&e.sel?n=[e]:a=e),pt(n))for(o=0;o<n.length;++o)ft(n[o])&&(n[o]=ut(void 0,void 0,void 0,n[o],void 0));return"s"!==t[0]||"v"!==t[1]||"g"!==t[2]||3!==t.length&&"."!==t[3]&&"#"!==t[3]||function t(e,r,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==r)for(var i=0;i<r.length;++i){var o=r[i].data;void 0!==o&&t(o,r[i].children,r[i].sel)}}(a,n,t),ut(t,a,n,i,void 0)}var gt=dt,vt={};const mt="area base br col command embed hr img input keygen link menuitem meta param source track wbr".split(" "),yt="hidden checked disabled readonly selected autofocus autoplay required multiple value indeterminate".split(" "),_t="hidden checked disabled readonly selected autofocus autoplay required multiple readOnly indeterminate".split(" "),bt=i.a.createElement("div");let xt,wt;function Ct(...t){const e={};return t.forEach((t={})=>{Object.keys(t).forEach(r=>{var n;e[(n=r,n.split("-").map((t,e)=>0===e?t.toLowerCase():t[0].toUpperCase()+t.substr(1)).join(""))]=t[r]})}),e}function Et(t,e,r,n,i){const o={},a=[],s=[],l=[],c=[];let u=!1;t&&t.attrs&&t.attrs.component&&(i=t.attrs.component,delete t.attrs.component,u=!0);const h=i&&i.indexOf("-")>0&&vt[i];if(h&&(a.push(r=>{(r.sel===i||u)&&function({app:t,vnode:e,tagName:r,data:n}){t.component.create(Object.assign({el:e.elm},vt[r]),{$props:Ct(n.attrs||{},n.props||{})},e.children).then(t=>{e.data&&e.data.on&&t&&t.$el&&Object.keys(e.data.on).forEach(r=>{t.$el.on(r,e.data.on[r])}),e.elm.__component__=t})}({app:e,vnode:r,tagName:i,data:t})}),s.push(t=>{!function(t){const e=t&&t.elm&&t.elm.__component__;if(e){const{el:r,$el:n}=e;t.data&&t.data.on&&n&&Object.keys(t.data.on).forEach(e=>{n.off(e,t.data.on[e])}),e.$destroy&&e.$destroy(),r&&r.parentNode&&r.parentNode.removeChild(r),delete t.elm.__component__}}(t)}),l.push((t,e)=>{!function(t){const e=t&&t.elm&&t.elm.__component__;if(!e)return;const r=Ct(t.data.attrs||{},t.data.props||{});e.$children=t.children,Object.assign(e.$props,r),e.$update()}(e)})),!h){if(!t||!t.attrs||!t.attrs.class)return o;t.attrs.class.split(" ").forEach(t=>{r||a.push(...e.getVnodeHooks("insert",t)),s.push(...e.getVnodeHooks("destroy",t)),l.push(...e.getVnodeHooks("update",t)),c.push(...e.getVnodeHooks("postpatch",t))})}return n&&!r&&c.push((t,e)=>{const r=e||t;r&&r.data&&r.data.context&&r.data.context.$options.updated&&r.data.context.$hook("updated")}),0===a.length&&0===s.length&&0===l.length&&0===c.length||(a.length&&(o.insert=t=>{a.forEach(e=>e(t))}),s.length&&(o.destroy=t=>{s.forEach(e=>e(t))}),l.length&&(o.update=(t,e)=>{l.forEach(r=>r(t,e))}),c.length&&(o.postpatch=(t,e)=>{c.forEach(r=>r(t,e))})),o}function St(t,e,r,n,o,a){const s={context:e},l=t.attributes;Array.prototype.forEach.call(l,t=>{let r=t.name;const n=t.value;if(yt.indexOf(r)>=0)s.props||(s.props={}),"readonly"===r&&(r="readOnly"),_t.indexOf(r)>=0?s.props[r]=!1!==n:s.props[r]=n;else if("key"===r)s.key=n;else if(0===r.indexOf("@")){s.on||(s.on={});let t=r.substr(1),o=!1,a=!1,l=!1;t.indexOf(".")>=0&&t.split(".").forEach((e,r)=>{0===r?t=e:("stop"===e&&(o=!0),"prevent"===e&&(a=!0),"once"===e&&(l=!0))}),s.on[t]=function(t,e,{stop:r,prevent:n,once:o}={}){let a,s,l=!1,c=[],u=!0;if(a=t.indexOf("(")<0?t:t.split("(")[0],a.indexOf(".")>=0)a.split(".").forEach((t,r)=>{if(0!==r||"this"!==t){if(0===r&&"window"===t)return s=i.b,void(u=!1);if(s||(s=e),!s[t])throw new Error(`Framework7: Component doesn't have method "${a.split(".").slice(0,r+1).join(".")}"`);s=s[t]}});else{if(!e[a])throw new Error(`Framework7: Component doesn't have method "${a}"`);s=e[a]}return u&&(s=s.bind(e)),function(...i){const a=i[0];if(!o||!l){if(r&&a.stopPropagation(),n&&a.preventDefault(),l=!0,t.indexOf("(")<0)c=i;else{t.split("(")[1].split(")")[0].replace(/'[^']*'|"[^"]*"/g,t=>t.replace(/,/g,"<_comma_>")).split(",").map(t=>t.replace(/<_comma_>/g,",")).forEach(t=>{let r=t.trim();if(isNaN(r))if("true"===r)r=!0;else if("false"===r)r=!1;else if("null"===r)r=null;else if("undefined"===r)r=void 0;else if('"'===r[0])r=r.replace(/"/g,"");else if("'"===r[0])r=r.replace(/'/g,"");else if(r.indexOf(".")>0){let t;r.split(".").forEach(r=>{t||(t=e),t=t[r]}),r=t}else r=e[r];else r=parseFloat(r);c.push(r)})}s(...c)}}}(n,e,{stop:o,prevent:a,once:l})}else if("style"===r)if(n.indexOf("{")>=0&&n.indexOf("}")>=0)try{s.style=JSON.parse(n)}catch(t){s.attrs||(s.attrs={}),s.attrs.style=n}else s.attrs||(s.attrs={}),s.attrs.style=n;else s.attrs||(s.attrs={}),s.attrs[r]=n,"id"!==r||s.key||o||(s.key=n)}),o&&e&&e.$id&&e.$style&&e.$styleScoped&&(s.attrs||(s.attrs={}),s.attrs["data-f7-"+e.$id]="");const c=Et(s,r,n,o,a);return c.prepatch=(t,e)=>{t&&e&&t&&t.data&&t.data.props&&Object.keys(t.data.props).forEach(r=>{_t.indexOf(r)<0||(e.data||(e.data={}),e.data.props||(e.data.props={}),!0!==t.data.props[r]||r in e.data.props||(e.data.props[r]=!1))})},c&&(s.hook=c),s}function Tt(t,e,r,n){const i=[],o=t.childNodes;for(let t=0;t<o.length;t+=1){const a=kt(o[t],e,r,n);Array.isArray(a)?i.push(...a):a&&i.push(a)}return i}function kt(t,e,r,n,o){if(3===t.nodeType)return t.textContent;if(1!==t.nodeType)return null;const a=t instanceof i.b.SVGElement?t.nodeName:t.nodeName.toLowerCase();return"slot"===a?function(t,e,r,n){const i=t.getAttribute("name")||"default",o=(e.$children||[]).filter(t=>{let e="default";return t.data&&(e=t.data.attrs&&t.data.attrs.slot||"default"),e===i});return 0===o.length?Tt(t,e,r,n):o}(t,e,r,n):gt(a,St(t,e,r,n,o,a),mt.indexOf(a)>=0?[]:Tt(t,e,r,n))}var Rt=function(t="",e,r){const n=t.trim();let o,a=bt;0===n.indexOf("<tr")&&(xt||(xt=i.a.createElement("tbody")),a=xt),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(wt||(wt=i.a.createElement("tr")),a=wt),a.innerHTML=n;for(let t=0;t<a.childNodes.length;t+=1)o||1!==a.childNodes[t].nodeType||(o=a.childNodes[t]);const s=kt(o,e,e.$app,r,!0);return a.innerHTML="",s};var Ot={createElement:function(t){return document.createElement(t)},createElementNS:function(t,e){return document.createElementNS(t,e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){r&&r.parentNode!==t&&r.__component__&&(r=r.__component__.el),t.insertBefore(e,r)},removeChild:function(t,e){t&&t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return 1===t.nodeType},isText:function(t){return 3===t.nodeType},isComment:function(t){return 8===t.nodeType}};function Pt(t){return void 0===t}function At(t){return void 0!==t}var Mt=ht("",{},[],void 0,void 0);function Lt(t,e){return t.key===e.key&&t.sel===e.sel}function It(t,e,r){var n,i,o,a={};for(n=e;n<=r;++n)null!=(o=t[n])&&void 0!==(i=o.key)&&(a[i]=n);return a}var Ft=["create","update","remove","destroy","pre","post"];function Dt(t,e){var r,n=e.elm,i=t.data.attrs,o=e.data.attrs;if((i||o)&&i!==o){for(r in i=i||{},o=o||{}){var a=o[r];i[r]!==a&&(!0===a?n.setAttribute(r,""):!1===a?n.removeAttribute(r):120!==r.charCodeAt(0)?n.setAttribute(r,a):58===r.charCodeAt(3)?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):58===r.charCodeAt(5)?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in i)r in o||n.removeAttribute(r)}}var jt={create:Dt,update:Dt};function Nt(t,e){var r,n,i=e.elm,o=t.data.props,a=e.data.props;if((o||a)&&o!==a){for(r in a=a||{},o=o||{})a[r]||delete i[r];for(r in a)n=a[r],o[r]===n||"value"===r&&i[r]===n||(i[r]=n)}}var $t={create:Nt,update:Nt},Bt="undefined"!=typeof window&&window.requestAnimationFrame||setTimeout;function Gt(t,e,r){var n;n=function(){t[e]=r},Bt((function(){Bt(n)}))}function Ut(t,e){var r,n,i=e.elm,o=t.data.style,a=e.data.style;if((o||a)&&o!==a){a=a||{};var s="delayed"in(o=o||{});for(n in o)a[n]||("-"===n[0]&&"-"===n[1]?i.style.removeProperty(n):i.style[n]="");for(n in a)if(r=a[n],"delayed"===n&&a.delayed)for(var l in a.delayed)r=a.delayed[l],s&&r===o.delayed[l]||Gt(i.style,l,r);else"remove"!==n&&r!==o[n]&&("-"===n[0]&&"-"===n[1]?i.style.setProperty(n,r):i.style[n]=r)}}function zt(t,e){const r=t.data.on,n=t.listener,i=t.elm,o=e&&e.data.on,a=e&&e.elm;if(r!==o&&(r&&n&&(o?Object.keys(r).forEach(t=>{o[t]||d(i).off(t,n)}):Object.keys(r).forEach(t=>{d(i).off(t,n)})),o)){const n=t.listener||function t(e,...r){!function(t,e,r){const n=t.type,i=r.data.on;i&&i[n]&&function(t,e,r){"function"==typeof t&&t(e,...r)}(i[n],t,e)}(e,r,t.vnode)};e.listener=n,n.vnode=e,r?Object.keys(o).forEach(t=>{r[t]||d(a).on(t,n)}):Object.keys(o).forEach(t=>{d(a).on(t,n)})}}var Wt=function(t,e){var r,n,i={},o=void 0!==e?e:Ot;for(r=0;r<Ft.length;++r)for(i[Ft[r]]=[],n=0;n<t.length;++n){var a=t[n][Ft[r]];void 0!==a&&i[Ft[r]].push(a)}function s(t,e){return function(){if(0==--e){var r=o.parentNode(t);o.removeChild(r,t)}}}function l(t,e){var r,n=t.data;void 0!==n&&At(r=n.hook)&&At(r=r.init)&&(r(t),n=t.data);var a=t.children,s=t.sel;if("!"===s)Pt(t.text)&&(t.text=""),t.elm=o.createComment(t.text);else if(void 0!==s){var c=s.indexOf("#"),u=s.indexOf(".",c),h=c>0?c:s.length,p=u>0?u:s.length,f=-1!==c||-1!==u?s.slice(0,Math.min(h,p)):s,d=t.elm=At(n)&&At(r=n.ns)?o.createElementNS(r,f):o.createElement(f);for(h<p&&d.setAttribute("id",s.slice(h+1,p)),u>0&&d.setAttribute("class",s.slice(p+1).replace(/\./g," ")),r=0;r<i.create.length;++r)i.create[r](Mt,t);if(pt(a))for(r=0;r<a.length;++r){var g=a[r];null!=g&&o.appendChild(d,l(g,e))}else ft(t.text)&&o.appendChild(d,o.createTextNode(t.text));At(r=t.data.hook)&&(r.create&&r.create(Mt,t),r.insert&&e.push(t))}else t.elm=o.createTextNode(t.text);return t.elm}function c(t,e,r,n,i,a){for(;n<=i;++n){var s=r[n];null!=s&&o.insertBefore(t,l(s,a),e)}}function u(t){var e,r,n=t.data;if(void 0!==n){for(At(e=n.hook)&&At(e=e.destroy)&&e(t),e=0;e<i.destroy.length;++e)i.destroy[e](t);if(void 0!==t.children)for(r=0;r<t.children.length;++r)null!=(e=t.children[r])&&"string"!=typeof e&&u(e)}}function h(t,e,r,n){for(;r<=n;++r){var a=void 0,l=void 0,c=void 0,h=e[r];if(null!=h)if(At(h.sel)){for(u(h),l=i.remove.length+1,c=s(h.elm,l),a=0;a<i.remove.length;++a)i.remove[a](h,c);At(a=h.data)&&At(a=a.hook)&&At(a=a.remove)?a(h,c):c()}else o.removeChild(t,h.elm)}}function p(t,e,r){var n,a;At(n=e.data)&&At(a=n.hook)&&At(n=a.prepatch)&&n(t,e);var s=e.elm=t.elm,u=t.children,f=e.children;if(t!==e){if(void 0!==e.data){for(n=0;n<i.update.length;++n)i.update[n](t,e);At(n=e.data.hook)&&At(n=n.update)&&n(t,e)}Pt(e.text)?At(u)&&At(f)?u!==f&&function(t,e,r,n){for(var i,a,s,u=0,f=0,d=e.length-1,g=e[0],v=e[d],m=r.length-1,y=r[0],_=r[m];u<=d&&f<=m;)null==g?g=e[++u]:null==v?v=e[--d]:null==y?y=r[++f]:null==_?_=r[--m]:Lt(g,y)?(p(g,y,n),g=e[++u],y=r[++f]):Lt(v,_)?(p(v,_,n),v=e[--d],_=r[--m]):Lt(g,_)?(p(g,_,n),o.insertBefore(t,g.elm,o.nextSibling(v.elm)),g=e[++u],_=r[--m]):Lt(v,y)?(p(v,y,n),o.insertBefore(t,v.elm,g.elm),v=e[--d],y=r[++f]):(void 0===i&&(i=It(e,u,d)),Pt(a=i[y.key])?(o.insertBefore(t,l(y,n),g.elm),y=r[++f]):((s=e[a]).sel!==y.sel?o.insertBefore(t,l(y,n),g.elm):(p(s,y,n),e[a]=void 0,o.insertBefore(t,s.elm,g.elm)),y=r[++f]));(u<=d||f<=m)&&(u>d?c(t,null==r[m+1]?null:r[m+1].elm,r,f,m,n):h(t,e,u,d))}(s,u,f,r):At(f)?(At(t.text)&&o.setTextContent(s,""),c(s,null,f,0,f.length-1,r)):At(u)?h(s,u,0,u.length-1):At(t.text)&&o.setTextContent(s,""):t.text!==e.text&&o.setTextContent(s,e.text),At(a)&&At(n=a.postpatch)&&n(t,e)}}return function(t,e){var r,n,a,s=[];for(r=0;r<i.pre.length;++r)i.pre[r]();for(function(t){return void 0!==t.sel}(t)||(t=function(t){var e=t.id?"#"+t.id:"",r=t.className?"."+t.className.split(" ").join("."):"";return ht(o.tagName(t).toLowerCase()+e+r,{},[],void 0,t)}(t)),Lt(t,e)?p(t,e,s):(n=t.elm,a=o.parentNode(n),l(e,s),null!==a&&(o.insertBefore(a,e.elm,o.nextSibling(n)),h(a,[t],0,0))),r=0;r<s.length;++r)s[r].data.hook.insert(s[r]);for(r=0;r<i.post.length;++r)i.post[r]();return e}}([jt,$t,{create:Ut,update:Ut,destroy:function(t){var e,r,n=t.elm,i=t.data.style;if(i&&(e=i.destroy))for(r in e)n.style[r]=e[r]},remove:function(t,e){var r=t.data.style;if(r&&r.remove){var n,i=t.elm,o=0,a=r.remove,s=0,l=[];for(n in a)l.push(n),i.style[n]=a[n];for(var c=getComputedStyle(i)["transition-property"].split(", ");o<c.length;++o)-1!==l.indexOf(c[o])&&s++;i.addEventListener("transitionend",(function(t){t.target===i&&--s,0===s&&e()}))}else e()}},{create:zt,update:zt,destroy:zt}]),qt={};var Ht=class{constructor(t,e={},r={},n){const o=_.id(),a=this;_.merge(a,{$props:{}},r,{$:d,$$:d,$dom7:d,$app:t,$f7:t,$options:_.extend({id:o},e),$id:e.isClassComponent?a.constructor.id:e.id||o,$mixins:e.isClassComponent?a.constructor.mixins:e.mixins,$children:n||[],$isRootComponent:!!e.root});const{$options:s}=a;if(a.$mixins&&a.$mixins.length)for(let t=a.$mixins.length-1;t>=0;t-=1){const e=a.$mixins[t];"string"==typeof e&&(qt[e]?a.$mixins[t]=qt[e]:a.$mixins.splice(t,1))}Object.defineProperty(a,"$slots",{enumerable:!0,configurable:!0,get(){const t={};return a.$children.forEach(e=>{let r="default";e.data&&(r=e.data.attrs&&e.data.attrs.slot||"default"),t[r]||(t[r]=[]),t[r].push(e)}),t}}),Object.defineProperty(a,"$root",{enumerable:!0,configurable:!0,get(){if(a.$isRootComponent)return a;if(t.rootComponent)return a.$onRootUpdated||(a.$onRootUpdated=()=>a.$update(),t.on("rootComponentUpdated",a.$onRootUpdated)),t.rootComponent;let e=_.merge({},t.data,t.methods);return i.b&&i.b.Proxy&&(e=new i.b.Proxy(e,{set(e,r,n){t.data[r]=n},deleteProperty(e,r){delete t.data[r],delete t.methods[r]},has:(e,r)=>r in t.data||r in t.methods})),e},set(){}}),s.render&&(s.render=s.render.bind(a));const l={};return a.$mixins&&a.$mixins.length&&a.$mixins.forEach(t=>{t.methods&&Object.assign(l,t.methods)}),s.methods&&Object.assign(l,s.methods),Object.keys(l).forEach(t=>{a[t]=l[t].bind(a)}),s.on&&Object.keys(s.on).forEach(t=>{s.on[t]=s.on[t].bind(a)}),s.once&&Object.keys(s.once).forEach(t=>{s.once[t]=s.once[t].bind(a)}),a.$style=s.isClassComponent?a.constructor.style:s.style,a.$styleScoped=s.isClassComponent?a.constructor.styleScoped:s.styleScoped,a.__updateQueue=[],new Promise((t,e)=>{a.$hook("data",!0).then(e=>{const r={};e.forEach(t=>{Object.assign(r,t||{})}),_.extend(a,r),a.$hook("beforeCreate");let n=a.$render();if(a.$options.el)return n=n.trim(),a.$vnode=Rt(n,a,!0),a.$style&&(a.$styleEl=i.a.createElement("style"),a.$styleEl.innerHTML=a.$style),a.el=a.$options.el,Wt(a.el,a.$vnode),a.el=a.$vnode.elm,a.$el=d(a.el),a.$attachEvents(),a.el.f7Component=a,a.$hook("created"),a.$mount(),void t(a);n&&"string"==typeof n?(n=n.trim(),a.$vnode=Rt(n,a,!0),a.el=i.a.createElement(a.$vnode.sel||"div"),Wt(a.el,a.$vnode),a.$el=d(a.el)):n&&(a.el=n,a.$el=d(a.el)),a.$style&&(a.$styleEl=i.a.createElement("style"),a.$styleEl.innerHTML=a.$style),a.$attachEvents(),a.el&&(a.el.f7Component=a),a.$hook("created"),t(a)}).catch(t=>{e(t)})})}$attachEvents(){const t=this,{$options:e,$el:r}=t;t.$mixins&&t.$mixins.length&&(t.$detachEventsHandlers={},t.$mixins.forEach(e=>{e.on&&Object.keys(e.on).forEach(n=>{const i=e.on[n].bind(t);t.$detachEventsHandlers[n]||(t.$detachEventsHandlers[n]=[]),t.$detachEventsHandlers[n].push(i),r.on(_.eventNameToColonCase(n),i)}),e.once&&Object.keys(e.once).forEach(n=>{const i=e.once[n].bind(t);t.$detachEventsHandlers[n]||(t.$detachEventsHandlers[n]=[]),t.$detachEventsHandlers[n].push(i),r.once(_.eventNameToColonCase(n),i)})})),e.on&&Object.keys(e.on).forEach(t=>{r.on(_.eventNameToColonCase(t),e.on[t])}),e.once&&Object.keys(e.once).forEach(t=>{r.once(_.eventNameToColonCase(t),e.once[t])})}$detachEvents(){const t=this,{$options:e,$el:r}=t;e.on&&Object.keys(e.on).forEach(t=>{r.off(_.eventNameToColonCase(t),e.on[t])}),e.once&&Object.keys(e.once).forEach(t=>{r.off(_.eventNameToColonCase(t),e.once[t])}),t.$detachEventsHandlers&&(Object.keys(t.$detachEventsHandlers).forEach(e=>{t.$detachEventsHandlers[e].forEach(t=>{r.off(_.eventNameToColonCase(e),t)}),t.$detachEventsHandlers[e]=[],delete t.$detachEventsHandlers[e]}),t.$detachEventsHandlers=null,delete t.$detachEventsHandlers)}$render(){const t=this,{$options:e}=t;let r="";return e.render?r=e.render():t.render?r=t.render.call(t):e.template&&(r="string"==typeof e.template?n.a.compile(e.template)(t):e.template(t)),r}$startUpdateQueue(){const t=this;t.__requestAnimationFrameId||(t.__requestAnimationFrameId=i.b.requestAnimationFrame(()=>{t.__updateIsPending&&function(){let e=t.$render();if(e&&"string"==typeof e){e=e.trim();const r=Rt(e,t,!1);t.$vnode=Wt(t.$vnode,r)}}();let e=[...t.__updateQueue];t.__updateQueue=[],t.__updateIsPending=!1,i.b.cancelAnimationFrame(t.__requestAnimationFrameId),delete t.__requestAnimationFrameId,delete t.__updateIsPending,e.forEach(t=>t()),e=[]}))}$tick(t){const e=this;return new Promise(r=>{e.__updateQueue.push((function(){r(),t&&t()})),e.$startUpdateQueue()})}$update(t){const e=this;return new Promise(r=>{e.__updateIsPending=!0,e.__updateQueue.push((function(){r(),t&&t(),e.$isRootComponent&&e.$f7.emit("rootComponentUpdated")})),e.$startUpdateQueue()})}$setState(t={},e){return _.merge(this,t),this.$update(e)}$f7ready(t){this.$f7.initialized?t(this.$f7):this.$f7.once("init",()=>{t(this.$f7)})}$mount(t){this.$hook("beforeMount"),this.$styleEl&&d("head").append(this.$styleEl),t&&t(this.el),this.$hook("mounted")}$destroy(){const t=this;t.$hook("beforeDestroy"),t.$styleEl&&d(t.$styleEl).remove(),t.$onRootUpdated&&(t.$f7.off("rootComponentUpdated",t.$onRootUpdated),delete t.$onRootUpdated),t.$detachEvents(),t.$hook("destroyed"),t.el&&t.el.f7Component&&(t.el.f7Component=null,delete t.el.f7Component),t.$vnode&&(t.$vnode=Wt(t.$vnode,{sel:t.$vnode.sel,data:{}})),i.b.cancelAnimationFrame(t.__requestAnimationFrameId),_.deleteProps(t)}$hook(t,e){const r=this;if(e){const e=[];return r.$mixins&&r.$mixins.length&&r.$mixins.forEach(n=>{n[t]&&e.push(n[t].call(r))}),r[t]&&"function"==typeof r[t]&&e.push(r[t].call(r)),r.$options[t]&&e.push(r.$options[t].call(r)),Promise.all(e)}return r.$mixins&&r.$mixins.length&&r.$mixins.forEach(e=>{e[t]&&"function"==typeof e[t]&&e[t].call(r)}),r.$options[t]?r.$options[t].call(r):r[t]?r[t].call(r):void 0}};var Xt=function(t){const e=_.id(),r="f7_component_create_callback_"+e,o="f7_component_render_callback_"+e;let a;const s=t.match(/<template([ ]?)([a-z0-9-]*)>/),l=s[2]||"t7";s&&(a=t.split(/<template[ ]?[a-z0-9-]*>/).filter((t,e)=>e>0).join("<template>").split("</template>").filter((t,e,r)=>e<r.length-1).join("</template>").replace(/{{#raw}}([ \n]*)<template/g,"{{#raw}}<template").replace(/\/template>([ \n]*){{\/raw}}/g,"/template>{{/raw}}").replace(/([ \n])<template/g,"$1{{#raw}}<template").replace(/\/template>([ \n])/g,"/template>{{/raw}}$1"));let c,u,h=null,p=!1;if(t.indexOf("<style>")>=0?h=t.split("<style>")[1].split("</style>")[0]:t.indexOf("<style scoped>")>=0&&(p=!0,h=t.split("<style scoped>")[1].split("</style>")[0],h=h.replace(/{{this}}/g,`[data-f7-${e}]`).replace(/[\n]?([^{^}]*){/gi,(t,r)=>r.indexOf('"')>=0||r.indexOf("'")>=0?t:`\n${r=r.split(",").map(t=>t.indexOf("@")>=0||t.indexOf(`[data-f7-${e}]`)>=0?t:`[data-f7-${e}] ${t.trim()}`).join(", ")} {`)),t.indexOf("<script>")>=0){const e=t.split("<script>");c=e[e.length-1].split("<\/script>")[0].trim()}else c="return {}";c&&c.trim()||(c="return {}"),c=`window.${r} = function () {${c}}`,u=i.a.createElement("script"),u.innerHTML=c,d("head").append(u);const f=i.b[r](),g="function"==typeof f;if(d(u).remove(),i.b[r]=null,delete i.b[r],f.template||f.render||(f.template=a,f.templateType=l),f.template){if("t7"===f.templateType)if(g){const t=n.a.compile(f.template);f.prototype.render=function(){return t(this)}}else f.template=n.a.compile(f.template);if("es"===f.templateType){const t=`window.${o} = function () {\n        return function render() {\n          return \`${f.template}\`;\n        }\n      }`;u=i.a.createElement("script"),u.innerHTML=t,d("head").append(u),g?f.prototype.render=f.template:f.render=i.b[o](),d(u).remove(),i.b[o]=null,delete i.b[o]}}return g&&(delete f.template,delete f.templateType),h&&(f.style=h,f.styleScoped=p),f.id=e,f};function Vt(t,e){qt[t]=e}function Yt(t,e){vt[t]=e}var Kt={name:"component",static:{Component:Ht,registerComponentMixin:Vt,registerComponent:Yt},create(){const t=this;t.component={registerComponentMixin:Vt,registerComponent:Yt,parse:t=>Xt(t),create(e,r,n){if("function"==typeof e){const{root:i,el:o}=e;return new e(t,{isClassComponent:!0,root:i,el:o},r,n)}return new Ht(t,e,r,n)}}}},Zt={name:"history",static:{history:V},on:{init(){V.init(this)}}};const Jt={registrations:[],register(t,e){const r=this;return"serviceWorker"in i.b.navigator&&r.serviceWorker.container?new Promise((n,i)=>{r.serviceWorker.container.register(t,e?{scope:e}:{}).then(t=>{Jt.registrations.push(t),r.emit("serviceWorkerRegisterSuccess",t),n(t)}).catch(t=>{r.emit("serviceWorkerRegisterError",t),i(t)})}):new Promise((t,e)=>{e(new Error("Service worker is not supported"))})},unregister(t){const e=this;if(!("serviceWorker"in i.b.navigator)||!e.serviceWorker.container)return new Promise((t,e)=>{e(new Error("Service worker is not supported"))});let r;return r=t?Array.isArray(t)?t:[t]:Jt.registrations,Promise.all(r.map(t=>new Promise((r,n)=>{t.unregister().then(()=>{Jt.registrations.indexOf(t)>=0&&Jt.registrations.splice(Jt.registrations.indexOf(t),1),e.emit("serviceWorkerUnregisterSuccess",t),r()}).catch(r=>{e.emit("serviceWorkerUnregisterError",t,r),n(r)})})))}};var Qt={name:"sw",params:{serviceWorker:{path:void 0,scope:void 0}},create(){_.extend(this,{serviceWorker:{container:"serviceWorker"in i.b.navigator?i.b.navigator.serviceWorker:void 0,registrations:Jt.registrations,register:Jt.register.bind(this),unregister:Jt.unregister.bind(this)}})},on:{init(){if(!("serviceWorker"in i.b.navigator))return;const t=this;if(!t.serviceWorker.container)return;const e=t.params.serviceWorker.path,r=t.params.serviceWorker.scope;if(!e||Array.isArray(e)&&!e.length)return;(Array.isArray(e)?e:[e]).forEach(e=>{t.serviceWorker.register(e,r)})}}};const te={hide(){b.a.cordova&&i.b.StatusBar&&i.b.StatusBar.hide()},show(){b.a.cordova&&i.b.StatusBar&&i.b.StatusBar.show()},onClick(){const t=this;let e;e=d(".popup.modal-in").length>0?d(".popup.modal-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):d(".panel.panel-in").length>0?d(".panel.panel-in").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):d(".views > .view.tab-active").length>0?d(".views > .view.tab-active").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):d(".views").length>0?d(".views").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"):t.root.children(".view").find(".page:not(.page-previous):not(.page-next):not(.cached)").find(".page-content"),e&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))},setTextColor(t){b.a.cordova&&i.b.StatusBar&&("white"===t?i.b.StatusBar.styleLightContent():i.b.StatusBar.styleDefault())},setBackgroundColor(t){b.a.cordova&&i.b.StatusBar&&i.b.StatusBar.backgroundColorByHexString(t)},isVisible:()=>!(!b.a.cordova||!i.b.StatusBar)&&i.b.StatusBar.isVisible,overlaysWebView(t=!0){b.a.cordova&&i.b.StatusBar&&i.b.StatusBar.overlaysWebView(t)},init(){const t=this,e=t.params.statusbar;e.enabled&&(b.a.cordova&&i.b.StatusBar&&(e.scrollTopOnClick&&d(i.b).on("statusTap",te.onClick.bind(t)),b.a.ios&&(e.iosOverlaysWebView?i.b.StatusBar.overlaysWebView(!0):i.b.StatusBar.overlaysWebView(!1),"white"===e.iosTextColor?i.b.StatusBar.styleLightContent():i.b.StatusBar.styleDefault()),b.a.android&&(e.androidOverlaysWebView?i.b.StatusBar.overlaysWebView(!0):i.b.StatusBar.overlaysWebView(!1),"white"===e.androidTextColor?i.b.StatusBar.styleLightContent():i.b.StatusBar.styleDefault())),e.iosBackgroundColor&&b.a.ios&&te.setBackgroundColor(e.iosBackgroundColor),e.androidBackgroundColor&&b.a.android&&te.setBackgroundColor(e.androidBackgroundColor))}};var ee={name:"statusbar",params:{statusbar:{enabled:!0,scrollTopOnClick:!0,iosOverlaysWebView:!0,iosTextColor:"black",iosBackgroundColor:null,androidOverlaysWebView:!1,androidTextColor:"black",androidBackgroundColor:null}},create(){_.extend(this,{statusbar:{hide:te.hide,show:te.show,overlaysWebView:te.overlaysWebView,setTextColor:te.setTextColor,setBackgroundColor:te.setBackgroundColor,isVisible:te.isVisible,init:te.init.bind(this)}})},on:{init(){te.init.call(this)}}};var re={name:"view",params:{view:{name:void 0,main:!1,router:!0,linksView:null,stackPages:!1,xhrCache:!0,xhrCacheIgnore:[],xhrCacheIgnoreGetParameters:!1,xhrCacheDuration:6e5,componentCache:!0,preloadPreviousPage:!0,allowDuplicateUrls:!1,reloadPages:!1,reloadDetail:!1,masterDetailBreakpoint:0,masterDetailResizable:!1,removeElements:!0,removeElementsWithTimeout:!1,removeElementsTimeout:0,restoreScrollTopOnBack:!0,unloadTabContent:!0,passRouteQueryToRequest:!0,passRouteParamsToRequest:!1,loadInitialPage:!0,iosSwipeBack:!0,iosSwipeBackAnimateShadow:!0,iosSwipeBackAnimateOpacity:!0,iosSwipeBackActiveArea:30,iosSwipeBackThreshold:0,mdSwipeBack:!1,mdSwipeBackAnimateShadow:!0,mdSwipeBackAnimateOpacity:!1,mdSwipeBackActiveArea:30,mdSwipeBackThreshold:0,auroraSwipeBack:!1,auroraSwipeBackAnimateShadow:!1,auroraSwipeBackAnimateOpacity:!0,auroraSwipeBackActiveArea:30,auroraSwipeBackThreshold:0,pushState:!1,pushStateRoot:void 0,pushStateAnimate:!0,pushStateAnimateOnLoad:!1,pushStateSeparator:"#!",pushStateOnLoad:!0,animate:!0,iosDynamicNavbar:!0,iosAnimateNavbarBackIcon:!0,iosPageLoadDelay:0,mdPageLoadDelay:0,auroraPageLoadDelay:0,routesBeforeEnter:null,routesBeforeLeave:null}},static:{View:at},create(){const t=this;_.extend(t,{views:_.extend([],{create:(e,r)=>new at(t,e,r),get(t){const e=d(t);if(e.length&&e[0].f7View)return e[0].f7View}})}),Object.defineProperty(t.views,"current",{enumerable:!0,configurable:!0,get:()=>function(t){const e=d(".popover.modal-in .view"),r=d(".popup.modal-in .view"),n=d(".panel.panel-in .view");let i=d(".views");0===i.length&&(i=t.root);let o=i.children(".view");if(0===o.length&&(o=i.children(".tabs").children(".view")),o.length>1&&o.hasClass("tab")&&(o=i.children(".view.tab-active"),0===o.length&&(o=i.children(".tabs").children(".view.tab-active"))),e.length>0&&e[0].f7View)return e[0].f7View;if(r.length>0&&r[0].f7View)return r[0].f7View;if(n.length>0&&n[0].f7View)return n[0].f7View;if(o.length>0){if(1===o.length&&o[0].f7View)return o[0].f7View;if(o.length>1)return t.views.main}}(t)}),t.view=t.views},on:{init(){const t=this;d(".view-init").each((e,r)=>{if(r.f7View)return;const n=d(r).dataset();t.views.create(r,n)})},modalOpen(t){const e=this;t.$el.find(".view-init").each((t,r)=>{if(r.f7View)return;const n=d(r).dataset();e.views.create(r,n)})},modalBeforeDestroy(t){t&&t.$el&&t.$el.find(".view-init").each((t,e)=>{const r=e.f7View;r&&r.destroy()})}},vnode:{"view-init":{insert(t){const e=t.elm;if(e.f7View)return;const r=d(e).dataset();this.views.create(e,r)},destroy(t){const e=t.elm.f7View;e&&e.destroy()}}}};const ne={size(t){const e=this;let r=d(t);if(r.hasClass("navbars"))return void(r=r.children(".navbar").each((t,r)=>{e.navbar.size(r)}));const n=r.children(".navbar-inner");if(!n.length)return;const i=n.hasClass("navbar-inner-centered-title")||e.params.navbar[e.theme+"CenterTitle"],o="ios"===e.theme&&!e.params.navbar[e.theme+"CenterTitle"];if(!i&&!o)return;if(r.hasClass("stacked")||r.parents(".stacked").length>0||r.parents(".tab:not(.tab-active)").length>0||r.parents(".popup:not(.modal-in)").length>0)return;"ios"!==e.theme&&e.params.navbar[e.theme+"CenterTitle"]&&n.addClass("navbar-inner-centered-title"),"ios"!==e.theme||e.params.navbar.iosCenterTitle||n.addClass("navbar-inner-left-title");const a=r.parents(".view").eq(0),s=e.rtl?n.children(".right"):n.children(".left"),l=e.rtl?n.children(".left"):n.children(".right"),c=n.children(".title"),u=n.children(".subnavbar"),h=0===s.length,p=0===l.length,f=h?0:s.outerWidth(!0),g=p?0:l.outerWidth(!0),v=c.outerWidth(!0),m=n.styles(),y=n[0].offsetWidth-parseInt(m.paddingLeft,10)-parseInt(m.paddingRight,10),_=r.hasClass("navbar-previous"),b=n.hasClass("sliding");let x,w,C,E;a.length>0&&a[0].f7View&&(x=a[0].f7View.router,w=x&&x.dynamicNavbar),p&&(C=y-v),h&&(C=0),h||p||(C=(y-g-v+f)/2);let S=(y-v)/2;y-f-g>v?(S<f&&(S=f),S+v>y-g&&(S=y-g-v),E=S-C):E=0;const T=e.rtl?-1:1;if(w&&"ios"===e.theme){if(c.hasClass("sliding")||c.length>0&&b){let t=-(C+E)*T;const e=(y-C-E-v)*T;if(_&&x&&x.params.iosAnimateNavbarBackIcon){const e=r.parent().find(".navbar-current").children(".left.sliding").find(".back .icon ~ span");e.length>0&&(t+=e[0].offsetLeft)}c[0].f7NavbarLeftOffset=t,c[0].f7NavbarRightOffset=e}if(!h&&(s.hasClass("sliding")||b))if(e.rtl)s[0].f7NavbarLeftOffset=-(y-s[0].offsetWidth)/2*T,s[0].f7NavbarRightOffset=f*T;else if(s[0].f7NavbarLeftOffset=-f,s[0].f7NavbarRightOffset=(y-s[0].offsetWidth)/2,x&&x.params.iosAnimateNavbarBackIcon&&s.find(".back .icon").length>0&&s.find(".back .icon ~ span").length){const t=s[0].f7NavbarLeftOffset,e=s[0].f7NavbarRightOffset;s[0].f7NavbarLeftOffset=0,s[0].f7NavbarRightOffset=0,s.find(".back .icon ~ span")[0].f7NavbarLeftOffset=t,s.find(".back .icon ~ span")[0].f7NavbarRightOffset=e-s.find(".back .icon")[0].offsetWidth}p||!l.hasClass("sliding")&&!b||(e.rtl?(l[0].f7NavbarLeftOffset=-g*T,l[0].f7NavbarRightOffset=(y-l[0].offsetWidth)/2*T):(l[0].f7NavbarLeftOffset=-(y-l[0].offsetWidth)/2,l[0].f7NavbarRightOffset=g)),u.length&&(u.hasClass("sliding")||b)&&(u[0].f7NavbarLeftOffset=e.rtl?u[0].offsetWidth:-u[0].offsetWidth,u[0].f7NavbarRightOffset=-u[0].f7NavbarLeftOffset)}if(i){let t=E;e.rtl&&h&&p&&c.length>0&&(t=-t),c.css({left:t+"px"})}},hide(t,e=!0,r=!1){const n=this;let i=d(t);const o=i.hasClass("navbar")&&i.parent(".navbars").length;if(o&&(i=i.parents(".navbars")),!i.length)return;if(i.hasClass("navbar-hidden"))return;let a="navbar-hidden"+(e?" navbar-transitioning":"");(o?i.find(".navbar-current .title-large").length:i.find(".title-large").length)&&(a+=" navbar-large-hidden"),r&&(a+=" navbar-hidden-statusbar"),i.transitionEnd(()=>{i.removeClass("navbar-transitioning")}),i.addClass(a),o?i.children(".navbar").each((t,e)=>{d(e).trigger("navbar:hide"),n.emit("navbarHide",e)}):(i.trigger("navbar:hide"),n.emit("navbarHide",i[0]))},show(t=".navbar-hidden",e=!0){const r=this;let n=d(t);const i=n.hasClass("navbar")&&n.parent(".navbars").length;i&&(n=n.parents(".navbars")),n.length&&n.hasClass("navbar-hidden")&&(e&&(n.addClass("navbar-transitioning"),n.transitionEnd(()=>{n.removeClass("navbar-transitioning")})),n.removeClass("navbar-hidden navbar-large-hidden navbar-hidden-statusbar"),i?n.children(".navbar").each((t,e)=>{d(e).trigger("navbar:show"),r.emit("navbarShow",e)}):(n.trigger("navbar:show"),r.emit("navbarShow",n[0])))},getElByPage(t){let e,r,n;if(t.$navbarEl||t.$el?(n=t,e=t.$el):(e=d(t),e.length>0&&(n=e[0].f7Page)),n&&n.$navbarEl&&n.$navbarEl.length>0?r=n.$navbarEl:e&&(r=e.children(".navbar")),r&&(!r||0!==r.length))return r[0]},getPageByEl(t){const e=d(t);if(e.parents(".page").length)return e.parents(".page")[0];let r;return e.parents(".view").find(".page").each((t,n)=>{n&&n.f7Page&&n.f7Page.navbarEl&&e[0]===n.f7Page.navbarEl&&(r=n)}),r},collapseLargeTitle(t){let e=d(t);if(e.hasClass("navbars")&&(e=e.find(".navbar"),e.length>1&&(e=d(t).find(".navbar-large.navbar-current")),e.length>1||!e.length))return;const r=d(this.navbar.getPageByEl(e));e.addClass("navbar-large-collapsed"),r.eq(0).addClass("page-with-navbar-large-collapsed").trigger("page:navbarlargecollapsed"),this.emit("pageNavbarLargeCollapsed",r[0]),e.trigger("navbar:collapse"),this.emit("navbarCollapse",e[0])},expandLargeTitle(t){let e=d(t);if(e.hasClass("navbars")&&(e=e.find(".navbar-large"),e.length>1&&(e=d(t).find(".navbar-large.navbar-current")),e.length>1||!e.length))return;const r=d(this.navbar.getPageByEl(e));e.removeClass("navbar-large-collapsed"),r.eq(0).removeClass("page-with-navbar-large-collapsed").trigger("page:navbarlargeexpanded"),this.emit("pageNavbarLargeExpanded",r[0]),e.trigger("navbar:expand"),this.emit("navbarExpand",e[0])},toggleLargeTitle(t){const e=this;let r=d(t);r.hasClass("navbars")&&(r=r.find(".navbar-large"),r.length>1&&(r=d(t).find(".navbar-large.navbar-current")),r.length>1||!r.length)||(r.hasClass("navbar-large-collapsed")?e.navbar.expandLargeTitle(r):e.navbar.collapseLargeTitle(r))},initNavbarOnScroll(t,e,r,n,i){const o=this,a=d(t),s=d(e),l=s.find(".title-large"),c=l.length||s.hasClass(".navbar-large");let u=44;const h=o.params.navbar.snapPageScrollToLargeTitle,p=o.params.navbar.snapPageScrollToTransparentNavbar;let f,g,v,m,y,_,b,x,w,C,E,S,T,k;(n||r&&c)&&(w=s.css("--f7-navbar-large-title-height"),w&&w.indexOf("px")>=0?(w=parseInt(w,10),Number.isNaN(w)&&l.length?w=l[0].offsetHeight:Number.isNaN(w)&&("ios"===o.theme?w=52:"md"===o.theme?w=48:"aurora"===o.theme&&(w=38))):l.length?w=l[0].offsetHeight:"ios"===o.theme?w=52:"md"===o.theme?w=48:"aurora"===o.theme&&(w=38)),r&&c&&(u+=w);function R(){s.hasClass("with-searchbar-expandable-enabled")||!S||g<0||(g>=w/2&&g<w?d(S).scrollTop(w,100):g<w&&d(S).scrollTop(0,200))}function O(){s.hasClass("with-searchbar-expandable-enabled")||!S||g<0||(g>=C/2&&g<C?d(S).scrollTop(C,100):g<C&&d(S).scrollTop(0,200))}let P=null,A=null;function M(t){S=this,t&&t.target&&t.target!==S||(g=S.scrollTop,E=g,n?function(){if(s.hasClass("navbar-hidden")||s.parent(".navbars").hasClass("navbar-hidden"))return;const t=s.hasClass("navbar-large-transparent")||s.hasClass("navbar-large")&&s.hasClass("navbar-transparent");P=A,A=Math.min(Math.max(g/w,0),1);const e=P>0&&P<1;s.hasClass("with-searchbar-expandable-enabled")||(x=s.hasClass("navbar-large-collapsed"),0===A&&x?o.navbar.expandLargeTitle(s[0]):1!==A||x||o.navbar.collapseLargeTitle(s[0]),0===A&&x||0===A&&e||1===A&&!x||1===A&&e?("md"===o.theme&&s.find(".navbar-inner").css("overflow",""),s.find(".title").css("opacity",""),s.find(".title-large-text, .subnavbar").css("transform",""),t?s.find(".navbar-bg").css("opacity",""):s.find(".navbar-bg").css("transform","")):A>0&&A<1&&("md"===o.theme&&s.find(".navbar-inner").css("overflow","visible"),s.find(".title").css("opacity",A),s.find(".title-large-text, .subnavbar").css("transform",`translate3d(0px, ${-1*A*w}px, 0)`),t?s.find(".navbar-bg").css("opacity",A):s.find(".navbar-bg").css("transform",`translate3d(0px, ${-1*A*w}px, 0)`)),h&&(I.a.touch?k&&(clearTimeout(k),k=null,k=setTimeout(()=>{R(),clearTimeout(k),k=null},70)):(clearTimeout(T),T=setTimeout(()=>{R()},300))))}():i&&function(){const t=s.hasClass("navbar-hidden")||s.parent(".navbars").hasClass("navbar-hidden");if(s.hasClass("with-searchbar-expandable-enabled")||t)return;C||(C=e.offsetHeight);let r=g/C;const n=s.hasClass("navbar-transparent-visible");if(r=Math.max(Math.min(r,1),0),n&&1===r||!n&&0===r)s.find(".navbar-bg, .title").css("opacity","");else{if(n&&0===r)return s.trigger("navbar:transparenthide"),o.emit("navbarTransparentHide",s[0]),s.removeClass("navbar-transparent-visible"),void s.find(".navbar-bg, .title").css("opacity","");if(!n&&1===r)return s.trigger("navbar:transparentshow"),o.emit("navbarTransparentShow",s[0]),s.addClass("navbar-transparent-visible"),void s.find(".navbar-bg, .title").css("opacity","");s.find(".navbar-bg, .title").css("opacity",r),p&&(I.a.touch?k&&(clearTimeout(k),k=null,k=setTimeout(()=>{O(),clearTimeout(k),k=null},70)):(clearTimeout(T),T=setTimeout(()=>{O()},300)))}}(),a.hasClass("page-previous")||r&&(a.hasClass("page-with-card-opened")||(v=S.scrollHeight,m=S.offsetHeight,y=g+m>=v,b=s.hasClass("navbar-hidden")||s.parent(".navbars").hasClass("navbar-hidden"),y?o.params.navbar.showOnPageScrollEnd&&(_="show"):_=f>g?o.params.navbar.showOnPageScrollTop||g<=u?"show":"hide":g>u?"hide":"show","show"===_&&b?(o.navbar.show(s),b=!1):"hide"!==_||b||(o.navbar.hide(s),b=!0),f=g)))}function L(){E=!1}function F(){clearTimeout(k),k=null,k=setTimeout(()=>{!1!==E&&(i&&!n?O():R(),clearTimeout(k),k=null)},70)}a.on("scroll",".page-content",M,!0),I.a.touch&&(n&&h||i&&p)&&(o.on("touchstart:passive",L),o.on("touchend:passive",F)),(n||i)&&a.find(".page-content").each((t,e)=>{e.scrollTop>0&&M.call(e)}),a[0].f7DetachNavbarScrollHandlers=function(){delete a[0].f7DetachNavbarScrollHandlers,a.off("scroll",".page-content",M,!0),I.a.touch&&(n&&h||i&&p)&&(o.off("touchstart:passive",L),o.off("touchend:passive",F))}}};var ie={name:"navbar",create(){const t=this;_.extend(t,{navbar:{size:ne.size.bind(t),hide:ne.hide.bind(t),show:ne.show.bind(t),getElByPage:ne.getElByPage.bind(t),getPageByEl:ne.getPageByEl.bind(t),collapseLargeTitle:ne.collapseLargeTitle.bind(t),expandLargeTitle:ne.expandLargeTitle.bind(t),toggleLargeTitle:ne.toggleLargeTitle.bind(t),initNavbarOnScroll:ne.initNavbarOnScroll.bind(t)}})},params:{navbar:{scrollTopOnTitleClick:!0,iosCenterTitle:!0,mdCenterTitle:!1,auroraCenterTitle:!0,hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0,collapseLargeTitleOnScroll:!0,snapPageScrollToLargeTitle:!0,snapPageScrollToTransparentNavbar:!0}},on:{"panelBreakpoint panelCollapsedBreakpoint panelResize viewResize resize viewMasterDetailBreakpoint":function(){const t=this;d(".navbar").each((e,r)=>{t.navbar.size(r)})},pageBeforeRemove(t){t.$el[0].f7DetachNavbarScrollHandlers&&t.$el[0].f7DetachNavbarScrollHandlers()},pageBeforeIn(t){const e=this;if("ios"!==e.theme)return;let r;const n=t.$el.parents(".view")[0].f7View,i=e.navbar.getElByPage(t);if(r=i?d(i).parents(".navbars"):t.$el.parents(".view").children(".navbars"),t.$el.hasClass("no-navbar")||n.router.dynamicNavbar&&!i){const n=!!(t.pageFrom&&t.router.history.length>0);e.navbar.hide(r,n)}else e.navbar.show(r)},pageReinit(t){const e=d(this.navbar.getElByPage(t));e&&0!==e.length&&this.navbar.size(e)},pageInit(t){const e=this,r=d(e.navbar.getElByPage(t));if(!r||0===r.length)return;let n,i,o;e.navbar.size(r),r.find(".title-large").length>0&&r.addClass("navbar-large"),r.hasClass("navbar-large")&&(e.params.navbar.collapseLargeTitleOnScroll&&(n=!0),t.$el.addClass("page-with-navbar-large")),!n&&r.hasClass("navbar-transparent")&&(i=!0),(e.params.navbar.hideOnPageScroll||t.$el.find(".hide-navbar-on-scroll").length||t.$el.hasClass("hide-navbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll"))&&(o=!(t.$el.find(".keep-navbar-on-scroll").length||t.$el.hasClass("keep-navbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll"))),(n||o||i)&&e.navbar.initNavbarOnScroll(t.el,r[0],o,n,i)},"panelOpen panelSwipeOpen modalOpen":function(t){const e=this;t.$el.find(".navbar:not(.navbar-previous):not(.stacked)").each((t,r)=>{e.navbar.size(r)})},tabShow(t){const e=this;d(t).find(".navbar:not(.navbar-previous):not(.stacked)").each((t,r)=>{e.navbar.size(r)})}},clicks:{".navbar .title":function(t){if(!this.params.navbar.scrollTopOnTitleClick)return;if(t.closest("a").length>0)return;let e;const r=t.parents(".navbar"),n=r.parents(".navbars");e=r.parents(".page-content"),0===e.length&&(r.parents(".page").length>0&&(e=r.parents(".page").find(".page-content")),0===e.length&&n.length&&n.nextAll(".page-current:not(.stacked)").length>0&&(e=n.nextAll(".page-current:not(.stacked)").find(".page-content")),0===e.length&&r.nextAll(".page-current:not(.stacked)").length>0&&(e=r.nextAll(".page-current:not(.stacked)").find(".page-content"))),e&&e.length>0&&(e.hasClass("tab")&&(e=e.parent(".tabs").children(".page-content.tab-active")),e.length>0&&e.scrollTop(0,300))}},vnode:{navbar:{postpatch(t){this.navbar.size(t.elm)}}}};const oe={setHighlight(t){const e=this;if("md"!==e.theme)return;const r=d(t);if(0===r.length||!r.hasClass("tabbar")&&!r.hasClass("tabbar-labels"))return;let n=r.find(".tab-link-highlight");const i=r.find(".tab-link").length;if(0===i)return void n.remove();0===n.length?(r.children(".toolbar-inner").append('<span class="tab-link-highlight"></span>'),n=r.find(".tab-link-highlight")):n.next().length&&r.children(".toolbar-inner").append(n);const o=r.find(".tab-link-active");let a,s;if(r.hasClass("tabbar-scrollable")&&o&&o[0])a=o[0].offsetWidth+"px",s=o[0].offsetLeft+"px";else{const t=o.index();a=100/i+"%",s=100*(e.rtl?-t:t)+"%"}_.nextFrame(()=>{n.css("width",a).transform(`translate3d(${s},0,0)`)})},init(t){this.toolbar.setHighlight(t)},hide(t,e=!0){const r=d(t);if(r.hasClass("toolbar-hidden"))return;const n="toolbar-hidden"+(e?" toolbar-transitioning":"");r.transitionEnd(()=>{r.removeClass("toolbar-transitioning")}),r.addClass(n),r.trigger("toolbar:hide"),this.emit("toolbarHide",r[0])},show(t,e=!0){const r=d(t);r.hasClass("toolbar-hidden")&&(e&&(r.addClass("toolbar-transitioning"),r.transitionEnd(()=>{r.removeClass("toolbar-transitioning")})),r.removeClass("toolbar-hidden"),r.trigger("toolbar:show"),this.emit("toolbarShow",r[0]))},initToolbarOnScroll(t){const e=this,r=d(t);let n,i,o,a,s,l,c,u=r.parents(".view").children(".toolbar");function h(t){if(r.hasClass("page-with-card-opened"))return;if(r.hasClass("page-previous"))return;t&&t.target&&t.target!==this||(i=this.scrollTop,o=this.scrollHeight,a=this.offsetHeight,s=i+a>=o,c=u.hasClass("toolbar-hidden"),s?e.params.toolbar.showOnPageScrollEnd&&(l="show"):l=n>i?e.params.toolbar.showOnPageScrollTop||i<=44?"show":"hide":i>44?"hide":"show","show"===l&&c?(e.toolbar.show(u),c=!1):"hide"!==l||c||(e.toolbar.hide(u),c=!0),n=i)}0===u.length&&(u=r.find(".toolbar")),0===u.length&&(u=r.parents(".views").children(".tabbar, .tabbar-labels")),0!==u.length&&(r.on("scroll",".page-content",h,!0),r[0].f7ScrollToolbarHandler=h)}};var ae={name:"toolbar",create(){_.extend(this,{toolbar:{hide:oe.hide.bind(this),show:oe.show.bind(this),setHighlight:oe.setHighlight.bind(this),initToolbarOnScroll:oe.initToolbarOnScroll.bind(this),init:oe.init.bind(this)}})},params:{toolbar:{hideOnPageScroll:!1,showOnPageScrollEnd:!0,showOnPageScrollTop:!0}},on:{pageBeforeRemove(t){t.$el[0].f7ScrollToolbarHandler&&t.$el.off("scroll",".page-content",t.$el[0].f7ScrollToolbarHandler,!0)},pageBeforeIn(t){const e=this;let r=t.$el.parents(".view").children(".toolbar");0===r.length&&(r=t.$el.parents(".views").children(".tabbar, .tabbar-labels")),0===r.length&&(r=t.$el.find(".toolbar")),0!==r.length&&(t.$el.hasClass("no-toolbar")?e.toolbar.hide(r):e.toolbar.show(r))},pageInit(t){const e=this;if(t.$el.find(".tabbar, .tabbar-labels").each((t,r)=>{e.toolbar.init(r)}),e.params.toolbar.hideOnPageScroll||t.$el.find(".hide-toolbar-on-scroll").length||t.$el.hasClass("hide-toolbar-on-scroll")||t.$el.find(".hide-bars-on-scroll").length||t.$el.hasClass("hide-bars-on-scroll")){if(t.$el.find(".keep-toolbar-on-scroll").length||t.$el.hasClass("keep-toolbar-on-scroll")||t.$el.find(".keep-bars-on-scroll").length||t.$el.hasClass("keep-bars-on-scroll"))return;e.toolbar.initToolbarOnScroll(t.el)}},init(){const t=this;t.root.find(".tabbar, .tabbar-labels").each((e,r)=>{t.toolbar.init(r)})}},vnode:{tabbar:{insert(t){this.toolbar.init(t.elm)}}}},se={name:"subnavbar",on:{pageInit(t){t.$navbarEl&&t.$navbarEl.length&&t.$navbarEl.find(".subnavbar").length&&t.$el.addClass("page-with-subnavbar"),t.$el.find(".subnavbar").length&&t.$el.addClass("page-with-subnavbar")}}};class le{constructor(t,e,r){const n=this;if(!t)return;const i=t[0].getBoundingClientRect(),o=e-i.left,a=r-i.top,s=i.width,l=i.height,c=Math.max((l**2+s**2)**.5,48);return n.$rippleWaveEl=d(`<div class="ripple-wave" style="width: ${c}px; height: ${c}px; margin-top:-${c/2}px; margin-left:-${c/2}px; left:${o}px; top:${a}px;"></div>`),t.prepend(n.$rippleWaveEl),n.rippleTransform=`translate3d(${s/2-o}px, ${l/2-a}px, 0) scale(1)`,_.nextFrame(()=>{n&&n.$rippleWaveEl&&n.$rippleWaveEl.transform(n.rippleTransform)}),n}destroy(){let t=this;t.$rippleWaveEl&&t.$rippleWaveEl.remove(),Object.keys(t).forEach(e=>{t[e]=null,delete t[e]}),t=null}remove(){const t=this;if(t.removing)return;const e=this.$rippleWaveEl,r=this.rippleTransform;let n=_.nextTick(()=>{t.destroy()},400);t.removing=!0,e.addClass("ripple-wave-fill").transform(r.replace("scale(1)","scale(1.01)")).transitionEnd(()=>{clearTimeout(n),_.nextFrame(()=>{e.addClass("ripple-wave-out").transform(r.replace("scale(1)","scale(1.01)")),n=_.nextTick(()=>{t.destroy()},700),e.transitionEnd(()=>{clearTimeout(n),t.destroy()})})})}}var ce={name:"touch-ripple",static:{TouchRipple:le},create(){this.touchRipple={create:(...t)=>new le(...t)}}};const ue=[],he=[];var pe=class extends w{constructor(t,e){super(e,[t]);const r={};return this.useModulesParams(r),this.params=_.extend(r,e),this.opened=!1,this.useModules(),this}onOpen(){this.opened=!0,ue.push(this),d("html").addClass("with-modal-"+this.type.toLowerCase()),this.$el.trigger(`modal:open ${this.type.toLowerCase()}:open`),this.emit(`local::open modalOpen ${this.type}Open`,this)}onOpened(){this.$el.trigger(`modal:opened ${this.type.toLowerCase()}:opened`),this.emit(`local::opened modalOpened ${this.type}Opened`,this)}onClose(){this.opened=!1,this.type&&this.$el&&(ue.splice(ue.indexOf(this),1),d("html").removeClass("with-modal-"+this.type.toLowerCase()),this.$el.trigger(`modal:close ${this.type.toLowerCase()}:close`),this.emit(`local::close modalClose ${this.type}Close`,this))}onClosed(){this.type&&this.$el&&(this.$el.removeClass("modal-out"),this.$el.hide(),this.$el.trigger(`modal:closed ${this.type.toLowerCase()}:closed`),this.emit(`local::closed modalClosed ${this.type}Closed`,this))}open(t){const e=this,r=e.app,n=e.$el,o=e.$backdropEl,a=e.type;let s=!0;if(void 0!==t?s=t:void 0!==e.params.animate&&(s=e.params.animate),!n||n.hasClass("modal-in"))return e;if("dialog"===a&&r.params.modal.queueDialogs){let t;if(d(".dialog.modal-in").length>0?t=!0:ue.length>0&&ue.forEach(e=>{"dialog"===e.type&&(t=!0)}),t)return he.push(e),e}const l=n.parent(),c=n.parents(i.a).length>0;function u(){n.hasClass("modal-out")?e.onClosed():n.hasClass("modal-in")&&e.onOpened()}return r.params.modal.moveToRoot&&!l.is(r.root)&&(r.root.append(n),e.once(a+"Closed",()=>{c?l.append(n):n.remove()})),n.show(),e._clientLeft=n[0].clientLeft,s?(o&&(o.removeClass("not-animated"),o.addClass("backdrop-in")),n.animationEnd(()=>{u()}),n.transitionEnd(()=>{u()}),n.removeClass("modal-out not-animated").addClass("modal-in"),e.onOpen()):(o&&o.addClass("backdrop-in not-animated"),n.removeClass("modal-out").addClass("modal-in not-animated"),e.onOpen(),e.onOpened()),e}close(t){const e=this,r=e.$el,n=e.$backdropEl;let i=!0;if(void 0!==t?i=t:void 0!==e.params.animate&&(i=e.params.animate),!r||!r.hasClass("modal-in"))return he.indexOf(e)>=0&&he.splice(he.indexOf(e),1),e;if(n){let t=!0;"popup"===e.type&&e.$el.prevAll(".popup.modal-in").each((r,n)=>{const i=n.f7Modal;i&&i.params.closeByBackdropClick&&i.params.backdrop&&i.backdropEl===e.backdropEl&&(t=!1)}),t&&(n[i?"removeClass":"addClass"]("not-animated"),n.removeClass("backdrop-in"))}function o(){r.hasClass("modal-out")?e.onClosed():r.hasClass("modal-in")&&e.onOpened()}return r[i?"removeClass":"addClass"]("not-animated"),i?(r.animationEnd(()=>{o()}),r.transitionEnd(()=>{o()}),r.removeClass("modal-in").addClass("modal-out"),e.onClose()):(r.addClass("not-animated").removeClass("modal-in").addClass("modal-out"),e.onClose(),e.onClosed()),"dialog"===e.type&&function(){if(0===he.length)return;he.shift().open()}(),e}destroy(){const t=this;t.destroyed||(t.emit(`local::beforeDestroy modalBeforeDestroy ${t.type}BeforeDestroy`,t),t.$el&&(t.$el.trigger(`modal:beforedestroy ${t.type.toLowerCase()}:beforedestroy`),t.$el.length&&t.$el[0].f7Modal&&delete t.$el[0].f7Modal),_.deleteProps(t),t.destroyed=!0)}};var fe=class extends pe{constructor(t,e){const r=_.extend({backdrop:!0,closeByBackdropClick:!0,on:{}},e);super(t,r);const n=this;let i,o;if(n.params=r,i=n.params.el?d(n.params.el):d(n.params.content),i&&i.length>0&&i[0].f7Modal)return i[0].f7Modal;if(0===i.length)return n.destroy();function a(t){n&&!n.destroyed&&o&&t.target===o[0]&&n.close()}return n.params.backdrop&&(o=t.root.children(".custom-modal-backdrop"),0===o.length&&(o=d('<div class="custom-modal-backdrop"></div>'),t.root.append(o))),n.on("customModalOpened",()=>{n.params.closeByBackdropClick&&n.params.backdrop&&t.on("click",a)}),n.on("customModalClose",()=>{n.params.closeByBackdropClick&&n.params.backdrop&&t.off("click",a)}),_.extend(n,{app:t,$el:i,el:i[0],$backdropEl:o,backdropEl:o&&o[0],type:"customModal"}),i[0].f7Modal=n,n}},de={name:"modal",static:{Modal:pe,CustomModal:fe},create(){const t=this;t.customModal={create:e=>new fe(t,e)}},params:{modal:{moveToRoot:!0,queueDialogs:!0}}};rt.use([lt,ct]),k.use([F,D,j,N,$,B,st,nt,Zt,Kt,Qt,ee,re,ie,ae,se,ce,de]);var ge=k,ve=[{path:"/",component:{id:"0aa4eb5915",render(){return function(t,e,r){r=r||t||{};return'\x3c!-- Initial Page, "data-name" contains page name --\x3e<div data-name=home class=page>\x3c!-- Top Navbar\n    <div class="navbar">\n        <div class="navbar-bg"></div>\n        <div class="navbar-inner">\n        <div class="title">ESP App</div>\n        </div>\n    </div> --\x3e\x3c!-- Bottom Toolbar --\x3e\x3c!-- <div class="toolbar toolbar-bottom">\n        <div class="toolbar-inner"> --\x3e\x3c!-- Toolbar links --\x3e\x3c!-- <a href="#" class="link"><i class="f7-icons">house</i></a>\n        <a href="/about/" class="link">About</a>\n        </div>\n    </div> --\x3e\x3c!-- Scrollable page content --\x3e<div class=page-content>\x3c!-- OpenLayers Kartenfeld--\x3e<div id=map class=map></div></div></div>','\x3c!-- Initial Page, "data-name" contains page name --\x3e<div data-name=home class=page>\x3c!-- Top Navbar\n    <div class="navbar">\n        <div class="navbar-bg"></div>\n        <div class="navbar-inner">\n        <div class="title">ESP App</div>\n        </div>\n    </div> --\x3e\x3c!-- Bottom Toolbar --\x3e\x3c!-- <div class="toolbar toolbar-bottom">\n        <div class="toolbar-inner"> --\x3e\x3c!-- Toolbar links --\x3e\x3c!-- <a href="#" class="link"><i class="f7-icons">house</i></a>\n        <a href="/about/" class="link">About</a>\n        </div>\n    </div> --\x3e\x3c!-- Scrollable page content --\x3e<div class=page-content>\x3c!-- OpenLayers Kartenfeld--\x3e<div id=map class=map></div></div></div>'}(this)},styleScoped:!1},name:"home",keepAlive:!0,on:{}},{name:"about",path:"/about/",component:{id:"6238cee0c9",render(){return function(t,e,r){r=r||t||{};return'<div class="page page-about"><div class="navbar navbar-large navbar-transparent"><div class=navbar-bg></div><div class="navbar-inner sliding"><div class=left><a href=# class="link back"><i class="icon icon-back"></i> <span class=if-not-md>zurück</span></a></div><div class=title>Infos</div><div class=title-large><div class=title-large-text>Infos</div></div></div></div><div class=page-content><div class="block-title block-title-medium">Projekt "essbarer Stadtteil Dresden-Plauen"</div><div class="block block-strong"><p>ESP</p><p></p><p></p><p>Dresden, 2020</p></div></div></div>','<div class="page page-about"><div class="navbar navbar-large navbar-transparent"><div class=navbar-bg></div><div class="navbar-inner sliding"><div class=left><a href=# class="link back"><i class="icon icon-back"></i> <span class=if-not-md>zurück</span></a></div><div class=title>Infos</div><div class=title-large><div class=title-large-text>Infos</div></div></div></div><div class=page-content><div class="block-title block-title-medium">Projekt "essbarer Stadtteil Dresden-Plauen"</div><div class="block block-strong"><p>ESP</p><p></p><p></p><p>Dresden, 2020</p></div></div></div>'}(this)},styleScoped:!1}},{name:"left_panel_nav",path:"/left_panel_nav/",component:{id:"6b967c0f2c",render(){return function(t,e,r){r=r||t||{};return'<div class="panel panel-left panel-cover panel-resizable">\x3c!-- left side panel for navigation--\x3e\x3c!-- <div class="panel panel-left panel-cover panel-resizable panel-init">--\x3e<div class=page data-name=left_panel_nav><div class="navbar navbar-large navbar-transparent"><div class=navbar-bg></div><div class="navbar-inner sliding"><div class=left><a href=# class="link back"><i class="icon icon-back"></i> <span class=if-not-md>zurück</span></a></div><div class=title>Menü</div><div class=title-large><div class=title-large-text>Menü</div></div></div></div><div class=page-content>\x3c!--\n\n\n      <div class="block-title">Menü</div>\n      <div class="block">\n        <p></p>\n      </div>\n      <div class="block-title">Main View Navigation</div>--\x3e<div class="list links-list"><ul><li><a href=/ways/ class=panel-close>Routen</a></li><li><a href=/action-sheet/ class=panel-close>Essbares</a></li><li><a href=/settings/ class=panel-close>Einstellungen</a></li><li><a href=/about/ class=panel-close>Info+Datenquellen</a></li><li><a href=/cards/ class=panel-close>Kontakt / Feedback</a></li><li><a href=/checkbox/ class=panel-close>Impressum</a></li></ul>\x3c!--\n          <div class="left">\n              <a href="#" class="link back">\n              <i class="icon icon-back"></i>\n              <span class="if-not-md">zurück</span>\n              </a>\n          </div>--\x3e</div></div></div></div>','<div class="panel panel-left panel-cover panel-resizable">\x3c!-- left side panel for navigation--\x3e\x3c!-- <div class="panel panel-left panel-cover panel-resizable panel-init">--\x3e<div class=page data-name=left_panel_nav><div class="navbar navbar-large navbar-transparent"><div class=navbar-bg></div><div class="navbar-inner sliding"><div class=left><a href=# class="link back"><i class="icon icon-back"></i> <span class=if-not-md>zurück</span></a></div><div class=title>Menü</div><div class=title-large><div class=title-large-text>Menü</div></div></div></div><div class=page-content>\x3c!--\n\n\n      <div class="block-title">Menü</div>\n      <div class="block">\n        <p></p>\n      </div>\n      <div class="block-title">Main View Navigation</div>--\x3e<div class="list links-list"><ul><li><a href=/ways/ class=panel-close>Routen</a></li><li><a href=/action-sheet/ class=panel-close>Essbares</a></li><li><a href=/settings/ class=panel-close>Einstellungen</a></li><li><a href=/about/ class=panel-close>Info+Datenquellen</a></li><li><a href=/cards/ class=panel-close>Kontakt / Feedback</a></li><li><a href=/checkbox/ class=panel-close>Impressum</a></li></ul>\x3c!--\n          <div class="left">\n              <a href="#" class="link back">\n              <i class="icon icon-back"></i>\n              <span class="if-not-md">zurück</span>\n              </a>\n          </div>--\x3e</div></div></div></div>'}(this)},styleScoped:!1}},{name:"ways",path:"/ways/",component:{id:"bf6f092d7c",render(){return function(t,e,r){r=r||t||{};return'\x3c!-- Initial Page, "data-name" contains page name --\x3e<div data-name=ways class=page>\x3c!-- Top Navbar\n    <div class="navbar">\n        <div class="navbar-bg"></div>\n        <div class="navbar-inner">\n        <div class="title">ESP App</div>\n        </div>\n    </div> --\x3e\x3c!-- Bottom Toolbar --\x3e\x3c!-- <div class="toolbar toolbar-bottom">\n        <div class="toolbar-inner"> --\x3e\x3c!-- Toolbar links --\x3e\x3c!-- <a href="#" class="link"><i class="f7-icons">house</i></a>\n        <a href="/about/" class="link">About</a>\n        </div>\n    </div> --\x3e\x3c!-- Scrollable page content --\x3e<div class=page-content>\x3c!-- OpenLayers Kartenfeld--\x3e<div id=map class=map></div></div></div>','\x3c!-- Initial Page, "data-name" contains page name --\x3e<div data-name=ways class=page>\x3c!-- Top Navbar\n    <div class="navbar">\n        <div class="navbar-bg"></div>\n        <div class="navbar-inner">\n        <div class="title">ESP App</div>\n        </div>\n    </div> --\x3e\x3c!-- Bottom Toolbar --\x3e\x3c!-- <div class="toolbar toolbar-bottom">\n        <div class="toolbar-inner"> --\x3e\x3c!-- Toolbar links --\x3e\x3c!-- <a href="#" class="link"><i class="f7-icons">house</i></a>\n        <a href="/about/" class="link">About</a>\n        </div>\n    </div> --\x3e\x3c!-- Scrollable page content --\x3e<div class=page-content>\x3c!-- OpenLayers Kartenfeld--\x3e<div id=map class=map></div></div></div>'}(this)},styleScoped:!1}},{name:"settings",path:"/settings/",component:{id:"e2ef194a82",render(){return function(t,e,r){r=r||t||{};return'\x3c!-- evt. brauche ich eine aufgeklapptes Accordion--\x3e<div class=page data-name=settings><div class="navbar navbar-large navbar-transparent"><div class=navbar-bg></div><div class="navbar-inner sliding"><div class=left><a href=# class="link back"><i class="icon icon-back"></i> <span class=if-not-md>Okay</span></a></div><div class=title>Einstellungen</div><div class=title-large><div class=title-large-text>Einstellungen</div></div></div></div><div class=page-content><div class=block-title>Karte</div><div class="list simple-list"><ul><li><span>OpenStreetMap</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li><li><span>Höhenlinien</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li><li><span>Alle Routen</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li><li><span>essbare Objekte</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li><li><span>Point of Interests</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li></ul></div></div></div>','\x3c!-- evt. brauche ich eine aufgeklapptes Accordion--\x3e<div class=page data-name=settings><div class="navbar navbar-large navbar-transparent"><div class=navbar-bg></div><div class="navbar-inner sliding"><div class=left><a href=# class="link back"><i class="icon icon-back"></i> <span class=if-not-md>Okay</span></a></div><div class=title>Einstellungen</div><div class=title-large><div class=title-large-text>Einstellungen</div></div></div></div><div class=page-content><div class=block-title>Karte</div><div class="list simple-list"><ul><li><span>OpenStreetMap</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li><li><span>Höhenlinien</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li><li><span>Alle Routen</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li><li><span>essbare Objekte</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li><li><span>Point of Interests</span> <label class="toggle toggle-init"><input type=checkbox checked=checked> <span class=toggle-icon></span></label></li></ul></div></div></div>'}(this)},styleScoped:!1},options:{animate:!0,transition:"f7-parallax"},on:{pageAfterIn:function(t,e){},pageInit:function(t,e){}}},{path:"(.*)",component:{id:"15fa3ceb44",render(){return function(t,e,r){r=r||t||{};return'<div class=page><div class=navbar><div class=navbar-bg></div><div class="navbar-inner sliding"><div class=left><a href=# class="link back"><i class="icon icon-back"></i> <span class=if-not-md>Back</span></a></div><div class=title>Not found</div></div></div><div class=page-content><div class="block block-strong"><p>Sorry</p><p>Requested content not found.</p></div></div></div>','<div class=page><div class=navbar><div class=navbar-bg></div><div class="navbar-inner sliding"><div class=left><a href=# class="link back"><i class="icon icon-back"></i> <span class=if-not-md>Back</span></a></div><div class=title>Not found</div></div></div><div class=page-content><div class="block block-strong"><p>Sorry</p><p>Requested content not found.</p></div></div></div>'}(this)},styleScoped:!1}}];console.log("run JS file: framework7.js"),console.log("var app = new Framework7()");var me=new ge({root:"#app",name:"ESP App",id:"com.myapp.test",theme:"aurora",panel:{swipe:!0},routes:ve,on:{pageInit:function(){}}});console.log("var mainView = app.views.create( view-main");var ye=me.views.create(".view-main",{url:"/"});var _e=!1;function be(){return function(){throw new Error("Unimplemented abstract method.")}()}d(".btn_menu").on("click",(function(){0==_e?(console.log("Button Menu clicked! value = "+_e),_e=!0,ye.router.navigate("/left_panel_nav/")):1==_e&&(console.log("Button Menu clicked! value = "+_e),_e=!1,ye.router.back())}));var xe=0;function we(t){return t.ol_uid||(t.ol_uid=String(++xe))}var Ce=function(t){function e(e){var r="Assertion failed. See https://openlayers.org/en/"+("v"+"5.3.3".split("-")[0])+"/doc/errors/#"+e+" for details.";t.call(this,r),this.code=e,this.name="AssertionError",this.message=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),Ee="add",Se="remove",Te="propertychange",ke="function"==typeof Object.assign?Object.assign:function(t,e){var r=arguments;if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1,o=arguments.length;i<o;++i){var a=r[i];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(n[s]=a[s])}return n};function Re(t){for(var e in t)delete t[e]}function Oe(t){var e=[];for(var r in t)e.push(t[r]);return e}function Pe(t){var e;for(e in t)return!1;return!e}function Ae(t,e,r,n){for(var i,o=0,a=t.length;o<a;++o)if((i=t[o]).listener===e&&i.bindTo===r)return n&&(i.deleteIndex=o),i}function Me(t,e){var r=Le(t);return r?r[e]:void 0}function Le(t,e){var r=t.ol_lm;return!r&&e&&(r=t.ol_lm={}),r}function Ie(t,e){var r=Me(t,e);if(r){for(var n=0,i=r.length;n<i;++n)t.removeEventListener(e,r[n].boundListener),Re(r[n]);r.length=0;var o=Le(t);o&&(delete o[e],0===Object.keys(o).length&&function(t){delete t.ol_lm}(t))}}function Fe(t,e,r,n,i){var o=Le(t,!0),a=o[e];a||(a=o[e]=[]);var s=Ae(a,r,n,!1);return s?i||(s.callOnce=!1):(s={bindTo:n,callOnce:!!i,listener:r,target:t,type:e},t.addEventListener(e,function(t){var e=function(e){var r=t.listener,n=t.bindTo||t.target;return t.callOnce&&Ne(t),r.call(n,e)};return t.boundListener=e,e}(s)),a.push(s)),s}function De(t,e,r,n){return Fe(t,e,r,n,!0)}function je(t,e,r,n){var i=Me(t,e);if(i){var o=Ae(i,r,n,!0);o&&Ne(o)}}function Ne(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var e=Me(t.target,t.type);if(e){var r="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==r&&e.splice(r,1),0===e.length&&Ie(t.target,t.type)}Re(t)}}var $e=function(){this.disposed_=!1};$e.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},$e.prototype.disposeInternal=function(){};var Be=$e;function Ge(){return!0}function Ue(){return!1}function ze(){}var We=function(t){this.propagationStopped,this.type=t,this.target=null};function qe(t){t.stopPropagation()}We.prototype.preventDefault=function(){this.propagationStopped=!0},We.prototype.stopPropagation=function(){this.propagationStopped=!0};var He=We,Xe=function(t){function e(){t.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addEventListener=function(t,e){var r=this.listeners_[t];r||(r=this.listeners_[t]=[]),-1===r.indexOf(e)&&r.push(e)},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new He(t):t,r=e.type;e.target=this;var n,i=this.listeners_[r];if(i){r in this.dispatching_||(this.dispatching_[r]=0,this.pendingRemovals_[r]=0),++this.dispatching_[r];for(var o=0,a=i.length;o<a;++o)if(!1===i[o].call(this,e)||e.propagationStopped){n=!1;break}if(--this.dispatching_[r],0===this.dispatching_[r]){var s=this.pendingRemovals_[r];for(delete this.pendingRemovals_[r];s--;)this.removeEventListener(r,ze);delete this.dispatching_[r]}return n}},e.prototype.disposeInternal=function(){!function(t){var e=Le(t);if(e)for(var r in e)Ie(t,r)}(this)},e.prototype.getListeners=function(t){return this.listeners_[t]},e.prototype.hasListener=function(t){return t?t in this.listeners_:Object.keys(this.listeners_).length>0},e.prototype.removeEventListener=function(t,e){var r=this.listeners_[t];if(r){var n=r.indexOf(e);t in this.pendingRemovals_?(r[n]=ze,++this.pendingRemovals_[t]):(r.splice(n,1),0===r.length&&delete this.listeners_[t])}},e}(Be),Ve="change",Ye="clear",Ke="contextmenu",Ze="click",Je="dblclick",Qe="error",tr="keydown",er="keypress",rr="load",nr="mousedown",ir="mousewheel",or="MSPointerDown",ar="resize",sr="touchstart",lr="wheel";var cr=function(t){function e(){t.call(this),this.revision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){++this.revision_,this.dispatchEvent(Ve)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=Fe(this,t[i],e);return n}return Fe(this,t,e)},e.prototype.once=function(t,e){if(Array.isArray(t)){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=De(this,t[i],e);return n}return De(this,t,e)},e.prototype.un=function(t,e){if(Array.isArray(t))for(var r=0,n=t.length;r<n;++r)je(this,t[r],e);else je(this,t,e)},e}(Xe),ur=function(t){function e(e,r,n){t.call(this,e),this.key=r,this.oldValue=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(He),hr={};function pr(t){return hr.hasOwnProperty(t)?hr[t]:hr[t]="change:"+t}var fr=function(t){function e(e){t.call(this),we(this),this.values_={},void 0!==e&&this.setProperties(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return ke({},this.values_)},e.prototype.notify=function(t,e){var r;r=pr(t),this.dispatchEvent(new ur(r,t,e)),r=Te,this.dispatchEvent(new ur(r,t,e))},e.prototype.set=function(t,e,r){if(r)this.values_[t]=e;else{var n=this.values_[t];this.values_[t]=e,n!==e&&this.notify(t,n)}},e.prototype.setProperties=function(t,e){for(var r in t)this.set(r,t[r],e)},e.prototype.unset=function(t,e){if(t in this.values_){var r=this.values_[t];delete this.values_[t],e||this.notify(t,r)}},e}(cr),dr="length",gr=function(t){function e(e,r){t.call(this,e),this.element=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(He),vr=function(t){function e(e,r){t.call(this);var n=r||{};if(this.unique_=!!n.unique,this.array_=e||[],this.unique_)for(var i=0,o=this.array_.length;i<o;++i)this.assertUnique_(this.array_[i],i);this.updateLength_()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,r=t.length;e<r;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)t(e[r],r,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(dr)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new gr(Ee,e))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,r=0,n=e.length;r<n;++r)if(e[r]===t)return this.removeAt(r)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new gr(Se,e)),e},e.prototype.setAt=function(t,e){var r=this.getLength();if(t<r){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new gr(Se,n)),this.dispatchEvent(new gr(Ee,e))}else{for(var i=r;i<t;++i)this.insertAt(i,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(dr,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var r=0,n=this.array_.length;r<n;++r)if(this.array_[r]===t&&r!==e)throw new Ce(58)},e}(fr),mr=function(t){function e(e,r,n){t.call(this,e),this.map=r,this.frameState=void 0!==n?n:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(He),yr=function(t){function e(e,r,n,i,o){t.call(this,e,r,o),this.originalEvent=n,this.pixel=r.getEventPixel(n),this.coordinate=r.getCoordinateFromPixel(this.pixel),this.dragging=void 0!==i&&i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},e}(mr),_r="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",br=-1!==_r.indexOf("firefox"),xr=-1!==_r.indexOf("safari")&&-1==_r.indexOf("chrom"),wr=-1!==_r.indexOf("webkit")&&-1==_r.indexOf("edge"),Cr=-1!==_r.indexOf("macintosh"),Er=window.devicePixelRatio||1,Sr=function(){var t=!1;try{t=!!document.createElement("canvas").getContext("2d").setLineDash}catch(t){}return t}(),Tr=(navigator,"ontouchstart"in window),kr="PointerEvent"in window,Rr=!!navigator.msPointerEnabled,Or={SINGLECLICK:"singleclick",CLICK:Ze,DBLCLICK:Je,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},Pr=function(t){function e(e,r,n,i,o){t.call(this,e,r,n.originalEvent,i,o),this.pointerEvent=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(yr),Ar="pointermove",Mr="pointerdown",Lr="pointerup",Ir="pointerover",Fr="pointerout",Dr="pointerenter",jr="pointerleave",Nr="pointercancel",$r=function(t,e){this.dispatcher=t,this.mapping_=e};$r.prototype.getEvents=function(){return Object.keys(this.mapping_)},$r.prototype.getHandlerForEvent=function(t){return this.mapping_[t]};var Br=$r;function Gr(t){if(!this.isEventSimulatedFromTouch_(t)){1..toString()in this.pointerMap&&this.cancel(t);var e=Hr(t,this.dispatcher);this.pointerMap[1..toString()]=t,this.dispatcher.down(e,t)}}function Ur(t){if(!this.isEventSimulatedFromTouch_(t)){var e=Hr(t,this.dispatcher);this.dispatcher.move(e,t)}}function zr(t){if(!this.isEventSimulatedFromTouch_(t)){var e=this.pointerMap[1..toString()];if(e&&e.button===t.button){var r=Hr(t,this.dispatcher);this.dispatcher.up(r,t),this.cleanupMouse()}}}function Wr(t){if(!this.isEventSimulatedFromTouch_(t)){var e=Hr(t,this.dispatcher);this.dispatcher.enterOver(e,t)}}function qr(t){if(!this.isEventSimulatedFromTouch_(t)){var e=Hr(t,this.dispatcher);this.dispatcher.leaveOut(e,t)}}function Hr(t,e){var r=e.cloneEvent(t,t),n=r.preventDefault;return r.preventDefault=function(){t.preventDefault(),n()},r.pointerId=1,r.isPrimary=!0,r.pointerType="mouse",r}var Xr=function(t){function e(e){var r={mousedown:Gr,mousemove:Ur,mouseup:zr,mouseover:Wr,mouseout:qr};t.call(this,e,r),this.pointerMap=e.pointerMap,this.lastTouches=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isEventSimulatedFromTouch_=function(t){for(var e=this.lastTouches,r=t.clientX,n=t.clientY,i=0,o=e.length,a=void 0;i<o&&(a=e[i]);i++){var s=Math.abs(r-a[0]),l=Math.abs(n-a[1]);if(s<=25&&l<=25)return!0}return!1},e.prototype.cancel=function(t){var e=Hr(t,this.dispatcher);this.dispatcher.cancel(e,t),this.cleanupMouse()},e.prototype.cleanupMouse=function(){delete this.pointerMap[1..toString()]},e}(Br),Vr=["","unavailable","touch","pen","mouse"];function Yr(t){this.pointerMap[t.pointerId.toString()]=t;var e=this.prepareEvent_(t);this.dispatcher.down(e,t)}function Kr(t){var e=this.prepareEvent_(t);this.dispatcher.move(e,t)}function Zr(t){var e=this.prepareEvent_(t);this.dispatcher.up(e,t),this.cleanup(t.pointerId)}function Jr(t){var e=this.prepareEvent_(t);this.dispatcher.leaveOut(e,t)}function Qr(t){var e=this.prepareEvent_(t);this.dispatcher.enterOver(e,t)}function tn(t){var e=this.prepareEvent_(t);this.dispatcher.cancel(e,t),this.cleanup(t.pointerId)}function en(t){var e=this.dispatcher.makeEvent("lostpointercapture",t,t);this.dispatcher.dispatchEvent(e)}function rn(t){var e=this.dispatcher.makeEvent("gotpointercapture",t,t);this.dispatcher.dispatchEvent(e)}var nn=function(t){function e(e){var r={MSPointerDown:Yr,MSPointerMove:Kr,MSPointerUp:Zr,MSPointerOut:Jr,MSPointerOver:Qr,MSPointerCancel:tn,MSGotPointerCapture:rn,MSLostPointerCapture:en};t.call(this,e,r),this.pointerMap=e.pointerMap}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvent_=function(t){var e=t;return"number"==typeof t.pointerType&&((e=this.dispatcher.cloneEvent(t,t)).pointerType=Vr[t.pointerType]),e},e.prototype.cleanup=function(t){delete this.pointerMap[t.toString()]},e}(Br);function on(t){this.dispatcher.fireNativeEvent(t)}function an(t){this.dispatcher.fireNativeEvent(t)}function sn(t){this.dispatcher.fireNativeEvent(t)}function ln(t){this.dispatcher.fireNativeEvent(t)}function cn(t){this.dispatcher.fireNativeEvent(t)}function un(t){this.dispatcher.fireNativeEvent(t)}function hn(t){this.dispatcher.fireNativeEvent(t)}function pn(t){this.dispatcher.fireNativeEvent(t)}var fn=function(t){function e(e){var r={pointerdown:on,pointermove:an,pointerup:sn,pointerout:ln,pointerover:cn,pointercancel:un,gotpointercapture:pn,lostpointercapture:hn};t.call(this,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Br),dn=!1,gn=function(t){function e(e,r,n){t.call(this,e),this.originalEvent=r;var i=n||{};this.buttons=function(t){var e;if(t.buttons||dn)e=t.buttons;else switch(t.which){case 1:e=1;break;case 2:e=4;break;case 3:e=2;break;default:e=0}return e}(i),this.pressure=function(t,e){var r=0;r=t.pressure?t.pressure:e?.5:0;return r}(i,this.buttons),this.bubbles="bubbles"in i&&i.bubbles,this.cancelable="cancelable"in i&&i.cancelable,this.view="view"in i?i.view:null,this.detail="detail"in i?i.detail:null,this.screenX="screenX"in i?i.screenX:0,this.screenY="screenY"in i?i.screenY:0,this.clientX="clientX"in i?i.clientX:0,this.clientY="clientY"in i?i.clientY:0,this.ctrlKey="ctrlKey"in i&&i.ctrlKey,this.altKey="altKey"in i&&i.altKey,this.shiftKey="shiftKey"in i&&i.shiftKey,this.metaKey="metaKey"in i&&i.metaKey,this.button="button"in i?i.button:0,this.relatedTarget="relatedTarget"in i?i.relatedTarget:null,this.pointerId="pointerId"in i?i.pointerId:0,this.width="width"in i?i.width:0,this.height="height"in i?i.height:0,this.tiltX="tiltX"in i?i.tiltX:0,this.tiltY="tiltY"in i?i.tiltY:0,this.pointerType="pointerType"in i?i.pointerType:"",this.hwTimestamp="hwTimestamp"in i?i.hwTimestamp:0,this.isPrimary="isPrimary"in i&&i.isPrimary,r.preventDefault&&(this.preventDefault=function(){r.preventDefault()})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(He);!function(){try{var t=new MouseEvent("click",{buttons:1});dn=1===t.buttons}catch(t){}}();var vn=gn;function mn(t,e){return t>e?1:t<e?-1:0}function yn(t,e,r){var n,i=t.length;if(t[0]<=e)return 0;if(e<=t[i-1])return i-1;if(r>0){for(n=1;n<i;++n)if(t[n]<e)return n-1}else if(r<0){for(n=1;n<i;++n)if(t[n]<=e)return n}else for(n=1;n<i;++n){if(t[n]==e)return n;if(t[n]<e)return t[n-1]-e<e-t[n]?n-1:n}return i-1}function _n(t,e,r){for(;e<r;){var n=t[e];t[e]=t[r],t[r]=n,++e,--r}}function bn(t,e){for(var r=Array.isArray(e)?e:[e],n=r.length,i=0;i<n;i++)t[t.length]=r[i]}function xn(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function wn(t){this.vacuumTouches_(t),this.setPrimaryTouch_(t.changedTouches[0]),this.dedupSynthMouse_(t),this.clickCount_++,this.processTouches_(t,this.overDown_)}function Cn(t){this.processTouches_(t,this.moveOverOut_)}function En(t){this.dedupSynthMouse_(t),this.processTouches_(t,this.upOut_)}function Sn(t){this.processTouches_(t,this.cancelOut_)}var Tn=function(t){function e(e,r){var n={touchstart:wn,touchmove:Cn,touchend:En,touchcancel:Sn};t.call(this,e,n),this.pointerMap=e.pointerMap,this.mouseSource=r,this.firstTouchId_=void 0,this.clickCount_=0,this.resetId_,this.dedupTimeout_=2500}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isPrimaryTouch_=function(t){return this.firstTouchId_===t.identifier},e.prototype.setPrimaryTouch_=function(t){var e=Object.keys(this.pointerMap).length;(0===e||1===e&&1..toString()in this.pointerMap)&&(this.firstTouchId_=t.identifier,this.cancelResetClickCount_())},e.prototype.removePrimaryPointer_=function(t){t.isPrimary&&(this.firstTouchId_=void 0,this.resetClickCount_())},e.prototype.resetClickCount_=function(){this.resetId_=setTimeout(this.resetClickCountHandler_.bind(this),200)},e.prototype.resetClickCountHandler_=function(){this.clickCount_=0,this.resetId_=void 0},e.prototype.cancelResetClickCount_=function(){void 0!==this.resetId_&&clearTimeout(this.resetId_)},e.prototype.touchToPointer_=function(t,e){var r=this.dispatcher.cloneEvent(t,e);return r.pointerId=e.identifier+2,r.bubbles=!0,r.cancelable=!0,r.detail=this.clickCount_,r.button=0,r.buttons=1,r.width=e.radiusX||0,r.height=e.radiusY||0,r.pressure=e.force||.5,r.isPrimary=this.isPrimaryTouch_(e),r.pointerType="touch",r.clientX=e.clientX,r.clientY=e.clientY,r.screenX=e.screenX,r.screenY=e.screenY,r},e.prototype.processTouches_=function(t,e){var r=Array.prototype.slice.call(t.changedTouches),n=r.length;function i(){t.preventDefault()}for(var o=0;o<n;++o){var a=this.touchToPointer_(t,r[o]);a.preventDefault=i,e.call(this,t,a)}},e.prototype.findTouch_=function(t,e){for(var r=t.length,n=0;n<r;n++){if(t[n].identifier===e)return!0}return!1},e.prototype.vacuumTouches_=function(t){var e=t.touches,r=Object.keys(this.pointerMap),n=r.length;if(n>=e.length){for(var i=[],o=0;o<n;++o){var a=Number(r[o]),s=this.pointerMap[a];1==a||this.findTouch_(e,a-2)||i.push(s.out)}for(var l=0;l<i.length;++l)this.cancelOut_(t,i[l])}},e.prototype.overDown_=function(t,e){this.pointerMap[e.pointerId]={target:e.target,out:e,outTarget:e.target},this.dispatcher.over(e,t),this.dispatcher.enter(e,t),this.dispatcher.down(e,t)},e.prototype.moveOverOut_=function(t,e){var r=e,n=this.pointerMap[r.pointerId];if(n){var i=n.out,o=n.outTarget;this.dispatcher.move(r,t),i&&o!==r.target&&(i.relatedTarget=r.target,r.relatedTarget=o,i.target=o,r.target?(this.dispatcher.leaveOut(i,t),this.dispatcher.enterOver(r,t)):(r.target=o,r.relatedTarget=null,this.cancelOut_(t,r))),n.out=r,n.outTarget=r.target}},e.prototype.upOut_=function(t,e){this.dispatcher.up(e,t),this.dispatcher.out(e,t),this.dispatcher.leave(e,t),this.cleanUpPointer_(e)},e.prototype.cancelOut_=function(t,e){this.dispatcher.cancel(e,t),this.dispatcher.out(e,t),this.dispatcher.leave(e,t),this.cleanUpPointer_(e)},e.prototype.cleanUpPointer_=function(t){delete this.pointerMap[t.pointerId],this.removePrimaryPointer_(t)},e.prototype.dedupSynthMouse_=function(t){var e=this.mouseSource.lastTouches,r=t.changedTouches[0];if(this.isPrimaryTouch_(r)){var n=[r.clientX,r.clientY];e.push(n),setTimeout((function(){var t,r,i;r=n,i=(t=e).indexOf(r),i>-1&&t.splice(i,1)}),this.dedupTimeout_)}},e}(Br),kn=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]],Rn=function(t){function e(e){t.call(this),this.element_=e,this.pointerMap={},this.eventMap_={},this.eventSourceList_=[],this.registerSources()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.registerSources=function(){if(kr)this.registerSource("native",new fn(this));else if(Rr)this.registerSource("ms",new nn(this));else{var t=new Xr(this);this.registerSource("mouse",t),Tr&&this.registerSource("touch",new Tn(this,t))}this.register_()},e.prototype.registerSource=function(t,e){var r=e,n=r.getEvents();n&&(n.forEach(function(t){var e=r.getHandlerForEvent(t);e&&(this.eventMap_[t]=e.bind(r))}.bind(this)),this.eventSourceList_.push(r))},e.prototype.register_=function(){for(var t=this.eventSourceList_.length,e=0;e<t;e++){var r=this.eventSourceList_[e];this.addEvents_(r.getEvents())}},e.prototype.unregister_=function(){for(var t=this.eventSourceList_.length,e=0;e<t;e++){var r=this.eventSourceList_[e];this.removeEvents_(r.getEvents())}},e.prototype.eventHandler_=function(t){var e=t.type,r=this.eventMap_[e];r&&r(t)},e.prototype.addEvents_=function(t){t.forEach(function(t){Fe(this.element_,t,this.eventHandler_,this)}.bind(this))},e.prototype.removeEvents_=function(t){t.forEach(function(t){je(this.element_,t,this.eventHandler_,this)}.bind(this))},e.prototype.cloneEvent=function(t,e){for(var r={},n=0,i=kn.length;n<i;n++){var o=kn[n][0];r[o]=t[o]||e[o]||kn[n][1]}return r},e.prototype.down=function(t,e){this.fireEvent(Mr,t,e)},e.prototype.move=function(t,e){this.fireEvent(Ar,t,e)},e.prototype.up=function(t,e){this.fireEvent(Lr,t,e)},e.prototype.enter=function(t,e){t.bubbles=!1,this.fireEvent(Dr,t,e)},e.prototype.leave=function(t,e){t.bubbles=!1,this.fireEvent(jr,t,e)},e.prototype.over=function(t,e){t.bubbles=!0,this.fireEvent(Ir,t,e)},e.prototype.out=function(t,e){t.bubbles=!0,this.fireEvent(Fr,t,e)},e.prototype.cancel=function(t,e){this.fireEvent(Nr,t,e)},e.prototype.leaveOut=function(t,e){this.out(t,e),this.contains_(t.target,t.relatedTarget)||this.leave(t,e)},e.prototype.enterOver=function(t,e){this.over(t,e),this.contains_(t.target,t.relatedTarget)||this.enter(t,e)},e.prototype.contains_=function(t,e){return!(!t||!e)&&t.contains(e)},e.prototype.makeEvent=function(t,e,r){return new vn(t,r,e)},e.prototype.fireEvent=function(t,e,r){var n=this.makeEvent(t,e,r);this.dispatchEvent(n)},e.prototype.fireNativeEvent=function(t){var e=this.makeEvent(t.type,t,t);this.dispatchEvent(e)},e.prototype.wrapMouseEvent=function(t,e){return this.makeEvent(t,Hr(e,this),e)},e.prototype.disposeInternal=function(){this.unregister_(),t.prototype.disposeInternal.call(this)},e}(Xe),On=function(t){function e(e,r){t.call(this),this.map_=e,this.clickTimeoutId_,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=r?r*Er:Er,this.down_=null;var n=this.map_.getViewport();this.activePointers_=0,this.trackedTouches_={},this.pointerEventHandler_=new Rn(n),this.documentPointerEventHandler_=null,this.pointerdownListenerKey_=Fe(this.pointerEventHandler_,Mr,this.handlePointerDown_,this),this.relayedListenerKey_=Fe(this.pointerEventHandler_,Ar,this.relayEvent_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.emulateClick_=function(t){var e=new Pr(Or.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new Pr(Or.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new Pr(Or.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==Or.POINTERUP||e.type==Or.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==Or.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new Pr(Or.POINTERUP,this.map_,t);this.dispatchEvent(e),e.propagationStopped||this.dragging_||!this.isMouseActionButton_(t)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(Ne),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null,this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.updateActivePointers_(t);var e=new Pr(Or.POINTERDOWN,this.map_,t);this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length&&(this.documentPointerEventHandler_=new Rn(document),this.dragListenerKeys_.push(Fe(this.documentPointerEventHandler_,Or.POINTERMOVE,this.handlePointerMove_,this),Fe(this.documentPointerEventHandler_,Or.POINTERUP,this.handlePointerUp_,this),Fe(this.pointerEventHandler_,Or.POINTERCANCEL,this.handlePointerUp_,this)))},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new Pr(Or.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}t.preventDefault()},e.prototype.relayEvent_=function(t){var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new Pr(t.type,this.map_,t,e))},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Ne(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(Ne(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Ne),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),t.prototype.disposeInternal.call(this)},e}(Xe),Pn="postrender",An="movestart",Mn="moveend",Ln="layergroup",In="size",Fn="target",Dn="view",jn="postcompose",Nn="precompose",$n="render",Bn="rendercomplete",Gn=0,Un=1,zn=2,Wn=3,qn=4,Hn=5;function Xn(t,e){if(!t)throw new Ce(e)}var Vn=function(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}};Vn.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Re(this.queuedElements_)},Vn.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,r=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(r);return delete this.queuedElements_[n],r},Vn.prototype.enqueue=function(t){Xn(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=1/0&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},Vn.prototype.getCount=function(){return this.elements_.length},Vn.prototype.getLeftChildIndex_=function(t){return 2*t+1},Vn.prototype.getRightChildIndex_=function(t){return 2*t+2},Vn.prototype.getParentIndex_=function(t){return t-1>>1},Vn.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},Vn.prototype.isEmpty=function(){return 0===this.elements_.length},Vn.prototype.isKeyQueued=function(t){return t in this.queuedElements_},Vn.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},Vn.prototype.siftUp_=function(t){for(var e=this.elements_,r=this.priorities_,n=e.length,i=e[t],o=r[t],a=t;t<n>>1;){var s=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),c=l<n&&r[l]<r[s]?l:s;e[t]=e[c],r[t]=r[c],t=c}e[t]=i,r[t]=o,this.siftDown_(a,t)},Vn.prototype.siftDown_=function(t,e){for(var r=this.elements_,n=this.priorities_,i=r[e],o=n[e];e>t;){var a=this.getParentIndex_(e);if(!(n[a]>o))break;r[e]=r[a],n[e]=n[a],e=a}r[e]=i,n[e]=o},Vn.prototype.reprioritize=function(){var t,e,r,n=this.priorityFunction_,i=this.elements_,o=this.priorities_,a=0,s=i.length;for(e=0;e<s;++e)(r=n(t=i[e]))==1/0?delete this.queuedElements_[this.keyFunction_(t)]:(o[a]=r,i[a++]=t);i.length=a,o.length=a,this.heapify_()};var Yn=function(t){function e(e,r){t.call(this,(function(t){return e.apply(null,t)}),(function(t){return t[0].getKey()})),this.tileChangeCallback_=r,this.tilesLoading_=0,this.tilesLoadingKeys_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.enqueue=function(e){var r=t.prototype.enqueue.call(this,e);r&&Fe(e[0],Ve,this.handleTileChange,this);return r},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,r=e.getState();if(r===zn||r===Wn||r===qn||r===Hn){je(e,Ve,this.handleTileChange,this);var n=e.getKey();n in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[n],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var r,n,i,o=0,a=!1;this.tilesLoading_<t&&o<e&&this.getCount()>0;)i=(n=this.dequeue()[0]).getKey(),(r=n.getState())===Hn?a=!0:r!==Gn||i in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[i]=!0,++this.tilesLoading_,++o,n.load());0===o&&a&&this.tileChangeCallback_()},e}(Vn);function Kn(t,e,r){return Math.min(Math.max(t,e),r)}var Zn="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function Jn(t,e,r,n,i,o){var a=i-r,s=o-n;if(0!==a||0!==s){var l=((t-r)*a+(e-n)*s)/(a*a+s*s);l>1?(r=i,n=o):l>0&&(r+=a*l,n+=s*l)}return Qn(t,e,r,n)}function Qn(t,e,r,n){var i=r-t,o=n-e;return i*i+o*o}function ti(t){return t*Math.PI/180}function ei(t,e){var r=t%e;return r*e<0?r+e:r}function ri(t,e,r){return t+r*(e-t)}function ni(t){return t}function ii(t,e){return void 0!==t?0:void 0}function oi(t,e){return void 0!==t?t+e:void 0}var ai=0,si=1,li="center",ci="resolution",ui="rotation";function hi(t,e){return t[0]+=e[0],t[1]+=e[1],t}function pi(t,e){var r=Math.cos(e),n=Math.sin(e),i=t[0]*r-t[1]*n,o=t[1]*r+t[0]*n;return t[0]=i,t[1]=o,t}function fi(t,e){return t[0]*=e,t[1]*=e,t}function di(t){return Math.pow(t,3)}function gi(t){return 1-di(1-t)}function vi(t){return 3*t*t-2*t*t*t}function mi(t){return t}var yi="bottom-left",_i="bottom-right",bi="top-left",xi="top-right",wi=0,Ci=1,Ei=2,Si=4,Ti=8,ki=16;function Ri(t){for(var e=Di(),r=0,n=t.length;r<n;++r)Ui(e,t[r]);return e}function Oi(t,e,r){return r?(r[0]=t[0]-e,r[1]=t[1]-e,r[2]=t[2]+e,r[3]=t[3]+e,r):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function Pi(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function Ai(t,e,r){var n,i;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(i=r<t[1]?t[1]-r:t[3]<r?r-t[3]:0)*i}function Mi(t,e){return Ii(t,e[0],e[1])}function Li(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function Ii(t,e,r){return t[0]<=e&&e<=t[2]&&t[1]<=r&&r<=t[3]}function Fi(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=e[0],s=e[1],l=wi;return a<r?l|=ki:a>i&&(l|=Si),s<n?l|=Ti:s>o&&(l|=Ei),l===wi&&(l=Ci),l}function Di(){return[1/0,1/0,-1/0,-1/0]}function ji(t,e,r,n,i){return i?(i[0]=t,i[1]=e,i[2]=r,i[3]=n,i):[t,e,r,n]}function Ni(t){return ji(1/0,1/0,-1/0,-1/0,t)}function $i(t,e,r,n,i){return Wi(Ni(i),t,e,r,n)}function Bi(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function Gi(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function Ui(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function zi(t,e){for(var r=0,n=e.length;r<n;++r)Ui(t,e[r]);return t}function Wi(t,e,r,n,i){for(;r<n;r+=i)qi(t,e[r],e[r+1]);return t}function qi(t,e,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],r),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],r)}function Hi(t){var e=0;return io(t)||(e=ro(t)*Ji(t)),e}function Xi(t){return[t[0],t[1]]}function Vi(t){return[t[2],t[1]]}function Yi(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Ki(t,e){var r;return e===yi?r=Xi(t):e===_i?r=Vi(t):e===bi?r=to(t):e===xi?r=eo(t):Xn(!1,13),r}function Zi(t,e,r,n,i){var o=e*n[0]/2,a=e*n[1]/2,s=Math.cos(r),l=Math.sin(r),c=o*s,u=o*l,h=a*s,p=a*l,f=t[0],d=t[1],g=f-c+p,v=f-c-p,m=f+c-p,y=f+c+p,_=d-u-h,b=d-u+h,x=d+u+h,w=d+u-h;return ji(Math.min(g,v,m,y),Math.min(_,b,x,w),Math.max(g,v,m,y),Math.max(_,b,x,w),i)}function Ji(t){return t[3]-t[1]}function Qi(t,e,r){var n=r||[1/0,1/0,-1/0,-1/0];return no(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):Ni(n),n}function to(t){return[t[0],t[3]]}function eo(t){return[t[2],t[3]]}function ro(t){return t[2]-t[0]}function no(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function io(t){return t[2]<t[0]||t[3]<t[1]}function oo(t,e,r){var n=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(n,n,2),function(t,e,r){return ji(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),r)}([n[0],n[2],n[4],n[6]],[n[1],n[3],n[5],n[7]],r)}var ao="Point",so="LineString",lo="LinearRing",co="Polygon",uo="MultiPoint",ho="MultiLineString",po="MultiPolygon",fo="GeometryCollection",go="Circle",vo="XY",mo="XYZ",yo="XYM",_o="XYZM";function bo(t,e,r,n,i,o){for(var a=o||[],s=0,l=e;l<r;l+=n){var c=t[l],u=t[l+1];a[s++]=i[0]*c+i[2]*u+i[4],a[s++]=i[1]*c+i[3]*u+i[5]}return o&&a.length!=s&&(a.length=s),a}function xo(t,e,r){var n=r||6371008.8,i=ti(t[1]),o=ti(e[1]),a=(o-i)/2,s=ti(e[0]-t[0])/2,l=Math.sin(a)*Math.sin(a)+Math.sin(s)*Math.sin(s)*Math.cos(i)*Math.cos(o);return 2*n*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}var wo={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},Co={};Co[wo.DEGREES]=2*Math.PI*6370997/360,Co[wo.FEET]=.3048,Co[wo.METERS]=1,Co[wo.USFEET]=1200/3937;var Eo=wo,So=function(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit};So.prototype.canWrapX=function(){return this.canWrapX_},So.prototype.getCode=function(){return this.code_},So.prototype.getExtent=function(){return this.extent_},So.prototype.getUnits=function(){return this.units_},So.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||Co[this.units_]},So.prototype.getWorldExtent=function(){return this.worldExtent_},So.prototype.getAxisOrientation=function(){return this.axisOrientation_},So.prototype.isGlobal=function(){return this.global_},So.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},So.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},So.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},So.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},So.prototype.setWorldExtent=function(t){this.worldExtent_=t},So.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},So.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};var To=So,ko=6378137*Math.PI,Ro=[-ko,-ko,ko,ko],Oo=[-180,-85,180,85],Po=function(t){function e(e){t.call(this,{code:e,units:Eo.METERS,extent:Ro,global:!0,worldExtent:Oo,getPointResolution:function(t,e){return t/Zn(e[1]/6378137)}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(To),Ao=[new Po("EPSG:3857"),new Po("EPSG:102100"),new Po("EPSG:102113"),new Po("EPSG:900913"),new Po("urn:ogc:def:crs:EPSG:6.18:3:3857"),new Po("urn:ogc:def:crs:EPSG::3857"),new Po("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Mo(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=ko,s=0;s<n;s+=i){o[s]=a*t[s]/180;var l=6378137*Math.log(Math.tan(Math.PI*(t[s+1]+90)/360));l>a?l=a:l<-a&&(l=-a),o[s+1]=l}return o}function Lo(t,e,r){var n=t.length,i=r>1?r:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(n));for(var a=0;a<n;a+=i)o[a]=180*t[a]/ko,o[a+1]=360*Math.atan(Math.exp(t[a+1]/6378137))/Math.PI-90;return o}var Io=[-180,-90,180,90],Fo=6378137*Math.PI/180,Do=function(t){function e(e,r){t.call(this,{code:e,units:Eo.DEGREES,extent:Io,axisOrientation:r,global:!0,metersPerUnit:Fo,worldExtent:Io})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(To),jo=[new Do("CRS:84"),new Do("EPSG:4326","neu"),new Do("urn:ogc:def:crs:EPSG::4326","neu"),new Do("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Do("urn:ogc:def:crs:OGC:1.3:CRS84"),new Do("urn:ogc:def:crs:OGC:2:84"),new Do("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Do("urn:x-ogc:def:crs:EPSG:4326","neu")],No={};var $o,Bo,Go,Uo={};function zo(t,e,r){var n=t.getCode(),i=e.getCode();n in Uo||(Uo[n]={}),Uo[n][i]=r}function Wo(t,e,r){var n;if(void 0!==e){for(var i=0,o=t.length;i<o;++i)e[i]=t[i];n=e}else n=t.slice();return n}function qo(t,e,r){if(void 0!==e&&t!==e){for(var n=0,i=t.length;n<i;++n)e[n]=t[n];t=e}return t}function Ho(t){!function(t,e){No[t]=e}(t.getCode(),t),zo(t,t,Wo)}function Xo(t){return"string"==typeof t?No[t]||null:t||null}function Vo(t,e,r,n){var i,o=(t=Xo(t)).getPointResolutionFunc();if(o)i=o(e,r);else if(t.getUnits()==Eo.DEGREES&&!n||n==Eo.DEGREES)i=e;else{var a=Jo(t,Xo("EPSG:4326")),s=[r[0]-e/2,r[1],r[0]+e/2,r[1],r[0],r[1]-e/2,r[0],r[1]+e/2];i=(xo((s=a(s,s,2)).slice(0,2),s.slice(2,4))+xo(s.slice(4,6),s.slice(6,8)))/2;var l=n?Co[n]:t.getMetersPerUnit();void 0!==l&&(i/=l)}return i}function Yo(t){!function(t){t.forEach(Ho)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&zo(e,t,Wo)}))}))}function Ko(t,e){return t?"string"==typeof t?Xo(t):t:Xo(e)}function Zo(t,e){if(t===e)return!0;var r=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||Jo(t,e)===Wo)&&r}function Jo(t,e){var r=function(t,e){var r;return t in Uo&&e in Uo[t]&&(r=Uo[t][e]),r}(t.getCode(),e.getCode());return r||(r=qo),r}function Qo(t,e){return Jo(Xo(t),Xo(e))}function ta(t,e,r){return Qo(e,r)(t,void 0,t.length)}Yo(Ao),Yo(jo),$o=Ao,Bo=Mo,Go=Lo,jo.forEach((function(t){$o.forEach((function(e){zo(t,e,Bo),zo(e,t,Go)}))}));var ea=new Array(6);function ra(t){return ia(t,1,0,0,1,0,0)}function na(t,e){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=e[0],c=e[1],u=e[2],h=e[3],p=e[4],f=e[5];return t[0]=r*l+i*c,t[1]=n*l+o*c,t[2]=r*u+i*h,t[3]=n*u+o*h,t[4]=r*p+i*f+a,t[5]=n*p+o*f+s,t}function ia(t,e,r,n,i,o,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t[4]=o,t[5]=a,t}function oa(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function aa(t,e){var r=e[0],n=e[1];return e[0]=t[0]*r+t[2]*n+t[4],e[1]=t[1]*r+t[3]*n+t[5],e}function sa(t,e,r){return na(t,ia(ea,e,0,0,r,0,0))}function la(t,e,r){return na(t,ia(ea,1,0,0,1,e,r))}function ca(t,e,r,n,i,o,a,s){var l=Math.sin(o),c=Math.cos(o);return t[0]=n*c,t[1]=i*l,t[2]=-n*l,t[3]=i*c,t[4]=a*n*c-s*n*l+e,t[5]=a*i*l+s*i*c+r,t}var ua=[1,0,0,1,0,0],ha=function(t){function e(){t.call(this),this.extent_=[1/0,1/0,-1/0,-1/0],this.extentRevision_=-1,this.simplifiedGeometryCache={},this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return be()},e.prototype.closestPointXY=function(t,e,r,n){return be()},e.prototype.containsXY=function(t,e){return!1},e.prototype.getClosestPoint=function(t,e){var r=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],r,1/0),r},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return be()},e.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),function(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}(this.extent_,t)},e.prototype.rotate=function(t,e){be()},e.prototype.scale=function(t,e,r){be()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return be()},e.prototype.getType=function(){return be()},e.prototype.applyTransform=function(t){be()},e.prototype.intersectsExtent=function(t){return be()},e.prototype.translate=function(t,e){be()},e.prototype.transform=function(t,e){var r=Xo(t),n=r.getUnits()==Eo.TILE_PIXELS?function(t,n,i){var o=r.getExtent(),a=r.getWorldExtent(),s=Ji(a)/Ji(o);return ca(ua,a[0],a[3],s,-s,0,0,0),bo(t,0,t.length,i,ua,n),Qo(r,e)(t,n,i)}:Qo(r,e);return this.applyTransform(n),this},e}(fr);function pa(t){var e;return t==vo?e=2:t==mo||t==yo?e=3:t==_o&&(e=4),e}var fa=function(t){function e(){t.call(this),this.layout=vo,this.stride=2,this.flatCoordinates=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeExtent=function(t){return $i(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return be()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Re(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var r=this.getSimplifiedGeometryInternal(t);return r.getFlatCoordinates().length<this.flatCoordinates.length?(this.simplifiedGeometryCache[e]=r,r):(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=pa(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){be()},e.prototype.setLayout=function(t,e,r){var n;if(t)n=pa(t);else{for(var i=0;i<r;++i){if(0===e.length)return this.layout=vo,void(this.stride=2);e=e[0]}t=function(t){var e;2==t?e=vo:3==t?e=mo:4==t&&(e=_o);return e}(n=e.length)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();!function(t,e,r,n,i,o,a){for(var s=a||[],l=Math.cos(i),c=Math.sin(i),u=o[0],h=o[1],p=0,f=e;f<r;f+=n){var d=t[f]-u,g=t[f+1]-h;s[p++]=u+d*l-g*c,s[p++]=h+d*c+g*l;for(var v=f+2;v<f+n;++v)s[p++]=t[v]}a&&s.length!=p&&(s.length=p)}(r,0,r.length,n,t,e,r),this.changed()}},e.prototype.scale=function(t,e,r){var n=e;void 0===n&&(n=t);var i=r;i||(i=Yi(this.getExtent()));var o=this.getFlatCoordinates();if(o){var a=this.getStride();!function(t,e,r,n,i,o,a,s){for(var l=s||[],c=a[0],u=a[1],h=0,p=e;p<r;p+=n){var f=t[p]-c,d=t[p+1]-u;l[h++]=c+i*f,l[h++]=u+o*d;for(var g=p+2;g<p+n;++g)l[h++]=t[g]}s&&l.length!=h&&(l.length=h)}(o,0,o.length,a,t,n,i,o),this.changed()}},e.prototype.translate=function(t,e){var r=this.getFlatCoordinates();if(r){var n=this.getStride();!function(t,e,r,n,i,o,a){for(var s=a||[],l=0,c=e;c<r;c+=n){s[l++]=t[c]+i,s[l++]=t[c+1]+o;for(var u=c+2;u<c+n;++u)s[l++]=t[u]}a&&s.length!=l&&(s.length=l)}
  /**
   * @license
   * Latitude/longitude spherical geodesy formulae taken from
   * http://www.movable-type.co.uk/scripts/latlong.html
   * Licensed under CC-BY-3.0.
   */(r,0,r.length,n,t,e,r),this.changed()}},e}(ha);function da(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=a*s-o*l,o=s,a=l}return i/2}function ga(t,e,r,n){for(var i=0,o=0,a=r.length;o<a;++o){var s=r[o];i+=da(t,e,s,n),e=s}return i}function va(t,e,r,n,i,o,a){var s,l=t[e],c=t[e+1],u=t[r]-l,h=t[r+1]-c;if(0===u&&0===h)s=e;else{var p=((i-l)*u+(o-c)*h)/(u*u+h*h);if(p>1)s=r;else{if(p>0){for(var f=0;f<n;++f)a[f]=ri(t[e+f],t[r+f],p);return void(a.length=n)}s=e}}for(var d=0;d<n;++d)a[d]=t[s+d];a.length=n}function ma(t,e,r,n,i){var o=t[e],a=t[e+1];for(e+=n;e<r;e+=n){var s=t[e],l=t[e+1],c=Qn(o,a,s,l);c>i&&(i=c),o=s,a=l}return i}function ya(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o];i=ma(t,e,s,n,i),e=s}return i}function _a(t,e,r,n,i,o,a,s,l,c,u){if(e==r)return c;var h,p;if(0===i){if((p=Qn(a,s,t[e],t[e+1]))<c){for(h=0;h<n;++h)l[h]=t[e+h];return l.length=n,p}return c}for(var f=u||[NaN,NaN],d=e+n;d<r;)if(va(t,d-n,d,n,a,s,f),(p=Qn(a,s,f[0],f[1]))<c){for(c=p,h=0;h<n;++h)l[h]=f[h];l.length=n,d+=n}else d+=n*Math.max((Math.sqrt(p)-Math.sqrt(c))/i|0,1);if(o&&(va(t,r-n,e,n,a,s,f),(p=Qn(a,s,f[0],f[1]))<c)){for(c=p,h=0;h<n;++h)l[h]=f[h];l.length=n}return c}function ba(t,e,r,n,i,o,a,s,l,c,u){for(var h=u||[NaN,NaN],p=0,f=r.length;p<f;++p){var d=r[p];c=_a(t,e,d,n,i,o,a,s,l,c,h),e=d}return c}function xa(t,e,r,n){for(var i=0,o=r.length;i<o;++i)for(var a=r[i],s=0;s<n;++s)t[e++]=a[s];return e}function wa(t,e,r,n,i){for(var o=i||[],a=0,s=0,l=r.length;s<l;++s){var c=xa(t,e,r[s],n);o[a++]=c,e=c}return o.length=a,o}function Ca(t,e,r,n,i){for(var o=void 0!==i?i:[],a=0,s=e;s<r;s+=n)o[a++]=t.slice(s,s+n);return o.length=a,o}function Ea(t,e,r,n,i){for(var o=void 0!==i?i:[],a=0,s=0,l=r.length;s<l;++s){var c=r[s];o[a++]=Ca(t,e,c,n,o[a]),e=c}return o.length=a,o}function Sa(t,e,r,n,i){for(var o=void 0!==i?i:[],a=0,s=0,l=r.length;s<l;++s){var c=r[s];o[a++]=Ea(t,e,c,n,o[a]),e=c[c.length-1]}return o.length=a,o}function Ta(t,e,r,n,i,o,a){var s=(r-e)/n;if(s<3){for(;e<r;e+=n)o[a++]=t[e],o[a++]=t[e+1];return a}var l=new Array(s);l[0]=1,l[s-1]=1;for(var c=[e,r-n],u=0;c.length>0;){for(var h=c.pop(),p=c.pop(),f=0,d=t[p],g=t[p+1],v=t[h],m=t[h+1],y=p+n;y<h;y+=n){var _=Jn(t[y],t[y+1],d,g,v,m);_>f&&(u=y,f=_)}f>i&&(l[(u-e)/n]=1,p+n<u&&c.push(p,u),u+n<h&&c.push(u,h))}for(var b=0;b<s;++b)l[b]&&(o[a++]=t[e+b*n],o[a++]=t[e+b*n+1]);return a}function ka(t,e,r,n,i,o,a,s){for(var l=0,c=r.length;l<c;++l){var u=r[l];a=Ta(t,e,u,n,i,o,a),s.push(a),e=u}return a}function Ra(t,e){return e*Math.round(t/e)}function Oa(t,e,r,n,i,o,a){if(e==r)return a;var s,l,c=Ra(t[e],i),u=Ra(t[e+1],i);e+=n,o[a++]=c,o[a++]=u;do{if(s=Ra(t[e],i),l=Ra(t[e+1],i),(e+=n)==r)return o[a++]=s,o[a++]=l,a}while(s==c&&l==u);for(;e<r;){var h=Ra(t[e],i),p=Ra(t[e+1],i);if(e+=n,h!=s||p!=l){var f=s-c,d=l-u,g=h-c,v=p-u;f*v==d*g&&(f<0&&g<f||f==g||f>0&&g>f)&&(d<0&&v<d||d==v||d>0&&v>d)?(s=h,l=p):(o[a++]=s,o[a++]=l,c=s,u=l,s=h,l=p)}}return o[a++]=s,o[a++]=l,a}function Pa(t,e,r,n,i,o,a,s){for(var l=0,c=r.length;l<c;++l){var u=r[l];a=Oa(t,e,u,n,i,o,a),s.push(a),e=u}return a}var Aa=function(t){function e(e,r){t.call(this),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?this.setCoordinates(e,r):this.setFlatCoordinates(r,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){return n<Ai(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ma(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),_a(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.getArea=function(){return da(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return Ca(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=Ta(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,vo)},e.prototype.getType=function(){return lo},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=xa(this.flatCoordinates,0,t,this.stride),this.changed()},e}(fa),Ma=function(t){function e(e,r){t.call(this),this.setCoordinates(e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){var i=this.flatCoordinates,o=Qn(t,e,i[0],i[1]);if(o<n){for(var a=this.stride,s=0;s<a;++s)r[s]=i[s];return r.length=a,o}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return e=this.flatCoordinates,r=t,n=e[0],i=e[1],ji(n,i,n,i,r);var e,r,n,i},e.prototype.getType=function(){return ao},e.prototype.intersectsExtent=function(t){return Ii(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=function(t,e,r,n){for(var i=0,o=r.length;i<o;++i)t[e++]=r[i];return e}(this.flatCoordinates,0,t,this.stride),this.changed()},e}(fa);function La(t,e,r,n,i){return!function(t,e,r){var n;return(n=e.call(r,Xi(t)))||(n=e.call(r,Vi(t)))||(n=e.call(r,eo(t)))?n:(n=e.call(r,to(t)))||!1}(i,(function(i){return!Ia(t,e,r,n,i[0],i[1])}))}function Ia(t,e,r,n,i,o){for(var a=0,s=t[r-n],l=t[r-n+1];e<r;e+=n){var c=t[e],u=t[e+1];l<=o?u>o&&(c-s)*(o-l)-(i-s)*(u-l)>0&&a++:u<=o&&(c-s)*(o-l)-(i-s)*(u-l)<0&&a--,s=c,l=u}return 0!==a}function Fa(t,e,r,n,i,o){if(0===r.length)return!1;if(!Ia(t,e,r[0],n,i,o))return!1;for(var a=1,s=r.length;a<s;++a)if(Ia(t,r[a-1],r[a],n,i,o))return!1;return!0}function Da(t,e,r,n,i,o,a){for(var s,l,c,u,h,p,f,d=i[o+1],g=[],v=0,m=r.length;v<m;++v){var y=r[v];for(u=t[y-n],p=t[y-n+1],s=e;s<y;s+=n)h=t[s],f=t[s+1],(d<=p&&f<=d||p<=d&&d<=f)&&(c=(d-p)/(f-p)*(h-u)+u,g.push(c)),u=h,p=f}var _=NaN,b=-1/0;for(g.sort(mn),u=g[0],s=1,l=g.length;s<l;++s){h=g[s];var x=Math.abs(h-u);x>b&&Fa(t,e,r,n,c=(u+h)/2,d)&&(_=c,b=x),u=h}return isNaN(_)&&(_=i[o]),a?(a.push(_,d,b),a):[_,d,b]}function ja(t,e,r,n,i,o){for(var a,s=[t[e],t[e+1]],l=[];e+n<r;e+=n){if(l[0]=t[e+n],l[1]=t[e+n+1],a=i.call(o,s,l))return a;s[0]=l[0],s[1]=l[1]}return!1}function Na(t,e,r,n,i){var o=Wi([1/0,1/0,-1/0,-1/0],t,e,r,n);return!!no(i,o)&&(!!Li(i,o)||(o[0]>=i[0]&&o[2]<=i[2]||(o[1]>=i[1]&&o[3]<=i[3]||ja(t,e,r,n,(function(t,e){return function(t,e,r){var n=!1,i=Fi(t,e),o=Fi(t,r);if(i===Ci||o===Ci)n=!0;else{var a,s,l=t[0],c=t[1],u=t[2],h=t[3],p=e[0],f=e[1],d=r[0],g=r[1],v=(g-f)/(d-p);o&Ei&&!(i&Ei)&&(n=(a=d-(g-h)/v)>=l&&a<=u),n||!(o&Si)||i&Si||(n=(s=g-(d-u)*v)>=c&&s<=h),n||!(o&Ti)||i&Ti||(n=(a=d-(g-c)/v)>=l&&a<=u),n||!(o&ki)||i&ki||(n=(s=g-(d-l)*v)>=c&&s<=h)}return n}(i,t,e)})))))}function $a(t,e,r,n,i){if(!function(t,e,r,n,i){return!!Na(t,e,r,n,i)||(!!Ia(t,e,r,n,i[0],i[1])||(!!Ia(t,e,r,n,i[0],i[3])||(!!Ia(t,e,r,n,i[2],i[1])||!!Ia(t,e,r,n,i[2],i[3]))))}(t,e,r[0],n,i))return!1;if(1===r.length)return!0;for(var o=1,a=r.length;o<a;++o)if(La(t,r[o-1],r[o],n,i)&&!Na(t,r[o-1],r[o],n,i))return!1;return!0}function Ba(t,e,r,n){for(;e<r-n;){for(var i=0;i<n;++i){var o=t[e+i];t[e+i]=t[r-n+i],t[r-n+i]=o}e+=n,r-=n}}function Ga(t,e,r,n){for(var i=0,o=t[r-n],a=t[r-n+1];e<r;e+=n){var s=t[e],l=t[e+1];i+=(s-o)*(l+a),o=s,a=l}return i>0}function Ua(t,e,r,n,i){for(var o=void 0!==i&&i,a=0,s=r.length;a<s;++a){var l=r[a],c=Ga(t,e,l,n);if(0===a){if(o&&c||!o&&!c)return!1}else if(o&&!c||!o&&c)return!1;e=l}return!0}function za(t,e,r,n,i){for(var o=void 0!==i&&i,a=0,s=r.length;a<s;++a){var l=r[a],c=Ga(t,e,l,n);(0===a?o&&c||!o&&!c:o&&!c||!o&&c)&&Ba(t,e,l,n),e=l}return e}function Wa(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o)e=za(t,e,r[o],n,i);return e}var qa=function(t){function e(e,r,n){t.call(this),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==r&&n?(this.setFlatCoordinates(r,e),this.ends_=n):this.setCoordinates(e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendLinearRing=function(t){this.flatCoordinates?bn(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},e.prototype.closestPointXY=function(t,e,r,n){return n<Ai(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ya(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),ba(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return Fa(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return ga(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?za(e=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,t):e=this.flatCoordinates,Ea(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Yi(this.getExtent());this.flatInteriorPoint_=Da(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new Ma(this.getFlatInteriorPoint(),yo)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new Aa(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.ends_,n=[],i=0,o=0,a=r.length;o<a;++o){var s=r[o],l=new Aa(e.slice(i,s),t);n.push(l),i=s}return n},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Ua(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=za(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],n=[];return r.length=Pa(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),r,0,n),new e(r,vo,n)},e.prototype.getType=function(){return co},e.prototype.intersectsExtent=function(t){return $a(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=wa(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(fa),Ha=qa;function Xa(t){var e=t[0],r=t[1],n=t[2],i=t[3],o=[e,r,e,i,n,i,n,r,e,r];return new qa(o,vo,[o.length])}function Va(t,e){setTimeout((function(){t(e)}),0)}function Ya(t){return!(t.sourceCenter&&t.targetCenter&&!function(t,e){for(var r=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){r=!1;break}return r}(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}var Ka=function(t){function e(e){t.call(this);var r=ke({},e);this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.updateAnimations_=this.updateAnimations_.bind(this),this.projection_=Ko(r.projection,"EPSG:3857"),this.applyOptions_(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyOptions_=function(t){var e={};e[li]=void 0!==t.center?t.center:null;var r=function(t){var e,r,n,i=void 0!==t.minZoom?t.minZoom:0,o=void 0!==t.maxZoom?t.maxZoom:28,a=void 0!==t.zoomFactor?t.zoomFactor:2;if(void 0!==t.resolutions){var s=t.resolutions;r=s[i],n=void 0!==s[o]?s[o]:s[s.length-1],e=function(t){return function(e,r,n){if(void 0!==e){var i=yn(t,e,n);i=Kn(i+r,0,t.length-1);var o=Math.floor(i);if(i!=o&&o<t.length-1){var a=t[o]/t[o+1];return t[o]/Math.pow(a,i-o)}return t[o]}}}(s)}else{var l=Ko(t.projection,"EPSG:3857"),c=l.getExtent(),u=(c?Math.max(ro(c),Ji(c)):360*Co[Eo.DEGREES]/l.getMetersPerUnit())/256/Math.pow(2,0),h=u/Math.pow(2,28);void 0!==(r=t.maxResolution)?i=0:r=u/Math.pow(a,i),void 0===(n=t.minResolution)&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?r/Math.pow(a,o):u/Math.pow(a,o):h),o=i+Math.floor(Math.log(r/n)/Math.log(a)),n=r/Math.pow(a,o-i),e=function(t,e,r){return function(n,i,o){if(void 0!==n){var a=-o/2+.5,s=Math.floor(Math.log(e/n)/Math.log(t)+a),l=Math.max(s+i,0);return void 0!==r&&(l=Math.min(l,r)),e/Math.pow(t,l)}}}(a,r,o-i)}return{constraint:e,maxResolution:r,minResolution:n,minZoom:i,zoomFactor:a}}(t);this.maxResolution_=r.maxResolution,this.minResolution_=r.minResolution,this.zoomFactor_=r.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=r.minZoom;var n=function(t){return void 0!==t.extent?(e=t.extent,function(t){return t?[Kn(t[0],e[0],e[2]),Kn(t[1],e[1],e[3])]:void 0}):ni;var e}(t),i=r.constraint,o=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?(o=i||ti(5),function(t,e){return void 0!==t?Math.abs(t+e)<=o?0:t+e:void 0}):!1===e?oi:"number"==typeof e?(r=e,n=2*Math.PI/r,function(t,e){return void 0!==t?t=Math.floor((t+e)/n+.5)*n:void 0}):oi}return ii;var r,n;var i,o}(t);this.constraints_={center:n,resolution:i,rotation:o},void 0!==t.resolution?e[ci]=t.resolution:void 0!==t.zoom&&(e[ci]=this.constrainResolution(this.maxResolution_,t.zoom-this.minZoom_),this.resolutions_&&(e[ci]=Kn(Number(this.getResolution()||e[ci]),this.minResolution_,this.maxResolution_))),e[ui]=void 0!==t.rotation?t.rotation:0,this.setProperties(e),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=ke({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenter(),e.rotation=this.getRotation(),ke({},e,t)},e.prototype.animate=function(t){var e,r=arguments,n=arguments.length;if(n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var i=arguments[n-1];return i.center&&this.setCenter(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(e&&Va(e,!0))}for(var o=Date.now(),a=this.getCenter().slice(),s=this.getResolution(),l=this.getRotation(),c=[],u=0;u<n;++u){var h=r[u],p={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||vi};if(h.center&&(p.sourceCenter=a,p.targetCenter=h.center,a=p.targetCenter),void 0!==h.zoom?(p.sourceResolution=s,p.targetResolution=this.constrainResolution(this.maxResolution_,h.zoom-this.minZoom_,0),s=p.targetResolution):h.resolution&&(p.sourceResolution=s,p.targetResolution=h.resolution,s=p.targetResolution),void 0!==h.rotation){p.sourceRotation=l;var f=ei(h.rotation-l+Math.PI,2*Math.PI)-Math.PI;p.targetRotation=l+f,l=p.targetRotation}p.callback=e,Ya(p)?p.complete=!0:o+=p.duration,c.push(p)}this.animations_.push(c),this.setHint(ai,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[ai]>0},e.prototype.getInteracting=function(){return this.hints_[si]>0},e.prototype.cancelAnimations=function(){this.setHint(ai,-this.hints_[ai]);for(var t=0,e=this.animations_.length;t<e;++t){var r=this.animations_[t];r[0].callback&&Va(r[0].callback,!1)}this.animations_.length=0},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,r=this.animations_.length-1;r>=0;--r){for(var n=this.animations_[r],i=!0,o=0,a=n.length;o<a;++o){var s=n[o];if(!s.complete){var l=t-s.start,c=s.duration>0?l/s.duration:1;c>=1?(s.complete=!0,c=1):i=!1;var u=s.easing(c);if(s.sourceCenter){var h=s.sourceCenter[0],p=s.sourceCenter[1],f=h+u*(s.targetCenter[0]-h),d=p+u*(s.targetCenter[1]-p);this.set(li,[f,d])}if(s.sourceResolution&&s.targetResolution){var g=1===u?s.targetResolution:s.sourceResolution+u*(s.targetResolution-s.sourceResolution);s.anchor&&this.set(li,this.calculateCenterZoom(g,s.anchor)),this.set(ci,g)}if(void 0!==s.sourceRotation&&void 0!==s.targetRotation){var v=1===u?ei(s.targetRotation+Math.PI,2*Math.PI)-Math.PI:s.sourceRotation+u*(s.targetRotation-s.sourceRotation);s.anchor&&this.set(li,this.calculateCenterRotate(v,s.anchor)),this.set(ui,v)}if(e=!0,!s.complete)break}}if(i){this.animations_[r]=null,this.setHint(ai,-1);var m=n[0].callback;m&&Va(m,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var r,n=this.getCenter();return void 0!==n&&(pi(r=[n[0]-e[0],n[1]-e[1]],t-this.getRotation()),hi(r,e)),r},e.prototype.calculateCenterZoom=function(t,e){var r,n=this.getCenter(),i=this.getResolution();void 0!==n&&void 0!==i&&(r=[e[0]-t*(e[0]-n[0])/i,e[1]-t*(e[1]-n[1])/i]);return r},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+we(this)+'"]',r=document.querySelector(e);if(r){var n=getComputedStyle(r);t[0]=parseInt(n.width,10),t[1]=parseInt(n.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,r){var n=e||0,i=r||0;return this.constraints_.resolution(t,n,i)},e.prototype.constrainRotation=function(t,e){var r=e||0;return this.constraints_.rotation(t,r)},e.prototype.getCenter=function(){return this.get(li)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=t||this.getSizeFromViewport_(),r=this.getCenter();Xn(r,1);var n=this.getResolution();Xn(void 0!==n,2);var i=this.getRotation();return Xn(void 0!==i,3),Zi(r,n,i,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(ci)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var r=e||this.getSizeFromViewport_(),n=ro(t)/r[0],i=Ji(t)/r[1];return Math.max(n,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,r=this.maxResolution_,n=this.minResolution_,i=Math.log(r/n)/Math.log(e);return function(t){return r/Math.pow(e,t*i)}},e.prototype.getRotation=function(){return this.get(ui)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,r=this.maxResolution_,n=this.minResolution_,i=Math.log(r/n)/Math.log(e);return function(t){return Math.log(r/t)/Math.log(e)/i}},e.prototype.getState=function(t){var e=this.getCenter(),r=this.getProjection(),n=this.getResolution(),i=n/t,o=this.getRotation();return{center:[Math.round(e[0]/i)*i,Math.round(e[1]/i)*i],projection:void 0!==r?r:null,resolution:n,rotation:o,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,r,n=this.minZoom_||0;if(this.resolutions_){var i=yn(this.resolutions_,t,1);n=i,e=this.resolutions_[i],r=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,r=this.zoomFactor_;return n+Math.log(e/t)/Math.log(r)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var r,n=e||{},i=n.size;i||(i=this.getSizeFromViewport_()),Xn(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Xn(!io(t),25),r=Xa(t)):t.getType()===go?(r=Xa(t=t.getExtent())).rotate(this.getRotation(),Yi(t)):r=t;var o,a=void 0!==n.padding?n.padding:[0,0,0,0],s=void 0===n.constrainResolution||n.constrainResolution,l=void 0!==n.nearest&&n.nearest;o=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.constrainResolution(this.maxResolution_,n.maxZoom-this.minZoom_,0):0;for(var c=r.getFlatCoordinates(),u=this.getRotation(),h=Math.cos(-u),p=Math.sin(-u),f=1/0,d=1/0,g=-1/0,v=-1/0,m=r.getStride(),y=0,_=c.length;y<_;y+=m){var b=c[y]*h-c[y+1]*p,x=c[y]*p+c[y+1]*h;f=Math.min(f,b),d=Math.min(d,x),g=Math.max(g,b),v=Math.max(v,x)}var w=this.getResolutionForExtent([f,d,g,v],[i[0]-a[1]-a[3],i[1]-a[0]-a[2]]);if(w=isNaN(w)?o:Math.max(w,o),s){var C=this.constrainResolution(w,0,0);!l&&C<w&&(C=this.constrainResolution(C,-1,0)),w=C}p=-p;var E=(f+g)/2,S=(d+v)/2,T=[(E+=(a[1]-a[3])/2*w)*h-(S+=(a[0]-a[2])/2*w)*p,S*h+E*p],k=n.callback?n.callback:ze;void 0!==n.duration?this.animate({resolution:w,center:T,duration:n.duration,easing:n.easing},k):(this.setResolution(w),this.setCenter(T),Va(k,!0))},e.prototype.centerOn=function(t,e,r){var n=this.getRotation(),i=Math.cos(-n),o=Math.sin(-n),a=t[0]*i-t[1]*o,s=t[1]*i+t[0]*o,l=this.getResolution(),c=(a+=(e[0]/2-r[0])*l)*i-(s+=(r[1]-e[1]/2)*l)*(o=-o),u=s*i+a*o;this.setCenter([c,u])},e.prototype.isDef=function(){return!!this.getCenter()&&void 0!==this.getResolution()},e.prototype.rotate=function(t,e){if(void 0!==e){var r=this.calculateCenterRotate(t,e);this.setCenter(r)}this.setRotation(t)},e.prototype.setCenter=function(t){this.set(li,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.set(ci,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setRotation=function(t){this.set(ui,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e}(fr);function Za(t,e){var r=document.createElement("canvas");return t&&(r.width=t),e&&(r.height=e),r.getContext("2d")}function Ja(t,e){var r=e.parentNode;r&&r.replaceChild(t,e)}function Qa(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}var ts="opacity",es="visible",rs="extent",ns="zIndex",is="maxResolution",os="minResolution",as="source",ss=function(t){function e(e){t.call(this);var r=ke({},e);r[ts]=void 0!==e.opacity?e.opacity:1,r[es]=void 0===e.visible||e.visible,r[ns]=e.zIndex,r[is]=void 0!==e.maxResolution?e.maxResolution:1/0,r[os]=void 0!==e.minResolution?e.minResolution:0,this.setProperties(r),this.state_=null,this.type}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getType=function(){return this.type},e.prototype.getLayerState=function(){var t=this.state_||{layer:this,managed:!0};return t.opacity=Kn(this.getOpacity(),0,1),t.sourceState=this.getSourceState(),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=this.getZIndex()||0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),this.state_=t,t},e.prototype.getLayersArray=function(t){return be()},e.prototype.getLayerStatesArray=function(t){return be()},e.prototype.getExtent=function(){return this.get(rs)},e.prototype.getMaxResolution=function(){return this.get(is)},e.prototype.getMinResolution=function(){return this.get(os)},e.prototype.getOpacity=function(){return this.get(ts)},e.prototype.getSourceState=function(){return be()},e.prototype.getVisible=function(){return this.get(es)},e.prototype.getZIndex=function(){return this.get(ns)},e.prototype.setExtent=function(t){this.set(rs,t)},e.prototype.setMaxResolution=function(t){this.set(is,t)},e.prototype.setMinResolution=function(t){this.set(os,t)},e.prototype.setOpacity=function(t){this.set(ts,t)},e.prototype.setVisible=function(t){this.set(es,t)},e.prototype.setZIndex=function(t){this.set(ns,t)},e}(fr),ls="undefined",cs="ready",us="layers",hs=function(t){function e(e){var r=e||{},n=ke({},r);delete n.layers;var i=r.layers;t.call(this,n),this.layersListenerKeys_=[],this.listenerKeys_={},Fe(this,pr(us),this.handleLayersChanged_,this),i?Array.isArray(i)?i=new vr(i.slice(),{unique:!0}):Xn("function"==typeof i.getArray,43):i=new vr(void 0,{unique:!0}),this.setLayers(i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(Ne),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(Fe(t,Ee,this.handleLayersAdd_,this),Fe(t,Se,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(Ne);Re(this.listenerKeys_);for(var r=t.getArray(),n=0,i=r.length;n<i;n++){var o=r[n];this.listenerKeys_[we(o)]=[Fe(o,Te,this.handleLayerChange_,this),Fe(o,Ve,this.handleLayerChange_,this)]}this.changed()},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.listenerKeys_[we(e)]=[Fe(e,Te,this.handleLayerChange_,this),Fe(e,Ve,this.handleLayerChange_,this)],this.changed()},e.prototype.handleLayersRemove_=function(t){var e=we(t.element);this.listenerKeys_[e].forEach(Ne),delete this.listenerKeys_[e],this.changed()},e.prototype.getLayers=function(){return this.get(us)},e.prototype.setLayers=function(t){this.set(us,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach((function(t){t.getLayersArray(e)})),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],r=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));for(var n=this.getLayerState(),i=r,o=e.length;i<o;i++){var a=e[i];a.opacity*=n.opacity,a.visible=a.visible&&n.visible,a.maxResolution=Math.min(a.maxResolution,n.maxResolution),a.minResolution=Math.max(a.minResolution,n.minResolution),void 0!==n.extent&&(void 0!==a.extent?a.extent=Qi(a.extent,n.extent):a.extent=n.extent)}return e},e.prototype.getSourceState=function(){return cs},e}(ss);function ps(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}var fs=function(t){function e(e){t.call(this);var r=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var r,n,i,o={},a=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new hs({layers:t.layers});o[Ln]=a,o[Fn]=t.target,o[Dn]=void 0!==t.view?t.view:new Ka,void 0!==t.controls&&(Array.isArray(t.controls)?r=new vr(t.controls.slice()):(Xn("function"==typeof t.controls.getArray,47),r=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new vr(t.interactions.slice()):(Xn("function"==typeof t.interactions.getArray,48),n=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?i=new vr(t.overlays.slice()):(Xn("function"==typeof t.overlays.getArray,49),i=t.overlays):i=new vr;return{controls:r,interactions:n,keyboardEventTarget:e,overlays:i,values:o}}(e);this.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,this.loadTilesWhileAnimating_=void 0!==e.loadTilesWhileAnimating&&e.loadTilesWhileAnimating,this.loadTilesWhileInteracting_=void 0!==e.loadTilesWhileInteracting&&e.loadTilesWhileInteracting,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:Er,this.animationDelayKey_,this.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_.call(this,Date.now())}.bind(this),this.coordinateToPixelTransform_=[1,0,0,1,0,0],this.pixelToCoordinateTransform_=[1,0,0,1,0,0],this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+(Tr?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.viewport_.style.msTouchAction="none",this.viewport_.style.touchAction="none",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent";for(var n=[Ze,Je,nr,sr,or,Or.POINTERDOWN,ir,lr],i=0,o=n.length;i<o;++i)Fe(this.overlayContainerStopEvent_,n[i],qe);for(var a in this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=new On(this,e.moveTolerance),Or)Fe(this.mapBrowserEventHandler_,Or[a],this.handleMapBrowserEvent,this);this.keyboardEventTarget_=r.keyboardEventTarget,this.keyHandlerKeys_=null,Fe(this.viewport_,Ke,this.handleBrowserEvent,this),Fe(this.viewport_,lr,this.handleBrowserEvent,this),Fe(this.viewport_,ir,this.handleBrowserEvent,this),this.controls=r.controls||new vr,this.interactions=r.interactions||new vr,this.overlays_=r.overlays,this.overlayIdIndex_={},this.renderer_=this.createRenderer(),this.handleResize_,this.focus_=null,this.postRenderFunctions_=[],this.tileQueue_=new Yn(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.skippedFeatureUids_={},Fe(this,pr(Ln),this.handleLayerGroupChanged_,this),Fe(this,pr(Dn),this.handleViewChanged_,this),Fe(this,pr(In),this.handleSizeChanged_,this),Fe(this,pr(Fn),this.handleTargetChanged_,this),this.setProperties(r.values),this.controls.forEach(function(t){t.setMap(this)}.bind(this)),Fe(this.controls,Ee,(function(t){t.element.setMap(this)}),this),Fe(this.controls,Se,(function(t){t.element.setMap(null)}),this),this.interactions.forEach(function(t){t.setMap(this)}.bind(this)),Fe(this.interactions,Ee,(function(t){t.element.setMap(this)}),this),Fe(this.interactions,Se,(function(t){t.element.setMap(null)}),this),this.overlays_.forEach(this.addOverlayInternal_.bind(this)),Fe(this.overlays_,Ee,(function(t){this.addOverlayInternal_(t.element)}),this),Fe(this.overlays_,Se,(function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)}),this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.mapBrowserEventHandler_.dispose(),je(this.viewport_,Ke,this.handleBrowserEvent,this),je(this.viewport_,lr,this.handleBrowserEvent,this),je(this.viewport_,ir,this.handleBrowserEvent,this),void 0!==this.handleResize_&&(removeEventListener(ar,this.handleResize_,!1),this.handleResize_=void 0),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,r){if(this.frameState_){var n=this.getCoordinateFromPixel(t),i=void 0!==(r=void 0!==r?r:{}).hitTolerance?r.hitTolerance*this.frameState_.pixelRatio:0,o=void 0!==r.layerFilter?r.layerFilter:Ge;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,i,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var r=null;return this.forEachFeatureAtPixel(t,(function(t){r||(r=[]),r.push(t)}),e),r},e.prototype.forEachLayerAtPixel=function(t,e,r){if(this.frameState_){var n=r||{},i=void 0!==n.hitTolerance?r.hitTolerance*this.frameState_.pixelRatio:0,o=n.layerFilter||Ge;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,i,e,null,o,null)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var r=this.getCoordinateFromPixel(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:Ge,i=void 0!==e.hitTolerance?e.hitTolerance*this.frameState_.pixelRatio:0;return this.renderer_.hasFeatureAtCoordinate(r,this.frameState_,i,n,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),r="changedTouches"in t?t.changedTouches[0]:t;return[r.clientX-e.left,r.clientY-e.top]},e.prototype.getTarget=function(){return this.get(Fn)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){var e=this.frameState_;return e?aa(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(Ln)},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getPixelFromCoordinate=function(t){var e=this.frameState_;return e?aa(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(In)},e.prototype.getView=function(){return this.get(Dn)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getTilePriority=function(t,e,r,n){var i=this.frameState_;if(!i||!(e in i.wantedTiles))return 1/0;if(!i.wantedTiles[e][t.getKey()])return 1/0;var o=r[0]-i.focus[0],a=r[1]-i.focus[1];return 65536*Math.log(n)+Math.sqrt(o*o+a*a)/n},e.prototype.handleBrowserEvent=function(t,e){var r=e||t.type,n=new yr(r,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){this.focus_=t.coordinate,t.frameState=this.frameState_;var e=this.getInteractions().getArray();if(!1!==this.dispatchEvent(t))for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.getActive())if(!n.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var r=this.maxTilesLoading_,n=r;if(t){var i=t.viewHints;i[ai]&&(r=this.loadTilesWhileAnimating_?8:0,n=2),i[si]&&(r=this.loadTilesWhileInteracting_?8:0,n=2)}e.getTilesLoading()<r&&(e.reprioritize(),e.loadMoreTiles(r,n))}!t||!this.hasListener(Bn)||t.animate||this.tileQueue_.getTilesLoading()||function t(e){for(var r=0,n=e.length;r<n;++r){var i=e[r];if("function"==typeof i.getLayers)return t(i.getLayers().getArray());var o=i.getSource();if(o&&o.loading)return!0}return!1}(this.getLayers().getArray())||this.renderer_.dispatchRenderEvent(Bn,t);for(var o=this.postRenderFunctions_,a=0,s=o.length;a<s;++a)o[a](this,t);o.length=0},e.prototype.handleSizeChanged_=function(){this.render()},e.prototype.handleTargetChanged_=function(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.keyHandlerKeys_){for(var e=0,r=this.keyHandlerKeys_.length;e<r;++e)Ne(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null}if(t){t.appendChild(this.viewport_);var n=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[Fe(n,tr,this.handleBrowserEvent,this),Fe(n,er,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(ar,this.handleResize_,!1))}else this.renderer_.removeLayerRenderers(),Qa(this.viewport_),void 0!==this.handleResize_&&(removeEventListener(ar,this.handleResize_,!1),this.handleResize_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(Ne(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(Ne(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.viewport_.setAttribute("data-view",we(t)),this.viewPropertyListenerKey_=Fe(t,Te,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=Fe(t,Ve,this.handleViewPropertyChanged_,this)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(Ne),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[Fe(t,Te,this.render,this),Fe(t,Ve,this.render,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.render=function(){void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e,r=this.getSize(),n=this.getView(),i=[1/0,1/0,-1/0,-1/0],o=this.frameState_,a=null;if(void 0!==r&&function(t){return t[0]>0&&t[1]>0}(r)&&n&&n.isDef()){for(var s=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),l=this.getLayerGroup().getLayerStatesArray(),c={},u=0,h=l.length;u<h;++u)c[we(l[u].layer)]=l[u];e=n.getState(this.pixelRatio_),a={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,extent:i,focus:this.focus_?this.focus_:e.center,index:this.frameIndex_++,layerStates:c,layerStatesArray:l,pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:r,skippedFeatureUids:this.skippedFeatureUids_,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:e,viewHints:s,wantedTiles:{}}}if(a&&(a.extent=Zi(e.center,e.resolution,e.rotation,a.size,i)),this.frameState_=a,this.renderer_.renderFrame(a),a){if(a.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,a.postRenderFunctions),o)(!this.previousExtent_||!io(this.previousExtent_)&&!Bi(a.extent,this.previousExtent_))&&(this.dispatchEvent(new mr(An,this,o)),this.previousExtent_=Ni(this.previousExtent_));this.previousExtent_&&!a.viewHints[ai]&&!a.viewHints[si]&&!Bi(a.extent,this.previousExtent_)&&(this.dispatchEvent(new mr(Mn,this,a)),Pi(a.extent,this.previousExtent_))}this.dispatchEvent(new mr(Pn,this,a)),setTimeout(this.handlePostRender.bind(this),0)},e.prototype.setLayerGroup=function(t){this.set(Ln,t)},e.prototype.setSize=function(t){this.set(In,t)},e.prototype.setTarget=function(t){this.set(Fn,t)},e.prototype.setView=function(t){this.set(Dn,t)},e.prototype.skipFeature=function(t){this.skippedFeatureUids_[we(t)]=!0,this.render()},e.prototype.updateSize=function(){var t=this.getTargetElement();if(t){var e=getComputedStyle(t);this.setSize([t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)])}else this.setSize(void 0)},e.prototype.unskipFeature=function(t){delete this.skippedFeatureUids_[we(t)],this.render()},e}(fr);var ds,gs,vs=function(t){function e(e){t.call(this),this.element=e.element?e.element:null,this.target_=null,this.map_=null,this.listenerKeys=[],this.render=e.render?e.render:ze,e.target&&this.setTarget(e.target)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){Qa(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Qa(this.element);for(var e=0,r=this.listenerKeys.length;e<r;++e)Ne(this.listenerKeys[e]);(this.listenerKeys.length=0,this.map_=t,this.map_)&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==ze&&this.listenerKeys.push(Fe(t,Pn,this.render,this)),t.render())},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(fr),ms=(gs={},function(t){if(ds||(ds=document.createElement("div").style),!(t in gs)){ds.font=t;var e=ds.fontFamily;if(ds.font="",!e)return null;gs[t]=e.split(/,\s?/)}return gs[t]});function ys(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}var _s=function(t){function e(e){var r=ke({},e);delete r.source,t.call(this,r),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,e.map&&this.setMap(e.map),Fe(this,pr(as),this.handleSourcePropertyChange_,this);var n=e.source?e.source:null;this.setSource(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(as)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():ls},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Ne(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Fe(t,Ve,this.handleSourceChange_,this)),this.changed()},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Ne(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Ne(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Fe(t,Nn,(function(t){var e=t,r=this.getLayerState();r.managed=!1,void 0===this.getZIndex()&&(r.zIndex=1/0),e.frameState.layerStatesArray.push(r),e.frameState.layerStates[we(this)]=r}),this),this.mapRenderKey_=Fe(this,Ve,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(as,t)},e}(ss);function bs(t){this.updateElement_(t.frameState)}var xs=function(t){function e(e){var r=e||{};t.call(this,{element:document.createElement("div"),render:r.render||bs,target:r.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===r.collapsed||r.collapsed,this.overrideCollapsible_=void 0!==r.collapsible,this.collapsible_=void 0===r.collapsible||r.collapsible,this.collapsible_||(this.collapsed_=!1);var n=void 0!==r.className?r.className:"ol-attribution",i=void 0!==r.tipLabel?r.tipLabel:"Attributions",o=void 0!==r.collapseLabel?r.collapseLabel:"»";"string"==typeof o?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=o):this.collapseLabel_=o;var a=void 0!==r.label?r.label:"i";"string"==typeof a?(this.label_=document.createElement("span"),this.label_.textContent=a):this.label_=a;var s=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,l=document.createElement("button");l.setAttribute("type","button"),l.title=i,l.appendChild(s),Fe(l,Ze,this.handleClick_,this);var c=n+" ol-unselectable ol-control"+(this.collapsed_&&this.collapsible_?" ol-collapsed":"")+(this.collapsible_?"":" ol-uncollapsible"),u=this.element;u.className=c,u.appendChild(this.ulElement_),u.appendChild(l),this.renderedAttributions_=[],this.renderedVisible_=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.collectSourceAttributions_=function(t){for(var e={},r=[],n=t.layerStatesArray,i=t.viewState.resolution,o=0,a=n.length;o<a;++o){var s=n[o];if(ys(s,i)){var l=s.layer.getSource();if(l){var c=l.getAttributions();if(c){var u=c(t);if(u)if(this.overrideCollapsible_||!1!==l.getAttributionsCollapsible()||this.setCollapsible(!1),Array.isArray(u))for(var h=0,p=u.length;h<p;++h)u[h]in e||(r.push(u[h]),e[u[h]]=!0);else u in e||(r.push(u),e[u]=!0)}}}}return r},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),r=e.length>0;if(this.renderedVisible_!=r&&(this.element.style.display=r?"":"none",this.renderedVisible_=r),!xn(e,this.renderedAttributions_)){!function(t){for(;t.lastChild;)t.removeChild(t.lastChild)}(this.ulElement_);for(var n=0,i=e.length;n<i;++n){var o=document.createElement("li");o.innerHTML=e[n],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle("ol-collapsed"),this.collapsed_?Ja(this.collapseLabel_,this.label_):Ja(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e}(vs);function ws(t){var e=t.frameState;if(e){var r=e.viewState.rotation;if(r!=this.rotation_){var n="rotate("+r+"rad)";if(this.autoHide_){var i=this.element.classList.contains("ol-hidden");i||0!==r?i&&0!==r&&this.element.classList.remove("ol-hidden"):this.element.classList.add("ol-hidden")}this.label_.style.msTransform=n,this.label_.style.webkitTransform=n,this.label_.style.transform=n}this.rotation_=r}}var Cs=function(t){function e(e){var r=e||{};t.call(this,{element:document.createElement("div"),render:r.render||ws,target:r.target});var n=void 0!==r.className?r.className:"ol-rotate",i=void 0!==r.label?r.label:"⇧";this.label_=null,"string"==typeof i?(this.label_=document.createElement("span"),this.label_.className="ol-compass",this.label_.textContent=i):(this.label_=i,this.label_.classList.add("ol-compass"));var o=r.tipLabel?r.tipLabel:"Reset rotation",a=document.createElement("button");a.className=n+"-reset",a.setAttribute("type","button"),a.title=o,a.appendChild(this.label_),Fe(a,Ze,this.handleClick_,this);var s=n+" ol-unselectable ol-control",l=this.element;l.className=s,l.appendChild(a),this.callResetNorth_=r.resetNorth?r.resetNorth:void 0,this.duration_=void 0!==r.duration?r.duration:250,this.autoHide_=void 0===r.autoHide||r.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add("ol-hidden")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();t&&void 0!==t.getRotation()&&(this.duration_>0?t.animate({rotation:0,duration:this.duration_,easing:gi}):t.setRotation(0))},e}(vs),Es=function(t){function e(e){var r=e||{};t.call(this,{element:document.createElement("div"),target:r.target});var n=void 0!==r.className?r.className:"ol-zoom",i=void 0!==r.delta?r.delta:1,o=void 0!==r.zoomInLabel?r.zoomInLabel:"+",a=void 0!==r.zoomOutLabel?r.zoomOutLabel:"−",s=void 0!==r.zoomInTipLabel?r.zoomInTipLabel:"Zoom in",l=void 0!==r.zoomOutTipLabel?r.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=n+"-in",c.setAttribute("type","button"),c.title=s,c.appendChild("string"==typeof o?document.createTextNode(o):o),Fe(c,Ze,this.handleClick_.bind(this,i));var u=document.createElement("button");u.className=n+"-out",u.setAttribute("type","button"),u.title=l,u.appendChild("string"==typeof a?document.createTextNode(a):a),Fe(u,Ze,this.handleClick_.bind(this,-i));var h=n+" ol-unselectable ol-control",p=this.element;p.className=h,p.appendChild(c),p.appendChild(u),this.duration_=void 0!==r.duration?r.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var r=e.getResolution();if(r){var n=e.constrainResolution(r,t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:n,duration:this.duration_,easing:gi})):e.setResolution(n)}}},e}(vs);var Ss=function(t,e,r){this.decay_=t,this.minVelocity_=e,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0};Ss.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},Ss.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},Ss.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var r=e-3;r>0&&this.points_[r+2]>t;)r-=3;var n=this.points_[e+2]-this.points_[r+2];if(n<1e3/60)return!1;var i=this.points_[e]-this.points_[r],o=this.points_[e+1]-this.points_[r+1];return this.angle_=Math.atan2(o,i),this.initialVelocity_=Math.sqrt(i*i+o*o)/n,this.initialVelocity_>this.minVelocity_},Ss.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},Ss.prototype.getAngle=function(){return this.angle_};var Ts=Ss,ks="active";function Rs(t,e,r,n){e=t.constrainRotation(e,0),Os(t,e,r,n)}function Os(t,e,r,n){if(void 0!==e){var i=t.getRotation(),o=t.getCenter();void 0!==i&&o&&n>0?t.animate({rotation:e,anchor:r,duration:n,easing:gi}):t.rotate(e,r)}}function Ps(t,e,r,n){var i=t.getResolution(),o=t.constrainResolution(i,e,0);if(void 0!==o){var a=t.getResolutions();o=Kn(o,t.getMinResolution()||a[a.length-1],t.getMaxResolution()||a[0])}if(r&&void 0!==o&&o!==i){var s=t.getCenter(),l=t.calculateCenterZoom(o,r);l=t.constrainCenter(l),r=[(o*s[0]-i*l[0])/(o-i),(o*s[1]-i*l[1])/(o-i)]}As(t,o,r,n)}function As(t,e,r,n){if(e){var i=t.getResolution(),o=t.getCenter();if(void 0!==i&&o&&e!==i&&n)t.animate({resolution:e,anchor:r,duration:n,easing:gi});else{if(r){var a=t.calculateCenterZoom(e,r);t.setCenter(a)}t.setResolution(e)}}}var Ms=function(t){function e(e){t.call(this),e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getActive=function(){return this.get(ks)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(ks,t)},e.prototype.setMap=function(t){this.map_=t},e}(fr);function Ls(t){var e=!1;if(t.type==Or.DBLCLICK){var r=t.originalEvent,n=t.map,i=t.coordinate,o=r.shiftKey?-this.delta_:this.delta_;Ps(n.getView(),o,i,this.duration_),t.preventDefault(),e=!0}return!e}var Is=function(t){function e(e){t.call(this,{handleEvent:Ls});var r=e||{};this.delta_=r.delta?r.delta:1,this.duration_=void 0!==r.duration?r.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ms),Fs=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Ds=function(t){return t.target.getTargetElement()===document.activeElement},js=Ge,Ns=function(t){var e=t.originalEvent;return 0==e.button&&!(wr&&Cr&&e.ctrlKey)},$s=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},Bs=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Gs=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},Us=function(t){var e=t.pointerEvent;return Xn(void 0!==e,56),"mouse"==e.pointerType};function zs(t){for(var e=t.length,r=0,n=0,i=0;i<e;i++)r+=t[i].clientX,n+=t[i].clientY;return[r/e,n/e]}var Ws=function(t){function e(e){var r=e||{};t.call(this,r),r.handleDownEvent&&(this.handleDownEvent=r.handleDownEvent),r.handleDragEvent&&(this.handleDragEvent=r.handleDragEvent),r.handleMoveEvent&&(this.handleMoveEvent=r.handleMoveEvent),r.handleUpEvent&&(this.handleUpEvent=r.handleUpEvent),r.stopDown&&(this.stopDown=r.stopDown),this.handlingDownUpSequence=!1,this.trackedPointers_={},this.targetPointers=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.pointerEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==Or.POINTERDRAG)this.handleDragEvent(t);else if(t.type==Or.POINTERUP){var r=this.handleUpEvent(t);this.handlingDownUpSequence=r&&this.targetPointers.length>0}}else if(t.type==Or.POINTERDOWN){var n=this.handleDownEvent(t);n&&t.preventDefault(),this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==Or.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(function(t){var e=t.type;return e===Or.POINTERDOWN||e===Or.POINTERDRAG||e===Or.POINTERUP}(t)){var e=t.pointerEvent,r=e.pointerId.toString();t.type==Or.POINTERUP?delete this.trackedPointers_[r]:(t.type==Or.POINTERDOWN||r in this.trackedPointers_)&&(this.trackedPointers_[r]=e),this.targetPointers=Oe(this.trackedPointers_)}},e}(Ms),qs=function(t){function e(e){t.call(this,{stopDown:Ue});var r=e||{};this.kinetic_=r.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1,this.condition_=r.condition?r.condition:$s,this.noKinetic_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().setHint(si,1));var e=this.targetPointers,r=zs(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){var n=this.lastCentroid[0]-r[0],i=r[1]-this.lastCentroid[1],o=t.map.getView(),a=[n,i];fi(a,o.getResolution()),pi(a,o.getRotation()),hi(a,o.getCenter()),a=o.constrainCenter(a),o.setCenter(a)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var e=t.map,r=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),o=r.getCenter(),a=e.getPixelFromCoordinate(o),s=e.getCoordinateFromPixel([a[0]-n*Math.cos(i),a[1]-n*Math.sin(i)]);r.animate({center:r.constrainCenter(s),duration:500,easing:gi})}return this.panning_&&(this.panning_=!1,r.setHint(si,-1)),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.setCenter(t.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(Ws),Hs=function(t){function e(e){var r=e||{};t.call(this,{stopDown:Ue}),this.condition_=r.condition?r.condition:Fs,this.lastAngle_=void 0,this.duration_=void 0!==r.duration?r.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){if(Us(t)){var e=t.map,r=e.getView();if(r.getConstraints().rotation!==ii){var n=e.getSize(),i=t.pixel,o=Math.atan2(n[1]/2-i[1],i[0]-n[0]/2);if(void 0!==this.lastAngle_){var a=o-this.lastAngle_,s=r.getRotation();Os(r,s-a)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){if(!Us(t))return!0;var e=t.map.getView();e.setHint(si,-1);var r=e.getRotation();return Rs(e,r,void 0,this.duration_),!1},e.prototype.handleDownEvent=function(t){return!!Us(t)&&(!(!Ns(t)||!this.condition_(t))&&(t.map.getView().setHint(si,1),this.lastAngle_=void 0,!0))},e}(Ws),Xs=function(t){function e(e){t.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,r=this.element_.style;r.left=Math.min(t[0],e[0])+"px",r.top=Math.min(t[1],e[1])+"px",r.width=Math.abs(e[0]-t[0])+"px",r.height=Math.abs(e[1]-t[1])+"px"},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left=e.top=e.width=e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,r=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixel,this.map_);r[4]=r[0].slice(),this.geometry_?this.geometry_.setCoordinates([r]):this.geometry_=new Ha([r])},e.prototype.getGeometry=function(){return this.geometry_},e}(Be),Vs="boxstart",Ys="boxdrag",Ks="boxend",Zs=function(t){function e(e,r,n){t.call(this,e),this.coordinate=r,this.mapBrowserEvent=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(He);function Js(){var t,e,r=this.getMap(),n=r.getView(),i=r.getSize(),o=this.getGeometry().getExtent();if(this.out_){var a=n.calculateExtent(i),s=(t=[r.getPixelFromCoordinate(Xi(o)),r.getPixelFromCoordinate(eo(o))],zi(Ni(e),t));!function(t,e){var r=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=r,t[2]+=r,t[1]-=n,t[3]+=n}(a,1/n.getResolutionForExtent(s,i)),o=a}var l=n.constrainResolution(n.getResolutionForExtent(o,i)),c=Yi(o);c=n.constrainCenter(c),n.animate({resolution:l,center:c,duration:this.duration_,easing:gi})}var Qs=function(t){function e(e){var r=e||{},n=r.condition?r.condition:Bs;t.call(this,{condition:n,className:r.className||"ol-dragzoom",onBoxEnd:Js}),this.duration_=void 0!==r.duration?r.duration:200,this.out_=void 0!==r.out&&r.out}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(function(t){function e(e){t.call(this);var r=e||{};this.box_=new Xs(r.className||"ol-dragbox"),this.minArea_=void 0!==r.minArea?r.minArea:64,this.onBoxEnd_=r.onBoxEnd?r.onBoxEnd:ze,this.startPixel_=null,this.condition_=r.condition?r.condition:js,this.boxEndCondition_=r.boxEndCondition?r.boxEndCondition:this.defaultBoxEndCondition}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.defaultBoxEndCondition=function(t,e,r){var n=r[0]-e[0],i=r[1]-e[1];return n*n+i*i>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){Us(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Zs(Ys,t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!Us(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new Zs(Ks,t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!!Us(t)&&(!(!Ns(t)||!this.condition_(t))&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Zs(Vs,t.coordinate,t)),!0))},e}(Ws)),tl=37,el=38,rl=39,nl=40;function il(t){var e=!1;if(t.type==tr){var r=t.originalEvent.keyCode;if(this.condition_(t)&&(r==nl||r==tl||r==rl||r==el)){var n=t.map.getView(),i=n.getResolution()*this.pixelDelta_,o=0,a=0;r==nl?a=-i:r==tl?o=-i:r==rl?o=i:a=i;var s=[o,a];pi(s,n.getRotation()),function(t,e,r){var n=t.getCenter();if(n){var i=t.constrainCenter([n[0]+e[0],n[1]+e[1]]);r?t.animate({duration:r,easing:mi,center:i}):t.setCenter(i)}}(n,s,this.duration_),t.preventDefault(),e=!0}}return!e}var ol=function(t){function e(e){t.call(this,{handleEvent:il});var r=e||{};this.defaultCondition_=function(t){return $s(t)&&Gs(t)},this.condition_=void 0!==r.condition?r.condition:this.defaultCondition_,this.duration_=void 0!==r.duration?r.duration:100,this.pixelDelta_=void 0!==r.pixelDelta?r.pixelDelta:128}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ms);function al(t){var e=!1;if(t.type==tr||t.type==er){var r=t.originalEvent.charCode;if(this.condition_(t)&&(r=="+".charCodeAt(0)||r=="-".charCodeAt(0))){var n=t.map,i=r=="+".charCodeAt(0)?this.delta_:-this.delta_;Ps(n.getView(),i,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var sl=function(t){function e(e){t.call(this,{handleEvent:al});var r=e||{};this.condition_=r.condition?r.condition:Gs,this.delta_=r.delta?r.delta:1,this.duration_=void 0!==r.duration?r.duration:100}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ms),ll="trackpad",cl="wheel",ul=function(t){function e(e){var r=e||{};t.call(this,r),this.delta_=0,this.duration_=void 0!==r.duration?r.duration:250,this.timeout_=void 0!==r.timeout?r.timeout:80,this.useAnchor_=void 0===r.useAnchor||r.useAnchor,this.constrainResolution_=r.constrainResolution||!1,this.condition_=r.condition?r.condition:js,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().setHint(si,-1)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==lr&&e!==ir)return!0;t.preventDefault();var r,n=t.map,i=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==lr?(r=i.deltaY,br&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=Er),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)):t.type==ir&&(r=-i.wheelDeltaY,xr&&(r/=3)),0===r)return!1;var o=Date.now();if(void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?ll:cl),this.mode_===ll){var a=n.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):a.setHint(si,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var s=a.getResolution()*Math.pow(2,r/this.trackpadDeltaPerZoom_),l=a.getMinResolution(),c=a.getMaxResolution(),u=0;if(s<l?(s=Math.max(s,l/this.trackpadZoomBuffer_),u=1):s>c&&(s=Math.min(s,c*this.trackpadZoomBuffer_),u=-1),this.lastAnchor_){var h=a.calculateCenterZoom(s,this.lastAnchor_);a.setCenter(a.constrainCenter(h))}return a.setResolution(s),0===u&&this.constrainResolution_&&a.animate({resolution:a.constrainResolution(s,r>0?-1:1),easing:gi,anchor:this.lastAnchor_,duration:this.duration_}),u>0?a.animate({resolution:l,easing:gi,anchor:this.lastAnchor_,duration:500}):u<0&&a.animate({resolution:c,easing:gi,anchor:this.lastAnchor_,duration:500}),this.startTime_=o,!1}this.delta_+=r;var p=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),p),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();Ps(e,-Kn(this.delta_,-1,1),this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(Ms),hl=function(t){function e(e){var r=e||{},n=r;n.stopDown||(n.stopDown=Ue),t.call(this,n),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==r.threshold?r.threshold:.3,this.duration_=void 0!==r.duration?r.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=0,r=this.targetPointers[0],n=this.targetPointers[1],i=Math.atan2(n.clientY-r.clientY,n.clientX-r.clientX);if(void 0!==this.lastAngle_){var o=i-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=i;var a=t.map,s=a.getView();if(s.getConstraints().rotation!==ii){var l=a.getViewport().getBoundingClientRect(),c=zs(this.targetPointers);if(c[0]-=l.left,c[1]-=l.top,this.anchor_=a.getCoordinateFromPixel(c),this.rotating_){var u=s.getRotation();a.render(),Os(s,u+e,this.anchor_)}}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView();if(e.setHint(si,-1),this.rotating_){var r=e.getRotation();Rs(e,r,this.anchor_,this.duration_)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().setHint(si,1),!0}return!1},e}(Ws),pl=function(t){function e(e){var r=e||{},n=r;n.stopDown||(n.stopDown=Ue),t.call(this,n),this.constrainResolution_=r.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==r.duration?r.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=1,r=this.targetPointers[0],n=this.targetPointers[1],i=r.clientX-n.clientX,o=r.clientY-n.clientY,a=Math.sqrt(i*i+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;var s=t.map,l=s.getView(),c=l.getResolution(),u=l.getMaxResolution(),h=l.getMinResolution(),p=c*e;p>u?(e=u/c,p=u):p<h&&(e=h/c,p=h),1!=e&&(this.lastScaleDelta_=e);var f=s.getViewport().getBoundingClientRect(),d=zs(this.targetPointers);d[0]-=f.left,d[1]-=f.top,this.anchor_=s.getCoordinateFromPixel(d),s.render(),As(l,p,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView();e.setHint(si,-1);var r=e.getResolution();if(this.constrainResolution_||r<e.getMinResolution()||r>e.getMaxResolution()){var n=this.lastScaleDelta_-1;!function(t,e,r,n,i){e=t.constrainResolution(e,0,i),As(t,e,r,n)}(e,r,this.anchor_,this.duration_,n)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().setHint(si,1),!0}return!1},e}(Ws);var fl=0,dl=1,gl=2,vl=3,ml=function(t){function e(e,r,n,i,o){var a=void 0!==o?fl:gl;t.call(this,e,r,n,a),this.loader_=void 0!==o?o:null,this.canvas_=i,this.error_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=vl):this.state=gl,this.changed()},e.prototype.load=function(){this.state==fl&&(this.state=dl,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(function(t){function e(e,r,n,i){t.call(this),this.extent=e,this.pixelRatio_=n,this.resolution=r,this.state=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(Ve)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return be()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){be()},e}(Xe)),yl="IMAGE",_l="TILE",bl="VECTOR_TILE",xl="VECTOR",wl="image",Cl="vector",El=function(t){function e(e,r,n,i,o){t.call(this,e),this.vectorContext=r,this.frameState=n,this.context=i,this.glContext=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(He),Sl=function(t){function e(e){t.call(this),this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(Ye)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t,e){for(var r=this.oldest_;r;)t.call(e,r.value_,r.key_,this),r=r.newer},e.prototype.get=function(t){var e=this.entries_[t];return Xn(void 0!==e,15),e===this.newest_||(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e),e.value_},e.prototype.remove=function(t){var e=this.entries_[t];return Xn(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.key_;return e},e.prototype.getValues=function(){var t,e=new Array(this.count_),r=0;for(t=this.newest_;t;t=t.older)e[r++]=t.value_;return e},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){Xn(!(t in this.entries_),16);var r={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[t]=r,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},e}(Xe),Tl=[0,0,0,1],kl=[],Rl=[0,0,0,1],Ol=[0,0,0,0],Pl=new Sl,Al={},Ml=null,Ll={},Il=function(){var t,e,r=Al,n=["monospace","serif"],i=n.length,o="wmytzilWMYTZIL@#/&?$%10";function a(t){for(var r=Fl(),a=100;a<=700;a+=300){for(var s=a+" ",l=!0,c=0;c<i;++c){var u=n[c];if(r.font=s+"32px "+u,e=r.measureText(o).width,t!=u){r.font=s+"32px "+t+","+u;var h=r.measureText(o).width;l=l&&h!=e}}if(l)return!0}return!1}function s(){var e=!0;for(var n in r)r[n]<60&&(a(n)?(r[n]=60,Re(Ll),Ml=null,Pl.clear()):(++r[n],e=!1));e&&(clearInterval(t),t=void 0)}return function(e){var n=ms(e);if(n)for(var i=0,o=n.length;i<o;++i){var l=n[i];l in r||(r[l]=60,a(l)||(r[l]=0,void 0===t&&(t=setInterval(s,32))))}}}();function Fl(){return Ml||(Ml=Za(1,1)),Ml}var Dl,jl,Nl=(jl=Ll,function(t){var e=jl[t];return null==e&&(Dl||((Dl=document.createElement("span")).textContent="M",Dl.style.margin=Dl.style.padding="0 !important",Dl.style.position="absolute !important",Dl.style.left="-99999px !important"),Dl.style.font=t,document.body.appendChild(Dl),e=jl[t]=Dl.offsetHeight,document.body.removeChild(Dl)),e});function $l(t,e){var r=Fl();return t!=r.font&&(r.font=t),r.measureText(e).width}function Bl(t,e,r,n){0!==e&&(t.translate(r,n),t.rotate(e),t.translate(-r,-n))}var Gl=[1,0,0,1,0,0];function Ul(t,e,r,n,i,o,a,s,l,c,u){var h;1!=r&&(h=t.globalAlpha,t.globalAlpha=h*r),e&&t.setTransform.apply(t,e),t.drawImage(n,i,o,a,s,l,c,a*u,s*u),h&&(t.globalAlpha=h),e&&t.setTransform.apply(t,Gl)}var zl=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,Wl=/^([a-z]*)$/i;function ql(t){return"string"==typeof t?t:Xl(t)}!function(){var t={},e=0}();function Hl(t){return t[0]=Kn(t[0]+.5|0,0,255),t[1]=Kn(t[1]+.5|0,0,255),t[2]=Kn(t[2]+.5|0,0,255),t[3]=Kn(t[3],0,1),t}function Xl(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var r=t[1];r!=(0|r)&&(r=r+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+r+","+n+","+(void 0===t[3]?1:t[3])+")"}function Vl(t){return Array.isArray(t)?Xl(t):t}var Yl=function(){};Yl.prototype.drawCustom=function(t,e,r){},Yl.prototype.drawGeometry=function(t){},Yl.prototype.setStyle=function(t){},Yl.prototype.drawCircle=function(t,e){},Yl.prototype.drawFeature=function(t,e){},Yl.prototype.drawGeometryCollection=function(t,e){},Yl.prototype.drawLineString=function(t,e){},Yl.prototype.drawMultiLineString=function(t,e){},Yl.prototype.drawMultiPoint=function(t,e){},Yl.prototype.drawMultiPolygon=function(t,e){},Yl.prototype.drawPoint=function(t,e){},Yl.prototype.drawPolygon=function(t,e){},Yl.prototype.drawText=function(t,e){},Yl.prototype.setFillStrokeStyle=function(t,e){},Yl.prototype.setImageStyle=function(t,e){},Yl.prototype.setTextStyle=function(t,e){};var Kl=Yl,Zl=function(t){function e(e,r,n,i,o){t.call(this),this.context_=e,this.pixelRatio_=r,this.extent_=n,this.transform_=i,this.viewRotation_=o,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=0,this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=0,this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawImages_=function(t,e,r,n){if(this.image_){var i=bo(t,e,r,2,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,s=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=s*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var c=0,u=i.length;c<u;c+=2){var h=i[c]-this.imageAnchorX_,p=i[c+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_){var f=h+this.imageAnchorX_,d=p+this.imageAnchorY_;ca(a,f,d,this.imageScale_,this.imageScale_,l,-f,-d),o.setTransform.apply(o,a)}o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,h,p,this.imageWidth_,this.imageHeight_)}0===l&&1==this.imageScale_||o.setTransform(1,0,0,1,0,0),1!=this.imageOpacity_&&(o.globalAlpha=s)}},e.prototype.drawText_=function(t,e,r,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var i=bo(t,e,r,n,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.textRotation_;for(this.textRotateWithView_&&(a+=this.viewRotation_);e<r;e+=n){var s=i[e]+this.textOffsetX_,l=i[e+1]+this.textOffsetY_;if(0!==a||1!=this.textScale_){var c=ca(this.tmpLocalTransform_,s,l,this.textScale_,this.textScale_,a,-s,-l);o.setTransform.apply(o,c)}this.textStrokeState_&&o.strokeText(this.text_,s,l),this.textFillState_&&o.fillText(this.text_,s,l)}0===a&&1==this.textScale_||o.setTransform(1,0,0,1,0,0)}},e.prototype.moveToLineTo_=function(t,e,r,n,i){var o=this.context_,a=bo(t,e,r,n,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);var s=a.length;i&&(s-=2);for(var l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return i&&o.closePath(),r},e.prototype.drawRings_=function(t,e,r,n){for(var i=0,o=r.length;i<o;++i)e=this.moveToLineTo_(t,e,r[i],n,!0);return e},e.prototype.drawCircle=function(t){if(no(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=function(t,e,r){var n=t.getFlatCoordinates();if(n){var i=t.getStride();return bo(n,0,n.length,i,e,r)}return null}(t,this.transform_,this.pixelCoordinates_),r=e[2]-e[0],n=e[3]-e[1],i=Math.sqrt(r*r+n*n),o=this.context_;o.beginPath(),o.arc(e[0],e[1],i,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.drawGeometry=function(t){switch(t.getType()){case ao:this.drawPoint(t);break;case so:this.drawLineString(t);break;case co:this.drawPolygon(t);break;case uo:this.drawMultiPoint(t);break;case ho:this.drawMultiLineString(t);break;case po:this.drawMultiPolygon(t);break;case fo:this.drawGeometryCollection(t);break;case go:this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var r=e.getGeometryFunction()(t);r&&no(this.extent_,r.getExtent())&&(this.setStyle(e),this.drawGeometry(r))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),r=0,n=e.length;r<n;++r)this.drawGeometry(e[r])},e.prototype.drawPoint=function(t){var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawMultiPoint=function(t){var e=t.getFlatCoordinates(),r=t.getStride();this.image_&&this.drawImages_(e,0,e.length,r),""!==this.text_&&this.drawText_(e,0,e.length,r)},e.prototype.drawLineString=function(t){if(no(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(r,0,r.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiLineString=function(t){var e=t.getExtent();if(no(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var r=this.context_,n=t.getFlatCoordinates(),i=0,o=t.getEnds(),a=t.getStride();r.beginPath();for(var s=0,l=o.length;s<l;++s)i=this.moveToLineTo_(n,i,o[s],a,!1);r.stroke()}if(""!==this.text_){var c=t.getFlatMidpoints();this.drawText_(c,0,c.length,2)}}},e.prototype.drawPolygon=function(t){if(no(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var r=t.getFlatInteriorPoint();this.drawText_(r,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(no(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,r=t.getOrientedFlatCoordinates(),n=0,i=t.getEndss(),o=t.getStride();e.beginPath();for(var a=0,s=i.length;a<s;++a){var l=i[a];n=this.drawRings_(r,n,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var c=t.getFlatInteriorPoints();this.drawText_(c,0,c.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,r=this.contextFillState_;r?r.fillStyle!=t.fillStyle&&(r.fillStyle=e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,r=this.contextStrokeState_;r?(r.lineCap!=t.lineCap&&(r.lineCap=e.lineCap=t.lineCap),Sr&&(xn(r.lineDash,t.lineDash)||e.setLineDash(r.lineDash=t.lineDash),r.lineDashOffset!=t.lineDashOffset&&(r.lineDashOffset=e.lineDashOffset=t.lineDashOffset)),r.lineJoin!=t.lineJoin&&(r.lineJoin=e.lineJoin=t.lineJoin),r.lineWidth!=t.lineWidth&&(r.lineWidth=e.lineWidth=t.lineWidth),r.miterLimit!=t.miterLimit&&(r.miterLimit=e.miterLimit=t.miterLimit),r.strokeStyle!=t.strokeStyle&&(r.strokeStyle=e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,Sr&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,r=this.contextTextState_,n=t.textAlign?t.textAlign:"center";r?(r.font!=t.font&&(r.font=e.font=t.font),r.textAlign!=n&&(r.textAlign=e.textAlign=n),r.textBaseline!=t.textBaseline&&(r.textBaseline=e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){if(t){var r=t.getColor();this.fillState_={fillStyle:Vl(r||Tl)}}else this.fillState_=null;if(e){var n=e.getColor(),i=e.getLineCap(),o=e.getLineDash(),a=e.getLineDashOffset(),s=e.getLineJoin(),l=e.getWidth(),c=e.getMiterLimit();this.strokeState_={lineCap:void 0!==i?i:"round",lineDash:o||kl,lineDashOffset:a||0,lineJoin:void 0!==s?s:"round",lineWidth:this.pixelRatio_*(void 0!==l?l:1),miterLimit:void 0!==c?c:10,strokeStyle:Vl(n||Rl)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){if(t){var e=t.getAnchor(),r=t.getImage(1),n=t.getOrigin(),i=t.getSize();this.imageAnchorX_=e[0],this.imageAnchorY_=e[1],this.imageHeight_=i[1],this.image_=r,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScale()*this.pixelRatio_,this.imageWidth_=i[0]}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var r=e.getColor();this.textFillState_={fillStyle:Vl(r||Tl)}}else this.textFillState_=null;var n=t.getStroke();if(n){var i=n.getColor(),o=n.getLineCap(),a=n.getLineDash(),s=n.getLineDashOffset(),l=n.getLineJoin(),c=n.getWidth(),u=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:"round",lineDash:a||kl,lineDashOffset:s||0,lineJoin:void 0!==l?l:"round",lineWidth:void 0!==c?c:1,miterLimit:void 0!==u?u:10,strokeStyle:Vl(i||Rl)}}else this.textStrokeState_=null;var h=t.getFont(),p=t.getOffsetX(),f=t.getOffsetY(),d=t.getRotateWithView(),g=t.getRotation(),v=t.getScale(),m=t.getText(),y=t.getTextAlign(),_=t.getTextBaseline();this.textState_={font:void 0!==h?h:"10px sans-serif",textAlign:void 0!==y?y:"center",textBaseline:void 0!==_?_:"middle"},this.text_=void 0!==m?m:"",this.textOffsetX_=void 0!==p?this.pixelRatio_*p:0,this.textOffsetY_=void 0!==f?this.pixelRatio_*f:0,this.textRotateWithView_=void 0!==d&&d,this.textRotation_=void 0!==g?g:0,this.textScale_=this.pixelRatio_*(void 0!==v?v:1)}else this.text_=""},e}(Kl),Jl=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};function Ql(t,e,r){return e+":"+t+":"+(r?ql(r):"null")}Jl.prototype.clear=function(){this.cache_={},this.cacheSize_=0},Jl.prototype.expire=function(){if(this.cacheSize_>this.maxCacheSize_){var t=0;for(var e in this.cache_){var r=this.cache_[e];0!=(3&t++)||r.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},Jl.prototype.get=function(t,e,r){var n=Ql(t,e,r);return n in this.cache_?this.cache_[n]:null},Jl.prototype.set=function(t,e,r,n){var i=Ql(t,e,r);this.cache_[i]=n,++this.cacheSize_},Jl.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()};var tc=new Jl;function ec(t,e){tc.expire()}function rc(t,e){return t.zIndex-e.zIndex}var nc=[],ic=function(t){function e(e){t.call(this,e);var r=e.getViewport();this.context_=Za(),this.canvas_=this.context_.canvas,this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className="ol-unselectable",r.insertBefore(this.canvas_,r.childNodes[0]||null),this.renderedVisible_=!0,this.transform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.dispatchRenderEvent=function(t,e){var r=this.getMap(),n=this.context_;if(r.hasListener(t)){var i=e.extent,o=e.pixelRatio,a=e.viewState.rotation,s=this.getTransform(e),l=new Zl(n,o,i,s,a),c=new El(t,l,e,n,null);r.dispatchEvent(c)}},e.prototype.getTransform=function(t){var e=t.viewState,r=this.canvas_.width/2,n=this.canvas_.height/2,i=t.pixelRatio/e.resolution,o=-i,a=-e.rotation,s=-e.center[0],l=-e.center[1];return ca(this.transform_,r,n,i,o,a,s,l)},e.prototype.renderFrame=function(t){if(t){var e=this.context_,r=t.pixelRatio,n=Math.round(t.size[0]*r),i=Math.round(t.size[1]*r);this.canvas_.width!=n||this.canvas_.height!=i?(this.canvas_.width=n,this.canvas_.height=i):e.clearRect(0,0,n,i);var o=t.viewState.rotation;this.calculateMatrices2D(t),this.dispatchRenderEvent(Nn,t);var a=t.layerStatesArray;!function(t,e){var r,n=t.length,i=Array(t.length);for(r=0;r<n;r++)i[r]={index:r,value:t[r]};for(i.sort((function(t,r){return e(t.value,r.value)||t.index-r.index})),r=0;r<t.length;r++)t[r]=i[r].value}(a,rc),o&&(e.save(),Bl(e,o,n/2,i/2));var s,l,c=t.viewState.resolution;for(s=0,l=a.length;s<l;++s){var u=a[s],h=u.layer,p=this.getLayerRenderer(h);ys(u,c)&&u.sourceState==cs&&(p.prepareFrame(t,u)&&p.composeFrame(t,u,e))}o&&e.restore(),this.dispatchRenderEvent(jn,t),this.renderedVisible_||(this.canvas_.style.display="",this.renderedVisible_=!0),this.scheduleRemoveUnusedLayerRenderers(t),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.canvas_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i,o,a){var s,l,c=e.viewState.resolution,u=e.layerStatesArray,h=u.length,p=aa(e.pixelToCoordinateTransform,t.slice());for(l=h-1;l>=0;--l){var f=u[l],d=f.layer;if(ys(f,c)&&o.call(a,d))if(s=this.getLayerRenderer(d).forEachLayerAtCoordinate(p,e,r,n,i))return s}},e.prototype.registerLayerRenderers=function(e){t.prototype.registerLayerRenderers.call(this,e);for(var r=0,n=e.length;r<n;++r){var i=e[r];o=i,nc.indexOf(o)>=0||nc.push(i)}var o},e}(function(t){function e(e){t.call(this),this.map_=e,this.layerRenderers_={},this.layerRendererListeners_={},this.layerRendererConstructors_=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.dispatchRenderEvent=function(t,e){be()},e.prototype.registerLayerRenderers=function(t){this.layerRendererConstructors_.push.apply(this.layerRendererConstructors_,t)},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,r=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;ca(r,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),function(t){var e,r=(e=t)[0]*e[3]-e[1]*e[2];Xn(0!==r,32);var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5];t[0]=a/r,t[1]=-i/r,t[2]=-o/r,t[3]=n/r,t[4]=(o*l-a*s)/r,t[5]=-(n*l-i*s)/r}(oa(n,r))},e.prototype.removeLayerRenderers=function(){for(var t in this.layerRenderers_)this.removeLayerRendererByKey_(t).dispose()},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o,a){var s,l=e.viewState,c=l.resolution;function u(t,r){var o=e.layerStates[we(r)].managed;if(!(we(t)in e.skippedFeatureUids)||o)return n.call(i,t,o?r:null)}var h=l.projection,p=t;if(h.canWrapX()){var f=h.getExtent(),d=ro(f),g=t[0];if(g<f[0]||g>f[2])p=[g+d*Math.ceil((f[0]-g)/d),t[1]]}var v,m=e.layerStatesArray;for(v=m.length-1;v>=0;--v){var y=m[v],_=y.layer;if(ys(y,c)&&o.call(a,_)){var b=this.getLayerRenderer(_),x=_.getSource();if(x&&(s=b.forEachFeatureAtCoordinate(x.getWrapX()?p:t,e,r,u)),s)return s}}},e.prototype.forEachLayerAtPixel=function(t,e,r,n,i,o,a){return be()},e.prototype.hasFeatureAtCoordinate=function(t,e,r,n,i){return void 0!==this.forEachFeatureAtCoordinate(t,e,r,Ge,this,n,i)},e.prototype.getLayerRenderer=function(t){var e=we(t);if(e in this.layerRenderers_)return this.layerRenderers_[e];for(var r,n=0,i=this.layerRendererConstructors_.length;n<i;++n){var o=this.layerRendererConstructors_[n];if(o.handles(t)){r=o.create(this,t);break}}if(!r)throw new Error("Unable to create renderer for layer: "+t.getType());return this.layerRenderers_[e]=r,this.layerRendererListeners_[e]=Fe(r,Ve,this.handleLayerRendererChange_,this),r},e.prototype.getLayerRendererByKey=function(t){return this.layerRenderers_[t]},e.prototype.getLayerRenderers=function(){return this.layerRenderers_},e.prototype.getMap=function(){return this.map_},e.prototype.handleLayerRendererChange_=function(){this.map_.render()},e.prototype.removeLayerRendererByKey_=function(t){var e=this.layerRenderers_[t];return delete this.layerRenderers_[t],Ne(this.layerRendererListeners_[t]),delete this.layerRendererListeners_[t],e},e.prototype.removeUnusedLayerRenderers_=function(t,e){for(var r in this.layerRenderers_)e&&r in e.layerStates||this.removeLayerRendererByKey_(r).dispose()},e.prototype.renderFrame=function(t){be()},e.prototype.scheduleExpireIconCache=function(t){t.postRenderFunctions.push(ec)},e.prototype.scheduleRemoveUnusedLayerRenderers=function(t){for(var e in this.layerRenderers_)if(!(e in t.layerStates))return void t.postRenderFunctions.push(this.removeUnusedLayerRenderers_.bind(this))},e}(Be)),oc=function(t){function e(e){t.call(this,e),this.renderedResolution,this.transform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clip=function(t,e,r){var n=e.pixelRatio,i=e.size[0]*n,o=e.size[1]*n,a=e.viewState.rotation,s=to(r),l=eo(r),c=Vi(r),u=Xi(r);aa(e.coordinateToPixelTransform,s),aa(e.coordinateToPixelTransform,l),aa(e.coordinateToPixelTransform,c),aa(e.coordinateToPixelTransform,u),t.save(),Bl(t,-a,i/2,o/2),t.beginPath(),t.moveTo(s[0]*n,s[1]*n),t.lineTo(l[0]*n,l[1]*n),t.lineTo(c[0]*n,c[1]*n),t.lineTo(u[0]*n,u[1]*n),t.clip(),Bl(t,a,i/2,o/2)},e.prototype.dispatchComposeEvent_=function(t,e,r,n){var i=this.getLayer();if(i.hasListener(t)){var o=r.size[0]*r.pixelRatio,a=r.size[1]*r.pixelRatio,s=r.viewState.rotation;Bl(e,-s,o/2,a/2);var l=void 0!==n?n:this.getTransform(r,0),c=new Zl(e,r.pixelRatio,r.extent,l,r.viewState.rotation),u=new El(t,c,r,e,null);i.dispatchEvent(u),Bl(e,s,o/2,a/2)}},e.prototype.forEachLayerAtCoordinate=function(t,e,r,n,i){return this.forEachFeatureAtCoordinate(t,e,r,Ge)?n.call(i,this.getLayer(),null):void 0},e.prototype.postCompose=function(t,e,r,n){this.dispatchComposeEvent_(jn,t,e,n)},e.prototype.preCompose=function(t,e,r){this.dispatchComposeEvent_(Nn,t,e,r)},e.prototype.dispatchRenderEvent=function(t,e,r){this.dispatchComposeEvent_($n,t,e,r)},e.prototype.getTransform=function(t,e){var r=t.viewState,n=t.pixelRatio,i=n*t.size[0]/2,o=n*t.size[1]/2,a=n/r.resolution,s=-a,l=-r.rotation,c=-r.center[0]+e,u=-r.center[1];return ca(this.transform_,i,o,a,s,l,c,u)},e.prototype.composeFrame=function(t,e,r){be()},e.prototype.prepareFrame=function(t,e){return be()},e}(function(t){function e(e){t.call(this),this.layer_=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLoadedTileFinder=function(t,e,r){return function(n,i){return t.forEachLoadedTile(e,n,i,(function(t){r[n]||(r[n]={}),r[n][t.tileCoord.toString()]=t}))}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n){},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleImageChange_=function(t){t.target.getState()===gl&&this.renderIfReadyAndVisible()},e.prototype.hasFeatureAtCoordinate=function(t,e){return!1},e.prototype.loadImage=function(t){var e=t.getState();return e!=gl&&e!=vl&&Fe(t,Ve,this.handleImageChange_,this),e==fl&&(t.load(),e=t.getState()),e==gl},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==cs&&this.changed()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var r=function(t,e,r){var n=we(t);n in r.usedTiles&&t.expireCache(r.viewState.projection,r.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(r)}},e.prototype.updateUsedTiles=function(t,e,r,n){var i=we(e),o=r.toString();i in t?o in t[i]?t[i][o].extend(n):t[i][o]=n:(t[i]={},t[i][o]=n)},e.prototype.manageTilePyramid=function(t,e,r,n,i,o,a,s,l,c){var u=we(e);u in t.wantedTiles||(t.wantedTiles[u]={});var h,p,f,d,g,v,m=t.wantedTiles[u],y=t.tileQueue;for(v=r.getMinZoom();v<=a;++v)for(p=r.getTileRangeForExtentAndZ(o,v,p),f=r.getResolution(v),d=p.minX;d<=p.maxX;++d)for(g=p.minY;g<=p.maxY;++g)a-v<=s?((h=e.getTile(v,d,g,n,i)).getState()==Gn&&(m[h.getKey()]=!0,y.isKeyQueued(h.getKey())||y.enqueue([h,u,r.getTileCoordCenter(h.tileCoord),f])),void 0!==l&&l.call(c,h)):e.useTile(v,d,g,i)},e}(cr)),ac=function(t){function e(e){t.call(this,e),this.coordinateToCanvasPixelTransform=[1,0,0,1,0,0],this.hitCanvasContext_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.composeFrame=function(t,e,r){this.preCompose(r,t);var n=this.getImage();if(n){var i=e.extent,o=void 0!==i&&!Li(i,t.extent)&&no(i,t.extent);o&&this.clip(r,t,i);var a=this.getImageTransform(),s=r.globalAlpha;r.globalAlpha=e.opacity;var l=a[4],c=a[5],u=n.width*a[0],h=n.height*a[3];u>=.5&&h>=.5&&r.drawImage(n,0,0,+n.width,+n.height,Math.round(l),Math.round(c),Math.round(u),Math.round(h)),r.globalAlpha=s,o&&r.restore()}this.postCompose(r,t,e)},e.prototype.getImage=function(){return be()},e.prototype.getImageTransform=function(){return be()},e.prototype.forEachLayerAtCoordinate=function(t,e,r,n,i){if(this.getImage()){var o=aa(this.coordinateToCanvasPixelTransform,t.slice());fi(o,e.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=Za(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),o[0],o[1],1,1,0,0,1,1);var a=this.hitCanvasContext_.getImageData(0,0,1,1).data;return a[3]>0?n.call(i,this.getLayer(),a):void 0}},e}(oc),sc=function(t){function e(r){if(t.call(this,r),this.image_=null,this.imageTransform_=[1,0,0,1,0,0],this.skippedFeatures_=[],this.vectorRenderer_=null,r.getType()===xl)for(var n=0,i=nc.length;n<i;++n){var o=nc[n];if(o!==e&&o.handles(r)){this.vectorRenderer_=new o(r);break}}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.vectorRenderer_&&this.vectorRenderer_.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.prepareFrame=function(t,e){var r,n=t.pixelRatio,i=t.size,o=t.viewState,a=o.center,s=o.resolution,l=this.getLayer().getSource(),c=t.viewHints,u=this.vectorRenderer_,h=t.extent;if(u||void 0===e.extent||(h=Qi(h,e.extent)),!c[ai]&&!c[si]&&!io(h)){var p=o.projection,f=this.skippedFeatures_;if(u){var d=u.context,g=ke({},t,{size:[ro(h)/s,Ji(h)/s],viewState:ke({},t.viewState,{rotation:0})}),v=Object.keys(g.skippedFeatureUids).sort();r=new ml(h,s,n,d.canvas,(function(t){!u.prepareFrame(g,e)||!u.replayGroupChanged&&xn(f,v)||(d.canvas.width=g.size[0]*n,d.canvas.height=g.size[1]*n,u.compose(d,g,e),f=v,t())}))}else r=l.getImage(h,s,n,p);r&&this.loadImage(r)&&(this.image_=r,this.skippedFeatures_=f)}if(this.image_){var m=(r=this.image_).getExtent(),y=r.getResolution(),_=r.getPixelRatio(),b=n*y/(s*_),x=ca(this.imageTransform_,n*i[0]/2,n*i[1]/2,b,b,0,_*(m[0]-a[0])/y,_*(a[1]-m[3])/y);ca(this.coordinateToCanvasPixelTransform,n*i[0]/2-x[4],n*i[1]/2-x[5],n/s,-n/s,0,-a[0],-a[1]),this.renderedResolution=y*n/_}return!!this.image_},e.prototype.forEachFeatureAtCoordinate=function(e,r,n,i){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,r,n,i):t.prototype.forEachFeatureAtCoordinate.call(this,e,r,n,i)},e}(ac);sc.handles=function(t){return t.getType()===yl||t.getType()===xl&&t.getRenderMode()===wl},sc.create=function(t,e){return new sc(e)};var lc=sc,cc=function(t,e,r,n){this.minX=t,this.maxX=e,this.minY=r,this.maxY=n};function uc(t,e,r,n,i){return void 0!==i?(i.minX=t,i.maxX=e,i.minY=r,i.maxY=n,i):new cc(t,e,r,n)}cc.prototype.contains=function(t){return this.containsXY(t[1],t[2])},cc.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},cc.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},cc.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},cc.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},cc.prototype.getHeight=function(){return this.maxY-this.minY+1},cc.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},cc.prototype.getWidth=function(){return this.maxX-this.minX+1},cc.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY};var hc=cc,pc=function(t){function e(e,r){t.call(this,e),this.context=r?null:Za(),this.oversampling_,this.renderedExtent_=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=[1/0,1/0,-1/0,-1/0],this.tmpTileRange_=new hc(0,0,0,0),this.imageTransform_=[1,0,0,1,0,0],this.zDirection=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isDrawableTile_=function(t){var e=this.getLayer(),r=t.getState(),n=e.getUseInterimTilesOnError();return r==zn||r==qn||r==Wn&&!n},e.prototype.getTile=function(t,e,r,n,i){var o=this.getLayer(),a=o.getSource().getTile(t,e,r,n,i);return a.getState()==Wn&&(o.getUseInterimTilesOnError()?o.getPreload()>0&&(this.newTiles_=!0):a.setState(zn)),this.isDrawableTile_(a)||(a=a.getInterimTile()),a},e.prototype.prepareFrame=function(t,e){var r=t.pixelRatio,n=t.size,i=t.viewState,o=i.projection,a=i.resolution,s=i.center,l=this.getLayer(),c=l.getSource(),u=c.getRevision(),h=c.getTileGridForProjection(o),p=h.getZForResolution(a,this.zDirection),f=h.getResolution(p),d=Math.round(a/f)||1,g=t.extent;if(void 0!==e.extent&&(g=Qi(g,e.extent)),io(g))return!1;var v=h.getTileRangeForExtentAndZ(g,p),m=h.getTileRangeExtent(p,v),y=c.getTilePixelRatio(r),_={};_[p]={};var b,x,w,C=this.createLoadedTileFinder(c,o,_),E=t.viewHints,S=E[ai]||E[si],T=this.tmpExtent,k=this.tmpTileRange_;for(this.newTiles_=!1,x=v.minX;x<=v.maxX;++x)for(w=v.minY;w<=v.maxY;++w)if(!(Date.now()-t.time>16&&S)){if(b=this.getTile(p,x,w,r,o),this.isDrawableTile_(b)){var R=we(this);if(b.getState()==zn){_[p][b.tileCoord.toString()]=b;var O=b.inTransition(R);this.newTiles_||!O&&-1!==this.renderedTiles.indexOf(b)||(this.newTiles_=!0)}if(1===b.getAlpha(R,t.time))continue}var P=h.getTileCoordChildTileRange(b.tileCoord,k,T),A=!1;P&&(A=C(p+1,P)),A||h.forEachTileCoordParentTileRange(b.tileCoord,C,null,k,T)}var M=f*r/y*d;if(!(this.renderedResolution&&Date.now()-t.time>16&&S)&&(this.newTiles_||!this.renderedExtent_||!Li(this.renderedExtent_,g)||this.renderedRevision!=u||d!=this.oversampling_||!S&&M!=this.renderedResolution)){var L=this.context;if(L){var I=c.getTilePixelSize(p,r,o),F=Math.round(v.getWidth()*I[0]/d),D=Math.round(v.getHeight()*I[1]/d),j=L.canvas;j.width!=F||j.height!=D?(this.oversampling_=d,j.width=F,j.height=D):((this.renderedExtent_&&!Bi(m,this.renderedExtent_)||this.renderedRevision!=u)&&L.clearRect(0,0,F,D),d=this.oversampling_)}this.renderedTiles.length=0;var N,$,B,G,U,z,W,q,H,X,V=Object.keys(_).map(Number);for(V.sort((function(t,e){return t===p?1:e===p?-1:t>e?1:t<e?-1:0})),G=0,U=V.length;G<U;++G)for(var Y in B=V[G],$=c.getTilePixelSize(B,r,o),N=h.getResolution(B)/f,W=y*c.getGutterForProjection(o),q=_[B])b=q[Y],x=((z=h.getTileCoordExtent(b.getTileCoord(),T))[0]-m[0])/f*y/d,w=(m[3]-z[3])/f*y/d,H=$[0]*N/d,X=$[1]*N/d,this.drawTileImage(b,t,e,x,w,H,X,W,p===B),this.renderedTiles.push(b);this.renderedRevision=u,this.renderedResolution=f*r/y*d,this.renderedExtent_=m}var K=this.renderedResolution/a,Z=ca(this.imageTransform_,r*n[0]/2,r*n[1]/2,K,K,0,(this.renderedExtent_[0]-s[0])/this.renderedResolution*r,(s[1]-this.renderedExtent_[3])/this.renderedResolution*r);return ca(this.coordinateToCanvasPixelTransform,r*n[0]/2-Z[4],r*n[1]/2-Z[5],r/a,-r/a,0,-s[0],-s[1]),this.updateUsedTiles(t.usedTiles,c,p,v),this.manageTilePyramid(t,c,h,r,o,g,p,l.getPreload()),this.scheduleExpireCache(t,c),this.renderedTiles.length>0},e.prototype.drawTileImage=function(t,e,r,n,i,o,a,s,l){var c=this.getTileImage(t);if(c){var u=we(this),h=l?t.getAlpha(u,e.time):1,p=this.getLayer().getSource();1!==h||p.getOpaque(e.viewState.projection)||this.context.clearRect(n,i,o,a);var f=h!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(c,s,s,c.width-2*s,c.height-2*s,n,i,o,a),f&&this.context.restore(),1!==h?e.animate=!0:l&&t.endTransition(u)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.getTileImage=function(t){return t.getImage()},e}(ac);pc.handles=function(t){return t.getType()===_l},pc.create=function(t,e){return new pc(e)},pc.prototype.getLayer;var fc=pc,dc=r(53),gc=r.n(dc),vc=function(){};vc.prototype.getReplay=function(t,e){return be()},vc.prototype.isEmpty=function(){return be()},vc.prototype.addDeclutter=function(t){return be()};var mc=vc,yc="Circle",_c="Default",bc="Image",xc="LineString",wc="Polygon",Cc="Text";function Ec(t,e,r,n){for(var i=t[e],o=t[e+1],a=0,s=e+n;s<r;s+=n){var l=t[s],c=t[s+1];a+=Math.sqrt((l-i)*(l-i)+(c-o)*(c-o)),i=l,o=c}return a}function Sc(t,e,r,n,i,o,a,s){for(var l,c,u,h=[],p=t[e]>t[r-n],f=i.length,d=t[e],g=t[e+1],v=t[e+=n],m=t[e+1],y=0,_=Math.sqrt(Math.pow(v-d,2)+Math.pow(m-g,2)),b="",x=0,w=0;w<f;++w){c=p?f-w-1:w;var C=i.charAt(c),E=o(b=p?C+b:b+C)-x;x+=E;for(var S=a+E/2;e<r-n&&y+_<S;)d=v,g=m,v=t[e+=n],m=t[e+1],y+=_,_=Math.sqrt(Math.pow(v-d,2)+Math.pow(m-g,2));var T=S-y,k=Math.atan2(m-g,v-d);if(p&&(k+=k>0?-Math.PI:Math.PI),void 0!==u){var R=k-u;if(R+=R>Math.PI?-2*Math.PI:R<-Math.PI?2*Math.PI:0,Math.abs(R)>s)return null}var O=T/_,P=ri(d,v,O),A=ri(g,m,O);u==k?(p&&(l[0]=P,l[1]=A,l[2]=E/2),l[4]=b):(x=E,l=[P,A,E/2,k,b=C],p?h.unshift(l):h.push(l),u=k),a+=E}return h}var Tc={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},kc=[Tc.FILL],Rc=[Tc.STROKE],Oc=[Tc.BEGIN_PATH],Pc=[Tc.CLOSE_PATH],Ac=Tc,Mc=[wc,yc,xc,bc,Cc,_c],Lc={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Ic=[1/0,1/0,-1/0,-1/0],Fc=[1,0,0,1,0,0],Dc=function(t){function e(e,r,n,i,o,a){t.call(this),this.declutterTree=a,this.tolerance=e,this.maxExtent=r,this.overlaps=o,this.pixelRatio=i,this.maxLineWidth=0,this.resolution=n,this.alignFill_,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.replayTextBackground_=function(t,e,r,n,i,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,r),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())},e.prototype.replayImage_=function(t,e,r,n,i,o,a,s,l,c,u,h,p,f,d,g,v,m){var y=v||m;e-=i*=p,r-=o*=p;var _,b,x,w,C=d+c>n.width?n.width-c:d,E=s+u>n.height?n.height-u:s,S=g[3]+C*p+g[1],T=g[0]+E*p+g[2],k=e-g[3],R=r-g[0];(y||0!==h)&&(_=[k,R],b=[k+S,R],x=[k+S,R+T],w=[k,R+T]);var O=null;if(0!==h){var P=e+i,A=r+o;O=ca(Fc,P,A,1,1,h,-P,-A),Ni(Ic),Ui(Ic,aa(Fc,_)),Ui(Ic,aa(Fc,b)),Ui(Ic,aa(Fc,x)),Ui(Ic,aa(Fc,w))}else ji(k,R,k+S,R+T,Ic);var M=t.canvas,L=m?m[2]*p/2:0,I=Ic[0]-L<=M.width&&Ic[2]+L>=0&&Ic[1]-L<=M.height&&Ic[3]+L>=0;if(f&&(e=Math.round(e),r=Math.round(r)),a){if(!I&&1==a[4])return;Gi(a,Ic);var F=I?[t,O?O.slice(0):null,l,n,c,u,C,E,e,r,p]:null;F&&y&&F.push(v,m,_,b,x,w),a.push(F)}else I&&(y&&this.replayTextBackground_(t,_,b,x,w,v,m),Ul(t,O,l,n,c,u,C,E,e,r,p))},e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))},e.prototype.appendFlatCoordinates=function(t,e,r,n,i,o){var a=this.coordinates.length,s=this.getBufferedMaxExtent();o&&(e+=n);var l,c,u,h=[t[e],t[e+1]],p=[NaN,NaN],f=!0;for(l=e+n;l<r;l+=n)p[0]=t[l],p[1]=t[l+1],(u=Fi(s,p))!==c?(f&&(this.coordinates[a++]=h[0],this.coordinates[a++]=h[1]),this.coordinates[a++]=p[0],this.coordinates[a++]=p[1],f=!1):u===Ci?(this.coordinates[a++]=p[0],this.coordinates[a++]=p[1],f=!1):f=!0,h[0]=p[0],h[1]=p[1],c=u;return(i&&f||l===e+n)&&(this.coordinates[a++]=h[0],this.coordinates[a++]=h[1]),a},e.prototype.drawCustomCoordinates_=function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o],l=this.appendFlatCoordinates(t,e,s,n,!1,!1);i.push(l),e=s}return e},e.prototype.drawCustom=function(t,e,r){this.beginGeometry(t,e);var n,i,o,a,s,l=t.getType(),c=t.getStride(),u=this.coordinates.length;if(l==po){n=(t=t).getOrientedFlatCoordinates(),a=[];var h=t.getEndss();s=0;for(var p=0,f=h.length;p<f;++p){var d=[];s=this.drawCustomCoordinates_(n,s,h[p],c,d),a.push(d)}this.instructions.push([Ac.CUSTOM,u,a,t,r,Sa])}else l==co||l==ho?(o=[],n=l==co?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),s=this.drawCustomCoordinates_(n,0,t.getEnds(),c,o),this.instructions.push([Ac.CUSTOM,u,o,t,r,Ea])):l==so||l==uo?(n=t.getFlatCoordinates(),i=this.appendFlatCoordinates(n,0,n.length,c,!1,!1),this.instructions.push([Ac.CUSTOM,u,i,t,r,Ca])):l==ao&&(n=t.getFlatCoordinates(),this.coordinates.push(n[0],n[1]),i=this.coordinates.length,this.instructions.push([Ac.CUSTOM,u,i,t,r]));this.endGeometry(t,e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[Ac.BEGIN_GEOMETRY,e,0],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[Ac.BEGIN_GEOMETRY,e,0],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){},e.prototype.fill_=function(t){if(this.alignFill_){var e=aa(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.translate(e[0]%r,e[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.setTransform.apply(t,Gl)},e.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],Sr&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},e.prototype.renderDeclutter_=function(t,e){if(t&&t.length>5){var r=t[4];if(1==r||r==t.length-5){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(n)){this.declutterTree.insert(n);for(var i=5,o=t.length;i<o;++i){var a=t[i];a&&(a.length>11&&this.replayTextBackground_(a[0],a[13],a[14],a[15],a[16],a[11],a[12]),Ul.apply(void 0,a))}}t.length=5,Ni(t)}}},e.prototype.replay_=function(t,e,r,n,i,o,a){var s;this.pixelCoordinates_&&xn(e,this.renderedTransform_)?s=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),s=bo(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),oa(this.renderedTransform_,e));for(var l,c,u,h,p,f,d,g,v,m,y,_,b=!Pe(r),x=0,w=n.length,C=0,E=0,S=0,T=null,k=null,R=this.coordinateCache_,O=this.viewRotation_,P={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:O},A=this.instructions!=n||this.overlaps?0:200;x<w;){var M=n[x];switch(M[0]){case Ac.BEGIN_GEOMETRY:m=M[1],b&&r[we(m)]||!m.getGeometry()?x=M[2]:void 0===a||no(a,m.getGeometry().getExtent())?++x:x=M[2]+1;break;case Ac.BEGIN_PATH:E>A&&(this.fill_(t),E=0),S>A&&(t.stroke(),S=0),E||S||(t.beginPath(),h=p=NaN),++x;break;case Ac.CIRCLE:var L=s[C=M[1]],I=s[C+1],F=s[C+2]-L,D=s[C+3]-I,j=Math.sqrt(F*F+D*D);t.moveTo(L+j,I),t.arc(L,I,j,0,2*Math.PI,!0),++x;break;case Ac.CLOSE_PATH:t.closePath(),++x;break;case Ac.CUSTOM:C=M[1],l=M[2];var N=M[3],$=M[4],B=6==M.length?M[5]:void 0;P.geometry=N,P.feature=m,x in R||(R[x]=[]);var G=R[x];B?B(s,C,l,2,G):(G[0]=s[C],G[1]=s[C+1],G.length=2),$(G,P),++x;break;case Ac.DRAW_IMAGE:C=M[1],l=M[2],v=M[3],c=M[4],u=M[5],g=o?null:M[6];var U=M[7],z=M[8],W=M[9],q=M[10],H=M[11],X=M[12],V=M[13],Y=M[14],K=void 0,Z=void 0,J=void 0;for(M.length>16?(K=M[15],Z=M[16],J=M[17]):(K=Ol,Z=J=!1),H&&(X+=O);C<l;C+=2)this.replayImage_(t,s[C],s[C+1],v,c,u,g,U,z,W,q,X,V,i,Y,K,Z?T:null,J?k:null);this.renderDeclutter_(g,m),++x;break;case Ac.DRAW_CHARS:var Q=M[1],tt=M[2],et=M[3];g=o?null:M[4];var rt=M[5],nt=M[6],it=M[7],ot=M[8],at=M[9],st=M[10],lt=M[11],ct=M[12],ut=M[13],ht=M[14],pt=Ec(s,Q,tt,2),ft=ot(ct);if(rt||ft<=pt){var dt=this.textStates[ut].textAlign,gt=Sc(s,Q,tt,2,ct,ot,(pt-ft)*Lc[dt],it);if(gt){var vt=void 0,mt=void 0,yt=void 0,_t=void 0,bt=void 0;if(st)for(vt=0,mt=gt.length;vt<mt;++vt)yt=(bt=gt[vt])[4],_t=this.getImage(yt,ut,"",st),c=bt[2]+lt,u=et*_t.height+2*(.5-et)*lt-at,this.replayImage_(t,bt[0],bt[1],_t,c,u,g,_t.height,1,0,0,bt[3],ht,!1,_t.width,Ol,null,null);if(nt)for(vt=0,mt=gt.length;vt<mt;++vt)yt=(bt=gt[vt])[4],_t=this.getImage(yt,ut,nt,""),c=bt[2],u=et*_t.height-at,this.replayImage_(t,bt[0],bt[1],_t,c,u,g,_t.height,1,0,0,bt[3],ht,!1,_t.width,Ol,null,null)}}this.renderDeclutter_(g,m),++x;break;case Ac.END_GEOMETRY:if(void 0!==o){var xt=o(m=M[1]);if(xt)return xt}++x;break;case Ac.FILL:A?E++:this.fill_(t),++x;break;case Ac.MOVE_TO_LINE_TO:for(C=M[1],l=M[2],y=s[C],d=(_=s[C+1])+.5|0,(f=y+.5|0)===h&&d===p||(t.moveTo(y,_),h=f,p=d),C+=2;C<l;C+=2)f=(y=s[C])+.5|0,d=(_=s[C+1])+.5|0,C!=l-2&&f===h&&d===p||(t.lineTo(y,_),h=f,p=d);++x;break;case Ac.SET_FILL_STYLE:T=M,this.alignFill_=M[2],E&&(this.fill_(t),E=0,S&&(t.stroke(),S=0)),t.fillStyle=M[1],++x;break;case Ac.SET_STROKE_STYLE:k=M,S&&(t.stroke(),S=0),this.setStrokeStyle_(t,M),++x;break;case Ac.STROKE:A?S++:t.stroke(),++x;break;default:++x}}E&&this.fill_(t),S&&t.stroke()},e.prototype.replay=function(t,e,r,n,i){this.viewRotation_=r,this.replay_(t,e,n,this.instructions,i,void 0,void 0)},e.prototype.replayHitDetection=function(t,e,r,n,i,o){return this.viewRotation_=r,this.replay_(t,e,n,this.hitDetectionInstructions,!0,i,o)},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var r,n,i=e.length,o=-1;for(t=0;t<i;++t)(n=(r=e[t])[0])==Ac.END_GEOMETRY?o=t:n==Ac.BEGIN_GEOMETRY&&(r[2]=t,_n(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var r=this.state;if(t){var n=t.getColor();r.fillStyle=Vl(n||Tl)}else r.fillStyle=void 0;if(e){var i=e.getColor();r.strokeStyle=Vl(i||Rl);var o=e.getLineCap();r.lineCap=void 0!==o?o:"round";var a=e.getLineDash();r.lineDash=a?a.slice():kl;var s=e.getLineDashOffset();r.lineDashOffset=s||0;var l=e.getLineJoin();r.lineJoin=void 0!==l?l:"round";var c=e.getWidth();r.lineWidth=void 0!==c?c:1;var u=e.getMiterLimit();r.miterLimit=void 0!==u?u:10,r.lineWidth>this.maxLineWidth&&(this.maxLineWidth=r.lineWidth,this.bufferedMaxExtent_=null)}else r.strokeStyle=void 0,r.lineCap=void 0,r.lineDash=null,r.lineDashOffset=void 0,r.lineJoin=void 0,r.lineWidth=void 0,r.miterLimit=void 0},e.prototype.createFill=function(t,e){var r=t.fillStyle,n=[Ac.SET_FILL_STYLE,r];return"string"!=typeof r&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[Ac.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e,r){var n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t,r)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var r=t.strokeStyle,n=t.lineCap,i=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=r||t.currentLineCap!=n||i!=t.currentLineDash&&!xn(t.currentLineDash,i)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==r&&e.call(this,t),t.currentStrokeStyle=r,t.currentLineCap=n,t.currentLineDash=i,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var r=[Ac.END_GEOMETRY,e];this.instructions.push(r),this.hitDetectionInstructions.push(r)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Pi(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Oi(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(Kl),jc=function(t){function e(e,r,n,i,o,a){t.call(this,e,r,n,i,o,a),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,r,n){return this.appendFlatCoordinates(t,e,r,n,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),i=this.coordinates.length,o=this.drawCoordinates_(r,0,r.length,n);this.instructions.push([Ac.DRAW_IMAGE,i,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([Ac.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var r=t.getFlatCoordinates(),n=t.getStride(),i=this.coordinates.length,o=this.drawCoordinates_(r,0,r.length,n);this.instructions.push([Ac.DRAW_IMAGE,i,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([Ac.DRAW_IMAGE,i,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0},e.prototype.setImageStyle=function(t,e){var r=t.getAnchor(),n=t.getSize(),i=t.getHitDetectionImage(1),o=t.getImage(1),a=t.getOrigin();this.anchorX_=r[0],this.anchorY_=r[1],this.declutterGroup_=e,this.hitDetectionImage_=i,this.image_=o,this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=a[0],this.originY_=a[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=n[0]},e}(Dc),Nc=function(t){function e(e,r,n,i,o,a){t.call(this,e,r,n,i,o,a)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,r,n){var i=this.coordinates.length,o=this.appendFlatCoordinates(t,e,r,n,!1,!1),a=[Ac.MOVE_TO_LINE_TO,i,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),r},e.prototype.drawLineString=function(t,e){var r=this.state,n=r.strokeStyle,i=r.lineWidth;if(void 0!==n&&void 0!==i){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Ac.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],Oc);var o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(Rc),this.endGeometry(t,e)}},e.prototype.drawMultiLineString=function(t,e){var r=this.state,n=r.strokeStyle,i=r.lineWidth;if(void 0!==n&&void 0!==i){this.updateStrokeStyle(r,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([Ac.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset],Oc);for(var o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinates_(a,l,o[c],s);this.hitDetectionInstructions.push(Rc),this.endGeometry(t,e)}},e.prototype.finish=function(){var t=this.state;null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(Rc),this.reverseHitDetectionInstructions(),this.state=null},e.prototype.applyStroke=function(e){null!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(Rc),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(Oc)},e}(Dc),$c=function(t){function e(e,r,n,i,o,a){t.call(this,e,r,n,i,o,a)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinatess_=function(t,e,r,n){var i=this.state,o=void 0!==i.fillStyle,a=null!=i.strokeStyle,s=r.length;this.instructions.push(Oc),this.hitDetectionInstructions.push(Oc);for(var l=0;l<s;++l){var c=r[l],u=this.coordinates.length,h=this.appendFlatCoordinates(t,e,c,n,!0,!a),p=[Ac.MOVE_TO_LINE_TO,u,h];this.instructions.push(p),this.hitDetectionInstructions.push(p),a&&(this.instructions.push(Pc),this.hitDetectionInstructions.push(Pc)),e=c}return o&&(this.instructions.push(kc),this.hitDetectionInstructions.push(kc)),a&&(this.instructions.push(Rc),this.hitDetectionInstructions.push(Rc)),e},e.prototype.drawCircle=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(t),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([Ac.SET_FILL_STYLE,ql(Tl)]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([Ac.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var o=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length;this.appendFlatCoordinates(o,0,o.length,a,!1,!1);var l=[Ac.CIRCLE,s];this.instructions.push(Oc,l),this.hitDetectionInstructions.push(Oc,l),this.hitDetectionInstructions.push(kc),void 0!==r.fillStyle&&this.instructions.push(kc),void 0!==r.strokeStyle&&(this.instructions.push(Rc),this.hitDetectionInstructions.push(Rc)),this.endGeometry(t,e)}},e.prototype.drawPolygon=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(t),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([Ac.SET_FILL_STYLE,ql(Tl)]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([Ac.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);var o=t.getEnds(),a=t.getOrientedFlatCoordinates(),s=t.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(t,e)}},e.prototype.drawMultiPolygon=function(t,e){var r=this.state,n=r.fillStyle,i=r.strokeStyle;if(void 0!==n||void 0!==i){this.setFillStrokeStyles_(t),this.beginGeometry(t,e),void 0!==r.fillStyle&&this.hitDetectionInstructions.push([Ac.SET_FILL_STYLE,ql(Tl)]),void 0!==r.strokeStyle&&this.hitDetectionInstructions.push([Ac.SET_STROKE_STYLE,r.strokeStyle,r.lineWidth,r.lineCap,r.lineJoin,r.miterLimit,r.lineDash,r.lineDashOffset]);for(var o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride(),l=0,c=0,u=o.length;c<u;++c)l=this.drawFlatCoordinatess_(a,l,o[c],s);this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var e=this.coordinates,r=0,n=e.length;r<n;++r)e[r]=Ra(e[r],t)},e.prototype.setFillStrokeStyles_=function(t){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill,t),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},e}(Dc);function Bc(t,e,r,n,i){var o,a,s,l,c,u,h,p,f,d=r,g=r,v=0,m=0,y=r;for(o=r;o<n;o+=i){var _=e[o],b=e[o+1];void 0!==l&&(p=_-l,f=b-c,s=Math.sqrt(p*p+f*f),void 0!==u&&(m+=a,Math.acos((u*p+h*f)/(a*s))>t&&(m>v&&(v=m,d=y,g=o),m=0,y=o-i)),a=s,u=p,h=f),l=_,c=b}return(m+=s)>v?[y,o]:[d,g]}var Gc="line";var Uc={Circle:$c,Default:Dc,Image:jc,LineString:Nc,Polygon:$c,Text:function(t){function e(e,r,n,i,o,a){t.call(this,e,r,n,i,o,a),this.declutterGroup_,this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},Pl.prune()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText=function(t,e){var r=this.textFillState_,n=this.textStrokeState_,i=this.textState_;if(""!==this.text_&&i&&(r||n)){var o,a,s=this.coordinates.length,l=t.getType(),c=null,u=2,h=2;if(i.placement===Gc){if(!no(this.getBufferedMaxExtent(),t.getExtent()))return;var p;if(c=t.getFlatCoordinates(),h=t.getStride(),l==so)p=[c.length];else if(l==ho)p=t.getEnds();else if(l==co)p=t.getEnds().slice(0,1);else if(l==po){var f=t.getEndss();for(p=[],o=0,a=f.length;o<a;++o)p.push(f[o][0])}this.beginGeometry(t,e);for(var d,g=i.textAlign,v=0,m=0,y=p.length;m<y;++m){if(null==g){var _=Bc(i.maxAngle,c,v,p[m],h);v=_[0],d=_[1]}else d=p[m];for(o=v;o<d;o+=h)this.coordinates.push(c[o],c[o+1]);u=this.coordinates.length,v=p[m],this.drawChars_(s,u,this.declutterGroup_),s=u}this.endGeometry(t,e)}else{var b=this.getImage(this.text_,this.textKey_,this.fillKey_,this.strokeKey_),x=b.width/this.pixelRatio;switch(l){case ao:case uo:u=(c=t.getFlatCoordinates()).length;break;case so:c=t.getFlatMidpoint();break;case go:c=t.getCenter();break;case ho:u=(c=t.getFlatMidpoints()).length;break;case co:if(c=t.getFlatInteriorPoint(),!i.overflow&&c[2]/this.resolution<x)return;h=3;break;case po:var w=t.getFlatInteriorPoints();for(c=[],o=0,a=w.length;o<a;o+=3)(i.overflow||w[o+2]/this.resolution>=x)&&c.push(w[o],w[o+1]);if(0==(u=c.length))return}u=this.appendFlatCoordinates(c,0,u,h,!1,!1),(i.backgroundFill||i.backgroundStroke)&&(this.setFillStrokeStyle(i.backgroundFill,i.backgroundStroke),i.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,t),this.hitDetectionInstructions.push(this.createFill(this.state,t))),i.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),this.drawTextImage_(b,s,u),this.endGeometry(t,e)}}},e.prototype.getImage=function(t,e,r,n){var i,o=n+e+t+r+this.pixelRatio;if(!Pl.containsKey(o)){var a=n?this.strokeStates[n]||this.textStrokeState_:null,s=r?this.fillStates[r]||this.textFillState_:null,l=this.textStates[e]||this.textState_,c=this.pixelRatio,u=l.scale*c,h=Lc[l.textAlign||"center"],p=n&&a.lineWidth?a.lineWidth:0,f=t.split("\n"),d=f.length,g=[],v=function(t,e,r){for(var n=e.length,i=0,o=0;o<n;++o){var a=$l(t,e[o]);i=Math.max(i,a),r.push(a)}return i}(l.font,f,g),m=Nl(l.font),y=m*d,_=v+p,b=Za(Math.ceil(_*u),Math.ceil((y+p)*u));i=b.canvas,Pl.set(o,i),1!=u&&b.scale(u,u),b.font=l.font,n&&(b.strokeStyle=a.strokeStyle,b.lineWidth=p,b.lineCap=a.lineCap,b.lineJoin=a.lineJoin,b.miterLimit=a.miterLimit,Sr&&a.lineDash.length&&(b.setLineDash(a.lineDash),b.lineDashOffset=a.lineDashOffset)),r&&(b.fillStyle=s.fillStyle),b.textBaseline="middle",b.textAlign="center";var x,w=.5-h,C=h*i.width/u+w*p;if(n)for(x=0;x<d;++x)b.strokeText(f[x],C+w*g[x],.5*(p+m)+x*m);if(r)for(x=0;x<d;++x)b.fillText(f[x],C+w*g[x],.5*(p+m)+x*m)}return Pl.get(o)},e.prototype.drawTextImage_=function(t,e,r){var n=this.textState_,i=this.textStrokeState_,o=this.pixelRatio,a=Lc[n.textAlign||"center"],s=Lc[n.textBaseline],l=i&&i.lineWidth?i.lineWidth:0,c=a*t.width/o+2*(.5-a)*l,u=s*t.height/o+2*(.5-s)*l;this.instructions.push([Ac.DRAW_IMAGE,e,r,t,(c-this.textOffsetX_)*o,(u-this.textOffsetY_)*o,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1,t.width,n.padding==Ol?Ol:n.padding.map((function(t){return t*o})),!!n.backgroundFill,!!n.backgroundStroke]),this.hitDetectionInstructions.push([Ac.DRAW_IMAGE,e,r,t,(c-this.textOffsetX_)*o,(u-this.textOffsetY_)*o,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1/o,t.width,n.padding,!!n.backgroundFill,!!n.backgroundStroke])},e.prototype.drawChars_=function(t,e,r){var n=this.textStrokeState_,i=this.textState_,o=this.textFillState_,a=this.strokeKey_;n&&(a in this.strokeStates||(this.strokeStates[a]={strokeStyle:n.strokeStyle,lineCap:n.lineCap,lineDashOffset:n.lineDashOffset,lineWidth:n.lineWidth,lineJoin:n.lineJoin,miterLimit:n.miterLimit,lineDash:n.lineDash}));var s=this.textKey_;this.textKey_ in this.textStates||(this.textStates[this.textKey_]={font:i.font,textAlign:i.textAlign||"center",scale:i.scale});var l=this.fillKey_;o&&(l in this.fillStates||(this.fillStates[l]={fillStyle:o.fillStyle}));var c=this.pixelRatio,u=Lc[i.textBaseline],h=this.textOffsetY_*c,p=this.text_,f=i.font,d=i.scale,g=n?n.lineWidth*d/2:0,v=this.widths_[f];v||(this.widths_[f]=v={}),this.instructions.push([Ac.DRAW_CHARS,t,e,u,r,i.overflow,l,i.maxAngle,function(t){var e=v[t];return e||(e=v[t]=$l(f,t)),e*d*c},h,a,g*c,p,s,1]),this.hitDetectionInstructions.push([Ac.DRAW_CHARS,t,e,u,r,i.overflow,l,i.maxAngle,function(t){var e=v[t];return e||(e=v[t]=$l(f,t)),e*d},h,a,g,p,s,1/c])},e.prototype.setTextStyle=function(t,e){var r,n,i;if(t){this.declutterGroup_=e;var o=t.getFill();o?((n=this.textFillState_)||(n=this.textFillState_={}),n.fillStyle=Vl(o.getColor()||Tl)):n=this.textFillState_=null;var a=t.getStroke();if(a){(i=this.textStrokeState_)||(i=this.textStrokeState_={});var s=a.getLineDash(),l=a.getLineDashOffset(),c=a.getWidth(),u=a.getMiterLimit();i.lineCap=a.getLineCap()||"round",i.lineDash=s?s.slice():kl,i.lineDashOffset=void 0===l?0:l,i.lineJoin=a.getLineJoin()||"round",i.lineWidth=void 0===c?1:c,i.miterLimit=void 0===u?10:u,i.strokeStyle=Vl(a.getColor()||Rl)}else i=this.textStrokeState_=null;r=this.textState_;var h=t.getFont()||"10px sans-serif";Il(h);var p=t.getScale();r.overflow=t.getOverflow(),r.font=h,r.maxAngle=t.getMaxAngle(),r.placement=t.getPlacement(),r.textAlign=t.getTextAlign(),r.textBaseline=t.getTextBaseline()||"middle",r.backgroundFill=t.getBackgroundFill(),r.backgroundStroke=t.getBackgroundStroke(),r.padding=t.getPadding()||Ol,r.scale=void 0===p?1:p;var f=t.getOffsetX(),d=t.getOffsetY(),g=t.getRotateWithView(),v=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===d?0:d,this.textRotateWithView_=void 0!==g&&g,this.textRotation_=void 0===v?0:v,this.strokeKey_=i?("string"==typeof i.strokeStyle?i.strokeStyle:we(i.strokeStyle))+i.lineCap+i.lineDashOffset+"|"+i.lineWidth+i.lineJoin+i.miterLimit+"["+i.lineDash.join()+"]":"",this.textKey_=r.font+r.scale+(r.textAlign||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+we(n.fillStyle):""}else this.text_=""},e}(Dc)},zc=function(t){function e(e,r,n,i,o,a,s){t.call(this),this.declutterTree_=a,this.declutterGroup_=null,this.tolerance_=e,this.maxExtent_=r,this.overlaps_=o,this.pixelRatio_=i,this.resolution_=n,this.renderBuffer_=s,this.replaysByZIndex_={},this.hitDetectionContext_=Za(1,1),this.hitDetectionTransform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addDeclutter=function(t){var e=null;return this.declutterTree_&&(t?(e=this.declutterGroup_)[4]++:(e=this.declutterGroup_=[1/0,1/0,-1/0,-1/0]).push(1)),e},e.prototype.clip=function(t,e){var r=this.getClipCoords(e);t.beginPath(),t.moveTo(r[0],r[1]),t.lineTo(r[2],r[3]),t.lineTo(r[4],r[5]),t.lineTo(r[6],r[7]),t.clip()},e.prototype.hasReplays=function(t){for(var e in this.replaysByZIndex_)for(var r=this.replaysByZIndex_[e],n=0,i=t.length;n<i;++n)if(t[n]in r)return!0;return!1},e.prototype.finish=function(){for(var t in this.replaysByZIndex_){var e=this.replaysByZIndex_[t];for(var r in e)e[r].finish()}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i,o,a){var s,l=2*(n=Math.round(n))+1,c=ca(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-r,-t[0],-t[1]),u=this.hitDetectionContext_;u.canvas.width!==l||u.canvas.height!==l?(u.canvas.width=l,u.canvas.height=l):u.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(Ui(s=[1/0,1/0,-1/0,-1/0],t),Oi(s,e*(this.renderBuffer_+n),s));var h,p,f=function(t){if(void 0!==Wc[t])return Wc[t];for(var e=2*t+1,r=new Array(e),n=0;n<e;n++)r[n]=new Array(e);var i=t,o=0,a=0;for(;i>=o;)qc(r,t+i,t+o),qc(r,t+o,t+i),qc(r,t-o,t+i),qc(r,t-i,t+o),qc(r,t-i,t-o),qc(r,t-o,t-i),qc(r,t+o,t-i),qc(r,t+i,t-o),o++,2*((a+=1+2*o)-i)+1>0&&(a+=1-2*(i-=1));return Wc[t]=r,r}(n);function d(t){for(var e=u.getImageData(0,0,l,l).data,r=0;r<l;r++)for(var n=0;n<l;n++)if(f[r][n]&&e[4*(n*l+r)+3]>0){var i=void 0;return(!h||p!=bc&&p!=Cc||-1!==h.indexOf(t))&&(i=o(t)),i||void u.clearRect(0,0,l,l)}}this.declutterTree_&&(h=this.declutterTree_.all().map((function(t){return t.value})));var g,v,m,y,_,b=Object.keys(this.replaysByZIndex_).map(Number);for(b.sort(mn),g=b.length-1;g>=0;--g){var x=b[g].toString();for(m=this.replaysByZIndex_[x],v=Mc.length-1;v>=0;--v)if(void 0!==(y=m[p=Mc[v]]))if(!a||p!=bc&&p!=Cc){if(_=y.replayHitDetection(u,c,r,i,d,s))return _}else{var w=a[x];w?w.push(y,c.slice(0)):a[x]=[y,c.slice(0)]}}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_,r=e[0],n=e[1],i=e[2],o=e[3],a=[r,n,r,o,i,o,i,n];return bo(a,0,8,2,t,a),a},e.prototype.getReplay=function(t,e){var r=void 0!==t?t.toString():"0",n=this.replaysByZIndex_[r];void 0===n&&(n={},this.replaysByZIndex_[r]=n);var i=n[e];void 0===i&&(i=new(0,Uc[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),n[e]=i);return i},e.prototype.getReplays=function(){return this.replaysByZIndex_},e.prototype.isEmpty=function(){return Pe(this.replaysByZIndex_)},e.prototype.replay=function(t,e,r,n,i,o,a){var s=Object.keys(this.replaysByZIndex_).map(Number);s.sort(mn),t.save(),this.clip(t,e);var l,c,u,h,p,f,d=o||Mc;for(l=0,c=s.length;l<c;++l){var g=s[l].toString();for(p=this.replaysByZIndex_[g],u=0,h=d.length;u<h;++u){var v=d[u];if(f=p[v],void 0!==f)if(!a||v!=bc&&v!=Cc)f.replay(t,e,r,n,i);else{var m=a[g];m?m.push(f,e.slice(0)):a[g]=[f,e.slice(0)]}}}t.restore()},e}(mc),Wc={0:[[!0]]};function qc(t,e,r){var n,i=Math.floor(t.length/2);if(e>=i)for(n=i;n<e;n++)t[n][r]=!0;else if(e<i)for(n=e+1;n<i;n++)t[n][r]=!0}var Hc=zc,Xc={Point:function(t,e,r,n){var i=r.getImage();if(i){if(i.getImageState()!=gl)return;var o=t.getReplay(r.getZIndex(),bc);o.setImageStyle(i,t.addDeclutter(!1)),o.drawPoint(e,n)}var a=r.getText();if(a){var s=t.getReplay(r.getZIndex(),Cc);s.setTextStyle(a,t.addDeclutter(!!i)),s.drawText(e,n)}},LineString:function(t,e,r,n){var i=r.getStroke();if(i){var o=t.getReplay(r.getZIndex(),xc);o.setFillStrokeStyle(null,i),o.drawLineString(e,n)}var a=r.getText();if(a){var s=t.getReplay(r.getZIndex(),Cc);s.setTextStyle(a,t.addDeclutter(!1)),s.drawText(e,n)}},Polygon:function(t,e,r,n){var i=r.getFill(),o=r.getStroke();if(i||o){var a=t.getReplay(r.getZIndex(),wc);a.setFillStrokeStyle(i,o),a.drawPolygon(e,n)}var s=r.getText();if(s){var l=t.getReplay(r.getZIndex(),Cc);l.setTextStyle(s,t.addDeclutter(!1)),l.drawText(e,n)}},MultiPoint:function(t,e,r,n){var i=r.getImage();if(i){if(i.getImageState()!=gl)return;var o=t.getReplay(r.getZIndex(),bc);o.setImageStyle(i,t.addDeclutter(!1)),o.drawMultiPoint(e,n)}var a=r.getText();if(a){var s=t.getReplay(r.getZIndex(),Cc);s.setTextStyle(a,t.addDeclutter(!!i)),s.drawText(e,n)}},MultiLineString:function(t,e,r,n){var i=r.getStroke();if(i){var o=t.getReplay(r.getZIndex(),xc);o.setFillStrokeStyle(null,i),o.drawMultiLineString(e,n)}var a=r.getText();if(a){var s=t.getReplay(r.getZIndex(),Cc);s.setTextStyle(a,t.addDeclutter(!1)),s.drawText(e,n)}},MultiPolygon:function(t,e,r,n){var i=r.getFill(),o=r.getStroke();if(o||i){var a=t.getReplay(r.getZIndex(),wc);a.setFillStrokeStyle(i,o),a.drawMultiPolygon(e,n)}var s=r.getText();if(s){var l=t.getReplay(r.getZIndex(),Cc);l.setTextStyle(s,t.addDeclutter(!1)),l.drawText(e,n)}},GeometryCollection:function(t,e,r,n){var i,o,a=e.getGeometriesArray();for(i=0,o=a.length;i<o;++i){(0,Xc[a[i].getType()])(t,a[i],r,n)}},Circle:function(t,e,r,n){var i=r.getFill(),o=r.getStroke();if(i||o){var a=t.getReplay(r.getZIndex(),yc);a.setFillStrokeStyle(i,o),a.drawCircle(e,n)}var s=r.getText();if(s){var l=t.getReplay(r.getZIndex(),Cc);l.setTextStyle(s,t.addDeclutter(!1)),l.drawText(e,n)}}};function Vc(t,e){return parseInt(we(t),10)-parseInt(we(e),10)}function Yc(t,e){var r=Kc(t,e);return r*r}function Kc(t,e){return.5*t/e}function Zc(t,e,r,n,i,o){var a=!1,s=r.getImage();if(s){var l=s.getImageState();l==gl||l==vl?s.unlistenImageChange(i,o):(l==fl&&s.load(),l=s.getImageState(),s.listenImageChange(i,o),a=!0)}return function(t,e,r,n){var i=r.getGeometryFunction()(e);if(!i)return;var o=i.getSimplifiedGeometry(n);if(r.getRenderer())!function t(e,r,n,i){if(r.getType()==fo){for(var o=r.getGeometries(),a=0,s=o.length;a<s;++a)t(e,o[a],n,i);return}e.getReplay(n.getZIndex(),_c).drawCustom(r,i,n.getRenderer())}(t,o,r,e);else{(0,Xc[o.getType()])(t,o,r,e)}}(t,e,r,n),a}var Jc=function(t){function e(e){t.call(this,e),this.declutterTree_=e.getDeclutter()?gc()(9,void 0):null,this.dirty_=!1,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=[1/0,1/0,-1/0,-1/0],this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.context=Za(),Fe(Pl,Ye,this.handleFontsChanged_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){je(Pl,Ye,this.handleFontsChanged_,this),t.prototype.disposeInternal.call(this)},e.prototype.compose=function(t,e,r){var n=e.extent,i=e.pixelRatio,o=r.managed?e.skippedFeatureUids:{},a=e.viewState,s=a.projection,l=a.rotation,c=s.getExtent(),u=this.getLayer().getSource(),h=this.getTransform(e,0),p=r.extent,f=void 0!==p;f&&this.clip(t,e,p);var d=this.replayGroup_;if(d&&!d.isEmpty()){this.declutterTree_&&this.declutterTree_.clear();var g,v=this.getLayer(),m=0,y=0,_=1!==r.opacity,b=v.hasListener($n);if(_||b){var x=t.canvas.width,w=t.canvas.height;if(l){var C=Math.round(Math.sqrt(x*x+w*w));m=(C-x)/2,y=(C-w)/2,x=w=C}this.context.canvas.width=x,this.context.canvas.height=w,g=this.context}else g=t;var E=g.globalAlpha;_||(g.globalAlpha=r.opacity),g!=t&&g.translate(m,y);var S=e.viewHints,T=!(S[ai]||S[si]),k=e.size[0]*i,R=e.size[1]*i;if(Bl(g,-l,k/2,R/2),d.replay(g,h,l,o,T),u.getWrapX()&&s.canWrapX()&&!Li(c,n)){for(var O,P=n[0],A=ro(c),M=0;P<c[0];)O=A*--M,h=this.getTransform(e,O),d.replay(g,h,l,o,T),P+=A;for(M=0,P=n[2];P>c[2];)O=A*++M,h=this.getTransform(e,O),d.replay(g,h,l,o,T),P-=A}if(Bl(g,l,k/2,R/2),b&&this.dispatchRenderEvent(g,e,h),g!=t){if(_){var L=t.globalAlpha;t.globalAlpha=r.opacity,t.drawImage(g.canvas,-m,-y),t.globalAlpha=L}else t.drawImage(g.canvas,-m,-y);g.translate(-m,-y)}_||(g.globalAlpha=E)}f&&t.restore()},e.prototype.composeFrame=function(t,e,r){var n=this.getTransform(t,0);this.preCompose(r,t,n),this.compose(r,t,e),this.postCompose(r,t,e,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){if(this.replayGroup_){var o=e.viewState.resolution,a=e.viewState.rotation,s=this.getLayer(),l={};return this.replayGroup_.forEachFeatureAtCoordinate(t,o,a,r,{},(function(t){var e=we(t);if(!(e in l))return l[e]=!0,n.call(i,t,s)}),null)}},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e){var r=this.getLayer(),n=r.getSource(),i=t.viewHints[ai],o=t.viewHints[si],a=r.getUpdateWhileAnimating(),s=r.getUpdateWhileInteracting();if(!this.dirty_&&!a&&i||!s&&o)return!0;var l=t.extent,c=t.viewState,u=c.projection,h=c.resolution,p=t.pixelRatio,f=r.getRevision(),d=r.getRenderBuffer(),g=r.getRenderOrder();void 0===g&&(g=Vc);var v=Oi(l,d*h),m=c.projection.getExtent();if(n.getWrapX()&&c.projection.canWrapX()&&!Li(m,t.extent)){var y=ro(m),_=Math.max(ro(v)/2,y);v[0]=m[0]-_,v[2]=m[2]+_}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==f&&this.renderedRenderOrder_==g&&Li(this.renderedExtent_,v))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var b=new Hc(Kc(h,p),v,h,p,n.getOverlaps(),this.declutterTree_,r.getRenderBuffer());n.loadFeatures(v,h,u);var x=function(t){var e,n=t.getStyleFunction()||r.getStyleFunction();if(n&&(e=n(t,h)),e){var i=this.renderFeature(t,h,p,e,b);this.dirty_=this.dirty_||i}}.bind(this);if(g){var w=[];n.forEachFeatureInExtent(v,(function(t){w.push(t)})),w.sort(g);for(var C=0,E=w.length;C<E;++C)x(w[C])}else n.forEachFeatureInExtent(v,x);return b.finish(),this.renderedResolution_=h,this.renderedRevision_=f,this.renderedRenderOrder_=g,this.renderedExtent_=v,this.replayGroup_=b,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,r,n,i){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var a=0,s=n.length;a<s;++a)o=Zc(i,t,n[a],Yc(e,r),this.handleStyleImageChange_,this)||o;else o=Zc(i,t,n,Yc(e,r),this.handleStyleImageChange_,this);return o},e}(oc);Jc.handles=function(t){return t.getType()===xl},Jc.create=function(t,e){return new Jc(e)};var Qc=Jc,tu="image",eu="vector",ru={image:[wc,yc,xc,bc,Cc],hybrid:[wc,xc]},nu={image:[_c],hybrid:[bc,Cc,_c],vector:Mc},iu=function(t){function e(e){t.call(this,e,!0),this.declutterTree_=e.getDeclutter()?gc()(9,void 0):null,this.dirty_=!1,this.renderedLayerRevision_,this.tmpTransform_=[1,0,0,1,0,0];var r=e.getRenderMode();this.zDirection=r===eu?1:0,r!==eu&&(this.context=Za()),Fe(Pl,Ye,this.handleFontsChanged_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){je(Pl,Ye,this.handleFontsChanged_,this),t.prototype.disposeInternal.call(this)},e.prototype.getTile=function(e,r,n,i,o){var a=t.prototype.getTile.call(this,e,r,n,i,o);return a.getState()===zn&&(this.createReplayGroup_(a,i,o),this.context&&this.renderTileImage_(a,i,o)),a},e.prototype.getTileImage=function(t){var e=this.getLayer();return t.getImage(e)},e.prototype.prepareFrame=function(e,r){var n=this.getLayer().getRevision();return this.renderedLayerRevision_!=n&&(this.renderedTiles.length=0),this.renderedLayerRevision_=n,t.prototype.prepareFrame.call(this,e,r)},e.prototype.createReplayGroup_=function(t,e,r){var n=this,i=this.getLayer(),o=i.getRevision(),a=i.getRenderOrder()||null,s=t.getReplayState(i);if(s.dirty||s.renderedRevision!=o||s.renderedRenderOrder!=a){for(var l=i.getSource(),c=l.getTileGrid(),u=l.getTileGridForProjection(r).getResolution(t.tileCoord[0]),h=t.extent,p=function(o,p){var f=t.getTile(t.tileKeys[o]);if(f.getState()==zn){var d=f.tileCoord,g=c.getTileCoordExtent(d),v=Qi(h,g),m=Bi(g,v)?null:Oi(v,i.getRenderBuffer()*u,n.tmpExtent),y=f.getProjection(),_=!1;Zo(r,y)||(_=!0,f.setProjection(r)),s.dirty=!1;var b=new Hc(0,v,u,e,l.getOverlaps(),n.declutterTree_,i.getRenderBuffer()),x=Yc(u,e),w=function(t){var e,r=t.getStyleFunction()||i.getStyleFunction();if(r&&(e=r(t,u)),e){var n=this.renderFeature(t,x,e,b);this.dirty_=this.dirty_||n,s.dirty=s.dirty||n}},C=f.getFeatures();a&&a!==s.renderedRenderOrder&&C.sort(a);for(var E=0,S=C.length;E<S;++E){var T=C[E];_&&(y.getUnits()==Eo.TILE_PIXELS&&(y.setWorldExtent(g),y.setExtent(f.getExtent())),T.getGeometry().transform(y,r)),m&&!no(m,T.getGeometry().getExtent())||w.call(n,T)}b.finish(),f.setReplayGroup(i,t.tileCoord.toString(),b)}},f=0,d=t.tileKeys.length;f<d;++f)p(f);s.renderedRevision=o,s.renderedRenderOrder=a}},e.prototype.forEachFeatureAtCoordinate=function(t,e,r,n,i){var o=e.viewState.resolution,a=e.viewState.rotation;r=null==r?0:r;var s,l,c,u,h=this.getLayer(),p={},f=this.renderedTiles;for(c=0,u=f.length;c<u;++c){var d=f[c];if(Mi(s=Oi(d.extent,r*o,s),t))for(var g=0,v=d.tileKeys.length;g<v;++g){var m=d.getTile(d.tileKeys[g]);if(m.getState()==zn){var y=m.getReplayGroup(h,d.tileCoord.toString());l=l||y.forEachFeatureAtCoordinate(t,o,a,r,{},(function(t){var e=we(t);if(!(e in p))return p[e]=!0,n.call(i,t,h)}),null)}}}return l},e.prototype.getReplayTransform_=function(t,e){var r=this.getLayer().getSource().getTileGrid(),n=t.tileCoord,i=r.getResolution(n[0]),o=e.viewState,a=e.pixelRatio,s=o.resolution/a,l=r.getTileCoordExtent(n,this.tmpExtent),c=o.center,u=to(l),h=e.size,p=Math.round(a*h[0]/2),f=Math.round(a*h[1]/2);return ca(this.tmpTransform_,p,f,i/s,i/s,o.rotation,(u[0]-c[0])/i,(c[1]-u[1])/i)},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&void 0!==this.renderedLayerRevision_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.postCompose=function(e,r,n){var i=this.getLayer(),o=i.getRenderMode();if(o!=tu){var a,s,l=i.getDeclutter()?{}:null,c=i.getSource(),u=nu[o],h=r.pixelRatio,p=r.viewState.rotation,f=r.size;p&&Bl(e,-p,a=Math.round(h*f[0]/2),s=Math.round(h*f[1]/2)),l&&this.declutterTree_.clear();for(var d=r.viewHints,g=!(d[ai]||d[si]),v=this.renderedTiles,m=c.getTileGridForProjection(r.viewState.projection),y=[],_=[],b=v.length-1;b>=0;--b){var x=v[b];if(x.getState()!=Hn)for(var w=x.tileCoord,C=m.getTileCoordExtent(w,this.tmpExtent)[0]-x.extent[0],E=void 0,S=0,T=x.tileKeys.length;S<T;++S){var k=x.getTile(x.tileKeys[S]);if(k.getState()==zn){var R=k.getReplayGroup(i,w.toString());if(R&&R.hasReplays(u)){E||(E=this.getTransform(r,C));var O=k.tileCoord[0],P=R.getClipCoords(E);e.save(),e.globalAlpha=n.opacity;for(var A=0,M=y.length;A<M;++A){var L=y[A];O<_[A]&&(e.beginPath(),e.moveTo(P[0],P[1]),e.lineTo(P[2],P[3]),e.lineTo(P[4],P[5]),e.lineTo(P[6],P[7]),e.moveTo(L[6],L[7]),e.lineTo(L[4],L[5]),e.lineTo(L[2],L[3]),e.lineTo(L[0],L[1]),e.clip())}R.replay(e,E,p,{},g,u,l),e.restore(),y.push(P),_.push(O)}}}}l&&function(t,e,r,n){for(var i=Object.keys(t).map(Number).sort(mn),o={},a=0,s=i.length;a<s;++a)for(var l=t[i[a].toString()],c=0,u=l.length;c<u;){var h=l[c++],p=l[c++];h.replay(e,p,r,o,n)}}(l,e,p,g),p&&Bl(e,p,a,s)}t.prototype.postCompose.call(this,e,r,n)},e.prototype.renderFeature=function(t,e,r,n){if(!r)return!1;var i=!1;if(Array.isArray(r))for(var o=0,a=r.length;o<a;++o)i=Zc(n,t,r[o],e,this.handleStyleImageChange_,this)||i;else i=Zc(n,t,r,e,this.handleStyleImageChange_,this);return i},e.prototype.renderTileImage_=function(t,e,r){var n=this.getLayer(),i=t.getReplayState(n),o=n.getRevision(),a=ru[n.getRenderMode()];if(a&&i.renderedTileRevision!==o){i.renderedTileRevision=o;var s=t.wrappedTileCoord,l=s[0],c=n.getSource(),u=c.getTileGridForProjection(r),h=u.getResolution(l),p=t.getContext(n),f=c.getTilePixelSize(l,e,r);p.canvas.width=f[0],p.canvas.height=f[1];for(var d=u.getTileCoordExtent(s,this.tmpExtent),g=0,v=t.tileKeys.length;g<v;++g){var m=t.getTile(t.tileKeys[g]);if(m.getState()==zn){var y=e/h,_=ra(this.tmpTransform_);sa(_,y,-y),la(_,-d[0],-d[3]),m.getReplayGroup(n,t.tileCoord.toString()).replay(p,_,0,{},!0,a)}}}},e}(fc);iu.handles=function(t){return t.getType()===bl},iu.create=function(t,e){return new iu(e)};var ou=iu,au=function(t){function e(e){(e=ke({},e)).controls||(e.controls=function(t){var e=t||{},r=new vr;return(void 0===e.zoom||e.zoom)&&r.push(new Es(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&r.push(new Cs(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&r.push(new xs(e.attributionOptions)),r}()),e.interactions||(e.interactions=function(t){var e=t||{},r=new vr,n=new Ts(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&r.push(new Hs),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&r.push(new Is({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&r.push(new qs({condition:e.onFocusOnly?Ds:void 0,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&r.push(new hl),(void 0===e.pinchZoom||e.pinchZoom)&&r.push(new pl({constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(r.push(new ol),r.push(new sl({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&r.push(new ul({condition:e.onFocusOnly?Ds:void 0,constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&r.push(new Qs({duration:e.zoomDuration})),r}()),t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRenderer=function(){var t=new ic(this);return t.registerLayerRenderers([lc,fc,Qc,ou]),t},e}(fs);var su=function(t){function e(e){if(t.call(this),this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,Fe(this,pr(this.geometryName_),this.handleGeometryChanged_,this),e)if("function"==typeof e.getSimplifiedGeometry){var r=e;this.setGeometry(r)}else{var n=e;this.setProperties(n)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(this.getProperties());t.setGeometryName(this.getGeometryName());var r=this.getGeometry();r&&t.setGeometry(r.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(Ne(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=Fe(t,Ve,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;var e;Array.isArray(t)?e=t:(Xn("function"==typeof t.getZIndex,41),e=[t]);return function(){return e}}(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){je(this,pr(this.geometryName_),this.handleGeometryChanged_,this),this.geometryName_=t,Fe(this,pr(this.geometryName_),this.handleGeometryChanged_,this),this.handleGeometryChanged_()},e}(fr),lu=function(){this.dataProjection=null,this.defaultFeatureProjection=null};function cu(t,e,r){var n,i=r?Xo(r.featureProjection):null,o=r?Xo(r.dataProjection):null;if(n=i&&o&&!Zo(i,o)?Array.isArray(t)?oo(t,Qo(o,i)):(e?t.clone():t).transform(e?i:o,e?o:i):t,e&&r&&void 0!==r.decimals&&!Array.isArray(n)){var a=Math.pow(10,r.decimals);n===t&&(n=t.clone()),n.applyTransform((function(t){for(var e=0,r=t.length;e<r;++e)t[e]=Math.round(t[e]*a)/a;return t}))}return n}lu.prototype.getReadOptions=function(t,e){var r;return e&&(r={dataProjection:e.dataProjection?e.dataProjection:this.readProjection(t),featureProjection:e.featureProjection}),this.adaptOptions(r)},lu.prototype.adaptOptions=function(t){return ke({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},lu.prototype.getLastExtent=function(){return null},lu.prototype.getType=function(){return be()},lu.prototype.readFeature=function(t,e){return be()},lu.prototype.readFeatures=function(t,e){return be()},lu.prototype.readGeometry=function(t,e){return be()},lu.prototype.readProjection=function(t){return be()},lu.prototype.writeFeature=function(t,e){return be()},lu.prototype.writeFeatures=function(t,e){return be()},lu.prototype.writeGeometry=function(t,e){return be()};var uu="arraybuffer",hu="json",pu="text",fu="xml";function du(t){if("string"==typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var gu=function(t){function e(){t.call(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getType=function(){return hu},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(du(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(du(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return be()},e.prototype.readFeaturesFromObject=function(t,e){return be()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(du(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return be()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(du(t))},e.prototype.readProjectionFromObject=function(t){return be()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return be()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return be()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return be()},e}(lu);function vu(t){for(var e=[],r=0,n=t.length;r<n;++r)e.push(t[r].clone());return e}var mu=function(t){function e(e){t.call(this),this.geometries_=e||null,this.listenGeometriesChange_()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.unlistenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)je(this.geometries_[t],Ve,this.changed,this)},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)Fe(this.geometries_[t],Ve,this.changed,this)},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t},e.prototype.closestPointXY=function(t,e,r,n){if(n<Ai(this.getExtent(),t,e))return n;for(var i=this.geometries_,o=0,a=i.length;o<a;++o)n=i[o].closestPointXY(t,e,r,n);return n},e.prototype.containsXY=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)if(r[n].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){Ni(t);for(var e=this.geometries_,r=0,n=e.length;r<n;++r)Gi(t,e[r].getExtent());return t},e.prototype.getGeometries=function(){return vu(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Re(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;var r=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(r))return this.simplifiedGeometryCache[r];for(var n=[],i=this.geometries_,o=!1,a=0,s=i.length;a<s;++a){var l=i[a],c=l.getSimplifiedGeometry(t);n.push(c),c!==l&&(o=!0)}if(o){var u=new e(null);return u.setGeometriesArray(n),this.simplifiedGeometryCache[r]=u,u}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return fo},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)if(e[r].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,r){var n=r;n||(n=Yi(this.getExtent()));for(var i=this.geometries_,o=0,a=i.length;o<a;++o)i[o].scale(t,e,n);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(vu(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,r=0,n=e.length;r<n;++r)e[r].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var r=this.geometries_,n=0,i=r.length;n<i;++n)r[n].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(ha);function yu(t,e,r,n,i,o){var a=NaN,s=NaN,l=(r-e)/n;if(1===l)a=t[e],s=t[e+1];else if(2==l)a=(1-i)*t[e]+i*t[e+n],s=(1-i)*t[e+1]+i*t[e+n+1];else if(0!==l){for(var c=t[e],u=t[e+1],h=0,p=[0],f=e+n;f<r;f+=n){var d=t[f],g=t[f+1];h+=Math.sqrt((d-c)*(d-c)+(g-u)*(g-u)),p.push(h),c=d,u=g}var v=i*h,m=function(t,e,r){for(var n,i,o=r||mn,a=0,s=t.length,l=!1;a<s;)(i=+o(t[n=a+(s-a>>1)],e))<0?a=n+1:(s=n,l=!i);return l?a:~a}(p,v);if(m<0){var y=(v-p[-m-2])/(p[-m-1]-p[-m-2]),_=e+(-m-2)*n;a=ri(t[_],t[_+n],y),s=ri(t[_+1],t[_+n+1],y)}else a=t[e+m*n],s=t[e+m*n+1]}return o?(o[0]=a,o[1]=s,o):[a,s]}function _u(t,e,r,n,i,o){if(r==e)return null;var a;if(i<t[e+n-1])return o?((a=t.slice(e,e+n))[n-1]=i,a):null;if(t[r-1]<i)return o?((a=t.slice(r-n,r))[n-1]=i,a):null;if(i==t[e+n-1])return t.slice(e,e+n);for(var s=e/n,l=r/n;s<l;){var c=s+l>>1;i<t[(c+1)*n-1]?l=c:s=c+1}var u=t[s*n-1];if(i==u)return t.slice((s-1)*n,(s-1)*n+n);var h=(i-u)/(t[(s+1)*n-1]-u);a=[];for(var p=0;p<n-1;++p)a.push(ri(t[(s-1)*n+p],t[s*n+p],h));return a.push(i),a}var bu=function(t){function e(e,r){t.call(this),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===r||Array.isArray(e[0])?this.setCoordinates(e,r):this.setFlatCoordinates(r,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendCoordinate=function(t){this.flatCoordinates?bn(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){return n<Ai(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ma(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),_a(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.forEachSegment=function(t){return ja(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=yo&&this.layout!=_o)return null;var r=void 0!==e&&e;return _u(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r)},e.prototype.getCoordinates=function(){return Ca(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return yu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e)},e.prototype.getLength=function(){return Ec(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[];return r.length=Ta(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,r,0),new e(r,vo)},e.prototype.getType=function(){return so},e.prototype.intersectsExtent=function(t){return Na(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=xa(this.flatCoordinates,0,t,this.stride),this.changed()},e}(fa),xu=function(t){function e(e,r,n){if(t.call(this),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(e[0]))this.setCoordinates(e,r);else if(void 0!==r&&n)this.setFlatCoordinates(r,e),this.ends_=n;else{for(var i=this.getLayout(),o=e,a=[],s=[],l=0,c=o.length;l<c;++l){var u=o[l];0===l&&(i=u.getLayout()),bn(a,u.getFlatCoordinates()),s.push(a.length)}this.setFlatCoordinates(i,a),this.ends_=s}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendLineString=function(t){this.flatCoordinates?bn(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},e.prototype.closestPointXY=function(t,e,r,n){return n<Ai(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ya(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),ba(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,r,n))},e.prototype.getCoordinateAtM=function(t,e,r){if(this.layout!=yo&&this.layout!=_o||0===this.flatCoordinates.length)return null;var n=void 0!==e&&e,i=void 0!==r&&r;return function(t,e,r,n,i,o,a){if(a)return _u(t,e,r[r.length-1],n,i,o);var s;if(i<t[n-1])return o?((s=t.slice(0,n))[n-1]=i,s):null;if(t[t.length-1]<i)return o?((s=t.slice(t.length-n))[n-1]=i,s):null;for(var l=0,c=r.length;l<c;++l){var u=r[l];if(e!=u){if(i<t[e+n-1])return null;if(i<=t[u-1])return _u(t,e,u,n,i,!1);e=u}}return null}(this.flatCoordinates,0,this.ends_,this.stride,t,n,i)},e.prototype.getCoordinates=function(){return Ea(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new bu(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,r=this.layout,n=[],i=0,o=0,a=e.length;o<a;++o){var s=e[o],l=new bu(t.slice(i,s),r);n.push(l),i=s}return n},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,r=0,n=this.ends_,i=this.stride,o=0,a=n.length;o<a;++o){var s=n[o];bn(t,yu(e,r,s,i,.5)),r=s}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],n=[];return r.length=ka(this.flatCoordinates,0,this.ends_,this.stride,t,r,0,n),new e(r,vo,n)},e.prototype.getType=function(){return ho},e.prototype.intersectsExtent=function(t){return function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){if(Na(t,e,r[o],n,i))return!0;e=r[o]}return!1}(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var r=wa(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===r.length?0:r[r.length-1],this.changed()},e}(fa),wu=function(t){function e(e,r){t.call(this),r&&!Array.isArray(e[0])?this.setFlatCoordinates(r,e):this.setCoordinates(e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendPoint=function(t){this.flatCoordinates?bn(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,r,n){if(n<Ai(this.getExtent(),t,e))return n;for(var i=this.flatCoordinates,o=this.stride,a=0,s=i.length;a<s;a+=o){var l=Qn(t,e,i[a],i[a+1]);if(l<n){n=l;for(var c=0;c<o;++c)r[c]=i[a+c];r.length=o}}return n},e.prototype.getCoordinates=function(){return Ca(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new Ma(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,r=this.stride,n=[],i=0,o=t.length;i<o;i+=r){var a=new Ma(t.slice(i,i+r),e);n.push(a)}return n},e.prototype.getType=function(){return uo},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,r=this.stride,n=0,i=e.length;n<i;n+=r){if(Ii(t,e[n],e[n+1]))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=xa(this.flatCoordinates,0,t,this.stride),this.changed()},e}(fa);var Cu=function(t){function e(e,r,n){if(t.call(this),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){for(var i=this.getLayout(),o=e,a=[],s=[],l=0,c=o.length;l<c;++l){var u=o[l];0===l&&(i=u.getLayout());for(var h=a.length,p=u.getEnds(),f=0,d=p.length;f<d;++f)p[f]+=h;bn(a,u.getFlatCoordinates()),s.push(p)}r=i,e=a,n=s}void 0!==r&&n?(this.setFlatCoordinates(r,e),this.endss_=n):this.setCoordinates(e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var r=this.flatCoordinates.length;bn(this.flatCoordinates,t.getFlatCoordinates());for(var n=0,i=(e=t.getEnds().slice()).length;n<i;++n)e[n]+=r}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,r=new Array(t),n=0;n<t;++n)r[n]=this.endss_[n].slice();return new e(this.flatCoordinates.slice(),this.layout,r)},e.prototype.closestPointXY=function(t,e,r,n){return n<Ai(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o];i=ya(t,e,s,n,i),e=s[s.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(t,e,r,n,i,o,a,s,l,c,u){for(var h=u||[NaN,NaN],p=0,f=r.length;p<f;++p){var d=r[p];c=ba(t,e,d,n,i,o,a,s,l,c,h),e=d[d.length-1]}return c}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,r,n))},e.prototype.containsXY=function(t,e){return function(t,e,r,n,i,o){if(0===r.length)return!1;for(var a=0,s=r.length;a<s;++a){var l=r[a];if(Fa(t,e,l,n,i,o))return!0;e=l[l.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return function(t,e,r,n){for(var i=0,o=0,a=r.length;o<a;++o){var s=r[o];i+=ga(t,e,s,n),e=s[s.length-1]}return i}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?Wa(e=this.getOrientedFlatCoordinates().slice(),0,this.endss_,this.stride,t):e=this.flatCoordinates,Sa(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=function(t,e,r,n){for(var i=[],o=[1/0,1/0,-1/0,-1/0],a=0,s=r.length;a<s;++a){var l=r[a];o=$i(t,e,l[0],n),i.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=l[l.length-1]}return i}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=function(t,e,r,n,i){for(var o=[],a=0,s=r.length;a<s;++a){var l=r[a];o=Da(t,e,l,n,i,2*a,o),e=l[l.length-1]}return o}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new wu(this.getFlatInteriorPoints().slice(),yo)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;!function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o)if(!Ua(t,e,r[o],n,i))return!1;return!0}(t,0,this.endss_,this.stride)?(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Wa(this.orientedFlatCoordinates_,0,this.endss_,this.stride)):this.orientedFlatCoordinates_=t,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var r=[],n=[];return r.length=function(t,e,r,n,i,o,a,s){for(var l=0,c=r.length;l<c;++l){var u=r[l],h=[];a=Pa(t,e,u,n,i,o,a,h),s.push(h),e=u[u.length-1]}return a}(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),r,0,n),new e(r,vo,n)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var r=this.endss_[t-1];e=r[r.length-1]}var n=this.endss_[t].slice(),i=n[n.length-1];if(0!==e)for(var o=0,a=n.length;o<a;++o)n[o]-=e;return new Ha(this.flatCoordinates.slice(e,i),this.layout,n)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,r=this.endss_,n=[],i=0,o=0,a=r.length;o<a;++o){var s=r[o].slice(),l=s[s.length-1];if(0!==i)for(var c=0,u=s.length;c<u;++c)s[c]-=i;var h=new Ha(e.slice(i,l),t,s);n.push(h),i=l}return n},e.prototype.getType=function(){return po},e.prototype.intersectsExtent=function(t){return function(t,e,r,n,i){for(var o=0,a=r.length;o<a;++o){var s=r[o];if($a(t,e,s,n,i))return!0;e=s[s.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var r=function(t,e,r,n,i){for(var o=i||[],a=0,s=0,l=r.length;s<l;++s){var c=wa(t,e,r[s],n,o[a]);o[a++]=c,e=c[c.length-1]}return o.length=a,o}(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===r.length)this.flatCoordinates.length=0;else{var n=r[r.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()},e}(fa);function Eu(t,e){if(!t)return null;var r;switch(t.type){case ao:r=function(t){return new Ma(t.coordinates)}(t);break;case so:r=function(t){return new bu(t.coordinates)}(t);break;case co:r=function(t){return new Ha(t.coordinates)}(t);break;case uo:r=function(t){return new wu(t.coordinates)}(t);break;case ho:r=function(t){return new xu(t.coordinates)}(t);break;case po:r=function(t){return new Cu(t.coordinates)}(t);break;case fo:r=function(t,e){var r=t.geometries.map((function(t){return Eu(t,e)}));return new mu(r)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return cu(r,!1,e)}function Su(t,e){var r,n=(t=cu(t,!0,e)).getType();switch(n){case ao:r=function(t,e){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case so:r=function(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case co:r=function(t,e){var r;e&&(r=e.rightHanded);return{type:"Polygon",coordinates:t.getCoordinates(r)}}(t,e);break;case uo:r=function(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case ho:r=function(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case po:r=function(t,e){var r;e&&(r=e.rightHanded);return{type:"MultiPolygon",coordinates:t.getCoordinates(r)}}(t,e);break;case fo:r=function(t,e){return{type:"GeometryCollection",geometries:t.getGeometriesArray().map((function(t){var r=ke({},e);return delete r.featureProjection,Su(t,r)}))}}(t,e);break;case go:r={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return r}var Tu=function(t){function e(e){var r=e||{};t.call(this),this.dataProjection=Xo(r.dataProjection?r.dataProjection:"EPSG:4326"),r.featureProjection&&(this.defaultFeatureProjection=Xo(r.featureProjection)),this.geometryName_=r.geometryName,this.extractGeometryName_=r.extractGeometryName}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.readFeatureFromObject=function(t,e){var r=null,n=Eu((r="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),i=new su;return this.geometryName_?i.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in r!==void 0&&i.setGeometryName(r.geometry_name),i.setGeometry(n),"id"in r&&i.setId(r.id),r.properties&&i.setProperties(r.properties),i},e.prototype.readFeaturesFromObject=function(t,e){var r=null;if("FeatureCollection"===t.type){r=[];for(var n=t.features,i=0,o=n.length;i<o;++i)r.push(this.readFeatureFromObject(n[i],e))}else r=[this.readFeatureFromObject(t,e)];return r},e.prototype.readGeometryFromObject=function(t,e){return Eu(t,e)},e.prototype.readProjectionFromObject=function(t){var e,r=t.crs;return r?"name"==r.type?e=Xo(r.properties.name):Xn(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var r={type:"Feature",geometry:null,properties:null},n=t.getId();void 0!==n&&(r.id=n);var i=t.getGeometry();i&&(r.geometry=Su(i,e));var o=t.getProperties();return delete o[t.getGeometryName()],Pe(o)||(r.properties=o),r},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var r=[],n=0,i=t.length;n<i;++n)r.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:r}},e.prototype.writeGeometryObject=function(t,e){return Su(t,this.adaptOptions(e))},e}(gu),ku="preload",Ru="useInterimTilesOnError",Ou=function(t){function e(e){var r=e||{},n=ke({},r);delete n.preload,delete n.useInterimTilesOnError,t.call(this,n),this.setPreload(void 0!==r.preload?r.preload:0),this.setUseInterimTilesOnError(void 0===r.useInterimTilesOnError||r.useInterimTilesOnError),this.type=_l}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getPreload=function(){return this.get(ku)},e.prototype.setPreload=function(t){this.set(ku,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(Ru)},e.prototype.setUseInterimTilesOnError=function(t){this.set(Ru,t)},e}(_s);Ou.prototype.getSource;var Pu=Ou,Au=function(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale};Au.prototype.clone=function(){return new Au({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},Au.prototype.getOpacity=function(){return this.opacity_},Au.prototype.getRotateWithView=function(){return this.rotateWithView_},Au.prototype.getRotation=function(){return this.rotation_},Au.prototype.getScale=function(){return this.scale_},Au.prototype.getSnapToPixel=function(){return!1},Au.prototype.getAnchor=function(){return be()},Au.prototype.getImage=function(t){return be()},Au.prototype.getHitDetectionImage=function(t){return be()},Au.prototype.getImageState=function(){return be()},Au.prototype.getImageSize=function(){return be()},Au.prototype.getHitDetectionImageSize=function(){return be()},Au.prototype.getOrigin=function(){return be()},Au.prototype.getSize=function(){return be()},Au.prototype.setOpacity=function(t){this.opacity_=t},Au.prototype.setRotateWithView=function(t){this.rotateWithView_=t},Au.prototype.setRotation=function(t){this.rotation_=t},Au.prototype.setScale=function(t){this.scale_=t},Au.prototype.setSnapToPixel=function(t){},Au.prototype.listenImageChange=function(t,e){return be()},Au.prototype.load=function(){be()},Au.prototype.unlistenImageChange=function(t,e){be()};var Mu=function(t){function e(e){var r=e||{};t.call(this,{points:1/0,fill:r.fill,radius:r.radius,stroke:r.stroke,atlasManager:r.atlasManager})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render_(this.atlasManager_)},e}(function(t){function e(e){var r=void 0!==e.rotateWithView&&e.rotateWithView;t.call(this,{opacity:1,rotateWithView:r,rotation:void 0!==e.rotation?e.rotation:0,scale:1}),this.checksums_=null,this.canvas_=null,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius_=void 0!==e.radius?e.radius:e.radius1,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.anchor_=null,this.size_=null,this.imageSize_=null,this.hitDetectionImageSize_=null,this.atlasManager_=e.atlasManager,this.render_(this.atlasManager_)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return gl},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t,e){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t,e){},e.prototype.render_=function(t){var e,r,n="",i="",o=0,a=null,s=0,l=0;this.stroke_&&(null===(r=this.stroke_.getColor())&&(r=Rl),r=Vl(r),void 0===(l=this.stroke_.getWidth())&&(l=1),a=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset(),Sr||(a=null,s=0),void 0===(i=this.stroke_.getLineJoin())&&(i="round"),void 0===(n=this.stroke_.getLineCap())&&(n="round"),void 0===(o=this.stroke_.getMiterLimit())&&(o=10));var c=2*(this.radius_+l)+1,u={strokeStyle:r,strokeWidth:l,size:c,lineCap:n,lineDash:a,lineDashOffset:s,lineJoin:i,miterLimit:o};if(void 0===t){var h=Za(c,c);this.canvas_=h.canvas,e=c=this.canvas_.width,this.draw_(u,h,0,0),this.createHitDetectionCanvas_(u)}else{c=Math.round(c);var p,f=!this.fill_;f&&(p=this.drawHitDetectionCanvas_.bind(this,u));var d=this.getChecksum(),g=t.add(d,c,c,this.draw_.bind(this,u),p);this.canvas_=g.image,this.origin_=[g.offsetX,g.offsetY],e=g.image.width,f?(this.hitDetectionCanvas_=g.hitImage,this.hitDetectionImageSize_=[g.hitImage.width,g.hitImage.height]):(this.hitDetectionCanvas_=this.canvas_,this.hitDetectionImageSize_=[e,e])}this.anchor_=[c/2,c/2],this.size_=[c,c],this.imageSize_=[e,e]},e.prototype.draw_=function(t,e,r,n){var i,o,a;e.setTransform(1,0,0,1,0,0),e.translate(r,n),e.beginPath();var s=this.points_;if(s===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var l=void 0!==this.radius2_?this.radius2_:this.radius_;for(l!==this.radius_&&(s*=2),i=0;i<=s;i++)o=2*i*Math.PI/s-Math.PI/2+this.angle_,a=i%2==0?this.radius_:l,e.lineTo(t.size/2+a*Math.cos(o),t.size/2+a*Math.sin(o))}if(this.fill_){var c=this.fill_.getColor();null===c&&(c=Tl),e.fillStyle=Vl(c),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.fill_)this.hitDetectionCanvas_=this.canvas_;else{var e=Za(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e,0,0)}},e.prototype.drawHitDetectionCanvas_=function(t,e,r,n){e.setTransform(1,0,0,1,0,0),e.translate(r,n),e.beginPath();var i=this.points_;if(i===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o,a,s,l=void 0!==this.radius2_?this.radius2_:this.radius_;for(l!==this.radius_&&(i*=2),o=0;o<=i;o++)s=2*o*Math.PI/i-Math.PI/2+this.angle_,a=o%2==0?this.radius_:l,e.lineTo(t.size/2+a*Math.cos(s),t.size/2+a*Math.sin(s))}e.fillStyle=ql(Tl),e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e.prototype.getChecksum=function(){var t=this.stroke_?this.stroke_.getChecksum():"-",e=this.fill_?this.fill_.getChecksum():"-";if(!this.checksums_||t!=this.checksums_[1]||e!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.radius2_!=this.checksums_[4]||this.angle_!=this.checksums_[5]||this.points_!=this.checksums_[6]){var r="r"+t+e+(void 0!==this.radius_?this.radius_.toString():"-")+(void 0!==this.radius2_?this.radius2_.toString():"-")+(void 0!==this.angle_?this.angle_.toString():"-")+(void 0!==this.points_?this.points_.toString():"-");this.checksums_=[r,t,e,this.radius_,this.radius2_,this.angle_,this.points_]}return this.checksums_[0]},e}(Au)),Lu=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.checksum_=void 0};Lu.prototype.clone=function(){var t=this.getColor();return new Lu({color:Array.isArray(t)?t.slice():t||void 0})},Lu.prototype.getColor=function(){return this.color_},Lu.prototype.setColor=function(t){this.color_=t,this.checksum_=void 0},Lu.prototype.getChecksum=function(){if(void 0===this.checksum_){var t=this.color_;t?Array.isArray(t)||"string"==typeof t?this.checksum_="f"+ql(t):this.checksum_=we(this.color_):this.checksum_="f-"}return this.checksum_};var Iu=Lu,Fu=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width,this.checksum_=void 0};Fu.prototype.clone=function(){var t=this.getColor();return new Fu({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},Fu.prototype.getColor=function(){return this.color_},Fu.prototype.getLineCap=function(){return this.lineCap_},Fu.prototype.getLineDash=function(){return this.lineDash_},Fu.prototype.getLineDashOffset=function(){return this.lineDashOffset_},Fu.prototype.getLineJoin=function(){return this.lineJoin_},Fu.prototype.getMiterLimit=function(){return this.miterLimit_},Fu.prototype.getWidth=function(){return this.width_},Fu.prototype.setColor=function(t){this.color_=t,this.checksum_=void 0},Fu.prototype.setLineCap=function(t){this.lineCap_=t,this.checksum_=void 0},Fu.prototype.setLineDash=function(t){this.lineDash_=t,this.checksum_=void 0},Fu.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t,this.checksum_=void 0},Fu.prototype.setLineJoin=function(t){this.lineJoin_=t,this.checksum_=void 0},Fu.prototype.setMiterLimit=function(t){this.miterLimit_=t,this.checksum_=void 0},Fu.prototype.setWidth=function(t){this.width_=t,this.checksum_=void 0},Fu.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.checksum_="s",this.color_?"string"==typeof this.color_?this.checksum_+=this.color_:this.checksum_+=we(this.color_):this.checksum_+="-",this.checksum_+=","+(void 0!==this.lineCap_?this.lineCap_.toString():"-")+","+(this.lineDash_?this.lineDash_.toString():"-")+","+(void 0!==this.lineDashOffset_?this.lineDashOffset_:"-")+","+(void 0!==this.lineJoin_?this.lineJoin_:"-")+","+(void 0!==this.miterLimit_?this.miterLimit_.toString():"-")+","+(void 0!==this.width_?this.width_.toString():"-")),this.checksum_};var Du=Fu,ju=function(t){var e=t||{};this.geometry_=null,this.geometryFunction_=Bu,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex};ju.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new ju({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},ju.prototype.getRenderer=function(){return this.renderer_},ju.prototype.setRenderer=function(t){this.renderer_=t},ju.prototype.getGeometry=function(){return this.geometry_},ju.prototype.getGeometryFunction=function(){return this.geometryFunction_},ju.prototype.getFill=function(){return this.fill_},ju.prototype.setFill=function(t){this.fill_=t},ju.prototype.getImage=function(){return this.image_},ju.prototype.setImage=function(t){this.image_=t},ju.prototype.getStroke=function(){return this.stroke_},ju.prototype.setStroke=function(t){this.stroke_=t},ju.prototype.getText=function(){return this.text_},ju.prototype.setText=function(t){this.text_=t},ju.prototype.getZIndex=function(){return this.zIndex_},ju.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=Bu,this.geometry_=t},ju.prototype.setZIndex=function(t){this.zIndex_=t};var Nu=null;function $u(t,e){if(!Nu){var r=new Iu({color:"rgba(255,255,255,0.4)"}),n=new Du({color:"#3399CC",width:1.25});Nu=[new ju({image:new Mu({fill:r,stroke:n,radius:5}),fill:r,stroke:n})]}return Nu}function Bu(t){return t.getGeometry()}var Gu=ju,Uu="renderOrder",zu=function(t){function e(e){var r=e||{},n=ke({},r);delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,t.call(this,n),this.declutter_=void 0!==r.declutter&&r.declutter,this.renderBuffer_=void 0!==r.renderBuffer?r.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(r.style),this.updateWhileAnimating_=void 0!==r.updateWhileAnimating&&r.updateWhileAnimating,this.updateWhileInteracting_=void 0!==r.updateWhileInteracting&&r.updateWhileInteracting,this.renderMode_=r.renderMode||Cl,this.type=xl}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.setDeclutter=function(t){this.declutter_=t},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(Uu)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.setRenderOrder=function(t){this.set(Uu,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:$u,this.styleFunction_=null===t?void 0:function(t){var e;if("function"==typeof t)e=t;else{var r;if(Array.isArray(t))r=t;else Xn("function"==typeof t.getZIndex,41),r=[t];e=function(){return r}}return e}(this.style_),this.changed()},e.prototype.getRenderMode=function(){return this.renderMode_},e}(_s);zu.prototype.getSource;var Wu=zu;function qu(t,e){return function(t,e,r,n){return function(i,o,a){var s=new XMLHttpRequest;s.open("GET","function"==typeof t?t(i,o,a):t,!0),e.getType()==uu&&(s.responseType="arraybuffer"),s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){var i,o=e.getType();o==hu||o==pu?i=s.responseText:o==fu?(i=s.responseXML)||(i=(new DOMParser).parseFromString(s.responseText,"application/xml")):o==uu&&(i=s.response),i?r.call(this,e.readFeatures(i,{featureProjection:a}),e.readProjection(i),e.getLastExtent()):n.call(this)}else n.call(this)}.bind(this),s.onerror=function(){n.call(this)}.bind(this),s.send()}}(t,e,(function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)}),ze)}function Hu(t,e){return[[-1/0,-1/0,1/0,1/0]]}function Xu(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}var Vu=function(t){function e(e){t.call(this),this.projection_=Xo(e.projection),this.attributions_=Xu(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:cs,this.wrapX_=void 0!==e.wrapX&&e.wrapX}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return be()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=Xu(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(fr),Yu="addfeature",Ku="changefeature",Zu="clear",Ju="removefeature",Qu=function(t){this.rbush_=gc()(t,void 0),this.items_={}};Qu.prototype.insert=function(t,e){var r={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(r),this.items_[we(e)]=r},Qu.prototype.load=function(t,e){for(var r=new Array(e.length),n=0,i=e.length;n<i;n++){var o=t[n],a=e[n],s={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:a};r[n]=s,this.items_[we(a)]=s}this.rbush_.load(r)},Qu.prototype.remove=function(t){var e=we(t),r=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(r)},Qu.prototype.update=function(t,e){var r=this.items_[we(e)];Bi([r.minX,r.minY,r.maxX,r.maxY],t)||(this.remove(e),this.insert(t,e))},Qu.prototype.getAll=function(){return this.rbush_.all().map((function(t){return t.value}))},Qu.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))},Qu.prototype.forEach=function(t,e){return this.forEach_(this.getAll(),t,e)},Qu.prototype.forEachInExtent=function(t,e,r){return this.forEach_(this.getInExtent(t),e,r)},Qu.prototype.forEach_=function(t,e,r){for(var n,i=0,o=t.length;i<o;i++)if(n=e.call(r,t[i]))return n;return n},Qu.prototype.isEmpty=function(){return Pe(this.items_)},Qu.prototype.clear=function(){this.rbush_.clear(),this.items_={}},Qu.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return ji(e.minX,e.minY,e.maxX,e.maxY,t)},Qu.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]};var th=Qu,eh=function(t){function e(e,r){t.call(this,e),this.feature=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(He),rh=function(t){function e(e){var r=e||{};t.call(this,{attributions:r.attributions,projection:void 0,state:cs,wrapX:void 0===r.wrapX||r.wrapX}),this.loader_=ze,this.format_=r.format,this.overlaps_=null==r.overlaps||r.overlaps,this.url_=r.url,void 0!==r.loader?this.loader_=r.loader:void 0!==this.url_&&(Xn(this.format_,7),this.loader_=qu(this.url_,this.format_)),this.strategy_=void 0!==r.strategy?r.strategy:Hu;var n,i,o=void 0===r.useSpatialIndex||r.useSpatialIndex;this.featuresRtree_=o?new th:null,this.loadedExtentsRtree_=new th,this.nullGeometryFeatures_={},this.idIndex_={},this.undefIdIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(r.features)?i=r.features:r.features&&(i=(n=r.features).getArray()),o||void 0!==n||(n=new vr(i)),void 0!==i&&this.addFeaturesInternal(i),void 0!==n&&this.bindFeaturesCollection_(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=we(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var r=t.getGeometry();if(r){var n=r.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new eh(Yu,t))}},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Fe(e,Ve,this.handleFeatureChange_,this),Fe(e,Te,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var r=!0,n=e.getId();return void 0!==n?n.toString()in this.idIndex_?r=!1:this.idIndex_[n.toString()]=e:(Xn(!(t in this.undefIdIndex_),30),this.undefIdIndex_[t]=e),r},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],r=[],n=[],i=0,o=t.length;i<o;i++){var a=t[i],s=we(a);this.addToIndex_(s,a)&&r.push(a)}for(var l=0,c=r.length;l<c;l++){var u=r[l],h=we(u);this.setupChangeEvents_(h,u);var p=u.getGeometry();if(p){var f=p.getExtent();e.push(f),n.push(u)}else this.nullGeometryFeatures_[h]=u}this.featuresRtree_&&this.featuresRtree_.load(e,n);for(var d=0,g=r.length;d<g;d++)this.dispatchEvent(new eh(Yu,r[d]))},e.prototype.bindFeaturesCollection_=function(t){var e=!1;Fe(this,Yu,(function(r){e||(e=!0,t.push(r.feature),e=!1)})),Fe(this,Ju,(function(r){e||(e=!0,t.remove(r.feature),e=!1)})),Fe(t,Ee,(function(t){e||(e=!0,this.addFeature(t.element),e=!1)}),this),Fe(t,Se,(function(t){e||(e=!0,this.removeFeature(t.element),e=!1)}),this),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){this.featureChangeKeys_[e].forEach(Ne)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.undefIdIndex_={})}else if(this.featuresRtree_)for(var r in this.featuresRtree_.forEach(this.removeFeatureInternal,this),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[r]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.loadedExtentsRtree_.clear(),this.nullGeometryFeatures_={};var n=new eh(Zu);this.dispatchEvent(n),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var r=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(r,(function(r){return r.getGeometry().intersectsCoordinate(t)?e(r):void 0}))},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,(function(r){if(r.getGeometry().intersectsExtent(t)){var n=e(r);if(n)return n}}))},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray():this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Pe(this.nullGeometryFeatures_)||bn(t,Oe(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e},e.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_.getInExtent(t)},e.prototype.getClosestFeatureToCoordinate=function(t,e){var r=t[0],n=t[1],i=null,o=[NaN,NaN],a=1/0,s=[-1/0,-1/0,1/0,1/0],l=e||Ge;return this.featuresRtree_.forEachInExtent(s,(function(t){if(l(t)){var e=t.getGeometry(),c=a;if((a=e.closestPointXY(r,n,o,a))<c){i=t;var u=Math.sqrt(a);s[0]=r-u,s[1]=n-u,s[2]=r+u,s[3]=n+u}}})),i},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,r=we(e),n=e.getGeometry();if(n){var i=n.getExtent();r in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[r],this.featuresRtree_&&this.featuresRtree_.insert(i,e)):this.featuresRtree_&&this.featuresRtree_.update(i,e)}else r in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[r]=e);var o=e.getId();if(void 0!==o){var a=o.toString();r in this.undefIdIndex_?(delete this.undefIdIndex_[r],this.idIndex_[a]=e):this.idIndex_[a]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[a]=e)}else r in this.undefIdIndex_||(this.removeFromIdIndex_(e),this.undefIdIndex_[r]=e);this.changed(),this.dispatchEvent(new eh(Ku,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:we(t)in this.undefIdIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Pe(this.nullGeometryFeatures_)},e.prototype.loadFeatures=function(t,e,r){var n=this,i=this.loadedExtentsRtree_,o=this.strategy_(t,e);this.loading=!1;for(var a=function(t,a){var s=o[t];i.forEachInExtent(s,(function(t){return Li(t.extent,s)}))||(n.loader_.call(n,s,e,r),i.insert(s,{extent:s.slice()}),n.loading=n.loader_!==ze)},s=0,l=o.length;s<l;++s)a(s)},e.prototype.removeLoadedExtent=function(t){var e,r=this.loadedExtentsRtree_;r.forEachInExtent(t,(function(r){if(Bi(r.extent,t))return e=r,!0})),e&&r.remove(e)},e.prototype.removeFeature=function(t){var e=we(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},e.prototype.removeFeatureInternal=function(t){var e=we(t);this.featureChangeKeys_[e].forEach(Ne),delete this.featureChangeKeys_[e];var r=t.getId();void 0!==r?delete this.idIndex_[r.toString()]:delete this.undefIdIndex_[e],this.dispatchEvent(new eh(Ju,t))},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var r in this.idIndex_)if(this.idIndex_[r]===t){delete this.idIndex_[r],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e}(Vu),nh=function(t){function e(e,r,n){t.call(this);var i=n||{};this.tileCoord=e,this.state=r,this.interimTile=null,this.key="",this.transition_=void 0===i.transition?250:i.transition,this.transitionStarts_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(Ve)},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==zn)return t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==zn){t.interimTile=null;break}t.getState()==Un?e=t:t.getState()==Gn?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){this.state=t,this.changed()},e.prototype.load=function(){},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var r=this.transitionStarts_[t];if(r){if(-1===r)return 1}else r=e,this.transitionStarts_[t]=r;var n=e-r+1e3/60;return n>=this.transition_?1:di(n/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Xe);function ih(){var t=Za(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var oh=function(t){function e(e,r,n,i,o,a){t.call(this,e,r,a),this.crossOrigin_=i,this.src_=n,this.image_=new Image,null!==i&&(this.image_.crossOrigin=i),this.imageListenerKeys_=null,this.tileLoadFunction_=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==Un&&(this.unlistenImage_(),this.image_=ih()),this.interimTile&&this.interimTile.dispose(),this.state=Hn,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=Wn,this.unlistenImage_(),this.image_=ih(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=zn:this.state=qn,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==Wn&&(this.state=Gn,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Gn&&(this.state=Un,this.changed(),this.imageListenerKeys_=[De(this.image_,Qe,this.handleImageError_,this),De(this.image_,rr,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(Ne),this.imageListenerKeys_=null},e}(nh);function ah(t,e,r,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=r,n):[t,e,r]}function sh(t,e,r){return t+"/"+e+"/"+r}function lh(t){return sh(t[0],t[1],t[2])}var ch=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expireCache=function(t){for(;this.canExpireCache();){var e=this.peekLast(),r=e.tileCoord[0].toString();if(r in t&&t[r].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach((function(e){e.tileCoord[0]!==t&&(this.remove(lh(e.tileCoord)),e.dispose())}),this)}},e}(Sl);function uh(t,e,r,n){var i=r-t,o=n-e,a=Math.sqrt(i*i+o*o);return[Math.round(r+i/a),Math.round(n+o/a)]}function hh(t,e,r,n,i,o,a,s,l,c,u){var h=Za(Math.round(r*t),Math.round(r*e));if(0===l.length)return h.canvas;h.scale(r,r);var p=[1/0,1/0,-1/0,-1/0];l.forEach((function(t,e,r){Gi(p,t.extent)}));var f=ro(p),d=Ji(p),g=Za(Math.round(r*f/n),Math.round(r*d/n)),v=r/n;l.forEach((function(t,e,r){var n=t.extent[0]-p[0],i=-(t.extent[3]-p[3]),o=ro(t.extent),a=Ji(t.extent);g.drawImage(t.image,c,c,t.image.width-2*c,t.image.height-2*c,n*v,i*v,o*v,a*v)}));var m=to(a);return s.getTriangles().forEach((function(t,e,i){var a=t.source,s=t.target,l=a[0][0],c=a[0][1],u=a[1][0],f=a[1][1],d=a[2][0],v=a[2][1],y=(s[0][0]-m[0])/o,_=-(s[0][1]-m[1])/o,b=(s[1][0]-m[0])/o,x=-(s[1][1]-m[1])/o,w=(s[2][0]-m[0])/o,C=-(s[2][1]-m[1])/o,E=l,S=c;l=0,c=0;var T=function(t){for(var e=t.length,r=0;r<e;r++){for(var n=r,i=Math.abs(t[r][r]),o=r+1;o<e;o++){var a=Math.abs(t[o][r]);a>i&&(i=a,n=o)}if(0===i)return null;var s=t[n];t[n]=t[r],t[r]=s;for(var l=r+1;l<e;l++)for(var c=-t[l][r]/t[r][r],u=r;u<e+1;u++)r==u?t[l][u]=0:t[l][u]+=c*t[r][u]}for(var h=new Array(e),p=e-1;p>=0;p--){h[p]=t[p][e]/t[p][p];for(var f=p-1;f>=0;f--)t[f][e]-=t[f][p]*h[p]}return h}([[u-=E,f-=S,0,0,b-y],[d-=E,v-=S,0,0,w-y],[0,0,u,f,x-_],[0,0,d,v,C-_]]);if(T){h.save(),h.beginPath();var k=(y+b+w)/3,R=(_+x+C)/3,O=uh(k,R,y,_),P=uh(k,R,b,x),A=uh(k,R,w,C);h.moveTo(P[0],P[1]),h.lineTo(O[0],O[1]),h.lineTo(A[0],A[1]),h.clip(),h.transform(T[0],T[2],T[1],T[3],y,_),h.translate(p[0]-E,p[3]-S),h.scale(n/r,-n/r),h.drawImage(g.canvas,0,0),h.restore()}})),u&&(h.save(),h.strokeStyle="black",h.lineWidth=1,s.getTriangles().forEach((function(t,e,r){var n=t.target,i=(n[0][0]-m[0])/o,a=-(n[0][1]-m[1])/o,s=(n[1][0]-m[0])/o,l=-(n[1][1]-m[1])/o,c=(n[2][0]-m[0])/o,u=-(n[2][1]-m[1])/o;h.beginPath(),h.moveTo(s,l),h.lineTo(i,a),h.lineTo(c,u),h.closePath(),h.stroke()})),h.restore()),h.canvas}var ph=function(t,e,r,n,i){this.sourceProj_=t,this.targetProj_=e;var o={},a=Qo(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=a(t)),o[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&ro(n)==ro(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?ro(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?ro(this.targetProj_.getExtent()):null;var s=to(r),l=eo(r),c=Vi(r),u=Xi(r),h=this.transformInv_(s),p=this.transformInv_(l),f=this.transformInv_(c),d=this.transformInv_(u);if(this.addQuad_(s,l,c,u,h,p,f,d,10),this.wrapsXInSource_){var g=1/0;this.triangles_.forEach((function(t,e,r){g=Math.min(g,t.source[0][0],t.source[1][0],t.source[2][0])})),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-g>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-g>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-g>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-g>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var r=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-r<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}o={}};ph.prototype.addTriangle_=function(t,e,r,n,i,o){this.triangles_.push({source:[n,i,o],target:[t,e,r]})},ph.prototype.addQuad_=function(t,e,r,n,i,o,a,s,l){var c=Ri([i,o,a,s]),u=this.sourceWorldWidth_?ro(c)/this.sourceWorldWidth_:null,h=this.sourceWorldWidth_,p=this.sourceProj_.canWrapX()&&u>.5&&u<1,f=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_)f=ro(Ri([t,e,r,n]))/this.targetWorldWidth_>.25||f;!p&&this.sourceProj_.isGlobal()&&u&&(f=u>.25||f)}if(f||!this.maxSourceExtent_||no(c,this.maxSourceExtent_)){if(!(f||isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(s[0])&&isFinite(s[1]))){if(!(l>0))return;f=!0}if(l>0){if(!f){var d,g=[(t[0]+r[0])/2,(t[1]+r[1])/2],v=this.transformInv_(g);if(p)d=(ei(i[0],h)+ei(a[0],h))/2-ei(v[0],h);else d=(i[0]+a[0])/2-v[0];var m=(i[1]+a[1])/2-v[1];f=d*d+m*m>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-r[0])<=Math.abs(t[1]-r[1])){var y=[(e[0]+r[0])/2,(e[1]+r[1])/2],_=this.transformInv_(y),b=[(n[0]+t[0])/2,(n[1]+t[1])/2],x=this.transformInv_(b);this.addQuad_(t,e,y,b,i,o,_,x,l-1),this.addQuad_(b,y,r,n,x,_,a,s,l-1)}else{var w=[(t[0]+e[0])/2,(t[1]+e[1])/2],C=this.transformInv_(w),E=[(r[0]+n[0])/2,(r[1]+n[1])/2],S=this.transformInv_(E);this.addQuad_(t,w,E,n,i,C,S,s,l-1),this.addQuad_(w,e,r,E,C,o,a,S,l-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,r,n,i,a,s),this.addTriangle_(t,e,r,i,o,a)}},ph.prototype.calculateSourceExtent=function(){var t=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach((function(e,r,n){var i=e.source;Ui(t,i[0]),Ui(t,i[1]),Ui(t,i[2])})),t},ph.prototype.getTriangles=function(){return this.triangles_};var fh=ph,dh=function(t){function e(e,r,n,i,o,a,s,l,c,u,h){t.call(this,o,Gn),this.renderEdges_=void 0!==h&&h,this.pixelRatio_=s,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=r,this.targetTileGrid_=i,this.wrappedTileCoord_=a||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var p=i.getTileCoordExtent(this.wrappedTileCoord_),f=this.targetTileGrid_.getExtent(),d=this.sourceTileGrid_.getExtent(),g=f?Qi(p,f):p;if(0!==Hi(g)){var v=e.getExtent();v&&(d=d?Qi(d,v):v);var m=i.getResolution(this.wrappedTileCoord_[0]),y=function(t,e,r,n){var i=ta(r,e,t),o=Vo(e,n,r),a=e.getMetersPerUnit();void 0!==a&&(o*=a);var s=t.getMetersPerUnit();void 0!==s&&(o/=s);var l=t.getExtent();if(!l||Mi(l,i)){var c=Vo(t,o,i)/o;isFinite(c)&&c>0&&(o/=c)}return o}(e,n,Yi(g),m);if(!isFinite(y)||y<=0)this.state=qn;else{var _=void 0!==u?u:.5;if(this.triangulation_=new fh(e,n,g,d,y*_),0!==this.triangulation_.getTriangles().length){this.sourceZ_=r.getZForResolution(y);var b=this.triangulation_.calculateSourceExtent();if(d&&(e.canWrapX()?(b[1]=Kn(b[1],d[1],d[3]),b[3]=Kn(b[3],d[1],d[3])):b=Qi(b,d)),Hi(b)){for(var x=r.getTileRangeForExtentAndZ(b,this.sourceZ_),w=x.minX;w<=x.maxX;w++)for(var C=x.minY;C<=x.maxY;C++){var E=c(this.sourceZ_,w,C,s);E&&this.sourceTiles_.push(E)}0===this.sourceTiles_.length&&(this.state=qn)}else this.state=qn}else this.state=qn}}else this.state=qn}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==Un&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,r,n){e&&e.getState()==zn&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=Wn;else{var e=this.wrappedTileCoord_[0],r=this.targetTileGrid_.getTileSize(e),n="number"==typeof r?r:r[0],i="number"==typeof r?r:r[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=hh(n,i,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,s,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=zn}this.changed()},e.prototype.load=function(){if(this.state==Gn){this.state=Un,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,r,n){var i=e.getState();if(i==Gn||i==Un){t++;var o=Fe(e,Ve,(function(r){var n=e.getState();n!=zn&&n!=Wn&&n!=qn||(Ne(o),0===--t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach((function(t,e,r){t.getState()==Gn&&t.load()})),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Ne),this.sourcesListenerKeys_=null},e}(nh);function gh(t,e){var r=/\{z\}/g,n=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){return a?t.replace(r,a[0].toString()).replace(n,a[1].toString()).replace(i,(function(){return(-a[2]-1).toString()})).replace(o,(function(){var t=a[0],r=e.getFullTileRange(t);return Xn(r,55),(r.getHeight()+a[2]).toString()})):void 0}}function vh(t,e){for(var r=t.length,n=new Array(r),i=0;i<r;++i)n[i]=gh(t[i],e);return function(t){if(1===t.length)return t[0];return function(e,r,n){if(e){var i=ei(function(t){return(t[1]<<t[0])+t[2]}(e),t.length);return t[i](e,r,n)}}}(n)}function mh(t,e,r){}var yh=[0,0,0],_h=function(t){var e,r,n,i;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Xn((e=this.resolutions_,r=!0,n=function(t,e){return e-t}||mn,e.every((function(t,i){if(0===i)return!0;var o=n(e[i-1],t);return!(o>0||r&&0===o)}))),17),!t.origins)for(var o=0,a=this.resolutions_.length-1;o<a;++o)if(i){if(this.resolutions_[o]/this.resolutions_[o+1]!==i){i=void 0;break}}else i=this.resolutions_[o]/this.resolutions_[o+1];this.zoomFactor_=i,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Xn(this.origins_.length==this.resolutions_.length,20));var s=t.extent;void 0===s||this.origin_||this.origins_||(this.origin_=to(s)),Xn(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Xn(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:256,Xn(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==s?s:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){return new hc(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))}),this):s&&this.calculateTileRanges_(s)};_h.prototype.forEachTileCoord=function(t,e,r){for(var n=this.getTileRangeForExtentAndZ(t,e),i=n.minX,o=n.maxX;i<=o;++i)for(var a=n.minY,s=n.maxY;a<=s;++a)r([e,i,a])},_h.prototype.forEachTileCoordParentTileRange=function(t,e,r,n,i){var o,a,s,l=null,c=t[0]-1;for(2===this.zoomFactor_?(a=t[1],s=t[2]):l=this.getTileCoordExtent(t,i);c>=this.minZoom;){if(o=2===this.zoomFactor_?uc(a=Math.floor(a/2),a,s=Math.floor(s/2),s,n):this.getTileRangeForExtentAndZ(l,c,n),e.call(r,c,o))return!0;--c}return!1},_h.prototype.getExtent=function(){return this.extent_},_h.prototype.getMaxZoom=function(){return this.maxZoom},_h.prototype.getMinZoom=function(){return this.minZoom},_h.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},_h.prototype.getResolution=function(t){return this.resolutions_[t]},_h.prototype.getResolutions=function(){return this.resolutions_},_h.prototype.getTileCoordChildTileRange=function(t,e,r){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var n=2*t[1],i=2*t[2];return uc(n,n+1,i,i+1,e)}var o=this.getTileCoordExtent(t,r);return this.getTileRangeForExtentAndZ(o,t[0]+1,e)}return null},_h.prototype.getTileRangeExtent=function(t,e,r){var n=this.getOrigin(t),i=this.getResolution(t),o=ps(this.getTileSize(t),this.tmpSize_),a=n[0]+e.minX*o[0]*i,s=n[0]+(e.maxX+1)*o[0]*i;return ji(a,n[1]+e.minY*o[1]*i,s,n[1]+(e.maxY+1)*o[1]*i,r)},_h.prototype.getTileRangeForExtentAndZ=function(t,e,r){var n=yh;this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n);var i=n[1],o=n[2];return this.getTileCoordForXYAndZ_(t[2],t[3],e,!0,n),uc(i,n[1],o,n[2],r)},_h.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),r=this.getResolution(t[0]),n=ps(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*r,e[1]+(t[2]+.5)*n[1]*r]},_h.prototype.getTileCoordExtent=function(t,e){var r=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=ps(this.getTileSize(t[0]),this.tmpSize_),o=r[0]+t[1]*i[0]*n,a=r[1]+t[2]*i[1]*n;return ji(o,a,o+i[0]*n,a+i[1]*n,e)},_h.prototype.getTileCoordForCoordAndResolution=function(t,e,r){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,r)},_h.prototype.getTileCoordForXYAndResolution_=function(t,e,r,n,i){var o=this.getZForResolution(r),a=r/this.getResolution(o),s=this.getOrigin(o),l=ps(this.getTileSize(o),this.tmpSize_),c=n?.5:0,u=n?0:.5,h=Math.floor((t-s[0])/r+c),p=Math.floor((e-s[1])/r+u),f=a*h/l[0],d=a*p/l[1];return n?(f=Math.ceil(f)-1,d=Math.ceil(d)-1):(f=Math.floor(f),d=Math.floor(d)),ah(o,f,d,i)},_h.prototype.getTileCoordForXYAndZ_=function(t,e,r,n,i){var o=this.getOrigin(r),a=this.getResolution(r),s=ps(this.getTileSize(r),this.tmpSize_),l=n?.5:0,c=n?0:.5,u=Math.floor((t-o[0])/a+l),h=Math.floor((e-o[1])/a+c),p=u/s[0],f=h/s[1];return n?(p=Math.ceil(p)-1,f=Math.ceil(f)-1):(p=Math.floor(p),f=Math.floor(f)),ah(r,p,f,i)},_h.prototype.getTileCoordForCoordAndZ=function(t,e,r){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,r)},_h.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},_h.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},_h.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:null},_h.prototype.getZForResolution=function(t,e){return Kn(yn(this.resolutions_,t,e||0),this.minZoom,this.maxZoom)},_h.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,r=new Array(e),n=this.minZoom;n<e;++n)r[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=r};var bh=_h;function xh(t){var e=t.getDefaultTileGrid();return e||(e=function(t,e,r,n){return function(t,e,r,n){var i=void 0!==n?n:bi,o=wh(t,e,r);return new bh({extent:t,origin:Ki(t,i),resolutions:o,tileSize:r})}(Ch(t),e,r,n)}(t),t.setDefaultTileGrid(e)),e}function wh(t,e,r){for(var n=void 0!==e?e:42,i=Ji(t),o=ro(t),a=ps(void 0!==r?r:256),s=Math.max(o/a[0],i/a[1]),l=n+1,c=new Array(l),u=0;u<l;++u)c[u]=s/Math.pow(2,u);return c}function Ch(t){var e=(t=Xo(t)).getExtent();if(!e){var r=180*Co[Eo.DEGREES]/t.getMetersPerUnit();e=ji(-r,-r,r,r)}return e}var Eh=function(t){function e(e){t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX}),this.opaque_=void 0!==e.opaque&&e.opaque,this.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,this.tileGrid=void 0!==e.tileGrid?e.tileGrid:null,this.tileCache=new ch(e.cacheSize),this.tmpSize=[0,0],this.key_=e.key||"",this.tileOptions={transition:e.transition}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var r=this.getTileCacheForProjection(t);r&&r.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,r,n){var i=this.getTileCacheForProjection(t);if(!i)return!1;for(var o,a,s,l=!0,c=r.minX;c<=r.maxX;++c)for(var u=r.minY;u<=r.maxY;++u)a=sh(e,c,u),s=!1,i.containsKey(a)&&(s=(o=i.get(a)).getState()===zn)&&(s=!1!==n(o)),s||(l=!1);return l},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,r,n,i){return be()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:xh(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return e&&!Zo(e,t)?null:this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,r){var n,i,o,a=this.getTileGridForProjection(r),s=this.getTilePixelRatio(e),l=ps(a.getTileSize(t),this.tmpSize);return 1==s?l:(n=l,i=s,void 0===(o=this.tmpSize)&&(o=[0,0]),o[0]=n[0]*i+.5|0,o[1]=n[1]*i+.5|0,o)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var r=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(r);return this.getWrapX()&&r.isGlobal()&&(t=function(t,e,r){var n=e[0],i=t.getTileCoordCenter(e),o=Ch(r);if(Mi(o,i))return e;var a=ro(o),s=Math.ceil((o[0]-i[0])/a);return i[0]+=a*s,t.getTileCoordForCoordAndZ(i,n)}(n,t,r)),function(t,e){var r=t[0],n=t[1],i=t[2];if(e.getMinZoom()>r||r>e.getMaxZoom())return!1;var o,a=e.getExtent();return!(o=a?e.getTileRangeForExtentAndZ(a,r):e.getFullTileRange(r))||o.containsXY(n,i)}(t,n)?t:null},e.prototype.refresh=function(){this.tileCache.clear(),this.changed()},e.prototype.useTile=function(t,e,r,n){},e}(Vu),Sh=function(t){function e(e,r){t.call(this,e),this.tile=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(He),Th="tileloadstart",kh="tileloadend",Rh="tileloaderror";function Oh(t,e){t.getImage().src=e}var Ph=function(t){function e(e){var r,n=e||{};r=void 0!==n.attributions?n.attributions:['&#169; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'];var i=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",o=void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";t.call(this,{attributions:r,cacheSize:n.cacheSize,crossOrigin:i,opaque:void 0===n.opaque||n.opaque,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,url:o,wrapX:n.wrapX,attributionsCollapsible:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(function(t){function e(e){var r=e||{},n=void 0!==r.projection?r.projection:"EPSG:3857",i=void 0!==r.tileGrid?r.tileGrid:function(t){var e=t||{},r=e.extent||Xo("EPSG:3857").getExtent(),n={extent:r,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:wh(r,e.maxZoom,e.tileSize)};return new bh(n)}({extent:Ch(n),maxZoom:r.maxZoom,minZoom:r.minZoom,tileSize:r.tileSize});t.call(this,{attributions:r.attributions,cacheSize:r.cacheSize,crossOrigin:r.crossOrigin,opaque:r.opaque,projection:n,reprojectionErrorThreshold:r.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:r.tileLoadFunction,tilePixelRatio:r.tilePixelRatio,tileUrlFunction:r.tileUrlFunction,url:r.url,urls:r.urls,wrapX:void 0===r.wrapX||r.wrapX,transition:r.transition,attributionsCollapsible:r.attributionsCollapsible})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Oh,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,this.tileClass=void 0!==e.tileClass?e.tileClass:oh,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var r=this.getTileCacheForProjection(t);for(var n in this.tileCache.expireCache(this.tileCache==r?e:{}),this.tileCacheForProjection){var i=this.tileCacheForProjection[n];i.expireCache(i==r?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!Zo(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!Zo(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!Zo(e,t)){var r=we(t);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=xh(t)),this.tileGridForProjection[r]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||Zo(e,t))return this.tileCache;var r=we(t);return r in this.tileCacheForProjection||(this.tileCacheForProjection[r]=new ch(this.tileCache.highWaterMark)),this.tileCacheForProjection[r]},e.prototype.createTile_=function(t,e,r,n,i,o){var a=[t,e,r],s=this.getTileCoordForTileUrlFunction(a,i),l=s?this.tileUrlFunction(s,n,i):void 0,c=new this.tileClass(a,void 0!==l?Gn:qn,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return c.key=o,Fe(c,Ve,this.handleTileChange,this),c},e.prototype.getTile=function(t,e,r,n,i){var o=this.getProjection();if(o&&i&&!Zo(o,i)){var a,s=this.getTileCacheForProjection(i),l=[t,e,r],c=lh(l);s.containsKey(c)&&(a=s.get(c));var u=this.getKey();if(a&&a.key==u)return a;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(i),f=this.getTileCoordForTileUrlFunction(l,i),d=new dh(o,h,i,p,l,f,this.getTilePixelRatio(n),this.getGutter(),function(t,e,r,n){return this.getTileInternal(t,e,r,n,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return d.key=u,a?(d.interimTile=a,d.refreshInterimChain(),s.replace(c,d)):s.set(c,d),d}return this.getTileInternal(t,e,r,n,o||i)},e.prototype.getTileInternal=function(t,e,r,n,i){var o=null,a=sh(t,e,r),s=this.getKey();if(this.tileCache.containsKey(a)){if((o=this.tileCache.get(a)).key!=s){var l=o;o=this.createTile_(t,e,r,n,i,s),l.getState()==Gn?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,r,n,i,s),this.tileCache.set(a,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var r=Xo(t);if(r){var n=we(r);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}},e}(function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.generateTileUrlFunction_=!e.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,this.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(this):mh,this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),e.tileUrlFunction&&this.setTileUrlFunction(e.tileUrlFunction,this.key_),this.tileLoadingKeys_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,r=t.target,n=we(r),i=r.getState();i==Un?(this.tileLoadingKeys_[n]=!0,e=Th):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=i==Wn?Rh:i==zn||i==Hn?kh:void 0),null!=e&&this.dispatchEvent(new Sh(e,r))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=this.urls=function(t){var e=[],r=/\{([a-z])-([a-z])\}/.exec(t);if(r){var n,i=r[1].charCodeAt(0),o=r[2].charCodeAt(0);for(n=i;n<=o;++n)e.push(t.replace(r[0],String.fromCharCode(n)));return e}if(r=r=/\{(\d+)-(\d+)\}/.exec(t)){for(var a=parseInt(r[2],10),s=parseInt(r[1],10);s<=a;s++)e.push(t.replace(r[0],s.toString()));return e}return e.push(t),e}(t);this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(vh(t,this.tileGrid),e):this.setKey(e)},e.prototype.useTile=function(t,e,r){var n=sh(t,e,r);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(Eh))));console.log("run JS file: openlayers_esp.js"),function(){console.log("Quellen fuer Karte laden");var t=new rh({url:"json/stat_bezirke_4326.geojson",format:new Tu}),e=(new rh({url:"json/aoi_4326.geojson",format:new Tu}),new rh({url:"json/Punkte_864_A.geojson",format:new Tu})),r=new Ka({center:ta([13.710164431108614,51.02693425074847],"EPSG:4326","EPSG:3857"),zoom:14});console.log("openlayers Karte anzeigen");var n=new au({layers:[new Pu({source:new Ph})],target:"map",view:r}),i=new Wu({source:t}),o=new Iu({color:"rgba(0,255,0,0.4)"}),a=new Du({color:"#3399CC",width:1.25}),s=[new Gu({image:new Mu({fill:o,stroke:a,radius:5}),fill:o,stroke:a})],l=new Wu({source:e,style:s});n.addLayer(i),n.addLayer(l),n.on("click",(function(t){alert("Achtung Achtung... hier spricht OpenLayers!")}))}();r(393);console.log("run JS file: index.js")}]);
  //# sourceMappingURL=bundle.js.map