/* * spin.js * The MIT License * Copyright (c) 2011-2015 Felix Gnass [fgnass at gmail dot com] * https://github.com/fgnass/spin.js/blob/master/LICENSE.md * jQuery * MIT license * Copyright jQuery Foundation and other contributors * https://jquery.org/license/ * Leaflet * 2-clause BSD License * Copyright (c) 2010-2016, Vladimir Agafonkin * Copyright (c) 2010-2011, CloudMade * https://github.com/Leaflet/Leaflet/blob/master/LICENSE * Leaflet.fullscreen * ISC license * Copyright (c) 2015, MapBox * https://github.com/Leaflet/Leaflet.fullscreen/blob/gh-pages/LICENSE * Leaflet.toolbar * MIT License * Copyright (c) 2014-2015, Justin Manley * https://github.com/Leaflet/Leaflet.toolbar/blob/master/LICENSE * Leaflet.Spin * MIT License * Copyright (c) 2012 Makina Corpus * https://github.com/makinacorpus/Leaflet.Spin/blob/master/LICENSE * L.Control.Credits * The MIT License (MIT) * Copyright (c) 2015 Greg Allensworth * https://github.com/gregallensworth/L.Control.Credits/blob/master/LICENSE * Leaflet.Control.Custom * MIT License * Copyright (c) 2017 Yiğit Yüce * https://github.com/yigityuce/Leaflet.Control.Custom/blob/master/LICENSE * Leaflet-IIIF * The MIT License (MIT) * Copyright (c) 2014 Jack Reed * https://github.com/mejackreed/Leaflet-IIIF/blob/master/LICENSE.txt * manifesto * The MIT License (MIT) * https://github.com/IIIF-Commons/manifesto/blob/master/LICENSE.txt */ /* * IIIF Curation Viewer Embedded v2.0 * http://codh.rois.ac.jp/software/iiif-curation-viewer-embedded/ * * Copyright 2019 Center for Open Data in the Humanities, Research Organization of Information and Systems * Released under the MIT license * * Core contributor: Jun HOMMA (@2SC1815J) */ !function(){var e=window.L,n=(window.icveLeafletNoConflict=function(){var t=window.L;return window.L=e,t},window.jQuery),i=(window.icvejQueryNoConflict=function(){var t=window.jQuery;return window.jQuery=n,t},window.$);window.icveDollarNoConflict=function(){var t=window.$;return window.$=i,t}}(),function(t,e){"object"==typeof module&&module.exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){function f(t,e){var n,i=document.createElement(t||"div");for(n in e)i[n]=e[n];return i}function h(t){for(var e=1,n=arguments.length;e',e)}return n.defaults={},e(n.prototype,{spin:function(t){this.stop();var n,i,o,r,s,a,l,u=this,c=u.opts,h=u.el=f(null,{className:c.className});return p(h,{position:c.position,width:0,zIndex:c.zIndex,left:c.left,top:c.top}),t&&t.insertBefore(h,t.firstChild||null),h.setAttribute("role","progressbar"),u.lines(h,u.opts),m||(i=0,o=(c.lines-1)*(1-c.direction)/2,r=c.fps,s=r/c.speed,a=(1-c.opacity)/(s*c.trail/100),l=s/c.lines,function t(){i++;for(var e=0;e>1)+"px"})}for(var i,o,r,s,a,l,u=0,c=(n.lines-1)*(1-n.direction)/2;u>1,filter:n}),u("fill",{color:d(i.color,t),opacity:i.opacity}),u("stroke",{opacity:0}))))}var n,r=i.scale*(i.length+i.width),s=2*i.scale*r,a=-(i.width+i.length)*i.scale*2+"px",l=p(o(),{position:"absolute",top:a,left:a});if(i.shadow)for(n=1;n<=i.lines;n++)e(n,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(n=1;n<=i.lines;n++)e(n);return h(t,l)},n.prototype.opacity=function(t,e,n,i){t=t.firstChild;i=i.shadow&&i.lines||0,t&&e+i>10|55296,1023&i|56320)}function j(){w()}var t,d,x,r,U,m,B,z,b,l,u,w,E,e,L,g,i,o,v,T="sizzle"+ +new Date,_=R.document,P=0,F=0,H=ut(),V=ut(),y=ut(),G=function(t,e){return t===e&&(u=!0),0},W={}.hasOwnProperty,n=[],Z=n.pop,q=n.push,C=n.push,J=n.slice,S=function(t,e){for(var n=0,i=t.length;n+~]|"+s+")"+s+"*"),et=new RegExp("="+s+"*([^\\]'\"]*?)"+s+"*\\]","g"),nt=new RegExp(K),it=new RegExp("^"+a+"$"),f={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+K),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+s+"*(even|odd|(([+-]|)(\\d*)n|)"+s+"*(?:([+-]|)"+s+"*(\\d+)|))"+s+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+s+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+s+"*((?:-\\d)?\\d*)"+s+"*\\)|)(?=[^-]|$)","i")},ot=/^(?:input|select|textarea|button)$/i,rt=/^h\d$/i,c=/^[^{]+\{\s*\[native \w/,st=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,at=/[+~]/,lt=/'|\\/g,p=new RegExp("\\\\([\\da-f]{1,6}"+s+"?|("+s+")|.)","ig");try{C.apply(n=J.call(_.childNodes),_.childNodes),n[_.childNodes.length].nodeType}catch(t){C={apply:n.length?function(t,e){q.apply(t,J.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function I(t,e,n,i){var o,r,s,a,l,u,c,h,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:_)!==E&&w(e),e=e||E,L)){if(11!==p&&(u=st.exec(t)))if(o=u[1]){if(9===p){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(f&&(s=f.getElementById(o))&&v(e,s)&&s.id===o)return n.push(s),n}else{if(u[2])return C.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return C.apply(n,e.getElementsByClassName(o)),n}if(d.qsa&&!y[t+" "]&&(!g||!g.test(t))){if(1!==p)f=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(lt,"\\$&"):e.setAttribute("id",a=T),r=(c=m(t)).length,l=it.test(a)?"#"+a:"[id='"+a+"']";r--;)c[r]=l+" "+N(c[r]);h=c.join(","),f=at.test(t)&&ft(e.parentNode)||e}if(h)try{return C.apply(n,f.querySelectorAll(h)),n}catch(t){}finally{a===T&&e.removeAttribute("id")}}}return z(t.replace(A,"$1"),e,n,i)}function ut(){var n=[];function i(t,e){return n.push(t+" ")>x.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function O(t){return t[T]=!0,t}function M(t){var e=E.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ct(t,e){for(var n=t.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function D(s){return O(function(r){return r=+r,O(function(t,e){for(var n,i=s([],t.length,r),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in d=I.support={},U=I.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},w=I.setDocument=function(t){var t=t?t.ownerDocument||t:_;return t!==E&&9===t.nodeType&&t.documentElement&&(e=(E=t).documentElement,L=!U(E),(t=E.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",j,!1):t.attachEvent&&t.attachEvent("onunload",j)),d.attributes=M(function(t){return t.className="i",!t.getAttribute("className")}),d.getElementsByTagName=M(function(t){return t.appendChild(E.createComment("")),!t.getElementsByTagName("*").length}),d.getElementsByClassName=c.test(E.getElementsByClassName),d.getById=M(function(t){return e.appendChild(t).id=T,!E.getElementsByName||!E.getElementsByName(T).length}),d.getById?(x.find.ID=function(t,e){if(void 0!==e.getElementById&&L)return(e=e.getElementById(t))?[e]:[]},x.filter.ID=function(t){var e=t.replace(p,h);return function(t){return t.getAttribute("id")===e}}):(delete x.find.ID,x.filter.ID=function(t){var e=t.replace(p,h);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}}),x.find.TAG=d.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):d.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},x.find.CLASS=d.getElementsByClassName&&function(t,e){return void 0!==e.getElementsByClassName&&L?e.getElementsByClassName(t):void 0},i=[],g=[],(d.qsa=c.test(E.querySelectorAll))&&(M(function(t){e.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+s+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+s+"*(?:value|"+$+")"),t.querySelectorAll("[id~="+T+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]")}),M(function(t){var e=E.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+s+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(d.matchesSelector=c.test(o=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.msMatchesSelector))&&M(function(t){d.disconnectedMatch=o.call(t,"div"),o.call(t,"[s!='']:x"),i.push("!=",K)}),g=g.length&&new RegExp(g.join("|")),i=i.length&&new RegExp(i.join("|")),t=c.test(e.compareDocumentPosition),v=t||c.test(e.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},G=t?function(t,e){var n;return t===e?(u=!0,0):(n=!t.compareDocumentPosition-!e.compareDocumentPosition)||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!d.sortDetached&&e.compareDocumentPosition(t)===n?t===E||t.ownerDocument===_&&v(_,t)?-1:e===E||e.ownerDocument===_&&v(_,e)?1:l?S(l,t)-S(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t===E?-1:e===E?1:o?-1:r?1:l?S(l,t)-S(l,e):0;if(o===r)return ht(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ht(s[i],a[i]):s[i]===_?-1:a[i]===_?1:0}),E},I.matches=function(t,e){return I(t,null,null,e)},I.matchesSelector=function(t,e){if((t.ownerDocument||t)!==E&&w(t),e=e.replace(et,"='$1']"),d.matchesSelector&&L&&!y[e+" "]&&(!i||!i.test(e))&&(!g||!g.test(e)))try{var n=o.call(t,e);if(n||d.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(p,h),t[3]=(t[3]||t[4]||t[5]||"").replace(p,h),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||I.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&I.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return f.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&nt.test(n)&&(e=(e=m(n,!0))&&n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(p,h).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=H[t+" "];return e||(e=new RegExp("(^|"+s+")"+t+"("+s+"|$)"))&&H(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=I.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1(?:<\/\1>|)$/,X=/^.[^:#\[\.,]*$/;function K(t,n,i){if(w.isFunction(n))return w.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return w.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(X.test(n))return w.filter(n,t,i);n=w.filter(n,t)}return w.grep(t,function(t){return-1)[^>]*|#([\w-]*))$/,tt=((w.fn.init=function(t,e,n){if(t){if(n=n||Y,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):w.isFunction(t)?void 0!==n.ready?n.ready(t):t(w):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),w.makeArray(t,this));if(!(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:Q.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:d,!0)),$.test(i[1])&&w.isPlainObject(e))for(var i in e)w.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i])}else{if((n=d.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return Y.find(t);this.length=1,this[0]=n}this.context=d,this.selector=t}}return this}).prototype=w.fn,Y=w(d),/^(?:parents|prev(?:Until|All))/),et={children:!0,contents:!0,next:!0,prev:!0};function nt(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e,n=w(t,this),i=n.length;return this.filter(function(){for(e=0;e
a",g.leadingWhitespace=3===C.firstChild.nodeType,g.tbody=!C.getElementsByTagName("tbody").length,g.htmlSerialize=!!C.getElementsByTagName("link").length,g.html5Clone="<:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,D.type="checkbox",D.checked=!0,P.appendChild(D),g.appendChecked=D.checked,C.innerHTML="",g.noCloneChecked=!!C.cloneNode(!0).lastChild.defaultValue,P.appendChild(C),(D=d.createElement("input")).setAttribute("type","radio"),D.setAttribute("checked","checked"),D.setAttribute("name","t"),C.appendChild(D),g.checkClone=C.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!!C.addEventListener,C[w.expando]=1,g.attributes=!C.getAttribute(w.expando);var _={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:g.htmlSerialize?[0,"",""]:[1,"X
","
"]};function y(t,e){var n,i,o=0,r=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!r)for(r=[],n=t.childNodes||t;null!=(i=n[o]);o++)!e||w.nodeName(i,e)?r.push(i):w.merge(r,y(i,e));return void 0===e||e&&w.nodeName(t,e)?w.merge([t],r):r}function bt(t,e){for(var n,i=0;null!=(n=t[i]);i++)w._data(n,"globalEval",!e||w._data(e[i],"globalEval"))}_.optgroup=_.option,_.tbody=_.tfoot=_.colgroup=_.caption=_.thead,_.th=_.td;var wt=/<|&#?\w+;/,Et=/"!==h[1]||Et.test(s)?0:l:l.firstChild)&&s.childNodes.length;r--;)w.nodeName(c=s.childNodes[r],"tbody")&&!c.childNodes.length&&s.removeChild(c);for(w.merge(d,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=p.lastChild}else d.push(e.createTextNode(s));for(l&&p.removeChild(l),g.appendChecked||w.grep(y(d,"input"),Lt),m=0;s=d[m++];)if(i&&-1]","i"),Bt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,zt=/\s*$/g,Gt=xt(d).appendChild(d.createElement("div"));function Wt(t,e){return w.nodeName(t,"table")&&w.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function Zt(t){return t.type=(null!==w.find.attr(t,"type"))+"/"+t.type,t}function qt(t){var e=Ht.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Jt(t,e){if(1===e.nodeType&&w.hasData(t)){var n,i,o,t=w._data(t),r=w._data(e,t),s=t.events;if(s)for(n in delete r.handle,r.events={},s)for(i=0,o=s[n].length;i")},clone:function(t,e,n){var i,o,r,s,a,l,u,c,h=w.contains(t.ownerDocument,t);if(g.html5Clone||w.isXMLDoc(t)||!Ut.test("<"+t.nodeName+">")?r=t.cloneNode(!0):(Gt.innerHTML=t.outerHTML,Gt.removeChild(r=Gt.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(i=y(r),a=y(t),s=0;null!=(o=a[s]);++s)if(i[s]){f=void 0;p=void 0;l=void 0;u=void 0;c=void 0;var f=o;var p=i[s];if(1===p.nodeType){if(l=p.nodeName.toLowerCase(),!g.noCloneEvent&&p[w.expando]){for(u in(c=w._data(p)).events)w.removeEvent(p,u,c.handle);p.removeAttribute(w.expando)}"script"===l&&p.text!==f.text?(Zt(p).text=f.text,qt(p)):"object"===l?(p.parentNode&&(p.outerHTML=f.outerHTML),g.html5Clone&&f.innerHTML&&!w.trim(p.innerHTML)&&(p.innerHTML=f.innerHTML)):"input"===l&&mt.test(f.type)?(p.defaultChecked=p.checked=f.checked,p.value!==f.value&&(p.value=f.value)):"option"===l?p.defaultSelected=p.selected=f.defaultSelected:"input"!==l&&"textarea"!==l||(p.defaultValue=f.defaultValue)}}if(e)if(n)for(a=a||y(t),i=i||y(r),s=0;null!=(o=a[s]);s++)Jt(o,i[s]);else Jt(t,r);return 0<(i=y(r,"script")).length&&bt(i,!h&&y(t,"script")),i=a=o=null,r},cleanData:function(t,e){for(var n,i,o,r,s=0,a=w.expando,l=w.cache,u=g.attributes,c=w.event.special;null!=(n=t[s]);s++)if((e||v(n))&&(r=(o=n[a])&&l[o])){if(r.events)for(i in r.events)c[i]?w.event.remove(n,i):w.removeEvent(n,i,r.handle);l[o]&&(delete l[o],u||void 0===n.removeAttribute?n[a]=void 0:n.removeAttribute(a),h.push(o))}}}),w.fn.extend({domManip:x,detach:function(t){return $t(this,t,!0)},remove:function(t){return $t(this,t)},text:function(t){return f(this,function(t){return void 0===t?w.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(t))},null,t,arguments.length)},append:function(){return x(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Wt(this,t).appendChild(t)})},prepend:function(){return x(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Wt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return x(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&w.cleanData(y(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&w.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return f(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(jt,""):void 0;if("string"==typeof t&&!zt.test(t)&&(g.htmlSerialize||!Ut.test(t))&&(g.leadingWhitespace||!_t.test(t))&&!_[(gt.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;n")).appendTo(e.documentElement))[0].contentWindow||Xt[0].contentDocument).document).write(),e.close(),n=Yt(t,e),Xt.detach()),Kt[t]=n),n}function te(t,e,n,i){var o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in n=n.apply(t,i||[]),e)t.style[o]=r[o];return n}var n,ee,ne,ie,oe,re,se,r,ae=/^margin/,le=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),ue=d.documentElement;function s(){var t,e=d.documentElement;e.appendChild(se),r.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=ne=re=!1,ee=oe=!0,b.getComputedStyle&&(t=b.getComputedStyle(r),n="1%"!==(t||{}).top,re="2px"===(t||{}).marginLeft,ne="4px"===(t||{width:"4px"}).width,r.style.marginRight="50%",ee="4px"===(t||{marginRight:"4px"}).marginRight,(t=r.appendChild(d.createElement("div"))).style.cssText=r.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",r.style.width="1px",oe=!parseFloat((b.getComputedStyle(t)||{}).marginRight),r.removeChild(t)),r.style.display="none",(ie=0===r.getClientRects().length)&&(r.style.display="",r.innerHTML="
t
",r.childNodes[0].style.borderCollapse="separate",(t=r.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",ie=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",ie=0===t[0].offsetHeight),e.removeChild(se)}se=d.createElement("div"),(r=d.createElement("div")).style&&(r.style.cssText="float:left;opacity:.5",g.opacity="0.5"===r.style.opacity,g.cssFloat=!!r.style.cssFloat,r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===r.style.backgroundClip,(se=d.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.innerHTML="",se.appendChild(r),g.boxSizing=""===r.style.boxSizing||""===r.style.MozBoxSizing||""===r.style.WebkitBoxSizing,w.extend(g,{reliableHiddenOffsets:function(){return null==n&&s(),ie},boxSizingReliable:function(){return null==n&&s(),ne},pixelMarginRight:function(){return null==n&&s(),ee},pixelPosition:function(){return null==n&&s(),n},reliableMarginRight:function(){return null==n&&s(),oe},reliableMarginLeft:function(){return null==n&&s(),re}}));var u,p,ce=/^(top|right|bottom|left)$/;function he(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}b.getComputedStyle?(u=function(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:b).getComputedStyle(t)},p=function(t,e,n){var i,o,r=t.style;return""!==(o=(n=n||u(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==o||w.contains(t.ownerDocument,t)||(o=w.style(t,e)),n&&!g.pixelMarginRight()&&le.test(o)&&ae.test(e)&&(t=r.width,e=r.minWidth,i=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=t,r.minWidth=e,r.maxWidth=i),void 0===o?o:o+""}):ue.currentStyle&&(u=function(t){return t.currentStyle},p=function(t,e,n){var i,o,r,s=t.style;return null==(n=(n=n||u(t))?n[e]:void 0)&&s&&s[e]&&(n=s[e]),le.test(n)&&!ce.test(e)&&(i=s.left,(r=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),s.left="fontSize"===e?"1em":n,n=s.pixelLeft+"px",s.left=i,r)&&(o.left=r),void 0===n?n:n+""||"auto"});var fe=/alpha\([^)]*\)/i,pe=/opacity\s*=\s*([^)]*)/i,de=/^(none|table(?!-c[ea]).+)/,me=new RegExp("^("+t+")(.*)$","i"),ge={position:"absolute",visibility:"hidden",display:"block"},ve={letterSpacing:"0",fontWeight:"400"},_e=["Webkit","O","Moz","ms"],ye=d.createElement("div").style;function xe(t){if(t in ye)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=_e.length;n--;)if((t=_e[n]+e)in ye)return t}function be(t,e){for(var n,i,o,r=[],s=0,a=t.length;s
a",k=D.getElementsByTagName("a")[0],P.setAttribute("type","checkbox"),D.appendChild(P),(k=D.getElementsByTagName("a")[0]).style.cssText="top:1px",g.getSetAttribute="t"!==D.className,g.style=/top/.test(k.getAttribute("style")),g.hrefNormalized="/a"===k.getAttribute("href"),g.checkOn=!!P.value,g.optSelected=t.selected,g.enctype=!!d.createElement("form").enctype,C.disabled=!0,g.optDisabled=!t.disabled,(P=d.createElement("input")).setAttribute("value",""),g.input=""===P.getAttribute("value"),P.value="t",P.setAttribute("type","radio"),g.radioValue="t"===P.value;var Oe=/\r/g,Me=/[\x20\t\r\n\f]+/g;w.fn.extend({val:function(e){var n,t,i,o=this[0];return arguments.length?(i=w.isFunction(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,w(this).val()):e)?t="":"number"==typeof t?t+="":w.isArray(t)&&(t=w.map(t,function(t){return null==t?"":t+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):o?(n=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(Oe,""):null==t?"":t:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:w.trim(w.text(t)).replace(Me," ")}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,r=o?null:[],s=o?i+1:n.length,a=i<0?s:o?i:0;a").append(w.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this)},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}),w.expr.filters.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(t,e,n){var i,o,r,s,a=w.css(t,"position"),l=w(t),u={};"static"===a&&(t.style.position="relative"),r=l.offset(),i=w.css(t,"top"),s=w.css(t,"left"),a=("absolute"===a||"fixed"===a)&&-1=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=p.bounds(t);var e=this.min,n=this.max,i=t.min,t=t.max,o=t.x>=e.x&&i.x<=n.x,e=e.y<=t.y&&i.y<=n.y;return o&&e},isValid:function(){return!(!this.min||!this.max)}},p.bounds=function(t,e){return!t||t instanceof p.Bounds?t:new p.Bounds(t,e)},p.Transformation=function(t,e,n,i){this._a=t,this._b=e,this._c=n,this._d=i},p.Transformation.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return t.x=(e=e||1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return new p.Point((t.x/(e=e||1)-this._b)/this._a,(t.y/e-this._d)/this._c)}},p.DomUtil={get:function(t){return"string"==typeof t?f.getElementById(t):t},getStyle:function(t,e){var n=t.style[e];return"auto"===(n=(n=!n&&t.currentStyle?t.currentStyle[e]:n)&&"auto"!==n||!f.defaultView?n:(t=f.defaultView.getComputedStyle(t,null))?t[e]:null)?null:n},getViewportOffset:function(t){var e=0,n=0,i=t,o=f.body,r=f.documentElement;do{if(e+=i.offsetTop||0,n+=i.offsetLeft||0,e+=parseInt(p.DomUtil.getStyle(i,"borderTopWidth"),10)||0,n+=parseInt(p.DomUtil.getStyle(i,"borderLeftWidth"),10)||0,s=p.DomUtil.getStyle(i,"position"),i.offsetParent===o&&"absolute"===s)break;if("fixed"===s){e+=o.scrollTop||r.scrollTop||0,n+=o.scrollLeft||r.scrollLeft||0;break}if("relative"===s&&!i.offsetLeft){var s=p.DomUtil.getStyle(i,"width"),a=p.DomUtil.getStyle(i,"max-width"),l=i.getBoundingClientRect();"none"===s&&"none"===a||(n+=l.left+i.clientLeft),e+=l.top+(o.scrollTop||r.scrollTop||0);break}}while(i=i.offsetParent);for(i=t;i!==o&&(e-=i.scrollTop||0,n-=i.scrollLeft||0,i=i.parentNode););return new p.Point(n,e)},documentIsLtr:function(){return p.DomUtil._docIsLtrCached||(p.DomUtil._docIsLtrCached=!0,p.DomUtil._docIsLtr="ltr"===p.DomUtil.getStyle(f.body,"direction")),p.DomUtil._docIsLtr},create:function(t,e,n){t=f.createElement(t);return t.className=e,n&&n.appendChild(t),t},hasClass:function(t,e){return t.classList!==s?t.classList.contains(e):0<(t=p.DomUtil._getClass(t)).length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t)},addClass:function(t,e){var n;if(t.classList!==s)for(var i=p.Util.splitWords(e),o=0,r=i.length;o=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=p.latLngBounds(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>=e.lat&&i.lat<=n.lat,t=t.lng>=e.lng&&i.lng<=n.lng;return o&&t},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return!!t&&(t=p.latLngBounds(t),this._southWest.equals(t.getSouthWest()))&&this._northEast.equals(t.getNorthEast())},isValid:function(){return!(!this._southWest||!this._northEast)}},p.latLngBounds=function(t,e){return!t||t instanceof p.LatLngBounds?t:new p.LatLngBounds(t,e)},p.Projection={},p.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=p.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,n=Math.max(Math.min(n,t.lat),-n),t=t.lng*e,n=n*e,n=Math.log(Math.tan(Math.PI/4+n/2));return new p.Point(t,n)},unproject:function(t){var e=p.LatLng.RAD_TO_DEG,n=t.x*e,t=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e;return new p.LatLng(t,n)}},p.Projection.LonLat={project:function(t){return new p.Point(t.lng,t.lat)},unproject:function(t){return new p.LatLng(t.y,t.x)}},p.CRS={latLngToPoint:function(t,e){t=this.projection.project(t),e=this.scale(e);return this.transformation._transform(t,e)},pointToLatLng:function(t,e){e=this.scale(e),t=this.transformation.untransform(t,e);return this.projection.unproject(t)},project:function(t){return this.projection.project(t)},scale:function(t){return 256*Math.pow(2,t)},getSize:function(t){t=this.scale(t);return p.point(t,t)}},p.CRS.Simple=p.extend({},p.CRS,{projection:p.Projection.LonLat,transformation:new p.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),p.CRS.EPSG3857=p.extend({},p.CRS,{code:"EPSG:3857",projection:p.Projection.SphericalMercator,transformation:new p.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){return this.projection.project(t).multiplyBy(6378137)}}),p.CRS.EPSG900913=p.extend({},p.CRS.EPSG3857,{code:"EPSG:900913"}),p.CRS.EPSG4326=p.extend({},p.CRS,{code:"EPSG:4326",projection:p.Projection.LonLat,transformation:new p.Transformation(1/360,.5,-1/360,.5)}),p.Map=p.Class.extend({includes:p.Mixin.Events,options:{crs:p.CRS.EPSG3857,fadeAnimation:p.DomUtil.TRANSITION&&!p.Browser.android23,trackResize:!0,markerZoomAnimation:p.DomUtil.TRANSITION&&p.Browser.any3d},initialize:function(t,e){e=p.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=p.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==s&&this.setView(p.latLng(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(e.layers)},setView:function(t,e){return e=e===s?this.getZoom():e,this._resetView(p.latLng(t),this._limitZoom(e)),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=this._limitZoom(t),this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t||1),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t||1),e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),t=(t instanceof p.Point?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),i=this.containerPointToLatLng(o.add(t));return this.setView(i,e,{zoom:n})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():p.latLngBounds(t);var n=p.point(e.paddingTopLeft||e.padding||[0,0]),i=p.point(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i)),o=e.maxZoom?Math.min(e.maxZoom,o):o,i=i.subtract(n).divideBy(2),n=this.project(t.getSouthWest(),o),t=this.project(t.getNorthEast(),o),n=this.unproject(n.add(t).divideBy(2).add(i),o);return this.setView(n,o,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t){return this.fire("movestart"),this._rawPanBy(p.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t){return t=p.latLngBounds(t),(this.options.maxBounds=t)?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(t,e){var n=this.getCenter(),t=this._limitCenter(n,this._zoom,t);return n.equals(t)?this:this.panTo(t,e)},addLayer:function(t){var e=p.stamp(t);return this._layers[e]||(!(this._layers[e]=t).options||isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[e]=t,this._updateZoomLevels()),this.options.zoomAnimation&&p.TileLayer&&t instanceof p.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(t)),this},removeLayer:function(t){var e=p.stamp(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&this.fire("layerremove",{layer:t}),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels()),this.options.zoomAnimation)&&p.TileLayer&&t instanceof p.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this)),this},hasLayer:function(t){return!!t&&p.stamp(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},invalidateSize:function(t){if(!this._loaded)return this;t=p.extend({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize(),n=(this._sizeChanged=!0,this._initialCenter=null,this.getSize()),i=e.divideBy(2).round(),o=n.divideBy(2).round(),i=i.subtract(o);return i.x||i.y?(t.animate&&t.pan?this.panBy(i):(t.pan&&this._rawPanBy(i),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(p.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},addHandler:function(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t])&&e.enable(),this},remove:function(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(t){this._container._leaflet=s}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),t=this.unproject(t.getTopRight());return new p.LatLngBounds(e,t)},getMinZoom:function(){return this.options.minZoom===s?this._layersMinZoom===s?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===s?this._layersMaxZoom===s?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=p.latLngBounds(t);var i,o=this.getMinZoom()-(e?1:0),r=this.getMaxZoom(),s=this.getSize(),a=t.getNorthWest(),l=t.getSouthEast(),u=!0;for(n=p.point(n||[0,0]);i=this.project(l,++o).subtract(this.project(a,o)).add(n),(u=e?i.xthis.options.maxZoom||n=n.x)||t.y<0||t.y>=n.y)return!1}if(e.bounds){n=this._getTileSize(),t=t.multiplyBy(n),n=t.add([n,n]),t=this._map.unproject(t),n=this._map.unproject(n);if(e.continuousWorld||e.noWrap||(t=t.wrap(),n=n.wrap()),!e.bounds.intersects([t,n]))return!1}return!0},_removeOtherTiles:function(t){var e,n,i;for(i in this._tiles)n=i.split(":"),e=parseInt(n[0],10),n=parseInt(n[1],10),(et.max.x||nt.max.y)&&this._removeTile(i)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(p.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),p.Browser.android||(e.onload=null,e.src=p.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var n=this._getTilePos(t),i=this._getTile();p.DomUtil.setPosition(i,n,p.Browser.chrome),this._tiles[t.x+":"+t.y]=i,this._loadTile(i,t),i.parentNode!==this._tileContainer&&e.appendChild(i)},_getZoomForUrl:function(){var t=this.options,e=this._map.getZoom();return t.zoomReverse&&(e=t.maxZoom-e),e+=t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e},_getTilePos:function(t){var e=this._map.getPixelOrigin(),n=this._getTileSize();return t.multiplyBy(n).subtract(e)},getTileUrl:function(t){return p.Util.template(this._url,p.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){return this._map.options.crs.getSize(this._map.getZoom()).divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(t){var e=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(t.x=(t.x%e.x+e.x)%e.x),this.options.tms&&(t.y=e.y-t.y-1),t.z=this._getZoomForUrl()},_getSubdomain:function(t){t=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[t]},_getTile:function(){var t;return this.options.reuseTiles&&0r.x&&(s=n.x+a-r.x+o.x),n.x-s-i.x<(a=0)&&(s=n.x-i.x),n.y+e+o.y>r.y&&(a=n.y+e-r.y+o.y),n.y-a-i.y<0&&(a=n.y-i.y),s||a)&&t.fire("autopanstart").panBy([s,a])},_onCloseButtonClick:function(t){this._close(),p.DomEvent.stop(t)}}),p.popup=function(t,e){return new p.Popup(t,e)},p.Map.include({openPopup:function(t,e,n){var i;return this.closePopup(),t instanceof p.Popup||(i=t,t=new p.Popup(n).setLatLng(e).setContent(i)),t._isOpen=!0,this._popup=t,this.addLayer(t)},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&(this.removeLayer(t),t._isOpen=!1),this}}),p.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(t,e){var n=(n=p.point(this.options.icon.options.popupAnchor||[0,0])).add(p.Popup.prototype.options.offset);return e&&e.offset&&(n=n.add(e.offset)),e=p.extend({offset:n},e),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),t instanceof p.Popup?(p.setOptions(t,e),(this._popup=t)._source=this):this._popup=new p.Popup(e,this).setContent(t),this},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(t){this._popup.setLatLng(t.latlng)}}),p.LayerGroup=p.Class.extend({initialize:function(t){var e,n;if(this._layers={},t)for(e=0,n=t.length;e',t.firstChild);return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),p.Path=p.Browser.svg||!p.Browser.vml?p.Path:p.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return f.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return f.createElement("')}}catch(t){return function(t){return f.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");p.DomUtil.addClass(t,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&p.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize="1 1",this._path=this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,e=this._fill,n=this.options,i=this._container;i.stroked=n.stroke,i.filled=n.fill,n.stroke?(t||((t=this._stroke=this._createElement("stroke")).endcap="round",i.appendChild(t)),t.weight=n.weight+"px",t.color=n.color,t.opacity=n.opacity,n.dashArray?t.dashStyle=p.Util.isArray(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):t.dashStyle="",n.lineCap&&(t.endcap=n.lineCap.replace("butt","flat")),n.lineJoin&&(t.joinstyle=n.lineJoin)):t&&(i.removeChild(t),this._stroke=null),n.fill?(e||(e=this._fill=this._createElement("fill"),i.appendChild(e)),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(i.removeChild(e),this._fill=null)},_updatePath:function(){var t=this._container.style;t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),p.Map.include(p.Browser.svg||!p.Browser.vml?{}:{_initPathRoot:function(){var t;this._pathRoot||((t=this._pathRoot=f.createElement("div")).className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport())}}),p.Browser.canvas=!!f.createElement("canvas").getContext,p.Path=p.Path.SVG&&!o.L_PREFER_CANVAS||!p.Browser.canvas?p.Path:p.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return p.setOptions(this,t),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this.fire("remove"),this._map=null},_requestUpdate:function(){this._map&&!p.Path._updateRequest&&(p.Path._updateRequest=p.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){p.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var t=this.options;t.stroke&&(this._ctx.lineWidth=t.weight,this._ctx.strokeStyle=t.color),t.fill&&(this._ctx.fillStyle=t.fillColor||t.color),t.lineCap&&(this._ctx.lineCap=t.lineCap),t.lineJoin&&(this._ctx.lineJoin=t.lineJoin)},_drawPath:function(){var t,e,n,i,o;for(this._ctx.beginPath(),t=0,n=this._parts.length;te&&(n.push(t[i]),o=i);return oe.max.x&&(n|=2),t.ye.max.y&&(n|=8),n},_sqDist:function(t,e){var n=e.x-t.x,e=e.y-t.y;return n*n+e*e},_sqClosestPointOnSegment:function(t,e,n,i){var o=e.x,e=e.y,r=n.x-o,s=n.y-e,a=r*r+s*s;return 0t.max.x||n.y-e>t.max.y||n.x+et.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u}}:{}),p.Circle.include(p.Path.CANVAS?{_drawPath:function(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(t){var e=this._point,n=this.options.stroke?this.options.weight/2:0;return t.distanceTo(e)<=this._radius+n}}:{}),p.CircleMarker.include(p.Path.CANVAS?{_updateStyle:function(){p.Path.prototype._updateStyle.call(this)}}:{}),p.GeoJSON=p.FeatureGroup.extend({initialize:function(t,e){p.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=p.Util.isArray(t)?t:t.features;if(o){for(e=0,n=o.length;er.inertiaThreshold||!this._positions[0];o.fire("dragend",t),!a&&(t=this._lastPos.subtract(this._positions[0]),a=(this._lastTime+s-this._times[0])/1e3,e=r.easeLinearity,t=(s=t.multiplyBy(e/a)).distanceTo([0,0]),a=Math.min(r.inertiaMaxSpeed,t),s=s.multiplyBy(a/t),n=a/(r.inertiaDeceleration*e),(i=s.multiplyBy(-n/2).round()).x)&&i.y?(i=o._limitOffset(i,o.options.maxBounds),p.Util.requestAnimFrame(function(){o.panBy(i,{duration:n,easeLinearity:e,noMoveStart:!0})})):o.fire("moveend")}}),p.Map.addInitHook("addHandler","dragging",p.Map.Drag),p.Map.mergeOptions({doubleClickZoom:!0}),p.Map.DoubleClickZoom=p.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom()+(t.originalEvent.shiftKey?-1:1);"center"===e.options.doubleClickZoom?e.setZoom(n):e.setZoomAround(t.containerPoint,n)}}),p.Map.addInitHook("addHandler","doubleClickZoom",p.Map.DoubleClickZoom),p.Map.mergeOptions({scrollWheelZoom:!0}),p.Map.ScrollWheelZoom=p.Handler.extend({addHooks:function(){p.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),p.DomEvent.on(this._map._container,"MozMousePixelScroll",p.DomEvent.preventDefault),this._delta=0},removeHooks:function(){p.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),p.DomEvent.off(this._map._container,"MozMousePixelScroll",p.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=p.DomEvent.getWheelDelta(t),e=(this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),Math.max(40-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(p.bind(this._performZoom,this),e),p.DomEvent.preventDefault(t),p.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,n=t.getZoom(),e=0Leaflet'},initialize:function(t){p.setOptions(this,t),this._attributions={}},onAdd:function(t){for(var e in this._container=p.DomUtil.create("div","leaflet-control-attribution"),p.DomEvent.disableClickPropagation(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):void 0},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):void 0},_update:function(){if(this._map){var t,e=[];for(t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(" | ")}},_onLayerAdd:function(t){t.layer.getAttribution&&this.addAttribution(t.layer.getAttribution())},_onLayerRemove:function(t){t.layer.getAttribution&&this.removeAttribution(t.layer.getAttribution())}}),p.Map.mergeOptions({attributionControl:!0}),p.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new p.Control.Attribution).addTo(this))}),p.control.attribution=function(t){return new p.Control.Attribution(t)},p.Control.Scale=p.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(t){this._map=t;var e="leaflet-control-scale",n=p.DomUtil.create("div",e),i=this.options;return this._addScales(i,e,n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=p.DomUtil.create("div",e+"-line",n)),t.imperial&&(this._iScale=p.DomUtil.create("div",e+"-line",n))},_update:function(){var t=this._map.getBounds(),e=t.getCenter().lat,e=6378137*Math.PI*Math.cos(e*Math.PI/180)*(t.getNorthEast().lng-t.getSouthWest().lng)/180,t=this._map.getSize(),n=this.options,i=0;0this.options.zoomAnimationThreshold||(i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i),r=this._getCenterLayerPoint()._add(o),!0!==n.animate&&!this.getSize().contains(o))||(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,r,i,null,!0),0)))},_animateZoom:function(t,e,n,i,o,r,s){s||(this._animatingZoom=!0),p.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,p.Draggable&&(p.Draggable._disabled=!0),p.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:t,zoom:e,origin:n,scale:i,delta:o,backwards:r}),setTimeout(p.bind(this._onZoomTransitionEnd,this),250)},this)},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._animatingZoom=!1,p.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),p.Util.requestAnimFrame(function(){this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),p.Draggable&&(p.Draggable._disabled=!1)},this))}}:{}),p.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,n=p.DomUtil.TRANSFORM,i=t.delta?p.DomUtil.getTranslateString(t.delta):e.style[n],o=p.DomUtil.getScaleString(t.scale,t.origin);e.style[n]=t.backwards?o+" "+i:i+" "+o},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer,t=(t.style.visibility="",t.parentNode.appendChild(t),p.Util.falseFn(e.offsetWidth),this._map.getZoom());(t>this.options.maxZoom||te.x||t.y>e.y);i++)t=t.divideBy(2),r._imageSizes.unshift(t),n=-i;r.options.minZoom=n,r.options.minNativeZoom=n,r._prev_map_layersMinZoom=r._map._layersMinZoom,r._map._layersMinZoom=n,r.options.fitBounds&&r._fitBounds(),r.options.setMaxBounds&&r._setMaxBounds(),r.on("tileload",function(t,e){var n=t.tile.naturalHeight,i=t.tile.naturalWidth;256===n&&256===i||(t.tile.style.width=i+"px",t.tile.style.height=n+"px")})}).fail(function(){r.fire("tileerror",{tile:r,url:r._infoUrl})})},onRemove:function(t){t._layersMinZoom=this._prev_map_layersMinZoom,this._imageSizes=this._imageSizesOriginal,this.options.setMaxBounds&&t.setMaxBounds(null),dt.TileLayer.prototype.onRemove.call(this,t)},_fitBounds:function(){var t=this._getInitialZoom(this._map.getSize()),e=this._imageSizes.length-1-this.options.maxNativeZoom,e=this._imageSizes[t+e],n=this._map.options.crs.pointToLatLng(dt.point(0,e.y),t),e=this._map.options.crs.pointToLatLng(dt.point(e.x,0),t),t=dt.latLngBounds(n,e);this._map.fitBounds(t,!0)},_setMaxBounds:function(){var t=this._getInitialZoom(this._map.getSize()),e=this._imageSizes[t],n=this._map.options.crs.pointToLatLng(dt.point(0,e.y),t),e=this._map.options.crs.pointToLatLng(dt.point(e.x,0),t),t=dt.latLngBounds(n,e);this._map.setMaxBounds(t,!0)},_getInfo:function(){var u=this;mt.getJSON(u._infoUrl).done(function(t){u._info=t,u.y=t.height,u.x=t.width;var e,n,i,o,r=[],s=[];function a(t){return Math.ceil(Math.log(t)/Math.LN2)}t.profile instanceof Array?u.profile=t.profile[0]:u.profile=t.profile,u.type=t.type,u._setQuality(),-1u.maxNativeZoom?u.maxZoom=u.options.maxZoom:u.maxZoom=u.maxNativeZoom;for(var l=0;l<=u.maxZoom;l++)n=Math.pow(2,u.maxNativeZoom-l),e=Math.ceil(u.x/n),n=Math.ceil(u.y/n),i=Math.ceil(e/u.options.tileSize),o=Math.ceil(n/u.options.tileSize),r.push([i,o]),s.push(dt.point(e,n));u._tierSizes=r,u._imageSizes=s,u._infoDeferred.resolve()}).fail(function(){u._infoDeferred.reject()})},_setQuality:function(){var t=this.profile;this._explicitQuality||("object"==typeof t&&(t=t["@id"]),!0===/^http:\/\/library.stanford.edu\/iiif\/image-api\/1.1\/compliance.html.*$/.test(t)?this.options.quality="native":this.options.quality="default")},_infoToBaseUrl:function(){return this._infoUrl.replace("info.json","")},_templateUrl:function(){return this._infoToBaseUrl()+"{region}/{size}/{rotation}/{quality}.{format}"},_isValidTile:function(t){var e=this._getZoomForUrl(),n=this._tierSizes[e],i=t.x,t=t.y;return e<0&&0<=i&&0<=t||!!n&&!(i<0||n[0]<=i||t<0||n[1]<=t)},_tileShouldBeLoaded:function(t){return this._isValidTile(t)},_getInitialZoom:function(t){for(var e,n=this._imageSizes.length-1-this.options.maxNativeZoom,i=this._imageSizes.length-1;0<=i;i--)if(.8*(e=this._imageSizes[i]).x>>0||(h(c,t)?16:10))}:l},9538:function(t,e,n){var f=n(9447),i=n(1907),p=n(3930),o=n(8828),d=n(2875),m=n(7170),g=n(2574),v=n(9298),_=n(6946),r=Object.assign,s=Object.defineProperty,y=i([].concat);t.exports=!r||o(function(){var t,e,n,i;return!(!f||1===r({b:1},r(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(e={},i="abcdefghijklmnopqrst",(t={})[n=Symbol("assign detection")]=7,i.split("").forEach(function(t){e[t]=t}),7!==r({},t)[n])||d(r({},e)).join("")!==i})?function(t,e){for(var n=v(t),i=arguments.length,o=1,r=m.f,s=g.f;o"+t+""},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;g="undefined"==typeof document||document.domain&&r?o(r):(e=h("iframe"),n="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F);for(var i=l.length;i--;)delete g[f][l[i]];return g()};u[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(i[f]=s(t),n=new i,i[f]=null,n[d]=t):n=g(),void 0===e?n:a.f(n,e)}},2220:function(t,e,n){var i=n(9447),o=n(8661),a=n(4284),l=n(6624),u=n(7374),c=n(2875);e.f=i&&!o?Object.defineProperties:function(t,e){l(t);for(var n,i=u(e),o=c(e),r=o.length,s=0;so;)!s(i,n=e[o++])||~l(r,n)||c(r,n);return r}},2875:function(t,e,n){var i=n(3045),o=n(376);t.exports=Object.keys||function(t){return i(t,o)}},2574:function(t,e){var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){t=i(this,t);return!!t&&t.enumerable}:n},9192:function(t,e,n){var o=n(1871),r=n(6285),s=n(4239),a=n(43);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,i=!1,t={};try{(n=o(Object.prototype,"__proto__","set"))(t,[]),i=t instanceof Array}catch(n){}return function(t,e){return s(t),a(e),r(t)&&(i?n(t,e):t.__proto__=e),t}}():void 0)},4298:function(t,e,n){function i(l){return function(t){for(var e,n=f(t),i=h(n),o=m&&null===c(n),r=i.length,s=0,a=[];sn.size?l(n.getIterator(),function(t){h(e,t)&&c(i,t)}):a(e,function(t){n.includes(t)&&c(i,t)}),i}},1732:function(t,e,n){var o=n(2911),r=n(3881).has,s=n(5743),a=n(2332),l=n(1330),u=n(2190),c=n(154);t.exports=function(t){var e,n=o(this),i=a(t);return s(n)<=i.size?!1!==l(n,function(t){if(i.includes(t))return!1},!0):(e=i.getIterator(),!1!==u(e,function(t){if(r(n,t))return c(e,"normal",!1)}))}},7491:function(t,e,n){var i=n(2911),o=n(5743),r=n(1330),s=n(2332);t.exports=function(t){var e=i(this),n=s(t);return!(o(e)>n.size)&&!1!==r(e,function(t){if(!n.includes(t))return!1},!0)}},4002:function(t,e,n){var i=n(2911),o=n(3881).has,r=n(5743),s=n(2332),a=n(2190),l=n(154);t.exports=function(t){var e,n=i(this),t=s(t);return!(r(n)=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(n,!1);case"values":return u(e[n],!1)}return u([n,e[n]],!1)},"values"),r.Arguments=r.Array);if(o("keys"),o("values"),o("entries"),!c&&n&&"values"!==s.name)try{a(s,"name",{value:"values"})}catch(t){}},6687:function(t,e,n){var i=n(1091),o=n(726).map;i({target:"Array",proto:!0,forced:!n(7171)("map")},{map:function(t){return o(this,t,1=e.length?a(void 0,!0):(e=i(e,n),t.index+=e.length,a(e,!1))})},727:function(t,e,n){var i=n(1091),o=n(5993).trim;i({target:"String",proto:!0,forced:n(5819)("trim")},{trim:function(){return o(this)}})},3997:function(t,e,n){n(366)("asyncIterator")},3674:function(R,j,t){function r(t,e,n){var i=at(A,e);i&&delete A[e],O(t,e,n),i&&t!==A&&O(A,e,i)}function e(t,e){var n=M[t]=x(I);return it(n,{type:S,tag:t,description:e}),p||(n.description=e),n}function i(t,e,n){return t===A&&i(D,e,n),g(t),e=_(e),g(n),(m(M,e)?(n.enumerable?(m(t,C)&&t[C][e]&&(t[C][e]=!1),n=x(n,{enumerable:y(0,!1)})):(m(t,C)||O(t,C,y(1,x(null))),t[C][e]=!0),k):O)(t,e,n)}function n(e,t){g(e);var n=v(t),t=b(n).concat(l(n));return P(t,function(t){p&&!h(o,n,t)||i(e,t,n[t])}),e}function o(t){var t=_(t),e=h(ut,this,t);return!(this===A&&m(M,t)&&!m(D,t))&&(!(e||!m(this,t)||!m(M,t)||m(this,C)&&this[C][t])||e)}function s(t,e){var n,t=v(t),e=_(e);if(t!==A||!m(M,e)||m(D,e))return!(n=at(t,e))||!m(M,e)||m(t,C)&&t[C][e]||(n.enumerable=!0),n}function a(t){var t=lt(v(t)),e=[];return P(t,function(t){m(M,t)||m(X,t)||ct(e,t)}),e}function l(t){var e=t===A,t=lt(e?D:v(t)),n=[];return P(t,function(t){!m(M,t)||e&&!m(A,t)||ct(n,M[t])}),n}var u=t(1091),c=t(5951),h=t(3930),f=t(1907),U=t(7376),p=t(9447),d=t(9846),B=t(8828),m=t(9724),z=t(8280),g=t(6624),v=t(7374),_=t(470),F=t(160),y=t(5817),x=t(8075),b=t(2875),H=t(4443),V=t(5407),G=t(7170),W=t(3846),Z=t(4284),q=t(2220),J=t(2574),w=t(8055),$=t(9251),E=t(5816),L=t(2522),X=t(8530),K=t(6499),Y=t(6264),Q=t(560),tt=t(366),et=t(3467),nt=t(4840),T=t(4932),P=t(726).forEach,C=L("hidden"),S="Symbol",t="prototype",it=T.set,ot=T.getterFor(S),A=Object[t],L=c.Symbol,I=L&&L[t],rt=c.RangeError,st=c.TypeError,T=c.QObject,at=W.f,O=Z.f,lt=V.f,ut=J.f,ct=f([].push),M=E("symbols"),D=E("op-symbols"),f=E("wks"),N=!T||!T[t]||!T[t].findChild,k=p&&B(function(){return 7!==x(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?r:O;d||(w(I=(L=function(){if(z(I,this))throw new st("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?F(arguments[0]):void 0,i=K(t),o=function(t){var e=void 0===this?c:this,n=(e===A&&h(o,D,t),m(e,C)&&m(e[C],i)&&(e[C][i]=!1),y(1,t));try{k(e,i,n)}catch(t){if(!(t instanceof rt))throw t;r(e,i,n)}};return p&&N&&k(A,i,{configurable:!0,set:o}),e(i,t)})[t],"toString",function(){return ot(this).tag}),w(L,"withoutSetter",function(t){return e(K(t),t)}),J.f=o,Z.f=i,q.f=n,W.f=s,H.f=V.f=a,G.f=l,Q.f=function(t){return e(Y(t),t)},p&&($(I,"description",{configurable:!0,get:function(){return ot(this).description}}),U||w(A,"propertyIsEnumerable",o,{unsafe:!0}))),u({global:!0,constructor:!0,wrap:!0,forced:!d,sham:!d},{Symbol:L}),P(b(f),function(t){tt(t)}),u({target:S,stat:!0,forced:!d},{useSetter:function(){N=!0},useSimple:function(){N=!1}}),u({target:"Object",stat:!0,forced:!d,sham:!p},{create:function(t,e){return void 0===e?x(t):n(x(t),e)},defineProperty:i,defineProperties:n,getOwnPropertyDescriptor:s}),u({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:a}),et(),nt(L,S),X[C]=!0},5084:function(){},3313:function(t,e,n){var i=n(1091),o=n(5582),r=n(9724),s=n(160),a=n(5816),n=n(4411),l=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!n},{for:function(t){var e,t=s(t);return r(l,t)?l[t]:(e=o("Symbol")(t),l[t]=e,u[e]=t,e)}})},2596:function(t,e,n){n(366)("hasInstance")},5721:function(t,e,n){n(366)("isConcatSpreadable")},4954:function(t,e,n){n(366)("iterator")},4452:function(t,e,n){n(3674),n(3313),n(751),n(9721),n(5264)},751:function(t,e,n){var i=n(1091),o=n(9724),r=n(5594),s=n(4640),a=n(5816),n=n(4411),l=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!n},{keyFor:function(t){if(!r(t))throw new TypeError(s(t)+" is not a symbol");if(o(l,t))return l[t]}})},3377:function(t,e,n){n(366)("matchAll")},4123:function(t,e,n){n(366)("match")},2230:function(t,e,n){n(366)("replace")},5344:function(t,e,n){n(366)("search")},1660:function(t,e,n){n(366)("species")},4610:function(t,e,n){n(366)("split")},3669:function(t,e,n){var i=n(366),n=n(3467);i("toPrimitive"),n()},4810:function(t,e,n){var i=n(5582),o=n(366),n=n(4840);o("toStringTag"),n(i("Symbol"),"Symbol")},3325:function(t,e,n){n(366)("unscopables")},2560:function(t,e,n){n(9363);var i,o=n(9287),r=n(5951),s=n(4840),a=n(3742);for(i in o)s(r[i],i),a[i]=a.Array},6450:function(t,e,n){n=n(3607);t.exports=n},8402:function(t,e,n){n=n(3531);t.exports=n},530:function(t,e,n){n=n(599);t.exports=n},8218:function(t,e,n){n=n(4048);t.exports=n},2616:function(t,e,n){n=n(3155);t.exports=n},9617:function(t,e,n){n=n(3246);t.exports=n},7852:function(t,e,n){n=n(4507);t.exports=n},8894:function(t,e,n){n=n(9299);t.exports=n},3266:function(t,e,n){n=n(8685);t.exports=n},9528:function(t,e,n){n=n(8823);t.exports=n},4106:function(t,e,n){n=n(8059);t.exports=n},2990:function(t,e,n){n=n(9685);t.exports=n},4598:function(t,e,n){n=n(3423);t.exports=n},975:function(t,e,n){n=n(9748);t.exports=n},3658:function(t,e,n){n=n(149);t.exports=n},8251:function(t,e,n){n=n(1926);t.exports=n},6490:function(t,e,n){n=n(9661);t.exports=n},7777:function(t,e,n){n=n(1418);t.exports=n},5980:function(t,e,n){n=n(8699);t.exports=n},6462:function(t,e,n){n=n(9929);t.exports=n},1921:function(t,e,n){n=n(4326);t.exports=n},5204:function(t,e,n){var i=n(7027);n(2560),t.exports=i},9157:function(t,e,n){var i=n(9378);n(2560),t.exports=i},4139:function(t,e,n){var i=n(3842);n(2560),t.exports=i},7045:function(t,e,n){var i=n(1730);n(2560),t.exports=i}},j={},b.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return b.d(e,{a:e}),e},b.d=function(t,e){for(var n in e)b.o(e,n)&&!b.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),b.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},U={},(b.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(U),b.d(U,{Annotation:function(){return Z},AnnotationBody:function(){return J},AnnotationList:function(){return X},AnnotationPage:function(){return Y},Canvas:function(){return rt},Collection:function(){return at},Deserialiser:function(){return Qt},Duration:function(){return lt},IIIFResource:function(){return G},JSONLDResource:function(){return B},LabelValuePair:function(){return ut},LanguageMap:function(){return Tt},LocalizedValue:function(){return Dt},Manifest:function(){return zt},ManifestResource:function(){return e},ManifestType:function(){return Mt},PropertyValue:function(){return o},Range:function(){return Vt},Rendering:function(){return Wt},Resource:function(){return F},Sequence:function(){return Kt},Service:function(){return ne},Size:function(){return ie},StatusCode:function(){return Yt},Thumb:function(){return oe},Thumbnail:function(){return ae},TreeNode:function(){return le},TreeNodeType:function(){return l},Utils:function(){return _},loadManifest:function(){return ue},parseManifest:function(){return ce}}),Se.prototype.getProperty=function(t){var e=null;return e=this.__jsonld?(e=this.__jsonld[t])||this.__jsonld["@"+t]:e},B=Se,t=b(7777),n=b.n(t),t=b(3658),i=b.n(t),t=b(3266),g=b.n(t),t=b(8402),u=b.n(t),s=b(3957);var N,k,R,j,U,B,t,n,i,g,u,s,e,z,F,H,p,V,G,W,Z,q,J,d,$,X,K,Y,a,c,Q,h,tt,et,nt,it,ot,rt,st,at,lt,ut,ct,ht,ft,pt,gt,vt,_t,yt,xt,bt,wt,Et,Lt,Tt,Pt,Ct,St,At,f,It,Ot,v,_,Mt,Dt,o,Nt,kt,Rt,jt,Ut,Bt,zt,Ft,Ht,Vt,Gt,Wt,Zt,qt,Jt,$t,Xt,Kt,Yt,Qt,te,ee,ne,ie,l,oe,re,se,ae,le,ue,ce,r=Lt=P,m=t=Et=B,m=((n()||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(r,m),Lt.prototype=null===t?i()(t):(Ce.prototype=t.prototype,new Ce),P.prototype.getIIIFResourceType=function(){return _.normaliseType(this.getProperty("type"))},P.prototype.getLabel=function(){var t=this.getProperty("label");return t?o.parse(t,this.options.locale):new o([],this.options.locale)},P.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},P.prototype.getMetadata=function(){var t=this.getProperty("metadata"),e=[];if(t)for(var n=0;n"),null===this.value?null:(u()(t)&&!t.length&&(t=void 0),this.value.getValue(t||this.defaultLocale,e))},be.prototype.getValues=function(t){return null===this.value?[]:(u()(t)&&!t.length&&(t=void 0),this.value.getValues(t||this.defaultLocale))},be.prototype.setValue=function(t){null===this.value&&(this.value=new o([])),this.value.setValue(t,this.defaultLocale)},ut=be,ft=function(t,e){return(ft=n()||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}))(t,e)},ct=xe,m=ht=Array,ft(ct,m),ct.prototype=null===m?i()(m):(ye.prototype=m.prototype,new ye),xe.getValue=function(t,e){return t.getValue(e,"
")},xe.getValues=function(t,e){return t.getValues(e)},Tt=xe,r=b(530),Pt=b.n(r),r=b(9528),Ct=b.n(r),r=b(5980),St=b.n(r),r=b(6490),At=b.n(r),r=b(4139),f=b.n(r),r=b(7045),It=b.n(r),r=b(4598),Ot=b.n(r),v=b(7019),b(916),C.getMediaType=function(t){return t=(t=t.toLowerCase()).split(";")[0],Ot()(t).call(t)},C.getImageQuality=function(t){return t===s.bB.IMAGE_0_COMPLIANCE_LEVEL_1||t===s.bB.IMAGE_0_COMPLIANCE_LEVEL_2||t===s.bB.IMAGE_1_COMPLIANCE_LEVEL_1||t===s.bB.IMAGE_1_COMPLIANCE_LEVEL_2||t===s.bB.IMAGE_0_CONFORMANCE_LEVEL_1||t===s.bB.IMAGE_0_CONFORMANCE_LEVEL_2||t===s.bB.IMAGE_1_CONFORMANCE_LEVEL_1||t===s.bB.IMAGE_1_CONFORMANCE_LEVEL_2||t===s.bB.IMAGE_1_LEVEL_1||t===s.bB.IMAGE_1_PROFILE_LEVEL_1||t===s.bB.IMAGE_1_LEVEL_2||t===s.bB.IMAGE_1_PROFILE_LEVEL_2?"native":"default"},C.getInexactLocale=function(t){return-1!==a()(t).call(t,"-")?t.substr(0,a()(t).call(t,"-")):t},C.getLocalisedValue=function(t,e){if(!u()(t))return t;for(var n=0;n"):this._value},enumerable:!0,configurable:!0}),t()(Ne.prototype,"locale",{get:function(){return void 0===this._locale?this._defaultLocale:this._locale},enumerable:!0,configurable:!0}),Ne.prototype.addValue=function(t){var e;u()(this._value)||(this._value=[this._value]),u()(t)?this._value=Pt()(e=this._value).call(e,t):g()(e=this._value).call(e,t)},Dt=Ne,Ut=Array,r(A,Ut),A.parse=function(n,i){var t,e;return n?u()(n)?(t=h()(t=d()(n).call(n,function(t){return Dt.parseV2Value(t,i)})).call(t,function(t){return null!==t}),e=Ct()(t).call(t,function(t,e){var n=e._locale;return t[n=n||"none"]?t[n].addValue(e._value):t[n]=e,t},{}),new A(St()(e),i)):"string"==typeof n?new A([new Dt(n,void 0,i)],i):n["@language"]||n["@value"]?new A(null!==(t=Dt.parseV2Value(n))?[t]:[],i):new A(d()(e=At()(n)).call(e,function(t){var e=n[t];if(u()(e))return new Dt(e,t,i);throw new Error("A IIIF v3 localized property value must have an array as the value for a given language.")}),i):new A([],i)},A.prototype.getSuitableLocale=function(t){for(var e,n=h()(e=d()(e=function(){for(var t=0,e=0,n=arguments.length;e=e.start&&t<=e.end)},O.prototype._parseTreeNode=function(t,e){t.label=e.getLabel().getValue(this.options.locale),t.data=e,t.data.type=_.normaliseType(l.RANGE),e.treeNode=t;var n=e.getRanges();if(n&&n.length)for(var i=0;ithis.getLastPageIndex()?-1:n},I.prototype.getPagedIndices=function(t,e){var n=[];return e?(n=this.isFirstCanvas(t)||this.isLastCanvas(t)?[t]:t%2?[t,t+1]:[t-1,t],(e=this.getViewingDirection())&&e===s.T5.RIGHT_TO_LEFT&&(n=Zt()(n).call(n))):g()(n).call(n,t),n},I.prototype.getPrevPageIndex=function(t,e){var n;return e?(e=this.getPagedIndices(t),(n=this.getViewingDirection())&&n===s.T5.RIGHT_TO_LEFT?e[e.length-1]-1:e[0]-1):t-1},I.prototype.getStartCanvasIndex=function(){var t=this.getStartCanvas();if(t)for(var e=0;ethis.getTotalCanvases()-1},I.prototype.isFirstCanvas=function(t){return 0===t},I.prototype.isLastCanvas=function(t){return t===this.getTotalCanvases()-1},I.prototype.isMultiCanvas=function(){return 1l[0]&&n[1]'+n+""),"@type":"dctypes:Image",type:n,format:"image/png",height:100,width:100}}function p(t){var e,n,i,o=t.getContent()[0];return e=o?(e=o.getBody(),i=(n=o)&&r(n.__jsonld)&&r(n.__jsonld.body)&&(n=n.__jsonld.body.type)?n.toLowerCase():i,n=function(t,e){var n=f(t[0]);if("choice"===e&&m&&m.enableChoice){for(var i=[],o=0,r=t.slice(1);oP.length-1)&&(C=0,x=!1),1===n.length&&n[0].canvasUrl&&!1===x)for(var b=n[0].canvasUrl.split("#"),w=b[0].replace(/^https:/,"http:"),E=0;E
'),""),c=ft(C),p=(c.attribution&&(f=F(c.attribution,{allowMinimalHtmlTag:!0})),J(C)?(a=dt.tileLayer.iiif(J(C),{tileSize:ut(C)?h:void 0,fitBounds:i,attribution:f})).hasImageAPIservice=!0:(a=dt.imageOverlayCustom(ct(C),ht(C),q(C).height,{fitBounds:i,attribution:f})).hasImageAPIservice=!1,a.id="iiif",L.addLayer(a),L.setView(n,e),L.attributionControl&&L.attributionControl.setPrefix(mt("").attr("href",X).text(b).prop("outerHTML")),q(C).layers);if(p){var d={},m='1. '+F(q(C).label,{allowMinimalHtmlTag:!1});d[m]=a;for(var g=0;g'+String(g+2)+". "+F(v.label,{allowMinimalHtmlTag:!1}),1024<=v.width?1024:256);v.width<_&&0").children("a").attr("href"))&&(e=B(i),/^https?:\/\//.test(e))?mt("").attr("href",i).html(n).prop("outerHTML"):t}),"b"),e=o(e,"i"),e=o(e,"p"),e=o(e,"span"),i=e,e="br",n=new RegExp("<"+e+"(?:\\s.*?)?/?>","gi"),t=i.replace(n,"<"+e+">")),t}function H(t){t=parseInt(t.split(".")[0],10);return isNaN(t)?-1:t}function V(t){var e=null;return e=mt.isPlainObject(t)&&mt.isPlainObject(t.service)&&(t=t.service)["@context"]&&t["@context"]===r&&t["@id"]&&"string"===mt.type(t["@id"])?t["@id"]:e}function G(t,e){var n=null;return n=t&&null!==W(e)?(n=t)+(-1!==t.indexOf("?")?"&":"?")+"cursorIndex="+e:n}function tt(t){var e=null;return e=t&&mt.isPlainObject(t)&&t["@id"]&&t["@type"]&&("cs:Canvas"===t["@type"]||"codh:Canvas"===t["@type"])&&"cursorIndex"in t?W(t.cursorIndex):e}function W(t){var e=null;return e=null!=t&&(t=String(t).match(/^(-?[0-9]+)$/))?parseInt(t[1],10):e}function et(t){var e=-1;return mt.isPlainObject(t)&&(t=t["@context"],-1<(t="string"===mt.type(t)?[t]:mt.isArray(t)?t:[]).indexOf("http://iiif.io/api/presentation/2/context.json")?e=2:-1P.length-1)&&(n=0),C=n,R()):"[object HTMLSelectElement]"===Object.prototype.toString.call(e)&&t(mt(e).val())},latest:function(){var t;D&&!S&&"updating"===u.status&&(t=P[C].bookIndex,t=T[t].manifestUrl)&&mt.getJSON(t,function(t){Z(t)&&(t=t.cursors[0],u.first=W(t.first),u.last=W(t.last),(t=G(u.endpointUrl,u.last))?(u.index=u.last,h(t,{outRange:-1,resetInfos:!0})):(O=new Error,z(N.NO_ERROR,O.lineNumber)))}).fail(function(t,e,n){O=new Error,z(N.NO_ERROR,O.lineNumber,e+", "+n)})},getCurrentPage:function(){return C},getTotalPages:function(){return P.length},remove:function(){L&&L.remove(),A&&A._id&&(mt(A._id).off(),mt(A._id).empty())},getCurrentImage:function(){return m(C)}}}}(window.icveLeaflet,window.icveDollar);