PageSourceSearch

https://www.themarshallgroup.com.au/js/cowtools/leaflet-map.js

js themarshallgroup.com.au collected 2026-09-28 12:55:03 UTC 33,008 bytes, 3 lines download raw bytes

vendor: 7,677 bytes, lines 1-2
1/*! © 2025 Push Creative. All Rights Reserved. https://pushcreative.com.au/ */
2var LeafletMap=function(t){"use strict";function e(){e=function(){return n};var t,n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new C(r||[]);return i(a,"_invoke",{value:j(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var h="suspendedStart",d="suspendedYield",m="executing",y="completed",v={};function g(){}function b(){}function w(){}var x={};c(x,s,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(B([])));L&&L!==r&&o.call(L,s)&&(x=L);var O=w.prototype=g.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(r,i,a,s){var u=f(t[r],t,i);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&o.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var r;i(this,"_invoke",{value:function(t,o){function i(){return new e((function(e,r){n(t,o,e,r)}))}return r=r?r.then(i,i):i()}})}function j(e,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=M(s,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var l=f(e,n,r);if("normal"===l.type){if(o=r.done?y:d,l.arg===v)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=y,r.method="throw",r.arg=l.arg)}}}function M(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function B(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=w,i(O,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=c(w,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},n.awrap=function(t){return{__await:t}},S(E.prototype),c(E.prototype,u,(function(){return this})),n.AsyncIterator=E,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new E(p(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(O),c(O,l,"Generator"),c(O,s,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=B,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:B(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},n}function n(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,s,u,"throw",t)}s(void 0)}))}}function a(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}
2function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,n){return c=l()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&u(o,n.prototype),o},c.apply(null,arguments)}function p(t){var e="function"==typeof Map?new Map:void 0;return p=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,s(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)},p(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}var g="object"==("undefined"==typeof global?"undefined":r(global))&&global&&global.Object===Object&&global,b="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,w=g||b||Function("return this")(),x=w.Symbol,k=Object.prototype,L=k.hasOwnProperty,O=k.toString,S=x?x.toStringTag:void 0;var E=Object.prototype.toString;var j="[object Null]",M="[object Undefined]",T=x?x.toStringTag:void 0;function P(t){return null==t?void 0===t?M:j:T&&T in Object(t)?function(t){var e=L.call(t,S),n=t[S];try{t[S]=void 0;var r=!0}catch(t){}var o=O.call(t);return r&&(e?t[S]=n:delete t[S]),o}(t):function(t){return E.call(t)}(t)}function C(t){return null!=t&&"object"==r(t)}var B="[object Symbol]";var _=Array.isArray,Z=/\s/;var N=/^\s+/;function I(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&Z.test(t.charAt(e)););return e}(t)+1).replace(N,""):t}function z(t){var e=r(t);return null!=t&&("object"==e||"function"==e)}var A=NaN,W=/^[-+]0x[0-9a-f]+$/i,H=/^0b[01]+$/i,F=/^0o[0-7]+$/i,R=parseInt;function G(t){if("number"==typeof t)return t;if(function(t){return"symbol"==r(t)||C(t)&&P(t)==B}(t))return A;
2if(z(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=z(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=I(t);var n=H.test(t);return n||F.test(t)?R(t.slice(2),n?2:8):W.test(t)?A:+t}var D=function(){return w.Date.now()},q=Math.max,$=Math.min;function J(t,e,n){function r(e){var n=u,r=l;return u=l=void 0,d=e,p=t.apply(r,n)}function o(t){var n=t-h;return void 0===h||n>=e||0>n||y&&t-d>=c}function i(){var t=D();return o(t)?a(t):void(f=setTimeout(i,function(t){var n=e-(t-h);return y?$(n,c-(t-d)):n}(t)))}function a(t){return f=void 0,v&&u?r(t):(u=l=void 0,p)}function s(){var t=D(),n=o(t);if(u=arguments,l=this,h=t,n){if(void 0===f)return function(t){return d=t,f=setTimeout(i,e),m?r(t):p}(h);if(y)return clearTimeout(f),f=setTimeout(i,e),r(h)}return void 0===f&&(f=setTimeout(i,e)),p}var u,l,c,p,f,h,d=0,m=!1,y=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return e=G(e)||0,z(n)&&(m=!!n.leading,c=(y="maxWait"in n)?q(G(n.maxWait)||0,e):c,v="trailing"in n?!!n.trailing:v),s.cancel=function(){void 0!==f&&clearTimeout(f),d=0,u=h=l=f=void 0},s.flush=function(){return void 0===f?p:a(D())},s}var U="[object String]";function Y(t){return"string"==typeof t||!_(t)&&C(t)&&P(t)==U}function Q(t){if(Y(t)){if(""==t.trim())return{};try{return JSON.parse(t)}catch(e){return console.error("Unable to parse invalid JSON"),void console.trace(t)}}}function V(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return null===e?window.getComputedStyle(t):window.getComputedStyle(t).getPropertyValue(e)}function K(t){return t instanceof NodeList||t instanceof HTMLCollection||t instanceof Array&&t.every((function(t){return t instanceof Element}))}function X(t,e){return K(t)?Array.from(t).find((function(t){return t.matches(e)})):t instanceof Element?"~"==e[0]||"+"==e[0]?function(t,e){var n=Array.from(t.parentNode.children),r=n.indexOf(t);if(-1<r&&r<n.length-1){var o,i=v(n=n.slice(r+1));try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a!==t&&a.matches(e))return a}}catch(t){i.e(t)}finally{i.f()}}return null}(t,e.substring(1)):t.querySelector(":scope "+e):null}function tt(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"bottom";return e instanceof Element&&(!n||"bottom"===n||"inside"===n||0==e.children.length&&"top"==n?e.appendChild(t):"top"===n?e.insertBefore(t,e.firstElementChild):"after"===n?e.nextElementSibling?e.parentNode.insertBefore(t,e.nextElementSibling):e.parentNode.appendChild(t):"before"===n?e.parentNode.insertBefore(t,e):"around"===n&&function(t,e){e.parentNode.insertBefore(t,e),t.appendChild(e)}(t,e)),t}var et,nt=function(t){if("none"!=V(t,"display"))return function(){};var e=t.style.cssText;return t.style.display="block",t.style.visibility="hidden",t.style.margin=0,function(){this.style.cssText=e}.bind(t)};function rt(t){return function(t){t.offsetHeight,t.offsetWidth}(t),function(t,e){if(!t||t.offsetHeight||t.offsetWidth)return e.call(t);for(var n=t.parentNode,r=[];n&&!n.offsetHeight&&!n.offsetWidth&&n!=document.body;)r.push(nt(n)),n=n.parentNode;var o=nt(t),i=e.call(t);return o(),r.forEach((function(t){t()})),i}(t,function(){var t=this,e=V(this),n=t.getBoundingClientRect();return{width:Math.ceil(n.width),height:Math.ceil(n.height),scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,offsetTop:t.offsetTop,offsetLeft:t.offsetLeft,offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,boundingRect:n,margin:{top:e?parseInt(e.marginTop):0,right:e?parseInt(e.marginRight):0,bottom:e?parseInt(e.marginBottom):0,left:e?parseInt(e.marginLeft):0},padding:{top:e?parseInt(e.paddingTop):0,right:e?parseInt(e.paddingRight):0,bottom:e?parseInt(e.paddingBottom):0,left:e?parseInt(e.paddingLeft):0},border:{top:e?parseInt(e.borderTopWidth):0,right:e?parseInt(e.borderRightWidth):0,bottom:e?parseInt(e.borderBottomWidth):0,left:e?parseInt(e.borderLeftWidth):0}}}.bind(t))}function ot(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"div",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"",o=document.createElement(t);return Object.keys(e).forEach((function(t){"class"==t.toLowerCase()||"classname"==t.toLowerCase()?o.className=e[t]:"text"==t.toLowerCase()||"innertext"==t.toLowerCase()?""==r&&(r=htmlEntities(e[t])):"html"==t.toLowerCase()||"innerhtml"==t.toLowerCase()?""==r&&(r=e[t]):null!==e[t]&&void 0!==e[t]&&o.setAttribute(t,e[t])}
2)),Object.keys(n).forEach((function(t){return o.style[t]=n[t]})),""!=r&&(o.innerHTML=r),o}function it(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.body,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"width",r=function(t){var e=t.toString().trim().match(/^([0-9.-]+)(cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|%|)$/);return null===e?null:{value:parseFloat(e[1]),unit:e[2]}}(t);if(null!==r){if(""==r.unit||"px"==r.unit)return r.value;if("%"==r.unit)return(e===document.body?document.body.innerWidth:rt(e)[n])*(r.value/100);if("em"==r.unit||"rem"==r.unit)return r.value*parseInt(V(e,"font-size"));if("vmin"==r.unit)return r.value/100*Math.min(window.innerWidth,window.innerHeight);if("vmax"==r.unit)return r.value/100*Math.max(window.innerWidth,window.innerHeight);if("vh"==r.unit||"dvh"==r.unit||"svh"==r.unit||"lvh"==r.unit)return r.value/100*window.innerHeight;if("vw"==r.unit||"dvw"==r.unit||"svw"==r.unit||"lvw"==r.unit)return r.value/100*window.innerWidth}var o=ot("span",{id:"__toPixelsElement"},{visibility:"hidden",position:"absolute","font-size":t});tt(o,e,"bottom");var i=V(o,"font-size");return e.removeChild(o),parseFloat(i)}function at(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||0<navigator.maxTouchPoints}function st(t,e){if(Y(e)&&e.trimStart().startsWith("{")&&(e=Q(e)),z(e))for(var n=0,r=Object.entries(e);n<r.length;n++){var o=d(r[n],2),i=o[0],a=o[1];_(a)?t[i]=a:z(a)&&z(t[i])?Object.assign(t[i],a):t[i]=a}}function ut(){return ut=i(e().mark((function t(n){var r,o,i,a,s=arguments;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=1<s.length&&void 0!==s[1]?s[1]:null,i=3<s.length&&void 0!==s[3]?s[3]:null,null===(o=2<s.length&&void 0!==s[2]?s[2]:null)||o instanceof HTMLElement){t.next=6;break}throw new DOMException("Invalid argument(s) for loadAsset","TypeError");case 6:return i=null==i||""==i?"🐄"+n.toLowerCase().replace(/[^a-z0-9-]+/gi,"_"):i,null==r&&((a=n.matchAll(/\.(js|css)\b/gi))&&(r=a.next().value.pop())),t.abrupt("return",new Promise((function(t,e){var a;(a=document.getElementById(i))||("js"===r||"script"===r||"application/javascript"===r?(a=ot("script",{async:!1,src:n,id:i}),o=o||document.body):"css"===r||"style"===r||"text/css"===r?(a=ot("link",{type:"text/css",rel:"stylesheet",href:n,id:i}),o=o||document.head):e(n),o.appendChild(a)),a.addEventListener("load",(function(){return t(n)})),a.addEventListener("error",(function(){return e(n)}))})));case 9:case"end":return t.stop()}}),t)}))),ut.apply(this,arguments)}function lt(t){return _(t)||(t=[t]),Promise.all(t.map((function(t){return function(){return ut.apply(this,arguments)}(t)})))}var ct,pt,ft,ht,dt="leaflet-map",mt=(et=function(t){function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=m.call(this)).slottedElements={},t.map=null,t.featureLayer=null,t.clusterManager=null,t.markerLayer=null,t.popup=null,t.bounds=null,t.keyedMarkers={},t.o={mapOptions:{minZoom:1,maxZoom:17,zoom:12,center:[0,0],scrollWheelZoom:at(),draggable:!at(),attributionControl:!1,wheelDebounceTime:100,zoomSnap:.01,defaultMarkerImage:"/img/map_marker.svg",defaultMarkerSize:"32x32"},clustererOptions:{polygonOptions:{dashArray:"4 4",color:"RGBA(0,0,0,0.5)",weight:"1",fillOpacity:0}},popupOptions:{maxWidth:280,closeButton:!0,offset:[0,-30]},pathStyles:{color:"#000",opacity:.5,weight:2,fill:"#000",fillOpacity:.05},tileLayers:"default",includeInBounds:["markers","features"],fitBoundsPadding:32,zoomControlPosition:"topleft"},t.attachShadow({mode:"open"}).appendChild(t.loadTemplate()),t.querySelectorAll("[slot]").forEach((function(e){t.slottedElements[e.getAttribute("slot")]=e})),t.markerContainer?(st(t.o,window.LeafletMapDefaultOptions||{}),t.optionsContainer instanceof HTMLScriptElement&&"application/json"==t.optionsContainer.getAttribute("type")&&st(t.o,t.optionsContainer.textContent),function(t,e,n){if(K(t)){var r,o=v(t);try{for(o.s();!(r=o.n()).done;)r.value.style.setProperty(e,n)}catch(t){o.e(t)}finally{o.f()}}else t instanceof Element&&t.style.setProperty(e,n)}(t.markerContainer,"display","none"),t.addedMarkerContainer=tt(ot("div",{},{display:"none"}),f(t),"bottom"),t):(console&&console.warn&&console.warn('<leaflet-map> element requires an element with slot="markers"'),h(t))}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(n,t);var r,o,c,p,d,m=(r=n,o=l(),function(){var t,e=s(r);if(o){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return h(this,t)});return c=n,p=[{key:"fitBoundsPaddingOptions",get:function(){if(function(t){return"number"==typeof t||C(t)&&"[object Number]"==P(t)}
2(this.o.fitBoundsPadding)||Y(this.o.fitBoundsPadding)){var t=it(this.o.fitBoundsPadding,this.sr);return{animate:!1,padding:[t,t]}}if(_(this.o.fitBoundsPadding)){if(2==this.o.fitBoundsPadding.length){var e=it(this.o.fitBoundsPadding[0],this.sr),n=it(this.o.fitBoundsPadding[1],this.sr);return{animate:!1,paddingTopLeft:[e,n],paddingBottomRight:[e,n]}}if(4==this.o.fitBoundsPadding.length){var r=it(this.o.fitBoundsPadding[0],this.sr),o=it(this.o.fitBoundsPadding[1],this.sr),i=it(this.o.fitBoundsPadding[2],this.sr);return{animate:!1,paddingTopLeft:[it(this.o.fitBoundsPadding[3],this.sr),r],paddingBottomRight:[o,i]}}}return 0}},{key:"fitBoundsPadding",set:function(t){this.o.fitBoundsPadding=t,this.bounds&&this.map&&this.map.fitBounds(this.bounds,this.fitBoundsPaddingOptions)}},{key:"sr",get:function(){return this.shadowRoot.host}},{key:"L",get:function(){return window.L||void 0}},{key:"markerContainer",get:function(){return this.slottedElements.markers}},{key:"featureContainer",get:function(){return this.slottedElements.features}},{key:"optionsContainer",get:function(){return this.slottedElements.options}},{key:"fitBounds",value:function(){return this.map.fitBounds(this.bounds,this.fitBoundsPaddingOptions)}},{key:"initialiseMap",value:function(){var t=i(e().mark((function t(){var n,r=this;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:lt([(n="/js/cowtools")+"/vendor/leaflet.css",n+"/vendor/leaflet.js"]).then((function(){return r.map=new r.L.map(r,r.o.mapOptions),r.L.control.attribution({prefix:!1}).addTo(r.map),r.featureLayer=r.L.layerGroup().addTo(r.map),r.clusterManager=r.L.markerClusterGroup(r.o.clustererOptions),r.markerLayer=r.L.layerGroup().addTo(r.map),r.popup=new r.L.popup(r.o.popupOptions),r.map.addLayer(r.clusterManager),r.popup.bindPopup(r.clusterManager),r.bounds=r.L.latLngBounds(),r.map.on("resize",J(function(){this.map.closePopup(),this.fitBounds(),1==this.markerObjects.length&&this.map.setZoom(this.dataset.zoom||12)}.bind(r),200,{trailing:!0})),r.map.zoomControl&&["topleft","topright","bottomleft","bottomright"].includes(r.o.zoomControlPosition)&&r.map.zoomControl.setPosition(r.o.zoomControlPosition),r._mapInstance=r.map,r.markerObjects=[],r.loadTiles(),r.loadMarkers(),r.featureContainer instanceof HTMLScriptElement&&"application/json"==r.featureContainer.getAttribute("type")&&(r.features=r.featureContainer.innerText),r}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"highlightMarker",value:function(t){this.keyedMarkers[t]&&this.keyedMarkers[t].fire("click")}},{key:"loadTiles",value:function(){var t=this,e=n.MapTileSets.default;_(this.o.tileLayers)?e=this.o.tileLayers:Y(this.o.tileLayers)&&n.MapTileSets[this.o.tileLayers]&&(e=n.MapTileSets[this.o.tileLayers]),e.forEach((function(e){var n=e.options;t.L.tileLayer(e.url,n).addTo(t.map)}))}},{key:"loadMarkers",value:function(){var t=this,e=!!(0<arguments.length&&void 0!==arguments[0])&&arguments[0],n=function(t){return t instanceof Element||"children"in t?Array.from(t.children):[]}(this.markerContainer);if(0!=n.length||0==e&&2==this.o.mapOptions.center.length){e||(this.clusterManager.clearLayers(),this.markerLayer.clearLayers(),function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}(this.addedMarkerContainer),this.markerObjects=[],this.keyedMarkers={},this.bounds=this.L.latLngBounds());var r=[],o=this.o.includeInBounds.includes("markers");n.forEach((function(e){var n={},i=!1;if(e.dataset.lat&&e.dataset.lng){var a=t.L.latLng(parseFloat(e.dataset.lat),parseFloat(e.dataset.lng));if(!e.dataset.nobounds&&o&&t.bounds.extend(t.L.latLng(e.dataset.lat,e.dataset.lng)),e.dataset.class&&(n.className=e.dataset.class||""),e.dataset.imageSize){var s=e.dataset.imageSize.split("x");n.iconSize=t.L.point(parseInt(s[0]),parseInt(s[1])),n.iconAnchor=t.L.point(n.iconSize.x/2,n.iconSize.y)}if(e.dataset.imageAnchor){var u=e.dataset.imageAnchor.split(",");n.iconAnchor=t.L.point(parseInt(u[0]),parseInt(u[1]))}e.dataset.image?(n.iconUrl=e.dataset.image||"/img/map_marker.png",i=t.L.icon(n)):e.dataset.html&&(n.html=e.dataset.html),i||(i=t.L.divIcon(n));var l=t.L.marker(a,{icon:i,zIndexOffset:parseInt(e.dataset.zIndexOffset||"0"),interactive:!e.dataset.nointeraction});t.markerObjects.push(l),e.dataset.nocluster?l.addTo(t.markerLayer):r.push(l);var c=X(e,".leafletmap-popup, figcaption");c&&(c.classList.add("mapbox"),l.on("click",function(){this.popup.closePopup(),this.popup.setLatLng(l.getLatLng()).setContent(c).openOn(this.map)}.bind(t))),e.dataset.key&&(t.keyedMarkers[e.dataset.key]=l),tt(e,t.addedMarkerContainer)}})),1==r.length?this.markerLayer.addLayer(r[0]):1<r.length&&this.clusterManager.addLayers(r),0<this.markerObjects.length&&(this.fitBounds(),1<this.markerObjects.length&&this.map.setMa
2xBounds(this.bounds.pad(10))),1==this.markerObjects.length&&this.map.setZoom(this.dataset.zoom||12)}}},{key:"loadFeatures",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;if(null===e&&(e=this.o.features||!1),e){if(this.featureLayer.clearLayers(),_(e))e.forEach((function(e){var n=t.L.geoJSON(e,{smoothFactor:2,interactive:!1,style:e.style||t.o.pathStyles});n.addTo(t.featureLayer),t.o.includeInBounds.includes("features")&&t.bounds.extend(n.getBounds())}));else{var n=this.L.geoJSON(e,{interactive:!1,style:this.o.pathStyles});n.addTo(this.featureLayer),this.o.includeInBounds.includes("features")&&this.bounds.extend(n.getBounds())}this.map.setMaxBounds(this.bounds.pad(10)),this.fitBounds()}}},{key:"markers",set:function(t){z(t)||(this.markerContainer.innerHTML=t,this.loadMarkers(!1))}},{key:"features",set:function(t){Y(t)?this.loadFeatures(Q(t)):this.loadFeatures(t)}},{key:"connectedCallback",value:function(){var t=i(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setAttribute("connected",performance.now().toString()),t.next=3,this.initialiseMap();case 3:this.hasAttribute("hidden")&&"beforeLoad"==this.getAttribute("hidden")&&this.removeAttribute("hidden"),this.setAttribute("connected","");case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"adoptedCallback",value:function(){}},{key:"disconnectedCallback",value:function(){this.removeAttribute("connected"),this.map&&(this.map.remove(),this.map=null),this.removeAttribute("connected"),this.dispatchEvent(new CustomEvent("disconnected"))}},{key:"loadTemplate",value:function(){var t=document.createElement("template");return t.innerHTML='<slot/><slot name="markers"/><slot name="features"/><slot name="options"/>\n        <style>\n        :host{display: block; overflow: hidden;}\n        :host([hidden],:not(connected)){display: none;}\n        ::slotted([slot="markers"]) { display: none; }\n        </style>\n        ',t.content}}],d=[{key:"attach",value:function(){void 0===customElements.get(dt)&&customElements.define(dt,n)}}],p&&a(c.prototype,p),d&&a(c,d),Object.defineProperty(c,"prototype",{writable:!1}),n}(p(HTMLElement)),ct=et,ft={default:[{url:"https://maptiles-{s}.pushcreative.com.au/gmapland/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}},{url:"https://maptiles-{s}.pushcreative.com.au/cadastre/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://spatial.nsw.gov.au/">Spatial Services</a>',minZoom:16,maxZoom:17,maxNativeZoom:17}},{url:"https://maptiles-{s}.pushcreative.com.au/gmaplabels/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}}],osm:[{url:"https://maptiles-{s}.pushcreative.com.au/gmapland/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}},{url:"https://maptiles-{s}.pushcreative.com.au/cadastre/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://spatial.nsw.gov.au/">Spatial Services</a>',minZoom:16,maxZoom:17,maxNativeZoom:17}},{url:"https://maptiles-{s}.pushcreative.com.au/gmaplabels/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}}],gmaps:[{url:"https://maptiles-{s}.pushcreative.com.au/gmapland/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}},{url:"https://maptiles-{s}.pushcreative.com.au/cadastre/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://spatial.nsw.gov.au/">Spatial Services</a>',minZoom:16,maxZoom:17,maxNativeZoom:17}},{url:"https://maptiles-{s}.pushcreative.com.au/gmaplabels/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}}],bwmaps:[{url:"https://maptiles-{s}.pushcreative.com.au/bwland/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}},{url:"https://maptiles-{s}.pushcreative.com.au/cadastre/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://spatial.nsw.gov.au/">Spatial Services</a>',minZoom:16,maxZoom:17,maxNativeZoom:17}},{url:"https://maptiles-{s}.pushcreative.com.au/bwlabels/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}}],switchmaps:[{url:"https://maptiles-{s}.pushcreative.com.au/switchland/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}},{url:"https://maptiles-{s}.pushcreative.com.au/cadastre/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://spatial.nsw.gov.au/">Spatial Services</a>',minZoom:16,maxZoom:17,maxNativeZoom:17}},{url:"https://maptiles-{s}.pushcreative.com.au/switchlabels/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}}],apollo:[{url:"https://maptiles-{s}.pushcreative.com.au/apollo/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors',maxZoom:17,maxNativeZoom:16}},{url:"https://maptiles-{s}.pushcreative.com.au/cadastre/{z}/{x}/{y}.png",options:{attribution:'&copy; <a target="_blank" rel="nofollow" href="https://spatial.nsw.gov.au/">Spatial Services</a>',minZoom:16,maxZoom:17,maxNativeZoom:17}}]},(pt=n(pt="MapTileSets"))in ct?Object.defineProperty(ct,pt,{value:ft,enumerable:!0,configurable:!0,writable:!0}):ct[pt]=ft,et);return ht=mt.attach,window.requestIdleCallback?window.requestIdleCallback(ht,{timeout:1}):window.requestAnimationFrame(ht),t.LeafletMap=mt,Object.defineProperty(t,"__esMo
2dule",{value:!0}),t}({});
3/*! © 2025 Push Creative. All Rights Reserved. https://pushcreative.com.au/ */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.